(self.webpackChunkalg=self.webpackChunkalg||[]).push([[179],{46156:function(gt){gt.exports=function(){"use strict";var X=function(){return X=Object.assign||function(zt){for(var on,hn=1,Gn=arguments.length;hn<Gn;hn++)for(var Gi in on=arguments[hn])Object.prototype.hasOwnProperty.call(on,Gi)&&(zt[Gi]=on[Gi]);return zt},X.apply(this,arguments)};function a(Tt){var zt="function"==typeof Symbol&&Symbol.iterator,on=zt&&Tt[zt],hn=0;if(on)return on.call(Tt);if(Tt&&"number"==typeof Tt.length)return{next:function(){return Tt&&hn>=Tt.length&&(Tt=void 0),{value:Tt&&Tt[hn++],done:!Tt}}};throw new TypeError(zt?"Object is not iterable.":"Symbol.iterator is not defined.")}function e(Tt,zt){var on="function"==typeof Symbol&&Tt[Symbol.iterator];if(!on)return Tt;var Gn,Po,hn=on.call(Tt),Gi=[];try{for(;(void 0===zt||zt-- >0)&&!(Gn=hn.next()).done;)Gi.push(Gn.value)}catch(er){Po={error:er}}finally{try{Gn&&!Gn.done&&(on=hn.return)&&on.call(hn)}finally{if(Po)throw Po.error}}return Gi}function n(Tt,zt,on){if(on||2===arguments.length)for(var Gi,hn=0,Gn=zt.length;hn<Gn;hn++)(Gi||!(hn in zt))&&(Gi||(Gi=Array.prototype.slice.call(zt,0,hn)),Gi[hn]=zt[hn]);return Tt.concat(Gi||Array.prototype.slice.call(zt))}class s extends Error{constructor(zt,on,hn){super(zt),this.token=on,this.type=hn||"error"}}const l=Tt=>Tt<4?"short":4===Tt?"long":"narrow",i=Tt=>Tt%2==0?"2-digit":"numeric";function p(Tt,zt){switch(Tt.width){case 1:return"numeric";case 2:return"2-digit";case 3:return"short";case 4:return"long";case 5:return"narrow";default:return void zt(`${Tt.desc} is not supported with width ${Tt.width}`)}}function c(Tt,zt){const{char:on,desc:hn,width:Gn}=Tt;if("d"===on)return i(Gn);zt(`${hn} is not supported`)}function o(Tt,zt){const{char:on,desc:hn,width:Gn}=Tt;return("c"===on||"e"===on)&&Gn<3&&zt(`Numeric value is not supported for ${hn}; falling back to weekday:short`,s.WARNING),l(Gn)}function u(Tt,zt){const{char:on,desc:hn,width:Gn}=Tt;switch(on){case"v":case"z":return 4===Gn?"long":"short";case"V":return 4===Gn?"long":void zt(`${hn} is not supported with width ${Gn}`);case"X":return void zt(`${hn} is not supported`)}return"short"}function m(Tt,zt){switch(Tt.field){case"era":return{era:l(Tt.width)};case"year":return function t(Tt,zt){switch(Tt.char){case"y":return{year:i(Tt.width)};case"r":return{calendar:"gregory",year:"numeric"};default:return zt(`${Tt.desc} is not supported; falling back to year:numeric`,s.WARNING),{year:"numeric"}}}(Tt,zt);case"month":return{month:p(Tt,zt)};case"day":return{day:c(Tt,zt)};case"weekday":return{weekday:o(Tt,zt)};case"period":return;case"hour":return function x(Tt){const zt=i(Tt.width);let on;switch(Tt.char){case"h":on="h12";break;case"H":on="h23";break;case"k":on="h24";break;case"K":on="h11"}return on?{hour:zt,hourCycle:on}:{hour:zt}}(Tt);case"min":return{minute:i(Tt.width)};case"sec":return{second:i(Tt.width)};case"tz":return{timeZoneName:u(Tt,zt)};case"quarter":case"week":case"sec-frac":case"ms":zt(`${Tt.desc} is not supported`)}}function b(Tt){let zt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gn=>{throw Gn};const on={},hn=[];for(const Gn of Tt){const{error:Gi,field:Po,str:er}=Gn;if(Gi){const va=new s(Gi.message,Gn);va.stack=Gi.stack,zt(va)}er&&zt(new s(`Ignoring string part: ${er}`,Gn,s.WARNING)),Po&&(-1===hn.indexOf(Po)?hn.push(Po):zt(new s(`Duplicate ${Po} token`,Gn)));const Tr=m(Gn,(va,gl)=>zt(new s(va,Gn,gl)));Tr&&Object.assign(on,Tr)}return on}const I={G:{field:"era",desc:"Era"},y:{field:"year",desc:"Year"},Y:{field:"year",desc:'Year of "Week of Year"'},u:{field:"year",desc:"Extended year"},U:{field:"year",desc:"Cyclic year name"},r:{field:"year",desc:"Related Gregorian year"},Q:{field:"quarter",desc:"Quarter"},q:{field:"quarter",desc:"Stand-alone quarter"},M:{field:"month",desc:"Month in year"},L:{field:"month",desc:"Stand-alone month in year"},w:{field:"week",desc:"Week of year"},W:{field:"week",desc:"Week of month"},d:{field:"day",desc:"Day in month"},D:{field:"day",desc:"Day of year"},F:{field:"day",desc:"Day of week in month"},g:{field:"day",desc:"Modified julian day"},E:{field:"weekday",desc:"Day of week"},e:{field:"weekday",desc:"Local day of week"},c:{field:"weekday",desc:"Stand-alone local day of week"},a:{field:"period",desc:"AM/PM marker"},b:{field:"period",desc:"AM/PM/noon/midnight marker"},B:{field:"period",desc:"Flexible day period"},h:{field:"hour",desc:"Hour in AM/PM (1~12)"},H:{field:"hour",desc:"Hour in day (0~23)"},k:{field:"hour",desc:"Hour in day (1~24)"},K:{field:"hour",desc:"Hour in AM/PM (0~11)"},j:{field:"hour",desc:"Hour in preferred cycle"},J:{field:"hour",desc:"Hour in preferred cycle without marker"},C:{field:"hour",desc:"Hour in preferred cycle with flexible marker"},m:{field:"min",desc:"Minute in hour"},s:{field:"sec",desc:"Second in minute"},S:{field:"sec-frac",desc:"Fractional second"},A:{field:"ms",desc:"Milliseconds in day"},z:{field:"tz",desc:"Time Zone: specific non-location"},Z:{field:"tz",desc:"Time Zone"},O:{field:"tz",desc:"Time Zone: localized"},v:{field:"tz",desc:"Time Zone: generic non-location"},V:{field:"tz",desc:"Time Zone: ID"},X:{field:"tz",desc:"Time Zone: ISO8601 with Z"},x:{field:"tz",desc:"Time Zone: ISO8601"}},H=Tt=>Tt>="A"&&Tt<="Z"||Tt>="a"&&Tt<="z";function G(Tt,zt){const on=Tt[zt];if(!on)return null;if(H(on))return function O(Tt,zt){const on=Tt[zt];let hn=1;for(;Tt[++zt]===on;)++hn;const Gn=I[on];return Gn?{char:on,field:Gn.field,desc:Gn.desc,width:hn}:{char:on,error:new Error(`The letter ${on} is not a valid field identifier`),width:hn}}(Tt,zt);if("'"===on)return function P(Tt,zt){let on=Tt[++zt],hn=2;if("'"===on)return{char:"'",str:on,width:hn};for(;;){const Gn=Tt[++zt];if(++hn,void 0===Gn)return{char:"'",error:new Error(`Unterminated quoted literal in pattern: ${on||Tt}`),str:on,width:hn};if("'"===Gn){if("'"!==Tt[++zt])return{char:"'",str:on,width:hn};++hn}on+=Gn}}(Tt,zt);let hn=on,Gn=1;for(;;){const Gi=Tt[++zt];if(!Gi||H(Gi)||"'"===Gi)return{char:on,str:hn,width:Gn};hn+=Gi,Gn+=1}}function B(Tt){const zt=[];let on=0;for(;;){const hn=G(Tt,on);if(!hn)return zt;zt.push(hn),on+=hn.width}}class q extends Error{constructor(zt,on){super(on),this.code=zt}}class j extends q{constructor(zt,on){super("BAD_OPTION",`Unknown ${zt} option: ${on}`),this.stem=zt,this.option=on}}class Y extends q{constructor(zt){super("BAD_STEM",`Unknown stem: ${zt}`),this.stem=zt}}class K extends q{constructor(zt,on){super("MASKED_VALUE",`Value for ${zt} is set multiple times`),this.type=zt,this.prev=on}}class ne extends q{constructor(zt){super("MISSING_OPTION",`Required option missing for ${zt}`),this.stem=zt}}class ee extends q{constructor(zt,on){super("BAD_PATTERN",on),this.char=zt}}class $ extends q{constructor(zt,on,hn){super("TOO_MANY_OPTIONS",`Token ${zt} only supports ${hn>1?`${hn} options`:"one option"} (got ${on.length})`),this.stem=zt,this.options=on}}class ue extends q{constructor(zt,on){super("UNSUPPORTED",`The stem ${zt} is not supported`),this.stem=zt,on&&(this.message+=` with value ${on}`,this.source=on)}}function ge(Tt,zt){let{numberingSystem:on}=zt;return Array.isArray(Tt)||(Tt=[Tt]),on?Tt.map(hn=>{const Gn=-1===hn.indexOf("-u-")?"u-nu":"nu";return`${hn}-${Gn}-${on}`}).concat(Tt):Tt}function at(Tt){let{scale:zt,unit:on}=Tt,hn="number"==typeof zt&&zt>=0?zt:1;return on&&"percent"===on.style&&(hn*=.01),hn}function Te(Tt,zt){const{decimal:on,group:hn,integerWidth:Gn,notation:Gi,precision:Po,roundingMode:er,sign:Tr,unit:va,unitPer:gl,unitWidth:Fl}=Tt,Zl=(Yc,Yd)=>{zt&&zt(new ue(Yc,Yd))},is={};if(va)switch(va.style){case"base-unit":is.style="decimal";break;case"currency":is.style="currency",is.currency=va.currency;break;case"measure-unit":is.style="unit",is.unit=va.unit.replace(/.*-/,""),gl&&(is.unit+="-per-"+gl.replace(/.*-/,""));break;case"percent":is.style="percent";break;case"permille":Zl("permille")}switch(Fl){case"unit-width-full-name":is.currencyDisplay="name",is.unitDisplay="long";break;case"unit-width-hidden":Zl(Fl);break;case"unit-width-iso-code":is.currencyDisplay="code";break;case"unit-width-narrow":is.currencyDisplay="narrowSymbol",is.unitDisplay="narrow";break;case"unit-width-short":is.currencyDisplay="symbol",is.unitDisplay="short"}switch(hn){case"group-off":is.useGrouping=!1;break;case"group-auto":is.useGrouping=!0;break;case"group-min2":case"group-on-aligned":case"group-thousands":Zl(hn),is.useGrouping=!0}if(Po)switch(Po.style){case"precision-fraction":{const{minFraction:Yc,maxFraction:Yd,minSignificant:cm,maxSignificant:jm,source:up}=Po;"number"==typeof Yc&&(is.minimumFractionDigits=Yc,"number"==typeof cm&&Zl("precision-fraction",up)),"number"==typeof Yd&&(is.maximumFractionDigits=Yd),"number"==typeof cm&&(is.minimumSignificantDigits=cm),"number"==typeof jm&&(is.maximumSignificantDigits=jm);break}case"precision-integer":is.maximumFractionDigits=0;break;case"precision-unlimited":is.maximumFractionDigits=20;break;case"precision-increment":break;case"precision-currency-standard":is.trailingZeroDisplay=Po.trailingZero;break;case"precision-currency-cash":Zl(Po.style)}if(Gi)switch(Gi.style){case"compact-short":is.notation="compact",is.compactDisplay="short";break;case"compact-long":is.notation="compact",is.compactDisplay="long";break;case"notation-simple":is.notation="standard";break;case"scientific":case"engineering":{const{expDigits:Yc,expSign:Yd,source:cm,style:jm}=Gi;is.notation=jm,(Yc&&Yc>1||Yd&&"sign-auto"!==Yd)&&Zl(jm,cm);break}}if(Gn){const{min:Yc,max:Yd,source:cm}=Gn;Yc>0&&(is.minimumIntegerDigits=Yc),Number(Yd)>0&&(3!==Yd||"engineering"!==is.notation&&"scientific"!==is.notation?Zl("integer-width",cm):is.notation="engineering")}switch(Tr){case"sign-auto":is.signDisplay="auto";break;case"sign-always":is.signDisplay="always";break;case"sign-except-zero":is.signDisplay="exceptZero";break;case"sign-never":is.signDisplay="never";break;case"sign-accounting":is.currencySign="accounting";break;case"sign-accounting-always":is.currencySign="accounting",is.signDisplay="always";break;case"sign-accounting-except-zero":is.currencySign="accounting",is.signDisplay="exceptZero"}return"decimal-always"===on&&Zl(on),er&&Zl(er),is}function me(Tt,zt,on){const hn=Tt[zt];switch(hn){case"%":return{char:"%",style:"percent",width:1};case"\u2030":return{char:"%",style:"permille",width:1};case"\xa4":{let Gn=1;for(;"\xa4"===Tt[++zt];)++Gn;switch(Gn){case 1:return{char:hn,currency:"default",width:Gn};case 2:return{char:hn,currency:"iso-code",width:Gn};case 3:return{char:hn,currency:"full-name",width:Gn};case 5:return{char:hn,currency:"narrow",width:Gn};default:return on(new ee("\xa4",`Invalid number (${Gn}) of \xa4 chars in pattern`)),null}}case"*":{const Gn=Tt[zt+1];if(Gn)return{char:hn,pad:Gn,width:2};break}case"+":case"-":return{char:hn,width:1};case"'":{let Gn=Tt[++zt],Gi=2;if("'"===Gn)return{char:hn,str:Gn,width:Gi};for(;;){const Po=Tt[++zt];if(++Gi,void 0===Po)return on(new ee("'",`Unterminated quoted literal in pattern: ${Gn}`)),{char:hn,str:Gn,width:Gi};if("'"===Po){if("'"!==Tt[++zt])return{char:hn,str:Gn,width:Gi};++Gi}Gn+=Po}}}return null}const Se=Tt=>Tt>="0"&&Tt<="9";function Ue(Tt,zt){const on=Tt[zt];if(Se(on)){let hn=on;for(;;){const Gn=Tt[++zt];if(!Se(Gn))return{char:"0",digits:hn,width:hn.length};hn+=Gn}}switch(on){case"#":{let hn=1;for(;"#"===Tt[++zt];)++hn;return{char:on,width:hn}}case"@":{let hn=1;for(;"@"===Tt[++zt];)++hn;let Gn=hn;for(zt-=1;"#"===Tt[++zt];)++Gn;return{char:on,min:hn,width:Gn}}case"E":{const hn="+"===Tt[zt+1];hn&&++zt;let Gn=0;for(;"0"===Tt[++zt];)++Gn;if(Gn)return{char:on,expDigits:Gn,plus:hn,width:(hn?2:1)+Gn};break}case".":case",":return{char:on,width:1}}return null}function We(Tt,zt,on){let hn;var va;(va=hn||(hn={}))[va.Prefix=0]="Prefix",va[va.Number=1]="Number",va[va.Suffix=2]="Suffix";const Gn=[],Gi=[],Po=[];let er=hn.Prefix,Tr="";for(;zt<Tt.length;){const va=Tt[zt];if(";"===va){zt+=1;break}switch(er){case hn.Prefix:{const gl=me(Tt,zt,on);if(gl)Tr&&(Gn.push({char:"'",str:Tr,width:Tr.length}),Tr=""),Gn.push(gl),zt+=gl.width;else{const Fl=Ue(Tt,zt);Fl?(Tr&&(Gn.push({char:"'",str:Tr,width:Tr.length}),Tr=""),er=hn.Number,Gi.push(Fl),zt+=Fl.width):(Tr+=va,zt+=1)}break}case hn.Number:{const gl=Ue(Tt,zt);gl?(Gi.push(gl),zt+=gl.width):er=hn.Suffix;break}case hn.Suffix:{const gl=me(Tt,zt,on);gl?(Tr&&(Po.push({char:"'",str:Tr,width:Tr.length}),Tr=""),Po.push(gl),zt+=gl.width):(Tr+=va,zt+=1);break}}}return Tr&&Po.push({char:"'",str:Tr,width:Tr.length}),{pattern:{prefix:Gn,number:Gi,suffix:Po},pos:zt}}function lt(Tt,zt,on,hn,Gn){let Gi=!1,Po="";for(const er of Tt)switch(er.char){case"%":zt.unit={style:er.style},Gn?Gi=!0:Po="";break;case"\xa4":if(!on){hn(new ee("\xa4","The \xa4 pattern requires a currency"));break}switch(zt.unit={style:"currency",currency:on},er.currency){case"iso-code":zt.unitWidth="unit-width-iso-code";break;case"full-name":zt.unitWidth="unit-width-full-name";break;case"narrow":zt.unitWidth="unit-width-narrow"}Gn?Gi=!0:Po="";break;case"*":break;case"+":Gi||(Po+="+");break;case"'":Gi||(Po+=er.str)}return Po}function Vt(Tt,zt){let on=!1,hn="";for(const Gn of Tt)switch(Gn.char){case"%":case"\xa4":zt?on=!0:hn="";break;case"-":on||(hn+="-");break;case"'":on||(hn+=Gn.str)}return hn}function r(Tt,zt){let on=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Tr=>{throw Tr};const{tokens:hn,negative:Gn}=function et(Tt,zt){const{pattern:on,pos:hn}=We(Tt,0,zt);if(hn<Tt.length){const{pattern:Gn}=We(Tt,hn,zt);return{tokens:on,negative:Gn}}return{tokens:on}}(Tt,on),Gi=function Et(Tt,zt){const on={};let hn=!1,Gn=!1,Gi=0,Po="",er=-1,Tr="",va=0;for(let Fl=0;Fl<Tt.length;++Fl){const Zl=Tt[Fl];switch(Zl.char){case"#":-1===er?(Po&&zt(new ee("#","Pattern has # after integer digits")),Gi+=Zl.width):va+=Zl.width;break;case"0":-1===er?Po+=Zl.digits:(va&&zt(new ee("0","Pattern has digits after # in fraction")),Tr+=Zl.digits);break;case"@":on.precision&&zt(new K("precision",on.precision)),on.precision={style:"precision-fraction",minSignificant:Zl.min,maxSignificant:Zl.width};break;case",":hn=!0;break;case".":1===er&&zt(new ee(".","Pattern has more than one decimal separator")),er=Fl;break;case"E":Gn&&zt(new K("exponent",on.notation)),hn&&zt(new ee("E","Exponential patterns may not contain grouping separators")),on.notation={style:"scientific"},Zl.expDigits>1&&(on.notation.expDigits=Zl.expDigits),Zl.plus&&(on.notation.expSign="sign-always"),Gn=!0}}hn?on.group="group-auto":Gi+Po.length>3&&(on.group="group-off");const gl=+`${Po||"0"}.${Tr}`;if(gl&&(on.precision={style:"precision-increment",increment:gl}),Gn)if((!on.precision||gl)&&(on.integerWidth=Gi?{min:1,max:Gi+Po.length}:{min:Math.max(1,Po.length)}),on.precision)gl||(on.integerWidth={min:1,max:1});else{const Fl=Po.length+Tr.length;-1===er?Fl>0&&(on.precision={style:"precision-fraction",maxSignificant:Fl}):(on.precision={style:"precision-fraction",maxSignificant:Math.max(1,Fl)+va},Fl>1&&(on.precision.minSignificant=Fl))}else Po.length>1&&(on.integerWidth={min:Po.length}),!on.precision&&(Tr.length||va)&&(on.precision={style:"precision-fraction",minFraction:Tr.length,maxFraction:Tr.length+va});return on}(hn.number,on),Po=lt(hn.prefix,Gi,zt,on,!0),er=lt(hn.suffix,Gi,zt,on,!1);if(Gn){const Tr=Vt(Gn.prefix,!0),va=Vt(Gn.suffix,!1);Gi.affix={pos:[Po,er],neg:[Tr,va]},Gi.sign="sign-never"}else(Po||er)&&(Gi.affix={pos:[Po,er]});return Gi}function Pt(Tt){const[on]=Tt.split("-",1);return-1!==["acceleration","angle","area","concentr","consumption","digital","duration","electric","energy","force","frequency","graphics","length","light","mass","power","pressure","speed","temperature","torque","volume"].indexOf(on)}const Oe={"compact-short":0,"compact-long":0,"notation-simple":0,scientific:2,engineering:2,percent:0,permille:0,"base-unit":0,currency:1,"measure-unit":1,"per-measure-unit":1,"unit-width-narrow":0,"unit-width-short":0,"unit-width-full-name":0,"unit-width-iso-code":0,"unit-width-hidden":0,"precision-integer":0,"precision-unlimited":0,"precision-currency-standard":1,"precision-currency-cash":0,"precision-increment":1,"rounding-mode-ceiling":0,"rounding-mode-floor":0,"rounding-mode-down":0,"rounding-mode-up":0,"rounding-mode-half-even":0,"rounding-mode-half-down":0,"rounding-mode-half-up":0,"rounding-mode-unnecessary":0,"integer-width":1,scale:1,"group-off":0,"group-min2":0,"group-auto":0,"group-on-aligned":0,"group-thousands":0,latin:0,"numbering-system":1,"sign-auto":0,"sign-always":0,"sign-never":0,"sign-accounting":0,"sign-accounting-always":0,"sign-except-zero":0,"sign-accounting-except-zero":0,"decimal-auto":0,"decimal-always":0},ye={currency:1,"integer-width":1,"measure-unit":1,"numbering-system":1,"per-measure-unit":1,"precision-increment":1,scale:1};function Dt(Tt,zt,on){if(function ve(Tt){return Tt in Oe}(Tt)){const hn=Oe[Tt];if(zt.length>hn){if(0===hn)for(const Gn of zt)on(new j(Tt,Gn));else on(new $(Tt,zt,hn));return!1}if(function ft(Tt){return Tt in ye}(Tt)&&zt.length<ye[Tt])return on(new ne(Tt)),!1}return!0}function Rn(Tt,zt){const hn=Tt&&Tt.match("fraction"===zt?/^\.(0*)(\+|#*)$/:/^(@+)(\+|#*)$/);if(hn){const Gn=hn[1].length;switch(hn[2].charAt(0)){case"":return{min:Gn,max:Gn};case"+":return{min:Gn,max:null};case"#":return{min:Gn,max:Gn+hn[2].length}}}return null}class Xt{constructor(zt){this.skeleton={},this.onError=zt}badOption(zt,on){this.onError(new j(zt,on))}assertEmpty(zt){const on=this.skeleton[zt];on&&this.onError(new K(zt,on))}parseToken(zt,on){if(!Dt(zt,on,this.onError))return;const hn=on[0],Gn=this.skeleton;switch(zt){case"compact-short":case"compact-long":case"notation-simple":this.assertEmpty("notation"),Gn.notation={style:zt};break;case"scientific":case"engineering":{let Po,Gi=null;for(const Tr of on)switch(Tr){case"sign-auto":case"sign-always":case"sign-never":case"sign-accounting":case"sign-accounting-always":case"sign-except-zero":case"sign-accounting-except-zero":Po=Tr;break;default:/^\+e+$/.test(Tr)?Gi=Tr.length-1:this.badOption(zt,Tr)}this.assertEmpty("notation");const er=on.join("/");Gn.notation=Gi&&Po?{style:zt,source:er,expDigits:Gi,expSign:Po}:Gi?{style:zt,source:er,expDigits:Gi}:Po?{style:zt,source:er,expSign:Po}:{style:zt,source:er};break}case"percent":case"permille":case"base-unit":this.assertEmpty("unit"),Gn.unit={style:zt};break;case"currency":/^[A-Z]{3}$/.test(hn)?(this.assertEmpty("unit"),Gn.unit={style:zt,currency:hn}):this.badOption(zt,hn);break;case"measure-unit":Pt(hn)?(this.assertEmpty("unit"),Gn.unit={style:zt,unit:hn}):this.badOption(zt,hn);break;case"per-measure-unit":Pt(hn)?(this.assertEmpty("unitPer"),Gn.unitPer=hn):this.badOption(zt,hn);break;case"unit-width-narrow":case"unit-width-short":case"unit-width-full-name":case"unit-width-iso-code":case"unit-width-hidden":this.assertEmpty("unitWidth"),Gn.unitWidth=zt;break;case"precision-integer":case"precision-unlimited":case"precision-currency-cash":this.assertEmpty("precision"),Gn.precision={style:zt};break;case"precision-currency-standard":this.assertEmpty("precision"),Gn.precision="w"===hn?{style:zt,trailingZero:"stripIfInteger"}:{style:zt};break;case"precision-increment":{const Gi=Number(hn);Gi>0?(this.assertEmpty("precision"),Gn.precision={style:zt,increment:Gi}):this.badOption(zt,hn);break}case"rounding-mode-ceiling":case"rounding-mode-floor":case"rounding-mode-down":case"rounding-mode-up":case"rounding-mode-half-even":case"rounding-mode-half-odd":case"rounding-mode-half-ceiling":case"rounding-mode-half-floor":case"rounding-mode-half-down":case"rounding-mode-half-up":case"rounding-mode-unnecessary":this.assertEmpty("roundingMode"),Gn.roundingMode=zt;break;case"integer-width":if(/^\+0*$/.test(hn))this.assertEmpty("integerWidth"),Gn.integerWidth={source:hn,min:hn.length-1};else{const Gi=hn.match(/^#*(0*)$/);Gi?(this.assertEmpty("integerWidth"),Gn.integerWidth={source:hn,min:Gi[1].length,max:Gi[0].length}):this.badOption(zt,hn)}break;case"scale":{const Gi=Number(hn);Gi>0?(this.assertEmpty("scale"),Gn.scale=Gi):this.badOption(zt,hn);break}case"group-off":case"group-min2":case"group-auto":case"group-on-aligned":case"group-thousands":this.assertEmpty("group"),Gn.group=zt;break;case"latin":this.assertEmpty("numberingSystem"),Gn.numberingSystem="latn";break;case"numbering-system":!function Z(Tt){return-1!==["arab","arabext","bali","beng","deva","fullwide","gujr","guru","hanidec","khmr","knda","laoo","latn","limb","mlym","mong","mymr","orya","tamldec","telu","thai","tibt"].indexOf(Tt)}(hn)?this.badOption(zt,hn):(this.assertEmpty("numberingSystem"),Gn.numberingSystem=hn);break;case"sign-auto":case"sign-always":case"sign-never":case"sign-accounting":case"sign-accounting-always":case"sign-except-zero":case"sign-accounting-except-zero":this.assertEmpty("sign"),Gn.sign=zt;break;case"decimal-auto":case"decimal-always":this.assertEmpty("decimal"),Gn.decimal=zt;break;default:{const Gi=function ti(Tt,zt,on){const hn=Rn(Tt,"fraction");if(hn){zt.length>1&&on(new $(Tt,zt,1));const Gi={style:"precision-fraction",source:Tt,minFraction:hn.min};null!=hn.max&&(Gi.maxFraction=hn.max);const Po=zt[0],er=Rn(Po,"significant");return er?(Gi.source=`${Tt}/${Po}`,Gi.minSignificant=er.min,null!=er.max&&(Gi.maxSignificant=er.max)):Po&&on(new j(Tt,Po)),Gi}const Gn=Rn(Tt,"significant");if(Gn){for(const Po of zt)on(new j(Tt,Po));const Gi={style:"precision-fraction",source:Tt,minSignificant:Gn.min};return null!=Gn.max&&(Gi.maxSignificant=Gn.max),Gi}return null}(zt,on,this.onError);Gi?(this.assertEmpty("precision"),Gn.precision=Gi):this.onError(new Y(zt))}}}}function Je(Tt){let zt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gn=>{throw Gn};const on=[];for(const Gn of Tt.split(" "))if(Gn){const Gi=Gn.split("/"),Po=Gi.shift()||"";on.push({stem:Po,options:Gi})}const hn=new Xt(zt);for(const{stem:Gn,options:Gi}of on)hn.parseToken(Gn,Gi);return hn.skeleton}function dt(Tt,zt,on,hn){"string"==typeof zt&&(zt=0===zt.indexOf("::")?Je(zt.slice(2),hn):r(zt,on,hn));const Gn=ge(Tt,zt),Gi=Te(zt,hn),Po=function Le(Tt){const zt=at(Tt),{precision:on}=Tt;return on&&"precision-increment"===on.style?hn=>function Ke(Tt,zt){const on=+Tt+zt/2;return on-on%+zt}(hn,on.increment)*zt:hn=>hn*zt}(zt),er=new Intl.NumberFormat(Gn,Gi);if(zt.affix){const[Tr,va]=zt.affix.pos,[gl,Fl]=zt.affix.neg||["",""];return Zl=>{const is=er.format(Po(Zl));return Zl<0?`${gl}${is}${Fl}`:`${Tr}${is}${va}`}}return Tr=>er.format(Po(Tr))}function Ie(Tt,zt,on,hn){"string"==typeof zt&&(zt=0===zt.indexOf("::")?Je(zt.slice(2),hn):r(zt,on,hn));const Gn=ge(Tt,zt),Gi=Te(zt,hn),Po=function R(Tt){const zt=at(Tt),{precision:on}=Tt;if(on&&"precision-increment"===on.style){let Gn=`x - (x % +${on.increment})`;return 1!==zt&&(Gn=`(${Gn}) * ${zt}`),`function(n) { var x = ${"+n + "+on.increment/2}; return ${Gn}; }`}return 1!==zt?`function(n) { return n * ${zt}; }`:null}(zt),er=["(function() {",`var opt = ${JSON.stringify(Gi)};`,`var nf = new Intl.NumberFormat(${JSON.stringify(Gn)}, opt);`];let Tr="nf.format(value)";if(Po&&(er.push(`var mod = ${Po};`),Tr="nf.format(mod(value))"),zt.affix){const[va,gl]=zt.affix.pos.map(Fl=>JSON.stringify(Fl));if(zt.affix.neg){const[Fl,Zl]=zt.affix.neg.map(is=>JSON.stringify(is));Tr=`value < 0 ? ${Fl} + ${Tr} + ${Zl} : ${va} + ${Tr} + ${gl}`}else Tr=`${va} + ${Tr} + ${gl}`}return er.push(`return function(value) { return ${Tr}; }`),er.join("\n  ")+"\n})()"}var Tt,zt,on,ot=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ct={},tn={},yi={};zt=ot,on=function(){var zt=Object.prototype.hasOwnProperty,on=Object.prototype.toString,hn="boolean"==typeof(new RegExp).sticky;function Gn(Lr){return Lr&&"[object RegExp]"===on.call(Lr)}function Gi(Lr){return Lr&&"object"==typeof Lr&&!Gn(Lr)&&!Array.isArray(Lr)}function er(Lr){return new RegExp("|"+Lr).exec("").length-1}function Tr(Lr){return"("+Lr+")"}function va(Lr){return Lr.length?"(?:"+Lr.map(function(ws){return"(?:"+ws+")"}).join("|")+")":"(?!)"}function gl(Lr){if("string"==typeof Lr)return"(?:"+function Po(Lr){return Lr.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(Lr)+")";if(Gn(Lr)){if(Lr.ignoreCase)throw new Error("RegExp /i flag not allowed");if(Lr.global)throw new Error("RegExp /g flag is implied");if(Lr.sticky)throw new Error("RegExp /y flag is implied");if(Lr.multiline)throw new Error("RegExp /m flag is implied");return Lr.source}throw new Error("Not a pattern: "+Lr)}function Fl(Lr,Ha){return Lr.length>Ha?Lr:Array(Ha-Lr.length+1).join(" ")+Lr}function Yd(Lr,Ha){if(Gi(Ha)||(Ha={match:Ha}),Ha.include)throw new Error("Matching rules cannot also include states");var ws={defaultType:Lr,lineBreaks:!!Ha.error||!!Ha.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var cl in Ha)zt.call(Ha,cl)&&(ws[cl]=Ha[cl]);if("string"==typeof ws.type&&Lr!==ws.type)throw new Error("Type transform cannot be a string (type '"+ws.type+"' for token '"+Lr+"')");var Wl=ws.match;return ws.match=Array.isArray(Wl)?Wl:Wl?[Wl]:[],ws.match.sort(function(vl,hc){return Gn(vl)&&Gn(hc)?0:Gn(hc)?-1:Gn(vl)?1:hc.length-vl.length}),ws}function cm(Lr){return Array.isArray(Lr)?function Yc(Lr){for(var Ha=[],ws=0;ws<Lr.length;ws++){var cl=Lr[ws];if(cl.include)for(var Wl=[].concat(cl.include),vl=0;vl<Wl.length;vl++)Ha.push({include:Wl[vl]});else{if(!cl.type)throw new Error("Rule has no type: "+JSON.stringify(cl));Ha.push(Yd(cl.type,cl))}}return Ha}(Lr):function is(Lr){for(var Ha=Object.getOwnPropertyNames(Lr),ws=[],cl=0;cl<Ha.length;cl++){var Wl=Ha[cl],hc=[].concat(Lr[Wl]);if("include"!==Wl){var Fc=[];hc.forEach(function(Hl){Gi(Hl)?(Fc.length&&ws.push(Yd(Wl,Fc)),ws.push(Yd(Wl,Hl)),Fc=[]):Fc.push(Hl)}),Fc.length&&ws.push(Yd(Wl,Fc))}else for(var dd=0;dd<hc.length;dd++)ws.push({include:hc[dd]})}return ws}(Lr)}var jm=Yd("error",{lineBreaks:!0,shouldThrow:!0});function up(Lr,Ha){for(var ws=null,cl=Object.create(null),Wl=!0,vl=null,hc=[],dd=[],Fc=0;Fc<Lr.length;Fc++)Lr[Fc].fallback&&(Wl=!1);for(Fc=0;Fc<Lr.length;Fc++){var Hl=Lr[Fc];if(Hl.include)throw new Error("Inheritance is not allowed in stateless lexers");if(Hl.error||Hl.fallback){if(ws)throw!Hl.fallback==!ws.fallback?new Error("Multiple "+(Hl.fallback?"fallback":"error")+" rules not allowed (for token '"+Hl.defaultType+"')"):new Error("fallback and error are mutually exclusive (for token '"+Hl.defaultType+"')");ws=Hl}var uu=Hl.match.slice();if(Wl)for(;uu.length&&"string"==typeof uu[0]&&1===uu[0].length;)cl[uu.shift().charCodeAt(0)]=Hl;if(Hl.pop||Hl.push||Hl.next){if(!Ha)throw new Error("State-switching options are not allowed in stateless lexers (for token '"+Hl.defaultType+"')");if(Hl.fallback)throw new Error("State-switching options are not allowed on fallback tokens (for token '"+Hl.defaultType+"')")}if(0!==uu.length){Wl=!1,hc.push(Hl);for(var W_=0;W_<uu.length;W_++){var E_=uu[W_];if(Gn(E_))if(null===vl)vl=E_.unicode;else if(vl!==E_.unicode&&!1===Hl.fallback)throw new Error("If one rule is /u then all must be")}var mf=va(uu.map(gl)),Np=new RegExp(mf);if(Np.test(""))throw new Error("RegExp matches empty string: "+Np);if(er(mf)>0)throw new Error("RegExp has capture groups: "+Np+"\nUse (?: \u2026 ) instead");if(!Hl.lineBreaks&&Np.test("\n"))throw new Error("Rule should declare lineBreaks: "+Np);dd.push(Tr(mf))}}var z_=ws&&ws.fallback,pf=hn&&!z_?"ym":"gm",Gf=hn||z_?"":"|";return!0===vl&&(pf+="u"),{regexp:new RegExp(va(dd)+Gf,pf),groups:hc,fast:cl,error:ws||jm}}function u_(Lr,Ha,ws){var cl=Lr&&(Lr.push||Lr.next);if(cl&&!ws[cl])throw new Error("Missing state '"+cl+"' (in token '"+Lr.defaultType+"' of state '"+Ha+"')");if(Lr&&Lr.pop&&1!=+Lr.pop)throw new Error("pop must be 1 (in token '"+Lr.defaultType+"' of state '"+Ha+"')")}var Wd=function(Lr,Ha){this.startState=Ha,this.states=Lr,this.buffer="",this.stack=[],this.reset()};Wd.prototype.reset=function(Lr,Ha){return this.buffer=Lr||"",this.index=0,this.line=Ha?Ha.line:1,this.col=Ha?Ha.col:1,this.queuedToken=Ha?Ha.queuedToken:null,this.queuedText=Ha?Ha.queuedText:"",this.queuedThrow=Ha?Ha.queuedThrow:null,this.setState(Ha?Ha.state:this.startState),this.stack=Ha&&Ha.stack?Ha.stack.slice():[],this},Wd.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedText:this.queuedText,queuedThrow:this.queuedThrow}},Wd.prototype.setState=function(Lr){if(Lr&&this.state!==Lr){this.state=Lr;var Ha=this.states[Lr];this.groups=Ha.groups,this.error=Ha.error,this.re=Ha.regexp,this.fast=Ha.fast}},Wd.prototype.popState=function(){this.setState(this.stack.pop())},Wd.prototype.pushState=function(Lr){this.stack.push(this.state),this.setState(Lr)};var Zf=hn?function(Lr,Ha){return Lr.exec(Ha)}:function(Lr,Ha){var ws=Lr.exec(Ha);return 0===ws[0].length?null:ws};function Hf(){return this.value}if(Wd.prototype._getGroup=function(Lr){for(var Ha=this.groups.length,ws=0;ws<Ha;ws++)if(void 0!==Lr[ws+1])return this.groups[ws];throw new Error("Cannot find token type for matched text")},Wd.prototype.next=function(){var Lr=this.index;if(this.queuedGroup){var Ha=this._token(this.queuedGroup,this.queuedText,Lr);return this.queuedGroup=null,this.queuedText="",Ha}var ws=this.buffer;if(Lr!==ws.length){if(hc=this.fast[ws.charCodeAt(Lr)])return this._token(hc,ws.charAt(Lr),Lr);var cl=this.re;cl.lastIndex=Lr;var Wl=Zf(cl,ws),vl=this.error;if(null==Wl)return this._token(vl,ws.slice(Lr,ws.length),Lr);var hc=this._getGroup(Wl),dd=Wl[0];return vl.fallback&&Wl.index!==Lr?(this.queuedGroup=hc,this.queuedText=dd,this._token(vl,ws.slice(Lr,Wl.index),Lr)):this._token(hc,dd,Lr)}},Wd.prototype._token=function(Lr,Ha,ws){var cl=0;if(Lr.lineBreaks){var Wl=/\n/g,vl=1;if("\n"===Ha)cl=1;else for(;Wl.exec(Ha);)cl++,vl=Wl.lastIndex}var hc={type:"function"==typeof Lr.type&&Lr.type(Ha)||Lr.defaultType,value:"function"==typeof Lr.value?Lr.value(Ha):Ha,text:Ha,toString:Hf,offset:ws,lineBreaks:cl,line:this.line,col:this.col},dd=Ha.length;if(this.index+=dd,this.line+=cl,0!==cl?this.col=dd-vl+1:this.col+=dd,Lr.shouldThrow)throw new Error(this.formatError(hc,"invalid syntax"));return Lr.pop?this.popState():Lr.push?this.pushState(Lr.push):Lr.next&&this.setState(Lr.next),hc},typeof Symbol<"u"&&Symbol.iterator){var Yp=function(Lr){this.lexer=Lr};Yp.prototype.next=function(){var Lr=this.lexer.next();return{value:Lr,done:!Lr}},Yp.prototype[Symbol.iterator]=function(){return this},Wd.prototype[Symbol.iterator]=function(){return new Yp(this)}}return Wd.prototype.formatError=function(Lr,Ha){if(null==Lr){var ws=this.buffer.slice(this.index);Lr={text:ws,offset:this.index,lineBreaks:-1===ws.indexOf("\n")?0:1,line:this.line,col:this.col}}var Wl=Math.max(Lr.line-2,1),hc=String(Lr.line+2).length,dd=function Zl(Lr,Ha){for(var ws=Lr.length,cl=0;;){var Wl=Lr.lastIndexOf("\n",ws-1);if(-1===Wl||(ws=Wl,++cl===Ha)||0===ws)break}return Lr.substring(cl<Ha?0:ws+1).split("\n")}(this.buffer,this.line-Lr.line+2+1).slice(0,5),Fc=[];Fc.push(Ha+" at line "+Lr.line+" col "+Lr.col+":"),Fc.push("");for(var Hl=0;Hl<dd.length;Hl++){var uu=dd[Hl],Y_=Wl+Hl;Fc.push(Fl(String(Y_),hc)+"  "+uu),Y_===Lr.line&&Fc.push(Fl("",hc+Lr.col+1)+"^")}return Fc.join("\n")},Wd.prototype.clone=function(){return new Wd(this.states,this.state)},Wd.prototype.has=function(Lr){return!0},{compile:function T_(Lr){var Ha=up(cm(Lr));return new Wd({start:Ha},"start")},states:function kp(Lr,Ha){var ws=Lr.$all?cm(Lr.$all):[];delete Lr.$all;var cl=Object.getOwnPropertyNames(Lr);Ha||(Ha=cl[0]);for(var Wl=Object.create(null),vl=0;vl<cl.length;vl++)Wl[hc=cl[vl]]=cm(Lr[hc]).concat(ws);for(vl=0;vl<cl.length;vl++)for(var dd=Wl[hc=cl[vl]],Fc=Object.create(null),Hl=0;Hl<dd.length;Hl++){var uu=dd[Hl];if(uu.include){var Y_=[Hl,1];if(uu.include!==hc&&!Fc[uu.include]){Fc[uu.include]=!0;var W_=Wl[uu.include];if(!W_)throw new Error("Cannot include nonexistent state '"+uu.include+"' (in state '"+hc+"')");for(var E_=0;E_<W_.length;E_++){var mf=W_[E_];-1===dd.indexOf(mf)&&Y_.push(mf)}}dd.splice.apply(dd,Y_),Hl--}}var Np=Object.create(null);for(vl=0;vl<cl.length;vl++){var hc;Np[hc=cl[vl]]=up(Wl[hc],!0)}for(vl=0;vl<cl.length;vl++){var uf=cl[vl],z_=Np[uf],pf=z_.groups;for(Hl=0;Hl<pf.length;Hl++)u_(pf[Hl],uf,Np);var Gf=Object.getOwnPropertyNames(z_.fast);for(Hl=0;Hl<Gf.length;Hl++)u_(z_.fast[Gf[Hl]],uf,Np)}return new Wd(Np,Ha)},error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:function p_(Lr){for(var Ha=typeof Map<"u",ws=Ha?new Map:Object.create(null),cl=Object.getOwnPropertyNames(Lr),Wl=0;Wl<cl.length;Wl++){var vl=cl[Wl],hc=Lr[vl];(Array.isArray(hc)?hc:[hc]).forEach(function(Fc){if("string"!=typeof Fc)throw new Error("keyword must be string (in keyword '"+vl+"')");Ha?ws.set(Fc,vl):ws[Fc]=vl})}return function(Fc){return Ha?ws.get(Fc):ws[Fc]}}}},(Tt={get exports(){return yi},set exports(Tt){yi=Tt}}).exports?Tt.exports=on():zt.moo=on(),function(Tt){var zt=ot&&ot.__importDefault||function(hn){return hn&&hn.__esModule?hn:{default:hn}};Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.lexer=Tt.states=void 0;const on=zt(yi);Tt.states={body:{doubleapos:{match:"''",value:()=>"'"},quoted:{lineBreaks:!0,match:/'[{}#](?:[^]*?[^'])?'(?!')/u,value:hn=>hn.slice(1,-1).replace(/''/g,"'")},argument:{lineBreaks:!0,match:/\{\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,push:"arg",value:hn=>hn.substring(1).trim()},octothorpe:"#",end:{match:"}",pop:1},content:{lineBreaks:!0,match:/[^][^{}#']*/u}},arg:{select:{lineBreaks:!0,match:/,\s*(?:plural|select|selectordinal)\s*,\s*/u,next:"select",value:hn=>hn.split(",")[1].trim()},"func-args":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*,/u,next:"body",value:hn=>hn.split(",")[1].trim()},"func-simple":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,value:hn=>hn.substring(1).trim()},end:{match:"}",pop:1}},select:{offset:{lineBreaks:!0,match:/\s*offset\s*:\s*\d+\s*/u,value:hn=>hn.split(":")[1].trim()},case:{lineBreaks:!0,match:/\s*(?:=\d+|[^\p{Pat_Syn}\p{Pat_WS}]+)\s*\{/u,push:"body",value:hn=>hn.substring(0,hn.indexOf("{")).trim()},end:{match:/\s*\}/u,pop:1}}},Tt.lexer=on.default.states(Tt.states)}(tn),Object.defineProperty(ct,"__esModule",{value:!0});var sn=ct.parse=ct.ParseError=void 0;const bn=tn,vt=Tt=>({offset:Tt.offset,line:Tt.line,col:Tt.col,text:Tt.text,lineBreaks:Tt.lineBreaks}),nn=Tt=>"plural"===Tt||"select"===Tt||"selectordinal"===Tt;const ii=["number","date","time","spellout","ordinal","duration"],Oo=["zero","one","two","few","many","other"];class no extends Error{constructor(zt,on){super(bn.lexer.formatError(zt,on))}}ct.ParseError=no;class Li{constructor(zt,on){var hn,Gn,Gi,Po;this.lexer=bn.lexer.reset(zt),this.cardinalKeys=null!==(hn=on?.cardinal)&&void 0!==hn?hn:Oo,this.ordinalKeys=null!==(Gn=on?.ordinal)&&void 0!==Gn?Gn:Oo,this.strict=null!==(Gi=on?.strict)&&void 0!==Gi&&Gi,this.strictPluralKeys=null===(Po=on?.strictPluralKeys)||void 0===Po||Po}parse(){return this.parseBody(!1,!0)}checkSelectKey(zt,on,hn){if("="===hn[0]){if("select"===on)throw new no(zt,`The case ${hn} is not valid with select`)}else if("select"!==on){const Gn="plural"===on?this.cardinalKeys:this.ordinalKeys;if(this.strictPluralKeys&&Gn.length>0&&!Gn.includes(hn))throw new no(zt,`The ${on} case ${hn} is not valid in this locale`)}}parseSelect(zt,on,hn,Gn){let{value:Gi}=zt;const Po={type:Gn,arg:Gi,cases:[],ctx:hn};"plural"===Gn||"selectordinal"===Gn?on=!0:this.strict&&(on=!1);for(const er of this.lexer)switch(er.type){case"offset":if("select"===Gn)throw new no(er,"Unexpected plural offset for select");if(Po.cases.length>0)throw new no(er,"Plural offset must be set before cases");Po.pluralOffset=Number(er.value),hn.text+=er.text,hn.lineBreaks+=er.lineBreaks;break;case"case":this.checkSelectKey(er,Gn,er.value),Po.cases.push({key:er.value,tokens:this.parseBody(on),ctx:vt(er)});break;case"end":return Po;default:throw new no(er,`Unexpected lexer token: ${er.type}`)}throw new no(null,"Unexpected message end")}parseArgToken(zt,on){const hn=vt(zt),Gn=this.lexer.next();if(!Gn)throw new no(null,"Unexpected message end");if(hn.text+=Gn.text,hn.lineBreaks+=Gn.lineBreaks,this.strict&&("func-simple"===Gn.type||"func-args"===Gn.type)&&!ii.includes(Gn.value))throw new no(zt,`Invalid strict mode function arg type: ${Gn.value}`);switch(Gn.type){case"end":return{type:"argument",arg:zt.value,ctx:hn};case"func-simple":{const Gi=this.lexer.next();if(!Gi)throw new no(null,"Unexpected message end");if("end"!==Gi.type)throw new no(Gi,`Unexpected lexer token: ${Gi.type}`);if(hn.text+=Gi.text,nn(Gn.value.toLowerCase()))throw new no(Gn,`Invalid type identifier: ${Gn.value}`);return{type:"function",arg:zt.value,key:Gn.value,ctx:hn}}case"func-args":{if(nn(Gn.value.toLowerCase()))throw new no(Gn,`Invalid type identifier: ${Gn.value}`);let Gi=this.parseBody(!this.strict&&on);return this.strict&&Gi.length>0&&(Gi=function rn(Tt,zt){let on="",hn="";for(const Gi of zt){const Po=Gi.ctx.text;switch(hn+=Po,Gi.type){case"content":on+=Gi.value;break;case"argument":case"function":case"octothorpe":on+=Po;break;default:throw new no(Tt,`Unsupported part in strict mode function arg style: ${Po}`)}}return[{type:"content",value:on.trim(),ctx:Object.assign({},zt[0].ctx,{text:hn})}]}(zt,Gi)),{type:"function",arg:zt.value,key:Gn.value,param:Gi,ctx:hn}}case"select":if(nn(Gn.value))return this.parseSelect(zt,on,hn,Gn.value);throw new no(Gn,`Unexpected select type ${Gn.value}`);default:throw new no(Gn,`Unexpected lexer token: ${Gn.type}`)}}parseBody(zt,on){const hn=[];let Gn=null;for(const Gi of this.lexer)if("argument"===Gi.type)Gn&&(Gn=null),hn.push(this.parseArgToken(Gi,zt));else if("octothorpe"===Gi.type&&zt)Gn&&(Gn=null),hn.push({type:"octothorpe",ctx:vt(Gi)});else{if("end"===Gi.type&&!on)return hn;{let Po=Gi.value;if(!zt&&"quoted"===Gi.type&&"#"===Po[0]){if(Po.includes("{"))throw new no(Gi,`Unsupported escape pattern: ${Po}`);Po=Gi.text}Gn?(Gn.value+=Po,Gn.ctx.text+=Gi.text,Gn.ctx.lineBreaks+=Gi.lineBreaks):(Gn={type:"content",value:Po,ctx:vt(Gi)},hn.push(Gn))}}if(on)return hn;throw new no(null,"Unexpected message end")}}function Ii(Tt){return Ii[Tt]||(Ii[Tt]=new Intl.NumberFormat(Tt))}sn=ct.parse=function ji(Tt){return new Li(Tt,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).parse()};var He=Object.freeze({__proto__:null,_nf:Ii,number:function _i(Tt,zt,on){return Ii(Tt).format(zt-on)},plural:function co(Tt,zt,on,hn,Gn){if({}.hasOwnProperty.call(hn,Tt))return hn[Tt];zt&&(Tt-=zt);var Gi=on(Tt,Gn);return Gi in hn?hn[Gi]:hn.other},reqArgs:function ln(Tt,zt){for(var on=0;on<Tt.length;++on)if(!zt||void 0===zt[Tt[on]])throw new Error("Message requires argument '".concat(Tt[on],"'"))},select:function yn(Tt,zt){return{}.hasOwnProperty.call(zt,Tt)?zt[Tt]:zt.other},strictNumber:function En(Tt,zt,on,hn){var Gn=zt-on;if(isNaN(Gn))throw new Error("`"+hn+"` or its offset is not a number");return Ii(Tt).format(Gn)}});var Ve={};function Ce(Tt,zt){var on=String(Tt)+JSON.stringify(zt);return Ve[on]||(Ve[on]=new Intl.NumberFormat(Tt,zt)),Ve[on]}var Fn=Object.freeze({__proto__:null,date:function rt(Tt,zt,on){var hn={day:"numeric",month:"short",year:"numeric"};switch(on){case"full":hn.weekday="long";case"long":hn.month="long";break;case"short":hn.month="numeric"}return new Date(Tt).toLocaleDateString(zt,hn)},duration:function $e(Tt){if("number"!=typeof Tt&&(Tt=Number(Tt)),!isFinite(Tt))return String(Tt);var zt="";Tt<0?(zt="-",Tt=Math.abs(Tt)):Tt=Number(Tt);var on=Tt%60,hn=[Math.round(on)===on?on:on.toFixed(3)];return Tt<60?hn.unshift(0):(Tt=Math.round((Tt-Number(hn[0]))/60),hn.unshift(Tt%60),Tt>=60&&(Tt=Math.round((Tt-Number(hn[0]))/60),hn.unshift(Tt))),zt+hn.shift()+":"+hn.map(function(Gi){return Number(Gi)<10?"0"+String(Gi):String(Gi)}).join(":")},numberCurrency:function(Tt,zt,on){return Ce(zt,{style:"currency",currency:on,minimumFractionDigits:2,maximumFractionDigits:2}).format(Tt)},numberFmt:function tt(Tt,zt,on,hn){var Gn=on&&on.split(":")||[],Gi=Gn[0],Po=Gn[1];return Ce(zt,{integer:{maximumFractionDigits:0},percent:{style:"percent"},currency:{style:"currency",currency:Po&&Po.trim()||hn,minimumFractionDigits:2,maximumFractionDigits:2}}[Gi]||{}).format(Tt)},numberInteger:function(Tt,zt){return Ce(zt,{maximumFractionDigits:0}).format(Tt)},numberPercent:function(Tt,zt){return Ce(zt,{style:"percent"}).format(Tt)},time:function Yt(Tt,zt,on){var hn={second:"numeric",minute:"numeric",hour:"numeric"};switch(on){case"full":case"long":hn.timeZoneName="short";break;case"short":delete hn.second}return new Date(Tt).toLocaleTimeString(zt,hn)}}),si={ES3:{break:!0,continue:!0,delete:!0,else:!0,for:!0,function:!0,if:!0,in:!0,new:!0,return:!0,this:!0,typeof:!0,var:!0,void:!0,while:!0,with:!0,case:!0,catch:!0,default:!0,do:!0,finally:!0,instanceof:!0,switch:!0,throw:!0,try:!0},ESnext:{await:!0,debugger:!0,class:!0,enum:!0,extends:!0,super:!0,const:!0,export:!0,import:!0,null:!0,true:!0,false:!0,implements:!0,let:!0,private:!0,public:!0,yield:!0,interface:!0,package:!0,protected:!0,static:!0}};function _o(Tt,zt){zt&&(Tt+=" "+function oo(Tt){let zt=0;for(let on=0;on<Tt.length;++on)zt=(zt<<5)-zt+Tt.charCodeAt(on),zt|=0;return zt}(Tt).toString(36));const on=Tt.trim().replace(/\W+/g,"_");return si.ES3[on]||si.ESnext[on]||/^\d/.test(on)?"_"+on:on}function Hn(Tt,zt){if(/^[A-Z_$][0-9A-Z_$]*$/i.test(zt)&&!si.ES3[zt])return Tt?Tt+"."+zt:zt;{const on=JSON.stringify(zt);return Tt?Tt+"["+on+"]":on}}var vn=new RegExp("^"+["ar","ckb","fa","he","ks($|[^bfh])","lrc","mzn","pa-Arab","ps","ug","ur","uz-Arab","yi"].join("|^"));var Kn="@messageformat/runtime/lib/plurals",Wi=function(){function Tt(zt){this.arguments=[],this.runtime={},this.options=zt}return Tt.prototype.compile=function(zt,on,hn){var Gn,Gi,Po=this,er=this.options,Tr=er.localeCodeFromKey,va=er.requireAllArguments,gl=er.strict,Fl=er.strictPluralKeys;if("object"==typeof zt){var Zl={};try{for(var is=a(Object.keys(zt)),Yc=is.next();!Yc.done;Yc=is.next()){var Yd=Yc.value,cm=Tr?Tr(Yd):Yd;Zl[Yd]=this.compile(zt[Yd],hn&&cm&&hn[cm]||on,hn)}}catch(Wd){Gn={error:Wd}}finally{try{Yc&&!Yc.done&&(Gi=is.return)&&Gi.call(is)}finally{if(Gn)throw Gn.error}}return Zl}this.plural=on;var up={cardinal:on.cardinals,ordinal:on.ordinals,strict:gl,strictPluralKeys:Fl};this.arguments=[];var T_=sn(zt,up).map(function(Wd){return Po.token(Wd,null)}),u_=this.arguments.length>0,kp=this.concatenate(T_,!0);if(va&&u_){this.setRuntimeFn("reqArgs");var p_=JSON.stringify(this.arguments);return"(d) => { reqArgs(".concat(p_,", d); return ").concat(kp,"; }")}return"(".concat(u_?"d":"",") => ").concat(kp)},Tt.prototype.cases=function(zt,on){var hn=this,Gn=!0,Gi=zt.cases.map(function(gl){var Fl=gl.key;"other"===Fl&&(Gn=!1);var is=gl.tokens.map(function(Yc){return hn.token(Yc,on)});return"".concat(Hn(null,Fl.replace(/^=/,"")),": ").concat(hn.concatenate(is,!1))});if(Gn){var Po=zt.type,er=this.plural,va=er.ordinals;if("select"===Po||"plural"===Po&&er.cardinals.includes("other")||"selectordinal"===Po&&va.includes("other"))throw new Error("No 'other' form found in ".concat(JSON.stringify(zt)))}return"{ ".concat(Gi.join(", ")," }")},Tt.prototype.concatenate=function(zt,on){return"values"===this.options.returnType&&(on||zt.length>1)?"["+zt.join(", ")+"]":zt.join(" + ")||'""'},Tt.prototype.token=function(zt,on){if("content"===zt.type)return JSON.stringify(zt.value);var Po,er,hn=this.plural,Gn=hn.id,Gi=hn.lc;switch("arg"in zt?(this.arguments.push(zt.arg),Po=[Hn("d",zt.arg)]):Po=[],zt.type){case"argument":return this.options.biDiSupport?function Ji(Tt,zt){var on=vn.test(zt),hn=JSON.stringify(on?"\u200f":"\u200e");return"".concat(hn," + ").concat(Tt," + ").concat(hn)}(String(Po[0]),Gi):String(Po[0]);case"select":er="select",on&&this.options.strict&&(on=null),Po.push(this.cases(zt,on)),this.setRuntimeFn("select");break;case"selectordinal":er="plural",Po.push(zt.pluralOffset||0,Gn,this.cases(zt,zt),1),this.setLocale(Gn,!0),this.setRuntimeFn("plural");break;case"plural":er="plural",Po.push(zt.pluralOffset||0,Gn,this.cases(zt,zt)),this.setLocale(Gn,!1),this.setRuntimeFn("plural");break;case"function":if(!this.options.customFormatters[zt.key]){if("date"===zt.key){er=this.setDateFormatter(zt,Po,on);break}if("number"===zt.key){er=this.setNumberFormatter(zt,Po,on);break}}if(Po.push(JSON.stringify(this.plural.locale)),zt.param){on&&this.options.strict&&(on=null);var Tr=this.getFormatterArg(zt,on);Tr&&Po.push(Tr)}this.setFormatter(er=zt.key);break;case"octothorpe":if(!on)return'"#"';Po=[JSON.stringify(this.plural.locale),Hn("d",on.arg),on.pluralOffset||0],this.options.strict?(er="strictNumber",Po.push(JSON.stringify(on.arg)),this.setRuntimeFn("strictNumber")):(er="number",this.setRuntimeFn("number"))}if(!er)throw new Error("Parser error for token "+JSON.stringify(zt));return"".concat(er,"(").concat(Po.join(", "),")")},Tt.prototype.runtimeIncludes=function(zt,on){if(_o(zt)!==zt)throw new SyntaxError("Reserved word used as ".concat(on," identifier: ").concat(zt));var hn=this.runtime[zt];if(!hn||hn.type===on)return hn;throw new TypeError("Cannot override ".concat(hn.type," runtime function as ").concat(on,": ").concat(zt))},Tt.prototype.setLocale=function(zt,on){var Tr,va,gl,hn=this.runtimeIncludes(zt,"locale"),Gn=this.plural,Gi=Gn.getCardinal,Po=Gn.getPlural,er=Gn.isDefault;if(!on&&er&&Gi){if(hn)return;Tr=function(Fl){return Gi(Fl)},va="@messageformat/runtime/lib/cardinals",gl=function(){return String(Gi)}}else{if(hn&&(!er||hn.module===Kn))return;Tr=function(Fl,Zl){return Po(Fl,Zl)},va=er?Kn:Po.module||null,gl=function(){return String(Po)}}this.runtime[zt]=Object.assign(Tr,{id:zt,module:va,toString:gl,type:"locale"})},Tt.prototype.setRuntimeFn=function(zt){this.runtimeIncludes(zt,"runtime")||(this.runtime[zt]=Object.assign(He[zt],{id:zt,module:"@messageformat/runtime",type:"runtime"}))},Tt.prototype.getFormatterArg=function(zt,on){var hn,Gn,Gi,Po,er=this,Tr=zt.key,va=zt.param,gl=this.options.customFormatters[Tr]||Ft(Tr)&&Fn[Tr];if(!gl||!va)return null;var Fl="arg"in gl&&gl.arg||"string";if("options"===Fl){var Zl="";try{for(var is=a(va),Yc=is.next();!Yc.done;Yc=is.next()){var Yd=Yc.value;if("content"!==Yd.type)throw new SyntaxError("Expected literal options for ".concat(Tr," formatter"));Zl+=Yd.value}}catch(Yp){hn={error:Yp}}finally{try{Yc&&!Yc.done&&(Gn=is.return)&&Gn.call(is)}finally{if(hn)throw hn.error}}var cm={};try{for(var jm=a(Zl.split(",")),up=jm.next();!up.done;up=jm.next()){var T_=up.value,u_=T_.indexOf(":");if(-1===u_)cm[T_.trim()]=null;else{var kp=T_.substring(0,u_).trim(),p_=T_.substring(u_+1).trim();if("true"===p_)cm[kp]=!0;else if("false"===p_)cm[kp]=!1;else if("null"===p_)cm[kp]=null;else{var Wd=Number(p_);cm[kp]=Number.isFinite(Wd)?Wd:p_}}}}catch(Yp){Gi={error:Yp}}finally{try{up&&!up.done&&(Po=jm.return)&&Po.call(jm)}finally{if(Gi)throw Gi.error}}return JSON.stringify(cm)}var Zf=va.map(function(Yp){return er.token(Yp,on)});if("raw"===Fl)return"[".concat(Zf.join(", "),"]");var Hf=Zf.join(" + ");return Hf?"(".concat(Hf,").trim()"):'""'},Tt.prototype.setFormatter=function(zt){if(!this.runtimeIncludes(zt,"formatter")){var on=this.options.customFormatters[zt];if(on)"function"==typeof on&&(on={formatter:on}),this.runtime[zt]=Object.assign(on.formatter,{type:"formatter"},"module"in on&&on.module&&on.id?{id:_o(on.id),module:on.module}:{id:null,module:null});else{if(!Ft(zt))throw new Error("Formatting function not found: ".concat(zt));this.runtime[zt]=Object.assign(Fn[zt],{type:"formatter"},{id:zt,module:"@messageformat/runtime/lib/formatters"})}}},Tt.prototype.setDateFormatter=function(zt,on,hn){var Gn=this,Gi=zt.param,Po=this.plural.locale,er=Gi&&1===Gi.length&&Gi[0];if(er&&"content"===er.type&&/^\s*::/.test(er.value)){var Tr=er.value.trim().substr(2),va=_o("date_".concat(Po,"_").concat(Tr),!0);if(!this.runtimeIncludes(va,"formatter")){var gl=function ae(Tt,zt,on){"string"==typeof zt&&(zt=B(zt));const hn=b(zt,on),Gn=new Intl.DateTimeFormat(Tt,hn);return Gi=>Gn.format(Gi)}(Po,Tr);this.runtime[va]=Object.assign(gl,{id:va,module:null,toString:function(){return function J(Tt,zt,on){"string"==typeof zt&&(zt=B(zt));const hn=b(zt,on);return["(function() {",`var opt = ${JSON.stringify(hn)};`,`var dtf = new Intl.DateTimeFormat(${JSON.stringify(Tt)}, opt);`,"return function(value) { return dtf.format(value); }"].join("\n  ")+"\n})()"}(Po,Tr)},type:"formatter"})}return va}if(on.push(JSON.stringify(Po)),Gi&&Gi.length>0){hn&&this.options.strict&&(hn=null);var Fl=Gi.map(function(Zl){return Gn.token(Zl,hn)});on.push("("+(Fl.join(" + ")||'""')+").trim()")}return this.setFormatter("date"),"date"},Tt.prototype.setNumberFormatter=function(zt,on,hn){var Gn=this,Gi=zt.param,Po=this.plural.locale;if(!Gi||0===Gi.length)return on.unshift(JSON.stringify(Po)),on.push("0"),this.setRuntimeFn("number"),"number";if(on.push(JSON.stringify(Po)),1===Gi.length&&"content"===Gi[0].type){var er=Gi[0].value.trim();switch(er){case"currency":return on.push(JSON.stringify(this.options.currency)),this.setFormatter("numberCurrency"),"numberCurrency";case"integer":return this.setFormatter("numberInteger"),"numberInteger";case"percent":return this.setFormatter("numberPercent"),"numberPercent"}var Tr=er.match(/^currency:([A-Z]+)$/);if(Tr)return on.push(JSON.stringify(Tr[1])),this.setFormatter("numberCurrency"),"numberCurrency";var va=_o("number_".concat(Po,"_").concat(er),!0);if(!this.runtimeIncludes(va,"formatter")){var gl=this.options.currency,Fl=dt(Po,er,gl);this.runtime[va]=Object.assign(Fl,{id:null,module:null,toString:function(){return Ie(Po,er,gl)},type:"formatter"})}return va}hn&&this.options.strict&&(hn=null);var Zl=Gi.map(function(is){return Gn.token(is,hn)});return on.push("("+(Zl.join(" + ")||'""')+").trim()"),on.push(JSON.stringify(this.options.currency)),this.setFormatter("numberFmt"),"numberFmt"},Tt}();function Ft(Tt){return Tt in Fn}const Oi=Tt=>1==Tt?"one":"other",On=Tt=>0==Tt||1==Tt?"one":"other",_n=Tt=>Tt>=0&&Tt<=1?"one":"other",st=Tt=>{const zt=String(Tt).split(".");return 1!=Tt||zt[1]?"other":"one"},Dn=Tt=>"other",Wt=Tt=>1==Tt?"one":2==Tt?"two":"other";var pt=Object.freeze({__proto__:null,af:Oi,ak:On,am:_n,an:Oi,ar:Tt=>{const zt=String(Tt).split("."),hn=Number(zt[0])==Tt&&zt[0].slice(-2);return 0==Tt?"zero":1==Tt?"one":2==Tt?"two":hn>=3&&hn<=10?"few":hn>=11&&hn<=99?"many":"other"},ars:Tt=>{const zt=String(Tt).split("."),hn=Number(zt[0])==Tt&&zt[0].slice(-2);return 0==Tt?"zero":1==Tt?"one":2==Tt?"two":hn>=3&&hn<=10?"few":hn>=11&&hn<=99?"many":"other"},as:_n,asa:Oi,ast:st,az:Oi,bal:Oi,be:Tt=>{const zt=String(Tt).split("."),on=Number(zt[0])==Tt,hn=on&&zt[0].slice(-1),Gn=on&&zt[0].slice(-2);return 1==hn&&11!=Gn?"one":hn>=2&&hn<=4&&(Gn<12||Gn>14)?"few":on&&0==hn||hn>=5&&hn<=9||Gn>=11&&Gn<=14?"many":"other"},bem:Oi,bez:Oi,bg:Oi,bho:On,bm:Dn,bn:_n,bo:Dn,br:Tt=>{const zt=String(Tt).split("."),on=Number(zt[0])==Tt,hn=on&&zt[0].slice(-1),Gn=on&&zt[0].slice(-2),Gi=on&&zt[0].slice(-6);return 1==hn&&11!=Gn&&71!=Gn&&91!=Gn?"one":2==hn&&12!=Gn&&72!=Gn&&92!=Gn?"two":(3==hn||4==hn||9==hn)&&(Gn<10||Gn>19)&&(Gn<70||Gn>79)&&(Gn<90||Gn>99)?"few":0!=Tt&&on&&0==Gi?"many":"other"},brx:Oi,bs:Tt=>{const zt=String(Tt).split("."),on=zt[0],hn=zt[1]||"",Gn=!zt[1],Gi=on.slice(-1),Po=on.slice(-2),er=hn.slice(-1),Tr=hn.slice(-2);return Gn&&1==Gi&&11!=Po||1==er&&11!=Tr?"one":Gn&&Gi>=2&&Gi<=4&&(Po<12||Po>14)||er>=2&&er<=4&&(Tr<12||Tr>14)?"few":"other"},ca:Tt=>{const zt=String(Tt).split("."),on=zt[0],hn=!zt[1],Gn=on.slice(-6);return 1==Tt&&hn?"one":0!=on&&0==Gn&&hn?"many":"other"},ce:Oi,ceb:Tt=>{const zt=String(Tt).split("."),on=zt[0],hn=zt[1]||"",Gn=!zt[1],Gi=on.slice(-1),Po=hn.slice(-1);return Gn&&(1==on||2==on||3==on)||Gn&&4!=Gi&&6!=Gi&&9!=Gi||!Gn&&4!=Po&&6!=Po&&9!=Po?"one":"other"},cgg:Oi,chr:Oi,ckb:Oi,cs:Tt=>{const zt=String(Tt).split("."),on=zt[0],hn=!zt[1];return 1==Tt&&hn?"one":on>=2&&on<=4&&hn?"few":hn?"other":"many"},cy:Tt=>0==Tt?"zero":1==Tt?"one":2==Tt?"two":3==Tt?"few":6==Tt?"many":"other",da:Tt=>{const zt=String(Tt).split("."),on=zt[0],hn=Number(zt[0])==Tt;return 1!=Tt&&(hn||0!=on&&1!=on)?"other":"one"},de:st,doi:_n,dsb:Tt=>{const zt=String(Tt).split("."),hn=zt[1]||"",Gn=!zt[1],Gi=zt[0].slice(-2),Po=hn.slice(-2);return Gn&&1==Gi||1==Po?"one":Gn&&2==Gi||2==Po?"two":Gn&&(3==Gi||4==Gi)||3==Po||4==Po?"few":"other"},dv:Oi,dz:Dn,ee:Oi,el:Oi,en:st,eo:Oi,es:Tt=>{const zt=String(Tt).split("."),on=zt[0],hn=!zt[1],Gn=on.slice(-6);return 1==Tt?"one":0!=on&&0==Gn&&hn?"many":"other"},et:st,eu:Oi,fa:_n,ff:Tt=>Tt>=0&&Tt<2?"one":"other",fi:st,fil:Tt=>{const zt=String(Tt).split("."),on=zt[0],hn=zt[1]||"",Gn=!zt[1],Gi=on.slice(-1),Po=hn.slice(-1);return Gn&&(1==on||2==on||3==on)||Gn&&4!=Gi&&6!=Gi&&9!=Gi||!Gn&&4!=Po&&6!=Po&&9!=Po?"one":"other"},fo:Oi,fr:Tt=>{const zt=String(Tt).split("."),on=zt[0],hn=!zt[1],Gn=on.slice(-6);return Tt>=0&&Tt<2?"one":0!=on&&0==Gn&&hn?"many":"other"},fur:Oi,fy:st,ga:Tt=>{const zt=String(Tt).split("."),on=Number(zt[0])==Tt;return 1==Tt?"one":2==Tt?"two":on&&Tt>=3&&Tt<=6?"few":on&&Tt>=7&&Tt<=10?"many":"other"},gd:Tt=>{const zt=String(Tt).split("."),on=Number(zt[0])==Tt;return 1==Tt||11==Tt?"one":2==Tt||12==Tt?"two":on&&Tt>=3&&Tt<=10||on&&Tt>=13&&Tt<=19?"few":"other"},gl:st,gsw:Oi,gu:_n,guw:On,gv:Tt=>{const zt=String(Tt).split("."),on=zt[0],hn=!zt[1],Gn=on.slice(-1),Gi=on.slice(-2);return hn&&1==Gn?"one":hn&&2==Gn?"two":!hn||0!=Gi&&20!=Gi&&40!=Gi&&60!=Gi&&80!=Gi?hn?"other":"many":"few"},ha:Oi,haw:Oi,he:Tt=>{const zt=String(Tt).split("."),on=zt[0],hn=!zt[1];return 1==on&&hn||0==on&&!hn?"one":2==on&&hn?"two":"other"},hi:_n,hnj:Dn,hr:Tt=>{const zt=String(Tt).split("."),on=zt[0],hn=zt[1]||"",Gn=!zt[1],Gi=on.slice(-1),Po=on.slice(-2),er=hn.slice(-1),Tr=hn.slice(-2);return Gn&&1==Gi&&11!=Po||1==er&&11!=Tr?"one":Gn&&Gi>=2&&Gi<=4&&(Po<12||Po>14)||er>=2&&er<=4&&(Tr<12||Tr>14)?"few":"other"},hsb:Tt=>{const zt=String(Tt).split("."),hn=zt[1]||"",Gn=!zt[1],Gi=zt[0].slice(-2),Po=hn.slice(-2);return Gn&&1==Gi||1==Po?"one":Gn&&2==Gi||2==Po?"two":Gn&&(3==Gi||4==Gi)||3==Po||4==Po?"few":"other"},hu:Oi,hy:Tt=>Tt>=0&&Tt<2?"one":"other",ia:st,id:Dn,ig:Dn,ii:Dn,io:st,is:Tt=>{const zt=String(Tt).split("."),on=zt[0],hn=(zt[1]||"").replace(/0+$/,""),Gn=Number(zt[0])==Tt,Gi=on.slice(-1),Po=on.slice(-2);return Gn&&1==Gi&&11!=Po||hn%10==1&&hn%100!=11?"one":"other"},it:Tt=>{const zt=String(Tt).split("."),on=zt[0],hn=!zt[1],Gn=on.slice(-6);return 1==Tt&&hn?"one":0!=on&&0==Gn&&hn?"many":"other"},iu:Wt,ja:Dn,jbo:Dn,jgo:Oi,jmc:Oi,jv:Dn,jw:Dn,ka:Oi,kab:Tt=>Tt>=0&&Tt<2?"one":"other",kaj:Oi,kcg:Oi,kde:Dn,kea:Dn,kk:Oi,kkj:Oi,kl:Oi,km:Dn,kn:_n,ko:Dn,ks:Oi,ksb:Oi,ksh:Tt=>0==Tt?"zero":1==Tt?"one":"other",ku:Oi,kw:Tt=>{const zt=String(Tt).split("."),on=Number(zt[0])==Tt,hn=on&&zt[0].slice(-2),Gn=on&&zt[0].slice(-3),Gi=on&&zt[0].slice(-5),Po=on&&zt[0].slice(-6);return 0==Tt?"zero":1==Tt?"one":2==hn||22==hn||42==hn||62==hn||82==hn||on&&0==Gn&&(Gi>=1e3&&Gi<=2e4||4e4==Gi||6e4==Gi||8e4==Gi)||0!=Tt&&1e5==Po?"two":3==hn||23==hn||43==hn||63==hn||83==hn?"few":1==Tt||1!=hn&&21!=hn&&41!=hn&&61!=hn&&81!=hn?"other":"many"},ky:Oi,lag:Tt=>{const on=String(Tt).split(".")[0];return 0==Tt?"zero":0!=on&&1!=on||0==Tt?"other":"one"},lb:Oi,lg:Oi,lij:st,lkt:Dn,ln:On,lo:Dn,lt:Tt=>{const zt=String(Tt).split("."),on=zt[1]||"",hn=Number(zt[0])==Tt,Gn=hn&&zt[0].slice(-1),Gi=hn&&zt[0].slice(-2);return 1==Gn&&(Gi<11||Gi>19)?"one":Gn>=2&&Gn<=9&&(Gi<11||Gi>19)?"few":0!=on?"many":"other"},lv:Tt=>{const zt=String(Tt).split("."),on=zt[1]||"",hn=on.length,Gn=Number(zt[0])==Tt,Gi=Gn&&zt[0].slice(-1),Po=Gn&&zt[0].slice(-2),er=on.slice(-2),Tr=on.slice(-1);return Gn&&0==Gi||Po>=11&&Po<=19||2==hn&&er>=11&&er<=19?"zero":1==Gi&&11!=Po||2==hn&&1==Tr&&11!=er||2!=hn&&1==Tr?"one":"other"},mas:Oi,mg:On,mgo:Oi,mk:Tt=>{const zt=String(Tt).split("."),on=zt[0],hn=zt[1]||"",Gn=!zt[1],Gi=on.slice(-1),Po=on.slice(-2),er=hn.slice(-1),Tr=hn.slice(-2);return Gn&&1==Gi&&11!=Po||1==er&&11!=Tr?"one":"other"},ml:Oi,mn:Oi,mo:Tt=>{const zt=String(Tt).split("."),on=!zt[1],Gn=Number(zt[0])==Tt&&zt[0].slice(-2);return 1==Tt&&on?"one":!on||0==Tt||1!=Tt&&Gn>=1&&Gn<=19?"few":"other"},mr:Oi,ms:Dn,mt:Tt=>{const zt=String(Tt).split("."),hn=Number(zt[0])==Tt&&zt[0].slice(-2);return 1==Tt?"one":2==Tt?"two":0==Tt||hn>=3&&hn<=10?"few":hn>=11&&hn<=19?"many":"other"},my:Dn,nah:Oi,naq:Wt,nb:Oi,nd:Oi,ne:Oi,nl:st,nn:Oi,nnh:Oi,no:Oi,nqo:Dn,nr:Oi,nso:On,ny:Oi,nyn:Oi,om:Oi,or:Oi,os:Oi,osa:Dn,pa:On,pap:Oi,pcm:_n,pl:Tt=>{const zt=String(Tt).split("."),on=zt[0],hn=!zt[1],Gn=on.slice(-1),Gi=on.slice(-2);return 1==Tt&&hn?"one":hn&&Gn>=2&&Gn<=4&&(Gi<12||Gi>14)?"few":hn&&1!=on&&(0==Gn||1==Gn)||hn&&Gn>=5&&Gn<=9||hn&&Gi>=12&&Gi<=14?"many":"other"},prg:Tt=>{const zt=String(Tt).split("."),on=zt[1]||"",hn=on.length,Gn=Number(zt[0])==Tt,Gi=Gn&&zt[0].slice(-1),Po=Gn&&zt[0].slice(-2),er=on.slice(-2),Tr=on.slice(-1);return Gn&&0==Gi||Po>=11&&Po<=19||2==hn&&er>=11&&er<=19?"zero":1==Gi&&11!=Po||2==hn&&1==Tr&&11!=er||2!=hn&&1==Tr?"one":"other"},ps:Oi,pt:Tt=>{const zt=String(Tt).split("."),on=zt[0],hn=!zt[1],Gn=on.slice(-6);return 0==on||1==on?"one":0!=on&&0==Gn&&hn?"many":"other"},pt_PT:Tt=>{const zt=String(Tt).split("."),on=zt[0],hn=!zt[1],Gn=on.slice(-6);return 1==Tt&&hn?"one":0!=on&&0==Gn&&hn?"many":"other"},rm:Oi,ro:Tt=>{const zt=String(Tt).split("."),on=!zt[1],Gn=Number(zt[0])==Tt&&zt[0].slice(-2);return 1==Tt&&on?"one":!on||0==Tt||1!=Tt&&Gn>=1&&Gn<=19?"few":"other"},rof:Oi,ru:Tt=>{const zt=String(Tt).split("."),on=zt[0],hn=!zt[1],Gn=on.slice(-1),Gi=on.slice(-2);return hn&&1==Gn&&11!=Gi?"one":hn&&Gn>=2&&Gn<=4&&(Gi<12||Gi>14)?"few":hn&&0==Gn||hn&&Gn>=5&&Gn<=9||hn&&Gi>=11&&Gi<=14?"many":"other"},rwk:Oi,sah:Dn,saq:Oi,sat:Wt,sc:st,scn:st,sd:Oi,sdh:Oi,se:Wt,seh:Oi,ses:Dn,sg:Dn,sh:Tt=>{const zt=String(Tt).split("."),on=zt[0],hn=zt[1]||"",Gn=!zt[1],Gi=on.slice(-1),Po=on.slice(-2),er=hn.slice(-1),Tr=hn.slice(-2);return Gn&&1==Gi&&11!=Po||1==er&&11!=Tr?"one":Gn&&Gi>=2&&Gi<=4&&(Po<12||Po>14)||er>=2&&er<=4&&(Tr<12||Tr>14)?"few":"other"},shi:Tt=>{const zt=String(Tt).split("."),on=Number(zt[0])==Tt;return Tt>=0&&Tt<=1?"one":on&&Tt>=2&&Tt<=10?"few":"other"},si:Tt=>{const zt=String(Tt).split(".");return 0==Tt||1==Tt||0==zt[0]&&1==(zt[1]||"")?"one":"other"},sk:Tt=>{const zt=String(Tt).split("."),on=zt[0],hn=!zt[1];return 1==Tt&&hn?"one":on>=2&&on<=4&&hn?"few":hn?"other":"many"},sl:Tt=>{const zt=String(Tt).split("."),hn=!zt[1],Gn=zt[0].slice(-2);return hn&&1==Gn?"one":hn&&2==Gn?"two":hn&&(3==Gn||4==Gn)||!hn?"few":"other"},sma:Wt,smi:Wt,smj:Wt,smn:Wt,sms:Wt,sn:Oi,so:Oi,sq:Oi,sr:Tt=>{const zt=String(Tt).split("."),on=zt[0],hn=zt[1]||"",Gn=!zt[1],Gi=on.slice(-1),Po=on.slice(-2),er=hn.slice(-1),Tr=hn.slice(-2);return Gn&&1==Gi&&11!=Po||1==er&&11!=Tr?"one":Gn&&Gi>=2&&Gi<=4&&(Po<12||Po>14)||er>=2&&er<=4&&(Tr<12||Tr>14)?"few":"other"},ss:Oi,ssy:Oi,st:Oi,su:Dn,sv:st,sw:st,syr:Oi,ta:Oi,te:Oi,teo:Oi,th:Dn,ti:On,tig:Oi,tk:Oi,tl:Tt=>{const zt=String(Tt).split("."),on=zt[0],hn=zt[1]||"",Gn=!zt[1],Gi=on.slice(-1),Po=hn.slice(-1);return Gn&&(1==on||2==on||3==on)||Gn&&4!=Gi&&6!=Gi&&9!=Gi||!Gn&&4!=Po&&6!=Po&&9!=Po?"one":"other"},tn:Oi,to:Dn,tpi:Dn,tr:Oi,ts:Oi,tzm:Tt=>{const zt=String(Tt).split("."),on=Number(zt[0])==Tt;return 0==Tt||1==Tt||on&&Tt>=11&&Tt<=99?"one":"other"},ug:Oi,uk:Tt=>{const zt=String(Tt).split("."),on=zt[0],hn=!zt[1],Gn=on.slice(-1),Gi=on.slice(-2);return hn&&1==Gn&&11!=Gi?"one":hn&&Gn>=2&&Gn<=4&&(Gi<12||Gi>14)?"few":hn&&0==Gn||hn&&Gn>=5&&Gn<=9||hn&&Gi>=11&&Gi<=14?"many":"other"},und:Dn,ur:st,uz:Oi,ve:Oi,vec:Tt=>{const zt=String(Tt).split("."),on=zt[0],hn=!zt[1],Gn=on.slice(-6);return 1==Tt&&hn?"one":0!=on&&0==Gn&&hn?"many":"other"},vi:Dn,vo:Oi,vun:Oi,wa:On,wae:Oi,wo:Dn,xh:Oi,xog:Oi,yi:st,yo:Dn,yue:Dn,zh:Dn,zu:_n});const Ye="zero",ut="one",Kt="two",en="few",qn="many",hi="other",gi={cardinal:[ut,hi],ordinal:[hi]},ko={cardinal:[ut,hi],ordinal:[ut,hi]},Wo={cardinal:[hi],ordinal:[hi]},tr={cardinal:[ut,Kt,hi],ordinal:[hi]};var it=Object.freeze({__proto__:null,af:gi,ak:gi,am:gi,an:gi,ar:{cardinal:[Ye,ut,Kt,en,qn,hi],ordinal:[hi]},ars:{cardinal:[Ye,ut,Kt,en,qn,hi],ordinal:[hi]},as:{cardinal:[ut,hi],ordinal:[ut,Kt,en,qn,hi]},asa:gi,ast:gi,az:{cardinal:[ut,hi],ordinal:[ut,en,qn,hi]},bal:ko,be:{cardinal:[ut,en,qn,hi],ordinal:[en,hi]},bem:gi,bez:gi,bg:gi,bho:gi,bm:Wo,bn:{cardinal:[ut,hi],ordinal:[ut,Kt,en,qn,hi]},bo:Wo,br:{cardinal:[ut,Kt,en,qn,hi],ordinal:[hi]},brx:gi,bs:{cardinal:[ut,en,hi],ordinal:[hi]},ca:{cardinal:[ut,qn,hi],ordinal:[ut,Kt,en,hi]},ce:gi,ceb:gi,cgg:gi,chr:gi,ckb:gi,cs:{cardinal:[ut,en,qn,hi],ordinal:[hi]},cy:{cardinal:[Ye,ut,Kt,en,qn,hi],ordinal:[Ye,ut,Kt,en,qn,hi]},da:gi,de:gi,doi:gi,dsb:{cardinal:[ut,Kt,en,hi],ordinal:[hi]},dv:gi,dz:Wo,ee:gi,el:gi,en:{cardinal:[ut,hi],ordinal:[ut,Kt,en,hi]},eo:gi,es:{cardinal:[ut,qn,hi],ordinal:[hi]},et:gi,eu:gi,fa:gi,ff:gi,fi:gi,fil:ko,fo:gi,fr:{cardinal:[ut,qn,hi],ordinal:[ut,hi]},fur:gi,fy:gi,ga:{cardinal:[ut,Kt,en,qn,hi],ordinal:[ut,hi]},gd:{cardinal:[ut,Kt,en,hi],ordinal:[ut,Kt,en,hi]},gl:gi,gsw:gi,gu:{cardinal:[ut,hi],ordinal:[ut,Kt,en,qn,hi]},guw:gi,gv:{cardinal:[ut,Kt,en,qn,hi],ordinal:[hi]},ha:gi,haw:gi,he:tr,hi:{cardinal:[ut,hi],ordinal:[ut,Kt,en,qn,hi]},hnj:Wo,hr:{cardinal:[ut,en,hi],ordinal:[hi]},hsb:{cardinal:[ut,Kt,en,hi],ordinal:[hi]},hu:ko,hy:ko,ia:gi,id:Wo,ig:Wo,ii:Wo,io:gi,is:gi,it:{cardinal:[ut,qn,hi],ordinal:[qn,hi]},iu:tr,ja:Wo,jbo:Wo,jgo:gi,jmc:gi,jv:Wo,jw:Wo,ka:{cardinal:[ut,hi],ordinal:[ut,qn,hi]},kab:gi,kaj:gi,kcg:gi,kde:Wo,kea:Wo,kk:{cardinal:[ut,hi],ordinal:[qn,hi]},kkj:gi,kl:gi,km:Wo,kn:gi,ko:Wo,ks:gi,ksb:gi,ksh:{cardinal:[Ye,ut,hi],ordinal:[hi]},ku:gi,kw:{cardinal:[Ye,ut,Kt,en,qn,hi],ordinal:[ut,qn,hi]},ky:gi,lag:{cardinal:[Ye,ut,hi],ordinal:[hi]},lb:gi,lg:gi,lij:{cardinal:[ut,hi],ordinal:[qn,hi]},lkt:Wo,ln:gi,lo:{cardinal:[hi],ordinal:[ut,hi]},lt:{cardinal:[ut,en,qn,hi],ordinal:[hi]},lv:{cardinal:[Ye,ut,hi],ordinal:[hi]},mas:gi,mg:gi,mgo:gi,mk:{cardinal:[ut,hi],ordinal:[ut,Kt,qn,hi]},ml:gi,mn:gi,mo:{cardinal:[ut,en,hi],ordinal:[ut,hi]},mr:{cardinal:[ut,hi],ordinal:[ut,Kt,en,hi]},ms:{cardinal:[hi],ordinal:[ut,hi]},mt:{cardinal:[ut,Kt,en,qn,hi],ordinal:[hi]},my:Wo,nah:gi,naq:tr,nb:gi,nd:gi,ne:ko,nl:gi,nn:gi,nnh:gi,no:gi,nqo:Wo,nr:gi,nso:gi,ny:gi,nyn:gi,om:gi,or:{cardinal:[ut,hi],ordinal:[ut,Kt,en,qn,hi]},os:gi,osa:Wo,pa:gi,pap:gi,pcm:gi,pl:{cardinal:[ut,en,qn,hi],ordinal:[hi]},prg:{cardinal:[Ye,ut,hi],ordinal:[hi]},ps:gi,pt:{cardinal:[ut,qn,hi],ordinal:[hi]},pt_PT:{cardinal:[ut,qn,hi],ordinal:[hi]},rm:gi,ro:{cardinal:[ut,en,hi],ordinal:[ut,hi]},rof:gi,ru:{cardinal:[ut,en,qn,hi],ordinal:[hi]},rwk:gi,sah:Wo,saq:gi,sat:tr,sc:{cardinal:[ut,hi],ordinal:[qn,hi]},scn:{cardinal:[ut,hi],ordinal:[qn,hi]},sd:gi,sdh:gi,se:tr,seh:gi,ses:Wo,sg:Wo,sh:{cardinal:[ut,en,hi],ordinal:[hi]},shi:{cardinal:[ut,en,hi],ordinal:[hi]},si:gi,sk:{cardinal:[ut,en,qn,hi],ordinal:[hi]},sl:{cardinal:[ut,Kt,en,hi],ordinal:[hi]},sma:tr,smi:tr,smj:tr,smn:tr,sms:tr,sn:gi,so:gi,sq:{cardinal:[ut,hi],ordinal:[ut,qn,hi]},sr:{cardinal:[ut,en,hi],ordinal:[hi]},ss:gi,ssy:gi,st:gi,su:Wo,sv:ko,sw:gi,syr:gi,ta:gi,te:gi,teo:gi,th:Wo,ti:gi,tig:gi,tk:{cardinal:[ut,hi],ordinal:[en,hi]},tl:ko,tn:gi,to:Wo,tpi:Wo,tr:gi,ts:gi,tzm:gi,ug:gi,uk:{cardinal:[ut,en,qn,hi],ordinal:[en,hi]},und:Wo,ur:gi,uz:gi,ve:gi,vec:{cardinal:[ut,qn,hi],ordinal:[qn,hi]},vi:{cardinal:[hi],ordinal:[ut,hi]},vo:gi,vun:gi,wa:gi,wae:gi,wo:Wo,xh:gi,xog:gi,yi:gi,yo:Wo,yue:Wo,zh:Wo,zu:gi});const mt=(Tt,zt)=>zt?"other":1==Tt?"one":"other",$t=(Tt,zt)=>zt?"other":0==Tt||1==Tt?"one":"other",ai=(Tt,zt)=>zt?"other":Tt>=0&&Tt<=1?"one":"other",Ai=(Tt,zt)=>{const on=String(Tt).split(".");return zt||1!=Tt||on[1]?"other":"one"},ao=(Tt,zt)=>"other",go=(Tt,zt)=>zt?"other":1==Tt?"one":2==Tt?"two":"other";var Nf=Object.freeze({__proto__:null,af:mt,ak:$t,am:ai,an:mt,ar:(Tt,zt)=>{const on=String(Tt).split("."),Gn=Number(on[0])==Tt&&on[0].slice(-2);return zt?"other":0==Tt?"zero":1==Tt?"one":2==Tt?"two":Gn>=3&&Gn<=10?"few":Gn>=11&&Gn<=99?"many":"other"},ars:(Tt,zt)=>{const on=String(Tt).split("."),Gn=Number(on[0])==Tt&&on[0].slice(-2);return zt?"other":0==Tt?"zero":1==Tt?"one":2==Tt?"two":Gn>=3&&Gn<=10?"few":Gn>=11&&Gn<=99?"many":"other"},as:(Tt,zt)=>zt?1==Tt||5==Tt||7==Tt||8==Tt||9==Tt||10==Tt?"one":2==Tt||3==Tt?"two":4==Tt?"few":6==Tt?"many":"other":Tt>=0&&Tt<=1?"one":"other",asa:mt,ast:Ai,az:(Tt,zt)=>{const hn=String(Tt).split(".")[0],Gn=hn.slice(-1),Gi=hn.slice(-2),Po=hn.slice(-3);return zt?1==Gn||2==Gn||5==Gn||7==Gn||8==Gn||20==Gi||50==Gi||70==Gi||80==Gi?"one":3==Gn||4==Gn||100==Po||200==Po||300==Po||400==Po||500==Po||600==Po||700==Po||800==Po||900==Po?"few":0==hn||6==Gn||40==Gi||60==Gi||90==Gi?"many":"other":1==Tt?"one":"other"},bal:(Tt,zt)=>1==Tt?"one":"other",be:(Tt,zt)=>{const on=String(Tt).split("."),hn=Number(on[0])==Tt,Gn=hn&&on[0].slice(-1),Gi=hn&&on[0].slice(-2);return zt?2!=Gn&&3!=Gn||12==Gi||13==Gi?"other":"few":1==Gn&&11!=Gi?"one":Gn>=2&&Gn<=4&&(Gi<12||Gi>14)?"few":hn&&0==Gn||Gn>=5&&Gn<=9||Gi>=11&&Gi<=14?"many":"other"},bem:mt,bez:mt,bg:mt,bho:$t,bm:ao,bn:(Tt,zt)=>zt?1==Tt||5==Tt||7==Tt||8==Tt||9==Tt||10==Tt?"one":2==Tt||3==Tt?"two":4==Tt?"few":6==Tt?"many":"other":Tt>=0&&Tt<=1?"one":"other",bo:ao,br:(Tt,zt)=>{const on=String(Tt).split("."),hn=Number(on[0])==Tt,Gn=hn&&on[0].slice(-1),Gi=hn&&on[0].slice(-2),Po=hn&&on[0].slice(-6);return zt?"other":1==Gn&&11!=Gi&&71!=Gi&&91!=Gi?"one":2==Gn&&12!=Gi&&72!=Gi&&92!=Gi?"two":(3==Gn||4==Gn||9==Gn)&&(Gi<10||Gi>19)&&(Gi<70||Gi>79)&&(Gi<90||Gi>99)?"few":0!=Tt&&hn&&0==Po?"many":"other"},brx:mt,bs:(Tt,zt)=>{const on=String(Tt).split("."),hn=on[0],Gn=on[1]||"",Gi=!on[1],Po=hn.slice(-1),er=hn.slice(-2),Tr=Gn.slice(-1),va=Gn.slice(-2);return zt?"other":Gi&&1==Po&&11!=er||1==Tr&&11!=va?"one":Gi&&Po>=2&&Po<=4&&(er<12||er>14)||Tr>=2&&Tr<=4&&(va<12||va>14)?"few":"other"},ca:(Tt,zt)=>{const on=String(Tt).split("."),hn=on[0],Gn=!on[1],Gi=hn.slice(-6);return zt?1==Tt||3==Tt?"one":2==Tt?"two":4==Tt?"few":"other":1==Tt&&Gn?"one":0!=hn&&0==Gi&&Gn?"many":"other"},ce:mt,ceb:(Tt,zt)=>{const on=String(Tt).split("."),hn=on[0],Gn=on[1]||"",Gi=!on[1],Po=hn.slice(-1),er=Gn.slice(-1);return zt?"other":Gi&&(1==hn||2==hn||3==hn)||Gi&&4!=Po&&6!=Po&&9!=Po||!Gi&&4!=er&&6!=er&&9!=er?"one":"other"},cgg:mt,chr:mt,ckb:mt,cs:(Tt,zt)=>{const on=String(Tt).split("."),hn=on[0],Gn=!on[1];return zt?"other":1==Tt&&Gn?"one":hn>=2&&hn<=4&&Gn?"few":Gn?"other":"many"},cy:(Tt,zt)=>zt?0==Tt||7==Tt||8==Tt||9==Tt?"zero":1==Tt?"one":2==Tt?"two":3==Tt||4==Tt?"few":5==Tt||6==Tt?"many":"other":0==Tt?"zero":1==Tt?"one":2==Tt?"two":3==Tt?"few":6==Tt?"many":"other",da:(Tt,zt)=>{const on=String(Tt).split("."),hn=on[0],Gn=Number(on[0])==Tt;return zt||1!=Tt&&(Gn||0!=hn&&1!=hn)?"other":"one"},de:Ai,doi:ai,dsb:(Tt,zt)=>{const on=String(Tt).split("."),Gn=on[1]||"",Gi=!on[1],Po=on[0].slice(-2),er=Gn.slice(-2);return zt?"other":Gi&&1==Po||1==er?"one":Gi&&2==Po||2==er?"two":Gi&&(3==Po||4==Po)||3==er||4==er?"few":"other"},dv:mt,dz:ao,ee:mt,el:mt,en:(Tt,zt)=>{const on=String(Tt).split("."),hn=!on[1],Gn=Number(on[0])==Tt,Gi=Gn&&on[0].slice(-1),Po=Gn&&on[0].slice(-2);return zt?1==Gi&&11!=Po?"one":2==Gi&&12!=Po?"two":3==Gi&&13!=Po?"few":"other":1==Tt&&hn?"one":"other"},eo:mt,es:(Tt,zt)=>{const on=String(Tt).split("."),hn=on[0],Gn=!on[1],Gi=hn.slice(-6);return zt?"other":1==Tt?"one":0!=hn&&0==Gi&&Gn?"many":"other"},et:Ai,eu:mt,fa:ai,ff:(Tt,zt)=>zt?"other":Tt>=0&&Tt<2?"one":"other",fi:Ai,fil:(Tt,zt)=>{const on=String(Tt).split("."),hn=on[0],Gn=on[1]||"",Gi=!on[1],Po=hn.slice(-1),er=Gn.slice(-1);return zt?1==Tt?"one":"other":Gi&&(1==hn||2==hn||3==hn)||Gi&&4!=Po&&6!=Po&&9!=Po||!Gi&&4!=er&&6!=er&&9!=er?"one":"other"},fo:mt,fr:(Tt,zt)=>{const on=String(Tt).split("."),hn=on[0],Gn=!on[1],Gi=hn.slice(-6);return zt?1==Tt?"one":"other":Tt>=0&&Tt<2?"one":0!=hn&&0==Gi&&Gn?"many":"other"},fur:mt,fy:Ai,ga:(Tt,zt)=>{const on=String(Tt).split("."),hn=Number(on[0])==Tt;return zt?1==Tt?"one":"other":1==Tt?"one":2==Tt?"two":hn&&Tt>=3&&Tt<=6?"few":hn&&Tt>=7&&Tt<=10?"many":"other"},gd:(Tt,zt)=>{const on=String(Tt).split("."),hn=Number(on[0])==Tt;return zt?1==Tt||11==Tt?"one":2==Tt||12==Tt?"two":3==Tt||13==Tt?"few":"other":1==Tt||11==Tt?"one":2==Tt||12==Tt?"two":hn&&Tt>=3&&Tt<=10||hn&&Tt>=13&&Tt<=19?"few":"other"},gl:Ai,gsw:mt,gu:(Tt,zt)=>zt?1==Tt?"one":2==Tt||3==Tt?"two":4==Tt?"few":6==Tt?"many":"other":Tt>=0&&Tt<=1?"one":"other",guw:$t,gv:(Tt,zt)=>{const on=String(Tt).split("."),hn=on[0],Gn=!on[1],Gi=hn.slice(-1),Po=hn.slice(-2);return zt?"other":Gn&&1==Gi?"one":Gn&&2==Gi?"two":!Gn||0!=Po&&20!=Po&&40!=Po&&60!=Po&&80!=Po?Gn?"other":"many":"few"},ha:mt,haw:mt,he:(Tt,zt)=>{const on=String(Tt).split("."),hn=on[0],Gn=!on[1];return zt?"other":1==hn&&Gn||0==hn&&!Gn?"one":2==hn&&Gn?"two":"other"},hi:(Tt,zt)=>zt?1==Tt?"one":2==Tt||3==Tt?"two":4==Tt?"few":6==Tt?"many":"other":Tt>=0&&Tt<=1?"one":"other",hnj:ao,hr:(Tt,zt)=>{const on=String(Tt).split("."),hn=on[0],Gn=on[1]||"",Gi=!on[1],Po=hn.slice(-1),er=hn.slice(-2),Tr=Gn.slice(-1),va=Gn.slice(-2);return zt?"other":Gi&&1==Po&&11!=er||1==Tr&&11!=va?"one":Gi&&Po>=2&&Po<=4&&(er<12||er>14)||Tr>=2&&Tr<=4&&(va<12||va>14)?"few":"other"},hsb:(Tt,zt)=>{const on=String(Tt).split("."),Gn=on[1]||"",Gi=!on[1],Po=on[0].slice(-2),er=Gn.slice(-2);return zt?"other":Gi&&1==Po||1==er?"one":Gi&&2==Po||2==er?"two":Gi&&(3==Po||4==Po)||3==er||4==er?"few":"other"},hu:(Tt,zt)=>zt?1==Tt||5==Tt?"one":"other":1==Tt?"one":"other",hy:(Tt,zt)=>zt?1==Tt?"one":"other":Tt>=0&&Tt<2?"one":"other",ia:Ai,id:ao,ig:ao,ii:ao,io:Ai,is:(Tt,zt)=>{const on=String(Tt).split("."),hn=on[0],Gn=(on[1]||"").replace(/0+$/,""),Gi=Number(on[0])==Tt,Po=hn.slice(-1),er=hn.slice(-2);return zt?"other":Gi&&1==Po&&11!=er||Gn%10==1&&Gn%100!=11?"one":"other"},it:(Tt,zt)=>{const on=String(Tt).split("."),hn=on[0],Gn=!on[1],Gi=hn.slice(-6);return zt?11==Tt||8==Tt||80==Tt||800==Tt?"many":"other":1==Tt&&Gn?"one":0!=hn&&0==Gi&&Gn?"many":"other"},iu:go,ja:ao,jbo:ao,jgo:mt,jmc:mt,jv:ao,jw:ao,ka:(Tt,zt)=>{const hn=String(Tt).split(".")[0],Gn=hn.slice(-2);return zt?1==hn?"one":0==hn||Gn>=2&&Gn<=20||40==Gn||60==Gn||80==Gn?"many":"other":1==Tt?"one":"other"},kab:(Tt,zt)=>zt?"other":Tt>=0&&Tt<2?"one":"other",kaj:mt,kcg:mt,kde:ao,kea:ao,kk:(Tt,zt)=>{const on=String(Tt).split("."),hn=Number(on[0])==Tt,Gn=hn&&on[0].slice(-1);return zt?6==Gn||9==Gn||hn&&0==Gn&&0!=Tt?"many":"other":1==Tt?"one":"other"},kkj:mt,kl:mt,km:ao,kn:ai,ko:ao,ks:mt,ksb:mt,ksh:(Tt,zt)=>zt?"other":0==Tt?"zero":1==Tt?"one":"other",ku:mt,kw:(Tt,zt)=>{const on=String(Tt).split("."),hn=Number(on[0])==Tt,Gn=hn&&on[0].slice(-2),Gi=hn&&on[0].slice(-3),Po=hn&&on[0].slice(-5),er=hn&&on[0].slice(-6);return zt?hn&&Tt>=1&&Tt<=4||Gn>=1&&Gn<=4||Gn>=21&&Gn<=24||Gn>=41&&Gn<=44||Gn>=61&&Gn<=64||Gn>=81&&Gn<=84?"one":5==Tt||5==Gn?"many":"other":0==Tt?"zero":1==Tt?"one":2==Gn||22==Gn||42==Gn||62==Gn||82==Gn||hn&&0==Gi&&(Po>=1e3&&Po<=2e4||4e4==Po||6e4==Po||8e4==Po)||0!=Tt&&1e5==er?"two":3==Gn||23==Gn||43==Gn||63==Gn||83==Gn?"few":1==Tt||1!=Gn&&21!=Gn&&41!=Gn&&61!=Gn&&81!=Gn?"other":"many"},ky:mt,lag:(Tt,zt)=>{const hn=String(Tt).split(".")[0];return zt?"other":0==Tt?"zero":0!=hn&&1!=hn||0==Tt?"other":"one"},lb:mt,lg:mt,lij:(Tt,zt)=>{const on=String(Tt).split("."),hn=!on[1],Gn=Number(on[0])==Tt;return zt?11==Tt||8==Tt||Gn&&Tt>=80&&Tt<=89||Gn&&Tt>=800&&Tt<=899?"many":"other":1==Tt&&hn?"one":"other"},lkt:ao,ln:$t,lo:(Tt,zt)=>zt&&1==Tt?"one":"other",lt:(Tt,zt)=>{const on=String(Tt).split("."),hn=on[1]||"",Gn=Number(on[0])==Tt,Gi=Gn&&on[0].slice(-1),Po=Gn&&on[0].slice(-2);return zt?"other":1==Gi&&(Po<11||Po>19)?"one":Gi>=2&&Gi<=9&&(Po<11||Po>19)?"few":0!=hn?"many":"other"},lv:(Tt,zt)=>{const on=String(Tt).split("."),hn=on[1]||"",Gn=hn.length,Gi=Number(on[0])==Tt,Po=Gi&&on[0].slice(-1),er=Gi&&on[0].slice(-2),Tr=hn.slice(-2),va=hn.slice(-1);return zt?"other":Gi&&0==Po||er>=11&&er<=19||2==Gn&&Tr>=11&&Tr<=19?"zero":1==Po&&11!=er||2==Gn&&1==va&&11!=Tr||2!=Gn&&1==va?"one":"other"},mas:mt,mg:$t,mgo:mt,mk:(Tt,zt)=>{const on=String(Tt).split("."),hn=on[0],Gn=on[1]||"",Gi=!on[1],Po=hn.slice(-1),er=hn.slice(-2),Tr=Gn.slice(-1),va=Gn.slice(-2);return zt?1==Po&&11!=er?"one":2==Po&&12!=er?"two":7!=Po&&8!=Po||17==er||18==er?"other":"many":Gi&&1==Po&&11!=er||1==Tr&&11!=va?"one":"other"},ml:mt,mn:mt,mo:(Tt,zt)=>{const on=String(Tt).split("."),hn=!on[1],Gi=Number(on[0])==Tt&&on[0].slice(-2);return zt?1==Tt?"one":"other":1==Tt&&hn?"one":!hn||0==Tt||1!=Tt&&Gi>=1&&Gi<=19?"few":"other"},mr:(Tt,zt)=>zt?1==Tt?"one":2==Tt||3==Tt?"two":4==Tt?"few":"other":1==Tt?"one":"other",ms:(Tt,zt)=>zt&&1==Tt?"one":"other",mt:(Tt,zt)=>{const on=String(Tt).split("."),Gn=Number(on[0])==Tt&&on[0].slice(-2);return zt?"other":1==Tt?"one":2==Tt?"two":0==Tt||Gn>=3&&Gn<=10?"few":Gn>=11&&Gn<=19?"many":"other"},my:ao,nah:mt,naq:go,nb:mt,nd:mt,ne:(Tt,zt)=>{const on=String(Tt).split("."),hn=Number(on[0])==Tt;return zt?hn&&Tt>=1&&Tt<=4?"one":"other":1==Tt?"one":"other"},nl:Ai,nn:mt,nnh:mt,no:mt,nqo:ao,nr:mt,nso:$t,ny:mt,nyn:mt,om:mt,or:(Tt,zt)=>{const on=String(Tt).split("."),hn=Number(on[0])==Tt;return zt?1==Tt||5==Tt||hn&&Tt>=7&&Tt<=9?"one":2==Tt||3==Tt?"two":4==Tt?"few":6==Tt?"many":"other":1==Tt?"one":"other"},os:mt,osa:ao,pa:$t,pap:mt,pcm:ai,pl:(Tt,zt)=>{const on=String(Tt).split("."),hn=on[0],Gn=!on[1],Gi=hn.slice(-1),Po=hn.slice(-2);return zt?"other":1==Tt&&Gn?"one":Gn&&Gi>=2&&Gi<=4&&(Po<12||Po>14)?"few":Gn&&1!=hn&&(0==Gi||1==Gi)||Gn&&Gi>=5&&Gi<=9||Gn&&Po>=12&&Po<=14?"many":"other"},prg:(Tt,zt)=>{const on=String(Tt).split("."),hn=on[1]||"",Gn=hn.length,Gi=Number(on[0])==Tt,Po=Gi&&on[0].slice(-1),er=Gi&&on[0].slice(-2),Tr=hn.slice(-2),va=hn.slice(-1);return zt?"other":Gi&&0==Po||er>=11&&er<=19||2==Gn&&Tr>=11&&Tr<=19?"zero":1==Po&&11!=er||2==Gn&&1==va&&11!=Tr||2!=Gn&&1==va?"one":"other"},ps:mt,pt:(Tt,zt)=>{const on=String(Tt).split("."),hn=on[0],Gn=!on[1],Gi=hn.slice(-6);return zt?"other":0==hn||1==hn?"one":0!=hn&&0==Gi&&Gn?"many":"other"},pt_PT:(Tt,zt)=>{const on=String(Tt).split("."),hn=on[0],Gn=!on[1],Gi=hn.slice(-6);return zt?"other":1==Tt&&Gn?"one":0!=hn&&0==Gi&&Gn?"many":"other"},rm:mt,ro:(Tt,zt)=>{const on=String(Tt).split("."),hn=!on[1],Gi=Number(on[0])==Tt&&on[0].slice(-2);return zt?1==Tt?"one":"other":1==Tt&&hn?"one":!hn||0==Tt||1!=Tt&&Gi>=1&&Gi<=19?"few":"other"},rof:mt,ru:(Tt,zt)=>{const on=String(Tt).split("."),hn=on[0],Gn=!on[1],Gi=hn.slice(-1),Po=hn.slice(-2);return zt?"other":Gn&&1==Gi&&11!=Po?"one":Gn&&Gi>=2&&Gi<=4&&(Po<12||Po>14)?"few":Gn&&0==Gi||Gn&&Gi>=5&&Gi<=9||Gn&&Po>=11&&Po<=14?"many":"other"},rwk:mt,sah:ao,saq:mt,sat:go,sc:(Tt,zt)=>{const on=String(Tt).split(".");return zt?11==Tt||8==Tt||80==Tt||800==Tt?"many":"other":1!=Tt||on[1]?"other":"one"},scn:(Tt,zt)=>{const on=String(Tt).split(".");return zt?11==Tt||8==Tt||80==Tt||800==Tt?"many":"other":1!=Tt||on[1]?"other":"one"},sd:mt,sdh:mt,se:go,seh:mt,ses:ao,sg:ao,sh:(Tt,zt)=>{const on=String(Tt).split("."),hn=on[0],Gn=on[1]||"",Gi=!on[1],Po=hn.slice(-1),er=hn.slice(-2),Tr=Gn.slice(-1),va=Gn.slice(-2);return zt?"other":Gi&&1==Po&&11!=er||1==Tr&&11!=va?"one":Gi&&Po>=2&&Po<=4&&(er<12||er>14)||Tr>=2&&Tr<=4&&(va<12||va>14)?"few":"other"},shi:(Tt,zt)=>{const on=String(Tt).split("."),hn=Number(on[0])==Tt;return zt?"other":Tt>=0&&Tt<=1?"one":hn&&Tt>=2&&Tt<=10?"few":"other"},si:(Tt,zt)=>{const on=String(Tt).split(".");return zt?"other":0==Tt||1==Tt||0==on[0]&&1==(on[1]||"")?"one":"other"},sk:(Tt,zt)=>{const on=String(Tt).split("."),hn=on[0],Gn=!on[1];return zt?"other":1==Tt&&Gn?"one":hn>=2&&hn<=4&&Gn?"few":Gn?"other":"many"},sl:(Tt,zt)=>{const on=String(Tt).split("."),Gn=!on[1],Gi=on[0].slice(-2);return zt?"other":Gn&&1==Gi?"one":Gn&&2==Gi?"two":Gn&&(3==Gi||4==Gi)||!Gn?"few":"other"},sma:go,smi:go,smj:go,smn:go,sms:go,sn:mt,so:mt,sq:(Tt,zt)=>{const on=String(Tt).split("."),hn=Number(on[0])==Tt,Gn=hn&&on[0].slice(-1),Gi=hn&&on[0].slice(-2);return zt?1==Tt?"one":4==Gn&&14!=Gi?"many":"other":1==Tt?"one":"other"},sr:(Tt,zt)=>{const on=String(Tt).split("."),hn=on[0],Gn=on[1]||"",Gi=!on[1],Po=hn.slice(-1),er=hn.slice(-2),Tr=Gn.slice(-1),va=Gn.slice(-2);return zt?"other":Gi&&1==Po&&11!=er||1==Tr&&11!=va?"one":Gi&&Po>=2&&Po<=4&&(er<12||er>14)||Tr>=2&&Tr<=4&&(va<12||va>14)?"few":"other"},ss:mt,ssy:mt,st:mt,su:ao,sv:(Tt,zt)=>{const on=String(Tt).split("."),hn=!on[1],Gn=Number(on[0])==Tt,Gi=Gn&&on[0].slice(-1),Po=Gn&&on[0].slice(-2);return zt?1!=Gi&&2!=Gi||11==Po||12==Po?"other":"one":1==Tt&&hn?"one":"other"},sw:Ai,syr:mt,ta:mt,te:mt,teo:mt,th:ao,ti:$t,tig:mt,tk:(Tt,zt)=>{const on=String(Tt).split("."),Gn=Number(on[0])==Tt&&on[0].slice(-1);return zt?6==Gn||9==Gn||10==Tt?"few":"other":1==Tt?"one":"other"},tl:(Tt,zt)=>{const on=String(Tt).split("."),hn=on[0],Gn=on[1]||"",Gi=!on[1],Po=hn.slice(-1),er=Gn.slice(-1);return zt?1==Tt?"one":"other":Gi&&(1==hn||2==hn||3==hn)||Gi&&4!=Po&&6!=Po&&9!=Po||!Gi&&4!=er&&6!=er&&9!=er?"one":"other"},tn:mt,to:ao,tpi:ao,tr:mt,ts:mt,tzm:(Tt,zt)=>{const on=String(Tt).split("."),hn=Number(on[0])==Tt;return zt?"other":0==Tt||1==Tt||hn&&Tt>=11&&Tt<=99?"one":"other"},ug:mt,uk:(Tt,zt)=>{const on=String(Tt).split("."),hn=on[0],Gn=!on[1],Gi=Number(on[0])==Tt,Po=Gi&&on[0].slice(-1),er=Gi&&on[0].slice(-2),Tr=hn.slice(-1),va=hn.slice(-2);return zt?3==Po&&13!=er?"few":"other":Gn&&1==Tr&&11!=va?"one":Gn&&Tr>=2&&Tr<=4&&(va<12||va>14)?"few":Gn&&0==Tr||Gn&&Tr>=5&&Tr<=9||Gn&&va>=11&&va<=14?"many":"other"},und:ao,ur:Ai,uz:mt,ve:mt,vec:(Tt,zt)=>{const on=String(Tt).split("."),hn=on[0],Gn=!on[1],Gi=hn.slice(-6);return zt?11==Tt||8==Tt||80==Tt||800==Tt?"many":"other":1==Tt&&Gn?"one":0!=hn&&0==Gi&&Gn?"many":"other"},vi:(Tt,zt)=>zt&&1==Tt?"one":"other",vo:mt,vun:mt,wa:$t,wae:mt,wo:ao,xh:mt,xog:mt,yi:Ai,yo:ao,yue:ao,zh:ao,zu:ai});function Uf(Tt){if("string"!=typeof Tt||Tt.length<2)throw new RangeError("Invalid language tag: ".concat(Tt));if(Tt.startsWith("pt-PT"))return"pt-PT";var zt=Tt.match(/.+?(?=[-_])/);return zt?zt[0]:Tt}function Q_(Tt){if("function"==typeof Tt){var zt=Uf(Tt.name);return{isDefault:!1,id:_o(zt),lc:zt,locale:Tt.name,getPlural:Tt,cardinals:Tt.cardinals||[],ordinals:Tt.ordinals||[]}}var on=Uf(Tt),hn=_o(on);return function V_(Tt){return Tt in Nf}(hn)?{isDefault:!0,id:hn,lc:on,locale:Tt,getCardinal:pt[hn],getPlural:Nf[hn],cardinals:it[hn].cardinal,ordinals:it[hn].ordinal}:null}function Ag(Tt){return _o(Uf(Tt))in Nf}var Bf=function(){function Tt(zt,on){if(this.plurals=[],this.options=Object.assign({biDiSupport:!1,currency:"USD",customFormatters:{},localeCodeFromKey:null,requireAllArguments:!1,returnType:"string",strict:on&&on.strictNumberSign||!1,strictPluralKeys:!0},on),"*"===zt?this.plurals=function ug(Tt){var zt=Object.keys(Nf).filter(function(on){return on!==Tt});return zt.unshift(Tt),zt.map(Q_)}(Tt.defaultLocale):Array.isArray(zt)?this.plurals=zt.map(Q_).filter(Boolean):zt&&(hn=Q_(zt))&&(this.plurals=[hn]),0===this.plurals.length){var hn=Q_(Tt.defaultLocale);this.plurals=[hn]}}return Tt.escape=function(zt,on){var hn=on?/[#{}]/g:/[{}]/g;return String(zt).replace(hn,"'$&'")},Tt.supportedLocalesOf=function(zt){return(Array.isArray(zt)?zt:[zt]).filter(Ag)},Tt.prototype.resolvedOptions=function(){return X(X({},this.options),{locale:this.plurals[0].locale,plurals:this.plurals})},Tt.prototype.compile=function(zt){var on,hn,Gn=new Wi(this.options),Gi="return "+Gn.compile(zt,this.plurals[0]),Po=[],er=[];try{for(var Tr=a(Object.entries(Gn.runtime)),va=Tr.next();!va.done;va=Tr.next()){var gl=e(va.value,2),Zl=gl[1];Po.push(gl[0]),er.push(Zl)}}catch(Yc){on={error:Yc}}finally{try{va&&!va.done&&(hn=Tr.return)&&hn.call(Tr)}finally{if(on)throw on.error}}return(new(Function.bind.apply(Function,n(n([void 0],e(Po),!1),[Gi],!1)))).apply(void 0,n([],e(er),!1))},Tt.defaultLocale="en",Tt}();return Bf}()},67173:(gt,X,a)=>{"use strict";var e=a(6593),n=a(19212),s=a(21473),l=a(96814),i=a(69862),t=a(56223),p=a(25313),c=a(86825);function x(be){return new n.vHH(3e3,!1)}function Oe(be){switch(be.length){case 0:return new c.ZN;case 1:return be[0];default:return new c.ZE(be)}}function ye(be,we,ie=new Map,Ge=new Map){const Rt=[],Zn=[];let io=-1,Ro=null;if(we.forEach(ar=>{const Or=ar.get("offset"),La=Or==io,za=La&&Ro||new Map;ar.forEach((Ol,fl)=>{let As=fl,Xs=Ol;if("offset"!==fl)switch(As=be.normalizePropertyName(As,Rt),Xs){case c.k1:Xs=ie.get(fl);break;case c.l3:Xs=Ge.get(fl);break;default:Xs=be.normalizeStyleValue(fl,As,Xs,Rt)}za.set(As,Xs)}),La||Zn.push(za),Ro=za,io=Or}),Rt.length)throw function R(be){return new n.vHH(3502,!1)}();return Zn}function ve(be,we,ie,Ge){switch(we){case"start":be.onStart(()=>Ge(ie&&ft(ie,"start",be)));break;case"done":be.onDone(()=>Ge(ie&&ft(ie,"done",be)));break;case"destroy":be.onDestroy(()=>Ge(ie&&ft(ie,"destroy",be)))}}function ft(be,we,ie){const Zn=Dt(be.element,be.triggerName,be.fromState,be.toState,we||be.phaseName,ie.totalTime??be.totalTime,!!ie.disabled),io=be._data;return null!=io&&(Zn._data=io),Zn}function Dt(be,we,ie,Ge,Rt="",Zn=0,io){return{element:be,triggerName:we,fromState:ie,toState:Ge,phaseName:Rt,totalTime:Zn,disabled:!!io}}function Rn(be,we,ie){let Ge=be.get(we);return Ge||be.set(we,Ge=ie),Ge}function ti(be){const we=be.indexOf(":");return[be.substring(1,we),be.slice(we+1)]}const Xt=typeof document>"u"?null:document.documentElement;function Je(be){const we=be.parentNode||be.host||null;return we===Xt?null:we}let Ie=null,ot=!1;function ni(be,we){for(;we;){if(we===be)return!0;we=Je(we)}return!1}function sn(be,we,ie){if(ie)return Array.from(be.querySelectorAll(we));const Ge=be.querySelector(we);return Ge?[Ge]:[]}let vt=(()=>{class be{validateStyleProperty(ie){return function ct(be){Ie||(Ie=function yi(){return typeof document<"u"?document.body:null}()||{},ot=!!Ie.style&&"WebkitAppearance"in Ie.style);let we=!0;return Ie.style&&!function dt(be){return"ebkit"==be.substring(1,6)}(be)&&(we=be in Ie.style,!we&&ot&&(we="Webkit"+be.charAt(0).toUpperCase()+be.slice(1)in Ie.style)),we}(ie)}matchesElement(ie,Ge){return!1}containsElement(ie,Ge){return ni(ie,Ge)}getParentElement(ie){return Je(ie)}query(ie,Ge,Rt){return sn(ie,Ge,Rt)}computeStyle(ie,Ge,Rt){return Rt||""}animate(ie,Ge,Rt,Zn,io,Ro=[],ar){return new c.ZN(Rt,Zn)}static#e=this.\u0275fac=function(Ge){return new(Ge||be)};static#t=this.\u0275prov=n.Yz7({token:be,factory:be.\u0275fac})}return be})();class nn{static#e=this.NOOP=new vt}class rn{}const Oo=1e3,ji="ng-enter",Ii="ng-leave",_i="ng-trigger",En=".ng-trigger",co="ng-animating",yn=".ng-animating";function ln(be){if("number"==typeof be)return be;const we=be.match(/^(-?[\.\d]+)(m?s)/);return!we||we.length<2?0:He(parseFloat(we[1]),we[2])}function He(be,we){return"s"===we?be*Oo:be}function rt(be,we,ie){return be.hasOwnProperty("duration")?be:function $e(be,we,ie){let Rt,Zn=0,io="";if("string"==typeof be){const Ro=be.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Ro)return we.push(x()),{duration:0,delay:0,easing:""};Rt=He(parseFloat(Ro[1]),Ro[2]);const ar=Ro[3];null!=ar&&(Zn=He(parseFloat(ar),Ro[4]));const Or=Ro[5];Or&&(io=Or)}else Rt=be;if(!ie){let Ro=!1,ar=we.length;Rt<0&&(we.push(function u(){return new n.vHH(3100,!1)}()),Ro=!0),Zn<0&&(we.push(function m(){return new n.vHH(3101,!1)}()),Ro=!0),Ro&&we.splice(ar,0,x())}return{duration:Rt,delay:Zn,easing:io}}(be,we,ie)}function tt(be,we,ie){we.forEach((Ge,Rt)=>{const Zn=li(Rt);ie&&!ie.has(Rt)&&ie.set(Rt,be.style[Zn]),be.style[Zn]=Ge})}function ht(be,we){we.forEach((ie,Ge)=>{const Rt=li(Ge);be.style[Rt]=""})}function Qt(be){return Array.isArray(be)?1==be.length?be[0]:(0,c.vP)(be):be}const Yt=new RegExp("{{\\s*(.+?)\\s*}}","g");function Fn(be){let we=[];if("string"==typeof be){let ie;for(;ie=Yt.exec(be);)we.push(ie[1]);Yt.lastIndex=0}return we}function yt(be,we,ie){const Ge=`${be}`,Rt=Ge.replace(Yt,(Zn,io)=>{let Ro=we[io];return null==Ro&&(ie.push(function I(be){return new n.vHH(3003,!1)}()),Ro=""),Ro.toString()});return Rt==Ge?be:Rt}const Bt=/-+([a-z0-9])/g;function li(be){return be.replace(Bt,(...we)=>we[1].toUpperCase())}function Hn(be,we,ie){switch(we.type){case c.mo.Trigger:return be.visitTrigger(we,ie);case c.mo.State:return be.visitState(we,ie);case c.mo.Transition:return be.visitTransition(we,ie);case c.mo.Sequence:return be.visitSequence(we,ie);case c.mo.Group:return be.visitGroup(we,ie);case c.mo.Animate:return be.visitAnimate(we,ie);case c.mo.Keyframes:return be.visitKeyframes(we,ie);case c.mo.Style:return be.visitStyle(we,ie);case c.mo.Reference:return be.visitReference(we,ie);case c.mo.AnimateChild:return be.visitAnimateChild(we,ie);case c.mo.AnimateRef:return be.visitAnimateRef(we,ie);case c.mo.Query:return be.visitQuery(we,ie);case c.mo.Stagger:return be.visitStagger(we,ie);default:throw function H(be){return new n.vHH(3004,!1)}()}}function mo(be,we){return window.getComputedStyle(be)[we]}const vn=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Ji extends rn{normalizePropertyName(we,ie){return li(we)}normalizeStyleValue(we,ie,Ge,Rt){let Zn="";const io=Ge.toString().trim();if(vn.has(ie)&&0!==Ge&&"0"!==Ge)if("number"==typeof Ge)Zn="px";else{const Ro=Ge.match(/^[+-]?[\d\.]+([a-z]*)$/);Ro&&0==Ro[1].length&&Rt.push(function O(be,we){return new n.vHH(3005,!1)}())}return io+Zn}}const Oi="*";const Dn=new Set(["true","1"]),Wt=new Set(["false","0"]);function kn(be,we){const ie=Dn.has(be)||Wt.has(be),Ge=Dn.has(we)||Wt.has(we);return(Rt,Zn)=>{let io=be==Oi||be==Rt,Ro=we==Oi||we==Zn;return!io&&ie&&"boolean"==typeof Rt&&(io=Rt?Dn.has(be):Wt.has(be)),!Ro&&Ge&&"boolean"==typeof Zn&&(Ro=Zn?Dn.has(we):Wt.has(we)),io&&Ro}}const ui=new RegExp("s*:selfs*,?","g");function Fo(be,we,ie,Ge){return new Jn(be).build(we,ie,Ge)}class Jn{constructor(we){this._driver=we}build(we,ie,Ge){const Rt=new $n(ie);return this._resetContextStyleTimingState(Rt),Hn(this,Qt(we),Rt)}_resetContextStyleTimingState(we){we.currentQuerySelector="",we.collectedStyles=new Map,we.collectedStyles.set("",new Map),we.currentTime=0}visitTrigger(we,ie){let Ge=ie.queryCount=0,Rt=ie.depCount=0;const Zn=[],io=[];return"@"==we.name.charAt(0)&&ie.errors.push(function P(){return new n.vHH(3006,!1)}()),we.definitions.forEach(Ro=>{if(this._resetContextStyleTimingState(ie),Ro.type==c.mo.State){const ar=Ro,Or=ar.name;Or.toString().split(/\s*,\s*/).forEach(La=>{ar.name=La,Zn.push(this.visitState(ar,ie))}),ar.name=Or}else if(Ro.type==c.mo.Transition){const ar=this.visitTransition(Ro,ie);Ge+=ar.queryCount,Rt+=ar.depCount,io.push(ar)}else ie.errors.push(function G(){return new n.vHH(3007,!1)}())}),{type:c.mo.Trigger,name:we.name,states:Zn,transitions:io,queryCount:Ge,depCount:Rt,options:null}}visitState(we,ie){const Ge=this.visitStyle(we.styles,ie),Rt=we.options&&we.options.params||null;if(Ge.containsDynamicStyles){const Zn=new Set,io=Rt||{};Ge.styles.forEach(Ro=>{Ro instanceof Map&&Ro.forEach(ar=>{Fn(ar).forEach(Or=>{io.hasOwnProperty(Or)||Zn.add(Or)})})}),Zn.size&&ie.errors.push(function B(be,we){return new n.vHH(3008,!1)}(0,Zn.values()))}return{type:c.mo.State,name:we.name,style:Ge,options:Rt?{params:Rt}:null}}visitTransition(we,ie){ie.queryCount=0,ie.depCount=0;const Ge=Hn(this,Qt(we.animation),ie),Rt=function On(be,we){const ie=[];return"string"==typeof be?be.split(/\s*,\s*/).forEach(Ge=>function _n(be,we,ie){if(":"==be[0]){const ar=function st(be,we){switch(be){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(ie,Ge)=>parseFloat(Ge)>parseFloat(ie);case":decrement":return(ie,Ge)=>parseFloat(Ge)<parseFloat(ie);default:return we.push(function ge(be){return new n.vHH(3016,!1)}()),"* => *"}}(be,ie);if("function"==typeof ar)return void we.push(ar);be=ar}const Ge=be.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==Ge||Ge.length<4)return ie.push(function ue(be){return new n.vHH(3015,!1)}()),we;const Rt=Ge[1],Zn=Ge[2],io=Ge[3];we.push(kn(Rt,io)),"<"==Zn[0]&&(Rt!=Oi||io!=Oi)&&we.push(kn(io,Rt))}(Ge,ie,we)):ie.push(be),ie}(we.expr,ie.errors);return{type:c.mo.Transition,matchers:Rt,animation:Ge,queryCount:ie.queryCount,depCount:ie.depCount,options:bt(we.options)}}visitSequence(we,ie){return{type:c.mo.Sequence,steps:we.steps.map(Ge=>Hn(this,Ge,ie)),options:bt(we.options)}}visitGroup(we,ie){const Ge=ie.currentTime;let Rt=0;const Zn=we.steps.map(io=>{ie.currentTime=Ge;const Ro=Hn(this,io,ie);return Rt=Math.max(Rt,ie.currentTime),Ro});return ie.currentTime=Rt,{type:c.mo.Group,steps:Zn,options:bt(we.options)}}visitAnimate(we,ie){const Ge=function Xo(be,we){if(be.hasOwnProperty("duration"))return be;if("number"==typeof be)return an(rt(be,we).duration,0,"");const ie=be;if(ie.split(/\s+/).some(Zn=>"{"==Zn.charAt(0)&&"{"==Zn.charAt(1))){const Zn=an(0,0,"");return Zn.dynamic=!0,Zn.strValue=ie,Zn}const Rt=rt(ie,we);return an(Rt.duration,Rt.delay,Rt.easing)}(we.timings,ie.errors);ie.currentAnimateTimings=Ge;let Rt,Zn=we.styles?we.styles:(0,c.oB)({});if(Zn.type==c.mo.Keyframes)Rt=this.visitKeyframes(Zn,ie);else{let io=we.styles,Ro=!1;if(!io){Ro=!0;const Or={};Ge.easing&&(Or.easing=Ge.easing),io=(0,c.oB)(Or)}ie.currentTime+=Ge.duration+Ge.delay;const ar=this.visitStyle(io,ie);ar.isEmptyStep=Ro,Rt=ar}return ie.currentAnimateTimings=null,{type:c.mo.Animate,timings:Ge,style:Rt,options:null}}visitStyle(we,ie){const Ge=this._makeStyleAst(we,ie);return this._validateStyleAst(Ge,ie),Ge}_makeStyleAst(we,ie){const Ge=[],Rt=Array.isArray(we.styles)?we.styles:[we.styles];for(let Ro of Rt)"string"==typeof Ro?Ro===c.l3?Ge.push(Ro):ie.errors.push(new n.vHH(3002,!1)):Ge.push(new Map(Object.entries(Ro)));let Zn=!1,io=null;return Ge.forEach(Ro=>{if(Ro instanceof Map&&(Ro.has("easing")&&(io=Ro.get("easing"),Ro.delete("easing")),!Zn))for(let ar of Ro.values())if(ar.toString().indexOf("{{")>=0){Zn=!0;break}}),{type:c.mo.Style,styles:Ge,easing:io,offset:we.offset,containsDynamicStyles:Zn,options:null}}_validateStyleAst(we,ie){const Ge=ie.currentAnimateTimings;let Rt=ie.currentTime,Zn=ie.currentTime;Ge&&Zn>0&&(Zn-=Ge.duration+Ge.delay),we.styles.forEach(io=>{"string"!=typeof io&&io.forEach((Ro,ar)=>{const Or=ie.collectedStyles.get(ie.currentQuerySelector),La=Or.get(ar);let za=!0;La&&(Zn!=Rt&&Zn>=La.startTime&&Rt<=La.endTime&&(ie.errors.push(function q(be,we,ie,Ge,Rt){return new n.vHH(3010,!1)}()),za=!1),Zn=La.startTime),za&&Or.set(ar,{startTime:Zn,endTime:Rt}),ie.options&&function Un(be,we,ie){const Ge=we.params||{},Rt=Fn(be);Rt.length&&Rt.forEach(Zn=>{Ge.hasOwnProperty(Zn)||ie.push(function b(be){return new n.vHH(3001,!1)}())})}(Ro,ie.options,ie.errors)})})}visitKeyframes(we,ie){const Ge={type:c.mo.Keyframes,styles:[],options:null};if(!ie.currentAnimateTimings)return ie.errors.push(function j(){return new n.vHH(3011,!1)}()),Ge;let Zn=0;const io=[];let Ro=!1,ar=!1,Or=0;const La=we.steps.map(Vc=>{const Ed=this._makeStyleAst(Vc,ie);let am=null!=Ed.offset?Ed.offset:function Ui(be){if("string"==typeof be)return null;let we=null;if(Array.isArray(be))be.forEach(ie=>{if(ie instanceof Map&&ie.has("offset")){const Ge=ie;we=parseFloat(Ge.get("offset")),Ge.delete("offset")}});else if(be instanceof Map&&be.has("offset")){const ie=be;we=parseFloat(ie.get("offset")),ie.delete("offset")}return we}(Ed.styles),y=0;return null!=am&&(Zn++,y=Ed.offset=am),ar=ar||y<0||y>1,Ro=Ro||y<Or,Or=y,io.push(y),Ed});ar&&ie.errors.push(function Y(){return new n.vHH(3012,!1)}()),Ro&&ie.errors.push(function K(){return new n.vHH(3200,!1)}());const za=we.steps.length;let Ol=0;Zn>0&&Zn<za?ie.errors.push(function ne(){return new n.vHH(3202,!1)}()):0==Zn&&(Ol=1/(za-1));const fl=za-1,As=ie.currentTime,Xs=ie.currentAnimateTimings,kc=Xs.duration;return La.forEach((Vc,Ed)=>{const am=Ol>0?Ed==fl?1:Ol*Ed:io[Ed],y=am*kc;ie.currentTime=As+Xs.delay+y,Xs.duration=y,this._validateStyleAst(Vc,ie),Vc.offset=am,Ge.styles.push(Vc)}),Ge}visitReference(we,ie){return{type:c.mo.Reference,animation:Hn(this,Qt(we.animation),ie),options:bt(we.options)}}visitAnimateChild(we,ie){return ie.depCount++,{type:c.mo.AnimateChild,options:bt(we.options)}}visitAnimateRef(we,ie){return{type:c.mo.AnimateRef,animation:this.visitReference(we.animation,ie),options:bt(we.options)}}visitQuery(we,ie){const Ge=ie.currentQuerySelector,Rt=we.options||{};ie.queryCount++,ie.currentQuery=we;const[Zn,io]=function Bn(be){const we=!!be.split(/\s*,\s*/).find(ie=>":self"==ie);return we&&(be=be.replace(ui,"")),be=be.replace(/@\*/g,En).replace(/@\w+/g,ie=>En+"-"+ie.slice(1)).replace(/:animating/g,yn),[be,we]}(we.selector);ie.currentQuerySelector=Ge.length?Ge+" "+Zn:Zn,Rn(ie.collectedStyles,ie.currentQuerySelector,new Map);const Ro=Hn(this,Qt(we.animation),ie);return ie.currentQuery=null,ie.currentQuerySelector=Ge,{type:c.mo.Query,selector:Zn,limit:Rt.limit||0,optional:!!Rt.optional,includeSelf:io,animation:Ro,originalSelector:we.selector,options:bt(we.options)}}visitStagger(we,ie){ie.currentQuery||ie.errors.push(function ee(){return new n.vHH(3013,!1)}());const Ge="full"===we.timings?{duration:0,delay:0,easing:"full"}:rt(we.timings,ie.errors,!0);return{type:c.mo.Stagger,animation:Hn(this,Qt(we.animation),ie),timings:Ge,options:null}}}class $n{constructor(we){this.errors=we,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function bt(be){return be?(be={...be}).params&&(be.params=function Bi(be){return be?{...be}:null}(be.params)):be={},be}function an(be,we,ie){return{duration:be,delay:we,easing:ie}}function Wn(be,we,ie,Ge,Rt,Zn,io=null,Ro=!1){return{type:1,element:be,keyframes:we,preStyleProps:ie,postStyleProps:Ge,duration:Rt,delay:Zn,totalTime:Rt+Zn,easing:io,subTimeline:Ro}}class eo{constructor(){this._map=new Map}get(we){return this._map.get(we)||[]}append(we,ie){let Ge=this._map.get(we);Ge||this._map.set(we,Ge=[]),Ge.push(...ie)}has(we){return this._map.has(we)}clear(){this._map.clear()}}const In=new RegExp(":enter","g"),qi=new RegExp(":leave","g");function wi(be,we,ie,Ge,Rt,Zn=new Map,io=new Map,Ro,ar,Or=[]){return(new zo).buildKeyframes(be,we,ie,Ge,Rt,Zn,io,Ro,ar,Or)}class zo{buildKeyframes(we,ie,Ge,Rt,Zn,io,Ro,ar,Or,La=[]){Or=Or||new eo;const za=new ki(we,ie,Or,Rt,Zn,La,[]);za.options=ar;const Ol=ar.delay?ln(ar.delay):0;za.currentTimeline.delayNextStep(Ol),za.currentTimeline.setStyles([io],null,za.errors,ar),Hn(this,Ge,za);const fl=za.timelines.filter(As=>As.containsAnimation());if(fl.length&&Ro.size){let As;for(let Xs=fl.length-1;Xs>=0;Xs--){const kc=fl[Xs];if(kc.element===ie){As=kc;break}}As&&!As.allowOnlyTimelineStyles()&&As.setStyles([Ro],null,za.errors,ar)}return fl.length?fl.map(As=>As.buildKeyframes()):[Wn(ie,[],[],[],0,Ol,"",!1)]}visitTrigger(we,ie){}visitState(we,ie){}visitTransition(we,ie){}visitAnimateChild(we,ie){const Ge=ie.subInstructions.get(ie.element);if(Ge){const Rt=ie.createSubContext(we.options),Zn=ie.currentTimeline.currentTime,io=this._visitSubInstructions(Ge,Rt,Rt.options);Zn!=io&&ie.transformIntoNewTimeline(io)}ie.previousNode=we}visitAnimateRef(we,ie){const Ge=ie.createSubContext(we.options);Ge.transformIntoNewTimeline(),this._applyAnimationRefDelays([we.options,we.animation.options],ie,Ge),this.visitReference(we.animation,Ge),ie.transformIntoNewTimeline(Ge.currentTimeline.currentTime),ie.previousNode=we}_applyAnimationRefDelays(we,ie,Ge){for(const Rt of we){const Zn=Rt?.delay;if(Zn){const io="number"==typeof Zn?Zn:ln(yt(Zn,Rt?.params??{},ie.errors));Ge.delayNextStep(io)}}}_visitSubInstructions(we,ie,Ge){let Zn=ie.currentTimeline.currentTime;const io=null!=Ge.duration?ln(Ge.duration):null,Ro=null!=Ge.delay?ln(Ge.delay):null;return 0!==io&&we.forEach(ar=>{const Or=ie.appendInstructionToTimeline(ar,io,Ro);Zn=Math.max(Zn,Or.duration+Or.delay)}),Zn}visitReference(we,ie){ie.updateOptions(we.options,!0),Hn(this,we.animation,ie),ie.previousNode=we}visitSequence(we,ie){const Ge=ie.subContextCount;let Rt=ie;const Zn=we.options;if(Zn&&(Zn.params||Zn.delay)&&(Rt=ie.createSubContext(Zn),Rt.transformIntoNewTimeline(),null!=Zn.delay)){Rt.previousNode.type==c.mo.Style&&(Rt.currentTimeline.snapshotCurrentStyles(),Rt.previousNode=xi);const io=ln(Zn.delay);Rt.delayNextStep(io)}we.steps.length&&(we.steps.forEach(io=>Hn(this,io,Rt)),Rt.currentTimeline.applyStylesToKeyframe(),Rt.subContextCount>Ge&&Rt.transformIntoNewTimeline()),ie.previousNode=we}visitGroup(we,ie){const Ge=[];let Rt=ie.currentTimeline.currentTime;const Zn=we.options&&we.options.delay?ln(we.options.delay):0;we.steps.forEach(io=>{const Ro=ie.createSubContext(we.options);Zn&&Ro.delayNextStep(Zn),Hn(this,io,Ro),Rt=Math.max(Rt,Ro.currentTimeline.currentTime),Ge.push(Ro.currentTimeline)}),Ge.forEach(io=>ie.currentTimeline.mergeTimelineCollectedStyles(io)),ie.transformIntoNewTimeline(Rt),ie.previousNode=we}_visitTiming(we,ie){if(we.dynamic){const Ge=we.strValue;return rt(ie.params?yt(Ge,ie.params,ie.errors):Ge,ie.errors)}return{duration:we.duration,delay:we.delay,easing:we.easing}}visitAnimate(we,ie){const Ge=ie.currentAnimateTimings=this._visitTiming(we.timings,ie),Rt=ie.currentTimeline;Ge.delay&&(ie.incrementTime(Ge.delay),Rt.snapshotCurrentStyles());const Zn=we.style;Zn.type==c.mo.Keyframes?this.visitKeyframes(Zn,ie):(ie.incrementTime(Ge.duration),this.visitStyle(Zn,ie),Rt.applyStylesToKeyframe()),ie.currentAnimateTimings=null,ie.previousNode=we}visitStyle(we,ie){const Ge=ie.currentTimeline,Rt=ie.currentAnimateTimings;!Rt&&Ge.hasCurrentStyleProperties()&&Ge.forwardFrame();const Zn=Rt&&Rt.easing||we.easing;we.isEmptyStep?Ge.applyEmptyStep(Zn):Ge.setStyles(we.styles,Zn,ie.errors,ie.options),ie.previousNode=we}visitKeyframes(we,ie){const Ge=ie.currentAnimateTimings,Rt=ie.currentTimeline.duration,Zn=Ge.duration,Ro=ie.createSubContext().currentTimeline;Ro.easing=Ge.easing,we.styles.forEach(ar=>{Ro.forwardTime((ar.offset||0)*Zn),Ro.setStyles(ar.styles,ar.easing,ie.errors,ie.options),Ro.applyStylesToKeyframe()}),ie.currentTimeline.mergeTimelineCollectedStyles(Ro),ie.transformIntoNewTimeline(Rt+Zn),ie.previousNode=we}visitQuery(we,ie){const Ge=ie.currentTimeline.currentTime,Rt=we.options||{},Zn=Rt.delay?ln(Rt.delay):0;Zn&&(ie.previousNode.type===c.mo.Style||0==Ge&&ie.currentTimeline.hasCurrentStyleProperties())&&(ie.currentTimeline.snapshotCurrentStyles(),ie.previousNode=xi);let io=Ge;const Ro=ie.invokeQuery(we.selector,we.originalSelector,we.limit,we.includeSelf,!!Rt.optional,ie.errors);ie.currentQueryTotal=Ro.length;let ar=null;Ro.forEach((Or,La)=>{ie.currentQueryIndex=La;const za=ie.createSubContext(we.options,Or);Zn&&za.delayNextStep(Zn),Or===ie.element&&(ar=za.currentTimeline),Hn(this,we.animation,za),za.currentTimeline.applyStylesToKeyframe(),io=Math.max(io,za.currentTimeline.currentTime)}),ie.currentQueryIndex=0,ie.currentQueryTotal=0,ie.transformIntoNewTimeline(io),ar&&(ie.currentTimeline.mergeTimelineCollectedStyles(ar),ie.currentTimeline.snapshotCurrentStyles()),ie.previousNode=we}visitStagger(we,ie){const Ge=ie.parentContext,Rt=ie.currentTimeline,Zn=we.timings,io=Math.abs(Zn.duration),Ro=io*(ie.currentQueryTotal-1);let ar=io*ie.currentQueryIndex;switch(Zn.duration<0?"reverse":Zn.easing){case"reverse":ar=Ro-ar;break;case"full":ar=Ge.currentStaggerTime}const La=ie.currentTimeline;ar&&La.delayNextStep(ar);const za=La.currentTime;Hn(this,we.animation,ie),ie.previousNode=we,Ge.currentStaggerTime=Rt.currentTime-za+(Rt.startTime-Ge.currentTimeline.startTime)}}const xi={};class ki{constructor(we,ie,Ge,Rt,Zn,io,Ro,ar){this._driver=we,this.element=ie,this.subInstructions=Ge,this._enterClassName=Rt,this._leaveClassName=Zn,this.errors=io,this.timelines=Ro,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=xi,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=ar||new wo(this._driver,ie,0),Ro.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(we,ie){if(!we)return;const Ge=we;let Rt=this.options;null!=Ge.duration&&(Rt.duration=ln(Ge.duration)),null!=Ge.delay&&(Rt.delay=ln(Ge.delay));const Zn=Ge.params;if(Zn){let io=Rt.params;io||(io=this.options.params={}),Object.keys(Zn).forEach(Ro=>{(!ie||!io.hasOwnProperty(Ro))&&(io[Ro]=yt(Zn[Ro],io,this.errors))})}}_copyOptions(){const we={};if(this.options){const ie=this.options.params;if(ie){const Ge=we.params={};Object.keys(ie).forEach(Rt=>{Ge[Rt]=ie[Rt]})}}return we}createSubContext(we=null,ie,Ge){const Rt=ie||this.element,Zn=new ki(this._driver,Rt,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Rt,Ge||0));return Zn.previousNode=this.previousNode,Zn.currentAnimateTimings=this.currentAnimateTimings,Zn.options=this._copyOptions(),Zn.updateOptions(we),Zn.currentQueryIndex=this.currentQueryIndex,Zn.currentQueryTotal=this.currentQueryTotal,Zn.parentContext=this,this.subContextCount++,Zn}transformIntoNewTimeline(we){return this.previousNode=xi,this.currentTimeline=this.currentTimeline.fork(this.element,we),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(we,ie,Ge){const Rt={duration:ie??we.duration,delay:this.currentTimeline.currentTime+(Ge??0)+we.delay,easing:""},Zn=new Ei(this._driver,we.element,we.keyframes,we.preStyleProps,we.postStyleProps,Rt,we.stretchStartingKeyframe);return this.timelines.push(Zn),Rt}incrementTime(we){this.currentTimeline.forwardTime(this.currentTimeline.duration+we)}delayNextStep(we){we>0&&this.currentTimeline.delayNextStep(we)}invokeQuery(we,ie,Ge,Rt,Zn,io){let Ro=[];if(Rt&&Ro.push(this.element),we.length>0){we=(we=we.replace(In,"."+this._enterClassName)).replace(qi,"."+this._leaveClassName);let Or=this._driver.query(this.element,we,1!=Ge);0!==Ge&&(Or=Ge<0?Or.slice(Or.length+Ge,Or.length):Or.slice(0,Ge)),Ro.push(...Or)}return!Zn&&0==Ro.length&&io.push(function $(be){return new n.vHH(3014,!1)}()),Ro}}class wo{constructor(we,ie,Ge,Rt){this._driver=we,this.element=ie,this.startTime=Ge,this._elementTimelineStylesLookup=Rt,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(ie),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(ie,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(we){const ie=1===this._keyframes.size&&this._pendingStyles.size;this.duration||ie?(this.forwardTime(this.currentTime+we),ie&&this.snapshotCurrentStyles()):this.startTime+=we}fork(we,ie){return this.applyStylesToKeyframe(),new wo(this._driver,we,ie||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(we){this.applyStylesToKeyframe(),this.duration=we,this._loadKeyframe()}_updateStyle(we,ie){this._localTimelineStyles.set(we,ie),this._globalTimelineStyles.set(we,ie),this._styleSummary.set(we,{time:this.currentTime,value:ie})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(we){we&&this._previousKeyframe.set("easing",we);for(let[ie,Ge]of this._globalTimelineStyles)this._backFill.set(ie,Ge||c.l3),this._currentKeyframe.set(ie,c.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(we,ie,Ge,Rt){ie&&this._previousKeyframe.set("easing",ie);const Zn=Rt&&Rt.params||{},io=function Cr(be,we){const ie=new Map;let Ge;return be.forEach(Rt=>{if("*"===Rt){Ge??=we.keys();for(let Zn of Ge)ie.set(Zn,c.l3)}else for(let[Zn,io]of Rt)ie.set(Zn,io)}),ie}(we,this._globalTimelineStyles);for(let[Ro,ar]of io){const Or=yt(ar,Zn,Ge);this._pendingStyles.set(Ro,Or),this._localTimelineStyles.has(Ro)||this._backFill.set(Ro,this._globalTimelineStyles.get(Ro)??c.l3),this._updateStyle(Ro,Or)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((we,ie)=>{this._currentKeyframe.set(ie,we)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((we,ie)=>{this._currentKeyframe.has(ie)||this._currentKeyframe.set(ie,we)}))}snapshotCurrentStyles(){for(let[we,ie]of this._localTimelineStyles)this._pendingStyles.set(we,ie),this._updateStyle(we,ie)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const we=[];for(let ie in this._currentKeyframe)we.push(ie);return we}mergeTimelineCollectedStyles(we){we._styleSummary.forEach((ie,Ge)=>{const Rt=this._styleSummary.get(Ge);(!Rt||ie.time>Rt.time)&&this._updateStyle(Ge,ie.value)})}buildKeyframes(){this.applyStylesToKeyframe();const we=new Set,ie=new Set,Ge=1===this._keyframes.size&&0===this.duration;let Rt=[];this._keyframes.forEach((Ro,ar)=>{const Or=new Map([...this._backFill,...Ro]);Or.forEach((La,za)=>{La===c.k1?we.add(za):La===c.l3&&ie.add(za)}),Ge||Or.set("offset",ar/this.duration),Rt.push(Or)});const Zn=[...we.values()],io=[...ie.values()];if(Ge){const Ro=Rt[0],ar=new Map(Ro);Ro.set("offset",0),ar.set("offset",1),Rt=[Ro,ar]}return Wn(this.element,Rt,Zn,io,this.duration,this.startTime,this.easing,!1)}}class Ei extends wo{constructor(we,ie,Ge,Rt,Zn,io,Ro=!1){super(we,ie,io.delay),this.keyframes=Ge,this.preStyleProps=Rt,this.postStyleProps=Zn,this._stretchStartingKeyframe=Ro,this.timings={duration:io.duration,delay:io.delay,easing:io.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let we=this.keyframes,{delay:ie,duration:Ge,easing:Rt}=this.timings;if(this._stretchStartingKeyframe&&ie){const Zn=[],io=Ge+ie,Ro=ie/io,ar=new Map(we[0]);ar.set("offset",0),Zn.push(ar);const Or=new Map(we[0]);Or.set("offset",ho(Ro)),Zn.push(Or);const La=we.length-1;for(let za=1;za<=La;za++){let Ol=new Map(we[za]);const fl=Ol.get("offset");Ol.set("offset",ho((ie+fl*Ge)/io)),Zn.push(Ol)}Ge=io,ie=0,Rt="",we=Zn}return Wn(this.element,we,this.preStyleProps,this.postStyleProps,Ge,ie,Rt,!0)}}function ho(be,we=3){const ie=Math.pow(10,we-1);return Math.round(be*ie)/ie}function vr(be,we,ie,Ge,Rt,Zn,io,Ro,ar,Or,La,za,Ol){return{type:0,element:be,triggerName:we,isRemovalTransition:Rt,fromState:ie,fromStyles:Zn,toState:Ge,toStyles:io,timelines:Ro,queriedElements:ar,preStyleProps:Or,postStyleProps:La,totalTime:za,errors:Ol}}const qr={};class Ra{constructor(we,ie,Ge){this._triggerName=we,this.ast=ie,this._stateStyles=Ge}match(we,ie,Ge,Rt){return function Hs(be,we,ie,Ge,Rt){return be.some(Zn=>Zn(we,ie,Ge,Rt))}(this.ast.matchers,we,ie,Ge,Rt)}buildStyles(we,ie,Ge){let Rt=this._stateStyles.get("*");return void 0!==we&&(Rt=this._stateStyles.get(we?.toString())||Rt),Rt?Rt.buildStyles(ie,Ge):new Map}build(we,ie,Ge,Rt,Zn,io,Ro,ar,Or,La){const za=[],Ol=this.ast.options&&this.ast.options.params||qr,As=this.buildStyles(Ge,Ro&&Ro.params||qr,za),Xs=ar&&ar.params||qr,kc=this.buildStyles(Rt,Xs,za),Vc=new Set,Ed=new Map,am=new Map,y="void"===Rt,g={params:Cs(Xs,Ol),delay:this.ast.options?.delay},T=La?[]:wi(we,ie,this.ast.animation,Zn,io,As,kc,g,Or,za);let W=0;return T.forEach(le=>{W=Math.max(le.duration+le.delay,W)}),za.length?vr(ie,this._triggerName,Ge,Rt,y,As,kc,[],[],Ed,am,W,za):(T.forEach(le=>{const De=le.element,ke=Rn(Ed,De,new Set);le.preStyleProps.forEach(Nt=>ke.add(Nt));const Ot=Rn(am,De,new Set);le.postStyleProps.forEach(Nt=>Ot.add(Nt)),De!==ie&&Vc.add(De)}),vr(ie,this._triggerName,Ge,Rt,y,As,kc,T,[...Vc.values()],Ed,am,W))}}function Cs(be,we){const ie={...we};return Object.entries(be).forEach(([Ge,Rt])=>{null!=Rt&&(ie[Ge]=Rt)}),ie}class ms{constructor(we,ie,Ge){this.styles=we,this.defaultParams=ie,this.normalizer=Ge}buildStyles(we,ie){const Ge=new Map,Rt=Cs(we,this.defaultParams);return this.styles.styles.forEach(Zn=>{"string"!=typeof Zn&&Zn.forEach((io,Ro)=>{io&&(io=yt(io,Rt,ie));const ar=this.normalizer.normalizePropertyName(Ro,ie);io=this.normalizer.normalizeStyleValue(Ro,ar,io,ie),Ge.set(Ro,io)})}),Ge}}class el{constructor(we,ie,Ge){this.name=we,this.ast=ie,this._normalizer=Ge,this.transitionFactories=[],this.states=new Map,ie.states.forEach(Rt=>{this.states.set(Rt.name,new ms(Rt.style,Rt.options&&Rt.options.params||{},Ge))}),ls(this.states,"true","1"),ls(this.states,"false","0"),ie.transitions.forEach(Rt=>{this.transitionFactories.push(new Ra(we,Rt,this.states))}),this.fallbackTransition=function Vs(be,we,ie){return new Ra(be,{type:c.mo.Transition,animation:{type:c.mo.Sequence,steps:[],options:null},matchers:[(io,Ro)=>!0],options:null,queryCount:0,depCount:0},we)}(we,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(we,ie,Ge,Rt){return this.transitionFactories.find(io=>io.match(we,ie,Ge,Rt))||null}matchStyles(we,ie,Ge){return this.fallbackTransition.buildStyles(we,ie,Ge)}}function ls(be,we,ie){be.has(we)?be.has(ie)||be.set(ie,be.get(we)):be.has(ie)&&be.set(we,be.get(ie))}const Fa=new eo;class Ds{constructor(we,ie,Ge){this.bodyNode=we,this._driver=ie,this._normalizer=Ge,this._animations=new Map,this._playersById=new Map,this.players=[]}register(we,ie){const Ge=[],Zn=Fo(this._driver,ie,Ge,[]);if(Ge.length)throw function Te(be){return new n.vHH(3503,!1)}();this._animations.set(we,Zn)}_buildPlayer(we,ie,Ge){const Rt=we.element,Zn=ye(this._normalizer,we.keyframes,ie,Ge);return this._driver.animate(Rt,Zn,we.duration,we.delay,we.easing,[],!0)}create(we,ie,Ge={}){const Rt=[],Zn=this._animations.get(we);let io;const Ro=new Map;if(Zn?(io=wi(this._driver,ie,Zn,ji,Ii,new Map,new Map,Ge,Fa,Rt),io.forEach(La=>{const za=Rn(Ro,La.element,new Map);La.postStyleProps.forEach(Ol=>za.set(Ol,null))})):(Rt.push(function me(){return new n.vHH(3300,!1)}()),io=[]),Rt.length)throw function Se(be){return new n.vHH(3504,!1)}();Ro.forEach((La,za)=>{La.forEach((Ol,fl)=>{La.set(fl,this._driver.computeStyle(za,fl,c.l3))})});const Or=Oe(io.map(La=>{const za=Ro.get(La.element);return this._buildPlayer(La,new Map,za)}));return this._playersById.set(we,Or),Or.onDestroy(()=>this.destroy(we)),this.players.push(Or),Or}destroy(we){const ie=this._getPlayer(we);ie.destroy(),this._playersById.delete(we);const Ge=this.players.indexOf(ie);Ge>=0&&this.players.splice(Ge,1)}_getPlayer(we){const ie=this._playersById.get(we);if(!ie)throw function Ue(be){return new n.vHH(3301,!1)}();return ie}listen(we,ie,Ge,Rt){const Zn=Dt(ie,"","","");return ve(this._getPlayer(we),Ge,Zn,Rt),()=>{}}command(we,ie,Ge,Rt){if("register"==Ge)return void this.register(we,Rt[0]);if("create"==Ge)return void this.create(we,ie,Rt[0]||{});const Zn=this._getPlayer(we);switch(Ge){case"play":Zn.play();break;case"pause":Zn.pause();break;case"reset":Zn.reset();break;case"restart":Zn.restart();break;case"finish":Zn.finish();break;case"init":Zn.init();break;case"setPosition":Zn.setPosition(parseFloat(Rt[0]));break;case"destroy":this.destroy(we)}}}const dl="ng-animate-queued",hs="ng-animate-disabled",To=[],sr={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},oi={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Vi="__ng_removed";class Ti{get params(){return this.options.params}constructor(we,ie=""){this.namespaceId=ie;const Ge=we&&we.hasOwnProperty("value");if(this.value=function Za(be){return be??null}(Ge?we.value:we),Ge){const{value:Zn,...io}=we;this.options=io}else this.options={};this.options.params||(this.options.params={})}absorbOptions(we){const ie=we.params;if(ie){const Ge=this.options.params;Object.keys(ie).forEach(Rt=>{null==Ge[Rt]&&(Ge[Rt]=ie[Rt])})}}}const Hi="void",Do=new Ti(Hi);class $o{constructor(we,ie,Ge){this.id=we,this.hostElement=ie,this._engine=Ge,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+we,uo(ie,this._hostClassName)}listen(we,ie,Ge,Rt){if(!this._triggers.has(ie))throw function We(be,we){return new n.vHH(3302,!1)}();if(null==Ge||0==Ge.length)throw function et(be){return new n.vHH(3303,!1)}();if(!function Wa(be){return"start"==be||"done"==be}(Ge))throw function Et(be,we){return new n.vHH(3400,!1)}();const Zn=Rn(this._elementListeners,we,[]),io={name:ie,phase:Ge,callback:Rt};Zn.push(io);const Ro=Rn(this._engine.statesByElement,we,new Map);return Ro.has(ie)||(uo(we,_i),uo(we,_i+"-"+ie),Ro.set(ie,Do)),()=>{this._engine.afterFlush(()=>{const ar=Zn.indexOf(io);ar>=0&&Zn.splice(ar,1),this._triggers.has(ie)||Ro.delete(ie)})}}register(we,ie){return!this._triggers.has(we)&&(this._triggers.set(we,ie),!0)}_getTrigger(we){const ie=this._triggers.get(we);if(!ie)throw function lt(be){return new n.vHH(3401,!1)}();return ie}trigger(we,ie,Ge,Rt=!0){const Zn=this._getTrigger(ie),io=new Vr(this.id,ie,we);let Ro=this._engine.statesByElement.get(we);Ro||(uo(we,_i),uo(we,_i+"-"+ie),this._engine.statesByElement.set(we,Ro=new Map));let ar=Ro.get(ie);const Or=new Ti(Ge,this.id);if(!(Ge&&Ge.hasOwnProperty("value"))&&ar&&Or.absorbOptions(ar.options),Ro.set(ie,Or),ar||(ar=Do),Or.value!==Hi&&ar.value===Or.value){if(!function Aa(be,we){const ie=Object.keys(be),Ge=Object.keys(we);if(ie.length!=Ge.length)return!1;for(let Rt=0;Rt<ie.length;Rt++){const Zn=ie[Rt];if(!we.hasOwnProperty(Zn)||be[Zn]!==we[Zn])return!1}return!0}(ar.params,Or.params)){const Xs=[],kc=Zn.matchStyles(ar.value,ar.params,Xs),Vc=Zn.matchStyles(Or.value,Or.params,Xs);Xs.length?this._engine.reportError(Xs):this._engine.afterFlush(()=>{ht(we,kc),tt(we,Vc)})}return}const Ol=Rn(this._engine.playersByElement,we,[]);Ol.forEach(Xs=>{Xs.namespaceId==this.id&&Xs.triggerName==ie&&Xs.queued&&Xs.destroy()});let fl=Zn.matchTransition(ar.value,Or.value,we,Or.params),As=!1;if(!fl){if(!Rt)return;fl=Zn.fallbackTransition,As=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:we,triggerName:ie,transition:fl,fromState:ar,toState:Or,player:io,isFallbackTransition:As}),As||(uo(we,dl),io.onStart(()=>{fo(we,dl)})),io.onDone(()=>{let Xs=this.players.indexOf(io);Xs>=0&&this.players.splice(Xs,1);const kc=this._engine.playersByElement.get(we);if(kc){let Vc=kc.indexOf(io);Vc>=0&&kc.splice(Vc,1)}}),this.players.push(io),Ol.push(io),io}deregister(we){this._triggers.delete(we),this._engine.statesByElement.forEach(ie=>ie.delete(we)),this._elementListeners.forEach((ie,Ge)=>{this._elementListeners.set(Ge,ie.filter(Rt=>Rt.name!=we))})}clearElementCache(we){this._engine.statesByElement.delete(we),this._elementListeners.delete(we);const ie=this._engine.playersByElement.get(we);ie&&(ie.forEach(Ge=>Ge.destroy()),this._engine.playersByElement.delete(we))}_signalRemovalForInnerTriggers(we,ie){const Ge=this._engine.driver.query(we,En,!0);Ge.forEach(Rt=>{if(Rt[Vi])return;const Zn=this._engine.fetchNamespacesByElement(Rt);Zn.size?Zn.forEach(io=>io.triggerLeaveAnimation(Rt,ie,!1,!0)):this.clearElementCache(Rt)}),this._engine.afterFlushAnimationsDone(()=>Ge.forEach(Rt=>this.clearElementCache(Rt)))}triggerLeaveAnimation(we,ie,Ge,Rt){const Zn=this._engine.statesByElement.get(we),io=new Map;if(Zn){const Ro=[];if(Zn.forEach((ar,Or)=>{if(io.set(Or,ar.value),this._triggers.has(Or)){const La=this.trigger(we,Or,Hi,Rt);La&&Ro.push(La)}}),Ro.length)return this._engine.markElementAsRemoved(this.id,we,!0,ie,io),Ge&&Oe(Ro).onDone(()=>this._engine.processLeaveNode(we)),!0}return!1}prepareLeaveAnimationListeners(we){const ie=this._elementListeners.get(we),Ge=this._engine.statesByElement.get(we);if(ie&&Ge){const Rt=new Set;ie.forEach(Zn=>{const io=Zn.name;if(Rt.has(io))return;Rt.add(io);const ar=this._triggers.get(io).fallbackTransition,Or=Ge.get(io)||Do,La=new Ti(Hi),za=new Vr(this.id,io,we);this._engine.totalQueuedPlayers++,this._queue.push({element:we,triggerName:io,transition:ar,fromState:Or,toState:La,player:za,isFallbackTransition:!0})})}}removeNode(we,ie){const Ge=this._engine;if(we.childElementCount&&this._signalRemovalForInnerTriggers(we,ie),this.triggerLeaveAnimation(we,ie,!0))return;let Rt=!1;if(Ge.totalAnimations){const Zn=Ge.players.length?Ge.playersByQueriedElement.get(we):[];if(Zn&&Zn.length)Rt=!0;else{let io=we;for(;io=io.parentNode;)if(Ge.statesByElement.get(io)){Rt=!0;break}}}if(this.prepareLeaveAnimationListeners(we),Rt)Ge.markElementAsRemoved(this.id,we,!1,ie);else{const Zn=we[Vi];(!Zn||Zn===sr)&&(Ge.afterFlush(()=>this.clearElementCache(we)),Ge.destroyInnerAnimations(we),Ge._onRemovalComplete(we,ie))}}insertNode(we,ie){uo(we,this._hostClassName)}drainQueuedTransitions(we){const ie=[];return this._queue.forEach(Ge=>{const Rt=Ge.player;if(Rt.destroyed)return;const Zn=Ge.element,io=this._elementListeners.get(Zn);io&&io.forEach(Ro=>{if(Ro.name==Ge.triggerName){const ar=Dt(Zn,Ge.triggerName,Ge.fromState.value,Ge.toState.value);ar._data=we,ve(Ge.player,Ro.phase,ar,Ro.callback)}}),Rt.markedForDestroy?this._engine.afterFlush(()=>{Rt.destroy()}):ie.push(Ge)}),this._queue=[],ie.sort((Ge,Rt)=>{const Zn=Ge.transition.ast.depCount,io=Rt.transition.ast.depCount;return 0==Zn||0==io?Zn-io:this._engine.driver.containsElement(Ge.element,Rt.element)?1:-1})}destroy(we){this.players.forEach(ie=>ie.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,we)}}class yr{_onRemovalComplete(we,ie){this.onRemovalComplete(we,ie)}constructor(we,ie,Ge,Rt){this.bodyNode=we,this.driver=ie,this._normalizer=Ge,this.scheduler=Rt,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(Zn,io)=>{}}get queuedPlayers(){const we=[];return this._namespaceList.forEach(ie=>{ie.players.forEach(Ge=>{Ge.queued&&we.push(Ge)})}),we}createNamespace(we,ie){const Ge=new $o(we,ie,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,ie)?this._balanceNamespaceList(Ge,ie):(this.newHostElements.set(ie,Ge),this.collectEnterElement(ie)),this._namespaceLookup[we]=Ge}_balanceNamespaceList(we,ie){const Ge=this._namespaceList,Rt=this.namespacesByHostElement;if(Ge.length-1>=0){let io=!1,Ro=this.driver.getParentElement(ie);for(;Ro;){const ar=Rt.get(Ro);if(ar){const Or=Ge.indexOf(ar);Ge.splice(Or+1,0,we),io=!0;break}Ro=this.driver.getParentElement(Ro)}io||Ge.unshift(we)}else Ge.push(we);return Rt.set(ie,we),we}register(we,ie){let Ge=this._namespaceLookup[we];return Ge||(Ge=this.createNamespace(we,ie)),Ge}registerTrigger(we,ie,Ge){let Rt=this._namespaceLookup[we];Rt&&Rt.register(ie,Ge)&&this.totalAnimations++}destroy(we,ie){we&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const Ge=this._fetchNamespace(we);this.namespacesByHostElement.delete(Ge.hostElement);const Rt=this._namespaceList.indexOf(Ge);Rt>=0&&this._namespaceList.splice(Rt,1),Ge.destroy(ie),delete this._namespaceLookup[we]}))}_fetchNamespace(we){return this._namespaceLookup[we]}fetchNamespacesByElement(we){const ie=new Set,Ge=this.statesByElement.get(we);if(Ge)for(let Rt of Ge.values())if(Rt.namespaceId){const Zn=this._fetchNamespace(Rt.namespaceId);Zn&&ie.add(Zn)}return ie}trigger(we,ie,Ge,Rt){if(ma(ie)){const Zn=this._fetchNamespace(we);if(Zn)return Zn.trigger(ie,Ge,Rt),!0}return!1}insertNode(we,ie,Ge,Rt){if(!ma(ie))return;const Zn=ie[Vi];if(Zn&&Zn.setForRemoval){Zn.setForRemoval=!1,Zn.setForMove=!0;const io=this.collectedLeaveElements.indexOf(ie);io>=0&&this.collectedLeaveElements.splice(io,1)}if(we){const io=this._fetchNamespace(we);io&&io.insertNode(ie,Ge)}Rt&&this.collectEnterElement(ie)}collectEnterElement(we){this.collectedEnterElements.push(we)}markElementAsDisabled(we,ie){ie?this.disabledNodes.has(we)||(this.disabledNodes.add(we),uo(we,hs)):this.disabledNodes.has(we)&&(this.disabledNodes.delete(we),fo(we,hs))}removeNode(we,ie,Ge){if(ma(ie)){this.scheduler?.notify();const Rt=we?this._fetchNamespace(we):null;Rt?Rt.removeNode(ie,Ge):this.markElementAsRemoved(we,ie,!1,Ge);const Zn=this.namespacesByHostElement.get(ie);Zn&&Zn.id!==we&&Zn.removeNode(ie,Ge)}else this._onRemovalComplete(ie,Ge)}markElementAsRemoved(we,ie,Ge,Rt,Zn){this.collectedLeaveElements.push(ie),ie[Vi]={namespaceId:we,setForRemoval:Rt,hasAnimation:Ge,removedBeforeQueried:!1,previousTriggersValues:Zn}}listen(we,ie,Ge,Rt,Zn){return ma(ie)?this._fetchNamespace(we).listen(ie,Ge,Rt,Zn):()=>{}}_buildInstruction(we,ie,Ge,Rt,Zn){return we.transition.build(this.driver,we.element,we.fromState.value,we.toState.value,Ge,Rt,we.fromState.options,we.toState.options,ie,Zn)}destroyInnerAnimations(we){let ie=this.driver.query(we,En,!0);ie.forEach(Ge=>this.destroyActiveAnimationsForElement(Ge)),0!=this.playersByQueriedElement.size&&(ie=this.driver.query(we,yn,!0),ie.forEach(Ge=>this.finishActiveQueriedAnimationOnElement(Ge)))}destroyActiveAnimationsForElement(we){const ie=this.playersByElement.get(we);ie&&ie.forEach(Ge=>{Ge.queued?Ge.markedForDestroy=!0:Ge.destroy()})}finishActiveQueriedAnimationOnElement(we){const ie=this.playersByQueriedElement.get(we);ie&&ie.forEach(Ge=>Ge.finish())}whenRenderingDone(){return new Promise(we=>{if(this.players.length)return Oe(this.players).onDone(()=>we());we()})}processLeaveNode(we){const ie=we[Vi];if(ie&&ie.setForRemoval){if(we[Vi]=sr,ie.namespaceId){this.destroyInnerAnimations(we);const Ge=this._fetchNamespace(ie.namespaceId);Ge&&Ge.clearElementCache(we)}this._onRemovalComplete(we,ie.setForRemoval)}we.classList?.contains(hs)&&this.markElementAsDisabled(we,!1),this.driver.query(we,".ng-animate-disabled",!0).forEach(Ge=>{this.markElementAsDisabled(Ge,!1)})}flush(we=-1){let ie=[];if(this.newHostElements.size&&(this.newHostElements.forEach((Ge,Rt)=>this._balanceNamespaceList(Ge,Rt)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let Ge=0;Ge<this.collectedEnterElements.length;Ge++)uo(this.collectedEnterElements[Ge],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const Ge=[];try{ie=this._flushAnimations(Ge,we)}finally{for(let Rt=0;Rt<Ge.length;Rt++)Ge[Rt]()}}else for(let Ge=0;Ge<this.collectedLeaveElements.length;Ge++)this.processLeaveNode(this.collectedLeaveElements[Ge]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(Ge=>Ge()),this._flushFns=[],this._whenQuietFns.length){const Ge=this._whenQuietFns;this._whenQuietFns=[],ie.length?Oe(ie).onDone(()=>{Ge.forEach(Rt=>Rt())}):Ge.forEach(Rt=>Rt())}}reportError(we){throw function Vt(be){return new n.vHH(3402,!1)}()}_flushAnimations(we,ie){const Ge=new eo,Rt=[],Zn=new Map,io=[],Ro=new Map,ar=new Map,Or=new Map,La=new Set;this.disabledNodes.forEach(pi=>{La.add(pi);const Di=this.driver.query(pi,".ng-animate-queued",!0);for(let Ni=0;Ni<Di.length;Ni++)La.add(Di[Ni])});const za=this.bodyNode,Ol=Array.from(this.statesByElement.keys()),fl=Cn(Ol,this.collectedEnterElements),As=new Map;let Xs=0;fl.forEach((pi,Di)=>{const Ni=ji+Xs++;As.set(Di,Ni),pi.forEach(lo=>uo(lo,Ni))});const kc=[],Vc=new Set,Ed=new Set;for(let pi=0;pi<this.collectedLeaveElements.length;pi++){const Di=this.collectedLeaveElements[pi],Ni=Di[Vi];Ni&&Ni.setForRemoval&&(kc.push(Di),Vc.add(Di),Ni.hasAnimation?this.driver.query(Di,".ng-star-inserted",!0).forEach(lo=>Vc.add(lo)):Ed.add(Di))}const am=new Map,y=Cn(Ol,Array.from(Vc));y.forEach((pi,Di)=>{const Ni=Ii+Xs++;am.set(Di,Ni),pi.forEach(lo=>uo(lo,Ni))}),we.push(()=>{fl.forEach((pi,Di)=>{const Ni=As.get(Di);pi.forEach(lo=>fo(lo,Ni))}),y.forEach((pi,Di)=>{const Ni=am.get(Di);pi.forEach(lo=>fo(lo,Ni))}),kc.forEach(pi=>{this.processLeaveNode(pi)})});const g=[],T=[];for(let pi=this._namespaceList.length-1;pi>=0;pi--)this._namespaceList[pi].drainQueuedTransitions(ie).forEach(Ni=>{const lo=Ni.player,yo=Ni.element;if(g.push(lo),this.collectedEnterElements.length){const sa=yo[Vi];if(sa&&sa.setForMove){if(sa.previousTriggersValues&&sa.previousTriggersValues.has(Ni.triggerName)){const Ya=sa.previousTriggersValues.get(Ni.triggerName),ua=this.statesByElement.get(Ni.element);if(ua&&ua.has(Ni.triggerName)){const ca=ua.get(Ni.triggerName);ca.value=Ya,ua.set(Ni.triggerName,ca)}}return void lo.destroy()}}const So=!za||!this.driver.containsElement(za,yo),Ko=am.get(yo),Uo=As.get(yo),Yo=this._buildInstruction(Ni,Ge,Uo,Ko,So);if(Yo.errors&&Yo.errors.length)return void T.push(Yo);if(So)return lo.onStart(()=>ht(yo,Yo.fromStyles)),lo.onDestroy(()=>tt(yo,Yo.toStyles)),void Rt.push(lo);if(Ni.isFallbackTransition)return lo.onStart(()=>ht(yo,Yo.fromStyles)),lo.onDestroy(()=>tt(yo,Yo.toStyles)),void Rt.push(lo);const fr=[];Yo.timelines.forEach(sa=>{sa.stretchStartingKeyframe=!0,this.disabledNodes.has(sa.element)||fr.push(sa)}),Yo.timelines=fr,Ge.append(yo,Yo.timelines),io.push({instruction:Yo,player:lo,element:yo}),Yo.queriedElements.forEach(sa=>Rn(Ro,sa,[]).push(lo)),Yo.preStyleProps.forEach((sa,Ya)=>{if(sa.size){let ua=ar.get(Ya);ua||ar.set(Ya,ua=new Set),sa.forEach((ca,pa)=>ua.add(pa))}}),Yo.postStyleProps.forEach((sa,Ya)=>{let ua=Or.get(Ya);ua||Or.set(Ya,ua=new Set),sa.forEach((ca,pa)=>ua.add(pa))})});if(T.length){const pi=[];T.forEach(Di=>{pi.push(function Z(be,we){return new n.vHH(3505,!1)}())}),g.forEach(Di=>Di.destroy()),this.reportError(pi)}const W=new Map,le=new Map;io.forEach(pi=>{const Di=pi.element;Ge.has(Di)&&(le.set(Di,Di),this._beforeAnimationBuild(pi.player.namespaceId,pi.instruction,W))}),Rt.forEach(pi=>{const Di=pi.element;this._getPreviousPlayers(Di,!1,pi.namespaceId,pi.triggerName,null).forEach(lo=>{Rn(W,Di,[]).push(lo),lo.destroy()})});const De=kc.filter(pi=>cs(pi,ar,Or)),ke=new Map;jo(ke,this.driver,Ed,Or,c.l3).forEach(pi=>{cs(pi,ar,Or)&&De.push(pi)});const Nt=new Map;fl.forEach((pi,Di)=>{jo(Nt,this.driver,new Set(pi),ar,c.k1)}),De.forEach(pi=>{const Di=ke.get(pi),Ni=Nt.get(pi);ke.set(pi,new Map([...Di?.entries()??[],...Ni?.entries()??[]]))});const gn=[],Xn=[],ci={};io.forEach(pi=>{const{element:Di,player:Ni,instruction:lo}=pi;if(Ge.has(Di)){if(La.has(Di))return Ni.onDestroy(()=>tt(Di,lo.toStyles)),Ni.disabled=!0,Ni.overrideTotalTime(lo.totalTime),void Rt.push(Ni);let yo=ci;if(le.size>1){let Ko=Di;const Uo=[];for(;Ko=Ko.parentNode;){const Yo=le.get(Ko);if(Yo){yo=Yo;break}Uo.push(Ko)}Uo.forEach(Yo=>le.set(Yo,yo))}const So=this._buildAnimation(Ni.namespaceId,lo,W,Zn,Nt,ke);if(Ni.setRealPlayer(So),yo===ci)gn.push(Ni);else{const Ko=this.playersByElement.get(yo);Ko&&Ko.length&&(Ni.parentPlayer=Oe(Ko)),Rt.push(Ni)}}else ht(Di,lo.fromStyles),Ni.onDestroy(()=>tt(Di,lo.toStyles)),Xn.push(Ni),La.has(Di)&&Rt.push(Ni)}),Xn.forEach(pi=>{const Di=Zn.get(pi.element);if(Di&&Di.length){const Ni=Oe(Di);pi.setRealPlayer(Ni)}}),Rt.forEach(pi=>{pi.parentPlayer?pi.syncPlayerEvents(pi.parentPlayer):pi.destroy()});for(let pi=0;pi<kc.length;pi++){const Di=kc[pi],Ni=Di[Vi];if(fo(Di,Ii),Ni&&Ni.hasAnimation)continue;let lo=[];if(Ro.size){let So=Ro.get(Di);So&&So.length&&lo.push(...So);let Ko=this.driver.query(Di,yn,!0);for(let Uo=0;Uo<Ko.length;Uo++){let Yo=Ro.get(Ko[Uo]);Yo&&Yo.length&&lo.push(...Yo)}}const yo=lo.filter(So=>!So.destroyed);yo.length?Jo(this,Di,yo):this.processLeaveNode(Di)}return kc.length=0,gn.forEach(pi=>{this.players.push(pi),pi.onDone(()=>{pi.destroy();const Di=this.players.indexOf(pi);this.players.splice(Di,1)}),pi.play()}),gn}afterFlush(we){this._flushFns.push(we)}afterFlushAnimationsDone(we){this._whenQuietFns.push(we)}_getPreviousPlayers(we,ie,Ge,Rt,Zn){let io=[];if(ie){const Ro=this.playersByQueriedElement.get(we);Ro&&(io=Ro)}else{const Ro=this.playersByElement.get(we);if(Ro){const ar=!Zn||Zn==Hi;Ro.forEach(Or=>{Or.queued||!ar&&Or.triggerName!=Rt||io.push(Or)})}}return(Ge||Rt)&&(io=io.filter(Ro=>!(Ge&&Ge!=Ro.namespaceId||Rt&&Rt!=Ro.triggerName))),io}_beforeAnimationBuild(we,ie,Ge){const Zn=ie.element,io=ie.isRemovalTransition?void 0:we,Ro=ie.isRemovalTransition?void 0:ie.triggerName;for(const ar of ie.timelines){const Or=ar.element,La=Or!==Zn,za=Rn(Ge,Or,[]);this._getPreviousPlayers(Or,La,io,Ro,ie.toState).forEach(fl=>{const As=fl.getRealPlayer();As.beforeDestroy&&As.beforeDestroy(),fl.destroy(),za.push(fl)})}ht(Zn,ie.fromStyles)}_buildAnimation(we,ie,Ge,Rt,Zn,io){const Ro=ie.triggerName,ar=ie.element,Or=[],La=new Set,za=new Set,Ol=ie.timelines.map(As=>{const Xs=As.element;La.add(Xs);const kc=Xs[Vi];if(kc&&kc.removedBeforeQueried)return new c.ZN(As.duration,As.delay);const Vc=Xs!==ar,Ed=function kr(be){const we=[];return Qr(be,we),we}((Ge.get(Xs)||To).map(W=>W.getRealPlayer())).filter(W=>!!W.element&&W.element===Xs),am=Zn.get(Xs),y=io.get(Xs),g=ye(this._normalizer,As.keyframes,am,y),T=this._buildPlayer(As,g,Ed);if(As.subTimeline&&Rt&&za.add(Xs),Vc){const W=new Vr(we,Ro,Xs);W.setRealPlayer(T),Or.push(W)}return T});Or.forEach(As=>{Rn(this.playersByQueriedElement,As.element,[]).push(As),As.onDone(()=>function da(be,we,ie){let Ge=be.get(we);if(Ge){if(Ge.length){const Rt=Ge.indexOf(ie);Ge.splice(Rt,1)}0==Ge.length&&be.delete(we)}return Ge}(this.playersByQueriedElement,As.element,As))}),La.forEach(As=>uo(As,co));const fl=Oe(Ol);return fl.onDestroy(()=>{La.forEach(As=>fo(As,co)),tt(ar,ie.toStyles)}),za.forEach(As=>{Rn(Rt,As,[]).push(fl)}),fl}_buildPlayer(we,ie,Ge){return ie.length>0?this.driver.animate(we.element,ie,we.duration,we.delay,we.easing,Ge):new c.ZN(we.duration,we.delay)}}class Vr{constructor(we,ie,Ge){this.namespaceId=we,this.triggerName=ie,this.element=Ge,this._player=new c.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(we){this._containsRealPlayer||(this._player=we,this._queuedCallbacks.forEach((ie,Ge)=>{ie.forEach(Rt=>ve(we,Ge,void 0,Rt))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(we.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(we){this.totalTime=we}syncPlayerEvents(we){const ie=this._player;ie.triggerCallback&&we.onStart(()=>ie.triggerCallback("start")),we.onDone(()=>this.finish()),we.onDestroy(()=>this.destroy())}_queueEvent(we,ie){Rn(this._queuedCallbacks,we,[]).push(ie)}onDone(we){this.queued&&this._queueEvent("done",we),this._player.onDone(we)}onStart(we){this.queued&&this._queueEvent("start",we),this._player.onStart(we)}onDestroy(we){this.queued&&this._queueEvent("destroy",we),this._player.onDestroy(we)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(we){this.queued||this._player.setPosition(we)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(we){const ie=this._player;ie.triggerCallback&&ie.triggerCallback(we)}}function ma(be){return be&&1===be.nodeType}function Yi(be,we){const ie=be.style.display;return be.style.display=we??"none",ie}function jo(be,we,ie,Ge,Rt){const Zn=[];ie.forEach(ar=>Zn.push(Yi(ar)));const io=[];Ge.forEach((ar,Or)=>{const La=new Map;ar.forEach(za=>{const Ol=we.computeStyle(Or,za,Rt);La.set(za,Ol),(!Ol||0==Ol.length)&&(Or[Vi]=oi,io.push(Or))}),be.set(Or,La)});let Ro=0;return ie.forEach(ar=>Yi(ar,Zn[Ro++])),io}function Cn(be,we){const ie=new Map;if(be.forEach(Ro=>ie.set(Ro,[])),0==we.length)return ie;const Rt=new Set(we),Zn=new Map;function io(Ro){if(!Ro)return 1;let ar=Zn.get(Ro);if(ar)return ar;const Or=Ro.parentNode;return ar=ie.has(Or)?Or:Rt.has(Or)?1:io(Or),Zn.set(Ro,ar),ar}return we.forEach(Ro=>{const ar=io(Ro);1!==ar&&ie.get(ar).push(Ro)}),ie}function uo(be,we){be.classList?.add(we)}function fo(be,we){be.classList?.remove(we)}function Jo(be,we,ie){Oe(ie).onDone(()=>be.processLeaveNode(we))}function Qr(be,we){for(let ie=0;ie<be.length;ie++){const Ge=be[ie];Ge instanceof c.ZE?Qr(Ge.players,we):we.push(Ge)}}function cs(be,we,ie){const Ge=ie.get(be);if(!Ge)return!1;let Rt=we.get(be);return Rt?Ge.forEach(Zn=>Rt.add(Zn)):we.set(be,Ge),ie.delete(be),!0}class ys{constructor(we,ie,Ge,Rt){this._driver=ie,this._normalizer=Ge,this._triggerCache={},this.onRemovalComplete=(Zn,io)=>{},this._transitionEngine=new yr(we.body,ie,Ge,Rt),this._timelineEngine=new Ds(we.body,ie,Ge),this._transitionEngine.onRemovalComplete=(Zn,io)=>this.onRemovalComplete(Zn,io)}registerTrigger(we,ie,Ge,Rt,Zn){const io=we+"-"+Rt;let Ro=this._triggerCache[io];if(!Ro){const ar=[],La=Fo(this._driver,Zn,ar,[]);if(ar.length)throw function Le(be,we){return new n.vHH(3404,!1)}();Ro=function ja(be,we,ie){return new el(be,we,ie)}(Rt,La,this._normalizer),this._triggerCache[io]=Ro}this._transitionEngine.registerTrigger(ie,Rt,Ro)}register(we,ie){this._transitionEngine.register(we,ie)}destroy(we,ie){this._transitionEngine.destroy(we,ie)}onInsert(we,ie,Ge,Rt){this._transitionEngine.insertNode(we,ie,Ge,Rt)}onRemove(we,ie,Ge){this._transitionEngine.removeNode(we,ie,Ge)}disableAnimations(we,ie){this._transitionEngine.markElementAsDisabled(we,ie)}process(we,ie,Ge,Rt){if("@"==Ge.charAt(0)){const[Zn,io]=ti(Ge);this._timelineEngine.command(Zn,ie,io,Rt)}else this._transitionEngine.trigger(we,ie,Ge,Rt)}listen(we,ie,Ge,Rt,Zn){if("@"==Ge.charAt(0)){const[io,Ro]=ti(Ge);return this._timelineEngine.listen(io,ie,Ro,Zn)}return this._transitionEngine.listen(we,ie,Ge,Rt,Zn)}flush(we=-1){this._transitionEngine.flush(we)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(we){this._transitionEngine.afterFlushAnimationsDone(we)}}class Pi{static#e=this.initialStylesByElement=new WeakMap;constructor(we,ie,Ge){this._element=we,this._startStyles=ie,this._endStyles=Ge,this._state=0;let Rt=Pi.initialStylesByElement.get(we);Rt||Pi.initialStylesByElement.set(we,Rt=new Map),this._initialStyles=Rt}start(){this._state<1&&(this._startStyles&&tt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(tt(this._element,this._initialStyles),this._endStyles&&(tt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Pi.initialStylesByElement.delete(this._element),this._startStyles&&(ht(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ht(this._element,this._endStyles),this._endStyles=null),tt(this._element,this._initialStyles),this._state=3)}}function xo(be){let we=null;return be.forEach((ie,Ge)=>{(function lr(be){return"display"===be||"position"===be})(Ge)&&(we=we||new Map,we.set(Ge,ie))}),we}class Ir{constructor(we,ie,Ge,Rt){this.element=we,this.keyframes=ie,this.options=Ge,this._specialStyles=Rt,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=Ge.duration,this._delay=Ge.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(we=>we()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const we=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,we,this.options),this._finalKeyframe=we.length?we[we.length-1]:new Map;const ie=()=>this._onFinish();this.domPlayer.addEventListener("finish",ie),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",ie)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(we){const ie=[];return we.forEach(Ge=>{ie.push(Object.fromEntries(Ge))}),ie}_triggerWebAnimation(we,ie,Ge){return we.animate(this._convertKeyframesToObject(ie),Ge)}onStart(we){this._originalOnStartFns.push(we),this._onStartFns.push(we)}onDone(we){this._originalOnDoneFns.push(we),this._onDoneFns.push(we)}onDestroy(we){this._onDestroyFns.push(we)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(we=>we()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(we=>we()),this._onDestroyFns=[])}setPosition(we){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=we*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const we=new Map;this.hasStarted()&&this._finalKeyframe.forEach((Ge,Rt)=>{"offset"!==Rt&&we.set(Rt,this._finished?Ge:mo(this.element,Rt))}),this.currentSnapshot=we}triggerCallback(we){const ie="start"===we?this._onStartFns:this._onDoneFns;ie.forEach(Ge=>Ge()),ie.length=0}}class Da{validateStyleProperty(we){return!0}validateAnimatableStyleProperty(we){return!0}matchesElement(we,ie){return!1}containsElement(we,ie){return ni(we,ie)}getParentElement(we){return Je(we)}query(we,ie,Ge){return sn(we,ie,Ge)}computeStyle(we,ie,Ge){return mo(we,ie)}animate(we,ie,Ge,Rt,Zn,io=[]){const ar={duration:Ge,delay:Rt,fill:0==Rt?"both":"forwards"};Zn&&(ar.easing=Zn);const Or=new Map,La=io.filter(fl=>fl instanceof Ir);(function oo(be,we){return 0===be||0===we})(Ge,Rt)&&La.forEach(fl=>{fl.currentSnapshot.forEach((As,Xs)=>Or.set(Xs,As))});let za=function Ve(be){return be.length?be[0]instanceof Map?be:be.map(we=>new Map(Object.entries(we))):[]}(ie).map(fl=>new Map(fl));za=function _o(be,we,ie){if(ie.size&&we.length){let Ge=we[0],Rt=[];if(ie.forEach((Zn,io)=>{Ge.has(io)||Rt.push(io),Ge.set(io,Zn)}),Rt.length)for(let Zn=1;Zn<we.length;Zn++){let io=we[Zn];Rt.forEach(Ro=>io.set(Ro,mo(be,Ro)))}}return we}(we,za,Or);const Ol=function zr(be,we){let ie=null,Ge=null;return Array.isArray(we)&&we.length?(ie=xo(we[0]),we.length>1&&(Ge=xo(we[we.length-1]))):we instanceof Map&&(ie=xo(we)),ie||Ge?new Pi(be,ie,Ge):null}(we,za);return new Ir(we,za,ar,Ol)}}const ba="@.disabled";class Ss{constructor(we,ie,Ge,Rt){this.namespaceId=we,this.delegate=ie,this.engine=Ge,this._onDestroy=Rt,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(we){this.delegate.destroyNode?.(we)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(we,ie){return this.delegate.createElement(we,ie)}createComment(we){return this.delegate.createComment(we)}createText(we){return this.delegate.createText(we)}appendChild(we,ie){this.delegate.appendChild(we,ie),this.engine.onInsert(this.namespaceId,ie,we,!1)}insertBefore(we,ie,Ge,Rt=!0){this.delegate.insertBefore(we,ie,Ge),this.engine.onInsert(this.namespaceId,ie,we,Rt)}removeChild(we,ie,Ge){this.engine.onRemove(this.namespaceId,ie,this.delegate)}selectRootElement(we,ie){return this.delegate.selectRootElement(we,ie)}parentNode(we){return this.delegate.parentNode(we)}nextSibling(we){return this.delegate.nextSibling(we)}setAttribute(we,ie,Ge,Rt){this.delegate.setAttribute(we,ie,Ge,Rt)}removeAttribute(we,ie,Ge){this.delegate.removeAttribute(we,ie,Ge)}addClass(we,ie){this.delegate.addClass(we,ie)}removeClass(we,ie){this.delegate.removeClass(we,ie)}setStyle(we,ie,Ge,Rt){this.delegate.setStyle(we,ie,Ge,Rt)}removeStyle(we,ie,Ge){this.delegate.removeStyle(we,ie,Ge)}setProperty(we,ie,Ge){"@"==ie.charAt(0)&&ie==ba?this.disableAnimations(we,!!Ge):this.delegate.setProperty(we,ie,Ge)}setValue(we,ie){this.delegate.setValue(we,ie)}listen(we,ie,Ge){return this.delegate.listen(we,ie,Ge)}disableAnimations(we,ie){this.engine.disableAnimations(we,ie)}}class Ca extends Ss{constructor(we,ie,Ge,Rt,Zn){super(ie,Ge,Rt,Zn),this.factory=we,this.namespaceId=ie}setProperty(we,ie,Ge){"@"==ie.charAt(0)?"."==ie.charAt(1)&&ie==ba?this.disableAnimations(we,Ge=void 0===Ge||!!Ge):this.engine.process(this.namespaceId,we,ie.slice(1),Ge):this.delegate.setProperty(we,ie,Ge)}listen(we,ie,Ge){if("@"==ie.charAt(0)){const Rt=function Ia(be){switch(be){case"body":return document.body;case"document":return document;case"window":return window;default:return be}}(we);let Zn=ie.slice(1),io="";return"@"!=Zn.charAt(0)&&([Zn,io]=function wa(be){const we=be.indexOf(".");return[be.substring(0,we),be.slice(we+1)]}(Zn)),this.engine.listen(this.namespaceId,Rt,Zn,io,Ro=>{this.factory.scheduleListenerCallback(Ro._data||-1,Ge,Ro)})}return this.delegate.listen(we,ie,Ge)}}class Va{constructor(we,ie,Ge){this.delegate=we,this.engine=ie,this._zone=Ge,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,ie.onRemovalComplete=(Rt,Zn)=>{const io=Zn?.parentNode(Rt);io&&Zn.removeChild(io,Rt)}}createRenderer(we,ie){const Rt=this.delegate.createRenderer(we,ie);if(!we||!ie?.data?.animation){const Or=this._rendererCache;let La=Or.get(Rt);return La||(La=new Ss("",Rt,this.engine,()=>Or.delete(Rt)),Or.set(Rt,La)),La}const Zn=ie.id,io=ie.id+"-"+this._currentId;this._currentId++,this.engine.register(io,we);const Ro=Or=>{Array.isArray(Or)?Or.forEach(Ro):this.engine.registerTrigger(Zn,io,we,Or.name,Or)};return ie.data.animation.forEach(Ro),new Ca(this,io,Rt,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(we,ie,Ge){if(we>=0&&we<this._microtaskId)return void this._zone.run(()=>ie(Ge));const Rt=this._animationCallbacksBuffer;0==Rt.length&&queueMicrotask(()=>{this._zone.run(()=>{Rt.forEach(Zn=>{const[io,Ro]=Zn;io(Ro)}),this._animationCallbacksBuffer=[]})}),Rt.push([ie,Ge])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const Zi=[{provide:rn,useFactory:function di(){return new Ji}},{provide:ys,useClass:(()=>{class be extends ys{constructor(ie,Ge,Rt){super(ie,Ge,Rt,(0,n.f3M)(n.Q0Y,{optional:!0}))}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.LFG(l.K0),n.LFG(nn),n.LFG(rn))};static#t=this.\u0275prov=n.Yz7({token:be,factory:be.\u0275fac})}return be})()},{provide:n.FYo,useFactory:function cn(be,we,ie){return new Va(be,we,ie)},deps:[e.se,ys,n.R0b]}],Eo=[{provide:nn,useFactory:()=>new Da},{provide:n.QbO,useValue:"BrowserAnimations"},...Zi],oa=[{provide:nn,useClass:vt},{provide:n.QbO,useValue:"NoopAnimations"},...Zi];let Nr=(()=>{class be{static withConfig(ie){return{ngModule:be,providers:ie.disableAnimations?oa:Eo}}static#e=this.\u0275fac=function(Ge){return new(Ge||be)};static#t=this.\u0275mod=n.oAB({type:be});static#n=this.\u0275inj=n.cJS({providers:Eo,imports:[e.b2]})}return be})();var ol=a(68727),Cl=a(8386),Ql=a(5078),Ho=a(85829),mc=a(34554),os=a(75986),ps=a(17700),Ps=a(16007),Ba=a(92596),Ka=a(71365),vc=a(1431);class $s{static#e=this.F_JOB_MGMT_ALL={name:Ho.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"JobMgmt:*"};static#t=this.F_JOB_MGMT_QUEUE_SUSPEND={name:Ho.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"JobMgmt_Queue:SUSPEND"};static#n=this.F_JOB_MGMT_QUEUE_RESUME={name:Ho.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"JobMgmt_Queue:RESUME"};static#i=this.F_JOB_MGMT_JOB_READ={name:Ho.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"JobMgmt_Job:R"};static#o=this.F_JOB_MGMT_JOB_READ_OWN={name:Ho.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"JobMgmt_Job_Own:R"};static#r=this.F_JOB_MGMT_JOB_CREATE={name:Ho.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"JobMgmt_Job:C"};static#a=this.F_JOB_MGMT_JOB_SUSPEND={name:Ho.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"JobMgmt_Job:SUSPEND"};static#s=this.F_JOB_MGMT_JOB_RESUME={name:Ho.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"JobMgmt_Job:RESUME"};static#l=this.F_JOB_MGMT_JOB_CANCEL={name:Ho.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"JobMgmt_Job:CANCEL"};static#c=this.F_JOB_MGMT_JOB_UNSCHEDULE={name:Ho.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"JobMgmt_Job:UNSCHED"};static#d=this.F_JOB_MGMT_JOB_RESCHEDULE={name:Ho.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"JobMgmt_Job:RESCHED"}}let js=(()=>{class be{getNavigationItems(){return bc}static#e=this.\u0275fac=function(Ge){return new(Ge||be)};static#t=this.\u0275prov=n.Yz7({token:be,factory:be.\u0275fac})}return be})();const bc=[{name:"system",labelKey:"imxplatform.navigation.system",icon:"icon-code ",order:80,children:[{name:"scheduler",labelKey:"imxjobs.navigation.scheduler",icon:"icon-clipboard",routerLink:"/scheduler",order:15,permissions:[$s.F_JOB_MGMT_JOB_READ]},{name:"jobs",labelKey:"imxjobs.navigation.jobs",icon:"icon-wrench",routerLink:"/jobs",queryParams:{notifiable:!0},order:20,permissions:[$s.F_JOB_MGMT_JOB_READ,$s.F_JOB_MGMT_JOB_READ_OWN]}]}];var ql=a(22941),Gs=a(79309),Dl=a(33946);function Yr(be,we){if(1&be&&(n.ynx(0),n.TgZ(1,"div",3)(2,"pre")(3,"span",4),n._uU(4),n.ALo(5,"json"),n.qZA()()(),n.BQk()),2&be){const ie=n.oxw();n.xp6(4),n.Oqu(n.lcZ(5,1,ie.data.jobProgress))}}let _a=(()=>{class be{constructor(ie){this.data=ie}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.Y36(ps.WI))};static#t=this.\u0275cmp=n.Xpm({type:be,selectors:[["ng-component"]],decls:3,vars:5,consts:[["icon","icon-map_walking","dialogType","form",3,"heading","submitButtonLabel","submitButtonDisabled","cancelButtonLabel"],[1,"dialog-form"],[4,"ngIf"],[1,"dialog-form-group"],[1,"job-detail-dialog__info"]],template:function(Ge,Rt){1&Ge&&(n.TgZ(0,"imx-dialog",0)(1,"div",1),n.YNc(2,Yr,6,3,"ng-container",2),n.qZA()()),2&Ge&&(n.Q6J("heading","entity.JobProgress.entityName")("submitButtonLabel","imxplatform.dialog.common-close")("submitButtonDisabled",!1)("cancelButtonLabel",""),n.xp6(2),n.Q6J("ngIf",Rt.data.jobProgress))},dependencies:[Dl.a,l.O5,l.Ts],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}"]})}return be})(),ts=(()=>{class be{constructor(ie){this.data=ie}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.Y36(ps.WI))};static#t=this.\u0275cmp=n.Xpm({type:be,selectors:[["ng-component"]],decls:10,vars:10,consts:[["icon","icon-wrench","dialogType","form",3,"heading","submitButtonLabel","submitButtonDisabled","cancelButtonLabel"],[1,"dialog-form"],[1,"dialog-form-group"],[1,"job-result-dialog__info"]],template:function(Ge,Rt){1&Ge&&(n.TgZ(0,"imx-dialog",0)(1,"div",1)(2,"div",2)(3,"h3"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"pre")(7,"p",3),n._uU(8),n.ALo(9,"json"),n.qZA()()()()()),2&Ge&&(n.Q6J("heading",Rt.data.title)("submitButtonLabel","imxplatform.dialog.common-close")("submitButtonDisabled",!1)("cancelButtonLabel",""),n.xp6(4),n.Oqu(n.lcZ(5,6,"entity.Job.result")),n.xp6(4),n.Oqu(n.lcZ(9,8,Rt.data.job.result)))},dependencies:[Dl.a,l.Ts,Ka.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.job-detail-dialog__info[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #e6e9ef;font-size:12px;padding:10px;overflow:auto}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.job-result-dialog__info[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #e6e9ef;font-size:12px;padding:10px;overflow:auto}"]})}return be})();var rl=a(49193);const ya="default",Pl=new Map([[Gs.By.scheduled,["unschedule-job","reschedule-job"]],[Gs.By.running,["suspend-job","cancel-job"]],[Gs.By.suspended,["resume-job"]]]);function Ml(){return{label:ya,value:ya}}function la(be){return{label:be.toString().toUpperCase(),value:be.toUpperCase()}}function ks(be,we){return!!Pl.get(Gs.By[we.toLowerCase()])&&Pl.get(Gs.By[we.toLowerCase()]).includes(be.getActionKey())}let sl=(()=>{class be extends Ho.OptionProvider{constructor(){super()}getOptions(ie,Ge){return(0,rl.of)(Object.keys(Gs.By).map(Rt=>la(Rt)))}static#e=this.\u0275fac=function(Ge){return new(Ge||be)};static#t=this.\u0275prov=n.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"})}return be})(),Ec=(()=>{class be extends Ho.OptionProvider{constructor(){super()}getOptions(ie,Ge){return(0,rl.of)(Object.keys(Gs.O4).map(Rt=>la(Rt)))}static#e=this.\u0275fac=function(Ge){return new(Ge||be)};static#t=this.\u0275prov=n.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"})}return be})();const gr=new Ho.FormConfiguration([new Ho.Select("jobStatus","entity.JobStatus.entityName",{optionProvider:sl,initialValue:-1,placeholder:"imxjobs.filter.job-status-placeholder"}),new Ho.Select("jobType","entity.Job.type",{optionProvider:Ec,initialValue:-1,placeholder:"imxjobs.filter.job-type-placeholder"}),new Ho.AutocompleteField("executionUserId","filter.Job.executionUserId",{autocompleteService:Ho.UserAutocompleteService,autocompleteFilter:{clientIds:Ho.CURRENT_AND_SUBCLIENTS},useAnyNameHolder:!1,extractor:(0,Ho.numberExtractor)("executionUserId"),insertor:(0,Ho.pathInsertor)("executionUserId"),required:!1}),new Ho.DateField("executionTimeFrom","filter.Job.executionTimeFrom"),new Ho.DateField("executionTimeTo","filter.Job.executionTimeTo"),new Ho.Input("text","infoTerm","entity.Job.info"),new Ho.Checkbox("notifiable","filter.Job.notifiable")]);let Js=(()=>{class be extends Ho.AbstractFormHandler{constructor(ie,Ge,Rt,Zn){super(gr,void 0,ie,Ge,Zn),this.runtimeContextService=Ge,this.imxSecurityManagerService=Rt}getEntityType(){return"Job"}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.LFG(Ho.NgControlBuilderService),n.LFG(s.Ze),n.LFG(s.Xh),n.LFG(s.H1))};static#t=this.\u0275prov=n.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"})}return be})();var Ms=a(54699);let Bs=(()=>{class be extends Ho.AbstractAction{constructor(ie,Ge,Rt,Zn){super(ie,Ge,Rt,Zn),this.dialog=ie,this.dataAccess=Ge,this.entityStateDao=Rt,this.userMessageService=Zn}executeBatch(ie,Ge){}doExecute(ie){return new Ms.y(Ge=>{this.dialog.open(Ho.ConfirmDialogComponent,{maxWidth:500,data:{title:this.getDialogTitle(ie),text:this.getDialogText(ie),iconClass:this.getIcon(),confirmButtonKey:"imxplatform.common.yes"}}).afterClosed().subscribe(Zn=>{if(Zn){const io={entityIds:[ie.id]},Ro=this.createActionCall(this.getEntityType(),ie,io);this.dataAccess.callAction(Ro).subscribe(ar=>{this.showSuccessMessageForSingleAction(ar),Ge.next(!0)})}})})}createActionCall(ie,Ge,Rt){return{actionKey:this.getActionKey(),entityType:ie,entityIds:[Ge.id],actionParams:Rt||{}}}getEntityType(){return"Job"}getFailedKey(){return"imxplatform.common-entity.list.action.failed"}getSuccessKey(){return"imxplatform.common-entity.list.action.successful"}getBatchWarningKey(){return"imxjobs.gui.list.job-dm.action.batch-warning"}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.LFG(ps.uw),n.LFG(Ho.ImxPlatformDataAccessService),n.LFG(Ho.EntityStateDao),n.LFG(Ho.UserMessageService))};static#t=this.\u0275prov=n.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"})}return be})(),yl=(()=>{class be extends Bs{constructor(ie,Ge,Rt,Zn,io){super(ie,Ge,Rt,Zn),this.dialog=ie,this.dataAccess=Ge,this.entityStateDao=Rt,this.userMessageService=Zn,this.translateService=io}getActionLabelKey(){return"imxjobs.gui.list.job-dm.action.cancel.title"}getDialogTitle(ie){return this.translateService.instant("imxjobs.gui.list.job-dm.action.cancel.heading",{id:ie.id})}getDialogText(ie){return this.translateService.instant("imxjobs.gui.list.job-dm.action.cancel.text",{id:ie.id})}getSuccessKey(){return"imxjobs.gui.list.job-dm.action.cancel.success"}getFailedKey(){return"imxjobs.gui.list.job-dm.action.cancel.failure"}getActionKey(){return"cancel-job"}getIcon(){return"icon-cross"}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.LFG(ps.uw),n.LFG(Ho.ImxPlatformDataAccessService),n.LFG(Ho.EntityStateDao),n.LFG(Ho.UserMessageService),n.LFG(Ka.sK))};static#t=this.\u0275prov=n.Yz7({token:be,factory:be.\u0275fac})}return be})();var Fr=a(96124),nl=a(62413),hl=a(94973),Cc=a(82851);let ri=(()=>{class be extends Ho.ImxBaseDataAccessService{constructor(ie,Ge){super(ie,Ge),this.dataAccess=ie,this.translateService=Ge,this.logger=(0,s.jl)("ImxJobsDataAccessService","imxjobs"),this.logger.info("Creating ImxJobsDataAccessService")}static filterDataByQueue(ie,Ge){return function rc(be,we){return we[be]??Gs.Du}(ie,Ge)}static getAvailableQueueOptions(ie){return function jl(be){return be?Object.keys(be).map(we=>({label:we,value:we})):[]}(ie)}static getDefaultQueueOption(){return Ml()}static concatQueues(ie){return[...ie.runningJob?[ie.runningJob]:[],...ie.queuedJobs.filter(io=>null!==io),...ie.timeSchedJobs.filter(io=>null!==io)]}getScheduler(){return this.dataAccess.get("scheduler").pipe((0,nl.K)(ie=>(this.logger.debug("get scheduler failed",ie),(0,rl.of)({size:0}))),(0,Fr.U)(ie=>ie.scheduler),(0,hl.C)(),(0,Cc.x)())}suspendQueue(ie){return this.dataAccess.post(`scheduler/${ie}/suspend`,null)}resumeQueue(ie){return this.dataAccess.post(`scheduler/${ie}/resume`,null)}getQueueOptions(){return this.getScheduler().pipe((0,Fr.U)(ie=>be.getAvailableQueueOptions(ie)))}getJobById(ie){return this.dataAccess.get(`scheduler/job/${ie}`).pipe((0,Fr.U)(Ge=>Ge.Job),(0,hl.C)(),(0,Cc.x)())}getJobs(ie,Ge){const Rt=this.convertJobParamsToRequestParams(ie,Ge);return this.dataAccess.get("scheduler/job",{params:Rt}).pipe((0,nl.K)(Zn=>(this.logger.debug("get jobs failed",Zn),(0,rl.of)({content:[],totalElements:0,number:0,size:0}))),(0,Fr.U)(Zn=>new s.BY(Zn.content,Zn.totalElements,Zn.number,Zn.size)),(0,hl.C)(),(0,Cc.x)())}createJob(ie,Ge,Rt){return this.dataAccess.post(`scheduler/job/${ie}/${Rt}`,Ge)}getJobProgressById(ie){return this.dataAccess.get(`scheduler/job/${ie}/progress`).pipe((0,hl.C)(),(0,Cc.x)())}convertJobParamsToRequestParams(ie,Ge){const Rt=this.buildJobQueryCriteria(ie);return Object.assign(Rt||{},this.buildRequestOptionParams(Ge,"orderFields"))}buildJobQueryCriteria(ie){let Ge={};return ie&&(Ge={jobStatus:ie.jobStatus,jobType:ie.jobType,executionUserId:ie.executionUserId,executionTimeFrom:ie.executionTimeFrom,executionTimeTo:ie.executionTimeTo,infoTerm:ie.infoTerm,notifiable:ie.notifiable}),this.filterEmptyCriteria(Ge),Ge}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.LFG(s.fx),n.LFG(Ka.sK))};static#t=this.\u0275prov=n.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"})}return be})();var Mn=a(85715),mi=a(10444),Mo=a(72197);const pr=["dialogFrame"];let Pr=(()=>{class be{constructor(ie,Ge,Rt){this.data=ie,this.jobsDataAccess=Ge,this.dialogRef=Rt,this.jobOptions$=(0,rl.of)([]),this.posBeforeJobIdCtrl=new t.p4,this.today=new Date,this.rescheduleBeforeJobCtrl=new t.p4(!0),this.scheduleTime=new Date,this.scheduleTimeCtrl=new t.p4}ngOnInit(){this.jobOptions$=this.loadData()}loadData(){return this.jobsDataAccess.getScheduler().pipe((0,Fr.U)(ie=>this.getAvailableJobOptions(this.data.job.queueName||"default",ie)))}getAvailableJobOptions(ie,Ge){return ri.concatQueues(ri.filterDataByQueue(ie,Ge)).map(Rt=>Rt.Job).filter(Rt=>Rt.status.toLowerCase()===Gs.By.scheduled.toLowerCase()).filter(Rt=>!Rt.scheduledTimestamp).filter(Rt=>Rt.id!==this.data.job.id).map(Rt=>function Kr(be){return{label:be.id.toString(),value:be.id}}(Rt))}onConfirm(){this.dialogRef.close({confirmed:!0,scheduleTime:this.rescheduleBeforeJobCtrl.value?null:(0,s.gR)(this.scheduleTimeCtrl.value),posBeforeJobId:this.rescheduleBeforeJobCtrl.value?this.posBeforeJobIdCtrl.value:null})}onCancel(){this.dialogRef.close({confirmed:!1})}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.Y36(ps.WI),n.Y36(ri),n.Y36(ps.so))};static#t=this.\u0275cmp=n.Xpm({type:be,selectors:[["ng-component"]],viewQuery:function(Ge,Rt){if(1&Ge&&n.Gf(pr,7),2&Ge){let Zn;n.iGM(Zn=n.CRH())&&(Rt.dialogFrame=Zn.first)}},decls:19,vars:26,consts:[["icon","icon-earth","dialogType","form",3,"heading","submitButtonDisabled","useEvents","onConfirm","onCancel"],["dialogFrame",""],[1,"dialog-form"],[1,"dialog-form-group"],[3,"formControl","checkedLabel","notCheckedLabel"],[3,"formControl","hidden","label","options"],[3,"hidden"],[3,"formControl","ngModel","min"]],template:function(Ge,Rt){1&Ge&&(n.TgZ(0,"imx-dialog",0,1),n.NdJ("onConfirm",function(){return Rt.onConfirm()})("onCancel",function(){return Rt.onCancel()}),n.TgZ(2,"form")(3,"div",2)(4,"div",3)(5,"h3"),n._uU(6),n.ALo(7,"translate"),n.qZA(),n._UZ(8,"imx-toggle",4),n.ALo(9,"translate"),n.ALo(10,"translate"),n.qZA(),n.TgZ(11,"div",3),n._UZ(12,"imx-base-select",5),n.ALo(13,"async"),n.TgZ(14,"div",6)(15,"label"),n._uU(16),n.ALo(17,"translate"),n.qZA(),n._UZ(18,"imx-base-date-time",7),n.qZA()()()()()),2&Ge&&(n.Q6J("heading",Rt.data.title)("submitButtonDisabled",!1)("useEvents",!0),n.xp6(6),n.Oqu(n.lcZ(7,16,"imxjobs.gui.list.job-dm.action.reschedule.hint")),n.xp6(2),n.s9C("checkedLabel",n.lcZ(9,18,"imxjobs.gui.list.job-dm.action.reschedule.posBeforeJobId")),n.s9C("notCheckedLabel",n.lcZ(10,20,"imxjobs.gui.list.job-dm.action.reschedule.scheduleTime")),n.Q6J("formControl",Rt.rescheduleBeforeJobCtrl),n.xp6(4),n.Q6J("formControl",Rt.posBeforeJobIdCtrl)("hidden",!Rt.rescheduleBeforeJobCtrl.value)("label","imxjobs.gui.list.job-dm.action.reschedule.select-job")("options",n.lcZ(13,22,Rt.jobOptions$)),n.xp6(2),n.Q6J("hidden",Rt.rescheduleBeforeJobCtrl.value),n.xp6(2),n.Oqu(n.lcZ(17,24,"imxjobs.gui.list.job-dm.action.reschedule.select-scheduleTime")),n.xp6(2),n.Q6J("formControl",Rt.scheduleTimeCtrl)("ngModel",Rt.scheduleTime)("min",Rt.today))},dependencies:[Mn.v,mi.o,Dl.a,Mo.n,t._Y,t.JJ,t.JL,t.oH,t.F,l.Ov,Ka.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}[_nghost-%COMP%]     .base-date-time-wrapper{align-items:flex-end}[_nghost-%COMP%]     .base-date-time-wrapper imx-base-input-label{display:none}"]})}return be})(),xa=(()=>{class be extends Bs{constructor(ie,Ge,Rt,Zn,io){super(ie,Ge,Rt,Zn),this.dialog=ie,this.dataAccess=Ge,this.entityStateDao=Rt,this.userMessageService=Zn,this.translateService=io}doExecute(ie){return new Ms.y(Ge=>{this.dialog.open(Pr,{maxWidth:500,data:{job:ie,title:this.getDialogTitle(ie),text:this.getDialogText(ie),iconClass:this.getIcon()}}).afterClosed().subscribe(Zn=>{if(Zn.confirmed){const io={entityIds:[ie.id],scheduleTime:Zn.scheduleTime,posBeforeJobId:Zn.posBeforeJobId},Ro=this.createActionCall(this.getEntityType(),ie,io);this.dataAccess.callAction(Ro).subscribe(ar=>{this.showSuccessMessageForSingleAction(ar),Ge.next(!0)})}})})}getActionLabelKey(){return"imxjobs.gui.list.job-dm.action.reschedule.title"}getDialogTitle(ie){return this.translateService.instant("imxjobs.gui.list.job-dm.action.reschedule.heading",{id:ie.id})}getDialogText(ie){return this.translateService.instant("imxjobs.gui.list.job-dm.action.reschedule.text",{id:ie.id})}getSuccessKey(){return"imxjobs.gui.list.job-dm.action.reschedule.success"}getFailedKey(){return"imxjobs.gui.list.job-dm.action.reschedule.failure"}getActionKey(){return"reschedule-job"}getIcon(){return"icon-undo"}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.LFG(ps.uw),n.LFG(Ho.ImxPlatformDataAccessService),n.LFG(Ho.EntityStateDao),n.LFG(Ho.UserMessageService),n.LFG(Ka.sK))};static#t=this.\u0275prov=n.Yz7({token:be,factory:be.\u0275fac})}return be})(),tl=(()=>{class be extends Bs{constructor(ie,Ge,Rt,Zn,io){super(ie,Ge,Rt,Zn),this.dialog=ie,this.dataAccess=Ge,this.entityStateDao=Rt,this.userMessageService=Zn,this.translateService=io}getActionLabelKey(){return"imxjobs.gui.list.job-dm.action.resume.title"}getDialogTitle(ie){return this.translateService.instant("imxjobs.gui.list.job-dm.action.resume.heading",{id:ie.id})}getDialogText(ie){return this.translateService.instant("imxjobs.gui.list.job-dm.action.resume.text",{id:ie.id})}getSuccessKey(){return"imxjobs.gui.list.job-dm.action.resume.success"}getFailedKey(){return"imxjobs.gui.list.job-dm.action.resume.failure"}getActionKey(){return"resume-job"}getIcon(){return"icon-chevron-rightBold"}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.LFG(ps.uw),n.LFG(Ho.ImxPlatformDataAccessService),n.LFG(Ho.EntityStateDao),n.LFG(Ho.UserMessageService),n.LFG(Ka.sK))};static#t=this.\u0275prov=n.Yz7({token:be,factory:be.\u0275fac})}return be})(),Ls=(()=>{class be extends Bs{constructor(ie,Ge,Rt,Zn,io){super(ie,Ge,Rt,Zn),this.dialog=ie,this.dataAccess=Ge,this.entityStateDao=Rt,this.userMessageService=Zn,this.translateService=io}getActionLabelKey(){return"imxjobs.gui.list.job-dm.action.suspend.title"}getDialogTitle(ie){return this.translateService.instant("imxjobs.gui.list.job-dm.action.suspend.heading",{id:ie.id})}getDialogText(ie){return this.translateService.instant("imxjobs.gui.list.job-dm.action.suspend.text",{id:ie.id})}getSuccessKey(){return"imxjobs.gui.list.job-dm.action.suspend.success"}getFailedKey(){return"imxjobs.gui.list.job-dm.action.suspend.failure"}getActionKey(){return"suspend-job"}getIcon(){return"icon-lock"}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.LFG(ps.uw),n.LFG(Ho.ImxPlatformDataAccessService),n.LFG(Ho.EntityStateDao),n.LFG(Ho.UserMessageService),n.LFG(Ka.sK))};static#t=this.\u0275prov=n.Yz7({token:be,factory:be.\u0275fac})}return be})(),Ts=(()=>{class be extends Bs{constructor(ie,Ge,Rt,Zn,io){super(ie,Ge,Rt,Zn),this.dialog=ie,this.dataAccess=Ge,this.entityStateDao=Rt,this.userMessageService=Zn,this.translateService=io}doExecute(ie){return new Ms.y(Ge=>{this.dialog.open(Ho.ConfirmDialogComponent,{maxWidth:500,data:{title:this.getDialogTitle(ie),text:this.getDialogText(ie),iconClass:this.getIcon(),confirmButtonKey:"imxplatform.common.yes"}}).afterClosed().subscribe(Zn=>{if(Zn){const io={entityIds:[ie.id]},Ro=this.createActionCall(this.getEntityType(),ie,io);this.dataAccess.callAction(Ro).subscribe(ar=>{this.showSuccessMessageForSingleAction(ar),Ge.next(!0)})}})})}getActionLabelKey(){return"imxjobs.gui.list.job-dm.action.unschedule.title"}getDialogTitle(ie){return this.translateService.instant("imxjobs.gui.list.job-dm.action.unschedule.heading",{id:ie.id})}getDialogText(ie){return this.translateService.instant("imxjobs.gui.list.job-dm.action.unschedule.text",{id:ie.id})}getSuccessKey(){return"imxjobs.gui.list.job-dm.action.unschedule.success"}getFailedKey(){return"imxjobs.gui.list.job-dm.action.unschedule.failure"}getActionKey(){return"unschedule-job"}getIcon(){return"icon-exclamationmark"}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.LFG(ps.uw),n.LFG(Ho.ImxPlatformDataAccessService),n.LFG(Ho.EntityStateDao),n.LFG(Ho.UserMessageService),n.LFG(Ka.sK))};static#t=this.\u0275prov=n.Yz7({token:be,factory:be.\u0275fac})}return be})();new n.OlP("imxplatform.actions");let ul=(()=>{class be{constructor(ie,Ge,Rt,Zn,io){this.dialog=ie,this.dataAccess=Ge,this.entityStateDao=Rt,this.userMessageService=Zn,this.translateService=io}getRowActions(){const ie=[];return ie.push(new Ls(this.dialog,this.dataAccess,this.entityStateDao,this.userMessageService,this.translateService)),ie.push(new tl(this.dialog,this.dataAccess,this.entityStateDao,this.userMessageService,this.translateService)),ie.push(new Ts(this.dialog,this.dataAccess,this.entityStateDao,this.userMessageService,this.translateService)),ie.push(new xa(this.dialog,this.dataAccess,this.entityStateDao,this.userMessageService,this.translateService)),ie.push(new yl(this.dialog,this.dataAccess,this.entityStateDao,this.userMessageService,this.translateService)),ie}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.LFG(ps.uw),n.LFG(Ho.ImxPlatformDataAccessService),n.LFG(Ho.EntityStateDao),n.LFG(Ho.UserMessageService),n.LFG(Ka.sK))};static#t=this.\u0275prov=n.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"})}return be})();const qs=new n.OlP("imxplatform.job.datasource");let Ks=(()=>{class be extends Ho.ServerSideFilteringDataSourceService{constructor(ie){super(),this.dataAccess=ie}fetchResults(ie,Ge,Rt,Zn,io,Ro){const ar=this.extractSortFields(Zn,io);return this.dataAccess.getJobs(ie,{paging:{pageIdx:Ge,pageSize:Rt},sortFields:[ar]})}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.LFG(ri))};static#t=this.\u0275prov=n.Yz7({token:be,factory:be.\u0275fac})}return be})(),pl=(()=>{class be{constructor(ie){this.imxSecurityManagerService=ie}hasPermissionForAction(ie){return this.imxSecurityManagerService.hasPermission(this.getPermissionForAction(ie))}getPermissionForAction(ie){switch(ie.getActionKey()){case"cancel-job":return $s.F_JOB_MGMT_JOB_CANCEL;case"reschedule-job":return $s.F_JOB_MGMT_JOB_RESCHEDULE;case"resume-job":return $s.F_JOB_MGMT_JOB_RESUME;case"suspend-job":return $s.F_JOB_MGMT_JOB_SUSPEND;case"unschedule-job":return $s.F_JOB_MGMT_JOB_UNSCHEDULE}}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.LFG(s.Xh))};static#t=this.\u0275prov=n.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"})}return be})();var nc=a(45125),Mi=a(75222),or=a(17927),Ki=a(77958),Ao=a(63005),Go=a(54362);let dr=(()=>{class be{constructor(){this.modifiedSinceDatePicker=new t.p4}static createFormGroup(){return new t.nJ({importer:new t.NI("",t.kI.required),importIds:new t.NI(""),timestampBasedImport:new t.NI(!1),modifiedSince:new t.NI(""),disableCachePing:new t.NI(!1),chunkSize:new t.NI(null),force:new t.NI(!1),forceApplyImportStrategy:new t.NI(!1),concurrentChunkImport:new t.NI(!1),concurrentThreads:new t.NI(null)})}ngOnInit(){this.modifiedSinceDatePicker.setValue(this.formGroup.get("modifiedSince").value?new Date(this.formGroup.get("modifiedSince").value):null,{emitEvent:!1}),this.modifiedSinceDatePicker.valueChanges.subscribe(ie=>{this.formGroup.get("modifiedSince").setValue(ie||null,{emitEvent:!1})})}static#e=this.\u0275fac=function(Ge){return new(Ge||be)};static#t=this.\u0275cmp=n.Xpm({type:be,selectors:[["imx-job-create-import-table"]],inputs:{formGroup:"formGroup"},decls:92,vars:46,consts:[[1,"form__content-row"],[1,"form__table"],[1,"table-wrapper",3,"formGroup"],[1,"p-datatable"],[1,"imx-datatable"],[1,"p-datatable-thead"],[1,"mat-mdc-header-row"],[1,"mat-mdc-header-cell"],[1,"p-element","p-datatable-tbody"],[1,"mat-mdc-row"],[1,"mat-mdc-cell"],["formControlName","importer"],["formControlName","importIds"],["formControlName","timestampBasedImport"],[3,"formControl"],["formControlName","disableCachePing"],["formControlName","chunkSize",3,"type"],["formControlName","force"],["formControlName","forceApplyImportStrategy"],["formControlName","concurrentChunkImport"],["formControlName","concurrentThreads",3,"type"]],template:function(Ge,Rt){1&Ge&&(n.TgZ(0,"div",0)(1,"h3"),n._uU(2),n.ALo(3,"translate"),n._UZ(4,"span"),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.TgZ(7,"div",1)(8,"div",2)(9,"div",3)(10,"table",4)(11,"thead",5)(12,"tr",6)(13,"th",7)(14,"span"),n._uU(15),n.ALo(16,"translate"),n.qZA()(),n.TgZ(17,"th",7)(18,"span"),n._uU(19),n.ALo(20,"translate"),n.qZA()()()(),n.TgZ(21,"tbody",8)(22,"tr",9)(23,"td",10)(24,"span"),n._uU(25),n.ALo(26,"translate"),n.qZA()(),n.TgZ(27,"td",10),n._UZ(28,"imx-base-input",11),n.qZA()(),n.TgZ(29,"tr",9)(30,"td",10)(31,"span"),n._uU(32),n.ALo(33,"translate"),n.qZA()(),n.TgZ(34,"td",10),n._UZ(35,"imx-base-input",12),n.qZA()(),n.TgZ(36,"tr",9)(37,"td",10)(38,"span"),n._uU(39),n.ALo(40,"translate"),n.qZA()(),n.TgZ(41,"td",10),n._UZ(42,"imx-base-checkbox",13),n.qZA()(),n.TgZ(43,"tr",9)(44,"td",10)(45,"span"),n._uU(46),n.ALo(47,"translate"),n.qZA()(),n.TgZ(48,"td",10),n._UZ(49,"imx-base-date",14),n.qZA()(),n.TgZ(50,"tr",9)(51,"td",10)(52,"span"),n._uU(53),n.ALo(54,"translate"),n.qZA()(),n.TgZ(55,"td",10),n._UZ(56,"imx-base-checkbox",15),n.qZA()(),n.TgZ(57,"tr",9)(58,"td",10)(59,"span"),n._uU(60),n.ALo(61,"translate"),n.qZA()(),n.TgZ(62,"td",10),n._UZ(63,"imx-base-input",16),n.qZA()(),n.TgZ(64,"tr",9)(65,"td",10)(66,"span"),n._uU(67),n.ALo(68,"translate"),n.qZA()(),n.TgZ(69,"td",10),n._UZ(70,"imx-base-checkbox",17),n.qZA()(),n.TgZ(71,"tr",9)(72,"td",10)(73,"span"),n._uU(74),n.ALo(75,"translate"),n.qZA()(),n.TgZ(76,"td",10),n._UZ(77,"imx-base-checkbox",18),n.qZA()(),n.TgZ(78,"tr",9)(79,"td",10)(80,"span"),n._uU(81),n.ALo(82,"translate"),n.qZA()(),n.TgZ(83,"td",10),n._UZ(84,"imx-base-checkbox",19),n.qZA()(),n.TgZ(85,"tr",9)(86,"td",10)(87,"span"),n._uU(88),n.ALo(89,"translate"),n.qZA()(),n.TgZ(90,"td",10),n._UZ(91,"imx-base-input",20),n.qZA()()()()()()()),2&Ge&&(n.xp6(2),n.hij("",n.lcZ(3,18,"entity.Job.type")," "),n.xp6(3),n.hij(" ",n.lcZ(6,20,"imxjobs.job.edit.jobType.importer.name"),""),n.xp6(3),n.Q6J("formGroup",Rt.formGroup),n.xp6(7),n.hij(" ",n.lcZ(16,22,"imxjobs.job.edit.jobType.label")," "),n.xp6(4),n.hij(" ",n.lcZ(20,24,"imxjobs.job.edit.jobType.value")," "),n.xp6(6),n.Oqu(n.lcZ(26,26,"imxjobs.job.edit.jobType.importer.importer")),n.xp6(7),n.Oqu(n.lcZ(33,28,"imxjobs.job.edit.jobType.importer.importIds")),n.xp6(7),n.Oqu(n.lcZ(40,30,"imxjobs.job.edit.jobType.importer.timestampBasedImport")),n.xp6(7),n.Oqu(n.lcZ(47,32,"imxjobs.job.edit.jobType.importer.modifiedSince")),n.xp6(3),n.Q6J("formControl",Rt.modifiedSinceDatePicker),n.xp6(4),n.Oqu(n.lcZ(54,34,"imxjobs.job.edit.jobType.importer.disableCachePing")),n.xp6(7),n.Oqu(n.lcZ(61,36,"imxjobs.job.edit.jobType.importer.chunkSize")),n.xp6(3),n.Q6J("type","number"),n.xp6(4),n.Oqu(n.lcZ(68,38,"imxjobs.job.edit.jobType.importer.force")),n.xp6(7),n.Oqu(n.lcZ(75,40,"imxjobs.job.edit.jobType.importer.forceApplyImportStrategy")),n.xp6(7),n.Oqu(n.lcZ(82,42,"imxjobs.job.edit.jobType.importer.concurrentChunkImport")),n.xp6(7),n.Oqu(n.lcZ(89,44,"imxjobs.job.edit.jobType.importer.concurrentThreads")),n.xp6(3),n.Q6J("type","number"))},dependencies:[Ki.G,Ao.d,Go.H,t.JJ,t.JL,t.oH,t.sg,t.u,Ka.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}"]})}return be})();var pn=a(85219);function bo(be,we){if(1&be&&(n.TgZ(0,"th",8),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&be){const ie=we.$implicit;n.Udp("width",ie.width),n.Q6J("ngClass",ie.cssClass),n.xp6(),n.hij(" ",n.lcZ(2,4,ie.header)," ")}}function nt(be,we){if(1&be){const ie=n.EpF();n.TgZ(0,"tr"),n.YNc(1,bo,3,6,"th",5),n.TgZ(2,"th",6)(3,"span",7),n.NdJ("click",function(){n.CHM(ie);const Rt=n.oxw();return n.KtG(Rt.addRow())}),n.qZA()()()}if(2&be){const ie=n.oxw();n.xp6(),n.Q6J("ngForOf",ie.columnDefinitions),n.xp6(),n.Udp("width","50px")}}function Sn(be,we){if(1&be){const ie=n.EpF();n.TgZ(0,"tr")(1,"td"),n._UZ(2,"imx-base-input",9),n.qZA(),n.TgZ(3,"td"),n._UZ(4,"imx-base-input",9),n.qZA(),n.TgZ(5,"td",10)(6,"span",11),n.NdJ("click",function(){const Zn=n.CHM(ie).$implicit,io=n.oxw();return n.KtG(io.removeRow(Zn))}),n.qZA()()()}if(2&be){const ie=we.$implicit;n.xp6(2),n.Q6J("formControl",ie.controls.key),n.xp6(2),n.Q6J("formControl",ie.controls.value)}}let fi=(()=>{class be{constructor(){this.formArray=new t.vC([]),this.columnDefinitions=[{field:"key",header:"imxjobs.job.edit.jobType.label",width:"50%"},{field:"value",header:"imxjobs.job.edit.jobType.value",width:"50%"}]}static createFormControl(){return new t.p4}static convertObjectToKeyValueObjectArray(ie){return function bs(be){return Object.keys(be??{}).map(we=>({key:we,value:be[we]}))}(ie)}static convertFieldsToKeyValue(ie){return function ds(be){const we={};return be.forEach(ie=>{we[ie.key]=ie.value}),we}(ie)}static createRow(ie,Ge){return new t.nJ({key:new t.p4(ie??"",t.kI.required),value:new t.p4(Ge??"",t.kI.required)})}ngOnInit(){this.fillFormArray(this.control.value),this.registerChangeListener()}registerChangeListener(){this.formArray.valueChanges.subscribe(ie=>{this.control.setValue(be.convertFieldsToKeyValue(ie))})}fillFormArray(ie){be.convertObjectToKeyValueObjectArray(ie).forEach(Rt=>{this.formArray.push(be.createRow(Rt.key,Rt.value))})}removeRow(ie){const Ge=this.formArray.controls.indexOf(ie);Ge>=0&&this.formArray.removeAt(Ge)}addRow(){this.formArray.push(be.createRow())}static#e=this.\u0275fac=function(Ge){return new(Ge||be)};static#t=this.\u0275cmp=n.Xpm({type:be,selectors:[["imx-key-value-table"]],inputs:{control:"control"},decls:5,vars:3,consts:[[1,"form__table"],[1,"table-wrapper"],[1,"imx-datatable",3,"value","responsiveLayout","resizableColumns"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn",""],[1,"icon","icon-plus","imx-icon-middle","imx-icon-clickable",3,"click"],["pResizableColumn","",3,"ngClass"],[3,"formControl"],[1,"action-column"],[1,"icon","delete","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"]],template:function(Ge,Rt){1&Ge&&(n.TgZ(0,"div",0)(1,"div",1)(2,"p-table",2),n.YNc(3,nt,4,3,"ng-template",3)(4,Sn,7,2,"ng-template",4),n.qZA()()()),2&Ge&&(n.xp6(2),n.Q6J("value",Rt.formArray.controls)("responsiveLayout","scroll")("resizableColumns",!0))},dependencies:[Go.H,l.mk,l.sg,vc.iA,pn.jx,vc.Q7,t.JJ,t.oH,Ka.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.delete.icon-trash[_ngcontent-%COMP%]{color:#96172e}"]})}return be})(),$i=(()=>{class be{static#e=this.keyValueFields=["maintenanceTaskParams"];static createFormGroup(){return new t.nJ({maintenanceTask:new t.p4("",t.kI.required),maintenanceTaskParams:fi.createFormControl()})}get maintenanceTaskParams(){return this.formGroup.get("maintenanceTaskParams")}static#t=this.\u0275fac=function(Ge){return new(Ge||be)};static#n=this.\u0275cmp=n.Xpm({type:be,selectors:[["imx-job-create-maintenance-table"]],inputs:{formGroup:"formGroup"},decls:40,vars:36,consts:[[1,"form__content-row"],[1,"form__table"],[1,"table-wrapper",3,"formGroup"],[1,"p-datatable"],[1,"imx-datatable"],[1,"p-datatable-thead"],[1,"mat-mdc-header-row"],[1,"mat-mdc-header-cell"],[1,"txt-link",3,"matTooltipShowDelay","matTooltip"],[1,"p-element","p-datatable-tbody"],[1,"mat-mdc-row"],[1,"mat-mdc-cell"],["formControlName","maintenanceTask"],[3,"control"]],template:function(Ge,Rt){1&Ge&&(n.TgZ(0,"div",0)(1,"h3"),n._uU(2),n.ALo(3,"translate"),n._UZ(4,"span"),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.TgZ(7,"div",1)(8,"div",2)(9,"div",3)(10,"table",4)(11,"thead",5)(12,"tr",6)(13,"th",7)(14,"span",8),n.ALo(15,"translate"),n._uU(16),n.ALo(17,"translate"),n.qZA()(),n.TgZ(18,"th",7)(19,"span",8),n.ALo(20,"translate"),n._uU(21),n.ALo(22,"translate"),n.qZA()()()(),n.TgZ(23,"tbody",9)(24,"tr",10)(25,"td",11)(26,"span",8),n.ALo(27,"translate"),n._uU(28),n.ALo(29,"translate"),n.qZA()(),n.TgZ(30,"td",11),n._UZ(31,"imx-base-input",12),n.qZA()(),n.TgZ(32,"tr",10)(33,"td",11)(34,"span",8),n.ALo(35,"translate"),n._uU(36),n.ALo(37,"translate"),n.qZA()(),n.TgZ(38,"td",11),n._UZ(39,"imx-key-value-table",13),n.qZA()()()()()()()),2&Ge&&(n.xp6(2),n.hij("",n.lcZ(3,16,"entity.Job.type")," "),n.xp6(3),n.hij(" ",n.lcZ(6,18,"imxjobs.job.edit.jobType.service.name"),""),n.xp6(3),n.Q6J("formGroup",Rt.formGroup),n.xp6(6),n.Q6J("matTooltipShowDelay",500)("matTooltip",n.lcZ(15,20,"imxjobs.job.edit.jobType.label")),n.xp6(2),n.hij(" ",n.lcZ(17,22,"imxjobs.job.edit.jobType.label")," "),n.xp6(3),n.Q6J("matTooltipShowDelay",500)("matTooltip",n.lcZ(20,24,"imxjobs.job.edit.jobType.value")),n.xp6(2),n.hij(" ",n.lcZ(22,26,"imxjobs.job.edit.jobType.value")," "),n.xp6(5),n.Q6J("matTooltipShowDelay",500)("matTooltip",n.lcZ(27,28,"imxjobs.job.edit.jobType.maintenance.maintenanceTask")),n.xp6(2),n.Oqu(n.lcZ(29,30,"imxjobs.job.edit.jobType.maintenance.maintenanceTask")),n.xp6(6),n.Q6J("matTooltipShowDelay",500)("matTooltip",n.lcZ(35,32,"imxjobs.job.edit.jobType.maintenance.maintenanceTaskParams")),n.xp6(2),n.Oqu(n.lcZ(37,34,"imxjobs.job.edit.jobType.maintenance.maintenanceTaskParams")),n.xp6(3),n.Q6J("control",Rt.formGroup.get("maintenanceTaskParams")))},dependencies:[Go.H,Ba.gM,t.JJ,t.JL,t.sg,t.u,fi,Ka.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}"]})}return be})(),No=(()=>{class be{constructor(){this.authTypeOptions=[la("NONE"),la("BASIC"),la("BEARER"),la("OAUTH2")],this.httpMethodOptions=[la("GET"),la("POST"),la("PUT"),la("DELETE"),la("PATCH")]}static#e=this.keyValueFields=["headers","authParams"];static createFormGroup(){return new t.nJ({serviceUrl:new t.p4("",t.kI.required),httpMethod:new t.p4("GET"),headers:new t.p4(null),authType:new t.p4(""),authParams:new t.p4(null)})}static#t=this.\u0275fac=function(Ge){return new(Ge||be)};static#n=this.\u0275cmp=n.Xpm({type:be,selectors:[["imx-job-create-service-table"]],inputs:{formGroup:"formGroup"},decls:64,vars:60,consts:[[1,"form__content-row"],[1,"form__table"],[1,"table-wrapper",3,"formGroup"],[1,"p-datatable"],[1,"imx-datatable"],[1,"p-datatable-thead"],[1,"mat-mdc-header-row"],[1,"mat-mdc-header-cell"],[1,"txt-link",3,"matTooltipShowDelay","matTooltip"],[1,"p-element","p-datatable-tbody"],[1,"mat-mdc-row"],[1,"mat-mdc-cell"],["formControlName","serviceUrl"],["formControlName","httpMethod",3,"options"],[3,"control"],["formControlName","authType",3,"options"]],template:function(Ge,Rt){1&Ge&&(n.TgZ(0,"div",0)(1,"h3"),n._uU(2),n.ALo(3,"translate"),n._UZ(4,"span"),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.TgZ(7,"div",1)(8,"div",2)(9,"div",3)(10,"table",4)(11,"thead",5)(12,"tr",6)(13,"th",7)(14,"span",8),n.ALo(15,"translate"),n._uU(16),n.ALo(17,"translate"),n.qZA()(),n.TgZ(18,"th",7)(19,"span",8),n.ALo(20,"translate"),n._uU(21),n.ALo(22,"translate"),n.qZA()()()(),n.TgZ(23,"tbody",9)(24,"tr",10)(25,"td",11)(26,"span",8),n.ALo(27,"translate"),n._uU(28),n.ALo(29,"translate"),n.qZA()(),n.TgZ(30,"td",11),n._UZ(31,"imx-base-input",12),n.qZA()(),n.TgZ(32,"tr",10)(33,"td",11)(34,"span",8),n.ALo(35,"translate"),n._uU(36),n.ALo(37,"translate"),n.qZA()(),n.TgZ(38,"td",11),n._UZ(39,"imx-base-select",13),n.qZA()(),n.TgZ(40,"tr",10)(41,"td",11)(42,"span",8),n.ALo(43,"translate"),n._uU(44),n.ALo(45,"translate"),n.qZA()(),n.TgZ(46,"td",11),n._UZ(47,"imx-key-value-table",14),n.qZA()(),n.TgZ(48,"tr",10)(49,"td",11)(50,"span",8),n.ALo(51,"translate"),n._uU(52),n.ALo(53,"translate"),n.qZA()(),n.TgZ(54,"td",11),n._UZ(55,"imx-base-select",15),n.qZA()(),n.TgZ(56,"tr",10)(57,"td",11)(58,"span",8),n.ALo(59,"translate"),n._uU(60),n.ALo(61,"translate"),n.qZA()(),n.TgZ(62,"td",11),n._UZ(63,"imx-key-value-table",14),n.qZA()()()()()()()),2&Ge&&(n.xp6(2),n.hij("",n.lcZ(3,28,"entity.Job.type")," "),n.xp6(3),n.hij(" ",n.lcZ(6,30,"imxjobs.job.edit.jobType.service.name"),""),n.xp6(3),n.Q6J("formGroup",Rt.formGroup),n.xp6(6),n.Q6J("matTooltipShowDelay",500)("matTooltip",n.lcZ(15,32,"imxjobs.job.edit.jobType.label")),n.xp6(2),n.hij(" ",n.lcZ(17,34,"imxjobs.job.edit.jobType.label")," "),n.xp6(3),n.Q6J("matTooltipShowDelay",500)("matTooltip",n.lcZ(20,36,"imxjobs.job.edit.jobType.value")),n.xp6(2),n.hij(" ",n.lcZ(22,38,"imxjobs.job.edit.jobType.value")," "),n.xp6(5),n.Q6J("matTooltipShowDelay",500)("matTooltip",n.lcZ(27,40,"imxjobs.job.edit.jobType.service.serviceUrl")),n.xp6(2),n.Oqu(n.lcZ(29,42,"imxjobs.job.edit.jobType.service.serviceUrl")),n.xp6(6),n.Q6J("matTooltipShowDelay",500)("matTooltip",n.lcZ(35,44,"imxjobs.job.edit.jobType.service.httpMethod")),n.xp6(2),n.Oqu(n.lcZ(37,46,"imxjobs.job.edit.jobType.service.httpMethod")),n.xp6(3),n.Q6J("options",Rt.httpMethodOptions),n.xp6(3),n.Q6J("matTooltipShowDelay",500)("matTooltip",n.lcZ(43,48,"imxjobs.job.edit.jobType.service.headers")),n.xp6(2),n.Oqu(n.lcZ(45,50,"imxjobs.job.edit.jobType.service.headers")),n.xp6(3),n.Q6J("control",Rt.formGroup.get("headers")),n.xp6(3),n.Q6J("matTooltipShowDelay",500)("matTooltip",n.lcZ(51,52,"imxjobs.job.edit.jobType.service.authType")),n.xp6(2),n.Oqu(n.lcZ(53,54,"imxjobs.job.edit.jobType.service.authType")),n.xp6(3),n.Q6J("options",Rt.authTypeOptions),n.xp6(3),n.Q6J("matTooltipShowDelay",500)("matTooltip",n.lcZ(59,56,"imxjobs.job.edit.jobType.service.authParams")),n.xp6(2),n.Oqu(n.lcZ(61,58,"imxjobs.job.edit.jobType.service.authParams")),n.xp6(3),n.Q6J("control",Rt.formGroup.get("authParams")))},dependencies:[Go.H,mi.o,Ba.gM,t.JJ,t.JL,t.sg,t.u,fi,Ka.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}"]})}return be})(),Ar=(()=>{class be{static#e=this.keyValueFields=[];static createFormGroup(){return new t.nJ({iterations:new t.p4("",t.kI.required)})}static#t=this.\u0275fac=function(Ge){return new(Ge||be)};static#n=this.\u0275cmp=n.Xpm({type:be,selectors:[["imx-job-create-test-table"]],inputs:{formGroup:"formGroup"},decls:32,vars:29,consts:[[1,"form__content-row"],[1,"form__table"],[1,"table-wrapper",3,"formGroup"],[1,"p-datatable"],[1,"imx-datatable"],[1,"p-datatable-thead"],[1,"mat-mdc-header-row"],[1,"mat-mdc-header-cell"],[1,"txt-link",3,"matTooltipShowDelay","matTooltip"],[1,"p-element","p-datatable-tbody"],[1,"mat-mdc-row"],[1,"mat-mdc-cell"],["formControlName","iterations",3,"type"]],template:function(Ge,Rt){1&Ge&&(n.TgZ(0,"div",0)(1,"h3"),n._uU(2),n.ALo(3,"translate"),n._UZ(4,"span"),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.TgZ(7,"div",1)(8,"div",2)(9,"div",3)(10,"table",4)(11,"thead",5)(12,"tr",6)(13,"th",7)(14,"span",8),n.ALo(15,"translate"),n._uU(16),n.ALo(17,"translate"),n.qZA()(),n.TgZ(18,"th",7)(19,"span",8),n.ALo(20,"translate"),n._uU(21),n.ALo(22,"translate"),n.qZA()()()(),n.TgZ(23,"tbody",9)(24,"tr",10)(25,"td",11)(26,"span",8),n.ALo(27,"translate"),n._uU(28),n.ALo(29,"translate"),n.qZA()(),n.TgZ(30,"td",11),n._UZ(31,"imx-base-input",12),n.qZA()()()()()()()),2&Ge&&(n.xp6(2),n.hij("",n.lcZ(3,13,"entity.Job.type")," "),n.xp6(3),n.hij(" ",n.lcZ(6,15,"imxjobs.job.edit.jobType.test.name"),""),n.xp6(3),n.Q6J("formGroup",Rt.formGroup),n.xp6(6),n.Q6J("matTooltipShowDelay",500)("matTooltip",n.lcZ(15,17,"imxjobs.job.edit.jobType.label")),n.xp6(2),n.hij(" ",n.lcZ(17,19,"imxjobs.job.edit.jobType.label")," "),n.xp6(3),n.Q6J("matTooltipShowDelay",500)("matTooltip",n.lcZ(20,21,"imxjobs.job.edit.jobType.value")),n.xp6(2),n.hij(" ",n.lcZ(22,23,"imxjobs.job.edit.jobType.value")," "),n.xp6(5),n.Q6J("matTooltipShowDelay",500)("matTooltip",n.lcZ(27,25,"imxjobs.job.edit.jobType.test.iterations")),n.xp6(2),n.Oqu(n.lcZ(29,27,"imxjobs.job.edit.jobType.test.iterations")),n.xp6(3),n.Q6J("type","number"))},dependencies:[Go.H,Ba.gM,t.JJ,t.JL,t.sg,t.u,Ka.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}"]})}return be})();const xr=["dialogFrame"];function Sr(be,we){if(1&be&&(n.TgZ(0,"div",3),n._UZ(1,"imx-job-create-import-table",10),n.qZA()),2&be){const ie=n.oxw();n.xp6(),n.Q6J("formGroup",ie.importerFormGroup)}}function ns(be,we){if(1&be&&(n.TgZ(0,"div",3),n._UZ(1,"imx-job-create-service-table",10),n.qZA()),2&be){const ie=n.oxw();n.xp6(),n.Q6J("formGroup",ie.serviceFormGroup)}}function Tl(be,we){if(1&be&&(n.TgZ(0,"div",3),n._UZ(1,"imx-job-create-maintenance-table",10),n.qZA()),2&be){const ie=n.oxw();n.xp6(),n.Q6J("formGroup",ie.maintenanceFormGroup)}}function Fs(be,we){if(1&be&&(n.TgZ(0,"div",3),n._UZ(1,"imx-job-create-test-table",10),n.qZA()),2&be){const ie=n.oxw();n.xp6(),n.Q6J("formGroup",ie.testFormGroup)}}const il=be=>({queueName:be});let ac=(()=>{class be{static stripEmptyFields(ie){return Object.entries(ie).reduce((Ge,[Rt,Zn])=>((Zn||!1===Zn)&&(Ge[Rt]=Zn),Ge),{})}constructor(ie,Ge,Rt,Zn){this.data=ie,this.jobsDataAccess=Ge,this.jobTypeOptionProviderService=Rt,this.dialogRef=Zn,this.jobTypeOptions$=(0,rl.of)([]),this.jobTypeCtrl=new t.p4,this.jobUserCtrl=new t.p4,this.jobUserPasswordCtrl=new t.p4,this.scheduleTimeCtrl=new t.p4(new Date),this.importerFormGroup=dr.createFormGroup(),this.serviceFormGroup=No.createFormGroup(),this.maintenanceFormGroup=$i.createFormGroup(),this.today=new Date,this.scheduleTimeCheckboxCtrl=new t.p4(!1),this.maxExecutionTimeInMinCtrl=new t.NI(null),this.notifiableCtrl=new t.NI(!0),this.testFormGroup=Ar.createFormGroup(),this.jobTypeFormGroupMap=new Map([[Gs.O4.Import,this.importerFormGroup],[Gs.O4.Service,this.serviceFormGroup],[Gs.O4.Maintenance,this.maintenanceFormGroup],[Gs.O4.Test,this.testFormGroup],[Gs.O4.Action,this.testFormGroup]])}ngOnInit(){this.jobTypeOptions$=this.loadOptions(),this.fillFormData(this.data?.job)}loadOptions(){return this.jobTypeOptionProviderService.getOptions(void 0,void 0)}getJobType(ie){return Gs.O4[ie]}fillFormData(ie){ie&&(this.jobTypeCtrl.setValue(ie.type),this.jobUserCtrl.setValue(ie.info?.jobUser),this.maxExecutionTimeInMinCtrl.setValue(ie.info?.maxExecutionTimeInMin),this.notifiableCtrl.setValue(ie.info?.notifiable),this.jobTypeFormGroupMap.get(ie.type).patchValue(ie.info))}onConfirm(){this.dialogRef.close({confirmed:!0,type:this.jobTypeCtrl.value,additionalParams:be.stripEmptyFields({jobUser:this.jobUserCtrl.value,jobUserPassword:this.jobUserPasswordCtrl.value,scheduleTime:this.scheduleTimeCheckboxCtrl.value?(0,s.gR)(this.scheduleTimeCtrl.value):null,maxExecutionTimeInMin:this.maxExecutionTimeInMinCtrl.value,notifiable:this.notifiableCtrl.value,...this.jobTypeFormGroupMap.get(this.jobTypeCtrl.value).value})})}onCancel(){this.dialogRef.close({confirmed:!1})}isFormGroupValid(){return this.jobUserCtrl.valid&&this.jobUserPasswordCtrl.valid&&this.scheduleTimeCtrl.valid&&this.isSpecificFormValid()}isSpecificFormValid(){return!!this.jobTypeCtrl.value&&this.jobTypeFormGroupMap.get(this.jobTypeCtrl.value).valid}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.Y36(ps.WI),n.Y36(ri),n.Y36(Ec),n.Y36(ps.so))};static#t=this.\u0275cmp=n.Xpm({type:be,selectors:[["ng-component"]],viewQuery:function(Ge,Rt){if(1&Ge&&n.Gf(xr,7),2&Ge){let Zn;n.iGM(Zn=n.CRH())&&(Rt.dialogFrame=Zn.first)}},decls:22,vars:38,consts:[["icon","icon-wrench","dialogType","form",3,"heading","submitButtonDisabled","useEvents","onConfirm","onCancel"],["dialogFrame",""],[1,"dialog-form"],[1,"dialog-form-group"],[3,"formControl","label","options"],[3,"formControl","label"],[3,"formControl","small"],[3,"label","formControl","disableControl","min"],[3,"formControl","type","label"],["class","dialog-form-group",4,"ngIf"],[3,"formGroup"]],template:function(Ge,Rt){1&Ge&&(n.TgZ(0,"imx-dialog",0,1),n.NdJ("onConfirm",function(){return Rt.onConfirm()})("onCancel",function(){return Rt.onCancel()}),n.ALo(2,"translate"),n.TgZ(3,"form")(4,"div",2)(5,"div",3),n._UZ(6,"imx-base-select",4),n.ALo(7,"async"),n._UZ(8,"imx-base-input",5)(9,"imx-base-input",5),n.TgZ(10,"imx-base-checkbox",6),n._uU(11),n.ALo(12,"translate"),n.qZA(),n._UZ(13,"imx-base-date-time",7)(14,"imx-base-input",8),n.TgZ(15,"imx-base-checkbox",6),n._uU(16),n.ALo(17,"translate"),n.qZA()(),n.YNc(18,Sr,2,1,"div",9)(19,ns,2,1,"div",9)(20,Tl,2,1,"div",9)(21,Fs,2,1,"div",9),n.qZA()()()),2&Ge&&(n.MGl("heading","",n.xi3(2,27,"imxjobs.job.edit.header",n.VKq(36,il,Rt.data.queueName))," "),n.Q6J("submitButtonDisabled",!Rt.isFormGroupValid())("useEvents",!0),n.xp6(6),n.Q6J("formControl",Rt.jobTypeCtrl)("label","entity.Job.type")("options",n.lcZ(7,30,Rt.jobTypeOptions$)),n.xp6(2),n.Q6J("formControl",Rt.jobUserCtrl)("label","entity.User.entityName"),n.xp6(),n.Q6J("formControl",Rt.jobUserPasswordCtrl)("label","imxjobs.job.edit.password"),n.xp6(),n.Q6J("formControl",Rt.scheduleTimeCheckboxCtrl)("small",!0),n.xp6(),n.Oqu(n.lcZ(12,32,"imxjobs.job.edit.use-scheduleTime")),n.xp6(2),n.Q6J("label","entity.Date.entityName")("formControl",Rt.scheduleTimeCtrl)("disableControl",!Rt.scheduleTimeCheckboxCtrl.value)("min",Rt.today),n.xp6(),n.Q6J("formControl",Rt.maxExecutionTimeInMinCtrl)("type","number")("label","imxjobs.job.edit.maxExecutionTimeInMin"),n.xp6(),n.Q6J("formControl",Rt.notifiableCtrl)("small",!1),n.xp6(),n.Oqu(n.lcZ(17,34,"imxjobs.job.edit.notifiable")),n.xp6(2),n.Q6J("ngIf",Rt.jobTypeCtrl.value==Rt.getJobType("Import")),n.xp6(),n.Q6J("ngIf",Rt.jobTypeCtrl.value==Rt.getJobType("Service")),n.xp6(),n.Q6J("ngIf",Rt.jobTypeCtrl.value==Rt.getJobType("Maintenance")),n.xp6(),n.Q6J("ngIf",Rt.jobTypeCtrl.value==Rt.getJobType("Test")))},dependencies:[Ki.G,Mn.v,Go.H,mi.o,Dl.a,l.O5,t._Y,t.JJ,t.JL,t.oH,t.sg,t.F,dr,No,$i,Ar,l.Ov,Ka.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.dialog-form-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:5px}"]})}return be})();var Nl=a(90633);function em(be,we){1&be&&n._UZ(0,"mat-progress-bar",4)}function Kl(be,we){1&be&&(n.TgZ(0,"imx-list-no-results"),n._uU(1,"imxplatform.common.no-records"),n.qZA())}function xl(be,we){if(1&be&&(n.TgZ(0,"th",12),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&be){const ie=we.$implicit;n.Udp("width",ie.width),n.Q6J("ngClass",ie.cssClass),n.xp6(),n.hij(" ",n.lcZ(2,4,ie.header)," ")}}function ll(be,we){if(1&be&&(n.TgZ(0,"tr",10),n.YNc(1,xl,3,6,"th",11),n.qZA()),2&be){const ie=n.oxw(2);n.xp6(),n.Q6J("ngForOf",ie.columnDefinitions)}}function tm(be,we){if(1&be&&(n.TgZ(0,"tr",13)(1,"td",14)(2,"span",15),n._uU(3),n.qZA()(),n.TgZ(4,"td",14)(5,"span",15),n._uU(6),n.qZA()()()),2&be){const ie=we.$implicit;n.xp6(2),n.Q6J("matTooltipShowDelay",500)("matTooltip",ie.timestamp),n.xp6(),n.Oqu(ie.timestamp),n.xp6(2),n.Q6J("matTooltipShowDelay",500)("matTooltip",ie.action),n.xp6(),n.Oqu(ie.action)}}const Nc=()=>["id","name"];function Dd(be,we){if(1&be&&(n.ynx(0),n.YNc(1,Kl,2,0,"imx-list-no-results",5),n.TgZ(2,"div",6)(3,"p-table",7),n.YNc(4,ll,2,1,"ng-template",8)(5,tm,7,6,"ng-template",9),n.qZA()(),n.BQk()),2&be){const ie=we.ngIf;n.xp6(),n.Q6J("ngIf",0==ie.length),n.xp6(2),n.Q6J("value",ie)("responsiveLayout","scroll")("globalFilterFields",n.DdM(5,Nc))("resizableColumns",!1)}}let _c=(()=>{class be{constructor(ie){this.jobsDataAccess=ie,this.columnDefinitions=[{field:"timestamp",header:"entity.JobActivity.timestamp",width:"50%"},{field:"action",header:"entity.JobActivity.action",width:"50%"}]}ngOnInit(){this.tableData=this.readTableData()}readTableData(){return this.jobsDataAccess.getJobById(this.job.id).pipe((0,Fr.U)(ie=>ie.activities.sort((Ge,Rt)=>new Date(Ge.timestamp).getTime()-new Date(Rt.timestamp).getTime())))}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.Y36(ri))};static#t=this.\u0275cmp=n.Xpm({type:be,selectors:[["imx-job-detail-activity-table"]],inputs:{job:"job"},decls:9,vars:7,consts:[[1,"form__content-row"],["loading",""],[1,"form__table"],[4,"ngIf","ngIfElse"],["mode","indeterminate"],[4,"ngIf"],[1,"table-wrapper"],[1,"imx-datatable",3,"value","responsiveLayout","globalFilterFields","resizableColumns"],["pTemplate","header"],["pTemplate","body"],[1,"mat-mdc-header-row"],["class","mat-mdc-header-cell","pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",1,"mat-mdc-header-cell",3,"ngClass"],[1,"mat-mdc-row"],[1,"mat-mdc-cell"],[1,"txt-link",3,"matTooltipShowDelay","matTooltip"]],template:function(Ge,Rt){if(1&Ge&&(n.TgZ(0,"div",0)(1,"h3"),n._uU(2),n.ALo(3,"translate"),n.qZA()(),n.YNc(4,em,1,0,"ng-template",null,1,n.W1O),n.TgZ(6,"div",2),n.YNc(7,Dd,6,6,"ng-container",3),n.ALo(8,"async"),n.qZA()),2&Ge){const Zn=n.MAs(5);n.xp6(2),n.Oqu(n.lcZ(3,3,"entity.Job.activities")),n.xp6(5),n.Q6J("ngIf",n.lcZ(8,5,Rt.tableData))("ngIfElse",Zn)}},dependencies:[Nl.A,l.mk,l.sg,l.O5,Ps.pW,Ba.gM,vc.iA,pn.jx,vc.Q7,l.Ov,Ka.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}"]})}return be})();function wc(be,we){if(1&be&&(n.TgZ(0,"div",4)(1,"h3"),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"pre")(5,"p",5),n._uU(6),n.ALo(7,"json"),n.qZA()()()),2&be){const ie=n.oxw().ngIf;n.xp6(2),n.Oqu(n.lcZ(3,2,"entity.Job.info")),n.xp6(4),n.Oqu(n.lcZ(7,4,ie.info))}}function nm(be,we){if(1&be&&(n.TgZ(0,"div",4),n._UZ(1,"imx-job-detail-activity-table",6),n.qZA()),2&be){const ie=n.oxw(2);n.xp6(),n.Q6J("job",ie.data.job)}}function Id(be,we){if(1&be&&(n.ynx(0),n.YNc(1,wc,8,6,"div",3)(2,nm,2,1,"div",3),n.BQk()),2&be){const ie=we.ngIf;n.xp6(),n.Q6J("ngIf",ie.info),n.xp6(),n.Q6J("ngIf",ie.result)}}let Ns=(()=>{class be{constructor(ie,Ge){this.data=ie,this.jobsDataAccess=Ge,this.jobDetail$=(0,rl.of)(null)}ngOnInit(){this.jobDetail$=this.loadData()}loadData(){return this.jobsDataAccess.getJobById(this.data.job.id)}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.Y36(ps.WI),n.Y36(ri))};static#t=this.\u0275cmp=n.Xpm({type:be,selectors:[["ng-component"]],decls:4,vars:7,consts:[["icon","icon-wrench","dialogType","form",3,"heading","submitButtonLabel","submitButtonDisabled","cancelButtonLabel"],[1,"dialog-form"],[4,"ngIf"],["class","dialog-form-group",4,"ngIf"],[1,"dialog-form-group"],[1,"job-detail-dialog__info"],[3,"job"]],template:function(Ge,Rt){1&Ge&&(n.TgZ(0,"imx-dialog",0)(1,"div",1),n.YNc(2,Id,3,2,"ng-container",2),n.ALo(3,"async"),n.qZA()()),2&Ge&&(n.Q6J("heading",Rt.data.title)("submitButtonLabel","imxplatform.dialog.common-close")("submitButtonDisabled",!1)("cancelButtonLabel",""),n.xp6(2),n.Q6J("ngIf",n.lcZ(3,5,Rt.jobDetail$)))},dependencies:[Dl.a,l.O5,_c,l.Ov,l.Ts,Ka.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.job-detail-dialog__info[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #e6e9ef;font-size:12px;padding:10px;overflow:auto}"]})}return be})();const Uc=["dialogFrame"];let dn=(()=>{class be{constructor(ie,Ge){this.data=ie,this.dialogRef=Ge,this.queueNameCtrl=new t.p4(ya,t.kI.required)}onConfirm(){this.dialogRef.close({confirmed:!0,queueName:this.queueNameCtrl.value})}onCancel(){this.dialogRef.close({confirmed:!1})}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.Y36(ps.WI),n.Y36(ps.so))};static#t=this.\u0275cmp=n.Xpm({type:be,selectors:[["ng-component"]],viewQuery:function(Ge,Rt){if(1&Ge&&n.Gf(Uc,7),2&Ge){let Zn;n.iGM(Zn=n.CRH())&&(Rt.dialogFrame=Zn.first)}},decls:6,vars:5,consts:[["icon","icon-wrench","dialogType","form",3,"heading","submitButtonDisabled","useEvents","onConfirm","onCancel"],["dialogFrame",""],[1,"dialog-form"],[1,"dialog-form-group"],[3,"formControl","label"]],template:function(Ge,Rt){1&Ge&&(n.TgZ(0,"imx-dialog",0,1),n.NdJ("onConfirm",function(){return Rt.onConfirm()})("onCancel",function(){return Rt.onCancel()}),n.TgZ(2,"form")(3,"div",2)(4,"div",3),n._UZ(5,"imx-base-input",4),n.qZA()()()()),2&Ge&&(n.Q6J("heading","imxjobs.job.edit.new-queue")("submitButtonDisabled",!Rt.queueNameCtrl.valid)("useEvents",!0),n.xp6(5),n.Q6J("formControl",Rt.queueNameCtrl)("label","entity.JobQueue.name"))},dependencies:[Go.H,Dl.a,t._Y,t.JJ,t.JL,t.oH,t.F],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}"]})}return be})();var Mr=a(64123),mn=a(26768),Nn=a(59626),Ci=a(74961),Io=a(6128),cr=a(36681),ra=a(37012),$a=a(12);function xe(be,we){1&be&&n._UZ(0,"mat-progress-bar",2)}function h(be,we){1&be&&(n.TgZ(0,"imx-list-no-results"),n._uU(1,"imxjobs.job.list.no-records"),n.qZA())}function k(be,we){if(1&be&&(n.TgZ(0,"p",11),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&be){const ie=n.oxw(2).ngIf;n.xp6(),n.Oqu("running"==ie.status?n.lcZ(2,1,"imxjobs.job.list.toggle.running"):n.lcZ(3,3,"imxjobs.job.list.toggle.stopped"))}}function se(be,we){if(1&be){const ie=n.EpF();n.ynx(0),n.TgZ(1,"imx-toggle",12),n.NdJ("click",function(){n.CHM(ie);const Rt=n.oxw(3).ngIf,Zn=n.oxw();return n.KtG(Zn.toggleQueue(Zn.selectedQueueCtrl.value,Zn.ImxJobsDataAccessService.filterDataByQueue(Zn.selectedQueueCtrl.value,Rt).status))}),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA(),n.BQk()}if(2&be){const ie=n.oxw(2).ngIf;n.xp6(),n.s9C("checkedLabel",n.lcZ(2,3,"imxjobs.job.list.toggle.running")),n.s9C("notCheckedLabel",n.lcZ(3,5,"imxjobs.job.list.toggle.stopped")),n.Q6J("ngModel","running"==ie.status)}}function de(be,we){if(1&be&&(n.ynx(0),n.TgZ(1,"label"),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,k,4,5,"ng-template",null,10,n.W1O)(6,se,4,7,"ng-container",1),n.BQk()),2&be){const ie=n.MAs(5),Ge=n.oxw().ngIf,Rt=n.oxw(2);n.xp6(2),n.Oqu(n.lcZ(3,3,"imxjobs.job.list.toggle.label")),n.xp6(4),n.Q6J("ngIf","running"==Ge.status&&Rt.securityManager.hasPermission(Rt.ImxJobsPermissions.F_JOB_MGMT_QUEUE_SUSPEND)||"running"!==Ge.status&&Rt.securityManager.hasPermission(Rt.ImxJobsPermissions.F_JOB_MGMT_QUEUE_RESUME))("ngIfElse",ie)}}function Ae(be,we){if(1&be&&(n.TgZ(0,"span"),n.YNc(1,de,7,5,"ng-container",8),n.ALo(2,"keyvalue"),n.qZA()),2&be){const ie=we.ngIf;n.xp6(),n.Q6J("ngIf",!ie.isEmptyQueue&&n.lcZ(2,1,ie).length>0)}}function Ct(be,we){if(1&be){const ie=n.EpF();n.TgZ(0,"button",13),n.NdJ("click",function(){n.CHM(ie);const Rt=n.oxw(2);return n.KtG(Rt.createQueue())}),n._UZ(1,"i",14),n._uU(2),n.ALo(3,"translate"),n.qZA()}2&be&&(n.xp6(2),n.Oqu(n.lcZ(3,1,"imxjobs.job.edit.new-queue")))}function wt(be,we){if(1&be){const ie=n.EpF();n.TgZ(0,"imx-create-new-entity-button",19),n.NdJ("create",function(){n.CHM(ie);const Rt=n.oxw(3);return n.KtG(Rt.createJob(Rt.selectedQueueCtrl.value))}),n.qZA()}if(2&be){const ie=n.oxw(3);n.Q6J("entityResourceKeyPrefix",ie.entityResourceKeyPrefix)("fireCreateEvent",!0)}}function Mt(be,we){if(1&be&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&be){const ie=we.$implicit;n.Udp("width",ie.width),n.Q6J("ngClass",ie.cssClass),n.xp6(),n.hij(" ",n.lcZ(2,4,ie.header)," ")}}function fn(be,we){if(1&be&&(n.TgZ(0,"tr"),n.YNc(1,Mt,3,6,"th",23),n.qZA()),2&be){const ie=n.oxw(4);n.xp6(),n.Q6J("ngForOf",ie.columnDefinitions)}}function Qn(be,we){if(1&be&&(n.ynx(0),n.TgZ(1,"span",30),n._uU(2),n.qZA(),n.BQk()),2&be){const ie=n.oxw().$implicit;n.xp6(),n.Q6J("matTooltip",ie.Job.id)("matTooltipShowDelay",500),n.xp6(),n.hij(" ",ie.Job.id," ")}}function ei(be,we){if(1&be&&(n.TgZ(0,"span",30),n._uU(1),n.qZA()),2&be){const ie=n.oxw(2).$implicit;n.Q6J("matTooltip",ie.Job.type)("matTooltipShowDelay",500),n.xp6(),n.hij(" ",ie.Job.type," ")}}function bi(be,we){if(1&be&&(n.ynx(0),n.YNc(1,ei,2,3,"span",31),n.BQk()),2&be){const ie=n.oxw().$implicit;n.xp6(),n.Q6J("ngIf",ie.Job&&ie.Job.type)}}function zi(be,we){if(1&be&&(n.TgZ(0,"span",30),n._uU(1),n.qZA()),2&be){const ie=n.oxw(2).$implicit;n.Q6J("matTooltip",ie.Job.status)("matTooltipShowDelay",500),n.xp6(),n.hij(" ",ie.Job.status," ")}}function Be(be,we){if(1&be&&(n.ynx(0),n.YNc(1,zi,2,3,"span",31),n.BQk()),2&be){const ie=n.oxw().$implicit;n.xp6(),n.Q6J("ngIf",ie.Job&&ie.Job.status)}}function pt(be,we){if(1&be&&(n.TgZ(0,"span",30),n._uU(1),n.qZA()),2&be){const ie=n.oxw(2).$implicit;n.Q6J("matTooltip",ie.Job.scheduledTimestamp)("matTooltipShowDelay",500),n.xp6(),n.hij(" ",ie.Job.scheduledTimestamp," ")}}function Ye(be,we){if(1&be&&(n.ynx(0),n.YNc(1,pt,2,3,"span",31),n.BQk()),2&be){const ie=n.oxw().$implicit;n.xp6(),n.Q6J("ngIf",ie.Job&&ie.Job.scheduledTimestamp)}}function ut(be,we){if(1&be&&(n.TgZ(0,"span",30),n._uU(1),n.qZA()),2&be){const ie=n.oxw(2).$implicit;n.Q6J("matTooltip",null==ie.Job.executionUser?null:ie.Job.executionUser.loginname)("matTooltipShowDelay",500),n.xp6(),n.hij(" ",null==ie.Job.executionUser?null:ie.Job.executionUser.loginname," ")}}function Kt(be,we){if(1&be&&(n.ynx(0),n.YNc(1,ut,2,3,"span",31),n.BQk()),2&be){const ie=n.oxw().$implicit;n.xp6(),n.Q6J("ngIf",ie.Job&&ie.Job.executionUser)}}const en=be=>({"color-box--lowCert":be});function qn(be,we){if(1&be&&(n.TgZ(0,"span",30),n._uU(1),n.TgZ(2,"span",32),n._UZ(3,"span",33),n.qZA()()),2&be){const ie=we.ngIf;n.Q6J("matTooltip",ie.currentPhase.phaseName)("matTooltipShowDelay",500),n.xp6(),n.AsE(" ",ie.percentage,"% ",ie.currentPhase.phaseName," "),n.xp6(),n.Q6J("ngClass",n.VKq(7,en,ie.percentage<=50)),n.xp6(),n.Udp("width",ie.percentage,"%")}}function hi(be,we){if(1&be&&(n.ynx(0),n.YNc(1,qn,4,9,"span",31),n.ALo(2,"async"),n.BQk()),2&be){const ie=n.oxw().$implicit,Ge=n.oxw(4);n.xp6(),n.Q6J("ngIf",n.lcZ(2,1,Ge.readJobProgressMap(ie.Job.id)))}}function gi(be,we){if(1&be&&(n.TgZ(0,"span",30),n.ALo(1,"json"),n._uU(2),n.ALo(3,"json"),n.qZA()),2&be){const ie=n.oxw(2).$implicit;n.Q6J("matTooltip",n.lcZ(1,3,ie.Job.info))("matTooltipShowDelay",500),n.xp6(2),n.hij(" ",n.lcZ(3,5,ie.Job.info)," ")}}function ko(be,we){if(1&be&&(n.ynx(0),n.YNc(1,gi,4,7,"span",31),n.BQk()),2&be){const ie=n.oxw().$implicit;n.xp6(),n.Q6J("ngIf",ie.Job&&ie.Job.info)}}function Wo(be,we){if(1&be){const ie=n.EpF();n.TgZ(0,"imx-action-menu-item",27),n.NdJ("actionClicked",function(){const Zn=n.CHM(ie).ngIf,io=n.oxw(5);return n.KtG(io.showProgress(Zn))}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&be&&(n.Q6J("icon","icon-map_walking"),n.xp6(),n.hij(" ",n.lcZ(2,2,"imxjobs.job.list.progress")," "))}function tr(be,we){if(1&be){const ie=n.EpF();n.TgZ(0,"imx-action-menu-item",35),n.NdJ("actionClicked",function(){n.CHM(ie);const Rt=n.oxw().$implicit,Zn=n.oxw().$implicit,io=n.oxw(4);return n.KtG(io.executeRowAction(Rt,Zn.Job))}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&be){const ie=n.oxw().$implicit;n.Q6J("icon",ie.getIcon())("additionalStyle","icon-cross"==ie.getIcon()?"delete":""),n.xp6(),n.hij(" ",n.lcZ(2,3,ie.getActionLabelKey())," ")}}function br(be,we){if(1&be&&n.YNc(0,tr,3,5,"imx-action-menu-item",34),2&be){const ie=we.$implicit,Ge=n.oxw().$implicit,Rt=n.oxw(4);n.Q6J("ngIf",Rt.isActionAllowedForStatus(ie,Ge.Job.status)&&Rt.jobSchedulingPermissionService.hasPermissionForAction(ie))}}function fa(be,we){if(1&be){const ie=n.EpF();n.TgZ(0,"tr")(1,"td"),n.YNc(2,Qn,3,3,"ng-container",8),n.qZA(),n.TgZ(3,"td"),n.YNc(4,bi,2,1,"ng-container",8),n.qZA(),n.TgZ(5,"td"),n.YNc(6,Be,2,1,"ng-container",8),n.qZA(),n.TgZ(7,"td"),n.YNc(8,Ye,2,1,"ng-container",8),n.qZA(),n.TgZ(9,"td"),n.YNc(10,Kt,2,1,"ng-container",8),n.qZA(),n.TgZ(11,"td"),n.YNc(12,hi,3,3,"ng-container",8),n.qZA(),n.TgZ(13,"td"),n.YNc(14,ko,2,1,"ng-container",8),n.qZA(),n.TgZ(15,"td",25)(16,"imx-dropup-button")(17,"imx-action-menu",26)(18,"imx-action-menu-item",27),n.NdJ("actionClicked",function(){const Zn=n.CHM(ie).$implicit,io=n.oxw(4);return n.KtG(io.showDetail(Zn.Job))}),n._uU(19),n.ALo(20,"translate"),n.qZA(),n.YNc(21,Wo,3,4,"imx-action-menu-item",28),n.ALo(22,"async"),n.YNc(23,br,1,1,"ng-template",29),n.qZA()()()()}if(2&be){const ie=we.$implicit,Ge=n.oxw(4);n.xp6(2),n.Q6J("ngIf",ie&&ie.Job&&ie.Job.id),n.xp6(2),n.Q6J("ngIf",ie&&ie.Job&&ie.Job.type),n.xp6(2),n.Q6J("ngIf",ie&&ie.Job&&ie.Job.status),n.xp6(2),n.Q6J("ngIf",ie&&ie.Job&&ie.Job.scheduledTimestamp),n.xp6(2),n.Q6J("ngIf",ie&&ie.Job&&ie.Job.executionUser),n.xp6(2),n.Q6J("ngIf",ie&&ie.Job&&ie.Job.id&&"running"==ie.Job.status.toLowerCase()),n.xp6(2),n.Q6J("ngIf",ie&&ie.Job&&ie.Job.info),n.xp6(4),n.Q6J("icon","icon-magnifier"),n.xp6(),n.hij(" ",n.lcZ(20,11,"imxplatform.common-entity.list.details")," "),n.xp6(2),n.Q6J("ngIf",n.lcZ(22,13,"running"==ie.Job.status.toLowerCase()&&Ge.readJobProgressMap(ie.Job.id))),n.xp6(2),n.Q6J("ngForOf",Ge.availableActions)}}function ga(be,we){if(1&be&&(n.ynx(0),n.TgZ(1,"p-table",20),n.YNc(2,fn,2,1,"ng-template",21)(3,fa,24,15,"ng-template",22),n.qZA(),n.BQk()),2&be){const ie=n.oxw().ngIf,Ge=n.oxw(2);n.xp6(),n.Q6J("rowTrackBy",Ge.trackByFunction)("value",Ge.ImxJobsDataAccessService.concatQueues(ie))("resizableColumns",!0)}}function $r(be,we){if(1&be){const ie=n.EpF();n.ynx(0),n.TgZ(1,"imx-list-header",15),n.NdJ("reload",function(){n.CHM(ie);const Rt=n.oxw(2);return n.KtG(Rt.refreshPage())}),n.ynx(2,16),n.YNc(3,wt,1,2,"imx-create-new-entity-button",17),n.BQk(),n.qZA(),n.TgZ(4,"imx-grid")(5,"imx-grid-element",5)(6,"div",18),n.YNc(7,ga,4,3,"ng-container",1),n.qZA()()(),n.BQk()}if(2&be){const ie=we.ngIf;n.oxw();const Ge=n.MAs(2),Rt=n.oxw();n.xp6(),n.Q6J("totalNumber",Rt.ImxJobsDataAccessService.concatQueues(ie).length)("entityResourceKeyPrefix",Rt.entityResourceKeyPrefix)("isCompactPageHeader",!0)("showCompactToggle",!1),n.xp6(2),n.Q6J("ngIf",Rt.securityManager.hasPermission(Rt.ImxJobsPermissions.F_JOB_MGMT_JOB_CREATE)),n.xp6(4),n.Q6J("ngIf",Rt.ImxJobsDataAccessService.concatQueues(ie)&&Rt.ImxJobsDataAccessService.concatQueues(ie).length>0)("ngIfElse",Ge)}}function Rr(be,we){if(1&be&&(n.ynx(0),n.YNc(1,h,2,0,"ng-template",null,3,n.W1O),n.TgZ(3,"div",4)(4,"imx-grid")(5,"imx-grid-element",5)(6,"div",6),n._UZ(7,"imx-base-select",7),n.YNc(8,Ae,3,3,"span",8)(9,Ct,4,3,"button",9),n.qZA()()()(),n.YNc(10,$r,8,7,"ng-container",1),n.BQk()),2&be){const ie=we.ngIf,Ge=n.MAs(2),Rt=n.oxw();n.xp6(7),n.Q6J("formControl",Rt.selectedQueueCtrl)("label",Rt.entityResourceKeyPrefix+".list.select")("options",Rt.queueOptions),n.xp6(),n.Q6J("ngIf",Rt.ImxJobsDataAccessService.filterDataByQueue(Rt.selectedQueueCtrl.value,ie)),n.xp6(),n.Q6J("hasAnyPermission",Rt.ImxJobsPermissions.F_JOB_MGMT_JOB_CREATE.name),n.xp6(),n.Q6J("ngIf",Rt.ImxJobsDataAccessService.filterDataByQueue(Rt.selectedQueueCtrl.value,ie))("ngIfElse",Ge)}}let Xr=(()=>{class be{static openDetailDialog(ie,Ge,Rt){return Ge.open(Ns,{...Ho.DialogDefaultSizes.FORM_BIG,data:{title:Rt.instant("entity.Job.entityName")+" "+ie.id,job:ie}})}static openCreateDialog(ie,Ge,Rt){return ie.open(ac,{...Ho.DialogDefaultSizes.FORM_BIG,data:{job:Ge,queueName:Rt}})}constructor(ie,Ge,Rt,Zn,io,Ro,ar,Or,La){this.jobsDataAccess=ie,this.dialog=Ge,this.dataAccess=Rt,this.entityStateDao=Zn,this.userMessageService=io,this.translateService=Ro,this.jobActionProvider=ar,this.securityManager=Or,this.jobSchedulingPermissionService=La,this.schedulerData$=(0,rl.of)(null),this.availableActions=[],this.selectedQueueCtrl=new t.p4(ya),this.queueOptions=[],this.entityResourceKeyPrefix="imxjobs.job",this.refreshData$=new nc.X(!0),this.jobProgressMap=new Map,this.ImxJobsDataAccessService=ri,this.ImxJobsPermissions=$s,this.columnDefinitions=[{field:"id",header:"ID",width:"70px"},{field:"type",header:"entity.Job.type",width:"20%"},{field:"status",header:"entity.JobStatus.entityName",width:"20%"},{field:"scheduledTimestamp",header:"entity.Job.scheduledTimestamp",width:"20%"},{field:"executionUser",header:"entity.Job.executionUser",width:"20%"},{field:"progress",header:"imxjobs.job.list.progress",width:"95px"},{field:"info",header:"entity.Job.info",width:"20%"},{field:"action",header:"",width:"50px",cssClass:"action-column"}]}ngOnInit(){this.loadData(),this.availableActions=this.jobActionProvider.getRowActions()}ngOnDestroy(){this.interval&&clearInterval(this.interval)}loadData(){this.schedulerData$=this.refreshData$.pipe((0,Mi.w)(()=>this.jobsDataAccess.getScheduler()),(0,or.b)(ie=>{this.queueOptions=[Ml(),...ri.getAvailableQueueOptions(ie).filter(Ge=>Ge.value!==ya)],this.updateJobProgressMap()})),this.interval=setInterval(()=>{this.refreshPage()},1e4)}refreshPage(){this.refreshData$.next(!0)}showDetail(ie){be.openDetailDialog(ie,this.dialog,this.translateService)}toggleQueue(ie,Ge){("running"===Ge?this.jobsDataAccess.suspendQueue(ie):this.jobsDataAccess.resumeQueue(ie)).subscribe(()=>{this.refreshPage()})}createQueue(){this.openQueueDialog().afterClosed().subscribe(ie=>{ie.confirmed&&this.createJob(ie.queueName)})}createJob(ie){be.openCreateDialog(this.dialog,null,ie).afterClosed().subscribe(Ge=>{this.addJob(Ge,ie||"")})}addJob(ie,Ge){ie.confirmed&&this.jobsDataAccess.createJob(ie.type.toLowerCase(),ie.additionalParams,Ge).subscribe(Rt=>{Rt?(this.userMessageService.showInfo("imxjobs.job.edit.new-successfull"),this.refreshPage(),Ge&&this.selectedQueueCtrl.setValue(Ge)):this.userMessageService.showInfo("imxjobs.job.edit.new-error")})}openQueueDialog(){return this.dialog.open(dn,{...Ho.DialogDefaultSizes.FORM_BIG})}executeRowAction(ie,Ge){ie.doExecute({...Ge,queueName:this.selectedQueueCtrl.value}).subscribe(Rt=>{Rt&&this.refreshPage()})}isActionAllowedForStatus(ie,Ge){return ks(ie,Ge)}trackByFunction(ie,Ge){return Ge.Job.id}readJobProgressMap(ie){return om.readJobProgressMap(ie,this.jobsDataAccess,this.jobProgressMap)}showProgress(ie){om.openProgressDialog(ie,this.dialog)}updateJobProgressMap(){for(const ie of this.jobProgressMap.keys())this.jobProgressMap.set(ie,this.jobsDataAccess.getJobProgressById(ie))}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.Y36(ri),n.Y36(ps.uw),n.Y36(Ho.ImxPlatformDataAccessService),n.Y36(Ho.EntityStateDao),n.Y36(Ho.UserMessageService),n.Y36(Ka.sK),n.Y36(ul),n.Y36(s.Xh),n.Y36(pl))};static#t=this.\u0275cmp=n.Xpm({type:be,selectors:[["ng-component"]],decls:4,vars:4,consts:[["loading",""],[4,"ngIf","ngIfElse"],["mode","indeterminate"],["noResults",""],[1,"scheduler__header"],["lg_w","12","lg_o","0"],[1,"form__content-row"],[3,"formControl","label","options"],[4,"ngIf"],["class","imx-button default with-icon",3,"click",4,"hasAnyPermission"],["readOnly",""],[1,"txt-link"],[3,"ngModel","checkedLabel","notCheckedLabel","click"],[1,"imx-button","default","with-icon",3,"click"],[1,"icon","icon-plus"],[3,"totalNumber","entityResourceKeyPrefix","isCompactPageHeader","showCompactToggle","reload"],["list-header-button-row",""],[3,"entityResourceKeyPrefix","fireCreateEvent","create",4,"ngIf"],[1,"table-wrapper"],[3,"entityResourceKeyPrefix","fireCreateEvent","create"],[1,"imx-datatable",3,"rowTrackBy","value","resizableColumns"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",3,"ngClass"],[1,"action-column"],[1,"scheduler__action-menu"],[3,"icon","actionClicked"],[3,"icon","actionClicked",4,"ngIf"],["ngFor","",3,"ngForOf"],[1,"txt-default",3,"matTooltip","matTooltipShowDelay"],["class","txt-default",3,"matTooltip","matTooltipShowDelay",4,"ngIf"],[1,"color-box",3,"ngClass"],[1,"color-box__progress"],[3,"icon","additionalStyle","actionClicked",4,"ngIf"],[3,"icon","additionalStyle","actionClicked"]],template:function(Ge,Rt){if(1&Ge&&(n.YNc(0,xe,1,0,"ng-template",null,0,n.W1O)(2,Rr,11,7,"ng-container",1),n.ALo(3,"async")),2&Ge){const Zn=n.MAs(1);n.xp6(2),n.Q6J("ngIf",n.lcZ(3,2,Rt.schedulerData$))("ngIfElse",Zn)}},dependencies:[mi.o,Mr._,Nl.A,mn.E,Mo.n,Nn.R,l.mk,l.sg,l.O5,Ci.p,Io.z,cr.t,ra.M,$a.V,Ps.pW,Ba.gM,vc.iA,pn.jx,vc.Q7,t.JJ,t.oH,t.On,l.Ov,l.Ts,l.Nd,Ka.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.job-search__action-menu[_ngcontent-%COMP%]     .action-menu .p-scrollpanel .p-scrollpanel-bar-x{display:none}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.color-box[_ngcontent-%COMP%]{background-color:#f4e4c3;display:block;height:5px;position:relative;width:100%}.color-box[_ngcontent-%COMP%]:not(.color-box--lowCert){background-color:#f4e4c3}.color-box.color-box--lowCert[_ngcontent-%COMP%]{background-color:#f2e0d6}.color-box__progress[_ngcontent-%COMP%]{background:linear-gradient(to right,#00ffb1,#00e195);height:100%;left:0;position:absolute;top:0}.scheduler__action-menu[_ngcontent-%COMP%]     .action-menu .p-scrollpanel .p-scrollpanel-bar-x{display:none}.form__content-row[_ngcontent-%COMP%]{align-items:flex-start;gap:30px;flex-wrap:wrap;padding:20px 0}.form__content-row[_ngcontent-%COMP%] > imx-base-select[_ngcontent-%COMP%]{flex:200px 0 1}.form__content-row[_ngcontent-%COMP%] > .imx-button[_ngcontent-%COMP%]{margin-left:auto}[_nghost-%COMP%]     .list__header-wrapper imx-tooltip{display:none}.scheduler__header[_ngcontent-%COMP%]{background-color:#eefafa;border-bottom:1px solid #e6e9ef;border-top:1px solid #e6e9ef}"]})}return be})();var Es=a(74377),Ys=a(27416),qa=a(28907);function Qs(be,we){if(1&be&&(n.TgZ(0,"form",1)(1,"div",2)(2,"imx-grid")(3,"imx-grid-element",3),n._UZ(4,"imx-form-control",4),n.qZA(),n.TgZ(5,"imx-grid-element",3),n._UZ(6,"imx-form-control",4),n.qZA(),n.TgZ(7,"imx-grid-element",3),n._UZ(8,"imx-form-control",4),n.qZA(),n.TgZ(9,"imx-grid-element",3),n._UZ(10,"imx-form-control",4),n.qZA(),n.TgZ(11,"imx-grid-element",3),n._UZ(12,"imx-form-control",4),n.qZA(),n.TgZ(13,"imx-grid-element",3),n._UZ(14,"imx-form-control",4),n.qZA(),n.TgZ(15,"imx-grid-element",3)(16,"imx-base-checkbox",5),n._uU(17),n.ALo(18,"translate"),n.qZA()()()()()),2&be){const ie=n.oxw();n.Q6J("formGroup",ie.parentForm),n.xp6(3),n.Q6J("lg_w",6)("sm_w",12),n.xp6(),n.Q6J("field",ie.formHandler.formConfiguration.findFormFieldById("jobStatus"))("control",ie.formHandler.formGroup.get("jobStatus"))("form",ie.formHandler.formGroup.get("jobStatus"))("formHandler",ie.formHandler)("config",ie.formHandler.formConfiguration),n.xp6(),n.Q6J("lg_w",6)("sm_w",12),n.xp6(),n.Q6J("field",ie.formHandler.formConfiguration.findFormFieldById("jobType"))("control",ie.formHandler.formGroup.get("jobType"))("form",ie.formHandler.formGroup.get("jobType"))("formHandler",ie.formHandler)("config",ie.formHandler.formConfiguration),n.xp6(),n.Q6J("lg_w",6)("sm_w",12),n.xp6(),n.Q6J("field",ie.formHandler.formConfiguration.findFormFieldById("executionTimeFrom"))("control",ie.formHandler.formGroup.get("executionTimeFrom"))("form",ie.formHandler.formGroup.get("executionTimeFrom"))("formHandler",ie.formHandler)("config",ie.formHandler.formConfiguration),n.xp6(),n.Q6J("lg_w",6)("sm_w",12),n.xp6(),n.Q6J("field",ie.formHandler.formConfiguration.findFormFieldById("executionTimeTo"))("control",ie.formHandler.formGroup.get("executionTimeTo"))("form",ie.formHandler.formGroup.get("executionTimeTo"))("formHandler",ie.formHandler)("config",ie.formHandler.formConfiguration),n.xp6(),n.Q6J("lg_w",6)("sm_w",12),n.xp6(),n.Q6J("field",ie.formHandler.formConfiguration.findFormFieldById("infoTerm"))("control",ie.formHandler.formGroup.get("infoTerm"))("form",ie.formHandler.formGroup.get("infoTerm"))("formHandler",ie.formHandler)("config",ie.formHandler.formConfiguration),n.xp6(),n.Q6J("lg_w",6)("sm_w",12),n.xp6(),n.Q6J("field",ie.formHandler.formConfiguration.findFormFieldById("executionUserId"))("control",ie.formHandler.formGroup.get("executionUserId"))("form",ie.formHandler.formGroup.get("executionUserId"))("formHandler",ie.formHandler)("config",ie.formHandler.formConfiguration),n.xp6(),n.Q6J("lg_w",6)("sm_w",12),n.xp6(2),n.Oqu(n.lcZ(18,46,ie.getFormFieldLabel("notifiable")))}}let ic=(()=>{class be extends Ho.AbstractFilterPanelComponent{constructor(){super(),this.id="JOB_FILTER",this.titleKey="imxplatform.common-entity.filter.commonFilter.header",this.icon="icon-wrench",this.filterFields=["jobStatus","jobType","executionUserId","executionTimeFrom","executionTimeTo","infoTerm","notifiable"]}beforeSubmit(ie){super.beforeSubmit(ie),ie.notifiable=!1===ie.notifiable?void 0:ie.notifiable}static#e=this.\u0275fac=function(Ge){return new(Ge||be)};static#t=this.\u0275cmp=n.Xpm({type:be,selectors:[["imx-job-filter-panel"]],hostAttrs:[1,"imx-job-filter-panel"],features:[n._Bn([(0,Ho.provideParent)(be)]),n.qOj],decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"filter__card"],[3,"lg_w","sm_w"],[3,"field","control","form","formHandler","config"],["formControlName","notifiable"]],template:function(Ge,Rt){1&Ge&&n.YNc(0,Qs,19,48,"form",0),2&Ge&&n.Q6J("ngIf",Rt.panelShown)},dependencies:[Ki.G,qa.A,l.O5,ra.M,$a.V,t._Y,t.JJ,t.JL,t.sg,t.u,Ka.X$],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}"]})}return be})();function wl(be,we){if(1&be&&n._UZ(0,"imx-job-filter-panel",2,3),2&be){const ie=n.oxw();n.Q6J("pinned",!0)("parentForm",ie.formHandler.formGroup)("formHandler",ie.formHandler)("record",ie.record)}}let md=(()=>{class be extends Ho.AbstractEntityFilterComponent{constructor(){super()}getEntityName(){return"Job"}static#e=this.\u0275fac=function(Ge){return new(Ge||be)};static#t=this.\u0275cmp=n.Xpm({type:be,selectors:[["imx-job-filter"]],features:[n.qOj],decls:3,vars:7,consts:[[3,"entityName","filterPanelsTemplate","formHandler","record","orderFields","orderField","orderDirection","orderChanged","save"],["filterPanelsTemplate",""],[3,"pinned","parentForm","formHandler","record"],["jobFilterPanel",""]],template:function(Ge,Rt){if(1&Ge&&(n.TgZ(0,"imx-filter",0),n.NdJ("orderChanged",function(io){return Rt.orderChanged.emit(io)})("save",function(io){return Rt.applyFilter.emit(io)}),n.YNc(1,wl,2,4,"ng-template",null,1,n.W1O),n.qZA()),2&Ge){const Zn=n.MAs(2);n.Q6J("entityName","Job")("filterPanelsTemplate",Zn)("formHandler",Rt.formHandler)("record",Rt.record)("orderFields",Rt.orderFields)("orderField",Rt.orderField)("orderDirection",Rt.orderDirection)}},dependencies:[Ys.z,ic]})}return be})();function Dc(be,we){1&be&&(n.TgZ(0,"imx-list-no-results"),n._uU(1,"imxjobs.job.list.no-records"),n.qZA())}function yc(be,we){1&be&&n._UZ(0,"mat-progress-bar",8)}function Wc(be,we){if(1&be&&(n.TgZ(0,"th",15)(1,"span",16),n.ALo(2,"translate"),n._uU(3),n.ALo(4,"translate"),n.qZA()()),2&be){const ie=we.$implicit;n.Udp("width",ie.width),n.Q6J("ngClass",ie.cssClass),n.xp6(),n.Q6J("matTooltip",n.lcZ(2,6,ie.header))("matTooltipShowDelay",500),n.xp6(2),n.Oqu(n.lcZ(4,8,ie.header))}}function im(be,we){if(1&be&&(n.TgZ(0,"tr"),n.YNc(1,Wc,5,10,"th",14),n.qZA()),2&be){const ie=n.oxw(3);n.xp6(),n.Q6J("ngForOf",ie.columnDefinitions)}}function Vl(be,we){if(1&be&&(n.ynx(0),n.TgZ(1,"span",22),n._uU(2),n.qZA(),n.BQk()),2&be){const ie=n.oxw().$implicit;n.xp6(),n.Q6J("matTooltip",ie.Job.id)("matTooltipShowDelay",500),n.xp6(),n.hij(" ",ie.Job.id," ")}}function zc(be,we){if(1&be&&(n.TgZ(0,"span",22),n._uU(1),n.qZA()),2&be){const ie=n.oxw(2).$implicit;n.Q6J("matTooltip",ie.Job.type)("matTooltipShowDelay",500),n.xp6(),n.hij(" ",ie.Job.type," ")}}function Il(be,we){if(1&be&&(n.ynx(0),n.YNc(1,zc,2,3,"span",23),n.BQk()),2&be){const ie=n.oxw().$implicit;n.xp6(),n.Q6J("ngIf",ie.Job&&ie.Job.type)}}function Bc(be,we){if(1&be&&(n.TgZ(0,"span",22),n._uU(1),n.qZA()),2&be){const ie=n.oxw(2).$implicit;n.Q6J("matTooltip",ie.Job.status)("matTooltipShowDelay",500),n.xp6(),n.hij(" ",ie.Job.status," ")}}function Ac(be,we){if(1&be&&(n.ynx(0),n.YNc(1,Bc,2,3,"span",23),n.BQk()),2&be){const ie=n.oxw().$implicit;n.xp6(),n.Q6J("ngIf",ie.Job&&ie.Job.status)}}function Xl(be,we){if(1&be&&(n.TgZ(0,"span",22),n._uU(1),n.qZA()),2&be){const ie=n.oxw(2).$implicit;n.Q6J("matTooltip",ie.Job.scheduledTimestamp)("matTooltipShowDelay",500),n.xp6(),n.hij(" ",ie.Job.scheduledTimestamp," ")}}function uc(be,we){if(1&be&&(n.ynx(0),n.YNc(1,Xl,2,3,"span",23),n.BQk()),2&be){const ie=n.oxw().$implicit;n.xp6(),n.Q6J("ngIf",ie.Job&&ie.Job.scheduledTimestamp)}}const Oc=be=>({"color-box--lowCert":be});function jc(be,we){if(1&be&&(n.TgZ(0,"span",22),n._uU(1),n.TgZ(2,"span",24),n._UZ(3,"span",25),n.qZA()()),2&be){const ie=we.ngIf;n.Q6J("matTooltip",ie.currentPhase.phaseName)("matTooltipShowDelay",500),n.xp6(),n.AsE(" ",ie.percentage,"% ",ie.currentPhase.phaseName," "),n.xp6(),n.Q6J("ngClass",n.VKq(7,Oc,ie.percentage<=50)),n.xp6(),n.Udp("width",ie.percentage,"%")}}function pc(be,we){if(1&be&&(n.ynx(0),n.YNc(1,jc,4,9,"span",23),n.ALo(2,"async"),n.BQk()),2&be){const ie=n.oxw().$implicit,Ge=n.oxw(3);n.xp6(),n.Q6J("ngIf",n.lcZ(2,1,Ge.readJobProgressMap(ie.Job.id)))}}function Ul(be,we){if(1&be&&(n.TgZ(0,"span",22),n._uU(1),n.qZA()),2&be){const ie=n.oxw(2).$implicit;n.Q6J("matTooltip",null==ie.Job.executionUser?null:ie.Job.executionUser.loginname)("matTooltipShowDelay",500),n.xp6(),n.hij(" ",null==ie.Job.executionUser?null:ie.Job.executionUser.loginname," ")}}function Xc(be,we){if(1&be&&(n.ynx(0),n.YNc(1,Ul,2,3,"span",23),n.BQk()),2&be){const ie=n.oxw().$implicit;n.xp6(),n.Q6J("ngIf",ie.Job&&ie.Job.executionUser)}}function ec(be,we){if(1&be&&(n.TgZ(0,"span",22),n.ALo(1,"json"),n._uU(2),n.ALo(3,"json"),n.qZA()),2&be){const ie=n.oxw(2).$implicit;n.Q6J("matTooltip",n.lcZ(1,3,ie.Job.info))("matTooltipShowDelay",500),n.xp6(2),n.hij(" ",n.lcZ(3,5,ie.Job.info)," ")}}function vd(be,we){if(1&be&&(n.ynx(0),n.YNc(1,ec,4,7,"span",23),n.BQk()),2&be){const ie=n.oxw().$implicit;n.xp6(),n.Q6J("ngIf",ie.Job&&ie.Job.info)}}function bd(be,we){if(1&be&&(n.TgZ(0,"span",22),n.ALo(1,"translate"),n._uU(2),n.ALo(3,"translate"),n.qZA()),2&be){const ie=n.oxw(2).$implicit;let Ge,Rt;n.Q6J("matTooltip",null!==(Ge=ie.Job.queueName)&&void 0!==Ge?Ge:n.lcZ(1,3,"imxjobs.job.list.default"))("matTooltipShowDelay",500),n.xp6(2),n.hij(" ",null!==(Rt=ie.Job.queueName)&&void 0!==Rt?Rt:n.lcZ(3,5,"imxjobs.job.list.default")," ")}}function Sd(be,we){if(1&be&&(n.ynx(0),n.YNc(1,bd,4,7,"span",23),n.BQk()),2&be){const ie=n.oxw().$implicit;n.xp6(),n.Q6J("ngIf",ie.Job)}}function Ru(be,we){if(1&be&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&be){const ie=we.ngIf;n.xp6(),n.hij("(",n.lcZ(2,1,"imxjobs.job.list.duration.name")+": "+ie+" "+n.lcZ(3,3,"imxjobs.job.list.duration.unit"),")")}}function mm(be,we){if(1&be&&(n.TgZ(0,"span",22),n.ALo(1,"translate"),n.ALo(2,"translate"),n._uU(3),n.ALo(4,"translate"),n.YNc(5,Ru,4,5,"span",17),n.qZA()),2&be){const ie=n.oxw(2).$implicit,Ge=n.oxw(3);let Rt;n.Q6J("matTooltip",Ge.findExecTime(ie.Job)?Ge.findExecTime(ie.Job)+(Ge.calcDuration(ie.Job)?" "+Ge.calcDuration(ie.Job)+" "+n.lcZ(1,4,"imxjobs.job.list.duration.unit"):""):n.lcZ(2,6,"imxjobs.job.list.not-started"))("matTooltipShowDelay",500),n.xp6(3),n.hij(" ",null!==(Rt=Ge.findExecTime(ie.Job))&&void 0!==Rt?Rt:n.lcZ(4,8,"imxjobs.job.list.not-started")," "),n.xp6(2),n.Q6J("ngIf",Ge.calcDuration(ie.Job))}}function hu(be,we){if(1&be&&(n.ynx(0),n.YNc(1,mm,6,10,"span",23),n.BQk()),2&be){const ie=n.oxw().$implicit;n.xp6(),n.Q6J("ngIf",ie.Job)}}function Fd(be,we){if(1&be){const ie=n.EpF();n.TgZ(0,"imx-action-menu-item",19),n.NdJ("actionClicked",function(){const Zn=n.CHM(ie).ngIf,io=n.oxw(4);return n.KtG(io.showProgress(Zn))}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&be&&(n.Q6J("icon","icon-map_walking"),n.xp6(),n.hij(" ",n.lcZ(2,2,"imxjobs.job.list.progress")," "))}function tc(be,we){if(1&be){const ie=n.EpF();n.TgZ(0,"imx-action-menu-item",19),n.NdJ("actionClicked",function(){n.CHM(ie);const Rt=n.oxw().$implicit,Zn=n.oxw(3);return n.KtG(Zn.showResult(Rt.Job))}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&be&&(n.Q6J("icon","icon-job-done"),n.xp6(),n.hij(" ",n.lcZ(2,2,"entity.Job.result")," "))}function Km(be,we){if(1&be){const ie=n.EpF();n.TgZ(0,"imx-action-menu-item",19),n.NdJ("actionClicked",function(){n.CHM(ie);const Rt=n.oxw().$implicit,Zn=n.oxw(3);return n.KtG(Zn.copyJob(Rt.Job))}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&be&&(n.Q6J("icon","icon-copy"),n.xp6(),n.hij(" ",n.lcZ(2,2,"imxjobs.job.list.copy")," "))}function um(be,we){if(1&be){const ie=n.EpF();n.TgZ(0,"imx-action-menu-item",27),n.NdJ("actionClicked",function(){n.CHM(ie);const Rt=n.oxw().$implicit,Zn=n.oxw().$implicit,io=n.oxw(3);return n.KtG(io.executeRowAction(Rt,Zn.Job))}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&be){const ie=n.oxw().$implicit;n.Q6J("icon",ie.getIcon())("additionalStyle","icon-cross"==ie.getIcon()?"delete":""),n.xp6(),n.hij(" ",n.lcZ(2,3,ie.getActionLabelKey())," ")}}function ad(be,we){if(1&be&&n.YNc(0,um,3,5,"imx-action-menu-item",26),2&be){const ie=we.$implicit,Ge=n.oxw().$implicit,Rt=n.oxw(3);n.Q6J("ngIf",Rt.isActionAllowedForStatus(ie,Ge.Job.status)&&Rt.jobSchedulingPermissionService.hasPermissionForAction(ie))}}function Zc(be,we){if(1&be){const ie=n.EpF();n.TgZ(0,"tr")(1,"td"),n.YNc(2,Vl,3,3,"ng-container",17),n.qZA(),n.TgZ(3,"td"),n.YNc(4,Il,2,1,"ng-container",17),n.qZA(),n.TgZ(5,"td"),n.YNc(6,Ac,2,1,"ng-container",17),n.qZA(),n.TgZ(7,"td"),n.YNc(8,uc,2,1,"ng-container",17),n.qZA(),n.TgZ(9,"td"),n.YNc(10,pc,3,3,"ng-container",17),n.qZA(),n.TgZ(11,"td"),n.YNc(12,Xc,2,1,"ng-container",17),n.qZA(),n.TgZ(13,"td"),n.YNc(14,vd,2,1,"ng-container",17),n.qZA(),n.TgZ(15,"td"),n.YNc(16,Sd,2,1,"ng-container",17),n.qZA(),n.TgZ(17,"td"),n.YNc(18,hu,2,1,"ng-container",17),n.qZA(),n.TgZ(19,"td")(20,"imx-dropup-button")(21,"imx-action-menu",18)(22,"imx-action-menu-item",19),n.NdJ("actionClicked",function(){const Zn=n.CHM(ie).$implicit,io=n.oxw(3);return n.KtG(io.showDetail(Zn.Job))}),n._uU(23),n.ALo(24,"translate"),n.qZA(),n.YNc(25,Fd,3,4,"imx-action-menu-item",20),n.ALo(26,"async"),n.YNc(27,tc,3,4,"imx-action-menu-item",20),n.ALo(28,"keyvalue"),n.YNc(29,Km,3,4,"imx-action-menu-item",20)(30,ad,1,1,"ng-template",21),n.qZA()()()()}if(2&be){const ie=we.$implicit,Ge=n.oxw(3);n.xp6(2),n.Q6J("ngIf",ie&&ie.Job&&ie.Job.id),n.xp6(2),n.Q6J("ngIf",ie&&ie.Job&&ie.Job.type),n.xp6(2),n.Q6J("ngIf",ie&&ie.Job&&ie.Job.status),n.xp6(2),n.Q6J("ngIf",ie&&ie.Job&&ie.Job.scheduledTimestamp),n.xp6(2),n.Q6J("ngIf",ie&&ie.Job&&ie.Job.id&&"running"==ie.Job.status.toLowerCase()),n.xp6(2),n.Q6J("ngIf",ie&&ie.Job&&ie.Job.executionUser),n.xp6(2),n.Q6J("ngIf",ie&&ie.Job&&ie.Job.info),n.xp6(2),n.Q6J("ngIf",ie&&ie.Job),n.xp6(2),n.Q6J("ngIf",ie&&ie.Job),n.xp6(4),n.Q6J("icon","icon-magnifier"),n.xp6(),n.hij(" ",n.lcZ(24,15,"imxplatform.common-entity.list.details")," "),n.xp6(2),n.Q6J("ngIf",n.lcZ(26,17,"running"==ie.Job.status.toLowerCase()&&Ge.readJobProgressMap(ie.Job.id))),n.xp6(2),n.Q6J("ngIf",n.lcZ(28,19,ie.Job.result).length>0),n.xp6(2),n.Q6J("ngIf",Ge.securityManagerService.hasPermission(Ge.ImxJobsPermissions.F_JOB_MGMT_JOB_CREATE)),n.xp6(),n.Q6J("ngForOf",Ge.availableActions)}}function Cd(be,we){if(1&be&&(n.ynx(0),n.TgZ(1,"p-table",11),n.YNc(2,im,2,1,"ng-template",12)(3,Zc,31,21,"ng-template",13),n.qZA(),n.BQk()),2&be){const ie=n.oxw().ngIf;n.xp6(),n.Q6J("value",ie.items)("resizableColumns",!0)}}function Rm(be,we){if(1&be&&(n.TgZ(0,"div",9),n.YNc(1,Cd,4,2,"ng-container",10),n.qZA()),2&be){const ie=we.ngIf;n.oxw();const Ge=n.MAs(6);n.xp6(),n.Q6J("ngIf",ie.items.length>0)("ngIfElse",Ge)}}let om=(()=>{class be extends Ho.AbstractSearchPage{static openResultDialog(ie,Ge,Rt){return Ge.open(ts,{...Ho.DialogDefaultSizes.FORM_FILL,data:{title:Rt.instant("entity.Job.entityName")+" "+ie.id,job:ie}})}static openProgressDialog(ie,Ge){return Ge.open(_a,{...Ho.DialogDefaultSizes.FORM_BIG,data:{jobProgress:ie}})}static readJobProgressMap(ie,Ge,Rt){return Rt.has(ie)||Rt.set(ie,Ge.getJobProgressById(ie)),Rt.get(ie)}constructor(ie,Ge,Rt,Zn,io,Ro,ar,Or,La,za,Ol,fl,As,Xs,kc,Vc,Ed){super(ie,Ge,Rt,Zn,io,Ro,ar,Or,void 0,za,void 0,As),this.filterFormHandler=ar,this.imxEntitiesMgrService=La,this.runtimeContextService=Ol,this.securityManagerService=fl,this.jobSchedulingPermissionService=Xs,this.jobActionProvider=kc,this.translateService=Vc,this.jobsDataAccess=Ed,this.imxPermissions=s.uo,this.ImxJobsPermissions=$s,this.entityResourceKeyPrefix="imxjobs.job",this.availableActions=this.jobActionProvider.getRowActions(),this.jobProgressMap=new Map,this.availableOrderFields=[{index:1,field:"id",i18n:"imxplatform.common-entity.list.sort.id",type:Ho.OrderType.numeric},{index:2,field:"status",i18n:"entity.JobStatus.entityName",type:Ho.OrderType.alphanumeric},{index:2,field:"type",i18n:"entity.Job.type",type:Ho.OrderType.alphanumeric}],this.orderField="id",this.orderDirection="DESC",this.columnDefinitions=[{field:"id",header:"ID",width:"clamp(40px, 3vw, 70px)"},{field:"type",header:"entity.Job.type",width:"clamp(60px, 3vw, 105px)"},{field:"status",header:"entity.JobStatus.entityName",width:"135px"},{field:"scheduledTimestamp",header:"entity.Job.scheduledTimestamp",width:"95px"},{field:"progress",header:"imxjobs.job.list.progress",width:"95px"},{field:"executionUser",header:"entity.Job.executionUser",width:"60px"},{field:"info",header:"entity.Job.info",width:"35%"},{field:"queueName",header:"entity.JobQueue.name",width:"max(4vw, 60px)"},{field:"executionTime",header:"imxjobs.job.list.execTime",width:"255px"},{field:"action",header:"",width:"50px",cssClass:"action-column"}]}getEntityName(){return"Job"}onLoadRecords(ie,Ge,Rt){super.onLoadRecords(ie,Ge,Rt),this.jobProgressMap.clear()}findExecTime(ie){const Ge=ie.activities.find(Rt=>Rt.action.toLowerCase()===Gs.jS.start);return Ge?Ge.timestamp:null}calcDuration(ie){const Ge=ie.activities.find(Zn=>Zn.action.toLowerCase()===Gs.jS.start),Rt=ie.activities.find(Zn=>[Gs.jS.finish_success,Gs.jS.finish_error,Gs.jS.cancel].map(io=>io.toString()).includes(Zn.action.toLowerCase()));if(Ge?.timestamp&&Rt?.timestamp)return((new Date(Rt.timestamp).getTime()-new Date(Ge.timestamp).getTime())/1e3).toFixed(3).replace(/\.0+$/,"")}isActionAllowedForStatus(ie,Ge){return ks(ie,Ge)}showDetail(ie){Xr.openDetailDialog(ie,this.dialog,this.translateService)}showProgress(ie){be.openProgressDialog(ie,this.dialog)}showResult(ie){be.openResultDialog(ie,this.dialog,this.translateService)}copyJob(ie){let Ge;Ge=ie.queueName?ie.queueName:ya,Xr.openCreateDialog(this.dialog,ie,Ge).afterClosed().subscribe(Rt=>{this.addJob(Rt,Ge)})}addJob(ie,Ge){ie.confirmed&&this.jobsDataAccess.createJob(ie.type.toLowerCase(),ie.additionalParams,Ge).subscribe(Rt=>{this.userMessageService.showInfo(Rt?"imxjobs.job.edit.new-successfull":"imxjobs.job.edit.new-error"),this.reloadData()})}readJobProgressMap(ie){return be.readJobProgressMap(ie,this.jobsDataAccess,this.jobProgressMap)}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.Y36(qs),n.Y36(ql.F0),n.Y36(ql.gz),n.Y36(Ho.UserMessageService),n.Y36(Ho.ListHistoryService),n.Y36(ps.uw),n.Y36(Js),n.Y36(Ho.ImxPlatformDataAccessService),n.Y36(Ho.ImxEntitiesMgrService),n.Y36(Ho.PlatformTrackingService),n.Y36(s.Ze),n.Y36(s.Xh),n.Y36(Ho.ActionProviderService),n.Y36(pl),n.Y36(ul),n.Y36(Ka.sK),n.Y36(ri))};static#t=this.\u0275cmp=n.Xpm({type:be,selectors:[["ng-component"]],features:[n.qOj],decls:12,vars:16,consts:[[1,"search-page"],[3,"formHandler","record","orderFields","orderField","orderDirection","orderChanged","applyFilter","resetFilter"],[3,"totalNumber","entityResourceKeyPrefix","isCompactPageHeader","showCompactToggle","reload"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],["class","table-wrapper",4,"ngIf","ngIfElse"],[3,"paging","selection","disableAllSelection","pageChanged","selectAll"],["mode","indeterminate"],[1,"table-wrapper"],[4,"ngIf","ngIfElse"],[1,"imx-datatable",3,"value","resizableColumns"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",3,"ngClass"],[3,"matTooltip","matTooltipShowDelay"],[4,"ngIf"],[1,"job-search__action-menu"],[3,"icon","actionClicked"],[3,"icon","actionClicked",4,"ngIf"],["ngFor","",3,"ngForOf"],[1,"txt-default",3,"matTooltip","matTooltipShowDelay"],["class","txt-default",3,"matTooltip","matTooltipShowDelay",4,"ngIf"],[1,"color-box",3,"ngClass"],[1,"color-box__progress"],[3,"icon","additionalStyle","actionClicked",4,"ngIf"],[3,"icon","additionalStyle","actionClicked"]],template:function(Ge,Rt){if(1&Ge&&(n.TgZ(0,"div",0)(1,"imx-job-filter",1),n.NdJ("orderChanged",function(io){return Rt.sort(io)})("applyFilter",function(io){return Rt.search(io)})("resetFilter",function(){return Rt.reset()}),n.qZA(),n.TgZ(2,"imx-list-header",2),n.NdJ("reload",function(){return Rt.reloadComplete()}),n.qZA(),n.TgZ(3,"imx-grid")(4,"imx-grid-element",3),n.YNc(5,Dc,2,0,"ng-template",null,4,n.W1O)(7,yc,1,0,"ng-template",null,5,n.W1O)(9,Rm,2,2,"div",6),n.ALo(10,"async"),n.qZA()(),n.TgZ(11,"imx-list-footer",7),n.NdJ("pageChanged",function(io){return Rt.onPageChanged(io)})("selectAll",function(io){return Rt.onSelectAll(io)}),n.qZA()()),2&Ge){const Zn=n.MAs(8);n.xp6(),n.Q6J("formHandler",Rt.filterFormHandler)("record",Rt.filter)("orderFields",Rt.availableOrderFields)("orderField",Rt.orderField)("orderDirection",Rt.orderDirection),n.xp6(),n.Q6J("totalNumber",null==Rt.currentResult?null:Rt.currentResult.totalNumberOfResults)("entityResourceKeyPrefix",Rt.entityResourceKeyPrefix)("isCompactPageHeader",!0)("showCompactToggle",!1),n.xp6(7),n.Q6J("ngIf",n.lcZ(10,14,Rt.results))("ngIfElse",Zn),n.xp6(2),n.Q6J("paging",Rt.pagingModel)("selection",Rt.selectionModel)("disableAllSelection",!0)}},dependencies:[Es.N,Mr._,Nl.A,l.mk,l.sg,l.O5,Ci.p,Io.z,cr.t,ra.M,$a.V,Ps.pW,Ba.gM,vc.iA,pn.jx,vc.Q7,md,l.Ov,l.Ts,l.Nd,Ka.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.job-search__action-menu[_ngcontent-%COMP%]     .action-menu .p-scrollpanel .p-scrollpanel-bar-x{display:none}.color-box[_ngcontent-%COMP%]{background-color:#f4e4c3;display:block;height:5px;position:relative;width:100%}.color-box[_ngcontent-%COMP%]:not(.color-box--lowCert){background-color:#f4e4c3}.color-box.color-box--lowCert[_ngcontent-%COMP%]{background-color:#f2e0d6}.color-box__progress[_ngcontent-%COMP%]{background:linear-gradient(to right,#00ffb1,#00e195);height:100%;left:0;position:absolute;top:0}"]})}return be})();const pm=[{path:"scheduler",canActivate:[s.YX],component:Xr,data:{permissions:[$s.F_JOB_MGMT_JOB_READ],guards:["AuthenticatedGuard","AuthInitFinishedGuard"]}},{path:"jobs",canActivate:[s.YX],component:om,data:{permissions:[$s.F_JOB_MGMT_JOB_READ,$s.F_JOB_MGMT_JOB_READ_OWN],guards:["AuthenticatedGuard","AuthInitFinishedGuard"]}}];let Ld=(()=>{class be{static#e=this.\u0275fac=function(Ge){return new(Ge||be)};static#t=this.\u0275mod=n.oAB({type:be});static#n=this.\u0275inj=n.cJS({imports:[ql.Bz.forChild(pm),ql.Bz]})}return be})(),jd=(()=>{class be{static#e=this.\u0275fac=function(Ge){return new(Ge||be)};static#t=this.\u0275mod=n.oAB({type:be});static#n=this.\u0275inj=n.cJS({providers:[{provide:Ho.IMXPLATFORM_ACTIONS,useClass:yl,multi:!0},{provide:s.gk,useClass:js,multi:!0},{provide:qs,useClass:Ks}],imports:[Ho.SharedImxPlatformModule,Ld,l.ez,mc.xT,os.p9,ps.Is,Ps.Cv,Ba.AV,vc.U$,Ka.aw,t.UX,t.u5]})}return be})();var Ud=a(8111),km=a(75339),Nm=a(60158),xu=a(77504),$u=a(5253),Kd=a(23291),$m=a(29384),ed=a(97734),ku=a(32068),qm=a(59724),Xm=a(51418),Um=a(7428),sd=a(64014),Kc=a(97582);const fm=new n.OlP("MATOMO_ROUTER_CONFIGURATION"),Nu={prependBaseHref:!0,trackPageTitle:!0,delay:0,exclude:[]},yd=new n.OlP("INTERNAL_ROUTER_CONFIGURATION",{factory:()=>{const{disabled:be,enableLinkTracking:we}=(0,n.f3M)(km.kJ),ie=(0,n.f3M)(fm,{optional:!0})||{};return{...Nu,...ie,enableLinkTracking:we,disabled:be}}}),gm=new n.OlP("MATOMO_ROUTER_INTERCEPTORS");function vu(be){return{provide:gm,multi:!0,useClass:be}}function bu(be){return be?be.map(vu):[]}const Uu=new n.OlP("MATOMO_PAGE_TITLE_PROVIDER",{factory:()=>new qu((0,n.f3M)(e.Dx))});class qu{constructor(we){this.title=we}getCurrentPageTitle(we){return(0,rl.of)(this.title.getTitle())}}const Bm=new n.OlP("MATOMO_PAGE_URL_PROVIDER",{factory:()=>new hm((0,n.f3M)(yd),(0,n.f3M)(l.mr,{optional:!0}),(0,n.f3M)(l.lw))});let hm=(()=>{let be=class{constructor(ie,Ge,Rt){this.config=ie,this.baseHref=Ge,this.platformLocation=Rt}getCurrentPageUrl(ie){const Ge=this.config.prependBaseHref?this.getBaseHrefWithoutTrailingSlash()+ie.urlAfterRedirects:ie.urlAfterRedirects;return(0,rl.of)(Ge)}getBaseHrefWithoutTrailingSlash(){return function Am(be){return be.endsWith("/")?be.slice(0,-1):be}(this.baseHref??this.platformLocation.getBaseHrefFromDOM())}};return be=(0,Kc.__decorate)([(0,Kc.__param)(0,(0,n.FiY)()),(0,Kc.__param)(0,(0,n.tBr)(yd)),(0,Kc.__param)(1,(0,n.FiY)()),(0,Kc.__param)(1,(0,n.tBr)(l.mr))],be),be})();function fc(be){return be instanceof ql.m2}function Zm(be){return"string"==typeof be?new RegExp(be):be}let Tp=(()=>{class be{constructor(ie,Ge,Rt,Zn,io,Ro){if(this.router=ie,this.config=Ge,this.pageTitleProvider=Rt,this.pageUrlProvider=Zn,this.tracker=io,this.interceptors=Ro,Ro&&!Array.isArray(Ro))throw function Od(){return new Error('An invalid MATOMO_ROUTER_INTERCEPTORS provider was configured. Did you forget to set "multi: true" ?')}()}init(){if(this.config.disabled)return;const ie=-1===this.config.delay?Nm.y:(0,$m.g)(this.config.delay);this.router.events.pipe((0,ed.h)(fc),(0,ed.h)(function eu(be){const we=function ld(be){return be?Array.isArray(be)?be.map(Zm):[Zm(be)]:[]}(be);return ie=>!we.some(Ge=>ie.urlAfterRedirects.match(Ge))}(this.config.exclude)),function _m(be,we){return(0,ku.x)((ie,Ge)=>we?we(ie[be],Ge[be]):ie[be]===Ge[be])}("urlAfterRedirects"),ie,(0,Mi.w)(Ge=>this.presetPageTitleAndUrl(Ge).pipe((0,Fr.U)(({pageUrl:Rt})=>({pageUrl:Rt,event:Ge})))),(0,qm.b)(({event:Ge,pageUrl:Rt})=>this.callInterceptors(Ge).pipe((0,or.b)(()=>this.trackPageView(Rt))))).subscribe()}callInterceptors(ie){return this.interceptors?(0,xu.D)(this.interceptors.map(Ge=>{const Rt=Ge.beforePageTrack(ie);return(null==Rt?(0,rl.of)(void 0):(0,$u.D)(Rt)).pipe((0,Xm.q)(1),(0,Um.d)(void 0))})).pipe((0,sd.h)(void 0),(0,Um.d)(void 0)):(0,rl.of)(void 0)}presetPageTitleAndUrl(ie){const Ge=this.config.trackPageTitle?this.pageTitleProvider.getCurrentPageTitle(ie).pipe((0,or.b)(Zn=>this.tracker.setDocumentTitle(Zn))):(0,rl.of)(void 0),Rt=this.pageUrlProvider.getCurrentPageUrl(ie).pipe((0,or.b)(Zn=>this.tracker.setCustomUrl(Zn)));return(0,Kd.aj)([Ge,Rt]).pipe((0,Fr.U)(([Zn,io])=>({pageUrl:io})))}trackPageView(ie){this.tracker.trackPageView(),this.config.enableLinkTracking&&this.tracker.enableLinkTracking(!0),this.tracker.setReferrerUrl(ie)}}return be.\u0275fac=function(ie){return new(ie||be)(n.LFG(ql.F0),n.LFG(yd),n.LFG(Uu),n.LFG(Bm),n.LFG(km.ws),n.LFG(gm,8))},be.\u0275prov=n.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})(),Bu=(()=>{class be{constructor(ie,Ge){this.router=ie,Ge||this.router.init()}static forRoot({interceptors:ie,...Ge}={}){return{ngModule:be,providers:[{provide:fm,useValue:Ge},bu(ie)]}}}return be.\u0275fac=function(ie){return new(ie||be)(n.LFG(Tp),n.LFG(be,12))},be.\u0275mod=n.oAB({type:be}),be.\u0275inj=n.cJS({}),be})();var wm=a(3579);const Bd=new n.OlP("NGXS_DEVTOOLS_OPTIONS");let xm=(()=>{class be{constructor(ie,Ge,Rt){this._options=ie,this._injector=Ge,this._ngZone=Rt,this.devtoolsExtension=null,this.globalDevtools=n.dqk.__REDUX_DEVTOOLS_EXTENSION__||n.dqk.devToolsExtension,this.unsubscribe=null,this.connect()}ngOnDestroy(){null!==this.unsubscribe&&this.unsubscribe(),this.globalDevtools&&this.globalDevtools.disconnect()}get store(){return this._injector.get(wm.yh)}handle(ie,Ge,Rt){return!this.devtoolsExtension||this._options.disabled?Rt(ie,Ge):Rt(ie,Ge).pipe((0,nl.K)(Zn=>{const io=this.store.snapshot();throw this.sendToDevTools(ie,Ge,io),Zn}),(0,or.b)(Zn=>{this.sendToDevTools(ie,Ge,Zn)}))}sendToDevTools(ie,Ge,Rt){const Zn=(0,wm.f4)(Ge);"@@INIT"===Zn?this.devtoolsExtension.init(ie):this.devtoolsExtension.send(Object.assign(Object.assign({},Ge),{action:null,type:Zn}),Rt)}dispatched(ie){if("DISPATCH"===ie.type){if("JUMP_TO_ACTION"===ie.payload.type||"JUMP_TO_STATE"===ie.payload.type){const Ge=JSON.parse(ie.state);Ge.router&&Ge.router.trigger&&(Ge.router.trigger="devtools"),this.store.reset(Ge)}else if("TOGGLE_ACTION"===ie.payload.type)console.warn("Skip is not supported at this time.");else if("IMPORT_STATE"===ie.payload.type){const{actionsById:Ge,computedStates:Rt,currentStateIndex:Zn}=ie.payload.nextLiftedState;this.devtoolsExtension.init(Rt[0].state),Object.keys(Ge).filter(io=>"0"!==io).forEach(io=>this.devtoolsExtension.send(Ge[io],Rt[io].state)),this.store.reset(Rt[Zn].state)}}else if("ACTION"===ie.type){const Ge=JSON.parse(ie.payload);this.store.dispatch(Ge)}}connect(){!this.globalDevtools||this._options.disabled||(this.devtoolsExtension=this._ngZone.runOutsideAngular(()=>this.globalDevtools.connect(this._options)),this.unsubscribe=this.devtoolsExtension.subscribe(ie=>{("DISPATCH"===ie.type||"ACTION"===ie.type)&&this._ngZone.run(()=>{this.dispatched(ie)})}))}}return be.\u0275fac=function(ie){return new(ie||be)(n.LFG(Bd),n.LFG(n.zs3),n.LFG(n.R0b))},be.\u0275prov=n.Yz7({token:be,factory:be.\u0275fac}),be})();function Pd(be){return Object.assign({name:"NGXS"},be)}const kt=new n.OlP("USER_OPTIONS");let Jt=(()=>{class be{static forRoot(ie){return{ngModule:be,providers:[{provide:wm.fN,useClass:xm,multi:!0},{provide:kt,useValue:ie},{provide:Bd,useFactory:Pd,deps:[kt]}]}}}return be.\u0275fac=function(ie){return new(ie||be)},be.\u0275mod=n.oAB({type:be}),be.\u0275inj=n.cJS({}),be})();var he=a(46156);const Re=new n.OlP("MESSAGE_FORMAT_CONFIG"),Qe={biDiSupport:!1,formatters:{},strictNumberSign:!1,currency:"USD",strictPluralKeys:!0};let Ht=(()=>{class be extends Ka.k2{constructor(ie){super(),this.mfCache=new Map;const{formatters:Ge,biDiSupport:Rt,strictNumberSign:Zn,currency:io,strictPluralKeys:Ro}={...Qe,...ie};this.config={customFormatters:Ge,biDiSupport:Rt,strict:Zn,currency:io,strictPluralKeys:Ro}}compile(ie,Ge){return this.getMessageFormatInstance(Ge).compile(ie)}compileTranslations(ie,Ge){return"string"==typeof ie?this.compile(ie,Ge):Object.keys(ie).reduce((Rt,Zn)=>({...Rt,[Zn]:this.compileTranslations(ie[Zn],Ge)}),{})}getMessageFormatInstance(ie){return this.mfCache.has(ie)||this.mfCache.set(ie,new he(ie,this.config)),this.mfCache.get(ie)}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.LFG(Re,8))};static#t=this.\u0275prov=n.Yz7({token:be,factory:be.\u0275fac})}return be})();function rr(be){return"function"==typeof be}function Pa(be){return be[be.length-1]}const Ic=be=>be&&"number"==typeof be.length&&"function"!=typeof be;function Pc(be){return rr(be?.then)}const $c=function td(be){const ie=be(Ge=>{Error.call(Ge),Ge.stack=(new Error).stack});return ie.prototype=Object.create(Error.prototype),ie.prototype.constructor=ie,ie}(be=>function(ie){be(this),this.message=ie?`${ie.length} errors occurred during unsubscription:\n${ie.map((Ge,Rt)=>`${Rt+1}) ${Ge.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=ie});function ud(be,we){if(be){const ie=be.indexOf(we);0<=ie&&be.splice(ie,1)}}class qc{constructor(we){this.initialTeardown=we,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let we;if(!this.closed){this.closed=!0;const{_parentage:ie}=this;if(ie)if(this._parentage=null,Array.isArray(ie))for(const Zn of ie)Zn.remove(this);else ie.remove(this);const{initialTeardown:Ge}=this;if(rr(Ge))try{Ge()}catch(Zn){we=Zn instanceof $c?Zn.errors:[Zn]}const{_finalizers:Rt}=this;if(Rt){this._finalizers=null;for(const Zn of Rt)try{Zd(Zn)}catch(io){we=we??[],io instanceof $c?we=[...we,...io.errors]:we.push(io)}}if(we)throw new $c(we)}}add(we){var ie;if(we&&we!==this)if(this.closed)Zd(we);else{if(we instanceof qc){if(we.closed||we._hasParent(this))return;we._addParent(this)}(this._finalizers=null!==(ie=this._finalizers)&&void 0!==ie?ie:[]).push(we)}}_hasParent(we){const{_parentage:ie}=this;return ie===we||Array.isArray(ie)&&ie.includes(we)}_addParent(we){const{_parentage:ie}=this;this._parentage=Array.isArray(ie)?(ie.push(we),ie):ie?[ie,we]:we}_removeParent(we){const{_parentage:ie}=this;ie===we?this._parentage=null:Array.isArray(ie)&&ud(ie,we)}remove(we){const{_finalizers:ie}=this;ie&&ud(ie,we),we instanceof qc&&we._removeParent(this)}}function oc(be){return be instanceof qc||be&&"closed"in be&&rr(be.remove)&&rr(be.add)&&rr(be.unsubscribe)}function Zd(be){rr(be)?be():be.unsubscribe()}qc.EMPTY=(()=>{const be=new qc;return be.closed=!0,be})();const Sc={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Md={setTimeout(be,we,...ie){const{delegate:Ge}=Md;return Ge?.setTimeout?Ge.setTimeout(be,we,...ie):setTimeout(be,we,...ie)},clearTimeout(be){const{delegate:we}=Md;return(we?.clearTimeout||clearTimeout)(be)},delegate:void 0};function Pm(be){Md.setTimeout(()=>{const{onUnhandledError:we}=Sc;if(!we)throw be;we(be)})}function Td(){}const Mm=Lc("C",void 0,void 0);function Lc(be,we,ie){return{kind:be,value:we,error:ie}}let Hc=null;class tu extends qc{constructor(we){super(),this.isStopped=!1,we?(this.destination=we,oc(we)&&we.add(this)):this.destination=nu}static create(we,ie,Ge){return new Mc(we,ie,Ge)}next(we){this.isStopped?Rd(function Ou(be){return Lc("N",be,void 0)}(we),this):this._next(we)}error(we){this.isStopped?Rd(function Gm(be){return Lc("E",void 0,be)}(we),this):(this.isStopped=!0,this._error(we))}complete(){this.isStopped?Rd(Mm,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(we){this.destination.next(we)}_error(we){try{this.destination.error(we)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Jm=Function.prototype.bind;function Mu(be,we){return Jm.call(be,we)}class Im{constructor(we){this.partialObserver=we}next(we){const{partialObserver:ie}=this;if(ie.next)try{ie.next(we)}catch(Ge){gc(Ge)}}error(we){const{partialObserver:ie}=this;if(ie.error)try{ie.error(we)}catch(Ge){gc(Ge)}else gc(we)}complete(){const{partialObserver:we}=this;if(we.complete)try{we.complete()}catch(ie){gc(ie)}}}class Mc extends tu{constructor(we,ie,Ge){let Rt;if(super(),rr(we)||!we)Rt={next:we??void 0,error:ie??void 0,complete:Ge??void 0};else{let Zn;this&&Sc.useDeprecatedNextContext?(Zn=Object.create(we),Zn.unsubscribe=()=>this.unsubscribe(),Rt={next:we.next&&Mu(we.next,Zn),error:we.error&&Mu(we.error,Zn),complete:we.complete&&Mu(we.complete,Zn)}):Rt=we}this.destination=new Im(Rt)}}function gc(be){Sc.useDeprecatedSynchronousErrorHandling?function Pu(be){Sc.useDeprecatedSynchronousErrorHandling&&Hc&&(Hc.errorThrown=!0,Hc.error=be)}(be):Pm(be)}function Rd(be,we){const{onStoppedNotification:ie}=Sc;ie&&Md.setTimeout(()=>ie(be,we))}const nu={closed:!0,next:Td,error:function $d(be){throw be},complete:Td},Gc="function"==typeof Symbol&&Symbol.observable||"@@observable";function sc(be){return be}let Gd=(()=>{class be{constructor(ie){ie&&(this._subscribe=ie)}lift(ie){const Ge=new be;return Ge.source=this,Ge.operator=ie,Ge}subscribe(ie,Ge,Rt){const Zn=function Tu(be){return be&&be instanceof tu||function Us(be){return be&&rr(be.next)&&rr(be.error)&&rr(be.complete)}(be)&&oc(be)}(ie)?ie:new Mc(ie,Ge,Rt);return function Hd(be){if(Sc.useDeprecatedSynchronousErrorHandling){const we=!Hc;if(we&&(Hc={errorThrown:!1,error:null}),be(),we){const{errorThrown:ie,error:Ge}=Hc;if(Hc=null,ie)throw Ge}}else be()}(()=>{const{operator:io,source:Ro}=this;Zn.add(io?io.call(Zn,Ro):Ro?this._subscribe(Zn):this._trySubscribe(Zn))}),Zn}_trySubscribe(ie){try{return this._subscribe(ie)}catch(Ge){ie.error(Ge)}}forEach(ie,Ge){return new(Ge=vm(Ge))((Rt,Zn)=>{const io=new Mc({next:Ro=>{try{ie(Ro)}catch(ar){Zn(ar),io.unsubscribe()}},error:Zn,complete:Rt});this.subscribe(io)})}_subscribe(ie){var Ge;return null===(Ge=this.source)||void 0===Ge?void 0:Ge.subscribe(ie)}[Gc](){return this}pipe(...ie){return function rm(be){return 0===be.length?sc:1===be.length?be[0]:function(ie){return be.reduce((Ge,Rt)=>Rt(Ge),ie)}}(ie)(this)}toPromise(ie){return new(ie=vm(ie))((Ge,Rt)=>{let Zn;this.subscribe(io=>Zn=io,io=>Rt(io),()=>Ge(Zn))})}}return be.create=we=>new be(we),be})();function vm(be){var we;return null!==(we=be??Sc.Promise)&&void 0!==we?we:Promise}function Hu(be){return rr(be[Gc])}function Gu(be){return Symbol.asyncIterator&&rr(be?.[Symbol.asyncIterator])}function gp(be){return new TypeError(`You provided ${null!==be&&"object"==typeof be?"an invalid object":`'${be}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Ju=function Ep(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Fe(be){return rr(be?.[Ju])}function Pe(be){return(0,Kc.__asyncGenerator)(this,arguments,function*(){const ie=be.getReader();try{for(;;){const{value:Ge,done:Rt}=yield(0,Kc.__await)(ie.read());if(Rt)return yield(0,Kc.__await)(void 0);yield yield(0,Kc.__await)(Ge)}}finally{ie.releaseLock()}})}function St(be){return rr(be?.getReader)}function un(be){if(be instanceof Gd)return be;if(null!=be){if(Hu(be))return function vi(be){return new Gd(we=>{const ie=be[Gc]();if(rr(ie.subscribe))return ie.subscribe(we);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(be);if(Ic(be))return function qe(be){return new Gd(we=>{for(let ie=0;ie<be.length&&!we.closed;ie++)we.next(be[ie]);we.complete()})}(be);if(Pc(be))return function Xi(be){return new Gd(we=>{be.then(ie=>{we.closed||(we.next(ie),we.complete())},ie=>we.error(ie)).then(null,Pm)})}(be);if(Gu(be))return jt(be);if(Fe(be))return function xt(be){return new Gd(we=>{for(const ie of be)if(we.next(ie),we.closed)return;we.complete()})}(be);if(St(be))return function jn(be){return jt(Pe(be))}(be)}throw gp(be)}function jt(be){return new Gd(we=>{(function ro(be,we){var ie,Ge,Rt,Zn;return(0,Kc.__awaiter)(this,void 0,void 0,function*(){try{for(ie=(0,Kc.__asyncValues)(be);!(Ge=yield ie.next()).done;)if(we.next(Ge.value),we.closed)return}catch(io){Rt={error:io}}finally{try{Ge&&!Ge.done&&(Zn=ie.return)&&(yield Zn.call(ie))}finally{if(Rt)throw Rt.error}}we.complete()})})(be,we).catch(ie=>we.error(ie))})}function Bo(be,we,ie,Ge=0,Rt=!1){const Zn=we.schedule(function(){ie(),Rt?be.add(this.schedule(null,Ge)):this.unsubscribe()},Ge);if(be.add(Zn),!Rt)return Zn}function Hr(be){return we=>{if(function jr(be){return rr(be?.lift)}(we))return we.lift(function(ie){try{return be(ie,this)}catch(Ge){this.error(Ge)}});throw new TypeError("Unable to lift unknown Observable type")}}function al(be,we,ie,Ge,Rt){return new Jd(be,we,ie,Ge,Rt)}class Jd extends tu{constructor(we,ie,Ge,Rt,Zn,io){super(we),this.onFinalize=Zn,this.shouldUnsubscribe=io,this._next=ie?function(Ro){try{ie(Ro)}catch(ar){we.error(ar)}}:super._next,this._error=Rt?function(Ro){try{Rt(Ro)}catch(ar){we.error(ar)}finally{this.unsubscribe()}}:super._error,this._complete=Ge?function(){try{Ge()}catch(Ro){we.error(Ro)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var we;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:ie}=this;super.unsubscribe(),!ie&&(null===(we=this.onFinalize)||void 0===we||we.call(this))}}}function Qd(be,we=0){return Hr((ie,Ge)=>{ie.subscribe(al(Ge,Rt=>Bo(Ge,be,()=>Ge.next(Rt),we),()=>Bo(Ge,be,()=>Ge.complete(),we),Rt=>Bo(Ge,be,()=>Ge.error(Rt),we)))})}function op(be,we=0){return Hr((ie,Ge)=>{Ge.add(be.schedule(()=>ie.subscribe(Ge),we))})}function Qu(be,we){if(!be)throw new Error("Iterable cannot be null");return new Gd(ie=>{Bo(ie,we,()=>{const Ge=be[Symbol.asyncIterator]();Bo(ie,we,()=>{Ge.next().then(Rt=>{Rt.done?ie.complete():ie.next(Rt.value)})},0,!0)})})}function ap(...be){return function zp(be,we){return we?function S_(be,we){if(null!=be){if(Hu(be))return function f_(be,we){return un(be).pipe(op(we),Qd(we))}(be,we);if(Ic(be))return function Ap(be,we){return new Gd(ie=>{let Ge=0;return we.schedule(function(){Ge===be.length?ie.complete():(ie.next(be[Ge++]),ie.closed||this.schedule())})})}(be,we);if(Pc(be))return function rp(be,we){return un(be).pipe(op(we),Qd(we))}(be,we);if(Gu(be))return Qu(be,we);if(Fe(be))return function iu(be,we){return new Gd(ie=>{let Ge;return Bo(ie,we,()=>{Ge=be[Ju](),Bo(ie,we,()=>{let Rt,Zn;try{({value:Rt,done:Zn}=Ge.next())}catch(io){return void ie.error(io)}Zn?ie.complete():ie.next(Rt)},0,!0)}),()=>rr(Ge?.return)&&Ge.return()})}(be,we);if(St(be))return function Wp(be,we){return Qu(Pe(be),we)}(be,we)}throw gp(be)}(be,we):un(be)}(be,function fs(be){return function Oa(be){return be&&rr(be.schedule)}(Pa(be))?be.pop():void 0}(be))}const{isArray:Rc}=Array,{getPrototypeOf:F_,prototype:jp,keys:Kp}=Object;function Bp(be,we){return Hr((ie,Ge)=>{let Rt=0;ie.subscribe(al(Ge,Zn=>{Ge.next(be.call(we,Zn,Rt++))}))})}const{isArray:g_}=Array;function h_(be,we){return be.reduce((ie,Ge,Rt)=>(ie[Ge]=we[Rt],ie),{})}function ef(...be){const we=function Ja(be){return rr(Pa(be))?be.pop():void 0}(be),{args:ie,keys:Ge}=function lc(be){if(1===be.length){const we=be[0];if(Rc(we))return{args:we,keys:null};if(function $p(be){return be&&"object"==typeof be&&F_(be)===jp}(we)){const ie=Kp(we);return{args:ie.map(Ge=>we[Ge]),keys:ie}}}return{args:be,keys:null}}(be),Rt=new Gd(Zn=>{const{length:io}=ie;if(!io)return void Zn.complete();const Ro=new Array(io);let ar=io,Or=io;for(let La=0;La<io;La++){let za=!1;un(ie[La]).subscribe(al(Zn,Ol=>{za||(za=!0,Or--),Ro[La]=Ol},()=>ar--,void 0,()=>{(!ar||!za)&&(Or||Zn.next(Ge?h_(Ge,Ro):Ro),Zn.complete())}))}});return we?Rt.pipe(function Vu(be){return Bp(we=>function ep(be,we){return g_(we)?be(...we):be(we)}(be,we))}(we)):Rt}function qp(be){return Hr((we,ie)=>{let Zn,Ge=null,Rt=!1;Ge=we.subscribe(al(ie,void 0,void 0,io=>{Zn=un(be(io,qp(be)(we))),Ge?(Ge.unsubscribe(),Ge=null,Zn.subscribe(ie)):Rt=!0})),Rt&&(Ge.unsubscribe(),Ge=null,Zn.subscribe(ie))})}var L_=a(52973),x_=a.n(L_);class tf{constructor(we,ie){this.http=we,this.resources=ie}getTranslation(we){return ef(this.resources.map(Ge=>{const Rt=Ge.prefix+we+Ge.suffix;return this.http.get(Rt).pipe(qp(Zn=>(console.error("Something went wrong for the following translation file:",Rt),console.error(Zn.message),ap({}))))})).pipe(Bp(Ge=>x_().all(Ge)))}}const _d={production:!0,env:"prod",serviceWorkerEnabled:!0,matomoConfig:{enabled:!0,siteId:"3",trackerUrl:"https://infomaxonline.matomo.cloud/"},logging:{loggers:[[s.vK.ROOT,s.eM],["alg",s.eM],["imxplatform-core.EntityCache",s.u_]],appenders:[s.ar]}},Jc={cssClass:"inprogress",i18n:"entity.EntityState.new",hasCurrentAppearances:!1,iconClass:"icon-earth"};let v_=(()=>{class be extends Ho.PlatformEntityStateService{getAllEntityStates(){const ie=super.getAllEntityStates();return ie.push(Jc),ie}determineStateForObject(ie,Ge,Rt){let Zn;return Zn=5===ie?Object.create(Jc):super.determineStateForObject(ie,Ge,Rt),Zn.hasCurrentAppearances=super.hasCurrentAppearances(Ge),Zn}static#e=this.\u0275fac=(()=>{let ie;return function(Rt){return(ie||(ie=n.n5z(be)))(Rt||be)}})();static#t=this.\u0275prov=n.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"})}return be})();const ou=[{path:"",redirectTo:"/dashboard",pathMatch:"full"},{path:"",loadChildren:()=>Promise.resolve().then(a.bind(a,8111)).then(be=>be.ImxToolsModule)},{path:"",loadChildren:()=>Promise.resolve().then(a.bind(a,5078)).then(be=>be.ImxEventManagerModule)},{path:"",loadChildren:()=>Promise.resolve().then(a.bind(a,85829)).then(be=>be.ImxPlatformModule)}];let Yu=(()=>{class be{static#e=this.\u0275fac=function(Ge){return new(Ge||be)};static#t=this.\u0275mod=n.oAB({type:be});static#n=this.\u0275inj=n.cJS({imports:[ql.Bz.forRoot(ou,{anchorScrolling:"enabled",scrollPositionRestoration:"enabled",onSameUrlNavigation:"reload"}),ql.Bz]})}return be})();var b_=a(21647);let hp=(()=>{class be{constructor(ie){this.routingState=ie,ie.init()}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.Y36(s.Yz))};static#t=this.\u0275cmp=n.Xpm({type:be,selectors:[["imx-root"]],decls:1,vars:0,template:function(Ge,Rt){1&Ge&&n._UZ(0,"imx-platform-main")},dependencies:[b_.h],encapsulation:2})}return be})();const Xp=new Ho.FormExtension([new Ho.FieldExtension(Ho.FieldExtensionType.OVERRIDE,"copyright",new Ho.I18nMultiInput("copyright","entity.PooledMedium.copyright",{required:!0})),new Ho.FieldExtension(Ho.FieldExtensionType.OVERRIDE,"mediaLicense",new Ho.Select("mediaLicense","entity.PooledMedium.mediaLicense",{optionProvider:Ho.MediaLicenseOptionProvider,extractor:(0,Ho.pathExtractor)("mediaLicense.id"),insertor:(0,Ho.pathInsertor)("mediaLicense.id",!0),placeholder:"imxplatform.common.select-placeholder-no-selection",initialValue:-1,required:!0}))]);var e_=a(25913),ru=a(63989),Zp=a(47378),Qm=a(22194);function Dp(be,we){1&be&&n.GkF(0)}function bm(be,we){1&be&&n.GkF(0)}function t_(be,we){1&be&&(n.TgZ(0,"p",9),n._uU(1,"imxplatform.common.no-records"),n.qZA())}function n_(be,we){1&be&&n._UZ(0,"tr",22)}function xp(be,we){1&be&&n._UZ(0,"tr",23)}function Ip(be,we){1&be&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&be&&(n.Udp("width","100px"),n.xp6(),n.Oqu(n.lcZ(2,3,"entity.AlgB2BParticipationPrice.sortingValue")))}function U(be,we){if(1&be&&(n.TgZ(0,"td",25),n._UZ(1,"imx-form-control",26),n.qZA()),2&be){const ie=we.$implicit,Ge=n.oxw(2);n.xp6(),n.Q6J("field",Ge.formHandler.formConfiguration.findFormFieldById(Ge.getModulePath()+":prices:sortingValue"))("control",ie.controls.sortingValue)("form",Ge.moduleDataFormGroup)("formHandler",Ge.formHandler)("config",Ge.formHandler.formConfiguration)}}function S(be,we){1&be&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&be&&(n.xp6(),n.Oqu(n.lcZ(2,1,"entity.AlgB2BParticipationPrice.priceTitle")))}function w(be,we){if(1&be&&(n.TgZ(0,"td",25),n._UZ(1,"imx-form-control",26),n.qZA()),2&be){const ie=we.$implicit,Ge=n.oxw(2);n.xp6(),n.Q6J("field",Ge.formHandler.formConfiguration.findFormFieldById(Ge.getModulePath()+":prices:priceTitle"))("control",ie.controls.priceTitle)("form",Ge.moduleDataFormGroup)("formHandler",Ge.formHandler)("config",Ge.formHandler.formConfiguration)}}function Q(be,we){1&be&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&be&&(n.Udp("width","250px"),n.xp6(),n.Oqu(n.lcZ(2,3,"entity.AlgB2BParticipationPrice.priceValue")))}function oe(be,we){if(1&be&&(n.TgZ(0,"td",25),n._UZ(1,"imx-form-control",26),n.qZA()),2&be){const ie=we.$implicit,Ge=n.oxw(2);n.xp6(),n.Q6J("field",Ge.formHandler.formConfiguration.findFormFieldById(Ge.getModulePath()+":prices:priceValue"))("control",ie.controls.priceValue)("form",Ge.moduleDataFormGroup)("formHandler",Ge.formHandler)("config",Ge.formHandler.formConfiguration)}}function fe(be,we){1&be&&n._UZ(0,"th",27)}function Ee(be,we){if(1&be){const ie=n.EpF();n.TgZ(0,"a",31),n.NdJ("click",function(){n.CHM(ie);const Rt=n.oxw(2).$implicit,Zn=n.oxw(2);return n.KtG(Zn.formHandler.removeLineFromCollection("prices",Zn.pricesDataSource.filteredData.indexOf(Rt),Zn.moduleDataFormGroup))}),n.qZA()}}function it(be,we){if(1&be&&(n.ynx(0),n.YNc(1,Ee,1,0,"a",30),n.BQk()),2&be){const ie=n.oxw(3);n.xp6(),n.Q6J("hasFieldWritePermission",ie.getModulePath()+":prices")("hasFieldWritePermissionFormHandler",ie.formHandler)}}function mt(be,we){if(1&be&&(n.TgZ(0,"td",28),n.YNc(1,it,2,2,"ng-container",29),n.qZA()),2&be){const ie=we.$implicit,Ge=n.oxw(2);n.Q6J("formGroup",ie),n.xp6(),n.Q6J("ngIf",Ge.formHandler.hasSavePermission())}}function $t(be,we){if(1&be&&(n.TgZ(0,"table",10),n.YNc(1,n_,1,0,"tr",11)(2,xp,1,0,"tr",12),n.ynx(3,13),n.YNc(4,Ip,3,5,"th",14)(5,U,2,5,"td",15),n.BQk(),n.ynx(6,16),n.YNc(7,S,3,3,"th",17)(8,w,2,5,"td",15),n.BQk(),n.ynx(9,18),n.YNc(10,Q,3,5,"th",14)(11,oe,2,5,"td",15),n.BQk(),n.ynx(12,19),n.YNc(13,fe,1,0,"th",20)(14,mt,2,2,"td",21),n.BQk(),n.qZA()),2&be){const ie=n.oxw();n.Q6J("dataSource",ie.pricesDataSource),n.xp6(),n.Q6J("matHeaderRowDef",ie.pricesColumns),n.xp6(),n.Q6J("matRowDefColumns",ie.pricesColumns)}}function ai(be,we){if(1&be){const ie=n.EpF();n.TgZ(0,"button",32),n.NdJ("click",function(){n.CHM(ie);const Rt=n.oxw();return n.KtG(Rt.addNewPrice())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&be&&(n.xp6(),n.Oqu(n.lcZ(2,1,"imxtools.metainfo.modules_alg_b2b_participation.add_new_price")))}function Ai(be,we){if(1&be&&n._UZ(0,"imx-form-control",26),2&be){const ie=we.$implicit,Ge=n.oxw();n.Q6J("field",Ge.formHandler.formConfiguration.findFormFieldById(Ge.getModulePath()+":"+ie))("control",Ge.moduleDataFormGroup.get(ie))("form",Ge.formHandler.formGroup.get("metainfos"))("formHandler",Ge.formHandler)("config",Ge.formHandler.formConfiguration)}}const ao=()=>({$implicit:"title"}),go=()=>({$implicit:"description"});let Co=(()=>{class be extends Ho.AbstractMetainfoFormPanelComponent{constructor(ie,Ge,Rt){super(ie,Ge),this.entitiesMgr=ie,this.dialog=Ge,this.userMessageService=Rt,this.pricesColumns=["sortingValue","priceTitle","priceValue","removeColumn"]}ngOnInit(){this.getModulePath(),this.pricesDataSource=this.prepareTable(this.moduleDataFormGroup.get("prices"),ie=>this.pricesDataSource=ie,(ie,Ge)=>{let Rt=ie.value.sortingValue,Zn=Ge.value.sortingValue;return Rt||(Rt=Number.MAX_SAFE_INTEGER),Zn||(Zn=Number.MAX_SAFE_INTEGER),Rt-Zn})}addNewPrice(){this.moduleDataFormGroup.get("prices")&&this.moduleDataFormGroup.get("prices").value.length<20?this.formHandler.addNewCollectionRow(this.getModulePath()+":prices",!0,this.moduleDataFormGroup.get("prices")):this.userMessageService.showError("imxtools.metainfo.modules_alg_b2b_participation.error_max_prices")}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.Y36(s.qB),n.Y36(ps.uw),n.Y36(Ho.UserMessageService))};static#t=this.\u0275cmp=n.Xpm({type:be,selectors:[["imx-alg-b2b-participation-offer-form-panel"]],features:[n.qOj],decls:15,vars:11,consts:[["title","imxtools.metainfo.modules_alg_b2b_participation.main",3,"formGroup"],[1,"form__content-row"],[1,"form__content-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["noPriceRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],["class","imx-button prio2",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],["imxControl",""],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","sortingValue"],["mat-header-cell","",3,"width",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","priceTitle"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","priceValue"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell",""],["mat-cell",""],[3,"field","control","form","formHandler","config"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],[4,"ngIf"],["class","icon icon-trash imx-icon-middle imx-icon-clickable",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"],[1,"imx-button","prio2",3,"click"]],template:function(Ge,Rt){if(1&Ge&&(n.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0)(2,"div",1)(3,"div",2),n.YNc(4,Dp,1,0,"ng-container",3)(5,bm,1,0,"ng-container",3),n.qZA()(),n.TgZ(6,"div",1)(7,"div",2),n.YNc(8,t_,2,0,"ng-template",null,4,n.W1O),n.TgZ(10,"div",5),n.YNc(11,$t,15,3,"table",6),n.qZA(),n.YNc(12,ai,3,3,"button",7),n.qZA()()()(),n.YNc(13,Ai,1,5,"ng-template",null,8,n.W1O)),2&Ge){const Zn=n.MAs(9),io=n.MAs(14);n.xp6(),n.Q6J("formGroup",Rt.moduleDataFormGroup),n.xp6(3),n.Q6J("ngTemplateOutlet",io)("ngTemplateOutletContext",n.DdM(9,ao)),n.xp6(),n.Q6J("ngTemplateOutlet",io)("ngTemplateOutletContext",n.DdM(10,go)),n.xp6(6),n.Q6J("ngIf",Rt.pricesDataSource&&Rt.pricesDataSource.data.length>0)("ngIfElse",Zn),n.xp6(),n.Q6J("hasFieldWritePermission","metainfos:modules_alg_b2b_participation:prices")("hasFieldWritePermissionFormHandler",Rt.formHandler)}},dependencies:[t.JL,t.sg,l.O5,l.tP,e_.Z,ru.U,qa.A,Zp.X,Qm.F,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,Ka.Pi,Ka.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.linkPanel[_ngcontent-%COMP%]{width:50%}.linkPanel[_ngcontent-%COMP%]:not(:last-child){margin-right:10px}.form__content-row__shortInputLongLabel[_ngcontent-%COMP%]{flex:100%}[_nghost-%COMP%]     .form__content-row__shortInputLongLabel .input-wrapper{width:calc(50% - 15px)}.form__content-row.wrap-md[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:100%}@media (min-width: 1401px){.form__content-row.wrap-md[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:15px!important}}"],changeDetection:0})}return be})();function Vo(be,we){1&be&&n.GkF(0)}function nr(be,we){1&be&&n.GkF(0)}function mr(be,we){1&be&&n.GkF(0)}function Br(be,we){1&be&&n.GkF(0)}function wr(be,we){1&be&&n.GkF(0)}function Jr(be,we){1&be&&n.GkF(0)}function ir(be,we){1&be&&n.GkF(0)}function na(be,we){1&be&&n.GkF(0)}function Ea(be,we){1&be&&n.GkF(0)}function gs(be,we){1&be&&n.GkF(0)}function Gr(be,we){1&be&&n.GkF(0)}function Bl(be,we){1&be&&n.GkF(0)}function Yl(be,we){1&be&&n.GkF(0)}function us(be,we){1&be&&n.GkF(0)}function kd(be,we){1&be&&n.GkF(0)}function Cm(be,we){1&be&&n.GkF(0)}function _l(be,we){if(1&be&&n._UZ(0,"imx-form-control",8),2&be){const ie=we.$implicit,Ge=n.oxw();n.Q6J("field",Ge.formHandler.formConfiguration.findFormFieldById(Ge.modulePath+":"+ie))("control",Ge.moduleDataFormGroup.get(ie))("form",Ge.formHandler.formGroup.get("metainfo"))("formHandler",Ge.formHandler)("config",Ge.formHandler.formConfiguration)}}const Ws=()=>({$implicit:"carFreeArrival"}),Qc=()=>({$implicit:"carFreeArrivalInfo"}),Wu=()=>({$implicit:"carFreeArrivalLink"}),Sp=()=>({$implicit:"carFreeArrivalLinkText"}),tp=()=>({$implicit:"regionalCatering"}),sp=()=>({$implicit:"regionalCateringInfo"}),zu=()=>({$implicit:"algEventType"}),Hp=()=>({$implicit:"algEventTargetGroup"}),i_=()=>({$implicit:"eventTargetGroupInfo"}),Fp=()=>({$implicit:"individualDatePossible"}),Vm=()=>({$implicit:"individualDatePossibleLink"}),o_=()=>({$implicit:"individualDatePossibleLinkText"}),C_=()=>({$implicit:"specialRequirements"}),xf=()=>({$implicit:"specialRequirementsInfo"}),vf=()=>({$implicit:"specialRequirementsLink"}),bf=()=>({$implicit:"specialRequirementsLinkText"});let y_=(()=>{class be extends Ho.AbstractMetainfoFormPanelComponent{constructor(ie,Ge,Rt){super(ie,Ge),this.entitiesMgr=ie,this.dialog=Ge,this.translateService=Rt,this.modulePath="metainfo"}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.Y36(s.qB),n.Y36(ps.uw),n.Y36(Ka.sK))};static#t=this.\u0275cmp=n.Xpm({type:be,selectors:[["imx-alg-event-form-panel"]],features:[n.qOj],decls:57,vars:50,consts:[["title","imxtools.metainfo.alg_event.carFreeArrival",3,"formGroup"],[1,"form__content-row"],[1,"form__content-group"],["translate",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"form__content-field-row","wrap-sm"],["title","imxtools.metainfo.alg_event.main",3,"formGroup"],["imxControl",""],[3,"field","control","form","formHandler","config"]],template:function(Ge,Rt){if(1&Ge&&(n.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0)(2,"div",1)(3,"div",2)(4,"h5",3),n._uU(5,"imxtools.metainfo.alg_event.carFreeArrival-hint"),n.qZA(),n.YNc(6,Vo,1,0,"ng-container",4)(7,nr,1,0,"ng-container",4),n.TgZ(8,"div",5),n.YNc(9,mr,1,0,"ng-container",4)(10,Br,1,0,"ng-container",4),n.qZA()()()()(),n.TgZ(11,"imx-accordion")(12,"imx-accordion-panel",6)(13,"div",1)(14,"div",2)(15,"h3",3),n._uU(16,"entity.AlgEvent.regionalCatering"),n.qZA(),n.TgZ(17,"div",1)(18,"div",2)(19,"h5",3),n._uU(20,"imxtools.metainfo.alg_event.regionalCatering-hint"),n.qZA(),n.YNc(21,wr,1,0,"ng-container",4)(22,Jr,1,0,"ng-container",4),n.qZA()(),n.TgZ(23,"h3",3),n._uU(24,"entity.AlgEvent.eventTypeInfo"),n.qZA(),n.TgZ(25,"div",1)(26,"div",2),n.YNc(27,ir,1,0,"ng-container",4),n.qZA()(),n.TgZ(28,"h3",3),n._uU(29,"entity.AlgEventTargetGroup.i18nName"),n.qZA(),n.TgZ(30,"div",1)(31,"div",2)(32,"h5",3),n._uU(33,"imxtools.metainfo.alg_event.eventTargetGroupInfo-hint"),n.qZA(),n.YNc(34,na,1,0,"ng-container",4)(35,Ea,1,0,"ng-container",4),n.qZA()(),n.TgZ(36,"h3",3),n._uU(37,"entity.AlgEvent.individualDatePossible"),n.qZA(),n.TgZ(38,"div",1)(39,"div",2),n.YNc(40,gs,1,0,"ng-container",4),n.TgZ(41,"div",5),n.YNc(42,Gr,1,0,"ng-container",4)(43,Bl,1,0,"ng-container",4),n.qZA()()(),n.TgZ(44,"h3",3),n._uU(45,"entity.AlgEvent.specialRequirements"),n.qZA(),n.TgZ(46,"div",1)(47,"div",2)(48,"h5",3),n._uU(49,"imxtools.metainfo.alg_event.specialRequirements-hint"),n.qZA(),n.YNc(50,Yl,1,0,"ng-container",4)(51,us,1,0,"ng-container",4),n.TgZ(52,"div",5),n.YNc(53,kd,1,0,"ng-container",4)(54,Cm,1,0,"ng-container",4),n.qZA()()()()()()(),n.YNc(55,_l,1,5,"ng-template",null,7,n.W1O)),2&Ge){const Zn=n.MAs(56);n.xp6(),n.Q6J("formGroup",Rt.moduleDataFormGroup),n.xp6(5),n.Q6J("ngTemplateOutlet",Zn)("ngTemplateOutletContext",n.DdM(34,Ws)),n.xp6(),n.Q6J("ngTemplateOutlet",Zn)("ngTemplateOutletContext",n.DdM(35,Qc)),n.xp6(2),n.Q6J("ngTemplateOutlet",Zn)("ngTemplateOutletContext",n.DdM(36,Wu)),n.xp6(),n.Q6J("ngTemplateOutlet",Zn)("ngTemplateOutletContext",n.DdM(37,Sp)),n.xp6(2),n.Q6J("formGroup",Rt.moduleDataFormGroup),n.xp6(9),n.Q6J("ngTemplateOutlet",Zn)("ngTemplateOutletContext",n.DdM(38,tp)),n.xp6(),n.Q6J("ngTemplateOutlet",Zn)("ngTemplateOutletContext",n.DdM(39,sp)),n.xp6(5),n.Q6J("ngTemplateOutlet",Zn)("ngTemplateOutletContext",n.DdM(40,zu)),n.xp6(7),n.Q6J("ngTemplateOutlet",Zn)("ngTemplateOutletContext",n.DdM(41,Hp)),n.xp6(),n.Q6J("ngTemplateOutlet",Zn)("ngTemplateOutletContext",n.DdM(42,i_)),n.xp6(5),n.Q6J("ngTemplateOutlet",Zn)("ngTemplateOutletContext",n.DdM(43,Fp)),n.xp6(2),n.Q6J("ngTemplateOutlet",Zn)("ngTemplateOutletContext",n.DdM(44,Vm)),n.xp6(),n.Q6J("ngTemplateOutlet",Zn)("ngTemplateOutletContext",n.DdM(45,o_)),n.xp6(7),n.Q6J("ngTemplateOutlet",Zn)("ngTemplateOutletContext",n.DdM(46,C_)),n.xp6(),n.Q6J("ngTemplateOutlet",Zn)("ngTemplateOutletContext",n.DdM(47,xf)),n.xp6(2),n.Q6J("ngTemplateOutlet",Zn)("ngTemplateOutletContext",n.DdM(48,vf)),n.xp6(),n.Q6J("ngTemplateOutlet",Zn)("ngTemplateOutletContext",n.DdM(49,bf))}},dependencies:[t.JL,t.sg,l.tP,e_.Z,ru.U,qa.A,Ka.Pi],styles:["\n\n\n\n\n\n\n\n\n\n\n\n.no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}"],changeDetection:0})}return be})();function Gp(be,we){1&be&&(n.TgZ(0,"p",8),n._uU(1,"imxplatform.common.no-records"),n.qZA())}function Cf(be,we){1&be&&n._UZ(0,"tr",21)}function nf(be,we){1&be&&n._UZ(0,"tr",22)}function r_(be,we){if(1&be&&(n.TgZ(0,"th",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&be){const ie=n.oxw(2);n.xp6(),n.Oqu(n.lcZ(2,1,ie.formHandler.getFormFieldLabel(ie.modulePath+":linkTeaser:linkType")))}}function au(be,we){if(1&be&&(n.TgZ(0,"td",24),n._UZ(1,"imx-form-control",25),n.qZA()),2&be){const ie=we.$implicit,Ge=n.oxw(2);n.Q6J("formGroup",ie),n.xp6(),n.Q6J("field",Ge.formHandler.formConfiguration.findFormFieldById(Ge.modulePath+":linkTeaser:linkType"))("control",ie.controls.linkType)("form",Ge.formHandler.formGroup.get("metainfos"))("formHandler",Ge.formHandler)("config",Ge.formHandler.formConfiguration)}}function O_(be,we){if(1&be&&(n.TgZ(0,"th",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&be){const ie=n.oxw(2);n.xp6(),n.Oqu(n.lcZ(2,1,ie.formHandler.getFormFieldLabel(ie.modulePath+":linkTeaser:url")))}}function R_(be,we){if(1&be&&(n.TgZ(0,"td",24),n._UZ(1,"imx-form-control",25),n.qZA()),2&be){const ie=we.$implicit,Ge=n.oxw(2);n.Q6J("formGroup",ie),n.xp6(),n.Q6J("field",Ge.formHandler.formConfiguration.findFormFieldById(Ge.modulePath+":linkTeaser:url"))("control",ie.controls.url)("form",Ge.formHandler.formGroup.get("metainfos"))("formHandler",Ge.formHandler)("config",Ge.formHandler.formConfiguration)}}function Ym(be,we){if(1&be&&(n.TgZ(0,"th",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&be){const ie=n.oxw(2);n.xp6(),n.Oqu(n.lcZ(2,1,ie.formHandler.getFormFieldLabel(ie.modulePath+":linkTeaser:name")))}}function k_(be,we){if(1&be&&(n.TgZ(0,"td",24),n._UZ(1,"imx-form-control",25),n.qZA()),2&be){const ie=we.$implicit,Ge=n.oxw(2);n.Q6J("formGroup",ie),n.xp6(),n.Q6J("field",Ge.formHandler.formConfiguration.findFormFieldById(Ge.modulePath+":linkTeaser:name"))("control",ie.controls.name)("form",Ge.formHandler.formGroup.get("metainfos"))("formHandler",Ge.formHandler)("config",Ge.formHandler.formConfiguration)}}function N_(be,we){if(1&be&&(n.TgZ(0,"th",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&be){const ie=n.oxw(2);n.xp6(),n.Oqu(n.lcZ(2,1,ie.formHandler.getFormFieldLabel(ie.modulePath+":linkTeaser:sortingValue")))}}function U_(be,we){if(1&be&&(n.TgZ(0,"td",24),n._UZ(1,"imx-form-control",25),n.qZA()),2&be){const ie=we.$implicit,Ge=n.oxw(2);n.Q6J("formGroup",ie),n.xp6(),n.Q6J("field",Ge.formHandler.formConfiguration.findFormFieldById(Ge.modulePath+":linkTeaser:sortingValue"))("control",ie.controls.sortingValue)("form",Ge.formHandler.formGroup.get("metainfos"))("formHandler",Ge.formHandler)("config",Ge.formHandler.formConfiguration)}}function Tm(be,we){1&be&&n._UZ(0,"th",26)}function P_(be,we){if(1&be){const ie=n.EpF();n.TgZ(0,"a",29),n.NdJ("click",function(){n.CHM(ie);const Rt=n.oxw().$implicit,Zn=n.oxw(2);return n.KtG(Zn.removeLinkTeaser(Rt))}),n.qZA()}}function rf(be,we){if(1&be&&(n.TgZ(0,"td",27),n.YNc(1,P_,1,0,"a",28),n.qZA()),2&be){const ie=we.$implicit,Ge=n.oxw(2);n.Q6J("formGroup",ie),n.xp6(),n.Q6J("hasFieldWritePermission",Ge.modulePath+":linkTeaser")("hasFieldWritePermissionFormHandler",Ge.formHandler)}}function vp(be,we){if(1&be&&(n.TgZ(0,"table",9),n.YNc(1,Cf,1,0,"tr",10)(2,nf,1,0,"tr",11),n.ynx(3,12),n.YNc(4,r_,3,3,"th",13)(5,au,2,6,"td",14),n.BQk(),n.ynx(6,15),n.YNc(7,O_,3,3,"th",13)(8,R_,2,6,"td",14),n.BQk(),n.ynx(9,16),n.YNc(10,Ym,3,3,"th",13)(11,k_,2,6,"td",14),n.BQk(),n.ynx(12,17),n.YNc(13,N_,3,3,"th",13)(14,U_,2,6,"td",14),n.BQk(),n.ynx(15,18),n.YNc(16,Tm,1,0,"th",19)(17,rf,2,3,"td",20),n.BQk(),n.qZA()),2&be){const ie=n.oxw();n.Q6J("dataSource",ie.linkTeaserDataSource),n.xp6(),n.Q6J("matHeaderRowDef",ie.linkTeaserColumns),n.xp6(),n.Q6J("matRowDefColumns",ie.linkTeaserColumns)}}let yf=(()=>{class be extends Ho.AbstractMetainfoFormPanelComponent{constructor(ie,Ge,Rt){super(ie,Ge),this.entitiesMgr=ie,this.dialog=Ge,this.translateService=Rt,this.modulePath="metainfos:modules_alg_linkteaser"}ngOnInit(){this._initLinkTeaserTable()}_initLinkTeaserTable(){this.moduleDataFormGroup.get("linkTeaser")&&(this.linkTeaserDataSource=this.prepareTable(this.moduleDataFormGroup.get("linkTeaser"),ie=>this.linkTeaserDataSource=ie),this.linkTeaserColumns=["linkType","url","name","sortingValue","removeColumn"])}removeLinkTeaser(ie){this.formHandler.removeLineFromCollection("linkTeaser",this.linkTeaserDataSource.filteredData.indexOf(ie),this.moduleDataFormGroup),this._initLinkTeaserTable()}addLinkTeaser(){const ie=this.formHandler.addNewCollectionRow(this.modulePath+":linkTeaser",!1);this.moduleDataFormGroup.get("linkTeaser").push(ie),this._initLinkTeaserTable()}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.Y36(s.qB),n.Y36(ps.uw),n.Y36(Ka.sK))};static#t=this.\u0275cmp=n.Xpm({type:be,selectors:[["imx-alg-linkteaser-addressbase-form-panel"]],features:[n.qOj],decls:13,vars:6,consts:[["title","imxtools.metainfo.modules_alg_linkteaser.main",3,"formGroup"],["translate",""],[1,"form__content-row"],[1,"form__content-group"],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[1,"imx-button","prio2",3,"click"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","linkType"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"formGroup",4,"matCellDef"],["matColumnDef","url"],["matColumnDef","name"],["matColumnDef","sortingValue"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell",""],["mat-cell","",3,"formGroup"],[3,"field","control","form","formHandler","config"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],["class","icon icon-trash imx-icon-middle imx-icon-clickable",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"]],template:function(Ge,Rt){if(1&Ge&&(n.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0)(2,"h3",1),n._uU(3,"entity.AlgLinkTeaser.entityName"),n.qZA(),n.TgZ(4,"div",2)(5,"div",3),n.YNc(6,Gp,2,0,"ng-template",null,4,n.W1O),n.TgZ(8,"div",5),n.YNc(9,vp,18,3,"table",6),n.qZA(),n.TgZ(10,"button",7),n.NdJ("click",function(){return Rt.addLinkTeaser()}),n._uU(11),n.ALo(12,"translate"),n.qZA()()()()()),2&Ge){const Zn=n.MAs(7);n.xp6(),n.Q6J("formGroup",Rt.moduleDataFormGroup),n.xp6(8),n.Q6J("ngIf",Rt.linkTeaserDataSource&&Rt.linkTeaserDataSource.data.length>0)("ngIfElse",Zn),n.xp6(2),n.hij(" ",n.lcZ(12,4,"imxplatform.common.add")," ")}},dependencies:[t.JL,t.sg,l.O5,e_.Z,ru.U,qa.A,Zp.X,Qm.F,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,Ka.Pi,Ka.X$],styles:["\n\n\n\n\n\n\n\n\n\n\n\n.no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}"],changeDetection:0})}return be})();var af=a(2901),Of=a(10001),B_=a(1614);function sf(be,we){if(1&be&&(n._UZ(0,"imx-base-input-label",7),n.ALo(1,"readI18n")),2&be){const ie=n.oxw().$implicit;n.s9C("label",n.lcZ(1,1,ie.i18nName))}}function Pf(be,we){if(1&be&&(n.ynx(0),n.YNc(1,sf,2,3,"imx-base-input-label",5),n._UZ(2,"imx-checkbox-select",6),n.BQk()),2&be){const ie=we.$implicit,Ge=n.oxw();n.xp6(),n.Q6J("ngIf",ie.i18nName),n.xp6(),n.Q6J("field",Ge.formHandler.formConfiguration.findFormFieldById(Ge.modulePath+":types"))("control",Ge.moduleDataFormGroup.get("types"))("form",Ge.moduleDataFormGroup)("formHandler",Ge.formHandler)("optionProvider",ie.types)("rowLayout",!0)}}let Mf=(()=>{class be extends Ho.AbstractMetainfoFormPanelComponent{constructor(ie,Ge,Rt,Zn){super(ie,Ge),this.entitiesMgr=ie,this.dialog=Ge,this.translateService=Rt,this.readI18nPipe=Zn,this.modulePath="metainfos:modules_alg_poi",this.groupedTypes=[],this.defaultTypeGroup={id:0,i18nName:void 0}}ngOnInit(){this._loadTypes()}_loadTypes(){this.entitiesMgr.getAllEntitiesOfType("AlgPoiType").pipe((0,Xm.q)(1)).subscribe(ie=>{this.groupedTypes=this._groupTypes(ie.items).sort((Ge,Rt)=>Ge.id-Rt.id)})}_groupTypes(ie){const Ge=[];ie.forEach(Rt=>{const Zn=this._createAlgPoiTypeOption(Rt);if(Zn){let{attributeGroup:io}=Rt;null===io&&(io=this.defaultTypeGroup);const Ro=Ge.findIndex(ar=>ar.id===io.id);-1===Ro?Ge.push({...io,types:[Zn]}):Ge[Ro].types.push(Zn)}});for(const Rt of Ge)Rt.types.sort((Zn,io)=>Zn.label.localeCompare(io.label));return Ge}_createAlgPoiTypeOption(ie){const{i18nName:Ge,id:Rt}=ie;return Rt&&Ge?{label:this._createAlgPoiTypeOptionLabel(ie),value:Rt}:null}_createAlgPoiTypeOptionLabel(ie){const{i18nName:Ge}=ie;return Ge?this.readI18nPipe.transform(Ge):""}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.Y36(s.qB),n.Y36(ps.uw),n.Y36(Ka.sK),n.Y36(Ho.ReadI18nPipe))};static#t=this.\u0275cmp=n.Xpm({type:be,selectors:[["imx-alg-poi-form-panel"]],features:[n.qOj],decls:7,vars:2,consts:[["title","imxtools.metainfo.modules_alg_poi.main",3,"formGroup"],["translate",""],[1,"form__content-row"],[1,"form__content-group"],[4,"ngFor","ngForOf"],[3,"label",4,"ngIf"],[3,"field","control","form","formHandler","optionProvider","rowLayout"],[3,"label"]],template:function(Ge,Rt){1&Ge&&(n.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0)(2,"h3",1),n._uU(3,"entity.AlgPoiType.entityName"),n.qZA(),n.TgZ(4,"div",2)(5,"div",3),n.YNc(6,Pf,3,7,"ng-container",4),n.qZA()()()()),2&Ge&&(n.xp6(),n.Q6J("formGroup",Rt.moduleDataFormGroup),n.xp6(5),n.Q6J("ngForOf",Rt.groupedTypes))},dependencies:[t.JL,t.sg,l.sg,l.O5,e_.Z,ru.U,af.u,Of.r,Ka.Pi,B_.j],styles:["\n\n\n\n\n\n\n\n\n\n\n\n.no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}"],changeDetection:0})}return be})(),a_=(()=>{class be{constructor(){this.metainfoFormPanelMappings=new Map,this.metainfoFormPanelMappings.set("modules_alg_linkteaser",yf),this.metainfoFormPanelMappings.set("modules_alg_poi",Mf),this.metainfoFormPanelMappings.set("modules_alg_b2b_participation",Co),this.metainfoFormPanelMappings.set(Ho.EVENT_MODULE_PL_KEY,y_)}getMetainfoFormPanelMappings(){return this.metainfoFormPanelMappings}static#e=this.\u0275fac=function(Ge){return new(Ge||be)};static#t=this.\u0275prov=n.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"})}return be})(),Z_=(()=>{class be extends Ho.OptionProvider{constructor(ie,Ge){super(),this.entitiesMgrService=ie,this.translateService=Ge}getOptions(ie,Ge){return this.entitiesMgrService.getAllEntitiesOfType("AlgEventTargetGroup").pipe((0,Fr.U)(Rt=>Rt.items.map(Zn=>({label:Zn.i18nName,value:Zn.id})).sort((Zn,io)=>(0,Ho.compareI18n)(Zn.label,io.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.LFG(s.qB),n.LFG(Ka.sK))};static#t=this.\u0275prov=n.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"})}return be})(),s_=(()=>{class be extends Ho.OptionProvider{constructor(ie,Ge){super(),this.entitiesMgrService=ie,this.translateService=Ge}getOptions(ie,Ge){return this.entitiesMgrService.getAllEntitiesOfType("AlgEventType").pipe((0,Fr.U)(Rt=>Rt.items.map(Zn=>({label:Zn.i18nName,value:Zn.id})).sort((Zn,io)=>(0,Ho.compareI18n)(Zn.label,io.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.LFG(s.qB),n.LFG(Ka.sK))};static#t=this.\u0275prov=n.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"})}return be})(),lf=(()=>{class be extends Ho.OptionProvider{constructor(ie,Ge){super(),this.entitiesMgrService=ie,this.translateService=Ge}getOptions(ie,Ge){return this.entitiesMgrService.getAllEntitiesOfType("AlgPoiType").pipe((0,Fr.U)(Rt=>Rt.items.map(Zn=>({label:Zn.i18nName,value:Zn.id})).sort((Zn,io)=>(0,Ho.compareI18n)(Zn.label,io.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.LFG(s.qB),n.LFG(Ka.sK))};static#t=this.\u0275prov=n.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"})}return be})(),bp=(()=>{class be extends Ho.OptionProvider{constructor(ie){super(),this.entitiesMgrService=ie}getOptions(ie,Ge){return this.entitiesMgrService.getAllEntitiesOfType("AlgLinkTeaserLinkType").pipe((0,Fr.U)(Rt=>Rt.items.map(Zn=>({label:Zn.name,value:Zn.id})).sort((Zn,io)=>Zn.label>io.label?1:-1)))}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.LFG(s.qB))};static#t=this.\u0275prov=n.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"})}return be})();const M_=(new Ho.FieldDefinitions).addCreatorFn("modules_alg_linkteaser",be=>new Ho.ModuleField("modules_alg_linkteaser",[new Ho.ArrayField("linkTeaser",!1,[new Ho.Select("linkType","entity.AlgLinkTeaserLinkType.entityName",{optionProvider:bp,extractor:(0,Ho.pathExtractor)("linkType.id"),insertor:(0,Ho.pathInsertor)("linkType.id",!0),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-no-selection",renderLabel:!1,required:!0}),new Ho.Input("text","url","entity.AlgLinkTeaser.url",{required:!0}),new Ho.Input("text","name","entity.AlgLinkTeaser.name"),new Ho.Input("int","sortingValue","entity.AlgLinkTeaser.sortingValue")],{renderLabel:!1})],{moduleClass:"AlgLinkTeaserAddressbase",moduleId:200000100})).addCreatorFn("modules_alg_poi",be=>new Ho.ModuleField("modules_alg_poi",[new Ho.CheckboxSelect("types","entity.AlgPoiType.entityName",{optionProvider:lf,extractor:(0,Ho.arrayValueExtractor)("types","id"),insertor:(0,Ho.arrayValueInsertor)("types","id"),renderLabel:!1})],{moduleClass:"AlgPoiAddressbase",moduleId:200000200})).addCreatorFn(Ho.EVENT_MODULE_PL_KEY,be=>new Ho.ModuleField(Ho.EVENT_MODULE_PL_KEY,[new Ho.AnyField("_entityType","",{insertor:(0,Ho.staticInsertor)((0,Ho.pathInsertor)("_entityType"),"AlgEvent")}),new Ho.RadioButtonGroup("carFreeArrival","imxtools.metainfo.alg_event.checkbox",{optionProvider:[{value:!0,label:"imxtools.metainfo.alg_event.checkbox.yes"},{value:!1,label:"imxtools.metainfo.alg_event.checkbox.no"}],groupRenderMode:"inline",renderLabel:!1}),new Ho.I18nMultiInput("carFreeArrivalInfo","entity.AlgEvent.carFreeArrivalInfo"),new Ho.I18nMultiInput("carFreeArrivalLink","entity.AlgEvent.carFreeArrivalLink"),new Ho.I18nMultiInput("carFreeArrivalLinkText","entity.AlgEvent.carFreeArrivalLinkText"),new Ho.RadioButtonGroup("regionalCatering","imxtools.metainfo.alg_event.checkbox",{optionProvider:[{value:!0,label:"imxtools.metainfo.alg_event.checkbox.yes"},{value:!1,label:"imxtools.metainfo.alg_event.checkbox.no"}],groupRenderMode:"inline",renderLabel:!1}),new Ho.I18nMultiInput("regionalCateringInfo","entity.AlgEvent.regionalCateringInfo"),new Ho.Select("algEventType","entity.AlgEventType.i18nName",{optionProvider:s_,extractor:(0,Ho.pathExtractor)("algEventType.id"),insertor:(0,Ho.pathInsertor)("algEventType.id",!0),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-no-selection",renderLabel:!1,required:!1}),new Ho.I18nMultiInput("eventTypeInfo","entity.AlgEventType.i18nName"),new Ho.Select("algEventTargetGroup","entity.AlgEvent.eventTargetGroupInfo",{optionProvider:Z_,extractor:(0,Ho.pathExtractor)("algEventTargetGroup.id"),insertor:(0,Ho.pathInsertor)("algEventTargetGroup.id",!0),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-no-selection",renderLabel:!1,required:!1}),new Ho.I18nMultiInput("eventTargetGroupInfo","entity.AlgEvent.eventTargetGroupInfo"),new Ho.RadioButtonGroup("individualDatePossible","imxtools.metainfo.alg_event.checkbox",{optionProvider:[{value:!0,label:"imxtools.metainfo.alg_event.checkbox.yes"},{value:!1,label:"imxtools.metainfo.alg_event.checkbox.no"}],groupRenderMode:"inline",renderLabel:!1}),new Ho.I18nMultiInput("individualDatePossibleInfo","entity.AlgEvent.individualDatePossibleInfo"),new Ho.I18nMultiInput("individualDatePossibleLink","entity.AlgEvent.individualDatePossibleLink"),new Ho.I18nMultiInput("individualDatePossibleLinkText","entity.AlgEvent.individualDatePossibleLinkText"),new Ho.RadioButtonGroup("specialRequirements","imxtools.metainfo.alg_event.checkbox",{optionProvider:[{value:!0,label:"imxtools.metainfo.alg_event.checkbox.yes"},{value:!1,label:"imxtools.metainfo.alg_event.checkbox.no"}],groupRenderMode:"inline",renderLabel:!1}),new Ho.I18nMultiInput("specialRequirementsInfo","entity.AlgEvent.specialRequirementsInfo"),new Ho.I18nMultiInput("specialRequirementsLink","entity.AlgEvent.specialRequirementsLink"),new Ho.I18nMultiInput("specialRequirementsLinkText","entity.AlgEvent.specialRequirementsLinkText")],{moduleClass:"AlgEvent",moduleId:999999})).addCreatorFn("modules_alg_b2b_participation",be=>new Ho.ModuleField("modules_alg_b2b_participation",[new Ho.I18nMultiInput("title","entity.AlgB2BParticipationOffer.title"),new Ho.I18nMultiRichtext("description","entity.AlgB2BParticipationOffer.description"),new Ho.ArrayField("prices",!1,[new Ho.Input("number","sortingValue","entity.AlgB2BParticipationPrice.sortingValue",{renderLabel:!1}),new Ho.I18nMultiInput("priceTitle","entity.AlgB2BParticipationPrice.priceTitle",{renderLabel:!1}),new Ho.Input("price","priceValue","entity.AlgB2BParticipationPrice.priceValue",{renderLabel:!1})])],{moduleClass:"AlgB2BParticipationOffer",moduleId:200001e3}));let cf=(()=>{class be extends Ho.OptionProvider{constructor(ie,Ge){super(),this.entitiesMgrService=ie,this.translateService=Ge}getOptions(ie,Ge){return this.entitiesMgrService.getAllEntitiesOfType("AlgPoiTypeGroup").pipe((0,Fr.U)(Rt=>Rt.items.map(Zn=>({label:Zn.i18nName,value:Zn.id})).sort((Zn,io)=>(0,Ho.compareI18n)(Zn.label,io.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.LFG(s.qB),n.LFG(Ka.sK))};static#t=this.\u0275prov=n.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"})}return be})();const H_=new Ho.ModuleBaseEntityConfiguration("modules_event",[new Ho.BaseEntityFormConfiguration("AlgEventType",[new Ho.Input("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new Ho.I18nMultiInput("i18nName","imxplatform.common.multi-lang",{extendedI18nValidators:Ho.i18nSomeValidator})],[new Ho.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,Ho.filterByI18nName)()]),new Ho.BaseEntityFormConfiguration("AlgEventTargetGroup",[new Ho.Input("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new Ho.I18nMultiInput("i18nName","imxplatform.common.multi-lang",{extendedI18nValidators:Ho.i18nSomeValidator})],[new Ho.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,Ho.filterByI18nName)()])]),Wf=new Ho.ModuleBaseEntityConfiguration("modules_alg_poi",[new Ho.BaseEntityFormConfiguration("AlgPoiType",[new Ho.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new Ho.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName"),new Ho.Select("attributeGroup","entity.I18nAttribute.attributeGroup",{optionProvider:cf,extractor:(0,Ho.pathExtractor)("attributeGroup.id"),insertor:(0,Ho.pathInsertor)("attributeGroup.id",!0),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-no-selection",baseEntityFieldOption:{hideInList:!0}}),new Ho.AnyField("attributeGroupI18nName","entity.I18nAttribute.attributeGroup",{extractor:(0,Ho.pathExtractor)("attributeGroup.i18nName"),insertor:(0,Ho.noneInsertor)()})],[new Ho.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,Ho.filterByI18nName)()])]);a(44510),a(45582),a(4220),a(68630);let G_=(()=>{class be{constructor(ie,Ge,Rt){this.languageInitService=ie,this.infoService=Ge,this.pageTitleService=Rt,this.infoService.getClientInfo().subscribe(Zn=>{(0,Ho.setupSentry)(_d.env,Zn.product_info_name+Zn.version,_d.production)}),ie.init(["de","en"]),this.pageTitleService.initialize("imx - Allg\xe4u")}static#e=this.\u0275fac=function(Ge){return new(Ge||be)(n.LFG(Ho.LanguageInitService),n.LFG(Ho.InfoService),n.LFG(Ho.PageTitleService))};static#t=this.\u0275mod=n.oAB({type:be,bootstrap:[hp]});static#n=this.\u0275inj=n.cJS({providers:[{provide:l.mr,useValue:window["base-href"]},{provide:Ho.IMXPLATFORM_MODULE_FIELDS_DEFINITION,useValue:M_,multi:!0},{provide:Ho.IMXPLATFORM_MODULE_BASE_ENTITY_CONFIG,useValue:Wf,multi:!0},{provide:Ho.IMXPLATFORM_MODULE_BASE_ENTITY_CONFIG,useValue:H_,multi:!0},{provide:Ho.IMXPLATFORM_METAINFO_FORMPANEL_PROVIDER,useClass:a_,multi:!0},{provide:Ho.EntityStateService,useClass:v_,multi:!1,useExisting:!1},{provide:Ho.IMXPLATFORM_POOLED_MEDIUM_FORM_EXTENSIONS,useValue:[Xp]}],imports:[t.u5,t.UX,e.b2,i.JF,s.IR.forRoot(),mc.xT,jd,Ho.SharedImxPlatformModule.forRoot(),Ud.SharedImxToolsModule.forRoot(),Ql.SharedImxEventManagerModule.forRoot(),Yu,Nr,p.p0,ol.Wr.register("ngsw-worker.js",{enabled:_d.serviceWorkerEnabled}),Ka.aw.forRoot({loader:{provide:Ka.Zw,useFactory:c_,deps:[i.eN]},compiler:{provide:Ka.k2,useClass:Ht}}),km.j3.forRoot({disabled:!_d.matomoConfig||!_d.matomoConfig.enabled,siteId:_d.matomoConfig?.siteId,trackerUrl:_d.matomoConfig?.trackerUrl}),Bu,wm.$l.forRoot([],{developmentMode:!_d.production}),Jt.forRoot({disabled:_d.production}),Cl.ki.forRoot({baseUrl:_d.imgProxy?_d.imgProxy.baseUrl:s.yc.imgProxy.baseUrl,signingKey:_d.imgProxy?_d.imgProxy.signingKey:s.yc.imgProxy.signingKey,signingSalt:_d.imgProxy?_d.imgProxy.signingSalt:s.yc.imgProxy.signingSalt})]})}return be})();function c_(be){return new tf(be,[{prefix:"./assets/i18n/imxplatform-",suffix:".json"},{prefix:"./assets/i18n/imxtools-",suffix:".json"},{prefix:"./assets/i18n/ibe-",suffix:".json"},{prefix:"./assets/i18n/imxeventmanager-",suffix:".json"},{prefix:"./assets/i18n/maptoolkit-",suffix:".json"},{prefix:"./assets/i18n/imxjobs-",suffix:".json"},{prefix:"./assets/i18n/",suffix:".json"}])}_d.production&&(0,n.G48)(),(0,s.Ij)(_d.logging.loggers,_d.logging.appenders),e.q6().bootstrapModule(G_).catch(be=>console.error(be))},67597:(gt,X,a)=>{"use strict";a.d(X,{zy:()=>n,DI:()=>l,JC:()=>e,$C:()=>i,wx:()=>s,wm:()=>m,Jw:()=>o,JH:()=>c});const e=1,n=2,s=3,l=4,i=5,c={id:20,name:"unsubscribed"},o=[{id:0,name:"requested"},{id:10,name:"confirmed"},c],m=[{id:1,name:"weekly"},{id:2,name:"monthly"}]},5078:(gt,X,a)=>{"use strict";a.r(X),a.d(X,{EventAutocompleteService:()=>Yx.I,EventCategoryOptionProviderService:()=>ys.O,EventCategoryTreeOptionProviderService:()=>zr.n,EventCloneAction:()=>Mb.Z,EventCloneDialogComponent:()=>Tb.Z,EventDatesViewComponent:()=>r_,EventDmRefuseDialogComponent:()=>Rg.L,EventDuplicateDecisionDialogComponent:()=>Jx.O,EventResolveDuplicateActionVoterWithDcMatrixService:()=>pv,EventResolverService:()=>ng,IMXEVENTMANAGER_ADDRESS_CREATION_VOTER:()=>Vr,IMXEVENTMANAGER_ADDRESS_POI_OVERVIEW_SLOT_TOKEN:()=>vr.jl,IMXEVENTMANAGER_EDIT_TITLES_SLOT_TOKEN:()=>vr.FN,IMXEVENTMANAGER_EVENT_EXTENDED_CRITERIA_DEFS:()=>yn.H,IMXEVENTMANAGER_EVENT_FILTER_FORM_EXTENSIONS:()=>vm.Gx,IMXEVENTMANAGER_EVENT_FORM_EXTENSIONS:()=>Md.jq,ImxEventManagerModule:()=>Eb,ImxEventmanagerDataAccessService:()=>yn.b,ImxEventmanagerPermissions:()=>Us.M,ImxEventmanagerSlotProviderService:()=>vr.RC,SharedImxEventManagerModule:()=>e.m});var e=a(68630),n=a(22941),s=a(21473),l=a(85829),i=a(23291),t=a(17700),p=a(25313),c=a(90297),o=a(19212),x=a(33946),u=a(28907),m=a(96814),b=a(56223),I=a(71365);function H(N,Lt){1&N&&o.GkF(0)}function O(N,Lt){1&N&&o.GkF(0)}function P(N,Lt){1&N&&o.GkF(0)}function G(N,Lt){1&N&&o.GkF(0)}function B(N,Lt){if(1&N&&o._UZ(0,"imx-form-control",6),2&N){const M=Lt.$implicit,pe=o.oxw();o.Q6J("field",pe.data.formHandler.formConfiguration.findFormFieldById(M))("control",pe.data.formRow.get(M))("form",pe.data.formRow)("formHandler",pe.data.formHandler)("config",pe.data.formHandler.formConfiguration)}}const ae=N=>({client:N}),J=N=>({dc:N}),q=()=>({$implicit:"relevance1"}),j=()=>({$implicit:"relevance2"}),Y=()=>({$implicit:"relevance3"}),K=()=>({$implicit:"shouldConfirm"});let ne=(()=>{class N{constructor(M){this.data=M}ngOnInit(){this.clientName=this.data.formRow.get("subscriptClient").value.name}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(t.WI))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["ng-component"]],decls:12,vars:26,consts:[["icon","icon-earth","dialogType","form",3,"heading","subline","submitButtonDisabled"],["id","event-client-subscription-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["imxFormControl",""],[3,"field","control","form","formHandler","config"]],template:function(pe,Ze){if(1&pe&&(o.TgZ(0,"imx-dialog",0),o.ALo(1,"translate"),o.ALo(2,"translate"),o.TgZ(3,"form",1)(4,"div",2)(5,"div",3),o.YNc(6,H,1,0,"ng-container",4)(7,O,1,0,"ng-container",4)(8,P,1,0,"ng-container",4)(9,G,1,0,"ng-container",4),o.qZA()()()(),o.YNc(10,B,1,5,"ng-template",null,5,o.W1O)),2&pe){const xn=o.MAs(11);o.Q6J("heading",o.xi3(1,12,"imxeventmanager.delivery-channel.event-client-subscription-dialog.title",o.VKq(18,ae,Ze.clientName)))("subline",o.xi3(2,15,"imxeventmanager.delivery-channel.event-client-subscription-dialog.dc",o.VKq(20,J,Ze.data.title)))("submitButtonDisabled",Ze.data.formRow.invalid||Ze.data.formRow.pristine),o.xp6(3),o.Q6J("formGroup",Ze.data.formRow),o.xp6(3),o.Q6J("ngTemplateOutlet",xn)("ngTemplateOutletContext",o.DdM(22,q)),o.xp6(),o.Q6J("ngTemplateOutlet",xn)("ngTemplateOutletContext",o.DdM(23,j)),o.xp6(),o.Q6J("ngTemplateOutlet",xn)("ngTemplateOutletContext",o.DdM(24,Y)),o.xp6(),o.Q6J("ngTemplateOutlet",xn)("ngTemplateOutletContext",o.DdM(25,K))}},dependencies:[x.a,u.A,m.tP,b._Y,b.JL,b.sg,I.X$]})}return N})();var ee=a(22194),$=a(67338),ue=a(25913),ge=a(63989);function Ke(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"label",17),o._uU(1," imxeventmanager.delivery-channel.delivery-channel-config-dialog.activateChangesHint "),o.qZA(),o.TgZ(2,"button",18),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw(2);return o.KtG(Ze.handleActivateChanges())}),o._uU(3," imxeventmanager.delivery-channel.delivery-channel-config-dialog.activateChanges "),o.qZA()}if(2&N){const M=o.oxw(2);o.xp6(2),o.Q6J("disabled",M.data.formRow.invalid||M.data.formRow.pristine||!(M.clientsAdded||M.data.formRow.get("applyChangesToRemovedSubscriptClients").value))}}function at(N,Lt){1&N&&o.YNc(0,Ke,4,1,"ng-template",null,16,o.W1O)}function Le(N,Lt){1&N&&o.GkF(0)}function R(N,Lt){1&N&&o.GkF(0)}function Te(N,Lt){1&N&&o.GkF(0)}function me(N,Lt){1&N&&o.GkF(0)}function Se(N,Lt){1&N&&o.GkF(0)}function Ue(N,Lt){1&N&&o.GkF(0)}const We=()=>({$implicit:"applyChangesToRemovedSubscriptClients"});function et(N,Lt){if(1&N&&(o.TgZ(0,"div",19),o.YNc(1,Ue,1,0,"ng-container",7),o.qZA()),2&N){o.oxw();const M=o.MAs(33);o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(2,We))}}function Et(N,Lt){1&N&&o.GkF(0)}function lt(N,Lt){1&N&&o.GkF(0)}function Vt(N,Lt){1&N&&o.GkF(0)}function r(N,Lt){1&N&&o.GkF(0)}function Z(N,Lt){1&N&&(o.TgZ(0,"p",20),o._uU(1," imxeventmanager.delivery-channel.delivery-channel-config-dialog.no-client-subscriptions"),o.qZA())}function Pt(N,Lt){1&N&&o._UZ(0,"tr",30)}function Oe(N,Lt){1&N&&o._UZ(0,"tr",31)}function ye(N,Lt){1&N&&(o.TgZ(0,"th",32),o._uU(1,"entity.Client.entityName"),o.qZA())}function ve(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"td",33)(1,"a",34),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(2);return o.KtG(Si.editClientSubscription(Si.subscriptionsDataSource.filteredData.indexOf(xn)))}),o.TgZ(2,"span"),o._uU(3),o.qZA()()()}if(2&N){const M=Lt.$implicit;o.xp6(3),o.Oqu(M.subscriptClient.name)}}function ft(N,Lt){1&N&&o._UZ(0,"th",35)}function Dt(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"td",36)(1,"a",37),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(2);return o.KtG(Si.editClientSubscription(Si.subscriptionsDataSource.filteredData.indexOf(xn)))}),o.qZA()()}}function Rn(N,Lt){if(1&N&&(o.TgZ(0,"table",21),o.YNc(1,Pt,1,0,"tr",22)(2,Oe,1,0,"tr",23),o.ynx(3,24),o.YNc(4,ye,2,0,"th",25)(5,ve,4,1,"td",26),o.BQk(),o.ynx(6,27),o.YNc(7,ft,1,0,"th",28)(8,Dt,2,0,"td",29),o.BQk(),o.qZA()),2&N){const M=o.oxw();o.Q6J("dataSource",M.subscriptionsDataSource),o.xp6(),o.Q6J("matHeaderRowDef",M.subscriptionColumns),o.xp6(),o.Q6J("matRowDefColumns",M.subscriptionColumns)}}function ti(N,Lt){if(1&N&&o._UZ(0,"imx-form-control",38),2&N){const M=Lt.$implicit,pe=o.oxw();o.Q6J("field",pe.data.formHandler.formConfiguration.findFormFieldById(M))("control",pe.data.formRow.get(M))("form",pe.data.formRow)("formHandler",pe.data.formHandler)("config",pe.data.formHandler.formConfiguration)}}const Xt=N=>({dc:N}),Je=N=>({ownerClient:N}),dt=()=>({$implicit:"ownerAndSubClientsRelevance1"}),Ie=()=>({$implicit:"ownerAndSubClientsRelevance2"}),ot=()=>({$implicit:"ownerAndSubClientsRelevance3"}),ct=()=>({$implicit:"shouldConfirmAppearanceChildClients"}),tn=()=>({$implicit:"clientsOfClientSubscriptions"}),yi=()=>({$implicit:"defaultRelevance1"}),ni=()=>({$implicit:"defaultRelevance2"}),sn=()=>({$implicit:"defaultRelevance3"}),bn=()=>({$implicit:"shouldConfirmAppearanceSubscrClients"}),vt=()=>({width:"100%",height:"100%"});let nn=(()=>{class N{constructor(M,pe,Ze,xn,Si){this.data=M,this.dialog=pe,this.dialogRef=Ze,this.entitiesMgrService=xn,this.eventClientSubscriptionFormHandlerService=Si,this.subscriptionsDataSource=new p.by,this.subscriptionColumns=["clientName","editColumn"],this.clientsAdded=!1}ngOnInit(){this.dcId=this.data.formRow.get("id").value,this.dcName=this.data.formRow.get("deliveryChannel").value.name,this.ownerClient=this.data.formRow.get("deliveryChannel").value.ownerClient.name,this.refreshSubscriptionsDataSource(this.data.formRow.get("clientSubscriptions").value),this.data.formRow.get("applyChangesToRemovedSubscriptClients").setValue(!1,{emitEvent:!1}),this.data.formRow.get("applyChangesToRemovedSubscriptClients").disable({emitEvent:!1}),this.data.formRow.get("activateChanges").setValue(!1,{emitEvent:!1}),this.data.formRow.get("clientsOfClientSubscriptions").valueChanges.subscribe(M=>{const pe=this.subscriptionsDataSource.data.filter(xn=>M.some(Si=>Si===xn.subscriptClient.id)),Ze=[];M.forEach(xn=>{pe.find(Si=>Si.subscriptClient.id===xn)||Ze.push(xn)}),Ze.length>0?this.entitiesMgrService.getEntityWithIdsOfType("Client",Ze).subscribe(xn=>{xn.forEach(Si=>pe.push({id:null,subscriptClient:{name:Si.name,id:Si.id,parent:null}})),this.refreshSubscriptionsDataSource(pe),this.clientsAdded=!0}):(this.clientsAdded=!1,this.refreshSubscriptionsDataSource(pe)),this.checkAnySubscriptClientRemoval()})}editClientSubscription(M){this.eventClientSubscriptionFormHandlerService.baseObject=this.subscriptionsDataSource.data[M],this.dialog.open(ne,{...l.DialogDefaultSizes.FORM_BIG,data:{mode:"EDIT",formRow:this.eventClientSubscriptionFormHandlerService.formGroup,formHandler:this.eventClientSubscriptionFormHandlerService,title:this.dcName}}).afterClosed().subscribe(Ze=>{if(Ze){const xn=this.eventClientSubscriptionFormHandlerService.getBaseObjectCopyWithCurrentFormValues();this.subscriptionsDataSource.data.splice(M,1,xn),this.refreshSubscriptionsDataSource(this.subscriptionsDataSource.data),this.data.formRow.markAsDirty()}})}handleActivateChanges(){this.data.formRow.get("activateChanges").setValue(!0,{emitEvent:!1}),this.dialogRef.close(!0)}refreshSubscriptionsDataSource(M){this.subscriptionsDataSource.data=M,this.subscriptionsDataSource.data.sort((pe,Ze)=>pe.subscriptClient.name.localeCompare(Ze.subscriptClient.name)),this.data.formRow.get("clientSubscriptions").setValue(M,{emitEvent:!1})}checkAnySubscriptClientRemoval(){this.data.record.clientSubscriptions.some(pe=>!this.subscriptionsDataSource.data.some(Ze=>Ze.subscriptClient.id===pe.subscriptClient.id))?this.data.formRow.get("applyChangesToRemovedSubscriptClients").enable({emitEvent:!1}):(this.data.formRow.get("applyChangesToRemovedSubscriptClients").setValue(!1,{emitEvent:!1}),this.data.formRow.get("applyChangesToRemovedSubscriptClients").disable({emitEvent:!1}))}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(t.WI),o.Y36(t.uw),o.Y36(t.so),o.Y36(l.ImxEntitiesMgrService),o.Y36(c.$))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["ng-component"]],decls:34,vars:50,consts:[["icon","icon-earth","dialogType","form",1,"delivery-channel-config-dialog",3,"heading","subline","submitButtonDisabled"],[4,"ngIf"],["id","delivery-channel-config-edit",3,"formGroup"],[3,"title"],[1,"form__content-row"],[1,"form__content-group"],["translate",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["title","imxeventmanager.delivery-channel.delivery-channel-config-dialog.select-clients"],["class","removal-check",4,"ngIf"],["title","imxeventmanager.delivery-channel.delivery-channel-config-dialog.event-client-subscriptions"],[1,"scroll-wrapper"],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],["imxFormControl",""],["customButtonBar",""],["translate","",1,"hint"],["translate","",1,"imx-button","cta",3,"disabled","click"],[1,"removal-check"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","clientName"],["mat-header-cell","","translate","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","editColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","","translate",""],["mat-cell",""],[3,"click"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column"],[1,"icon","icon-magnifier","imx-icon-small","imx-icon-clickable",3,"click"],[3,"field","control","form","formHandler","config"]],template:function(pe,Ze){if(1&pe&&(o.TgZ(0,"imx-dialog",0),o.YNc(1,at,2,0,null,1),o.TgZ(2,"form",2)(3,"imx-accordion")(4,"imx-accordion-panel",3),o.ALo(5,"translate"),o.TgZ(6,"div",4)(7,"div",5)(8,"h3",6),o._uU(9),o.ALo(10,"translate"),o.qZA(),o.YNc(11,Le,1,0,"ng-container",7)(12,R,1,0,"ng-container",7)(13,Te,1,0,"ng-container",7)(14,me,1,0,"ng-container",7),o.qZA()()()(),o.TgZ(15,"imx-accordion")(16,"imx-accordion-panel",8),o.YNc(17,Se,1,0,"ng-container",7)(18,et,2,3,"div",9),o.TgZ(19,"h3",6),o._uU(20,"imxeventmanager.delivery-channel.delivery-channel-config-dialog.default-all-clients"),o.qZA(),o.YNc(21,Et,1,0,"ng-container",7)(22,lt,1,0,"ng-container",7)(23,Vt,1,0,"ng-container",7)(24,r,1,0,"ng-container",7),o.qZA(),o.TgZ(25,"imx-accordion-panel",10)(26,"div",11)(27,"p-scrollPanel"),o.YNc(28,Z,2,0,"ng-template",null,12,o.W1O),o.TgZ(30,"div",13),o.YNc(31,Rn,9,3,"table",14),o.qZA()()()()()()(),o.YNc(32,ti,1,5,"ng-template",null,15,o.W1O)),2&pe){const xn=o.MAs(29),Si=o.MAs(33);o.Q6J("heading","EDIT"===Ze.data.mode?"imxeventmanager.delivery-channel.delivery-channel-config-dialog.title-edit":"imxeventmanager.delivery-channel.delivery-channel-config-dialog.title-new")("subline","ID: "+Ze.dcId)("submitButtonDisabled",Ze.data.formRow.invalid||Ze.data.formRow.pristine),o.xp6(),o.Q6J("ngIf","EDIT"===Ze.data.mode),o.xp6(),o.Q6J("formGroup",Ze.data.formRow),o.xp6(2),o.s9C("title",o.xi3(5,30,"imxeventmanager.delivery-channel.delivery-channel-config-dialog.dc",o.VKq(36,Xt,Ze.dcName))),o.xp6(5),o.Oqu(o.xi3(10,33,"imxeventmanager.delivery-channel.delivery-channel-config-dialog.owner-client",o.VKq(38,Je,Ze.ownerClient))),o.xp6(2),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(40,dt)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(41,Ie)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(42,ot)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(43,ct)),o.xp6(3),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(44,tn)),o.xp6(),o.Q6J("ngIf","EDIT"===Ze.data.mode),o.xp6(3),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(45,yi)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(46,ni)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(47,sn)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(48,bn)),o.xp6(3),o.Akn(o.DdM(49,vt)),o.xp6(4),o.Q6J("ngIf",Ze.subscriptionsDataSource&&Ze.subscriptionsDataSource.data.length>0)("ngIfElse",xn)}},dependencies:[x.a,u.A,ee.F,m.O5,m.tP,b._Y,b.JL,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,b.sg,I.Pi,$.P,ue.Z,ge.U,I.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}h3[_ngcontent-%COMP%]{margin-bottom:10px}  .mat-mdc-dialog-container .delivery-channel-config-dialog .mat-mdc-dialog-content{max-height:calc(100vh - 215px)!important}.scroll-wrapper[_ngcontent-%COMP%]{width:100%;height:20vh;overflow:hidden}.hint[_ngcontent-%COMP%]{text-align:left;margin:15px}.removal-check[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.action-column[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{margin-left:5px}"]})}return N})();var rn=a(96124);function ii(N,Lt){1&N&&o.GkF(0)}function Oo(N,Lt){1&N&&o.GkF(0)}function no(N,Lt){1&N&&o.GkF(0)}function Li(N,Lt){if(1&N&&o._UZ(0,"imx-form-control",6),2&N){const M=Lt.$implicit,pe=o.oxw();o.Q6J("field",pe.data.formHandler.formConfiguration.findFormFieldById(M))("control",pe.data.formRow.get(M))("form",pe.data.formRow)("formHandler",pe.data.formHandler)("config",pe.data.formHandler.formConfiguration)}}const ji=()=>({$implicit:"name"}),Ii=()=>({$implicit:"ownerClient"}),_i=()=>({$implicit:"grantedClients"});let En=(()=>{class N{constructor(M,pe){this.data=M,this.entitiesMgrService=pe}ngOnInit(){this.title=this.data.formRow.get("id").value?"ID: "+this.data.formRow.get("id").value:"";const M=this.entitiesMgrService.getAllEntitiesOfType("DeliveryChannel").pipe((0,rn.U)(pe=>pe.items),(0,rn.U)(pe=>pe.filter(Ze=>Ze.id!==this.data.dataObject.id)),(0,rn.U)(pe=>pe.map(Ze=>Ze.name)));this.data.formRow.get("name").setAsyncValidators((0,l.createNameValidatorAsync)(M))}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(t.WI),o.Y36(l.ImxEntitiesMgrService))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["ng-component"]],decls:9,vars:13,consts:[["icon","icon-earth","dialogType","form",3,"heading","subline","submitButtonDisabled"],["id","delivery-channel-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["imxFormControl",""],[3,"field","control","form","formHandler","config"]],template:function(pe,Ze){if(1&pe&&(o.TgZ(0,"imx-dialog",0)(1,"form",1)(2,"div",2)(3,"div",3),o.YNc(4,ii,1,0,"ng-container",4)(5,Oo,1,0,"ng-container",4)(6,no,1,0,"ng-container",4),o.qZA()()()(),o.YNc(7,Li,1,5,"ng-template",null,5,o.W1O)),2&pe){const xn=o.MAs(8);o.Q6J("heading","entity.DeliveryChannel.entityName")("subline",Ze.title)("submitButtonDisabled",Ze.data.formRow.invalid||Ze.data.formRow.pristine),o.xp6(),o.Q6J("formGroup",Ze.data.formRow),o.xp6(3),o.Q6J("ngTemplateOutlet",xn)("ngTemplateOutletContext",o.DdM(10,ji)),o.xp6(),o.Q6J("ngTemplateOutlet",xn)("ngTemplateOutletContext",o.DdM(11,Ii)),o.xp6(),o.Q6J("ngTemplateOutlet",xn)("ngTemplateOutletContext",o.DdM(12,_i))}},dependencies:[x.a,u.A,m.tP,b._Y,b.JL,b.sg]})}return N})();var co=a(3125),yn=a(94522),ln=a(82730);const He=new l.FormConfiguration([new l.AnyField("id",""),new l.AnyField("deliveryChannel",""),new l.Checkbox("ownerAndSubClientsRelevance1","entity.DeliveryChannelConfig.ownerAndSubClientsRelevance1"),new l.Checkbox("ownerAndSubClientsRelevance2","entity.DeliveryChannelConfig.ownerAndSubClientsRelevance2"),new l.Checkbox("ownerAndSubClientsRelevance3","entity.DeliveryChannelConfig.ownerAndSubClientsRelevance3"),new l.Checkbox("shouldConfirmAppearanceChildClients","entity.DeliveryChannelConfig.shouldConfirmAppearanceChildClients"),new l.Checkbox("defaultRelevance1","entity.DeliveryChannelConfig.defaultRelevance1"),new l.Checkbox("defaultRelevance2","entity.DeliveryChannelConfig.defaultRelevance2"),new l.Checkbox("defaultRelevance3","entity.DeliveryChannelConfig.defaultRelevance3"),new l.Checkbox("shouldConfirmAppearanceSubscrClients","entity.DeliveryChannelConfig.shouldConfirmAppearanceSubscrClients"),new l.ListShuffle("clientsOfClientSubscriptions","entity.DeliveryChannelConfig.clientSubscriptions",{renderLabel:!1,optionProvider:l.ClientOptionProviderService,extractor:(0,l.arrayValueExtractor)("clientSubscriptions","subscriptClient.id"),insertor:(0,l.noneInsertor)()}),new l.AnyField("clientSubscriptions",""),new l.Checkbox("applyChangesToRemovedSubscriptClients","entity.DeliveryChannelConfig.applyChangesToRemovedSubscriptClients",{initialValue:0,extractor:(0,l.noneExtractor)(),insertor:(0,l.noneInsertor)()}),new l.AnyField("activateChanges","",{extractor:(0,l.noneExtractor)(),insertor:(0,l.noneInsertor)()})]);let rt=(()=>{class N extends l.AbstractFormHandler{constructor(M,pe,Ze,xn){super(He,void 0,M,Ze,xn)}getEntityType(){return"DeliveryChannelConfig"}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.LFG(l.NgControlBuilderService),o.LFG(s.Xh),o.LFG(s.Ze),o.LFG(l.FormatterService))};static#t=this.\u0275prov=o.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();const $e=new l.FormConfiguration([(0,l.idFilterField)("DataObject"),new l.Input("text","name","entity.DeliveryChannel.name"),new l.Select("ownerClient","entity.DeliveryChannel.ownerClient",{optionProvider:l.ClientOptionProviderService,extractor:(0,l.numberExtractor)("client"),placeholder:"imxplatform.common.select-placeholder-any-client",initialValue:-1}),new l.Select("grantedClients","entity.DeliveryChannel.grantedClients",{optionProvider:l.ClientOptionProviderService,extractor:(0,l.numberExtractor)("client"),placeholder:"imxplatform.common.select-placeholder-any-client",initialValue:-1}),new l.Select("clientSubscriptions","entity.DeliveryChannelConfig.clientSubscriptions",{optionProvider:l.ClientOptionProviderService,extractor:(0,l.numberExtractor)("clientSubscriptions"),insertor:(0,l.pathInsertor)("clientSubscriptions",!0),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-no-selection"})]);let Ve=(()=>{class N extends l.AbstractFormHandler{constructor(M,pe,Ze,xn){super($e,void 0,M,pe,xn),this.runtimeContextService=pe,this.imxSecurityManagerService=Ze,this.formatterService=xn}getEntityType(){return"DeliveryChannel"}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.LFG(l.NgControlBuilderService),o.LFG(s.Ze),o.LFG(s.Xh),o.LFG(l.FormatterService))};static#t=this.\u0275prov=o.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();const Ce=new l.FormConfiguration([new l.AnyField("id",""),new l.Input("text","name","entity.DeliveryChannel.name",{required:!0,extendedValidators:[b.kI.maxLength(80)]}),new l.Select("ownerClient","entity.DeliveryChannel.ownerClient",{optionProvider:l.ClientOptionProviderService,extractor:(0,l.pathExtractor)("ownerClient.id"),insertor:(0,l.pathInsertor)("ownerClient.id",!0),placeholder:"imxplatform.common.select-placeholder-demand",initialValue:-1,required:!0}),new l.ListShuffle("grantedClients","entity.DeliveryChannel.grantedClients",{optionProvider:l.ClientOptionProviderService,extractor:(0,l.arrayValueExtractor)("grantedClients","id"),insertor:(0,l.arrayValueInsertor)("grantedClients","id"),renderLabel:!0})]);let tt=(()=>{class N extends l.AbstractFormHandler{constructor(M,pe,Ze,xn){super(Ce,void 0,M,Ze,xn)}getEntityType(){return"DeliveryChannel"}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.LFG(l.NgControlBuilderService),o.LFG(s.Xh),o.LFG(s.Ze),o.LFG(l.FormatterService))};static#t=this.\u0275prov=o.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();var ht=a(25465),Qt=a(74377),Un=a(64123),Yt=a(90633),Fn=a(26768),yt=a(59626),Bt=a(75986),li=a(16007),si=a(92596),oo=a(1431),_o=a(85219),Hn=a(74961),mo=a(6128),vn=a(36681),Ji=a(51793),wn=a(37012),po=a(12),Kn=a(38777),Vn=a(27416);function Wi(N,Lt){if(1&N&&(o.TgZ(0,"form",1)(1,"div",2)(2,"imx-grid")(3,"imx-grid-element",3),o._UZ(4,"imx-form-control",4),o.qZA(),o.TgZ(5,"imx-grid-element",3),o._UZ(6,"imx-form-control",4),o.qZA(),o.TgZ(7,"imx-grid-element",3),o._UZ(8,"imx-form-control",4),o.qZA(),o.TgZ(9,"imx-grid-element",3),o._UZ(10,"imx-form-control",4),o.qZA(),o.TgZ(11,"imx-grid-element",3),o._UZ(12,"imx-form-control",4),o.qZA(),o.Hsn(13),o.qZA()()()),2&N){const M=o.oxw();o.Q6J("formGroup",M.parentForm),o.xp6(3),o.Q6J("lg_w",6)("sm_w",12),o.xp6(),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("id"))("control",M.formHandler.formGroup.get("id"))("form",M.formHandler.formGroup.get("id"))("formHandler",M.formHandler)("config",M.formHandler.formConfiguration),o.xp6(),o.Q6J("lg_w",6)("sm_w",12),o.xp6(),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("name"))("control",M.formHandler.formGroup.get("name"))("form",M.formHandler.formGroup.get("name"))("formHandler",M.formHandler)("config",M.formHandler.formConfiguration),o.xp6(),o.Q6J("lg_w",6)("sm_w",12),o.xp6(),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("ownerClient"))("control",M.formHandler.formGroup.get("ownerClient"))("form",M.formHandler.formGroup.get("ownerClient"))("formHandler",M.formHandler)("config",M.formHandler.formConfiguration),o.xp6(),o.Q6J("lg_w",6)("sm_w",12),o.xp6(),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("grantedClients"))("control",M.formHandler.formGroup.get("grantedClients"))("form",M.formHandler.formGroup.get("grantedClients"))("formHandler",M.formHandler)("config",M.formHandler.formConfiguration),o.xp6(),o.Q6J("lg_w",6)("sm_w",12),o.xp6(),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("clientSubscriptions"))("control",M.formHandler.formGroup.get("clientSubscriptions"))("form",M.formHandler.formGroup.get("clientSubscriptions"))("formHandler",M.formHandler)("config",M.formHandler.formConfiguration)}}const Ft=["*"];let Oi=(()=>{class N extends l.AbstractFilterPanelComponent{constructor(){super(),this.id="MAIN_FILTER",this.titleKey="imxplatform.common-entity.filter.baseEntityFilter.header",this.icon="icon-cube",this.filterFields=["id","name","ownerClient","grantedClients","clientSubscriptions"]}static#e=this.\u0275fac=function(pe){return new(pe||N)};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-delivery-channel-filter-panel"]],hostAttrs:[1,"imx-delivery-channel-filter-panel"],features:[o._Bn([(0,l.provideParent)(N)]),o.qOj],ngContentSelectors:Ft,decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"filter__card"],[3,"lg_w","sm_w"],[3,"field","control","form","formHandler","config"]],template:function(pe,Ze){1&pe&&(o.F$t(),o.YNc(0,Wi,14,36,"form",0)),2&pe&&o.Q6J("ngIf",Ze.panelShown)},dependencies:[u.A,m.O5,b._Y,b.JL,b.sg,wn.M,po.V],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}"]})}return N})();function On(N,Lt){if(1&N&&o._UZ(0,"imx-delivery-channel-filter-panel",2,3),2&N){const M=o.oxw();o.Q6J("pinned",!0)("parentForm",M.formHandler.formGroup)("formHandler",M.formHandler)("record",M.record)}}let _n=(()=>{class N extends l.AbstractEntityFilterComponent{constructor(){super()}getEntityName(){return"DeliveryChannel"}static#e=this.\u0275fac=function(pe){return new(pe||N)};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-delivery-channel-filter"]],features:[o.qOj],decls:3,vars:7,consts:[[3,"entityName","filterPanelsTemplate","formHandler","record","orderFields","orderField","orderDirection","orderChanged","save"],["filterPanelsTemplate",""],[3,"pinned","parentForm","formHandler","record"],["filterPanel",""]],template:function(pe,Ze){if(1&pe&&(o.TgZ(0,"imx-filter",0),o.NdJ("orderChanged",function(Si){return Ze.orderChanged.emit(Si)})("save",function(Si){return Ze.applyFilter.emit(Si)}),o.YNc(1,On,2,4,"ng-template",null,1,o.W1O),o.qZA()),2&pe){const xn=o.MAs(2);o.Q6J("entityName","DeliveryChannel")("filterPanelsTemplate",xn)("formHandler",Ze.formHandler)("record",Ze.record)("orderFields",Ze.orderFields)("orderField",Ze.orderField)("orderDirection",Ze.orderDirection)}},dependencies:[Vn.z,Oi],encapsulation:2})}return N})();function st(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"imx-create-new-entity-button",15),o.NdJ("create",function(){o.CHM(M);const Ze=o.oxw();return o.KtG(Ze.createNewDeliveryChannel())}),o.qZA()}2&N&&o.Q6J("fireCreateEvent",!0)("entityResourceKeyPrefix","imxeventmanager.delivery-channel")}function Dn(N,Lt){1&N&&(o.TgZ(0,"imx-list-no-results"),o._uU(1,"imxeventmanager.delivery-channel.list.no-records"),o.qZA())}function Wt(N,Lt){1&N&&o._UZ(0,"mat-progress-bar",16)}function kn(N,Lt){if(1&N&&(o.TgZ(0,"th",23),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&N){const M=Lt.$implicit;o.Udp("width",M.width),o.Q6J("ngClass",M.cssClass),o.xp6(),o.hij(" ",o.lcZ(2,4,M.header)," ")}}function Fi(N,Lt){if(1&N&&(o.TgZ(0,"tr"),o.YNc(1,kn,3,6,"th",22),o.qZA()),2&N){const M=o.oxw(3);o.xp6(),o.Q6J("ngForOf",M.columnDefinitions)}}function ui(N,Lt){if(1&N){const M=o.EpF();o.ynx(0),o.TgZ(1,"a",32),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw().$implicit,xn=o.oxw(3);return o.KtG(xn.editDeliveryChannel(Ze))}),o._uU(2),o.qZA(),o.BQk()}if(2&N){const M=o.oxw().$implicit;o.xp6(2),o.hij(" ",M.id," ")}}function Fo(N,Lt){if(1&N&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&N){const M=o.oxw().$implicit;o.xp6(),o.Oqu(M.id)}}function At(N,Lt){if(1&N){const M=o.EpF();o.ynx(0),o.TgZ(1,"a",32),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw().$implicit,xn=o.oxw(3);return o.KtG(xn.editDeliveryChannel(Ze))}),o._uU(2),o.qZA(),o.BQk()}if(2&N){const M=o.oxw().$implicit;o.xp6(2),o.hij(" ",M.name," ")}}function Jn(N,Lt){if(1&N&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&N){const M=o.oxw().$implicit;o.xp6(),o.Oqu(M.name)}}function Bn(N,Lt){if(1&N){const M=o.EpF();o.ynx(0),o.TgZ(1,"a",32),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw().$implicit,xn=o.oxw(3);return o.KtG(xn.editDeliveryChannel(Ze))}),o._uU(2),o.qZA(),o.BQk()}if(2&N){const M=o.oxw().$implicit;o.xp6(2),o.hij(" ",M.ownerClient?M.ownerClient.name:""," ")}}function Bi(N,Lt){if(1&N&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&N){const M=o.oxw().$implicit;o.xp6(),o.Oqu(M.ownerClient?M.ownerClient.name:"")}}function $n(N,Lt){if(1&N){const M=o.EpF();o.ynx(0),o.TgZ(1,"a",32),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw().$implicit,xn=o.oxw(3);return o.KtG(xn.editDeliveryChannel(Ze))}),o._uU(2),o.qZA(),o.BQk()}if(2&N){const M=o.oxw().$implicit,pe=o.oxw(3);o.xp6(2),o.hij(" ",pe.renderGrantedClients(M)," ")}}function Ui(N,Lt){if(1&N&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&N){const M=o.oxw().$implicit,pe=o.oxw(3);o.xp6(),o.hij(" ",pe.renderGrantedClients(M),"")}}function Xo(N,Lt){if(1&N){const M=o.EpF();o.ynx(0),o.TgZ(1,"a",33),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw().$implicit,xn=o.oxw(3);return o.KtG(xn.editDeliveryChannel(Ze))})("mouseenter",function(Ze){o.CHM(M),o.oxw();const xn=o.MAs(24);return o.KtG(xn.show(Ze))})("mouseleave",function(){o.CHM(M),o.oxw();const Ze=o.MAs(24);return o.KtG(Ze.hide())}),o.TgZ(2,"span",34),o._uU(3),o.qZA()(),o.BQk()}if(2&N){const M=o.oxw().$implicit;o.xp6(3),o.Oqu(M.clientSubscriptionNames?M.clientSubscriptionNames:"")}}function bt(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"div",35),o.NdJ("mouseenter",function(Ze){o.CHM(M),o.oxw();const xn=o.MAs(24);return o.KtG(xn.show(Ze))})("mouseleave",function(){o.CHM(M),o.oxw();const Ze=o.MAs(24);return o.KtG(Ze.hide())}),o.TgZ(1,"span",34),o._uU(2),o.qZA()()}if(2&N){const M=o.oxw().$implicit;o.xp6(2),o.Oqu(M.clientSubscriptionNames?M.clientSubscriptionNames:"")}}function an(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"imx-action-menu-item",39),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw(2).$implicit,xn=o.oxw(3);return o.KtG(xn.editDeliveryChannel(Ze))}),o._uU(1,"imxplatform.common-entity.list.edit "),o.qZA()}}function Wn(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"imx-action-menu-item",40),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw(2).$implicit,xn=o.oxw(3);return o.KtG(xn.removeDeliveryChannel(Ze))}),o._uU(1," imxplatform.common-entity.list.remove "),o.qZA()}}function eo(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"imx-action-menu-item",41),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw(2).$implicit,xn=o.oxw(3);return o.KtG(xn.editDeliveryChannelConfig(Ze))}),o._uU(1," imxeventmanager.delivery-channel.list.edit-delivery-channel-config "),o.qZA()}}function _r(N,Lt){if(1&N&&(o.TgZ(0,"imx-dropup-button")(1,"imx-action-menu"),o.YNc(2,an,2,0,"imx-action-menu-item",36)(3,Wn,2,0,"imx-action-menu-item",37)(4,eo,2,0,"imx-action-menu-item",38),o.qZA()()),2&N){const M=o.oxw(4);o.xp6(2),o.Q6J("ngIf",M.hasEditPermission),o.xp6(),o.Q6J("ngIf",M.hasDeletePermission),o.xp6(),o.Q6J("ngIf",M.hasDeliveryChannelMethod&&M.hasEditPermission)}}const hr=N=>({selected:N});function In(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"tr",24)(1,"td",25)(2,"mat-checkbox",26),o.NdJ("change",function(Ze){o.CHM(M);const xn=o.oxw(3);return o.KtG(xn.onSelectionChanged(Ze))}),o.qZA()(),o.TgZ(3,"td"),o.YNc(4,ui,3,1,"ng-container",18)(5,Fo,2,1,"ng-template",null,27,o.W1O),o.qZA(),o.TgZ(7,"td",28),o.YNc(8,At,3,1,"ng-container",18)(9,Jn,2,1,"ng-template",null,27,o.W1O),o.qZA(),o.TgZ(11,"td",28),o.YNc(12,Bn,3,1,"ng-container",18)(13,Bi,2,1,"ng-template",null,27,o.W1O),o.qZA(),o.TgZ(15,"td",28),o.YNc(16,$n,3,1,"ng-container",18)(17,Ui,2,1,"ng-template",null,27,o.W1O),o.qZA(),o.TgZ(19,"td"),o.YNc(20,Xo,4,1,"ng-container",18)(21,bt,3,1,"ng-template",null,27,o.W1O),o.TgZ(23,"imx-tooltip-extended",29,30)(25,"div"),o._uU(26),o.qZA()()(),o.TgZ(27,"td"),o.YNc(28,_r,5,3,"imx-dropup-button",31),o.qZA()()}if(2&N){const M=Lt.$implicit,pe=o.MAs(6),Ze=o.oxw(3);o.Q6J("ngClass",o.VKq(22,hr,Ze.isItemSelected(M.id))),o.xp6(2),o.Q6J("value",M.id)("checked",Ze.isItemSelected(M.id)),o.xp6(2),o.Q6J("ngIf",Ze.hasEditPermission)("ngIfElse",pe),o.xp6(3),o.Q6J("matTooltip",M.name)("matTooltipShowDelay",500),o.xp6(),o.Q6J("ngIf",Ze.hasEditPermission)("ngIfElse",pe),o.xp6(3),o.Q6J("matTooltip",M.ownerClient?M.ownerClient.name:"")("matTooltipShowDelay",500),o.xp6(),o.Q6J("ngIf",Ze.hasEditPermission)("ngIfElse",pe),o.xp6(3),o.Q6J("matTooltip",Ze.renderGrantedClients(M))("matTooltipShowDelay",500),o.xp6(),o.Q6J("ngIf",Ze.hasEditPermission)("ngIfElse",pe),o.xp6(4),o.Q6J("ngIf",Ze.hasEditPermission)("ngIfElse",pe),o.xp6(3),o.Q6J("large",!0),o.xp6(3),o.Oqu(M.clientSubscriptionNames),o.xp6(2),o.Q6J("ngIf",Ze.hasEditPermission||Ze.hasDeletePermission||Ze.hasDeliveryChannelMethod)}}function Wr(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"p-table",19),o.YNc(2,Fi,2,1,"ng-template",20)(3,In,29,24,"ng-template",21),o.qZA(),o.BQk()),2&N){const M=o.oxw().ngIf;o.xp6(),o.Q6J("value",M.items)("resizableColumns",!0)}}function qi(N,Lt){if(1&N&&(o.TgZ(0,"div",17),o.YNc(1,Wr,4,2,"ng-container",18),o.qZA()),2&N){const M=Lt.ngIf;o.oxw();const pe=o.MAs(8);o.xp6(),o.Q6J("ngIf",M.items.length>0)("ngIfElse",pe)}}function wi(N,Lt){if(1&N&&(o.TgZ(0,"span"),o._uU(1),o.ALo(2,"translate"),o.TgZ(3,"span",42),o._uU(4),o.qZA()(),o._UZ(5,"span",43)),2&N){const M=o.oxw();o.xp6(),o.hij("",o.lcZ(2,2,"imxplatform.common-entity.list.selected-items")," "),o.xp6(3),o.hij("(",null==M.selectedIds?null:M.selectedIds.size,")")}}const zo="DeliveryChannel";let xi=(()=>{class N extends l.AbstractSimpleEntitySearchPage{constructor(M,pe,Ze,xn,Si,Ga,xs,vs,bl,Ll,Tc,xc,fu,Nd,gu,pp,Mp,_p,Ng){super(M,pe,Ze,Si,Ga,xs,vs,bl,Ll,Tc,xc,void 0,Nd,fu,{moduleName:l.CORE_MODULE_KEY,entityName:zo,pageSize:1e3}),this.translateService=Nd,this.deliveryChannelFormHandlerService=gu,this.deliveryChannelConfigFormHandlerService=pp,this.imxSecurityManagerService=Mp,this.eventmanagerDataAccessService=_p,this.configurationProvider=Ng,this.permissions=l.ImxPermissions,this.availableOrderFields=[{index:1,field:"name",i18n:"entity.DeliveryChannel.name",type:l.OrderType.alphanumeric},{index:2,field:"id",i18n:"entity.DataObject.id",type:l.OrderType.numeric},{index:2,field:"ownerClient",i18n:"entity.DeliveryChannel.ownerClient",type:l.OrderType.alphanumeric}],this.orderField="name",this.columnDefinitions=[{field:"checkbox",header:"",width:"40px"},{field:"id",header:"ID",width:"70px"},{field:"name",header:"entity.DeliveryChannel.name",width:"20%"},{field:"ownerClient",header:"entity.DeliveryChannel.ownerClient",width:"20%"},{field:"grantedClients",header:"entity.DeliveryChannel.grantedClients",width:"40%"},{field:"clientSubscriptions",header:"entity.DeliveryChannelConfig.clientSubscriptions",width:"20%"},{field:"action",header:"",width:"5%"}]}ngOnInit(){super.ngOnInit(),this.hasEditPermission=this.imxSecurityManagerService.hasPermission(l.ImxPermissions.F_DELIVERYCHANNEL_MANAGEMENT_UPDATE),this.hasDeletePermission=this.imxSecurityManagerService.hasPermission(l.ImxPermissions.F_DELIVERYCHANNEL_MANAGEMENT_DELETE),this.configurationProvider.getString(co.c.IMXEVENTMANAGER_DELIVERY_METHOD).subscribe(M=>this.hasDeliveryChannelMethod=M===co.c.DELIVERYCHANNEL_METHOD)}getEntityName(){return zo}getFilterPredicates(){return[(0,l.filterById)("id"),(0,l.filterByName)(),(0,l.filterByPath)("ownerClient","ownerClient.id"),(0,l.filterByArrayValue)("grantedClients","id",!0),(0,l.filterByPathContainingArray)("clientSubscriptions","clientSubscriptionIds")]}getSortPredicates(){return(new Map).set("ownerClient",l.sortDeliveryChannelByOwnerClientFunction)}createNewDeliveryChannel(){this.createNewEntity(zo,this.deliveryChannelFormHandlerService,En)}editDeliveryChannel(M){super.editEntity(M,zo,this.deliveryChannelFormHandlerService,En)}removeDeliveryChannel(M){super.removeEntity(M,zo)}removeDeliveryChannelByIds(){if(0===this.selectedIds.size)this.userMessageService.showInfo("imxplatform.common-entity.list.action.none-selected");else{const M=Array.from(this.selectedIds);this.dialog.open(l.DeleteDialogComponent,{maxWidth:470,data:{batch:!0,i18n:"imxplatform.base-entity.list.action.delete.confirm-batch",count:M.length}}).afterClosed().subscribe(Ze=>{if(Ze){const xn=[];M.forEach(Si=>xn.push(this.entitiesMgrService.deleteEntityOfType(this.getEntityName(),Si))),(0,i.aj)(xn).subscribe(Si=>{this.resetSelection(),this.reloadRecords(),this.userMessageService.showInfo("imxplatform.base-entity.list.dialog-delete-batch.success",M.length)},Si=>{(0,s.Ec)(Si)&&Si.exceptionKey===s.Uf.PF_DATABASE_CONSTRAINT?this.userMessageService.showError("imxplatform.base-entity.list.dialog-delete.constraint-failure",{entityName:this.translateService.instant("entity."+this.filter.entityName+".entityName")}):this.userMessageService.showError(Si||"imxplatform.base-entity.list.dialog-delete-batch.failure")})}})}}editDeliveryChannelConfig(M){this.eventmanagerDataAccessService.getDeliveryChannelConfig(M.id).subscribe(pe=>{let Ze=!1;void 0===pe&&(Ze=!0,pe={deliveryChannel:M,id:M.id,clientSubscriptions:[]}),this.deliveryChannelConfigFormHandlerService.baseObject=pe,this.dialog.open(nn,{...l.DialogDefaultSizes.FORM_BIG,data:{mode:Ze?"NEW":"EDIT",formRow:this.deliveryChannelConfigFormHandlerService.formGroup,formHandler:this.deliveryChannelConfigFormHandlerService,record:pe}}).afterClosed().subscribe(xn=>{if(xn)if(Ze){const Si=this.deliveryChannelConfigFormHandlerService.getBaseObjectCopyWithCurrentFormValues();Si.id=null,this.eventmanagerDataAccessService.addDeliveryChannelConfig(Si).subscribe(()=>{this.userMessageService.showInfo("imxeventmanager.delivery-channel.delivery-channel-config-dialog.create.success")},Ga=>{this.userMessageService.showError(Ga||"imxeventmanager.delivery-channel.delivery-channel-config-dialog.create.failure")})}else{const Si=this.deliveryChannelConfigFormHandlerService.getBaseObjectCopyWithCurrentFormValues(),Ga=this.deliveryChannelConfigFormHandlerService.formGroup.get("activateChanges").value,xs=this.deliveryChannelConfigFormHandlerService.formGroup.get("applyChangesToRemovedSubscriptClients").value;this.eventmanagerDataAccessService.updateDeliveryChannelConfig(Si,xs).subscribe(vs=>{Ga?(this.eventmanagerDataAccessService.activateDeliveryChannelConfig(vs).subscribe(()=>{this.userMessageService.showInfo("imxeventmanager.delivery-channel.delivery-channel-config-dialog.activate.success")},bl=>{this.userMessageService.showError(bl||"imxeventmanager.delivery-channel.delivery-channel-config-dialog.activate.failure")}),this.userMessageService.showInfo("imxeventmanager.delivery-channel.delivery-channel-config-dialog.edit.success-with-apply-changes",null,5e3)):this.userMessageService.showInfo("imxeventmanager.delivery-channel.delivery-channel-config-dialog.edit.success")},vs=>{this.userMessageService.showError(vs||"imxeventmanager.delivery-channel.delivery-channel-config-dialog.edit.failure")})}})})}renderGrantedClients(M){return M.grantedClients.map(pe=>pe.name).sort((pe,Ze)=>pe.localeCompare(Ze)).join(", ")}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(ln.U),o.Y36(n.F0),o.Y36(n.gz),o.Y36(s.Yz),o.Y36(l.UserMessageService),o.Y36(l.ListHistoryService),o.Y36(t.uw),o.Y36(Ve),o.Y36(l.ImxPlatformDataAccessService),o.Y36(l.PlatformTrackingService),o.Y36(l.SearchPageDefaultsService),o.Y36(l.ImxEntitiesMgrService),o.Y36(l.ActionProviderService),o.Y36(I.sK),o.Y36(tt),o.Y36(rt),o.Y36(s.Xh),o.Y36(yn.b),o.Y36(l.ConfigurationProvider))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["ng-component"]],features:[o.qOj],decls:20,vars:19,consts:[[1,"base-entity-search","list"],[3,"formHandler","record","orderFields","orderField","orderDirection","orderChanged","applyFilter","resetFilter"],[3,"totalNumber","entityResourceKeyPrefix","showCompactToggle","reload"],["list-header-button-row",""],[3,"fireCreateEvent","entityResourceKeyPrefix","create",4,"hasAnyPermission"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],["class","table-wrapper",4,"ngIf","ngIfElse"],[3,"disableAllSelection","paging","selection","disablePaging","pageChanged","selectAll"],["position","above","halign","start"],["imx-dropup-trigger",""],[3,"actions","executeAction"],["search-list-action-menu-middle",""],["additionalStyle","delete",3,"icon","actionClicked"],[3,"fireCreateEvent","entityResourceKeyPrefix","create"],["mode","indeterminate"],[1,"table-wrapper"],[4,"ngIf","ngIfElse"],[1,"imx-datatable",3,"value","resizableColumns"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",3,"ngClass"],[3,"ngClass"],[1,"select-column"],[3,"value","checked","change"],["noPerm",""],[3,"matTooltip","matTooltipShowDelay"],[3,"large"],["clientSubscriptionNamesTooltip",""],[4,"ngIf"],[1,"txt-link",3,"click"],[1,"txt-link",3,"click","mouseenter","mouseleave"],[1,"client_subscription_names"],[1,"txt-link",3,"mouseenter","mouseleave"],["icon","icon-pencil",3,"click",4,"ngIf"],["icon","icon-trash","additionalStyle","delete",3,"click",4,"ngIf"],["icon","icon-earth",3,"click",4,"ngIf"],["icon","icon-pencil",3,"click"],["icon","icon-trash","additionalStyle","delete",3,"click"],["icon","icon-earth",3,"click"],[1,"selected-size"],[1,"icon-chevron-down"]],template:function(pe,Ze){if(1&pe&&(o.TgZ(0,"div",0)(1,"imx-delivery-channel-filter",1),o.NdJ("orderChanged",function(Si){return Ze.sort(Si)})("applyFilter",function(Si){return Ze.search(Si)})("resetFilter",function(){return Ze.reset()}),o.qZA(),o.TgZ(2,"imx-list-header",2),o.NdJ("reload",function(){return Ze.reloadComplete()}),o.ynx(3,3),o.YNc(4,st,1,2,"imx-create-new-entity-button",4),o.BQk(),o.qZA(),o.TgZ(5,"imx-grid")(6,"imx-grid-element",5),o.YNc(7,Dn,2,0,"ng-template",null,6,o.W1O)(9,Wt,1,0,"ng-template",null,7,o.W1O)(11,qi,2,2,"div",8),o.ALo(12,"async"),o.qZA()(),o.TgZ(13,"imx-list-footer",9),o.NdJ("pageChanged",function(Si){return Ze.onPageChanged(Si)})("selectAll",function(Si){return Ze.onSelectAll(Si)}),o.TgZ(14,"imx-dropup-button",10),o.YNc(15,wi,6,4,"ng-template",11),o.TgZ(16,"imx-search-list-action-menu",12),o.NdJ("executeAction",function(Si){return Ze.executeBatchAction(Si)}),o.ynx(17,13),o.TgZ(18,"imx-action-menu-item",14),o.NdJ("actionClicked",function(){return Ze.removeDeliveryChannelByIds()}),o._uU(19," imxplatform.common-entity.list.remove "),o.qZA(),o.BQk(),o.qZA()()()()),2&pe){const xn=o.MAs(10);o.xp6(),o.Q6J("formHandler",Ze.filterFormHandler)("record",Ze.filter)("orderFields",Ze.availableOrderFields)("orderField",Ze.orderField)("orderDirection",Ze.orderDirection),o.xp6(),o.Q6J("totalNumber",null==Ze.currentResult?null:Ze.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxeventmanager.delivery-channel")("showCompactToggle",!1),o.xp6(2),o.Q6J("hasAnyPermission",Ze.permissions.F_DELIVERYCHANNEL_MANAGEMENT_CREATE.name),o.xp6(7),o.Q6J("ngIf",o.lcZ(12,17,Ze.results))("ngIfElse",xn),o.xp6(2),o.Q6J("disableAllSelection",!1)("paging",Ze.pagingModel)("selection",Ze.selectionModel)("disablePaging",!0),o.xp6(3),o.Q6J("actions",null==Ze.actionProvider?null:Ze.actionProvider.getBatchActionsForType(Ze.getEntityName())),o.xp6(2),o.Q6J("icon","icon-trash")}},dependencies:[ht.$,Qt.N,Un._,Yt.A,Fn.E,yt.R,ee.F,m.mk,m.sg,m.O5,Bt.oG,li.pW,si.gM,oo.iA,_o.jx,oo.Q7,Hn.p,mo.z,vn.t,Ji.F,wn.M,po.V,Kn.j,_n,m.Ov,I.X$],styles:[".imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.base-entity-search[_ngcontent-%COMP%]{padding-bottom:50px;padding-top:50px}.base-entity-search[_ngcontent-%COMP%]   .icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.base-entity-search[_ngcontent-%COMP%]   .selected-size[_ngcontent-%COMP%]{color:#3e3e3e}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}[_nghost-%COMP%]     .imx-datatable tr, [_nghost-%COMP%]     .imx-datatable td{text-overflow:unset!important;white-space:unset!important}.client_subscription_names[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;overflow:hidden}"]})}return N})();var ki=a(17301),wo=a(79309),Ei=a(91226),ho=a(49193),Cr=a(62413),vr=a(3959),qr=a(97564),Ra=a(50054),ss=a(47378),Hs=a(84961);const ms=N=>({poi:N,noPoiTxt:"imxeventmanager.event.edit.panels.address.no-location"});function ja(N,Lt){if(1&N&&o.GkF(0,12),2&N){const M=Lt.ngIf,pe=o.oxw(2);o.Q6J("imxSlotComponent",pe.imxEventmanagerSlots.EVENT_ADDRESS_POI_OVERVIEW_SLOT)("inputs",o.VKq(2,ms,M))}}function el(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"button",21),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw(4);return o.KtG(Ze.createEventLocation())}),o._uU(1," imxeventmanager.event.edit.panels.address.create-location "),o.qZA()}}function Vs(N,Lt){if(1&N&&(o.ynx(0),o.YNc(1,el,2,0,"button",20),o.BQk()),2&N){const M=o.oxw(3);o.xp6(),o.Q6J("hasFieldWritePermission","location")("hasFieldWritePermissionFormHandler",M.formHandler)}}function ls(N,Lt){if(1&N){const M=o.EpF();o.ynx(0),o.TgZ(1,"span",2),o._uU(2,"imxeventmanager.event.edit.panels.address.search-event-location"),o.qZA(),o.TgZ(3,"div",13)(4,"imx-base-autocomplete",14,15),o.NdJ("enterPressed",function(){o.CHM(M);const Ze=o.MAs(7);return o.KtG(Ze.focus())}),o.qZA(),o.TgZ(6,"button",16,17),o.NdJ("click",function(){o.CHM(M);const Ze=o.MAs(5);return o.oxw(2).changeEventLocation(Ze.getSelectedId()),o.KtG(Ze.writeValue(void 0))}),o._uU(8," imxeventmanager.event.edit.panels.address.accept "),o.qZA()(),o.TgZ(9,"div",18),o.YNc(10,Vs,2,2,"ng-container",19),o.ALo(11,"async"),o.qZA(),o.BQk()}if(2&N){const M=o.MAs(5),pe=o.oxw(2);o.xp6(4),o.Q6J("autocompleteService",pe.addressPoiLocationAutocompleteService)("panelWidth",750),o.xp6(2),o.Q6J("disabled",!M.getSelectedId()),o.xp6(4),o.Q6J("ngIf",o.lcZ(11,4,pe.newLocationCreationAllowed$))}}function Fa(N,Lt){if(1&N&&(o.TgZ(0,"div",8),o._UZ(1,"imx-label-lockable",9),o.YNc(2,ja,1,4,"ng-container",10),o.ALo(3,"async"),o.YNc(4,ls,12,6,"ng-container",11),o.qZA()),2&N){const M=o.oxw(),pe=o.MAs(9);o.xp6(),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("location"))("formHandler",M.formHandler)("form",M.formHandler.formGroup)("renderBig",!0),o.xp6(),o.Q6J("ngIf",o.lcZ(3,8,M.locationPoi$))("ngIfElse",pe),o.xp6(2),o.Q6J("hasFieldWritePermission","location")("hasFieldWritePermissionFormHandler",M.formHandler)}}const dl=N=>({noPoiTxt:"imxeventmanager.event.edit.panels.address.no-contributor",poi:N});function ka(N,Lt){if(1&N&&(o.GkF(0,12),o.ALo(1,"async")),2&N){const M=o.oxw(2);o.Q6J("imxSlotComponent",M.imxEventmanagerSlots.EVENT_ADDRESS_POI_OVERVIEW_SLOT)("inputs",o.VKq(4,dl,o.lcZ(1,2,M.contributorPoi$)))}}function hs(N,Lt){if(1&N){const M=o.EpF();o.ynx(0),o.TgZ(1,"span",2),o._uU(2,"imxeventmanager.event.edit.panels.address.search-event-contributor"),o.qZA(),o.TgZ(3,"div",13)(4,"imx-base-autocomplete",14,22),o.NdJ("enterPressed",function(){o.CHM(M);const Ze=o.MAs(7);return o.KtG(Ze.focus())}),o.qZA(),o.TgZ(6,"button",16,23),o.NdJ("click",function(){o.CHM(M);const Ze=o.MAs(5);return o.oxw(2).changeEventContributor(Ze.getSelectedId()),o.KtG(Ze.writeValue(void 0))}),o._uU(8," imxeventmanager.event.edit.panels.address.accept "),o.qZA()(),o.BQk()}if(2&N){const M=o.MAs(5),pe=o.oxw(2);o.xp6(4),o.Q6J("autocompleteService",pe.addressPoiContributorAutocompleteService)("panelWidth",750),o.xp6(2),o.Q6J("disabled",!M.getSelectedId())}}function Ua(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"button",21),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw(3);return o.KtG(Ze.createEventContributor())}),o._uU(1,"imxeventmanager.event.edit.panels.address.create-contributor "),o.qZA()}}function Tn(N,Lt){if(1&N&&(o.ynx(0),o.YNc(1,Ua,2,0,"button",20),o.BQk()),2&N){const M=o.oxw(2);o.xp6(),o.Q6J("hasFieldWritePermission","contributor")("hasFieldWritePermissionFormHandler",M.formHandler)}}function Qi(N,Lt){if(1&N&&(o.TgZ(0,"div",8),o._UZ(1,"imx-label-lockable",9),o.YNc(2,ka,2,6,"ng-container",10),o.ALo(3,"async"),o.YNc(4,hs,9,3,"ng-container",11),o.TgZ(5,"div",18),o.YNc(6,Tn,2,2,"ng-container",19),o.ALo(7,"async"),o.qZA()()),2&N){const M=o.oxw(),pe=o.MAs(9);o.xp6(),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("contributor"))("formHandler",M.formHandler)("form",M.formHandler.formGroup)("renderBig",!0),o.xp6(),o.Q6J("ngIf",o.lcZ(3,9,M.contributorPoi$))("ngIfElse",pe),o.xp6(2),o.Q6J("hasFieldWritePermission","contributor")("hasFieldWritePermissionFormHandler",M.formHandler),o.xp6(2),o.Q6J("ngIf",o.lcZ(7,11,M.newContributorCreationAllowed$))}}function To(N,Lt){1&N&&o.GkF(0)}function sr(N,Lt){1&N&&o.GkF(0)}function oi(N,Lt){1&N&&o.GkF(0)}const Vi=()=>({$implicit:"contact.name"}),Ti=()=>({$implicit:"contact.phone"}),Hi=()=>({$implicit:"contact.email"});function Do(N,Lt){if(1&N&&(o.TgZ(0,"div",3)(1,"div",8)(2,"h3",2),o._uU(3,"imxeventmanager.event.edit.panels.address.contact-data"),o.qZA(),o.TgZ(4,"div",24)(5,"div",25),o.YNc(6,To,1,0,"ng-container",26)(7,sr,1,0,"ng-container",26)(8,oi,1,0,"ng-container",26),o.qZA()()()()),2&N){o.oxw();const M=o.MAs(11);o.xp6(6),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(6,Vi)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(7,Ti)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(8,Hi))}}function $o(N,Lt){1&N&&o._UZ(0,"div",27)}function yr(N,Lt){if(1&N&&o._UZ(0,"imx-form-control",28),2&N){const M=Lt.$implicit,pe=o.oxw();o.Q6J("field",pe.formHandler.formConfiguration.findFormFieldById(M))("control",pe.formHandler.formGroup.get(M))("form",pe.formHandler.formGroup)("formHandler",pe.formHandler)("config",pe.formHandler.formConfiguration)}}const Vr=new o.OlP("imxeventmanager.address.creation.voter");let da=(()=>{class N extends l.AbstractCoreDataObjectFormPanelComponent{constructor(M,pe,Ze,xn,Si,Ga,xs,vs){super(M,pe),this.entitiesMgr=M,this.dialog=pe,this.dataAccessService=Ze,this.eventmanagerDataAccessService=xn,this.addressPoiContributorAutocompleteService=Si,this.addressPoiLocationAutocompleteService=Ga,this.changeDetectorRef=xs,this.addressCreationVoterService=vs,this.imxEventmanagerSlots=vr.tw}ngOnInit(){this.formHandler.formGroup.controls.location&&(this.initLocationAddressPoi(this.formHandler.formGroup.controls.location.value),this.formHandler.formGroup.controls.location.valueChanges.subscribe(pe=>this.initLocationAddressPoi(pe))),this.formHandler.formGroup.controls.contributor&&(this.initContributorAddressPoi(this.formHandler.formGroup.controls.contributor.value),this.formHandler.formGroup.controls.contributor.valueChanges.subscribe(pe=>this.initContributorAddressPoi(pe))),this.newLocationCreationAllowed$=this.eventmanagerDataAccessService.determineLocationType().pipe((0,rn.U)(M=>"AddressPoi"===M||this.addressCreationVoterService&&this.addressCreationVoterService.allowEventLocationCreation())),this.newContributorCreationAllowed$=this.eventmanagerDataAccessService.determineContributorType().pipe((0,rn.U)(M=>"AddressPoi"===M||this.addressCreationVoterService&&this.addressCreationVoterService.allowEventContributorCreation()))}changeEventLocation(M){this.formHandler.formGroup.controls.location.setValue(M),this.formHandler.formGroup.controls.location.markAsDirty()}changeEventContributor(M){this.formHandler.formGroup.controls.contributor.setValue(M),this.formHandler.formGroup.controls.contributor.markAsDirty()}resetEventLocation(){this.formHandler.formGroup.controls.location.setValue(void 0),this.formHandler.formGroup.controls.location.markAsDirty(),this.locationPoi$=Ei.E}resetEventContributor(){this.formHandler.formGroup.controls.contributor.setValue(void 0),this.formHandler.formGroup.controls.contributor.markAsDirty(),this.contributorPoi$=Ei.E}createEventLocation(){this.addressCreationVoterService?this.addressCreationVoterService.createEventLocation(this.formHandler,this.changeDetectorRef):this.dialog.open(l.AddressPoiCreateDialogComponent,{...l.DialogDefaultSizes.FORM_MEDIUM,data:{addressPoiType:wo.pv,title:"imxeventmanager.event.edit.panels.address.new-event-location",client:this.formHandler.formGroup.controls.client.value}}).afterClosed().subscribe(M=>{M&&(this.formHandler.formGroup.get("location").setValue(M.addressPoi.id),this.formHandler.formGroup.get("location").markAsDirty(),M.addAsContributor&&(this.formHandler.formGroup.get("contributor").setValue(M.addressPoi.id),this.formHandler.formGroup.get("contributor").markAsDirty()),this.changeDetectorRef.markForCheck())})}createEventContributor(){this.addressCreationVoterService?this.addressCreationVoterService.createEventContributor(this.formHandler,this.changeDetectorRef):this.dialog.open(l.AddressPoiCreateDialogComponent,{maxWidth:650,data:{addressPoiType:wo.GZ,title:"imxeventmanager.event.edit.panels.address.new-event-contributor",client:this.formHandler.formGroup.controls.client.value}}).afterClosed().subscribe(M=>{M&&(this.formHandler.formGroup.get("contributor").setValue(M.addressPoi.id),this.formHandler.formGroup.get("contributor").markAsDirty(),M.addAsLocation&&(this.formHandler.formGroup.get("location").setValue(M.addressPoi.id),this.formHandler.formGroup.get("location").markAsDirty()),this.changeDetectorRef.markForCheck())})}showEventContactData(){return this.formHandler.formGroup.get("eventUser")&&this.formHandler.formGroup.get("eventUser").value||this.formHandler.isEventContactDataEnabled()}initLocationAddressPoi(M){Number.isInteger(M)&&(this.locationPoi$=this.dataAccessService.getAddressPoiById(M).pipe((0,Cr.K)(pe=>401===pe.status?(0,ho.of)(Object.assign(this.record.location,{permissionDenied:!0})):Ei.E)))}initContributorAddressPoi(M){Number.isInteger(M)&&(this.contributorPoi$=this.dataAccessService.getAddressPoiById(M).pipe((0,Cr.K)(pe=>401===pe.status?(0,ho.of)(Object.assign(this.record.contributor,{permissionDenied:!0})):Ei.E)))}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(l.ImxEntitiesMgrService),o.Y36(t.uw),o.Y36(l.ImxPlatformDataAccessService),o.Y36(yn.b),o.Y36(l.AddressPoiContributorAutocompleteService),o.Y36(l.AddressPoiLocationAutocompleteService),o.Y36(o.sBO),o.Y36(Vr,8))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-event-address-data-form-panel"]],features:[o.qOj],decls:12,vars:6,consts:[[1,"form__content-panel","address"],["id","address",1,"anchor"],["translate",""],[1,"form__content-row"],["class","form__content-group",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],["class","form__content-row",4,"ngIf"],["invalidAddressPoi",""],["imxControl",""],[1,"form__content-group"],[3,"field","formHandler","form","renderBig"],[3,"imxSlotComponent","inputs",4,"ngIf","ngIfElse"],[4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[3,"imxSlotComponent","inputs"],[1,"autosuggest-row"],[3,"autocompleteService","panelWidth","enterPressed"],["locationAutocompleteControl",""],["translate","",1,"imx-button","prio2",3,"disabled","click"],["locationButton",""],[1,"button-row"],[4,"ngIf"],["class","imx-button prio2","translate","",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],["translate","",1,"imx-button","prio2",3,"click"],["contributorAutocompleteControl",""],["contributorButton",""],[1,"form__content-field-row"],[1,"form__content-field-column"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"addresspoi-overview","ng-invalid"],[3,"field","control","form","formHandler","config"]],template:function(pe,Ze){1&pe&&(o.TgZ(0,"div",0),o._UZ(1,"div",1),o.TgZ(2,"h2",2),o._uU(3,"imxeventmanager.event.edit.panels.address.title"),o.qZA(),o.TgZ(4,"div",3),o.YNc(5,Fa,5,10,"div",4)(6,Qi,8,13,"div",4),o.qZA(),o.YNc(7,Do,9,9,"div",5),o.qZA(),o.YNc(8,$o,1,0,"ng-template",null,6,o.W1O)(10,yr,1,5,"ng-template",null,7,o.W1O)),2&pe&&(o.xp6(),o.uIk("data-scroll-id","address"),o.xp6(4),o.Q6J("hasFieldReadPermission","location")("hasFieldReadPermissionFormHandler",Ze.formHandler),o.xp6(),o.Q6J("hasFieldReadPermission","contributor")("hasFieldReadPermissionFormHandler",Ze.formHandler),o.xp6(),o.Q6J("ngIf",Ze.showEventContactData()))},dependencies:[qr.h,u.A,Ra.m,ki.j,ss.X,Hs.g,m.O5,m.tP,I.Pi,m.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.addresspoi-overview[_ngcontent-%COMP%]{background:#fff;color:#0a2663;margin-top:5px;margin-bottom:10px;padding:10px;border:1px solid #ced4e0;min-height:300px}.addresspoi-overview.ng-invalid[_ngcontent-%COMP%]{border:1px solid #96172e;min-height:100px}.addresspoi-overview[_ngcontent-%COMP%]   .addresspoi-field[_ngcontent-%COMP%]{margin-bottom:5px}.addresspoi-overview[_ngcontent-%COMP%]   .addresspoi-field[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:block}.addresspoi-overview[_ngcontent-%COMP%]   .addresspoi-field[_ngcontent-%COMP%]   span.label[_ngcontent-%COMP%], .addresspoi-overview[_ngcontent-%COMP%]   .addresspoi-field[_ngcontent-%COMP%]   .addresspoi-id[_ngcontent-%COMP%]{font-size:12px}.addresspoi-overview[_ngcontent-%COMP%]   .addresspoi-field[_ngcontent-%COMP%]   span.value[_ngcontent-%COMP%]{min-height:12px}.addresspoi-overview[_ngcontent-%COMP%]   .addresspoi-field[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.addresspoi-overview[_ngcontent-%COMP%]   .addresspoi-title[_ngcontent-%COMP%]{margin-bottom:10px;text-align:center}.autosuggest-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start}.autosuggest-row[_ngcontent-%COMP%] > imx-base-autocomplete[_ngcontent-%COMP%]{flex-grow:1}.autosuggest-row[_ngcontent-%COMP%] > .imx-button[_ngcontent-%COMP%]{margin-left:10px;height:28px!important;padding-top:0;padding-bottom:0}.ty[_ngcontent-%COMP%]{display:none}@media (max-width: 900px){.ty[_ngcontent-%COMP%]{display:block}}.button-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.button-row[_ngcontent-%COMP%] > .imx-button[_ngcontent-%COMP%]{margin-left:0;margin-top:10px}"]})}return N})();var Za=a(75222),ma=a(19352),Wa=a(97734),Yi=a(4938),jo=a(30555),Cn=a(58139),uo=a(5490),fo=a(93495),Jo=a(6413),kr=a(53256),Qr=a(36116),Aa=a(22201),cs=a(72079),ys=a(49257),zr=a(64143),Pi=a(34446),xo=a(1931);function lr(N,Lt){if(1&N&&(o.ynx(0),o._UZ(1,"imx-tree-shuffle",5),o.BQk()),2&N){const M=o.oxw(2);o.xp6(),o.Q6J("treeOptionProvider",M.eventCategoryTreeOptionProviderService)("displayNodeFn",M.eventCategoryTreeOptionProviderService.displayNodesFn)("sortNodesFn",M.eventCategoryTreeOptionProviderService.sortNodesFn)("sortRootNodesFn",M.eventCategoryTreeOptionProviderService.sortRootNodesFn)("control",M.formHandler.formGroup.get("categories"))("formHandler",M.formHandler)("field",M.formHandler.formConfiguration.findFormFieldById("categories"))}}function Ir(N,Lt){if(1&N&&o._UZ(0,"imx-list-shuffle",6),2&N){const M=o.oxw(2);o.Q6J("optionProvider",M.eventCategoryOptionProviderService)("sortNodesFn",M.eventCategoryOptionProviderService.sortOptionsFn)("control",M.formHandler.formGroup.get("categories"))("formHandler",M.formHandler)("field",M.formHandler.formConfiguration.findFormFieldById("categories"))}}function Da(N,Lt){if(1&N&&(o.TgZ(0,"div",1)(1,"div",2),o.YNc(2,lr,2,7,"ng-container",3),o.ALo(3,"async"),o.YNc(4,Ir,1,5,"ng-template",null,4,o.W1O),o.qZA()()),2&N){const M=o.MAs(5),pe=o.oxw();o.xp6(2),o.Q6J("ngIf",o.lcZ(3,2,pe.categoryAsTree$))("ngIfElse",M)}}let ia=(()=>{class N{constructor(M,pe,Ze){this.eventCategoryOptionProviderService=M,this.eventCategoryTreeOptionProviderService=pe,this.entitiesMgr=Ze,this.categoryAvailable$=(0,ho.of)(!1),this.categoryAsTree$=(0,ho.of)(!1),this.destroy$=new cs.xQ}ngOnInit(){this.categoryAvailable$=this.entitiesMgr.isBaseEntityAvailable("Category"),this.categoryAsTree$=this.categoriesHaveTreeStructure()}categoriesHaveTreeStructure(){return this.entitiesMgr.getAllEntitiesOfType("Category").pipe((0,Za.w)(M=>(0,ho.of)(M.items.some(pe=>void 0!==pe.children&&pe.children.length>0))))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(ys.O),o.Y36(zr.n),o.Y36(l.ImxEntitiesMgrService))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-edit-event-categories"]],inputs:{formHandler:"formHandler"},decls:3,vars:5,consts:[["class","form__content-row",4,"ngIf"],[1,"form__content-row"],[1,"form__content-group"],[4,"ngIf","ngIfElse"],["categoryAsList",""],[3,"treeOptionProvider","displayNodeFn","sortNodesFn","sortRootNodesFn","control","formHandler","field"],[3,"optionProvider","sortNodesFn","control","formHandler","field"]],template:function(pe,Ze){1&pe&&(o.YNc(0,Da,6,4,"div",0),o.ALo(1,"async"),o.ALo(2,"async")),2&pe&&o.Q6J("ngIf",o.lcZ(1,1,Ze.categoryAvailable$)&&o.lcZ(2,3,Ze.formHandler.hasReadPermission("categories")))},dependencies:[Pi.x,xo.D,m.O5,m.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}"],changeDetection:0})}return N})();function as(N,Lt){1&N&&o.GkF(0)}const Is=()=>({$implicit:"additionalInfo"});function ba(N,Lt){if(1&N&&(o.ynx(0),o.YNc(1,as,1,0,"ng-container",7),o.BQk()),2&N){o.oxw();const M=o.MAs(43);o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(2,Is))}}function Ss(N,Lt){1&N&&o.GkF(0)}function Ca(N,Lt){1&N&&o.GkF(0)}function Ia(N,Lt){1&N&&o.GkF(0)}const wa=()=>({$implicit:"noInternetPublication"}),Va=()=>({$implicit:"periodicalEvent"});function zn(N,Lt){if(1&N&&(o.TgZ(0,"div",9),o.YNc(1,Ca,1,0,"ng-container",7)(2,Ia,1,0,"ng-container",7),o.qZA()),2&N){o.oxw();const M=o.MAs(43);o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(4,wa)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(5,Va))}}function di(N,Lt){1&N&&o.GkF(0)}function cn(N,Lt){1&N&&o.GkF(0)}function Zi(N,Lt){1&N&&o.GkF(0)}function Eo(N,Lt){1&N&&o.GkF(0)}const oa=N=>({clientIds:N});function Nr(N,Lt){if(1&N&&o._UZ(0,"imx-autocomplete",19),2&N){const M=o.oxw(3);o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("eventUser"))("formHandler",M.formHandler)("control",M.formHandler.formGroup.controls.eventUser)("autocompleteService",M.userAutocompleteService)("autocompleteFilter",o.VKq(6,oa,null==M.clientAndParentClientIds?null:M.clientAndParentClientIds.join(",")))("disableControl",!M.hasAssignUserPermission()||null==M.formHandler.getFormValue("client"))}}function Rs(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"button",21),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw(4);return o.KtG(Ze.resetAssignedUser())}),o._uU(1),o.ALo(2,"translate"),o.qZA()}2&N&&(o.xp6(),o.hij(" ",o.lcZ(2,1,"imxplatform.common.reset")," "))}function Zr(N,Lt){if(1&N&&(o.TgZ(0,"div"),o.YNc(1,Rs,3,3,"button",20),o.qZA()),2&N){const M=o.oxw(3);o.xp6(),o.Q6J("hasFieldWritePermission","eventUser")("hasFieldWritePermissionFormHandler",M.formHandler)}}function Na(N,Lt){if(1&N&&(o.TgZ(0,"div",17),o.YNc(1,Nr,1,8,"imx-autocomplete",18)(2,Zr,2,2,"div",6),o.qZA()),2&N){const M=o.oxw(2);o.xp6(),o.Q6J("hasFieldReadPermission","eventUser")("hasFieldReadPermissionFormHandler",M.formHandler),o.xp6(),o.Q6J("ngIf",M.hasAssignUserPermission())}}function ol(N,Lt){if(1&N&&(o.TgZ(0,"div",5)(1,"h3",2),o._uU(2,"imxeventmanager.event.edit.panels.base-data.client-group"),o.qZA(),o._UZ(3,"imx-edit-client",15),o.YNc(4,Na,3,3,"div",16),o.qZA()),2&N){const M=o.oxw();o.xp6(3),o.Q6J("formHandler",M.formHandler)("feasibleClients",M.feasibleClients)("rootClients",M.rootClients),o.xp6(),o.Q6J("ngIf",M.formHandler.formConfiguration.findFormFieldById("eventUser"))}}function Cl(N,Lt){if(1&N&&o._UZ(0,"imx-edit-tags",22),2&N){const M=o.oxw();o.Q6J("formHandler",M.formHandler)("tagCollectionDataSource",M.tagCollectionDataSource)}}function Ql(N,Lt){if(1&N&&(o.TgZ(0,"div",4)(1,"div",5),o._UZ(2,"imx-label-lockable",23)(3,"imx-base-list-shuffle",24),o.ALo(4,"async"),o.ALo(5,"async"),o.qZA()()),2&N){const M=o.oxw();o.xp6(2),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("criteria"))("formHandler",M.formHandler)("form",M.formHandler.formGroup)("renderBig",!0),o.xp6(),o.Q6J("availableItems",M.allCriteria)("displayNodeFn",M.displayFnForCriteria)("disableControl",!o.lcZ(4,8,M.formHandler.hasEditPermission("criteria"))||!o.lcZ(5,10,M.formHandler.hasSavePermission()))("formControl",M.formHandler.formGroup.get("criteria"))}}function Ho(N,Lt){1&N&&(o.TgZ(0,"p",29),o._uU(1,"imxplatform.common.no-records"),o.qZA())}function mc(N,Lt){1&N&&o._UZ(0,"tr",43)}function os(N,Lt){1&N&&o._UZ(0,"tr",44)}function ps(N,Lt){if(1&N&&(o.TgZ(0,"th",45),o._uU(1),o.qZA()),2&N){const M=o.oxw(3);o.xp6(),o.Oqu(M.formHandler.getFormFieldLabel("inputFields:inputFieldType"))}}function Ps(N,Lt){if(1&N&&(o.TgZ(0,"td",46),o._UZ(1,"imx-form-control",47),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(3);o.Q6J("formGroup",M),o.xp6(),o.Q6J("field",pe.formHandler.formConfiguration.findFormFieldById("inputFields:inputFieldType"))("control",M.controls.inputFieldType)("form",pe.formHandler.formGroup.get("inputFields"))("formHandler",pe.formHandler)("config",pe.formHandler.formConfiguration)}}function Ba(N,Lt){if(1&N&&(o.TgZ(0,"th",45),o._uU(1),o.qZA()),2&N){const M=o.oxw(3);o.xp6(),o.Oqu(M.formHandler.getFormFieldLabel("inputFields:inputFieldValue"))}}function Ka(N,Lt){if(1&N&&(o.TgZ(0,"td",46),o._UZ(1,"imx-form-control",47),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(3);o.Q6J("formGroup",M),o.xp6(),o.Q6J("field",pe.formHandler.formConfiguration.findFormFieldById("inputFields:inputFieldValue"))("control",M.controls.inputFieldValue)("form",pe.formHandler.formGroup.get("inputFields"))("formHandler",pe.formHandler)("config",pe.formHandler.formConfiguration)}}function vc(N,Lt){if(1&N&&(o.TgZ(0,"th",48),o._uU(1),o.qZA()),2&N){const M=o.oxw(3);o.xp6(),o.Oqu(M.formHandler.getFormFieldLabel("inputFields:sortingValue"))}}function $s(N,Lt){if(1&N&&(o.TgZ(0,"td",49),o._UZ(1,"imx-form-control",47),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(3);o.Q6J("formGroup",M),o.xp6(),o.Q6J("field",pe.formHandler.formConfiguration.findFormFieldById("inputFields:sortingValue"))("control",M.controls.sortingValue)("form",pe.formHandler.formGroup.get("inputFields"))("formHandler",pe.formHandler)("config",pe.formHandler.formConfiguration)}}function js(N,Lt){1&N&&o._UZ(0,"th",50)}function bc(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"a",53),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw().$implicit,xn=o.oxw(3);return o.KtG(xn.formHandler.removeLineFromCollection("inputFields",xn.inputFieldCollectionDataSource.filteredData.indexOf(Ze)))}),o.qZA()}}function ql(N,Lt){if(1&N&&(o.TgZ(0,"td",51),o.YNc(1,bc,1,0,"a",52),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(3);o.Q6J("formGroup",M),o.xp6(),o.Q6J("hasFieldWritePermission","inputFields")("hasFieldWritePermissionFormHandler",pe.formHandler)}}function Gs(N,Lt){if(1&N&&(o.TgZ(0,"table",30),o.YNc(1,mc,1,0,"tr",31)(2,os,1,0,"tr",32),o.ynx(3,33),o.YNc(4,ps,2,1,"th",34)(5,Ps,2,6,"td",35),o.BQk(),o.ynx(6,36),o.YNc(7,Ba,2,1,"th",34)(8,Ka,2,6,"td",35),o.BQk(),o.ynx(9,37),o.YNc(10,vc,2,1,"th",38)(11,$s,2,6,"td",39),o.BQk(),o.ynx(12,40),o.YNc(13,js,1,0,"th",41)(14,ql,2,3,"td",42),o.BQk(),o.qZA()),2&N){const M=o.oxw(2);o.Q6J("dataSource",M.inputFieldCollectionDataSource),o.xp6(),o.Q6J("matHeaderRowDef",M.inputFieldCollectionColumns),o.xp6(),o.Q6J("matRowDefColumns",M.inputFieldCollectionColumns)}}function Dl(N,Lt){if(1&N&&o._UZ(0,"imx-form-control",54),2&N){const M=o.oxw(2);o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("addInputField"))("control",M.formHandler.formGroup.get("addInputField"))("form",M.formHandler.formGroup)("formHandler",M.formHandler)("config",M.formHandler.formConfiguration)}}function Yr(N,Lt){if(1&N&&(o.TgZ(0,"div",4)(1,"div",5)(2,"h3",2),o._uU(3,"imxtools.common-entity.edit.panels.base-data.input-fields"),o.qZA(),o.YNc(4,Ho,2,0,"ng-template",null,25,o.W1O),o.TgZ(6,"div",26),o.YNc(7,Gs,15,3,"table",27),o.qZA(),o.YNc(8,Dl,1,5,"imx-form-control",28),o.qZA()()),2&N){const M=o.MAs(5),pe=o.oxw();o.xp6(7),o.Q6J("ngIf",pe.inputFieldCollectionDataSource&&pe.inputFieldCollectionDataSource.data.length>0)("ngIfElse",M),o.xp6(),o.Q6J("hasFieldWritePermission","inputFields")("hasFieldWritePermissionFormHandler",pe.formHandler)}}function _a(N,Lt){if(1&N&&(o.TgZ(0,"div",4)(1,"div",5)(2,"h3",2),o._uU(3,"imxplatform.common-entity.edit.panels.base-data.extended-attributes"),o.qZA(),o._UZ(4,"imx-edit-extended-attributes",55),o.qZA()()),2&N){const M=o.oxw();o.xp6(4),o.Q6J("formHandler",M.formHandler)("formGroup",M.formHandler.formGroup)("record",M.record)("extendedAttributes",M.extendedAttributesForCoreDateObject)}}function ts(N,Lt){if(1&N&&(o.TgZ(0,"div",4)(1,"div",5)(2,"h3",2),o._uU(3,"filter.Event.targetGroups"),o.qZA(),o._UZ(4,"imx-form-control",47),o.qZA()()),2&N){const M=o.oxw();o.xp6(4),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("targetGroups"))("control",M.formHandler.formGroup.get("targetGroups"))("form",M.formHandler.formGroup.get("targetGroups"))("formHandler",M.formHandler)("config",M.formHandler.formConfiguration)}}function rl(N,Lt){if(1&N&&(o.TgZ(0,"div",4)(1,"div",5)(2,"h3",2),o._uU(3,"entity.EventSeries.entityName"),o.qZA(),o._UZ(4,"imx-select",56),o.ALo(5,"async"),o.qZA()()),2&N){const M=o.oxw();o.xp6(4),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("series"))("control",M.formHandler.formGroup.get("series"))("form",M.formHandler.formGroup.get("series"))("formHandler",M.formHandler)("optionProvider",o.lcZ(5,5,M.eventSeriesOptions$))}}function ya(N,Lt){if(1&N&&o._UZ(0,"imx-form-control",47),2&N){const M=Lt.$implicit,pe=o.oxw();o.Q6J("field",pe.formHandler.formConfiguration.findFormFieldById(M))("control",pe.formHandler.formGroup.get(M))("form",pe.formHandler.formGroup)("formHandler",pe.formHandler)("config",pe.formHandler.formConfiguration)}}const Pl=(N,Lt)=>({formHandler:N,record:Lt}),jl=(N,Lt)=>({editObjectLanguages:N,suggestPermaLink:Lt}),Ml=()=>({$implicit:"relevance"}),rc=()=>({$implicit:"appBookingLink"}),Kr=()=>({$implicit:"information"}),la=()=>({$implicit:"link"}),ks=()=>({$implicit:"linkText"}),Ta=()=>["client","eventUser"];let ds=(()=>{class N extends l.AbstractBaseDataFormPanelComponent{constructor(M,pe,Ze,xn,Si,Ga,xs,vs,bl){super(xn,Ze,Si),this.eventmanagerDataAccessService=M,this.userAutocompleteService=pe,this.entitiesMgr=Ze,this.runtimeContext=xn,this.dialog=Si,this.configurationProvider=Ga,this.inputFieldTypeOptionProviderService=xs,this.changeDetectorRef=vs,this.translateService=bl,this.allCriteria=[],this.inputFieldTypesAvailable=(0,ho.of)(!1),this.criteriaAvailable=(0,ho.of)(!1),this.showAdditionalInfo$=(0,ho.of)(!1),this.eventSeriesAvailable=(0,ho.of)(!1),this.targetGroupsAvailable=(0,ho.of)(!1),this.imxEventmanagerSlots=vr.tw}ngOnInit(){super.ngOnInit(),this.inputFieldTypesAvailable=this.inputFieldTypeOptionProviderService.getOptions(this.record,void 0).pipe((0,Za.w)(M=>(0,ho.of)(M.length>0))),this.criteriaAvailable=this.baseEntityAvailable("Criterion"),this.eventSeriesAvailable=this.baseEntityAvailable("EventSeries"),this.targetGroupsAvailable=this.baseEntityAvailable("TargetGroup"),this.showAdditionalInfo$=this.configurationProvider.getBoolean(co.c.IMXEVENTMANAGER_SHOW_ADDITIONALINFO,!1),this.formHandler.formGroup.get("inputFields")&&(this.inputFieldCollectionDataSource=this.prepareTable(this.formHandler.formGroup.get("inputFields"),M=>this.inputFieldCollectionDataSource=M),this.inputFieldCollectionColumns=this.determineTableColumns("inputFields")),this.formHandler.formGroup.controls.addInputField&&this.formHandler.formGroup.controls.addInputField.valueChanges.pipe((0,ma.R)(this.destroy$),(0,Wa.h)(M=>M&&M!==l.SELECT_PLACEHOLDER_VALUE)).subscribe(M=>{this.formHandler.addNewCollectionRow("inputFields").controls.inputFieldType.setValue(M),this.formHandler.formGroup.controls.addInputField.setValue(l.SELECT_PLACEHOLDER_VALUE),this.formHandler.formGroup.controls.addInputField.markAsPristine()}),this.loadCriteria(),this.eventSeriesOptions$=this.loadEventSeriesOptions()}getUniquePermalink(M,pe){return this.eventmanagerDataAccessService.suggestPermaLinkForEvent(M,pe)}onObjectLanguageChange(M,pe){(M.length>0||pe.length>0)&&["appearances","refusedAppearances","pendingAppearances"].forEach(Ze=>{this.formHandler.formGroup.get(Ze).controls.forEach(Si=>this.adjustLanguagesForFormControl(Si,M,pe))}),this.formHandler.formGroup.get("defaultAppearance")&&this.adjustLanguagesForFormControl(this.formHandler.formGroup.get("defaultAppearance"),M,pe)}adjustLanguagesForFormControl(M,pe,Ze){["languages","languagesSelect"].forEach(xn=>{const Si=M.get(xn);if(Si){const Ga=Si.value;Ga.push(...pe.map(xs=>xs.id)),Si.setValue(Ga.filter((xs,vs)=>Ga.indexOf(xs)===vs)),Si.setValue(Si.value.filter(xs=>-1==Ze.findIndex(vs=>vs.id===xs))),Si.markAsDirty(),Si.markAsTouched(),Si.updateValueAndValidity()}})}displayFnForCriteria(M,pe){return M.client?(M.prefix?M.prefix+" - ":"")+M.i18nName[pe]+" ("+M.client.name+"/"+M.client.id+")":(M.prefix?M.prefix+" - ":"")+M.i18nName[pe]}loadCriteria(){this.eventmanagerDataAccessService.getUnwrappedCriteria().pipe((0,ma.R)(this.destroy$)).subscribe(M=>{this.allCriteria=M,this.changeDetectorRef.markForCheck()})}loadEventSeriesOptions(){const M=this.runtimeContext.getCurrentAndSubClients(),pe=this.entitiesMgr.getAllEntitiesOfType("EventSeries");return(0,i.aj)([M,pe]).pipe((0,ma.R)(this.destroy$),(0,rn.U)(([Ze,xn])=>{const Si=new Set;return Ze.forEach(Ga=>{xn.items.forEach(xs=>{(xs.client&&xs.client.id===Ga.id||xs.grantedClients&&xs.grantedClients.some(vs=>vs.id===Ga.id))&&Si.add(xs)})}),[...Si].map(Ga=>({label:Ga.i18nName,value:Ga.id})).sort((Ga,xs)=>(0,l.compareI18n)(Ga.label,xs.label,this.translateService.currentLang))}))}hasAssignUserPermission(){return this.formHandler.hasEventAssignUserPermission()}resetAssignedUser(){this.formHandler.formGroup.get("eventUser")&&this.formHandler.formGroup.get("eventUser").setValue(void 0)}determineFeasibleClients(){return this.formHandler.getFormValue("eventUser")&&!this.hasAssignUserPermission()?this.entitiesMgr.getEntityWithIdOfType("User",this.formHandler.getFormValue("eventUser")).pipe((0,Za.w)(M=>this.getClientHierarchy(M.client.id,!0))):super.determineFeasibleClients()}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(yn.b),o.Y36(l.UserAutocompleteService),o.Y36(s.qB),o.Y36(s.Ze),o.Y36(t.uw),o.Y36(l.ConfigurationProvider),o.Y36(l.InputFieldTypeOptionProviderService),o.Y36(o.sBO),o.Y36(I.sK))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-event-base-data-form-panel"]],features:[o.qOj],decls:44,vars:65,consts:[[1,"form__content-panel","basicdata"],["id","basicdata",1,"anchor"],["translate",""],[3,"imxSlotComponent","inputs","outputs"],[1,"form__content-row"],[1,"form__content-group"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","form__content-field-row wrap-sm",4,"ngIf"],[1,"form__content-field-row","wrap-sm"],["class","form__content-group",4,"hasAnyFieldReadPermission","hasAnyFieldReadPermissionFormHandler"],[3,"formHandler"],[3,"formHandler","tagCollectionDataSource",4,"ngIf"],["class","form__content-row",4,"ngIf"],["imxControl",""],[3,"formHandler","feasibleClients","rootClients"],["class","user",4,"ngIf"],[1,"user"],[3,"field","formHandler","control","autocompleteService","autocompleteFilter","disableControl",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[3,"field","formHandler","control","autocompleteService","autocompleteFilter","disableControl"],["class","imx-button prio2",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"imx-button","prio2",3,"click"],[3,"formHandler","tagCollectionDataSource"],[3,"field","formHandler","form","renderBig"],[3,"availableItems","displayNodeFn","disableControl","formControl"],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],["class","imx-button-select no-margin",3,"field","control","form","formHandler","config",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","inputFieldType"],["mat-header-cell","","translate","",4,"matHeaderCellDef"],["mat-cell","",3,"formGroup",4,"matCellDef"],["matColumnDef","inputFieldValue"],["matColumnDef","sortingValue"],["mat-header-cell","","class","sortingValueCol","translate","",4,"matHeaderCellDef"],["mat-cell","","class","sortingValueCol",3,"formGroup",4,"matCellDef"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","","translate",""],["mat-cell","",3,"formGroup"],[3,"field","control","form","formHandler","config"],["mat-header-cell","","translate","",1,"sortingValueCol"],["mat-cell","",1,"sortingValueCol",3,"formGroup"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],["class","icon icon-trash imx-icon-middle imx-icon-clickable",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"],[1,"imx-button-select","no-margin",3,"field","control","form","formHandler","config"],[3,"formHandler","formGroup","record","extendedAttributes"],[3,"field","control","form","formHandler","optionProvider"]],template:function(pe,Ze){if(1&pe&&(o.TgZ(0,"div",0),o._UZ(1,"div",1),o.TgZ(2,"h2",2),o._uU(3,"imxplatform.common-entity.edit.panels.base-data.title"),o.qZA(),o.GkF(4,3),o.TgZ(5,"div",4)(6,"div",5)(7,"h3",2),o._uU(8,"imxeventmanager.event.edit.panels.base-data.additional-info"),o.qZA(),o.YNc(9,ba,2,3,"ng-container",6),o.ALo(10,"async"),o.YNc(11,Ss,1,0,"ng-container",7)(12,zn,3,6,"div",8),o.ALo(13,"async"),o.TgZ(14,"div",9),o.YNc(15,di,1,0,"ng-container",7)(16,cn,1,0,"ng-container",7),o.qZA(),o.TgZ(17,"div",9),o.YNc(18,Zi,1,0,"ng-container",7)(19,Eo,1,0,"ng-container",7),o.qZA()()(),o.TgZ(20,"div",4),o.YNc(21,ol,5,4,"div",10),o.qZA(),o._UZ(22,"imx-edit-seo",11)(23,"imx-edit-origin",11),o.YNc(24,Cl,1,2,"imx-edit-tags",12),o.ALo(25,"async"),o._UZ(26,"imx-edit-event-categories",11),o.YNc(27,Ql,6,12,"div",13),o.ALo(28,"async"),o.ALo(29,"async"),o.YNc(30,Yr,9,4,"div",13),o.ALo(31,"async"),o.ALo(32,"async"),o.YNc(33,_a,5,4,"div",13),o.ALo(34,"async"),o.ALo(35,"async"),o.YNc(36,ts,5,5,"div",13),o.ALo(37,"async"),o.ALo(38,"async"),o.YNc(39,rl,6,7,"div",13),o.ALo(40,"async"),o.ALo(41,"async"),o.qZA(),o.YNc(42,ya,1,5,"ng-template",null,14,o.W1O)),2&pe){const xn=o.MAs(43);o.xp6(),o.uIk("data-scroll-id","basicdata"),o.xp6(3),o.Q6J("imxSlotComponent",Ze.imxEventmanagerSlots.EVENT_EDIT_TITLES_SLOT)("inputs",o.WLB(53,Pl,Ze.formHandler,Ze.record))("outputs",o.WLB(56,jl,Ze.onEditObjectLanguage.bind(Ze),Ze.suggestPermaLink.bind(Ze))),o.xp6(5),o.Q6J("ngIf",o.lcZ(10,27,Ze.showAdditionalInfo$)),o.xp6(2),o.Q6J("ngTemplateOutlet",xn)("ngTemplateOutletContext",o.DdM(59,Ml)),o.xp6(),o.Q6J("ngIf",o.lcZ(13,29,Ze.formHandler.hasReadPermission("publication"))),o.xp6(3),o.Q6J("ngTemplateOutlet",xn)("ngTemplateOutletContext",o.DdM(60,rc)),o.xp6(),o.Q6J("ngTemplateOutlet",xn)("ngTemplateOutletContext",o.DdM(61,Kr)),o.xp6(2),o.Q6J("ngTemplateOutlet",xn)("ngTemplateOutletContext",o.DdM(62,la)),o.xp6(),o.Q6J("ngTemplateOutlet",xn)("ngTemplateOutletContext",o.DdM(63,ks)),o.xp6(2),o.Q6J("hasAnyFieldReadPermission",o.DdM(64,Ta))("hasAnyFieldReadPermissionFormHandler",Ze.formHandler),o.xp6(),o.Q6J("formHandler",Ze.formHandler),o.xp6(),o.Q6J("formHandler",Ze.formHandler),o.xp6(),o.Q6J("ngIf",o.lcZ(25,31,Ze.tagsAvailable)),o.xp6(2),o.Q6J("formHandler",Ze.formHandler),o.xp6(),o.Q6J("ngIf",o.lcZ(28,33,Ze.criteriaAvailable)&&o.lcZ(29,35,Ze.formHandler.hasReadPermission("criteria"))),o.xp6(3),o.Q6J("ngIf",o.lcZ(31,37,Ze.inputFieldTypesAvailable)&&o.lcZ(32,39,Ze.formHandler.hasReadPermission("inputField"))),o.xp6(3),o.Q6J("ngIf",o.lcZ(34,41,Ze.extendedAttributesForCoreDataObjectAvailable)&&o.lcZ(35,43,Ze.formHandler.hasReadPermission("attributeDefinitions"))),o.xp6(3),o.Q6J("ngIf",o.lcZ(37,45,Ze.targetGroupsAvailable)&&o.lcZ(38,47,Ze.formHandler.hasReadPermission("targetGroups"))),o.xp6(3),o.Q6J("ngIf",o.lcZ(40,49,Ze.eventSeriesAvailable)&&o.lcZ(41,51,Ze.formHandler.hasReadPermission("series")))}},dependencies:[Yi.Y,jo.A,Cn.L,uo.Q,fo.k,Jo.O,kr.E,u.A,Ra.m,Qr.H,Aa.l,ki.j,ss.X,ee.F,Hs.g,m.O5,m.tP,b.JJ,b.JL,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,b.oH,b.sg,I.Pi,ia,m.Ov,I.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.form__content-group[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]{margin-top:15px}.sortingValueCol[_ngcontent-%COMP%]{flex:0 1 100px}"],changeDetection:0})}return N})();var bs=a(79308);function sl(N,Lt){if(1&N&&(o.TgZ(0,"div",4)(1,"span",5),o._uU(2,"imxeventmanager.event.edit.panels.dates.event-occurrence"),o.qZA(),o._UZ(3,"imx-form-control",6),o.qZA()),2&N){const M=o.oxw();o.xp6(3),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("online"))("control",M.formHandler.formGroup.get("online"))("form",M.formHandler.formGroup)("formHandler",M.formHandler)("config",M.formHandler.formConfiguration)}}function Ec(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"div",7)(1,"div",8)(2,"span"),o._uU(3),o.ALo(4,"translate"),o.qZA()(),o.TgZ(5,"div",9)(6,"button",10),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw();return o.KtG(Ze.setAllDatesOnlineState(!0))}),o.ALo(7,"async"),o._uU(8),o.ALo(9,"translate"),o.qZA(),o.TgZ(10,"button",10),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw();return o.KtG(Ze.setAllDatesOnlineState(!1))}),o.ALo(11,"async"),o._uU(12),o.ALo(13,"translate"),o.qZA()()()}if(2&N){const M=o.oxw();o.xp6(3),o.Oqu(o.lcZ(4,5,"imxeventmanager.event.edit.panels.dates.event-all-dates")),o.xp6(3),o.Q6J("disabled",!o.lcZ(7,7,M.formHandler.hasSavePermission())),o.xp6(2),o.hij(" ",o.lcZ(9,9,"imxeventmanager.event.edit.panels.dates.event-set-all-dates-online")," "),o.xp6(2),o.Q6J("disabled",!o.lcZ(11,11,M.formHandler.hasSavePermission())),o.xp6(2),o.hij(" ",o.lcZ(13,13,"imxeventmanager.event.edit.panels.dates.event-set-all-dates-offline")," ")}}function gr(N,Lt){if(1&N&&(o.TgZ(0,"div"),o._UZ(1,"imx-form-control",6),o.qZA()),2&N){const M=o.oxw();o.xp6(),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("onlineParticipationLink"))("control",M.formHandler.formGroup.get("onlineParticipationLink"))("form",M.formHandler.formGroup)("formHandler",M.formHandler)("config",M.formHandler.formConfiguration)}}function Js(N,Lt){if(1&N&&(o.TgZ(0,"div"),o._UZ(1,"imx-form-control",6),o.qZA()),2&N){const M=o.oxw();o.xp6(),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("onlineParticipationLinkText"))("control",M.formHandler.formGroup.get("onlineParticipationLinkText"))("form",M.formHandler.formGroup)("formHandler",M.formHandler)("config",M.formHandler.formConfiguration)}}let Ms=(()=>{class N{constructor(M,pe){this.userMessageService=M,this.translateService=pe,this.destroy$=new cs.xQ}ngOnChanges(M){this.calculateOnlineState()}ngOnInit(){this.formHandler.formGroup.get("eventDates").valueChanges.pipe((0,ma.R)(this.destroy$)).subscribe(M=>{this.calculateOnlineState()})}calculateOnlineState(){const M=this.formHandler.formGroup.get("eventDates").controls.length,pe=this.formHandler.formGroup.get("eventDates").controls.filter(Ze=>Ze.get("online")&&!0===Ze.get("online").value).length;pe===M?this.formHandler.formGroup.get("online").setValue("FULLY_ONLINE"):pe>0?this.formHandler.formGroup.get("online").setValue("PARTLY_ONLINE"):this.formHandler.formGroup.get("online").setValue("NOT_ONLINE")}setAllDatesOnlineState(M){this.formHandler.formGroup.get("eventDates").controls.forEach(pe=>{pe.get("online")&&(pe.get("online").setValue(M,!1),pe.get("online").markAsDirty())}),this.userMessageService.showInfo(this.translateService.instant(!0===M?"imxeventmanager.event.edit.panels.dates.event-set-all-dates-online-done":"imxeventmanager.event.edit.panels.dates.event-set-all-dates-offline-done")),this.calculateOnlineState()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(l.UserMessageService),o.Y36(I.sK))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-event-dates-set-online"]],inputs:{formHandler:"formHandler",record:"record"},features:[o.TTD],decls:6,vars:8,consts:[["class","event__online-state-container",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],["class","event__online-container",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[1,"event__online-link-container"],[4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[1,"event__online-state-container"],["translate",""],[3,"field","control","form","formHandler","config"],[1,"event__online-container"],[1,"event__online-desc-container"],[1,"event__online-action-container"],[1,"imx-button","prio2","online-action-btn",3,"disabled","click"]],template:function(pe,Ze){1&pe&&(o.TgZ(0,"div"),o.YNc(1,sl,4,5,"div",0)(2,Ec,14,15,"div",1),o.TgZ(3,"div",2),o.YNc(4,gr,2,5,"div",3)(5,Js,2,5,"div",3),o.qZA()()),2&pe&&(o.xp6(),o.Q6J("hasFieldReadPermission","online")("hasFieldReadPermissionFormHandler",Ze.formHandler),o.xp6(),o.Q6J("hasFieldReadPermission","online")("hasFieldReadPermissionFormHandler",Ze.formHandler),o.xp6(2),o.Q6J("hasFieldReadPermission","onlineParticipationLink")("hasFieldReadPermissionFormHandler",Ze.formHandler),o.xp6(),o.Q6J("hasFieldReadPermission","onlineParticipationLinkText")("hasFieldReadPermissionFormHandler",Ze.formHandler))},dependencies:[u.A,ki.j,I.Pi,m.Ov,I.X$],styles:[".event__online-container[_ngcontent-%COMP%]{display:flex;margin:0;width:100%}.event__online-desc-container[_ngcontent-%COMP%]{margin:10px 18px 0 0;min-width:100px}.event__online-desc-container[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{line-height:30px}.event__online-action-container[_ngcontent-%COMP%]{min-width:150px;margin-bottom:10px}.event__online-link-container[_ngcontent-%COMP%]{display:flex;width:100%}.event__online-link-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex:100%}.event__online-link-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{margin-right:20px}.online-action-btn[_ngcontent-%COMP%]{margin:10px 10px 0 0}.event__online-state-container[_ngcontent-%COMP%]{display:flex}.event__online-state-container[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{line-height:20px;margin:0 18px 0 0}.event__online-state-container[_ngcontent-%COMP%]     .imx-form-control{margin-bottom:0}.event__online-state-container[_ngcontent-%COMP%]     imx-base-radio-button-group>.mat-mdc-radio-group>.mat-mdc-radio-button{margin-bottom:0}"]})}return N})();function Bs(N,Lt){if(1&N&&(o.TgZ(0,"div",10),o._UZ(1,"imx-edit-event-dates",11),o.qZA()),2&N){const M=o.oxw();o.xp6(),o.Q6J("formHandler",M.formHandler)("startTimeMandatory",M.startTimeMandatory)("alternatesDateModel",M.alternatesDateModel)("record",M.record)}}function yl(N,Lt){if(1&N&&(o.TgZ(0,"div")(1,"h3"),o._uU(2),o.ALo(3,"translate"),o.qZA(),o._UZ(4,"imx-form-control",5),o.qZA()),2&N){const M=o.oxw();o.xp6(2),o.Oqu(o.lcZ(3,6,"entity.Event.dateInfo")),o.xp6(2),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("dateInfo"))("control",M.formHandler.formGroup.get("dateInfo"))("form",M.formHandler.formGroup)("formHandler",M.formHandler)("config",M.formHandler.formConfiguration)}}let Fr=(()=>{class N extends l.AbstractCoreDataObjectFormPanelComponent{constructor(M,pe,Ze,xn){super(M,pe),this.entitiesMgr=M,this.dialog=pe,this.configurationProvider=Ze,this.changeDetectorRef=xn,this.additionalRequiredProps=[],this.startTimeMandatory=!1,this.alternatesDateModel=!1}ngOnChanges(M){super.ngOnChanges(M),M.additionalRequiredProps&&this.additionalRequiredProps.some(pe=>"event.startTime"===pe)&&(this.startTimeMandatory=!0)}ngOnInit(){const M=this.configurationProvider.getBoolean(co.c.IMXEVENTMANAGER_EVENTDATE_ALTERNATE,!1),pe=this.configurationProvider.getBoolean(co.c.IMXEVENTMANAGER_EVENTDATE_STARTTIME_MANDATORY,!1);(0,i.aj)([M,pe]).subscribe(([Ze,xn])=>{if(xn){this.startTimeMandatory=!0;const Si=this.formHandler.formConfiguration.findFormFieldById("eventDates:startTime");if(!Si)throw new Error("no startTime field configured");Si.required=!0}this.alternatesDateModel=Ze})}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(l.ImxEntitiesMgrService),o.Y36(t.uw),o.Y36(l.ConfigurationProvider),o.Y36(o.sBO))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-event-dates-data-form-panel"]],inputs:{additionalRequiredProps:"additionalRequiredProps"},features:[o.qOj,o.TTD],decls:12,vars:13,consts:[[1,"form__content-panel","dates"],["id","dates",1,"anchor"],["translate",""],[1,"form__content-row"],[1,"form__content-group"],[3,"field","control","form","formHandler","config"],[1,"dates__set-online-container"],[3,"formHandler","record"],["class","dates__accordion-container",4,"ngIf"],[4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[1,"dates__accordion-container"],[3,"formHandler","startTimeMandatory","alternatesDateModel","record"]],template:function(pe,Ze){1&pe&&(o.TgZ(0,"div",0),o._UZ(1,"div",1),o.TgZ(2,"h2",2),o._uU(3,"imxeventmanager.event.edit.panels.dates.title"),o.qZA(),o.TgZ(4,"div",3)(5,"div",4),o._UZ(6,"imx-form-control",5),o.TgZ(7,"div",6),o._UZ(8,"imx-event-dates-set-online",7),o.qZA(),o.YNc(9,Bs,2,4,"div",8),o.ALo(10,"async"),o.YNc(11,yl,5,8,"div",9),o.qZA()()()),2&pe&&(o.xp6(),o.uIk("data-scroll-id","dates"),o.xp6(5),o.Q6J("field",Ze.formHandler.formConfiguration.findFormFieldById("cancelled"))("control",Ze.formHandler.formGroup.get("cancelled"))("form",Ze.formHandler.formGroup)("formHandler",Ze.formHandler)("config",Ze.formHandler.formConfiguration),o.xp6(2),o.Q6J("formHandler",Ze.formHandler)("record",Ze.record),o.xp6(),o.Q6J("ngIf",o.lcZ(10,11,Ze.formHandler.hasReadPermission("eventDateType"))),o.xp6(2),o.Q6J("hasFieldReadPermission","dateInfo")("hasFieldReadPermissionFormHandler",Ze.formHandler))},dependencies:[u.A,ki.j,m.O5,I.Pi,bs.C,Ms,m.Ov,I.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}.dates__accordion-container[_ngcontent-%COMP%]{margin-bottom:15px}.dates__set-online-container[_ngcontent-%COMP%]{margin:10px 0 0}"],changeDetection:0})}return N})();var nl=a(63336),hl=a(75661);function Cc(N,Lt){1&N&&(o.ynx(0),o.TgZ(1,"div",9)(2,"span",3),o._uU(3,"imxeventmanager.event.edit.panels.geoInfo.hint-hide-manual-geo-info"),o.qZA()(),o.BQk())}function Zt(N,Lt){if(1&N&&(o.TgZ(0,"div",9)(1,"span",10),o._uU(2,"imxeventmanager.event.edit.panels.geoInfo.hint"),o.qZA()(),o.TgZ(3,"div",9),o._UZ(4,"imx-form-control",11),o.qZA()),2&N){const M=o.oxw(2);o.xp6(4),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("geoInfoVisible"))("control",M.formHandler.formGroup.get("geoInfoVisible"))("form",M.formHandler.formGroup)("formHandler",M.formHandler)("config",M.formHandler.formConfiguration)}}function ri(N,Lt){if(1&N&&o._UZ(0,"imx-edit-geo-info",12,13),2&N){const M=o.oxw(2);o.Q6J("formHandler",M.formHandler)("record",M.record)}}function Mn(N,Lt){if(1&N&&(o.TgZ(0,"div",1),o._UZ(1,"div",2),o.TgZ(2,"h2",3),o._uU(3,"imxplatform.common-entity.edit.panels.geo.title"),o.qZA(),o.TgZ(4,"div",4)(5,"div",5),o.YNc(6,Cc,4,0,"ng-container",6),o.ALo(7,"async"),o.YNc(8,Zt,5,5,"ng-template",null,7,o.W1O),o.qZA()(),o.YNc(10,ri,2,2,"imx-edit-geo-info",8),o.ALo(11,"async"),o.qZA()),2&N){const M=o.MAs(9),pe=o.oxw();o.xp6(),o.uIk("data-scroll-id","geo"),o.xp6(5),o.Q6J("ngIf",o.lcZ(7,4,pe.hideManualGeoCheckbox$))("ngIfElse",M),o.xp6(4),o.Q6J("ngIf",pe.geoInfoVisible&&o.lcZ(11,6,pe.formHandler.hasReadPermission("geoInfo")))}}let mi=(()=>{class N extends l.AbstractCoreDataObjectFormPanelComponent{constructor(M,pe,Ze){super(M,Ze),this.entitiesMgr=M,this.configurationProvider=pe,this.dialog=Ze,this.logger=(0,l.getLogger)("EventGeoFormPanelComponent",nl.H.name),this.hideManualGeoCheckbox$=(0,ho.of)(!1)}onRecordChange(){super.onRecordChange(),this.formHandler.formGroup.get("geoInfoVisible")&&(this.geoInfoVisible=this.formHandler.formGroup.get("geoInfoVisible").value)}ngOnInit(){super.ngOnInit(),this.hideManualGeoCheckbox$=this.configurationProvider.getBoolean(co.c.IMXEVENTMANAGER_HIDE_MANUAL_GEO_INFO,!1),this.formHandler.formGroup.get("geoInfoVisible")&&this.formHandler.formGroup.get("geoInfoVisible").valueChanges.pipe((0,ma.R)(this.destroy$)).subscribe(M=>{this.geoInfoVisible=M,this.geoInfoVisible||this.resetFields()})}resetFields(){this.formHandler.formGroup.get("geoInfo.street").setValue(null),this.formHandler.formGroup.get("geoInfo.streetNo").setValue(null),this.formHandler.formGroup.get("geoInfo.zipcode").setValue(null),this.formHandler.formGroup.get("geoInfo.city").setValue(null),this.formHandler.formGroup.get("geoInfo.country").setValue(null),this.formHandler.formGroup.get("geoInfo.coordinates.longitude").setValue(0),this.formHandler.formGroup.get("geoInfo.coordinates.latitude").setValue(0),this.formHandler.formGroup.get("geoInfo.geoSystems").setValue(null)}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(s.qB),o.Y36(l.ConfigurationProvider),o.Y36(t.uw))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-event-geo-form-panel"]],hostAttrs:[1,"imx-event-geo-form-panel"],features:[o.qOj],decls:2,vars:3,consts:[["class","form__content-panel geo",4,"ngIf"],[1,"form__content-panel","geo"],["id","geo",1,"anchor"],["translate",""],[1,"form__content-row"],[1,"form__content-group"],[4,"ngIf","ngIfElse"],["default",""],[3,"formHandler","record",4,"ngIf"],[1,"form__content-field-row"],["translate","",1,"hint"],[3,"field","control","form","formHandler","config"],[3,"formHandler","record"],["editGeoInfo",""]],template:function(pe,Ze){1&pe&&(o.YNc(0,Mn,12,8,"div",0),o.ALo(1,"async")),2&pe&&o.Q6J("ngIf",o.lcZ(1,1,Ze.formHandler.hasReadPermission("geoInfo")))},dependencies:[hl.S,u.A,m.O5,I.Pi,m.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.hint[_ngcontent-%COMP%]{margin-bottom:10px;font-size:12px}"]})}return N})();var Mo=a(77164),pr=a(9491);const Pr=(N,Lt,M,pe)=>({moduleDataFormGroup:N,moduleId:Lt,formHandler:M,record:pe});let xa=(()=>{class N extends l.AbstractCoreDataObjectFormPanelComponent{ngOnInit(){if(super.ngOnInit(),this.module={plKey:l.EVENT_MODULE_PL_KEY},this.formHandler.formGroup.get("metainfo")&&(this.metaInfoRowFormGroup=this.formHandler.formGroup.get("metainfo"),!this.metaInfoRowFormGroup))throw new Error("cannot find FormGroup metainfo")}ngOnChanges(M){super.ngOnChanges(M)}onRecordChange(){super.onRecordChange();const M=this.formHandler.formConfiguration.findFormFieldById("metainfo");if(M){const pe=this.formHandler.formGroup.get("metainfo");0===Object.keys(pe.controls).length&&(this.formHandler.addNewFormControlsForRow(M,pe),this.formHandler.formGroup.markAsPristine())}}static#e=this.\u0275fac=(()=>{let M;return function(Ze){return(M||(M=o.n5z(N)))(Ze||N)}})();static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-event-module-form-panel"]],hostAttrs:[1,"imx-event-module-form-panel"],features:[o.qOj,o.TTD],decls:5,vars:8,consts:[[1,"form__content-panel"],["translate",""],["id","modules_event",1,"anchor"],["moduleFormPanelComponent","",3,"moduleKey","inputs"]],template:function(pe,Ze){1&pe&&(o.TgZ(0,"div",0)(1,"h2",1),o._uU(2,"imxeventmanager.event.edit.panels.others.title"),o.qZA(),o._UZ(3,"div",2)(4,"div",3),o.qZA()),2&pe&&(o.xp6(3),o.uIk("data-scroll-id","modules_event"),o.xp6(),o.Q6J("moduleKey",Ze.module.plKey)("inputs",o.l5B(3,Pr,Ze.metaInfoRowFormGroup,Ze.module.id,Ze.formHandler,Ze.record)))},dependencies:[pr.M,I.Pi],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}"],changeDetection:0})}return N})();var tl=a(51418),Ls=a(1614);function Ts(N,Lt){1&N&&o.GkF(0)}function _s(N,Lt){1&N&&o.GkF(0)}function ul(N,Lt){1&N&&o.GkF(0)}function qs(N,Lt){1&N&&o.GkF(0)}function Ks(N,Lt){1&N&&o.GkF(0)}function pl(N,Lt){1&N&&o.GkF(0)}function nc(N,Lt){1&N&&o.GkF(0)}const Mi=()=>({$implicit:"pricing.priceUnit"});function or(N,Lt){if(1&N&&(o.ynx(0),o.YNc(1,nc,1,0,"ng-container",10),o.BQk()),2&N){o.oxw(2);const M=o.MAs(13);o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(2,Mi))}}const Ki=()=>({$implicit:"pricing.fromPrice"}),Ao=()=>({$implicit:"pricing.toPrice"}),Go=()=>({$implicit:"pricing.absolutePrice"}),dr=()=>({$implicit:"pricing.freeOfCharge"}),pn=()=>({$implicit:"pricing.priceBasis"}),bo=()=>({$implicit:"pricing.priceDescription"});function nt(N,Lt){if(1&N&&(o.TgZ(0,"div",7)(1,"div",8)(2,"h3",2),o._uU(3,"imxeventmanager.event.edit.panels.pricing.prices"),o.qZA(),o.TgZ(4,"div",9),o.YNc(5,Ts,1,0,"ng-container",10)(6,_s,1,0,"ng-container",10),o.qZA(),o.YNc(7,ul,1,0,"ng-container",10)(8,qs,1,0,"ng-container",10)(9,Ks,1,0,"ng-container",10)(10,pl,1,0,"ng-container",10)(11,or,2,3,"ng-container",11),o.ALo(12,"async"),o.qZA()()),2&N){const M=o.oxw(),pe=o.MAs(13);o.xp6(5),o.Q6J("ngTemplateOutlet",pe)("ngTemplateOutletContext",o.DdM(15,Ki)),o.xp6(),o.Q6J("ngTemplateOutlet",pe)("ngTemplateOutletContext",o.DdM(16,Ao)),o.xp6(),o.Q6J("ngTemplateOutlet",pe)("ngTemplateOutletContext",o.DdM(17,Go)),o.xp6(),o.Q6J("ngTemplateOutlet",pe)("ngTemplateOutletContext",o.DdM(18,dr)),o.xp6(),o.Q6J("ngTemplateOutlet",pe)("ngTemplateOutletContext",o.DdM(19,pn)),o.xp6(),o.Q6J("ngTemplateOutlet",pe)("ngTemplateOutletContext",o.DdM(20,bo)),o.xp6(),o.Q6J("ngIf",o.lcZ(12,13,M.priceUnitsAvailable))}}function Sn(N,Lt){1&N&&o.GkF(0)}function fi(N,Lt){1&N&&o.GkF(0)}function $i(N,Lt){1&N&&(o.TgZ(0,"p",18),o._uU(1,"imxplatform.common.no-records"),o.qZA())}function No(N,Lt){1&N&&o._UZ(0,"tr",29)}function Ar(N,Lt){1&N&&o._UZ(0,"tr",30)}function xr(N,Lt){if(1&N&&(o.TgZ(0,"th",31),o._uU(1),o.qZA()),2&N){const M=o.oxw(5);o.xp6(),o.Oqu(M.formHandler.getFormFieldLabel("additionalBookingLinks:bookingLink"))}}function Sr(N,Lt){if(1&N&&(o.TgZ(0,"td",32),o._UZ(1,"imx-form-control",33),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(5);o.Q6J("formGroup",M),o.xp6(),o.Q6J("field",pe.formHandler.formConfiguration.findFormFieldById("additionalBookingLinks:bookingLink"))("control",M.controls.bookingLink)("form",pe.formHandler.formGroup.get("additionalBookingLinks"))("formHandler",pe.formHandler)("config",pe.formHandler.formConfiguration)}}function ns(N,Lt){if(1&N&&(o.TgZ(0,"th",31),o._uU(1),o.qZA()),2&N){const M=o.oxw(5);o.xp6(),o.Oqu(M.formHandler.getFormFieldLabel("additionalBookingLinks:bookingLinkText"))}}function Tl(N,Lt){if(1&N&&(o.TgZ(0,"td",32),o._UZ(1,"imx-form-control",33),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(5);o.Q6J("formGroup",M),o.xp6(),o.Q6J("field",pe.formHandler.formConfiguration.findFormFieldById("additionalBookingLinks:bookingLinkText"))("control",M.controls.bookingLinkText)("form",pe.formHandler.formGroup.get("additionalBookingLinks"))("formHandler",pe.formHandler)("config",pe.formHandler.formConfiguration)}}function Fs(N,Lt){1&N&&o._UZ(0,"th",34)}function il(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"a",37),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw().$implicit,xn=o.oxw(5);return o.KtG(xn.removeAdditionalBookingLinksRow(xn.additionalBookingLinksDataSource.filteredData.indexOf(Ze)))}),o.qZA()}}function ac(N,Lt){if(1&N&&(o.TgZ(0,"td",35),o.YNc(1,il,1,0,"a",36),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(5);o.Q6J("formGroup",M),o.xp6(),o.Q6J("hasFieldWritePermission","additionalBookingLinks")("hasFieldWritePermissionFormHandler",pe.formHandler)}}function Nl(N,Lt){if(1&N&&(o.TgZ(0,"table",19),o.YNc(1,No,1,0,"tr",20)(2,Ar,1,0,"tr",21),o.ynx(3,22),o.YNc(4,xr,2,1,"th",23)(5,Sr,2,6,"td",24),o.BQk(),o.ynx(6,25),o.YNc(7,ns,2,1,"th",23)(8,Tl,2,6,"td",24),o.BQk(),o.ynx(9,26),o.YNc(10,Fs,1,0,"th",27)(11,ac,2,3,"td",28),o.BQk(),o.qZA()),2&N){const M=o.oxw(4);o.Q6J("dataSource",M.additionalBookingLinksDataSource),o.xp6(),o.Q6J("matHeaderRowDef",M.additionalBookingLinksColumns),o.xp6(),o.Q6J("matRowDefColumns",M.additionalBookingLinksColumns)}}function em(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"div",13)(1,"h3",2),o._uU(2,"imxeventmanager.event.edit.panels.pricing.additionalBookingLinks"),o.qZA(),o.YNc(3,$i,2,0,"ng-template",null,14,o.W1O),o.TgZ(5,"div",15),o.YNc(6,Nl,12,3,"table",16),o.TgZ(7,"button",17),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw(3);return o.KtG(Ze.addAdditionalBookingLinksRow())}),o._uU(8," imxplatform.common.select-placeholder-add "),o.qZA()()()}if(2&N){const M=o.MAs(4),pe=o.oxw(3);o.xp6(6),o.Q6J("ngIf",pe.additionalBookingLinksDataSource&&pe.additionalBookingLinksDataSource.data.length>0)("ngIfElse",M)}}const Kl=()=>["additionalBookingLinks"];function xl(N,Lt){if(1&N&&(o.ynx(0),o.YNc(1,em,9,2,"div",12),o.BQk()),2&N){const M=o.oxw(2);o.xp6(),o.Q6J("hasAnyFieldReadPermission",o.DdM(2,Kl))("hasAnyFieldReadPermissionFormHandler",M.formHandler)}}const ll=()=>({$implicit:"bookingLink"}),tm=()=>({$implicit:"bookingLinkText"});function Nc(N,Lt){if(1&N&&(o.TgZ(0,"div",7)(1,"div",8)(2,"h3",2),o._uU(3,"imxeventmanager.event.edit.panels.pricing.booking"),o.qZA(),o.TgZ(4,"div",9),o.YNc(5,Sn,1,0,"ng-container",10)(6,fi,1,0,"ng-container",10),o.qZA(),o.YNc(7,xl,2,3,"ng-container",11),o.ALo(8,"async"),o.qZA()()),2&N){const M=o.oxw(),pe=o.MAs(13);o.xp6(5),o.Q6J("ngTemplateOutlet",pe)("ngTemplateOutletContext",o.DdM(7,ll)),o.xp6(),o.Q6J("ngTemplateOutlet",pe)("ngTemplateOutletContext",o.DdM(8,tm)),o.xp6(),o.Q6J("ngIf",o.lcZ(8,5,M.additionalBookingLinksEnabled$))}}function Dd(N,Lt){1&N&&o.GkF(0)}function _c(N,Lt){1&N&&o.GkF(0)}const wc=()=>({$implicit:"advanceBookingStartDate"}),nm=()=>({$implicit:"advanceBookingStartTime"});function Id(N,Lt){if(1&N&&(o.TgZ(0,"div",7)(1,"div",8)(2,"h3",2),o._uU(3,"imxeventmanager.event.edit.panels.pricing.presales"),o.qZA(),o.TgZ(4,"div",9),o.YNc(5,Dd,1,0,"ng-container",10)(6,_c,1,0,"ng-container",10),o.qZA()()()),2&N){o.oxw();const M=o.MAs(13);o.xp6(5),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(4,wc)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(5,nm))}}function Ns(N,Lt){1&N&&(o.TgZ(0,"p",18),o._uU(1,"imxplatform.common.no-records"),o.qZA())}function Uc(N,Lt){1&N&&o._UZ(0,"tr",29)}function dn(N,Lt){1&N&&o._UZ(0,"tr",30)}function Mr(N,Lt){if(1&N&&(o.TgZ(0,"th",31),o._uU(1),o.qZA()),2&N){const M=o.oxw(3);o.xp6(),o.Oqu(M.formHandler.getFormFieldLabel("priceCategories:priceCategoryType"))}}function mn(N,Lt){if(1&N&&(o.TgZ(0,"td",32)(1,"span"),o._uU(2),o.ALo(3,"readI18n"),o.qZA()()),2&N){const M=Lt.$implicit;o.Q6J("formGroup",M),o.xp6(2),o.Oqu(o.lcZ(3,2,null==M.controls.priceCategoryType.value?null:M.controls.priceCategoryType.value.i18nName))}}function Nn(N,Lt){if(1&N&&(o.TgZ(0,"th",31),o._uU(1),o.qZA()),2&N){const M=o.oxw(3);o.xp6(),o.Oqu(M.formHandler.getFormFieldLabel("priceCategories:i18nName"))}}function Ci(N,Lt){if(1&N&&(o.TgZ(0,"td",32),o._UZ(1,"imx-form-control",33),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(3);o.Q6J("formGroup",M),o.xp6(),o.Q6J("field",pe.formHandler.formConfiguration.findFormFieldById("priceCategories:i18nName"))("control",M.controls.i18nName)("form",pe.formHandler.formGroup.get("priceCategories"))("formHandler",pe.formHandler)("config",pe.formHandler.formConfiguration)}}function Io(N,Lt){if(1&N&&(o.TgZ(0,"th",31),o._uU(1),o.qZA()),2&N){const M=o.oxw(3);o.xp6(),o.Oqu(M.formHandler.getFormFieldLabel("priceCategories:description"))}}function cr(N,Lt){if(1&N&&(o.TgZ(0,"td",32),o._UZ(1,"imx-form-control",33),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(3);o.Q6J("formGroup",M),o.xp6(),o.Q6J("field",pe.formHandler.formConfiguration.findFormFieldById("priceCategories:description"))("control",M.controls.description)("form",pe.formHandler.formGroup.get("priceCategories"))("formHandler",pe.formHandler)("config",pe.formHandler.formConfiguration)}}function ra(N,Lt){if(1&N&&(o.TgZ(0,"th",46),o._uU(1),o.qZA()),2&N){const M=o.oxw(3);o.xp6(),o.Oqu(M.formHandler.getFormFieldLabel("priceCategories:fromPrice"))}}function $a(N,Lt){if(1&N&&(o.TgZ(0,"td",47),o._UZ(1,"imx-form-control",33),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(3);o.Q6J("formGroup",M),o.xp6(),o.Q6J("field",pe.formHandler.formConfiguration.findFormFieldById("priceCategories:fromPrice"))("control",M.controls.fromPrice)("form",pe.formHandler.formGroup.get("priceCategories"))("formHandler",pe.formHandler)("config",pe.formHandler.formConfiguration)}}function xe(N,Lt){if(1&N&&(o.TgZ(0,"th",46),o._uU(1),o.qZA()),2&N){const M=o.oxw(3);o.xp6(),o.Oqu(M.formHandler.getFormFieldLabel("priceCategories:toPrice"))}}function h(N,Lt){if(1&N&&(o.TgZ(0,"td",47),o._UZ(1,"imx-form-control",33),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(3);o.Q6J("formGroup",M),o.xp6(),o.Q6J("field",pe.formHandler.formConfiguration.findFormFieldById("priceCategories:toPrice"))("control",M.controls.toPrice)("form",pe.formHandler.formGroup.get("priceCategories"))("formHandler",pe.formHandler)("config",pe.formHandler.formConfiguration)}}function k(N,Lt){if(1&N&&(o.TgZ(0,"th",46),o._uU(1),o.qZA()),2&N){const M=o.oxw(3);o.xp6(),o.Oqu(M.formHandler.getFormFieldLabel("priceCategories:bookable"))}}function se(N,Lt){if(1&N&&(o.TgZ(0,"td",47),o._UZ(1,"mat-checkbox",48),o.qZA()),2&N){const M=Lt.$implicit;o.Q6J("formGroup",M),o.xp6(),o.Q6J("formControl",M.controls.bookable)}}function de(N,Lt){1&N&&o._UZ(0,"th",34)}function Ae(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"a",37),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw().$implicit,xn=o.oxw(3);return o.KtG(xn.removePriceCategoryRow(xn.categoriesDataSource.filteredData.indexOf(Ze)))}),o.qZA()}}function Ct(N,Lt){if(1&N&&(o.TgZ(0,"td",35),o.YNc(1,Ae,1,0,"a",36),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(3);o.Q6J("formGroup",M),o.xp6(),o.Q6J("hasFieldWritePermission","priceCategories")("hasFieldWritePermissionFormHandler",pe.formHandler)}}function wt(N,Lt){if(1&N&&(o.TgZ(0,"table",19),o.YNc(1,Uc,1,0,"tr",20)(2,dn,1,0,"tr",21),o.ynx(3,38),o.YNc(4,Mr,2,1,"th",23)(5,mn,4,4,"td",24),o.BQk(),o.ynx(6,39),o.YNc(7,Nn,2,1,"th",23)(8,Ci,2,6,"td",24),o.BQk(),o.ynx(9,40),o.YNc(10,Io,2,1,"th",23)(11,cr,2,6,"td",24),o.BQk(),o.ynx(12,41),o.YNc(13,ra,2,1,"th",42)(14,$a,2,6,"td",43),o.BQk(),o.ynx(15,44),o.YNc(16,xe,2,1,"th",42)(17,h,2,6,"td",43),o.BQk(),o.ynx(18,45),o.YNc(19,k,2,1,"th",42)(20,se,2,2,"td",43),o.BQk(),o.ynx(21,26),o.YNc(22,de,1,0,"th",27)(23,Ct,2,3,"td",28),o.BQk(),o.qZA()),2&N){const M=o.oxw(2);o.Q6J("dataSource",M.categoriesDataSource),o.xp6(),o.Q6J("matHeaderRowDef",M.categoriesDisplayedColumns),o.xp6(),o.Q6J("matRowDefColumns",M.categoriesDisplayedColumns)}}function Mt(N,Lt){if(1&N&&(o.ynx(0),o._UZ(1,"imx-select",49),o.BQk()),2&N){const M=o.oxw(3);o.xp6(),o.Q6J("disableControl",0===M.selectablePriceCategories.length)("field",M.addPriceCategoryField)("control",M.addPriceCategoryControl)("form",M.formHandler.formGroup)("formHandler",M.formHandler)("optionProvider",M.selectablePriceCategories)}}function fn(N,Lt){if(1&N){const M=o.EpF();o.ynx(0),o.TgZ(1,"button",17),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw(3);return o.KtG(Ze.addNewPriceCategory())}),o._uU(2,"imxplatform.common.select-placeholder-add "),o.qZA(),o.BQk()}}function Qn(N,Lt){if(1&N&&(o.ynx(0),o.YNc(1,Mt,2,6,"ng-container",11)(2,fn,3,0,"ng-container",11),o.BQk()),2&N){const M=o.oxw(2);o.xp6(),o.Q6J("ngIf",M.allPriceCategoryTypes.length>0),o.xp6(),o.Q6J("ngIf",0===M.allPriceCategoryTypes.length)}}function ei(N,Lt){if(1&N&&(o.TgZ(0,"div",7)(1,"div",8)(2,"h3",2),o._uU(3,"imxeventmanager.event.edit.panels.pricing.categories"),o.qZA(),o.YNc(4,Ns,2,0,"ng-template",null,14,o.W1O),o.TgZ(6,"div",15),o.YNc(7,wt,24,3,"table",16),o.qZA(),o.YNc(8,Qn,3,2,"ng-container",11),o.ALo(9,"async"),o.ALo(10,"async"),o.qZA()()),2&N){const M=o.MAs(5),pe=o.oxw();o.xp6(7),o.Q6J("ngIf",pe.categoriesDataSource&&pe.categoriesDataSource.data.length>0)("ngIfElse",M),o.xp6(),o.Q6J("ngIf",o.lcZ(9,3,pe.formHandler.hasEditPermission("priceCategories"))&&o.lcZ(10,5,pe.formHandler.hasSavePermission()))}}function bi(N,Lt){1&N&&o.GkF(0)}function zi(N,Lt){1&N&&o.GkF(0)}function Be(N,Lt){1&N&&o.GkF(0)}function pt(N,Lt){1&N&&o.GkF(0)}function Ye(N,Lt){1&N&&o.GkF(0)}const ut=()=>({$implicit:"ticketOnline.showTicketlink"}),Kt=()=>({$implicit:"ticketOnline.locationNumber"}),en=()=>({$implicit:"ticketOnline.contributorClient"}),qn=()=>({$implicit:"ticketOnline.index"}),hi=()=>({$implicit:"ticketOnline.search"});function gi(N,Lt){if(1&N&&(o.TgZ(0,"div",7)(1,"div",8)(2,"h3",2),o._uU(3,"imxeventmanager.event.edit.panels.pricing.online-ticketing"),o.qZA(),o.YNc(4,bi,1,0,"ng-container",10),o.TgZ(5,"div",9),o.YNc(6,zi,1,0,"ng-container",10)(7,Be,1,0,"ng-container",10),o.qZA(),o.TgZ(8,"div",9),o.YNc(9,pt,1,0,"ng-container",10)(10,Ye,1,0,"ng-container",10),o.qZA()()()),2&N){o.oxw();const M=o.MAs(13);o.xp6(4),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(10,ut)),o.xp6(2),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(11,Kt)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(12,en)),o.xp6(2),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(13,qn)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(14,hi))}}function ko(N,Lt){if(1&N&&o._UZ(0,"imx-form-control",33),2&N){const M=Lt.$implicit,pe=o.oxw();o.Q6J("field",pe.formHandler.formConfiguration.findFormFieldById(M))("control",pe.formHandler.formGroup.get(M))("form",pe.formHandler.formGroup)("formHandler",pe.formHandler)("config",pe.formHandler.formConfiguration)}}const Wo=()=>["bookingLink","bookingLinkText","additionalBookingLinks"];let tr=(()=>{class N extends l.AbstractCoreDataObjectFormPanelComponent{constructor(M,pe,Ze){super(M,pe),this.entitiesMgr=M,this.dialog=pe,this.configurationProvider=Ze,this.priceUnitsAvailable=(0,ho.of)(!1),this.addPriceCategoryControl=new b.p4,this.addPriceCategoryField=new l.Select("addControl","",{initialValue:-1,placeholder:"imxplatform.common.select-placeholder-add"}),this.selectablePriceCategories=[],this.allPriceCategoryTypes=[],this.additionalBookingLinksEnabled$=(0,ho.of)(!1)}onRecordChange(){super.onRecordChange(),this.allPriceCategoryTypes.length>0&&this.determineSelectablePriceCategoryTypes()}ngOnInit(){this.additionalBookingLinksEnabled$=this.configurationProvider.getBoolean(co.c.IMXEVENTMANAGER_EVENT_ADDITIONAL_BOOKINGLINKS_ENABLED,!1),this.categoriesDataSource=this.prepareTable(this.formHandler.formGroup.get("priceCategories"),M=>this.categoriesDataSource=M),this.additionalBookingLinksDataSource=this.prepareTable(this.formHandler.formGroup.get("additionalBookingLinks"),M=>this.additionalBookingLinksDataSource=M),this.additionalBookingLinksColumns=this.determineTableColumns("additionalBookingLinks"),this.priceUnitsAvailable=this.baseEntityAvailable("PriceUnit"),this.entitiesMgr.getAllEntitiesOfType("PriceCategoryType").pipe((0,tl.q)(1)).subscribe(M=>{this.allPriceCategoryTypes=M.items.sort((pe,Ze)=>pe.id-Ze.id),this.categoriesDisplayedColumns=this.determineTableColumns("priceCategories"),this.categoriesDisplayedColumns.splice(0===this.allPriceCategoryTypes.length?0:1,1),this.determineSelectablePriceCategoryTypes()}),this.registerAddPriceCategoryButton()}removePriceCategoryRow(M){this.formHandler.removeLineFromCollection("priceCategories",M),this.determineSelectablePriceCategoryTypes()}removeAdditionalBookingLinksRow(M){this.formHandler.removeLineFromCollection("additionalBookingLinks",M)}registerAddPriceCategoryButton(){this.addPriceCategoryControl=new b.p4,this.addPriceCategoryControl.setValue(l.SELECT_PLACEHOLDER_VALUE),this.addPriceCategoryControl.valueChanges.pipe((0,ma.R)(this.destroy$),(0,Wa.h)(M=>void 0!==M&&M!==l.SELECT_PLACEHOLDER_VALUE)).subscribe(M=>{this.addPriceCategoryRow(M),this.addPriceCategoryControl.setValue(l.SELECT_PLACEHOLDER_VALUE)})}addPriceCategoryRow(M){const pe=this.formHandler.addNewCollectionRow("priceCategories",!1);pe.controls.priceCategoryType.setValue({id:M}),this.entitiesMgr.getEntityWithIdOfType("PriceCategoryType",M).subscribe(Ze=>{pe.controls.priceCategoryType.setValue(Ze),this.formHandler.formGroup.get("priceCategories").push(pe),this.formHandler.formGroup.get("priceCategories").markAsDirty(),this.determineSelectablePriceCategoryTypes()})}addNewPriceCategory(){this.formHandler.addNewCollectionRow("priceCategories",!0)}addAdditionalBookingLinksRow(){this.formHandler.addNewCollectionRow("additionalBookingLinks",!0)}determineSelectablePriceCategoryTypes(){const M=this.getAssignedPriceCategoryTypes();this.selectablePriceCategories=this.allPriceCategoryTypes.filter(pe=>!M.some(Ze=>Ze.id===pe.id)).map(pe=>({label:pe.i18nName,value:pe.id}))}getAssignedPriceCategoryTypes(){return this.formHandler.formGroup.get("priceCategories").controls.filter(M=>M.get("priceCategoryType")&&M.get("priceCategoryType").value).map(M=>M.get("priceCategoryType").value)}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(l.ImxEntitiesMgrService),o.Y36(t.uw),o.Y36(l.ConfigurationProvider))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-event-pricing-data-form-panel"]],features:[o.qOj],decls:14,vars:15,consts:[[1,"form__content-panel","pricing"],["id","pricing",1,"anchor"],["translate",""],["class","form__content-row",4,"ngIf"],["class","form__content-row",4,"hasAnyFieldReadPermission","hasAnyFieldReadPermissionFormHandler"],["class","form__content-row",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],["imxControl",""],[1,"form__content-row"],[1,"form__content-group"],[1,"form__content-field-row","wrap-sm"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],["class","additional_booking_links",4,"hasAnyFieldReadPermission","hasAnyFieldReadPermissionFormHandler"],[1,"additional_booking_links"],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],["translate","",1,"imx-button","prio2",3,"click"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","bookingLink"],["mat-header-cell","","translate","",4,"matHeaderCellDef"],["mat-cell","",3,"formGroup",4,"matCellDef"],["matColumnDef","bookingLinkText"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","","translate",""],["mat-cell","",3,"formGroup"],[3,"field","control","form","formHandler","config"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],["class","icon icon-trash imx-icon-middle imx-icon-clickable",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"],["matColumnDef","priceCategoryType"],["matColumnDef","i18nName"],["matColumnDef","description"],["matColumnDef","fromPrice"],["mat-header-cell","","class","tiny-column","translate","",4,"matHeaderCellDef"],["mat-cell","","class","tiny-column",3,"formGroup",4,"matCellDef"],["matColumnDef","toPrice"],["matColumnDef","bookable"],["mat-header-cell","","translate","",1,"tiny-column"],["mat-cell","",1,"tiny-column",3,"formGroup"],[1,"small",3,"formControl"],[1,"imx-button-select",3,"disableControl","field","control","form","formHandler","optionProvider"]],template:function(pe,Ze){1&pe&&(o.TgZ(0,"div",0),o._UZ(1,"div",1),o.TgZ(2,"h2",2),o._uU(3,"imxeventmanager.event.edit.panels.pricing.header"),o.qZA(),o.YNc(4,nt,13,21,"div",3),o.ALo(5,"async"),o.YNc(6,Nc,9,9,"div",4)(7,Id,7,6,"div",3),o.ALo(8,"async"),o.YNc(9,ei,11,7,"div",5)(10,gi,11,15,"div",3),o.ALo(11,"async"),o.qZA(),o.YNc(12,ko,1,5,"ng-template",null,6,o.W1O)),2&pe&&(o.xp6(),o.uIk("data-scroll-id","pricing"),o.xp6(3),o.Q6J("ngIf",o.lcZ(5,8,Ze.formHandler.hasReadPermission("pricing"))),o.xp6(2),o.Q6J("hasAnyFieldReadPermission",o.DdM(14,Wo))("hasAnyFieldReadPermissionFormHandler",Ze.formHandler),o.xp6(),o.Q6J("ngIf",o.lcZ(8,10,Ze.formHandler.hasReadPermission("advanceBooking"))),o.xp6(2),o.Q6J("hasFieldReadPermission","priceCategories")("hasFieldReadPermissionFormHandler",Ze.formHandler),o.xp6(),o.Q6J("ngIf",o.lcZ(11,12,Ze.formHandler.hasReadPermission("ticketOnline"))))},dependencies:[u.A,Qr.H,Aa.l,ki.j,ss.X,ee.F,m.O5,m.tP,b.JJ,b.JL,Bt.oG,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,b.oH,b.sg,I.Pi,Ls.j,m.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.checkbox-wrapper[_ngcontent-%COMP%]{margin:auto 0}.tiny-column[_ngcontent-%COMP%]{width:10%}.additional_booking_links[_ngcontent-%COMP%]{margin-top:10px}[_nghost-%COMP%]     .mdc-data-table__cell{overflow:visible}"],changeDetection:0})}return N})(),br=(()=>{class N{constructor(M){this.data=M}getDialogResult(){return this.data}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(t.WI))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["ng-component"]],decls:28,vars:39,consts:[["heading","imxeventmanager.event.edit.panels.appearances.header","icon","icon-pencil",3,"getSubmitResult"],[1,"dialog-form"],[1,"dialog-form-group"],[1,"form__content-field-row"],[3,"field","control","form","formHandler","config"],[1,"checkbox-group"],[1,"small",3,"ngModel","ngModelChange"]],template:function(pe,Ze){1&pe&&(o.TgZ(0,"imx-dialog",0)(1,"div",1)(2,"div",2)(3,"div",3),o._UZ(4,"imx-form-control",4)(5,"imx-form-control",4)(6,"imx-form-control",4),o.qZA()(),o.TgZ(7,"div",2)(8,"h3"),o._uU(9),o.ALo(10,"translate"),o.qZA(),o.TgZ(11,"div",5)(12,"mat-checkbox",6),o.NdJ("ngModelChange",function(Si){return Ze.data.ownAppearances=Si}),o._uU(13),o.ALo(14,"translate"),o.TgZ(15,"b"),o._uU(16),o.ALo(17,"translate"),o.qZA(),o._uU(18),o.ALo(19,"translate"),o.qZA(),o.TgZ(20,"mat-checkbox",6),o.NdJ("ngModelChange",function(Si){return Ze.data.subscribedAppearances=Si}),o._uU(21),o.ALo(22,"translate"),o.TgZ(23,"b"),o._uU(24),o.ALo(25,"translate"),o.qZA(),o._uU(26),o.ALo(27,"translate"),o.qZA()()()()()),2&pe&&(o.Q6J("getSubmitResult",Ze.getDialogResult.bind(Ze)),o.xp6(4),o.Q6J("field",Ze.data.formHandler.formConfiguration.findFormFieldById("defaultAppearance:fromDate"))("control",Ze.data.formRow.get("fromDate"))("form",Ze.data.formRow)("formHandler",Ze.data.formHandler)("config",Ze.data.formHandler.formConfiguration),o.xp6(),o.Q6J("field",Ze.data.formHandler.formConfiguration.findFormFieldById("defaultAppearance:toDate"))("control",Ze.data.formRow.get("toDate"))("form",Ze.data.formRow)("formHandler",Ze.data.formHandler)("config",Ze.data.formHandler.formConfiguration),o.xp6(),o.Q6J("field",Ze.data.formHandler.formConfiguration.findFormFieldById("defaultAppearance:languages"))("control",Ze.data.formRow.get("languages"))("form",Ze.data.formRow)("formHandler",Ze.data.formHandler)("config",Ze.data.formHandler.formConfiguration),o.xp6(3),o.Oqu(o.lcZ(10,25,"imxeventmanager.event.edit.panels.appearances.restrictive-changes")),o.xp6(3),o.Q6J("ngModel",Ze.data.ownAppearances),o.xp6(),o.hij("",o.lcZ(14,27,"imxeventmanager.event.edit.panels.appearances.apply-for")," "),o.xp6(3),o.Oqu(o.lcZ(17,29,"imxeventmanager.event.edit.panels.appearances.own")),o.xp6(2),o.hij(" ",o.lcZ(19,31,"imxeventmanager.event.filter.appearanceFilter.appearances"),""),o.xp6(2),o.Q6J("ngModel",Ze.data.subscribedAppearances),o.xp6(),o.hij("",o.lcZ(22,33,"imxeventmanager.event.edit.panels.appearances.apply-for")," "),o.xp6(3),o.Oqu(o.lcZ(25,35,"imxeventmanager.event.edit.panels.appearances.subscribed")),o.xp6(2),o.hij(" ",o.lcZ(27,37,"imxeventmanager.event.filter.appearanceFilter.appearances"),""))},dependencies:[x.a,u.A,b.JJ,b.On,Bt.oG,I.X$],styles:[".checkbox-group[_ngcontent-%COMP%]{margin:10px 0}"]})}return N})();var fa=a(10444);function ga(N,Lt){1&N&&(o.TgZ(0,"p",12),o._uU(1,"imxplatform.common.no-records"),o.qZA())}function $r(N,Lt){1&N&&o._UZ(0,"tr",26)}function Rr(N,Lt){1&N&&o._UZ(0,"tr",27)}function Xr(N,Lt){if(1&N&&(o.TgZ(0,"th",28),o._uU(1),o.qZA()),2&N){const M=o.oxw(4);o.xp6(),o.Oqu(M.formHandler.getFormFieldLabel("defaultAppearance:fromDate"))}}function Es(N,Lt){if(1&N&&(o.TgZ(0,"td",29)(1,"span"),o._uU(2),o.ALo(3,"date"),o.qZA()()),2&N){const M=Lt.$implicit;o.xp6(2),o.Oqu(o.xi3(3,1,M.get("fromDate").value,"dd.MM.yyyy"))}}function Ys(N,Lt){if(1&N&&(o.TgZ(0,"th",28),o._uU(1),o.qZA()),2&N){const M=o.oxw(4);o.xp6(),o.Oqu(M.formHandler.getFormFieldLabel("defaultAppearance:toDate"))}}function qa(N,Lt){if(1&N&&(o.TgZ(0,"td",29)(1,"span"),o._uU(2),o.ALo(3,"date"),o.qZA()()),2&N){const M=Lt.$implicit;o.xp6(2),o.Oqu(o.xi3(3,1,M.get("toDate").value,"dd.MM.yyyy"))}}function Qs(N,Lt){if(1&N&&(o.TgZ(0,"th",30),o._uU(1),o.qZA()),2&N){const M=o.oxw(4);o.xp6(),o.Oqu(M.formHandler.getFormFieldLabel("defaultAppearance:languagesSelect"))}}function ic(N,Lt){if(1&N&&(o.TgZ(0,"td",31),o._UZ(1,"imx-form-control",32),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(4);o.Q6J("formGroup",M),o.xp6(),o.Q6J("field",pe.formHandler.formConfiguration.findFormFieldById("defaultAppearance:languagesSelect"))("control",M.controls.languagesSelect)("form",M)("formHandler",pe.formHandler)("config",pe.formHandler.formConfiguration)}}function wl(N,Lt){1&N&&o._UZ(0,"th",33)}function md(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"td",34)(1,"imx-dropup-button")(2,"imx-action-menu")(3,"imx-action-menu-item",35),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw(4);return o.KtG(Ze.editDefaultAppearance())}),o._uU(4,"imxplatform.common-entity.list.edit "),o.qZA(),o.TgZ(5,"imx-action-menu-item",36),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw(4);return o.KtG(Ze.removeDefaultAppearance())}),o._uU(6,"imxplatform.common-entity.list.remove "),o.qZA()()()()}2&N&&(o.xp6(3),o.Q6J("icon","icon-pencil"),o.xp6(2),o.Q6J("icon","icon-trash"))}function Dc(N,Lt){if(1&N&&(o.TgZ(0,"table",13),o.YNc(1,$r,1,0,"tr",14)(2,Rr,1,0,"tr",15),o.ynx(3,16),o.YNc(4,Xr,2,1,"th",17)(5,Es,4,4,"td",18),o.BQk(),o.ynx(6,19),o.YNc(7,Ys,2,1,"th",17)(8,qa,4,4,"td",18),o.BQk(),o.ynx(9,20),o.YNc(10,Qs,2,1,"th",21)(11,ic,2,6,"td",22),o.BQk(),o.ynx(12,23),o.YNc(13,wl,1,0,"th",24)(14,md,7,2,"td",25),o.BQk(),o.qZA()),2&N){const M=o.oxw(3);o.Q6J("dataSource",M.defaultAppearanceDataSource),o.xp6(),o.Q6J("matHeaderRowDef",M.defaultAppearanceTableColumns),o.xp6(),o.Q6J("matRowDefColumns",M.defaultAppearanceTableColumns)}}function yc(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"button",37),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw(3);return o.KtG(Ze.addNewDefaultAppearance())}),o._uU(1),o.ALo(2,"translate"),o.qZA()}2&N&&(o.xp6(),o.hij("",o.lcZ(2,1,"imxeventmanager.event.edit.panels.appearances.standard-new")," "))}function Wc(N,Lt){if(1&N&&(o.TgZ(0,"div",4)(1,"h3"),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.YNc(4,ga,2,0,"ng-template",null,8,o.W1O),o.TgZ(6,"div",9),o.YNc(7,Dc,15,3,"table",10),o.qZA(),o.YNc(8,yc,3,3,"button",11),o.ALo(9,"async"),o.ALo(10,"async"),o.qZA()),2&N){const M=o.MAs(5),pe=o.oxw(2);o.xp6(2),o.Oqu(o.lcZ(3,4,"entity.Event.defaultAppearance")),o.xp6(5),o.Q6J("ngIf",pe.defaultAppearanceDataSource&&pe.defaultAppearanceDataSource.data.length>0)("ngIfElse",M),o.xp6(),o.Q6J("ngIf",!pe.defaultAppearanceAvailable&&o.lcZ(9,6,pe.formHandler.hasEditPermission("appearance"))&&o.lcZ(10,8,pe.formHandler.hasSavePermission()))}}function im(N,Lt){if(1&N&&(o.TgZ(0,"div",3),o.YNc(1,Wc,11,10,"div",7),o.qZA()),2&N){const M=o.oxw();o.xp6(),o.Q6J("hasFieldReadPermission","defaultAppearance")("hasFieldReadPermissionFormHandler",M.formHandler)}}function Vl(N,Lt){1&N&&(o.TgZ(0,"p",12),o._uU(1,"imxplatform.common.no-records"),o.qZA())}function zc(N,Lt){1&N&&o._UZ(0,"tr",26)}function Il(N,Lt){1&N&&o._UZ(0,"tr",27)}function Bc(N,Lt){if(1&N&&(o.TgZ(0,"th",28),o._uU(1),o.qZA()),2&N){const M=o.oxw(4);o.xp6(),o.Oqu(M.formHandler.getFormFieldLabel("appearances:fromDate"))}}function Ac(N,Lt){if(1&N&&(o.TgZ(0,"td",43),o._UZ(1,"imx-form-control",32),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(4);o.Q6J("formGroup",M),o.xp6(),o.Q6J("field",pe.formHandler.formConfiguration.findFormFieldById("appearances:fromDate"))("control",M.controls.fromDate)("form",pe.formHandler.formGroup.get("appearances"))("formHandler",pe.formHandler)("config",pe.formHandler.formConfiguration)}}function Xl(N,Lt){if(1&N&&(o.TgZ(0,"th",28),o._uU(1),o.qZA()),2&N){const M=o.oxw(4);o.xp6(),o.Oqu(M.formHandler.getFormFieldLabel("appearances:toDate"))}}function uc(N,Lt){if(1&N&&(o.TgZ(0,"td",43),o._UZ(1,"imx-form-control",32),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(4);o.Q6J("formGroup",M),o.xp6(),o.Q6J("field",pe.formHandler.formConfiguration.findFormFieldById("appearances:toDate"))("control",M.controls.toDate)("form",pe.formHandler.formGroup.get("appearances"))("formHandler",pe.formHandler)("config",pe.formHandler.formConfiguration)}}function Oc(N,Lt){if(1&N&&(o.TgZ(0,"th",44),o._uU(1),o.qZA()),2&N){const M=o.oxw(4);o.xp6(),o.Oqu(M.formHandler.getFormFieldLabel("appearances:deliveryChannel"))}}const jc=()=>({width:"100%"});function pc(N,Lt){if(1&N&&(o.TgZ(0,"td",45)(1,"div",46),o._UZ(2,"imx-base-select",47),o.qZA()()),2&N){const M=Lt.$implicit,pe=o.oxw(4);o.Q6J("formGroup",M),o.xp6(),o.Q6J("ngStyle",o.DdM(5,jc))("formGroup",M),o.xp6(),o.Q6J("options",pe.getDeliveryChannelOptionsForAppearance(M))("required",!0)}}function Ul(N,Lt){if(1&N&&(o.TgZ(0,"th",30),o._uU(1),o.qZA()),2&N){const M=o.oxw(4);o.xp6(),o.Oqu(M.formHandler.getFormFieldLabel("appearances:languages"))}}function Xc(N,Lt){if(1&N&&(o.TgZ(0,"td",31),o._UZ(1,"imx-form-control",32),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(4);o.Q6J("formGroup",M),o.xp6(),o.Q6J("field",pe.formHandler.formConfiguration.findFormFieldById("appearances:languages"))("control",M.controls.languages)("form",pe.formHandler.formGroup.get("appearances"))("formHandler",pe.formHandler)("config",pe.formHandler.formConfiguration)}}function ec(N,Lt){1&N&&o._UZ(0,"th",33)}function vd(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"imx-action-menu-item",35),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw(2),xn=Ze.index,Si=Ze.$implicit,Ga=o.oxw(4);return o.KtG(Ga.refuseAppearance("appearances",xn,Si))}),o._uU(1," imxeventmanager.event.edit.panels.appearances.refuse "),o.qZA()}2&N&&o.Q6J("icon","icon-earth-lock")}function bd(N,Lt){if(1&N){const M=o.EpF();o.ynx(0),o.TgZ(1,"imx-dropup-button")(2,"imx-action-menu"),o.YNc(3,vd,2,1,"imx-action-menu-item",50),o.TgZ(4,"imx-action-menu-item",36),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw().index,xn=o.oxw(4);return o.KtG(xn.removeFromList("appearances",Ze))}),o._uU(5,"imxplatform.common-entity.list.remove "),o.qZA()()(),o.BQk()}if(2&N){const M=o.oxw().$implicit,pe=o.oxw(4);let Ze;o.xp6(3),o.Q6J("ngIf",(null==(Ze=M.get(pe.ARRAY_ID_FIELD))?null:Ze.value)||(null==(Ze=M.get(pe.ARRAY_ENTITY_FIELD))?null:Ze.value)),o.xp6(),o.Q6J("icon","icon-trash")}}function Sd(N,Lt){if(1&N&&(o.TgZ(0,"td",48),o.YNc(1,bd,6,2,"ng-container",49),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(4);o.Q6J("formGroup",M),o.xp6(),o.Q6J("ngIf",pe.hasAppearanceEditPermission(M))}}function Ru(N,Lt){if(1&N&&(o.TgZ(0,"table",13),o.YNc(1,zc,1,0,"tr",14)(2,Il,1,0,"tr",15),o.ynx(3,16),o.YNc(4,Bc,2,1,"th",17)(5,Ac,2,6,"td",38),o.BQk(),o.ynx(6,19),o.YNc(7,Xl,2,1,"th",17)(8,uc,2,6,"td",38),o.BQk(),o.ynx(9,39),o.YNc(10,Oc,2,1,"th",40)(11,pc,3,6,"td",41),o.BQk(),o.ynx(12,20),o.YNc(13,Ul,2,1,"th",21)(14,Xc,2,6,"td",22),o.BQk(),o.ynx(15,23),o.YNc(16,ec,1,0,"th",24)(17,Sd,2,2,"td",42),o.BQk(),o.qZA()),2&N){const M=o.oxw(3);o.Q6J("dataSource",M.confirmedAppearancesDataSource),o.xp6(),o.Q6J("matHeaderRowDef",M.appearancesTableColumns),o.xp6(),o.Q6J("matRowDefColumns",M.appearancesTableColumns)}}function mm(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"button",37),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw(3);return o.KtG(Ze.addNewConfirmedAppearance())}),o._uU(1),o.ALo(2,"translate"),o.qZA()}2&N&&(o.xp6(),o.hij(" ",o.lcZ(2,1,"imxplatform.common-entity.edit.panels.appearance.new")," "))}function hu(N,Lt){if(1&N&&(o.TgZ(0,"div",4)(1,"h3"),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.YNc(4,Vl,2,0,"ng-template",null,8,o.W1O),o.TgZ(6,"div",9),o.YNc(7,Ru,18,3,"table",10),o.qZA(),o.YNc(8,mm,3,3,"button",11),o.ALo(9,"async"),o.ALo(10,"async"),o.qZA()),2&N){const M=o.MAs(5),pe=o.oxw(2);o.xp6(2),o.Oqu(o.lcZ(3,4,"entity.Event.appearances")),o.xp6(5),o.Q6J("ngIf",pe.confirmedAppearancesDataSource&&pe.confirmedAppearancesDataSource.data.length>0)("ngIfElse",M),o.xp6(),o.Q6J("ngIf",o.lcZ(9,6,pe.formHandler.hasEditPermission("appearance"))&&o.lcZ(10,8,pe.formHandler.hasSavePermission()))}}function Fd(N,Lt){if(1&N&&(o.TgZ(0,"div",3),o.YNc(1,hu,11,10,"div",7),o.qZA()),2&N){const M=o.oxw();o.xp6(),o.Q6J("hasFieldReadPermission","appearances")("hasFieldReadPermissionFormHandler",M.formHandler)}}function tc(N,Lt){1&N&&(o.TgZ(0,"p",12),o._uU(1,"imxplatform.common.no-records"),o.qZA())}function Km(N,Lt){1&N&&o._UZ(0,"tr",26)}function um(N,Lt){1&N&&o._UZ(0,"tr",27)}function ad(N,Lt){if(1&N&&(o.TgZ(0,"th",28),o._uU(1),o.qZA()),2&N){const M=o.oxw(4);o.xp6(),o.Oqu(M.formHandler.getFormFieldLabel("pendingAppearances:fromDate"))}}function Zc(N,Lt){if(1&N&&(o.TgZ(0,"td",43),o._UZ(1,"imx-form-control",32),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(4);o.Q6J("formGroup",M),o.xp6(),o.Q6J("field",pe.formHandler.formConfiguration.findFormFieldById("pendingAppearances:fromDate"))("control",M.controls.fromDate)("form",pe.formHandler.formGroup.get("pendingAppearances"))("formHandler",pe.formHandler)("config",pe.formHandler.formConfiguration)}}function Cd(N,Lt){if(1&N&&(o.TgZ(0,"th",28),o._uU(1),o.qZA()),2&N){const M=o.oxw(4);o.xp6(),o.Oqu(M.formHandler.getFormFieldLabel("pendingAppearances:toDate"))}}function Rm(N,Lt){if(1&N&&(o.TgZ(0,"td",43),o._UZ(1,"imx-form-control",32),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(4);o.Q6J("formGroup",M),o.xp6(),o.Q6J("field",pe.formHandler.formConfiguration.findFormFieldById("pendingAppearances:toDate"))("control",M.controls.toDate)("form",pe.formHandler.formGroup.get("pendingAppearances"))("formHandler",pe.formHandler)("config",pe.formHandler.formConfiguration)}}function om(N,Lt){if(1&N&&(o.TgZ(0,"th",44),o._uU(1),o.qZA()),2&N){const M=o.oxw(4);o.xp6(),o.Oqu(M.formHandler.getFormFieldLabel("pendingAppearances:deliveryChannel"))}}function pm(N,Lt){if(1&N&&(o.TgZ(0,"td",45)(1,"div",46),o._UZ(2,"imx-base-select",47),o.qZA()()),2&N){const M=Lt.$implicit,pe=o.oxw(4);o.Q6J("formGroup",M),o.xp6(),o.Q6J("ngStyle",o.DdM(5,jc))("formGroup",M),o.xp6(),o.Q6J("options",pe.getDeliveryChannelOptionsForAppearance(M))("required",!0)}}function Ld(N,Lt){if(1&N&&(o.TgZ(0,"th",30),o._uU(1),o.qZA()),2&N){const M=o.oxw(4);o.xp6(),o.Oqu(M.formHandler.getFormFieldLabel("pendingAppearances:languages"))}}function jd(N,Lt){if(1&N&&(o.TgZ(0,"td",31),o._UZ(1,"imx-form-control",32),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(4);o.Q6J("formGroup",M),o.xp6(),o.Q6J("field",pe.formHandler.formConfiguration.findFormFieldById("pendingAppearances:languages"))("control",M.controls.languages)("form",pe.formHandler.formGroup.get("pendingAppearances"))("formHandler",pe.formHandler)("config",pe.formHandler.formConfiguration)}}function Ud(N,Lt){1&N&&o._UZ(0,"th",33)}function km(N,Lt){if(1&N){const M=o.EpF();o.ynx(0),o.TgZ(1,"imx-dropup-button")(2,"imx-action-menu")(3,"imx-action-menu-item",35),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw(),xn=Ze.index,Si=Ze.$implicit,Ga=o.oxw(4);return o.KtG(Ga.confirmAppearance("pendingAppearances",xn,Si))}),o._uU(4," imxeventmanager.event.edit.panels.appearances.confirm "),o.qZA(),o.TgZ(5,"imx-action-menu-item",35),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw(),xn=Ze.index,Si=Ze.$implicit,Ga=o.oxw(4);return o.KtG(Ga.refuseAppearance("pendingAppearances",xn,Si))}),o._uU(6," imxeventmanager.event.edit.panels.appearances.refuse "),o.qZA(),o.TgZ(7,"imx-action-menu-item",36),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw().index,xn=o.oxw(4);return o.KtG(xn.removeFromList("pendingAppearances",Ze))}),o._uU(8," imxplatform.common-entity.list.remove "),o.qZA()()(),o.BQk()}2&N&&(o.xp6(3),o.Q6J("icon","icon-earth"),o.xp6(2),o.Q6J("icon","icon-earth-lock"),o.xp6(2),o.Q6J("icon","icon-trash"))}function Nm(N,Lt){if(1&N&&(o.TgZ(0,"td",48),o.YNc(1,km,9,3,"ng-container",49),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(4);o.Q6J("formGroup",M),o.xp6(),o.Q6J("ngIf",pe.hasAppearanceEditPermission(M))}}function xu(N,Lt){if(1&N&&(o.TgZ(0,"table",13),o.YNc(1,Km,1,0,"tr",14)(2,um,1,0,"tr",15),o.ynx(3,16),o.YNc(4,ad,2,1,"th",17)(5,Zc,2,6,"td",38),o.BQk(),o.ynx(6,19),o.YNc(7,Cd,2,1,"th",17)(8,Rm,2,6,"td",38),o.BQk(),o.ynx(9,39),o.YNc(10,om,2,1,"th",40)(11,pm,3,6,"td",41),o.BQk(),o.ynx(12,20),o.YNc(13,Ld,2,1,"th",21)(14,jd,2,6,"td",22),o.BQk(),o.ynx(15,23),o.YNc(16,Ud,1,0,"th",24)(17,Nm,2,2,"td",42),o.BQk(),o.qZA()),2&N){const M=o.oxw(3);o.Q6J("dataSource",M.pendingAppearancesDataSource),o.xp6(),o.Q6J("matHeaderRowDef",M.appearancesTableColumns),o.xp6(),o.Q6J("matRowDefColumns",M.appearancesTableColumns)}}function $u(N,Lt){if(1&N&&(o.TgZ(0,"div",4)(1,"h3"),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.YNc(4,tc,2,0,"ng-template",null,8,o.W1O),o.TgZ(6,"div",9),o.YNc(7,xu,18,3,"table",10),o.qZA()()),2&N){const M=o.MAs(5),pe=o.oxw(2);o.xp6(2),o.Oqu(o.lcZ(3,3,"entity.Event.pendingAppearances")),o.xp6(5),o.Q6J("ngIf",pe.pendingAppearancesDataSource&&pe.pendingAppearancesDataSource.data.length>0)("ngIfElse",M)}}function Kd(N,Lt){if(1&N&&(o.TgZ(0,"div",3),o.YNc(1,$u,8,5,"div",7),o.qZA()),2&N){const M=o.oxw();o.xp6(),o.Q6J("hasFieldReadPermission","pendingAppearances")("hasFieldReadPermissionFormHandler",M.formHandler)}}function $m(N,Lt){1&N&&(o.TgZ(0,"p",12),o._uU(1,"imxplatform.common.no-records"),o.qZA())}function ed(N,Lt){1&N&&o._UZ(0,"tr",26)}function ku(N,Lt){1&N&&o._UZ(0,"tr",27)}function _m(N,Lt){if(1&N&&(o.TgZ(0,"th",28),o._uU(1),o.qZA()),2&N){const M=o.oxw(4);o.xp6(),o.Oqu(M.formHandler.getFormFieldLabel("refusedAppearances:fromDate"))}}function qm(N,Lt){if(1&N&&(o.TgZ(0,"td",43),o._UZ(1,"imx-form-control",32),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(4);o.Q6J("formGroup",M),o.xp6(),o.Q6J("field",pe.formHandler.formConfiguration.findFormFieldById("refusedAppearances:fromDate"))("control",M.controls.fromDate)("form",pe.formHandler.formGroup.get("refusedAppearances"))("formHandler",pe.formHandler)("config",pe.formHandler.formConfiguration)}}function Xm(N,Lt){if(1&N&&(o.TgZ(0,"th",28),o._uU(1),o.qZA()),2&N){const M=o.oxw(4);o.xp6(),o.Oqu(M.formHandler.getFormFieldLabel("refusedAppearances:toDate"))}}function Um(N,Lt){if(1&N&&(o.TgZ(0,"td",43),o._UZ(1,"imx-form-control",32),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(4);o.Q6J("formGroup",M),o.xp6(),o.Q6J("field",pe.formHandler.formConfiguration.findFormFieldById("refusedAppearances:toDate"))("control",M.controls.toDate)("form",pe.formHandler.formGroup.get("refusedAppearances"))("formHandler",pe.formHandler)("config",pe.formHandler.formConfiguration)}}function sd(N,Lt){if(1&N&&(o.TgZ(0,"th",44),o._uU(1),o.qZA()),2&N){const M=o.oxw(4);o.xp6(),o.Oqu(M.formHandler.getFormFieldLabel("refusedAppearances:deliveryChannel"))}}function Kc(N,Lt){if(1&N&&(o.TgZ(0,"td",45)(1,"div",46),o._UZ(2,"imx-base-select",47),o.qZA()()),2&N){const M=Lt.$implicit,pe=o.oxw(4);o.Q6J("formGroup",M),o.xp6(),o.Q6J("ngStyle",o.DdM(5,jc))("formGroup",M),o.xp6(),o.Q6J("options",pe.getDeliveryChannelOptionsForAppearance(M))("required",!0)}}function fm(N,Lt){if(1&N&&(o.TgZ(0,"th",30),o._uU(1),o.qZA()),2&N){const M=o.oxw(4);o.xp6(),o.Oqu(M.formHandler.getFormFieldLabel("refusedAppearances:languages"))}}function Nu(N,Lt){if(1&N&&(o.TgZ(0,"td",31),o._UZ(1,"imx-form-control",32),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(4);o.Q6J("formGroup",M),o.xp6(),o.Q6J("field",pe.formHandler.formConfiguration.findFormFieldById("refusedAppearances:languages"))("control",M.controls.languages)("form",pe.formHandler.formGroup.get("refusedAppearances"))("formHandler",pe.formHandler)("config",pe.formHandler.formConfiguration)}}function yd(N,Lt){1&N&&o._UZ(0,"th",33)}function gm(N,Lt){if(1&N){const M=o.EpF();o.ynx(0),o.TgZ(1,"imx-dropup-button")(2,"imx-action-menu")(3,"imx-action-menu-item",35),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw(),xn=Ze.index,Si=Ze.$implicit,Ga=o.oxw(4);return o.KtG(Ga.confirmAppearance("refusedAppearances",xn,Si))}),o._uU(4," imxeventmanager.event.edit.panels.appearances.confirm "),o.qZA(),o.TgZ(5,"imx-action-menu-item",36),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw().index,xn=o.oxw(4);return o.KtG(xn.removeFromList("refusedAppearances",Ze))}),o._uU(6," imxplatform.common-entity.list.remove "),o.qZA()()(),o.BQk()}2&N&&(o.xp6(3),o.Q6J("icon","icon-earth"),o.xp6(2),o.Q6J("icon","icon-trash"))}function vu(N,Lt){if(1&N&&(o.TgZ(0,"td",48),o.YNc(1,gm,7,2,"ng-container",49),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(4);o.Q6J("formGroup",M),o.xp6(),o.Q6J("ngIf",pe.hasAppearanceEditPermission(M))}}function bu(N,Lt){if(1&N&&(o.TgZ(0,"table",13),o.YNc(1,ed,1,0,"tr",14)(2,ku,1,0,"tr",15),o.ynx(3,16),o.YNc(4,_m,2,1,"th",17)(5,qm,2,6,"td",38),o.BQk(),o.ynx(6,19),o.YNc(7,Xm,2,1,"th",17)(8,Um,2,6,"td",38),o.BQk(),o.ynx(9,39),o.YNc(10,sd,2,1,"th",40)(11,Kc,3,6,"td",41),o.BQk(),o.ynx(12,20),o.YNc(13,fm,2,1,"th",21)(14,Nu,2,6,"td",22),o.BQk(),o.ynx(15,23),o.YNc(16,yd,1,0,"th",24)(17,vu,2,2,"td",42),o.BQk(),o.qZA()),2&N){const M=o.oxw(3);o.Q6J("dataSource",M.refusedAppearancesDataSource),o.xp6(),o.Q6J("matHeaderRowDef",M.appearancesTableColumns),o.xp6(),o.Q6J("matRowDefColumns",M.appearancesTableColumns)}}function Od(N,Lt){if(1&N&&(o.TgZ(0,"div",4)(1,"h3"),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.TgZ(4,"div",51),o.YNc(5,$m,2,0,"ng-template",null,8,o.W1O),o.TgZ(7,"div",9),o.YNc(8,bu,18,3,"table",10),o.qZA()()()),2&N){const M=o.MAs(6),pe=o.oxw(2);o.xp6(2),o.Oqu(o.lcZ(3,3,"entity.Event.refusedAppearances")),o.xp6(6),o.Q6J("ngIf",pe.refusedAppearancesDataSource&&pe.refusedAppearancesDataSource.data.length>0)("ngIfElse",M)}}function Uu(N,Lt){if(1&N&&(o.TgZ(0,"div",3),o.YNc(1,Od,9,5,"div",7),o.qZA()),2&N){const M=o.oxw();o.xp6(),o.Q6J("hasFieldReadPermission","refusedAppearances")("hasFieldReadPermissionFormHandler",M.formHandler)}}let qu=(()=>{class N extends l.AbstractCoreDataObjectFormPanelComponent{constructor(M,pe,Ze,xn,Si,Ga,xs,vs,bl){super(M,pe),this.entitiesMgr=M,this.dialog=pe,this.entityCollectionsService=Ze,this.entityStateDao=xn,this.configurationProvider=Si,this.changeDetectorRef=Ga,this.deliveryChannelOptionProviderService=xs,this.runtimeContextService=vs,this.translateService=bl,this.logger=(0,s.jl)("EventAppearanceFormPanelComponent",nl.H.name),this.ARRAY_ID_FIELD=l.ARRAY_ID_FIELD,this.ARRAY_ENTITY_FIELD=l.ARRAY_ENTITY_FIELD,this.entityStateDisabled=!1,this.appearancesTableColumns=["fromDate","toDate","deliveryChannel","languages","removeColumn"],this.defaultAppearanceTableColumns=["fromDate","toDate","languages","removeColumn"],this.defaultAppearanceAvailable=!1,this.hasDeliveryChannelLogic=!0,this.appearanceDeliveryChannelOptions=new Map,this.clientNewAppearanceDeliveryChannelOptions=[],this.appearanceEditPermissions=new Map,this.shownActionMenu=new Map}onRecordChange(){if(super.onRecordChange(),this.entityStateDisabled=this.record.entityState.key===wo.Zr.key,this.entityStateOptions$=this._loadEntityStateOptions(),this.defaultAppearanceAvailable=this.isDefaultAppearanceAvailable(),this.defaultAppearanceAvailable)this.defaultAppearanceDataSource=new p.by([this.getDefaultAppearanceFormGroup()]);else{this.defaultAppearanceDataSource=new p.by([]);const M=this.getDefaultAppearanceFormGroup();M&&Object.keys(M.controls).forEach(pe=>{M.removeControl(pe)})}this.confirmedAppearancesDataSource=this.prepareTable(this.formHandler.formGroup.get("appearances"),M=>this.confirmedAppearancesDataSource=M),this.refusedAppearancesDataSource=this.prepareTable(this.formHandler.formGroup.get("refusedAppearances"),M=>this.refusedAppearancesDataSource=M),this.pendingAppearancesDataSource=this.prepareTable(this.formHandler.formGroup.get("pendingAppearances"),M=>this.pendingAppearancesDataSource=M),this.initAppearances()}ngOnInit(){this.shownActionMenu.clear(),this.hasDeliveryChannelLogic=this.formHandler.hasDeliveryChannelLogic(),this.hasDeliveryChannelLogic&&(this.getDefaultAppearanceFormGroup().get("toDate")&&this.subscribeToDefaultAppearanceToDate(),this.getDefaultAppearanceFormGroup().valueChanges.pipe((0,ma.R)(this.destroy$)).subscribe(M=>{!this.getDefaultAppearanceFormGroup().get("toDate")&&this.toDateCtrlSubscription?this.toDateCtrlSubscription.unsubscribe():this.getDefaultAppearanceFormGroup().get("toDate")&&!this.toDateCtrlSubscription&&this.subscribeToDefaultAppearanceToDate()}))}subscribeToDefaultAppearanceToDate(){this.toDateCtrlSubscription=this.getDefaultAppearanceFormGroup().get("toDate").valueChanges.pipe((0,ma.R)(this.destroy$)).subscribe(M=>this.changeDetectorRef.markForCheck())}addNewConfirmedAppearance(){const M=this.formHandler.addNewCollectionRow("appearances");this.copyFromDefaultAppearance(M,"fromDate",(0,s.w5)(new Date)),this.copyFromDefaultAppearance(M,"toDate",this.getLastEventDateOrNow()),this.copyFromDefaultAppearance(M,"languages",this.formHandler.getObjectLanguages().map(Ze=>Ze.id));const pe=this.clientNewAppearanceDeliveryChannelOptions[0]?.value;M.controls.deliveryChannel.setValue(pe)}addNewDefaultAppearance(){const M=this.formHandler.getObjectLanguages().map(xn=>xn.id),pe={id:null,fromDate:(0,s.w5)(new Date),toDate:this.getLastEventDateOrNow(),languages:M,languagesSelect:M},Ze=this.getDefaultAppearanceFormGroup();this.formHandler.addNewFormControlsForRow(this.formHandler.formConfiguration.findFormFieldById("defaultAppearance"),Ze),Ze.markAsDirty(),Ze.markAsTouched(),Ze.patchValue(pe),this.defaultAppearanceDataSource=new p.by([Ze])}removeDefaultAppearance(){const M=this.getDefaultAppearanceFormGroup();M&&(this.defaultAppearanceDataSource=new p.by([]),Object.keys(M.controls).forEach(pe=>{M.removeControl(pe)}),M.setValue({}),M.markAsTouched(),M.markAsDirty())}editDefaultAppearance(){const M=this.getDefaultAppearanceFormGroup();if(M){const pe=M.value;this.dialog.open(br,{minWidth:600,data:{formRow:M,formHandler:this.formHandler}}).afterClosed().subscribe(Ze=>{if(Ze){const xn=this.collectAllAppearancesControls();(Ze.ownAppearances||Ze.subscribedAppearances)&&(this.logger.info("The default appearance was changed. Change also own and subscribed appearances"),this.entityCollectionsService.getOwnDeliveryChannels().subscribe(Si=>{const Ga=xn.filter(vs=>Si.map(bl=>bl.id).some(bl=>bl===vs.get("deliveryChannel").value)),xs=xn.filter(vs=>Si.map(bl=>bl.id).every(bl=>bl!==vs.get("deliveryChannel").value));Ze.ownAppearances&&this.restrictAppearances(Ga,pe),Ze.subscribedAppearances&&this.restrictAppearances(xs,pe)})),M.get("languagesSelect").setValue(M.get("languages").value)}else M.reset(pe,{onlySelf:!0})})}}removeFromList(M,pe){this.formHandler.removeLineFromCollection(M,pe)}confirmAppearance(M,pe,Ze){const xn=this.formHandler.getFormArrayControl("appearances");xn&&(this.removeFromList(M,pe),xn.push(Ze),this.initAppearances(),xn.markAsDirty())}refuseAppearance(M,pe,Ze){const xn=this.formHandler.getFormArrayControl("refusedAppearances");xn&&(this.removeFromList(M,pe),xn.push(Ze),this.initAppearances(),xn.markAsDirty())}setShownActionMenu(M,pe){null!=this.shownActionMenu.get(M)&&this.shownActionMenu.get(M)===pe?this.shownActionMenu.set(M,null):this.shownActionMenu.set(M,pe)}closeActionMenu(M,pe){null!=this.shownActionMenu.get(M)&&this.shownActionMenu.get(M)===pe&&this.shownActionMenu.set(M,null)}isShownActionMenu(M,pe){return null!=this.shownActionMenu.get(M)&&this.shownActionMenu.get(M)==pe}isDefaultAppearanceAvailable(){const M=this.getDefaultAppearanceFormGroup().value;return this.getDefaultAppearanceFormGroup().value&&Object.keys(this.getDefaultAppearanceFormGroup().value).some(pe=>M[pe]&&!(Array.isArray(M[pe])&&0===M[pe].length))}copyFromDefaultAppearance(M,pe,Ze){const xn=this.getDefaultAppearanceFormGroup();xn&&this.defaultAppearanceAvailable?M.get(pe)&&xn.get(pe)&&M.get(pe).setValue(xn.get(pe).value):M.get(pe)&&M.get(pe).setValue(Ze)}getLastEventDateOrNow(){const M=this.formHandler.formGroup.get("eventDates");let pe;return M&&(pe=(0,s.yX)(M,"date")||new Date),pe}getDefaultAppearanceFormGroup(){return this.formHandler.formGroup.get("defaultAppearance")}collectAllAppearancesControls(){const M=[];return["refusedAppearances","pendingAppearances","appearances"].forEach(pe=>{const Ze=this.formHandler.getFormArrayControl(pe);Ze&&Ze.controls.forEach(xn=>M.push(xn))}),M}restrictAppearances(M,pe){M.forEach(Ze=>{this.isToDateRestricted(Ze,pe)&&this.copyFromDefaultAppearance(Ze,"toDate",void 0),this.isFromDateRestricted(Ze,pe)&&this.copyFromDefaultAppearance(Ze,"fromDate",void 0),this.changeLanguagesRestriction(Ze,pe)})}isToDateRestricted(M,pe){if(M.contains("toDate")&&"toDate"in pe){const Ze=this.getDefaultAppearanceFormGroup();if(Ze.get("toDate").value!==pe.toDate)return new Date(Ze.get("toDate").value).getTime()<new Date(M.get("toDate").value).getTime()}return!1}isFromDateRestricted(M,pe){if(M.contains("fromDate")&&"fromDate"in pe){const Ze=this.getDefaultAppearanceFormGroup();if(Ze.get("fromDate").value!==pe.fromDate)return new Date(Ze.get("fromDate").value).getTime()>new Date(M.get("fromDate").value).getTime()}return!1}changeLanguagesRestriction(M,pe){if("languages"in pe){const Ze=pe.languages,xn=this.getDefaultAppearanceFormGroup(),Si=Ze.filter(xs=>-1===xn.get("languages").value.findIndex(vs=>vs===xs)),Ga=M.get("languages");Si&&Si.length>0&&Ga&&Ga.value.some(vs=>Si.some(bl=>bl===vs))&&Ga.setValue(Ga.value.filter(vs=>-1===Si.findIndex(bl=>bl===vs)))}}_loadEntityStateOptions(){let M;return M=this.entityStateDao.findAvailablesByEntity(this.record._entityType,this.record.id?this.record.id:"new","edit"),M.pipe((0,rn.U)(pe=>(this.record.entityState&&!pe.map(Ze=>Ze.key).some(Ze=>Ze===this.record.entityState.key)&&(this.entityStateDisabled=!0,pe.unshift(this.record.entityState)),pe)),(0,rn.U)(pe=>pe.map(Ze=>({label:"entity.EntityState."+Ze.name.toLowerCase(),value:Ze.key}))))}getDeliveryChannelOptionsForAppearance(M){const pe=this.appearanceDeliveryChannelOptions.get(M.value.rowId);return pe&&pe.length>0?pe:this.clientNewAppearanceDeliveryChannelOptions}initAppearances(){this.confirmedAppearancesDataSource.filteredData.forEach(xn=>{Object.keys(xn.controls).forEach(Si=>{xn.controls[Si].disable()})}),this.pendingAppearancesDataSource.filteredData.forEach(xn=>{Object.keys(xn.controls).forEach(Si=>{xn.controls[Si].disable()})}),this.refusedAppearancesDataSource.filteredData.forEach(xn=>{Object.keys(xn.controls).forEach(Si=>{xn.controls[Si].disable()})});const M=this.entityCollectionsService.getAllDeliveryChannels(),pe=this.runtimeContextService.getCurrentAndSubClients(),Ze=this.formHandler.hasSavePermission();(0,i.aj)([pe,M,Ze]).pipe((0,rn.U)(([xn,Si,Ga])=>{const xs=new Map,vs=new Map,bl=this.getDeliveryChannelsForCurrentClient([...xn],Si);this.clientNewAppearanceDeliveryChannelOptions=this.getOptionsFromDeliveryChannels(bl),this.confirmedAppearancesDataSource.filteredData.forEach(Ll=>{const Tc=Ll.value;Ga&&this.calcHasAppearanceEditPermission(Tc,Si,[...xn])?(xs.set(Tc.rowId,this.getOptionsFromDeliveryChannels(bl)),vs.set(Tc.rowId,!0),Object.keys(Ll.controls).forEach(xc=>{Ll.controls[xc].enable()})):(xs.set(Tc.rowId,this.getOptionsFromDeliveryChannels(Si)),vs.set(Tc.rowId,!1))}),this.refusedAppearancesDataSource.filteredData.forEach(Ll=>{const Tc=Ll.value;Ga&&this.calcHasAppearanceEditPermission(Tc,Si,[...xn])?(xs.set(Tc.rowId,this.getOptionsFromDeliveryChannels(bl)),vs.set(Tc.rowId,!0),Object.keys(Ll.controls).forEach(xc=>{Ll.controls[xc].enable()})):(xs.set(Tc.rowId,this.getOptionsFromDeliveryChannels(Si)),vs.set(Tc.rowId,!1))}),this.pendingAppearancesDataSource.filteredData.forEach(Ll=>{const Tc=Ll.value;Ga&&this.calcHasAppearanceEditPermission(Tc,Si,[...xn])?(xs.set(Tc.rowId,this.getOptionsFromDeliveryChannels(bl)),vs.set(Tc.rowId,!0),Object.keys(Ll.controls).forEach(xc=>{Ll.controls[xc].enable()})):(xs.set(Tc.rowId,this.getOptionsFromDeliveryChannels(Si)),vs.set(Tc.rowId,!1))}),this.appearanceDeliveryChannelOptions=xs,this.appearanceEditPermissions=vs})).pipe((0,ma.R)(this.destroy$)).subscribe()}getDeliveryChannelsForCurrentClient(M,pe){const Ze=M.map(Si=>Si.id),xn=[];return pe.forEach(Si=>{let Ga=!1;const xs=Si.ownerClient,vs=Si.grantedClients;let bl=[];vs&&(bl=vs.map(Ll=>Ll.id)),(!xs&&0===bl.length||xs&&Ze.indexOf(xs.id)>-1||bl.length>0&&bl.some(Ll=>Ze.includes(Ll)))&&(Ga=!0),Ga&&xn.push(Si)}),xn}getOptionsFromDeliveryChannels(M){return M.map(pe=>({label:pe.name,value:pe.id})).sort((pe,Ze)=>pe.label.localeCompare(Ze.label))}calcHasAppearanceEditPermission(M,pe,Ze){let xn=!0;if(M&&M.deliveryChannel){xn=!1;const Si=M.deliveryChannel,Ga=pe.find(Ll=>Ll.id===Si),xs=Ga.ownerClient;let vs=[];Ga.grantedClients&&(vs=Ga.grantedClients.map(Ll=>Ll.id));const bl=Ze.map(Ll=>Ll.id);return(!xs&&0===vs.length||xs&&bl.indexOf(xs.id)>-1||vs.length>0&&vs.some(Ll=>bl.includes(Ll)))&&(xn=!0),xn}return xn}hasAppearanceEditPermission(M){const pe=this.appearanceEditPermissions.get(M.value.rowId);return void 0!==pe?pe:!M.value.rowId}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(s.qB),o.Y36(t.uw),o.Y36(l.EntityCollectionsService),o.Y36(l.EntityStateDao),o.Y36(l.ConfigurationProvider),o.Y36(o.sBO),o.Y36(l.DeliveryChannelOptionProviderService),o.Y36(s.Ze),o.Y36(I.sK))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-event-appearance-data-form-panel"]],features:[o.qOj],decls:12,vars:13,consts:[[1,"form__content-panel","appearances"],["id","appearances",1,"anchor"],["translate",""],[1,"form__content-row"],[1,"form__content-group"],[1,"entity-state-switch",3,"field","control","form","formHandler","disableControl","optionProvider"],["class","form__content-row",4,"ngIf"],["class","form__content-group",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],["class","imx-button prio2",3,"click",4,"ngIf"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","fromDate"],["mat-header-cell","","class","date","translate","",4,"matHeaderCellDef"],["mat-cell","","class","date",4,"matCellDef"],["matColumnDef","toDate"],["matColumnDef","languages"],["mat-header-cell","","class","language","translate","",4,"matHeaderCellDef"],["mat-cell","","class","language",3,"formGroup",4,"matCellDef"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","","translate","",1,"date"],["mat-cell","",1,"date"],["mat-header-cell","","translate","",1,"language"],["mat-cell","",1,"language",3,"formGroup"],[3,"field","control","form","formHandler","config"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column"],[3,"icon","click"],["additionalStyle","delete",3,"icon","click"],[1,"imx-button","prio2",3,"click"],["mat-cell","","class","date",3,"formGroup",4,"matCellDef"],["matColumnDef","deliveryChannel"],["mat-header-cell","","translate","",4,"matHeaderCellDef"],["mat-cell","",3,"formGroup",4,"matCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-cell","",1,"date",3,"formGroup"],["mat-header-cell","","translate",""],["mat-cell","",3,"formGroup"],[3,"ngStyle","formGroup"],["formControlName","deliveryChannel",3,"options","required"],["mat-cell","",1,"action-column",3,"formGroup"],[4,"ngIf"],[3,"icon","click",4,"ngIf"],[1,"form__content-field-row"]],template:function(pe,Ze){1&pe&&(o.TgZ(0,"div",0),o._UZ(1,"div",1),o.TgZ(2,"h2",2),o._uU(3,"imxplatform.common-entity.edit.navigation.publications"),o.qZA(),o.TgZ(4,"div",3)(5,"div",4),o._UZ(6,"imx-select",5),o.ALo(7,"async"),o.qZA()(),o.YNc(8,im,2,2,"div",6)(9,Fd,2,2,"div",6)(10,Kd,2,2,"div",6)(11,Uu,2,2,"div",6),o.qZA()),2&pe&&(o.xp6(),o.uIk("data-scroll-id","appearances"),o.xp6(5),o.Q6J("field",Ze.formHandler.formConfiguration.findFormFieldById("entityState"))("control",Ze.formHandler.formGroup.get("entityState"))("form",Ze.formHandler.formGroup)("formHandler",Ze.formHandler)("disableControl",Ze.entityStateDisabled)("optionProvider",o.lcZ(7,11,Ze.entityStateOptions$)),o.xp6(2),o.Q6J("ngIf",Ze.hasDeliveryChannelLogic),o.xp6(),o.Q6J("ngIf",Ze.hasDeliveryChannelLogic),o.xp6(),o.Q6J("ngIf",Ze.hasDeliveryChannelLogic),o.xp6(),o.Q6J("ngIf",Ze.hasDeliveryChannelLogic))},dependencies:[fa.o,u.A,Qr.H,ki.j,m.O5,m.PC,b.JJ,b.JL,b.Q7,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,b.sg,b.u,I.Pi,Hn.p,mo.z,vn.t,m.Ov,m.uU,I.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.form__content-field-row[_ngcontent-%COMP%]   .entity-state-switch[_ngcontent-%COMP%]{flex-basis:50%}.appearance-list-row-action-menu[_ngcontent-%COMP%]{position:absolute;top:0;right:47px;margin-right:5px;background:#fff;box-shadow:0 0 5px #0003;display:flex;flex-direction:column;z-index:1}.appearance-list-row-action-menu[_ngcontent-%COMP%]   .triangle-right[_ngcontent-%COMP%]{position:absolute;right:-12px;top:0;border-left-color:#fff}.mat-mdc-row[_ngcontent-%COMP%]{position:relative}"],changeDetection:0})}return N})();var Bm=a(61880),Am=a(27459),hm=a(59437),fc=a(8455),Zm=a(1505);function ld(N,Lt){1&N&&(o.TgZ(0,"label",11),o._uU(1,"imxplatform.common-entity.edit.panels.anatomy.classfication"),o.qZA())}function eu(N,Lt){if(1&N&&(o.ynx(0),o._UZ(1,"imx-lockable-input",12),o.BQk()),2&N){const M=o.oxw();o.xp6(),o.Q6J("field",M.classificationLockableField)("formHandler",M.formHandler)("form",M.formHandler.formGroup)}}function Tp(N,Lt){1&N&&o.GkF(0)}const Bu=()=>({$implicit:"integrityClassification"});function Zu(N,Lt){if(1&N&&(o.ynx(0),o.YNc(1,Tp,1,0,"ng-container",13),o.BQk()),2&N){o.oxw();const M=o.MAs(21);o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(2,Bu))}}function Hm(N,Lt){1&N&&o.GkF(0)}const Cu=()=>({$implicit:"reliabilityClassification"});function yu(N,Lt){if(1&N&&(o.ynx(0),o.YNc(1,Hm,1,0,"ng-container",13),o.BQk()),2&N){o.oxw();const M=o.MAs(21);o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(2,Cu))}}function Xu(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"div",14),o._UZ(2,"imx-base-read-only",15),o.ALo(3,"importSource"),o.qZA(),o.BQk()),2&N){const M=o.oxw();o.xp6(2),o.Q6J("label","entity.CoreDataObject.importSource")("customModel",o.lcZ(3,2,null==M.record.importRun?null:M.record.importRun.importSource))}}function wm(N,Lt){if(1&N&&o._UZ(0,"imx-form-control",16),2&N){const M=Lt.$implicit,pe=o.oxw();o.Q6J("field",pe.formHandler.formConfiguration.findFormFieldById(M))("control",pe.formHandler.formGroup.get(M))("form",pe.formHandler.formGroup)("formHandler",pe.formHandler)("config",pe.formHandler.formConfiguration)}}let Bd=(()=>{class N extends l.AbstractCoreDataObjectFormPanelComponent{constructor(M,pe){super(M),this.entityCollectionsService=pe,this.integrityClassificationAvailable=(0,ho.of)(!1),this.reliabilityClassificationAvailable=(0,ho.of)(!1)}ngOnInit(){this.classificationLockableField=this.formHandler.formConfiguration.findFormFieldById("classification"),this.integrityClassificationAvailable=this.entityCollectionsService.getAllIntegrityClassifications("Event").pipe((0,rn.U)(M=>M.length>0)),this.reliabilityClassificationAvailable=this.entityCollectionsService.getAllReliablityClassifications("Event").pipe((0,rn.U)(M=>M.length>0))}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(l.ImxEntitiesMgrService),o.Y36(l.EntityCollectionsService))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-event-anatomy-form-panel"]],features:[o.qOj],decls:22,vars:21,consts:[[1,"form__content-panel"],["id","anatomy",1,"anchor"],["translate",""],[1,"form__content-row"],[1,"form__content-group"],["class","quality-label","translate","",4,"ngIf"],[4,"ngIf"],[1,"form__content-field-row","wrap-sm"],[3,"formHandler"],[3,"formHandler","record"],["imxControl",""],["translate","",1,"quality-label"],[3,"field","formHandler","form"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"assignment-block"],[3,"label","customModel"],[3,"field","control","form","formHandler","config"]],template:function(pe,Ze){1&pe&&(o.TgZ(0,"div",0),o._UZ(1,"div",1),o.TgZ(2,"h2",2),o._uU(3,"imxplatform.common-entity.edit.panels.anatomy.title"),o.qZA(),o.TgZ(4,"div",3)(5,"div",4),o.YNc(6,ld,2,0,"label",5),o.ALo(7,"async"),o.ALo(8,"async"),o.YNc(9,eu,2,3,"ng-container",6),o.ALo(10,"async"),o.ALo(11,"async"),o.TgZ(12,"div",7),o.YNc(13,Zu,2,3,"ng-container",6),o.ALo(14,"async"),o.YNc(15,yu,2,3,"ng-container",6),o.ALo(16,"async"),o.qZA(),o._UZ(17,"imx-edit-quality",8)(18,"imx-edit-audited-data",9),o.YNc(19,Xu,4,4,"ng-container",6),o.qZA()()(),o.YNc(20,wm,1,5,"ng-template",null,10,o.W1O)),2&pe&&(o.xp6(),o.uIk("data-scroll-id","anatomy"),o.xp6(5),o.Q6J("ngIf",o.lcZ(7,9,Ze.integrityClassificationAvailable)||o.lcZ(8,11,Ze.reliabilityClassificationAvailable)),o.xp6(3),o.Q6J("ngIf",Ze.classificationLockableField&&Ze.classificationLockableField.lockable&&o.lcZ(10,13,Ze.integrityClassificationAvailable)||o.lcZ(11,15,Ze.reliabilityClassificationAvailable)),o.xp6(4),o.Q6J("ngIf",o.lcZ(14,17,Ze.integrityClassificationAvailable)),o.xp6(2),o.Q6J("ngIf",o.lcZ(16,19,Ze.reliabilityClassificationAvailable)),o.xp6(2),o.Q6J("formHandler",Ze.formHandler),o.xp6(),o.Q6J("formHandler",Ze.formHandler)("record",Ze.record),o.xp6(),o.Q6J("ngIf",Ze.record.importIdentifier&&(null==Ze.record.importRun?null:Ze.record.importRun.importSource)))},dependencies:[Bm.Q,Am.h,hm.B,u.A,fc.J,m.O5,m.tP,I.Pi,Zm.q,m.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.quality-label[_ngcontent-%COMP%]{font-weight:700;margin-bottom:7px}"]})}return N})();var xm=a(73623),Pd=a(15646);function kt(N,Lt){1&N&&(o.TgZ(0,"p",8),o._uU(1,"imxplatform.common.no-records"),o.qZA())}function Jt(N,Lt){1&N&&o._UZ(0,"tr",24)}function he(N,Lt){1&N&&o._UZ(0,"tr",25)}function Re(N,Lt){1&N&&(o.TgZ(0,"th",26),o._uU(1," imxeventmanager.event.edit.panels.references.contact-address-poi.id "),o.qZA())}function Qe(N,Lt){if(1&N&&(o.TgZ(0,"td",27)(1,"span"),o._uU(2),o.qZA()()),2&N){const M=Lt.$implicit;o.xp6(2),o.Oqu(M.controls.contactAddressPoi.value.id)}}function Ht(N,Lt){1&N&&(o.TgZ(0,"th",28),o._uU(1," imxeventmanager.event.edit.panels.references.contact-address-poi.title "),o.qZA())}function qt(N,Lt){if(1&N&&(o.TgZ(0,"td",29)(1,"span"),o._uU(2),o.ALo(3,"readI18n"),o.qZA()()),2&N){const M=Lt.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,M.controls.contactAddressPoi.value.title))}}function Lo(N,Lt){1&N&&(o.TgZ(0,"th",28),o._uU(1," imxeventmanager.event.edit.panels.references.contact-address-poi.address "),o.qZA())}function ur(N,Lt){if(1&N&&(o.TgZ(0,"td",29)(1,"span"),o._uU(2),o.qZA()()),2&N){const M=Lt.$implicit;o.xp6(2),o.HOy(" ",null==M.controls.contactAddressPoi.value.contact1||null==M.controls.contactAddressPoi.value.contact1.address?null:M.controls.contactAddressPoi.value.contact1.address.street," ",null==M.controls.contactAddressPoi.value.contact1||null==M.controls.contactAddressPoi.value.contact1.address?null:M.controls.contactAddressPoi.value.contact1.address.streetNo,", ",null==M.controls.contactAddressPoi.value.contact1||null==M.controls.contactAddressPoi.value.contact1.address?null:M.controls.contactAddressPoi.value.contact1.address.zipcode," ",null==M.controls.contactAddressPoi.value.contact1||null==M.controls.contactAddressPoi.value.contact1.address?null:M.controls.contactAddressPoi.value.contact1.address.city," ")}}function rr(N,Lt){if(1&N&&(o.TgZ(0,"th",28),o._uU(1),o.qZA()),2&N){const M=o.oxw(3);o.xp6(),o.Oqu(M.formHandler.getFormFieldLabel("eventContacts:purpose"))}}function Oa(N,Lt){if(1&N&&(o.TgZ(0,"td",30),o._UZ(1,"imx-form-control",31),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(3);o.Q6J("formGroup",M),o.xp6(),o.Q6J("field",pe.formHandler.formConfiguration.findFormFieldById("eventContacts:purpose"))("control",M.controls.purpose)("form",pe.formHandler.formGroup.get("eventContacts"))("formHandler",pe.formHandler)("config",pe.formHandler.formConfiguration)}}function Pa(N,Lt){1&N&&o._UZ(0,"th",32)}function Ja(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"a",35),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw().$implicit,xn=o.oxw(3);return o.KtG(xn.formHandler.removeLineFromCollection("eventContacts",xn.contactAddressPoiDataSource.filteredData.indexOf(Ze)))}),o.qZA()}}function fs(N,Lt){if(1&N&&(o.TgZ(0,"td",33),o.YNc(1,Ja,1,0,"a",34),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(3);o.Q6J("formGroup",M),o.xp6(),o.Q6J("hasFieldWritePermission","eventContacts")("hasFieldWritePermissionFormHandler",pe.formHandler)}}function El(N,Lt){if(1&N&&(o.TgZ(0,"table",9),o.YNc(1,Jt,1,0,"tr",10)(2,he,1,0,"tr",11),o.ynx(3,12),o.YNc(4,Re,2,0,"th",13)(5,Qe,3,1,"td",14),o.BQk(),o.ynx(6,15),o.YNc(7,Ht,2,0,"th",16)(8,qt,4,3,"td",17),o.BQk(),o.ynx(9,18),o.YNc(10,Lo,2,0,"th",16)(11,ur,3,4,"td",17),o.BQk(),o.ynx(12,19),o.YNc(13,rr,2,1,"th",16)(14,Oa,2,6,"td",20),o.BQk(),o.ynx(15,21),o.YNc(16,Pa,1,0,"th",22)(17,fs,2,3,"td",23),o.BQk(),o.qZA()),2&N){const M=o.oxw(2);o.Q6J("dataSource",M.contactAddressPoiDataSource),o.xp6(),o.Q6J("matHeaderRowDef",M.contactAddressPoiColumns),o.xp6(),o.Q6J("matRowDefColumns",M.contactAddressPoiColumns)}}function Ic(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"div",36),o._UZ(1,"imx-base-autocomplete",37,38),o.TgZ(3,"button",39),o.NdJ("click",function(){o.CHM(M);const Ze=o.MAs(2);return o.oxw(2).addContactAddressLine(Ze.getSelectedId()),o.KtG(Ze.writeValue(void 0))}),o._uU(4),o.ALo(5,"translate"),o.qZA()()}if(2&N){const M=o.MAs(2),pe=o.oxw(2);o.xp6(),o.Q6J("autocompleteService",pe.addressPoiContactAutocompleteService)("label","imxeventmanager.event.edit.panels.references.contact-address-poi.choose-contact-poi"),o.xp6(2),o.Q6J("disabled",!M.getSelectedId()),o.xp6(),o.hij(" ",o.lcZ(5,4,"imxplatform.common.add")," ")}}function Pc(N,Lt){if(1&N&&(o.TgZ(0,"div",1)(1,"div",2)(2,"h3",3),o._uU(3,"imxeventmanager.event.edit.panels.references.contact-address-poi.header"),o.qZA(),o.YNc(4,kt,2,0,"ng-template",null,4,o.W1O),o.TgZ(6,"div",5),o.YNc(7,El,18,3,"table",6),o.qZA(),o.YNc(8,Ic,6,6,"div",7),o.qZA()()),2&N){const M=o.MAs(5),pe=o.oxw();o.xp6(7),o.Q6J("ngIf",pe.contactAddressPoiDataSource&&pe.contactAddressPoiDataSource.data.length>0)("ngIfElse",M),o.xp6(),o.Q6J("hasFieldWritePermission","eventContacts")("hasFieldWritePermissionFormHandler",pe.formHandler)}}let td=(()=>{class N{constructor(M,pe,Ze){this.platformDataAccessService=M,this.addressPoiContactAutocompleteService=pe,this.changeDetectorRef=Ze,this.destroy$=new cs.xQ}ngOnInit(){this.contactAddressPoiDataSource=(0,l.prepareTable)(this.formHandler.formGroup.get("eventContacts"),pe=>this.contactAddressPoiDataSource=pe,this.destroy$);const M=this.formHandler.formConfiguration.findFormFieldById("eventContacts");this.contactAddressPoiColumns=new Array,this.contactAddressPoiColumns.push("contactAddressPoi"),this.contactAddressPoiColumns.push("title"),this.contactAddressPoiColumns.push("address"),this.contactAddressPoiColumns.push(...M.children.filter(pe=>pe.id!==l.ARRAY_ID_FIELD&&"contactAddressPoi"!==pe.id).map(pe=>pe.id)),this.contactAddressPoiColumns.push("removeColumn")}addContactAddressLine(M){this.platformDataAccessService.getAddressPoiById(M).subscribe(pe=>{if(0===this.formHandler.formGroup.get("eventContacts").controls.filter(Ze=>Ze.controls.contactAddressPoi.value.id===M).length){const Ze=this.formHandler.addNewCollectionRow("eventContacts"),xn={id:pe.id,title:Pd(pe.title),contact1:Pd(pe.contact1)};Ze.controls.contactAddressPoi.setValue(xn),this.changeDetectorRef.markForCheck()}})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(l.ImxPlatformDataAccessService),o.Y36(l.AddressPoiContactAutocompleteService),o.Y36(o.sBO))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-edit-event-contacts"]],inputs:{formHandler:"formHandler"},decls:2,vars:3,consts:[["class","form__content-row",4,"ngIf"],[1,"form__content-row"],[1,"form__content-group"],["translate",""],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],["class","form__content-field-row",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","contactAddressPoi"],["mat-header-cell","","class","id-column","translate","",4,"matHeaderCellDef"],["mat-cell","","class","id-column",4,"matCellDef"],["matColumnDef","title"],["mat-header-cell","","translate","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","address"],["matColumnDef","purpose"],["mat-cell","",3,"formGroup",4,"matCellDef"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","","translate","",1,"id-column"],["mat-cell","",1,"id-column"],["mat-header-cell","","translate",""],["mat-cell",""],["mat-cell","",3,"formGroup"],[3,"field","control","form","formHandler","config"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],["class","icon icon-trash imx-icon-middle imx-icon-clickable",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"],[1,"form__content-field-row"],["name","addContactAddressPoi",1,"contact-addresspoi-autocomplete",3,"autocompleteService","label"],["contactAddressPoiAutocompleteControl",""],[1,"imx-button","prio2","addButton",3,"disabled","click"]],template:function(pe,Ze){1&pe&&(o.YNc(0,Pc,9,4,"div",0),o.ALo(1,"async")),2&pe&&o.Q6J("ngIf",o.lcZ(1,1,Ze.formHandler.hasReadPermission("eventContacts")))},dependencies:[qr.h,u.A,ss.X,ee.F,m.O5,b.JL,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,b.sg,I.Pi,Ls.j,m.Ov,I.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}"]})}return N})();function $c(N,Lt){if(1&N&&(o.ynx(0),o._UZ(1,"imx-edit-event-contacts",4),o.BQk()),2&N){const M=o.oxw();o.xp6(),o.Q6J("formHandler",M.formHandler)}}function ud(N,Lt){if(1&N&&(o.ynx(0),o._UZ(1,"imx-edit-contact-lists",4),o.BQk()),2&N){const M=o.oxw();o.xp6(),o.Q6J("formHandler",M.formHandler)}}let qc=(()=>{class N extends l.AbstractCoreDataObjectFormPanelComponent{constructor(M,pe){super(M,pe),this.entitiesMgr=M,this.dialog=pe,this.contactAddressPoisEnabled=!1}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(l.ImxEntitiesMgrService),o.Y36(t.uw))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-event-references-form-panel"]],inputs:{contactListsEnabled:"contactListsEnabled",contactAddressPoisEnabled:"contactAddressPoisEnabled"},features:[o.qOj],decls:6,vars:3,consts:[[1,"form__content-panel"],["id","references",1,"anchor"],["translate",""],[4,"ngIf"],[3,"formHandler"]],template:function(pe,Ze){1&pe&&(o.TgZ(0,"div",0),o._UZ(1,"div",1),o.TgZ(2,"h2",2),o._uU(3,"imxplatform.common-entity.edit.panels.reference.title"),o.qZA(),o.YNc(4,$c,2,1,"ng-container",3)(5,ud,2,1,"ng-container",3),o.qZA()),2&pe&&(o.xp6(),o.uIk("data-scroll-id","references"),o.xp6(3),o.Q6J("ngIf",Ze.contactAddressPoisEnabled),o.xp6(),o.Q6J("ngIf",Ze.contactListsEnabled))},dependencies:[xm.s,m.O5,I.Pi,td],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}"],changeDetection:0})}return N})();function Dm(N,Lt){if(1&N&&o._UZ(0,"imx-event-references-form-panel",7),2&N){const M=o.oxw(2);o.Q6J("formHandler",M.formHandler)("record",M.record)("contactAddressPoisEnabled",M.contactAddressPoisEnabled)("contactListsEnabled",M.contactListsEnabled)}}function oc(N,Lt){if(1&N&&o._UZ(0,"imx-event-module-form-panel",2),2&N){const M=o.oxw(2);o.Q6J("formHandler",M.formHandler)("record",M.record)}}function Zd(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"div")(1,"form",1),o._UZ(2,"imx-event-base-data-form-panel",2),o.TgZ(3,"imx-event-address-data-form-panel",3),o.NdJ("slideInEvent",function(Ze){o.CHM(M);const xn=o.oxw();return o.KtG(xn.slideInEvent.emit(Ze))}),o.qZA(),o._UZ(4,"imx-event-dates-data-form-panel",4)(5,"imx-event-pricing-data-form-panel",2)(6,"imx-event-media-form-panel",2)(7,"imx-event-geo-form-panel",2)(8,"imx-event-appearance-data-form-panel",2),o.YNc(9,Dm,1,4,"imx-event-references-form-panel",5),o._UZ(10,"imx-event-anatomy-form-panel",2),o.YNc(11,oc,1,2,"imx-event-module-form-panel",6),o.qZA()()}if(2&N){const M=o.oxw();o.xp6(),o.Q6J("formGroup",M.formHandler.formGroup),o.xp6(),o.Q6J("formHandler",M.formHandler)("record",M.record),o.xp6(),o.Q6J("formHandler",M.formHandler)("record",M.record),o.xp6(),o.Q6J("formHandler",M.formHandler)("record",M.record)("additionalRequiredProps",M.additionalRequiredProps),o.xp6(),o.Q6J("formHandler",M.formHandler)("record",M.record),o.xp6(),o.Q6J("formHandler",M.formHandler)("record",M.record),o.xp6(),o.Q6J("formHandler",M.formHandler)("record",M.record),o.xp6(),o.Q6J("formHandler",M.formHandler)("record",M.record),o.xp6(),o.Q6J("ngIf",M.contactListsEnabled||M.contactAddressPoisEnabled),o.xp6(),o.Q6J("formHandler",M.formHandler)("record",M.record),o.xp6(),o.Q6J("ngIf",M.hasMetainfo)}}let Sc=(()=>{class N extends l.FormComponent{constructor(M){super(M),this.userMessageService=M,this.additionalRequiredProps=[],this.contactAddressPoisEnabled=!1,this.slideInEvent=new o.vpe}doAdditionalValidation(){if(super.doAdditionalValidation()){const M=this.formHandler.formGroup.get("eventDateType.type").value;if(M&&(1===M||5===M)){if(!this.formHandler.formGroup.get("eventDates").value||0===this.formHandler.formGroup.get("eventDates").value.length){this.userMessageService.showError("imxeventmanager.event.edit.validation.at-least-one-event-date");const pe=document.getElementById("dates");return pe&&pe.scrollIntoView({behavior:"smooth",block:"start"}),!1}if(this.formHandler.formGroup.get("eventDates").value){if(this.formHandler.formGroup.get("eventDates").value.some(Ze=>Ze.duration&&null==Ze.startTime)){this.userMessageService.showError("imxeventmanager.event.edit.validation.no-starttime");const Ze=document.getElementById("dates");return Ze&&Ze.scrollIntoView({behavior:"smooth",block:"start"}),!1}return!0}}return!0}}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(l.UserMessageService))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-event-edit-form"]],inputs:{modules:"modules",hasMetainfo:"hasMetainfo",additionalRequiredProps:"additionalRequiredProps",contactListsEnabled:"contactListsEnabled",contactAddressPoisEnabled:"contactAddressPoisEnabled"},outputs:{slideInEvent:"slideInEvent"},features:[o.qOj],decls:1,vars:2,consts:[[4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],["id","event-edit",3,"formGroup"],[3,"formHandler","record"],[3,"formHandler","record","slideInEvent"],[3,"formHandler","record","additionalRequiredProps"],[3,"formHandler","record","contactAddressPoisEnabled","contactListsEnabled",4,"ngIf"],[3,"formHandler","record",4,"ngIf"],[3,"formHandler","record","contactAddressPoisEnabled","contactListsEnabled"]],template:function(pe,Ze){1&pe&&o.YNc(0,Zd,12,20,"div",0),2&pe&&o.Q6J("hasFieldReadPermission","title")("hasFieldReadPermissionFormHandler",Ze.formHandler)},dependencies:[ki.j,m.O5,b._Y,b.JL,b.sg,da,ds,Fr,mi,Mo.a,xa,tr,qu,Bd,qc],encapsulation:2})}return N})();var Md=a(58391),Pm=a(66253),Td=a(55257),Mm=a(35475);const Gm=()=>[];function Ou(N,Lt){if(1&N&&(o.TgZ(0,"imx-tooltip",1)(1,"a",2)(2,"span",3),o._UZ(3,"span",4)(4,"span",5),o.qZA()()()),2&N){const M=o.oxw();o.Q6J("tooltipText",M.getScoreTooltip("entity.Event.reliabilityClassification",null==M.record.reliabilityClassification?null:M.record.reliabilityClassification.name))("offset",300),o.xp6(),o.Q6J("routerLink",o.DdM(4,Gm)),o.xp6(),o.Q6J("ngClass",M.reliabilityIcon)}}let Lc=(()=>{class N{constructor(M,pe){this.translateService=M,this.entityClassificationService=pe}ngOnChanges(M){M.record&&this.record&&(this.reliabilityIcon=this.entityClassificationService.calcReliabilityClassificiationIcon(this.record))}getScoreTooltip(M,pe){return this.translateService.instant(M)+": "+pe}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(I.sK),o.Y36(Td.W))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-entity-reliability-classification-icon"]],inputs:{record:"record"},features:[o.TTD],decls:1,vars:1,consts:[[3,"tooltipText","offset",4,"ngIf"],[3,"tooltipText","offset"],["fragment","anatomy",1,"actions",3,"routerLink"],[1,"imx-icon-middle",3,"ngClass"],[1,"path1"],[1,"path2"]],template:function(pe,Ze){1&pe&&o.YNc(0,Ou,5,5,"imx-tooltip",0),2&pe&&o.Q6J("ngIf",Ze.reliabilityIcon)},dependencies:[m.mk,m.O5,n.rH,Mm.K,ee.F],styles:[".actions[_ngcontent-%COMP%]{padding:5px 0 0 10px;margin-left:10px;border-left:1px solid #e6e9ef;display:inline-block;cursor:pointer;text-decoration:none}"]})}return N})();const Hc=()=>[];function Hd(N,Lt){if(1&N&&(o.TgZ(0,"imx-tooltip",1)(1,"a",2)(2,"span",3),o._UZ(3,"span",4)(4,"span",5),o.qZA()()()),2&N){const M=o.oxw();o.Q6J("tooltipText",M.getScoreTooltip("entity.Event.integrityClassification",null==M.record.integrityClassification?null:M.record.integrityClassification.name))("offset",300),o.xp6(),o.Q6J("routerLink",o.DdM(4,Hc)),o.xp6(),o.Q6J("ngClass",M.integrityIcon)}}let Pu=(()=>{class N{constructor(M,pe){this.translateService=M,this.entityClassificationService=pe}ngOnChanges(M){M.record&&this.record&&(this.integrityIcon=this.entityClassificationService.calcIntegrityClassificiationIcon(this.record))}getScoreTooltip(M,pe){return this.translateService.instant(M)+": "+pe}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(I.sK),o.Y36(Td.W))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-integrity-classification-icon"]],inputs:{record:"record"},features:[o.TTD],decls:1,vars:1,consts:[[3,"tooltipText","offset",4,"ngIf"],[3,"tooltipText","offset"],["fragment","anatomy",1,"actions",3,"routerLink"],[1,"imx-icon-middle",3,"ngClass"],[1,"path1"],[1,"path2"]],template:function(pe,Ze){1&pe&&o.YNc(0,Hd,5,5,"imx-tooltip",0),2&pe&&o.Q6J("ngIf",Ze.integrityIcon)},dependencies:[m.mk,m.O5,n.rH,Mm.K,ee.F],styles:[".actions[_ngcontent-%COMP%]{padding:5px 0 0 10px;margin-left:10px;border-left:1px solid #e6e9ef;display:inline-block;cursor:pointer;text-decoration:none}"]})}return N})();var tu=a(18476),Jm=a(83010),Mu=a(30728);function Im(N,Lt){1&N&&(o.TgZ(0,"div",35),o._UZ(1,"mat-progress-bar",36),o.qZA())}const Mc=N=>({active:N}),gc=()=>[];function $d(N,Lt){if(1&N&&(o.TgZ(0,"a",37)(1,"div",12),o._UZ(2,"span",38),o.TgZ(3,"span",14),o._uU(4),o.ALo(5,"translate"),o.qZA()()()),2&N){const M=o.oxw();o.Q6J("ngClass",o.VKq(5,Mc,M.isPanelActive("geo")))("routerLink",o.DdM(7,gc)),o.xp6(4),o.Oqu(o.lcZ(5,3,"imxplatform.common-entity.edit.navigation.geoinformation"))}}function Rd(N,Lt){if(1&N&&(o.TgZ(0,"a",39)(1,"div",12),o._UZ(2,"span",40),o.TgZ(3,"span",14),o._uU(4),o.ALo(5,"translate"),o.qZA()()()),2&N){const M=o.oxw();o.Q6J("ngClass",o.VKq(5,Mc,M.isPanelActive("references")))("routerLink",o.DdM(7,gc)),o.xp6(4),o.Oqu(o.lcZ(5,3,"imxplatform.common-entity.edit.navigation.references"))}}function nu(N,Lt){if(1&N&&(o.TgZ(0,"div",41)(1,"div",12),o._UZ(2,"span",42),o.TgZ(3,"span",14),o._uU(4),o.ALo(5,"translate"),o.qZA()()()),2&N){const M=o.oxw();o.Q6J("ngClass",o.VKq(5,Mc,M.isPanelActive("modules_event")))("routerLink",o.DdM(7,gc)),o.xp6(4),o.Oqu(o.lcZ(5,3,"imxplatform.common-entity.edit.navigation.others"))}}const Gc=()=>({width:"100%",height:"100%"}),sc=(N,Lt)=>({formHandler:N,record:Lt}),pd=["basicdata","address","dates","pricing","media","geo","appearances","references","anatomy"];let rm=(()=>{class N extends l.AbstractEditPage{constructor(M,pe,Ze,xn,Si,Ga,xs,vs,bl,Ll,Tc,xc,fu,Nd){super(M,pe,xn,Ze,Ga,xs,vs,bl,Ll,Tc),this.dataAccessService=Si,this.imxEntitiesMgrService=xs,this.listHistoryService=xc,this.metainfoFormPanelProviderRegistry=fu,this.router=Nd,this.logger=(0,l.getLogger)("EventEditPage",nl.H.name)}ngOnInit(){super.ngOnInit(),this.logger.debug("Open event edit page. Is in creation mode: "+this.isCreateMode),this.hasMetainfo=null!=this.metainfoFormPanelProviderRegistry.getMetainfoFormPanelComponent(l.EVENT_MODULE_PL_KEY,void 0)}transformRequiredPropertyDef(M){const pe=[...M.filter(Ze=>"event.startDate"!==Ze&&"event.endDate"!==Ze&&"event.startTime"!==Ze)];return M.some(Ze=>"event.startTime"===Ze)&&(pe.push("eventDateType.startTimeDurations:startTime"),pe.push("eventDates:startTime")),pe}addRecord(M){return this.dataAccessService.createEvent(M)}recordSaved(M){this.isSaveAndClose?this.close():this.isCreateMode?this.router.navigate(["events","edit",M.id]):this.reload(),this.userMessageService.showInfo("imxeventmanager.event.edit.save-successfull")}updateRecord(M){return this.dataAccessService.updateEvent(M)}getAvailablePanels(){return[...pd]}getEntityTypeForHistory(){return l.HistoryEntityType.EVENT}save(M){this.isSaveAndClose=M||!1,this.formComponent&&this.formComponent.submit(),this.clearCurrentStateInStorage()}getReloadDialogMsg(){return"imxeventmanager.event.edit.dialog-on-reload"}close(){super.handleCloseAction("imxeventmanager.event.edit.dialog-on-close","imxeventmanager.event.edit.dialog-on-close-new")}navigateToList(){this.listHistoryService.navigateToLastListState(this.getEntityTypeForHistory().entityType)||this.router.navigate(["/events"])}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(Md.ul),o.Y36(l.ImxPlatformDataAccessService),o.Y36(n.gz),o.Y36(s.Yz),o.Y36(yn.b),o.Y36(l.UserMessageService),o.Y36(l.ImxEntitiesMgrService),o.Y36(l.EntityBrowseHistoryStorageService),o.Y36(m.EM),o.Y36(l.ObjectListCreationService),o.Y36(t.uw),o.Y36(l.ListHistoryService),o.Y36(l.MetainfoFormPanelProviderRegistry),o.Y36(n.F0))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["ng-component"]],viewQuery:function(pe,Ze){if(1&pe&&o.Gf(Sc,7),2&pe){let xn;o.iGM(xn=o.CRH())&&(Ze.formComponent=xn.first)}},features:[o.qOj],decls:64,vars:89,consts:[[1,"edit"],[3,"formHandler","record","entityType","resourceKeyPrefix","activeSlideInType","showImportInfoButton","useAppearanceLogic","showQualityBlock","reloadClicked","slideInEvent","addToObjectListClicked"],["class","page-loading-wrapper","progress-bar","",4,"ngIf"],["quality-icons","",3,"record"],["lg_w","12","lg_o","0"],[1,"edit__wrapper"],[1,"edit__navigation-sticky-wrapper"],[1,"edit__navigation-sticky-content"],["scrollBar",""],[1,"edit__navigation-items"],["formNavigation",""],["fragment","basicdata",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"edit__navigation-item-content"],[1,"icon","icon-pencil","imx-icon-middle"],[1,"item-label"],["fragment","address",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-home","imx-icon-middle"],["fragment","dates",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-calendar-31","imx-icon-middle"],["fragment","pricing",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-cash-euro","imx-icon-middle"],["fragment","media",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-picture","imx-icon-middle"],["class","edit__navigation-item","fragment","geo",3,"ngClass","routerLink",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],["fragment","appearances",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-earth","imx-icon-middle"],["class","edit__navigation-item","fragment","references",3,"ngClass","routerLink",4,"ngIf"],["fragment","anatomy",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-site-map","imx-icon-middle"],["class","edit__navigation-item","fragment","modules_event",3,"ngClass","routerLink",4,"ngIf"],[3,"formHandler","isSubmitting","save","saveAndClose","close"],[3,"imxSlotComponent","inputs"],[1,"edit__content"],["alwaysFixed","true"],["scrollToInvalidField","",3,"formHandler","record","modules","hasMetainfo","additionalRequiredProps","contactListsEnabled","contactAddressPoisEnabled","save","slideInEvent"],["progress-bar","",1,"page-loading-wrapper"],["mode","indeterminate"],["fragment","geo",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-map-marker","imx-icon-middle"],["fragment","references",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-reference-list","imx-icon-middle"],["fragment","modules_event",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-jigsaw","imx-icon-middle"]],template:function(pe,Ze){1&pe&&(o.TgZ(0,"div",0)(1,"imx-edit-header",1),o.NdJ("reloadClicked",function(){return Ze.reload()})("slideInEvent",function(Si){return Ze.dispatchSlideEvent(Si)})("addToObjectListClicked",function(){return Ze.addToObjectList()}),o.YNc(2,Im,2,0,"div",2),o._UZ(3,"imx-entity-reliability-classification-icon",3)(4,"imx-integrity-classification-icon",3),o.qZA(),o.TgZ(5,"imx-grid")(6,"imx-grid-element",4)(7,"div",5)(8,"div",6)(9,"div",7)(10,"p-scrollPanel",null,8)(12,"div",9,10)(14,"a",11)(15,"div",12),o._UZ(16,"span",13),o.TgZ(17,"span",14),o._uU(18),o.ALo(19,"translate"),o.qZA()()(),o.TgZ(20,"a",15)(21,"div",12),o._UZ(22,"span",16),o.TgZ(23,"span",14),o._uU(24),o.ALo(25,"translate"),o.qZA()()(),o.TgZ(26,"a",17)(27,"div",12),o._UZ(28,"span",18),o.TgZ(29,"span",14),o._uU(30),o.ALo(31,"translate"),o.qZA()()(),o.TgZ(32,"a",19)(33,"div",12),o._UZ(34,"span",20),o.TgZ(35,"span",14),o._uU(36),o.ALo(37,"translate"),o.qZA()()(),o.TgZ(38,"a",21)(39,"div",12),o._UZ(40,"span",22),o.TgZ(41,"span",14),o._uU(42),o.ALo(43,"translate"),o.qZA()()(),o.YNc(44,$d,6,8,"a",23),o.TgZ(45,"a",24)(46,"div",12),o._UZ(47,"span",25),o.TgZ(48,"span",14),o._uU(49),o.ALo(50,"translate"),o.qZA()()(),o.YNc(51,Rd,6,8,"a",26),o.TgZ(52,"a",27)(53,"div",12),o._UZ(54,"span",28),o.TgZ(55,"span",14),o._uU(56),o.ALo(57,"translate"),o.qZA()()(),o.YNc(58,nu,6,8,"div",29),o.qZA()(),o.TgZ(59,"imx-edit-page-button-bar",30),o.NdJ("save",function(){return Ze.save()})("saveAndClose",function(){return Ze.save(!0)})("close",function(){return Ze.close()}),o.qZA(),o.GkF(60,31),o.qZA()(),o.TgZ(61,"div",32)(62,"imx-generic-slide-in-page",33)(63,"imx-event-edit-form",34),o.NdJ("save",function(Si){return Ze.submit(Si)})("slideInEvent",function(Si){return Ze.dispatchSlideEvent(Si)}),o.qZA()()()()()()()),2&pe&&(o.xp6(),o.Q6J("formHandler",Ze.formHandler)("record",Ze.record)("entityType","Event")("resourceKeyPrefix","imxeventmanager.event.")("activeSlideInType",Ze.activeSlideInType)("showImportInfoButton",Ze.record.importInfos&&Ze.record.importInfos.length>0)("useAppearanceLogic",Ze.formHandler.hasDeliveryChannelLogic())("showQualityBlock",!0),o.xp6(),o.Q6J("ngIf",Ze.isSubmitting),o.xp6(),o.Q6J("record",Ze.record),o.xp6(),o.Q6J("record",Ze.record),o.xp6(6),o.Akn(o.DdM(63,Gc)),o.xp6(4),o.Q6J("ngClass",o.VKq(64,Mc,Ze.isPanelActive("basicdata")))("routerLink",o.DdM(66,gc)),o.xp6(4),o.Oqu(o.lcZ(19,49,"imxplatform.common-entity.edit.navigation.basedata")),o.xp6(2),o.Q6J("ngClass",o.VKq(67,Mc,Ze.isPanelActive("address")))("routerLink",o.DdM(69,gc)),o.xp6(4),o.Oqu(o.lcZ(25,51,"imxplatform.common-entity.edit.navigation.addresses")),o.xp6(2),o.Q6J("ngClass",o.VKq(70,Mc,Ze.isPanelActive("dates")))("routerLink",o.DdM(72,gc)),o.xp6(4),o.Oqu(o.lcZ(31,53,"imxplatform.common-entity.edit.navigation.dates")),o.xp6(2),o.Q6J("ngClass",o.VKq(73,Mc,Ze.isPanelActive("pricing")))("routerLink",o.DdM(75,gc)),o.xp6(4),o.Oqu(o.lcZ(37,55,"imxplatform.common-entity.edit.navigation.pricing-info")),o.xp6(2),o.Q6J("ngClass",o.VKq(76,Mc,Ze.isPanelActive("media")))("routerLink",o.DdM(78,gc)),o.xp6(4),o.Oqu(o.lcZ(43,57,"imxplatform.common-entity.edit.navigation.media")),o.xp6(2),o.Q6J("hasFieldReadPermission","geoInfo.master")("hasFieldReadPermissionFormHandler",Ze.formHandler),o.xp6(),o.Q6J("ngClass",o.VKq(79,Mc,Ze.isPanelActive("appearances")))("routerLink",o.DdM(81,gc)),o.xp6(4),o.Oqu(o.lcZ(50,59,"imxplatform.common-entity.edit.navigation.publications")),o.xp6(2),o.Q6J("ngIf",Ze.formHandler.isContactListsEnabled()||Ze.formHandler.isContactAddressPoiEnabled()),o.xp6(),o.Q6J("ngClass",o.VKq(82,Mc,Ze.isPanelActive("anatomy")))("routerLink",o.DdM(84,gc)),o.xp6(4),o.Oqu(o.lcZ(57,61,"imxplatform.common-entity.edit.navigation.anatomy")),o.xp6(2),o.Q6J("ngIf",Ze.hasMetainfo),o.xp6(),o.Q6J("formHandler",Ze.formHandler)("isSubmitting",Ze.isSubmitting),o.xp6(),o.Q6J("imxSlotComponent",Ze.imxPlatformSlots.EDIT_PAGE_ADDITIONAL_BUTTON_BAR)("inputs",o.WLB(85,sc,Ze.formHandler,Ze.record)),o.xp6(3),o.Q6J("formHandler",Ze.formHandler)("record",Ze.record)("modules",o.DdM(88,gc))("hasMetainfo",Ze.hasMetainfo)("additionalRequiredProps",Ze.additionalRequiredProps)("contactListsEnabled",Ze.formHandler.isContactListsEnabled())("contactAddressPoisEnabled",Ze.formHandler.isContactAddressPoiEnabled()))},dependencies:[Pm.n,Lc,Pu,tu.r,Jm.Ee,ki.j,Mu.a,ee.F,Hs.g,m.mk,m.O5,n.rH,li.pW,$.P,wn.M,po.V,Sc,I.X$],styles:[".edit[_ngcontent-%COMP%]{padding-top:113px}.edit__wrapper[_ngcontent-%COMP%]{display:flex}.edit__wrapper[_ngcontent-%COMP%]   .edit__content[_ngcontent-%COMP%]{flex:1}.edit__navigation-items[_ngcontent-%COMP%]{display:flex;flex-direction:column}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]{font-size:14px;cursor:pointer;text-decoration:none;display:inline-block;transition:background-color .75s ease}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]{padding:8px;margin:5px 0;display:flex;flex-direction:row;align-items:center}@media (max-width: 900px){.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]{justify-content:center}}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content.sub[_ngcontent-%COMP%]{margin:2px 0}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .item-label[_ngcontent-%COMP%]{margin-left:15px;text-overflow:ellipsis;overflow:hidden}@media (max-width: 900px){.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .item-label[_ngcontent-%COMP%]{display:none}}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .item-label.sub[_ngcontent-%COMP%]{margin-left:10px}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .sub-item-icon[_ngcontent-%COMP%]{display:none}@media (max-width: 900px){.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .sub-item-icon[_ngcontent-%COMP%]{display:block}}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-sub-items[_ngcontent-%COMP%]{display:flex;flex-direction:column}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-sub-items[_ngcontent-%COMP%]   .icon-subNavigation[_ngcontent-%COMP%]{font-size:10px;margin-right:10px}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-sub-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]{padding-left:10px}.edit__navigation-sticky-wrapper[_ngcontent-%COMP%]{min-width:250px}@media (max-width: 900px){.edit__navigation-sticky-wrapper[_ngcontent-%COMP%]{min-width:100px}}.edit__navigation-sticky-content[_ngcontent-%COMP%]{padding-bottom:15px;padding-right:15px;max-width:250px;position:fixed;top:163px}.edit__navigation-sticky-content[_ngcontent-%COMP%]     .p-scrollpanel{transition:max-height .6s ease-in-out}@media (min-width: 901px){.edit__navigation-sticky-content[_ngcontent-%COMP%]{height:calc(100vh - 200px)}}@media (max-width: 900px){.edit__navigation-sticky-content[_ngcontent-%COMP%]{height:calc(100vh - 240px);min-width:100px}}"]})}return N})(),Gd=(()=>{class N extends l.ServerSideFilteringIdCachingDataSourceService{constructor(M,pe){super(M),this.securityContextHolder=M,this.eventService=pe}getAllResultIds(){return this.resultIds}fetchAllIds(M,pe,Ze){const xn=this.extractSortFields(pe,Ze);return this.eventService.getEventIds(M,{paging:"ONE_PAGE",sortFields:[xn]})}fetchResults(M){return this.eventService.getEvents(M,{paging:{pageIdx:0,pageSize:1e3}})}toIdFilter(M){return{id:M.join(",")}}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.LFG(s.q3),o.LFG(yn.b))};static#t=this.\u0275prov=o.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();var vm=a(43479),Us=a(48080),Tu=a(84102),Hu=a(94289),Gu=a(53807),gp=a(86041),Ep=a(35342),Ju=a(4595),Fe=a(20085),Pe=a(89642),St=a(78274),un=a(65716);let vi=(()=>{class N extends l.OptionProvider{constructor(M,pe){super(),this.entitiesMgrService=M,this.translateService=pe}getOptions(M,pe){return this.entitiesMgrService.getAllEntitiesOfType("Criterion").pipe((0,rn.U)(Ze=>Ze.items.map(xn=>({label:(xn.prefix?xn.prefix+" - ":"")+xn.i18nName[this.translateService.currentLang]+" ("+xn.client.name+"/"+xn.client.id+")",value:xn.id})).sort((xn,Si)=>xn.label.localeCompare(Si.label))))}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.LFG(s.qB),o.LFG(I.sK))};static#t=this.\u0275prov=o.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();var qe=a(35617),Xi=a(59038);const xt=["tree"];function jt(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"div",8),o._UZ(2,"imx-base-tree",11,12),o.qZA(),o.BQk()),2&N){const M=o.oxw(2);o.xp6(2),o.Q6J("displayNodeFn",M.eventCategoryTreeOptionProviderService.displayNodesFn)("sortRootNodesFn",M.eventCategoryTreeOptionProviderService.sortRootNodesFn)("sortNodesFn",M.eventCategoryTreeOptionProviderService.sortNodesFn)("availableItems",M.categoryRootNodes)("formControl",M.formHandler.formGroup.get("categories"))}}function jn(N,Lt){if(1&N&&(o.TgZ(0,"mat-list-option",13),o._uU(1),o.ALo(2,"readI18n"),o.qZA()),2&N){const M=Lt.$implicit;o.Q6J("value",M.value),o.xp6(),o.hij(" ",o.lcZ(2,2,M.label)," ")}}const ro=()=>({width:"100%",height:"100%"});function Bo(N,Lt){if(1&N&&(o.TgZ(0,"div",8)(1,"p-scrollPanel")(2,"mat-selection-list",9),o.YNc(3,jn,3,4,"ng-template",10),o.ALo(4,"async"),o.qZA()()()),2&N){const M=o.oxw(2);o.xp6(),o.Akn(o.DdM(6,ro)),o.xp6(),o.Q6J("formControl",M.formHandler.formGroup.get("categories")),o.xp6(),o.Q6J("ngForOf",o.lcZ(4,4,M.eventCategories$))}}function jr(N,Lt){if(1&N&&(o.TgZ(0,"mat-list-option",13),o._uU(1),o.ALo(2,"readI18n"),o.qZA()),2&N){const M=Lt.$implicit;o.Q6J("value",M.value),o.xp6(),o.hij(" ",o.lcZ(2,2,M.label)," ")}}function Hr(N,Lt){if(1&N&&(o.TgZ(0,"form",1)(1,"div",2)(2,"imx-grid")(3,"imx-grid-element",3)(4,"div",4)(5,"label",5),o._uU(6,"imxeventmanager.event.edit.panels.base-data.categories"),o.qZA(),o.YNc(7,jt,4,5,"ng-container",6)(8,Bo,5,7,"ng-template",null,7,o.W1O),o.qZA()(),o.TgZ(10,"imx-grid-element",3)(11,"div",4)(12,"label",5),o._uU(13,"imxeventmanager.event.edit.panels.base-data.criteria"),o.qZA(),o.TgZ(14,"div",8)(15,"p-scrollPanel")(16,"mat-selection-list",9),o.YNc(17,jr,3,4,"ng-template",10),o.ALo(18,"async"),o.qZA()()()()(),o.Hsn(19),o.qZA()()()),2&N){const M=o.MAs(9),pe=o.oxw();o.Q6J("formGroup",pe.parentForm),o.xp6(3),o.Q6J("lg_w",6)("sm_w",12),o.xp6(4),o.Q6J("ngIf",pe.showCategoriesAsTree)("ngIfElse",M),o.xp6(3),o.Q6J("lg_w",6)("sm_w",12),o.xp6(5),o.Akn(o.DdM(13,ro)),o.xp6(),o.Q6J("formControl",pe.formHandler.formGroup.get("criteria")),o.xp6(),o.Q6J("ngForOf",o.lcZ(18,11,pe.eventCriteria$))}}const al=["*"];let Jd=(()=>{class N extends l.AbstractFilterPanelComponent{constructor(M,pe,Ze,xn){super(),this.eventCategoryOptionProviderService=M,this.eventCategoryTreeOptionProviderService=pe,this.eventCriterionOptionProviderService=Ze,this.entitiesMgrService=xn,this.id="CATEGORY_FILTER",this.titleKey="imxeventmanager.event.filter.category-criteria-filter.header",this.icon="icon-layers",this.showCategoriesAsTree=!1,this.categoryRootNodes=[],this.filterFields=["categories","criteria"]}ngOnInit(){super.ngOnInit(),this.eventCategories$=this.eventCategoryOptionProviderService.getOptions(void 0,void 0).pipe((0,ma.R)(this.destroy$)),this.eventCriteria$=this.eventCriterionOptionProviderService.getOptions(void 0,void 0).pipe((0,ma.R)(this.destroy$)),this.eventCategoryTreeOptionProviderService.getRootNodes().subscribe(M=>this.categoryRootNodes=M),this.entitiesMgrService.getAllEntitiesOfType("Category").pipe((0,rn.U)(M=>M.items)).subscribe(M=>{M.filter(pe=>null!=pe.parent).length>0&&(this.showCategoriesAsTree=!0)})}displayFn(M){return M?M.i18nName:void 0}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(ys.O),o.Y36(zr.n),o.Y36(vi),o.Y36(l.ImxEntitiesMgrService))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-category-criteria-filter-panel"]],viewQuery:function(pe,Ze){if(1&pe&&o.Gf(xt,7),2&pe){let xn;o.iGM(xn=o.CRH())&&(Ze.tree=xn.first)}},hostAttrs:[1,"imx-category-criteria-filter-panel"],features:[o._Bn([(0,l.provideParent)(N)]),o.qOj],ngContentSelectors:al,decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"filter__card"],[3,"lg_w","sm_w"],[1,"list-group-wrapper"],["translate",""],[4,"ngIf","ngIfElse"],["showList",""],[1,"list-group"],["dense","",3,"formControl"],["ngFor","",3,"ngForOf"],[3,"displayNodeFn","sortRootNodesFn","sortNodesFn","availableItems","formControl"],["tree",""],[3,"value"]],template:function(pe,Ze){1&pe&&(o.F$t(),o.YNc(0,Hr,20,14,"form",0)),2&pe&&o.Q6J("ngIf",Ze.panelShown)},dependencies:[qe.Q,m.sg,m.O5,b._Y,b.JJ,b.JL,Xi.Ub,Xi.vS,b.oH,b.sg,I.Pi,$.P,wn.M,po.V,Ls.j,m.Ov],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}.list-group-wrapper[_ngcontent-%COMP%]{width:100%}.list-group-wrapper[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:5px}.list-group-wrapper[_ngcontent-%COMP%]   .list-group[_ngcontent-%COMP%]{width:100%;height:60vh;overflow:hidden;border:1px solid #ced4e0;background-color:#fff}.mat-mdc-list-item-disabled[_ngcontent-%COMP%]{background-color:#fff}[_nghost-%COMP%]     .imx-base-tree .tree-group{height:100%}"]})}return N})();function Qd(N,Lt){if(1&N&&(o.TgZ(0,"imx-grid-element",7)(1,"h3",8),o._uU(2,"filter.Event.targetGroups"),o.qZA(),o.TgZ(3,"div"),o._UZ(4,"imx-form-control",9),o.qZA()()),2&N){const M=o.oxw(2);o.Q6J("lg_w",5)("md_w",7)("sm_w",12)("ty_w",12),o.xp6(4),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("targetGroups"))("control",M.formHandler.formGroup.get("targetGroups"))("form",M.formHandler.formGroup)("formHandler",M.formHandler)("config",M.formHandler.formConfiguration)}}function op(N,Lt){if(1&N&&(o.TgZ(0,"imx-grid-element",10)(1,"h3",8),o._uU(2,"filter.Event.relevances"),o.qZA(),o.TgZ(3,"div"),o._UZ(4,"imx-form-control",9),o.qZA()()),2&N){const M=o.oxw(2);o.Q6J("lg_w",6)("sm_w",12),o.xp6(4),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("relevances"))("control",M.formHandler.formGroup.get("relevances"))("form",M.formHandler.formGroup)("formHandler",M.formHandler)("config",M.formHandler.formConfiguration)}}function f_(N,Lt){1&N&&o.GkF(0)}function rp(N,Lt){1&N&&o.GkF(0)}function Ap(N,Lt){1&N&&o.GkF(0)}function iu(N,Lt){if(1&N&&(o.TgZ(0,"div",18),o._UZ(1,"imx-form-control",9),o.qZA()),2&N){const M=o.oxw(2);o.xp6(),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("eventSeries"))("control",M.formHandler.formGroup.get("eventSeries"))("form",M.formHandler.formGroup)("formHandler",M.formHandler)("config",M.formHandler.formConfiguration)}}function Qu(N,Lt){1&N&&o.GkF(0)}function Wp(N,Lt){1&N&&o.GkF(0)}function S_(N,Lt){1&N&&o.GkF(0)}function zp(N,Lt){1&N&&o.GkF(0)}function ap(N,Lt){1&N&&o.GkF(0)}const Rc=N=>({$implicit:N});function F_(N,Lt){if(1&N&&o.YNc(0,ap,1,0,"ng-container",12),2&N){const M=Lt.$implicit;o.oxw(2);const pe=o.MAs(2);o.Q6J("ngTemplateOutlet",pe)("ngTemplateOutletContext",o.VKq(2,Rc,M.id))}}const jp=()=>({$implicit:"freeOfCharge"}),Kp=()=>({$implicit:"criteriaAssigned"}),lc=()=>({$implicit:"seriesAssigned"}),$p=()=>({$implicit:"bookableByDate"}),Bp=()=>({$implicit:"bookableGlobal"}),g_=()=>({$implicit:"cancelledByDates"}),ep=()=>({$implicit:"cancelledGlobal"});function Vu(N,Lt){if(1&N&&(o.TgZ(0,"form",2)(1,"div",3)(2,"div",4)(3,"imx-grid"),o.YNc(4,Qd,5,9,"imx-grid-element",5),o.ALo(5,"async"),o.YNc(6,op,5,7,"imx-grid-element",6),o.ALo(7,"async"),o.qZA()(),o.TgZ(8,"div",4)(9,"imx-grid")(10,"imx-grid-element",7)(11,"h3",8),o._uU(12,"imxeventmanager.event.filter.additional-filter.regularity"),o.qZA()()(),o.TgZ(13,"imx-grid")(14,"imx-grid-element",7),o._UZ(15,"imx-form-control",9),o.qZA(),o.TgZ(16,"imx-grid-element",10),o._UZ(17,"imx-form-control",9),o.qZA()()(),o.TgZ(18,"div",4)(19,"imx-grid")(20,"imx-grid-element",7)(21,"div",11),o.YNc(22,f_,1,0,"ng-container",12)(23,rp,1,0,"ng-container",12)(24,Ap,1,0,"ng-container",12),o.qZA(),o.YNc(25,iu,2,5,"div",13),o.ALo(26,"async"),o.TgZ(27,"div",14),o._UZ(28,"imx-form-control",9),o.qZA()(),o._UZ(29,"br"),o.TgZ(30,"imx-grid-element",7)(31,"div",15)(32,"h3",8),o._uU(33,"imxeventmanager.event.filter.additional-filter.bookability"),o.qZA(),o.TgZ(34,"div",11),o.YNc(35,Qu,1,0,"ng-container",12)(36,Wp,1,0,"ng-container",12),o.qZA()(),o.TgZ(37,"div",15)(38,"h3",8),o._uU(39,"imxeventmanager.event.filter.additional-filter.cancelled"),o.qZA(),o.TgZ(40,"div",11),o.YNc(41,S_,1,0,"ng-container",12)(42,zp,1,0,"ng-container",12),o.qZA()(),o.TgZ(43,"div",16),o.YNc(44,F_,1,4,"ng-template",17),o.qZA()()()()()()),2&N){const M=o.oxw(),pe=o.MAs(2);o.Q6J("formGroup",M.parentForm),o.xp6(4),o.Q6J("ngIf",o.lcZ(5,52,M.targetGroupsTypesAvailable$)),o.xp6(2),o.Q6J("ngIf",o.lcZ(7,54,M.relevancesAvailable$)&&M.formHandler.hasSearchFieldReadPermission("relevances")),o.xp6(4),o.Q6J("lg_w",5)("md_w",7)("sm_w",12)("ty_w",12),o.xp6(4),o.Q6J("lg_w",5)("md_w",7)("sm_w",12)("ty_w",12),o.xp6(),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("periodical"))("control",M.formHandler.formGroup.get("periodical"))("form",M.formHandler.formGroup)("formHandler",M.formHandler)("config",M.formHandler.formConfiguration),o.xp6(),o.Q6J("lg_w",12)("sm_w",12),o.xp6(),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("periodicTypesAssigned"))("control",M.formHandler.formGroup.get("periodicTypesAssigned"))("form",M.formHandler.formGroup)("formHandler",M.formHandler)("config",M.formHandler.formConfiguration),o.xp6(3),o.Q6J("lg_w",6)("md_w",8)("sm_w",12)("ty_w",12),o.xp6(2),o.Q6J("ngTemplateOutlet",pe)("ngTemplateOutletContext",o.DdM(58,jp)),o.xp6(),o.Q6J("ngTemplateOutlet",pe)("ngTemplateOutletContext",o.DdM(59,Kp)),o.xp6(),o.Q6J("ngTemplateOutlet",pe)("ngTemplateOutletContext",o.DdM(60,lc)),o.xp6(),o.Q6J("ngIf",o.lcZ(26,56,M.eventsSeriesAvalaible$)),o.xp6(3),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("onlyDuplicates"))("control",M.formHandler.formGroup.get("onlyDuplicates"))("form",M.formHandler.formGroup)("formHandler",M.formHandler)("config",M.formHandler.formConfiguration),o.xp6(2),o.Q6J("lg_w",6)("md_w",8)("sm_w",12)("ty_w",12),o.xp6(5),o.Q6J("ngTemplateOutlet",pe)("ngTemplateOutletContext",o.DdM(61,$p)),o.xp6(),o.Q6J("ngTemplateOutlet",pe)("ngTemplateOutletContext",o.DdM(62,Bp)),o.xp6(5),o.Q6J("ngTemplateOutlet",pe)("ngTemplateOutletContext",o.DdM(63,g_)),o.xp6(),o.Q6J("ngTemplateOutlet",pe)("ngTemplateOutletContext",o.DdM(64,ep)),o.xp6(2),o.Q6J("ngForOf",M.getFieldExtensions("cancelledGlobal"))}}function h_(N,Lt){if(1&N&&o._UZ(0,"imx-form-control",9),2&N){const M=Lt.$implicit,pe=o.oxw();o.Q6J("field",pe.formHandler.formConfiguration.findFormFieldById(M))("control",pe.formHandler.formGroup.get(M))("form",pe.formHandler.formGroup)("formHandler",pe.formHandler)("config",pe.formHandler.formConfiguration)}}let ef=(()=>{class N extends l.AbstractFilterPanelComponent{constructor(M){super(),this.entitiesMgr=M,this.id="EVENT_ADDITIONAL_FILTER",this.titleKey="imxeventmanager.event.filter.additional-filter.header",this.icon="icon-additional",this.targetGroupsTypesAvailable$=(0,ho.of)(!1),this.relevancesAvailable$=(0,ho.of)(!1),this.eventsSeriesAvalaible$=(0,ho.of)(!1),this.filterFields=["relevances","targetGroups","periodical","periodicTypesAssigned","freeOfCharge","criteriaAssigned","seriesAssigned","eventSeries","onlyDuplicates","bookableByDate","bookableGlobal","cancelledByDates","cancelledGlobal"]}ngOnInit(){super.ngOnInit(),this.targetGroupsTypesAvailable$=this.entitiesMgr.isBaseEntityAvailable("TargetGroup"),this.relevancesAvailable$=this.entitiesMgr.isBaseEntityAvailable("Relevance"),this.eventsSeriesAvalaible$=this.entitiesMgr.isBaseEntityAvailable("EventSeries"),this.getFieldExtensions("cancelledGlobal").forEach(M=>this.filterFields.push(M.id))}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(l.ImxEntitiesMgrService))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-event-additional-filter-panel"]],hostAttrs:[1,"imx-event-additional-filter-panel"],features:[o._Bn([(0,l.provideParent)(N)]),o.qOj],decls:3,vars:1,consts:[[3,"formGroup",4,"ngIf"],["imxControl",""],[3,"formGroup"],[1,"filter__card"],[1,"filter__card__content"],[3,"lg_w","md_w","sm_w","ty_w",4,"ngIf"],[3,"lg_w","sm_w",4,"ngIf"],[3,"lg_w","md_w","sm_w","ty_w"],["translate",""],[3,"field","control","form","formHandler","config"],[3,"lg_w","sm_w"],[1,"tripleRadio"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","event-series-wrapper",4,"ngIf"],[1,"checkbox-margin-wrapper"],[1,"group-wrapper"],[1,"filter__card__content__tripeRadio"],["ngFor","",3,"ngForOf"],[1,"event-series-wrapper"]],template:function(pe,Ze){1&pe&&o.YNc(0,Vu,45,65,"form",0)(1,h_,1,5,"ng-template",null,1,o.W1O),2&pe&&o.Q6J("ngIf",Ze.panelShown)},dependencies:[u.A,m.sg,m.O5,m.tP,b._Y,b.JL,b.sg,I.Pi,wn.M,po.V,m.Ov],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}.filter__card[_ngcontent-%COMP%]{max-height:calc(100vh - 150px);overflow:auto}.filter__card__content[_ngcontent-%COMP%]{padding-bottom:5px;padding-top:5px}label[_ngcontent-%COMP%]{display:block;margin-bottom:3px}.tripleRadio[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%]:hover{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.event-series-wrapper[_ngcontent-%COMP%]{margin-top:10px}div.group-wrapper[_ngcontent-%COMP%]{margin-bottom:20px}.checkbox-margin-wrapper[_ngcontent-%COMP%]{margin-bottom:23px}h3[_ngcontent-%COMP%]{margin-bottom:5px}.filter__card__content[_ngcontent-%COMP%]     .imx-checkbox-select>.checkbox-select-wrapper>div{padding-left:0}.tripleRadio[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%]{margin-bottom:0}"]})}return N})();var qp=a(63005),L_=a(2901);const x_=["appStartDatePicker"],tf=["appEndDatePicker"];function wp(N,Lt){if(1&N&&(o.TgZ(0,"imx-grid-element",3),o._UZ(1,"imx-form-control",4),o.qZA()),2&N){const M=o.oxw(2);o.Q6J("lg_w",6)("sm_w",12),o.xp6(),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("permalink"))("control",M.formHandler.formGroup.get("permalink"))("form",M.formHandler.formGroup.get("permalink"))("formHandler",M.formHandler)("config",M.formHandler.formConfiguration)}}function _d(N,Lt){1&N&&(o.TgZ(0,"imx-grid-element",3)(1,"div",6),o._UZ(2,"imx-base-input-label",11),o.TgZ(3,"div",8),o._UZ(4,"imx-base-date",12)(5,"imx-base-date",13),o.qZA()()()),2&N&&o.Q6J("lg_w",6)("sm_w",12)}function Jc(N,Lt){if(1&N&&(o.TgZ(0,"imx-grid-element",3),o._UZ(1,"imx-form-control",4),o.qZA()),2&N){const M=o.oxw(2);o.Q6J("lg_w",6)("sm_w",12),o.xp6(),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("addressPoiGroupId"))("control",M.formHandler.formGroup.get("addressPoiGroupId"))("form",M.formHandler.formGroup.get("addressPoiGroupId"))("formHandler",M.formHandler)("config",M.formHandler.formConfiguration)}}function v_(N,Lt){if(1&N&&(o.TgZ(0,"imx-grid-element",3),o._UZ(1,"imx-form-control",4),o.qZA()),2&N){const M=o.oxw(2);o.Q6J("lg_w",6)("sm_w",12),o.xp6(),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("locationId"))("control",M.formHandler.formGroup.get("locationId"))("form",M.formHandler.formGroup.get("locationId"))("formHandler",M.formHandler)("config",M.formHandler.formConfiguration)}}function ou(N,Lt){if(1&N&&(o.TgZ(0,"imx-grid-element",3),o._UZ(1,"imx-form-control",4),o.qZA()),2&N){const M=o.oxw(2);o.Q6J("lg_w",6)("sm_w",12),o.xp6(),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("contributorId"))("control",M.formHandler.formGroup.get("contributorId"))("form",M.formHandler.formGroup.get("contributorId"))("formHandler",M.formHandler)("config",M.formHandler.formConfiguration)}}function Yu(N,Lt){if(1&N&&(o.TgZ(0,"form",1)(1,"div",2)(2,"imx-grid")(3,"imx-grid-element",3),o._UZ(4,"imx-form-control",4),o.qZA(),o.TgZ(5,"imx-grid-element",3),o._UZ(6,"imx-form-control",4),o.qZA(),o.TgZ(7,"imx-grid-element",3),o._UZ(8,"imx-form-control",4),o.qZA(),o.YNc(9,wp,2,7,"imx-grid-element",5),o.TgZ(10,"imx-grid-element",3)(11,"div",6),o._UZ(12,"imx-base-input-label",7),o.TgZ(13,"div",8),o._UZ(14,"imx-base-date",9)(15,"imx-base-date",10),o.qZA()()(),o.YNc(16,_d,6,2,"imx-grid-element",5)(17,Jc,2,7,"imx-grid-element",5)(18,v_,2,7,"imx-grid-element",5)(19,ou,2,7,"imx-grid-element",5),o.Hsn(20),o.qZA()()()),2&N){const M=o.oxw();o.Q6J("formGroup",M.parentForm),o.xp6(3),o.Q6J("lg_w",6)("sm_w",12),o.xp6(),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("id"))("control",M.formHandler.formGroup.get("id"))("form",M.formHandler.formGroup.get("id"))("formHandler",M.formHandler)("config",M.formHandler.formConfiguration),o.xp6(),o.Q6J("lg_w",6)("sm_w",12),o.xp6(),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("importId"))("control",M.formHandler.formGroup.get("importId"))("form",M.formHandler.formGroup.get("importId"))("formHandler",M.formHandler)("config",M.formHandler.formConfiguration),o.xp6(),o.Q6J("lg_w",6)("sm_w",12),o.xp6(),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("language"))("control",M.formHandler.formGroup.get("language"))("form",M.formHandler.formGroup.get("language"))("formHandler",M.formHandler)("config",M.formHandler.formConfiguration),o.xp6(),o.Q6J("ngIf",M.formHandler.formConfiguration.findFormFieldById("permalink")),o.xp6(),o.Q6J("lg_w",6)("sm_w",12),o.xp6(6),o.Q6J("ngIf",M.formHandler.formConfiguration.findFormFieldById("modifiedFrom")),o.xp6(),o.Q6J("ngIf",M.formHandler.formConfiguration.findFormFieldById("addressPoiGroupId")),o.xp6(),o.Q6J("ngIf",M.formHandler.formConfiguration.findFormFieldById("locationId")),o.xp6(),o.Q6J("ngIf",M.formHandler.formConfiguration.findFormFieldById("contributorId"))}}const b_=["*"];let hp=(()=>{class N extends l.AbstractFilterPanelComponent{constructor(){super(),this.id="MAIN_FILTER",this.titleKey="imxplatform.common-entity.filter.mainFilter.name",this.icon="icon-cube",this.filterFields=["id","importId","permalink","language","locationId","contributorId","addressPoiGroupId","startDate","endDate","modifiedFrom","modifiedTo"]}modifyFormValues(M){super.modifyFormValues(M),M.startDate=(0,s.w5)(M.startDate),M.endDate=(0,s.w5)(M.endDate),M.modifiedFrom=(0,s.w5)(M.modifiedFrom),M.modifiedTo=(0,s.w5)(M.modifiedTo)}static#e=this.\u0275fac=function(pe){return new(pe||N)};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-event-main-filter-panel"]],viewQuery:function(pe,Ze){if(1&pe&&(o.Gf(x_,7),o.Gf(tf,7)),2&pe){let xn;o.iGM(xn=o.CRH())&&(Ze.appStartDatePicker=xn.first),o.iGM(xn=o.CRH())&&(Ze.appEndDatePicker=xn.first)}},hostAttrs:[1,"imx-event-main-filter-panel"],features:[o._Bn([(0,l.provideParent)(N)]),o.qOj],ngContentSelectors:b_,decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"filter__card"],[3,"lg_w","sm_w"],[3,"field","control","form","formHandler","config"],[3,"lg_w","sm_w",4,"ngIf"],[1,"flex-column"],["label","imxeventmanager.event.filter.mainFilter.date"],[1,"flex-row","filter__align-left","field-margin"],["formControlName","startDate","quickaccess","today"],["formControlName","endDate","quickaccess","today"],["label","imxeventmanager.event.filter.mainFilter.modificationDate"],["formControlName","modifiedFrom","quickaccess","today"],["formControlName","modifiedTo","quickaccess","today"]],template:function(pe,Ze){1&pe&&(o.F$t(),o.YNc(0,Yu,21,29,"form",0)),2&pe&&o.Q6J("ngIf",Ze.panelShown)},dependencies:[qp.d,L_.u,u.A,m.O5,b._Y,b.JJ,b.JL,b.sg,b.u,wn.M,po.V],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}"]})}return N})();function Xp(N,Lt){if(1&N&&o._UZ(0,"imx-admin-filter-panel",2,16),2&N){const M=o.oxw(2);o.Q6J("parentForm",M.formHandler.formGroup)("record",M.record)("formHandler",M.formHandler)}}function e_(N,Lt){if(1&N&&(o._UZ(0,"imx-event-main-filter-panel",2,3)(2,"imx-fulltext-filter-panel",2,4)(4,"imx-appearance-filter-panel",5,6)(6,"imx-client-filter-panel",7,8)(8,"imx-geo-filter-panel",2,9)(10,"imx-category-criteria-filter-panel",2,10)(12,"imx-event-additional-filter-panel",2,11)(14,"imx-memo-filter-panel",2,12)(16,"imx-quality-filter-panel",13,14),o.YNc(18,Xp,2,3,"imx-admin-filter-panel",15)),2&N){const M=o.oxw();o.Q6J("parentForm",M.formHandler.formGroup)("record",M.record)("formHandler",M.formHandler),o.xp6(2),o.Q6J("parentForm",M.formHandler.formGroup)("record",M.record)("formHandler",M.formHandler),o.xp6(2),o.Q6J("parentForm",M.formHandler.formGroup)("record",M.record)("formHandler",M.formHandler)("entityName",M.getEntityName())("useAppearanceLogic",M.hasDeliveryChannelLogic),o.xp6(2),o.Q6J("parentForm",M.formHandler.formGroup)("record",M.record)("formHandler",M.formHandler)("availableClients",M.availableClients),o.xp6(2),o.Q6J("parentForm",M.formHandler.formGroup)("record",M.record)("formHandler",M.formHandler),o.xp6(2),o.Q6J("parentForm",M.formHandler.formGroup)("record",M.record)("formHandler",M.formHandler),o.xp6(2),o.Q6J("parentForm",M.formHandler.formGroup)("record",M.record)("formHandler",M.formHandler),o.xp6(2),o.Q6J("parentForm",M.formHandler.formGroup)("record",M.record)("formHandler",M.formHandler),o.xp6(2),o.Q6J("parentForm",M.formHandler.formGroup)("record",M.record)("formHandler",M.formHandler)("entityType",M.getEntityName()),o.xp6(2),o.Q6J("hasAnyPermission",M.hasAdminPermssionStr)}}let ru=(()=>{class N extends l.AbstractCoreDataObjectFilterComponent{constructor(M,pe,Ze,xn,Si){super(xn),this.imxEventmanagerDataAccessService=M,this.entitiesMgrService=pe,this.securityManagerService=Ze,this.runtimeContextService=Si,this.hasDeliveryChannelLogic=!0}ngOnInit(){if(super.ngOnInit(),this.availableClients=this.determineAvailableClients(),this.hasDeliveryChannelLogic=this.formHandler.hasDeliveryChannelLogic(),this.configurationProvider.getBooleanFromSnapshot(l.ImxPlatformConfigParameter.PLATFORM_CONTENT_SCORE_ENABLED)){const M=this.orderFields,pe=M.reduce((Ze,xn)=>xn.index>Ze?xn.index:Ze,M[0].index);this.orderFields.push({index:pe+1,field:"CONTENT_SCORE",i18n:"filter.ScorableDataObject.contentScore",type:l.OrderType.numeric})}}determineAvailableClients(){return this.securityManagerService.hasPermission(Us.M.F_EVENT_READ_ALL)?this.entitiesMgrService.getAllEntitiesOfType("Client").pipe((0,rn.U)(M=>M.items)):this.securityManagerService.hasPermission(Us.M.F_EVENT_READ_OWN_CLIENT)||this.securityManagerService.hasPermission(Us.M.F_EVENT_READ_SUBSCRIPT_CLIENT)?this.runtimeContextService.getCurrentAndSubClients().pipe((0,rn.U)(M=>Array.from(M))):this.securityManagerService.hasPermission(Us.M.F_EVENT_READ_OWN_USER)?this.runtimeContextService.getCurrentClient().pipe((0,rn.U)(M=>[M])):(0,ho.of)([])}getEntityName(){return"Event"}newWidgetDef(M,pe,Ze){return{x:0,y:3,cols:3,rows:1,widgetDef:{viewInfo:{showHeader:!0,columns:[{property:"id",format:"Number",header:"entity.DataObject.id",headerType:"Resource"},{property:"title",format:"Link(events/edit/{id})",header:"entity.Event.title",headerType:"Resource"},{property:"lastChangeTime",format:"DateDiff",header:"entity.Event.lastChangeTime",headerType:"Resource",type:"Timestamp"}],rowCount:10},deepLink:{link:Ze,name:"imxplatform.dashboard.eventlist"},icon:"event",contentType:"EntityQuery",contentInfo:{serviceRequest:"event/compact?"+pe},title:M,viewType:"List"}}}clientParams2RequestParams(M){const pe=this.paramMap2Filter(M),Ze=this.paramMap2DataAccessRequestOptions(M);return this.imxEventmanagerDataAccessService.convertEventClientParamsToRequestParams(pe,Ze)}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(yn.b),o.Y36(s.qB),o.Y36(s.Xh),o.Y36(l.ConfigurationProvider),o.Y36(s.Ze))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-event-filter"]],features:[o.qOj],decls:3,vars:11,consts:[[3,"entityName","filterPanelsTemplate","enableSearchListOption","enableCreateContactListOption","newWidgetDefFn","clientParams2RequestParamsFn","formHandler","record","orderFields","orderField","orderDirection","orderChanged","save"],["filterPanelsTemplate",""],[3,"parentForm","record","formHandler"],["mainFilterPanel",""],["fulltextFilterPanel",""],[3,"parentForm","record","formHandler","entityName","useAppearanceLogic"],["appearanceFilterPanel",""],[3,"parentForm","record","formHandler","availableClients"],["clientFilterPanel",""],["geoFilterPanel",""],["categoryFilterPanel",""],["additionalFilterPanel",""],["memoFilterPanel",""],[3,"parentForm","record","formHandler","entityType"],["qualityFilterPanel",""],[3,"parentForm","record","formHandler",4,"hasAnyPermission"],["adminFilterPanel",""]],template:function(pe,Ze){if(1&pe&&(o.TgZ(0,"imx-filter",0),o.NdJ("orderChanged",function(Si){return Ze.orderChanged.emit(Si)})("save",function(Si){return Ze.applyFilter.emit(Si)}),o.YNc(1,e_,19,32,"ng-template",null,1,o.W1O),o.qZA()),2&pe){const xn=o.MAs(2);o.Q6J("entityName","Event")("filterPanelsTemplate",xn)("enableSearchListOption",!0)("enableCreateContactListOption",Ze.enableCreateContactListOption)("newWidgetDefFn",Ze.newWidgetDefFn)("clientParams2RequestParamsFn",Ze.clientParams2RequestParamsFn)("formHandler",Ze.formHandler)("record",Ze.record)("orderFields",Ze.orderFields)("orderField",Ze.orderField)("orderDirection",Ze.orderDirection)}},dependencies:[gp.B,Ep.d,Ju.s,Fe.$,Pe.Q,Vn.z,St.Y,un.L,yt.R,Jd,ef,hp],styles:[".filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}"],changeDetection:0})}return N})();var Zp=a(13098);function Qm(N,Lt){1&N&&(o.TgZ(0,"imx-list-no-results"),o._uU(1,"imxeventmanager.event.list.no-records"),o.qZA())}function Dp(N,Lt){1&N&&o._UZ(0,"mat-progress-bar",10)}function bm(N,Lt){1&N&&(o.TgZ(0,"div",11),o._UZ(1,"div",12),o.qZA()),2&N&&o.Q6J("ngClass",Lt.class)}function t_(N,Lt){if(1&N&&(o.TgZ(0,"th",19),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&N){const M=Lt.$implicit;o.Udp("width",M.width),o.Q6J("ngClass",M.cssClass),o.xp6(),o.hij(" ",o.lcZ(2,4,M.header)," ")}}function n_(N,Lt){if(1&N&&(o.TgZ(0,"tr"),o.YNc(1,t_,3,6,"th",18),o.qZA()),2&N){const M=o.oxw(3);o.xp6(),o.Q6J("ngForOf",M.columnDefinitions)}}function xp(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"imx-action-menu-item",30),o.NdJ("actionClicked",function(){const xn=o.CHM(M).$implicit,Si=o.oxw().$implicit,Ga=o.oxw(3);return o.KtG(Ga.executeRowAction(xn,Si))}),o._uU(1),o.ALo(2,"translate"),o.qZA()}if(2&N){const M=Lt.$implicit;o.Q6J("icon",M.getIcon())("additionalStyle","icon-trash"==M.getIcon()?"delete":""),o.xp6(),o.hij(" ",o.lcZ(2,3,M.getActionLabelKey())," ")}}function Ip(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"tr")(1,"td"),o._uU(2),o.qZA(),o.TgZ(3,"td",20),o.ALo(4,"readI18n"),o.TgZ(5,"a",21),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.contextNavigationService.navigateToCoreEntityContextual(["/events/edit",xn.id]))}),o.TgZ(6,"span",22),o._UZ(7,"span",23),o.qZA(),o._uU(8),o.ALo(9,"readI18n"),o.TgZ(10,"span",24),o._uU(11),o.ALo(12,"translate"),o.qZA()()(),o.TgZ(13,"td",20),o._uU(14),o.qZA(),o.TgZ(15,"td")(16,"imx-tooltip",25),o.ALo(17,"readI18n"),o.ALo(18,"languageNames"),o._UZ(19,"imx-language-flag",26),o.qZA()(),o.TgZ(20,"td"),o._UZ(21,"imx-entity-state",27),o.qZA(),o.TgZ(22,"td",28)(23,"imx-dropup-button")(24,"imx-action-menu"),o.YNc(25,xp,3,5,"ng-template",29),o.qZA()()()()}if(2&N){const M=Lt.$implicit,pe=o.oxw(3);o.xp6(2),o.Oqu(M.id),o.xp6(),o.Q6J("matTooltip",o.lcZ(4,14,M.title))("matTooltipShowDelay",500),o.xp6(5),o.hij(" ",o.lcZ(9,16,M.title)," "),o.xp6(3),o.Oqu(pe.isClone(M.id)?" ("+o.lcZ(12,18,"imxplatform.common-entity.list.inbox.copy")+")":""),o.xp6(2),o.Q6J("matTooltip",null==M.client?null:M.client.name)("matTooltipShowDelay",500),o.xp6(),o.hij(" ",null==M.client?null:M.client.name," "),o.xp6(2),o.Q6J("tooltipText",o.lcZ(17,20,o.lcZ(18,22,M.languages)))("offset",300),o.xp6(3),o.Q6J("languages",M.languages)("inline",!0),o.xp6(2),o.Q6J("key",null==M||null==M.entityState?null:M.entityState.key),o.xp6(4),o.Q6J("ngForOf",null==pe.actionProvider?null:pe.actionProvider.getRowActionsForType(pe.getEntityName(),M.id))}}function U(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"p-table",15),o.YNc(2,n_,2,1,"ng-template",16)(3,Ip,26,24,"ng-template",17),o.qZA(),o.BQk()),2&N){const M=o.oxw().ngIf;o.xp6(),o.Q6J("value",M.items)("resizableColumns",!0)}}function S(N,Lt){if(1&N&&(o.TgZ(0,"div",13),o.YNc(1,U,4,2,"ng-container",14),o.qZA()),2&N){const M=Lt.ngIf;o.oxw();const pe=o.MAs(7);o.xp6(),o.Q6J("ngIf",M.items.length>0)("ngIfElse",pe)}}let fe=(()=>{class N extends l.AbstractInboxPage{constructor(M,pe,Ze,xn,Si,Ga,xs,vs,bl,Ll,Tc,xc,fu){super(M,pe,Ze,Si,Ga,xs,vs,bl,Ll,Tc,xc,fu),this.dataSource=M,this.eventmanagerPermissions=Us.M,this.availableOrderFields=[{index:1,field:"TITLE",i18n:"entity.Event.title",type:l.OrderType.alphanumeric},{index:2,field:"ID",i18n:"entity.Event.id",type:l.OrderType.numeric},{index:3,field:"DATE_START",i18n:"imxeventmanager.event.list.sort.firstDate",type:l.OrderType.numeric},{index:4,field:"DATE_END",i18n:"imxeventmanager.event.list.sort.lastDate",type:l.OrderType.numeric},{index:5,field:"CREATION_TIME",i18n:"imxeventmanager.event.list.sort.creationTime",type:l.OrderType.numeric},{index:6,field:"LAST_CHANGE",i18n:"imxeventmanager.event.list.sort.lastChange",type:l.OrderType.numeric},{index:7,field:"DUPLICATES",i18n:"imxeventmanager.event.list.sort.duplicates",type:l.OrderType.alphanumeric}],this.columnDefinitions=[{field:"id",header:"ID",width:"70px"},{field:"title",header:"entity.Event.title",width:"30%"},{field:"client",header:"entity.Event.client",width:"130px"},{field:"languages",header:"Sprachen",width:"100px"},{field:"entity-state",header:"entity.Event.state",width:"20%"},{field:"action",header:"",width:"50px",cssClass:"action-column"}]}ngOnInit(){super.ngOnInit()}getEntityName(){return"Event"}getEditRoute(){return"events"}getEditActionKey(){return"event-dm-action-edit"}getCloneActionKey(){return"event-dm-action-createClone"}getInboxContext(){return"datamanager"}adjustFilter(M){if(!this.configurationProvider.getBooleanFromSnapshot(l.ImxPlatformConfigParameter.PLATFORM_WORKFLOW_USE_DISPATCHER_STATE_ENGINE,!1)){if(this.currentAndSubClients){const Ze=this.retrieveIds(M.clientIds);M.clientIds=Ze?this.currentAndSubClients.map(xn=>xn.id).filter(xn=>Ze.includes(""+xn)).join(","):this.currentAndSubClients.map(xn=>xn.id).join(",")}this.imxDatamanagerUserId&&(M.owningUserId=this.imxDatamanagerUserId);const pe=new Date;M.startDate=pe.getFullYear().toString()+"-"+(pe.getMonth()+1).toString()+"-"+pe.getDate().toString()}}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(Gd),o.Y36(n.F0),o.Y36(n.gz),o.Y36(s.Yz),o.Y36(l.UserMessageService),o.Y36(l.ListHistoryService),o.Y36(t.uw),o.Y36(vm.oz),o.Y36(l.ImxPlatformDataAccessService),o.Y36(l.PlatformTrackingService),o.Y36(l.ActionProviderService),o.Y36(s.Ze),o.Y36(s.Pc))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["ng-component"]],features:[o.qOj],decls:15,vars:18,consts:[[1,"search-page"],[3,"formHandler","record","orderFields","orderField","orderDirection","orderChanged","applyFilter","resetFilter"],[3,"icon","text"],[3,"totalNumber","entityResourceKeyPrefix","isCompactPageHeader","showCompactToggle","reload"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],["targetMarkerTemplate",""],["class","table-wrapper",4,"ngIf","ngIfElse"],[3,"disableAllSelection","paging","selection","pageChanged","selectAll"],["mode","indeterminate"],[3,"ngClass"],[1,"reorder-marker"],[1,"table-wrapper"],[4,"ngIf","ngIfElse"],[1,"imx-datatable",3,"value","resizableColumns"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",3,"ngClass"],[3,"matTooltip","matTooltipShowDelay"],[1,"txt-link",3,"click"],[1,"badge"],[1,"icon-calendar-full"],[1,"txt-clone"],[3,"tooltipText","offset"],[3,"languages","inline"],[3,"key"],[1,"action-column"],["ngFor","",3,"ngForOf"],[3,"icon","additionalStyle","actionClicked"]],template:function(pe,Ze){if(1&pe&&(o.TgZ(0,"div",0)(1,"imx-event-filter",1),o.NdJ("orderChanged",function(Si){return Ze.sort(Si)})("applyFilter",function(Si){return Ze.search(Si)})("resetFilter",function(){return Ze.reset()}),o.qZA(),o.TgZ(2,"imx-eyecatcher",2)(3,"imx-list-header",3),o.NdJ("reload",function(){return Ze.reloadComplete()}),o.qZA()(),o.TgZ(4,"imx-grid")(5,"imx-grid-element",4),o.YNc(6,Qm,2,0,"ng-template",null,5,o.W1O)(8,Dp,1,0,"ng-template",null,6,o.W1O)(10,bm,2,1,"ng-template",null,7,o.W1O)(12,S,2,2,"div",8),o.ALo(13,"async"),o.qZA()(),o.TgZ(14,"imx-list-footer",9),o.NdJ("pageChanged",function(Si){return Ze.onPageChanged(Si)})("selectAll",function(Si){return Ze.onSelectAll(Si)}),o.qZA()()),2&pe){const xn=o.MAs(9);o.xp6(),o.Q6J("formHandler",Ze.filterFormHandler)("record",Ze.filter)("orderFields",Ze.availableOrderFields)("orderField",Ze.orderField)("orderDirection",Ze.orderDirection),o.xp6(),o.Q6J("icon","icon-mail")("text","imxplatform.navigation.inbox"),o.xp6(),o.Q6J("totalNumber",null==Ze.currentResult?null:Ze.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxeventmanager.event")("isCompactPageHeader",!0)("showCompactToggle",!0),o.xp6(9),o.Q6J("ngIf",o.lcZ(13,16,Ze.results))("ngIfElse",xn),o.xp6(2),o.Q6J("disableAllSelection",!0)("paging",Ze.pagingModel)("selection",Ze.selectionModel)}},dependencies:[Tu.n,Hu.l,Qt.N,Un._,Yt.A,ee.F,m.mk,m.sg,m.O5,li.pW,si.gM,oo.iA,_o.jx,oo.Q7,Hn.p,mo.z,vn.t,Gu.g,wn.M,po.V,Mm.K,ru,Ls.j,Zp.O,m.Ov,I.X$],styles:["[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.txt-clone[_ngcontent-%COMP%]{color:#4ac400}"]})}return N})();var Ee=a(97859),it=a(20050),mt=a(63675);let $t=(()=>{class N{constructor(M){this.translateService=M,this.i18nPipe=new l.ReadI18nPipe(this.translateService)}transform(M){M.filter(Ze=>null!=Ze.parent).forEach(Ze=>{const xn=M.find(Si=>null!=Ze.parent&&Ze.parent.id==Si.id);xn&&(Ze.parent=xn)});const pe=new Set;return M.forEach(Ze=>this.collectAlreadyUsedId(Ze,pe)),M.filter(Ze=>!pe.has(Ze.id)).map(Ze=>this.readCategoryName(Ze)).join(", ")}readCategoryName(M){return M.parent?this.readCategoryName(M.parent)+" >> "+this.i18nPipe.transform(M.i18nName):this.i18nPipe.transform(M.i18nName)}collectAlreadyUsedId(M,pe){if(M.parent)return pe.add(M.parent.id),this.collectAlreadyUsedId(M.parent,pe)}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(I.sK,16))};static#t=this.\u0275pipe=o.Yjl({name:"category",type:N,pure:!0})}return N})(),ai=(()=>{class N{constructor(M){this.translateService=M}transform(M){return M.map(pe=>{if(pe.i18nName)return new l.ReadI18nPipe(this.translateService).transform(pe.i18nName)}).join(", ")}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(I.sK,16))};static#t=this.\u0275pipe=o.Yjl({name:"criteria",type:N,pure:!0})}return N})();function Ai(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"span",1),o._uU(2),o.ALo(3,"translate"),o.TgZ(4,"span",2),o._uU(5),o.ALo(6,"category"),o.qZA()(),o.BQk()),2&N){const M=o.oxw();o.xp6(2),o.hij("",o.lcZ(3,2,"entity.Category.plural"),": "),o.xp6(3),o.Oqu(o.lcZ(6,4,null==M.dataObject?null:M.dataObject.categories))}}function ao(N,Lt){if(1&N&&(o.ynx(0),o._UZ(1,"br"),o.TgZ(2,"span",1),o._uU(3),o.ALo(4,"translate"),o.TgZ(5,"span",2),o._uU(6),o.ALo(7,"criteria"),o.qZA()(),o.BQk()),2&N){const M=o.oxw();o.xp6(3),o.hij("",o.lcZ(4,2,"entity.Criterion.plural"),": "),o.xp6(3),o.Oqu(o.lcZ(7,4,null==M.dataObject?null:M.dataObject.criteria))}}let go=(()=>{class N{static#e=this.\u0275fac=function(pe){return new(pe||N)};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-event-bottom-slot"]],hostAttrs:[1,"imx-event-row-slot"],inputs:{dataObject:"dataObject"},decls:2,vars:2,consts:[[4,"ngIf"],[1,"txt-grey"],[1,"txt-default"]],template:function(pe,Ze){1&pe&&o.YNc(0,Ai,7,6,"ng-container",0)(1,ao,8,6,"ng-container",0),2&pe&&(o.Q6J("ngIf",(null==Ze.dataObject||null==Ze.dataObject.categories?null:Ze.dataObject.categories.length)>0),o.xp6(),o.Q6J("ngIf",(null==Ze.dataObject||null==Ze.dataObject.criteria?null:Ze.dataObject.criteria.length)>0))},dependencies:[m.O5,I.X$,$t,ai]})}return N})();var Co=a(67597);class Vo{static calculateEndTime(Lt,M){if(Lt&&M){const pe=new Date("1970-01-01T"+Lt+"Z"),Ze=Math.floor(M/60),xn=M%60;return pe.setHours(pe.getUTCHours()+Ze),pe.setMinutes(pe.getUTCMinutes()+xn),(pe.getHours()<10?"0"+pe.getHours():pe.getHours())+":"+(pe.getMinutes()<10?"0"+pe.getMinutes():pe.getMinutes())+":00"}return""}}var nr=a(34423);let mr=(()=>{class N{transform(M){if(M){const pe=M.split(":");if(M&&3==pe.length)return pe[0]+":"+pe[1]}return M}static#e=this.\u0275fac=function(pe){return new(pe||N)};static#t=this.\u0275pipe=o.Yjl({name:"ignoreSeconds",type:N,pure:!0})}return N})();function Br(N,Lt){if(1&N&&(o.ynx(0),o._uU(1),o.ALo(2,"ignoreSeconds"),o.ALo(3,"ignoreSeconds"),o.BQk()),2&N){const M=o.oxw().$implicit,pe=o.oxw();o.xp6(),o.AsE(" ",o.lcZ(2,2,null==M?null:M.startTime)," - ",o.lcZ(3,4,pe.getCalculatedEndTimeForStarTime(null==M?null:M.startTime,null==M?null:M.duration))," ")}}function wr(N,Lt){if(1&N&&(o.TgZ(0,"tr")(1,"td"),o._uU(2),o.ALo(3,"date"),o.qZA(),o.TgZ(4,"td"),o.YNc(5,Br,4,6,"ng-container",6),o.qZA()()),2&N){const M=Lt.$implicit;o.xp6(2),o.Oqu(o.xi3(3,2,null==M?null:M.date,"EEE dd.MM.yyyy")),o.xp6(3),o.Q6J("ngIf",null==M?null:M.startTime)}}const Jr=N=>({count:N});let ir=(()=>{class N{constructor(M){this.data=M,this.dataObject=M.dataObject}getCalculatedEndTimeForStarTime(M,pe){return Vo.calculateEndTime(M,pe)}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(t.WI))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["ng-component"]],decls:8,vars:7,consts:[["cdkDrag","","cdkDragRootElement",".cdk-overlay-pane","cdkDragHandle",""],["mat-dialog-title",""],["mat-dialog-content",""],[1,"test-i"],[1,"date-list"],[4,"ngFor","ngForOf"],[4,"ngIf"]],template:function(pe,Ze){1&pe&&(o.TgZ(0,"div",0)(1,"h1",1),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.TgZ(4,"div",2)(5,"div",3)(6,"table",4),o.YNc(7,wr,6,5,"tr",5),o.qZA()()()()),2&pe&&(o.xp6(2),o.hij("",o.xi3(3,2,"imxeventmanager.event.list.eventDateDialog.header",o.VKq(5,Jr,null==Ze.dataObject||null==Ze.dataObject.eventDates?null:Ze.dataObject.eventDates.length)),":"),o.xp6(5),o.Q6J("ngForOf",null==Ze.dataObject?null:Ze.dataObject.eventDates))},dependencies:[m.sg,m.O5,nr.Zt,nr.Bh,t.uh,t.xY,m.uU,I.X$,mr]})}return N})();function na(N,Lt){1&N&&(o.TgZ(0,"p",9),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&N&&(o.xp6(),o.Oqu(o.lcZ(2,1,"imxeventmanager.event.list.irregular-event")))}function Ea(N,Lt){1&N&&o.GkF(0)}function gs(N,Lt){1&N&&o.GkF(0)}function Gr(N,Lt){if(1&N&&(o.ynx(0),o.YNc(1,gs,1,0,"ng-container",6),o.BQk()),2&N){o.oxw(2);const M=o.MAs(8);o.xp6(),o.Q6J("ngTemplateOutlet",M)}}function Bl(N,Lt){1&N&&o._uU(0," \xa0 ")}function Yl(N,Lt){if(1&N&&(o.TgZ(0,"span"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&N){const M=Lt.ngIf;o.xp6(),o.hij(" - ",o.xi3(2,1,M,"HH:mm"),"")}}function us(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"span",10)(2,"span"),o._uU(3),o.ALo(4,"date"),o.qZA(),o.YNc(5,Yl,3,4,"span",0),o.qZA(),o.BQk()),2&N){const M=Lt.ngIf,pe=o.oxw(3);o.xp6(3),o.Oqu(o.xi3(4,2,M,"HH:mm")),o.xp6(2),o.Q6J("ngIf",pe.getEndTime(pe.dataObject.eventDates[0].startTime,pe.dataObject.eventDates[0].duration))}}function kd(N,Lt){if(1&N&&(o.ynx(0),o.YNc(1,us,6,5,"ng-container",0),o.BQk()),2&N){const M=o.oxw(2);o.xp6(),o.Q6J("ngIf",M.convertTimeToDate(M.dataObject.eventDates[0].startTime))}}function Cm(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"div",3),o.YNc(2,na,3,3,"p",4),o.TgZ(3,"p",5),o.YNc(4,Ea,1,0,"ng-container",6)(5,Gr,2,1,"ng-container",7)(6,Bl,1,0,"ng-template",null,8,o.W1O)(8,kd,2,1,"ng-container",0),o.qZA()(),o.BQk()),2&N){const M=o.MAs(7),pe=o.oxw(),Ze=o.MAs(6);o.xp6(2),o.Q6J("ngIf",!pe.alternateDatesModel),o.xp6(2),o.Q6J("ngTemplateOutlet",Ze),o.xp6(),o.Q6J("ngIf",!pe.isSameDate(null==pe.dataObject||null==pe.dataObject.eventDateType?null:pe.dataObject.eventDateType.startDate,null==pe.dataObject||null==pe.dataObject.eventDateType?null:pe.dataObject.eventDateType.endDate))("ngIfElse",M),o.xp6(3),o.Q6J("ngIf",1===pe.dataObject.eventDates.length)}}function _l(N,Lt){1&N&&o.GkF(0)}function Ws(N,Lt){if(1&N&&(o.TgZ(0,"span"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&N){const M=Lt.ngIf;o.xp6(),o.hij(" - ",o.xi3(2,1,M,"HH:mm"),"")}}function Qc(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"span",10)(2,"span"),o._uU(3),o.ALo(4,"date"),o.qZA(),o.YNc(5,Ws,3,4,"span",0),o.qZA(),o.BQk()),2&N){const M=o.oxw().ngIf,pe=o.oxw(2);o.xp6(3),o.Oqu(o.xi3(4,2,M,"HH:mm")),o.xp6(2),o.Q6J("ngIf",pe.getEndTime(pe.dataObject.eventDateType.startTime,pe.dataObject.eventDateType.duration))}}function Wu(N,Lt){if(1&N&&(o.ynx(0),o.YNc(1,Qc,6,5,"ng-container",0),o.BQk()),2&N){const M=o.oxw(2);o.xp6(),o.Q6J("ngIf",M.isSameDate(null==M.dataObject||null==M.dataObject.eventDateType?null:M.dataObject.eventDateType.startDate,null==M.dataObject||null==M.dataObject.eventDateType?null:M.dataObject.eventDateType.endDate))}}function Sp(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"div",3)(2,"p",9),o._uU(3),o.ALo(4,"translate"),o.qZA(),o.TgZ(5,"p",5),o.YNc(6,_l,1,0,"ng-container",6),o._uU(7,"\xa0 "),o.YNc(8,Wu,2,1,"ng-container",0),o.qZA()(),o.BQk()),2&N){const M=o.oxw(),pe=o.MAs(6);o.xp6(3),o.hij("",o.lcZ(4,3,"imxeventmanager.event.list.single-event"),":"),o.xp6(3),o.Q6J("ngTemplateOutlet",pe),o.xp6(2),o.Q6J("ngIf",M.convertTimeToDate(null==M.dataObject||null==M.dataObject.eventDateType?null:M.dataObject.eventDateType.startTime))}}function tp(N,Lt){1&N&&o.GkF(0)}function sp(N,Lt){1&N&&o.GkF(0)}function zu(N,Lt){if(1&N&&(o.TgZ(0,"span",10),o._uU(1),o.ALo(2,"ignoreSeconds"),o.ALo(3,"date"),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(2);o.xp6(),o.AsE(" ",o.lcZ(2,2,null==M?null:M.startTime)," - ",o.xi3(3,4,pe.getEndTime(null==M?null:M.startTime,null==M?null:M.duration),"HH:mm")," ")}}function Hp(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"div")(2,"p",9),o._uU(3),o.ALo(4,"translate"),o.qZA(),o.TgZ(5,"p",5),o.YNc(6,tp,1,0,"ng-container",6)(7,sp,1,0,"ng-container",6),o._UZ(8,"br"),o.YNc(9,zu,4,7,"span",11),o.qZA(),o.Hsn(10),o.qZA(),o.BQk()),2&N){const M=o.oxw(),pe=o.MAs(6),Ze=o.MAs(8);o.xp6(3),o.Oqu(o.lcZ(4,4,"imxeventmanager.event.list.daily-event")),o.xp6(3),o.Q6J("ngTemplateOutlet",pe),o.xp6(),o.Q6J("ngTemplateOutlet",Ze),o.xp6(2),o.Q6J("ngForOf",null==M.dataObject||null==M.dataObject.eventDateType?null:M.dataObject.eventDateType.startTimeDurations)}}function i_(N,Lt){1&N&&o.GkF(0)}function Fp(N,Lt){1&N&&o.GkF(0)}function Vm(N,Lt){if(1&N&&(o.TgZ(0,"span",10),o._uU(1),o.ALo(2,"ignoreSeconds"),o.ALo(3,"date"),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(2);o.xp6(),o.AsE(" ",o.lcZ(2,2,null==M?null:M.startTime)," - ",o.xi3(3,4,pe.getEndTime(null==M?null:M.startTime,null==M?null:M.duration),"HH:mm")," ")}}function o_(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"div")(2,"p",9),o._uU(3),o.ALo(4,"translate"),o.qZA(),o.TgZ(5,"p",5),o.YNc(6,i_,1,0,"ng-container",6)(7,Fp,1,0,"ng-container",6),o._UZ(8,"br"),o.YNc(9,Vm,4,7,"span",11),o.Hsn(10,1),o.qZA()(),o.BQk()),2&N){const M=o.oxw(),pe=o.MAs(6),Ze=o.MAs(8);o.xp6(3),o.Oqu(o.lcZ(4,4,"imxeventmanager.event.list.weekly-event")),o.xp6(3),o.Q6J("ngTemplateOutlet",pe),o.xp6(),o.Q6J("ngTemplateOutlet",Ze),o.xp6(2),o.Q6J("ngForOf",null==M.dataObject||null==M.dataObject.eventDateType?null:M.dataObject.eventDateType.startTimeDurations)}}function C_(N,Lt){1&N&&o.GkF(0)}function xf(N,Lt){1&N&&o.GkF(0)}function vf(N,Lt){if(1&N&&(o.TgZ(0,"span",10),o._uU(1),o.ALo(2,"ignoreSeconds"),o.ALo(3,"date"),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(2);o.xp6(),o.AsE(" ",o.lcZ(2,2,null==M?null:M.startTime)," - ",o.xi3(3,4,pe.getEndTime(null==M?null:M.startTime,null==M?null:M.duration),"HH:mm")," ")}}function bf(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"div")(2,"p",9),o._uU(3),o.ALo(4,"translate"),o.qZA(),o.TgZ(5,"p",5),o.YNc(6,C_,1,0,"ng-container",6)(7,xf,1,0,"ng-container",6),o._UZ(8,"br"),o.YNc(9,vf,4,7,"span",11),o.qZA(),o.Hsn(10,2),o.qZA(),o.BQk()),2&N){const M=o.oxw(),pe=o.MAs(6),Ze=o.MAs(8);o.xp6(3),o.Oqu(o.lcZ(4,4,"imxeventmanager.event.list.monthly-event")),o.xp6(3),o.Q6J("ngTemplateOutlet",pe),o.xp6(),o.Q6J("ngTemplateOutlet",Ze),o.xp6(2),o.Q6J("ngForOf",null==M.dataObject||null==M.dataObject.eventDateType?null:M.dataObject.eventDateType.startTimeDurations)}}function y_(N,Lt){if(1&N&&(o.TgZ(0,"span",10),o._uU(1),o.ALo(2,"date"),o.qZA()),2&N){const M=o.oxw();o.xp6(),o.Oqu(o.xi3(2,1,null==M.dataObject||null==M.dataObject.eventDateType?null:M.dataObject.eventDateType.startDate,"EEE dd.MM.yyyy"))}}function Gp(N,Lt){if(1&N&&(o.TgZ(0,"span",10),o._uU(1),o.ALo(2,"date"),o.qZA()),2&N){const M=o.oxw();o.xp6(),o.hij("\xa0- ",o.xi3(2,1,null==M.dataObject||null==M.dataObject.eventDateType?null:M.dataObject.eventDateType.endDate,"EEE dd.MM.yyyy"),"\xa0")}}const Cf=[[["","daily-extended-content",""]],[["","weekly-extended-content",""]],[["","monthly-extended-content",""]]],nf=["[daily-extended-content]","[weekly-extended-content]","[monthly-extended-content]"];let r_=(()=>{class N{constructor(){this.EVENTDATETYPEONETIME_ID=Co.JC,this.EVENTDATETYPEDAILY_ID=Co.zy,this.EVENTDATETYPEWEEKLY_ID=Co.wx,this.EVENTDATETYPEMONTHLY_ID=Co.DI,this.EVENTDATETYPESPECIFICDATE_ID=Co.$C,this.alternateDatesModel=!1}static convertTimeToDate(M){const pe=new Date("01/01/1970 "+M);if(!Number.isNaN(pe.getTime()))return pe}static calculateEndDateTime(M,pe){const Ze=60*pe*1e3,xn=new Date;return xn.setTime(M.getTime()+Ze),xn}static getEndTime(M,pe){if(pe&&M)return N.calculateEndDateTime(N.convertTimeToDate(M),pe)}isDateType(M){return this.dataObject.eventDateType?.type?.id===M}convertTimeToDate(M){return N.convertTimeToDate(M)}getEndTime(M,pe){return N.getEndTime(M,pe)}isSameDate(M,pe){const Ze=new Date(M),xn=new Date(pe);return Ze.getTime()===xn.getTime()}static#e=this.\u0275fac=function(pe){return new(pe||N)};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-event-dates-view"]],hostAttrs:[1,"event-dates-view"],inputs:{dataObject:"dataObject",alternateDatesModel:"alternateDatesModel"},ngContentSelectors:nf,decls:9,vars:5,consts:[[4,"ngIf"],["startDate",""],["endDate",""],[1,"margin-bottom"],["class","txt-grey",4,"ngIf"],[1,"txt-md"],[4,"ngTemplateOutlet"],[4,"ngIf","ngIfElse"],["noEndDate",""],[1,"txt-grey"],[1,"line"],["class","line",4,"ngFor","ngForOf"]],template:function(pe,Ze){1&pe&&(o.F$t(Cf),o.YNc(0,Cm,9,5,"ng-container",0)(1,Sp,9,5,"ng-container",0)(2,Hp,11,6,"ng-container",0)(3,o_,11,6,"ng-container",0)(4,bf,11,6,"ng-container",0)(5,y_,3,4,"ng-template",null,1,o.W1O)(7,Gp,3,4,"ng-template",null,2,o.W1O)),2&pe&&(o.Q6J("ngIf",Ze.isDateType(Ze.EVENTDATETYPESPECIFICDATE_ID)),o.xp6(),o.Q6J("ngIf",Ze.isDateType(Ze.EVENTDATETYPEONETIME_ID)),o.xp6(),o.Q6J("ngIf",Ze.isDateType(Ze.EVENTDATETYPEDAILY_ID)),o.xp6(),o.Q6J("ngIf",Ze.isDateType(Ze.EVENTDATETYPEWEEKLY_ID)),o.xp6(),o.Q6J("ngIf",Ze.isDateType(Ze.EVENTDATETYPEMONTHLY_ID)))},dependencies:[m.sg,m.O5,m.tP,m.uU,I.X$,mr],styles:[".line[_ngcontent-%COMP%]{color:#0a2663}@media (min-width: 901px){.line[_ngcontent-%COMP%]{white-space:nowrap}}"],changeDetection:0})}return N})();function au(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"p",14),o._uU(2),o.ALo(3,"translate"),o.TgZ(4,"span",15),o._uU(5),o.qZA()(),o.BQk()),2&N){const M=o.oxw();o.xp6(2),o.hij("",o.lcZ(3,2,"entity.Event.eventUser"),": "),o.xp6(3),o.hij("\xa0",null==M.dataObject||null==M.dataObject.eventUser?null:M.dataObject.eventUser.loginname,"")}}function O_(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"span",15),o._uU(2),o.ALo(3,"number"),o.qZA(),o.BQk()),2&N){const M=o.oxw(2);o.xp6(2),o.Oqu(o.xi3(3,1,null==M.dataObject?null:M.dataObject.contentScore,"1.1-1"))}}function R_(N,Lt){1&N&&(o.TgZ(0,"span",20),o._uU(1,"imxplatform.common.no-value"),o.qZA())}function Ym(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"div",16)(2,"p",17),o._uU(3),o.ALo(4,"translate"),o.YNc(5,O_,4,4,"ng-container",18)(6,R_,2,0,"ng-template",null,19,o.W1O),o.qZA()(),o.BQk()),2&N){const M=o.MAs(7),pe=o.oxw();o.xp6(3),o.hij("",o.lcZ(4,3,"entity.ScorableDataObject.contentScore"),": "),o.xp6(2),o.Q6J("ngIf",null!=(null==pe.dataObject?null:pe.dataObject.contentScore))("ngIfElse",M)}}function k_(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"div",16)(2,"p",17),o._uU(3),o.ALo(4,"translate"),o.TgZ(5,"span",15),o._uU(6),o.qZA()()(),o.BQk()),2&N){const M=o.oxw();o.xp6(3),o.hij("",o.lcZ(4,3,"imxeventmanager.event.list.quality"),": "),o.xp6(3),o.AsE("",null==M.dataObject?null:M.dataObject.integrityClassification.name," ",null==M.dataObject?null:M.dataObject.reliabilityClassification.name,"")}}const N_=N=>({active:N});function U_(N,Lt){if(1&N&&(o.TgZ(0,"span",21),o._uU(1),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(2);o.Q6J("ngClass",o.VKq(2,N_,pe.isDayActiveInDaily(M.key))),o.xp6(),o.Oqu(M.value)}}function Tm(N,Lt){if(1&N&&(o.TgZ(0,"div",8),o.YNc(1,U_,2,4,"span",9),o.ALo(2,"keyvalue"),o.qZA()),2&N){const M=o.oxw();o.xp6(),o.Q6J("ngForOf",o.lcZ(2,1,M.weekDayMapping))}}function P_(N,Lt){if(1&N&&(o.TgZ(0,"p",22),o._uU(1),o.qZA()),2&N){const M=o.oxw();o.xp6(),o.hij("Jeden ",null==M.dataObject||null==M.dataObject.eventDateType?null:M.dataObject.eventDateType.gap,"ten Tag")}}function rf(N,Lt){if(1&N&&(o.TgZ(0,"span",21),o._uU(1),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw();o.Q6J("ngClass",o.VKq(2,N_,pe.isDayActiveInWeekly(M.key))),o.xp6(),o.Oqu(M.value)}}function vp(N,Lt){if(1&N&&(o.TgZ(0,"p",23),o._uU(1),o.qZA()),2&N){const M=o.oxw();o.xp6(),o.hij("Jede ",null==M.dataObject||null==M.dataObject.eventDateType?null:M.dataObject.eventDateType.gap,"te Woche")}}function yf(N,Lt){1&N&&(o.TgZ(0,"span"),o._uU(1," jeden Monat"),o.qZA())}function af(N,Lt){if(1&N&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&N){const M=o.oxw(2);o.xp6(),o.hij(" jeden ",null==M.dataObject||null==M.dataObject.eventDateType?null:M.dataObject.eventDateType.monthGap,"ten Monat")}}function Of(N,Lt){if(1&N&&(o.TgZ(0,"p",22),o._uU(1),o.YNc(2,yf,2,0,"span",1)(3,af,2,1,"span",1),o.qZA()),2&N){const M=o.oxw();o.xp6(),o.hij("Am ",null==M.dataObject||null==M.dataObject.eventDateType?null:M.dataObject.eventDateType.dayOfMonth,". "),o.xp6(),o.Q6J("ngIf",!(null!=M.dataObject&&null!=M.dataObject.eventDateType&&M.dataObject.eventDateType.monthGap)),o.xp6(),o.Q6J("ngIf",null==M.dataObject||null==M.dataObject.eventDateType?null:M.dataObject.eventDateType.monthGap)}}function B_(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"div",24)(1,"a",25),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw();return o.KtG(Ze.openDialog())}),o._UZ(2,"span",26),o._uU(3),o.qZA()()}if(2&N){const M=o.oxw();o.xp6(3),o.hij(" ",null==M.dataObject||null==M.dataObject.eventDates?null:M.dataObject.eventDates.length," Termine anzeigen ")}}let sf=(()=>{class N{constructor(M,pe){this.matDialog=M,this.configurationProvider=pe,this.weekDayMapping=new Map([[1,"Mo"],[2,"Di"],[3,"Mi"],[4,"Do"],[5,"Fr"],[6,"Sa"],[7,"So"]]),this.showContentScore=this.configurationProvider.getBooleanFromSnapshot(l.ImxPlatformConfigParameter.PLATFORM_CONTENT_SCORE_ENABLED),this.alternateDatesModel=this.configurationProvider.getBooleanFromSnapshot(co.c.IMXEVENTMANAGER_EVENTDATE_ALTERNATE,!1)}isDateType(M){return this.dataObject.eventDateType?.type?.id===M}convertTimeToDate(M){const pe=new Date("01/01/1970 "+M);if(!Number.isNaN(pe.getTime()))return pe}getEndTime(M,pe){if(pe&&M)return this.calculateEndDateTime(this.convertTimeToDate(M),pe)}calculateEndDateTime(M,pe){const Ze=60*pe*1e3,xn=new Date;return xn.setTime(M.getTime()+Ze),xn}isSameDate(M,pe){const Ze=new Date(M),xn=new Date(pe);return Ze.getTime()===xn.getTime()}isDayActiveInDaily(M){return!(!this.dataObject.eventDateType||this.dataObject.eventDateType.weekdaysOnly&&M>5)}isDayActiveInWeekly(M){return!(!this.dataObject.eventDateType||!this.dataObject.eventDateType.weekDays)&&this.dataObject.eventDateType.weekDays.map(pe=>pe.id).some(pe=>pe==M)}openDialog(){this.matDialog.open(ir,{hasBackdrop:!0,disableClose:!1,width:"330px",data:{dataObject:this.dataObject}})}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(t.uw),o.Y36(l.ConfigurationProvider))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-event-right-slot"]],hostAttrs:[1,"imx-event-right-slot"],inputs:{dataObject:"dataObject"},decls:23,vars:13,consts:[[1,"list__column"],[4,"ngIf"],[3,"dataObject","alternateDatesModel"],["daily-extended-content",""],[1,"margin-top","txt-grey"],["days",""],["class","txt-md",4,"ngIf","ngIfElse"],["weekly-extended-content",""],[1,"days-of-week"],["class","day",3,"ngClass",4,"ngFor","ngForOf"],["class","margin-top",4,"ngIf"],["monthly-extended-content",""],["class","txt-md",4,"ngIf"],["class","dateDialog",4,"ngIf"],[1,"txt-grey","a__data_line"],[1,"txt-default"],[1,"margin-bottom"],[1,"txt-grey"],[4,"ngIf","ngIfElse"],["emptyContentScore",""],["translate","",1,"txt-default","no-value"],[1,"day",3,"ngClass"],[1,"txt-md"],[1,"margin-top"],[1,"dateDialog"],[1,"txt-link",3,"click"],[1,"icon-calendar-31"]],template:function(pe,Ze){if(1&pe&&(o.TgZ(0,"div",0),o.YNc(1,au,6,4,"ng-container",1)(2,Ym,8,5,"ng-container",1)(3,k_,7,5,"ng-container",1),o.TgZ(4,"imx-event-dates-view",2),o.ynx(5,3),o.TgZ(6,"p",4),o._uU(7,"Tage:"),o.qZA(),o.YNc(8,Tm,3,3,"ng-template",null,5,o.W1O)(10,P_,2,1,"p",6),o.BQk(),o.ynx(11,7),o.TgZ(12,"p",4),o._uU(13,"Tage:"),o.qZA(),o.TgZ(14,"div",8),o.YNc(15,rf,2,4,"span",9),o.ALo(16,"keyvalue"),o.qZA(),o.YNc(17,vp,2,1,"p",10),o.BQk(),o.ynx(18,11),o.TgZ(19,"p",4),o._uU(20,"Tage:"),o.qZA(),o.YNc(21,Of,4,3,"p",12),o.BQk(),o.qZA(),o.YNc(22,B_,4,1,"div",13),o.qZA()),2&pe){const xn=o.MAs(9);o.xp6(),o.Q6J("ngIf",null==Ze.dataObject.eventUser?null:Ze.dataObject.eventUser.loginname),o.xp6(),o.Q6J("ngIf",Ze.showContentScore),o.xp6(),o.Q6J("ngIf",Ze.dataObject.integrityClassification||Ze.dataObject.reliabilityClassification),o.xp6(),o.Q6J("dataObject",Ze.dataObject)("alternateDatesModel",Ze.alternateDatesModel),o.xp6(6),o.Q6J("ngIf",null==Ze.dataObject||null==Ze.dataObject.eventDateType?null:Ze.dataObject.eventDateType.gap)("ngIfElse",xn),o.xp6(5),o.Q6J("ngForOf",o.lcZ(16,11,Ze.weekDayMapping)),o.xp6(2),o.Q6J("ngIf",null==Ze.dataObject||null==Ze.dataObject.eventDateType?null:Ze.dataObject.eventDateType.gap),o.xp6(4),o.Q6J("ngIf",null==Ze.dataObject||null==Ze.dataObject.eventDateType?null:Ze.dataObject.eventDateType.dayOfMonth),o.xp6(),o.Q6J("ngIf",(null==Ze.dataObject||null==Ze.dataObject.eventDates?null:Ze.dataObject.eventDates.length)>1)}},dependencies:[ee.F,m.mk,m.sg,m.O5,I.Pi,r_,m.JJ,m.Nd,I.X$],styles:[".list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.list__column[_ngcontent-%COMP%]{margin-right:10px;word-break:break-word}@media (max-width: 900px){.list__column[_ngcontent-%COMP%]{margin-right:5px}}.list__column[_ngcontent-%COMP%]   .margin-top[_ngcontent-%COMP%]{margin-top:5px}.list__column[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style-type:square;list-style-position:inside}.list__column[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px}.event-right-slot[_nghost-%COMP%]{flex-basis:400px}.days-of-week[_ngcontent-%COMP%]   .day[_ngcontent-%COMP%]{display:inline-block;width:30px;line-height:18px;text-align:center;margin-right:5px;margin-top:5px;border:1px solid #CFCFCF;background-color:#fff}.days-of-week[_ngcontent-%COMP%]   .day.active[_ngcontent-%COMP%]{background-color:#eefafa;color:#0a2663}.no-value[_ngcontent-%COMP%]{white-space:nowrap}.date-list[_ngcontent-%COMP%]{font-size:14px;margin-left:auto;margin-right:auto}.dateDialog[_ngcontent-%COMP%]{margin-top:5px}"],changeDetection:0})}return N})();function Pf(N,Lt){1&N&&(o.TgZ(0,"imx-list-no-results"),o._uU(1,"imxeventmanager.event.list.no-records"),o.qZA())}function Mf(N,Lt){1&N&&o._UZ(0,"mat-progress-bar",12)}function a_(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"imx-action-menu-item",21),o.NdJ("actionClicked",function(){const xn=o.CHM(M).$implicit,Si=o.oxw().$implicit,Ga=o.oxw(3);return o.KtG(Ga.executeRowAction(xn,Si))}),o._uU(1),o.ALo(2,"translate"),o.qZA()}if(2&N){const M=Lt.$implicit;o.Q6J("icon",M.getIcon())("additionalStyle","icon-trash"==M.getIcon()?"delete":""),o.xp6(),o.hij(" ",o.lcZ(2,3,M.getActionLabelKey())," ")}}function Z_(N,Lt){if(1&N&&(o.TgZ(0,"mat-list-item",14)(1,"div",15)(2,"div",16),o._UZ(3,"imx-list-row",17),o.qZA(),o.TgZ(4,"div",18)(5,"imx-dropup-button")(6,"imx-action-menu"),o.YNc(7,a_,3,5,"ng-template",19),o.qZA()(),o._UZ(8,"imx-entity-state",20),o.qZA()()()),2&N){const M=Lt.$implicit,pe=o.oxw(3),Ze=o.MAs(14),xn=o.MAs(16),Si=o.MAs(18);o.xp6(3),o.Q6J("dataObject",M)("leftSlotTemplate",Ze)("rightSlotTemplate",xn)("bottomSlotTemplate",Si),o.xp6(4),o.Q6J("ngForOf",null==pe.actionProvider?null:pe.actionProvider.getRowActionsForType(pe.getEntityName(),M.id)),o.xp6(),o.Q6J("additionalClass","list__row-action-box")("key",M.entityState.key)("appearances",null==M?null:M.appearances)("inline",!1)("useAppearanceLogic",pe.filterFormHandler.hasDeliveryChannelLogic())}}function s_(N,Lt){if(1&N&&(o.TgZ(0,"mat-list"),o.YNc(1,Z_,9,10,"mat-list-item",13),o.qZA()),2&N){const M=o.oxw().ngIf;o.xp6(),o.Q6J("ngForOf",M.items)}}function lf(N,Lt){if(1&N&&(o.TgZ(0,"div"),o.YNc(1,s_,2,1,"mat-list",7),o.qZA()),2&N){const M=Lt.ngIf;o.oxw();const pe=o.MAs(7);o.xp6(),o.Q6J("ngIf",M.items.length>0)("ngIfElse",pe)}}function bp(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"a",22),o.NdJ("click",function(){const xn=o.CHM(M).dataObject,Si=o.oxw();return o.KtG(Si.contextNavigationService.navigateToCoreEntityContextual(["/events/edit",xn.id]))}),o._uU(1),o.ALo(2,"readI18n"),o.TgZ(3,"span",23),o._uU(4),o.ALo(5,"translate"),o.qZA()(),o._UZ(6,"imx-row-id-view",24)(7,"imx-row-client-view",24),o.TgZ(8,"p",25),o._uU(9),o.ALo(10,"translate"),o.TgZ(11,"span",26),o._uU(12),o.qZA()(),o.TgZ(13,"p",27),o._uU(14),o.ALo(15,"readI18n"),o.qZA(),o.TgZ(16,"p",25),o._uU(17),o.qZA(),o.TgZ(18,"div",28)(19,"span",25),o._uU(20),o.ALo(21,"translate"),o.qZA(),o.TgZ(22,"span",26),o._uU(23),o.ALo(24,"translate"),o.qZA()()}if(2&N){const M=Lt.dataObject,pe=o.oxw();o.xp6(),o.hij(" ",o.lcZ(2,13,M.title)," "),o.xp6(3),o.Oqu(pe.isClone(M.id)?" ("+o.lcZ(5,15,"imxplatform.common-entity.list.inbox.copy")+")":""),o.xp6(2),o.Q6J("dataObject",M),o.xp6(),o.Q6J("dataObject",M),o.xp6(2),o.hij("",o.lcZ(10,17,"entity.Event.eventUser"),": "),o.xp6(3),o.AsE("",M.eventUser.loginname," (",M.eventUser.id,")"),o.xp6(2),o.AsE(" ",null==M||null==M.location||null==M.location.contact1?null:M.location.contact1.contactName,"/",o.lcZ(15,19,null==M||null==M.contributor?null:M.contributor.title),", "),o.xp6(3),o.AsE(" ",null==M||null==M.location||null==M.location.contact1||null==M.location.contact1.address?null:M.location.contact1.address.zipcode," ",null==M||null==M.location||null==M.location.contact1||null==M.location.contact1.address?null:M.location.contact1.address.city," "),o.xp6(3),o.hij("",o.lcZ(21,21,"entity.EntityState.entityName"),":"),o.xp6(3),o.hij("\xa0",o.lcZ(24,23,"entity.EntityState."+(null==M.entityState||null==M.entityState.name?null:M.entityState.name.toLowerCase())),"")}}function lp(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"span",30)(2,"p"),o._uU(3),o.ALo(4,"translate"),o.qZA()(),o.TgZ(5,"span",30)(6,"p"),o._uU(7),o.ALo(8,"translate"),o.qZA()(),o.BQk()),2&N){const M=o.oxw().dataObject,pe=o.oxw();o.xp6(3),o.hij(" ",o.lcZ(4,2,"imxplatform.common-entity.list.inbox.clone")," "),o.xp6(4),o.hij(" ",o.lcZ(8,4,"imxplatform.common-entity.list.inbox.original-id")+": "+pe.getOriginalId(M.id)," ")}}function M_(N,Lt){if(1&N&&(o.YNc(0,lp,9,6,"ng-container",29),o._UZ(1,"br")(2,"imx-event-right-slot",24)),2&N){const M=Lt.dataObject,pe=o.oxw();o.Q6J("ngIf",pe.isClone(M.id)),o.xp6(2),o.Q6J("dataObject",M)}}function cf(N,Lt){1&N&&o._UZ(0,"imx-event-bottom-slot",24),2&N&&o.Q6J("dataObject",Lt.dataObject)}let l_=(()=>{class N extends l.AbstractInboxPage{constructor(M,pe,Ze,xn,Si,Ga,xs,vs,bl,Ll,Tc,xc,fu,Nd){super(M,pe,Ze,Si,Ga,xs,vs,bl,Ll,xc,fu,Nd),this.inboxDataSource=M,this.filterFormHandler=vs,this.eventmanagerPermissions=Us.M,this.availableOrderFields=[{index:1,field:"TITLE",i18n:"entity.Event.title",type:l.OrderType.alphanumeric},{index:2,field:"ID",i18n:"entity.Event.id",type:l.OrderType.numeric},{index:3,field:"DATE_START",i18n:"imxeventmanager.event.list.sort.firstDate",type:l.OrderType.numeric},{index:4,field:"DATE_END",i18n:"imxeventmanager.event.list.sort.lastDate",type:l.OrderType.numeric},{index:5,field:"CREATION_TIME",i18n:"imxeventmanager.event.list.sort.creationTime",type:l.OrderType.numeric},{index:6,field:"LAST_CHANGE",i18n:"imxeventmanager.event.list.sort.lastChange",type:l.OrderType.numeric},{index:7,field:"DUPLICATES",i18n:"imxeventmanager.event.list.sort.duplicates",type:l.OrderType.numeric}]}getEntityName(){return"Event"}ngOnInit(){super.ngOnInit()}getEditRoute(){return"events"}getEditActionKey(){return"event-dm-action-edit"}getCloneActionKey(){return"event-dm-action-createClone"}getInboxContext(){return"datamanager"}adjustFilter(M){if(!this.configurationProvider.getBooleanFromSnapshot(l.ImxPlatformConfigParameter.PLATFORM_WORKFLOW_USE_DISPATCHER_STATE_ENGINE,!1)){if(this.currentAndSubClients){const Ze=this.retrieveIds(M.clientIds);M.clientIds=Ze?this.currentAndSubClients.map(xn=>xn.id).filter(xn=>Ze.includes(""+xn)).join(","):this.currentAndSubClients.map(xn=>xn.id).join(",")}this.imxDatamanagerUserId&&(M.owningUserId=this.imxDatamanagerUserId);const pe=new Date;M.startDate=pe.getFullYear().toString()+"-"+(pe.getMonth()+1).toString()+"-"+pe.getDate().toString()}}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(Gd),o.Y36(n.F0),o.Y36(n.gz),o.Y36(s.Yz),o.Y36(l.UserMessageService),o.Y36(l.ListHistoryService),o.Y36(t.uw),o.Y36(vm.oz),o.Y36(l.ImxPlatformDataAccessService),o.Y36(l.PlatformTrackingService),o.Y36(s.Xh),o.Y36(l.ActionProviderService),o.Y36(s.Ze),o.Y36(l.ConfigurationProvider))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["ng-component"]],features:[o.qOj],decls:19,vars:17,consts:[[1,"search-page"],[3,"formHandler","record","orderFields","orderField","orderDirection","orderChanged","applyFilter","resetFilter"],[3,"icon","text"],[3,"totalNumber","entityResourceKeyPrefix","isCompactPageHeader","reload"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],[4,"ngIf","ngIfElse"],[3,"disableAllSelection","paging","selection","pageChanged","selectAll"],["eventLeftSlotTemplate",""],["eventRightSlotTemplate",""],["eventBottomSlotTemplate",""],["mode","indeterminate"],["class","list__item",4,"ngFor","ngForOf"],[1,"list__item"],[1,"list__row-wrapper"],[1,"list__row"],[3,"dataObject","leftSlotTemplate","rightSlotTemplate","bottomSlotTemplate"],[1,"list__row-action"],["ngFor","",3,"ngForOf"],[3,"additionalClass","key","appearances","inline","useAppearanceLogic"],[3,"icon","additionalStyle","actionClicked"],[1,"txt-bg",3,"click"],[1,"txt-clone"],[3,"dataObject"],[1,"txt-grey"],[1,"txt-default"],[1,"txt-grey","block"],[1,"block"],[4,"ngIf"],[1,"txt-md"]],template:function(pe,Ze){if(1&pe&&(o.TgZ(0,"div",0)(1,"imx-event-filter",1),o.NdJ("orderChanged",function(Si){return Ze.sort(Si)})("applyFilter",function(Si){return Ze.search(Si)})("resetFilter",function(){return Ze.reset()}),o.qZA(),o.TgZ(2,"imx-eyecatcher",2)(3,"imx-list-header",3),o.NdJ("reload",function(){return Ze.reloadComplete()}),o.qZA()(),o.TgZ(4,"imx-grid")(5,"imx-grid-element",4),o.YNc(6,Pf,2,0,"ng-template",null,5,o.W1O)(8,Mf,1,0,"ng-template",null,6,o.W1O)(10,lf,2,2,"div",7),o.ALo(11,"async"),o.qZA()(),o.TgZ(12,"imx-list-footer",8),o.NdJ("pageChanged",function(Si){return Ze.onPageChanged(Si)})("selectAll",function(Si){return Ze.onSelectAll(Si)}),o.qZA()(),o.YNc(13,bp,25,25,"ng-template",null,9,o.W1O)(15,M_,3,2,"ng-template",null,10,o.W1O)(17,cf,1,1,"ng-template",null,11,o.W1O)),2&pe){const xn=o.MAs(9);o.xp6(),o.Q6J("formHandler",Ze.filterFormHandler)("record",Ze.filter)("orderFields",Ze.availableOrderFields)("orderField",Ze.orderField)("orderDirection",Ze.orderDirection),o.xp6(),o.Q6J("icon","icon-mail")("text","imxplatform.navigation.inbox"),o.xp6(),o.Q6J("totalNumber",null==Ze.currentResult?null:Ze.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxeventmanager.event")("isCompactPageHeader",!1),o.xp6(7),o.Q6J("ngIf",o.lcZ(11,15,Ze.results))("ngIfElse",xn),o.xp6(2),o.Q6J("disableAllSelection",!0)("paging",Ze.pagingModel)("selection",Ze.selectionModel)}},dependencies:[Tu.n,Qt.N,Un._,Yt.A,Ee.Y,it.w,mt.k,ee.F,m.sg,m.O5,Xi.i$,Xi.Tg,li.pW,Hn.p,mo.z,vn.t,Gu.g,wn.M,po.V,go,ru,sf,Ls.j,m.Ov,I.X$],styles:["[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.list__row[_ngcontent-%COMP%]{background:#fff;border:.5px solid #ced4e0;box-sizing:border-box;width:100%;padding:20px;z-index:1}@media (max-width: 900px){.list__row[_ngcontent-%COMP%]{padding:10px}}.list__row-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;box-sizing:border-box;position:relative;height:inherit}.list__row-wrapper.selected[_ngcontent-%COMP%]   .list__row[_ngcontent-%COMP%]{background-color:#eefafa}.list__row-action[_ngcontent-%COMP%]{min-width:45px;min-height:100%;display:flex;flex-direction:column;padding-left:5px;text-align:center;position:relative;z-index:1}@media (max-width: 900px){.list__row-action[_ngcontent-%COMP%]{min-width:30px;padding-left:2px}}.list__row-checkbox[_ngcontent-%COMP%]{margin:auto 5px auto 0}.txt-clone[_ngcontent-%COMP%]{color:#4ac400}.block[_ngcontent-%COMP%]{margin-top:3px}"]})}return N})();var ym=a(91566),Cp=a(49546),G_=a(5393),c_=a(80617);function be(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"imx-statistics-button",18),o.NdJ("export",function(){o.CHM(M);const Ze=o.oxw();return o.KtG(Ze.exportStatistics())}),o.qZA()}}function we(N,Lt){1&N&&o._UZ(0,"imx-create-new-entity-button",19),2&N&&o.Q6J("entityRoute","/events")("entityResourceKeyPrefix","imxeventmanager.event")}function ie(N,Lt){1&N&&(o.TgZ(0,"imx-list-no-results"),o._uU(1,"imxeventmanager.event.list.no-records"),o.qZA())}function Ge(N,Lt){1&N&&o._UZ(0,"mat-progress-bar",20)}function Rt(N,Lt){1&N&&(o.TgZ(0,"div",21),o._UZ(1,"div",22),o.qZA()),2&N&&o.Q6J("ngClass",Lt.class)}function Zn(N,Lt){if(1&N&&(o.TgZ(0,"th",29),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&N){const M=Lt.$implicit;o.Udp("width",M.width),o.Q6J("ngClass",M.cssClass),o.xp6(),o.hij(" ",o.lcZ(2,4,M.header)," ")}}function io(N,Lt){if(1&N&&(o.TgZ(0,"tr"),o.YNc(1,Zn,3,6,"th",28),o.qZA()),2&N){const M=o.oxw(3);o.xp6(),o.Q6J("ngForOf",M.columnDefinitions)}}function Ro(N,Lt){1&N&&(o._UZ(0,"span",52),o.ALo(1,"translate")),2&N&&o.s9C("matTooltip",o.lcZ(1,1,"imxplatform.common-entity.list.outside-client-hierarchy"))}function ar(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"span",53),o._uU(2),o.ALo(3,"ignoreSeconds"),o.ALo(4,"ignoreSeconds"),o.qZA(),o.BQk()),2&N){const M=o.oxw().$implicit,pe=o.oxw(4);o.xp6(2),o.AsE(" ",o.lcZ(3,2,null==M?null:M.startTime)," - ",o.lcZ(4,4,pe.getCalculatedEndTimeForStarTime(null==M?null:M.startTime,null==M?null:M.duration))," ")}}function Or(N,Lt){if(1&N&&(o.TgZ(0,"tr")(1,"td",53),o._uU(2),o.ALo(3,"date"),o.qZA(),o.TgZ(4,"td"),o.YNc(5,ar,5,6,"ng-container",51),o.qZA()()),2&N){const M=Lt.$implicit;o.xp6(2),o.Oqu(o.xi3(3,2,null==M?null:M.date,"EEE dd.MM.yyyy")),o.xp6(3),o.Q6J("ngIf",null==M?null:M.startTime)}}function La(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"imx-action-menu-item",50),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw().$implicit,xn=o.oxw(3);return o.KtG(xn.executeHistoryAction(xn.getEntityName(),Ze.id))}),o._uU(1,"imxplatform.common-entity.list.history"),o.qZA()}2&N&&o.Q6J("icon","icon-compare")}function za(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"imx-action-menu-item",16),o.NdJ("actionClicked",function(){o.CHM(M);const Ze=o.oxw().ngIf,xn=o.oxw().$implicit,Si=o.oxw(3);return o.KtG(Si.executeRowAction(Ze,xn))}),o._uU(1),o.ALo(2,"translate"),o.qZA()}if(2&N){const M=o.oxw().ngIf;o.Q6J("icon",M.getIcon()),o.xp6(),o.hij(" ",o.lcZ(2,2,M.getActionLabelKey())," ")}}function Ol(N,Lt){if(1&N&&(o.ynx(0),o.YNc(1,za,3,4,"imx-action-menu-item",54),o.ALo(2,"async"),o.BQk()),2&N){const M=Lt.ngIf,pe=o.oxw().$implicit;o.xp6(),o.Q6J("ngIf",M.hasPermission()&&o.lcZ(2,1,M.isExecutable(pe)))}}const fl=N=>({selected:N}),As=N=>["../edit",N],Xs=N=>({count:N});function kc(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"tr",30)(1,"td",31)(2,"mat-checkbox",32),o.NdJ("change",function(Ze){o.CHM(M);const xn=o.oxw(3);return o.KtG(xn.onSelectionChanged(Ze))}),o.qZA()(),o.TgZ(3,"td"),o._uU(4),o.qZA(),o.TgZ(5,"td",33),o.ALo(6,"readI18n"),o.TgZ(7,"a",34)(8,"span",35),o._UZ(9,"span",36),o.qZA(),o.TgZ(10,"span",37),o.ALo(11,"readI18n"),o._uU(12),o.ALo(13,"readI18n"),o.qZA()()(),o.TgZ(14,"td",33),o._uU(15),o.YNc(16,Ro,2,3,"span",38),o.ALo(17,"async"),o.qZA(),o.TgZ(18,"td")(19,"imx-tooltip",39),o.ALo(20,"readI18n"),o.ALo(21,"languageNames"),o._UZ(22,"imx-language-flag",40),o.qZA()(),o.TgZ(23,"td")(24,"imx-tooltip",39),o.ALo(25,"readI18n"),o._uU(26),o.ALo(27,"readI18n"),o.qZA()(),o.TgZ(28,"td")(29,"imx-tooltip",39),o.ALo(30,"category"),o._uU(31),o.ALo(32,"category"),o.qZA()(),o.TgZ(33,"td")(34,"imx-event-dates-view",41),o.NdJ("mouseenter",function(Ze){o.CHM(M);const xn=o.MAs(36);return o.KtG(xn.show(Ze))})("mouseleave",function(){o.CHM(M);const Ze=o.MAs(36);return o.KtG(Ze.hide())}),o.qZA(),o.TgZ(35,"imx-tooltip-extended",null,42)(37,"span",43),o._uU(38),o.ALo(39,"translate"),o.qZA(),o.TgZ(40,"div")(41,"table"),o.YNc(42,Or,6,5,"tr",44),o.qZA(),o._UZ(43,"br"),o.qZA()()(),o.TgZ(44,"td")(45,"imx-tooltip",39),o.ALo(46,"date"),o.ALo(47,"convertTimestamps"),o.ALo(48,"translate"),o._uU(49),o.ALo(50,"date"),o.ALo(51,"convertTimestamps"),o.ALo(52,"translate"),o.qZA()(),o.TgZ(53,"td"),o._UZ(54,"imx-entity-state",45),o.qZA(),o.TgZ(55,"td",46)(56,"imx-dropup-button")(57,"imx-search-list-action-menu",14),o.NdJ("executeAction",function(Ze){const Si=o.CHM(M).$implicit,Ga=o.oxw(3);return o.KtG(Ga.executeRowAction(Ze,Si))}),o.ynx(58,47),o.TgZ(59,"imx-action-menu-item",48),o._uU(60,"imxplatform.common-entity.list.edit"),o.qZA(),o.BQk(),o.ynx(61,15),o.YNc(62,La,2,1,"imx-action-menu-item",49),o.TgZ(63,"imx-action-menu-item",50),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.executeReferencesAction(Si.getEntityName(),xn.id))}),o._uU(64,"imxplatform.common-entity.list.references"),o.qZA(),o.YNc(65,Ol,3,3,"ng-container",51),o.BQk(),o.qZA()()()()}if(2&N){const M=Lt.$implicit,pe=o.oxw(3);o.Q6J("ngClass",o.VKq(80,fl,pe.isItemSelected(M.id))),o.uIk("data-scroll-id",M.id),o.xp6(2),o.Q6J("value",M.id)("checked",pe.isItemSelected(M.id)),o.xp6(2),o.Oqu(M.id),o.xp6(),o.Q6J("matTooltip",o.lcZ(6,43,M.title))("matTooltipShowDelay",500),o.xp6(2),o.Q6J("routerLink",o.VKq(82,As,M.id)),o.xp6(3),o.s9C("matTooltip",o.lcZ(11,45,M.title)),o.xp6(2),o.Oqu(o.lcZ(13,47,M.title)),o.xp6(2),o.Q6J("matTooltip",null==M.client?null:M.client.name)("matTooltipShowDelay",500),o.xp6(),o.hij(" ",null==M.client?null:M.client.name," "),o.xp6(),o.Q6J("ngIf",o.lcZ(17,49,pe.isOutsideCurrentClientHierachy(null==M||null==M.client?null:M.client.id))),o.xp6(3),o.Q6J("tooltipText",o.lcZ(20,51,o.lcZ(21,53,M.languages)))("offset",300),o.xp6(3),o.Q6J("languages",M.languages)("inline",!0),o.xp6(2),o.Q6J("tooltipText",M.location.title?o.lcZ(25,55,M.location.title):null==M.location.contact1?null:M.location.contact1.contactName)("offset",300),o.xp6(2),o.hij(" ",M.location.title?o.lcZ(27,57,M.location.title):null==M.location.contact1?null:M.location.contact1.contactName," "),o.xp6(3),o.Q6J("tooltipText",o.lcZ(30,59,null==M?null:M.categories))("offset",300),o.xp6(2),o.hij(" ",o.lcZ(32,61,null==M?null:M.categories)," "),o.xp6(3),o.Q6J("dataObject",M)("alternateDatesModel",pe.alternateDatesModel),o.xp6(4),o.hij("",o.xi3(39,63,"imxeventmanager.event.list.eventDateDialog.header",o.VKq(84,Xs,null==M||null==M.eventDates?null:M.eventDates.length)),":"),o.xp6(4),o.Q6J("ngForOf",null==M?null:M.eventDates),o.xp6(3),o.hYB("tooltipText","",o.xi3(46,66,o.lcZ(47,69,M.creationTime),"dd.MM.yyyy - HH:mm")," ",o.lcZ(48,71,"imxplatform.common.time-indicator"),""),o.Q6J("offset",300),o.xp6(4),o.AsE(" ",o.xi3(50,73,o.lcZ(51,76,M.creationTime),"dd.MM.yyyy - HH:mm")," ",o.lcZ(52,78,"imxplatform.common.time-indicator")," "),o.xp6(5),o.Q6J("key",null==M||null==M.entityState?null:M.entityState.key)("appearances",null==M?null:M.appearances)("renderLabel",!1)("useAppearanceLogic",pe.filterFormHandler.hasDeliveryChannelLogic()),o.xp6(3),o.Q6J("actions",null==pe.actionProvider?null:pe.actionProvider.getRowActionsForType(pe.getEntityName(),M.id)),o.xp6(2),o.Q6J("icon","icon-pencil")("routerLink",o.VKq(86,As,M.id)),o.xp6(3),o.Q6J("ngIf",pe.hasHistoryPermission()),o.xp6(),o.Q6J("icon","icon-link"),o.xp6(2),o.Q6J("ngIf",pe.actionProvider.findStaticActionForKey("import-source-view-action"))}}function Vc(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"p-table",25),o.YNc(2,io,2,1,"ng-template",26)(3,kc,66,88,"ng-template",27),o.qZA(),o.BQk()),2&N){const M=o.oxw().ngIf;o.xp6(),o.Q6J("value",M.items)("resizableColumns",!0)}}function Ed(N,Lt){if(1&N&&(o.TgZ(0,"div",23),o.YNc(1,Vc,4,2,"ng-container",24),o.qZA()),2&N){const M=Lt.ngIf;o.oxw();const pe=o.MAs(9);o.xp6(),o.Q6J("ngIf",M.items.length>0)("ngIfElse",pe)}}function am(N,Lt){if(1&N&&(o.TgZ(0,"span"),o._uU(1),o.ALo(2,"translate"),o.TgZ(3,"span",55),o._uU(4),o.qZA()(),o._UZ(5,"span",56)),2&N){const M=o.oxw();o.xp6(),o.hij("",o.lcZ(2,2,"imxplatform.common-entity.list.selected-items")," "),o.xp6(3),o.hij("(",null==M.selectedIds?null:M.selectedIds.size,")")}}let y=(()=>{class N extends l.AbstractCoreDataObjectSearchPage{constructor(M,pe,Ze,xn,Si,Ga,xs,vs,bl,Ll,Tc,xc,fu,Nd,gu,pp,Mp,_p){super(M,pe,Ze,Si,Ga,xs,vs,bl,Ll,fu,Tc,xc,Nd,gu,pp,{},!0),this.dataSource=M,this.filterFormHandler=vs,this.configurationProvider=Mp,this.eventManagerDataAccessService=_p,this.eventmanagerPermissions=Us.M,this.alternateDatesModel=!1,this.availableOrderFields=[{index:1,field:"TITLE",i18n:"entity.Event.title",type:l.OrderType.alphanumeric},{index:2,field:"ID",i18n:"entity.Event.id",type:l.OrderType.numeric},{index:3,field:"DATE_START",i18n:"imxeventmanager.event.list.sort.firstDate",type:l.OrderType.numeric},{index:4,field:"DATE_END",i18n:"imxeventmanager.event.list.sort.lastDate",type:l.OrderType.numeric},{index:5,field:"CREATION_TIME",i18n:"imxeventmanager.event.list.sort.creationTime",type:l.OrderType.numeric},{index:6,field:"LAST_CHANGE",i18n:"imxeventmanager.event.list.sort.lastChange",type:l.OrderType.numeric},{index:7,field:"DUPLICATES",i18n:"imxeventmanager.event.list.sort.duplicates",type:l.OrderType.alphanumeric}],this.columnDefinitions=[{field:"select",header:"",width:"40px",cssClass:"select-column"},{field:"id",header:"ID",width:"70px"},{field:"title",header:"entity.Event.title",width:"30%"},{field:"client",header:"entity.Event.client",width:"130px"},{field:"languages",header:"Sprachen",width:"10%"},{field:"location",header:"entity.Event.location",width:"20%"},{field:"categories",header:"entity.Event.categories",width:"25%"},{field:"eventDates",header:"imxeventmanager.event.list.eventDates",width:"25%"},{field:"creationTime",header:"entity.AuditedDataObject.creationTime",width:"10%"},{field:"entity-state",header:"entity.EntityState.entityName",width:"60px"},{field:"action",header:"",width:"50px",cssClass:"action-column"}],this.infoEnabled=!1}ngOnInit(){super.ngOnInit(),this.infoEnabled=this.configurationProvider.getBooleanFromSnapshot(co.c.IMXEVENTMANAGER_LIST_DATES_INFO_ENABLED,!1),this.alternateDatesModel=this.configurationProvider.getBooleanFromSnapshot(co.c.IMXEVENTMANAGER_EVENTDATE_ALTERNATE,!1)}afterContentLoaded(){super.afterContentLoaded(),this.infoEnabled&&this.dataSource.getAllResultIds().length>0&&this.eventManagerDataAccessService.getEventDatesAmount(this.dataSource.getAllResultIds(),this.filterFormHandler.getFormValue("startDate"),this.filterFormHandler.getFormValue("endDate")).subscribe(M=>{this.info=M+""})}getFilterParams(M){return this.eventManagerDataAccessService.convertEventClientParamsToRequestParams(M)}getEntityName(){return"Event"}getCalculatedEndTimeForStarTime(M,pe){return Vo.calculateEndTime(M,pe)}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(Gd),o.Y36(n.F0),o.Y36(n.gz),o.Y36(s.Yz),o.Y36(l.UserMessageService),o.Y36(l.ListHistoryService),o.Y36(t.uw),o.Y36(vm.oz),o.Y36(l.ImxPlatformDataAccessService),o.Y36(l.SearchPageDefaultsService),o.Y36(l.PlatformTrackingService),o.Y36(l.ObjectListCreationService),o.Y36(s.Ze),o.Y36(l.MemoProviderService),o.Y36(s.Xh),o.Y36(l.ActionProviderService),o.Y36(s.Pc),o.Y36(yn.b))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["ng-component"]],features:[o.qOj],decls:28,vars:27,consts:[[1,"search-page"],[3,"formHandler","record","orderFields","orderField","orderDirection","enableCreateContactListOption","orderChanged","applyFilter","resetFilter"],[3,"totalNumber","entityResourceKeyPrefix","isCompactPageHeader","info","reload"],["list-header-button-row",""],[3,"export",4,"hasAnyPermission"],[3,"entityRoute","entityResourceKeyPrefix",4,"hasAnyPermission"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],["targetMarkerTemplate",""],["class","table-wrapper",4,"ngIf","ngIfElse"],[3,"paging","selection","pageChanged","selectAll"],["position","above","halign","start"],["imx-dropup-trigger",""],[3,"actions","executeAction"],["search-list-action-menu-middle",""],[3,"icon","actionClicked"],[3,"actionClicked"],[3,"export"],[3,"entityRoute","entityResourceKeyPrefix"],["mode","indeterminate"],[3,"ngClass"],[1,"reorder-marker"],[1,"table-wrapper"],[4,"ngIf","ngIfElse"],[1,"imx-datatable",3,"value","resizableColumns"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",3,"ngClass"],["imxGenericSelector","",3,"ngClass"],[1,"select-column"],[1,"",3,"value","checked","change"],[3,"matTooltip","matTooltipShowDelay"],[1,"txt-link",3,"routerLink"],[1,"badge"],[1,"icon-calendar-full"],[3,"matTooltip"],["class","icon icon-notificationType-Warning imx-icon-small outside-client",3,"matTooltip",4,"ngIf"],[3,"tooltipText","offset"],[3,"languages","inline"],[3,"dataObject","alternateDatesModel","mouseenter","mouseleave"],["datesTooltip",""],[1,"txt-md"],[4,"ngFor","ngForOf"],[3,"key","appearances","renderLabel","useAppearanceLogic"],[1,"action-column"],["search-list-action-menu-top",""],[3,"icon","routerLink"],[3,"icon","click",4,"ngIf"],[3,"icon","click"],[4,"ngIf"],[1,"icon","icon-notificationType-Warning","imx-icon-small","outside-client",3,"matTooltip"],[1,"txt-md-sm"],[3,"icon","actionClicked",4,"ngIf"],[1,"selected-size"],[1,"icon-chevron-down"]],template:function(pe,Ze){if(1&pe&&(o.TgZ(0,"div",0)(1,"imx-event-filter",1),o.NdJ("orderChanged",function(Si){return Ze.sort(Si)})("applyFilter",function(Si){return Ze.search(Si)})("resetFilter",function(){return Ze.reset()}),o.qZA(),o.TgZ(2,"imx-list-header",2),o.NdJ("reload",function(){return Ze.reloadComplete()}),o.ynx(3,3),o.YNc(4,be,1,0,"imx-statistics-button",4)(5,we,1,2,"imx-create-new-entity-button",5),o.BQk(),o.qZA(),o.TgZ(6,"imx-grid")(7,"imx-grid-element",6),o.YNc(8,ie,2,0,"ng-template",null,7,o.W1O)(10,Ge,1,0,"ng-template",null,8,o.W1O)(12,Rt,2,1,"ng-template",null,9,o.W1O)(14,Ed,2,2,"div",10),o.ALo(15,"async"),o.qZA()(),o.TgZ(16,"imx-list-footer",11),o.NdJ("pageChanged",function(Si){return Ze.onPageChanged(Si)})("selectAll",function(Si){return Ze.onSelectAll(Si)}),o.TgZ(17,"imx-dropup-button",12),o.YNc(18,am,6,4,"ng-template",13),o.TgZ(19,"imx-search-list-action-menu",14),o.NdJ("executeAction",function(Si){return Ze.executeBatchAction(Si)}),o.ynx(20,15),o.TgZ(21,"imx-action-menu-item",16),o.NdJ("actionClicked",function(){return Ze.addToObjectList()}),o._uU(22),o.ALo(23,"translate"),o.qZA(),o.TgZ(24,"imx-action-menu-item-create-contact-list",17),o.NdJ("actionClicked",function(){return Ze.proposeSelectedIdsAsContactList()}),o.qZA(),o.TgZ(25,"imx-action-menu-item",16),o.NdJ("actionClicked",function(){return Ze.exportStatisticsOnSelectedIds()}),o._uU(26),o.ALo(27,"translate"),o.qZA(),o.BQk(),o.qZA()()()()),2&pe){const xn=o.MAs(11);o.xp6(),o.Q6J("formHandler",Ze.filterFormHandler)("record",Ze.filter)("orderFields",Ze.availableOrderFields)("orderField",Ze.orderField)("orderDirection",Ze.orderDirection)("enableCreateContactListOption",!0),o.xp6(),o.Q6J("totalNumber",null==Ze.currentResult?null:Ze.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxeventmanager.event")("isCompactPageHeader",!0)("info",Ze.info),o.xp6(2),o.Q6J("hasAnyPermission",Ze.eventmanagerPermissions.F_STAT_EVENT_EXPORT.name),o.xp6(),o.Q6J("hasAnyPermission",Ze.eventmanagerPermissions.F_EVENT_CREATE.name),o.xp6(9),o.Q6J("ngIf",o.lcZ(15,21,Ze.results))("ngIfElse",xn),o.xp6(2),o.Q6J("paging",Ze.pagingModel)("selection",Ze.selectionModel),o.xp6(3),o.Q6J("actions",null==Ze.actionProvider?null:Ze.actionProvider.getBatchActionsForType(Ze.getEntityName())),o.xp6(2),o.Q6J("icon","icon-star--add"),o.xp6(),o.hij(" ",o.lcZ(23,23,"imxplatform.entity-list.object-list.action-title")," "),o.xp6(3),o.Q6J("icon","icon-pie-chart"),o.xp6(),o.hij(" ",o.lcZ(27,25,"imxplatform.common.export")," ")}},dependencies:[ht.$,ym.r,Tu.n,Hu.l,Qt.N,Un._,Yt.A,Fn.E,yt.R,ee.F,Cp.l,m.mk,m.sg,m.O5,n.rH,Bt.oG,li.pW,si.gM,oo.iA,_o.jx,oo.Q7,mo.z,vn.t,Ji.F,wn.M,po.V,G_.J,Mm.K,Kn.j,ru,r_,Ls.j,c_.E,Zp.O,m.Ov,m.uU,I.X$,$t,mr],styles:["[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}"]})}return N})();var g=a(35922),T=a(34722),W=a(80529),le=a(96681),De=a(77958);const ke=["dialogFrame"];function Ot(N,Lt){if(1&N&&(o.TgZ(0,"div",7)(1,"imx-base-checkbox",8),o._uU(2),o.qZA()()),2&N){const M=Lt.$implicit,pe=o.oxw();o.xp6(),o.Q6J("formControl",pe.languageFormControlsMap.get(M.name)),o.xp6(),o.hij(" ",M.name," ")}}let Nt=(()=>{class N{constructor(M,pe,Ze,xn){this.data=M,this.dialog=pe,this.changeDetectorRef=Ze,this.dialogRef=xn,this.languageFormControlsMap=new Map,this.formGroup=new b.nJ({appearanceFromDateControl:new b.p4,appearanceToDateControl:new b.p4,appearanceLangsControl:new b.p4})}ngOnInit(){this.initCheckboxes(),this.formGroup.get("appearanceFromDateControl").setValue(this.data.appearance.fromDate),this.formGroup.get("appearanceToDateControl").setValue(this.data.appearance.toDate)}onConfirm(){this.dialogRef.close({confirmed:!0,appearanceFromDate:this.formGroup.get("appearanceFromDateControl").value,appearanceToDate:this.formGroup.get("appearanceToDateControl").value,appearanceLangs:this.convertLanguageControlValuesToArray()})}onCancel(){this.dialogRef.close({confirmed:!1})}convertLanguageControlValuesToArray(){const M=[];return this.data.event.defaultAppearance.languages.forEach(pe=>{this.languageFormControlsMap.get(pe.name.toString()).value&&M.push(pe.name.toString())}),M.join()}initCheckboxes(){this.data.appearance.languages.forEach(M=>{const pe=new b.p4;pe.setValue(this.data.appearance.languages.map(Ze=>Ze.name).includes(M.name.toString())),this.languageFormControlsMap.set(M.name.toString(),pe)})}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(t.WI),o.Y36(t.uw),o.Y36(o.sBO),o.Y36(t.so))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["ng-component"]],viewQuery:function(pe,Ze){if(1&pe&&o.Gf(ke,7),2&pe){let xn;o.iGM(xn=o.CRH())&&(Ze.dialogFrame=xn.first)}},decls:7,vars:7,consts:[["icon","icon-earth","dialogType","form",3,"heading","submitButtonDisabled","useEvents","onConfirm","onCancel"],["dialogFrame",""],["id","appearance-extension-content-edit-dialog",3,"formGroup"],[1,"dialog-form"],["label","entity.BasicAppearance.fromDate","formControlName","appearanceFromDateControl",3,"min"],["label","entity.BasicAppearance.toDate","formControlName","appearanceToDateControl",3,"max"],["class","featureGroup",4,"ngFor","ngForOf"],[1,"featureGroup"],[3,"formControl"]],template:function(pe,Ze){1&pe&&(o.TgZ(0,"imx-dialog",0,1),o.NdJ("onConfirm",function(){return Ze.onConfirm()})("onCancel",function(){return Ze.onCancel()}),o.TgZ(2,"form",2)(3,"div",3),o._UZ(4,"imx-base-date",4)(5,"imx-base-date",5),o.YNc(6,Ot,3,2,"div",6),o.qZA()()()),2&pe&&(o.Q6J("heading","imxeventmanager.event.edit.panels.appearances.header")("submitButtonDisabled",Ze.formGroup.invalid||Ze.formGroup.pristine)("useEvents",!0),o.xp6(2),o.Q6J("formGroup",Ze.formGroup),o.xp6(2),o.Q6J("min",Ze.formGroup.get("appearanceFromDateControl").value),o.xp6(),o.Q6J("max",Ze.formGroup.get("appearanceToDateControl").value),o.xp6(),o.Q6J("ngForOf",Ze.data.appearance.languages))},dependencies:[De.G,qp.d,x.a,m.sg,b._Y,b.JJ,b.JL,b.oH,b.sg,b.u],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}"]})}return N})();function gn(N,Lt){1&N&&o.GkF(0)}function Xn(N,Lt){1&N&&o.GkF(0)}const ci=N=>({$implicit:N});function pi(N,Lt){if(1&N&&(o.TgZ(0,"div",7)(1,"div",8)(2,"div",9),o.YNc(3,gn,1,0,"ng-container",10)(4,Xn,1,0,"ng-container",10),o.qZA()()()),2&N){const M=Lt.$implicit;o.oxw(2);const pe=o.MAs(3),Ze=o.MAs(5);o.xp6(3),o.Q6J("ngTemplateOutlet",pe)("ngTemplateOutletContext",o.VKq(4,ci,M)),o.xp6(),o.Q6J("ngTemplateOutlet",Ze)("ngTemplateOutletContext",o.VKq(6,ci,M))}}function Di(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"div",3)(2,"span",4),o._uU(3,"imxplatform.common-entity.list.extension.appearance.own-dcs"),o.qZA()(),o.TgZ(4,"div",5),o.YNc(5,pi,5,8,"div",6),o.qZA(),o.BQk()),2&N){const M=o.oxw();o.xp6(5),o.Q6J("ngForOf",M.ownAppearances)}}function Ni(N,Lt){1&N&&o.GkF(0)}function lo(N,Lt){1&N&&o.GkF(0)}function yo(N,Lt){if(1&N&&(o.TgZ(0,"div",7)(1,"div",8)(2,"div",9),o.YNc(3,Ni,1,0,"ng-container",10)(4,lo,1,0,"ng-container",10),o.qZA()()()),2&N){const M=Lt.$implicit;o.oxw(2);const pe=o.MAs(3),Ze=o.MAs(5);o.xp6(3),o.Q6J("ngTemplateOutlet",pe)("ngTemplateOutletContext",o.VKq(4,ci,M)),o.xp6(),o.Q6J("ngTemplateOutlet",Ze)("ngTemplateOutletContext",o.VKq(6,ci,M))}}function So(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"div",3)(2,"span",4),o._uU(3,"imxplatform.common-entity.list.extension.appearance.foreign-dcs"),o.qZA()(),o.TgZ(4,"div",5),o.YNc(5,yo,5,8,"div",6),o.qZA(),o.BQk()),2&N){const M=o.oxw();o.xp6(5),o.Q6J("ngForOf",M.foreignAppearances)}}function Ko(N,Lt){if(1&N&&(o.TgZ(0,"div",11),o._UZ(1,"span",12),o.qZA(),o.TgZ(2,"div",13)(3,"p",14),o._uU(4),o.ALo(5,"translate"),o.qZA(),o.TgZ(6,"p"),o._uU(7),o.ALo(8,"date"),o.ALo(9,"date"),o.qZA()(),o.TgZ(10,"div",15),o._UZ(11,"imx-entity-state",16),o.qZA(),o.TgZ(12,"div",17),o._UZ(13,"imx-language-flag",18),o.qZA(),o.TgZ(14,"div",19)(15,"p",14),o._uU(16),o.ALo(17,"translate"),o.qZA(),o.TgZ(18,"p"),o._uU(19),o.qZA()(),o.TgZ(20,"div",20)(21,"imx-tooltip",21)(22,"span",4),o._uU(23),o.qZA(),o._UZ(24,"span",22),o.qZA()()),2&N){const M=Lt.$implicit,pe=o.oxw();o.Q6J("ngClass",pe.getAppearanceEntityStateColorCss(M.type)),o.xp6(2),o.Q6J("ngClass",pe.getAppearanceEntityStateColorCss(M.type)),o.xp6(2),o.hij("",o.lcZ(5,19,"imxplatform.common-entity.list.extension.appearance.period"),":"),o.xp6(3),o.AsE("",o.xi3(8,21,M.fromDate,"dd.MM.yyyy")," - ",o.xi3(9,24,M.toDate,"dd.MM.yyyy"),""),o.xp6(4),o.Q6J("fromDate",M.fromDate)("toDate",M.toDate)("checkForDates",!0)("renderLabel",!1),o.xp6(2),o.Q6J("languages",M.languages)("inline",!0),o.xp6(),o.Q6J("ngClass",pe.getAppearanceEntityStateColorCss(M.type)),o.xp6(2),o.hij("",o.lcZ(17,27,"imxplatform.common-entity.list.extension.appearance.delivery-channel"),":"),o.xp6(3),o.Oqu(null==M.deliveryChannel?null:M.deliveryChannel.name),o.xp6(),o.Q6J("ngClass",pe.getAppearanceEntityStateColorCss(M.type)),o.xp6(),o.Q6J("tooltipText",pe.getHint(M))("offset",500),o.xp6(2),o.Oqu(pe.getAppearanceEntityState(M.type).i18n),o.xp6(),o.Q6J("ngClass",pe.getAppearanceEntityState(M.type).iconClass)}}function Uo(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"a",25),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw(2).$implicit,xn=o.oxw();return o.KtG(xn.confirmOrRefuseAppearance(Ze,"refuse"))}),o._uU(1),o.ALo(2,"translate"),o._UZ(3,"span",26),o.qZA()}2&N&&(o.xp6(),o.hij(" ",o.lcZ(2,1,"imxplatform.common-entity.list.extension.appearance.refuse"),"\xa0"))}function Yo(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"div",23),o.YNc(2,Uo,4,3,"a",24),o.ALo(3,"async"),o.qZA(),o.BQk()),2&N){const M=o.oxw().$implicit,pe=o.oxw();o.xp6(2),o.Q6J("ngIf",o.lcZ(3,1,pe.hasAppearanceRefusePermission(M)))}}function fr(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"a",25),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw(2).$implicit,xn=o.oxw();return o.KtG(xn.confirmOrRefuseAppearance(Ze,"confirm"))}),o._uU(1),o.ALo(2,"translate"),o._UZ(3,"span",26),o.qZA()}2&N&&(o.xp6(),o.hij(" ",o.lcZ(2,1,"imxplatform.common-entity.list.extension.appearance.confirm"),"\xa0"))}function Ur(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"a",25),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw(2).$implicit,xn=o.oxw();return o.KtG(xn.confirmOrRefuseAppearance(Ze,"update_confirm"))}),o._uU(1),o.ALo(2,"translate"),o._UZ(3,"span",26),o.qZA()}2&N&&(o.xp6(),o.hij(" ",o.lcZ(2,1,"imxplatform.common-entity.list.extension.appearance.update-confirm"),"\xa0"))}function sa(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"a",25),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw(2).$implicit,xn=o.oxw();return o.KtG(xn.confirmOrRefuseAppearance(Ze,"refuse"))}),o._uU(1),o.ALo(2,"translate"),o._UZ(3,"span",26),o.qZA()}2&N&&(o.xp6(),o.hij(" ",o.lcZ(2,1,"imxplatform.common-entity.list.extension.appearance.refuse"),"\xa0"))}function Ya(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"div",23)(2,"div"),o.YNc(3,fr,4,3,"a",24),o.ALo(4,"async"),o.qZA(),o.TgZ(5,"div"),o.YNc(6,Ur,4,3,"a",24),o.ALo(7,"async"),o.qZA(),o.TgZ(8,"div"),o.YNc(9,sa,4,3,"a",24),o.ALo(10,"async"),o.qZA()(),o.BQk()),2&N){const M=o.oxw().$implicit,pe=o.oxw();o.xp6(3),o.Q6J("ngIf",o.lcZ(4,3,pe.hasAppearanceConfirmPermission(M))),o.xp6(3),o.Q6J("ngIf",o.lcZ(7,5,pe.hasAppearanceConfirmPermission(M))),o.xp6(3),o.Q6J("ngIf",o.lcZ(10,7,pe.hasAppearanceRefusePermission(M)))}}function ua(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"a",25),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw(2).$implicit,xn=o.oxw();return o.KtG(xn.confirmOrRefuseAppearance(Ze,"confirm"))}),o._uU(1),o.ALo(2,"translate"),o._UZ(3,"span",26),o.qZA()}2&N&&(o.xp6(),o.hij(" ",o.lcZ(2,1,"imxplatform.common-entity.list.extension.appearance.confirm"),"\xa0"))}function ca(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"div",23),o.YNc(2,ua,4,3,"a",24),o.ALo(3,"async"),o.qZA(),o.BQk()),2&N){const M=o.oxw().$implicit,pe=o.oxw();o.xp6(2),o.Q6J("ngIf",o.lcZ(3,1,pe.hasAppearanceConfirmPermission(M)))}}function pa(N,Lt){if(1&N&&o.YNc(0,Yo,4,3,"ng-container",0)(1,Ya,11,9,"ng-container",0)(2,ca,4,3,"ng-container",0),2&N){const M=Lt.$implicit,pe=o.oxw();o.Q6J("ngIf",pe.isConfirmed(M.type)),o.xp6(),o.Q6J("ngIf",pe.isPending(M.type)),o.xp6(),o.Q6J("ngIf",pe.isRefused(M.type))}}let Xa=(()=>{class N extends l.AbstractAppearanceExtensionContentComponent{constructor(M,pe,Ze,xn,Si,Ga,xs){super(M,pe,Ze,xn),this.dataAccessService=Si,this.dialog=Ga,this.imxEventmanagerDataAccessService=xs,this.ownAppearances=[],this.foreignAppearances=[]}createActionParams(M,pe,Ze){return Ze?{appearanceId:M,type:pe,appearanceFromDate:Ze.appearanceFromDate,appearanceToDate:Ze.appearanceToDate,appearanceLangs:Ze.appearanceLangs}:{appearanceId:M,type:pe}}createActionCallEventSpecific(M,pe,Ze,xn){return{actionKey:"event-action-confirm_refuse_appearance",entityType:"Event",entityIds:[M.id],actionParams:this.createActionParams(pe,Ze,xn)}}confirmOrRefuseAppearance(M,pe){"update_confirm"===pe?this.dialog.open(Nt,{maxWidth:500,data:{formHandler:this.formHandler,event:this.entity,appearance:M}}).afterClosed().subscribe(xn=>{xn&&xn.confirmed&&this.submitAppearance(M,pe,xn)}):this.submitAppearance(M,pe)}submitAppearance(M,pe,Ze){this.dataAccessService.callAction(this.createActionCallEventSpecific(this.entity,M.id,pe,Ze)).subscribe(xn=>{xn.includes(this.entity.id)&&this.imxEventmanagerDataAccessService.getCompactEventById$(this.entity.id).subscribe(Si=>{this.entityUpdated.emit(Si),this.entity=Si,this.initAppearances(),this.changeDetectorRef.markForCheck()})})}calcAppearanceConfirmPermission(){return this.imxSecurityManagerService.hasPermission(Us.M.F_EVENT_APPEARANCE_CONFIRM)}calcAppearanceRefusePermission(){return this.imxSecurityManagerService.hasPermission(Us.M.F_EVENT_APPEARANCE_REFUSE)}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(s.Ze),o.Y36(s.qB),o.Y36(s.Xh),o.Y36(o.sBO),o.Y36(l.ImxPlatformDataAccessService),o.Y36(t.uw),o.Y36(yn.b))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-event-appearance-extension-content"]],hostAttrs:[1,"imx-event-appearance-extension-content"],features:[o.qOj],decls:6,vars:2,consts:[[4,"ngIf"],["appearanceColumns",""],["actionColumns",""],[1,"group_header"],["translate",""],[1,"list__extension__content"],["class","row-wrapper",4,"ngFor","ngForOf"],[1,"row-wrapper"],[1,"list__extension__row","appearances"],[1,"list__content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"list__column",3,"ngClass"],[1,"icon-calendar-full"],[1,"list__column","dateCol",3,"ngClass"],[1,"txt-sm"],[1,"list__column","activityCol"],[3,"fromDate","toDate","checkForDates","renderLabel"],[1,"list__column","langCol"],[3,"languages","inline"],[1,"list__column","dcCol",3,"ngClass"],[1,"list__column","stateCol","appearance-state",3,"ngClass"],[3,"tooltipText","offset"],[1,"icon","imx-icon-middle",3,"ngClass"],[1,"list__column","colAction"],["class","txt-link",3,"click",4,"ngIf"],[1,"txt-link",3,"click"],[1,"icon-arrow-right"]],template:function(pe,Ze){1&pe&&o.YNc(0,Di,6,1,"ng-container",0)(1,So,6,1,"ng-container",0)(2,Ko,25,29,"ng-template",null,1,o.W1O)(4,pa,3,3,"ng-template",null,2,o.W1O),2&pe&&(o.Q6J("ngIf",Ze.ownAppearances.length>0),o.xp6(),o.Q6J("ngIf",Ze.foreignAppearances.length>0))},dependencies:[Tu.n,Hu.l,ee.F,m.mk,m.sg,m.O5,m.tP,I.Pi,Mm.K,m.Ov,m.uU,I.X$],styles:[".list__extension__content[_ngcontent-%COMP%]   .row-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-bottom:5px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row[_ngcontent-%COMP%]{background-color:#fff;padding:10px 40px 10px 10px;margin:0 20px 10px;width:100%;display:flex;flex-direction:column;position:relative}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row[_ngcontent-%COMP%]   .list__content[_ngcontent-%COMP%]{margin-bottom:0}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row[_ngcontent-%COMP%]   .row-action[_ngcontent-%COMP%]{position:absolute;right:0;top:0;height:100%;width:48px;display:flex;justify-content:center;align-items:center;cursor:pointer;color:#0a2663;border-left:1px solid #eefafa}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row[_ngcontent-%COMP%]   .list__column[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{margin-right:5px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.dateCol[_ngcontent-%COMP%]{flex-basis:200px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.activityCol[_ngcontent-%COMP%]{flex-basis:100px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.priorityCol[_ngcontent-%COMP%]{flex-basis:220px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.langCol[_ngcontent-%COMP%]{flex-basis:70px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.dcCol[_ngcontent-%COMP%]{flex-basis:240px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.plCol[_ngcontent-%COMP%], .list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.stateCol[_ngcontent-%COMP%]{flex-basis:250px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.colAction[_ngcontent-%COMP%]{flex-basis:250px;text-align:right}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col1[_ngcontent-%COMP%]{flex-basis:530px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col2[_ngcontent-%COMP%]{flex-basis:70px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col3[_ngcontent-%COMP%]{flex-basis:240px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col4[_ngcontent-%COMP%]{flex-basis:250px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col5[_ngcontent-%COMP%]{flex-basis:250px;text-align:right}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col6[_ngcontent-%COMP%]{padding-left:22px;margin-top:8px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.ibe-assignments[_ngcontent-%COMP%]   .list__column.col1[_ngcontent-%COMP%]{flex-basis:150px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.ibe-assignments[_ngcontent-%COMP%]   .list__column.col2[_ngcontent-%COMP%]{flex-basis:200px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.ibe-assignments[_ngcontent-%COMP%]   .list__column.col3[_ngcontent-%COMP%], .list__extension__content[_ngcontent-%COMP%]   .list__extension__row.ibe-assignments[_ngcontent-%COMP%]   .list__column.col4[_ngcontent-%COMP%]{flex-basis:150px}.color-refused[_ngcontent-%COMP%]{color:#96172e}.color-pending[_ngcontent-%COMP%]{color:#f0ab00}.color-confirmed[_ngcontent-%COMP%]{color:#739600}.appearance-state[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{vertical-align:middle}.appearance-state[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{margin-left:8px}.group_header[_ngcontent-%COMP%]{padding:0 65px 5px 10px;margin:0 20px 10px}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.list__content[_ngcontent-%COMP%]{display:-webkit-flex;display:flex;flex-direction:row;margin-bottom:5px;width:100%}.list__content-wrapper[_ngcontent-%COMP%]{display:flex}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.icon-column[_ngcontent-%COMP%]{font-size:20px;color:#000;line-height:22px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.image-column[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100px;height:100px;object-fit:cover}@media (max-width: 900px){.list__content-wrapper[_ngcontent-%COMP%]   .list__column.image-column[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:50px;height:50px}}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.image-column.placeholder[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:unset}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col3[_ngcontent-%COMP%]{flex-basis:450px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col4[_ngcontent-%COMP%]{width:20px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col5[_ngcontent-%COMP%]{flex-basis:400px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col6[_ngcontent-%COMP%]{flex-basis:200px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col7[_ngcontent-%COMP%]{margin-left:auto}.list__content[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.list__content-rows[_ngcontent-%COMP%]{width:100%}.list__column[_ngcontent-%COMP%]{margin-right:10px;word-break:break-word}@media (max-width: 900px){.list__column[_ngcontent-%COMP%]{margin-right:5px}}.list__column[_ngcontent-%COMP%]   .margin-top[_ngcontent-%COMP%]{margin-top:5px}.list__column[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style-type:square;list-style-position:inside}.list__column[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px}.no-records[_ngcontent-%COMP%]{margin-left:8px}"],data:{animation:l.LIST_EXTENSION_ANIMATION},changeDetection:0})}return N})();function Ma(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"imx-event-appearance-extension-content",3),o.NdJ("entityUpdated",function(Ze){o.CHM(M);const xn=o.oxw(2);return o.KtG(xn.emitEventUpdated(Ze))}),o.qZA()}if(2&N){const M=o.oxw(2);o.Q6J("entity",M.item)("entityType","Event")("filter",M.filter)}}function ea(N,Lt){if(1&N&&(o.TgZ(0,"imx-list-extension-accordion-item",1),o.YNc(1,Ma,1,3,"ng-template",2),o.qZA()),2&N){const M=o.oxw();o.Q6J("count",M.item.appearances.length+M.item.pendingAppearances.length+M.item.refusedAppearances.length)}}let rs=(()=>{class N{constructor(){this.eventUpdated=new o.vpe}emitEventUpdated(M){this.eventUpdated.emit(M)}static#e=this.\u0275fac=function(pe){return new(pe||N)};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-event-list-extension"]],hostAttrs:[1,"imx-event-list-extension"],inputs:{item:"item",filter:"filter"},outputs:{eventUpdated:"eventUpdated"},decls:2,vars:1,consts:[["icon","icon-calendar-full","header","imxplatform.common-entity.list.extension.appearance.header",3,"count",4,"ngIf"],["icon","icon-calendar-full","header","imxplatform.common-entity.list.extension.appearance.header",3,"count"],["imxLazyListExtensionAccordionItem",""],[3,"entity","entityType","filter","entityUpdated"]],template:function(pe,Ze){1&pe&&(o.TgZ(0,"imx-list-extension-accordion"),o.YNc(1,ea,2,1,"imx-list-extension-accordion-item",0),o.qZA()),2&pe&&(o.xp6(),o.Q6J("ngIf",Ze.item.appearances.length+Ze.item.pendingAppearances.length+Ze.item.refusedAppearances.length>0))},dependencies:[T.F,W.j,le.K,m.O5,Xa],encapsulation:2,data:{animation:l.LIST_EXTENSION_ANIMATION},changeDetection:0})}return N})();function Sa(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"imx-statistics-button",21),o.NdJ("export",function(){o.CHM(M);const Ze=o.oxw();return o.KtG(Ze.exportStatistics())}),o.qZA()}}function ml(N,Lt){1&N&&o._UZ(0,"imx-create-new-entity-button",22),2&N&&o.Q6J("entityRoute","/events")("entityResourceKeyPrefix","imxeventmanager.event")}function nd(N,Lt){1&N&&(o.TgZ(0,"imx-list-no-results"),o._uU(1,"imxeventmanager.event.list.no-records"),o.qZA())}function cd(N,Lt){1&N&&o._UZ(0,"mat-progress-bar",23)}function sm(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"imx-action-menu-item",34),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw().$implicit,xn=o.oxw(3);return o.KtG(xn.executeHistoryAction(xn.getEntityName(),Ze.id))}),o._uU(1," imxplatform.common-entity.list.history "),o.qZA()}2&N&&o.Q6J("icon","icon-compare")}function ju(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"imx-action-menu-item",16),o.NdJ("actionClicked",function(){o.CHM(M);const Ze=o.oxw().ngIf,xn=o.oxw().$implicit,Si=o.oxw(3);return o.KtG(Si.executeRowAction(Ze,xn))}),o._uU(1),o.ALo(2,"translate"),o.qZA()}if(2&N){const M=o.oxw().ngIf;o.Q6J("icon",M.getIcon()),o.xp6(),o.hij(" ",o.lcZ(2,2,M.getActionLabelKey())," ")}}function su(N,Lt){if(1&N&&(o.ynx(0),o.YNc(1,ju,3,4,"imx-action-menu-item",38),o.ALo(2,"async"),o.BQk()),2&N){const M=Lt.ngIf,pe=o.oxw().$implicit;o.xp6(),o.Q6J("ngIf",M.hasPermission()&&o.lcZ(2,1,M.isExecutable(pe)))}}const qd=N=>({selected:N}),Xd=N=>["edit",N];function Em(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"mat-list-item",25)(1,"div",26)(2,"imx-list-row-selection",27),o.NdJ("selectionChanged",function(Ze){o.CHM(M);const xn=o.oxw(3);return o.KtG(xn.onSelectionChanged(Ze))}),o.qZA(),o.TgZ(3,"div",28)(4,"imx-list-row",29),o.NdJ("slideInEvent",function(Ze){o.CHM(M);const xn=o.oxw(3);return o.KtG(xn.dispatchSlideEvent(Ze))}),o.qZA()(),o.TgZ(5,"div",30)(6,"imx-dropup-button")(7,"imx-search-list-action-menu",13),o.NdJ("executeAction",function(Ze){const Si=o.CHM(M).$implicit,Ga=o.oxw(3);return o.KtG(Ga.executeRowAction(Ze,Si))}),o.ynx(8,31),o.TgZ(9,"imx-action-menu-item",32),o._uU(10," imxplatform.common-entity.list.edit "),o.qZA(),o.BQk(),o.ynx(11,14),o.YNc(12,sm,2,1,"imx-action-menu-item",33),o.TgZ(13,"imx-action-menu-item",34),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.executeReferencesAction(Si.getEntityName(),xn.id))}),o._uU(14,"imxplatform.common-entity.list.references"),o.qZA(),o.YNc(15,su,3,3,"ng-container",35),o.BQk(),o.qZA()(),o.TgZ(16,"imx-entity-state",36),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.executeRowAction(Si.getSetStateAction(),xn))}),o.qZA()()(),o.TgZ(17,"imx-event-list-extension",37),o.NdJ("eventUpdated",function(Ze){o.CHM(M);const xn=o.oxw(3);return o.KtG(xn.swapAppearancesInResultItem(Ze))}),o.qZA()()}if(2&N){const M=Lt.$implicit,pe=o.oxw(3),Ze=o.MAs(29),xn=o.MAs(31),Si=o.MAs(33);o.uIk("data-scroll-id",M.id),o.xp6(),o.Q6J("ngClass",o.VKq(24,qd,pe.isItemSelected(M.id))),o.xp6(),o.Q6J("id",M.id)("checked",pe.isItemSelected(M.id))("blockedByAction",pe.isBlockedByAction(M.id)),o.xp6(2),o.Q6J("dataObject",M)("memoCount",pe.getMemoCount(M.id))("isActiveSlideIn",pe.isActiveSlideIn)("leftSlotTemplate",Ze)("rightSlotTemplate",xn)("bottomSlotTemplate",Si),o.xp6(3),o.Q6J("actions",null==pe.actionProvider?null:pe.actionProvider.getRowActionsForType(pe.getEntityName(),M.id)),o.xp6(2),o.Q6J("icon","icon-pencil")("routerLink",o.VKq(26,Xd,M.id)),o.xp6(3),o.Q6J("ngIf",pe.hasHistoryPermission()),o.xp6(),o.Q6J("icon","icon-link"),o.xp6(2),o.Q6J("ngIf",pe.actionProvider.findStaticActionForKey("import-source-view-action")),o.xp6(),o.Q6J("additionalClass","list__row-action-box")("key",M.entityState.key)("appearances",null==M?null:M.appearances)("inline",!1)("useAppearanceLogic",pe.filterFormHandler.hasDeliveryChannelLogic()),o.xp6(),o.Q6J("item",M)("filter",pe.filter)}}function Eu(N,Lt){if(1&N&&(o.TgZ(0,"mat-list"),o.YNc(1,Em,18,28,"mat-list-item",24),o.qZA()),2&N){const M=o.oxw().ngIf;o.xp6(),o.Q6J("ngForOf",M.items)}}function lu(N,Lt){if(1&N&&(o.TgZ(0,"div"),o.YNc(1,Eu,2,1,"mat-list",9),o.qZA()),2&N){const M=Lt.ngIf;o.oxw();const pe=o.MAs(10);o.xp6(),o.Q6J("ngIf",M.items.length>0)("ngIfElse",pe)}}function Vd(N,Lt){if(1&N&&(o.TgZ(0,"span"),o._uU(1),o.ALo(2,"translate"),o.TgZ(3,"span",39),o._uU(4),o.qZA()(),o._UZ(5,"span",40)),2&N){const M=o.oxw();o.xp6(),o.hij("",o.lcZ(2,2,"imxplatform.common-entity.list.selected-items")," "),o.xp6(3),o.hij("(",null==M.selectedIds?null:M.selectedIds.size,")")}}function Ad(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"imx-action-menu-item",16),o.NdJ("actionClicked",function(){o.CHM(M);const Ze=o.oxw();return o.KtG(Ze.addMemoAttributesOnSelectedIds())}),o._uU(1),o.ALo(2,"translate"),o.qZA()}2&N&&(o.Q6J("icon","icon-bubble"),o.xp6(),o.hij(" ",o.lcZ(2,2,"imxplatform.entity-list.object-list.new-memo")," "))}function fd(N,Lt){if(1&N&&(o.TgZ(0,"p",46),o._uU(1),o.ALo(2,"translate"),o.TgZ(3,"span",47),o._uU(4),o.qZA()()),2&N){const M=o.oxw().dataObject;o.xp6(),o.hij("",o.lcZ(2,3,"entity.Event.eventUser"),": "),o.xp6(3),o.AsE("",M.eventUser.loginname," (",M.eventUser.id,")")}}function Om(N,Lt){if(1&N&&(o.TgZ(0,"a",41),o._uU(1),o.ALo(2,"readI18n"),o.qZA(),o._UZ(3,"imx-row-id-view",42)(4,"imx-row-client-view",43),o.YNc(5,fd,5,5,"p",44),o.TgZ(6,"p",45),o._uU(7),o.ALo(8,"readI18n"),o.ALo(9,"readI18n"),o.qZA(),o.TgZ(10,"p",46),o._uU(11),o.qZA()),2&N){const M=Lt.dataObject,pe=o.oxw();o.Q6J("routerLink",o.VKq(16,Xd,M.id)),o.xp6(),o.hij(" ",o.lcZ(2,10,M.title)," "),o.xp6(2),o.Q6J("dataObject",M),o.xp6(),o.Q6J("dataObject",M)("outsideCurrentClientHierachy$",pe.isOutsideCurrentClientHierachy(null==M||null==M.client?null:M.client.id)),o.xp6(),o.Q6J("ngIf",!pe.isEmpty(M.eventUser)),o.xp6(2),o.AsE(" ",null!=M&&null!=M.location&&M.location.title?o.lcZ(8,12,null==M||null==M.location?null:M.location.title):null==M||null==M.location||null==M.location.contact1?null:M.location.contact1.contactName,"/",o.lcZ(9,14,null==M||null==M.contributor?null:M.contributor.title)," "),o.xp6(4),o.AsE(" ",null==M||null==M.location||null==M.location.contact1||null==M.location.contact1.address?null:M.location.contact1.address.zipcode," ",null==M||null==M.location||null==M.location.contact1||null==M.location.contact1.address?null:M.location.contact1.address.city," ")}}function cu(N,Lt){1&N&&o._UZ(0,"imx-event-right-slot",42),2&N&&o.Q6J("dataObject",Lt.dataObject)}function du(N,Lt){1&N&&o._UZ(0,"imx-event-bottom-slot",42),2&N&&o.Q6J("dataObject",Lt.dataObject)}let wd=(()=>{class N extends l.AbstractCoreDataObjectSearchPage{constructor(M,pe,Ze,xn,Si,Ga,xs,vs,bl,Ll,Tc,xc,fu,Nd,gu,pp,Mp,_p){super(M,pe,Ze,Si,Ga,xs,vs,bl,Ll,fu,Tc,xc,Nd,gu,pp,{},!0),this.dataSource=M,this.filterFormHandler=vs,this.configurationProvider=Mp,this.eventManagerDataAccessService=_p,this.eventmanagerPermissions=Us.M,this.infoEnabled=!1,this.availableOrderFields=[{index:1,field:"TITLE",i18n:"entity.Event.title",type:l.OrderType.alphanumeric},{index:2,field:"ID",i18n:"entity.Event.id",type:l.OrderType.numeric},{index:3,field:"DATE_START",i18n:"imxeventmanager.event.list.sort.firstDate",type:l.OrderType.numeric},{index:4,field:"DATE_END",i18n:"imxeventmanager.event.list.sort.lastDate",type:l.OrderType.numeric},{index:5,field:"CREATION_TIME",i18n:"imxeventmanager.event.list.sort.creationTime",type:l.OrderType.numeric},{index:6,field:"LAST_CHANGE",i18n:"imxeventmanager.event.list.sort.lastChange",type:l.OrderType.numeric},{index:7,field:"DUPLICATES",i18n:"imxeventmanager.event.list.sort.duplicates",type:l.OrderType.numeric}]}afterContentLoaded(){super.afterContentLoaded(),this.infoEnabled&&this.dataSource.getAllResultIds().length>0&&this.eventManagerDataAccessService.getEventDatesAmount(this.dataSource.getAllResultIds(),this.filterFormHandler.getFormValue("startDate"),this.filterFormHandler.getFormValue("endDate")).subscribe(M=>{this.info=M+""})}ngOnInit(){super.ngOnInit(),this.infoEnabled=this.configurationProvider.getBooleanFromSnapshot(co.c.IMXEVENTMANAGER_LIST_DATES_INFO_ENABLED,!1)}getFilterParams(M){return this.eventManagerDataAccessService.convertEventClientParamsToRequestParams(M)}getEntityName(){return"Event"}showMemos(){return!0}getSetStateAction(){return this.actionProvider.findActionForKey("event-action-set_state")}isEmpty(M){return 0===Object.keys(M).length}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(Gd),o.Y36(n.F0),o.Y36(n.gz),o.Y36(s.Yz),o.Y36(l.UserMessageService),o.Y36(l.ListHistoryService),o.Y36(t.uw),o.Y36(vm.oz),o.Y36(l.ImxPlatformDataAccessService),o.Y36(l.SearchPageDefaultsService),o.Y36(l.PlatformTrackingService),o.Y36(l.ObjectListCreationService),o.Y36(s.Ze),o.Y36(l.MemoProviderService),o.Y36(s.Xh),o.Y36(l.ActionProviderService),o.Y36(s.Pc),o.Y36(yn.b))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["ng-component"]],features:[o.qOj],decls:34,vars:28,consts:[[1,"search-page"],[3,"formHandler","record","orderFields","orderField","orderDirection","enableCreateContactListOption","orderChanged","applyFilter","resetFilter"],[3,"totalNumber","entityResourceKeyPrefix","isCompactPageHeader","info","reload"],["list-header-button-row",""],[3,"export",4,"hasAnyPermission"],[3,"entityRoute","entityResourceKeyPrefix",4,"hasAnyPermission"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],[4,"ngIf","ngIfElse"],[3,"paging","selection","pageChanged","selectAll"],["position","above","halign","start"],["imx-dropup-trigger",""],[3,"actions","executeAction"],["search-list-action-menu-middle",""],[3,"icon","actionClicked",4,"hasAnyPermission"],[3,"icon","actionClicked"],[3,"actionClicked"],["eventLeftSlotTemplate",""],["eventRightSlotTemplate",""],["eventBottomSlotTemplate",""],[3,"export"],[3,"entityRoute","entityResourceKeyPrefix"],["mode","indeterminate"],["class","list__item","imxGenericSelector","",4,"ngFor","ngForOf"],["imxGenericSelector","",1,"list__item"],[1,"list__row-wrapper",3,"ngClass"],[3,"id","checked","blockedByAction","selectionChanged"],[1,"list__row"],[3,"dataObject","memoCount","isActiveSlideIn","leftSlotTemplate","rightSlotTemplate","bottomSlotTemplate","slideInEvent"],[1,"list__row-action"],["search-list-action-menu-top",""],[3,"icon","routerLink"],[3,"icon","click",4,"ngIf"],[3,"icon","click"],[4,"ngIf"],[3,"additionalClass","key","appearances","inline","useAppearanceLogic","click"],[3,"item","filter","eventUpdated"],[3,"icon","actionClicked",4,"ngIf"],[1,"selected-size"],[1,"icon-chevron-down"],[1,"txt-bg","title_shortened",3,"routerLink"],[3,"dataObject"],[3,"dataObject","outsideCurrentClientHierachy$"],["class","txt-grey",4,"ngIf"],[1,"txt-grey","location-block"],[1,"txt-grey"],[1,"txt-default"]],template:function(pe,Ze){if(1&pe&&(o.TgZ(0,"div",0)(1,"imx-event-filter",1),o.NdJ("orderChanged",function(Si){return Ze.sort(Si)})("applyFilter",function(Si){return Ze.search(Si)})("resetFilter",function(){return Ze.reset()}),o.qZA(),o.TgZ(2,"imx-list-header",2),o.NdJ("reload",function(){return Ze.reloadComplete()}),o.ynx(3,3),o.YNc(4,Sa,1,0,"imx-statistics-button",4)(5,ml,1,2,"imx-create-new-entity-button",5),o.BQk(),o.qZA(),o.TgZ(6,"imx-grid")(7,"imx-grid-element",6)(8,"imx-generic-slide-in-page"),o.YNc(9,nd,2,0,"ng-template",null,7,o.W1O)(11,cd,1,0,"ng-template",null,8,o.W1O)(13,lu,2,2,"div",9),o.ALo(14,"async"),o.qZA()()(),o.TgZ(15,"imx-list-footer",10),o.NdJ("pageChanged",function(Si){return Ze.onPageChanged(Si)})("selectAll",function(Si){return Ze.onSelectAll(Si)}),o.TgZ(16,"imx-dropup-button",11),o.YNc(17,Vd,6,4,"ng-template",12),o.TgZ(18,"imx-search-list-action-menu",13),o.NdJ("executeAction",function(Si){return Ze.executeBatchAction(Si)}),o.ynx(19,14),o.YNc(20,Ad,3,4,"imx-action-menu-item",15),o.TgZ(21,"imx-action-menu-item",16),o.NdJ("actionClicked",function(){return Ze.addToObjectList()}),o._uU(22),o.ALo(23,"translate"),o.qZA(),o.TgZ(24,"imx-action-menu-item-create-contact-list",17),o.NdJ("actionClicked",function(){return Ze.proposeSelectedIdsAsContactList()}),o.qZA(),o.TgZ(25,"imx-action-menu-item",16),o.NdJ("actionClicked",function(){return Ze.exportStatisticsOnSelectedIds()}),o._uU(26),o.ALo(27,"translate"),o.qZA(),o.BQk(),o.qZA()()()(),o.YNc(28,Om,12,18,"ng-template",null,18,o.W1O)(30,cu,1,1,"ng-template",null,19,o.W1O)(32,du,1,1,"ng-template",null,20,o.W1O)),2&pe){const xn=o.MAs(12);o.xp6(),o.Q6J("formHandler",Ze.filterFormHandler)("record",Ze.filter)("orderFields",Ze.availableOrderFields)("orderField",Ze.orderField)("orderDirection",Ze.orderDirection)("enableCreateContactListOption",!0),o.xp6(),o.Q6J("totalNumber",null==Ze.currentResult?null:Ze.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxeventmanager.event")("isCompactPageHeader",!1)("info",Ze.info),o.xp6(2),o.Q6J("hasAnyPermission",Ze.eventmanagerPermissions.F_STAT_EVENT_EXPORT.name),o.xp6(),o.Q6J("hasAnyPermission",Ze.eventmanagerPermissions.F_EVENT_CREATE.name),o.xp6(8),o.Q6J("ngIf",o.lcZ(14,22,Ze.results))("ngIfElse",xn),o.xp6(2),o.Q6J("paging",Ze.pagingModel)("selection",Ze.selectionModel),o.xp6(3),o.Q6J("actions",null==Ze.actionProvider?null:Ze.actionProvider.getBatchActionsForType(Ze.getEntityName())),o.xp6(2),o.Q6J("hasAnyPermission",Ze.memoCreatePermission),o.xp6(),o.Q6J("icon","icon-star--add"),o.xp6(),o.hij(" ",o.lcZ(23,24,"imxplatform.entity-list.object-list.action-title")," "),o.xp6(3),o.Q6J("icon","icon-pie-chart"),o.xp6(),o.hij(" ",o.lcZ(27,26,"imxplatform.common.export")," ")}},dependencies:[ht.$,ym.r,Tu.n,Jm.Ee,Qt.N,Un._,Yt.A,Ee.Y,g.V,it.w,mt.k,Fn.E,yt.R,ee.F,Cp.l,m.mk,m.sg,m.O5,n.rH,Xi.i$,Xi.Tg,li.pW,mo.z,vn.t,Ji.F,wn.M,po.V,G_.J,go,ru,rs,sf,Ls.j,m.Ov,I.X$],styles:["[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.list__row[_ngcontent-%COMP%]{background:#fff;border:.5px solid #ced4e0;box-sizing:border-box;width:100%;padding:20px;z-index:1}@media (max-width: 900px){.list__row[_ngcontent-%COMP%]{padding:10px}}.list__row-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;box-sizing:border-box;position:relative;height:inherit}.list__row-wrapper.selected[_ngcontent-%COMP%]   .list__row[_ngcontent-%COMP%]{background-color:#eefafa}.list__row-action[_ngcontent-%COMP%]{min-width:45px;min-height:100%;display:flex;flex-direction:column;padding-left:5px;text-align:center;position:relative;z-index:1}@media (max-width: 900px){.list__row-action[_ngcontent-%COMP%]{min-width:30px;padding-left:2px}}.list__row-checkbox[_ngcontent-%COMP%]{margin:auto 5px auto 0}[_nghost-%COMP%]     .list__content-wrapper .list__column.col5{flex-basis:300px!important}[_nghost-%COMP%]     .list__content-wrapper .list__column.col6{flex-basis:220px!important}.location-block[_ngcontent-%COMP%]{margin-top:3px}"]})}return N})();var Wm=a(69332);const Sl=new l.FormConfiguration([...vm.HB.fields,...(0,l.duplicatesFilterFields)()]);let np=(()=>{class N extends l.AbstractFormHandler{constructor(M,pe,Ze,xn){super(Sl,void 0,M,pe,xn),this.runtimeContextService=pe,this.configurationProvider=Ze,this.formatterService=xn}getEntityType(){return"Event"}hasDeliveryChannelLogic(){return"deliveryChannel"===this.configurationProvider.getStringFromSnapshot(co.c.IMXEVENTMANAGER_DELIVERY_METHOD)}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.LFG(l.NgControlBuilderService),o.LFG(s.Ze),o.LFG(s.Pc),o.LFG(l.FormatterService))};static#t=this.\u0275prov=o.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();var lm=a(13557),Sm=a(51588);function yp(N,Lt){if(1&N&&(o.ynx(0),o._uU(1),o.ALo(2,"translate"),o.BQk()),2&N){const M=o.oxw().dataObject;o.xp6(),o.AsE("/ ",o.lcZ(2,2,"entity.CoreDataObject.importIdentifier"),": ",M.importIdentifier," ")}}function Op(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"span",12),o._uU(2),o.TgZ(3,"span",7),o._uU(4),o.ALo(5,"category"),o.qZA()(),o.BQk()),2&N){const M=o.oxw().dataObject;o.xp6(2),o.hij("Kategorien (",null==M||null==M.categories?null:M.categories.length,"): "),o.xp6(2),o.Oqu(o.lcZ(5,2,null==M?null:M.categories))}}function cp(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"span",13),o._uU(2),o.TgZ(3,"span",7),o._uU(4),o.ALo(5,"criteria"),o.qZA()(),o.BQk()),2&N){const M=o.oxw().dataObject;o.xp6(2),o.hij("Merkmale (",null==M||null==M.criteria?null:M.criteria.length,"): "),o.xp6(2),o.Oqu(o.lcZ(5,2,null==M?null:M.criteria))}}const Jp=N=>({clientAppearsMoreThanOnce:N});function dp(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"a",4),o.NdJ("click",function(){const xn=o.CHM(M).dataObject,Si=o.oxw();return o.KtG(Si.contextNavigationService.navigateToCoreEntityContextual(["../events/edit",xn.id]))}),o._uU(1),o.ALo(2,"readI18n"),o.qZA(),o.TgZ(3,"p",5),o._uU(4),o.qZA(),o.TgZ(5,"div",6)(6,"p",7)(7,"span"),o._uU(8),o.YNc(9,yp,3,4,"ng-container",8),o.qZA()(),o.TgZ(10,"p",7)(11,"span",9),o._uU(12),o.ALo(13,"translate"),o.TgZ(14,"span"),o._uU(15),o.qZA()()()(),o.TgZ(16,"p",10),o._uU(17),o.ALo(18,"readI18n"),o.ALo(19,"readI18n"),o.qZA(),o.TgZ(20,"p",11),o._uU(21),o.qZA(),o._UZ(22,"br"),o.YNc(23,Op,6,4,"ng-container",8),o._UZ(24,"br"),o.YNc(25,cp,6,4,"ng-container",8)}if(2&N){const M=Lt.dataObject,pe=o.oxw();o.xp6(),o.hij(" ",o.lcZ(2,17,M.title)," "),o.xp6(3),o.AsE("",null==M||null==M.contact1||null==M.contact1.address?null:M.contact1.address.zipcode," ",null==M||null==M.contact1||null==M.contact1.address?null:M.contact1.address.city,""),o.xp6(4),o.hij(" ID: ",M.id," "),o.xp6(),o.Q6J("ngIf",M.importIdentifier),o.xp6(2),o.Tol(pe.getClientUniqueColorKey(M)),o.Q6J("ngClass",o.VKq(25,Jp,pe.candidateClientAppearsMoreThanOnce(M))),o.xp6(),o.hij(" ",o.lcZ(13,19,"entity.CoreDataObject.client"),": "),o.xp6(3),o.Oqu(M.client.name),o.xp6(2),o.AsE(" ",null!=M&&null!=M.location&&M.location.title?o.lcZ(18,21,null==M||null==M.location?null:M.location.title):null==M||null==M.location||null==M.location.contact1?null:M.location.contact1.contactName,"/",o.lcZ(19,23,null==M||null==M.contributor?null:M.contributor.title)," "),o.xp6(4),o.AsE(" ",null==M||null==M.location||null==M.location.contact1||null==M.location.contact1.address?null:M.location.contact1.address.zipcode," ",null==M||null==M.location||null==M.location.contact1||null==M.location.contact1.address?null:M.location.contact1.address.city," "),o.xp6(2),o.Q6J("ngIf",(null==M||null==M.categories?null:M.categories.length)>0),o.xp6(2),o.Q6J("ngIf",(null==M||null==M.criteria?null:M.criteria.length)>0)}}function ip(N,Lt){1&N&&o._UZ(0,"imx-event-right-slot",14),2&N&&o.Q6J("dataObject",Lt.dataObject)}function Au(N,Lt){}let Lp=(()=>{class N{constructor(){this.moreThanOnceClientColorMap=new Map,this.contextNavigationService=(0,o.f3M)(l.ContextNavigationService)}ngOnInit(){[...new Set(this.duplicateGroup.candidates.map(pe=>pe.client.id))].sort(function(pe,Ze){return pe-Ze}).filter(pe=>this.getNumberOfCandidatesWithThatClient(pe)>=2).forEach((pe,Ze)=>{this.moreThanOnceClientColorMap.set(pe,"dupl-client-color-"+(Ze+1))})}getNumberOfCandidatesWithThatClient(M){return this.duplicateGroup.candidates.filter(pe=>pe.client.id===M).length}candidateClientAppearsMoreThanOnce(M){return this.moreThanOnceClientColorMap.has(M.client.id)}getClientUniqueColorKey(M){return this.moreThanOnceClientColorMap.get(M.client.id)}static#e=this.\u0275fac=function(pe){return new(pe||N)};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-duplicates-content-event"]],hostAttrs:[1,"imx-duplicates-content-event"],inputs:{duplicateItem:"duplicateItem",duplicateGroup:"duplicateGroup"},decls:7,vars:6,consts:[[3,"dataObject","memoCount","ibeAssignmentCount","leftSlotTemplate","rightSlotTemplate","bottomSlotTemplate"],["eventDuplicateLeftSlotTemplate",""],["eventDuplicateRightSlotTemplate",""],["eventDuplicateBottomSlotTemplate",""],[1,"txt-bg","txt-grey","title_shortened",3,"click"],[1,"txt-grey","txt-md-sm"],[1,"txt-sm","margin-top"],[1,"txt-grey"],[4,"ngIf"],[3,"ngClass"],[1,"txt-grey","location-block"],[1,"txt-sm","txt-grey"],[1,"txt-default"],[1,"txt-default","margin-left"],[3,"dataObject"]],template:function(pe,Ze){if(1&pe&&(o._UZ(0,"imx-list-row",0),o.YNc(1,dp,26,27,"ng-template",null,1,o.W1O)(3,ip,1,1,"ng-template",null,2,o.W1O)(5,Au,0,0,"ng-template",null,3,o.W1O)),2&pe){const xn=o.MAs(2),Si=o.MAs(4),Ga=o.MAs(6);o.Q6J("dataObject",Ze.duplicateItem)("memoCount",0)("ibeAssignmentCount",0)("leftSlotTemplate",xn)("rightSlotTemplate",Si)("bottomSlotTemplate",Ga)}},dependencies:[Ee.Y,ee.F,m.mk,m.O5,sf,Ls.j,I.X$,$t,ai],styles:["[_nghost-%COMP%]{flex:100%}.foreign[_ngcontent-%COMP%]{font-weight:700;color:#0a2663}  .list__row .list__content-wrapper .list__column.image-column img{object-fit:cover!important}@media (min-width: 901px){  .list__row .list__content-wrapper .list__column.image-column img{height:65px!important}}@media (max-width: 900px){  .list__row .list__content-wrapper .list__column.image-column img{height:50px!important}}"]})}return N})();function d_(N,Lt){1&N&&(o.TgZ(0,"imx-list-no-results"),o._uU(1,"imxeventmanager.duplicate.list.no-records"),o.qZA())}function zf(N,Lt){1&N&&o._UZ(0,"mat-progress-bar",12)}function df(N,Lt){if(1&N&&o._UZ(0,"imx-duplicates-content-event",17),2&N){const M=Lt.duplicateItem,pe=o.oxw().$implicit;o.Q6J("duplicateItem",M)("duplicateGroup",pe)}}function jf(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"mat-list-item",14)(1,"imx-duplicates-group",15),o.NdJ("historyActionEvent",function(Ze){o.CHM(M);const xn=o.oxw(3);return o.KtG(xn.executeHistoryAction(Ze.entityName,Ze.id))})("resolveDuplicatesEvent",function(Ze){o.CHM(M);const xn=o.oxw(3);return o.KtG(xn.resolveDuplicates(Ze))})("noDuplicateSingleEvent",function(Ze){o.CHM(M);const xn=o.oxw(3);return o.KtG(xn.noDuplicate(Ze))})("noDuplicatesEvent",function(Ze){o.CHM(M);const xn=o.oxw(3);return o.KtG(xn.noDuplicates(Ze))})("deactivateEvent",function(Ze){o.CHM(M);const xn=o.oxw(3);return o.KtG(xn.deactivationEvent(Ze))})("extractSelectionEvent",function(Ze){o.CHM(M);const xn=o.oxw(3);return o.KtG(xn.extractSelectionFromGroup(Ze))})("referencesActionEvent",function(Ze){o.CHM(M);const xn=o.oxw(3);return o.KtG(xn.executeReferencesAction(Ze.entityName,Ze.id))}),o.qZA(),o.YNc(2,df,1,2,"ng-template",null,16,o.W1O),o.qZA()}if(2&N){const M=Lt.$implicit,pe=o.MAs(3);o.uIk("data-scroll-id",M.id),o.xp6(),o.Q6J("candidateEntityName","Event")("duplicateGroup",M)("duplicateContentTemplate",pe)("hasDeactivateAction",!0)}}function wu(N,Lt){if(1&N&&(o.TgZ(0,"mat-list"),o.YNc(1,jf,4,5,"mat-list-item",13),o.qZA()),2&N){const M=o.oxw().ngIf,pe=o.oxw();o.xp6(),o.Q6J("ngForOf",M.items)("ngForTrackBy",pe.trackByItemId)}}function Kf(N,Lt){if(1&N&&(o.TgZ(0,"div"),o.YNc(1,wu,2,2,"mat-list",8),o.qZA()),2&N){const M=Lt.ngIf;o.oxw();const pe=o.MAs(9);o.xp6(),o.Q6J("ngIf",M.items.length>0)("ngIfElse",pe)}}function og(N,Lt){}let Ef=(()=>{class N extends l.AbstractDuplicatesSearchPage{constructor(M,pe,Ze,xn,Si,Ga,xs,vs,bl,Ll,Tc,xc,fu,Nd,gu,pp){super(M,pe,Ze,Si,Ga,xs,bl,Tc,void 0,xc,fu,Ll,void 0,Nd,vs),this.dataAccessService=pp,this.imxEventmanagerPermissions=Us.M,this.imxPermissions=l.ImxPermissions,this.orderField="ID",this.availableOrderFields=[{index:1,field:"ID",i18n:"entity.DuplCandidatesGroup.id",type:l.OrderType.numeric}]}getEntityName(){return"EventDuplCandidatesGroup"}getFilterParams(M){return this.dataAccessService.convertEventDuplicatesClientParamsToRequestParams(M)}getSetStateActionKey(){return"event-action-set_state"}getNoDuplicateActionKey(){return"event-duplicates-action-no_duplicates"}getNoDuplicatesActionKey(){return"event-duplicates-action-no_duplicates"}getExtractSelectionActionKey(){return"event-duplicates-action-extract_to_own_group"}getResolveDuplicatesActionKey(){return"event-duplicates-action-resolve_duplicate_groups"}getDefineDuplicatesActionKey(){return"event-duplicates-action-define_duplicate_groups"}extractSingleActionParams(M){return{eventId:[...M.selectedIds][0]}}extractMultipleActionParams(M){return{eventIds:Array.from(M.selectedIds).join(",")}}reloadDuplicateGroupsId(){return this.dataAccessService.getEventDuplicateGroupIds(this.filter)}reloadCandidate(M){return this.dataAccessService.getEventById(M)}deactivationEvent(M){this.subscribeToActionAndReload(this.callActionExecute("event-duplicates-action-deactivate",M,{eventId:[...M.selectedIds][0]}))}createDuplicatesList(){this.dialog.open(l.ConfirmDialogComponent,{maxWidth:450,data:{title:this.translateService.instant("imxeventmanager.duplicate.edit.dialog-create.header"),text:this.translateService.instant("imxeventmanager.duplicate.edit.dialog-create.warning"),iconClass:"icon-duplicate_event",translated:!0,confirmButtonKey:"imxplatform.dialog.common-confirm"}}).afterClosed().subscribe(pe=>{pe&&this.actionProvider.findActionForKey(this.getDefineDuplicatesActionKey()).execute({}).subscribe(xn=>{xn&&this.userMessageService.showInfo("imxplatform.duplicate.list.action.define-duplicate.background-hint",1e4)})})}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(Wm.S),o.Y36(n.F0),o.Y36(n.gz),o.Y36(s.Yz),o.Y36(l.UserMessageService),o.Y36(l.ListHistoryService),o.Y36(t.uw),o.Y36(l.ActionProviderService),o.Y36(np),o.Y36(I.sK),o.Y36(l.ImxPlatformDataAccessService),o.Y36(l.PlatformTrackingService),o.Y36(l.ConfigurationProvider),o.Y36(l.ObjectListCreationService),o.Y36(s.Xh),o.Y36(yn.b))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["ng-component"]],features:[o.qOj],decls:17,vars:21,consts:[[1,"search-page"],[3,"formHandler","record","orderFields","orderField","orderDirection","orderChanged","applyFilter","resetFilter"],[3,"totalNumber","entityResourceKeyPrefix","isCompactPageHeader","showCompactToggle","reload"],["list-header-button-row",""],[3,"createDuplicatesPermission","resolveDuplicatesPermission","resourcePrefix","duplicateGroupsLoaded","showResolveAllBtn","createDuplicatesList","resolveDuplicatesList"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],[4,"ngIf","ngIfElse"],[3,"showCheckbox","paging","selection","pageChanged","selectAll"],["position","above","halign","start"],["imx-dropup-trigger",""],["mode","indeterminate"],["class","list__item","imxGenericSelector","",4,"ngFor","ngForOf","ngForTrackBy"],["imxGenericSelector","",1,"list__item"],[3,"candidateEntityName","duplicateGroup","duplicateContentTemplate","hasDeactivateAction","historyActionEvent","resolveDuplicatesEvent","noDuplicateSingleEvent","noDuplicatesEvent","deactivateEvent","extractSelectionEvent","referencesActionEvent"],["eventDuplicateContent",""],[3,"duplicateItem","duplicateGroup"]],template:function(pe,Ze){if(1&pe&&(o.TgZ(0,"div",0)(1,"imx-event-filter",1),o.NdJ("orderChanged",function(Si){return Ze.sort(Si)})("applyFilter",function(Si){return Ze.search(Si)})("resetFilter",function(){return Ze.reset()}),o.qZA(),o.TgZ(2,"imx-list-header",2),o.NdJ("reload",function(){return Ze.reloadComplete()}),o.ynx(3,3),o.TgZ(4,"imx-duplicates-button-bar",4),o.NdJ("createDuplicatesList",function(){return Ze.createDuplicatesList()})("resolveDuplicatesList",function(){return Ze.resolveDuplicatesList()}),o.qZA(),o.BQk(),o.qZA(),o.TgZ(5,"imx-grid")(6,"imx-grid-element",5)(7,"imx-generic-slide-in-page"),o.YNc(8,d_,2,0,"ng-template",null,6,o.W1O)(10,zf,1,0,"ng-template",null,7,o.W1O)(12,Kf,2,2,"div",8),o.ALo(13,"async"),o.qZA()()(),o.TgZ(14,"imx-list-footer",9),o.NdJ("pageChanged",function(Si){return Ze.onPageChanged(Si)})("selectAll",function(Si){return Ze.onSelectAll(Si)}),o.TgZ(15,"imx-dropup-button",10),o.YNc(16,og,0,0,"ng-template",11),o.qZA()()()),2&pe){const xn=o.MAs(11);o.xp6(),o.Q6J("formHandler",Ze.filterFormHandler)("record",Ze.filter)("orderFields",Ze.availableOrderFields)("orderField",Ze.orderField)("orderDirection",Ze.orderDirection),o.xp6(),o.Q6J("totalNumber",null==Ze.currentResult?null:Ze.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxeventmanager.duplicate")("isCompactPageHeader",!1)("showCompactToggle",!1),o.xp6(2),o.Q6J("createDuplicatesPermission",Ze.imxEventmanagerPermissions.F_EVENT_DUPLICATES_GENERATE_LIST)("resolveDuplicatesPermission",Ze.imxEventmanagerPermissions.F_EVENT_DUPLICATES_RESOLVE)("resourcePrefix","imxeventmanager.duplicate")("duplicateGroupsLoaded",Ze.duplicateGroupsLoaded$)("showResolveAllBtn",Ze.showResolveAllBtnForEntity("event")),o.xp6(8),o.Q6J("ngIf",o.lcZ(13,19,Ze.results))("ngIfElse",xn),o.xp6(2),o.Q6J("showCheckbox",!1)("paging",Ze.pagingModel)("selection",Ze.selectionModel)}},dependencies:[lm.G,Sm.R,Jm.Ee,Qt.N,Un._,Yt.A,Cp.l,m.sg,m.O5,Xi.i$,Xi.Tg,li.pW,vn.t,Ji.F,wn.M,po.V,Lp,ru,m.Ov],styles:["[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.create-duplicates-btn[_ngcontent-%COMP%]{margin-right:10px}"]})}return N})();var Af=a(17927);function wf(N,Lt){1&N&&o.GkF(0)}function rg(N,Lt){1&N&&o.GkF(0)}function bg(N,Lt){1&N&&o.GkF(0)}function Cg(N,Lt){1&N&&o.GkF(0)}function ag(N,Lt){1&N&&o.GkF(0)}function yg(N,Lt){1&N&&o.GkF(0)}function Pp(N,Lt){1&N&&o.GkF(0)}function m_(N,Lt){1&N&&o.GkF(0)}function Df(N,Lt){1&N&&o.GkF(0)}function Gg(N,Lt){1&N&&o.GkF(0)}function Jg(N,Lt){1&N&&o.GkF(0)}function If(N,Lt){1&N&&o.GkF(0)}function zm(N,Lt){1&N&&o.GkF(0)}function Du(N,Lt){1&N&&o.GkF(0)}function Qp(N,Lt){1&N&&o.GkF(0)}function mu(N,Lt){if(1&N&&o._UZ(0,"imx-form-control",7),2&N){const M=Lt.$implicit,pe=o.oxw();o.Q6J("field",pe.data.formHandler.formConfiguration.findFormFieldById(M))("control",pe.data.formRow.get(M))("form",pe.data.formRow)("formHandler",pe.data.formHandler)("config",pe.data.formHandler.formConfiguration)}}const Vp=()=>({$implicit:"state"}),mp=()=>({$implicit:"loginname"}),$f=()=>({$implicit:"email"}),sg=()=>({$implicit:"interval"}),Sf=()=>({$implicit:"subscriptClients"}),Og=()=>({$implicit:"relevances"}),Pg=()=>({$implicit:"lastname"}),qf=()=>({$implicit:"firstname"}),nx=()=>({$implicit:"phone1"}),lg=()=>({$implicit:"street"}),Ff=()=>({$implicit:"streetNo"}),uh=()=>({$implicit:"zipcode"}),Mg=()=>({$implicit:"city"}),ph=()=>({$implicit:"country"}),_h=()=>({$implicit:"notices"});let Xf=(()=>{class N{constructor(M,pe,Ze,xn,Si){this.data=M,this.configurationProvider=pe,this.runtimeContextService=Ze,this.securityManagerService=xn,this.dialog=Si,this.feasibleClients=[],this.rootClients=[],this.loadFeasibleClients()}ngOnInit(){this.data.formRow.get("state").value===Co.JH.id&&this.data.formRow.disable()}loadFeasibleClients(){this.runtimeContextService.getCurrentAndSubClients().pipe((0,Af.b)(M=>M.forEach(pe=>{(null==pe.parent||!M.has(pe.parent))&&this.rootClients.push(pe)})),(0,rn.U)(M=>{const pe=[];for(const Ze of Array.from(M.values()))pe.push({label:Ze.name,value:Ze.id});return pe.sort((Ze,xn)=>Ze.label.localeCompare(xn.label))})).subscribe(M=>this.feasibleClients=M)}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(t.WI),o.Y36(s.Pc),o.Y36(s.Ze),o.Y36(s.Xh),o.Y36(t.uw))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["ng-component"]],decls:25,vars:48,consts:[["icon","icon-users2","dialogType","form",3,"heading","submitButtonDisabled"],["id","user-mgmt-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"form__content-field-row"],["imxFormControl",""],[3,"field","control","form","formHandler","config"]],template:function(pe,Ze){if(1&pe&&(o.TgZ(0,"imx-dialog",0)(1,"form",1)(2,"div",2)(3,"div",3),o.YNc(4,wf,1,0,"ng-container",4)(5,rg,1,0,"ng-container",4)(6,bg,1,0,"ng-container",4),o.qZA(),o.TgZ(7,"div",3),o.YNc(8,Cg,1,0,"ng-container",4)(9,ag,1,0,"ng-container",4)(10,yg,1,0,"ng-container",4),o.qZA(),o.TgZ(11,"div",3),o.YNc(12,Pp,1,0,"ng-container",4)(13,m_,1,0,"ng-container",4)(14,Df,1,0,"ng-container",4),o.TgZ(15,"div",5),o.YNc(16,Gg,1,0,"ng-container",4)(17,Jg,1,0,"ng-container",4),o.qZA(),o.TgZ(18,"div",5),o.YNc(19,If,1,0,"ng-container",4)(20,zm,1,0,"ng-container",4),o.qZA(),o.YNc(21,Du,1,0,"ng-container",4)(22,Qp,1,0,"ng-container",4),o.qZA()()()(),o.YNc(23,mu,1,5,"ng-template",null,6,o.W1O)),2&pe){const xn=o.MAs(24);o.Q6J("heading","imxeventmanager.pdfSubscriptManagement.dialog.header")("submitButtonDisabled",Ze.data.formRow.pristine||Ze.data.formRow.invalid),o.xp6(),o.Q6J("formGroup",Ze.data.formRow),o.xp6(3),o.Q6J("ngTemplateOutlet",xn)("ngTemplateOutletContext",o.DdM(33,Vp)),o.xp6(),o.Q6J("ngTemplateOutlet",xn)("ngTemplateOutletContext",o.DdM(34,mp)),o.xp6(),o.Q6J("ngTemplateOutlet",xn)("ngTemplateOutletContext",o.DdM(35,$f)),o.xp6(2),o.Q6J("ngTemplateOutlet",xn)("ngTemplateOutletContext",o.DdM(36,sg)),o.xp6(),o.Q6J("ngTemplateOutlet",xn)("ngTemplateOutletContext",o.DdM(37,Sf)),o.xp6(),o.Q6J("ngTemplateOutlet",xn)("ngTemplateOutletContext",o.DdM(38,Og)),o.xp6(2),o.Q6J("ngTemplateOutlet",xn)("ngTemplateOutletContext",o.DdM(39,Pg)),o.xp6(),o.Q6J("ngTemplateOutlet",xn)("ngTemplateOutletContext",o.DdM(40,qf)),o.xp6(),o.Q6J("ngTemplateOutlet",xn)("ngTemplateOutletContext",o.DdM(41,nx)),o.xp6(2),o.Q6J("ngTemplateOutlet",xn)("ngTemplateOutletContext",o.DdM(42,lg)),o.xp6(),o.Q6J("ngTemplateOutlet",xn)("ngTemplateOutletContext",o.DdM(43,Ff)),o.xp6(2),o.Q6J("ngTemplateOutlet",xn)("ngTemplateOutletContext",o.DdM(44,uh)),o.xp6(),o.Q6J("ngTemplateOutlet",xn)("ngTemplateOutletContext",o.DdM(45,Mg)),o.xp6(),o.Q6J("ngTemplateOutlet",xn)("ngTemplateOutletContext",o.DdM(46,ph)),o.xp6(),o.Q6J("ngTemplateOutlet",xn)("ngTemplateOutletContext",o.DdM(47,_h))}},dependencies:[x.a,u.A,m.tP,b._Y,b.JL,b.sg],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}"]})}return N})();var Rp=a(1494),Lf=a(50785);const fh=new l.FormConfiguration([new l.Select("state","entity.PdfSubscriptUser.state",{optionProvider:J_(),extractor:(0,l.pathExtractor)("state"),insertor:(0,l.pathInsertor)("state")}),...(0,l.userNameFields)(),new l.Select("interval","entity.PdfSubscriptUser.interval",{optionProvider:Rf(),extractor:(0,l.pathExtractor)("interval.id"),insertor:(0,l.pathInsertor)("interval.id")}),new l.ListShuffle("subscriptClients","entity.PdfSubscriptUser.subscriptClients",{optionProvider:l.ClientOptionProviderService,extractor:(0,l.arrayValueExtractor)("subscriptClients","id"),insertor:(0,l.arrayValueInsertor)("subscriptClients","id"),renderLabel:!0}),new l.CheckboxSelect("relevances","entity.PdfSubscriptUser.relevances",{optionProvider:Lf.j,extractor:(0,l.arrayValueExtractor)("relevances","id"),insertor:(0,l.arrayValueInsertor)("relevances","id"),renderLabel:!0,rowLayout:!0}),...(0,l.userAddressFields)()]);function J_(){return Co.Jw.map(Lt=>({value:Lt.id,label:"entity.PdfSubscriptUser.state-values."+Lt.name}))}function Rf(){return Co.wm.map(Lt=>({value:Lt.id,label:"entity.PdfSubscriptIntervalType."+Lt.name}))}let cg=(()=>{class N extends l.AbstractFormHandler{constructor(M,pe,Ze,xn){super(fh,void 0,M,pe,xn),this.runtimeContextService=pe,this.imxSecurityManagerService=Ze,this.formatterService=xn}getEntityType(){return"PdfSubscriptUser"}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.LFG(l.NgControlBuilderService),o.LFG(s.Ze),o.LFG(s.Xh),o.LFG(l.FormatterService))};static#t=this.\u0275prov=o.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();const Qg=new l.FormConfiguration([new l.Input("text","fulltext","filter.PdfSubscriptUser.fulltext"),new l.Select("interval","filter.PdfSubscriptUser.interval",{optionProvider:Rf(),placeholder:"imxplatform.common.select-placeholder-any",extractor:(0,l.numberExtractor)("interval"),initialValue:-1}),new l.Select("state","filter.PdfSubscriptUser.state",{optionProvider:J_(),placeholder:"imxplatform.common.select-placeholder-any",extractor:(0,l.numberExtractor)("state"),initialValue:-1}),new l.Select("subscriptClients","entity.PdfSubscriptUser.subscriptClients",{optionProvider:l.ClientOptionProviderService,extractor:(0,l.numberExtractor)("subscriptClients"),insertor:(0,l.pathInsertor)("subscriptClients",!0),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-no-selection"})]);let ix=(()=>{class N extends l.AbstractFormHandler{constructor(M,pe,Ze,xn){super(Qg,void 0,M,pe,xn),this.runtimeContextService=pe,this.imxSecurityManagerService=Ze,this.formatterService=xn}getEntityType(){return"PdfSubscriptUserFilter"}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.LFG(l.NgControlBuilderService),o.LFG(s.Ze),o.LFG(s.Xh),o.LFG(l.FormatterService))};static#t=this.\u0275prov=o.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();function ox(N,Lt){if(1&N&&(o.TgZ(0,"form",1)(1,"div",2)(2,"imx-grid")(3,"imx-grid-element",3),o._UZ(4,"imx-form-control",4),o.qZA(),o.TgZ(5,"imx-grid-element",3),o._UZ(6,"imx-form-control",4),o.qZA(),o.TgZ(7,"imx-grid-element",3),o._UZ(8,"imx-form-control",4),o.qZA(),o.TgZ(9,"imx-grid-element",3),o._UZ(10,"imx-form-control",4),o.qZA()()()()),2&N){const M=o.oxw();o.Q6J("formGroup",M.parentForm),o.xp6(3),o.Q6J("lg_w",6)("sm_w",12),o.xp6(),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("fulltext"))("control",M.formHandler.formGroup.get("fulltext"))("form",M.formHandler.formGroup.get("fulltext"))("formHandler",M.formHandler)("config",M.formHandler.formConfiguration),o.xp6(),o.Q6J("lg_w",6)("sm_w",12),o.xp6(),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("interval"))("control",M.formHandler.formGroup.get("interval"))("form",M.formHandler.formGroup.get("interval"))("formHandler",M.formHandler)("config",M.formHandler.formConfiguration),o.xp6(),o.Q6J("lg_w",6)("sm_w",12),o.xp6(),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("state"))("control",M.formHandler.formGroup.get("state"))("form",M.formHandler.formGroup.get("state"))("formHandler",M.formHandler)("config",M.formHandler.formConfiguration),o.xp6(),o.Q6J("lg_w",6)("sm_w",12),o.xp6(),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("subscriptClients"))("control",M.formHandler.formGroup.get("subscriptClients"))("form",M.formHandler.formGroup.get("subscriptClients"))("formHandler",M.formHandler)("config",M.formHandler.formConfiguration)}}let kf=(()=>{class N extends l.AbstractFilterPanelComponent{constructor(){super(),this.id="MAIN_FILTER",this.titleKey="imxplatform.common-entity.filter.baseEntityFilter.header",this.icon="icon-cube",this.filterFields=["fulltext","interval","state","subscriptClients"]}static#e=this.\u0275fac=function(pe){return new(pe||N)};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-pdf-subscript-user-filter-panel"]],hostAttrs:[1,"imx-pdf-subscript-user-filter-panel"],features:[o._Bn([(0,l.provideParent)(N)]),o.qOj],decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"filter__card"],[3,"lg_w","sm_w"],[3,"field","control","form","formHandler","config"]],template:function(pe,Ze){1&pe&&o.YNc(0,ox,11,29,"form",0),2&pe&&o.Q6J("ngIf",Ze.panelShown)},dependencies:[u.A,m.O5,b._Y,b.JL,b.sg,wn.M,po.V],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}"]})}return N})();function gh(N,Lt){if(1&N&&o._UZ(0,"imx-pdf-subscript-user-filter-panel",2,3),2&N){const M=o.oxw();o.Q6J("pinned",!0)("parentForm",M.formHandler.formGroup)("formHandler",M.formHandler)("record",M.record)}}let dg=(()=>{class N extends l.AbstractEntityFilterComponent{getEntityName(){return"PdfSubscriptUser"}static#e=this.\u0275fac=(()=>{let M;return function(Ze){return(M||(M=o.n5z(N)))(Ze||N)}})();static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-pdf-subscript-user-filter"]],features:[o.qOj],decls:3,vars:7,consts:[[3,"entityName","filterPanelsTemplate","formHandler","record","orderFields","orderField","orderDirection","orderChanged","save"],["filterPanelsTemplate",""],[3,"pinned","parentForm","formHandler","record"],["filterPanel",""]],template:function(pe,Ze){if(1&pe&&(o.TgZ(0,"imx-filter",0),o.NdJ("orderChanged",function(Si){return Ze.orderChanged.emit(Si)})("save",function(Si){return Ze.applyFilter.emit(Si)}),o.YNc(1,gh,2,4,"ng-template",null,1,o.W1O),o.qZA()),2&pe){const xn=o.MAs(2);o.Q6J("entityName","PdfSubscriptUser")("filterPanelsTemplate",xn)("formHandler",Ze.formHandler)("record",Ze.record)("orderFields",Ze.orderFields)("orderField",Ze.orderField)("orderDirection",Ze.orderDirection)}},dependencies:[Vn.z,kf],encapsulation:2})}return N})();function Tg(N,Lt){1&N&&(o.TgZ(0,"imx-list-no-results"),o._uU(1,"imxplatform.pdfSubscriptManagement.list.no-records"),o.qZA())}function hh(N,Lt){1&N&&o._UZ(0,"mat-progress-bar",8)}function Vg(N,Lt){if(1&N&&(o.TgZ(0,"th",15),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&N){const M=Lt.$implicit;o.Udp("width",M.width),o.Q6J("ngClass",M.cssClass),o.xp6(),o.hij(" ",o.lcZ(2,4,M.header)," ")}}function Eg(N,Lt){if(1&N&&(o.TgZ(0,"tr"),o.YNc(1,Vg,3,6,"th",14),o.qZA()),2&N){const M=o.oxw(3);o.xp6(),o.Q6J("ngForOf",M.columnDefinitions)}}const mg=N=>({selected:N});function xh(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"tr",16)(1,"td")(2,"a",17),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.editPdfSubscriptUser(xn))}),o._uU(3),o.qZA()(),o.TgZ(4,"td")(5,"a",17),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.editPdfSubscriptUser(xn))}),o._uU(6),o.ALo(7,"translate"),o.qZA()(),o.TgZ(8,"td",18)(9,"a",17),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.editPdfSubscriptUser(xn))}),o._uU(10),o.qZA()(),o.TgZ(11,"td",18)(12,"a",17),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.editPdfSubscriptUser(xn))}),o._uU(13),o.qZA()(),o.TgZ(14,"td",18)(15,"a",17),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.editPdfSubscriptUser(xn))}),o._uU(16),o.qZA()(),o.TgZ(17,"td",18),o.ALo(18,"translate"),o.TgZ(19,"a",17),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.editPdfSubscriptUser(xn))}),o._uU(20),o.ALo(21,"translate"),o.qZA()(),o.TgZ(22,"td",18)(23,"a",17),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.editPdfSubscriptUser(xn))}),o._uU(24),o.qZA()(),o.TgZ(25,"td",18)(26,"a",17),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.editPdfSubscriptUser(xn))}),o._uU(27),o.qZA()(),o.TgZ(28,"td",18)(29,"a",17),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.editPdfSubscriptUser(xn))}),o._uU(30),o.qZA()(),o.TgZ(31,"td",18)(32,"a",17),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.editPdfSubscriptUser(xn))}),o._uU(33),o.qZA()(),o.TgZ(34,"td")(35,"imx-dropup-button")(36,"imx-action-menu")(37,"imx-action-menu-item",19),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.editPdfSubscriptUser(xn))}),o._uU(38," imxplatform.common-entity.list.edit "),o.qZA(),o.TgZ(39,"imx-action-menu-item",20),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.deletePdfSubscriptUser(xn))}),o._uU(40," imxplatform.common-entity.list.remove "),o.qZA()()()()()}if(2&N){const M=Lt.$implicit,pe=o.oxw(3);o.Q6J("ngClass",o.VKq(33,mg,pe.isItemSelected(M.id))),o.xp6(3),o.hij(" ",M.id," "),o.xp6(3),o.hij(" ",o.lcZ(7,27,"entity.PdfSubscriptUser.state-values."+pe.stateTranslation.get(M.state))," "),o.xp6(2),o.Q6J("matTooltip",M.loginname)("matTooltipShowDelay",500),o.xp6(2),o.hij(" ",M.loginname," "),o.xp6(),o.Q6J("matTooltip",M.token)("matTooltipShowDelay",500),o.xp6(2),o.hij(" ",M.token," "),o.xp6(),o.Q6J("matTooltip",M.address.email)("matTooltipShowDelay",500),o.xp6(2),o.hij(" ",M.address.email," "),o.xp6(),o.Q6J("matTooltip",o.lcZ(18,29,"entity.PdfSubscriptIntervalType."+pe.intervalTranslation.get(M.interval.id)))("matTooltipShowDelay",500),o.xp6(3),o.hij(" ",o.lcZ(21,31,"entity.PdfSubscriptIntervalType."+pe.intervalTranslation.get(M.interval.id))," "),o.xp6(2),o.Q6J("matTooltip",pe.renderNamedDataObjects(M.subscriptClients))("matTooltipShowDelay",500),o.xp6(2),o.hij(" ",pe.renderNamedDataObjects(M.subscriptClients)," "),o.xp6(),o.Q6J("matTooltip",pe.renderRelevances(M.relevances))("matTooltipShowDelay",500),o.xp6(2),o.hij(" ",pe.renderRelevances(M.relevances)," "),o.xp6(),o.Q6J("matTooltip",M.lastname)("matTooltipShowDelay",500),o.xp6(2),o.hij(" ",M.lastname," "),o.xp6(),o.Q6J("matTooltip",M.firstname)("matTooltipShowDelay",500),o.xp6(2),o.hij(" ",M.firstname," ")}}function Nf(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"p-table",11),o.YNc(2,Eg,2,1,"ng-template",12)(3,xh,41,35,"ng-template",13),o.qZA(),o.BQk()),2&N){const M=o.oxw().ngIf;o.xp6(),o.Q6J("value",M.items)("resizableColumns",!0)}}function Uf(N,Lt){if(1&N&&(o.TgZ(0,"div",9),o.YNc(1,Nf,4,2,"ng-container",10),o.qZA()),2&N){const M=Lt.ngIf;o.oxw();const pe=o.MAs(6);o.xp6(),o.Q6J("ngIf",M.items.length>0)("ngIfElse",pe)}}const Q_="PdfSubscriptUser";let ug=(()=>{class N extends l.AbstractSimpleEntitySearchPage{constructor(M,pe,Ze,xn,Si,Ga,xs,vs,bl,Ll,Tc,xc,fu,Nd,gu){super(M,pe,Ze,xn,Si,Ga,xs,vs,bl,Ll,Tc,void 0,xc,void 0,{moduleName:l.CORE_MODULE_KEY,entityName:Q_}),this.filterFormHandler=xs,this.pdfSubscriptUserFormHandlerService=fu,this.eventmanagerDataAccessService=Nd,this.platformMgmtDataAccessService=gu,this.stateTranslation=new Map([[0,"requested"],[10,"confirmed"],[20,"unsubscribed"]]),this.intervalTranslation=new Map([[1,"weekly"],[2,"monthly"]]),this.orderField="ID",this.availableOrderFields=[{index:1,field:"ID",i18n:"entity.DataObject.id",type:l.OrderType.numeric},{index:2,field:"state",i18n:"entity.PdfSubscriptUser.state",type:l.OrderType.numeric},{index:2,field:"loginname",i18n:"entity.User.loginname",type:l.OrderType.alphanumeric}],this.columnDefinitions=[{field:"id",header:"ID",width:"5%"},{field:"state",header:"entity.PdfSubscriptUser.state",width:"5%"},{field:"loginname",header:"entity.User.loginname",width:"15%"},{field:"token",header:"entity.PdfSubscriptUser.token",width:"10%"},{field:"email",header:"entity.User.address.email",width:"10%"},{field:"interval",header:"entity.PdfSubscriptUser.interval",width:"5%"},{field:"subscriptClients",header:"entity.PdfSubscriptUser.subscriptClients",width:"15%"},{field:"relevances",header:"entity.PdfSubscriptUser.relevances",width:"10%"},{field:"lastname",header:"entity.User.lastname",width:"5%"},{field:"firstname",header:"entity.User.firstname",width:"5%"},{field:"action",header:"",width:"5%",cssClass:"action-column"}]}getFilterPredicates(){return[(N,Lt)=>!Lt.fulltext||N.loginname.toLowerCase().includes(Lt.fulltext.toLowerCase())||N.firstname&&N.firstname.toLowerCase().includes(Lt.fulltext.toLowerCase())||N.lastname&&N.lastname.toLowerCase().includes(Lt.fulltext.toLowerCase())||N.address.email&&N.address.email.toLowerCase().includes(Lt.fulltext.toLowerCase()),(0,l.filterByPath)("interval","interval.id"),(0,l.filterByPath)("state","state"),(0,l.filterByArrayValue)("subscriptClients","id",!0)]}getSortPredicates(){const M=new Map;return M.set("ID",(pe,Ze)=>pe.id-Ze.id),M.set("status",(pe,Ze)=>pe.state-Ze.state),M.set("loginname",(pe,Ze)=>pe.loginname.localeCompare(Ze.loginname)),M}getEntityName(){return Q_}editPdfSubscriptUser(M){this.pdfSubscriptUserFormHandlerService.baseObject=M,this.dialog.open(Xf,{minWidth:600,data:{formRow:this.pdfSubscriptUserFormHandlerService.formGroup,formHandler:this.pdfSubscriptUserFormHandlerService}}).afterClosed().subscribe(pe=>{if(pe){const Ze=this.pdfSubscriptUserFormHandlerService.getBaseObjectCopyWithCurrentFormValues();this.eventmanagerDataAccessService.updatePdfSubscriptUser(Ze).subscribe(()=>{this.recordsOnceLoaded=!1,this.reloadData(),this.userMessageService.showInfo("imxeventmanager.pdfSubscriptManagement.dialog-edit.success")},xn=>{this.userMessageService.showError(xn||"imxeventmanager.pdfSubscriptManagement.dialog-edit.failure")})}})}deletePdfSubscriptUser(M){this.dialog.open(l.DeleteDialogComponent,{...l.DialogDefaultSizes.FORM_SMALL,data:{i18n:"imxeventmanager.pdfSubscriptManagement.action.delete.confirm",dialogTitle:"imxeventmanager.pdfSubscriptManagement.action.delete.title",objectId:M.id}}).afterClosed().subscribe(Ze=>{Ze&&this.platformMgmtDataAccessService.deleteUser(M.id).subscribe(()=>{this.recordsOnceLoaded=!1,this.reloadData(),this.userMessageService.showInfo("imxplatform.user-mgmt.dialog-delete.success")},xn=>{this.userMessageService.showError(xn||"imxplatform.user-mgmt.dialog-delete.failure")})})}sendPDF(M){}renderNamedDataObjects(M){return M.map(pe=>pe.name).join(", ")}renderRelevances(M){return M.map(pe=>pe.name).map(pe=>this.translateService.instant("entity.Relevance."+pe)).join(", ")}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(Rp.h),o.Y36(n.F0),o.Y36(n.gz),o.Y36(l.UserMessageService),o.Y36(l.ListHistoryService),o.Y36(t.uw),o.Y36(ix),o.Y36(l.ImxPlatformDataAccessService),o.Y36(l.PlatformTrackingService),o.Y36(l.SearchPageDefaultsService),o.Y36(l.ImxEntitiesMgrService),o.Y36(I.sK),o.Y36(cg),o.Y36(yn.b),o.Y36(l.ImxPlatformMgmtDataAccessService))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["ng-component"]],features:[o.qOj],decls:12,vars:14,consts:[[1,"base-entity-search","list"],[3,"formHandler","record","orderFields","orderField","orderDirection","orderChanged","applyFilter","resetFilter"],[3,"totalNumber","entityResourceKeyPrefix","showCompactToggle","reload"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],["class","table-wrapper",4,"ngIf","ngIfElse"],[3,"paging","showCheckbox","pageChanged"],["mode","indeterminate"],[1,"table-wrapper"],[4,"ngIf","ngIfElse"],[1,"imx-datatable",3,"value","resizableColumns"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",3,"ngClass"],[3,"ngClass"],[1,"txt-link",3,"click"],[3,"matTooltip","matTooltipShowDelay"],["icon","icon-pencil",3,"click"],["icon","icon-trash","additionalStyle","delete",3,"click"]],template:function(pe,Ze){if(1&pe&&(o.TgZ(0,"div",0)(1,"imx-pdf-subscript-user-filter",1),o.NdJ("orderChanged",function(Si){return Ze.sort(Si)})("applyFilter",function(Si){return Ze.search(Si)})("resetFilter",function(){return Ze.reset()}),o.qZA(),o.TgZ(2,"imx-list-header",2),o.NdJ("reload",function(){return Ze.reloadComplete()}),o.qZA(),o.TgZ(3,"imx-grid")(4,"imx-grid-element",3),o.YNc(5,Tg,2,0,"ng-template",null,4,o.W1O)(7,hh,1,0,"ng-template",null,5,o.W1O)(9,Uf,2,2,"div",6),o.ALo(10,"async"),o.qZA()(),o.TgZ(11,"imx-list-footer",7),o.NdJ("pageChanged",function(Si){return Ze.onPageChanged(Si)}),o.qZA()()),2&pe){const xn=o.MAs(8);o.xp6(),o.Q6J("formHandler",Ze.filterFormHandler)("record",Ze.filter)("orderFields",Ze.availableOrderFields)("orderField",Ze.orderField)("orderDirection",Ze.orderDirection),o.xp6(),o.Q6J("totalNumber",null==Ze.currentResult?null:Ze.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxeventmanager.pdfSubscriptManagement")("showCompactToggle",!1),o.xp6(7),o.Q6J("ngIf",o.lcZ(10,12,Ze.results))("ngIfElse",xn),o.xp6(2),o.Q6J("paging",Ze.pagingModel)("showCheckbox",!1)}},dependencies:[Qt.N,Un._,Yt.A,ee.F,m.mk,m.sg,m.O5,li.pW,si.gM,oo.iA,_o.jx,oo.Q7,Hn.p,mo.z,vn.t,wn.M,po.V,dg,m.Ov,I.X$],styles:[".imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.base-entity-search[_ngcontent-%COMP%]{padding-bottom:50px;padding-top:50px}.base-entity-search[_ngcontent-%COMP%]   .icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.base-entity-search[_ngcontent-%COMP%]   .selected-size[_ngcontent-%COMP%]{color:#3e3e3e}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}[_nghost-%COMP%]     .imx-datatable tr, [_nghost-%COMP%]     .imx-datatable td{text-overflow:unset!important;white-space:unset!important}"]})}return N})();var V_=a(69862),Bf=a(82621),Tt=a(42094);function zt(N,Lt){1&N&&o.GkF(0)}function on(N,Lt){1&N&&o.GkF(0)}function hn(N,Lt){1&N&&o.GkF(0)}function Gn(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"div",21)(1,"button",22),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw();return o.KtG(Ze.removeCurrentImage("keyvisualImages"))}),o._UZ(2,"i",23),o._uU(3),o.ALo(4,"translate"),o.qZA()()}2&N&&(o.xp6(3),o.hij(" ",o.lcZ(4,1,"imxplatform.dialog.image-delete"),""))}function Gi(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"div",24)(2,"figure")(3,"picture"),o._UZ(4,"img",25),o.qZA()()(),o.BQk()),2&N){const M=o.oxw();o.xp6(4),o.Q6J("src",M.filterFormControlByObjectLanguage("keyvisualImages",M.objectLanguage).get("deeplink").value,o.LSH)}}function Po(N,Lt){if(1&N&&(o.ynx(0),o._UZ(1,"imx-base-read-only",26),o.BQk()),2&N){const M=o.oxw();o.xp6(),o.Q6J("label","entity.WhlPortalWidgetConfig.fileName")("customModel",M.filterFormControlByObjectLanguage("keyvisualImages",M.objectLanguage).get("fileName").value)}}function er(N,Lt){1&N&&o.GkF(0)}function Tr(N,Lt){1&N&&(o.TgZ(0,"p",27),o._uU(1,"imxplatform.common.no-records"),o.qZA())}function va(N,Lt){1&N&&o._UZ(0,"tr",39)}function gl(N,Lt){1&N&&o._UZ(0,"tr",40)}function Fl(N,Lt){if(1&N&&(o.TgZ(0,"th",41),o._uU(1),o.qZA()),2&N){const M=o.oxw(2);o.xp6(),o.Oqu(M.data.formHandler.getFormFieldLabel("footerLinkTargets:i18nName"))}}function Zl(N,Lt){if(1&N&&(o.TgZ(0,"td",42),o._UZ(1,"imx-form-control",43),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(2);o.Q6J("formGroup",M),o.xp6(),o.Q6J("field",pe.data.formHandler.formConfiguration.findFormFieldById("footerLinkTargets:i18nName"))("control",M.controls.i18nName)("form",pe.data.formHandler.formGroup.get("footerLinkTargets"))("formHandler",pe.data.formHandler)("config",pe.data.formHandler.formConfiguration)}}function is(N,Lt){if(1&N&&(o.TgZ(0,"th",41),o._uU(1),o.qZA()),2&N){const M=o.oxw(2);o.xp6(),o.Oqu(M.data.formHandler.getFormFieldLabel("footerLinkTargets:target"))}}function Yc(N,Lt){if(1&N&&(o.TgZ(0,"td",42),o._UZ(1,"imx-form-control",43),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(2);o.Q6J("formGroup",M),o.xp6(),o.Q6J("field",pe.data.formHandler.formConfiguration.findFormFieldById("footerLinkTargets:target"))("control",M.controls.target)("form",pe.data.formHandler.formGroup.get("footerLinkTargets"))("formHandler",pe.data.formHandler)("config",pe.data.formHandler.formConfiguration)}}function Yd(N,Lt){if(1&N&&(o.TgZ(0,"th",41),o._uU(1),o.qZA()),2&N){const M=o.oxw(2);o.xp6(),o.Oqu(M.data.formHandler.getFormFieldLabel("footerLinkTargets:openInNewPage"))}}function cm(N,Lt){if(1&N&&(o.TgZ(0,"td",42),o._UZ(1,"imx-form-control",43),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(2);o.Q6J("formGroup",M),o.xp6(),o.Q6J("field",pe.data.formHandler.formConfiguration.findFormFieldById("footerLinkTargets:openInNewPage"))("control",M.controls.openInNewPage)("form",pe.data.formHandler.formGroup.get("footerLinkTargets"))("formHandler",pe.data.formHandler)("config",pe.data.formHandler.formConfiguration)}}function jm(N,Lt){1&N&&o._UZ(0,"th",44)}function up(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"td",45)(1,"a",46),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(2);return o.KtG(Si.removeNewFooterLinkTarget(xn))}),o.qZA()()}2&N&&o.Q6J("formGroup",Lt.$implicit)}function T_(N,Lt){if(1&N&&(o.TgZ(0,"table",28),o.YNc(1,va,1,0,"tr",29)(2,gl,1,0,"tr",30),o.ynx(3,31),o.YNc(4,Fl,2,1,"th",32)(5,Zl,2,6,"td",33),o.BQk(),o.ynx(6,34),o.YNc(7,is,2,1,"th",32)(8,Yc,2,6,"td",33),o.BQk(),o.ynx(9,35),o.YNc(10,Yd,2,1,"th",32)(11,cm,2,6,"td",33),o.BQk(),o.ynx(12,36),o.YNc(13,jm,1,0,"th",37)(14,up,2,1,"td",38),o.BQk(),o.qZA()),2&N){const M=o.oxw();o.Q6J("dataSource",M.footerLinkTargetsDataSource),o.xp6(),o.Q6J("matHeaderRowDef",M.footerLinkTargetsColumns),o.xp6(),o.Q6J("matRowDefColumns",M.footerLinkTargetsColumns)}}function u_(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"div",21)(1,"button",22),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw();return o.KtG(Ze.removeCurrentImage("mobileLogos"))}),o._UZ(2,"i",23),o._uU(3),o.ALo(4,"translate"),o.qZA()()}2&N&&(o.xp6(3),o.hij(" ",o.lcZ(4,1,"imxplatform.dialog.image-delete"),""))}function kp(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"div",24)(2,"figure")(3,"picture"),o._UZ(4,"img",25),o.qZA()()(),o.BQk()),2&N){const M=o.oxw();o.xp6(4),o.Q6J("src",M.filterFormControlByObjectLanguage("mobileLogos",M.objectLanguage).get("deeplink").value,o.LSH)}}function p_(N,Lt){if(1&N&&(o.ynx(0),o._UZ(1,"imx-base-read-only",26),o.BQk()),2&N){const M=o.oxw();o.xp6(),o.Q6J("label","entity.WhlPortalWidgetConfig.fileName")("customModel",M.filterFormControlByObjectLanguage("mobileLogos",M.objectLanguage).get("fileName").value)}}function Wd(N,Lt){1&N&&o.GkF(0)}function Zf(N,Lt){1&N&&o.GkF(0)}function Hf(N,Lt){1&N&&o.GkF(0)}function Yp(N,Lt){1&N&&o.GkF(0)}function Lr(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"div",21)(1,"button",22),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw();return o.KtG(Ze.removeCurrentFavIcon())}),o._UZ(2,"i",23),o._uU(3),o.ALo(4,"translate"),o.qZA()()}2&N&&(o.xp6(3),o.hij(" ",o.lcZ(4,1,"imxplatform.dialog.image-delete"),""))}function Ha(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"div",24)(2,"figure")(3,"picture"),o._UZ(4,"img",25),o.qZA()()(),o.BQk()),2&N){const M=o.oxw();o.xp6(4),o.Q6J("src",M.data.formRow.get("favIcon").value,o.LSH)}}function ws(N,Lt){if(1&N&&(o.ynx(0),o._UZ(1,"imx-base-read-only",26),o.BQk()),2&N){const M=o.oxw();o.xp6(),o.Q6J("label","entity.WhlPortalWidgetConfig.fileName")("customModel",M.data.formHandler.formGroup.get("favIcon").value)}}function cl(N,Lt){1&N&&o.GkF(0)}function Wl(N,Lt){1&N&&o.GkF(0)}function vl(N,Lt){1&N&&o.GkF(0)}function hc(N,Lt){1&N&&o.GkF(0)}function dd(N,Lt){1&N&&o.GkF(0)}function Fc(N,Lt){1&N&&o.GkF(0)}function Hl(N,Lt){if(1&N&&o._UZ(0,"imx-form-control",43),2&N){const M=Lt.$implicit,pe=o.oxw();o.Q6J("field",pe.data.formHandler.formConfiguration.findFormFieldById(M))("control",pe.data.formRow.get(M))("form",pe.data.formRow)("formHandler",pe.data.formHandler)("config",pe.data.formHandler.formConfiguration)}}const uu=()=>({$implicit:"name"}),Y_=()=>({$implicit:"client"}),W_=()=>({$implicit:"deliveryChannel"}),E_=()=>({$implicit:"keyvisualCopyright"}),mf=()=>({$implicit:"disclaimerLinkTarget.i18nName"}),Np=()=>({$implicit:"disclaimerLinkTarget.target"}),uf=()=>({$implicit:"disclaimerLinkTarget.openInNewPage"}),z_=()=>({$implicit:"browserTitle"}),pf=()=>({$implicit:"showCopyrightConfirmedImagesOnly"}),Gf=()=>({$implicit:"showCopyrightConfirmedTextsOnly"}),vh=()=>({$implicit:"disclaimerTitle"}),pg=()=>({$implicit:"disclaimerContent"}),j_=()=>({$implicit:"legalDisclosureTitle"}),Yg=()=>({$implicit:"legalDisclosureContent"});let Jf=(()=>{class N{constructor(M){this.data=M,this.rootClients=[],this.footerLinkTargetsColumns=["i18nName","target","openInNewPage","removeColumn"],this.destroy$=new cs.xQ}ngOnInit(){this.title=this.data.formRow.get("id").value?"ID: "+this.data.formRow.get("id").value:"NEU",this.footerLinkTargetsDataSource=(0,l.prepareTable)(this.data.formHandler.formGroup.get("footerLinkTargets"),M=>this.footerLinkTargetsDataSource=M,this.destroy$),this.data.formHandler.formLanguage.getEditLanguageAsObservable().subscribe(M=>{this.objectLanguage=M})}filterFormControlByObjectLanguage(M,pe){return this.data.formHandler.formGroup.get(M).controls.find(Ze=>Ze.value.language.id===pe.id)}removeFormControlByObjectLanguage(M,pe){const Ze=this.data.formHandler.formGroup.get(M).controls.findIndex(xn=>xn.value.language.id!==pe.id);this.data.formHandler.removeLineFromCollection(M,Ze)}addNewFooterLinkTarget(){this.data.formHandler.addNewCollectionRow("footerLinkTargets")}removeNewFooterLinkTarget(M){this.data.formHandler.removeLineFromCollection("footerLinkTargets",this.footerLinkTargetsDataSource.filteredData.indexOf(M),this.data.formHandler.formGroup)}uploadComplete(M,pe){if(M&&!(M instanceof V_.UA)&&!M[0].exception&&this.data.formHandler.formGroup){let Ze;Ze=void 0===this.filterFormControlByObjectLanguage(pe,this.objectLanguage)?this.data.formHandler.addNewCollectionRow(pe):this.filterFormControlByObjectLanguage(pe,this.objectLanguage),Ze.get("fileName").setValue(M[0].processResult.fileName),Ze.get("language").setValue(this.objectLanguage),Ze.get("deeplink").setValue(M[0].processResult.fileUrl)}}removeCurrentImage(M){void 0!==this.filterFormControlByObjectLanguage(M,this.objectLanguage)&&this.removeFormControlByObjectLanguage(M,this.objectLanguage)}removeCurrentFavIcon(){this.data.formRow.get("favIcon").setValue(null),this.data.formRow.get("favIcon").markAsDirty()}uploadFavIconComplete(M){M&&!(M instanceof V_.UA)&&(M[0].exception||this.data.formHandler.formGroup&&M[0].processResult.fileUrl&&(this.data.formHandler.formGroup.get("favIcon").setValue(M[0].processResult.fileUrl),this.data.formHandler.formGroup.get("favIcon").markAsDirty()))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(t.WI))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["ng-component"]],decls:74,vars:76,consts:[["icon","icon-whiteLabel","dialogType","form",3,"heading","subline","submitButtonDisabled"],["form-header","",3,"formHandler"],["id","whl-portal-config-mgmt-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["title","imxplatform.navigation.show-config"],["translate",""],[1,"form__content-row"],[1,"form__content-group"],[1,"image-upload-wrapper"],[3,"type","headerText","allowedFileTypes","allowMultipleFiles","autoUpload","uploadComplete"],["class","image-upload-wrapper__remove",4,"ngIf"],[4,"ngIf"],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[1,"imx-button","prio2",3,"click"],["title","entity.WhlPortalWidgetConfig.dataProtection"],["title","entity.WhlPortalWidgetConfig.legalDisclosure"],["imxFormControl",""],[1,"image-upload-wrapper__remove"],[1,"imx-button","prio3","file-remove-button",3,"click"],[1,"icon","icon-trash"],[1,"image-upload-wrapper__image"],["alt","",3,"src"],[3,"label","customModel"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","i18nName"],["mat-header-cell","","class","date","translate","",4,"matHeaderCellDef"],["mat-cell","","class","date",3,"formGroup",4,"matCellDef"],["matColumnDef","target"],["matColumnDef","openInNewPage"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","","translate","",1,"date"],["mat-cell","",1,"date",3,"formGroup"],[3,"field","control","form","formHandler","config"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"]],template:function(pe,Ze){if(1&pe&&(o.TgZ(0,"imx-dialog",0),o._UZ(1,"imx-language-switch-button",1),o.TgZ(2,"form",2)(3,"div",3)(4,"div",4),o.YNc(5,zt,1,0,"ng-container",5)(6,on,1,0,"ng-container",5)(7,hn,1,0,"ng-container",5),o.qZA(),o.TgZ(8,"imx-accordion")(9,"imx-accordion-panel",6)(10,"h3",7),o._uU(11,"entity.WhlPortalConfig.keyvisual"),o.qZA(),o.TgZ(12,"div",8)(13,"div",9)(14,"div",10)(15,"imx-base-upload",11),o.NdJ("uploadComplete",function(Si){return Ze.uploadComplete(Si,"keyvisualImages")}),o.qZA(),o.YNc(16,Gn,5,3,"div",12)(17,Gi,5,1,"ng-container",13),o.qZA(),o.YNc(18,Po,2,2,"ng-container",13)(19,er,1,0,"ng-container",5),o.qZA()(),o.TgZ(20,"h3",7),o._uU(21,"entity.WhlPortalWidgetConfig.footerLinks"),o.qZA(),o.TgZ(22,"div",8)(23,"div",9),o.YNc(24,Tr,2,0,"ng-template",null,14,o.W1O),o.TgZ(26,"div",15),o.YNc(27,T_,15,3,"table",16),o.qZA(),o.TgZ(28,"button",17),o.NdJ("click",function(){return Ze.addNewFooterLinkTarget()}),o._uU(29),o.ALo(30,"translate"),o.qZA()()(),o.TgZ(31,"h3",7),o._uU(32,"entity.WhlPortalConfig.mobileLogos"),o.qZA(),o.TgZ(33,"div",8)(34,"div",9)(35,"div",4)(36,"div",10)(37,"imx-base-upload",11),o.NdJ("uploadComplete",function(Si){return Ze.uploadComplete(Si,"mobileLogos")}),o.qZA(),o.YNc(38,u_,5,3,"div",12)(39,kp,5,1,"ng-container",13),o.qZA(),o.YNc(40,p_,2,2,"ng-container",13),o.qZA(),o.TgZ(41,"div",8),o.YNc(42,Wd,1,0,"ng-container",5)(43,Zf,1,0,"ng-container",5)(44,Hf,1,0,"ng-container",5),o.qZA()()(),o.TgZ(45,"div",8)(46,"div",9),o.YNc(47,Yp,1,0,"ng-container",5),o.TgZ(48,"div",10)(49,"imx-base-upload",11),o.NdJ("uploadComplete",function(Si){return Ze.uploadFavIconComplete(Si)}),o.qZA(),o.YNc(50,Lr,5,3,"div",12)(51,Ha,5,1,"ng-container",13),o.qZA(),o.YNc(52,ws,2,2,"ng-container",13),o.qZA()()(),o.TgZ(53,"imx-accordion-panel",18)(54,"div",8)(55,"div",9)(56,"div",8),o.YNc(57,cl,1,0,"ng-container",5)(58,Wl,1,0,"ng-container",5),o.qZA()()(),o.TgZ(59,"h3",7),o._uU(60,"imxeventmanager.whl-portal-config.dialog.disclaimer"),o.qZA(),o.TgZ(61,"div",8)(62,"div",9),o.YNc(63,vl,1,0,"ng-container",5)(64,hc,1,0,"ng-container",5),o.qZA()()(),o.TgZ(65,"imx-accordion-panel",19)(66,"h3",7),o._uU(67,"imxeventmanager.whl-portal-config.dialog.legalDisclosure"),o.qZA(),o.TgZ(68,"div",8)(69,"div",9),o.YNc(70,dd,1,0,"ng-container",5)(71,Fc,1,0,"ng-container",5),o.qZA()()()()()()(),o.YNc(72,Hl,1,5,"ng-template",null,20,o.W1O)),2&pe){const xn=o.MAs(25),Si=o.MAs(73);o.Q6J("heading","entity.WhlPortalConfig.entityName")("subline",Ze.title)("submitButtonDisabled",Ze.data.formRow.invalid||Ze.data.formRow.pristine),o.xp6(),o.Q6J("formHandler",Ze.data.formHandler),o.xp6(),o.Q6J("formGroup",Ze.data.formRow),o.xp6(3),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(62,uu)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(63,Y_)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(64,W_)),o.xp6(8),o.Q6J("type","whlLogoUpload")("headerText","imxeventmanager.whl-portal-config.dialog.keyvisualImagesUpload")("allowedFileTypes",".jpg,.png")("allowMultipleFiles",!1)("autoUpload",!0),o.xp6(),o.Q6J("ngIf",Ze.filterFormControlByObjectLanguage("keyvisualImages",Ze.objectLanguage)&&Ze.filterFormControlByObjectLanguage("keyvisualImages",Ze.objectLanguage).get("deeplink").value),o.xp6(),o.Q6J("ngIf",Ze.filterFormControlByObjectLanguage("keyvisualImages",Ze.objectLanguage)&&Ze.filterFormControlByObjectLanguage("keyvisualImages",Ze.objectLanguage).get("deeplink").value),o.xp6(),o.Q6J("ngIf",Ze.filterFormControlByObjectLanguage("keyvisualImages",Ze.objectLanguage)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(65,E_)),o.xp6(8),o.Q6J("ngIf",Ze.footerLinkTargetsDataSource&&Ze.footerLinkTargetsDataSource.data.length>0)("ngIfElse",xn),o.xp6(2),o.Oqu(o.lcZ(30,60,"entity.WhlPortalConfig.footerLinkTargets.new")),o.xp6(8),o.Q6J("type","whlLogoUpload")("headerText","imxeventmanager.whl-portal-config.dialog.mobileLogosUpload")("allowedFileTypes",".jpg,.png")("allowMultipleFiles",!1)("autoUpload",!0),o.xp6(),o.Q6J("ngIf",Ze.filterFormControlByObjectLanguage("mobileLogos",Ze.objectLanguage)&&Ze.filterFormControlByObjectLanguage("mobileLogos",Ze.objectLanguage).get("deeplink").value),o.xp6(),o.Q6J("ngIf",Ze.filterFormControlByObjectLanguage("mobileLogos",Ze.objectLanguage)&&Ze.filterFormControlByObjectLanguage("mobileLogos",Ze.objectLanguage).get("deeplink").value),o.xp6(),o.Q6J("ngIf",Ze.filterFormControlByObjectLanguage("mobileLogos",Ze.objectLanguage)),o.xp6(2),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(66,mf)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(67,Np)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(68,uf)),o.xp6(3),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(69,z_)),o.xp6(2),o.Q6J("type","whlLogoUpload")("headerText","entity.WhlPortalConfig.favIcon")("allowedFileTypes",".jpg,.png")("allowMultipleFiles",!1)("autoUpload",!0),o.xp6(),o.Q6J("ngIf",Ze.data.formRow.get("favIcon").value),o.xp6(),o.Q6J("ngIf",Ze.data.formRow.get("favIcon").value),o.xp6(),o.Q6J("ngIf",Ze.data.formHandler.formGroup.get("favIcon").value),o.xp6(5),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(70,pf)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(71,Gf)),o.xp6(5),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(72,vh)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(73,pg)),o.xp6(6),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(74,j_)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(75,Yg))}},dependencies:[Bm.Q,Bf.B,x.a,u.A,Tt.H,ee.F,m.O5,m.tP,b._Y,b.JL,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,b.sg,I.Pi,ue.Z,ge.U,I.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.header-right[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:flex-end}.header-right[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{margin-right:10px}.mat-mdc-cell[_ngcontent-%COMP%]{padding:0 13px}.form__content-group[_ngcontent-%COMP%] > .form__content-row[_ngcontent-%COMP%]{align-items:center}.form__content-group[_ngcontent-%COMP%] > .form__content-row[_ngcontent-%COMP%] > .imx-form-control[_ngcontent-%COMP%]{margin-right:26px}.file-choose-row[_ngcontent-%COMP%]{margin-bottom:15px;display:flex}.file-choose-row[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{margin-right:10px}.file-choose-row[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]   .imx-button.with-icon[_ngcontent-%COMP%]{line-height:34px}.file-choose-row[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]   .imx-button.with-icon[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:14px;top:calc(50% - 6px)}.file-choose-row[_ngcontent-%COMP%]   .inputfile[_ngcontent-%COMP%]{width:.1px;height:.1px;opacity:0;overflow:hidden;position:absolute;z-index:-1}.image-upload-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.image-upload-wrapper__remove[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end}.image-upload-wrapper__remove[_ngcontent-%COMP%] > .file-remove-button[_ngcontent-%COMP%]{margin-bottom:15px}.image-upload-wrapper__image[_ngcontent-%COMP%]{width:120px}.image-upload-wrapper__image[_ngcontent-%COMP%] > figure[_ngcontent-%COMP%]{height:0;padding-bottom:100%;position:relative}.image-upload-wrapper__image[_ngcontent-%COMP%] > figure[_ngcontent-%COMP%] > picture[_ngcontent-%COMP%]{display:block;height:100%;position:absolute;width:100%}.image-upload-wrapper__image[_ngcontent-%COMP%] > figure[_ngcontent-%COMP%] > picture[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{height:100%;object-fit:cover;width:100%}"]})}return N})();var wg=a(2032),Wg=a(64170);let rx=(()=>{class N{constructor(M,pe,Ze){this.data=M,this.dialogRef=pe,this.eventmanagerDataAccessService=Ze}ngOnInit(){this.stylingFormControl=new b.p4,this.eventmanagerDataAccessService.getWhlPortalConfigStylingById(this.data.whlPortalConfigId).subscribe(M=>this.stylingFormControl.setValue(M))}onConfirm(){this.eventmanagerDataAccessService.updateWhlPortalConfigStyling(this.data.whlPortalConfigId,this.stylingFormControl.value).subscribe(M=>this.stylingFormControl.setValue(M)),this.dialogRef.close(null)}onCancel(){this.dialogRef.close(null)}onReset(){this.eventmanagerDataAccessService.getDefaultWhlPortalConfigStyling().subscribe(M=>this.stylingFormControl.setValue(M))}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(t.WI),o.Y36(t.so),o.Y36(yn.b))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["ng-component"]],decls:22,vars:6,consts:[["mat-dialog-title","","cdkDrag","","cdkDragRootElement",".cdk-overlay-pane","cdkDragHandle","",1,"dialog-header-wrapper"],[1,"dialog-close",3,"click"],[1,"icon","icon-crossBold"],[1,"dialog-header"],[1,"dialog-icon","small"],[1,"icon","icon-whiteLabel"],["translate","",1,"headline"],[1,"dialog-content"],["matInput","",1,"css-field",3,"rows","formControl"],["align","end"],["translate","",1,"imx-button","cta",3,"disabled","click"],["translate","",1,"imx-button","cta",3,"click"],["translate","",1,"imx-button","default",3,"click"]],template:function(pe,Ze){1&pe&&(o.TgZ(0,"div",0)(1,"div",1),o.NdJ("click",function(){return Ze.onCancel()}),o._UZ(2,"span",2),o.qZA(),o.TgZ(3,"div",3)(4,"div",4),o._UZ(5,"span",5),o.qZA(),o.TgZ(6,"div")(7,"h1",6),o._uU(8,"imxeventmanager.whl-portal-config.edit-style-dialog.header"),o.qZA()()()(),o.TgZ(9,"mat-dialog-content")(10,"div",7)(11,"form")(12,"mat-form-field")(13,"textarea",8),o._uU(14,"              "),o.qZA()()()()(),o.TgZ(15,"mat-dialog-actions",9)(16,"button",10),o.NdJ("click",function(){return Ze.onConfirm()}),o._uU(17),o.qZA(),o.TgZ(18,"button",11),o.NdJ("click",function(){return Ze.onReset()}),o._uU(19),o.qZA(),o.TgZ(20,"button",12),o.NdJ("click",function(){return Ze.onCancel()}),o._uU(21),o.qZA()()),2&pe&&(o.xp6(13),o.Q6J("rows",15)("formControl",Ze.stylingFormControl),o.xp6(3),o.Q6J("disabled",!Ze.stylingFormControl.value||0===Ze.stylingFormControl.value.toString().trim().length),o.xp6(),o.hij(" ","imxplatform.dialog.common-confirm"," "),o.xp6(2),o.hij(" ","imxeventmanager.whl-portal-config.edit-style-dialog.reset-to-default"," "),o.xp6(2),o.hij(" ","imxplatform.dialog.common-abort"," "))},dependencies:[nr.Zt,nr.Bh,b._Y,b.Fj,b.JJ,b.JL,b.F,t.uh,t.H8,t.xY,wg.Nt,Wg.KE,b.oH,I.Pi],styles:["[_nghost-%COMP%]{--mdc-dialog-subhead-font: $imx-font;--mdc-dialog-supporting-text-color: rgba(0, 0, 0, .87);--mdc-dialog-supporting-text-font: $imx-font;--mdc-dialog-supporting-text-line-height: 1em;--mdc-dialog-supporting-text-size: 16px;--mdc-dialog-supporting-text-weight: 400;--mdc-dialog-supporting-text-tracking: 0}.dialog-header-wrapper[_ngcontent-%COMP%]{margin:0 0 10px;display:flex;padding:25px 25px 0;color:#3e3e3e;position:relative;font-size:14px}.dialog-header-wrapper[_ngcontent-%COMP%]   .dialog-close[_ngcontent-%COMP%]{color:#0a2663;position:absolute;top:14px;right:14px;font-size:13px;cursor:pointer}.dialog-header-wrapper[_ngcontent-%COMP%]   .dialog-icon[_ngcontent-%COMP%]{font-size:32px;margin-right:10px}.dialog-header-wrapper[_ngcontent-%COMP%]   .dialog-header[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;align-items:center}h1[_ngcontent-%COMP%]{font-size:25px;font-weight:600;line-height:30px}p[_ngcontent-%COMP%]{line-height:16px}.dialog-content[_ngcontent-%COMP%]{margin:0;min-height:100px;font-size:14px;width:100%;padding:0 25px 15px}.dialog-content[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{padding:0}.dialog-content[_ngcontent-%COMP%]   .dialog-txt-md[_ngcontent-%COMP%]{font-size:14px;color:#000;margin-top:15px;word-break:break-word}.dialog-content[_ngcontent-%COMP%]   .dialog-txt-md.error[_ngcontent-%COMP%]{color:#96172e}.dialog-content.confirm[_ngcontent-%COMP%]{display:flex}.dialog-content.confirm[_ngcontent-%COMP%]   h1.headline[_ngcontent-%COMP%]{margin-bottom:10px}.dialog-content[_ngcontent-%COMP%]   .dialog-form-header[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;padding:5px 0 10px}.dialog-icon[_ngcontent-%COMP%]{font-size:60px;margin-right:25px}@media (max-width: 900px){.dialog-icon[_ngcontent-%COMP%]{font-size:48px;margin-right:15px}}.dialog-icon[_ngcontent-%COMP%]   .icon.red[_ngcontent-%COMP%]{color:#96172e}  .dialog-form mat-form-field{width:100%}  .dialog-form .dialog-form-group{background-color:#eefafa;width:100%;border:1px solid #ced4e0;padding:10px;margin:3px 0 10px}  .dialog-form .dialog-form-group p{margin:10px 0}  .dialog-form .dialog-form-group .mat-mdc-radio-group .mat-mdc-radio-button{font-size:14px;display:block;padding:5px 0}  .dialog-form .dialog-form-group .mat-mdc-radio-group.small .mat-mdc-radio-button{font-size:14px;display:block;padding:2px 5px}  .dialog-form .dialog-form-group .checkbox-group .mat-mdc-checkbox{display:block}.dialog-subpanel-header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}  .mat-mdc-dialog-container{background:#fff;padding:0}  .mat-mdc-dialog-container .mat-mdc-dialog-content{padding:0;margin:0;max-height:78vh}  .mat-mdc-dialog-container .mat-mdc-dialog-actions{background:#eefafa;box-sizing:content-box;margin:0;padding:10px}  .mat-mdc-dialog-container .mat-mdc-dialog-actions .imx-button{margin-right:5px}  .mat-mdc-dialog-container .mat-mdc-dialog-actions .imx-button:last-of-type{margin-right:0}[_nghost-%COMP%]     .mdc-dialog__title:before{height:auto}[_nghost-%COMP%]     .mdc-dialog__content{padding:0;margin:0;max-height:78vh}.css-field[_ngcontent-%COMP%]{margin:5px;color:#0a2663;border:1px solid #ced4e0}"]})}return N})();const ax=new l.FormConfiguration([(0,l.idFilterField)("WhlPortalConfig"),new l.Input("text","name","entity.WhlPortalConfig.name"),new l.Select("client","entity.Client.entityName",{optionProvider:l.ClientOptionProviderService,extractor:(0,l.numberExtractor)("client"),placeholder:"imxplatform.common.select-placeholder-any-client",initialValue:-1}),new l.Select("deliveryChannel","entity.DeliveryChannel.entityName",{optionProvider:l.OwnDeliveryChannelOptionProviderService,extractor:(0,l.numberExtractor)("deliveryChannel"),placeholder:"imxplatform.common.select-placeholder-any-delivery-channel",initialValue:-1}),new l.Input("text","fulltext","imxeventmanager.whl-portal-config.filter.fulltext")]);let sx=(()=>{class N extends l.AbstractFormHandler{constructor(M,pe,Ze,xn){super(ax,void 0,M,pe,xn),this.runtimeContextService=pe,this.imxSecurityManagerService=Ze,this.formatterService=xn}getEntityType(){return"WhlPortalConfig"}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.LFG(l.NgControlBuilderService),o.LFG(s.Ze),o.LFG(s.Xh),o.LFG(l.FormatterService))};static#t=this.\u0275prov=o.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();const lx=new l.FormConfiguration([new l.AnyField("id",""),new l.Input("text","name","entity.WhlPortalConfig.name",{required:!0}),new l.Select("client","entity.Event.client",{optionProvider:l.ClientOptionProviderService,extractor:(0,l.pathExtractor)("client.id"),insertor:(0,l.pathInsertor)("client.id"),required:!0}),new l.Select("deliveryChannel","imxeventmanager.whl-portal-config.dialog.delivery-channel",{optionProvider:l.OwnDeliveryChannelOptionProviderService,extractor:(0,l.pathExtractor)("deliveryChannel.id"),insertor:(0,l.pathInsertor)("deliveryChannel.id"),required:!0}),new l.ArrayField("keyvisualImages",!1,[new l.AnyField("language","",{extractor:(0,l.pathExtractor)("language"),insertor:(0,l.pathInsertor)("language")}),new l.AnyField("fileName","",{extractor:(0,l.pathExtractor)("fileName"),insertor:(0,l.pathInsertor)("fileName")}),new l.AnyField("deeplink","",{extractor:(0,l.pathExtractor)("deeplink"),insertor:(0,l.noneInsertor)()})]),new l.I18nMultiInput("keyvisualCopyright","entity.WhlPortalConfig.keyvisualCopyright",{renderLabel:!0}),new l.ArrayField("footerLinkTargets",!1,[new l.I18nMultiInput("i18nName","entity.WhlPortalConfig.name",{renderLabel:!1,extendedI18nValidators:l.i18nSomeValidator}),new l.I18nMultiInput("target","entity.WhlPortalConfig.footerLinkTargets.target",{renderLabel:!1,extendedI18nValidators:l.i18nSomeValidator}),new l.Checkbox("openInNewPage","entity.WhiteLabelLinkTarget.openInNewPage",{initialValue:!1})]),new l.ArrayField("mobileLogos",!1,[new l.AnyField("language","",{extractor:(0,l.pathExtractor)("language"),insertor:(0,l.pathInsertor)("language")}),new l.AnyField("fileName","",{extractor:(0,l.pathExtractor)("fileName"),insertor:(0,l.pathInsertor)("fileName")}),new l.AnyField("deeplink","",{extractor:(0,l.pathExtractor)("deeplink"),insertor:(0,l.noneInsertor)()})]),new l.I18nMultiInput("disclaimerLinkTarget.i18nName","entity.WhlPortalConfig.name",{renderLabel:!0,extractor:(0,l.pathExtractor)("disclaimerLinkTarget.i18nName"),insertor:(0,l.pathInsertor)("disclaimerLinkTarget.i18nName")}),new l.I18nMultiInput("disclaimerLinkTarget.target","entity.WhlPortalConfig.footerLinkTargets.target",{renderLabel:!0,extractor:(0,l.pathExtractor)("disclaimerLinkTarget.target"),insertor:(0,l.pathInsertor)("disclaimerLinkTarget.target")}),new l.Checkbox("disclaimerLinkTarget.openInNewPage","entity.WhiteLabelLinkTarget.openInNewPage",{renderLabel:!0,extractor:(0,l.pathExtractor)("disclaimerLinkTarget.openInNewPage"),insertor:(0,l.pathInsertor)("disclaimerLinkTarget.openInNewPage")}),new l.I18nMultiInput("browserTitle","entity.WhlPortalConfig.browserTitle",{renderLabel:!0}),new l.AnyField("favIcon","entity.WhlPortalConfig.favIcon",{extractor:(0,l.pathExtractor)("favIcon"),insertor:(0,l.pathInsertor)("favIcon")}),new l.Checkbox("showCopyrightConfirmedImagesOnly","entity.WhlPortalConfig.showCopyrightConfirmedImagesOnly"),new l.Checkbox("showCopyrightConfirmedTextsOnly","entity.WhlPortalConfig.showCopyrightConfirmedTextsOnly"),new l.I18nMultiInput("disclaimerTitle","entity.WhlPortalConfig.disclaimerTitle"),new l.I18nMultiRichtext("disclaimerContent","entity.WhlPortalConfig.disclaimerContent"),new l.I18nMultiInput("legalDisclosureTitle","entity.WhlPortalConfig.legalDisclosureTitle"),new l.I18nMultiRichtext("legalDisclosureContent","entity.WhlPortalConfig.legalDisclosureContent")]);let bh=(()=>{class N extends l.AbstractFormHandler{constructor(M,pe,Ze,xn){super(lx,void 0,M,Ze,xn)}getEntityType(){return"WhlPortalConfig"}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.LFG(l.NgControlBuilderService),o.LFG(s.Xh),o.LFG(s.Ze),o.LFG(l.FormatterService))};static#t=this.\u0275prov=o.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();function r1(N,Lt){if(1&N&&(o.TgZ(0,"form",1)(1,"div",2)(2,"imx-grid")(3,"imx-grid-element",3),o._UZ(4,"imx-form-control",4),o.qZA(),o._UZ(5,"imx-grid-element",3),o.TgZ(6,"imx-grid-element",3),o._UZ(7,"imx-form-control",4),o.qZA(),o.TgZ(8,"imx-grid-element",3),o._UZ(9,"imx-form-control",4),o.qZA(),o.TgZ(10,"imx-grid-element",3),o._UZ(11,"imx-form-control",4),o.qZA(),o.TgZ(12,"imx-grid-element",3),o._UZ(13,"imx-form-control",4),o.qZA(),o.Hsn(14),o.qZA()()()),2&N){const M=o.oxw();o.Q6J("formGroup",M.parentForm),o.xp6(3),o.Q6J("lg_w",6)("sm_w",12),o.xp6(),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("id"))("control",M.formHandler.formGroup.get("id"))("form",M.formHandler.formGroup.get("id"))("formHandler",M.formHandler)("config",M.formHandler.formConfiguration),o.xp6(),o.Q6J("lg_w",6)("sm_w",12),o.xp6(),o.Q6J("lg_w",6)("sm_w",12),o.xp6(),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("fulltext"))("control",M.formHandler.formGroup.get("fulltext"))("form",M.formHandler.formGroup.get("fulltext"))("formHandler",M.formHandler)("config",M.formHandler.formConfiguration),o.xp6(),o.Q6J("lg_w",6)("sm_w",12),o.xp6(),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("WhlPortalWidgetConfig_token"))("control",M.formHandler.formGroup.get("WhlPortalWidgetConfig_token"))("form",M.formHandler.formGroup.get("WhlPortalWidgetConfig_token"))("formHandler",M.formHandler)("config",M.formHandler.formConfiguration),o.xp6(),o.Q6J("lg_w",6)("sm_w",12),o.xp6(),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("client"))("control",M.formHandler.formGroup.get("client"))("form",M.formHandler.formGroup.get("client"))("formHandler",M.formHandler)("config",M.formHandler.formConfiguration),o.xp6(),o.Q6J("lg_w",6)("sm_w",12),o.xp6(),o.Q6J("field",M.formHandler.formConfiguration.findFormFieldById("deliveryChannel"))("control",M.formHandler.formGroup.get("deliveryChannel"))("form",M.formHandler.formGroup.get("deliveryChannel"))("formHandler",M.formHandler)("config",M.formHandler.formConfiguration)}}const cx=["*"];let a1=(()=>{class N extends l.AbstractFilterPanelComponent{constructor(){super(),this.id="MAIN_FILTER",this.titleKey="imxplatform.common-entity.filter.baseEntityFilter.header",this.icon="icon-cube",this.filterFields=["id","WhlPortalWidgetConfig_token","client","deliveryChannel","fulltext"]}static#e=this.\u0275fac=function(pe){return new(pe||N)};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-whl-portal-config-filter-panel"]],hostAttrs:[1,"imx-whl-portal-config-filter-panel"],features:[o._Bn([(0,l.provideParent)(N)]),o.qOj],ngContentSelectors:cx,decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"filter__card"],[3,"lg_w","sm_w"],[3,"field","control","form","formHandler","config"]],template:function(pe,Ze){1&pe&&(o.F$t(),o.YNc(0,r1,15,38,"form",0)),2&pe&&o.Q6J("ngIf",Ze.panelShown)},dependencies:[u.A,m.O5,b._Y,b.JL,b.sg,wn.M,po.V],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}"]})}return N})();function gd(N,Lt){if(1&N&&o._UZ(0,"imx-whl-portal-config-filter-panel",2,3),2&N){const M=o.oxw();o.Q6J("pinned",!0)("parentForm",M.formHandler.formGroup)("formHandler",M.formHandler)("record",M.record)}}let zg=(()=>{class N extends l.AbstractEntityFilterComponent{constructor(){super()}getEntityName(){return"WhlPortalConfig"}static#e=this.\u0275fac=function(pe){return new(pe||N)};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-whl-portal-config-filter"]],features:[o.qOj],decls:3,vars:7,consts:[[3,"entityName","filterPanelsTemplate","formHandler","record","orderFields","orderField","orderDirection","orderChanged","save"],["filterPanelsTemplate",""],[3,"pinned","parentForm","formHandler","record"],["filterPanel",""]],template:function(pe,Ze){if(1&pe&&(o.TgZ(0,"imx-filter",0),o.NdJ("orderChanged",function(Si){return Ze.orderChanged.emit(Si)})("save",function(Si){return Ze.applyFilter.emit(Si)}),o.YNc(1,gd,2,4,"ng-template",null,1,o.W1O),o.qZA()),2&pe){const xn=o.MAs(2);o.Q6J("entityName","WhlPortalConfig")("filterPanelsTemplate",xn)("formHandler",Ze.formHandler)("record",Ze.record)("orderFields",Ze.orderFields)("orderField",Ze.orderField)("orderDirection",Ze.orderDirection)}},dependencies:[Vn.z,a1]})}return N})();function Ch(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"imx-create-new-entity-button",10),o.NdJ("create",function(){o.CHM(M);const Ze=o.oxw();return o.KtG(Ze.createNewWhlPortalConfig())}),o.qZA()}2&N&&o.Q6J("fireCreateEvent",!0)("entityResourceKeyPrefix","imxeventmanager.whl-portal-config")}function dx(N,Lt){1&N&&(o.TgZ(0,"imx-list-no-results"),o._uU(1,"imxeventmanager.whl-portal-config.list.no-records"),o.qZA())}function zl(N,Lt){1&N&&o._UZ(0,"mat-progress-bar",11)}function yh(N,Lt){if(1&N&&(o.TgZ(0,"th",18),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&N){const M=Lt.$implicit;o.Udp("width",M.width),o.Q6J("ngClass",M.cssClass),o.xp6(),o.hij(" ",o.lcZ(2,4,M.header)," ")}}function Oh(N,Lt){if(1&N&&(o.TgZ(0,"tr"),o.YNc(1,yh,3,6,"th",17),o.qZA()),2&N){const M=o.oxw(3);o.xp6(),o.Q6J("ngForOf",M.columnDefinitions)}}function eg(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"tr")(1,"td")(2,"a",19),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.editWhlPortalConfig(xn))}),o._uU(3),o.qZA()(),o.TgZ(4,"td",20)(5,"a",19),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.editWhlPortalConfig(xn))}),o._uU(6),o.qZA()(),o.TgZ(7,"td",20)(8,"a",19),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.editWhlPortalConfig(xn))}),o._uU(9),o.qZA()(),o.TgZ(10,"td",20)(11,"a",19),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.editWhlPortalConfig(xn))}),o._uU(12),o.qZA()(),o.TgZ(13,"td",20)(14,"a",19),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.editWhlPortalConfig(xn))}),o._uU(15),o.ALo(16,"date"),o.ALo(17,"convertTimestamps"),o.qZA()(),o.TgZ(18,"td")(19,"imx-dropup-button")(20,"imx-action-menu")(21,"imx-action-menu-item",21),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.editWhlPortalConfig(xn))}),o._uU(22,"imxplatform.common-entity.list.edit "),o.qZA(),o.TgZ(23,"imx-action-menu-item",22),o.NdJ("actionClicked",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.cloneWhlPortalConfig(xn))}),o._uU(24),o.ALo(25,"translate"),o.qZA(),o.TgZ(26,"imx-action-menu-item",23),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.removeWhlPortalConfig(xn))}),o._uU(27," imxplatform.common-entity.list.remove "),o.qZA(),o.TgZ(28,"imx-action-menu-item",24),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.openStylingDialog(xn.id))}),o._uU(29," imxeventmanager.whl-portal-config.list.action.edit-css "),o.qZA()()()()()}if(2&N){const M=Lt.$implicit;o.xp6(3),o.hij(" ",M.id," "),o.xp6(),o.Q6J("matTooltip",M.name)("matTooltipShowDelay",500),o.xp6(2),o.hij(" ",M.name," "),o.xp6(),o.Q6J("matTooltip",M.client.name)("matTooltipShowDelay",500),o.xp6(2),o.hij(" ",M.client.name," "),o.xp6(),o.Q6J("matTooltip",M.deliveryChannel.name)("matTooltipShowDelay",500),o.xp6(2),o.hij(" ",M.deliveryChannel.name," "),o.xp6(),o.Q6J("matTooltip",M.lastChangeTime)("matTooltipShowDelay",500),o.xp6(2),o.hij(" ",o.xi3(16,14,o.lcZ(17,17,M.lastChangeTime),"dd.MM.yyyy - HH:mm")," "),o.xp6(9),o.hij(" ",o.lcZ(25,19,"imxplatform.common-entity.list.copy")," ")}}function te(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"p-table",14),o.YNc(2,Oh,2,1,"ng-template",15)(3,eg,30,21,"ng-template",16),o.qZA(),o.BQk()),2&N){const M=o.oxw().ngIf;o.xp6(),o.Q6J("value",M.items)}}function Pn(N,Lt){if(1&N&&(o.TgZ(0,"div",12),o.YNc(1,te,4,1,"ng-container",13),o.qZA()),2&N){const M=Lt.ngIf;o.oxw();const pe=o.MAs(8);o.xp6(),o.Q6J("ngIf",M.items.length>0)("ngIfElse",pe)}}const E="WhlPortalConfig";let _e=(()=>{class N extends l.AbstractSimpleEntitySearchPage{constructor(M,pe,Ze,xn,Si,Ga,xs,vs,bl,Ll,Tc,xc,fu,Nd,gu){super(M,pe,Ze,xn,Si,Ga,xs,vs,bl,Ll,Tc,void 0,xc,fu,{moduleName:l.CORE_MODULE_KEY,entityName:E}),this.translateService=xc,this.runtimeContextService=Nd,this.whlPortalConfigFormHandlerService=gu,this.eventmanagerPermissions=Us.M,this.availableOrderFields=[{index:1,field:"name",i18n:"entity.WhlPortalConfig.name",type:l.OrderType.alphanumeric},{index:2,field:"id",i18n:"entity.DataObject.id",type:l.OrderType.numeric},{index:3,field:"lastChangeTime",i18n:"entity.AuditedDataObject.lastChangeTime",type:l.OrderType.numeric}],this.columnDefinitions=[{field:"id",header:"ID",width:"70px"},{field:"name",header:"entity.WhlPortalConfig.name",width:"40%"},{field:"client",header:"entity.Client.entityName",width:"40%"},{field:"deliveryChannel",header:"entity.DeliveryChannel.entityName",width:"20%"},{field:"lastChangeTime",header:"entity.AuditedDataObject.lastChangeTime",width:"15%"},{field:"action",header:"",width:"5%"}]}ngOnInit(){super.ngOnInit(),this.runtimeContextService.getCurrentAndSubClients().subscribe(M=>this.currentClientsAndSubClientIds=Array.from(M).map(pe=>pe.id))}getEntityName(){return E}getFilterPredicates(){return[(0,l.filterById)("id"),(0,l.filterByPath)("client","client.id"),(0,l.filterByPath)("deliveryChannel","deliveryChannel.id"),(0,l.filterByStringPropertyWithPath)("fulltext","name"),this.filterByCurrentClient().bind(this)]}getSortPredicates(){return new Map}createNewWhlPortalConfig(){this.createNewEntity(E,this.whlPortalConfigFormHandlerService,Jf)}editWhlPortalConfig(M){super.editEntity(M,E,this.whlPortalConfigFormHandlerService,Jf)}cloneWhlPortalConfig(M){this.cloneEntity(M,["WhlPortalLinkTarget"],this.whlPortalConfigFormHandlerService,Jf)}removeWhlPortalConfig(M){super.removeEntity(M,E)}openStylingDialog(M){return this.dialog.open(rx,{minWidth:600,data:{whlPortalConfigId:M}})}filterByCurrentClient(){return(M,pe)=>void 0!==(this.currentClientsAndSubClientIds?this.currentClientsAndSubClientIds:[]).find(xn=>xn===M.client.id)}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(l.BASE_ENTITY_DATA_SOURCE),o.Y36(n.F0),o.Y36(n.gz),o.Y36(l.UserMessageService),o.Y36(l.ListHistoryService),o.Y36(t.uw),o.Y36(sx),o.Y36(l.ImxPlatformDataAccessService),o.Y36(l.PlatformTrackingService),o.Y36(l.SearchPageDefaultsService),o.Y36(l.ImxEntitiesMgrService),o.Y36(I.sK),o.Y36(l.ActionProviderService),o.Y36(s.Ze),o.Y36(bh))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["ng-component"]],features:[o.qOj],decls:14,vars:16,consts:[[1,"base-entity-search","list"],[3,"formHandler","record","orderFields","orderField","orderDirection","orderChanged","applyFilter","resetFilter"],[3,"totalNumber","entityResourceKeyPrefix","showCompactToggle","reload"],["list-header-button-row",""],[3,"fireCreateEvent","entityResourceKeyPrefix","create",4,"hasAnyPermission"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],["class","table-wrapper",4,"ngIf","ngIfElse"],[3,"disableAllSelection","paging","selection","pageChanged","selectAll"],[3,"fireCreateEvent","entityResourceKeyPrefix","create"],["mode","indeterminate"],[1,"table-wrapper"],[4,"ngIf","ngIfElse"],[1,"imx-datatable",3,"value"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",3,"ngClass"],[1,"txt-link",3,"click"],[3,"matTooltip","matTooltipShowDelay"],["icon","icon-pencil",3,"click"],["icon","icon-copy",3,"actionClicked"],["icon","icon-trash","additionalStyle","delete",3,"click"],["icon","icon-whiteLabel",3,"click"]],template:function(pe,Ze){if(1&pe&&(o.TgZ(0,"div",0)(1,"imx-whl-portal-config-filter",1),o.NdJ("orderChanged",function(Si){return Ze.sort(Si)})("applyFilter",function(Si){return Ze.search(Si)})("resetFilter",function(){return Ze.reset()}),o.qZA(),o.TgZ(2,"imx-list-header",2),o.NdJ("reload",function(){return Ze.reloadComplete()}),o.ynx(3,3),o.YNc(4,Ch,1,2,"imx-create-new-entity-button",4),o.BQk(),o.qZA(),o.TgZ(5,"imx-grid")(6,"imx-grid-element",5),o.YNc(7,dx,2,0,"ng-template",null,6,o.W1O)(9,zl,1,0,"ng-template",null,7,o.W1O)(11,Pn,2,2,"div",8),o.ALo(12,"async"),o.qZA()(),o.TgZ(13,"imx-list-footer",9),o.NdJ("pageChanged",function(Si){return Ze.onPageChanged(Si)})("selectAll",function(Si){return Ze.onSelectAll(Si)}),o.qZA()()),2&pe){const xn=o.MAs(10);o.xp6(),o.Q6J("formHandler",Ze.filterFormHandler)("record",Ze.filter)("orderFields",Ze.availableOrderFields)("orderField",Ze.orderField)("orderDirection",Ze.orderDirection),o.xp6(),o.Q6J("totalNumber",null==Ze.currentResult?null:Ze.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxeventmanager.whl-portal-config")("showCompactToggle",!1),o.xp6(2),o.Q6J("hasAnyPermission",Ze.eventmanagerPermissions.F_WHL_PORTAL_CONFIG_ADMINISTRATION.name+","+Ze.eventmanagerPermissions.F_WHL_PORTAL_CONFIG_ADMINISTRATION_OWN_CLIENT.name),o.xp6(7),o.Q6J("ngIf",o.lcZ(12,14,Ze.results))("ngIfElse",xn),o.xp6(2),o.Q6J("disableAllSelection",!0)("paging",Ze.pagingModel)("selection",Ze.selectionModel)}},dependencies:[Qt.N,Un._,Yt.A,Fn.E,yt.R,ee.F,m.mk,m.sg,m.O5,li.pW,si.gM,oo.iA,_o.jx,oo.Q7,Hn.p,mo.z,vn.t,wn.M,po.V,zg,c_.E,m.Ov,m.uU,I.X$],styles:[".imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.base-entity-search[_ngcontent-%COMP%]{padding-bottom:50px;padding-top:50px}.base-entity-search[_ngcontent-%COMP%]   .icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.base-entity-search[_ngcontent-%COMP%]   .selected-size[_ngcontent-%COMP%]{color:#3e3e3e}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}"]})}return N})();var Me=a(6929);function Ln(N,Lt){1&N&&o.GkF(0)}function to(N,Lt){1&N&&o.GkF(0)}const ha=()=>({$implicit:"initialSearchZipcode"});function zs(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"div",1),o.YNc(2,to,1,0,"ng-container",3),o.qZA(),o.BQk()),2&N){o.oxw();const M=o.MAs(12);o.xp6(2),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(2,ha))}}function cc(N,Lt){1&N&&o.GkF(0)}function Gl(N,Lt){1&N&&o.GkF(0)}const id=()=>({$implicit:"initialSearchCoordinates.latitude"}),zd=()=>({$implicit:"initialSearchCoordinates.longitude"});function Fm(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"div",6),o.YNc(2,cc,1,0,"ng-container",3)(3,Gl,1,0,"ng-container",3),o.qZA(),o.BQk()),2&N){o.oxw();const M=o.MAs(12);o.xp6(2),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(4,id)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(5,zd))}}function Lm(N,Lt){1&N&&o.GkF(0)}const Iu=()=>({$implicit:"initialSearchRadius"});function Su(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"div",1),o.YNc(2,Lm,1,0,"ng-container",3),o.qZA(),o.BQk()),2&N){o.oxw();const M=o.MAs(12);o.xp6(2),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(2,Iu))}}function K_(N,Lt){1&N&&o.GkF(0)}function jg(N,Lt){1&N&&(o.TgZ(0,"p",12),o._uU(1,"imxplatform.common.no-records"),o.qZA())}function Dg(N,Lt){1&N&&o._UZ(0,"tr",23)}function Rv(N,Lt){1&N&&o._UZ(0,"tr",24)}function s1(N,Lt){1&N&&(o.TgZ(0,"th",25),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&N&&(o.xp6(),o.Oqu(o.lcZ(2,1,"entity.AddressPoi.id")))}function l1(N,Lt){if(1&N&&(o.TgZ(0,"td",26)(1,"span"),o._uU(2),o.ALo(3,"readI18n"),o.qZA()()),2&N){const M=Lt.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,M.controls.rowEntity.value.id))}}function mx(N,Lt){1&N&&(o.TgZ(0,"th",25),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&N&&(o.xp6(),o.Oqu(o.lcZ(2,1,"entity.AddressPoi.title")))}function kv(N,Lt){if(1&N&&(o.TgZ(0,"td",26)(1,"span"),o._uU(2),o.ALo(3,"readI18n"),o.qZA()()),2&N){const M=Lt.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,M.controls.rowEntity.value.title))}}function __(N,Lt){1&N&&o._UZ(0,"th",27)}function Nv(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"td",28)(1,"imx-dropup-button")(2,"imx-action-menu")(3,"imx-action-menu-item",29),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.formHandler.removeLineFromCollection("searchLocations",Si.searchLocationCollectionDataSource.filteredData.indexOf(xn),Si.data.formHandler.formGroup))}),o._uU(4," imxplatform.common-entity.list.remove "),o.qZA()()()()}2&N&&(o.Q6J("formGroup",Lt.$implicit),o.xp6(3),o.Q6J("icon","icon-trash"))}function Uv(N,Lt){if(1&N&&(o.TgZ(0,"table",13),o.YNc(1,Dg,1,0,"tr",14)(2,Rv,1,0,"tr",15),o.ynx(3,16),o.YNc(4,s1,3,3,"th",17)(5,l1,4,3,"td",18),o.BQk(),o.ynx(6,19),o.YNc(7,mx,3,3,"th",17)(8,kv,4,3,"td",18),o.BQk(),o.ynx(9,20),o.YNc(10,__,1,0,"th",21)(11,Nv,5,2,"td",22),o.BQk(),o.qZA()),2&N){const M=o.oxw(2);o.Q6J("dataSource",M.searchLocationCollectionDataSource),o.xp6(),o.Q6J("matHeaderRowDef",M.searchLocationColumns),o.xp6(),o.Q6J("matRowDefColumns",M.searchLocationColumns)}}function c1(N,Lt){1&N&&o.GkF(0)}const ux=()=>({$implicit:"searchLocationsAsDropdown"}),d1=()=>({$implicit:"searchLocationsAutocomplete"});function Bv(N,Lt){if(1&N){const M=o.EpF();o.ynx(0),o.YNc(1,K_,1,0,"ng-container",3)(2,jg,2,0,"ng-template",null,7,o.W1O),o.TgZ(4,"div",8),o.YNc(5,Uv,12,3,"table",9),o.qZA(),o.TgZ(6,"span",0),o._uU(7,"entity.WhlPortalWidgetConfig.searchLocations-search"),o.qZA(),o.TgZ(8,"div",10),o.YNc(9,c1,1,0,"ng-container",3),o.TgZ(10,"button",11),o.NdJ("click",function(){o.CHM(M);const Ze=o.oxw();return o.KtG(Ze.addSearchLocation())}),o._uU(11),o.ALo(12,"translate"),o.qZA()(),o.BQk()}if(2&N){const M=o.MAs(3),pe=o.oxw(),Ze=o.MAs(12);o.xp6(),o.Q6J("ngTemplateOutlet",Ze)("ngTemplateOutletContext",o.DdM(10,ux)),o.xp6(4),o.Q6J("ngIf",pe.searchLocationCollectionDataSource&&pe.searchLocationCollectionDataSource.data.length>0)("ngIfElse",M),o.xp6(4),o.Q6J("ngTemplateOutlet",Ze)("ngTemplateOutletContext",o.DdM(11,d1)),o.xp6(),o.Q6J("disabled",null==pe.data.formHandler.formGroup.get("searchLocationsAutocomplete").value),o.xp6(),o.hij("",o.lcZ(12,8,"imxplatform.common.add")," ")}}function Zv(N,Lt){1&N&&(o.TgZ(0,"p",12),o._uU(1,"imxplatform.common.no-records"),o.qZA())}function Hv(N,Lt){1&N&&o._UZ(0,"tr",23)}function m1(N,Lt){1&N&&o._UZ(0,"tr",24)}function Gv(N,Lt){1&N&&(o.TgZ(0,"th",25),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&N&&(o.xp6(),o.Oqu(o.lcZ(2,1,"entity.AddressPoiGroup.id")))}function Jv(N,Lt){if(1&N&&(o.TgZ(0,"td",26)(1,"span"),o._uU(2),o.ALo(3,"readI18n"),o.qZA()()),2&N){const M=Lt.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,M.controls.rowEntity.value.id))}}function px(N,Lt){1&N&&(o.TgZ(0,"th",25),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&N&&(o.xp6(),o.Oqu(o.lcZ(2,1,"entity.AddressPoiGroup.i18nName")))}function Qv(N,Lt){if(1&N&&(o.TgZ(0,"td",26)(1,"span"),o._uU(2),o.ALo(3,"readI18n"),o.qZA()()),2&N){const M=Lt.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,M.controls.rowEntity.value.i18nName))}}function Vv(N,Lt){1&N&&o._UZ(0,"th",27)}function Yv(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"td",28)(1,"imx-dropup-button")(2,"imx-action-menu")(3,"imx-action-menu-item",29),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.formHandler.removeLineFromCollection("searchPoiGroups",Si.searchPoiGroupCollectionDataSource.filteredData.indexOf(xn),Si.data.formHandler.formGroup))}),o._uU(4," imxplatform.common-entity.list.remove "),o.qZA()()()()}2&N&&(o.Q6J("formGroup",Lt.$implicit),o.xp6(3),o.Q6J("icon","icon-trash"))}function Wv(N,Lt){if(1&N&&(o.TgZ(0,"table",13),o.YNc(1,Hv,1,0,"tr",14)(2,m1,1,0,"tr",15),o.ynx(3,16),o.YNc(4,Gv,3,3,"th",17)(5,Jv,4,3,"td",18),o.BQk(),o.ynx(6,34),o.YNc(7,px,3,3,"th",17)(8,Qv,4,3,"td",18),o.BQk(),o.ynx(9,20),o.YNc(10,Vv,1,0,"th",21)(11,Yv,5,2,"td",22),o.BQk(),o.qZA()),2&N){const M=o.oxw(2);o.Q6J("dataSource",M.searchPoiGroupCollectionDataSource),o.xp6(),o.Q6J("matHeaderRowDef",M.searchPoiGroupColumns),o.xp6(),o.Q6J("matRowDefColumns",M.searchPoiGroupColumns)}}const zv=()=>({entityType:"AddressPoiGroup"});function _f(N,Lt){if(1&N){const M=o.EpF();o.ynx(0),o.YNc(1,Zv,2,0,"ng-template",null,7,o.W1O),o.TgZ(3,"div",8),o.YNc(4,Wv,12,3,"table",9),o.qZA(),o.TgZ(5,"span",0),o._uU(6,"entity.WhlPortalWidgetConfig.searchPoiGroups-search"),o.qZA(),o.TgZ(7,"div",10)(8,"imx-base-autocomplete",30,31),o.NdJ("enterPressed",function(){o.CHM(M);const Ze=o.MAs(11);return o.KtG(Ze.focus())}),o.qZA(),o.TgZ(10,"button",32,33),o.NdJ("click",function(){o.CHM(M);const Ze=o.MAs(9);return o.oxw().addSearchPoiGroup(Ze.getSelectedId()),o.KtG(Ze.writeValue(void 0))}),o._uU(12),o.ALo(13,"translate"),o.qZA()(),o.BQk()}if(2&N){const M=o.MAs(2),pe=o.MAs(9),Ze=o.oxw();o.xp6(4),o.Q6J("ngIf",Ze.searchPoiGroupCollectionDataSource&&Ze.searchPoiGroupCollectionDataSource.data.length>0)("ngIfElse",M),o.xp6(4),o.Q6J("autocompleteService",Ze.baseEntityAutocompleteService)("autocompleteFilter",o.DdM(8,zv)),o.xp6(2),o.Q6J("disabled",!pe.getSelectedId()),o.xp6(2),o.hij(" ",o.lcZ(13,6,"imxplatform.common.add")," ")}}function _x(N,Lt){1&N&&o.GkF(0)}const jv=()=>({$implicit:"initialSearchDescription"});function Kv(N,Lt){if(1&N&&(o.ynx(0),o.YNc(1,_x,1,0,"ng-container",3),o.BQk()),2&N){o.oxw();const M=o.MAs(12);o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(2,jv))}}function u1(N,Lt){if(1&N&&o._UZ(0,"imx-form-control",35),2&N){const M=Lt.$implicit,pe=o.oxw();o.Q6J("field",pe.data.formHandler.formConfiguration.findFormFieldById(M))("control",pe.data.formRow.get(M))("form",pe.data.formRow)("formHandler",pe.data.formHandler)("config",pe.data.formHandler.formConfiguration)}}const p1=()=>({$implicit:"locationSearchType"});let Ph=(()=>{class N extends l.AbstractFormPanelComponent{constructor(M,pe,Ze,xn,Si){super(Si),this.data=M,this.dataAccess=pe,this.userMessageService=Ze,this.baseEntityAutocompleteService=xn,this.entitiesMgr=Si,this.locationSearchType=null}ngOnInit(){this._initLocationSearchTypeChangeListener(),this._initSearchLocationTable(),this._initSearchPoiGroupTable()}_initLocationSearchTypeChangeListener(){this.locationSearchType=this.formHandler.formGroup.controls.locationSearchType.value,this.formHandler.formGroup.controls.locationSearchType&&this.formHandler.formGroup.controls.locationSearchType.valueChanges.subscribe(M=>{this.locationSearchType=M})}_initSearchLocationTable(){this.data.formHandler.formGroup.get("searchLocations")&&(this.searchLocationCollectionDataSource=this.prepareTable(this.data.formHandler.formGroup.get("searchLocations"),M=>this.searchLocationCollectionDataSource=M),this.searchLocationColumns=["id","title","actionColumn"])}addSearchLocation(){const M=this.data.formHandler.formGroup.get("searchLocationsAutocomplete").value;this.dataAccess.getAddressPoiById(Number.parseInt(M,10)).subscribe(pe=>{if(this.searchLocationCollectionDataSource&&this.searchLocationCollectionDataSource._data._value.length>0&&this.searchLocationCollectionDataSource._data._value.map(Ze=>Ze.value[l.ARRAY_ENTITY_FIELD].id).includes(pe.id))this.userMessageService.showError("entity.WhlPortalWidgetConfig.searchLocations-already-assigned");else{const Ze=this.data.formHandler.addNewCollectionRow("searchLocations");Ze.controls[l.ARRAY_ENTITY_FIELD].setValue(pe),Ze.controls[l.ARRAY_ID_FIELD].setValue(pe.id),this.searchLocationCollectionDataSource=new p.by(this.data.formHandler.formGroup.get("searchLocations").controls),this.resetSearchLocationTable()}})}resetSearchLocationTable(){this.data.formHandler.formGroup.get("searchLocationsAutocomplete").setValue(null)}_initSearchPoiGroupTable(){this.data.formHandler.formGroup.get("searchPoiGroups")&&(this.searchPoiGroupCollectionDataSource=this.prepareTable(this.data.formHandler.formGroup.get("searchPoiGroups"),M=>this.searchPoiGroupCollectionDataSource=M),this.searchPoiGroupColumns=["id","i18nName","actionColumn"])}addSearchPoiGroup(M){this.entitiesMgr.getEntityWithIdOfType("AddressPoiGroup",M).subscribe(pe=>{if(this.searchPoiGroupCollectionDataSource&&this.searchLocationCollectionDataSource._data._value.length>0&&this.searchPoiGroupCollectionDataSource._data._value.map(Ze=>Ze.value[l.ARRAY_ENTITY_FIELD].id).includes(pe.id))this.userMessageService.showError("entity.WhlPortalWidgetConfig.searchPoiGroups-already-assigned");else{const Ze=this.data.formHandler.addNewCollectionRow("searchPoiGroups");Ze.controls[l.ARRAY_ENTITY_FIELD].setValue(pe),Ze.controls[l.ARRAY_ID_FIELD].setValue(pe.id),this.searchPoiGroupCollectionDataSource=new p.by(this.data.formHandler.formGroup.get("searchPoiGroups").controls)}})}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(t.WI),o.Y36(l.ImxPlatformDataAccessService),o.Y36(l.UserMessageService),o.Y36(l.BaseEntityAutocompleteService),o.Y36(l.ImxEntitiesMgrService))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-location-search-type-form-panel"]],features:[o.qOj],decls:13,vars:9,consts:[["translate",""],[1,"form__content-row"],[1,"form__content-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],["imxFormControl",""],[1,"form__content-row","two-columns"],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[1,"button-wrapper"],[1,"imx-button","prio2","imx-form-control",3,"disabled","click"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","title"],["matColumnDef","actionColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],[3,"icon","click"],["name","addTag",1,"tag-autocomplete",3,"autocompleteService","autocompleteFilter","enterPressed"],["tagAutocompleteControl",""],[1,"imx-button","prio2",3,"disabled","click"],["addSearchPoiGroupButton",""],["matColumnDef","i18nName"],[3,"field","control","form","formHandler","config"]],template:function(pe,Ze){if(1&pe&&(o.TgZ(0,"h3",0),o._uU(1,"entity.WhlPortalWidgetConfig.preAllocationWhereSearch"),o.qZA(),o.TgZ(2,"div",1)(3,"div",2),o.YNc(4,Ln,1,0,"ng-container",3)(5,zs,3,3,"ng-container",4)(6,Fm,4,6,"ng-container",4)(7,Su,3,3,"ng-container",4)(8,Bv,13,12,"ng-container",4)(9,_f,14,9,"ng-container",4)(10,Kv,2,3,"ng-container",4),o.qZA()(),o.YNc(11,u1,1,5,"ng-template",null,5,o.W1O)),2&pe){const xn=o.MAs(12);o.xp6(4),o.Q6J("ngTemplateOutlet",xn)("ngTemplateOutletContext",o.DdM(8,p1)),o.xp6(),o.Q6J("ngIf",0==Ze.locationSearchType),o.xp6(),o.Q6J("ngIf",1==Ze.locationSearchType),o.xp6(),o.Q6J("ngIf",0==Ze.locationSearchType||1==Ze.locationSearchType),o.xp6(),o.Q6J("ngIf",2==Ze.locationSearchType||4==Ze.locationSearchType),o.xp6(),o.Q6J("ngIf",3==Ze.locationSearchType||4==Ze.locationSearchType),o.xp6(),o.Q6J("ngIf",null!==Ze.locationSearchType&&3!==Ze.locationSearchType)}},dependencies:[qr.h,u.A,m.O5,m.tP,b.JL,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,b.sg,I.Pi,Hn.p,mo.z,vn.t,Ls.j,I.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.header-right[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:flex-end}.header-right[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{margin-right:10px}.four-columns[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex-basis:25%}@media (min-width: 1401px){.four-columns[_ngcontent-%COMP%] > .three-quarter[_ngcontent-%COMP%]{flex-basis:75%}}@media (max-width: 1400px){.four-columns[_ngcontent-%COMP%] > .three-quarter[_ngcontent-%COMP%]{flex-basis:50%}}.radio-align-end[_ngcontent-%COMP%]     .imx-form-control, .radio-align-end[_ngcontent-%COMP%]     .imx-radio-button-group, .radio-align-end[_ngcontent-%COMP%]     imx-base-radio-button-group, .radio-align-end[_ngcontent-%COMP%]     .mat-mdc-radio-group{height:100%}.radio-align-end[_ngcontent-%COMP%] > .imx-form-control[_ngcontent-%COMP%]    {padding:3px 0 20px}.radio-align-end[_ngcontent-%COMP%] > .imx-form-control[_ngcontent-%COMP%]    >.imx-radio-button-group{padding-bottom:2px}.radio-align-end[_ngcontent-%COMP%] > .imx-form-control[_ngcontent-%COMP%]    >.imx-radio-button-group>imx-base-radio-button-group>.mat-mdc-radio-group{justify-content:space-between;margin-bottom:4.5px}  .form__content-row.inline .mat-mdc-form-field .mat-mdc-form-field-infix{display:flex}  .form__content-row.inline .mat-mdc-form-field .mat-mdc-form-field-infix>*{align-self:center;flex:50%}  .imx-radio-button-group .mat-mdc-radio-group.inline{align-items:baseline}.form__content-row.inline[_ngcontent-%COMP%] > .imx-form-control[_ngcontent-%COMP%]{width:100%}.list-group-wrapper[_ngcontent-%COMP%]{width:100%}.list-group-wrapper[_ngcontent-%COMP%]     .tree-group, .list-group-wrapper[_ngcontent-%COMP%]   .list-group[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ced4e0;height:18vh;overflow:hidden;width:100%;margin-bottom:10px}.radios[_ngcontent-%COMP%]{margin-left:20px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.two-columns[_ngcontent-%COMP%]{align-items:center}.two-columns[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex-basis:50%}.two-columns[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-right:15px}.two-columns[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]     .mat-mdc-form-field-infix label{margin-bottom:5px}"]})}return N})();function fx(N,Lt){1&N&&o.GkF(0)}function gC(N,Lt){1&N&&o.GkF(0)}function _1(N,Lt){1&N&&o.GkF(0)}function f1(N,Lt){1&N&&o.GkF(0)}function g1(N,Lt){1&N&&o.GkF(0)}function Mh(N,Lt){1&N&&o.GkF(0)}const gx=()=>({$implicit:"i18nTargetUrl"});function Qf(N,Lt){if(1&N&&(o.ynx(0),o.YNc(1,Mh,1,0,"ng-container",7),o.BQk()),2&N){o.oxw(2);const M=o.MAs(107);o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(2,gx))}}function h1(N,Lt){1&N&&o.GkF(0)}const hx=()=>({$implicit:"standardStandaloneWhlPortalWidgetConfig"});function $v(N,Lt){if(1&N&&(o.ynx(0),o.YNc(1,h1,1,0,"ng-container",7),o.BQk()),2&N){o.oxw(2);const M=o.MAs(107);o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(2,hx))}}const hC=()=>({$implicit:"navigationNotIFrame"});function x1(N,Lt){if(1&N&&(o.ynx(0),o.YNc(1,g1,1,0,"ng-container",7)(2,Qf,2,3,"ng-container",10)(3,$v,2,3,"ng-container",10),o.BQk()),2&N){const M=o.oxw(),pe=o.MAs(107);o.xp6(),o.Q6J("ngTemplateOutlet",pe)("ngTemplateOutletContext",o.DdM(4,hC)),o.xp6(),o.Q6J("ngIf",M.showI18nTargetUrl),o.xp6(),o.Q6J("ngIf",!M.showI18nTargetUrl)}}function qv(N,Lt){1&N&&o.GkF(0)}function v1(N,Lt){1&N&&o.GkF(0)}function Xv(N,Lt){1&N&&o.GkF(0)}function e0(N,Lt){1&N&&o.GkF(0)}const b1=()=>({$implicit:"maxEventAmount"});function xx(N,Lt){if(1&N&&(o.TgZ(0,"div",4)(1,"div",11),o.YNc(2,e0,1,0,"ng-container",7),o.qZA()()),2&N){o.oxw();const M=o.MAs(107);o.xp6(2),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(2,b1))}}function C1(N,Lt){1&N&&o.GkF(0)}function Kg(N,Lt){1&N&&o.GkF(0)}function $g(N,Lt){1&N&&o.GkF(0)}function y1(N,Lt){1&N&&o.GkF(0)}function t0(N,Lt){1&N&&o.GkF(0)}function n0(N,Lt){1&N&&o.GkF(0)}function o0(N,Lt){1&N&&o.GkF(0)}function r0(N,Lt){1&N&&o.GkF(0)}function xC(N,Lt){1&N&&o.GkF(0)}function vC(N,Lt){1&N&&o.GkF(0)}function Th(N,Lt){1&N&&o.GkF(0)}function a0(N,Lt){1&N&&o.GkF(0)}function s0(N,Lt){1&N&&o.GkF(0)}function bC(N,Lt){1&N&&o.GkF(0)}function l0(N,Lt){1&N&&o.GkF(0)}function c0(N,Lt){1&N&&o.GkF(0)}function d0(N,Lt){1&N&&o.GkF(0)}function m0(N,Lt){1&N&&o.GkF(0)}function O1(N,Lt){1&N&&o.GkF(0)}function u0(N,Lt){1&N&&o.GkF(0)}function _g(N,Lt){1&N&&o.GkF(0)}function vx(N,Lt){1&N&&o.GkF(0)}function bx(N,Lt){1&N&&o.GkF(0)}function ff(N,Lt){1&N&&o.GkF(0)}function P1(N,Lt){1&N&&o.GkF(0)}function p0(N,Lt){1&N&&o.GkF(0)}function CC(N,Lt){1&N&&o.GkF(0)}function pu(N,Lt){1&N&&o.GkF(0)}const _0=()=>({$implicit:"whlGroupType"}),Cx=()=>({$implicit:"viewAsList"}),f0=()=>({$implicit:"groupingElements"}),g0=()=>({$implicit:"showTipMarker"}),yx=()=>({$implicit:"showTeaserBackground"}),M1=()=>({$implicit:"showFooter"}),T1=()=>({$implicit:"showDate"}),E1=()=>({$implicit:"eventImages"}),h0=()=>({$implicit:"premiumEvents"}),x0=()=>({$implicit:"footerLinks"}),fg=()=>({$implicit:"disclaimer"}),A1=()=>({$implicit:"useCriteriaInsteadOfCategories"}),w1=()=>({$implicit:"successiveEventsAtIdenticalLocation"}),v0=()=>({$implicit:"showEventSeriesInformation"}),D1=()=>({$implicit:"maxEventTitleLength"}),I1=()=>({$implicit:"maxAmountDisplayedEvents"}),S1=()=>({$implicit:"maxAmountReloadedEvents"}),qg=()=>({$implicit:"showRunningEvents"}),b0=()=>({$implicit:"showOnlyFirstEventDate"}),C0=()=>({$implicit:"showDatamanagerButton"}),Ox=()=>({$implicit:"headerVariantKeyvisual"}),y0=()=>({$implicit:"i18nHeadline"}),Eh=()=>({$implicit:"headingShowSearchInfo"}),F1=()=>({$implicit:"headingSwitchForView"}),L1=()=>({$implicit:"headingWatchlist"}),O0=()=>({$implicit:"galleryView"}),P0=()=>({$implicit:"showSharingButton"});function Xg(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"h3",9),o._uU(2,"entity.WhlPortalWidgetConfig.displayOptions"),o.qZA(),o.TgZ(3,"div",4)(4,"div",5),o.YNc(5,Kg,1,0,"ng-container",7)(6,$g,1,0,"ng-container",7)(7,y1,1,0,"ng-container",7)(8,t0,1,0,"ng-container",7)(9,n0,1,0,"ng-container",7)(10,o0,1,0,"ng-container",7)(11,r0,1,0,"ng-container",7)(12,xC,1,0,"ng-container",7)(13,vC,1,0,"ng-container",7)(14,Th,1,0,"ng-container",7)(15,a0,1,0,"ng-container",7)(16,s0,1,0,"ng-container",7)(17,bC,1,0,"ng-container",7)(18,l0,1,0,"ng-container",7),o.TgZ(19,"div",11),o.YNc(20,c0,1,0,"ng-container",7),o.qZA(),o.TgZ(21,"div",11),o.YNc(22,d0,1,0,"ng-container",7),o.qZA(),o.TgZ(23,"div",11),o.YNc(24,m0,1,0,"ng-container",7),o.qZA(),o.YNc(25,O1,1,0,"ng-container",7)(26,u0,1,0,"ng-container",7)(27,_g,1,0,"ng-container",7),o.qZA()(),o.TgZ(28,"h3",9),o._uU(29,"entity.WhlPortalWidgetConfig.homePageElements"),o.qZA(),o.TgZ(30,"div",4)(31,"div",5),o.YNc(32,vx,1,0,"ng-container",7)(33,bx,1,0,"ng-container",7),o.TgZ(34,"h3",9),o._uU(35,"entity.WhlPortalWidgetConfig.heading"),o.qZA(),o.YNc(36,ff,1,0,"ng-container",7)(37,P1,1,0,"ng-container",7)(38,p0,1,0,"ng-container",7)(39,CC,1,0,"ng-container",7)(40,pu,1,0,"ng-container",7),o.qZA()(),o.BQk()),2&N){o.oxw();const M=o.MAs(107);o.xp6(5),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(54,_0)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(55,Cx)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(56,f0)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(57,g0)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(58,yx)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(59,M1)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(60,T1)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(61,E1)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(62,h0)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(63,x0)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(64,fg)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(65,A1)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(66,w1)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(67,v0)),o.xp6(2),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(68,D1)),o.xp6(2),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(69,I1)),o.xp6(2),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(70,S1)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(71,qg)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(72,b0)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(73,C0)),o.xp6(5),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(74,Ox)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(75,y0)),o.xp6(3),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(76,Eh)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(77,F1)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(78,L1)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(79,O0)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(80,P0))}}function R1(N,Lt){1&N&&o.GkF(0)}function M0(N,Lt){1&N&&o.GkF(0)}function T0(N,Lt){1&N&&o.GkF(0)}function E0(N,Lt){1&N&&o.GkF(0)}function A0(N,Lt){1&N&&o.GkF(0)}function w0(N,Lt){1&N&&o.GkF(0)}function D0(N,Lt){1&N&&o.GkF(0)}function I0(N,Lt){1&N&&o.GkF(0)}function k1(N,Lt){1&N&&o.GkF(0)}function Px(N,Lt){1&N&&o.GkF(0)}function S0(N,Lt){1&N&&o.GkF(0)}const F0=()=>({$implicit:"intervalFrom"}),Ah=()=>({$implicit:"intervalTo"});function L0(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"div",6),o.YNc(2,Px,1,0,"ng-container",7)(3,S0,1,0,"ng-container",7),o.qZA(),o.BQk()),2&N){o.oxw();const M=o.MAs(107);o.xp6(2),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(4,F0)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(5,Ah))}}function R0(N,Lt){1&N&&o.GkF(0)}function k0(N,Lt){1&N&&o.GkF(0)}const N0=()=>({$implicit:"fixedStartDate"}),U0=()=>({$implicit:"fixedEndDate"});function Mx(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"div",6),o.YNc(2,R0,1,0,"ng-container",7)(3,k0,1,0,"ng-container",7),o.qZA(),o.BQk()),2&N){o.oxw();const M=o.MAs(107);o.xp6(2),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(4,N0)),o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(5,U0))}}function B0(N,Lt){1&N&&o.GkF(0)}const N1=()=>({$implicit:"startTime"});function U1(N,Lt){if(1&N&&(o.ynx(0),o.YNc(1,B0,1,0,"ng-container",7),o.BQk()),2&N){o.oxw();const M=o.MAs(107);o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(2,N1))}}function Z0(N,Lt){1&N&&o.GkF(0)}function yC(N,Lt){1&N&&o.GkF(0)}function B1(N,Lt){1&N&&o.GkF(0)}function Z1(N,Lt){1&N&&o.GkF(0)}function Tx(N,Lt){1&N&&o.GkF(0)}function H0(N,Lt){1&N&&o.GkF(0)}function OC(N,Lt){1&N&&o.GkF(0)}function G0(N,Lt){1&N&&o.GkF(0)}function J0(N,Lt){1&N&&o.GkF(0)}function Q0(N,Lt){1&N&&o.GkF(0)}function PC(N,Lt){1&N&&o.GkF(0)}function V0(N,Lt){1&N&&o.GkF(0)}function MC(N,Lt){1&N&&o.GkF(0)}const Y0=()=>({$implicit:"categoryCriteria"});function W0(N,Lt){if(1&N&&(o.ynx(0),o.YNc(1,MC,1,0,"ng-container",7),o.BQk()),2&N){o.oxw();const M=o.MAs(107);o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(2,Y0))}}function z0(N,Lt){1&N&&o.GkF(0)}function Ex(N,Lt){1&N&&o.GkF(0)}const Ig=()=>({$implicit:"filterCriteria"});function Ax(N,Lt){if(1&N&&(o.ynx(0),o.YNc(1,Ex,1,0,"ng-container",7),o.BQk()),2&N){o.oxw();const M=o.MAs(107);o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(2,Ig))}}function wh(N,Lt){1&N&&o.GkF(0)}function H1(N,Lt){1&N&&o.GkF(0)}const eh=()=>({$implicit:"filterClients"});function G1(N,Lt){if(1&N&&(o.ynx(0),o.YNc(1,H1,1,0,"ng-container",7),o.BQk()),2&N){o.oxw();const M=o.MAs(107);o.xp6(),o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(2,eh))}}function j0(N,Lt){if(1&N&&(o.ynx(0),o._UZ(1,"imx-tree",24),o.BQk()),2&N){const M=o.oxw();o.xp6(),o.Q6J("treeOptionProvider",M.eventCategoryTreeOptionProviderService)("displayNodeFn",M.eventCategoryTreeOptionProviderService.displayNodesFn)("sortNodesFn",M.eventCategoryTreeOptionProviderService.sortNodesFn)("sortRootNodesFn",M.eventCategoryTreeOptionProviderService.sortRootNodesFn)("control",M.data.formHandler.formGroup.get("additionalCategories"))("formHandler",M.data.formHandler)("field",M.data.formHandler.formConfiguration.findFormFieldById("additionalCategories"))}}function th(N,Lt){1&N&&o.GkF(0)}const J1=()=>({$implicit:"additionalCategories"});function K0(N,Lt){if(1&N&&o.YNc(0,th,1,0,"ng-container",7),2&N){o.oxw();const M=o.MAs(107);o.Q6J("ngTemplateOutlet",M)("ngTemplateOutletContext",o.DdM(2,J1))}}function Q1(N,Lt){1&N&&o.GkF(0)}function Dh(N,Lt){1&N&&o.GkF(0)}function $0(N,Lt){1&N&&o.GkF(0)}function q0(N,Lt){1&N&&o.GkF(0)}function X0(N,Lt){1&N&&o.GkF(0)}function eb(N,Lt){if(1&N&&o._UZ(0,"imx-form-control",25),2&N){const M=Lt.$implicit,pe=o.oxw();o.Q6J("field",pe.data.formHandler.formConfiguration.findFormFieldById(M))("control",pe.data.formRow.get(M))("form",pe.data.formRow)("formHandler",pe.data.formHandler)("config",pe.data.formHandler.formConfiguration)}}const tb=()=>({$implicit:"whlPortalConfig"}),wx=()=>({$implicit:"permaLink"}),nh=()=>({$implicit:"markup"}),tg=()=>({$implicit:"navigation"}),Ih=()=>({$implicit:"frameFixedHeight"}),TC=()=>({$implicit:"containerId"}),nb=()=>({$implicit:"includeAsList"}),Dx=()=>({$implicit:"showUrlExtension"}),Ix=()=>({$implicit:"whenSearchDisplayed"}),ib=()=>({$implicit:"whereSearchDisplayed"}),V1=()=>({$implicit:"whatSearchDisplayed"}),ob=()=>({$implicit:"allSearchDisplayType"}),rb=()=>({$implicit:"showResetSearchButton"}),Y1=()=>({$implicit:"showWithoutDateSearchCheckbox"}),ab=()=>({$implicit:"showCurrentLocationSearchCheckbox"}),sb=()=>({$implicit:"showLanguageSwitch"}),gg=()=>({$implicit:"dateSearchType"}),ih=()=>({$implicit:"whatSearchDisplayType"}),$_=()=>({$implicit:"whatSearchKeyword"}),hg=()=>({$implicit:"whatSearchEventSeries"}),oh=()=>({$implicit:"bookable"}),Sx=()=>({$implicit:"bookablePreselected"}),Sh=()=>({$implicit:"freeEntry"}),W1=()=>({$implicit:"freeEntryPreselected"}),lb=()=>({$implicit:"tipsHeader"}),z1=()=>({$implicit:"tipsHeaderPreselected"}),j1=()=>({$implicit:"openAirEvents"}),Fx=()=>({$implicit:"openAirEventsPreselected"}),K1=()=>({$implicit:"filterByCategories"}),cb=()=>({$implicit:"filterByCriteria"}),$1=()=>({$implicit:"filterByClients"}),Lx=()=>({$implicit:"flexibleCategoryOccupation"}),q1=()=>({$implicit:"additionalCriteria"}),X1=()=>({$implicit:"flexibleCriteriaOccupation"}),db=()=>({$implicit:"showContributorInfo"}),mb=()=>({$implicit:"hideEventHeaderForMissingHeroimage"});let Rx=(()=>{class N{constructor(M,pe,Ze){this.data=M,this.eventCategoryTreeOptionProviderService=pe,this.entitiesMgrService=Ze,this.showNavigationNotIFrame=!1,this.showI18nTargetUrl=!0,this.eventListSelected=!1,this.whenSearchDisplayType=0,this.whatSearchDisplayType=0,this.categoryAsTree$=(0,ho.of)(!1),this.destroy$=new cs.xQ}ngOnInit(){this.title=this.data.formRow.get("id").value?"ID: "+this.data.formRow.get("id").value:"NEU",this._initNavigationChangeListener(),this._initNavigationNotIFrameChangeListener(),this._initIncludeAsListChangeListener(),this._initWhenSearchDisplayTypeChangeListener(),this._initWhatSearchDisplayTypeChangeListener(),this.categoryAsTree$=this.categoriesHaveTreeStructure()}_initNavigationChangeListener(){this.determineShowNavigationNotIFrame(this.data.formHandler.formGroup.controls.navigation.value,!0),this.data.formHandler.formGroup.controls.navigation&&this.data.formHandler.formGroup.controls.navigation.valueChanges.pipe((0,ma.R)(this.destroy$)).subscribe(M=>{this.determineShowNavigationNotIFrame(M,!1)})}determineShowNavigationNotIFrame(M,pe){0===M&&(this.data.formHandler.formGroup.controls.navigationNotIFrame.setValue(99),this.showNavigationNotIFrame=!1),M>0&&(pe||this.data.formHandler.formGroup.controls.navigationNotIFrame.setValue(0),this.showNavigationNotIFrame=!0)}_initNavigationNotIFrameChangeListener(){this.determineShowTargetUrl(this.data.formHandler.formGroup.controls.navigationNotIFrame.value),this.data.formHandler.formGroup.controls.navigationNotIFrame&&this.data.formHandler.formGroup.controls.navigationNotIFrame.valueChanges.pipe((0,ma.R)(this.destroy$)).subscribe(M=>{this.determineShowTargetUrl(M)})}determineShowTargetUrl(M){0===M?(this.data.formHandler.formGroup.controls.i18nTargetUrl.setValidators([l.i18nAllValidator,l.httpUrlValidator]),this.data.formHandler.formGroup.get("i18nTargetUrl").updateValueAndValidity({emitEvent:!1}),this.data.formHandler.formGroup.controls.standardStandaloneWhlPortalWidgetConfig.setValidators(null),this.data.formHandler.formGroup.controls.standardStandaloneWhlPortalWidgetConfig.setErrors(null),this.data.formHandler.formGroup.controls.standardStandaloneWhlPortalWidgetConfig.setValue(-1),this.showI18nTargetUrl=!0):1===M?(this.data.formHandler.formGroup.controls.standardStandaloneWhlPortalWidgetConfig.setValidators(l.selectValueRequiredValidator),this.data.formHandler.formGroup.get("standardStandaloneWhlPortalWidgetConfig").updateValueAndValidity({emitEvent:!1}),this.data.formHandler.formGroup.controls.i18nTargetUrl.setValidators(null),this.data.formHandler.formGroup.controls.i18nTargetUrl.setErrors(null),(0,l.resetI18nControl)(this.data.formHandler.formGroup.controls.i18nTargetUrl),this.showI18nTargetUrl=!1):(this.data.formHandler.formGroup.controls.standardStandaloneWhlPortalWidgetConfig.setValidators(null),this.data.formHandler.formGroup.controls.standardStandaloneWhlPortalWidgetConfig.setErrors(null),this.data.formHandler.formGroup.controls.standardStandaloneWhlPortalWidgetConfig.setValue(-1),this.data.formHandler.formGroup.controls.i18nTargetUrl.setValidators(null),this.data.formHandler.formGroup.get("i18nTargetUrl").updateValueAndValidity({emitEvent:!1}),this.data.formHandler.formGroup.controls.i18nTargetUrl.setErrors(null),(0,l.resetI18nControl)(this.data.formHandler.formGroup.controls.i18nTargetUrl),this.showI18nTargetUrl=!1)}_initIncludeAsListChangeListener(){this.eventListSelected=this.data.formHandler.formGroup.controls.includeAsList.value,this.data.formHandler.formGroup.controls.includeAsList&&this.data.formHandler.formGroup.controls.includeAsList.valueChanges.pipe((0,ma.R)(this.destroy$)).subscribe(M=>{this.eventListSelected=!!M})}_initWhenSearchDisplayTypeChangeListener(){this.whenSearchDisplayType=this.data.formHandler.formGroup.controls.dateSearchType.value,this.data.formHandler.formGroup.controls.dateSearchType&&this.data.formHandler.formGroup.controls.dateSearchType.valueChanges.pipe((0,ma.R)(this.destroy$)).subscribe(M=>{this.whenSearchDisplayType=M,this.handleWhenSearchDisplayType(M)})}handleWhenSearchDisplayType(M){this.data.formHandler.formGroup.controls.startTime.setValue("00:00"),0===M?(this.data.formHandler.formGroup.controls.fixedStartDate.setValue(null),this.data.formHandler.formGroup.controls.fixedEndDate.setValue(null)):1===M?(this.data.formHandler.formGroup.controls.fixedStartDate.setValue(null),this.data.formHandler.formGroup.controls.fixedEndDate.setValue(null),this.data.formHandler.formGroup.controls.intervalFrom.setValue(null),this.data.formHandler.formGroup.controls.intervalTo.setValue(null)):2===M?(this.data.formHandler.formGroup.controls.intervalFrom.setValue(null),this.data.formHandler.formGroup.controls.intervalTo.setValue(null)):(this.data.formHandler.formGroup.controls.fixedStartDate.setValue(null),this.data.formHandler.formGroup.controls.fixedEndDate.setValue(null),this.data.formHandler.formGroup.controls.intervalFrom.setValue(null),this.data.formHandler.formGroup.controls.intervalTo.setValue(null),this.data.formHandler.formGroup.controls.startTime.setValue(null))}lockWhatSearchFields(M){0===M?(this.data.formHandler.formGroup.controls.whatSearchKeyword.enable(),this.data.formHandler.formGroup.controls.whatSearchEventSeries.disable()):1===M&&(this.data.formHandler.formGroup.controls.whatSearchKeyword.disable(),this.data.formHandler.formGroup.controls.whatSearchEventSeries.enable())}_initWhatSearchDisplayTypeChangeListener(){this.lockWhatSearchFields(this.data.formHandler.formGroup.controls.whatSearchDisplayType.value),this.data.formHandler.formGroup.controls.whatSearchDisplayType&&this.data.formHandler.formGroup.controls.whatSearchDisplayType.valueChanges.pipe((0,ma.R)(this.destroy$)).subscribe(M=>{this.lockWhatSearchFields(M)})}categoriesHaveTreeStructure(){return this.entitiesMgrService.getAllEntitiesOfType("Category").pipe((0,Za.w)(M=>(0,ho.of)(M.items.some(pe=>void 0!==pe.children&&pe.children.length>0))))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(t.WI),o.Y36(zr.n),o.Y36(l.ImxEntitiesMgrService))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["ng-component"]],decls:108,vars:127,consts:[["icon","icon-whiteLabel","dialogType","form",3,"heading","subline","submitButtonDisabled"],["form-header","",3,"formHandler"],["id","whl-portal-widget-config-mgmt-edit",3,"formGroup"],[1,"dialog-form"],[1,"form__content-row"],[1,"form__content-group"],[1,"form__content-row","two-columns"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["title","entity.WhlPortalWidgetConfig.basis"],["translate",""],[4,"ngIf"],[1,"form__content-row","inline"],["class","form__content-row",4,"ngIf"],["title","imxplatform.main.search"],[3,"formHandler"],[1,"form__content-field-row","four-columns"],[1,"radio-align-end"],[1,"three-quarter"],["title","imxplatform.common-entity.filter.commonFilter.header"],[1,"list-group-wrapper"],[4,"ngIf","ngIfElse"],["categoryAsList",""],["title","entity.WhlPortalWidgetConfig.detail"],["imxFormControl",""],[3,"treeOptionProvider","displayNodeFn","sortNodesFn","sortRootNodesFn","control","formHandler","field"],[3,"field","control","form","formHandler","config"]],template:function(pe,Ze){if(1&pe&&(o.TgZ(0,"imx-dialog",0),o._UZ(1,"imx-language-switch-button",1),o.TgZ(2,"form",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6),o.YNc(7,fx,1,0,"ng-container",7)(8,gC,1,0,"ng-container",7),o.qZA(),o.YNc(9,_1,1,0,"ng-container",7),o.qZA()(),o.TgZ(10,"imx-accordion")(11,"imx-accordion-panel",8)(12,"h3",9),o._uU(13,"entity.WhlPortalWidgetConfig.navigation.name"),o.qZA(),o.TgZ(14,"div",4)(15,"div",5),o.YNc(16,f1,1,0,"ng-container",7)(17,x1,4,5,"ng-container",10),o.qZA()(),o.TgZ(18,"h3",9),o._uU(19,"entity.WhlPortalWidgetConfig.inclusionType"),o.qZA(),o.TgZ(20,"div",4)(21,"div",5)(22,"div",6),o.YNc(23,qv,1,0,"ng-container",7),o.TgZ(24,"div",11),o.YNc(25,v1,1,0,"ng-container",7),o.qZA()(),o.YNc(26,Xv,1,0,"ng-container",7)(27,xx,3,3,"div",12)(28,C1,1,0,"ng-container",7),o.qZA()(),o.YNc(29,Xg,41,81,"ng-container",10),o.qZA(),o.TgZ(30,"imx-accordion-panel",13)(31,"h3",9),o._uU(32,"entity.WhlPortalWidgetConfig.displaySearch"),o.qZA(),o.TgZ(33,"div",4)(34,"div",5),o.YNc(35,R1,1,0,"ng-container",7)(36,M0,1,0,"ng-container",7)(37,T0,1,0,"ng-container",7)(38,E0,1,0,"ng-container",7)(39,A0,1,0,"ng-container",7)(40,w0,1,0,"ng-container",7)(41,D0,1,0,"ng-container",7)(42,I0,1,0,"ng-container",7),o.qZA()(),o.TgZ(43,"h3",9),o._uU(44,"entity.WhlPortalWidgetConfig.preAllocationWhenSearch"),o.qZA(),o.TgZ(45,"div",4)(46,"div",5),o.YNc(47,k1,1,0,"ng-container",7)(48,L0,4,6,"ng-container",10)(49,Mx,4,6,"ng-container",10)(50,U1,2,3,"ng-container",10),o.qZA()(),o._UZ(51,"imx-location-search-type-form-panel",14),o.TgZ(52,"h3",9),o._uU(53,"entity.WhlPortalWidgetConfig.preAllocationWhatSearch"),o.qZA(),o.TgZ(54,"div",4)(55,"div",5)(56,"div",15)(57,"div",16),o.YNc(58,Z0,1,0,"ng-container",7),o.qZA(),o.TgZ(59,"div",17),o.YNc(60,yC,1,0,"ng-container",7)(61,B1,1,0,"ng-container",7),o.qZA()()()(),o.TgZ(62,"h3",9),o._uU(63,"entity.WhlPortalWidgetConfig.additionalSearchParams"),o.qZA(),o.TgZ(64,"div",4)(65,"div",5)(66,"div",6),o.YNc(67,Z1,1,0,"ng-container",7)(68,Tx,1,0,"ng-container",7),o.qZA(),o.TgZ(69,"div",6),o.YNc(70,H0,1,0,"ng-container",7)(71,OC,1,0,"ng-container",7),o.qZA(),o.TgZ(72,"div",6),o.YNc(73,G0,1,0,"ng-container",7)(74,J0,1,0,"ng-container",7),o.qZA(),o.TgZ(75,"div",6),o.YNc(76,Q0,1,0,"ng-container",7)(77,PC,1,0,"ng-container",7),o.qZA()()()(),o.TgZ(78,"imx-accordion-panel",18)(79,"h3",9),o._uU(80,"entity.WhlPortalWidgetConfig.filterElements"),o.qZA(),o.TgZ(81,"div",4)(82,"div",5),o.YNc(83,V0,1,0,"ng-container",7)(84,W0,2,3,"ng-container",10)(85,z0,1,0,"ng-container",7)(86,Ax,2,3,"ng-container",10)(87,wh,1,0,"ng-container",7)(88,G1,2,3,"ng-container",10),o.qZA()(),o.TgZ(89,"h3",9),o._uU(90,"entity.WhlPortalWidgetConfig.filterPreset"),o.qZA(),o.TgZ(91,"div",4)(92,"div",5)(93,"div",19),o.YNc(94,j0,2,7,"ng-container",20),o.ALo(95,"async"),o.YNc(96,K0,1,3,"ng-template",null,21,o.W1O),o.qZA(),o.YNc(98,Q1,1,0,"ng-container",7)(99,Dh,1,0,"ng-container",7)(100,$0,1,0,"ng-container",7),o.qZA()()(),o.TgZ(101,"imx-accordion-panel",22)(102,"div",4)(103,"div",5),o.YNc(104,q0,1,0,"ng-container",7)(105,X0,1,0,"ng-container",7),o.qZA()()()()()()(),o.YNc(106,eb,1,5,"ng-template",null,23,o.W1O)),2&pe){const xn=o.MAs(97),Si=o.MAs(107);o.Q6J("heading","entity.WhlPortalWidgetConfig.entityName")("subline",Ze.title)("submitButtonDisabled",Ze.data.formRow.invalid||Ze.data.formRow.pristine),o.xp6(),o.Q6J("formHandler",Ze.data.formHandler),o.xp6(),o.Q6J("formGroup",Ze.data.formRow),o.xp6(5),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(91,tb)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(92,wx)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(93,nh)),o.xp6(7),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(94,tg)),o.xp6(),o.Q6J("ngIf",Ze.showNavigationNotIFrame),o.xp6(6),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(95,Ih)),o.xp6(2),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(96,TC)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(97,nb)),o.xp6(),o.Q6J("ngIf",Ze.eventListSelected),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(98,Dx)),o.xp6(),o.Q6J("ngIf",Ze.eventListSelected),o.xp6(6),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(99,Ix)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(100,ib)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(101,V1)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(102,ob)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(103,rb)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(104,Y1)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(105,ab)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(106,sb)),o.xp6(5),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(107,gg)),o.xp6(),o.Q6J("ngIf",0===Ze.whenSearchDisplayType),o.xp6(),o.Q6J("ngIf",2===Ze.whenSearchDisplayType),o.xp6(),o.Q6J("ngIf",0===Ze.whenSearchDisplayType||1===Ze.whenSearchDisplayType||2===Ze.whenSearchDisplayType),o.xp6(),o.Q6J("formHandler",Ze.data.formHandler),o.xp6(7),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(108,ih)),o.xp6(2),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(109,$_)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(110,hg)),o.xp6(6),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(111,oh)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(112,Sx)),o.xp6(2),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(113,Sh)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(114,W1)),o.xp6(2),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(115,lb)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(116,z1)),o.xp6(2),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(117,j1)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(118,Fx)),o.xp6(6),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(119,K1)),o.xp6(),o.Q6J("ngIf",Ze.data.formHandler.formGroup.controls.filterByCategories.value),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(120,cb)),o.xp6(),o.Q6J("ngIf",Ze.data.formHandler.formGroup.controls.filterByCriteria.value),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(121,$1)),o.xp6(),o.Q6J("ngIf",Ze.data.formHandler.formGroup.controls.filterByClients.value),o.xp6(6),o.Q6J("ngIf",o.lcZ(95,89,Ze.categoryAsTree$))("ngIfElse",xn),o.xp6(4),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(122,Lx)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(123,q1)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(124,X1)),o.xp6(4),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(125,db)),o.xp6(),o.Q6J("ngTemplateOutlet",Si)("ngTemplateOutletContext",o.DdM(126,mb))}},dependencies:[x.a,u.A,Tt.H,Me.q,m.O5,m.tP,b._Y,b.JL,b.sg,I.Pi,ue.Z,ge.U,Ph,m.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.two-columns[_ngcontent-%COMP%]{align-items:center}.two-columns[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex-basis:50%}.two-columns[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-right:15px}.two-columns[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]     .mat-mdc-form-field-infix label{margin-bottom:5px}.header-right[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:flex-end}.header-right[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{margin-right:10px}.four-columns[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex-basis:25%}@media (min-width: 1401px){.four-columns[_ngcontent-%COMP%] > .three-quarter[_ngcontent-%COMP%]{flex-basis:75%}}@media (max-width: 1400px){.four-columns[_ngcontent-%COMP%] > .three-quarter[_ngcontent-%COMP%]{flex-basis:50%}}.radio-align-end[_ngcontent-%COMP%]     .imx-form-control, .radio-align-end[_ngcontent-%COMP%]     .imx-radio-button-group, .radio-align-end[_ngcontent-%COMP%]     imx-base-radio-button-group, .radio-align-end[_ngcontent-%COMP%]     .mat-mdc-radio-group{height:100%}.radio-align-end[_ngcontent-%COMP%] > .imx-form-control[_ngcontent-%COMP%]    {padding:3px 0 20px}.radio-align-end[_ngcontent-%COMP%] > .imx-form-control[_ngcontent-%COMP%]    >.imx-radio-button-group{padding-bottom:2px}.radio-align-end[_ngcontent-%COMP%] > .imx-form-control[_ngcontent-%COMP%]    >.imx-radio-button-group>imx-base-radio-button-group>.mat-mdc-radio-group{justify-content:space-between;margin-bottom:4.5px}  .form__content-row.inline .mat-mdc-form-field .mat-mdc-form-field-infix{display:flex}  .form__content-row.inline .mat-mdc-form-field .mat-mdc-form-field-infix>*{align-self:center;flex:50%}  .imx-radio-button-group .mat-mdc-radio-group.inline{align-items:baseline}.form__content-row.inline[_ngcontent-%COMP%] > .imx-form-control[_ngcontent-%COMP%]{width:100%}.list-group-wrapper[_ngcontent-%COMP%]{width:100%}.list-group-wrapper[_ngcontent-%COMP%]     .tree-group, .list-group-wrapper[_ngcontent-%COMP%]   .list-group[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ced4e0;height:18vh;overflow:hidden;width:100%;margin-bottom:10px}.radios[_ngcontent-%COMP%]{margin-left:20px}"]})}return N})(),gf=(()=>{class N{constructor(M,pe){this.data=M,this.eventmanagerDataAccessService=pe}ngOnInit(){this.tokenFormControl=new b.p4,this.eventmanagerDataAccessService.getWhlPortalWidgetTokenById(this.data.whlPortalWidgetId).subscribe(M=>this.tokenFormControl.setValue(this.createScriptTag(M)))}createScriptTag(M){return M}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(t.WI),o.Y36(yn.b))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["ng-component"]],decls:5,vars:4,consts:[["icon","icon-whiteLabel","dialogType","form",3,"heading","submitButtonLabel","cancelButtonLabel"],["id","whl-portal-widget-config-mgmt-edit"],["matInput","",1,"token-field",3,"formControl"]],template:function(pe,Ze){1&pe&&(o.TgZ(0,"imx-dialog",0)(1,"form",1)(2,"mat-form-field")(3,"textarea",2),o._uU(4,"          "),o.qZA()()()()),2&pe&&(o.Q6J("heading","entity.WhlPortalWidgetConfig.token")("submitButtonLabel",!1)("cancelButtonLabel","imxplatform.common-entity.edit.close"),o.xp6(3),o.Q6J("formControl",Ze.tokenFormControl))},dependencies:[x.a,b._Y,b.Fj,b.JJ,b.JL,b.F,wg.Nt,Wg.KE,b.oH],styles:[".token-field[_ngcontent-%COMP%]{color:#0a2663;border:1px solid #ced4e0}"]})}return N})();const rh=new l.FormConfiguration([(0,l.idFilterField)("WhlPortalWidgetConfig"),new l.Select("client","entity.Client.entityName",{optionProvider:l.ClientOptionProviderService,extractor:(0,l.numberExtractor)("client"),placeholder:"imxplatform.common.select-placeholder-any-client",initialValue:-1}),new l.Select("deliveryChannel","entity.DeliveryChannel.entityName",{optionProvider:l.OwnDeliveryChannelOptionProviderService,extractor:(0,l.numberExtractor)("deliveryChannel"),placeholder:"imxplatform.common.select-placeholder-any-delivery-channel",initialValue:-1}),new l.Input("text","fulltext","imxeventmanager.whl-portal-widget-config.filter.fulltext"),new l.Input("text","WhlPortalWidgetConfig_token","imxeventmanager.whl-portal-widget-config.filter.token",{})]);let Fu=(()=>{class N extends l.AbstractFormHandler{constructor(M,pe,Ze,xn){super(rh,void 0,M,pe,xn),this.runtimeContextService=pe,this.imxSecurityManagerService=Ze,this.formatterService=xn}getEntityType(){return"WhlPortalWidgetConfig"}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.LFG(l.NgControlBuilderService),o.LFG(s.Ze),o.LFG(s.Xh),o.LFG(l.FormatterService))};static#t=this.\u0275prov=o.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})(),xg=(()=>{class N{constructor(M){this.addressPoiLocationAutocompleteService=M}getAutocompleteHolders(M,pe,Ze){return this.addressPoiLocationAutocompleteService.getAutocompleteHolders(M,pe,Ze).pipe((0,rn.U)(xn=>xn.filter(Si=>Si.state===wo.h_.key)))}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.LFG(l.AddressPoiLocationAutocompleteService))};static#t=this.\u0275prov=o.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})(),ah=(()=>{class N extends l.OptionProvider{constructor(M,pe){super(),this.entitiesMgrService=M,this.readI18nPipe=pe}getOptions(M,pe){return this.entitiesMgrService.getAllEntitiesOfType("Criterion").pipe((0,rn.U)(Ze=>Ze.items.filter(xn=>xn.externalVisibility).map(xn=>({label:xn.client.name+" - "+this.readI18nPipe.transform(xn.i18nName),value:xn.id})).sort((xn,Si)=>xn.label.localeCompare(Si.label))))}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.LFG(s.qB),o.LFG(l.ReadI18nPipe))};static#t=this.\u0275prov=o.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})(),A_=(()=>{class N extends l.OptionProvider{constructor(M,pe){super(),this.entitiesMgrService=M,this.translateService=pe}concatKey(M,pe){return M&&pe?M+" - "+pe:M&&!pe?M:!M&&pe?" - "+pe:""}concatI18nWithString(M,pe){const Ze=Object.create(pe);return Object.keys(pe).forEach(xn=>{Ze[xn]=this.concatKey(M,pe[xn])}),Ze}getOptions(M,pe){return this.entitiesMgrService.getAllEntitiesOfType("Criterion").pipe((0,rn.U)(Ze=>Ze.items.map(xn=>({label:this.concatI18nWithString(xn.client.name,xn.i18nName),value:xn.id})).sort((xn,Si)=>(0,l.compareI18n)(xn.label,Si.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.LFG(s.qB),o.LFG(I.sK))};static#t=this.\u0275prov=o.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();var ub=a(80648);let Sg=(()=>{class N extends l.OptionProvider{constructor(M){super(),this.entitiesMgrService=M}getOptions(M,pe){return this.entitiesMgrService.getAllEntitiesOfType("WhlPortalConfig").pipe((0,rn.U)(Ze=>Ze.items.map(xn=>({label:xn.name,value:xn.id})).sort((xn,Si)=>xn.label.localeCompare(Si.label))))}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.LFG(s.qB))};static#t=this.\u0275prov=o.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})(),ev=(()=>{class N extends l.OptionProvider{constructor(M){super(),this.entitiesMgrService=M}getOptions(M,pe){return this.entitiesMgrService.getAllEntitiesOfType("WhlPortalWidgetConfigGroupType").pipe((0,rn.U)(Ze=>Ze.items.map(xn=>({label:xn.i18nName,value:xn.id}))))}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.LFG(s.qB))};static#t=this.\u0275prov=o.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})(),tv=(()=>{class N extends l.OptionProvider{constructor(M,pe,Ze){super(),this.entitiesMgrService=M,this.i18nPipe=pe,this.translateService=Ze}getOptions(M,pe){return this.entitiesMgrService.getAllEntitiesOfType("WhlPortalWidgetConfig").pipe((0,rn.U)(Ze=>Ze.items.map(xn=>({label:this.translateService.instant("imxeventmanager.whl-portal-widget-config.dialog.standardStandaloneWhlPortalWidgetConfigOptions.whlPortalConfig")+": "+xn.whlPortalConfig.name+" / "+this.translateService.instant("imxeventmanager.whl-portal-widget-config.dialog.standardStandaloneWhlPortalWidgetConfigOptions.permaLink")+": "+this.i18nPipe.transform(xn.permaLink)+" / "+this.translateService.instant("imxeventmanager.whl-portal-widget-config.dialog.standardStandaloneWhlPortalWidgetConfigOptions.client")+": "+xn.whlPortalConfig.client.name+"("+xn.whlPortalConfig.client.id+")",value:xn.id})).sort((xn,Si)=>xn.label.localeCompare(Si.label))))}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.LFG(s.qB),o.LFG(l.ReadI18nPipe),o.LFG(I.sK))};static#t=this.\u0275prov=o.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})(),pb=(()=>{class N extends l.AbstractEntityPermissionService{constructor(M,pe,Ze,xn){super(M,pe,Ze,xn),this.imxSecurityManagerService=M,this.runtimeContext=pe,this.configurationProvider=Ze,this.dataAccessService=xn}calcReadPermission(M){return this.hasWidgetPermission()}calcReadPermissionById(M){return this.hasWidgetPermission()}calcSavePermissionById(M){return this.hasWidgetPermission()}calcSavePermission(M){return this.hasWidgetPermission()}hasWidgetPermission(){return(0,ho.of)(this.imxSecurityManagerService.hasAnyPermission([Us.M.F_WHL_PORTAL_CONFIG_ADMINISTRATION_WIDGETS,Us.M.F_WHL_PORTAL_CONFIG_ADMINISTRATION_WIDGETS_OWN_CLIENT]))}getEntityType(){return"WhlPortalWidgetConfig"}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.LFG(s.Xh),o.LFG(s.Ze),o.LFG(l.ConfigurationProvider),o.LFG(l.ImxPlatformDataAccessService))};static#t=this.\u0275prov=o.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();function kx(N){return Lt=>{const M=(0,l.extractProperty)(Lt,N);if(M){const pe=M.match("P(\\d+)DT1S");return pe&&pe.length>0?Number.parseInt(pe[1],10):void 0}}}function Nx(N){return(Lt,M)=>{const pe=(0,l.pathInsertor)(N);pe(null!=Lt?"P"+Lt+"DT1S":Lt,M)}}const Lh=new l.FormConfiguration([new l.AnyField("id",""),new l.Select("whlPortalConfig","entity.WhlPortalWidgetConfig.whlPortalConfig",{optionProvider:Sg,extractor:(0,l.pathExtractor)("whlPortalConfig.id"),insertor:(0,l.pathInsertor)("whlPortalConfig.id"),required:!0}),new l.I18nMultiInput("permaLink","entity.WhlPortalWidgetConfig.permaLink",{renderLabel:!0,required:!0}),new l.Checkbox("markup","entity.WhlPortalWidgetConfig.markup",{initialValue:!1}),new l.RadioButtonGroup("navigation","entity.WhlPortalWidgetConfig.navigation.name",{optionProvider:[{value:0,label:"entity.WhlPortalWidgetConfig.navigation.0"},{value:1,label:"entity.WhlPortalWidgetConfig.navigation.1"},{value:2,label:"entity.WhlPortalWidgetConfig.navigation.2"}],groupRenderMode:"inline",renderLabel:!1}),new l.RadioButtonGroup("navigationNotIFrame","entity.WhlPortalWidgetConfig.navigation.name",{optionProvider:[{value:0,label:"entity.WhlPortalWidgetConfig.navigation.targetUrl"},{value:1,label:"entity.WhlPortalWidgetConfig.standardWhlPortalWidgetConfig"}],groupRenderMode:"inline",extractor:function iv(){return N=>(0,l.extractProperty)(N,"i18nTargetUrl")?0:(0,l.extractProperty)(N,"standardStandaloneWhlPortalWidgetConfig")?1:void 0}(),insertor:(0,l.noneInsertor)(),initialValue:0,renderLabel:!1}),new l.I18nMultiInput("i18nTargetUrl","entity.WhlPortalWidgetConfig.targetUrl",{extendedValidators:l.httpUrlValidator}),new l.Select("standardStandaloneWhlPortalWidgetConfig","entity.WhlPortalWidgetConfig.standardWhlPortalWidgetConfig",{optionProvider:tv,placeholder:"imxplatform.common.select-placeholder-demand",initialValue:-1,renderLabel:!1,required:!1,extractor:(0,l.pathExtractor)("standardStandaloneWhlPortalWidgetConfig.id"),insertor:(0,l.pathInsertor)("standardStandaloneWhlPortalWidgetConfig.id",!0)}),new l.Checkbox("frameFixedHeight","entity.WhlPortalWidgetConfig.frameFixedHeight",{initialValue:!1}),new l.Input("text","containerId","entity.WhlPortalWidgetConfig.containerId"),new l.RadioButtonGroup("includeAsList","entity.WhlPortalWidgetConfig.navigation.name",{optionProvider:[{value:!0,label:"entity.WhlPortalWidgetConfig.includeAsList.name"},{value:!1,label:"entity.WhlPortalWidgetConfig.includeAsTeaser"}],groupRenderMode:"inline",renderLabel:!1,extractor:(0,l.pathExtractor)("includeAsList"),insertor:(0,l.pathInsertor)("includeAsList")}),new l.Input("int","maxEventAmount","entity.WhlPortalWidgetConfig.maxEventAmount"),new l.Checkbox("showUrlExtension","entity.WhlPortalWidgetConfig.showUrlExtension",{initialValue:!0}),new l.Select("whlGroupType","entity.WhlPortalWidgetConfig.groupType",{optionProvider:ev,extractor:(0,l.pathExtractor)("groupType.id"),insertor:(0,l.pathInsertor)("groupType.id"),required:!0,renderLabel:!0}),new l.RadioButtonGroup("viewAsList","entity.WhlPortalWidgetConfig.viewAs",{optionProvider:[{value:!0,label:"entity.WhlPortalWidgetConfig.viewAsList"},{value:!1,label:"entity.WhlPortalWidgetConfig.viewAsGallery"}],groupRenderMode:"inline"}),new l.Checkbox("groupingElements","entity.WhlPortalWidgetConfig.groupingElements",{initialValue:!1}),new l.Checkbox("showTipMarker","entity.WhlPortalWidgetConfig.showTipMarker",{initialValue:!1}),new l.Checkbox("showTeaserBackground","entity.WhlPortalWidgetConfig.showTeaserBackground",{initialValue:!1}),new l.Checkbox("showFooter","entity.WhlPortalWidgetConfig.showFooter",{initialValue:!1}),new l.Checkbox("showDate","entity.WhlPortalWidgetConfig.showDate",{initialValue:!1}),new l.Checkbox("eventImages","entity.WhlPortalWidgetConfig.eventImages",{initialValue:!1}),new l.Checkbox("premiumEvents","entity.WhlPortalWidgetConfig.premiumEvents",{initialValue:!1}),new l.Checkbox("footerLinks","entity.WhlPortalWidgetConfig.footerLinks",{initialValue:!1}),new l.Checkbox("disclaimer","entity.WhlPortalWidgetConfig.disclaimer",{initialValue:!1}),new l.Checkbox("useCriteriaInsteadOfCategories","entity.WhlPortalWidgetConfig.useCriteriaInsteadOfCategories",{initialValue:!1}),new l.Checkbox("successiveEventsAtIdenticalLocation","entity.WhlPortalWidgetConfig.successiveEventsAtIdenticalLocation",{initialValue:!1}),new l.Checkbox("showEventSeriesInformation","entity.WhlPortalWidgetConfig.showEventSeriesInformation",{initialValue:!0}),new l.Input("int","maxEventTitleLength","entity.WhlPortalWidgetConfig.maxEventTitleLengthCut"),new l.Input("int","maxAmountDisplayedEvents","entity.WhlPortalWidgetConfig.maxAmountDisplayedEvents"),new l.Input("int","maxAmountReloadedEvents","entity.WhlPortalWidgetConfig.maxAmountReloadedEvents"),new l.Checkbox("showRunningEvents","entity.WhlPortalWidgetConfig.showRunningEvents",{initialValue:!1}),new l.Checkbox("showOnlyFirstEventDate","entity.WhlPortalWidgetConfig.showOnlyFirstEventDate",{initialValue:!1}),new l.Checkbox("showDatamanagerButton","entity.WhlPortalWidgetConfig.showDatamanagerButton",{initialValue:!1}),new l.Checkbox("headerVariantKeyvisual","entity.WhlPortalWidgetConfig.headerVariantKeyvisual",{initialValue:!1}),new l.I18nMultiInput("i18nHeadline","entity.WhlPortalWidgetConfig.headline",{renderLabel:!0}),new l.Checkbox("headingShowSearchInfo","entity.WhlPortalWidgetConfig.headingShowSearchInfo",{initialValue:!1}),new l.Checkbox("headingSwitchForView","entity.WhlPortalWidgetConfig.headingSwitchForView",{initialValue:!1}),new l.Checkbox("headingWatchlist","entity.WhlPortalWidgetConfig.headingWatchlist",{initialValue:!1}),new l.Checkbox("galleryView","entity.WhlPortalWidgetConfig.galleryView",{initialValue:!1}),new l.Checkbox("showSharingButton","entity.WhlPortalWidgetConfig.showSharingButton",{initialValue:!1}),new l.Checkbox("whenSearchDisplayed","entity.WhlPortalWidgetConfig.whenSearchDisplayed",{initialValue:!1,extractor:(0,l.booleanInvertExtractor)("whenSearchDisplayed"),insertor:(0,l.booleanInvertInsertor)("whenSearchDisplayed")}),new l.Checkbox("whereSearchDisplayed","entity.WhlPortalWidgetConfig.whereSearchDisplayed",{initialValue:!1,extractor:(0,l.booleanInvertExtractor)("whereSearchDisplayed"),insertor:(0,l.booleanInvertInsertor)("whereSearchDisplayed")}),new l.Checkbox("whatSearchDisplayed","entity.WhlPortalWidgetConfig.whatSearchDisplayed",{initialValue:!1,extractor:(0,l.booleanInvertExtractor)("whatSearchDisplayed"),insertor:(0,l.booleanInvertInsertor)("whatSearchDisplayed")}),new l.RadioButtonGroup("allSearchDisplayType","entity.WhlPortalWidgetConfig.allSearchDisplayType.expandedIfPossible",{optionProvider:[{value:0,label:"entity.WhlPortalWidgetConfig.allSearchDisplayType.expandedIfPossible"},{value:1,label:"entity.WhlPortalWidgetConfig.allSearchDisplayType.alwaysCollapsed"},{value:2,label:"entity.WhlPortalWidgetConfig.allSearchDisplayType.alwaysExpanded"}],extractor:(0,l.pathExtractor)("allSearchDisplayType"),insertor:(0,l.pathInsertor)("allSearchDisplayType"),readonly:!1,renderLabel:!1}),new l.Checkbox("showResetSearchButton","entity.WhlPortalWidgetConfig.showResetSearchButton",{initialValue:!1}),new l.Checkbox("showWithoutDateSearchCheckbox","entity.WhlPortalWidgetConfig.showWithoutDateSearchCheckbox",{initialValue:!0}),new l.Checkbox("showCurrentLocationSearchCheckbox","entity.WhlPortalWidgetConfig.showCurrentLocationSearchCheckbox",{initialValue:!0}),new l.Checkbox("showLanguageSwitch","entity.WhlPortalWidgetConfig.showLanguageSwitch",{initialValue:!1}),new l.RadioButtonGroup("dateSearchType","entity.WhlPortalWidgetConfig.whenSearchDisplayType.0",{optionProvider:[{value:null,label:"entity.WhlPortalWidgetConfig.whenSearchDisplayType.-1"},{value:0,label:"entity.WhlPortalWidgetConfig.whenSearchDisplayType.0"},{value:2,label:"entity.WhlPortalWidgetConfig.whenSearchDisplayType.2"},{value:1,label:"entity.WhlPortalWidgetConfig.whenSearchDisplayType.1"}],extractor:(0,l.pathExtractor)("dateSearchType"),insertor:(0,l.pathInsertor)("dateSearchType"),readonly:!1,renderLabel:!1,groupRenderMode:"inline"}),new l.Input("number","intervalFrom","entity.WhlPortalWidgetConfig.intervalFrom",{extractor:kx("intervalFrom"),insertor:Nx("intervalFrom")}),new l.Input("number","intervalTo","entity.WhlPortalWidgetConfig.intervalTo",{extractor:kx("intervalTo"),insertor:Nx("intervalTo")}),new l.DateField("fixedStartDate","entity.WhlPortalWidgetConfig.fixedStartDate"),new l.DateField("fixedEndDate","entity.WhlPortalWidgetConfig.fixedEndDate"),new l.Input("time","startTime","entity.WhlPortalWidgetConfig.startTime"),new l.RadioButtonGroup("locationSearchType","entity.WhlPortalWidgetConfig.whereSearchDisplayType.0",{optionProvider:[{value:null,label:"entity.WhlPortalWidgetConfig.whereSearchDisplayType.-1"},{value:0,label:"entity.WhlPortalWidgetConfig.whereSearchDisplayType.0"},{value:1,label:"entity.WhlPortalWidgetConfig.whereSearchDisplayType.1"},{value:2,label:"entity.WhlPortalWidgetConfig.whereSearchDisplayType.2"},{value:3,label:"entity.WhlPortalWidgetConfig.whereSearchDisplayType.3"},{value:4,label:"entity.WhlPortalWidgetConfig.whereSearchDisplayType.4"}],extractor:(0,l.pathExtractor)("locationSearchType"),insertor:(0,l.pathInsertor)("locationSearchType"),readonly:!1,renderLabel:!1,groupRenderMode:"inline"}),new l.Input("text","initialSearchZipcode","imxeventmanager.whl-portal-widget-config.dialog.zipcode"),new l.Input("int","initialSearchRadius","entity.WhlPortalWidgetConfig.initialSearchRadius"),new l.Input("number","initialSearchCoordinates.latitude","imxeventmanager.whl-portal-widget-config.dialog.latitude",{extractor:(0,l.pathExtractor)("initialSearchCoordinates.latitude"),insertor:(0,l.pathInsertor)("initialSearchCoordinates.latitude")}),new l.Input("number","initialSearchCoordinates.longitude","imxeventmanager.whl-portal-widget-config.dialog.longitude",{extractor:(0,l.pathExtractor)("initialSearchCoordinates.longitude"),insertor:(0,l.pathInsertor)("initialSearchCoordinates.longitude")}),new l.Checkbox("searchLocationsAsDropdown","entity.WhlPortalWidgetConfig.searchLocationsAsDropdown",{initialValue:!1}),new l.ArrayField("searchLocations",!0,[]),new l.AutocompleteField("searchLocationsAutocomplete","entity.AddressPoi.entityName",{autocompleteService:xg,insertor:(0,l.noneInsertor)(),useAnyNameHolder:!1,renderLabel:!1}),new l.I18nMultiInput("initialSearchDescription","entity.WhlPortalWidgetConfig.initialSearchDescription",{renderLabel:!0}),new l.ArrayField("searchPoiGroups",!0,[]),new l.RadioButtonGroup("whatSearchDisplayType","entity.WhlPortalWidgetConfig.whatSearchKeyword",{optionProvider:[{value:0,label:"entity.WhlPortalWidgetConfig.whatSearchKeyword"},{value:1,label:"entity.WhlPortalWidgetConfig.whatSearchEventSeries"}],extractor:(0,l.pathExtractor)("whatSearchDisplayType"),insertor:(0,l.pathInsertor)("whatSearchDisplayType"),readonly:!1,renderLabel:!1,initialValue:0}),new l.I18nMultiInput("whatSearchKeyword","entity.WhlPortalWidgetConfig.whatSearchKeyword",{renderLabel:!1}),new l.Select("whatSearchEventSeries","",{optionProvider:ub.i,placeholder:"imxplatform.common.select-placeholder-demand",initialValue:-1,renderLabel:!1,extractor:(0,l.pathExtractor)("whatSearchEventSeries.id"),insertor:(0,l.pathInsertor)("whatSearchEventSeries.id",!0)}),new l.Checkbox("bookable","entity.WhlPortalWidgetConfig.bookable",{initialValue:!1}),new l.Checkbox("bookablePreselected","entity.WhlPortalWidgetConfig.preselected",{initialValue:!1}),new l.Checkbox("freeEntry","entity.WhlPortalWidgetConfig.freeEntry",{initialValue:!1}),new l.Checkbox("freeEntryPreselected","entity.WhlPortalWidgetConfig.preselected",{initialValue:!1}),new l.Checkbox("tipsHeader","entity.WhlPortalWidgetConfig.tipsHeader",{initialValue:!1}),new l.Checkbox("tipsHeaderPreselected","entity.WhlPortalWidgetConfig.preselected",{initialValue:!1}),new l.Checkbox("openAirEvents","entity.WhlPortalWidgetConfig.openAirEvents",{initialValue:!1}),new l.Checkbox("openAirEventsPreselected","entity.WhlPortalWidgetConfig.preselected",{initialValue:!1}),new l.Checkbox("filterByCategories","entity.WhlPortalWidgetConfig.filterByCategories",{initialValue:!1}),new l.MultiSelect("categoryCriteria","entity.WhlPortalWidgetConfig.categoryCriteria",{optionProvider:ah,extractor:(0,l.arrayValueExtractor)("categoryCriteria","id"),insertor:(0,l.arrayValueInsertor)("categoryCriteria","id"),baseEntityFieldOption:{hideInList:!0}}),new l.Checkbox("filterByCriteria","entity.WhlPortalWidgetConfig.filterByCriteria",{initialValue:!1}),new l.MultiSelect("filterCriteria","entity.WhlPortalWidgetConfig.filterCriteria",{optionProvider:ah,extractor:(0,l.arrayValueExtractor)("filterCriteria","id"),insertor:(0,l.arrayValueInsertor)("filterCriteria","id"),baseEntityFieldOption:{hideInList:!0}}),new l.Checkbox("filterByClients","entity.WhlPortalWidgetConfig.filterByClients",{initialValue:!1}),new l.MultiSelect("filterClients","entity.WhlPortalWidgetConfig.filterClients",{optionProvider:l.ClientOptionProviderService,extractor:(0,l.arrayValueExtractor)("filterClients","id"),insertor:(0,l.arrayValueInsertor)("filterClients","id"),baseEntityFieldOption:{hideInList:!0}}),new l.MultiSelect("additionalCategories","entity.WhlPortalWidgetConfig.additionalCategories",{optionProvider:ys.O,extractor:(0,l.arrayValueExtractor)("additionalCategories","id"),insertor:(0,l.arrayValueInsertor)("additionalCategories","id"),baseEntityFieldOption:{hideInList:!0}}),new l.RadioButtonGroup("flexibleCategoryOccupation","entity.WhlPortalWidgetConfig.flexibleCategoryOccupation.0",{optionProvider:[{value:!1,label:"entity.WhlPortalWidgetConfig.flexibleCategoryOccupationValues.0"},{value:!0,label:"entity.WhlPortalWidgetConfig.flexibleCategoryOccupationValues.1"}],extractor:(0,l.pathExtractor)("flexibleCategoryOccupation"),insertor:(0,l.pathInsertor)("flexibleCategoryOccupation"),readonly:!1,renderLabel:!1,groupRenderMode:"inline"}),new l.MultiSelect("additionalCriteria","entity.WhlPortalWidgetConfig.additionalCriteria",{optionProvider:A_,extractor:(0,l.arrayValueExtractor)("additionalCriteria","id"),insertor:(0,l.arrayValueInsertor)("additionalCriteria","id"),baseEntityFieldOption:{hideInList:!0}}),new l.RadioButtonGroup("flexibleCriteriaOccupation","entity.WhlPortalWidgetConfig.flexibleCategoryOccupation.0",{optionProvider:[{value:!1,label:"entity.WhlPortalWidgetConfig.flexibleCategoryOccupationValues.0"},{value:!0,label:"entity.WhlPortalWidgetConfig.flexibleCategoryOccupationValues.1"}],extractor:(0,l.pathExtractor)("flexibleCriteriaOccupation"),insertor:(0,l.pathInsertor)("flexibleCriteriaOccupation"),readonly:!1,renderLabel:!1,groupRenderMode:"inline"}),new l.Checkbox("showContributorInfo","entity.WhlPortalWidgetConfig.showContributorInfo",{initialValue:!1}),new l.Checkbox("hideEventHeaderForMissingHeroimage","entity.WhlPortalWidgetConfig.hideEventHeaderForMissingHeroimage.2",{initialValue:!1})]);let Ux=(()=>{class N extends l.AbstractPermissionAwareFormHandler{constructor(M,pe,Ze,xn,Si,Ga,xs){super(Lh,[],M,xn,Ze,Si,Ga),this.translateService=xs}getEntityType(){return"WhlPortalWidgetConfig"}isOwnedEntity(){return(0,ho.of)(!0)}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.LFG(l.NgControlBuilderService),o.LFG(s.Xh),o.LFG(s.Ze),o.LFG(s.Xh),o.LFG(l.FormatterService),o.LFG(pb),o.LFG(I.sK))};static#t=this.\u0275prov=o.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();var Rh=a(68484),kh=a(6593);function vg(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"div",1)(2,"div",2)(3,"h1"),o._uU(4,"Preview"),o.qZA()(),o.TgZ(5,"a",3),o._uU(6),o.qZA()(),o._UZ(7,"iframe",4),o.BQk()),2&N){const M=o.oxw();o.xp6(5),o.Q6J("href",M.urlRaw,o.LSH),o.xp6(),o.Oqu(M.urlRaw),o.xp6(),o.Q6J("src",M.url,o.uOi)}}let fb=(()=>{class N{set previewUrl(M){const pe=new URL(M);"https:"===window.location.protocol.toLocaleLowerCase()&&"http:"===pe.protocol.toLocaleLowerCase()&&(pe.protocol="https"),this.urlRaw=pe.href,this.url=this.sanitizer.bypassSecurityTrustResourceUrl(pe.href)}constructor(M,pe,Ze,xn,Si){this.componentFactoryResolver=M,this.applicationRef=pe,this.injector=Ze,this.translateService=xn,this.sanitizer=Si,this.closed=new o.vpe,this.externalWindow=null}ngOnInit(){if(this.externalWindow=window.open("","","width=800,height=600,toolbar=no,menubar=no"),this.externalWindow){this.externalWindow.addEventListener("beforeunload",this.onClose.bind(this)),this.externalWindow.document.title=this.translateService.instant("imxplatform.component.external-preview.title",{entityType:this.translateService.instant("entity."+this.entityType+".entityName")});const M=new Rh.u0(this.externalWindow.document.body,this.componentFactoryResolver,this.applicationRef,this.injector);document.querySelectorAll("link, style").forEach(pe=>{this.externalWindow.document.head.appendChild(pe.cloneNode(!0))}),M.attach(this.portal)}}onClose(){this.closed.emit()}ngOnDestroy(){this.externalWindow&&this.externalWindow.close()}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(o._Vd),o.Y36(o.z2F),o.Y36(o.zs3),o.Y36(I.sK),o.Y36(kh.H7))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["imx-external-preview"]],viewQuery:function(pe,Ze){if(1&pe&&o.Gf(Rh.ig,7),2&pe){let xn;o.iGM(xn=o.CRH())&&(Ze.portal=xn.first)}},inputs:{previewUrl:"previewUrl",entityType:"entityType"},outputs:{closed:"closed"},decls:1,vars:0,consts:[[4,"cdkPortal"],[1,"preview__header"],[1,"title"],["target","_blank",3,"href"],["frameborder","0",1,"preview__frame",3,"src"]],template:function(pe,Ze){1&pe&&o.YNc(0,vg,8,3,"ng-container",0)},dependencies:[Rh.ig],styles:[".preview__header[_ngcontent-%COMP%]{padding:10px 0;width:100%;text-align:center}.preview__header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{opacity:.2}.preview__header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font:600 30px/40px Noe Display,Arial,sans-serif;text-transform:uppercase}.preview__header[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font:400 12px GT Walsheim,Arial,sans-serif;text-decoration:none}.preview__frame[_ngcontent-%COMP%]{width:100%;height:calc(100% - 80px)}"]})}return N})();function w_(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"imx-create-new-entity-button",11),o.NdJ("create",function(){o.CHM(M);const Ze=o.oxw();return o.KtG(Ze.createNewWhlPortalWidgetConfig())}),o.qZA()}2&N&&o.Q6J("fireCreateEvent",!0)("entityResourceKeyPrefix","imxeventmanager.whl-portal-widget-config")}function ov(N,Lt){1&N&&(o.TgZ(0,"imx-list-no-results"),o._uU(1,"imxeventmanager.whl-portal-widget-config.list.no-records"),o.qZA())}function gb(N,Lt){1&N&&o._UZ(0,"mat-progress-bar",12)}function Bx(N,Lt){if(1&N&&(o.TgZ(0,"th",19),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&N){const M=Lt.$implicit;o.Udp("width",M.width),o.Q6J("ngClass",M.cssClass),o.xp6(),o.hij(" ",o.lcZ(2,4,M.header)," ")}}function rv(N,Lt){if(1&N&&(o.TgZ(0,"tr"),o.YNc(1,Bx,3,6,"th",18),o.qZA()),2&N){const M=o.oxw(3);o.xp6(),o.Q6J("ngForOf",M.columnDefinitions)}}function Zx(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"tr")(1,"td")(2,"a",20),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.editWhlPortalWidgetConfig(xn))}),o._uU(3),o.qZA()(),o.TgZ(4,"td",21)(5,"a",20),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.editWhlPortalWidgetConfig(xn))}),o._uU(6),o.qZA()(),o.TgZ(7,"td",21),o.ALo(8,"readI18n"),o.TgZ(9,"a",20),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.editWhlPortalWidgetConfig(xn))}),o._uU(10),o.ALo(11,"readI18n"),o.qZA()(),o.TgZ(12,"td",21)(13,"a",20),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.editWhlPortalWidgetConfig(xn))}),o._uU(14),o.qZA()(),o.TgZ(15,"td",21)(16,"a",20),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.editWhlPortalWidgetConfig(xn))}),o._uU(17),o.qZA()(),o.TgZ(18,"td",21)(19,"a",20),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.editWhlPortalWidgetConfig(xn))}),o._uU(20),o.ALo(21,"date"),o.ALo(22,"convertTimestamps"),o.qZA()(),o.TgZ(23,"td")(24,"imx-dropup-button")(25,"imx-action-menu")(26,"imx-action-menu-item",22),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.editWhlPortalWidgetConfig(xn))}),o._uU(27," imxplatform.common-entity.list.edit "),o.qZA(),o.TgZ(28,"imx-action-menu-item",23),o.NdJ("actionClicked",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.cloneWhlPortalWidgetConfig(xn))}),o._uU(29),o.ALo(30,"translate"),o.qZA(),o.TgZ(31,"imx-action-menu-item",24),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.removeWhlPortalWidgetConfig(xn))}),o._uU(32," imxplatform.common-entity.list.remove "),o.qZA(),o.TgZ(33,"imx-action-menu-item",25),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.openTokenDialog(xn.id))}),o._uU(34," entity.WhlPortalWidgetConfig.createToken "),o.qZA(),o.TgZ(35,"imx-action-menu-item",26),o.NdJ("click",function(){const xn=o.CHM(M).$implicit,Si=o.oxw(3);return o.KtG(Si.openPreviewLink(xn.id))}),o._uU(36," entity.WhlPortalWidgetConfig.testLink "),o.qZA()()()()()}if(2&N){const M=Lt.$implicit;o.xp6(3),o.hij(" ",M.id," "),o.xp6(),o.Q6J("matTooltip",M.whlPortalConfig.name+""+M.whlPortalConfig.id)("matTooltipShowDelay",500),o.xp6(2),o.AsE(" ",M.whlPortalConfig.name," (",M.whlPortalConfig.id,") "),o.xp6(),o.Q6J("matTooltip",o.lcZ(8,18,M.permaLink))("matTooltipShowDelay",500),o.xp6(3),o.hij(" ",o.lcZ(11,20,M.permaLink)," "),o.xp6(2),o.Q6J("matTooltip",M.whlPortalConfig.client.name)("matTooltipShowDelay",500),o.xp6(2),o.hij(" ",M.whlPortalConfig.client.name," "),o.xp6(),o.Q6J("matTooltip",M.whlPortalConfig.deliveryChannel.name)("matTooltipShowDelay",500),o.xp6(2),o.hij(" ",M.whlPortalConfig.deliveryChannel.name," "),o.xp6(),o.Q6J("matTooltip",M.lastChangeTime)("matTooltipShowDelay",500),o.xp6(2),o.hij(" ",o.xi3(21,22,o.lcZ(22,25,M.lastChangeTime),"dd.MM.yyyy - HH:mm")," "),o.xp6(9),o.hij(" ",o.lcZ(30,27,"imxplatform.common-entity.list.copy")," ")}}function hb(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"p-table",15),o.YNc(2,rv,2,1,"ng-template",16)(3,Zx,37,29,"ng-template",17),o.qZA(),o.BQk()),2&N){const M=o.oxw().ngIf;o.xp6(),o.Q6J("value",M.items)}}function xb(N,Lt){if(1&N&&(o.TgZ(0,"div",13),o.YNc(1,hb,4,1,"ng-container",14),o.qZA()),2&N){const M=Lt.ngIf;o.oxw();const pe=o.MAs(8);o.xp6(),o.Q6J("ngIf",M.items.length>0)("ngIfElse",pe)}}function vb(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"imx-external-preview",27),o.NdJ("closed",function(){o.CHM(M);const Ze=o.oxw();return o.KtG(Ze.showPortalPreview=!1)}),o.qZA()}if(2&N){const M=o.oxw();o.Q6J("previewUrl",M.portalPreviewUrl)("entityType","WhlPortalWidgetConfig")}}const hf="WhlPortalWidgetConfig";function Lg(N){return(Lt,M)=>(console.log("xxx item1",Lt),N?Lt.whlPortalConfig[N].name.toLowerCase()<M.whlPortalConfig[N].name.toLowerCase()?-1:Lt.whlPortalConfig[N].name.toLowerCase()>M.whlPortalConfig[N].name.toLowerCase()?1:0:Lt.whlPortalConfig.name.toLowerCase()<M.whlPortalConfig.name.toLowerCase()?-1:Lt.whlPortalConfig.name.toLowerCase()>M.whlPortalConfig.name.toLowerCase()?1:0)}let Hx=(()=>{class N extends l.AbstractSimpleEntitySearchPage{constructor(M,pe,Ze,xn,Si,Ga,xs,vs,bl,Ll,Tc,xc,fu,Nd,gu,pp,Mp){super(M,pe,Ze,xn,Si,Ga,xs,Ll,vs,bl,Tc,void 0,xc,fu,{moduleName:l.CORE_MODULE_KEY,entityName:hf}),this.translateService=xc,this.eventmanagerDataAccessService=Nd,this.runtimeContextService=gu,this.whlPortalWidgetConfigFormHandlerService=pp,this.environmentService=Mp,this.eventmanagerPermissions=Us.M,this.availableOrderFields=[{index:1,field:"id",i18n:"entity.DataObject.id",type:l.OrderType.numeric},{index:2,field:"whlPortalConfig",i18n:"entity.WhlPortalConfig.name",type:l.OrderType.alphanumeric},{index:3,field:"client",i18n:"entity.Client.entityName",type:l.OrderType.alphanumeric},{index:4,field:"deliveryChannel",i18n:"entity.DeliveryChannel.entityName",type:l.OrderType.alphanumeric},{index:5,field:"lastChangeTime",i18n:"entity.AuditedDataObject.lastChangeTime",type:l.OrderType.numeric}],this.showPortalPreviewInNewTab=!1,this.showPortalPreview=!1,this.columnDefinitions=[{field:"id",header:"ID",width:"70px"},{field:"portalConfig",header:"entity.WhlPortalConfig.entityName",width:"30%"},{field:"permaLink",header:"entity.WhlPortalWidgetConfig.permaLink",width:"20%"},{field:"client",header:"entity.Client.entityName",width:"20%"},{field:"deliveryChannel",header:"entity.DeliveryChannel.entityName",width:"20%"},{field:"lastChangeTime",header:"entity.AuditedDataObject.lastChangeTime",width:"15%"},{field:"action",header:"",width:"5%"}],this.environmentService.getString(l.ImxPlatformConfigParameter.IMXPLATFORM_WHL_PREVIEW_NEW_TAB).pipe((0,tl.q)(1)).subscribe(_p=>{"true"===_p&&(this.showPortalPreviewInNewTab=!0)})}getEntityName(){return hf}ngOnInit(){super.ngOnInit(),this.runtimeContextService.getCurrentAndSubClients().subscribe(M=>this.currentClientsAndSubClientIds=Array.from(M).map(pe=>pe.id))}getFilterPredicates(){return[(0,l.filterById)("id"),(0,l.filterByPath)("client","whlPortalConfig.client.id"),(0,l.filterByPath)("deliveryChannel","whlPortalConfig.deliveryChannel.id"),(0,l.filterByStringProperty)("WhlPortalWidgetConfig_token"),(0,l.filterByStringPropertyWithPath)("fulltext","whlPortalConfig.name"),this.filterByCurrentClient().bind(this)]}getSortPredicates(){const M=new Map;return M.set(this.availableOrderFields.find(pe=>"whlPortalConfig"===pe.field).field,Lg()),M.set(this.availableOrderFields.find(pe=>"client"===pe.field).field,Lg("client")),M.set(this.availableOrderFields.find(pe=>"deliveryChannel"===pe.field).field,Lg("deliveryChannel")),M}createNewWhlPortalWidgetConfig(){this.createNewEntity(hf,this.whlPortalWidgetConfigFormHandlerService,Rx)}editWhlPortalWidgetConfig(M){super.editEntity(M,hf,this.whlPortalWidgetConfigFormHandlerService,Rx)}cloneWhlPortalWidgetConfig(M){this.cloneEntity(M,void 0,this.whlPortalWidgetConfigFormHandlerService,Rx)}removeWhlPortalWidgetConfig(M){super.removeEntity(M,hf)}openTokenDialog(M){return this.dialog.open(gf,{minWidth:600,data:{whlPortalWidgetId:M}})}openPreviewLink(M){this.showPortalPreview=!1,setTimeout(()=>{this.eventmanagerDataAccessService.getWhlPortalWidgetTestLinkById(M).subscribe(pe=>{!0===this.showPortalPreviewInNewTab?window.open(pe,"_blank"):(this.portalPreviewUrl=pe,this.showPortalPreview=!0)})},500)}filterByCurrentClient(){return(M,pe)=>void 0!==(this.currentClientsAndSubClientIds?this.currentClientsAndSubClientIds:[]).find(xn=>xn===M.whlPortalConfig.client.id)}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(l.BASE_ENTITY_DATA_SOURCE),o.Y36(n.F0),o.Y36(n.gz),o.Y36(l.UserMessageService),o.Y36(l.ListHistoryService),o.Y36(t.uw),o.Y36(Fu),o.Y36(l.PlatformTrackingService),o.Y36(l.SearchPageDefaultsService),o.Y36(l.ImxPlatformDataAccessService),o.Y36(l.ImxEntitiesMgrService),o.Y36(I.sK),o.Y36(l.ActionProviderService),o.Y36(yn.b),o.Y36(s.Ze),o.Y36(Ux),o.Y36(s.Qj))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["ng-component"]],features:[o.qOj],decls:15,vars:17,consts:[[1,"base-entity-search","list"],[3,"formHandler","record","orderFields","orderField","orderDirection","orderChanged","applyFilter","resetFilter"],[3,"totalNumber","entityResourceKeyPrefix","showCompactToggle","reload"],["list-header-button-row",""],[3,"fireCreateEvent","entityResourceKeyPrefix","create",4,"hasAnyPermission"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],["class","table-wrapper",4,"ngIf","ngIfElse"],[3,"previewUrl","entityType","closed",4,"ngIf"],[3,"disableAllSelection","paging","selection","pageChanged","selectAll"],[3,"fireCreateEvent","entityResourceKeyPrefix","create"],["mode","indeterminate"],[1,"table-wrapper"],[4,"ngIf","ngIfElse"],[1,"imx-datatable",3,"value"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",3,"ngClass"],[1,"txt-link",3,"click"],[3,"matTooltip","matTooltipShowDelay"],["icon","icon-pencil",3,"click"],["icon","icon-copy",3,"actionClicked"],["icon","icon-trash","additionalStyle","delete",3,"click"],["icon","icon-code",3,"click"],["icon","icon-preview",3,"click"],[3,"previewUrl","entityType","closed"]],template:function(pe,Ze){if(1&pe&&(o.TgZ(0,"div",0)(1,"imx-whl-portal-config-filter",1),o.NdJ("orderChanged",function(Si){return Ze.sort(Si)})("applyFilter",function(Si){return Ze.search(Si)})("resetFilter",function(){return Ze.reset()}),o.qZA(),o.TgZ(2,"imx-list-header",2),o.NdJ("reload",function(){return Ze.reloadComplete()}),o.ynx(3,3),o.YNc(4,w_,1,2,"imx-create-new-entity-button",4),o.BQk(),o.qZA(),o.TgZ(5,"imx-grid")(6,"imx-grid-element",5),o.YNc(7,ov,2,0,"ng-template",null,6,o.W1O)(9,gb,1,0,"ng-template",null,7,o.W1O)(11,xb,2,2,"div",8),o.ALo(12,"async"),o.qZA()(),o.YNc(13,vb,1,2,"imx-external-preview",9),o.TgZ(14,"imx-list-footer",10),o.NdJ("pageChanged",function(Si){return Ze.onPageChanged(Si)})("selectAll",function(Si){return Ze.onSelectAll(Si)}),o.qZA()()),2&pe){const xn=o.MAs(10);o.xp6(),o.Q6J("formHandler",Ze.filterFormHandler)("record",Ze.filter)("orderFields",Ze.availableOrderFields)("orderField",Ze.orderField)("orderDirection",Ze.orderDirection),o.xp6(),o.Q6J("totalNumber",null==Ze.currentResult?null:Ze.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxeventmanager.whl-portal-widget-config")("showCompactToggle",!1),o.xp6(2),o.Q6J("hasAnyPermission",Ze.eventmanagerPermissions.F_WHL_PORTAL_CONFIG_ADMINISTRATION.name+","+Ze.eventmanagerPermissions.F_WHL_PORTAL_CONFIG_ADMINISTRATION_OWN_CLIENT.name),o.xp6(7),o.Q6J("ngIf",o.lcZ(12,15,Ze.results))("ngIfElse",xn),o.xp6(2),o.Q6J("ngIf",Ze.showPortalPreview),o.xp6(),o.Q6J("disableAllSelection",!0)("paging",Ze.pagingModel)("selection",Ze.selectionModel)}},dependencies:[Qt.N,Un._,Yt.A,Fn.E,yt.R,ee.F,m.mk,m.sg,m.O5,li.pW,si.gM,oo.iA,_o.jx,oo.Q7,Hn.p,mo.z,vn.t,fb,wn.M,po.V,zg,Ls.j,c_.E,m.Ov,m.uU,I.X$],styles:[".imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.base-entity-search[_ngcontent-%COMP%]{padding-bottom:50px;padding-top:50px}.base-entity-search[_ngcontent-%COMP%]   .icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.base-entity-search[_ngcontent-%COMP%]   .selected-size[_ngcontent-%COMP%]{color:#3e3e3e}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}"]})}return N})(),ng=(()=>{class N extends l.AbstractCoreDataObjectResolverService{constructor(M,pe,Ze){super(M,pe),this.entityBrowseHistoryStorageService=M,this.contactListService=pe,this.dataAccess=Ze}getEntityType(){return"Event"}getDataObjectById(M){return this.dataAccess.getEventById(M)}initCoreDataObject(M){return this.dataAccess.initEvent()}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.LFG(l.EntityBrowseHistoryStorageService),o.LFG(l.ContactListService),o.LFG(yn.b))};static#t=this.\u0275prov=o.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();const Nh=[{path:"events",children:[{path:"edit/:id",canActivate:[s.YX],canDeactivate:[l.RecordDirtyGuard],component:rm,resolve:{record:ng},data:{title:"imxeventmanager.event.edit.pageTitle",mode:"UPDATE",permissions:[Us.M.F_EVENT_READ_ALL,Us.M.F_EVENT_READ_OWN_CLIENT,Us.M.F_EVENT_READ_OWN_USER,Us.M.F_EVENT_READ_SUBSCRIPT_CLIENT,Us.M.F_EVENT_READ_SUBSCRIPT_DELIVERYCHANNEL],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard"]}},{path:"new",canActivate:[s.YX],component:rm,resolve:{record:ng},data:{title:"imxeventmanager.event.edit.imxeventmanager.event.edit.pageTitleNew",mode:"CREATE",permissions:[Us.M.F_EVENT_CREATE],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard"]}},{path:"compact",canActivate:[s.YX],component:y,data:{title:"imxeventmanager.event.list.pageTitleCompact",permissions:[Us.M.F_EVENT_READ_ALL,Us.M.F_EVENT_READ_OWN_CLIENT,Us.M.F_EVENT_READ_OWN_USER,Us.M.F_EVENT_READ_SUBSCRIPT_CLIENT,Us.M.F_EVENT_READ_SUBSCRIPT_DELIVERYCHANNEL],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard"]}},{path:"",canActivate:[s.YX],component:wd,data:{title:"imxeventmanager.event.list.pageTitle",permissions:[Us.M.F_EVENT_READ_ALL,Us.M.F_EVENT_READ_OWN_CLIENT,Us.M.F_EVENT_READ_OWN_USER,Us.M.F_EVENT_READ_SUBSCRIPT_CLIENT,Us.M.F_EVENT_READ_SUBSCRIPT_DELIVERYCHANNEL],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard"]}}]},{path:"inbox",children:[{path:"events",children:[{path:"compact",canActivate:[s.YX],component:fe,data:{title:"imxeventmanager.event.list.datamanager.list.pageTitleCompact",permissions:[Us.M.F_EVENT_READ_ALL,Us.M.F_EVENT_READ_OWN_CLIENT,Us.M.F_EVENT_READ_OWN_USER],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard"]}},{path:"",canActivate:[s.YX],component:l_,data:{title:"imxeventmanager.event.list.datamanager.list.pageTitle",permissions:[Us.M.F_EVENT_READ_ALL,Us.M.F_EVENT_READ_OWN_CLIENT,Us.M.F_EVENT_READ_OWN_USER],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard"]}}]}]},{path:"whlportalconfig",canActivate:[s.YX],data:{title:"imxeventmanager.whl-portal-config.list.pageTitle",permissions:[Us.M.F_WHL_PORTAL_CONFIG_ADMINISTRATION,Us.M.F_WHL_PORTAL_CONFIG_ADMINISTRATION_OWN_CLIENT,Us.M.F_WHL_PORTAL_CONFIG_ADMINISTRATION_STYLES],guards:["AuthenticatedGuard","HasPermissionGuard"]},component:_e},{path:"whlportalwidgetconfig",canActivate:[s.YX],data:{title:"imxeventmanager.whl-portal-widget-config.list.pageTitle",permissions:[Us.M.F_WHL_PORTAL_CONFIG_ADMINISTRATION_WIDGETS,Us.M.F_WHL_PORTAL_CONFIG_ADMINISTRATION_WIDGETS_OWN_CLIENT,Us.M.F_WHL_PORTAL_CONFIG_ADMINISTRATION_WIDGETS_CODEGEN],guards:["AuthenticatedGuard","HasPermissionGuard"]},component:Hx},{path:"deliverychannelmgmt",canActivate:[s.YX],data:{title:"imxeventmanager.delivery-channel.list.pageTitle",permissions:[s.uo.F_DELIVERYCHANNEL_MANAGEMENT_READ],guards:["AuthenticatedGuard","HasPermissionGuard"]},component:xi},{path:"eventDuplicates",children:[{path:"",canActivate:[s.YX],component:Ef,data:{title:"imxplatform.duplicate.list.pageTitle",permissions:[Us.M.F_EVENT_DUPLICATES],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard"]}}]},{path:"pdfSubscriptManagement",canActivate:[s.YX],data:{title:"imxeventmanager.pdfSubscriptManagement.list.pageTitle",permissions:[Us.M.F_PDF_SUBSCRIPTION],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard"]},component:ug}];let Gx=(()=>{class N{static#e=this.\u0275fac=function(pe){return new(pe||N)};static#t=this.\u0275mod=o.oAB({type:N});static#n=this.\u0275inj=o.cJS({imports:[n.Bz.forChild(Nh),n.Bz]})}return N})();var Rg=a(82756),Jx=a(13181),Qx=a(54699);function av(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"th",7)(1,"mat-checkbox",8),o.NdJ("change",function(Ze){o.CHM(M);const xn=o.oxw(2);return o.KtG(xn.onSelectionChanged(Ze))}),o.qZA(),o._uU(2),o.qZA()}if(2&N){const M=Lt.$implicit;o.xp6(),o.Q6J("value",M.id)("checked",!1),o.xp6(),o.hij(" ",M.name," ")}}function sv(N,Lt){if(1&N&&(o.TgZ(0,"tr")(1,"th"),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.YNc(4,av,3,3,"th",6),o.qZA()),2&N){const M=Lt.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,2,"entity.DeliveryChannel.plural")),o.xp6(2),o.Q6J("ngForOf",M)}}function Vx(N,Lt){if(1&N&&(o.ynx(0),o._uU(1),o.BQk()),2&N){const M=o.oxw().$implicit;o.xp6(),o.hij(" (",M.event.integrityClassification.name," ")}}function bb(N,Lt){if(1&N&&(o.ynx(0),o._uU(1),o.BQk()),2&N){const M=o.oxw().$implicit;o.xp6(),o.hij(" ",M.event.reliabilityClassification.name,") ")}}function Cb(N,Lt){if(1&N&&(o.ynx(0),o._uU(1),o.BQk()),2&N){const M=o.oxw(2).$implicit;o.xp6(),o.Oqu(M.event.integrityClassification.name)}}function kg(N,Lt){if(1&N&&(o.ynx(0),o._uU(1),o.BQk()),2&N){const M=o.oxw(2).$implicit;o.xp6(),o.hij(" ",M.event.reliabilityClassification.name,"")}}function lv(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"span"),o._uU(2," - "),o.qZA(),o.YNc(3,Cb,2,1,"ng-container",10)(4,kg,2,1,"ng-container",10),o.BQk()),2&N){const M=o.oxw().$implicit;o.xp6(3),o.Q6J("ngIf",M.event.integrityClassification),o.xp6(),o.Q6J("ngIf",M.event.reliabilityClassification)}}function cv(N,Lt){if(1&N&&(o.TgZ(0,"p"),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&N){const M=o.oxw().$implicit;o.xp6(),o.lnq("",o.lcZ(2,3,"entity.Client.entityName"),": ",null==M||null==M.event||null==M.event.client?null:M.event.client.name," (",null==M||null==M.event||null==M.event.client?null:M.event.client.id,")")}}function yb(N,Lt){if(1&N&&(o.TgZ(0,"p"),o._uU(1),o.ALo(2,"translate"),o.ALo(3,"readI18n"),o.qZA()),2&N){const M=o.oxw().$implicit;o.xp6(),o.lnq("",o.lcZ(2,3,"entity.DataObjectReference.refProperty.location"),": ",o.lcZ(3,5,null==M||null==M.event||null==M.event.location?null:M.event.location.title)," (",null==M||null==M.event||null==M.event.location?null:M.event.location.id,")")}}function Ob(N,Lt){if(1&N&&(o.TgZ(0,"span"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&N){const M=Lt.ngIf;o.xp6(),o.hij(" - ",o.xi3(2,1,M,"HH:mm"),"")}}function dv(N,Lt){if(1&N&&(o.ynx(0),o._uU(1),o.ALo(2,"date"),o.YNc(3,Ob,3,4,"span",10),o._uU(4),o.ALo(5,"translate"),o.BQk()),2&N){const M=Lt.ngIf,pe=o.oxw().$implicit,Ze=o.oxw(2);o.xp6(),o.hij("",o.xi3(2,3,M,"HH:mm")," "),o.xp6(2),o.Q6J("ngIf",Ze.getEndTime(pe.startTime,pe.duration)),o.xp6(),o.hij(" ",o.lcZ(5,6,"imxplatform.common.time-indicator"),"")}}function mv(N,Lt){if(1&N&&(o.TgZ(0,"p"),o._uU(1),o.ALo(2,"date"),o.YNc(3,dv,6,8,"ng-container",10),o.qZA()),2&N){const M=Lt.$implicit,pe=o.oxw(2);o.xp6(),o.hij("",o.xi3(2,2,M.date,"EEE, dd.MM.yyyy")," "),o.xp6(2),o.Q6J("ngIf",pe.convertTimeToDate(M.startTime))}}function uv(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"div",17),o.ALo(1,"date"),o.ALo(2,"convertTimestamps"),o.ALo(3,"date"),o.ALo(4,"convertTimestamps"),o.TgZ(5,"mat-checkbox",18),o.NdJ("ngModelChange",function(Ze){o.CHM(M);const xn=o.oxw().$implicit;return o.KtG(xn.selected=Ze)}),o.qZA()()}if(2&N){const M=o.oxw().$implicit;o.Q6J("matTooltip",null!=M.appearance&&M.appearance.fromDate||null!=M.appearance&&M.appearance.toDate?o.xi3(1,2,o.lcZ(2,5,null==M.appearance?null:M.appearance.fromDate),"EEE, dd.MM.yyyy")+" - "+o.xi3(3,7,o.lcZ(4,10,null==M.appearance?null:M.appearance.toDate),"EEE, dd.MM.yyyy"):""),o.xp6(5),o.Q6J("ngModel",M.selected)}}function AC(N,Lt){if(1&N&&(o.ynx(0),o.TgZ(1,"td"),o.YNc(2,uv,6,12,"div",16),o.qZA(),o.BQk()),2&N){const M=Lt.$implicit;o.xp6(2),o.Q6J("ngIf",void 0!==M.selected)}}const Pb=N=>({clientAppearsMoreThanOnce:N});function Uh(N,Lt){if(1&N){const M=o.EpF();o.TgZ(0,"tr")(1,"td")(2,"div",9),o.NdJ("mouseenter",function(Ze){o.CHM(M);const xn=o.MAs(12);return o.KtG(xn.show(Ze))})("mouseleave",function(){o.CHM(M);const Ze=o.MAs(12);return o.KtG(Ze.hide())}),o.TgZ(3,"div"),o._uU(4),o.YNc(5,Vx,2,1,"ng-container",10)(6,bb,2,1,"ng-container",10),o.qZA(),o.TgZ(7,"div",11)(8,"span",12),o._uU(9),o.ALo(10,"translate"),o.qZA()()(),o.TgZ(11,"imx-tooltip-extended",13,14)(13,"p"),o._uU(14),o.ALo(15,"readI18n"),o.ALo(16,"translate"),o.ALo(17,"translate"),o.YNc(18,lv,5,2,"ng-container",10),o.qZA(),o.YNc(19,cv,3,5,"p",10)(20,yb,4,7,"p",10),o.TgZ(21,"p"),o._uU(22),o.ALo(23,"translate"),o.qZA(),o.YNc(24,mv,4,5,"p",15),o.qZA()(),o.YNc(25,AC,3,1,"ng-container",15),o.qZA()}if(2&N){const M=Lt.$implicit,pe=o.oxw();o.xp6(4),o.hij(" ",M.event.id," "),o.xp6(),o.Q6J("ngIf",M.event.integrityClassification),o.xp6(),o.Q6J("ngIf",M.event.reliabilityClassification),o.xp6(2),o.Tol(pe.getClientUniqueColorKey(M.event)),o.Q6J("ngClass",o.VKq(31,Pb,pe.candidateClientAppearsMoreThanOnce(M.event))),o.xp6(),o.AsE(" ",o.lcZ(10,21,"entity.Client.entityName"),": ",M.event.client.name," "),o.xp6(2),o.Q6J("large",!0),o.xp6(3),o.xDo("",o.lcZ(15,23,null==M||null==M.event?null:M.event.title)," (",o.lcZ(16,25,"entity.DataObject.id")," ",null==M||null==M.event?null:M.event.id," / ",o.lcZ(17,27,"entity.CoreDataObject.importIdentifier")," ",null==M||null==M.event?null:M.event.importIdentifier,") "),o.xp6(4),o.Q6J("ngIf",M.event.integrityClassification||M.event.reliabilityClassification),o.xp6(),o.Q6J("ngIf",null==M||null==M.event?null:M.event.client),o.xp6(),o.Q6J("ngIf",null==M||null==M.event||null==M.event.location?null:M.event.location.title),o.xp6(2),o.hij("",o.lcZ(23,29,"entity.EventDateType.eventDates.entityName"),":"),o.xp6(2),o.Q6J("ngForOf",null==M||null==M.event?null:M.event.eventDates),o.xp6(),o.Q6J("ngForOf",M.eventAppearanceSelectionPresentations)}}let Bh=(()=>{class N{constructor(M){this.data=M,this.columns=[],this.eventAppearanceSelectionPresentationHolders=[],this.moreThanOnceClientColorMap=new Map,M.deliveryChannels.forEach(pe=>{this.columns.push({name:pe.name+" ("+pe.id+")",id:pe.id})}),this.fillAppearanceSelectionPresentations()}ngOnInit(){[...new Set(this.data.duplicateGroup.events.map(pe=>pe.client.id))].sort(function(pe,Ze){return pe-Ze}).filter(pe=>this.getNumberOfCandidatesWithThatClient(pe)>=2).forEach((pe,Ze)=>{this.moreThanOnceClientColorMap.set(pe,"dupl-client-color-"+(Ze+1))})}getNumberOfCandidatesWithThatClient(M){return this.data.duplicateGroup.events.filter(pe=>pe.client.id===M).length}candidateClientAppearsMoreThanOnce(M){return this.moreThanOnceClientColorMap.has(M.client.id)}getClientUniqueColorKey(M){return this.moreThanOnceClientColorMap.get(M.client.id)}getDialogResult(){return this.data.eventAppearanceSelectionPresentationHolders=this.eventAppearanceSelectionPresentationHolders,this.data}fillAppearanceSelectionPresentations(){this.data.eventAppearanceSelectionPresentationHolders.forEach(M=>{const pe=[];this.columns.forEach(Ze=>{const xn=M.eventAppearanceSelectionPresentations.filter(Si=>Si.appearance&&Si.appearance.deliveryChannel.id===Ze.id);pe.push(xn.length>0?xn[0]:{eventId:M.event.id,appearance:void 0,selected:void 0})}),M.eventAppearanceSelectionPresentations=pe}),this.eventAppearanceSelectionPresentationHolders=this.data.eventAppearanceSelectionPresentationHolders}onSelectionChanged(M){const pe=parseInt(M.source.value,10);this.eventAppearanceSelectionPresentationHolders.forEach(Ze=>{const xn=Ze.eventAppearanceSelectionPresentations.filter(Si=>Si.appearance&&Si.appearance.deliveryChannel&&Si.appearance.deliveryChannel.id===pe);xn.length>0&&(xn[0].selected=!!M.checked)})}convertTimeToDate(M){return r_.convertTimeToDate(M)}getEndTime(M,pe){return r_.getEndTime(M,pe)}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.Y36(t.WI))};static#t=this.\u0275cmp=o.Xpm({type:N,selectors:[["ng-component"]],decls:8,vars:9,consts:[[3,"heading","icon","submitButtonLabel","cancelButtonLabel","getSubmitResult"],[1,"dialog-form"],[1,"table-wrapper"],[1,"imx-datatable",3,"responsiveLayout","columns","value","resizableColumns"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",4,"ngFor","ngForOf"],["pResizableColumn",""],[1,"small",3,"value","checked","change"],[3,"mouseenter","mouseleave"],[4,"ngIf"],[1,"event-resolve-duplicate-dialog-client-content"],[3,"ngClass"],[3,"large"],["deliveryChannelTooltip",""],[4,"ngFor","ngForOf"],[3,"matTooltip",4,"ngIf"],[3,"matTooltip"],[1,"small",3,"ngModel","ngModelChange"]],template:function(pe,Ze){1&pe&&(o.TgZ(0,"imx-dialog",0),o._UZ(1,"br"),o.TgZ(2,"div",1)(3,"div",2),o.ynx(4),o.TgZ(5,"p-table",3),o.YNc(6,sv,5,4,"ng-template",4)(7,Uh,26,33,"ng-template",5),o.qZA(),o.BQk(),o.qZA()()()),2&pe&&(o.Q6J("heading",Ze.data.title)("icon",Ze.data.iconClass)("submitButtonLabel","imxplatform.dialog.common-confirm")("cancelButtonLabel","imxplatform.dialog.common-abort")("getSubmitResult",Ze.getDialogResult.bind(Ze)),o.xp6(5),o.Q6J("responsiveLayout","scroll")("columns",Ze.columns)("value",Ze.eventAppearanceSelectionPresentationHolders)("resizableColumns",!0))},dependencies:[x.a,m.mk,m.sg,m.O5,b.JJ,b.On,Bt.oG,si.gM,oo.iA,_o.jx,oo.Q7,Kn.j,Ls.j,c_.E,m.uU,I.X$],styles:[".imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.imx-datatable[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{white-space:normal}"]})}return N})(),pv=(()=>{class N{constructor(M,pe,Ze){this.dialog=M,this.translationService=pe,this.eventmanagerDataAccessService=Ze}forAction(){return"event-duplicates-action-resolve_duplicate_groups"}voteForSingleExecution(M,pe){return new Qx.y(Ze=>{const xn=this.eventmanagerDataAccessService.getEventDuplicateGroup(M.id).pipe((0,tl.q)(1)),Si=this.convertCommaSeparatedIdListToArray(pe.eventIds),Ga=Array.from(Si.map(vs=>vs.toString())),xs=this.eventmanagerDataAccessService.getEventAppearancePresentationsSelection(Ga);return(0,i.aj)([xn,xs]).subscribe(([vs,bl])=>{const Ll=vs.events.filter(Nd=>Si.includes(Nd.id)),Tc=this.determineDeliveryChannels(Ll);let xc=[];bl.forEach(Nd=>{const gu=xc.filter(pp=>pp.event.id===Nd.eventId);if(gu.length>0)gu[0].eventAppearanceSelectionPresentations.push(Nd);else{const pp=Ll.filter(Mp=>Mp.id===Nd.eventId)[0];xc.push({event:pp,eventAppearanceSelectionPresentations:Array.of(Nd)})}}),xc=this.sortBylastChangeTime(xc),this.dialog.open(Bh,{maxWidth:1200,data:{title:this.translationService.instant("imxeventmanager.duplicate.list.action.resolve-duplicate.header"),iconClass:"icon-undo_duplicate",events:Ll,deliveryChannels:Tc,eventAppearanceSelectionPresentationHolders:xc,duplicateGroup:vs}}).afterClosed().subscribe(Nd=>{if(Nd.eventAppearanceSelectionPresentationHolders){const gu=[];Nd.eventAppearanceSelectionPresentationHolders.forEach(pp=>{const Mp=[];pp.eventAppearanceSelectionPresentations.forEach(_p=>{void 0!==_p.selected&&!_p.selected&&Mp.push(_p.appearance.id)}),gu.push({eventId:pp.event.id,refusedAppearanceIds:Mp})}),pe.refusedEventAppearanceIds=gu,Ze.next(!0)}Ze.next(!1)})})})}sortBylastChangeTime(M){return M.sort((pe,Ze)=>{const xn=new Date(pe.event.lastChangeTime).getTime(),Si=new Date(Ze.event.lastChangeTime).getTime();return xn>Si?-1:xn<Si?1:0})}showsConfirmDialog(){return!0}determineDeliveryChannels(M){const pe=[];return M.forEach(Ze=>{Ze.appearances.forEach(Si=>{0===pe.filter(Ga=>Ga.id===Si.deliveryChannel.id).length&&pe.push(Si.deliveryChannel)})}),pe.sort((Ze,xn)=>Ze.name.localeCompare(xn.name))}convertCommaSeparatedIdListToArray(M){return M.replace(/\s/g,"").split(",").map(pe=>parseInt(pe,10))}static#e=this.\u0275fac=function(pe){return new(pe||N)(o.LFG(t.uw),o.LFG(I.sK),o.LFG(yn.b))};static#t=this.\u0275prov=o.Yz7({token:N,factory:N.\u0275fac})}return N})();var Yx=a(12731),Mb=a(86984),Tb=a(15265);let Eb=(()=>{class N{static#e=this.\u0275fac=function(pe){return new(pe||N)};static#t=this.\u0275mod=o.oAB({type:N});static#n=this.\u0275inj=o.cJS({imports:[Gx,e.m]})}return N})()},15265:(gt,X,a)=>{"use strict";a.d(X,{Z:()=>x});var e=a(17700),n=a(19212),s=a(77958),l=a(33946),i=a(96814),t=a(56223),p=a(71365);function c(u,m){if(1&u){const b=n.EpF();n.ynx(0),n.TgZ(1,"imx-base-checkbox",3),n.NdJ("ngModelChange",function(H){n.CHM(b);const O=n.oxw();return n.KtG(O.data.derivedFromEventId=H)}),n.TgZ(2,"span"),n._uU(3),n.ALo(4,"translate"),n.qZA()(),n._UZ(5,"br"),n.TgZ(6,"imx-base-checkbox",3),n.NdJ("ngModelChange",function(H){n.CHM(b);const O=n.oxw();return n.KtG(O.data.inheritDefaultAppearance=H)}),n.TgZ(7,"span"),n._uU(8),n.ALo(9,"translate"),n.qZA()(),n._UZ(10,"br"),n.BQk()}if(2&u){const b=n.oxw();n.xp6(),n.Q6J("ngModel",b.data.derivedFromEventId),n.xp6(2),n.Oqu(n.lcZ(4,4,"imxeventmanager2.gui.list.event.action.clone.propagation")),n.xp6(3),n.Q6J("ngModel",b.data.inheritDefaultAppearance),n.xp6(2),n.Oqu(n.lcZ(9,6,"imxeventmanager2.gui.list.event.action.clone.inherit-default-appearance"))}}function o(u,m){if(1&u){const b=n.EpF();n.ynx(0),n._UZ(1,"br"),n.TgZ(2,"imx-base-checkbox",3),n.NdJ("ngModelChange",function(H){n.CHM(b);const O=n.oxw();return n.KtG(O.data.confirmCopyright=H)}),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"translate"),n.qZA()(),n.BQk()}if(2&u){const b=n.oxw();n.xp6(2),n.Q6J("ngModel",b.data.confirmCopyright),n.xp6(2),n.Oqu(n.lcZ(5,2,"imxeventmanager2.gui.list.event.action.clone.confirm-copyright"))}}let x=(()=>{class u{constructor(b){this.data=b}getDialogResult(){return this.data}disableSubmit(){return!(!this.data.requireCopyright||void 0!==this.data.confirmCopyright&&this.data.confirmCopyright)}static#e=this.\u0275fac=function(I){return new(I||u)(n.Y36(e.WI))};static#t=this.\u0275cmp=n.Xpm({type:u,selectors:[["ng-component"]],decls:5,vars:4,consts:[["heading","imxeventmanager2.gui.list.event.action.clone.header","icon","icon-copy","dialogType","form","submitButtonLabel","imxeventmanager2.gui.list.event.action.clone.submit",3,"submitButtonDisabled","getSubmitResult"],[1,"dialog-form"],[4,"ngIf"],[3,"ngModel","ngModelChange"]],template:function(I,H){1&I&&(n.TgZ(0,"imx-dialog",0)(1,"div",1)(2,"div"),n.YNc(3,c,11,8,"ng-container",2)(4,o,6,4,"ng-container",2),n.qZA()()()),2&I&&(n.Q6J("submitButtonDisabled",H.disableSubmit())("getSubmitResult",H.getDialogResult.bind(H)),n.xp6(3),n.Q6J("ngIf",H.data.requirePropagation),n.xp6(),n.Q6J("ngIf",H.data.requireCopyright))},dependencies:[s.G,l.a,i.O5,t.JJ,t.On,p.X$]})}return u})()},82756:(gt,X,a)=>{"use strict";a.d(X,{L:()=>c});var e=a(17700),n=a(19212),s=a(33946),l=a(56223),i=a(2032),t=a(64170),p=a(71365);let c=(()=>{class o{constructor(u){this.data=u}getDialogResult(){return this.data}static#e=this.\u0275fac=function(m){return new(m||o)(n.Y36(e.WI))};static#t=this.\u0275cmp=n.Xpm({type:o,selectors:[["ng-component"]],decls:11,vars:9,consts:[["heading","imxeventmanager.event.list.action.datamanager.refuse.header","icon","icon-cross","dialogType","form","submitButtonLabel","imxeventmanager.event.list.action.datamanager.refuse.submit",3,"submitButtonDisabled","getSubmitResult"],[1,"dialog-form"],["matInput","",3,"placeholder","ngModel","ngModelChange"]],template:function(m,b){1&m&&(n.TgZ(0,"imx-dialog",0)(1,"div",1)(2,"div")(3,"span"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n._UZ(6,"br")(7,"br"),n.TgZ(8,"mat-form-field")(9,"textarea",2),n.NdJ("ngModelChange",function(H){return b.data.reason=H}),n.ALo(10,"translate"),n.qZA()()()()()),2&m&&(n.Q6J("submitButtonDisabled",void 0===b.data.reason||b.data.reason.length<1)("getSubmitResult",b.getDialogResult.bind(b)),n.xp6(4),n.Oqu(n.lcZ(5,5,"imxeventmanager.event.list.action.datamanager.refuse.required")),n.xp6(5),n.s9C("placeholder",n.lcZ(10,7,"imxeventmanager.event.list.action.datamanager.refuse.reason")),n.Q6J("ngModel",b.data.reason))},dependencies:[s.a,l.Fj,l.JJ,l.On,i.Nt,t.KE,p.X$]})}return o})()},13181:(gt,X,a)=>{"use strict";a.d(X,{O:()=>u});var e=a(17700),n=a(19212),s=a(33946),l=a(96814),i=a(56223),t=a(75986),p=a(87466),c=a(1614),o=a(71365);function x(m,b){if(1&m&&(n.TgZ(0,"mat-radio-button",6),n._uU(1),n.ALo(2,"readI18n"),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&m){const I=b.$implicit;n.Q6J("value",I.id),n.xp6(),n.hij("",n.lcZ(2,3,I.title)," "),n.xp6(3),n.hij(" (ID: ",I.id,")")}}let u=(()=>{class m{constructor(I){this.data=I}getDialogResult(){return this.data}static#e=this.\u0275fac=function(H){return new(H||m)(n.Y36(e.WI))};static#t=this.\u0275cmp=n.Xpm({type:m,selectors:[["ng-component"]],decls:32,vars:32,consts:[["heading","imxeventmanager.resolve-duplicates-group-dialog.header","icon","icon-compare","submitButtonLabel","imxeventmanager.resolve-duplicates-group-dialog.button",3,"submitButtonDisabled","getSubmitResult"],[1,"dialog-form"],[1,"dialog-form-group"],[1,"small",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"checkbox-group"],[3,"value"]],template:function(H,O){1&H&&(n.TgZ(0,"imx-dialog",0)(1,"div",1)(2,"div")(3,"h3"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"div",2)(7,"p"),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"p"),n._uU(11),n.ALo(12,"translate"),n.qZA(),n.TgZ(13,"mat-radio-group",3),n.NdJ("ngModelChange",function(G){return O.data.masterId=G}),n.YNc(14,x,5,5,"mat-radio-button",4),n.qZA()(),n.TgZ(15,"h3"),n._uU(16),n.ALo(17,"translate"),n.qZA(),n.TgZ(18,"div",2)(19,"div",5)(20,"mat-checkbox",3),n.NdJ("ngModelChange",function(G){return O.data.inheritInputFields=G}),n._uU(21),n.ALo(22,"translate"),n.qZA(),n.TgZ(23,"mat-checkbox",3),n.NdJ("ngModelChange",function(G){return O.data.inheritContactPoiAssignment=G}),n._uU(24),n.ALo(25,"translate"),n.qZA(),n.TgZ(26,"mat-checkbox",3),n.NdJ("ngModelChange",function(G){return O.data.inheritEntityLists=G}),n._uU(27),n.ALo(28,"translate"),n.qZA(),n.TgZ(29,"mat-checkbox",3),n.NdJ("ngModelChange",function(G){return O.data.inheritMedia=G}),n._uU(30),n.ALo(31,"translate"),n.qZA()()()()()()),2&H&&(n.Q6J("submitButtonDisabled",null==O.data.masterId)("getSubmitResult",O.getDialogResult.bind(O)),n.xp6(4),n.Oqu(n.lcZ(5,16,"imxeventmanager.resolve-duplicates-group-dialog.target-event")),n.xp6(4),n.Oqu(n.lcZ(9,18,"imxeventmanager.resolve-duplicates-group-dialog.target-event-hint")),n.xp6(3),n.Oqu(n.lcZ(12,20,"imxeventmanager.resolve-duplicates-group-dialog.target-event-requirements")),n.xp6(2),n.Q6J("ngModel",O.data.masterId),n.xp6(),n.Q6J("ngForOf",O.data.duplicates),n.xp6(2),n.Oqu(n.lcZ(17,22,"imxeventmanager.resolve-duplicates-group-dialog.data-inheritance.title")),n.xp6(4),n.Q6J("ngModel",O.data.inheritInputFields),n.xp6(),n.Oqu(n.lcZ(22,24,"imxeventmanager.resolve-duplicates-group-dialog.data-inheritance.input-fields")),n.xp6(2),n.Q6J("ngModel",O.data.inheritContactPoiAssignment),n.xp6(),n.Oqu(n.lcZ(25,26,"imxeventmanager.resolve-duplicates-group-dialog.data-inheritance.contact-pois")),n.xp6(2),n.Q6J("ngModel",O.data.inheritEntityLists),n.xp6(),n.Oqu(n.lcZ(28,28,"imxeventmanager.resolve-duplicates-group-dialog.data-inheritance.entity-lists")),n.xp6(2),n.Q6J("ngModel",O.data.inheritMedia),n.xp6(),n.Oqu(n.lcZ(31,30,"imxeventmanager.resolve-duplicates-group-dialog.data-inheritance.media")))},dependencies:[s.a,l.sg,i.JJ,i.On,t.oG,p.VQ,p.U0,c.j,o.X$],styles:[".checkbox-group[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return m})()},79308:(gt,X,a)=>{"use strict";a.d(X,{C:()=>r});var e=a(56223),n=a(67597),s=a(85829),l=a(21473),i=a(15646),t=a(49193),p=a(72079),c=a(19352),o=a(96776),x=a(53075),u=a(94760),m=a(63336),b=a(3125),I=a(94522),H=a(13561),O=a(17700),P=a(19212),G=a(33946),B=a(6690);let ae=(()=>{class Z{constructor(Oe,ye){this.data=Oe,this.formatterService=ye,this.initTable()}initTable(){this.displayedColumns=["date","startTime","duration","soldout","cancelled","online","bookingLink","modificationType"],this.data.formHandler.formGroup.get("eventDateType.specificEventDates").disable({emitEvent:!1})}formatDate(Oe){return this.formatterService.formatDate(Oe,"dd.MM.yyyy")}static#e=this.\u0275fac=function(ye){return new(ye||Z)(P.Y36(O.WI),P.Y36(s.FormatterService))};static#t=this.\u0275cmp=P.Xpm({type:Z,selectors:[["ng-component"]],decls:4,vars:3,consts:[["heading","imxeventmanager.event.edit.panels.dates.date-exceptions-dialos.title","icon","icon-calendar-31","submitButtonLabel",""],[1,"dialog-form"],[1,"dialog-form-group"],[3,"formHandler","displayedColumns","collectionName"]],template:function(ye,ve){1&ye&&(P.TgZ(0,"imx-dialog",0)(1,"div",1)(2,"div",2),P._UZ(3,"imx-event-dates-table",3),P.qZA()()()),2&ye&&(P.xp6(3),P.Q6J("formHandler",ve.data.formHandler)("displayedColumns",ve.displayedColumns)("collectionName","eventDateType.specificEventDates"))},dependencies:[G.a,B.h],encapsulation:2})}return Z})();var J=a(71365);function q(Z,Pt){if(1&Z&&(P.TgZ(0,"div",4),P._UZ(1,"imx-select",5),P.ALo(2,"async"),P.qZA()),2&Z){const Oe=P.oxw();P.xp6(),P.Q6J("field",Oe.formHandler.formConfiguration.findFormFieldById("eventDateType.type"))("control",Oe.dateTypeShadowControl)("form",Oe.formHandler.formGroup)("formHandler",Oe.formHandler)("optionProvider",P.lcZ(2,5,Oe.dateTypeOptions$))}}function j(Z,Pt){if(1&Z&&P._UZ(0,"imx-edit-one-time-definition",8),2&Z){const Oe=P.oxw(2);P.Q6J("formHandler",Oe.formHandler)("startTimeIsMandatory",Oe.startTimeMandatory)}}function Y(Z,Pt){if(1&Z&&P._UZ(0,"imx-edit-daily-definition",8),2&Z){const Oe=P.oxw(2);P.Q6J("formHandler",Oe.formHandler)("startTimeIsMandatory",Oe.startTimeMandatory)}}function K(Z,Pt){if(1&Z&&P._UZ(0,"imx-edit-weekly-definition",8),2&Z){const Oe=P.oxw(2);P.Q6J("formHandler",Oe.formHandler)("startTimeIsMandatory",Oe.startTimeMandatory)}}function ne(Z,Pt){if(1&Z&&P._UZ(0,"imx-edit-monthly-definition",8),2&Z){const Oe=P.oxw(2);P.Q6J("formHandler",Oe.formHandler)("startTimeIsMandatory",Oe.startTimeMandatory)}}function ee(Z,Pt){if(1&Z&&(P.TgZ(0,"div",6),P.YNc(1,j,1,2,"imx-edit-one-time-definition",7)(2,Y,1,2,"imx-edit-daily-definition",7)(3,K,1,2,"imx-edit-weekly-definition",7)(4,ne,1,2,"imx-edit-monthly-definition",7),P.qZA()),2&Z){const Oe=P.oxw();P.xp6(),P.Q6J("ngIf",1===Oe.formHandler.formGroup.get("eventDateType.type").value),P.xp6(),P.Q6J("ngIf",2===Oe.formHandler.formGroup.get("eventDateType.type").value),P.xp6(),P.Q6J("ngIf",3===Oe.formHandler.formGroup.get("eventDateType.type").value),P.xp6(),P.Q6J("ngIf",4===Oe.formHandler.formGroup.get("eventDateType.type").value)}}function $(Z,Pt){if(1&Z){const Oe=P.EpF();P.TgZ(0,"button",13),P.NdJ("click",function(){P.CHM(Oe);const ve=P.oxw(3);return P.KtG(ve.generateEventDates())}),P._uU(1),P.qZA()}if(2&Z){const Oe=P.oxw(3);P.Q6J("disabled",Oe.formHandler.formGroup.get("eventDateType.startTimeDurations").invalid),P.xp6(),P.hij(" ","imxeventmanager.event.edit.panels.dates.generate-event-dates"," ")}}function ue(Z,Pt){if(1&Z){const Oe=P.EpF();P.TgZ(0,"button",13),P.NdJ("click",function(){P.CHM(Oe);const ve=P.oxw(3);return P.KtG(ve.recalculateEventDates())}),P._uU(1),P.qZA()}if(2&Z){const Oe=P.oxw(3);P.Q6J("disabled",Oe.formHandler.isNewEntity()||!Oe.definitionHasChanged()),P.xp6(),P.hij(" ","imxeventmanager.event.edit.panels.dates.recalculate-event-dates"," ")}}function ge(Z,Pt){if(1&Z){const Oe=P.EpF();P.TgZ(0,"div",10)(1,"div"),P.YNc(2,$,2,2,"button",11),P.ALo(3,"async"),P.YNc(4,ue,2,2,"button",11),P.ALo(5,"async"),P.qZA(),P.TgZ(6,"button",12),P.NdJ("click",function(){P.CHM(Oe);const ve=P.oxw(2);return P.KtG(ve.recalculateSpecificEventDates())}),P._uU(7),P.ALo(8,"translate"),P.qZA()()}if(2&Z){const Oe=P.oxw(2);P.xp6(2),P.Q6J("ngIf",P.lcZ(3,4,Oe.formHandler.hasEditAndSavePermission("eventDates"))),P.xp6(2),P.Q6J("ngIf",P.lcZ(5,6,Oe.formHandler.hasEditAndSavePermission("eventDates"))),P.xp6(2),P.Q6J("disabled",Oe.formHandler.isNewEntity()),P.xp6(),P.hij(" ",P.lcZ(8,8,"imxeventmanager.event.edit.panels.dates.show-exceptions")," ")}}function Ke(Z,Pt){if(1&Z&&(P.ynx(0),P.YNc(1,ge,9,10,"div",9),P.ALo(2,"async"),P.BQk()),2&Z){const Oe=P.oxw();P.xp6(),P.Q6J("ngIf",P.lcZ(2,1,Oe.formHandler.hasEditPermission("eventDateType")))}}const at=Z=>({"existing-date":Z});function Le(Z,Pt){if(1&Z&&(P.TgZ(0,"span",25),P._uU(1),P.qZA()),2&Z){const Oe=Pt.$implicit,ye=P.oxw(2);P.Q6J("ngClass",P.VKq(2,at,ye.isExisting(Oe))),P.xp6(),P.Oqu(Oe.day)}}function R(Z,Pt){if(1&Z){const Oe=P.EpF();P.ynx(0),P.TgZ(1,"imx-alternate-dates-buttons",26),P.NdJ("datesAdded",function(ve){P.CHM(Oe);const ft=P.oxw(3);return P.KtG(ft.datesAdded(ve))})("datesRemoved",function(ve){P.CHM(Oe);const ft=P.oxw(3);return P.KtG(ft.datesRemoved(ve))}),P.qZA(),P.BQk()}if(2&Z){const Oe=P.oxw(3);P.xp6(),P.Q6J("formHandler",Oe.formHandler)("datePickerValues",Oe.datePickerValues)("startTimeMandatory",Oe.startTimeMandatory)("alternatesDateModel",Oe.alternatesDateModel)}}function Te(Z,Pt){if(1&Z&&(P.ynx(0),P.YNc(1,R,2,4,"ng-container",3),P.ALo(2,"async"),P.BQk()),2&Z){const Oe=P.oxw(2);P.xp6(),P.Q6J("ngIf",P.lcZ(2,1,Oe.formHandler.hasEditAndSavePermission("eventDates")))}}function me(Z,Pt){if(1&Z){const Oe=P.EpF();P.TgZ(0,"button",13),P.NdJ("click",function(){P.CHM(Oe);const ve=P.oxw(4);return P.KtG(ve.removeAllDates())}),P._uU(1),P.qZA()}if(2&Z){const Oe=P.oxw(4);P.Q6J("disabled",0===Oe.asFormArray(Oe.formHandler.formGroup.get("eventDates")).length),P.xp6(),P.hij(" ","imxeventmanager.event.edit.panels.dates.remove-all-dates","")}}function Se(Z,Pt){if(1&Z){const Oe=P.EpF();P.TgZ(0,"div",28)(1,"div")(2,"button",12),P.NdJ("click",function(){P.CHM(Oe);const ve=P.oxw(3);return P.KtG(ve.addDate(ve.datePickerValues))}),P._uU(3),P.ALo(4,"translate"),P.qZA(),P.TgZ(5,"button",12),P.NdJ("click",function(){P.CHM(Oe);const ve=P.oxw(3);return P.KtG(ve.removeDate(ve.datePickerValues))}),P._uU(6),P.ALo(7,"translate"),P.qZA()(),P.YNc(8,me,2,2,"button",11),P.ALo(9,"async"),P.qZA()}if(2&Z){const Oe=P.oxw(3);P.xp6(2),P.Q6J("disabled",!Oe.enableCalenderAddDateButton()),P.xp6(),P.hij(" ",P.lcZ(4,5,"imxeventmanager.event.edit.panels.dates.add-date")," "),P.xp6(2),P.Q6J("disabled",!Oe.enableRemoveDateButton()),P.xp6(),P.hij(" ",P.lcZ(7,7,"imxeventmanager.event.edit.panels.dates.remove-date")," "),P.xp6(2),P.Q6J("ngIf",P.lcZ(9,9,Oe.formHandler.hasEditAndSavePermission("eventDates")))}}function Ue(Z,Pt){if(1&Z&&(P.YNc(0,Se,10,11,"div",27),P.ALo(1,"async")),2&Z){const Oe=P.oxw(2);P.Q6J("ngIf",P.lcZ(1,1,Oe.formHandler.hasEditAndSavePermission("eventDates")))}}function We(Z,Pt){if(1&Z){const Oe=P.EpF();P.TgZ(0,"button",13),P.NdJ("click",function(){P.CHM(Oe);const ve=P.oxw(3);return P.KtG(ve.removeExpiredDates())}),P._uU(1),P.qZA()}if(2&Z){const Oe=P.oxw(3);P.Q6J("disabled",0===Oe.asFormArray(Oe.formHandler.formGroup.get("eventDates")).length||!Oe.hasExpiredDates()),P.xp6(),P.hij(" ","imxeventmanager.event.edit.panels.dates.remove-expired-dates"," ")}}function et(Z,Pt){if(1&Z&&(P.ynx(0),P.YNc(1,We,2,2,"button",11),P.ALo(2,"async"),P.BQk()),2&Z){const Oe=P.oxw(2);P.xp6(),P.Q6J("ngIf",P.lcZ(2,1,Oe.formHandler.hasEditAndSavePermission("eventDates")))}}function Et(Z,Pt){if(1&Z){const Oe=P.EpF();P.TgZ(0,"button",13),P.NdJ("click",function(){P.CHM(Oe);const ve=P.oxw(2);return P.KtG(ve.removeAllDates())}),P._uU(1),P.qZA()}if(2&Z){const Oe=P.oxw(2);P.Q6J("disabled",0===Oe.asFormArray(Oe.formHandler.formGroup.get("eventDates")).length),P.xp6(),P.hij(" ","imxeventmanager.event.edit.panels.dates.remove-all-dates","")}}const lt=Z=>({count:Z});function Vt(Z,Pt){if(1&Z){const Oe=P.EpF();P.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",14),P.ALo(2,"translate"),P.TgZ(3,"div",15)(4,"p-calendar",16),P.NdJ("ngModelChange",function(ve){P.CHM(Oe);const ft=P.oxw();return P.KtG(ft.datePickerValues=ve)}),P.YNc(5,Le,2,4,"ng-template",17),P.qZA(),P.YNc(6,Te,3,3,"ng-container",18),P.ALo(7,"async"),P.YNc(8,Ue,2,3,"ng-template",null,19,P.W1O),P.qZA()(),P.TgZ(10,"div",20),P._UZ(11,"div",21),P.qZA(),P.TgZ(12,"imx-accordion-panel",22),P.ALo(13,"translate"),P._UZ(14,"imx-event-dates-table",23),P.TgZ(15,"div",24),P.YNc(16,et,3,3,"ng-container",3),P.ALo(17,"async"),P.YNc(18,Et,2,2,"button",11),P.ALo(19,"async"),P.qZA()()()}if(2&Z){const Oe=P.MAs(9),ye=P.oxw();P.xp6(),P.s9C("titleDescription",P.xi3(2,18,"imxeventmanager.event.edit.panels.dates.event-dates-count",P.VKq(30,lt,ye.asFormArray(ye.formHandler.formGroup.get("eventDates")).length))),P.xp6(3),P.Q6J("ngModel",ye.datePickerValues)("inline",!0)("selectionMode","multiple")("numberOfMonths",4)("disabledDates",ye.disabledDates)("defaultDate",ye.viewStartDate)("minDate",ye.minSelectionDate)("showOtherMonths",!1)("firstDayOfWeek",1),P.xp6(2),P.Q6J("ngIf",P.lcZ(7,21,ye.showAlternateDatesModel$)||5===ye.formHandler.formGroup.get("eventDateType.type").value)("ngIfElse",Oe),P.xp6(6),P.s9C("titleDescription",P.xi3(13,23,"imxeventmanager.event.edit.panels.dates.event-dates-count",P.VKq(32,lt,ye.asFormArray(ye.formHandler.formGroup.get("eventDates")).length))),P.xp6(2),P.Q6J("formHandler",ye.formHandler)("collectionName","eventDates")("startTimeIsMandatory",ye.startTimeMandatory),P.xp6(2),P.Q6J("ngIf",P.lcZ(17,26,ye.showAlternateDatesModel$)),P.xp6(2),P.Q6J("ngIf",P.lcZ(19,28,ye.formHandler.hasEditAndSavePermission("eventDates")))}}let r=(()=>{class Z{constructor(Oe,ye,ve,ft,Dt,Rn,ti,Xt){this.entitiesMgr=Oe,this.dialog=ye,this.configurationProvider=ve,this.changeDetectorRef=ft,this.userMessageService=Dt,this.eventmanagerDataAccessService=Rn,this.translateService=ti,this.dateTypeOptionProvider=Xt,this.logger=(0,l.jl)("EditEventDatesComponent",m.H.name),this.showAlternateDatesModel$=(0,t.of)(!1),this.startTimeMandatory=!1,this.alternatesDateModel=!1,this.dateTypeShadowControl=new e.p4,this.datePickerValues=null,this.disabledDates=[],this.minSelectionDate=new Date,this.viewStartDate=new Date,this.destroy$=new p.xQ,this.dateTypeShadowControl.setValidators(s.selectValueRequiredValidator)}ngOnChanges(Oe){Oe.record&&(this.dateTypeShadowControl.setValue(this.formHandler.formGroup.get("eventDateType.type").value,{emitEvent:!1}),this.currentDateType=this.dateTypeShadowControl.value)}ngOnInit(){this.dateTypeField=this.formHandler.formConfiguration.findFormFieldById("eventDateType.type"),this.dateTypeOptions$=this.dateTypeOptionProvider.getOptions(void 0,void 0).pipe((0,c.R)(this.destroy$)),this.showAlternateDatesModel$=this.configurationProvider.getBoolean(b.c.IMXEVENTMANAGER_EVENTDATE_ALTERNATE,!1),this.determineCalendarBounds(),this.attachEventDatesListener(this.formHandler.formGroup.get("eventDates")),this.formHandler.isNewEntity()&&(this.attachSpecificEventDatesSynchListener(this.formHandler.formGroup.get("eventDates")),this.showAlternateDatesModel$.pipe((0,c.R)(this.destroy$)).subscribe(Oe=>{Oe&&(this.formHandler.formGroup.get("eventDateType.type").setValue(n.$C),this.dateTypeShadowControl.setValue(n.$C))})),this.showAlternateDatesModel$.pipe((0,c.R)(this.destroy$)).subscribe(Oe=>{Oe||(this.adjustGapSelectInsertor(this.formHandler.formGroup.get("eventDateType.type").value),this.adjustRequiredFields(this.formHandler.formGroup.get("eventDateType.type").value),this.dateTypeShadowControl.valueChanges.pipe((0,c.R)(this.destroy$)).subscribe(ye=>{this.currentDateType===n.JC&&ye===n.$C||0===this.formHandler.getFormArrayControl("eventDates").length?this.performTypeSwitch(ye):this.dialog.open(s.ConfirmDialogComponent,{maxWidth:450,data:{title:"imxeventmanager.event.edit.panels.dates.type-switch-dialog.title",text:"imxeventmanager.event.edit.panels.dates.type-switch-dialog.text",iconClass:"icon-trash",confirmButtonKey:"imxeventmanager.event.edit.panels.dates.type-switch-dialog.confirm"}}).afterClosed().subscribe(ve=>{ve?this.performTypeSwitch(ye):this.dateTypeShadowControl.setValue(this.currentDateType,{emitEvent:!1})})}))})}performTypeSwitch(Oe){this.formHandler.formGroup.get("eventDateType.specificEventDates").clear(),this.formHandler.formGroup.get("eventDates").clear(),this.formHandler.formGroup.get("eventDateType.type").setValue(Oe),this.formHandler.formGroup.get("eventDateType.type").markAsDirty(),this.adjustGapSelectInsertor(Oe),this.adjustRequiredFields(Oe),Oe===n.$C?this.specificDatesSubscription=this.attachSpecificEventDatesSynchListener(this.formHandler.formGroup.get("eventDates")):this.currentDateType===n.$C&&this.specificDatesSubscription&&this.specificDatesSubscription.unsubscribe(),this.currentDateType=Oe,this.changeDetectorRef.markForCheck()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}determineCalendarBounds(){let Oe=null;this.formHandler.formGroup.get("eventDates").value.map(ye=>new Date(ye.date)).forEach(ye=>Oe=null===Oe||ye.getTime()<Oe.getTime()?ye:Oe),this.minSelectionDate=null===Oe||(new Date).getTime()<Oe.getTime()?new Date:Oe,this.viewStartDate=(0,l.Qn)(this.formHandler.formGroup.get("eventDates").value.map(ye=>ye.date))}getByNearestDate(Oe){if(Oe&&Oe.length>0){const ye=(new Date).getTime();return Oe.map(ve=>ve.date).sort((ve,ft)=>Math.abs(ve.getTime()-ye)-Math.abs(ft.getTime()-ye))[0]}return new Date}isDateTypeBasedOnDefinition(){return this.formHandler.formGroup.get("eventDateType.type").value>=n.zy&&this.formHandler.formGroup.get("eventDateType.type").value<=n.DI}isDateTypeASingleDate(){return this.formHandler.formGroup.get("eventDateType.type").value>=n.zy&&this.formHandler.formGroup.get("eventDateType.type").value<=n.DI}isExisting(Oe){return-1!==this.findEventDatesRow(Oe)}enableRemoveDateButton(){return!!this.datePickerValues&&this.datePickerValues.some(Oe=>this.isExisting({day:Oe.getDate(),month:Oe.getMonth(),year:Oe.getFullYear()}))}enableCalenderAddDateButton(){return!!this.datePickerValues}addDate(Oe){Oe&&(Oe.forEach(ye=>{this.formHandler.addNewCollectionRow("eventDates").get("date").setValue(ye)}),this.datesAdded(Oe.length))}resetSelection(){this.datePickerValues=null}removeAllDates(){const Oe=this.formHandler.formGroup.get("eventDates").value.length;this.formHandler.formGroup.get("eventDates").clear(),this.datesRemoved(Oe);const ye=document.getElementById("eventDatesAnchor");ye&&ye.scrollIntoView({behavior:"smooth",block:"start"})}hasExpiredDates(){const Oe=new Date((new Date).setHours(0,0,0,0));let ye=!1;return this.formHandler.formGroup.get("eventDates").controls.forEach(ve=>{const ft=ve.value;ft&&ft.date&&new Date(ft.date.setHours(0,0,0,0))<Oe&&(ye=!0)}),ye}removeExpiredDates(){const Oe=this.formHandler.formGroup.get("eventDates").value.length,ye=new Date((new Date).setHours(0,0,0,0)),ve=[];this.formHandler.formGroup.get("eventDates").controls.forEach(ft=>{let Dt=!0;const Rn=ft.value;Rn&&Rn.date&&new Date(Rn.date.setHours(0,0,0,0))<ye&&(Dt=!1),!0===Dt&&ve.push(ft)}),ve.length!==Oe&&(this.formHandler.formGroup.get("eventDates").clear(),ve.forEach(ft=>{this.formHandler.formGroup.get("eventDates").push(ft)}),this.datesRemoved(Oe-ve.length),this.formHandler.formGroup.get("eventDates").markAsDirty())}removeDate(Oe){if(Oe){let ye=0;Oe.forEach(ve=>{let ft=this.findEventDatesRowByDate(ve);for(;ft>-1;)ye++,this.formHandler.removeLineFromCollection("eventDates",ft),ft=this.findEventDatesRowByDate(ve)}),this.datesRemoved(ye),this.datePickerValues=null}}datesAdded(Oe){this.userMessageService.showInfo("imxeventmanager.event.edit.panels.dates.dates-added",{count:Oe}),this.datePickerValues=null}datesRemoved(Oe){this.userMessageService.showInfo("imxeventmanager.event.edit.panels.dates.dates-removed",{count:Oe}),this.datePickerValues=null}generateEventDates(){this.logger.debug("generateEventDates for event "+this.formHandler.baseObject.id),this.datePickerValues=null,this.formHandler.formGroup.get("eventDates").clear();const Oe=this.formHandler.getBaseObjectCopyWithCurrentFormValues(),ye=i(Oe);ye.id=null,this.eventmanagerDataAccessService.generateEventDates(ye).subscribe(ve=>{this.overtakeEventDates(ve)},ve=>{this.userMessageService.showError(ve||"imxeventmanager.event.edit.panels.dates.event-dates-generation-failed")})}recalculateEventDates(){this.logger.debug("recalculateEventDates for event "+this.formHandler.baseObject.id),this.datePickerValues=null,this.formHandler.formGroup.get("eventDates").clear();const Oe=this.formHandler.getBaseObjectCopyWithCurrentFormValues();this.eventmanagerDataAccessService.generateEventDates(Oe).subscribe(ye=>{this.overtakeEventDates(ye)},ye=>{this.userMessageService.showError(ye||"imxeventmanager.event.edit.panels.dates.event-dates-generation-failed")})}recalculateSpecificEventDates(){this.logger.debug("recalculateSpecificEventDates for event "+this.formHandler.baseObject.id),this.datePickerValues=null,this.formHandler.formGroup.get("eventDateType.specificEventDates").clear();const Oe=this.formHandler.getBaseObjectCopyWithCurrentFormValues();this.eventmanagerDataAccessService.generateEventDates(Oe).subscribe(ye=>{this.overtakeSpecificEventDates(ye),this.showSpecificEventDates()})}definitionHasChanged(){return this.isDirty("eventDateType.startDate")||this.isDirty("eventDateType.endDate")||this.isDirty("eventDateType.startTimeDurations")||this.isDirty("eventDateType.weekDays")||this.isDirty("eventDateType.specificDayOfMonth")||this.isDirty("eventDateType.specificDayOfWeek")||this.isDirty("eventDateType.dayOfMonth")||this.isDirty("eventDateType.dayOfWeek")||this.isDirty("eventDateType.monthGap")||this.isDirty("eventDateType.gap")||this.isDirty("eventDateType.weekdaysOnly")||this.isDirty("eventDateType.dayOfWeek")||this.isDirty("eventDateType.dayOfMonth")}isDirty(Oe){return this.formHandler.formGroup.get(Oe).dirty}overtakeEventDates(Oe){Oe.eventDates?Oe.eventDates.forEach(ye=>{const ve=this.formHandler.addNewCollectionRow("eventDates"),ft={};this.formHandler.formConfiguration.findArrayFieldById("eventDates").children.forEach(Dt=>this.formHandler.transferFieldValueIncoming(Dt,ft,ye,this.formHandler.getObjectLanguages().map(Rn=>Rn.name),ve)),ve.patchValue(ft)}):this.userMessageService.showError("imxeventmanager.event.edit.panels.dates.event-dates-empty")}overtakeSpecificEventDates(Oe){Oe.eventDateType.specificEventDates.forEach(ye=>{const ve=this.formHandler.addNewCollectionRow("eventDateType.specificEventDates"),ft={};this.formHandler.formConfiguration.findArrayFieldById("eventDateType.specificEventDates").children.forEach(Dt=>this.formHandler.transferFieldValueIncoming(Dt,ft,ye,this.formHandler.getObjectLanguages().map(Rn=>Rn.name),ve)),ve.patchValue(ft)})}asFormArray(Oe){return Oe}showSpecificEventDates(){this.dialog.open(ae,{minWidth:800,data:{formHandler:this.formHandler}})}findEventDatesRow(Oe){return this.formHandler.formGroup.get("eventDates").getRawValue().map(ye=>new Date(ye.date)).findIndex(ye=>Oe.year===ye.getFullYear()&&Oe.month===ye.getMonth()&&Oe.day===ye.getDate())}findEventDatesRowByDate(Oe){return this.findEventDatesRow({day:Oe.getDate(),month:Oe.getMonth(),year:Oe.getFullYear()})}attachSpecificEventDatesSynchListener(Oe){return Oe.valueChanges.pipe((0,c.R)(this.destroy$),(0,o.b)(100)).subscribe(ye=>{this.formHandler.formGroup.get("eventDateType.specificEventDates").clear(),Oe.controls.forEach(ve=>{const ft=this.formHandler.addNewCollectionRow("eventDateType.specificEventDates",!0);ft.patchValue(ve.value),ft.get("modificationType").setValue(0),ft.get(s.ARRAY_ID_FIELD).setValue(null)})})}attachEventDatesListener(Oe){return Oe.valueChanges.pipe((0,c.R)(this.destroy$),(0,o.b)(100)).pipe((0,x.O)(null),(0,u.G)()).subscribe(([ye,ve])=>{(null!=ye||null==this.record.id)&&this.adjustAppearances()})}adjustGapSelectInsertor(Oe){const ye=this.formHandler.formConfiguration.findFormFieldById("eventDateType.gap-select");ye&&(Oe===n.wx&&(ye.insertor=(0,s.noneInsertor)()),Oe===n.DI&&(ye.insertor=(0,s.pathInsertor)("eventDateType.gap",!0)))}adjustRequiredFields(Oe){Oe===n.zy||Oe===n.wx||Oe===n.DI?(this.applyRequiredValidator("eventDateType.startDate"),this.applyRequiredValidator("eventDateType.endDate")):(this.unapplyRequiredValidator("eventDateType.startDate"),this.unapplyRequiredValidator("eventDateType.endDate"))}applyRequiredValidator(Oe){const ye=this.formHandler.formConfiguration.findFormFieldById(Oe),ve=this.formHandler.formGroup.get(Oe);ye&&ye instanceof s.AbstractField&&ve?(ye.required=!0,ye.applyValidatorsToControl(ve),ve.updateValueAndValidity()):console.warn("neither field definition or control found for required property definition "+Oe)}unapplyRequiredValidator(Oe){const ye=this.formHandler.formConfiguration.findFormFieldById(Oe),ve=this.formHandler.formGroup.get(Oe);ye&&ye instanceof s.AbstractField&&ve?(ye.required=!1,ve.setValidators(null),ve.updateValueAndValidity()):console.warn("neither field definition or control found for required property definition "+Oe)}adjustAppearances(){const Oe=this.formHandler.formGroup.get("eventDates"),ye=(0,l.yX)(Oe,"date");if(ye){const ve=this.formHandler.formGroup.get("defaultAppearance");ve&&ve.value&&Object.keys(ve.value).length>0&&ve.get("toDate").setValue(ye);const ft=this.formHandler.formGroup.get("appearances");ft&&ft.length>0&&ft.controls.forEach(Dt=>{Dt.get("toDate").setValue(ye)})}}static#e=this.\u0275fac=function(ye){return new(ye||Z)(P.Y36(l.qB),P.Y36(O.uw),P.Y36(s.ConfigurationProvider),P.Y36(P.sBO),P.Y36(s.UserMessageService),P.Y36(I.b),P.Y36(J.sK),P.Y36(H._))};static#t=this.\u0275cmp=P.Xpm({type:Z,selectors:[["imx-edit-event-dates"]],inputs:{formHandler:"formHandler",record:"record",startTimeMandatory:"startTimeMandatory",alternatesDateModel:"alternatesDateModel"},features:[P.TTD],decls:7,vars:13,consts:[[3,"field","formHandler","form","label","renderBig"],["class","form__content-field-row type-select",4,"ngIf"],["class","form__content-row definition-row",4,"ngIf"],[4,"ngIf"],[1,"form__content-field-row","type-select"],[3,"field","control","form","formHandler","optionProvider"],[1,"form__content-row","definition-row"],[3,"formHandler","startTimeIsMandatory",4,"ngIf"],[3,"formHandler","startTimeIsMandatory"],["class","form__content-row button-bar",4,"ngIf"],[1,"form__content-row","button-bar"],["class","imx-button prio2","translate","",3,"disabled","click",4,"ngIf"],[1,"imx-button","prio2",3,"disabled","click"],["translate","",1,"imx-button","prio2",3,"disabled","click"],["expanded","true","title","imxeventmanager.event.edit.panels.dates.calendar-title",3,"titleDescription"],[1,"calendar"],[3,"ngModel","inline","selectionMode","numberOfMonths","disabledDates","defaultDate","minDate","showOtherMonths","firstDayOfWeek","ngModelChange"],["pTemplate","date"],[4,"ngIf","ngIfElse"],["classicButtonBar",""],[1,"anchor-container"],["id","eventDatesAnchor",1,"inner-anchor"],["expanded","true","title","imxeventmanager.event.edit.panels.dates.event-dates-title",3,"titleDescription"],[3,"formHandler","collectionName","startTimeIsMandatory"],[1,"button-bar",2,"justify-content","flex-end"],[3,"ngClass"],[3,"formHandler","datePickerValues","startTimeMandatory","alternatesDateModel","datesAdded","datesRemoved"],["class","button-bar",4,"ngIf"],[1,"button-bar"]],template:function(ye,ve){1&ye&&(P._UZ(0,"imx-label-lockable",0),P.YNc(1,q,3,7,"div",1),P.ALo(2,"async"),P.YNc(3,ee,5,4,"div",2),P.ALo(4,"async"),P.YNc(5,Ke,3,3,"ng-container",3)(6,Vt,20,34,"imx-accordion",3)),2&ye&&(P.Q6J("field",ve.formHandler.formConfiguration.findFormFieldById("eventDates"))("formHandler",ve.formHandler)("form",ve.formHandler.formGroup)("label","imxeventmanager.event.edit.panels.dates.title")("renderBig",!0),P.xp6(),P.Q6J("ngIf",!P.lcZ(2,9,ve.showAlternateDatesModel$)),P.xp6(2),P.Q6J("ngIf",!P.lcZ(4,11,ve.showAlternateDatesModel$)),P.xp6(2),P.Q6J("ngIf",ve.isDateTypeBasedOnDefinition()),P.xp6(),P.Q6J("ngIf",ve.formHandler.formGroup.get("eventDateType.type").value>1))},styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}  p-calendar .p-datepicker-group-container{background:#fff;border:1px solid #ced4e0;position:static;display:flex;flex-direction:row;flex-wrap:wrap;padding:10px}  p-calendar .p-datepicker-group-container .p-datepicker-header{padding:0 0 10px}  p-calendar .p-datepicker-group-container .p-datepicker-header .p-datepicker-prev,   p-calendar .p-datepicker-group-container .p-datepicker-header .p-datepicker-next{top:0;cursor:pointer}  p-calendar .p-datepicker-group-container .p-datepicker-year{margin:0 0 0 .25em}  p-calendar .p-datepicker-group-container th{font-weight:400;color:#000;font-size:12px;padding:.5em}  p-calendar .p-datepicker-group-container td{border:0;padding:0}  p-calendar .p-datepicker-group-container td:hover:not(.p-datepicker-other-month){cursor:pointer}  p-calendar .p-datepicker-group-container td .p-ripple{border:0;border-collapse:collapse;display:block;font:400 14px/20px GT Walsheim,Arial,sans-serif;font-size:.9em;padding:0;text-align:center;text-decoration:none}  p-calendar .p-datepicker-group-container td .p-ripple span{padding:5px;display:inline-block;text-align:center;width:100%}  p-calendar .p-datepicker-group-container td .p-ripple span.existing-date{border-radius:50%}  p-calendar .p-datepicker-group-container td .p-ripple.p-disabled{color:#9da8c1}  p-calendar .p-datepicker-group-container .p-datepicker-title{font-size:12px}  p-calendar .p-datepicker-group-container .p-datepicker-title .p-link{color:#000}  p-calendar .p-datepicker-multiple-month.p-datepicker-inline .p-datepicker-group-container .p-datepicker-group{flex:0 1 auto;margin-right:15px}.definition-row[_ngcontent-%COMP%]{width:100%}h3[_ngcontent-%COMP%]{margin-bottom:10px}.type-select[_ngcontent-%COMP%]{width:50%!important;margin-top:10px;margin-bottom:10px}.calendar[_ngcontent-%COMP%]{margin-bottom:10px}.button-bar[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:10px;display:flex;justify-content:space-between}.button-bar[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%] ~ .imx-button[_ngcontent-%COMP%]{margin-left:10px}.anchor-container[_ngcontent-%COMP%]{position:relative}.anchor-container[_ngcontent-%COMP%]   .inner-anchor[_ngcontent-%COMP%]{position:absolute;top:-163px;left:0}[_nghost-%COMP%]  .mat-mdc-expansion-panel-content>.mat-mdc-expansion-panel-body{padding:unset!important}"]})}return Z})()},6690:(gt,X,a)=>{"use strict";a.d(X,{h:()=>bn});var e=a(25313),n=a(85829),s=a(72079),l=a(19352),i=a(96776),t=a(51418),c=(a(58391),a(19212)),o=a(71365),x=a(28907),u=a(82121),m=a(22194),b=a(96814),I=a(56223),H=a(17299);function O(vt,nn){1&vt&&(c.TgZ(0,"p",6),c._uU(1,"imxplatform.common.no-records"),c.qZA())}function P(vt,nn){1&vt&&c._UZ(0,"tr",30)}function G(vt,nn){1&vt&&c._UZ(0,"tr",31)}function B(vt,nn){if(1&vt&&(c.TgZ(0,"th",32),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&vt){const rn=c.oxw(2);c.xp6(),c.hij("",c.lcZ(2,1,rn.formHandler.getFormFieldLabel("eventDates:date")),"*")}}function ae(vt,nn){if(1&vt&&(c.TgZ(0,"span",37),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&vt){const rn=c.oxw().$implicit,ii=c.oxw(2);c.Q6J("ngClass",ii.translateService.currentLang),c.xp6(),c.Oqu(c.lcZ(2,2,"imxplatform.common.weekdays."+ii.getWeekDay(rn)))}}function J(vt,nn){1&vt&&c.GkF(0)}const q=vt=>({$implicit:"date",element:vt});function j(vt,nn){if(1&vt&&(c.TgZ(0,"td",33)(1,"div",34),c.YNc(2,ae,3,4,"span",35)(3,J,1,0,"ng-container",36),c.qZA()()),2&vt){const rn=nn.$implicit,ii=c.oxw(2),Oo=c.MAs(7);c.Q6J("formGroup",rn),c.xp6(2),c.Q6J("ngIf",void 0!==ii.getWeekDay(rn)),c.xp6(),c.Q6J("ngTemplateOutlet",Oo)("ngTemplateOutletContext",c.VKq(4,q,rn))}}function Y(vt,nn){if(1&vt&&(c.TgZ(0,"th",32),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&vt){const rn=c.oxw(2);c.xp6(),c.AsE("",c.lcZ(2,2,rn.formHandler.getFormFieldLabel("eventDates:startTime")),"",rn.startTimeIsMandatory?"*":"","")}}function K(vt,nn){1&vt&&c.GkF(0)}const ne=vt=>({$implicit:"startTime",element:vt});function ee(vt,nn){if(1&vt&&(c.TgZ(0,"td",33),c.YNc(1,K,1,0,"ng-container",36),c.qZA()),2&vt){const rn=nn.$implicit;c.oxw(2);const ii=c.MAs(7);c.Q6J("formGroup",rn),c.xp6(),c.Q6J("ngTemplateOutlet",ii)("ngTemplateOutletContext",c.VKq(3,ne,rn))}}function $(vt,nn){if(1&vt&&(c.TgZ(0,"th",38),c._uU(1),c.qZA()),2&vt){const rn=c.oxw(2);c.xp6(),c.Oqu(rn.formHandler.getFormFieldLabel("eventDates:endTime"))}}function ue(vt,nn){1&vt&&c.GkF(0)}const ge=vt=>({$implicit:"endTime",element:vt});function Ke(vt,nn){if(1&vt&&(c.TgZ(0,"td",39),c.YNc(1,ue,1,0,"ng-container",36),c._UZ(2,"imx-predefined-input-error",40),c.qZA()),2&vt){const rn=nn.$implicit;c.oxw(2);const ii=c.MAs(7);c.xp6(),c.Q6J("ngTemplateOutlet",ii)("ngTemplateOutletContext",c.VKq(3,ge,rn)),c.xp6(),c.Q6J("errors",rn.controls.startTime.errors)}}function at(vt,nn){if(1&vt&&(c.TgZ(0,"th",38),c._uU(1),c.qZA()),2&vt){const rn=c.oxw(2);c.xp6(),c.Oqu(rn.formHandler.getFormFieldLabel("eventDates:duration"))}}function Le(vt,nn){1&vt&&c.GkF(0)}const R=vt=>({$implicit:"duration",element:vt});function Te(vt,nn){if(1&vt&&(c.TgZ(0,"td",41),c.YNc(1,Le,1,0,"ng-container",36),c.qZA()),2&vt){const rn=nn.$implicit;c.oxw(2);const ii=c.MAs(7);c.xp6(),c.Q6J("ngTemplateOutlet",ii)("ngTemplateOutletContext",c.VKq(2,R,rn))}}function me(vt,nn){if(1&vt&&(c.TgZ(0,"th",42),c._uU(1),c.qZA()),2&vt){const rn=c.oxw(2);c.xp6(),c.Oqu(rn.formHandler.getFormFieldLabel("eventDates:soldout"))}}function Se(vt,nn){1&vt&&c.GkF(0)}const Ue=vt=>({$implicit:"soldout",element:vt});function We(vt,nn){if(1&vt&&(c.TgZ(0,"td",43),c.YNc(1,Se,1,0,"ng-container",36),c.qZA()),2&vt){const rn=nn.$implicit;c.oxw(2);const ii=c.MAs(7);c.Q6J("formGroup",rn),c.xp6(),c.Q6J("ngTemplateOutlet",ii)("ngTemplateOutletContext",c.VKq(3,Ue,rn))}}function et(vt,nn){if(1&vt&&(c.TgZ(0,"th",42),c._uU(1),c.qZA()),2&vt){const rn=c.oxw(2);c.xp6(),c.Oqu(rn.formHandler.getFormFieldLabel("eventDates:cancelled"))}}function Et(vt,nn){1&vt&&c.GkF(0)}const lt=vt=>({$implicit:"cancelled",element:vt});function Vt(vt,nn){if(1&vt&&(c.TgZ(0,"td",43),c.YNc(1,Et,1,0,"ng-container",36),c.qZA()),2&vt){const rn=nn.$implicit;c.oxw(2);const ii=c.MAs(7);c.Q6J("formGroup",rn),c.xp6(),c.Q6J("ngTemplateOutlet",ii)("ngTemplateOutletContext",c.VKq(3,lt,rn))}}function r(vt,nn){if(1&vt&&(c.TgZ(0,"th",42),c._uU(1),c.qZA()),2&vt){const rn=c.oxw(2);c.xp6(),c.Oqu(rn.formHandler.getFormFieldLabel("eventDates:online"))}}function Z(vt,nn){1&vt&&c.GkF(0)}const Pt=vt=>({$implicit:"online",element:vt});function Oe(vt,nn){if(1&vt&&(c.TgZ(0,"td",43),c.YNc(1,Z,1,0,"ng-container",36),c.qZA()),2&vt){const rn=nn.$implicit;c.oxw(2);const ii=c.MAs(7);c.Q6J("formGroup",rn),c.xp6(),c.Q6J("ngTemplateOutlet",ii)("ngTemplateOutletContext",c.VKq(3,Pt,rn))}}function ye(vt,nn){if(1&vt&&(c.TgZ(0,"th",42),c._uU(1),c.qZA()),2&vt){const rn=c.oxw(2);c.xp6(),c.Oqu(rn.formHandler.getFormFieldLabel("eventDates:bookingLink"))}}function ve(vt,nn){1&vt&&c.GkF(0)}const ft=vt=>({$implicit:"bookingLink",element:vt});function Dt(vt,nn){if(1&vt&&(c.TgZ(0,"td",43),c.YNc(1,ve,1,0,"ng-container",36),c.qZA()),2&vt){const rn=nn.$implicit;c.oxw(2);const ii=c.MAs(7);c.Q6J("formGroup",rn),c.xp6(),c.Q6J("ngTemplateOutlet",ii)("ngTemplateOutletContext",c.VKq(3,ft,rn))}}function Rn(vt,nn){if(1&vt&&(c.TgZ(0,"th",42),c._uU(1),c.qZA()),2&vt){const rn=c.oxw(2);c.xp6(),c.Oqu(rn.formHandler.getFormFieldLabel("eventDates:notes"))}}function ti(vt,nn){1&vt&&c.GkF(0)}const Xt=vt=>({$implicit:"notes",element:vt});function Je(vt,nn){if(1&vt&&(c.TgZ(0,"td",43),c.YNc(1,ti,1,0,"ng-container",36),c.qZA()),2&vt){const rn=nn.$implicit;c.oxw(2);const ii=c.MAs(7);c.Q6J("formGroup",rn),c.xp6(),c.Q6J("ngTemplateOutlet",ii)("ngTemplateOutletContext",c.VKq(3,Xt,rn))}}function dt(vt,nn){if(1&vt&&(c.TgZ(0,"th",42),c._uU(1),c.qZA()),2&vt){const rn=c.oxw(2);c.xp6(),c.Oqu(rn.formHandler.getFormFieldLabel("eventDateType.specificEventDates:modificationType"))}}function Ie(vt,nn){if(1&vt&&(c.TgZ(0,"td",43)(1,"span",44),c._uU(2),c.qZA()()),2&vt){const rn=nn.$implicit;c.Q6J("formGroup",rn),c.xp6(2),c.Oqu("entity.SpecificEventDate.modificationType."+rn.controls.modificationType.value)}}function ot(vt,nn){1&vt&&c._UZ(0,"th",45)}function ct(vt,nn){if(1&vt){const rn=c.EpF();c.TgZ(0,"a",48),c.NdJ("click",function(){c.CHM(rn);const Oo=c.oxw().$implicit,no=c.oxw(2);return c.KtG(no.removeEventDate(no.dataSource.data.indexOf(Oo)))}),c.qZA()}}function tn(vt,nn){if(1&vt&&(c.TgZ(0,"td",46),c.YNc(1,ct,1,0,"a",47),c.qZA()),2&vt){const rn=nn.$implicit,ii=c.oxw(2);c.Q6J("formGroup",rn),c.xp6(),c.Q6J("ngIf",ii.formHandler.hasEditPermission("eventDateType"))}}function yi(vt,nn){if(1&vt&&(c.TgZ(0,"table",7),c.YNc(1,P,1,0,"tr",8)(2,G,1,0,"tr",9),c.ynx(3,10),c.YNc(4,B,3,3,"th",11)(5,j,4,6,"td",12),c.BQk(),c.ynx(6,13),c.YNc(7,Y,3,4,"th",11)(8,ee,2,5,"td",12),c.BQk(),c.ynx(9,14),c.YNc(10,$,2,1,"th",15)(11,Ke,3,5,"td",16),c.BQk(),c.ynx(12,17),c.YNc(13,at,2,1,"th",15)(14,Te,2,4,"td",18),c.BQk(),c.ynx(15,19),c.YNc(16,me,2,1,"th",20)(17,We,2,5,"td",21),c.BQk(),c.ynx(18,22),c.YNc(19,et,2,1,"th",20)(20,Vt,2,5,"td",21),c.BQk(),c.ynx(21,23),c.YNc(22,r,2,1,"th",20)(23,Oe,2,5,"td",21),c.BQk(),c.ynx(24,24),c.YNc(25,ye,2,1,"th",20)(26,Dt,2,5,"td",21),c.BQk(),c.ynx(27,25),c.YNc(28,Rn,2,1,"th",20)(29,Je,2,5,"td",21),c.BQk(),c.ynx(30,26),c.YNc(31,dt,2,1,"th",20)(32,Ie,3,2,"td",21),c.BQk(),c.ynx(33,27),c.YNc(34,ot,1,0,"th",28)(35,tn,2,2,"td",29),c.BQk(),c.qZA()),2&vt){const rn=c.oxw();c.Q6J("dataSource",rn.dataSource),c.xp6(),c.Q6J("matHeaderRowDef",rn.displayedColumns),c.xp6(),c.Q6J("matRowDefColumns",rn.displayedColumns)}}function ni(vt,nn){if(1&vt){const rn=c.EpF();c.TgZ(0,"imx-paginator",49),c.NdJ("page",function(Oo){c.CHM(rn);const no=c.oxw();return c.KtG(no.onPageChange(Oo))}),c.qZA()}if(2&vt){const rn=c.oxw();c.Q6J("length",rn.currentFilteredSize)("pageIndex",rn.currentPageIndex)("pageSize",rn.currentPageSize)("pageLinks",7)}}function sn(vt,nn){if(1&vt&&c._UZ(0,"imx-form-control",50),2&vt){const rn=nn.$implicit,ii=nn.element,Oo=c.oxw();c.Q6J("field",Oo.formHandler.formConfiguration.findFormFieldById("eventDates:"+rn))("control",ii.controls[rn])("form",Oo.formHandler.formGroup)("formHandler",Oo.formHandler)("config",Oo.formHandler.formConfiguration)}}let bn=(()=>{class vt{constructor(rn,ii,Oo){this.changeDetectorRef=rn,this.formatterService=ii,this.translateService=Oo,this.displayedColumns=["date"],this.startTimeIsMandatory=!1,this.destroy$=new s.xQ,this.destroyRow$=new s.xQ,this.defaultColumns=["startTime","endTime","duration","soldout","cancelled","online","bookingLink","notes","removeColumn"],this.currentPageIndex=1,this.currentPageSize=10,this.currentFilteredSize=0}ngOnChanges(rn){this.determinePageChunk()}ngOnInit(){const rn=this.formHandler.showEndTimeInDatesTable();if("eventDates"===this.collectionName){if(rn||this.defaultColumns.splice(1,1),this.hideRemoveColumn){const ii=this.defaultColumns.indexOf("removeColumn");this.defaultColumns.splice(ii,1)}this.determineDisplayedColumns(this.defaultColumns)}this.formHandler.formGroup.get(this.collectionName).valueChanges.pipe((0,l.R)(this.destroy$),(0,i.b)(100)).subscribe(ii=>{rn&&this.determineRowListeners(),this.determinePageChunk()}),rn&&this.formHandler.formGroup.get(this.collectionName).controls.forEach(Oo=>{this.formHandler.calculateEndTime(Oo,Oo.get("duration").value)})}determineDisplayedColumns(rn){rn.forEach(ii=>this.formHandler.hasReadPermission("eventDates."+ii).pipe((0,t.q)(1)).subscribe(Oo=>{Oo&&this.displayedColumns.push(ii)}))}ngOnDestroy(){this.destroyRow$.next(),this.destroyRow$.complete(),this.destroy$.next(),this.destroy$.complete()}removeEventDate(rn){this.formHandler.removeLineFromCollection(this.collectionName,(this.currentPageIndex-1)*this.currentPageSize+rn)}sortByDate(rn,ii){return rn.get("date")&&rn.get("date").value&&ii.get("date")&&ii.get("date").value?rn.get("date").value.getTime()-ii.get("date").value.getTime():0}determinePageChunk(){const rn=this.formHandler.formGroup.get(this.collectionName);if(rn.controls.sort((ii,Oo)=>this.sortByDate(ii,Oo)),!rn)throw new Error("cannot determinePageChunk for undefined formArray");this.currentFilteredSize=rn.controls.length,this.dataSource=new e.by(rn.controls.slice((this.currentPageIndex-1)*this.currentPageSize,(this.currentPageIndex-1)*this.currentPageSize+this.currentPageSize)),this.changeDetectorRef.markForCheck()}determineRowListeners(){const rn=this.formHandler.formGroup.get(this.collectionName);(!this.currentRowListeners||this.currentRowListeners!==rn.controls.length)&&(this.destroyRow$.next(),rn.controls.forEach(ii=>{this.checkTimeValidity(ii)&&this.formHandler.calculateEndTime(ii,ii.get("duration").value),ii.get("startTime").valueChanges.pipe((0,l.R)(this.destroyRow$),(0,i.b)(500)).subscribe(Oo=>{this.checkTimeValidity(ii)&&this.formHandler.calculateDuration(ii,ii.get("endTime").value)}),ii.get("endTime").valueChanges.pipe((0,l.R)(this.destroyRow$),(0,i.b)(500)).subscribe(Oo=>{this.checkTimeValidity(ii)&&this.formHandler.calculateDuration(ii,Oo)}),ii.get("duration").valueChanges.pipe((0,l.R)(this.destroyRow$),(0,i.b)(500)).subscribe(Oo=>{this.checkTimeValidity(ii)&&this.formHandler.calculateEndTime(ii,Oo)})}),this.currentRowListeners=rn.controls.length)}onPageChange(rn){this.currentPageIndex=rn.pageIndex,this.currentPageSize=rn.pageSize,this.determinePageChunk();const ii=document.getElementById("eventDatesAnchor");ii&&ii.scrollIntoView({behavior:"smooth",block:"start"})}getWeekDay(rn){if(rn.get("date").value){const ii=new Date(rn.get("date").value);return isNaN(ii.getTime())?void 0:(ii.getDay()+6)%7}}getValidityIfExists(rn){return!rn||rn.valid}checkTimeValidity(rn){return this.getValidityIfExists(rn.get("startTime"))&&this.getValidityIfExists(rn.get("endTime"))&&this.getValidityIfExists(rn.get("duration"))}static#e=this.\u0275fac=function(ii){return new(ii||vt)(c.Y36(c.sBO),c.Y36(n.FormatterService),c.Y36(o.sK))};static#t=this.\u0275cmp=c.Xpm({type:vt,selectors:[["imx-event-dates-table"]],hostAttrs:[1,"imx-event-dates-table"],inputs:{formHandler:"formHandler",displayedColumns:"displayedColumns",hideRemoveColumn:"hideRemoveColumn",startTimeIsMandatory:"startTimeIsMandatory",collectionName:"collectionName"},features:[c.TTD],decls:8,vars:3,consts:[[1,"dates-container"],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[3,"length","pageIndex","pageSize","pageLinks","page",4,"ngIf"],["imxControl",""],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","date"],["mat-header-cell","","class","date",4,"matHeaderCellDef"],["mat-cell","","class","date",3,"formGroup",4,"matCellDef"],["matColumnDef","startTime"],["matColumnDef","endTime"],["mat-header-cell","","class","date","translate","",4,"matHeaderCellDef"],["mat-cell","","class","date mat-form-field",4,"matCellDef"],["matColumnDef","duration"],["mat-cell","","class","date",4,"matCellDef"],["matColumnDef","soldout"],["mat-header-cell","","translate","",4,"matHeaderCellDef"],["mat-cell","",3,"formGroup",4,"matCellDef"],["matColumnDef","cancelled"],["matColumnDef","online"],["matColumnDef","bookingLink"],["matColumnDef","notes"],["matColumnDef","modificationType"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","",1,"date"],["mat-cell","",1,"date",3,"formGroup"],[1,"date__cell"],["class","date__cell__day",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"date__cell__day",3,"ngClass"],["mat-header-cell","","translate","",1,"date"],["mat-cell","",1,"date","mat-form-field"],[1,"txt-md-sm",3,"errors"],["mat-cell","",1,"date"],["mat-header-cell","","translate",""],["mat-cell","",3,"formGroup"],["translate",""],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],["class","icon icon-trash imx-icon-middle imx-icon-clickable",3,"click",4,"ngIf"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"],[3,"length","pageIndex","pageSize","pageLinks","page"],[3,"field","control","form","formHandler","config"]],template:function(ii,Oo){if(1&ii&&(c.TgZ(0,"div",0),c.YNc(1,O,2,0,"ng-template",null,1,c.W1O),c.TgZ(3,"div",2),c.YNc(4,yi,36,3,"table",3),c.qZA(),c.YNc(5,ni,1,4,"imx-paginator",4),c.qZA(),c.YNc(6,sn,1,5,"ng-template",null,5,c.W1O)),2&ii){const no=c.MAs(2);c.xp6(4),c.Q6J("ngIf",Oo.dataSource&&Oo.dataSource.data.length>0)("ngIfElse",no),c.xp6(),c.Q6J("ngIf",Oo.currentFilteredSize>Oo.currentPageSize)}},dependencies:[x.A,u.a,m.F,b.mk,b.O5,b.tP,I.JL,e.BZ,e.fO,e.as,e.w1,e.Dz,e.nj,e.ge,e.ev,e.XQ,e.Gk,I.sg,o.Pi,H.J,o.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.date__cell[_ngcontent-%COMP%]{align-items:center;-moz-column-gap:5px;column-gap:5px;display:flex}.date__cell[_ngcontent-%COMP%]   .date__cell__day[_ngcontent-%COMP%]{margin-bottom:5px}.date__cell[_ngcontent-%COMP%]   .date__cell__day[_ngcontent-%COMP%]:not(.de):not(.en){min-width:29px}.date__cell[_ngcontent-%COMP%]   .date__cell__day.de[_ngcontent-%COMP%]{min-width:20px}.date__cell[_ngcontent-%COMP%]   .date__cell__day.en[_ngcontent-%COMP%]{min-width:29px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .date__cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%]{min-width:0}"]})}return vt})()},77164:(gt,X,a)=>{"use strict";a.d(X,{D:()=>i,a:()=>t});var e=a(19212),n=a(85829),s=a(94522),l=a(43941);const i=new e.OlP("imxeventmgr.forms.event.dataobjectmediuminitializer");let t=(()=>{class p extends n.AbstractCoreDataObjectFormPanelComponent{constructor(o,x,u){super(o),this.dataAccessService=x,this.dataObjectMediumInitializer=u}afterPooledMediumDelete(o){this.dataAccessService.getEventById(o).subscribe(x=>{this.formHandler.baseObject=x,this.record=x})}static#e=this.\u0275fac=function(x){return new(x||p)(e.Y36(n.ImxEntitiesMgrService),e.Y36(s.b),e.Y36(i))};static#t=this.\u0275cmp=e.Xpm({type:p,selectors:[["imx-event-media-form-panel"]],hostAttrs:[1,"imx-event-media-form-panel"],features:[e.qOj],decls:1,vars:5,consts:[[3,"formHandler","record","dataObjectEntityType","dataObjectMediumInitializerService","removeHeader","afterPooledMediumDelete"]],template:function(x,u){1&x&&(e.TgZ(0,"imx-media-form-panel",0),e.NdJ("afterPooledMediumDelete",function(b){return u.afterPooledMediumDelete(b)}),e.qZA()),2&x&&e.Q6J("formHandler",u.formHandler)("record",u.record)("dataObjectEntityType","Event")("dataObjectMediumInitializerService",u.dataObjectMediumInitializer)("removeHeader","imxeventmanager.event.edit.panels.media.remove-confirm")},dependencies:[l.E],encapsulation:2,changeDetection:0})}return p})()},63336:(gt,X,a)=>{"use strict";a.d(X,{H:()=>e});const e={name:"imxeventmanager",projectProduct:!1}},86984:(gt,X,a)=>{"use strict";a.d(X,{Z:()=>b});var e=a(85829),n=a(72079),s=a(54699),l=a(23291),i=a(19352),t=a(15265),p=a(63336),c=a(3125),o=a(19212),x=a(17700),u=a(22941);const m="Event";let b=(()=>{class I extends e.AbstractAction{constructor(O,P,G,B,ae,J,q){super(O,P,G,B),this.dialog=O,this.dataAccess=P,this.entityStateDao=G,this.userMessageService=B,this.configurationProvider=ae,this.router=J,this.actionVoters=q,this.logger=(0,e.getLogger)("EventCloneAction",p.H.name),this.destroy$=new n.xQ}getOrder(){return this.ACTION_ORDER_CLONE}doExecute(O){return new s.y(P=>{const G=this.configurationProvider.getString(c.c.IMXEVENTMANAGER_PROPAGATION_EVENT_ENABLED,"false").pipe((0,i.R)(this.destroy$)),B=this.configurationProvider.getString(e.ImxPlatformConfigParameter.PLATFORM_MEDIA_COPYRIGHT_CONFIRMATION_ENABLED,"false").pipe((0,i.R)(this.destroy$));(0,l.aj)([G,B]).subscribe(([ae,J])=>{if("true"!==ae&&"true"!==J){const j=this.createActionCall(m,O,{inheritDefaultAppearance:!0,derivedFromEventId:!0});this.logger.info("Trigger clone for event: "+JSON.stringify(j)),this.dataAccess.callAction(j).subscribe(Y=>{this.showSuccessMessage(Y),P.next(!0),Y&&Y[0]&&this.executeAfterActionComplete(Y[0])})}else{if(("true"===J||"showDisabledButton"===J)&&"true"!==ae)return this.openCloneDialog({requireCopyright:!0,requirePropagation:!1,confirmCopyright:!1,inheritDefaultAppearance:!1,derivedFromEventId:!1},O,P);if(("true"===J||"showDisabledButton"===J)&&"true"===ae)return this.openCloneDialog({requireCopyright:!0,requirePropagation:!0,confirmCopyright:!1,inheritDefaultAppearance:!1,derivedFromEventId:!1},O,P);if("true"===ae)return this.openCloneDialog({requireCopyright:!1,requirePropagation:!0,confirmCopyright:!1,inheritDefaultAppearance:!1,derivedFromEventId:!1},O,P)}})})}getComponent(){return t.Z}adjustDialogData(O){}openCloneDialog(O,P,G){this.adjustDialogData(O),this.dialog.open(this.getComponent(),{maxWidth:450,data:O}).afterClosed().subscribe(ae=>{if(ae){const q=this.createActionCall(m,P,{inheritDefaultAppearance:ae.inheritDefaultAppearance,derivedFromEventId:ae.derivedFromEventId});this.logger.info("Trigger clone for event: "+JSON.stringify(q)),this.dataAccess.callAction(q).subscribe(j=>{this.showSuccessMessage(j),G.next(!0),j&&j[0]&&this.executeAfterActionComplete(j[0])})}})}executeAfterActionComplete(O){this.router.navigate(["events","edit",O])}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}executeBatch(O){throw new Error("EventCloneAction can not be called for multiple entities")}getSuccessKey(){return"imxeventmanager.event.list.action.clone.successful"}getActionLabelKey(){return"imxeventmanager2.gui.list.event.action.clone.header"}getBatchWarningKey(){return"imxeventmanager.event.list.action.clone.batch-warning"}getActionKey(){return"event-action-clone"}getIcon(){return"icon-copy"}static#e=this.\u0275fac=function(P){return new(P||I)(o.LFG(x.uw),o.LFG(e.ImxPlatformDataAccessService),o.LFG(e.EntityStateDao),o.LFG(e.UserMessageService),o.LFG(e.ConfigurationProvider),o.LFG(u.F0),o.LFG(e.IMXPLATFORM_ACTION_VOTER,8))};static#t=this.\u0275prov=o.Yz7({token:I,factory:I.\u0275fac})}return I})()},12731:(gt,X,a)=>{"use strict";a.d(X,{I:()=>i});var e=a(85829),n=a(94522),s=a(19212),l=a(71365);let i=(()=>{class t{constructor(c,o){this.eventmanagerDataAccessService=c,this.translateService=o}getEntityType(){return e.CoreEntityDef.EVENT_ENTITY.type}getAutocompleteHolders(c,o,x){return this.eventmanagerDataAccessService.getEventAutocomplete(c,o,x)}getAutocompleteHoldersFiltered(c,o,x){return this.eventmanagerDataAccessService.genericGetCoreEntityFiltered(e.CoreEntityDef.EVENT_ENTITY.apiPrefix,c,o,x)}static#e=this.\u0275fac=function(o){return new(o||t)(s.LFG(n.b),s.LFG(l.sK))};static#t=this.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},3125:(gt,X,a)=>{"use strict";a.d(X,{c:()=>n});var e=a(85829);class n extends e.ImxPlatformConfigParameter{static#e=this.IMXEVENTMANAGER_EVENTDATE_LIMIT=new n("eventdate_limit");static#t=this.IMXEVENTMANAGER_SHOW_ADDITIONALINFO=new n("edit_additional_info");static#n=this.IMXEVENTMANAGER_EVENTDATE_ALTERNATE=new n("alternate_eventdate_mgmt");static#i=this.IMXEVENTMANAGER_EVENTDATE_STARTTIME_MANDATORY=new n("eventdate_starttime_mandatory");static#o=this.IMXEVENTMANAGER_EVENTDATE_STARTTIME_MANDATORY_DIALOG=new n("eventdate_starttime_mandatory_dialog");static#r=this.IMXEVENTMANAGER_EVENTDATE_ENDTIME=new n("eventdate_endtime");static#a=this.IMXEVENTMANAGER_DELIVERY_METHOD=new n("delivery.method");static#s=this.IMXEVENTMANAGER_CONTACT_ADDRESSPOI_ENABLED=new n("contact_addresspoi_enabled");static#l=this.IMXEVENTMANAGER_EVENT_CONTACT_DATA_ENABLED=new n("event_contact_data_enabled");static#c=this.IMXEVENTMANAGER_EVENT_ADDITIONAL_BOOKINGLINKS_ENABLED=new n("additional_bookinglinks_enabled");static#d=this.IMXEVENTMANAGER_PROPAGATION_EVENT_ENABLED=new n("propagation.event.enabled");static#m=this.IMXEVENTMANAGER_HIDE_MANUAL_GEO_INFO=new n("hide_manual_geo_info");static#u=this.IMXEVENTMANAGER_LIST_DATES_INFO_ENABLED=new n("gui.list.event_dates_info_enabled");static#p=this.DELIVERYCHANNEL_METHOD="deliveryChannel";getPrefix(){return"imxeventmanager2"}}},94522:(gt,X,a)=>{"use strict";a.d(X,{H:()=>b,b:()=>I});var e=a(69862),n=a(19212),s=a(85829),l=a(21473),t=(a(79309),a(49193)),p=a(62413),c=a(96124),o=a(94973),x=a(82851),u=a(63336),m=a(71365);const b=new n.OlP("imxevtmgr.extended.filter.criteria");let I=(()=>{class H extends s.ImxBaseDataAccessService{constructor(P,G,B){super(P,G),this.dataAccess=P,this.translateService=G,this.extendedEventCriteriaDefs=B,this.logger=(0,l.jl)("ImxEventmanagerDataAccessService",u.H.name),this.logger.info("Creating ImxEventmanagerDataAccessService")}getEvents(P,G){const B=this.convertEventClientParamsToRequestParams(P,G);return B.sysLang=this.translateService.currentLang,this.logger.debug("Query options for getEvents: "+JSON.stringify(B)),this.dataAccess.get("event/compact",{params:B}).pipe((0,p.K)(ae=>(this.logger.debug("get event/compact failed",ae),(0,t.of)({compactEvents:[],totalElements:0,number:0,size:0}))),(0,c.U)(ae=>new l.BY(ae.compactEvents,ae.totalElements,ae.number,ae.size)),(0,o.C)(),(0,x.x)())}getEventIds(P,G){const B=this.convertEventClientParamsToRequestParams(P,G);return this.logger.debug("Query options for getEventIds: "+JSON.stringify(B)),this.dataAccess.get("event/ids",{params:B}).pipe((0,p.K)(ae=>(this.logger.debug("get event/ids failed",ae),(0,t.of)({content:[],totalElements:0,number:0,size:0}))),(0,c.U)(ae=>new l.BY(ae.content,ae.totalElements,ae.number,ae.size)),(0,o.C)(),(0,x.x)())}getEventById(P){return this.genericGetById(P,"event","Event")}getEventDatesAmount(P,G,B){const ae={startDate:G?G+"":null,endDate:B?B+"":null};return this.filterEmptyCriteria(ae),this.dataAccess.post("event/eventDatesAmount",P,{params:ae}).pipe((0,o.C)(),(0,x.x)())}getCompactEventById$(P){return this.genericGetById(P,"event/compact","CompactEvent")}updateEvent(P){return this.genericUpdate(P,"event","Event")}createEvent(P){return this.genericAdd(P,"event","Event")}getEventAutocomplete(P,G,B){return this.genericGetCoreEntityAutocomplete("event",P,G,B)}initEvent(){return this.dataAccess.get("event/new",{params:{lang:"de"}}).pipe((0,o.C)(),(0,x.x)())}suggestPermaLinkForEvent(P,G){return this.suggestPermaLink("event",P,G)}determineContributorType(){return this.dataAccess.get("event/newContributorType").pipe((0,o.C)(),(0,x.x)())}determineLocationType(){return this.dataAccess.get("event/newLocationType").pipe((0,o.C)(),(0,x.x)())}generateEventDates(P){return this.genericAdd(P,"event/generateDates","Event")}confirmOrRefuseAppearance$(P,G,B){return this.dataAccess.get("event/"+P.id+"/appearance/"+G.id+"/adjust",{params:{action:B}}).pipe((0,c.U)(ae=>ae.CompactEvent),(0,o.C)(),(0,x.x)())}convertEventClientParamsToRequestParams(P,G){const B=this.buildEventQueryCriteria(P);return Object.assign(B||{},this.buildRequestOptionParams(G,"eOrderFields"))}getWhlPortalWidgetTestLinkById(P){return this.dataAccess.get("whlportal/widget/testlink",{params:{whlPortalWidgetConfigId:P.toString()}}).pipe((0,o.C)(),(0,x.x)())}getWhlPortalWidgetTokenById(P){return this.dataAccess.get("whlportal/widget/token",{params:{whlPortalWidgetConfigId:P.toString()}}).pipe((0,o.C)(),(0,x.x)())}getWhlPortalConfigStylingById(P){return this.dataAccess.get("whlportal/css",{params:{whlPortalConfigId:P.toString()}}).pipe((0,o.C)(),(0,x.x)())}updateWhlPortalConfigStyling(P,G){const B=new e.WM({"Content-Type":"application/json"});return this.dataAccess.put("whlportal/css",JSON.stringify(G),{params:{whlPortalConfigId:P.toString()},headers:B}).pipe((0,o.C)(),(0,x.x)())}getDefaultWhlPortalConfigStyling(){return this.dataAccess.get("whlportal/css/default").pipe((0,o.C)(),(0,x.x)())}getUnwrappedCriteria(){return this.dataAccess.get("criterion?page=1&size=10000000").pipe((0,c.U)(P=>P.criteria),(0,o.C)(),(0,x.x)())}getEventmanagerClientConfigIdsByCriterion(P){return this.dataAccess.get("eventmanagerClientConfig/ids",{params:{criterionId:P.toString()}}).pipe((0,c.U)(G=>G.eventmanagerClientConfigIds),(0,o.C)(),(0,x.x)())}getDeliveryChannelConfig(P){return this.dataAccess.get(`deliverychannelconfig/${P}`).pipe((0,p.K)(G=>(0,t.of)({DeliveryChannelConfig:void 0})),(0,c.U)(G=>G.DeliveryChannelConfig),(0,o.C)(),(0,x.x)())}updateDeliveryChannelConfig(P,G){return this.genericUpdate(P,"deliverychannelconfig","DeliveryChannelConfig",null,{params:{applyChangesToRemovedSubscriptClients:!!G&&G+""}})}addDeliveryChannelConfig(P){return this.genericAdd(P,"deliverychannelconfig","DeliveryChannelConfig")}activateDeliveryChannelConfig(P){return this.genericUpdate(P,"deliverychannelconfig/activate","DeliveryChannelConfig",null)}buildEventQueryCriteria(P){let G={};return P&&(G={eventIds:P.id,eImportKeys:s.ImxBaseDataAccessService.spreadIds(P.importId),ePermaLink:P.permalink,ePermaLinkLang:s.ImxBaseDataAccessService.retrieveLanguage(P,"de"),eLanguage:s.ImxBaseDataAccessService.retrieveLanguage(P),eFulltext:s.ImxBaseDataAccessService.retrieveFulltextFilter(P),eFulltextSearchFields:s.ImxBaseDataAccessService.retrieveFulltextRestrictions(P),eFulltextSearchOption:P.fulltextSearchOption?P.fulltextSearchOption:null,eDeliveryChannelId:P.deliveryChannel?P.deliveryChannel:null,eStateIds:void 0!==P.entityState?P.entityState.split(","):null,eAppearanceFrom:P.appearanceFrom,eAppearanceTo:P.appearanceTo,eCityZipcodes:s.ImxBaseDataAccessService.retrieveZipcodes(P),eGeoSearchLocationId:P.geoLocationId,eGeoSearchDistance:s.ImxBaseDataAccessService.retrieveGeoSearchDistance(P),eGeoSearchZipcode:s.ImxBaseDataAccessService.retrieveGeoSearchZipcode(P),eGeoSearchLong:P.longitude,eGeoSearchLat:P.latitude,eNoGeoCoords:P.noGeoCoords?"true"===P.noGeoCoords:void 0,eClientIds:P.clientIds,eIncludeSubClients:P.includeSubClients?"true"===P.includeSubClients:void 0,eImportSource:P.importSource,eImportPurpose:P.importPurpose,eImportRunId:P.importRunId,eLocationId:P.locationId,eContributorId:P.contributorId,eAddressPoiGroupId:P.addressPoiGroupId,eConfirmedAppearances:P.confirmedAppearances,ePendingAppearances:P.pendingAppearances,eRefusedAppearances:P.refusedAppearances,eAddrRegionIds:s.ImxBaseDataAccessService.spreadIds(P.regionIds),eOwningUser:P.owningUserId,eStartDate:P.startDate,eEndDate:P.endDate,eCategoryIds:s.ImxBaseDataAccessService.spreadIds(P.categories),eCriteriaIds:s.ImxBaseDataAccessService.spreadIds(P.criteria),eTargetGroupIds:s.ImxBaseDataAccessService.spreadIds(P.targetGroups),eRelevanceIds:s.ImxBaseDataAccessService.spreadIds(P.relevances),eSeriesIds:s.ImxBaseDataAccessService.spreadIds(P.eventSeries),eImagesAvailable:P.imagesAvailable,eFreeOfCharge:P.freeOfCharge,eLongDescAvailable:P.longDescAvailable,eCriteriaAssigned:P.criteriaAssigned,eSeriesAssigned:P.seriesAssigned,eOnlyDuplicates:P.onlyDuplicates,eBookableByDate:P.bookableByDate,eBookableGlobal:P.bookableGlobal,eCancelledByDates:P.cancelledByDates,eCancelledGlobal:P.cancelledGlobal,eCreationUserId:P.creationUser,eLastChangeUserId:P.lastChangeUser,eCreationRoleId:P.creationRole,eLastChangeRoleId:P.lastChangeRole,eContentScore:this.combineComparatorParam(P.contentScore,P.contentScoreMax),eContentScoreComparator:this.convertComparator(P.contentScoreComparator),eReliabilityClassifications:s.ImxBaseDataAccessService.spreadIds(P.reliabilityClassification),eIntegrityClassifications:s.ImxBaseDataAccessService.spreadIds(P.integrityClassification),context:P.context,eNoRegion:P.noRegion,eNoLocation:P.noLocation,eModifiedFrom:P.modifiedFrom,eModifiedTo:P.modifiedTo,eWithMemo:P.withMemo,eMemoUserId:P.memoUserId,eMemoFromDate:P.memoFromDate,eMemoToDate:P.memoToDate,eWithMemoAttributeId:P.withMemoAttributeId,eWithoutMemoAttributeId:P.withoutMemoAttributeId,eImageMediaLicenseIds:P.imageMediaLicense,eMediaCopyrightAvailable:P.mediaCopyrightAvailable,eExcludeCreationUserId:P.excludeCreationUser,eDeliveryChannelNotIds:P.deliveryChannelNot?P.deliveryChannelNot:null,eMediaLicenseIds:P.mediaLicense}),this.extendedEventCriteriaDefs&&P&&(G=Object.assign(G,this.buildExtendedQueryCriteria(P,this.extendedEventCriteriaDefs))),this.filterEmptyCriteria(G),G}convertEventDuplicatesClientParamsToRequestParams(P,G){const B=this.convertEventClientParamsToRequestParams(P,G),ae=Object.assign(B||{},{duplicateCertaintyFrom:P.certaintyFrom,duplicateCertaintyTo:P.certaintyTo});return this.filterEmptyCriteria(ae),ae}getEventDuplicates(P,G){const B=this.convertEventClientParamsToRequestParams(P,G);return B.sysLang=this.translateService.currentLang,this.logger.debug("Query options for getEventDuplicates: "+JSON.stringify(B)),this.dataAccess.get("event/duplicates",{params:B}).pipe((0,p.K)(ae=>(this.logger.debug("get event/duplicates failed",ae),(0,t.of)({totalElements:0,number:0,size:0}))),(0,c.U)(ae=>{const J=ae.eventDuplicateGroups;return J.forEach(q=>q.candidates=q.events),new l.BY(J,ae.totalElements,ae.number,ae.size)}),(0,o.C)(),(0,x.x)())}createEventDuplicateGroups(P){this.logger.debug("Create new event duplicate groups");const B=new e.WM({"Content-Type":"application/json"});return this.dataAccess.post("event/duplicates/create",JSON.stringify(P),{headers:B}).pipe((0,p.K)(ae=>(this.logger.debug("post event/duplicates/create failed",ae),(0,t.of)(!1))),(0,o.C)(),(0,x.x)())}getEventDuplicateGroupIds(P){const ae=this.convertEventClientParamsToRequestParams(P,{paging:"ONE_PAGE"});return ae.sysLang=this.translateService.currentLang,this.logger.debug("Query options for event/duplicates/ids: "+JSON.stringify(ae)),this.dataAccess.get("event/duplicates/ids",{params:ae}).pipe((0,p.K)(J=>(this.logger.debug("get event/duplicates/ids failed",J),(0,t.of)({content:[]}))),(0,c.U)(J=>new l.BY(J.content,J.totalElements,J.number,J.size)),(0,o.C)(),(0,x.x)())}getEventDuplicateGroup(P){const G="event/duplicates/"+P;return this.logger.debug("Query options for event/duplicates/ "),this.dataAccess.get(G,{params:{}}).pipe((0,p.K)(B=>(this.logger.debug(G+" failed",B),(0,t.of)({content:[]}))),(0,c.U)(B=>B.EventDuplCandidatesGroup),(0,o.C)(),(0,x.x)())}getEventAppearancePresentationsSelection(P){const G="event/duplicates/eventAppearancePresentationsSelection";return this.logger.debug("Query options for event/duplicates/ "),this.dataAccess.get(G,{params:{selectedEventIds:P}}).pipe((0,p.K)(B=>(this.logger.debug(G+" failed",B),(0,t.of)({content:[]}))),(0,c.U)(B=>B.eventAppearancePresentations),(0,o.C)(),(0,x.x)())}getPdfSubscriptUser(P){const G=Object.assign(this.buildRequestOptionParams(P,"orderFields"));return this.dataAccess.get("pdfSubscriptUser",{params:G}).pipe((0,p.K)(B=>(this.logger.debug("get pdfSubscriptUser",B),(0,t.of)({pdfSubscriptUsers:[],totalElements:0,number:0,size:0}))),(0,c.U)(B=>new l.BY(B.pdfSubscriptUsers,B.totalElements,B.number,B.size)),(0,o.C)(),(0,x.x)())}updatePdfSubscriptUser(P){return this.genericUpdate(P,"pdfSubscriptUser","PdfSubscriptUser")}static#e=this.\u0275fac=function(G){return new(G||H)(n.LFG(l.fx),n.LFG(m.sK),n.LFG(b,8))};static#t=this.\u0275prov=n.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"})}return H})()},45346:(gt,X,a)=>{"use strict";a.d(X,{T:()=>l});var e=a(21473),n=a(96124),s=a(19212);let l=(()=>{class i{constructor(p){this.entitiesMgrService=p}getAllRelevances(){return this.entitiesMgrService.getAllEntitiesOfType("Relevance").pipe((0,n.U)(p=>p.items))}getAllEventDateTypeTypes(){return this.entitiesMgrService.getAllEntitiesOfType("EventDateTypeType").pipe((0,n.U)(p=>p.items))}getAllEventDateTypeDays(){return this.entitiesMgrService.getAllEntitiesOfType("EventDateTypeDay").pipe((0,n.U)(p=>p.items))}static#e=this.\u0275fac=function(c){return new(c||i)(s.LFG(e.qB))};static#t=this.\u0275prov=s.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})()},82730:(gt,X,a)=>{"use strict";a.d(X,{U:()=>x,s:()=>u});var e=a(19212),n=a(85829),s=a(21473),l=a(49193),i=a(77504),t=a(96743),p=a(96124),c=a(94522),o=a(71365);const x=new e.OlP("imxplatform.deliverychannel.datasource");let u=(()=>{class m extends n.ClientSideFilteringBaseEntityDataSourceService{constructor(I,H,O){super(I,H),this.eventmanagerDataAccessService=O,this.wantsPaginationAtAll=!1,this.clientNames=new Map,this.entitiesMgr.getAllEntitiesOfType("Client").subscribe(P=>{P.items.forEach(G=>{this.clientNames.set(G.id,G.name)})})}fetchResultsByFilter(I,H){return super.fetchResultsByFilter(I,H).pipe((0,t.zg)(P=>{if(0===P.items.length)return(0,l.of)(new s.BY(P.items,0,P.page,P.pageSize));const G=P.items.map(B=>this.enrichDeliveryChannelWithSubsriptionClients(B));return(0,i.D)(G).pipe((0,p.U)(B=>new s.BY(B,P.totalNumberOfResults,P.page,P.pageSize)))}))}enrichDeliveryChannelWithSubsriptionClients(I){const{...H}=I;return this.eventmanagerDataAccessService.getDeliveryChannelConfig(I.id).pipe((0,p.U)(O=>({...H,clientSubscriptionIds:O?O.clientSubscriptions.map(P=>P.subscriptClient.id):void 0,clientSubscriptionNames:O?O.clientSubscriptions.map(P=>this.clientNames.get(P.subscriptClient.id)).join(", "):void 0})))}static#e=this.\u0275fac=function(H){return new(H||m)(e.LFG(s.qB),e.LFG(o.sK),e.LFG(c.b))};static#t=this.\u0275prov=e.Yz7({token:m,factory:m.\u0275fac})}return m})()},1494:(gt,X,a)=>{"use strict";a.d(X,{_:()=>t,h:()=>i});var e=a(19212),n=a(85829),s=a(94522),l=a(71365);const i=new e.OlP("imxplatform.pdfSubscriptUser.datasource");let t=(()=>{class p extends n.ClientSideFilteringDataSourceService{constructor(o,x){super(o),this.translateService=o,this.eventmanagerDataAccessService=x,this.wantsPaginationAtAll=!1}fetchResults(){return this.eventmanagerDataAccessService.getPdfSubscriptUser({paging:"ONE_PAGE"})}static#e=this.\u0275fac=function(x){return new(x||p)(e.LFG(l.sK),e.LFG(s.b))};static#t=this.\u0275prov=e.Yz7({token:p,factory:p.\u0275fac})}return p})()},69332:(gt,X,a)=>{"use strict";a.d(X,{S:()=>l,y:()=>i});var e=a(19212),n=a(85829),s=a(94522);const l=new e.OlP("imxeventmanager.duplicates-event.datasource");let i=(()=>{class t extends n.ServerSideFilteringDataSourceService{constructor(c){super(),this.dataAccessService=c}fetchResults(c,o,x,u,m,b){const I=this.extractSortFields(u,m);return this.dataAccessService.getEventDuplicates(c,{paging:{pageIdx:o,pageSize:x},sortFields:[I]})}static#e=this.\u0275fac=function(o){return new(o||t)(e.LFG(s.b))};static#t=this.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac})}return t})()},90297:(gt,X,a)=>{"use strict";a.d(X,{$:()=>t});var e=a(85829),n=a(21473),s=a(19212);const i=new e.FormConfiguration([new e.AnyField("id",""),new e.AnyField("subscriptClient",""),new e.RadioButtonGroup("relevance1","entity.EventClientSubscription.relevance1",{optionProvider:[{value:!0,label:"imxplatform.common.yes"},{value:!1,label:"imxplatform.common.no"},{value:null,label:"imxplatform.common.inherited"}],groupRenderMode:"inline"}),new e.RadioButtonGroup("relevance2","entity.EventClientSubscription.relevance2",{optionProvider:[{value:!0,label:"imxplatform.common.yes"},{value:!1,label:"imxplatform.common.no"},{value:null,label:"imxplatform.common.inherited"}],groupRenderMode:"inline"}),new e.RadioButtonGroup("relevance3","entity.EventClientSubscription.relevance3",{optionProvider:[{value:!0,label:"imxplatform.common.yes"},{value:!1,label:"imxplatform.common.no"},{value:null,label:"imxplatform.common.inherited"}],groupRenderMode:"inline"}),new e.RadioButtonGroup("shouldConfirm","entity.EventClientSubscription.shouldConfirm",{optionProvider:[{value:!0,label:"imxplatform.common.yes"},{value:!1,label:"imxplatform.common.no"},{value:null,label:"imxplatform.common.inherited"}],groupRenderMode:"inline"})]);let t=(()=>{class p extends e.AbstractFormHandler{constructor(o,x,u,m){super(i,void 0,o,u,m)}getEntityType(){return"EventClientSubscription"}static#e=this.\u0275fac=function(x){return new(x||p)(s.LFG(e.NgControlBuilderService),s.LFG(n.Xh),s.LFG(n.Ze),s.LFG(e.FormatterService))};static#t=this.\u0275prov=s.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},71271:(gt,X,a)=>{"use strict";a.d(X,{T:()=>o});var e=a(85829),n=a(21473),s=a(23291),l=a(75222),i=a(96124),t=a(94522),p=a(48080),c=a(19212);let o=(()=>{class x extends e.AbstractEntityPermissionService{constructor(m,b,I,H,O,P){super(m,b,I,H),this.imxSecurityManagerService=m,this.runtimeContext=b,this.configurationProvider=I,this.platformDataAccessService=H,this.entitiesMgrService=O,this.dataAccessService=P}getEntityType(){return"Event"}calcReadPermissionById(m){return this.dataAccessService.getEventById(m).pipe((0,l.w)(b=>this.calcReadPermission(b)))}calcReadPermission(m){const b=this.runtimeContext.getCurrentAndSubClients().pipe((0,i.U)(H=>Array.from(H).map(O=>O.id))),I=this.getCurrentDeliveryChannels();return(0,s.aj)([b,I]).pipe((0,i.U)(([H,O])=>!!(this.imxSecurityManagerService.hasPermission(p.M.F_EVENT_READ_ALL)||this.imxSecurityManagerService.hasPermission(p.M.F_EVENT_READ_OWN_CLIENT)&&m.client&&H.some(P=>P===m.client.id))||(this.imxSecurityManagerService.hasPermission(p.M.F_EVENT_READ_SUBSCRIPT_DELIVERYCHANNEL)||this.imxSecurityManagerService.hasPermission(p.M.F_EVENT_READ_SUBSCRIPT_CLIENT)?!(!m.client||!H.some(P=>P===m.client.id))||this.hasConfirmedDeliveryChannel(m,O):!(!this.imxSecurityManagerService.hasDirectPermission(p.M.F_EVENT_READ_OWN_USER)||!m.eventUser||m.eventUser.id!==this.runtimeContext.getLoginUser().id))))}calcSavePermissionById(m){return this.dataAccessService.getEventById(m).pipe((0,l.w)(b=>this.calcSavePermission(b)))}calcSavePermission(m){const b=this.runtimeContext.getCurrentAndSubClients().pipe((0,i.U)(O=>Array.from(O).map(P=>P.id))),I=this.getCurrentDeliveryChannels(),H=(0,s.aj)([b,I]).pipe((0,i.U)(([O,P])=>{let G=!1;return this.isDeactivatedRecord(m)||(this.imxSecurityManagerService.hasPermission(p.M.F_EVENT_UPDATE_ALL)||this.imxSecurityManagerService.hasPermission(p.M.F_EVENT_CREATE)&&!m.id||this.imxSecurityManagerService.hasPermission(p.M.F_EVENT_UPDATE_OWN_CLIENT)&&m.client&&O.some(B=>B===m.client.id)?G=!0:this.imxSecurityManagerService.hasPermission(p.M.F_EVENT_UPDATE_SUBSCRIPT_DELIVERYCHANNEL)?G=!(!m.client||!O.some(B=>B===m.client.id))||this.hasConfirmedDeliveryChannel(m,P):this.imxSecurityManagerService.hasDirectPermission(p.M.F_EVENT_UPDATE_OWN_USER)&&m.eventUser&&m.eventUser.id===this.runtimeContext.getLoginUser().id&&(G=!0)),G}));if(m.importInfos&&m.importInfos.length>0){const O=this.isImmutable(m.importInfos);return(0,s.aj)([O,H]).pipe((0,i.U)(([P,G])=>!0===G&&!1===P))}return H}hasConfirmedDeliveryChannel(m,b){if(b&&b.size>0){const H=Array.from(b);return m.appearances.some(O=>H.some(P=>!!O.deliveryChannel&&P.id===O.deliveryChannel.id))}return!1}getCurrentDeliveryChannels(){const m=this.runtimeContext.getCurrentAndSubClients().pipe((0,i.U)(I=>Array.from(I).map(H=>H.id))),b=this.entitiesMgrService.getAllEntitiesOfType("DeliveryChannel").pipe((0,i.U)(I=>I.items));return(0,s.aj)([b,m]).pipe((0,i.U)(([I,H])=>{const O=new Set;return I.forEach(P=>{(H.some(G=>!!P.ownerClient&&G===P.ownerClient.id)||H.some(G=>P.grantedClients.some(B=>B.id===G)))&&O.add(P)}),O}))}static#e=this.\u0275fac=function(b){return new(b||x)(c.LFG(n.Xh),c.LFG(n.Ze),c.LFG(e.ConfigurationProvider),c.LFG(e.ImxPlatformDataAccessService),c.LFG(n.qB),c.LFG(t.b))};static#t=this.\u0275prov=c.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"})}return x})()},43479:(gt,X,a)=>{"use strict";a.d(X,{FP:()=>c,Gx:()=>o,HB:()=>x,oz:()=>H});var e=a(19212),n=a(85829),s=a(21473),l=a(3125),i=a(80648),t=a(50785),p=a(62279);const c=new e.OlP("imxeventmanager.event.filterforms.event"),o=new e.OlP("imxeventmanager.event.filterformextensions.event"),x=new n.FormConfiguration([...(0,n.mainFilterFields)("Event"),new n.AutocompleteField("contributorId","imxeventmanager.event.filter.mainFilter.contributorId",{autocompleteService:n.AddressPoiContributorAutocompleteService,insertor:(0,n.pathInsertor)("contributorId"),extractor:(0,n.pathExtractor)("contributorId"),useAnyNameHolder:!1,renderLabel:!0,required:!1}),new n.AutocompleteField("locationId","imxeventmanager.event.filter.mainFilter.locationId",{autocompleteService:n.AddressPoiLocationAutocompleteService,insertor:(0,n.pathInsertor)("locationId"),extractor:(0,n.pathExtractor)("locationId"),useAnyNameHolder:!1,renderLabel:!0,required:!1}),new n.AutocompleteField("addressPoiGroupId","imxeventmanager.event.filter.mainFilter.addressPoiGroupId",{autocompleteService:n.BaseEntityAutocompleteService,autocompleteFilter:{entityType:"AddressPoiGroup"},useAnyNameHolder:!1}),...function u(O){return[new n.AnyField("fulltext","filter."+O+".fulltext",{required:!1}),new n.AnyField("fulltextSearchOption","filter."+O+".fulltextSearchOption",{required:!1,initialValue:n.FulltextSearchOption.ANDSEARCH}),new n.AnyField("restrictTitle","filter."+O+".restrictTitle",{required:!1,initialValue:!0,extractor:(0,n.booleanExtractor)("restrictTitle")}),new n.AnyField("restrictSubTitle","filter."+O+".restrictSubTitle",{required:!1,initialValue:!1,extractor:(0,n.booleanExtractor)("restrictSubTitle")}),new n.AnyField("restrictShortDesc","filter."+O+".restrictShortDesc",{required:!1,extractor:(0,n.booleanExtractor)("restrictShortDesc")}),new n.AnyField("restrictLongDesc","filter."+O+".restrictLongDesc",{required:!1,extractor:(0,n.booleanExtractor)("restrictLongDesc")}),new n.AnyField("restrictCity","filter."+O+".restrictCity",{required:!1,extractor:(0,n.booleanExtractor)("restrictCity")}),new n.AnyField("restrictStreet","filter."+O+".restrictStreet",{required:!1,extractor:(0,n.booleanExtractor)("restrictStreet")}),new n.AnyField("exactOption","filter."+O+".exactOption",{required:!1}),new n.AnyField("andOption","filter."+O+".andOption",{required:!1}),new n.AnyField("orOption","filter."+O+".orOption",{required:!1}),new n.AnyField("restrict","filter."+O+".restrict",{required:!1})]}("Event"),...(0,n.appearanceFilterFields)("Event"),new n.Select("deliveryChannelNot","filter.Event.deliveryChannelNot",{optionProvider:n.OwnDeliveryChannelOptionProviderService,placeholder:"imxplatform.common.no-value",extractor:(0,n.numberExtractor)("deliveryChannelNot"),initialValue:-1}),...function m(){return[new n.AnyField("startDate","",{required:!1,fieldValueType:"date"}),new n.AnyField("endDate","",{required:!1,fieldValueType:"date"}),new n.Checkbox("onlyPastEvents","onlyPastEvents",{required:!1})]}(),...(0,n.geoFilterFields)("Event"),...(0,n.adminFilterFields)("Event"),...(0,n.clientFilterFields)("Event"),new n.AutocompleteField("excludeCreationUser","filter.Event.excludeCreationUser",{autocompleteService:n.UserAutocompleteService,autocompleteFilter:{clientIds:n.CURRENT_AND_SUBCLIENTS},useAnyNameHolder:!1,extractor:(0,n.numberExtractor)("excludeCreationUser"),insertor:(0,n.pathInsertor)("excludeCreationUser"),required:!1}),...(0,n.memoFilterFields)(),...function b(){return[new n.AnyField("categories","",{extractor:(0,n.commaseparatedNumbersExtractor)("categories"),insertor:(0,n.commaseparatedInsertor)("categories"),required:!1}),new n.AnyField("criteria","",{extractor:(0,n.commaseparatedNumbersExtractor)("criteria"),insertor:(0,n.commaseparatedInsertor)("criteria"),required:!1})]}(),...function I(){return[new n.CheckboxSelect("targetGroups","filter.Event.targetGroups",{optionProvider:p.w,extractor:(0,n.commaseparatedNumbersExtractor)("targetGroups"),insertor:(0,n.commaseparatedInsertor)("targetGroups"),renderLabel:!1,rowLayout:!1}),new n.CheckboxSelect("relevances","filter.Event.relevances",{optionProvider:t.j,extractor:(0,n.commaseparatedNumbersExtractor)("relevances"),insertor:(0,n.commaseparatedInsertor)("relevances"),renderLabel:!1,rowLayout:!1}),new n.Checkbox("periodical","filter.Event.periodical",{required:!1}),new n.Checkbox("periodicTypesAssigned","filter.Event.periodicTypesAssigned",{required:!1}),new n.TripleRadioButton("freeOfCharge","filter.Event.freeOfCharge",{required:!1}),new n.TripleRadioButton("seriesAssigned","filter.Event.seriesAssigned",{required:!1}),new n.Checkbox("onlyDuplicates","filter.Event.onlyDuplicates",{required:!1}),new n.TripleRadioButton("bookableByDate","filter.Event.bookableByDate",{required:!1}),new n.TripleRadioButton("bookableGlobal","filter.Event.bookableGlobal",{required:!1}),new n.TripleRadioButton("cancelledByDates","filter.Event.cancelledByDates",{required:!1}),new n.TripleRadioButton("cancelledGlobal","filter.Event.cancelledGlobal",{required:!1})]}(),...(0,n.qualityFilterFields)("Event"),new n.TripleRadioButton("longDescAvailable","filter.Event.longDescAvailable",{required:!1}),new n.TripleRadioButton("criteriaAssigned","filter.Event.criteriaAssigned",{required:!1}),new n.AnyField("integrityClassification","filter.Event.integrityClassification",{extractor:(0,n.commaseparatedNumbersExtractor)("integrityClassification"),insertor:(0,n.commaseparatedInsertor)("integrityClassification")}),new n.AnyField("reliabilityClassification","filter.Event.reliabilityClassification",{extractor:(0,n.commaseparatedNumbersExtractor)("reliabilityClassification"),insertor:(0,n.commaseparatedInsertor)("reliabilityClassification")}),new n.Select("eventSeries","filter.Event.eventSeries",{optionProvider:i.i,placeholder:"imxplatform.common.select-placeholder-any",initialValue:-1,required:!1})]);let H=(()=>{class O extends n.AbstractCoreDataObjectFilterFormHandler{constructor(G,B,ae,J,q,j,Y){super(G,B,ae,J,j,q),this.runtimeContextService=J,this.imxSecurityManagerService=q,this.formatterService=j,this.configurationProvider=Y}getEntityType(){return"Event"}hasDeliveryChannelLogic(){return"deliveryChannel"===this.configurationProvider.getStringFromSnapshot(l.c.IMXEVENTMANAGER_DELIVERY_METHOD)}getSearchCriteriaType(){return"EventSearchCriteria"}static#e=this.\u0275fac=function(B){return new(B||O)(e.LFG(c),e.LFG(o,8),e.LFG(n.NgControlBuilderService),e.LFG(s.Ze),e.LFG(s.Xh),e.LFG(n.FormatterService),e.LFG(s.Pc))};static#t=this.\u0275prov=e.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"})}return O})()},58391:(gt,X,a)=>{"use strict";a.d(X,{ul:()=>ge,aX:()=>ee,oI:()=>Y,jq:()=>K});var e=a(19212),n=a(56223),s=a(85829),l=a(21473),i=a(3125),t=a(48080),p=a(96124),c=a(45346);let o=(()=>{class Ke extends s.OptionProvider{constructor(Le){super(),this.collectionsService=Le}getOptions(Le,R){return this.collectionsService.getAllEventDateTypeDays().pipe((0,p.U)(Te=>Te.map(Se=>({label:Se.i18nName,value:Se.id})).sort((Se,Ue)=>Se.value-Ue.value)))}static#e=this.\u0275fac=function(R){return new(R||Ke)(e.LFG(c.T))};static#t=this.\u0275prov=e.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"})}return Ke})();var x=a(13561);let u=(()=>{class Ke extends s.OptionProvider{constructor(Le){super(),this.entitiesMgrService=Le}getOptions(Le,R){return this.entitiesMgrService.getAllEntitiesOfType("IntegrityEntityClassification").pipe((0,p.U)(Te=>Te.items.filter(me=>"Event"===me.usageForEntityType).map(me=>({label:me.name,value:me.id})).sort((me,Se)=>me.value-Se.value)))}static#e=this.\u0275fac=function(R){return new(R||Ke)(e.LFG(l.qB))};static#t=this.\u0275prov=e.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"})}return Ke})();var m=a(50785);let b=(()=>{class Ke extends s.OptionProvider{constructor(Le){super(),this.entitiesMgrService=Le}getOptions(Le,R){return this.entitiesMgrService.getAllEntitiesOfType("ReliabilityEntityClassification").pipe((0,p.U)(Te=>Te.items.filter(me=>"Event"===me.usageForEntityType).map(me=>({label:me.name,value:me.id})).sort((me,Se)=>me.value-Se.value)))}static#e=this.\u0275fac=function(R){return new(R||Ke)(e.LFG(l.qB))};static#t=this.\u0275prov=e.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"})}return Ke})();var I=a(62279),H=a(49193);let O=(()=>{class Ke extends s.OptionProvider{constructor(){super(),this.weekdays=[{value:P.Monday,label:"Montag"},{value:P.Tuesday,label:"Dienstag"},{value:P.Wednesday,label:"Mittwoch"},{value:P.Thursday,label:"Donnerstag"},{value:P.Friday,label:"Freitag"},{value:P.Saturday,label:"Samstag"},{value:P.Sunday,label:"Sonntag"}]}getOptions(Le,R){return(0,H.of)(this.weekdays)}static#e=this.\u0275fac=function(R){return new(R||Ke)};static#t=this.\u0275prov=e.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"})}return Ke})();var P=function(Ke){return Ke[Ke.Monday=1]="Monday",Ke[Ke.Tuesday=2]="Tuesday",Ke[Ke.Wednesday=3]="Wednesday",Ke[Ke.Thursday=4]="Thursday",Ke[Ke.Friday=5]="Friday",Ke[Ke.Saturday=6]="Saturday",Ke[Ke.Sunday=7]="Sunday",Ke}(P||{});let G=(()=>{class Ke extends s.OptionProvider{constructor(){super(),this.weeklyGaps=[{value:B.First,label:"ersten"},{value:B.Second,label:"zweiten"},{value:B.Third,label:"dritten"},{value:B.Fourth,label:"vierten"},{value:B.Last,label:"letzten"}]}getOptions(Le,R){return(0,H.of)(this.weeklyGaps)}static#e=this.\u0275fac=function(R){return new(R||Ke)};static#t=this.\u0275prov=e.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"})}return Ke})();var B=function(Ke){return Ke[Ke.First=1]="First",Ke[Ke.Second=2]="Second",Ke[Ke.Third=3]="Third",Ke[Ke.Fourth=4]="Fourth",Ke[Ke.Last=5]="Last",Ke}(B||{}),ae=a(71271);function J(){return(0,s.replaceEntityTypeInLabel)("Event")}function q(){return[new s.DateField("date","entity.EventDateType.date",{required:!0}),new s.SmartTimeField("startTime","entity.EventDateType.startTime.pattern"),new s.SmartTimeField("endTime","entity.EventDateType.endTime.pattern",{insertor:(0,s.noneInsertor)()}),new s.Input("duration","duration","entity.EventDateType.duration"),new s.Checkbox("soldout","entity.EventDate.soldout"),new s.Checkbox("cancelled","entity.EventDate.cancelled"),new s.Checkbox("online","entity.EventDate.online"),new s.Input("text","bookingLink","entity.EventDate.bookingLink"),new s.I18nMultiInput("notes","entity.EventDate.notes")]}const Y=new e.OlP("imxeventmanager.forms.event"),K=new e.OlP("imxeventmanager.formextensions.event"),ne=new e.OlP("imxeventmanager.validator.event"),ee=new s.FormConfiguration([s.IMX_PLATFORM_FIELDS.createField("title",J()),s.IMX_PLATFORM_FIELDS.createField("subTitle",J()),s.IMX_PLATFORM_FIELDS.createField("shortDescription",J()),s.IMX_PLATFORM_FIELDS.createField("longDescription",J()),s.IMX_PLATFORM_FIELDS.createField("permaLink",J()),s.IMX_PLATFORM_FIELDS.createField("htmlHeadTitle",J()),s.IMX_PLATFORM_FIELDS.createField("searchKeywords",J()),s.IMX_PLATFORM_FIELDS.createField("htmlHeadMetaDescription",J()),s.IMX_PLATFORM_FIELDS.createField("canonicalUrl",J()),s.IMX_PLATFORM_FIELDS.createField("contentScore"),s.IMX_PLATFORM_FIELDS.createField("attributeDefinitions"),s.IMX_PLATFORM_FIELDS.createField("tags",J()),s.IMX_PLATFORM_FIELDS.createField(s.LANGUAGE_FIELD),s.IMX_PLATFORM_FIELDS.createField("bookingLink",J()),s.IMX_PLATFORM_FIELDS.createField("bookingLinkText",J()),new s.ArrayField("additionalBookingLinks",!1,[new s.I18nMultiInput("bookingLink","entity.Event.bookingLink",{extendedI18nValidators:s.i18nSomeValidator,extendedValidators:s.httpUrlValidator,renderLabel:!1}),new s.I18nMultiInput("bookingLinkText","entity.Event.bookingLinkText",{renderLabel:!1})]),new s.ArrayField("inputFields",!1,[new s.Select("inputFieldType","entity.EventInputField.type",{required:!0,optionProvider:s.InputFieldTypeOptionProviderService,extractor:(0,s.pathExtractor)("inputFieldType.id"),insertor:(0,s.pathInsertor)("inputFieldType.id",!0),renderValueAsLabel:!0}),new s.I18nMultiInput("inputFieldValue","entity.EventInputField.value",{extractor:(0,s.pathExtractor)("value"),insertor:(0,s.pathInsertor)("value")}),new s.Input("number","sortingValue","entity.EventInputField.sortingValue",{required:!0,initialValue:-1})],{renderLabel:!1}),new s.Select("addInputField","",{optionProvider:s.InputFieldTypeOptionProviderService,placeholder:"imxplatform.common.select-placeholder-add",initialValue:-1,renderLabel:!1,insertor:(0,s.noneInsertor)(),permissionId:"inputFields"}),s.IMX_PLATFORM_FIELDS.createField("client",J()),new s.AnyField("eventUser","entity.Event.eventUser",{extractor:(0,s.pathExtractor)("eventUser.id"),insertor:(0,s.pathInsertor)("eventUser.id")}),new s.I18nMultiTextarea("additionalInfo","entity.Event.additionalInfo"),new s.RadioButtonGroup("relevance","entity.Event.relevance",{optionProvider:m.j,required:!0,extractor:(0,s.pathExtractor)("relevance.id"),insertor:(0,s.pathInsertor)("relevance.id"),readonly:!1,renderLabel:!0,groupRenderMode:"inline"}),new s.Checkbox("noInternetPublication","entity.Event.noInternetPublication"),new s.Checkbox("periodicalEvent","entity.Event.periodicalEvent"),new s.Input("text","information","entity.Event.information"),new s.Input("text","appBookingLink","entity.Event.appBookingLink",{extendedValidators:s.httpUrlValidator}),new s.I18nMultiInput("link","entity.Event.link",{extendedValidators:s.httpUrlValidator}),new s.I18nMultiInput("linkText","entity.Event.linkText"),s.IMX_PLATFORM_FIELDS.createField("media",(0,s.replaceEntityTypeInLabel)("EventImage")),new s.ArrayField("priceCategories",!1,[new s.AnyField("priceCategoryType","entity.PriceCategory.priceCategoryType",{extractor:(0,s.pathExtractor)("priceCategoryType"),insertor:(0,s.pathInsertor)("priceCategoryType")}),new s.I18nMultiInput("i18nName","entity.PriceCategory.i18nName"),new s.I18nMultiInput("description","entity.PriceCategory.description"),new s.Input("number","fromPrice","entity.PriceCategory.fromPrice"),new s.Input("number","toPrice","entity.PriceCategory.toPrice"),new s.AnyField("bookable","entity.PriceCategory.bookable.name")],{renderLabel:!1}),new s.AnyField("contributor","entity.Event.contributor",{required:!0,extractor:(0,s.pathExtractor)("contributor.id"),insertor:(0,s.pathInsertor)("contributor.id")}),new s.AnyField("location","entity.Event.location",{required:!0,extractor:(0,s.pathExtractor)("location.id"),insertor:(0,s.pathInsertor)("location.id")}),new s.Input("text","contact.name","entity.EventContactData.name"),new s.Input("text","contact.phone","entity.EventContactData.phone"),new s.Input("text","contact.email","entity.EventContactData.email",{extendedValidators:s.emailValidator}),new s.Checkbox("cancelled","entity.Event.cancelled"),new s.RadioButtonGroup("online","imxeventmanager.event.edit.panels.dates.event-occurrence",{optionProvider:[{value:"FULLY_ONLINE",label:"imxeventmanager.event.edit.panels.dates.event-all-dates-fully_online"},{value:"PARTLY_ONLINE",label:"imxeventmanager.event.edit.panels.dates.event-all-dates-partly_online"},{value:"NOT_ONLINE",label:"imxeventmanager.event.edit.panels.dates.event-all-dates-not_online"}],groupRenderMode:"inline",extractor:(0,s.pathExtractor)("online"),insertor:(0,s.noneInsertor)(),renderLabel:!1,readonly:!0}),new s.I18nMultiInput("onlineParticipationLink","entity.Event.onlineParticipationLink",{extendedValidators:s.httpUrlValidator}),new s.I18nMultiInput("onlineParticipationLinkText","entity.Event.onlineParticipationLinkText"),new s.I18nMultiTextarea("dateInfo","entity.Event.dateInfo",{renderLabel:!1}),new s.Select("eventDateType.type","entity.EventDateType.entityName",{optionProvider:x._,extractor:(0,s.pathExtractor)("eventDateType.type.id"),insertor:(0,s.pathInsertor)("eventDateType.type.id",!0),placeholder:"imxplatform.common.select-placeholder-demand",initialValue:-1,required:!0}),new s.DateField("eventDateType.startDate","entity.EventDateType.startDate"),new s.DateField("eventDateType.endDate","entity.EventDateType.endDate"),new s.Input("time","eventDateType.startTime","",{insertor:(0,s.staticInsertor)((0,s.pathInsertor)("eventDateType.startTime"),null)}),new s.Input("time","eventDateType.duration","",{insertor:(0,s.staticInsertor)((0,s.pathInsertor)("eventDateType.duration"),null)}),new s.ArrayField("eventDateType.startTimeDurations",!1,[new s.Input("time","startTime","entity.EventDateType.startTime.pattern",{required:!0}),new s.Input("time","endTime","entity.EventDateType.endTime.pattern",{insertor:s.noneInsertor}),new s.Input("duration","duration","entity.EventDateType.duration")],{renderLabel:!1}),new s.CheckboxSelect("eventDateType.weekDays","entity.EventDateType.weekDays",{optionProvider:o,extractor:(0,s.arrayValueExtractor)("eventDateType.weekDays","id"),insertor:(0,s.arrayValueInsertor)("eventDateType.weekDays","id"),renderLabel:!1,rowLayout:!0}),new s.Input("int","eventDateType.gap","",{renderLabel:!1,positiveOnly:!0}),new s.AnyField("eventDateType.weekdaysOnly",""),new s.ArrayField("eventDateType.specificEventDates",!1,[...q(),new s.Input("text","modificationType","entity.SpecificEventDate.modificationType.name")],{renderLabel:!1}),new s.ArrayField("eventDates",!1,q(),{renderLabel:!1}),new s.AnyField("eventDateType.specificDayOfMonth","",{extractor:(0,s.pathExtractor)("eventDateType.specificDayOfMonth"),insertor:(0,s.pathInsertor)("eventDateType.specificDayOfMonth")}),new s.AnyField("eventDateType.specificDayOfWeek","",{extractor:(0,s.pathExtractor)("eventDateType.specificDayOfWeek"),insertor:(0,s.pathInsertor)("eventDateType.specificDayOfWeek")}),new s.Input("int","eventDateType.dayOfMonth","",{renderLabel:!1,positiveOnly:!0,extendedValidators:[n.kI.maxLength(2)],extractor:(0,s.pathExtractor)("eventDateType.dayOfMonth"),insertor:(0,s.pathInsertor)("eventDateType.dayOfMonth")}),new s.Input("int","eventDateType.monthGap","",{renderLabel:!1,positiveOnly:!0}),new s.Select("eventDateType.gap-select","",{optionProvider:G,placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,s.pathExtractor)("eventDateType.gap"),insertor:(0,s.pathInsertor)("eventDateType.gap",!0),initialValue:-1,required:!1}),new s.Select("eventDateType.dayOfWeek","",{optionProvider:O,placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,s.pathExtractor)("eventDateType.dayOfWeek"),insertor:(0,s.pathInsertor)("eventDateType.dayOfWeek",!0),initialValue:-1,required:!1}),s.IMX_PLATFORM_FIELDS.createField("entityState",J()),new s.ArrayField("appearances",!1,$(),{renderLabel:!1,permissionId:"appearance"}),new s.ArrayField("refusedAppearances",!0,$(),{renderLabel:!1,permissionId:"appearance"}),new s.ArrayField("pendingAppearances",!0,$(),{renderLabel:!1,permissionId:"appearance"}),new s.GroupField("defaultAppearance",[new s.DateField("fromDate","entity.BasicAppearance.fromDate",{required:!0}),new s.DateField("toDate","entity.BasicAppearance.toDate",{required:!0}),new s.LanguageSelect("languagesSelect","entity.BasicAppearance.languages",{renderLabel:!1,renderAsReadOnly:!0,optionProvider:s.ObjectLanguagesOptionProviderService,extractor:(0,s.arrayValueExtractor)("languages","id"),insertor:(0,s.arrayValueInsertor)("languages","id")}),new s.CheckboxSelect("languages","entity.BasicAppearance.languages",{optionProvider:s.ObjectLanguagesOptionProviderService,isLanguageSelect:!0,rowLayout:!1,extractor:(0,s.arrayValueExtractor)("languages","id"),insertor:(0,s.arrayValueInsertor)("languages","id"),initialValue:-1,required:!1})],{permissionId:"appearance"}),new s.CheckboxSelect("targetGroups","imxeventmanager.event.filter.additional-filter.targetGroups",{optionProvider:I.w,rowLayout:!1,renderLabel:!1,placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,s.arrayValueExtractor)("targetGroups","id"),insertor:(0,s.arrayValueInsertor)("targetGroups","id")}),new s.Select("series","entity.EventSeries.entityName",{extractor:(0,s.pathExtractor)("series.id"),insertor:(0,s.pathInsertor)("series.id",!0),placeholder:"imxplatform.common.select-placeholder-no-selection",initialValue:s.SELECT_PLACEHOLDER_VALUE}),new s.AnyField("criteria","entity.Event.criteria",{extractor:(0,s.arrayValueExtractor)("criteria","id"),insertor:(0,s.arrayValueInsertor)("criteria","id")}),new s.AnyField("categories","entity.Event.categories",{extractor:(0,s.arrayValueExtractor)("categories","id"),insertor:(0,s.arrayValueInsertor)("categories","id")}),...(0,s.geoInfoFields)(),new s.Checkbox("geoInfoVisible","imxeventmanager.event.edit.panels.geoInfo.manual-location",{extractor:function ue(){return Ke=>{const at=(0,s.extractProperty)(Ke,"geoInfo");let Le=!1;return at&&(Le=null!=at.street||null!=at.streetNo||null!=at.zipcode||null!=at.city||null!=at.country||at.geoSystems&&(at.geoSystems.googleMaps||at.geoSystems.alpstein||at.geoSystems.alta4||at.geoSystems.toursprung)||at.coordinates.latitude&&at.coordinates.latitude>0||at.coordinates.longitude&&at.coordinates.longitude>0),Le}}(),insertor:(0,s.noneInsertor)(),permissionId:"geoInfo"}),s.IMX_PLATFORM_FIELDS.createField("author",J()),s.IMX_PLATFORM_FIELDS.createField("mediaLicense",J()),new s.Input("price","pricing.fromPrice","entity.Pricing.fromPrice"),new s.Input("price","pricing.toPrice","entity.Pricing.toPrice"),new s.Input("price","pricing.absolutePrice","entity.Pricing.absolutePrice"),new s.Checkbox("pricing.freeOfCharge","entity.Pricing.freeOfCharge"),new s.I18nMultiInput("pricing.priceBasis","entity.Pricing.priceBasis"),new s.I18nMultiRichtext("pricing.priceDescription","entity.Pricing.priceDescription"),new s.Select("pricing.priceUnit","entity.Pricing.priceUnit",{optionProvider:s.PriceUnitOptionProviderService,placeholder:"imxplatform.common.select-placeholder-no-selection",extractor:(0,s.pathExtractor)("pricing.priceUnit.id"),insertor:(0,s.pathInsertor)("pricing.priceUnit.id",!0),initialValue:-1}),new s.DateField("advanceBookingStartDate","entity.Event.advanceBooking.startDate"),new s.Input("time","advanceBookingStartTime","entity.Event.advanceBooking.startTime"),new s.Checkbox("ticketOnline.showTicketlink","entity.TicketOnline.showTicketlink"),new s.Input("text","ticketOnline.locationNumber","entity.TicketOnline.locationNumber"),new s.Input("text","ticketOnline.contributorClient","entity.TicketOnline.contributorClient"),new s.Input("text","ticketOnline.index","entity.TicketOnline.index"),new s.Input("text","ticketOnline.search","entity.TicketOnline.search"),new s.GroupField("metainfo",[]),new s.ArrayField("eventContacts",!1,[new s.AnyField("contactAddressPoi","",{extractor:(0,s.pathExtractor)("contactAddressPoi"),insertor:(0,s.pathInsertor)("contactAddressPoi")}),new s.Select("purpose","entity.AddressPoiContact.purpose",{optionProvider:s.ContactPurposeOptionProviderService,placeholder:"imxplatform.common.select-placeholder-no-selection",extractor:(0,s.pathExtractor)("purpose.id"),insertor:(0,s.pathInsertor)("purpose.id",!0),initialValue:-1})]),...(0,s.contactListsFields)(),new s.Select("reliabilityClassification","entity.Event.reliabilityClassification",{optionProvider:b,placeholder:"--",extractor:(0,s.pathExtractor)("reliabilityClassification.id"),insertor:(0,s.pathInsertor)("reliabilityClassification.id",!0),initialValue:-1}),new s.Select("integrityClassification","entity.Event.integrityClassification",{optionProvider:u,placeholder:"--",extractor:(0,s.pathExtractor)("integrityClassification.id"),insertor:(0,s.pathInsertor)("integrityClassification.id",!0),initialValue:-1}),s.IMX_PLATFORM_FIELDS.createField("lockedImportProperties"),new s.AnyField("classification","",{insertor:(0,s.noneInsertor)(),extractor:(0,s.noneExtractor)()})]);function $(){return new Array(new s.DateField("fromDate","entity.BasicAppearance.fromDate",{required:!0}),new s.DateField("toDate","entity.BasicAppearance.toDate",{required:!0}),new s.Select("deliveryChannel","entity.BasicAppearance.deliveryChannel",{required:!0,extractor:(0,s.pathExtractor)("deliveryChannel.id"),insertor:(0,s.pathInsertor)("deliveryChannel.id",!0)}),new s.LanguageSelect("languages","entity.BasicAppearance.languages",{optionProvider:s.ObjectLanguagesOptionProviderService,extractor:(0,s.arrayValueExtractor)("languages","id"),insertor:(0,s.arrayValueInsertor)("languages","id")}))}let ge=(()=>{class Ke extends s.AbstractCoreDataObjectFormHandler{constructor(Le,R,Te,me,Se,Ue,We,et,Et,lt){super(Le,[et.getEventModuleFormExtension(),...R||[]],me,Se,Ue,We,Et,Te,lt),this.formatterService=We,this.moduleFormConfigurationService=et}getEntityType(){return"Event"}hasDeliveryChannelLogic(){return"deliveryChannel"===this.configurationProvider.getStringFromSnapshot(i.c.IMXEVENTMANAGER_DELIVERY_METHOD)}showEndTimeInDatesTable(){return this.configurationProvider.getBooleanFromSnapshot(i.c.IMXEVENTMANAGER_EVENTDATE_ENDTIME,!1)}hasEventAssignUserPermission(){return this.imxSecurityManagerService.hasPermission(t.M.F_EVENT_ASSIGN_USER)}isContactAddressPoiEnabled(){return this.configurationProvider.getBooleanFromSnapshot(i.c.IMXEVENTMANAGER_CONTACT_ADDRESSPOI_ENABLED,!1)}isEventContactDataEnabled(){return this.configurationProvider.getBooleanFromSnapshot(i.c.IMXEVENTMANAGER_EVENT_CONTACT_DATA_ENABLED,!1)}calculateDuration(Le,R){const Te=Le.get("startTime").value;if(null!=Te&&R){const me=this.formatterService.formatDate(new Date,"yyyy-MM-dd"),We=(0,l.Gj)(new Date(me+"T"+Te),new Date(me+"T"+R));void 0!==We&&Le.get("duration").setValue(We,{emitEvent:!0})}}calculateEndTime(Le,R){const Te=Le.get("startTime").value;if(null!=Te)if(R){const me=this.formatterService.formatDate(new Date,"yyyy-MM-dd"),Ue=(0,l.$x)(new Date(me+"T"+Te),R);Le.get("endTime").setValue(this.formatterService.formatDate(Ue.getTime(),"HH:mm"),{emitEvent:!1})}else Le.get("endTime").setValue(void 0)}static#e=this.\u0275fac=function(R){return new(R||Ke)(e.LFG(Y),e.LFG(K,8),e.LFG(ne,8),e.LFG(s.NgControlBuilderService),e.LFG(l.Xh),e.LFG(l.Ze),e.LFG(s.FormatterService),e.LFG(s.ModuleFormConfigurationService),e.LFG(ae.T),e.LFG(s.ConfigurationProvider))};static#t=this.\u0275prov=e.Yz7({token:Ke,factory:Ke.\u0275fac})}return Ke})()},49257:(gt,X,a)=>{"use strict";a.d(X,{O:()=>i});var e=a(85829),n=a(96124),s=a(19212),l=a(71365);let i=(()=>{class t extends e.OptionProviderSortable{constructor(c,o){super(),this.entitiesMgrService=c,this.translateService=o}getOptions(c,o){return this.entitiesMgrService.getAllEntitiesOfType("Category").pipe((0,n.U)(x=>x.items.map(u=>({label:u.i18nName,value:u.id})).sort((u,m)=>(0,e.compareI18n)(u.label,m.label,this.translateService.currentLang))))}sortOptionsFn(c,o,x){return(0,e.compareI18n)(c.label,o.label,x)}static#e=this.\u0275fac=function(o){return new(o||t)(s.LFG(e.ImxEntitiesMgrService),s.LFG(l.sK))};static#t=this.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac})}return t})()},64143:(gt,X,a)=>{"use strict";a.d(X,{n:()=>p});var e=a(85829),n=a(21473),s=a(15646),i=a(96124),t=a(19212);let p=(()=>{class c extends e.AbstractI18nDataObjectTreeOptionProviderService{constructor(x){super(),this.entitiesMgrService=x}getRootNodes(){return this.entitiesMgrService.getAllEntitiesOfType("Category").pipe((0,i.U)(x=>s(x.items)),(0,i.U)(x=>x.filter(u=>null===u.parent)))}getDisplayNodesFn(){return x=>x.i18nName}static#e=this.\u0275fac=function(u){return new(u||c)(t.LFG(n.qB))};static#t=this.\u0275prov=t.Yz7({token:c,factory:c.\u0275fac})}return c})()},13561:(gt,X,a)=>{"use strict";a.d(X,{_:()=>i});var e=a(85829),n=a(96124),s=a(45346),l=a(19212);let i=(()=>{class t extends e.OptionProvider{constructor(c){super(),this.collectionsService=c}getOptions(c,o){return this.collectionsService.getAllEventDateTypeTypes().pipe((0,n.U)(x=>x.map(m=>({label:"entity."+m.name+".entityName",value:m.id})).sort((m,b)=>m.value-b.value)))}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(s.T))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},80648:(gt,X,a)=>{"use strict";a.d(X,{i:()=>i});var e=a(85829),n=a(96124),s=a(19212),l=a(71365);let i=(()=>{class t extends e.OptionProvider{constructor(c,o){super(),this.entitiesMgr=c,this.translateService=o}getOptions(c,o){return this.entitiesMgr.getAllEntitiesOfType("EventSeries").pipe((0,n.U)(x=>x.items.map(m=>({label:m.i18nName,value:m.id})).sort((m,b)=>(0,e.compareI18n)(m.label,b.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(o){return new(o||t)(s.LFG(e.ImxEntitiesMgrService),s.LFG(l.sK))};static#t=this.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},50785:(gt,X,a)=>{"use strict";a.d(X,{j:()=>t});var e=a(85829),n=a(96124),s=a(45346),l=a(19212),i=a(71365);let t=(()=>{class p extends e.OptionProvider{constructor(o,x){super(),this.collectionsService=o,this.translateService=x}getOptions(o,x){return this.collectionsService.getAllRelevances().pipe((0,n.U)(u=>u.map(b=>({label:b.i18nName,value:b.id})).sort((b,I)=>(0,e.compareI18n)(b.label,I.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(x){return new(x||p)(l.LFG(s.T),l.LFG(i.sK))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},62279:(gt,X,a)=>{"use strict";a.d(X,{w:()=>t});var e=a(85829),n=a(21473),s=a(96124),l=a(19212),i=a(71365);let t=(()=>{class p extends e.OptionProvider{constructor(o,x){super(),this.entitiesMgrService=o,this.translateService=x}getOptions(o,x){return this.entitiesMgrService.getAllEntitiesOfType("TargetGroup").pipe((0,s.U)(u=>u.items.map(m=>({label:m.i18nName,value:m.id})).sort((m,b)=>(0,e.compareI18n)(m.label,b.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(x){return new(x||p)(l.LFG(n.qB),l.LFG(i.sK))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},3959:(gt,X,a)=>{"use strict";a.d(X,{FN:()=>l,RC:()=>t,jl:()=>i,tw:()=>s});var e=a(19212),n=a(85829),s=function(p){return p.EVENT_EDIT_TITLES_SLOT="EVENT_EDIT_TITLES_SLOT",p.EVENT_ADDRESS_POI_OVERVIEW_SLOT="EVENT_ADDRESS_POI_OVERVIEW_SLOT",p}(s||{});const l=new e.OlP("imxeventmanager.edit.titles.slot"),i=new e.OlP("imxeventmanager.addresspoi.overview.slot");let t=(()=>{class p extends n.BaseSlotProvider{constructor(){super(),super.addComponentMapping(s.EVENT_EDIT_TITLES_SLOT,l),super.addComponentMapping(s.EVENT_ADDRESS_POI_OVERVIEW_SLOT,i)}static#e=this.\u0275fac=function(x){return new(x||p)};static#t=this.\u0275prov=e.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},48080:(gt,X,a)=>{"use strict";a.d(X,{M:()=>n});var e=a(85829);class n{static#e=this.F_EVENT_ALL={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Event:*"};static#t=this.F_EVENT_CREATE={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Event:C"};static#n=this.F_EVENT_READ_ALL={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Event_All:R"};static#i=this.F_EVENT_UPDATE_ALL={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Event_All:U"};static#o=this.F_EVENT_DELETE_ALL={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Event_All:D"};static#r=this.F_EVENT_READ_OWN_CLIENT={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Event_OwnClient:R"};static#a=this.F_EVENT_UPDATE_OWN_CLIENT={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Event_OwnClient:U"};static#s=this.F_EVENT_DELETE_OWN_CLIENT={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Event_OwnClient:D"};static#l=this.F_EVENT_READ_OWN_USER={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Event_OwnUser:R"};static#c=this.F_EVENT_UPDATE_OWN_USER={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Event_OwnUser:U"};static#d=this.F_EVENT_DELETE_OWN_USER={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Event_OwnUser:D"};static#m=this.F_EVENT_READ_SUBSCRIPT_CLIENT={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Event_SubscriptClient:R"};static#u=this.F_EVENT_READ_SUBSCRIPT_DELIVERYCHANNEL={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Event_SubscriptDeliveryChannel:R"};static#p=this.F_EVENT_UPDATE_SUBSCRIPT_DELIVERYCHANNEL={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Event_SubscriptDeliveryChannel:U"};static#_=this.F_EVENT_DELETE_SUBSCRIPT_DELIVERYCHANNEL={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Event_SubscriptDeliveryChannel:D"};static#f=this.F_WHL_PORTAL_CONFIG_ADMINISTRATION={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"WhlPortalConfigAdministration:*"};static#g=this.F_WHL_PORTAL_CONFIG_ADMINISTRATION_STYLES={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"WhlPortalConfigAdministration:Styles"};static#h=this.F_WHL_PORTAL_CONFIG_ADMINISTRATION_WIDGETS_CODEGEN={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"WhlPortalConfigAdministration:CodeGeneration"};static#x=this.F_WHL_PORTAL_CONFIG_ADMINISTRATION_WIDGETS={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"WhlPortalConfigAdministration:Widgets"};static#v=this.F_WHL_PORTAL_CONFIG_ADMINISTRATION_OWN_CLIENT={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"WhlPortalConfigAdministration_OwnClient:*"};static#b=this.F_WHL_PORTAL_CONFIG_ADMINISTRATION_WIDGETS_OWN_CLIENT={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"WhlPortalConfigAdministration_OwnClient:Widgets"};static#C=this.F_CRITERION_ADMINISTRATION={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"CriterionAdministration:*"};static#y=this.F_EVENT_ASSIGN_USER={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Event_AssignUser:*"};static#O=this.F_STAT_EVENT_EXPORT={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Statistics:EventExport"};static#P=this.F_STAT_EVENT_EXPORT_DATEBASED_EXTENDED={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Statistics:EventExportExtended"};static#M=this.F_EVENT_DUPLICATES={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Event_Duplicates:*"};static#T=this.F_EVENT_DUPLICATES_GENERATE_LIST={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Event_Duplicates:GEN_LIST"};static#E=this.F_EVENT_DUPLICATES_RESOLVE={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Event_Duplicates:RESOLVE"};static#A=this.F_EVENT_APPEARANCE={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"EventAppearance:*"};static#w=this.F_EVENT_APPEARANCE_CONFIRM={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"EventAppearance:Confirm"};static#D=this.F_EVENT_APPEARANCE_REFUSE={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"EventAppearance:Refuse"};static#I=this.F_PDF_SUBSCRIPTION={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"PdfSubscription:*"}}},68630:(gt,X,a)=>{"use strict";a.d(X,{m:()=>Uc});var e=a(96814),n=a(34423),s=a(56223),l=a(22941),i=a(24630),t=a(32296),p=a(49488),c=a(75986),o=a(23680),x=a(38034),u=a(17700),m=a(26385),b=a(3305),I=a(73176),H=a(30617),O=a(2032),P=a(59038),G=a(21476),B=a(16007),ae=a(55940),J=a(87466),q=a(98525),j=a(32651),Y=a(82599),K=a(92202),ne=a(22939),ee=a(13566),$=a(61545),ue=a(25313),ge=a(81274),Ke=a(92596),at=a(98445),Le=a(85829),R=a(21473),Te=a(34554),me=a(67338),Se=a(17919),Ue=a(23212),We=a(1431),et=a(71365),Et=a(72079),lt=a(54699),Vt=a(49193),r=a(94522),Z=a(19212),Pt=a(30555),Oe=a(33946),ye=a(1614);const ve=["dialogFrame"];function ft(dn,Mr){if(1&dn&&Z._UZ(0,"imx-base-list-shuffle",8),2&dn){const mn=Z.oxw();Z.Q6J("availableItems",mn.availableClients)("formControl",mn.assignedClientsControl)("displayNodeFn",mn.displayFnForClient)}}function Dt(dn,Mr){if(1&dn&&(Z._UZ(0,"imx-base-list-shuffle",9),Z.ALo(1,"async")),2&dn){const mn=Z.oxw();Z.Q6J("options",Z.lcZ(1,3,mn.allClientOptions))("formControl",mn.assignedClientsControl)("displayNodeFn",mn.displayFnForClient)}}let Rn=(()=>{class dn extends Le.BaseEntityActionDialogComponent{constructor(mn,Nn,Ci,Io,cr,ra){super(mn),this.data=mn,this.eventmanagerDataAccessService=Nn,this.platformDataAccessService=Ci,this.entitiesMgrService=Io,this.userMessageService=cr,this.clientOptionProviderService=ra,this.formGroup=new s.nJ({}),this.assignedClientsControl=new s.p4,this.availableClients=[],this.allClientOptions=(0,Vt.of)([])}ngOnInit(){this.criterionName=this.data.dataObject.i18nName,this.formGroup.registerControl("assignedClients",this.assignedClientsControl),this.data.batch?this.getAllClientOptions():this.readAvailableClients()}getAllClientOptions(){this.allClientOptions=this.clientOptionProviderService.getOptions(null,null)}readAvailableClients(){this.eventmanagerDataAccessService.getEventmanagerClientConfigIdsByCriterion(this.data.dataObject.id).subscribe(mn=>{this.assignedClientsControl.setValue(mn),this.data.dataObject.inheritable?this.entitiesMgrService.getEntityWithIdOfType("Client",this.data.dataObject.client.id).subscribe(Nn=>{const Ci=new Set;this.fillSetWithChildClients(Ci,Nn),this.availableClients=Array.from(Ci)}):this.availableClients=[this.data.dataObject.client]})}fillSetWithChildClients(mn,Nn){if(mn.add(Nn),Nn.children)for(const Ci of Nn.children)mn.add(Ci),this.fillSetWithChildClients(mn,Ci)}handleAssignAction(){this.formGroup.valid&&(this.data.batch?this.dialogFrame.close({confirmed:!0,selectedIds:this.assignedClientsControl.value}):this.platformDataAccessService.callAction({actionKey:"criterion-action-granted_clients",entityType:"Criterion",entityIds:[this.data.dataObject.id],actionParams:{clientIds:this.assignedClientsControl.value}}).subscribe(Nn=>{0===Nn.length?this.userMessageService.showError("imxeventmanager.base-entity.criterion.list.action.assign.dialog.assign-failed"):this.userMessageService.showInfo("imxeventmanager.base-entity.criterion.list.action.assign.dialog.assign-successful"),this.dialogFrame.close(!0)}))}onCancel(){this.dialogFrame.close(null)}displayFnForClient(mn,Nn){return mn.name}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.Y36(u.WI),Z.Y36(r.b),Z.Y36(Le.ImxPlatformDataAccessService),Z.Y36(Le.ImxEntitiesMgrService),Z.Y36(Le.UserMessageService),Z.Y36(Le.ClientOptionProviderService))};static#t=this.\u0275cmp=Z.Xpm({type:dn,selectors:[["ng-component"]],viewQuery:function(Nn,Ci){if(1&Nn&&Z.Gf(ve,7),2&Nn){let Io;Z.iGM(Io=Z.CRH())&&(Ci.dialogFrame=Io.first)}},features:[Z.qOj],decls:10,vars:9,consts:[["icon","icon-fingerprint","dialogType","form",3,"heading","subline","submitButtonDisabled","useEvents","onConfirm","onCancel"],["dialogFrame",""],["id","criterion-assign",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],["translate",""],[3,"availableItems","formControl","displayNodeFn",4,"ngIf"],[3,"options","formControl","displayNodeFn",4,"ngIf"],[3,"availableItems","formControl","displayNodeFn"],[3,"options","formControl","displayNodeFn"]],template:function(Nn,Ci){1&Nn&&(Z.TgZ(0,"imx-dialog",0,1),Z.NdJ("onConfirm",function(){return Ci.handleAssignAction()})("onCancel",function(){return Ci.onCancel()}),Z.ALo(2,"readI18n"),Z.TgZ(3,"form",2)(4,"div",3)(5,"div",4)(6,"h3",5),Z._uU(7,"imxeventmanager.base-entity.criterion.list.action.assign.dialog.clients"),Z.qZA(),Z.YNc(8,ft,1,3,"imx-base-list-shuffle",6)(9,Dt,2,5,"imx-base-list-shuffle",7),Z.qZA()()()()),2&Nn&&(Z.Q6J("heading","imxeventmanager.base-entity.criterion.list.action.assign.dialog.title")("subline",Z.lcZ(2,7,Ci.criterionName))("submitButtonDisabled",Ci.formGroup.invalid||Ci.formGroup.pristine)("useEvents",!0),Z.xp6(3),Z.Q6J("formGroup",Ci.formGroup),Z.xp6(5),Z.Q6J("ngIf",!Ci.data.batch),Z.xp6(),Z.Q6J("ngIf",Ci.data.batch))},dependencies:[Pt.A,Oe.a,e.O5,s._Y,s.JJ,s.JL,s.oH,s.sg,et.Pi,ye.j,e.Ov],styles:["h3[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return dn})();var ti=a(63336);let Je=(()=>{class dn extends Le.AbstractAction{constructor(mn,Nn,Ci,Io,cr,ra,$a){super(mn,Nn,Ci,Io),this.dialog=mn,this.dataAccess=Nn,this.entityStateDao=Ci,this.userMessageService=Io,this.configurationProvider=cr,this.router=ra,this.translateService=$a,this.logger=(0,Le.getLogger)("CriterionGrantClientsAction",ti.H.name),this.destroy$=new Et.xQ}getOrder(){return 10}executeAfterActionComplete(mn){}doExecute(mn){}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}execute(mn){throw new Error("CriterionGrantClientsAction can not be called for multiple entities")}executeBatch(mn){return new lt.y(Nn=>{this.dialog.open(Rn,{maxWidth:800,data:{dataObject:{i18nName:this.translateService.instant("entity.Criterion.entityName")},batch:!0}}).afterClosed().subscribe(Io=>{if(Io){const cr=this.createActionCallForBatch("Criterion",mn,{clientIds:Io.selectedIds,add:!0});this.dataAccess.callAction(cr).subscribe(ra=>{this.validateBatchResult(mn,ra),this.showSuccessMessage(ra),Nn.next(!0)})}})})}getSuccessKey(){return"imxplatform.common-entity.list.action.granted_clients.successful"}getActionLabelKey(){return"imxplatform.common-entity.list.action.granted_clients.header"}getBatchWarningKey(){return"imxplatform.common-entity.list.action.granted_clients.batch-warning"}getActionKey(){return"criterion-action-granted_clients"}getIcon(){return"icon-clients"}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(u.uw),Z.LFG(Le.ImxPlatformDataAccessService),Z.LFG(Le.EntityStateDao),Z.LFG(Le.UserMessageService),Z.LFG(Le.ConfigurationProvider),Z.LFG(l.F0),Z.LFG(et.sK))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})();var dt=a(96124);let Ie=(()=>{class dn extends Le.AbstractClientSideBackgroundAction{constructor(mn,Nn,Ci,Io,cr,ra){super(mn,Nn,Ci,Io,cr),this.dialog=mn,this.dataAccess=Nn,this.entityStateDao=Ci,this.userMessageService=Io,this.backgroundActionService=cr,this.dataAccessService=ra}doExecute(mn,Nn){return new lt.y(Ci=>{const Io=this.dataAccessService.createEventDuplicateGroups(mn).pipe((0,dt.U)(cr=>[1]));this.executeInBackground({entityIds:[],ids:1,operation:Io}),Ci.next(!0)})}getEntityType(){return"EventDefineDuplicate"}executeBatch(mn,Nn){}getIcon(){return""}getActionKey(){return"event-duplicates-action-define_duplicate_groups"}getSuccessKey(){return"imxeventmanager.duplicate.list.action.define-duplicates.success"}getActionLabelKey(){return"imxeventmanager.duplicate.list.action.define-duplicates.header"}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(u.uw),Z.LFG(Le.ImxPlatformDataAccessService),Z.LFG(Le.EntityStateDao),Z.LFG(Le.UserMessageService),Z.LFG(Le.BackgroundActionService),Z.LFG(r.b))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})();var ot=a(90297),ct=a(97564),tn=a(28907);function yi(dn,Mr){1&dn&&Z.GkF(0)}function ni(dn,Mr){1&dn&&Z.GkF(0)}function sn(dn,Mr){1&dn&&Z.GkF(0)}function bn(dn,Mr){1&dn&&Z.GkF(0)}function vt(dn,Mr){if(1&dn){const mn=Z.EpF();Z.TgZ(0,"label",9),Z._uU(1," imxeventmanager.delivery-channel.delivery-channel-config-dialog.activateChangesHint "),Z.qZA(),Z.TgZ(2,"button",10),Z.NdJ("click",function(){Z.CHM(mn);const Ci=Z.oxw();return Z.KtG(Ci.handleActivateChanges())}),Z._uU(3," imxeventmanager.delivery-channel.delivery-channel-config-dialog.activateChanges "),Z.qZA()}if(2&dn){const mn=Z.oxw();Z.xp6(2),Z.Q6J("disabled",!mn.dialogValid())}}function nn(dn,Mr){if(1&dn&&Z._UZ(0,"imx-form-control",11),2&dn){const mn=Mr.$implicit,Nn=Z.oxw();Z.Q6J("field",Nn.eventClientSubscriptionFormHandlerService.formConfiguration.findFormFieldById(mn))("control",Nn.eventClientSubscriptionFormHandlerService.formGroup.get(mn))("form",Nn.eventClientSubscriptionFormHandlerService.formGroup)("formHandler",Nn.eventClientSubscriptionFormHandlerService)("config",Nn.eventClientSubscriptionFormHandlerService.formConfiguration)}}const rn=()=>({entityType:"Client"}),ii=()=>({$implicit:"relevance1"}),Oo=()=>({$implicit:"relevance2"}),no=()=>({$implicit:"relevance3"}),Li=()=>({$implicit:"shouldConfirm"});let ji=(()=>{class dn{constructor(mn,Nn,Ci,Io){this.data=mn,this.baseEntityAutocompleteService=Nn,this.eventClientSubscriptionFormHandlerService=Ci,this.dialogRef=Io}ngOnInit(){this.eventClientSubscriptionFormHandlerService.formGroup.addControl("activateChanges",new s.p4),this.eventClientSubscriptionFormHandlerService.formGroup.get("subscriptClient").reset(),this.eventClientSubscriptionFormHandlerService.formGroup.get("relevance1").setValue(""),this.eventClientSubscriptionFormHandlerService.formGroup.get("relevance2").setValue(""),this.eventClientSubscriptionFormHandlerService.formGroup.get("relevance3").setValue(""),this.eventClientSubscriptionFormHandlerService.formGroup.get("shouldConfirm").setValue(""),this.eventClientSubscriptionFormHandlerService.formGroup.get("activateChanges").setValue(!1)}clientAutocompleteDisplayFn(mn){return mn?mn.representation+" ["+mn.entityId+"]":void 0}getClientControl(){return this.eventClientSubscriptionFormHandlerService.formGroup.get("subscriptClient")}dialogValid(){return!!this.eventClientSubscriptionFormHandlerService.formGroup.get("subscriptClient").value}handleActivateChanges(){this.eventClientSubscriptionFormHandlerService.formGroup.get("activateChanges").setValue(!0),this.close()}close(){this.dialogRef.close(this.getDialogResult())}getDialogResult(){return{relevance1:this.eventClientSubscriptionFormHandlerService.formGroup.get("relevance1").value,relevance2:this.eventClientSubscriptionFormHandlerService.formGroup.get("relevance2").value,relevance3:this.eventClientSubscriptionFormHandlerService.formGroup.get("relevance3").value,shouldConfirm:this.eventClientSubscriptionFormHandlerService.formGroup.get("shouldConfirm").value,activateChanges:this.eventClientSubscriptionFormHandlerService.formGroup.get("activateChanges").value,clientId:this.eventClientSubscriptionFormHandlerService.formGroup.get("subscriptClient").value}}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.Y36(u.WI),Z.Y36(Le.BaseEntityAutocompleteService),Z.Y36(ot.$),Z.Y36(u.so))};static#t=this.\u0275cmp=Z.Xpm({type:dn,selectors:[["ng-component"]],decls:17,vars:27,consts:[["icon","icon-earth","dialogType","form",3,"heading","submitButtonDisabled","getSubmitResult"],[1,"dialog-form"],[1,"dialog-form-group"],[1,"delivery-channel-config-client-subscription-autocomplete-div"],["name","addClient",1,"delivery-channel-config-client-subscription-autocomplete",3,"autocompleteService","autocompleteFilter","label","displayItemFn","formControl","required","startAtChar"],["id","delivery-channel-config-client-subscription-edit-batch-action",3,"formGroup"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["customButtonBar",""],["imxFormControl",""],["translate","",1,"hint"],["translate","",1,"imx-button","cta",3,"disabled","click"],[3,"field","control","form","formHandler","config"]],template:function(Nn,Ci){if(1&Nn&&(Z.TgZ(0,"imx-dialog",0)(1,"div",1)(2,"div",2)(3,"span"),Z._uU(4),Z.ALo(5,"translate"),Z.qZA(),Z.TgZ(6,"div",3),Z._UZ(7,"imx-base-autocomplete",4),Z.qZA(),Z.TgZ(8,"form",5),Z.YNc(9,yi,1,0,"ng-container",6)(10,ni,1,0,"ng-container",6)(11,sn,1,0,"ng-container",6)(12,bn,1,0,"ng-container",6),Z.qZA()()(),Z.YNc(13,vt,4,1,"ng-template",null,7,Z.W1O),Z.qZA(),Z.YNc(15,nn,1,5,"ng-template",null,8,Z.W1O)),2&Nn){const Io=Z.MAs(16);Z.Q6J("heading",Ci.data.title)("submitButtonDisabled",!Ci.dialogValid())("getSubmitResult",Ci.getDialogResult.bind(Ci)),Z.xp6(4),Z.Oqu(Z.lcZ(5,20,Ci.data.text)),Z.xp6(3),Z.Q6J("autocompleteService",Ci.baseEntityAutocompleteService)("autocompleteFilter",Z.DdM(22,rn))("label","entity.Client.entityName")("displayItemFn",Ci.clientAutocompleteDisplayFn)("formControl",Ci.getClientControl())("required",!0)("startAtChar",1),Z.xp6(),Z.Q6J("formGroup",Ci.eventClientSubscriptionFormHandlerService.formGroup),Z.xp6(),Z.Q6J("ngTemplateOutlet",Io)("ngTemplateOutletContext",Z.DdM(23,ii)),Z.xp6(),Z.Q6J("ngTemplateOutlet",Io)("ngTemplateOutletContext",Z.DdM(24,Oo)),Z.xp6(),Z.Q6J("ngTemplateOutlet",Io)("ngTemplateOutletContext",Z.DdM(25,no)),Z.xp6(),Z.Q6J("ngTemplateOutlet",Io)("ngTemplateOutletContext",Z.DdM(26,Li))}},dependencies:[ct.h,Oe.a,tn.A,e.tP,s._Y,s.JJ,s.JL,s.Q7,s.oH,s.sg,et.Pi,et.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.delivery-channel-config-client-subscription-autocomplete-div[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:10px}.imx-button.cta[_ngcontent-%COMP%]{margin-bottom:5px}.hint[_ngcontent-%COMP%]{text-align:left;margin:15px}"]})}return dn})(),_i=(()=>{class dn extends Le.AbstractClientSideBackgroundAction{constructor(mn,Nn,Ci,Io,cr,ra){super(mn,Nn,Ci,Io,cr),this.dialog=mn,this.dataAccess=Nn,this.entityStateDao=Ci,this.userMessageService=Io,this.backgroundActionService=cr,this.eventmanagerDataAccessService=ra,this.logger=(0,Le.getLogger)("EventDeliveryChannelClientSubscriptionEditAction",ti.H.name)}doExecute(mn){return this.executeBatch(Array.of(mn.id))}executeBatch(mn){return new lt.y(Nn=>{this.dialog.open(ji,{maxWidth:450,data:{batch:!0,title:"imxeventmanager.delivery-channel.list.action.config-client-subscription-change.header",text:"imxeventmanager.delivery-channel.list.action.config-client-subscription-change.text",hint:"imxeventmanager.delivery-channel.delivery-channel-config-dialog.activateChangesHint"}}).afterClosed().subscribe(Io=>{if(Io){const ra=this.createActionCallForBatch("DeliveryChannel",mn,{relevance1:Io.relevance1,relevance2:Io.relevance2,relevance3:Io.relevance3,shouldConfirm:Io.shouldConfirm,activateChanges:Io.activateChanges,clientId:Io.clientId});this.logger.info("Edit event client subscription: "+JSON.stringify(ra)),this.executeInBackground({entityIds:mn,ids:mn.length,operation:this.dataAccess.callAction(ra)}),Nn.next(!0)}})})}getEntityType(){return"DeliveryChannelConfig"}getActionKey(){return"apply-config-client-subscription-change"}getActionLabelKey(){return"imxeventmanager.delivery-channel.list.action.config-client-subscription-change.header"}getIcon(){return"icon-earth"}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(u.uw),Z.LFG(Le.ImxPlatformDataAccessService),Z.LFG(Le.EntityStateDao),Z.LFG(Le.UserMessageService),Z.LFG(Le.BackgroundActionService),Z.LFG(r.b))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})(),En=(()=>{class dn extends Le.AbstractDuplicateAction{constructor(mn,Nn,Ci,Io,cr){super(mn,Nn,Ci,Io,cr),this.dialog=mn,this.dataAccess=Nn,this.entityStateDao=Ci,this.userMessageService=Io,this.backgroundActionService=cr}getConfirmBatchTitleKey(){return"imxeventmanager.duplicate.list.action.deactivate.batch-header"}getConfirmTitleKey(){return"imxeventmanager.duplicate.list.action.deactivate.header"}getConfirmTextKey(){return"imxeventmanager.duplicate.list.action.deactivate.text"}getActionKey(){return"event-duplicates-action-deactivate"}getIcon(){return"icon-cross"}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(u.uw),Z.LFG(Le.ImxPlatformDataAccessService),Z.LFG(Le.EntityStateDao),Z.LFG(Le.UserMessageService),Z.LFG(Le.BackgroundActionService))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})(),co=(()=>{class dn extends Le.AbstractDuplicateAction{constructor(mn,Nn,Ci,Io,cr){super(mn,Nn,Ci,Io,cr),this.dialog=mn,this.dataAccess=Nn,this.entityStateDao=Ci,this.userMessageService=Io,this.backgroundActionService=cr}getConfirmBatchTitleKey(){return"imxeventmanager.duplicate.list.action.extract-duplicate.batch-header"}getConfirmTitleKey(){return"imxeventmanager.duplicate.list.action.extract-duplicate.header"}getConfirmTextKey(){return"imxeventmanager.duplicate.list.action.extract-duplicate.text"}getActionKey(){return"event-duplicates-action-extract_to_own_group"}getIcon(){return"icon-extract_duplicates"}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(u.uw),Z.LFG(Le.ImxPlatformDataAccessService),Z.LFG(Le.EntityStateDao),Z.LFG(Le.UserMessageService),Z.LFG(Le.BackgroundActionService))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})(),ln=(()=>{class dn extends Le.AbstractClientSideBackgroundAction{constructor(mn,Nn,Ci,Io,cr){super(mn,Nn,Ci,Io,cr),this.dialog=mn,this.dataAccess=Nn,this.entityStateDao=Ci,this.userMessageService=Io,this.backgroundActionService=cr,this.logger=(0,Le.getLogger)("EventImxsearchIndexAction",ti.H.name)}doExecute(mn){return new lt.y(Nn=>{this.dialog.open(Le.ConfirmDialogComponent,{maxWidth:450,data:{title:"imxeventmanager.event.list.action.imxsearch-index.header",text:"imxeventmanager.event.list.action.imxsearch-index.text",iconClass:"icon-refresh",translated:!1,confirmButtonKey:"imxplatform.common.yes"}}).afterClosed().subscribe(Io=>{if(Io){const cr=this.createActionCall("Event",mn);this.executeInBackground({entityIds:[mn.id],ids:1,operation:this.dataAccess.callAction(cr)}),Nn.next(!0)}})})}executeBatch(mn){return new lt.y(Nn=>{this.dialog.open(Le.ConfirmDialogComponent,{maxWidth:450,data:{title:"imxeventmanager.event.list.action.imxsearch-index.header",text:"imxeventmanager.event.list.action.imxsearch-index.batch-text",iconClass:"icon-refresh",translated:!1,confirmButtonKey:"imxplatform.common.yes"}}).afterClosed().subscribe(Io=>{if(Io){const cr=this.createActionCallForBatch("Event",mn);this.executeInBackground({entityIds:mn,ids:mn.length,operation:this.dataAccess.callAction(cr)}),Nn.next(!0)}})})}getEntityType(){return"Event"}getSuccessKey(){return"imxeventmanager.event.list.action.imxsearch-index.successful"}getBatchWarningKey(){return"imxeventmanager.event.list.action.imxsearch-index.batch-warning"}getActionKey(){return"event-action-imxsearch-index"}getIcon(){return"icon-refresh"}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(u.uw),Z.LFG(Le.ImxPlatformDataAccessService),Z.LFG(Le.EntityStateDao),Z.LFG(Le.UserMessageService),Z.LFG(Le.BackgroundActionService))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})();const He=new Le.FormConfiguration([new Le.AnyField("modifyOption","",{extractor:(0,Le.pathExtractor)("modifyOption"),insertor:(0,Le.pathInsertor)("modifyOption")}),new Le.Select("deliveryChannelId","entity.Appearance.deliveryChannel",{optionProvider:Le.OwnDeliveryChannelOptionProviderService,extractor:(0,Le.numberExtractor)("deliveryChannel.id"),placeholder:"imxplatform.common.select-placeholder-demand",insertor:(0,Le.pathInsertor)("deliveryChannelId",!0),initialValue:-1,required:!0}),new Le.CheckboxSelect("languageIds","entity.BasicAppearance.languages",{optionProvider:Le.LanguageOptionProviderService,extractor:(0,Le.arrayValueExtractor)("languageIds","id"),insertor:(0,Le.arrayValueInsertor)("languageIds","id"),isLanguageSelect:!0,rowLayout:!0})]);let rt=(()=>{class dn extends Le.AbstractFormHandler{constructor(mn,Nn,Ci,Io){super(He,void 0,mn,Io,Ci),this.imxSecurityManagerService=Nn,this.formatterService=Ci}getEntityType(){return"ModifyAppearanceData"}hasEditPermission(mn){return(0,Vt.of)(this.imxSecurityManagerService.hasPropertyEditPermission("Event",mn))}hasReadPermission(mn){return(0,Vt.of)(this.imxSecurityManagerService.hasPropertyVisibilityPermission("Event",mn))}hasSavePermission(){return(0,Vt.of)(!0)}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(Le.NgControlBuilderService),Z.LFG(R.Xh),Z.LFG(Le.FormatterService),Z.LFG(R.Ze))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac,providedIn:"root"})}return dn})();var $e=a(9413);let Ve=(()=>{class dn{constructor(mn){this.formHandler=mn,this.formHandler.baseObject={}}getDialogResult(){return this.formHandler.getBaseObjectCopyWithCurrentFormValues()}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.Y36(rt))};static#t=this.\u0275cmp=Z.Xpm({type:dn,selectors:[["ng-component"]],decls:3,vars:4,consts:[["heading","imxplatform.common-entity.list.action.modify-appearances.header","icon","icon-earth","dialogType","form","xmlns","http://www.w3.org/1999/html",3,"submitButtonDisabled","getSubmitResult"],[1,"dialog-form"],[3,"formHandler","forEntityType"]],template:function(Nn,Ci){1&Nn&&(Z.TgZ(0,"imx-dialog",0)(1,"div",1),Z._UZ(2,"imx-modify-appearances-data-dialog-content",2),Z.qZA()()),2&Nn&&(Z.Q6J("submitButtonDisabled",Ci.formHandler.formGroup.invalid)("getSubmitResult",Ci.getDialogResult.bind(Ci)),Z.xp6(2),Z.Q6J("formHandler",Ci.formHandler)("forEntityType","Event"))},dependencies:[Oe.a,$e.s]})}return dn})(),Ce=(()=>{class dn extends Le.AbstractModifyAppearancesAction{constructor(mn,Nn,Ci,Io,cr){super(mn,Nn,Ci,Io,cr),this.dialog=mn,this.dataAccess=Nn,this.entityStateDao=Ci,this.userMessageService=Io}getEntityType(){return"Event"}openDialog(){return this.dialog.open(Ve,{...Le.DialogDefaultSizes.FORM_MEDIUM,data:{},confirmButtonKey:"imxplatform.common-entity.list.action.modify-appearances.confirm"})}getSuccessKey(){return"imxeventmanager.event.list.action.modify-appearances.successful"}getActionKey(){return"event-action-modify-appearances"}getActionLabelKey(){return"imxplatform.common-entity.list.action.modify-appearances.header"}getIcon(){return"icon-earth"}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(u.uw),Z.LFG(Le.ImxPlatformDataAccessService),Z.LFG(Le.EntityStateDao),Z.LFG(Le.UserMessageService),Z.LFG(Le.BackgroundActionService))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})(),tt=(()=>{class dn extends Le.AbstractDuplicateAction{constructor(mn,Nn,Ci,Io,cr){super(mn,Nn,Ci,Io,cr),this.dialog=mn,this.dataAccess=Nn,this.entityStateDao=Ci,this.userMessageService=Io,this.backgroundActionService=cr}getConfirmBatchTitleKey(){return"imxeventmanager.duplicate.list.action.no-duplicate.successful"}getConfirmTitleKey(){return"imxeventmanager.duplicate.list.action.no-duplicate.batch-header"}getConfirmTextKey(){return"imxeventmanager.duplicate.list.action.no-duplicate.text"}getActionKey(){return"event-duplicates-action-no_duplicates"}getIcon(){return"icon-checklist_duplicates"}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(u.uw),Z.LFG(Le.ImxPlatformDataAccessService),Z.LFG(Le.EntityStateDao),Z.LFG(Le.UserMessageService),Z.LFG(Le.BackgroundActionService))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})();var ht=a(75222),Qt=a(13181);let Un=(()=>{class dn extends Le.AbstractResolveDuplicateGroupAction{constructor(mn,Nn,Ci,Io,cr,ra,$a){super(mn,Nn,Ci,Io,cr,$a),this.dialog=mn,this.dataAccess=Nn,this.entityStateDao=Ci,this.userMessageService=Io,this.backgroundActionService=cr,this.eventDataAccessService=ra,this.actionVoters=$a}getDuplicateGroupById(mn){return this.eventDataAccessService.getEventDuplicateGroup(mn)}getGroupMemberProperty(){return"events"}getCandidateActionParamName(){return"eventIds"}executeBatch(mn){return this._openConfirmDialog(this.getConfirmBatchTitleKey(),this.getBatchWarningKey()).afterClosed().pipe((0,ht.w)(Nn=>Nn?new lt.y(Ci=>{const Io=this.createActionCallForBatch("EventDuplCandidatesGroup",mn);this.logger.info("Trigger duplicate action "+this.getActionKey()+" for EventDuplCandidatesGroup: "+JSON.stringify(Io)),Io.actionParams={forceResolution:!0};const ra=this.dataAccess.callAction(Io);this.executeInBackground({entityIds:mn,ids:mn.length,operation:ra}),Ci.next(!0)}):(0,Vt.of)(!1)))}openDuplicatesDecisionDialog(mn){return this.dialog.open(Qt.O,{maxWidth:850,data:{duplicates:mn,inheritInputFields:!1,inheritContactPoiAssignment:!1,inheritMedia:!1,inheritEntityLists:!1,deleteDuplicates:!1}})}extendParamsWithDialogResultData(mn,Nn){Nn.masterId=mn.masterId,Nn.inheritEntityLists=mn.inheritEntityLists,Nn.deleteDuplicates=mn.deleteDuplicates,Nn.inheritInputFields=mn.inheritInputFields,Nn.inheritContactPoiAssignment=mn.inheritContactPoiAssignment,Nn.inheritMedia=mn.inheritMedia}getEntityType(){return"EventDuplCandidatesGroup"}getConfirmBatchTitleKey(){return"imxeventmanager.duplicate.list.action.resolve-duplicate.batch-header"}getBatchWarningKey(){return"imxeventmanager.duplicate.list.action.resolve-duplicate.batch-text"}getConfirmTitleKey(){return"imxeventmanager.duplicate.list.action.resolve-duplicate.header"}getConfirmTextKey(){return"imxeventmanager.duplicate.list.action.resolve-duplicate.text"}getActionKey(){return"event-duplicates-action-resolve_duplicate_groups"}getIcon(){return"icon-undo_duplicate"}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(u.uw),Z.LFG(Le.ImxPlatformDataAccessService),Z.LFG(Le.EntityStateDao),Z.LFG(Le.UserMessageService),Z.LFG(Le.BackgroundActionService),Z.LFG(r.b),Z.LFG(Le.IMXPLATFORM_ACTION_VOTER,8))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})(),Yt=(()=>{class dn extends Le.AbstractTranslateAction{constructor(mn,Nn,Ci,Io,cr){super(mn,Nn,Ci,Io,cr),this.dialog=mn,this.dataAccess=Nn,this.entityStateDao=Ci,this.userMessageService=Io,this.runtimeContextService=cr,this.logger=(0,Le.getLogger)("EventTranslateAction",ti.H.name)}getOrder(){return this.ACTION_ORDER_TRANSLATE}getBatchWarningKey(){return"imxeventmanager.event.list.action.translate.batch-warning"}getSuccessKey(){return"imxeventmanager.event.list.action.translate.successful"}getActionKey(){return"event-action-translate"}getLogger(){return this.logger}getType(){return"Event"}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(u.uw),Z.LFG(Le.ImxPlatformDataAccessService),Z.LFG(Le.EntityStateDao),Z.LFG(Le.UserMessageService),Z.LFG(R.Ze))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})();var Fn=a(12731),yt=a(23291);let Bt=(()=>{class dn extends Le.BaseEntityPermissionService{constructor(mn,Nn,Ci,Io){super(),this.defaultBaseEntityPermissionService=mn,this.runtimeContextService=Nn,this.entitiesMgrService=Ci,this.securityManagerService=Io,this.baseEntityName="Criterion"}hasCreatePermission(mn){return this.defaultBaseEntityPermissionService.hasCreatePermission(mn)}hasBatchDeletePermission(mn){return!0}hasEditPermission(mn,Nn){return this.runtimeContextService.getCurrentAndSubClients().pipe((0,dt.U)(Ci=>Array.from(Ci)),(0,dt.U)(Ci=>Ci.some(Io=>Io.id===Nn.client.id)),(0,ht.w)(Ci=>Ci?this.defaultBaseEntityPermissionService.hasEditPermission(mn,Nn):(0,Vt.of)(!1)))}hasDeletePermission(mn,Nn){return this.runtimeContextService.getCurrentAndSubClients().pipe((0,dt.U)(Ci=>Array.from(Ci)),(0,dt.U)(Ci=>Ci.some(Io=>Io.id===Nn.client.id)),(0,ht.w)(Ci=>Ci?this.defaultBaseEntityPermissionService.hasDeletePermission(mn,Nn):(0,Vt.of)(!1)))}hasActionPermission(mn,Nn,Ci){return this.securityManagerService.hasPermission(R.uo.F_ALL)?(0,Vt.of)(!0):"assign"===Ci&&Nn.inheritable?new lt.y(Io=>{const cr=this.entitiesMgrService.getEntityWithIdOfType("Client",Nn.client.id),ra=this.runtimeContextService.getCurrentClient();return(0,yt.aj)([ra,cr]).subscribe(([$a,xe])=>{const h=this.evaluateClient($a,xe);return Io.next(h)})}):(0,Vt.of)(!1)}evaluateClient(mn,Nn){return mn.id===Nn.id||!!Nn.parent&&this.evaluateClient(mn,Nn.parent)}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(Le.DefaultBaseEntityPermissionService),Z.LFG(R.Ze),Z.LFG(Le.ImxEntitiesMgrService),Z.LFG(R.Xh))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})(),li=(()=>{class dn extends R.aP{constructor(mn){super(mn,"Category")}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(R.fx))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})(),si=(()=>{class dn extends R.aP{constructor(mn){super(mn,"Criterion")}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(R.fx))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})(),_o=(()=>{class dn extends Le.AbstractAction{constructor(mn,Nn,Ci,Io,cr){super(mn,Nn,Io,cr),this.dialog=mn,this.dataAccess=Nn,this.translationService=Ci,this.entityStateDao=Io,this.userMessageService=cr,this.logger=(0,Le.getLogger)("EventConfirmPendingAppearancesAction",ti.H.name)}doExecute(mn){return new lt.y(Nn=>{this.dialog.open(Le.ConfirmDialogComponent,{maxWidth:450,data:{title:this.translationService.instant("imxeventmanager.event.list.action.confirm-pending-appearances.title"),text:this.translationService.instant("imxeventmanager.event.list.action.confirm-pending-appearances.text",{id:mn.id}),iconClass:this.getIcon(),translated:!0}}).afterClosed().subscribe(Io=>{if(Io){const cr=this.createActionCall("Event",mn);this.logger.info("ConfirmPendingAppearances: "+JSON.stringify(cr)),this.dataAccess.callAction(cr).subscribe(ra=>{this.showSuccessMessageForSingleAction(ra),Nn.next(!0)})}})})}executeBatch(mn){return new lt.y(Nn=>{this.dialog.open(Le.ConfirmDialogComponent,{maxWidth:450,data:{title:"imxeventmanager.event.list.action.confirm-pending-appearances.title",text:"imxeventmanager.event.list.action.confirm-pending-appearances.text-batch",iconClass:this.getIcon(),translated:!1}}).afterClosed().subscribe(Io=>{if(Io){const cr=this.createActionCallForBatch("Event",mn);this.logger.info("ConfirmPendingAppearances: "+JSON.stringify(cr)),this.dataAccess.callAction(cr).subscribe(ra=>{this.validateBatchResult(mn,ra),this.showSuccessMessage(ra),Nn.next(!0)})}})})}getBatchWarningKey(){return"imxeventmanager.event.list.action.confirm-pending-appearances.batch-warning"}getSuccessKey(){return"imxeventmanager.event.list.action.confirm-pending-appearances.successful"}getActionKey(){return"event-action-confirm-pending-appearances"}getIcon(){return"icon-earth-confirm"}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(u.uw),Z.LFG(Le.ImxPlatformDataAccessService),Z.LFG(et.sK),Z.LFG(Le.EntityStateDao),Z.LFG(Le.UserMessageService))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})(),Hn=(()=>{class dn extends Le.AbstractDeleteAction{constructor(mn,Nn,Ci,Io,cr){super(mn,Nn,Ci,Io,cr)}getConfirmBatchTitleKey(){return"imxeventmanager.event.list.action.delete.confirm-batch"}getConfirmTitleKey(){return"imxeventmanager.event.list.action.delete.confirm"}getEntityType(){return"Event"}getActionKey(){return"event-action-delete"}getIcon(){return"icon-trash"}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(u.uw),Z.LFG(Le.ImxPlatformDataAccessService),Z.LFG(Le.EntityStateDao),Z.LFG(Le.UserMessageService),Z.LFG(Le.BackgroundActionService))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})();var mo=a(86984),vn=a(82730),Ji=a(1494),wn=a(69332),po=a(43479);let Vn=(()=>{class dn extends Le.AbstractClientSideBackgroundAction{constructor(mn,Nn,Ci,Io,cr){super(mn,Nn,Ci,Io,cr),this.dialog=mn,this.dataAccess=Nn,this.entityStateDao=Ci,this.userMessageService=Io,this.backgroundActionService=cr,this.logger=(0,Le.getLogger)("EventImportAction",ti.H.name)}doExecute(mn){return new lt.y(Nn=>{this.dialog.open(Le.ImportDialogComponent,{maxWidth:450,data:{i18n:"imxeventmanager.event.list.action.import.confirm",title:mn.title,ids:Array.of(mn.id)}}).afterClosed().subscribe(Io=>{if(Io){const cr=this.createActionCall("Event",mn);this.logger.info("Trigger import for event: "+JSON.stringify(cr)),this.executeInBackground({entityIds:[mn.id],ids:1,operation:this.dataAccess.callAction(cr)}),Nn.next(!0)}})})}executeBatch(mn){return new lt.y(Nn=>{this.dialog.open(Le.ImportDialogComponent,{maxWidth:450,data:{batch:!0,i18n:"imxeventmanager.event.list.action.import.confirm-batch",count:mn.length,ids:mn}}).afterClosed().subscribe(Io=>{if(Io){const cr=this.createActionCallForBatch("Event",mn);this.logger.info("Trigger import for events: "+JSON.stringify(cr)),this.executeInBackground({entityIds:mn,ids:mn.length,operation:this.dataAccess.callAction(cr)}),Nn.next(!0)}})})}getEntityType(){return"Event"}getSuccessKey(){return"imxeventmanager.event.list.action.import.successful"}getActionKey(){return"event-action-import"}getIcon(){return"icon-inbox"}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(u.uw),Z.LFG(Le.ImxPlatformDataAccessService),Z.LFG(Le.EntityStateDao),Z.LFG(Le.UserMessageService),Z.LFG(Le.BackgroundActionService))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})();var Wi=a(48080);let Ft=(()=>{class dn{getNavigationItems(){return Oi}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})();const Oi=[{name:"object_management",labelKey:"imxplatform.navigation.object-mgmt",icon:"icon-layers",open:!0,order:20,children:[{name:"object_management:searchEvent",labelKey:"imxplatform.navigation.events",icon:"icon-calendar-full",routerLink:"/events",order:6,permissions:[Wi.M.F_EVENT_READ_ALL,Wi.M.F_EVENT_READ_OWN_CLIENT,Wi.M.F_EVENT_READ_OWN_USER,Wi.M.F_EVENT_READ_SUBSCRIPT_CLIENT,Wi.M.F_EVENT_READ_SUBSCRIPT_DELIVERYCHANNEL]}]},{name:"publications",labelKey:"imxplatform.navigation.publications",icon:"icon-earth",order:30,children:[{name:"publications:deliverychannel-mgmt",labelKey:"imxplatform.navigation.deliverychannel-mgmt",icon:"icon-earth",routerLink:"/deliverychannelmgmt",order:1,permissions:[R.uo.F_DELIVERYCHANNEL_MANAGEMENT_READ]},{name:"whl_management:whlPortalConfigManagement",labelKey:"imxplatform.navigation.whl-portal-config",icon:"icon-whiteLabel",routerLink:"/whlportalconfig",order:4,permissions:[Wi.M.F_WHL_PORTAL_CONFIG_ADMINISTRATION,Wi.M.F_WHL_PORTAL_CONFIG_ADMINISTRATION_OWN_CLIENT,Wi.M.F_WHL_PORTAL_CONFIG_ADMINISTRATION_STYLES]},{name:"whl_management:whlPortalWidgetConfigManagement",labelKey:"imxplatform.navigation.whl-portal-widget-config",icon:"icon-whiteLabel",routerLink:"/whlportalwidgetconfig",order:5,permissions:[Wi.M.F_WHL_PORTAL_CONFIG_ADMINISTRATION_WIDGETS,Wi.M.F_WHL_PORTAL_CONFIG_ADMINISTRATION_WIDGETS_OWN_CLIENT,Wi.M.F_WHL_PORTAL_CONFIG_ADMINISTRATION_WIDGETS_CODEGEN]}]},{name:"data-quality",labelKey:"imxplatform.navigation.data-quality",icon:"icon-quality ",order:45,children:[{name:"object_management:eventDuplicates",labelKey:"imxplatform.navigation.eventDuplicates",icon:"icon-duplicate_event",routerLink:"/eventDuplicates",order:4,permissions:[Wi.M.F_EVENT_DUPLICATES]}]},{name:"user_management",labelKey:"imxplatform.navigation.user-mgmt",icon:"icon-users2",order:50,children:[{name:"user_management:pdfSubscriptManagement",labelKey:"imxplatform.navigation.pdfSubscriptManagement",icon:"icon-users2",routerLink:"/pdfSubscriptManagement",order:8,permissions:[Wi.M.F_PDF_SUBSCRIPTION]}]}];var On=a(77164),_n=a(64143),st=a(6929),Dn=a(25913),Wt=a(63989),kn=a(37012),Fi=a(12);function ui(dn,Mr){1&dn&&Z.GkF(0)}function Fo(dn,Mr){1&dn&&Z.GkF(0)}function At(dn,Mr){if(1&dn&&(Z.ynx(0),Z._UZ(1,"imx-tree",17),Z.BQk()),2&dn){const mn=Z.oxw();Z.xp6(),Z.Q6J("treeOptionProvider",mn.eventCategoryTreeOptionProviderService)("displayNodeFn",mn.eventCategoryTreeOptionProviderService.displayNodesFn)("sortNodesFn",mn.eventCategoryTreeOptionProviderService.sortNodesFn)("sortRootNodesFn",mn.eventCategoryTreeOptionProviderService.sortRootNodesFn)("control",mn.data.formHandler.formGroup.get("selectedCategoryIds"))("formHandler",mn.data.formHandler)("field",mn.data.formHandler.formConfiguration.findFormFieldById("selectedCategoryIds"))}}function Jn(dn,Mr){1&dn&&Z.GkF(0)}const Bn=()=>({$implicit:"selectedCategoryIds"});function Bi(dn,Mr){if(1&dn&&Z.YNc(0,Jn,1,0,"ng-container",5),2&dn){Z.oxw();const mn=Z.MAs(41);Z.Q6J("ngTemplateOutlet",mn)("ngTemplateOutletContext",Z.DdM(2,Bn))}}function $n(dn,Mr){1&dn&&Z.GkF(0)}function Ui(dn,Mr){1&dn&&Z.GkF(0)}function Xo(dn,Mr){1&dn&&Z.GkF(0)}function bt(dn,Mr){1&dn&&Z.GkF(0)}function an(dn,Mr){1&dn&&Z.GkF(0)}function Wn(dn,Mr){1&dn&&Z.GkF(0)}function eo(dn,Mr){1&dn&&Z.GkF(0)}const _r=()=>({$implicit:"modifyEventSeries"}),hr=()=>({$implicit:"selectedEventSeriesId"});function In(dn,Mr){if(1&dn&&(Z.TgZ(0,"imx-accordion-panel",18)(1,"imx-grid-element",12)(2,"div"),Z.YNc(3,Wn,1,0,"ng-container",5)(4,eo,1,0,"ng-container",5),Z.qZA()()()),2&dn){Z.oxw();const mn=Z.MAs(41);Z.xp6(3),Z.Q6J("ngTemplateOutlet",mn)("ngTemplateOutletContext",Z.DdM(4,_r)),Z.xp6(),Z.Q6J("ngTemplateOutlet",mn)("ngTemplateOutletContext",Z.DdM(5,hr))}}function Wr(dn,Mr){1&dn&&Z.GkF(0)}function qi(dn,Mr){1&dn&&Z.GkF(0)}function wi(dn,Mr){if(1&dn&&Z._UZ(0,"imx-form-control",19),2&dn){const mn=Mr.$implicit,Nn=Z.oxw();Z.Q6J("field",Nn.data.formHandler.formConfiguration.findFormFieldById(mn))("control",Nn.data.formRow.get(mn))("form",Nn.data.formRow)("formHandler",Nn.data.formHandler)("config",Nn.data.formHandler.formConfiguration)}}const zo=()=>({$implicit:"modifyCategory"}),xi=()=>({$implicit:"categoryReplaceOption"}),ki=()=>({$implicit:"modifyCriterion"}),wo=()=>({$implicit:"criteriaReplaceOption"}),Ei=()=>({$implicit:"selectedCriterionIds"}),ho=()=>({$implicit:"modifyClient"}),Cr=()=>({$implicit:"selectedClientId"}),vr=()=>({$implicit:"modifyFreeOfCharge"}),qr=()=>({$implicit:"freeOfCharge"});let Ra=(()=>{class dn{constructor(mn,Nn,Ci){this.data=mn,this.eventCategoryTreeOptionProviderService=Nn,this.entitiesMgr=Ci,this.eventSeriesAvailable=(0,Vt.of)(!1),this.categoryAsTree$=(0,Vt.of)(!1)}ngOnInit(){this.eventSeriesAvailable=this.entitiesMgr.isBaseEntityAvailable("EventSeries"),this.categoryAsTree$=this.categoriesHaveTreeStructure()}categoriesHaveTreeStructure(){return this.entitiesMgr.getAllEntitiesOfType("Category").pipe((0,ht.w)(mn=>(0,Vt.of)(mn.items.some(Nn=>void 0!==Nn.children&&Nn.children.length>0))))}submitButtonDisabled(){return!(this.data.formHandler.formGroup.get("modifyCategory").value||this.data.formHandler.formGroup.get("modifyCriterion").value||this.data.formHandler.formGroup.get("modifyClient").value||this.data.formHandler.formGroup.get("modifyEventSeries").value||this.data.formHandler.formGroup.get("modifyFreeOfCharge").value)}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.Y36(u.WI),Z.Y36(_n.n),Z.Y36(Le.ImxEntitiesMgrService))};static#t=this.\u0275cmp=Z.Xpm({type:dn,selectors:[["ng-component"]],decls:42,vars:39,consts:[["heading","imxeventmanager.event.list.action.modify.title","icon","icon-pencil","dialogType","form",3,"submitButtonDisabled"],["novalidate","",3,"formGroup"],[1,"dialog-form"],["title","imxeventmanager.event.edit.panels.base-data.modify-event-data-dialog.category"],["lg_w","4","sm_w","12","lg_o","0"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["lg_w","8","sm_w","12","lg_o","0"],[1,"list-group-wrapper"],[4,"ngIf","ngIfElse"],["categoryAsList",""],["title","imxeventmanager.event.edit.panels.base-data.modify-event-data-dialog.criterion"],["title","entity.Client.entityName"],["lg_w","12","sm_w","12","lg_o","0"],["title","imxeventmanager.event.edit.panels.base-data.modify-event-data-dialog.eventSeries",4,"ngIf"],["title","imxeventmanager.event.list.action.modify.freeOfCharge"],[1,"radios"],["imxFormControl",""],[3,"treeOptionProvider","displayNodeFn","sortNodesFn","sortRootNodesFn","control","formHandler","field"],["title","imxeventmanager.event.edit.panels.base-data.modify-event-data-dialog.eventSeries"],[3,"field","control","form","formHandler","config"]],template:function(Nn,Ci){if(1&Nn&&(Z.TgZ(0,"imx-dialog",0)(1,"form",1)(2,"div",2)(3,"imx-grid")(4,"imx-accordion")(5,"imx-accordion-panel",3)(6,"imx-grid-element",4)(7,"div"),Z.YNc(8,ui,1,0,"ng-container",5)(9,Fo,1,0,"ng-container",5),Z.qZA()(),Z.TgZ(10,"imx-grid-element",6)(11,"div",7),Z.YNc(12,At,2,7,"ng-container",8),Z.ALo(13,"async"),Z.YNc(14,Bi,1,3,"ng-template",null,9,Z.W1O),Z.qZA()()(),Z.TgZ(16,"imx-accordion-panel",10)(17,"imx-grid-element",4)(18,"div"),Z.YNc(19,$n,1,0,"ng-container",5)(20,Ui,1,0,"ng-container",5),Z.qZA()(),Z.TgZ(21,"imx-grid-element",6)(22,"div",7),Z.YNc(23,Xo,1,0,"ng-container",5),Z.qZA()()(),Z.TgZ(24,"imx-accordion-panel",11)(25,"span"),Z._uU(26),Z.ALo(27,"translate"),Z.qZA(),Z.TgZ(28,"imx-grid-element",12)(29,"div"),Z.YNc(30,bt,1,0,"ng-container",5)(31,an,1,0,"ng-container",5),Z.qZA()()(),Z.YNc(32,In,5,6,"imx-accordion-panel",13),Z.ALo(33,"async"),Z.TgZ(34,"imx-accordion-panel",14)(35,"imx-grid-element",12)(36,"div"),Z.YNc(37,Wr,1,0,"ng-container",5),Z.qZA(),Z.TgZ(38,"div",15),Z.YNc(39,qi,1,0,"ng-container",5),Z.qZA()()()()()()()(),Z.YNc(40,wi,1,5,"ng-template",null,16,Z.W1O)),2&Nn){const Io=Z.MAs(15),cr=Z.MAs(41);Z.Q6J("submitButtonDisabled",Ci.submitButtonDisabled()),Z.xp6(),Z.Q6J("formGroup",Ci.data.formRow),Z.xp6(7),Z.Q6J("ngTemplateOutlet",cr)("ngTemplateOutletContext",Z.DdM(30,zo)),Z.xp6(),Z.Q6J("ngTemplateOutlet",cr)("ngTemplateOutletContext",Z.DdM(31,xi)),Z.xp6(3),Z.Q6J("ngIf",Z.lcZ(13,24,Ci.categoryAsTree$))("ngIfElse",Io),Z.xp6(7),Z.Q6J("ngTemplateOutlet",cr)("ngTemplateOutletContext",Z.DdM(32,ki)),Z.xp6(),Z.Q6J("ngTemplateOutlet",cr)("ngTemplateOutletContext",Z.DdM(33,wo)),Z.xp6(3),Z.Q6J("ngTemplateOutlet",cr)("ngTemplateOutletContext",Z.DdM(34,Ei)),Z.xp6(3),Z.Oqu(Z.lcZ(27,26,"entity.CoreDataObject.client")),Z.xp6(4),Z.Q6J("ngTemplateOutlet",cr)("ngTemplateOutletContext",Z.DdM(35,ho)),Z.xp6(),Z.Q6J("ngTemplateOutlet",cr)("ngTemplateOutletContext",Z.DdM(36,Cr)),Z.xp6(),Z.Q6J("ngIf",Z.lcZ(33,28,Ci.eventSeriesAvailable)),Z.xp6(5),Z.Q6J("ngTemplateOutlet",cr)("ngTemplateOutletContext",Z.DdM(37,vr)),Z.xp6(2),Z.Q6J("ngTemplateOutlet",cr)("ngTemplateOutletContext",Z.DdM(38,qr))}},dependencies:[Oe.a,tn.A,st.q,e.O5,e.tP,s._Y,s.JL,s.sg,Dn.Z,Wt.U,kn.M,Fi.V,e.Ov,et.X$],styles:[".list-group-wrapper[_ngcontent-%COMP%]{width:100%}.list-group-wrapper[_ngcontent-%COMP%]   .list-group[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ced4e0;height:18vh;overflow:hidden;width:100%}.radios[_ngcontent-%COMP%]{margin-left:20px}"]})}return dn})();var ss=function(dn){return dn.ADD="ADD",dn.REPLACE="REPLACE",dn.REMOVE="REMOVE",dn}(ss||{}),Hs=a(49257);let Cs=(()=>{class dn extends Le.OptionProvider{constructor(mn,Nn,Ci){super(),this.entitiesMgrService=mn,this.translateService=Nn,this.runtimeContext=Ci}getOptions(mn,Nn){const Ci=this.runtimeContext.getCurrentAndSubClients(),Io=this.entitiesMgrService.getAllEntitiesOfType("Criterion");return(0,yt.aj)([Ci,Io]).pipe((0,dt.U)(([cr,ra])=>{const $a=[...cr].map(xe=>xe.id);return ra.items.filter(xe=>$a.includes(xe.client.id)).map(xe=>({label:xe.i18nName,value:xe.id})).sort((xe,h)=>(0,Le.compareI18n)(xe.label,h.label,this.translateService.currentLang))}))}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(R.qB),Z.LFG(et.sK),Z.LFG(R.Ze))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac,providedIn:"root"})}return dn})();var ms=a(80648);const ja=new Le.FormConfiguration([new Le.Checkbox("modifyCategory","imxeventmanager.event.list.action.modify.modifyCategory"),new Le.RadioButtonGroup("categoryReplaceOption","imxeventmanager.event.edit.panels.base-data.actions",{optionProvider:[{value:"ADD",label:"imxeventmanager.event.list.action.modify.option_add"},{value:"REPLACE",label:"imxeventmanager.event.list.action.modify.option_replace"},{value:"REMOVE",label:"imxeventmanager.event.list.action.modify.option_remove"}],groupRenderMode:"block",initialValue:"ADD"}),new Le.MultiSelect("selectedCategoryIds","imxeventmanager.event.edit.panels.base-data.categories",{optionProvider:Hs.O,extractor:(0,Le.arrayValueExtractor)("selectedCategoryIds","id"),insertor:(0,Le.arrayValueInsertor)("selectedCategoryIds","id")}),new Le.Checkbox("modifyCriterion","imxeventmanager.event.list.action.modify.modifyCriterion"),new Le.RadioButtonGroup("criteriaReplaceOption","imxeventmanager.event.edit.panels.base-data.actions",{optionProvider:[{value:"ADD",label:"imxeventmanager.event.list.action.modify.option_add"},{value:"REPLACE",label:"imxeventmanager.event.list.action.modify.option_replace"},{value:"REMOVE",label:"imxeventmanager.event.list.action.modify.option_remove"}],groupRenderMode:"block",initialValue:"ADD"}),new Le.MultiSelect("selectedCriterionIds","imxeventmanager.event.edit.panels.base-data.criteria",{optionProvider:Cs,extractor:(0,Le.arrayValueExtractor)("selectedCriterionIds","id"),insertor:(0,Le.arrayValueInsertor)("selectedCriterionIds","id")}),new Le.Checkbox("modifyClient","imxeventmanager.event.list.action.modify.selectedClientId"),new Le.Select("selectedClientId","imxeventmanager.event.list.action.modify.selectedClientId",{optionProvider:Le.ClientOptionProviderService,extractor:(0,Le.pathExtractor)("selectedClientId.id"),insertor:(0,Le.pathInsertor)("selectedClientId.id",!0),renderLabel:!1}),new Le.Checkbox("modifyEventSeries","imxeventmanager.event.list.action.modify.modifyEventSeries"),new Le.Select("selectedEventSeriesId","imxeventmanager.event.list.action.modify.modifyEventSeries",{optionProvider:ms.i,extractor:(0,Le.pathExtractor)("selectedEventSeriesId.id"),insertor:(0,Le.pathInsertor)("selectedEventSeriesId.id"),placeholder:"imxeventmanager.event.list.action.modify.removeEventSeries",initialValue:-1,renderLabel:!1}),new Le.Checkbox("modifyFreeOfCharge","imxeventmanager.event.list.action.modify.modifyFreeOfCharge"),new Le.RadioButtonGroup("freeOfCharge","imxeventmanager.event.list.action.modify.freeOfCharge",{optionProvider:[{value:!0,label:"imxeventmanager.event.list.action.modify.freeOfCharge"},{value:!1,label:"imxeventmanager.event.list.action.modify.notFreeOfCharge"}],renderLabel:!1})]);let Vs=(()=>{class dn extends Le.AbstractFormHandler{constructor(mn,Nn,Ci){super(ja,void 0,mn,Nn,Ci),this.runtimeContextService=Nn,this.formatterService=Ci}getEntityType(){return"Event"}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(Le.NgControlBuilderService),Z.LFG(R.Ze),Z.LFG(Le.FormatterService))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac,providedIn:"root"})}return dn})(),Ds=(()=>{class dn extends Le.AbstractAction{constructor(mn,Nn,Ci,Io,cr){super(mn,Nn,Ci,Io),this.dialog=mn,this.dataAccess=Nn,this.entityStateDao=Ci,this.userMessageService=Io,this.modifyEventDataFormHandlerService=cr,this.logger=(0,Le.getLogger)("EventModifyAction",ti.H.name)}getOrder(){return this.ACTION_ORDER_MODIFY}doExecute(mn){return new lt.y(Nn=>{Nn.next(!0)})}executeBatch(mn){return new lt.y(Nn=>{this.modifyEventDataFormHandlerService.baseObject={},this.dialog.open(Ra,{...Le.DialogDefaultSizes.FORM_HUGE,data:{formRow:this.modifyEventDataFormHandlerService.formGroup,formHandler:this.modifyEventDataFormHandlerService}}).afterClosed().subscribe(Io=>{if(Io){const cr=this.modifyEventDataFormHandlerService.getBaseObjectCopyWithCurrentFormValues();if(void 0!==cr){const ra={};!0===cr.modifyCategory&&(ra.modifyCategories=cr.categoryReplaceOption,ra.categoryIds=cr.selectedCategoryIds.map(xe=>xe.id)),!0===cr.modifyCriterion&&(ra.modifyCriteria=cr.criteriaReplaceOption,ra.criterionIds=cr.selectedCriterionIds.map(xe=>xe.id)),!0===cr.modifyClient&&cr.selectedClientId&&cr.selectedClientId.id>0&&(ra.clientId=cr.selectedClientId.id),!0===cr.modifyFreeOfCharge&&(ra.modifyFreeOfCharge=!0,ra.freeOfCharge=cr.freeOfCharge),!0===cr.modifyEventSeries&&(ra.modifyEventSeries=-1===cr.selectedEventSeriesId||cr.selectedEventSeriesId.id<1?ss.REMOVE:ss.REPLACE,ra.eventSerieId=cr.selectedEventSeriesId.id);const $a=this.createActionCallForBatch("Event",mn,ra);this.logger.info("ModifyEvents: "+JSON.stringify($a)),this.dataAccess.callAction($a).subscribe(xe=>{this.validateBatchResult(mn,xe),this.showSuccessMessage(xe),Nn.next(!0)})}}})})}getBatchWarningKey(){return"imxeventmanager.event.list.action.modify.batch-warning"}getSuccessKey(){return"imxeventmanager.event.list.action.modify.successful"}getActionKey(){return"event-action-modify"}getIcon(){return"icon-pencil"}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(u.uw),Z.LFG(Le.ImxPlatformDataAccessService),Z.LFG(Le.EntityStateDao),Z.LFG(Le.UserMessageService),Z.LFG(Vs))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})();var dl=a(22194);function ka(dn,Mr){if(1&dn&&(Z.TgZ(0,"span"),Z._uU(1),Z.ALo(2,"translate"),Z.qZA()),2&dn){const mn=Z.oxw();Z.xp6(),Z.Oqu(Z.lcZ(2,1,mn.noPoiTxt))}}function hs(dn,Mr){if(1&dn){const mn=Z.EpF();Z.TgZ(0,"a",10),Z.NdJ("click",function(){Z.CHM(mn);const Ci=Z.oxw(2);return Z.KtG(Ci.contextNavigationService.navigateToCoreEntityContextual(["/"+Ci.determineLink(Ci.poi)+"/edit",Ci.poi.id]))}),Z.TgZ(1,"span"),Z._uU(2),Z.ALo(3,"readI18n"),Z.TgZ(4,"span",11),Z._uU(5),Z.qZA()()()}if(2&dn){const mn=Z.oxw(2);Z.xp6(2),Z.Oqu(Z.lcZ(3,2,mn.poi.title)),Z.xp6(3),Z.hij(" (",mn.poi.id,")")}}function Ua(dn,Mr){if(1&dn&&(Z.TgZ(0,"span"),Z._uU(1),Z.ALo(2,"readI18n"),Z.TgZ(3,"span",11),Z._uU(4),Z.qZA()()),2&dn){const mn=Z.oxw(2);Z.xp6(),Z.Oqu(Z.lcZ(2,2,mn.poi.title)),Z.xp6(3),Z.hij(" (",mn.poi.id,")")}}function Tn(dn,Mr){if(1&dn&&(Z.ynx(0),Z.TgZ(1,"div",3),Z.YNc(2,hs,6,4,"a",4)(3,Ua,5,4,"ng-template",null,5,Z.W1O),Z.qZA(),Z.TgZ(5,"div",6)(6,"span",7),Z._uU(7),Z.ALo(8,"translate"),Z.qZA(),Z.TgZ(9,"span",8),Z._uU(10),Z.qZA()(),Z.TgZ(11,"div",6)(12,"span",7),Z._uU(13),Z.ALo(14,"translate"),Z.qZA(),Z.TgZ(15,"span",8),Z._uU(16),Z.qZA()(),Z.TgZ(17,"div",6)(18,"span",7),Z._uU(19),Z.ALo(20,"translate"),Z.qZA(),Z.TgZ(21,"span",8),Z._uU(22),Z.qZA()(),Z.TgZ(23,"div",6)(24,"span",7),Z._uU(25),Z.ALo(26,"translate"),Z.qZA(),Z.TgZ(27,"span",8),Z._uU(28),Z.qZA(),Z.TgZ(29,"span",8),Z._uU(30),Z.qZA(),Z.TgZ(31,"span",8),Z._uU(32),Z.qZA()(),Z.TgZ(33,"div",6)(34,"span",7),Z._uU(35),Z.ALo(36,"translate"),Z.qZA(),Z.TgZ(37,"span",9),Z._uU(38),Z.qZA()(),Z.TgZ(39,"div",6)(40,"span",7),Z._uU(41),Z.ALo(42,"translate"),Z.qZA(),Z.TgZ(43,"span",9),Z._uU(44),Z.ALo(45,"readI18n"),Z.qZA()(),Z.BQk()),2&dn){const mn=Z.MAs(4),Nn=Z.oxw();Z.xp6(2),Z.Q6J("ngIf",!Nn.poi.permissionDenied)("ngIfElse",mn),Z.xp6(5),Z.hij("",Z.lcZ(8,18,"entity.AddressPoi.contact1.contactName"),":"),Z.xp6(3),Z.Oqu(null==Nn.poi||null==Nn.poi.contact1?null:Nn.poi.contact1.contactName),Z.xp6(3),Z.hij("",Z.lcZ(14,20,"entity.AddressPoi.contact1.firstname"),":"),Z.xp6(3),Z.Oqu(null==Nn.poi?null:Nn.poi.contact1.firstname),Z.xp6(3),Z.hij("",Z.lcZ(20,22,"entity.AddressPoi.contact1.lastname"),":"),Z.xp6(3),Z.Oqu(null==Nn.poi?null:Nn.poi.contact1.lastname),Z.xp6(3),Z.hij("",Z.lcZ(26,24,"imxplatform.common-entity.edit.panels.contact-data.title"),":"),Z.xp6(3),Z.AsE("",null==Nn.poi||null==Nn.poi.contact1||null==Nn.poi.contact1.address?null:Nn.poi.contact1.address.street," ",null==Nn.poi||null==Nn.poi.contact1||null==Nn.poi.contact1.address?null:Nn.poi.contact1.address.streetNo,""),Z.xp6(2),Z.AsE("",null==Nn.poi||null==Nn.poi.contact1||null==Nn.poi.contact1.address?null:Nn.poi.contact1.address.zipcode," ",null==Nn.poi||null==Nn.poi.contact1||null==Nn.poi.contact1.address?null:Nn.poi.contact1.address.city,""),Z.xp6(2),Z.Oqu(null==Nn.poi||null==Nn.poi.contact1||null==Nn.poi.contact1.address?null:Nn.poi.contact1.address.country),Z.xp6(3),Z.hij("",Z.lcZ(36,26,"entity.AddressPoi.contact1.address.email"),":"),Z.xp6(3),Z.Oqu(null==Nn.poi||null==Nn.poi.contact1||null==Nn.poi.contact1.address?null:Nn.poi.contact1.address.email),Z.xp6(3),Z.hij("",Z.lcZ(42,28,"entity.AddressPoi.contact1.address.homepage"),":"),Z.xp6(3),Z.Oqu(Z.lcZ(45,30,null==Nn.poi||null==Nn.poi.contact1||null==Nn.poi.contact1.address?null:Nn.poi.contact1.address.homepage))}}const Qi=dn=>({"ng-invalid":dn});let To=(()=>{class dn{constructor(){this.contextNavigationService=(0,Z.f3M)(Le.ContextNavigationService),this.router=(0,Z.f3M)(l.F0)}determineLink(mn){return mn.AddressPoi_originalType&&"Addressbase"===mn.AddressPoi_originalType?"addressbases":"addresspois"}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)};static#t=this.\u0275cmp=Z.Xpm({type:dn,selectors:[["imx-event-address-poi-overview"]],inputs:{noPoiTxt:"noPoiTxt",poi:"poi"},decls:4,vars:5,consts:[[1,"addresspoi-overview",3,"ngClass"],["noPoi",""],[4,"ngIf","ngIfElse"],[1,"addresspoi-title"],["class","txt-link",3,"click",4,"ngIf","ngIfElse"],["noLink",""],[1,"addresspoi-field"],[1,"label","txt-grey"],[1,"value"],[1,"value","txt-link"],[1,"txt-link",3,"click"],[1,"addresspoi-id","txt-grey"]],template:function(Nn,Ci){if(1&Nn&&(Z.TgZ(0,"div",0),Z.YNc(1,ka,3,3,"ng-template",null,1,Z.W1O)(3,Tn,46,32,"ng-container",2),Z.qZA()),2&Nn){const Io=Z.MAs(2);Z.Q6J("ngClass",Z.VKq(3,Qi,!Ci.poi)),Z.xp6(3),Z.Q6J("ngIf",Ci.poi)("ngIfElse",Io)}},dependencies:[dl.F,e.mk,e.O5,ye.j,et.X$],styles:[".addresspoi-overview[_ngcontent-%COMP%]{background:#fff;color:#0a2663;margin-top:5px;margin-bottom:10px;padding:10px;border:1px solid #ced4e0;min-height:300px}.addresspoi-overview.ng-invalid[_ngcontent-%COMP%]{border:1px solid #96172e;min-height:100px}.addresspoi-overview[_ngcontent-%COMP%]   .addresspoi-field[_ngcontent-%COMP%]{margin-bottom:5px}.addresspoi-overview[_ngcontent-%COMP%]   .addresspoi-field[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:block}.addresspoi-overview[_ngcontent-%COMP%]   .addresspoi-field[_ngcontent-%COMP%]   span.label[_ngcontent-%COMP%], .addresspoi-overview[_ngcontent-%COMP%]   .addresspoi-field[_ngcontent-%COMP%]   .addresspoi-id[_ngcontent-%COMP%]{font-size:12px}.addresspoi-overview[_ngcontent-%COMP%]   .addresspoi-field[_ngcontent-%COMP%]   span.value[_ngcontent-%COMP%]{min-height:12px}.addresspoi-overview[_ngcontent-%COMP%]   .addresspoi-field[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.addresspoi-overview[_ngcontent-%COMP%]   .addresspoi-title[_ngcontent-%COMP%]{margin-bottom:10px;text-align:center}"],changeDetection:0})}return dn})(),oi=(()=>{class dn extends Le.AbstractAction{constructor(mn,Nn,Ci,Io,cr){super(mn,Nn,Io,cr),this.dialog=mn,this.dataAccess=Nn,this.translationService=Ci,this.entityStateDao=Io,this.userMessageService=cr,this.logger=(0,Le.getLogger)("EventRefusePendingAppearancesAction",ti.H.name)}doExecute(mn){return new lt.y(Nn=>{this.dialog.open(Le.ConfirmDialogComponent,{maxWidth:450,data:{title:this.translationService.instant("imxeventmanager.event.list.action.refuse-pending-appearances.title"),text:this.translationService.instant("imxeventmanager.event.list.action.refuse-pending-appearances.text",{id:mn.id}),iconClass:this.getIcon(),translated:!0}}).afterClosed().subscribe(Io=>{if(Io){const cr=this.createActionCall("Event",mn);this.logger.info("RefusePendingAppearances: "+JSON.stringify(cr)),this.dataAccess.callAction(cr).subscribe(ra=>{this.showSuccessMessageForSingleAction(ra),Nn.next(!0)})}})})}executeBatch(mn){return new lt.y(Nn=>{this.dialog.open(Le.ConfirmDialogComponent,{maxWidth:450,data:{title:"imxeventmanager.event.list.action.refuse-pending-appearances.title",text:"imxeventmanager.event.list.action.refuse-pending-appearances.text-batch",iconClass:this.getIcon(),translated:!1}}).afterClosed().subscribe(Io=>{if(Io){const cr=this.createActionCallForBatch("Event",mn);this.logger.info("RefusePendingAppearances: "+JSON.stringify(cr)),this.dataAccess.callAction(cr).subscribe(ra=>{this.validateBatchResult(mn,ra),this.showSuccessMessage(ra),Nn.next(!0)})}})})}getBatchWarningKey(){return"imxeventmanager.event.list.action.refuse-pending-appearances.batch-warning"}getSuccessKey(){return"imxeventmanager.event.list.action.refuse-pending-appearances.successful"}getActionKey(){return"event-action-refuse-pending-appearances"}getIcon(){return"icon-earth-reject"}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(u.uw),Z.LFG(Le.ImxPlatformDataAccessService),Z.LFG(et.sK),Z.LFG(Le.EntityStateDao),Z.LFG(Le.UserMessageService))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})(),Ti=(()=>{class dn extends Le.AbstractAction{constructor(mn,Nn,Ci,Io,cr){super(mn,Nn,Io,cr),this.dialog=mn,this.dataAccess=Nn,this.translationService=Ci,this.entityStateDao=Io,this.userMessageService=cr,this.logger=(0,Le.getLogger)("EventRemoveReferenceAction",ti.H.name)}doExecute(mn){return new lt.y(Nn=>{this.dialog.open(Le.ConfirmDialogComponent,{maxWidth:450,data:{title:this.translationService.instant("imxeventmanager.event.list.action.remove-reference.title"),text:this.translationService.instant("imxeventmanager.event.list.action.remove-reference.text",{id:mn.id}),iconClass:this.getIcon(),translated:!0,confirmButtonKey:"imxplatform.dialog.common-delete"}}).afterClosed().subscribe(Io=>{if(Io){const cr=this.createActionCall("Event",mn);this.logger.info("RemoveReference: "+JSON.stringify(cr)),this.dataAccess.callAction(cr).subscribe(ra=>{this.showSuccessMessageForSingleAction(ra),Nn.next(!0)})}})})}executeBatch(mn){return new lt.y(Nn=>{this.dialog.open(Le.DeleteDialogComponent,{maxWidth:450,data:{batch:!0,dialogTitle:"imxeventmanager.event.list.action.remove-reference.title",i18n:"imxeventmanager.event.list.action.remove-reference.text-batch",count:mn.length,icon:"icon-unlink icon"}}).afterClosed().subscribe(Io=>{if(Io){const cr=this.createActionCallForBatch("Event",mn);this.logger.info("RemoveReference: "+JSON.stringify(cr)),this.dataAccess.callAction(cr).subscribe(ra=>{this.validateBatchResult(mn,ra),this.showSuccessMessage(ra),Nn.next(!0)})}})})}getBatchWarningKey(){return"imxeventmanager.event.list.action.remove-reference.batch-warning"}getSuccessKey(){return"imxeventmanager.event.list.action.remove-reference.successful"}getActionKey(){return"event-action-remove-reference"}getIcon(){return"icon-unlink"}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(u.uw),Z.LFG(Le.ImxPlatformDataAccessService),Z.LFG(et.sK),Z.LFG(Le.EntityStateDao),Z.LFG(Le.UserMessageService))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})(),Hi=(()=>{class dn{constructor(mn){this.dataAccessService=mn}search(mn,Nn,Ci,Io){return this.dataAccessService.getEvents({latitude:mn.toString(),longitude:Nn.toString(),searchDistance:Ci.toString()},{paging:{pageSize:Io,pageIdx:0},sortFields:["GEO_DISTANCE-ASC"]})}getEntityType(){return Le.CoreEntityDef.EVENT_ENTITY.type}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(r.b))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac,providedIn:"root"})}return dn})();var Do=a(11786),$o=a(51418),yr=a(3125),Vr=a(96776),da=a(58391);function Za(dn,Mr){1&dn&&(Z.TgZ(0,"p",5),Z._uU(1,"imxplatform.common.no-records"),Z.qZA())}function ma(dn,Mr){1&dn&&Z._UZ(0,"tr",18)}function Wa(dn,Mr){1&dn&&Z._UZ(0,"tr",19)}function Yi(dn,Mr){1&dn&&(Z.TgZ(0,"th",20),Z._uU(1,"entity.EventDateType.startTime.pattern"),Z.qZA())}function jo(dn,Mr){if(1&dn&&(Z.TgZ(0,"td",21),Z._UZ(1,"imx-form-control",22),Z.qZA()),2&dn){const mn=Mr.$implicit,Nn=Z.oxw(2);Z.xp6(),Z.Q6J("field",Nn.fieldStartTime)("control",mn.controls.startTime)("form",Nn.formGroup)("formHandler",Nn.formHandler)("config",Nn.formConfiguration)}}function Cn(dn,Mr){1&dn&&(Z.TgZ(0,"th",20),Z._uU(1,"entity.EventDateType.endTime.pattern"),Z.qZA())}function uo(dn,Mr){if(1&dn&&(Z.TgZ(0,"td",21),Z._UZ(1,"imx-form-control",22),Z.qZA()),2&dn){const mn=Mr.$implicit,Nn=Z.oxw(2);Z.xp6(),Z.Q6J("field",Nn.fieldEndTime)("control",mn.controls.endTime)("form",Nn.formGroup)("formHandler",Nn.formHandler)("config",Nn.formConfiguration)}}function fo(dn,Mr){1&dn&&(Z.TgZ(0,"th",20),Z._uU(1,"entity.EventDateType.duration"),Z.qZA())}function Jo(dn,Mr){if(1&dn&&(Z.TgZ(0,"td",21),Z._UZ(1,"imx-form-control",22),Z.qZA()),2&dn){const mn=Mr.$implicit,Nn=Z.oxw(2);Z.xp6(),Z.Q6J("field",Nn.fieldDuration)("control",mn.controls.duration)("form",Nn.formGroup)("formHandler",Nn.formHandler)("config",Nn.formConfiguration)}}function kr(dn,Mr){1&dn&&(Z.TgZ(0,"th",20),Z._uU(1),Z.ALo(2,"translate"),Z.qZA()),2&dn&&(Z.xp6(),Z.Oqu(Z.lcZ(2,1,"entity.EventDate.bookingLink")))}function Qr(dn,Mr){if(1&dn&&(Z.TgZ(0,"td",21),Z._UZ(1,"imx-form-control",22),Z.qZA()),2&dn){const mn=Mr.$implicit,Nn=Z.oxw(2);Z.xp6(),Z.Q6J("field",Nn.fieldBookingLink)("control",mn.controls.bookingLink)("form",Nn.formGroup)("formHandler",Nn.formHandler)("config",Nn.formConfiguration)}}function Aa(dn,Mr){1&dn&&Z._UZ(0,"th",23)}function cs(dn,Mr){if(1&dn){const mn=Z.EpF();Z.TgZ(0,"td",24)(1,"a",25),Z.NdJ("click",function(){const Io=Z.CHM(mn).$implicit,cr=Z.oxw(2);return Z.KtG(cr.removeRow(cr.dataSource.filteredData.indexOf(Io)))}),Z.qZA()()}}function ys(dn,Mr){if(1&dn&&(Z.TgZ(0,"table",6),Z.YNc(1,ma,1,0,"tr",7)(2,Wa,1,0,"tr",8),Z.ynx(3,9),Z.YNc(4,Yi,2,0,"th",10)(5,jo,2,5,"td",11),Z.BQk(),Z.ynx(6,12),Z.YNc(7,Cn,2,0,"th",10)(8,uo,2,5,"td",11),Z.BQk(),Z.ynx(9,13),Z.YNc(10,fo,2,0,"th",10)(11,Jo,2,5,"td",11),Z.BQk(),Z.ynx(12,14),Z.YNc(13,kr,3,3,"th",10)(14,Qr,2,5,"td",11),Z.BQk(),Z.ynx(15,15),Z.YNc(16,Aa,1,0,"th",16)(17,cs,2,0,"td",17),Z.BQk(),Z.qZA()),2&dn){const mn=Z.oxw();Z.Q6J("dataSource",mn.dataSource),Z.xp6(),Z.Q6J("matHeaderRowDef",mn.timeRows),Z.xp6(),Z.Q6J("matRowDefColumns",mn.timeRows)}}let zr=(()=>{class dn{constructor(){this.startTimeMandatory=!1,this.timeRows=["startTime","duration","bookingLink","removeColumn"],this.fieldStartTime=new Le.SmartTimeField("eventDates.startTime","",{renderLabel:!1}),this.fieldEndTime=new Le.SmartTimeField("eventDates.endTime","",{renderLabel:!1}),this.fieldDuration=new Le.Input("duration","eventDates.duration","",{renderLabel:!1}),this.fieldBookingLink=new Le.Input("text","eventDates.bookingLink","",{renderLabel:!1})}ngOnChanges(mn){mn.formGroup&&(this.timesFormArray=new s.vC([this._createTimeFormGroup()]),this.formGroup.addControl("times",this.timesFormArray),this.timesFormArray.patchValue([]),this.formConfiguration=new Le.FormConfiguration([this.fieldStartTime,this.fieldEndTime,this.fieldDuration,this.fieldBookingLink]),this.dataSource=new ue.by(this.timesFormArray.controls),this.formValueSubscription=this.timesFormArray.valueChanges.subscribe(Nn=>this.dataSource=new ue.by(this.timesFormArray.controls)))}ngOnInit(){this.formHandler.showEndTimeInDatesTable()&&this.timeRows.splice(1,0,"endTime")}ngOnDestroy(){this.formValueSubscription&&this.formValueSubscription.unsubscribe()}_createTimeFormGroup(){const mn=new s.nJ({startTime:new s.p4("",this.startTimeMandatory?s.kI.required:void 0),endTime:new s.p4(""),duration:new s.p4("",[s.kI.pattern(Le.durationRegexPattern)]),bookingLink:new s.p4("")});return mn.get("startTime").valueChanges.pipe((0,Vr.b)(500)).subscribe(Nn=>{this.formHandler.calculateDuration(mn,mn.get("endTime").value)}),mn.get("endTime").valueChanges.pipe((0,Vr.b)(500)).subscribe(Nn=>{this.formHandler.calculateDuration(mn,Nn)}),mn.get("duration").valueChanges.pipe((0,Vr.b)(500)).subscribe(Nn=>{this.formHandler.calculateEndTime(mn,Nn)}),mn}addTimings(){const mn=this._createTimeFormGroup();this.timesFormArray.push(mn)}removeRow(mn){this.timesFormArray.removeAt(mn)}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)};static#t=this.\u0275cmp=Z.Xpm({type:dn,selectors:[["imx-dates-form-time-table"]],inputs:{formGroup:"formGroup",formHandler:"formHandler",startTimeMandatory:"startTimeMandatory"},features:[Z.TTD],decls:11,vars:9,consts:[["novalidate","",3,"formGroup"],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[1,"imx-button","prio2",3,"click"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","startTime"],["mat-header-cell","","translate","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","endTime"],["matColumnDef","duration"],["matColumnDef","bookingLink"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","","translate",""],["mat-cell",""],[3,"field","control","form","formHandler","config"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"]],template:function(Nn,Ci){if(1&Nn&&(Z.TgZ(0,"h3"),Z._uU(1),Z.ALo(2,"translate"),Z.qZA(),Z.TgZ(3,"form",0),Z.YNc(4,Za,2,0,"ng-template",null,1,Z.W1O),Z.TgZ(6,"div",2),Z.YNc(7,ys,18,3,"table",3),Z.TgZ(8,"button",4),Z.NdJ("click",function(){return Ci.addTimings()}),Z._uU(9),Z.ALo(10,"translate"),Z.qZA()()()),2&Nn){const Io=Z.MAs(5);Z.xp6(),Z.Oqu(Z.lcZ(2,5,"imxeventmanager.event.edit.panels.dates.time-table.header")),Z.xp6(2),Z.Q6J("formGroup",Ci.formGroup),Z.xp6(4),Z.Q6J("ngIf",Ci.dataSource&&Ci.dataSource.data.length>0)("ngIfElse",Io),Z.xp6(2),Z.Oqu(Z.lcZ(10,7,"imxeventmanager.event.edit.panels.date.new"))}},dependencies:[tn.A,dl.F,e.O5,s._Y,s.JL,ue.BZ,ue.fO,ue.as,ue.w1,ue.Dz,ue.nj,ue.ge,ue.ev,ue.XQ,ue.Gk,s.sg,et.Pi,et.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}"]})}return dn})();function Pi(dn,Mr){if(1&dn&&(Z.TgZ(0,"span",7),Z._uU(1),Z.qZA()),2&dn){const mn=Mr.$implicit,Nn=Z.oxw(2);Z.xp6(),Z.Oqu(Nn.formatDate(mn))}}function xo(dn,Mr){if(1&dn&&(Z.TgZ(0,"div",3)(1,"h3"),Z._uU(2),Z.ALo(3,"translate"),Z.qZA(),Z.TgZ(4,"div",5),Z.YNc(5,Pi,2,1,"span",6),Z.qZA()()),2&dn){const mn=Z.oxw();Z.xp6(2),Z.Oqu(Z.lcZ(3,2,"imxeventmanager.event.edit.panels.date.selected")),Z.xp6(3),Z.Q6J("ngForOf",mn.data.selectedDates)}}let lr=(()=>{class dn{constructor(mn,Nn){this.data=mn,this.formatterService=Nn,this.formGroup=new s.nJ({}),this.isFormInvalid$=this.formGroup.statusChanges.pipe((0,dt.U)(Ci=>"INVALID"===Ci),(0,Vr.b)(0))}getDialogResults(){return this.formGroup.value}formatDate(mn){return this.formatterService.formatDate(mn,"dd.MM.yyyy")}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.Y36(u.WI),Z.Y36(Le.FormatterService))};static#t=this.\u0275cmp=Z.Xpm({type:dn,selectors:[["ng-component"]],decls:6,vars:8,consts:[["heading","imxeventmanager.event.edit.panels.date.header","icon","icon-calendar-31",3,"submitButtonDisabled","getSubmitResult"],[1,"dialog-form"],["class","dialog-form-group",4,"ngIf"],[1,"dialog-form-group"],[3,"formGroup","formHandler","startTimeMandatory"],[1,"form__content-field-row",2,"display","inline"],["style","display: block",4,"ngFor","ngForOf"],[2,"display","block"]],template:function(Nn,Ci){1&Nn&&(Z.TgZ(0,"imx-dialog",0),Z.ALo(1,"async"),Z.TgZ(2,"div",1),Z.YNc(3,xo,6,4,"div",2),Z.TgZ(4,"div",3),Z._UZ(5,"imx-dates-form-time-table",4),Z.qZA()()()),2&Nn&&(Z.Q6J("submitButtonDisabled",Z.lcZ(1,6,Ci.isFormInvalid$))("getSubmitResult",Ci.getDialogResults.bind(Ci)),Z.xp6(3),Z.Q6J("ngIf",Ci.data.selectedDates&&Ci.data.selectedDates.length>0),Z.xp6(2),Z.Q6J("formGroup",Ci.formGroup)("formHandler",Ci.data.formHandler)("startTimeMandatory",Ci.data.startTimeMandatory))},dependencies:[Oe.a,e.sg,e.O5,s.JL,s.sg,zr,e.Ov,et.X$],encapsulation:2})}return dn})();var Ir=a(63005),Da=a(33118),ia=a(54362),as=a(84634),Is=a(10444);function ba(dn,Mr){1&dn&&Z.GkF(0)}function Ss(dn,Mr){1&dn&&Z.GkF(0)}const Ca=dn=>({$implicit:dn});function Ia(dn,Mr){if(1&dn&&(Z.TgZ(0,"div"),Z._uU(1," Am "),Z._UZ(2,"imx-base-input",7),Z._uU(3," . jeden "),Z._UZ(4,"imx-base-input",8),Z._uU(5," Monats. "),Z.qZA(),Z.YNc(6,Ss,1,0,"ng-container",9)),2&dn){const mn=Z.oxw(2),Nn=Z.MAs(5);Z.xp6(6),Z.Q6J("ngTemplateOutlet",Nn)("ngTemplateOutletContext",Z.VKq(2,Ca,mn.hasMonthlyDefinitionValidationError))}}function wa(dn,Mr){1&dn&&Z.GkF(0)}function Va(dn,Mr){if(1&dn&&(Z.TgZ(0,"div"),Z._uU(1," Am "),Z._UZ(2,"imx-base-select",10)(3,"imx-base-select",11),Z._uU(4," jeden "),Z._UZ(5,"imx-base-input",12),Z._uU(6," Monats "),Z.qZA(),Z.YNc(7,wa,1,0,"ng-container",9)),2&dn){const mn=Z.oxw(2),Nn=Z.MAs(5);Z.xp6(2),Z.Q6J("options",mn.weeklyDefinitionGaps),Z.xp6(),Z.Q6J("options",mn.weeklyDefinitionWeekDays),Z.xp6(4),Z.Q6J("ngTemplateOutlet",Nn)("ngTemplateOutletContext",Z.VKq(4,Ca,mn.hasWeeklyDefinitionValidationError))}}function zn(dn,Mr){if(1&dn&&Z.YNc(0,ba,1,0,"ng-container",4)(1,Ia,7,4,"ng-template",null,5,Z.W1O)(3,Va,8,6,"ng-template",null,6,Z.W1O),2&dn){const mn=Mr.$implicit,Nn=Z.MAs(2),Ci=Z.MAs(4),Io=Z.oxw();Z.Q6J("ngIf",mn.value===Io.monthlyEventSeriesDefinition.DayOfMonth)("ngIfThen",Nn)("ngIfElse",Ci)}}function di(dn,Mr){1&dn&&Z._UZ(0,"imx-base-input-error",14)}function cn(dn,Mr){1&dn&&Z.YNc(0,di,1,0,"imx-base-input-error",13),2&dn&&Z.Q6J("ngIf",Mr.$implicit)}var Zi=function(dn){return dn[dn.DayOfMonth=0]="DayOfMonth",dn[dn.DayOfWeek=1]="DayOfWeek",dn}(Zi||{}),Eo=function(dn){return dn[dn.Monday=1]="Monday",dn[dn.Tuesday=2]="Tuesday",dn[dn.Wednesday=3]="Wednesday",dn[dn.Thursday=4]="Thursday",dn[dn.Friday=5]="Friday",dn[dn.Saturday=6]="Saturday",dn[dn.Sunday=7]="Sunday",dn}(Eo||{}),oa=function(dn){return dn[dn.First=1]="First",dn[dn.Second=2]="Second",dn[dn.Third=3]="Third",dn[dn.Fourth=4]="Fourth",dn[dn.Last=5]="Last",dn}(oa||{});let Nr=(()=>{class dn{constructor(){this.monthlyEventSeriesDefinitionRadioButtons=[{value:Zi.DayOfMonth,label:"imxeventmanager.event.edit.panels.dates.monthly-series.dayOfMonth"},{value:Zi.DayOfWeek,label:"imxeventmanager.event.edit.panels.dates.monthly-series.dayOfWeek"}],this.weeklyDefinitionGaps=[{value:oa.First,label:"imxeventmanager.event.edit.panels.dates.monthly-series.gap-first"},{value:oa.Second,label:"imxeventmanager.event.edit.panels.dates.monthly-series.gap-second"},{value:oa.Third,label:"imxeventmanager.event.edit.panels.dates.monthly-series.gap-third"},{value:oa.Fourth,label:"imxeventmanager.event.edit.panels.dates.monthly-series.gap-fourth"},{value:oa.Last,label:"imxeventmanager.event.edit.panels.dates.monthly-series.gap-last"}],this.weeklyDefinitionWeekDays=[{value:Eo.Monday,label:"imxeventmanager.event.edit.panels.dates.monthly-series.monday"},{value:Eo.Tuesday,label:"imxeventmanager.event.edit.panels.dates.monthly-series.tuesday"},{value:Eo.Wednesday,label:"imxeventmanager.event.edit.panels.dates.monthly-series.wednesday"},{value:Eo.Thursday,label:"imxeventmanager.event.edit.panels.dates.monthly-series.thursday"},{value:Eo.Friday,label:"imxeventmanager.event.edit.panels.dates.monthly-series.friday"},{value:Eo.Saturday,label:"imxeventmanager.event.edit.panels.dates.monthly-series.saturday"},{value:Eo.Sunday,label:"imxeventmanager.event.edit.panels.dates.monthly-series.sunday"}],this.monthlyEventSeriesDefinition=Zi,this.monthlyEventSeriesDefinitionFormControl=new s.p4(Zi.DayOfMonth),this.monthlyDefinitionDayOfMonthFormControl=new s.p4,this.monthlyDefinitionMonthGapFormControl=new s.p4,this.weeklyDefinitionMonthGapFormControl=new s.p4,this.weeklyDefinitionGapFormControl=new s.p4,this.weeklyDefinitionWeekDayFormControl=new s.p4,this.monthlyEventSeriesFormGroup=new s.nJ({monthlyEventSeriesDefinition:this.monthlyEventSeriesDefinitionFormControl,monthlyDefinitionDayOfMonth:this.monthlyDefinitionDayOfMonthFormControl,monthlyDefinitionMonthGap:this.monthlyDefinitionMonthGapFormControl,weeklyDefinitionMonthGap:this.weeklyDefinitionMonthGapFormControl,weeklyDefinitionGap:this.weeklyDefinitionGapFormControl,weeklyDefinitionWeekDay:this.weeklyDefinitionWeekDayFormControl},this._validateInputs.bind(this))}ngOnChanges(mn){mn.formGroup&&this.formGroup.addControl("monthly",this.monthlyEventSeriesFormGroup)}ngOnDestroy(){this.formGroup.removeControl("monthly")}_validateInputs(){return this._validateMonthlyDefinition(),this._validateWeeklyDefinition(),null}_validateMonthlyDefinition(){if(this.monthlyEventSeriesDefinitionFormControl.value!==Zi.DayOfMonth)return this.monthlyDefinitionDayOfMonthFormControl.setErrors(null),void this.monthlyDefinitionMonthGapFormControl.setErrors(null);this._validateMonthlyDefinitionDayOfMonth(),this._validateMonthlyDefinitionMonthGap()}_validateMonthlyDefinitionDayOfMonth(){const Io=[{required:s.kI.required},{min:s.kI.min(1)},{max:s.kI.max(31)}].reduce((cr,ra)=>{const $a=Object.keys(ra)[0];return(0,Object.values(ra)[0])(this.monthlyDefinitionDayOfMonthFormControl)&&(cr[$a]=!0),cr},{});this.monthlyDefinitionDayOfMonthFormControl.setErrors(Object.keys(Io).length?Io:null)}_validateMonthlyDefinitionMonthGap(){this._performRequiredFieldValidation(this.monthlyDefinitionMonthGapFormControl)}_validateWeeklyDefinition(){if(this.monthlyEventSeriesDefinitionFormControl.value!==Zi.DayOfWeek)return this.weeklyDefinitionMonthGapFormControl.setErrors(null),this.weeklyDefinitionGapFormControl.setErrors(null),void this.weeklyDefinitionWeekDayFormControl.setErrors(null);this._validateWeeklyDefinitionMonthGap(),this._validateWeeklyDefinitionGap(),this._validateWeeklyDefinitionWeekDay()}_validateWeeklyDefinitionMonthGap(){this._performRequiredFieldValidation(this.weeklyDefinitionMonthGapFormControl)}_validateWeeklyDefinitionGap(){this._performRequiredFieldValidation(this.weeklyDefinitionGapFormControl)}_validateWeeklyDefinitionWeekDay(){this._performRequiredFieldValidation(this.weeklyDefinitionWeekDayFormControl)}_performRequiredFieldValidation(mn){const Nn=s.kI.required(mn);mn.setErrors(Nn)}get hasMonthlyDefinitionValidationError(){return!(!this.monthlyDefinitionDayOfMonthFormControl.touched&&!this.monthlyDefinitionMonthGapFormControl.touched||!this.monthlyDefinitionDayOfMonthFormControl.errors&&!this.monthlyDefinitionMonthGapFormControl.errors)}get hasWeeklyDefinitionValidationError(){return!(!(this.weeklyDefinitionMonthGapFormControl.touched||this.weeklyDefinitionWeekDayFormControl.touched||this.weeklyDefinitionGapFormControl.touched)||!this.weeklyDefinitionMonthGapFormControl.errors&&!this.weeklyDefinitionWeekDayFormControl.errors&&!this.weeklyDefinitionGapFormControl.errors)}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)};static#t=this.\u0275cmp=Z.Xpm({type:dn,selectors:[["imx-monthly-event-series"]],inputs:{formGroup:"formGroup"},features:[Z.TTD],decls:6,vars:2,consts:[[3,"formGroup"],["formControlName","monthlyEventSeriesDefinition",3,"radioButtons"],["customLabel",""],["generalInputError",""],[4,"ngIf","ngIfThen","ngIfElse"],["dayOfMonthLabel",""],["dayOfWeekLabel",""],["formControlName","monthlyDefinitionDayOfMonth","type","text","pattern","\\d*"],["formControlName","monthlyDefinitionMonthGap","type","text","pattern","\\d*"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["formControlName","weeklyDefinitionGap",1,"weekly-definition-gap",3,"options"],["formControlName","weeklyDefinitionWeekDay",1,"weekly-definition-weekday",3,"options"],["formControlName","weeklyDefinitionMonthGap","type","text","pattern","\\d*"],["errorMessage","Die Eingabe ist nicht korrekt.",4,"ngIf"],["errorMessage","Die Eingabe ist nicht korrekt."]],template:function(Nn,Ci){1&Nn&&(Z.TgZ(0,"div",0)(1,"imx-base-radio-button-group",1),Z.YNc(2,zn,5,3,"ng-template",null,2,Z.W1O),Z.qZA()(),Z.YNc(4,cn,1,1,"ng-template",null,3,Z.W1O)),2&Nn&&(Z.Q6J("formGroup",Ci.monthlyEventSeriesFormGroup),Z.xp6(),Z.Q6J("radioButtons",Ci.monthlyEventSeriesDefinitionRadioButtons))},dependencies:[ia.H,as.o,Da.q,Is.o,e.O5,e.tP,s.JJ,s.JL,s.c5,s.sg,s.u],styles:["imx-base-input[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;width:65px}imx-base-select.weekly-definition-gap[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;width:100px}imx-base-select.weekly-definition-weekday[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;width:125px}.weekly-definition-gap[_ngcontent-%COMP%]{padding-right:5px}[_nghost-%COMP%]     .mat-mdc-radio-button .mdc-label{align-items:start}[_nghost-%COMP%]     .mdc-radio__background{margin-top:7px}"]})}return dn})();var Rs=a(77323);function Zr(dn,Mr){1&dn&&Z.GkF(0)}function Na(dn,Mr){1&dn&&Z.GkF(0)}function ol(dn,Mr){1&dn&&Z._UZ(0,"imx-base-input-error",6)}function Cl(dn,Mr){1&dn&&Z.YNc(0,ol,1,0,"imx-base-input-error",5),2&dn&&Z.Q6J("ngIf",Mr.$implicit)}const Ql=dn=>({$implicit:dn});var Ho=function(dn){return dn.Monday="Monday",dn.Tuesday="Tuesday",dn.Wednesday="Wednesday",dn.Thursday="Thursday",dn.Friday="Friday",dn.Saturday="Saturday",dn.Sunday="Sunday",dn}(Ho||{});let mc=(()=>{class dn{constructor(){this.days=[{value:Ho.Monday,label:"Montag"},{value:Ho.Tuesday,label:"Dienstag"},{value:Ho.Wednesday,label:"Mittwoch"},{value:Ho.Thursday,label:"Donnerstag"},{value:Ho.Friday,label:"Freitag"},{value:Ho.Saturday,label:"Samstag"},{value:Ho.Sunday,label:"Sonntag"}],this.weekGapFormControl=new s.p4(1,s.kI.required),this.weekDaysFormControl=new s.p4([],s.kI.required),this.weeklyEventSeriesFormGroup=new s.nJ({weekGap:this.weekGapFormControl,weekDays:this.weekDaysFormControl})}ngOnChanges(mn){mn.formGroup&&this.formGroup.addControl("weekly",this.weeklyEventSeriesFormGroup)}ngOnDestroy(){this.formGroup.removeControl("weekly")}get hasWeekGapValidationError(){return this._hasValidationError(this.weekGapFormControl)}get hasWeekDaysValidationError(){return this._hasValidationError(this.weekDaysFormControl)}_hasValidationError(mn){return!!mn.touched&&!!mn.errors}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)};static#t=this.\u0275cmp=Z.Xpm({type:dn,selectors:[["imx-weekly-event-series"]],inputs:{formGroup:"formGroup"},features:[Z.TTD],decls:10,vars:10,consts:[[3,"formGroup"],["formControlName","weekGap","type","text","pattern","\\d*"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["formControlName","weekDays","mode","inline",3,"checkboxes"],["generalInputError",""],["errorMessage","Die Eingabe ist nicht korrekt.",4,"ngIf"],["errorMessage","Die Eingabe ist nicht korrekt."]],template:function(Nn,Ci){if(1&Nn&&(Z.TgZ(0,"div",0)(1,"div"),Z._uU(2," Alle "),Z._UZ(3,"imx-base-input",1),Z._uU(4," Wochen am "),Z.qZA(),Z.YNc(5,Zr,1,0,"ng-container",2),Z._UZ(6,"imx-base-checkbox-select",3),Z.YNc(7,Na,1,0,"ng-container",2),Z.qZA(),Z.YNc(8,Cl,1,1,"ng-template",null,4,Z.W1O)),2&Nn){const Io=Z.MAs(9);Z.Q6J("formGroup",Ci.weeklyEventSeriesFormGroup),Z.xp6(5),Z.Q6J("ngTemplateOutlet",Io)("ngTemplateOutletContext",Z.VKq(6,Ql,Ci.hasWeekGapValidationError)),Z.xp6(),Z.Q6J("checkboxes",Ci.days),Z.xp6(),Z.Q6J("ngTemplateOutlet",Io)("ngTemplateOutletContext",Z.VKq(8,Ql,Ci.hasWeekDaysValidationError))}},dependencies:[Rs.N,ia.H,as.o,e.O5,e.tP,s.JJ,s.JL,s.c5,s.sg,s.u],styles:["imx-base-input[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;width:65px}imx-base-checkbox-select[_ngcontent-%COMP%]{display:block;margin-top:10px}imx-base-checkbox-select[_ngcontent-%COMP%]     .select-option{display:flex;flex-basis:105px}"]})}return dn})();function os(dn,Mr){if(1&dn&&Z._UZ(0,"imx-weekly-event-series",0),2&dn){const mn=Z.oxw();Z.Q6J("formGroup",mn.formGroup)}}function ps(dn,Mr){if(1&dn&&Z._UZ(0,"imx-monthly-event-series",0),2&dn){const mn=Z.oxw();Z.Q6J("formGroup",mn.formGroup)}}var Ps=function(dn){return dn[dn.Daily=0]="Daily",dn[dn.Weekly=1]="Weekly",dn[dn.Monthly=2]="Monthly",dn}(Ps||{});let Ba=(()=>{class dn{constructor(mn){this.changeDetectorRef=mn,this.intervalRadioButtons=[{value:Ps.Daily,label:"imxeventmanager.event.edit.panels.dates.date-series.daily"},{value:Ps.Weekly,label:"imxeventmanager.event.edit.panels.dates.date-series.weekly"},{value:Ps.Monthly,label:"imxeventmanager.event.edit.panels.dates.date-series.monthly"}],this.eventSeriesInterval=Ps,this.startDateFormControl=new s.p4(null,s.kI.required),this.endDateFormControl=new s.p4(null,s.kI.required)}ngOnInit(){this.registerRadioButtonChangeHandler(),this.startDateFormControl.setValue(this.startDate)}ngOnChanges(mn){mn.formGroup&&(this.formGroup.addControl("eventSeriesInterval",new s.p4(Ps.Daily)),this.formGroup.addControl("startDate",this.startDateFormControl),this.formGroup.addControl("endDate",this.endDateFormControl))}get selectedEventSeriesInterval(){const mn=this.formGroup.get("eventSeriesInterval");return mn?mn.value:void 0}get startDateErrors(){return this._getFormControlErrors(this.startDateFormControl)}get endDateErrors(){return this._getFormControlErrors(this.endDateFormControl)}_getFormControlErrors(mn){return mn.touched?mn.errors:null}registerRadioButtonChangeHandler(){this.formGroup.get("eventSeriesInterval")&&this.formGroup.get("eventSeriesInterval").valueChanges.subscribe(()=>{this.changeDetectorRef.detectChanges()})}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.Y36(Z.sBO))};static#t=this.\u0275cmp=Z.Xpm({type:dn,selectors:[["imx-event-series-form"]],inputs:{formGroup:"formGroup",startDate:"startDate"},features:[Z.TTD],decls:8,vars:7,consts:[[3,"formGroup"],["formControlName","eventSeriesInterval","label","Interval","mode","inline",3,"radioButtons"],[1,"date-container"],["formControlName","startDate","label","Beginn",3,"errors"],["formControlName","endDate","label","Ende",3,"errors"],[3,"ngSwitch"],[3,"formGroup",4,"ngSwitchCase"]],template:function(Nn,Ci){1&Nn&&(Z.TgZ(0,"div",0),Z._UZ(1,"imx-base-radio-button-group",1),Z.TgZ(2,"div",2),Z._UZ(3,"imx-base-date",3)(4,"imx-base-date",4),Z.qZA(),Z.ynx(5,5),Z.YNc(6,os,1,1,"imx-weekly-event-series",6)(7,ps,1,1,"imx-monthly-event-series",6),Z.BQk(),Z.qZA()),2&Nn&&(Z.Q6J("formGroup",Ci.formGroup),Z.xp6(),Z.Q6J("radioButtons",Ci.intervalRadioButtons),Z.xp6(2),Z.Q6J("errors",Ci.startDateErrors),Z.xp6(),Z.Q6J("errors",Ci.endDateErrors),Z.xp6(),Z.Q6J("ngSwitch",Ci.selectedEventSeriesInterval),Z.xp6(),Z.Q6J("ngSwitchCase",Ci.eventSeriesInterval.Weekly),Z.xp6(),Z.Q6J("ngSwitchCase",Ci.eventSeriesInterval.Monthly))},dependencies:[Ir.d,Da.q,e.RF,e.n9,s.JJ,s.JL,s.sg,s.u,Nr,mc],styles:[".date-container[_ngcontent-%COMP%]{display:flex;margin:10px 0}.date-container[_ngcontent-%COMP%] > imx-base-date[_ngcontent-%COMP%]:first-child{margin-right:10px}"]})}return dn})(),Ka=(()=>{class dn{constructor(mn){this.data=mn,this.eventSeriesFormGroup=new s.nJ({}),this.formGroup=new s.nJ({eventSeries:this.eventSeriesFormGroup}),this.isFormInvalid$=this.formGroup.statusChanges.pipe((0,dt.U)(Nn=>"INVALID"===Nn),(0,Vr.b)(0))}getFormResult(){return this.formGroup.value}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.Y36(u.WI))};static#t=this.\u0275cmp=Z.Xpm({type:dn,selectors:[["imx-add-date-series-dialog"]],decls:7,vars:10,consts:[["heading","imxeventmanager.event.edit.panels.date.header","icon","icon-calendar-31",3,"submitButtonDisabled","getSubmitResult"],[1,"dialog-form",3,"formGroup"],[1,"dialog-form-group"],[3,"formGroup","startDate"],[3,"formGroup","formHandler","startTimeMandatory"]],template:function(Nn,Ci){1&Nn&&(Z.TgZ(0,"imx-dialog",0),Z.ALo(1,"async"),Z.TgZ(2,"div",1)(3,"div",2),Z._UZ(4,"imx-event-series-form",3),Z.qZA(),Z.TgZ(5,"div",2),Z._UZ(6,"imx-dates-form-time-table",4),Z.qZA()()()),2&Nn&&(Z.Q6J("submitButtonDisabled",Z.lcZ(1,8,Ci.isFormInvalid$))("getSubmitResult",Ci.getFormResult.bind(Ci)),Z.xp6(2),Z.Q6J("formGroup",Ci.formGroup),Z.xp6(2),Z.Q6J("formGroup",Ci.eventSeriesFormGroup)("startDate",Ci.data.startDate),Z.xp6(2),Z.Q6J("formGroup",Ci.formGroup)("formHandler",Ci.data.formHandler)("startTimeMandatory",Ci.data.startTimeMandatory))},dependencies:[Oe.a,s.JL,s.sg,zr,Ba,e.Ov],encapsulation:2})}return dn})(),vc=(()=>{class dn{constructor(mn){this.data=mn,this.eventSeriesFormGroup=new s.nJ({}),this.formGroup=new s.nJ({eventSeries:this.eventSeriesFormGroup}),this.isFormInvalid$=this.formGroup.statusChanges.pipe((0,dt.U)(Nn=>"INVALID"===Nn),(0,Vr.b)(0))}getFormResult(){const mn=this.formGroup.value;return mn.times=[{startTime:"00:00"}],mn}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.Y36(u.WI))};static#t=this.\u0275cmp=Z.Xpm({type:dn,selectors:[["imx-remove-date-series-dialog"]],decls:5,vars:7,consts:[["heading","imxeventmanager.event.edit.panels.remove-date-series.header","icon","icon-trash",3,"submitButtonDisabled","getSubmitResult"],[1,"dialog-form",3,"formGroup"],[1,"dialog-form-group"],[3,"formGroup","startDate"]],template:function(Nn,Ci){1&Nn&&(Z.TgZ(0,"imx-dialog",0),Z.ALo(1,"async"),Z.TgZ(2,"div",1)(3,"div",2),Z._UZ(4,"imx-event-series-form",3),Z.qZA()()()),2&Nn&&(Z.Q6J("submitButtonDisabled",Z.lcZ(1,5,Ci.isFormInvalid$))("getSubmitResult",Ci.getFormResult.bind(Ci)),Z.xp6(2),Z.Q6J("formGroup",Ci.formGroup),Z.xp6(2),Z.Q6J("formGroup",Ci.eventSeriesFormGroup)("startDate",Ci.data.startDate))},dependencies:[Oe.a,s.JL,s.sg,Ba,e.Ov],encapsulation:2})}return dn})(),$s=(()=>{class dn{constructor(mn,Nn){this.dataAccessService=mn,this.formatterService=Nn}createDailyDateSeries$(mn){const Nn=this._buildDateSeriesParams(mn);return this._performRequest$("daily",Nn)}_buildDateSeriesParams({startDate:mn,endDate:Nn,times:Ci}){const Io=Ci.map(({duration:cr,...ra})=>({...ra,duration:this._transformDurationToNumberOfMinutes(cr)}));return{startDate:this._createDateString(mn),endDate:this._createDateString(Nn),startTimeDurations:JSON.stringify(Io)}}_transformDurationToNumberOfMinutes(mn){if(!mn)return;const Nn=mn.split(":");return 60*parseInt(Nn[0],10)+parseInt(Nn[1],10)}createWeeklyDateSeries$({startDate:mn,endDate:Nn,times:Ci,weekGap:Io,weekDays:cr}){const ra={...this._buildDateSeriesParams({startDate:mn,endDate:Nn,times:Ci}),gap:`${Io}`,weekDays:cr};return this._performRequest$("weekly",ra)}createMonthlyDateSeries$(mn){const{startDate:Nn,endDate:Ci,times:Io,monthlyEventSeriesDefinition:cr}=mn,ra=this._buildDateSeriesParams({startDate:Nn,endDate:Ci,times:Io});return cr===Zi.DayOfWeek?this._createMonthlyDateSeriesFromWeeklyDefinition(mn,ra):this._createMonthlyDateSeriesFromMonthlyDefinition(mn,ra)}_createMonthlyDateSeriesFromWeeklyDefinition(mn,Nn){const{weeklyDefinitionWeekDay:Ci,weeklyDefinitionGap:Io,weeklyDefinitionMonthGap:cr}=mn,ra={...Nn,specificDayOfWeek:"true",dayOfWeek:`${Ci}`,gap:`${Io}`,monthGap:`${cr}`};return this._performMonthlyDateSeriesRequest(ra)}_createMonthlyDateSeriesFromMonthlyDefinition(mn,Nn){const{monthlyDefinitionDayOfMonth:Ci,monthlyDefinitionMonthGap:Io}=mn,cr={...Nn,specificDayOfMonth:"true",dayOfMonth:`${Ci}`,monthGap:`${Io}`};return this._performMonthlyDateSeriesRequest(cr)}_performMonthlyDateSeriesRequest(mn){return this._performRequest$("monthly",mn)}_performRequest$(mn,Nn){return this.dataAccessService.get(`eventDate/generate/${mn}`,{params:Nn}).pipe((0,dt.U)(Ci=>Ci.compactEventDates.map(({duration:Io,...cr})=>({...cr,duration:Io?this._convertDurationInMinutesToTimeString(Io):void 0}))))}_convertDurationInMinutesToTimeString(mn){return(0,Le.createDurationTimeString)(mn)}_createDateString(mn){return this.formatterService.formatDate(mn,"YYYY-MM-dd")}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(R.fx),Z.LFG(Le.FormatterService))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac,providedIn:"root"})}return dn})();const js=["buttonDropdownContent"];function bc(dn,Mr){if(1&dn){const mn=Z.EpF();Z.TgZ(0,"button",3),Z.NdJ("click",function(){Z.CHM(mn);const Ci=Z.oxw();return Z.KtG(Ci.addDateSeries())}),Z._uU(1),Z.ALo(2,"translate"),Z.qZA()}2&dn&&(Z.xp6(),Z.Oqu(Z.lcZ(2,1,"imxeventmanager.event.edit.panels.dates.add-date-series")))}function ql(dn,Mr){if(1&dn){const mn=Z.EpF();Z.TgZ(0,"button",3),Z.NdJ("click",function(){Z.CHM(mn);const Ci=Z.oxw();return Z.KtG(Ci.removeDateSeries())}),Z._uU(1),Z.ALo(2,"translate"),Z.qZA()}2&dn&&(Z.xp6(),Z.Oqu(Z.lcZ(2,1,"imxeventmanager.event.edit.panels.dates.remove-date-series")))}function Gs(dn,Mr){if(1&dn){const mn=Z.EpF();Z.ynx(0),Z.TgZ(1,"button",3),Z.NdJ("click",function(){Z.CHM(mn);const Ci=Z.oxw(2);return Z.KtG(Ci.addDates())}),Z._uU(2),Z.ALo(3,"translate"),Z.qZA(),Z.BQk()}2&dn&&(Z.xp6(2),Z.Oqu(Z.lcZ(3,1,"imxeventmanager.event.edit.panels.dates.add-date")))}function Dl(dn,Mr){1&dn&&Z._UZ(0,"i",16)}function Yr(dn,Mr){1&dn&&Z._UZ(0,"i",17)}function _a(dn,Mr){if(1&dn){const mn=Z.EpF();Z.ynx(0),Z.TgZ(1,"button",13),Z.NdJ("click",function(){Z.CHM(mn);const Ci=Z.oxw(2);return Z.KtG(Ci.isAddMenuOpen=!Ci.isAddMenuOpen)}),Z.YNc(2,Dl,1,0,"i",14)(3,Yr,1,0,"i",15),Z.qZA(),Z.BQk()}if(2&dn){const mn=Z.oxw(2);Z.xp6(2),Z.Q6J("ngIf",!mn.isAddMenuOpen),Z.xp6(),Z.Q6J("ngIf",mn.isAddMenuOpen)}}function ts(dn,Mr){1&dn&&Z.GkF(0)}function rl(dn,Mr){if(1&dn){const mn=Z.EpF();Z.ynx(0),Z.TgZ(1,"button",18),Z.NdJ("click",function(){Z.CHM(mn);const Ci=Z.oxw(2);return Z.KtG(Ci.removeDates())}),Z._uU(2),Z.ALo(3,"translate"),Z.qZA(),Z.BQk()}2&dn&&(Z.xp6(2),Z.Oqu(Z.lcZ(3,1,"imxeventmanager.event.edit.panels.dates.remove-date")))}function ya(dn,Mr){1&dn&&Z._UZ(0,"i",16)}function Pl(dn,Mr){1&dn&&Z._UZ(0,"i",17)}function jl(dn,Mr){if(1&dn){const mn=Z.EpF();Z.ynx(0),Z.TgZ(1,"button",13),Z.NdJ("click",function(){Z.CHM(mn);const Ci=Z.oxw(2);return Z.KtG(Ci.isRemoveMenuOpen=!Ci.isRemoveMenuOpen)}),Z.YNc(2,ya,1,0,"i",14)(3,Pl,1,0,"i",15),Z.qZA(),Z.BQk()}if(2&dn){const mn=Z.oxw(2);Z.xp6(2),Z.Q6J("ngIf",!mn.isRemoveMenuOpen),Z.xp6(),Z.Q6J("ngIf",mn.isRemoveMenuOpen)}}function Ml(dn,Mr){1&dn&&Z.GkF(0)}function rc(dn,Mr){if(1&dn){const mn=Z.EpF();Z.TgZ(0,"button",19),Z.NdJ("click",function(){Z.CHM(mn);const Ci=Z.oxw(2);return Z.KtG(Ci.removeAllDates())}),Z._uU(1),Z.qZA()}if(2&dn){const mn=Z.oxw(2);Z.Q6J("disabled",0===mn.asFormArray(mn.formHandler.formGroup.get("eventDates")).length),Z.xp6(),Z.hij(" ","imxeventmanager.event.edit.panels.dates.remove-all-dates","")}}function Kr(dn,Mr){if(1&dn&&(Z.TgZ(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7),Z.YNc(4,Gs,4,3,"ng-container",8)(5,_a,4,2,"ng-container",9),Z.qZA(),Z.TgZ(6,"div",10),Z.YNc(7,ts,1,0,"ng-container",11),Z.qZA()(),Z.TgZ(8,"div",6)(9,"div",7),Z.YNc(10,rl,4,3,"ng-container",8)(11,jl,4,2,"ng-container",9),Z.qZA(),Z.TgZ(12,"div",10),Z.YNc(13,Ml,1,0,"ng-container",11),Z.qZA()()(),Z.YNc(14,rc,2,2,"button",12),Z.ALo(15,"async"),Z.qZA()),2&dn){const mn=Z.oxw(),Nn=Z.MAs(1),Ci=Z.MAs(3);Z.xp6(4),Z.Q6J("ngIf",null!==mn.datePickerValues&&mn.datePickerValues.length>0)("ngIfElse",Nn),Z.xp6(),Z.Q6J("ngIf",null!==mn.datePickerValues&&mn.datePickerValues.length>0),Z.xp6(),Z.Q6J("hidden",!mn.isAddMenuOpen),Z.xp6(),Z.Q6J("ngTemplateOutlet",Nn),Z.xp6(3),Z.Q6J("ngIf",mn.enableRemoveDateButton())("ngIfElse",Ci),Z.xp6(),Z.Q6J("ngIf",mn.enableRemoveDateButton()),Z.xp6(),Z.Q6J("hidden",!mn.isRemoveMenuOpen),Z.xp6(),Z.Q6J("ngTemplateOutlet",Ci),Z.xp6(),Z.Q6J("ngIf",Z.lcZ(15,11,mn.formHandler.hasEditAndSavePermission("eventDates")))}}let la=(()=>{class dn{constructor(mn,Nn,Ci,Io,cr,ra,$a,xe){this.entitiesMgr=mn,this.dialog=Nn,this.dialogService=Ci,this.datesFormPanelService=Io,this.userMessageService=cr,this.changeDetectorRef=ra,this.localeSettings=$a,this.configurationProvider=xe,this.datePickerValues=null,this.datesAdded=new Z.vpe,this.datesRemoved=new Z.vpe,this.isAddMenuOpen=!1,this.isRemoveMenuOpen=!1}ngOnInit(){this.startTimeMandatoryFromDialog=this.configurationProvider.getBooleanFromSnapshot(yr.c.IMXEVENTMANAGER_EVENTDATE_STARTTIME_MANDATORY_DIALOG,!1)}ngOnChanges(mn){mn.datePickerValues&&(null==mn.datePickerValues.currentValue||0===mn.datePickerValues.currentValue.length)&&(this.isAddMenuOpen=!1,this.isRemoveMenuOpen=!1)}asFormArray(mn){return mn}removeAllDates(){const mn=this.formHandler.formGroup.get("eventDates").value.length;this.formHandler.formGroup.get("eventDates").clear(),this.datesRemoved.emit(mn),this.formHandler.formGroup.get("eventDates").markAsDirty()}addDates(){this.isAddMenuOpen=!1,this.openAddDateDialog()}addDateSeries(){this.isAddMenuOpen=!1,this.openAddDateSeriesDialog()}removeDates(){if(this.isRemoveMenuOpen=!1,this.datePickerValues){let mn=0;this.datePickerValues.forEach(Nn=>{let Ci=this.findEventDatesRowByDate(Nn);for(;Ci>-1;)mn++,this.formHandler.removeLineFromCollection("eventDates",Ci),Ci=this.findEventDatesRowByDate(Nn)}),this.datesRemoved.emit(mn)}}removeDateSeries(){this.isRemoveMenuOpen=!1,this._openDialog(vc,{formHandler:this.formHandler,startDate:this.datePickerValues&&this.datePickerValues.length>0?this.datePickerValues[0]:void 0,startTimeMandatory:this.startTimeMandatory,alternatesDateModel:this.alternatesDateModel},mn=>this._handleRemoveDateSeriesConfirmation(mn))}openAddDateSeriesDialog(){this._openDialog(Ka,{formHandler:this.formHandler,startDate:this.datePickerValues&&this.datePickerValues.length>0?this.datePickerValues[0]:void 0,startTimeMandatory:this.startTimeMandatory||this.startTimeMandatoryFromDialog},mn=>this._handleAddDateSeriesConfirmation(mn))}openAddDateDialog(){this._openDialog(lr,{selectedDates:this.datePickerValues,formHandler:this.formHandler,startTimeMandatory:this.startTimeMandatory||this.startTimeMandatoryFromDialog},mn=>this._handleAddDateDialogConfirmation(mn))}_handleAddDateSeriesConfirmation(mn){this._createDateSeries(mn).pipe((0,$o.q)(1)).subscribe(Ci=>{this.addEventDatesToTable(Ci)},Ci=>{this.userMessageService.showError("imxeventmanager.event.edit.panels.dates.event-date-series-generation-failed")})}_handleRemoveDateSeriesConfirmation(mn){this._createDateSeries(mn),this._createDateSeries(mn).pipe((0,$o.q)(1)).subscribe(Ci=>{let Io=0;Ci.forEach(cr=>{let ra=this.findEventDatesRowByDate(new Date(cr.date));for(;ra>-1;)Io++,this.formHandler.removeLineFromCollection("eventDates",ra),ra=this.findEventDatesRowByDate(new Date(cr.date))}),this.datesRemoved.emit(Io)})}_createDateSeries({eventSeries:mn,times:Nn}){const{eventSeriesInterval:Ci,startDate:Io,endDate:cr,weekly:ra,monthly:$a}=mn;let xe;const h={startDate:Io,endDate:cr,times:Nn};switch(Ci){case Ps.Daily:xe=this.datesFormPanelService.createDailyDateSeries$(h);break;case Ps.Weekly:{const k={...h,...ra};xe=this.datesFormPanelService.createWeeklyDateSeries$(k);break}case Ps.Monthly:{const k={...h,...$a};xe=this.datesFormPanelService.createMonthlyDateSeries$(k);break}}return xe}_handleAddDateDialogConfirmation({times:mn}){const Ci=this._createEventDates(this.datePickerValues,mn);this.addEventDatesToTable(Ci)}_createEventDates(mn,Nn){const Ci=[];return mn.forEach(Io=>{Nn.forEach(({startTime:cr,duration:ra,bookingLink:$a})=>{Ci.push({id:null,date:Io,startTime:cr,duration:ra||"",bookingLink:$a})})}),Ci}_createDateIsoString(mn){return(0,R.w5)(mn)}addEventDatesToTable(mn){const Nn=this._removeAlreadyExistingEventDates(mn);Nn.forEach(Io=>{Io.date=new Date(Io.date),this.formHandler.addNewCollectionRow("eventDates").patchValue(Io)}),this.datesAdded.emit(Nn.length),this.formHandler.formGroup.get("eventDateType.type").value||this.formHandler.formGroup.get("eventDateType.type").setValue(5),this.changeDetectorRef.markForCheck()}_removeAlreadyExistingEventDates(mn){const Nn=this._alreadyPresentEventDates();return mn.reduce((Ci,Io)=>{const{date:cr,startTime:ra}=Io,$a=this._addSecondsToTimeString(ra);return Do(Nn,{date:cr,startTime:$a})||Ci.push(Io),Ci},[])}_addSecondsToTimeString(mn){return mn?3===mn.split(":").length?mn:`${mn}:00`:""}_alreadyPresentEventDates(){return this._eventDateFormControls.map(Nn=>{const{date:Ci,startTime:Io}=Nn.controls;return{date:this._createDateIsoString(Ci.value),startTime:Io.value}})}get _eventDateFormControls(){return this.formHandler.formGroup.get("eventDates").controls}_openDialog(mn,Nn={},Ci){this.dialogService.openDialog(mn,Nn,{minWidth:650},Ci)}enableRemoveDateButton(){return!!this.datePickerValues&&this.datePickerValues.some(mn=>this.findEventDatesRowByDate(mn)>-1)}findEventDatesRowByDate(mn){return this.formHandler.formGroup.get("eventDates").value.map(Nn=>new Date(Nn.date)).findIndex(Nn=>mn.getFullYear()===Nn.getFullYear()&&mn.getMonth()===Nn.getMonth()&&mn.getDate()===Nn.getDate())}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.Y36(Le.ImxEntitiesMgrService),Z.Y36(u.uw),Z.Y36(Le.DialogService),Z.Y36($s),Z.Y36(Le.UserMessageService),Z.Y36(Z.sBO),Z.Y36(Le.PRIMENG_CALENDAR_LOCALE),Z.Y36(Le.ConfigurationProvider))};static#t=this.\u0275cmp=Z.Xpm({type:dn,selectors:[["imx-alternate-dates-buttons"]],viewQuery:function(Nn,Ci){if(1&Nn&&Z.Gf(js,7,Z.SBq),2&Nn){let Io;Z.iGM(Io=Z.CRH())&&(Ci.buttonDropdownContent=Io.first)}},inputs:{formHandler:"formHandler",startTimeMandatory:"startTimeMandatory",alternatesDateModel:"alternatesDateModel",datePickerValues:"datePickerValues"},outputs:{datesAdded:"datesAdded",datesRemoved:"datesRemoved"},features:[Z.TTD],decls:6,vars:3,consts:[["addSeries",""],["removeSeries",""],["class","button-bar",4,"ngIf"],[1,"imx-button","prio2",3,"click"],[1,"button-bar"],[1,"dropdowns"],[1,"dropdown-button-bar"],[1,"button-dropdown-wrapper"],[4,"ngIf","ngIfElse"],[4,"ngIf"],[1,"button-dropdown-content",3,"hidden"],[4,"ngTemplateOutlet"],["class","imx-button prio2","translate","",3,"disabled","click",4,"ngIf"],[1,"imx-button","prio2","dropdown",3,"click"],["class","icon icon-chevron-downBold",4,"ngIf"],["class","icon icon-chevron-upBold",4,"ngIf"],[1,"icon","icon-chevron-downBold"],[1,"icon","icon-chevron-upBold"],[1,"imx-button","prio2","upper",3,"click"],["translate","",1,"imx-button","prio2",3,"disabled","click"]],template:function(Nn,Ci){1&Nn&&(Z.YNc(0,bc,3,3,"ng-template",null,0,Z.W1O)(2,ql,3,3,"ng-template",null,1,Z.W1O)(4,Kr,16,13,"div",2),Z.ALo(5,"async")),2&Nn&&(Z.xp6(4),Z.Q6J("ngIf",Z.lcZ(5,1,Ci.formHandler.hasEditAndSavePermission("eventDates"))))},dependencies:[e.O5,e.tP,et.Pi,e.Ov,et.X$],styles:[".button-bar[_ngcontent-%COMP%]{margin-top:10px;padding-bottom:20px;display:flex;justify-content:space-between;align-items:flex-start}.button-bar[_ngcontent-%COMP%]   .dropdowns[_ngcontent-%COMP%]{display:flex}.dropdown-button-bar[_ngcontent-%COMP%]{position:relative;margin-right:10px}.dropdown-button-bar[_ngcontent-%COMP%]   .button-dropdown-wrapper[_ngcontent-%COMP%]{white-space:nowrap;display:inline-block;flex-grow:1}.dropdown-button-bar[_ngcontent-%COMP%]   .button-dropdown-wrapper[_ngcontent-%COMP%] > .imx-button[_ngcontent-%COMP%]{box-shadow:none}.dropdown-button-bar[_ngcontent-%COMP%]   .button-dropdown-wrapper[_ngcontent-%COMP%] > .imx-button.upper[_ngcontent-%COMP%]{width:calc(100% - 35px)}.dropdown-button-bar[_ngcontent-%COMP%]   .button-dropdown-wrapper[_ngcontent-%COMP%] > .imx-button.dropdown[_ngcontent-%COMP%]{border-left:1px solid rgba(230,233,239,.5)}.dropdown-button-bar[_ngcontent-%COMP%]   .button-dropdown-content[_ngcontent-%COMP%]{position:absolute;width:100%;z-index:1;top:35px}.dropdown-button-bar[_ngcontent-%COMP%]   .button-dropdown-content[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{box-shadow:1px 1px 4px #0003;width:100%}"]})}return dn})();var ks=a(79308),Ta=a(2901),ds=a(6690);let bs=(()=>{class dn{constructor(){this.startTimeIsMandatory=!1}ngOnInit(){setTimeout(()=>{const mn=this.formHandler.formGroup.get("eventDates");if(0===mn.length)this.formHandler.addNewCollectionRow("eventDates",!0),this.formHandler.formGroup.updateValueAndValidity();else for(let Nn=mn.length;Nn>1;Nn--)mn.removeAt(Nn)},1e3)}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)};static#t=this.\u0275cmp=Z.Xpm({type:dn,selectors:[["imx-edit-one-time-definition"]],inputs:{formHandler:"formHandler",startTimeIsMandatory:"startTimeIsMandatory"},decls:2,vars:5,consts:[[3,"label"],[3,"formHandler","hideRemoveColumn","collectionName","startTimeIsMandatory"]],template:function(Nn,Ci){1&Nn&&Z._UZ(0,"imx-base-input-label",0)(1,"imx-event-dates-table",1),2&Nn&&(Z.Q6J("label","imxeventmanager.event.edit.panels.dates.definition-one-time"),Z.xp6(),Z.Q6J("formHandler",Ci.formHandler)("hideRemoveColumn",!0)("collectionName","eventDates")("startTimeIsMandatory",Ci.startTimeIsMandatory))},dependencies:[Ta.u,ds.h],styles:["[_nghost-%COMP%]{width:100%}"]})}return dn})();var sl=a(19352);function Ec(dn,Mr){1&dn&&(Z.TgZ(0,"p",7),Z._uU(1,"imxplatform.common.no-records"),Z.qZA())}function gr(dn,Mr){1&dn&&Z._UZ(0,"tr",21)}function Js(dn,Mr){1&dn&&Z._UZ(0,"tr",22)}function Ms(dn,Mr){if(1&dn&&(Z.TgZ(0,"th",23),Z._uU(1),Z.ALo(2,"translate"),Z.qZA()),2&dn){const mn=Z.oxw(2);Z.xp6(),Z.AsE("",Z.lcZ(2,2,mn.formHandler.getFormFieldLabel("eventDateType.startTimeDurations:startTime"))," ",mn.startTimeIsMandatory?"*":"","")}}function Bs(dn,Mr){1&dn&&Z.GkF(0)}const yl=dn=>({$implicit:"startTime",element:dn});function Fr(dn,Mr){if(1&dn&&(Z.TgZ(0,"td",24),Z.YNc(1,Bs,1,0,"ng-container",25),Z.qZA()),2&dn){const mn=Mr.$implicit;Z.oxw(2);const Nn=Z.MAs(12);Z.Q6J("formGroup",mn),Z.xp6(),Z.Q6J("ngTemplateOutlet",Nn)("ngTemplateOutletContext",Z.VKq(3,yl,mn))}}function nl(dn,Mr){if(1&dn&&(Z.TgZ(0,"th",23),Z._uU(1),Z.ALo(2,"translate"),Z.qZA()),2&dn){const mn=Z.oxw(2);Z.xp6(),Z.AsE("",Z.lcZ(2,2,mn.formHandler.getFormFieldLabel("eventDateType.startTimeDurations:endTime"))," ",mn.startTimeIsMandatory?"*":"","")}}function hl(dn,Mr){1&dn&&Z.GkF(0)}const Cc=dn=>({$implicit:"endTime",element:dn});function Zt(dn,Mr){if(1&dn&&(Z.TgZ(0,"td",24),Z.YNc(1,hl,1,0,"ng-container",25),Z.qZA()),2&dn){const mn=Mr.$implicit;Z.oxw(2);const Nn=Z.MAs(12);Z.Q6J("formGroup",mn),Z.xp6(),Z.Q6J("ngTemplateOutlet",Nn)("ngTemplateOutletContext",Z.VKq(3,Cc,mn))}}function ri(dn,Mr){if(1&dn&&(Z.TgZ(0,"th",26),Z._uU(1),Z.qZA()),2&dn){const mn=Z.oxw(2);Z.xp6(),Z.Oqu(mn.formHandler.getFormFieldLabel("eventDateType.startTimeDurations:duration"))}}function Mn(dn,Mr){1&dn&&Z.GkF(0)}const mi=dn=>({$implicit:"duration",element:dn});function Mo(dn,Mr){if(1&dn&&(Z.TgZ(0,"td",27),Z.YNc(1,Mn,1,0,"ng-container",25),Z.qZA()),2&dn){const mn=Mr.$implicit;Z.oxw(2);const Nn=Z.MAs(12);Z.Q6J("formGroup",mn),Z.xp6(),Z.Q6J("ngTemplateOutlet",Nn)("ngTemplateOutletContext",Z.VKq(3,mi,mn))}}function pr(dn,Mr){1&dn&&Z._UZ(0,"th",28)}function Pr(dn,Mr){if(1&dn){const mn=Z.EpF();Z.TgZ(0,"a",31),Z.NdJ("click",function(){Z.CHM(mn);const Ci=Z.oxw().$implicit,Io=Z.oxw(2);return Z.KtG(Io.removeStartTimeDurations(Io.dataSource.filteredData.indexOf(Ci)))}),Z.qZA()}}function xa(dn,Mr){if(1&dn&&(Z.TgZ(0,"td",29),Z.YNc(1,Pr,1,0,"a",30),Z.qZA()),2&dn){const mn=Mr.$implicit,Nn=Z.oxw(2);Z.Q6J("formGroup",mn),Z.xp6(),Z.Q6J("ngIf",Nn.formHandler.hasEditPermission("eventDateType"))}}function tl(dn,Mr){if(1&dn&&(Z.TgZ(0,"table",8),Z.YNc(1,gr,1,0,"tr",9)(2,Js,1,0,"tr",10),Z.ynx(3,11),Z.YNc(4,Ms,3,4,"th",12)(5,Fr,2,5,"td",13),Z.BQk(),Z.ynx(6,14),Z.YNc(7,nl,3,4,"th",12)(8,Zt,2,5,"td",13),Z.BQk(),Z.ynx(9,15),Z.YNc(10,ri,2,1,"th",16)(11,Mo,2,5,"td",17),Z.BQk(),Z.ynx(12,18),Z.YNc(13,pr,1,0,"th",19)(14,xa,2,2,"td",20),Z.BQk(),Z.qZA()),2&dn){const mn=Z.oxw();Z.Q6J("dataSource",mn.dataSource),Z.xp6(),Z.Q6J("matHeaderRowDef",mn.displayedColumns),Z.xp6(),Z.Q6J("matRowDefColumns",mn.displayedColumns)}}function Ls(dn,Mr){if(1&dn&&Z._UZ(0,"imx-form-control",1),2&dn){const mn=Mr.$implicit,Nn=Mr.element,Ci=Z.oxw();Z.Q6J("field",Ci.formHandler.formConfiguration.findFormFieldById("eventDateType.startTimeDurations:"+mn))("control",Nn.controls[mn])("form",Ci.formHandler.formGroup.get("eventDateType.startTimeDurations"))("formHandler",Ci.formHandler)("config",Ci.formHandler.formConfiguration)}}let Ts=(()=>{class dn{constructor(){this.startTimeIsMandatory=!1,this.destroy$=new Et.xQ,this.destroyRow$=new Et.xQ}ngOnInit(){if(this.displayedColumns=["startTime","duration","removeColumn"],this.formHandler.showEndTimeInDatesTable()&&(this.displayedColumns.splice(1,0,"endTime"),this.formHandler.formGroup.get("eventDateType.startTimeDurations").valueChanges.pipe((0,sl.R)(this.destroy$),(0,Vr.b)(100)).subscribe(Io=>{this.determineRowListeners()}),this.formHandler.formGroup.get("eventDateType.startTimeDurations").controls.forEach(Io=>{this.formHandler.calculateEndTime(Io,Io.get("duration").value)})),(!this.formHandler.formGroup.get("eventDateType.startTimeDurations").value||0===this.formHandler.formGroup.get("eventDateType.startTimeDurations").value.length)&&this.formHandler.formGroup.get("eventDateType.startTime").value){const Ci=this.formHandler.addNewCollectionRow("eventDateType.startTimeDurations");Ci.get("startTime").valueChanges.subscribe(Io=>this.startTimeValueChangeHandler(Ci,Io)),Ci.get("startTime").setValue(this.formHandler.formGroup.get("eventDateType.startTime").value,{emitEvent:!1}),Ci.get("duration").setValue((0,Le.createDurationTimeString)(this.formHandler.formGroup.get("eventDateType.duration").value),{emitEvent:!1}),Ci.markAsPristine({onlySelf:!1})}this.dataSource=(0,Le.prepareTable)(this.formHandler.formGroup.get("eventDateType.startTimeDurations"),Ci=>this.dataSource=Ci,this.destroy$);const Nn=this.formHandler.formConfiguration.findFormFieldById("eventDateType.startTimeDurations:startTime");Nn&&Nn instanceof Le.AbstractField&&(this.startTimeIsMandatory=Nn.required)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}removeStartTimeDurations(mn){this.formHandler.removeLineFromCollection("eventDateType.startTimeDurations",mn)}addStartTimeDurations(){const mn=this.formHandler.addNewCollectionRow("eventDateType.startTimeDurations");mn.get("startTime").valueChanges.subscribe(Nn=>this.startTimeValueChangeHandler(mn,Nn)),mn.markAsPristine({onlySelf:!0})}startTimeValueChangeHandler(mn,Nn){null!==Nn&&""!==Nn?(mn.get("duration").setValidators([s.kI.required]),(null===mn.get("duration").value||""===mn.get("duration").value)&&mn.get("duration").setValue("")):(mn.get("duration").clearValidators(),mn.get("duration").setValue(mn.get("duration").value))}determineRowListeners(){const mn=this.formHandler.formGroup.get("eventDateType.startTimeDurations");(!this.currentRowListeners||this.currentRowListeners!==mn.controls.length)&&(this.destroyRow$.next(),mn.controls.forEach(Nn=>{this.formHandler.calculateEndTime(Nn,Nn.get("duration").value),Nn.get("startTime").valueChanges.pipe((0,sl.R)(this.destroyRow$),(0,Vr.b)(500)).subscribe(Ci=>{this.formHandler.calculateDuration(Nn,Nn.get("endTime").value)}),Nn.get("endTime").valueChanges.pipe((0,sl.R)(this.destroyRow$),(0,Vr.b)(500)).subscribe(Ci=>{this.formHandler.calculateDuration(Nn,Ci)}),Nn.get("duration").valueChanges.pipe((0,sl.R)(this.destroyRow$),(0,Vr.b)(500)).subscribe(Ci=>{this.formHandler.calculateEndTime(Nn,Ci)})}),this.currentRowListeners=mn.controls.length)}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)};static#t=this.\u0275cmp=Z.Xpm({type:dn,selectors:[["imx-event-dates-start-times"]],hostAttrs:[1,"start-times"],inputs:{formHandler:"formHandler",startTimeIsMandatory:"startTimeIsMandatory"},decls:13,vars:18,consts:[[1,"form__content-field-row"],[3,"field","control","form","formHandler","config"],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[1,"imx-button","prio2",3,"disabled","click"],["imxControl",""],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","startTime"],["mat-header-cell","","class","date",4,"matHeaderCellDef"],["mat-cell","","class","date",3,"formGroup",4,"matCellDef"],["matColumnDef","endTime"],["matColumnDef","duration"],["mat-header-cell","","class","date","translate","",4,"matHeaderCellDef"],["mat-cell","","class","duration",3,"formGroup",4,"matCellDef"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","",1,"date"],["mat-cell","",1,"date",3,"formGroup"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["mat-header-cell","","translate","",1,"date"],["mat-cell","",1,"duration",3,"formGroup"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],["class","icon icon-trash imx-icon-middle imx-icon-clickable",3,"click",4,"ngIf"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"]],template:function(Nn,Ci){if(1&Nn&&(Z.TgZ(0,"div",0),Z._UZ(1,"imx-form-control",1)(2,"imx-form-control",1),Z.qZA(),Z.YNc(3,Ec,2,0,"ng-template",null,2,Z.W1O),Z.TgZ(5,"div",3),Z.YNc(6,tl,15,3,"table",4),Z.qZA(),Z.TgZ(7,"button",5),Z.NdJ("click",function(){return Ci.addStartTimeDurations()}),Z.ALo(8,"async"),Z._uU(9),Z.ALo(10,"translate"),Z.qZA(),Z.YNc(11,Ls,1,5,"ng-template",null,6,Z.W1O)),2&Nn){const Io=Z.MAs(4);Z.xp6(),Z.Q6J("field",Ci.formHandler.formConfiguration.findFormFieldById("eventDateType.startDate"))("control",Ci.formHandler.formGroup.get("eventDateType.startDate"))("form",Ci.formHandler.formGroup)("formHandler",Ci.formHandler)("config",Ci.formHandler.formConfiguration),Z.xp6(),Z.Q6J("field",Ci.formHandler.formConfiguration.findFormFieldById("eventDateType.endDate"))("control",Ci.formHandler.formGroup.get("eventDateType.endDate"))("form",Ci.formHandler.formGroup)("formHandler",Ci.formHandler)("config",Ci.formHandler.formConfiguration),Z.xp6(4),Z.Q6J("ngIf",Ci.dataSource&&Ci.dataSource.data.length>0)("ngIfElse",Io),Z.xp6(),Z.Q6J("disabled",!Z.lcZ(8,14,Ci.formHandler.hasSavePermission())),Z.xp6(2),Z.hij(" ",Z.lcZ(10,16,"imxeventmanager.event.edit.panels.dates.add-start-time-duration"),"\n")}},dependencies:[tn.A,dl.F,e.O5,e.tP,s.JL,ue.BZ,ue.fO,ue.as,ue.w1,ue.Dz,ue.nj,ue.ge,ue.ev,ue.XQ,ue.Gk,s.sg,et.Pi,e.Ov,et.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.imx-button[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return dn})(),_s=(()=>{class dn{constructor(){this.startTimeIsMandatory=!1}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)};static#t=this.\u0275cmp=Z.Xpm({type:dn,selectors:[["imx-edit-daily-definition"]],inputs:{formHandler:"formHandler",startTimeIsMandatory:"startTimeIsMandatory"},decls:13,vars:12,consts:[[3,"label"],[1,"form__content-row"],[1,"form__content-group"],[3,"formHandler","startTimeIsMandatory"],[1,"form__content-field-row"],[1,"small",3,"formControl"],[3,"value"]],template:function(Nn,Ci){1&Nn&&(Z._UZ(0,"imx-base-input-label",0),Z.TgZ(1,"div",1)(2,"div",2),Z._UZ(3,"imx-event-dates-start-times",3),Z.qZA(),Z.TgZ(4,"div",2)(5,"div",4)(6,"mat-radio-group",5)(7,"mat-radio-button",6),Z._uU(8),Z.ALo(9,"translate"),Z.qZA(),Z.TgZ(10,"mat-radio-button",6),Z._uU(11),Z.ALo(12,"translate"),Z.qZA()()()()()),2&Nn&&(Z.Q6J("label","imxeventmanager.event.edit.panels.dates.definition-daily"),Z.xp6(3),Z.Q6J("formHandler",Ci.formHandler)("startTimeIsMandatory",Ci.startTimeIsMandatory),Z.xp6(3),Z.Q6J("formControl",Ci.formHandler.formGroup.get("eventDateType.weekdaysOnly")),Z.xp6(),Z.Q6J("value",!1),Z.xp6(),Z.hij(" ",Z.lcZ(9,8,"entity.EventDateTypeDaily.everyDay")," "),Z.xp6(2),Z.Q6J("value",!0),Z.xp6(),Z.hij(" ",Z.lcZ(12,10,"entity.EventDateTypeDaily.weekdaysOnly")," "))},dependencies:[Ta.u,s.JJ,J.VQ,J.U0,s.oH,Ts,et.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.mat-mdc-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]})}return dn})(),ul=(()=>{class dn{constructor(){this.startTimeIsMandatory=!1,this.selectedType="specificDayOfMonth",this.destroy$=new Et.xQ}ngOnInit(){this.formHandler.formGroup.addControl("monthGap1",new s.p4),this.formHandler.formGroup.addControl("monthGap2",new s.p4);const mn=this.formHandler.formGroup.get("eventDateType.specificDayOfWeek").value;this.initMonthGapValue(mn),this.setSelectionInGui(mn),this.handleMonthGapChanges()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}handleMonthGapChanges(){this.formHandler.formGroup.get("monthGap1").valueChanges.pipe((0,sl.R)(this.destroy$)).subscribe(mn=>{this.updateMonthGap(mn)}),this.formHandler.formGroup.get("monthGap2").valueChanges.pipe((0,sl.R)(this.destroy$)).subscribe(mn=>{mn&&this.updateMonthGap(mn)})}updateMonthGap(mn){null!==mn&&(this.formHandler.formGroup.get("eventDateType.monthGap").setValue(mn),this.formHandler.formGroup.get("eventDateType.monthGap").markAsDirty())}changeStyleSelection(mn){mn.value&&"specificDayOfWeek"===mn.value?(this.formHandler.formGroup.get("eventDateType.specificDayOfWeek").setValue(!0),this.formHandler.formGroup.get("eventDateType.specificDayOfMonth").setValue(!1),this.setSelectionInGui(!0)):mn.value&&"specificDayOfMonth"===mn.value&&(this.formHandler.formGroup.get("eventDateType.specificDayOfMonth").setValue(!0),this.formHandler.formGroup.get("eventDateType.specificDayOfWeek").setValue(!1),this.setSelectionInGui(!1))}setSelectionInGui(mn){this.selectedType=mn?"specificDayOfWeek":"specificDayOfMonth",this.disableElementsBasedOnChange(mn)}initMonthGapValue(mn){const Nn=this.formHandler.formGroup.get("eventDateType.monthGap").value;mn?this.formHandler.formGroup.get("monthGap2").setValue(Nn,{emitEvent:!0}):this.formHandler.formGroup.get("monthGap1").setValue(Nn,{emitEvent:!0})}disableElementsBasedOnChange(mn){mn?(this.formHandler.formGroup.get("eventDateType.dayOfMonth").disable({emitEvent:!1}),this.formHandler.formGroup.get("monthGap1").disable({emitEvent:!0}),this.formHandler.formGroup.get("monthGap1").setValue(null,{emitEvent:!0}),this.formHandler.formGroup.get("eventDateType.dayOfMonth").setValue(void 0),this.formHandler.formGroup.get("eventDateType.dayOfWeek").enable({emitEvent:!1}),this.formHandler.formGroup.get("eventDateType.gap-select").enable({emitEvent:!1}),this.formHandler.formGroup.get("monthGap2").enable({emitEvent:!0}),(!this.formHandler.formGroup.get("eventDateType.dayOfWeek").value||-1===this.formHandler.formGroup.get("eventDateType.dayOfWeek").value)&&this.formHandler.formGroup.get("eventDateType.dayOfWeek").setValue(1),(!this.formHandler.formGroup.get("eventDateType.gap-select").value||-1===this.formHandler.formGroup.get("eventDateType.gap-select").value)&&this.formHandler.formGroup.get("eventDateType.gap-select").setValue(1),this.formHandler.formGroup.get("monthGap2").value||this.formHandler.formGroup.get("monthGap2").setValue(1,{emitEvent:!0}),this.specificDayOfWeek=!1):(this.formHandler.formGroup.get("eventDateType.dayOfWeek").disable({emitEvent:!1}),this.formHandler.formGroup.get("eventDateType.gap-select").disable({emitEvent:!1}),this.formHandler.formGroup.get("monthGap2").disable({emitEvent:!0}),this.formHandler.formGroup.get("eventDateType.dayOfWeek").setValue(-1),this.formHandler.formGroup.get("eventDateType.gap-select").setValue(-1),this.formHandler.formGroup.get("monthGap2").setValue(null,{emitEvent:!0}),this.formHandler.formGroup.get("eventDateType.dayOfMonth").enable({emitEvent:!1}),this.formHandler.formGroup.get("monthGap1").enable({emitEvent:!1}),this.formHandler.formGroup.get("eventDateType.dayOfMonth").value||this.formHandler.formGroup.get("eventDateType.dayOfMonth").setValue(1),this.formHandler.formGroup.get("monthGap1").value||this.formHandler.formGroup.get("monthGap1").setValue(1,{emitEvent:!0}),this.specificDayOfWeek=!0)}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)};static#t=this.\u0275cmp=Z.Xpm({type:dn,selectors:[["imx-edit-monthly-definition"]],inputs:{formHandler:"formHandler",startTimeIsMandatory:"startTimeIsMandatory"},decls:38,vars:23,consts:[[3,"label"],[1,"form__content-row"],[1,"form__content-group"],[3,"formHandler","startTimeIsMandatory"],[3,"ngModel","change","ngModelChange"],[1,"edit-monthly-definition-row"],["value","specificDayOfMonth"],[1,"edit-monthly-definition-span"],[1,"edit-monthly-definition-gap",3,"field","control","form","formHandler","config"],[3,"formGroup"],["formControlName","monthGap1","type","text",1,"edit-monthly-definition-gap",3,"disableControl"],["value","specificDayOfWeek"],[1,"edit-monthly-definition-select-gap",3,"field","control","form","formHandler","config"],[1,"edit-monthly-definition-select",3,"field","control","form","formHandler","config"],["formControlName","monthGap2","type","text",1,"edit-monthly-definition-gap",3,"disableControl"]],template:function(Nn,Ci){1&Nn&&(Z._UZ(0,"imx-base-input-label",0),Z.TgZ(1,"div",1)(2,"div",2),Z._UZ(3,"imx-event-dates-start-times",3),Z.qZA(),Z.TgZ(4,"div",2)(5,"mat-radio-group",4),Z.NdJ("change",function(cr){return Ci.changeStyleSelection(cr)})("ngModelChange",function(cr){return Ci.selectedType=cr}),Z.TgZ(6,"div",5),Z._UZ(7,"mat-radio-button",6),Z.TgZ(8,"div")(9,"span",7),Z._uU(10,"Am"),Z.qZA()(),Z._UZ(11,"imx-form-control",8),Z.TgZ(12,"div")(13,"span",7),Z._uU(14,". jeden"),Z.qZA()(),Z.TgZ(15,"div",9),Z._UZ(16,"imx-base-input",10),Z.qZA(),Z.TgZ(17,"div")(18,"span",7),Z._uU(19,"Monats"),Z.qZA()()(),Z.TgZ(20,"div",5),Z._UZ(21,"mat-radio-button",11),Z.TgZ(22,"div")(23,"span",7),Z._uU(24,"Am"),Z.qZA()(),Z._UZ(25,"imx-form-control",12),Z.TgZ(26,"div")(27,"span",7),Z._uU(28,"."),Z.qZA()(),Z._UZ(29,"imx-form-control",13),Z.TgZ(30,"div")(31,"span",7),Z._uU(32,"jeden"),Z.qZA()(),Z.TgZ(33,"div",9),Z._UZ(34,"imx-base-input",14),Z.qZA(),Z.TgZ(35,"div")(36,"span",7),Z._uU(37,"Monats"),Z.qZA()()()()()()),2&Nn&&(Z.Q6J("label","imxeventmanager.event.edit.panels.dates.definition-monthly"),Z.xp6(3),Z.Q6J("formHandler",Ci.formHandler)("startTimeIsMandatory",Ci.startTimeIsMandatory),Z.xp6(2),Z.Q6J("ngModel",Ci.selectedType),Z.xp6(6),Z.Q6J("field",Ci.formHandler.formConfiguration.findFormFieldById("eventDateType.dayOfMonth"))("control",Ci.formHandler.formGroup.get("eventDateType.dayOfMonth"))("form",Ci.formHandler.formGroup)("formHandler",Ci.formHandler)("config",Ci.formHandler.formConfiguration),Z.xp6(4),Z.Q6J("formGroup",Ci.formHandler.formGroup),Z.xp6(),Z.Q6J("disableControl",!Ci.specificDayOfWeek),Z.xp6(9),Z.Q6J("field",Ci.formHandler.formConfiguration.findFormFieldById("eventDateType.gap-select"))("control",Ci.formHandler.formGroup.get("eventDateType.gap-select"))("form",Ci.formHandler.formGroup)("formHandler",Ci.formHandler)("config",Ci.formHandler.formConfiguration),Z.xp6(4),Z.Q6J("field",Ci.formHandler.formConfiguration.findFormFieldById("eventDateType.dayOfWeek"))("control",Ci.formHandler.formGroup.get("eventDateType.dayOfWeek"))("form",Ci.formHandler.formGroup)("formHandler",Ci.formHandler)("config",Ci.formHandler.formConfiguration),Z.xp6(4),Z.Q6J("formGroup",Ci.formHandler.formGroup),Z.xp6(),Z.Q6J("disableControl",Ci.specificDayOfWeek))},dependencies:[ia.H,Ta.u,tn.A,s.JJ,s.JL,s.On,J.VQ,J.U0,s.sg,s.u,Ts],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.edit-monthly-definition-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.mat-mdc-radio-button[_ngcontent-%COMP%]{margin-top:5px}.edit-monthly-definition-select[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px;min-width:115px}.edit-monthly-definition-select-gap[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px;min-width:85px}  .edit-monthly-definition-gap .mat-mdc-input-element{max-width:40px;min-width:40px}.edit-monthly-definition-gap[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px;max-width:40px;min-width:40px}.edit-monthly-definition-span[_ngcontent-%COMP%]{font-size:inherit;height:30px;line-height:30px;vertical-align:center}"]})}return dn})(),qs=(()=>{class dn{constructor(){this.startTimeIsMandatory=!1}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)};static#t=this.\u0275cmp=Z.Xpm({type:dn,selectors:[["imx-edit-weekly-definition"]],inputs:{formHandler:"formHandler",startTimeIsMandatory:"startTimeIsMandatory"},decls:14,vars:13,consts:[[3,"label"],[1,"form__content-row"],[1,"form__content-group"],[3,"formHandler","startTimeIsMandatory"],[1,"form__content-field-row"],[1,"text-row"],["translate",""],[1,"gap-field",3,"field","control","form","formHandler","config"],[3,"field","control","form","formHandler","config"]],template:function(Nn,Ci){1&Nn&&(Z._UZ(0,"imx-base-input-label",0),Z.TgZ(1,"div",1)(2,"div",2),Z._UZ(3,"imx-event-dates-start-times",3),Z.qZA(),Z.TgZ(4,"div",2)(5,"div",4)(6,"div",5)(7,"span",6),Z._uU(8,"imxeventmanager.event.edit.panels.dates.weekly-gap-pre"),Z.qZA(),Z._UZ(9,"imx-form-control",7),Z.TgZ(10,"span",6),Z._uU(11,"imxeventmanager.event.edit.panels.dates.weekly-gap-post"),Z.qZA()()(),Z.TgZ(12,"div",4),Z._UZ(13,"imx-form-control",8),Z.qZA()()()),2&Nn&&(Z.Q6J("label","imxeventmanager.event.edit.panels.dates.definition-weekly"),Z.xp6(3),Z.Q6J("formHandler",Ci.formHandler)("startTimeIsMandatory",Ci.startTimeIsMandatory),Z.xp6(6),Z.Q6J("field",Ci.formHandler.formConfiguration.findFormFieldById("eventDateType.gap"))("control",Ci.formHandler.formGroup.get("eventDateType.gap"))("form",Ci.formHandler.formGroup)("formHandler",Ci.formHandler)("config",Ci.formHandler.formConfiguration),Z.xp6(4),Z.Q6J("field",Ci.formHandler.formConfiguration.findFormFieldById("eventDateType.weekDays"))("control",Ci.formHandler.formGroup.get("eventDateType.weekDays"))("form",Ci.formHandler.formGroup)("formHandler",Ci.formHandler)("config",Ci.formHandler.formConfiguration))},dependencies:[Ta.u,tn.A,et.Pi,Ts],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.text-row[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:flex-start}.text-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:0 10px 5px 0}.text-row[_ngcontent-%COMP%]   .gap-field[_ngcontent-%COMP%]{width:50px}.text-row[_ngcontent-%COMP%]     .mat-mdc-form-field .mat-mdc-form-field-subscript-wrapper{width:500%}.text-row[_ngcontent-%COMP%]     .mat-mdc-form-field .mat-mdc-error{padding-bottom:1px;padding-left:unset}.text-row[_ngcontent-%COMP%]     .mat-mdc-form-field.mat-mdc-form-field-invalid .validation-icon{display:none}.text-row[_ngcontent-%COMP%]     .imx-form-control{margin-bottom:0}"]})}return dn})(),Ks=(()=>{class dn extends Le.AbstractSetStateAction{constructor(mn,Nn,Ci,Io,cr){super(mn,Nn,Ci,Io,cr),this.dialog=mn,this.dataAccess=Nn,this.imxEntitiesMgrService=Ci,this.entityStateDao=Io,this.userMessageService=cr}doExecute(mn){return super.doExecute(mn)}executeBatch(mn,Nn){return super.executeBatch(mn,Nn)}getActionKey(){return"event-action-set_state"}getEntityType(){return"Event"}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(u.uw),Z.LFG(Le.ImxPlatformDataAccessService),Z.LFG(Le.ImxEntitiesMgrService),Z.LFG(Le.EntityStateDao),Z.LFG(Le.UserMessageService))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})();var pl=a(42094);function nc(dn,Mr){1&dn&&Z.GkF(0)}function Mi(dn,Mr){1&dn&&Z.GkF(0)}function or(dn,Mr){1&dn&&Z.GkF(0)}function Ki(dn,Mr){1&dn&&Z.GkF(0)}function Ao(dn,Mr){1&dn&&Z.GkF(0)}function Go(dn,Mr){if(1&dn&&Z._UZ(0,"imx-form-control",7),2&dn){const mn=Mr.$implicit,Nn=Z.oxw();Z.Q6J("field",Nn.data.formHandler.formConfiguration.findFormFieldById(mn))("control",Nn.data.formRow.get(mn))("form",Nn.data.formRow)("formHandler",Nn.data.formHandler)("config",Nn.data.formHandler.formConfiguration)}}const dr=()=>({$implicit:"prefix"}),pn=()=>({$implicit:"i18nName"}),bo=()=>({$implicit:"client"}),nt=()=>({$implicit:"inheritable"}),Sn=()=>({$implicit:"externalVisibility"});let fi=(()=>{class dn extends Le.BaseEntityDialogComponent{constructor(mn){super(mn),this.data=mn}ngOnInit(){this.title=this.data.formRow.get("id").value?"ID: "+this.data.formRow.get("id").value:"",this.data.formRow.get("id").value&&this.data.formHandler.formGroup.get("client").disable({emitEvent:!1})}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.Y36(u.WI))};static#t=this.\u0275cmp=Z.Xpm({type:dn,selectors:[["ng-component"]],features:[Z.qOj],decls:12,vars:20,consts:[["icon","icon-fingerprint","dialogType","form",3,"heading","subline","submitButtonDisabled"],["form-header","",3,"formHandler"],["id","criterion-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["imxFormControl",""],[3,"field","control","form","formHandler","config"]],template:function(Nn,Ci){if(1&Nn&&(Z.TgZ(0,"imx-dialog",0),Z._UZ(1,"imx-language-switch-button",1),Z.TgZ(2,"form",2)(3,"div",3)(4,"div",4),Z.YNc(5,nc,1,0,"ng-container",5)(6,Mi,1,0,"ng-container",5)(7,or,1,0,"ng-container",5)(8,Ki,1,0,"ng-container",5)(9,Ao,1,0,"ng-container",5),Z.qZA()()()(),Z.YNc(10,Go,1,5,"ng-template",null,6,Z.W1O)),2&Nn){const Io=Z.MAs(11);Z.Q6J("heading","entity.Criterion.entityName")("subline",Ci.title)("submitButtonDisabled",Ci.data.formRow.invalid),Z.xp6(),Z.Q6J("formHandler",Ci.data.formHandler),Z.xp6(),Z.Q6J("formGroup",Ci.data.formRow),Z.xp6(3),Z.Q6J("ngTemplateOutlet",Io)("ngTemplateOutletContext",Z.DdM(15,dr)),Z.xp6(),Z.Q6J("ngTemplateOutlet",Io)("ngTemplateOutletContext",Z.DdM(16,pn)),Z.xp6(),Z.Q6J("ngTemplateOutlet",Io)("ngTemplateOutletContext",Z.DdM(17,bo)),Z.xp6(),Z.Q6J("ngTemplateOutlet",Io)("ngTemplateOutletContext",Z.DdM(18,nt)),Z.xp6(),Z.Q6J("ngTemplateOutlet",Io)("ngTemplateOutletContext",Z.DdM(19,Sn))}},dependencies:[Oe.a,tn.A,pl.H,e.tP,s._Y,s.JL,s.sg]})}return dn})();var $i=a(77504),No=a(96743);const Ar=new Z.OlP("imxplatform.criterion.datasource");let xr=(()=>{class dn extends Le.ClientSideFilteringBaseEntityDataSourceService{constructor(mn,Nn,Ci){super(mn,Nn),this.entitiesMgr=mn,this.translateService=Nn,this.eventmanagerDataAccessService=Ci,this.clientNames=new Map,this.entitiesMgr.getAllEntitiesOfType("Client").subscribe(Io=>{Io.items.forEach(cr=>{this.clientNames.set(cr.id,cr.name)})})}fetchResultsByFilter(mn,Nn){return super.fetchResultsByFilter(mn,Nn).pipe((0,No.zg)(Io=>{if(0===Io.items.length)return(0,Vt.of)(new R.BY(Io.items,0,Io.page,Io.pageSize));const cr=Io.items.map(ra=>this.enrichCriterionWithUsageClients(ra));return(0,$i.D)(cr).pipe((0,dt.U)(ra=>new R.BY(ra,Io.totalNumberOfResults,Io.page,Io.pageSize)))}))}enrichCriterionWithUsageClients(mn){const{...Nn}=mn;return this.eventmanagerDataAccessService.getEventmanagerClientConfigIdsByCriterion(mn.id).pipe((0,dt.U)(Ci=>({...Nn,usageClientIds:Ci,usageClientNames:Ci.map(Io=>this.clientNames.get(Io)).join(", ")})))}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(R.qB),Z.LFG(et.sK),Z.LFG(r.b))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})();const Sr=new Le.ModuleBaseEntityConfiguration(Le.CORE_MODULE_KEY,[new Le.BaseEntityFormConfiguration("Category",[new Le.Input("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0,isTreeToggleField:!0}}),new Le.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:Le.i18nSomeValidator})],[new Le.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,Le.filterTreeWrapperFn)((0,Le.filterByI18nProperty)("i18nName"))]),new Le.BaseEntityFormConfiguration("TargetGroup",[new Le.Input("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new Le.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:Le.i18nSomeValidator})],[new Le.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,Le.filterTreeWrapperFn)((0,Le.filterByI18nProperty)("i18nName"))]),new Le.BaseEntityFormConfiguration("EventSeries",[new Le.Input("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new Le.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:Le.i18nSomeValidator}),new Le.Input("text","description","entity.EventSeries.description"),new Le.Select("client","entity.EventSeries.client",{optionProvider:Le.ClientOptionProviderService,extractor:(0,Le.pathExtractor)("client.id"),insertor:(0,Le.pathInsertor)("client.id",!0),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-no-selection",baseEntityFieldOption:{hideInList:!0},required:!0}),new Le.ListShuffle("grantedClients","entity.EventSeries.grantedClients",{optionProvider:Le.ClientOptionProviderService,extractor:(0,Le.arrayValueExtractor)("grantedClients","id"),insertor:(0,Le.arrayValueInsertor)("grantedClients","id"),renderLabel:!0,baseEntityFieldOption:{hideInList:!0}}),new Le.AnyField("grantedClientsForList","entity.EventSeries.grantedClients",{extractor:(0,Le.arrayValueExtractor)("grantedClients","name"),insertor:(0,Le.noneInsertor)(),required:!1})],[new Le.Input("text","i18nName","entity.I18nDataObject.i18nName"),new Le.Select("grantedClients","entity.EventSeries.grantedClients",{optionProvider:Le.ClientOptionProviderService,placeholder:"imxplatform.common.select-placeholder-no-selection"})],[(0,Le.filterTreeWrapperFn)((0,Le.filterByI18nProperty)("i18nName")),(0,Le.filterTreeWrapperFn)((0,Le.filterByArrayValue)("grantedClients","id"))],[{index:1,field:"i18nName",i18n:"entity.Location.name",type:Le.OrderType.alphanumeric}]),new Le.BaseEntityFormConfiguration("Criterion",[new Le.Input("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0,isTreeToggleField:!0}}),new Le.Input("text","prefix","entity.Criterion.prefix"),new Le.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:Le.i18nSomeValidator}),new Le.Select("client","entity.Criterion.client",{optionProvider:Le.ClientOptionProviderService,extractor:(0,Le.pathExtractor)("client.id"),insertor:(0,Le.pathInsertor)("client.id",!0),required:!0,initialValue:-1,placeholder:"imxplatform.common.select-placeholder-demand",baseEntityFieldOption:{hideInList:!0}}),new Le.AnyField("clientForList","entity.Criterion.client",{extractor:(0,Le.pathExtractor)("client.name"),insertor:(0,Le.noneInsertor)(),required:!1}),new Le.Checkbox("inheritable","entity.Criterion.inheritable",{baseEntityFieldOption:{listRenderer:Le.booleanRenderer}}),new Le.Checkbox("externalVisibility","entity.Criterion.externalVisibility",{baseEntityFieldOption:{listRenderer:Le.booleanRenderer}}),new Le.AnyField("usageClientNames","entity.Criterion.usageClients",{extractor:(0,Le.pathExtractor)("usageClientNames"),insertor:(0,Le.noneInsertor)(),required:!1,baseEntityFieldOption:{listColumnStyleClass:"line-clamp-column"}}),new Le.AnyField("usageClient","",{extractor:(0,Le.pathExtractor)("usageClient"),insertor:(0,Le.noneInsertor)(),required:!1,baseEntityFieldOption:{hideInList:!0}})],[new Le.Input("text","i18nName","entity.I18nDataObject.i18nName"),new Le.Select("client","entity.Criterion.client",{optionProvider:Le.ClientOptionProviderService,extractor:(0,Le.numberExtractor)("client"),insertor:(0,Le.pathInsertor)("client",!0),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-any-client"}),new Le.Select("usageClient","entity.Criterion.usageClients",{optionProvider:Le.ClientOptionProviderService,extractor:(0,Le.numberExtractor)("usageClient"),insertor:(0,Le.pathInsertor)("usageClient",!0),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-any-client"})],[(0,Le.filterByI18nProperty)("i18nName"),(0,Le.filterByPath)("client","client.id"),(0,Le.filterByPathContainingArray)("usageClient","usageClientIds")],void 0,fi,void 0,[{actionName:"assign",icon:"icon-clients",label:"imxeventmanager.base-entity.criterion.list.action.assign.name",actionDialog:Rn}],"imxeventmanager.base-entity.criterion.list.action.delete.confirm","imxeventmanager.base-entity.criterion.list.action.delete.confirm-batch",Ar),new Le.BaseEntityFormConfiguration("PriceCategoryType",[new Le.Input("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new Le.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:Le.i18nSomeValidator})],[new Le.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,Le.filterTreeWrapperFn)((0,Le.filterByI18nProperty)("i18nName"))])]);var ns=a(71271);let Tl=(()=>{class dn extends Le.AbstractDatamanagerAction{constructor(mn,Nn,Ci,Io){super(mn,Nn,Ci,Io),this.dialog=mn,this.dataAccess=Nn,this.entityStateDao=Ci,this.userMessageService=Io}getActionKey(){return"event-dm-action-createClone"}getEntityType(){return"Event"}getIcon(){return"icon-earth"}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(u.uw),Z.LFG(Le.ImxPlatformDataAccessService),Z.LFG(Le.EntityStateDao),Z.LFG(Le.UserMessageService))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})(),Fs=(()=>{class dn extends Le.AbstractDatamanagerAction{constructor(mn,Nn,Ci,Io){super(mn,Nn,Ci,Io),this.dialog=mn,this.dataAccess=Nn,this.entityStateDao=Ci,this.userMessageService=Io}getActionKey(){return"event-dm-action-create"}getEntityType(){return"Event"}getIcon(){return"icon-earth"}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(u.uw),Z.LFG(Le.ImxPlatformDataAccessService),Z.LFG(Le.EntityStateDao),Z.LFG(Le.UserMessageService))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})(),il=(()=>{class dn extends Le.AbstractDatamanagerAction{constructor(mn,Nn,Ci,Io){super(mn,Nn,Ci,Io),this.dialog=mn,this.dataAccess=Nn,this.entityStateDao=Ci,this.userMessageService=Io}getActionKey(){return"event-dm-action-deactivate"}getEntityType(){return"Event"}getIcon(){return"icon-earth"}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(u.uw),Z.LFG(Le.ImxPlatformDataAccessService),Z.LFG(Le.EntityStateDao),Z.LFG(Le.UserMessageService))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})(),ac=(()=>{class dn extends Le.AbstractDatamanagerAction{constructor(mn,Nn,Ci,Io){super(mn,Nn,Ci,Io),this.dialog=mn,this.dataAccess=Nn,this.entityStateDao=Ci,this.userMessageService=Io}isDeleteAction(){return!0}getActionKey(){return"event-dm-action-delete"}getEntityType(){return"Event"}getIcon(){return"icon-earth"}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(u.uw),Z.LFG(Le.ImxPlatformDataAccessService),Z.LFG(Le.EntityStateDao),Z.LFG(Le.UserMessageService))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})(),Nl=(()=>{class dn extends Le.AbstractDatamanagerAction{constructor(mn,Nn,Ci,Io,cr){super(mn,Nn,Ci,Io),this.dialog=mn,this.dataAccess=Nn,this.entityStateDao=Ci,this.userMessageService=Io,this.router=cr}getActionKey(){return"event-dm-action-edit"}shouldUserMessageBeShown(){return!1}getEntityType(){return"Event"}getIcon(){return"icon-earth"}executeAfterActionComplete(mn){this.contextNavigationService.navigateToCoreEntityContextual(["events","edit",mn.id])}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(u.uw),Z.LFG(Le.ImxPlatformDataAccessService),Z.LFG(Le.EntityStateDao),Z.LFG(Le.UserMessageService),Z.LFG(l.F0))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})();var em=a(82756);let Kl=(()=>{class dn extends Le.AbstractDatamanagerAction{constructor(mn,Nn,Ci,Io){super(mn,Nn,Ci,Io),this.dialog=mn,this.dataAccess=Nn,this.entityStateDao=Ci,this.userMessageService=Io}doExecute(mn){return new lt.y(Nn=>{this.dialog.open(em.L,{maxWidth:500,data:{reason:void 0}}).afterClosed().subscribe(Io=>{if(Io&&Io.reason&&Io.reason.length>0)return super.doExecute(mn,{refusedReason:Io.reason}).subscribe(ra=>Nn.next(ra))})})}getActionKey(){return"event-dm-action-refuse"}getEntityType(){return"Event"}getIcon(){return"icon-earth"}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(u.uw),Z.LFG(Le.ImxPlatformDataAccessService),Z.LFG(Le.EntityStateDao),Z.LFG(Le.UserMessageService))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})(),xl=(()=>{class dn extends Le.AbstractDatamanagerAction{constructor(mn,Nn,Ci,Io){super(mn,Nn,Ci,Io),this.dialog=mn,this.dataAccess=Nn,this.entityStateDao=Ci,this.userMessageService=Io}getActionKey(){return"event-dm-action-publish"}getEntityType(){return"Event"}getIcon(){return"icon-earth"}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(u.uw),Z.LFG(Le.ImxPlatformDataAccessService),Z.LFG(Le.EntityStateDao),Z.LFG(Le.UserMessageService))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})(),ll=(()=>{class dn extends Le.AbstractDatamanagerAction{constructor(mn,Nn,Ci,Io){super(mn,Nn,Ci,Io),this.dialog=mn,this.dataAccess=Nn,this.entityStateDao=Ci,this.userMessageService=Io}getActionKey(){return"event-dm-action-forDelete"}getEntityType(){return"Event"}getIcon(){return"icon-earth"}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(u.uw),Z.LFG(Le.ImxPlatformDataAccessService),Z.LFG(Le.EntityStateDao),Z.LFG(Le.UserMessageService))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})(),tm=(()=>{class dn extends Le.AbstractDatamanagerAction{constructor(mn,Nn,Ci,Io){super(mn,Nn,Ci,Io),this.dialog=mn,this.dataAccess=Nn,this.entityStateDao=Ci,this.userMessageService=Io}doExecute(mn){return new lt.y(Nn=>{this.dialog.open(Le.DatamanagerInspectDialogComponent,{maxWidth:500,data:{selectedClientId:-1,headerKey:"imxplatform.gui.list.event-dm.action.inspect-header",submitKey:"imxplatform.gui.list.event-dm.action.inspect-submit",textKey:"imxplatform.gui.list.event-dm.action.inspect-text",selectKey:"imxplatform.gui.list.event-dm.action.inspect-client",entityClientId:mn.client.id}}).afterClosed().subscribe(Io=>{if(Io&&Io.selectedClientId>-1)return super.doExecute(mn,{selectedClientId:Io.selectedClientId}).subscribe(ra=>Nn.next(ra))})})}getActionLabelKey(){return"imxplatform.gui.list.event-dm.action.inspect"}getActionKey(){return"event-dm-action-inspect"}getEntityType(){return"Event"}getIcon(){return"icon-earth"}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)(Z.LFG(u.uw),Z.LFG(Le.ImxPlatformDataAccessService),Z.LFG(Le.EntityStateDao),Z.LFG(Le.UserMessageService))};static#t=this.\u0275prov=Z.Yz7({token:dn,factory:dn.\u0275fac})}return dn})();const Nc=[new Le.ConfigurationDefinitionPartFormConfiguration("Category",[new Le.Input("text","configKey","imxplatform.configuration-definition-part.mappingKey",{required:!0}),new Le.Select("configValue","entity.Category.entityName",{optionProvider:Hs.O,extractor:dn=>{if(!dn)return;const Mr=dn.configValue;return Mr?Mr.id:void 0},insertor:(dn,Mr)=>{dn&&Mr&&(Mr.configValue.id=dn)},initialValue:-1,placeholder:"imxplatform.common.select-placeholder-demand",required:!0})])];var wc=a(3959),nm=a(50054),Id=a(36116),Ns=a(85219);let Uc=(()=>{class dn{static forRoot(){return{ngModule:dn,providers:[Hs.O,_n.n,{provide:On.D,useClass:Le.DataObjectMediumInitializerService}]}}static#e=this.\u0275fac=function(Nn){return new(Nn||dn)};static#t=this.\u0275mod=Z.oAB({type:dn});static#n=this.\u0275inj=Z.cJS({providers:[{provide:R.gk,useClass:Ft,multi:!0},da.ul,{provide:da.oI,useValue:da.aX},{provide:po.FP,useValue:po.HB},{provide:R.vN,useClass:li,multi:!0},{provide:R.vN,useClass:si,multi:!0},{provide:Le.IMXPLATFORM_ACTIONS,useClass:Ks,multi:!0},{provide:Le.IMXPLATFORM_ACTIONS,useClass:Hn,multi:!0},{provide:Le.IMXPLATFORM_ACTIONS,useClass:mo.Z,multi:!0},{provide:Le.IMXPLATFORM_ACTIONS,useClass:Je,multi:!0},{provide:Le.IMXPLATFORM_ACTIONS,useClass:Vn,multi:!0},{provide:Le.IMXPLATFORM_ACTIONS,useClass:_o,multi:!0},{provide:Le.IMXPLATFORM_ACTIONS,useClass:oi,multi:!0},{provide:Le.IMXPLATFORM_ACTIONS,useClass:Ti,multi:!0},{provide:Le.IMXPLATFORM_ACTIONS,useClass:Ds,multi:!0},{provide:Le.IMXPLATFORM_ACTIONS,useClass:Yt,multi:!0},{provide:Le.IMXPLATFORM_ACTIONS,useClass:_i,multi:!0},{provide:Le.IMXPLATFORM_ACTIONS,useClass:Tl,multi:!0},{provide:Le.IMXPLATFORM_ACTIONS,useClass:Nl,multi:!0},{provide:Le.IMXPLATFORM_ACTIONS,useClass:ac,multi:!0},{provide:Le.IMXPLATFORM_ACTIONS,useClass:il,multi:!0},{provide:Le.IMXPLATFORM_ACTIONS,useClass:Fs,multi:!0},{provide:Le.IMXPLATFORM_ACTIONS,useClass:Kl,multi:!0},{provide:Le.IMXPLATFORM_ACTIONS,useClass:xl,multi:!0},{provide:Le.IMXPLATFORM_ACTIONS,useClass:ll,multi:!0},{provide:Le.IMXPLATFORM_ACTIONS,useClass:tm,multi:!0},{provide:Le.IMXPLATFORM_ACTIONS,useClass:co,multi:!0},{provide:Le.IMXPLATFORM_ACTIONS,useClass:tt,multi:!0},{provide:Le.IMXPLATFORM_ACTIONS,useClass:En,multi:!0},{provide:Le.IMXPLATFORM_ACTIONS,useClass:Un,multi:!0},{provide:Le.IMXPLATFORM_ACTIONS,useClass:Ie,multi:!0},{provide:Le.IMXPLATFORM_ACTIONS,useClass:Ce,multi:!0},{provide:Le.IMXPLATFORM_ACTIONS,useClass:ln,multi:!0},{provide:Le.IMXPLATFORM_MODULE_BASE_ENTITY_CONFIG,useValue:Sr,multi:!0},{provide:Le.IMXPLATFORM_CORE_DATA_OBJECT_AUTO_COMPLETE_SERVICE,useClass:Fn.I,multi:!0},{provide:Le.IMXPLATFORM_ENTITY_PERMISSION_SERVICE,useClass:ns.T,multi:!0},{provide:Le.IMXPLATFORM_BASE_ENTITY_PERMISSION_SERVICE,useClass:Bt,multi:!0},{provide:Le.IMXPLATFORM_DISTANCE_SEARCH_SERVICES,useClass:Hi,multi:!0},{provide:Ar,useClass:xr},{provide:wn.S,useClass:wn.y},{provide:Le.IMX_SLOT_PROVIDERS,useClass:wc.RC,multi:!0},{provide:wc.FN,useValue:Le.EditTitlesComponent,multi:!1},{provide:wc.jl,useValue:To,multi:!1},{provide:vn.U,useClass:vn.s},{provide:Ji.h,useClass:Ji._},{provide:Le.IMXPLATFORM_CONFIGURATION_DEFINITION_PART_CONFIG,useValue:Nc,multi:!0}],imports:[Le.SharedImxPlatformModule,e.ez,n._t,s.u5,l.Bz,i.Bb,t.ot,p.vV,c.p9,x.FA,u.Is,m.t,b.To,I.N6,H.Ps,O.c,P.ie,o.XK,o.Ng,G.TU,B.Cv,ae.Cq,J.Fk,o.si,q.LD,j.SJ,K.KP,Y.rP,ne.ZX,ee.JX,$.T5,ue.p0,ge.g0,Ke.AV,at.dp,s.UX,We.U$,et.aw,Ue._8,me._,Se.O,Te.xT]})}return dn})();Z.B6R(ks.C,[nm.m,Id.H,e.mk,e.O5,s.JJ,s.On,Ns.jx,et.Pi,Ue.f,Dn.Z,Wt.U,la,bs,_s,ul,qs,ds.h],[e.Ov,et.X$])},21473:(gt,X,a)=>{"use strict";a.d(X,{$R:()=>e.$R,$h:()=>e.$h,$x:()=>e.$x,BY:()=>e.BY,C8:()=>e.C8,DD:()=>e.DD,DO:()=>e.DO,DV:()=>e.DV,Dt:()=>e.Dt,Dx:()=>e.Dx,Ec:()=>e.Ec,Eo:()=>e.Eo,Gj:()=>e.Gj,H1:()=>e.H1,HD:()=>e.HD,IR:()=>e.IR,Ij:()=>e.Ij,J6:()=>e.J6,JV:()=>e.JV,KF:()=>e.KF,Kn:()=>e.Kn,Lr:()=>e.Lr,Mg:()=>e.Mg,Oi:()=>e.Oi,Pc:()=>e.Pc,Qj:()=>e.Qj,Qn:()=>e.Qn,So:()=>e.So,T7:()=>e.T7,TY:()=>e.TY,Uf:()=>e.Uf,XY:()=>e.XY,Xh:()=>e.Xh,YX:()=>e.YX,Yz:()=>e.Yz,Z8:()=>e.Z8,Ze:()=>e.Ze,aP:()=>e.aP,ar:()=>e.ar,eM:()=>e.eM,f5:()=>e.f5,fx:()=>e.fx,gR:()=>e.gR,gk:()=>e.gk,hj:()=>e.hj,iB:()=>e.iB,ir:()=>e.ir,jJ:()=>e.jJ,jl:()=>e.jl,kJ:()=>e.kJ,n$:()=>e.n$,q3:()=>e.q3,qB:()=>e.qB,qw:()=>e.qw,rg:()=>e.rg,tq:()=>e.tq,u_:()=>e.u_,uo:()=>e.uo,vK:()=>e.vK,vN:()=>e.vN,w5:()=>e.w5,w_:()=>e.w_,x3:()=>e.x3,xx:()=>e.xx,yX:()=>e.yX,yc:()=>e.yc,zd:()=>e.zd});var e=a(44510)},44510:(gt,X,a)=>{"use strict";a.d(X,{ar:()=>ue,XY:()=>Tn,$h:()=>Fo,Uf:()=>To,aP:()=>si,zd:()=>Je,Pc:()=>rt,vK:()=>Ke,IR:()=>Pd,TY:()=>Ft,eM:()=>K,DD:()=>yi,ir:()=>Ei,Dt:()=>Xt,n$:()=>Bn,H1:()=>Bd,J6:()=>ot,JV:()=>sr,yc:()=>ka,Lr:()=>rn,vN:()=>_o,gk:()=>eo,qw:()=>hs,Dx:()=>Ds,fx:()=>_i,qB:()=>mo,Qj:()=>Rn,DO:()=>b,Oi:()=>m,uo:()=>$n,x3:()=>Ie,Xh:()=>Xo,YX:()=>ms,f5:()=>ho,KF:()=>Un,BY:()=>Qt,Yz:()=>Ua,Ze:()=>Jn,Z8:()=>_r,q3:()=>At,iB:()=>bn,u_:()=>ee,Gj:()=>ae,$x:()=>B,gR:()=>G,DV:()=>wo,Eo:()=>ki,Mg:()=>In,C8:()=>hr,w_:()=>Wr,yX:()=>O,xx:()=>Fa,w5:()=>H,jl:()=>Ue,Qn:()=>J,T7:()=>wi,kJ:()=>el,Ec:()=>Qi,rg:()=>yt,$R:()=>xi,hj:()=>ls,Kn:()=>ja,So:()=>Yt,tq:()=>zo,HD:()=>Vs,jJ:()=>qi,Ij:()=>R});var e=a(96814),n=a(71365);class s{}var l=a(69862),i=a(16222),t=a(5253),p=a(75222),c=a(96124),o=a(62413),x=a(94973),u=a(82851);class m{static#e=this.PF_PERMISSION_DENIED=new m("imxplatform.exception.permission.denied","Permission denied for {0}.");static#t=this.PF_NOT_AVAILABLE=new m("imxplatform.exception.backend_not_available","Backend temporarily not available. Please try again in a few moments");constructor(Jt,he){this.key=Jt,this.text=he}}class b extends Error{constructor(Jt,he){Jt instanceof m?(super(Jt.key),this.errorKey=Jt):super(Jt),this.parameters=he||[]}}function H(kt){return kt?new e.uU("de").transform(kt,"yyyy-MM-dd"):null}function O(kt,Jt){if(kt){const he=[];kt.controls.forEach(Qe=>{const Ht=Qe.get(Jt);Ht&&he.push(new Date(Ht.value))});const Re=he.sort((Qe,Ht)=>Ht.getTime()-Qe.getTime());if(Re&&Re.length>0)return Re[0]}}function G(kt){return new e.uU("en").transform(kt,"yyyy-MM-ddTHH:mm")}function B(kt,Jt){if(void 0!==kt&&Jt){const he=Jt.toString().split(":"),Re=36e5*+he[0]+6e4*+he[1],Qe=new Date;return Qe.setTime(kt.getTime()+Re),Qe}}function ae(kt,Jt){if(void 0!==kt&&void 0!==Jt){kt>Jt&&Jt.setDate(Jt.getDate()+1);const Re=(Jt.getTime()-kt.getTime())/1e3/60,Qe=Math.floor(Re/60),Ht=Re-3600*Qe/60;if(Qe>0||Ht>0){let qt="00",Lo="00";return Qe>0&&(qt=1===Qe.toString().length?"0"+Qe.toString():Qe.toString()),Ht>0&&(Lo=1===Ht.toString().length?"0"+Ht.toString():Ht.toString()),qt+":"+Lo}}}function J(kt){if(kt&&kt.length>0){const Jt=new Date;return kt.sort((he,Re)=>function q(kt,Jt,he){return Math.abs(kt.getTime()-he.getTime())-Math.abs(Jt.getTime()-he.getTime())}(he,Re,Jt))[0]}return new Date}const K={name:"DEBUG",intLevel:1},ne={name:"INFO",intLevel:2},ee={name:"WARN",intLevel:3},$={name:"ERROR",intLevel:4},ue="DefaultConsoleAppender",ge="IndexedDbAppender";var Ke=function(kt){return kt[kt.ROOT=0]="ROOT",kt}(Ke||{});let at=new Map;const Le=[];function R(kt,Jt){at=function j(kt){return function Y(kt,Jt){const he=new Map;for(const Re of kt){const Qe=Jt(Re);he.set(Qe[0],Qe[1])}return he}(kt,Jt=>Jt)}(kt),Jt.forEach(he=>{switch(he){case ue:Le.push(new r);break;case ge:Le.push(new Z)}})}let Te="";function me(kt){Te=kt}const Se=new Map;function Ue(kt,Jt){return function We(kt){const Jt=Se.get(kt);if(null!=Jt)return Jt;const he=new Et(kt);return Se.set(kt,he),he}(function et(kt,Jt){return`${kt}.${Jt}`}(Jt,kt))}class Et{constructor(Jt){this.name=Jt}debug(Jt,he){this.shouldLog(this.getLogLevel(),K)&&Le.forEach(Re=>Re.appendLog(this.logEvent(Jt,K,he)))}info(Jt,he){this.shouldLog(this.getLogLevel(),ne)&&Le.forEach(Re=>Re.appendLog(this.logEvent(Jt,ne,he)))}warn(Jt,he){this.shouldLog(this.getLogLevel(),ee)&&Le.forEach(Re=>Re.appendLog(this.logEvent(Jt,ee,he)))}error(Jt,he){this.shouldLog(this.getLogLevel(),$)&&Le.forEach(Re=>Re.appendLog(this.logEvent(Jt,$,he)))}shouldLog(Jt,he){return Jt.intLevel<=he.intLevel}logEvent(Jt,he,Re){return{message:Jt,loggerName:this.name,level:he,user:Te,timestamp:Date.now(),error:void 0!==Re?JSON.stringify(Re.message):void 0}}getLogLevel(){const Jt=at.get(this.name),he=this.getProductLogLevel(),Re=at.get(Ke.ROOT);return Jt||he||Re||$}getProductLogLevel(){try{return"string"==typeof this.name?at.get(this.name.split(".")[0]):void 0}catch{return}}}class lt{constructor(Jt){this.formatter=Jt}format(Jt){return this.isLogMsgFormatter(this.formatter)?this.formatter.format(Jt):this.formatter(Jt)}isLogMsgFormatter(Jt){return void 0!==Jt.format}}class Vt extends lt{constructor(Jt){super(Jt)}appendLog(Jt){this.consoleLogFunction(Jt.level.name)(this.format(Jt))}consoleLogFunction(Jt){switch(Jt){case"DEBUG":case"INFO":return console.log;case"WARN":return console.warn;case"ERROR":return console.error}}}class r extends Vt{constructor(){super(Jt=>{let he="";return void 0!==Jt.error&&(he=Jt.error),`${function I(kt,Jt){const he=new Date(kt),Re=Jt?`,${he.getMilliseconds()}`:"";return`${he.getHours()}:${he.getMinutes()}:${he.getSeconds()}${Re}`}(Jt.timestamp,!0)} ${Jt.level.name} ${Jt.user} ${Jt.loggerName}: ${Jt.message}: ${he}`})}}class Z extends lt{constructor(){if(super(Jt=>""),this.dbName="imxapplog",this.dbSchemaVersion=1,window.indexedDB){this.indexedDbSupported=!0;const Jt=window.indexedDB.open(this.dbName,this.dbSchemaVersion);Jt.onerror=he=>{console.error("Error connecting to indexedDB")},Jt.onupgradeneeded=he=>{const Qe=Jt.result.createObjectStore("logs",{keyPath:"id",autoIncrement:!0});Qe.createIndex("timestamp","timestamp",{unique:!1}),Qe.createIndex("timestampWhenSentToServer","timestampWhenSentToServer",{unique:!1})}}else this.indexedDbSupported=!1,console.warn(`Your browser does not support IndexedDB. ${Z.name} will not work.`)}appendLog(Jt){if(this.indexedDbSupported){const he=window.indexedDB.open(this.dbName,this.dbSchemaVersion);he.onsuccess=Re=>{he.result.transaction(["logs"],"readwrite").objectStore("logs").add(Jt)}}}}const Pt_name="imxplatform-core";var Oe=a(71928),ye=a(51418),ve=a(97734),ft=a(32068),Dt=a(19212);let Rn=(()=>{class kt{constructor(he,Re){this.http=he,this.location=Re,this.logger=Ue("ImxEnvironment",Pt_name),this.envFileName=Re.prepareExternalUrl("assets/envConfig.json"),this.logger.info("Creating ImxEnvironment with environment file "+this.envFileName),this.environmentDef$=this.getRuntimeConfig()}getRuntimeConfig(){return this.http.get(this.envFileName).pipe((0,c.U)(he=>he.configuration),(0,x.C)(),(0,u.x)())}isInitialized(){return new Promise(Re=>{this.environmentDef$.pipe((0,ye.q)(1)).subscribe(Qe=>{this.logger.info("Environment initialized: "+JSON.stringify(Qe)),Re(!0)})})}get(){return this.environmentDef$}getString(he,Re){return this.environmentDef$.pipe((0,c.U)(Qe=>Qe.find(Ht=>Ht.key===he.paramName)||{key:he,value:Re}),(0,c.U)(Qe=>Qe.value),(0,ve.h)(Qe=>typeof Qe<"u"),(0,ft.x)())}static#e=this.\u0275fac=function(Re){return new(Re||kt)(Dt.LFG(l.eN),Dt.LFG(e.Ye))};static#t=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"})}return kt})(),Xt=(()=>{class kt{constructor(he){this.imxEnv=he,this.logger=Ue("EnvironmentConfigurationLoaderService",Pt_name),this.priority=1,this.logger.info("Creating EnvironmentConfigurationLoaderService");const Re=(0,Oe.H)(0,54e6);this.propertySource$=Re.pipe((0,p.w)(()=>he.get()),(0,c.U)(Qe=>Qe.map(Ht=>(this.logger.info("Item: "+Ht.key+" : "+Ht.value),{key:Ht.key,value:Ht.value,priority:this.priority}))))}get(){return this.propertySource$}static#e=this.\u0275fac=function(Re){return new(Re||kt)(Dt.LFG(Rn))};static#t=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"})}return kt})();class Je{constructor(Jt,he,Re){this.expandable=he,this.parent=Re,this.paramName=this.getPrefix().length>0?this.getPrefix()+"."+Jt:Jt}}class dt extends Je{getPrefix(){return"imxtools2"}}class Ie extends Je{static#e=this.IMXPLATFORM_API_URL=new Ie("api.url");static#t=this.IMXPLATFORM_LOGIN_URL=new Ie("login.url");static#n=this.IMXPLATFORM_ENTITIES_CACHABLE=new Ie("entities.cachable");static#i=this.PLATFORM_LANGUAGES=new Ie("languages");static#o=this.PLATFORM_DISABLED_ENTITY_FIELDS=new Ie("gui.entity.disabled_fields",!0);static#r=this.PLATFORM_GUI_ENTITY_FIELDS=new Ie("gui.entity.fields",!0);static#a=this.PLATFORM_GUI_SEARCH_CRITERIA_FIELDS=new Ie("gui.search.fields",!0);static#s=this.PLATFORM_GEO_INFO_SYSTEMS=new Ie("geoinfo_systems");static#l=this.PLATFORM_DEFAULT_POSITION_LAT=new Ie("default_position.lat");static#c=this.PLATFORM_DEFAULT_POSITION_LONG=new Ie("default_position.long");static#d=this.PLATFORM_MEDIA_UPLOAD_SIZE_LIMIT=new Ie("media_upload_size_limit");static#m=this.PLATFORM_MEDIA_SUFFIXES=new Ie("media_suffixes");static#u=this.PLATFORM_MEDIA_COPYRIGHT_CONFIRMATION_ENABLED=new Ie("media_copyright_confirmation.enabled");static#p=this.PLATFORM_MEDIA_MANAGEMENT_FILE_BROWSER_HIDDEN=new Ie("media_management.hide_file_browser");static#_=this.PLATFORM_MEDIA_MANAGEMENT_FILE_BROWSER_HIDDEN_SMALL_MM=new Ie("media_management.hide_file_browser.small_mm");static#f=this.PLATFORM_MEDIA_MANAGEMENT_START_WITH_FILE_BROWSER=new Ie("media_management.start_with_file_browser");static#g=this.PLATFORM_MEDIA_MANAGEMENT_DEFAULT_FOLDER=new Ie("media_management.default_folder");static#h=this.PLATFORM_MEDIA_COPYRIGHT_CONFIRMATION_LINK_0=new Ie("media_copyright_confirmation.link.0",!0);static#x=this.PLATFORM_MEDIA_COPYRIGHT_CONFIRMATION_LINK_1=new Ie("media_copyright_confirmation.link.1",!0);static#v=this.PLATFORM_MEDIA_PROVIDER=new Ie("media_provider");static#b=this.PLATFORM_IMAGE_LIST_TYPE_ID=new Ie("image_list_type_id");static#C=this.PLATFORM_IMAGE_LIST_SKIP_DIALOG=new Ie("image_list_type_skip_dialog");static#y=this.PLATFORM_IMAGE_DEFAULT_TYPE_ID=new Ie("image_type_default");static#O=this.PLATFORM_GUI_CLIENT_HIERARCHY=new Ie("gui.client_hierarchy");static#P=this.PLATFORM_GEOINFO_SET_LOCATION_REGIONS=new Ie("geoinfo.set_location_regions");static#M=this.PLATFORM_IMPORT_IMMUTABLE_SOURCES=new Ie("import.immutable_sources");static#T=this.PLATFORM_CONTACTLISTS_ENABLED=new Ie("contactlist.enabled");static#E=this.PLATFORM_IMPORT_SOURCE_NAMES=new Ie("import.source_names",!0);static#A=this.PLATFORM_COUNTRIES=new Ie("countries");static#w=this.PLATFORM_WORKFLOW_DATAMANAGER_USER_ID=new Ie("workflow.datamanager.user_id");static#D=this.PLATFORM_WORKFLOW_DATAMANAGER_SELECTABLE_CLIENT_IDS=new Ie("workflow.datamanager.selectable_client_ids");static#I=this.PLATFORM_WORKFLOW_USE_DISPATCHER_STATE_ENGINE=new Ie("workflow.use_dispatcher_state_engine");static#S=this.PLATFORM_STANDARD_IMPORT_ENTITYTYPES=new Ie("standard_import.entity_types");static#F=this.PLATFORM_STANDARD_IMPORT=new Ie("standard_import",!0);static#L=this.IMXPLATFORM_MODULES=new Ie("modules");static#R=this.IMXPLATFORM_TO_MIGRATE_MODULES=new dt("modules");static#k=this.IMXPLATFORM_ANNOUNCEMENT_QR_PAGE_TITLE=new Ie("announcement_qr_page_title");static#N=this.IMXPLATFORM_ANNOUNCEMENT_QR_PAGE_LOGO_URL=new Ie("announcement_qr_page_logo_url");static#U=this.IMXPLATFORM_GEOSPATIAL_ENABLED=new Ie("geospatial.enabled");static#B=this.PLATFORM_GEOCOORDS_LONG_LAT_ORDER=new Ie("geocoords.long_lat_order");static#Z=this.IMXPLATFORM_ROUTE_EDITOR_ENABLED=new Ie("route_editor.enabled");static#H=this.PLATFORM_CONTENT_SCORE_ENABLED=new Ie("content_score.enabled");static#G=this.PLATFORM_OPEN_DATA_ENABLED=new Ie("opendata.enabled");static#J=this.PLATFORM_ADVANCED_REGION_MANAGEMENT_ENABLED=new Ie("advanced.region_management.enabled");static#Q=this.IMXPLATFORM_DUPLICATES_REMOVE_AFTER_RESOLVE=new Ie("duplicates.list.removeAfterResolve");static#V=this.IMXPLATFORM_DUPLICATES_SHOW_RESOLVE_ALL=new Ie("duplicates.list.showResolveAll");static#Y=this.IMXPLATFORM_WHL_PREVIEW_NEW_TAB=new Ie("whl.preview.new_tab");static#W=this.IMXPLATFORM_FILTER_CLIENT_USE_CLIENT_SHUFFLE=new Ie("filter.client.use_client_shuffle");static#z=this.IMXPLATFORM_EVENT_LOCATION_CONTRIBUTOR_AUTOCOMPLETE_FILTER_ENTITY_STATES=new Ie("event_location_contributor_autocomplete.filter.entity_states");static#j=this.IMXPLATFORM_UNIVERSAL_SEARCH_ACTIVATE=new Ie("universal_search.activate");static#K=this.IMXPLATFORM_HIDE_EDIT_GEO_INFO=new Ie("hide.edit_geo_info");static#$=this.IMXPLATFORM_LOCK_GEO_INFO_COORDINATES=new Ie("lock_geoinfo_coordinates.enabled");static#q=this.IMXPLATFORM_DETAIL_SHOW_REFERENCES_DIALOG=new Ie("detail.references.references_dialog");static#X=this.IMXPLATFORM_MTK_MAP_DEFAULT_ZOOM=new Ie("mtk_map.default_zoom");static#ee=this.IMXPLATFORM_MTK_MAP_SHOW_SATELLITE_MAP=new Ie("mtk_map.show_satellite_map");static#te=this.IMXPLATFORM_ANNOUNCEMENT_ACTUAL_OCCUPANCY_REQUIRED=new Ie("announcement.actual_occupancy.required");static#ne=this.IMXPLATFORM_HIDE_DUPLICATE_GROUP_ICONS=new Ie("hide.duplicate_group_icons");static#ie=this.IMXPLATFORM_TRANSLATION_AVAILABLE_LANGUAGES=new Ie("translation.available_languages");static#oe=this.PLATFORM_AI_GENERATION_ENABLED=new Ie("ai_generation.enabled");static#re=this.PLATFORM_SITE_UNDER_CONSTRUCTION=new Ie("site_under_construction");constructor(Jt,he){super(Jt,he),this.pName=Jt,this.expandable=he}getPrefix(){return"imxplatform"}}let ot=(()=>{class kt{constructor(he){this.http=he,this.logger=Ue("HttpDataAccessService",Pt_name),this.logger.info("Creating HttpDataAccessService")}request(he,Re,Qe){return this.http.request(he,Re,Qe)}get(he,Re){return this.http.get(he,Re)}post(he,Re,Qe){return this.http.post(he,Re,Qe)}put(he,Re,Qe){return this.http.put(he,Re,Qe)}delete(he,Re){return this.http.delete(he,Re)}patch(he,Re,Qe){return this.http.patch(he,Re,Qe)}head(he,Re){return this.http.head(he,Re)}options(he,Re){return this.http.options(he,Re)}static#e=this.\u0275fac=function(Re){return new(Re||kt)(Dt.LFG(l.eN))};static#t=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"})}return kt})();class ct{constructor(Jt,he,Re){this.permissionAuthorities=he,this.inheritedPermissionAuthorities=Re,this.principal=Jt}}class tn{}class yi extends tn{getIdentifier(){return null}}class ni extends tn{constructor(Jt){super(),this.user=Jt}getIdentifier(){return this.user.loginname}getUser(){return this.user}}class sn{}class bn extends sn{constructor(Jt,he){super(),this.username=Jt,this.password=he}}class vt extends tn{constructor(Jt){super(),this.username=Jt}getIdentifier(){return this.username}}let nn=(()=>{class kt extends s{constructor(he,Re){super(),this.http=he,this.logger=Ue("HttpBasicAuthenticationProviderService",Pt_name),this.logger.info("Creating HttpBasicAuthenticationProviderService"),this.loginUrl$=Re.getString(Ie.IMXPLATFORM_LOGIN_URL)}login(he){return he instanceof bn?this.loginUrl$.pipe((0,p.w)(Re=>{this.logger.info("set Login-URL: "+Re);const Qe=Re.replace("{username}",he.username);return this.http.get(Qe,this.buildRequestOptionsFromCredentials(he)).pipe((0,c.U)(Ht=>{const qt=Ht.AuthenticationInfo;if(qt){const Lo=qt.permissionAuthorities.map(Oa=>({name:Oa.authority,actions:Oa.actions})),ur=qt.inheritedPermissionAuthorities.map(Oa=>({name:Oa.authority,actions:Oa.actions}));return new ct(new ni(qt.user.User),Lo,ur)}return new ct(new vt(he.username),[],[])}),(0,o.K)(Ht=>(this.logger.warn("Authentication failed",Ht),Ht instanceof b?(0,i._)(Ht):(0,t.D)([new ct(new yi,[],[])]))),(0,x.C)(),(0,u.x)())})):(0,i._)(new b("HttpBasicAuthenticationProvider can only handle login requests with UsernamePasswordCredentials"))}logout(){return(0,t.D)([!0])}buildRequestOptionsFromCredentials(he){return{headers:this.addAuthorizationHeaders(he,new l.WM),withCredentials:!0}}base64EncodeUnicode(he){return btoa(encodeURIComponent(he).replace(/%([0-9A-F]{2})/g,function(Re,Qe){return String.fromCharCode(parseInt(Qe,16))}))}addAuthorizationHeaders(he,Re){return Re.append("Authorization","Basic "+this.base64EncodeUnicode(he.username+":"+he.password)).append("X-Requested-With","XMLHttpRequest")}static#e=this.\u0275fac=function(Re){return new(Re||kt)(Dt.LFG(ot),Dt.LFG(Rn))};static#t=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"})}return kt})();const rn=new Dt.OlP("imxplatform.configuration.loader"),ii=new Dt.OlP("imxplatform.configuration.merger");let Oo=(()=>{class kt{merge(he){return he.pipe((0,c.U)(Re=>{const Qe=[];return Re.forEach(Ht=>{const qt=Qe.findIndex(Lo=>Lo.key===Ht.key);qt>=0?Qe[qt].priority<Ht.priority&&(Qe[qt]=Ht):Qe.push(Ht)}),Qe.map(Ht=>({key:Ht.key,value:Ht.value}))}))}static#e=this.\u0275fac=function(Re){return new(Re||kt)};static#t=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac})}return kt})();var no=a(49193),Li=a(17927);class Ii{constructor(Jt,he){this.priority=Jt,this.dataAccess=he,this.logger=Ue("ImxPlatformConfigurationLoaderService",Pt_name),this.loadConfig()}loadConfig(){const Jt=(0,Oe.H)(0,6e5);this.logger.debug("Start loading configuration."),this.propertySource$=Jt.pipe((0,Li.b)(he=>this.logger.debug("load config "+he)),(0,p.w)(()=>{try{return this.dataAccess.getConfiguration()}catch{return(0,no.of)(void 0)}}),(0,c.U)(he=>he.map(Re=>({key:Re.key,value:Re.value,priority:this.priority}))))}get(){return this.propertySource$}}let _i=(()=>{class kt{constructor(he,Re){this.dataAccessService=he,this.logger=Ue("ImxDataAccessService",Pt_name),this.logger.info("Creating ImxDataAccessService"),Re.getString(Ie.IMXPLATFORM_API_URL).subscribe(Qe=>{this.imxPlatformBaseUrl=Qe,this.logger.info("new API-URL: "+Qe)})}request(he,Re,Qe){return this.logger.info("Http "+he+" "+Re),this.dataAccessService.request(he,this.buildUrl(Re),Qe)}get(he,Re){return this.logger.info("Http GET "+he),this.dataAccessService.get(this.buildUrl(he),Re)}post(he,Re,Qe){return this.logger.info("Http POST "+he),this.dataAccessService.post(this.buildUrl(he),Re,Qe)}put(he,Re,Qe){return this.logger.info("Http PUT "+he),this.dataAccessService.put(this.buildUrl(he),Re,Qe)}delete(he,Re){return this.logger.info("Http DELETE "+he),this.dataAccessService.delete(this.buildUrl(he),Re)}patch(he,Re,Qe){return this.logger.info("Http PATCH "+he),this.dataAccessService.patch(this.buildUrl(he),Re,Qe)}head(he,Re){return this.dataAccessService.head(this.buildUrl(he),Re)}options(he,Re){return this.dataAccessService.options(this.buildUrl(he),Re)}buildUrl(he){return`${this.imxPlatformBaseUrl}/${he}`}static#e=this.\u0275fac=function(Re){return new(Re||kt)(Dt.LFG(ot),Dt.LFG(Rn))};static#t=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"})}return kt})(),En=(()=>{class kt{constructor(he){this.dataAccess=he,this.logger=Ue("ImxPlatformDataAccessService",Pt_name),this.logger.info("Creating ImxPlatformCoreDataAccessService")}getConfiguration(){return this.dataAccess.get("admin/config").pipe((0,c.U)(he=>he.configuration),(0,x.C)(),(0,u.x)())}getUserInfo(he){return this.dataAccess.get("user/"+he+"/").pipe((0,c.U)(Re=>Re.User),(0,x.C)(),(0,u.x)())}getUserProfile(he){return this.dataAccess.get("user/"+he+"/profile").pipe((0,c.U)(Re=>Re.UserProfile),(0,x.C)(),(0,u.x)())}static#e=this.\u0275fac=function(Re){return new(Re||kt)(Dt.LFG(_i))};static#t=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"})}return kt})();var co=a(88419),yn=a(23291),ln=a(49185),He=a(8367);let rt=(()=>{class kt{constructor(he,Re){this.configLoaders=he,this.configMerger=Re,this.logger=Ue("ConfigurationProvider",Pt_name),this.snapshot={},this.configSubscription=void 0,this.properties=new He.t(1),this.initialized$=new He.t(1)}initialize(){this.logger.debug("Initializing Configuration");const he=this.configLoaders.map(Qe=>Qe.get()).filter(Qe=>void 0!==Qe),Re=(0,yn.aj)(he,(...Qe)=>[].concat.apply([],Qe));this.configSubscription=this.configMerger.merge(Re).pipe((0,ft.x)()).subscribe(Qe=>{try{this.snapshot=Qe.reduce((Ht,qt)=>(Ht[qt.key]=qt.value,Ht),{}),this.properties.next(Qe),this.initialized$.next(!0),this.logger.debug("Configuration loaded: "+JSON.stringify(Qe))}catch{this.logger.warn("An error occurred while trying to load the configuration. Try later again ...")}},()=>{this.logger.error("An error occurred while trying to load the configuration.")},()=>{this.logger.info("Completing config observables."),this.properties.complete()})}clear(){this.logger.debug("Cleanup Configuration"),this.configSubscription&&(this.configSubscription.unsubscribe(),this.configSubscription=void 0),this.initialized$.next(!1),this.properties.next([]),this.snapshot={}}isInitialized(){return this.initialized$}getList(){return this.properties.pipe((0,ft.x)())}getString(he,Re){return this.properties.pipe((0,c.U)(Qe=>Qe.find(Ht=>Ht.key===he.paramName)||{key:he,value:Re}),(0,c.U)(Qe=>Qe.value),(0,ve.h)(Qe=>typeof Qe<"u"),(0,Li.b)(Qe=>this.logger.debug("  config value for "+he.paramName+": "+Qe)),(0,ft.x)())}getNumber(he,Re){return this.properties.pipe((0,c.U)(Qe=>Qe.find(Ht=>Ht.key===he.paramName)||{key:he,value:Re}),(0,c.U)(Qe=>Qe.value),(0,ve.h)(Qe=>typeof Qe<"u"),(0,Li.b)(Qe=>this.logger.debug("  config value for "+he.paramName+": "+Qe)),(0,ft.x)())}getBoolean(he,Re){return this.properties.pipe((0,c.U)(Qe=>Qe.find(Ht=>Ht.key===he.paramName)||{key:he,value:Re||!1}),(0,c.U)(Qe=>JSON.parse(Qe.value)),(0,ve.h)(Qe=>typeof Qe<"u"),(0,Li.b)(Qe=>this.logger.debug("  config value for "+he.paramName+": "+Qe)),(0,ft.x)())}getStringFromSnapshot(he,Re){return this.getValueFromSnapshot(he,Re)}getNumberFromSnapshot(he,Re){const Qe=this.getValueFromSnapshot(he,Re);return"number"==typeof Qe?Qe:"string"==typeof Qe?Number.parseFloat(Qe):void 0}getBooleanFromSnapshot(he,Re){const Qe=this.getValueFromSnapshot(he,Re);return"boolean"==typeof Qe?Qe:"string"==typeof Qe&&"true"===Qe.toLowerCase()}getValueFromSnapshot(he,Re){let Qe;for(let Ht=he;!Qe&&void 0!==Ht;Ht=Ht.parent)Qe=this.snapshot[Ht.paramName];return!Qe&&void 0!==Re&&(Qe=Re),Qe}static#e=this.\u0275fac=function(Re){return new(Re||kt)(Dt.LFG(rn),Dt.LFG(ii))};static#t=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"})}return kt})();var $e=a(15646),Ve=a(72079),Ce=a(96743),tt=a(45125);let ht=(()=>{class kt{constructor(he,Re=kt.DEFAULT_MAX_AGE){this.cacheName=he,this.maxAge=Re,this.logger=Ue("EntityCache",Pt_name),this.observableCache=new Map,this.complete=!1}static#e=this.DEFAULT_MAX_AGE=9e5;get(he,Re){this.logger.debug("get from cache ["+this.cacheName+"]"+he);const Qe=this.observableCache.get(he);return!Qe||this.isExpired(Qe)&&Re?Re?(this.logger.debug("Value not in cache ["+this.cacheName+"]; calling fallback with key: "+he),Re(he).pipe((0,Ce.zg)(Ht=>this.put(he,Ht)),(0,Li.b)(Ht=>this.logger.debug("Value retrieved from fallback: "+Ht)))):void 0:Qe.pipe((0,c.U)(Ht=>(this.logger.debug("Value retrieved from cache ["+this.cacheName+"]: "+Ht.value),Ht.value)))}getCachedAsObservables(he){const Re=[];return this.observableCache.forEach((Qe,Ht)=>{const qt=this.get(Ht,he);qt&&Re.push(qt)}),(0,no.of)(Re)}getCached(he){const Re=[];return this.observableCache.forEach((Qe,Ht)=>{this.isEntryExpired(Qe.getValue()),Re.push(Qe.getValue().value)}),(0,no.of)(Re)}put(he,Re){let Qe=this.observableCache.get(he);const Ht={value:Re,expiry:Date.now()+this.maxAge};return null==Qe?Qe=new tt.X(Ht):Qe.next(Ht),this.logger.debug("Put entry in cache  "+this.cacheName+"["+he+"]: "+JSON.stringify(Re)),this.observableCache.set(he,Qe),Qe.pipe((0,c.U)(qt=>qt.value))}putAll(he){const Re=new Set,Qe=[];for(const Ht of he)this.put(Ht.key,Ht.val),Qe.push(Ht.val),Re.add(Ht.key);return this.retainInCache(Re),this.complete=!0,(0,no.of)(Qe)}putAllReturnAsObservables(he){const Re=new Set,Qe=[];for(const Ht of he)Qe.push(this.put(Ht.key,Ht.val)),Re.add(Ht.key);return this.retainInCache(Re),this.complete=!0,(0,no.of)(Qe)}retainInCache(he){const Re=Array.from(this.observableCache.keys());for(const Qe of Re)he.has(Qe)||this.observableCache.delete(Qe)}remove(he){return this.observableCache.delete(he)}contains(he){return this.observableCache.has(he)}isComplete(){return this.isAnyExpired()&&(this.complete=!1),this.complete}size(){return this.observableCache.size}isExpired(he){return this.isEntryExpired(he.getValue())}isEntryExpired(he){const Re=he.expiry<Date.now();return Re&&this.logger.debug("Entry expired: "+he.value),Re}isAnyExpired(){const he=Array.from(this.observableCache.values());for(const Re of he)if(this.isExpired(Re))return this.complete=!1,!0;return!1}}return kt})();class Qt{constructor(Jt,he,Re,Qe,Ht=he){this.items=Jt,this.totalNumberOfResults=he,this.totalNumberOfRoots=Ht,this.page=Re,this.pageSize=Qe,this.numberOfPages=0!==Qe?Math.ceil(he/Qe):0,this.pageIndices=Array.from(new Array(this.numberOfPages).keys())}}const Un="ONE_PAGE";function Yt(kt){return null!=kt&&void 0!==kt.pageIdx}function yt(kt){return null!=kt&&void 0!==kt.field}class si{constructor(Jt,he){this.dataAccess=Jt,this.entityType=he,this.logger=Ue("BaseEntityDao",Pt_name),this.DATAOBJECTURL="dataobject/",this.observableForAllExpired=!0,this.logger.debug("New BaseEntityDao for type: "+he)}getType(){return this.entityType}buildRequestOptionParams(Jt){return Jt?Object.assign(this.buildPagingParams(Jt.paging),this.buildSortParams(Jt.sortFields)):{}}buildSortParams(Jt){return{}}buildPagingParams(Jt){if("number"==typeof Jt)return 0===Jt?{page:1}:{page:Jt};if(Jt===Un)return{page:1,size:1e8};if(Yt(Jt)){const he={page:Jt.pageIdx};return Jt.pageSize&&(he.size=Jt.pageSize),he}return{}}findById(Jt){return Jt>=0?this.dataAccess.get(`${this.DATAOBJECTURL+this.entityType}/${Jt}`).pipe((0,c.U)(he=>he[Object.keys(he)[0]]),(0,x.C)(),(0,u.x)()):(0,no.of)()}findAll(Jt=!0){return this.find({},{paging:Un})}find(Jt,he){const Re=Object.assign(Jt||{},this.buildRequestOptionParams(he));return this.dataAccess.get(this.DATAOBJECTURL+this.entityType,{params:Re}).pipe((0,c.U)(Qe=>{const Ht=Qe[Object.keys(Qe)[0]];return new Qt(Ht,Qe.totalElements,Qe.number,Qe.size)}),(0,x.C)(),(0,u.x)())}insert(Jt){return this.insertInternal(Jt,!1)}insertInternal(Jt,he){const Re=Object.assign({},Jt);!1===he&&delete Re.id;const Qe={};return Qe[this.entityType]=Re,this.dataAccess.post(this.DATAOBJECTURL+this.entityType,Qe).pipe((0,o.K)(Ht=>(0,i._)(Ht.error?Ht.error:Ht)),(0,c.U)(Ht=>Ht[Object.keys(Ht)[0]]),(0,x.C)(),(0,u.x)())}update(Jt){const he={};return he[this.entityType]=Jt,this.dataAccess.put(`${this.DATAOBJECTURL+this.entityType}/${Jt.id}`,he).pipe((0,o.K)(Re=>(0,i._)(Re.error?Re.error:Re)),(0,c.U)(Re=>Re[Object.keys(Re)[0]]),(0,x.C)(),(0,u.x)())}delete(Jt){return this.dataAccess.delete(`${this.DATAOBJECTURL+this.entityType}/${Jt}`).pipe((0,o.K)(he=>(0,i._)(he.error?he.error:he)),(0,c.U)(he=>!0),(0,x.C)(),(0,u.x)())}newInstance(){return this.dataAccess.get(`${this.DATAOBJECTURL+this.entityType}/new`).pipe((0,c.U)(Jt=>Jt[Object.keys(Jt)[0]]),(0,x.C)(),(0,u.x)())}}let oo=(()=>{class kt{constructor(he){this.dataAccess=he,this.logger=Ue("ImxDaoFactoryService",Pt_name),this.daoMap=new Map}createDao(he){let Re=this.daoMap.get(he);return Re||(this.logger.debug("no registered DAO for entityType "+he+" found - > creating new Dao..."),Re=new si(this.dataAccess,he),this.daoMap.set(he,Re)),Re}static#e=this.\u0275fac=function(Re){return new(Re||kt)(Dt.LFG(_i))};static#t=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"})}return kt})();const _o=new Dt.OlP("entity.daos");let Hn=(()=>{class kt{constructor(he){this.logger=Ue("ImxDaoRegistryService",Pt_name),this.daoMap=new Map,this.logger.info("Creating ImxDaoRegistryService"),he.forEach(Re=>this.registerDao(Re))}registerDao(he){this.logger.info("Registering DAO: "+he.getType()),this.daoMap.set(he.getType(),he)}getDao(he){return this.daoMap.get(he)}static#e=this.\u0275fac=function(Re){return new(Re||kt)(Dt.LFG(_o))};static#t=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"})}return kt})(),mo=(()=>{class kt{constructor(he,Re,Qe){this.daoRegistry=he,this.daoFactoryService=Qe,this.logger=Ue("ImxEntitiesMgrService",Pt_name),this.cacheMap=new Map,this.allObservableMap=new Map,this.allObservableExpiredMap=new Map,this.cacheableEntityTypes=["AddressPoiType","ImageType","User","UserRole","Location","Region","Productline","DeliveryChannel","PrioLevel","Client","Criterion","Category","PaymentOption","SocialMediaProvider","ContactPurpose","DistanceDefinition","LocationDefinition","Tag","InputFieldType","Language","EntityState","AccommodationType","Endowment","BusinessType","Certificate","CertificateClassValue","TourDifficulty","TourAttribute","PooledMediumCategory","MediaLicense","MediaProvider","Gastro2BusinessType","Gastro2CuisineType","LodgeType","DayDefinition","MonthDefintion","AccommodationLanguage","AdacPoiAttribute","AdacPoiPriceList","AdacActivityCategory","AdacPriceCategory","AdacPriceDefinitionAttribute","AdacServiceCategory","AdacEventsCategory","AdacMuseumExhibitionCategory","AdacShoppingCategory","AdacTownscapeEnsembleCategory","AdacBuildingMonumentCategory","AdacLandscapeNatureCategory","AdacHealthWellnessCategory","ConventionEndowment","CenterDistance","TourExposition","TourMonth","TourCategory","HealthfinderDiseaseICD10","BeachAddressbaseAdditionalInfo","BeachType","BeachCharacter","BeachSportOffer","BeachChildrenOffer","BeachBathEndowment","BeachService","BeachEndowment","BeachAdditionalInfoDefinition","ConventionDestinationType","EventSeries","TargetGroup","PriceUnit","EventDateTypeType","AlpsteinCategory","AnnouncementType","OccupancySensor","ExtendedAttribute","ExtendedAttributeDefinitionValue","AddressbaseAttribute","Permission","NoewLodgeAttribute","CampingAttribute","CampingEndowment","PrintPriceExtra","PrintRegion","PrintRoomEndowment","PrintApartmentEndowment","PrintGeneralEndowment","PrintAccommodationCategory","NoewGroupCapacity","PrintDonauradwegAccommodationCategory","Gastro2Endowment","PrintDonauradwegMunicipalityCategory","PrintDonauradwegMunicipalityHighlightCategory","PrintDonauradwegMunicipalityLocation","PrintMunicipalityCategory","PrintMunicipalityInfrastructure","NoewRecreationEndowment","NoewRecreationLanguage","NoewRecreationOpeningAttribute"],this.processClientsideFilter=qt=>(0,Li.b)(Lo=>{if(function Bt(kt){return null!=kt&&void 0===kt.params}(qt)){let ur=Lo.length;for(;ur--;)qt(Lo[ur])||Lo.splice(ur,1)}}),this.processClientsideSorting=qt=>(0,Li.b)(Lo=>{(function Fn(kt){return null!=kt&&void 0!==kt.sortFields})(qt)&&Lo.sort((ur,rr)=>{let Oa=0;if(qt.sortFields)for(const Pa of qt.sortFields)if(yt(Pa)){const Ja=Pa.field,fs=Pa.direction;if(!ur.hasOwnProperty(Ja)||!rr.hasOwnProperty(Ja))return 0;const El="string"==typeof ur[Ja]?ur[Ja].toUpperCase():ur[Ja],Ic="string"==typeof rr[Ja]?rr[Ja].toUpperCase():rr[Ja];if(Oa=El>Ic?1:El<Ic?-1:0,0!==Oa){Oa="DESC"===fs?-Oa:Oa;break}}return Oa})}),this.processClientsidePagination=qt=>(0,c.U)(Lo=>{if(Yt(qt)&&qt.pageSize){const ur=qt.pageIdx,rr=qt.pageSize,Oa=ur*rr,Pa=ur*rr+rr-1;return Pa>=Lo.length&&Lo.splice(Pa+1),Oa>0&&Lo.splice(0,Oa),new Qt(Lo,Lo.length,ur,rr)}return new Qt(Lo,Lo.length,1,Lo.length)}),this.toPaginatedResult=()=>(0,c.U)(qt=>new Qt(qt,qt.length,1,qt.length)),this.logger.info("Creating ImxEntitiesMgrService: "+JSON.stringify(this.daoRegistry)),Re.getString(Ie.IMXPLATFORM_ENTITIES_CACHABLE).subscribe(qt=>{this.logger.info(""),this.cacheableEntityTypes=qt.split(",").map(Lo=>Lo.trim())})}newEntityOfType(he){const Re=this.getDao(he);return this.logger.debug("DAO "+Re.getType()+" new entity"),Re.newInstance()}getEntityWithIdsOfType(he,Re,Qe=!1){return(0,yn.aj)(Re.map(Ht=>this.getEntityWithIdOfType(he,Ht,Qe)))}getEntityWithIdOfType(he,Re,Qe=!1){const Ht=this.getDao(he);if(this.logger.debug("DAO "+Ht.getType()+" getWithId "+Re),this.isCachableEntityType(he)){const qt=this.getCache(he);if(!Qe){const Lo=qt.get(this.cacheKey(Re),ur=>Ht.findById(parseInt(ur)));if(Lo)return Lo.pipe((0,ye.q)(1))}return Ht.findById(Re).pipe((0,Ce.zg)(Lo=>qt.put(this.cacheKey(Re),Lo)),(0,ye.q)(1))}return Ht.findById(Re).pipe((0,ye.q)(1))}getAllEntitiesOfTypeAsObservables(he,Re=!1){const Qe=this.getDao(he);if(this.logger.debug("DAO "+Qe.getType()+" getAllEntitiesOfTypeAsObservables"),this.isCachableEntityType(he)){const Ht=this.getCache(he);return!Re&&Ht.isComplete()?Ht.getCachedAsObservables():Qe.findAll().pipe((0,Ce.zg)(qt=>{const Lo=[];for(const ur of qt.items)Lo.push({key:this.cacheKey(ur),val:ur});return this.isTreeDataObjectArray(qt.items)&&this.buildTree(qt.items),Ht.putAllReturnAsObservables(Lo)}))}return Qe.findAll().pipe((0,c.U)(Ht=>{const qt=[];for(const Lo of Ht.items)qt.push((0,no.of)(Lo));return this.isTreeDataObjectArray(Ht.items)&&this.buildTree(Ht.items),qt}))}getAllEntitiesOfType(he,Re,Qe=!1){let Ht=this.allObservableMap.get(he);return(void 0===Ht||Ht.closed||Qe)&&(Ht=new He.t(1),this.allObservableMap.set(he,Ht),(0,Oe.H)(1e4).pipe((0,ye.q)(1)).subscribe(qt=>{this.allObservableMap.delete(he)}),this.getEntitiesOfType(he,void 0,Re,Qe).pipe((0,o.K)(qt=>(0,no.of)(new Qt([],0,0,0,0)))).subscribe(qt=>{Ht.next(qt)})),Ht.pipe((0,ye.q)(1))}getEntitiesOfType(he,Re,Qe,Ht=!1){const qt=this.getDao(he);if(this.logger.debug("DAO "+qt.getType()+" getEntitiesOfType"),this.isCachableEntityType(he)){const Lo=this.getCache(he);return!Ht&&Lo.isComplete()?Lo.getCached().pipe(this.processClientsideFilter(Re),this.processClientsideSorting(Qe),this.processClientsidePagination(Qe?Qe.paging:void 0),(0,ye.q)(1)):qt.findAll().pipe((0,Ce.zg)(ur=>{const rr=[];for(const Oa of ur.items)rr.push({key:this.cacheKey(Oa),val:Oa});return Lo.putAll(rr)}),(0,Li.b)(ur=>{this.isTreeDataObjectArray(ur)&&this.buildTree(ur)}),this.processClientsideFilter(Re),this.processClientsideSorting(Qe),this.processClientsidePagination(Qe?Qe.paging:void 0),(0,ye.q)(1))}return Qe||(Qe={}),Qe.paging||(Qe.paging="ONE_PAGE"),(function li(kt){return null!=kt&&void 0!==kt.params}(Re)?qt.find(Re.params,Qe):qt.find(void 0,Qe)).pipe((0,Li.b)(ur=>{this.isTreeDataObjectArray(ur.items)&&this.buildTree(ur.items)}),(0,ye.q)(1))}isBaseEntityAvailable(he){return this.getAllEntitiesOfType(he).pipe((0,p.w)(Re=>(0,no.of)(Re.totalNumberOfResults>0)))}refreshEntitiesOfType(he){return this.getAllEntitiesOfType(he,void 0,!0)}refreshEntitiesOfTypeAsObservables(he){return this.getAllEntitiesOfTypeAsObservables(he,!0)}getDao(he){let Re=this.daoRegistry.getDao(he);return void 0===Re&&(Re=this.daoFactoryService.createDao(he)),Re}getCache(he){let Re=this.cacheMap.get(he);return void 0===Re&&(Re=new ht(he),this.cacheMap.set(he,Re)),Re}isCachableEntityType(he){return this.cacheableEntityTypes.indexOf(he)>=0}insertEntityOfType(he,Re){const Qe=this.getDao(he).insert(Re),Ht=this.getCache(he);if(this.isCachableEntityType(he)){const qt=Qe.pipe((0,Ce.zg)(rr=>Ht.put(this.cacheKey(rr),rr)),(0,Li.b)(rr=>{if(this.isTreeDataObject(rr)&&null!=rr.parent&&Ht.contains(rr.parent.id)){const Oa=Ht.get(this.cacheKey(rr.parent));if(Oa){const Pa=Oa.subscribe(Ja=>{rr.parent=Ja,Pa.unsubscribe()})}}})),Lo=new Ve.xQ,ur=qt.subscribe(rr=>{ur.unsubscribe(),Lo.next(rr),Lo.complete()});return Lo}return Qe}updateEntityOfType(he,Re){const Qe=this.getDao(he).update(Re),Ht=this.getCache(he);if(this.isTreeDataObject(Re)&&(Re.children=void 0,Re.parent)&&(Re.parent={id:Re.parent.id}),this.isCachableEntityType(he)){const qt=Qe.pipe((0,Ce.zg)(rr=>Ht.put(this.cacheKey(rr),rr)),(0,Li.b)(rr=>{if(this.isTreeDataObject(rr)){const Oa=Ht.getCached();Oa&&Oa.pipe((0,ye.q)(1)).subscribe(Ja=>{this.replaceInTree(Ja,rr)})}})),Lo=new Ve.xQ,ur=qt.subscribe(rr=>{ur.unsubscribe(),Lo.next(rr),Lo.complete()});return Lo}return Qe}deleteEntityOfType(he,Re){const Qe=this.getDao(he).delete(Re),Ht=this.getCache(he);if(this.isCachableEntityType(he)){const qt=Qe.pipe((0,p.w)(rr=>rr?Ht.get(this.cacheKey(Re))||(0,no.of)(!0):(0,no.of)(!1)),(0,Li.b)(rr=>{"boolean"!=typeof rr&&(this.isTreeDataObject(rr)&&this.removeEntityFromArray(rr.parent.children,Re),Ht.remove(this.cacheKey(Re)))}),(0,c.U)(rr=>!1!==rr||rr)),Lo=new Ve.xQ,ur=qt.subscribe(rr=>{ur.unsubscribe(),Lo.next(rr),Lo.complete()},rr=>{ur.unsubscribe(),Lo.error(rr)});return Lo}return Qe}cacheKey(he){return"number"==typeof he?""+he:""+he.id}removeEntityFromArray(he,Re){if(void 0!==he&&null!==Re)for(let Qe=he.length-1;Qe>=0;Qe--)if(he[Qe].id===Re){const Ht=he[Qe];return he.splice(Qe,1),Ht}}replaceInTree(he,Re){const Qe=new Map(he.map(Ht=>[Ht.id,Ht]));if(Re.parent){const Ht=Re.parent;if(null!=Ht.id){const qt=Qe.get(Ht.id);if(qt){Re.parent=qt;let Lo=!1;const ur=qt.children;if(ur)for(let rr=0;rr<ur.length;rr++)if(ur[rr].id===Re.id){ur[rr]=Re,Lo=!0;break}Lo||(qt.children||(qt.children=[]),qt.children.push(Re))}}}for(const Ht of Array.from(he.values()))if(null!==Ht.parent&&Ht.parent.id===Re.id&&(Ht.parent=Re),null!=Ht.children)for(let qt=Ht.children.length-1;qt>=0;qt--)if(Ht.children[qt].id===Re.id&&(null===Re.parent||Re.parent.id!==Ht.id))return void Ht.children.splice(qt,1)}buildTree(he){const Re=new Map(he.map(Qe=>[Qe.id,Qe]));for(const Qe of Array.from(he.values()))Qe.children=[];for(const Qe of Array.from(he.values())){const Ht=Qe.parent;if(null!=Ht&&null!=Ht.id){const qt=Re.get(Ht.id);qt&&(Qe.parent=qt,qt.children&&qt.children.push(Qe))}}}isTreeDataObjectArray(he){for(const Re of he)if("parent"in Re)return!0;return!1}isTreeDataObject(he){return"parent"in he}static#e=this.\u0275fac=function(Re){return new(Re||kt)(Dt.LFG(Hn),Dt.LFG(rt),Dt.LFG(oo))};static#t=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"})}return kt})();var vn=a(91226),Ji=a(77874);const wn="usernamePassword";let po=(()=>{class kt{serialize(he){if(he instanceof bn)return JSON.stringify({type:wn,value:{username:he.username,password:he.password}});throw new b("Unknown credential type to serialize.")}deserialize(he){const Re=JSON.parse(he);if(Re&&Re.type&&Re.value&&Re.type===wn){const{username:Qe,password:Ht}=Re.value;return new bn(Qe,Ht)}return null}static#e=this.\u0275fac=function(Re){return new(Re||kt)};static#t=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"})}return kt})();const Kn=["id_token","id_token_stored_at","id_token_expires_at","id_token_claims_obj","access_token","nonce","username"];class Wi extends sn{constructor(Jt){super(),this.username=Jt}}let Ft=(()=>{class kt{constructor(){this.currentCredentials=null}static#e=this.\u0275fac=function(Re){return new(Re||kt)};static#t=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"})}return kt})();var Oi=a(22941);const On="lastCredentials",_n="requestCredentials",st="publishCredentials",Dn="flushCredentials",kn="0imx_#sess+_enc!",Fi="tabsession",ui=new Dt.OlP("imxplatform.oauth.provider");let Fo=(()=>{class kt{constructor(he,Re,Qe,Ht,qt,Lo,ur){this.provider=he,this.oauthAuthenticationProvider=Re,this.credentialService=Qe,this.serializationService=Ht,this.dataAccessService=qt,this.route=Lo,this.router=ur,this.logger=Ue("AuthenticationService",Pt_name),this.authenticatedFlag$=new He.t(1),this.registerSessionSharingHooks(),this.initialLogin(!1)}registerSessionSharingHooks(){window.addEventListener("storage",he=>{if(he.key===_n&&this.currentPrincipal?(localStorage.setItem(st,this.encryptSession(this.collectSessionStorageValues(this.currentPrincipal.getIdentifier()))),localStorage.removeItem(st)):he.key===_n&&!this.currentPrincipal&&this.authenticatedFlag$.next(!1),he.key===st&&!this.currentPrincipal){const Re=this.route.snapshot.queryParamMap.get("redirectUrl");if(Re){let Qe;if(Qe=Re.startsWith("http")?new URL(Re):new URL(Re,window.location.origin),Qe&&Qe.searchParams.has(Fi)){const Ht=this.b64DecodeUrlSafe(Qe.searchParams.get(Fi));if(Ht&&he.newValue){const qt=JSON.parse(this.decryptSession(he.newValue));qt&&Object.keys(qt).length>0&&Ht===qt.username&&(Object.keys(qt).forEach(Lo=>{sessionStorage.setItem(Lo,qt[Lo])}),this.initialLogin(!0))}}}}if(he.key===Dn){const Re=he.newValue;if(Re&&Re.length>0){let Qe;Qe="BASIC"===this._authMethod&&sessionStorage.getItem(On)?JSON.parse(sessionStorage.getItem(On)).value.username:sessionStorage.getItem("username"),Re===Qe&&(this.logger.info("received logout command from current session -> logging out user: "+Re),sessionStorage.removeItem(On),Kn.forEach(Ht=>{sessionStorage.removeItem(Ht)}),this.performLogout().subscribe(Ht=>{this.router.navigate(["/login"]).then(()=>{this.router.navigate(["",{outlets:{bottom:null}}]),window.location.reload()})}))}}})}collectSessionStorageValues(he){const Re={lastCredentials:sessionStorage.getItem(On)?sessionStorage.getItem(On):void 0,username:he};return Kn.forEach(Qe=>{sessionStorage.getItem(Qe)&&(Re[Qe]=sessionStorage.getItem(Qe))}),JSON.stringify(Re)}initialLogin(he){const Re=sessionStorage.getItem(On);if(Re){const Qe=this.serializationService.deserialize(Re);Qe instanceof sn?this.login(Qe):this.authenticatedFlag$.next(!1)}else this.authenticatedFlag$.next(!1),!1===he&&(localStorage.setItem(_n,Date.now().toString()),localStorage.removeItem(_n))}encryptSession(he){const Re=new Date,Qe=kn+Re.getMonth()+Re.getDate()+Re.getFullYear();return Ji.AES.encrypt(he,Qe).toString()}decryptSession(he){const Re=new Date,Qe=kn+Re.getMonth()+Re.getDate()+Re.getFullYear();let Ht=null;try{Ht=Ji.AES.decrypt(he,Qe).toString(Ji.enc.Utf8)}catch{}return Ht}b64EncodeUrlSafe(he){if(!he||he.length<=0)return null;he=Date.now()+"#"+he;const Re=new Uint16Array(he.length);for(let Ht=0;Ht<Re.length;Ht++)Re[Ht]=he.charCodeAt(Ht);return btoa(String.fromCharCode(...new Uint8Array(Re.buffer))).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=+$/,"")}b64DecodeUrlSafe(he){if(!he||he.length<=0)return null;he.length%4!=0&&(he=(he+="===".slice(0,4-he.length%4)).replace(/-/g,"+").replace(/_/g,"/"));const Re=atob(he),Qe=new Uint8Array(Re.length);for(let qt=0;qt<Qe.length;qt++)Qe[qt]=Re.charCodeAt(qt);let Ht=String.fromCharCode(...new Uint16Array(Qe.buffer));return Ht.indexOf("#")>0&&(Ht=Ht.substring(Ht.indexOf("#")+1)),Ht}generateTabSessionUrl(he){let Re=he;const Qe=this.currentPrincipal.getIdentifier();if(Qe&&Qe.length>0){let Ht,qt=!1;if(he.startsWith("http")?(qt=!0,Ht=new URL(he)):Ht=new URL(he,window.location.origin),Ht&&!Ht.searchParams.has(Fi)){const Lo=this.b64EncodeUrlSafe(Qe);Ht.searchParams.set(Fi,Lo),!0===qt?Re=Ht.href:(Re=Ht.pathname+Ht.search+Ht.hash,"/"!==he.charAt(0)&&"/"===Re.charAt(0)&&(Re=Re.substring(1)))}}return Re}get currentPrincipal(){return this._currentAuthInfo?this._currentAuthInfo.principal:void 0}get currentAuthInfo(){return this._currentAuthInfo}login(he){sessionStorage.setItem(On,this.serializationService.serialize(he)),this.credentialService.currentCredentials=null;const Re=this.provider.login(he);Re.subscribe(Ht=>{this._currentAuthInfo=Ht,this._authMethod="BASIC",this.credentialService.currentCredentials=he,this.authenticatedFlag$.next(!(Ht.principal instanceof yi)),me(Ht.principal.getIdentifier()||"")},()=>{this._currentAuthInfo=void 0,this._authMethod=void 0,this.credentialService.currentCredentials=null,this.authenticatedFlag$.next(!1)});const Qe=new He.t(1);return Re.subscribe(Qe),Qe}loginByOauth(he){if(this.oauthAuthenticationProvider){const Re=he.correspondenceMail;sessionStorage.setItem("username",Re),sessionStorage.setItem("access_token",sessionStorage.getItem("id_token"));const Qe=this.oauthAuthenticationProvider.login(new Wi(Re));Qe.subscribe(qt=>{this._currentAuthInfo=qt,this._authMethod="OAUTH",this.authenticatedFlag$.next(!(qt.principal instanceof yi)),me(qt.principal.getIdentifier()||"")},()=>{this._currentAuthInfo=void 0,this.credentialService.currentCredentials=null,this.authenticatedFlag$.next(!1)});const Ht=new He.t(1);return Qe.subscribe(Ht),Ht}console.error("no oAuthAuthenticationProvider provided in app.module.ts!")}logout(){return localStorage.setItem(Dn,this.currentPrincipal.getIdentifier()),localStorage.removeItem(Dn),this.oauthAuthenticationProvider&&this.oauthAuthenticationProvider.logout().subscribe(),this.performLogout()}performLogout(){sessionStorage.removeItem(On),this.credentialService.currentCredentials=null;const he=this.provider.logout();he.subscribe(()=>{this._currentAuthInfo=void 0,this.authenticatedFlag$.next(!1)},()=>{this._currentAuthInfo=void 0,this.authenticatedFlag$.next(!1)});const Re=new He.t(1);return he.subscribe(Re),Re}isAuthenticated(){return typeof this._currentAuthInfo<"u"}getAuthenticatedFlag(){return this.authenticatedFlag$}resetPassword(he){return this.dataAccessService.post(`user/${he}/public/passwordReset`,{},{headers:(new l.WM).append("X-Requested-With","XMLHttpRequest")}).pipe((0,o.K)(Re=>(0,i._)(Re.error?Re.error:Re)),(0,x.C)(),(0,u.x)())}static#e=this.\u0275fac=function(Re){return new(Re||kt)(Dt.LFG(s),Dt.LFG(ui,8),Dt.LFG(Ft),Dt.LFG(po),Dt.LFG(_i),Dt.LFG(Oi.gz),Dt.LFG(Oi.F0))};static#t=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"})}return kt})(),At=(()=>{class kt{constructor(he){this.provider=he}get authInfo(){return this.provider.currentAuthInfo}static#e=this.\u0275fac=function(Re){return new(Re||kt)(Dt.LFG(Fo))};static#t=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"})}return kt})(),Jn=(()=>{class kt{constructor(he,Re,Qe){this.securityContextHolder=he,this.entityManager=Re,this.dataAccessService=Qe,this.logger=Ue("RuntimeContextService",Pt_name),this.initialized$=new He.t(1),this.allLanguages=[]}getLoginClient(){const he=this.getLoginUser();if(he)return he.client}getLoginUser(){const he=this.securityContextHolder.authInfo;if(he&&he.principal instanceof ni)return he.principal.getUser()}getCurrentUserProfile$(){if(this.userProfile)return(0,no.of)(this.userProfile);{const he=this.getLoginUser();return he?this.dataAccessService.getUserProfile(he.loginname):vn.E}}getCurrentUserProfile(){return this.userProfile}getCurrentClient(){if(this.getLoginUser()){const Re=this.getLoginClient();if(Re&&null!=Re.id){const Qe=Re.id;return this.entityManager.getAllEntitiesOfType("Client").pipe((0,Ce.zg)(Ht=>this.entityManager.getEntityWithIdOfType("Client",Qe)))}}return vn.E}getCurrentAndSubClients(){return this.currentAndSubClients?(0,no.of)(this.currentAndSubClients):this.getCurrentClient().pipe((0,c.U)(Re=>{const Qe=this.allSubClientsOfClient(Re);return Qe.add(Re),Qe}),(0,co.P)())}getLanguages(){return this.allLanguages}getLanguagesAsObservable(){return(0,no.of)(this.allLanguages)}enrichLanguages(he){return this.allLanguages.filter(Re=>void 0!==he.find(Qe=>Re.id===Qe))}initialize(){this.logger.debug("Initializing Runtime Context"),this.currentAndSubClients=void 0;const he=this.entityManager.getEntitiesOfType("Language"),Re=this.getCurrentAndSubClients(),Qe=this.getCurrentUserProfile$();(0,yn.aj)([Re,he,Qe]).subscribe(([Ht,qt,Lo])=>{this.currentAndSubClients=Ht,this.logger.info("Runtime Context initializing - Clients loaded: "+Ht.size),this.allLanguages=qt.items,this.logger.info("Runtime Context initializing - Languages loaded: "+qt.totalNumberOfResults),this.userProfile=Lo,this.logger.info("Runtime Context initializing - UserProfile loaded: "+JSON.stringify(this.userProfile)),this.initialized$.next(!0)},Ht=>this.logger.info("Error while initializing RuntimeContext: ",Ht))}clear(){this.currentAndSubClients=void 0,this.userProfile=void 0,this.initialized$.next(!1)}isInitialized(){return this.initialized$}allSubClientsOfClient(he){const Re=new Set;return this.fillSetWithChildClients(Re,he),Re}fillSetWithChildClients(he,Re){if(Re.children)for(const Qe of Re.children)he.add(Qe),this.fillSetWithChildClients(he,Qe)}isOwnedEntity(he){return this.getCurrentAndSubClients().pipe((0,c.U)(Re=>Array.from(Re)),(0,c.U)(Re=>Re.some(Qe=>Qe.id===he)))}static#e=this.\u0275fac=function(Re){return new(Re||kt)(Dt.LFG(At),Dt.LFG(mo),Dt.LFG(En))};static#t=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"})}return kt})();class Bn extends Je{constructor(Jt,he){super(Jt.paramName+"."+he,!0,Jt.parent?new Bn(Jt.parent,he):void 0)}getPrefix(){return""}}class Bi extends b{constructor(Jt){super(m.PF_PERMISSION_DENIED),this.missingPermissions=Jt}}class $n{static#e=this.PREFIX_METHOD_PERMISSIONS="METHOD_";static#t=this.PREFIX_FUNCTION_PERMISSIONS="F_";static#n=this.PREFIX_ACTION_PERMISSIONS="A_";static#i=this.PREFIX_PROPERTY_PERMISSIONS="PROP_";static#o=this.PREFIX_FOREIGN_PROPERTY_PERMISSIONS="PROP-F_";static#r=this.PREFIX_VISIBILITY_PERMISSIONS="VIS_";static#a=this.PREFIX_FOREIGN_VISIBILITY_PERMISSIONS="VIS-F_";static#s=this.PREFIX_WEBSERVICE_PERMISSIONS="WS_";static#l=this.METHOD_PERMISSION_ID_RANGE_MIN=1;static#c=this.METHOD_PERMISSION_ID_RANGE_MAX=999999;static#d=this.FUNCTIONAL_PERMISSION_ID_RANGE_MIN=1e6;static#m=this.FUNCTIONAL_PERMISSION_ID_RANGE_MAX=1999999;static#u=this.PROPERTY_PERMISSION_ID_RANGE_MIN=2e6;static#p=this.PROPERTY_PERMISSION_ID_RANGE_MAX=2009999;static#_=this.VISIBILITY_PERMISSION_ID_RANGE_MIN=201e4;static#f=this.VISIBILITY_PERMISSION_ID_RANGE_MAX=2099999;static#g=this.ACTION_PERMISSION_ID_RANGE_MIN=21e5;static#h=this.ACTION_PERMISSION_ID_RANGE_MAX=2109999;static#x=this.WEBSERVICE_PERMISSION_ID_RANGE_MIN=3e6;static#v=this.WEBSERVICE_PERMISSION_ID_RANGE_MAX=3999999;static#b=this.F_ALL={name:"F_:*"};static#C=this.F_SYSTEM_INFO_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"SystemInfo:*"};static#y=this.F_USER_MANAGEMENT_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"UserManagement:*"};static#O=this.F_USER_MANAGEMENT_CREATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"UserManagement:C"};static#P=this.F_USER_MANAGEMENT_READ={name:$n.PREFIX_FUNCTION_PERMISSIONS+"UserManagement:R"};static#M=this.F_USER_MANAGEMENT_UPDATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"UserManagement:U"};static#T=this.F_USER_MANAGEMENT_DELETE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"UserManagement:D"};static#E=this.F_USER_MANAGEMENT_PASSWORD={name:$n.PREFIX_FUNCTION_PERMISSIONS+"UserManagement:P"};static#A=this.F_USER_MANAGEMENT_OWN_UPDATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"UserManagementOwn:U"};static#w=this.F_USER_MANAGEMENT_ROLE_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"UserManagement:Role"};static#D=this.F_ROLE_MANAGEMENT_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"RoleManagement:*"};static#I=this.F_ROLE_MANAGEMENT_CREATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"RoleManagement:C"};static#S=this.F_ROLE_MANAGEMENT_READ={name:$n.PREFIX_FUNCTION_PERMISSIONS+"RoleManagement:R"};static#F=this.F_ROLE_MANAGEMENT_UPDATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"RoleManagement:U"};static#L=this.F_ROLE_MANAGEMENT_DELETE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"RoleManagement:D"};static#R=this.F_CLIENT_MANAGEMENT_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"ClientManagement:*"};static#k=this.F_CLIENT_MANAGEMENT_CREATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"ClientManagement:C"};static#N=this.F_CLIENT_MANAGEMENT_READ={name:$n.PREFIX_FUNCTION_PERMISSIONS+"ClientManagement:R"};static#U=this.F_CLIENT_MANAGEMENT_UPDATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"ClientManagement:U"};static#B=this.F_CLIENT_MANAGEMENT_DELETE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"ClientManagement:D"};static#Z=this.F_PERMISSION_MANAGEMENT_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"PermissionManagement:*"};static#H=this.F_PERMISSION_MANAGEMENT_CREATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"PermissionManagement:C"};static#G=this.F_PERMISSION_MANAGEMENT_READ={name:$n.PREFIX_FUNCTION_PERMISSIONS+"PermissionManagement:R"};static#J=this.F_PERMISSION_MANAGEMENT_UPDATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"PermissionManagement:U"};static#Q=this.F_PERMISSION_MANAGEMENT_DELETE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"PermissionManagement:D"};static#V=this.F_STANDARD_IMPORT_MANAGEMENT_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"StandardImportManagement:*"};static#Y=this.F_STANDARD_IMPORT_MANAGEMENT_CREATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"StandardImportManagement:C"};static#W=this.F_STANDARD_IMPORT_MANAGEMENT_READ={name:$n.PREFIX_FUNCTION_PERMISSIONS+"StandardImportManagement:R"};static#z=this.F_STANDARD_IMPORT_MANAGEMENT_UPDATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"StandardImportManagement:U"};static#j=this.F_STANDARD_IMPORT_MANAGEMENT_DELETE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"StandardImportManagement:D"};static#K=this.F_STANDARD_IMPORT_MANAGEMENT_EXECUTE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"StandardImportManagement:Exec"};static#$=this.F_STANDARD_IMPORT_MAPPING_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"StandardImportMapping:*"};static#q=this.F_STANDARD_IMPORT_MAPPING_CREATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"StandardImportMapping:C"};static#X=this.F_STANDARD_IMPORT_MAPPING_READ={name:$n.PREFIX_FUNCTION_PERMISSIONS+"StandardImportMapping:R"};static#ee=this.F_STANDARD_IMPORT_MAPPING_UPDATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"StandardImportMapping:U"};static#te=this.F_STANDARD_IMPORT_MAPPING_DELETE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"StandardImportMapping:D"};static#ne=this.F_SYSTEM_MAINTENANCE_EXEC={name:$n.PREFIX_FUNCTION_PERMISSIONS+"MaintenanceExec:*"};static#ie=this.F_LOCATION_MANAGEMENT_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"LocationManagement:*"};static#oe=this.F_LOCATION_MANAGEMENT_CREATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"LocationManagement:C"};static#re=this.F_LOCATION_MANAGEMENT_READ={name:$n.PREFIX_FUNCTION_PERMISSIONS+"LocationManagement:R"};static#ae=this.F_LOCATION_MANAGEMENT_UPDATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"LocationManagement:U"};static#se=this.F_LOCATION_MANAGEMENT_DELETE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"LocationManagement:D"};static#le=this.F_REGION_MANAGEMENT_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"RegionManagement:*"};static#ce=this.F_REGION_MANAGEMENT_CREATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"RegionManagement:C"};static#de=this.F_REGION_MANAGEMENT_READ={name:$n.PREFIX_FUNCTION_PERMISSIONS+"RegionManagement:R"};static#me=this.F_REGION_MANAGEMENT_UPDATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"RegionManagement:U"};static#ue=this.F_REGION_MANAGEMENT_DELETE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"RegionManagement:D"};static#pe=this.F_DELIVERYCHANNEL_MANAGEMENT_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"DeliveryChannelManagement:*"};static#_e=this.F_DELIVERYCHANNEL_MANAGEMENT_CREATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"DeliveryChannelManagement:C"};static#fe=this.F_DELIVERYCHANNEL_MANAGEMENT_READ={name:$n.PREFIX_FUNCTION_PERMISSIONS+"DeliveryChannelManagement:R"};static#ge=this.F_DELIVERYCHANNEL_MANAGEMENT_UPDATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"DeliveryChannelManagement:U"};static#he=this.F_DELIVERYCHANNEL_MANAGEMENT_DELETE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"DeliveryChannelManagement:D"};static#xe=this.F_HISTORY_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"History:*"};static#ve=this.F_TAG_MANAGEMENT_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"TagManagement:*"};static#be=this.F_MEMO_MANAGEMENT_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"MemoManagement:*"};static#Ce=this.F_MEMO_MANAGEMENT_CREATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"MemoManagement:C"};static#ye=this.F_MEMO_MANAGEMENT_READ={name:$n.PREFIX_FUNCTION_PERMISSIONS+"MemoManagement:R"};static#Oe=this.F_MEMO_MANAGEMENT_UPDATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"MemoManagement:U"};static#Pe=this.F_MEMO_MANAGEMENT_DELETE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"MemoManagement:D"};static#Me=this.F_MEMO_MANAGEMENT_MARK_PRIVATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"MemoManagement:PRIV"};static#Te=this.F_DASHBOARD_MANAGEMENT_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"DashboardManagement:*"};static#Ee=this.F_DASHBOARD_OWN={name:$n.PREFIX_FUNCTION_PERMISSIONS+"Dashboard:Own"};static#Ae=this.F_DASHBOARD_UPDATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"Dashboard:U"};static#we=this.F_DASHBOARD_DELETE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"Dashboard:D"};static#De=this.F_IMPORT_SOURCE_DATA_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"ImportSourceData:*"};static#Ie=this.F_ADDRESSPOI_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi:*"};static#Se=this.F_ADDRESSPOI_CREATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi:C"};static#Fe=this.F_ADDRESSPOI_READ_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_All:R"};static#Le=this.F_ADDRESSPOI_UPDATE_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_All:U"};static#Re=this.F_ADDRESSPOI_READ_OWN_CLIENT={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_OwnClient:R"};static#ke=this.F_ADDRESSPOI_UPDATE_OWN_CLIENT={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_OwnClient:U"};static#Ne=this.F_ADDRESSPOI_READ_OWN_USER={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_OwnUser:R"};static#Ue=this.F_ADDRESSPOI_UPDATE_OWN_USER={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_OwnUser:U"};static#Be=this.F_ADDRESSPOI_CONTACT_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Contact:*"};static#Ze=this.F_ADDRESSPOI_CONTACT_CREATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Contact:C"};static#He=this.F_ADDRESSPOI_CONTACT_READ_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Contact_All:R"};static#Ge=this.F_ADDRESSPOI_CONTACT_UPDATE_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Contact_All:U"};static#Je=this.F_ADDRESSPOI_CONTACT_DELETE_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Contact_All:D"};static#Qe=this.F_ADDRESSPOI_CONTACT_READ_OWN_CLIENT={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Contact_OwnClient:R"};static#Ve=this.F_ADDRESSPOI_CONTACT_UPDATE_OWN_CLIENT={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Contact_OwnClient:U"};static#Ye=this.F_ADDRESSPOI_CONTACT_DELETE_OWN_CLIENT={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Contact_OwnClient:D"};static#We=this.F_ADDRESSPOI_CONTACT_READ_OWN_USER={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Contact_OwnUser:R"};static#ze=this.F_ADDRESSPOI_CONTACT_UPDATE_OWN_USER={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Contact_OwnUser:U"};static#je=this.F_ADDRESSPOI_CONTACT_DELETE_OWN_USER={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Contact_OwnUser:D"};static#Ke=this.F_ADDRESSPOI_CONTRIBUTOR_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Contributor:*"};static#$e=this.F_ADDRESSPOI_CONTRIBUTOR_CREATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Contributor:C"};static#qe=this.F_ADDRESSPOI_CONTRIBUTOR_READ_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Contributor_All:R"};static#Xe=this.F_ADDRESSPOI_CONTRIBUTOR_UPDATE_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Contributor_All:U"};static#et=this.F_ADDRESSPOI_CONTRIBUTOR_DELETE_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Contributor_All:D"};static#tt=this.F_ADDRESSPOI_CONTRIBUTOR_READ_OWN_CLIENT={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Contributor_OwnClient:R"};static#nt=this.F_ADDRESSPOI_CONTRIBUTOR_UPDATE_OWN_CLIENT={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Contributor_OwnClient:U"};static#it=this.F_ADDRESSPOI_CONTRIBUTOR_DELETE_OWN_CLIENT={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Contributor_OwnClient:D"};static#ot=this.F_ADDRESSPOI_CONTRIBUTOR_READ_OWN_USER={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Contributor_OwnUser:R"};static#rt=this.F_ADDRESSPOI_CONTRIBUTOR_UPDATE_OWN_USER={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Contributor_OwnUser:U"};static#at=this.F_ADDRESSPOI_CONTRIBUTOR_DELETE_OWN_USER={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Contributor_OwnUser:D"};static#st=this.F_ADDRESSPOI_LOCATION_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Location:*"};static#lt=this.F_ADDRESSPOI_LOCATION_CREATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Location:C"};static#ct=this.F_ADDRESSPOI_LOCATION_READ_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Location_All:R"};static#dt=this.F_ADDRESSPOI_LOCATION_UPDATE_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Location_All:U"};static#mt=this.F_ADDRESSPOI_LOCATION_DELETE_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Location_All:D"};static#ut=this.F_ADDRESSPOI_LOCATION_READ_OWN_CLIENT={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Location_OwnClient:R"};static#pt=this.F_ADDRESSPOI_LOCATION_UPDATE_OWN_CLIENT={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Location_OwnClient:U"};static#_t=this.F_ADDRESSPOI_LOCATION_DELETE_OWN_CLIENT={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Location_OwnClient:D"};static#ft=this.F_ADDRESSPOI_LOCATION_READ_OWN_USER={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Location_OwnUser:R"};static#gt=this.F_ADDRESSPOI_LOCATION_UPDATE_OWN_USER={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Location_OwnUser:U"};static#ht=this.F_ADDRESSPOI_LOCATION_DELETE_OWN_USER={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Location_OwnUser:D"};static#xt=this.F_STAT_ADDRESSPOI_EXPORT={name:$n.PREFIX_FUNCTION_PERMISSIONS+"Statistics:AddressPoiExport"};static#vt=this.F_ARTICLE_CREATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"Article:C"};static#bt=this.F_ARTICLE_READ_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"Article_All:R"};static#Ct=this.F_ARTICLE_UPDATE_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"Article_All:U"};static#yt=this.F_ARTICLE_READ_OWN_CLIENT={name:$n.PREFIX_FUNCTION_PERMISSIONS+"Article_OwnClient:R"};static#Ot=this.F_ARTICLE_UPDATE_OWN_CLIENT={name:$n.PREFIX_FUNCTION_PERMISSIONS+"Article_OwnClient:U"};static#Pt=this.F_ARTICLE_READ_OWN_USER={name:$n.PREFIX_FUNCTION_PERMISSIONS+"Article_OwnUser:R"};static#Mt=this.F_ARTICLE_UPDATE_OWN_USER={name:$n.PREFIX_FUNCTION_PERMISSIONS+"Article_OwnUser:U"};static#Tt=this.F_ARTICLE_ASSIGN_USER={name:$n.PREFIX_FUNCTION_PERMISSIONS+"Article_AssignUser:*"};static#Et=this.F_ARTICLE_APPEARANCE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"ArticleAppearance:*"};static#At=this.F_ARTICLE_APPEARANCE_CONFIRM={name:$n.PREFIX_FUNCTION_PERMISSIONS+"ArticleAppearance:Confirm"};static#wt=this.F_ARTICLE_APPEARANCE_REFUSE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"ArticleAppearance:Refuse"};static#Dt=this.F_ANNOUNCEMENT_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"Announcement:*"};static#It=this.F_ANNOUNCEMENT_CREATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"Announcement:C"};static#St=this.F_ANNOUNCEMENT_READ={name:$n.PREFIX_FUNCTION_PERMISSIONS+"Announcement:R"};static#Ft=this.F_ANNOUNCEMENT_UPDATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"Announcement:U"};static#Lt=this.F_ANNOUNCEMENT_DELETE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"Announcement:D"};static#Rt=this.F_OCCUPANCY_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"Occupancy:*"};static#kt=this.F_OCCUPANCY_CREATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"Occupancy:C"};static#Nt=this.F_OCCUPANCY_READ={name:$n.PREFIX_FUNCTION_PERMISSIONS+"Occupancy:R"};static#Ut=this.F_OCCUPANCY_UPDATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"Occupancy:U"};static#Bt=this.F_OCCUPANCY_DELETE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"Occupancy:D"};static#Zt=this.F_POOLED_MEDIUM_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"PooledMedium:*"};static#Ht=this.F_POOLED_MEDIUM_CREATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"PooledMedium:C"};static#Gt=this.F_POOLED_MEDIUM_ASSIGN_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"PooledMedium_All:A"};static#Jt=this.F_POOLED_MEDIUM_READ_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"PooledMedium_All:R"};static#Qt=this.F_POOLED_MEDIUM_UPDATE_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"PooledMedium_All:U"};static#Vt=this.F_POOLED_MEDIUM_DELETE_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"PooledMedium_All:D"};static#Yt=this.F_POOLED_MEDIUM_ASSIGN_OWN_CLIENT={name:$n.PREFIX_FUNCTION_PERMISSIONS+"PooledMedium_OwnClient:A"};static#Wt=this.F_POOLED_MEDIUM_READ_OWN_CLIENT={name:$n.PREFIX_FUNCTION_PERMISSIONS+"PooledMedium_OwnClient:R"};static#zt=this.F_POOLED_MEDIUM_UPDATE_OWN_CLIENT={name:$n.PREFIX_FUNCTION_PERMISSIONS+"PooledMedium_OwnClient:U"};static#jt=this.F_POOLED_MEDIUM_DELETE_OWN_CLIENT={name:$n.PREFIX_FUNCTION_PERMISSIONS+"PooledMedium_OwnClient:D"};static#Kt=this.F_POOLED_MEDIUM_ASSIGN_OWN_USER={name:$n.PREFIX_FUNCTION_PERMISSIONS+"PooledMedium_OwnUser:A"};static#$t=this.F_POOLED_MEDIUM_READ_OWN_USER={name:$n.PREFIX_FUNCTION_PERMISSIONS+"PooledMedium_OwnUser:R"};static#qt=this.F_POOLED_MEDIUM_UPDATE_OWN_USER={name:$n.PREFIX_FUNCTION_PERMISSIONS+"PooledMedium_OwnUser:U"};static#Xt=this.F_POOLED_MEDIUM_DELETE_OWN_USER={name:$n.PREFIX_FUNCTION_PERMISSIONS+"PooledMedium_OwnUser:D"};static#en=this.F_POOLED_MEDIUM_UPDATE_ASSIGNED={name:$n.PREFIX_FUNCTION_PERMISSIONS+"PooledMedium_Assigned:U"};static#tn=this.F_POOLED_MEDIUM_MANAGEMENT_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"PooledMedium_Management:*"};static#nn=this.F_IBE_ASSIGNMENT_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"IbeGetAssignmentsFunction:*"};static#in=this.F_CONFIGURATION_DEFINITION_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"Configuration_Definitions:*"};static#on=this.F_CONFIGURATION_DEFINITION_CREATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"Configuration_Definitions:C"};static#rn=this.F_CONFIGURATION_DEFINITION_READ_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"Configuration_Definitions_All:R"};static#an=this.F_CONFIGURATION_DEFINITION_UPDATE_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"Configuration_Definitions_All:U"};static#sn=this.F_CONFIGURATION_DEFINITION_DELETE_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"Configuration_Definitions_All:D"};static#ln=this.ACTION_PERM_NAME_USER_MANAGMENT_ASSIGN_ROLES="A_UserManagement_AssignRoles";static#cn=this.ACTION_PERM_NAME_RIBBON_DEFS="A_RibbonDefs:";static#dn=this.ACTION_PERM_NAME_BASE_ENTITIES_MGMT="A_BaseEntitiesMgmt:";static#mn=this.ACTION_PERM_NAME_EDIT_ENTITY_ASSIGNED_PRODUCTLINES="A_EditEntityAssignedProductlines:";static#un=this.ACTION_PERM_NAME_VISIBLE_PRODUCTLINES="A_VisibleProductlines:";static#pn=this.ACTION_PERM_NAME_EDIT_PRODUCTLINES="A_EditProductlines:";static#_n=this.ACTION_PERM_NAME_EDITOR_TOOLBAR="A_EditorToolbar";static#fn=this.ACTION_PERM_NAME_EDITOR_FORMATTAGS="A_EditorFormatTags";static#gn=this.ACTION_PERM_NAME_EDITOR_WORDCOUNT_CONFIG="A_EditorWordcountConfig";static#hn=this.ACTION_PERM_NAME_SEARCH_ALLOWED="A_Search_Allowed_";static#xn=this.ACTION_PERM_NAME_SEARCH_FIX="A_Search_Fix_";static#vn=this.ACTION_PERM_NAME_SEARCH_DEFAULT="A_Search_Default_";static#bn=this.F_BASEENTITIES_MANAGEMENT_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"BaseEntityManagement:*"};static#Cn=this.F_MODULE_BASEENTITIES_MANAGEMENT_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"ModuleBaseEntitiesManagement:*"};static#yn=this.F_MODULE_BASEENTITIES_MANAGEMENT_CREATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"ModuleBaseEntitiesManagement:C"};static#On=this.F_MODULE_BASEENTITIES_MANAGEMENT_READ={name:$n.PREFIX_FUNCTION_PERMISSIONS+"ModuleBaseEntitiesManagement:R"};static#Pn=this.F_MODULE_BASEENTITIES_MANAGEMENT_UPDATE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"ModuleBaseEntitiesManagement:U"};static#Mn=this.F_MODULE_BASEENTITIES_MANAGEMENT_DELETE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"ModuleBaseEntitiesManagement:D"};static#Tn=this.F_ADDRESSPOI_DUPLICATES={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Duplicates:*"};static#En=this.F_ADDRESSPOI_DUPLICATES_GENERATE_LIST={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Duplicates:GEN_LIST"};static#An=this.F_ADDRESSPOI_DUPLICATES_RESOLVE={name:$n.PREFIX_FUNCTION_PERMISSIONS+"AddressPoi_Duplicates:RESOLVE"};static#wn=this.F_UNIVERSAL_SEARCH={name:$n.PREFIX_FUNCTION_PERMISSIONS+"UniversalSearch:*"};static#Dn=this.F_ENTITYLIST_CONTACT_MANAGEMENT={name:$n.PREFIX_FUNCTION_PERMISSIONS+"EntityListContactManagement:*"};static#In=this.F_IMPORTER_FILE_UPLOAD_ALL={name:$n.PREFIX_FUNCTION_PERMISSIONS+"Importer_FileUpload:*"};static#Sn=this.F_WIDGET_CONFIG_ADMINISTRATION={name:$n.PREFIX_FUNCTION_PERMISSIONS+"WidgetConfigAdministration:*"};static isWebservicePermission(Jt){return $n.isWebservicePermissionName(Jt.name)&&Jt.id>=$n.WEBSERVICE_PERMISSION_ID_RANGE_MIN&&Jt.id<=$n.WEBSERVICE_PERMISSION_ID_RANGE_MAX}static isWebservicePermissionName(Jt){return Jt.startsWith($n.PREFIX_WEBSERVICE_PERMISSIONS)}static isFunctionPermission(Jt){return $n.isFunctionPermissionName(Jt.name)&&Jt.id>=$n.FUNCTIONAL_PERMISSION_ID_RANGE_MIN&&Jt.id<=$n.FUNCTIONAL_PERMISSION_ID_RANGE_MAX}static isFunctionPermissionName(Jt){return Jt.startsWith($n.PREFIX_FUNCTION_PERMISSIONS)}static isMethodPermission(Jt){return $n.isMethodPermissionName(Jt.name)&&Jt.id>=$n.METHOD_PERMISSION_ID_RANGE_MIN&&Jt.id<=$n.METHOD_PERMISSION_ID_RANGE_MAX}static isMethodPermissionName(Jt){return Jt.startsWith($n.PREFIX_METHOD_PERMISSIONS)}static isPropertyPermission(Jt){return $n.isPropertyPermissionName(Jt.name)&&Jt.id>=$n.PROPERTY_PERMISSION_ID_RANGE_MIN&&Jt.id<=$n.PROPERTY_PERMISSION_ID_RANGE_MAX}static isPropertyPermissionName(Jt){return Jt.startsWith($n.PREFIX_PROPERTY_PERMISSIONS)||Jt.startsWith($n.PREFIX_FOREIGN_PROPERTY_PERMISSIONS)}static isActionPermission(Jt){return $n.isActionPermissionName(Jt.name)&&Jt.id>=$n.ACTION_PERMISSION_ID_RANGE_MIN&&Jt.id<=$n.ACTION_PERMISSION_ID_RANGE_MAX}static isActionPermissionName(Jt){return Jt.startsWith($n.PREFIX_ACTION_PERMISSIONS)}static isVisibilityPermission(Jt){return $n.isVisibilityPermissionName(Jt.name)&&Jt.id>=$n.VISIBILITY_PERMISSION_ID_RANGE_MIN&&Jt.id<=$n.VISIBILITY_PERMISSION_ID_RANGE_MAX}static isVisibilityPermissionName(Jt){return Jt.startsWith($n.PREFIX_VISIBILITY_PERMISSIONS)||Jt.startsWith($n.PREFIX_FOREIGN_VISIBILITY_PERMISSIONS)}static isStaticPermission(Jt){return $n.isFunctionPermission(Jt)||$n.isMethodPermission(Jt)||$n.isWebservicePermission(Jt)}}class Ui{static invertDisabledPropertiesToActions(Jt){const he=new Set;for(const Re of Jt){const Qe=Re.startsWith("!")?Re:"!"+Re;he.add(Qe)}return Array.from(he)}static mergeConfigPermissionProperties(Jt,he,Re){const Qe=new Set,Ht=Re?he:Jt;for(const Lo of Ht)Qe.add(Lo);const qt=Re?Jt:he;for(const Lo of qt){const ur=Lo.startsWith("!")?Lo.substring(1):"!"+Lo;!Qe.has(Lo)&&!Qe.has(ur)&&Qe.add(Lo)}return Array.from(Qe)}static mergeResolveConflictingProperties(Jt,he){if(1!=Jt.size||"*"!==Jt.values().next().value){if(1==he.length&&"*"===he[0])return Jt.clear(),void Jt.add("*");for(const Re of he){const Qe=Re.startsWith("!")?Re.substring(1):"!"+Re,Ht=Re.startsWith("!");Jt.has(Qe)?Ht||(Jt.delete(Qe),Jt.add(Re)):Jt.add(Re)}}}}let Xo=(()=>{class kt{static isPropertyAccepted(he,Re){if(1===Re.length){if(Re.indexOf("!*")>=0||Re.indexOf("")>=0)return!1;if(Re.indexOf("*")>=0)return!0}return!this.isPropertyInDefinitionSet(he,Re,!1)&&(Re.indexOf("*")>=0||he.indexOf(":")<0&&Re.indexOf(":*")>=0||this.isPropertyInDefinitionSet(he,Re,!0))}static extractStaticPermissions(he){return he.permissions.filter(Re=>$n.isStaticPermission(Re))}static isPropertyInDefinitionSet(he,Re,Qe){const Ht=he.indexOf(":");if(Ht>0){const ur=he.substring(0,Ht);if(Re.indexOf((Qe?"":"!")+ur+":*")>=0)return!0}let qt,Lo=0;do{if(Lo=he.indexOf(".",Lo+1),qt=Lo>0?he.substring(0,Lo):he,Re.indexOf((Qe?"":"!")+qt)>=0)return!0}while(qt.length<he.length);return!1}constructor(he,Re){this.config=he,this.securityContextHolder=Re,this.propertyVisibilityPermissionCache=new Map,this.propertyEditPermissionCache=new Map,this.foreignPropertyVisibilityPermissionCache=new Map,this.foreignPropertyEditPermissionCache=new Map}checkPermission(he){if(!this.hasPermission(he))throw new Bi([he])}checkAnyPermission(he){if(!this.hasAnyPermission(he))throw new Bi(he)}hasDirectPermission(he){return void 0!==this.securityContextHolder.authInfo&&this.isPermissionInGrantedAuthorities(he,this.securityContextHolder.authInfo.permissionAuthorities)}hasPermission(he){if(void 0===this.securityContextHolder.authInfo)return!1;let Re=this.isPermissionInGrantedAuthorities(he,this.securityContextHolder.authInfo.permissionAuthorities);return Re||(Re=this.isPermissionInGrantedAuthorities(he,this.securityContextHolder.authInfo.inheritedPermissionAuthorities)),Re}hasPermissionByName(he){if(void 0===this.securityContextHolder.authInfo)return!1;const Re={name:he,actions:""};return null!==Re?this.hasPermission(Re):this.isPermissionNameInGrantedAuthorities(he,this.securityContextHolder.authInfo.permissionAuthorities)}hasAnyPermission(he){if(void 0===this.securityContextHolder.authInfo)return!1;for(const Re of he)if(this.hasPermission(Re))return!0;return!1}hasAnyPermissionByNames(he){return void 0!==this.securityContextHolder.authInfo&&he.split(",").some(Qe=>this.hasPermissionByName(Qe.trim()))}hasAllPermissionByNames(he){return void 0!==this.securityContextHolder.authInfo&&he.split(",").every(Qe=>this.hasPermissionByName(Qe.trim()))}hasAllPermissions(he){for(const Re of he)if(!this.hasPermission(Re))return!1;return!0}calcHasNavigationPermission(he,Re){let Qe=!1;if(he&&he.length>0){let Ht=he;Ht.includes(":")&&(Ht=Ht.split(":")[1]),Re.includes(he)?Qe=!0:Re.includes("!"+he)?Qe=!1:Re.includes(Ht+":*")||Re.includes(Ht)?Qe=!0:Re.includes("!"+Ht+":*")||Re.includes("!"+Ht)?Qe=!1:Re.includes("*")?Qe=!0:Re.includes("!*")&&(Qe=!1)}else Qe=!0;return Qe}hasNavigationPermission(he){const Re=this.getActionsForActionPermission($n.ACTION_PERM_NAME_RIBBON_DEFS);return this.calcHasNavigationPermission(he,Re)}calcHasBaseEntityCRUDPermission(he,Re,Qe){let Ht=!1;return Qe.forEach(qt=>{if(qt.startsWith(he)){if(qt===he)Ht=!0;else if(":"===qt.charAt(he.length)){const Lo=qt.substring(he.length+1);Ht=0===Lo.length||Lo.indexOf(Re)>=0}}else if(qt.startsWith("*:")){const Lo=qt.substring(2);(0===Lo.length||Lo.indexOf(Re)>=0)&&(Ht=!0)}}),Ht||(Ht=Qe.includes("*")),Ht}hasBaseEntityCRUDPermission(he,Re){if(this.hasPermissionByName("F_:*"))return!0;if(Re&&1===Re.length){const Qe=this.getActionsForActionPermissionRestrictive($n.ACTION_PERM_NAME_BASE_ENTITIES_MGMT);return this.calcHasBaseEntityCRUDPermission(he,Re,Qe)}return!1}hasBaseEntityPermission(he,Re,Qe){return Qe&&Qe.length>0&&this.hasPermissionByName(Qe)||this.hasBaseEntityCRUDPermission(he,Re)}checkAllPermissions(he){for(const Re of he)if(!this.hasPermission(Re))throw new Bi([Re])}isPermissionInGrantedAuthorities(he,Re){return bt(he.name,he.actions?he.actions:"",Re)}isPermissionNameInGrantedAuthorities(he,Re){return bt(he,"",Re)}getActionsForActionPermission(he){return this.getActionsForActionPermissionWithFallback(he,"*")}getActionsForActionPermissionRestrictive(he){return this.getActionsForActionPermissionWithFallback(he,"!")}getActionsStringForActionPermission(he){if(void 0===this.securityContextHolder.authInfo)return"";const Re=this.getActionsForActionPermissionWithFallback(he);return Array.from(Re).join(",")}getActionsForActionPermissionWithFallback(he,Re){if(void 0===this.securityContextHolder.authInfo)return[];const Qe=this.securityContextHolder.authInfo.permissionAuthorities,Ht=new Set;for(const qt of Qe)qt.name.startsWith(he)&&qt.actions&&qt.actions.split(",").forEach(ur=>Ht.add(ur));return Re&&0===Ht.size&&Ht.add(Re),Array.from(Ht)}getActionsForPropertyPermission(he){return this.getActionsForPropertyPermissionWithPrefix(he,$n.PREFIX_PROPERTY_PERMISSIONS)}getActionsForPropertyPermissionOfForeignObjects(he){return this.getActionsForPropertyPermissionWithPrefix(he,$n.PREFIX_FOREIGN_PROPERTY_PERMISSIONS)}getActionsForPropertyPermissionWithPrefix(he,Re){const Qe=this.getConfigProperties(he,Ie.PLATFORM_DISABLED_ENTITY_FIELDS,!0);let Ht=this.getActionsForPermission(he,Re);return Ht=Ui.mergeConfigPermissionProperties(Qe,Ht,!0),Ht}getActionsForVisibilityPermissionOfForeignObjects(he){return this.getActionsForVisibilityPermissionWithPrefix(he,$n.PREFIX_FOREIGN_VISIBILITY_PERMISSIONS)}getActionsForVisibilityPermission(he){return this.getActionsForVisibilityPermissionWithPrefix(he,$n.PREFIX_VISIBILITY_PERMISSIONS)}getActionsForVisibilityPermissionWithPrefix(he,Re){const Qe=this.getConfigProperties(he,Ie.PLATFORM_GUI_ENTITY_FIELDS,!1);let Ht=this.getActionsForPermission(he,Re);return Ht=Ui.mergeConfigPermissionProperties(Qe,Ht,!0),Ht}getActionsForVisibilityPermissionForSearchCriteria(he){return this.getActionsForVisibilityPermissionForSearchCriteriaWithPrefix(he,$n.PREFIX_VISIBILITY_PERMISSIONS)}getActionsForVisibilityPermissionForSearchCriteriaWithPrefix(he,Re){const Qe=this.getConfigPropertiesForSearchCriteria(he,Ie.PLATFORM_GUI_SEARCH_CRITERIA_FIELDS),Ht=this.getActionsForPermission(he,Re);return Ui.mergeConfigPermissionProperties(Qe,Ht,!0)}getConfigProperties(he,Re,Qe){const Ht=new Bn(Re,he),qt=this.config.getStringFromSnapshot(Ht);let Lo=qt?an(qt):[];return Qe&&(Lo=Ui.invertDisabledPropertiesToActions(Lo)),Lo}getConfigPropertiesForSearchCriteria(he,Re){const Qe=new Bn(Re,he),Ht=this.config.getStringFromSnapshot(Qe);return Ht?an(Ht):[]}getActionsForPermission(he,Re){return this.getActionsForPermissionWithPrefix(Re+he,Re)}getActionsForPermissionWithPrefix(he,Re){if(void 0===this.securityContextHolder.authInfo)return[];const Qe=this.securityContextHolder.authInfo.permissionAuthorities,Ht=new Set,qt=Re+"*";for(const Lo of Qe)if((Lo.name.startsWith(he)||Lo.name.startsWith(qt))&&void 0!==Lo.actions){const ur=Lo.actions.split(",");Ui.mergeResolveConflictingProperties(Ht,ur)}return 0===Ht.size&&Ht.add("*"),Array.from(Ht)}hasPropertyVisibilityPermission(he,Re,Qe){let Ht;this.checkCacheUser();const qt=this.cacheKey(he,Re);if(void 0!==Qe&&(Ht=Qe?this.propertyVisibilityPermissionCache.get(qt):this.foreignPropertyVisibilityPermissionCache.get(qt)),void 0===Ht){const Lo=this.getActionsForVisibilityPermission(he),ur=this.getActionsForVisibilityPermissionOfForeignObjects(he);Ht=Wn(Re,Lo,ur,Qe),void 0!==Qe&&(Qe?this.propertyVisibilityPermissionCache.set(qt,Ht):this.foreignPropertyVisibilityPermissionCache.set(qt,Ht))}return Ht}hasPropertyEditPermission(he,Re,Qe){if(!this.hasPropertyVisibilityPermission(he,Re,Qe))return!1;let Ht;const qt=this.cacheKey(he,Re);if(void 0!==Qe&&(Ht=Qe?this.propertyEditPermissionCache.get(qt):this.foreignPropertyEditPermissionCache.get(qt)),void 0===Ht){const Lo=this.getActionsForPropertyPermission(he),ur=this.getActionsForPropertyPermissionOfForeignObjects(he);Ht=Wn(Re,Lo,ur,Qe),void 0!==Qe&&(Qe?this.propertyEditPermissionCache.set(qt,Ht):this.foreignPropertyEditPermissionCache.set(qt,Ht))}return Ht}hasInstanceBasedEditPermission(he,Re,Qe){return Qe.pipe((0,c.U)(Ht=>Ht.length>0?kt.isPropertyAccepted(he,Ht):void 0))}cacheKey(he,Re){return he+"|"+Re}checkCacheUser(){(void 0===this.cacheUserId||this.cacheUserId!==this.securityContextHolder.authInfo.principal.getIdentifier())&&(this.propertyVisibilityPermissionCache.clear(),this.foreignPropertyVisibilityPermissionCache.clear(),this.propertyEditPermissionCache.clear(),this.foreignPropertyEditPermissionCache.clear(),this.cacheUserId=this.securityContextHolder.authInfo.principal.getIdentifier())}static#e=this.\u0275fac=function(Re){return new(Re||kt)(Dt.LFG(rt),Dt.LFG(At))};static#t=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"})}return kt})();const bt=(kt,Jt,he)=>{if(0===he.length)return!1;for(const Re of he)if(Re.name===kt&&(null==Re.actions?"":Re.actions)===Jt)return!0;return!1},an=kt=>kt.length>0?kt.split(","):[],Wn=(kt,Jt,he,Re)=>Xo.isPropertyAccepted(kt,void 0===Re&&(!he||0===he.length)||Re?Jt:he),eo=new Dt.OlP("imxplatform.navigation.items"),_r="orderPrependIds";function hr(kt){return kt.indexOf("?")>0?[kt.substring(0,kt.indexOf("?"))]:[kt]}function In(kt){const Jt={};kt.indexOf("?")>0&&kt.substring(kt.indexOf("?")+1).split("&").forEach(Qe=>{const Ht=Qe.substring(0,Qe.indexOf("="));Jt[Ht]=Qe.substring(Qe.indexOf("=")+1)});const he={};return Object.keys(Jt).forEach(Re=>{he[Re]=decodeURI(Jt[Re])}),he}function Wr(kt){const Jt={};return kt.split("&").forEach(Re=>{const Qe=Re.substring(0,Re.indexOf("=")),Ht=Re.substring(Re.indexOf("=")+1);Jt[Qe]?Array.isArray(Jt[Qe])?Jt[Qe].push(Ht):Jt[Qe]=[Jt[Qe],Ht]:Jt[Qe]=Ht}),Jt}function qi(kt){const Jt={};return Object.keys(kt).forEach(he=>{const Re=kt[he];if(Re.includes("TODAY")){const Qe=function P(kt){let Jt;if("TODAY"===kt)Jt=0;else{if(!kt.includes("TODAY"))return;Jt=parseInt(kt.replace("TODAY",""))}const he=new Date;return he.setHours(0,0,0,0),he.setDate(he.getDate()+Jt),he}(Re);Jt[he]=H(Qe)}else Jt[he]=kt[he]}),Jt}function wi(){return["page","pageSize","navigated","adjusted","orderDirection","orderField","orderPrependIds"]}function zo(kt){const Jt=kt.substring(kt.indexOf("?")+1),he=new URLSearchParams(decodeURI(Jt));return null!==he.get("id")&&(he.delete("id"),["page","pageSize","navigated","adjusted","orderDirection","orderField","orderPrependIds"].forEach(Re=>he.delete(Re)),0===he.size)}function xi(kt){const Jt=kt.substring(kt.indexOf("?")+1);return new URLSearchParams(decodeURI(Jt)).has(_r)}function ki(kt){return kt.toLowerCase()+"s"}function wo(kt,Jt){return kt.toLowerCase()+"s/edit/"+Jt}let Ei=(()=>{class kt{constructor(he){this.router=he}navigateToEntityList(he){let Re={};he.queryParams&&(Object.keys(he.queryParams).forEach(Qe=>{Re[Qe]=decodeURI(he.queryParams[Qe])}),Re=qi(Re)),this.router.navigate(["/"+he.link],{queryParams:Re})}getDefaultQueryParamsForRoute(he,Re){const Qe=this.getDefaultEntityListForRoute(he,Re);if(Qe){let Ht=In(Qe.listInfo);return Ht=qi(Ht),Ht}}getDefaultEntityListForRoute(he,Re){if(Re&&Re.defaultEntityLists)return he.startsWith("/")&&(he=he.substr(1)),Re.defaultEntityLists.find(Qe=>Qe.listInfo===he||Qe.listInfo.startsWith(he+"?"))}static#e=this.\u0275fac=function(Re){return new(Re||kt)(Dt.LFG(Oi.F0))};static#t=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"})}return kt})(),ho=(()=>{class kt{constructor(he,Re,Qe,Ht,qt){this.securityManager=he,this.runtimeContextService=Re,this.entityListNavigateService=Qe,this.configurationProvider=Ht,this.navigationProviders=qt,this.logger=Ue("NavigationService",Pt_name),this.navigationItems=[],this.openSubmenuBlocks=new Set,this.initialized$=new He.t(1)}static navigationItemComparator(he,Re){return he.order-Re.order}initialize(){this.logger.debug("Initializing Navigation"),(0,yn.aj)([this.configurationProvider.isInitialized(),this.runtimeContextService.isInitialized()]).subscribe(([he,Re])=>{he&&Re&&(this.navigationItems=this.initVisibleNavigationItems(),this.navigationItems.filter(Qe=>Qe.open).forEach(Qe=>this.openSubmenuBlocks.add(Qe.labelKey)),this.logger.debug("Found navigation item definition for "+this.navigationProviders.length+" modules.Found navigation items: "+this.navigationItems.length),this.adjustRoutesByProfileSettings(this.navigationItems,this.runtimeContextService.getCurrentUserProfile()),this.initialized$.next(!0))})}isInitialized(){return this.initialized$}clear(){this.navigationItems=[],this.openSubmenuBlocks.clear(),this.initialized$.next(!1)}openBlock(he){this.isBlockOpen(he)?this.openSubmenuBlocks.delete(he):this.openSubmenuBlocks.add(he)}isBlockOpen(he){return this.openSubmenuBlocks.has(he)}getNavigationItems(){return this.navigationItems}initVisibleNavigationItems(){const he=[];return this.getAvailableItems().forEach(Re=>{let Qe=!0;if(Re.permissions&&Re.permissions.length>0&&(Qe=this.securityManager.hasAnyPermission(Re.permissions)),Qe&&this.securityManager.hasNavigationPermission(Re.name))if(Re.children&&Re.children.length>0){const Ht=Re.children.filter(Lo=>!!this.securityManager.hasNavigationPermission(Lo.name)&&(!(Lo.permissions&&Lo.permissions.length>0)||this.securityManager.hasAnyPermission(Lo.permissions)));if(Ht&&Ht.length>0){const Lo=$e(Re);Lo.children=Ht,he.push(Lo)}}else he.push(Re)}),he.forEach(Re=>{Re.children&&Re.children.length>0&&Re.children.sort(kt.navigationItemComparator)}),he.sort(kt.navigationItemComparator),he}getAvailableItems(){const he=[];return this.navigationProviders.forEach(Re=>{Re.getNavigationItems().forEach(Qe=>{if(this.hasItem(he,Qe.labelKey)){const Ht=this.getItemForKey(he,Qe.labelKey);Qe.children&&Qe.children.forEach(qt=>{Ht.children&&!this.hasItem(Ht.children,qt.labelKey)&&Ht.children.push(qt)})}else he.push(Qe)})}),this.logger.debug("Created navigation tree: "+JSON.stringify(he)),he}hasItem(he,Re){return void 0!==he.find(Qe=>Qe.labelKey===Re)}getItemForKey(he,Re){const Qe=he.find(Ht=>Ht.labelKey===Re);if(Qe)return Qe;throw new Error("Can't find navigation element with key: "+Re)}adjustRoutesByProfileSettings(he,Re){he.forEach(Qe=>{this.adjustRouteByProfile(Qe,Re),Qe.children&&Qe.children.forEach(Ht=>{this.adjustRouteByProfile(Ht,Re)})})}adjustRouteByProfile(he,Re){if(he.routerLink){const Qe=this.entityListNavigateService.getDefaultQueryParamsForRoute(he.routerLink,Re);Qe?(Qe.navigated=!0,he.queryParams={...Qe,...he.queryParams}):he.queryParams={navigated:!0,...he.queryParams}}}static#e=this.\u0275fac=function(Re){return new(Re||kt)(Dt.LFG(Xo),Dt.LFG(Jn),Dt.LFG(Ei),Dt.LFG(rt),Dt.LFG(eo))};static#t=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"})}return kt})(),Cr=(()=>{class kt{constructor(he,Re,Qe,Ht){this.authService=he,this.configProvider=Re,this.runtimeContext=Qe,this.navigationService=Ht,this.logger=Ue("AuthenticationInitService",Pt_name),this.authenticationListeners=[],this.authenticationListeners.push(Re,Qe,Ht),he.getAuthenticatedFlag().subscribe(qt=>{qt?this.initialize():this.clear()}),this.allListenerInitialized$=(0,yn.aj)(this.authenticationListeners.map(qt=>qt.isInitialized())).pipe((0,c.U)(qt=>qt.every(Lo=>!0===Lo)),(0,ln.d)(1))}isInitialized(){return this.allListenerInitialized$}initialize(){this.logger.info("Initializing after authentication ..."),this.authenticationListeners.forEach(he=>he.initialize())}clear(){this.logger.debug("Cleanup after logout ..."),this.authenticationListeners.forEach(he=>he.clear())}static#e=this.\u0275fac=function(Re){return new(Re||kt)(Dt.LFG(Fo),Dt.LFG(rt),Dt.LFG(Jn),Dt.LFG(ho))};static#t=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"})}return kt})(),vr=(()=>{class kt{constructor(he){this.authInitService=he,this.logger=Ue("AuthInitFinishedGuard",Pt_name)}canActivate(he,Re){return this.logger.debug("Calling AuthInitFinishedGuard.canActivate"),this.authInitService.isInitialized().pipe((0,ve.h)(Qe=>!0===Qe),(0,co.P)()).toPromise()}getName(){return"AuthInitFinishedGuard"}static#e=this.\u0275fac=function(Re){return new(Re||kt)(Dt.LFG(Cr))};static#t=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"})}return kt})(),qr=(()=>{class kt{constructor(he,Re){this.authenticationService=he,this.router=Re,this.logger=Ue("AuthenticatedGuard",Pt_name)}canActivate(he,Re){return this.logger.debug("Calling AuthenticatedGuard.canActivate"),this.authenticationService.getAuthenticatedFlag().pipe((0,Li.b)(Qe=>{Qe||this.router.navigate(["login"],{queryParams:{redirectUrl:Re.url}})}),(0,co.P)()).toPromise()}getName(){return"AuthenticatedGuard"}static#e=this.\u0275fac=function(Re){return new(Re||kt)(Dt.LFG(Fo),Dt.LFG(Oi.F0))};static#t=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"})}return kt})(),Ra=(()=>{class kt{constructor(he,Re){this.router=he,this.securityManager=Re,this.logger=Ue("HasPermissionGuard",Pt_name)}canActivate(he,Re){const Qe=he.data.permissions;if(Qe){let Ht=Qe;if(Array.isArray(Qe)&&(Ht=Qe.map(qt=>qt.name).join(",")),this.securityManager.hasAnyPermissionByNames(Ht))return(0,no.of)(!0).toPromise()}return this.logger.warn("Access the page "+Re.url+" without needed permissions ["+Qe.map(Ht=>Ht.name).join(",")+"]"),this.router.navigate(["not-authorized"]),(0,no.of)(!1).toPromise()}getName(){return"HasPermissionGuard"}static#e=this.\u0275fac=function(Re){return new(Re||kt)(Dt.LFG(Oi.F0),Dt.LFG(Xo))};static#t=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"})}return kt})(),ss=(()=>{class kt{constructor(he){this.entitiesMgrService=he,this.logger=Ue("ProductlineLoadGuard",Pt_name)}canActivate(he,Re){return this.logger.debug("Calling ProductlineLoadGuard.canActivate"),this.entitiesMgrService.getAllEntitiesOfType("Productline").pipe((0,c.U)(Qe=>!0),(0,co.P)()).toPromise()}getName(){return"ProductlineLoadGuard"}static#e=this.\u0275fac=function(Re){return new(Re||kt)(Dt.LFG(mo))};static#t=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"})}return kt})();var Hs=a(15861);const Cs=new Dt.OlP("imxplatform.guards");let ms=(()=>{class kt{constructor(he,Re){this.router=he,this.allGuards=Re,this.logger=Ue("MasterGuard",Pt_name)}canActivate(he,Re){return he.data&&he.data.guards&&he.data.guards.length?this.executeGuards(he.data.guards,he,Re):Promise.resolve(!0)}executeGuards(he,Re,Qe){var Ht=this;return(0,Hs.Z)(function*(){Ht.logger.debug("Execute MasterGuard with possible guards: <"+Ht.allGuards.length+"> and active guards: <"+he.length+">");let qt=!0;for(const Lo of he){const ur=Ht.allGuards.find(rr=>rr.getName()===Lo);if(ur){if(yield ur.canActivate(Re,Qe).then(rr=>{Ht.logger.debug("Guard: "+Lo+" returned: <"+rr+">"),rr||(qt=!1)}),!qt)break}else Ht.logger.warn("Could not find guard for name: "+Lo)}return Promise.resolve(qt)})()}static#e=this.\u0275fac=function(Re){return new(Re||kt)(Dt.LFG(Oi.F0),Dt.LFG(Cs))};static#t=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"})}return kt})();function ja(kt){return"object"==typeof kt&&null!==kt}function el(kt){return Array.isArray(kt)}function Vs(kt){return"string"==typeof kt}function ls(kt){return"number"==typeof kt}function Fa(kt,Jt,he){if(!kt||!kt.data)return null;if(kt.data&&kt.data[he]&&kt.data[he]===Jt)return kt;{let Re;for(const Qe of kt.children)if(Re=Fa(Qe,Jt,he),Re)return Re}}const Ds=new Dt.OlP("imxplatform.oauth.service"),ka={imgProxy:{baseUrl:"/imxplatform3/images/",signingKey:"efc16fc4504f40ff17eaca8abd639e81d313c7a3957d522cbecffda3c57cee088713e78a8ea573a9d4c6fbfb83d3f6bd703c769be0db9c30fc33db736691e716",signingSalt:"daacd4c60f7c80590d926c8629f1b55b4895dba0b1bb9c2987a9f349df092199415c657adbb44a3720621b93ae2f5304074492f11c6a2cabac30b1d4017c3edc"}},hs=new Dt.OlP("imxplatform.main.navidation.voter");let Ua=(()=>{class kt{constructor(he,Re){this.router=he,this.route=Re}static openNextAncestorAccordion(he){const Re=kt.findNextAncestorAccordionHeader(he);Re&&Re.dispatchEvent(new Event("click"))}static findNextAncestorAccordionHeader(he){if(he){const Re=he.closest(".mat-expansion-panel");return Re?Re.querySelector(".mat-expansion-panel-header"):null}return null}init(){}reload(){const he=this.route.snapshot.queryParams,Re=this.route.snapshot.fragment,Qe=this.router.url.split("/").filter(Ht=>void 0!==Ht&&Ht.length>0).map(Ht=>Ht.split("?")[0]).map(Ht=>Ht.split("#")[0]);this.router.navigateByUrl("/loading",{skipLocationChange:!0}).then(()=>this.router.navigate(Qe||[],{queryParams:he,fragment:Re}))}isInViewport(he){const Re=he.getBoundingClientRect();return Re.top>=0&&Re.bottom<=(window.innerHeight||document.documentElement.clientHeight)}isParentInViewport(he){const Re=he.parentElement.getBoundingClientRect();return Re.top>=0||Re.bottom<=(window.innerHeight||document.documentElement.clientHeight)||Re.top<0&&Re.bottom>(window.innerHeight||document.documentElement.clientHeight)}readScrollAnchor(){if(this.lastActiveScrollAnchor)return this.lastActiveScrollAnchor.getAttribute("id");{const he=this.router.url;return he.includes("#")?he.split("#")[1]:null}}writeScrollAnchor(){const he=document.querySelectorAll("[data-scroll-id]");let Re=Array.from(he).filter(Qe=>this.isInViewport(Qe));Re=0===Re.length?Array.from(he).filter(Qe=>this.isParentInViewport(Qe)):Re,Re.sort((Qe,Ht)=>Qe.getBoundingClientRect().top-Ht.getBoundingClientRect().top),this.lastActiveScrollAnchor=Re.length>0?Re[0]:null}setScrollAnchor(he=null){this.lastActiveScrollAnchor=he}static#e=this.\u0275fac=function(Re){return new(Re||kt)(Dt.LFG(Oi.F0),Dt.LFG(Oi.gz))};static#t=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"})}return kt})(),Tn=(()=>{class kt{constructor(he){this.credentialService=he}base64EncodeUnicode(he){return btoa(encodeURIComponent(he).replace(/%([0-9A-F]{2})/g,function(Re,Qe){return String.fromCharCode(parseInt(Qe,16))}))}intercept(he,Re){const Qe=this.credentialService.currentCredentials;return Qe instanceof bn&&!he.url.includes("public/passwordReset")?Re.handle(he.clone({setHeaders:{Authorization:"Basic "+this.base64EncodeUnicode(Qe.username+":"+Qe.password),"X-Requested-With":"XMLHttpRequest"}})):Re.handle(he)}static#e=this.\u0275fac=function(Re){return new(Re||kt)(Dt.LFG(Ft))};static#t=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"})}return kt})();function Qi(kt){return void 0!==kt.exception&&void 0!==kt.timestamp&&void 0!==kt.localizedMessage&&kt.localizedMessage.length>0}var To=function(kt){return kt.PF_DATABASE_CONSTRAINT="PF_DATABASE_CONSTRAINT",kt}(To||{});let sr=(()=>{class kt{constructor(){this.logger=Ue("HttpErrorInterceptorService",Pt_name)}intercept(he,Re){return Re.handle(he).pipe((0,o.K)(Qe=>Qe.error instanceof ErrorEvent?(this.logger.debug("A client side error occured during HTTP access",Qe),(0,i._)(Qe)):(this.logger.debug("A server side error occured during HTTP access",Qe),504===Qe.status||404===Qe.status&&!Qi(Qe.error)?(0,i._)(new b(m.PF_NOT_AVAILABLE)):(0,i._)(Qe))))}static#e=this.\u0275fac=function(Re){return new(Re||kt)};static#t=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"})}return kt})();function oi(kt){return(oi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Jt){return typeof Jt}:function(Jt){return Jt&&"function"==typeof Symbol&&Jt.constructor===Symbol&&Jt!==Symbol.prototype?"symbol":typeof Jt})(kt)}function Vi(kt,Jt){if(Jt.length<kt)throw new TypeError(kt+" argument"+(kt>1?"s":"")+" required, but only "+Jt.length+" present")}function Hi(kt){Vi(1,arguments);var Jt=Object.prototype.toString.call(kt);return kt instanceof Date||"object"===oi(kt)&&"[object Date]"===Jt?new Date(kt.getTime()):"number"==typeof kt||"[object Number]"===Jt?new Date(kt):(("string"==typeof kt||"[object String]"===Jt)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function Do(kt){if(Vi(1,arguments),!function Ti(kt){return Vi(1,arguments),kt instanceof Date||"object"===oi(kt)&&"[object Date]"===Object.prototype.toString.call(kt)}(kt)&&"number"!=typeof kt)return!1;var Jt=Hi(kt);return!isNaN(Number(Jt))}function $o(kt){if(null===kt||!0===kt||!1===kt)return NaN;var Jt=Number(kt);return isNaN(Jt)?Jt:Jt<0?Math.ceil(Jt):Math.floor(Jt)}function Vr(kt,Jt){return Vi(2,arguments),function yr(kt,Jt){Vi(2,arguments);var he=Hi(kt).getTime(),Re=$o(Jt);return new Date(he+Re)}(kt,-$o(Jt))}function ma(kt){Vi(1,arguments);var he=Hi(kt),Re=he.getUTCDay(),Qe=(Re<1?7:0)+Re-1;return he.setUTCDate(he.getUTCDate()-Qe),he.setUTCHours(0,0,0,0),he}function Wa(kt){Vi(1,arguments);var Jt=Hi(kt),he=Jt.getUTCFullYear(),Re=new Date(0);Re.setUTCFullYear(he+1,0,4),Re.setUTCHours(0,0,0,0);var Qe=ma(Re),Ht=new Date(0);Ht.setUTCFullYear(he,0,4),Ht.setUTCHours(0,0,0,0);var qt=ma(Ht);return Jt.getTime()>=Qe.getTime()?he+1:Jt.getTime()>=qt.getTime()?he:he-1}function Cn(kt){Vi(1,arguments);var Jt=Hi(kt),he=ma(Jt).getTime()-function Yi(kt){Vi(1,arguments);var Jt=Wa(kt),he=new Date(0);return he.setUTCFullYear(Jt,0,4),he.setUTCHours(0,0,0,0),ma(he)}(Jt).getTime();return Math.round(he/6048e5)+1}var uo={};function fo(){return uo}function kr(kt,Jt){var he,Re,Qe,Ht,qt,Lo,ur,rr;Vi(1,arguments);var Oa=fo(),Pa=$o(null!==(he=null!==(Re=null!==(Qe=null!==(Ht=Jt?.weekStartsOn)&&void 0!==Ht?Ht:null==Jt||null===(qt=Jt.locale)||void 0===qt||null===(Lo=qt.options)||void 0===Lo?void 0:Lo.weekStartsOn)&&void 0!==Qe?Qe:Oa.weekStartsOn)&&void 0!==Re?Re:null===(ur=Oa.locale)||void 0===ur||null===(rr=ur.options)||void 0===rr?void 0:rr.weekStartsOn)&&void 0!==he?he:0);if(!(Pa>=0&&Pa<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var Ja=Hi(kt),fs=Ja.getUTCDay(),El=(fs<Pa?7:0)+fs-Pa;return Ja.setUTCDate(Ja.getUTCDate()-El),Ja.setUTCHours(0,0,0,0),Ja}function Qr(kt,Jt){var he,Re,Qe,Ht,qt,Lo,ur,rr;Vi(1,arguments);var Oa=Hi(kt),Pa=Oa.getUTCFullYear(),Ja=fo(),fs=$o(null!==(he=null!==(Re=null!==(Qe=null!==(Ht=Jt?.firstWeekContainsDate)&&void 0!==Ht?Ht:null==Jt||null===(qt=Jt.locale)||void 0===qt||null===(Lo=qt.options)||void 0===Lo?void 0:Lo.firstWeekContainsDate)&&void 0!==Qe?Qe:Ja.firstWeekContainsDate)&&void 0!==Re?Re:null===(ur=Ja.locale)||void 0===ur||null===(rr=ur.options)||void 0===rr?void 0:rr.firstWeekContainsDate)&&void 0!==he?he:1);if(!(fs>=1&&fs<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var El=new Date(0);El.setUTCFullYear(Pa+1,0,fs),El.setUTCHours(0,0,0,0);var Ic=kr(El,Jt),Pc=new Date(0);Pc.setUTCFullYear(Pa,0,fs),Pc.setUTCHours(0,0,0,0);var td=kr(Pc,Jt);return Oa.getTime()>=Ic.getTime()?Pa+1:Oa.getTime()>=td.getTime()?Pa:Pa-1}function ys(kt,Jt){Vi(1,arguments);var he=Hi(kt),Re=kr(he,Jt).getTime()-function Aa(kt,Jt){var he,Re,Qe,Ht,qt,Lo,ur,rr;Vi(1,arguments);var Oa=fo(),Pa=$o(null!==(he=null!==(Re=null!==(Qe=null!==(Ht=Jt?.firstWeekContainsDate)&&void 0!==Ht?Ht:null==Jt||null===(qt=Jt.locale)||void 0===qt||null===(Lo=qt.options)||void 0===Lo?void 0:Lo.firstWeekContainsDate)&&void 0!==Qe?Qe:Oa.firstWeekContainsDate)&&void 0!==Re?Re:null===(ur=Oa.locale)||void 0===ur||null===(rr=ur.options)||void 0===rr?void 0:rr.firstWeekContainsDate)&&void 0!==he?he:1),Ja=Qr(kt,Jt),fs=new Date(0);return fs.setUTCFullYear(Ja,0,Pa),fs.setUTCHours(0,0,0,0),kr(fs,Jt)}(he,Jt).getTime();return Math.round(Re/6048e5)+1}function zr(kt,Jt){for(var he=kt<0?"-":"",Re=Math.abs(kt).toString();Re.length<Jt;)Re="0"+Re;return he+Re}const xo_y=function(Jt,he){var Re=Jt.getUTCFullYear(),Qe=Re>0?Re:1-Re;return zr("yy"===he?Qe%100:Qe,he.length)},xo_M=function(Jt,he){var Re=Jt.getUTCMonth();return"M"===he?String(Re+1):zr(Re+1,2)},xo_d=function(Jt,he){return zr(Jt.getUTCDate(),he.length)},xo_h=function(Jt,he){return zr(Jt.getUTCHours()%12||12,he.length)},xo_H=function(Jt,he){return zr(Jt.getUTCHours(),he.length)},xo_m=function(Jt,he){return zr(Jt.getUTCMinutes(),he.length)},xo_s=function(Jt,he){return zr(Jt.getUTCSeconds(),he.length)},xo_S=function(Jt,he){var Re=he.length,Qe=Jt.getUTCMilliseconds();return zr(Math.floor(Qe*Math.pow(10,Re-3)),he.length)};function Da(kt,Jt){var he=kt>0?"-":"+",Re=Math.abs(kt),Qe=Math.floor(Re/60),Ht=Re%60;if(0===Ht)return he+String(Qe);var qt=Jt||"";return he+String(Qe)+qt+zr(Ht,2)}function ia(kt,Jt){return kt%60==0?(kt>0?"-":"+")+zr(Math.abs(kt)/60,2):as(kt,Jt)}function as(kt,Jt){var he=Jt||"",Re=kt>0?"-":"+",Qe=Math.abs(kt);return Re+zr(Math.floor(Qe/60),2)+he+zr(Qe%60,2)}const Is={G:function(Jt,he,Re){var Qe=Jt.getUTCFullYear()>0?1:0;switch(he){case"G":case"GG":case"GGG":return Re.era(Qe,{width:"abbreviated"});case"GGGGG":return Re.era(Qe,{width:"narrow"});default:return Re.era(Qe,{width:"wide"})}},y:function(Jt,he,Re){if("yo"===he){var Qe=Jt.getUTCFullYear();return Re.ordinalNumber(Qe>0?Qe:1-Qe,{unit:"year"})}return xo_y(Jt,he)},Y:function(Jt,he,Re,Qe){var Ht=Qr(Jt,Qe),qt=Ht>0?Ht:1-Ht;return"YY"===he?zr(qt%100,2):"Yo"===he?Re.ordinalNumber(qt,{unit:"year"}):zr(qt,he.length)},R:function(Jt,he){return zr(Wa(Jt),he.length)},u:function(Jt,he){return zr(Jt.getUTCFullYear(),he.length)},Q:function(Jt,he,Re){var Qe=Math.ceil((Jt.getUTCMonth()+1)/3);switch(he){case"Q":return String(Qe);case"QQ":return zr(Qe,2);case"Qo":return Re.ordinalNumber(Qe,{unit:"quarter"});case"QQQ":return Re.quarter(Qe,{width:"abbreviated",context:"formatting"});case"QQQQQ":return Re.quarter(Qe,{width:"narrow",context:"formatting"});default:return Re.quarter(Qe,{width:"wide",context:"formatting"})}},q:function(Jt,he,Re){var Qe=Math.ceil((Jt.getUTCMonth()+1)/3);switch(he){case"q":return String(Qe);case"qq":return zr(Qe,2);case"qo":return Re.ordinalNumber(Qe,{unit:"quarter"});case"qqq":return Re.quarter(Qe,{width:"abbreviated",context:"standalone"});case"qqqqq":return Re.quarter(Qe,{width:"narrow",context:"standalone"});default:return Re.quarter(Qe,{width:"wide",context:"standalone"})}},M:function(Jt,he,Re){var Qe=Jt.getUTCMonth();switch(he){case"M":case"MM":return xo_M(Jt,he);case"Mo":return Re.ordinalNumber(Qe+1,{unit:"month"});case"MMM":return Re.month(Qe,{width:"abbreviated",context:"formatting"});case"MMMMM":return Re.month(Qe,{width:"narrow",context:"formatting"});default:return Re.month(Qe,{width:"wide",context:"formatting"})}},L:function(Jt,he,Re){var Qe=Jt.getUTCMonth();switch(he){case"L":return String(Qe+1);case"LL":return zr(Qe+1,2);case"Lo":return Re.ordinalNumber(Qe+1,{unit:"month"});case"LLL":return Re.month(Qe,{width:"abbreviated",context:"standalone"});case"LLLLL":return Re.month(Qe,{width:"narrow",context:"standalone"});default:return Re.month(Qe,{width:"wide",context:"standalone"})}},w:function(Jt,he,Re,Qe){var Ht=ys(Jt,Qe);return"wo"===he?Re.ordinalNumber(Ht,{unit:"week"}):zr(Ht,he.length)},I:function(Jt,he,Re){var Qe=Cn(Jt);return"Io"===he?Re.ordinalNumber(Qe,{unit:"week"}):zr(Qe,he.length)},d:function(Jt,he,Re){return"do"===he?Re.ordinalNumber(Jt.getUTCDate(),{unit:"date"}):xo_d(Jt,he)},D:function(Jt,he,Re){var Qe=function Za(kt){Vi(1,arguments);var Jt=Hi(kt),he=Jt.getTime();Jt.setUTCMonth(0,1),Jt.setUTCHours(0,0,0,0);var Re=Jt.getTime();return Math.floor((he-Re)/864e5)+1}(Jt);return"Do"===he?Re.ordinalNumber(Qe,{unit:"dayOfYear"}):zr(Qe,he.length)},E:function(Jt,he,Re){var Qe=Jt.getUTCDay();switch(he){case"E":case"EE":case"EEE":return Re.day(Qe,{width:"abbreviated",context:"formatting"});case"EEEEE":return Re.day(Qe,{width:"narrow",context:"formatting"});case"EEEEEE":return Re.day(Qe,{width:"short",context:"formatting"});default:return Re.day(Qe,{width:"wide",context:"formatting"})}},e:function(Jt,he,Re,Qe){var Ht=Jt.getUTCDay(),qt=(Ht-Qe.weekStartsOn+8)%7||7;switch(he){case"e":return String(qt);case"ee":return zr(qt,2);case"eo":return Re.ordinalNumber(qt,{unit:"day"});case"eee":return Re.day(Ht,{width:"abbreviated",context:"formatting"});case"eeeee":return Re.day(Ht,{width:"narrow",context:"formatting"});case"eeeeee":return Re.day(Ht,{width:"short",context:"formatting"});default:return Re.day(Ht,{width:"wide",context:"formatting"})}},c:function(Jt,he,Re,Qe){var Ht=Jt.getUTCDay(),qt=(Ht-Qe.weekStartsOn+8)%7||7;switch(he){case"c":return String(qt);case"cc":return zr(qt,he.length);case"co":return Re.ordinalNumber(qt,{unit:"day"});case"ccc":return Re.day(Ht,{width:"abbreviated",context:"standalone"});case"ccccc":return Re.day(Ht,{width:"narrow",context:"standalone"});case"cccccc":return Re.day(Ht,{width:"short",context:"standalone"});default:return Re.day(Ht,{width:"wide",context:"standalone"})}},i:function(Jt,he,Re){var Qe=Jt.getUTCDay(),Ht=0===Qe?7:Qe;switch(he){case"i":return String(Ht);case"ii":return zr(Ht,he.length);case"io":return Re.ordinalNumber(Ht,{unit:"day"});case"iii":return Re.day(Qe,{width:"abbreviated",context:"formatting"});case"iiiii":return Re.day(Qe,{width:"narrow",context:"formatting"});case"iiiiii":return Re.day(Qe,{width:"short",context:"formatting"});default:return Re.day(Qe,{width:"wide",context:"formatting"})}},a:function(Jt,he,Re){var Ht=Jt.getUTCHours()/12>=1?"pm":"am";switch(he){case"a":case"aa":return Re.dayPeriod(Ht,{width:"abbreviated",context:"formatting"});case"aaa":return Re.dayPeriod(Ht,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return Re.dayPeriod(Ht,{width:"narrow",context:"formatting"});default:return Re.dayPeriod(Ht,{width:"wide",context:"formatting"})}},b:function(Jt,he,Re){var Ht,Qe=Jt.getUTCHours();switch(Ht=12===Qe?"noon":0===Qe?"midnight":Qe/12>=1?"pm":"am",he){case"b":case"bb":return Re.dayPeriod(Ht,{width:"abbreviated",context:"formatting"});case"bbb":return Re.dayPeriod(Ht,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return Re.dayPeriod(Ht,{width:"narrow",context:"formatting"});default:return Re.dayPeriod(Ht,{width:"wide",context:"formatting"})}},B:function(Jt,he,Re){var Ht,Qe=Jt.getUTCHours();switch(Ht=Qe>=17?"evening":Qe>=12?"afternoon":Qe>=4?"morning":"night",he){case"B":case"BB":case"BBB":return Re.dayPeriod(Ht,{width:"abbreviated",context:"formatting"});case"BBBBB":return Re.dayPeriod(Ht,{width:"narrow",context:"formatting"});default:return Re.dayPeriod(Ht,{width:"wide",context:"formatting"})}},h:function(Jt,he,Re){if("ho"===he){var Qe=Jt.getUTCHours()%12;return 0===Qe&&(Qe=12),Re.ordinalNumber(Qe,{unit:"hour"})}return xo_h(Jt,he)},H:function(Jt,he,Re){return"Ho"===he?Re.ordinalNumber(Jt.getUTCHours(),{unit:"hour"}):xo_H(Jt,he)},K:function(Jt,he,Re){var Qe=Jt.getUTCHours()%12;return"Ko"===he?Re.ordinalNumber(Qe,{unit:"hour"}):zr(Qe,he.length)},k:function(Jt,he,Re){var Qe=Jt.getUTCHours();return 0===Qe&&(Qe=24),"ko"===he?Re.ordinalNumber(Qe,{unit:"hour"}):zr(Qe,he.length)},m:function(Jt,he,Re){return"mo"===he?Re.ordinalNumber(Jt.getUTCMinutes(),{unit:"minute"}):xo_m(Jt,he)},s:function(Jt,he,Re){return"so"===he?Re.ordinalNumber(Jt.getUTCSeconds(),{unit:"second"}):xo_s(Jt,he)},S:function(Jt,he){return xo_S(Jt,he)},X:function(Jt,he,Re,Qe){var qt=(Qe._originalDate||Jt).getTimezoneOffset();if(0===qt)return"Z";switch(he){case"X":return ia(qt);case"XXXX":case"XX":return as(qt);default:return as(qt,":")}},x:function(Jt,he,Re,Qe){var qt=(Qe._originalDate||Jt).getTimezoneOffset();switch(he){case"x":return ia(qt);case"xxxx":case"xx":return as(qt);default:return as(qt,":")}},O:function(Jt,he,Re,Qe){var qt=(Qe._originalDate||Jt).getTimezoneOffset();switch(he){case"O":case"OO":case"OOO":return"GMT"+Da(qt,":");default:return"GMT"+as(qt,":")}},z:function(Jt,he,Re,Qe){var qt=(Qe._originalDate||Jt).getTimezoneOffset();switch(he){case"z":case"zz":case"zzz":return"GMT"+Da(qt,":");default:return"GMT"+as(qt,":")}},t:function(Jt,he,Re,Qe){return zr(Math.floor((Qe._originalDate||Jt).getTime()/1e3),he.length)},T:function(Jt,he,Re,Qe){return zr((Qe._originalDate||Jt).getTime(),he.length)}};var ba=function(Jt,he){switch(Jt){case"P":return he.date({width:"short"});case"PP":return he.date({width:"medium"});case"PPP":return he.date({width:"long"});default:return he.date({width:"full"})}},Ss=function(Jt,he){switch(Jt){case"p":return he.time({width:"short"});case"pp":return he.time({width:"medium"});case"ppp":return he.time({width:"long"});default:return he.time({width:"full"})}};const wa={p:Ss,P:function(Jt,he){var qt,Re=Jt.match(/(P+)(p+)?/)||[],Qe=Re[1],Ht=Re[2];if(!Ht)return ba(Jt,he);switch(Qe){case"P":qt=he.dateTime({width:"short"});break;case"PP":qt=he.dateTime({width:"medium"});break;case"PPP":qt=he.dateTime({width:"long"});break;default:qt=he.dateTime({width:"full"})}return qt.replace("{{date}}",ba(Qe,he)).replace("{{time}}",Ss(Ht,he))}};function Va(kt){var Jt=new Date(Date.UTC(kt.getFullYear(),kt.getMonth(),kt.getDate(),kt.getHours(),kt.getMinutes(),kt.getSeconds(),kt.getMilliseconds()));return Jt.setUTCFullYear(kt.getFullYear()),kt.getTime()-Jt.getTime()}var zn=["D","DD"],di=["YY","YYYY"];function cn(kt){return-1!==zn.indexOf(kt)}function Zi(kt){return-1!==di.indexOf(kt)}function Eo(kt,Jt,he){if("YYYY"===kt)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(Jt,"`) for formatting years to the input `").concat(he,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===kt)throw new RangeError("Use `yy` instead of `YY` (in `".concat(Jt,"`) for formatting years to the input `").concat(he,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===kt)throw new RangeError("Use `d` instead of `D` (in `".concat(Jt,"`) for formatting days of the month to the input `").concat(he,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===kt)throw new RangeError("Use `dd` instead of `DD` (in `".concat(Jt,"`) for formatting days of the month to the input `").concat(he,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var oa={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Zr(kt){return function(){var Jt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},he=Jt.width?String(Jt.width):kt.defaultWidth;return kt.formats[he]||kt.formats[kt.defaultWidth]}}var Ql={date:Zr({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Zr({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Zr({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},mc={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Ps(kt){return function(Jt,he){var Qe;if("formatting"===(null!=he&&he.context?String(he.context):"standalone")&&kt.formattingValues){var Ht=kt.defaultFormattingWidth||kt.defaultWidth,qt=null!=he&&he.width?String(he.width):Ht;Qe=kt.formattingValues[qt]||kt.formattingValues[Ht]}else{var Lo=kt.defaultWidth,ur=null!=he&&he.width?String(he.width):kt.defaultWidth;Qe=kt.values[ur]||kt.values[Lo]}return Qe[kt.argumentCallback?kt.argumentCallback(Jt):Jt]}}function Yr(kt){return function(Jt){var he=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Re=he.width,Ht=Jt.match(Re&&kt.matchPatterns[Re]||kt.matchPatterns[kt.defaultMatchWidth]);if(!Ht)return null;var rr,qt=Ht[0],Lo=Re&&kt.parsePatterns[Re]||kt.parsePatterns[kt.defaultParseWidth],ur=Array.isArray(Lo)?function ts(kt,Jt){for(var he=0;he<kt.length;he++)if(Jt(kt[he]))return he}(Lo,function(Pa){return Pa.test(qt)}):function _a(kt,Jt){for(var he in kt)if(kt.hasOwnProperty(he)&&Jt(kt[he]))return he}(Lo,function(Pa){return Pa.test(qt)});return rr=kt.valueCallback?kt.valueCallback(ur):ur,{value:rr=he.valueCallback?he.valueCallback(rr):rr,rest:Jt.slice(qt.length)}}}function rl(kt){return function(Jt){var he=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Re=Jt.match(kt.matchPattern);if(!Re)return null;var Qe=Re[0],Ht=Jt.match(kt.parsePattern);if(!Ht)return null;var qt=kt.valueCallback?kt.valueCallback(Ht[0]):Ht[0];return{value:qt=he.valueCallback?he.valueCallback(qt):qt,rest:Jt.slice(Qe.length)}}}const Ms={code:"en-US",formatDistance:function(Jt,he,Re){var Qe,Ht=oa[Jt];return Qe="string"==typeof Ht?Ht:1===he?Ht.one:Ht.other.replace("{{count}}",he.toString()),null!=Re&&Re.addSuffix?Re.comparison&&Re.comparison>0?"in "+Qe:Qe+" ago":Qe},formatLong:Ql,formatRelative:function(Jt,he,Re,Qe){return mc[Jt]},localize:{ordinalNumber:function(Jt,he){var Re=Number(Jt),Qe=Re%100;if(Qe>20||Qe<10)switch(Qe%10){case 1:return Re+"st";case 2:return Re+"nd";case 3:return Re+"rd"}return Re+"th"},era:Ps({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Ps({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(Jt){return Jt-1}}),month:Ps({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Ps({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Ps({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:rl({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(Jt){return parseInt(Jt,10)}}),era:Yr({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Yr({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(Jt){return Jt+1}}),month:Yr({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Yr({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Yr({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},Bs=Ms;var yl=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Fr=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,nl=/^'([^]*?)'?$/,hl=/''/g,Cc=/[a-zA-Z]/;function Mn(kt,Jt){Vi(2,arguments);var he=Hi(kt),Re=Hi(Jt),Qe=he.getTime()-Re.getTime();return Qe<0?-1:Qe>0?1:Qe}function xa(kt,Jt){Vi(2,arguments);var qt,he=Hi(kt),Re=Hi(Jt),Qe=Mn(he,Re),Ht=Math.abs(function mi(kt,Jt){Vi(2,arguments);var he=Hi(kt),Re=Hi(Jt);return 12*(he.getFullYear()-Re.getFullYear())+(he.getMonth()-Re.getMonth())}(he,Re));if(Ht<1)qt=0;else{1===he.getMonth()&&he.getDate()>27&&he.setDate(30),he.setMonth(he.getMonth()-Qe*Ht);var Lo=Mn(he,Re)===-Qe;(function Pr(kt){Vi(1,arguments);var Jt=Hi(kt);return function Mo(kt){Vi(1,arguments);var Jt=Hi(kt);return Jt.setHours(23,59,59,999),Jt}(Jt).getTime()===function pr(kt){Vi(1,arguments);var Jt=Hi(kt),he=Jt.getMonth();return Jt.setFullYear(Jt.getFullYear(),he+1,0),Jt.setHours(23,59,59,999),Jt}(Jt).getTime()})(Hi(kt))&&1===Ht&&1===Mn(kt,Re)&&(Lo=!1),qt=Qe*(Ht-Number(Lo))}return 0===qt?0:qt}var Ls={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(Jt){return Jt<0?Math.ceil(Jt):Math.floor(Jt)}},Ts="trunc";function qs(kt,Jt){if(null==kt)throw new TypeError("assign requires that input parameter not be null or undefined");for(var he in Jt)Object.prototype.hasOwnProperty.call(Jt,he)&&(kt[he]=Jt[he]);return kt}function Ki(kt,Jt,he){var Re,Qe;Vi(2,arguments);var Ht=fo(),qt=null!==(Re=null!==(Qe=he?.locale)&&void 0!==Qe?Qe:Ht.locale)&&void 0!==Re?Re:Bs;if(!qt.formatDistance)throw new RangeError("locale must contain formatDistance property");var Lo=Mn(kt,Jt);if(isNaN(Lo))throw new RangeError("Invalid time value");var rr,Oa,ur=qs(function Ks(kt){return qs({},kt)}(he),{addSuffix:!!he?.addSuffix,comparison:Lo});Lo>0?(rr=Hi(Jt),Oa=Hi(kt)):(rr=Hi(kt),Oa=Hi(Jt));var El,Pa=function ul(kt,Jt,he){Vi(2,arguments);var Re=function tl(kt,Jt){return Vi(2,arguments),Hi(kt).getTime()-Hi(Jt).getTime()}(kt,Jt)/1e3;return function _s(kt){return kt?Ls[kt]:Ls[Ts]}(he?.roundingMethod)(Re)}(Oa,rr),Ja=(Va(Oa)-Va(rr))/1e3,fs=Math.round((Pa-Ja)/60);if(fs<2)return null!=he&&he.includeSeconds?Pa<5?qt.formatDistance("lessThanXSeconds",5,ur):Pa<10?qt.formatDistance("lessThanXSeconds",10,ur):Pa<20?qt.formatDistance("lessThanXSeconds",20,ur):Pa<40?qt.formatDistance("halfAMinute",0,ur):qt.formatDistance(Pa<60?"lessThanXMinutes":"xMinutes",1,ur):0===fs?qt.formatDistance("lessThanXMinutes",1,ur):qt.formatDistance("xMinutes",fs,ur);if(fs<45)return qt.formatDistance("xMinutes",fs,ur);if(fs<90)return qt.formatDistance("aboutXHours",1,ur);if(fs<1440){var Ic=Math.round(fs/60);return qt.formatDistance("aboutXHours",Ic,ur)}if(fs<2520)return qt.formatDistance("xDays",1,ur);if(fs<43200){var Pc=Math.round(fs/1440);return qt.formatDistance("xDays",Pc,ur)}if(fs<86400)return El=Math.round(fs/43200),qt.formatDistance("aboutXMonths",El,ur);if((El=xa(Oa,rr))<12){var td=Math.round(fs/43200);return qt.formatDistance("xMonths",td,ur)}var $c=El%12,ud=Math.floor(El/12);return $c<3?qt.formatDistance("aboutXYears",ud,ur):$c<9?qt.formatDistance("overXYears",ud,ur):qt.formatDistance("almostXYears",ud+1,ur)}Math.pow(10,8);var nt=36e5;var Kl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},xl=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,ll=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,tm=/^([+-])(\d{2})(?::?(\d{2}))?$/;function wc(kt){return kt?parseInt(kt):1}function Id(kt){return kt&&parseFloat(kt.replace(",","."))||0}var dn=[31,null,31,30,31,30,31,31,30,31,30,31];function Mr(kt){return kt%400==0||kt%4==0&&kt%100!=0}function ra(kt,Jt){(null==Jt||Jt>kt.length)&&(Jt=kt.length);for(var he=0,Re=new Array(Jt);he<Jt;he++)Re[he]=kt[he];return Re}function xe(kt,Jt){var he=typeof Symbol<"u"&&kt[Symbol.iterator]||kt["@@iterator"];if(!he){if(Array.isArray(kt)||(he=function $a(kt,Jt){if(kt){if("string"==typeof kt)return ra(kt,Jt);var he=Object.prototype.toString.call(kt).slice(8,-1);if("Object"===he&&kt.constructor&&(he=kt.constructor.name),"Map"===he||"Set"===he)return Array.from(kt);if("Arguments"===he||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(he))return ra(kt,Jt)}}(kt))||Jt&&kt&&"number"==typeof kt.length){he&&(kt=he);var Re=0,Qe=function(){};return{s:Qe,n:function(){return Re>=kt.length?{done:!0}:{done:!1,value:kt[Re++]}},e:function(rr){throw rr},f:Qe}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Lo,Ht=!0,qt=!1;return{s:function(){he=he.call(kt)},n:function(){var rr=he.next();return Ht=rr.done,rr},e:function(rr){qt=!0,Lo=rr},f:function(){try{!Ht&&null!=he.return&&he.return()}finally{if(qt)throw Lo}}}}function h(kt){if(void 0===kt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return kt}function k(kt,Jt){return(k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Re,Qe){return Re.__proto__=Qe,Re})(kt,Jt)}function se(kt,Jt){if("function"!=typeof Jt&&null!==Jt)throw new TypeError("Super expression must either be null or a function");kt.prototype=Object.create(Jt&&Jt.prototype,{constructor:{value:kt,writable:!0,configurable:!0}}),Object.defineProperty(kt,"prototype",{writable:!1}),Jt&&k(kt,Jt)}function de(kt){return(de=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(he){return he.__proto__||Object.getPrototypeOf(he)})(kt)}function wt(kt){var Jt=function Ae(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Qe,Re=de(kt);if(Jt){var Ht=de(this).constructor;Qe=Reflect.construct(Re,arguments,Ht)}else Qe=Re.apply(this,arguments);return function Ct(kt,Jt){if(Jt&&("object"===oi(Jt)||"function"==typeof Jt))return Jt;if(void 0!==Jt)throw new TypeError("Derived constructors may only return object or undefined");return h(kt)}(this,Qe)}}function Mt(kt,Jt){if(!(kt instanceof Jt))throw new TypeError("Cannot call a class as a function")}function Qn(kt){var Jt=function fn(kt,Jt){if("object"!=oi(kt)||!kt)return kt;var he=kt[Symbol.toPrimitive];if(void 0!==he){var Re=he.call(kt,Jt||"default");if("object"!=oi(Re))return Re;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Jt?String:Number)(kt)}(kt,"string");return"symbol"==oi(Jt)?Jt:String(Jt)}function ei(kt,Jt){for(var he=0;he<Jt.length;he++){var Re=Jt[he];Re.enumerable=Re.enumerable||!1,Re.configurable=!0,"value"in Re&&(Re.writable=!0),Object.defineProperty(kt,Qn(Re.key),Re)}}function bi(kt,Jt,he){return Jt&&ei(kt.prototype,Jt),he&&ei(kt,he),Object.defineProperty(kt,"prototype",{writable:!1}),kt}function zi(kt,Jt,he){return(Jt=Qn(Jt))in kt?Object.defineProperty(kt,Jt,{value:he,enumerable:!0,configurable:!0,writable:!0}):kt[Jt]=he,kt}var pt=function(){function kt(){Mt(this,kt),zi(this,"priority",void 0),zi(this,"subPriority",0)}return bi(kt,[{key:"validate",value:function(he,Re){return!0}}]),kt}(),Ye=function(kt){se(he,kt);var Jt=wt(he);function he(Re,Qe,Ht,qt,Lo){var ur;return Mt(this,he),(ur=Jt.call(this)).value=Re,ur.validateValue=Qe,ur.setValue=Ht,ur.priority=qt,Lo&&(ur.subPriority=Lo),ur}return bi(he,[{key:"validate",value:function(Qe,Ht){return this.validateValue(Qe,this.value,Ht)}},{key:"set",value:function(Qe,Ht,qt){return this.setValue(Qe,Ht,this.value,qt)}}]),he}(pt),ut=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",10),zi(h(Re),"subPriority",-1),Re}return bi(he,[{key:"set",value:function(Qe,Ht){if(Ht.timestampIsSet)return Qe;var qt=new Date(0);return qt.setFullYear(Qe.getUTCFullYear(),Qe.getUTCMonth(),Qe.getUTCDate()),qt.setHours(Qe.getUTCHours(),Qe.getUTCMinutes(),Qe.getUTCSeconds(),Qe.getUTCMilliseconds()),qt}}]),he}(pt),Kt=function(){function kt(){Mt(this,kt),zi(this,"incompatibleTokens",void 0),zi(this,"priority",void 0),zi(this,"subPriority",void 0)}return bi(kt,[{key:"run",value:function(he,Re,Qe,Ht){var qt=this.parse(he,Re,Qe,Ht);return qt?{setter:new Ye(qt.value,this.validate,this.set,this.priority,this.subPriority),rest:qt.rest}:null}},{key:"validate",value:function(he,Re,Qe){return!0}}]),kt}(),en=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",140),zi(h(Re),"incompatibleTokens",["R","u","t","T"]),Re}return bi(he,[{key:"parse",value:function(Qe,Ht,qt){switch(Ht){case"G":case"GG":case"GGG":return qt.era(Qe,{width:"abbreviated"})||qt.era(Qe,{width:"narrow"});case"GGGGG":return qt.era(Qe,{width:"narrow"});default:return qt.era(Qe,{width:"wide"})||qt.era(Qe,{width:"abbreviated"})||qt.era(Qe,{width:"narrow"})}}},{key:"set",value:function(Qe,Ht,qt){return Ht.era=qt,Qe.setUTCFullYear(qt,0,1),Qe.setUTCHours(0,0,0,0),Qe}}]),he}(Kt),qn_month=/^(1[0-2]|0?\d)/,qn_date=/^(3[0-1]|[0-2]?\d)/,qn_dayOfYear=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,qn_week=/^(5[0-3]|[0-4]?\d)/,qn_hour23h=/^(2[0-3]|[0-1]?\d)/,qn_hour24h=/^(2[0-4]|[0-1]?\d)/,qn_hour11h=/^(1[0-1]|0?\d)/,qn_hour12h=/^(1[0-2]|0?\d)/,qn_minute=/^[0-5]?\d/,qn_second=/^[0-5]?\d/,qn_singleDigit=/^\d/,qn_twoDigits=/^\d{1,2}/,qn_threeDigits=/^\d{1,3}/,qn_fourDigits=/^\d{1,4}/,qn_anyDigitsSigned=/^-?\d+/,qn_singleDigitSigned=/^-?\d/,qn_twoDigitsSigned=/^-?\d{1,2}/,qn_threeDigitsSigned=/^-?\d{1,3}/,qn_fourDigitsSigned=/^-?\d{1,4}/,hi_basicOptionalMinutes=/^([+-])(\d{2})(\d{2})?|Z/,hi_basic=/^([+-])(\d{2})(\d{2})|Z/,hi_basicOptionalSeconds=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,hi_extended=/^([+-])(\d{2}):(\d{2})|Z/,hi_extendedOptionalSeconds=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function gi(kt,Jt){return kt&&{value:Jt(kt.value),rest:kt.rest}}function ko(kt,Jt){var he=Jt.match(kt);return he?{value:parseInt(he[0],10),rest:Jt.slice(he[0].length)}:null}function Wo(kt,Jt){var he=Jt.match(kt);if(!he)return null;if("Z"===he[0])return{value:0,rest:Jt.slice(1)};var Re="+"===he[1]?1:-1,Qe=he[2]?parseInt(he[2],10):0,Ht=he[3]?parseInt(he[3],10):0,qt=he[5]?parseInt(he[5],10):0;return{value:Re*(Qe*nt+6e4*Ht+1e3*qt),rest:Jt.slice(he[0].length)}}function tr(kt){return ko(qn_anyDigitsSigned,kt)}function br(kt,Jt){switch(kt){case 1:return ko(qn_singleDigit,Jt);case 2:return ko(qn_twoDigits,Jt);case 3:return ko(qn_threeDigits,Jt);case 4:return ko(qn_fourDigits,Jt);default:return ko(new RegExp("^\\d{1,"+kt+"}"),Jt)}}function fa(kt,Jt){switch(kt){case 1:return ko(qn_singleDigitSigned,Jt);case 2:return ko(qn_twoDigitsSigned,Jt);case 3:return ko(qn_threeDigitsSigned,Jt);case 4:return ko(qn_fourDigitsSigned,Jt);default:return ko(new RegExp("^-?\\d{1,"+kt+"}"),Jt)}}function ga(kt){switch(kt){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function $r(kt,Jt){var Qe,he=Jt>0,Re=he?Jt:1-Jt;if(Re<=50)Qe=kt||100;else{var Ht=Re+50;Qe=kt+100*Math.floor(Ht/100)-(kt>=Ht%100?100:0)}return he?Qe:1-Qe}function Rr(kt){return kt%400==0||kt%4==0&&kt%100!=0}var Xr=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",130),zi(h(Re),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),Re}return bi(he,[{key:"parse",value:function(Qe,Ht,qt){var Lo=function(rr){return{year:rr,isTwoDigitYear:"yy"===Ht}};switch(Ht){case"y":return gi(br(4,Qe),Lo);case"yo":return gi(qt.ordinalNumber(Qe,{unit:"year"}),Lo);default:return gi(br(Ht.length,Qe),Lo)}}},{key:"validate",value:function(Qe,Ht){return Ht.isTwoDigitYear||Ht.year>0}},{key:"set",value:function(Qe,Ht,qt){var Lo=Qe.getUTCFullYear();if(qt.isTwoDigitYear){var ur=$r(qt.year,Lo);return Qe.setUTCFullYear(ur,0,1),Qe.setUTCHours(0,0,0,0),Qe}return Qe.setUTCFullYear("era"in Ht&&1!==Ht.era?1-qt.year:qt.year,0,1),Qe.setUTCHours(0,0,0,0),Qe}}]),he}(Kt),Es=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",130),zi(h(Re),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),Re}return bi(he,[{key:"parse",value:function(Qe,Ht,qt){var Lo=function(rr){return{year:rr,isTwoDigitYear:"YY"===Ht}};switch(Ht){case"Y":return gi(br(4,Qe),Lo);case"Yo":return gi(qt.ordinalNumber(Qe,{unit:"year"}),Lo);default:return gi(br(Ht.length,Qe),Lo)}}},{key:"validate",value:function(Qe,Ht){return Ht.isTwoDigitYear||Ht.year>0}},{key:"set",value:function(Qe,Ht,qt,Lo){var ur=Qr(Qe,Lo);if(qt.isTwoDigitYear){var rr=$r(qt.year,ur);return Qe.setUTCFullYear(rr,0,Lo.firstWeekContainsDate),Qe.setUTCHours(0,0,0,0),kr(Qe,Lo)}return Qe.setUTCFullYear("era"in Ht&&1!==Ht.era?1-qt.year:qt.year,0,Lo.firstWeekContainsDate),Qe.setUTCHours(0,0,0,0),kr(Qe,Lo)}}]),he}(Kt),Ys=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",130),zi(h(Re),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),Re}return bi(he,[{key:"parse",value:function(Qe,Ht){return fa("R"===Ht?4:Ht.length,Qe)}},{key:"set",value:function(Qe,Ht,qt){var Lo=new Date(0);return Lo.setUTCFullYear(qt,0,4),Lo.setUTCHours(0,0,0,0),ma(Lo)}}]),he}(Kt),qa=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",130),zi(h(Re),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),Re}return bi(he,[{key:"parse",value:function(Qe,Ht){return fa("u"===Ht?4:Ht.length,Qe)}},{key:"set",value:function(Qe,Ht,qt){return Qe.setUTCFullYear(qt,0,1),Qe.setUTCHours(0,0,0,0),Qe}}]),he}(Kt),Qs=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",120),zi(h(Re),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),Re}return bi(he,[{key:"parse",value:function(Qe,Ht,qt){switch(Ht){case"Q":case"QQ":return br(Ht.length,Qe);case"Qo":return qt.ordinalNumber(Qe,{unit:"quarter"});case"QQQ":return qt.quarter(Qe,{width:"abbreviated",context:"formatting"})||qt.quarter(Qe,{width:"narrow",context:"formatting"});case"QQQQQ":return qt.quarter(Qe,{width:"narrow",context:"formatting"});default:return qt.quarter(Qe,{width:"wide",context:"formatting"})||qt.quarter(Qe,{width:"abbreviated",context:"formatting"})||qt.quarter(Qe,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(Qe,Ht){return Ht>=1&&Ht<=4}},{key:"set",value:function(Qe,Ht,qt){return Qe.setUTCMonth(3*(qt-1),1),Qe.setUTCHours(0,0,0,0),Qe}}]),he}(Kt),ic=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",120),zi(h(Re),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),Re}return bi(he,[{key:"parse",value:function(Qe,Ht,qt){switch(Ht){case"q":case"qq":return br(Ht.length,Qe);case"qo":return qt.ordinalNumber(Qe,{unit:"quarter"});case"qqq":return qt.quarter(Qe,{width:"abbreviated",context:"standalone"})||qt.quarter(Qe,{width:"narrow",context:"standalone"});case"qqqqq":return qt.quarter(Qe,{width:"narrow",context:"standalone"});default:return qt.quarter(Qe,{width:"wide",context:"standalone"})||qt.quarter(Qe,{width:"abbreviated",context:"standalone"})||qt.quarter(Qe,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(Qe,Ht){return Ht>=1&&Ht<=4}},{key:"set",value:function(Qe,Ht,qt){return Qe.setUTCMonth(3*(qt-1),1),Qe.setUTCHours(0,0,0,0),Qe}}]),he}(Kt),wl=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),zi(h(Re),"priority",110),Re}return bi(he,[{key:"parse",value:function(Qe,Ht,qt){var Lo=function(rr){return rr-1};switch(Ht){case"M":return gi(ko(qn_month,Qe),Lo);case"MM":return gi(br(2,Qe),Lo);case"Mo":return gi(qt.ordinalNumber(Qe,{unit:"month"}),Lo);case"MMM":return qt.month(Qe,{width:"abbreviated",context:"formatting"})||qt.month(Qe,{width:"narrow",context:"formatting"});case"MMMMM":return qt.month(Qe,{width:"narrow",context:"formatting"});default:return qt.month(Qe,{width:"wide",context:"formatting"})||qt.month(Qe,{width:"abbreviated",context:"formatting"})||qt.month(Qe,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(Qe,Ht){return Ht>=0&&Ht<=11}},{key:"set",value:function(Qe,Ht,qt){return Qe.setUTCMonth(qt,1),Qe.setUTCHours(0,0,0,0),Qe}}]),he}(Kt),md=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",110),zi(h(Re),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),Re}return bi(he,[{key:"parse",value:function(Qe,Ht,qt){var Lo=function(rr){return rr-1};switch(Ht){case"L":return gi(ko(qn_month,Qe),Lo);case"LL":return gi(br(2,Qe),Lo);case"Lo":return gi(qt.ordinalNumber(Qe,{unit:"month"}),Lo);case"LLL":return qt.month(Qe,{width:"abbreviated",context:"standalone"})||qt.month(Qe,{width:"narrow",context:"standalone"});case"LLLLL":return qt.month(Qe,{width:"narrow",context:"standalone"});default:return qt.month(Qe,{width:"wide",context:"standalone"})||qt.month(Qe,{width:"abbreviated",context:"standalone"})||qt.month(Qe,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(Qe,Ht){return Ht>=0&&Ht<=11}},{key:"set",value:function(Qe,Ht,qt){return Qe.setUTCMonth(qt,1),Qe.setUTCHours(0,0,0,0),Qe}}]),he}(Kt),yc=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",100),zi(h(Re),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),Re}return bi(he,[{key:"parse",value:function(Qe,Ht,qt){switch(Ht){case"w":return ko(qn_week,Qe);case"wo":return qt.ordinalNumber(Qe,{unit:"week"});default:return br(Ht.length,Qe)}}},{key:"validate",value:function(Qe,Ht){return Ht>=1&&Ht<=53}},{key:"set",value:function(Qe,Ht,qt,Lo){return kr(function Dc(kt,Jt,he){Vi(2,arguments);var Re=Hi(kt),Qe=$o(Jt),Ht=ys(Re,he)-Qe;return Re.setUTCDate(Re.getUTCDate()-7*Ht),Re}(Qe,qt,Lo),Lo)}}]),he}(Kt),im=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",100),zi(h(Re),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),Re}return bi(he,[{key:"parse",value:function(Qe,Ht,qt){switch(Ht){case"I":return ko(qn_week,Qe);case"Io":return qt.ordinalNumber(Qe,{unit:"week"});default:return br(Ht.length,Qe)}}},{key:"validate",value:function(Qe,Ht){return Ht>=1&&Ht<=53}},{key:"set",value:function(Qe,Ht,qt){return ma(function Wc(kt,Jt){Vi(2,arguments);var he=Hi(kt),Re=$o(Jt),Qe=Cn(he)-Re;return he.setUTCDate(he.getUTCDate()-7*Qe),he}(Qe,qt))}}]),he}(Kt),Vl=[31,28,31,30,31,30,31,31,30,31,30,31],zc=[31,29,31,30,31,30,31,31,30,31,30,31],Il=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",90),zi(h(Re),"subPriority",1),zi(h(Re),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),Re}return bi(he,[{key:"parse",value:function(Qe,Ht,qt){switch(Ht){case"d":return ko(qn_date,Qe);case"do":return qt.ordinalNumber(Qe,{unit:"date"});default:return br(Ht.length,Qe)}}},{key:"validate",value:function(Qe,Ht){var Lo=Rr(Qe.getUTCFullYear()),ur=Qe.getUTCMonth();return Lo?Ht>=1&&Ht<=zc[ur]:Ht>=1&&Ht<=Vl[ur]}},{key:"set",value:function(Qe,Ht,qt){return Qe.setUTCDate(qt),Qe.setUTCHours(0,0,0,0),Qe}}]),he}(Kt),Bc=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",90),zi(h(Re),"subpriority",1),zi(h(Re),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),Re}return bi(he,[{key:"parse",value:function(Qe,Ht,qt){switch(Ht){case"D":case"DD":return ko(qn_dayOfYear,Qe);case"Do":return qt.ordinalNumber(Qe,{unit:"date"});default:return br(Ht.length,Qe)}}},{key:"validate",value:function(Qe,Ht){return Rr(Qe.getUTCFullYear())?Ht>=1&&Ht<=366:Ht>=1&&Ht<=365}},{key:"set",value:function(Qe,Ht,qt){return Qe.setUTCMonth(0,qt),Qe.setUTCHours(0,0,0,0),Qe}}]),he}(Kt);function Ac(kt,Jt,he){var Re,Qe,Ht,qt,Lo,ur,rr,Oa;Vi(2,arguments);var Pa=fo(),Ja=$o(null!==(Re=null!==(Qe=null!==(Ht=null!==(qt=he?.weekStartsOn)&&void 0!==qt?qt:null==he||null===(Lo=he.locale)||void 0===Lo||null===(ur=Lo.options)||void 0===ur?void 0:ur.weekStartsOn)&&void 0!==Ht?Ht:Pa.weekStartsOn)&&void 0!==Qe?Qe:null===(rr=Pa.locale)||void 0===rr||null===(Oa=rr.options)||void 0===Oa?void 0:Oa.weekStartsOn)&&void 0!==Re?Re:0);if(!(Ja>=0&&Ja<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var fs=Hi(kt),El=$o(Jt),$c=((El%7+7)%7<Ja?7:0)+El-fs.getUTCDay();return fs.setUTCDate(fs.getUTCDate()+$c),fs}var Xl=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",90),zi(h(Re),"incompatibleTokens",["D","i","e","c","t","T"]),Re}return bi(he,[{key:"parse",value:function(Qe,Ht,qt){switch(Ht){case"E":case"EE":case"EEE":return qt.day(Qe,{width:"abbreviated",context:"formatting"})||qt.day(Qe,{width:"short",context:"formatting"})||qt.day(Qe,{width:"narrow",context:"formatting"});case"EEEEE":return qt.day(Qe,{width:"narrow",context:"formatting"});case"EEEEEE":return qt.day(Qe,{width:"short",context:"formatting"})||qt.day(Qe,{width:"narrow",context:"formatting"});default:return qt.day(Qe,{width:"wide",context:"formatting"})||qt.day(Qe,{width:"abbreviated",context:"formatting"})||qt.day(Qe,{width:"short",context:"formatting"})||qt.day(Qe,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(Qe,Ht){return Ht>=0&&Ht<=6}},{key:"set",value:function(Qe,Ht,qt,Lo){return(Qe=Ac(Qe,qt,Lo)).setUTCHours(0,0,0,0),Qe}}]),he}(Kt),uc=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",90),zi(h(Re),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),Re}return bi(he,[{key:"parse",value:function(Qe,Ht,qt,Lo){var ur=function(Oa){var Pa=7*Math.floor((Oa-1)/7);return(Oa+Lo.weekStartsOn+6)%7+Pa};switch(Ht){case"e":case"ee":return gi(br(Ht.length,Qe),ur);case"eo":return gi(qt.ordinalNumber(Qe,{unit:"day"}),ur);case"eee":return qt.day(Qe,{width:"abbreviated",context:"formatting"})||qt.day(Qe,{width:"short",context:"formatting"})||qt.day(Qe,{width:"narrow",context:"formatting"});case"eeeee":return qt.day(Qe,{width:"narrow",context:"formatting"});case"eeeeee":return qt.day(Qe,{width:"short",context:"formatting"})||qt.day(Qe,{width:"narrow",context:"formatting"});default:return qt.day(Qe,{width:"wide",context:"formatting"})||qt.day(Qe,{width:"abbreviated",context:"formatting"})||qt.day(Qe,{width:"short",context:"formatting"})||qt.day(Qe,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(Qe,Ht){return Ht>=0&&Ht<=6}},{key:"set",value:function(Qe,Ht,qt,Lo){return(Qe=Ac(Qe,qt,Lo)).setUTCHours(0,0,0,0),Qe}}]),he}(Kt),Oc=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",90),zi(h(Re),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),Re}return bi(he,[{key:"parse",value:function(Qe,Ht,qt,Lo){var ur=function(Oa){var Pa=7*Math.floor((Oa-1)/7);return(Oa+Lo.weekStartsOn+6)%7+Pa};switch(Ht){case"c":case"cc":return gi(br(Ht.length,Qe),ur);case"co":return gi(qt.ordinalNumber(Qe,{unit:"day"}),ur);case"ccc":return qt.day(Qe,{width:"abbreviated",context:"standalone"})||qt.day(Qe,{width:"short",context:"standalone"})||qt.day(Qe,{width:"narrow",context:"standalone"});case"ccccc":return qt.day(Qe,{width:"narrow",context:"standalone"});case"cccccc":return qt.day(Qe,{width:"short",context:"standalone"})||qt.day(Qe,{width:"narrow",context:"standalone"});default:return qt.day(Qe,{width:"wide",context:"standalone"})||qt.day(Qe,{width:"abbreviated",context:"standalone"})||qt.day(Qe,{width:"short",context:"standalone"})||qt.day(Qe,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(Qe,Ht){return Ht>=0&&Ht<=6}},{key:"set",value:function(Qe,Ht,qt,Lo){return(Qe=Ac(Qe,qt,Lo)).setUTCHours(0,0,0,0),Qe}}]),he}(Kt),pc=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",90),zi(h(Re),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),Re}return bi(he,[{key:"parse",value:function(Qe,Ht,qt){var Lo=function(rr){return 0===rr?7:rr};switch(Ht){case"i":case"ii":return br(Ht.length,Qe);case"io":return qt.ordinalNumber(Qe,{unit:"day"});case"iii":return gi(qt.day(Qe,{width:"abbreviated",context:"formatting"})||qt.day(Qe,{width:"short",context:"formatting"})||qt.day(Qe,{width:"narrow",context:"formatting"}),Lo);case"iiiii":return gi(qt.day(Qe,{width:"narrow",context:"formatting"}),Lo);case"iiiiii":return gi(qt.day(Qe,{width:"short",context:"formatting"})||qt.day(Qe,{width:"narrow",context:"formatting"}),Lo);default:return gi(qt.day(Qe,{width:"wide",context:"formatting"})||qt.day(Qe,{width:"abbreviated",context:"formatting"})||qt.day(Qe,{width:"short",context:"formatting"})||qt.day(Qe,{width:"narrow",context:"formatting"}),Lo)}}},{key:"validate",value:function(Qe,Ht){return Ht>=1&&Ht<=7}},{key:"set",value:function(Qe,Ht,qt){return Qe=function jc(kt,Jt){Vi(2,arguments);var he=$o(Jt);he%7==0&&(he-=7);var Qe=Hi(kt),ur=((he%7+7)%7<1?7:0)+he-Qe.getUTCDay();return Qe.setUTCDate(Qe.getUTCDate()+ur),Qe}(Qe,qt),Qe.setUTCHours(0,0,0,0),Qe}}]),he}(Kt),Ul=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",80),zi(h(Re),"incompatibleTokens",["b","B","H","k","t","T"]),Re}return bi(he,[{key:"parse",value:function(Qe,Ht,qt){switch(Ht){case"a":case"aa":case"aaa":return qt.dayPeriod(Qe,{width:"abbreviated",context:"formatting"})||qt.dayPeriod(Qe,{width:"narrow",context:"formatting"});case"aaaaa":return qt.dayPeriod(Qe,{width:"narrow",context:"formatting"});default:return qt.dayPeriod(Qe,{width:"wide",context:"formatting"})||qt.dayPeriod(Qe,{width:"abbreviated",context:"formatting"})||qt.dayPeriod(Qe,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(Qe,Ht,qt){return Qe.setUTCHours(ga(qt),0,0,0),Qe}}]),he}(Kt),Xc=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",80),zi(h(Re),"incompatibleTokens",["a","B","H","k","t","T"]),Re}return bi(he,[{key:"parse",value:function(Qe,Ht,qt){switch(Ht){case"b":case"bb":case"bbb":return qt.dayPeriod(Qe,{width:"abbreviated",context:"formatting"})||qt.dayPeriod(Qe,{width:"narrow",context:"formatting"});case"bbbbb":return qt.dayPeriod(Qe,{width:"narrow",context:"formatting"});default:return qt.dayPeriod(Qe,{width:"wide",context:"formatting"})||qt.dayPeriod(Qe,{width:"abbreviated",context:"formatting"})||qt.dayPeriod(Qe,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(Qe,Ht,qt){return Qe.setUTCHours(ga(qt),0,0,0),Qe}}]),he}(Kt),ec=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",80),zi(h(Re),"incompatibleTokens",["a","b","t","T"]),Re}return bi(he,[{key:"parse",value:function(Qe,Ht,qt){switch(Ht){case"B":case"BB":case"BBB":return qt.dayPeriod(Qe,{width:"abbreviated",context:"formatting"})||qt.dayPeriod(Qe,{width:"narrow",context:"formatting"});case"BBBBB":return qt.dayPeriod(Qe,{width:"narrow",context:"formatting"});default:return qt.dayPeriod(Qe,{width:"wide",context:"formatting"})||qt.dayPeriod(Qe,{width:"abbreviated",context:"formatting"})||qt.dayPeriod(Qe,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(Qe,Ht,qt){return Qe.setUTCHours(ga(qt),0,0,0),Qe}}]),he}(Kt),vd=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",70),zi(h(Re),"incompatibleTokens",["H","K","k","t","T"]),Re}return bi(he,[{key:"parse",value:function(Qe,Ht,qt){switch(Ht){case"h":return ko(qn_hour12h,Qe);case"ho":return qt.ordinalNumber(Qe,{unit:"hour"});default:return br(Ht.length,Qe)}}},{key:"validate",value:function(Qe,Ht){return Ht>=1&&Ht<=12}},{key:"set",value:function(Qe,Ht,qt){var Lo=Qe.getUTCHours()>=12;return Qe.setUTCHours(Lo&&qt<12?qt+12:Lo||12!==qt?qt:0,0,0,0),Qe}}]),he}(Kt),bd=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",70),zi(h(Re),"incompatibleTokens",["a","b","h","K","k","t","T"]),Re}return bi(he,[{key:"parse",value:function(Qe,Ht,qt){switch(Ht){case"H":return ko(qn_hour23h,Qe);case"Ho":return qt.ordinalNumber(Qe,{unit:"hour"});default:return br(Ht.length,Qe)}}},{key:"validate",value:function(Qe,Ht){return Ht>=0&&Ht<=23}},{key:"set",value:function(Qe,Ht,qt){return Qe.setUTCHours(qt,0,0,0),Qe}}]),he}(Kt),Sd=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",70),zi(h(Re),"incompatibleTokens",["h","H","k","t","T"]),Re}return bi(he,[{key:"parse",value:function(Qe,Ht,qt){switch(Ht){case"K":return ko(qn_hour11h,Qe);case"Ko":return qt.ordinalNumber(Qe,{unit:"hour"});default:return br(Ht.length,Qe)}}},{key:"validate",value:function(Qe,Ht){return Ht>=0&&Ht<=11}},{key:"set",value:function(Qe,Ht,qt){var Lo=Qe.getUTCHours()>=12;return Qe.setUTCHours(Lo&&qt<12?qt+12:qt,0,0,0),Qe}}]),he}(Kt),Ru=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",70),zi(h(Re),"incompatibleTokens",["a","b","h","H","K","t","T"]),Re}return bi(he,[{key:"parse",value:function(Qe,Ht,qt){switch(Ht){case"k":return ko(qn_hour24h,Qe);case"ko":return qt.ordinalNumber(Qe,{unit:"hour"});default:return br(Ht.length,Qe)}}},{key:"validate",value:function(Qe,Ht){return Ht>=1&&Ht<=24}},{key:"set",value:function(Qe,Ht,qt){return Qe.setUTCHours(qt<=24?qt%24:qt,0,0,0),Qe}}]),he}(Kt),mm=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",60),zi(h(Re),"incompatibleTokens",["t","T"]),Re}return bi(he,[{key:"parse",value:function(Qe,Ht,qt){switch(Ht){case"m":return ko(qn_minute,Qe);case"mo":return qt.ordinalNumber(Qe,{unit:"minute"});default:return br(Ht.length,Qe)}}},{key:"validate",value:function(Qe,Ht){return Ht>=0&&Ht<=59}},{key:"set",value:function(Qe,Ht,qt){return Qe.setUTCMinutes(qt,0,0),Qe}}]),he}(Kt),hu=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",50),zi(h(Re),"incompatibleTokens",["t","T"]),Re}return bi(he,[{key:"parse",value:function(Qe,Ht,qt){switch(Ht){case"s":return ko(qn_second,Qe);case"so":return qt.ordinalNumber(Qe,{unit:"second"});default:return br(Ht.length,Qe)}}},{key:"validate",value:function(Qe,Ht){return Ht>=0&&Ht<=59}},{key:"set",value:function(Qe,Ht,qt){return Qe.setUTCSeconds(qt,0),Qe}}]),he}(Kt),Fd=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",30),zi(h(Re),"incompatibleTokens",["t","T"]),Re}return bi(he,[{key:"parse",value:function(Qe,Ht){return gi(br(Ht.length,Qe),function(ur){return Math.floor(ur*Math.pow(10,3-Ht.length))})}},{key:"set",value:function(Qe,Ht,qt){return Qe.setUTCMilliseconds(qt),Qe}}]),he}(Kt),tc=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",10),zi(h(Re),"incompatibleTokens",["t","T","x"]),Re}return bi(he,[{key:"parse",value:function(Qe,Ht){switch(Ht){case"X":return Wo(hi_basicOptionalMinutes,Qe);case"XX":return Wo(hi_basic,Qe);case"XXXX":return Wo(hi_basicOptionalSeconds,Qe);case"XXXXX":return Wo(hi_extendedOptionalSeconds,Qe);default:return Wo(hi_extended,Qe)}}},{key:"set",value:function(Qe,Ht,qt){return Ht.timestampIsSet?Qe:new Date(Qe.getTime()-qt)}}]),he}(Kt),Km=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",10),zi(h(Re),"incompatibleTokens",["t","T","X"]),Re}return bi(he,[{key:"parse",value:function(Qe,Ht){switch(Ht){case"x":return Wo(hi_basicOptionalMinutes,Qe);case"xx":return Wo(hi_basic,Qe);case"xxxx":return Wo(hi_basicOptionalSeconds,Qe);case"xxxxx":return Wo(hi_extendedOptionalSeconds,Qe);default:return Wo(hi_extended,Qe)}}},{key:"set",value:function(Qe,Ht,qt){return Ht.timestampIsSet?Qe:new Date(Qe.getTime()-qt)}}]),he}(Kt),um=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",40),zi(h(Re),"incompatibleTokens","*"),Re}return bi(he,[{key:"parse",value:function(Qe){return tr(Qe)}},{key:"set",value:function(Qe,Ht,qt){return[new Date(1e3*qt),{timestampIsSet:!0}]}}]),he}(Kt),ad=function(kt){se(he,kt);var Jt=wt(he);function he(){var Re;Mt(this,he);for(var Qe=arguments.length,Ht=new Array(Qe),qt=0;qt<Qe;qt++)Ht[qt]=arguments[qt];return zi(h(Re=Jt.call.apply(Jt,[this].concat(Ht))),"priority",20),zi(h(Re),"incompatibleTokens","*"),Re}return bi(he,[{key:"parse",value:function(Qe){return tr(Qe)}},{key:"set",value:function(Qe,Ht,qt){return[new Date(qt),{timestampIsSet:!0}]}}]),he}(Kt),Zc={G:new en,y:new Xr,Y:new Es,R:new Ys,u:new qa,Q:new Qs,q:new ic,M:new wl,L:new md,w:new yc,I:new im,d:new Il,D:new Bc,E:new Xl,e:new uc,c:new Oc,i:new pc,a:new Ul,b:new Xc,B:new ec,h:new vd,H:new bd,K:new Sd,k:new Ru,m:new mm,s:new hu,S:new Fd,X:new tc,x:new Km,t:new um,T:new ad},Cd=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Rm=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,om=/^'([^]*?)'?$/,pm=/''/g,Ld=/\S/,jd=/[a-zA-Z]/;var Nm={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}};var ku={date:Zr({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:Zr({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Zr({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},qm={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},fm={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},Nu={narrow:fm.narrow,abbreviated:["Jan.","Feb.","M\xe4rz","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:fm.wide};const wm={code:"de",formatDistance:function(Jt,he,Re){var Qe,Ht=null!=Re&&Re.addSuffix?Nm[Jt].withPreposition:Nm[Jt].standalone;return Qe="string"==typeof Ht?Ht:1===he?Ht.one:Ht.other.replace("{{count}}",String(he)),null!=Re&&Re.addSuffix?Re.comparison&&Re.comparison>0?"in "+Qe:"vor "+Qe:Qe},formatLong:ku,formatRelative:function(Jt,he,Re,Qe){return qm[Jt]},localize:{ordinalNumber:function(Jt){return Number(Jt)+"."},era:Ps({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},defaultWidth:"wide"}),quarter:Ps({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:function(Jt){return Jt-1}}),month:Ps({values:fm,formattingValues:Nu,defaultWidth:"wide"}),day:Ps({values:{narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},defaultWidth:"wide"}),dayPeriod:Ps({values:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},defaultWidth:"wide",formattingValues:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:rl({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(Jt){return parseInt(Jt)}}),era:Yr({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:"any"}),quarter:Yr({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(Jt){return Jt+1}}),month:Yr({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(j[a\xe4]n|feb|m\xe4r[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|m\xe4rz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[a\xe4]/i,/^f/i,/^m\xe4r/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Yr({matchPatterns:{narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Yr({matchPatterns:{narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}};let Bd=(()=>{class kt{static#e=this.defaults={fallbackOutput:""};static#t=this.dateFnsLocales={de:wm,en:Ms};constructor(he){this.locale=he}formatNumber(he,Re,Qe=kt.defaults.fallbackOutput){if(null==he)return"";if(!Re)return Qe;const[Ht,qt]=this._splitNumberInIntegerAndFractionalPart(he),[Lo,ur]=this._splitNumberInIntegerAndFractionalPart(Re);return`${this._formatNumberIntegerPart(Ht,Lo)}${this._formatFractionalPart(qt,ur?ur.length:0)}`}formatNumberWithAppendingZeros(he,Re,Qe=kt.defaults.fallbackOutput){const Ht=this.getDecimalSeparator();let qt=this.formatNumber(he,Re,Qe);if(qt&&qt.length&&Re.includes("."))if(qt.includes(Ht)){const Lo=Re.split(".")[1].length,ur=qt.split(Ht)[1].length;Lo&&ur&&ur<Lo&&(qt+="0".repeat(Lo-ur))}else{const Lo=Re.split(".")[1].length;Lo&&Lo>0&&(qt=qt+Ht+"0".repeat(Lo))}return qt}parseNumber(he){return he?"de"===this.locale.toString()?Number.parseFloat(he.replace(this.getThousandsSeparator(),"").replace(this.getDecimalSeparator(),".")):Number.parseFloat(he.replace(this.getThousandsSeparator(),"")):0}_formatNumberIntegerPart(he,Re){let Qe=he;return this._removeLeadingZeros(Re)&&(Qe=this._removeLeadingZerosFromNumberString(Qe)),Qe}_removeLeadingZeros(he){return he.startsWith("#")}_insertThousandSeparatorsIntoNumberString(he){return he.replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${this.getThousandsSeparator()}`)}getThousandsSeparator(){return"de"===this.locale.toString()?".":","}_removeLeadingZerosFromNumberString(he){return he.replace(/^0+/,"")}_formatFractionalPart(he,Re){return he?`${this.getDecimalSeparator()}${he.slice(0,Re)}`:""}getDecimalSeparator(){return"de"===this.locale.toString()?",":"."}getDefaultDateOutputPattern(){return"de"===this.locale.toString()?"dd.MM.yyyy":"MM/dd/yyyy"}_splitNumberInIntegerAndFractionalPart(he){const Re=`${he}`.split(".");return[Re[0],Re[1]]}formatDate(he,Re,Qe,Ht=kt.defaults.fallbackOutput){Re||(Re=this.getDefaultDateOutputPattern());const qt=this.parseDate(he,Qe);return qt?function Zt(kt,Jt,he){var Re,Qe,Ht,qt,Lo,ur,rr,Oa,Pa,Ja,fs,El,Ic,Pc,td,$c,ud,qc;Vi(2,arguments);var Dm=String(Jt),oc=fo(),Zd=null!==(Re=null!==(Qe=he?.locale)&&void 0!==Qe?Qe:oc.locale)&&void 0!==Re?Re:Bs,Sc=$o(null!==(Ht=null!==(qt=null!==(Lo=null!==(ur=he?.firstWeekContainsDate)&&void 0!==ur?ur:null==he||null===(rr=he.locale)||void 0===rr||null===(Oa=rr.options)||void 0===Oa?void 0:Oa.firstWeekContainsDate)&&void 0!==Lo?Lo:oc.firstWeekContainsDate)&&void 0!==qt?qt:null===(Pa=oc.locale)||void 0===Pa||null===(Ja=Pa.options)||void 0===Ja?void 0:Ja.firstWeekContainsDate)&&void 0!==Ht?Ht:1);if(!(Sc>=1&&Sc<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Md=$o(null!==(fs=null!==(El=null!==(Ic=null!==(Pc=he?.weekStartsOn)&&void 0!==Pc?Pc:null==he||null===(td=he.locale)||void 0===td||null===($c=td.options)||void 0===$c?void 0:$c.weekStartsOn)&&void 0!==Ic?Ic:oc.weekStartsOn)&&void 0!==El?El:null===(ud=oc.locale)||void 0===ud||null===(qc=ud.options)||void 0===qc?void 0:qc.weekStartsOn)&&void 0!==fs?fs:0);if(!(Md>=0&&Md<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Zd.localize)throw new RangeError("locale must contain localize property");if(!Zd.formatLong)throw new RangeError("locale must contain formatLong property");var Pm=Hi(kt);if(!Do(Pm))throw new RangeError("Invalid time value");var Mm=Vr(Pm,Va(Pm)),Gm={firstWeekContainsDate:Sc,weekStartsOn:Md,locale:Zd,_originalDate:Pm},Ou=Dm.match(Fr).map(function(Lc){var Hc=Lc[0];return"p"===Hc||"P"===Hc?(0,wa[Hc])(Lc,Zd.formatLong):Lc}).join("").match(yl).map(function(Lc){if("''"===Lc)return"'";var Hc=Lc[0];if("'"===Hc)return function ri(kt){var Jt=kt.match(nl);return Jt?Jt[1].replace(hl,"'"):kt}(Lc);var Hd=Is[Hc];if(Hd)return!(null!=he&&he.useAdditionalWeekYearTokens)&&Zi(Lc)&&Eo(Lc,Jt,String(kt)),!(null!=he&&he.useAdditionalDayOfYearTokens)&&cn(Lc)&&Eo(Lc,Jt,String(kt)),Hd(Mm,Lc,Zd.localize,Gm);if(Hc.match(Cc))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Hc+"`");return Lc}).join("");return Ou}(qt,this._translateBackendDateFormatToFrontend(Re),{useAdditionalWeekYearTokens:!0,locale:this._dateFnLocale}):Ht}formatTimeInterval(he){return this.formatDate(he,"HH:mm",["HH:mm:ss","HH:mm"])}formatDateDiffFromNow(he,Re,Qe=kt.defaults.fallbackOutput){const Ht=this.parseDate(he,Re);return Ht?function Ao(kt,Jt){return Vi(1,arguments),Ki(kt,Date.now(),Jt)}(Ht,{addSuffix:!0,locale:this._dateFnLocale}):Qe}get _dateFnLocale(){return kt.dateFnsLocales[this.locale]||kt.dateFnsLocales.enUS}parseDate(he,Re){let Qe;if(Vs(he)){if(Re)return this._parseFromFormat(he,Re);Qe=function em(kt,Jt){var he;Vi(1,arguments);var Re=$o(null!==(he=Jt?.additionalDigits)&&void 0!==he?he:2);if(2!==Re&&1!==Re&&0!==Re)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof kt&&"[object String]"!==Object.prototype.toString.call(kt))return new Date(NaN);var Ht,Qe=function Nc(kt){var Re,Jt={},he=kt.split(Kl.dateTimeDelimiter);if(he.length>2)return Jt;if(/:/.test(he[0])?Re=he[0]:(Jt.date=he[0],Re=he[1],Kl.timeZoneDelimiter.test(Jt.date)&&(Jt.date=kt.split(Kl.timeZoneDelimiter)[0],Re=kt.substr(Jt.date.length,kt.length))),Re){var Qe=Kl.timezone.exec(Re);Qe?(Jt.time=Re.replace(Qe[1],""),Jt.timezone=Qe[1]):Jt.time=Re}return Jt}(kt);if(Qe.date){var qt=function Dd(kt,Jt){var he=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+Jt)+"})|(\\d{2}|[+-]\\d{"+(2+Jt)+"})$)"),Re=kt.match(he);if(!Re)return{year:NaN,restDateString:""};var Qe=Re[1]?parseInt(Re[1]):null,Ht=Re[2]?parseInt(Re[2]):null;return{year:null===Ht?Qe:100*Ht,restDateString:kt.slice((Re[1]||Re[2]).length)}}(Qe.date,Re);Ht=function _c(kt,Jt){if(null===Jt)return new Date(NaN);var he=kt.match(xl);if(!he)return new Date(NaN);var Re=!!he[4],Qe=wc(he[1]),Ht=wc(he[2])-1,qt=wc(he[3]),Lo=wc(he[4]),ur=wc(he[5])-1;if(Re)return function Ci(kt,Jt,he){return Jt>=1&&Jt<=53&&he>=0&&he<=6}(0,Lo,ur)?function Uc(kt,Jt,he){var Re=new Date(0);Re.setUTCFullYear(kt,0,4);var Ht=7*(Jt-1)+he+1-(Re.getUTCDay()||7);return Re.setUTCDate(Re.getUTCDate()+Ht),Re}(Jt,Lo,ur):new Date(NaN);var rr=new Date(0);return function mn(kt,Jt,he){return Jt>=0&&Jt<=11&&he>=1&&he<=(dn[Jt]||(Mr(kt)?29:28))}(Jt,Ht,qt)&&function Nn(kt,Jt){return Jt>=1&&Jt<=(Mr(kt)?366:365)}(Jt,Qe)?(rr.setUTCFullYear(Jt,Ht,Math.max(Qe,qt)),rr):new Date(NaN)}(qt.restDateString,qt.year)}if(!Ht||isNaN(Ht.getTime()))return new Date(NaN);var rr,Lo=Ht.getTime(),ur=0;if(Qe.time&&(ur=function nm(kt){var Jt=kt.match(ll);if(!Jt)return NaN;var he=Id(Jt[1]),Re=Id(Jt[2]),Qe=Id(Jt[3]);return function Io(kt,Jt,he){return 24===kt?0===Jt&&0===he:he>=0&&he<60&&Jt>=0&&Jt<60&&kt>=0&&kt<25}(he,Re,Qe)?he*nt+6e4*Re+1e3*Qe:NaN}(Qe.time),isNaN(ur)))return new Date(NaN);if(!Qe.timezone){var Oa=new Date(Lo+ur),Pa=new Date(0);return Pa.setFullYear(Oa.getUTCFullYear(),Oa.getUTCMonth(),Oa.getUTCDate()),Pa.setHours(Oa.getUTCHours(),Oa.getUTCMinutes(),Oa.getUTCSeconds(),Oa.getUTCMilliseconds()),Pa}return rr=function Ns(kt){if("Z"===kt)return 0;var Jt=kt.match(tm);if(!Jt)return 0;var he="+"===Jt[1]?-1:1,Re=parseInt(Jt[2]),Qe=Jt[3]&&parseInt(Jt[3])||0;return function cr(kt,Jt){return Jt>=0&&Jt<=59}(0,Qe)?he*(Re*nt+6e4*Qe):NaN}(Qe.timezone),isNaN(rr)?new Date(NaN):new Date(Lo+ur+rr)}(he)}else Qe=Hi(he);return Do(Qe)?Qe:null}_parseFromFormat(he,Re){let Qe=null;return el(Re)?Re.find(Ht=>{const qt=this._parseFromStringFormat(he,Ht);return qt&&(Qe=qt),!!qt}):Qe=this._parseFromStringFormat(he,Re),Qe}_parseFromStringFormat(he,Re){const Ht=function Ud(kt,Jt,he,Re){var Qe,Ht,qt,Lo,ur,rr,Oa,Pa,Ja,fs,El,Ic,Pc,td,$c,ud,qc,Dm;Vi(3,arguments);var oc=String(kt),Zd=String(Jt),Sc=fo(),Md=null!==(Qe=null!==(Ht=Re?.locale)&&void 0!==Ht?Ht:Sc.locale)&&void 0!==Qe?Qe:Bs;if(!Md.match)throw new RangeError("locale must contain match property");var Pm=$o(null!==(qt=null!==(Lo=null!==(ur=null!==(rr=Re?.firstWeekContainsDate)&&void 0!==rr?rr:null==Re||null===(Oa=Re.locale)||void 0===Oa||null===(Pa=Oa.options)||void 0===Pa?void 0:Pa.firstWeekContainsDate)&&void 0!==ur?ur:Sc.firstWeekContainsDate)&&void 0!==Lo?Lo:null===(Ja=Sc.locale)||void 0===Ja||null===(fs=Ja.options)||void 0===fs?void 0:fs.firstWeekContainsDate)&&void 0!==qt?qt:1);if(!(Pm>=1&&Pm<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Td=$o(null!==(El=null!==(Ic=null!==(Pc=null!==(td=Re?.weekStartsOn)&&void 0!==td?td:null==Re||null===($c=Re.locale)||void 0===$c||null===(ud=$c.options)||void 0===ud?void 0:ud.weekStartsOn)&&void 0!==Pc?Pc:Sc.weekStartsOn)&&void 0!==Ic?Ic:null===(qc=Sc.locale)||void 0===qc||null===(Dm=qc.options)||void 0===Dm?void 0:Dm.weekStartsOn)&&void 0!==El?El:0);if(!(Td>=0&&Td<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===Zd)return""===oc?Hi(he):new Date(NaN);var Hd,Mm={firstWeekContainsDate:Pm,weekStartsOn:Td,locale:Md},Gm=[new ut],Ou=Zd.match(Rm).map(function(Gc){var sc=Gc[0];return sc in wa?(0,wa[sc])(Gc,Md.formatLong):Gc}).join("").match(Cd),Lc=[],Hc=xe(Ou);try{var Pu=function(){var sc=Hd.value;!(null!=Re&&Re.useAdditionalWeekYearTokens)&&Zi(sc)&&Eo(sc,Zd,kt),(null==Re||!Re.useAdditionalDayOfYearTokens)&&cn(sc)&&Eo(sc,Zd,kt);var pd=sc[0],rm=Zc[pd];if(rm){var Gd=rm.incompatibleTokens;if(Array.isArray(Gd)){var vm=Lc.find(function(Tu){return Gd.includes(Tu.token)||Tu.token===pd});if(vm)throw new RangeError("The format string mustn't contain `".concat(vm.fullToken,"` and `").concat(sc,"` at the same time"))}else if("*"===rm.incompatibleTokens&&Lc.length>0)throw new RangeError("The format string mustn't contain `".concat(sc,"` and any other token at the same time"));Lc.push({token:pd,fullToken:sc});var Us=rm.run(oc,sc,Md.match,Mm);if(!Us)return{v:new Date(NaN)};Gm.push(Us.setter),oc=Us.rest}else{if(pd.match(jd))throw new RangeError("Format string contains an unescaped latin alphabet character `"+pd+"`");if("''"===sc?sc="'":"'"===pd&&(sc=function km(kt){return kt.match(om)[1].replace(pm,"'")}(sc)),0!==oc.indexOf(sc))return{v:new Date(NaN)};oc=oc.slice(sc.length)}};for(Hc.s();!(Hd=Hc.n()).done;){var tu=Pu();if("object"===oi(tu))return tu.v}}catch(Gc){Hc.e(Gc)}finally{Hc.f()}if(oc.length>0&&Ld.test(oc))return new Date(NaN);var Jm=Gm.map(function(Gc){return Gc.priority}).sort(function(Gc,sc){return sc-Gc}).filter(function(Gc,sc,pd){return pd.indexOf(Gc)===sc}).map(function(Gc){return Gm.filter(function(sc){return sc.priority===Gc}).sort(function(sc,pd){return pd.subPriority-sc.subPriority})}).map(function(Gc){return Gc[0]}),Mu=Hi(he);if(isNaN(Mu.getTime()))return new Date(NaN);var $d,Im=Vr(Mu,Va(Mu)),Mc={},gc=xe(Jm);try{for(gc.s();!($d=gc.n()).done;){var Rd=$d.value;if(!Rd.validate(Im,Mm))return new Date(NaN);var nu=Rd.set(Im,Mc,Mm);Array.isArray(nu)?(Im=nu[0],qs(Mc,nu[1])):Im=nu}}catch(Gc){gc.e(Gc)}finally{gc.f()}return Im}(he,this._translateBackendDateFormatToFrontend(Re),new Date,{useAdditionalWeekYearTokens:!0});return Do(Ht)?Ht:null}_translateBackendDateFormatToFrontend(he){return he.replace("S","SSS")}static#n=this.\u0275fac=function(Re){return new(Re||kt)(Dt.LFG(Dt.soG))};static#i=this.\u0275prov=Dt.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"})}return kt})();function xm(kt){return new Ii(50,kt)}let Pd=(()=>{class kt{static forRoot(){return{ngModule:kt,providers:[]}}static#e=this.\u0275fac=function(Re){return new(Re||kt)};static#t=this.\u0275mod=Dt.oAB({type:kt});static#n=this.\u0275inj=Dt.cJS({providers:[ms,{provide:Cs,useClass:qr,multi:!0},{provide:Cs,useClass:Ra,multi:!0},{provide:Cs,useClass:vr,multi:!0},{provide:Cs,useClass:ss,multi:!0},{provide:s,useClass:nn},{provide:rn,useFactory:xm,deps:[En],multi:!0},{provide:ii,useClass:Oo}],imports:[e.ez,n.aw]})}return kt})()},79309:(gt,X,a)=>{"use strict";a.d(X,{zc:()=>e,GZ:()=>n,pv:()=>s,cF:()=>l,MB:()=>c,Du:()=>Oe,Zr:()=>x,KX:()=>u,h_:()=>m,vk:()=>P,Vg:()=>G,nJ:()=>O,B8:()=>H,ij:()=>I,E6:()=>b,t8:()=>o,jS:()=>Pt,By:()=>Z,O4:()=>r,m9:()=>B,Kk:()=>q,bg:()=>j,k_:()=>J,yl:()=>ae,FJ:()=>ee,MR:()=>Y,LD:()=>ne,iC:()=>K,Ui:()=>ue,Qm:()=>$,cM:()=>Ke,eH:()=>ge,k6:()=>Ue,_L:()=>Se,dz:()=>me,TS:()=>Vt,MN:()=>lt,qL:()=>We,LV:()=>Dt,nK:()=>ye,g2:()=>ft,ji:()=>ve,od:()=>p});const e={id:1,name:"contact"},n={id:2,name:"contributor"},s={id:3,name:"location"},l={id:1,i18nName:{}},i={id:7,i18nName:{}},t={id:8,i18nName:{}};function p(Ie){return Ie===l.id||Ie===i.id||Ie===t.id}var c=function(Ie){return Ie[Ie.CONFIRMED=0]="CONFIRMED",Ie[Ie.PENDING=1]="PENDING",Ie[Ie.REFUSED=2]="REFUSED",Ie}(c||{});const o=0,x={id:0,key:0,name:"DEACTIVATED"},u={id:20,key:20,name:"IN_PROGRESS"},m={id:40,key:40,name:"PUBLISHED"};let b=(()=>{class Ie{static#e=this.SEARCH_LIST={id:1,name:"SearchList"};static#t=this.SEARCH_HISTORY={id:2,name:"SearchHistory"};static#n=this.OBJECT_LIST={id:3,name:"ObjectList"};static#i=this.OBJECT_HISTORY={id:4,name:"ObjectHistory"};static#o=this.CONTACT_LIST={id:5,name:"ContactList"};static#r=this.ACCESS_LIST={id:6,name:"AccessList"}}return Ie})();const I=0,H=1,O=2,P=3,G=4,B={id:1,name:"Filesystem"},ae={id:2,name:"YouTube"},J={id:3,name:"Vimeo"},q={id:4,name:"MyVideo"},j={id:5,name:"URL"},Y={id:1,name:"image"},K={id:2,name:"video"},ne={id:3,name:"pdf"},ee={id:4,name:"file"},$=0,ue=1e8,ge={id:1,name:"ENTITY_OWNER"},Ke={id:2,name:"DELIVERYCHANNEL_OWNER"},me={id:30,name:"PENDING"},Se={id:40,name:"ACTIVE"},Ue=[{id:0,name:"DISABLED"},{id:20,name:"NEW"},me,Se],We={id:0,name:"DEFAULT"},lt={id:3,name:"CONTENT_DELIVERY_API"},Vt=[We,{id:1,name:"WEBSERVICE"},{id:2,name:"PARTNERCLIENT"},lt];var r=function(Ie){return Ie.Service="SERVICE",Ie.Import="IMPORT",Ie.Maintenance="MAINTENANCE",Ie.Test="TEST",Ie.Action="ACTION",Ie}(r||{}),Z=function(Ie){return Ie.scheduled="scheduled",Ie.running="running",Ie.suspended="suspended",Ie.canceled="canceled",Ie.unscheduled="unscheduled",Ie.finished_success="finished_success",Ie.finished_error="finished_error",Ie}(Z||{}),Pt=function(Ie){return Ie.schedule="schedule",Ie.unschedule="unschedule",Ie.reschedule="reschedule",Ie.start="start",Ie.suspend="suspend",Ie.resume="resume",Ie.finish_success="finish_success",Ie.finish_error="finish_error",Ie.cancel="cancel",Ie.cancel_suspended="cancel_suspended",Ie}(Pt||{});const Oe={isEmptyQueue:!0,size:0,runningJob:null,queuedJobs:[],timeSchedJobs:[]},ye="Event",ve="Tour",ft="Poi",Dt=[ye,ve,ft]},85829:(gt,X,a)=>{"use strict";a.r(X),a.d(X,{ADDRESSBASE:()=>e.P_w,ADDRESSPOI:()=>e.B7r,ANNOUNCEMENT:()=>e.vpn,ARRAY_ENTITY_FIELD:()=>e.QyX,ARRAY_ID_FIELD:()=>e.rsm,ARTICLE:()=>e.N_z,AbstractAction:()=>e.huu,AbstractAppearanceExtensionContentComponent:()=>e.Mq7,AbstractBaseDataFormPanelComponent:()=>e.jSX,AbstractButtonBarComponent:()=>e.KhT,AbstractClientAwareFormPanelComponent:()=>e.ipx,AbstractClientSideBackgroundAction:()=>e.Z59,AbstractCoreDataObjectFilterComponent:()=>e.x8A,AbstractCoreDataObjectFilterFormHandler:()=>e.z5l,AbstractCoreDataObjectFormHandler:()=>e.s68,AbstractCoreDataObjectFormPanelComponent:()=>e.CVl,AbstractCoreDataObjectResolverService:()=>e.L8D,AbstractCoreDataObjectSearchPage:()=>e.hzG,AbstractDataSourceService:()=>e.tSG,AbstractDatamanagerAction:()=>e.BzM,AbstractDeleteAction:()=>e.OyM,AbstractDuplicateAction:()=>e.$cz,AbstractDuplicatesSearchPage:()=>e.Qpf,AbstractEditPage:()=>e.pjK,AbstractEntityFilterComponent:()=>e.FQG,AbstractEntityPermissionService:()=>e.TmZ,AbstractExtendedAttributeAwareFormPanelComponent:()=>e.qwi,AbstractField:()=>e.oHD,AbstractFilterPanelComponent:()=>e.OGz,AbstractFormComponent:()=>e.NNe,AbstractFormHandler:()=>e.z$M,AbstractFormItem:()=>e.nwV,AbstractFormPanelComponent:()=>e.NnM,AbstractFormValidatorService:()=>e.E$i,AbstractI18nDataObjectOptionProviderService:()=>e.Snb,AbstractI18nDataObjectTreeOptionProviderService:()=>e.KG8,AbstractInboxPage:()=>e.iVD,AbstractMetainfoFormPanelComponent:()=>e.eeS,AbstractModifyAppearancesAction:()=>e.I0_,AbstractModuleAwareDataObjectEditPage:()=>e.kjG,AbstractPermissionAwareFilterFormHandler:()=>e.d$k,AbstractPermissionAwareFormHandler:()=>e.plZ,AbstractProposedAppearancesConfirmAction:()=>e.GHh,AbstractProposedAppearancesRefuseAction:()=>e.IUB,AbstractReadOnlyItem:()=>e.AwY,AbstractResolveDuplicateGroupAction:()=>e.w$i,AbstractSearchPage:()=>e.uYu,AbstractSetStateAction:()=>e.zLk,AbstractSidenavComponent:()=>e.xx6,AbstractSimpleEntitySearchPage:()=>e.RmV,AbstractStaticAction:()=>e.Mw8,AbstractTranslateAction:()=>e.Z4A,AbstractValidatedControl:()=>e.Ah0,AccordionLockablePanelComponent:()=>e.Bq6,ActionExecution:()=>e.Diz,ActionProviderService:()=>e.aFQ,ActionResultDialogComponent:()=>e.Aq,ActionRunState:()=>e.c_T,ActionState:()=>e.$Wc,AddContactListDialogComponent:()=>e.KSj,AddGeoRegionComponent:()=>e.dDz,AddressPoiAutocompleteService:()=>e.d4z,AddressPoiContactAutocompleteService:()=>e.UzO,AddressPoiContributorAutocompleteService:()=>e.$59,AddressPoiConvertDialogComponent:()=>e.tbi,AddressPoiCreateDialogComponent:()=>e.dwJ,AddressPoiDuplicatesDefinitionFormHandlerService:()=>e.Tq6,AddressPoiDuplicatesSearchPage:()=>e.$Ab,AddressPoiGroupOptionProviderService:()=>e.FhU,AddressPoiLocationAutocompleteService:()=>e.GYV,AddressPoiMergeDuplicatesDialogComponent:()=>e.Z1d,AddressPoiOccupancyDialogComponent:()=>e.yfN,AddressPoiResolveDuplicateGroupAction:()=>e.A7q,AddressPoiSensorDataDialogComponent:()=>e.LPt,AddressPoiSlideInComponent:()=>e.BsI,AddressPoiTypeOptionProviderService:()=>e.Ba4,AdminFilterPanelComponent:()=>e.B8d,AiGenerateTextDialogComponent:()=>e.hpw,AnyField:()=>e.ACE,ArrayField:()=>e.OFy,AssignableProductlinesWithPortalContextOptionProviderService:()=>e.Eom,AutocompleteComponent:()=>e.YRL,AutocompleteComponentBuilderService:()=>e.pCd,AutocompleteField:()=>e.wgw,AvailableLanguagesOptionProviderService:()=>e.qeE,BACKEND_TIMESTAMP_FORMAT:()=>e.t0F,BASE_ENTITY_DATA_SOURCE:()=>e.oxo,BackgroundActionListComponent:()=>e.rJy,BackgroundActionService:()=>e.k_m,BaseAutocompleteComponent:()=>e.hvm,BaseCheckboxComponent:()=>e.G7s,BaseCheckboxSelectComponent:()=>e.Nkp,BaseDateComponent:()=>e.dPH,BaseDayMonthComponent:()=>e.OOD,BaseEntityActionDialogComponent:()=>e.DQB,BaseEntityAutocompleteService:()=>e.xzf,BaseEntityDialogComponent:()=>e.iTQ,BaseEntityFilterComponent:()=>e.$rd,BaseEntityFilterFormHandlerService:()=>e.TtX,BaseEntityFilterPanelComponent:()=>e.evu,BaseEntityFormConfiguration:()=>e.lnr,BaseEntityFormExtension:()=>e.f3D,BaseEntityPermissionService:()=>e.x0E,BaseRadioButtonGroupComponent:()=>e.qF7,BaseReadOnlyI18nInputComponent:()=>e.ZCv,BaseSlotProvider:()=>e.BHq,BaseSmartTimeComponent:()=>e.UWk,BaseTreeComponent:()=>e.QHT,BaseTripleRadioButtonComponent:()=>e.GLv,BaseUploadComponent:()=>e.B9_,CORE_MODULE_KEY:()=>e.QaJ,CURRENT_AND_SUBCLIENTS:()=>e.W$N,Checkbox:()=>e.XZJ,CheckboxComponent:()=>e.bK4,CheckboxComponentBuilderService:()=>e.$gT,CheckboxSelect:()=>e.N2N,CheckboxSelectComponent:()=>e.rSr,CheckboxSelectComponentBuilderService:()=>e.D$K,CkEditDialogComponent:()=>e.Us$,ClientAutocompleteService:()=>e.pLQ,ClientDao:()=>e.vtY,ClientInformationDao:()=>e.Goq,ClientOptionProviderService:()=>e.zhK,ClientSideFilteringBaseEntityDataSourceService:()=>e.Nbw,ClientSideFilteringDataSourceService:()=>e.oiz,ClientSubAndSuperClientOptionProviderService:()=>e.uYo,ClientTreeOptionProviderService:()=>e.rMr,CloseEditEntityDialogComponent:()=>e.nCL,CompactListTableComponent:()=>e._pF,CompactListTableHeadingComponent:()=>e.VdW,ComparatorProviderService:()=>e.QBZ,CompareComponentBuilderService:()=>e.Bh$,CompareField:()=>e.lYm,ComponentBuilder:()=>e.Qwo,ConfigParameter:()=>e.zds,ConfigurationDefinitionPartFormConfiguration:()=>e.lw2,ConfigurationPage:()=>e.Q47,ConfigurationProvider:()=>e.PcS,ConfirmDialogComponent:()=>e.$5_,ContactListService:()=>e.VWr,ContactPurposeDao:()=>e.UBz,ContactPurposeOptionProviderService:()=>e.Qwz,ContextNavigationService:()=>e.EBn,ConvertTimestampsPipe:()=>e.ER7,CopyToClipboardCellComponent:()=>e.vLY,CoreDataObjectAutocompleteRegistry:()=>e.Ru3,CoreEntityAutocompleteComponent:()=>e.kZA,CoreEntityDef:()=>e.t8x,CoreEntityDefService:()=>e.dEJ,CoreEntityReferencesDialogComponent:()=>e.aW9,CountryOptionProviderService:()=>e.lxQ,CreateContactListDialogComponent:()=>e.EWB,CreateDashboardWidgetDialogComponent:()=>e.$3L,CreateSearchListDialogComponent:()=>e.ohD,DATAMANAGER_LOGINNAME:()=>e.yik,DataObjectMediumInitializerService:()=>e.xOe,DataObjectReferencesComponent:()=>e.AFT,DatamanagerInspectDialogComponent:()=>e.JzP,DateComponent:()=>e.IdW,DateComponentBuilderService:()=>e.Ykm,DateField:()=>e.Nnh,DateSeriesInterval:()=>e.cK0,DefaultBaseEntityPermissionService:()=>e.vvt,DefaultExtensionOrderFieldsProviderService:()=>e.woc,DeleteDialogComponent:()=>e.F1d,DeliveryChannelDao:()=>e.x9M,DeliveryChannelOptionProviderService:()=>e.env,DialogComponent:()=>e.auo,DialogDefaultSizes:()=>e.DQC,DialogService:()=>e.xAy,DiscardDialogComponent:()=>e.tAc,DuplicatesDefinitionDialogComponent:()=>e.cc$,DynamicLocaleId:()=>e.jC1,EVENT:()=>e.Ks0,EVENT_MODULE_PL_KEY:()=>e.a$0,EditAuditedDataComponent:()=>e.hgr,EditClientComponent:()=>e.L9M,EditContactComponent:()=>e.tfF,EditContactListsComponent:()=>e.s4V,EditExtendedAttributesTableComponent:()=>e.gmj,EditGeoInfoComponent:()=>e.Sd1,EditGeoLocationComponent:()=>e.cpn,EditGeoPathComponent:()=>e.m$b,EditGeoRegionsAdvancedComponent:()=>e.LYy,EditGeoRegionsComponent:()=>e.eRF,EditHeaderComponent:()=>e.nTJ,EditLanguageDialogComponent:()=>e.s9U,EditOccupancyComponent:()=>e.Xzv,EditOriginComponent:()=>e.QWS,EditPageButtonBarComponent:()=>e.r3,EditProductlinesComponent:()=>e.rXd,EditQualityComponent:()=>e.Bbh,EditSeoComponent:()=>e.kWV,EditSocialMediaComponent:()=>e.ddR,EditTagsComponent:()=>e.OVp,EditTitlesComponent:()=>e.DJU,EmbeddedObjectSourceDirective:()=>e.GuQ,EntityBrowseHistoryStorageService:()=>e.Iri,EntityCollectionsService:()=>e.fGD,EntityHistoryDialogComponent:()=>e.sh_,EntityIconService:()=>e.l1B,EntityListMgmtPage:()=>e.xAT,EntityListMgmtPageGridElementComponent:()=>e.pZj,EntityListsActionCellComponent:()=>e.HpD,EntityPermissionServiceRegistry:()=>e.J1$,EntityStateComponent:()=>e.nPU,EntityStateDao:()=>e.oKU,EntityStateOptionProviderService:()=>e.KE0,EntityStateService:()=>e.Ov9,ExtendedDuplicatesDialogComponent:()=>e.eFn,ExtensionOrderFieldsProviderService:()=>e.eDO,FILTER_CONTENT_ANIMATION:()=>e.zDJ,FieldDefinitions:()=>e.Maw,FieldExtension:()=>e.UT4,FieldExtensionType:()=>e.VqY,FileSizePipe:()=>e.p70,FilterComponent:()=>e.zud,FilterHeaderComponent:()=>e.Bcw,ForgotPasswordPage:()=>e.AfD,FormComponent:()=>e.UrU,FormConfiguration:()=>e.ESd,FormControlComponent:()=>e.Ac8,FormControlOptionProvider:()=>e.K$s,FormExtension:()=>e.mjb,FormItemComponentBuilderService:()=>e.FJy,FormatterService:()=>e.H11,FulltextFilterPanelComponent:()=>e.YTj,FulltextSearchOption:()=>e.wKb,GenericI18nAttributeOptionProviderService:()=>e.OVR,GenericI18nDataObjectOptionProviderService:()=>e.vZb,GenericOptionProvider:()=>e.Ihn,GenericSelectorDirective:()=>e.lMk,GenericSidebarService:()=>e.Bqd,GenericSlideInConfig:()=>e.vTp,GenericSlideInPageComponent:()=>e.Ee_,GeoFilterOfferPanelComponent:()=>e.P5h,GeoFilterPanelComponent:()=>e.LqS,GeoSystemsProviderService:()=>e.s07,GeometryFormatterService:()=>e.Ru2,GlobalErrorHandler:()=>e.L6k,GroupField:()=>e.Ngj,HasAllPermissionDirective:()=>e.l_h,HasAnyFieldReadPermissionDirective:()=>e.lAk,HasAnyPermissionDirective:()=>e.Ra2,HasFieldReadPermissionDirective:()=>e.jth,HasFieldWritePermissionDirective:()=>e.Xvw,HasSavePermissionDirective:()=>e.RFi,HintDialogComponent:()=>e.fYw,HistoryEntityType:()=>e.PlG,I18nAttributesComponent:()=>e.yvx,I18nMultiInput:()=>e.A$A,I18nMultiInputComponent:()=>e.JSK,I18nMultiInputComponentBuilderService:()=>e.aJs,I18nMultiRichtext:()=>e.iYE,I18nMultiRichtextComponent:()=>e.SKA,I18nMultiRichtextComponentBuilderService:()=>e.YC6,I18nMultiTextarea:()=>e.SD5,I18nMultiTextareaComponent:()=>e.sds,I18nMultiTextareaComponentBuilderService:()=>e.tH6,I18nTranslationTooltipComponent:()=>e.$0t,IMXPLATFORM_ACTIONS:()=>e.Gkr,IMXPLATFORM_ACTION_VOTER:()=>e.xHi,IMXPLATFORM_ADDRESS_POI_DUPLICATE_DEFINITION_FORM_CONFIGURATION:()=>e._cZ,IMXPLATFORM_ARTICLE_FILTER_FORM_EXTENSIONS:()=>e.oaH,IMXPLATFORM_ARTICLE_FORM_EXTENSIONS:()=>e.Vmd,IMXPLATFORM_BASE_ENTITY_FILTER_FORM_CONFIGURATION_FILTER_FORM_EXTENSIONS:()=>e.V9m,IMXPLATFORM_BASE_ENTITY_FORM_CONFIGURATION_FORM_EXTENSIONS:()=>e.sOr,IMXPLATFORM_BASE_ENTITY_PERMISSION_SERVICE:()=>e.vI_,IMXPLATFORM_CONFIGURATION_DEFINITION_PART_CONFIG:()=>e.RlX,IMXPLATFORM_CONTENT_SCORE_SERVICE:()=>e.WUH,IMXPLATFORM_CORE_DATA_OBJECT_AUTO_COMPLETE_SERVICE:()=>e.FD4,IMXPLATFORM_CORE_MODULE_BASE_ENTITY_CONFIG:()=>e.mKO,IMXPLATFORM_CORE_MODULE_EXTENDED_REGION_BASE_ENTITY_CONFIG:()=>e.kF3,IMXPLATFORM_DISTANCE_SEARCH_SERVICES:()=>e.hSA,IMXPLATFORM_EDIT_PAGE_ADDITIONAL_BUTTON_BAR_SLOT_TOKEN:()=>e.b4M,IMXPLATFORM_ENTITY_PERMISSION_SERVICE:()=>e.rn3,IMXPLATFORM_FORMS_COMPONENT_BUILDER:()=>e.mr3,IMXPLATFORM_FORMS_CONTROL_BUILDER:()=>e.Gyk,IMXPLATFORM_MEDIA_TYPE_VOTER:()=>e.Aoi,IMXPLATFORM_METAINFO_FILTERPANEL_PROVIDER:()=>e.VIo,IMXPLATFORM_METAINFO_FORMPANEL_PROVIDER:()=>e.WCY,IMXPLATFORM_MODULE_BASE_ENTITY_CONFIG:()=>e.eNC,IMXPLATFORM_MODULE_FIELDS_DEFINITION:()=>e.s4b,IMXPLATFORM_POOLED_MEDIUM_DEFAULT_FILTER_FORM_CONFIGURATION:()=>e.j5o,IMXPLATFORM_POOLED_MEDIUM_DEFAULT_FORM_CONFIGURATION:()=>e.hw$,IMXPLATFORM_POOLED_MEDIUM_FILTER_FORM_CONFIGURATION:()=>e.fsc,IMXPLATFORM_POOLED_MEDIUM_FILTER_FORM_EXTENSIONS:()=>e.bUz,IMXPLATFORM_POOLED_MEDIUM_FORM_CONFIGURATION:()=>e.bSI,IMXPLATFORM_POOLED_MEDIUM_FORM_EXTENSIONS:()=>e._cU,IMXPLATFORM_SEARCHPAGEDEFAULTS:()=>e.KbZ,IMXPLATFORM_UNIVERSAL_SEARCH_VOTER:()=>e.DAl,IMXPLATFORM_USER_MGMT_DEFAULT_FORM_CONFIGURATION:()=>e.l0D,IMXPLATFORM_USER_MGMT_FORM_CONFIGURATION:()=>e.ezM,IMXPLATFORM_USER_MGMT_FORM_EXTENSIONS:()=>e.BeU,IMX_PLATFORM_ARTICLE_EXTENDED_CRITERIA_DEFS:()=>e.hsB,IMX_PLATFORM_FIELDS:()=>e.HpM,IMX_PLATFORM_MODULES_FIELD_COLLECTION:()=>e.DBl,IMX_SIDEBAR_DATA:()=>e.Azm,IMX_SLIDE_IN_DATA:()=>e.zn7,IMX_SLOT_PROVIDERS:()=>e.tTp,ImageTypeNoSizeOptionProviderService:()=>e.Cmn,ImportDialogComponent:()=>e.nGB,ImportInfosSlideInComponent:()=>e.WR8,ImportSourcePipe:()=>e.qKu,ImportSourceViewAction:()=>e.oBH,ImxBaseDataAccessService:()=>e.e$K,ImxEntitiesMgrService:()=>e.qB2,ImxEntityListsDataAccessService:()=>e.$tK,ImxErrorStateMatcher:()=>e.Yzi,ImxPermissions:()=>e.uok,ImxPlatformConfigParameter:()=>e.x3q,ImxPlatformDataAccessService:()=>e.nqd,ImxPlatformMgmtDataAccessService:()=>e.Q8o,ImxPlatformModule:()=>e.yT$,ImxPlatformRoutingModule:()=>e.Riq,ImxSecurityManagerService:()=>e.Xhl,InfoService:()=>e.CMz,Input:()=>e.IIB,InputComponent:()=>e.amK,InputComponentBuilderService:()=>e.PHe,InputFieldTypeOptionProviderService:()=>e.Vvc,LANGUAGE_FIELD:()=>e.Mxn,LANGUAGE_NONE:()=>e.lT7,LIST_EXTENSION_ANIMATION:()=>e.L5T,LanguageDao:()=>e.s6X,LanguageFlagComponent:()=>e.lg1,LanguageInitService:()=>e.mM4,LanguageListComponent:()=>e.hYA,LanguageNamesPipe:()=>e.OD2,LanguageOptionProviderService:()=>e.t_W,LanguageSelect:()=>e.SsB,LanguageSelectComponent:()=>e.n$I,LanguageSelectComponentBuilderService:()=>e.Ack,LanguageSwitchButtonComponent:()=>e.HLO,ListExtensionAccordionComponent:()=>e.Fbf,ListExtensionAccordionItemComponent:()=>e.jQw,ListFooterComponent:()=>e.NbL,ListHeaderComponent:()=>e._UU,ListHistoryService:()=>e.GCG,ListNoResultsComponent:()=>e.AKr,ListRowComponent:()=>e.Ykg,ListShuffle:()=>e.Tb9,ListShuffleComponent:()=>e.xBk,LoadingPage:()=>e.h2J,LocationAutocompleteComponent:()=>e.dXY,LocationAutocompleteService:()=>e.lXk,LocationDao:()=>e.c0R,LocationOptionProviderService:()=>e.NZk,LoginPage:()=>e.XsS,LogoUploadComponent:()=>e.xGt,MIN_ALLOWED_DATE:()=>e.Man,MainFilterPanelComponent:()=>e.cN0,MainPage:()=>e.hEI,MediaAssignSidebarComponent:()=>e.ImG,MediaEditAssignmentDialogComponent:()=>e.GoE,MediaEditFormComponent:()=>e.bzU,MediaEditStepIndicatorComponent:()=>e.GGu,MediaFilterPanelComponent:()=>e.ifz,MediaFolderNameDialogComponent:()=>e.Mo$,MediaFolderNavigationComponent:()=>e.rj3,MediaFolderService:()=>e.dgR,MediaFormPanelComponent:()=>e.E_W,MediaFulltextFilterPanelComponent:()=>e.HZ0,MediaLicenseOptionProvider:()=>e.VGo,MediaProviderIconComponent:()=>e.Ig6,MediaProviderOptionProvider:()=>e.UZY,MediaResolverService:()=>e.$19,MediaSearchPage:()=>e.u$$,MediaTermsOfUseComponent:()=>e.k33,MediaThumbnailComponent:()=>e.ll4,MediaTypeOptionProvider:()=>e.TL6,MediaUploadComponent:()=>e._gZ,MediumCategoryPipe:()=>e.itS,MemoAttributeOptionProviderService:()=>e.bMP,MemoFilterPanelComponent:()=>e.dMU,MemoIconComponent:()=>e.TH7,MemoProviderService:()=>e.osb,MemoToggleIconComponent:()=>e.uS$,MemosListSlideInComponent:()=>e.ucr,MetainfoFormPanelProviderRegistry:()=>e.RHm,ModifyAppearancesDataDialogContentComponent:()=>e.sIf,ModuleBaseEntityConfiguration:()=>e.LEN,ModuleField:()=>e.IWA,ModuleFilterPanelComponentDirective:()=>e.kJJ,ModuleFormConfigurationService:()=>e.Lkj,ModuleFormPanelComponentDirective:()=>e.MPH,MonthlyDateSeriesDefinition:()=>e.zPv,MultiInput:()=>e.UfX,MultiInputComponent:()=>e.Lrd,MultiInputComponentBuilderService:()=>e.q2N,MultiSelect:()=>e.NUq,MultiSelectComponent:()=>e.OPm,MultiSelectComponentBuilderService:()=>e.SAg,NAVIGATION_ANIMATION:()=>e.laH,NavigationComponent:()=>e.JzT,NgControlBuilder:()=>e.$yX,NgControlBuilderService:()=>e.EGq,NumberFormatPipe:()=>e.pvF,OFFER:()=>e.GUq,ObjectHistoryTableComponent:()=>e.hGP,ObjectLanguagesOptionProviderService:()=>e.NH8,ObjectListCreationService:()=>e.hik,ObjectListDialogComponent:()=>e.RZ2,OccupancySensorOptionProviderService:()=>e.bwl,OpendataIconComponent:()=>e.mzY,OptionProvider:()=>e.I1q,OptionProviderSortable:()=>e.HHi,OrderType:()=>e.mrS,OwnDeliveryChannelOptionProviderService:()=>e.Ku6,POOLED_MEDIUM_DATA_SOURCE:()=>e.UDP,PRIMENG_CALENDAR_LOCALE:()=>e.xpf,PageNotAuthorizedPage:()=>e.hT,PageNotFoundPage:()=>e.Nes,PageTitleService:()=>e.ZJB,PermissionOptionProviderService:()=>e.wOC,PicklistSelect:()=>e.yio,PicklistSelectComponent:()=>e.W7z,PicklistSelectComponentBuilderService:()=>e.xdk,PlatformContentScoreService:()=>e.l2u,PlatformDateAdapter:()=>e.__Z,PlatformEntityStateService:()=>e.mPy,PlatformNavigation:()=>e.acD,PlatformTrackingService:()=>e.QNV,PooledMediaMoveDialogComponent:()=>e.Ci3,PooledMediaUpdateDialogComponent:()=>e.xGj,PooledMediumCascadeDeleteService:()=>e.iv,PooledMediumCategoryOptionProvider:()=>e.ccW,PooledMediumEntityPermissionService:()=>e.fqy,PooledMediumFilterComponent:()=>e.I_J,PooledMediumFilterFormHandlerService:()=>e.KeE,PooledMediumFormHandlerService:()=>e.vB6,PooledMediumMoveAction:()=>e.VO9,PooledMediumUpdateAction:()=>e.VXB,PortalContextPlsService:()=>e.$WB,PredefinedInputErrorComponent:()=>e.aE_,PriceUnitOptionProviderService:()=>e.jM6,PrioLevelOptionProviderService:()=>e.mzd,ProductlineFilterPanelComponent:()=>e.xl,ProductlineFilterPipe:()=>e.DIo,ProductlineInfoFormPanelComponent:()=>e.nbW,ProductlinePipe:()=>e.wvV,ProductlineSearchOption:()=>e.FD5,ProductlineTreeOptionProviderService:()=>e.TyJ,ProductlinesWithPortalContextOptionProviderService:()=>e.jQ9,ProposeAppearanceActionFormHandlerService:()=>e.Gey,QuickAccessContentComponent:()=>e.wqB,QuickAccessService:()=>e.I1h,QuickAccessSidebarComponent:()=>e.Uaz,RadioButtonGroup:()=>e.SYO,RadioButtonGroupComponent:()=>e.Cws,RadioButtonGroupComponentBuilderService:()=>e.dQb,ReadI18nPipe:()=>e.jsD,ReadOnly:()=>e.Q_P,ReadOnlyComponent:()=>e.f25,ReadOnlyComponentBuilderService:()=>e.zCe,RecordDirtyGuard:()=>e.l9k,RegionDao:()=>e.vsq,SELECT_PLACEHOLDER_VALUE:()=>e.FzX,SUPERUSER_LOGINNAME:()=>e.pkq,ScrollToInvalidFieldDirective:()=>e.aRh,SearchListActionMenuComponent:()=>e.$jC,SearchPageDefaultsService:()=>e.xsF,Select:()=>e.PhF,SelectComponent:()=>e.Hr0,SelectComponentBuilderService:()=>e.xXH,SelectEntityStateDialogComponent:()=>e.l6K,SelectImageTypeDialogComponent:()=>e.PcB,SensorFusionStrategyOptionProviderService:()=>e.vkn,ServerSideFilteringDataSourceService:()=>e.F95,ServerSideFilteringIdCachingDataSourceService:()=>e.k8F,ServerSideFilteringPooledMediumDataSourceService:()=>e.XMz,SharedImxPlatformModule:()=>n.Yp,SidebarConfig:()=>e.rNF,SidebarInjector:()=>e.Rkf,SidebarRef:()=>e.NSP,SlideInEventType:()=>e.CU6,SmallMediaMgmtComponent:()=>e.pR0,SmartTimeComponent:()=>e.UBX,SmartTimeField:()=>e.Xjo,SocialMediaProviderDao:()=>e.ynR,SocialMediaProviderOptionProviderService:()=>e.hwB,SortButtonComponent:()=>e.AHB,StatisticsDialogComponent:()=>e.REe,StoryArticleFormPanelComponent:()=>e.D$E,StripTagsPipe:()=>e.pr7,TableComponent:()=>e.ac$,TableLinkCellComponent:()=>e.tGY,TableLinkWithIconCellComponent:()=>e.XpX,ToggleComponent:()=>e.n$2,TreeComponent:()=>e.qrb,TreeField:()=>e.YIQ,TreeOptionProvider:()=>e.Cfr,TreeShuffleComponent:()=>e.DaY,TreeShuffleField:()=>e.wQ2,TripleRadioButton:()=>e.lkI,TripleRadioButtonComponent:()=>e.Wdl,UserAutocompleteService:()=>e.vBG,UserDao:()=>e.ka3,UserMessageService:()=>e.Y5m,UserMgmtCreationService:()=>e.iQz,UserMgmtFormHandlerService:()=>e.iNc,UserprofileSidebarComponent:()=>e.$$Q,ValidationStateDirective:()=>e.EME,VideoLinkDirective:()=>e.bKU,ViewContainerRefDirective:()=>e.vEB,YearlyDefinitionComponent:()=>e.l$3,ZipcodesPipe:()=>e.Z2H,actualOccupancyField:()=>e.f_S,actualOccupancyInsertor:()=>e.o9B,actualOccupancyValueInsertor:()=>e.C9,adminFilterFields:()=>e.vKx,allI18nMembersEqual:()=>e.iHE,allMembersEqual:()=>e.gNA,allUserTypes:()=>e.P86,appearanceFields:()=>e.a9F,appearanceFilterFields:()=>e.yHL,arrayValueExtractor:()=>e.XSm,arrayValueInsertor:()=>e.wrC,articleAppearanceFields:()=>e.DRt,attributeTypeValues:()=>e.Tmi,booleanExtractor:()=>e.UkV,booleanInvertExtractor:()=>e.hq9,booleanInvertInsertor:()=>e.kY5,booleanRenderer:()=>e.SC7,chainExtractors:()=>e.Z4b,cleanPropertiesWithoutValues:()=>e.NTt,clientFilterFields:()=>e.H_$,commaseparatedInsertor:()=>e.AAq,commaseparatedNumbersExtractor:()=>e.Idj,commaseparatedStringsExtractor:()=>e.THg,commaseparatedValueToSimpleArrayInsertor:()=>e.nYd,compareExtractor:()=>e._R5,compareI18n:()=>e.Qi,compareInsertor:()=>e.Ko5,compareOptionOnLabel:()=>e.JDH,configFactory:()=>n.Ll,contactDataFields:()=>e.kFJ,contactListListInfoClientInsertor:()=>e.pWg,contactListsFields:()=>e.f73,contentLengthFields:()=>e.ho3,contentScoreExtractor:()=>e.glZ,countryValues:()=>e.Qyv,create4CharHash:()=>e.Xfi,create8CharHash:()=>e.CpO,createDateDayValidator:()=>e.bk6,createDateValidator:()=>e.fB6,createDurationTimeString:()=>e.IB4,createEntityListNameValidatorAsync:()=>e.wB8,createNameValidatorAsync:()=>e._OE,dateExtractor:()=>e.wU8,dateValidator:()=>e.smf,debugControl:()=>e.ip3,debugI18nControl:()=>e.dnR,duplicatesFilterFields:()=>e.nDJ,durationExtractor:()=>e.CZP,durationInsertor:()=>e.vKY,durationRegexPattern:()=>e.YnO,emailRegexPattern:()=>e.E98,emailValidator:()=>e.Lew,extractOrCreateProperty:()=>e.y8A,extractProperty:()=>e.jgv,filterByArrayI18nProperty:()=>e.ua_,filterByArrayValue:()=>e.VKY,filterByI18nName:()=>e.vDp,filterByI18nProperty:()=>e.hnV,filterById:()=>e.xCN,filterByName:()=>e.TV6,filterByPath:()=>e.BoM,filterByPathContainingArray:()=>e.j5r,filterByStringProperty:()=>e.FTL,filterByStringPropertyWithPath:()=>e.w1p,filterNonLanguageControls:()=>e.y8p,filterNoneRootProductlineIds:()=>e.X_A,filterNoneRootProductlines:()=>e.WQr,filterPathWrapperFn:()=>e.R56,filterTreeWrapperFn:()=>e.OUA,forecastExtractor:()=>e.VXe,forecastField:()=>e.vuk,formatDateToBackendTimestamp:()=>e.GkW,formatString:()=>e.Uwl,fulltextFilterFields:()=>e._Jk,geoFilterAltFields:()=>e.umU,geoFilterFields:()=>e.ORG,geoInfoFields:()=>e.e7t,getGermanCalendarIntl:()=>e.z5v,getLogger:()=>e.jl5,hasProperty:()=>e.l$5,httpUrlValidator:()=>e.Y2j,i18nAllValidator:()=>e.LF0,i18nAttributeArrayValueExtractor:()=>e.xO7,i18nSomeValidator:()=>e.KBk,i18nSomeValidatorButEmptyAllowed:()=>e.YPC,idFilterField:()=>e.sIB,idValidatorPattern:()=>e.UPZ,idsValidatorFN:()=>e.elT,initialAppearanceFromDate:()=>e.wW3,initialAppearanceToDate:()=>e.gg0,isDefinedI18n:()=>e.bi4,isEmptyObject:()=>e.Qr$,isI18n:()=>e.QKs,isNamedDataObject:()=>e.A2E,isTypeError:()=>e.wFo,isoTimestampExtractor:()=>e.XIr,labelFromOptionsExtractor:()=>e.MKO,lastOccupancyField:()=>e.Ygv,mainFilterFields:()=>e.Ka$,memoFilterFields:()=>e.WF0,metaInfoContainsModule:()=>e.UZG,moduleDataExtractor:()=>e.geP,moduleDataInsertor:()=>e.iwT,noneExtractor:()=>e.O_j,noneInsertor:()=>e.G3T,normalizeAddressForDuplicates:()=>e.J2M,normalizePhoneForDuplicates:()=>e.Fph,numberConvertExtractor:()=>e.Zw_,numberConvertInsertor:()=>e.sDl,numberExtractor:()=>e.V6B,objectKeysExtractor:()=>e.nHE,objectKeysInsertor:()=>e.kJT,openDataFilterFields:()=>e.$$c,parseRecord:()=>e.iJN,parseTimeString:()=>e.k4S,pathExtractor:()=>e.YLc,pathInsertor:()=>e.wqe,prepareTable:()=>e.tHy,productlineFilterFields:()=>e.DlU,productlineInsertor:()=>e.G$0,provideParent:()=>e.T9x,qualityFilterFields:()=>e.tiq,readFromI18n:()=>e.SAB,relevanceScoreValidator:()=>e.gi8,replaceEntityTypeInLabel:()=>e.kiy,resetI18nControl:()=>e.Bd$,rowExtractor:()=>e.CxB,rowInsertor:()=>e.Gxm,salutationValues:()=>e.lm_,scrollFactoryNoop:()=>n.f2,scrollOptionNoop:()=>n.iU,selectValueRequiredValidator:()=>e.lSQ,selectableUserTypes:()=>e.OLD,setProperty:()=>e.Hnh,setupSentry:()=>i,sortDeliveryChannelByOwnerClientFunction:()=>e.jVp,sortOptionsByLabelFn:()=>e.f$l,staticInsertor:()=>e._Ug,timeStampInsertor:()=>e.d_g,trimSpaceInsertor:()=>e.FOt,uniqueID:()=>e.Uz4,userAddressFields:()=>e.Epe,userIsDataManagerUser:()=>e.E8v,userIsImxUser:()=>e.dI6,userIsMaintenanceUser:()=>e.F4m,userIsProtected:()=>e.y5B,userIsSuperUser:()=>e.cR3,userIsWebserviceUser:()=>e.zyF,userNameFields:()=>e.zDQ,userStateValues:()=>e.h7B,viewTypeValues:()=>e.DZ9});var e=a(91719),n=a(45582),s=a(70033);const i=(t,p,c=!0)=>{s.S1({dsn:"https://531ea35687ac492f96dea3f19ce51ff9@o513075.ingest.sentry.io/6638270",enabled:c,environment:t,release:p})}},91566:(gt,X,a)=>{"use strict";a.d(X,{r:()=>c});var e=a(19212),n=a(21473),s=a(49193),l=a(96814),i=a(6128),t=a(71365);function p(o,x){if(1&o){const u=e.EpF();e.TgZ(0,"imx-action-menu-item",1),e.NdJ("actionClicked",function(){e.CHM(u);const b=e.oxw();return e.KtG(b.actionClicked.emit())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&o&&(e.xp6(),e.hij(" ",e.lcZ(2,1,"imxplatform.common-entity.filter.create-contact-list")," "))}let c=(()=>{class o{constructor(u){this.configurationProvider=u,this.contactListsEnabled$=(0,s.of)(!1),this.actionClicked=new e.vpe}ngOnInit(){this.contactListsEnabled$=this.configurationProvider.getBoolean(n.x3.PLATFORM_CONTACTLISTS_ENABLED,!1)}static#e=this.\u0275fac=function(m){return new(m||o)(e.Y36(n.Pc))};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["imx-action-menu-item-create-contact-list"]],outputs:{actionClicked:"actionClicked"},decls:2,vars:3,consts:[["icon","icon-reference-list",3,"actionClicked",4,"ngIf"],["icon","icon-reference-list",3,"actionClicked"]],template:function(m,b){1&m&&(e.YNc(0,p,3,3,"imx-action-menu-item",0),e.ALo(1,"async")),2&m&&e.Q6J("ngIf",e.lcZ(1,1,b.contactListsEnabled$))},dependencies:[l.O5,i.z,l.Ov,t.X$],encapsulation:2,changeDetection:0})}return o})()},97564:(gt,X,a)=>{"use strict";a.d(X,{h:()=>Te});var e=a(19212),n=a(56223),s=a(49193),l=a(91226),i=a(32068),t=a(96776),p=a(62413),c=a(17927),o=a(41621),x=a(2563),u=a(96814),m=a(24630),b=a(23680),I=a(2032),H=a(64170),O=a(92596),P=a(71365);const G=["autocompletePnl"];function B(me,Se){1&me&&(e.TgZ(0,"span"),e._uU(1,"*"),e.qZA())}function ae(me,Se){if(1&me&&(e.TgZ(0,"label",3),e._uU(1),e.YNc(2,B,2,0,"span",4),e.qZA()),2&me){const Ue=e.oxw();e.xp6(),e.Oqu(Ue.label),e.xp6(),e.Q6J("ngIf",Ue.required)}}function J(me,Se){if(1&me&&(e.ynx(0),e._UZ(1,"input",5),e.ALo(2,"translate"),e.BQk()),2&me){const Ue=e.oxw();e.xp6(),e.Q6J("value",e.lcZ(2,4,"imxplatform.common-entity.edit.validation.no-permission-for-object"))("disabled",!0)("placeholder",Ue.placeholder)("id",Ue.hash)}}function q(me,Se){if(1&me){const Ue=e.EpF();e.TgZ(0,"span",13),e.NdJ("keydown",function(et){e.CHM(Ue);const Et=e.oxw(2);return e.KtG(Et.deleteKeyDown(et))})("click",function(){e.CHM(Ue);const et=e.oxw(2);return e.KtG(et.clearAutocomplete())}),e.qZA()}}function j(me,Se){if(1&me&&(e.TgZ(0,"small",16),e._UZ(1,"br"),e._uU(2),e.qZA()),2&me){const Ue=e.oxw().$implicit;e.xp6(2),e.Oqu(Ue.geoPath)}}function Y(me,Se){if(1&me&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&me){const Ue=e.oxw(2).$implicit;e.xp6(),e.hij(" - ",Ue.productLines," ")}}function K(me,Se){if(1&me&&(e.TgZ(0,"small",16),e._UZ(1,"br"),e._uU(2),e.YNc(3,Y,2,1,"span",4),e.qZA()),2&me){const Ue=e.oxw().$implicit;e.xp6(2),e.hij("",Ue.clientName," "),e.xp6(),e.Q6J("ngIf",Ue.productLines)}}const ne=me=>({inactive:me});function ee(me,Se){if(1&me&&(e.TgZ(0,"mat-option",14)(1,"div"),e._uU(2),e.YNc(3,j,3,1,"small",15)(4,K,4,2,"small",15),e.qZA()()),2&me){const Ue=Se.$implicit,We=e.oxw(2);e.MGl("matTooltip","ID: ",Ue.entityId,""),e.Q6J("value",Ue)("ngClass",e.VKq(6,ne,null!=Ue.state&&40!=Ue.state)),e.xp6(2),e.hij(" ",We.displayItemFn(Ue)," "),e.xp6(),e.Q6J("ngIf",Ue.geoPath),e.xp6(),e.Q6J("ngIf",Ue.clientName)}}function $(me,Se){1&me&&(e.TgZ(0,"mat-error",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&me&&(e.Q6J("id",null),e.xp6(),e.Oqu(e.lcZ(2,2,"imxplatform.common-entity.edit.validation.required")))}function ue(me,Se){1&me&&(e.TgZ(0,"mat-hint",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&me&&(e.Q6J("id",null),e.xp6(),e.Oqu(e.lcZ(2,2,"imxplatform.common-entity.edit.validation.no-autocomplete-value")))}function ge(me,Se){1&me&&(e.TgZ(0,"mat-hint",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&me&&(e.Q6J("id",null),e.xp6(),e.Oqu(e.lcZ(2,2,"imxplatform.common-entity.edit.validation.no-autocomplete-result")))}const Ke=(me,Se)=>({"ng-invalid":me,disabled:Se});function at(me,Se){if(1&me){const Ue=e.EpF();e.TgZ(0,"div",6)(1,"input",7),e.NdJ("keydown",function(et){e.CHM(Ue);const Et=e.oxw();return e.KtG(Et.keyDown(et))}),e.qZA(),e.YNc(2,q,1,0,"span",8),e.qZA(),e.TgZ(3,"mat-autocomplete",9,10),e.NdJ("optionSelected",function(et){e.CHM(Ue);const Et=e.oxw();return e.KtG(Et.optionSelected(et))}),e.YNc(5,ee,5,8,"mat-option",11),e.ALo(6,"async"),e.qZA(),e.YNc(7,$,3,4,"mat-error",12)(8,ue,3,4,"mat-hint",12),e.ALo(9,"async"),e.YNc(10,ge,3,4,"mat-hint",12)}if(2&me){const Ue=e.MAs(4),We=e.oxw();let et;e.Q6J("ngClass",e.WLB(17,Ke,We.inputControl.invalid,We.inputControl.disabled)),e.xp6(),e.Q6J("matAutocomplete",Ue)("formControl",We.inputControl)("required",We.required)("placeholder",We.placeholder)("id",We.hash),e.xp6(),e.Q6J("ngIf",We.showRemoveIcon&&We.inputControl.value),e.xp6(),e.Q6J("displayWith",We.defaultNameDisplayFn)("panelWidth",We.panelWidth),e.xp6(2),e.Q6J("ngForOf",e.lcZ(6,13,We.holders)),e.xp6(2),e.Q6J("ngIf",We.inputControl.errors),e.xp6(),e.Q6J("ngIf",We.noSelection&&!We.useAnyNameHolder&&(null==(et=e.lcZ(9,15,We.holders))?null:et.length)>0),e.xp6(2),e.Q6J("ngIf",We.nothingFound)}}const Le=[[["","label-lockable",""]]],R=["[label-lockable]"];let Te=(()=>{class me extends x.y{set displayItemFn(Ue){Ue&&(this._displayItemFn=Ue)}get displayItemFn(){return this._displayItemFn}constructor(Ue){super(),this.changeDetectorRef=Ue,this.useAnyNameHolder=!1,this.startAtChar=2,this.showRemoveIcon=!1,this.permissionDenied=!1,this.nothingFound=!1,this.autocompleteSelected=new e.vpe,this.enterPressed=new e.vpe,this.noSelection=!1,this._displayItemFn=this.defaultDisplayFn,this.inputControl=new n.p4}ngOnChanges(Ue){super.ngOnChanges(Ue),Ue.autocompleteService&&void 0===Ue.autocompleteService.previousValue&&void 0!==this.currentId&&this.getAutocompleteHolders(void 0,this.currentId+"").subscribe(We=>{We&&We.length>0&&this.inputControl.setValue(We[0],{emitEvent:!1})})}optionSelected(Ue){}keyDown(Ue){"Enter"===Ue.key&&this.enterPressed.emit(Ue)}ngOnInit(){this.inputControl=new n.p4,this.toggleState(this.disableControl),this.required&&this.inputControl.setValidators(n.kI.required),this.inputControl.valueChanges.pipe((0,i.x)(),(0,t.b)(300)).subscribe(Ue=>{this.holders=(0,s.of)([]),null==Ue||""===Ue?(this.noSelection=!1,this.propagateChange(null),this.nothingFound=!1):"string"==typeof Ue&&""!==Ue?Ue.length>=this.startAtChar&&(this.useAnyNameHolder&&this.propagateChange(Ue),this.holders=this.getAutocompleteHolders(Ue,void 0),this.changeDetectorRef.markForCheck(),this.noSelection=!0):(this.propagateChange(this.useAnyNameHolder?Ue.name:Ue.entityId),this.autocompleteSelected.emit(Ue),this.noSelection=!1)}),this.hash=(0,o.Cp)()}toggleState(Ue){Ue?this.inputControl.disable({onlySelf:!0,emitEvent:!1}):this.inputControl.enable({onlySelf:!0,emitEvent:!1})}writeValue(Ue){null==Ue?this.inputControl.setValue(void 0,{emitEvent:!1}):this.useAnyNameHolder?this.inputControl.setValue({name:Ue},{emitEvent:!1}):(this.currentId=Ue,this.getAutocompleteHolders(void 0,Ue).subscribe(We=>{We&&We.length>0&&this.inputControl.setValue(We[0],{emitEvent:!1})}))}getSelectedId(){if(this.inputControl.value)return this.inputControl.value.entityId}getSelectedAutocompleteHolderEntity(){if(this.inputControl.value)return this.inputControl.value}getAutocompleteHolders(Ue,We){return this.autocompleteService?this.autocompleteService.getAutocompleteHolders(Ue,We,this.autocompleteFilter).pipe((0,p.K)(et=>(401===et.status&&(this.permissionDenied=!0,this.changeDetectorRef.markForCheck()),l.E)),(0,c.b)(et=>this.nothingFound=0===et.length)):(0,s.of)()}defaultDisplayFn(Ue){return Ue?Ue.representation:void 0}defaultNameDisplayFn(Ue){return Ue?Ue.name?Ue.name:Ue.representation:void 0}deleteKeyDown(Ue){"Enter"===Ue.key&&this.clearAutocomplete()}clearAutocomplete(){this.inputControl.setValue("",{emitEvent:!0}),this.holders=this.getAutocompleteHolders("",void 0),this.nothingFound=!0}static#e=this.\u0275fac=function(We){return new(We||me)(e.Y36(e.sBO))};static#t=this.\u0275cmp=e.Xpm({type:me,selectors:[["imx-base-autocomplete"]],viewQuery:function(We,et){if(1&We&&e.Gf(G,7),2&We){let Et;e.iGM(Et=e.CRH())&&(et.autocompletePnl=Et.first)}},hostAttrs:[1,"imx-base-autocomplete"],inputs:{autocompleteService:"autocompleteService",autocompleteFilter:"autocompleteFilter",panelWidth:"panelWidth",useAnyNameHolder:"useAnyNameHolder",startAtChar:"startAtChar",fieldID:"fieldID",showRemoveIcon:"showRemoveIcon",placeholder:"placeholder",displayItemFn:"displayItemFn"},outputs:{autocompleteSelected:"autocompleteSelected",enterPressed:"enterPressed"},features:[e._Bn([{provide:n.JU,useExisting:(0,e.Gpc)(()=>me),multi:!0}]),e.qOj,e.TTD],ngContentSelectors:R,decls:6,vars:3,consts:[["translate","",4,"ngIf"],[4,"ngIf","ngIfElse"],["permissionOk",""],["translate",""],[4,"ngIf"],["matInput","","type","text",1,"autocomplete-field",3,"value","disabled","placeholder","id"],[1,"base-autocomplete__row",3,"ngClass"],["matInput","","type","text",1,"autocomplete-field",3,"matAutocomplete","formControl","required","placeholder","id","keydown"],["class","base-autocomplete__row__icon icon-cross","tabindex","0",3,"keydown","click",4,"ngIf"],[3,"displayWith","panelWidth","optionSelected"],["autocompletePnl","matAutocomplete"],["matTooltipShowDelay","5000",3,"value","matTooltip","ngClass",4,"ngFor","ngForOf"],[3,"id",4,"ngIf"],["tabindex","0",1,"base-autocomplete__row__icon","icon-cross",3,"keydown","click"],["matTooltipShowDelay","5000",3,"value","matTooltip","ngClass"],["class","mat-hint",4,"ngIf"],[1,"mat-hint"],[3,"id"]],template:function(We,et){if(1&We&&(e.F$t(Le),e.TgZ(0,"mat-form-field"),e.YNc(1,ae,3,2,"label",0),e.Hsn(2),e.YNc(3,J,3,6,"ng-container",1)(4,at,11,20,"ng-template",null,2,e.W1O),e.qZA()),2&We){const Et=e.MAs(5);e.xp6(),e.Q6J("ngIf",et.label),e.xp6(2),e.Q6J("ngIf",et.permissionDenied)("ngIfElse",Et)}},dependencies:[u.mk,u.sg,u.O5,n.Fj,n.JJ,n.Q7,m.XC,b.ey,m.ZL,I.Nt,H.KE,H.bx,H.TO,O.gM,n.oH,P.Pi,u.Ov,P.X$],styles:["[_nghost-%COMP%]{display:block}input.autocomplete-field[_ngcontent-%COMP%]{box-sizing:border-box;height:30px;background-color:#fff;border:1px solid #ced4e0;border-radius:3px;padding:0 33px 0 10px;font-size:14px;z-index:1}input.autocomplete-field.ng-invalid[_ngcontent-%COMP%]{border:1px solid #96172e}input.autocomplete-field[_ngcontent-%COMP%]:disabled{color:#9da8c1;border:1px solid #e6e9ef}input.autocomplete-field[_ngcontent-%COMP%]:-webkit-autofill, input.autocomplete-field[_ngcontent-%COMP%]:-webkit-autofill:hover, input.autocomplete-field[_ngcontent-%COMP%]:-webkit-autofill:focus{-webkit-transition:background-color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s}.mat-mdc-option[_ngcontent-%COMP%]{color:#0a2663;height:unset;line-height:unset;padding:4px 8px;white-space:normal;font-size:small}.mat-mdc-form-field-hint[_ngcontent-%COMP%]{padding-left:12px;padding-top:2px;font-size:12px}.inactive[_ngcontent-%COMP%]{color:#9da8c1;font-style:italic}.base-autocomplete__row[_ngcontent-%COMP%]{margin:2px 0 0;position:relative}.base-autocomplete__row__icon[_ngcontent-%COMP%]{color:#0a2663;cursor:pointer;font-size:18px;font-weight:900;line-height:18px;position:absolute;right:10px;top:50%;transform:translateY(-50%)}.base-autocomplete__row.disabled[_ngcontent-%COMP%]   .base-autocomplete__row__icon[_ngcontent-%COMP%]{color:#9da8c1}.base-autocomplete__row.ng-invalid[_ngcontent-%COMP%]   .base-autocomplete__row__icon[_ngcontent-%COMP%]{color:#96172e}"]})}return me})()},24525:(gt,X,a)=>{"use strict";a.d(X,{k:()=>p});var e=a(19212),n=a(56223),s=a(23367),l=a(97564),i=a(10444),t=a(96814);let p=(()=>{class c{constructor(x){this.registry=x,this.selectedType=void 0}ngOnChanges(x){x.disabled&&(!0===x.disabled.currentValue?(this.entityTypeControl.disable({onlySelf:!0,emitEvent:!1}),this.autocompleteCtrl.disable({onlySelf:!0,emitEvent:!1})):(this.entityTypeControl.enable({onlySelf:!0,emitEvent:!1}),this.autocompleteCtrl.enable({onlySelf:!0,emitEvent:!1})))}ngOnInit(){this.setSelectedType(this.entityTypeControl.value),this.entityTypeControl.valueChanges.subscribe(x=>{this.setSelectedType(x)})}resetAutoCompleteValue(){this.autocompleteCtrl.setValue(void 0,{emitEvent:!1})}setSelectedType(x){this.selectedType=x&&-1!==x?x:void 0}static#e=this.\u0275fac=function(u){return new(u||c)(e.Y36(s.R))};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["imx-core-entity-autocomplete"]],hostAttrs:[1,"imx-core-entity-autocomplete"],inputs:{coreEntities:"coreEntities",formGroup:"formGroup",autocompleteCtrl:"autocompleteCtrl",entityTypeControl:"entityTypeControl",disabled:"disabled"},features:[e._Bn([{provide:n.JU,useExisting:(0,e.Gpc)(()=>c),multi:!0}]),e.TTD],decls:5,vars:11,consts:[[1,"line"],[3,"options","label","formControl","formGroup","click"],[3,"formControl","disableControl","startAtChar","autocompleteService","label"]],template:function(u,m){1&u&&(e.TgZ(0,"div",0)(1,"imx-base-select",1),e.NdJ("click",function(){return m.resetAutoCompleteValue()}),e.ALo(2,"async"),e.qZA()(),e.TgZ(3,"div",0),e._UZ(4,"imx-base-autocomplete",2),e.qZA()),2&u&&(e.xp6(),e.Q6J("options",e.lcZ(2,9,m.coreEntities))("label","imxplatform.component.core-entity-autocomplete.entityTypeLabel")("formControl",m.entityTypeControl)("formGroup",m.formGroup),e.xp6(3),e.Q6J("formControl",m.autocompleteCtrl)("disableControl",!m.selectedType||m.disabled)("startAtChar",2)("autocompleteService",m.registry.getAutocompleteService(m.selectedType))("label","imxplatform.component.core-entity-autocomplete.objectAutocomplete"))},dependencies:[n.JJ,n.JL,n.oH,n.sg,l.h,i.o,t.Ov],styles:[".line[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return c})()},48802:(gt,X,a)=>{"use strict";a.d(X,{d:()=>ge});var e=a(19212),n=a(56223),s=a(49193),l=a(97564),i=a(21473),t=a(44590),p=a(96814),c=a(24630),o=a(23680),x=a(2032),u=a(64170),m=a(92596),b=a(71365);function I(Ke,at){1&Ke&&(e.TgZ(0,"span"),e._uU(1,"*"),e.qZA())}function H(Ke,at){if(1&Ke&&(e.TgZ(0,"label",3),e._uU(1),e.YNc(2,I,2,0,"span",4),e.qZA()),2&Ke){const Le=e.oxw();e.xp6(),e.Oqu(Le.label),e.xp6(),e.Q6J("ngIf",Le.required)}}function O(Ke,at){if(1&Ke&&(e.ynx(0),e._UZ(1,"input",5),e.ALo(2,"translate"),e.BQk()),2&Ke){const Le=e.oxw();e.xp6(),e.Q6J("value",e.lcZ(2,4,"imxplatform.common-entity.edit.validation.no-permission-for-object"))("disabled",!0)("placeholder",Le.placeholder)("id",Le.hash)}}function P(Ke,at){if(1&Ke){const Le=e.EpF();e.TgZ(0,"span",13),e.NdJ("keydown",function(Te){e.CHM(Le);const me=e.oxw(2);return e.KtG(me.deleteKeyDown(Te))})("click",function(){e.CHM(Le);const Te=e.oxw(2);return e.KtG(Te.clearAutocomplete())}),e.qZA()}}function G(Ke,at){if(1&Ke&&(e.TgZ(0,"small",16),e._UZ(1,"br"),e._uU(2),e.qZA()),2&Ke){const Le=e.oxw().$implicit;e.xp6(2),e.Oqu(Le.geoPath)}}function B(Ke,at){if(1&Ke&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&Ke){const Le=e.oxw(2).$implicit;e.xp6(),e.hij(" - ",Le.productLines," ")}}function ae(Ke,at){if(1&Ke&&(e.TgZ(0,"small",16),e._UZ(1,"br"),e._uU(2),e.YNc(3,B,2,1,"span",4),e.qZA()),2&Ke){const Le=e.oxw().$implicit;e.xp6(2),e.hij("",Le.clientName," "),e.xp6(),e.Q6J("ngIf",Le.productLines)}}const J=Ke=>({inactive:Ke});function q(Ke,at){if(1&Ke&&(e.TgZ(0,"mat-option",14)(1,"div"),e._uU(2),e.YNc(3,G,3,1,"small",15)(4,ae,4,2,"small",15),e.qZA()()),2&Ke){const Le=at.$implicit,R=e.oxw(2);e.MGl("matTooltip","ID: ",Le.entityId,""),e.Q6J("value",Le)("ngClass",e.VKq(6,J,null!=Le.state&&40!=Le.state)),e.xp6(2),e.hij(" ",R.displayItemFn(Le)," "),e.xp6(),e.Q6J("ngIf",Le.geoPath),e.xp6(),e.Q6J("ngIf",Le.clientName)}}function j(Ke,at){1&Ke&&(e.TgZ(0,"mat-error",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ke&&(e.Q6J("id",null),e.xp6(),e.Oqu(e.lcZ(2,2,"imxplatform.common-entity.edit.validation.required")))}function Y(Ke,at){1&Ke&&(e.TgZ(0,"mat-hint",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ke&&(e.Q6J("id",null),e.xp6(),e.Oqu(e.lcZ(2,2,"imxplatform.common-entity.edit.validation.no-autocomplete-value")))}function K(Ke,at){1&Ke&&(e.TgZ(0,"mat-hint",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ke&&(e.Q6J("id",null),e.xp6(),e.Oqu(e.lcZ(2,2,"imxplatform.common-entity.edit.validation.no-autocomplete-result")))}const ne=(Ke,at)=>({"ng-invalid":Ke,disabled:at});function ee(Ke,at){if(1&Ke){const Le=e.EpF();e.TgZ(0,"div",6)(1,"input",7),e.NdJ("keydown",function(Te){e.CHM(Le);const me=e.oxw();return e.KtG(me.keyDown(Te))}),e.qZA(),e.YNc(2,P,1,0,"span",8),e.qZA(),e.TgZ(3,"mat-autocomplete",9,10),e.NdJ("optionSelected",function(Te){e.CHM(Le);const me=e.oxw();return e.KtG(me.optionSelected(Te))}),e.YNc(5,q,5,8,"mat-option",11),e.ALo(6,"async"),e.qZA(),e.YNc(7,j,3,4,"mat-error",12)(8,Y,3,4,"mat-hint",12),e.ALo(9,"async"),e.YNc(10,K,3,4,"mat-hint",12)}if(2&Ke){const Le=e.MAs(4),R=e.oxw();let Te;e.Q6J("ngClass",e.WLB(17,ne,R.inputControl.invalid,R.inputControl.disabled)),e.xp6(),e.Q6J("matAutocomplete",Le)("formControl",R.inputControl)("required",R.required)("placeholder",R.placeholder)("id",R.hash),e.xp6(),e.Q6J("ngIf",R.showRemoveIcon&&R.inputControl.value),e.xp6(),e.Q6J("displayWith",R.defaultNameDisplayFn)("panelWidth",R.panelWidth),e.xp6(2),e.Q6J("ngForOf",e.lcZ(6,13,R.holders)),e.xp6(2),e.Q6J("ngIf",R.inputControl.errors),e.xp6(),e.Q6J("ngIf",R.noSelection&&!R.useAnyNameHolder&&(null==(Te=e.lcZ(9,15,R.holders))?null:Te.length)>0),e.xp6(2),e.Q6J("ngIf",R.nothingFound)}}const $=[[["","label-lockable",""]]],ue=["[label-lockable]"];let ge=(()=>{class Ke extends l.h{constructor(Le,R,Te){super(Te),this.locationAutocompleteService=Le,this.entitiesMgr=R,this.changeDetectorRef=Te,this.locations=[]}ngOnInit(){super.ngOnInit(),this.preloadAll&&this.loadLocations(),super.displayItemFn=this.locationDisplayFn}locationDisplayFn(Le){return Le?Le.representation:void 0}loadLocations(){0===this.locations.length&&this.entitiesMgr.getAllEntitiesOfType("Location").subscribe(Le=>{this.locations=this.locations.concat(Le.items),this.locations.sort((R,Te)=>R.name>Te.name?1:Te.name>R.name?-1:0)})}getAutocompleteHolders(Le,R){if(Le&&this.preloadAll){const Te=this.locations.filter(me=>me.name.includes(Le)).map(me=>this.locationAutocompleteService.convertToHolder(me));return(0,s.of)(Te)}return this.locationAutocompleteService.getAutocompleteHolders(Le,R,null)}static#e=this.\u0275fac=function(R){return new(R||Ke)(e.Y36(t.l),e.Y36(i.qB),e.Y36(e.sBO))};static#t=this.\u0275cmp=e.Xpm({type:Ke,selectors:[["imx-location-autocomplete"]],hostAttrs:[1,"imx-location-autocomplete"],inputs:{preloadAll:"preloadAll"},features:[e._Bn([{provide:n.JU,useExisting:(0,e.Gpc)(()=>Ke),multi:!0}]),e.qOj],ngContentSelectors:ue,decls:6,vars:3,consts:[["translate","",4,"ngIf"],[4,"ngIf","ngIfElse"],["permissionOk",""],["translate",""],[4,"ngIf"],["matInput","","type","text",1,"autocomplete-field",3,"value","disabled","placeholder","id"],[1,"base-autocomplete__row",3,"ngClass"],["matInput","","type","text",1,"autocomplete-field",3,"matAutocomplete","formControl","required","placeholder","id","keydown"],["class","base-autocomplete__row__icon icon-cross","tabindex","0",3,"keydown","click",4,"ngIf"],[3,"displayWith","panelWidth","optionSelected"],["autocompletePnl","matAutocomplete"],["matTooltipShowDelay","5000",3,"value","matTooltip","ngClass",4,"ngFor","ngForOf"],[3,"id",4,"ngIf"],["tabindex","0",1,"base-autocomplete__row__icon","icon-cross",3,"keydown","click"],["matTooltipShowDelay","5000",3,"value","matTooltip","ngClass"],["class","mat-hint",4,"ngIf"],[1,"mat-hint"],[3,"id"]],template:function(R,Te){if(1&R&&(e.F$t($),e.TgZ(0,"mat-form-field"),e.YNc(1,H,3,2,"label",0),e.Hsn(2),e.YNc(3,O,3,6,"ng-container",1)(4,ee,11,20,"ng-template",null,2,e.W1O),e.qZA()),2&R){const me=e.MAs(5);e.xp6(),e.Q6J("ngIf",Te.label),e.xp6(2),e.Q6J("ngIf",Te.permissionDenied)("ngIfElse",me)}},dependencies:[p.mk,p.sg,p.O5,n.Fj,n.JJ,n.Q7,c.XC,o.ey,c.ZL,x.Nt,u.KE,u.bx,u.TO,m.gM,n.oH,b.Pi,p.Ov,b.X$],styles:["[_nghost-%COMP%]{display:block}input.autocomplete-field[_ngcontent-%COMP%]{box-sizing:border-box;height:30px;background-color:#fff;border:1px solid #ced4e0;border-radius:3px;padding:0 33px 0 10px;font-size:14px;z-index:1}input.autocomplete-field.ng-invalid[_ngcontent-%COMP%]{border:1px solid #96172e}input.autocomplete-field[_ngcontent-%COMP%]:disabled{color:#9da8c1;border:1px solid #e6e9ef}input.autocomplete-field[_ngcontent-%COMP%]:-webkit-autofill, input.autocomplete-field[_ngcontent-%COMP%]:-webkit-autofill:hover, input.autocomplete-field[_ngcontent-%COMP%]:-webkit-autofill:focus{-webkit-transition:background-color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s}.mat-mdc-option[_ngcontent-%COMP%]{color:#0a2663;height:unset;line-height:unset;padding:4px 8px;white-space:normal;font-size:small}.mat-mdc-form-field-hint[_ngcontent-%COMP%]{padding-left:12px;padding-top:2px;font-size:12px}.inactive[_ngcontent-%COMP%]{color:#9da8c1;font-style:italic}.base-autocomplete__row[_ngcontent-%COMP%]{margin:2px 0 0;position:relative}.base-autocomplete__row__icon[_ngcontent-%COMP%]{color:#0a2663;cursor:pointer;font-size:18px;font-weight:900;line-height:18px;position:absolute;right:10px;top:50%;transform:translateY(-50%)}.base-autocomplete__row.disabled[_ngcontent-%COMP%]   .base-autocomplete__row__icon[_ngcontent-%COMP%]{color:#9da8c1}.base-autocomplete__row.ng-invalid[_ngcontent-%COMP%]   .base-autocomplete__row__icon[_ngcontent-%COMP%]{color:#96172e}"]})}return Ke})()},87643:(gt,X,a)=>{"use strict";a.d(X,{r:()=>K});var e=a(79309),n=a(60768),s=a(19212),l=a(96814),i=a(92596),t=a(71365),p=a(43858);const c=(ne,ee)=>({count:ne,processedEntities:ee});function o(ne,ee){if(1&ne&&(s.TgZ(0,"div",13),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&ne){const $=s.oxw(2).$implicit;s.xp6(),s.hij(" ",s.xi3(2,1,$.action.getSuccessKey(),s.WLB(4,c,$.allEntities,$.processedEntities))," ")}}const x=ne=>({count:ne});function u(ne,ee){if(1&ne&&(s.TgZ(0,"div"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&ne){const $=s.oxw(2).$implicit;s.xp6(),s.hij(" ",s.xi3(2,1,$.errorMessage,s.VKq(4,x,$.allEntities))," ")}}function m(ne,ee){if(1&ne&&(s.TgZ(0,"div",10),s.YNc(1,o,3,7,"div",11)(2,u,3,6,"div",12),s.TgZ(3,"div"),s._uU(4),s.ALo(5,"translate"),s.ALo(6,"date"),s.qZA()()),2&ne){const $=s.oxw().$implicit;s.xp6(),s.Q6J("ngIf",$.processedEntities),s.xp6(),s.Q6J("ngIf",$.errorMessage),s.xp6(2),s.AsE(" ",s.lcZ(5,4,"imxplatform.common.background-action.action-time"),": ",s.xi3(6,6,$.scheduleTime,"HH:mm")," ")}}function b(ne,ee){if(1&ne&&(s.TgZ(0,"div",5)(1,"div",6)(2,"div",7),s._uU(3),s.qZA(),s.TgZ(4,"div",8),s._uU(5),s.ALo(6,"translate"),s.qZA()(),s.YNc(7,m,7,9,"div",9),s.qZA()),2&ne){const $=ee.$implicit,ue=s.oxw();s.xp6(3),s.Oqu($.action.getActionLabelKey()),s.xp6(),s.Q6J("ngClass","action-state-"+$.runState),s.xp6(),s.hij(" ",s.lcZ(6,4,"imxplatform.common.background-action.state-"+$.runState)," "),s.xp6(2),s.Q6J("ngIf",$.runState!==ue.runState.RUNNING)}}function I(ne,ee){if(1&ne&&(s.ynx(0),s._UZ(1,"div",13),s.TgZ(2,"div"),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.BQk()),2&ne){const $=ee.ngIf;s.xp6(3),s.AsE(" ",s.lcZ(4,2,"imxplatform.common.background-action.progress"),": ",$.percentage+"%"," ")}}function H(ne,ee){if(1&ne&&(s.TgZ(0,"div",10),s.YNc(1,I,5,4,"ng-container",12),s.ALo(2,"async"),s.qZA()),2&ne){const $=s.oxw().$implicit;s.xp6(),s.Q6J("ngIf",s.lcZ(2,1,$.progress$))}}function O(ne,ee){if(1&ne&&(s.TgZ(0,"div",13),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&ne){const $=s.oxw(2).$implicit;s.xp6(),s.hij(" ",s.xi3(2,1,$.action.getSuccessKey(),s.VKq(4,x,$.toProcessIds.length))," ")}}const P=ne=>({notProcessedIds:ne});function G(ne,ee){if(1&ne&&(s.ynx(0),s.TgZ(1,"div",14),s.ALo(2,"translate"),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.BQk()),2&ne){const $=s.oxw(2).$implicit;s.xp6(),s.Q6J("matTooltip",s.xi3(2,2,$.action.getBatchWarningKey(),s.VKq(8,P,$.notProcessIds))),s.xp6(2),s.hij(" ",s.xi3(4,5,$.action.getBatchWarningKey(),s.VKq(10,P,$.notProcessIds))," ")}}function B(ne,ee){if(1&ne&&(s.TgZ(0,"div",10),s.YNc(1,O,3,6,"div",11)(2,G,5,12,"ng-container",12),s.TgZ(3,"div"),s._uU(4),s.ALo(5,"translate"),s.ALo(6,"date"),s.qZA()()),2&ne){const $=s.oxw().$implicit;s.xp6(),s.Q6J("ngIf",0===$.notProcessIds.length),s.xp6(),s.Q6J("ngIf",$.notProcessIds.length>0),s.xp6(2),s.AsE(" ",s.lcZ(5,4,"imxplatform.common.background-action.action-time"),": ",s.xi3(6,6,$.job.result.timestamp,"HH:mm")," ")}}function ae(ne,ee){if(1&ne&&(s.TgZ(0,"div",13),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&ne){const $=s.oxw(2).$implicit;s.xp6(),s.hij(" ",s.lcZ(2,1,$.action.getFailedKey())," ")}}function J(ne,ee){if(1&ne&&(s.TgZ(0,"div",13),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&ne){const $=s.oxw(2).$implicit;s.xp6(),s.hij(" ",s.lcZ(2,1,null==$.job.result.result||null==$.job.result.result.actionResult?null:$.job.result.result.actionResult.message)," ")}}function q(ne,ee){if(1&ne&&(s.TgZ(0,"div",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&ne){const $=s.oxw(2).$implicit;s.xp6(),s.hij(" ",s.xi3(2,1,$.errorMessage,s.VKq(4,x,$.notProcessIds))," ")}}function j(ne,ee){if(1&ne&&(s.TgZ(0,"div",10),s.YNc(1,ae,3,3,"div",11)(2,J,3,3,"div",11)(3,q,3,6,"div",15),s.TgZ(4,"div"),s._uU(5),s.ALo(6,"translate"),s.ALo(7,"date"),s.qZA()()),2&ne){const $=s.oxw().$implicit;s.xp6(),s.Q6J("ngIf",!$.isBatch),s.xp6(),s.Q6J("ngIf",$.isBatch),s.xp6(),s.Q6J("ngIf",$.errorMessage),s.xp6(2),s.AsE(" ",s.lcZ(6,5,"imxplatform.common.background-action.action-time")," : ",s.xi3(7,7,$.job.result.timestamp,"HH:mm")," ")}}function Y(ne,ee){if(1&ne&&(s.TgZ(0,"div",5)(1,"div",6)(2,"div"),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.TgZ(5,"div",8),s._uU(6),s.ALo(7,"translate"),s.qZA()(),s.YNc(8,H,3,3,"div",9)(9,B,7,9,"div",9)(10,j,8,10,"div",9),s.qZA()),2&ne){const $=ee.$implicit,ue=s.oxw();s.xp6(3),s.AsE("",s.lcZ(4,7,$.action.getExecutionListLabel()),"",ue.getJobExportActionNameAddition($),""),s.xp6(2),s.Q6J("ngClass","job-state-"+$.job.status.toLowerCase()),s.xp6(),s.hij(" ",s.lcZ(7,9,"imxplatform.common.background-job."+$.job.status.toLowerCase())," "),s.xp6(2),s.Q6J("ngIf",$.job.status.toLowerCase()===ue.jobStatus.running),s.xp6(),s.Q6J("ngIf",$.job.status.toLowerCase()===ue.jobStatus.finished_success),s.xp6(),s.Q6J("ngIf",$.job.status.toLowerCase()===ue.jobStatus.finished_error)}}let K=(()=>{class ne{constructor(){this.runState=n.c_,this.jobStatus=e.By}getJobExportActionNameAddition($){const ue=$.job.info?.actionParams?.statName;return ue&&ue.length>0?": "+ue:""}static#e=this.\u0275fac=function(ue){return new(ue||ne)};static#t=this.\u0275cmp=s.Xpm({type:ne,selectors:[["imx-background-action-list"]],inputs:{actionStates:"actionStates",jobStates:"jobStates"},decls:6,vars:3,consts:[[1,"background-action-box"],[3,"autoHeightDisabled"],[1,"background-action-box__wrapper"],["class","background-action-item",4,"ngFor","ngForOf"],[1,"triangle-up"],[1,"background-action-item"],[1,"background-action-item-header"],["translate",""],[3,"ngClass"],["class","background-action-item-result",4,"ngIf"],[1,"background-action-item-result"],["class","txt-ellipsis",4,"ngIf"],[4,"ngIf"],[1,"txt-ellipsis"],[1,"txt-ellipsis",3,"matTooltip"],["class","background-action-failure-message",4,"ngIf"],[1,"background-action-failure-message"]],template:function(ue,ge){1&ue&&(s.TgZ(0,"div",0)(1,"ng-scrollbar",1)(2,"div",2),s.YNc(3,b,8,6,"div",3)(4,Y,11,11,"div",3),s.qZA()(),s._UZ(5,"div",4),s.qZA()),2&ue&&(s.xp6(),s.Q6J("autoHeightDisabled",!1),s.xp6(2),s.Q6J("ngForOf",ge.actionStates),s.xp6(),s.Q6J("ngForOf",ge.jobStates))},dependencies:[l.mk,l.sg,l.O5,i.gM,t.Pi,p.KC,l.Ov,l.uU,t.X$],styles:[".background-action-box[_ngcontent-%COMP%]{font-size:14px;padding:20px;display:flex;flex-direction:column;min-width:400px;max-width:620px;background:#fff;box-shadow:0 0 5px #0003;position:relative;max-height:200px}.background-action-box[_ngcontent-%COMP%]   .background-action-item[_ngcontent-%COMP%]{margin:10px 0;display:flex;flex-direction:column}.background-action-box[_ngcontent-%COMP%]   .background-action-item[_ngcontent-%COMP%]   .background-action-item-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.background-action-box[_ngcontent-%COMP%]   .background-action-item[_ngcontent-%COMP%]   .background-action-item-header[_ngcontent-%COMP%]   .action-state-running[_ngcontent-%COMP%], .background-action-box[_ngcontent-%COMP%]   .background-action-item[_ngcontent-%COMP%]   .background-action-item-header[_ngcontent-%COMP%]   .job-state-running[_ngcontent-%COMP%], .background-action-box[_ngcontent-%COMP%]   .background-action-item[_ngcontent-%COMP%]   .background-action-item-header[_ngcontent-%COMP%]   .job-state-scheduled[_ngcontent-%COMP%]{color:#898989}.background-action-box[_ngcontent-%COMP%]   .background-action-item[_ngcontent-%COMP%]   .background-action-item-header[_ngcontent-%COMP%]   .action-state-success[_ngcontent-%COMP%], .background-action-box[_ngcontent-%COMP%]   .background-action-item[_ngcontent-%COMP%]   .background-action-item-header[_ngcontent-%COMP%]   .job-state-finished_success[_ngcontent-%COMP%]{color:#4ac400}.background-action-box[_ngcontent-%COMP%]   .background-action-item[_ngcontent-%COMP%]   .background-action-item-header[_ngcontent-%COMP%]   .action-state-failure[_ngcontent-%COMP%], .background-action-box[_ngcontent-%COMP%]   .background-action-item[_ngcontent-%COMP%]   .background-action-item-header[_ngcontent-%COMP%]   .job-state-finished_error[_ngcontent-%COMP%], .background-action-box[_ngcontent-%COMP%]   .background-action-item[_ngcontent-%COMP%]   .background-action-item-header[_ngcontent-%COMP%]   .job-state-suspended[_ngcontent-%COMP%], .background-action-box[_ngcontent-%COMP%]   .background-action-item[_ngcontent-%COMP%]   .background-action-item-header[_ngcontent-%COMP%]   .job-state-canceled[_ngcontent-%COMP%]{color:#96172e}.background-action-box[_ngcontent-%COMP%]   .background-action-item[_ngcontent-%COMP%]   .background-action-item-result[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:5px 0;font-size:12px;color:#898989}.background-action-box[_ngcontent-%COMP%]   .background-action-item[_ngcontent-%COMP%]   .background-action-item-result[_ngcontent-%COMP%]   div[_ngcontent-%COMP%] ~ div[_ngcontent-%COMP%]{margin-left:15px;white-space:nowrap}.background-action-box[_ngcontent-%COMP%]   .triangle-up[_ngcontent-%COMP%]{position:absolute;border-bottom-color:#fff;right:8px;top:-12px}.background-action-failure-message[_ngcontent-%COMP%]{text-wrap:wrap!important}.background-action-box__wrapper[_ngcontent-%COMP%]{padding-right:20px}"]})}return ne})()},26768:(gt,X,a)=>{"use strict";a.d(X,{E:()=>c});var e=a(19212),n=a(96814),s=a(22941),l=a(71365);function i(o,x){if(1&o){const u=e.EpF();e.ynx(0),e.TgZ(1,"button",2),e.NdJ("click",function(){e.CHM(u);const b=e.oxw();return e.KtG(b.create.emit())}),e._UZ(2,"i",3),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.BQk()}if(2&o){const u=e.oxw();e.xp6(3),e.hij(" ",e.lcZ(4,1,u.entityResourceKeyPrefix+".list.add")," ")}}const t=o=>[o,"new"];function p(o,x){if(1&o&&(e.TgZ(0,"button",4),e._UZ(1,"i",3),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&o){const u=e.oxw();e.Q6J("routerLink",e.VKq(4,t,u.entityRoute)),e.xp6(2),e.hij(" ",e.lcZ(3,2,u.entityResourceKeyPrefix+".list.add")," ")}}let c=(()=>{class o{constructor(){this.fireCreateEvent=!1,this.create=new e.vpe}static#e=this.\u0275fac=function(m){return new(m||o)};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["imx-create-new-entity-button"]],inputs:{fireCreateEvent:"fireCreateEvent",entityRoute:"entityRoute",entityResourceKeyPrefix:"entityResourceKeyPrefix"},outputs:{create:"create"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["default",""],[1,"imx-button","default","with-icon",3,"click"],[1,"icon","icon-file-add"],[1,"imx-button","default","with-icon",3,"routerLink"]],template:function(m,b){if(1&m&&e.YNc(0,i,5,3,"ng-container",0)(1,p,4,6,"ng-template",null,1,e.W1O),2&m){const I=e.MAs(2);e.Q6J("ngIf",b.fireCreateEvent)("ngIfElse",I)}},dependencies:[n.O5,s.rH,l.X$],encapsulation:2})}return o})()},88535:(gt,X,a)=>{"use strict";a.d(X,{AF:()=>Y,nt:()=>K,zv:()=>ne});var e=a(49193),n=a(77504),s=a(96124),l=a(75222),i=a(62413),t=a(21473),p=a(27556),c=a(64022),o=a(48485),x=a(41621),u=a(34300),m=a(19212),b=a(71365),I=a(96814),H=a(96698);function O($,ue){1&$&&(m.TgZ(0,"span"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&$&&(m.xp6(),m.Oqu(m.lcZ(2,1,"imxplatform.common-entity.list.action.references.loading")))}function P($,ue){if(1&$&&m._UZ(0,"p",8),2&$){const ge=m.oxw(3);m.Q6J("innerHTML",ge.referencesSubHeaderText,m.oJD)}}function G($,ue){if(1&$&&(m._UZ(0,"p",9),m.ALo(1,"translate")),2&$){const ge=m.oxw(3);m.Q6J("innerHTML",m.lcZ(1,1,ge.referencesInfoText),m.oJD)}}const B=()=>["references-table"];function ae($,ue){if(1&$&&(m.ynx(0),m.YNc(1,P,1,1,"p",3)(2,G,2,3,"p",4),m.TgZ(3,"div",5)(4,"div",6)(5,"ul"),m._UZ(6,"imx-table",7),m.qZA()()(),m.BQk()),2&$){const ge=m.oxw().ngIf,Ke=m.oxw();m.xp6(),m.Q6J("ngIf",Ke.referencesSubHeaderText),m.xp6(),m.Q6J("ngIf",Ke.referencesInfoText),m.xp6(4),m.Q6J("additionalStyle",m.DdM(5,B))("columns",Ke.referenceTableColumnDefinitions)("data",ge)}}function J($,ue){if(1&$&&(m._UZ(0,"p",8),m.ALo(1,"translate")),2&$){const ge=m.oxw(3);m.Q6J("innerHTML",m.lcZ(1,1,ge.noReferencesInfoText),m.oJD)}}function q($,ue){if(1&$&&(m.ynx(0),m.YNc(1,J,2,3,"p",3),m.BQk()),2&$){const ge=m.oxw(2);m.xp6(),m.Q6J("ngIf",ge.noReferencesInfoText)}}function j($,ue){if(1&$&&(m.ynx(0),m.YNc(1,ae,7,6,"ng-container",2)(2,q,2,1,"ng-container",2),m.BQk()),2&$){const ge=ue.ngIf;m.xp6(),m.Q6J("ngIf",ge.length>0),m.xp6(),m.Q6J("ngIf",ge.length<=0)}}let Y=(()=>{class ${constructor(ge,Ke,at,Le){this.translateService=ge,this.coreEntityService=Ke,this.permissionServiceRegistry=at,this.authService=Le,this.logger=(0,t.jl)("DataObjectReferencesComponent",p.H.name),this.defaultReferenceTableColumnDefinitions=[{accessor:"entityLabel",width:"10%",columnTitle:"imxplatform.common-entity.list.action.references.column-entity"},{accessor:"id",width:"5%",columnTitle:"imxplatform.common-entity.list.action.references.column-id"},{accessor:"titleMerged",width:"25%",type:"component",component:u.t,columnTitle:"imxplatform.common-entity.list.action.references.column-title",linkAccessor:"link",labelAccessor:"titleMerged",isExternal:!0},{accessor:"fieldName",width:"10%",columnTitle:"imxplatform.common-entity.list.action.references.column-fieldname"}]}ngOnInit(){this.referenceTableColumnDefinitions=this.defaultReferenceTableColumnDefinitions,this.optionalColumnDef&&this.defaultReferenceTableColumnDefinitions.push(this.optionalColumnDef);const ge=this.referenceSpecification$.pipe((0,s.U)(Ke=>Ke.references),(0,s.U)(Ke=>Ke.filter(at=>at&&!("de.imxnet.platform.data.EntityList"===at.type&&null===at.coreDataObjectId)).map(at=>{const Le=K(at),R=ne(at),Te=new ee(Le,this.getLabelForEntityType(Le),R,this.getFieldName(at.refProperty));return at.info&&(Object.keys(at.info).forEach(me=>{Te[me]=at.info[me]}),this.setTitle(Te)),Te})),(0,l.w)(Ke=>{if(!Ke||0===Ke.length)return(0,e.of)(Ke);{const at=Ke.map(Le=>this.enrichWithLink(Le));return(0,n.D)(at)}}));this.references$=ge}setTitle(ge){const Ke=this.getStringPropertyFromAnyObject(ge.coreDataObjectTitle?ge.coreDataObjectTitle:ge.title);ge.titleMerged=Ke}getFieldName(ge){const Ke="entity.DataObjectReference.refProperty."+ge,at=this.translateService.instant(Ke);return at===Ke?ge:at}getLabelForEntityType(ge){return this.translateService.instant("entity."+ge+".entityName")}enrichWithLink(ge){const Ke=this.coreEntityService.getCoreEntityDefByString(ge.entity);if(!Ke)return this.logger.info("No coreEntity found for entityType "+ge.entity+", generate no link"),(0,e.of)(ge);const at=this.permissionServiceRegistry.getEntityPermissionService(Ke.type);return at?at.calcReadPermissionById(ge.id).pipe((0,i.K)(Le=>(0,e.of)(!1)),(0,s.U)(Le=>(ge.link=Le?this.authService.generateTabSessionUrl(Ke.detailRoute+"/"+ge.id):"",ge))):(this.logger.info("No permissionService found for entityType "+ge.entity+", generate no link"),(0,e.of)(ge))}getStringPropertyFromAnyObject(ge){if(!ge)return"";if((0,t.HD)(ge))return ge;if((0,x.QK)(ge)){let Ke=ge[this.translateService.currentLang];if(Ke||(Ke=ge[this.translateService.defaultLang]),!Ke){const at=ge;this.translateService.langs.forEach(Le=>{at[Le]&&(Ke=at[Le])})}return Ke}return(0,t.hj)(ge)?ge.toString():""}static#e=this.\u0275fac=function(Ke){return new(Ke||$)(m.Y36(b.sK),m.Y36(c.dE),m.Y36(o.J),m.Y36(t.$h))};static#t=this.\u0275cmp=m.Xpm({type:$,selectors:[["imx-data-object-references"]],inputs:{referenceSpecification$:"referenceSpecification$",noReferencesInfoText:"noReferencesInfoText",referencesInfoText:"referencesInfoText",referencesSubHeaderText:"referencesSubHeaderText",optionalColumnDef:"optionalColumnDef"},decls:5,vars:4,consts:[["loading",""],[4,"ngIf","ngIfElse"],[4,"ngIf"],["class","dialog-txt-md",3,"innerHTML",4,"ngIf"],["class","dialog-txt-md","id","references_caution_info",3,"innerHTML",4,"ngIf"],[1,"form__content-row"],[1,"form__readonly_table"],["maxHeight","400px",3,"additionalStyle","columns","data"],[1,"dialog-txt-md",3,"innerHTML"],["id","references_caution_info",1,"dialog-txt-md",3,"innerHTML"]],template:function(Ke,at){if(1&Ke&&(m.TgZ(0,"div"),m.YNc(1,O,3,3,"ng-template",null,0,m.W1O)(3,j,3,2,"ng-container",1),m.ALo(4,"async"),m.qZA()),2&Ke){const Le=m.MAs(2);m.xp6(3),m.Q6J("ngIf",m.lcZ(4,2,at.references$))("ngIfElse",Le)}},dependencies:[I.O5,H.a,I.Ov,b.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}#references_caution_info[_ngcontent-%COMP%]{font-weight:700}.form__content-row[_ngcontent-%COMP%]{margin-left:-40px}  .references-table .mat-mdc-header-cell.id-column,   .references-table .mat-mdc-cell.id-column{width:10%!important}  .references-table .mat-mdc-header-cell{background-color:#fff!important}  .references-table .mat-mdc-cell{font-size:12px;background-color:#fff!important;color:#3e3e3e!important}  .references-table .mat-mdc-row{height:28px}"]})}return $})();function K($){let ue;ue=$.coreDataObjectType?$.coreDataObjectType:$.type;const ge=ue.lastIndexOf(".")+1;return ue.slice(ge)}function ne($){return $.coreDataObjectId?$.coreDataObjectId:$.id}class ee{constructor(ue,ge,Ke,at){this.entity=ue,this.entityLabel=ge,this.id=Ke,this.fieldName=at}}},55368:(gt,X,a)=>{"use strict";a.d(X,{E:()=>ae,c:()=>B});var e=a(56223),n=a(19212),s=a(96814),l=a(63005),i=a(33118),t=a(5679),p=a(77323),c=a(54362),o=a(84634);function x(J,q){1&J&&n.GkF(0)}function u(J,q){1&J&&n.GkF(0)}function m(J,q){1&J&&n._UZ(0,"imx-base-input-error",6)}function b(J,q){1&J&&n.YNc(0,m,1,0,"imx-base-input-error",5),2&J&&n.Q6J("ngIf",q.$implicit)}const I=J=>({$implicit:J});var H=function(J){return J.Monday="Monday",J.Tuesday="Tuesday",J.Wednesday="Wednesday",J.Thursday="Thursday",J.Friday="Friday",J.Saturday="Saturday",J.Sunday="Sunday",J}(H||{});let O=(()=>{class J{constructor(){this.days=[{value:H.Monday,label:"Montag"},{value:H.Tuesday,label:"Dienstag"},{value:H.Wednesday,label:"Mittwoch"},{value:H.Thursday,label:"Donnerstag"},{value:H.Friday,label:"Freitag"},{value:H.Saturday,label:"Samstag"},{value:H.Sunday,label:"Sonntag"}],this.weekGapFormControl=new e.p4(1,e.kI.required),this.weekDaysFormControl=new e.p4([],e.kI.required),this.weeklyDateSeriesFormGroup=new e.nJ({weekGap:this.weekGapFormControl,weekDays:this.weekDaysFormControl})}ngOnChanges(j){j.formGroup&&this.formGroup.addControl("weekly",this.weeklyDateSeriesFormGroup)}ngOnDestroy(){this.formGroup.removeControl("weekly")}get hasWeekGapValidationError(){return this._hasValidationError(this.weekGapFormControl)}get hasWeekDaysValidationError(){return this._hasValidationError(this.weekDaysFormControl)}_hasValidationError(j){return!!j.touched&&!!j.errors}static#e=this.\u0275fac=function(Y){return new(Y||J)};static#t=this.\u0275cmp=n.Xpm({type:J,selectors:[["imx-weekly-date-series"]],inputs:{formGroup:"formGroup"},features:[n.TTD],decls:10,vars:10,consts:[[3,"formGroup"],["formControlName","weekGap","type","text","pattern","\\d*"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["formControlName","weekDays","mode","inline",3,"checkboxes"],["generalInputError",""],["errorMessage","Die Eingabe ist nicht korrekt.",4,"ngIf"],["errorMessage","Die Eingabe ist nicht korrekt."]],template:function(Y,K){if(1&Y&&(n.TgZ(0,"div",0)(1,"div"),n._uU(2," Alle "),n._UZ(3,"imx-base-input",1),n._uU(4," Wochen am "),n.qZA(),n.YNc(5,x,1,0,"ng-container",2),n._UZ(6,"imx-base-checkbox-select",3),n.YNc(7,u,1,0,"ng-container",2),n.qZA(),n.YNc(8,b,1,1,"ng-template",null,4,n.W1O)),2&Y){const ne=n.MAs(9);n.Q6J("formGroup",K.weeklyDateSeriesFormGroup),n.xp6(5),n.Q6J("ngTemplateOutlet",ne)("ngTemplateOutletContext",n.VKq(6,I,K.hasWeekGapValidationError)),n.xp6(),n.Q6J("checkboxes",K.days),n.xp6(),n.Q6J("ngTemplateOutlet",ne)("ngTemplateOutletContext",n.VKq(8,I,K.hasWeekDaysValidationError))}},dependencies:[s.O5,s.tP,e.JJ,e.JL,e.c5,e.sg,e.u,p.N,c.H,o.o],styles:["imx-base-input[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;width:65px}imx-base-checkbox-select[_ngcontent-%COMP%]{display:block;margin-top:10px}imx-base-checkbox-select[_ngcontent-%COMP%]     .select-option{display:flex;flex-basis:105px}"]})}return J})();function P(J,q){if(1&J&&n._UZ(0,"imx-weekly-date-series",0),2&J){const j=n.oxw();n.Q6J("formGroup",j.formGroup)}}function G(J,q){if(1&J&&n._UZ(0,"imx-monthly-date-series",0),2&J){const j=n.oxw();n.Q6J("formGroup",j.formGroup)}}var B=function(J){return J[J.Daily=0]="Daily",J[J.Weekly=1]="Weekly",J[J.Monthly=2]="Monthly",J}(B||{});let ae=(()=>{class J{constructor(j){this.changeDetectorRef=j,this.intervalRadioButtons=[{value:B.Daily,label:"imxplatform.component.edit-date-series.daily"},{value:B.Weekly,label:"imxplatform.component.edit-date-series.weekly"},{value:B.Monthly,label:"imxplatform.component.edit-date-series.monthly"}],this.dateSeriesInterval=B,this.startDateFormControl=new e.p4(null,e.kI.required),this.endDateFormControl=new e.p4(null,e.kI.required)}ngOnInit(){this.registerRadioButtonChangeHandler(),this.startDateFormControl.setValue(this.startDate)}ngOnChanges(j){j.formGroup&&(this.formGroup.addControl("dateSeriesInterval",new e.p4(B.Daily)),this.formGroup.addControl("startDate",this.startDateFormControl),this.formGroup.addControl("endDate",this.endDateFormControl))}get selectedDateSeriesInterval(){const j=this.formGroup.get("dateSeriesInterval");return j?j.value:void 0}get startDateErrors(){return this._getFormControlErrors(this.startDateFormControl)}get endDateErrors(){return this._getFormControlErrors(this.endDateFormControl)}_getFormControlErrors(j){return j.touched?j.errors:null}registerRadioButtonChangeHandler(){this.formGroup.get("dateSeriesInterval")&&this.formGroup.get("dateSeriesInterval").valueChanges.subscribe(()=>{this.changeDetectorRef.detectChanges()})}static#e=this.\u0275fac=function(Y){return new(Y||J)(n.Y36(n.sBO))};static#t=this.\u0275cmp=n.Xpm({type:J,selectors:[["imx-date-series-form"]],inputs:{formGroup:"formGroup",startDate:"startDate"},features:[n.TTD],decls:8,vars:7,consts:[[3,"formGroup"],["formControlName","dateSeriesInterval","label","Interval","mode","inline",3,"radioButtons"],[1,"date-container"],["formControlName","startDate","label","Beginn",3,"errors"],["formControlName","endDate","label","Ende",3,"errors"],[3,"ngSwitch"],[3,"formGroup",4,"ngSwitchCase"]],template:function(Y,K){1&Y&&(n.TgZ(0,"div",0),n._UZ(1,"imx-base-radio-button-group",1),n.TgZ(2,"div",2),n._UZ(3,"imx-base-date",3)(4,"imx-base-date",4),n.qZA(),n.ynx(5,5),n.YNc(6,P,1,1,"imx-weekly-date-series",6)(7,G,1,1,"imx-monthly-date-series",6),n.BQk(),n.qZA()),2&Y&&(n.Q6J("formGroup",K.formGroup),n.xp6(),n.Q6J("radioButtons",K.intervalRadioButtons),n.xp6(2),n.Q6J("errors",K.startDateErrors),n.xp6(),n.Q6J("errors",K.endDateErrors),n.xp6(),n.Q6J("ngSwitch",K.selectedDateSeriesInterval),n.xp6(),n.Q6J("ngSwitchCase",K.dateSeriesInterval.Weekly),n.xp6(),n.Q6J("ngSwitchCase",K.dateSeriesInterval.Monthly))},dependencies:[s.RF,s.n9,e.JJ,e.JL,e.sg,e.u,l.d,i.q,t.C,O],styles:[".date-container[_ngcontent-%COMP%]{display:flex;margin:10px 0}.date-container[_ngcontent-%COMP%] > imx-base-date[_ngcontent-%COMP%]:first-child{margin-right:10px}"]})}return J})()},5679:(gt,X,a)=>{"use strict";a.d(X,{C:()=>ae,z:()=>P});var e=a(56223),n=a(19212),s=a(96814),l=a(54362),i=a(84634),t=a(33118),p=a(10444);function c(J,q){1&J&&n.GkF(0)}function o(J,q){1&J&&n.GkF(0)}const x=J=>({$implicit:J});function u(J,q){if(1&J&&(n.TgZ(0,"div"),n._uU(1," Am "),n._UZ(2,"imx-base-input",7),n._uU(3," . jeden "),n._UZ(4,"imx-base-input",8),n._uU(5," Monats. "),n.qZA(),n.YNc(6,o,1,0,"ng-container",9)),2&J){const j=n.oxw(2),Y=n.MAs(5);n.xp6(6),n.Q6J("ngTemplateOutlet",Y)("ngTemplateOutletContext",n.VKq(2,x,j.hasMonthlyDefinitionValidationError))}}function m(J,q){1&J&&n.GkF(0)}function b(J,q){if(1&J&&(n.TgZ(0,"div"),n._uU(1," Am "),n._UZ(2,"imx-base-select",10)(3,"imx-base-select",11),n._uU(4," jeden "),n._UZ(5,"imx-base-input",12),n._uU(6," Monats "),n.qZA(),n.YNc(7,m,1,0,"ng-container",9)),2&J){const j=n.oxw(2),Y=n.MAs(5);n.xp6(2),n.Q6J("options",j.weeklyDefinitionGaps),n.xp6(),n.Q6J("options",j.weeklyDefinitionWeekDays),n.xp6(4),n.Q6J("ngTemplateOutlet",Y)("ngTemplateOutletContext",n.VKq(4,x,j.hasWeeklyDefinitionValidationError))}}function I(J,q){if(1&J&&n.YNc(0,c,1,0,"ng-container",4)(1,u,7,4,"ng-template",null,5,n.W1O)(3,b,8,6,"ng-template",null,6,n.W1O),2&J){const j=q.$implicit,Y=n.MAs(2),K=n.MAs(4),ne=n.oxw();n.Q6J("ngIf",j.value===ne.monthlyDateSeriesDefinition.DayOfMonth)("ngIfThen",Y)("ngIfElse",K)}}function H(J,q){1&J&&n._UZ(0,"imx-base-input-error",14)}function O(J,q){1&J&&n.YNc(0,H,1,0,"imx-base-input-error",13),2&J&&n.Q6J("ngIf",q.$implicit)}var P=function(J){return J[J.DayOfMonth=0]="DayOfMonth",J[J.DayOfWeek=1]="DayOfWeek",J}(P||{}),G=function(J){return J[J.Monday=1]="Monday",J[J.Tuesday=2]="Tuesday",J[J.Wednesday=3]="Wednesday",J[J.Thursday=4]="Thursday",J[J.Friday=5]="Friday",J[J.Saturday=6]="Saturday",J[J.Sunday=7]="Sunday",J}(G||{}),B=function(J){return J[J.First=1]="First",J[J.Second=2]="Second",J[J.Third=3]="Third",J[J.Fourth=4]="Fourth",J[J.Last=5]="Last",J}(B||{});let ae=(()=>{class J{constructor(){this.monthlyDateSeriesDefinitionRadioButtons=[{value:P.DayOfMonth,label:"imxplatform.component.edit-date-series.monthly-series.dayOfMonth"},{value:P.DayOfWeek,label:"imxplatform.component.edit-date-series.monthly-series.dayOfWeek"}],this.weeklyDefinitionGaps=[{value:B.First,label:"imxplatform.component.edit-date-series.monthly-series.gap-first"},{value:B.Second,label:"imxplatform.component.edit-date-series.monthly-series.gap-second"},{value:B.Third,label:"imxplatform.component.edit-date-series.monthly-series.gap-third"},{value:B.Fourth,label:"imxplatform.component.edit-date-series.monthly-series.gap-fourth"},{value:B.Last,label:"imxplatform.component.edit-date-series.monthly-series.gap-last"}],this.weeklyDefinitionWeekDays=[{value:G.Monday,label:"imxplatform.component.edit-date-series.monthly-series.monday"},{value:G.Tuesday,label:"imxplatform.component.edit-date-series.monthly-series.tuesday"},{value:G.Wednesday,label:"imxplatform.component.edit-date-series.monthly-series.wednesday"},{value:G.Thursday,label:"imxplatform.component.edit-date-series.monthly-series.thursday"},{value:G.Friday,label:"imxplatform.component.edit-date-series.monthly-series.friday"},{value:G.Saturday,label:"imxplatform.component.edit-date-series.monthly-series.saturday"},{value:G.Sunday,label:"imxplatform.component.edit-date-series.monthly-series.sunday"}],this.monthlyDateSeriesDefinition=P,this.monthlyDateSeriesDefinitionFormControl=new e.p4(P.DayOfMonth),this.monthlyDefinitionDayOfMonthFormControl=new e.p4,this.monthlyDefinitionMonthGapFormControl=new e.p4,this.weeklyDefinitionMonthGapFormControl=new e.p4,this.weeklyDefinitionGapFormControl=new e.p4,this.weeklyDefinitionWeekDayFormControl=new e.p4,this.monthlyDateSeriesFormGroup=new e.nJ({monthlyDateSeriesDefinition:this.monthlyDateSeriesDefinitionFormControl,monthlyDefinitionDayOfMonth:this.monthlyDefinitionDayOfMonthFormControl,monthlyDefinitionMonthGap:this.monthlyDefinitionMonthGapFormControl,weeklyDefinitionMonthGap:this.weeklyDefinitionMonthGapFormControl,weeklyDefinitionGap:this.weeklyDefinitionGapFormControl,weeklyDefinitionWeekDay:this.weeklyDefinitionWeekDayFormControl},this._validateInputs.bind(this))}ngOnChanges(j){j.formGroup&&this.formGroup.addControl("monthly",this.monthlyDateSeriesFormGroup)}ngOnDestroy(){this.formGroup.removeControl("monthly")}_validateInputs(){return this._validateMonthlyDefinition(),this._validateWeeklyDefinition(),null}_validateMonthlyDefinition(){if(this.monthlyDateSeriesDefinitionFormControl.value!==P.DayOfMonth)return this.monthlyDefinitionDayOfMonthFormControl.setErrors(null),void this.monthlyDefinitionMonthGapFormControl.setErrors(null);this._validateMonthlyDefinitionDayOfMonth(),this._validateMonthlyDefinitionMonthGap()}_validateMonthlyDefinitionDayOfMonth(){const ne=[{required:e.kI.required},{min:e.kI.min(1)},{max:e.kI.max(31)}].reduce((ee,$)=>{const ue=Object.keys($)[0];return(0,Object.values($)[0])(this.monthlyDefinitionDayOfMonthFormControl)&&(ee[ue]=!0),ee},{});this.monthlyDefinitionDayOfMonthFormControl.setErrors(Object.keys(ne).length?ne:null)}_validateMonthlyDefinitionMonthGap(){this._performRequiredFieldValidation(this.monthlyDefinitionMonthGapFormControl)}_validateWeeklyDefinition(){if(this.monthlyDateSeriesDefinitionFormControl.value!==P.DayOfWeek)return this.weeklyDefinitionMonthGapFormControl.setErrors(null),this.weeklyDefinitionGapFormControl.setErrors(null),void this.weeklyDefinitionWeekDayFormControl.setErrors(null);this._validateWeeklyDefinitionMonthGap(),this._validateWeeklyDefinitionGap(),this._validateWeeklyDefinitionWeekDay()}_validateWeeklyDefinitionMonthGap(){this._performRequiredFieldValidation(this.weeklyDefinitionMonthGapFormControl)}_validateWeeklyDefinitionGap(){this._performRequiredFieldValidation(this.weeklyDefinitionGapFormControl)}_validateWeeklyDefinitionWeekDay(){this._performRequiredFieldValidation(this.weeklyDefinitionWeekDayFormControl)}_performRequiredFieldValidation(j){const Y=e.kI.required(j);j.setErrors(Y)}get hasMonthlyDefinitionValidationError(){return!(!this.monthlyDefinitionDayOfMonthFormControl.touched&&!this.monthlyDefinitionMonthGapFormControl.touched||!this.monthlyDefinitionDayOfMonthFormControl.errors&&!this.monthlyDefinitionMonthGapFormControl.errors)}get hasWeeklyDefinitionValidationError(){return!(!(this.weeklyDefinitionMonthGapFormControl.touched||this.weeklyDefinitionWeekDayFormControl.touched||this.weeklyDefinitionGapFormControl.touched)||!this.weeklyDefinitionMonthGapFormControl.errors&&!this.weeklyDefinitionWeekDayFormControl.errors&&!this.weeklyDefinitionGapFormControl.errors)}static#e=this.\u0275fac=function(Y){return new(Y||J)};static#t=this.\u0275cmp=n.Xpm({type:J,selectors:[["imx-monthly-date-series"]],inputs:{formGroup:"formGroup"},features:[n.TTD],decls:6,vars:2,consts:[[3,"formGroup"],["formControlName","monthlyDateSeriesDefinition",3,"radioButtons"],["customLabel",""],["generalInputError",""],[4,"ngIf","ngIfThen","ngIfElse"],["dayOfMonthLabel",""],["dayOfWeekLabel",""],["formControlName","monthlyDefinitionDayOfMonth","type","text","pattern","\\d*"],["formControlName","monthlyDefinitionMonthGap","type","text","pattern","\\d*"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["formControlName","weeklyDefinitionGap",1,"weekly-definition-gap",3,"options"],["formControlName","weeklyDefinitionWeekDay",1,"weekly-definition-weekday",3,"options"],["formControlName","weeklyDefinitionMonthGap","type","text","pattern","\\d*"],["errorMessage","Die Eingabe ist nicht korrekt.",4,"ngIf"],["errorMessage","Die Eingabe ist nicht korrekt."]],template:function(Y,K){1&Y&&(n.TgZ(0,"div",0)(1,"imx-base-radio-button-group",1),n.YNc(2,I,5,3,"ng-template",null,2,n.W1O),n.qZA()(),n.YNc(4,O,1,1,"ng-template",null,3,n.W1O)),2&Y&&(n.Q6J("formGroup",K.monthlyDateSeriesFormGroup),n.xp6(),n.Q6J("radioButtons",K.monthlyDateSeriesDefinitionRadioButtons))},dependencies:[s.O5,s.tP,e.JJ,e.JL,e.c5,e.sg,e.u,l.H,i.o,t.q,p.o],styles:["imx-base-input[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;width:65px}imx-base-select.weekly-definition-gap[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;width:100px}imx-base-select.weekly-definition-weekday[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;width:125px}.weekly-definition-gap[_ngcontent-%COMP%]{padding-right:5px}[_nghost-%COMP%]     .mat-mdc-radio-button .mdc-label{align-items:start}[_nghost-%COMP%]     .mat-mdc-radio-container{margin-top:7px}"]})}return J})()},13033:(gt,X,a)=>{"use strict";a.d(X,{A:()=>c});var e=a(17700),n=a(19212),s=a(96814),l=a(33946),i=a(71365);function t(o,x){1&o&&(n.TgZ(0,"p"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&o&&(n.xp6(),n.Oqu(n.lcZ(2,1,"imxplatform.dialog.action-result-nothing-processed")))}function p(o,x){if(1&o&&(n.TgZ(0,"p"),n._uU(1),n.ALo(2,"translate"),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"translate"),n.qZA()()),2&o){const u=n.oxw();n.xp6(),n.hij("",n.lcZ(2,2,"imxplatform.dialog.action-result-content")," "),n.xp6(3),n.Oqu(n.xi3(5,4,u.data.i18nText,u.data.context))}}let c=(()=>{class o{constructor(u){this.data=u}static#e=this.\u0275fac=function(m){return new(m||o)(n.Y36(e.WI))};static#t=this.\u0275cmp=n.Xpm({type:o,selectors:[["ng-component"]],decls:3,vars:2,consts:[["heading","imxplatform.dialog.action-result-header","icon","icon-exclamationmark red","cancelButtonLabel","imxplatform.dialog.action-result-close","submitButtonLabel",""],[4,"ngIf"]],template:function(m,b){1&m&&(n.TgZ(0,"imx-dialog",0),n.YNc(1,t,3,3,"p",1)(2,p,6,7,"p",1),n.qZA()),2&m&&(n.xp6(),n.Q6J("ngIf",b.data.context.nothingWasProcessed),n.xp6(),n.Q6J("ngIf",!b.data.context.nothingWasProcessed))},dependencies:[s.O5,l.a,i.X$]})}return o})()},55550:(gt,X,a)=>{"use strict";a.d(X,{K:()=>H});var e=a(56223),n=a(17700),s=a(49193),l=a(53075),i=a(96124),t=a(64022),p=a(67276),c=a(57462),o=a(19212),x=a(71365),u=a(10444),m=a(33946),b=a(96814);const I=["dialogFrame"];let H=(()=>{class O{constructor(G,B){this.coreEntityDefService=G,this.data=B,this.entityTypeControl=new e.p4(""),this.entityTypeControl.setValidators(c.lS),this.entityTypeControl.setValue(-1),this.formGroup=new e.nJ({entityType:this.entityTypeControl}),this.entityTypeOptions$=this.getCoreEntitiesAsOptions(),this.entityTypeOptions$=this.entityTypeOptions$.pipe((0,l.O)([]),(0,i.U)(ae=>[{value:p.F,label:"imxplatform.common.select-placeholder-demand"},...ae]))}handleSubmit(){this.formGroup.valid&&this.dialogFrame.handleConfirm()}getDialogResult(){return this.data.selectedEntityType=this.entityTypeControl.value,this.data}getCoreEntitiesAsOptions(){const G=this.coreEntityDefService.getCoreEntityDefsForReferenceLists().map(B=>({label:B.pluralLabel,value:B.type}));return(0,s.of)(G)}static#e=this.\u0275fac=function(B){return new(B||O)(o.Y36(t.dE),o.Y36(n.WI))};static#t=this.\u0275cmp=o.Xpm({type:O,selectors:[["ng-component"]],viewQuery:function(B,ae){if(1&B&&o.Gf(I,7),2&B){let J;o.iGM(J=o.CRH())&&(ae.dialogFrame=J.first)}},decls:21,vars:9,consts:[["heading","imxplatform.entity-list.contact-list.add-dialog.header","icon","icon-reference-list","submitButtonLabel","imxplatform.entity-list.contact-list.add-dialog.confirm",3,"submitButtonDisabled","getSubmitResult"],["dialogFrame",""],["id","create-contact-list",3,"formGroup","submit"],[1,"dialog-form"],[1,"dialog-form-group"],[3,"options","label","formControl","formGroup"],[1,"hint-section"],["translate",""],[1,"icon","icon-star","imx-icon-small"]],template:function(B,ae){1&B&&(o.TgZ(0,"imx-dialog",0,1)(2,"form",2),o.NdJ("submit",function(){return ae.handleSubmit()}),o.TgZ(3,"div",3)(4,"div",4),o._UZ(5,"imx-base-select",5),o.ALo(6,"async"),o.TgZ(7,"div",6)(8,"label",7),o._uU(9,"imxplatform.entity-list.contact-list.add-dialog.hints.part1"),o.qZA(),o.TgZ(10,"ul")(11,"li")(12,"label",7),o._uU(13,"imxplatform.entity-list.contact-list.add-dialog.hints.part2"),o.qZA()(),o.TgZ(14,"li")(15,"div")(16,"label",7),o._uU(17,"imxplatform.entity-list.contact-list.add-dialog.hints.part3"),o.qZA(),o._UZ(18,"span",8),o.TgZ(19,"label",7),o._uU(20,"imxplatform.entity-list.contact-list.add-dialog.hints.part4"),o.qZA()()()()()()()()()),2&B&&(o.Q6J("submitButtonDisabled",ae.formGroup.invalid)("getSubmitResult",ae.getDialogResult.bind(ae)),o.xp6(2),o.Q6J("formGroup",ae.formGroup),o.xp6(3),o.Q6J("options",o.lcZ(6,7,ae.entityTypeOptions$))("label","imxplatform.entity-list.contact-list.add-dialog.addContactList")("formControl",ae.entityTypeControl)("formGroup",ae.formGroup))},dependencies:[e._Y,e.JJ,e.JL,e.oH,e.sg,x.Pi,u.o,m.a,b.Ov],styles:[".hint-section[_ngcontent-%COMP%]{margin-top:15px;display:flex;flex-direction:column}.hint-section[_ngcontent-%COMP%]   .icon-star[_ngcontent-%COMP%]{margin:0 2px}.hint-section[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin-top:5px}"]})}return O})()},63773:(gt,X,a)=>{"use strict";a.d(X,{t:()=>u});var e=a(17700),n=a(19212),s=a(96814),l=a(33946),i=a(71365),t=a(1614);const p=(m,b)=>({title:m,id:b});function c(m,b){if(1&m&&(n._UZ(0,"p",2),n.ALo(1,"translate"),n.ALo(2,"readI18n")),2&m){const I=n.oxw();n.Q6J("innerHTML",n.xi3(1,1,I.data.i18nText,n.WLB(6,p,n.lcZ(2,4,I.data.title),I.data.objectId)),n.oJD)}}const o=m=>({count:m});function x(m,b){if(1&m&&(n._UZ(0,"p",2),n.ALo(1,"translate")),2&m){const I=n.oxw();n.Q6J("innerHTML",n.xi3(1,1,I.data.i18nText,n.VKq(4,o,I.data.count)),n.oJD)}}let u=(()=>{class m{constructor(I){this.data=I}static#e=this.\u0275fac=function(H){return new(H||m)(n.Y36(e.WI))};static#t=this.\u0275cmp=n.Xpm({type:m,selectors:[["ng-component"]],decls:3,vars:3,consts:[["icon","icon-stem","submitButtonLabel","imxplatform.addresspoi.list.action.convert.submit","cancelButtonLabel","imxplatform.addresspoi.list.action.convert.cancel",3,"heading"],["class","dialog-txt-md",3,"innerHTML",4,"ngIf"],[1,"dialog-txt-md",3,"innerHTML"]],template:function(H,O){1&H&&(n.TgZ(0,"imx-dialog",0),n.YNc(1,c,3,9,"p",1)(2,x,2,6,"p",1),n.qZA()),2&H&&(n.s9C("heading",O.data.i18nHeader),n.xp6(),n.Q6J("ngIf",!O.data.batch),n.xp6(),n.Q6J("ngIf",O.data.batch))},dependencies:[s.O5,l.a,i.X$,t.j],encapsulation:2})}return m})()},12486:(gt,X,a)=>{"use strict";a.d(X,{Z:()=>m});var e=a(17700),n=a(19212),s=a(96814),l=a(56223),i=a(87466),t=a(33946),p=a(71365),c=a(1614);function o(b,I){1&b&&(n.TgZ(0,"p",3),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&b&&(n.xp6(),n.Oqu(n.lcZ(2,1,"imxplatform.merge-duplicates-dialog.select-hint")))}function x(b,I){if(1&b&&(n.TgZ(0,"mat-radio-button",8),n._uU(1),n.ALo(2,"readI18n"),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&b){const H=I.$implicit;n.Q6J("value",H.id),n.xp6(),n.Oqu(n.lcZ(2,3,H.title)),n.xp6(3),n.hij(" (ID: ",H.id,")")}}function u(b,I){if(1&b){const H=n.EpF();n.TgZ(0,"div",4)(1,"div")(2,"h3"),n._uU(3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"div",5)(6,"p"),n._uU(7),n.ALo(8,"translate"),n.qZA(),n.TgZ(9,"p")(10,"b"),n._uU(11),n.ALo(12,"translate"),n.qZA()(),n.TgZ(13,"mat-radio-group",6),n.NdJ("ngModelChange",function(P){n.CHM(H);const G=n.oxw();return n.KtG(G.data.selectedMasterId=P)}),n.YNc(14,x,5,5,"mat-radio-button",7),n.qZA()()()()}if(2&b){const H=n.oxw();n.xp6(3),n.Oqu(n.lcZ(4,5,"imxplatform.addresspoi.list.action.merge.target-poi")),n.xp6(4),n.Oqu(n.lcZ(8,7,"imxplatform.addresspoi.list.action.merge.target-poi-hint")),n.xp6(4),n.Oqu(n.lcZ(12,9,"imxplatform.addresspoi.list.action.merge.target-poi-hint-important")),n.xp6(2),n.Q6J("ngModel",H.data.selectedMasterId),n.xp6(),n.Q6J("ngForOf",H.data.duplicates)}}let m=(()=>{class b{constructor(H){this.data=H}getDialogResult(){return this.data}static#e=this.\u0275fac=function(O){return new(O||b)(n.Y36(e.WI))};static#t=this.\u0275cmp=n.Xpm({type:b,selectors:[["ng-component"]],decls:3,vars:4,consts:[["heading","imxplatform.addresspoi.list.action.merge.header","icon","icon-compare","submitButtonLabel","imxplatform.addresspoi.list.action.merge.submit",3,"submitButtonDisabled","getSubmitResult"],["class","dialog-txt-md error",4,"ngIf"],["class","dialog-form",4,"ngIf"],[1,"dialog-txt-md","error"],[1,"dialog-form"],[1,"dialog-form-group"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(O,P){1&O&&(n.TgZ(0,"imx-dialog",0),n.YNc(1,o,3,3,"p",1)(2,u,15,11,"div",2),n.qZA()),2&O&&(n.Q6J("submitButtonDisabled",P.data.invalidSelected||null==P.data.selectedMasterId)("getSubmitResult",P.getDialogResult.bind(P)),n.xp6(),n.Q6J("ngIf",P.data.invalidSelected),n.xp6(),n.Q6J("ngIf",!P.data.invalidSelected))},dependencies:[s.sg,s.O5,l.JJ,l.On,i.VQ,i.U0,t.a,p.X$,c.j],styles:[".checkbox-group[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return b})()},16699:(gt,X,a)=>{"use strict";a.d(X,{h:()=>Se});var e=a(56223),n=a(17700),s=a(21473),l=a(5253),i=a(51418),t=a(96743),p=a(44003),c=a(74599),o=a(7428),x=a(54813);function m(Ue,We,et){return 0===et?[We]:(Ue.push(We),Ue)}var I=a(11541),H=a(75303),O=a(22819),P=a(19212),G=a(96814),B=a(16007),ae=a(77323),J=a(67849),q=a(33946),j=a(1614);function Y(Ue,We){if(1&Ue&&(P.ynx(0),P.TgZ(1,"span"),P._uU(2,"Welche Attribute sollen mit einbezogen werden?"),P.qZA(),P.TgZ(3,"div",7),P._UZ(4,"imx-base-checkbox-select",8),P.qZA(),P._UZ(5,"br"),P.BQk()),2&Ue){const et=P.oxw();P.xp6(3),P.Q6J("formGroup",et.aiGenerateTextFormGroup),P.xp6(),P.Q6J("checkboxes",et.selectableModuleCheckboxes)}}function K(Ue,We){if(1&Ue){const et=P.EpF();P.TgZ(0,"button",5),P.NdJ("click",function(){P.CHM(et);const lt=P.oxw();return P.KtG(lt.generateValueFromPrompt())}),P._uU(1,"Text generieren"),P.qZA()}}function ne(Ue,We){if(1&Ue){const et=P.EpF();P.TgZ(0,"button",5),P.NdJ("click",function(){P.CHM(et);const lt=P.oxw();return P.KtG(lt.generateValueFromPrompt())}),P._uU(1,"Attribute finden"),P.qZA()}}function ee(Ue,We){1&Ue&&(P.ynx(0),P._UZ(1,"br")(2,"br"),P.TgZ(3,"div",9)(4,"p"),P._uU(5,"Generiere Text... Bitte haben Sie einige Sekunden Geduld!"),P.qZA(),P._UZ(6,"br")(7,"mat-progress-bar",10),P.qZA(),P._UZ(8,"br")(9,"br"),P.BQk())}function $(Ue,We){if(1&Ue&&(P.ynx(0),P.TgZ(1,"p",13),P._uU(2,"Aktueller Text: "),P._UZ(3,"i",14),P.ALo(4,"readI18n"),P.qZA(),P.BQk()),2&Ue){const et=P.oxw(2).$implicit,Et=P.oxw(2);P.xp6(3),P.Q6J("innerHTML",P.lcZ(4,1,Et.data.entityFormHandler.formGroup.controls[et].value),P.oJD)}}function ue(Ue,We){if(1&Ue&&(P.ynx(0),P.TgZ(1,"p",13),P._uU(2,"Aktueller Text: "),P._UZ(3,"i",14),P.qZA(),P.BQk()),2&Ue){const et=P.oxw(2).$implicit,Et=P.oxw(2);P.xp6(3),P.Q6J("innerHTML",Et.data.entityFormHandler.formGroup.controls[et].value,P.oJD)}}function ge(Ue,We){if(1&Ue&&(P.ynx(0),P._UZ(1,"imx-base-multi-input",12),P.YNc(2,$,5,3,"ng-container",3)(3,ue,4,1,"ng-container",3),P.BQk()),2&Ue){const et=P.oxw().$implicit,Et=P.oxw(2);P.xp6(),P.Q6J("formControl",Et.resultFormGroup.controls[et])("label","entity.Addressbase."+et)("required",!1),P.xp6(),P.Q6J("ngIf",Et.data.writesI18n),P.xp6(),P.Q6J("ngIf",!Et.data.writesI18n)}}function Ke(Ue,We){if(1&Ue&&(P.TgZ(0,"li")(1,"p"),P._uU(2),P.ALo(3,"readI18n"),P.qZA()()),2&Ue){const et=We.$implicit;P.xp6(2),P.AsE("",P.lcZ(3,2,et.i18nName)," (ID: ",et.id,")")}}function at(Ue,We){if(1&Ue&&(P.TgZ(0,"li")(1,"p"),P._uU(2),P.ALo(3,"readI18n"),P.qZA()()),2&Ue){const et=We.$implicit;P.xp6(2),P.AsE("",P.lcZ(3,2,et.i18nName)," (ID: ",et.id,")")}}function Le(Ue,We){if(1&Ue&&(P.ynx(0),P.TgZ(1,"p",13),P._uU(2,"Extrahierte Werte:"),P.qZA(),P.TgZ(3,"ul"),P.YNc(4,Ke,4,4,"li",11),P.qZA(),P.TgZ(5,"p",13),P._uU(6,"Aktueller Wert:"),P.qZA(),P.TgZ(7,"ul"),P.YNc(8,at,4,4,"li",11),P.qZA(),P.BQk()),2&Ue){const et=P.oxw().$implicit,Et=P.oxw(2);P.xp6(4),P.Q6J("ngForOf",Et.resultFormGroup.controls[et].value),P.xp6(4),P.Q6J("ngForOf",Et.currentValueExtractions)}}function R(Ue,We){if(1&Ue&&(P.ynx(0),P.YNc(1,ge,4,5,"ng-container",3)(2,Le,9,2,"ng-container",3),P.BQk()),2&Ue){const et=We.$implicit,Et=P.oxw(2);P.xp6(),P.Q6J("ngIf",Et.data.promptConverter.promptType===Et.AI_PROMPT_TYPE_TEXT_GENERATION&&Et.resultFormGroup.controls[et].value&&Et.resultFormGroup.controls[et].value.length>0),P.xp6(),P.Q6J("ngIf",Et.data.promptConverter.promptType===Et.AI_PROMPT_TYPE_EXTRACTION&&Et.resultFormGroup.controls[et].value)}}function Te(Ue,We){if(1&Ue&&(P.ynx(0),P.YNc(1,R,3,2,"ng-container",11),P.BQk()),2&Ue){const et=P.oxw();P.xp6(),P.Q6J("ngForOf",et.getResults())}}let Se=(()=>{class Ue{constructor(et,Et,lt){this.dataAccess=et,this.entitiesMgrService=Et,this.data=lt,this.AI_PROMPT_TYPE_TEXT_GENERATION="TEXT_GENERATION",this.AI_PROMPT_TYPE_EXTRACTION="EXTRACTION",this.aiGenerateTextFormGroup=new e.nJ({prompt:new e.p4(""),selectedProductlineIds:new e.p4([])}),this.resultFormGroup=new e.nJ({}),this.currentValueExtractions=[],this.isGenerating=!1,this.selectableModuleCheckboxes=[],this.moduleCheckboxes=[{value:"100001000",label:"Angaben aus dem Unterkunftsmodul"},{value:"100002100",label:"Angaben aus dem Gastronomie-Modul"},{value:"100012000",label:"Angaben aus dem Touren-Modul"}];for(const Vt of this.data.promptConverter.promptForFields)this.resultFormGroup.addControl(Vt,new e.p4("",{validators:e.kI.required}))}ngOnInit(){this.initAddressbaseSelectOptions(),this.generatePrompt()}generatePrompt(){this.aiGenerateTextFormGroup.controls.prompt.setValue(""),this.dataAccess.getPrompt(this.data.entityType,this.getCurrentFormHandlerEntity(),"de",this.data.promptConverter.name,this.aiGenerateTextFormGroup.controls.selectedProductlineIds.value).pipe((0,i.q)(1)).subscribe(et=>{this.aiGenerateTextFormGroup.controls.prompt.setValue(et.prompt)})}writeResultToFormHandler(et){const Et=this.resultFormGroup.controls[et].value;if(this.data.promptConverter.promptType===this.AI_PROMPT_TYPE_TEXT_GENERATION){if(Et&&Et.length>0){if(!0===this.data.writesI18n){const lt=this.data.entityFormHandler.formGroup.controls[et].value;lt.de=Et,this.data.entityFormHandler.formGroup.controls[et].setValue(lt)}else this.data.entityFormHandler.formGroup.controls[et].setValue(Et);return!0}return!1}if(this.data.promptConverter.promptType===this.AI_PROMPT_TYPE_EXTRACTION&&this.data.promptConverter.promptForMetainfo){const lt=this.data.entityFormHandler.formGroup.get("metainfos").controls.find(Vt=>Vt.get("moduleId").value===this.data.promptConverter.promptForMetainfo);if(lt){const r=lt.get(this.data.promptConverter.promptForModuleKey).get(et);return r.markAsDirty(),r.setValue(Et.map(Z=>Z.id)),!0}}}getCurrentFormHandlerEntity(){const et={};return et[this.data.entityType]=this.data.entityFormHandler.getBaseObjectCopyWithCurrentFormValues(),et}getResults(){return this.data.promptConverter.promptForFields}getDialogResult(){let et=!1;for(const Et of this.data.promptConverter.promptForFields)this.writeResultToFormHandler(Et)&&(et=!0);return et}getCurrentValueObjects(et){const Et=this.data.entityFormHandler.getFormModel();if(console.log("currentAddressbaseFormModel",Et),this.data.promptConverter.promptForMetainfo){const lt=Et.metainfos.find(Vt=>(0,H.U)(Vt,this.data.promptConverter.promptForModuleKey));return this.getDataObjectsFromIds(this.data.promptConverter.promptForEntityType,lt[this.data.promptConverter.promptForModuleKey][et])}return this.getDataObjectsFromIds(this.data.promptConverter.promptForEntityType,Et[et].value)}getDataObjectsFromIds(et,Et){return(0,l.D)(Et).pipe((0,t.zg)(lt=>this.entitiesMgrService.getEntityWithIdOfType(et,lt)),function b(){return function u(Ue,We){return arguments.length>=2?function(Et){return(0,x.z)((0,p.R)(Ue,We),(0,c.h)(1),(0,o.d)(We))(Et)}:function(Et){return(0,x.z)((0,p.R)((lt,Vt,r)=>Ue(lt,Vt,r+1)),(0,c.h)(1))(Et)}}(m,[])}())}generateValueFromPrompt(){this.isGenerating=!0,this.data.promptConverter.promptType===this.AI_PROMPT_TYPE_TEXT_GENERATION?this.dataAccess.generateFromPrompt(this.data.entityType,this.getCurrentFormHandlerEntity(),"de",this.data.promptConverter.name,this.aiGenerateTextFormGroup.controls.selectedProductlineIds.value).pipe((0,i.q)(1),(0,I.x)(()=>{this.isGenerating=!1})).subscribe(et=>{this.resultFormGroup.setValue(et)}):this.data.promptConverter.promptType===this.AI_PROMPT_TYPE_EXTRACTION&&this.dataAccess.extractFromPrompt(this.data.entityType,this.getCurrentFormHandlerEntity(),"de",this.data.promptConverter.name,this.aiGenerateTextFormGroup.controls.selectedProductlineIds.value).pipe((0,i.q)(1),(0,I.x)(()=>{this.isGenerating=!1})).subscribe(et=>{for(const Et of this.data.promptConverter.promptForFields)this.getDataObjectsFromIds(this.data.promptConverter.promptForEntityType,et[Et]).subscribe(lt=>{this.resultFormGroup.controls[Et].setValue(lt)}),this.getCurrentValueObjects(Et).subscribe(lt=>{this.currentValueExtractions=lt})})}initAddressbaseSelectOptions(){for(const et of this.moduleCheckboxes)this.isProductlineAssigned(parseInt(String(et.value),10))&&this.selectableModuleCheckboxes.push(et)}isProductlineAssigned(et){return"Event"!==this.data.entityType&&this.data.entityFormHandler.getFormModel().productlineIds.some(lt=>lt===et)}static#e=this.\u0275fac=function(Et){return new(Et||Ue)(P.Y36(O.nq),P.Y36(s.qB),P.Y36(n.WI))};static#t=this.\u0275cmp=P.Xpm({type:Ue,selectors:[["ng-component"]],decls:19,vars:14,consts:[[3,"heading","icon","submitButtonDisabled","getSubmitResult"],[2,"width","700px"],[3,"formControl","label","disableControl","disabled","required"],[4,"ngIf"],[1,"dialog-prompt-actions"],[1,"imx-button","prio2",3,"click"],["class","imx-button prio2",3,"click",4,"ngIf"],[1,"dialog-prompt-select-pls",3,"formGroup"],["formControlName","selectedProductlineIds","mode","block",3,"checkboxes"],[1,"dialog-prompt-generating"],["mode","indeterminate"],[4,"ngFor","ngForOf"],[3,"formControl","label","required"],[1,"ai-gen-original-text"],[3,"innerHTML"]],template:function(Et,lt){1&Et&&(P.TgZ(0,"imx-dialog",0),P._UZ(1,"div",1)(2,"imx-base-multi-input",2)(3,"br")(4,"br"),P.YNc(5,Y,6,2,"ng-container",3),P.TgZ(6,"div",4)(7,"div")(8,"button",5),P.NdJ("click",function(){return lt.generatePrompt()}),P._uU(9,"Prompt aktualisieren"),P.qZA()()(),P._UZ(10,"br"),P.TgZ(11,"div",4)(12,"div"),P.YNc(13,K,2,0,"button",6)(14,ne,2,0,"button",6),P.qZA()(),P._UZ(15,"br")(16,"br"),P.YNc(17,ee,10,0,"ng-container",3)(18,Te,2,1,"ng-container",3),P.qZA()),2&Et&&(P.Q6J("heading",lt.data.title)("icon",lt.data.iconClass)("submitButtonDisabled",lt.resultFormGroup.invalid)("getSubmitResult",lt.getDialogResult.bind(lt)),P.xp6(2),P.Q6J("formControl",lt.aiGenerateTextFormGroup.controls.prompt)("label","Prompt")("disableControl",!0)("disabled",!0)("required",!1),P.xp6(3),P.Q6J("ngIf","Addressbase"===lt.data.entityType&&lt.selectableModuleCheckboxes.length>0),P.xp6(8),P.Q6J("ngIf",lt.data.promptConverter.promptType===lt.AI_PROMPT_TYPE_TEXT_GENERATION),P.xp6(),P.Q6J("ngIf",lt.data.promptConverter.promptType===lt.AI_PROMPT_TYPE_EXTRACTION),P.xp6(3),P.Q6J("ngIf",lt.isGenerating),P.xp6(),P.Q6J("ngIf",!lt.isGenerating))},dependencies:[G.sg,G.O5,e.JJ,e.JL,e.Q7,B.pW,e.oH,e.sg,e.u,ae.N,J.x,q.a,j.j],styles:[".ai-gen-original-text[_ngcontent-%COMP%]{margin-top:8px}.ai-gen-original-text[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#a9a9a9}.dialog-prompt-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.dialog-prompt-select-pls[_ngcontent-%COMP%]{margin-top:10px}.dialog-prompt-generating[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%}"]})}return Ue})()},75678:(gt,X,a)=>{"use strict";a.d(X,{$:()=>i});var e=a(17700),n=a(19212),s=a(33946),l=a(71365);let i=(()=>{class t{constructor(c){this.data=c}static#e=this.\u0275fac=function(o){return new(o||t)(n.Y36(e.WI))};static#t=this.\u0275cmp=n.Xpm({type:t,selectors:[["ng-component"]],decls:5,vars:10,consts:[[3,"heading","icon","submitButtonLabel","cancelButtonLabel"],[1,"dialog-txt-md",3,"innerHTML"]],template:function(o,x){1&o&&(n.TgZ(0,"imx-dialog",0),n._UZ(1,"p",1),n.ALo(2,"translate"),n._UZ(3,"p",1),n.ALo(4,"translate"),n.qZA()),2&o&&(n.Q6J("heading",x.data.title)("icon",x.data.iconClass)("submitButtonLabel",x.data.confirmButtonKey?x.data.confirmButtonKey:"imxplatform.dialog.common-confirm")("cancelButtonLabel",x.data.cancelButtonKey?x.data.cancelButtonKey:"imxplatform.dialog.common-abort"),n.xp6(),n.Q6J("innerHTML",n.lcZ(2,6,x.data.text),n.oJD),n.xp6(2),n.Q6J("innerHTML",n.lcZ(4,8,x.data.subtext),n.oJD))},dependencies:[s.a,l.X$],encapsulation:2})}return t})()},75789:(gt,X,a)=>{"use strict";a.d(X,{a:()=>u});var e=a(17700),n=a(51418),s=a(96124),l=a(22819),i=a(59143),t=a(19212),p=a(71365),c=a(33946),o=a(88535);const x=(m,b)=>({id:m,entityType:b});let u=(()=>{class m{constructor(I,H,O,P){this.data=I,this.dataAccess=H,this.translateService=O,this.userMessageService=P}ngOnInit(){this.loadReferences()}loadReferences(){this.referenceSpecification$=this.dataAccess.getReferenceSpecification(this.data.entityType,this.data.entityId,{},this.userMessageService).pipe((0,n.q)(1),(0,s.U)(I=>I))}getNoReferencesInfoTextKey(){return"imxplatform.common-entity.list.action.references.no-data"}getSubHeaderKey(){return"imxplatform.common-entity.list.action.references.sub-header-text"}getLabelForEntityType(I){return this.translateService.instant("entity."+I+".entityName")}static#e=this.\u0275fac=function(H){return new(H||m)(t.Y36(e.WI),t.Y36(l.nq),t.Y36(p.sK),t.Y36(i.Y))};static#t=this.\u0275cmp=t.Xpm({type:m,selectors:[["ng-component"]],decls:3,vars:12,consts:[["icon","icon-link","dialogType","form",3,"heading","submitButtonLabel","cancelButtonLabel"],[3,"referenceSpecification$","referencesSubHeaderText","noReferencesInfoText"]],template:function(H,O){1&H&&(t.TgZ(0,"imx-dialog",0),t._UZ(1,"imx-data-object-references",1),t.ALo(2,"translate"),t.qZA()),2&H&&(t.s9C("cancelButtonLabel","imxplatform.common-entity.list.action.history.cancel"),t.Q6J("heading",O.data.headerKey)("submitButtonLabel",void 0),t.xp6(),t.Q6J("referenceSpecification$",O.referenceSpecification$)("referencesSubHeaderText",t.xi3(2,6,O.getSubHeaderKey(),t.WLB(9,x,O.data.entityId,O.getLabelForEntityType(O.data.entityType))))("noReferencesInfoText",O.getNoReferencesInfoTextKey()))},dependencies:[c.a,o.AF,p.X$],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}.no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}"]})}return m})()},49032:(gt,X,a)=>{"use strict";a.d(X,{E:()=>Xt});var e=a(56223),n=a(17700),s=a(25313),l=a(64022),i=a(39693),t=a(22819),p=a(48485),c=a(1823),o=a(19212),x=a(96814),u=a(75986),m=a(2032),b=a(64170),I=a(71365),H=a(33118),O=a(21473),P=a(49193),G=a(53075),B=a(96124),ae=a(67276),J=a(30461),q=a(87466),j=a(67338),Y=a(24525);function K(Je,dt){1&Je&&(o.ynx(0),o._uU(1," *"),o.BQk())}function ne(Je,dt){if(1&Je){const Ie=o.EpF();o.TgZ(0,"div",12),o.NdJ("click",function(){const tn=o.CHM(Ie).$implicit,yi=o.oxw(4);return o.KtG(yi.selectItem(tn))}),o.TgZ(1,"div",13),o._UZ(2,"span"),o.YNc(3,K,2,0,"ng-container",14),o.qZA(),o.TgZ(4,"div",15)(5,"div",16),o._uU(6),o.qZA()()()}if(2&Je){const Ie=dt.$implicit,ot=dt.index,ct=o.oxw(4);o.ekj("first",0===ot)("navigation-action-item--modified",Ie.modified)("navigation-action-item--selected",ct.isSelected(Ie)),o.xp6(2),o.Gre("icon icon-",Ie.icon,""),o.xp6(),o.Q6J("ngIf",Ie.modified),o.xp6(3),o.Oqu(Ie.label)}}function ee(Je,dt){if(1&Je&&(o.ynx(0),o.YNc(1,ne,7,11,"div",11),o.BQk()),2&Je){const Ie=o.oxw().ngIf;o.xp6(),o.Q6J("ngForOf",Ie)}}function $(Je,dt){if(1&Je&&(o.ynx(0),o.YNc(1,ee,2,1,"ng-container",9),o.BQk()),2&Je){const Ie=dt.ngIf;o.oxw();const ot=o.MAs(6);o.xp6(),o.Q6J("ngIf",Ie.length>0)("ngIfElse",ot)}}function ue(Je,dt){1&Je&&(o.TgZ(0,"div",17),o._uU(1,"imxplatform.common.no-records"),o.qZA())}const ge=()=>({width:"100%",height:"100%"});function Ke(Je,dt){if(1&Je&&(o.TgZ(0,"div",7)(1,"div",8)(2,"p-scrollPanel"),o.YNc(3,$,2,2,"ng-container",9),o.ALo(4,"async"),o.YNc(5,ue,2,0,"ng-template",null,10,o.W1O),o.qZA()()()),2&Je){const Ie=o.MAs(6),ot=o.oxw();o.xp6(2),o.Akn(o.DdM(6,ge)),o.xp6(),o.Q6J("ngIf",o.lcZ(4,4,ot.objectHistory$))("ngIfElse",Ie)}}function at(Je,dt){if(1&Je&&(o.TgZ(0,"div",18),o._UZ(1,"imx-core-entity-autocomplete",19),o.qZA()),2&Je){const Ie=o.oxw();o.xp6(),o.Q6J("autocompleteCtrl",Ie.autocompleteControl)("entityTypeControl",Ie.entityTypeControl)("coreEntities",Ie.entityTypeOptions$)("formGroup",Ie.formGroup)}}function Le(Je,dt){1&Je&&(o.TgZ(0,"mat-error",20),o._uU(1," imxplatform.common-entity.edit.validation.objectNotChangeable\n"),o.qZA())}let R=(()=>{class Je{constructor(Ie,ot,ct){this.entityListsDataAccessService=Ie,this.optionProviderService=ot,this.entityPermissionServiceRegistry=ct,this.header="",this.selectLeadingObject=new o.vpe,this.objectSelectionControl=new e.p4("",e.kI.required,function Te(Je){return dt=>{const{id:Ie,type:ot}=dt.value,ct=Je.getEntityPermissionService(ot);if(ct)return Ie?ct.calcSavePermissionById(Ie).pipe((0,B.U)(tn=>tn?null:{objectNotChangeable:!0})):(0,P.of)(null);console.error("No PermissionService for "+ot)}}(ct)),this.sourceControl=new e.p4("showObjectHistory"),this.initEntityTypeOptions(),this.entityTypeControl=new e.p4(""),this.entityTypeControl.setValue(-1),this.autocompleteControl=new e.p4(""),this.formGroup=new e.nJ({objectSelectionControl:this.objectSelectionControl,sourceControl:this.sourceControl,entityTypeControl:this.entityTypeControl}),this.entityListsDataAccessService.forceReload(),this.objectHistory$=this.entityListsDataAccessService.objectHistory$(),this.entityTypeControl.valueChanges.subscribe(tn=>{this.objectSelectionControl.setValue(void 0,{emitEvent:!1})}),this.autocompleteControl.valueChanges.subscribe(tn=>{this.objectSelectionControl.setValue({id:tn,type:this.entityTypeControl.value,link:(0,O.DV)(this.entityTypeControl.value,tn)})}),this.sourceControl.valueChanges.subscribe(tn=>{this.objectSelectionControl.setValue(void 0,{emitEvent:!1}),this.entityTypeControl.setValue(-1,{emitEvent:!1}),this.autocompleteControl.setValue(void 0,{emitEvent:!1}),this.selectedObject=void 0}),this.objectSelectionControl.valueChanges.subscribe(tn=>this.selectLeadingObject.emit(tn))}selectItem(Ie){this.selectedObject=Ie,this.objectSelectionControl.setValue({id:Ie.entity.id,type:Ie.entity.dataObject._entityType,link:Ie.link})}isSelected(Ie){return!!this.selectedObject&&this.selectedObject.entity.id===Ie.entity.id&&this.selectedObject.entity.dataObject._entityType===Ie.entity.dataObject._entityType}hasObjectNotChangeableError(){return this.objectSelectionControl.errors&&void 0!==this.objectSelectionControl.errors.objectNotChangeable}initEntityTypeOptions(){this.entityTypeOptions$=this.optionProviderService.getOptions(void 0,void 0),this.entityTypeOptions$=this.entityTypeOptions$.pipe((0,G.O)([]),(0,B.U)(Ie=>[{value:ae.F,label:"imxplatform.common.select-placeholder-demand"},...Ie]))}static#e=this.\u0275fac=function(ot){return new(ot||Je)(o.Y36(i.$),o.Y36(J.h),o.Y36(p.J))};static#t=this.\u0275cmp=o.Xpm({type:Je,selectors:[["imx-core-data-object-selection"]],inputs:{header:"header"},outputs:{selectLeadingObject:"selectLeadingObject"},decls:13,vars:13,consts:[[1,"row"],["for","object-source","translate",""],["id","object-source",1,"small",3,"formControl"],[3,"value"],["class","object-history row",4,"ngIf"],["class","object-search row",4,"ngIf"],["translate","",4,"ngIf"],[1,"object-history","row"],[1,"scroll-wrapper"],[4,"ngIf","ngIfElse"],["noItems",""],["class","navigation-action-item",3,"first","navigation-action-item--modified","navigation-action-item--selected","click",4,"ngFor","ngForOf"],[1,"navigation-action-item",3,"click"],[1,"icon-wrapper"],[4,"ngIf"],[1,"label"],["translate","",1,"txt-ellipsis"],["translate","",1,"label"],[1,"object-search","row"],[3,"autocompleteCtrl","entityTypeControl","coreEntities","formGroup"],["translate",""]],template:function(ot,ct){1&ot&&(o.TgZ(0,"div",0)(1,"label",1),o._uU(2),o.qZA(),o.TgZ(3,"mat-radio-group",2)(4,"mat-radio-button",3),o._uU(5),o.ALo(6,"translate"),o.qZA(),o.TgZ(7,"mat-radio-button",3),o._uU(8),o.ALo(9,"translate"),o.qZA()()(),o.YNc(10,Ke,7,7,"div",4)(11,at,2,4,"div",5)(12,Le,2,0,"mat-error",6)),2&ot&&(o.xp6(2),o.Oqu(ct.header),o.xp6(),o.Q6J("formControl",ct.sourceControl),o.xp6(),o.Q6J("value","showObjectHistory"),o.xp6(),o.hij(" ",o.lcZ(6,9,"imxplatform.entity-list.contact-list.create-dialog.showObjectHistory")," "),o.xp6(2),o.Q6J("value","showAutoComplete"),o.xp6(),o.hij(" ",o.lcZ(9,11,"imxplatform.entity-list.contact-list.create-dialog.showAutoComplete")," "),o.xp6(2),o.Q6J("ngIf","showObjectHistory"===ct.sourceControl.value),o.xp6(),o.Q6J("ngIf","showAutoComplete"===ct.sourceControl.value),o.xp6(),o.Q6J("ngIf",ct.hasObjectNotChangeableError()))},dependencies:[x.sg,x.O5,e.JJ,e.JL,b.TO,q.VQ,q.U0,e.oH,e.sg,I.Pi,j.P,Y.k,x.Ov,I.X$],styles:[".navigation-header[_ngcontent-%COMP%]{width:100%;height:85px;display:flex;flex-direction:column;align-items:center}.navigation-header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-top:20px;height:32px}.navigation-wrapper[_ngcontent-%COMP%]{position:relative;background-color:#e6e9ef;font-size:15px;min-height:100%}.navigation-wrapper[_ngcontent-%COMP%]   .navigation-about-link[_ngcontent-%COMP%]{position:absolute;bottom:10px;text-align:center;width:100%;font-size:12px}.navigation-action-item[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;overflow:hidden;text-decoration:none;height:50px;padding-right:20px}.navigation-action-item[_ngcontent-%COMP%]   .icon-wrapper[_ngcontent-%COMP%]{min-width:min(20%,60px);display:flex;align-items:center;justify-content:center}.navigation-action-item[_ngcontent-%COMP%]   .icon-wrapper[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:25px;max-width:25px}.navigation-action-item[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{overflow:hidden;position:relative}.navigation-action-item.disabled[_ngcontent-%COMP%]{cursor:default;color:#ced4e0}.navigation-action-item.open[_ngcontent-%COMP%]{background-color:#fff}.navigation-sub-item-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;font-size:14px}.navigation-sub-item-wrapper[_ngcontent-%COMP%]   .navigation-action-item[_ngcontent-%COMP%]{padding-left:min(7%,35px)}.navigation-sub-item-wrapper[_ngcontent-%COMP%]   .navigation-action-item[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:20px;max-width:20px}.navigation-sub-item-wrapper.open[_ngcontent-%COMP%]   .navigation-action-item[_ngcontent-%COMP%]{background-color:#ffffff80}.navigation-item-wrapper[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #ced4e0}.row[_ngcontent-%COMP%]{margin-bottom:10px}[_nghost-%COMP%]     .mat-mdc-radio-group{display:flex;flex-direction:row}.object-history[_ngcontent-%COMP%]   .scroll-wrapper[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ced4e0;border-radius:3px;height:200px;width:450px;margin:5px 0}.object-search[_ngcontent-%COMP%]{padding:10px;margin:5px 0;border:1px solid #ced4e0;border-radius:3px;height:200px;width:420px}.navigation-action-item[_ngcontent-%COMP%]{height:35px;padding-right:unset}.navigation-action-item[_ngcontent-%COMP%]   .icon-wrapper[_ngcontent-%COMP%]{min-width:40px}.navigation-action-item[_ngcontent-%COMP%]   .icon-wrapper[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:20px;max-width:20px}.navigation-action-item[_ngcontent-%COMP%]:hover{cursor:pointer}.navigation-action-item--selected[_ngcontent-%COMP%]{background-color:#e6e9ef}"]})}return Je})();var me=a(33946),Se=a(38888),Ue=a(1614);const We=["dialogFrame"];function et(Je,dt){1&Je&&(o.TgZ(0,"mat-hint",17),o._uU(1," imxplatform.entity-list.contact-list.create-dialog.name-hint "),o.qZA())}function Et(Je,dt){if(1&Je&&(o.TgZ(0,"div")(1,"mat-form-field",12)(2,"label",13),o._uU(3,"imxplatform.entity-list.contact-list.create-dialog.name"),o.qZA(),o.TgZ(4,"div",14),o._UZ(5,"input",15),o.qZA(),o.YNc(6,et,2,0,"mat-hint",16),o.qZA()()),2&Je){const Ie=o.oxw(2);o.xp6(),o.Q6J("formGroup",Ie.formGroup),o.xp6(5),o.Q6J("ngIf",!Ie.listNameControl.valid)}}function lt(Je,dt){1&Je&&(o.TgZ(0,"p",21),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&Je&&(o.xp6(),o.Oqu(o.lcZ(2,1,"imxplatform.common.no-records")))}function Vt(Je,dt){1&Je&&o._UZ(0,"tr",29)}const r=Je=>({contactlist__selected:Je});function Z(Je,dt){if(1&Je){const Ie=o.EpF();o.TgZ(0,"tr",30),o.NdJ("click",function(){const tn=o.CHM(Ie).$implicit,yi=o.oxw(4);return o.KtG(yi.selectContactList(tn))}),o.qZA()}if(2&Je){const Ie=dt.$implicit,ot=o.oxw(4);o.Q6J("ngClass",o.VKq(1,r,ot.selectedContactListId===Ie.contactList.id))}}function Pt(Je,dt){1&Je&&(o.TgZ(0,"th",31),o._uU(1,"entity.EntityList.name"),o.qZA())}function Oe(Je,dt){if(1&Je&&(o.TgZ(0,"td",32)(1,"span"),o._uU(2),o.qZA()()),2&Je){const Ie=dt.$implicit;o.xp6(2),o.hij(" ",Ie.contactList.name,"")}}function ye(Je,dt){1&Je&&(o.TgZ(0,"th",31),o._uU(1,"entity.ContactPurpose.entityName"),o.qZA())}function ve(Je,dt){if(1&Je&&(o.TgZ(0,"td",32)(1,"span"),o._uU(2),o.ALo(3,"readI18n"),o.qZA()()),2&Je){const Ie=dt.$implicit;o.xp6(2),o.hij(" ",o.lcZ(3,1,null==Ie.contactPurpose?null:Ie.contactPurpose.i18nName),"")}}function ft(Je,dt){if(1&Je&&(o.TgZ(0,"table",22),o.YNc(1,Vt,1,0,"tr",23)(2,Z,1,3,"tr",24),o.ynx(3,25),o.YNc(4,Pt,2,0,"th",26)(5,Oe,3,1,"td",27),o.BQk(),o.ynx(6,28),o.YNc(7,ye,2,0,"th",26)(8,ve,4,3,"td",27),o.BQk(),o.qZA()),2&Je){const Ie=o.oxw(3);o.Q6J("dataSource",Ie.dataSource),o.xp6(),o.Q6J("matHeaderRowDef",Ie.columns),o.xp6(),o.Q6J("matRowDefColumns",Ie.columns)}}function Dt(Je,dt){if(1&Je&&(o.TgZ(0,"div",18),o.YNc(1,lt,3,3,"ng-template",null,19,o.W1O)(3,ft,9,3,"table",20),o.qZA()),2&Je){const Ie=o.MAs(2),ot=o.oxw(2);o.xp6(3),o.Q6J("ngIf",ot.dataSource&&ot.dataSource.data.length>0)("ngIfElse",Ie)}}function Rn(Je,dt){if(1&Je&&(o.TgZ(0,"div",8)(1,"div"),o._UZ(2,"imx-base-radio-button-group",9),o.qZA(),o.YNc(3,Et,7,2,"div",10)(4,Dt,4,2,"div",11),o.qZA()),2&Je){const Ie=o.oxw();o.xp6(2),o.Q6J("options",Ie.actionControlOptions),o.xp6(),o.Q6J("ngIf","newList"===Ie.actionControl.value),o.xp6(),o.Q6J("ngIf","updateList"===Ie.actionControl.value)}}function ti(Je,dt){if(1&Je&&(o.TgZ(0,"div",4)(1,"label",33),o._uU(2,"imxplatform.entity-list.search-list.create-dialog.relativeDate"),o.qZA(),o.TgZ(3,"div")(4,"mat-checkbox",34),o._uU(5),o.ALo(6,"translate"),o.qZA()()()),2&Je){const Ie=o.oxw();o.xp6(4),o.Q6J("formControl",Ie.relativeDateSelectControl),o.xp6(),o.hij("",o.lcZ(6,2,"imxplatform.common-entity.filter.create-search-list-relative")," ")}}let Xt=(()=>{class Je{constructor(Ie,ot,ct,tn,yi){this.entityListsDataAccessService=Ie,this.coreEntityService=ot,this.platformDataAccessService=ct,this.entityPermissionServiceRegistry=tn,this.data=yi,this.actionControlOptions=[{value:"updateList",label:"imxplatform.entity-list.contact-list.create-dialog.updateList"},{value:"newList",label:"imxplatform.entity-list.contact-list.create-dialog.newList"}],this.filterContainsDates=!1,this.contactLists=[],this.columns=["contactList.name","contactPurpose.i18nName"],this.selectedContactListId=void 0,this.hasObjectEditPermission=!0,this.listNameControl=new e.NI("",e.kI.required),this.relativeDateSelectControl=new e.NI(!1),this.actionControl=new e.NI("updateList"),this.formGroup=new e.nJ({listNameControl:this.listNameControl,relativeDateSelectControl:this.relativeDateSelectControl,actionControl:this.actionControl}),this.entityListsDataAccessService.forceReload(),this.objectHistory$=this.entityListsDataAccessService.objectHistory$(),this.filterContainsDates=(0,c.Q2)(this.data.filterFormHandler)}selectLeadingObject(Ie){if(this.selectedLeadingObject=Ie,this.selectedLeadingObject){this.checkObjectPermission(Ie);const ot=this.coreEntityService.getCoreEntityDefByString(Ie.type);this.platformDataAccessService.getCoreDataObjectById(Ie.id,ot).subscribe(ct=>{this.contactLists=ct.contactLists,this.dataSource=new s.by(this.contactLists)})}}handleSubmit(){this.formGroup.valid&&this.dialogFrame.handleConfirm()}getDialogResult(){return this.data.useRelativeDate=this.relativeDateSelectControl.value,!0===this.data.useRelativeDate&&(this.data.relativeDateParams=(0,c.gk)(this.data.filterFormHandler)),"updateList"===this.actionControl.value?this.data.existingContactListId=this.selectedContactListId:this.data.searchListName=this.listNameControl.value,this.data.referenceOwner=this.selectedLeadingObject,this.data}selectContactList(Ie){this.selectedContactListId=Ie.contactList.id}isFormValid(){return"updateList"===this.actionControl.value?void 0!==this.selectedContactListId:this.listNameControl.valid}checkObjectPermission(Ie){const ot=this.entityPermissionServiceRegistry.getEntityPermissionService(Ie.type);if(!ot)throw new Error("no permission service found for entity type "+Ie.type);ot.calcSavePermissionById(Ie.id).subscribe(ct=>{this.hasObjectEditPermission=ct,ct?this.actionControl.enable({onlySelf:!0,emitEvent:!1}):this.actionControl.disable({onlySelf:!0,emitEvent:!1})})}static#e=this.\u0275fac=function(ot){return new(ot||Je)(o.Y36(i.$),o.Y36(l.dE),o.Y36(t.nq),o.Y36(p.J),o.Y36(n.WI))};static#t=this.\u0275cmp=o.Xpm({type:Je,selectors:[["ng-component"]],viewQuery:function(ot,ct){if(1&ot&&o.Gf(We,7),2&ot){let tn;o.iGM(tn=o.CRH())&&(ct.dialogFrame=tn.first)}},decls:8,vars:6,consts:[["heading","imxplatform.entity-list.contact-list.create-dialog.header","icon","icon-reference-list","submitButtonLabel","imxplatform.entity-list.contact-list.create-dialog.confirm",3,"submitButtonDisabled","getSubmitResult"],["dialogFrame",""],["id","create-contact-list",3,"formGroup","submit"],[1,"dialog-form"],[1,"dialog-form-group"],[3,"header","selectLeadingObject"],["class","dialog-form-group contact-list-group",4,"ngIf"],["class","dialog-form-group",4,"ngIf"],[1,"dialog-form-group","contact-list-group"],["formControlName","actionControl","mode","block",3,"options"],[4,"ngIf"],["class","contact-list-table",4,"ngIf"],[3,"formGroup"],["for","contactListName","translate",""],[1,"input-wrapper"],["matInput","","id","contactListName","type","text","formControlName","listNameControl"],["translate","",4,"ngIf"],["translate",""],[1,"contact-list-table"],["noRecord",""],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","clickable",3,"ngClass","click",4,"matRowDef","matRowDefColumns"],["matColumnDef","contactList.name"],["mat-header-cell","","translate","",4,"matHeaderCellDef"],["mat-cell","","class","txt-ellipsis",4,"matCellDef"],["matColumnDef","contactPurpose.i18nName"],["mat-header-row",""],["mat-row","",1,"clickable",3,"ngClass","click"],["mat-header-cell","","translate",""],["mat-cell","",1,"txt-ellipsis"],["for","relativeDate","translate",""],["id","relativeDate","name","relativeDate",3,"formControl"]],template:function(ot,ct){1&ot&&(o.TgZ(0,"imx-dialog",0,1)(2,"form",2),o.NdJ("submit",function(){return ct.handleSubmit()}),o.TgZ(3,"div",3)(4,"div",4)(5,"imx-core-data-object-selection",5),o.NdJ("selectLeadingObject",function(yi){return ct.selectLeadingObject(yi)}),o.qZA()(),o.YNc(6,Rn,5,3,"div",6)(7,ti,7,4,"div",7),o.qZA()()()),2&ot&&(o.Q6J("submitButtonDisabled",!ct.isFormValid())("getSubmitResult",ct.getDialogResult.bind(ct)),o.xp6(2),o.Q6J("formGroup",ct.formGroup),o.xp6(3),o.Q6J("header","imxplatform.entity-list.contact-list.create-dialog.object-selection-hint"),o.xp6(),o.Q6J("ngIf",ct.selectedLeadingObject),o.xp6(),o.Q6J("ngIf",ct.filterContainsDates&&ct.selectedLeadingObject))},dependencies:[x.mk,x.O5,e._Y,e.Fj,e.JJ,e.JL,u.oG,m.Nt,b.KE,b.bx,s.BZ,s.fO,s.as,s.w1,s.Dz,s.nj,s.ge,s.ev,s.XQ,s.Gk,e.oH,e.sg,e.u,I.Pi,H.q,R,me.a,Se.u,I.X$,Ue.j],styles:[".dialog-form[_ngcontent-%COMP%]{height:500px}.contact-list-group[_ngcontent-%COMP%]{min-height:200px}.contact-list-group[_ngcontent-%COMP%]   .contact-list-table[_ngcontent-%COMP%]{width:450px;overflow:hidden}table[_ngcontent-%COMP%]{width:100%}table.mat-mdc-table[_ngcontent-%COMP%]{table-layout:fixed}.row[_ngcontent-%COMP%]{margin-bottom:10px}.clickable[_ngcontent-%COMP%]{cursor:pointer}.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.contactlist__selected[_ngcontent-%COMP%]{background-color:#e6e9ef!important}[_nghost-%COMP%]     .mat-mdc-radio-group{display:flex;flex-direction:row}[_nghost-%COMP%]     .mat-mdc-header-row{height:28px}[_nghost-%COMP%]     .mat-mdc-row{height:28px;background-color:#fff}[_nghost-%COMP%]     .mat-mdc-cell{cursor:pointer;border-left:1px dashed #ced4e0;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0}"]})}return Je})()},94699:(gt,X,a)=>{"use strict";a.d(X,{$:()=>o});var e=a(56223),n=a(19212),s=a(2032),l=a(64170),i=a(71365),t=a(33946),p=a(38888);const c=["dialogFrame"];let o=(()=>{class x{constructor(){this.widgetNameControl=new e.p4("",e.kI.required),this.formGroup=new e.nJ({widgetNameControl:this.widgetNameControl})}handleSubmit(){this.formGroup.valid&&this.dialogFrame.handleConfirm()}getDialogResult(){return this.widgetNameControl.value}static#e=this.\u0275fac=function(b){return new(b||x)};static#t=this.\u0275cmp=n.Xpm({type:x,selectors:[["ng-component"]],viewQuery:function(b,I){if(1&b&&n.Gf(c,7),2&b){let H;n.iGM(H=n.CRH())&&(I.dialogFrame=H.first)}},decls:9,vars:4,consts:[["heading","imxplatform.dashboard.create-widget-dialog.header","icon","icon-home","submitButtonLabel","imxplatform.dashboard.create-widget-dialog.confirm",3,"submitButtonDisabled","getSubmitResult"],["dialogFrame",""],["id","create-widget",3,"formGroup","submit"],[1,"dialog-form"],[3,"formGroup"],["for","widgetName","translate",""],[1,"input-wrapper"],["matInput","","id","widgetName","type","text","formControlName","widgetNameControl"]],template:function(b,I){1&b&&(n.TgZ(0,"imx-dialog",0,1)(2,"form",2),n.NdJ("submit",function(){return I.handleSubmit()}),n.TgZ(3,"div",3)(4,"mat-form-field",4)(5,"label",5),n._uU(6,"imxplatform.entity-list.search-list.create-dialog.name"),n.qZA(),n.TgZ(7,"div",6),n._UZ(8,"input",7),n.qZA()()()()()),2&b&&(n.Q6J("submitButtonDisabled",I.formGroup.invalid)("getSubmitResult",I.getDialogResult.bind(I)),n.xp6(2),n.Q6J("formGroup",I.formGroup),n.xp6(2),n.Q6J("formGroup",I.formGroup))},dependencies:[e._Y,e.Fj,e.JJ,e.JL,s.Nt,l.KE,e.sg,e.u,i.Pi,t.a,p.u],encapsulation:2})}return x})()},21433:(gt,X,a)=>{"use strict";a.d(X,{M:()=>x});var e=a(56223),n=a(17700),s=a(19212),l=a(2032),i=a(64170),t=a(71365),p=a(33946),c=a(38888);const o=["dialogFrame"];let x=(()=>{class u{constructor(b){this.data=b,this.formGroup=new e.nJ({folderName:new e.p4("",[e.kI.required])})}ngOnInit(){this.formGroup.patchValue({folderName:this.data.folder})}handleSubmit(){this.formGroup.valid&&this.dialogFrame.handleConfirm()}getDialogResult(){return this.formGroup.get("folderName").value}static#e=this.\u0275fac=function(I){return new(I||u)(s.Y36(n.WI))};static#t=this.\u0275cmp=s.Xpm({type:u,selectors:[["ng-component"]],viewQuery:function(I,H){if(1&I&&s.Gf(o,7),2&I){let O;s.iGM(O=s.CRH())&&(H.dialogFrame=O.first)}},decls:11,vars:8,consts:[["icon","icon-folder",3,"heading","submitButtonLabel","submitButtonDisabled","getSubmitResult"],["dialogFrame",""],[1,"dialog-form",3,"formGroup","submit"],["for","folderName"],[1,"input-wrapper"],["matInput","","id","folderName","type","text","formControlName","folderName"],["translate","",1,"txt-grey"]],template:function(I,H){1&I&&(s.TgZ(0,"imx-dialog",0,1)(2,"form",2),s.NdJ("submit",function(){return H.handleSubmit()}),s.TgZ(3,"mat-form-field")(4,"label",3),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"div",4),s._UZ(8,"input",5),s.qZA()()(),s.TgZ(9,"p",6),s._uU(10,"imxplatform.media.list.action.rename-folder.hint"),s.qZA()()),2&I&&(s.Q6J("heading",H.data.dialogTitle)("submitButtonLabel",H.data.confirmButtonLabel)("submitButtonDisabled",H.formGroup.invalid||H.formGroup.pristine)("getSubmitResult",H.getDialogResult.bind(H)),s.xp6(2),s.Q6J("formGroup",H.formGroup),s.xp6(3),s.Oqu(s.lcZ(6,6,H.data.folderInputLabel)))},dependencies:[e._Y,e.Fj,e.JJ,e.JL,l.Nt,i.KE,e.sg,e.u,t.Pi,p.a,c.u,t.X$],styles:["p[_ngcontent-%COMP%]{margin-top:10px}"]})}return u})()},1823:(gt,X,a)=>{"use strict";a.d(X,{Q2:()=>G,gk:()=>B,oh:()=>P});var e=a(56223),n=a(17700),s=a(79309),l=a(96124),i=a(22819),t=a(62934),p=a(57462),c=a(19212),o=a(96814),x=a(75986),u=a(71365),m=a(54362),b=a(33946);const I=["dialogFrame"],H=()=>({"margin-top":"20px"});function O(ae,J){if(1&ae&&(c.TgZ(0,"div",7)(1,"label",8),c._uU(2,"imxplatform.entity-list.search-list.create-dialog.relativeDate"),c.qZA(),c.TgZ(3,"div")(4,"mat-checkbox",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()()),2&ae){const q=c.oxw();c.Q6J("ngStyle",c.DdM(5,H)),c.xp6(4),c.Q6J("formControl",q.relativeDateSelectControl),c.xp6(),c.Oqu(c.lcZ(6,3,"imxplatform.common-entity.filter.create-search-list-relative"))}}let P=(()=>{class ae{constructor(q,j){this.imxPlatformDataAccessService=q,this.data=j,this.filterContainsDates=!1,this.listNameControl=new e.p4("",e.kI.required),this.relativeDateSelectControl=new e.p4,this.formGroup=new e.nJ({listNameControl:this.listNameControl,relativeDateSelectControl:this.relativeDateSelectControl});const Y=this.imxPlatformDataAccessService.getEntityLists({paging:"ONE_PAGE"}).pipe((0,l.U)(K=>K.items),(0,l.U)(K=>K.filter(ne=>ne.listType.id===s.E6.SEARCH_LIST.id&&ne.entityType===j.entityType)));this.listNameControl.setAsyncValidators((0,p.wB)(Y)),this.filterContainsDates=G(this.data.filterFormHandler),this.data.proposal&&this.listNameControl.setValue(this.data.proposal)}handleSubmit(){this.formGroup.valid&&this.dialogFrame.handleConfirm()}getDialogResult(){return this.data.useRelativeDate=this.relativeDateSelectControl.value,!0===this.data.useRelativeDate&&(this.data.relativeDateParams=B(this.data.filterFormHandler)),this.data.searchListName=this.listNameControl.value,this.data}static#e=this.\u0275fac=function(j){return new(j||ae)(c.Y36(i.nq),c.Y36(n.WI))};static#t=this.\u0275cmp=c.Xpm({type:ae,selectors:[["ng-component"]],viewQuery:function(j,Y){if(1&j&&c.Gf(I,7),2&j){let K;c.iGM(K=c.CRH())&&(Y.dialogFrame=K.first)}},decls:8,vars:7,consts:[["heading","imxplatform.entity-list.search-list.create-dialog.header","icon","icon-star--new","submitButtonLabel","imxplatform.entity-list.search-list.create-dialog.confirm",3,"submitButtonDisabled","getSubmitResult"],["dialogFrame",""],["id","create-search-list",3,"formGroup","submit"],[1,"dialog-form"],["for","searchListName","translate",""],["id","searchListName",3,"formGroup","formControl","errors"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],["for","relativeDate","translate",""],["id","relativeDate","name","relativeDate",3,"formControl"]],template:function(j,Y){1&j&&(c.TgZ(0,"imx-dialog",0,1)(2,"form",2),c.NdJ("submit",function(){return Y.handleSubmit()}),c.TgZ(3,"div",3)(4,"label",4),c._uU(5,"imxplatform.entity-list.search-list.create-dialog.name"),c.qZA(),c._UZ(6,"imx-base-input",5),c.YNc(7,O,7,6,"div",6),c.qZA()()()),2&j&&(c.Q6J("submitButtonDisabled",Y.formGroup.invalid)("getSubmitResult",Y.getDialogResult.bind(Y)),c.xp6(2),c.Q6J("formGroup",Y.formGroup),c.xp6(4),c.Q6J("formGroup",Y.formGroup)("formControl",Y.listNameControl)("errors",Y.listNameControl.errors),c.xp6(),c.Q6J("ngIf",Y.filterContainsDates))},dependencies:[o.O5,o.PC,e._Y,e.JJ,e.JL,x.oG,e.oH,e.sg,u.Pi,m.H,b.a,u.X$],encapsulation:2})}return ae})();function G(ae){let J=!1;return ae.formConfiguration.fields.forEach(q=>{if(q instanceof t.o&&"date"===q.fieldValueType){const j=ae.formGroup.controls[q.id].value;j&&j.length>0&&(J=!0)}}),J}function B(ae){const J=new Map,q=new Date;return q.setHours(0,0,0,0),ae.formConfiguration.fields.forEach(j=>{if(j instanceof t.o&&"date"===j.fieldValueType){const Y=ae.formGroup.controls[j.id].value;if(Y&&Y.length>0){const ne=new Date(Y).getTime()-q.getTime(),ee=Math.round(ne/864e5);let $="";$=-1!==Math.sign(ee)?"+"+ee.toString():ee.toString();const ue=j.id+"=";J.set(ue+Y,ue+"TODAY"+$)}}}),J}},94541:(gt,X,a)=>{"use strict";a.d(X,{J:()=>I});var e=a(56223),n=a(17700),s=a(72079),l=a(23291),i=a(19352),t=a(96124),p=a(21473),c=a(8818),o=a(19212),x=a(10444),u=a(33946),m=a(96814),b=a(71365);let I=(()=>{class H{constructor(P,G,B){this.data=P,this.clientOptionProviderService=G,this.configurationProvider=B,this.destroy$=new s.xQ,this.formGroup=new e.nJ({}),this.selectedClientFormControl=new e.p4,this.formGroup.addControl("selectedClientId",this.selectedClientFormControl);const ae=this.configurationProvider.getString(p.x3.PLATFORM_WORKFLOW_DATAMANAGER_SELECTABLE_CLIENT_IDS,"").pipe((0,i.R)(this.destroy$)),J=G.getOptions(void 0,void 0).pipe((0,i.R)(this.destroy$));this.clients$=(0,l.aj)([ae,J]).pipe((0,t.U)(([q,j])=>{if(q&&q.length>0){const Y=q.split(",").map(Number);return j.filter(K=>Y.includes(K.value))}return j}))}ngOnInit(){this.data.entityClientId&&this.selectedClientFormControl.setValue(this.data.entityClientId)}getDialogResult(){return this.formGroup.value}valueSelected(){if(this.formGroup&&this.formGroup.selectedClientId)return-1!==this.formGroup.selectedClientId.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(G){return new(G||H)(o.Y36(n.WI),o.Y36(c.z),o.Y36(p.Pc))};static#t=this.\u0275cmp=o.Xpm({type:H,selectors:[["ng-component"]],decls:13,vars:14,consts:[["icon","icon-clients","dialogType","form",3,"heading","submitButtonLabel","submitButtonDisabled","getSubmitResult"],[1,"dialog-form",3,"formGroup"],["formControlName","selectedClientId",3,"options"]],template:function(G,B){1&G&&(o.TgZ(0,"imx-dialog",0)(1,"div",1)(2,"div")(3,"span"),o._uU(4),o.ALo(5,"translate"),o.qZA(),o._UZ(6,"br")(7,"br"),o.TgZ(8,"h3"),o._uU(9),o.ALo(10,"translate"),o.qZA(),o._UZ(11,"imx-base-select",2),o.ALo(12,"async"),o.qZA()()()),2&G&&(o.s9C("heading",B.data.headerKey),o.s9C("submitButtonLabel",B.data.submitKey),o.Q6J("submitButtonDisabled",B.valueSelected())("getSubmitResult",B.getDialogResult.bind(B)),o.xp6(),o.Q6J("formGroup",B.formGroup),o.xp6(3),o.Oqu(o.lcZ(5,8,B.data.textKey)),o.xp6(5),o.Oqu(o.lcZ(10,10,B.data.selectKey)),o.xp6(2),o.Q6J("options",o.lcZ(12,12,B.clients$)))},dependencies:[e.JJ,e.JL,e.sg,e.u,x.o,u.a,m.Ov,b.X$]})}return H})()},86313:(gt,X,a)=>{"use strict";a.d(X,{F:()=>u});var e=a(17700),n=a(19212),s=a(96814),l=a(33946),i=a(71365),t=a(1614);const p=(m,b)=>({title:m,id:b});function c(m,b){if(1&m&&(n._UZ(0,"p",2),n.ALo(1,"translate"),n.ALo(2,"readI18n")),2&m){const I=n.oxw();n.Q6J("innerHTML",n.xi3(1,1,I.data.i18n,n.WLB(6,p,n.lcZ(2,4,I.data.title),I.data.objectId)),n.oJD)}}const o=m=>({count:m});function x(m,b){if(1&m&&(n._UZ(0,"p",2),n.ALo(1,"translate")),2&m){const I=n.oxw();n.Q6J("innerHTML",n.xi3(1,1,I.data.i18n,n.VKq(4,o,I.data.count)),n.oJD)}}let u=(()=>{class m{constructor(I){this.data=I}static#e=this.\u0275fac=function(H){return new(H||m)(n.Y36(e.WI))};static#t=this.\u0275cmp=n.Xpm({type:m,selectors:[["ng-component"]],decls:3,vars:5,consts:[["cancelButtonLabel","imxplatform.dialog.delete-abort",3,"heading","submitButtonLabel","icon"],["class","dialog-txt-md",3,"innerHTML",4,"ngIf"],[1,"dialog-txt-md",3,"innerHTML"]],template:function(H,O){1&H&&(n.TgZ(0,"imx-dialog",0),n.YNc(1,c,3,9,"p",1)(2,x,2,6,"p",1),n.qZA()),2&H&&(n.Q6J("heading",O.data.dialogTitle||(O.data.count&&O.data.count>1?"imxplatform.dialog.delete-header-plural":"imxplatform.dialog.delete-header"))("submitButtonLabel",O.data.deleteButtonLabel||"imxplatform.dialog.delete-button")("icon",O.data.icon?O.data.icon:"icon-trash red"),n.xp6(),n.Q6J("ngIf",!O.data.batch),n.xp6(),n.Q6J("ngIf",O.data.batch))},dependencies:[s.O5,l.a,i.X$,t.j],encapsulation:2})}return m})()},33946:(gt,X,a)=>{"use strict";a.d(X,{D:()=>ae,a:()=>J});var e=a(19212),n=a(17700),s=a(96814),l=a(34423),i=a(71365);const t=["customButtonBar"];function p(q,j){if(1&q){const Y=e.EpF();e.TgZ(0,"div",11),e.NdJ("click",function(){e.CHM(Y);const ne=e.oxw();return e.KtG(ne.handleCancel())}),e._UZ(1,"span",12),e.qZA()}}function c(q,j){if(1&q&&(e.TgZ(0,"h1",17),e._uU(1),e.qZA()),2&q){const Y=e.oxw(2);e.xp6(),e.Oqu(Y.heading)}}function o(q,j){if(1&q&&(e.TgZ(0,"p",18),e._uU(1),e.qZA()),2&q){const Y=e.oxw(2);e.xp6(),e.Oqu(Y.subline)}}function x(q,j){if(1&q&&(e.TgZ(0,"div",13)(1,"div",14),e._UZ(2,"span",15),e.qZA(),e.TgZ(3,"div"),e.YNc(4,c,2,1,"h1",5)(5,o,2,1,"p",16),e.qZA()()),2&q){const Y=e.oxw();e.xp6(2),e.Q6J("ngClass",Y.icon),e.xp6(2),e.Q6J("ngIf",Y.heading),e.xp6(),e.Q6J("ngIf",Y.subline)}}function u(q,j){if(1&q&&(e.TgZ(0,"div",19),e._UZ(1,"span",15),e.qZA()),2&q){const Y=e.oxw();e.xp6(),e.Q6J("ngClass",Y.icon)}}function m(q,j){if(1&q&&(e.TgZ(0,"h1",17),e._uU(1),e.qZA()),2&q){const Y=e.oxw();e.xp6(),e.Oqu(Y.heading)}}function b(q,j){}function I(q,j){if(1&q){const Y=e.EpF();e.TgZ(0,"button",20),e.NdJ("click",function(){e.CHM(Y);const ne=e.oxw();return e.KtG(ne.handleConfirm())}),e._uU(1),e.qZA()}if(2&q){const Y=e.oxw();e.Q6J("disabled",Y.submitButtonDisabled),e.xp6(),e.hij(" ",Y.submitButtonLabel," ")}}function H(q,j){if(1&q){const Y=e.EpF();e.TgZ(0,"button",20),e.NdJ("click",function(){e.CHM(Y);const ne=e.oxw();return e.KtG(ne.handleConfirm())}),e.ALo(1,"async"),e._uU(2),e.qZA()}if(2&q){const Y=e.oxw();e.Q6J("disabled",e.lcZ(1,2,Y.submitButtonDisabledObservable)),e.xp6(2),e.hij(" ",Y.submitButtonLabel," ")}}function O(q,j){if(1&q){const Y=e.EpF();e.TgZ(0,"button",21),e.NdJ("click",function(){e.CHM(Y);const ne=e.oxw();return e.KtG(ne.handleCancel())}),e._uU(1),e.qZA()}if(2&q){const Y=e.oxw();e.xp6(),e.hij(" ",Y.cancelButtonLabel," ")}}const P=[[["","form-header",""]],"*"],G=q=>({confirm:q}),B=["[form-header]","*"];let ae=(()=>{class q{static#e=this.FORM_FILL={width:"97%",maxWidth:"97%"};static#t=this.FORM_HUGE={width:"950px",maxWidth:"97%"};static#n=this.FORM_BIG={width:"750px",maxWidth:"97%"};static#i=this.FORM_MEDIUM={width:"600px",maxWidth:"97%"};static#o=this.FORM_SMALL={width:"425px",maxWidth:"97%"};static#r=this.CONFIRM={width:"350px",maxWidth:"97%"}}return q})(),J=(()=>{class q{constructor(Y){this.dialogRef=Y,this.dialogType="confirm",this.submitButtonLabel="imxplatform.dialog.common-confirm",this.cancelButtonLabel="imxplatform.dialog.common-abort",this.submitButtonDisabled=!1,this.useEvents=!1,this.onConfirm=new e.vpe,this.onCancel=new e.vpe,this.getSubmitResult=()=>!0,this.getCancelResult=()=>!1}handleConfirm(){this.useEvents?this.onConfirm.emit(!0):this.dialogRef.close(this.getSubmitResult())}handleCancel(){this.useEvents?this.onCancel.emit(!0):this.dialogRef.close(this.getCancelResult())}close(Y){this.dialogRef.close(Y)}static#e=this.\u0275fac=function(K){return new(K||q)(e.Y36(n.so))};static#t=this.\u0275cmp=e.Xpm({type:q,selectors:[["imx-dialog"]],contentQueries:function(K,ne,ee){if(1&K&&e.Suo(ee,t,5),2&K){let $;e.iGM($=e.CRH())&&(ne.customButtonBar=$.first)}},inputs:{dialogType:"dialogType",heading:"heading",subline:"subline",icon:"icon",submitButtonLabel:"submitButtonLabel",cancelButtonLabel:"cancelButtonLabel",submitButtonDisabled:"submitButtonDisabled",submitButtonDisabledObservable:"submitButtonDisabledObservable",useEvents:"useEvents",getSubmitResult:"getSubmitResult",getCancelResult:"getCancelResult"},outputs:{onConfirm:"onConfirm",onCancel:"onCancel"},ngContentSelectors:B,decls:16,vars:11,consts:[["mat-dialog-title","","cdkDrag","","cdkDragRootElement",".cdk-overlay-pane","cdkDragHandle","",1,"dialog-header-wrapper"],["class","dialog-close",3,"click",4,"ngIf"],["class","dialog-header",4,"ngIf"],[1,"dialog-content",3,"ngClass"],["class","dialog-icon",4,"ngIf"],["class","headline","translate","",4,"ngIf"],[1,"dialog-form-header"],["align","end"],[3,"ngTemplateOutlet"],["class","imx-button cta","translate","",3,"disabled","click",4,"ngIf"],["class","imx-button default","translate","",3,"click",4,"ngIf"],[1,"dialog-close",3,"click"],[1,"icon","icon-crossBold"],[1,"dialog-header"],[1,"dialog-icon","small"],[1,"icon",3,"ngClass"],["class","subline","translate","",4,"ngIf"],["translate","",1,"headline"],["translate","",1,"subline"],[1,"dialog-icon"],["translate","",1,"imx-button","cta",3,"disabled","click"],["translate","",1,"imx-button","default",3,"click"]],template:function(K,ne){1&K&&(e.F$t(P),e.TgZ(0,"div",0),e.YNc(1,p,2,0,"div",1)(2,x,6,3,"div",2),e.qZA(),e.TgZ(3,"mat-dialog-content")(4,"div",3),e.YNc(5,u,2,1,"div",4),e.TgZ(6,"div"),e.YNc(7,m,2,1,"h1",5),e.TgZ(8,"div",6),e.Hsn(9),e.qZA(),e.Hsn(10,1),e.qZA()()(),e.TgZ(11,"mat-dialog-actions",7),e.YNc(12,b,0,0,"ng-template",8)(13,I,2,2,"button",9)(14,H,3,4,"button",9)(15,O,2,1,"button",10),e.qZA()),2&K&&(e.xp6(),e.Q6J("ngIf",ne.cancelButtonLabel),e.xp6(),e.Q6J("ngIf","form"===ne.dialogType),e.xp6(2),e.Q6J("ngClass",e.VKq(9,G,"confirm"===ne.dialogType)),e.xp6(),e.Q6J("ngIf","confirm"===ne.dialogType),e.xp6(2),e.Q6J("ngIf",ne.heading&&"confirm"===ne.dialogType),e.xp6(5),e.Q6J("ngTemplateOutlet",ne.customButtonBar),e.xp6(),e.Q6J("ngIf",ne.submitButtonLabel&&null==ne.submitButtonDisabledObservable),e.xp6(),e.Q6J("ngIf",ne.submitButtonLabel&&null!=ne.submitButtonDisabledObservable),e.xp6(),e.Q6J("ngIf",ne.cancelButtonLabel))},dependencies:[s.mk,s.O5,s.tP,l.Zt,l.Bh,n.uh,n.H8,n.xY,i.Pi,s.Ov],styles:["[_nghost-%COMP%]{--mdc-dialog-subhead-font: $imx-font;--mdc-dialog-supporting-text-color: rgba(0, 0, 0, .87);--mdc-dialog-supporting-text-font: $imx-font;--mdc-dialog-supporting-text-line-height: 1em;--mdc-dialog-supporting-text-size: 16px;--mdc-dialog-supporting-text-weight: 400;--mdc-dialog-supporting-text-tracking: 0}.dialog-header-wrapper[_ngcontent-%COMP%]{margin:0 0 10px;display:flex;padding:25px 25px 0;color:#3e3e3e;position:relative;font-size:14px}.dialog-header-wrapper[_ngcontent-%COMP%]   .dialog-close[_ngcontent-%COMP%]{color:#0a2663;position:absolute;top:14px;right:14px;font-size:13px;cursor:pointer}.dialog-header-wrapper[_ngcontent-%COMP%]   .dialog-icon[_ngcontent-%COMP%]{font-size:32px;margin-right:10px}.dialog-header-wrapper[_ngcontent-%COMP%]   .dialog-header[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;align-items:center}h1[_ngcontent-%COMP%]{font-size:25px;font-weight:600;line-height:30px}p[_ngcontent-%COMP%]{line-height:16px}.dialog-content[_ngcontent-%COMP%]{margin:0;min-height:100px;font-size:14px;width:100%;padding:0 25px 15px}.dialog-content[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{padding:0}.dialog-content[_ngcontent-%COMP%]   .dialog-txt-md[_ngcontent-%COMP%]{font-size:14px;color:#000;margin-top:15px;word-break:break-word}.dialog-content[_ngcontent-%COMP%]   .dialog-txt-md.error[_ngcontent-%COMP%]{color:#96172e}.dialog-content.confirm[_ngcontent-%COMP%]{display:flex}.dialog-content.confirm[_ngcontent-%COMP%]   h1.headline[_ngcontent-%COMP%]{margin-bottom:10px}.dialog-content[_ngcontent-%COMP%]   .dialog-form-header[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;padding:5px 0 10px}.dialog-icon[_ngcontent-%COMP%]{font-size:60px;margin-right:25px}@media (max-width: 900px){.dialog-icon[_ngcontent-%COMP%]{font-size:48px;margin-right:15px}}.dialog-icon[_ngcontent-%COMP%]   .icon.red[_ngcontent-%COMP%]{color:#96172e}  .dialog-form mat-form-field{width:100%}  .dialog-form .dialog-form-group{background-color:#eefafa;width:100%;border:1px solid #ced4e0;padding:10px;margin:3px 0 10px}  .dialog-form .dialog-form-group p{margin:10px 0}  .dialog-form .dialog-form-group .mat-mdc-radio-group .mat-mdc-radio-button{font-size:14px;display:block;padding:5px 0}  .dialog-form .dialog-form-group .mat-mdc-radio-group.small .mat-mdc-radio-button{font-size:14px;display:block;padding:2px 5px}  .dialog-form .dialog-form-group .checkbox-group .mat-mdc-checkbox{display:block}.dialog-subpanel-header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}  .mat-mdc-dialog-container{background:#fff;padding:0}  .mat-mdc-dialog-container .mat-mdc-dialog-content{padding:0;margin:0;max-height:78vh}  .mat-mdc-dialog-container .mat-mdc-dialog-actions{background:#eefafa;box-sizing:content-box;margin:0;padding:10px}  .mat-mdc-dialog-container .mat-mdc-dialog-actions .imx-button{margin-right:5px}  .mat-mdc-dialog-container .mat-mdc-dialog-actions .imx-button:last-of-type{margin-right:0}[_nghost-%COMP%]     .mdc-dialog__title:before{height:auto}[_nghost-%COMP%]     .mdc-dialog__content{padding:0;margin:0;max-height:78vh}"]})}return q})()},61598:(gt,X,a)=>{"use strict";a.d(X,{t:()=>p});var e=a(17700),n=a(19212),s=a(33946),l=a(71365),i=a(1614);const t=(c,o)=>({title:c,id:o});let p=(()=>{class c{constructor(x){this.dialogData=x}static#e=this.\u0275fac=function(u){return new(u||c)(n.Y36(e.WI))};static#t=this.\u0275cmp=n.Xpm({type:c,selectors:[["ng-component"]],decls:7,vars:12,consts:[["heading","imxplatform.dialog.discard-header","icon","icon-undo","submitButtonLabel","imxplatform.dialog.discard-button"],[1,"dialog-txt-md",3,"innerHTML"],[1,"dialog-txt-md"]],template:function(u,m){1&u&&(n.TgZ(0,"imx-dialog",0),n._UZ(1,"p",1),n.ALo(2,"translate"),n.ALo(3,"readI18n"),n.TgZ(4,"p",2),n._uU(5),n.ALo(6,"translate"),n.qZA()()),2&u&&(n.xp6(),n.Q6J("innerHTML",n.xi3(2,2,m.dialogData.text,n.WLB(9,t,n.lcZ(3,5,m.dialogData.title),m.dialogData.objectId)),n.oJD),n.xp6(4),n.Oqu(n.lcZ(6,7,"imxplatform.dialog.discard-warning")))},dependencies:[s.a,l.X$,i.j],encapsulation:2})}return c})()},80750:(gt,X,a)=>{"use strict";a.d(X,{s:()=>O});var e=a(17700),n=a(72079),s=a(19352),l=a(21473),i=a(19212),t=a(96814),p=a(56223),c=a(75986),o=a(33946),x=a(71365),u=a(1614);function m(P,G){if(1&P){const B=i.EpF();i.TgZ(0,"mat-checkbox",9),i.NdJ("change",function(J){i.CHM(B);const q=i.oxw(2);return i.KtG(q.onLanguageSelect(J))}),i._UZ(1,"img",10),i.TgZ(2,"span"),i._uU(3),i.ALo(4,"readI18n"),i.qZA()()}if(2&P){const B=i.oxw().$implicit,ae=i.oxw();i.Q6J("value",B.name)("checked",ae.isSelected(B.name)),i.xp6(),i.Q6J("src","./assets/flags/"+B.name+".svg",i.LSH),i.xp6(2),i.Oqu(i.lcZ(4,4,null==B?null:B.i18nName))}}function b(P,G){if(1&P&&(i.TgZ(0,"div",7),i.YNc(1,m,5,6,"mat-checkbox",8),i.qZA()),2&P){const B=G.$implicit;i.xp6(),i.Q6J("ngIf","__"!=B.name)}}function I(P,G){if(1&P&&(i.TgZ(0,"span",15),i._uU(1),i.ALo(2,"readI18n"),i.qZA()),2&P){const B=G.ngIf;i.xp6(),i.hij(" (",i.lcZ(2,1,B.i18nName),")")}}function H(P,G){if(1&P){const B=i.EpF();i.TgZ(0,"div",11)(1,"mat-checkbox",12),i.NdJ("ngModelChange",function(J){i.CHM(B);const q=i.oxw();return i.KtG(q.copyFromObjectLanguage=J)}),i._uU(2),i.ALo(3,"translate"),i.TgZ(4,"span",13),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.YNc(7,I,3,3,"span",14),i.ALo(8,"async"),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"mat-checkbox",12),i.NdJ("ngModelChange",function(J){i.CHM(B);const q=i.oxw();return i.KtG(q.adjustChildObjects=J)}),i._uU(12),i.ALo(13,"translate"),i.qZA()()}if(2&P){const B=i.oxw();i.xp6(),i.Q6J("ngModel",B.copyFromObjectLanguage),i.xp6(),i.hij("",i.lcZ(3,7,"imxplatform.dialog.edit-language-texts")," "),i.xp6(3),i.Oqu(i.lcZ(6,9,"imxplatform.dialog.edit-language-object")),i.xp6(2),i.Q6J("ngIf",i.lcZ(8,11,B.currentLanguage$)),i.xp6(2),i.hij(" ",i.lcZ(10,13,"imxplatform.dialog.common-confirm"),""),i.xp6(2),i.Q6J("ngModel",B.adjustChildObjects),i.xp6(),i.Oqu(i.lcZ(13,15,"imxplatform.dialog.edit-language-confirm"))}}let O=(()=>{class P{constructor(B,ae){this.data=B,this.runtimeContextService=ae,this.selectedLanguages=[],this.initialSelectedLanguages=[],this.adjustChildObjects=!0,this.copyFromObjectLanguage=!1,this.destroy$=new n.xQ}ngOnInit(){if(this.currentLanguage$=this.data.formLanguageHandler.getEditLanguageAsObservable(),this.data.useObjectLanguages)this.data.formLanguageHandler.getObjectLanguagesObservable().pipe((0,s.R)(this.destroy$)).subscribe(ae=>{this.languages=ae,this.filterSelectedLanguagesById(ae)});else{const B=this.runtimeContextService.getLanguages();this.languages=B,this.filterSelectedLanguagesById(B)}this.data.selectedLanguages&&(this.selectedLanguages=this.data.selectedLanguages),this.initialSelectedLanguages=[...this.selectedLanguages]}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}selectAll(){this.selectedLanguages=this.languages}selectNothing(){this.selectedLanguages=[]}getDialogResult(){return this.data.selectedLanguages=this.selectedLanguages,this.data.adjustChildObjects=this.adjustChildObjects,this.data.copyFromObjectLanguage=this.copyFromObjectLanguage,this.determineAddedAndRemovedLanguages(),this.data}isSaveDisabled(){return!this.data.allowSaveEmptyArray&&0===this.selectedLanguages.length}isSelected(B){return this.selectedLanguages.some(ae=>ae.name===B)}onLanguageSelect(B){if(B.checked){const ae=this.languages.find(J=>J.name===B.source.value);ae&&this.selectedLanguages.push(ae)}else this.selectedLanguages=this.selectedLanguages.filter(ae=>ae.name!==B.source.value)}determineAddedAndRemovedLanguages(){this.data.addedLanguages=this.selectedLanguages.filter(B=>-1===this.initialSelectedLanguages.findIndex(ae=>ae.id===B.id)),this.data.removedLanguages=this.initialSelectedLanguages.filter(B=>-1===this.selectedLanguages.findIndex(ae=>ae.id===B.id))}filterSelectedLanguagesById(B){this.data.selectedLanguageIds&&(this.selectedLanguages=B.filter(ae=>this.data.selectedLanguageIds.find(J=>J===ae.id)))}static#e=this.\u0275fac=function(ae){return new(ae||P)(i.Y36(e.WI),i.Y36(l.Ze))};static#t=this.\u0275cmp=i.Xpm({type:P,selectors:[["ng-component"]],decls:17,vars:13,consts:[["heading","imxplatform.dialog.edit-language-header","icon","icon-languageSwitch","submitButtonLabel","imxplatform.dialog.edit-language-button",3,"submitButtonDisabled","getSubmitResult"],[1,"language-selection-wrapper"],[1,"language-selection","col1"],["class","language-icon",4,"ngFor","ngForOf"],[1,"language-selection-text"],[1,"txt-link",3,"click"],["class","language-settings-wrapper",4,"ngIf"],[1,"language-icon"],["class","checkbox",3,"value","checked","change",4,"ngIf"],[1,"checkbox",3,"value","checked","change"],[3,"src"],[1,"language-settings-wrapper"],[1,"small",3,"ngModel","ngModelChange"],[1,"language-label"],["class","txt-grey",4,"ngIf"],[1,"txt-grey"]],template:function(ae,J){1&ae&&(i.TgZ(0,"imx-dialog",0)(1,"div",1)(2,"div",2),i.YNc(3,b,2,1,"div",3),i.qZA()(),i.TgZ(4,"div",4)(5,"p"),i._uU(6),i.ALo(7,"translate"),i.TgZ(8,"span",5),i.NdJ("click",function(){return J.selectAll()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"span"),i._uU(12," | "),i.qZA(),i.TgZ(13,"span",5),i.NdJ("click",function(){return J.selectNothing()}),i._uU(14),i.ALo(15,"translate"),i.qZA()()(),i.YNc(16,H,14,17,"div",6),i.qZA()),2&ae&&(i.Q6J("submitButtonDisabled",J.isSaveDisabled())("getSubmitResult",J.getDialogResult.bind(J)),i.xp6(3),i.Q6J("ngForOf",J.languages),i.xp6(3),i.hij("",i.lcZ(7,7,"imxplatform.dialog.edit-language-selection"),": "),i.xp6(3),i.Oqu(i.lcZ(10,9,"imxplatform.dialog.edit-language-all")),i.xp6(5),i.Oqu(i.lcZ(15,11,"imxplatform.dialog.edit-language-none")),i.xp6(2),i.Q6J("ngIf",J.data.showConfigurationCheckboxes))},dependencies:[t.sg,t.O5,p.JJ,p.On,c.oG,o.a,t.Ov,x.X$,u.j],styles:[".language-selection-wrapper[_ngcontent-%COMP%]{display:flex;font-size:12px}.language-selection-wrapper[_ngcontent-%COMP%]     .mat-mdc-checkbox-layout{display:initial}.language-selection-wrapper[_ngcontent-%COMP%]   .language-selection[_ngcontent-%COMP%]{margin-right:15px;display:grid;grid-template-columns:repeat(3,auto)}.language-selection-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{margin-bottom:5px}.language-selection-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:20px;margin-right:5px;vertical-align:middle}.language-selection-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]   .checkbox[_ngcontent-%COMP%]{margin-right:10px}.language-selection-text[_ngcontent-%COMP%]{margin-top:10px}.language-settings-wrapper[_ngcontent-%COMP%]{margin-top:15px}.language-settings-wrapper[_ngcontent-%COMP%]   .language-label[_ngcontent-%COMP%]{color:#0a2663}"]})}return P})()},24551:(gt,X,a)=>{"use strict";a.d(X,{s:()=>H});var e=a(56223),n=a(17700),s=a(51418),l=a(22819),i=a(19212),t=a(96814),p=a(16007),c=a(63005),o=a(54362),x=a(33946),u=a(96698),m=a(71365);function b(O,P){1&O&&i._UZ(0,"mat-progress-bar",16)}function I(O,P){if(1&O&&i._UZ(0,"imx-table",17),2&O){const G=i.oxw();i.Q6J("columns",G.historyTableColumnDefinitions)("data",G.filteredHistoryTableData)}}let H=(()=>{class O{constructor(G,B,ae){this.data=G,this.dataAccess=B,this.changeDetectorRef=ae,this.historyTableColumnDefinitions=[{accessor:"userName",width:"12%",columnTitle:"entity.ActionItem.userName",tooltipAccessor:"userName"},{accessor:"action",width:"35%",columnTitle:"entity.ActionItem.action",tooltipAccessor:"action"},{accessor:"actionParams",columnTitle:"entity.ActionItem.actionParams",customDisplayFn:this.displayActionItemParams,tooltipAccessor:"actionParams"},{accessor:"actionTime",columnTitle:"entity.ActionItem.actionTime",customDisplayFn:this.formatActionTimeTimeStamp,tooltipAccessor:"actionTime"}],this.historyTableData=[],this.filteredHistoryTableData=[],this.isLoading=!1,this.userNameFilterFormControl=new e.p4(null),this.actionNameFilterFormControl=new e.p4(null),this.actionItemParameterNameFilterFormControl=new e.p4(null),this.fromDateFilterFormControl=new e.p4,this.toDateFilterFormControl=new e.p4,this.entityHistoryFilterFormGroup=new e.nJ({actionUser:this.userNameFilterFormControl,actionName:this.actionNameFilterFormControl,actionItemParameterName:this.actionItemParameterNameFilterFormControl,actionTimeFrom:this.fromDateFilterFormControl,actionTimeTo:this.toDateFilterFormControl})}ngOnInit(){this.loadActionItemHistory()}displayActionItemParams(G){return G&&G.length>0?G.map(B=>"["+B.name+":"+B.value+"]").join(" ; "):"-"}formatActionTimeTimeStamp(G){return G&&G.length>=2?G.slice(0,-2):"-"}filterActionItemHistory(){const G=this.userNameFilterFormControl.value,B=this.actionNameFilterFormControl.value,ae=this.actionItemParameterNameFilterFormControl.value,J=this.fromDateFilterFormControl.value,q=this.toDateFilterFormControl.value;G||B||ae||J||q?this.filteredHistoryTableData=this.historyTableData.filter(Y=>{let K=!1;if(G&&G.length>0){if(!Y.userName.includes(G))return!1;K=!0}if(B&&B.length>0){if(!Y.action.includes(B))return!1;K=!0}if(ae&&ae.length>0&&(Y.actionParams&&Y.actionParams.length>0&&Y.actionParams.forEach(ee=>{K=ee.value.includes(ae)||ee.name.includes(ae)}),!1===K))return!1;const ne=new Date(this.formatActionTimeTimeStamp(Y.actionTime).replace(" ","T")+"Z");if(J&&q){if(!(J<ne&&q>ne))return!1;K=!0}else if(J){if(!(J<ne))return!1;K=!0}else if(q){if(!(q>ne))return!1;K=!0}return K}):this.loadActionItemHistory()}loadActionItemHistory(){this.isLoading=!0,this.dataAccess.getActionItemHistory(this.data.entityType,this.data.entityId,{}).pipe((0,s.q)(1)).subscribe(G=>{this.historyTableData=G,this.filteredHistoryTableData=G,this.isLoading=!1,this.changeDetectorRef.detectChanges()})}static#e=this.\u0275fac=function(B){return new(B||O)(i.Y36(n.WI),i.Y36(l.nq),i.Y36(i.sBO))};static#t=this.\u0275cmp=i.Xpm({type:O,selectors:[["ng-component"]],decls:27,vars:9,consts:[["icon","icon-compare","dialogType","form",3,"heading","submitButtonLabel","cancelButtonLabel"],[1,"dialog-form",3,"formGroup"],[1,"dialog-form-group"],[1,"form__content-row"],[1,"history-filter__text-filter"],["label","entity.ActionItem.userName","formControlName","actionUser","type","text",1,"history-filter__text-filter-input"],["label","entity.ActionItem.action","formControlName","actionName","type","text",1,"history-filter__text-filter-input"],["label","entity.ActionItem.actionParams","formControlName","actionItemParameterName","type","text",1,"history-filter__text-filter-input"],["label","imxplatform.common-entity.list.action.history.date-interval-from","formControlName","actionTimeFrom"],["label","imxplatform.common-entity.list.action.history.date-interval-to","formControlName","actionTimeTo"],["id","history-filter__filter-btn-wrapper"],["id","history-filter__filter-btn",1,"imx-button","prio2","with-icon",3,"click"],[1,"icon","icon-refresh"],[1,"form__readonly_table"],["loading",""],["maxHeight","400px",3,"columns","data",4,"ngIf","ngIfElse"],["mode","indeterminate"],["maxHeight","400px",3,"columns","data"]],template:function(B,ae){if(1&B&&(i.TgZ(0,"imx-dialog",0)(1,"div",1)(2,"div")(3,"div",2)(4,"div",3)(5,"div",4),i._UZ(6,"imx-base-input",5),i.qZA(),i.TgZ(7,"div",4),i._UZ(8,"imx-base-input",6),i.qZA(),i.TgZ(9,"div",4),i._UZ(10,"imx-base-input",7),i.qZA()(),i.TgZ(11,"div",3)(12,"div",4),i._UZ(13,"imx-base-date",8),i.qZA(),i.TgZ(14,"div",4),i._UZ(15,"imx-base-date",9),i.qZA()(),i.TgZ(16,"div",10)(17,"button",11),i.NdJ("click",function(){return ae.filterActionItemHistory()}),i._UZ(18,"i",12),i._uU(19),i.ALo(20,"translate"),i.qZA()()(),i._UZ(21,"br")(22,"br"),i.TgZ(23,"div",13),i.YNc(24,b,1,0,"ng-template",null,14,i.W1O)(26,I,1,2,"imx-table",15),i.qZA()()()()),2&B){const J=i.MAs(25);i.s9C("heading",ae.data.headerKey),i.s9C("cancelButtonLabel","imxplatform.common-entity.list.action.history.cancel"),i.Q6J("submitButtonLabel",void 0),i.xp6(),i.Q6J("formGroup",ae.entityHistoryFilterFormGroup),i.xp6(18),i.hij(" ",i.lcZ(20,7,"imxplatform.main.search")," "),i.xp6(7),i.Q6J("ngIf",!ae.isLoading)("ngIfElse",J)}},dependencies:[t.O5,e.JJ,e.JL,p.pW,e.sg,e.u,c.d,o.H,x.a,u.a,m.X$],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}.no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.history-filter__text-filter[_ngcontent-%COMP%]{flex:25%;flex-grow:0;margin-right:10px}.filter__date-field[_ngcontent-%COMP%]{max-width:175px!important}#history-filter__filter-btn-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:15px;margin-right:10px;height:30px}#history-filter__filter-btn[_ngcontent-%COMP%]{height:30px;padding-right:30px}.history-filter__until[_ngcontent-%COMP%]{line-height:30px;margin-right:10px}.form__readonly_table[_ngcontent-%COMP%]{border:1px solid #ced4e0}[_nghost-%COMP%]     .p-scrollpanel-content, [_nghost-%COMP%]     .mat-mdc-table tbody{background:#eefafa}[_nghost-%COMP%]     .mat-mdc-table .mat-mdc-header-row>.mat-mdc-header-cell:first-child, [_nghost-%COMP%]     .mat-mdc-table .mat-mdc-row>.mat-mdc-cell:first-child{padding-left:20px}"]})}return O})()},79545:(gt,X,a)=>{"use strict";a.d(X,{e:()=>ue});var e=a(56223),n=a(25313),s=a(21473),l=a(96124),i=a(64022),t=a(22819),p=a(89051),c=a(19212),o=a(96814),x=a(71365),u=a(74961),m=a(6128),b=a(36681),I=a(1614);function H(ge,Ke){1&ge&&(c.TgZ(0,"p",6),c._uU(1,"imxplatform.common-entity.edit.panels.reference.sorting.none"),c.qZA())}function O(ge,Ke){1&ge&&c._UZ(0,"tr",19)}function P(ge,Ke){1&ge&&c._UZ(0,"tr",20)}function G(ge,Ke){1&ge&&(c.TgZ(0,"th",21),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&ge&&(c.xp6(),c.Oqu(c.lcZ(2,1,"entity.DataObject.id")))}function B(ge,Ke){if(1&ge&&(c.TgZ(0,"td",22),c._uU(1),c.qZA()),2&ge){const at=Ke.$implicit;c.xp6(),c.hij(" ",at.value.id," ")}}function ae(ge,Ke){1&ge&&(c.TgZ(0,"th",23),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&ge&&(c.xp6(),c.Oqu(c.lcZ(2,1,"entity.ExtCoreDataObject.title")))}function J(ge,Ke){if(1&ge&&(c.TgZ(0,"td",22),c._uU(1),c.ALo(2,"readI18n"),c.qZA()),2&ge){const at=Ke.$implicit;c.xp6(),c.hij(" ",c.lcZ(2,1,at.value.title)," ")}}function q(ge,Ke){1&ge&&(c.TgZ(0,"th",21),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&ge&&(c.xp6(),c.Oqu(c.lcZ(2,1,"imxplatform.common-entity.edit.panels.reference.sorting.manual")))}function j(ge,Ke){if(1&ge&&(c.TgZ(0,"td",22),c._uU(1),c.qZA()),2&ge){const at=Ke.$implicit;c.xp6(),c.hij(" ",at.value.sortingValue," ")}}function Y(ge,Ke){1&ge&&c._UZ(0,"th",24)}function K(ge,Ke){if(1&ge){const at=c.EpF();c.TgZ(0,"imx-dropup-button")(1,"imx-action-menu")(2,"imx-action-menu-item",26),c.NdJ("click",function(){c.CHM(at);const R=c.oxw().$implicit,Te=c.oxw(3);return c.KtG(Te.changeSortingValue(R,!1))}),c._uU(3," imxplatform.common-entity.edit.panels.reference.sorting.sort_up "),c.qZA(),c.TgZ(4,"imx-action-menu-item",26),c.NdJ("click",function(){c.CHM(at);const R=c.oxw().$implicit,Te=c.oxw(3);return c.KtG(Te.changeSortingValue(R,!0))}),c._uU(5," imxplatform.common-entity.edit.panels.reference.sorting.sort_down "),c.qZA(),c.TgZ(6,"imx-action-menu-item",27),c.NdJ("click",function(){c.CHM(at);const R=c.oxw().$implicit,Te=c.oxw(3);return c.KtG(Te.deleteRow(R))}),c._uU(7," imxplatform.gui.edit.delete "),c.qZA()()()}2&ge&&(c.xp6(2),c.Q6J("icon","icon-up-square"),c.xp6(2),c.Q6J("icon","icon-down-square"),c.xp6(2),c.Q6J("icon","icon-trash"))}function ne(ge,Ke){if(1&ge&&(c.TgZ(0,"td",25),c.YNc(1,K,8,3,"imx-dropup-button",3),c.qZA()),2&ge){const at=Ke.$implicit,Le=c.oxw(3);c.Q6J("formGroup",at),c.xp6(),c.Q6J("ngIf",Le.hasEditPermission)}}function ee(ge,Ke){if(1&ge&&(c.TgZ(0,"table",7),c.YNc(1,O,1,0,"tr",8)(2,P,1,0,"tr",9),c.ynx(3,10),c.YNc(4,G,3,3,"th",11)(5,B,2,1,"td",12),c.BQk(),c.ynx(6,13),c.YNc(7,ae,3,3,"th",14)(8,J,3,3,"td",12),c.BQk(),c.ynx(9,15),c.YNc(10,q,3,3,"th",11)(11,j,2,1,"td",12),c.BQk(),c.ynx(12,16),c.YNc(13,Y,1,0,"th",17)(14,ne,2,2,"td",18),c.BQk(),c.qZA()),2&ge){const at=c.oxw().ngIf,Le=c.oxw();c.Q6J("dataSource",at),c.xp6(),c.Q6J("matHeaderRowDef",Le.columns),c.xp6(),c.Q6J("matRowDefColumns",Le.columns)}}function $(ge,Ke){if(1&ge&&(c.ynx(0),c.YNc(1,H,2,0,"p",4)(2,ee,15,3,"table",5),c.BQk()),2&ge){const at=Ke.ngIf;c.xp6(),c.Q6J("ngIf",0===at.data.length),c.xp6(),c.Q6J("ngIf",at.data.length>0)}}let ue=(()=>{class ge{constructor(at,Le){this.coreEntityDefService=at,this.platformDataAccessService=Le,this.hasEditPermission=!1,this.sortedFormArray=new e.Oe([]),this.sortedIds=[],this.columns=[]}ngOnInit(){this.columns=["id","title","sortingValue","actionColumn"],this.readCurrentSorting()}getCurrentlySortedIds(){return this.sortedIds}readCurrentSorting(){const at=p.d.extractListParam(this.entityList.listInfoClient,s.Z8);0===at.length?this.refreshDataSource():this.loadEntities(this.entityType,at).pipe((0,l.U)(R=>at.map(Te=>R.find(me=>me.id===Te)))).subscribe(R=>{R.forEach((Te,me)=>{const Se=new e.NI({id:Te.id,title:Te.title,sortingValue:me+1});Se.markAsPristine({onlySelf:!0}),this.sortedFormArray.push(Se)}),this.refreshDataSource(),this.sortDataSource()})}refreshDataSource(){this.itemsDataSource=new n.by(this.sortedFormArray.controls)}sortDataSource(){this.itemsDataSource.data.sort((at,Le)=>at.value.sortingValue-Le.value.sortingValue),this.itemsDataSource=new n.by(this.sortedFormArray.controls),this.sortedIds=this.sortedFormArray.controls.map(at=>at.value.id)}getMaxSortingValue(){return this.itemsDataSource.data.length>0?Math.max(...this.itemsDataSource.data.map(at=>at.value.sortingValue)):0}changeSortingValue(at,Le){const R=at.value.sortingValue;if(!isNaN(R)){const Te=Le?R+1:R-1;if(Te>this.getMaxSortingValue()||Te<0)return;this.sortedFormArray.controls.forEach(me=>{const Se=me.value.sortingValue;!isNaN(Se)&&Se===Te&&(me.value.sortingValue=R)}),at.value.sortingValue=Te}this.sortDataSource()}addRow(at){0===this.itemsDataSource.data.filter(Le=>Le.value.id===at).length&&this.loadEntity(this.entityType,at).subscribe(Le=>{const R=new e.NI({id:Le.id,title:Le.title,sortingValue:this.getMaxSortingValue()+1});R.markAsPristine({onlySelf:!0}),this.sortedFormArray.push(R),this.sortDataSource()})}removeRowById(at){const Le=this.itemsDataSource.filteredData.find(R=>R.value.id===at);Le&&this.deleteRow(Le)}deleteRow(at){const Le=at.value.sortingValue,R=this.itemsDataSource.filteredData.indexOf(at);this.sortedFormArray.removeAt(R),this.sortedFormArray.markAsDirty(),this.decreaseSortingValue(Le),this.sortDataSource()}decreaseSortingValue(at){this.sortedFormArray.controls.forEach(Le=>{const R=Le.value.sortingValue;!isNaN(R)&&R>at&&(Le.value.sortingValue=R-1)})}loadEntities(at,Le){const R=this.coreEntityDefService.getCoreEntityDefByString(at);return this.platformDataAccessService.getCoreDataObjectsCompactById(Le,R)}loadEntity(at,Le){const R=this.coreEntityDefService.getCoreEntityDefByString(at);return this.platformDataAccessService.getCoreDataObjectsCompactById([Le],R).pipe((0,l.U)(Te=>Te[0]))}static#e=this.\u0275fac=function(Le){return new(Le||ge)(c.Y36(i.dE),c.Y36(t.nq))};static#t=this.\u0275cmp=c.Xpm({type:ge,selectors:[["imx-entity-list-sorted-dialog-table"]],inputs:{entityType:"entityType",entityList:"entityList",hasEditPermission:"hasEditPermission"},decls:5,vars:1,consts:[[1,"form__content-row"],["translate",""],[1,"form__table"],[4,"ngIf"],["class","txt-grey txt-md no-records","translate","",4,"ngIf"],["mat-table","",3,"dataSource",4,"ngIf"],["translate","",1,"txt-grey","txt-md","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","id"],["mat-header-cell","","class","id-column",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","title"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","sortingValue"],["matColumnDef","actionColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","",1,"id-column"],["mat-cell",""],["mat-header-cell",""],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],[3,"icon","click"],["additionalStyle","delete",3,"icon","click"]],template:function(Le,R){1&Le&&(c.TgZ(0,"div",0)(1,"h3",1),c._uU(2,"imxplatform.common-entity.edit.panels.reference.sorting.hint"),c.qZA()(),c.TgZ(3,"div",2),c.YNc(4,$,3,2,"ng-container",3),c.qZA()),2&Le&&(c.xp6(4),c.Q6J("ngIf",R.itemsDataSource))},dependencies:[o.O5,e.JL,n.BZ,n.fO,n.as,n.w1,n.Dz,n.nj,n.ge,n.ev,n.XQ,n.Gk,e.sg,x.Pi,u.p,m.z,b.t,x.X$,I.j],styles:["\n\n\n\n\n\n\n\n\n\n\n\n.no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}[_nghost-%COMP%]   tr.mat-mdc-row[_ngcontent-%COMP%]{height:40px}[_nghost-%COMP%]     thead{position:sticky;top:0;z-index:1}[_nghost-%COMP%]   .form__table[_ngcontent-%COMP%]{height:40vh;overflow:auto;position:relative;scrollbar-color:rgba(0,0,0,.25) rgba(0,0,0,.1)!important;scrollbar-width:thin!important}[_nghost-%COMP%]   .form__table[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px}[_nghost-%COMP%]   .form__table[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:#00000040}[_nghost-%COMP%]   .form__table[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#00000040;outline:0}"]})}return ge})()},89051:(gt,X,a)=>{"use strict";a.d(X,{d:()=>m});var e=a(17700),n=a(21473),s=a(23367),l=a(79545),i=a(19212),t=a(71365);function p(b,I){if(1&b){const H=i.EpF();i.TgZ(0,"div",3)(1,"h3",4),i._uU(2,"imxplatform.common-entity.edit.panels.reference.sorting.addEntry"),i.qZA(),i.TgZ(3,"div",9)(4,"imx-base-autocomplete",10,11),i.NdJ("enterPressed",function(){i.CHM(H);const P=i.MAs(7);return i.KtG(P.focus())}),i.qZA(),i.TgZ(6,"button",12,13),i.NdJ("click",function(){i.CHM(H);const P=i.MAs(5);return i.oxw().addToEntityList(P.getSelectedAutocompleteHolderEntity()),i.KtG(P.writeValue(void 0))}),i._uU(8),i.ALo(9,"translate"),i.qZA()()()}if(2&b){const H=i.MAs(5),O=i.oxw();i.xp6(4),i.Q6J("autocompleteService",O.registry.getAutocompleteService(O.entityType))("disableControl",!O.hasEditPermission)("label","imxplatform.common-entity.edit.panels.reference.sorting.chooseObject"),i.xp6(2),i.Q6J("disabled",!H.getSelectedId()||!O.hasEditPermission),i.xp6(2),i.hij(" ",i.lcZ(9,5,"imxplatform.common.add")," ")}}function c(b,I){1&b&&(i.TgZ(0,"label",15),i._uU(1," Liste ist nicht \xe4nderbar. "),i.qZA())}function o(b,I){if(1&b&&i.YNc(0,c,2,0,"label",14),2&b){const H=i.oxw();i.Q6J("ngIf",!H.hasEditPermission)}}const x=()=>[],u="https://xyz.de/";let m=(()=>{class b{static extractListParam(H,O){const P=new URL(u+H);return P.searchParams.get(O)?decodeURIComponent(P.searchParams.get(O)).split(",").map(B=>parseInt(B,10)):[]}static extractEntityPrefix(H){const O=new URL(u+H),P=decodeURIComponent(O.pathname).replace("/","");return"s"===P[P.length-1]?P.substr(0,P.length-1):P}static createSortedListInfoClientString(H,O){const P=new URL(u+H);return O.length>0?P.searchParams.set(n.Z8,O.join(",")):P.searchParams.delete(n.Z8),P.pathname.replace("/","")+decodeURIComponent(P.search)}constructor(H,O,P){this.data=H,this.registry=O,this.translateService=P,this.isIdList=!0,this.hasEditPermission=!1,this.title=""}ngOnInit(){this.entityType=this.data.entityList.entityType,this.isIdList=(0,n.tq)(this.data.entityList.listInfoClient),this.data.hasWritePermission.subscribe(H=>{this.hasEditPermission=H}),this.title=this.translateService.instant("entity.EntityList.entityName")+" '"+this.data.entityList.name+"'"}getDialogResult(){const H=this.tableComponent.getCurrentlySortedIds();return this.data.entityList.listInfoClient=b.createSortedListInfoClientString(this.data.entityList.listInfoClient,H),this.data}addRow(H){this.tableComponent.addRow(H)}removeRow(H){this.tableComponent.removeRowById(H)}addToEntityList(H){const O=b.extractEntityPrefix(this.data.entityList.listInfoClient),P=b.extractListParam(this.data.entityList.listInfoClient,"id");P.push(H.entityId);const G=b.extractListParam(this.data.entityList.listInfoClient,"orderPrependIds");this.data.entityList.listInfoClient=O+"s?id="+P.join(",")+"&orderPrependIds="+G.join(","),this.data.entityList.listInfo="&"+O+"Ids="+P.join(",")+"&aOrderPrependIds="+G.join(","),this.data.entityList={...this.data.entityList}}deleteFromSelectList(H){const O=b.extractEntityPrefix(this.data.entityList.listInfoClient),P=b.extractListParam(this.data.entityList.listInfoClient,"id").filter(B=>B!==H),G=b.extractListParam(this.data.entityList.listInfoClient,"orderPrependIds").filter(B=>B!==H);this.data.entityList.listInfoClient=O+"s?&id="+P.join(",")+"&orderPrependIds="+G.join(","),this.data.entityList.listInfo="&"+O+"Ids="+P.join(",")+"&aOrderPrependIds="+G.join(","),this.data.entityList={...this.data.entityList}}static#e=this.\u0275fac=function(O){return new(O||b)(i.Y36(e.WI),i.Y36(s.R),i.Y36(t.sK))};static#t=this.\u0275cmp=i.Xpm({type:b,selectors:[["ng-component"]],viewQuery:function(O,P){if(1&O&&i.Gf(l.e,5),2&O){let G;i.iGM(G=i.CRH())&&(P.tableComponent=G.first)}},decls:11,vars:14,consts:[["icon","icon-reference-list","dialogType","form",3,"heading","submitButtonLabel","cancelButtonLabel","submitButtonDisabled","getSubmitResult"],[1,"dialog-form"],["class","dialog-form-group",4,"ngIf"],[1,"dialog-form-group"],["translate",""],[1,"entity-list-sorted-dialog__container"],[3,"currentlySortedIds","entityList","isIdList","hasEditPermission","deleteFromSelectList","add","remove"],[3,"hasEditPermission","entityList","entityType"],["customButtonBar",""],[1,"form__content-field-row"],[3,"autocompleteService","disableControl","label","enterPressed"],["autoCompleteControl",""],[1,"imx-button","prio2","addButton",3,"disabled","click"],["addButton",""],["translate","","class","hint",4,"ngIf"],["translate","",1,"hint"]],template:function(O,P){1&O&&(i.TgZ(0,"imx-dialog",0)(1,"div",1),i.YNc(2,p,10,7,"div",2),i.TgZ(3,"div",3)(4,"h3",4),i._uU(5,"imxplatform.common-entity.edit.panels.reference.sorting.sortList"),i.qZA(),i.TgZ(6,"div",5)(7,"imx-entity-list-sorted-select-table",6),i.NdJ("deleteFromSelectList",function(B){return P.removeRow(B),P.deleteFromSelectList(B)})("add",function(B){return P.addRow(B)})("remove",function(B){return P.removeRow(B)}),i.qZA(),i._UZ(8,"imx-entity-list-sorted-dialog-table",7),i.qZA()()(),i.YNc(9,o,1,1,"ng-template",null,8,i.W1O),i.qZA()),2&O&&(i.Q6J("heading",P.title)("submitButtonLabel","imxplatform.dialog.common-confirm")("cancelButtonLabel","imxplatform.dialog.common-abort")("submitButtonDisabled",!P.hasEditPermission)("getSubmitResult",P.getDialogResult.bind(P)),i.xp6(2),i.Q6J("ngIf",P.isIdList),i.xp6(5),i.Q6J("currentlySortedIds",P.tableComponent?P.tableComponent.getCurrentlySortedIds():i.DdM(13,x))("entityList",P.data.entityList)("isIdList",P.isIdList)("hasEditPermission",P.hasEditPermission),i.xp6(),i.Q6J("hasEditPermission",P.hasEditPermission)("entityList",P.data.entityList)("entityType",P.entityType))},styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.dialog-form-group[_ngcontent-%COMP%]{overflow:hidden}.dialog-form-group[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.dialog-form-group[_ngcontent-%COMP%]   imx-entity-list-sorted-dialog-table[_ngcontent-%COMP%]{display:block;margin-bottom:10px}.entity-list-sorted-dialog__container[_ngcontent-%COMP%]{align-items:flex-start;display:flex;margin-top:20px}.entity-list-sorted-dialog__container[_ngcontent-%COMP%]   imx-entity-list-sorted-dialog-table[_ngcontent-%COMP%], .entity-list-sorted-dialog__container[_ngcontent-%COMP%]   imx-entity-list-sorted-select-table[_ngcontent-%COMP%]{border-right:1px solid #e6e9ef;flex:calc(50% - 10px) 0 0;max-height:50%;padding:10px}.hint[_ngcontent-%COMP%]{text-align:left;margin:5px 20px 10px 15px}"]})}return b})()},27975:(gt,X,a)=>{"use strict";a.d(X,{e:()=>u});var e=a(17700),n=a(19212),s=a(96814),l=a(56223),i=a(75986),t=a(87466),p=a(33946),c=a(71365),o=a(1614);function x(m,b){if(1&m&&(n.TgZ(0,"mat-radio-button",9),n._uU(1),n.ALo(2,"readI18n"),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&m){const I=b.$implicit;n.Q6J("value",I.id),n.xp6(),n.hij("",n.lcZ(2,3,I.title)," "),n.xp6(3),n.hij(" (ID: ",I.id,")")}}let u=(()=>{class m{constructor(I){this.data=I}getDialogResult(){return this.data}static#e=this.\u0275fac=function(H){return new(H||m)(n.Y36(e.WI))};static#t=this.\u0275cmp=n.Xpm({type:m,selectors:[["ng-component"]],decls:45,vars:46,consts:[["heading","imxplatform.merge-duplicates-dialog.header","icon","icon-compare","submitButtonLabel","imxplatform.merge-duplicates-dialog.button",3,"submitButtonDisabled","getSubmitResult"],[1,"dialog-form"],[1,"dialog-form-group"],[1,"small",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"checkbox-group"],["value","NONE"],["value","WITH_CONTEXT_PLS"],["value","WITHOUT_CONTEXT_PLS"],[3,"value"]],template:function(H,O){1&H&&(n.TgZ(0,"imx-dialog",0)(1,"div",1)(2,"div")(3,"h3"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"div",2)(7,"p"),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"mat-radio-group",3),n.NdJ("ngModelChange",function(G){return O.data.masterId=G}),n.YNc(11,x,5,5,"mat-radio-button",4),n.qZA()(),n.TgZ(12,"h3"),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.TgZ(15,"div",2)(16,"div",5)(17,"mat-checkbox",3),n.NdJ("ngModelChange",function(G){return O.data.inheritAppearances=G}),n._uU(18),n.ALo(19,"translate"),n.qZA(),n.TgZ(20,"mat-checkbox",3),n.NdJ("ngModelChange",function(G){return O.data.inheritInputFields=G}),n._uU(21),n.ALo(22,"translate"),n.qZA(),n.TgZ(23,"mat-checkbox",3),n.NdJ("ngModelChange",function(G){return O.data.inheritContactAddressbaseAssignment=G}),n._uU(24),n.ALo(25,"translate"),n.qZA(),n.TgZ(26,"mat-checkbox",3),n.NdJ("ngModelChange",function(G){return O.data.inheritEntityLists=G}),n._uU(27),n.ALo(28,"translate"),n.qZA(),n.TgZ(29,"mat-checkbox",3),n.NdJ("ngModelChange",function(G){return O.data.inheritAttributes=G}),n._uU(30),n.ALo(31,"translate"),n.qZA()(),n.TgZ(32,"label"),n._uU(33),n.ALo(34,"translate"),n.qZA(),n.TgZ(35,"mat-radio-group",3),n.NdJ("ngModelChange",function(G){return O.data.inheritMediaType=G}),n.TgZ(36,"mat-radio-button",6),n._uU(37),n.ALo(38,"translate"),n.qZA(),n.TgZ(39,"mat-radio-button",7),n._uU(40),n.ALo(41,"translate"),n.qZA(),n.TgZ(42,"mat-radio-button",8),n._uU(43),n.ALo(44,"translate"),n.qZA()()()()()()),2&H&&(n.Q6J("submitButtonDisabled",null==O.data.masterId)("getSubmitResult",O.getDialogResult.bind(O)),n.xp6(4),n.Oqu(n.lcZ(5,22,"imxplatform.merge-duplicates-dialog.target-stem")),n.xp6(4),n.Oqu(n.lcZ(9,24,"imxplatform.merge-duplicates-dialog.target-stem-hint")),n.xp6(2),n.Q6J("ngModel",O.data.masterId),n.xp6(),n.Q6J("ngForOf",O.data.duplicates),n.xp6(2),n.Oqu(n.lcZ(14,26,"imxplatform.merge-duplicates-dialog.data-inheritance.title")),n.xp6(4),n.Q6J("ngModel",O.data.inheritAppearances),n.xp6(),n.Oqu(n.lcZ(19,28,"imxplatform.merge-duplicates-dialog.data-inheritance.publications")),n.xp6(2),n.Q6J("ngModel",O.data.inheritInputFields),n.xp6(),n.Oqu(n.lcZ(22,30,"imxplatform.merge-duplicates-dialog.data-inheritance.input-fields")),n.xp6(2),n.Q6J("ngModel",O.data.inheritContactAddressbaseAssignment),n.xp6(),n.Oqu(n.lcZ(25,32,"imxplatform.merge-duplicates-dialog.data-inheritance.contact-stems")),n.xp6(2),n.Q6J("ngModel",O.data.inheritEntityLists),n.xp6(),n.Oqu(n.lcZ(28,34,"imxplatform.merge-duplicates-dialog.data-inheritance.entity-lists")),n.xp6(2),n.Q6J("ngModel",O.data.inheritAttributes),n.xp6(),n.Oqu(n.lcZ(31,36,"imxplatform.merge-duplicates-dialog.data-inheritance.stem-attributes")),n.xp6(3),n.Oqu(n.lcZ(34,38,"imxplatform.merge-duplicates-dialog.media.title")),n.xp6(2),n.Q6J("ngModel",O.data.inheritMediaType),n.xp6(2),n.Oqu(n.lcZ(38,40,"imxplatform.merge-duplicates-dialog.media.none")),n.xp6(3),n.Oqu(n.lcZ(41,42,"imxplatform.merge-duplicates-dialog.media.productline-apply")),n.xp6(3),n.Oqu(n.lcZ(44,44,"imxplatform.merge-duplicates-dialog.media.productline-ignore")))},dependencies:[s.sg,l.JJ,l.On,i.oG,t.VQ,t.U0,p.a,c.X$,o.j],styles:[".checkbox-group[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return m})()},94366:(gt,X,a)=>{"use strict";a.d(X,{f:()=>i});var e=a(17700),n=a(19212),s=a(33946),l=a(71365);let i=(()=>{class t{constructor(c){this.data=c}getDialogResult(){return!0}static#e=this.\u0275fac=function(o){return new(o||t)(n.Y36(e.WI))};static#t=this.\u0275cmp=n.Xpm({type:t,selectors:[["ng-component"]],decls:5,vars:11,consts:[[3,"heading","icon","submitButtonLabel","cancelButtonLabel","getCancelResult"],[1,"dialog-txt-md",3,"innerHTML"]],template:function(o,x){1&o&&(n.TgZ(0,"imx-dialog",0),n._UZ(1,"p",1),n.ALo(2,"translate"),n._UZ(3,"p",1),n.ALo(4,"translate"),n.qZA()),2&o&&(n.Q6J("heading","imxplatform.dialog.hint-header")("icon",x.data.iconClass)("submitButtonLabel",void 0)("cancelButtonLabel",x.data.confirmButtonKey?x.data.confirmButtonKey:"imxplatform.dialog.common-close")("getCancelResult",x.getDialogResult.bind(x)),n.xp6(),n.Q6J("innerHTML",n.lcZ(2,7,x.data.text),n.oJD),n.xp6(2),n.Q6J("innerHTML",n.lcZ(4,9,x.data.subtext),n.oJD))},dependencies:[s.a,l.X$],encapsulation:2})}return t})()},44382:(gt,X,a)=>{"use strict";a.d(X,{n:()=>J});var e=a(17700),n=a(49193),s=a(62413),l=a(96124),i=a(15604),t=a(22819),p=a(48499),c=a(19212);let o=(()=>{class q extends p.I1{constructor(Y,K){super(),this.collectionsService=Y,this.imxPlatformDataAccessService=K}getOptions(Y,K){return this.imxPlatformDataAccessService.getImportAssignments$(Y).pipe((0,s.K)(ne=>(0,n.of)([])),(0,l.U)(ne=>ne?ne.map(ee=>({label:ee.importSource,value:ee.importSource})).reduce((ee,$)=>ee.length?(-1===ee.findIndex(ge=>ge.value===$.value)&&ee.push($),ee):[$],[]):(0,n.of)([])))}static#e=this.\u0275fac=function(K){return new(K||q)(c.LFG(i.f),c.LFG(t.nq))};static#t=this.\u0275prov=c.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"})}return q})();var x=a(96814),u=a(75986),m=a(33946),b=a(71365),I=a(1614);const H=(q,j)=>({title:q,id:j});function O(q,j){if(1&q&&(c._UZ(0,"p",3),c.ALo(1,"translate"),c.ALo(2,"readI18n")),2&q){const Y=c.oxw();c.Q6J("innerHTML",c.xi3(1,1,Y.data.i18n,c.WLB(6,H,c.lcZ(2,4,Y.data.title),Y.data.ids[0])),c.oJD)}}const P=q=>({count:q});function G(q,j){if(1&q&&(c._UZ(0,"p",3),c.ALo(1,"translate")),2&q){const Y=c.oxw();c.Q6J("innerHTML",c.xi3(1,1,Y.data.i18n,c.VKq(4,P,Y.data.count)),c.oJD)}}function B(q,j){if(1&q){const Y=c.EpF();c.TgZ(0,"div",6)(1,"mat-checkbox",7),c.NdJ("change",function(ne){c.CHM(Y);const ee=c.oxw(2);return c.KtG(ee.handleSelectionChange(ne))}),c._uU(2),c.qZA()()}if(2&q){const Y=j.$implicit,K=c.oxw(2);c.xp6(),c.Q6J("value",Y.value)("checked",K.isSelected(Y.value)),c.xp6(),c.hij(" ",Y.label," ")}}function ae(q,j){if(1&q&&(c.ynx(0),c._UZ(1,"p",4),c.ALo(2,"translate"),c.YNc(3,B,3,3,"div",5),c.BQk()),2&q){const Y=c.oxw();c.xp6(),c.Q6J("innerHTML",c.lcZ(2,2,Y.data.sourcesI18n),c.oJD),c.xp6(2),c.Q6J("ngForOf",Y.importAssignmentSourceOptions)}}let J=(()=>{class q{constructor(Y,K){this.data=Y,this.importAssignmentOptionProvider=K,this.importAssignmentSources=[],this.importAssignmentSources=[],!0===this.data.queryForAssignments&&K.getOptions(this.data.ids,void 0).subscribe(ne=>{this.importAssignmentSourceOptions=ne})}getDialogResult(){return this.importAssignmentSources}isSelected(Y){return this.importAssignmentSources.some(K=>K===Y)}handleSelectionChange({checked:Y,source:{value:K}}){Y?this.importAssignmentSources.push(K):this._removeFromSelection(K)}_removeFromSelection(Y){const K=this.importAssignmentSources.findIndex(ne=>ne===Y);-1!==K&&this.importAssignmentSources.splice(K,1)}noSourcesSelected(){return!(!this.importAssignmentSourceOptions||0===this.importAssignmentSourceOptions.length)&&0===this.importAssignmentSources.length&&this.importAssignmentSourceOptions.length>1}static#e=this.\u0275fac=function(K){return new(K||q)(c.Y36(e.WI),c.Y36(o))};static#t=this.\u0275cmp=c.Xpm({type:q,selectors:[["ng-component"]],decls:4,vars:5,consts:[["heading","imxplatform.dialog.import-header","icon","icon-inbox","dialogType","form","submitButtonLabel","imxplatform.dialog.import-button","cancelButtonLabel","imxplatform.dialog.import-abort",3,"getSubmitResult","submitButtonDisabled"],["class","dialog-txt-md",3,"innerHTML",4,"ngIf"],[4,"ngIf"],[1,"dialog-txt-md",3,"innerHTML"],[1,"dialog-txt-multi-sources",3,"innerHTML"],["class","select-option",4,"ngFor","ngForOf"],[1,"select-option"],[1,"small",3,"value","checked","change"]],template:function(K,ne){1&K&&(c.TgZ(0,"imx-dialog",0),c.YNc(1,O,3,9,"p",1)(2,G,2,6,"p",1)(3,ae,4,4,"ng-container",2),c.qZA()),2&K&&(c.Q6J("getSubmitResult",ne.getDialogResult.bind(ne))("submitButtonDisabled",ne.noSourcesSelected()),c.xp6(),c.Q6J("ngIf",!ne.data.batch),c.xp6(),c.Q6J("ngIf",ne.data.batch),c.xp6(),c.Q6J("ngIf",ne.importAssignmentSourceOptions&&ne.importAssignmentSourceOptions.length>1))},dependencies:[x.sg,x.O5,u.oG,m.a,b.X$,I.j],styles:[".dialog-txt-multi-sources[_ngcontent-%COMP%]{font-size:14px;margin-top:15px;margin-bottom:15px;word-break:break-word}"]})}return q})()},87820:(gt,X,a)=>{"use strict";a.d(X,{Q:()=>o});var e=a(17700),n=a(21473),s=a(22819),l=a(19212),i=a(56223),t=a(67849),p=a(61880),c=a(33946);let o=(()=>{class x{constructor(m,b){this.dataAccess=m,this.data=b}ngOnInit(){this.dataAccess.getImportSourceData(this.data.importSource,this.data.importPurpose,this.data.importIdentifier).subscribe(m=>{this.importDataDisplay=m.importSourceData},m=>{this.importDataDisplay=m.error&&(0,n.Ec)(m.error)?m.error.localizedMessage.join(" "):m.message?m.message:m})}static#e=this.\u0275fac=function(b){return new(b||x)(l.Y36(s.nq),l.Y36(e.WI))};static#t=this.\u0275cmp=l.Xpm({type:x,selectors:[["ng-component"]],decls:8,vars:9,consts:[["heading","imxplatform.dialog.import-source-data","icon","icon-inbox","dialogType","form","cancelButtonLabel","imxplatform.dialog.common-close",3,"submitButtonLabel"],[3,"label","customModel"],[3,"ngModel","disableControl","ngModelChange"]],template:function(b,I){1&b&&(l.TgZ(0,"imx-dialog",0),l._UZ(1,"br")(2,"imx-base-read-only",1)(3,"br")(4,"imx-base-read-only",1)(5,"br")(6,"imx-base-read-only",1),l.TgZ(7,"imx-base-multi-input",2),l.NdJ("ngModelChange",function(O){return I.importDataDisplay=O}),l.qZA()()),2&b&&(l.Q6J("submitButtonLabel",void 0),l.xp6(2),l.Q6J("label","filter.AddressPoi.importSource")("customModel",I.data.importSource),l.xp6(2),l.Q6J("label","filter.AddressPoi.importPurpose")("customModel",I.data.importPurpose),l.xp6(2),l.Q6J("label","filter.AddressPoi.importIdentifier")("customModel",I.data.importIdentifier),l.xp6(),l.Q6J("ngModel",I.importDataDisplay)("disableControl",!0))},dependencies:[i.JJ,i.On,t.x,p.Q,c.a],styles:["imx-base-multi-input[_ngcontent-%COMP%]     textarea{width:100%;min-height:300px!important}"]})}return x})()},91630:(gt,X,a)=>{"use strict";a.d(X,{R:()=>q});var e=a(56223),n=a(17700),s=a(79309),l=a(72079),i=a(96124),t=a(19352),p=a(62361),c=a(48499),o=a(57462),x=a(39693),u=a(19212),m=a(96814),b=a(75986),I=a(71365),H=a(54362),O=a(10001),P=a(33946);const G=["dialogFrame"];function B(K,ne){if(1&K&&(u.ynx(0),u._UZ(1,"imx-checkbox-select",10),u.BQk()),2&K){const ee=u.oxw(2);u.xp6(),u.Q6J("field",ee.checkboxSelectField)("control",ee.listSelectionControl)("form",ee.formGroup)("formHandler",ee.data.formHandler)("optionProvider",ee.listOptionProvider)("rowLayout",!1)}}function ae(K,ne){1&K&&(u.TgZ(0,"span",11),u._uU(1,"imxplatform.entity-list.object-list.create-dialog.no-list"),u.qZA())}function J(K,ne){if(1&K&&(u.ynx(0),u.TgZ(1,"mat-checkbox",7),u._uU(2),u.ALo(3,"translate"),u.qZA(),u._UZ(4,"hr"),u.YNc(5,B,2,6,"ng-container",8)(6,ae,2,0,"ng-template",null,9,u.W1O),u._UZ(8,"hr"),u.BQk()),2&K){const ee=ne.ngIf,$=u.MAs(7),ue=u.oxw();u.xp6(),u.Q6J("formControl",ue.overwriteListControl),u.xp6(),u.Oqu(u.lcZ(3,4,"imxplatform.entity-list.object-list.create-dialog.overwrite-list")),u.xp6(3),u.Q6J("ngIf",ee.length>0)("ngIfElse",$)}}let q=(()=>{class K{constructor(ee,$){this.entityListsDataAccessService=ee,this.data=$,this.formGroup=new e.nJ({}),this.listSelectionControl=new e.p4,this.overwriteListControl=new e.p4,this.createNewListControl=new e.p4(!1),this.newListNameControl=new e.p4("",e.kI.required),this.checkboxSelectField=new p.A("checkboxSelectField",""),this.destroy$=new l.xQ,this.formGroup.registerControl("listSelection",this.listSelectionControl),this.formGroup.registerControl("overwriteList",this.overwriteListControl),this.formGroup.registerControl("createNewList",this.createNewListControl),this.formGroup.registerControl("newListName",this.newListNameControl),this.formGroup.setValidators(j),this.entityListsDataAccessService.forceReload(),this.objectList$=this.entityListsDataAccessService.objectLists$().pipe((0,i.U)(ue=>ue.map(ge=>ge.entity)),(0,i.U)(ue=>ue.filter(ge=>ge.listType.id===s.E6.OBJECT_LIST.id&&ge.entityType===$.entityType))),this.newListNameControl.setAsyncValidators((0,o.wB)(this.objectList$)),this.listOptionProvider=new Y(this.objectList$)}ngOnInit(){this.newListNameControl.disable(),this.createNewListControl.valueChanges.pipe((0,t.R)(this.destroy$)).subscribe(ee=>{ee?this.newListNameControl.enable():this.newListNameControl.disable()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}handleSubmit(){this.formGroup.valid&&this.dialogFrame.handleConfirm()}getDialogResult(){return this.formGroup.value}static#e=this.\u0275fac=function($){return new($||K)(u.Y36(x.$),u.Y36(n.WI))};static#t=this.\u0275cmp=u.Xpm({type:K,selectors:[["ng-component"]],viewQuery:function($,ue){if(1&$&&u.Gf(G,7),2&$){let ge;u.iGM(ge=u.CRH())&&(ue.dialogFrame=ge.first)}},hostAttrs:[1,"object-list-dialog"],decls:10,vars:12,consts:[["heading","imxplatform.entity-list.object-list.create-dialog.header","icon","icon-star--add","submitButtonLabel","imxplatform.entity-list.object-list.create-dialog.confirm",3,"submitButtonDisabled","getSubmitResult"],["dialogFrame",""],["id","object-list-dialog",3,"formGroup","submit"],[1,"dialog-form"],[4,"ngIf"],["id","createNewList","formControlName","createNewList",1,"small","checkbox"],[3,"formGroup","formControl","errors"],["id","overwriteList",1,"checkbox",3,"formControl"],[4,"ngIf","ngIfElse"],["noExistingList",""],[3,"field","control","form","formHandler","optionProvider","rowLayout"],["translate",""]],template:function($,ue){1&$&&(u.TgZ(0,"imx-dialog",0,1)(2,"form",2),u.NdJ("submit",function(){return ue.handleSubmit()}),u.TgZ(3,"div",3),u.YNc(4,J,9,6,"ng-container",4),u.ALo(5,"async"),u.TgZ(6,"mat-checkbox",5),u._uU(7),u.ALo(8,"translate"),u.qZA(),u._UZ(9,"imx-base-input",6),u.qZA()()()),2&$&&(u.Q6J("submitButtonDisabled",ue.formGroup.invalid)("getSubmitResult",ue.getDialogResult.bind(ue)),u.xp6(2),u.Q6J("formGroup",ue.formGroup),u.xp6(2),u.Q6J("ngIf",u.lcZ(5,8,ue.objectList$)),u.xp6(3),u.Oqu(u.lcZ(8,10,"imxplatform.entity-list.object-list.create-dialog.new-label")),u.xp6(2),u.Q6J("formGroup",ue.formGroup)("formControl",ue.newListNameControl)("errors",ue.newListNameControl.errors))},dependencies:[m.O5,e._Y,e.JJ,e.JL,b.oG,e.oH,e.sg,e.u,I.Pi,H.H,O.r,P.a,m.Ov,I.X$],styles:["hr[_ngcontent-%COMP%]{margin:15px 0;border:1px solid rgba(10,38,99,.5)}.list-name-input[_ngcontent-%COMP%]{padding:5px 0 0 20px}"]})}return K})();function j(K){const ne=K.value;return ne&&(ne.listSelection&&0!==ne.listSelection.length||ne.newListName)?null:{noSelection:!0}}class Y extends c.I1{constructor(ne){super(),this.existingList$=ne}getOptions(ne,ee){return this.existingList$.pipe((0,i.U)($=>$.map(ue=>({label:ue.name,value:ue.id}))))}}},6828:(gt,X,a)=>{"use strict";a.d(X,{C:()=>u});var e=a(56223),n=a(17700),s=a(19212),l=a(71365),i=a(67338),t=a(33946),p=a(35617);const c=()=>({width:"100%",height:"100%"}),o=m=>[m];class x{constructor(b,I,H){this.id=b,this.name=I,this.parent=void 0===H?H=null:H,this.children=[],this.parent&&this.parent.children.push(this)}}let u=(()=>{class m{constructor(I){this.data=I,this.formGroup=new e.nJ({}),this.selectionControl=new e.p4,this.formGroup.registerControl("folderSelection",this.selectionControl),this.selectionControl.setValue(["/"]),this.data.folderTree=this.buildFolderTree(this.data.folders)}displayFn(I){return I?I.name:void 0}sortNodesFn(I,H,O){return I.name.localeCompare(H.name)}getDialogResult(){return this.convertFolderTreeIdToString(this.formGroup.get("folderSelection").value[0])}convertFolderTreeIdToString(I){const O=this.findFolderTreeById(this.data.folderTree,I);return null!==O?this.convertFolderTreeToString(O):null}findFolderTreeById(I,H){if(I.id===H)return I;if(I.children.length>0)for(const O of I.children){const P=this.findFolderTreeById(O,H);if(null!==P)return P}return null}convertFolderTreeToString(I){let H="";do{H.length>0&&(H="/"+H),H=I.name+H,I=I.parent}while(null!==I&&0!==I.id);return H}buildFolderTree(I){let H=0;const O=new x(H++,"/");for(const P of I){const G=P.split("/");let B=O;for(const ae of G){let J=B.children.find(q=>q.name===ae);void 0===J&&(J=new x(H++,ae,B)),B=J}}return O}static#e=this.\u0275fac=function(H){return new(H||m)(s.Y36(n.WI))};static#t=this.\u0275cmp=s.Xpm({type:m,selectors:[["ng-component"]],decls:7,vars:13,consts:[["heading","imxplatform.media.list.action.move.header","icon","icon-picture","submitButtonLabel","imxplatform.media.list.action.move.confirm",3,"submitButtonDisabled","getSubmitResult"],[1,"tree-group"],[1,"dialog-form",3,"formGroup"],["translate",""],["formControlName","folderSelection",3,"availableItems","singleSelect","displayNodeFn","sortNodesFn","sortRootNodesFn"]],template:function(H,O){1&H&&(s.TgZ(0,"imx-dialog",0)(1,"div",1)(2,"p-scrollPanel")(3,"form",2)(4,"label",3),s._uU(5,"imxplatform.media.list.action.move.label"),s.qZA(),s._UZ(6,"imx-base-tree",4),s.qZA()()()()),2&H&&(s.Q6J("submitButtonDisabled",!1)("getSubmitResult",O.getDialogResult.bind(O)),s.xp6(2),s.Akn(s.DdM(10,c)),s.xp6(),s.Q6J("formGroup",O.formGroup),s.xp6(3),s.Q6J("availableItems",s.VKq(11,o,O.data.folderTree))("singleSelect",!0)("displayNodeFn",O.displayFn)("sortNodesFn",O.sortNodesFn)("sortRootNodesFn",O.sortNodesFn))},dependencies:[e._Y,e.JJ,e.JL,e.sg,e.u,l.Pi,i.P,t.a,p.Q],encapsulation:2})}return m})()},42756:(gt,X,a)=>{"use strict";a.d(X,{x:()=>Te});var e=a(17700),n=a(19212),s=a(96814),l=a(56223),i=a(75986),t=a(33946),p=a(28907),c=a(42094),o=a(17301),x=a(71365);function u(me,Se){1&me&&n.GkF(0)}function m(me,Se){1&me&&n.GkF(0)}function b(me,Se){1&me&&n.GkF(0)}function I(me,Se){1&me&&n.GkF(0)}function H(me,Se){1&me&&n.GkF(0)}function O(me,Se){1&me&&n.GkF(0)}function P(me,Se){1&me&&n.GkF(0)}function G(me,Se){1&me&&n.GkF(0)}function B(me,Se){1&me&&n.GkF(0)}function ae(me,Se){1&me&&n.GkF(0)}function J(me,Se){1&me&&n.GkF(0)}function q(me,Se){if(1&me){const Ue=n.EpF();n.TgZ(0,"div",9)(1,"mat-checkbox",10),n.NdJ("change",function(et){n.CHM(Ue);const Et=n.oxw(2);return n.KtG(Et.onSelectionChanged(et))}),n.qZA(),n._UZ(2,"imx-form-control",11),n.qZA()}if(2&me){const Ue=n.oxw().$implicit,We=n.oxw();n.xp6(),n.Q6J("checked",!1)("value",Ue),n.xp6(),n.Q6J("field",We.data.formHandler.formConfiguration.findFormFieldById(Ue))("control",We.data.formHandler.formGroup.get(Ue))("formHandler",We.data.formHandler)("form",We.data.formHandler.formGroup)("config",We.data.formHandler.formConfiguration)}}function j(me,Se){if(1&me&&n.YNc(0,q,3,7,"div",8),2&me){const Ue=Se.$implicit,We=n.oxw();n.Q6J("hasFieldReadPermission",Ue)("hasFieldReadPermissionFormHandler",We.data.formHandler)}}const Y=()=>({$implicit:"title"}),K=()=>({$implicit:"description"}),ne=()=>({$implicit:"altText"}),ee=()=>({$implicit:"mediaLicense"}),$=()=>({$implicit:"copyright"}),ue=()=>({$implicit:"sourceUrl"}),ge=()=>({$implicit:"author"}),Ke=()=>({$implicit:"authorUrl"}),at=()=>({$implicit:"searchKeywords"}),Le=()=>({$implicit:"categories"}),R=()=>({$implicit:"mediaContent"});let Te=(()=>{class me{constructor(Ue){this.data=Ue}onSelectionChanged(Ue){this.setComponentState(Ue.source.value,Ue.checked)}setComponentState(Ue,We){const et=this.data.formHandler.formGroup.get(Ue);We?et.enable({emitEvent:!1,onlySelf:!0}):et.disable({emitEvent:!1,onlySelf:!0})}initComponents(){this.data.formHandler.formConfiguration.fields.forEach(Ue=>{this.setComponentState(Ue.id,!1)})}ngAfterViewInit(){setTimeout(()=>this.initComponents(),10)}static#e=this.\u0275fac=function(We){return new(We||me)(n.Y36(e.WI))};static#t=this.\u0275cmp=n.Xpm({type:me,selectors:[["ng-component"]],decls:24,vars:38,consts:[["heading","imxplatform.media.list.action.update.header","icon","icon-pencil--squares","dialogType","form"],["form-header","",3,"formHandler"],["id","pooledmedia-update",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[1,"media-edit__field-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["imxControl",""],["class","media-edit__checked-row",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[1,"media-edit__checked-row"],[1,"small","checkbox",3,"checked","value","change"],[3,"field","control","formHandler","form","config"]],template:function(We,et){if(1&We&&(n.TgZ(0,"imx-dialog",0),n._UZ(1,"imx-language-switch-button",1),n.TgZ(2,"form",2)(3,"div",3)(4,"div",4)(5,"h3"),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"div",5),n.YNc(9,u,1,0,"ng-container",6)(10,m,1,0,"ng-container",6)(11,b,1,0,"ng-container",6),n.qZA(),n.TgZ(12,"div",5),n.YNc(13,I,1,0,"ng-container",6)(14,H,1,0,"ng-container",6)(15,O,1,0,"ng-container",6)(16,P,1,0,"ng-container",6)(17,G,1,0,"ng-container",6),n.qZA(),n.TgZ(18,"div",5),n.YNc(19,B,1,0,"ng-container",6)(20,ae,1,0,"ng-container",6)(21,J,1,0,"ng-container",6),n.qZA()()()()(),n.YNc(22,j,1,2,"ng-template",null,7,n.W1O)),2&We){const Et=n.MAs(23);n.xp6(),n.Q6J("formHandler",et.data.formHandler),n.xp6(),n.Q6J("formGroup",et.data.formHandler.formGroup),n.xp6(4),n.Oqu(n.lcZ(7,25,"imxplatform.common-entity.edit.panels.media.attributes")),n.xp6(3),n.Q6J("ngTemplateOutlet",Et)("ngTemplateOutletContext",n.DdM(27,Y)),n.xp6(),n.Q6J("ngTemplateOutlet",Et)("ngTemplateOutletContext",n.DdM(28,K)),n.xp6(),n.Q6J("ngTemplateOutlet",Et)("ngTemplateOutletContext",n.DdM(29,ne)),n.xp6(2),n.Q6J("ngTemplateOutlet",Et)("ngTemplateOutletContext",n.DdM(30,ee)),n.xp6(),n.Q6J("ngTemplateOutlet",Et)("ngTemplateOutletContext",n.DdM(31,$)),n.xp6(),n.Q6J("ngTemplateOutlet",Et)("ngTemplateOutletContext",n.DdM(32,ue)),n.xp6(),n.Q6J("ngTemplateOutlet",Et)("ngTemplateOutletContext",n.DdM(33,ge)),n.xp6(),n.Q6J("ngTemplateOutlet",Et)("ngTemplateOutletContext",n.DdM(34,Ke)),n.xp6(2),n.Q6J("ngTemplateOutlet",Et)("ngTemplateOutletContext",n.DdM(35,at)),n.xp6(),n.Q6J("ngTemplateOutlet",Et)("ngTemplateOutletContext",n.DdM(36,Le)),n.xp6(),n.Q6J("ngTemplateOutlet",Et)("ngTemplateOutletContext",n.DdM(37,R))}},dependencies:[s.tP,l._Y,l.JL,i.oG,l.sg,t.a,p.A,c.H,o.j,x.X$],styles:[".media-edit__meta-data-group[_ngcontent-%COMP%]{margin:15px 0}.media-edit__field-group[_ngcontent-%COMP%]{padding:15px 0;border-top:1px solid #ced4e0}.media-edit__checked-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.media-edit__checked-row[_ngcontent-%COMP%]   .checkbox[_ngcontent-%COMP%]{flex:0 0 auto;padding-right:10px;padding-top:22px}.media-edit__checked-row[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%]{flex:auto}"]})}return me})()},49346:(gt,X,a)=>{"use strict";a.d(X,{E:()=>ae});var e=a(17700),n=a(49193),s=a(23291),l=a(17927),i=a(96124),t=a(22819),p=a(48485),c=a(59143),o=a(88535),x=a(19212),u=a(96814),m=a(33946),b=a(71365),I=a(1614);const H=(J,q)=>({title:J,id:q});function O(J,q){if(1&J&&(x._UZ(0,"p",3),x.ALo(1,"translate"),x.ALo(2,"readI18n")),2&J){const j=x.oxw();x.Q6J("innerHTML",x.xi3(1,1,j.data.i18n,x.WLB(6,H,x.lcZ(2,4,j.data.title),j.data.objectId)),x.oJD)}}const P=J=>({count:J});function G(J,q){if(1&J&&(x._UZ(0,"p",3),x.ALo(1,"translate")),2&J){const j=x.oxw();x.Q6J("innerHTML",x.xi3(1,1,j.data.i18n,x.VKq(4,P,j.data.count)),x.oJD)}}function B(J,q){if(1&J&&(x._UZ(0,"p",3),x.ALo(1,"translate")),2&J){const j=x.oxw();x.Q6J("innerHTML",x.lcZ(1,1,j.getReferencesNoPermissionInfoKey()),x.oJD)}}let ae=(()=>{class J{constructor(j,Y,K,ne){this.data=j,this.dataAccess=Y,this.permissionServiceRegistry=K,this.userMessageService=ne,this.hasSavePermission$=(0,n.of)(!1)}ngOnInit(){this.loadReferences()}loadReferences(){this.referenceSpecification$=this.dataAccess.getReferenceSpecification(this.data.entityType,this.data.objectId,{},this.userMessageService).pipe((0,l.b)(j=>{if(this.referenceSpecification=j,this.hasSavePermission$=(0,n.of)(!0),j&&j.references.length>0){const Y=[];j.references.forEach(K=>{Y.push(this.hasSavePermission((0,o.nt)(K),(0,o.zv)(K)))}),this.hasSavePermission$=(0,s.aj)(Y).pipe((0,i.U)(K=>K.reduce((ne,ee)=>ne&&ee)))}}))}hasSavePermission(j,Y){const K=this.permissionServiceRegistry.getEntityPermissionService(j);return K?K.calcSavePermissionById(Y).pipe((0,i.U)(ne=>ne)):(0,n.of)(!0)}getReferencesInfoTextKey(){return"imxplatform.media.list.action.delete.info"}getReferencesNoPermissionInfoKey(){return"imxplatform.media.list.action.delete.no-permission-info"}getOptionalColumnDef(){return{accessor:"totalImages",width:"10%",columnTitle:"imxplatform.common-entity.list.action.references.column-images-count"}}getDialogResult(){return{referenceSpecification:this.referenceSpecification}}static#e=this.\u0275fac=function(Y){return new(Y||J)(x.Y36(e.WI),x.Y36(t.nq),x.Y36(p.J),x.Y36(c.Y))};static#t=this.\u0275cmp=x.Xpm({type:J,selectors:[["ng-component"]],decls:7,vars:16,consts:[["cancelButtonLabel","imxplatform.dialog.delete-abort",3,"heading","submitButtonLabel","submitButtonDisabled","icon","getSubmitResult","dialogType"],["class","dialog-txt-md",3,"innerHTML",4,"ngIf"],[3,"referenceSpecification$","referencesInfoText","optionalColumnDef"],[1,"dialog-txt-md",3,"innerHTML"]],template:function(Y,K){1&Y&&(x.TgZ(0,"imx-dialog",0),x.ALo(1,"async"),x.YNc(2,O,3,9,"p",1)(3,G,2,6,"p",1),x._UZ(4,"imx-data-object-references",2),x.YNc(5,B,2,3,"p",1),x.ALo(6,"async"),x.qZA()),2&Y&&(x.Q6J("heading",K.data.dialogTitle||(K.data.count&&K.data.count>1?"imxplatform.dialog.delete-header-plural":"imxplatform.dialog.delete-header"))("submitButtonLabel",K.data.deleteButtonLabel||"imxplatform.dialog.delete-button")("submitButtonDisabled",!x.lcZ(1,12,K.hasSavePermission$))("icon",K.data.icon?K.data.icon:"icon-trash red")("getSubmitResult",K.getDialogResult.bind(K))("dialogType","form"),x.xp6(2),x.Q6J("ngIf",!K.data.batch),x.xp6(),x.Q6J("ngIf",K.data.batch),x.xp6(),x.Q6J("referenceSpecification$",K.referenceSpecification$)("referencesInfoText",K.getReferencesInfoTextKey())("optionalColumnDef",K.getOptionalColumnDef()),x.xp6(),x.Q6J("ngIf",!x.lcZ(6,14,K.hasSavePermission$)))},dependencies:[u.O5,m.a,o.AF,u.Ov,b.X$,I.j],encapsulation:2})}return J})()},20985:(gt,X,a)=>{"use strict";a.d(X,{l:()=>u});var e=a(17700),n=a(19212),s=a(96814),l=a(23680),i=a(64170),t=a(98525),p=a(71365),c=a(33946);function o(m,b){if(1&m&&(n.TgZ(0,"mat-option",6),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&m){const I=b.$implicit,H=n.oxw();n.Q6J("value",I.key),n.xp6(),n.Oqu(n.lcZ(2,2,H.getResourceLabelKey(I)))}}function x(m,b){1&m&&(n.TgZ(0,"mat-hint"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&m&&(n.xp6(),n.Oqu(n.lcZ(2,1,"imxplatform.common-entity.list.action.set-state.noneHint")))}let u=(()=>{class m{constructor(I){this.data=I,this.showNoneHint=!1,this.configuration=I,this.showNoneHint=0===this.configuration.allStates.length,this.configuration.allStates.map(H=>H.key).includes(this.configuration.currentStateKey)||(this.configuration.allStates.unshift({key:-1,name:""}),this.configuration.currentStateKey=-1)}getResourceLabelKey(I){return-1===I.key?"imxplatform.common.select-placeholder-demand":"entity.EntityState."+I.name.toLowerCase()}getDialogResult(){return this.configuration.currentStateKey}static#e=this.\u0275fac=function(H){return new(H||m)(n.Y36(e.WI))};static#t=this.\u0275cmp=n.Xpm({type:m,selectors:[["ng-component"]],decls:8,vars:6,consts:[["heading","imxplatform.common-entity.list.action.set-state.header","icon","icon-earth-confirm","submitButtonLabel","imxplatform.common-entity.list.action.set-state.confirm",3,"submitButtonDisabled","getSubmitResult"],[1,"dialog-form"],["translate",""],[3,"disabled","value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"value"]],template:function(H,O){1&H&&(n.TgZ(0,"imx-dialog",0)(1,"div",1)(2,"mat-form-field")(3,"label",2),n._uU(4,"imxplatform.common-entity.list.action.set-state.label"),n.qZA(),n.TgZ(5,"mat-select",3),n.NdJ("valueChange",function(G){return O.configuration.currentStateKey=G}),n.YNc(6,o,3,4,"mat-option",4),n.qZA(),n.YNc(7,x,3,3,"mat-hint",5),n.qZA()()()),2&H&&(n.Q6J("submitButtonDisabled",-1===O.configuration.currentStateKey)("getSubmitResult",O.getDialogResult.bind(O)),n.xp6(5),n.Q6J("disabled",O.data.disableStateSelection)("value",O.configuration.currentStateKey),n.xp6(),n.Q6J("ngForOf",O.data.allStates),n.xp6(),n.Q6J("ngIf",O.showNoneHint))},dependencies:[s.sg,s.O5,l.ey,i.KE,i.bx,t.gD,p.Pi,c.a,p.X$],encapsulation:2})}return m})()},59075:(gt,X,a)=>{"use strict";a.d(X,{l:()=>Ve});var e=a(17700),n=a(79309),s=a(72079),l=a(19352),i=a(17927),t=a(96124),p=a(59143),c=a(82490),o=a(60238),x=a(21473),u=a(99123),m=a(19212),b=a(96814),I=a(56223),H=a(4938),O=a(2563),P=a(2032),G=a(64170),B=a(50308),ae=a(6554),J=a(2901),q=a(82121);let j=(()=>{class Ce extends O.y{constructor(){super(...arguments),this.passwordFieldState={icon:"eye",type:"password"}}togglePasswordFieldState(){this.passwordFieldState="password"===this.passwordFieldState.type?{type:"text",icon:"eye-crossed"}:{type:"password",icon:"eye"}}static#e=this.\u0275fac=(()=>{let ht;return function(Un){return(ht||(ht=m.n5z(Ce)))(Un||Ce)}})();static#t=this.\u0275cmp=m.Xpm({type:Ce,selectors:[["imx-base-password-input"]],features:[m._Bn([{provide:I.JU,useExisting:(0,m.Gpc)(()=>Ce),multi:!0}]),m.qOj],decls:7,vars:11,consts:[[3,"label","forId","required"],[1,"input-wrapper"],["matInput","",3,"ngModel","id","disabled","required","ngModelChange","blur"],[1,"password-toggle",3,"icon","click"],[3,"hint"],[3,"errors"]],template:function(Qt,Un){1&Qt&&(m.TgZ(0,"mat-form-field"),m._UZ(1,"imx-base-input-label",0),m.TgZ(2,"div",1)(3,"input",2),m.NdJ("ngModelChange",function(Fn){return Un.model=Fn})("blur",function(){return Un.markAsTouched()}),m.qZA(),m.TgZ(4,"imx-icon",3),m.NdJ("click",function(){return Un.togglePasswordFieldState()}),m.qZA()(),m._UZ(5,"imx-base-input-hint",4)(6,"imx-predefined-input-error",5),m.qZA()),2&Qt&&(m.xp6(),m.Q6J("label",Un.label)("forId",Un.id)("required",Un.required),m.xp6(2),m.Q6J("ngModel",Un.model)("id",Un.id)("disabled",Un.disableControl)("required",Un.required),m.uIk("type",Un.passwordFieldState.type),m.xp6(),m.Q6J("icon",Un.passwordFieldState.icon),m.xp6(),m.Q6J("hint",Un.hint),m.xp6(),m.Q6J("errors",Un.errors))},dependencies:[I.Fj,I.JJ,I.Q7,I.On,P.Nt,G.KE,B.o,ae.g,J.u,q.a],styles:["imx-icon.password-toggle[_ngcontent-%COMP%]{display:block;position:absolute;top:2px;right:10px;z-index:2;width:14px;height:14px;padding:3px 0;text-align:center;cursor:pointer}"]})}return Ce})();var Y=a(33946),K=a(28907),ne=a(36116),ee=a(71365);function $(Ce,tt){1&Ce&&m.GkF(0)}const ue=()=>({$implicit:"userType"});function ge(Ce,tt){if(1&Ce&&(m.ynx(0),m.YNc(1,$,1,0,"ng-container",5),m.BQk()),2&Ce){m.oxw(2);const ht=m.MAs(10);m.xp6(),m.Q6J("ngTemplateOutlet",ht)("ngTemplateOutletContext",m.DdM(2,ue))}}function Ke(Ce,tt){if(1&Ce&&(m.ynx(0),m.TgZ(1,"div",7)(2,"h3"),m._uU(3),m.ALo(4,"translate"),m.TgZ(5,"i"),m._uU(6),m.ALo(7,"translate"),m.qZA()()(),m.BQk()),2&Ce){const ht=m.oxw(2);m.xp6(3),m.hij("",m.lcZ(4,2,"entity.UserType.entityName"),": "),m.xp6(3),m.Oqu(m.lcZ(7,4,"entity.UserType."+ht.data.formHandler.formGroup.get("userType").value))}}function at(Ce,tt){if(1&Ce){const ht=m.EpF();m.ynx(0),m.TgZ(1,"div",8)(2,"p",9),m.NdJ("click",function(){m.CHM(ht);const Un=m.oxw(2);return m.KtG(Un.copyTokenToClipboard())}),m._uU(3,"Token "),m._UZ(4,"span",10),m._uU(5,": "),m.TgZ(6,"i"),m._uU(7),m.qZA()()(),m.BQk()}if(2&Ce){const ht=m.oxw(2);m.xp6(7),m.Oqu(ht.data.formHandler.formGroup.get("jwtToken").value?ht.data.formHandler.formGroup.get("jwtToken").value:" --")}}function Le(Ce,tt){if(1&Ce&&(m.ynx(0),m.YNc(1,ge,2,3,"ng-container",4)(2,Ke,8,6,"ng-container",4)(3,at,8,1,"ng-container",4),m.BQk()),2&Ce){const ht=m.oxw();m.xp6(),m.Q6J("ngIf","NEW"===ht.data.mode),m.xp6(),m.Q6J("ngIf","NEW"!==ht.data.mode),m.xp6(),m.Q6J("ngIf",ht.isEditCdaUser)}}function R(Ce,tt){1&Ce&&m.GkF(0)}function Te(Ce,tt){1&Ce&&m.GkF(0)}const me=()=>({$implicit:"passwordDecrypted"});function Se(Ce,tt){if(1&Ce&&(m.ynx(0),m.YNc(1,Te,1,0,"ng-container",5),m.BQk()),2&Ce){m.oxw();const ht=m.MAs(10);m.xp6(),m.Q6J("ngTemplateOutlet",ht)("ngTemplateOutletContext",m.DdM(2,me))}}function Ue(Ce,tt){if(1&Ce&&(m.ynx(0),m._UZ(1,"imx-base-password-input",11),m.BQk()),2&Ce){const ht=m.oxw();m.xp6(),m.Q6J("required",!0)("formControl",ht.data.formHandler.formGroup.get("passwordDecrypted"))("errors",ht.data.formHandler.formGroup.get("passwordDecrypted").errors)}}function We(Ce,tt){if(1&Ce&&(m.TgZ(0,"div"),m._UZ(1,"imx-select",13),m.qZA()),2&Ce){const ht=m.oxw(2);m.xp6(),m.Q6J("field",ht.data.formHandler.formConfiguration.findFormFieldById("client"))("control",ht.data.formHandler.formGroup.get("client"))("form",ht.data.formHandler.formGroup)("formHandler",ht.data.formHandler)("optionProvider",ht.feasibleClients)}}function et(Ce,tt){if(1&Ce){const ht=m.EpF();m.TgZ(0,"button",16),m.NdJ("click",function(){m.CHM(ht);const Un=m.oxw(3);return m.KtG(Un.showClientTree())}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&Ce&&(m.xp6(),m.hij(" ",m.lcZ(2,1,"imxplatform.common-entity.edit.select-client-from-tree")," "))}function Et(Ce,tt){if(1&Ce&&(m.TgZ(0,"div"),m._UZ(1,"imx-autocomplete",14),m.YNc(2,et,3,3,"button",15),m.qZA()),2&Ce){const ht=m.oxw(2);m.xp6(),m.Q6J("field",ht.data.formHandler.formConfiguration.findFormFieldById("client"))("formHandler",ht.data.formHandler)("control",ht.data.formHandler.formGroup.controls.client)("autocompleteService",ht.clientAutocompleteService)("autocompleteFilter",ht.feasibleClientFilter),m.xp6(),m.Q6J("ngIf",ht.changeClientAllowed)}}function lt(Ce,tt){1&Ce&&m.GkF(0)}function Vt(Ce,tt){1&Ce&&m.GkF(0)}const r=()=>({$implicit:"defaultDeliveryChannelId"}),Z=()=>({$implicit:"deliveryChannelIds"});function Pt(Ce,tt){if(1&Ce&&(m.ynx(0),m._UZ(1,"br"),m.YNc(2,lt,1,0,"ng-container",5)(3,Vt,1,0,"ng-container",5),m.BQk()),2&Ce){m.oxw(2);const ht=m.MAs(10);m.xp6(2),m.Q6J("ngTemplateOutlet",ht)("ngTemplateOutletContext",m.DdM(4,r)),m.xp6(),m.Q6J("ngTemplateOutlet",ht)("ngTemplateOutletContext",m.DdM(5,Z))}}function Oe(Ce,tt){1&Ce&&m.GkF(0)}const ye=()=>({$implicit:"roles"});function ve(Ce,tt){if(1&Ce&&(m.ynx(0),m.YNc(1,Oe,1,0,"ng-container",5),m.BQk()),2&Ce){m.oxw(2);const ht=m.MAs(10);m.xp6(),m.Q6J("ngTemplateOutlet",ht)("ngTemplateOutletContext",m.DdM(2,ye))}}function ft(Ce,tt){1&Ce&&m.GkF(0)}const Dt=()=>({$implicit:"userStateId"});function Rn(Ce,tt){if(1&Ce&&(m.ynx(0),m.YNc(1,ft,1,0,"ng-container",5),m.BQk()),2&Ce){m.oxw(2);const ht=m.MAs(10);m.xp6(),m.Q6J("ngTemplateOutlet",ht)("ngTemplateOutletContext",m.DdM(2,Dt))}}function ti(Ce,tt){1&Ce&&m.GkF(0)}function Xt(Ce,tt){1&Ce&&m.GkF(0)}function Je(Ce,tt){1&Ce&&m.GkF(0)}function dt(Ce,tt){1&Ce&&m.GkF(0)}function Ie(Ce,tt){1&Ce&&m.GkF(0)}function ot(Ce,tt){1&Ce&&m.GkF(0)}function ct(Ce,tt){1&Ce&&m.GkF(0)}function tn(Ce,tt){1&Ce&&m.GkF(0)}function yi(Ce,tt){1&Ce&&m.GkF(0)}function ni(Ce,tt){1&Ce&&m.GkF(0)}function sn(Ce,tt){1&Ce&&m.GkF(0)}function bn(Ce,tt){1&Ce&&m.GkF(0)}function vt(Ce,tt){1&Ce&&m.GkF(0)}const nn=()=>({$implicit:"firstname"}),rn=()=>({$implicit:"lastname"}),ii=()=>({$implicit:"organisation"}),Oo=()=>({$implicit:"email"}),no=()=>({$implicit:"phone1"}),Li=()=>({$implicit:"phone2"}),ji=()=>({$implicit:"fax"}),Ii=()=>({$implicit:"street"}),_i=()=>({$implicit:"streetNo"}),En=()=>({$implicit:"zipcode"}),co=()=>({$implicit:"city"}),yn=()=>({$implicit:"country"}),ln=()=>({$implicit:"notices"});function He(Ce,tt){if(1&Ce&&(m.ynx(0),m.YNc(1,We,2,5,"div",4),m.ALo(2,"async"),m.YNc(3,Et,3,6,"div",4),m.ALo(4,"async"),m.YNc(5,Pt,4,6,"ng-container",4)(6,ve,2,3,"ng-container",4)(7,Rn,2,3,"ng-container",4)(8,ti,1,0,"ng-container",5)(9,Xt,1,0,"ng-container",5)(10,Je,1,0,"ng-container",5)(11,dt,1,0,"ng-container",5),m.TgZ(12,"div",12),m.YNc(13,Ie,1,0,"ng-container",5)(14,ot,1,0,"ng-container",5),m.qZA(),m.YNc(15,ct,1,0,"ng-container",5),m.TgZ(16,"div",12),m.YNc(17,tn,1,0,"ng-container",5)(18,yi,1,0,"ng-container",5),m.qZA(),m.TgZ(19,"div",12),m.YNc(20,ni,1,0,"ng-container",5)(21,sn,1,0,"ng-container",5),m.qZA(),m.YNc(22,bn,1,0,"ng-container",5)(23,vt,1,0,"ng-container",5),m.BQk()),2&Ce){const ht=m.oxw(),Qt=m.MAs(10);m.xp6(),m.Q6J("ngIf",!m.lcZ(2,31,ht.useClientHierarchy$)),m.xp6(2),m.Q6J("ngIf",m.lcZ(4,33,ht.useClientHierarchy$)),m.xp6(2),m.Q6J("ngIf",ht.isEditCdaUser),m.xp6(),m.Q6J("ngIf",!ht.isEditCdaUser),m.xp6(),m.Q6J("ngIf","NEW"===ht.data.mode||"EDIT"===ht.data.mode),m.xp6(),m.Q6J("ngTemplateOutlet",Qt)("ngTemplateOutletContext",m.DdM(35,nn)),m.xp6(),m.Q6J("ngTemplateOutlet",Qt)("ngTemplateOutletContext",m.DdM(36,rn)),m.xp6(),m.Q6J("ngTemplateOutlet",Qt)("ngTemplateOutletContext",m.DdM(37,ii)),m.xp6(),m.Q6J("ngTemplateOutlet",Qt)("ngTemplateOutletContext",m.DdM(38,Oo)),m.xp6(2),m.Q6J("ngTemplateOutlet",Qt)("ngTemplateOutletContext",m.DdM(39,no)),m.xp6(),m.Q6J("ngTemplateOutlet",Qt)("ngTemplateOutletContext",m.DdM(40,Li)),m.xp6(),m.Q6J("ngTemplateOutlet",Qt)("ngTemplateOutletContext",m.DdM(41,ji)),m.xp6(2),m.Q6J("ngTemplateOutlet",Qt)("ngTemplateOutletContext",m.DdM(42,Ii)),m.xp6(),m.Q6J("ngTemplateOutlet",Qt)("ngTemplateOutletContext",m.DdM(43,_i)),m.xp6(2),m.Q6J("ngTemplateOutlet",Qt)("ngTemplateOutletContext",m.DdM(44,En)),m.xp6(),m.Q6J("ngTemplateOutlet",Qt)("ngTemplateOutletContext",m.DdM(45,co)),m.xp6(),m.Q6J("ngTemplateOutlet",Qt)("ngTemplateOutletContext",m.DdM(46,yn)),m.xp6(),m.Q6J("ngTemplateOutlet",Qt)("ngTemplateOutletContext",m.DdM(47,ln))}}function rt(Ce,tt){if(1&Ce&&m._UZ(0,"imx-form-control",17),2&Ce){const ht=tt.$implicit,Qt=m.oxw();m.Q6J("field",Qt.data.formHandler.formConfiguration.findFormFieldById(ht))("control",Qt.data.formRow.get(ht))("form",Qt.data.formRow)("formHandler",Qt.data.formHandler)("config",Qt.data.formHandler.formConfiguration)}}const $e=()=>({$implicit:"loginname"});let Ve=(()=>{class Ce{constructor(ht,Qt,Un,Yt,Fn,yt,Bt,li){this.data=ht,this.configurationProvider=Qt,this.clientAutocompleteService=Un,this.runtimeContextService=Yt,this.securityManagerService=Fn,this.dialog=yt,this.userMessageService=Bt,this.changeDetectorRef=li,this.feasibleClients=[],this.rootClients=[],this.feasibleClientIds=[],this.feasibleClientFilter={allowedClientIds:this.feasibleClientIds.join(",")},this.changeClientAllowed=!0,this.saveAllowed=!0,this.destroy$=new s.xQ,this.isSuperUser=!1,this.isEditCdaUser=!1,this.useClientHierarchy$=this.configurationProvider.getBoolean(x.x3.PLATFORM_GUI_CLIENT_HIERARCHY,!1),this.loadFeasibleClients(),this.feasibleClientIds=this.feasibleClients.map(si=>si.value),"EDIT_OWN"===this.data.mode&&(this.data.formRow.get("loginname").disable(),this.data.formRow.get("client").disable(),this.data.formRow.get("roles").disable(),this.changeClientAllowed=!1,Fn.hasPermission(x.uo.F_USER_MANAGEMENT_OWN_UPDATE)||(this.data.formRow.disable(),this.saveAllowed=!1)),("EDIT_OWN"===this.data.mode||"CHANGE_PWD"===this.data.mode||"EDIT"===this.data.mode&&(!(0,u.cR)(this.runtimeContextService.getLoginUser().loginname)||this.data.formRow.get("loginname").value===u.pk))&&this.data.formRow.get("loginname").disable(),this.isSuperUser=(0,u.cR)(this.runtimeContextService.getLoginUser().loginname)}ngOnInit(){"NEW"===this.data.mode&&this.data.presetRoleIds&&(console.log("user creation comes with presetRoleIds",this.data.presetRoleIds),this.data.formRow.get("roles").setValue(this.data.presetRoleIds),this.data.formRow.get("roles").disable()),this.changeDetectorRef.detectChanges(),this.data.formRow.get("userType").valueChanges.pipe((0,l.R)(this.destroy$)).subscribe(ht=>{this.evaluateIsCdaUser(ht)}),this.evaluateIsCdaUser(this.data.formRow.get("userType").value)}copyTokenToClipboard(){const ht=this.data.formRow.get("jwtToken").value;ht&&(navigator.clipboard.writeText(ht),this.userMessageService.showInfo("imxplatform.user-mgmt.dialog-edit.token-copied",void 0,2e3))}evaluateIsCdaUser(ht){this.isEditCdaUser=n.MN.name===ht,!0===this.isEditCdaUser&&"NEW"===this.data.mode?this.data.formRow.get("passwordDecrypted").setValue("#+AS4564s!daf"):"NEW"===this.data.mode&&this.data.formRow.get("passwordDecrypted").setValue("")}loadFeasibleClients(){this.runtimeContextService.getCurrentAndSubClients().pipe((0,i.b)(ht=>ht.forEach(Qt=>{(null==Qt.parent||!ht.has(Qt.parent))&&this.rootClients.push(Qt)})),(0,t.U)(ht=>{const Qt=[];for(const Un of Array.from(ht.values()))Qt.push({label:Un.name,value:Un.id});return Qt.sort((Un,Yt)=>Un.label.localeCompare(Yt.label))})).subscribe(ht=>this.feasibleClients=ht)}showClientTree(){this.dialog.open(c.h,{maxWidth:470,maxHeight:500,data:{currentSelection:this.data.formHandler.formGroup.get("client").value,rootClients:this.rootClients}}).afterClosed().subscribe(ht=>{ht&&ht.length>0&&this.data.formHandler.formGroup.get("client").setValue(ht[0])})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(Qt){return new(Qt||Ce)(m.Y36(e.WI),m.Y36(x.Pc),m.Y36(o.p),m.Y36(x.Ze),m.Y36(x.Xh),m.Y36(e.uw),m.Y36(p.Y),m.Y36(m.sBO))};static#t=this.\u0275cmp=m.Xpm({type:Ce,selectors:[["ng-component"]],decls:11,vars:10,consts:[["icon","icon-users2","dialogType","form",3,"heading","submitButtonDisabled"],["id","user-mgmt-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["imxFormControl",""],[1,"user-mgmt-edit-type-header"],[1,"user-mgmt-edit-token-wrapper"],[1,"user-mgmt-edit-token",3,"click"],[1,"icon-copy","icon"],["id","passwordDecrypted","label","imxplatform.user-mgmt.dialog.passwordDecrypted",3,"required","formControl","errors"],[1,"form__content-field-row"],[3,"field","control","form","formHandler","optionProvider"],[3,"field","formHandler","control","autocompleteService","autocompleteFilter"],["class","imx-button prio2 client-button",3,"click",4,"ngIf"],[1,"imx-button","prio2","client-button",3,"click"],[3,"field","control","form","formHandler","config"]],template:function(Qt,Un){if(1&Qt&&(m.TgZ(0,"imx-dialog",0)(1,"form",1)(2,"div",2)(3,"div",3),m.YNc(4,Le,4,3,"ng-container",4)(5,R,1,0,"ng-container",5)(6,Se,2,3,"ng-container",4)(7,Ue,2,3,"ng-container",4)(8,He,24,48,"ng-container",4),m.qZA()()()(),m.YNc(9,rt,1,5,"ng-template",null,6,m.W1O)),2&Qt){const Yt=m.MAs(10);m.Q6J("heading","CHANGE_PWD"===Un.data.mode?"imxplatform.user-mgmt.dialog.header-change-pwd":"imxplatform.user-mgmt.dialog.header")("submitButtonDisabled",Un.data.formRow.pristine||Un.data.formRow.invalid||!Un.saveAllowed||"CHANGE_PWD"===Un.data.mode&&!Un.data.formHandler.formGroup.get("passwordDecrypted").value),m.xp6(),m.Q6J("formGroup",Un.data.formRow),m.xp6(3),m.Q6J("ngIf",Un.isSuperUser),m.xp6(),m.Q6J("ngTemplateOutlet",Yt)("ngTemplateOutletContext",m.DdM(9,$e)),m.xp6(),m.Q6J("ngIf","NEW"===Un.data.mode&&!Un.isEditCdaUser),m.xp6(),m.Q6J("ngIf","CHANGE_PWD"===Un.data.mode),m.xp6(),m.Q6J("ngIf","CHANGE_PWD"!==Un.data.mode)}},dependencies:[b.O5,b.tP,I._Y,I.JJ,I.JL,I.Q7,I.oH,I.sg,H.Y,j,Y.a,K.A,ne.H,b.Ov,ee.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.input-container[_ngcontent-%COMP%]{position:relative}.client-button[_ngcontent-%COMP%]{margin-bottom:15px}.user-mgmt-edit-token[_ngcontent-%COMP%]{max-width:40vw;cursor:pointer}.user-mgmt-edit-token[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{word-break:break-all;color:#9da8c1}.user-mgmt-edit-type-header[_ngcontent-%COMP%], .user-mgmt-edit-token-wrapper[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return Ce})()},83043:(gt,X,a)=>{"use strict";a.d(X,{F:()=>l});var e=a(56223),s=(a(45315),a(19212));let l=(()=>{class i{constructor(){this.entryPageLinesRequired=!1}ngOnInit(){this.determineEntryPageProductlinesRequired(this.typeDefFormRow.get("entryViewType").value),this.typeDefFormRow.get("entryViewType").valueChanges.subscribe(p=>{this.determineEntryPageProductlinesRequired(p)})}determineEntryPageProductlinesRequired(p){3===p?(this.typeDefFormRow.get(this.entryPageField).setValidators(e.kI.required),this.typeDefFormRow.get(this.entryPageField).updateValueAndValidity(),this.entryPageLinesRequired=!0):(this.typeDefFormRow.get(this.entryPageField).clearValidators(),this.typeDefFormRow.get(this.entryPageField).updateValueAndValidity(),this.entryPageLinesRequired=!1)}static#e=this.\u0275fac=function(c){return new(c||i)};static#t=this.\u0275dir=s.lG2({type:i,inputs:{typeDefFormRow:"typeDefFormRow",formHandler:"formHandler"}})}return i})()},91640:(gt,X,a)=>{"use strict";a.d(X,{J:()=>ne});var e=a(72079),s=(a(45315),a(38347)),l=a(19212),i=a(96814),t=a(56223),p=a(25313),c=a(71365),o=a(28907),x=a(22194);function u(ee,$){1&ee&&(l.TgZ(0,"p",3),l._uU(1,"imxplatform.common-entity.edit.validation.noExistingEntry"),l.qZA())}function m(ee,$){1&ee&&(l.TgZ(0,"p",4),l._uU(1,"imxplatform.common.no-records"),l.qZA())}function b(ee,$){if(1&ee&&l.YNc(0,u,2,0,"p",2)(1,m,2,0),2&ee){const ue=l.oxw();l.um2(0,ue.oneLineRequired?0:1)}}function I(ee,$){1&ee&&l._UZ(0,"tr",17)}function H(ee,$){1&ee&&l._UZ(0,"tr",18)}function O(ee,$){if(1&ee&&(l.TgZ(0,"th",19),l._uU(1),l.qZA()),2&ee){const ue=l.oxw(2);l.xp6(),l.hij("",ue.formHandler.getFormFieldLabel(ue.arrayFieldPath+":label")," ")}}function P(ee,$){if(1&ee&&(l.TgZ(0,"td",20),l._UZ(1,"imx-form-control",21),l.qZA()),2&ee){const ue=$.$implicit,ge=l.oxw(2);l.Q6J("formGroup",ue),l.xp6(),l.Q6J("field",ge.formHandler.formConfiguration.findFormFieldById(ge.arrayFieldPath+":label"))("control",ue.controls.label)("form",ge.formGroup.get(ge.arrayFieldName))("formHandler",ge.formHandler)("config",ge.formHandler.formConfiguration)}}function G(ee,$){if(1&ee&&(l.TgZ(0,"th",22),l._uU(1),l.qZA()),2&ee){const ue=l.oxw(2);l.xp6(),l.hij("",ue.formHandler.getFormFieldLabel(ue.arrayFieldPath+":target")," ")}}function B(ee,$){if(1&ee&&(l.TgZ(0,"td",20),l._UZ(1,"imx-form-control",21),l.qZA()),2&ee){const ue=$.$implicit,ge=l.oxw(2);l.Q6J("formGroup",ue),l.xp6(),l.Q6J("field",ge.formHandler.formConfiguration.findFormFieldById(ge.arrayFieldPath+":target"))("control",ue.controls.target)("form",ge.formGroup.get(ge.arrayFieldName))("formHandler",ge.formHandler)("config",ge.formHandler.formConfiguration)}}function ae(ee,$){if(1&ee&&(l.TgZ(0,"th",22),l._uU(1),l.qZA()),2&ee){const ue=l.oxw(2);l.xp6(),l.hij("",ue.formHandler.getFormFieldLabel(ue.arrayFieldPath+":sortingValue")," ")}}function J(ee,$){if(1&ee&&(l.TgZ(0,"td",20),l._UZ(1,"imx-form-control",21),l.qZA()),2&ee){const ue=$.$implicit,ge=l.oxw(2);l.Q6J("formGroup",ue),l.xp6(),l.Q6J("field",ge.formHandler.formConfiguration.findFormFieldById(ge.arrayFieldPath+":sortingValue"))("control",ue.controls.sortingValue)("form",ge.formGroup.get(ge.arrayFieldName))("formHandler",ge.formHandler)("config",ge.formHandler.formConfiguration)}}function q(ee,$){1&ee&&l._UZ(0,"th",23)}function j(ee,$){if(1&ee){const ue=l.EpF();l.TgZ(0,"td",24)(1,"a",25),l.NdJ("click",function(){const at=l.CHM(ue).$implicit,Le=l.oxw(2);return l.KtG(Le.removeRow(at))}),l.qZA()()}2&ee&&l.Q6J("formGroup",$.$implicit)}function Y(ee,$){if(1&ee&&(l.TgZ(0,"table",5),l.YNc(1,I,1,0,"tr",6)(2,H,1,0,"tr",7),l.ynx(3,8),l.YNc(4,O,2,1,"th",9)(5,P,2,6,"td",10),l.BQk(),l.ynx(6,11),l.YNc(7,G,2,1,"th",12)(8,B,2,6,"td",10),l.BQk(),l.ynx(9,13),l.YNc(10,ae,2,1,"th",12)(11,J,2,6,"td",10),l.BQk(),l.ynx(12,14),l.YNc(13,q,1,0,"th",15)(14,j,2,1,"td",16),l.BQk(),l.qZA()),2&ee){const ue=l.oxw();l.Q6J("dataSource",ue.dataSource),l.xp6(),l.Q6J("matHeaderRowDef",ue.columns),l.xp6(),l.Q6J("matRowDefColumns",ue.columns)}}const K=ee=>({"ng-invalid":ee});let ne=(()=>{class ee{constructor(){this.oneLineRequired=!1,this.columns=["label","target","sortingValue","removeColumn"],this.destroy$=new e.xQ}ngOnInit(){const ue=this.formGroup.get(this.arrayFieldName);this.dataSource=(0,s.t)(ue,ge=>this.dataSource=ge,this.destroy$)}addNewRow(){this.formHandler.addNewCollectionRow(this.arrayFieldPath,!0,this.formGroup.get(this.arrayFieldName))}removeRow(ue){const ge=this.formHandler.getFormArrayControl(this.arrayFieldName,this.formGroup);ge.removeAt(ue),ge.markAsDirty()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(ge){return new(ge||ee)};static#t=this.\u0275cmp=l.Xpm({type:ee,selectors:[["imx-basic-data-override"]],inputs:{arrayFieldPath:"arrayFieldPath",arrayFieldName:"arrayFieldName",formGroup:"formGroup",formHandler:"formHandler",addButtonLabel:"addButtonLabel",oneLineRequired:"oneLineRequired"},decls:6,vars:7,consts:[[1,"form__table",3,"ngClass"],[1,"imx-button","prio2",3,"click"],["class","txt-error txt-md-sm no-records","translate",""],["translate","",1,"txt-error","txt-md-sm","no-records"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","label"],["mat-header-cell","","class","date","translate","",4,"matHeaderCellDef"],["mat-cell","","class","date",3,"formGroup",4,"matCellDef"],["matColumnDef","target"],["mat-header-cell","","translate","",4,"matHeaderCellDef"],["matColumnDef","sortingValue"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","","translate","",1,"date"],["mat-cell","",1,"date",3,"formGroup"],[3,"field","control","form","formHandler","config"],["mat-header-cell","","translate",""],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"]],template:function(ge,Ke){1&ge&&(l.TgZ(0,"div",0),l.YNc(1,b,2,1)(2,Y,15,3),l.qZA(),l.TgZ(3,"button",1),l.NdJ("click",function(){return Ke.addNewRow()}),l._uU(4),l.ALo(5,"translate"),l.qZA()),2&ge&&(l.Q6J("ngClass",l.VKq(5,K,Ke.oneLineRequired&&(!Ke.dataSource||!Ke.dataSource.data||0===Ke.dataSource.data.length))),l.xp6(),l.um2(1,Ke.dataSource&&Ke.dataSource.data&&0!==Ke.dataSource.data.length?2:1),l.xp6(3),l.Oqu(l.lcZ(5,3,Ke.addButtonLabel)))},dependencies:[i.mk,t.JL,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,t.sg,c.Pi,o.A,x.F,c.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}"]})}return ee})()},80182:(gt,X,a)=>{"use strict";a.d(X,{z:()=>G}),a(45315);var n=a(19212),s=a(96814),l=a(92596),i=a(28907);function t(B,ae){1&B&&n.GkF(0)}function p(B,ae){1&B&&n.GkF(0)}const c=()=>({$implicit:"fixedStartDate"}),o=()=>({$implicit:"fixedEndDate"});function x(B,ae){if(1&B&&(n.ynx(0),n.TgZ(1,"div",2),n.YNc(2,t,1,0,"ng-container",3)(3,p,1,0,"ng-container",3),n.qZA(),n.BQk()),2&B){n.oxw();const J=n.MAs(4);n.xp6(2),n.Q6J("ngTemplateOutlet",J)("ngTemplateOutletContext",n.DdM(4,c)),n.xp6(),n.Q6J("ngTemplateOutlet",J)("ngTemplateOutletContext",n.DdM(5,o))}}function u(B,ae){1&B&&n.GkF(0)}function m(B,ae){1&B&&n.GkF(0)}const b=()=>({$implicit:"intervalFrom"}),I=()=>({$implicit:"intervalTo"});function H(B,ae){if(1&B&&(n.ynx(0),n.TgZ(1,"div",2),n.YNc(2,u,1,0,"ng-container",3)(3,m,1,0,"ng-container",3),n.qZA(),n.BQk()),2&B){n.oxw();const J=n.MAs(4);n.xp6(2),n.Q6J("ngTemplateOutlet",J)("ngTemplateOutletContext",n.DdM(4,b)),n.xp6(),n.Q6J("ngTemplateOutlet",J)("ngTemplateOutletContext",n.DdM(5,I))}}function O(B,ae){1&B&&n.GkF(0)}function P(B,ae){if(1&B&&n._UZ(0,"imx-form-control",4),2&B){const J=ae.$implicit,q=n.oxw();n.Q6J("matTooltip",J)("matTooltipPosition","left")("field",q.formHandler.formConfiguration.findFormFieldById("typeDefs:"+J))("control",q.typeDefFormRow.get(J))("form",q.typeDefFormRow)("formHandler",q.formHandler)("config",q.formHandler.formConfiguration)}}let G=(()=>{class B{constructor(){this.dateSearchTypeValue=0}ngOnInit(){this.dateSearchTypeValue=this.typeDefFormRow.get("dateSearchType").value,this.typeDefFormRow.get("dateSearchType").valueChanges.subscribe(J=>{this.dateSearchTypeValue=J})}static#e=this.\u0275fac=function(q){return new(q||B)};static#t=this.\u0275cmp=n.Xpm({type:B,selectors:[["imx-date-search-type"]],inputs:{typeDefFormRow:"typeDefFormRow",formHandler:"formHandler"},decls:5,vars:3,consts:[[4,"ngIf"],["imxFormControl",""],[1,"inner_group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"matTooltip","matTooltipPosition","field","control","form","formHandler","config"]],template:function(q,j){1&q&&n.YNc(0,x,4,6,"ng-container",0)(1,H,4,6,"ng-container",0)(2,O,1,0,"ng-container",0)(3,P,1,7,"ng-template",null,1,n.W1O),2&q&&(n.Q6J("ngIf",1===j.dateSearchTypeValue),n.xp6(),n.Q6J("ngIf",2===j.dateSearchTypeValue),n.xp6(),n.Q6J("ngIf",3===j.dateSearchTypeValue))},dependencies:[s.O5,s.tP,l.gM,i.A],styles:[".panel_content[_ngcontent-%COMP%]{width:100%}.inner_group[_ngcontent-%COMP%]{border:1px solid #e6e9ef;width:100%;margin-bottom:10px;margin-right:10px;padding:10px 20px}h3[_ngcontent-%COMP%]{margin-left:10px;margin-top:20px;text-transform:uppercase}"]})}return B})()},40024:(gt,X,a)=>{"use strict";a.d(X,{R:()=>q});var e=a(72079),s=(a(45315),a(38347)),l=a(19212),i=a(96814),t=a(56223),p=a(25313),c=a(71365),o=a(35475),x=a(28907),u=a(22194);function m(j,Y){1&j&&(l.TgZ(0,"p",5),l._uU(1,"imxplatform.common.no-records"),l.qZA())}function b(j,Y){1&j&&l._UZ(0,"tr",17)}function I(j,Y){1&j&&l._UZ(0,"tr",18)}function H(j,Y){if(1&j&&(l.TgZ(0,"th",19),l._uU(1),l.qZA()),2&j){const K=l.oxw(2);l.xp6(),l.Oqu(K.formHandler.getFormFieldLabel(K.arrayFieldName+":label"))}}function O(j,Y){if(1&j&&(l.TgZ(0,"td",20),l._UZ(1,"imx-form-control",21),l.qZA()),2&j){const K=Y.$implicit,ne=l.oxw(2);l.Q6J("formGroup",K),l.xp6(),l.Q6J("field",ne.formHandler.formConfiguration.findFormFieldById(ne.arrayFieldName+":label"))("control",K.controls.label)("form",ne.formHandler.formGroup.get(ne.arrayFieldName))("formHandler",ne.formHandler)("config",ne.formHandler.formConfiguration)}}function P(j,Y){if(1&j&&(l.TgZ(0,"th",22),l._uU(1),l.qZA()),2&j){const K=l.oxw(2);l.xp6(),l.Oqu(K.formHandler.getFormFieldLabel(K.arrayFieldName+":targetUrl"))}}function G(j,Y){if(1&j&&(l.TgZ(0,"td",20),l._UZ(1,"imx-form-control",21),l.qZA()),2&j){const K=Y.$implicit,ne=l.oxw(2);l.Q6J("formGroup",K),l.xp6(),l.Q6J("field",ne.formHandler.formConfiguration.findFormFieldById(ne.arrayFieldName+":targetUrl"))("control",K.controls.targetUrl)("form",ne.formHandler.formGroup.get(ne.arrayFieldName))("formHandler",ne.formHandler)("config",ne.formHandler.formConfiguration)}}function B(j,Y){1&j&&l._UZ(0,"th",23)}function ae(j,Y){if(1&j){const K=l.EpF();l.TgZ(0,"td",24)(1,"a",25),l.NdJ("click",function(){const $=l.CHM(K).$implicit,ue=l.oxw(2);return l.KtG(ue.removeLinkTarget($))}),l.qZA()()}2&j&&l.Q6J("formGroup",Y.$implicit)}function J(j,Y){if(1&j&&(l.TgZ(0,"table",6),l.YNc(1,b,1,0,"tr",7)(2,I,1,0,"tr",8),l.ynx(3,9),l.YNc(4,H,2,1,"th",10)(5,O,2,6,"td",11),l.BQk(),l.ynx(6,12),l.YNc(7,P,2,1,"th",13)(8,G,2,6,"td",11),l.BQk(),l.ynx(9,14),l.YNc(10,B,1,0,"th",15)(11,ae,2,1,"td",16),l.BQk(),l.qZA()),2&j){const K=l.oxw();l.Q6J("dataSource",K.linkTargetsDataSource),l.xp6(),l.Q6J("matHeaderRowDef",K.linkTargetsColumns),l.xp6(),l.Q6J("matRowDefColumns",K.linkTargetsColumns)}}let q=(()=>{class j{constructor(){this.linkTargetsColumns=["label","targetUrl","removeColumn"],this.destroy$=new e.xQ}ngOnInit(){this.linkTargetsDataSource=(0,s.t)(this.formHandler.formGroup.get(this.arrayFieldName),K=>this.linkTargetsDataSource=K,this.destroy$)}addNewLinkTarget(){this.formHandler.addNewCollectionRow(this.arrayFieldName)}removeLinkTarget(K){this.formHandler.removeLineFromCollection(this.arrayFieldName,this.linkTargetsDataSource.filteredData.indexOf(K),this.formHandler.formGroup)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(ne){return new(ne||j)};static#t=this.\u0275cmp=l.Xpm({type:j,selectors:[["imx-link-target"]],inputs:{arrayFieldName:"arrayFieldName",formHandler:"formHandler",addButtonLabel:"addButtonLabel"},decls:9,vars:6,consts:[["offset","300",3,"tooltipText"],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[1,"imx-button","prio2",3,"click"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","label"],["mat-header-cell","","class","date","translate","",4,"matHeaderCellDef"],["mat-cell","","class","date",3,"formGroup",4,"matCellDef"],["matColumnDef","targetUrl"],["mat-header-cell","","translate","",4,"matHeaderCellDef"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","","translate","",1,"date"],["mat-cell","",1,"date",3,"formGroup"],[3,"field","control","form","formHandler","config"],["mat-header-cell","","translate",""],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"]],template:function(ne,ee){if(1&ne&&(l.TgZ(0,"imx-tooltip",0)(1,"div"),l.YNc(2,m,2,0,"ng-template",null,1,l.W1O),l.TgZ(4,"div",2),l.YNc(5,J,12,3,"table",3),l.qZA(),l.TgZ(6,"button",4),l.NdJ("click",function(){return ee.addNewLinkTarget()}),l._uU(7),l.ALo(8,"translate"),l.qZA()()()),2&ne){const $=l.MAs(3);l.Q6J("tooltipText",ee.arrayFieldName),l.xp6(5),l.Q6J("ngIf",ee.linkTargetsDataSource&&ee.linkTargetsDataSource.data.length>0)("ngIfElse",$),l.xp6(2),l.Oqu(l.lcZ(8,4,ee.addButtonLabel))}},dependencies:[i.O5,t.JL,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,t.sg,c.Pi,o.K,x.A,u.F,c.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}"]})}return j})()},4592:(gt,X,a)=>{"use strict";a.d(X,{A:()=>Et});var e=a(25313),n=a(21473),s=a(72079),l=a(30144),i=a(22819),p=(a(45315),a(38996)),c=a(59143),o=a(38347),x=a(19212),u=a(96814),m=a(56223),b=a(92596),I=a(71365),H=a(97564),O=a(28907),P=a(27891);function G(lt,Vt){1&lt&&x.GkF(0)}const B=()=>({$implicit:"eventLocationsAutocomplete"});function ae(lt,Vt){if(1&lt){const r=x.EpF();x.ynx(0),x.TgZ(1,"span",3),x._uU(2,"entity.WidgetConfigEventDev.locationSearchTypeOptions.eventlocation"),x.qZA(),x._UZ(3,"imx-widget-config-reference-table",4),x.YNc(4,G,1,0,"ng-container",5),x.TgZ(5,"button",6),x.NdJ("click",function(){x.CHM(r);const Pt=x.oxw();return x.KtG(Pt.addEventLocation())}),x._uU(6),x.ALo(7,"translate"),x.qZA(),x.BQk()}if(2&lt){const r=x.oxw(),Z=x.MAs(8);x.xp6(3),x.Q6J("arrayFieldPath","typeDefs:whereSearchLocations")("arrayFieldName","whereSearchLocations")("secondColumnAccessor","title")("formHandler",r.formHandler)("formGroup",r.typeDefFormRow),x.xp6(),x.Q6J("ngTemplateOutlet",Z)("ngTemplateOutletContext",x.DdM(11,B)),x.xp6(),x.Q6J("disabled",null==r.typeDefFormRow.get("eventLocationsAutocomplete").value),x.xp6(),x.hij("",x.lcZ(7,9,"imxplatform.common.add")," ")}}const J=()=>({entityType:"AddressPoiGroup"});function q(lt,Vt){if(1&lt){const r=x.EpF();x.ynx(0),x.TgZ(1,"span",3),x._uU(2,"entity.WidgetConfigEventDev.locationSearchTypeOptions.poigroup"),x.qZA(),x._UZ(3,"imx-widget-config-reference-table",4),x.TgZ(4,"imx-base-autocomplete",7,8),x.NdJ("enterPressed",function(){x.CHM(r);const Pt=x.MAs(7);return x.KtG(Pt.focus())}),x.qZA(),x.TgZ(6,"button",9,10),x.NdJ("click",function(){x.CHM(r);const Pt=x.MAs(5);return x.oxw().addSearchPoiGroup(Pt.getSelectedId()),x.KtG(Pt.writeValue(void 0))}),x._uU(8),x.ALo(9,"translate"),x.qZA(),x.BQk()}if(2&lt){const r=x.MAs(5),Z=x.oxw();x.xp6(3),x.Q6J("arrayFieldPath","typeDefs:whereSearchPoiGroups")("arrayFieldName","whereSearchPoiGroups")("secondColumnAccessor","i18nName")("formHandler",Z.formHandler)("formGroup",Z.typeDefFormRow),x.xp6(),x.Q6J("autocompleteService",Z.baseEntityAutocompleteService)("autocompleteFilter",x.DdM(11,J)),x.xp6(2),x.Q6J("disabled",!r.getSelectedId()),x.xp6(2),x.hij(" ",x.lcZ(9,9,"imxplatform.common.add")," ")}}function j(lt,Vt){1&lt&&x.GkF(0)}function Y(lt,Vt){1&lt&&x.GkF(0)}const K=()=>({$implicit:"zipcodes"}),ne=()=>({$implicit:"radius"});function ee(lt,Vt){if(1&lt&&(x.ynx(0),x.TgZ(1,"span",3),x._uU(2,"entity.WidgetConfigEventDev.locationSearchTypeOptions.zipcode"),x.qZA(),x.YNc(3,j,1,0,"ng-container",5)(4,Y,1,0,"ng-container",5),x.BQk()),2&lt){x.oxw();const r=x.MAs(8);x.xp6(3),x.Q6J("ngTemplateOutlet",r)("ngTemplateOutletContext",x.DdM(4,K)),x.xp6(),x.Q6J("ngTemplateOutlet",r)("ngTemplateOutletContext",x.DdM(5,ne))}}function $(lt,Vt){1&lt&&x.GkF(0)}function ue(lt,Vt){1&lt&&x.GkF(0)}function ge(lt,Vt){1&lt&&x.GkF(0)}const Ke=()=>({$implicit:"coordinatesLat"}),at=()=>({$implicit:"coordinatesLon"});function Le(lt,Vt){if(1&lt&&(x.ynx(0),x.TgZ(1,"span",3),x._uU(2,"entity.WidgetConfigEventDev.locationSearchTypeOptions.coordinates"),x.qZA(),x.YNc(3,$,1,0,"ng-container",5)(4,ue,1,0,"ng-container",5)(5,ge,1,0,"ng-container",5),x.BQk()),2&lt){x.oxw();const r=x.MAs(8);x.xp6(3),x.Q6J("ngTemplateOutlet",r)("ngTemplateOutletContext",x.DdM(6,Ke)),x.xp6(),x.Q6J("ngTemplateOutlet",r)("ngTemplateOutletContext",x.DdM(7,at)),x.xp6(),x.Q6J("ngTemplateOutlet",r)("ngTemplateOutletContext",x.DdM(8,ne))}}function R(lt,Vt){1&lt&&x.GkF(0)}const Te=()=>({$implicit:"region"});function me(lt,Vt){if(1&lt&&(x.ynx(0),x.YNc(1,R,1,0,"ng-container",5),x.BQk()),2&lt){x.oxw();const r=x.MAs(8);x.xp6(),x.Q6J("ngTemplateOutlet",r)("ngTemplateOutletContext",x.DdM(2,Te))}}function Se(lt,Vt){1&lt&&x.GkF(0)}const Ue=()=>({$implicit:"location"});function We(lt,Vt){if(1&lt&&(x.ynx(0),x.YNc(1,Se,1,0,"ng-container",5),x.BQk()),2&lt){x.oxw();const r=x.MAs(8);x.xp6(),x.Q6J("ngTemplateOutlet",r)("ngTemplateOutletContext",x.DdM(2,Ue))}}function et(lt,Vt){if(1&lt&&x._UZ(0,"imx-form-control",11),2&lt){const r=Vt.$implicit,Z=x.oxw();x.Q6J("matTooltip",r)("matTooltipPosition","left")("field",Z.formHandler.formConfiguration.findFormFieldById("typeDefs:"+r))("control",Z.typeDefFormRow.get(r))("form",Z.typeDefFormRow)("formHandler",Z.formHandler)("config",Z.formHandler.formConfiguration)}}let Et=(()=>{class lt{constructor(r,Z,Pt,Oe){this.dataAccess=r,this.baseEntityAutocompleteService=Z,this.entitiesMgr=Pt,this.userMessageService=Oe,this.locationSearchTypeValue=-1,this.destroy$=new s.xQ}ngOnInit(){this.locationSearchTypeValue=this.typeDefFormRow.get("locationSearchType").value,this.typeDefFormRow.get("locationSearchType").valueChanges.subscribe(r=>{this.locationSearchTypeValue=r}),this.searchLocationCollectionDataSource=(0,o.t)(this.typeDefFormRow.get("whereSearchLocations"),r=>this.searchLocationCollectionDataSource=r,this.destroy$),this.searchPoiGroupCollectionDataSource=(0,o.t)(this.typeDefFormRow.get("whereSearchPoiGroups"),r=>this.searchPoiGroupCollectionDataSource=r,this.destroy$)}addEventLocation(){const r=this.typeDefFormRow.get("eventLocationsAutocomplete").value;this.dataAccess.getAddressPoiById(r).subscribe(Z=>{if(this.searchLocationCollectionDataSource&&this.searchLocationCollectionDataSource._data._value.length>0&&this.searchLocationCollectionDataSource._data._value.map(Pt=>Pt.value[p.Qy].id).includes(Z.id))this.userMessageService.showError("entity.WhlPortalWidgetConfig.searchLocations-already-assigned");else{const Pt=this.formHandler.addNewCollectionRow("typeDefs:whereSearchLocations",!0,this.typeDefFormRow.get("whereSearchLocations"));Pt.controls[p.Qy].setValue(Z),Pt.controls[p.rs].setValue(Z.id),this.searchLocationCollectionDataSource=new e.by(this.typeDefFormRow.get("whereSearchLocations").controls),this.resetEventLocationAutocomplete()}})}resetEventLocationAutocomplete(){this.typeDefFormRow.get("eventLocationsAutocomplete").setValue(null)}addSearchPoiGroup(r){this.entitiesMgr.getEntityWithIdOfType("AddressPoiGroup",r).subscribe(Z=>{if(this.searchPoiGroupCollectionDataSource&&this.searchPoiGroupCollectionDataSource._data._value.length>0&&this.searchPoiGroupCollectionDataSource._data._value.map(Pt=>Pt.value[p.Qy].id).includes(Z.id))this.userMessageService.showError("entity.WhlPortalWidgetConfig.searchPoiGroups-already-assigned");else{const Pt=this.formHandler.addNewCollectionRow("typeDefs:whereSearchPoiGroups",!0,this.typeDefFormRow.get("whereSearchPoiGroups"));Pt.controls[p.Qy].setValue(Z),Pt.controls[p.rs].setValue(Z.id),this.searchPoiGroupCollectionDataSource=new e.by(this.typeDefFormRow.get("whereSearchPoiGroups").controls)}})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(Z){return new(Z||lt)(x.Y36(i.nq),x.Y36(l.x),x.Y36(n.qB),x.Y36(c.Y))};static#t=this.\u0275cmp=x.Xpm({type:lt,selectors:[["imx-location-search-type"]],inputs:{typeDefFormRow:"typeDefFormRow",formHandler:"formHandler"},decls:9,vars:6,consts:[[1,"inner_group"],[4,"ngIf"],["imxFormControl",""],["translate",""],[3,"arrayFieldPath","arrayFieldName","secondColumnAccessor","formHandler","formGroup"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"imx-button","prio2","imx-form-control",3,"disabled","click"],[1,"tag-autocomplete",3,"autocompleteService","autocompleteFilter","enterPressed"],["poiGroupAutocompleteControl",""],[1,"imx-button","prio2",3,"disabled","click"],["addSearchPoiGroupButton",""],[3,"matTooltip","matTooltipPosition","field","control","form","formHandler","config"]],template:function(Z,Pt){1&Z&&(x.TgZ(0,"div",0),x.YNc(1,ae,8,12,"ng-container",1)(2,q,10,12,"ng-container",1)(3,ee,5,6,"ng-container",1)(4,Le,6,9,"ng-container",1)(5,me,2,3,"ng-container",1)(6,We,2,3,"ng-container",1),x.qZA(),x.YNc(7,et,1,7,"ng-template",null,2,x.W1O)),2&Z&&(x.xp6(),x.Q6J("ngIf",0===Pt.locationSearchTypeValue),x.xp6(),x.Q6J("ngIf",1===Pt.locationSearchTypeValue),x.xp6(),x.Q6J("ngIf",2===Pt.locationSearchTypeValue),x.xp6(),x.Q6J("ngIf",3===Pt.locationSearchTypeValue),x.xp6(),x.Q6J("ngIf",4===Pt.locationSearchTypeValue),x.xp6(),x.Q6J("ngIf",5===Pt.locationSearchTypeValue))},dependencies:[u.O5,u.tP,m.JL,b.gM,m.sg,I.Pi,H.h,O.A,P.c,I.X$],styles:[".panel_content[_ngcontent-%COMP%]{width:100%}.inner_group[_ngcontent-%COMP%]{border:1px solid #e6e9ef;width:100%;margin-bottom:10px;margin-right:10px;padding:10px 20px}h3[_ngcontent-%COMP%]{margin-left:10px;margin-top:20px;text-transform:uppercase}.inner_group[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:block;font-weight:700;margin-bottom:10px}"]})}return lt})()},15755:(gt,X,a)=>{"use strict";a.d(X,{d:()=>G}),a(45315);var n=a(19212),s=a(96814),l=a(92596),i=a(28907);function t(B,ae){1&B&&n.GkF(0)}function p(B,ae){1&B&&n.GkF(0)}const c=()=>({$implicit:"preselectedFixedStartDate"}),o=()=>({$implicit:"preselectedFixedEndDate"});function x(B,ae){if(1&B&&(n.ynx(0),n.TgZ(1,"div",2),n.YNc(2,t,1,0,"ng-container",3)(3,p,1,0,"ng-container",3),n.qZA(),n.BQk()),2&B){n.oxw();const J=n.MAs(4);n.xp6(2),n.Q6J("ngTemplateOutlet",J)("ngTemplateOutletContext",n.DdM(4,c)),n.xp6(),n.Q6J("ngTemplateOutlet",J)("ngTemplateOutletContext",n.DdM(5,o))}}function u(B,ae){1&B&&n.GkF(0)}function m(B,ae){1&B&&n.GkF(0)}const b=()=>({$implicit:"preselectedIntervalFrom"}),I=()=>({$implicit:"preselectedIntervalTo"});function H(B,ae){if(1&B&&(n.ynx(0),n.TgZ(1,"div",2),n.YNc(2,u,1,0,"ng-container",3)(3,m,1,0,"ng-container",3),n.qZA(),n.BQk()),2&B){n.oxw();const J=n.MAs(4);n.xp6(2),n.Q6J("ngTemplateOutlet",J)("ngTemplateOutletContext",n.DdM(4,b)),n.xp6(),n.Q6J("ngTemplateOutlet",J)("ngTemplateOutletContext",n.DdM(5,I))}}function O(B,ae){1&B&&n.GkF(0)}function P(B,ae){if(1&B&&n._UZ(0,"imx-form-control",4),2&B){const J=ae.$implicit,q=n.oxw();n.Q6J("matTooltip",J)("matTooltipPosition","left")("field",q.formHandler.formConfiguration.findFormFieldById("typeDefs:"+J))("control",q.typeDefFormRow.get(J))("form",q.typeDefFormRow)("formHandler",q.formHandler)("config",q.formHandler.formConfiguration)}}let G=(()=>{class B{constructor(){this.preselectedDateTypeValue=0}ngOnInit(){this.preselectedDateTypeValue=this.typeDefFormRow.get("preselectedDateType").value,this.typeDefFormRow.get("preselectedDateType").valueChanges.subscribe(J=>{this.preselectedDateTypeValue=J})}static#e=this.\u0275fac=function(q){return new(q||B)};static#t=this.\u0275cmp=n.Xpm({type:B,selectors:[["imx-preselected-date-type"]],inputs:{typeDefFormRow:"typeDefFormRow",formHandler:"formHandler"},decls:5,vars:3,consts:[[4,"ngIf"],["imxFormControl",""],[1,"inner_group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"matTooltip","matTooltipPosition","field","control","form","formHandler","config"]],template:function(q,j){1&q&&n.YNc(0,x,4,6,"ng-container",0)(1,H,4,6,"ng-container",0)(2,O,1,0,"ng-container",0)(3,P,1,7,"ng-template",null,1,n.W1O),2&q&&(n.Q6J("ngIf",1===j.preselectedDateTypeValue),n.xp6(),n.Q6J("ngIf",2===j.preselectedDateTypeValue),n.xp6(),n.Q6J("ngIf",3===j.preselectedDateTypeValue))},dependencies:[s.O5,s.tP,l.gM,i.A],styles:[".panel_content[_ngcontent-%COMP%]{width:100%}.inner_group[_ngcontent-%COMP%]{border:1px solid #e6e9ef;width:100%;margin-bottom:10px;margin-right:10px;padding:10px 20px}h3[_ngcontent-%COMP%]{margin-left:10px;margin-top:20px;text-transform:uppercase}"]})}return B})()},27891:(gt,X,a)=>{"use strict";a.d(X,{c:()=>J});var e=a(72079),s=(a(45315),a(38347)),l=a(19212),i=a(96814),t=a(56223),p=a(25313),c=a(71365),o=a(22194),x=a(1614);function u(q,j){1&q&&(l.TgZ(0,"p",3),l._uU(1,"imxplatform.common.no-records"),l.qZA())}function m(q,j){1&q&&l._UZ(0,"tr",14)}function b(q,j){1&q&&l._UZ(0,"tr",15)}function I(q,j){1&q&&(l.TgZ(0,"th",16),l._uU(1,"ID"),l.qZA())}function H(q,j){if(1&q&&(l.TgZ(0,"td",17)(1,"span"),l._uU(2),l.qZA()()),2&q){const Y=j.$implicit;l.xp6(2),l.Oqu(Y.controls.rowEntity.value.id)}}function O(q,j){1&q&&(l.TgZ(0,"th",16),l._uU(1,"Name"),l.qZA())}function P(q,j){if(1&q&&(l.TgZ(0,"td",17)(1,"span"),l._uU(2),l.ALo(3,"readI18n"),l.qZA()()),2&q){const Y=j.$implicit,K=l.oxw(2);l.xp6(2),l.Oqu(l.lcZ(3,1,Y.controls.rowEntity.value[K.secondColumnAccessor]))}}function G(q,j){1&q&&l._UZ(0,"th",18)}function B(q,j){if(1&q){const Y=l.EpF();l.TgZ(0,"td",19)(1,"a",20),l.NdJ("click",function(){const ee=l.CHM(Y).$implicit,$=l.oxw(2);return l.KtG($.removeRow(ee))}),l.qZA()()}2&q&&l.Q6J("formGroup",j.$implicit)}function ae(q,j){if(1&q&&(l.TgZ(0,"table",4),l.YNc(1,m,1,0,"tr",5)(2,b,1,0,"tr",6),l.ynx(3,7),l.YNc(4,I,2,0,"th",8)(5,H,3,1,"td",9),l.BQk(),l.ynx(6,10),l.YNc(7,O,2,0,"th",8)(8,P,4,3,"td",9),l.BQk(),l.ynx(9,11),l.YNc(10,G,1,0,"th",12)(11,B,2,1,"td",13),l.BQk(),l.qZA()),2&q){const Y=l.oxw();l.Q6J("dataSource",Y.dataSource),l.xp6(),l.Q6J("matHeaderRowDef",Y.columns),l.xp6(),l.Q6J("matRowDefColumns",Y.columns)}}let J=(()=>{class q{constructor(){this.columns=["id","secondColumn","removeColumn"],this.destroy$=new e.xQ}ngOnInit(){const Y=this.formGroup.get(this.arrayFieldName);this.dataSource=(0,s.t)(Y,K=>this.dataSource=K,this.destroy$)}addNewRow(){this.formHandler.addNewCollectionRow(this.arrayFieldPath,!0,this.formGroup.get(this.arrayFieldName))}removeRow(Y){this.formHandler.removeLineFromCollection(this.arrayFieldPath,this.dataSource.filteredData.indexOf(Y),this.formGroup)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(K){return new(K||q)};static#t=this.\u0275cmp=l.Xpm({type:q,selectors:[["imx-widget-config-reference-table"]],inputs:{arrayFieldPath:"arrayFieldPath",arrayFieldName:"arrayFieldName",formGroup:"formGroup",formHandler:"formHandler",secondColumnAccessor:"secondColumnAccessor"},decls:4,vars:2,consts:[["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","id"],["mat-header-cell","","translate","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","secondColumn"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","","translate",""],["mat-cell",""],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"]],template:function(K,ne){if(1&K&&(l.YNc(0,u,2,0,"ng-template",null,0,l.W1O),l.TgZ(2,"div",1),l.YNc(3,ae,12,3,"table",2),l.qZA()),2&K){const ee=l.MAs(1);l.xp6(3),l.Q6J("ngIf",ne.dataSource&&ne.dataSource.data.length>0)("ngIfElse",ee)}},dependencies:[i.O5,t.JL,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,t.sg,c.Pi,o.F,x.j],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.mat-mdc-row[_ngcontent-%COMP%]{height:28px}"]})}return q})()},3928:(gt,X,a)=>{"use strict";a.d(X,{Q:()=>ti});var e=a(17700),n=a(79309),s=a(72079),l=a(19352),i=a(59143),t=a(19212),p=a(96814),c=a(56223),o=a(92596),x=a(71365),u=a(25913),m=a(63989),b=a(41593),I=a(33946),H=a(28907),O=a(42094),P=a(36116),G=a(40024),B=a(33637),ae=a(57863),J=a(42035);const q=["formFrame"];function j(Xt,Je){1&Xt&&t.GkF(0)}function Y(Xt,Je){1&Xt&&t.GkF(0)}function K(Xt,Je){1&Xt&&t.GkF(0)}function ne(Xt,Je){1&Xt&&t.GkF(0)}function ee(Xt,Je){1&Xt&&t.GkF(0)}function $(Xt,Je){1&Xt&&t.GkF(0)}function ue(Xt,Je){if(1&Xt&&(t.TgZ(0,"imx-accordion-panel",22),t._UZ(1,"imx-widget-config-event-def",23),t.qZA()),2&Xt){const dt=t.oxw();t.Q6J("expanded",dt.isExpanded(dt.WIDGET_CONFIG_MODULE_EVENT)),t.xp6(),t.Q6J("formHandler",dt.data.formHandler)("typeDefFormRow",dt.getFormRowByModule(dt.WIDGET_CONFIG_MODULE_EVENT))}}function ge(Xt,Je){if(1&Xt&&(t.TgZ(0,"imx-accordion-panel",24),t._UZ(1,"imx-widget-config-poi-def",23),t.qZA()),2&Xt){const dt=t.oxw();t.Q6J("expanded",dt.isExpanded(dt.WIDGET_CONFIG_MODULE_TOUR)),t.xp6(),t.Q6J("formHandler",dt.data.formHandler)("typeDefFormRow",dt.getFormRowByModule(dt.WIDGET_CONFIG_MODULE_POI))}}function Ke(Xt,Je){if(1&Xt&&(t.TgZ(0,"imx-accordion-panel",25),t._UZ(1,"imx-widget-config-tour-def",23),t.qZA()),2&Xt){const dt=t.oxw();t.Q6J("expanded",dt.isExpanded(dt.WIDGET_CONFIG_MODULE_TOUR)),t.xp6(),t.Q6J("formHandler",dt.data.formHandler)("typeDefFormRow",dt.getFormRowByModule(dt.WIDGET_CONFIG_MODULE_TOUR))}}function at(Xt,Je){1&Xt&&t.GkF(0)}function Le(Xt,Je){1&Xt&&t.GkF(0)}function R(Xt,Je){1&Xt&&t.GkF(0)}function Te(Xt,Je){1&Xt&&t.GkF(0)}function me(Xt,Je){1&Xt&&t.GkF(0)}function Se(Xt,Je){1&Xt&&t.GkF(0)}function Ue(Xt,Je){1&Xt&&t.GkF(0)}function We(Xt,Je){if(1&Xt&&t._UZ(0,"imx-form-control",26),2&Xt){const dt=Je.$implicit,Ie=t.oxw();t.Q6J("matTooltip",dt)("matTooltipPosition","left")("field",Ie.data.formHandler.formConfiguration.findFormFieldById(dt))("control",Ie.data.formRow.get(dt))("form",Ie.data.formRow)("formHandler",Ie.data.formHandler)("config",Ie.data.formHandler.formConfiguration)}}const et=()=>({$implicit:"title"}),Et=()=>({$implicit:"identifier"}),lt=()=>({$implicit:"usageForEntityType"}),Vt=()=>({$implicit:"deliveryChannel"}),r=()=>({$implicit:"client"}),Z=()=>({$implicit:"includeSubClients"}),Pt=()=>({$implicit:"quickAccessList"}),Oe=()=>({$implicit:"showSearchResultHeader"}),ye=()=>({$implicit:"imprintUrl"}),ve=()=>({$implicit:"privacyUrl"}),ft=()=>({$implicit:"locationLabel"}),Dt=()=>({$implicit:"logoFileName"}),Rn=()=>({$implicit:"styling"});let ti=(()=>{class Xt{constructor(dt,Ie,ot){this.data=dt,this.dialogRef=Ie,this.userMessageService=ot,this.WIDGET_CONFIG_MODULE_EVENT=n.nK,this.WIDGET_CONFIG_MODULE_POI=n.g2,this.WIDGET_CONFIG_MODULE_TOUR=n.ji,this.allowedFileTypes="image/jpeg, image/png, image.svg",this.optionsForDefaultEntityType=[],this.modulesDefined=[],this.modulesNew=[],this.destroy$=new s.xQ}ngOnInit(){this.title=this.data.formRow.get("id").value?"ID: "+this.data.formRow.get("id").value:"NEU",this.determineOptionsForDefaultEntityType(this.data.formRow.get("usageForEntityType").value)}ngAfterViewInit(){this.data.formRow.get("usageForEntityType").valueChanges.pipe((0,l.R)(this.destroy$)).subscribe(dt=>{this.determineOptionsForDefaultEntityType(dt),this.createTypeDefsRow(dt)})}onConfirm(){if(this.data.formHandler.validateAllFormFields(this.data.formRow,"root"))this.dialogRef.close(!0);else{const Ie=this.formFrame.nativeElement.querySelectorAll("mat-form-field.ng-invalid, input.ng-invalid, mat-select.ng-invalid, textarea.ng-invalid, ckeditor.ng-invalid, .checkbox-select-wrapper.ng-invalid, div.ng-invalid");if(Ie&&Ie.length>0){const ot=Ie[0];ot.scrollIntoView({behavior:"smooth",block:"center"}),ot.focus({preventScroll:!0})}this.userMessageService.showError("imxplatform.common-entity.edit.invalid-form")}}onCancel(){this.dialogRef.close(!1)}determineOptionsForDefaultEntityType(dt){this.modulesDefined=dt;const Ie=this.data.formRow.get("defaultEntityType").value;dt.includes(Ie)||this.data.formRow.get("defaultEntityType").setValue(-1),this.optionsForDefaultEntityType=dt.map(ot=>({value:ot,label:ot})),-1===Ie&&this.optionsForDefaultEntityType.length>0&&this.data.formRow.get("defaultEntityType").setValue(dt[0])}createTypeDefsRow(dt){dt.forEach(Ie=>{if(!this.getFormRowByModule(Ie)){const ct=this.data.formHandler.addNewCollectionRow("typeDefs",!0,this.data.formHandler.formGroup.get("typeDefs"));Ie===n.nK&&ct.get("_entityType").setValue("WidgetConfigEventDef"),Ie===n.ji&&ct.get("_entityType").setValue("WidgetConfigTourDef"),Ie===n.g2&&ct.get("_entityType").setValue("WidgetConfigPoiDef"),ct.get("type").setValue(Ie),this.modulesNew.push(Ie)}})}isModuleDefined(dt){return this.modulesDefined.includes(dt)}isExpanded(dt){return this.modulesNew.includes(dt)}getFormRowByModule(dt){return this.data.formHandler.getFormArrayControl("typeDefs").controls.find(Ie=>Ie.value.type===dt)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(Ie){return new(Ie||Xt)(t.Y36(e.WI),t.Y36(e.so),t.Y36(i.Y))};static#t=this.\u0275cmp=t.Xpm({type:Xt,selectors:[["ng-component"]],viewQuery:function(Ie,ot){if(1&Ie&&t.Gf(q,7),2&Ie){let ct;t.iGM(ct=t.CRH())&&(ot.formFrame=ct.first)}},decls:52,vars:61,consts:[["icon","icon-whiteLabel","dialogType","form",3,"heading","subline","submitButtonDisabled","useEvents","onConfirm","onCancel"],["form-header","",3,"formHandler"],["id","whl-portal-widget-config-mgmt-edit",3,"formGroup"],["formFrame",""],[1,"dialog-form"],[1,"form__content-row"],[1,"form__content-group"],[1,"form__content-field-row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"field","control","form","formHandler","optionProvider"],["title","imxplatform.widget-config.dialog.definition-global"],[1,"panel_content"],[1,"form__content-field-row",2,"align-items","flex-end"],["title","imxplatform.widget-config.dialog.event-def",3,"expanded",4,"ngIf"],["title","imxplatform.widget-config.dialog.poi-def",3,"expanded",4,"ngIf"],["title","imxplatform.widget-config.dialog.tour-def",3,"expanded",4,"ngIf"],["title","imxplatform.widget-config.dialog.base-data"],["translate",""],[3,"allowedFileTypes","fileFieldName","imagePathFieldName","formGroup","formHandler"],[3,"formHandler","arrayFieldName","addButtonLabel"],["title","imxplatform.widget-config.dialog.styling"],["imxFormControl",""],["title","imxplatform.widget-config.dialog.event-def",3,"expanded"],[3,"formHandler","typeDefFormRow"],["title","imxplatform.widget-config.dialog.poi-def",3,"expanded"],["title","imxplatform.widget-config.dialog.tour-def",3,"expanded"],[3,"matTooltip","matTooltipPosition","field","control","form","formHandler","config"]],template:function(Ie,ot){if(1&Ie&&(t.TgZ(0,"imx-dialog",0),t.NdJ("onConfirm",function(){return ot.onConfirm()})("onCancel",function(){return ot.onCancel()}),t._UZ(1,"imx-language-switch-button",1),t.TgZ(2,"form",2,3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7),t.YNc(8,j,1,0,"ng-container",8)(9,Y,1,0,"ng-container",8),t.qZA(),t.TgZ(10,"div",7),t.YNc(11,K,1,0,"ng-container",8),t._UZ(12,"imx-select",9),t.qZA()()(),t.TgZ(13,"imx-accordion")(14,"imx-accordion-panel",10)(15,"div",5)(16,"div",11)(17,"div",7),t.YNc(18,ne,1,0,"ng-container",8),t.qZA(),t.TgZ(19,"div",12),t.YNc(20,ee,1,0,"ng-container",8)(21,$,1,0,"ng-container",8),t.qZA()()()(),t.YNc(22,ue,2,3,"imx-accordion-panel",13)(23,ge,2,3,"imx-accordion-panel",14)(24,Ke,2,3,"imx-accordion-panel",15),t.TgZ(25,"imx-accordion-panel",16)(26,"div",5)(27,"div",11)(28,"div",7),t.YNc(29,at,1,0,"ng-container",8)(30,Le,1,0,"ng-container",8),t.qZA(),t.TgZ(31,"div",7),t.YNc(32,R,1,0,"ng-container",8)(33,Te,1,0,"ng-container",8),t.qZA(),t.TgZ(34,"div",7),t.YNc(35,me,1,0,"ng-container",8),t.qZA(),t.TgZ(36,"h3",17),t._uU(37,"entity.WidgetConfig.logoFileName"),t.qZA(),t.TgZ(38,"div",7)(39,"div"),t.YNc(40,Se,1,0,"ng-container",8),t._UZ(41,"imx-logo-upload",18),t.qZA()(),t.TgZ(42,"h3",17),t._uU(43,"imxplatform.widget-config.dialog.footer-links"),t.qZA(),t.TgZ(44,"div",6),t._UZ(45,"imx-link-target",19),t.qZA()()()(),t.TgZ(46,"imx-accordion-panel",20)(47,"div",5)(48,"div",11),t.YNc(49,Ue,1,0,"ng-container",8),t.qZA()()()()()()(),t.YNc(50,We,1,7,"ng-template",null,21,t.W1O)),2&Ie){const ct=t.MAs(51);t.Q6J("heading","imxplatform.widget-config.dialog.header")("subline",ot.title)("submitButtonDisabled",ot.data.formRow.pristine)("useEvents",!0),t.xp6(),t.Q6J("formHandler",ot.data.formHandler),t.xp6(),t.Q6J("formGroup",ot.data.formRow),t.xp6(6),t.Q6J("ngTemplateOutlet",ct)("ngTemplateOutletContext",t.DdM(48,et)),t.xp6(),t.Q6J("ngTemplateOutlet",ct)("ngTemplateOutletContext",t.DdM(49,Et)),t.xp6(2),t.Q6J("ngTemplateOutlet",ct)("ngTemplateOutletContext",t.DdM(50,lt)),t.xp6(),t.Q6J("field",ot.data.formHandler.formConfiguration.findFormFieldById("defaultEntityType"))("control",ot.data.formHandler.formGroup.get("defaultEntityType"))("form",ot.data.formHandler.formGroup)("formHandler",ot.data.formHandler)("optionProvider",ot.optionsForDefaultEntityType),t.xp6(6),t.Q6J("ngTemplateOutlet",ct)("ngTemplateOutletContext",t.DdM(51,Vt)),t.xp6(2),t.Q6J("ngTemplateOutlet",ct)("ngTemplateOutletContext",t.DdM(52,r)),t.xp6(),t.Q6J("ngTemplateOutlet",ct)("ngTemplateOutletContext",t.DdM(53,Z)),t.xp6(),t.Q6J("ngIf",ot.isModuleDefined(ot.WIDGET_CONFIG_MODULE_EVENT)),t.xp6(),t.Q6J("ngIf",ot.isModuleDefined(ot.WIDGET_CONFIG_MODULE_POI)),t.xp6(),t.Q6J("ngIf",ot.isModuleDefined(ot.WIDGET_CONFIG_MODULE_TOUR)),t.xp6(5),t.Q6J("ngTemplateOutlet",ct)("ngTemplateOutletContext",t.DdM(54,Pt)),t.xp6(),t.Q6J("ngTemplateOutlet",ct)("ngTemplateOutletContext",t.DdM(55,Oe)),t.xp6(2),t.Q6J("ngTemplateOutlet",ct)("ngTemplateOutletContext",t.DdM(56,ye)),t.xp6(),t.Q6J("ngTemplateOutlet",ct)("ngTemplateOutletContext",t.DdM(57,ve)),t.xp6(2),t.Q6J("ngTemplateOutlet",ct)("ngTemplateOutletContext",t.DdM(58,ft)),t.xp6(5),t.Q6J("ngTemplateOutlet",ct)("ngTemplateOutletContext",t.DdM(59,Dt)),t.xp6(),t.Q6J("allowedFileTypes",ot.allowedFileTypes)("fileFieldName","logoFileName")("imagePathFieldName","logoImageUrl")("formGroup",ot.data.formRow)("formHandler",ot.data.formHandler),t.xp6(4),t.Q6J("formHandler",ot.data.formHandler)("arrayFieldName","footerLinkTargets")("addButtonLabel","imxplatform.widget-config.dialog.add-footer-link"),t.xp6(4),t.Q6J("ngTemplateOutlet",ct)("ngTemplateOutletContext",t.DdM(60,Rn))}},dependencies:[p.O5,p.tP,c._Y,c.JL,o.gM,c.sg,x.Pi,u.Z,m.U,b.x,I.a,H.A,O.H,P.H,G.R,B.P,ae.a,J.m],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.panel_content[_ngcontent-%COMP%]{width:100%}.inner_group[_ngcontent-%COMP%]{border:1px solid #e6e9ef;width:100%;margin-bottom:10px;margin-right:10px;padding:10px 20px}h3[_ngcontent-%COMP%]{margin-left:10px;margin-top:20px;text-transform:uppercase}"]})}return Xt})()},33637:(gt,X,a)=>{"use strict";a.d(X,{P:()=>Oo}),a(45315);var n=a(83043),s=a(19212),l=a(96814),i=a(56223),t=a(92596),p=a(71365),c=a(28907),o=a(91640),x=a(4592),u=a(80182),m=a(15755);function b(no,Li){1&no&&s.GkF(0)}function I(no,Li){1&no&&s.GkF(0)}function H(no,Li){if(1&no&&(s.TgZ(0,"div",9),s._UZ(1,"imx-basic-data-override",10),s.qZA()),2&no){const ji=s.oxw();s.Q6J("matTooltip","entryPageCategories")("matTooltipPosition","left"),s.xp6(),s.Q6J("formHandler",ji.formHandler)("formGroup",ji.typeDefFormRow)("arrayFieldPath","typeDefs:entryPageCategories")("arrayFieldName","entryPageCategories")("oneLineRequired",ji.entryPageLinesRequired)("addButtonLabel","imxplatform.widget-config.dialog.add-basis-data-override")}}function O(no,Li){1&no&&s.GkF(0)}function P(no,Li){1&no&&s.GkF(0)}function G(no,Li){1&no&&s.GkF(0)}function B(no,Li){1&no&&s.GkF(0)}function ae(no,Li){1&no&&s.GkF(0)}function J(no,Li){1&no&&s.GkF(0)}function q(no,Li){1&no&&s.GkF(0)}function j(no,Li){1&no&&s.GkF(0)}function Y(no,Li){1&no&&s.GkF(0)}function K(no,Li){1&no&&s.GkF(0)}function ne(no,Li){1&no&&s.GkF(0)}function ee(no,Li){1&no&&s.GkF(0)}function $(no,Li){1&no&&s.GkF(0)}function ue(no,Li){1&no&&s.GkF(0)}function ge(no,Li){1&no&&s.GkF(0)}function Ke(no,Li){1&no&&s.GkF(0)}function at(no,Li){1&no&&s.GkF(0)}function Le(no,Li){1&no&&s.GkF(0)}function R(no,Li){1&no&&s.GkF(0)}function Te(no,Li){1&no&&s.GkF(0)}function me(no,Li){1&no&&s.GkF(0)}function Se(no,Li){1&no&&s.GkF(0)}function Ue(no,Li){1&no&&s.GkF(0)}function We(no,Li){1&no&&s.GkF(0)}function et(no,Li){1&no&&s.GkF(0)}function Et(no,Li){if(1&no&&s._UZ(0,"imx-form-control",11),2&no){const ji=Li.$implicit,Ii=s.oxw();s.Q6J("matTooltip",ji)("matTooltipPosition","left")("field",Ii.formHandler.formConfiguration.findFormFieldById("typeDefs:"+ji))("control",Ii.typeDefFormRow.get(ji))("form",Ii.typeDefFormRow)("formHandler",Ii.formHandler)("config",Ii.formHandler.formConfiguration)}}const lt=()=>({$implicit:"entryViewType"}),Vt=()=>({$implicit:"partnerClientUrl"}),r=()=>({$implicit:"showMapInList"}),Z=()=>({$implicit:"showSearchFilter"}),Pt=()=>({$implicit:"viewTypes"}),Oe=()=>({$implicit:"searchCategories"}),ye=()=>({$implicit:"searchCriteria"}),ve=()=>({$implicit:"dateSearchType"}),ft=()=>({$implicit:"startTime"}),Dt=()=>({$implicit:"locationSearchType"}),Rn=()=>({$implicit:"series"}),ti=()=>({$implicit:"whatSearchEnabled"}),Xt=()=>({$implicit:"whenSearchEnabled"}),Je=()=>({$implicit:"filterEnabled"}),dt=()=>({$implicit:"categoryFilterEnabled"}),Ie=()=>({$implicit:"categoryFilterCategories"}),ot=()=>({$implicit:"criterionFilterEnabled"}),ct=()=>({$implicit:"criterionFilterCriteria"}),tn=()=>({$implicit:"locationFilterEnabled"}),yi=()=>({$implicit:"preselectedDateType"}),ni=()=>({$implicit:"preselectedDayTimeType"}),sn=()=>({$implicit:"preselectedCategories"}),bn=()=>({$implicit:"preselectedCriteria"}),vt=()=>({$implicit:"preselectedCoordinatesLat"}),nn=()=>({$implicit:"preselectedCoordinatesLon"}),rn=()=>({$implicit:"preselectedRadius"}),ii=()=>({$implicit:"preselectedLocation"});let Oo=(()=>{class no extends n.F{constructor(){super(...arguments),this.entryPageField="entryPageCategories"}static#e=this.\u0275fac=(()=>{let ji;return function(_i){return(ji||(ji=s.n5z(no)))(_i||no)}})();static#t=this.\u0275cmp=s.Xpm({type:no,selectors:[["imx-widget-config-event-def"]],inputs:{typeDefFormRow:"typeDefFormRow",formHandler:"formHandler"},features:[s.qOj],decls:52,vars:88,consts:[[1,"form__content-row"],[1,"panel_content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["translate",""],["class","form__content-group",3,"matTooltip","matTooltipPosition",4,"ngIf"],[1,"form__content-group"],[1,"form__content-field-row"],[3,"typeDefFormRow","formHandler"],["imxFormControl",""],[1,"form__content-group",3,"matTooltip","matTooltipPosition"],[3,"formHandler","formGroup","arrayFieldPath","arrayFieldName","oneLineRequired","addButtonLabel"],[3,"matTooltip","matTooltipPosition","field","control","form","formHandler","config"]],template:function(Ii,_i){if(1&Ii&&(s.TgZ(0,"div",0)(1,"div",1),s.YNc(2,b,1,0,"ng-container",2)(3,I,1,0,"ng-container",2),s.TgZ(4,"h3",3),s._uU(5,"entity.WidgetConfigEventDev.entryPageCategories"),s.qZA(),s.YNc(6,H,2,8,"div",4)(7,O,1,0,"ng-container",2)(8,P,1,0,"ng-container",2)(9,G,1,0,"ng-container",2),s.TgZ(10,"h3",3),s._uU(11,"imxplatform.widget-config.dialog.base-def"),s.qZA(),s.TgZ(12,"div",5),s.YNc(13,B,1,0,"ng-container",2)(14,ae,1,0,"ng-container",2),s.TgZ(15,"div",6),s.YNc(16,J,1,0,"ng-container",2),s._UZ(17,"imx-date-search-type",7),s.qZA(),s.YNc(18,q,1,0,"ng-container",2),s.TgZ(19,"div",6),s.YNc(20,j,1,0,"ng-container",2),s._UZ(21,"imx-location-search-type",7),s.qZA(),s.YNc(22,Y,1,0,"ng-container",2),s.qZA(),s.TgZ(23,"h3",3),s._uU(24,"imxplatform.widget-config.dialog.user-filter-def"),s.qZA(),s.TgZ(25,"div",5),s.YNc(26,K,1,0,"ng-container",2)(27,ne,1,0,"ng-container",2)(28,ee,1,0,"ng-container",2)(29,$,1,0,"ng-container",2)(30,ue,1,0,"ng-container",2)(31,ge,1,0,"ng-container",2)(32,Ke,1,0,"ng-container",2)(33,at,1,0,"ng-container",2),s.qZA(),s.TgZ(34,"h3",3),s._uU(35,"imxplatform.widget-config.dialog.pre-selected-def"),s.qZA(),s.TgZ(36,"div",5)(37,"div",6),s.YNc(38,Le,1,0,"ng-container",2),s._UZ(39,"imx-preselected-date-type",7),s.qZA(),s.YNc(40,R,1,0,"ng-container",2)(41,Te,1,0,"ng-container",2)(42,me,1,0,"ng-container",2),s.TgZ(43,"h3",3),s._uU(44,"imxplatform.widget-config.dialog.pre-selected-location"),s.qZA(),s.TgZ(45,"div",6),s.YNc(46,Se,1,0,"ng-container",2)(47,Ue,1,0,"ng-container",2),s.qZA(),s.YNc(48,We,1,0,"ng-container",2)(49,et,1,0,"ng-container",2),s.qZA()()(),s.YNc(50,Et,1,7,"ng-template",null,8,s.W1O)),2&Ii){const En=s.MAs(51);s.xp6(2),s.Q6J("ngTemplateOutlet",En)("ngTemplateOutletContext",s.DdM(61,lt)),s.xp6(),s.Q6J("ngTemplateOutlet",En)("ngTemplateOutletContext",s.DdM(62,Vt)),s.xp6(3),s.Q6J("ngIf",_i.entryPageLinesRequired),s.xp6(),s.Q6J("ngTemplateOutlet",En)("ngTemplateOutletContext",s.DdM(63,r)),s.xp6(),s.Q6J("ngTemplateOutlet",En)("ngTemplateOutletContext",s.DdM(64,Z)),s.xp6(),s.Q6J("ngTemplateOutlet",En)("ngTemplateOutletContext",s.DdM(65,Pt)),s.xp6(4),s.Q6J("ngTemplateOutlet",En)("ngTemplateOutletContext",s.DdM(66,Oe)),s.xp6(),s.Q6J("ngTemplateOutlet",En)("ngTemplateOutletContext",s.DdM(67,ye)),s.xp6(2),s.Q6J("ngTemplateOutlet",En)("ngTemplateOutletContext",s.DdM(68,ve)),s.xp6(),s.Q6J("typeDefFormRow",_i.typeDefFormRow)("formHandler",_i.formHandler),s.xp6(),s.Q6J("ngTemplateOutlet",En)("ngTemplateOutletContext",s.DdM(69,ft)),s.xp6(2),s.Q6J("ngTemplateOutlet",En)("ngTemplateOutletContext",s.DdM(70,Dt)),s.xp6(),s.Q6J("typeDefFormRow",_i.typeDefFormRow)("formHandler",_i.formHandler),s.xp6(),s.Q6J("ngTemplateOutlet",En)("ngTemplateOutletContext",s.DdM(71,Rn)),s.xp6(4),s.Q6J("ngTemplateOutlet",En)("ngTemplateOutletContext",s.DdM(72,ti)),s.xp6(),s.Q6J("ngTemplateOutlet",En)("ngTemplateOutletContext",s.DdM(73,Xt)),s.xp6(),s.Q6J("ngTemplateOutlet",En)("ngTemplateOutletContext",s.DdM(74,Je)),s.xp6(),s.Q6J("ngTemplateOutlet",En)("ngTemplateOutletContext",s.DdM(75,dt)),s.xp6(),s.Q6J("ngTemplateOutlet",En)("ngTemplateOutletContext",s.DdM(76,Ie)),s.xp6(),s.Q6J("ngTemplateOutlet",En)("ngTemplateOutletContext",s.DdM(77,ot)),s.xp6(),s.Q6J("ngTemplateOutlet",En)("ngTemplateOutletContext",s.DdM(78,ct)),s.xp6(),s.Q6J("ngTemplateOutlet",En)("ngTemplateOutletContext",s.DdM(79,tn)),s.xp6(5),s.Q6J("ngTemplateOutlet",En)("ngTemplateOutletContext",s.DdM(80,yi)),s.xp6(),s.Q6J("typeDefFormRow",_i.typeDefFormRow)("formHandler",_i.formHandler),s.xp6(),s.Q6J("ngTemplateOutlet",En)("ngTemplateOutletContext",s.DdM(81,ni)),s.xp6(),s.Q6J("ngTemplateOutlet",En)("ngTemplateOutletContext",s.DdM(82,sn)),s.xp6(),s.Q6J("ngTemplateOutlet",En)("ngTemplateOutletContext",s.DdM(83,bn)),s.xp6(4),s.Q6J("ngTemplateOutlet",En)("ngTemplateOutletContext",s.DdM(84,vt)),s.xp6(),s.Q6J("ngTemplateOutlet",En)("ngTemplateOutletContext",s.DdM(85,nn)),s.xp6(),s.Q6J("ngTemplateOutlet",En)("ngTemplateOutletContext",s.DdM(86,rn)),s.xp6(),s.Q6J("ngTemplateOutlet",En)("ngTemplateOutletContext",s.DdM(87,ii))}},dependencies:[l.O5,l.tP,i.JL,t.gM,i.sg,p.Pi,c.A,o.J,x.A,u.z,m.d],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.panel_content[_ngcontent-%COMP%]{width:100%}.inner_group[_ngcontent-%COMP%]{border:1px solid #e6e9ef;width:100%;margin-bottom:10px;margin-right:10px;padding:10px 20px}h3[_ngcontent-%COMP%]{margin-left:10px;margin-top:20px;text-transform:uppercase}"]})}return no})()},42035:(gt,X,a)=>{"use strict";a.d(X,{m:()=>nn});var e=a(83043),n=a(19212),s=a(96814),l=a(56223),i=a(92596),t=a(71365),p=a(28907),c=a(91640);function o(rn,ii){1&rn&&n.GkF(0)}function x(rn,ii){if(1&rn&&(n.TgZ(0,"div",8),n._UZ(1,"imx-basic-data-override",9),n.qZA()),2&rn){const Oo=n.oxw();n.Q6J("matTooltip","entryPageProductlines")("matTooltipPosition","left"),n.xp6(),n.Q6J("formHandler",Oo.formHandler)("formGroup",Oo.typeDefFormRow)("arrayFieldPath","typeDefs:entryPageProductlines")("arrayFieldName","entryPageProductlines")("oneLineRequired",Oo.entryPageLinesRequired)("addButtonLabel","imxplatform.widget-config.dialog.add-basis-data-override")}}function u(rn,ii){1&rn&&n.GkF(0)}function m(rn,ii){1&rn&&n.GkF(0)}function b(rn,ii){1&rn&&n.GkF(0)}function I(rn,ii){1&rn&&n.GkF(0)}function H(rn,ii){1&rn&&n.GkF(0)}function O(rn,ii){1&rn&&n.GkF(0)}function P(rn,ii){1&rn&&n.GkF(0)}function G(rn,ii){1&rn&&n.GkF(0)}function B(rn,ii){1&rn&&n.GkF(0)}function ae(rn,ii){1&rn&&n.GkF(0)}function J(rn,ii){1&rn&&n.GkF(0)}function q(rn,ii){1&rn&&n.GkF(0)}function j(rn,ii){1&rn&&n.GkF(0)}function Y(rn,ii){1&rn&&n.GkF(0)}function K(rn,ii){1&rn&&n.GkF(0)}function ne(rn,ii){1&rn&&n.GkF(0)}function ee(rn,ii){1&rn&&n.GkF(0)}function $(rn,ii){1&rn&&n.GkF(0)}function ue(rn,ii){1&rn&&n.GkF(0)}function ge(rn,ii){1&rn&&n.GkF(0)}function Ke(rn,ii){1&rn&&n.GkF(0)}function at(rn,ii){1&rn&&n.GkF(0)}function Le(rn,ii){1&rn&&n.GkF(0)}function R(rn,ii){1&rn&&n.GkF(0)}function Te(rn,ii){1&rn&&n.GkF(0)}function me(rn,ii){1&rn&&n.GkF(0)}function Se(rn,ii){1&rn&&n.GkF(0)}function Ue(rn,ii){if(1&rn&&n._UZ(0,"imx-form-control",10),2&rn){const Oo=ii.$implicit,no=n.oxw();n.Q6J("matTooltip",Oo)("matTooltipPosition","left")("field",no.formHandler.formConfiguration.findFormFieldById("typeDefs:"+Oo))("control",no.typeDefFormRow.get(Oo))("form",no.typeDefFormRow)("formHandler",no.formHandler)("config",no.formHandler.formConfiguration)}}const We=()=>({$implicit:"entryViewType"}),et=()=>({$implicit:"showSearchFilter"}),Et=()=>({$implicit:"viewTypes"}),lt=()=>({$implicit:"productlinesAnd"}),Vt=()=>({$implicit:"productlinesOr"}),r=()=>({$implicit:"productlinesIgnore"}),Z=()=>({$implicit:"regions"}),Pt=()=>({$implicit:"locations"}),Oe=()=>({$implicit:"zipcodes"}),ye=()=>({$implicit:"coordinatesLat"}),ve=()=>({$implicit:"coordinatesLon"}),ft=()=>({$implicit:"radius"}),Dt=()=>({$implicit:"whatSearchEnabled"}),Rn=()=>({$implicit:"filterEnabled"}),ti=()=>({$implicit:"categoryFilterEnabled"}),Xt=()=>({$implicit:"categoryFilterProductlines"}),Je=()=>({$implicit:"locationFilterEnabled"}),dt=()=>({$implicit:"openingHoursFilterEnabled"}),Ie=()=>({$implicit:"criterionFilterEnabled"}),ot=()=>({$implicit:"criterionFilterProductlines"}),ct=()=>({$implicit:"preselectedLocation"}),tn=()=>({$implicit:"preselectedCategoryFilteredProductlines"}),yi=()=>({$implicit:"preselectedCriterionFilterProductlines"}),ni=()=>({$implicit:"preselectedOpeningHoursType"}),sn=()=>({$implicit:"preselectedCoordinatesLat"}),bn=()=>({$implicit:"preselectedCoordinatesLon"}),vt=()=>({$implicit:"preselectedRadius"});let nn=(()=>{class rn extends e.F{constructor(){super(...arguments),this.entryPageField="entryPageProductlines"}static#e=this.\u0275fac=(()=>{let Oo;return function(Li){return(Oo||(Oo=n.n5z(rn)))(Li||rn)}})();static#t=this.\u0275cmp=n.Xpm({type:rn,selectors:[["imx-widget-config-poi-def"]],features:[n.qOj],decls:50,vars:85,consts:[[1,"form__content-row"],[1,"panel_content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["translate",""],["class","form__content-group",3,"matTooltip","matTooltipPosition",4,"ngIf"],[1,"form__content-group"],[1,"form__content-field-row"],["imxFormControl",""],[1,"form__content-group",3,"matTooltip","matTooltipPosition"],[3,"formHandler","formGroup","arrayFieldPath","arrayFieldName","oneLineRequired","addButtonLabel"],[3,"matTooltip","matTooltipPosition","field","control","form","formHandler","config"]],template:function(no,Li){if(1&no&&(n.TgZ(0,"div",0)(1,"div",1),n.YNc(2,o,1,0,"ng-container",2),n.TgZ(3,"h3",3),n._uU(4,"entity.WidgetConfigPoiDef.entryPageProductlines"),n.qZA(),n.YNc(5,x,2,8,"div",4)(6,u,1,0,"ng-container",2)(7,m,1,0,"ng-container",2),n.TgZ(8,"h3",3),n._uU(9,"imxplatform.widget-config.dialog.base-def"),n.qZA(),n.TgZ(10,"div",5),n.YNc(11,b,1,0,"ng-container",2)(12,I,1,0,"ng-container",2)(13,H,1,0,"ng-container",2)(14,O,1,0,"ng-container",2)(15,P,1,0,"ng-container",2)(16,G,1,0,"ng-container",2),n.TgZ(17,"span",3),n._uU(18,"imxplatform.widget-config.dialog.base-def-filter-coordinates"),n.qZA(),n.TgZ(19,"div",6),n.YNc(20,B,1,0,"ng-container",2)(21,ae,1,0,"ng-container",2)(22,J,1,0,"ng-container",2),n.qZA()(),n.TgZ(23,"h3",3),n._uU(24,"imxplatform.widget-config.dialog.user-filter-def"),n.qZA(),n.TgZ(25,"div",5),n.YNc(26,q,1,0,"ng-container",2)(27,j,1,0,"ng-container",2)(28,Y,1,0,"ng-container",2)(29,K,1,0,"ng-container",2)(30,ne,1,0,"ng-container",2)(31,ee,1,0,"ng-container",2)(32,$,1,0,"ng-container",2)(33,ue,1,0,"ng-container",2),n.qZA(),n.TgZ(34,"h3",3),n._uU(35,"imxplatform.widget-config.dialog.pre-selected-def"),n.qZA(),n.TgZ(36,"div",5),n.YNc(37,ge,1,0,"ng-container",2)(38,Ke,1,0,"ng-container",2)(39,at,1,0,"ng-container",2)(40,Le,1,0,"ng-container",2),n.TgZ(41,"h3",3),n._uU(42,"imxplatform.widget-config.dialog.pre-selected-location"),n.qZA(),n.TgZ(43,"div",6),n.YNc(44,R,1,0,"ng-container",2)(45,Te,1,0,"ng-container",2),n.qZA(),n.YNc(46,me,1,0,"ng-container",2)(47,Se,1,0,"ng-container",2),n.qZA()()(),n.YNc(48,Ue,1,7,"ng-template",null,7,n.W1O)),2&no){const ji=n.MAs(49);n.xp6(2),n.Q6J("ngTemplateOutlet",ji)("ngTemplateOutletContext",n.DdM(57,We)),n.xp6(3),n.Q6J("ngIf",Li.entryPageLinesRequired),n.xp6(),n.Q6J("ngTemplateOutlet",ji)("ngTemplateOutletContext",n.DdM(58,et)),n.xp6(),n.Q6J("ngTemplateOutlet",ji)("ngTemplateOutletContext",n.DdM(59,Et)),n.xp6(4),n.Q6J("ngTemplateOutlet",ji)("ngTemplateOutletContext",n.DdM(60,lt)),n.xp6(),n.Q6J("ngTemplateOutlet",ji)("ngTemplateOutletContext",n.DdM(61,Vt)),n.xp6(),n.Q6J("ngTemplateOutlet",ji)("ngTemplateOutletContext",n.DdM(62,r)),n.xp6(),n.Q6J("ngTemplateOutlet",ji)("ngTemplateOutletContext",n.DdM(63,Z)),n.xp6(),n.Q6J("ngTemplateOutlet",ji)("ngTemplateOutletContext",n.DdM(64,Pt)),n.xp6(),n.Q6J("ngTemplateOutlet",ji)("ngTemplateOutletContext",n.DdM(65,Oe)),n.xp6(4),n.Q6J("ngTemplateOutlet",ji)("ngTemplateOutletContext",n.DdM(66,ye)),n.xp6(),n.Q6J("ngTemplateOutlet",ji)("ngTemplateOutletContext",n.DdM(67,ve)),n.xp6(),n.Q6J("ngTemplateOutlet",ji)("ngTemplateOutletContext",n.DdM(68,ft)),n.xp6(4),n.Q6J("ngTemplateOutlet",ji)("ngTemplateOutletContext",n.DdM(69,Dt)),n.xp6(),n.Q6J("ngTemplateOutlet",ji)("ngTemplateOutletContext",n.DdM(70,Rn)),n.xp6(),n.Q6J("ngTemplateOutlet",ji)("ngTemplateOutletContext",n.DdM(71,ti)),n.xp6(),n.Q6J("ngTemplateOutlet",ji)("ngTemplateOutletContext",n.DdM(72,Xt)),n.xp6(),n.Q6J("ngTemplateOutlet",ji)("ngTemplateOutletContext",n.DdM(73,Je)),n.xp6(),n.Q6J("ngTemplateOutlet",ji)("ngTemplateOutletContext",n.DdM(74,dt)),n.xp6(),n.Q6J("ngTemplateOutlet",ji)("ngTemplateOutletContext",n.DdM(75,Ie)),n.xp6(),n.Q6J("ngTemplateOutlet",ji)("ngTemplateOutletContext",n.DdM(76,ot)),n.xp6(4),n.Q6J("ngTemplateOutlet",ji)("ngTemplateOutletContext",n.DdM(77,ct)),n.xp6(),n.Q6J("ngTemplateOutlet",ji)("ngTemplateOutletContext",n.DdM(78,tn)),n.xp6(),n.Q6J("ngTemplateOutlet",ji)("ngTemplateOutletContext",n.DdM(79,yi)),n.xp6(),n.Q6J("ngTemplateOutlet",ji)("ngTemplateOutletContext",n.DdM(80,ni)),n.xp6(4),n.Q6J("ngTemplateOutlet",ji)("ngTemplateOutletContext",n.DdM(81,sn)),n.xp6(),n.Q6J("ngTemplateOutlet",ji)("ngTemplateOutletContext",n.DdM(82,bn)),n.xp6(),n.Q6J("ngTemplateOutlet",ji)("ngTemplateOutletContext",n.DdM(83,vt)),n.xp6(),n.Q6J("ngTemplateOutlet",ji)("ngTemplateOutletContext",n.DdM(84,ct))}},dependencies:[s.O5,s.tP,l.JL,i.gM,l.sg,t.Pi,p.A,c.J],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.panel_content[_ngcontent-%COMP%]{width:100%}.inner_group[_ngcontent-%COMP%]{border:1px solid #e6e9ef;width:100%;margin-bottom:10px;margin-right:10px;padding:10px 20px}h3[_ngcontent-%COMP%]{margin-left:10px;margin-top:20px;text-transform:uppercase}div.form__content-group[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:block;margin-bottom:10px}"]})}return rn})()},57863:(gt,X,a)=>{"use strict";a.d(X,{a:()=>rn});var e=a(83043),n=a(19212),s=a(96814),l=a(56223),i=a(92596),t=a(71365),p=a(28907),c=a(91640);function o(ii,Oo){1&ii&&n.GkF(0)}function x(ii,Oo){if(1&ii&&(n.TgZ(0,"div",8),n._UZ(1,"imx-basic-data-override",9),n.qZA()),2&ii){const no=n.oxw();n.Q6J("matTooltip","entryPageTourCategories")("matTooltipPosition","left"),n.xp6(),n.Q6J("formHandler",no.formHandler)("formGroup",no.typeDefFormRow)("arrayFieldPath","typeDefs:entryPageTourCategories")("arrayFieldName","entryPageTourCategories")("oneLineRequired",no.entryPageLinesRequired)("addButtonLabel","imxplatform.widget-config.dialog.add-basis-data-override")}}function u(ii,Oo){1&ii&&n.GkF(0)}function m(ii,Oo){1&ii&&n.GkF(0)}function b(ii,Oo){1&ii&&n.GkF(0)}function I(ii,Oo){1&ii&&n.GkF(0)}function H(ii,Oo){1&ii&&n.GkF(0)}function O(ii,Oo){1&ii&&n.GkF(0)}function P(ii,Oo){1&ii&&n.GkF(0)}function G(ii,Oo){1&ii&&n.GkF(0)}function B(ii,Oo){1&ii&&n.GkF(0)}function ae(ii,Oo){1&ii&&n.GkF(0)}function J(ii,Oo){1&ii&&n.GkF(0)}function q(ii,Oo){1&ii&&n.GkF(0)}function j(ii,Oo){1&ii&&n.GkF(0)}function Y(ii,Oo){1&ii&&n.GkF(0)}function K(ii,Oo){1&ii&&n.GkF(0)}function ne(ii,Oo){1&ii&&n.GkF(0)}function ee(ii,Oo){1&ii&&n.GkF(0)}function $(ii,Oo){1&ii&&n.GkF(0)}function ue(ii,Oo){1&ii&&n.GkF(0)}function ge(ii,Oo){1&ii&&n.GkF(0)}function Ke(ii,Oo){1&ii&&n.GkF(0)}function at(ii,Oo){1&ii&&n.GkF(0)}function Le(ii,Oo){1&ii&&n.GkF(0)}function R(ii,Oo){1&ii&&n.GkF(0)}function Te(ii,Oo){1&ii&&n.GkF(0)}function me(ii,Oo){1&ii&&n.GkF(0)}function Se(ii,Oo){1&ii&&n.GkF(0)}function Ue(ii,Oo){if(1&ii&&n._UZ(0,"imx-form-control",10),2&ii){const no=Oo.$implicit,Li=n.oxw();n.Q6J("matTooltip",no)("matTooltipPosition","left")("field",Li.formHandler.formConfiguration.findFormFieldById("typeDefs:"+no))("control",Li.typeDefFormRow.get(no))("form",Li.typeDefFormRow)("formHandler",Li.formHandler)("config",Li.formHandler.formConfiguration)}}const We=()=>({$implicit:"entryViewType"}),et=()=>({$implicit:"showSearchFilter"}),Et=()=>({$implicit:"viewTypes"}),lt=()=>({$implicit:"regions"}),Vt=()=>({$implicit:"locations"}),r=()=>({$implicit:"zipcodes"}),Z=()=>({$implicit:"tourCategories"}),Pt=()=>({$implicit:"coordinatesLat"}),Oe=()=>({$implicit:"coordinatesLon"}),ye=()=>({$implicit:"radius"}),ve=()=>({$implicit:"whatSearchEnabled"}),ft=()=>({$implicit:"filterEnabled"}),Dt=()=>({$implicit:"categoryFilterEnabled"}),Rn=()=>({$implicit:"activityFilterTourCategories"}),ti=()=>({$implicit:"locationFilterEnabled"}),Xt=()=>({$implicit:"difficultyLevelFilterEnabled"}),Je=()=>({$implicit:"attributeFilterTourAttributes"}),dt=()=>({$implicit:"preselectedTourCategories"}),Ie=()=>({$implicit:"preselectedDifficultyLevel"}),ot=()=>({$implicit:"preselectedMinDuration"}),ct=()=>({$implicit:"preselectedMaxDuration"}),tn=()=>({$implicit:"preselectedMinLength"}),yi=()=>({$implicit:"preselectedMaxLength"}),ni=()=>({$implicit:"preselectedActivityFilterTourAttributes"}),sn=()=>({$implicit:"preselectedCoordinatesLat"}),bn=()=>({$implicit:"preselectedCoordinatesLon"}),vt=()=>({$implicit:"preselectedRadius"}),nn=()=>({$implicit:"preselectedLocation"});let rn=(()=>{class ii extends e.F{constructor(){super(...arguments),this.entryPageField="entryPageTourCategories"}static#e=this.\u0275fac=(()=>{let no;return function(ji){return(no||(no=n.n5z(ii)))(ji||ii)}})();static#t=this.\u0275cmp=n.Xpm({type:ii,selectors:[["imx-widget-config-tour-def"]],features:[n.qOj],decls:51,vars:85,consts:[[1,"form__content-row"],[1,"panel_content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["translate",""],["class","form__content-group",3,"matTooltip","matTooltipPosition",4,"ngIf"],[1,"form__content-group"],[1,"form__content-field-row"],["imxFormControl",""],[1,"form__content-group",3,"matTooltip","matTooltipPosition"],[3,"formHandler","formGroup","arrayFieldPath","arrayFieldName","oneLineRequired","addButtonLabel"],[3,"matTooltip","matTooltipPosition","field","control","form","formHandler","config"]],template:function(Li,ji){if(1&Li&&(n.TgZ(0,"div",0)(1,"div",1),n.YNc(2,o,1,0,"ng-container",2),n.TgZ(3,"h3",3),n._uU(4,"entity.WidgetConfigTourDef.entryPageTourCategories"),n.qZA(),n.YNc(5,x,2,8,"div",4)(6,u,1,0,"ng-container",2)(7,m,1,0,"ng-container",2),n.TgZ(8,"h3",3),n._uU(9,"imxplatform.widget-config.dialog.base-def"),n.qZA(),n.TgZ(10,"div",5),n.YNc(11,b,1,0,"ng-container",2)(12,I,1,0,"ng-container",2)(13,H,1,0,"ng-container",2)(14,O,1,0,"ng-container",2),n.TgZ(15,"span",3),n._uU(16,"imxplatform.widget-config.dialog.base-def-filter-coordinates"),n.qZA(),n.TgZ(17,"div",6),n.YNc(18,P,1,0,"ng-container",2)(19,G,1,0,"ng-container",2)(20,B,1,0,"ng-container",2),n.qZA()(),n.TgZ(21,"h3",3),n._uU(22,"imxplatform.widget-config.dialog.user-filter-def"),n.qZA(),n.YNc(23,ae,1,0,"ng-container",2)(24,J,1,0,"ng-container",2)(25,q,1,0,"ng-container",2)(26,j,1,0,"ng-container",2)(27,Y,1,0,"ng-container",2)(28,K,1,0,"ng-container",2)(29,ne,1,0,"ng-container",2),n.TgZ(30,"h3",3),n._uU(31,"imxplatform.widget-config.dialog.pre-selected-def"),n.qZA(),n.TgZ(32,"div",5),n.YNc(33,ee,1,0,"ng-container",2)(34,$,1,0,"ng-container",2),n.TgZ(35,"div",6),n.YNc(36,ue,1,0,"ng-container",2)(37,ge,1,0,"ng-container",2),n.qZA(),n.TgZ(38,"div",6),n.YNc(39,Ke,1,0,"ng-container",2)(40,at,1,0,"ng-container",2),n.qZA(),n.YNc(41,Le,1,0,"ng-container",2),n.TgZ(42,"h3",3),n._uU(43,"imxplatform.widget-config.dialog.pre-selected-location"),n.qZA(),n.TgZ(44,"div",6),n.YNc(45,R,1,0,"ng-container",2)(46,Te,1,0,"ng-container",2),n.qZA(),n.YNc(47,me,1,0,"ng-container",2)(48,Se,1,0,"ng-container",2),n.qZA()()(),n.YNc(49,Ue,1,7,"ng-template",null,7,n.W1O)),2&Li){const Ii=n.MAs(50);n.xp6(2),n.Q6J("ngTemplateOutlet",Ii)("ngTemplateOutletContext",n.DdM(57,We)),n.xp6(3),n.Q6J("ngIf",ji.entryPageLinesRequired),n.xp6(),n.Q6J("ngTemplateOutlet",Ii)("ngTemplateOutletContext",n.DdM(58,et)),n.xp6(),n.Q6J("ngTemplateOutlet",Ii)("ngTemplateOutletContext",n.DdM(59,Et)),n.xp6(4),n.Q6J("ngTemplateOutlet",Ii)("ngTemplateOutletContext",n.DdM(60,lt)),n.xp6(),n.Q6J("ngTemplateOutlet",Ii)("ngTemplateOutletContext",n.DdM(61,Vt)),n.xp6(),n.Q6J("ngTemplateOutlet",Ii)("ngTemplateOutletContext",n.DdM(62,r)),n.xp6(),n.Q6J("ngTemplateOutlet",Ii)("ngTemplateOutletContext",n.DdM(63,Z)),n.xp6(4),n.Q6J("ngTemplateOutlet",Ii)("ngTemplateOutletContext",n.DdM(64,Pt)),n.xp6(),n.Q6J("ngTemplateOutlet",Ii)("ngTemplateOutletContext",n.DdM(65,Oe)),n.xp6(),n.Q6J("ngTemplateOutlet",Ii)("ngTemplateOutletContext",n.DdM(66,ye)),n.xp6(3),n.Q6J("ngTemplateOutlet",Ii)("ngTemplateOutletContext",n.DdM(67,ve)),n.xp6(),n.Q6J("ngTemplateOutlet",Ii)("ngTemplateOutletContext",n.DdM(68,ft)),n.xp6(),n.Q6J("ngTemplateOutlet",Ii)("ngTemplateOutletContext",n.DdM(69,Dt)),n.xp6(),n.Q6J("ngTemplateOutlet",Ii)("ngTemplateOutletContext",n.DdM(70,Rn)),n.xp6(),n.Q6J("ngTemplateOutlet",Ii)("ngTemplateOutletContext",n.DdM(71,ti)),n.xp6(),n.Q6J("ngTemplateOutlet",Ii)("ngTemplateOutletContext",n.DdM(72,Xt)),n.xp6(),n.Q6J("ngTemplateOutlet",Ii)("ngTemplateOutletContext",n.DdM(73,Je)),n.xp6(4),n.Q6J("ngTemplateOutlet",Ii)("ngTemplateOutletContext",n.DdM(74,dt)),n.xp6(),n.Q6J("ngTemplateOutlet",Ii)("ngTemplateOutletContext",n.DdM(75,Ie)),n.xp6(2),n.Q6J("ngTemplateOutlet",Ii)("ngTemplateOutletContext",n.DdM(76,ot)),n.xp6(),n.Q6J("ngTemplateOutlet",Ii)("ngTemplateOutletContext",n.DdM(77,ct)),n.xp6(2),n.Q6J("ngTemplateOutlet",Ii)("ngTemplateOutletContext",n.DdM(78,tn)),n.xp6(),n.Q6J("ngTemplateOutlet",Ii)("ngTemplateOutletContext",n.DdM(79,yi)),n.xp6(),n.Q6J("ngTemplateOutlet",Ii)("ngTemplateOutletContext",n.DdM(80,ni)),n.xp6(4),n.Q6J("ngTemplateOutlet",Ii)("ngTemplateOutletContext",n.DdM(81,sn)),n.xp6(),n.Q6J("ngTemplateOutlet",Ii)("ngTemplateOutletContext",n.DdM(82,bn)),n.xp6(),n.Q6J("ngTemplateOutlet",Ii)("ngTemplateOutletContext",n.DdM(83,vt)),n.xp6(),n.Q6J("ngTemplateOutlet",Ii)("ngTemplateOutletContext",n.DdM(84,nn))}},dependencies:[s.O5,s.tP,l.JL,i.gM,l.sg,t.Pi,p.A,c.J],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.panel_content[_ngcontent-%COMP%]{width:100%}.inner_group[_ngcontent-%COMP%]{border:1px solid #e6e9ef;width:100%;margin-bottom:10px;margin-right:10px;padding:10px 20px}h3[_ngcontent-%COMP%]{margin-left:10px;margin-top:20px;text-transform:uppercase}div.form__content-group[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:block;margin-bottom:10px}"]})}return ii})()},13557:(gt,X,a)=>{"use strict";a.d(X,{G:()=>c});var e=a(19212),n=a(96814),s=a(59626),l=a(71365);function i(o,x){if(1&o){const u=e.EpF();e.TgZ(0,"button",2),e.NdJ("click",function(){e.CHM(u);const b=e.oxw();return e.KtG(b.createDuplicatesList.emit())}),e._UZ(1,"i",3),e._uU(2),e.ALo(3,"translate"),e.qZA()}if(2&o){const u=e.oxw();e.xp6(2),e.hij(" ",e.lcZ(3,1,u.resourcePrefix+".edit.dialog-create.header"),"\n")}}function t(o,x){if(1&o){const u=e.EpF();e.TgZ(0,"button",5),e.NdJ("click",function(){e.CHM(u);const b=e.oxw(2);return e.KtG(b.resolveDuplicatesList.emit())}),e.ALo(1,"async"),e._UZ(2,"i",6),e._uU(3),e.ALo(4,"translate"),e.qZA()}if(2&o){const u=e.oxw(2);e.Q6J("disabled",!1===e.lcZ(1,2,u.duplicateGroupsLoaded)),e.xp6(3),e.hij(" ",e.lcZ(4,4,u.resourcePrefix+".list.resolve-duplicates-button")," ")}}function p(o,x){if(1&o&&(e.ynx(0),e.YNc(1,t,5,6,"button",4),e.BQk()),2&o){const u=e.oxw();e.xp6(),e.Q6J("hasAnyPermission",u.resolveDuplicatesPermission.name)}}let c=(()=>{class o{constructor(){this.showResolveAllBtn=!1,this.createDuplicatesList=new e.vpe,this.resolveDuplicatesList=new e.vpe}static#e=this.\u0275fac=function(m){return new(m||o)};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["imx-duplicates-button-bar"]],inputs:{createDuplicatesPermission:"createDuplicatesPermission",resolveDuplicatesPermission:"resolveDuplicatesPermission",showResolveAllBtn:"showResolveAllBtn",resourcePrefix:"resourcePrefix",duplicateGroupsLoaded:"duplicateGroupsLoaded"},outputs:{createDuplicatesList:"createDuplicatesList",resolveDuplicatesList:"resolveDuplicatesList"},decls:2,vars:2,consts:[["class","imx-button default with-icon",3,"click",4,"hasAnyPermission"],[4,"ngIf"],[1,"imx-button","default","with-icon",3,"click"],[1,"icon","icon-duplicate"],["class","imx-button default with-icon",3,"disabled","click",4,"hasAnyPermission"],[1,"imx-button","default","with-icon",3,"disabled","click"],[1,"icon","icon-undo_list-duplicates"]],template:function(m,b){1&m&&e.YNc(0,i,4,3,"button",0)(1,p,2,1,"ng-container",1),2&m&&(e.Q6J("hasAnyPermission",b.createDuplicatesPermission.name),e.xp6(),e.Q6J("ngIf",b.showResolveAllBtn))},dependencies:[n.O5,s.R,n.Ov,l.X$],styles:[".imx-button[_ngcontent-%COMP%]{margin-bottom:5px}.imx-button[_ngcontent-%COMP%]:first-of-type{margin-right:10px}"]})}return o})()},26088:(gt,X,a)=>{"use strict";a.d(X,{E:()=>l});var e=a(19212),n=a(96814),s=a(71365);let l=(()=>{class i{constructor(){this.showRed=!1}static#e=this.\u0275fac=function(c){return new(c||i)};static#t=this.\u0275cmp=e.Xpm({type:i,selectors:[["imx-duplicates-header-property"]],hostAttrs:[1,"imx-duplicates-header-property"],hostVars:2,hostBindings:function(c,o){2&c&&e.ekj("txt-error",o.showRed)},inputs:{resourceBundleKey:"resourceBundleKey",showRed:"showRed"},decls:3,vars:4,consts:[[3,"ngClass"]],template:function(c,o){1&c&&(e._UZ(0,"span",0),e._uU(1),e.ALo(2,"translate")),2&c&&(e.Q6J("ngClass",o.showRed?"icon-notificationType-Warning":"icon-checkmark"),e.xp6(),e.hij(" ",e.lcZ(2,2,o.resourceBundleKey)," "))},dependencies:[n.mk,s.X$],styles:["\n\n\n\n\n\n\n\n\n\n\n\n[_nghost-%COMP%]{font-size:10px;line-height:1.2em;white-space:nowrap}[_nghost-%COMP%]:not(:last-child){margin-right:7px}[_nghost-%COMP%] > span[_ngcontent-%COMP%]{margin-right:2px}"]})}return i})()},66253:(gt,X,a)=>{"use strict";a.d(X,{n:()=>_i});var e=a(19212),n=a(22819),s=a(69258),i=(a(45315),a(18051)),t=a(21473),p=a(83010),c=a(96814),o=a(92596),x=a(22941),u=a(37012),m=a(12),b=a(35475),I=a(38777),H=a(71365),O=a(22194);const P=()=>[];function G(En,co){if(1&En&&(e.TgZ(0,"imx-tooltip",1)(1,"a",2)(2,"span",3),e._UZ(3,"span",4)(4,"span",5),e.qZA()()()),2&En){const yn=e.oxw();e.Q6J("tooltipText",yn.getScoreTooltip("entity.Client.reliabilityClassification",null==yn.record.client||null==yn.record.client.reliabilityClassification?null:yn.record.client.reliabilityClassification.name))("offset",300),e.xp6(),e.Q6J("routerLink",e.DdM(4,P)),e.xp6(),e.Q6J("ngClass",yn.reliabilityIcon)}}let B=(()=>{class En{constructor(yn){this.translateService=yn}ngOnChanges(yn){yn.record&&this.record&&(this.reliabilityIcon=this.calcReliabilityClassificationIcon())}getScoreTooltip(yn,ln){return this.translateService.instant(yn)+": "+ln}calcReliabilityClassificationIcon(){const yn="icon-reliabilityClassification_",ln=this.record.client&&this.record.client.reliabilityClassification?this.record.client.reliabilityClassification.name:null;if(null==ln)return null;switch(ln){case"AGGREGATOR":return yn+"10_red";case"OPENDATA":return yn+"20_orange";case"PRIMARY":return yn+"30_yellow";case"MASTER":return yn+"40_green";default:return null}}static#e=this.\u0275fac=function(ln){return new(ln||En)(e.Y36(H.sK))};static#t=this.\u0275cmp=e.Xpm({type:En,selectors:[["imx-client-reliability-classification-icon"]],inputs:{record:"record"},features:[e.TTD],decls:1,vars:1,consts:[[3,"tooltipText","offset",4,"ngIf"],[3,"tooltipText","offset"],["fragment","anatomy",1,"actions",3,"routerLink"],[1,"imx-icon-middle",3,"ngClass"],[1,"path1"],[1,"path2"]],template:function(ln,He){1&ln&&e.YNc(0,G,5,5,"imx-tooltip",0),2&ln&&e.Q6J("ngIf",He.reliabilityIcon)},dependencies:[c.mk,c.O5,x.rH,b.K,O.F],styles:[".actions[_ngcontent-%COMP%]{padding:5px 0 0 10px;margin-left:10px;border-left:1px solid #e6e9ef;display:inline-block;cursor:pointer;text-decoration:none}"]})}return En})();var ae=a(17700),q=(a(79309),a(51418)),j=a(96124),Y=a(16699),K=a(56223),ne=a(10444),ee=a(33946);let $=(()=>{class En{constructor(yn,ln,He){this.translateService=yn,this.dataAccess=ln,this.data=He,this.promptSelectOptionsFormControl=new K.p4(null,{validators:this.validPromptConverter}),this.selectedPromptConverterFormGroup=new K.nJ({selectedPromptConverter:this.promptSelectOptionsFormControl}),this.promptConvertersOptions=[]}ngOnInit(){this.dataAccess.getPromptConverters(this.data.entityType,this.data.entityId).subscribe(yn=>{const ln=[];ln.push({value:-1,label:"imxplatform.common.select-placeholder-demand"});for(const He of yn){const rt=this.translateService.instant("entity.PromptConverter."+He.name);ln.push({value:He,label:rt})}this.selectedPromptConverterFormGroup.controls.selectedPromptConverter.setValue(-1),this.promptConvertersOptions=ln})}getDialogResult(){return this.promptSelectOptionsFormControl.value}validPromptConverter(yn){return-1===yn.value?{invalidPromptConverter:!0}:null}static#e=this.\u0275fac=function(ln){return new(ln||En)(e.Y36(H.sK),e.Y36(n.nq),e.Y36(ae.WI))};static#t=this.\u0275cmp=e.Xpm({type:En,selectors:[["ng-component"]],decls:6,vars:7,consts:[[3,"heading","icon","submitButtonDisabled","submitButtonLabel","getSubmitResult"],["translate",""],[3,"formGroup"],["formControlName","selectedPromptConverter",3,"options"]],template:function(ln,He){1&ln&&(e.TgZ(0,"imx-dialog",0)(1,"p",1),e._uU(2,"imxplatform.ai-texts.dialog.dialog-ai-text-select.help"),e.qZA(),e._UZ(3,"br"),e.TgZ(4,"div",2),e._UZ(5,"imx-base-select",3),e.qZA()()),2&ln&&(e.Q6J("heading",He.data.title)("icon",He.data.iconClass)("submitButtonDisabled",!He.selectedPromptConverterFormGroup.valid)("submitButtonLabel","imxplatform.ai-texts.dialog.dialog-ai-text-select.continue")("getSubmitResult",He.getDialogResult.bind(He)),e.xp6(4),e.Q6J("formGroup",He.selectedPromptConverterFormGroup),e.xp6(),e.Q6J("options",He.promptConvertersOptions))},dependencies:[K.JJ,K.JL,K.sg,K.u,H.Pi,ne.o,ee.a]})}return En})();var ue=a(59143);let ge=(()=>{class En{constructor(){this.dialog=(0,e.f3M)(ae.uw),this.translateService=(0,e.f3M)(H.sK),this.userMessageService=(0,e.f3M)(ue.Y),this.entitiesMgrService=(0,e.f3M)(t.qB)}openAiTextDialog(yn,ln,He){this.dialog.open($,{maxWidth:600,data:{title:this.translateService.instant("imxplatform.ai-texts.dialog.dialog-ai-text-select.header"),iconClass:"icon-magic-pen",entityType:yn,entityId:ln}}).afterClosed().subscribe($e=>{$e&&($e.promptForMetainfo&&this.getModuleKey($e.promptForMetainfo).subscribe(Ve=>{$e.promptForModuleKey=Ve}),this.openActualAiTextDialog(yn,He,$e))})}getModuleKey(yn){return this.entitiesMgrService.getEntityWithIdOfType("Productline",yn).pipe((0,q.q)(1),(0,j.U)(ln=>ln.plKey))}openActualAiTextDialog(yn,ln,He){this.dialog.open(Y.h,{maxWidth:800,width:"800px",data:{title:this.translateService.instant("TEXT_GENERATION"===He.promptType?"imxplatform.ai-texts.dialog.dialog-ai-text.text_generation_header":"imxplatform.ai-texts.dialog.dialog-ai-text.extraction_header"),entityFormHandler:ln,entityType:yn,promptConverter:He,writesI18n:!0}}).afterClosed().subscribe(Ve=>{Ve&&this.userMessageService.showInfo("TEXT_GENERATION"===He.promptType?"imxplatform.ai-texts.dialog.dialog-ai-text.text_generation_success":"imxplatform.ai-texts.dialog.dialog-ai-text.extraction_success")})}static#e=this.\u0275fac=function(ln){return new(ln||En)};static#t=this.\u0275prov=e.Yz7({token:En,factory:En.\u0275fac,providedIn:"root"})}return En})();function Ke(En,co){if(1&En){const yn=e.EpF();e.ynx(0),e.TgZ(1,"imx-tooltip",1)(2,"a",2)(3,"span",3),e.NdJ("click",function(){e.CHM(yn);const He=e.oxw();return e.KtG(He.aiTextService.openAiTextDialog(He.entityType,He.entityId,He.formHandler))}),e._UZ(4,"span",4)(5,"span",5),e.qZA()()(),e.BQk()}2&En&&(e.xp6(),e.Q6J("tooltipText","imxplatform.ai-texts.dialog.dialog-ai-text.header")("offset",300),e.xp6(2),e.Q6J("ngClass","icon-magic-pen"))}let at=(()=>{class En{constructor(){this.aiTextService=(0,e.f3M)(ge),this.configurationProvider=(0,e.f3M)(t.Pc),this.aiGenerationEnabled=!1}ngOnInit(){this.configurationProvider.getBoolean(t.x3.PLATFORM_AI_GENERATION_ENABLED).subscribe(yn=>{this.aiGenerationEnabled=1==yn})}static#e=this.\u0275fac=function(ln){return new(ln||En)};static#t=this.\u0275cmp=e.Xpm({type:En,selectors:[["imx-ai-text-icon"]],inputs:{formHandler:"formHandler",entityType:"entityType",entityId:"entityId"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"tooltipText","offset"],[1,"actions"],[1,"imx-icon-middle","ai-text-icon",3,"ngClass","click"],[1,"path1"],[1,"path2"]],template:function(ln,He){1&ln&&e.YNc(0,Ke,6,3,"ng-container",0),2&ln&&e.Q6J("ngIf","Addressbase"===He.entityType&&He.aiGenerationEnabled&&void 0!==He.entityId)},dependencies:[c.mk,c.O5,b.K,O.F],styles:[".actions[_ngcontent-%COMP%]{padding:5px 0 0 10px;margin-left:10px;border-left:1px solid #e6e9ef;display:inline-block;cursor:pointer;text-decoration:none}.ai-text-icon[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}return En})();var Le=a(10791);const R=()=>[];function Te(En,co){if(1&En&&(e.TgZ(0,"imx-tooltip",1)(1,"a",2)(2,"span",3),e._UZ(3,"span",4)(4,"span",5),e.qZA()()()),2&En){const yn=e.oxw();e.Q6J("tooltipText",yn.getRoundedScoreTooltip("entity.ScorableDataObject.contentScore",yn.record.contentScore))("offset",300),e.xp6(),e.Q6J("routerLink",e.DdM(4,R)),e.xp6(),e.Q6J("ngClass",yn.contentScoreIcon)}}let me=(()=>{class En{constructor(yn,ln,He){this.configurationProvider=yn,this.translateService=ln,this.contentScoreService=He}ngOnChanges(yn){yn.record&&this.record&&(this.contentScoreIcon=this.contentScoreService.calcContentScoreIcon(this.record))}showContentScore(){return this.contentScoreIcon&&this.configurationProvider.getBooleanFromSnapshot(t.x3.PLATFORM_CONTENT_SCORE_ENABLED)}getRoundedScoreTooltip(yn,ln){let He;return He="string"==typeof ln?Math.round(10*parseFloat(ln))/10:"number"==typeof ln?Math.round(10*ln)/10:ln,this.translateService.instant(yn)+": "+He}static#e=this.\u0275fac=function(ln){return new(ln||En)(e.Y36(t.Pc),e.Y36(H.sK),e.Y36(Le.W))};static#t=this.\u0275cmp=e.Xpm({type:En,selectors:[["imx-content-score-icon"]],inputs:{record:"record"},features:[e.TTD],decls:1,vars:1,consts:[[3,"tooltipText","offset",4,"ngIf"],[3,"tooltipText","offset"],["fragment","anatomy",1,"actions",3,"routerLink"],[1,"imx-icon-middle",3,"ngClass"],[1,"path1"],[1,"path2"]],template:function(ln,He){1&ln&&e.YNc(0,Te,5,5,"imx-tooltip",0),2&ln&&e.Q6J("ngIf",He.showContentScore())},dependencies:[c.mk,c.O5,x.rH,b.K,O.F],styles:[".actions[_ngcontent-%COMP%]{padding:5px 0 0 10px;margin-left:10px;border-left:1px solid #e6e9ef;display:inline-block;cursor:pointer;text-decoration:none}"]})}return En})();var Se=a(54517),Ue=a(3305),We=a(80617),et=a(25313),Et=a(1614);function lt(En,co){1&En&&e._UZ(0,"mat-row")}const Vt=En=>({"header-label":En});function r(En,co){if(1&En&&(e.TgZ(0,"mat-cell",6)(1,"span",7),e._uU(2),e.qZA()()),2&En){const yn=co.$implicit;e.Q6J("ngClass",e.VKq(2,Vt,yn.isHeader)),e.xp6(2),e.Oqu(yn.label)}}const Z=En=>({"header-value":En});function Pt(En,co){if(1&En&&(e.TgZ(0,"mat-cell",6)(1,"span"),e._uU(2),e.ALo(3,"readI18n"),e.qZA()()),2&En){const yn=co.$implicit;e.Q6J("ngClass",e.VKq(4,Z,yn.isHeader)),e.xp6(2),e.Oqu(e.lcZ(3,2,yn.value))}}let Oe=(()=>{class En{constructor(yn,ln){this.convertTimestampsPipe=yn,this.entitiesMgrService=ln,this.displayedColumns=["label","value"],this.importInfoDataSource=[],this.datePipe=new c.uU("de")}ngOnInit(){this.importInfo&&(this.importInfoDataSource.push({label:"imxplatform.common-entity.edit.panels.import-info.origin",isHeader:!0},{label:"imxplatform.common-entity.edit.panels.import-info.originSystem",value:(this.importInfo.originId?this.importInfo.originId:"")+" / "+(this.importInfo.originSystem?this.importInfo.originSystem:"")},{label:"imxplatform.common-entity.edit.panels.import-info.externalDataProvider",isHeader:!0},{label:"imxplatform.common-entity.edit.panels.import-info.externalDataProviderExternalId",value:this.importInfo.externalDataProvider?this.importInfo.externalDataProvider.externalId:""},{label:"imxplatform.common-entity.edit.panels.import-info.externalDataProviderName",value:this.importInfo.externalDataProvider?this.importInfo.externalDataProvider.name:""},{label:"imxplatform.common-entity.edit.panels.import-info.externalDataProviderUrl",value:this.importInfo.externalDataProvider?this.importInfo.externalDataProvider.url:""},{label:"imxplatform.common-entity.edit.panels.import-info.externalDataProviderLogo",value:this.importInfo.externalDataProvider?this.importInfo.externalDataProvider.logo:""},{label:"imxplatform.common-entity.edit.panels.import-info.externalDataProviderTimeStamps",value:this.getDates()},{label:"imxplatform.common-entity.edit.panels.import-info.externalDataProviderInfos",value:this.importInfo.externalDataInfo}),this.importInfo.mediaLicense?this.entitiesMgrService.getEntityWithIdOfType("MediaLicense",this.importInfo.mediaLicense.id).subscribe(yn=>{const ln=[];ln.push(...this.importInfoDataSource),ln.push({label:"imxplatform.common-entity.edit.panels.import-info.license",value:this.importInfo.mediaLicense?yn.i18nName:""}),this.importInfoDataSource=ln}):this.importInfoDataSource.push({label:"imxplatform.common-entity.edit.panels.import-info.license",value:""}))}getDates(){return this.transformTimeStamp(this.importInfo.externalSystemCreationTime)+" / "+this.transformTimeStamp(this.importInfo.externalSystemLastChangeTime)+" / "+this.transformTimeStamp(this.importInfo.externalSystemPublishTime)}transformTimeStamp(yn){return yn?this.datePipe.transform(this.convertTimestampsPipe.transform(yn),"dd.MM.yyyy - HH:mm:ss"):""}static#e=this.\u0275fac=function(ln){return new(ln||En)(e.Y36(We.E),e.Y36(t.qB))};static#t=this.\u0275cmp=e.Xpm({type:En,selectors:[["imx-import-info"]],inputs:{importInfo:"importInfo"},decls:7,vars:2,consts:[[1,"import-info-table"],[3,"dataSource"],[4,"matRowDef","matRowDefColumns"],["matColumnDef","label"],[3,"ngClass",4,"matCellDef"],["matColumnDef","value"],[3,"ngClass"],["translate",""]],template:function(ln,He){1&ln&&(e.TgZ(0,"div",0)(1,"mat-table",1),e.YNc(2,lt,1,0,"mat-row",2),e.ynx(3,3),e.YNc(4,r,3,4,"mat-cell",4),e.BQk(),e.ynx(5,5),e.YNc(6,Pt,4,6,"mat-cell",4),e.BQk(),e.qZA()()),2&ln&&(e.xp6(),e.Q6J("dataSource",He.importInfoDataSource),e.xp6(),e.Q6J("matRowDefColumns",He.displayedColumns))},dependencies:[c.mk,et.BZ,et.w1,et.Dz,et.nj,et.ev,et.Gk,H.Pi,Et.j],styles:[".mat-mdc-column-label[_ngcontent-%COMP%]{flex:3}.mat-mdc-column-value[_ngcontent-%COMP%]{flex:7}.import-info-table[_ngcontent-%COMP%]{padding-left:25px}.mat-mdc-row[_ngcontent-%COMP%]{min-height:32px}.mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-collapse:collapse;padding:2px 5px 5px;min-height:20px;color:inherit;overflow:hidden;font-size:12px}.mat-mdc-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-cell[_ngcontent-%COMP%]:nth-last-child(1){border:none}.mat-mdc-cell[_ngcontent-%COMP%]:first-of-type{padding-left:2px}.header-label[_ngcontent-%COMP%]{font-size:14px;line-height:16px;font-weight:700;border:none}.header-value[_ngcontent-%COMP%]{display:none}"]})}return En})();function ye(En,co){1&En&&e._UZ(0,"span",7)}function ve(En,co){1&En&&e._UZ(0,"span",8)}function ft(En,co){if(1&En){const yn=e.EpF();e.ynx(0),e.TgZ(1,"mat-expansion-panel",1),e.NdJ("opened",function(){const rt=e.CHM(yn).index,$e=e.oxw();return e.KtG($e.open(rt))})("closed",function(){const rt=e.CHM(yn).index,$e=e.oxw();return e.KtG($e.close(rt))}),e.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title",2)(4,"div",2)(5,"span",3),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"span"),e._uU(9),e.qZA()(),e.TgZ(10,"div",2)(11,"span",3),e._uU(12),e.ALo(13,"translate"),e.qZA(),e.TgZ(14,"span"),e._uU(15),e.qZA()()(),e.TgZ(16,"mat-panel-description"),e.YNc(17,ye,1,0,"span",4)(18,ve,1,0,"span",5),e.qZA()(),e._UZ(19,"imx-import-info",6),e.qZA(),e.BQk()}if(2&En){const yn=co.$implicit,ln=co.index,He=e.oxw();e.xp6(),e.Q6J("expanded",0===ln),e.xp6(5),e.hij("",e.lcZ(7,8,"imxplatform.common-entity.edit.panels.import-info.importIdentifier"),": "),e.xp6(3),e.Oqu(yn.importIdentifier),e.xp6(3),e.hij("",e.lcZ(13,10,"imxplatform.common-entity.edit.panels.import-info.importSource"),": "),e.xp6(3),e.Oqu(yn.importRun.importSource),e.xp6(2),e.Q6J("ngIf",He.isOpen(ln)),e.xp6(),e.Q6J("ngIf",!He.isOpen(ln)),e.xp6(),e.Q6J("importInfo",yn)}}let Dt=(()=>{class En{constructor(){this.openedMap=new Map}open(yn){this.openedMap.set(yn,!0)}close(yn){this.openedMap.set(yn,!1)}isOpen(yn){return this.openedMap.get(yn)}static#e=this.\u0275fac=function(ln){return new(ln||En)};static#t=this.\u0275cmp=e.Xpm({type:En,selectors:[["imx-import-info-list"]],inputs:{record:"record"},decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],["hideToggle","true",3,"expanded","opened","closed"],[1,"txt-ellipsis"],[1,"label"],["class","icon-chevron-up",4,"ngIf"],["class","icon-chevron-down",4,"ngIf"],[3,"importInfo"],[1,"icon-chevron-up"],[1,"icon-chevron-down"]],template:function(ln,He){1&ln&&(e.TgZ(0,"mat-accordion"),e.YNc(1,ft,20,12,"ng-container",0),e.qZA()),2&ln&&(e.xp6(),e.Q6J("ngForOf",He.record.importInfos))},dependencies:[c.sg,c.O5,Ue.pp,Ue.ib,Ue.yz,Ue.yK,Ue.u4,Oe,H.X$],styles:[".headline[_ngcontent-%COMP%]{font-size:20px;line-height:22px;margin-bottom:10px}.mat-mdc-expansion-panel-header[_ngcontent-%COMP%]{background-color:#fff;display:flex;height:42px!important;padding:0;font-size:12px;line-height:18px}.mat-mdc-expansion-panel-header.cdk-focused.cdk-mouse-focused[_ngcontent-%COMP%]{background-color:#fff}.mat-mdc-expansion-panel-header-title[_ngcontent-%COMP%]{display:flex}.mat-mdc-expansion-panel-header-title[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-weight:700}.mat-mdc-expansion-panel-header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{flex:3}.mat-mdc-expansion-panel-header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{flex:7}.mat-mdc-expansion-panel-header[_ngcontent-%COMP%]{border-top:1px solid #ced4e0;border-bottom:1px solid #ced4e0;border-radius:0;padding-left:10px}.mat-mdc-expansion-panel-header.mat-mdc-expanded[_ngcontent-%COMP%]{border-radius:0;box-shadow:none}.mat-mdc-expansion-panel[_ngcontent-%COMP%]{border-radius:0;border-bottom:none;box-shadow:none}mat-accordion-panel[_ngcontent-%COMP%] > .mat-mdc-expansion-panel[_ngcontent-%COMP%]:not([class*=mat-elevation-z]){box-shadow:none}.mat-mdc-expansion-panel-spacing[_ngcontent-%COMP%]{margin:0}.mat-mdc-expansion-panel-header-description[_ngcontent-%COMP%]{color:#0a2663!important;flex:0 0 20px!important;margin-right:11px}[_nghost-%COMP%]  .mat-mdc-expansion-panel>.mat-mdc-expansion-panel-header>.mat-mdc-content{flex-direction:row-reverse!important}"]})}return En})();var Rn=a(42094),ti=a(35452),Xt=a(59626),Je=a(1505);const dt=En=>({"icon-asterisk":En});function Ie(En,co){if(1&En&&(e.ynx(0),e._UZ(1,"span",24),e.TgZ(2,"span",25),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"span",26),e._uU(6),e.ALo(7,"readI18n"),e.qZA(),e.BQk()),2&En){const yn=e.oxw();e.xp6(),e.Q6J("ngClass",e.VKq(7,dt,yn.formHandler.formGroup.dirty||yn.record._dirty)),e.xp6(2),e.hij("",e.lcZ(4,3,yn.resourceKeyPrefix+"edit.header"),": "),e.xp6(3),e.Oqu(e.lcZ(7,5,yn.record.title))}}function ot(En,co){if(1&En&&(e.ynx(0),e.TgZ(1,"span",25),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"span",10),e._uU(5),e.ALo(6,"translate"),e.ALo(7,"date"),e.ALo(8,"translate"),e.qZA(),e.BQk()),2&En){const yn=e.oxw();e.xp6(2),e.hij("",e.lcZ(3,4,yn.resourceKeyPrefix+"edit.header"),": "),e.xp6(3),e.lnq("[",e.lcZ(6,6,"imxplatform.common-entity.edit.header.new")," - ",e.xi3(7,8,yn.currentDate,"HH:mm")," ",e.lcZ(8,11,"imxplatform.common-entity.edit.header.time-indicator")," ]")}}function ct(En,co){if(1&En&&(e.TgZ(0,"span",25),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",27),e._uU(4),e.qZA()()),2&En){const yn=e.oxw();e.xp6(),e.hij("",e.lcZ(2,2,"entity."+yn.entityType+".id"),": "),e.xp6(3),e.Oqu(yn.record.id)}}function tn(En,co){if(1&En){const yn=e.EpF();e.TgZ(0,"span",28),e.ALo(1,"translate"),e.TgZ(2,"span",25),e._uU(3),e.ALo(4,"translate"),e.TgZ(5,"a",29),e.NdJ("click",function(){e.CHM(yn);const He=e.oxw();return e.KtG(He.toggleImportInfo())}),e.TgZ(6,"span",27),e._uU(7),e.qZA()(),e.TgZ(8,"span",30),e.NdJ("click",function(){e.CHM(yn);const He=e.oxw();return e.KtG(He.toggleImportInfo())}),e.qZA()()()}if(2&En){const yn=e.oxw();e.s9C("matTooltip",e.lcZ(1,4,"imxplatform.common-entity.edit.panels.import-info.tooltip")),e.xp6(3),e.hij("\xa0\xa0\xa0",e.lcZ(4,6,"entity."+yn.entityType+".importIdentifier")," : "),e.xp6(4),e.Oqu(yn.record.importIdentifier),e.xp6(),e.Q6J("ngClass",yn.isImportInfoVisible?"icon-chevron-up":"icon-chevron-down")}}function yi(En,co){if(1&En&&(e.TgZ(0,"span",32),e.ALo(1,"importSource"),e._uU(2),e.ALo(3,"translate"),e.TgZ(4,"span",27),e._uU(5),e.qZA()()),2&En){const yn=e.oxw(2);e.Q6J("matTooltip",e.lcZ(1,3,null==yn.record.importRun?null:yn.record.importRun.importSource)),e.xp6(2),e.hij("\xa0\xa0\xa0",e.lcZ(3,5,"entity."+yn.entityType+".importIdentifier")," : "),e.xp6(3),e.Oqu(yn.record.importIdentifier)}}function ni(En,co){if(1&En&&e.YNc(0,yi,6,7,"span",31),2&En){const yn=e.oxw();e.Q6J("ngIf",yn.record.importIdentifier)}}function sn(En,co){if(1&En){const yn=e.EpF();e.TgZ(0,"imx-tooltip",6)(1,"a",33),e.NdJ("click",function(){e.CHM(yn);const He=e.oxw();return e.KtG(He.openPortalPreview())}),e._UZ(2,"span",34),e.qZA()()}2&En&&e.Q6J("tooltipText","imxplatform.common.tooltip.open-preview")("offset",300)}const bn=()=>[];function vt(En,co){if(1&En){const yn=e.EpF();e.ynx(0),e.TgZ(1,"div")(2,"a",35),e.NdJ("mouseenter",function(He){e.CHM(yn);const rt=e.MAs(7);return e.KtG(rt.show(He))})("mouseleave",function(){e.CHM(yn);const He=e.MAs(7);return e.KtG(He.hide())}),e.TgZ(3,"span",36),e._UZ(4,"span",37)(5,"span",38),e.qZA()(),e.TgZ(6,"imx-tooltip-extended",39,40),e._UZ(8,"imx-entity-state-tooltip",41),e.qZA()(),e.BQk()}if(2&En){const yn=e.oxw();e.xp6(2),e.Q6J("routerLink",e.DdM(6,bn)),e.xp6(),e.Q6J("ngClass",yn.entityStateIconClass),e.xp6(3),e.Q6J("offset",300),e.xp6(2),e.Q6J("entityStateKey",null==yn.record?null:yn.record.entityState.key)("entityStateInfo",yn.entityStateInfo)("appearances",yn.appearances)}}function nn(En,co){if(1&En&&e._UZ(0,"imx-content-score-icon",23),2&En){const yn=e.oxw(2);e.Q6J("record",yn.scorableRecord)}}function rn(En,co){if(1&En&&(e.ynx(0),e._UZ(1,"imx-client-reliability-classification-icon",23),e.YNc(2,nn,1,1,"imx-content-score-icon",42),e.Hsn(3,1),e.BQk()),2&En){const yn=e.oxw();e.xp6(),e.Q6J("record",yn.record),e.xp6(),e.Q6J("ngIf",yn.scorableRecord)}}function ii(En,co){if(1&En){const yn=e.EpF();e.TgZ(0,"imx-memo-toggle",44),e.NdJ("handleIconClick",function(){e.CHM(yn);const He=e.oxw(2);return e.KtG(He.slideInEvent.emit(He.slideInType.MEMO))}),e.qZA()}if(2&En){const yn=e.oxw(2);e.Q6J("memoCnt",yn.memoCount)("filled",yn.isActiveSlideInType(yn.slideInType.MEMO))}}function Oo(En,co){if(1&En&&(e.ynx(0),e.YNc(1,ii,1,2,"imx-memo-toggle",43),e.BQk()),2&En){const yn=e.oxw();e.xp6(),e.Q6J("hasAnyPermission",yn.memoReadPermissionStr)}}const no=[[["","progress-bar",""]],[["","quality-icons",""]]],Li=En=>({"import-info-open":En}),ji=En=>({active:En}),Ii=["[progress-bar]","[quality-icons]"];let _i=(()=>{class En{constructor(yn,ln,He,rt){this.memoProvider=yn,this.securityManagerService=ln,this.dataAccessService=He,this.entityStateService=rt,this.activeSlideInType=void 0,this.showEntityStateIcon=!0,this.showImportInfoButton=!1,this.showQualityBlock=!1,this.showMemoIcon=!0,this.useAppearanceLogic=!0,this.reloadClicked=new e.vpe,this.addToObjectListClicked=new e.vpe,this.slideInEvent=new e.vpe,this.memoReadPermissionStr=t.uo.F_MEMO_MANAGEMENT_READ.name,this.currentDate=new Date,this.slideInType=p.CU,this.memoCount=0,this.isImportInfoVisible=!1}ngOnChanges(yn){if(yn.record&&this.record){if(this.record.id&&(this.securityManagerService.hasPermission(t.uo.F_MEMO_MANAGEMENT_READ)&&this.memoProvider.getMemos(this.entityType,this.record.id).subscribe(ln=>this.memoCount=ln.length),this.dataAccessService.getPortalPreviewUrl(this.entityType,this.record.id).subscribe(ln=>{ln&&(this.portalPreviewUrl=ln)})),this.showEntityStateIcon){let ln=[];this.record.appearances&&(this.appearances=this.record.appearances,ln=s.O.convertFromAppearanceToTimeRange(this.record.appearances)),this.entityStateInfo=this.entityStateService.determineStateForObject(this.record.entityState.key,ln,this.useAppearanceLogic),this.entityStateIconClass="published"===this.entityStateInfo.cssClass?"icon-earth_green":"deactivated"===this.entityStateInfo.cssClass?"icon-earth_red":"icon-earth_yellow"}"contentScore"in this.record&&(this.scorableRecord=this.record)}}openPortalPreview(){window.open(this.portalPreviewUrl,"","width="+window.innerWidth+",height=600,top=200,left="+(screen.width-window.innerWidth))}isActiveSlideInType(yn){return!!this.activeSlideInType&&this.activeSlideInType===yn}toggleImportInfo(){this.isImportInfoVisible=!this.isImportInfoVisible}static#e=this.\u0275fac=function(ln){return new(ln||En)(e.Y36(i.o),e.Y36(t.Xh),e.Y36(n.nq),e.Y36(s.O))};static#t=this.\u0275cmp=e.Xpm({type:En,selectors:[["imx-edit-header"]],inputs:{record:"record",formHandler:"formHandler",entityType:"entityType",resourceKeyPrefix:"resourceKeyPrefix",activeSlideInType:"activeSlideInType",showEntityStateIcon:"showEntityStateIcon",showImportInfoButton:"showImportInfoButton",showQualityBlock:"showQualityBlock",showMemoIcon:"showMemoIcon",useAppearanceLogic:"useAppearanceLogic"},outputs:{reloadClicked:"reloadClicked",addToObjectListClicked:"addToObjectListClicked",slideInEvent:"slideInEvent"},features:[e.TTD],ngContentSelectors:Ii,decls:34,vars:29,consts:[[1,"header__sticky-wrapper","pinable-transition","pinable-aware",3,"ngClass"],[1,"header__grid-wrapper"],["lg_w","12","lg_o","0"],[1,"edit__header-outer-wrapper"],[1,"edit__header-wrapper"],[1,"edit__title-headline"],[3,"tooltipText","offset"],[1,"reload",3,"click"],[1,"icon-refresh","imx-icon-middle"],[1,"headline"],[1,"h1","txt-ellipsis"],[4,"ngIf"],["class","headline-label txt-grey",4,"ngIf"],[3,"matTooltip",4,"ngIf","ngIfElse"],["importIdentifier",""],[1,"edit__title-headline__icon-container"],[1,"actions",3,"click"],[1,"icon-star--add","imx-icon-middle"],[3,"tooltipText","offset",4,"ngIf"],[3,"entityType","entityId","formHandler"],[1,"edit__header-right-menu",3,"ngClass"],[3,"formHandler"],[1,"import-info",3,"ngClass"],[3,"record"],[1,"modified-icon",3,"ngClass"],[1,"headline-label","txt-grey"],[1,"h1","txt-ellipsis","txt-default"],[1,"txt-default"],[3,"matTooltip"],[1,"txt-link",3,"click"],[1,"importInfoOpen-icon",3,"ngClass","click"],["class","headline-label txt-grey",3,"matTooltip",4,"ngIf"],[1,"headline-label","txt-grey",3,"matTooltip"],["target","_blank",1,"actions",3,"click"],[1,"icon-preview","imx-icon-middle"],["fragment","appearances",1,"actions","appearance",3,"routerLink","mouseenter","mouseleave"],[1,"imx-icon-middle",3,"ngClass"],[1,"path1"],[1,"path2"],[3,"offset"],["entityInformationTooltip",""],[3,"entityStateKey","entityStateInfo","appearances"],[3,"record",4,"ngIf"],[3,"memoCnt","filled","handleIconClick",4,"hasAnyPermission"],[3,"memoCnt","filled","handleIconClick"]],template:function(ln,He){if(1&ln&&(e.F$t(no),e.TgZ(0,"div",0),e.Hsn(1),e.TgZ(2,"div",1)(3,"imx-grid")(4,"imx-grid-element",2)(5,"div",3)(6,"div",4)(7,"div",5)(8,"imx-tooltip",6),e.ALo(9,"translate"),e.TgZ(10,"a",7),e.NdJ("click",function(){return He.reloadClicked.emit()}),e._UZ(11,"span",8),e.qZA()(),e.TgZ(12,"div",9)(13,"p",10),e.YNc(14,Ie,8,9,"ng-container",11)(15,ot,9,13,"ng-container",11),e.qZA(),e.TgZ(16,"p"),e.YNc(17,ct,5,4,"span",12)(18,tn,9,8,"span",13)(19,ni,1,1,"ng-template",null,14,e.W1O),e.qZA()(),e.TgZ(21,"div",15)(22,"imx-tooltip",6)(23,"a",16),e.NdJ("click",function(){return He.addToObjectListClicked.emit()}),e._UZ(24,"span",17),e.qZA()(),e.YNc(25,sn,3,2,"imx-tooltip",18)(26,vt,9,7,"ng-container",11)(27,rn,4,2,"ng-container",11),e._UZ(28,"imx-ai-text-icon",19),e.qZA()(),e.TgZ(29,"div",20),e._UZ(30,"imx-language-switch-button",21),e.YNc(31,Oo,2,1,"ng-container",11),e.qZA()(),e.TgZ(32,"div",22),e._UZ(33,"imx-import-info-list",23),e.qZA()()()()()()),2&ln){const rt=e.MAs(20);e.Q6J("ngClass",e.VKq(23,Li,He.isImportInfoVisible)),e.xp6(8),e.Q6J("tooltipText",e.lcZ(9,21,"imxplatform.common.tooltip.reload"))("offset",300),e.xp6(6),e.Q6J("ngIf",He.record.id&&He.record.id>0),e.xp6(),e.Q6J("ngIf",null==He.record.id||He.record.id<0),e.xp6(2),e.Q6J("ngIf",He.record.id&&He.record.id>0),e.xp6(),e.Q6J("ngIf",He.record.id&&He.showImportInfoButton)("ngIfElse",rt),e.xp6(4),e.Q6J("tooltipText","imxplatform.entity-list.object-list.action-title")("offset",300),e.xp6(3),e.Q6J("ngIf",He.portalPreviewUrl),e.xp6(),e.Q6J("ngIf",He.showEntityStateIcon),e.xp6(),e.Q6J("ngIf",He.showQualityBlock),e.xp6(),e.Q6J("entityType",He.entityType)("entityId",He.record.id)("formHandler",He.formHandler),e.xp6(),e.Q6J("ngClass",e.VKq(25,Li,He.isImportInfoVisible)),e.xp6(),e.Q6J("formHandler",He.formHandler),e.xp6(),e.Q6J("ngIf",He.record.id&&He.showMemoIcon),e.xp6(),e.Q6J("ngClass",e.VKq(27,ji,He.isImportInfoVisible)),e.xp6(),e.Q6J("record",He.record)}},dependencies:[c.mk,c.O5,o.gM,x.rH,u.M,m.V,b.K,I.j,B,at,me,Se.u,Dt,Rn.H,ti.u,Xt.R,O.F,c.uU,H.X$,Je.q,Et.j],styles:[".actions[_ngcontent-%COMP%]{padding:5px 0 0 10px;margin-left:10px;border-left:1px solid #e6e9ef;display:inline-block;cursor:pointer;text-decoration:none}.edit__header-right-menu[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-end}.edit__header-right-menu[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{margin-right:10px}.edit__header-outer-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column}.edit__header-outer-wrapper[_ngcontent-%COMP%]   .import-info[_ngcontent-%COMP%]:not(.active){max-height:0;margin-bottom:0;overflow:hidden;transition:margin-bottom .6s ease,max-height .2s ease}.edit__header-outer-wrapper[_ngcontent-%COMP%]   .import-info.active[_ngcontent-%COMP%]{max-height:60vh;margin-top:20px;margin-bottom:20px;overflow:auto;transition:margin-bottom .6s ease}.edit__header-wrapper[_ngcontent-%COMP%]{display:flex}.edit__title-headline[_ngcontent-%COMP%]{flex:1;min-width:0;margin-right:20px;display:flex}.edit__title-headline[_ngcontent-%COMP%]   .headline[_ngcontent-%COMP%]{font-size:14px;overflow:hidden}.edit__title-headline[_ngcontent-%COMP%]   .headline[_ngcontent-%COMP%]   .h1[_ngcontent-%COMP%]{font-size:22px;line-height:26px}@media (max-width: 900px){.edit__title-headline[_ngcontent-%COMP%]   .headline[_ngcontent-%COMP%]   .headline-label[_ngcontent-%COMP%]{display:none}}.edit__title-headline[_ngcontent-%COMP%]   .headline[_ngcontent-%COMP%]   .modified-icon[_ngcontent-%COMP%]{padding-bottom:10px}.edit__title-headline[_ngcontent-%COMP%]   .headline[_ngcontent-%COMP%]   .importInfoOpen-icon[_ngcontent-%COMP%]{cursor:pointer;margin-left:10px}.edit__title-headline[_ngcontent-%COMP%]   .edit__title-headline__icon-container[_ngcontent-%COMP%]{flex-shrink:0;display:flex;overflow:hidden;padding-right:2px}.edit__title-headline[_ngcontent-%COMP%]   .reload[_ngcontent-%COMP%]{display:inline-block;cursor:pointer;text-decoration:none}.edit__title-headline[_ngcontent-%COMP%]   .reload[_ngcontent-%COMP%]{padding:5px 10px 0 0;margin-right:10px;border-right:1px solid #e6e9ef}.edit__title-headline[_ngcontent-%COMP%]   .appearance.inprogress[_ngcontent-%COMP%]{color:#f0ab00}.edit__title-headline[_ngcontent-%COMP%]   .appearance.deactivated[_ngcontent-%COMP%]{color:#96172e}.edit__title-headline[_ngcontent-%COMP%]   .appearance.published[_ngcontent-%COMP%]{color:#739600}.header__sticky-wrapper[_ngcontent-%COMP%]{position:fixed;top:50px;left:0;width:100%;z-index:3;background-color:#fff}.header__sticky-wrapper[_ngcontent-%COMP%]   .header__grid-wrapper[_ngcontent-%COMP%]{margin-top:35px}.header__sticky-wrapper.import-info-open[_ngcontent-%COMP%]{border-bottom:1px solid #e6e9ef;box-shadow:0 0 10px #0003}.header__sticky-wrapper[_ngcontent-%COMP%]:not(.import-info-open){height:113px}.header__sticky-wrapper[_ngcontent-%COMP%]     .page-loading-wrapper{position:absolute;top:0;width:100%}"]})}return En})()},54517:(gt,X,a)=>{"use strict";a.d(X,{u:()=>u});var e=a(19212),n=a(96814),s=a(71365);function l(m,b){1&m&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&m&&(e.xp6(),e.Oqu(e.lcZ(2,1,"imxplatform.common-entity.edit.panels.appearance.impossible")))}function i(m,b){1&m&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&m&&(e.xp6(),e.Oqu(e.lcZ(2,1,"imxplatform.common-entity.edit.panels.appearance.no-current")))}function t(m,b){1&m&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&m&&(e.xp6(),e.Oqu(e.lcZ(2,1,"imxplatform.common-entity.edit.panels.appearance.current")))}function p(m,b){if(1&m&&(e.TgZ(0,"li"),e._uU(1),e.qZA()),2&m){const I=b.$implicit;e.xp6(),e.hij(" ",I," ")}}function c(m,b){1&m&&(e.TgZ(0,"li"),e._uU(1,"..."),e.qZA())}function o(m,b){if(1&m&&(e.ynx(0),e.TgZ(1,"div"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"ul"),e.YNc(5,p,2,1,"li",1)(6,c,2,0,"li",0),e.qZA(),e.BQk()),2&m){const I=e.oxw(2);e.xp6(2),e.hij("",e.lcZ(3,3,"imxplatform.common-entity.edit.panels.appearance.current-delivery"),":"),e.xp6(3),e.Q6J("ngForOf",I.deliveryChannels.slice(0,4)),e.xp6(),e.Q6J("ngIf",I.deliveryChannels.length>4)}}function x(m,b){if(1&m&&(e.ynx(0),e.YNc(1,l,3,3,"div",0)(2,i,3,3,"div",0)(3,t,3,3,"div",0)(4,o,7,5,"ng-container",0),e.BQk()),2&m){const I=e.oxw();e.xp6(),e.Q6J("ngIf",40!==I.entityStateKey),e.xp6(),e.Q6J("ngIf",40===I.entityStateKey&&!1===I.entityStateInfo.hasCurrentAppearances),e.xp6(),e.Q6J("ngIf",40===I.entityStateKey&&!0===I.entityStateInfo.hasCurrentAppearances&&0===I.appearances.length),e.xp6(),e.Q6J("ngIf",40===I.entityStateKey&&!0===I.entityStateInfo.hasCurrentAppearances&&I.deliveryChannels.length>0)}}let u=(()=>{class m{constructor(){this.deliveryChannels=[]}ngOnChanges(I){this.appearances&&(this.deliveryChannels=[...new Set(this.appearances.map(H=>H.deliveryChannel?H.deliveryChannel.name:void 0))])}static#e=this.\u0275fac=function(H){return new(H||m)};static#t=this.\u0275cmp=e.Xpm({type:m,selectors:[["imx-entity-state-tooltip"]],inputs:{entityStateKey:"entityStateKey",entityStateInfo:"entityStateInfo",appearances:"appearances"},features:[e.TTD],decls:5,vars:7,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(H,O){1&H&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA(),e.YNc(4,x,5,4,"ng-container",0)),2&H&&(e.xp6(),e.AsE("",e.lcZ(2,3,"entity.EntityState.entityName"),": ",e.lcZ(3,5,null==O.entityStateInfo?null:O.entityStateInfo.i18n),""),e.xp6(3),e.Q6J("ngIf",void 0!==O.appearances))},dependencies:[n.sg,n.O5,s.X$],encapsulation:2})}return m})()},84102:(gt,X,a)=>{"use strict";a.d(X,{n:()=>O}),a(79309);var n=a(69258),s=a(19212),l=a(96814),i=a(71365),t=a(38777),p=a(54517);function c(P,G){if(1&P&&(s.TgZ(0,"span",5),s._uU(1),s.qZA()),2&P){const B=s.oxw();s.xp6(),s.Oqu(null==B.entityState?null:B.entityState.i18n)}}function o(P,G){1&P&&(s.TgZ(0,"div"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&P&&(s.xp6(),s.Oqu(s.lcZ(2,1,"imxplatform.common-entity.edit.panels.appearance.current-date")))}function x(P,G){1&P&&(s.TgZ(0,"div"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&P&&(s.xp6(),s.Oqu(s.lcZ(2,1,"imxplatform.common-entity.edit.panels.appearance.no-current")))}function u(P,G){if(1&P&&(s.ynx(0),s.TgZ(1,"div"),s._uU(2),s.ALo(3,"translate"),s.ALo(4,"translate"),s.qZA(),s.YNc(5,o,3,3,"div",6)(6,x,3,3,"div",6),s.BQk()),2&P){const B=s.oxw(2);s.xp6(2),s.AsE("",s.lcZ(3,4,"entity.EntityState.entityName"),": ",s.lcZ(4,6,null==B.entityState?null:B.entityState.i18n),""),s.xp6(3),s.Q6J("ngIf",!0===B.entityState.hasCurrentAppearances),s.xp6(),s.Q6J("ngIf",!1===B.entityState.hasCurrentAppearances)}}function m(P,G){if(1&P&&(s.ynx(0),s._UZ(1,"imx-entity-state-tooltip",7),s.BQk()),2&P){const B=s.oxw(2);s.xp6(),s.Q6J("appearances",B.appearances)("entityStateKey",B.key)("entityStateInfo",B.entityState)}}function b(P,G){if(1&P&&(s.ynx(0),s.YNc(1,u,7,8,"ng-container",6)(2,m,2,3,"ng-container",3),s.BQk()),2&P){const B=s.oxw(),ae=s.MAs(6);s.xp6(),s.Q6J("ngIf",void 0!==B.fromDate||void 0!==B.toDate),s.xp6(),s.Q6J("ngIf",void 0!==B.appearances)("ngIfElse",ae)}}function I(P,G){if(1&P&&(s.ynx(0),s.TgZ(1,"div"),s._uU(2),s.ALo(3,"translate"),s.ALo(4,"translate"),s.qZA(),s.BQk()),2&P){const B=s.oxw(2);s.xp6(2),s.AsE("",s.lcZ(3,2,"entity.EntityState.entityName"),": ",s.lcZ(4,4,null==B.entityState?null:B.entityState.i18n),"")}}function H(P,G){if(1&P&&s.YNc(0,I,5,6,"ng-container",6),2&P){const B=s.oxw();s.Q6J("ngIf",void 0!==B.key)}}let O=(()=>{class P{constructor(B){this.entityStateService=B,this.annually=!1,this.inline=!0,this.additionalClass="",this.useAppearanceLogic=!0,this.checkForDates=!1,this.renderLabel=!0}ngOnChanges(B){this.timeRanges=n.O.convertFromAppearanceToTimeRange(this.appearances),this.entityState=this.checkForDates?this.entityStateService.determineStateForDate(this.fromDate,this.toDate,this.annually):this.entityStateService.determineStateForObject(this.key,this.timeRanges,this.useAppearanceLogic),this.publishClass="imx-entity-state "+this.additionalClass+this.blockOrInline()+" "+this.entityState.cssClass}blockOrInline(){return this.inline?" inline":" block"}static#e=this.\u0275fac=function(ae){return new(ae||P)(s.Y36(n.O))};static#t=this.\u0275cmp=s.Xpm({type:P,selectors:[["imx-entity-state"]],hostVars:2,hostBindings:function(ae,J){2&ae&&s.Tol(J.publishClass)},inputs:{key:"key",appearances:"appearances",fromDate:"fromDate",toDate:"toDate",annually:"annually",inline:"inline",additionalClass:"additionalClass",useAppearanceLogic:"useAppearanceLogic",checkForDates:"checkForDates",renderLabel:"renderLabel"},features:[s.TTD],decls:7,vars:4,consts:[["translate","",4,"ngIf"],[1,"icon","imx-icon-middle",3,"ngClass","mouseenter","mouseleave"],["entityInformationTooltip",""],[4,"ngIf","ngIfElse"],["default",""],["translate",""],[4,"ngIf"],[3,"appearances","entityStateKey","entityStateInfo"]],template:function(ae,J){if(1&ae){const q=s.EpF();s.YNc(0,c,2,1,"span",0),s.TgZ(1,"span",1),s.NdJ("mouseenter",function(Y){s.CHM(q);const K=s.MAs(3);return s.KtG(K.show(Y))})("mouseleave",function(){s.CHM(q);const Y=s.MAs(3);return s.KtG(Y.hide())}),s.qZA(),s.TgZ(2,"imx-tooltip-extended",null,2),s.YNc(4,b,3,3,"ng-container",3)(5,H,1,1,"ng-template",null,4,s.W1O),s.qZA()}if(2&ae){const q=s.MAs(6);s.Q6J("ngIf",J.inline&&J.renderLabel),s.xp6(),s.Q6J("ngClass",null==J.entityState?null:J.entityState.iconClass),s.xp6(3),s.Q6J("ngIf",J.useAppearanceLogic)("ngIfElse",q)}},dependencies:[l.mk,l.O5,i.Pi,t.j,p.u,i.X$],styles:[".list__row-action[_nghost-%COMP%], .list__row-action   [_nghost-%COMP%]{margin:0 0 5px;flex:1;width:100%;display:flex;justify-content:center;align-items:center}.list__row-action[_nghost-%COMP%]:last-child, .list__row-action   [_nghost-%COMP%]:last-child{margin:0}[_nghost-%COMP%]{color:#f0ab00}.block[_nghost-%COMP%]{border:1px solid #F0AB00;background-color:#f4e4c3}.published[_nghost-%COMP%], .active[_nghost-%COMP%]{color:#739600}.published.block[_nghost-%COMP%], .active.block[_nghost-%COMP%]{border:1px solid #739600;background-color:#f0fae3}.inprogress[_nghost-%COMP%], .pending[_nghost-%COMP%]{color:#f0ab00}.inprogress.block[_nghost-%COMP%], .pending.block[_nghost-%COMP%]{border:1px solid #F0AB00;background-color:#f4e4c3}.deactivated[_nghost-%COMP%], .expired[_nghost-%COMP%]{color:#96172e}.deactivated.block[_nghost-%COMP%], .expired.block[_nghost-%COMP%]{border:1px solid #96172E;background-color:#f2e0d6}.inline[_nghost-%COMP%]   span[_ngcontent-%COMP%]{vertical-align:middle}.inline[_nghost-%COMP%]   .icon[_ngcontent-%COMP%]{margin-left:8px}.block[_nghost-%COMP%]   .icon[_ngcontent-%COMP%]{margin-left:0}"]})}return P})()},83397:(gt,X,a)=>{"use strict";a.d(X,{B:()=>m});var e=a(19212),s=(a(15198),a(96814)),l=a(71365);const i=["myComp"];function t(b,I){if(1&b){const H=e.EpF();e.TgZ(0,"span",9),e.NdJ("click",function(){e.CHM(H);const P=e.oxw(3);return e.KtG(P.closeButtonClick())}),e.qZA()}}function p(b,I){if(1&b){const H=e.EpF();e.TgZ(0,"span",10),e.NdJ("click",function(){e.CHM(H);const P=e.oxw(3);return e.KtG(P.closeButtonClick())}),e.qZA()}}const c=b=>({filter__opened:b}),o=b=>({"icon-asterisk":b});function x(b,I){if(1&b){const H=e.EpF();e.TgZ(0,"div",2,3)(2,"span",4),e.NdJ("click",function(){e.CHM(H);const P=e.oxw(2);return e.KtG(P.headerClicked())}),e.TgZ(3,"span",5),e._uU(4),e.qZA(),e.TgZ(5,"span"),e._uU(6),e.qZA()(),e.TgZ(7,"span",6),e.NdJ("click",function(){e.CHM(H);const P=e.oxw(2);return e.KtG(P.headerClicked())}),e.qZA(),e.YNc(8,t,1,0,"span",7)(9,p,1,0,"span",8),e.qZA()}if(2&b){const H=e.oxw(2);e.Q6J("ngClass",e.VKq(6,c,H.opened)),e.xp6(4),e.hij("",H.panel.titleKey," "),e.xp6(2),e.hij("(",H.panel.getModifiedFieldsCount(),")"),e.xp6(),e.Q6J("ngClass",e.VKq(8,o,H.panel.isChangedSinceLastCommit())),e.xp6(),e.Q6J("ngIf",H.panel.pinned),e.xp6(),e.Q6J("ngIf",!H.panel.pinned)}}function u(b,I){if(1&b&&(e.ynx(0),e.YNc(1,x,10,10,"div",1),e.BQk()),2&b){const H=e.oxw();e.xp6(),e.Q6J("ngIf",H.panel.includeFilter)}}let m=(()=>{class b{constructor(){this.opened=!1,this.headerClick=new e.vpe,this.closeClick=new e.vpe,this.tabShown=new e.vpe,this.tabHidden=new e.vpe}headerClicked(){this.headerClick.emit()}closeButtonClick(){this.closeClick.emit()}static#e=this.\u0275fac=function(O){return new(O||b)};static#t=this.\u0275cmp=e.Xpm({type:b,selectors:[["imx-filter-header"]],viewQuery:function(O,P){if(1&O&&e.Gf(i,7,e.SBq),2&O){let G;e.iGM(G=e.CRH())&&(P.myComp=G.first)}},hostAttrs:[1,"imx-filter-header"],inputs:{panel:"panel",filterChanged:"filterChanged",opened:"opened"},outputs:{headerClick:"headerClick",closeClick:"closeClick",tabShown:"tabShown",tabHidden:"tabHidden"},decls:2,vars:3,consts:[[4,"ngIf"],["class","filter__single__header",3,"ngClass",4,"ngIf"],[1,"filter__single__header",3,"ngClass"],["myComp",""],[3,"click"],["translate","",1,"filter__single__header__txt"],[1,"filter__modified__icon",3,"ngClass","click"],["class","icon-trash filter__trash__icon",3,"click",4,"ngIf"],["class","icon-crossBold filter__close__icon",3,"click",4,"ngIf"],[1,"icon-trash","filter__trash__icon",3,"click"],[1,"icon-crossBold","filter__close__icon",3,"click"]],template:function(O,P){1&O&&(e.YNc(0,u,2,1,"ng-container",0),e.ALo(1,"async")),2&O&&e.Q6J("ngIf",e.lcZ(1,1,P.panel.loaded$))},dependencies:[s.mk,s.O5,l.Pi,s.Ov],styles:[".filter__single__header[_ngcontent-%COMP%]{height:50px;border-right:1px solid #fff;font-size:14px;line-height:18px;padding-left:5px;display:flex;flex-direction:row;align-items:center;cursor:pointer;white-space:nowrap;color:#000}.filter__modified__icon[_ngcontent-%COMP%]{padding-bottom:10px}.filter__close__icon[_ngcontent-%COMP%]{padding:16px 10px;font-size:10px}.filter__trash__icon[_ngcontent-%COMP%]{padding:16px 10px;font-size:14px}.filter__single__header__txt[_ngcontent-%COMP%]{padding:16px 0 16px 10px}.filter__opened[_ngcontent-%COMP%]{background-color:#fff}"]})}return b})()},15198:(gt,X,a)=>{"use strict";a.d(X,{O:()=>m,T:()=>b});var e=a(19212),n=a(72079),s=a(45125),l=a(19352),i=a(97734),t=a(21473),p=a(27556),o=(a(9512),a(34077)),x=a(12650);let m=(()=>{class I{constructor(){this.logger=(0,t.jl)("AbstractFilterPanelComponent",p.H.name),this.destroy$=new n.xQ,this.pinned=!1,this.id="---todo overwrite ---",this.titleKey="---todo overwrite ---",this.icon="",this.modifiedMap=new Map,this._isChangedSinceLastCommit=!1,this.includeFilter=!1,this.filterFields=[],this.fieldSubscriptions=new Set,this.loaded$=new s.X(!1)}set additionalFields(O){this._additionalFields=O,O.forEach(P=>this.filterFields.push(P.name))}ngOnInit(){this.subscribeToValueChanges(this.formHandler.formConfiguration.fields)}ngOnChanges(O){O.record&&this.formHandler&&setTimeout(()=>{this.includeFilter=this.handleIncomingValues(this.formHandler)||this.pinned,this.loaded$.next(!0)},1)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}isChangedSinceLastCommit(){return this._isChangedSinceLastCommit}setIsChangedSinceLastCommit(O){this._isChangedSinceLastCommit=O}setPanelShown(O){this.panelShown=O,O&&this.onPanelShown()}beforeSubmit(O){this.modifyFormValues(O),this.setIsChangedSinceLastCommit(!1)}getModifiedFieldsCount(){let O=0;return this.modifiedMap.forEach(P=>{P&&O++}),O}unsubscribeFromValueChanges(){this.fieldSubscriptions.forEach(O=>O.unsubscribe()),this.fieldSubscriptions.clear()}subscribeToValueChanges(O){this.filterFields.forEach(P=>{this.parentForm.controls[P]&&this.fieldSubscriptions.add(this.parentForm.controls[P].valueChanges.pipe((0,l.R)(this.destroy$),(0,i.h)(G=>null!=G)).subscribe(G=>{const B=O.find(ae=>ae.id===P).initialValue;this.isValueModified(P,G,B)?this.modifiedMap.set(P,!0):this.modifiedMap.set(P,!1),this.parentForm.controls[P].dirty&&this.setIsChangedSinceLastCommit(!0)}))})}reset(){this.modifiedMap.clear(),this.setIsChangedSinceLastCommit(!1),this.includeFilter=this.pinned,this.onReset()}handleIncomingValues(O){let P=!1;return Object.keys(O.baseObject).forEach(G=>{if(this.getFilterFields().find(ae=>ae===G)){let ae;const J=O.formConfiguration.findFormFieldById(G);J&&(ae=J.initialValue),this.isValueModified(G,O.baseObject[G],ae)&&(this.modifiedMap.set(G,!0),P=!0)}}),P}isValueModified(O,P,G){return!(x(G,P)||void 0===G&&(""===P||!1===P||0===P.length))}modifyFormValues(O){}getFilterFields(){return this.filterFields}getFormFieldLabel(O){return this.formHandler.formConfiguration.findFormFieldById(O).label}onPanelShown(){}onReset(){}getFieldExtensions(O){const P=[];return this.formHandler.getFormExtensions()&&this.formHandler.getFormExtensions().forEach(G=>{G.extensions.forEach(B=>{B.fieldReference===O&&B.type===o.V.INSERT_AFTER&&P.push(B.extensionField)})}),P}cleanBooleanFormValue(O,P){void 0!==O[P]&&!1===O[P]&&delete O[P]}static#e=this.\u0275fac=function(P){return new(P||I)};static#t=this.\u0275dir=e.lG2({type:I,inputs:{parentForm:"parentForm",record:"record",formHandler:"formHandler",pinned:"pinned",additionalFields:"additionalFields"},features:[e.TTD]})}return I})();function b(I){return{provide:m,useExisting:(0,e.Gpc)(()=>I)}}},86041:(gt,X,a)=>{"use strict";a.d(X,{B:()=>o});var e=a(15198),n=a(19212),s=a(96814),l=a(56223),i=a(37012),t=a(12),p=a(54362);function c(x,u){if(1&x&&(n.TgZ(0,"form",1)(1,"div",2)(2,"imx-grid")(3,"imx-grid-element",3)(4,"div"),n._UZ(5,"imx-base-input",4),n.qZA()(),n.TgZ(6,"imx-grid-element",3)(7,"div"),n._UZ(8,"imx-base-input",4),n.qZA()(),n.TgZ(9,"imx-grid-element",3)(10,"div"),n._UZ(11,"imx-base-input",4),n.qZA()()()()()),2&x){const m=n.oxw();n.Q6J("formGroup",m.parentForm),n.xp6(3),n.Q6J("lg_w",4)("sm_w",12),n.xp6(2),n.Q6J("id","importSource")("formControlName","importSource")("label",m.getFormFieldLabel("importSource")),n.xp6(),n.Q6J("lg_w",4)("sm_w",12),n.xp6(2),n.Q6J("id","importPurpose")("formControlName","importPurpose")("label",m.getFormFieldLabel("importPurpose")),n.xp6(),n.Q6J("lg_w",4)("sm_w",12),n.xp6(2),n.Q6J("id","importRunId")("formControlName","importRunId")("label",m.getFormFieldLabel("importRunId"))}}let o=(()=>{class x extends e.O{constructor(){super(),this.id="ADMIN_FILTER",this.titleKey="imxplatform.common-entity.filter.adminFilter.name",this.icon="icon-cog",this.filterFields=["importSource","importPurpose","importRunId"]}static#e=this.\u0275fac=function(b){return new(b||x)};static#t=this.\u0275cmp=n.Xpm({type:x,selectors:[["imx-admin-filter-panel"]],hostAttrs:[1,"imx-admin-filter-panel"],features:[n._Bn([(0,e.T)(x)]),n.qOj],decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"filter__card"],[3,"lg_w","sm_w"],[3,"id","formControlName","label"]],template:function(b,I){1&b&&n.YNc(0,c,12,16,"form",0),2&b&&n.Q6J("ngIf",I.panelShown)},dependencies:[s.O5,l._Y,l.JJ,l.JL,l.sg,l.u,i.M,t.V,p.H],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}"]})}return x})()},20085:(gt,X,a)=>{"use strict";a.d(X,{$:()=>K});var e=a(96124),n=a(93281),s=a(21473),l=a(15198),i=a(19212),t=a(71365),p=a(96814),c=a(56223),o=a(75986),x=a(64170),u=a(37012),m=a(12),b=a(63005),I=a(2901),H=a(10001),O=a(28907);function P(ne,ee){if(1&ne&&(i.TgZ(0,"imx-grid-element",3),i._UZ(1,"imx-form-control",7),i.qZA()),2&ne){const $=i.oxw(2);i.Q6J("lg_w",6)("sm_w",12),i.xp6(),i.Q6J("field",$.formHandler.formConfiguration.findFormFieldById("deliveryChannel"))("control",$.formHandler.formGroup.get("deliveryChannel"))("form",$.formHandler.formGroup.get("deliveryChannel"))("formHandler",$.formHandler)("config",$.formHandler.formConfiguration)}}function G(ne,ee){1&ne&&(i.TgZ(0,"imx-grid-element",3)(1,"div",8),i._UZ(2,"imx-base-input-label",9),i.TgZ(3,"div",10),i._UZ(4,"imx-base-date",11)(5,"imx-base-date",12),i.qZA()()()),2&ne&&i.Q6J("lg_w",6)("sm_w",12)}function B(ne,ee){if(1&ne&&(i.TgZ(0,"imx-grid-element",3),i._UZ(1,"imx-form-control",7),i.qZA()),2&ne){const $=i.oxw(2);i.Q6J("lg_w",6)("sm_w",12),i.xp6(),i.Q6J("field",$.formHandler.formConfiguration.findFormFieldById("language4App"))("control",$.formHandler.formGroup.get("language4App"))("form",$.formHandler.formGroup.get("language4App"))("formHandler",$.formHandler)("config",$.formHandler.formConfiguration)}}function ae(ne,ee){1&ne&&(i.TgZ(0,"imx-grid-element",3)(1,"div",8)(2,"mat-label",13),i._uU(3,"imxplatform.common-entity.filter.appearanceFilter.appearancesState"),i.qZA(),i.TgZ(4,"div",14)(5,"div",15)(6,"mat-checkbox",16),i._uU(7),i.ALo(8,"translate"),i.qZA()(),i.TgZ(9,"div",15)(10,"mat-checkbox",17),i._uU(11),i.ALo(12,"translate"),i.qZA()(),i.TgZ(13,"div",15)(14,"mat-checkbox",18),i._uU(15),i.ALo(16,"translate"),i.qZA()()()()()),2&ne&&(i.Q6J("lg_w",6)("sm_w",12),i.xp6(7),i.Oqu(i.lcZ(8,5,"imxplatform.common-entity.filter.appearanceFilter.confirmedAppearances")),i.xp6(4),i.Oqu(i.lcZ(12,7,"imxplatform.common-entity.filter.appearanceFilter.pendingAppearances")),i.xp6(4),i.Oqu(i.lcZ(16,9,"imxplatform.common-entity.filter.appearanceFilter.refusedAppearances")))}function J(ne,ee){if(1&ne&&(i.ynx(0),i._UZ(1,"imx-form-control",7),i.BQk()),2&ne){const $=i.oxw(3);i.xp6(),i.Q6J("field",$.formHandler.formConfiguration.findFormFieldById("deliveryChannelNot"))("control",$.formHandler.formGroup.get("deliveryChannelNot"))("form",$.formHandler.formGroup.get("deliveryChannelNot"))("formHandler",$.formHandler)("config",$.formHandler.formConfiguration)}}function q(ne,ee){if(1&ne&&(i.TgZ(0,"imx-grid-element",3),i.YNc(1,J,2,5,"ng-container",19),i.qZA()),2&ne){const $=i.oxw(2);i.Q6J("lg_w",6)("sm_w",12),i.xp6(),i.Q6J("ngIf",$.formHandler.formConfiguration.findFormFieldById("deliveryChannelNot"))}}function j(ne,ee){if(1&ne&&(i.TgZ(0,"form",1)(1,"div",2)(2,"imx-grid")(3,"imx-grid-element",3)(4,"div",4),i._UZ(5,"imx-checkbox-select",5),i.ALo(6,"async"),i.qZA()(),i.YNc(7,P,2,7,"imx-grid-element",6)(8,G,6,2,"imx-grid-element",6)(9,B,2,7,"imx-grid-element",6)(10,ae,17,11,"imx-grid-element",6)(11,q,2,3,"imx-grid-element",6),i.Hsn(12),i.qZA()()()),2&ne){const $=i.oxw();i.Q6J("formGroup",$.parentForm),i.xp6(3),i.Q6J("lg_w",6)("sm_w",12),i.xp6(2),i.Q6J("field",$.formHandler.formConfiguration.findFormFieldById("entityState"))("control",$.formHandler.formGroup.get("entityState"))("form",$.formHandler.formGroup.get("entityState"))("formHandler",$.formHandler)("optionProvider",i.lcZ(6,14,$.entityStateOptions$))("rowLayout",!1),i.xp6(2),i.Q6J("ngIf",$.useAppearanceLogic),i.xp6(),i.Q6J("ngIf",$.useAppearanceLogic),i.xp6(),i.Q6J("ngIf",$.useAppearanceLogic),i.xp6(),i.Q6J("ngIf",$.useAppearanceLogic),i.xp6(),i.Q6J("ngIf",$.useAppearanceLogic)}}const Y=["*"];let K=(()=>{class ne extends l.O{constructor($,ue){super(),this.translateService=$,this.entityStateDao=ue,this.useAppearanceLogic=!0,this.id="APPEARANCE_FILTER",this.titleKey="imxplatform.common-entity.filter.appearanceFilter.name",this.icon="icon-earth",this.disableDeliveryChannel=!1,this.filterFields=["appearanceFrom","appearanceTo","entityState","deliveryChannel","language4App","confirmedAppearances","pendingAppearances","refusedAppearances","deliveryChannelNot"]}ngOnInit(){super.ngOnInit(),this.subscribeToLanguageField(),this.entityStateOptions$=this._loadEntityStateOptions(this.entityName),this.parentForm.controls.language4App.valueChanges.subscribe($=>{void 0!==$&&this.parentForm.controls.language.value!==$&&this.parentForm.controls.language.setValue($)})}_loadEntityStateOptions($){return this.entityStateDao.findAvailablesByEntityType($,"filter").pipe((0,e.U)(ue=>ue.map(ge=>({label:"entity.EntityState."+ge.name.toLowerCase(),value:ge.key})).sort((ge,Ke)=>40===ge.value?-1:40===Ke.value?1:Ke.value-ge.value)))}subscribeToLanguageField(){this.parentForm.controls.language&&(this.languageFieldSubscription=this.parentForm.controls.language.valueChanges.subscribe($=>{void 0!==$&&!this.parentForm.controls.language4App.disabled&&this.parentForm.controls.language4App.value!==$&&this.parentForm.controls.language4App.setValue($)}))}modifyFormValues($){$.appearanceFrom=(0,s.w5)($.appearanceFrom),$.appearanceTo=(0,s.w5)($.appearanceTo),$.entityState&&0===$.entityState.length&&($.entityState=null),this.cleanBooleanFormValue($,"confirmedAppearances"),this.cleanBooleanFormValue($,"pendingAppearances"),this.cleanBooleanFormValue($,"refusedAppearances")}onReset(){super.onReset(),this.languageFieldSubscription.closed||this.languageFieldSubscription.unsubscribe()}onPanelShown(){super.onPanelShown(),this.languageFieldSubscription.closed?this.parentForm.controls.language&&void 0!==this.parentForm.controls.language.value&&this.parentForm.controls.language4App.setValue(this.parentForm.controls.language.value):this.subscribeToLanguageField()}handleIncomingValues($){return this.record.deliveryChannel_fixed&&this.formHandler.formGroup.get("deliveryChannel").disable({emitEvent:!1}),super.handleIncomingValues($)}static#e=this.\u0275fac=function(ue){return new(ue||ne)(i.Y36(t.sK),i.Y36(n.o))};static#t=this.\u0275cmp=i.Xpm({type:ne,selectors:[["imx-appearance-filter-panel"]],hostAttrs:[1,"imx-appearance-filter-panel"],inputs:{entityName:"entityName",useAppearanceLogic:"useAppearanceLogic"},features:[i._Bn([(0,l.T)(ne)]),i.qOj],ngContentSelectors:Y,decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"filter__card"],[3,"lg_w","sm_w"],[1,"entity-state-block"],[3,"field","control","form","formHandler","optionProvider","rowLayout"],[3,"lg_w","sm_w",4,"ngIf"],[3,"field","control","form","formHandler","config"],[1,"flex-column"],["label","imxplatform.common-entity.filter.appearanceFilter.period.name"],[1,"flex-row","filter__align-left","field-margin"],["formControlName","appearanceFrom","quickaccess","today"],["formControlName","appearanceTo","quickaccess","today"],["translate",""],[1,"flex-row"],[1,"filter__checkbox-wrapper"],["id","confirmedAppearances","name","confirmedAppearances","formControlName","confirmedAppearances"],["id","pendingAppearances","name","pendingAppearances","formControlName","pendingAppearances"],["id","refusedAppearances","name","refusedAppearances","formControlName","refusedAppearances"],[4,"ngIf"]],template:function(ue,ge){1&ue&&(i.F$t(),i.YNc(0,j,13,16,"form",0)),2&ue&&i.Q6J("ngIf",ge.panelShown)},dependencies:[p.O5,c._Y,c.JJ,c.JL,o.oG,x.hX,c.sg,c.u,t.Pi,u.M,m.V,b.d,I.u,H.r,O.A,p.Ov,t.X$],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}.entity-state-block[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return ne})()},89642:(gt,X,a)=>{"use strict";a.d(X,{Q:()=>Le});var e=a(21473),n=a(15198),s=a(19212),l=a(96814),i=a(56223),t=a(75986),p=a(37012),c=a(12),o=a(30555),x=a(28907),u=a(35617),m=a(71365);function b(R,Te){if(1&R&&(s.ynx(0),s.TgZ(1,"imx-grid-element",5)(2,"div",11),s._UZ(3,"imx-base-list-shuffle",12),s.ALo(4,"async"),s.qZA()(),s.BQk()),2&R){const me=s.oxw(2);s.xp6(),s.Q6J("lg_w",12)("md_w",12)("sm_w",12)("ty_w",12),s.xp6(2),s.Q6J("displayNodeFn",me.displayFn)("availableItems",s.lcZ(4,6,me.availableClients))}}function I(R,Te){if(1&R&&(s.TgZ(0,"imx-grid-element",5),s._UZ(1,"imx-base-tree",13,14),s.qZA()),2&R){const me=s.oxw(2);s.Q6J("lg_w",6)("md_w",6)("sm_w",12)("ty_w",12),s.xp6(),s.Q6J("displayNodeFn",me.displayFn)("sortNodesFn",me.sortFnForClient)("availableItems",me.allClients)}}function H(R,Te){1&R&&s.GkF(0)}const O=()=>({$implicit:"creationUser"});function P(R,Te){if(1&R&&(s.TgZ(0,"div"),s.YNc(1,H,1,0,"ng-container",15),s.qZA()),2&R){s.oxw(2);const me=s.MAs(2);s.xp6(),s.Q6J("ngTemplateOutlet",me)("ngTemplateOutletContext",s.DdM(2,O))}}function G(R,Te){1&R&&s.GkF(0)}const B=()=>({$implicit:"excludeCreationUser"});function ae(R,Te){if(1&R&&(s.TgZ(0,"div"),s.YNc(1,G,1,0,"ng-container",15),s.qZA()),2&R){s.oxw(3);const me=s.MAs(2);s.xp6(),s.Q6J("ngTemplateOutlet",me)("ngTemplateOutletContext",s.DdM(2,B))}}function J(R,Te){if(1&R&&(s.ynx(0),s.YNc(1,ae,2,3,"div",10),s.BQk()),2&R){const me=s.oxw(2);s.xp6(),s.Q6J("ngIf",me.formHandler.formConfiguration.findFormFieldById("excludeCreationUser"))}}function q(R,Te){1&R&&s.GkF(0)}const j=()=>({$implicit:"lastChangeUser"});function Y(R,Te){if(1&R&&(s.TgZ(0,"div"),s.YNc(1,q,1,0,"ng-container",15),s.qZA()),2&R){s.oxw(2);const me=s.MAs(2);s.xp6(),s.Q6J("ngTemplateOutlet",me)("ngTemplateOutletContext",s.DdM(2,j))}}function K(R,Te){1&R&&s.GkF(0)}const ne=()=>({$implicit:"creationRole"});function ee(R,Te){if(1&R&&(s.TgZ(0,"div"),s.YNc(1,K,1,0,"ng-container",15),s.qZA()),2&R){s.oxw(2);const me=s.MAs(2);s.xp6(),s.Q6J("ngTemplateOutlet",me)("ngTemplateOutletContext",s.DdM(2,ne))}}function $(R,Te){1&R&&s.GkF(0)}const ue=()=>({$implicit:"lastChangeRole"});function ge(R,Te){if(1&R&&(s.TgZ(0,"div"),s.YNc(1,$,1,0,"ng-container",15),s.qZA()),2&R){s.oxw(2);const me=s.MAs(2);s.xp6(),s.Q6J("ngTemplateOutlet",me)("ngTemplateOutletContext",s.DdM(2,ue))}}function Ke(R,Te){if(1&R&&(s.TgZ(0,"form",2)(1,"div",3)(2,"div",4)(3,"imx-grid")(4,"imx-grid-element",5)(5,"div",6)(6,"mat-checkbox",7),s._uU(7),s.ALo(8,"translate"),s.qZA()(),s._UZ(9,"br"),s.qZA(),s._UZ(10,"imx-grid-element",5),s.YNc(11,b,5,8,"ng-container",8)(12,I,3,7,"ng-template",null,9,s.W1O),s.TgZ(14,"imx-grid-element",5),s.YNc(15,P,2,3,"div",10)(16,J,2,1,"ng-container",10)(17,Y,2,3,"div",10)(18,ee,2,3,"div",10)(19,ge,2,3,"div",10),s.qZA()()()()()),2&R){const me=s.MAs(13),Se=s.oxw();s.Q6J("formGroup",Se.parentForm),s.xp6(4),s.Q6J("lg_w",6)("md_w",6)("sm_w",12)("ty_w",12),s.xp6(3),s.Oqu(s.lcZ(8,21,Se.getFormFieldLabel("includeSubClients"))),s.xp6(3),s.Q6J("lg_w",6)("md_w",6)("sm_w",12)("ty_w",12),s.xp6(),s.Q6J("ngIf",Se.showShuffle)("ngIfElse",me),s.xp6(3),s.Q6J("lg_w",6)("md_w",6)("sm_w",12)("ty_w",12),s.xp6(),s.Q6J("ngIf",Se.formHandler.formConfiguration.findFormFieldById("creationUser")),s.xp6(),s.Q6J("ngIf",Se.formHandler.formConfiguration.findFormFieldById("excludeCreationUser")),s.xp6(),s.Q6J("ngIf",Se.formHandler.formConfiguration.findFormFieldById("lastChangeUser")),s.xp6(),s.Q6J("ngIf",Se.formHandler.formConfiguration.findFormFieldById("creationRole")),s.xp6(),s.Q6J("ngIf",Se.formHandler.formConfiguration.findFormFieldById("lastChangeRole"))}}function at(R,Te){if(1&R&&s._UZ(0,"imx-form-control",16),2&R){const me=Te.$implicit,Se=s.oxw();s.Q6J("field",Se.formHandler.formConfiguration.findFormFieldById(me))("control",Se.formHandler.formGroup.get(me))("form",Se.formHandler.formGroup.get(me))("formHandler",Se.formHandler)("config",Se.formHandler.formConfiguration)}}let Le=(()=>{class R extends n.O{constructor(me){super(),this.configurationProvider=me,this.id="CLIENT_FILTER",this.titleKey="imxplatform.common-entity.filter.clientFilter.name",this.icon="icon-clients",this.allClients=[],this.showShuffle=!1,this.filterFields=["includeSubClients","clientIds","creationUser","lastChangeUser","creationRole","lastChangeRole","excludeCreationUser"]}ngOnInit(){super.ngOnInit(),this.showShuffle=this.configurationProvider.getBooleanFromSnapshot(e.x3.IMXPLATFORM_FILTER_CLIENT_USE_CLIENT_SHUFFLE,!1)}onReset(){this.parentForm.controls.clientIds.setValue([])}onPanelShown(){super.onPanelShown(),this.loadClients()}loadClients(){this.availableClients?0===this.allClients.length&&this.availableClients.subscribe(me=>{const Se=me.filter(Ue=>null==Ue.parent||-1===me.indexOf(Ue.parent));this.allClients=Se}):this.logger.warn(" no availableClients passed!")}displayFn(me){return me?me.name:void 0}sortFnForClient(me,Se,Ue){return me.name.localeCompare(Se.name)}static#e=this.\u0275fac=function(Se){return new(Se||R)(s.Y36(e.Pc))};static#t=this.\u0275cmp=s.Xpm({type:R,selectors:[["imx-client-filter-panel"]],hostAttrs:[1,"imx-client-filter-panel"],inputs:{availableClients:"availableClients"},features:[s._Bn([(0,n.T)(R)]),s.qOj],decls:3,vars:1,consts:[[3,"formGroup",4,"ngIf"],["imxControl",""],[3,"formGroup"],[1,"filter__card"],[1,"tree_area"],[3,"lg_w","md_w","sm_w","ty_w"],[1,"filter__checkbox-wrapper"],["id","includeSubClients","name","includeSubClients","formControlName","includeSubClients","checked","false",1,"small"],[4,"ngIf","ngIfElse"],["defaultTree",""],[4,"ngIf"],[1,"shuffle"],["formControlName","clientIds",3,"displayNodeFn","availableItems"],["formControlName","clientIds",3,"displayNodeFn","sortNodesFn","availableItems"],["tree",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"field","control","form","formHandler","config"]],template:function(Se,Ue){1&Se&&s.YNc(0,Ke,20,23,"form",0)(1,at,1,5,"ng-template",null,1,s.W1O),2&Se&&s.Q6J("ngIf",Ue.panelShown)},dependencies:[l.O5,l.tP,i._Y,i.JJ,i.JL,t.oG,i.sg,i.u,p.M,c.V,o.A,x.A,u.Q,l.Ov,m.X$],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}  mat-tree .tree__node .leaf{padding-left:24px}  mat-tree .mat-nested-tree-node ul{padding-left:22px}  mat-tree .mat-nested-tree-node .mat-icon{line-height:20px}  mat-tree .mat-nested-tree-node .material-icons{font-size:18px;color:#0a2663}  mat-tree .mat-tree-node.tree__node{min-height:18px;color:#0a2663}  mat-tree .mat-mdc-icon-button{width:24px;height:24px;line-height:20px;padding:0}.tree-invisible[_ngcontent-%COMP%]{display:none}.tree[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%], .tree[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.filter__checkbox-wrapper[_ngcontent-%COMP%]{border-bottom:1px solid #e6e9ef;padding:0 10px 10px}@media (max-width: 550px){.filter__card[_ngcontent-%COMP%]{max-height:calc(100vh - 168px);overflow:scroll}}.shuffle[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return R})()},77218:(gt,X,a)=>{"use strict";a.d(X,{v:()=>o});var e=a(15198),n=a(19212),s=a(96814),l=a(56223),i=a(37012),t=a(12),p=a(28907);function c(x,u){if(1&x&&(n.TgZ(0,"form",1)(1,"div",2)(2,"imx-grid")(3,"imx-grid-element",3),n._UZ(4,"imx-form-control",4),n.qZA(),n.TgZ(5,"imx-grid-element",3)(6,"div"),n._UZ(7,"imx-form-control",4),n.qZA()()()()()),2&x){const m=n.oxw();n.Q6J("formGroup",m.parentForm),n.xp6(3),n.Q6J("lg_w",4)("sm_w",12),n.xp6(),n.Q6J("field",m.formHandler.formConfiguration.findFormFieldById("certaintyFrom"))("control",m.formHandler.formGroup.get("certaintyFrom"))("form",m.formHandler.formGroup.get("certaintyFrom"))("formHandler",m.formHandler)("config",m.formHandler.formConfiguration),n.xp6(),n.Q6J("lg_w",4)("sm_w",12),n.xp6(2),n.Q6J("field",m.formHandler.formConfiguration.findFormFieldById("certaintyTo"))("control",m.formHandler.formGroup.get("certaintyTo"))("form",m.formHandler.formGroup.get("certaintyTo"))("formHandler",m.formHandler)("config",m.formHandler.formConfiguration)}}let o=(()=>{class x extends e.O{constructor(){super(),this.id="DUPLICATES_FILTER",this.titleKey="imxplatform.common-entity.filter.duplicatesFilter.name",this.icon="icon-duplicate",this.filterFields=["certaintyFrom","certaintyTo"]}static#e=this.\u0275fac=function(b){return new(b||x)};static#t=this.\u0275cmp=n.Xpm({type:x,selectors:[["imx-duplicates-filter-panel"]],hostAttrs:[1,"imx-duplicates-filter-panel"],features:[n._Bn([(0,e.T)(x)]),n.qOj],decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"filter__card"],[3,"lg_w","sm_w"],[3,"field","control","form","formHandler","config"]],template:function(b,I){1&b&&n.YNc(0,c,8,15,"form",0),2&b&&n.Q6J("ngIf",I.panelShown)},dependencies:[s.O5,l._Y,l.JL,l.sg,i.M,t.V,p.A],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}"]})}return x})()},78274:(gt,X,a)=>{"use strict";a.d(X,{Y:()=>Y});var e=a(83416),n=a(15198),s=a(19212),l=a(96814),i=a(56223),t=a(75986),p=a(64170),c=a(87466),o=a(37012),x=a(12),u=a(54362),m=a(71365);function b(K,ne){if(1&K&&(s.TgZ(0,"div",5)(1,"mat-checkbox",15),s._uU(2),s.ALo(3,"translate"),s.qZA()()),2&K){const ee=s.oxw(2);s.xp6(2),s.Oqu(s.lcZ(3,1,ee.getFormFieldLabel("restrictTitle")))}}function I(K,ne){if(1&K&&(s.TgZ(0,"div",5)(1,"mat-checkbox",16),s._uU(2),s.ALo(3,"translate"),s.qZA()()),2&K){const ee=s.oxw(2);s.xp6(2),s.Oqu(s.lcZ(3,1,ee.getFormFieldLabel("restrictSubTitle")))}}function H(K,ne){if(1&K&&(s.TgZ(0,"div",5)(1,"mat-checkbox",17),s._uU(2),s.ALo(3,"translate"),s.qZA()()),2&K){const ee=s.oxw(2);s.xp6(2),s.Oqu(s.lcZ(3,1,ee.getFormFieldLabel("restrictShortDesc")))}}function O(K,ne){if(1&K&&(s.TgZ(0,"div",5)(1,"mat-checkbox",18),s._uU(2),s.ALo(3,"translate"),s.qZA()()),2&K){const ee=s.oxw(2);s.xp6(2),s.Oqu(s.lcZ(3,1,ee.getFormFieldLabel("restrictLongDesc")))}}function P(K,ne){if(1&K&&(s.TgZ(0,"div",5)(1,"mat-checkbox",19),s._uU(2),s.ALo(3,"translate"),s.qZA()()),2&K){const ee=s.oxw(2);s.xp6(2),s.Oqu(s.lcZ(3,1,ee.getFormFieldLabel("restrictContactName")))}}function G(K,ne){if(1&K&&(s.TgZ(0,"div",5)(1,"mat-checkbox",20),s._uU(2),s.ALo(3,"translate"),s.qZA()()),2&K){const ee=s.oxw(2);s.xp6(2),s.Oqu(s.lcZ(3,1,ee.getFormFieldLabel("restrictCity")))}}function B(K,ne){if(1&K&&(s.TgZ(0,"div",5)(1,"mat-checkbox",21),s._uU(2),s.ALo(3,"translate"),s.qZA()()),2&K){const ee=s.oxw(2);s.xp6(2),s.Oqu(s.lcZ(3,1,ee.getFormFieldLabel("restrictStreet")))}}function ae(K,ne){if(1&K&&(s.TgZ(0,"div",5)(1,"mat-checkbox",22),s._uU(2),s.ALo(3,"translate"),s.qZA()()),2&K){const ee=s.oxw(2);s.xp6(2),s.Oqu(s.lcZ(3,1,ee.getFormFieldLabel("restrictLastName")))}}function J(K,ne){if(1&K&&(s.TgZ(0,"div",5)(1,"mat-checkbox",23),s._uU(2),s.ALo(3,"translate"),s.qZA()()),2&K){const ee=s.oxw(2);s.xp6(2),s.Oqu(s.lcZ(3,1,ee.getFormFieldLabel("restrictSearchKeywords")))}}function q(K,ne){if(1&K&&(s.TgZ(0,"div",5)(1,"mat-checkbox",24),s._uU(2),s.ALo(3,"translate"),s.qZA()()),2&K){const ee=s.oxw(2);s.xp6(2),s.Oqu(s.lcZ(3,1,ee.getFormFieldLabel("restrictDescription")))}}function j(K,ne){if(1&K&&(s.TgZ(0,"form",1)(1,"div",2)(2,"imx-grid")(3,"imx-grid-element",3)(4,"div"),s._UZ(5,"imx-base-input",4),s.qZA(),s.TgZ(6,"div",5)(7,"mat-radio-group",6)(8,"mat-radio-button",7,8),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.TgZ(12,"mat-radio-button",9,10),s._uU(14),s.ALo(15,"translate"),s.qZA(),s.TgZ(16,"mat-radio-button",11,12),s._uU(18),s.ALo(19,"translate"),s.qZA()()()(),s.TgZ(20,"imx-grid-element",3)(21,"div")(22,"mat-label",13),s._uU(23),s.ALo(24,"translate"),s.qZA()(),s.YNc(25,b,4,3,"div",14)(26,I,4,3,"div",14)(27,H,4,3,"div",14)(28,O,4,3,"div",14)(29,P,4,3,"div",14)(30,G,4,3,"div",14)(31,B,4,3,"div",14)(32,ae,4,3,"div",14)(33,J,4,3,"div",14)(34,q,4,3,"div",14),s.qZA()()()()),2&K){const ee=s.oxw();s.Q6J("formGroup",ee.parentForm),s.xp6(3),s.Q6J("lg_w",6),s.xp6(2),s.Q6J("id","fulltext")("formControlName","fulltext")("label",ee.getFormFieldLabel("fulltext")),s.xp6(3),s.Q6J("value",ee.fulltextSearchOption.EXACTSEARCH),s.xp6(2),s.hij(" ",s.lcZ(11,23,ee.getFormFieldLabel("exactOption"))," "),s.xp6(2),s.Q6J("value",ee.fulltextSearchOption.ANDSEARCH),s.xp6(2),s.hij(" ",s.lcZ(15,25,ee.getFormFieldLabel("andOption"))," "),s.xp6(2),s.Q6J("value",ee.fulltextSearchOption.ORSEARCH),s.xp6(2),s.hij(" ",s.lcZ(19,27,ee.getFormFieldLabel("orOption"))," "),s.xp6(2),s.Q6J("lg_w",6),s.xp6(3),s.hij("",s.lcZ(24,29,"imxplatform.common-entity.filter.fulltextFilter.restrict"),":"),s.xp6(2),s.Q6J("ngIf",ee.formHandler.formConfiguration.findFormFieldById("restrictTitle")),s.xp6(),s.Q6J("ngIf",ee.formHandler.formConfiguration.findFormFieldById("restrictSubTitle")),s.xp6(),s.Q6J("ngIf",ee.formHandler.formConfiguration.findFormFieldById("restrictShortDesc")),s.xp6(),s.Q6J("ngIf",ee.formHandler.formConfiguration.findFormFieldById("restrictLongDesc")),s.xp6(),s.Q6J("ngIf",ee.formHandler.formConfiguration.findFormFieldById("restrictContactName")),s.xp6(),s.Q6J("ngIf",ee.formHandler.formConfiguration.findFormFieldById("restrictCity")),s.xp6(),s.Q6J("ngIf",ee.formHandler.formConfiguration.findFormFieldById("restrictStreet")),s.xp6(),s.Q6J("ngIf",ee.formHandler.formConfiguration.findFormFieldById("restrictLastName")),s.xp6(),s.Q6J("ngIf",ee.formHandler.formConfiguration.findFormFieldById("restrictSearchKeywords")),s.xp6(),s.Q6J("ngIf",ee.formHandler.formConfiguration.findFormFieldById("restrictDescription"))}}let Y=(()=>{class K extends n.O{constructor(ee){super(),this.renderer=ee,this.fulltextSearchOption=e.wK,this.id="TEXT_FILTER",this.titleKey="imxplatform.common-entity.filter.fulltextFilter.name",this.icon="icon-text",this.filterFields=["fulltext","fulltextSearchOption","restrictTitle","restrictShortDesc","restrictLongDesc","restrictCity","restrictStreet","restrictDescription"]}modifyFormValues(ee){this.cleanBooleanFormValue(ee,"restrictShortDesc"),this.cleanBooleanFormValue(ee,"restrictLongDesc"),this.cleanBooleanFormValue(ee,"restrictCity"),this.cleanBooleanFormValue(ee,"restrictStreet"),this.cleanBooleanFormValue(ee,"restrictDescription")}onPanelShown(){super.onPanelShown(),setTimeout(()=>{const ee=this.renderer.selectRootElement("#fulltext");ee&&ee.focus()},500)}static#e=this.\u0275fac=function($){return new($||K)(s.Y36(s.Qsj))};static#t=this.\u0275cmp=s.Xpm({type:K,selectors:[["imx-fulltext-filter-panel"]],hostAttrs:[1,"imx-fulltext-filter-panel"],features:[s._Bn([(0,n.T)(K)]),s.qOj],decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"filter__card"],[3,"lg_w"],[3,"id","formControlName","label"],[1,"filter__checkbox-wrapper"],["formControlName","fulltextSearchOption",1,"small"],["id","exactSearch","name","exactSearch",1,"line",3,"value"],["exactSearch",""],["id","andSearch","name","andSearch",1,"line",3,"value"],["andSearch",""],["id","orSearch","name","orSearch",1,"line",3,"value"],["orSearch",""],[2,"margin-bottom","5px"],["class","filter__checkbox-wrapper",4,"ngIf"],["id","restrictTitle","name","restrictTitle","formControlName","restrictTitle","checked","false",1,"small"],["id","restrictSubTitle","name","restrictSubTitle","formControlName","restrictSubTitle","checked","false",1,"small"],["id","restrictShortDesc","name","restrictShortDesc","formControlName","restrictShortDesc","checked","false",1,"small"],["id","restrictLongDesc","name","restrictLongDesc","formControlName","restrictLongDesc","checked","false",1,"small"],["id","restrictContactName","name","restrictContactName","formControlName","restrictContactName","checked","false",1,"small"],["id","restrictCity","name","restrictCity","formControlName","restrictCity","checked","false",1,"small"],["id","restrictStreet","name","restrictStreet","formControlName","restrictStreet","checked","false",1,"small"],["id","restrictLastName","name","restrictLastName","formControlName","restrictLastName","checked","false",1,"small"],["id","restrictSearchKeywords","name","restrictSearchKeywords","formControlName","restrictSearchKeywords","checked","false",1,"small"],["id","restrictDescription","name","restrictDescription","formControlName","restrictDescription","checked","false",1,"small"]],template:function($,ue){1&$&&s.YNc(0,j,35,31,"form",0),2&$&&s.Q6J("ngIf",ue.panelShown)},dependencies:[l.O5,i._Y,i.JJ,i.JL,t.oG,p.hX,c.VQ,c.U0,i.sg,i.u,o.M,x.V,u.H,m.X$],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}"]})}return K})()},66706:(gt,X,a)=>{"use strict";a.d(X,{P:()=>Y});var e=a(21473),n=a(49193),s=a(75222),l=a(69514),i=a(15198),t=a(19212),p=a(96814),c=a(56223),o=a(75986),x=a(64170),u=a(71365),m=a(37012),b=a(12),I=a(4938),H=a(54362),O=a(28907),P=a(48802);function G(K,ne){1&K&&(t.TgZ(0,"imx-grid-element",4)(1,"div",14)(2,"mat-label",15),t._uU(3,"imxplatform.common-entity.filter.geoFilter.location"),t.qZA(),t._UZ(4,"imx-location-autocomplete",16),t.qZA()()),2&K&&(t.Q6J("lg_w",6)("sm_w",12),t.xp6(4),t.Q6J("preloadAll",!1))}function B(K,ne){1&K&&t._UZ(0,"imx-grid-element",4),2&K&&t.Q6J("lg_w",6)("sm_w",12)}function ae(K,ne){if(1&K&&(t.ynx(0),t.TgZ(1,"imx-grid-element",4),t._UZ(2,"imx-autocomplete",17),t.qZA(),t.BQk()),2&K){const ee=t.oxw(2);t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",ee.formHandler.formConfiguration.findFormFieldById("regionIdsAlt"))("formHandler",ee.formHandler)("control",ee.formHandler.formGroup.controls.regionIdsAlt)("autocompleteService",ee.regionAutocompleteService)}}function J(K,ne){if(1&K&&(t.ynx(0),t.TgZ(1,"imx-grid-element",4),t._UZ(2,"imx-autocomplete",17),t.qZA(),t.BQk()),2&K){const ee=t.oxw(2);t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",ee.formHandler.formConfiguration.findFormFieldById("geoRegionIdAlt"))("formHandler",ee.formHandler)("control",ee.formHandler.formGroup.controls.geoRegionIdAlt)("autocompleteService",ee.regionAutocompleteService)}}function q(K,ne){if(1&K&&(t.TgZ(0,"imx-grid-element",4),t._UZ(1,"imx-form-control",6),t.qZA()),2&K){const ee=t.oxw(2);t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",ee.formHandler.formConfiguration.findFormFieldById("regionIdsAlt"))("control",ee.formHandler.formGroup.get("regionIdsAlt"))("form",ee.formHandler.formGroup.get("regionIdsAlt"))("formHandler",ee.formHandler)("config",ee.formHandler.formConfiguration)}}function j(K,ne){if(1&K&&(t.TgZ(0,"form",1)(1,"div",2)(2,"imx-grid"),t.YNc(3,G,5,3,"imx-grid-element",3),t.ALo(4,"async"),t.TgZ(5,"imx-grid-element",4),t._UZ(6,"imx-base-input",5),t.qZA(),t.YNc(7,B,1,2,"imx-grid-element",3),t.ALo(8,"async"),t.TgZ(9,"imx-grid-element",4),t._UZ(10,"imx-form-control",6),t.qZA(),t.TgZ(11,"imx-grid-element",4),t._UZ(12,"imx-form-control",6),t.qZA(),t.TgZ(13,"imx-grid-element",4),t._UZ(14,"imx-form-control",6),t.qZA(),t._UZ(15,"imx-grid-element",4),t.YNc(16,ae,3,6,"ng-container",7),t.ALo(17,"async"),t.YNc(18,J,3,6,"ng-container",8),t.ALo(19,"async"),t.YNc(20,q,2,7,"ng-template",null,9,t.W1O),t.TgZ(22,"imx-grid-element",4)(23,"div",10)(24,"mat-checkbox",11),t._uU(25),t.ALo(26,"translate"),t.qZA()()(),t.TgZ(27,"imx-grid-element",4)(28,"div",10)(29,"mat-checkbox",12),t._uU(30),t.ALo(31,"translate"),t.qZA()()(),t.TgZ(32,"imx-grid-element",4)(33,"div",10)(34,"mat-checkbox",13),t._uU(35),t.ALo(36,"translate"),t.qZA()()()()()()),2&K){const ee=t.MAs(21),$=t.oxw();t.Q6J("formGroup",$.parentForm),t.xp6(3),t.Q6J("ngIf",t.lcZ(4,43,$.locationsAvailable)),t.xp6(2),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("id","zipCodeAlt")("formControlName","zipCodeAlt")("label",$.getFormFieldLabel("zipCodeAlt")),t.xp6(),t.Q6J("ngIf",!t.lcZ(8,45,$.locationsAvailable)),t.xp6(2),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",$.formHandler.formConfiguration.findFormFieldById("longitudeAlt"))("control",$.formHandler.formGroup.get("longitudeAlt"))("form",$.formHandler.formGroup.get("longitudeAlt"))("formHandler",$.formHandler)("config",$.formHandler.formConfiguration),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",$.formHandler.formConfiguration.findFormFieldById("latitudeAlt"))("control",$.formHandler.formGroup.get("latitudeAlt"))("form",$.formHandler.formGroup.get("latitudeAlt"))("formHandler",$.formHandler)("config",$.formHandler.formConfiguration),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",$.formHandler.formConfiguration.findFormFieldById("searchDistanceAlt"))("control",$.formHandler.formGroup.get("searchDistanceAlt"))("form",$.formHandler.formGroup.get("searchDistanceAlt"))("formHandler",$.formHandler)("config",$.formHandler.formConfiguration),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("ngIf",t.lcZ(17,47,$.advancedRegionManagement$))("ngIfElse",ee),t.xp6(2),t.Q6J("ngIf",t.lcZ(19,49,$.addGeoRegionFilter&&$.advancedRegionManagement$)),t.xp6(4),t.Q6J("lg_w",6)("sm_w",12),t.xp6(3),t.Oqu(t.lcZ(26,51,$.getFormFieldLabel("noRegionAlt"))),t.xp6(2),t.Q6J("lg_w",6)("sm_w",12),t.xp6(3),t.Oqu(t.lcZ(31,53,$.getFormFieldLabel("noGeoCoordsAlt"))),t.xp6(2),t.Q6J("lg_w",6)("sm_w",12),t.xp6(3),t.Oqu(t.lcZ(36,55,$.getFormFieldLabel("noLocationAlt")))}}let Y=(()=>{class K extends i.O{constructor(ee,$,ue){super(),this.entitiesMgr=ee,this.configurationProvider=$,this.regionAutocompleteService=ue,this.addGeoRegionFilter=!1,this.id="GEO_FILTER_OFFER",this.titleKey="imxplatform.common-entity.filter.geoFilter.name",this.icon="icon-map-marker",this.locationsAvailable=(0,n.of)(!1),this.advancedRegionManagement$=(0,n.of)(!1),this.filterFields=["geoLocationIdAlt","searchDistanceAlt","zipCodeAlt","longitudeAlt","latitudeAlt","noGeoCoordsAlt","regionIdsAlt","noLocationAlt","noRegionAlt","geoRegionIdAlt"]}ngOnInit(){super.ngOnInit(),this.locationsAvailable=this.entitiesMgr.getAllEntitiesOfType("Location").pipe((0,s.w)(ee=>(0,n.of)(ee.totalNumberOfResults>0))),this.advancedRegionManagement$=this.configurationProvider.getBoolean(e.x3.PLATFORM_ADVANCED_REGION_MANAGEMENT_ENABLED,!1)}static#e=this.\u0275fac=function($){return new($||K)(t.Y36(e.qB),t.Y36(e.Pc),t.Y36(l.M))};static#t=this.\u0275cmp=t.Xpm({type:K,selectors:[["imx-geo-filter-offer-panel"]],hostAttrs:[1,"imx-geo-filter-offer-panel"],inputs:{addGeoRegionFilter:"addGeoRegionFilter"},features:[t._Bn([(0,i.T)(K)]),t.qOj],decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"filter__card"],[3,"lg_w","sm_w",4,"ngIf"],[3,"lg_w","sm_w"],[3,"id","formControlName","label"],[3,"field","control","form","formHandler","config"],[4,"ngIf","ngIfElse"],[4,"ngIf"],["classicRegionMgmt",""],[2,"padding-top","20px"],["id","noRegionAlt","name","noRegionAlt","formControlName","noRegionAlt","checked","false"],["id","noGeoCoordsAlt","name","noGeoCoordsAlt","formControlName","noGeoCoordsAlt","checked","false"],["id","noLocationAlt","name","noLocationAlt","formControlName","noLocationAlt","checked","false"],[1,"flex-column"],["translate",""],["name","locationAlt","formControlName","geoLocationIdAlt",3,"preloadAll"],[3,"field","formHandler","control","autocompleteService"]],template:function($,ue){1&$&&t.YNc(0,j,37,57,"form",0),2&$&&t.Q6J("ngIf",ue.panelShown)},dependencies:[p.O5,c._Y,c.JJ,c.JL,o.oG,x.hX,c.sg,c.u,u.Pi,m.M,b.V,I.Y,H.H,O.A,P.d,p.Ov,u.X$],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}"]})}return K})()},65716:(gt,X,a)=>{"use strict";a.d(X,{L:()=>ue});var e=a(49193),n=a(75222),s=a(69514),l=a(21473),i=a(15198),t=a(19212),p=a(96814),c=a(56223),o=a(75986),x=a(64170),u=a(71365),m=a(37012),b=a(12),I=a(4938),H=a(54362),O=a(28907),P=a(48802);function G(ge,Ke){if(1&ge&&(t.ynx(0),t.TgZ(1,"imx-grid-element",5),t._UZ(2,"imx-autocomplete",9),t.qZA(),t.BQk()),2&ge){const at=t.oxw(2);t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",at.formHandler.formConfiguration.findFormFieldById("pathXRegionId"))("formHandler",at.formHandler)("control",at.formHandler.formGroup.controls.pathXRegionId)("autocompleteService",at.regionAutocompleteService)}}function B(ge,Ke){1&ge&&(t.TgZ(0,"imx-grid-element",5)(1,"div",10)(2,"mat-label",11),t._uU(3,"imxplatform.common-entity.filter.geoFilter.location"),t.qZA(),t._UZ(4,"imx-location-autocomplete",12),t.qZA()()),2&ge&&(t.Q6J("lg_w",6)("sm_w",12),t.xp6(4),t.Q6J("preloadAll",!1))}function ae(ge,Ke){if(1&ge&&(t.TgZ(0,"imx-grid-element",5),t._UZ(1,"imx-base-input",13),t.qZA()),2&ge){const at=t.oxw(2);t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("id","zipCode")("formControlName","zipCode")("label",at.getFormFieldLabel("zipCode"))}}function J(ge,Ke){1&ge&&t._UZ(0,"imx-grid-element",5),2&ge&&t.Q6J("lg_w",6)("sm_w",12)}function q(ge,Ke){if(1&ge&&(t.ynx(0),t.TgZ(1,"imx-grid-element",5),t._UZ(2,"imx-autocomplete",9),t.qZA(),t.BQk()),2&ge){const at=t.oxw(2);t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",at.formHandler.formConfiguration.findFormFieldById("regionIds"))("formHandler",at.formHandler)("control",at.formHandler.formGroup.controls.regionIds)("autocompleteService",at.regionAutocompleteService)}}function j(ge,Ke){if(1&ge&&(t.ynx(0),t.TgZ(1,"imx-grid-element",5),t._UZ(2,"imx-autocomplete",9),t.qZA(),t.BQk()),2&ge){const at=t.oxw(2);t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",at.formHandler.formConfiguration.findFormFieldById("geoRegionId"))("formHandler",at.formHandler)("control",at.formHandler.formGroup.controls.geoRegionId)("autocompleteService",at.regionAutocompleteService)}}function Y(ge,Ke){if(1&ge&&(t.TgZ(0,"imx-grid-element",5),t._UZ(1,"imx-form-control",6),t.qZA()),2&ge){const at=t.oxw(2);t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",at.formHandler.formConfiguration.findFormFieldById("regionIds"))("control",at.formHandler.formGroup.get("regionIds"))("form",at.formHandler.formGroup.get("regionIds"))("formHandler",at.formHandler)("config",at.formHandler.formConfiguration)}}function K(ge,Ke){if(1&ge&&(t.TgZ(0,"imx-grid-element",5)(1,"div",14)(2,"mat-checkbox",15),t._uU(3),t.ALo(4,"translate"),t.qZA()()()),2&ge){const at=t.oxw(2);t.Q6J("lg_w",6)("sm_w",12),t.xp6(3),t.Oqu(t.lcZ(4,3,at.getFormFieldLabel("noRegion")))}}function ne(ge,Ke){if(1&ge&&(t.TgZ(0,"imx-grid-element",5)(1,"div",14)(2,"mat-checkbox",16),t._uU(3),t.ALo(4,"translate"),t.qZA()()()),2&ge){const at=t.oxw(2);t.Q6J("lg_w",6)("sm_w",12),t.xp6(3),t.Oqu(t.lcZ(4,3,at.getFormFieldLabel("noGeoCoords")))}}function ee(ge,Ke){if(1&ge&&(t.TgZ(0,"imx-grid-element",5)(1,"div",14)(2,"mat-checkbox",17),t._uU(3),t.ALo(4,"translate"),t.qZA()()()),2&ge){const at=t.oxw(2);t.Q6J("lg_w",6)("sm_w",12),t.xp6(3),t.Oqu(t.lcZ(4,3,at.getFormFieldLabel("noLocation")))}}function $(ge,Ke){if(1&ge&&(t.TgZ(0,"form",1)(1,"div",2)(2,"imx-grid"),t.YNc(3,G,3,6,"ng-container",3),t.ALo(4,"async"),t.YNc(5,B,5,3,"imx-grid-element",4),t.ALo(6,"async"),t.YNc(7,ae,2,5,"imx-grid-element",4)(8,J,1,2,"imx-grid-element",4),t.ALo(9,"async"),t.TgZ(10,"imx-grid-element",5),t._UZ(11,"imx-form-control",6),t.qZA(),t.TgZ(12,"imx-grid-element",5),t._UZ(13,"imx-form-control",6),t.qZA(),t.TgZ(14,"imx-grid-element",5),t._UZ(15,"imx-form-control",6),t.qZA(),t._UZ(16,"imx-grid-element",5),t.YNc(17,q,3,6,"ng-container",7),t.ALo(18,"async"),t.YNc(19,j,3,6,"ng-container",3),t.ALo(20,"async"),t.YNc(21,Y,2,7,"ng-template",null,8,t.W1O)(23,K,5,5,"imx-grid-element",4)(24,ne,5,5,"imx-grid-element",4)(25,ee,5,5,"imx-grid-element",4),t.qZA()()()),2&ge){const at=t.MAs(22),Le=t.oxw();t.Q6J("formGroup",Le.parentForm),t.xp6(3),t.Q6J("ngIf",t.lcZ(4,34,Le.formHandler.formConfiguration.findFormFieldById("pathXRegionId")&&Le.addGeoRegionFilter&&Le.advancedRegionManagement$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(6,36,Le.formHandler.formConfiguration.findFormFieldById("geoLocationId")&&Le.locationsAvailable)),t.xp6(2),t.Q6J("ngIf",Le.formHandler.formConfiguration.findFormFieldById("geoLocationId")),t.xp6(),t.Q6J("ngIf",!t.lcZ(9,38,Le.locationsAvailable)),t.xp6(2),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",Le.formHandler.formConfiguration.findFormFieldById("longitude"))("control",Le.formHandler.formGroup.get("longitude"))("form",Le.formHandler.formGroup.get("longitude"))("formHandler",Le.formHandler)("config",Le.formHandler.formConfiguration),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",Le.formHandler.formConfiguration.findFormFieldById("latitude"))("control",Le.formHandler.formGroup.get("latitude"))("form",Le.formHandler.formGroup.get("latitude"))("formHandler",Le.formHandler)("config",Le.formHandler.formConfiguration),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",Le.formHandler.formConfiguration.findFormFieldById("searchDistance"))("control",Le.formHandler.formGroup.get("searchDistance"))("form",Le.formHandler.formGroup.get("searchDistance"))("formHandler",Le.formHandler)("config",Le.formHandler.formConfiguration),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("ngIf",t.lcZ(18,40,Le.formHandler.formConfiguration.findFormFieldById("regionIds")&&Le.advancedRegionManagement$))("ngIfElse",at),t.xp6(2),t.Q6J("ngIf",t.lcZ(20,42,Le.formHandler.formConfiguration.findFormFieldById("geoRegionId")&&Le.addGeoRegionFilter&&Le.advancedRegionManagement$)),t.xp6(4),t.Q6J("ngIf",Le.formHandler.formConfiguration.findFormFieldById("noRegion")),t.xp6(),t.Q6J("ngIf",Le.formHandler.formConfiguration.findFormFieldById("noGeoCoords")),t.xp6(),t.Q6J("ngIf",Le.formHandler.formConfiguration.findFormFieldById("noLocation"))}}let ue=(()=>{class ge extends i.O{constructor(at,Le,R){super(),this.entitiesMgr=at,this.configurationProvider=Le,this.regionAutocompleteService=R,this.addGeoRegionFilter=!1,this.id="GEO_FILTER",this.titleKey="imxplatform.common-entity.filter.geoFilter.name",this.icon="icon-map-marker",this.locationsAvailable=(0,e.of)(!1),this.advancedRegionManagement$=(0,e.of)(!1),this.filterFields=["geoLocationId","searchDistance","zipCode","longitude","latitude","noGeoCoords","regionIds","noLocation","noRegion","geoRegionId","pathXRegionId"]}ngOnInit(){super.ngOnInit(),this.locationsAvailable=this.entitiesMgr.getAllEntitiesOfType("Location").pipe((0,n.w)(at=>(0,e.of)(at.totalNumberOfResults>0))),this.advancedRegionManagement$=this.configurationProvider.getBoolean(l.x3.PLATFORM_ADVANCED_REGION_MANAGEMENT_ENABLED,!1)}static#e=this.\u0275fac=function(Le){return new(Le||ge)(t.Y36(l.qB),t.Y36(l.Pc),t.Y36(s.M))};static#t=this.\u0275cmp=t.Xpm({type:ge,selectors:[["imx-geo-filter-panel"]],hostAttrs:[1,"imx-geo-filter-panel"],inputs:{addGeoRegionFilter:"addGeoRegionFilter"},features:[t._Bn([(0,i.T)(ge)]),t.qOj],decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"filter__card"],[4,"ngIf"],[3,"lg_w","sm_w",4,"ngIf"],[3,"lg_w","sm_w"],[3,"field","control","form","formHandler","config"],[4,"ngIf","ngIfElse"],["classicRegionMgmt",""],[3,"field","formHandler","control","autocompleteService"],[1,"flex-column"],["translate",""],["name","location","formControlName","geoLocationId",3,"preloadAll"],[3,"id","formControlName","label"],[2,"padding-top","20px"],["id","noRegion","name","noRegion","formControlName","noRegion","checked","false"],["id","noGeoCoords","name","noGeoCoords","formControlName","noGeoCoords","checked","false"],["id","noLocation","name","noLocation","formControlName","noLocation","checked","false"]],template:function(Le,R){1&Le&&t.YNc(0,$,26,44,"form",0),2&Le&&t.Q6J("ngIf",R.panelShown)},dependencies:[p.O5,c._Y,c.JJ,c.JL,o.oG,x.hX,c.sg,c.u,u.Pi,m.M,b.V,I.Y,H.H,O.A,P.d,p.Ov,u.X$],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}"]})}return ge})()},85984:(gt,X,a)=>{"use strict";a.d(X,{c:()=>u});var e=a(15198),n=a(19212),s=a(96814),l=a(56223),i=a(37012),t=a(12),p=a(28907);function c(m,b){if(1&m&&(n.TgZ(0,"imx-grid-element",3),n._UZ(1,"imx-form-control",4),n.qZA()),2&m){const I=n.oxw(2);n.Q6J("lg_w",6)("sm_w",12),n.xp6(),n.Q6J("field",I.formHandler.formConfiguration.findFormFieldById("permalink"))("control",I.formHandler.formGroup.get("permalink"))("form",I.formHandler.formGroup.get("permalink"))("formHandler",I.formHandler)("config",I.formHandler.formConfiguration)}}function o(m,b){if(1&m&&(n.TgZ(0,"form",1)(1,"div",2)(2,"imx-grid")(3,"imx-grid-element",3),n._UZ(4,"imx-form-control",4),n.qZA(),n.TgZ(5,"imx-grid-element",3),n._UZ(6,"imx-form-control",4),n.qZA(),n.TgZ(7,"imx-grid-element",3),n._UZ(8,"imx-form-control",4),n.qZA(),n.YNc(9,c,2,7,"imx-grid-element",5),n.TgZ(10,"imx-grid-element",3)(11,"div",6),n._UZ(12,"imx-form-control",4),n.qZA()(),n.Hsn(13),n.qZA()()()),2&m){const I=n.oxw();n.Q6J("formGroup",I.parentForm),n.xp6(3),n.Q6J("lg_w",6)("sm_w",12),n.xp6(),n.Q6J("field",I.formHandler.formConfiguration.findFormFieldById("id"))("control",I.formHandler.formGroup.get("id"))("form",I.formHandler.formGroup.get("id"))("formHandler",I.formHandler)("config",I.formHandler.formConfiguration),n.xp6(),n.Q6J("lg_w",6)("sm_w",12),n.xp6(),n.Q6J("field",I.formHandler.formConfiguration.findFormFieldById("importId"))("control",I.formHandler.formGroup.get("importId"))("form",I.formHandler.formGroup.get("importId"))("formHandler",I.formHandler)("config",I.formHandler.formConfiguration),n.xp6(),n.Q6J("lg_w",6)("sm_w",12),n.xp6(),n.Q6J("field",I.formHandler.formConfiguration.findFormFieldById("language"))("control",I.formHandler.formGroup.get("language"))("form",I.formHandler.formGroup.get("language"))("formHandler",I.formHandler)("config",I.formHandler.formConfiguration),n.xp6(),n.Q6J("ngIf",I.formHandler.formConfiguration.findFormFieldById("permalink")),n.xp6(),n.Q6J("lg_w",6)("sm_w",6),n.xp6(2),n.Q6J("field",I.formHandler.formConfiguration.findFormFieldById("addressPoiTypes"))("control",I.formHandler.formGroup.get("addressPoiTypes"))("form",I.formHandler.formGroup.get("addressPoiTypes"))("formHandler",I.formHandler)("config",I.formHandler.formConfiguration)}}const x=["*"];let u=(()=>{class m extends e.O{constructor(I){super(),this.renderer=I,this.id="MAIN_FILTER",this.titleKey="imxplatform.common-entity.filter.mainFilter.name",this.icon="icon-cube",this.filterFields=["id","importId","permalink","language","addressPoiTypes"]}onPanelShown(){super.onPanelShown(),setTimeout(()=>{const I=this.renderer.selectRootElement("#id");I&&I.focus()},500)}static#e=this.\u0275fac=function(H){return new(H||m)(n.Y36(n.Qsj))};static#t=this.\u0275cmp=n.Xpm({type:m,selectors:[["imx-main-filter-panel"]],hostAttrs:[1,"imx-main-filter-panel"],features:[n._Bn([(0,e.T)(m)]),n.qOj],ngContentSelectors:x,decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"filter__card"],[3,"lg_w","sm_w"],[3,"field","control","form","formHandler","config"],[3,"lg_w","sm_w",4,"ngIf"],[1,"filter__poi_types"]],template:function(H,O){1&H&&(n.F$t(),n.YNc(0,o,14,30,"form",0)),2&H&&n.Q6J("ngIf",O.panelShown)},dependencies:[s.O5,l._Y,l.JL,l.sg,i.M,t.V,p.A],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}.filter__poi_types[_ngcontent-%COMP%]{margin-top:10px}.filter__poi_types[_ngcontent-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{grid-template-columns:repeat(3,1fr)!important}"]})}return m})()},25699:(gt,X,a)=>{"use strict";a.d(X,{i:()=>b});var e=a(21473),n=a(15198),s=a(19212),l=a(96814),i=a(56223),t=a(37012),p=a(12),c=a(63005),o=a(54362),x=a(2901),u=a(28907);function m(I,H){if(1&I&&(s.TgZ(0,"form",1)(1,"div",2)(2,"imx-grid")(3,"imx-grid-element",3),s._UZ(4,"imx-form-control",4),s.qZA(),s.TgZ(5,"imx-grid-element",3),s._UZ(6,"imx-base-input",5),s.qZA(),s.TgZ(7,"imx-grid-element",3)(8,"div",6),s._UZ(9,"imx-base-input-label",7),s.TgZ(10,"div",8),s._UZ(11,"imx-base-date",9)(12,"imx-base-date",10),s.qZA()()(),s.TgZ(13,"imx-grid-element",3),s._UZ(14,"imx-base-input",5),s.qZA(),s.TgZ(15,"imx-grid-element",3),s._UZ(16,"imx-form-control",4),s.qZA(),s.TgZ(17,"imx-grid-element",3),s._UZ(18,"imx-form-control",4),s.qZA(),s.TgZ(19,"imx-grid-element",3),s._UZ(20,"imx-form-control",4),s.qZA(),s.TgZ(21,"imx-grid-element",3),s._UZ(22,"imx-form-control",4),s.qZA()()()()),2&I){const O=s.oxw();s.Q6J("formGroup",O.parentForm),s.xp6(3),s.Q6J("lg_w",6)("sm_w",12),s.xp6(),s.Q6J("field",O.formHandler.formConfiguration.findFormFieldById("id"))("control",O.formHandler.formGroup.get("id"))("form",O.formHandler.formGroup.get("id"))("formHandler",O.formHandler)("config",O.formHandler.formConfiguration),s.xp6(),s.Q6J("lg_w",6)("sm_w",12),s.xp6(),s.Q6J("id","ident")("formControlName","ident")("label","filter.Media.ident"),s.xp6(),s.Q6J("lg_w",6)("sm_w",12),s.xp6(6),s.Q6J("lg_w",6)("sm_w",12),s.xp6(),s.Q6J("id","modifiedUser")("formControlName","modifiedUser")("label","filter.Media.modifiedUser"),s.xp6(),s.Q6J("lg_w",6)("sm_w",12),s.xp6(),s.Q6J("field",O.formHandler.formConfiguration.findFormFieldById("mediaProvider"))("control",O.formHandler.formGroup.get("mediaProvider"))("form",O.formHandler.formGroup.get("mediaProvider"))("formHandler",O.formHandler)("config",O.formHandler.formConfiguration),s.xp6(),s.Q6J("lg_w",6)("sm_w",12),s.xp6(),s.Q6J("field",O.formHandler.formConfiguration.findFormFieldById("mediaType"))("control",O.formHandler.formGroup.get("mediaType"))("form",O.formHandler.formGroup.get("mediaType"))("formHandler",O.formHandler)("config",O.formHandler.formConfiguration),s.xp6(),s.Q6J("lg_w",6)("sm_w",12),s.xp6(),s.Q6J("field",O.formHandler.formConfiguration.findFormFieldById("mediaLicense"))("control",O.formHandler.formGroup.get("mediaLicense"))("form",O.formHandler.formGroup.get("mediaLicense"))("formHandler",O.formHandler)("config",O.formHandler.formConfiguration),s.xp6(),s.Q6J("lg_w",6)("sm_w",12),s.xp6(),s.Q6J("field",O.formHandler.formConfiguration.findFormFieldById("category"))("control",O.formHandler.formGroup.get("category"))("form",O.formHandler.formGroup.get("category"))("formHandler",O.formHandler)("config",O.formHandler.formConfiguration)}}let b=(()=>{class I extends n.O{constructor(){super(),this.isFileBrowserMode=!1,this.id="MEDIA_FILTER",this.titleKey="filter.Media.name",this.icon="icon-cube",this.filterFields=["id","ident","modifiedFrom","modifiedTo","modifiedUser","mediaProvider","mediaType","mediaLicense","category"]}ngOnChanges(O){super.ngOnChanges(O),O.isFileBrowserMode&&(this.isFileBrowserMode?this.formHandler.formGroup.get("mediaProvider").disable({onlySelf:!0,emitEvent:!1}):this.formHandler.formGroup.get("mediaProvider").enable({onlySelf:!0,emitEvent:!1}))}modifyFormValues(O){O.modifiedFrom=(0,e.w5)(O.modifiedFrom),O.modifiedTo=(0,e.w5)(O.modifiedTo)}static#e=this.\u0275fac=function(P){return new(P||I)};static#t=this.\u0275cmp=s.Xpm({type:I,selectors:[["imx-media-filter-panel"]],hostAttrs:[1,"imx-media-filter-panel"],inputs:{isFileBrowserMode:"isFileBrowserMode"},features:[s._Bn([(0,n.T)(I)]),s.qOj,s.TTD],decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"filter__card"],[3,"lg_w","sm_w"],[3,"field","control","form","formHandler","config"],[3,"id","formControlName","label"],[1,"flex-column"],["label","filter.Media.modifiedPeriod"],[1,"flex-row","filter__align-left","field-margin"],["formControlName","modifiedFrom"],["formControlName","modifiedTo","quickaccess","today"]],template:function(P,G){1&P&&s.YNc(0,m,23,48,"form",0),2&P&&s.Q6J("ngIf",G.panelShown)},dependencies:[l.O5,i._Y,i.JJ,i.JL,i.sg,i.u,t.M,p.V,c.d,o.H,x.u,u.A],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}"]})}return I})()},59901:(gt,X,a)=>{"use strict";a.d(X,{H:()=>H});var e=a(83416),n=a(15198),s=a(19212),l=a(96814),i=a(56223),t=a(75986),p=a(2032),c=a(64170),o=a(87466),x=a(71365),u=a(37012),m=a(12),b=a(38888);function I(O,P){if(1&O&&(s.TgZ(0,"form",1)(1,"div",2)(2,"imx-grid")(3,"imx-grid-element",3)(4,"div")(5,"mat-form-field")(6,"label",4),s._uU(7,"filter.Media.fulltext"),s.qZA(),s.TgZ(8,"div",5),s._UZ(9,"input",6),s.qZA()()(),s.TgZ(10,"div",7)(11,"mat-radio-group",8)(12,"mat-radio-button",9,10),s._uU(14),s.ALo(15,"translate"),s.qZA(),s.TgZ(16,"mat-radio-button",11,12),s._uU(18),s.ALo(19,"translate"),s.qZA(),s.TgZ(20,"mat-radio-button",13,14),s._uU(22),s.ALo(23,"translate"),s.qZA()()()(),s.TgZ(24,"imx-grid-element",3)(25,"div")(26,"mat-label",15),s._uU(27),s.ALo(28,"translate"),s.qZA()(),s.TgZ(29,"div",7)(30,"mat-checkbox",16),s._uU(31),s.ALo(32,"translate"),s.qZA()(),s.TgZ(33,"div",7)(34,"mat-checkbox",17),s._uU(35),s.ALo(36,"translate"),s.qZA()(),s.TgZ(37,"div",7)(38,"mat-checkbox",18),s._uU(39),s.ALo(40,"translate"),s.qZA()()()()()()),2&O){const G=s.oxw();s.Q6J("formGroup",G.parentForm),s.xp6(3),s.Q6J("lg_w",6),s.xp6(9),s.Q6J("value",G.fulltextSearchOption.EXACTSEARCH),s.xp6(2),s.hij(" ",s.lcZ(15,13,"filter.Media.exactOption")," "),s.xp6(2),s.Q6J("value",G.fulltextSearchOption.ANDSEARCH),s.xp6(2),s.hij(" ",s.lcZ(19,15,"filter.Media.andOption")," "),s.xp6(2),s.Q6J("value",G.fulltextSearchOption.ORSEARCH),s.xp6(2),s.hij(" ",s.lcZ(23,17,"filter.Media.orOption")," "),s.xp6(2),s.Q6J("lg_w",6),s.xp6(3),s.hij("",s.lcZ(28,19,"filter.Media.restrict"),":"),s.xp6(4),s.Oqu(s.lcZ(32,21,"filter.Media.restrictTitle")),s.xp6(4),s.Oqu(s.lcZ(36,23,"filter.Media.restrictDescription")),s.xp6(4),s.Oqu(s.lcZ(40,25,"filter.Media.restrictCopyright"))}}let H=(()=>{class O extends n.O{constructor(){super(),this.fulltextSearchOption=e.wK,this.id="MEDIA_TEXT_FILTER",this.titleKey="imxplatform.common-entity.filter.fulltextFilter.name",this.icon="icon-text",this.filterFields=["fulltext","fulltextSearchOption","restrictTitle","restrictDescription","restrictCopyright"]}modifyFormValues(G){this.cleanBooleanFormValue(G,"restrictDescription"),this.cleanBooleanFormValue(G,"restrictCopyright")}static#e=this.\u0275fac=function(B){return new(B||O)};static#t=this.\u0275cmp=s.Xpm({type:O,selectors:[["imx-media-fulltext-filter-panel"]],hostAttrs:[1,"media-fulltext-main-filter-panel"],features:[s._Bn([(0,n.T)(O)]),s.qOj],decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"filter__card"],[3,"lg_w"],["for","fulltext","translate",""],[1,"input-wrapper"],["matInput","","id","fulltext","formControlName","fulltext"],[1,"filter__checkbox-wrapper"],["formControlName","fulltextSearchOption",1,"small"],["id","exactSearch","name","exactSearch",1,"line",3,"value"],["exactSearch",""],["id","andSearch","name","andSearch",1,"line",3,"value"],["andSearch",""],["id","orSearch","name","orSearch",1,"line",3,"value"],["orSearch",""],[2,"margin-bottom","5px"],["id","restrictTitle","name","restrictTitle","formControlName","restrictTitle",1,"small"],["id","restrictDescription","name","restrictDescription","formControlName","restrictDescription",1,"small"],["id","restrictCopyright","name","restrictCopyright","formControlName","restrictCopyright",1,"small"]],template:function(B,ae){1&B&&s.YNc(0,I,41,27,"form",0),2&B&&s.Q6J("ngIf",ae.panelShown)},dependencies:[l.O5,i._Y,i.Fj,i.JJ,i.JL,t.oG,p.Nt,c.KE,c.hX,o.VQ,o.U0,i.sg,i.u,x.Pi,u.M,m.V,b.u,x.X$],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}"]})}return O})()},35342:(gt,X,a)=>{"use strict";a.d(X,{d:()=>K});var e=a(51418),n=a(58320),s=a(15198),l=a(19212),i=a(96814),t=a(56223),p=a(37012),c=a(12),o=a(28907);function x(ne,ee){1&ne&&l.GkF(0)}function u(ne,ee){1&ne&&l.GkF(0)}function m(ne,ee){1&ne&&l.GkF(0)}function b(ne,ee){1&ne&&l.GkF(0)}function I(ne,ee){1&ne&&l.GkF(0)}function H(ne,ee){1&ne&&l.GkF(0)}const O=()=>({$implicit:"withMemoAttributeId"}),P=()=>({$implicit:"withoutMemoAttributeId"});function G(ne,ee){if(1&ne&&(l.ynx(0),l.TgZ(1,"imx-grid-element",4),l.YNc(2,I,1,0,"ng-container",5),l.qZA(),l._UZ(3,"imx-grid-element",4),l.TgZ(4,"imx-grid-element",4),l.YNc(5,H,1,0,"ng-container",5),l.qZA(),l.BQk()),2&ne){l.oxw(2);const $=l.MAs(2);l.xp6(),l.Q6J("lg_w",6)("sm_w",6),l.xp6(),l.Q6J("ngTemplateOutlet",$)("ngTemplateOutletContext",l.DdM(10,O)),l.xp6(),l.Q6J("lg_w",6)("sm_w",6),l.xp6(),l.Q6J("lg_w",6)("sm_w",6),l.xp6(),l.Q6J("ngTemplateOutlet",$)("ngTemplateOutletContext",l.DdM(11,P))}}const B=()=>({$implicit:"withMemo"}),ae=()=>({$implicit:"memoUserId"}),J=()=>({$implicit:"memoFromDate"}),q=()=>({$implicit:"memoToDate"});function j(ne,ee){if(1&ne&&(l.TgZ(0,"form",2)(1,"div",3)(2,"imx-grid")(3,"imx-grid-element",4),l.YNc(4,x,1,0,"ng-container",5),l.qZA(),l.TgZ(5,"imx-grid-element",4),l.YNc(6,u,1,0,"ng-container",5),l.qZA(),l.TgZ(7,"imx-grid-element",4),l.YNc(8,m,1,0,"ng-container",5),l.qZA(),l.TgZ(9,"imx-grid-element",4),l.YNc(10,b,1,0,"ng-container",5),l.qZA(),l._UZ(11,"imx-grid-element",4),l.YNc(12,G,6,12,"ng-container",6),l.qZA()()()),2&ne){const $=l.oxw(),ue=l.MAs(2);l.Q6J("formGroup",$.parentForm),l.xp6(3),l.Q6J("lg_w",6)("sm_w",12),l.xp6(),l.Q6J("ngTemplateOutlet",ue)("ngTemplateOutletContext",l.DdM(20,B)),l.xp6(),l.Q6J("lg_w",6)("sm_w",12),l.xp6(),l.Q6J("ngTemplateOutlet",ue)("ngTemplateOutletContext",l.DdM(21,ae)),l.xp6(),l.Q6J("lg_w",3)("sm_w",3),l.xp6(),l.Q6J("ngTemplateOutlet",ue)("ngTemplateOutletContext",l.DdM(22,J)),l.xp6(),l.Q6J("lg_w",3)("sm_w",3),l.xp6(),l.Q6J("ngTemplateOutlet",ue)("ngTemplateOutletContext",l.DdM(23,q)),l.xp6(),l.Q6J("lg_w",6)("sm_w",6),l.xp6(),l.Q6J("ngIf",$.memoAttributesAvailable)}}function Y(ne,ee){if(1&ne&&l._UZ(0,"imx-form-control",7),2&ne){const $=ee.$implicit,ue=l.oxw();l.Q6J("field",ue.formHandler.formConfiguration.findFormFieldById($))("control",ue.formHandler.formGroup.get($))("form",ue.formHandler.formGroup.get($))("formHandler",ue.formHandler)("config",ue.formHandler.formConfiguration)}}let K=(()=>{class ne extends s.O{constructor($){super(),this.memoAttributeOptionProvider=$,this.id="MEMO_FILTER",this.titleKey="imxplatform.common-entity.filter.memoFilter.name",this.icon="icon-bubble",this.memoAttributesAvailable=!1,this.filterFields=["withMemo","memoUserId","memoFromDate","memoToDate","withMemoAttributeId","withoutMemoAttributeId"]}ngOnInit(){super.ngOnInit(),this.memoAttributeOptionProvider.getOptions(null,null).pipe((0,e.q)(1)).subscribe($=>{$&&$.length>0&&(this.memoAttributesAvailable=!0)})}static#e=this.\u0275fac=function(ue){return new(ue||ne)(l.Y36(n.b))};static#t=this.\u0275cmp=l.Xpm({type:ne,selectors:[["imx-memo-filter-panel"]],hostAttrs:[1,"imx-memo-filter-panel"],features:[l._Bn([(0,s.T)(ne)]),l.qOj],decls:3,vars:1,consts:[[3,"formGroup",4,"ngIf"],["imxControl",""],[3,"formGroup"],[1,"filter__card"],[3,"lg_w","sm_w"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],[3,"field","control","form","formHandler","config"]],template:function(ue,ge){1&ue&&l.YNc(0,j,13,24,"form",0)(1,Y,1,5,"ng-template",null,1,l.W1O),2&ue&&l.Q6J("ngIf",ge.panelShown)},dependencies:[i.O5,i.tP,t._Y,t.JL,t.sg,p.M,c.V,o.A],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}"]})}return ne})()},96742:(gt,X,a)=>{"use strict";a.d(X,{H:()=>l});var e=a(42582),n=a(15198),s=a(19212);let l=(()=>{class i extends n.O{constructor(p,c){super(),this.vc=p,this.metainfoFormPanelProviderRegistry=c}ngOnChanges(p){p.record&&this.dynamicComponentInstance&&(this.dynamicComponentInstance.ngOnChanges(p),setTimeout(()=>{this.includeFilter=this.dynamicComponentInstance.handleIncomingValues(this.formHandler),this.loaded$.next(!0)},10))}ngOnInit(){this.vc.clear(),this.publishClass=this.moduleKey;const p=this.metainfoFormPanelProviderRegistry.getFilterPanelComponent(this.moduleKey);if(p){const c=this.vc.createComponent(p);this.dynamicComponentInstance=c.instance,Object.assign(this.dynamicComponentInstance,{parentForm:this.parentForm,record:this.record,formHandler:this.formHandler,moduleKey:this.moduleKey}),this.filterFields=this.dynamicComponentInstance.getFilterFields(),this.id=this.dynamicComponentInstance.id,this.titleKey=c.instance.titleKey,this.icon=c.instance.icon,setTimeout(()=>{this.includeFilter=this.dynamicComponentInstance.handleIncomingValues(this.formHandler),this.loaded$.next(!0)},10)}}setPanelShown(p){super.setPanelShown(p),this.dynamicComponentInstance.setPanelShown(p),this.dynamicComponentInstance.includeFilter=p}onPanelShown(){this.dynamicComponentInstance.onPanelShown()}onReset(){this.dynamicComponentInstance.onReset()}modifyFormValues(p){this.dynamicComponentInstance.modifyFormValues(p)}getModifiedFieldsCount(){return this.dynamicComponentInstance.getModifiedFieldsCount()}getFilterFields(){return this.dynamicComponentInstance.getFilterFields()}isChangedSinceLastCommit(){return this._isChangedSinceLastCommit||this.dynamicComponentInstance.isChangedSinceLastCommit()}setIsChangedSinceLastCommit(p){super.setIsChangedSinceLastCommit(p),this.dynamicComponentInstance.setIsChangedSinceLastCommit(p)}static#e=this.\u0275fac=function(c){return new(c||i)(s.Y36(s.s_b),s.Y36(e.RH))};static#t=this.\u0275cmp=s.Xpm({type:i,selectors:[["imx-dynamic-module-filter-panel"]],hostVars:2,hostBindings:function(c,o){2&c&&s.Tol(o.publishClass)},inputs:{moduleKey:"moduleKey"},features:[s._Bn([(0,n.T)(i)]),s.qOj,s.TTD],decls:0,vars:0,template:function(c,o){},encapsulation:2})}return i})()},86838:(gt,X,a)=>{"use strict";a.d(X,{x:()=>O});var e=a(15646),s=a(83416),l=a(41621),i=a(35617),t=a(15198),p=a(19212),c=a(96814),o=a(56223),x=a(87466),u=a(37012),m=a(12),b=a(71365);const I=["tree"];function H(P,G){if(1&P&&(p.TgZ(0,"form",1)(1,"div",2)(2,"div",3)(3,"imx-grid")(4,"imx-grid-element",4),p._UZ(5,"imx-base-tree",5,6),p.qZA(),p.TgZ(7,"imx-grid-element",7)(8,"mat-radio-group",8)(9,"mat-radio-button",9,10),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.TgZ(13,"mat-radio-button",11,12),p._uU(15),p.ALo(16,"translate"),p.qZA(),p.TgZ(17,"mat-radio-button",13,12),p._uU(19),p.ALo(20,"translate"),p.qZA()()()()()()()),2&P){const B=p.oxw();p.Q6J("formGroup",B.parentForm),p.xp6(4),p.Q6J("lg_w",6)("sm_w",12),p.xp6(),p.Q6J("displayNodeFn",B.displayFn)("sortNodesFn",B.sortFnForPl)("availableItems",B.allProductlines)("tooltipFn",B.tooltipFn)("disabledIds",B.disabledIds),p.xp6(2),p.Q6J("lg_w",6)("sm_w",12),p.xp6(2),p.Q6J("value",B.productlineSearchOption.ALLPL),p.xp6(2),p.hij(" ",p.lcZ(12,16,"imxplatform.common-entity.filter.plFilter.allOption")," "),p.xp6(2),p.Q6J("value",B.productlineSearchOption.ATLEASTONEPL),p.xp6(2),p.hij(" ",p.lcZ(16,18,"imxplatform.common-entity.filter.plFilter.atLeastOneOption")," "),p.xp6(2),p.Q6J("value",B.productlineSearchOption.NOTPL),p.xp6(2),p.hij(" ",p.lcZ(20,20,"imxplatform.common-entity.filter.plFilter.notPL")," ")}}let O=(()=>{class P extends t.O{constructor(){super(),this.id="PL_FILTER",this.titleKey="imxplatform.common-entity.filter.plFilter.name",this.icon="icon-module",this.allProductlines=[],this.disabledIds=[],this.productlineSearchOption=s.FD,this.filterFields=["productlineSearchOption","productlineIds"]}handleIncomingValues(B){return void 0!==this.record.productlineIds_fixed&&(this.disabledIds=this.record.productlineIds_fixed.split(",").map(ae=>Number.parseInt(ae,10)),this.disabledIds.length>0&&this.formHandler.formGroup.get("productlineSearchOption").disable({onlySelf:!0,emitEvent:!1})),super.handleIncomingValues(B)}onReset(){this.parentForm.controls.productlineIds.setValue([])}onPanelShown(){super.onPanelShown(),this.loadProductlines()}loadProductlines(){this.availableProductlines?0===this.allProductlines.length&&this.availableProductlines.subscribe(B=>{const ae=B.filter(J=>null==J.parent||!B.some(q=>q.id===J.parent.id)).map(J=>e(J));ae.forEach(J=>this.cleanupChildren(J,B)),this.allProductlines=ae}):this.logger.warn(" no availableProductlines passed!")}cleanupChildren(B,ae){B.children&&(B.children=B.children.filter(J=>ae.some(q=>q.id===J.id)),B.children.forEach(J=>this.cleanupChildren(J,ae)))}displayFn(B){return B?B.i18nName:void 0}sortFnForPl(B,ae,J){return(0,l.Qi)(B.i18nName,ae.i18nName,J)}tooltipFn(B){return B?B.id.toString()+" "+B.plKey.toString():void 0}static#e=this.\u0275fac=function(ae){return new(ae||P)};static#t=this.\u0275cmp=p.Xpm({type:P,selectors:[["imx-productline-filter-panel"]],viewQuery:function(ae,J){if(1&ae&&p.Gf(I,5),2&ae){let q;p.iGM(q=p.CRH())&&(J.tree=q.first)}},hostAttrs:[1,"imx-productline-filter-panel"],inputs:{availableProductlines:"availableProductlines"},features:[p._Bn([(0,t.T)(P)]),p.qOj],decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"filter__card"],[1,"tree_area"],[1,"tree_filter_panel",3,"lg_w","sm_w"],["formControlName","productlineIds",3,"displayNodeFn","sortNodesFn","availableItems","tooltipFn","disabledIds"],["tree",""],[3,"lg_w","sm_w"],["formControlName","productlineSearchOption",1,"radio-group","small"],["id","allPL","name","allPL",3,"value"],["exactSearch",""],["id","atLeastOnePL","name","atLeastOnePL",3,"value"],["andSearch",""],["id","notPL","name","notPL",3,"value"]],template:function(ae,J){1&ae&&p.YNc(0,H,21,22,"form",0),2&ae&&p.Q6J("ngIf",J.panelShown)},dependencies:[c.O5,o._Y,o.JJ,o.JL,x.VQ,x.U0,o.sg,o.u,u.M,m.V,i.Q,b.X$],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}  mat-tree .tree__node .leaf{padding-left:24px}  mat-tree .mat-nested-tree-node ul{padding-left:22px}  mat-tree .mat-nested-tree-node .mat-icon{line-height:20px}  mat-tree .mat-nested-tree-node .material-icons{font-size:18px;color:#0a2663}  mat-tree .mat-tree-node.tree__node{min-height:18px;color:#0a2663}  mat-tree .mat-mdc-icon-button{width:24px;height:24px;line-height:20px;padding:0}.tree-invisible[_ngcontent-%COMP%]{display:none}.tree[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%], .tree[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}  .radio-group{display:flex;flex-direction:column}"]})}return P})()},4595:(gt,X,a)=>{"use strict";a.d(X,{s:()=>et});var e=a(49193),n=a(15604),s=a(15198),l=a(21473),i=a(19212),t=a(96814),p=a(56223),c=a(37012),o=a(12),x=a(10001),u=a(28907),m=a(71365);function b(Et,lt){if(1&Et&&i._UZ(0,"imx-form-control",6),2&Et){const Vt=i.oxw(2);i.Q6J("field",Vt.formHandler.formConfiguration.findFormFieldById("contentScore"))("control",Vt.formHandler.formGroup.get("contentScore"))("form",Vt.formHandler.formGroup.get("contentScore"))("formHandler",Vt.formHandler)("config",Vt.formHandler.formConfiguration)}}function I(Et,lt){1&Et&&i.GkF(0)}const H=()=>({$implicit:"imagesAvailable"});function O(Et,lt){if(1&Et&&(i.ynx(0),i.YNc(1,I,1,0,"ng-container",12),i.BQk()),2&Et){i.oxw(2);const Vt=i.MAs(2);i.xp6(),i.Q6J("ngTemplateOutlet",Vt)("ngTemplateOutletContext",i.DdM(2,H))}}function P(Et,lt){1&Et&&i.GkF(0)}const G=()=>({$implicit:"mediaCopyrightAvailable"});function B(Et,lt){if(1&Et&&(i.ynx(0),i.YNc(1,P,1,0,"ng-container",12),i.BQk()),2&Et){i.oxw(2);const Vt=i.MAs(2);i.xp6(),i.Q6J("ngTemplateOutlet",Vt)("ngTemplateOutletContext",i.DdM(2,G))}}function ae(Et,lt){1&Et&&i.GkF(0)}const J=()=>({$implicit:"longDescAvailable"});function q(Et,lt){if(1&Et&&(i.ynx(0),i.YNc(1,ae,1,0,"ng-container",12),i.BQk()),2&Et){i.oxw(2);const Vt=i.MAs(2);i.xp6(),i.Q6J("ngTemplateOutlet",Vt)("ngTemplateOutletContext",i.DdM(2,J))}}function j(Et,lt){1&Et&&i.GkF(0)}const Y=()=>({$implicit:"openingHoursAvailable"});function K(Et,lt){if(1&Et&&(i.ynx(0),i.YNc(1,j,1,0,"ng-container",12),i.BQk()),2&Et){i.oxw(2);const Vt=i.MAs(2);i.xp6(),i.Q6J("ngTemplateOutlet",Vt)("ngTemplateOutletContext",i.DdM(2,Y))}}function ne(Et,lt){if(1&Et&&(i.TgZ(0,"imx-grid-element",13)(1,"div",14),i._UZ(2,"imx-checkbox-select",15),i.qZA()()),2&Et){const Vt=i.oxw(2);i.Q6J("lg_w",6)("sm_w",12),i.xp6(2),i.Q6J("field",Vt.formHandler.formConfiguration.findFormFieldById("integrityClassification"))("control",Vt.formHandler.formGroup.get("integrityClassification"))("form",Vt.formHandler.formGroup)("formHandler",Vt.formHandler)("optionProvider",Vt.integrityClassifications)("rowLayout",!1)("showLine",!1)}}function ee(Et,lt){if(1&Et&&(i.TgZ(0,"imx-grid-element",13)(1,"div",14),i._UZ(2,"imx-checkbox-select",15),i.qZA()()),2&Et){const Vt=i.oxw(2);i.Q6J("lg_w",6)("sm_w",12),i.xp6(2),i.Q6J("field",Vt.formHandler.formConfiguration.findFormFieldById("reliabilityClassification"))("control",Vt.formHandler.formGroup.get("reliabilityClassification"))("form",Vt.formHandler.formGroup)("formHandler",Vt.formHandler)("optionProvider",Vt.reliabilityClassifications)("rowLayout",!1)("showLine",!1)}}function $(Et,lt){if(1&Et&&(i.TgZ(0,"imx-grid-element",13)(1,"div",14),i._UZ(2,"imx-form-control",6),i.qZA()()),2&Et){const Vt=i.oxw(2);i.Q6J("lg_w",6)("sm_w",12),i.xp6(2),i.Q6J("field",Vt.formHandler.formConfiguration.findFormFieldById("opendata"))("control",Vt.formHandler.formGroup.get("opendata"))("form",Vt.formHandler.formGroup.get("opendata"))("formHandler",Vt.formHandler)("config",Vt.formHandler.formConfiguration)}}function ue(Et,lt){1&Et&&i.GkF(0)}const ge=()=>({$implicit:"mediaLicense"});function Ke(Et,lt){if(1&Et&&(i.ynx(0),i.TgZ(1,"imx-grid-element",4)(2,"div",16)(3,"div",17)(4,"span"),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.TgZ(7,"div",18),i.YNc(8,ue,1,0,"ng-container",12),i.qZA()()(),i.BQk()),2&Et){i.oxw(2);const Vt=i.MAs(2);i.xp6(),i.Q6J("lg_w",8)("md_w",10)("sm_w",12)("ty_w",12),i.xp6(4),i.hij(" ",i.lcZ(6,7,"imxplatform.common-entity.filter.qualityFilter.media-license")," "),i.xp6(3),i.Q6J("ngTemplateOutlet",Vt)("ngTemplateOutletContext",i.DdM(9,ge))}}function at(Et,lt){1&Et&&i.GkF(0)}const Le=()=>({$implicit:"imageMediaLicense"});function R(Et,lt){if(1&Et&&(i.ynx(0),i.TgZ(1,"imx-grid-element",4)(2,"div",19)(3,"div")(4,"span"),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.TgZ(7,"div",20),i.YNc(8,at,1,0,"ng-container",12),i.qZA()()(),i.BQk()),2&Et){i.oxw(2);const Vt=i.MAs(2);i.xp6(),i.Q6J("lg_w",8)("md_w",10)("sm_w",12)("ty_w",12),i.xp6(4),i.hij(" ",i.lcZ(6,7,"imxplatform.common-entity.filter.qualityFilter.image-media-license")," "),i.xp6(3),i.Q6J("ngTemplateOutlet",Vt)("ngTemplateOutletContext",i.DdM(9,Le))}}function Te(Et,lt){1&Et&&i.GkF(0)}const me=Et=>({$implicit:Et});function Se(Et,lt){if(1&Et&&i.YNc(0,Te,1,0,"ng-container",12),2&Et){const Vt=lt.$implicit;i.oxw(2);const r=i.MAs(2);i.Q6J("ngTemplateOutlet",r)("ngTemplateOutletContext",i.VKq(2,me,Vt.id))}}function Ue(Et,lt){if(1&Et&&(i.TgZ(0,"form",2)(1,"div",3)(2,"imx-grid")(3,"imx-grid-element",4),i.YNc(4,b,1,5,"imx-form-control",5),i._UZ(5,"imx-form-control",6)(6,"imx-form-control",6),i.TgZ(7,"div",7),i.YNc(8,O,2,3,"ng-container",8)(9,B,2,3,"ng-container",8)(10,q,2,3,"ng-container",8)(11,K,2,3,"ng-container",8),i.qZA()(),i.YNc(12,ne,3,9,"imx-grid-element",9)(13,ee,3,9,"imx-grid-element",9)(14,$,3,7,"imx-grid-element",9)(15,Ke,9,10,"ng-container",8),i.ALo(16,"async"),i.YNc(17,R,9,10,"ng-container",8),i.ALo(18,"async"),i.TgZ(19,"div",10),i.YNc(20,Se,1,4,"ng-template",11),i.qZA()()()()),2&Et){const Vt=i.oxw();i.Q6J("formGroup",Vt.parentForm),i.xp6(3),i.Q6J("lg_w",8)("md_w",10)("sm_w",12)("ty_w",12),i.xp6(),i.Q6J("ngIf",Vt.contentScoreEnabled),i.xp6(),i.Q6J("field",Vt.formHandler.formConfiguration.findFormFieldById("longDescriptionContent"))("control",Vt.formHandler.formGroup.get("longDescriptionContent"))("form",Vt.formHandler.formGroup.get("longDescriptionContent"))("formHandler",Vt.formHandler)("config",Vt.formHandler.formConfiguration),i.xp6(),i.Q6J("field",Vt.formHandler.formConfiguration.findFormFieldById("metaDescriptionContent"))("control",Vt.formHandler.formGroup.get("metaDescriptionContent"))("form",Vt.formHandler.formGroup.get("metaDescriptionContent"))("formHandler",Vt.formHandler)("config",Vt.formHandler.formConfiguration),i.xp6(2),i.Q6J("ngIf",Vt.formHandler.formConfiguration.findFormFieldById("imagesAvailable")),i.xp6(),i.Q6J("ngIf",Vt.formHandler.formConfiguration.findFormFieldById("mediaCopyrightAvailable")),i.xp6(),i.Q6J("ngIf",Vt.formHandler.formConfiguration.findFormFieldById("longDescAvailable")),i.xp6(),i.Q6J("ngIf",Vt.formHandler.formConfiguration.findFormFieldById("openingHoursAvailable")),i.xp6(),i.Q6J("ngIf",Vt.integrityClassifications.length>0),i.xp6(),i.Q6J("ngIf",Vt.reliabilityClassifications.length>0),i.xp6(),i.Q6J("ngIf",Vt.showOpenDataFilter),i.xp6(),i.Q6J("ngIf",Vt.formHandler.formConfiguration.findFormFieldById("mediaLicense")&&i.lcZ(16,26,Vt.mediaLicenseAvailable$)),i.xp6(2),i.Q6J("ngIf",Vt.formHandler.formConfiguration.findFormFieldById("imageMediaLicense")&&i.lcZ(18,28,Vt.mediaLicenseAvailable$)),i.xp6(3),i.Q6J("ngForOf",Vt.getFieldExtensions("imageMediaLicense"))}}function We(Et,lt){if(1&Et&&i._UZ(0,"imx-form-control",6),2&Et){const Vt=lt.$implicit,r=i.oxw();i.Q6J("field",r.formHandler.formConfiguration.findFormFieldById(Vt))("control",r.formHandler.formGroup.get(Vt))("form",r.formHandler.formGroup)("formHandler",r.formHandler)("config",r.formHandler.formConfiguration)}}let et=(()=>{class Et extends s.O{constructor(Vt,r,Z){super(),this.entitiesMgr=Vt,this.entityCollectionsService=r,this.configurationProvider=Z,this.showOpenDataFilter=!1,this.contentScoreEnabled=!1,this.id="QUALITY_FILTER",this.titleKey="imxplatform.common-entity.filter.qualityFilter.name",this.icon="icon-quality",this.showMetaDescriptionContent=!0,this.integrityClassifications=[],this.reliabilityClassifications=[],this.mediaLicenseAvailable$=(0,e.of)(!1),this.filterFields=["contentScore","contentScoreComparator","imagesAvailable","longDescAvailable","integrityClassification","reliabilityClassification","longDescriptionContent","longDescriptionContentComparator","metaDescriptionContent","metaDescriptionContentComparator","opendata","mediaLicense","imageMediaLicense","mediaCopyrightAvailable","openingHoursAvailable"]}ngOnInit(){super.ngOnInit(),this.mediaLicenseAvailable$=this.entitiesMgr.isBaseEntityAvailable("PrioLevel"),this.contentScoreEnabled=this.configurationProvider.getBooleanFromSnapshot(l.x3.PLATFORM_CONTENT_SCORE_ENABLED),this.entityType&&(this.entityCollectionsService.getAllReliablityClassifications(this.entityType).subscribe(Vt=>{this.reliabilityClassifications=[],Vt.forEach(r=>this.reliabilityClassifications.push({value:r.id,label:r.name}))}),this.entityCollectionsService.getAllIntegrityClassifications(this.entityType).subscribe(Vt=>{this.integrityClassifications=[],Vt.forEach(r=>this.integrityClassifications.push({value:r.id,label:r.name}))})),this.getFieldExtensions("imageMediaLicense").forEach(Vt=>this.filterFields.push(Vt.id))}static#e=this.\u0275fac=function(r){return new(r||Et)(i.Y36(l.qB),i.Y36(n.f),i.Y36(l.Pc))};static#t=this.\u0275cmp=i.Xpm({type:Et,selectors:[["imx-quality-filter-panel"]],hostAttrs:[1,"imx-quality-filter-panel"],inputs:{entityType:"entityType",showOpenDataFilter:"showOpenDataFilter"},features:[i._Bn([(0,s.T)(Et)]),i.qOj],decls:3,vars:1,consts:[[3,"formGroup",4,"ngIf"],["imxControl",""],[3,"formGroup"],[1,"filter__card"],[3,"lg_w","md_w","sm_w","ty_w"],[3,"field","control","form","formHandler","config",4,"ngIf"],[3,"field","control","form","formHandler","config"],[1,"tripleRadio"],[4,"ngIf"],[3,"lg_w","sm_w",4,"ngIf"],[1,"filter__card__content__tripeRadio"],["ngFor","",3,"ngForOf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"lg_w","sm_w"],[1,"classificationwrapper"],[3,"field","control","form","formHandler","optionProvider","rowLayout","showLine"],[1,"mediaLicense-wrapper"],[1,"mediaLicenseLabel"],[1,"mediaLicense"],[1,"imageMediaLicense-wrapper"],[1,"imageMediaLicense"]],template:function(r,Z){1&r&&i.YNc(0,Ue,21,30,"form",0)(1,We,1,5,"ng-template",null,1,i.W1O),2&r&&i.Q6J("ngIf",Z.panelShown)},dependencies:[t.sg,t.O5,t.tP,p._Y,p.JL,p.sg,c.M,o.V,x.r,u.A,t.Ov,m.X$],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}div.classificationwrapper[_ngcontent-%COMP%]{margin-top:10px}[_nghost-%COMP%]     imx-base-triple-radio-button{justify-content:flex-start}[_nghost-%COMP%]     imx-base-triple-radio-button .mat-mdc-radio-group{margin-left:10px}[_nghost-%COMP%]     imx-base-triple-radio-button label:not(.mdc-label){min-width:300px}.tripleRadio[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%]{margin-bottom:0}.mediaLicense-wrapper[_ngcontent-%COMP%]{margin-top:15px;display:flex;justify-content:flex-start}.mediaLicenseLabel[_ngcontent-%COMP%]{min-width:300px}.mediaLicense[_ngcontent-%COMP%]{width:200px;margin-left:15px}.imageMediaLicense[_ngcontent-%COMP%]{width:200px;margin-left:8px}.imageMediaLicense-wrapper[_ngcontent-%COMP%]{margin-top:15px;display:flex;justify-content:flex-start}"]})}return Et})()},7666:(gt,X,a)=>{"use strict";a.d(X,{M:()=>o});var e=a(15198),n=a(19212),s=a(96814),l=a(56223),i=a(37012),t=a(12),p=a(28907);function c(x,u){if(1&x&&(n.TgZ(0,"form",1)(1,"div",2)(2,"imx-grid")(3,"imx-grid-element",3),n._UZ(4,"imx-form-control",4),n.qZA(),n.TgZ(5,"imx-grid-element",3),n._UZ(6,"imx-form-control",4),n.qZA()()()()),2&x){const m=n.oxw();n.Q6J("formGroup",m.parentForm),n.xp6(3),n.Q6J("lg_w",6)("sm_w",12),n.xp6(),n.Q6J("field",m.formHandler.formConfiguration.findFormFieldById("id"))("control",m.formHandler.formGroup.get("id"))("form",m.formHandler.formGroup.get("id"))("formHandler",m.formHandler)("config",m.formHandler.formConfiguration),n.xp6(),n.Q6J("lg_w",6)("sm_w",12),n.xp6(),n.Q6J("field",m.formHandler.formConfiguration.findFormFieldById("identifier"))("control",m.formHandler.formGroup.get("identifier"))("form",m.formHandler.formGroup.get("identifier"))("formHandler",m.formHandler)("config",m.formHandler.formConfiguration)}}let o=(()=>{class x extends e.O{constructor(){super(),this.id="MAIN_FILTER",this.titleKey="imxplatform.common-entity.filter.baseEntityFilter.header",this.icon="icon-cube",this.filterFields=["id","title","identifier"]}static#e=this.\u0275fac=function(b){return new(b||x)};static#t=this.\u0275cmp=n.Xpm({type:x,selectors:[["imx-widget-config-filter-panel"]],hostAttrs:[1,"imx-widget-config-filter-panel"],features:[n._Bn([(0,e.T)(x)]),n.qOj],decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"filter__card"],[3,"lg_w","sm_w"],[3,"field","control","form","formHandler","config"]],template:function(b,I){1&b&&n.YNc(0,c,7,15,"form",0),2&b&&n.Q6J("ngIf",I.panelShown)},dependencies:[s.O5,l._Y,l.JL,l.sg,i.M,t.V,p.A],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}"]})}return x})()},16083:(gt,X,a)=>{"use strict";a.d(X,{F:()=>i});var e=a(19212),n=a(21473),s=a(27556);a(45315);let i=(()=>{class t{constructor(){this.logger=(0,n.jl)("AbstractEntityFilterComponent",s.H.name),this.enableCreateContactListOption=!1,this.applyFilter=new e.vpe,this.resetFilter=new e.vpe,this.orderChanged=new e.vpe,this.clientParams2RequestParamsFn=this.clientParams2RequestParams.bind(this),this.newWidgetDefFn=this.newWidgetDef.bind(this)}ngOnInit(){}paramMap2DataAccessRequestOptions(c){const o={},x=c.get("orderField"),u="DESC"===c.get("orderDirection")?"DESC":"ASC";return null!==x&&(o.sortFields=[{field:x,direction:u}]),o}paramMap2Filter(c){const o={};return c.keys.forEach(x=>{o[x]=c.get(x)}),o}clientParams2RequestParams(c){return{}}newWidgetDef(c,o,x){}static#e=this.\u0275fac=function(o){return new(o||t)};static#t=this.\u0275dir=e.lG2({type:t,inputs:{formHandler:"formHandler",record:"record",orderFields:"orderFields",orderField:"orderField",orderDirection:"orderDirection",enableCreateContactListOption:"enableCreateContactListOption"},outputs:{applyFilter:"applyFilter",resetFilter:"resetFilter",orderChanged:"orderChanged"}})}return t})()},27416:(gt,X,a)=>{"use strict";a.d(X,{z:()=>Li});var e=a(19212),n=a(21473),s=a(79309),l=a(15646),t=a(12650),c=a(45125),o=a(49193),x=a(51418),u=a(62413),m=a(96124),b=a(17927),I=a(21959),H=a(27556),O=a(39693),P=a(22819),G=a(9512),B=a(59143),ae=a(43040),J=a(49032),q=a(94699),j=a(1823),Y=a(33946),K=a(94366),ne=a(83397),ee=a(15198),$=a(30342),ue=a(17700),ge=a(22941),Ke=a(91145),at=a(96814),Le=a(56223),R=a(74961),Te=a(6128),me=a(36681),Se=a(51793),Ue=a(37012),We=a(12),et=a(35475),Et=a(22415),lt=a(59626),Vt=a(71365);const r=["scrollbar"],Z=["filterTabs"],Pt=["filterButtons"],Oe=["filterHeader"];function ye(ji,Ii){if(1&ji){const _i=e.EpF();e.TgZ(0,"div",24),e.NdJ("click",function(){e.CHM(_i);const co=e.oxw();return e.KtG(co.scroll("left"))}),e._UZ(1,"span",25),e.qZA()}}function ve(ji,Ii){if(1&ji){const _i=e.EpF();e.TgZ(0,"imx-filter-header",26),e.NdJ("closeClick",function(){const yn=e.CHM(_i).$implicit,ln=e.oxw();return ln.removeFilterContent(yn.id),e.KtG(ln.resetFilter(yn.id))})("headerClick",function(){const yn=e.CHM(_i).$implicit,ln=e.oxw();return e.KtG(ln.toggleFilterContent(yn.id))}),e.qZA()}if(2&ji){const _i=Ii.$implicit,En=e.oxw();e.Q6J("panel",_i)("opened",En.isShownFilterContent(_i.id))}}function ft(ji,Ii){if(1&ji){const _i=e.EpF();e.TgZ(0,"div",27),e.NdJ("click",function(){e.CHM(_i);const co=e.oxw();return e.KtG(co.scroll("right"))}),e._UZ(1,"span",28),e.qZA()}}const Dt=ji=>({initial:ji});function Rn(ji,Ii){if(1&ji&&(e.TgZ(0,"imx-tooltip",31),e.ALo(1,"translate"),e.TgZ(2,"div",32),e._UZ(3,"span",33),e.qZA()()),2&ji){const _i=e.oxw(2);e.Q6J("tooltipText",e.lcZ(1,2,"imxplatform.common-entity.filter.add-tooltip")),e.xp6(2),e.Q6J("ngClass",e.VKq(4,Dt,!_i.anyFilterShown))}}function ti(ji,Ii){if(1&ji){const _i=e.EpF();e.TgZ(0,"imx-action-menu-item",35),e.NdJ("actionClicked",function(){e.CHM(_i);const co=e.oxw().$implicit,yn=e.oxw(2);return e.KtG(yn.initializeFilter(co.id))}),e._uU(1),e.qZA()}if(2&ji){const _i=e.oxw().$implicit;e.Q6J("icon",_i.icon),e.xp6(),e.hij(" ",_i.titleKey," ")}}function Xt(ji,Ii){1&ji&&e.YNc(0,ti,2,2,"imx-action-menu-item",34),2&ji&&e.Q6J("ngIf",!Ii.$implicit.includeFilter)}function Je(ji,Ii){if(1&ji&&(e.TgZ(0,"imx-dropup-button",29),e.YNc(1,Rn,4,6,"ng-template",30),e.TgZ(2,"imx-action-menu"),e.YNc(3,Xt,1,1,"ng-template",13),e.qZA()()),2&ji){const _i=e.oxw();e.xp6(3),e.Q6J("ngForOf",_i.allFilterPanels)}}function dt(ji,Ii){1&ji&&e._UZ(0,"span",38)}function Ie(ji,Ii){if(1&ji){const _i=e.EpF();e.TgZ(0,"button",36),e.NdJ("click",function(){e.CHM(_i);const co=e.oxw();return co.hideFilterContent(),e.KtG(co.submit())}),e._uU(1),e.ALo(2,"translate"),e.YNc(3,dt,1,0,"span",37),e.qZA()}if(2&ji){const _i=e.oxw();e.xp6(),e.hij(" ",e.lcZ(2,2,"imxplatform.common-entity.filter.apply")," "),e.xp6(2),e.Q6J("ngIf",_i.formHandler.formGroup.dirty)}}function ot(ji,Ii){if(1&ji&&(e.TgZ(0,"imx-tooltip",39)(1,"div",40),e._UZ(2,"span",41),e.qZA()()),2&ji){const _i=e.oxw(2);e.Q6J("tooltipText","Suche speichern"),e.xp6(),e.Q6J("ngClass",e.VKq(2,Dt,!_i.anyFilterShown))}}function ct(ji,Ii){if(1&ji){const _i=e.EpF();e.TgZ(0,"imx-action-menu-item",35),e.NdJ("actionClicked",function(){e.CHM(_i);const co=e.oxw(2);return e.KtG(co.openCreateSearchListDialog())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&ji&&(e.Q6J("icon","icon-star--new"),e.xp6(),e.hij(" ",e.lcZ(2,2,"imxplatform.common-entity.filter.create-search-list")," "))}function tn(ji,Ii){if(1&ji){const _i=e.EpF();e.TgZ(0,"imx-action-menu-item",35),e.NdJ("actionClicked",function(){e.CHM(_i);const co=e.oxw(2);return e.KtG(co.openCreateContactListDialog())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&ji&&(e.Q6J("icon","icon-reference-list"),e.xp6(),e.hij(" ",e.lcZ(2,2,"imxplatform.common-entity.filter.create-contact-list")," "))}function yi(ji,Ii){if(1&ji){const _i=e.EpF();e.TgZ(0,"imx-action-menu-item",35),e.NdJ("actionClicked",function(){e.CHM(_i);const co=e.oxw(3);return e.KtG(co.openCreateDashboardWidgetDialog())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&ji&&(e.Q6J("icon","icon-home"),e.xp6(),e.hij(" ",e.lcZ(2,2,"imxplatform.common-entity.filter.add-to-dashboard")," "))}function ni(ji,Ii){if(1&ji&&(e.ynx(0),e.YNc(1,yi,3,4,"imx-action-menu-item",42),e.BQk()),2&ji){const _i=e.oxw(2);e.xp6(),e.Q6J("hasAnyPermission",_i.hasDashboardOwnPermissionStr)}}function sn(ji,Ii){if(1&ji&&(e.TgZ(0,"imx-dropup-button",29),e.YNc(1,ot,3,4,"ng-template",30),e.TgZ(2,"imx-action-menu"),e.YNc(3,ct,3,4,"imx-action-menu-item",34)(4,tn,3,4,"imx-action-menu-item",34),e.ALo(5,"async"),e.YNc(6,ni,2,1,"ng-container",19),e.qZA()()),2&ji){const _i=e.oxw();e.xp6(3),e.Q6J("ngIf",_i.enableSearchListOption),e.xp6(),e.Q6J("ngIf",e.lcZ(5,3,_i.enableCreateContactListOption&&_i.contactListsEnabled$)),e.xp6(2),e.Q6J("ngIf",_i.newWidgetDefFn)}}function bn(ji,Ii){1&ji&&(e.TgZ(0,"imx-tooltip",39)(1,"div",45),e._UZ(2,"span",46),e.qZA()()),2&ji&&e.Q6J("tooltipText","imxplatform.common-entity.filter.search-lists")}function vt(ji,Ii){if(1&ji){const _i=e.EpF();e.TgZ(0,"imx-action-menu-item",47),e.NdJ("actionClicked",function(){const yn=e.CHM(_i).$implicit,ln=e.oxw(3);return e.KtG(ln.navigate(yn))}),e._uU(1),e.qZA()}if(2&ji){const _i=Ii.$implicit;e.Q6J("icon","icon-"+_i.icon)("additionalStyle",_i.visited?"matches-current":void 0),e.xp6(),e.hij(" ",_i.label," ")}}function nn(ji,Ii){if(1&ji&&(e.TgZ(0,"imx-dropup-button",29),e.YNc(1,bn,3,1,"ng-template",30),e.TgZ(2,"imx-action-menu",43),e.YNc(3,vt,2,3,"imx-action-menu-item",44),e.qZA()()),2&ji){const _i=e.oxw(2);e.xp6(3),e.Q6J("ngForOf",_i.searchLists)}}function rn(ji,Ii){if(1&ji&&(e.ynx(0),e.YNc(1,nn,4,1,"imx-dropup-button",17),e.ALo(2,"async"),e.BQk()),2&ji){const _i=e.oxw();e.xp6(),e.Q6J("ngIf",e.lcZ(2,1,_i.searchListChanged$))}}function ii(ji,Ii){1&ji&&e.GkF(0)}const Oo=ji=>({closed:ji}),no=ji=>({shownFilterContent:ji});let Li=(()=>{class ji extends $.N{constructor(_i,En,co,yn,ln,He,rt,$e,Ve,Ce,tt,ht){super(yn),this.entitiesMgr=_i,this.platformDataAccessService=En,this.entityListsDataAccessService=co,this.dialog=ln,this.router=He,this.configurationProvider=rt,this.runtimeContextService=$e,this.dashboardDataAccessService=Ve,this.contactListService=Ce,this.entityListNavigateService=tt,this.changeDetectorRef=ht,this.logger=(0,n.jl)("FilterComponent",H.H.name),this.enableSearchListOption=!1,this.enableCreateContactListOption=!1,this.hideApplyBtn=!1,this.NONE="NONE",this.anyFilterShown=!1,this.plusButtonShown=!0,this.scrollbarLeftShown=!1,this.scrollbarRightShown=!1,this.searchListChanged$=new c.X(!1),this.filterTabIndex=new Map,this.scrollPosition=1,this.scrollbarShown=!1,this.scrolledToEnd=!1,this.orderChanged=new e.vpe,this.hasDashboardOwnPermissionStr=n.uo.F_DASHBOARD_OWN.name,this.contactListsEnabled$=(0,o.of)(!1)}ngOnInit(){this.contactListsEnabled$=this.configurationProvider.getBoolean(n.x3.PLATFORM_CONTACTLISTS_ENABLED,!1),this.record.navigated&&(this.defaultQueryParamsFromNavigation=this.record,delete this.defaultQueryParamsFromNavigation.navigated),this.initSearchLists(),this.fillAnyFilterShown()}ngAfterViewInit(){this.allFilterTabs.changes.subscribe(_i=>{let En=1;_i.forEach(co=>{this.filterTabIndex.set(En++,co)}),this.initScrollbar()}),setTimeout(()=>{this.initPlusButtonState()},1)}ngOnChanges(_i){_i.record&&(this.formHandler.baseObject=_i.record.currentValue,this.allFilterPanels&&this.allFilterPanels.forEach(En=>En.setPanelShown(!1)),setTimeout(()=>{this.initScrollbar()},200),this.markCurrentlyVisitedSearchList())}onOrderChanged(_i){this.hideFilterContent(),this.orderChanged.emit(_i)}openCreateSearchListDialog(){this.dialog.open(j.oh,{...Y.D.FORM_BIG,data:{entityType:this.entityName,filterFormHandler:this.formHandler,proposal:this.searchListNameProposal}}).afterClosed().subscribe(_i=>{if(_i&&_i.searchListName){let En=this.router.url.substring(1);_i.useRelativeDate&&_i.relativeDateParams&&_i.relativeDateParams.forEach((yn,ln)=>{En=En.replace(ln,yn)}),this.platformDataAccessService.createEntityList({name:_i.searchListName,entityType:this.entityName,listType:s.E6.SEARCH_LIST,listInfo:En}).pipe((0,x.q)(1),(0,u.K)(yn=>(this.logger.error("Error while creating SearchList",yn),this.userMessageService.showError("imxplatform.entity-list.search-list.create-dialog.failure"),(0,o.of)()))).subscribe(yn=>{this.entityListsDataAccessService.upsertEntityLists(yn),this.initSearchLists()})}})}openCreateContactListDialog(){const _i=l(this.record);(0,n.T7)().forEach(En=>delete _i[En]),0===Object.keys(_i).length?this.dialog.open(K.f,{...Y.D.CONFIRM,data:{text:"imxplatform.common-entity.filter.no-empty-lef-list-allowed"}}).afterClosed().subscribe():this.dialog.open(J.E,{...Y.D.FORM_MEDIUM,data:{entityType:this.entityName,filterFormHandler:this.formHandler}}).afterClosed().subscribe(En=>{if(En){let co=this.router.url.substring(1);En.useRelativeDate&&En.relativeDateParams&&En.relativeDateParams.forEach((ln,He)=>{co=co.replace(He,ln)}),this.contactListService.pushContactList(En.referenceOwner.type,En.referenceOwner.id,{name:En.searchListName,entityType:this.entityName,listType:s.E6.CONTACT_LIST,listInfo:"",listInfoClient:co,existingContactListId:En.existingContactListId}),this.router.navigate(["/"+En.referenceOwner.link],{fragment:"references"})}})}openCreateDashboardWidgetDialog(){this.clientParams2RequestParamsFn&&this.newWidgetDefFn&&this.dialog.open(q.$,{maxWidth:650}).afterClosed().subscribe(En=>{if(En){const co=this.router.parseUrl(this.router.url).queryParamMap,yn=this.clientParams2RequestParamsFn(co),ln=this.requestParams2ParamString(yn),He=this.router.url.substring(1);this.dashboardDataAccessService.loadDashboardWidgets$().subscribe(rt=>{rt.push(this.newWidgetDefFn(En,ln,He)),this.dashboardDataAccessService.saveDashboard$(rt).pipe((0,x.q)(1),(0,u.K)($e=>(this.logger.error("Error while creating Dashboard",$e),this.userMessageService.showError("imxplatform.dashboard.create-widget-dialog.failure"),(0,o.of)()))).subscribe()})}})}navigate(_i){this.entityListNavigateService.navigateToEntityList(_i)}requestParams2ParamString(_i){return Object.keys(_i).map(co=>{const yn=_i[co];let ln=co+"=";return Array.isArray(yn)?ln+=yn.join("&"+co+"="):ln+=_i[co],ln}).join("&")}clientParams2RequestParams(_i){return{}}newWidgetDef(_i,En,co){}extractQueryParamsAsString(){const _i=this.formHandler.getBaseObjectCopyWithCurrentFormValues();return Object.keys(_i).map(En=>En+"="+_i[En]).join("&")}getTabsSize(){let _i=0;return this.filterTabIndex.forEach(En=>_i+=En.nativeElement.offsetWidth),_i}getTabOffset(_i){return _i>1?this.filterTabIndex.get(_i-1).nativeElement.offsetWidth+this.getTabOffset(_i-1):0}getTabWidthOfFirst(){for(const _i of Array.from(this.filterTabIndex.values()))if(_i.nativeElement.offsetWidth>0)return _i.nativeElement.offsetWidth;return 100}onResize(){this.initScrollbar()}initPlusButtonState(){this.plusButtonShown=this.allFilterPanels.some(_i=>!_i.includeFilter)}initScrollbar(){const _i=this.filterHeader.nativeElement.offsetWidth-this.filterButtons.nativeElement.offsetWidth;this.scrollbar.nativeElement.style.maxWidth=_i+"px",this.getTabsSize()>=_i?this.scrollbarShown=!0:(this.scrollbarShown=!1,this.resetScrollStatus()),this.initScrollButtons()}initScrollButtons(){this.scrollbarLeftShown=this.scrollbarShown&&this.scrollPosition>1,this.scrollbarRightShown=this.scrollbarShown&&this.openFilterTabsCount()>this.scrollPosition&&!this.scrolledToEnd}scroll(_i){if(this.scrolledToEnd=!1,"right"===_i){if(this.scrollPosition<this.openFilterTabsCount()){this.scrollPosition+=1;let En=this.getTabOffset(this.scrollPosition);this.getTabsSize()-En<this.scrollbar.nativeElement.offsetWidth&&(En=this.getTabsSize()-this.scrollbar.nativeElement.offsetWidth,this.scrolledToEnd=!0),this.filterTabs.nativeElement.style.marginLeft="-"+En+"px"}}else if(this.scrollPosition>1){this.scrollPosition-=1;const En=this.getTabOffset(this.scrollPosition);this.filterTabs.nativeElement.style.marginLeft=En>0?"-"+En+"px":"0px"}this.initScrollButtons()}resetScrollStatus(){this.scrollPosition=1,this.scrolledToEnd=!1,this.filterTabs&&(this.filterTabs.nativeElement.style.marginLeft="0px")}beforeSubmit(_i){this.formHandler.formConfiguration.fields.forEach(En=>{const co=this.formHandler.formConfiguration.findFormFieldById(En.id);if(co){const yn=co.initialValue;void 0!==yn&&_i[En.id]===yn&&(_i[En.id]=null)}}),_i.filterPredicates&&delete _i.filterPredicates,_i.sortPredicates&&delete _i.sortPredicates,this.formHandler instanceof G.d&&this.formHandler.extendFilter(_i,!1),_i.adjusted=!0,delete _i.navigated,this.allFilterPanels.forEach(En=>En.beforeSubmit(_i))}resetFilter(_i){for(const En of this.getFilterPanel(_i).getFilterFields())if(this.formHandler.formGroup.controls[En]&&void 0!==this.formHandler.formGroup.controls[En].value){const co=this.formHandler.formConfiguration.findFormFieldById(En);this.formHandler.formGroup.controls[En].patchValue(co?co.initialValue:void 0),this.formHandler.formGroup.controls[En].markAsDirty()}this.getFilterPanel(_i).reset(),this.initPlusButtonState()}removeFilterContent(_i){this.getFilterPanel(_i).setPanelShown(!1),this.shownFilterContent=void 0,this.resetScrollStatus(),setTimeout(()=>{this.initScrollbar()},0)}initializeFilter(_i){this.getFilterPanel(_i).includeFilter=!0,this.initNewFilterContent(_i),this.initPlusButtonState(),setTimeout(()=>{this.initScrollbar(),this.scroll("right")},0)}toggleFilterContent(_i){this.shownFilterContent&&this.shownFilterContent!==this.NONE&&this.getFilterPanel(this.shownFilterContent).setPanelShown(!1),this.shownFilterContent===_i?this.shownFilterContent=void 0:(this.shownFilterContent=_i,this.getFilterPanel(_i).setPanelShown(!0))}initNewFilterContent(_i){this.allFilterPanels.forEach(En=>En.setPanelShown(!1)),this.shownFilterContent=_i,_i&&this.getFilterPanel(_i).setPanelShown(!0)}hideFilterContent(){this.allFilterPanels.forEach(_i=>_i.setPanelShown(!1)),this.shownFilterContent=this.NONE}isShownFilterContent(_i){return _i===this.shownFilterContent}anyFilterContentShown(){return void 0!==this.shownFilterContent&&this.shownFilterContent!==this.NONE}getFilterPanel(_i){const En=this.allFilterPanels.find(co=>co.id===_i);if(void 0===En)throw new Error("no AbstractFilterPanelComponent found with id "+_i);return En}openFilterTabsCount(){let _i=0;return this.allFilterPanels&&this.allFilterPanels.forEach(En=>{En.includeFilter&&_i++}),_i}fillAnyFilterShown(){this.anyFilterShown=!!this.allFilterPanels&&this.allFilterPanels.some(_i=>_i.includeFilter)}initSearchLists(){this.entityListsDataAccessService.forceReload(),this.entityListsDataAccessService.searchLists$().pipe((0,m.U)(_i=>_i.filter(En=>En.entity.entityType===this.entityName)),(0,b.b)(_i=>this.prependDefaultFilterFromProfile(_i)),(0,m.U)(_i=>_i.map(En=>({...En,visited:!1}))),(0,b.b)(_i=>_i.forEach(En=>{"UniversalSearchItem"===En.entity.entityType&&(En.icon="star--list")}))).subscribe(_i=>{this.searchLists=_i,this.markCurrentlyVisitedSearchList()})}markCurrentlyVisitedSearchList(){if(this.searchLists){const _i=l(this.record);delete _i.navigated,this.searchLists.forEach(En=>En.visited=t(_i,En.queryParams)),this.searchListChanged$.next(!1),setTimeout(()=>{this.searchListChanged$.next(!0)},10)}}prependDefaultFilterFromProfile(_i){let En;this.defaultQueryParamsFromNavigation?En=this.defaultQueryParamsFromNavigation:this.entityListNavigateService&&(En=this.entityListNavigateService.getDefaultQueryParamsForRoute(this.router.url.split("?")[0],this.runtimeContextService.getCurrentUserProfile())),"UniversalSearchItem"!==this.entityName&&_i.unshift({entity:{entityType:this.entityName,listInfo:""},queryParams:En,label:"imxplatform.common-entity.filter.default-filter",link:[this.router.url.split("?")[0]],icon:"Event"!==this.entityName?"entityType-"+this.entityName:"calendar-full"})}static#e=this.\u0275fac=function(En){return new(En||ji)(e.Y36(n.qB),e.Y36(P.nq),e.Y36(O.$),e.Y36(B.Y),e.Y36(ue.uw),e.Y36(ge.F0),e.Y36(n.Pc),e.Y36(n.Ze),e.Y36(I.o),e.Y36(Ke.V),e.Y36(n.ir),e.Y36(e.sBO))};static#t=this.\u0275cmp=e.Xpm({type:ji,selectors:[["imx-filter"]],contentQueries:function(En,co,yn){if(1&En&&e.Suo(yn,ee.O,5),2&En){let ln;e.iGM(ln=e.CRH())&&(co.allFilterPanels=ln)}},viewQuery:function(En,co){if(1&En&&(e.Gf(r,7,e.SBq),e.Gf(Z,7,e.SBq),e.Gf(Pt,7,e.SBq),e.Gf(Oe,7,e.SBq),e.Gf(ne.B,5,e.SBq)),2&En){let yn;e.iGM(yn=e.CRH())&&(co.scrollbar=yn.first),e.iGM(yn=e.CRH())&&(co.filterTabs=yn.first),e.iGM(yn=e.CRH())&&(co.filterButtons=yn.first),e.iGM(yn=e.CRH())&&(co.filterHeader=yn.first),e.iGM(yn=e.CRH())&&(co.allFilterTabs=yn)}},hostAttrs:[1,"imx-filter"],hostBindings:function(En,co){1&En&&e.NdJ("resize",function(){return co.onResize()},!1,e.Jf7)},inputs:{entityName:"entityName",enableSearchListOption:"enableSearchListOption",enableCreateContactListOption:"enableCreateContactListOption",searchListNameProposal:"searchListNameProposal",newWidgetDefFn:"newWidgetDefFn",clientParams2RequestParamsFn:"clientParams2RequestParamsFn",filterPanelsTemplate:"filterPanelsTemplate",hideApplyBtn:"hideApplyBtn",orderFields:"orderFields",orderField:"orderField",orderDirection:"orderDirection"},outputs:{orderChanged:"orderChanged"},features:[e.qOj,e.TTD],decls:28,vars:21,consts:[[1,"filter__sticky-wrapper","pinable-transition","pinable-aware"],["lg_w","12","lg_o","0"],[1,"filter__header-content"],[1,"filter__header-wrapper"],["filterHeader",""],[1,"filter__scroll-button-wrapper"],["class","filter__scroll-button left",3,"click",4,"ngIf"],[1,"filter__header"],[1,"filter__header__left"],[2,"overflow","hidden"],["scrollbar",""],[1,"filter__tabs"],["filterTabs",""],["ngFor","",3,"ngForOf"],["class","filter__scroll-button right",3,"click",4,"ngIf"],[1,"filter__buttons"],["filterButtons",""],["position","below","halign","start",4,"ngIf"],["type","submit","class","imx-button prio2 with-modify",3,"click",4,"ngIf"],[4,"ngIf"],[3,"orderFields","orderFieldKey","orderDirection","orderChanged"],[1,"filter__contents","pinable-transition","pinable-aware",3,"ngClass"],[3,"formGroup","ngSubmit","keyup.enter"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"filter__scroll-button","left",3,"click"],[1,"icon-chevron-leftBold"],[3,"panel","opened","closeClick","headerClick"],[1,"filter__scroll-button","right",3,"click"],[1,"icon-chevron-rightBold"],["position","below","halign","start"],["imx-dropup-trigger",""],["offset","300",3,"tooltipText"],[1,"plus-button",3,"ngClass"],[1,"icon-plusBold"],[3,"icon","actionClicked",4,"ngIf"],[3,"icon","actionClicked"],["type","submit",1,"imx-button","prio2","with-modify",3,"click"],["class","icon icon-asterisk",4,"ngIf"],[1,"icon","icon-asterisk"],[3,"tooltipText"],[1,"plus-button","initial","star-button",3,"ngClass"],[1,"icon-star"],[3,"icon","actionClicked",4,"hasAnyPermission"],["maxHeight","300"],[3,"icon","additionalStyle","actionClicked",4,"ngFor","ngForOf"],[1,"plus-button","star-button"],[1,"icon-star--list"],[3,"icon","additionalStyle","actionClicked"]],template:function(En,co){1&En&&(e.TgZ(0,"div")(1,"div",0)(2,"imx-grid")(3,"imx-grid-element",1)(4,"div",2)(5,"div",3,4)(7,"div",5),e.YNc(8,ye,2,0,"div",6),e.qZA(),e.TgZ(9,"div",7)(10,"div",8)(11,"div",9,10)(13,"div",11,12),e.YNc(15,ve,1,2,"ng-template",13),e.qZA()(),e.YNc(16,ft,2,0,"div",14),e.TgZ(17,"div",15,16),e.YNc(19,Je,4,1,"imx-dropup-button",17)(20,Ie,4,4,"button",18)(21,sn,7,5,"imx-dropup-button",17),e.ALo(22,"async"),e.YNc(23,rn,3,3,"ng-container",19),e.qZA()()()(),e.TgZ(24,"imx-sort-button",20),e.NdJ("orderChanged",function(ln){return co.onOrderChanged(ln)}),e.qZA()()()()(),e.TgZ(25,"div",21)(26,"form",22),e.NdJ("ngSubmit",function(){return co.hideFilterContent(),co.submit()})("keyup.enter",function(){return co.hideFilterContent(),co.submit()}),e.YNc(27,ii,1,0,"ng-container",23),e.qZA()()()),2&En&&(e.xp6(8),e.Q6J("ngIf",co.scrollbarLeftShown),e.xp6(7),e.Q6J("ngForOf",co.allFilterPanels),e.xp6(),e.Q6J("ngIf",co.scrollbarRightShown),e.xp6(3),e.Q6J("ngIf",co.plusButtonShown),e.xp6(),e.Q6J("ngIf",!co.hideApplyBtn),e.xp6(),e.Q6J("ngIf",co.enableSearchListOption||e.lcZ(22,15,co.enableCreateContactListOption&&co.contactListsEnabled$)||co.newWidgetDefFn),e.xp6(2),e.Q6J("ngIf",co.enableSearchListOption),e.xp6(),e.Q6J("orderFields",co.orderFields)("orderFieldKey",co.orderField)("orderDirection",co.orderDirection),e.xp6(),e.Q6J("@openClose",co.anyFilterContentShown()?"open":"closed")("ngClass",e.VKq(17,Oo,!co.anyFilterContentShown())),e.xp6(),e.Q6J("formGroup",co.formHandler.formGroup),e.xp6(),e.Q6J("ngTemplateOutlet",co.filterPanelsTemplate)("ngTemplateOutletContext",e.VKq(19,no,co.shownFilterContent)))},dependencies:[at.mk,at.sg,at.O5,at.tP,Le._Y,Le.JL,Le.sg,R.p,Te.z,me.t,Se.F,Ue.M,We.V,et.K,ne.B,Et.A,lt.R,at.Ov,Vt.X$],styles:[".filter__sticky-wrapper[_ngcontent-%COMP%]{position:fixed;left:0;top:50px;width:100%;z-index:3}.filter__header-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:flex-start}.filter__scroll-button-wrapper[_ngcontent-%COMP%]{position:relative}.filter__scroll-button[_ngcontent-%COMP%]{height:50px;width:36px;font-size:14px;line-height:18px;display:flex;flex-direction:row;align-items:center;justify-content:center;cursor:pointer;background-color:#eefafa;z-index:99}.filter__scroll-button.left[_ngcontent-%COMP%]{position:absolute;top:0;left:-36px;border-right:1px solid #fff}.filter__scroll-button.right[_ngcontent-%COMP%]{border-left:1px solid #fff;border-right:1px solid #fff}.filter__header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%}.filter__header__left[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center}.filter__header__left[_ngcontent-%COMP%]   .filter__tabs[_ngcontent-%COMP%]{display:flex;flex-direction:row}.filter__header__left[_ngcontent-%COMP%]   .filter__buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;position:relative}.filter__header__left[_ngcontent-%COMP%]   .filter__buttons[_ngcontent-%COMP%]   .triangle-up[_ngcontent-%COMP%]{position:absolute;top:53px;left:20px;z-index:999}.filter__header__left[_ngcontent-%COMP%]   .filter__buttons[_ngcontent-%COMP%]   .plus-button[_ngcontent-%COMP%]{height:50px;width:50px;font-size:14px;line-height:18px;display:flex;flex-direction:row;align-items:center;justify-content:center;cursor:pointer;border-right:1px solid #fff}.filter__header__left[_ngcontent-%COMP%]   .filter__buttons[_ngcontent-%COMP%]   .plus-button.initial[_ngcontent-%COMP%]{border-left:1px solid #fff}.filter__header__left[_ngcontent-%COMP%]   .filter__buttons[_ngcontent-%COMP%]   .plus-button.star-button[_ngcontent-%COMP%]{font-size:24px}.filter__header__left[_ngcontent-%COMP%]   .filter__buttons[_ngcontent-%COMP%]   imx-dropup-button[_ngcontent-%COMP%]{height:50px}.filter__header__left[_ngcontent-%COMP%]   .filter__buttons[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.filter__contents[_ngcontent-%COMP%]{background-color:#fff;border-bottom:1px solid #eefafa;box-shadow:0 0 10px #0003;position:fixed;top:100px;left:0;z-index:3;width:100%}.filter__contents.closed[_ngcontent-%COMP%]     .grid{height:0}.flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__header[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{min-height:40px}.filter__header-content[_ngcontent-%COMP%]{display:flex}.filter__header-wrapper[_ngcontent-%COMP%]{flex:1}.filter-container[_ngcontent-%COMP%] >   div{height:100%}.matches-current[_ngcontent-%COMP%]{font-weight:500}"],data:{animation:ae.zD}})}return ji})()},23222:(gt,X,a)=>{"use strict";a.d(X,{C:()=>x});var e=a(49193),n=a(96124),s=a(75222),l=a(21473),t=(a(1009),a(61598)),p=a(1026),c=a(19212),o=a(17700);let x=(()=>{class u extends p.N{constructor(b,I){super(b,I),this.entitiesMgr=b,this.dialog=I,this.extendedAttributesForCoreDataObjectAvailable=(0,e.of)(!1)}ngOnInit(){this.extendedAttributesForCoreDateObject=this.entitiesMgr.getAllEntitiesOfType("ExtendedAttribute").pipe((0,n.U)(b=>b.items.filter(I=>I.usageForEntityType&&I.usageForEntityType.includes(this.record._entityType)&&!(I.modules.length>0)))),this.extendedAttributesForCoreDataObjectAvailable=this.extendedAttributesForCoreDateObject.pipe((0,s.w)(b=>(0,e.of)(b.length>0)))}ngOnChanges(b){b.record&&this.onRecordChange()}onRecordChange(){}baseEntityAvailable(b){return this.entitiesMgr.isBaseEntityAvailable(b)}openDiscardDialog(b){if(this.dialog&&this.record)return this.dialog.open(t.t,{maxWidth:470,data:{i18n:b,title:this.record.title,objectId:this.record.id}})}static#e=this.\u0275fac=function(I){return new(I||u)(c.Y36(l.qB),c.Y36(o.uw))};static#t=this.\u0275dir=c.lG2({type:u,inputs:{formHandler:"formHandler",record:"record"},features:[c.qOj,c.TTD]})}return u})()},1026:(gt,X,a)=>{"use strict";a.d(X,{N:()=>c});var e=a(19212),n=a(72079),s=a(21473),i=(a(45315),a(38996)),t=a(38347),p=a(17700);let c=(()=>{class o{constructor(u,m){this.entitiesMgr=u,this.dialog=m,this.slideInEvent=new e.vpe,this.destroy$=new n.xQ}ngOnInit(){}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}get formEditLanguage(){return this.formHandler.formLanguage.getEditLanguage()}determineTableColumns(u){const b=this.formHandler.formConfiguration.findFormFieldById(u).children.filter(I=>I.id!==i.rs&&I.id!==i.Qy).map(I=>I.id);return b.push("removeColumn"),b}prepareTable(u,m,b){return(0,t.t)(u,m,this.destroy$,b)}copyFormControlValue(u,m){const b=this.formHandler.formGroup.get(u),I=this.formHandler.formGroup.get(m);b&&I?I.value!==b.value&&(I.setValue(b.value),I.markAsDirty()):console.warn("Cannot copy contact1 field value to geoInfo fields due to wrong field definitions")}static#e=this.\u0275fac=function(m){return new(m||o)(e.Y36(s.qB),e.Y36(p.uw))};static#t=this.\u0275dir=e.lG2({type:o,inputs:{formHandler:"formHandler"},outputs:{slideInEvent:"slideInEvent"}})}return o})()},8832:(gt,X,a)=>{"use strict";a.d(X,{L:()=>c,g:()=>p});var e=a(19212),s=(a(28635),a(21473)),l=a(23222),i=a(22819),t=a(43941);const p=new e.OlP("imxplatform.forms.article.dataobjectmediuminitializer");let c=(()=>{class o extends l.C{constructor(u,m,b){super(u),this.entitiesMgr=u,this.dataAccessService=m,this.dataObjectMediumInitializer=b}afterPooledMediumDelete(u){this.dataAccessService.getArticleById(u).subscribe(m=>{this.formHandler.baseObject=m,this.record=m})}static#e=this.\u0275fac=function(m){return new(m||o)(e.Y36(s.qB),e.Y36(i.nq),e.Y36(p))};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["imx-article-media-form-panel"]],features:[e.qOj],decls:1,vars:5,consts:[[3,"formHandler","record","dataObjectEntityType","dataObjectMediumInitializerService","removeHeader","afterPooledMediumDelete"]],template:function(m,b){1&m&&(e.TgZ(0,"imx-media-form-panel",0),e.NdJ("afterPooledMediumDelete",function(H){return b.afterPooledMediumDelete(H)}),e.qZA()),2&m&&e.Q6J("formHandler",b.formHandler)("record",b.record)("dataObjectEntityType","Article")("dataObjectMediumInitializerService",b.dataObjectMediumInitializer)("removeHeader","imxplatform.article.edit.panels.media.remove-confirm")},dependencies:[t.E],encapsulation:2,changeDetection:0})}return o})()},48938:(gt,X,a)=>{"use strict";a.d(X,{O:()=>co});var e=a(25313),n=a(79309),s=a(21473),l=a(49193),i=a(23291),t=a(19352),p=a(96124),c=a(93281),o=a(15604),x=a(38996),u=a(60292),m=a(23222),b=a(19212),I=a(17700),H=a(1614),O=a(71365),P=a(96814),G=a(56223),B=a(92596),ae=a(74961),J=a(6128),q=a(36681),j=a(10444),Y=a(28907),K=a(36116),ne=a(17301),ee=a(47378);function $(yn,ln){if(1&yn){const He=b.EpF();b.TgZ(0,"imx-action-menu-item",15),b.NdJ("click",function(){b.CHM(He);const $e=b.oxw(2),Ve=$e.i,Ce=$e.$implicit,tt=b.oxw(2);return b.KtG(tt.refuseAppearance("appearances",Ve,Ce))}),b._uU(1," imxplatform.common-entity.edit.panels.appearance.action-refuse "),b.qZA()}2&yn&&b.Q6J("icon","icon-earth-lock")}function ue(yn,ln){if(1&yn){const He=b.EpF();b.TgZ(0,"imx-action-menu-item",16),b.NdJ("click",function(){b.CHM(He);const $e=b.oxw(2).i,Ve=b.oxw(2);return b.KtG(Ve.removeFromList("appearances",$e))}),b._uU(1,"imxplatform.common-entity.edit.panels.appearance.action-remove "),b.qZA()}2&yn&&b.Q6J("icon","icon-trash")}function ge(yn,ln){if(1&yn&&(b.ynx(0),b.TgZ(1,"imx-dropup-button")(2,"imx-action-menu"),b.YNc(3,$,2,1,"imx-action-menu-item",13)(4,ue,2,1,"imx-action-menu-item",14),b.qZA()(),b.BQk()),2&yn){const He=b.oxw().$implicit,rt=b.oxw(2);let $e;b.xp6(3),b.Q6J("ngIf",rt.hasAppearanceRefusePermission(He)&&(null==($e=He.get(rt.ARRAY_ID_FIELD))?null:$e.value)||(null==($e=He.get(rt.ARRAY_ENTITY_FIELD))?null:$e.value)),b.xp6(),b.Q6J("ngIf",rt.hasAppearanceRemovePermission(He))}}function Ke(yn,ln){if(1&yn&&b.YNc(0,ge,5,2,"ng-container",12),2&yn){const He=ln.$implicit,rt=b.oxw(2);b.Q6J("ngIf",rt.hasAppearanceActionPermission(He))}}function at(yn,ln){1&yn&&b.GkF(0)}function Le(yn,ln){if(1&yn){const He=b.EpF();b.TgZ(0,"button",17),b.NdJ("click",function(){b.CHM(He);const $e=b.oxw(2);return b.KtG($e.addNewAppearance())}),b._uU(1),b.ALo(2,"translate"),b.qZA()}2&yn&&(b.xp6(),b.Oqu(b.lcZ(2,1,"imxplatform.common-entity.edit.panels.appearance.new")))}const R=(yn,ln)=>({$implicit:yn,actionColumnContent:ln});function Te(yn,ln){if(1&yn&&(b.TgZ(0,"div",3)(1,"div",4)(2,"h3"),b._uU(3),b.ALo(4,"translate"),b.qZA(),b.YNc(5,Ke,1,1,"ng-template",null,9,b.W1O)(7,at,1,0,"ng-container",10)(8,Le,3,3,"button",11),b.qZA()()),2&yn){const He=b.MAs(6),rt=b.oxw(),$e=b.MAs(13);b.xp6(3),b.Oqu(b.lcZ(4,5,"entity.ExtCoreDataObject.appearances")),b.xp6(4),b.Q6J("ngTemplateOutlet",$e)("ngTemplateOutletContext",b.WLB(7,R,rt.confirmedAppearancesDataSource,He)),b.xp6(),b.Q6J("hasFieldWritePermission","appearances")("hasFieldWritePermissionFormHandler",rt.formHandler)}}function me(yn,ln){if(1&yn){const He=b.EpF();b.TgZ(0,"imx-action-menu-item",15),b.NdJ("click",function(){b.CHM(He);const $e=b.oxw(2),Ve=$e.i,Ce=$e.$implicit,tt=b.oxw(3);return b.KtG(tt.confirmAppearance("pendingAppearances",Ve,Ce))}),b._uU(1," imxplatform.common-entity.edit.panels.appearance.action-confirm "),b.qZA()}2&yn&&b.Q6J("icon","icon-earth")}function Se(yn,ln){if(1&yn){const He=b.EpF();b.TgZ(0,"imx-action-menu-item",15),b.NdJ("click",function(){b.CHM(He);const $e=b.oxw(2),Ve=$e.i,Ce=$e.$implicit,tt=b.oxw(3);return b.KtG(tt.refuseAppearance("pendingAppearances",Ve,Ce))}),b._uU(1," imxplatform.common-entity.edit.panels.appearance.action-refuse "),b.qZA()}2&yn&&b.Q6J("icon","icon-earth-lock")}function Ue(yn,ln){if(1&yn){const He=b.EpF();b.TgZ(0,"imx-action-menu-item",16),b.NdJ("click",function(){b.CHM(He);const $e=b.oxw(2).i,Ve=b.oxw(3);return b.KtG(Ve.removeFromList("appearances",$e))}),b._uU(1,"imxplatform.common-entity.edit.panels.appearance.action-remove "),b.qZA()}2&yn&&b.Q6J("icon","icon-trash")}function We(yn,ln){if(1&yn&&(b.ynx(0),b.TgZ(1,"imx-dropup-button")(2,"imx-action-menu"),b.YNc(3,me,2,1,"imx-action-menu-item",13)(4,Se,2,1,"imx-action-menu-item",13)(5,Ue,2,1,"imx-action-menu-item",14),b.qZA()(),b.BQk()),2&yn){const He=b.oxw().$implicit,rt=b.oxw(3);b.xp6(3),b.Q6J("ngIf",rt.hasAppearanceConfirmPermission(He)),b.xp6(),b.Q6J("ngIf",rt.hasAppearanceRefusePermission(He)),b.xp6(),b.Q6J("ngIf",rt.hasAppearanceRemovePermission(He))}}function et(yn,ln){if(1&yn&&b.YNc(0,We,6,3,"ng-container",12),2&yn){const He=ln.$implicit,rt=b.oxw(3);b.Q6J("ngIf",rt.hasAppearanceActionPermission(He))}}function Et(yn,ln){1&yn&&b.GkF(0)}function lt(yn,ln){if(1&yn&&(b.TgZ(0,"div",4)(1,"h3"),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.YNc(4,et,1,1,"ng-template",null,19,b.W1O)(6,Et,1,0,"ng-container",10),b.qZA()),2&yn){const He=b.MAs(5),rt=b.oxw(2),$e=b.MAs(13);b.xp6(2),b.Oqu(b.lcZ(3,3,"entity.ExtCoreDataObject.pendingAppearances")),b.xp6(4),b.Q6J("ngTemplateOutlet",$e)("ngTemplateOutletContext",b.WLB(5,R,rt.pendingAppearancesDataSource,He))}}function Vt(yn,ln){if(1&yn&&(b.TgZ(0,"div",3),b.YNc(1,lt,7,8,"div",18),b.qZA()),2&yn){const He=b.oxw();b.xp6(),b.Q6J("ngIf",He.pendingAppearancesDataSource.data.length>0)}}function r(yn,ln){if(1&yn){const He=b.EpF();b.TgZ(0,"imx-action-menu-item",15),b.NdJ("click",function(){b.CHM(He);const $e=b.oxw(2),Ve=$e.i,Ce=$e.$implicit,tt=b.oxw(3);return b.KtG(tt.confirmAppearance("refusedAppearances",Ve,Ce))}),b._uU(1," imxplatform.common-entity.edit.panels.appearance.action-confirm "),b.qZA()}2&yn&&b.Q6J("icon","icon-earth")}function Z(yn,ln){if(1&yn){const He=b.EpF();b.TgZ(0,"imx-action-menu-item",16),b.NdJ("click",function(){b.CHM(He);const $e=b.oxw(2).i,Ve=b.oxw(3);return b.KtG(Ve.removeFromList("appearances",$e))}),b._uU(1,"imxplatform.common-entity.edit.panels.appearance.action-remove "),b.qZA()}2&yn&&b.Q6J("icon","icon-trash")}function Pt(yn,ln){if(1&yn&&(b.ynx(0),b.TgZ(1,"imx-dropup-button")(2,"imx-action-menu"),b.YNc(3,r,2,1,"imx-action-menu-item",13)(4,Z,2,1,"imx-action-menu-item",14),b.qZA()(),b.BQk()),2&yn){const He=b.oxw().$implicit,rt=b.oxw(3);b.xp6(3),b.Q6J("ngIf",rt.hasAppearanceConfirmPermission(He)),b.xp6(),b.Q6J("ngIf",rt.hasAppearanceRemovePermission(He))}}function Oe(yn,ln){if(1&yn&&b.YNc(0,Pt,5,2,"ng-container",12),2&yn){const He=ln.$implicit,rt=b.oxw(3);b.Q6J("ngIf",rt.hasAppearanceActionPermission(He))}}function ye(yn,ln){1&yn&&b.GkF(0)}function ve(yn,ln){if(1&yn&&(b.TgZ(0,"div",4)(1,"h3"),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.YNc(4,Oe,1,1,"ng-template",null,20,b.W1O)(6,ye,1,0,"ng-container",10),b.qZA()),2&yn){const He=b.MAs(5),rt=b.oxw(2),$e=b.MAs(13);b.xp6(2),b.Oqu(b.lcZ(3,3,"entity.ExtCoreDataObject.refusedAppearances")),b.xp6(4),b.Q6J("ngTemplateOutlet",$e)("ngTemplateOutletContext",b.WLB(5,R,rt.refusedAppearancesDataSource,He))}}function ft(yn,ln){if(1&yn&&(b.TgZ(0,"div",3),b.YNc(1,ve,7,8,"div",18),b.qZA()),2&yn){const He=b.oxw();b.xp6(),b.Q6J("ngIf",He.refusedAppearancesDataSource.data.length>0)}}function Dt(yn,ln){1&yn&&(b.TgZ(0,"p",24),b._uU(1,"imxplatform.common.no-records"),b.qZA())}function Rn(yn,ln){1&yn&&b._UZ(0,"tr",45)}function ti(yn,ln){1&yn&&b._UZ(0,"tr",46)}function Xt(yn,ln){if(1&yn&&(b.TgZ(0,"th",47),b._uU(1),b.qZA()),2&yn){const He=b.oxw(3);b.xp6(),b.Oqu(He.formHandler.getFormFieldLabel("appearances:fromDate"))}}function Je(yn,ln){if(1&yn&&(b.TgZ(0,"td",48),b._UZ(1,"imx-form-control",49),b.qZA()),2&yn){const He=ln.$implicit,rt=b.oxw(3);b.Q6J("formGroup",He),b.xp6(),b.Q6J("field",rt.formHandler.formConfiguration.findFormFieldById("appearances:fromDate"))("control",He.controls.fromDate)("form",rt.formHandler.formGroup.get("appearances"))("formHandler",rt.formHandler)("config",rt.formHandler.formConfiguration)}}function dt(yn,ln){if(1&yn&&(b.TgZ(0,"th",47),b._uU(1),b.qZA()),2&yn){const He=b.oxw(3);b.xp6(),b.Oqu(He.formHandler.getFormFieldLabel("appearances:toDate"))}}function Ie(yn,ln){if(1&yn&&(b.TgZ(0,"td",48),b._UZ(1,"imx-form-control",49),b.qZA()),2&yn){const He=ln.$implicit,rt=b.oxw(3);b.Q6J("formGroup",He),b.xp6(),b.Q6J("field",rt.formHandler.formConfiguration.findFormFieldById("appearances:toDate"))("control",He.controls.toDate)("form",rt.formHandler.formGroup.get("appearances"))("formHandler",rt.formHandler)("config",rt.formHandler.formConfiguration)}}function ot(yn,ln){if(1&yn&&(b.TgZ(0,"th",50),b._uU(1),b.qZA()),2&yn){const He=b.oxw(3);b.xp6(),b.Oqu(He.formHandler.getFormFieldLabel("appearances:deliveryChannel"))}}const ct=()=>({width:"100%"});function tn(yn,ln){if(1&yn&&(b.TgZ(0,"td",51),b.ALo(1,"async"),b.TgZ(2,"div",52),b._UZ(3,"imx-base-select",53),b.qZA()()),2&yn){const He=ln.$implicit,rt=b.oxw(3);b.Q6J("formGroup",He)("matTooltip","ProposerType "+He.controls.proposer.value+" - "+b.lcZ(1,6,rt.readDeliveryChannelLabel(He.controls.deliveryChannel.value)))("matTooltipShowDelay",2e3),b.xp6(2),b.Q6J("ngStyle",b.DdM(8,ct))("formGroup",He),b.xp6(),b.Q6J("options",rt.getDeliveryChannelOptionsForAppearance(He))}}function yi(yn,ln){if(1&yn&&(b.TgZ(0,"th",50),b._uU(1),b.qZA()),2&yn){const He=b.oxw(3);b.xp6(),b.Oqu(He.column1Label)}}function ni(yn,ln){1&yn&&b.GkF(0)}const sn=yn=>({element:yn});function bn(yn,ln){if(1&yn&&(b.TgZ(0,"td",54),b.YNc(1,ni,1,0,"ng-container",10),b.qZA()),2&yn){const He=ln.$implicit,rt=b.oxw(3);b.Q6J("formGroup",He),b.xp6(),b.Q6J("ngTemplateOutlet",rt.column1Template)("ngTemplateOutletContext",b.VKq(3,sn,He))}}function vt(yn,ln){if(1&yn&&(b.TgZ(0,"th",50),b._uU(1),b.qZA()),2&yn){const He=b.oxw(3);b.xp6(),b.Oqu(He.column2Label)}}function nn(yn,ln){1&yn&&b.GkF(0)}function rn(yn,ln){if(1&yn&&(b.TgZ(0,"td",55),b.YNc(1,nn,1,0,"ng-container",10),b.qZA()),2&yn){const He=ln.$implicit,rt=b.oxw(3);b.Q6J("formGroup",He),b.xp6(),b.Q6J("ngTemplateOutlet",rt.column2Template)("ngTemplateOutletContext",b.VKq(3,sn,He))}}function ii(yn,ln){if(1&yn&&(b.TgZ(0,"th",56),b._uU(1),b.qZA()),2&yn){const He=b.oxw(3);b.xp6(),b.Oqu(He.formHandler.getFormFieldLabel("appearances:languages"))}}function Oo(yn,ln){if(1&yn&&(b.TgZ(0,"td",57),b._UZ(1,"imx-form-control",49),b.qZA()),2&yn){const He=ln.$implicit,rt=b.oxw(3);b.Q6J("formGroup",He),b.xp6(),b.Q6J("field",rt.formHandler.formConfiguration.findFormFieldById("appearances:languages"))("control",He.controls.languages)("form",rt.formHandler.formGroup.get("appearances"))("formHandler",rt.formHandler)("config",rt.formHandler.formConfiguration)}}function no(yn,ln){1&yn&&b._UZ(0,"th",58)}function Li(yn,ln){1&yn&&b.GkF(0)}const ji=(yn,ln)=>({$implicit:yn,i:ln});function Ii(yn,ln){if(1&yn&&(b.TgZ(0,"td",59),b.YNc(1,Li,1,0,"ng-container",10),b.qZA()),2&yn){const He=ln.$implicit,rt=ln.index,$e=b.oxw(2).actionColumnContent;b.Q6J("formGroup",He),b.xp6(),b.Q6J("ngTemplateOutlet",$e)("ngTemplateOutletContext",b.WLB(3,ji,He,rt))}}function _i(yn,ln){if(1&yn&&(b.TgZ(0,"table",25),b.YNc(1,Rn,1,0,"tr",26)(2,ti,1,0,"tr",27),b.ynx(3,28),b.YNc(4,Xt,2,1,"th",29)(5,Je,2,6,"td",30),b.BQk(),b.ynx(6,31),b.YNc(7,dt,2,1,"th",29)(8,Ie,2,6,"td",30),b.BQk(),b.ynx(9,32),b.YNc(10,ot,2,1,"th",33)(11,tn,4,9,"td",34),b.BQk(),b.ynx(12,35),b.YNc(13,yi,2,1,"th",33)(14,bn,2,5,"td",36),b.BQk(),b.ynx(15,37),b.YNc(16,vt,2,1,"th",33)(17,rn,2,5,"td",38),b.BQk(),b.ynx(18,39),b.YNc(19,ii,2,1,"th",40)(20,Oo,2,6,"td",41),b.BQk(),b.ynx(21,42),b.YNc(22,no,1,0,"th",43)(23,Ii,2,6,"td",44),b.BQk(),b.qZA()),2&yn){const He=b.oxw().$implicit,rt=b.oxw();b.Q6J("dataSource",He),b.xp6(),b.Q6J("matHeaderRowDef",rt.displayedColumns),b.xp6(),b.Q6J("matRowDefColumns",rt.displayedColumns)}}function En(yn,ln){if(1&yn&&(b.YNc(0,Dt,2,0,"ng-template",null,21,b.W1O),b.TgZ(2,"div",22),b.YNc(3,_i,24,3,"table",23),b.qZA()),2&yn){const He=ln.$implicit,rt=b.MAs(1);b.xp6(3),b.Q6J("ngIf",He&&He.data.length>0)("ngIfElse",rt)}}let co=(()=>{class yn extends m.C{constructor(He,rt,$e,Ve,Ce,tt,ht,Qt,Un,Yt){super(He,rt),this.entitiesMgr=He,this.dialog=rt,this.securityManagerService=$e,this.collectionsService=Ve,this.changeDetectorRef=Ce,this.entityStateDao=tt,this.deliveryChannelOptionProviderService=ht,this.readI18nPipe=Qt,this.runtimeContextService=Un,this.translateService=Yt,this.ARRAY_ID_FIELD=x.rs,this.ARRAY_ENTITY_FIELD=x.Qy,this.displayedColumns=["fromDate","toDate","deliveryChannel","languages","actionColumn"],this.entityStateDisabled=!1,this.appearanceDeliveryChannelOptions=new Map,this.appearanceActionPermissions=new Map,this.removePermissions=new Map,this.confirmPermissions=new Map,this.refusePermissions=new Map,this.clientNewAppearanceDeliveryChannelOptions=[]}onRecordChange(){super.onRecordChange(),this.entityStateDisabled=this.record.entityState.key===n.Zr.key,this.entityStateOptions$=this._loadEntityStateOptions(),this.confirmedAppearancesDataSource=this.prepareTable(this.formHandler.formGroup.get("appearances"),He=>this.confirmedAppearancesDataSource=He,(He,rt)=>He.value.proposer?He.value.proposer-rt.value.proposer:He.value.rowId-rt.value.rowId),this.pendingAppearancesDataSource=this.formHandler.formGroup.get("pendingAppearances")?this.prepareTable(this.formHandler.formGroup.get("pendingAppearances"),He=>this.pendingAppearancesDataSource=He):new e.by,this.refusedAppearancesDataSource=this.formHandler.formGroup.get("refusedAppearances")?this.prepareTable(this.formHandler.formGroup.get("refusedAppearances"),He=>this.refusedAppearancesDataSource=He):new e.by,this.initAppearances()}ngOnInit(){this.formHandler.formLanguage.getObjectLanguagesObservable().pipe((0,t.R)(this.destroy$)).subscribe(He=>{this.changeDetectorRef.markForCheck()}),this.deliveryChannelIdNameMap=this._loadDeliveryChannelOptions(),this.formHandler.onAssignedProductlinesChanges().pipe((0,t.R)(this.destroy$)).subscribe(He=>{this.removeAppearancesForPl(this.formHandler.formGroup.get("appearances"),He),this.removeAppearancesForPl(this.formHandler.formGroup.get("pendingAppearances"),He),this.removeAppearancesForPl(this.formHandler.formGroup.get("refusedAppearances"),He),this.initAppearances(),this.changeDetectorRef.markForCheck()})}removeAppearancesForPl(He,rt){const $e=[];He.controls.forEach(Ve=>{if(Ve.get("productline")){const Ce=Ve.get("productline").value;null!=Ce&&-1!==Ce&&!rt.includes(Ce)&&$e.push(Ce)}}),$e.forEach(Ve=>{He.removeAt(He.controls.findIndex(Ce=>Ce.get("productline").value===Ve))})}disableAppearance(He,rt){this.appearanceDeliveryChannelOptions.set(He.rowId,this.getOptionsFromDeliveryChannels(rt)),this.appearanceActionPermissions.set(He.rowId,!1)}initAppearances(){this.confirmedAppearancesDataSource.filteredData.forEach(tt=>{Object.keys(tt.controls).forEach(ht=>{tt.controls[ht].disable()})}),this.pendingAppearancesDataSource.filteredData.forEach(tt=>{Object.keys(tt.controls).forEach(ht=>{tt.controls[ht].disable()})}),this.refusedAppearancesDataSource.filteredData.forEach(tt=>{Object.keys(tt.controls).forEach(ht=>{tt.controls[ht].disable()})}),this.appearanceDeliveryChannelOptions.clear(),this.appearanceActionPermissions.clear(),this.removePermissions.clear(),this.confirmPermissions.clear(),this.refusePermissions.clear();const He=this.collectionsService.getAllDeliveryChannels(),rt=this.runtimeContextService.getCurrentAndSubClients(),$e=this.record.id?this.runtimeContextService.isOwnedEntity(this.record.client.id):(0,l.of)(!0),Ve=this.formHandler.hasSavePermission(),Ce=this.formHandler.hasEditPermission("appearance");(0,i.aj)([rt,He,Ve,Ce,$e]).pipe((0,p.U)(([tt,ht,Qt,Un,Yt])=>{const Fn=this.getDeliveryChannelsForCurrentClient([...tt],ht);this.clientNewAppearanceDeliveryChannelOptions=this.getOptionsFromDeliveryChannels(Fn),this.confirmedAppearancesDataSource.filteredData.forEach(yt=>{const Bt=yt.value;Qt&&Un?(this.calcPermissionByDeliveryChannel(Bt,ht,[...tt])?(this.appearanceDeliveryChannelOptions.set(Bt.rowId,this.getOptionsFromDeliveryChannels(Fn)),this.appearanceActionPermissions.set(Bt.rowId,!0),this.removePermissions.set(Bt.rowId,!0),Object.keys(yt.controls).forEach(li=>{yt.controls[li].enable()})):this.disableAppearance(Bt,ht),Bt.proposer===n.cM.id&&Yt&&this.securityManagerService.hasPermission(this.refusePermissionName)&&(this.appearanceActionPermissions.set(Bt.rowId,!0),this.refusePermissions.set(Bt.rowId,!0))):this.disableAppearance(Bt,ht)}),this.pendingAppearancesDataSource.filteredData.forEach(yt=>{const Bt=yt.value;Qt&&Un?(this.calcPermissionByDeliveryChannel(Bt,ht,[...tt])?(this.appearanceDeliveryChannelOptions.set(Bt.rowId,this.getOptionsFromDeliveryChannels(Fn)),this.appearanceActionPermissions.set(Bt.rowId,!0),this.removePermissions.set(Bt.rowId,!0),Object.keys(yt.controls).forEach(li=>{yt.controls[li].enable()})):this.disableAppearance(Bt,ht),Bt.proposer===n.cM.id&&Yt&&(this.securityManagerService.hasPermission(this.confirmPermissionName)&&(this.appearanceActionPermissions.set(Bt.rowId,!0),this.confirmPermissions.set(Bt.rowId,!0)),this.securityManagerService.hasPermission(this.refusePermissionName)&&(this.appearanceActionPermissions.set(Bt.rowId,!0),this.refusePermissions.set(Bt.rowId,!0)))):this.disableAppearance(Bt,ht)}),this.refusedAppearancesDataSource.filteredData.forEach(yt=>{const Bt=yt.value;Qt&&Un?(this.calcPermissionByDeliveryChannel(Bt,ht,[...tt])?(this.appearanceDeliveryChannelOptions.set(Bt.rowId,this.getOptionsFromDeliveryChannels(Fn)),this.appearanceActionPermissions.set(Bt.rowId,!0),Object.keys(yt.controls).forEach(li=>{yt.controls[li].enable()})):this.disableAppearance(Bt,ht),Bt.proposer===n.cM.id&&Yt&&this.securityManagerService.hasPermission(this.confirmPermissionName)&&(this.appearanceActionPermissions.set(Bt.rowId,!0),this.confirmPermissions.set(Bt.rowId,!0))):this.disableAppearance(Bt,ht)})})).pipe((0,t.R)(this.destroy$)).subscribe()}removeFromList(He,rt){this.formHandler.removeLineFromCollection(He,rt)}confirmAppearance(He,rt,$e){const Ve=this.formHandler.getFormArrayControl("appearances");Ve&&(this.removeFromList(He,rt),Ve.push($e),this.initAppearances(),Ve.markAsDirty())}refuseAppearance(He,rt,$e){const Ve=this.formHandler.getFormArrayControl("refusedAppearances");Ve&&(this.removeFromList(He,rt),Ve.push($e),this.initAppearances(),Ve.markAsDirty())}getOptionsFromDeliveryChannels(He){return He.map(rt=>({label:rt.name,value:rt.id})).sort((rt,$e)=>rt.label.localeCompare($e.label))}getDeliveryChannelOptionsForAppearance(He){const rt=this.appearanceDeliveryChannelOptions.get(He.value.rowId);return rt&&rt.length>0?rt:this.clientNewAppearanceDeliveryChannelOptions}hasAppearanceActionPermission(He){return this.evaluatePermission(this.appearanceActionPermissions,He)}hasAppearanceRemovePermission(He){return this.evaluatePermission(this.removePermissions,He)}hasAppearanceRefusePermission(He){return this.evaluatePermission(this.refusePermissions,He)}hasAppearanceConfirmPermission(He){return this.evaluatePermission(this.confirmPermissions,He)}evaluatePermission(He,rt){const $e=He.get(rt.value.rowId);return void 0!==$e?$e:!rt.value.rowId}getDeliveryChannelsForCurrentClient(He,rt){const $e=He.map(Ce=>Ce.id),Ve=[];return rt.forEach(Ce=>{let tt=!1;const ht=Ce.ownerClient,Qt=Ce.grantedClients;let Un=[];Qt&&(Un=Qt.map(Yt=>Yt.id)),(!ht&&0===Un.length||ht&&$e.indexOf(ht.id)>-1||Un.length>0&&Un.some(Yt=>$e.includes(Yt)))&&(tt=!0),tt&&Ve.push(Ce)}),Ve}calcPermissionByDeliveryChannel(He,rt,$e){let Ve=!0;if(He&&He.deliveryChannel){Ve=!1;const Ce=He.deliveryChannel,tt=rt.find(Yt=>Yt.id===Ce),ht=tt.ownerClient;let Qt=[];tt.grantedClients&&(Qt=tt.grantedClients.map(Yt=>Yt.id));const Un=$e.map(Yt=>Yt.id);return(!ht&&0===Qt.length||ht&&Un.indexOf(ht.id)>-1||Qt.length>0&&Qt.some(Yt=>Un.includes(Yt)))&&(Ve=!0),Ve}return Ve}_loadDeliveryChannelOptions(){return this.deliveryChannelOptionProviderService.getOptions(void 0,void 0).pipe((0,p.U)(He=>{const rt=new Map;return He.forEach($e=>rt.set($e.value,$e.label)),rt}))}readDeliveryChannelLabel(He){return this.deliveryChannelIdNameMap.pipe((0,p.U)(rt=>rt.get(He)?"string"==typeof rt.get(He)?rt.get(He):this.readI18nPipe.transform(rt.get(He)):""))}_loadEntityStateOptions(){let He;return He=this.entityStateDao.findAvailablesByEntity(this.record._entityType,this.record.id?this.record.id:"new","edit"),He.pipe((0,p.U)(rt=>(this.record.entityState&&!rt.map($e=>$e.key).some($e=>$e===this.record.entityState.key)&&(this.entityStateDisabled=!0,rt.unshift(this.record.entityState)),rt)),(0,p.U)(rt=>rt.map($e=>({label:"entity.EntityState."+$e.name.toLowerCase(),value:$e.key}))))}addNewAppearance(){this.entitiesMgr.newEntityOfType("Appearance").subscribe(He=>{const rt=this.formHandler.addNewCollectionRow("appearances",!1),$e={};if(this.formHandler.formConfiguration.findArrayFieldById("appearances").children.forEach(Ve=>this.formHandler.transferFieldValueIncoming(Ve,$e,He,this.formHandler.getObjectLanguages().map(Ce=>Ce.name),rt)),rt.patchValue($e),!rt.controls.deliveryChannel.value){const Ve=this.clientNewAppearanceDeliveryChannelOptions[0]?.value;rt.controls.deliveryChannel.setValue(Ve)}rt.controls.languages&&rt.controls.languages.patchValue(this.formHandler.getObjectLanguages().map(Ve=>Ve.id)),this.formHandler.getFormArrayControl("appearances").push(rt),this.formHandler.getFormArrayControl("appearances").markAsDirty(),this.changeDetectorRef.markForCheck()})}static#e=this.\u0275fac=function(rt){return new(rt||yn)(b.Y36(s.qB),b.Y36(I.uw),b.Y36(s.Xh),b.Y36(o.f),b.Y36(b.sBO),b.Y36(c.o),b.Y36(u.e),b.Y36(H.j),b.Y36(s.Ze),b.Y36(O.sK))};static#t=this.\u0275cmp=b.Xpm({type:yn,selectors:[["imx-appearance-form-panel"]],inputs:{displayedColumns:"displayedColumns",confirmPermissionName:"confirmPermissionName",refusePermissionName:"refusePermissionName",column1Template:"column1Template",column1Label:"column1Label",column2Template:"column2Template",column2Label:"column2Label"},features:[b.qOj],decls:14,vars:15,consts:[[1,"form__content-panel","appearances"],["id","appearances",1,"anchor"],["translate",""],[1,"form__content-row"],[1,"form__content-group"],[1,"form__content-field-row"],[1,"entity-state-switch",3,"field","control","form","formHandler","disableControl","optionProvider"],["class","form__content-row",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],["appearancesTable",""],["confirmedAppearancesActionColumnContent",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","imx-button prio2",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[4,"ngIf"],[3,"icon","click",4,"ngIf"],["additionalStyle","delete",3,"icon","click",4,"ngIf"],[3,"icon","click"],["additionalStyle","delete",3,"icon","click"],[1,"imx-button","prio2",3,"click"],["class","form__content-group",4,"ngIf"],["pendingAppearancesActionColumnContent",""],["refusedAppearancesActionColumnContent",""],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","fromDate"],["mat-header-cell","","class","date","translate","",4,"matHeaderCellDef"],["mat-cell","","class","date",3,"formGroup",4,"matCellDef"],["matColumnDef","toDate"],["matColumnDef","deliveryChannel"],["mat-header-cell","","translate","",4,"matHeaderCellDef"],["mat-cell","",3,"formGroup","matTooltip","matTooltipShowDelay",4,"matCellDef"],["matColumnDef","custom1"],["mat-cell","","class","customCell",3,"formGroup",4,"matCellDef"],["matColumnDef","custom2"],["mat-cell","",3,"formGroup",4,"matCellDef"],["matColumnDef","languages"],["mat-header-cell","","class","language","translate","",4,"matHeaderCellDef"],["mat-cell","","class","language",3,"formGroup",4,"matCellDef"],["matColumnDef","actionColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","","translate","",1,"date"],["mat-cell","",1,"date",3,"formGroup"],[3,"field","control","form","formHandler","config"],["mat-header-cell","","translate",""],["mat-cell","",3,"formGroup","matTooltip","matTooltipShowDelay"],[3,"ngStyle","formGroup"],["formControlName","deliveryChannel",3,"options"],["mat-cell","",1,"customCell",3,"formGroup"],["mat-cell","",3,"formGroup"],["mat-header-cell","","translate","",1,"language"],["mat-cell","",1,"language",3,"formGroup"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"]],template:function(rt,$e){1&rt&&(b.TgZ(0,"div",0),b._UZ(1,"div",1),b.TgZ(2,"h2",2),b._uU(3,"imxplatform.common-entity.edit.panels.appearance.title"),b.qZA(),b.TgZ(4,"div",3)(5,"div",4)(6,"div",5),b._UZ(7,"imx-select",6),b.ALo(8,"async"),b.qZA()()(),b.YNc(9,Te,9,10,"div",7)(10,Vt,2,1,"div",7)(11,ft,2,1,"div",7),b.qZA(),b.YNc(12,En,4,2,"ng-template",null,8,b.W1O)),2&rt&&(b.xp6(),b.uIk("data-scroll-id","appearances"),b.xp6(6),b.Q6J("field",$e.formHandler.formConfiguration.findFormFieldById("entityState"))("control",$e.formHandler.formGroup.get("entityState"))("form",$e.formHandler.formGroup)("formHandler",$e.formHandler)("disableControl",$e.entityStateDisabled)("optionProvider",b.lcZ(8,13,$e.entityStateOptions$)),b.xp6(2),b.Q6J("hasFieldReadPermission","appearances")("hasFieldReadPermissionFormHandler",$e.formHandler),b.xp6(),b.Q6J("hasFieldReadPermission","appearances")("hasFieldReadPermissionFormHandler",$e.formHandler),b.xp6(),b.Q6J("hasFieldReadPermission","appearances")("hasFieldReadPermissionFormHandler",$e.formHandler))},dependencies:[P.O5,P.tP,P.PC,G.JJ,G.JL,e.BZ,e.fO,e.as,e.w1,e.Dz,e.nj,e.ge,e.ev,e.XQ,e.Gk,B.gM,G.sg,G.u,O.Pi,ae.p,J.z,q.t,j.o,Y.A,K.H,ne.j,ee.X,P.Ov,O.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.form__content-field-row[_ngcontent-%COMP%]   .entity-state-switch[_ngcontent-%COMP%]{flex-basis:50%}.date[_ngcontent-%COMP%]{max-width:130px}.language[_ngcontent-%COMP%]{max-width:150px}"],changeDetection:0})}return yn})()},43941:(gt,X,a)=>{"use strict";a.d(X,{E:()=>xi});var e=a(19212),n=a(56223),s=a(79309),l=a(49193),i=a(72079),t=a(23291),p=a(19352),c=a(96124),o=a(53075),x=a(75222),u=a(96776),m=a(17927),b=a(86313),I=a(66182),H=a(36020),O=a(21473),P=a(22819),B=(a(28635),a(62934)),ae=a(38996),J=a(21417),q=a(59143),j=a(54320),Y=a(43040),K=a(41621),ne=a(75789),ee=a(33946),$=a(94366),ue=a(49346),ge=a(23222),Ke=a(17700),at=a(71365),Le=a(18718),R=a(35475),Te=a(17301),me=a(22194),Se=a(96814),Ue=a(75986),We=a(17299),et=a(10444),Et=a(8455),lt=a(25313),r=(a(1009),a(99234)),Z=a(15646),Pt=a(92596),Oe=a(74961),ye=a(6128),ve=a(36681),ft=a(52463),Dt=a(28907),Rn=a(86729),ti=a(1614);function Xt(ki,wo){1&ki&&(e.TgZ(0,"p",4),e._uU(1,"imxplatform.common.no-records"),e.qZA())}function Je(ki,wo){1&ki&&e._UZ(0,"tr",33)}function dt(ki,wo){if(1&ki&&e._UZ(0,"tr",34),2&ki){const Ei=wo.$implicit,ho=e.oxw(2);e.ekj("inactive-row",!1===ho.controlMap.get(Ei.index).get("activated").value)}}function Ie(ki,wo){1&ki&&e._UZ(0,"th",35)}function ot(ki,wo){if(1&ki&&(e.TgZ(0,"td",36),e._UZ(1,"imx-media-thumbnail",37),e.qZA()),2&ki){const Ei=wo.$implicit;e.xp6(),e.Q6J("medium",Ei)("hasTooltip",!0)}}function ct(ki,wo){if(1&ki&&(e.TgZ(0,"th",38),e.ALo(1,"translate"),e._uU(2),e.qZA()),2&ki){const Ei=e.oxw(2);e.Q6J("matTooltip",e.lcZ(1,2,Ei.formHandler.getFormFieldLabel("media:title"))),e.xp6(2),e.hij(" ",Ei.formHandler.getFormFieldLabel("media:title")," ")}}function tn(ki,wo){1&ki&&e.GkF(0)}function yi(ki,wo){if(1&ki){const Ei=e.EpF();e.ynx(0),e.TgZ(1,"a",43),e.NdJ("click",function(){e.CHM(Ei);const Cr=e.oxw().$implicit,vr=e.oxw(2);return e.KtG(vr.pooledMediaEdit.emit(Cr.pooledMedium))}),e.TgZ(2,"span",44),e._uU(3),e.ALo(4,"readI18n"),e.qZA(),e.YNc(5,tn,1,0,"ng-container",45),e.qZA(),e.BQk()}if(2&ki){const Ei=e.oxw().$implicit,ho=e.MAs(5),Cr=e.oxw(2);e.xp6(3),e.hij(" ",e.xi3(4,2,null==Ei||null==Ei.pooledMedium?null:Ei.pooledMedium.title,Cr.formHandler.formLanguage.getEditLanguage().name)," "),e.xp6(2),e.Q6J("ngTemplateOutlet",ho)}}function ni(ki,wo){1&ki&&e.GkF(0)}function sn(ki,wo){if(1&ki){const Ei=e.EpF();e.TgZ(0,"a",43),e.NdJ("click",function(){e.CHM(Ei);const Cr=e.oxw().$implicit,vr=e.oxw(2);return e.KtG(vr.pooledMediaEdit.emit(Cr.pooledMedium))}),e.TgZ(1,"span",44),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,ni,1,0,"ng-container",45),e.qZA()}if(2&ki){e.oxw();const Ei=e.MAs(5);e.xp6(2),e.hij(" [",e.lcZ(3,2,"imxplatform.common-entity.edit.panels.media.no-title"),"] "),e.xp6(2),e.Q6J("ngTemplateOutlet",Ei)}}function bn(ki,wo){1&ki&&e._UZ(0,"span",49)}function vt(ki,wo){if(1&ki&&(e.YNc(0,bn,1,0,"span",46),e.TgZ(1,"span",47),e._uU(2),e.qZA(),e.TgZ(3,"span",48),e._uU(4),e.ALo(5,"readI18n"),e.qZA()),2&ki){const Ei=e.oxw().$implicit,ho=e.oxw(2);e.Q6J("ngIf",null==Ei.id),e.xp6(2),e.hij(" ID: ",Ei.pooledMedium.id," "),e.xp6(2),e.hij(" Copyright: ",e.Dn7(5,3,null==Ei||null==Ei.pooledMedium?null:Ei.pooledMedium.copyright,ho.formHandler.formLanguage.getEditLanguage().name,!1)," ")}}function nn(ki,wo){if(1&ki&&(e.TgZ(0,"td",39),e.YNc(1,yi,6,5,"ng-container",40)(2,sn,5,4,"ng-template",null,41,e.W1O)(4,vt,6,7,"ng-template",null,42,e.W1O),e.qZA()),2&ki){const Ei=wo.$implicit,ho=e.MAs(3),Cr=e.oxw(2);e.xp6(),e.Q6J("ngIf",Cr.isDefinedI18n(null==Ei||null==Ei.pooledMedium?null:Ei.pooledMedium.title,Cr.formHandler.formLanguage.getEditLanguage().name))("ngIfElse",ho)}}function rn(ki,wo){if(1&ki&&(e.TgZ(0,"th",38),e.ALo(1,"translate"),e._uU(2),e.qZA()),2&ki){const Ei=e.oxw(2);e.Q6J("matTooltip",e.lcZ(1,2,Ei.formHandler.getFormFieldLabel("media:imageType"))),e.xp6(2),e.hij(" ",Ei.formHandler.getFormFieldLabel("media:imageType")," ")}}function ii(ki,wo){if(1&ki&&(e.ynx(0),e._UZ(1,"imx-form-control",51),e.BQk()),2&ki){const Ei=e.oxw().$implicit,ho=e.oxw(2);e.xp6(),e.Q6J("field",ho.formHandler.formConfiguration.findFormFieldById("media:imageType"))("control",ho.controlMap.get(Ei.index).get("imageType"))("form",ho.formHandler.formGroup.get("media"))("formHandler",ho.formHandler)("config",ho.formHandler.formConfiguration)}}function Oo(ki,wo){if(1&ki&&(e.TgZ(0,"td",39),e.YNc(1,ii,2,5,"ng-container",50),e.qZA()),2&ki){const Ei=wo.$implicit;e.xp6(),e.Q6J("ngIf",1===Ei.pooledMedium.mediaType.id)}}function no(ki,wo){if(1&ki&&(e.TgZ(0,"th",52),e.ALo(1,"translate"),e._uU(2),e.qZA()),2&ki){const Ei=e.oxw(2);e.Q6J("matTooltip",e.lcZ(1,2,Ei.formHandler.getFormFieldLabel("media:sortingValue"))),e.xp6(2),e.hij(" ",Ei.formHandler.getFormFieldLabel("media:sortingValue")," ")}}function Li(ki,wo){if(1&ki&&(e.TgZ(0,"td",53),e._UZ(1,"imx-form-control",51),e.qZA()),2&ki){const Ei=wo.$implicit,ho=e.oxw(2);e.xp6(),e.Q6J("field",ho.formHandler.formConfiguration.findFormFieldById("media:sortingValue"))("control",ho.controlMap.get(Ei.index).get("sortingValue"))("form",ho.formHandler.formGroup.get("media"))("formHandler",ho.formHandler)("config",ho.formHandler.formConfiguration)}}function ji(ki,wo){if(1&ki&&(e.TgZ(0,"th",54),e.ALo(1,"translate"),e._uU(2),e.qZA()),2&ki){const Ei=e.oxw(2);e.Q6J("matTooltip",e.lcZ(1,2,Ei.formHandler.getFormFieldLabel("media:languages"))),e.xp6(2),e.hij(" ",Ei.formHandler.getFormFieldLabel("media:languages")," ")}}function Ii(ki,wo){if(1&ki&&(e.TgZ(0,"td",55),e._UZ(1,"imx-form-control",51),e.qZA()),2&ki){const Ei=wo.$implicit,ho=e.oxw(2);e.xp6(),e.Q6J("field",ho.formHandler.formConfiguration.findFormFieldById("media:languages"))("control",ho.controlMap.get(Ei.index).get("languages"))("form",ho.formHandler.formGroup.get("media"))("formHandler",ho.formHandler)("config",ho.formHandler.formConfiguration)}}function _i(ki,wo){1&ki&&(e.TgZ(0,"th",56),e.ALo(1,"translate"),e._uU(2," entity.Productline.asPortalContext "),e.qZA()),2&ki&&e.Q6J("matTooltip",e.lcZ(1,1,"entity.Productline.asPortalContext"))}function En(ki,wo){if(1&ki&&(e.TgZ(0,"td",57),e._UZ(1,"imx-form-control",51),e.qZA()),2&ki){const Ei=wo.$implicit,ho=e.oxw(2);e.xp6(),e.Q6J("field",ho.formHandler.formConfiguration.findFormFieldById("media:productlines"))("control",ho.controlMap.get(Ei.index).get("productlines"))("form",ho.formHandler.formGroup.get("media"))("formHandler",ho.formHandler)("config",ho.formHandler.formConfiguration)}}function co(ki,wo){if(1&ki&&(e.TgZ(0,"th",58),e.ALo(1,"translate"),e.ALo(2,"translate"),e._uU(3),e.ALo(4,"translate"),e.ALo(5,"translate"),e.qZA()),2&ki){const Ei=e.oxw(2);e.Q6J("matTooltip",e.lcZ(1,3,Ei.formHandler.getFormFieldLabel("media:fromDate"))+"/"+e.lcZ(2,5,Ei.formHandler.getFormFieldLabel("media:toDate"))),e.xp6(3),e.AsE(" ",e.lcZ(4,7,Ei.formHandler.getFormFieldLabel("media:fromDate"))," / ",e.lcZ(5,9,Ei.formHandler.getFormFieldLabel("media:toDate"))," ")}}function yn(ki,wo){if(1&ki&&e._UZ(0,"imx-base-day-month",63)(1,"imx-base-day-month",63),2&ki){const Ei=e.oxw().$implicit,ho=e.oxw(2);e.Q6J("formControl",ho.controlMap.get(Ei.index).get("fromDate")),e.xp6(),e.Q6J("formControl",ho.controlMap.get(Ei.index).get("toDate"))}}function ln(ki,wo){if(1&ki&&e._UZ(0,"imx-form-control",51)(1,"imx-form-control",51),2&ki){const Ei=e.oxw().$implicit,ho=e.oxw(2);e.Q6J("field",ho.formHandler.formConfiguration.findFormFieldById("media:fromDate"))("control",ho.controlMap.get(Ei.index).get("fromDate"))("form",ho.formHandler.formGroup.get("media"))("formHandler",ho.formHandler)("config",ho.formHandler.formConfiguration),e.xp6(),e.Q6J("field",ho.formHandler.formConfiguration.findFormFieldById("media:toDate"))("control",ho.controlMap.get(Ei.index).get("toDate"))("form",ho.formHandler.formGroup.get("media"))("formHandler",ho.formHandler)("config",ho.formHandler.formConfiguration)}}function He(ki,wo){if(1&ki&&(e.TgZ(0,"td",59)(1,"div",60)(2,"div",61),e._UZ(3,"imx-form-control",51),e.qZA(),e.TgZ(4,"div",62),e.YNc(5,yn,2,2)(6,ln,2,10),e.qZA()()()),2&ki){const Ei=wo.$implicit,ho=e.oxw(2);e.xp6(3),e.Q6J("field",ho.anuallyFieldClone)("control",ho.controlMap.get(Ei.index).get("annually"))("form",ho.formHandler.formGroup.get("media"))("formHandler",ho.formHandler)("config",ho.formHandler.formConfiguration),e.xp6(2),e.um2(5,!0===ho.controlMap.get(Ei.index).get("annually").value?5:6)}}function rt(ki,wo){1&ki&&(e.TgZ(0,"th",64),e.ALo(1,"translate"),e._uU(2," entity.DataObjectMedium.activated "),e.qZA()),2&ki&&e.Q6J("matTooltip",e.lcZ(1,1,"entity.DataObjectMedium.activated"))}function $e(ki,wo){if(1&ki&&(e.TgZ(0,"td",65),e._UZ(1,"imx-form-control",51),e.qZA()),2&ki){const Ei=wo.$implicit,ho=e.oxw(2);e.MGl("matTooltip","AssignmentId: ",ho.controlMap.get(Ei.index).get("assignmentId").value,""),e.xp6(),e.Q6J("field",ho.activatedFieldClone)("control",ho.controlMap.get(Ei.index).get("activated"))("form",ho.formHandler.formGroup.get("media"))("formHandler",ho.formHandler)("config",ho.formHandler.formConfiguration)}}function Ve(ki,wo){1&ki&&e._UZ(0,"th",66)}function Ce(ki,wo){if(1&ki){const Ei=e.EpF();e.TgZ(0,"imx-action-menu-item",70),e.NdJ("click",function(){e.CHM(Ei);const Cr=e.oxw().$implicit,vr=e.oxw(2);return e.KtG(vr.mediaRemove.emit(Cr))}),e._uU(1," imxplatform.common-entity.edit.panels.media.remove-media-assignment "),e.qZA()}2&ki&&e.Q6J("icon","icon-unlink")}function tt(ki,wo){if(1&ki){const Ei=e.EpF();e.TgZ(0,"imx-action-menu-item",70),e.NdJ("click",function(){e.CHM(Ei);const Cr=e.oxw().$implicit,vr=e.oxw(2);return e.KtG(vr.pooledMediaDelete.emit(Cr))}),e._uU(1," imxplatform.common-entity.edit.panels.media.remove-pooled-media "),e.qZA()}2&ki&&e.Q6J("icon","icon-trash")}function ht(ki,wo){if(1&ki){const Ei=e.EpF();e.TgZ(0,"td",67)(1,"imx-dropup-button")(2,"imx-action-menu")(3,"imx-action-menu-item",68),e.NdJ("click",function(){const vr=e.CHM(Ei).$implicit,qr=e.oxw(2);return e.KtG(qr.pooledMediaEdit.emit(vr.pooledMedium))}),e._uU(4," imxplatform.common-entity.edit.panels.media.edit-pooled-media "),e.qZA(),e.TgZ(5,"imx-action-menu-item",68),e.NdJ("click",function(){const vr=e.CHM(Ei).$implicit,qr=e.oxw(2);return e.KtG(qr.showReferencesDialog.emit(vr))}),e._uU(6,"imxplatform.common-entity.list.references"),e.qZA(),e.YNc(7,Ce,2,1,"imx-action-menu-item",69),e.ALo(8,"async"),e.ALo(9,"async"),e.ALo(10,"async"),e.YNc(11,tt,2,1,"imx-action-menu-item",69),e.ALo(12,"async"),e.ALo(13,"async"),e.ALo(14,"async"),e.qZA()()()}if(2&ki){const Ei=wo.$implicit,ho=e.oxw(2);e.xp6(3),e.Q6J("icon","icon-picture"),e.xp6(2),e.Q6J("icon","icon-link"),e.xp6(2),e.Q6J("ngIf",e.lcZ(8,4,ho.formHandler.hasEditPermission("media"))&&e.lcZ(9,6,ho.formHandler.hasSavePermission())&&e.lcZ(10,8,ho.formHandler.hasMediaAssignmentRemovePermission(ho.controlMap.get(Ei.index).value.productlines))),e.xp6(4),e.Q6J("ngIf",e.lcZ(12,10,ho.formHandler.hasEditPermission("media"))&&e.lcZ(13,12,ho.pooledMediumEntityPermissionService.calcDeletePermission(Ei.pooledMedium))&&e.lcZ(14,14,ho.formHandler.hasSavePermission()))}}function Qt(ki,wo){if(1&ki&&(e.TgZ(0,"table",5),e.YNc(1,Je,1,0,"tr",6)(2,dt,1,2,"tr",7),e.ynx(3,8),e.YNc(4,Ie,1,0,"th",9)(5,ot,2,2,"td",10),e.BQk(),e.ynx(6,11),e.YNc(7,ct,3,4,"th",12)(8,nn,6,2,"td",13),e.BQk(),e.ynx(9,14),e.YNc(10,rn,3,4,"th",12)(11,Oo,2,1,"td",13),e.BQk(),e.ynx(12,15),e.YNc(13,no,3,4,"th",16)(14,Li,2,5,"td",17),e.BQk(),e.ynx(15,18),e.YNc(16,ji,3,4,"th",19)(17,Ii,2,5,"td",20),e.BQk(),e.ynx(18,21),e.YNc(19,_i,3,3,"th",22)(20,En,2,5,"td",23),e.BQk(),e.ynx(21,24),e.YNc(22,co,6,11,"th",25)(23,He,7,6,"td",26),e.BQk(),e.ynx(24,27),e.YNc(25,rt,3,3,"th",28)(26,$e,2,6,"td",29),e.BQk(),e.ynx(27,30),e.YNc(28,Ve,1,0,"th",31)(29,ht,15,16,"td",32),e.BQk(),e.qZA()),2&ki){const Ei=e.oxw();e.Q6J("dataSource",Ei.dataSource),e.xp6(),e.Q6J("matHeaderRowDef",Ei.displayedColumns),e.xp6(),e.Q6J("matRowDefColumns",Ei.displayedColumns)}}let Un=(()=>{class ki{constructor(Ei){this.pooledMediumEntityPermissionService=Ei,this.items=[],this.mediaEdit=new e.vpe,this.pooledMediaEdit=new e.vpe,this.mediaRemove=new e.vpe,this.pooledMediaDelete=new e.vpe,this.showReferencesDialog=new e.vpe,this.controlMap=new Map}ngOnChanges(Ei){this.controlMap.clear(),this.items.forEach(ho=>{const Cr=this.formHandler.getFormArrayRowByIndex("media",ho.index);Cr&&(this.controlMap.set(ho.index,Cr),this.controlMap.get(ho.index).get("productlines")&&null==this.controlMap.get(ho.index).get("productlines").value&&this.controlMap.get(ho.index).get("productlines").setValue([]),this.controlMap.get(ho.index).get("productlines")&&this.formHandler.hasMediaAssignmentRemovePermission(this.controlMap.get(ho.index).get("productlines").value).subscribe(vr=>{vr||this.controlMap.get(ho.index).get("activated").disable()}))}),this.dataSource=new lt.by(this.items),this.displayedColumns=this.formHandler.formConfiguration.findArrayFieldById("media").getChildField("productlines")?["thumbnail","title","imageType","sortingValue","languages","productlines","date","activated","actions"]:["thumbnail","title","imageType","sortingValue","languages","date","activated","actions"]}ngOnInit(){this.anuallyFieldClone=Z(this.formHandler.formConfiguration.findFormFieldById("media:annually")),this.anuallyFieldClone.renderLabel=!1,this.activatedFieldClone=Z(this.formHandler.formConfiguration.findFormFieldById("media:activated")),this.activatedFieldClone.renderLabel=!1}isDefinedI18n(Ei,ho){return(0,K.bi)(Ei,ho)}static#e=this.\u0275fac=function(ho){return new(ho||ki)(e.Y36(r.f))};static#t=this.\u0275cmp=e.Xpm({type:ki,selectors:[["imx-media-form-panel-compact-list"]],inputs:{items:"items",formHandler:"formHandler"},outputs:{mediaEdit:"mediaEdit",pooledMediaEdit:"pooledMediaEdit",mediaRemove:"mediaRemove",pooledMediaDelete:"pooledMediaDelete",showReferencesDialog:"showReferencesDialog"},features:[e.TTD],decls:5,vars:2,consts:[[1,"form__content-row"],["noRecord",""],[1,"form__table","compact"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"inactive-row",4,"matRowDef","matRowDefColumns"],["matColumnDef","thumbnail"],["mat-header-cell","","class","thumbnail-column",4,"matHeaderCellDef"],["mat-cell","","class","thumbnail-column",4,"matCellDef"],["matColumnDef","title"],["mat-header-cell","","translate","",3,"matTooltip",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","imageType"],["matColumnDef","sortingValue"],["mat-header-cell","","class","sorting-value-column","translate","",3,"matTooltip",4,"matHeaderCellDef"],["mat-cell","","class","sorting-value-column",4,"matCellDef"],["matColumnDef","languages"],["mat-header-cell","","class","language-column","translate","",3,"matTooltip",4,"matHeaderCellDef"],["mat-cell","","class","language-column",4,"matCellDef"],["matColumnDef","productlines"],["mat-header-cell","","class","productline-column","translate","",3,"matTooltip",4,"matHeaderCellDef"],["mat-cell","","class","productline-column",4,"matCellDef"],["matColumnDef","date"],["mat-header-cell","","class","date-column",3,"matTooltip",4,"matHeaderCellDef"],["mat-cell","","class","date-column",4,"matCellDef"],["matColumnDef","activated"],["mat-header-cell","","class","activated-column","translate","",3,"matTooltip",4,"matHeaderCellDef"],["mat-cell","","class","activated-column","matTooltipShowDelay","5000",3,"matTooltip",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","",1,"thumbnail-column"],["mat-cell","",1,"thumbnail-column"],["size","small",3,"medium","hasTooltip"],["mat-header-cell","","translate","",3,"matTooltip"],["mat-cell",""],[4,"ngIf","ngIfElse"],["withoutTitle",""],["idAndCopyright",""],[3,"click"],[1,"title-id","txt-ellipsis"],[4,"ngTemplateOutlet"],["class","new-marker icon-asterisk",4,"ngIf"],[1,"txt-sm","title-id"],[1,"txt-sm","title-id","txt-ellipsis"],[1,"new-marker","icon-asterisk"],[4,"ngIf"],[3,"field","control","form","formHandler","config"],["mat-header-cell","","translate","",1,"sorting-value-column",3,"matTooltip"],["mat-cell","",1,"sorting-value-column"],["mat-header-cell","","translate","",1,"language-column",3,"matTooltip"],["mat-cell","",1,"language-column"],["mat-header-cell","","translate","",1,"productline-column",3,"matTooltip"],["mat-cell","",1,"productline-column"],["mat-header-cell","",1,"date-column",3,"matTooltip"],["mat-cell","",1,"date-column"],[1,"date-column__content"],[1,"inner__checkbox"],[1,"dates__content"],[3,"formControl"],["mat-header-cell","","translate","",1,"activated-column",3,"matTooltip"],["mat-cell","","matTooltipShowDelay","5000",1,"activated-column",3,"matTooltip"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column"],[3,"icon","click"],["additionalStyle","delete",3,"icon","click",4,"ngIf"],["additionalStyle","delete",3,"icon","click"]],template:function(ho,Cr){if(1&ho&&(e.TgZ(0,"div",0),e.YNc(1,Xt,2,0,"ng-template",null,1,e.W1O),e.TgZ(3,"div",2),e.YNc(4,Qt,30,3,"table",3),e.qZA()()),2&ho){const vr=e.MAs(2);e.xp6(4),e.Q6J("ngIf",Cr.dataSource&&Cr.dataSource.data.length>0)("ngIfElse",vr)}},dependencies:[Se.O5,Se.tP,n.JJ,lt.BZ,lt.fO,lt.as,lt.w1,lt.Dz,lt.nj,lt.ge,lt.ev,lt.XQ,lt.Gk,Pt.gM,n.oH,at.Pi,Oe.p,ye.z,ve.t,ft.O,Dt.A,Rn.l,me.F,Se.Ov,at.X$,ti.j],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.form__table.compact[_ngcontent-%COMP%]     imx-base-input-label{display:none}.title-id[_ngcontent-%COMP%]{display:block}.thumbnail-column[_ngcontent-%COMP%]{width:45px;border-right:none!important}.productline-column[_ngcontent-%COMP%]{width:25%}.language-column[_ngcontent-%COMP%]{width:13%}.sorting-value-column[_ngcontent-%COMP%]{width:55px}.date-column[_ngcontent-%COMP%]{width:14%}.date-column[_ngcontent-%COMP%]   .date-column__content[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:3px;align-items:center}.date-column[_ngcontent-%COMP%]   .date-column__content[_ngcontent-%COMP%]   .inner__checkbox[_ngcontent-%COMP%]{max-width:18px}.date-column[_ngcontent-%COMP%]   .date-column__content[_ngcontent-%COMP%]   .dates__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3px;max-width:120px}.activated-column[_ngcontent-%COMP%]{width:5%;text-align:center}.inactive-row[_ngcontent-%COMP%]{background-color:#fff}"]})}return ki})();var Yt=a(59038),Fn=a(84102),yt=a(94289),Bt=a(32458),li=a(80617);function si(ki,wo){if(1&ki&&(e.TgZ(0,"a",43),e._UZ(1,"imx-media-thumbnail",44),e.qZA()),2&ki){const Ei=e.oxw().$implicit;e.s9C("href",Ei.deeplink,e.LSH),e.xp6(),e.Q6J("medium",Ei)}}function oo(ki,wo){if(1&ki&&e._UZ(0,"imx-media-thumbnail",44),2&ki){const Ei=e.oxw().$implicit;e.Q6J("medium",Ei)}}function _o(ki,wo){if(1&ki&&(e.ynx(0),e._uU(1),e.ALo(2,"readI18n"),e.BQk()),2&ki){const Ei=e.oxw().$implicit,ho=e.oxw();e.xp6(),e.hij(" ",e.xi3(2,1,null==Ei||null==Ei.pooledMedium?null:Ei.pooledMedium.title,ho.formHandler.formLanguage.getEditLanguage().name)," ")}}function Hn(ki,wo){1&ki&&e._UZ(0,"span",45)}function mo(ki,wo){1&ki&&(e._uU(0),e.ALo(1,"translate")),2&ki&&e.hij(" [",e.lcZ(1,1,"imxplatform.common-entity.edit.panels.media.no-title"),"] ")}function vn(ki,wo){if(1&ki&&(e.TgZ(0,"p",19),e._uU(1),e.qZA()),2&ki){const Ei=e.oxw().$implicit;e.xp6(),e.AsE("",null==Ei?null:Ei.imageHeight," x ",null==Ei?null:Ei.imageWidth,"")}}function Ji(ki,wo){if(1&ki&&(e.TgZ(0,"p",19),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",20),e._uU(4),e.ALo(5,"readI18n"),e.qZA()()),2&ki){const Ei=e.oxw().$implicit,ho=e.oxw();e.xp6(),e.hij("",e.lcZ(2,2,"imxplatform.common-entity.edit.panels.media.profile"),": "),e.xp6(3),e.Oqu(e.lcZ(5,4,ho.mapImageType(null==Ei?null:Ei.imageType)))}}function wn(ki,wo){if(1&ki&&(e.TgZ(0,"div")(1,"p",19),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"p",25),e._uU(5),e.ALo(6,"readI18n"),e.qZA()()),2&ki){const Ei=e.oxw().$implicit;e.xp6(2),e.hij("",e.lcZ(3,2,"imxplatform.common-entity.edit.panels.media.license"),":"),e.xp6(3),e.Oqu(e.lcZ(6,4,null==Ei||null==Ei.pooledMedium||null==Ei.pooledMedium.mediaLicense?null:Ei.pooledMedium.mediaLicense.i18nName))}}function po(ki,wo){if(1&ki&&(e.TgZ(0,"div")(1,"p",19),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"p",25),e._uU(5),e.ALo(6,"date"),e.ALo(7,"convertTimestamps"),e.ALo(8,"translate"),e.qZA()()),2&ki){const Ei=e.oxw().$implicit;e.xp6(2),e.hij("",e.lcZ(3,4,"imxplatform.common-entity.edit.panels.media.creation"),":"),e.xp6(3),e.lnq(" ",e.xi3(6,6,e.lcZ(7,9,null==Ei||null==Ei.pooledMedium?null:Ei.pooledMedium.creationTime),"dd.MM.yyyy - HH:mm")," ",e.lcZ(8,11,"imxplatform.common.time-indicator")," (",null==Ei||null==Ei.pooledMedium?null:Ei.pooledMedium.creationFrom,")")}}function Kn(ki,wo){if(1&ki&&(e.TgZ(0,"div",24)(1,"p",19),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"p",25),e._uU(5),e.ALo(6,"date"),e.ALo(7,"convertTimestamps"),e.ALo(8,"translate"),e.qZA()()),2&ki){const Ei=e.oxw().$implicit;e.xp6(2),e.hij("",e.lcZ(3,4,"imxplatform.common-entity.edit.panels.media.lastChange"),":"),e.xp6(3),e.lnq(" ",e.xi3(6,6,e.lcZ(7,9,null==Ei||null==Ei.pooledMedium?null:Ei.pooledMedium.lastChangeTime),"dd.MM.yyyy - HH:mm")," ",e.lcZ(8,11,"imxplatform.common.time-indicator")," (",null==Ei||null==Ei.pooledMedium?null:Ei.pooledMedium.lastChangeFrom,")")}}function Vn(ki,wo){1&ki&&e.GkF(0)}function Wi(ki,wo){if(1&ki){const Ei=e.EpF();e.TgZ(0,"imx-action-menu-item",46),e.NdJ("click",function(){e.CHM(Ei);const Cr=e.oxw().$implicit,vr=e.oxw();return e.KtG(vr.mediaRemove.emit(Cr))}),e._uU(1," imxplatform.common-entity.edit.panels.media.remove-media-assignment "),e.qZA()}2&ki&&e.Q6J("icon","icon-unlink")}function Ft(ki,wo){if(1&ki){const Ei=e.EpF();e.TgZ(0,"imx-action-menu-item",46),e.NdJ("click",function(){e.CHM(Ei);const Cr=e.oxw().$implicit,vr=e.oxw();return e.KtG(vr.pooledMediaDelete.emit(Cr))}),e._uU(1," imxplatform.common-entity.edit.panels.media.remove-pooled-media "),e.qZA()}2&ki&&e.Q6J("icon","icon-trash")}function Oi(ki,wo){1&ki&&(e.TgZ(0,"p",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ki&&(e.xp6(),e.hij("",e.lcZ(2,1,"imxplatform.common-entity.edit.panels.media.description"),":"))}function On(ki,wo){if(1&ki&&(e.TgZ(0,"p",19),e._uU(1),e.ALo(2,"readI18n"),e.qZA()),2&ki){const Ei=e.oxw().$implicit,ho=e.oxw();e.xp6(),e.Oqu(e.xi3(2,1,null==Ei||null==Ei.pooledMedium?null:Ei.pooledMedium.description,ho.formHandler.formLanguage.getEditLanguage().name))}}function _n(ki,wo){1&ki&&(e.TgZ(0,"p",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ki&&(e.xp6(),e.hij("",e.lcZ(2,1,"imxplatform.common-entity.edit.panels.media.link"),":"))}function st(ki,wo){if(1&ki&&(e.TgZ(0,"p",47),e._uU(1),e.qZA()),2&ki){const Ei=e.oxw().$implicit;e.xp6(),e.Oqu(null==Ei?null:Ei.deeplink)}}function Dn(ki,wo){1&ki&&(e.TgZ(0,"p",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ki&&(e.xp6(),e.hij("",e.lcZ(2,1,"entity.PooledMedium.sourceUrl"),":"))}function Wt(ki,wo){if(1&ki&&(e.TgZ(0,"p",47),e._uU(1),e.qZA()),2&ki){const Ei=e.oxw().$implicit;e.xp6(),e.Oqu(null==Ei?null:Ei.pooledMedium.sourceUrl)}}function kn(ki,wo){1&ki&&(e.TgZ(0,"p",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ki&&(e.xp6(),e.hij("",e.lcZ(2,1,"entity.PooledMedium.author"),":"))}function Fi(ki,wo){if(1&ki&&(e.TgZ(0,"p",19),e._uU(1),e.qZA()),2&ki){const Ei=e.oxw().$implicit;e.xp6(),e.Oqu(null==Ei?null:Ei.pooledMedium.author)}}function ui(ki,wo){1&ki&&(e.TgZ(0,"p",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ki&&(e.xp6(),e.hij("",e.lcZ(2,1,"entity.PooledMedium.authorUrl"),":"))}function Fo(ki,wo){if(1&ki&&(e.TgZ(0,"p",47),e._uU(1),e.qZA()),2&ki){const Ei=e.oxw().$implicit;e.xp6(),e.Oqu(null==Ei?null:Ei.pooledMedium.authorUrl)}}function At(ki,wo){1&ki&&(e.TgZ(0,"p",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ki&&(e.xp6(),e.hij("",e.lcZ(2,1,"entity.PooledMedium.client"),":"))}function Jn(ki,wo){if(1&ki&&(e.TgZ(0,"p",19),e._uU(1),e.qZA()),2&ki){const Ei=e.oxw().$implicit;e.xp6(),e.Oqu(null==Ei?null:Ei.pooledMedium.client.name)}}const Bn=ki=>({new:ki}),Bi=ki=>({item:ki});function $n(ki,wo){if(1&ki){const Ei=e.EpF();e.TgZ(0,"mat-list-item",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6),e.YNc(5,si,2,2,"a",7)(6,oo,1,1,"ng-template",null,8,e.W1O),e.qZA(),e.TgZ(8,"div",9),e._UZ(9,"imx-media-provider-icon",10),e.qZA(),e.TgZ(10,"div",11)(11,"div",12)(12,"div",13)(13,"a",14),e.NdJ("click",function(){const vr=e.CHM(Ei).$implicit,qr=e.oxw();return e.KtG(qr.pooledMediaEdit.emit(vr.pooledMedium))}),e.YNc(14,_o,3,4,"ng-container",15)(15,Hn,1,0,"span",16),e.qZA(),e.YNc(16,mo,2,3,"ng-template",null,17,e.W1O)(18,vn,2,2,"p",18),e.TgZ(19,"p",19),e._uU(20,"ID: "),e.TgZ(21,"span",20),e._uU(22),e.qZA()(),e.TgZ(23,"p",19),e._uU(24),e.ALo(25,"translate"),e.TgZ(26,"span",20),e._uU(27),e.qZA()(),e.YNc(28,Ji,6,6,"p",18),e.TgZ(29,"p",19),e._uU(30),e.ALo(31,"translate"),e.TgZ(32,"span",20),e._uU(33),e.ALo(34,"translate"),e.qZA()()(),e.TgZ(35,"div",21),e._UZ(36,"imx-language-flag",22),e.qZA(),e.TgZ(37,"div",13),e.YNc(38,wn,7,6,"div",23),e.TgZ(39,"div",24)(40,"p",19),e._uU(41),e.ALo(42,"translate"),e.qZA(),e.TgZ(43,"p",25),e._uU(44),e.ALo(45,"readI18n"),e.qZA()()(),e.TgZ(46,"div",26),e.YNc(47,po,9,13,"div",23)(48,Kn,9,13,"div",27),e.qZA()(),e.TgZ(49,"div",12)(50,"div",28),e.YNc(51,Vn,1,0,"ng-container",29),e.qZA()()()()(),e.TgZ(52,"div",30)(53,"imx-dropup-button")(54,"imx-action-menu")(55,"imx-action-menu-item",31),e.NdJ("click",function(){const vr=e.CHM(Ei).$implicit,qr=e.oxw();return e.KtG(qr.pooledMediaEdit.emit(vr.pooledMedium))}),e._uU(56," imxplatform.common-entity.edit.panels.media.edit-pooled-media "),e.qZA(),e.TgZ(57,"imx-action-menu-item",31),e.NdJ("click",function(){const vr=e.CHM(Ei).$implicit,qr=e.oxw();return e.KtG(qr.showReferencesDialog.emit(vr))}),e._uU(58,"imxplatform.common-entity.list.references"),e.qZA(),e.YNc(59,Wi,2,1,"imx-action-menu-item",32),e.ALo(60,"async"),e.ALo(61,"async"),e.ALo(62,"async"),e.YNc(63,Ft,2,1,"imx-action-menu-item",32),e.ALo(64,"async"),e.ALo(65,"async"),e.ALo(66,"async"),e.qZA()(),e._UZ(67,"imx-entity-state",33),e.qZA()(),e.TgZ(68,"div",34)(69,"div",35)(70,"div",36),e.NdJ("click",function(){const vr=e.CHM(Ei).$implicit,qr=e.oxw();return e.KtG(qr.toggleExtension(vr))}),e.TgZ(71,"p"),e._UZ(72,"span",37),e._uU(73),e.ALo(74,"translate"),e.qZA()()(),e.TgZ(75,"div",38)(76,"div",39)(77,"div",40),e.YNc(78,Oi,3,3,"p",41)(79,On,3,4,"p",18)(80,_n,3,3,"p",41)(81,st,2,1,"p",42)(82,Dn,3,3,"p",41)(83,Wt,2,1,"p",42)(84,kn,3,3,"p",41)(85,Fi,2,1,"p",18)(86,ui,3,3,"p",41)(87,Fo,2,1,"p",42)(88,At,3,3,"p",41)(89,Jn,2,1,"p",18),e.qZA()()()()()}if(2&ki){const Ei=wo.$implicit,ho=e.MAs(7),Cr=e.MAs(17),vr=e.oxw();e.xp6(),e.Q6J("ngClass",e.VKq(73,Bn,null==Ei.id)),e.xp6(4),e.Q6J("ngIf",Ei.deeplink)("ngIfElse",ho),e.xp6(4),e.Q6J("pooledMedium",null==Ei?null:Ei.pooledMedium),e.xp6(5),e.Q6J("ngIf",vr.isDefinedI18n(null==Ei||null==Ei.pooledMedium?null:Ei.pooledMedium.title,vr.formHandler.formLanguage.getEditLanguage().name))("ngIfElse",Cr),e.xp6(),e.Q6J("ngIf",null==Ei.id),e.xp6(3),e.Q6J("ngIf",Ei.imageHeight&&Ei.imageWidth),e.xp6(4),e.Oqu(null==Ei||null==Ei.pooledMedium?null:Ei.pooledMedium.id),e.xp6(2),e.hij("",e.lcZ(25,47,"imxplatform.common-entity.edit.panels.media.sorting"),": "),e.xp6(3),e.Oqu(Ei.sortingValue),e.xp6(),e.Q6J("ngIf",null==Ei?null:Ei.imageType),e.xp6(2),e.hij("",e.lcZ(31,49,"imxplatform.common-entity.edit.panels.media.active"),": "),e.xp6(3),e.Oqu(e.lcZ(34,51,null!=Ei&&Ei.deactivated?"imxplatform.common.false":"imxplatform.common.true")),e.xp6(3),e.Q6J("languages",vr.mapLanguage(Ei.languages)),e.xp6(2),e.Q6J("ngIf",null==Ei||null==Ei.pooledMedium?null:Ei.pooledMedium.mediaLicense),e.xp6(3),e.hij("",e.lcZ(42,53,"imxplatform.common-entity.edit.panels.media.copyright"),":"),e.xp6(3),e.Oqu(e.Dn7(45,55,null==Ei||null==Ei.pooledMedium?null:Ei.pooledMedium.copyright,vr.formHandler.formLanguage.getEditLanguage().name,!1)),e.xp6(3),e.Q6J("ngIf",null==Ei||null==Ei.pooledMedium?null:Ei.pooledMedium.creationTime),e.xp6(),e.Q6J("ngIf",null==Ei||null==Ei.pooledMedium?null:Ei.pooledMedium.lastChangeTime),e.xp6(3),e.Q6J("ngTemplateOutlet",vr.bottomRowTemplate)("ngTemplateOutletContext",e.VKq(75,Bi,Ei)),e.xp6(4),e.Q6J("icon","icon-picture"),e.xp6(2),e.Q6J("icon","icon-link"),e.xp6(2),e.Q6J("ngIf",e.lcZ(60,59,vr.formHandler.hasEditPermission("media"))&&e.lcZ(61,61,vr.formHandler.hasSavePermission())&&e.lcZ(62,63,vr.checkAssignmentRemovePermission(Ei))),e.xp6(4),e.Q6J("ngIf",e.lcZ(64,65,vr.formHandler.hasEditPermission("media"))&&e.lcZ(65,67,vr.pooledMediumEntityPermissionService.calcDeletePermission(Ei.pooledMedium))&&e.lcZ(66,69,vr.formHandler.hasSavePermission())),e.xp6(4),e.Q6J("additionalClass","form__list-row-action-box")("fromDate",Ei.fromDate)("toDate",Ei.toDate)("annually",Ei.annually)("inline",!1)("checkForDates",!0),e.xp6(3),e.Q6J("@activeInactive",vr.isExtensionShown(Ei)?"active":"inactive"),e.xp6(3),e.hij(" ",e.lcZ(74,71,"imxplatform.common-entity.edit.panels.media.details"),""),e.xp6(2),e.Q6J("@openClose",vr.isExtensionShown(Ei)?"open":"closed"),e.xp6(3),e.Q6J("ngIf",null==Ei?null:Ei.pooledMedium.description),e.xp6(),e.Q6J("ngIf",null==Ei?null:Ei.pooledMedium.description),e.xp6(),e.Q6J("ngIf",null==Ei?null:Ei.deeplink),e.xp6(),e.Q6J("ngIf",null==Ei?null:Ei.deeplink),e.xp6(),e.Q6J("ngIf",null==Ei?null:Ei.pooledMedium.sourceUrl),e.xp6(),e.Q6J("ngIf",null==Ei?null:Ei.pooledMedium.sourceUrl),e.xp6(),e.Q6J("ngIf",null==Ei?null:Ei.pooledMedium.author),e.xp6(),e.Q6J("ngIf",null==Ei?null:Ei.pooledMedium.author),e.xp6(),e.Q6J("ngIf",null==Ei?null:Ei.pooledMedium.authorUrl),e.xp6(),e.Q6J("ngIf",null==Ei?null:Ei.pooledMedium.authorUrl),e.xp6(),e.Q6J("ngIf",null==Ei?null:Ei.pooledMedium.client),e.xp6(),e.Q6J("ngIf",null==Ei?null:Ei.pooledMedium.client)}}let Ui=(()=>{class ki{constructor(Ei){this.pooledMediumEntityPermissionService=Ei,this.items=[],this.languages=[],this.imageTypes=[],this.mediaEdit=new e.vpe,this.pooledMediaEdit=new e.vpe,this.mediaRemove=new e.vpe,this.pooledMediaDelete=new e.vpe,this.showReferencesDialog=new e.vpe,this.shownExtensionsIndex=new Set}isDefinedI18n(Ei,ho){return(0,K.bi)(Ei,ho)}toggleExtension(Ei){const ho=Ei.index;this.shownExtensionsIndex.has(ho)?this.shownExtensionsIndex.delete(ho):this.shownExtensionsIndex.add(ho)}isExtensionShown(Ei){return this.shownExtensionsIndex.has(Ei.index)}mapLanguage(Ei){return Ei&&Ei.length>0&&"name"in Ei[0]?Ei:Ei?Ei.map(ho=>this.languages.find(Cr=>Cr.id===ho.id)):void 0}mapImageType(Ei){if(Ei&&"i18nName"in Ei)return Ei.i18nName;if(Ei){const ho=this.imageTypes.find(Cr=>Cr.id===Ei.id);if(ho)return ho.i18nName}}checkAssignmentRemovePermission(Ei){return this.formHandler.hasMediaAssignmentRemovePermission(Ei.productlines?.map(ho=>ho.id))}static#e=this.\u0275fac=function(ho){return new(ho||ki)(e.Y36(r.f))};static#t=this.\u0275cmp=e.Xpm({type:ki,selectors:[["imx-media-form-panel-default-list"]],inputs:{items:"items",languages:"languages",imageTypes:"imageTypes",formHandler:"formHandler",bottomRowTemplate:"bottomRowTemplate"},outputs:{mediaEdit:"mediaEdit",pooledMediaEdit:"pooledMediaEdit",mediaRemove:"mediaRemove",pooledMediaDelete:"pooledMediaDelete",showReferencesDialog:"showReferencesDialog"},decls:3,vars:1,consts:[[1,"form__list","media-list"],["class","form__list-item",4,"ngFor","ngForOf"],[1,"form__list-item"],[1,"form__list-row-wrapper",3,"ngClass"],[1,"form__list-row"],[1,"form__list-content-wrapper"],[1,"form__list-column","image-column"],["target","_blank",3,"href",4,"ngIf","ngIfElse"],["noDeepLink",""],[1,"form__list-column","col2","icon-column"],[3,"pooledMedium"],[1,"form__list-content-rows"],[1,"form__list-content"],[1,"form__list-column","col3"],[1,"txt-bg",3,"click"],[4,"ngIf","ngIfElse"],["class","new-marker icon-asterisk",4,"ngIf"],["withoutTitle",""],["class","txt-grey",4,"ngIf"],[1,"txt-grey"],[1,"txt-default"],[1,"form__list-column","col4"],[3,"languages"],[4,"ngIf"],[1,"margin-top"],[1,"txt-md"],[1,"form__list-column","col5"],["class","margin-top",4,"ngIf"],[1,"form__list-column"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"form__list-row-action"],[3,"icon","click"],["additionalStyle","delete",3,"icon","click",4,"ngIf"],[3,"additionalClass","fromDate","toDate","annually","inline","checkForDates"],[1,"form__list-extension"],[1,"form__list-extension-header"],["tabindex","0",1,"form__list-column","tab",3,"click"],[1,"icon","icon-database"],[1,"form__list-extension-content"],[1,"row-wrapper"],[1,"form__list-extension-row"],["class","txt-md",4,"ngIf"],["class","txt-grey txt-break",4,"ngIf"],["target","_blank",3,"href"],["size","medium",3,"medium"],[1,"new-marker","icon-asterisk"],["additionalStyle","delete",3,"icon","click"],[1,"txt-grey","txt-break"]],template:function(ho,Cr){1&ho&&(e.TgZ(0,"div",0)(1,"mat-list"),e.YNc(2,$n,90,77,"mat-list-item",1),e.qZA()()),2&ho&&(e.xp6(2),e.Q6J("ngForOf",Cr.items))},dependencies:[Se.mk,Se.sg,Se.O5,Se.tP,Yt.i$,Yt.Tg,Oe.p,ye.z,ve.t,Fn.n,yt.l,Bt.I,Rn.l,me.F,Se.Ov,Se.uU,at.X$,li.E,ti.j],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__list[_ngcontent-%COMP%]   .form__list-item[_ngcontent-%COMP%]{color:#3e3e3e;font-size:12px;line-height:16px;margin-bottom:10px;height:100%!important}.form__list[_ngcontent-%COMP%]   .form__list-row-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;box-sizing:border-box;position:relative;height:inherit;width:100%}.form__list[_ngcontent-%COMP%]   .form__list-row-wrapper.new[_ngcontent-%COMP%]   .form__list-row[_ngcontent-%COMP%]{background-color:#eefafa}.form__list[_ngcontent-%COMP%]   .form__list-row[_ngcontent-%COMP%]{background:#fff;border:.5px solid #ced4e0;box-sizing:border-box;width:100%;padding:20px;z-index:1}@media (max-width: 900px){.form__list[_ngcontent-%COMP%]   .form__list-row[_ngcontent-%COMP%]{padding:10px}}.form__list[_ngcontent-%COMP%]   .form__list-column[_ngcontent-%COMP%]{margin-right:10px;word-break:break-word}@media (max-width: 900px){.form__list[_ngcontent-%COMP%]   .form__list-column[_ngcontent-%COMP%]{margin-right:5px}}.form__list[_ngcontent-%COMP%]   .form__list-column[_ngcontent-%COMP%]   .margin-top[_ngcontent-%COMP%]{margin-top:7px}.form__list[_ngcontent-%COMP%]   .form__list-column[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style-type:square;list-style-position:inside}.form__list[_ngcontent-%COMP%]   .form__list-column[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px}.form__list[_ngcontent-%COMP%]   .form__list-content-wrapper[_ngcontent-%COMP%]{display:flex}.form__list[_ngcontent-%COMP%]   .form__list-content-wrapper[_ngcontent-%COMP%]   .form__list-column.icon-column[_ngcontent-%COMP%]{font-size:20px;color:#000;line-height:22px}.form__list[_ngcontent-%COMP%]   .form__list-content-wrapper[_ngcontent-%COMP%]   .form__list-column.image-column[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100px;height:100px;object-fit:cover}@media (max-width: 900px){.form__list[_ngcontent-%COMP%]   .form__list-content-wrapper[_ngcontent-%COMP%]   .form__list-column.image-column[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:50px;height:50px}}.form__list[_ngcontent-%COMP%]   .form__list-content-wrapper[_ngcontent-%COMP%]   .form__list-column.image-column.placeholder[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:unset}.form__list[_ngcontent-%COMP%]   .form__list-content-wrapper[_ngcontent-%COMP%]   .form__list-column.col3[_ngcontent-%COMP%]{flex-basis:450px}.form__list[_ngcontent-%COMP%]   .form__list-content-wrapper[_ngcontent-%COMP%]   .form__list-column.col4[_ngcontent-%COMP%]{width:20px}.form__list[_ngcontent-%COMP%]   .form__list-content-wrapper[_ngcontent-%COMP%]   .form__list-column.col5[_ngcontent-%COMP%]{flex-basis:400px}.form__list[_ngcontent-%COMP%]   .form__list-content[_ngcontent-%COMP%]{display:-webkit-flex;display:flex;flex-direction:row;margin-bottom:10px;width:100%}.form__list[_ngcontent-%COMP%]   .form__list-content[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.form__list[_ngcontent-%COMP%]   .form__list-content-rows[_ngcontent-%COMP%]{width:100%}.form__list[_ngcontent-%COMP%]   .form__list-row-action[_ngcontent-%COMP%]{min-height:100%;display:flex;flex-direction:column;padding-left:5px;text-align:center;position:relative;z-index:1;min-width:40px}@media (max-width: 900px){.form__list[_ngcontent-%COMP%]   .form__list-row-action[_ngcontent-%COMP%]{min-width:30px;padding-left:2px}}.form__list[_ngcontent-%COMP%]   .form__list-row-action[_ngcontent-%COMP%]   .form__list-row-action-box[_ngcontent-%COMP%]{flex:1;display:flex;justify-content:center;align-items:center}.form__list[_ngcontent-%COMP%]   .form__list-row-action[_ngcontent-%COMP%]   .form__list-row-action-box.menu[_ngcontent-%COMP%]{background:#0a2663;color:#fff;cursor:pointer}.form__list[_ngcontent-%COMP%]   .form__list-row-action[_ngcontent-%COMP%]   .form__list-row-action-box[_ngcontent-%COMP%] ~ .form__list-row-action-box[_ngcontent-%COMP%]{margin-top:5px}.form__list[_ngcontent-%COMP%]   .form__list-extension[_ngcontent-%COMP%]{background:#eefafa;border:1px solid #ced4e0;position:relative;top:-10px}.form__list[_ngcontent-%COMP%]   .form__list-extension-header[_ngcontent-%COMP%]{display:flex;margin:0}.form__list[_ngcontent-%COMP%]   .form__list-extension-header[_ngcontent-%COMP%]   .tab[_ngcontent-%COMP%]{margin:20px 10px 10px 20px;padding:7px 10px;cursor:pointer;border-radius:3px}@media (max-width: 900px){.form__list[_ngcontent-%COMP%]   .form__list-extension-header[_ngcontent-%COMP%]   .tab[_ngcontent-%COMP%]{margin:10px 5px 5px 10px}}.form__list[_ngcontent-%COMP%]   .form__list-extension-content[_ngcontent-%COMP%]   .row-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-bottom:5px}.form__list[_ngcontent-%COMP%]   .form__list-extension-row[_ngcontent-%COMP%]{background-color:#fff;padding:10px 65px 10px 10px;margin:0 20px 10px;width:100%;border-radius:3px;display:flex;flex-direction:column;position:relative}.form__list[_ngcontent-%COMP%]   .form__list-extension-row[_ngcontent-%COMP%]   .margin-top[_ngcontent-%COMP%]{margin-top:7px}.form__list[_ngcontent-%COMP%]   .form__list-extension-row[_ngcontent-%COMP%]   .form__list-content[_ngcontent-%COMP%]{margin-bottom:0}.form__list[_ngcontent-%COMP%]   .form__list-extension-row[_ngcontent-%COMP%]   .form__list-column[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{margin-right:5px}.form__list-extension-content[_ngcontent-%COMP%]{overflow:hidden}"],data:{animation:Y.L5}})}return ki})();const Xo=()=>[Se.O5,n.JJ,Ue.oG,n.oH,We.J,et.o,Et.J,Un,Ui,Se.Ov,at.X$];function bt(ki,wo){if(1&ki&&(e.TgZ(0,"span",25)(1,"b"),e._uU(2),e.qZA(),e._uU(3),e.ALo(4,"translate"),e.qZA()),2&ki){const Ei=e.oxw(3);e.xp6(2),e.hij("(",Ei.numberOfNewAssigned,""),e.xp6(),e.hij(" ",e.lcZ(4,2,"imxplatform.common-entity.edit.panels.media.new-assigned")," )")}}function an(ki,wo){if(1&ki){const Ei=e.EpF();e.TgZ(0,"imx-media-form-panel-default-list",26),e.NdJ("mediaEdit",function(Cr){e.CHM(Ei);const vr=e.oxw(3);return e.KtG(vr.editMediaAssignment(Cr))})("pooledMediaEdit",function(Cr){e.CHM(Ei);const vr=e.oxw(3);return e.KtG(vr.editPooledMedium(Cr))})("mediaRemove",function(Cr){e.CHM(Ei);const vr=e.oxw(3);return e.KtG(vr.removeMediaAssignment(Cr))})("pooledMediaDelete",function(Cr){e.CHM(Ei);const vr=e.oxw(3);return e.KtG(vr.deletePooledMedium(Cr))})("showReferencesDialog",function(Cr){e.CHM(Ei);const vr=e.oxw(3);return e.KtG(vr.showReferencesDialog(Cr))}),e.qZA()}if(2&ki){const Ei=e.oxw(3);e.Q6J("formHandler",Ei.formHandler)("items",Ei.filteredMediaResult)("languages",Ei.languages)("imageTypes",Ei.imageTypes)("bottomRowTemplate",Ei.bottomRowTemplate)}}function Wn(ki,wo){if(1&ki){const Ei=e.EpF();e.TgZ(0,"imx-media-form-panel-compact-list",27),e.NdJ("mediaEdit",function(Cr){e.CHM(Ei);const vr=e.oxw(3);return e.KtG(vr.editMediaAssignment(Cr))})("pooledMediaEdit",function(Cr){e.CHM(Ei);const vr=e.oxw(3);return e.KtG(vr.editPooledMedium(Cr))})("mediaRemove",function(Cr){e.CHM(Ei);const vr=e.oxw(3);return e.KtG(vr.removeMediaAssignment(Cr))})("pooledMediaDelete",function(Cr){e.CHM(Ei);const vr=e.oxw(3);return e.KtG(vr.deletePooledMedium(Cr))})("showReferencesDialog",function(Cr){e.CHM(Ei);const vr=e.oxw(3);return e.KtG(vr.showReferencesDialog(Cr))}),e.qZA()}if(2&ki){const Ei=e.oxw(3);e.Q6J("formHandler",Ei.formHandler)("items",Ei.filteredMediaResult)}}function eo(ki,wo){if(1&ki){const Ei=e.EpF();e.TgZ(0,"imx-paginator",28),e.NdJ("page",function(Cr){e.CHM(Ei);const vr=e.oxw(3);return e.KtG(vr.onPageChange(Cr))}),e.qZA()}if(2&ki){const Ei=e.oxw(3);e.Q6J("length",Ei.currentFilteredSize)("pageIndex",Ei.currentPageIndex)("pageSize",Ei.currentPageSize)("pageLinks",7)}}function _r(ki,wo){if(1&ki){const Ei=e.EpF();e.TgZ(0,"button",23),e.NdJ("click",function(){e.CHM(Ei);const Cr=e.oxw(3);return e.KtG(Cr.openAssignPanel(void 0,void 0,!0))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&ki&&(e.xp6(),e.hij(" ",e.lcZ(2,1,"imxplatform.common-entity.edit.panels.media.upload")," "))}const hr=ki=>({count:ki}),In=ki=>[ki],Wr=(ki,wo)=>[ki,wo];function qi(ki,wo){if(1&ki){const Ei=e.EpF();e.TgZ(0,"div",9)(1,"div",10)(2,"div",11)(3,"div",12)(4,"p")(5,"b"),e._uU(6),e.qZA(),e._uU(7),e.ALo(8,"translate"),e.YNc(9,bt,5,4,"span",13),e._UZ(10,"imx-lockable-input",14),e.qZA()(),e.TgZ(11,"div",15)(12,"div",16)(13,"mat-checkbox",17),e.NdJ("change",function(Cr){e.CHM(Ei);const vr=e.oxw(2);return e.KtG(vr.toggleType(Cr,[vr.MEDIA_TYPE_IMAGE]))}),e._uU(14),e.ALo(15,"translate"),e.qZA(),e.TgZ(16,"mat-checkbox",17),e.NdJ("change",function(Cr){e.CHM(Ei);const vr=e.oxw(2);return e.KtG(vr.toggleType(Cr,[vr.MEDIA_TYPE_VIDEO]))}),e._uU(17),e.ALo(18,"translate"),e.qZA(),e.TgZ(19,"mat-checkbox",17),e.NdJ("change",function(Cr){e.CHM(Ei);const vr=e.oxw(2);return e.KtG(vr.toggleType(Cr,[vr.MEDIA_TYPE_FILE,vr.MEDIA_TYPE_PDF]))}),e._uU(20),e.ALo(21,"translate"),e.qZA()(),e.TgZ(22,"div",18),e._UZ(23,"imx-base-select",19),e.ALo(24,"async"),e.qZA(),e.TgZ(25,"div",18),e._UZ(26,"imx-base-select",19),e.qZA()()(),e.YNc(27,an,1,5,"imx-media-form-panel-default-list",20)(28,Wn,1,2,"imx-media-form-panel-compact-list",21)(29,eo,1,4,"imx-paginator",22),e.TgZ(30,"button",23),e.NdJ("click",function(){e.CHM(Ei);const Cr=e.oxw(2);return e.KtG(Cr.openAssignPanel())}),e._uU(31),e.ALo(32,"translate"),e.qZA(),e.YNc(33,_r,3,3,"button",24),e.ALo(34,"async"),e.ALo(35,"async"),e.qZA()()}if(2&ki){const Ei=e.oxw(2);e.xp6(6),e.Oqu(Ei.numberOfAll),e.xp6(),e.hij(" ",e.xi3(8,26,"imxplatform.common-entity.edit.panels.media.media-assigned",e.VKq(43,hr,Ei.numberOfAll))," "),e.xp6(2),e.Q6J("ngIf",Ei.numberOfNewAssigned>0),e.xp6(),e.Q6J("field",Ei.formHandler.formConfiguration.findFormFieldById("media"))("formHandler",Ei.formHandler)("form",Ei.formHandler.formGroup),e.xp6(3),e.Q6J("checked",Ei.isTypeActive(e.VKq(45,In,Ei.MEDIA_TYPE_IMAGE))),e.xp6(),e.AsE("",e.lcZ(15,29,"imxplatform.common-entity.edit.panels.media.pictures")," (",Ei.numberOfImages,") "),e.xp6(2),e.Q6J("checked",Ei.isTypeActive(e.VKq(47,In,Ei.MEDIA_TYPE_VIDEO))),e.xp6(),e.AsE("",e.lcZ(18,31,"imxplatform.common-entity.edit.panels.media.videos")," (",Ei.numberOfVideos,") "),e.xp6(2),e.Q6J("checked",Ei.isTypeActive(e.WLB(49,Wr,Ei.MEDIA_TYPE_FILE,Ei.MEDIA_TYPE_PDF))),e.xp6(),e.AsE("",e.lcZ(21,33,"imxplatform.common-entity.edit.panels.media.files")," (",Ei.numberOfFiles,") "),e.xp6(2),e.ekj("media__header-filter-select--hidden",Ei.hideProductlinesFilter),e.xp6(),e.Q6J("formControl",Ei.productlineSelectCtrl)("options",e.lcZ(24,35,Ei.extendedProductlineOptions$)),e.xp6(3),e.Q6J("formControl",Ei.stateSelectCtrl)("options",Ei.stateOptions),e.xp6(),e.Q6J("ngIf",!Ei.isCompactList),e.xp6(),e.Q6J("ngIf",Ei.isCompactList),e.xp6(),e.Q6J("ngIf",Ei.currentFilteredSize>Ei.currentPageSize),e.xp6(2),e.hij(" ",e.lcZ(32,37,"imxplatform.common-entity.edit.panels.media.mgmnt")," "),e.xp6(2),e.Q6J("ngIf",e.lcZ(34,39,Ei.formHandler.hasEditPermission("media"))&&e.lcZ(35,41,Ei.formHandler.hasSavePermission())&&Ei.pooledMediumFormHandlerService.hasPooledMediumCreatePermission())}}function wi(ki,wo){1&ki&&e._UZ(0,"imx-loading-detail")}function zo(ki,wo){if(1&ki){const Ei=e.EpF();e.TgZ(0,"div",1),e._UZ(1,"div",2),e.TgZ(2,"div",3)(3,"h2",4),e._uU(4,"imxplatform.common-entity.edit.panels.media.title"),e.qZA(),e.TgZ(5,"imx-tooltip",5)(6,"a",6),e.NdJ("click",function(){e.CHM(Ei);const Cr=e.oxw();return e.KtG(Cr.toggleView())}),e._UZ(7,"span",7),e.qZA()()(),e.YNc(8,qi,36,52)(9,wi,1,0),e.EqZ(10,8,Xo,null,9,null,null,8,e.t2F),e.hDV(5e3),e.BYR(0,-1),e.qZA()}2&ki&&(e.xp6(),e.uIk("data-scroll-id","media"))}class xi extends ge.C{static#e=this.typeSortingMap=new Map([[s.MR.name,1],[s.iC.name,2],[s.LD.name,3],[s.FJ.name,3]]);constructor(wo,Ei,ho,Cr,vr,qr,Ra,ss,Hs,Cs){super(wo),this.entitiesMgr=wo,this.dialog=Ei,this.platformDataAccessService=ho,this.genericSidebarService=Cr,this.changeDetectorRef=vr,this.userMessageService=qr,this.configurationProvider=Ra,this.pooledMediumFormHandlerService=ss,this.translateService=Hs,this.pooledMediumCascadeDeleteService=Cs,this.MEDIA_TYPE_IMAGE=s.MR,this.MEDIA_TYPE_VIDEO=s.iC,this.MEDIA_TYPE_PDF=s.LD,this.MEDIA_TYPE_FILE=s.FJ,this.STATE_ALL=1,this.STATE_ACTIVE=2,this.STATE_INACTIVE=3,this.removeHeader="",this.mediaLoaded=new e.vpe,this.afterPooledMediumDelete=new e.vpe,this.rawMediaResult=[],this.filteredMediaResult=[],this.activeMediaTypes=new Set,this.activeProductline=-1,this.currentPageIndex=1,this.currentPageSize=10,this.numberOfImages=0,this.numberOfVideos=0,this.numberOfFiles=0,this.numberOfAll=0,this.numberOfNewAssigned=0,this.productlineOptionIds=[],this.extendedProductlineOptions$=(0,l.of)([]),this.productlineSelectCtrl=new n.p4(-1),this.stateSelectCtrl=new n.p4(this.STATE_ALL),this.hideProductlinesFilter=!1,this.isCompactList=!0,this.stateOptions=[{value:this.STATE_ALL,label:"Alle Medien"},{value:this.STATE_ACTIVE,label:"Aktive Medien"},{value:this.STATE_INACTIVE,label:"Inaktive Medien"}],this.reloadProductlineOptions$=new i.xQ,this.languages=[],this.imageTypes=[],this.defaultMediaSort=function(ms,ja){if(ms.pooledMedium&&ja.pooledMedium&&ms.pooledMedium.mediaType&&ja.pooledMedium.mediaType){const el=xi.typeSortingMap.get(ms.pooledMedium.mediaType.name),Vs=xi.typeSortingMap.get(ja.pooledMedium.mediaType.name);if(null===ms.id||null===ja.id)return null===ms.id&&null!==ja.id?-1:ms.pooledMedium.id-ja.pooledMedium.id;if(el&&Vs)return el===Vs&&void 0!==ms.sortingValue&&void 0!==ja.sortingValue?ms.sortingValue!==ja.sortingValue?ms.sortingValue-ja.sortingValue:ms.pooledMedium.id-ja.pooledMedium.id:el-Vs}return 0},this.activeMediaTypes.add(s.MR.name),this.activeMediaTypes.add(s.iC.name),this.activeMediaTypes.add(s.FJ.name),this.activeMediaTypes.add(s.LD.name)}ngOnInit(){this.registerMediaChangeListener(),this.registerStateSelectListener(),this.registerProductlineSelectListener(),this.registerReloadProductlineOptions(),this.formHandler.onMediaPanelInit(this.destroy$),this.formHandler.formLanguage.getEditLanguageAsObservable().pipe((0,p.R)(this.destroy$)).subscribe(wo=>this.changeDetectorRef.markForCheck()),this.formHandler.onAssignedProductlinesChanges().pipe((0,p.R)(this.destroy$)).subscribe(wo=>{this.formHandler.getFormArrayControl("media").controls.forEach((Ei,ho)=>{if(Ei.get("productlines")){const vr=Ei.get("productlines").value;Ei.get("productlines").setValue(vr.filter(qr=>wo.includes(qr)))}})}),this.formHandler.formGroup.get("mediaChangedFromOutside")&&this.formHandler.formGroup.get("mediaChangedFromOutside").valueChanges.pipe((0,p.R)(this.destroy$)).subscribe(wo=>{setTimeout(()=>this.loadMedia(),500)})}onRecordChange(){this.activeProductline=-1,this.stateSelectCtrl.setValue(this.STATE_ALL);const wo=this.entitiesMgr.getEntitiesOfType("Language"),Ei=this.entitiesMgr.getEntitiesOfType("ImageType").pipe((0,c.U)(ho=>ho.items),(0,c.U)(ho=>ho.filter(Cr=>!!Cr.usageForEntityType&&Cr.usageForEntityType.split(",").some(qr=>qr===this.dataObjectEntityType))));(0,t.aj)([wo,Ei]).pipe((0,p.R)(this.destroy$)).subscribe(([ho,Cr])=>{this.languages=ho.items,this.imageTypes=Cr,this.loadMedia()})}toggleProductline(wo,Ei){this.activeProductline=wo,this.currentPageIndex=1,Ei&&this.loadMedia()}isTypeActive(wo){return wo.some(Ei=>!(!Ei||!Ei.name)&&this.activeMediaTypes.has(Ei.name))}toggleType(wo,Ei){Ei.forEach(wo.checked?ho=>{ho&&ho.name&&this.activeMediaTypes.add(ho.name)}:ho=>{ho&&ho.name&&this.activeMediaTypes.delete(ho.name)}),this.currentPageIndex=1,this.loadMedia()}isProviderObjectDirty(){return this.formHandler.formGroup.dirty}deletePooledMedium(wo){if(!this.formHandler.getFormArrayControl("media"))throw new Error("no FormControl found for id media");if(this.isProviderObjectDirty())this.dialog.open($.f,{maxWidth:450,data:{text:"imxplatform.common-entity.edit.panels.media.remove-pooled-media-save-hint"}}).afterClosed().pipe((0,c.U)(ho=>!1));else{const ho=this.formHandler.getFormArrayRowByIndex("media",wo.index);ho&&wo?this.dialog.open(ue.E,{maxWidth:870,maxHeight:635,data:{dialogTitle:"imxplatform.common-entity.edit.panels.media.remove-pooled-media",i18n:"imxplatform.common-entity.edit.panels.media.remove-pooled-media-assurance",title:ho.get("title").value,objectId:ho.get("pooledMediumId").value,entityType:ho.get("pooledMediumEntityType").value}}).afterClosed().subscribe(vr=>{if(vr){const qr=this.createResolveReferencesActionCall(ho.get("pooledMediumId").value,ho.get("pooledMediumEntityType").value,{references:vr.referenceSpecification.references}),Ra=this.createDeleteActionCall(ho.get("pooledMediumId").value,ho.get("pooledMediumEntityType").value);this.pooledMediumCascadeDeleteService.cascadeDeletePooledMedium(vr,qr,Ra,ho.get("pooledMediumId").value,this.userMessageService,"imxplatform.common-entity.edit.panels.media.remove-pooled-media-error").subscribe(Hs=>{Hs&&(this.userMessageService.showInfo("imxplatform.common-entity.edit.panels.media.remove-pooled-media-success"),this.afterPooledMediumDelete.emit(this.record.id))})}}):console.error("No rowControl found with index "+JSON.stringify(wo))}}createResolveReferencesActionCall(wo,Ei,ho){return{actionKey:"pooledmedium-action-resolve-references",entityType:Ei,entityIds:[wo],actionParams:ho||{}}}createDeleteActionCall(wo,Ei,ho){return{actionKey:"pooledmedium-action-delete",entityType:Ei,entityIds:[wo],actionParams:ho||{}}}removeMediaAssignment(wo){const Ei=this.formHandler.getFormArrayControl("media");if(!Ei)throw new Error("no FormControl found for id media");const ho=this.formHandler.getFormArrayRowByIndex("media",wo.index);ho&&wo?this.dialog.open(b.F,{...ee.D.FORM_SMALL,data:{dialogTitle:"imxplatform.media.assignment.remove-header",i18n:this.removeHeader,title:wo.pooledMedium.title,objectId:wo.id,icon:"icon-unlink",deleteButtonLabel:"imxplatform.media.assignment.remove-btn"}}).afterClosed().subscribe(Cr=>{Cr&&(Ei.removeAt(Ei.controls.indexOf(ho)),this.loadMedia(),Ei.markAsDirty())}):console.error("No rowControl found with index "+JSON.stringify(wo))}editMediaAssignment(wo){this.formHandler.getFormArrayRowByIndex("media",wo.index)&&this.openAssignPanel(wo.pooledMedium.id,wo.id)}editPooledMedium(wo){this.openAssignPanel(wo.id)}openAssignPanel(wo,Ei,ho){this.genericSidebarService.open(I.I,"right",{cssClass:"imx-media-assign-sidebar",disableClose:!0,data:{mediaFormGroup:this.formHandler.formGroup.get("media"),formHandler:this.formHandler,mediaField:this.formHandler.formConfiguration.findArrayFieldById("media"),dataObjectMediumInitializerService:this.dataObjectMediumInitializerService,ctxtEntityType:this.dataObjectEntityType,ctxtEntityId:this.record.id,imageTypes:this.imageTypes,targetPooledMediumId:wo,targetAssignmentId:Ei,initUpload:ho,addressbaseIdOfOffer:"Offer"===this.record._entityType?this.formHandler.formGroup.get("addressbaseId").value:void 0}}).afterClosed().subscribe(vr=>{this.loadMedia()})}onPageChange(wo){this.currentPageIndex=wo.pageIndex,this.currentPageSize=wo.pageSize,this.loadMedia();const Ei=document.getElementById("media");Ei&&Ei.scrollIntoView({behavior:"smooth",block:"start"})}toggleView(){this.isCompactList=!this.isCompactList,this.isCompactList||this.loadMedia()}showReferencesDialog(wo){this.dialog.open(ne.a,{maxWidth:800,maxHeight:900,data:{entityId:wo.pooledMedium.id,entityType:"PooledDataObjectMedium",headerKey:"imxplatform.common-entity.list.action.references.header-text"}})}registerReloadProductlineOptions(){this.extendedProductlineOptions$=this.reloadProductlineOptions$.pipe((0,p.R)(this.destroy$),(0,o.O)(0),(0,x.w)(()=>this.fillProductlineOptions(this.readMediaAssignedProductlines())))}registerProductlineSelectListener(){this.productlineSelectCtrl.valueChanges.pipe((0,p.R)(this.destroy$)).subscribe(wo=>{this.toggleProductline(wo,!0)})}registerStateSelectListener(){this.stateSelectCtrl.valueChanges.pipe((0,p.R)(this.destroy$)).subscribe(wo=>{this.loadMedia()})}registerMediaChangeListener(){const wo=this.formHandler.getFormArrayControl("media");wo.valueChanges.pipe((0,p.R)(this.destroy$),(0,u.b)(500)).subscribe(()=>{this.readMediaAssignedProductlines().length!==this.productlineOptionIds.length&&this.reloadProductlineOptions$.next(1),wo.controls.forEach(Ei=>{this.formHandler.formConfiguration.findArrayFieldById("media").children.filter(ho=>ho instanceof B.o&&ho.id!==ae.Qy&&ho.id!==ae.rs).forEach(ho=>{const Cr=Ei.get(ho.id);if("imageType"===ho.id){const vr=Ei.get(ae.Qy).value;vr.imageType&&(vr.imageType=this.imageTypes.find(qr=>qr.id===Cr.value))}else ho.insertor(Cr.value,Ei.get(ae.Qy).value)})})})}fillProductlineOptions(wo){return(wo.length>0?this.entitiesMgr.getEntityWithIdsOfType("Productline",wo):(0,l.of)([])).pipe((0,c.U)(Ei=>Ei.map(ho=>({label:ho.i18nName,value:ho.id})).sort((ho,Cr)=>(0,K.Qi)(ho.label,Cr.label,this.translateService.currentLang))),(0,m.b)(Ei=>this.fillProductlineOptionsReloadHandler(Ei)),(0,c.U)(Ei=>(Ei.unshift({label:"imxplatform.common-entity.edit.panels.media.no-productlines",value:0}),Ei.unshift({label:"imxplatform.common-entity.edit.panels.media.all-productlines",value:-1}),Ei)))}fillProductlineOptionsReloadHandler(wo){const Ei=this.readMediaAssignedProductlines(),ho=!Ei.includes(this.activeProductline);this.hideProductlinesFilter=0===Ei.length,ho&&(this.productlineSelectCtrl.setValue(-1,{emitEvent:!1}),this.toggleProductline(-1,!1)),this.productlineOptionIds=[],wo.forEach(Cr=>this.productlineOptionIds.push(Cr.value))}readMediaAssignedProductlines(){const wo=this.formHandler.getFormArrayRowEntities("media");return[...new Set(wo.map(Ei=>Ei.productlines?Ei.productlines.map(ho=>ho.id):[]).reduce((Ei,ho)=>Ei.concat(ho),[]))]}loadMedia(){this.rawMediaResult=this.formHandler.getFormArrayRowEntities("media").map((ho,Cr)=>({...ho,index:Cr}));const wo=this.rawMediaResult.filter(ho=>this.isStateSelected(ho)).filter(ho=>this.isMediaTypeSelected(ho)).filter(ho=>this.isProductlineSelected(ho)).sort(this.defaultMediaSort);this.currentFilteredSize=wo.length;const Ei=(this.currentPageIndex-1)*this.currentPageSize;this.filteredMediaResult=wo.slice(Ei,Ei+this.currentPageSize),this.numberOfImages=this.numberOfMedia([s.MR]),this.numberOfVideos=this.numberOfMedia([s.iC]),this.numberOfFiles=this.numberOfMedia([s.FJ,s.LD]),this.numberOfAll=this.numberOfAllMedia(),this.numberOfNewAssigned=this.numberOfNew(),this.mediaLoaded.emit(this.filteredMediaResult),this.changeDetectorRef.markForCheck()}numberOfMedia(wo){let Ei=0;const ho=this.formHandler.getFormArrayRowEntities("media");return ho&&wo.forEach(Cr=>Ei+=ho.filter(vr=>this.isType(vr,Cr)).length),Ei}numberOfAllMedia(){const wo=this.formHandler.getFormArrayRowEntities("media");return wo?wo.length:0}numberOfNew(){const wo=this.formHandler.getFormArrayRowEntities("media");return wo?wo.filter(Ei=>null===Ei.id).length:0}isType(wo,Ei){return!!(wo.pooledMedium&&wo.pooledMedium.mediaType&&wo.pooledMedium.mediaType.name)&&wo.pooledMedium.mediaType.name===Ei.name}isMediaTypeSelected(wo){if(wo.pooledMedium&&wo.pooledMedium.mediaType&&wo.pooledMedium.mediaType.name){const Ei=wo.pooledMedium.mediaType.name;if(Ei)return this.activeMediaTypes.has(Ei)}return!1}isStateSelected(wo){return this.stateSelectCtrl.value===this.STATE_ALL||this.stateSelectCtrl.value===(wo.deactivated?this.STATE_INACTIVE:this.STATE_ACTIVE)}isProductlineSelected(wo){if(wo&&wo.productlines){const Ei=wo.productlines.map(ho=>ho.id);return-1===this.activeProductline||(0===this.activeProductline?0===Ei.length:Ei.includes(this.activeProductline))}return!0}static#t=this.\u0275fac=function(Ei){return new(Ei||xi)(e.Y36(O.qB),e.Y36(Ke.uw),e.Y36(P.nq),e.Y36(j.B),e.Y36(e.sBO),e.Y36(q.Y),e.Y36(O.Pc),e.Y36(J.vB),e.Y36(at.sK),e.Y36(H.i))};static#n=this.\u0275cmp=e.Xpm({type:xi,selectors:[["imx-media-form-panel"]],hostAttrs:[1,"imx-media-form-panel"],inputs:{dataObjectMediumInitializerService:"dataObjectMediumInitializerService",removeHeader:"removeHeader",dataObjectEntityType:"dataObjectEntityType",bottomRowTemplate:"bottomRowTemplate"},outputs:{mediaLoaded:"mediaLoaded",afterPooledMediumDelete:"afterPooledMediumDelete"},features:[e.qOj],decls:1,vars:2,consts:[["class","form__content-panel media",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[1,"form__content-panel","media"],["id","media",1,"anchor"],[1,"panel__headline"],["translate",""],["tooltipText","imxplatform.common.tooltip.switch-compact-default-list","offset","300"],[1,"panel__headline-toggle",3,"click"],[1,"icon-listCompact","imx-icon-middle"],[2e3],[1,"form__content-row"],[1,"form__content-group"],[1,"media__header"],[1,"media__header-txt"],["class","new-media-txt txt-grey",4,"ngIf"],[3,"field","formHandler","form"],[1,"media__header-filter"],[1,"media__header-filter-checkbox"],[1,"small",3,"checked","change"],[1,"media__header-filter-select"],[3,"formControl","options"],[3,"formHandler","items","languages","imageTypes","bottomRowTemplate","mediaEdit","pooledMediaEdit","mediaRemove","pooledMediaDelete","showReferencesDialog",4,"ngIf"],[3,"formHandler","items","mediaEdit","pooledMediaEdit","mediaRemove","pooledMediaDelete","showReferencesDialog",4,"ngIf"],[3,"length","pageIndex","pageSize","pageLinks","page",4,"ngIf"],[1,"imx-button","prio2",3,"click"],["class","imx-button prio2",3,"click",4,"ngIf"],[1,"new-media-txt","txt-grey"],[3,"formHandler","items","languages","imageTypes","bottomRowTemplate","mediaEdit","pooledMediaEdit","mediaRemove","pooledMediaDelete","showReferencesDialog"],[3,"formHandler","items","mediaEdit","pooledMediaEdit","mediaRemove","pooledMediaDelete","showReferencesDialog"],[3,"length","pageIndex","pageSize","pageLinks","page"]],template:function(Ei,ho){1&Ei&&e.YNc(0,zo,12,1,"div",0),2&Ei&&e.Q6J("hasFieldReadPermission","media")("hasFieldReadPermissionFormHandler",ho.formHandler)},dependencies:[at.Pi,Le.k,R.K,Te.j,me.F],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.new-marker[_ngcontent-%COMP%]{font-size:12px;vertical-align:text-top;color:#0a2663}.panel__headline[_ngcontent-%COMP%]{display:flex}.panel__headline[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{display:inline;padding:0 10px}.panel__headline[_ngcontent-%COMP%]   panel__headline-toggle[_ngcontent-%COMP%]{display:inline-block;cursor:pointer;text-decoration:none}.media__header[_ngcontent-%COMP%]{display:flex;margin:5px 0 10px}.media__header[_ngcontent-%COMP%]   .new-media-txt[_ngcontent-%COMP%]{font-size:12px}.media__header[_ngcontent-%COMP%]   .media__header-filter[_ngcontent-%COMP%]{text-align:center;display:flex;justify-content:flex-end;width:80%}@media (min-width: 1401px){.media__header[_ngcontent-%COMP%]   .media__header-filter[_ngcontent-%COMP%]{flex-direction:row-reverse}}@media (max-width: 1400px){.media__header[_ngcontent-%COMP%]   .media__header-filter[_ngcontent-%COMP%]{flex-wrap:wrap}}.media__header[_ngcontent-%COMP%]   .media__header-txt[_ngcontent-%COMP%]{width:20%}@media (max-width: 1400px){.media__header[_ngcontent-%COMP%]   .media__header-txt[_ngcontent-%COMP%]{margin-bottom:10px}}.form__list-extension-row[_ngcontent-%COMP%]   .txt-md[_ngcontent-%COMP%]{margin-top:7px}.form__list-extension-row[_ngcontent-%COMP%]   .txt-md[_ngcontent-%COMP%]:first-child{margin-top:0}.media__header-filter-checkbox[_ngcontent-%COMP%]{display:flex;flex:100%;justify-content:flex-end}.media__header-filter-checkbox[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{flex-basis:120px}@media (max-width: 1400px){.media__header[_ngcontent-%COMP%]{flex-wrap:wrap}}.media__header-filter-select[_ngcontent-%COMP%]{box-shadow:1px 1px 4px #0003;height:23px;margin:0 10px;min-width:190px}.media__header-filter-select.media__header-filter-select--hidden[_ngcontent-%COMP%]{display:none}.media__header-filter-select[_ngcontent-%COMP%]     .mat-mdc-form-field .mat-mdc-select .mat-mdc-select-trigger{background-color:transparent;border:none;height:20px;line-height:20px}.media__header-filter-select[_ngcontent-%COMP%]     .mat-mdc-form-field{margin-top:2px}.media__header-filter-select[_ngcontent-%COMP%]     .mat-mdc-form-field .mat-mdc-select .mat-mdc-select-value{color:#000}.imx-button[_ngcontent-%COMP%]{margin-right:10px}"],data:{animation:Y.L5}})}},3873:(gt,X,a)=>{"use strict";a.d(X,{A:()=>H});var e=a(21473),n=a(27556),s=a(23222),l=a(19212),i=a(96814),t=a(18718),p=a(71365),c=a(1614),o=a(9491);const x=()=>[o.M],u=(O,P,G,B,ae,J)=>({moduleDataFormGroup:O,moduleId:P,moduleKey:G,moduleClassName:B,formHandler:ae,record:J});function m(O,P){if(1&O&&l._UZ(0,"div",4),2&O){const G=l.oxw(2);l.Q6J("moduleKey",G.module.plKey)("entityType",G.entityType)("inputs",l.HTZ(3,u,G.metaInfoRowFormGroup.get(G.module.plKey),G.module.id,G.module.plKey,G.moduleClassName,G.formHandler,G.record))}}function b(O,P){1&O&&l._UZ(0,"imx-loading-detail")}function I(O,P){1&O&&(l.TgZ(0,"div"),l.YNc(1,m,1,10)(2,b,1,0),l.EqZ(3,1,x,null,2,null,null,3,l.t2F),l.hDV(2e3),l.BYR(0,-1),l.qZA())}let H=(()=>{class O extends s.C{constructor(G){super(G),this.entitiesMgr=G,this.logger=(0,e.jl)("ModuleFormPanelComponent",n.H.name),this.moduleClassName=""}ngOnChanges(G){if(super.ngOnChanges(G),this.formHandler.getFormArrayControl("metainfos")&&(this.metaInfoRowFormGroup=this.formHandler.getFormArrayControl("metainfos").controls.find(ae=>ae.controls.moduleId.value===this.module.id),!this.metaInfoRowFormGroup))throw new Error("cannot find row in metainfos for module "+this.module.id);const B=this.formHandler.formConfiguration.findFormFieldById("metainfos:"+this.module.plKey);B?this.moduleClassName=B.options.moduleClass:this.logger.info("no module implementation yet for module "+this.module.plKey)}static#e=this.\u0275fac=function(B){return new(B||O)(l.Y36(e.qB))};static#t=this.\u0275cmp=l.Xpm({type:O,selectors:[["imx-module-form-panel"]],hostAttrs:[1,"imx-module-form-panel"],inputs:{module:"module",entityType:"entityType"},features:[l.qOj,l.TTD],decls:7,vars:9,consts:[[1,"form__content-panel"],[1,"anchor",3,"id"],[4,"ngIf"],[2e3],["moduleFormPanelComponent","",3,"moduleKey","entityType","inputs"]],template:function(B,ae){1&B&&(l.TgZ(0,"div",0),l._UZ(1,"div",1),l.TgZ(2,"h2"),l._uU(3),l.ALo(4,"translate"),l.ALo(5,"readI18n"),l.qZA(),l.YNc(6,I,5,0,"div",2),l.qZA()),2&B&&(l.xp6(),l.MGl("id","module-",ae.module.plKey,""),l.uIk("data-scroll-id","module-"+ae.module.plKey),l.xp6(2),l.AsE("",l.lcZ(4,5,"imxplatform.common-entity.edit.panels.module.header")," - ",l.lcZ(5,7,ae.module.i18nName),""),l.xp6(3),l.Q6J("ngIf",ae.module.metainfos))},dependencies:[i.O5,t.k,p.X$,c.j],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}"],changeDetection:0})}return O})()},15813:(gt,X,a)=>{"use strict";a.d(X,{n:()=>ve});var e=a(21473),n=a(41621),s=a(23222),l=a(19212),i=a(25913),t=a(63989),p=a(18718),c=a(1614),o=a(96814),x=a(71365),u=a(28907),m=a(22201);const b=()=>[o.tP,x.Pi,u.A,m.l];function I(ft,Dt){1&ft&&l.GkF(0)}function H(ft,Dt){1&ft&&l.GkF(0)}function O(ft,Dt){1&ft&&l.GkF(0)}function P(ft,Dt){1&ft&&l.GkF(0)}function G(ft,Dt){1&ft&&(l.ynx(0),l.TgZ(1,"h4",3),l._uU(2,"imxplatform.common-entity.edit.panels.productlineInfo.contactGroup"),l.qZA(),l.BQk())}function B(ft,Dt){1&ft&&l.GkF(0)}function ae(ft,Dt){1&ft&&l.GkF(0)}function J(ft,Dt){1&ft&&l.GkF(0)}function q(ft,Dt){1&ft&&l.GkF(0)}function j(ft,Dt){1&ft&&l.GkF(0)}function Y(ft,Dt){1&ft&&l.GkF(0)}function K(ft,Dt){1&ft&&l.GkF(0)}function ne(ft,Dt){1&ft&&(l.ynx(0),l.TgZ(1,"h4",3),l._uU(2,"imxplatform.common-entity.edit.panels.productlineInfo.seoGroup"),l.qZA(),l.BQk())}function ee(ft,Dt){1&ft&&l.GkF(0)}function $(ft,Dt){1&ft&&l.GkF(0)}function ue(ft,Dt){1&ft&&l.GkF(0)}function ge(ft,Dt){if(1&ft&&l._UZ(0,"imx-form-control",8),2&ft){const Rn=Dt.$implicit,ti=l.oxw(2);l.Q6J("field",ti.formHandler.formConfiguration.findFormFieldById("metainfos:productlineInfo:"+Rn))("control",ti.productlineInfoFormGroup.get(Rn))("form",ti.formHandler.formGroup.get("metainfos"))("formHandler",ti.formHandler)("config",ti.formHandler.formConfiguration)("permissionPrefix",ti.module.plKey+".")}}const Ke=()=>({$implicit:"title"}),at=()=>({$implicit:"subTitle"}),Le=()=>({$implicit:"shortDesc"}),R=()=>({$implicit:"longDesc"}),Te=(ft,Dt,Rn,ti,Xt,Je,dt)=>[ft,Dt,Rn,ti,Xt,Je,dt],me=()=>({$implicit:"contactName"}),Se=()=>({$implicit:"firstName"}),Ue=()=>({$implicit:"lastName"}),We=()=>({$implicit:"email"}),et=()=>({$implicit:"homepage"}),Et=()=>({$implicit:"homepageLinkText"}),lt=()=>({$implicit:"phone"}),Vt=(ft,Dt,Rn)=>[ft,Dt,Rn],r=()=>({$implicit:"htmlHeadTitle"}),Z=()=>({$implicit:"htmlHeadMetaDescription"}),Pt=()=>({$implicit:"searchKeywords"});function Oe(ft,Dt){if(1&ft&&(l.TgZ(0,"h4",3),l._uU(1,"imxplatform.common-entity.edit.panels.productlineInfo.mainGroup"),l.qZA(),l.TgZ(2,"div",4),l.YNc(3,I,1,0,"ng-container",5)(4,H,1,0,"ng-container",5),l.qZA(),l.YNc(5,O,1,0,"ng-container",5)(6,P,1,0,"ng-container",5)(7,G,3,0,"ng-container",6)(8,B,1,0,"ng-container",5)(9,ae,1,0,"ng-container",5)(10,J,1,0,"ng-container",5)(11,q,1,0,"ng-container",5)(12,j,1,0,"ng-container",5)(13,Y,1,0,"ng-container",5)(14,K,1,0,"ng-container",5)(15,ne,3,0,"ng-container",6)(16,ee,1,0,"ng-container",5)(17,$,1,0,"ng-container",5)(18,ue,1,0,"ng-container",5)(19,ge,1,6,"ng-template",null,7,l.W1O)),2&ft){const Rn=l.MAs(20),ti=l.oxw();l.xp6(3),l.Q6J("ngTemplateOutlet",Rn)("ngTemplateOutletContext",l.DdM(32,Ke)),l.xp6(),l.Q6J("ngTemplateOutlet",Rn)("ngTemplateOutletContext",l.DdM(33,at)),l.xp6(),l.Q6J("ngTemplateOutlet",Rn)("ngTemplateOutletContext",l.DdM(34,Le)),l.xp6(),l.Q6J("ngTemplateOutlet",Rn)("ngTemplateOutletContext",l.DdM(35,R)),l.xp6(),l.Q6J("hasAnyFieldReadPermission",l.Hh0(36,Te,ti.module.plKey+".productlineInfo.contactName",ti.module.plKey+".productlineInfo.firstName",ti.module.plKey+".productlineInfo.lastName",ti.module.plKey+".productlineInfo.email",ti.module.plKey+".productlineInfo.homepage",ti.module.plKey+".productlineInfo.homepageLinkText",ti.module.plKey+".productlineInfo.phone"))("hasAnyFieldReadPermissionFormHandler",ti.formHandler),l.xp6(),l.Q6J("ngTemplateOutlet",Rn)("ngTemplateOutletContext",l.DdM(44,me)),l.xp6(),l.Q6J("ngTemplateOutlet",Rn)("ngTemplateOutletContext",l.DdM(45,Se)),l.xp6(),l.Q6J("ngTemplateOutlet",Rn)("ngTemplateOutletContext",l.DdM(46,Ue)),l.xp6(),l.Q6J("ngTemplateOutlet",Rn)("ngTemplateOutletContext",l.DdM(47,We)),l.xp6(),l.Q6J("ngTemplateOutlet",Rn)("ngTemplateOutletContext",l.DdM(48,et)),l.xp6(),l.Q6J("ngTemplateOutlet",Rn)("ngTemplateOutletContext",l.DdM(49,Et)),l.xp6(),l.Q6J("ngTemplateOutlet",Rn)("ngTemplateOutletContext",l.DdM(50,lt)),l.xp6(),l.Q6J("hasAnyFieldReadPermission",l.kEZ(51,Vt,ti.module.plKey+".productlineInfo.htmlHeadTitle",ti.module.plKey+".productlineInfo.htmlHeadMetaDescription",ti.module.plKey+".productlineInfo.searchKeywords"))("hasAnyFieldReadPermissionFormHandler",ti.formHandler),l.xp6(),l.Q6J("ngTemplateOutlet",Rn)("ngTemplateOutletContext",l.DdM(55,r)),l.xp6(),l.Q6J("ngTemplateOutlet",Rn)("ngTemplateOutletContext",l.DdM(56,Z)),l.xp6(),l.Q6J("ngTemplateOutlet",Rn)("ngTemplateOutletContext",l.DdM(57,Pt))}}function ye(ft,Dt){1&ft&&l._UZ(0,"imx-loading-detail")}let ve=(()=>{class ft extends s.C{constructor(Rn){super(Rn),this.entitiesMgr=Rn}ngOnChanges(Rn){if(super.ngOnChanges(Rn),this.formHandler.getFormArrayControl("metainfos")){const ti=this.formHandler.getFormArrayControl("metainfos").controls.find(Xt=>Xt.controls.moduleId.value===this.module.id);if(!ti)throw new Error("cannot find row in metainfos for module "+this.module.id);this.productlineInfoFormGroup=ti.get("productlineInfo"),this.changed=!(0,n.Qr)(this.productlineInfoFormGroup.value),this.productlineInfoFormGroup.valueChanges.subscribe(Xt=>{this.changed=!(0,n.Qr)(Xt)})}}static#e=this.\u0275fac=function(ti){return new(ti||ft)(l.Y36(e.qB))};static#t=this.\u0275cmp=l.Xpm({type:ft,selectors:[["imx-productline-info-form-panel"]],hostAttrs:[1,"imx-productline-info-form-panel"],inputs:{module:"module"},features:[l.qOj,l.TTD],decls:9,vars:6,consts:[[1,"anchor",3,"id"],[3,"title","icon"],[2e3],["translate",""],[1,"form__content-field-row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"hasAnyFieldReadPermission","hasAnyFieldReadPermissionFormHandler"],["imxControl",""],[3,"field","control","form","formHandler","config","permissionPrefix"]],template:function(ti,Xt){1&ti&&(l.TgZ(0,"div"),l._UZ(1,"div",0),l.TgZ(2,"imx-accordion")(3,"imx-accordion-panel",1),l.ALo(4,"readI18n"),l.YNc(5,Oe,21,58)(6,ye,1,0),l.EqZ(7,5,b,null,6,null,null,2,l.t2F),l.BYR(0,-1),l.qZA()()()),2&ti&&(l.xp6(),l.MGl("id","productlineInfo-",Xt.module.plKey,""),l.uIk("data-scroll-id","productlineInfo-"+Xt.module.plKey),l.xp6(2),l.s9C("title",l.lcZ(4,4,Xt.module.i18nName)),l.Q6J("icon",Xt.changed?"icon-checkmark":""))},dependencies:[i.Z,t.U,p.k,c.j],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin-bottom:10px}"],changeDetection:0})}return ft})()},27459:(gt,X,a)=>{"use strict";a.d(X,{h:()=>c}),a(79309),a(1009);var s=a(19212),l=a(71365),i=a(61880),t=a(96814),p=a(80617);let c=(()=>{class o{constructor(u){this.translateService=u}static#e=this.\u0275fac=function(m){return new(m||o)(s.Y36(l.sK))};static#t=this.\u0275cmp=s.Xpm({type:o,selectors:[["imx-edit-audited-data"]],hostAttrs:[1,"imx-edit-audited-data"],inputs:{formHandler:"formHandler",record:"record"},decls:7,vars:14,consts:[[1,"audit-block"],[3,"label","customModel"]],template:function(m,b){1&m&&(s.TgZ(0,"div",0),s._UZ(1,"imx-base-read-only",1),s.ALo(2,"date"),s.ALo(3,"convertTimestamps"),s._UZ(4,"imx-base-read-only",1),s.ALo(5,"date"),s.ALo(6,"convertTimestamps"),s.qZA()),2&m&&(s.xp6(),s.Q6J("label","entity.AuditedDataObject.creationTime")("customModel",s.xi3(2,4,s.lcZ(3,7,b.record.creationTime),"dd.MM.yyyy - HH:mm")+" "+b.translateService.instant("imxplatform.common.time-indicator")+" ("+b.record.creationFrom+")"),s.xp6(3),s.Q6J("label","entity.AuditedDataObject.lastChangeTime")("customModel",s.xi3(5,9,s.lcZ(6,12,b.record.lastChangeTime),"dd.MM.yyyy - HH:mm")+" "+b.translateService.instant("imxplatform.common.time-indicator")+" ("+b.record.lastChangeFrom+")"))},dependencies:[i.Q,t.uU,p.E],styles:[".audit-block[_ngcontent-%COMP%]{display:flex;flex-direction:row}.audit-block[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:15px;padding-top:10px}"]})}return o})()},82490:(gt,X,a)=>{"use strict";a.d(X,{h:()=>t});var e=a(56223),n=a(17700),s=a(19212),l=a(33946),i=a(35617);let t=(()=>{class p{constructor(o){this.data=o,this.formGroup=new e.nJ({}),this.selectionControl=new e.p4,this.formGroup.registerControl("clientSelection",this.selectionControl),this.selectionControl.setValue([o.currentSelection])}displayFn(o){return o?o.name:void 0}sortFnForClient(o,x,u){return o.name.localeCompare(x.name)}getDialogResult(){return this.formGroup.get("clientSelection").value}static#e=this.\u0275fac=function(x){return new(x||p)(s.Y36(n.WI))};static#t=this.\u0275cmp=s.Xpm({type:p,selectors:[["ng-component"]],decls:4,vars:6,consts:[["heading","imxplatform.common-entity.edit.select-client","icon","icon-clients","dialogType","form",3,"getSubmitResult"],[1,"client-tree"],[3,"formGroup"],["formControlName","clientSelection",3,"singleSelect","displayNodeFn","sortNodesFn","availableItems"]],template:function(x,u){1&x&&(s.TgZ(0,"imx-dialog",0)(1,"div",1)(2,"form",2),s._UZ(3,"imx-base-tree",3),s.qZA()()()),2&x&&(s.Q6J("getSubmitResult",u.getDialogResult.bind(u)),s.xp6(2),s.Q6J("formGroup",u.formGroup),s.xp6(),s.Q6J("singleSelect",!0)("displayNodeFn",u.displayFn)("sortNodesFn",u.sortFnForClient)("availableItems",u.data.rootClients))},dependencies:[e._Y,e.JJ,e.JL,e.sg,e.u,l.a,i.Q],styles:[".client-tree[_ngcontent-%COMP%]{width:100%;padding:5px;border:2px solid #eefafa}[_nghost-%COMP%]     .imx-base-tree .tree-group{height:60vh}"]})}return p})()},58139:(gt,X,a)=>{"use strict";a.d(X,{L:()=>O});var e=a(60238),n=a(21473),l=(a(62192),a(33946)),i=a(82490),t=a(19212),p=a(17700),c=a(96814),o=a(4938),x=a(36116),u=a(47378),m=a(71365);function b(P,G){if(1&P&&(t.TgZ(0,"div"),t._UZ(1,"imx-select",1),t.qZA()),2&P){const B=t.oxw();t.xp6(),t.Q6J("field",B.formHandler.formConfiguration.findFormFieldById("client"))("control",B.formHandler.formGroup.get("client"))("form",B.formHandler.formGroup)("formHandler",B.formHandler)("optionProvider",B.feasibleClients)}}function I(P,G){if(1&P){const B=t.EpF();t.TgZ(0,"button",4),t.NdJ("click",function(){t.CHM(B);const J=t.oxw(2);return t.KtG(J.showClientTree())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&P&&(t.xp6(),t.hij(" ",t.lcZ(2,1,"imxplatform.common-entity.edit.select-client-from-tree")," "))}function H(P,G){if(1&P&&(t.TgZ(0,"div"),t._UZ(1,"imx-autocomplete",2),t.YNc(2,I,3,3,"button",3),t.qZA()),2&P){const B=t.oxw();t.xp6(),t.Q6J("field",B.formHandler.formConfiguration.findFormFieldById("client"))("formHandler",B.formHandler)("control",B.formHandler.formGroup.controls.client)("autocompleteService",B.clientAutocompleteService)("autocompleteFilter",B.feasibleClientFilter)("disableControl",null==B.formHandler.getFormValue("client")),t.xp6(),t.Q6J("hasFieldWritePermission","client")("hasFieldWritePermissionFormHandler",B.formHandler)}}let O=(()=>{class P{constructor(B,ae,J,q,j){this.entitiesMgr=B,this.clientAutocompleteService=ae,this.configurationProvider=J,this.changeDetectorRef=q,this.dialog=j,this.feasibleClientIds=[],this.feasibleClientFilter={allowedClientIds:this.feasibleClientIds.join(",")}}ngOnInit(){this.useClientHierarchy$=this.configurationProvider.getBoolean(n.x3.PLATFORM_GUI_CLIENT_HIERARCHY,!1),this.feasibleClientIds=this.feasibleClients.map(B=>B.value)}showClientTree(){this.dialog.open(i.h,{...l.D.FORM_SMALL,data:{currentSelection:this.formHandler.formGroup.get("client").value,rootClients:this.rootClients},...l.D.FORM_HUGE}).afterClosed().subscribe(B=>{B&&B.length>0&&(this.formHandler.formGroup.get("client").setValue(B[0]),this.changeDetectorRef.detectChanges())})}static#e=this.\u0275fac=function(ae){return new(ae||P)(t.Y36(n.qB),t.Y36(e.p),t.Y36(n.Pc),t.Y36(t.sBO),t.Y36(p.uw))};static#t=this.\u0275cmp=t.Xpm({type:P,selectors:[["imx-edit-client"]],hostAttrs:[1,"imx-edit-client"],inputs:{formHandler:"formHandler",feasibleClients:"feasibleClients",rootClients:"rootClients"},decls:5,vars:8,consts:[[4,"ngIf"],[3,"field","control","form","formHandler","optionProvider"],[3,"field","formHandler","control","autocompleteService","autocompleteFilter","disableControl"],["class","imx-button prio2",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"imx-button","prio2",3,"click"]],template:function(ae,J){1&ae&&(t.YNc(0,b,2,5,"div",0),t.ALo(1,"async"),t.YNc(2,H,3,8,"div",0),t.ALo(3,"async"),t.ALo(4,"async")),2&ae&&(t.Q6J("ngIf",!t.lcZ(1,2,J.useClientHierarchy$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(3,4,t.lcZ(4,6,J.useClientHierarchy$)&&J.formHandler.hasReadPermission("client"))))},dependencies:[c.O5,o.Y,x.H,u.X,c.Ov,m.X$]})}return P})()},73623:(gt,X,a)=>{"use strict";a.d(X,{s:()=>Je});var e=a(19212),n=a(21473),s=a(72079),l=a(23291),i=a(96124),t=a(4116),c=(a(62192),a(38347)),o=a(55550),x=a(33946),u=a(89051),m=a(94366),b=a(15646),H=a(17700),O=a(22941),P=a(71365),G=a(96814),B=a(56223),ae=a(25313),J=a(74961),q=a(6128),j=a(36681),Y=a(35475),K=a(28907),ne=a(47378);function ee(dt,Ie){1&dt&&(e.TgZ(0,"p",7),e._uU(1,"imxplatform.common.no-records"),e.qZA())}function $(dt,Ie){1&dt&&e._UZ(0,"tr",27)}function ue(dt,Ie){1&dt&&e._UZ(0,"tr",28)}function ge(dt,Ie){1&dt&&(e.TgZ(0,"th",29),e._uU(1,"entity.EntityList.id"),e.qZA())}function Ke(dt,Ie){if(1&dt&&(e.TgZ(0,"td",30)(1,"span"),e._uU(2),e.qZA()()),2&dt){const ot=Ie.$implicit;e.xp6(2),e.Oqu(ot.controls.contactList.value.id?ot.controls.contactList.value.id:"-")}}function at(dt,Ie){1&dt&&(e.TgZ(0,"th",31),e._uU(1,"entity.EntityList.name"),e.qZA())}function Le(dt,Ie){if(1&dt&&(e.TgZ(0,"td",32)(1,"imx-tooltip",33),e._UZ(2,"imx-form-control",34),e.qZA()()),2&dt){const ot=Ie.$implicit,ct=e.oxw(2);e.xp6(),e.Q6J("tooltipText",ot.controls.contactList.value.listInfoClient)("offset",2e3),e.xp6(),e.Q6J("field",ct.formHandler.formConfiguration.findFormFieldById("contactLists:contactListName"))("control",ot.controls.contactListName)("form",ct.formHandler.formGroup.get("contactLists"))("formHandler",ct.formHandler)("config",ct.formHandler.formConfiguration)}}function R(dt,Ie){1&dt&&(e.TgZ(0,"th",31),e._uU(1,"entity.EntityList.entityType"),e.qZA())}function Te(dt,Ie){if(1&dt&&(e.TgZ(0,"td",32)(1,"span",2),e._uU(2),e.qZA()()),2&dt){const ot=Ie.$implicit;e.xp6(2),e.Oqu("entity."+ot.controls.contactList.value.entityType+".plural")}}function me(dt,Ie){if(1&dt&&(e.TgZ(0,"th",31),e._uU(1),e.qZA()),2&dt){const ot=e.oxw(2);e.xp6(),e.Oqu(ot.formHandler.getFormFieldLabel("contactLists:contextProductline"))}}function Se(dt,Ie){if(1&dt&&(e.TgZ(0,"td",35),e._UZ(1,"imx-form-control",34),e.qZA()),2&dt){const ot=Ie.$implicit,ct=e.oxw(2);e.Q6J("formGroup",ot),e.xp6(),e.Q6J("field",ct.formHandler.formConfiguration.findFormFieldById("contactLists:contextProductline"))("control",ot.controls.contextProductline)("form",ct.formHandler.formGroup.get("contactLists"))("formHandler",ct.formHandler)("config",ct.formHandler.formConfiguration)}}function Ue(dt,Ie){if(1&dt&&(e.TgZ(0,"th",31),e._uU(1),e.qZA()),2&dt){const ot=e.oxw(2);e.xp6(),e.Oqu(ot.formHandler.getFormFieldLabel("contactLists:contactPurpose"))}}function We(dt,Ie){if(1&dt&&(e.TgZ(0,"td",35),e._UZ(1,"imx-form-control",34),e.qZA()),2&dt){const ot=Ie.$implicit,ct=e.oxw(2);e.Q6J("formGroup",ot),e.xp6(),e.Q6J("field",ct.formHandler.formConfiguration.findFormFieldById("contactLists:contactPurpose"))("control",ot.controls.contactPurpose)("form",ct.formHandler.formGroup.get("contactLists"))("formHandler",ct.formHandler)("config",ct.formHandler.formConfiguration)}}function et(dt,Ie){1&dt&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&dt&&(e.xp6(),e.Oqu(e.lcZ(2,1,"imxplatform.common-entity.edit.panels.reference.sorting.manual")))}function Et(dt,Ie){1&dt&&e._UZ(0,"span",38)}function lt(dt,Ie){1&dt&&e._UZ(0,"span",39)}function Vt(dt,Ie){if(1&dt&&(e.TgZ(0,"td",36),e.YNc(1,Et,1,0,"span",37)(2,lt,1,0),e.qZA()),2&dt){const ot=Ie.$implicit,ct=e.oxw(2);e.Q6J("formGroup",ot),e.xp6(),e.um2(1,ct.isSorted(ot.controls.contactList.value.listInfoClient)?1:2)}}function r(dt,Ie){1&dt&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&dt&&(e.xp6(),e.Oqu(e.lcZ(2,1,"imxplatform.common-entity.edit.panels.reference.sorting.idlist")))}function Z(dt,Ie){1&dt&&e._UZ(0,"span",38)}function Pt(dt,Ie){1&dt&&e._UZ(0,"span",39)}function Oe(dt,Ie){if(1&dt&&(e.TgZ(0,"td",36),e.YNc(1,Z,1,0,"span",37)(2,Pt,1,0),e.qZA()),2&dt){const ot=Ie.$implicit,ct=e.oxw(2);e.Q6J("formGroup",ot),e.xp6(),e.um2(1,ct.isStaticEntityList(ot.controls.contactList.value)?1:2)}}function ye(dt,Ie){1&dt&&e._UZ(0,"th",40)}function ve(dt,Ie){1&dt&&e._uU(0," imxplatform.common-entity.edit.panels.reference.contact-lists.edit ")}function ft(dt,Ie){1&dt&&e._uU(0," imxplatform.common-entity.edit.panels.reference.contact-lists.sort ")}function Dt(dt,Ie){if(1&dt){const ot=e.EpF();e.TgZ(0,"imx-action-menu-item",44),e.NdJ("click",function(){e.CHM(ot);const tn=e.oxw().$implicit,yi=e.oxw(2);return e.KtG(yi.formHandler.removeLineFromCollection("contactLists",yi.contactListDataSource.filteredData.indexOf(tn)))}),e._uU(1," imxplatform.common-entity.list.remove "),e.qZA()}2&dt&&e.Q6J("icon","icon-trash")}function Rn(dt,Ie){if(1&dt){const ot=e.EpF();e.TgZ(0,"td",41)(1,"imx-dropup-button")(2,"imx-action-menu")(3,"imx-action-menu-item",42),e.NdJ("click",function(){const yi=e.CHM(ot).$implicit,ni=e.oxw(2);return e.KtG(ni.followReferenceList(yi.controls.contactList.value))}),e._uU(4," imxplatform.common-entity.edit.panels.reference.contact-lists.follow-list "),e.qZA(),e.TgZ(5,"imx-action-menu-item",42),e.NdJ("click",function(){const yi=e.CHM(ot).$implicit,ni=e.oxw(2);return e.KtG(ni.openSortedListsDialog(yi.controls.contactList.value,yi))}),e.YNc(6,ve,1,0)(7,ft,1,0),e.qZA(),e.YNc(8,Dt,2,1,"imx-action-menu-item",43),e.qZA()()()}if(2&dt){const ot=Ie.$implicit,ct=e.oxw(2);e.Q6J("formGroup",ot),e.xp6(3),e.Q6J("icon","icon-reference-list"),e.xp6(2),e.Q6J("icon","icon-pencil"),e.xp6(),e.um2(6,ct.isStaticEntityList(ot.controls.contactList.value)?6:7),e.xp6(2),e.Q6J("hasFieldWritePermission","contactLists")("hasFieldWritePermissionFormHandler",ct.formHandler)}}function ti(dt,Ie){if(1&dt&&(e.TgZ(0,"table",8),e.YNc(1,$,1,0,"tr",9)(2,ue,1,0,"tr",10),e.ynx(3,11),e.YNc(4,ge,2,0,"th",12)(5,Ke,3,1,"td",13),e.BQk(),e.ynx(6,14),e.YNc(7,at,2,0,"th",15)(8,Le,3,7,"td",16),e.BQk(),e.ynx(9,17),e.YNc(10,R,2,0,"th",15)(11,Te,3,1,"td",16),e.BQk(),e.ynx(12,18),e.YNc(13,me,2,1,"th",15)(14,Se,2,6,"td",19),e.BQk(),e.ynx(15,20),e.YNc(16,Ue,2,1,"th",15)(17,We,2,6,"td",19),e.BQk(),e.ynx(18,21),e.YNc(19,et,3,3,"th",12)(20,Vt,3,2,"td",22),e.BQk(),e.ynx(21,23),e.YNc(22,r,3,3,"th",12)(23,Oe,3,2,"td",22),e.BQk(),e.ynx(24,24),e.YNc(25,ye,1,0,"th",25)(26,Rn,9,6,"td",26),e.BQk(),e.qZA()),2&dt){const ot=e.oxw();e.Q6J("dataSource",ot.contactListDataSource),e.xp6(),e.Q6J("matHeaderRowDef",ot.contactListColumns),e.xp6(),e.Q6J("matRowDefColumns",ot.contactListColumns)}}function Xt(dt,Ie){if(1&dt){const ot=e.EpF();e.ynx(0),e.TgZ(1,"button",45),e.NdJ("click",function(){e.CHM(ot);const tn=e.oxw();return e.KtG(tn.addContactList())}),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.BQk()}2&dt&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"imxplatform.common-entity.edit.panels.reference.contact-lists.add")," "))}let Je=(()=>{class dt{constructor(ot,ct,tn,yi){this.dialog=ot,this.router=ct,this.translateService=tn,this.changeDetectorRef=yi,this.destroy$=new s.xQ,this.contextNavigationService=(0,e.f3M)(t.E)}ngOnInit(){this.contactListDataSource=(0,c.t)(this.formHandler.formGroup.get("contactLists"),ot=>this.contactListDataSource=ot,this.destroy$),this.determineColumns()}determineColumns(){this.contactListColumns=new Array,this.contactListColumns.push("id"),this.contactListColumns.push("name"),this.contactListColumns.push("listType"),this.contactListColumns.push("contactPurpose"),this.contactListColumns.push("contextProductline"),this.contactListColumns.push("sorted"),this.contactListColumns.push("idlist"),this.contactListColumns.push("actionColumn")}openSortedListsDialog(ot,ct){const tn=b(ot);ot.listInfo&&""!==ot.listInfo?this.openDialog(ot).afterClosed().subscribe(ni=>{ni?(ct.get("contactList").patchValue(ni.entityList),ct.get("listInfoClient").setValue(ni.entityList.listInfoClient),ct.get("listInfoClient").markAsDirty(),this.changeDetectorRef.detectChanges()):(ct.get("contactList").patchValue(tn),ct.get("listInfoClient").setValue(tn.listInfoClient))}):this.dialog.open(m.f,{maxWidth:450,data:{text:"imxplatform.common-entity.edit.panels.reference.contact-lists.save-before-edit"}}).afterClosed().subscribe()}addContactList(){this.dialog.open(o.K,{...x.D.FORM_MEDIUM,data:{}}).afterClosed().subscribe(ot=>{ot&&ot.selectedEntityType&&this.contextNavigationService.navigateToCoreEntityContextual(["/"+(0,n.Eo)(ot.selectedEntityType)])})}followReferenceList(ot){let ct=(0,n.Mg)(ot.listInfoClient);const tn=window.location.href.replace(this.router.url,"");if(Object.keys(ct).length>0){ct=(0,n.jJ)(ct);const yi=this.router.serializeUrl(this.router.createUrlTree(["/"+ot.listInfoClient.substring(0,ot.listInfoClient.indexOf("?"))],{queryParams:ct}));window.open(tn+yi,"_blank")}else{const yi=this.router.serializeUrl(this.router.createUrlTree(["/"+ot.listInfoClient]));window.open(tn+yi,"_blank")}}isSorted(ot){return(0,n.$R)(ot)}isStaticEntityList(ot){return(0,n.tq)(ot.listInfoClient)}isNewEntityList(ot){return void 0===ot.id}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}openDialog(ot){return this.dialog.open(u.d,{...x.D.FORM_HUGE,data:{entityList:ot,hasWritePermission:(0,l.aj)([this.formHandler.hasSavePermission(),this.formHandler.hasEditPermission("contactLists")]).pipe((0,i.U)(([ct,tn])=>ct&&tn))}})}static#e=this.\u0275fac=function(ct){return new(ct||dt)(e.Y36(H.uw),e.Y36(O.F0),e.Y36(P.sK),e.Y36(e.sBO))};static#t=this.\u0275cmp=e.Xpm({type:dt,selectors:[["imx-edit-contact-lists"]],inputs:{formHandler:"formHandler"},decls:11,vars:7,consts:[[1,"form__content-row"],[1,"form__content-group"],["translate",""],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[4,"ngIf"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","id"],["mat-header-cell","","translate","","class","id-column",4,"matHeaderCellDef"],["mat-cell","","class","id-column",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","","translate","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","listType"],["matColumnDef","contextProductline"],["mat-cell","",3,"formGroup",4,"matCellDef"],["matColumnDef","contactPurpose"],["matColumnDef","sorted"],["mat-cell","","style","text-align: center",3,"formGroup",4,"matCellDef"],["matColumnDef","idlist"],["matColumnDef","actionColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","","translate","",1,"id-column"],["mat-cell","",1,"id-column"],["mat-header-cell","","translate",""],["mat-cell",""],[3,"tooltipText","offset"],[3,"field","control","form","formHandler","config"],["mat-cell","",3,"formGroup"],["mat-cell","",2,"text-align","center",3,"formGroup"],["class","icon icon-checkmark"],[1,"icon","icon-checkmark"],[1,"icon","icon-minus"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],[3,"icon","click"],["additionalStyle","delete",3,"icon","click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],["additionalStyle","delete",3,"icon","click"],[1,"imx-button","prio2",3,"click"]],template:function(ct,tn){if(1&ct&&(e.TgZ(0,"div",0)(1,"div",1)(2,"h3",2),e._uU(3,"imxplatform.common-entity.edit.panels.reference.contact-lists.title"),e.qZA(),e.YNc(4,ee,2,0,"ng-template",null,3,e.W1O),e.TgZ(6,"div",4),e.YNc(7,ti,27,3,"table",5),e.qZA(),e.YNc(8,Xt,4,3,"ng-container",6),e.ALo(9,"async"),e.ALo(10,"async"),e.qZA()()),2&ct){const yi=e.MAs(5);e.xp6(7),e.Q6J("ngIf",tn.contactListDataSource&&tn.contactListDataSource.data.length>0)("ngIfElse",yi),e.xp6(),e.Q6J("ngIf",e.lcZ(9,3,tn.formHandler.hasSavePermission())&&e.lcZ(10,5,tn.formHandler.hasEditPermission("contactLists")))}},dependencies:[G.O5,B.JL,ae.BZ,ae.fO,ae.as,ae.w1,ae.Dz,ae.nj,ae.ge,ae.ev,ae.XQ,ae.Gk,B.sg,P.Pi,J.p,q.z,j.t,Y.K,K.A,ne.X,G.Ov,P.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}h3[_ngcontent-%COMP%]{margin-bottom:10px}.id-column[_ngcontent-%COMP%]{width:50px}"]})}return dt})()},98840:(gt,X,a)=>{"use strict";a.d(X,{t:()=>ve});var e=a(19212),n=a(49193),s=a(96124),l=a(53204),i=a(44590),t=a(21473),c=(a(62192),a(96814)),o=a(71365),x=a(4938),u=a(28907),m=a(17301);function b(ft,Dt){1&ft&&e.GkF(0)}function I(ft,Dt){1&ft&&e.GkF(0)}function H(ft,Dt){1&ft&&e.GkF(0)}function O(ft,Dt){1&ft&&e.GkF(0)}const P=()=>({$implicit:"firstname"}),G=()=>({$implicit:"lastname"}),B=()=>({$implicit:"address.addition"});function ae(ft,Dt){if(1&ft&&(e.ynx(0),e.TgZ(1,"div",3),e._UZ(2,"imx-form-control",9),e.qZA(),e.YNc(3,I,1,0,"ng-container",1)(4,H,1,0,"ng-container",1)(5,O,1,0,"ng-container",1),e.BQk()),2&ft){const Rn=e.oxw(),ti=e.MAs(20);e.xp6(2),e.Q6J("field",Rn.formHandler.formConfiguration.findFormFieldById(Rn.groupPrefix+".salutation"))("control",Rn.formHandler.formGroup.get(Rn.groupPrefix+".salutation"))("form",Rn.formHandler.formGroup.get(Rn.groupPrefix))("formHandler",Rn.formHandler)("config",Rn.formHandler.formConfiguration),e.xp6(),e.Q6J("ngTemplateOutlet",ti)("ngTemplateOutletContext",e.DdM(11,P)),e.xp6(),e.Q6J("ngTemplateOutlet",ti)("ngTemplateOutletContext",e.DdM(12,G)),e.xp6(),e.Q6J("ngTemplateOutlet",ti)("ngTemplateOutletContext",e.DdM(13,B))}}function J(ft,Dt){1&ft&&e.GkF(0)}function q(ft,Dt){1&ft&&e.GkF(0)}function j(ft,Dt){if(1&ft){const Rn=e.EpF();e.TgZ(0,"imx-autocomplete",10),e.NdJ("autocompleteSelected",function(Xt){e.CHM(Rn);const Je=e.oxw();return e.KtG(Je.zipcodeSelection.emit(Xt))}),e.ALo(1,"async"),e.ALo(2,"async"),e.qZA()}if(2&ft){const Rn=e.oxw();e.Q6J("field",Rn.formHandler.formConfiguration.findFormFieldById(Rn.groupPrefix+".address.zipcode"))("formHandler",Rn.formHandler)("control",Rn.formHandler.formGroup.get(Rn.groupPrefix+".address.zipcode"))("autocompleteService",Rn.locationAutocompleteService)("useAnyNameHolder",!0)("disableControl",!e.lcZ(1,6,Rn.formHandler.hasEditPermission(Rn.groupPrefix+".address.zipcode"))||!e.lcZ(2,8,Rn.formHandler.hasSavePermission()))}}function Y(ft,Dt){if(1&ft){const Rn=e.EpF();e.TgZ(0,"imx-autocomplete",11),e.NdJ("autocompleteSelected",function(Xt){e.CHM(Rn);const Je=e.oxw();return e.KtG(Je.citySelection.emit(Xt))}),e.ALo(1,"async"),e.ALo(2,"async"),e.qZA()}if(2&ft){const Rn=e.oxw();e.Q6J("field",Rn.formHandler.formConfiguration.findFormFieldById(Rn.groupPrefix+".address.city"))("formHandler",Rn.formHandler)("control",Rn.formHandler.formGroup.get(Rn.groupPrefix+".address.city"))("autocompleteService",Rn.locationAutocompleteService)("useAnyNameHolder",!0)("disableControl",!e.lcZ(1,6,Rn.formHandler.hasEditPermission(Rn.groupPrefix+".address.city"))||!e.lcZ(2,8,Rn.formHandler.hasSavePermission()))}}function K(ft,Dt){if(1&ft&&e._UZ(0,"imx-autocomplete",12),2&ft){const Rn=e.oxw();e.Q6J("field",Rn.formHandler.formConfiguration.findFormFieldById(Rn.groupPrefix+".address.country"))("formHandler",Rn.formHandler)("control",Rn.formHandler.formGroup.get(Rn.groupPrefix+".address.country"))("autocompleteService",Rn.countryAutocompleteService)("displayItemFn",Rn.displayCountry)}}function ne(ft,Dt){1&ft&&e.GkF(0)}const ee=()=>({$implicit:"address.country"});function $(ft,Dt){if(1&ft&&e.YNc(0,ne,1,0,"ng-container",1),2&ft){e.oxw();const Rn=e.MAs(20);e.Q6J("ngTemplateOutlet",Rn)("ngTemplateOutletContext",e.DdM(2,ee))}}function ue(ft,Dt){1&ft&&e.GkF(0)}function ge(ft,Dt){1&ft&&e.GkF(0)}const Ke=()=>({$implicit:"address.phone2"});function at(ft,Dt){if(1&ft&&(e.ynx(0),e.YNc(1,ge,1,0,"ng-container",1),e.BQk()),2&ft){e.oxw();const Rn=e.MAs(20);e.xp6(),e.Q6J("ngTemplateOutlet",Rn)("ngTemplateOutletContext",e.DdM(2,Ke))}}function Le(ft,Dt){1&ft&&e.GkF(0)}function R(ft,Dt){1&ft&&e.GkF(0)}function Te(ft,Dt){1&ft&&e.GkF(0)}function me(ft,Dt){1&ft&&e.GkF(0)}const Se=()=>({$implicit:"address.fax"}),Ue=()=>({$implicit:"address.email"}),We=()=>({$implicit:"address.homepage"}),et=()=>({$implicit:"address.homepageLinkText"});function Et(ft,Dt){if(1&ft&&(e.ynx(0),e.YNc(1,Le,1,0,"ng-container",1)(2,R,1,0,"ng-container",1)(3,Te,1,0,"ng-container",1)(4,me,1,0,"ng-container",1),e.BQk()),2&ft){e.oxw();const Rn=e.MAs(20);e.xp6(),e.Q6J("ngTemplateOutlet",Rn)("ngTemplateOutletContext",e.DdM(8,Se)),e.xp6(),e.Q6J("ngTemplateOutlet",Rn)("ngTemplateOutletContext",e.DdM(9,Ue)),e.xp6(),e.Q6J("ngTemplateOutlet",Rn)("ngTemplateOutletContext",e.DdM(10,We)),e.xp6(),e.Q6J("ngTemplateOutlet",Rn)("ngTemplateOutletContext",e.DdM(11,et))}}function lt(ft,Dt){1&ft&&e.GkF(0)}function Vt(ft,Dt){if(1&ft&&(e.ynx(0),e.YNc(1,lt,1,0,"ng-container",1),e.BQk()),2&ft){e.oxw();const Rn=e.MAs(20);e.xp6(),e.Q6J("ngTemplateOutlet",Rn)("ngTemplateOutletContext",e.DdM(2,We))}}function r(ft,Dt){if(1&ft&&e._UZ(0,"imx-form-control",13),2&ft){const Rn=Dt.$implicit,ti=e.oxw();e.Q6J("field",ti.formHandler.formConfiguration.findFormFieldById(ti.groupPrefix+"."+Rn))("control",ti.formHandler.formGroup.get(ti.groupPrefix+"."+Rn))("form",ti.formHandler.formGroup)("formHandler",ti.formHandler)("config",ti.formHandler.formConfiguration)}}const Z=()=>({$implicit:"contactName"}),Pt=()=>({$implicit:"address.street"}),Oe=()=>({$implicit:"address.streetNo"}),ye=()=>({$implicit:"address.phone1"});let ve=(()=>{class ft{constructor(Rn,ti,Xt){this.locationAutocompleteService=Rn,this.countryAutocompleteService=ti,this.configurationProvider=Xt,this.groupPrefix="",this.header="",this.smallVersion=!1,this.zipcodeSelection=new e.vpe,this.citySelection=new e.vpe,this.countriesConfigured$=(0,n.of)(!1)}ngOnInit(){this.countriesConfigured$=this.configurationProvider.getString(t.x3.PLATFORM_COUNTRIES,"").pipe((0,s.U)(Rn=>Rn&&Rn.trim().length>0))}displayCountry(Rn){return Rn?Rn.representation:""}static#e=this.\u0275fac=function(ti){return new(ti||ft)(e.Y36(i.l),e.Y36(l.V),e.Y36(t.Pc))};static#t=this.\u0275cmp=e.Xpm({type:ft,selectors:[["imx-edit-contact"]],hostAttrs:[1,"imx-edit-contact"],inputs:{formHandler:"formHandler",groupPrefix:"groupPrefix",header:"header",smallVersion:"smallVersion"},outputs:{zipcodeSelection:"zipcodeSelection",citySelection:"citySelection"},decls:21,vars:25,consts:[["translate",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],[1,"form__content-field-row"],["class","small-field","panelWidth","375px",3,"field","formHandler","control","autocompleteService","useAnyNameHolder","disableControl","autocompleteSelected",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[3,"field","formHandler","control","autocompleteService","useAnyNameHolder","disableControl","autocompleteSelected",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],["class","imx-form-control",3,"field","formHandler","control","autocompleteService","displayItemFn",4,"ngIf","ngIfElse"],["countriesSelect",""],["imxControl",""],[1,"small-field",3,"field","control","form","formHandler","config"],["panelWidth","375px",1,"small-field",3,"field","formHandler","control","autocompleteService","useAnyNameHolder","disableControl","autocompleteSelected"],[3,"field","formHandler","control","autocompleteService","useAnyNameHolder","disableControl","autocompleteSelected"],[1,"imx-form-control",3,"field","formHandler","control","autocompleteService","displayItemFn"],[3,"field","control","form","formHandler","config"]],template:function(ti,Xt){if(1&ti&&(e.TgZ(0,"h3",0),e._uU(1),e.qZA(),e.YNc(2,b,1,0,"ng-container",1)(3,ae,6,14,"ng-container",2),e.TgZ(4,"div",3),e.YNc(5,J,1,0,"ng-container",1)(6,q,1,0,"ng-container",1),e.qZA(),e.TgZ(7,"div",3),e.YNc(8,j,3,10,"imx-autocomplete",4)(9,Y,3,10,"imx-autocomplete",5),e.qZA(),e.YNc(10,K,1,5,"imx-autocomplete",6),e.ALo(11,"async"),e.YNc(12,$,1,3,"ng-template",null,7,e.W1O),e.TgZ(14,"div",3),e.YNc(15,ue,1,0,"ng-container",1)(16,at,2,3,"ng-container",2),e.qZA(),e.YNc(17,Et,5,12,"ng-container",2)(18,Vt,2,3,"ng-container",2)(19,r,1,5,"ng-template",null,8,e.W1O)),2&ti){const Je=e.MAs(13),dt=e.MAs(20);e.xp6(),e.Oqu(Xt.header),e.xp6(),e.Q6J("ngTemplateOutlet",dt)("ngTemplateOutletContext",e.DdM(21,Z)),e.xp6(),e.Q6J("ngIf",!Xt.smallVersion),e.xp6(2),e.Q6J("ngTemplateOutlet",dt)("ngTemplateOutletContext",e.DdM(22,Pt)),e.xp6(),e.Q6J("ngTemplateOutlet",dt)("ngTemplateOutletContext",e.DdM(23,Oe)),e.xp6(2),e.Q6J("hasFieldReadPermission",Xt.groupPrefix+".address.zipcode")("hasFieldReadPermissionFormHandler",Xt.formHandler),e.xp6(),e.Q6J("hasFieldReadPermission",Xt.groupPrefix+".address.city")("hasFieldReadPermissionFormHandler",Xt.formHandler),e.xp6(),e.Q6J("ngIf",e.lcZ(11,19,Xt.countriesConfigured$))("ngIfElse",Je),e.xp6(5),e.Q6J("ngTemplateOutlet",dt)("ngTemplateOutletContext",e.DdM(24,ye)),e.xp6(),e.Q6J("ngIf",!Xt.smallVersion),e.xp6(),e.Q6J("ngIf",!Xt.smallVersion),e.xp6(),e.Q6J("ngIf",Xt.smallVersion)}},dependencies:[c.O5,c.tP,o.Pi,x.Y,u.A,m.j,c.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}h3[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return ft})()},78942:(gt,X,a)=>{"use strict";a.d(X,{g:()=>ft});var e=a(19212),n=a(56223),s=a(25313),l=a(79309),i=a(72079),t=a(19352),p=a(97734),c=a(96124),o=a(23367),x=a(21473),m=(a(1009),a(67276)),b=a(41621),I=a(76503),H=a(71365),O=a(96814),P=a(97564),G=a(28907),B=a(36116),ae=a(47378),J=a(22194),q=a(1614);function j(Dt,Rn){1&Dt&&(e.TgZ(0,"p",4),e._uU(1,"imxplatform.common.no-records"),e.qZA())}function Y(Dt,Rn){1&Dt&&e._UZ(0,"tr",21)}function K(Dt,Rn){1&Dt&&e._UZ(0,"tr",22)}function ne(Dt,Rn){if(1&Dt&&(e.TgZ(0,"th",23),e._uU(1),e.qZA()),2&Dt){const ti=e.oxw(2);e.xp6(),e.Oqu(ti.formHandler.getFormFieldLabel(ti.attributeDefinitionsFormFieldId+":attribute"))}}function ee(Dt,Rn){if(1&Dt&&(e.TgZ(0,"td",24)(1,"span"),e._uU(2),e.ALo(3,"readI18n"),e.qZA()()),2&Dt){const ti=Rn.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,ti.controls.attribute.value.i18nName))}}function $(Dt,Rn){if(1&Dt&&(e.TgZ(0,"th",25),e._uU(1),e.qZA()),2&Dt){const ti=e.oxw(2);e.xp6(),e.Oqu(ti.formHandler.getFormFieldLabel(ti.attributeDefinitionsFormFieldId+":validityFromDate"))}}function ue(Dt,Rn){if(1&Dt&&e._UZ(0,"imx-form-control",28),2&Dt){const ti=e.oxw().$implicit,Xt=e.oxw(2);e.Q6J("field",Xt.formHandler.formConfiguration.findFormFieldById(Xt.attributeDefinitionsFormFieldId+":validityFromDate"))("control",ti.controls.validityFromDate)("form",Xt.formGroup)("formHandler",Xt.formHandler)("config",Xt.formHandler.formConfiguration)}}function ge(Dt,Rn){if(1&Dt&&(e.TgZ(0,"td",26),e.YNc(1,ue,1,5,"imx-form-control",27),e.qZA()),2&Dt){const ti=Rn.$implicit;e.Q6J("formGroup",ti),e.xp6(),e.Q6J("ngIf",null==ti.controls.attribute.value?null:ti.controls.attribute.value.requiresValidity)}}function Ke(Dt,Rn){if(1&Dt&&(e.TgZ(0,"th",25),e._uU(1),e.qZA()),2&Dt){const ti=e.oxw(2);e.xp6(),e.Oqu(ti.formHandler.getFormFieldLabel(ti.attributeDefinitionsFormFieldId+":validityToDate"))}}function at(Dt,Rn){if(1&Dt&&e._UZ(0,"imx-form-control",28),2&Dt){const ti=e.oxw().$implicit,Xt=e.oxw(2);e.Q6J("field",Xt.formHandler.formConfiguration.findFormFieldById(Xt.attributeDefinitionsFormFieldId+":validityToDate"))("control",ti.controls.validityToDate)("form",Xt.formGroup)("formHandler",Xt.formHandler)("config",Xt.formHandler.formConfiguration)}}function Le(Dt,Rn){if(1&Dt&&(e.TgZ(0,"td",26),e.YNc(1,at,1,5,"imx-form-control",27),e.qZA()),2&Dt){const ti=Rn.$implicit;e.Q6J("formGroup",ti),e.xp6(),e.Q6J("ngIf",null==ti.controls.attribute.value?null:ti.controls.attribute.value.requiresValidity)}}function R(Dt,Rn){if(1&Dt&&(e.TgZ(0,"th",23),e._uU(1),e.qZA()),2&Dt){const ti=e.oxw(2);e.xp6(),e.Oqu(ti.formHandler.getFormFieldLabel(ti.attributeDefinitionsFormFieldId+":information"))}}function Te(Dt,Rn){if(1&Dt&&e._UZ(0,"imx-form-control",28),2&Dt){const ti=e.oxw().$implicit,Xt=e.oxw(2);e.Q6J("field",Xt.formHandler.formConfiguration.findFormFieldById(Xt.attributeDefinitionsFormFieldId+":information"))("control",ti.controls.information)("form",Xt.formGroup)("formHandler",Xt.formHandler)("config",Xt.formHandler.formConfiguration)}}function me(Dt,Rn){if(1&Dt&&(e.TgZ(0,"td",24),e.YNc(1,Te,1,5,"imx-form-control",27),e.qZA()),2&Dt){const ti=Rn.$implicit;e.xp6(),e.Q6J("ngIf",null==ti.controls.attribute.value?null:ti.controls.attribute.value.additionalInfo)}}function Se(Dt,Rn){if(1&Dt&&(e.TgZ(0,"th",23),e._uU(1),e.qZA()),2&Dt){const ti=e.oxw(2);e.xp6(),e.Oqu(ti.formHandler.getFormFieldLabel(ti.attributeDefinitionsFormFieldId+":i18nInformation"))}}function Ue(Dt,Rn){if(1&Dt&&e._UZ(0,"imx-form-control",28),2&Dt){const ti=e.oxw().$implicit,Xt=e.oxw(2);e.Q6J("field",Xt.formHandler.formConfiguration.findFormFieldById(Xt.attributeDefinitionsFormFieldId+":i18nInformation"))("control",ti.controls.i18nInformation)("form",Xt.formGroup)("formHandler",Xt.formHandler)("config",Xt.formHandler.formConfiguration)}}function We(Dt,Rn){if(1&Dt&&(e.TgZ(0,"td",24),e.YNc(1,Ue,1,5,"imx-form-control",27),e.qZA()),2&Dt){const ti=Rn.$implicit;e.xp6(),e.Q6J("ngIf",null==ti.controls.attribute.value?null:ti.controls.attribute.value.additionalI18nInfo)}}function et(Dt,Rn){if(1&Dt&&(e.TgZ(0,"th",23),e._uU(1),e.qZA()),2&Dt){const ti=e.oxw(2);e.xp6(),e.Oqu(ti.formHandler.getFormFieldLabel(ti.attributeDefinitionsFormFieldId+":intValue"))}}function Et(Dt,Rn){if(1&Dt&&e._UZ(0,"imx-form-control",28),2&Dt){const ti=e.oxw().$implicit,Xt=e.oxw(2);e.Q6J("field",Xt.formHandler.formConfiguration.findFormFieldById(Xt.attributeDefinitionsFormFieldId+":intValue"))("control",ti.controls.intValue)("form",Xt.formGroup)("formHandler",Xt.formHandler)("config",Xt.formHandler.formConfiguration)}}function lt(Dt,Rn){if(1&Dt&&e._UZ(0,"imx-form-control",28),2&Dt){const ti=e.oxw().$implicit,Xt=e.oxw(2);e.Q6J("field",Xt.formHandler.formConfiguration.findFormFieldById(Xt.attributeDefinitionsFormFieldId+":doubleValue"))("control",ti.controls.doubleValue)("form",Xt.formGroup)("formHandler",Xt.formHandler)("config",Xt.formHandler.formConfiguration)}}function Vt(Dt,Rn){if(1&Dt&&e._UZ(0,"imx-select",31),2&Dt){const ti=e.oxw().$implicit,Xt=e.oxw(2);e.Q6J("field",Xt.formHandler.formConfiguration.findFormFieldById(Xt.attributeDefinitionsFormFieldId+":enumValue"))("control",ti.controls.enumValue)("form",Xt.formGroup)("formHandler",Xt.formHandler)("optionProvider",Xt.selectValueOptionsMap.get(ti.controls.attribute.value.id))}}function r(Dt,Rn){if(1&Dt&&e._UZ(0,"imx-base-autocomplete",32),2&Dt){const ti=e.oxw().$implicit,Xt=e.oxw(2);e.Q6J("formControl",ti.controls.entityIdValue)("autocompleteFilter",Xt.autocompleteFilterMap.get(ti.controls.attribute.value.id))("autocompleteService",Xt.autocompleteServiceMap.get(ti.controls.attribute.value.id))}}function Z(Dt,Rn){if(1&Dt&&(e.TgZ(0,"td",24),e.YNc(1,Et,1,5,"imx-form-control",27)(2,lt,1,5,"imx-form-control",27)(3,Vt,1,5,"imx-select",29)(4,r,1,3,"imx-base-autocomplete",30),e.qZA()),2&Dt){const ti=Rn.$implicit,Xt=e.oxw(2);e.xp6(),e.Q6J("ngIf",(null==ti.controls.attribute.value?null:ti.controls.attribute.value.valueType)===Xt.valueTypeInt),e.xp6(),e.Q6J("ngIf",(null==ti.controls.attribute.value?null:ti.controls.attribute.value.valueType)===Xt.valueTypeDouble),e.xp6(),e.Q6J("ngIf",(null==ti.controls.attribute.value?null:ti.controls.attribute.value.valueType)==Xt.valueTypeEnum),e.xp6(),e.Q6J("ngIf",(null==ti.controls.attribute.value?null:ti.controls.attribute.value.valueType)==Xt.valueTypeEntity&&Xt.autocompleteServiceMap.has(ti.controls.attribute.value.id))}}function Pt(Dt,Rn){1&Dt&&e._UZ(0,"th",33)}function Oe(Dt,Rn){if(1&Dt){const ti=e.EpF();e.TgZ(0,"a",36),e.NdJ("click",function(){e.CHM(ti);const Je=e.oxw().$implicit,dt=e.oxw(2);return e.KtG(dt.attributeRemoved.emit(Je.controls.attribute.value.id))}),e.qZA()}}function ye(Dt,Rn){if(1&Dt&&(e.TgZ(0,"td",34),e.YNc(1,Oe,1,0,"a",35),e.qZA()),2&Dt){const ti=Rn.$implicit,Xt=e.oxw(2);e.Q6J("formGroup",ti),e.xp6(),e.Q6J("hasFieldWritePermission",Xt.attributeDefinitionsFormFieldId)("hasFieldWritePermissionFormHandler",Xt.formHandler)}}function ve(Dt,Rn){if(1&Dt&&(e.TgZ(0,"table",5),e.YNc(1,Y,1,0,"tr",6)(2,K,1,0,"tr",7),e.ynx(3,8),e.YNc(4,ne,2,1,"th",9)(5,ee,4,3,"td",10),e.BQk(),e.ynx(6,11),e.YNc(7,$,2,1,"th",12)(8,ge,2,2,"td",13),e.BQk(),e.ynx(9,14),e.YNc(10,Ke,2,1,"th",12)(11,Le,2,2,"td",13),e.BQk(),e.ynx(12,15),e.YNc(13,R,2,1,"th",9)(14,me,2,1,"td",10),e.BQk(),e.ynx(15,16),e.YNc(16,Se,2,1,"th",9)(17,We,2,1,"td",10),e.BQk(),e.ynx(18,17),e.YNc(19,et,2,1,"th",9)(20,Z,5,4,"td",10),e.BQk(),e.ynx(21,18),e.YNc(22,Pt,1,0,"th",19)(23,ye,2,3,"td",20),e.BQk(),e.qZA()),2&Dt){const ti=e.oxw();e.Q6J("dataSource",ti.dataSource),e.xp6(),e.Q6J("matHeaderRowDef",ti.displayedColumns),e.xp6(),e.Q6J("matRowDefColumns",ti.displayedColumns)}}let ft=(()=>{class Dt{constructor(ti,Xt,Je,dt){this.dataObjectAutocompleteRegistry=ti,this.translateService=Xt,this.entitiesMgr=Je,this.changeDetectorRef=dt,this.valueTypeEntity=l.Vg,this.valueTypeInt=l.B8,this.valueTypeDouble=l.vk,this.valueTypeEnum=l.nJ,this.attributeRemoved=new e.vpe,this.attributeAdded=new e.vpe,this.autocompleteServiceMap=new Map,this.autocompleteFilterMap=new Map,this.selectValueOptionsMap=new Map,this.selectableAttributeOptions=[],this.destroy$=new i.xQ}ngOnInit(){this.attributeDefinitionsFormFieldId=this.fieldPrefix?this.fieldPrefix+":attributeDefinitions":"attributeDefinitions",this.attributeDefinitionsPermissionId=this.permissionIdPrefix?this.permissionIdPrefix+":attributeDefinitions":"attributeDefinitions",this.registerAddButton()}ngOnChanges(ti){this.prepareColumns(),this.prepareAttributes(),this.prepareSelectValues(),this.selectableAttributeOptions=this.notAssignedAttributes.map(Xt=>({label:Xt.i18nName,value:Xt.id?Xt.id:-1})).sort((Xt,Je)=>(0,b.Qi)(Xt.label,Je.label,this.translateService.currentLang))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}registerAddButton(){this.addField=new m.P("addControl","",{initialValue:-1,placeholder:"imxplatform.common.select-placeholder-add",permissionId:this.attributeDefinitionsPermissionId}),this.addControl=new n.p4,this.addControl.setValue(m.F),this.addControl.valueChanges.pipe((0,t.R)(this.destroy$),(0,p.h)(ti=>void 0!==ti&&ti!==m.F)).subscribe(ti=>{this.attributeAdded.emit(ti),this.addControl.setValue(m.F)})}prepareAttributes(){this.getAttributesFromDefinitions().forEach(ti=>{if(ti.valueType===this.valueTypeEntity){const Xt=this.dataObjectAutocompleteRegistry.getAutocompleteService(ti.valueEntityType);Xt&&(this.autocompleteServiceMap.set(ti.id,Xt),ti.valueEntityQueryOptions&&this.autocompleteFilterMap.set(ti.id,(0,I.i)(ti.valueEntityQueryOptions)))}}),this.prepareExtendedAttributeTable()}prepareSelectValues(){this.getAttributesFromDefinitions().some(Xt=>Xt.valueType===this.valueTypeEnum)&&this.entitiesMgr.getAllEntitiesOfType("ExtendedAttributeDefinitionValue").pipe((0,c.U)(Xt=>Xt.items)).subscribe(Xt=>{Xt.forEach(Je=>{const dt=this.selectValueOptionsMap.get(Je.assignedAttribute.id);dt?dt.find(Ie=>Ie.value===Je.id)||dt.push({value:Je.id,label:Je.i18nName}):this.selectValueOptionsMap.set(Je.assignedAttribute.id,[{value:Je.id,label:Je.i18nName}])}),this.changeDetectorRef.markForCheck()})}prepareExtendedAttributeTable(){const ti=this.formGroup.get("attributeDefinitions");if(!ti)throw new Error("Extended attributes: cannot prepareTable for undefined formArray");const Xt=new s.by(ti.controls);Xt.data.sort((Je,dt)=>(0,b.Qi)(Je.get("attribute").value.i18nName,dt.get("attribute").value.i18nName,this.translateService.currentLang)),Xt.data=Xt.data.filter(Je=>this.filterAttributeDefinitions(Je)),this.dataSource=Xt}filterAttributeDefinitions(ti){const Xt=ti.get("attribute").value.id;return this.assignedAttributes.some(Je=>Je.id===Xt)}prepareColumns(){const ti=this.getAttributesFromDefinitions(),Xt=ti.some(ot=>ot.additionalInfo),Je=ti.some(ot=>ot.additionalI18nInfo),dt=ti.some(ot=>ot.requiresValidity),Ie=ti.some(ot=>ot.valueType===this.valueTypeInt||ot.valueType===this.valueTypeDouble||ot.valueType===this.valueTypeEntity||ot.valueType===this.valueTypeEnum);this.displayedColumns=["attribute"],dt&&this.displayedColumns.push("validityFromDate","validityToDate"),Xt&&this.displayedColumns.push("information"),Je&&this.displayedColumns.push("i18nInformation"),Ie&&this.displayedColumns.push("attributeValue"),this.displayedColumns.push("removeColumn")}getAttributesFromDefinitions(){return this.formGroup.get("attributeDefinitions").controls.map(ti=>{if(ti.get("attribute")&&ti.get("attribute").value)return ti.get("attribute").value})}static#e=this.\u0275fac=function(Xt){return new(Xt||Dt)(e.Y36(o.R),e.Y36(H.sK),e.Y36(x.qB),e.Y36(e.sBO))};static#t=this.\u0275cmp=e.Xpm({type:Dt,selectors:[["imx-edit-extended-attributes-table"]],inputs:{formHandler:"formHandler",fieldPrefix:"fieldPrefix",permissionIdPrefix:"permissionIdPrefix",formGroup:"formGroup",assignedAttributes:"assignedAttributes",notAssignedAttributes:"notAssignedAttributes"},outputs:{attributeRemoved:"attributeRemoved",attributeAdded:"attributeAdded"},features:[e.TTD],decls:6,vars:8,consts:[["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[1,"imx-button-select",3,"disableControl","field","control","form","formHandler","optionProvider"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","attribute"],["mat-header-cell","","translate","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","validityFromDate"],["mat-header-cell","","class","date","translate","",4,"matHeaderCellDef"],["mat-cell","","class","date",3,"formGroup",4,"matCellDef"],["matColumnDef","validityToDate"],["matColumnDef","information"],["matColumnDef","i18nInformation"],["matColumnDef","attributeValue"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","","translate",""],["mat-cell",""],["mat-header-cell","","translate","",1,"date"],["mat-cell","",1,"date",3,"formGroup"],[3,"field","control","form","formHandler","config",4,"ngIf"],[3,"field","control","form","formHandler","config"],[3,"field","control","form","formHandler","optionProvider",4,"ngIf"],[3,"formControl","autocompleteFilter","autocompleteService",4,"ngIf"],[3,"field","control","form","formHandler","optionProvider"],[3,"formControl","autocompleteFilter","autocompleteService"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],["class","icon icon-trash imx-icon-middle imx-icon-clickable",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"]],template:function(Xt,Je){if(1&Xt&&(e.TgZ(0,"div"),e.YNc(1,j,2,0,"ng-template",null,0,e.W1O),e.TgZ(3,"div",1),e.YNc(4,ve,24,3,"table",2),e.qZA(),e._UZ(5,"imx-select",3),e.qZA()),2&Xt){const dt=e.MAs(2);e.xp6(4),e.Q6J("ngIf",Je.dataSource&&Je.dataSource.data.length>0)("ngIfElse",dt),e.xp6(),e.Q6J("disableControl",0===Je.selectableAttributeOptions.length)("field",Je.addField)("control",Je.addControl)("form",Je.formGroup)("formHandler",Je.formHandler)("optionProvider",Je.selectableAttributeOptions)}},dependencies:[O.O5,n.JJ,n.JL,s.BZ,s.fO,s.as,s.w1,s.Dz,s.nj,s.ge,s.ev,s.XQ,s.Gk,n.oH,n.sg,H.Pi,P.h,G.A,B.H,ae.X,J.F,q.j],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.date[_ngcontent-%COMP%]{max-width:130px}"],changeDetection:0})}return Dt})()},53256:(gt,X,a)=>{"use strict";a.d(X,{E:()=>H});var e=a(72079),n=a(19352),s=a(21473),i=(a(1009),a(19212)),t=a(96814),p=a(56223),c=a(71365),o=a(78942),x=a(1614);function u(O,P){1&O&&(i.ynx(0),i.TgZ(1,"p",2),i._uU(2,"imxplatform.common.no-records"),i.qZA(),i.BQk())}function m(O,P){if(1&O&&(i.TgZ(0,"h4"),i._uU(1),i.ALo(2,"readI18n"),i.qZA()),2&O){const G=i.oxw().$implicit,B=i.oxw();i.xp6(),i.Oqu(i.lcZ(2,1,B.attributeGroupMap.get(G).groupI18n))}}function b(O,P){if(1&O){const G=i.EpF();i.ynx(0),i.YNc(1,m,3,3,"h4",0),i.TgZ(2,"imx-edit-extended-attributes-table",3),i.NdJ("attributeRemoved",function(ae){i.CHM(G);const J=i.oxw();return i.KtG(J.removeExtendedAttributeDefinition(ae))})("attributeAdded",function(ae){i.CHM(G);const J=i.oxw();return i.KtG(J.addExtendedAttributeDefinition(ae))}),i.qZA(),i.BQk()}if(2&O){const G=P.$implicit,B=i.oxw();i.xp6(),i.Q6J("ngIf",B.attributeGroupMap.get(G).groupI18n),i.xp6(),i.Q6J("formHandler",B.formHandler)("formGroup",B.formGroup)("fieldPrefix",B.fieldPrefix)("permissionIdPrefix",B.permissionIdPrefix)("assignedAttributes",B.attributeGroupMap.get(G).assignedAttributes)("notAssignedAttributes",B.attributeGroupMap.get(G).notAssignedAttributes)}}let H=(()=>{class O{constructor(G){this.entitiesMgr=G,this.attributeGroupMap=new Map,this.allExtendedAttributes=[],this.destroy$=new e.xQ}ngOnChanges(G){this.attributeDefinitionsFormFieldId=this.fieldPrefix?this.fieldPrefix+":attributeDefinitions":"attributeDefinitions",this.extendedAttributes.pipe((0,n.R)(this.destroy$)).subscribe(B=>{this.allExtendedAttributes=B,this.formGroup.get("attributeDefinitions").controls.forEach(ae=>{if(ae.get("attribute")&&ae.get("attribute").value){const J=ae.get("attribute"),q=B.find(j=>j.id===J.value.id);q&&J.setValue(q)}}),this.buildGroups()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}get groups(){return[...this.attributeGroupMap.keys()].sort((G,B)=>G-B)}buildGroups(){this.attributeGroupMap.clear();const G=this.getAssignedAttributes();this.allExtendedAttributes.forEach(B=>{const ae=B.attributeGroup?B.attributeGroup.id:-1;this.attributeGroupMap.has(ae)||this.attributeGroupMap.set(ae,{assignedAttributes:[],notAssignedAttributes:[],groupI18n:B.attributeGroup?B.attributeGroup.i18nName:void 0}),G.some(J=>J.id===B.id)?this.attributeGroupMap.get(ae).assignedAttributes.push(B):this.attributeGroupMap.get(ae).notAssignedAttributes.push(B)})}getAssignedAttributes(){return this.formGroup.get("attributeDefinitions").controls.map(G=>{if(G.get("attribute")&&G.get("attribute").value)return G.get("attribute").value})}removeExtendedAttributeDefinition(G){const B=this.formGroup.get("attributeDefinitions").controls.findIndex(ae=>ae.get("attribute").value.id===G);B>-1&&this.formGroup.get("attributeDefinitions").removeAt(B),this.formGroup.get("attributeDefinitions").markAsDirty(),this.buildGroups()}addExtendedAttributeDefinition(G){const B=this.formHandler.addNewCollectionRow(this.attributeDefinitionsFormFieldId,!1);B.controls.attribute.setValue({id:G}),B.controls.enumValue.setValue(-1),this.entitiesMgr.getEntityWithIdOfType("ExtendedAttribute",G).subscribe(ae=>{B.controls.attribute.setValue(ae),this.formGroup.get("attributeDefinitions").push(B),this.formGroup.get("attributeDefinitions").markAsDirty(),this.buildGroups()})}static#e=this.\u0275fac=function(B){return new(B||O)(i.Y36(s.qB))};static#t=this.\u0275cmp=i.Xpm({type:O,selectors:[["imx-edit-extended-attributes"]],inputs:{formHandler:"formHandler",formGroup:"formGroup",extendedAttributes:"extendedAttributes",moduleId:"moduleId",fieldPrefix:"fieldPrefix",permissionIdPrefix:"permissionIdPrefix",record:"record"},features:[i.TTD],decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"],["translate","",1,"txt-grey","txt-md-sm","no-records"],[3,"formHandler","formGroup","fieldPrefix","permissionIdPrefix","assignedAttributes","notAssignedAttributes","attributeRemoved","attributeAdded"]],template:function(B,ae){1&B&&i.YNc(0,u,3,0,"ng-container",0)(1,b,3,7,"ng-container",1),2&B&&(i.Q6J("ngIf",0===ae.groups.length),i.xp6(),i.Q6J("ngForOf",ae.groups))},dependencies:[t.sg,t.O5,p.JL,p.sg,c.Pi,o.g,x.j],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}h4[_ngcontent-%COMP%]{padding-top:15px}"],changeDetection:0})}return O})()},42475:(gt,X,a)=>{"use strict";a.d(X,{d:()=>q});var e=a(19212),n=a(21473),s=a(49193),l=a(72079),i=a(51418),t=a(96124),p=a(69514),c=a(30324),x=(a(62192),a(61291)),u=a(96814),m=a(71365),b=a(97564),I=a(47378),H=a(22194),O=a(1614);function P(j,Y){if(1&j){const K=e.EpF();e.ynx(0),e.TgZ(1,"div",6),e._UZ(2,"imx-base-autocomplete",7,8),e.ALo(4,"async"),e.TgZ(5,"button",9),e.NdJ("click",function(){e.CHM(K);const ee=e.MAs(3);return e.oxw().addGeoRegion(ee.getSelectedId()),e.KtG(ee.writeValue(void 0))}),e.ALo(6,"async"),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.BQk()}if(2&j){const K=e.oxw();e.xp6(2),e.Q6J("autocompleteService",K.regionAutocompleteService)("disableControl",K.formHandler.formGroup.get("geoRegion")&&K.formHandler.formGroup.get("geoRegion").value||!e.lcZ(4,5,K.formHandler.hasEditPermission("geoRegion")))("label","imxplatform.common-entity.edit.panels.geo.geoRegion.choose"),e.xp6(3),e.Q6J("disabled",K.formHandler.formGroup.get("geoRegion")&&K.formHandler.formGroup.get("geoRegion").value||!e.lcZ(6,7,K.formHandler.hasEditPermission("geoRegion"))),e.xp6(2),e.hij(" ",e.lcZ(8,9,"imxplatform.dialog.common-confirm")," ")}}function G(j,Y){1&j&&(e.TgZ(0,"p",10),e._uU(1,"imxplatform.common.select-placeholder-no-selection"),e.qZA())}function B(j,Y){if(1&j){const K=e.EpF();e.TgZ(0,"a",20),e.NdJ("click",function(){e.CHM(K);const ee=e.oxw(2);return e.KtG(ee.removeGeoRegion())}),e.qZA()}}const ae=j=>({clickable:j});function J(j,Y){if(1&j){const K=e.EpF();e.TgZ(0,"div",11)(1,"table",12)(2,"tr")(3,"th",13),e._uU(4,"entity.Region.id"),e.qZA(),e.TgZ(5,"th",13),e._uU(6,"entity.Region.name"),e.qZA(),e.TgZ(7,"th",13),e._uU(8,"entity.Region.geoLevel"),e.qZA(),e._UZ(9,"th",14),e.qZA(),e.TgZ(10,"tr",15),e.NdJ("click",function(){e.CHM(K);const ee=e.oxw();return e.KtG(ee.openGeoObject())}),e.TgZ(11,"td",16),e._uU(12),e.qZA(),e.TgZ(13,"td",16),e._uU(14),e.ALo(15,"readI18n"),e.qZA(),e.TgZ(16,"td",16),e.ynx(17),e._uU(18),e.ALo(19,"async"),e.BQk(),e.qZA(),e.TgZ(20,"td",17),e._UZ(21,"span",18),e.YNc(22,B,1,0,"a",19),e.qZA()()()()}if(2&j){const K=e.oxw();e.xp6(10),e.Q6J("ngClass",e.VKq(10,ae,K.hasBaseEntityPermission())),e.xp6(2),e.Oqu(K.formHandler.formGroup.get("geoRegion").value.id),e.xp6(2),e.Oqu(e.lcZ(15,6,K.formHandler.formGroup.get("geoRegion").value.i18nName)),e.xp6(4),e.hij(" ",e.lcZ(19,8,K.geoLevel$)," "),e.xp6(4),e.Q6J("hasFieldWritePermission","geoRegion")("hasFieldWritePermissionFormHandler",K.formHandler)}}let q=(()=>{class j{constructor(K,ne,ee,$,ue){this.regionAutocompleteService=K,this.mgmtDataService=ne,this.changeDetectorRef=ee,this.baseEntityLinkService=$,this.securityManager=ue,this.disableCoordinates=new e.vpe,this.resetPoint=new e.vpe,this.geoTypeChanged=new e.vpe,this.geoLevel$=(0,s.of)(""),this.destroy$=new l.xQ}ngOnChanges(K){K.record&&this.formHandler.formGroup.get("geoRegion")&&this.formHandler.formGroup.get("geoRegion").value&&this.formHandler.formGroup.get("geoRegion").value.id&&(this.geoLevel$=this.readGeoLevelNameByID(this.formHandler.formGroup.get("geoRegion").value.id))}readGeoLevelNameByID(K){return this.mgmtDataService.getRegions({id:K},{sortFields:[{direction:"ASC",field:"ID"}]}).pipe((0,i.q)(1),(0,t.U)(ne=>ne.items.length>0?ne.items[0].geoLevel.name:""))}addGeoRegion(K){K&&this.mgmtDataService.getRegions({id:K.toString(10)},{sortFields:[{direction:"ASC",field:"ID"}]}).pipe((0,i.q)(1)).subscribe(ne=>{ne.items.forEach(ee=>{this.formHandler.formGroup.get("geoRegion").setValue(ee),this.geoLevel$=this.readGeoLevelNameByID(ee.id.toString()),this.geoTypeChanged.emit("Polygon"),ee.coordinates.longitude&&this.formHandler.formGroup.get("geoInfo.coordinates.longitude").setValue(ee.coordinates.longitude.toString().replace(".",",")),ee.coordinates.latitude&&this.formHandler.formGroup.get("geoInfo.coordinates.latitude").setValue(ee.coordinates.latitude.toString().replace(".",",")),this.disableCoordinates.emit(!0),this.formHandler.formGroup.get("geoRegion").markAsDirty(),this.changeDetectorRef.markForCheck()})})}removeGeoRegion(){this.formHandler.formGroup.get("geoRegion").setValue(null),this.disableCoordinates.emit(!1),this.resetPoint.emit(),this.changeDetectorRef.markForCheck()}openGeoObject(){this.baseEntityLinkService.openBaseEntityInNewTab("imxplatform_core","Region",1,"id","ASC",!0,this.formHandler.formGroup.get("geoRegion").value.id)}hasBaseEntityPermission(){return this.securityManager.hasAnyPermissionByNames(n.uo.F_MODULE_BASEENTITIES_MANAGEMENT_READ.name)}static#e=this.\u0275fac=function(ne){return new(ne||j)(e.Y36(p.M),e.Y36(c.Q),e.Y36(e.sBO),e.Y36(x.X),e.Y36(n.Xh))};static#t=this.\u0275cmp=e.Xpm({type:j,selectors:[["imx-add-geo-region"]],hostAttrs:[1,"imx-add-geo-region"],inputs:{formHandler:"formHandler",record:"record"},outputs:{disableCoordinates:"disableCoordinates",resetPoint:"resetPoint",geoTypeChanged:"geoTypeChanged"},features:[e.TTD],decls:8,vars:4,consts:[[1,"form__content-row"],[1,"form__content-group"],["translate",""],[4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],["noRecord",""],["class","form__table",4,"ngIf","ngIfElse"],[1,"form__content-field-row"],["name","addGeoRegion",1,"contact-addressbase-autocomplete",3,"autocompleteService","disableControl","label"],["geoRegionAutocompleteControl",""],[1,"imx-button","prio2","addButton",3,"disabled","click"],["translate","",1,"txt-grey","txt-md-sm","no-records"],[1,"form__table"],[1,"mat-mdc-table"],["translate","",1,"mat-mdc-header-cell"],["translate","",1,"mat-mdc-header-cell","action-column"],[3,"ngClass","click"],[1,"mat-mdc-cell"],[1,"mat-mdc-cell","action-column"],[1,"hidden-height"],["class","icon icon-trash imx-icon-middle imx-icon-clickable",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"]],template:function(ne,ee){if(1&ne&&(e.TgZ(0,"div",0)(1,"div",1)(2,"h3",2),e._uU(3,"entity.GeoInfo.geoRegion"),e.qZA(),e.YNc(4,P,9,11,"ng-container",3)(5,G,2,0,"ng-template",null,4,e.W1O)(7,J,23,12,"div",5),e.qZA()()),2&ne){const $=e.MAs(6);e.xp6(4),e.Q6J("hasFieldWritePermission","geoRegion")("hasFieldWritePermissionFormHandler",ee.formHandler),e.xp6(3),e.Q6J("ngIf",ee.record&&ee.formHandler.formGroup.get("geoRegion")&&ee.formHandler.formGroup.get("geoRegion").value)("ngIfElse",$)}},dependencies:[u.mk,u.O5,m.Pi,b.h,I.X,H.F,u.Ov,m.X$,O.j],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]   .hidden-height[_ngcontent-%COMP%]{display:inline-block;height:20px}.clickable[_ngcontent-%COMP%]{cursor:pointer}.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}"]})}return j})()},75661:(gt,X,a)=>{"use strict";a.d(X,{S:()=>Ji});var e=a(19212),n=a(21473),s=a(49193),l=a(96124),i=a(27556),t=a(53204),p=a(44590),c=a(22819),x=(a(1009),a(97683)),u=a(69862),m=a(56223),b=a(95435),I=a(75222),H=a(51418),O=a(62413),P=a(67638),B=(a(28635),a(23765)),ae=a(59143),J=a(33946),q=a(94366),j=a(17700),Y=a(96814),K=a(71365),ne=a(27711);const ee=["editorComponent"];function $(wn,po){if(1&wn){const Kn=e.EpF();e.TgZ(0,"mat-dialog-content",1)(1,"div",2),e._UZ(2,"imx-route-editor",3,4),e.TgZ(4,"div",5)(5,"button",6),e.NdJ("click",function(){e.CHM(Kn);const Wi=e.oxw();return e.KtG(Wi.handleConfirm())}),e._uU(6," imxplatform.dialog.common-confirm "),e.qZA(),e.TgZ(7,"button",7),e.NdJ("click",function(){e.CHM(Kn);const Wi=e.oxw();return e.KtG(Wi.handleCancel())}),e._uU(8," imxplatform.dialog.common-abort "),e.qZA()()()()}if(2&wn){const Kn=e.oxw();e.xp6(2),e.Q6J("zoom",Kn.data.zoom)("longitude",Kn.data.longitude)("latitude",Kn.data.latitude)("existingRouteType",Kn.data.routeType)("recalculateOnInit",Kn.data.recalculateOnInit)("geoObject",Kn.data.geoObject),e.xp6(3),e.Q6J("disabled",Kn.submitBtnDisabled())}}let ue=(()=>{class wn{constructor(Kn,Vn,Wi,Ft){this.data=Kn,this.dialogRef=Vn,this.mapRouteService=Wi,this.maptoolkitApiLoaderService=Ft}submitBtnDisabled(){return this.data.geoObject?.coordinates?.length>0&&!this.mapRouteService.getRoute().initialized}handleConfirm(){const Kn=this.getDialogResult();this.mapRouteService.resetRoute(),this.dialogRef.close(Kn)}handleCancel(){this.mapRouteService.resetRoute(),this.dialogRef.close(void 0)}getDialogResult(){return this.data.routeResult=this.editorComponent.getEditedRouteResult(),this.data}static#e=this.\u0275fac=function(Vn){return new(Vn||wn)(e.Y36(j.WI),e.Y36(j.so),e.Y36(b.$),e.Y36(b.vK))};static#t=this.\u0275cmp=e.Xpm({type:wn,selectors:[["ng-component"]],viewQuery:function(Vn,Wi){if(1&Vn&&e.Gf(ee,5),2&Vn){let Ft;e.iGM(Ft=e.CRH())&&(Wi.editorComponent=Ft.first)}},decls:2,vars:3,consts:[["class","route-edit-dialog",4,"ngIf"],[1,"route-edit-dialog"],[1,"wrapper"],[3,"zoom","longitude","latitude","existingRouteType","recalculateOnInit","geoObject"],["editorComponent",""],[1,"button-bar"],["translate","",1,"imx-button","cta",3,"disabled","click"],["translate","",1,"imx-button","default",3,"click"]],template:function(Vn,Wi){1&Vn&&(e.YNc(0,$,9,7,"mat-dialog-content",0),e.ALo(1,"async")),2&Vn&&e.Q6J("ngIf",e.lcZ(1,1,Wi.maptoolkitApiLoaderService.loadEditorApi$))},dependencies:[Y.O5,j.xY,K.Pi,ne.F,Y.Ov],styles:[".route-edit-dialog[_ngcontent-%COMP%]{margin:0;padding:0}.wrapper[_ngcontent-%COMP%]{position:relative}.wrapper[_ngcontent-%COMP%]   .button-bar[_ngcontent-%COMP%]{position:absolute;right:10px;bottom:20px;display:flex;flex-wrap:wrap;justify-content:flex-end}.wrapper[_ngcontent-%COMP%]   .button-bar[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{margin-right:5px}.wrapper[_ngcontent-%COMP%]   .button-bar[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]:last-of-type{margin-right:0}[_nghost-%COMP%]     .mat-mdc-dialog-content, [_nghost-%COMP%]     .mat-mdc-dialog-content.route-edit-dialog{max-height:100vh}  .mat-mdc-dialog-container{padding:0}"]})}return wn})(),ge=(()=>{class wn{constructor(Kn,Vn){this.data=Kn,this.dialogRef=Vn}handleCancel(){this.dialogRef.close(void 0)}gotoTourModule(){this.dialogRef.close(!0)}getDialogResult(){return!1}static#e=this.\u0275fac=function(Vn){return new(Vn||wn)(e.Y36(j.WI),e.Y36(j.so))};static#t=this.\u0275cmp=e.Xpm({type:wn,selectors:[["ng-component"]],decls:21,vars:13,consts:[["dialogType","confirm",3,"icon","submitButtonLabel","cancelButtonLabel","getSubmitResult"],["translate",""],["translate","",1,"hint"],[1,"dialog-form"],[1,"button-bar"],[1,"imx-button","prio2","with-icon",3,"click"],[1,"icon","icon-file-download"],[1,"icon","icon-checkmark"]],template:function(Vn,Wi){1&Vn&&(e.TgZ(0,"imx-dialog",0)(1,"h2",1),e._uU(2,"imxplatform.component.route-edit-finish-dialog.header"),e.qZA(),e._UZ(3,"br"),e.TgZ(4,"p",2),e._uU(5,"imxplatform.component.route-edit-finish-dialog.text"),e.qZA(),e.TgZ(6,"div",3)(7,"div")(8,"div",4)(9,"button",5),e.NdJ("click",function(){return Wi.data.downloadGpxFn()}),e._uU(10),e.ALo(11,"translate"),e._UZ(12,"i",6),e.qZA(),e.TgZ(13,"button",5),e.NdJ("click",function(){return Wi.data.downloadKmlFn()}),e._uU(14),e.ALo(15,"translate"),e._UZ(16,"i",6),e.qZA(),e.TgZ(17,"button",5),e.NdJ("click",function(){return Wi.gotoTourModule()}),e._uU(18),e.ALo(19,"translate"),e._UZ(20,"i",7),e.qZA()()()()()),2&Vn&&(e.Q6J("icon","icon-map_tour")("submitButtonLabel","imxplatform.component.route-edit-finish-dialog.close-btn")("cancelButtonLabel",void 0)("getSubmitResult",Wi.getDialogResult.bind(Wi)),e.xp6(10),e.hij("",e.lcZ(11,7,"imxplatform.component.route-edit-finish-dialog.gpx-download")," "),e.xp6(4),e.hij("",e.lcZ(15,9,"imxplatform.component.route-edit-finish-dialog.kml-download")," "),e.xp6(4),e.hij("",e.lcZ(19,11,"imxplatform.component.route-edit-finish-dialog.gpx-verify")," "))},dependencies:[K.Pi,J.a,K.X$],styles:["[_nghost-%COMP%]   .dialog-form-group[_ngcontent-%COMP%]{border:none}[_nghost-%COMP%]   h2[_ngcontent-%COMP%]{font-size:25px;font-weight:500}.button-bar[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;margin:15px 0}.button-bar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:40px;margin-bottom:10px}"]})}return wn})();var Ke=a(29774);let at=(()=>{class wn{constructor(Kn){this.dialogRef=Kn,this.routeTypeEnum=b.V8}selectRouteTypeAndClose(Kn){this.dialogRef.close(Kn)}handleCancel(){this.dialogRef.close(void 0)}static#e=this.\u0275fac=function(Vn){return new(Vn||wn)(e.Y36(j.so))};static#t=this.\u0275cmp=e.Xpm({type:wn,selectors:[["ng-component"]],decls:13,vars:10,consts:[["dialogType","confirm",3,"icon","submitButtonLabel"],["translate",""],["translate","",1,"hint"],[1,"dialog-form"],[1,"dialog-form-group"],[1,"icon-row"],[3,"icon","label","iconClicked"]],template:function(Vn,Wi){1&Vn&&(e.TgZ(0,"imx-dialog",0)(1,"h2",1),e._uU(2,"imxplatform.component.route-type-dialog.header"),e.qZA(),e._UZ(3,"br"),e.TgZ(4,"p",2),e._uU(5,"imxplatform.component.route-type-dialog.text"),e.qZA(),e.TgZ(6,"div",3)(7,"div",4)(8,"div",5)(9,"imx-editor-icon",6),e.NdJ("iconClicked",function(){return Wi.selectRouteTypeAndClose(Wi.routeTypeEnum.FOOT)}),e.qZA(),e.TgZ(10,"imx-editor-icon",6),e.NdJ("iconClicked",function(){return Wi.selectRouteTypeAndClose(Wi.routeTypeEnum.BIKE)}),e.qZA(),e.TgZ(11,"imx-editor-icon",6),e.NdJ("iconClicked",function(){return Wi.selectRouteTypeAndClose(Wi.routeTypeEnum.CAR)}),e.qZA(),e.TgZ(12,"imx-editor-icon",6),e.NdJ("iconClicked",function(){return Wi.selectRouteTypeAndClose(Wi.routeTypeEnum.FREE)}),e.qZA()()()()()),2&Vn&&(e.Q6J("icon","icon-map_tour")("submitButtonLabel",void 0),e.xp6(9),e.Q6J("icon","map_walking")("label","maptoolkit.components.route-editor.type-foot"),e.xp6(),e.Q6J("icon","map_bicycle")("label","maptoolkit.components.route-editor.type-bike"),e.xp6(),e.Q6J("icon","map_car")("label","maptoolkit.components.route-editor.type-car"),e.xp6(),e.Q6J("icon","map_pen")("label","maptoolkit.components.route-editor.type-free"))},dependencies:[K.Pi,Ke.z,J.a],styles:["[_nghost-%COMP%]   .dialog-form-group[_ngcontent-%COMP%]{border:none}[_nghost-%COMP%]   h2[_ngcontent-%COMP%]{font-size:25px;font-weight:500}.icon-row[_ngcontent-%COMP%]{-moz-column-gap:10px;column-gap:10px;display:flex;flex-direction:row;margin:15px 0;justify-content:center}.icon-row[_ngcontent-%COMP%]   imx-editor-icon[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ced4e0;border-radius:3px;padding:13px 15px}.hint[_ngcontent-%COMP%]{margin:0 0 18px}"]})}return wn})();var Le=a(8832),R=a(50579),Te=a(1614),me=a(64170),Se=a(92596),Ue=a(33118),We=a(82621),et=a(64022),Et=a(59776);let lt=(()=>{class wn{constructor(Kn){this.searchServices=Kn}getServiceForEntityType(Kn){return this.searchServices.find(Vn=>Vn.getEntityType()===Kn)}static#e=this.\u0275fac=function(Vn){return new(Vn||wn)(e.LFG(Et.h))};static#t=this.\u0275prov=e.Yz7({token:wn,factory:wn.\u0275fac,providedIn:"root"})}return wn})();var Vt=a(69258),r=a(22941),Z=a(22194);function Pt(wn,po){if(1&wn&&(e.TgZ(0,"p")(1,"span"),e._uU(2),e.ALo(3,"translate"),e.qZA()()),2&wn){const Kn=e.oxw();e.xp6(2),e.hij(" ",e.lcZ(3,1,Kn.translateEntityStateKeyToName(Kn.item.entityState.key)),"")}}function Oe(wn,po){if(1&wn&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&wn){const Kn=e.oxw(2);e.xp6(),e.hij(" (",null==Kn.item.client||null==Kn.item.client.reliabilityClassification?null:Kn.item.client.reliabilityClassification.name,")")}}function ye(wn,po){if(1&wn&&(e.TgZ(0,"p"),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"readI18n"),e.qZA(),e.YNc(6,Oe,2,1,"span",2),e.qZA()),2&wn){const Kn=e.oxw();e.xp6(),e.hij("",e.lcZ(2,3,"entity.CoreDataObject.client"),": "),e.xp6(3),e.Oqu(e.lcZ(5,5,null==Kn.item.client?null:Kn.item.client.name)),e.xp6(2),e.Q6J("ngIf",null==Kn.item.client||null==Kn.item.client.reliabilityClassification?null:Kn.item.client.reliabilityClassification.name)}}function ve(wn,po){if(1&wn&&(e.TgZ(0,"p"),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"number"),e.qZA()()),2&wn){const Kn=e.oxw();e.xp6(),e.hij("",e.lcZ(2,2,"entity.ScorableDataObject.contentScore"),": "),e.xp6(3),e.hij(" ",e.xi3(5,4,Kn.item.contentScore,"1.0-1"),"")}}function ft(wn,po){1&wn&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&wn&&(e.xp6(),e.hij("",e.lcZ(2,1,"imxplatform.common-entity.edit.panels.contact-data.title"),":"))}function Dt(wn,po){if(1&wn&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&wn){const Kn=e.oxw();e.xp6(),e.Oqu(null==Kn.item.contact1||null==Kn.item.contact1.address?null:Kn.item.contact1.address.street)}}function Rn(wn,po){if(1&wn&&(e.TgZ(0,"span"),e._uU(1),e._UZ(2,"br"),e.qZA()),2&wn){const Kn=e.oxw();e.xp6(),e.hij(" ",null==Kn.item.contact1||null==Kn.item.contact1.address?null:Kn.item.contact1.address.streetNo,"")}}function ti(wn,po){if(1&wn&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&wn){const Kn=e.oxw();e.xp6(),e.Oqu(null==Kn.item.contact1||null==Kn.item.contact1.address?null:Kn.item.contact1.address.zipcode)}}function Xt(wn,po){if(1&wn&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&wn){const Kn=e.oxw();e.xp6(),e.hij(" ",null==Kn.item.contact1||null==Kn.item.contact1.address?null:Kn.item.contact1.address.city,"")}}function Je(wn,po){1&wn&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&wn&&(e.xp6(),e.hij("",e.lcZ(2,1,"entity.Productline.plural"),":"))}function dt(wn,po){if(1&wn&&(e.TgZ(0,"li"),e._uU(1),e.ALo(2,"readI18n"),e.qZA()),2&wn){const Kn=po.$implicit;e.xp6(),e.Oqu(e.lcZ(2,1,Kn.i18nName))}}function Ie(wn,po){if(1&wn&&(e.TgZ(0,"ul"),e.YNc(1,dt,3,3,"li",3),e.qZA()),2&wn){const Kn=e.oxw();e.xp6(),e.Q6J("ngForOf",Kn.filterMetainfosToProductlines(Kn.item.metainfos))}}const ot=(wn,po)=>["/",wn,"edit",po];let ct=(()=>{class wn{constructor(Kn,Vn){this.entityStateService=Kn,this.configurationProvider=Vn}showContentScore(){return this.configurationProvider.getBooleanFromSnapshot(n.x3.PLATFORM_CONTENT_SCORE_ENABLED)}get typeTranslation(){switch(this.type){case et.t8.ADDRESSBASE_ENTITY.type:return et.t8.ADDRESSBASE_ENTITY.singleLabel;case et.t8.OFFER_ENTITY.type:return et.t8.OFFER_ENTITY.singleLabel;case et.t8.EVENT_ENTITY.type:return et.t8.EVENT_ENTITY.singleLabel;case et.t8.ARTICLE_ENTITY.type:return et.t8.ARTICLE_ENTITY.singleLabel}}get routeTypes(){switch(this.type){case et.t8.ADDRESSBASE_ENTITY.type:return"addressbases";case et.t8.OFFER_ENTITY.type:return"offers";case et.t8.EVENT_ENTITY.type:return"events";case et.t8.ARTICLE_ENTITY.type:return"articles"}}translateEntityStateKeyToName(Kn){return this.entityStateService.determineStateForObject(Kn,[],!1).i18n}filterMetainfosToProductlines(Kn){return Kn.map(Vn=>Vn.productline).filter(Vn=>![1e8,100013e3,2e8].includes(Vn.id)).filter(Vn=>Vn.i18nName)}static#e=this.\u0275fac=function(Vn){return new(Vn||wn)(e.Y36(Vt.O),e.Y36(n.Pc))};static#t=this.\u0275cmp=e.Xpm({type:wn,selectors:[["ng-component"]],inputs:{item:"item",type:"type"},decls:20,vars:21,consts:[[1,"headline",3,"routerLink"],[1,"headline"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(Vn,Wi){1&Vn&&(e.TgZ(0,"div")(1,"p"),e._uU(2),e.ALo(3,"translate"),e.TgZ(4,"a",0),e._uU(5),e.ALo(6,"readI18n"),e.qZA(),e.TgZ(7,"span",1),e._uU(8),e.qZA()(),e.YNc(9,Pt,4,3,"p",2)(10,ye,7,7,"p",2)(11,ve,6,7,"p",2)(12,ft,3,3,"span",2),e.TgZ(13,"p"),e.YNc(14,Dt,2,1,"span",2)(15,Rn,3,1,"span",2)(16,ti,2,1,"span",2)(17,Xt,2,1,"span",2),e.qZA(),e.YNc(18,Je,3,3,"span",2)(19,Ie,2,1,"ul",2),e.qZA()),2&Vn&&(e.xp6(2),e.hij("",e.lcZ(3,14,Wi.typeTranslation),": "),e.xp6(2),e.Q6J("routerLink",e.WLB(18,ot,Wi.routeTypes,Wi.item.id)),e.xp6(),e.hij(" ",e.lcZ(6,16,Wi.item.title)," "),e.xp6(3),e.hij(" ",Wi.item.id,""),e.xp6(),e.Q6J("ngIf",Wi.item.entityState&&null!==Wi.item.entityState.key),e.xp6(),e.Q6J("ngIf",null==Wi.item.client?null:Wi.item.client.name),e.xp6(),e.Q6J("ngIf",Wi.item.contentScore&&Wi.showContentScore()),e.xp6(),e.Q6J("ngIf",Wi.item.contact1),e.xp6(2),e.Q6J("ngIf",null==Wi.item.contact1||null==Wi.item.contact1.address?null:Wi.item.contact1.address.street),e.xp6(),e.Q6J("ngIf",null==Wi.item.contact1||null==Wi.item.contact1.address?null:Wi.item.contact1.address.streetNo),e.xp6(),e.Q6J("ngIf",null==Wi.item.contact1||null==Wi.item.contact1.address?null:Wi.item.contact1.address.zipcode),e.xp6(),e.Q6J("ngIf",null==Wi.item.contact1||null==Wi.item.contact1.address?null:Wi.item.contact1.address.city),e.xp6(),e.Q6J("ngIf",Wi.item.metainfos&&Wi.filterMetainfosToProductlines(Wi.item.metainfos).length>0),e.xp6(),e.Q6J("ngIf",Wi.item.metainfos))},dependencies:[Y.sg,Y.O5,r.rH,Z.F,Y.JJ,K.X$,Te.j],styles:[".headline[_ngcontent-%COMP%]{color:#fff}  .maplibregl-popup-content{font-size:13px}  .maplibregl-popup-content p,   .maplibregl-popup-content ul{margin:0 0 5px}  .maplibregl-popup-content ul{padding:0 0 0 15px}"]})}return wn})();var tn=a(23357),yi=a(10444);function ni(wn,po){if(1&wn){const Kn=e.EpF();e.ynx(0),e.TgZ(1,"imx-base-upload",10),e.NdJ("uploadComplete",function(Wi){e.CHM(Kn);const Ft=e.oxw(2);return e.KtG(Ft.uploadComplete.emit(Wi))}),e.ALo(2,"async"),e.ALo(3,"async"),e.qZA(),e.BQk()}if(2&wn){const Kn=e.oxw(2);e.xp6(),e.Q6J("type","extractGeometry")("showHeaderInformation",!1)("buttonLbl","imxplatform.common-entity.edit.panels.geo.read-kml-gpx")("allowedFileTypes",".gpx,.kml")("allowMultipleFiles",!1)("autoUpload",!0)("disabled",!e.lcZ(2,8,Kn.formHandler.hasEditPermission("geoInfo.coordinates"))||!e.lcZ(3,10,Kn.formHandler.hasSavePermission()))("showFileSelectButton",!0)}}function sn(wn,po){if(1&wn){const Kn=e.EpF();e.TgZ(0,"div",6)(1,"button",7),e.NdJ("click",function(){e.CHM(Kn);const Wi=e.oxw();return e.KtG(Wi.editRoute.emit())}),e.ALo(2,"async"),e.ALo(3,"async"),e._uU(4),e.ALo(5,"translate"),e._UZ(6,"i",8),e.qZA(),e.YNc(7,ni,4,12,"ng-container",9),e.qZA()}if(2&wn){const Kn=e.oxw();e.xp6(),e.Q6J("disabled",!e.lcZ(2,3,Kn.formHandler.hasSavePermission())||!e.lcZ(3,5,Kn.formHandler.hasEditPermission("geoInfo.coordinates"))),e.xp6(3),e.hij("",e.lcZ(5,7,(null==Kn.geoObject||null==Kn.geoObject.coordinates?null:Kn.geoObject.coordinates.length)>0?"imxplatform.common-entity.edit.panels.geo.geo-map.edit-tour":"imxplatform.common-entity.edit.panels.geo.geo-map.new-tour")," "),e.xp6(3),e.Q6J("ngIf",Kn.routeEditorEnabled&&!Kn.hideUploadBtn)}}let ii=(()=>{class wn{constructor(Kn,Vn,Wi,Ft){this.distanceSearchProvider=Kn,this.resolver=Vn,this.injector=Wi,this.changeDetectorRef=Ft,this.logger=(0,n.jl)("FeaturedMtkMapComponent",i.H.name),this.coordinatesDisabled=!1,this.routeEditorEnabled=!1,this.hideUploadBtn=!1,this.hideMainMarker=!1,this.positionChanged=new e.vpe,this.zoomChanged=new e.vpe,this.editRoute=new e.vpe,this.uploadComplete=new e.vpe,this.aroundMeItems=[],this.objectTypesControl=new m.p4,this.objectTypes=[{value:"NONE",label:"Keine"},{value:et.t8.ADDRESSBASE_ENTITY.type,label:et.t8.ADDRESSBASE_ENTITY.pluralLabel},{value:et.t8.OFFER_ENTITY.type,label:et.t8.OFFER_ENTITY.pluralLabel},{value:et.t8.ARTICLE_ENTITY.type,label:et.t8.ARTICLE_ENTITY.pluralLabel}],this.defaultPositionLat=47.782283,this.defaultPositionLong=12.463067}ngOnInit(){this._initAroundMeCtrl()}ngOnChanges(Kn){Kn.record&&this.objectTypesControl.setValue("NONE")}_initAroundMeCtrl(){this.objectTypesControl.setValue("NONE"),this.objectTypesControl.valueChanges.subscribe(Kn=>{if("NONE"!==Kn){const Vn=this.distanceSearchProvider.getServiceForEntityType(Kn);if(!Vn)throw new Error("Can't find a distance search service for type: "+Kn);Vn.search(this.latitude?this.latitude:this.defaultPositionLat,this.longitude?this.longitude:this.defaultPositionLong,100,Kn===this.record._entityType?51:50).subscribe(Ft=>{let Oi=Ft.items;Kn===this.record._entityType&&(Oi=Oi.filter(On=>On.id!==this.record.id)),this.aroundMeItems=Oi.map(On=>({popupHtml:this.createMapPopupComponent(On,Kn).location.nativeElement.innerHTML,latitude:On.geoInfo.coordinates.latitude,longitude:On.geoInfo.coordinates.longitude})),this.changeDetectorRef.markForCheck()})}else this.aroundMeItems=[]})}createMapPopupComponent(Kn,Vn){const Wi=this.resolver.resolveComponentFactory(ct).create(this.injector);return Wi.instance.item=Kn,Wi.instance.type=Vn,Wi.changeDetectorRef.detectChanges(),Wi}static#e=this.\u0275fac=function(Vn){return new(Vn||wn)(e.Y36(lt),e.Y36(e._Vd),e.Y36(e.zs3),e.Y36(e.sBO))};static#t=this.\u0275cmp=e.Xpm({type:wn,selectors:[["imx-featured-mtk-map"]],inputs:{formHandler:"formHandler",longitude:"longitude",latitude:"latitude",geoObject:"geoObject",zoom:"zoom",record:"record",coordinatesDisabled:"coordinatesDisabled",routeEditorEnabled:"routeEditorEnabled",hideUploadBtn:"hideUploadBtn",hideMainMarker:"hideMainMarker"},outputs:{positionChanged:"positionChanged",zoomChanged:"zoomChanged",editRoute:"editRoute",uploadComplete:"uploadComplete"},features:[e.TTD],decls:8,vars:14,consts:[[1,"map-wrapper"],["class","toolbar-row",4,"ngIf"],[1,"map-add-button"],[1,"map-add-button__inner"],["label","imxplatform.common-entity.edit.panels.geo.map-show-further-objects",3,"formControl","options"],[3,"mapDisabled","zoom","longitude","latitude","geoObject","aroundMeItems","hideMainMarker","zoomChanged","positionChanged"],[1,"toolbar-row"],[1,"imx-button","prio2","with-icon","route-edit-btn",3,"disabled","click"],[1,"icon","icon-map_tour"],[4,"ngIf"],[3,"type","showHeaderInformation","buttonLbl","allowedFileTypes","allowMultipleFiles","autoUpload","disabled","showFileSelectButton","uploadComplete"]],template:function(Vn,Wi){1&Vn&&(e.TgZ(0,"div",0),e.YNc(1,sn,8,9,"div",1),e.TgZ(2,"div",2)(3,"div",3),e._UZ(4,"imx-base-select",4),e.qZA()(),e.TgZ(5,"imx-mtk-map",5),e.NdJ("zoomChanged",function(Oi){return Wi.zoomChanged.emit(Oi)})("positionChanged",function(Oi){return Wi.positionChanged.emit(Oi)}),e.ALo(6,"async"),e.ALo(7,"async"),e.qZA()()),2&Vn&&(e.xp6(),e.Q6J("ngIf",Wi.routeEditorEnabled&&!Wi.coordinatesDisabled),e.xp6(3),e.Q6J("formControl",Wi.objectTypesControl)("options",Wi.objectTypes),e.xp6(),e.Q6J("mapDisabled",Wi.coordinatesDisabled||!e.lcZ(6,10,Wi.formHandler.hasSavePermission())||!e.lcZ(7,12,Wi.formHandler.hasEditPermission("geoInfo.coordinates")))("zoom",Wi.zoom)("longitude",Wi.longitude)("latitude",Wi.latitude)("geoObject",Wi.geoObject)("aroundMeItems",Wi.aroundMeItems)("hideMainMarker",Wi.hideMainMarker))},dependencies:[Y.O5,m.JJ,m.oH,tn.q,yi.o,We.B,Y.Ov,K.X$],styles:['@import"https://static.maptoolkit.net/mtk/v10.1.4/mtk.css";@import"https://static.maptoolkit.net/api/v10.1.4/editor-gui.css";[_nghost-%COMP%]{display:block;width:100%}.map-wrapper[_ngcontent-%COMP%]{position:relative}.map-wrapper[_ngcontent-%COMP%]   .toolbar-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;gap:10px;left:10px;max-width:calc(100% - 200px);position:absolute;top:10px;z-index:2}.map-wrapper[_ngcontent-%COMP%]   .toolbar-row[_ngcontent-%COMP%]   .route-edit-btn[_ngcontent-%COMP%]{height:40px;z-index:2}.map-wrapper[_ngcontent-%COMP%]   .map-add-button[_ngcontent-%COMP%]{border:2px solid rgba(0,0,0,.2);border-radius:4px;right:10px;max-width:200px;position:absolute;top:10px;z-index:2}.map-wrapper[_ngcontent-%COMP%]   .map-add-button[_ngcontent-%COMP%] > .map-add-button__inner[_ngcontent-%COMP%]{background-color:#eefafa;border-radius:3px;padding:8px}']})}return wn})();function Oo(wn,po){1&wn&&(e.TgZ(0,"mat-error",12),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&wn&&(e.xp6(),e.Oqu(e.lcZ(2,1,"imxplatform.common-entity.edit.panels.geo.advanced-regions.polygon-too-big")))}function no(wn,po){if(1&wn){const Kn=e.EpF();e.TgZ(0,"div",1)(1,"div",2)(2,"h3",3),e._uU(3,"imxplatform.common-entity.edit.panels.geo.advanced-regions.title"),e.qZA(),e._UZ(4,"imx-base-radio-button-group",7),e.TgZ(5,"button",8),e.NdJ("click",function(){e.CHM(Kn);const Wi=e.oxw();return e.KtG(Wi.switchToPointGeoCoding())}),e.ALo(6,"async"),e._uU(7),e.ALo(8,"translate"),e.qZA(),e.YNc(9,Oo,3,3,"mat-error",9),e.qZA(),e.TgZ(10,"div",10)(11,"imx-base-upload",11),e.NdJ("uploadComplete",function(Wi){e.CHM(Kn);const Ft=e.oxw();return e.KtG(Ft.processKmlComplete(Wi))}),e.ALo(12,"async"),e.ALo(13,"async"),e.qZA()()()}if(2&wn){const Kn=e.oxw();e.xp6(4),e.Q6J("formControl",Kn.geoObjectTypesFormControl)("radioButtons",Kn.geoObjectTypes)("disableControl",!0),e.xp6(),e.Q6J("disabled",!Kn.isSwitchToPointGeoCodingEnabled()||!e.lcZ(6,13,Kn.formHandler.hasSavePermission())||Kn.coordinatesDisabled),e.xp6(2),e.hij("",e.lcZ(8,15,"imxplatform.common-entity.edit.panels.geo.switch-to-point-geocoding")," "),e.xp6(2),e.Q6J("ngIf",Kn.isGeoAndHasNoPolygon()),e.xp6(2),e.Q6J("type","extractGeometry")("headerText","imxplatform.common-entity.edit.panels.geo.read-kml-gpx")("allowedFileTypes",".gpx,.kml")("allowMultipleFiles",!1)("autoUpload",!0)("disabled",!Kn.kmlUploadEnabled()||!e.lcZ(12,17,Kn.formHandler.hasEditPermission("geoInfo.coordinates"))||!e.lcZ(13,19,Kn.formHandler.hasSavePermission()))("showFileSelectButton",!0)}}function Li(wn,po){1&wn&&e._UZ(0,"i",25)}function ji(wn,po){1&wn&&e._UZ(0,"i",26)}function Ii(wn,po){if(1&wn){const Kn=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){e.CHM(Kn);const Wi=e.oxw(2);return e.KtG(Wi.downloadKML())}),e._uU(1),e.ALo(2,"translate"),e._UZ(3,"i",15),e.qZA()}if(2&wn){const Kn=e.oxw(2);e.Q6J("disabled",!Kn.coordsExist()),e.xp6(),e.hij("",e.lcZ(2,2,"imxplatform.common-entity.edit.panels.geo.geo-map.kml-download")," ")}}function _i(wn,po){1&wn&&e._UZ(0,"i",25)}function En(wn,po){1&wn&&e._UZ(0,"i",26)}function co(wn,po){if(1&wn){const Kn=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){e.CHM(Kn);const Wi=e.oxw(2);return e.KtG(Wi.saveKmlAsFileMedium())}),e._uU(1),e.ALo(2,"translate"),e._UZ(3,"i",21),e.qZA()}if(2&wn){const Kn=e.oxw(2);e.Q6J("disabled",!Kn.coordsExist()),e.xp6(),e.hij("",e.lcZ(2,2,"imxplatform.common-entity.edit.panels.geo.geo-map.saveKML-btn")," ")}}function yn(wn,po){if(1&wn){const Kn=e.EpF();e.TgZ(0,"div",13)(1,"div")(2,"button",14),e.NdJ("click",function(){e.CHM(Kn);const Wi=e.oxw();return e.KtG(Wi.downloadGPX())}),e._uU(3),e.ALo(4,"translate"),e._UZ(5,"i",15),e.qZA(),e.TgZ(6,"button",16),e.NdJ("click",function(){e.CHM(Kn);const Wi=e.oxw();return e.KtG(Wi.isDownloadMenuOpen=!Wi.isDownloadMenuOpen)}),e.YNc(7,Li,1,0,"i",17)(8,ji,1,0,"i",18),e.qZA()(),e.YNc(9,Ii,4,4,"button",19),e.TgZ(10,"div",20)(11,"button",14),e.NdJ("click",function(){e.CHM(Kn);const Wi=e.oxw();return e.KtG(Wi.saveGpxAsFileMedium())}),e._uU(12),e.ALo(13,"translate"),e._UZ(14,"i",21),e.qZA(),e.TgZ(15,"button",16),e.NdJ("click",function(){e.CHM(Kn);const Wi=e.oxw();return e.KtG(Wi.isSaveAsMediumMenuOpen=!Wi.isSaveAsMediumMenuOpen)}),e.YNc(16,_i,1,0,"i",17)(17,En,1,0,"i",18),e.qZA()(),e.YNc(18,co,4,4,"button",19),e.TgZ(19,"button",22),e.NdJ("click",function(){e.CHM(Kn);const Wi=e.oxw();return e.KtG(Wi.sendToPrintMaps())}),e.ALo(20,"translate"),e._uU(21),e.ALo(22,"translate"),e._UZ(23,"i",23),e.qZA(),e.TgZ(24,"div")(25,"span"),e._uU(26,"powered by"),e.qZA(),e._uU(27,"\xa0 "),e._UZ(28,"img",24),e.qZA()()}if(2&wn){const Kn=e.oxw();e.xp6(2),e.Q6J("disabled",!Kn.coordsExist()),e.xp6(),e.hij("",e.lcZ(4,15,"imxplatform.common-entity.edit.panels.geo.geo-map.gpx-download")," "),e.xp6(3),e.Q6J("disabled",!Kn.coordsExist()),e.xp6(),e.Q6J("ngIf",!Kn.isDownloadMenuOpen),e.xp6(),e.Q6J("ngIf",Kn.isDownloadMenuOpen),e.xp6(),e.Q6J("ngIf",Kn.isDownloadMenuOpen),e.xp6(2),e.Q6J("disabled",!Kn.coordsExist()),e.xp6(),e.hij("",e.lcZ(13,17,"imxplatform.common-entity.edit.panels.geo.geo-map.saveGPX-btn")," "),e.xp6(3),e.Q6J("disabled",!Kn.coordsExist()),e.xp6(),e.Q6J("ngIf",!Kn.isSaveAsMediumMenuOpen),e.xp6(),e.Q6J("ngIf",Kn.isSaveAsMediumMenuOpen),e.xp6(),e.Q6J("ngIf",Kn.isSaveAsMediumMenuOpen),e.xp6(),e.Q6J("disabled",!Kn.coordsExist())("matTooltip",e.lcZ(20,19,"imxplatform.common-entity.edit.panels.geo.geo-map.printmaps-hint")),e.xp6(2),e.hij("",e.lcZ(22,21,"imxplatform.common-entity.edit.panels.geo.geo-map.printmaps")," ")}}let ln=(()=>{class wn{constructor(Kn,Vn,Wi,Ft,Oi,On,_n,st){this.changeDetectorRef=Kn,this.formatterService=Vn,this.dialog=Wi,this.platformDataAccessService=Ft,this.readI18nPipe=Oi,this.userMessageService=On,this.dataObjectMediumAssignService=_n,this.dataObjectMediumInitializerService=st,this.advancedRegionManagementEnabled=!1,this.geospatialEnabled=!1,this.routeEditorEnabled=!1,this.coordinatesDisabled=!1,this.positionChanged=new e.vpe,this.isDownloadMenuOpen=!1,this.isSaveAsMediumMenuOpen=!1,this.geoObjectTypesFormControl=new m.p4,this.geoObjectTypes=[{value:"Point",label:"imxplatform.common-entity.edit.panels.geo.advanced-regions.object-type-point"},{value:"LineString",label:"imxplatform.common-entity.edit.panels.geo.advanced-regions.object-type-line-string"},{value:"Polygon",label:"imxplatform.common-entity.edit.panels.geo.advanced-regions.object-type-polygon"}]}ngOnChanges(Kn){Kn.record&&(this.geospatialEnabled||this.advancedRegionManagementEnabled)&&"Addressbase"===this.record._entityType&&void 0!==this.record.id&&this.platformDataAccessService.getGeoCoordinatesForEntity("addressbase",this.record.id).subscribe(Vn=>{const Wi=Vn.geoCoords;Wi&&(Wi.maxLongitude=this.formHandler.formGroup.get("geoInfo.coordinates.maxLongitude").value,Wi.maxLatitude=this.formHandler.formGroup.get("geoInfo.coordinates.maxLatitude").value,Wi.minLongitude=this.formHandler.formGroup.get("geoInfo.coordinates.minLongitude").value,Wi.minLatitude=this.formHandler.formGroup.get("geoInfo.coordinates.minLatitude").value,this.formHandler.formGroup.get("geoInfo.coordinates.geoCoords").setValue(Wi),this.updateGeoObject(Wi))})}ngOnInit(){this.tourModuleFormGroup=this.getTourModuleFormGroup()}processKmlAvailable(){return this.advancedRegionManagementEnabled&&"Addressbase"===this.record._entityType}kmlUploadEnabled(){return this.processKmlAvailable()&&null==this.formHandler.formGroup.get("geoRegion").value}processKmlComplete(Kn){if(Kn&&!(Kn instanceof u.UA)&&1===Kn.length){const Vn=Kn[0].processResult.Coordinates.geoCoords,Wi=Kn[0].processResult.Coordinates.geoCenter;if(this.geoObject=Vn,this.formHandler.formGroup.get("geoInfo.coordinates.longitude").setValue(Wi.coordinates[0].toString().replace(".",",")),this.formHandler.formGroup.get("geoInfo.coordinates.latitude").setValue(Wi.coordinates[1].toString().replace(".",",")),this.formHandler.formGroup.get("geoInfo.coordinates.geoCoords").setValue(Vn),this.formHandler.formGroup.get("geoInfo.coordinates.geoCoords").markAsDirty(),this.geoObject=Vn,this.updateGeoObjectType(),this.tourModuleFormGroup){const Ft=this.geoObject.coordinates.map(Oi=>Oi.join(",")).join(" ");this.tourModuleFormGroup.get("geometry").setValue(Ft),this.tourModuleFormGroup.get("length").setValue(0),this.tourModuleFormGroup.get("ascent").setValue(0),this.tourModuleFormGroup.get("descent").setValue(0),this.tourModuleFormGroup.get("duration").setValue((0,B.IB)(0)),this.tourModuleFormGroup.get("maxAltitude").setValue(0),this.tourModuleFormGroup.get("minAltitude").setValue(0),this.tourModuleFormGroup.get("routeType").setValue(void 0)}this.mapZoom=10,this.changeDetectorRef.markForCheck()}}updateGeoObjectType(){if(this.geoObject)switch(this.geoObject.type){case"LineString":case"MultiLineString":this.geoObjectTypesFormControl.patchValue("LineString");break;case"Polygon":case"MultiPolygon":this.geoObjectTypesFormControl.patchValue("Polygon");break;default:this.geoObjectTypesFormControl.patchValue("Point")}}isSwitchToPointGeoCodingEnabled(){return this.kmlUploadEnabled()&&"Point"!==this.geoObjectTypesFormControl.value}switchToPointGeoCoding(){this.geoObjectTypesFormControl.patchValue("Point"),this.geoObjectTypesFormControl.markAsDirty(),this.geoObject=null,this.formHandler.formGroup.get("geoInfo.coordinates.geoCoords").setValue(null),this.formHandler.formGroup.get("geoInfo.coordinates.geoCoords").markAsDirty(),this.changeDetectorRef.markForCheck()}openRouteEditor(){this.determineRouteType(this.tourModuleFormGroup).subscribe(Kn=>{Kn&&this.dialog.open(ue,{width:"100%",height:"100%",data:{zoom:this.mapZoom,longitude:this.longValueForMap,latitude:this.latValueForMap,geoObject:this.geoObject,routeType:Kn.routeType,recalculateOnInit:Kn.recalculate}}).afterClosed().pipe((0,I.w)(Vn=>{if(Vn){const Wi=Vn.routeResult.resultGeoJson;if(this.formHandler.formGroup.get("geoInfo.coordinates.geoCoords").setValue({coordinates:Wi.geometry.coordinates[0],type:"LineString"}),this.formHandler.formGroup.get("geoInfo.coordinates.geoCoords").markAsDirty(),this.geoObject={type:"LineString",coordinates:Wi.geometry.coordinates[0],maxLongitude:0,minLongitude:0,maxLatitude:0,minLatitude:0},this.tourModuleFormGroup&&Vn.routeResult.fullCoordinates){const Ft=Vn.routeResult.fullCoordinates.map(Oi=>Oi.join(",")).join(" ");this.tourModuleFormGroup.get("geometry").setValue(Ft),this.tourModuleFormGroup.get("length").setValue(this.formatterService.formatNumber(Vn.routeResult.distance,"#.##")),this.tourModuleFormGroup.get("ascent").setValue(Vn.routeResult.ascent),this.tourModuleFormGroup.get("descent").setValue(Vn.routeResult.descent),this.tourModuleFormGroup.get("duration").setValue((0,B.IB)(Vn.routeResult.duration)),this.tourModuleFormGroup.get("maxAltitude").setValue(Vn.routeResult.maxAltitude),this.tourModuleFormGroup.get("minAltitude").setValue(Vn.routeResult.minAltitude),this.tourModuleFormGroup.get("routeType").setValue(Vn.routeResult.routeType)}return Vn.routeResult.fullCoordinates&&Vn.routeResult.fullCoordinates.length>0?this.dialog.open(ge,{...J.D.FORM_MEDIUM,data:{downloadGpxFn:this.downloadGPX.bind(this),downloadKmlFn:this.downloadKML.bind(this)}}).afterClosed():(0,s.of)(void 0)}return(0,s.of)(void 0)})).subscribe(Vn=>{this.changeDetectorRef.markForCheck(),Vn&&this.scrollToTourModule()})})}determineRouteType(Kn){return Kn&&Kn.get("routeType").value?(0,s.of)({routeType:Kn.get("routeType").value,recalculate:!0}):this.coordsExist()?this.dialog.open(at,{...J.D.FORM_MEDIUM}).afterClosed().pipe((0,l.U)(Vn=>{if(Vn)return{routeType:Vn,recalculate:!0}})):(0,s.of)({routeType:b.V8.FOOT,recalculate:!1})}scrollToTourModule(){const Kn=document.querySelector("[data-scroll-id=module-modules_tour-detail]");n.Yz.openNextAncestorAccordion(Kn),setTimeout(()=>{window.scrollTo({top:Kn.getBoundingClientRect().bottom+window.pageYOffset-163,behavior:"smooth"})},300)}scrollToMediaFormPanel(){const Kn=document.querySelector("[data-scroll-id=media]");this.scrollToTarget(Kn)}scrollToTarget(Kn){setTimeout(()=>window.scrollTo({top:Kn.getBoundingClientRect().top+window.pageYOffset-163,behavior:"smooth"}),100)}coordsExist(){return this.geoObject&&this.geoObject.coordinates&&this.geoObject.coordinates.length>0}downloadGPX(){const Kn=this.readI18nPipe.transform(this.formHandler.formGroup.get("title").value),Vn=this.createGPX();this.startDownload(Vn,Kn,"gpx","application/gpx+xml")}downloadKML(){const Kn=this.readI18nPipe.transform(this.formHandler.formGroup.get("title").value),Vn=this.createKML();this.startDownload(Vn,Kn,"kml","application/vnd.google-earth.kml+xml")}saveGpxAsFileMedium(){this.saveCoordinatesAsFileMedium("GPX")}saveKmlAsFileMedium(){this.saveCoordinatesAsFileMedium("KML")}saveCoordinatesAsFileMedium(Kn){this.formHandler.hasEditPermission("media").pipe((0,H.q)(1)).subscribe(Vn=>{Vn?this.formHandler.formGroup.get("geoInfo.coordinates").dirty?this.dialog.open(q.f,{maxWidth:450,data:{text:"imxplatform.common-entity.edit.panels.geo.geo-map.saveGPXHint"}}).afterClosed().pipe((0,l.U)(Wi=>{})):this.uploadCoordinatesFileAndAssign(Kn):this.userMessageService.showInfo("imxplatform.common-entity.edit.panels.geo.geo-map.saveGPXHint-denied")})}uploadCoordinatesFileAndAssign(Kn){const Vn=Kn.toLowerCase()+"_"+this.record._entityType.toLowerCase()+"_"+this.record.id+"."+Kn.toLowerCase();this.platformDataAccessService.uploadGPXAsPooledMedium(this.createGPX(),this.record._entityType,this.record.id,Vn).pipe((0,O.K)(Wi=>(0,s.of)({exception:Wi.error}))).subscribe(Wi=>{Wi&&Wi.id&&(this.isGpxOrKmlFileAlreadyAssigned(Wi)?this.userMessageService.showInfo("imxplatform.common-entity.edit.panels.geo.geo-map.geoFileUpdated",{type:Kn},5e3):(this.dataObjectMediumAssignService.assignNewMediaToCurrentEntity([Wi.id],this.formHandler,this.formHandler.formGroup.get("media"),this.formHandler.formConfiguration.findArrayFieldById("media"),this.dataObjectMediumInitializerService,[]),this.formHandler.formGroup.get("mediaChangedFromOutside").setValue(!0),this.userMessageService.showInfo("imxplatform.common-entity.edit.panels.geo.geo-map.geoFileNewlyCreated",{type:Kn},5e3),this.scrollToMediaFormPanel()))})}isGpxOrKmlFileAlreadyAssigned(Kn){return this.formHandler.formGroup.get("media").controls.some(Vn=>Vn.get("pooledMediumId").value===Kn.id)}sendToPrintMaps(){this.platformDataAccessService.uploadGPXForPrintmaps(this.createGPX()).pipe((0,O.K)(Kn=>(0,s.of)({exception:Kn.error}))).subscribe(Kn=>{Kn.exception?this.userMessageService.showError(Kn.exception.localizedMessage&&Kn.exception.localizedMessage.length>0?Kn.exception.localizedMessage[0]:"Fehler beim Anlegen der Printmaps-Karte."):window.open(b.CC+Kn.processResult.fileUrl,"_blank").focus()})}isGeoAndHasNoPolygon(){let Kn=!1;if(this.record&&"Addressbase"===this.record._entityType&&this.geoObject?.type&&"GeometryCollection"===this.geoObject.type.toString())for(const Vn of this.record.metainfos)if(Kn=200000015===Vn?.productline?.id||200000016===Vn?.productline?.id,Kn)break;return Kn}updateGeoObject(Kn){this.geoObject=Kn,this.updateGeoObjectType(),this.changeDetectorRef.markForCheck()}getTourModuleFormGroup(){if("Addressbase"===this.record._entityType){const Kn=this.formHandler.formGroup.get("metainfos").controls.find(Vn=>100012e3===Vn.get("moduleId").value);if(Kn)return Kn.get("modules_tour")}}createGPX(){let Kn=this.readI18nPipe.transform(this.formHandler.formGroup.get("title").value),Vn=this.readI18nPipe.transform(this.formHandler.formGroup.get("shortDescription").value);return Kn=Kn||"Addressbase_"+this.record.id,Vn=Vn||"Addressbase_"+this.record.id,'<?xml version="1.0" encoding="UTF-8"?> <gpx xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd" version="1.1" creator="infomax websolutions GmbH"> <metadata>  <name><![CDATA['+Kn+"]]></name> </metadata> <trk> <name><![CDATA["+Kn+"]]></name> <desc><![CDATA["+Vn+"]]></desc> <trkseg>"+this.extractTrackPoints()+" </trkseg> </trk> </gpx>"}createKML(){const Kn=this.readI18nPipe.transform(this.formHandler.formGroup.get("title").value);return R(this.geoObject,{documentName:Kn,documentDescription:"KML data for "+Kn})}extractTrackPoints(){let Kn="";return this.geoObject.coordinates.forEach(Vn=>{Kn+=`  <trkpt lat="${Vn[1]}" lon="${Vn[0]}"></trkpt>`}),Kn}startDownload(Kn,Vn,Wi,Ft){const Oi=window.URL.createObjectURL(new Blob([Kn],{type:Ft})),On=document.createElement("a");document.body.appendChild(On),On.setAttribute("style","display: none"),On.href=Oi,On.download=Vn+"."+Wi,On.click(),window.URL.revokeObjectURL(Oi),On.remove()}static#e=this.\u0275fac=function(Vn){return new(Vn||wn)(e.Y36(e.sBO),e.Y36(n.H1),e.Y36(j.uw),e.Y36(c.nq),e.Y36(Te.j),e.Y36(ae.Y),e.Y36(P.oO),e.Y36(Le.g))};static#t=this.\u0275cmp=e.Xpm({type:wn,selectors:[["imx-geo-map"]],hostAttrs:[1,"imx-geo-map"],inputs:{advancedRegionManagementEnabled:"advancedRegionManagementEnabled",geospatialEnabled:"geospatialEnabled",routeEditorEnabled:"routeEditorEnabled",formHandler:"formHandler",record:"record",coordinatesDisabled:"coordinatesDisabled",mapZoom:"mapZoom",longValueForMap:"longValueForMap",latValueForMap:"latValueForMap"},outputs:{positionChanged:"positionChanged"},features:[e.TTD],decls:8,vars:12,consts:[["class","form__content-row",4,"ngIf"],[1,"form__content-row"],[1,"form__content-group"],["translate",""],[1,"wrapper"],[3,"formHandler","zoom","longitude","latitude","record","geoObject","coordinatesDisabled","routeEditorEnabled","hideUploadBtn","hideMainMarker","editRoute","uploadComplete","positionChanged"],["class","button-bar",4,"ngIf"],["mode","inline",3,"formControl","radioButtons","disableControl"],[1,"imx-button","prio2","bottom",3,"disabled","click"],["class","mat-mdc-error","id","polygon-too-big",4,"ngIf"],[1,"form__content-group","kmlToolbar"],[3,"type","headerText","allowedFileTypes","allowMultipleFiles","autoUpload","disabled","showFileSelectButton","uploadComplete"],["id","polygon-too-big",1,"mat-mdc-error"],[1,"button-bar"],[1,"imx-button","prio2","with-icon",3,"disabled","click"],[1,"icon","icon-file-download"],[1,"imx-button","prio2","dropdown",3,"disabled","click"],["class","icon icon-chevron-downBold",4,"ngIf"],["class","icon icon-chevron-upBold",4,"ngIf"],["class","imx-button prio2 with-icon kml",3,"disabled","click",4,"ngIf"],[1,"medium-wrapper"],[1,"icon","icon-link"],[1,"imx-button","prio2","with-icon","printmaps",3,"disabled","matTooltip","click"],[1,"icon","icon-map_share"],["src","https://www.printmaps.net/wp-content/uploads/2019/08/printmaps-logo-new.svg","height","18px","alt","printmaps.net"],[1,"icon","icon-chevron-downBold"],[1,"icon","icon-chevron-upBold"],[1,"imx-button","prio2","with-icon","kml",3,"disabled","click"]],template:function(Vn,Wi){1&Vn&&(e.YNc(0,no,14,21,"div",0),e.TgZ(1,"div",1)(2,"div",2)(3,"h3",3),e._uU(4,"imxplatform.common-entity.edit.panels.geo.individual-location"),e.qZA(),e.TgZ(5,"div",4)(6,"imx-featured-mtk-map",5),e.NdJ("editRoute",function(){return Wi.openRouteEditor()})("uploadComplete",function(Oi){return Wi.processKmlComplete(Oi)})("positionChanged",function(Oi){return Wi.positionChanged.emit(Oi)}),e.qZA(),e.YNc(7,yn,29,23,"div",6),e.qZA()()()),2&Vn&&(e.Q6J("ngIf",Wi.processKmlAvailable()),e.xp6(6),e.Q6J("formHandler",Wi.formHandler)("zoom",Wi.mapZoom)("longitude",Wi.longValueForMap)("latitude",Wi.latValueForMap)("record",Wi.record)("geoObject",Wi.geoObject)("coordinatesDisabled",Wi.coordinatesDisabled)("routeEditorEnabled",Wi.routeEditorEnabled)("hideUploadBtn",Wi.advancedRegionManagementEnabled)("hideMainMarker",!1),e.xp6(),e.Q6J("ngIf",Wi.routeEditorEnabled))},dependencies:[Y.O5,m.JJ,me.TO,Se.gM,m.oH,K.Pi,Ue.q,We.B,ii,Y.Ov,K.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start}.wrapper[_ngcontent-%COMP%]   .button-bar[_ngcontent-%COMP%]{margin-left:20px;display:flex;flex-direction:column;align-items:flex-start}.wrapper[_ngcontent-%COMP%]   .button-bar[_ngcontent-%COMP%]   .medium-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start;margin-top:10px}.wrapper[_ngcontent-%COMP%]   .button-bar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:40px;white-space:nowrap}.wrapper[_ngcontent-%COMP%]   .button-bar[_ngcontent-%COMP%]   button.printmaps[_ngcontent-%COMP%]{margin:20px 0 10px}.wrapper[_ngcontent-%COMP%]   .button-bar[_ngcontent-%COMP%]   button.dropdown[_ngcontent-%COMP%]{border-left:1px solid rgba(230,233,239,.5)}.wrapper[_ngcontent-%COMP%]   .button-bar[_ngcontent-%COMP%]   button.kml[_ngcontent-%COMP%]{margin:2px 0 15px}.wrapper[_ngcontent-%COMP%]   .button-bar[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{vertical-align:super}.warning[_ngcontent-%COMP%]{margin-bottom:10px}#polygon-too-big[_ngcontent-%COMP%]{margin-top:10px}[_nghost-%COMP%]     .kmlToolbar .file-choose-row{margin-bottom:0!important}"]})}return wn})();var He=a(4938),rt=a(61880),$e=a(42475),Ve=a(28907),Ce=a(17301);function tt(wn,po){if(1&wn&&e._UZ(0,"imx-autocomplete",16),2&wn){const Kn=e.oxw(2);e.Q6J("field",Kn.formHandler.formConfiguration.findFormFieldById("geoInfo.country"))("formHandler",Kn.formHandler)("control",Kn.formHandler.formGroup.get("geoInfo.country"))("autocompleteService",Kn.countryAutocompleteService)("displayItemFn",Kn.displayCountry)}}function ht(wn,po){if(1&wn&&e._UZ(0,"imx-form-control",9),2&wn){const Kn=e.oxw(2);e.Q6J("field",Kn.formHandler.formConfiguration.findFormFieldById("geoInfo.country"))("control",Kn.formHandler.formGroup.get("geoInfo.country"))("form",Kn.formHandler.formGroup.get("geoInfo"))("formHandler",Kn.formHandler)("config",Kn.formHandler.formConfiguration)}}function Qt(wn,po){1&wn&&(e.TgZ(0,"div",20)(1,"p"),e._uU(2,"Es konnten keine Koordinaten ermittelt werden. Bitte pr\xfcfen Sie die Adresse"),e.qZA()())}function Un(wn,po){if(1&wn&&(e.TgZ(0,"div"),e._UZ(1,"br")(2,"br")(3,"imx-base-read-only",19),e.qZA()),2&wn){const Kn=e.oxw(3);e.xp6(3),e.Q6J("label","entity.GeoInfo.what3words")("customModel",Kn.formHandler.formGroup.get("geoInfo.what3words").value)}}function Yt(wn,po){if(1&wn){const Kn=e.EpF();e.TgZ(0,"div",6)(1,"h3",7),e._uU(2,"imxplatform.common-entity.edit.panels.geo.coordinates"),e.qZA(),e._UZ(3,"imx-form-control",9)(4,"imx-form-control",9),e.YNc(5,Qt,3,0,"div",17),e.TgZ(6,"button",18),e.NdJ("click",function(){e.CHM(Kn);const Wi=e.oxw(2);return e.KtG(Wi.determineCoordinates())}),e.ALo(7,"async"),e.ALo(8,"async"),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.YNc(11,Un,4,2,"div",4),e.TgZ(12,"div"),e._UZ(13,"br")(14,"imx-base-read-only",19),e.qZA()()}if(2&wn){const Kn=e.oxw(2);e.xp6(3),e.Q6J("field",Kn.formHandler.formConfiguration.findFormFieldById("geoInfo.coordinates.longitude"))("control",Kn.formHandler.formGroup.get("geoInfo.coordinates.longitude"))("form",Kn.formHandler.formGroup.get("geoInfo.coordinates"))("formHandler",Kn.formHandler)("config",Kn.formHandler.formConfiguration),e.xp6(),e.Q6J("field",Kn.formHandler.formConfiguration.findFormFieldById("geoInfo.coordinates.latitude"))("control",Kn.formHandler.formGroup.get("geoInfo.coordinates.latitude"))("form",Kn.formHandler.formGroup.get("geoInfo.coordinates"))("formHandler",Kn.formHandler)("config",Kn.formHandler.formConfiguration),e.xp6(),e.Q6J("ngIf",Kn.isNoCoordinatesFound),e.xp6(),e.Q6J("disabled",!e.lcZ(7,16,Kn.formHandler.hasEditPermission("geoInfo"))||!e.lcZ(8,18,Kn.formHandler.hasSavePermission())||Kn.geoCodingDisabled()),e.xp6(3),e.hij("",e.lcZ(10,20,"imxplatform.common-entity.edit.panels.geo.determine-from-address")," "),e.xp6(2),e.Q6J("ngIf",Kn.formHandler.formGroup.get("geoInfo.what3words").value),e.xp6(3),e.Q6J("label","entity.GeoInfo.timezone")("customModel",Kn.formHandler.formGroup.get("geoInfo.timezone").value)}}function Fn(wn,po){if(1&wn){const Kn=e.EpF();e.TgZ(0,"div",5)(1,"div",6)(2,"h3",7),e._uU(3,"imxplatform.common-entity.edit.panels.geo.address-data"),e.qZA(),e.TgZ(4,"div",8),e._UZ(5,"imx-form-control",9)(6,"imx-form-control",10),e.qZA(),e.TgZ(7,"div",8)(8,"imx-autocomplete",11),e.NdJ("autocompleteSelected",function(Wi){e.CHM(Kn);const Ft=e.oxw();return e.KtG(Ft.handleGeoInfoZipcodeSelection(Wi))}),e.qZA(),e.TgZ(9,"imx-autocomplete",12),e.NdJ("autocompleteSelected",function(Wi){e.CHM(Kn);const Ft=e.oxw();return e.KtG(Ft.handleGeoInfoCitySelection(Wi))}),e.qZA()(),e.YNc(10,tt,1,5,"imx-autocomplete",13),e.ALo(11,"async"),e.YNc(12,ht,1,5,"ng-template",null,14,e.W1O),e.Hsn(14),e.qZA(),e.YNc(15,Yt,15,22,"div",15),e.ALo(16,"async"),e.qZA()}if(2&wn){const Kn=e.MAs(13),Vn=e.oxw();e.xp6(5),e.Q6J("field",Vn.formHandler.formConfiguration.findFormFieldById("geoInfo.street"))("control",Vn.formHandler.formGroup.get("geoInfo.street"))("form",Vn.formHandler.formGroup.get("geoInfo"))("formHandler",Vn.formHandler)("config",Vn.formHandler.formConfiguration),e.xp6(),e.Q6J("field",Vn.formHandler.formConfiguration.findFormFieldById("geoInfo.streetNo"))("control",Vn.formHandler.formGroup.get("geoInfo.streetNo"))("form",Vn.formHandler.formGroup.get("geoInfo"))("formHandler",Vn.formHandler)("config",Vn.formHandler.formConfiguration),e.xp6(2),e.Q6J("field",Vn.formHandler.formConfiguration.findFormFieldById("geoInfo.zipcode"))("formHandler",Vn.formHandler)("control",Vn.formHandler.formGroup.get("geoInfo.zipcode"))("autocompleteService",Vn.locationAutocompleteService)("useAnyNameHolder",!0),e.xp6(),e.Q6J("field",Vn.formHandler.formConfiguration.findFormFieldById("geoInfo.city"))("formHandler",Vn.formHandler)("control",Vn.formHandler.formGroup.get("geoInfo.city"))("autocompleteService",Vn.locationAutocompleteService)("useAnyNameHolder",!0),e.xp6(),e.Q6J("ngIf",e.lcZ(11,23,Vn.countriesConfigured$))("ngIfElse",Kn),e.xp6(5),e.Q6J("ngIf",e.lcZ(16,25,Vn.formHandler.hasReadPermission("geoInfo.coordinates")))}}function yt(wn,po){if(1&wn){const Kn=e.EpF();e.TgZ(0,"imx-add-geo-region",21),e.NdJ("resetPoint",function(){e.CHM(Kn);const Wi=e.oxw();return e.KtG(Wi.resetPoint())})("disableCoordinates",function(Wi){e.CHM(Kn);const Ft=e.oxw();return e.KtG(Ft.disableCoordinates(Wi))})("geoTypeChanged",function(Wi){e.CHM(Kn);const Ft=e.oxw();return e.KtG(Ft.geoTypeChanged(Wi))}),e.qZA()}if(2&wn){const Kn=e.oxw();e.Q6J("formHandler",Kn.formHandler)("record",Kn.record)}}function Bt(wn,po){if(1&wn&&(e.ynx(0),e._UZ(1,"imx-form-control",9),e.BQk()),2&wn){const Kn=e.oxw(4);e.xp6(),e.Q6J("field",Kn.formHandler.formConfiguration.findFormFieldById("geoInfo.alpsteinInfo.categories"))("control",Kn.formHandler.formGroup.get("geoInfo.alpsteinInfo.categories"))("form",Kn.formHandler.formGroup)("formHandler",Kn.formHandler)("config",Kn.formHandler.formConfiguration)}}function li(wn,po){if(1&wn&&(e.TgZ(0,"div",6)(1,"h3",7),e._uU(2,"imxplatform.common-entity.edit.panels.geo.geo-system"),e.qZA(),e._UZ(3,"imx-form-control",9),e.YNc(4,Bt,2,5,"ng-container",4),e.ALo(5,"async"),e.qZA()),2&wn){const Kn=e.oxw(3);e.xp6(3),e.Q6J("field",Kn.formHandler.formConfiguration.findFormFieldById("geoInfo.geoSystems"))("control",Kn.formHandler.formGroup.get("geoInfo.geoSystems"))("form",Kn.formHandler.formGroup)("formHandler",Kn.formHandler)("config",Kn.formHandler.formConfiguration),e.xp6(),e.Q6J("ngIf",Kn.hasAlpsteinGeoSystem&&e.lcZ(5,6,Kn.alpsteinCategoriesAvailable))}}function si(wn,po){if(1&wn&&(e.TgZ(0,"div",5),e.YNc(1,li,6,8,"div",15),e.qZA()),2&wn){const Kn=e.oxw(2);e.xp6(),e.Q6J("ngIf",Kn.formHandler.formConfiguration.findFormFieldById("geoInfo.geoSystems"))}}function oo(wn,po){if(1&wn&&(e.ynx(0),e.YNc(1,si,2,1,"div",22),e.BQk()),2&wn){const Kn=e.oxw();e.xp6(),e.Q6J("hasFieldReadPermission","geoInfo.geoSystems")("hasFieldReadPermissionFormHandler",Kn.formHandler)}}const _o=["*"],mo=12.463067,vn=47.782283;let Ji=(()=>{class wn{constructor(Kn,Vn,Wi,Ft,Oi,On,_n,st,Dn){this.entitiesMgr=Kn,this.dialog=Vn,this.configurationProvider=Wi,this.locationAutocompleteService=Ft,this.formatterService=Oi,this.countryAutocompleteService=On,this.changeDetectorRef=_n,this.platformDataAccessService=st,this.geoSystemsProviderService=Dn,this.logger=(0,n.jl)("EditGeoInfoComponent",i.H.name),this.mapDisabled=!1,this.locationSelection=new e.vpe,this.countriesConfigured$=(0,s.of)(!1),this.geoInfoSystemsAvailable$=(0,s.of)(!1),this.isNoCoordinatesFound=!1,this.hasAlpsteinGeoSystem=!1,this.alpsteinCategoriesAvailable=(0,s.of)(!1),this.allAlpsteinCategories=[],this.hasCoordsPermission=!1,this.advancedRegionManagementEnabled=!1,this.geospatialEnabled=!1,this.routeEditorEnabled=!1,this.defaultPositionLat=vn,this.defaultPositionLong=mo,this.advancedRegionManagementEnabled=this.configurationProvider.getBooleanFromSnapshot(n.x3.PLATFORM_ADVANCED_REGION_MANAGEMENT_ENABLED),this.geospatialEnabled=this.configurationProvider.getBooleanFromSnapshot(n.x3.IMXPLATFORM_GEOSPATIAL_ENABLED);const Wt=this.configurationProvider.getNumberFromSnapshot(n.x3.PLATFORM_DEFAULT_POSITION_LAT),kn=this.configurationProvider.getNumberFromSnapshot(n.x3.PLATFORM_DEFAULT_POSITION_LONG);this.defaultPositionLat=void 0!==Wt?Wt:vn,this.defaultPositionLong=void 0!==kn?kn:mo,this.mapZoom=this.configurationProvider.getNumberFromSnapshot(n.x3.IMXPLATFORM_MTK_MAP_DEFAULT_ZOOM)}ngOnInit(){this.routeEditorEnabled=this.hasTourModule()&&this.configurationProvider.getBooleanFromSnapshot(n.x3.IMXPLATFORM_ROUTE_EDITOR_ENABLED),this.geoInfoSystemsAvailable$=this.geoSystemsProviderService.getOptions(void 0,void 0).pipe((0,l.U)(Kn=>Kn&&Kn.length>0)),this.longFormField=this.formHandler.formGroup.get("geoInfo.coordinates.longitude"),this.latFormField=this.formHandler.formGroup.get("geoInfo.coordinates.latitude"),this.setCoordinatesAndRegisterListenerOnFields(),this.countriesConfigured$=this.configurationProvider.getString(n.x3.PLATFORM_COUNTRIES,"").pipe((0,l.U)(Kn=>Kn&&Kn.trim().length>0)),this.loadAlpsteinCategories(),this.alpsteinCategoriesAvailable=this.entitiesMgr.isBaseEntityAvailable("AlpsteinCategory"),this.formHandler.formGroup.get("geoInfo.geoSystems").valueChanges.subscribe(Kn=>{this.hasAlpsteinGeoSystem=Kn&&Kn.some(Vn=>"alpstein"===Vn)})}ngAfterViewInit(){this.formHandler.hasEditPermission("geoInfo.coordinates").subscribe(Kn=>this.hasCoordsPermission=Kn)}ngOnChanges(Kn){const Vn=this.formHandler.formGroup.get("geoInfo.geoSystems").value;Vn&&(this.hasAlpsteinGeoSystem=Vn.some(Wi=>"alpstein"===Wi))}geoCodingDisabled(){return this.mapDisabled||!this.hasCoordsPermission}displayCountry(Kn){return Kn?Kn.representation:""}displayFnForAlpsteinCategory(Kn){return Kn?Kn.i18nName:void 0}determineCoordinates(){this.isNoCoordinatesFound=!1;const Kn=this.formHandler.formGroup.get("geoInfo.street").value,Vn=this.formHandler.formGroup.get("geoInfo.streetNo").value,Wi=this.formHandler.formGroup.get("geoInfo.zipcode").value,Ft=this.formHandler.formGroup.get("geoInfo.city").value,Oi=this.formHandler.formGroup.get("geoInfo.country").value;this.platformDataAccessService.getGeoCode(Kn,Vn,Wi,Ft,Oi).subscribe(On=>this.adjustCoordinateFields(On),On=>{this.logger.error("Could not determine coordinates: "+JSON.stringify(On)),this.isNoCoordinatesFound=!0,this.changeDetectorRef.markForCheck()})}handleGeoInfoZipcodeSelection(Kn){this.entitiesMgr.getEntityWithIdOfType("Location",Kn.entityId).subscribe(Vn=>{this.formHandler.handleZipcodeSelection(Vn,Kn.inputString,"geoInfo.zipcode","geoInfo.city"),this.locationSelection.emit(Vn)})}handleGeoInfoCitySelection(Kn){this.entitiesMgr.getEntityWithIdOfType("Location",Kn.entityId).subscribe(Vn=>{this.formHandler.handleCitySelection(Vn,"geoInfo.zipcode"),this.locationSelection.emit(Vn)})}handlePositionChanged(Kn){this.setCoordinateValue(this.latFormField,Kn[0],!0),this.setCoordinateValue(this.longFormField,Kn[1],!0)}adjustCoordinateFields(Kn){"SUCCESS"===Kn.status?(this.longFormField&&this.latFormField&&(this.setCoordinateValue(this.longFormField,Kn.longitude,!0),this.setCoordinateValue(this.latFormField,Kn.latitude,!0)),this.isNoCoordinatesFound=!1):this.isNoCoordinatesFound=!0,this.changeDetectorRef.markForCheck()}setCoordinatesAndRegisterListenerOnFields(){this.latFormField&&this.longFormField&&(this.latValueForMap=this.formatterService.parseNumber(this.latFormField.value),this.longValueForMap=this.formatterService.parseNumber(this.longFormField.value),0===this.latValueForMap&&0===this.longValueForMap&&(this.latValueForMap=this.defaultPositionLat,this.longValueForMap=this.defaultPositionLong,this.record.id||(this.setCoordinateValue(this.latFormField,this.latValueForMap,!1),this.setCoordinateValue(this.longFormField,this.longValueForMap,!1))),this.latFormField.valueChanges.subscribe(Kn=>{this.latValueForMap=this.formatterService.parseNumber(Kn)}),this.longFormField.valueChanges.subscribe(Kn=>{this.longValueForMap=this.formatterService.parseNumber(Kn)}))}setCoordinateValue(Kn,Vn,Wi){const Ft=Math.round(1e5*Vn)/1e5;Kn.setValue(this.formatterService.formatNumber(Ft,"#.#####")),Wi&&Kn.markAsDirty(),this.changeDetectorRef.markForCheck()}loadAlpsteinCategories(){this.entitiesMgr.getAllEntitiesOfType("AlpsteinCategory").subscribe(Kn=>{this.allAlpsteinCategories=Kn.items})}disableCoordinates(Kn){Kn||this.geoCodingDisabled()?(this.longFormField.disable(),this.latFormField.disable()):(this.longFormField.enable(),this.latFormField.enable()),this.geoMapComponent.switchToPointGeoCoding()}geoTypeChanged(Kn){this.geoMapComponent.geoObjectTypesFormControl.patchValue(Kn)}resetPoint(){this.setCoordinateValue(this.formHandler.formGroup.get("geoInfo.coordinates.longitude"),this.defaultPositionLong,!1),this.setCoordinateValue(this.formHandler.formGroup.get("geoInfo.coordinates.latitude"),this.defaultPositionLat,!1),this.formHandler.formGroup.get("geoInfo.coordinates.maxLatitude").setValue(0),this.formHandler.formGroup.get("geoInfo.coordinates.minLatitude").setValue(0),this.formHandler.formGroup.get("geoInfo.coordinates.minLongitude").setValue(0),this.formHandler.formGroup.get("geoInfo.coordinates.maxLongitude").setValue(0)}hasTourModule(){return"Addressbase"===this.record._entityType&&void 0!==this.formHandler.formGroup.get("metainfos").controls.find(Vn=>100012e3===Vn.get("moduleId").value)}static#e=this.\u0275fac=function(Vn){return new(Vn||wn)(e.Y36(n.qB),e.Y36(j.uw),e.Y36(n.Pc),e.Y36(p.l),e.Y36(n.H1),e.Y36(t.V),e.Y36(e.sBO),e.Y36(c.nq),e.Y36(x.s))};static#t=this.\u0275cmp=e.Xpm({type:wn,selectors:[["imx-edit-geo-info"]],viewQuery:function(Vn,Wi){if(1&Vn&&e.Gf(ln,7),2&Vn){let Ft;e.iGM(Ft=e.CRH())&&(Wi.geoMapComponent=Ft.first)}},inputs:{formHandler:"formHandler",record:"record",mapDisabled:"mapDisabled"},outputs:{locationSelection:"locationSelection"},features:[e.TTD],ngContentSelectors:_o,decls:7,vars:16,consts:[["class","form__content-row",4,"ngIf"],[3,"formHandler","record","resetPoint","disableCoordinates","geoTypeChanged",4,"ngIf"],[3,"advancedRegionManagementEnabled","geospatialEnabled","routeEditorEnabled","formHandler","record","coordinatesDisabled","mapZoom","longValueForMap","latValueForMap","positionChanged"],["geoMapComponent",""],[4,"ngIf"],[1,"form__content-row"],[1,"form__content-group"],["translate",""],[1,"form__content-field-row"],[3,"field","control","form","formHandler","config"],[1,"small-field",3,"field","control","form","formHandler","config"],["panelWidth","375px",1,"small-field",3,"field","formHandler","control","autocompleteService","useAnyNameHolder","autocompleteSelected"],[3,"field","formHandler","control","autocompleteService","useAnyNameHolder","autocompleteSelected"],["class","imx-form-control",3,"field","formHandler","control","autocompleteService","displayItemFn",4,"ngIf","ngIfElse"],["countriesSelect",""],["class","form__content-group",4,"ngIf"],[1,"imx-form-control",3,"field","formHandler","control","autocompleteService","displayItemFn"],["class","warning txt-error",4,"ngIf"],[1,"imx-button","prio2","bottom",3,"disabled","click"],[3,"label","customModel"],[1,"warning","txt-error"],[3,"formHandler","record","resetPoint","disableCoordinates","geoTypeChanged"],["class","form__content-row",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"]],template:function(Vn,Wi){1&Vn&&(e.F$t(),e.YNc(0,Fn,17,27,"div",0),e.ALo(1,"async"),e.YNc(2,yt,1,2,"imx-add-geo-region",1),e.TgZ(3,"imx-geo-map",2,3),e.NdJ("positionChanged",function(Oi){return Wi.handlePositionChanged(Oi)}),e.qZA(),e.YNc(5,oo,2,2,"ng-container",4),e.ALo(6,"async")),2&Vn&&(e.Q6J("ngIf",e.lcZ(1,12,Wi.formHandler.hasReadPermission("geoInfo"))),e.xp6(2),e.Q6J("ngIf",Wi.advancedRegionManagementEnabled&&("Addressbase"===Wi.record._entityType||"Offer"===Wi.record._entityType)),e.xp6(),e.Q6J("advancedRegionManagementEnabled",Wi.advancedRegionManagementEnabled)("geospatialEnabled",Wi.geospatialEnabled)("routeEditorEnabled",Wi.routeEditorEnabled)("formHandler",Wi.formHandler)("record",Wi.record)("coordinatesDisabled",Wi.geoCodingDisabled())("mapZoom",Wi.mapZoom)("longValueForMap",Wi.longValueForMap)("latValueForMap",Wi.latValueForMap),e.xp6(2),e.Q6J("ngIf",e.lcZ(6,14,Wi.geoInfoSystemsAvailable$)))},dependencies:[Y.O5,K.Pi,He.Y,rt.Q,$e.d,ln,Ve.A,Ce.j,Y.Ov,K.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}@media (max-width: 900px){.form__content-row[_ngcontent-%COMP%]{flex-wrap:wrap}.form__content-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:0}}.warning[_ngcontent-%COMP%]{margin-bottom:10px}"],changeDetection:0})}return wn})()},30968:(gt,X,a)=>{"use strict";a.d(X,{c:()=>G});var e=a(19212),n=a(72079),s=a(19352),l=a(51418),i=a(44590),t=a(21473),c=(a(62192),a(96814)),o=a(71365),x=a(4938),u=a(36116),m=a(47378);function b(B,ae){if(1&B){const J=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(J);const j=e.oxw(3);return e.KtG(j.showLocationAutocomplete=!j.showLocationAutocomplete)}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&B&&(e.xp6(),e.hij(" ",e.lcZ(2,1,"imxplatform.common-entity.edit.panels.geo.show-manual-location-selection")," "))}function I(B,ae){if(1&B&&(e.ynx(0),e._UZ(1,"imx-select",5),e.YNc(2,b,3,3,"button",6),e.BQk()),2&B){const J=e.oxw(2);e.xp6(),e.Q6J("field",J.formHandler.formConfiguration.findFormFieldById("location"))("control",J.formHandler.formGroup.get("location"))("form",J.formHandler.formGroup)("formHandler",J.formHandler)("optionProvider",J.locationsWithCurrentLocation),e.xp6(),e.Q6J("hasFieldWritePermission","location")("hasFieldWritePermissionFormHandler",J.formHandler)}}function H(B,ae){if(1&B){const J=e.EpF();e.TgZ(0,"button",10),e.NdJ("click",function(){e.CHM(J);const j=e.oxw(3);return e.KtG(j.showLocationAutocomplete=!j.showLocationAutocomplete)}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&B){const J=e.oxw(3);e.Q6J("disabled",0===J.locationsByZipCode.length),e.xp6(),e.hij(" ",e.lcZ(2,2,"imxplatform.common-entity.edit.panels.geo.show-location-selection")," ")}}function O(B,ae){if(1&B&&(e.ynx(0),e._UZ(1,"imx-autocomplete",8),e.ynx(2),e.YNc(3,H,3,4,"button",9),e.BQk()()),2&B){const J=e.oxw(2);e.xp6(),e.Q6J("field",J.formHandler.formConfiguration.findFormFieldById("location"))("formHandler",J.formHandler)("form",J.formHandler.formGroup)("control",J.formHandler.formGroup.get("location"))("displayItemFn",J.locationDisplayFn)("autocompleteService",J.locationAutocompleteService),e.xp6(2),e.Q6J("hasFieldWritePermission","location")("hasFieldWritePermissionFormHandler",J.formHandler)}}function P(B,ae){if(1&B&&(e.TgZ(0,"div",1)(1,"div",2)(2,"h3",3),e._uU(3,"imxplatform.common-entity.edit.panels.geo.location-selection"),e.qZA(),e.YNc(4,I,3,7,"ng-container",4)(5,O,4,8,"ng-container",4),e.qZA()()),2&B){const J=e.oxw();e.xp6(4),e.Q6J("ngIf",!J.showLocationAutocomplete&&J.locationsByZipCode.length>0),e.xp6(),e.Q6J("ngIf",J.showLocationAutocomplete||0===J.locationsByZipCode.length)}}let G=(()=>{class B{constructor(J,q,j,Y){this.entitiesMgr=J,this.configurationProvider=q,this.locationAutocompleteService=j,this.changeDetectorRef=Y,this.showLocationAutocomplete=!1,this.locationsWithCurrentLocation=[],this.locationsByZipCode=[],this.isSetLocationRegionsConfigured=!0,this.destroy$=new n.xQ,this.locationChanged=new e.vpe}ngOnChanges(J){J.record&&this.formHandler.formGroup.get("location")&&this.loadLocationsForZipcodeAndLocation()}ngOnInit(){this.isSetLocationRegionsConfigured=this.configurationProvider.getBooleanFromSnapshot(t.x3.PLATFORM_GEOINFO_SET_LOCATION_REGIONS,!0),this.formHandler.formGroup.get("location").valueChanges.pipe((0,s.R)(this.destroy$)).subscribe(J=>{J&&J>0&&this.entitiesMgr.getEntityWithIdOfType("Location",J).pipe((0,l.q)(1)).subscribe(q=>{q&&this.locationChanged.emit(q)})})}overtakeLocation(J){this.formHandler.formGroup.get("location").setValue(J.id)}loadLocationsForZipcodeAndLocation(){const J=this.formHandler.formGroup.get("geoInfo.zipcode").value;this.determineLocationsByZipcode(J)}determineLocationsByZipcode(J){J?this.entitiesMgr.getAllEntitiesOfType("Location").subscribe(q=>{const Y=q.items.filter(ne=>ne.zipcodes&&ne.zipcodes.some(ee=>ee.zipcode===J)).map(ne=>({label:ne.name+this.renderOtherZipCodes(J,ne.zipcodes),value:ne.id}));Y.sort((ne,ee)=>ne.label.localeCompare(ee.label)),this.locationsByZipCode.push(...Y),this.locationsWithCurrentLocation.push(...Y);const K=this.formHandler.formGroup.get("location").value;K&&!Y.some(ne=>ne.value===K)?this.entitiesMgr.getEntityWithIdOfType("Location",K).subscribe(ne=>{this.locationsWithCurrentLocation.push({label:ne.name+this.renderOtherZipCodes(ne.zipcodes&&ne.zipcodes.length>0?ne.zipcodes[0].zipcode:"---",ne.zipcodes),value:ne.id}),this.changeDetectorRef.markForCheck()}):this.changeDetectorRef.markForCheck()}):(this.locationsByZipCode=[],this.locationsWithCurrentLocation=[],this.changeDetectorRef.markForCheck())}renderOtherZipCodes(J,q){let j=" ("+J;return q.length>1&&(j+=",..."),j+=")",j}locationDisplayFn(J){return J?J.representation:void 0}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(q){return new(q||B)(e.Y36(t.qB),e.Y36(t.Pc),e.Y36(i.l),e.Y36(e.sBO))};static#t=this.\u0275cmp=e.Xpm({type:B,selectors:[["imx-edit-geo-location"]],hostAttrs:[1,"imx-edit-geo-location"],inputs:{formHandler:"formHandler",record:"record"},outputs:{locationChanged:"locationChanged"},features:[e.TTD],decls:2,vars:3,consts:[["class","form__content-row",4,"ngIf"],[1,"form__content-row"],[1,"form__content-group","location"],["translate",""],[4,"ngIf"],[3,"field","control","form","formHandler","optionProvider"],["class","imx-button prio2",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"imx-button","prio2",3,"click"],[3,"field","formHandler","form","control","displayItemFn","autocompleteService"],["class","imx-button prio2",3,"disabled","click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"imx-button","prio2",3,"disabled","click"]],template:function(q,j){1&q&&(e.YNc(0,P,6,2,"div",0),e.ALo(1,"async")),2&q&&e.Q6J("ngIf",j.isSetLocationRegionsConfigured&&e.lcZ(1,1,j.formHandler.hasReadPermission("location")))},dependencies:[c.O5,o.Pi,x.Y,u.H,m.X,c.Ov,o.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-group.location[_ngcontent-%COMP%]   imx-select[_ngcontent-%COMP%]{margin-bottom:10px}"],changeDetection:0})}return B})()},57881:(gt,X,a)=>{"use strict";a.d(X,{m:()=>We});var e=a(49193),n=a(72079),s=a(19352),l=a(88419),i=a(22819),p=(a(1009),a(38996)),c=a(40988),o=a(59143),x=a(56223),u=a(17700),m=a(96124),b=a(19212),I=a(96814),H=a(10444),O=a(33946),P=a(71365),G=a(1614);function B(et,Et){1&et&&(b.ynx(0),b._uU(1),b.ALo(2,"translate"),b.BQk()),2&et&&(b.xp6(),b.hij(" ",b.lcZ(2,1,"imxplatform.common-entity.edit.panels.geo.geoPath.add")," "))}const ae=et=>({geoLevel:et});function J(et,Et){if(1&et&&(b.ynx(0),b._uU(1),b.ALo(2,"translate"),b.BQk()),2&et){const lt=b.oxw();b.xp6(),b.hij(" ",b.xi3(2,1,"imxplatform.common-entity.edit.panels.geo.geoPath.add-selected",b.VKq(4,ae,lt.geoLevelFormGroup.controls.geoLevelCtrl.value))," ")}}const q=et=>[null,et];let j=(()=>{class et{constructor(lt,Vt){this.data=lt,this.geoLevelOptionProviderService=Vt,this.geoLevelOptions$=(0,e.of)(),this.geoLevelFormGroup=new x.nJ({geoLevelCtrl:new x.p4(-1)})}ngOnInit(){this.geoLevelOptions$=this.readGeoLevelOptions()}readGeoLevelOptions(){return this.geoLevelOptions$=this.geoLevelOptionProviderService.getOptions(void 0,void 0).pipe((0,m.U)(lt=>lt.filter(Vt=>[1,2,3,4,5].includes(Vt.value)).sort((Vt,r)=>Vt.value-r.value)),(0,m.U)(lt=>(lt.unshift({value:-1,label:"imxplatform.common.select-placeholder-demand"}),lt)))}getDialogResult(){return{geoLevel:this.geoLevelFormGroup.controls.geoLevelCtrl.value}}static#e=this.\u0275fac=function(Vt){return new(Vt||et)(b.Y36(u.WI),b.Y36(c.l))};static#t=this.\u0275cmp=b.Xpm({type:et,selectors:[["ng-component"]],decls:10,vars:20,consts:[["cancelButtonLabel","imxplatform.dialog.delete-abort",3,"heading","submitButtonLabel","icon","getSubmitResult","submitButtonDisabled","formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[4,"ngIf"],["formControlName","geoLevelCtrl",3,"options"]],template:function(Vt,r){1&Vt&&(b.TgZ(0,"imx-dialog",0)(1,"div",1)(2,"div",2)(3,"p"),b._uU(4),b.ALo(5,"readI18n"),b.YNc(6,B,3,3,"ng-container",3)(7,J,3,6,"ng-container",3),b.qZA(),b._UZ(8,"imx-base-select",4),b.ALo(9,"async"),b.qZA()()()),2&Vt&&(b.Q6J("heading","entity.Region.geoPathString")("submitButtonLabel","imxplatform.common.add")("icon","icon-earth")("getSubmitResult",r.getDialogResult.bind(r))("submitButtonDisabled",b.VKq(14,q,-1).includes(r.geoLevelFormGroup.controls.geoLevelCtrl.value))("formGroup",r.geoLevelFormGroup),b.xp6(4),b.hij(" ",b.lcZ(5,10,r.data.i18n)," "),b.xp6(2),b.Q6J("ngIf",b.VKq(16,q,-1).includes(r.geoLevelFormGroup.controls.geoLevelCtrl.value)),b.xp6(),b.Q6J("ngIf",!b.VKq(18,q,-1).includes(r.geoLevelFormGroup.controls.geoLevelCtrl.value)),b.xp6(),b.Q6J("options",b.lcZ(9,12,r.geoLevelOptions$)))},dependencies:[I.O5,x.JJ,x.JL,x.sg,x.u,H.o,O.a,I.Ov,P.X$,G.j],styles:[".dialog-form[_ngcontent-%COMP%]   .dialog-form-group[_ngcontent-%COMP%]{min-width:450px}"]})}return et})();var Y=a(28907),K=a(8455);function ne(et,Et){1&et&&(b.TgZ(0,"span"),b._uU(1," > "),b.qZA())}function ee(et,Et){if(1&et&&(b.ynx(0),b._uU(1),b.ALo(2,"readI18n"),b.BQk()),2&et){const lt=b.oxw().$implicit;b.xp6(),b.Oqu(b.lcZ(2,1,lt.i18nName))}}function $(et,Et){if(1&et&&(b.ynx(0),b.YNc(1,ne,2,0,"span",11)(2,ee,3,3,"ng-container",11),b.BQk()),2&et){const lt=Et.$implicit,Vt=Et.first;b.xp6(),b.Q6J("ngIf",!Vt),b.xp6(),b.Q6J("ngIf",lt)}}function ue(et,Et){1&et&&(b.TgZ(0,"span"),b._uU(1," > "),b.qZA())}function ge(et,Et){if(1&et&&(b.ynx(0),b._uU(1),b.ALo(2,"readI18n"),b.BQk()),2&et){const lt=b.oxw().$implicit;b.xp6(),b.Oqu(b.lcZ(2,1,lt.i18nName))}}function Ke(et,Et){if(1&et&&(b.ynx(0),b.YNc(1,ue,2,0,"span",11)(2,ge,3,3,"ng-container",11),b.BQk()),2&et){const lt=Et.$implicit,Vt=Et.first;b.xp6(),b.Q6J("ngIf",lt&&!Vt),b.xp6(),b.Q6J("ngIf",lt)}}function at(et,Et){if(1&et&&(b.ynx(0),b.YNc(1,Ke,3,2,"ng-container",8),b.ALo(2,"async"),b.BQk()),2&et){const lt=b.oxw();b.xp6(),b.Q6J("ngForOf",b.lcZ(2,1,lt.validGeoPath$))}}function Le(et,Et){1&et&&b.GkF(0)}function R(et,Et){1&et&&b.GkF(0)}function Te(et,Et){if(1&et&&b._UZ(0,"imx-form-control",18),2&et){const lt=b.oxw().$implicit,Vt=b.oxw();b.Q6J("field",Vt.formHandler.formConfiguration.findFormFieldById(lt))("control",Vt.formHandler.formGroup.get(lt))("form",Vt.formHandler.formGroup)("formHandler",Vt.formHandler)("config",Vt.formHandler.formConfiguration)}}function me(et,Et){if(1&et&&b.YNc(0,Te,1,5,"imx-form-control",17),2&et){const lt=Et.$implicit,Vt=b.oxw();b.Q6J("ngIf",Vt.formHandler.formConfiguration.findFormFieldById(lt))}}const Se=()=>({$implicit:"geoInfo.wikidataId"}),Ue=()=>({$implicit:"geoInfo.osmId"});let We=(()=>{class et{constructor(lt,Vt,r,Z,Pt){this.platformDataAccessService=lt,this.dialog=Vt,this.geoLevelOptionProviderService=r,this.changeDetectorRef=Z,this.userMessageService=Pt,this.generatedGeoPath$=(0,e.of)([]),this.validGeoPath$=(0,e.of)([]),this.destroy$=new n.xQ}ngOnChanges(lt){lt.record&&void 0!==this.record.id&&(this.generatedGeoPath$=this.platformDataAccessService.getGeneratedGeoPathEntity("addressbase",this.record.id),this.readValidGeoPath())}ngOnInit(){this.registerChangeGeoPathListener()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}readValidGeoPath(){this.validGeoPath$=(0,e.of)(this.readGeoPathFromFormFields(this.record))}readGeoPathFromFormFields(lt){const Vt=[];return lt.geoInfo&&[1,2,3,4,5].forEach(r=>{const Z=this.formHandler.formGroup.get(this._createGeoPathFieldName(r)).value;Z&&Vt.push(Z)}),Vt}registerChangeGeoPathListener(){this.changeGeoPath$.pipe((0,s.R)(this.destroy$)).subscribe(lt=>{this.openGeoPathDialog(lt).afterClosed().subscribe(r=>{r&&-1!==r.geoLevel&&(this.setRegionPath(r.geoLevel,lt.controls[p.Qy].value),this.readValidGeoPath(),this.changeDetectorRef.markForCheck())})})}setRegionPath(lt,Vt){const r=this.getGeoPathCtrl(lt),Z=this.getGeoPathCtrl(lt,!0);r&&Z?(r.setValue(Vt||null),Z.setValue(Vt&&Vt.id?Vt.id:null)):this.userMessageService.showError("imxplatform.common-entity.edit.panels.geo.geoPath.error")}getGeoPathCtrl(lt,Vt=!1){if(lt&&[1,2,3,4,5].includes(lt)){const r=this._createGeoPathFieldName(lt,Vt);return this.formHandler.formGroup.get(r)}}_createGeoPathFieldName(lt,Vt=!1){return"path"+lt+"Region"+(Vt?"Id":"")}openGeoPathDialog(lt){return this.dialog.open(j,{minWidth:600,data:{i18n:lt.controls.rowEntity.value.i18nName,formGroup:lt}})}removeValidGeoPath(){[1,2,3,4,5].forEach(lt=>this.setRegionPath(lt,null)),this.validGeoPath$=(0,e.of)([]),this.changeDetectorRef.detectChanges()}acceptGeneratedGeoPath(){this.generatedGeoPath$.pipe((0,s.R)(this.destroy$),(0,l.P)()).subscribe(lt=>{this.removeValidGeoPath(),lt.forEach((Vt,r)=>this.setRegionPath(r+1,Vt)),this.readValidGeoPath()})}getOsmId(){let lt="-";return this.formHandler.formGroup.get("geoInfo.osmId").value&&(lt=this.formHandler.formGroup.get("geoInfo.osmId").value),lt}static#e=this.\u0275fac=function(Vt){return new(Vt||et)(b.Y36(i.nq),b.Y36(u.uw),b.Y36(c.l),b.Y36(b.sBO),b.Y36(o.Y))};static#t=this.\u0275cmp=b.Xpm({type:et,selectors:[["imx-edit-geo-path"]],hostAttrs:[1,"imx-edit-geo-path"],inputs:{formHandler:"formHandler",record:"record",changeGeoPath$:"changeGeoPath$"},features:[b.TTD],decls:39,vars:27,consts:[["translate",""],[1,"form__table"],[1,"mat-mdc-table"],[1,"mat-mdc-header-cell","idCol"],["translate","",1,"mat-mdc-header-cell"],["translate","",1,"mat-mdc-cell","idCol"],[1,"mat-mdc-cell"],[1,"disabled"],[4,"ngFor","ngForOf"],[3,"field","formHandler","form"],[1,"mat-mdc-cell","brightCol"],[4,"ngIf"],[1,"button-wrapper"],[1,"imx-button","prio2",3,"disabled","click"],[1,"form__content-row","form__osm-id"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["imxControl",""],[3,"field","control","form","formHandler","config",4,"ngIf"],[3,"field","control","form","formHandler","config"]],template:function(Vt,r){if(1&Vt&&(b.TgZ(0,"div")(1,"h3",0),b._uU(2,"entity.Region.geoPathString"),b.qZA(),b.TgZ(3,"div",1)(4,"table",2)(5,"tr"),b._UZ(6,"th",3),b.TgZ(7,"th",4),b._uU(8,"entity.Region.geoPathString"),b.qZA()(),b.TgZ(9,"tr")(10,"td",5),b._uU(11,"imxplatform.common-entity.edit.panels.geo.geoPath.generated"),b.qZA(),b.TgZ(12,"td",6)(13,"div",7),b.YNc(14,$,3,2,"ng-container",8),b.ALo(15,"async"),b.qZA()()(),b.TgZ(16,"tr")(17,"td",5),b._uU(18,"imxplatform.common-entity.edit.panels.geo.geoPath.valid "),b._UZ(19,"imx-lockable-input",9),b.qZA(),b.TgZ(20,"td",10)(21,"div"),b.YNc(22,at,3,3,"ng-container",11),b.ALo(23,"async"),b.qZA()()()()(),b.TgZ(24,"div",12)(25,"button",13),b.NdJ("click",function(){return r.acceptGeneratedGeoPath()}),b.ALo(26,"async"),b._uU(27),b.ALo(28,"translate"),b.qZA(),b.TgZ(29,"button",13),b.NdJ("click",function(){return r.removeValidGeoPath()}),b.ALo(30,"async"),b._uU(31),b.ALo(32,"translate"),b.qZA()(),b.ynx(33),b.TgZ(34,"div",14),b.YNc(35,Le,1,0,"ng-container",15)(36,R,1,0,"ng-container",15),b.qZA(),b.BQk(),b.qZA(),b.YNc(37,me,1,1,"ng-template",null,16,b.W1O)),2&Vt){const Z=b.MAs(38);b.xp6(14),b.Q6J("ngForOf",b.lcZ(15,13,r.generatedGeoPath$)),b.xp6(5),b.Q6J("field",r.formHandler.formConfiguration.findFormFieldById("path1RegionId"))("formHandler",r.formHandler)("form",r.formHandler.formGroup),b.xp6(3),b.Q6J("ngIf",b.lcZ(23,15,r.validGeoPath$)),b.xp6(3),b.Q6J("disabled",!b.lcZ(26,17,r.formHandler.hasEditPermission("geoInfo.geoPath"))),b.xp6(2),b.hij(" ",b.lcZ(28,19,"imxplatform.common-entity.edit.panels.geo.geoPath.accept-generated")," "),b.xp6(2),b.Q6J("disabled",!b.lcZ(30,21,r.formHandler.hasEditPermission("geoInfo.geoPath"))),b.xp6(2),b.hij(" ",b.lcZ(32,23,"imxplatform.common-entity.edit.panels.geo.geoPath.delete")," "),b.xp6(4),b.Q6J("ngTemplateOutlet",Z)("ngTemplateOutletContext",b.DdM(25,Se)),b.xp6(),b.Q6J("ngTemplateOutlet",Z)("ngTemplateOutletContext",b.DdM(26,Ue))}},dependencies:[I.sg,I.O5,I.tP,P.Pi,Y.A,K.J,I.Ov,P.X$,G.j],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.idCol[_ngcontent-%COMP%]{height:48px;width:250px}.disabled[_ngcontent-%COMP%]{color:#9da8c1}.button-wrapper[_ngcontent-%COMP%]{display:flex}.button-wrapper[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]:not(:last-child):first-child{margin-right:10px}.form__osm-id[_ngcontent-%COMP%]{margin-top:20px;gap:10px}.form__osm-label[_ngcontent-%COMP%]{margin-top:5px}"]})}return et})()},24365:(gt,X,a)=>{"use strict";a.d(X,{L:()=>Z});var e=a(21473),n=a(72079),s=a(51418),l=a(96124),i=a(19352),t=a(27556),p=a(69514),c=a(30324),x=(a(1009),a(38996)),u=a(38347),m=a(19212),b=a(61291),I=a(96814),H=a(56223),O=a(25313),P=a(71365),G=a(74961),B=a(6128),ae=a(36681),J=a(97564),q=a(57881),j=a(47378),Y=a(1614);function K(Pt,Oe){1&Pt&&(m.TgZ(0,"p",12),m._uU(1,"imxplatform.common.no-records"),m.qZA())}function ne(Pt,Oe){1&Pt&&m._UZ(0,"tr",27)}const ee=Pt=>({clickable:Pt});function $(Pt,Oe){if(1&Pt){const ye=m.EpF();m.TgZ(0,"tr",28),m.NdJ("click",function(){const Dt=m.CHM(ye).$implicit,Rn=m.oxw(2);return m.KtG(Rn.openGeoObject(Dt.value.rowId))}),m.qZA()}if(2&Pt){const ye=m.oxw(2);m.Q6J("ngClass",m.VKq(1,ee,ye.hasBaseEntityPermission()))}}function ue(Pt,Oe){1&Pt&&(m.TgZ(0,"th",29),m._uU(1,"ID"),m.qZA())}function ge(Pt,Oe){if(1&Pt&&(m.TgZ(0,"td",30)(1,"span"),m._uU(2),m.qZA()()),2&Pt){const ye=Oe.$implicit;m.xp6(2),m.Oqu(ye.controls.rowEntity.value.id)}}function Ke(Pt,Oe){1&Pt&&(m.TgZ(0,"th",31),m._uU(1,"Name"),m.qZA())}function at(Pt,Oe){if(1&Pt&&(m.TgZ(0,"td",32)(1,"span"),m._uU(2),m.ALo(3,"readI18n"),m.qZA()()),2&Pt){const ye=Oe.$implicit;m.xp6(2),m.Oqu(m.lcZ(3,1,ye.controls.rowEntity.value.i18nName))}}function Le(Pt,Oe){1&Pt&&(m.TgZ(0,"th",31),m._uU(1,"Geolevel"),m.qZA())}function R(Pt,Oe){if(1&Pt&&(m.TgZ(0,"td",32)(1,"span"),m._uU(2),m.qZA()()),2&Pt){const ye=Oe.$implicit;m.xp6(2),m.Oqu(null==ye.controls.rowEntity.value||null==ye.controls.rowEntity.value.geoLevel?null:ye.controls.rowEntity.value.geoLevel.name)}}function Te(Pt,Oe){1&Pt&&(m.TgZ(0,"th",31),m._uU(1,"Pfad"),m.qZA())}function me(Pt,Oe){if(1&Pt&&(m.TgZ(0,"td",32)(1,"span"),m._uU(2),m.qZA()()),2&Pt){const ye=Oe.$implicit;m.xp6(2),m.Oqu(ye.controls.rowEntity.value.geoPathString)}}function Se(Pt,Oe){1&Pt&&m._UZ(0,"th",33)}function Ue(Pt,Oe){if(1&Pt){const ye=m.EpF();m.TgZ(0,"imx-action-menu-item",37),m.NdJ("click",function(){m.CHM(ye);const ft=m.oxw(2).$implicit,Dt=m.oxw(2);return m.KtG(Dt.editGeoPath(ft))}),m._uU(1," imxplatform.common-entity.edit.panels.geo.geoPath.add "),m.qZA()}2&Pt&&m.Q6J("icon","icon-map-marker")}function We(Pt,Oe){if(1&Pt){const ye=m.EpF();m.TgZ(0,"imx-action-menu-item",37),m.NdJ("click",function(){m.CHM(ye);const ft=m.oxw(2).$implicit,Dt=m.oxw(2);return m.KtG(Dt.openGeoObject(ft.controls.rowEntity.value.id))}),m._uU(1," imxplatform.common-entity.edit.panels.geo.geoRegion.edit "),m.qZA()}2&Pt&&m.Q6J("icon","icon-baseEdit")}function et(Pt,Oe){if(1&Pt){const ye=m.EpF();m.TgZ(0,"imx-action-menu-item",39),m.NdJ("click",function(){m.CHM(ye);const ft=m.oxw(2).$implicit,Dt=m.oxw(2);return m.KtG(Dt.removeRegionRow(ft))}),m._uU(1," imxplatform.common-entity.list.remove "),m.qZA()}2&Pt&&m.Q6J("icon","icon-trash")}function Et(Pt,Oe){if(1&Pt){const ye=m.EpF();m.TgZ(0,"imx-dropup-button")(1,"imx-action-menu"),m.YNc(2,Ue,2,1,"imx-action-menu-item",36),m.ALo(3,"async"),m.YNc(4,We,2,1,"imx-action-menu-item",36),m.TgZ(5,"imx-action-menu-item",37),m.NdJ("click",function(){m.CHM(ye);const ft=m.oxw().$implicit,Dt=m.oxw(2);return m.KtG(Dt.openAddressbaseListWithGeoRegionIdFilter(ft.controls.rowEntity.value.id))}),m._uU(6," imxplatform.common-entity.edit.panels.geo.geoRegion.gotoGeoRegion "),m.qZA(),m.YNc(7,et,2,1,"imx-action-menu-item",38),m.qZA()()}if(2&Pt){const ye=m.oxw(3);m.xp6(2),m.Q6J("ngIf",ye.showGeopath&&m.lcZ(3,5,ye.formHandler.hasEditPermission("geoInfo.geoPath"))),m.xp6(2),m.Q6J("ngIf",ye.hasBaseEntityPermission()),m.xp6(),m.Q6J("icon","icon-stem"),m.xp6(2),m.Q6J("hasFieldWritePermission","regions")("hasFieldWritePermissionFormHandler",ye.formHandler)}}function lt(Pt,Oe){if(1&Pt&&(m.TgZ(0,"td",34),m.YNc(1,Et,8,7,"imx-dropup-button",35),m.qZA()),2&Pt){const ye=Oe.$implicit,ve=m.oxw(2);m.Q6J("formGroup",ye),m.xp6(),m.Q6J("hasFieldWritePermission","regions")("hasFieldWritePermissionFormHandler",ve.formHandler)}}function Vt(Pt,Oe){if(1&Pt&&(m.TgZ(0,"table",13),m.YNc(1,ne,1,0,"tr",14)(2,$,1,3,"tr",15),m.ynx(3,16),m.YNc(4,ue,2,0,"th",17)(5,ge,3,1,"td",18),m.BQk(),m.ynx(6,19),m.YNc(7,Ke,2,0,"th",20)(8,at,4,3,"td",21),m.BQk(),m.ynx(9,22),m.YNc(10,Le,2,0,"th",20)(11,R,3,1,"td",21),m.BQk(),m.ynx(12,23),m.YNc(13,Te,2,0,"th",20)(14,me,3,1,"td",21),m.BQk(),m.ynx(15,24),m.YNc(16,Se,1,0,"th",25)(17,lt,2,3,"td",26),m.BQk(),m.qZA()),2&Pt){const ye=m.oxw();m.Q6J("dataSource",ye.regionCollectionDataSource),m.xp6(),m.Q6J("matHeaderRowDef",ye.regionCollectionColumns),m.xp6(),m.Q6J("matRowDefColumns",ye.regionCollectionColumns)}}function r(Pt,Oe){if(1&Pt&&(m.ynx(0),m.TgZ(1,"div",0)(2,"div",1),m._UZ(3,"imx-edit-geo-path",40),m.qZA()(),m.BQk()),2&Pt){const ye=m.oxw();m.xp6(3),m.Q6J("formHandler",ye.formHandler)("record",ye.record)("changeGeoPath$",ye.changeGeoPath$)}}let Z=(()=>{class Pt{constructor(ye,ve,ft,Dt,Rn,ti,Xt){this.entitiesMgr=ye,this.configurationProvider=ve,this.regionAutocompleteService=ft,this.mgmtDataService=Dt,this.changeDetectorRef=Rn,this.baseEntityLinkService=ti,this.securityManager=Xt,this.logger=(0,e.jl)("EditGeoRegionsAdvancedComponent",t.H.name),this.showGeopath=!0,this.destroy$=new n.xQ,this.changeGeoPath$=new n.xQ}ngOnInit(){if(this.regionCollectionColumns=["regionId","name","geolevel","geoPath","removeColumn"],null!=this.formHandler.formGroup.get("regions_adv")){const ye=this.formHandler.formGroup.get("regions_adv").value.map(ve=>ve.rowEntity.id);ye&&ye.length>0?this.completeDataSource(ye):this.regionCollectionDataSource=this.prepareTable(this.formHandler.formGroup.get("regions_adv"),ve=>this.regionCollectionDataSource=ve)}}ngOnChanges(ye){if(ye.record&&!ye.record.isFirstChange()){const ve=this.formHandler.formGroup.get("regions_adv").value.map(ft=>ft.rowEntity.id);ve&&ve.length>0&&this.completeDataSource(ve)}}completeDataSource(ye){this.completeRegionRows(ye).subscribe(ve=>{this.regionCollectionDataSource=ve,this.changeDetectorRef.markForCheck()})}completeRegionRows(ye){return this.mgmtDataService.getRegions({id:ye.join()},{paging:{pageIdx:0,pageSize:ye.length},sortFields:[{direction:"ASC",field:"ID"}]}).pipe((0,s.q)(1),(0,l.U)(ve=>(ve.items.forEach(ft=>{const Dt=this.formHandler.formGroup.get("regions_adv").value.find(Rn=>Rn.rowEntity.id===ft.id);Dt&&(Dt.rowEntity.geoLevel=ft.geoLevel,Dt.rowEntity.geoPathString=ft.geoPathString)}),this.prepareTable(this.formHandler.formGroup.get("regions_adv"),ft=>this.regionCollectionDataSource=ft))))}addRegionRow(ye){this.formHandler.formGroup.get("regions").value&&this.formHandler.formGroup.get("regions").value.indexOf(ye)>-1||(this.formHandler.formGroup.get("regions").value||this.formHandler.formGroup.get("regions").setValue([]),this.mgmtDataService.getRegions({id:ye.toString()},{sortFields:[{direction:"ASC",field:"ID"}]}).pipe((0,i.R)(this.destroy$)).subscribe(ve=>{const ft=ve.items[0];this.formHandler.addNewCollectionRow("regions_adv").controls[x.Qy].setValue(ft),this.formHandler.formGroup.get("regions").value.push(ft.id),this.changeDetectorRef.markForCheck()}))}removeRegionRow(ye){this.formHandler.removeLineFromCollection("regions_adv",this.regionCollectionDataSource.filteredData.indexOf(ye)),this.formHandler.formGroup.get("regions").value.splice(this.formHandler.formGroup.get("regions").value.indexOf(ye.get("rowEntity").value.id),1)}prepareTable(ye,ve,ft){return(0,u.t)(ye,ve,this.destroy$,ft)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}overtakeRegionsFromLocation(ye){this.formHandler.formGroup.get("regions")&&(ye.regions&&0!==ye.regions.length?(this.formHandler.formGroup.get("regions").setValue(ye.regions.map(ve=>ve.id)),ye.regions.forEach(ve=>{this.formHandler.addNewCollectionRow("regions_adv").controls[x.Qy].setValue(ve)})):this.formHandler.formGroup.get("regions").setValue([])),this.changeDetectorRef.markForCheck()}editGeoPath(ye){this.changeGeoPath$.next(ye)}openGeoObject(ye){this.baseEntityLinkService.openBaseEntityInNewTab("imxplatform_core","Region",1,"id","ASC",!0,ye)}hasBaseEntityPermission(){return this.securityManager.hasAnyPermissionByNames(e.uo.F_MODULE_BASEENTITIES_MANAGEMENT_READ.name)}openAddressbaseListWithGeoRegionIdFilter(ye){window.open(`addressbases?geoRegionId=${ye}`,"_blank")}static#e=this.\u0275fac=function(ve){return new(ve||Pt)(m.Y36(e.qB),m.Y36(e.Pc),m.Y36(p.M),m.Y36(c.Q),m.Y36(m.sBO),m.Y36(b.X),m.Y36(e.Xh))};static#t=this.\u0275cmp=m.Xpm({type:Pt,selectors:[["imx-edit-geo-regions-advanced"]],hostAttrs:[1,"imx-edit-geo-regions-advanced"],inputs:{record:"record",showGeopath:"showGeopath",formHandler:"formHandler",regionCollectionDataSource:"regionCollectionDataSource"},features:[m.TTD],decls:17,vars:13,consts:[[1,"form__content-row"],[1,"form__content-group"],["translate",""],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[1,"form__content-field-row"],["name","addRegion",3,"disableControl","autocompleteService","label","enterPressed"],["regionAutocompleteControl",""],[1,"imx-button","prio2","addButton",3,"disabled","click"],["addRegionButton",""],[4,"ngIf"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"ngClass","click",4,"matRowDef","matRowDefColumns"],["matColumnDef","regionId"],["mat-header-cell","","class","idCol",4,"matHeaderCellDef"],["mat-cell","","class","idCol",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","geolevel"],["matColumnDef","geoPath"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row","",3,"ngClass","click"],["mat-header-cell","",1,"idCol"],["mat-cell","",1,"idCol"],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],[4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[3,"icon","click",4,"ngIf"],[3,"icon","click"],["additionalStyle","delete",3,"icon","click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],["additionalStyle","delete",3,"icon","click"],[3,"formHandler","record","changeGeoPath$"]],template:function(ve,ft){if(1&ve){const Dt=m.EpF();m.TgZ(0,"div",0)(1,"div",1)(2,"h3",2),m._uU(3),m.qZA(),m.YNc(4,K,2,0,"ng-template",null,3,m.W1O),m.TgZ(6,"div",4),m.YNc(7,Vt,18,3,"table",5),m.qZA(),m.TgZ(8,"div",6)(9,"imx-base-autocomplete",7,8),m.NdJ("enterPressed",function(){m.CHM(Dt);const ti=m.MAs(13);return m.KtG(ti.focus())}),m.ALo(11,"async"),m.qZA(),m.TgZ(12,"button",9,10),m.NdJ("click",function(){m.CHM(Dt);const ti=m.MAs(10);return ft.addRegionRow(ti.getSelectedId()),m.KtG(ti.writeValue(void 0))}),m._uU(14),m.ALo(15,"translate"),m.qZA()()()(),m.YNc(16,r,4,3,"ng-container",11)}if(2&ve){const Dt=m.MAs(5),Rn=m.MAs(10);m.xp6(3),m.hij("","Article"===ft.formHandler.getEntityType()?"imxplatform.common-entity.edit.panels.geo.regionSelection.article":"imxplatform.common-entity.edit.panels.geo.regionSelection.default"," "),m.xp6(4),m.Q6J("ngIf",ft.regionCollectionDataSource&&ft.regionCollectionDataSource.data.length>0)("ngIfElse",Dt),m.xp6(2),m.Q6J("disableControl",!m.lcZ(11,9,ft.formHandler.hasEditPermission("regions")))("autocompleteService",ft.regionAutocompleteService)("label","imxplatform.common-entity.edit.panels.geo.geoRegion.choose"),m.xp6(3),m.Q6J("disabled",!Rn.getSelectedId()),m.xp6(2),m.hij(" ",m.lcZ(15,11,"imxplatform.common.add")," "),m.xp6(2),m.Q6J("ngIf",ft.showGeopath)}},dependencies:[I.mk,I.O5,H.JL,O.BZ,O.fO,O.as,O.w1,O.Dz,O.nj,O.ge,O.ev,O.XQ,O.Gk,H.sg,P.Pi,G.p,B.z,ae.t,J.h,q.m,j.X,I.Ov,P.X$,Y.j],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.idCol[_ngcontent-%COMP%]{flex:0 1 60px}.button-wrapper[_ngcontent-%COMP%]{display:flex}.button-wrapper[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]:not(:last-child):first-child{margin-right:10px}"],changeDetection:0})}return Pt})()},41780:(gt,X,a)=>{"use strict";a.d(X,{e:()=>O});var e=a(49193),n=a(75222),s=a(21473),l=a(27556),t=(a(1009),a(41621)),p=a(19212),c=a(96814),o=a(56223),x=a(71365),u=a(30555),m=a(1931);function b(P,G){if(1&P&&(p.ynx(0),p._UZ(1,"imx-tree-shuffle",5),p.BQk()),2&P){const B=p.oxw(2);p.xp6(),p.Q6J("name","region")("treeOptionProvider",B.allRegions)("displayNodeFn",B.displayFnForRegionNode)("sortNodesFn",B.sortFnForRegionNode)("control",B.formHandler.formGroup.get("regions"))("formHandler",B.formHandler)("field",B.formHandler.formConfiguration.findFormFieldById("regions"))}}function I(P,G){if(1&P&&(p.ynx(0),p._UZ(1,"imx-base-list-shuffle",6),p.ALo(2,"async"),p.ALo(3,"async"),p.BQk()),2&P){const B=p.oxw(2);p.xp6(),p.Q6J("availableItems",B.allRegions)("disableControl",!p.lcZ(2,3,B.formHandler.hasSavePermission())||!p.lcZ(3,5,B.formHandler.hasEditPermission("regions")))("formControl",B.formHandler.formGroup.get("regions"))}}function H(P,G){if(1&P&&(p.TgZ(0,"div",1)(1,"div",2)(2,"h3",3),p._uU(3),p.qZA(),p.YNc(4,b,2,7,"ng-container",4),p.ALo(5,"async"),p.YNc(6,I,4,7,"ng-container",4),p.ALo(7,"async"),p.qZA()()),2&P){const B=p.oxw();p.xp6(3),p.Oqu("imxplatform.common-entity.edit.panels.geo.regionSelection.default"),p.xp6(),p.Q6J("ngIf",p.lcZ(5,3,B.regionsAsTree$)),p.xp6(2),p.Q6J("ngIf",!p.lcZ(7,5,B.regionsAsTree$))}}let O=(()=>{class P{constructor(B,ae,J){this.entitiesMgr=B,this.configurationProvider=ae,this.changeDetectorRef=J,this.logger=(0,s.jl)("EditGeoRegionsComponent",l.H.name),this.regionsAvailable$=(0,e.of)(!1),this.regionsAsTree$=(0,e.of)(!1),this.allRegions=[],this.isSetLocationRegionsConfigured=!0}ngOnInit(){this.regionsAsTree$=this.regionsHaveTreeStructure(),this.regionsAvailable$=this.entitiesMgr.isBaseEntityAvailable("Region"),this.loadRegions(),this.isSetLocationRegionsConfigured=this.configurationProvider.getBooleanFromSnapshot(s.x3.PLATFORM_GEOINFO_SET_LOCATION_REGIONS,!0)}overtakeRegionsFromLocation(B){this.formHandler.formGroup.get("regions")&&(B.regions&&0!==B.regions.length?this.formHandler.formGroup.get("regions").setValue(B.regions.map(ae=>ae.id)):this.formHandler.formGroup.get("regions").setValue([])),this.changeDetectorRef.markForCheck()}displayFnForRegionNode(B){return B?B.i18nName:void 0}sortFnForRegionNode(B,ae,J){return(0,t.Qi)(B.i18nName,ae.i18nName,J)}loadRegions(){this.entitiesMgr.getAllEntitiesOfType("Region").subscribe(B=>{this.allRegions=B.items.filter(ae=>null==ae.parent)})}regionsHaveTreeStructure(){return this.entitiesMgr.getAllEntitiesOfType("Region").pipe((0,n.w)(B=>(0,e.of)(B.items.some(ae=>void 0!==ae.children&&ae.children.length>0))))}static#e=this.\u0275fac=function(ae){return new(ae||P)(p.Y36(s.qB),p.Y36(s.Pc),p.Y36(p.sBO))};static#t=this.\u0275cmp=p.Xpm({type:P,selectors:[["imx-edit-geo-regions"]],hostAttrs:[1,"imx-edit-geo-regions"],inputs:{formHandler:"formHandler"},decls:3,vars:5,consts:[["class","form__content-row",4,"ngIf"],[1,"form__content-row"],[1,"form__content-group"],["translate",""],[4,"ngIf"],[3,"name","treeOptionProvider","displayNodeFn","sortNodesFn","control","formHandler","field"],[3,"availableItems","disableControl","formControl"]],template:function(ae,J){1&ae&&(p.YNc(0,H,8,7,"div",0),p.ALo(1,"async"),p.ALo(2,"async")),2&ae&&p.Q6J("ngIf",p.lcZ(1,1,J.regionsAvailable$)&&J.isSetLocationRegionsConfigured&&p.lcZ(2,3,J.formHandler.hasReadPermission("regions")))},dependencies:[c.O5,o.JJ,o.oH,x.Pi,u.A,m.D,c.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}"],changeDetection:0})}return P})()},35350:(gt,X,a)=>{"use strict";a.d(X,{X:()=>Se});var e=a(56223),n=a(79309),s=a(72079),l=a(96124),i=a(19352),t=a(21473),p=a(22819),o=(a(62192),a(19212)),x=a(71365),u=a(96814),m=a(2563),b=a(2032),I=a(64170),H=a(92202),O=a(6554),P=a(2901);let ae=(()=>{class Ue extends m.y{constructor(){super(...arguments),this.MIN=0,this.MAX=100}get occupancy(){return this.model}set occupancy(et){this.model=et>100?100:et<0?0:et}formatSliderLabel(et){return et+"%"}static#e=this.\u0275fac=(()=>{let et;return function(lt){return(et||(et=o.n5z(Ue)))(lt||Ue)}})();static#t=this.\u0275cmp=o.Xpm({type:Ue,selectors:[["imx-base-occupancy-input"]],features:[o._Bn([{provide:e.JU,useExisting:(0,o.Gpc)(()=>Ue),multi:!0}]),o.qOj],decls:11,vars:17,consts:[[1,"input-group"],[3,"label","forId","required"],[1,"input-wrapper"],["matInput","","step","10",3,"ngModel","id","disabled","required","min","max","ngModelChange","blur"],[3,"hint"],["step","10",1,"occ-slider",3,"displayWith","min","max","showTickMarks","disabled"],["matSliderThumb","",3,"ngModel","ngModelChange"],["slider",""]],template:function(Et,lt){1&Et&&(o.TgZ(0,"div",0)(1,"mat-form-field"),o._UZ(2,"imx-base-input-label",1),o.TgZ(3,"div",2)(4,"input",3),o.NdJ("ngModelChange",function(r){return lt.occupancy=r})("blur",function(){return lt.markAsTouched()}),o.qZA(),o.TgZ(5,"span"),o._uU(6,"%"),o.qZA()(),o._UZ(7,"imx-base-input-hint",4),o.qZA(),o.TgZ(8,"mat-slider",5)(9,"input",6,7),o.NdJ("ngModelChange",function(r){return lt.occupancy=r}),o.qZA()()()),2&Et&&(o.xp6(2),o.Q6J("label",lt.label)("forId",lt.id)("required",lt.required),o.xp6(2),o.Q6J("ngModel",lt.occupancy)("id",lt.id)("disabled",lt.disableControl)("required",lt.required)("min",lt.MIN)("max",lt.MAX),o.uIk("type","number"),o.xp6(3),o.Q6J("hint",lt.hint),o.xp6(),o.Q6J("displayWith",lt.formatSliderLabel)("min",lt.MIN)("max",lt.MAX)("showTickMarks",!0)("disabled",lt.disableControl),o.xp6(),o.Q6J("ngModel",lt.occupancy))},dependencies:[e.Fj,e.JJ,e.Q7,e.On,b.Nt,I.KE,H.pH,H.$5,O.g,P.u],styles:[".input-group[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:50px}.input-group[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center}.input-group[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:5px}.input-group[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]   .mat-mdc-input-element[_ngcontent-%COMP%]{min-width:70px;max-width:100px}.input-group[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:15px}.input-group[_ngcontent-%COMP%]   .occ-slider[_ngcontent-%COMP%]{min-width:80%}"]})}return Ue})();var J=a(61880),q=a(80617);function j(Ue,We){1&Ue&&(o.TgZ(0,"span"),o._uU(1,"\xa0%"),o.qZA())}function Y(Ue,We){if(1&Ue&&(o.ynx(0),o.TgZ(1,"h3",3),o._uU(2,"imxplatform.announcement.edit.panels.occupancy.recent"),o.qZA(),o.TgZ(3,"div",5),o._UZ(4,"imx-base-read-only",6),o.ALo(5,"date"),o.ALo(6,"convertTimestamps"),o._UZ(7,"imx-base-read-only",6),o.YNc(8,j,2,0,"span",2),o.qZA(),o.BQk()),2&Ue){const et=o.oxw();o.xp6(4),o.Q6J("label","entity.AddressPoiOccupancy.measurementTime")("customModel",o.xi3(5,5,o.lcZ(6,8,et.formHandler.formGroup.get("lastOccupancy.measurementTime").value),"dd.MM.yyyy - HH:mm")+" "+et.translateService.instant("imxplatform.common.time-indicator")),o.xp6(3),o.Q6J("label","entity.AddressPoiOccupancy.value")("customModel",et.formHandler.formGroup.get("lastOccupancy.value").value),o.xp6(),o.Q6J("ngIf",et.formHandler.formGroup.get("lastOccupancy.value").value)}}function K(Ue,We){if(1&Ue&&(o.ynx(0),o.TgZ(1,"span",10),o._uU(2,"imxplatform.announcement.edit.panels.occupancy.today"),o.qZA(),o._UZ(3,"imx-base-occupancy-input",11),o.ALo(4,"async"),o.ALo(5,"async"),o.BQk()),2&Ue){const et=o.oxw(2);o.xp6(3),o.Q6J("formControl",et.actualOccupancyGroup.get("value"))("required",et.isActualOccupancyRequired())("errors",et.actualOccupancyGroup.get("value").errors)("disableControl",!(o.lcZ(4,4,et.formHandler.hasSavePermission())&&o.lcZ(5,6,et.formHandler.hasEditPermission("actualOccupany.value"))))}}function ne(Ue,We){1&Ue&&(o.TgZ(0,"span",12),o._uU(1,"imxplatform.announcement.edit.panels.occupancy.today"),o.qZA(),o.TgZ(2,"span",12),o._uU(3,"imxplatform.announcement.edit.panels.occupancy.closed-text"),o.qZA())}function ee(Ue,We){if(1&Ue&&(o.TgZ(0,"div",7),o.YNc(1,K,6,8,"ng-container",8),o.ALo(2,"async"),o.YNc(3,ne,4,0,"ng-template",null,9,o.W1O),o.qZA()),2&Ue){const et=o.MAs(4),Et=o.oxw();o.xp6(),o.Q6J("ngIf",o.lcZ(2,2,Et.isOpenToday$))("ngIfElse",et)}}function $(Ue,We){1&Ue&&(o.TgZ(0,"h3",3),o._uU(1,"imxplatform.announcement.edit.panels.occupancy.forecast"),o.qZA())}function ue(Ue,We){1&Ue&&(o.TgZ(0,"span",21),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&Ue&&(o.xp6(),o.Oqu(o.lcZ(2,1,"imxplatform.announcement.edit.panels.occupancy.today")))}function ge(Ue,We){if(1&Ue&&(o.TgZ(0,"span",21),o._uU(1),o.ALo(2,"date"),o.qZA()),2&Ue){const et=o.oxw().$implicit;o.xp6(),o.Oqu(o.xi3(2,1,et.get("measurementTime").value,"dd.MM.yyyy"))}}function Ke(Ue,We){if(1&Ue&&(o._UZ(0,"imx-base-occupancy-input",22),o.ALo(1,"async"),o.ALo(2,"async")),2&Ue){const et=o.oxw().$implicit,Et=o.oxw(2);o.Q6J("formControl",et.get("value"))("required",!0)("disableControl",!(o.lcZ(1,3,Et.formHandler.hasSavePermission())&&o.lcZ(2,5,Et.formHandler.hasEditPermission("forecastOccupancies.value"))))}}function at(Ue,We){1&Ue&&(o.ynx(0),o.TgZ(1,"span",12),o._uU(2,"imxplatform.announcement.edit.panels.occupancy.closed-text"),o.qZA(),o.BQk())}function Le(Ue,We){if(1&Ue&&o.YNc(0,at,3,0,"ng-container",8),2&Ue){const et=o.oxw().$implicit,Et=o.MAs(9),lt=o.oxw(2);o.Q6J("ngIf",!lt.isAddressbaseOpenOnDate(et))("ngIfElse",Et)}}function R(Ue,We){if(1&Ue&&o._UZ(0,"imx-base-occupancy-input",22),2&Ue){const et=o.oxw().$implicit,Et=o.oxw(2);o.Q6J("formControl",et.get("value"))("required",!1)("disableControl",Et.isTodayForecastDisabled(et))}}function Te(Ue,We){if(1&Ue&&(o.ynx(0),o.TgZ(1,"div",15),o.YNc(2,ue,3,3,"ng-template",null,16,o.W1O)(4,ge,3,4,"span",17)(5,Ke,3,7,"imx-base-occupancy-input",18)(6,Le,1,2,"ng-template",null,19,o.W1O)(8,R,1,3,"ng-template",null,20,o.W1O),o.qZA(),o.BQk()),2&Ue){const et=We.$implicit,Et=o.MAs(3),lt=o.MAs(7),Vt=o.oxw(2);o.xp6(4),o.Q6J("ngIf",!Vt.isForecastForToday(et.get("measurementTime").value))("ngIfElse",Et),o.xp6(),o.Q6J("ngIf",Vt.isAddressbaseOpenOnDate(et)&&!Vt.isForecastForToday(et.get("measurementTime").value))("ngIfElse",lt)}}function me(Ue,We){if(1&Ue&&(o.ynx(0),o.YNc(1,$,2,0,"h3",13)(2,Te,10,4,"ng-container",14),o.BQk()),2&Ue){const et=o.oxw();o.xp6(),o.Q6J("ngIf",et.occupanciesArray.length>0),o.xp6(),o.Q6J("ngForOf",et.occupanciesArray.controls)}}let Se=(()=>{class Ue{constructor(et,Et,lt,Vt){this.translateService=et,this.dataAccessService=Et,this.changeDetectorRef=lt,this.configurationProvider=Vt,this.destroy$=new s.xQ,this.openDates=[]}ngOnChanges(et){console.log("ngOnChanges"),this.occupanciesArray=this.formHandler.formGroup.get("forecastOccupancies"),this.lastOccupancyGroup=this.formHandler.formGroup.get("lastOccupancy"),this.lastOccupancyExists=Object.keys(this.lastOccupancyGroup.controls).length>0&&this.lastOccupancyGroup.get("measurementTime").value,this.actualOccupancyGroup=this.formHandler.formGroup.get("actualOccupancy"),0===Object.keys(this.actualOccupancyGroup.controls).length&&(this.actualOccupancyGroup=this.formHandler.addNewCollectionRow("actualOccupancy",!1),this.formHandler.formGroup.removeControl("actualOccupancy"),this.formHandler.formGroup.registerControl("actualOccupancy",this.actualOccupancyGroup)),this.actualOccupancyGroup.get("value").setValue(void 0),this.actualOccupancyGroup.get("measurementTime").setValue(void 0),this.isOpenToday$=this.dataAccessService.getOpenDates$(this.addressPoiId,[new Date]).pipe((0,l.U)(Et=>Et.includes((0,t.w5)(new Date)))),this.isOpenToday$.pipe((0,i.R)(this.destroy$)).subscribe(Et=>{Et&&(this.isWithinDialog||(0,n.od)(this.formHandler.formGroup.get("type").value))&&this.isActualOccupancyRequiredByConfig()?this.setOccupancyValidator(this.formHandler.formGroup.get("actualOccupancy.value"),!0):this.setOccupancyValidator(this.formHandler.formGroup.get("actualOccupancy.value"),!1)})}ngOnInit(){this.isWithinDialog||this.getOpenDates()}ngAfterViewInit(){this.isWithinDialog||this.formHandler.formGroup.get("addressPoiId").valueChanges.pipe((0,i.R)(this.destroy$)).subscribe(et=>{this.addressPoiId=et,this.getOpenDates()})}ngOnDestroy(){this.setOccupancyValidator(this.formHandler.formGroup.get("actualOccupancy.value"),!1),this.destroy$.next(),this.destroy$.complete()}isAddressbaseOpenOnDate(et){const Et=(0,t.w5)(et.value.measurementTime);return this.openDates.includes(Et)}isForecastForToday(et){const Et=(0,t.w5)(et),lt=new Date;return lt.setHours(0,0,0,0),Et===(0,t.w5)(lt)}getOpenDates(){if(this.addressPoiId&&this.formHandler.formGroup.get("forecastOccupancies")){const Et=this.formHandler.formGroup.get("forecastOccupancies").value.map(lt=>lt.measurementTime);Et.length>0?this.dataAccessService.getOpenDates$(this.addressPoiId,Et).subscribe(lt=>{this.openDates=lt}):this.openDates=[]}else this.openDates=[]}setOccupancyValidator(et,Et){et&&(Et?(console.log("set required true"),et.clearValidators(),et.setValidators([e.kI.min(0),e.kI.max(100),e.kI.required])):(console.log("set required false"),et.clearValidators()),et.updateValueAndValidity(),console.log("updated validity",et))}occupancyHasValue(et){return void 0!==et.get("value").value&&null!==et.get("value").value&&et.get("value").value.length>0}isTodayForecastDisabled(et){const Et=this.isLastOccupancyFromToday(),lt=this.actualOccupancyGroup?this.actualOccupancyGroup.get("value"):void 0;return Et||void 0!==lt&&void 0!==lt.value&&""!==lt.value}isLastOccupancyFromToday(){return this.lastOccupancyExists&&(0,t.w5)(this.lastOccupancyGroup.value.measurementTime)>=(0,t.w5)(new Date)}isActualOccupancyRequired(){const et=this.formHandler.formGroup.get("actualOccupancy.value");return et.errors&&et.errors.required}isActualOccupancyRequiredByConfig(){const et=this.configurationProvider.getBooleanFromSnapshot(t.x3.IMXPLATFORM_ANNOUNCEMENT_ACTUAL_OCCUPANCY_REQUIRED,!0);return console.log("isActualOccupancyRequiredByConfig",et),et}static#e=this.\u0275fac=function(Et){return new(Et||Ue)(o.Y36(x.sK),o.Y36(p.nq),o.Y36(o.sBO),o.Y36(t.Pc))};static#t=this.\u0275cmp=o.Xpm({type:Ue,selectors:[["imx-edit-occupancy"]],hostAttrs:[1,"imx-edit-occupancy"],inputs:{formHandler:"formHandler",isWithinDialog:"isWithinDialog",addressPoiId:"addressPoiId"},features:[o.TTD],decls:7,vars:3,consts:[[1,"form__content-row"],[1,"form__content-group"],[4,"ngIf"],["translate",""],["class","occ-row actual-occ",4,"ngIf"],[1,"previous-occ"],[3,"label","customModel"],[1,"occ-row","actual-occ"],[4,"ngIf","ngIfElse"],["closed",""],["translate","",1,"date-label"],[3,"formControl","required","errors","disableControl"],["translate","",1,"date-closed-label"],["translate","",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"occ-row"],["today",""],["class","date-label",4,"ngIf","ngIfElse"],[3,"formControl","required","disableControl",4,"ngIf","ngIfElse"],["forecastNotAllowed",""],["forecastToday",""],[1,"date-label"],[3,"formControl","required","disableControl"]],template:function(Et,lt){1&Et&&(o.TgZ(0,"div",0)(1,"div",1),o.YNc(2,Y,9,10,"ng-container",2),o.TgZ(3,"h3",3),o._uU(4,"imxplatform.announcement.edit.panels.occupancy.update-occupancy"),o.qZA(),o.YNc(5,ee,5,4,"div",4)(6,me,3,2,"ng-container",2),o.qZA()()),2&Et&&(o.xp6(2),o.Q6J("ngIf",lt.lastOccupancyExists),o.xp6(3),o.Q6J("ngIf",lt.actualOccupancyGroup.get("value")),o.xp6(),o.Q6J("ngIf",lt.occupanciesArray))},dependencies:[u.sg,u.O5,e.JJ,e.Q7,e.oH,x.Pi,ae,J.Q,u.Ov,u.uU,x.X$,q.E],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.previous-occ[_ngcontent-%COMP%]{display:flex}.previous-occ[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child{margin-right:15px}.actual-occ[_ngcontent-%COMP%]{margin-bottom:20px}.occ-row[_ngcontent-%COMP%]{display:flex;align-items:center}.occ-row[_ngcontent-%COMP%]   .date-label[_ngcontent-%COMP%]{min-width:70px}.occ-row[_ngcontent-%COMP%]   .date-closed-label[_ngcontent-%COMP%]{min-width:70px;min-height:30px;margin-top:10px}.occ-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:15px}.occ-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child{flex-grow:2}"]})}return Ue})()},5490:(gt,X,a)=>{"use strict";a.d(X,{Q:()=>u});var e=a(21473),n=a(49193),l=(a(1009),a(19212)),i=a(96814),t=a(28907),p=a(17301),c=a(71365);function o(m,b){if(1&m&&l._UZ(0,"imx-form-control",4),2&m){const I=l.oxw(2);l.Q6J("field",I.formHandler.formConfiguration.findFormFieldById("mediaLicense"))("control",I.formHandler.formGroup.get("mediaLicense"))("form",I.formHandler.formGroup)("formHandler",I.formHandler)("config",I.formHandler.formConfiguration)}}function x(m,b){if(1&m&&(l.TgZ(0,"div",1)(1,"div",2)(2,"h3"),l._uU(3),l.ALo(4,"translate"),l.qZA(),l.TgZ(5,"div",3),l._UZ(6,"imx-form-control",4),l.YNc(7,o,1,5,"imx-form-control",5),l.ALo(8,"async"),l.qZA()()()),2&m){const I=l.oxw();l.xp6(3),l.Oqu(l.lcZ(4,7,"imxplatform.common-entity.edit.panels.base-data.origin")),l.xp6(3),l.Q6J("field",I.formHandler.formConfiguration.findFormFieldById("author"))("control",I.formHandler.formGroup.get("author"))("form",I.formHandler.formGroup)("formHandler",I.formHandler)("config",I.formHandler.formConfiguration),l.xp6(),l.Q6J("ngIf",l.lcZ(8,9,I.mediaLicencesAvailable$))}}let u=(()=>{class m{constructor(I){this.entitiesMgr=I,this.mediaLicencesAvailable$=(0,n.of)(!1)}ngOnInit(){this.mediaLicencesAvailable$=this.entitiesMgr.isBaseEntityAvailable("MediaLicense")}static#e=this.\u0275fac=function(H){return new(H||m)(l.Y36(e.qB))};static#t=this.\u0275cmp=l.Xpm({type:m,selectors:[["imx-edit-origin"]],hostAttrs:[1,"imx-edit-origin"],inputs:{formHandler:"formHandler"},decls:1,vars:2,consts:[["class","form__content-row",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[1,"form__content-row"],[1,"form__content-group"],[1,"form__content-field-row","wrap-sm"],[3,"field","control","form","formHandler","config"],[3,"field","control","form","formHandler","config",4,"ngIf"]],template:function(H,O){1&H&&l.YNc(0,x,9,11,"div",0),2&H&&l.Q6J("hasFieldReadPermission","author")("hasFieldReadPermissionFormHandler",O.formHandler)},dependencies:[i.O5,t.A,p.j,i.Ov,c.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}"],changeDetection:0})}return m})()},36330:(gt,X,a)=>{"use strict";a.d(X,{r:()=>O});var e=a(15646),s=a(49193),l=a(75678),i=a(21473),p=(a(1009),a(59143)),c=a(41621),o=a(33946),x=a(19212),u=a(17700),m=a(71365),b=a(1931),I=a(17301);function H(P,G){if(1&P&&(x.TgZ(0,"div",1)(1,"div",2)(2,"h3",3),x._uU(3,"imxplatform.common-entity.edit.panels.base-data.productlines"),x.qZA(),x._UZ(4,"imx-tree-shuffle",4),x.qZA()()),2&P){const B=x.oxw();x.xp6(),x.Q6J("hidden",0===B.availableProductlines.length),x.xp6(3),x.Q6J("name","productlines-tree")("treeOptionProvider",B.availableProductlines)("nodeAssignValidatorFn",B.validateNodeAssignment.bind(B))("nodeRemovalValidatorFn",B.validateNodeRemoval.bind(B))("displayNodeFn",B.displayFnForProductlineNode)("sortNodesFn",B.sortFnForProductlineNode)("control",B.formHandler.formGroup.get("productlineIds"))("formHandler",B.formHandler)("field",B.formHandler.formConfiguration.findFormFieldById("productlineIds"))}}let O=(()=>{class P{constructor(B,ae,J,q){this.entitiesMgr=B,this.dialog=ae,this.userMessageService=J,this.translateService=q,this.availableProductlines=[]}ngOnInit(){this.loadProductlines()}loadProductlines(){this.entitiesMgr.getAllEntitiesOfType("Productline").subscribe(B=>{const ae=e(B.items).filter(J=>null==J.parent);ae.forEach(J=>this.filterProductlines(J)),this.availableProductlines=ae})}filterProductlines(B){B.children&&(B.children=B.children.filter(ae=>this.filterProductlineFn(ae)),B.children.forEach(ae=>this.filterProductlines(ae)))}displayFnForProductlineNode(B){return B?B.i18nName:void 0}sortFnForProductlineNode(B,ae,J){return(0,c.Qi)(B.i18nName,ae.i18nName,J)}validateNodeAssignment(B){return(0,s.of)(this.checkNodeShufflePermissions(B))}validateNodeRemoval(B){if(this.checkNodeShufflePermissions(B)){let ae;const J=B.some(j=>null!=j.metainfos&&j.metainfos.length>0),q=B.some(j=>null!=j.asPortalContext&&j.asPortalContext);return q&&J?ae="imxplatform.common-entity.edit.panels.base-data.dialog-on-shuffle-module.msg-portalcontext-and-metainfos":q?ae="imxplatform.common-entity.edit.panels.base-data.dialog-on-shuffle-module.msg-portalcontext":J&&(ae="imxplatform.common-entity.edit.panels.base-data.dialog-on-shuffle-module.msg-metainfos"),ae?this.dialog.open(l.$,{...o.D.FORM_MEDIUM,data:{title:this.translateService.instant("imxplatform.common-entity.edit.panels.base-data.dialog-on-shuffle-module.header"),text:ae,subtext:"imxplatform.common-entity.edit.panels.base-data.dialog-on-shuffle-module.msg-resume",iconClass:"icon-trash",translated:!0,confirmButtonKey:"imxplatform.common.yes"}}).afterClosed():(0,s.of)(!0)}return(0,s.of)(!1)}checkNodeShufflePermissions(B){const ae=new Set;B.forEach(q=>{ae.add(q);let j=q.parent;for(;j;)ae.add(j),j=j.parent});const J=this.formHandler.checkProductlineEditActionPermissions(Array.from(ae).map(q=>q.id));if(J.length>0){const q=J.map(j=>Array.from(ae).find(Y=>Y.id===j).i18nName.de).join(",");return this.userMessageService.showError(this.translateService.instant("imxplatform.component.edit-productlines.unpermitted-productline-change",{productlines:q})),!1}return!0}static#e=this.\u0275fac=function(ae){return new(ae||P)(x.Y36(i.qB),x.Y36(u.uw),x.Y36(p.Y),x.Y36(m.sK))};static#t=this.\u0275cmp=x.Xpm({type:P,selectors:[["imx-edit-productlines"]],hostAttrs:[1,"imx-edit-productlines"],inputs:{formHandler:"formHandler",filterProductlineFn:"filterProductlineFn"},decls:1,vars:2,consts:[["class","form__content-row",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[1,"form__content-row"],[1,"form__content-group",3,"hidden"],["translate",""],[3,"name","treeOptionProvider","nodeAssignValidatorFn","nodeRemovalValidatorFn","displayNodeFn","sortNodesFn","control","formHandler","field"]],template:function(ae,J){1&ae&&x.YNc(0,H,5,10,"div",0),2&ae&&x.Q6J("hasFieldReadPermission","productlineIds")("hasFieldReadPermissionFormHandler",J.formHandler)},dependencies:[m.Pi,b.D,I.j],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}h3[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return P})()},59437:(gt,X,a)=>{"use strict";a.d(X,{B:()=>m});var e=a(21473),s=(a(1009),a(19212)),l=a(96814),i=a(28907);function t(b,I){1&b&&s.GkF(0)}const p=()=>({$implicit:"contentScore"});function c(b,I){if(1&b&&(s.ynx(0),s.YNc(1,t,1,0,"ng-container",2),s.BQk()),2&b){s.oxw();const H=s.MAs(4);s.xp6(),s.Q6J("ngTemplateOutlet",H)("ngTemplateOutletContext",s.DdM(2,p))}}function o(b,I){1&b&&s.GkF(0)}function x(b,I){if(1&b&&s._UZ(0,"imx-form-control",4),2&b){const H=I.$implicit,O=s.oxw();s.Q6J("field",O.formHandler.formConfiguration.findFormFieldById(H))("control",O.formHandler.formGroup.get(H))("form",O.formHandler.formGroup)("formHandler",O.formHandler)("config",O.formHandler.formConfiguration)}}const u=()=>({$implicit:"relevanceScore"});let m=(()=>{class b{constructor(H){this.configurationProvider=H}showContentScore(){return this.configurationProvider.getBooleanFromSnapshot(e.x3.PLATFORM_CONTENT_SCORE_ENABLED)}static#e=this.\u0275fac=function(O){return new(O||b)(s.Y36(e.Pc))};static#t=this.\u0275cmp=s.Xpm({type:b,selectors:[["imx-edit-quality"]],hostAttrs:[1,"imx-edit-quality"],inputs:{formHandler:"formHandler"},decls:5,vars:4,consts:[[1,"quality-block"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["imxControl",""],[3,"field","control","form","formHandler","config"]],template:function(O,P){if(1&O&&(s.TgZ(0,"div",0),s.YNc(1,c,2,3,"ng-container",1)(2,o,1,0,"ng-container",2),s.qZA(),s.YNc(3,x,1,5,"ng-template",null,3,s.W1O)),2&O){const G=s.MAs(4);s.xp6(),s.Q6J("ngIf",P.showContentScore()),s.xp6(),s.Q6J("ngTemplateOutlet",G)("ngTemplateOutletContext",s.DdM(3,u))}},dependencies:[l.O5,l.tP,i.A],styles:[".quality-block[_ngcontent-%COMP%]   imx-form-control[_ngcontent-%COMP%]{width:50%!important}"]})}return b})()},93495:(gt,X,a)=>{"use strict";a.d(X,{k:()=>ae}),a(62192);var n=a(19212),s=a(96814),l=a(71365),i=a(28907),t=a(22201);function p(J,q){1&J&&n.GkF(0)}function c(J,q){1&J&&n.GkF(0)}function o(J,q){1&J&&n.GkF(0)}function x(J,q){1&J&&n.GkF(0)}function u(J,q){1&J&&n.GkF(0)}const m=()=>({$implicit:"permaLink"}),b=()=>({$implicit:"htmlHeadTitle"}),I=()=>({$implicit:"canonicalUrl"}),H=()=>({$implicit:"htmlHeadMetaDescription"}),O=()=>({$implicit:"searchKeywords"});function P(J,q){if(1&J&&(n.TgZ(0,"div",2)(1,"div",3)(2,"h3",4),n._uU(3,"imxplatform.common-entity.edit.panels.base-data.seo-info"),n.qZA(),n.TgZ(4,"div",5)(5,"div",6),n.YNc(6,p,1,0,"ng-container",7)(7,c,1,0,"ng-container",7),n.qZA(),n.TgZ(8,"div",6),n.YNc(9,o,1,0,"ng-container",7)(10,x,1,0,"ng-container",7),n.qZA()(),n.YNc(11,u,1,0,"ng-container",7),n.qZA()()),2&J){n.oxw();const j=n.MAs(2);n.xp6(6),n.Q6J("ngTemplateOutlet",j)("ngTemplateOutletContext",n.DdM(10,m)),n.xp6(),n.Q6J("ngTemplateOutlet",j)("ngTemplateOutletContext",n.DdM(11,b)),n.xp6(2),n.Q6J("ngTemplateOutlet",j)("ngTemplateOutletContext",n.DdM(12,I)),n.xp6(),n.Q6J("ngTemplateOutlet",j)("ngTemplateOutletContext",n.DdM(13,H)),n.xp6(),n.Q6J("ngTemplateOutlet",j)("ngTemplateOutletContext",n.DdM(14,O))}}function G(J,q){if(1&J&&n._UZ(0,"imx-form-control",8),2&J){const j=q.$implicit,Y=n.oxw();n.Q6J("field",Y.formHandler.formConfiguration.findFormFieldById(j))("control",Y.formHandler.formGroup.get(j))("form",Y.formHandler.formGroup)("formHandler",Y.formHandler)("config",Y.formHandler.formConfiguration)}}const B=()=>["permaLink","htmlHeadTitle","searchKeywords","htmlHeadMetaDescription","canonicalUrl"];let ae=(()=>{class J{static#e=this.\u0275fac=function(Y){return new(Y||J)};static#t=this.\u0275cmp=n.Xpm({type:J,selectors:[["imx-edit-seo"]],hostAttrs:[1,"imx-edit-seo"],inputs:{formHandler:"formHandler"},decls:3,vars:3,consts:[["class","form__content-row",4,"hasAnyFieldReadPermission","hasAnyFieldReadPermissionFormHandler"],["imxControl",""],[1,"form__content-row"],[1,"form__content-group"],["translate",""],[1,"form__content-field-row","wrap-sm"],[1,"form__content-field-column"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"field","control","form","formHandler","config"]],template:function(Y,K){1&Y&&n.YNc(0,P,12,15,"div",0)(1,G,1,5,"ng-template",null,1,n.W1O),2&Y&&n.Q6J("hasAnyFieldReadPermission",n.DdM(2,B))("hasAnyFieldReadPermissionFormHandler",K.formHandler)},dependencies:[s.tP,l.Pi,i.A,t.l],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}"],changeDetection:0})}return J})()},44069:(gt,X,a)=>{"use strict";a.d(X,{d:()=>ue});var e=a(49193),n=a(72079),s=a(19352),l=a(97734),i=a(21473),p=(a(1009),a(67276)),c=a(19212),o=a(96814),x=a(56223),u=a(25313),m=a(71365),b=a(28907),I=a(47378),H=a(22194);function O(ge,Ke){1&ge&&(c.TgZ(0,"p",8),c._uU(1,"imxplatform.common.no-records"),c.qZA())}function P(ge,Ke){1&ge&&c._UZ(0,"tr",19)}function G(ge,Ke){1&ge&&c._UZ(0,"tr",20)}function B(ge,Ke){if(1&ge&&(c.TgZ(0,"th",21),c._uU(1),c.qZA()),2&ge){const at=c.oxw(3);c.xp6(),c.Oqu(at.formHandler.getFormFieldLabel("socialMedia:provider"))}}function ae(ge,Ke){if(1&ge&&(c.TgZ(0,"td",22),c._UZ(1,"imx-form-control",23),c.qZA()),2&ge){const at=Ke.$implicit,Le=c.oxw(3);c.Q6J("formGroup",at),c.xp6(),c.Q6J("field",Le.formHandler.formConfiguration.findFormFieldById("socialMedia:provider"))("control",at.controls.provider)("form",Le.formHandler.formGroup.get("socialMedia"))("formHandler",Le.formHandler)("config",Le.formHandler.formConfiguration)}}function J(ge,Ke){if(1&ge&&(c.TgZ(0,"th",21),c._uU(1),c.qZA()),2&ge){const at=c.oxw(3);c.xp6(),c.Oqu(at.formHandler.getFormFieldLabel("socialMedia:identification"))}}function q(ge,Ke){if(1&ge&&(c.TgZ(0,"td",22),c._UZ(1,"imx-form-control",23),c.qZA()),2&ge){const at=Ke.$implicit,Le=c.oxw(3);c.Q6J("formGroup",at),c.xp6(),c.Q6J("field",Le.formHandler.formConfiguration.findFormFieldById("socialMedia:identification"))("control",at.controls.identification)("form",Le.formHandler.formGroup.get("socialMedia"))("formHandler",Le.formHandler)("config",Le.formHandler.formConfiguration)}}function j(ge,Ke){1&ge&&c._UZ(0,"th",24)}function Y(ge,Ke){if(1&ge){const at=c.EpF();c.TgZ(0,"a",27),c.NdJ("click",function(){c.CHM(at);const R=c.oxw().$implicit,Te=c.oxw(3);return c.KtG(Te.formHandler.removeLineFromCollection("socialMedia",Te.socialMediaDataSource.filteredData.indexOf(R)))}),c.qZA()}}function K(ge,Ke){if(1&ge&&(c.TgZ(0,"td",25),c.YNc(1,Y,1,0,"a",26),c.qZA()),2&ge){const at=Ke.$implicit,Le=c.oxw(3);c.Q6J("formGroup",at),c.xp6(),c.Q6J("hasFieldWritePermission","socialMedia")("hasFieldWritePermissionFormHandler",Le.formHandler)}}function ne(ge,Ke){if(1&ge&&(c.TgZ(0,"table",9),c.YNc(1,P,1,0,"tr",10)(2,G,1,0,"tr",11),c.ynx(3,12),c.YNc(4,B,2,1,"th",13)(5,ae,2,6,"td",14),c.BQk(),c.ynx(6,15),c.YNc(7,J,2,1,"th",13)(8,q,2,6,"td",14),c.BQk(),c.ynx(9,16),c.YNc(10,j,1,0,"th",17)(11,K,2,3,"td",18),c.BQk(),c.qZA()),2&ge){const at=c.oxw(2);c.Q6J("dataSource",at.socialMediaDataSource),c.xp6(),c.Q6J("matHeaderRowDef",at.socialMediaColumns),c.xp6(),c.Q6J("matRowDefColumns",at.socialMediaColumns)}}function ee(ge,Ke){if(1&ge&&c._UZ(0,"imx-form-control",28),2&ge){const at=c.oxw(2);c.Q6J("field",at.formHandler.formConfiguration.findFormFieldById("addSocialMediaField"))("control",at.formHandler.formGroup.get("addSocialMediaField"))("form",at.formHandler.formGroup)("formHandler",at.formHandler)("config",at.formHandler.formConfiguration)}}function $(ge,Ke){if(1&ge&&(c.TgZ(0,"div",1)(1,"div",2)(2,"h3",3),c._uU(3,"imxplatform.common-entity.edit.panels.social-media.title"),c.qZA(),c.YNc(4,O,2,0,"ng-template",null,4,c.W1O),c.TgZ(6,"div",5),c.YNc(7,ne,12,3,"table",6),c.qZA(),c.YNc(8,ee,1,5,"imx-form-control",7),c.qZA()()),2&ge){const at=c.MAs(5),Le=c.oxw();c.xp6(7),c.Q6J("ngIf",Le.socialMediaDataSource&&Le.socialMediaDataSource.data.length>0)("ngIfElse",at),c.xp6(),c.Q6J("hasFieldWritePermission","socialMedia")("hasFieldWritePermissionFormHandler",Le.formHandler)}}let ue=(()=>{class ge{constructor(at){this.entitiesMgr=at,this.socialMediaProvidersAvailable=(0,e.of)(!1),this.destroy$=new n.xQ}ngOnInit(){this.socialMediaProvidersAvailable=this.entitiesMgr.isBaseEntityAvailable("SocialMediaProvider"),this.formHandler.formGroup.controls.addSocialMediaField&&this.formHandler.formGroup.controls.addSocialMediaField.valueChanges.pipe((0,s.R)(this.destroy$),(0,l.h)(at=>at!==p.F)).subscribe(at=>{this.formHandler.addNewCollectionRow("socialMedia").controls.provider.setValue(at),this.formHandler.formGroup.controls.addSocialMediaField.setValue(p.F),this.formHandler.formGroup.controls.addSocialMediaField.markAsPristine()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(Le){return new(Le||ge)(c.Y36(i.qB))};static#t=this.\u0275cmp=c.Xpm({type:ge,selectors:[["imx-edit-social-media"]],hostAttrs:[1,"imx-edit-social-media"],inputs:{formHandler:"formHandler",socialMediaDataSource:"socialMediaDataSource",socialMediaColumns:"socialMediaColumns"},decls:3,vars:5,consts:[["class","form__content-row",4,"ngIf"],[1,"form__content-row"],[1,"form__content-group"],["translate",""],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],["class","imx-button-select no-margin",3,"field","control","form","formHandler","config",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","provider"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"formGroup",4,"matCellDef"],["matColumnDef","identification"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell",""],["mat-cell","",3,"formGroup"],[3,"field","control","form","formHandler","config"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],["class","icon icon-trash imx-icon-middle imx-icon-clickable",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"],[1,"imx-button-select","no-margin",3,"field","control","form","formHandler","config"]],template:function(Le,R){1&Le&&(c.YNc(0,$,9,4,"div",0),c.ALo(1,"async"),c.ALo(2,"async")),2&Le&&c.Q6J("ngIf",c.lcZ(1,1,R.formHandler.hasReadPermission("socialMedia"))&&c.lcZ(2,3,R.socialMediaProvidersAvailable))},dependencies:[o.O5,x.JL,u.BZ,u.fO,u.as,u.w1,u.Dz,u.nj,u.ge,u.ev,u.XQ,u.Gk,x.sg,m.Pi,b.A,I.X,H.F,o.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}"]})}return ge})()},6413:(gt,X,a)=>{"use strict";a.d(X,{O:()=>Te});var e=a(72079),n=a(19352),s=a(30144),l=a(21473),t=(a(62192),a(38996)),p=a(19212),c=a(96814),o=a(56223),x=a(25313),u=a(71365),m=a(97564),b=a(59626),I=a(47378),H=a(22194),O=a(1614);function P(me,Se){1&me&&(p.TgZ(0,"p",8),p._uU(1,"imxplatform.common.no-records"),p.qZA())}function G(me,Se){1&me&&p._UZ(0,"tr",23)}function B(me,Se){1&me&&p._UZ(0,"tr",24)}function ae(me,Se){1&me&&(p.TgZ(0,"th",25),p._uU(1,"ID"),p.qZA())}function J(me,Se){if(1&me&&(p.TgZ(0,"td",26)(1,"span"),p._uU(2),p.qZA()()),2&me){const Ue=Se.$implicit;p.xp6(2),p.Oqu(Ue.controls.rowEntity.value.id)}}function q(me,Se){1&me&&(p.TgZ(0,"th",27),p._uU(1,"Name"),p.qZA())}function j(me,Se){if(1&me&&(p.TgZ(0,"td",28)(1,"span"),p._uU(2),p.qZA()()),2&me){const Ue=Se.$implicit;p.xp6(2),p.Oqu(Ue.controls.rowEntity.value.name)}}function Y(me,Se){1&me&&(p.TgZ(0,"th",27),p._uU(1,"Titel"),p.qZA())}function K(me,Se){if(1&me&&(p.TgZ(0,"td",28)(1,"span"),p._uU(2),p.ALo(3,"readI18n"),p.qZA()()),2&me){const Ue=Se.$implicit;p.xp6(2),p.Oqu(p.lcZ(3,1,Ue.controls.rowEntity.value.title))}}function ne(me,Se){1&me&&(p.TgZ(0,"th",27),p._uU(1,"Auslieferungskan\xe4le"),p.qZA())}function ee(me,Se){if(1&me&&(p.TgZ(0,"td",28)(1,"span"),p._uU(2),p.qZA()()),2&me){const Ue=Se.$implicit,We=p.oxw(3);p.xp6(2),p.Oqu(We.extractDeliveryChannels(Ue.controls.rowEntity.value))}}function $(me,Se){1&me&&p._UZ(0,"th",29)}function ue(me,Se){if(1&me){const Ue=p.EpF();p.TgZ(0,"a",32),p.NdJ("click",function(){p.CHM(Ue);const et=p.oxw().$implicit,Et=p.oxw(3);return p.KtG(Et.formHandler.removeLineFromCollection("tags",Et.tagCollectionDataSource.filteredData.indexOf(et)))}),p.qZA()}}function ge(me,Se){if(1&me&&(p.TgZ(0,"td",30),p.YNc(1,ue,1,0,"a",31),p.qZA()),2&me){const Ue=Se.$implicit,We=p.oxw(3);p.Q6J("formGroup",Ue),p.xp6(),p.Q6J("hasFieldWritePermission","tags")("hasFieldWritePermissionFormHandler",We.formHandler)}}function Ke(me,Se){if(1&me&&(p.TgZ(0,"table",9),p.YNc(1,G,1,0,"tr",10)(2,B,1,0,"tr",11),p.ynx(3,12),p.YNc(4,ae,2,0,"th",13)(5,J,3,1,"td",14),p.BQk(),p.ynx(6,15),p.YNc(7,q,2,0,"th",16)(8,j,3,1,"td",17),p.BQk(),p.ynx(9,18),p.YNc(10,Y,2,0,"th",16)(11,K,4,3,"td",17),p.BQk(),p.ynx(12,19),p.YNc(13,ne,2,0,"th",16)(14,ee,3,1,"td",17),p.BQk(),p.ynx(15,20),p.YNc(16,$,1,0,"th",21)(17,ge,2,3,"td",22),p.BQk(),p.qZA()),2&me){const Ue=p.oxw(2);p.Q6J("dataSource",Ue.tagCollectionDataSource),p.xp6(),p.Q6J("matHeaderRowDef",Ue.tagCollectionColumns),p.xp6(),p.Q6J("matRowDefColumns",Ue.tagCollectionColumns)}}const at=()=>({entityType:"Tag"});function Le(me,Se){if(1&me){const Ue=p.EpF();p.TgZ(0,"div",33)(1,"imx-base-autocomplete",34,35),p.NdJ("enterPressed",function(){p.CHM(Ue);const et=p.MAs(4);return p.KtG(et.focus())}),p.qZA(),p.TgZ(3,"button",36,37),p.NdJ("click",function(){p.CHM(Ue);const et=p.MAs(2);return p.oxw(2).addTagRow(et.getSelectedId()),p.KtG(et.writeValue(void 0))}),p._uU(5),p.ALo(6,"translate"),p.qZA()()}if(2&me){const Ue=p.MAs(2),We=p.oxw(2);p.xp6(),p.Q6J("autocompleteService",We.baseEntityAutocompleteService)("autocompleteFilter",p.DdM(7,at))("label","imxplatform.common-entity.edit.panels.base-data.choose-tag"),p.xp6(2),p.Q6J("disabled",!Ue.getSelectedId()),p.xp6(2),p.hij(" ",p.lcZ(6,5,"imxplatform.common.add")," ")}}function R(me,Se){if(1&me&&(p.TgZ(0,"div",1)(1,"div",2)(2,"h3",3),p._uU(3,"imxplatform.common-entity.edit.panels.base-data.tags"),p.qZA(),p.YNc(4,P,2,0,"ng-template",null,4,p.W1O),p.TgZ(6,"div",5),p.YNc(7,Ke,18,3,"table",6),p.qZA(),p.YNc(8,Le,7,8,"div",7),p.qZA()()),2&me){const Ue=p.MAs(5),We=p.oxw();p.xp6(7),p.Q6J("ngIf",We.tagCollectionDataSource&&We.tagCollectionDataSource.data.length>0)("ngIfElse",Ue),p.xp6(),p.Q6J("hasFieldWritePermission","tags")("hasFieldWritePermissionFormHandler",We.formHandler)}}let Te=(()=>{class me{constructor(Ue,We){this.entitiesMgr=Ue,this.baseEntityAutocompleteService=We,this.tagArrayFieldName="tags",this.hasTagPermissionStr=l.uo.F_TAG_MANAGEMENT_ALL.name,this.destroy$=new e.xQ}ngOnInit(){this.tagCollectionColumns=["tagId","name","title","deliveryChannels","removeColumn"]}extractDeliveryChannels(Ue){return Ue.deliveryChannels.map(We=>We.name).join(", ")}addTagRow(Ue){this.entitiesMgr.getEntityWithIdOfType("Tag",Ue).pipe((0,n.R)(this.destroy$)).subscribe(We=>{this.formHandler.addNewCollectionRow(this.tagArrayFieldName).controls[t.Qy].setValue(We)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(We){return new(We||me)(p.Y36(l.qB),p.Y36(s.x))};static#t=this.\u0275cmp=p.Xpm({type:me,selectors:[["imx-edit-tags"]],hostAttrs:[1,"imx-edit-tags"],inputs:{formHandler:"formHandler",tagCollectionDataSource:"tagCollectionDataSource",tagArrayFieldName:"tagArrayFieldName"},decls:1,vars:1,consts:[["class","form__content-row",4,"hasAnyPermission"],[1,"form__content-row"],[1,"form__content-group"],["translate",""],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],["class","form__content-field-row",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","tagId"],["mat-header-cell","","class","id-column",4,"matHeaderCellDef"],["mat-cell","","class","id-column",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","title"],["matColumnDef","deliveryChannels"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","",1,"id-column"],["mat-cell","",1,"id-column"],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],["class","icon icon-trash imx-icon-middle imx-icon-clickable",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"],[1,"form__content-field-row"],["name","addTag",1,"tag-autocomplete",3,"autocompleteService","autocompleteFilter","label","enterPressed"],["tagAutocompleteControl",""],[1,"imx-button","prio2","addButton",3,"disabled","click"],["addButton",""]],template:function(We,et){1&We&&p.YNc(0,R,9,4,"div",0),2&We&&p.Q6J("hasAnyPermission",et.hasTagPermissionStr)},dependencies:[c.O5,o.JL,x.BZ,x.fO,x.as,x.w1,x.Dz,x.nj,x.ge,x.ev,x.XQ,x.Gk,o.sg,u.Pi,m.h,b.R,I.X,H.F,u.X$,O.j],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}"],changeDetection:0})}return me})()},96585:(gt,X,a)=>{"use strict";a.d(X,{e:()=>i});var e=a(21473),n=a(23222),s=a(19212),l=a(17700);let i=(()=>{class t extends n.C{constructor(c,o){super(c,o),this.entitiesMgr=c,this.dialog=o}getModulePath(){return"metainfos:"+this.moduleKey}static#e=this.\u0275fac=function(o){return new(o||t)(s.Y36(e.qB),s.Y36(l.uw))};static#t=this.\u0275dir=s.lG2({type:t,inputs:{moduleDataFormGroup:"moduleDataFormGroup",moduleId:"moduleId",moduleKey:"moduleKey",moduleClassName:"moduleClassName"},features:[s.qOj]})}return t})()},14394:(gt,X,a)=>{"use strict";a.d(X,{D:()=>ln});var e=a(21473),n=a(96585),s=a(19212),l=a(17700),i=a(96814),t=a(25913),p=a(63989),c=a(25313),o=a(69862),x=a(72079),u=a(19352),m=a(56223),b=a(71365),I=a(82621),H=a(33946),O=a(28907),P=a(15646),B=(a(62192),a(98869)),ae=a(22819),J=a(97564),q=a(22194),j=a(1614);function Y(He,rt){1&He&&(s.TgZ(0,"p",10),s._uU(1,"imxplatform.common.no-records"),s.qZA())}function K(He,rt){1&He&&s._UZ(0,"tr",27)}function ne(He,rt){1&He&&s._UZ(0,"tr",28)}function ee(He,rt){1&He&&(s.TgZ(0,"th",29),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&He&&(s.xp6(),s.Oqu(s.lcZ(2,1,"entity.StoryContact.sortValue")))}function $(He,rt){if(1&He&&(s.TgZ(0,"td",30),s._UZ(1,"imx-form-control",31),s.qZA()),2&He){const $e=rt.$implicit,Ve=s.oxw(2);s.xp6(),s.Q6J("field",Ve.formHandler.formConfiguration.findFormFieldById("metainfos:modules_story_article:stories:storyContacts:sortValue"))("control",$e.controls.sortValue)("form",Ve.formRow.get("storyContacts"))("formHandler",Ve.formHandler)("config",Ve.formHandler.formConfiguration)}}function ue(He,rt){1&He&&(s.TgZ(0,"th",32),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&He&&(s.xp6(),s.Oqu(s.lcZ(2,1,"entity.StoryContact.id")))}function ge(He,rt){if(1&He&&(s.TgZ(0,"td",33)(1,"span"),s._uU(2),s.qZA()()),2&He){const $e=rt.$implicit;s.xp6(2),s.Oqu($e.controls.contactAddressPoi.value.id)}}function Ke(He,rt){1&He&&(s.TgZ(0,"th",34),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&He&&(s.xp6(),s.Oqu(s.lcZ(2,1,"entity.StoryContact.title")))}function at(He,rt){if(1&He&&(s.TgZ(0,"td",35)(1,"span"),s._uU(2),s.ALo(3,"readI18n"),s.qZA()()),2&He){const $e=rt.$implicit;s.xp6(2),s.Oqu(s.lcZ(3,1,$e.controls.contactAddressPoi.value.title))}}function Le(He,rt){1&He&&(s.TgZ(0,"th",34),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&He&&(s.xp6(),s.Oqu(s.lcZ(2,1,"entity.StoryContact.address")))}function R(He,rt){if(1&He&&(s.TgZ(0,"td",35)(1,"span"),s._uU(2),s.qZA()()),2&He){const $e=rt.$implicit;s.xp6(2),s.HOy(" ",null==$e.controls.contactAddressPoi.value.contact1||null==$e.controls.contactAddressPoi.value.contact1.address?null:$e.controls.contactAddressPoi.value.contact1.address.street," ",null==$e.controls.contactAddressPoi.value.contact1||null==$e.controls.contactAddressPoi.value.contact1.address?null:$e.controls.contactAddressPoi.value.contact1.address.streetNo,", ",null==$e.controls.contactAddressPoi.value.contact1||null==$e.controls.contactAddressPoi.value.contact1.address?null:$e.controls.contactAddressPoi.value.contact1.address.zipcode," ",null==$e.controls.contactAddressPoi.value.contact1||null==$e.controls.contactAddressPoi.value.contact1.address?null:$e.controls.contactAddressPoi.value.contact1.address.city," ")}}function Te(He,rt){1&He&&s._UZ(0,"th",36)}function me(He,rt){if(1&He){const $e=s.EpF();s.TgZ(0,"td",37)(1,"a",38),s.NdJ("click",function(){const tt=s.CHM($e).$implicit,ht=s.oxw(2);return s.KtG(ht.formHandler.removeLineFromCollection("storyContacts",ht.storyContactsCollectionDataSource.filteredData.indexOf(tt),ht.formRow))}),s.qZA()()}2&He&&s.Q6J("formGroup",rt.$implicit)}function Se(He,rt){if(1&He&&(s.TgZ(0,"table",11),s.YNc(1,K,1,0,"tr",12)(2,ne,1,0,"tr",13),s.ynx(3,14),s.YNc(4,ee,3,3,"th",15)(5,$,2,5,"td",16),s.BQk(),s.ynx(6,17),s.YNc(7,ue,3,3,"th",18)(8,ge,3,1,"td",19),s.BQk(),s.ynx(9,20),s.YNc(10,Ke,3,3,"th",21)(11,at,4,3,"td",22),s.BQk(),s.ynx(12,23),s.YNc(13,Le,3,3,"th",21)(14,R,3,4,"td",22),s.BQk(),s.ynx(15,24),s.YNc(16,Te,1,0,"th",25)(17,me,2,1,"td",26),s.BQk(),s.qZA()),2&He){const $e=s.oxw();s.Q6J("dataSource",$e.storyContactsCollectionDataSource),s.xp6(),s.Q6J("matHeaderRowDef",$e.storyContactsCollectionColumns),s.xp6(),s.Q6J("matRowDefColumns",$e.storyContactsCollectionColumns)}}let Ue=(()=>{class He{constructor($e,Ve,Ce,tt){this.addressPoiContactAutocompleteService=$e,this.imxPlatformDataAccessService=Ve,this.entitiesMgr=Ce,this.changeDetectorRef=tt,this.destroy$=new x.xQ}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngOnInit(){this.formRow.get("storyContacts")&&this._prepareTourJourneyContactsTable()}prepareTable($e,Ve){if(!$e)throw new Error("cannot prepareTable for undefined formArray");const Ce=new c.by($e.controls);return Ve&&$e.valueChanges.pipe((0,u.R)(this.destroy$)).subscribe(tt=>Ve(new c.by($e.controls))),Ce}_prepareTourJourneyContactsTable(){this._createTourJourneyContactsCollectionDataSource(),this._createTourJourneyContactsCollectionColumns()}_createTourJourneyContactsCollectionDataSource(){this.storyContactsCollectionDataSource=this.prepareTable(this.formRow.get("storyContacts"),$e=>this.storyContactsCollectionDataSource=$e)}_createTourJourneyContactsCollectionColumns(){this.storyContactsCollectionColumns=["sortValue","title","address","removeColumn"]}addContactAddressLine($e){this.imxPlatformDataAccessService.getAddressPoiById($e).subscribe(Ve=>{const Ce=this.formHandler.addNewCollectionRow("metainfos:modules_story_article:stories:storyContacts",!0,this.formHandler.getFormArrayControlOfFormGroup(this.formRow,"storyContacts")),tt={id:Ve.id,title:P(Ve.title),contact1:P(Ve.contact1)};Ce.controls.contactAddressPoi.setValue(tt),this.changeDetectorRef.markForCheck()})}static#e=this.\u0275fac=function(Ve){return new(Ve||He)(s.Y36(B.U),s.Y36(ae.nq),s.Y36(e.qB),s.Y36(s.sBO))};static#t=this.\u0275cmp=s.Xpm({type:He,selectors:[["imx-edit-story-contacts"]],inputs:{formHandler:"formHandler",formRow:"formRow"},decls:14,vars:8,consts:[[1,"form__content-row"],[1,"form__content-group"],["translate",""],[1,"form__content-field-row"],["name","addContactAddressPoi",1,"contact-addresspoi-autocomplete",3,"autocompleteService","label"],["contactAddressPoiAutocompleteControl",""],[1,"imx-button","prio2",3,"disabled","click"],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","sortValue"],["mat-header-cell","","class","tiny-column",4,"matHeaderCellDef"],["mat-cell","","class","tiny-column",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","class","id-column",4,"matHeaderCellDef"],["mat-cell","","class","id-column",4,"matCellDef"],["matColumnDef","title"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","address"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","",1,"tiny-column"],["mat-cell","",1,"tiny-column"],[3,"field","control","form","formHandler","config"],["mat-header-cell","",1,"id-column"],["mat-cell","",1,"id-column"],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"]],template:function(Ve,Ce){if(1&Ve){const tt=s.EpF();s.TgZ(0,"div",0)(1,"div",1)(2,"h3",2),s._uU(3,"imxtools.addressbase.edit.panels.base-data.contact-addressbases"),s.qZA(),s.TgZ(4,"div",3),s._UZ(5,"imx-base-autocomplete",4,5),s.TgZ(7,"button",6),s.NdJ("click",function(){s.CHM(tt);const Qt=s.MAs(6);return Ce.addContactAddressLine(Qt.getSelectedId()),s.KtG(Qt.writeValue(void 0))}),s._uU(8),s.ALo(9,"translate"),s.qZA()(),s.YNc(10,Y,2,0,"ng-template",null,7,s.W1O),s.TgZ(12,"div",8),s.YNc(13,Se,18,3,"table",9),s.qZA()()()}if(2&Ve){const tt=s.MAs(6),ht=s.MAs(11);s.xp6(5),s.Q6J("autocompleteService",Ce.addressPoiContactAutocompleteService)("label","imxtools.addressbase.edit.panels.base-data.choose-contact-addressbases"),s.xp6(2),s.Q6J("disabled",!tt.getSelectedId()),s.xp6(),s.hij(" ",s.lcZ(9,6,"imxplatform.common.add")," "),s.xp6(5),s.Q6J("ngIf",Ce.storyContactsCollectionDataSource&&Ce.storyContactsCollectionDataSource.data.length>0)("ngIfElse",ht)}},dependencies:[i.O5,m.JL,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,m.sg,b.Pi,J.h,O.A,q.F,b.X$,j.j],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.tiny-column[_ngcontent-%COMP%]{width:10%}"]})}return He})();function We(He,rt){1&He&&s.GkF(0)}function et(He,rt){1&He&&s.GkF(0)}function Et(He,rt){1&He&&s.GkF(0)}function lt(He,rt){1&He&&(s.TgZ(0,"p",15),s._uU(1,"imxplatform.common.no-records"),s.qZA())}function Vt(He,rt){1&He&&s._UZ(0,"tr",30)}function r(He,rt){1&He&&s._UZ(0,"tr",31)}function Z(He,rt){1&He&&(s.TgZ(0,"th",32),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&He&&(s.xp6(),s.Oqu(s.lcZ(2,1,"entity.StoryImage.preview")))}function Pt(He,rt){if(1&He&&(s.TgZ(0,"td",33)(1,"div",34),s._UZ(2,"img",35),s.qZA()()),2&He){const $e=rt.$implicit;s.xp6(2),s.Q6J("src",$e.value.deeplink,s.LSH)}}function Oe(He,rt){1&He&&(s.TgZ(0,"th",32),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&He&&(s.xp6(),s.Oqu(s.lcZ(2,1,"entity.StoryImage.sortValue")))}function ye(He,rt){if(1&He&&(s.TgZ(0,"td",33),s._UZ(1,"imx-form-control",36),s.qZA()),2&He){const $e=rt.$implicit,Ve=s.oxw(2);s.xp6(),s.Q6J("field",Ve.data.formHandler.formConfiguration.findFormFieldById(Ve.data.modulePath+":stories:storyImages:sortValue"))("control",$e.controls.sortValue)("form",Ve.data.formRow.get("storyImages"))("formHandler",Ve.data.formHandler)("config",Ve.data.formHandler.formConfiguration)}}function ve(He,rt){1&He&&(s.TgZ(0,"th",32),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&He&&(s.xp6(),s.Oqu(s.lcZ(2,1,"entity.StoryImage.title")))}function ft(He,rt){if(1&He&&(s.TgZ(0,"td",33),s._UZ(1,"imx-form-control",36),s.qZA()),2&He){const $e=rt.$implicit,Ve=s.oxw(2);s.xp6(),s.Q6J("field",Ve.data.formHandler.formConfiguration.findFormFieldById(Ve.data.modulePath+":stories:storyImages:title"))("control",$e.controls.title)("form",Ve.data.formRow.get("storyImages"))("formHandler",Ve.data.formHandler)("config",Ve.data.formHandler.formConfiguration)}}function Dt(He,rt){1&He&&(s.TgZ(0,"th",37),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&He&&(s.xp6(),s.Oqu(s.lcZ(2,1,"entity.StoryImage.fileName")))}function Rn(He,rt){if(1&He&&(s.TgZ(0,"td",38)(1,"span"),s._uU(2),s.qZA()()),2&He){const $e=rt.$implicit;s.xp6(2),s.Oqu($e.value.fileName)}}function ti(He,rt){1&He&&s._UZ(0,"th",39)}function Xt(He,rt){if(1&He){const $e=s.EpF();s.TgZ(0,"td",40)(1,"a",41),s.NdJ("click",function(){const tt=s.CHM($e).$implicit,ht=s.oxw(2);return s.KtG(ht.data.formHandler.removeLineFromCollection("storyImages",ht.storyImageCollectionDataSource.filteredData.indexOf(tt),ht.data.formRow))}),s.qZA()()}2&He&&s.Q6J("formGroup",rt.$implicit)}function Je(He,rt){if(1&He&&(s.TgZ(0,"table",16),s.YNc(1,Vt,1,0,"tr",17)(2,r,1,0,"tr",18),s.ynx(3,19),s.YNc(4,Z,3,3,"th",20)(5,Pt,3,1,"td",21),s.BQk(),s.ynx(6,22),s.YNc(7,Oe,3,3,"th",20)(8,ye,2,5,"td",21),s.BQk(),s.ynx(9,23),s.YNc(10,ve,3,3,"th",20)(11,ft,2,5,"td",21),s.BQk(),s.ynx(12,24),s.YNc(13,Dt,3,3,"th",25)(14,Rn,3,1,"td",26),s.BQk(),s.ynx(15,27),s.YNc(16,ti,1,0,"th",28)(17,Xt,2,1,"td",29),s.BQk(),s.qZA()),2&He){const $e=s.oxw();s.Q6J("dataSource",$e.storyImageCollectionDataSource),s.xp6(),s.Q6J("matHeaderRowDef",$e.storyImageCollectionColumns),s.xp6(),s.Q6J("matRowDefColumns",$e.storyImageCollectionColumns)}}function dt(He,rt){if(1&He&&s._UZ(0,"imx-form-control",36),2&He){const $e=rt.$implicit,Ve=s.oxw();s.Q6J("field",Ve.data.arrayField.getChildField($e))("control",Ve.data.formRow.get($e))("form",Ve.data.formRow)("formHandler",Ve.data.formHandler)("config",Ve.data.formHandler.formConfiguration)}}const Ie=()=>({$implicit:"sortValue"}),ot=()=>({$implicit:"title"}),ct=()=>({$implicit:"generalDescription"});let tn=(()=>{class He{constructor($e){this.data=$e,this.destroy$=new x.xQ}ngOnInit(){this.data.formRow.get("storyImages")&&this._prepareStoryImagesTable()}_prepareStoryImagesTable(){this._createStoryImagesCollectionDataSource(),this._createStoryImagesCollectionColumns()}_createStoryImagesCollectionDataSource(){this.storyImageCollectionDataSource=this.prepareTable(this.data.formRow.get("storyImages"),$e=>this.storyImageCollectionDataSource=$e)}_createStoryImagesCollectionColumns(){this.storyImageCollectionColumns=["preview","sortValue","title","fileName","removeColumn"]}prepareTable($e,Ve){if(!$e)throw new Error("cannot prepareTable for undefined formArray");const Ce=new c.by($e.controls);return Ve&&$e.valueChanges.pipe((0,u.R)(this.destroy$)).subscribe(tt=>Ve(new c.by($e.controls))),Ce}uploadComplete($e,Ve){if($e&&!($e instanceof o.UA)&&!$e[0].exception&&this.data.formRow){const Ce=this.data.formHandler.addNewCollectionRow(this.data.modulePath+":stories:storyImages",!0,this.data.formHandler.getFormArrayControlOfFormGroup(this.data.formRow,Ve));Ce.get("fileName").setValue($e[0].processResult.fileName),Ce.get("deeplink").setValue($e[0].processResult.fileUrl)}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(Ve){return new(Ve||He)(s.Y36(l.WI))};static#t=this.\u0275cmp=s.Xpm({type:He,selectors:[["ng-component"]],decls:21,vars:23,consts:[["icon","icon-pencil--squares","dialogType","form",3,"heading","submitButtonDisabled"],["id","stories-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[1,"form__content-field-row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"formHandler","formRow"],[1,"form__content-row"],[1,"form__content-group"],[1,"story-image-upload-wrapper"],[3,"type","headerText","allowedFileTypes","allowMultipleFiles","autoUpload","uploadComplete"],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],["imxFormControl",""],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","preview"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","sortValue"],["matColumnDef","title"],["matColumnDef","fileName"],["mat-header-cell","","class","txt-ellipsis",4,"matHeaderCellDef"],["mat-cell","","class","txt-ellipsis",4,"matCellDef"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell",""],["mat-cell",""],[1,"drop-zone-preview-image"],["width","100px",3,"src"],[3,"field","control","form","formHandler","config"],["mat-header-cell","",1,"txt-ellipsis"],["mat-cell","",1,"txt-ellipsis"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"]],template:function(Ve,Ce){if(1&Ve&&(s.TgZ(0,"imx-dialog",0),s.ALo(1,"async"),s.TgZ(2,"form",1)(3,"div",2)(4,"div",3)(5,"div",4),s.YNc(6,We,1,0,"ng-container",5)(7,et,1,0,"ng-container",5),s.qZA(),s.TgZ(8,"div",4),s.YNc(9,Et,1,0,"ng-container",5),s.qZA(),s._UZ(10,"imx-edit-story-contacts",6),s.TgZ(11,"div",7)(12,"div",8)(13,"div",9)(14,"imx-base-upload",10),s.NdJ("uploadComplete",function(ht){return Ce.uploadComplete(ht,"storyImages")}),s.qZA()(),s.YNc(15,lt,2,0,"ng-template",null,11,s.W1O),s.TgZ(17,"div",12),s.YNc(18,Je,18,3,"table",13),s.qZA()()()()()()(),s.YNc(19,dt,1,5,"ng-template",null,14,s.W1O)),2&Ve){const tt=s.MAs(16),ht=s.MAs(20);s.Q6J("heading",Ce.data.title)("submitButtonDisabled",Ce.data.formRow.invalid||Ce.data.formRow.pristine||!s.lcZ(1,18,Ce.data.formHandler.hasSavePermission())),s.xp6(2),s.Q6J("formGroup",Ce.data.formHandler.formGroup),s.xp6(4),s.Q6J("ngTemplateOutlet",ht)("ngTemplateOutletContext",s.DdM(20,Ie)),s.xp6(),s.Q6J("ngTemplateOutlet",ht)("ngTemplateOutletContext",s.DdM(21,ot)),s.xp6(2),s.Q6J("ngTemplateOutlet",ht)("ngTemplateOutletContext",s.DdM(22,ct)),s.xp6(),s.Q6J("formHandler",Ce.data.formHandler)("formRow",Ce.data.formRow),s.xp6(4),s.Q6J("type","storyImageUpload")("headerText","imxplatform.article.metainfo.modules_story_article.edit-story-image")("allowedFileTypes",".jpg,.png,.jpeg")("allowMultipleFiles",!1)("autoUpload",!0),s.xp6(4),s.Q6J("ngIf",Ce.storyImageCollectionDataSource&&Ce.storyImageCollectionDataSource.data.length>0)("ngIfElse",tt)}},dependencies:[i.O5,i.tP,m._Y,m.JL,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,m.sg,b.Pi,I.B,H.a,O.A,Ue,q.F,i.Ov,b.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.story-image-upload-wrapper[_ngcontent-%COMP%]{display:flex}"]})}return He})();var yi=a(74961),ni=a(6128),sn=a(36681),bn=a(44365);function vt(He,rt){1&He&&(s.TgZ(0,"p",6),s._uU(1,"imxplatform.common.no-records"),s.qZA())}function nn(He,rt){1&He&&s._UZ(0,"tr",19)}function rn(He,rt){if(1&He){const $e=s.EpF();s.TgZ(0,"tr",20),s.NdJ("click",function(){const tt=s.CHM($e).$implicit,ht=s.oxw(2);return s.KtG(ht.editStory(tt))}),s.qZA()}}function ii(He,rt){1&He&&(s.TgZ(0,"th",21),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&He&&(s.xp6(),s.Oqu(s.lcZ(2,1,"entity.Story.sortValue")))}function Oo(He,rt){if(1&He&&(s.TgZ(0,"td",22),s._uU(1),s.qZA()),2&He){const $e=rt.$implicit;s.xp6(),s.hij(" ",$e.controls.sortValue.value," ")}}function no(He,rt){1&He&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&He&&(s.xp6(),s.Oqu(s.lcZ(2,1,"entity.Story.title")))}function Li(He,rt){if(1&He&&(s.TgZ(0,"td",24),s._uU(1),s.ALo(2,"readI18n"),s.qZA()),2&He){const $e=rt.$implicit,Ve=s.oxw(2);s.xp6(),s.hij(" ",s.xi3(2,1,$e.controls.title.value,Ve.formEditLanguage.name)," ")}}function ji(He,rt){1&He&&s._UZ(0,"th",25)}function Ii(He,rt){if(1&He){const $e=s.EpF();s.TgZ(0,"imx-action-menu-item",29),s.NdJ("click",function(){s.CHM($e);const Ce=s.oxw().$implicit,tt=s.oxw(2);return s.KtG(tt.formHandler.removeLineFromCollection("stories",tt.storyCollectionDataSource.filteredData.indexOf(Ce),tt.moduleDataFormGroup))}),s._uU(1," imxplatform.common-entity.list.remove "),s.qZA()}2&He&&s.Q6J("icon","icon-trash")}function _i(He,rt){if(1&He){const $e=s.EpF();s.TgZ(0,"td",26)(1,"imx-dropup-button")(2,"imx-action-menu")(3,"imx-action-menu-item",27),s.NdJ("click",function(){const tt=s.CHM($e).$implicit,ht=s.oxw(2);return s.KtG(ht.editStory(tt))}),s._uU(4," imxplatform.common-entity.list.details "),s.qZA(),s.YNc(5,Ii,2,1,"imx-action-menu-item",28),s.qZA()()()}if(2&He){const $e=rt.$implicit,Ve=s.oxw(2);s.Q6J("formGroup",$e),s.xp6(3),s.Q6J("icon","icon-magnifier"),s.xp6(2),s.Q6J("hasSavePermission",Ve.formHandler)}}function En(He,rt){if(1&He&&(s.TgZ(0,"table",7),s.YNc(1,nn,1,0,"tr",8)(2,rn,1,0,"tr",9),s.ynx(3,10),s.YNc(4,ii,3,3,"th",11)(5,Oo,2,1,"td",12),s.BQk(),s.ynx(6,13),s.YNc(7,no,3,3,"th",14)(8,Li,3,4,"td",15),s.BQk(),s.ynx(9,16),s.YNc(10,ji,1,0,"th",17)(11,_i,6,3,"td",18),s.BQk(),s.qZA()),2&He){const $e=s.oxw();s.Q6J("dataSource",$e.storyCollectionDataSource),s.xp6(),s.Q6J("matHeaderRowDef",$e.storiesCollectionColumns),s.xp6(),s.Q6J("matRowDefColumns",$e.storiesCollectionColumns)}}let co=(()=>{class He extends n.e{constructor($e,Ve,Ce){super($e),this.entitiesMgr=$e,this.dialog=Ve,this.changeDetectorRef=Ce}ngOnInit(){this._loadStories()}_loadStories(){this.moduleDataFormGroup.get("stories")&&(this.storyCollectionDataSource=this.prepareTable(this.moduleDataFormGroup.get("stories"),$e=>this.storyCollectionDataSource=$e,($e,Ve)=>this.sortFnForStories($e.controls.sortValue.value,Ve.controls.sortValue.value)),this.storiesCollectionColumns=["sortValue","title","actionColumn"])}openStoryDialog($e){return this.dialog.open(tn,{minWidth:600,data:{title:"entity.Story.entityName",arrayField:this.formHandler.formConfiguration.findArrayFieldById(this.modulePath+":stories"),formRow:$e,formHandler:this.formHandler,moduleDataFormGroup:this.moduleDataFormGroup,modulePath:this.modulePath}})}editStory($e){if($e){const Ve=$e.value;this.openStoryDialog($e).afterClosed().subscribe(tt=>{tt?this.changeDetectorRef.markForCheck():$e.reset(Ve,{onlySelf:!0})})}}createStory(){const $e=this.formHandler.addNewCollectionRow(this.modulePath+":stories",!1);this.openStoryDialog($e).afterClosed().subscribe(Ce=>{Ce&&(this.moduleDataFormGroup.get("stories").push($e),this.moduleDataFormGroup.get("stories").markAsDirty(),this.storyCollectionDataSource=new c.by(this.moduleDataFormGroup.get("stories").controls),this.changeDetectorRef.markForCheck())})}sortFnForStories($e,Ve){if($e&&Ve){const Ce=$e.toString(),tt=Ve.toString();return Ce.localeCompare(tt)}return 0}static#e=this.\u0275fac=function(Ve){return new(Ve||He)(s.Y36(e.qB),s.Y36(l.uw),s.Y36(s.sBO))};static#t=this.\u0275cmp=s.Xpm({type:He,selectors:[["imx-story-form-panel"]],inputs:{modulePath:"modulePath"},features:[s.qOj],decls:11,vars:10,consts:[[1,"form__content-row"],[1,"form__content-group"],["noRecordStories",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[1,"imx-button","prio2",3,"disabled","click"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","clickable",3,"click",4,"matRowDef","matRowDefColumns"],["matColumnDef","sortValue"],["mat-header-cell","","class","tiny-column",4,"matHeaderCellDef"],["mat-cell","","class","tiny-column",4,"matCellDef"],["matColumnDef","title"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","txt-ellipsis",4,"matCellDef"],["matColumnDef","actionColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row","",1,"clickable",3,"click"],["mat-header-cell","",1,"tiny-column"],["mat-cell","",1,"tiny-column"],["mat-header-cell",""],["mat-cell","",1,"txt-ellipsis"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],[3,"icon","click"],["additionalStyle","delete",3,"icon","click",4,"hasSavePermission"],["additionalStyle","delete",3,"icon","click"]],template:function(Ve,Ce){if(1&Ve&&(s.TgZ(0,"div",0)(1,"div",1),s.YNc(2,vt,2,0,"ng-template",null,2,s.W1O),s.TgZ(4,"div",3),s.YNc(5,En,12,3,"table",4),s.qZA(),s.TgZ(6,"button",5),s.NdJ("click",function(){return Ce.createStory()}),s.ALo(7,"async"),s.ALo(8,"async"),s._uU(9),s.ALo(10,"translate"),s.qZA()()()),2&Ve){const tt=s.MAs(3);s.xp6(5),s.Q6J("ngIf",Ce.storyCollectionDataSource&&Ce.storyCollectionDataSource.data.length>0)("ngIfElse",tt),s.xp6(),s.Q6J("disabled",!s.lcZ(7,4,Ce.formHandler.hasSavePermission())||!s.lcZ(8,6,Ce.formHandler.hasSavePermission())),s.xp6(3),s.hij(" ",s.lcZ(10,8,"imxplatform.article.metainfo.modules_story_article.create-story")," ")}},dependencies:[i.O5,m.JL,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,m.sg,b.Pi,yi.p,ni.z,sn.t,bn.R,i.Ov,b.X$,j.j],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}h3[_ngcontent-%COMP%]{margin-bottom:10px}.id-column[_ngcontent-%COMP%]{width:60px}"]})}return He})();function yn(He,rt){if(1&He&&(s.TgZ(0,"imx-accordion-panel",1),s._UZ(1,"imx-story-form-panel",2),s.qZA()),2&He){const $e=s.oxw();s.xp6(),s.Q6J("formHandler",$e.formHandler)("modulePath",$e.modulePath)("moduleDataFormGroup",$e.moduleDataFormGroup)}}let ln=(()=>{class He extends n.e{constructor($e,Ve){super($e,Ve),this.entitiesMgr=$e,this.dialog=Ve,this.modulePath="metainfos:modules_story_article"}static#e=this.\u0275fac=function(Ve){return new(Ve||He)(s.Y36(e.qB),s.Y36(l.uw))};static#t=this.\u0275cmp=s.Xpm({type:He,selectors:[["imx-story-article-form-panel"]],features:[s.qOj],decls:3,vars:3,consts:[["title","imxplatform.article.metainfo.modules_story_article.stories",4,"ngIf"],["title","imxplatform.article.metainfo.modules_story_article.stories"],[3,"formHandler","modulePath","moduleDataFormGroup"]],template:function(Ve,Ce){1&Ve&&(s.TgZ(0,"imx-accordion"),s.YNc(1,yn,2,3,"imx-accordion-panel",0),s.ALo(2,"async"),s.qZA()),2&Ve&&(s.xp6(),s.Q6J("ngIf",s.lcZ(2,1,Ce.formHandler.hasReadPermission("StoryArticle:stories"))))},dependencies:[i.O5,t.Z,p.U,co,i.Ov],changeDetection:0})}return He})()},30342:(gt,X,a)=>{"use strict";a.d(X,{N:()=>t});var e=a(19212),n=a(21473),s=a(27556),i=(a(45315),a(59143));let t=(()=>{class p{constructor(o){this.userMessageService=o,this.submitEmitter=new e.vpe,this.invalid=new e.vpe,this.logger=(0,n.jl)("AbstractFormComponent",s.H.name)}submit(){if(this.logger.debug("Execute submit()"),this.formHandler.validateAllFormFields(this.formHandler.formGroup,"root"))if(this.doAdditionalValidation()){const x=this.formHandler.getBaseObjectCopyWithCurrentFormValues();this.beforeSubmit(x),this.submitEmitter.emit(x),this.formHandler.formGroup.markAsPristine(),this.formHandler.formGroup.markAsUntouched()}else this.invalid.emit(!0);else this.logger.debug("Submit not executed. Form values are invalid."),this.invalid.emit(!0),this.userMessageService.showError("imxplatform.common-entity.edit.invalid-form")}beforeSubmit(o){}doAdditionalValidation(){return this.formHandler.doAdditionalValidation()}static#e=this.\u0275fac=function(x){return new(x||p)(e.Y36(i.Y))};static#t=this.\u0275dir=e.lG2({type:p,inputs:{formHandler:"formHandler",record:"record"},outputs:{submitEmitter:"save",invalid:"invalid"}})}return p})()},20756:(gt,X,a)=>{"use strict";a.d(X,{M:()=>p,T:()=>c});var e=a(86825),n=a(19212),s=a(45125),l=a(19352),i=a(41621),t=a(51100);const p=[(0,e.X$)("ifEnterTrigger",[(0,e.eR)(":enter",[(0,e.oB)({maxHeight:0,overflow:"hidden"}),(0,e.jt)("2.25s ease-out",(0,e.oB)({maxHeight:"1000px"}))]),(0,e.eR)(":leave",[(0,e.jt)("2.25s ease-in",(0,e.oB)({maxHeight:0}))])]),(0,e.X$)("showHide",[(0,e.SB)("show",(0,e.oB)({opacity:"1",visibility:"visible"})),(0,e.SB)("hide",(0,e.oB)({opacity:"0",visibility:"hidden"})),(0,e.eR)("show => hide",[(0,e.jt)("0.25s ease-out")]),(0,e.eR)("hide => show",[(0,e.jt)("0.25s ease-in")])])];let c=(()=>{class o extends t.A{constructor(){super(...arguments),this.loaded$=new s.X(!1),this.isTranslationTooltipOpen=!1,this.i18nBlur=new n.vpe}ngOnInit(){super.ngOnInit(),this.formHandler&&this.formHandler.formLanguage.getEditLanguageAsObservable().pipe((0,l.R)(this.destroy$)).subscribe(u=>{this.editLanguage=u,this.control.get(this.editLanguage.name)&&this.loaded$.next(!0)}),this.hash=(0,i.Cp)()}toggleTranslationTooltip(){this.isTranslationTooltipOpen=!this.isTranslationTooltipOpen}static#e=this.\u0275fac=(()=>{let u;return function(b){return(u||(u=n.n5z(o)))(b||o)}})();static#t=this.\u0275dir=n.lG2({type:o,outputs:{i18nBlur:"i18nBlur"},features:[n.qOj]})}return o})()},18476:(gt,X,a)=>{"use strict";a.d(X,{r:()=>K});var e=a(19212),s=(a(62192),a(96814)),l=a(92596),i=a(71365),t=a(74961),p=a(36681),c=a(51793),o=a(44365);const x=["buttonDropdownContent"];function u(ne,ee){1&ne&&e._UZ(0,"i",21)}function m(ne,ee){1&ne&&e._UZ(0,"i",22)}function b(ne,ee){if(1&ne){const $=e.EpF();e.TgZ(0,"button",18),e.NdJ("click",function(){e.CHM($);const ge=e.oxw(2);return e.KtG(ge.toggle())}),e.YNc(1,u,1,0,"i",19)(2,m,1,0,"i",20),e.qZA()}if(2&ne){const $=e.oxw(2);e.Q6J("disabled",$.isSubmitting),e.xp6(),e.Q6J("ngIf",!$.isSaveMenuOpen&&!$.hideCloseBtn),e.xp6(),e.Q6J("ngIf",$.isSaveMenuOpen&&!$.hideCloseBtn)}}function I(ne,ee){1&ne&&(e.TgZ(0,"button",23),e._UZ(1,"i",24),e.qZA())}function H(ne,ee){if(1&ne){const $=e.EpF();e.TgZ(0,"button",16),e.NdJ("click",function(){e.CHM($);const ge=e.oxw(2);return e.KtG(ge.saveAndAction.emit())}),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()}if(2&ne){const $=e.oxw(2);e.Q6J("disabled",$.isSubmitting),e.xp6(),e.AsE(" ",e.lcZ(2,3,"imxplatform.common-entity.edit.save")," &",e.lcZ(3,5,$.genericActionLabel)," ")}}const O=ne=>({wo_close:ne});function P(ne,ee){if(1&ne){const $=e.EpF();e.TgZ(0,"div",9)(1,"button",10),e.NdJ("click",function(){e.CHM($);const ge=e.oxw();return e.KtG(ge.save.emit())}),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,b,3,3,"button",11),e.TgZ(5,"imx-dropup-button",12,13),e.YNc(7,I,2,0,"ng-template",14),e.TgZ(8,"imx-action-menu")(9,"div",15)(10,"button",16),e.NdJ("click",function(){e.CHM($);const ge=e.MAs(6);return e.oxw().save.emit(),e.KtG(ge.close())}),e._uU(11),e.ALo(12,"translate"),e.qZA(),e.YNc(13,H,4,7,"button",17),e.TgZ(14,"button",16),e.NdJ("click",function(){e.CHM($);const ge=e.MAs(6);return e.oxw().saveAndClose.emit(),e.KtG(ge.close())}),e._uU(15),e.ALo(16,"translate"),e.ALo(17,"translate"),e.qZA()()()()()}if(2&ne){const $=e.oxw();e.xp6(),e.Q6J("ngClass",e.VKq(18,O,$.hideCloseBtn))("disabled",$.isSubmitting),e.xp6(),e.Oqu(e.lcZ(3,10,"imxplatform.common-entity.edit.save")),e.xp6(2),e.Q6J("ngIf",!$.hideCloseBtn),e.xp6(6),e.Q6J("disabled",$.isSubmitting),e.xp6(),e.hij(" ",e.lcZ(12,12,"imxplatform.common-entity.edit.save")," "),e.xp6(2),e.Q6J("ngIf",$.genericActionLabel),e.xp6(),e.Q6J("disabled",$.isSubmitting),e.xp6(),e.AsE(" ",e.lcZ(16,14,"imxplatform.common-entity.edit.save")," & ",e.lcZ(17,16,"imxplatform.common-entity.edit.close")," ")}}function G(ne,ee){if(1&ne){const $=e.EpF();e.TgZ(0,"button",25),e.NdJ("click",function(){e.CHM($);const ge=e.oxw();return e.KtG(ge.close.emit())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&ne&&(e.xp6(),e.hij("",e.lcZ(2,1,"imxplatform.common-entity.edit.close")," "))}function B(ne,ee){if(1&ne){const $=e.EpF();e.TgZ(0,"button",26),e.NdJ("click",function(){e.CHM($);const ge=e.oxw();return e.KtG(ge.close.emit())}),e.ALo(1,"translate"),e._UZ(2,"i",27),e.qZA()}2&ne&&e.s9C("matTooltip",e.lcZ(1,1,"imxplatform.common-entity.edit.close"))}function ae(ne,ee){if(1&ne){const $=e.EpF();e.TgZ(0,"button",16),e.NdJ("click",function(){e.CHM($);const ge=e.oxw(2);return e.KtG(ge.saveAndAction.emit())}),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()}if(2&ne){const $=e.oxw(2);e.Q6J("disabled",$.isSubmitting),e.xp6(),e.AsE(" ",e.lcZ(2,3,"imxplatform.common-entity.edit.save")," & ",e.lcZ(3,5,$.genericActionLabel)," ")}}function J(ne,ee){if(1&ne){const $=e.EpF();e.TgZ(0,"button",16),e.NdJ("click",function(){e.CHM($);const ge=e.oxw(2);return e.KtG(ge.saveAndClose.emit())}),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()}if(2&ne){const $=e.oxw(2);e.Q6J("disabled",$.isSubmitting),e.xp6(),e.AsE(" ",e.lcZ(2,3,"imxplatform.common-entity.edit.save")," & ",e.lcZ(3,5,"imxplatform.common-entity.edit.close")," ")}}function q(ne,ee){if(1&ne&&(e.ynx(0),e.YNc(1,ae,4,7,"button",17)(2,J,4,7,"button",17),e.BQk()),2&ne){const $=e.oxw();e.xp6(),e.Q6J("ngIf",$.genericActionLabel),e.xp6(),e.Q6J("ngIf",!$.hideCloseBtn)}}function j(ne,ee){1&ne&&(e.TgZ(0,"div",28)(1,"span",29),e._uU(2,"imxplatform.common-entity.edit.blocked-by-action"),e.qZA()())}const Y=ne=>({open:ne});let K=(()=>{class ne{constructor(){this.isSubmitting=!1,this.hideCloseBtn=!1,this.save=new e.vpe,this.saveAndClose=new e.vpe,this.saveAndAction=new e.vpe,this.close=new e.vpe,this.isSaveMenuOpen=!1,this.isBlocked=!1}ngOnInit(){this.formHandler.isBlockedByAction().subscribe($=>this.isBlocked=$)}toggle(){if(this.isSaveMenuOpen=!this.isSaveMenuOpen,this.buttonDropdownContent&&this.isSaveMenuOpen){const $=this.buttonDropdownContent.nativeElement.getBoundingClientRect();window.innerHeight<$.y+$.height?(this.buttonDropdownContent.nativeElement.style.top="unset",this.buttonDropdownContent.nativeElement.style.bottom="50px"):(this.buttonDropdownContent.nativeElement.style.top="50px",this.buttonDropdownContent.nativeElement.style.bottom="unset")}else this.buttonDropdownContent.nativeElement.style.top="50px",this.buttonDropdownContent.nativeElement.style.bottom="unset"}static#e=this.\u0275fac=function(ue){return new(ue||ne)};static#t=this.\u0275cmp=e.Xpm({type:ne,selectors:[["imx-edit-page-button-bar"]],viewQuery:function(ue,ge){if(1&ue&&e.Gf(x,7,e.SBq),2&ue){let Ke;e.iGM(Ke=e.CRH())&&(ge.buttonDropdownContent=Ke.first)}},inputs:{formHandler:"formHandler",genericActionLabel:"genericActionLabel",isSubmitting:"isSubmitting",hideCloseBtn:"hideCloseBtn"},outputs:{save:"save",saveAndClose:"saveAndClose",saveAndAction:"saveAndAction",close:"close"},decls:9,vars:8,consts:[[1,"edit-page-button-bar"],[1,"button-bar"],["class","button-dropdown-wrapper",4,"hasSavePermission"],["class","imx-button default close imx-hide-md",3,"click",4,"ngIf"],["class","imx-button default close sm",3,"matTooltip","click",4,"ngIf"],[1,"button-dropdown-content","imx-hide-sm",3,"ngClass"],["buttonDropdownContent",""],[4,"hasSavePermission"],["class","blocked-text",4,"ngIf"],[1,"button-dropdown-wrapper"],[1,"imx-button","cta","save","imx-hide-sm",3,"ngClass","disabled","click"],["class","imx-button cta dropdown",3,"disabled","click",4,"ngIf"],["position","right",1,"dropup-button","sm"],["dropupButtonComponent",""],["imx-dropup-trigger",""],[1,"dropup-action-menu"],[1,"imx-button","cta",3,"disabled","click"],["class","imx-button cta",3,"disabled","click",4,"ngIf"],[1,"imx-button","cta","dropdown",3,"disabled","click"],["class","icon icon-chevron-downBold",4,"ngIf"],["class","icon icon-chevron-upBold",4,"ngIf"],[1,"icon","icon-chevron-downBold"],[1,"icon","icon-chevron-upBold"],[1,"imx-button","cta","save"],[1,"icon-floppy-disk"],[1,"imx-button","default","close","imx-hide-md",3,"click"],[1,"imx-button","default","close","sm",3,"matTooltip","click"],[1,"icon","icon-exit"],[1,"blocked-text"],["translate","",1,"edit__navigation-item"]],template:function(ue,ge){1&ue&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,P,18,20,"div",2)(3,G,3,3,"button",3)(4,B,3,3,"button",4),e.qZA(),e.TgZ(5,"div",5,6),e.YNc(7,q,3,2,"ng-container",7),e.qZA(),e.YNc(8,j,3,0,"div",8),e.qZA()),2&ue&&(e.xp6(2),e.Q6J("hasSavePermission",ge.formHandler),e.xp6(),e.Q6J("ngIf",!ge.hideCloseBtn),e.xp6(),e.Q6J("ngIf",!ge.hideCloseBtn),e.xp6(),e.Q6J("ngClass",e.VKq(6,Y,ge.isSaveMenuOpen)),e.xp6(2),e.Q6J("hasSavePermission",ge.formHandler),e.xp6(),e.Q6J("ngIf",ge.isBlocked))},dependencies:[s.mk,s.O5,l.gM,i.Pi,t.p,p.t,c.F,o.R,i.X$],styles:[".dropup-action-menu[_ngcontent-%COMP%]{display:flex;flex-direction:column}.edit-page-button-bar[_ngcontent-%COMP%]{padding:5px 0;position:relative}.edit-page-button-bar[_ngcontent-%COMP%]   .button-bar[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media (max-width: 900px){.edit-page-button-bar[_ngcontent-%COMP%]   .button-bar[_ngcontent-%COMP%]{flex-wrap:wrap}}.edit-page-button-bar[_ngcontent-%COMP%]   .dropup-button.sm[_ngcontent-%COMP%]{display:none}@media (max-width: 900px){.edit-page-button-bar[_ngcontent-%COMP%]   .dropup-button.sm[_ngcontent-%COMP%]{display:block}}.edit-page-button-bar[_ngcontent-%COMP%]   .dropup-button.sm[_ngcontent-%COMP%]   .imx-button.save[_ngcontent-%COMP%]{width:100%}.edit-page-button-bar[_ngcontent-%COMP%]   .action-menu[_ngcontent-%COMP%]{display:block}.edit-page-button-bar[_ngcontent-%COMP%]   .close.sm[_ngcontent-%COMP%]{display:none}@media (max-width: 1400px){.edit-page-button-bar[_ngcontent-%COMP%]   .close.sm[_ngcontent-%COMP%]{display:block}}@media (max-width: 900px){.edit-page-button-bar[_ngcontent-%COMP%]   .close.sm[_ngcontent-%COMP%]{width:100%;margin-top:5px}}.edit-page-button-bar[_ngcontent-%COMP%]   .button-dropdown-wrapper[_ngcontent-%COMP%]{margin-right:5px;white-space:nowrap;box-shadow:1px 1px 4px #0003;display:inline-block;flex-grow:1}@media (max-width: 900px){.edit-page-button-bar[_ngcontent-%COMP%]   .button-dropdown-wrapper[_ngcontent-%COMP%]{margin-right:unset;box-shadow:none}}.edit-page-button-bar[_ngcontent-%COMP%]   .button-dropdown-wrapper[_ngcontent-%COMP%] > .imx-button[_ngcontent-%COMP%]{box-shadow:none}@media (min-width: 901px){.edit-page-button-bar[_ngcontent-%COMP%]   .button-dropdown-wrapper[_ngcontent-%COMP%] > .imx-button.sm[_ngcontent-%COMP%]{display:none}}@media (max-width: 900px){.edit-page-button-bar[_ngcontent-%COMP%]   .button-dropdown-wrapper[_ngcontent-%COMP%] > .imx-button.sm[_ngcontent-%COMP%]{display:block}}.edit-page-button-bar[_ngcontent-%COMP%]   .button-dropdown-wrapper[_ngcontent-%COMP%] > .imx-button.save[_ngcontent-%COMP%]{width:calc(100% - 35px)}@media (max-width: 900px){.edit-page-button-bar[_ngcontent-%COMP%]   .button-dropdown-wrapper[_ngcontent-%COMP%] > .imx-button.save[_ngcontent-%COMP%]{width:100%;margin-bottom:5px}}.edit-page-button-bar[_ngcontent-%COMP%]   .button-dropdown-wrapper[_ngcontent-%COMP%] > .imx-button.wo_close[_ngcontent-%COMP%]{width:100%}.edit-page-button-bar[_ngcontent-%COMP%]   .button-dropdown-wrapper[_ngcontent-%COMP%] > .imx-button.dropdown[_ngcontent-%COMP%]{border-left:1px solid rgba(230,233,239,.5)}@media (max-width: 900px){.edit-page-button-bar[_ngcontent-%COMP%]   .button-dropdown-wrapper[_ngcontent-%COMP%] > .imx-button.dropdown[_ngcontent-%COMP%]{display:none}}.edit-page-button-bar[_ngcontent-%COMP%]   .button-dropdown-content[_ngcontent-%COMP%]{position:absolute;width:100%;z-index:2;visibility:collapse}.edit-page-button-bar[_ngcontent-%COMP%]   .button-dropdown-content.open[_ngcontent-%COMP%]{visibility:visible}@media (max-width: 900px){.edit-page-button-bar[_ngcontent-%COMP%]   .button-dropdown-content[_ngcontent-%COMP%]{width:calc(100% - 35px)}}.edit-page-button-bar[_ngcontent-%COMP%]   .button-dropdown-content[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{box-shadow:1px 1px 4px #0003;width:100%}.edit-page-button-bar[_ngcontent-%COMP%]   .button-dropdown-content[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%] ~ .imx-button[_ngcontent-%COMP%]{margin-top:5px}.blocked-text[_ngcontent-%COMP%]{margin-top:15px}"]})}return ne})()},86073:(gt,X,a)=>{"use strict";a.d(X,{B:()=>n});var e=a(19212);let n=(()=>{class s{constructor(){this.value=null,this.propagateChange=i=>{},this.markAsTouched=()=>{}}get model(){return this.value}set model(i){this.value=i,this.propagateChange(i)}writeValue(i){this.value=i}registerOnChange(i){this.propagateChange=t=>{i(t)}}registerOnTouched(i){this.markAsTouched=()=>{i()}}setDisabledState(i){}static#e=this.\u0275fac=function(t){return new(t||s)};static#t=this.\u0275dir=e.lG2({type:s})}return s})()},2563:(gt,X,a)=>{"use strict";a.d(X,{y:()=>s});var e=a(86073),n=a(19212);let s=(()=>{class l extends e.B{constructor(){super(...arguments),this.required=!1,this.disableControl=!1,this.errors=null,this.controlDisabledDirectly=!1}ngOnChanges(t){t.disableControl&&(!this.controlDisabledDirectly||this.disableControl)&&this.toggleState(this.disableControl)}setDisabledState(t){this.controlDisabledDirectly=t,this.toggleState(t)}toggleState(t){}static#e=this.\u0275fac=(()=>{let t;return function(c){return(t||(t=n.n5z(l)))(c||l)}})();static#t=this.\u0275dir=n.lG2({type:l,inputs:{id:"id",label:"label",required:"required",disableControl:"disableControl",hint:"hint",errors:"errors"},features:[n.qOj,n.TTD]})}return l})()},46009:(gt,X,a)=>{"use strict";a.d(X,{X:()=>b});var e=a(72079),n=a(49193),s=a(96124),l=a(19352),i=a(21473),t=a(27556),c=(a(45315),a(9512)),o=a(62192),x=a(62934),u=a(19212);const m=(0,i.jl)("AbstractPermissionAwareControl",t.H.name);let b=(()=>{class I{constructor(){this.hideLabel=!1,this.destroy$=new e.xQ}ngOnInit(){this.field||m.error("no field set for "+this.constructor.name),this.control||m.error("no control set for field "+this.field.id),this.formHandler||m.error("no formHandler set for field "+this.field.id),this.fieldPermission=this.formHandler instanceof o.p?this.formHandler.getFieldPermission(this.permissionPrefix?this.permissionPrefix+this.field.permissionId:this.field.permissionId):(0,n.of)(this.formHandler instanceof c.d?{read:this.formHandler.hasSearchFieldReadPermission(this.permissionPrefix?this.permissionPrefix+this.field.permissionId:this.field.permissionId),write:!0,saveEntity:!0}:{read:!0,write:!0,saveEntity:!0}),this.fieldPermission.pipe((0,s.U)(O=>this.isFieldDisabled(O)),(0,l.R)(this.destroy$)).subscribe(O=>{O&&this.control.disable({onlySelf:!0,emitEvent:!1})})}isFieldDisabled(O){let P=!O.write||!O.saveEntity;return this.field instanceof x.o&&(P=P||this.field.readOnly),P}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(P){return new(P||I)};static#t=this.\u0275dir=u.lG2({type:I,inputs:{field:"field",formHandler:"formHandler",control:"control",permissionPrefix:"permissionPrefix",hideLabel:"hideLabel"}})}return I})()},51100:(gt,X,a)=>{"use strict";a.d(X,{A:()=>s});var e=a(46009),n=a(19212);let s=(()=>{class l extends e.X{getGroupErrorKeys(){if(this.control.errors)return Object.keys(this.control.errors).filter(t=>this.control.errors[t]instanceof Object&&"groupHint"in this.control.errors[t]&&this.control.errors[t].groupHint)}getFirstGroupErrorKey(){const t=this.getGroupErrorKeys();if(t&&t.length>0)return t[0]}getChildErrorKeys(t){if(this.control){const p=this.control.get(t);if(p&&p.errors)return Object.keys(p.errors)}}getChildErrors(t){if(this.control){const p=this.control.get(t);if(p)return p.errors}}getErrorKeys(){if(this.control.errors)return Object.keys(this.control.errors).filter(t=>this.control.errors[t]instanceof Object&&!("groupHint"in this.control.errors[t])||!this.control.errors[t].groupHint)}getObjectForKey(t){if(this.control.errors)return this.control.errors[t]}getChildObjectForKey(t,p){if(this.control){const c=this.control.get(t);if(c){const o=c.errors;if(o)return o[p]}}}get errors(){return this.control.errors}static#e=this.\u0275fac=(()=>{let t;return function(c){return(t||(t=n.n5z(l)))(c||l)}})();static#t=this.\u0275dir=n.lG2({type:l,features:[n.qOj]})}return l})()},4938:(gt,X,a)=>{"use strict";a.d(X,{Y:()=>o});var e=a(19212),n=a(51100),s=a(96814),l=a(56223),i=a(97564),t=a(8455);function p(x,u){if(1&x){const m=e.EpF();e.ynx(0),e.TgZ(1,"imx-base-autocomplete",1),e.NdJ("autocompleteSelected",function(I){e.CHM(m);const H=e.oxw(2);return e.KtG(H.autocompleteSelected.emit(I))}),e._UZ(2,"imx-lockable-input",2),e.qZA(),e.BQk()}if(2&x){const m=e.oxw(2);e.xp6(),e.Q6J("label",m.field.renderLabel?m.field.label:void 0)("autocompleteFilter",m.autocompleteFilter)("formControl",m.control)("fieldID",m.field.id)("autocompleteService",m.autocompleteService)("disableControl",m.disableControl)("required",m.field.required)("displayItemFn",m.displayItemFn)("useAnyNameHolder",m.useAnyNameHolder)("panelWidth",m.panelWidth),e.xp6(),e.Q6J("field",m.field)("formHandler",m.formHandler)("form",m.form)}}function c(x,u){if(1&x&&(e.ynx(0),e.YNc(1,p,3,13,"ng-container",0),e.BQk()),2&x){const m=u.ngIf;e.xp6(),e.Q6J("ngIf",m.read)}}let o=(()=>{class x extends n.A{constructor(){super(...arguments),this.useAnyNameHolder=!1,this.autocompleteSelected=new e.vpe}static#e=this.\u0275fac=(()=>{let m;return function(I){return(m||(m=e.n5z(x)))(I||x)}})();static#t=this.\u0275cmp=e.Xpm({type:x,selectors:[["imx-autocomplete"]],inputs:{form:"form",autocompleteService:"autocompleteService",disableControl:"disableControl",autocompleteFilter:"autocompleteFilter",displayItemFn:"displayItemFn",useAnyNameHolder:"useAnyNameHolder",panelWidth:"panelWidth"},outputs:{autocompleteSelected:"autocompleteSelected"},features:[e.qOj],decls:2,vars:3,consts:[[4,"ngIf"],[3,"label","autocompleteFilter","formControl","fieldID","autocompleteService","disableControl","required","displayItemFn","useAnyNameHolder","panelWidth","autocompleteSelected"],["label-lockable","",3,"field","formHandler","form"]],template:function(b,I){1&b&&(e.YNc(0,c,2,1,"ng-container",0),e.ALo(1,"async")),2&b&&e.Q6J("ngIf",e.lcZ(1,1,I.fieldPermission))},dependencies:[s.O5,l.JJ,l.Q7,l.oH,i.h,t.J,s.Ov],styles:["[_nghost-%COMP%]{display:block}"]})}return x})()},84634:(gt,X,a)=>{"use strict";a.d(X,{o:()=>i});var e=a(19212),n=a(96814),s=a(64170);function l(t,p){if(1&t&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&t){const c=e.oxw();e.xp6(),e.hij(" ",c.errorMessage," ")}}let i=(()=>{class t{static#e=this.\u0275fac=function(o){return new(o||t)};static#t=this.\u0275cmp=e.Xpm({type:t,selectors:[["imx-base-input-error"]],inputs:{errorMessage:"errorMessage"},decls:1,vars:1,consts:[[4,"ngIf"]],template:function(o,x){1&o&&e.YNc(0,l,2,1,"mat-error",0),2&o&&e.Q6J("ngIf",x.errorMessage)},dependencies:[n.O5,s.TO],encapsulation:2})}return t})()},6554:(gt,X,a)=>{"use strict";a.d(X,{g:()=>t});var e=a(19212),n=a(96814),s=a(64170),l=a(71365);function i(p,c){if(1&p&&(e.TgZ(0,"mat-hint"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&p){const o=e.oxw();e.xp6(),e.Oqu(e.lcZ(2,1,o.hint))}}let t=(()=>{class p{static#e=this.\u0275fac=function(x){return new(x||p)};static#t=this.\u0275cmp=e.Xpm({type:p,selectors:[["imx-base-input-hint"]],inputs:{hint:"hint"},decls:1,vars:1,consts:[[4,"ngIf"]],template:function(x,u){1&x&&e.YNc(0,i,3,3,"mat-hint",0),2&x&&e.Q6J("ngIf",u.hint)},dependencies:[n.O5,s.bx,l.X$],encapsulation:2})}return p})()},2901:(gt,X,a)=>{"use strict";a.d(X,{u:()=>t});var e=a(19212),n=a(96814),s=a(71365);function l(p,c){1&p&&(e.TgZ(0,"span"),e._uU(1,"*"),e.qZA())}function i(p,c){if(1&p&&(e.TgZ(0,"label",1),e._uU(1),e.YNc(2,l,2,0,"span",2),e.qZA()),2&p){const o=e.oxw();e.uIk("for",o.forId),e.xp6(),e.Oqu(o.label),e.xp6(),e.Q6J("ngIf",o.required)}}let t=(()=>{class p{constructor(){this.required=!1}static#e=this.\u0275fac=function(x){return new(x||p)};static#t=this.\u0275cmp=e.Xpm({type:p,selectors:[["imx-base-input-label"]],inputs:{label:"label",forId:"forId",required:"required"},decls:1,vars:1,consts:[["translate","",4,"ngIf"],["translate",""],[4,"ngIf"]],template:function(x,u){1&x&&e.YNc(0,i,3,3,"label",0),2&x&&e.Q6J("ngIf",u.label)},dependencies:[n.O5,s.Pi],encapsulation:2})}return p})()},77323:(gt,X,a)=>{"use strict";a.d(X,{N:()=>H});var e=a(19212),n=a(56223),s=a(2563),l=a(96814),i=a(77958),t=a(2901),p=a(71365);const c=["customLabel"];function o(O,P){1&O&&e.GkF(0)}const x=O=>({$implicit:O});function u(O,P){if(1&O&&(e.ynx(0),e.YNc(1,o,1,0,"ng-container",7),e.BQk()),2&O){const G=e.oxw().$implicit,B=e.oxw();e.xp6(),e.Q6J("ngTemplateOutlet",B.customLabel)("ngTemplateOutletContext",e.VKq(2,x,G))}}function m(O,P){if(1&O&&(e._uU(0),e.ALo(1,"translate")),2&O){const G=e.oxw().$implicit;e.hij(" ",e.lcZ(1,1,G.label)," ")}}function b(O,P){if(1&O){const G=e.EpF();e.TgZ(0,"div",3)(1,"imx-base-checkbox",4),e.NdJ("checkboxClick",function(ae){e.CHM(G);const J=e.oxw();return e.KtG(J.onSelectionChanged(ae))}),e.YNc(2,u,2,4,"ng-container",5)(3,m,2,3,"ng-template",null,6,e.W1O),e.qZA()()}if(2&O){const G=P.$implicit,B=e.MAs(4),ae=e.oxw();e.xp6(),e.Q6J("checkboxValue",G.value)("disableControl",G.disabled),e.xp6(),e.Q6J("ngIf",ae.customLabel)("ngIfElse",B)}}const I=O=>({inline:O});let H=(()=>{class O extends s.y{constructor(){super(...arguments),this.checkboxes=[],this.mode="block"}onSelectionChanged(G){const{isChecked:B,value:ae}=G;B?this._addToSelection(ae):this._removeFromSelection(ae),this.markAsTouched()}_addToSelection(G){const B=this.model?[...this.model]:[];B.push(G),this.model=B}_removeFromSelection(G){const B=this.model?this.model.findIndex(ae=>ae===G):-1;if(-1!==B){const ae=[...this.model];ae.splice(B,1),this.model=ae}}static#e=this.\u0275fac=(()=>{let G;return function(ae){return(G||(G=e.n5z(O)))(ae||O)}})();static#t=this.\u0275cmp=e.Xpm({type:O,selectors:[["imx-base-checkbox-select"]],contentQueries:function(B,ae,J){if(1&B&&e.Suo(J,c,5),2&B){let q;e.iGM(q=e.CRH())&&(ae.customLabel=q.first)}},inputs:{checkboxes:"checkboxes",mode:"mode"},features:[e._Bn([{provide:n.JU,useExisting:(0,e.Gpc)(()=>O),multi:!0}]),e.qOj],decls:3,vars:7,consts:[[3,"label","forId","required"],[1,"checkbox-container",3,"ngClass"],["class","select-option",4,"ngFor","ngForOf"],[1,"select-option"],[3,"checkboxValue","disableControl","checkboxClick"],[4,"ngIf","ngIfElse"],["defaultLabel",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(B,ae){1&B&&(e._UZ(0,"imx-base-input-label",0),e.TgZ(1,"div",1),e.YNc(2,b,5,4,"div",2),e.qZA()),2&B&&(e.Q6J("label",ae.label)("forId",ae.id)("required",ae.required),e.xp6(),e.Q6J("ngClass",e.VKq(5,I,"inline"===ae.mode)),e.xp6(),e.Q6J("ngForOf",ae.checkboxes))},dependencies:[l.mk,l.sg,l.O5,l.tP,i.G,t.u,p.X$],styles:[".checkbox-container.inline[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-flow:wrap}.inline[_ngcontent-%COMP%]   .select-option[_ngcontent-%COMP%]:not(:last-child){margin:0 10px 10px 0}[_nghost-%COMP%]     label.mat-mdc-checkbox-layout{display:flex;align-items:center}"]})}return O})()},10001:(gt,X,a)=>{"use strict";a.d(X,{r:()=>j});var e=a(91226),n=a(5253),s=a(23291),l=a(96124),i=a(48499),t=a(51100),p=a(19212),c=a(96814),o=a(75986),x=a(64170),u=a(50054),m=a(71365),b=a(1614);function I(Y,K){if(1&Y&&p._UZ(0,"imx-label-lockable",6),2&Y){const ne=p.oxw(3);p.Q6J("field",ne.field)("formHandler",ne.formHandler)("form",ne.formHandler.formGroup)("renderBig",!0)}}function H(Y,K){if(1&Y&&p._UZ(0,"img",10),2&Y){const ne=p.oxw().$implicit;p.Q6J("src","./assets/flags/"+ne.flag+".svg",p.LSH)("alt",ne.flag)}}const O=Y=>({small:Y});function P(Y,K){if(1&Y){const ne=p.EpF();p.TgZ(0,"div",7)(1,"mat-checkbox",8),p.NdJ("change",function($){p.CHM(ne);const ue=p.oxw(3);return p.KtG(ue.onSelectionChanged($))}),p.YNc(2,H,1,2,"img",9),p._uU(3),p.ALo(4,"translate"),p.ALo(5,"readI18n"),p.qZA()()}if(2&Y){const ne=K.$implicit,ee=p.oxw(3);p.xp6(),p.Q6J("ngClass",p.VKq(10,O,!ee.field.big))("disabled",ee.control.disabled)("value",ne.value)("checked",ee.isItemSelected(ne.value)),p.xp6(),p.Q6J("ngIf",ne.flag),p.xp6(),p.hij(" ",p.lcZ(4,6,p.lcZ(5,8,ne.label))," ")}}function G(Y,K){if(1&Y&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&Y){const ne=K.$implicit,ee=p.oxw(3);p.xp6(),p.Oqu(p.xi3(2,1,"imxplatform.common-entity.edit.validation."+ne,ee.getObjectForKey(ne)))}}const B=Y=>({"ng-invalid":Y}),ae=(Y,K)=>({"row-layout":Y,line:K});function J(Y,K){if(1&Y&&(p.ynx(0),p.TgZ(1,"div",1),p.YNc(2,I,1,4,"imx-label-lockable",2),p.TgZ(3,"div",3),p.YNc(4,P,6,12,"div",4),p.ALo(5,"async"),p.qZA(),p.YNc(6,G,3,4,"mat-error",5),p.qZA(),p.BQk()),2&Y){const ne=p.oxw(2);p.xp6(),p.Q6J("ngClass",p.VKq(7,B,ne.control.invalid)),p.xp6(),p.Q6J("ngIf",ne.field.renderLabel&&ne.field.label&&!1===ne.forceHideLabel),p.xp6(),p.Q6J("ngClass",p.WLB(9,ae,ne.rowLayout||ne.field.rowLayout,ne.field.renderLabel&&ne.field.label&&ne.field.label.length>0&&ne.field.rowLayout||ne.showLine)),p.xp6(),p.Q6J("ngForOf",p.lcZ(5,5,ne.items$)),p.xp6(2),p.Q6J("ngForOf",ne.getErrorKeys())}}function q(Y,K){if(1&Y&&(p.ynx(0),p.YNc(1,J,7,12,"ng-container",0),p.BQk()),2&Y){const ne=K.ngIf;p.xp6(),p.Q6J("ngIf",ne.read)}}let j=(()=>{class Y extends t.A{constructor(ne){super(),this.changeDetectorRef=ne,this.rowLayout=!1,this.showLine=!1,this.forceHideLabel=!1,this.items$=e.E}ngDoCheck(){this.control.dirty&&this.changeDetectorRef.markForCheck()}ngOnInit(){super.ngOnInit(),this.isLanguageSelect=!!this.isLanguageSelect||this.field.isLanguageSelect,this.initializeOptions(),this.control.value||this.control.setValue([]),this.control.valueChanges.subscribe(ne=>{this.control.dirty&&this.changeDetectorRef.markForCheck()})}ngOnChanges(ne){ne.optionProvider&&this.initializeOptions()}initializeOptions(){let ne;this.optionProvider instanceof i.I1?ne=this.optionProvider.getOptions(this.formHandler.baseObject,this.control.parent.value):this.optionProvider instanceof Array?ne=(0,n.D)([this.optionProvider]):this.optionProvider instanceof Function?ne=this.optionProvider(this.formHandler.baseObject):this.optionProvider instanceof i.K$&&(ne=this.optionProvider.getOptions(this.formHandler)),ne&&(this.items$=this.isLanguageSelect?(0,s.aj)([ne,this.formHandler.formLanguage.getObjectLanguagesObservable()]).pipe((0,l.U)(([ee,$])=>ee.map(ue=>{const ge=$.find(Ke=>Ke.id===ue.value);return ge?(ue.label=ge.i18nName,{...ue,flag:ge.name}):ue}))):ne)}onSelectionChanged(ne){const ee=Number.parseInt(ne.source.value,10);if(this.control.markAsTouched(),this.control.markAsDirty(),ne.source.checked){let $=this.control.value;null==$&&($=[]),Number.isNaN(ee)?($.push(ne.source.value),this.control.setValue($.filter((ue,ge)=>$.indexOf(ue)===ge))):($.push(ee),this.control.setValue($.filter((ue,ge)=>$.indexOf(ue)===ge)))}else Number.isNaN(ee)?this.control.setValue(this.control.value.filter($=>$!==ne.source.value)):this.control.setValue(this.control.value.filter($=>$!==ee))}isItemSelected(ne){return!(!this.control.value||!Array.isArray(this.control.value))&&this.control.value.filter(ee=>ee===ne).length>0}static#e=this.\u0275fac=function(ee){return new(ee||Y)(p.Y36(p.sBO))};static#t=this.\u0275cmp=p.Xpm({type:Y,selectors:[["imx-checkbox-select"]],hostAttrs:[1,"imx-checkbox-select"],inputs:{form:"form",optionProvider:"optionProvider",rowLayout:"rowLayout",showLine:"showLine",isLanguageSelect:"isLanguageSelect",forceHideLabel:"forceHideLabel"},features:[p.qOj,p.TTD],decls:2,vars:3,consts:[[4,"ngIf"],[1,"checkbox-select-wrapper",3,"ngClass"],[3,"field","formHandler","form","renderBig",4,"ngIf"],[3,"ngClass"],["class","select-option",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[3,"field","formHandler","form","renderBig"],[1,"select-option"],[1,"small","checkbox",3,"ngClass","disabled","value","checked","change"],[3,"src","alt",4,"ngIf"],[3,"src","alt"]],template:function(ee,$){1&ee&&(p.YNc(0,q,2,1,"ng-container",0),p.ALo(1,"async")),2&ee&&p.Q6J("ngIf",p.lcZ(1,1,$.fieldPermission))},dependencies:[c.mk,c.sg,c.O5,o.oG,x.TO,u.m,c.Ov,m.X$,b.j],styles:[".checkbox-select-wrapper[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding:5px 10px}.checkbox-select-wrapper[_ngcontent-%COMP%] > div.line[_ngcontent-%COMP%]{border-top:1px solid #ced4e0}.checkbox-select-wrapper[_ngcontent-%COMP%]   .row-layout[_ngcontent-%COMP%]{display:grid}@media (min-width: 1401px){.checkbox-select-wrapper[_ngcontent-%COMP%]   .row-layout[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}}@media (max-width: 1400px){.checkbox-select-wrapper[_ngcontent-%COMP%]   .row-layout[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}.checkbox-select-wrapper[_ngcontent-%COMP%]   .select-option[_ngcontent-%COMP%]{margin-right:5px}.checkbox-select-wrapper[_ngcontent-%COMP%]   .small.checkbox[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:20px;margin-right:5px;vertical-align:middle}.checkbox-select-wrapper[_ngcontent-%COMP%]   .mat-mdc-error[_ngcontent-%COMP%]{margin-top:10px}.checkbox-select-wrapper.ng-invalid[_ngcontent-%COMP%]   .mat-mdc-form-field-error[_ngcontent-%COMP%]{color:#96172e}"],changeDetection:0})}return Y})()},77958:(gt,X,a)=>{"use strict";a.d(X,{G:()=>c});var e=a(19212),n=a(86073),s=a(56223),l=a(96814),i=a(75986);const t=o=>({small:o}),p=["*"];let c=(()=>{class o extends n.B{constructor(){super(...arguments),this.small=!1,this.disableControl=!1,this.checkboxClick=new e.vpe}onCheckboxClick(u){const{source:{value:m},checked:b}=u;this.checkboxClick.emit({isChecked:b,value:m})}static#e=this.\u0275fac=(()=>{let u;return function(b){return(u||(u=e.n5z(o)))(b||o)}})();static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["imx-base-checkbox"]],inputs:{checkboxValue:"checkboxValue",small:"small",disableControl:"disableControl"},outputs:{checkboxClick:"checkboxClick"},features:[e._Bn([{provide:s.JU,useExisting:(0,e.Gpc)(()=>o),multi:!0}]),e.qOj],ngContentSelectors:p,decls:2,vars:6,consts:[[3,"ngModel","disabled","value","ngClass","change","ngModelChange"]],template:function(m,b){1&m&&(e.F$t(),e.TgZ(0,"mat-checkbox",0),e.NdJ("change",function(H){return b.onCheckboxClick(H)})("ngModelChange",function(H){return b.model=H}),e.Hsn(1),e.qZA()),2&m&&e.Q6J("ngModel",b.model)("disabled",b.disableControl)("value",b.checkboxValue)("ngClass",e.VKq(4,t,b.small))},dependencies:[l.mk,s.JJ,s.On,i.oG],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%]     label{align-items:center}"]})}return o})()},95575:(gt,X,a)=>{"use strict";a.d(X,{b:()=>m});var e=a(46009),n=a(19212),s=a(96814),l=a(56223),i=a(75986),t=a(64170),p=a(71365);function c(b,I){if(1&b&&(n.TgZ(0,"mat-hint"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&b){const H=n.oxw(4);n.xp6(),n.Oqu(n.lcZ(2,1,H.field.hint))}}function o(b,I){if(1&b&&(n.TgZ(0,"div",3),n.YNc(1,c,3,3,"mat-hint",0),n.qZA()),2&b){const H=n.oxw(3);n.xp6(),n.Q6J("ngIf",H.field.hint)}}function x(b,I){if(1&b&&(n.ynx(0),n.TgZ(1,"mat-checkbox",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,o,2,1,"div",2),n.BQk()),2&b){const H=n.oxw(2);n.xp6(),n.Q6J("formControl",H.control),n.xp6(),n.hij(" ",H.field.renderLabel?n.lcZ(3,3,H.field.label):""," "),n.xp6(2),n.Q6J("ngIf",H.field.hint)}}function u(b,I){if(1&b&&(n.ynx(0),n.YNc(1,x,5,5,"ng-container",0),n.BQk()),2&b){const H=I.ngIf;n.xp6(),n.Q6J("ngIf",H.read)}}let m=(()=>{class b extends e.X{static#e=this.\u0275fac=(()=>{let H;return function(P){return(H||(H=n.n5z(b)))(P||b)}})();static#t=this.\u0275cmp=n.Xpm({type:b,selectors:[["imx-checkbox"]],hostAttrs:[1,"imx-checkbox"],inputs:{form:"form"},features:[n.qOj],decls:2,vars:3,consts:[[4,"ngIf"],[1,"small","checkbox",3,"formControl"],["class","hint",4,"ngIf"],[1,"hint"]],template:function(O,P){1&O&&(n.YNc(0,u,2,1,"ng-container",0),n.ALo(1,"async")),2&O&&n.Q6J("ngIf",n.lcZ(1,1,P.fieldPermission))},dependencies:[s.O5,l.JJ,i.oG,t.bx,l.oH,s.Ov,p.X$],styles:[".row-layout[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,auto)}.select-option[_ngcontent-%COMP%]{margin-right:5px}.small.checkbox[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:20px;margin-right:5px;vertical-align:middle}.hint[_ngcontent-%COMP%]{margin-left:22px;margin-top:-5px}"]})}return b})()},85715:(gt,X,a)=>{"use strict";a.d(X,{v:()=>I});var e=a(96814),n=a(19212),s=a(56223),l=a(2563),i=a(38034),t=a(2032),p=a(64170),c=a(50308),o=a(6554),x=a(2901),u=a(82121);function m(H,O){if(1&H){const P=n.EpF();n.ynx(0),n.TgZ(1,"div",11)(2,"imx-icon",12),n.NdJ("click",function(){n.CHM(P),n.oxw();const B=n.MAs(7);return n.KtG(B.open())}),n.qZA()(),n.BQk()}}const b=H=>({"mat-focused":H});class I extends l.y{constructor(){super(...arguments),this.focused=!1,this.minStr="",this.maxStr=""}static#e=this.datePipe=new e.uU("de");set min(O){this.minStr=O?this.extractDate(O):void 0}set max(O){this.maxStr=O?this.extractDate(O):void 0}get date(){return this.extractDate(this.model)}set date(O){const P=Date.parse(O);if(!1===isNaN(P)){const G=new Date(P),B=this.model;B.setFullYear(G.getFullYear(),G.getMonth(),G.getDate()),this.model=B}}get time(){return I.datePipe.transform(this.model,"HH:mm")}set time(O){if(O&&O.includes(":")){const P=O.split(":"),G=this.model;G.setHours(+P[0],+P[1]),this.model=G}}extractDate(O){return I.datePipe.transform(O,"yyyy-MM-dd")}static#t=this.\u0275fac=(()=>{let O;return function(G){return(O||(O=n.n5z(I)))(G||I)}})();static#n=this.\u0275cmp=n.Xpm({type:I,selectors:[["imx-base-date-time"]],inputs:{min:"min",max:"max"},features:[n._Bn([{provide:s.JU,useExisting:(0,n.Gpc)(()=>I),multi:!0}]),n.qOj],decls:14,vars:22,consts:[[1,"base-date-time-wrapper"],[3,"ngClass"],[3,"label","forId","required"],[1,"input-wrapper"],["matInput","",1,"input-date",3,"matDatepicker","ngModel","id","disabled","required","min","max","ngModelChange","blur","focusin","focusout"],[4,"ngIf"],["picker",""],[3,"hint"],[3,"errors"],["label","hidden",1,"imx-visually-hidden"],["matInput","","type","time",1,"input-time",3,"ngModel","disabled","required","ngModelChange","blur","focusin","focusout"],[1,"calendar-btn"],["icon","calendar-full","size","small",3,"click"]],template:function(P,G){if(1&P&&(n.TgZ(0,"div",0)(1,"mat-form-field",1),n._UZ(2,"imx-base-input-label",2),n.TgZ(3,"div",3)(4,"input",4),n.NdJ("ngModelChange",function(ae){return G.date=ae})("blur",function(){return G.markAsTouched()})("focusin",function(){return G.focused=!0})("focusout",function(){return G.focused=!1}),n.qZA(),n.YNc(5,m,3,0,"ng-container",5),n.qZA(),n._UZ(6,"mat-datepicker",null,6)(8,"imx-base-input-hint",7)(9,"imx-predefined-input-error",8),n.qZA(),n.TgZ(10,"mat-form-field",1),n._UZ(11,"imx-base-input-label",9),n.TgZ(12,"div",3)(13,"input",10),n.NdJ("ngModelChange",function(ae){return G.time=ae})("blur",function(){return G.markAsTouched()})("focusin",function(){return G.focused=!0})("focusout",function(){return G.focused=!1}),n.qZA()()()()),2&P){const B=n.MAs(7);n.xp6(),n.Q6J("ngClass",n.VKq(18,b,G.focused)),n.xp6(),n.Q6J("label",G.label)("forId",G.id)("required",G.required),n.xp6(2),n.Q6J("matDatepicker",B)("ngModel",G.date)("id",G.id)("disabled",G.disableControl)("required",G.required)("min",G.minStr)("max",G.maxStr),n.xp6(),n.Q6J("ngIf",!G.disableControl),n.xp6(3),n.Q6J("hint",G.hint),n.xp6(),n.Q6J("errors",G.errors),n.xp6(),n.Q6J("ngClass",n.VKq(20,b,G.focused)),n.xp6(3),n.Q6J("ngModel",G.time)("disabled",G.disableControl)("required",G.required)}},dependencies:[e.mk,e.O5,s.Fj,s.JJ,s.Q7,s.On,i.Mq,i.hl,t.Nt,p.KE,c.o,o.g,x.u,u.a],styles:[".base-date-time-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row}.base-date-time-wrapper[_ngcontent-%COMP%]   .input-date[_ngcontent-%COMP%]{border-radius:3px 0 0 3px;border-right:none!important}.base-date-time-wrapper[_ngcontent-%COMP%]   .input-time[_ngcontent-%COMP%]{border-radius:0 3px 3px 0;border-left:none!important}.base-date-time-wrapper[_ngcontent-%COMP%]   .calendar-btn[_ngcontent-%COMP%]{position:absolute;top:8px;right:10px;z-index:10}.base-date-time-wrapper[_ngcontent-%COMP%]   .calendar-btn[_ngcontent-%COMP%]   imx-icon[_ngcontent-%COMP%]{cursor:pointer}"]})}},63005:(gt,X,a)=>{"use strict";a.d(X,{d:()=>P});var e=a(96814),n=a(19212),s=a(56223),l=a(2563),i=a(38034),t=a(2032),p=a(64170),c=a(92596),o=a(50308),x=a(6554),u=a(2901),m=a(82121),b=a(71365);const I=["picker"];function H(G,B){if(1&G){const ae=n.EpF();n.TgZ(0,"div",11),n.ALo(1,"translate"),n.TgZ(2,"span",12),n.NdJ("click",function(){n.CHM(ae);const q=n.oxw(2);return n.KtG(q.setToday())}),n.qZA()()}2&G&&n.s9C("matTooltip",n.lcZ(1,1,"imxplatform.component.date-component.chooseToday"))}function O(G,B){if(1&G){const ae=n.EpF();n.ynx(0),n.TgZ(1,"div",8)(2,"imx-icon",9),n.NdJ("click",function(){n.CHM(ae),n.oxw();const q=n.MAs(6);return n.KtG(q.open())}),n.qZA()(),n.YNc(3,H,3,3,"div",10),n.BQk()}if(2&G){const ae=n.oxw();n.xp6(3),n.Q6J("ngIf","today"==ae.quickaccess)}}class P extends l.y{constructor(){super(...arguments),this.ignoreYear=!1,this.showIcon=!0,this.minStr="",this.maxStr=""}static#e=this.datePipe=new e.uU("de");set min(B){this.minStr=this.extractDate(B)}set max(B){this.maxStr=this.extractDate(B)}setToday(){this.picker.select(new Date)}extractDate(B){return P.datePipe.transform(B,"yyyy-MM-dd")}static#t=this.\u0275fac=(()=>{let B;return function(J){return(B||(B=n.n5z(P)))(J||P)}})();static#n=this.\u0275cmp=n.Xpm({type:P,selectors:[["imx-base-date"]],viewQuery:function(ae,J){if(1&ae&&n.Gf(I,7),2&ae){let q;n.iGM(q=n.CRH())&&(J.picker=q.first)}},inputs:{ignoreYear:"ignoreYear",showIcon:"showIcon",quickaccess:"quickaccess",min:"min",max:"max"},features:[n._Bn([{provide:s.JU,useExisting:(0,n.Gpc)(()=>P),multi:!0}]),n.qOj],decls:9,vars:14,consts:[[3,"label","forId","required"],[1,"input-wrapper"],["matInput","",3,"matDatepicker","id","disabled","min","max","required","ngModel","ngModelChange","blur"],[4,"ngIf"],[3,"panelClass"],["picker",""],[3,"hint"],[3,"errors"],[1,"input-icon"],["icon","calendar-full","size","middle",3,"click"],["class","input-icon today-button",3,"matTooltip",4,"ngIf"],[1,"input-icon","today-button",3,"matTooltip"],[1,"icon","icon-flash","imx-icon-middle",3,"click"]],template:function(ae,J){if(1&ae&&(n.TgZ(0,"mat-form-field"),n._UZ(1,"imx-base-input-label",0),n.TgZ(2,"div",1)(3,"input",2),n.NdJ("ngModelChange",function(j){return J.model=j})("blur",function(){return J.markAsTouched()}),n.qZA(),n.YNc(4,O,4,1,"ng-container",3),n.qZA(),n._UZ(5,"mat-datepicker",4,5)(7,"imx-base-input-hint",6)(8,"imx-predefined-input-error",7),n.qZA()),2&ae){const q=n.MAs(6);n.xp6(),n.Q6J("label",J.label)("forId",J.id)("required",J.required),n.xp6(2),n.Q6J("matDatepicker",q)("id",J.id)("disabled",J.disableControl)("min",J.minStr)("max",J.maxStr)("required",J.required)("ngModel",J.model),n.xp6(),n.Q6J("ngIf",!J.disableControl),n.xp6(),n.Q6J("panelClass",J.ignoreYear?"mat-calendar--ignoreYear":""),n.xp6(2),n.Q6J("hint",J.hint),n.xp6(),n.Q6J("errors",J.errors)}},dependencies:[e.O5,s.Fj,s.JJ,s.Q7,s.On,i.Mq,i.hl,t.Nt,p.KE,c.gM,o.o,x.g,u.u,m.a,b.X$],styles:["imx-icon[_ngcontent-%COMP%]{cursor:pointer}.date-disabled[_ngcontent-%COMP%]{color:#00f88a}.today-button[_ngcontent-%COMP%]{cursor:pointer;width:32px;height:30px;margin-left:0;padding:0 4px}.ng-invalid[_nghost-%COMP%]   .mat-mdc-form-field[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]   .mat-mdc-input-element[_ngcontent-%COMP%]{border:1px solid #96172e}.ng-invalid[_nghost-%COMP%]   .input-wrapper[_ngcontent-%COMP%]   .input-icon[_ngcontent-%COMP%]{background-color:#96172e}"]})}},20020:(gt,X,a)=>{"use strict";a.d(X,{I:()=>x});var e=a(57462),n=a(41621),s=a(51100),l=a(19212),i=a(96814),t=a(56223),p=a(63005);function c(u,m){if(1&u&&l._UZ(0,"imx-base-date",2),2&u){const b=l.oxw(2);l.Q6J("formControl",b.control)("id",b.field.id+"."+b.hash)("label",b.field.renderLabel?b.field.label:void 0)("required",b.field.required)("hint",b.field.hint)("disableControl",b.control.disabled)("errors",b.errors)("quickaccess",b.field.quickaccess)}}function o(u,m){if(1&u&&(l.ynx(0),l.YNc(1,c,1,8,"imx-base-date",1),l.BQk()),2&u){const b=m.ngIf;l.xp6(),l.Q6J("ngIf",b.read)}}let x=(()=>{class u extends s.A{ngOnInit(){super.ngOnInit(),this.hash=(0,n.Cp)();const b=[];this.control.validator&&b.push(this.control.validator),b.push(e.sm),this.control.setValidators(b)}static#e=this.\u0275fac=(()=>{let b;return function(H){return(b||(b=l.n5z(u)))(H||u)}})();static#t=this.\u0275cmp=l.Xpm({type:u,selectors:[["imx-date"]],hostAttrs:[1,"imx-date"],inputs:{form:"form"},features:[l.qOj],decls:2,vars:3,consts:[[4,"ngIf"],[3,"formControl","id","label","required","hint","disableControl","errors","quickaccess",4,"ngIf"],[3,"formControl","id","label","required","hint","disableControl","errors","quickaccess"]],template:function(I,H){1&I&&(l.YNc(0,o,2,1,"ng-container",0),l.ALo(1,"async")),2&I&&l.Q6J("ngIf",l.lcZ(1,1,H.fieldPermission))},dependencies:[i.O5,t.JJ,t.Q7,t.oH,p.d,i.Ov]})}return u})()},52463:(gt,X,a)=>{"use strict";a.d(X,{O:()=>p});var e=a(19212),n=a(56223),s=a(23680),l=a(85715),i=a(63005);class t extends s.LF{parse(o){const x=o.split(".");return new Date((new Date).getFullYear(),Number(x[1])-1,Number(x[0]))}format(o){return l.v.datePipe.transform(o,"dd.MM.")}}let p=(()=>{class c extends i.d{static#e=this.\u0275fac=(()=>{let x;return function(m){return(x||(x=e.n5z(c)))(m||c)}})();static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["imx-base-day-month"]],inputs:{formControl:"formControl"},features:[e._Bn([{provide:n.JU,useExisting:(0,e.Gpc)(()=>c),multi:!0},{provide:s._A,useClass:t}]),e.qOj],decls:1,vars:4,consts:[[3,"formControl","label","disableControl","ignoreYear"]],template:function(u,m){1&u&&e._UZ(0,"imx-base-date",0),2&u&&e.Q6J("formControl",m.formControl)("label",m.label)("disableControl",m.formControl.disabled)("ignoreYear",!0)},dependencies:[n.JJ,n.oH,i.d],styles:[".mat-mdc-calendar.mat-mdc-calendar--ignoreYear .mat-mdc-calendar-period-button{display:none}  .mat-mdc-calendar.mat-mdc-calendar--ignoreYear .mat-mdc-calendar-table-header{display:none}"]})}return c})()},28907:(gt,X,a)=>{"use strict";a.d(X,{A:()=>m});var e=a(49193),n=a(51418),s=a(30154),l=a(21473),i=a(27556),p=(a(45315),a(62192)),c=a(37014),x=(a(62411),a(19212));function u(b,I){}let m=(()=>{class b{constructor(H,O){this.componentBuilder=H,this.changeDetectorRef=O,this.logger=(0,l.jl)("FormControlComponent",i.H.name)}ngOnChanges(H){this.container.viewContainerRef.clear(),this.initComponent()}initComponent(){this.formConfiguration&&this.form&&this.control&&this.field&&(void 0!==this.fieldPermSubscription&&(this.fieldPermSubscription.unsubscribe(),this.fieldPermSubscription=void 0),this.fieldPermSubscription=this.getFieldReadPermission().pipe((0,n.q)(1)).subscribe(H=>{H&&this.componentBuilder.build(this.formConfiguration,this.container.viewContainerRef,this.form,this.formHandler,this.control,this.field,this.permissionPrefix)}))}ngOnDestroy(){this.fieldPermSubscription&&(this.fieldPermSubscription.unsubscribe(),this.fieldPermSubscription=void 0)}getFieldReadPermission(){return this.formHandler instanceof p.p?this.formHandler.hasReadPermission(this.permissionPrefix?this.permissionPrefix+this.field.permissionId:this.field.permissionId):(0,e.of)(!0)}static#e=this.\u0275fac=function(O){return new(O||b)(x.Y36(c.FJ),x.Y36(x.sBO))};static#t=this.\u0275cmp=x.Xpm({type:b,selectors:[["imx-form-control"]],viewQuery:function(O,P){if(1&O&&x.Gf(s.v,7),2&O){let G;x.iGM(G=x.CRH())&&(P.container=G.first)}},hostAttrs:[1,"imx-form-control"],inputs:{formConfiguration:[x.lbL.None,"config","formConfiguration"],form:"form",formHandler:"formHandler",control:"control",field:"field",permissionPrefix:"permissionPrefix"},features:[x.TTD],decls:1,vars:0,consts:[["imxViewContainerRef",""]],template:function(O,P){1&O&&x.YNc(0,u,0,0,"ng-template",0)},dependencies:[s.v]})}return b})()},82621:(gt,X,a)=>{"use strict";a.d(X,{B:()=>ue});var e=a(19212),n=a(72079),s=a(22819),l=a(21473),i=a(27556),t=a(19352),p=a(59143),c=a(71365),o=a(96814),x=a(16007),u=a(85219),m=a(17919),b=a(18341);const I=["fileUpload"],H=["fileInput"];function O(ge,Ke){if(1&ge&&(e.TgZ(0,"div",14)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.TgZ(4,"span",15),e._uU(5),e.qZA()(),e._UZ(6,"p"),e.TgZ(7,"p"),e._uU(8),e.ALo(9,"translate"),e.TgZ(10,"span",15),e._uU(11),e.ALo(12,"fileSize"),e.qZA(),e._uU(13,") "),e.qZA()()),2&ge){const at=e.oxw(2);e.xp6(2),e.hij(" ",e.lcZ(3,4,"imxplatform.media.edit.allowed-file-types"),": "),e.xp6(3),e.hij("",at.allowedFileTypes," "),e.xp6(3),e.hij(" (",e.lcZ(9,6,"imxplatform.media.edit.max-file-size"),": "),e.xp6(3),e.hij(" ",e.lcZ(12,8,at.maxFileSize),"")}}function P(ge,Ke){if(1&ge&&(e.ynx(0),e.TgZ(1,"h3",12),e._uU(2),e.qZA(),e.YNc(3,O,14,10,"div",13),e.BQk()),2&ge){const at=e.oxw();e.xp6(2),e.Oqu(at.headerText),e.xp6(),e.Q6J("ngIf",!at.showDropZone)}}function G(ge,Ke){if(1&ge){const at=e.EpF();e.ynx(0),e.TgZ(1,"div",19)(2,"div",20),e.NdJ("click",function(){const Te=e.CHM(at).$implicit,me=e.oxw(3);return e.KtG(me.removeSelectedFile(Te))}),e._UZ(3,"span",21),e.qZA(),e.TgZ(4,"div",22)(5,"span",23),e._uU(6),e.qZA()(),e.TgZ(7,"div",24)(8,"span",25),e._uU(9),e.ALo(10,"fileSize"),e.qZA()()(),e.BQk()}if(2&ge){const at=Ke.$implicit;e.xp6(6),e.Oqu(at.name),e.xp6(3),e.Oqu(e.lcZ(10,2,at.size))}}function B(ge,Ke){if(1&ge&&(e.ynx(0),e.YNc(1,G,11,4,"ng-container",18),e.BQk()),2&ge){e.oxw(2);const at=e.MAs(3);e.xp6(),e.Q6J("ngForOf",at.files)}}function ae(ge,Ke){if(1&ge&&(e.TgZ(0,"div",14)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.TgZ(4,"span",15),e._uU(5),e.qZA()(),e._UZ(6,"p"),e.TgZ(7,"p"),e._uU(8),e.ALo(9,"translate"),e.TgZ(10,"span",15),e._uU(11),e.ALo(12,"fileSize"),e.qZA(),e._uU(13,")"),e.qZA()()),2&ge){const at=e.oxw(3);e.xp6(2),e.hij("",e.lcZ(3,4,"imxplatform.media.edit.allowed-file-types"),": "),e.xp6(3),e.Oqu(at.allowedFileTypes),e.xp6(3),e.hij("(",e.lcZ(9,6,"imxplatform.media.edit.max-file-size"),": "),e.xp6(3),e.hij(" ",e.lcZ(12,8,at.maxFileSize),"")}}function J(ge,Ke){if(1&ge){const at=e.EpF();e.TgZ(0,"div",26),e.NdJ("click",function(){e.CHM(at);const R=e.oxw(2);return e.KtG(R.triggerSelectionDialog())}),e.TgZ(1,"p"),e._UZ(2,"span",27),e.qZA(),e.TgZ(3,"p")(4,"span",28),e._uU(5),e.ALo(6,"translate"),e.qZA()(),e.YNc(7,ae,14,10,"div",13),e.qZA()}if(2&ge){const at=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,2,"imxplatform.component.upload.store-your-files")),e.xp6(2),e.Q6J("ngIf",at.showDropZone)}}function q(ge,Ke){if(1&ge&&(e.TgZ(0,"div",16)(1,"div"),e.YNc(2,B,2,1,"ng-container",1),e.qZA(),e.TgZ(3,"div"),e.YNc(4,J,8,4,"div",17),e.qZA()()),2&ge){const at=e.oxw();e.xp6(2),e.Q6J("ngIf",at.showFileDescription&&at.hasFiles()),e.xp6(2),e.Q6J("ngIf",!at.hasFiles())}}function j(ge,Ke){if(1&ge){const at=e.EpF();e.ynx(0),e.TgZ(1,"div",19)(2,"div",20),e.NdJ("click",function(){e.CHM(at);const R=e.oxw().$implicit,Te=e.oxw();return e.KtG(Te.removeSelectedFile(R))}),e._UZ(3,"span",21),e.qZA(),e.TgZ(4,"div",22)(5,"span",23),e._uU(6),e.qZA()(),e.TgZ(7,"div",24)(8,"span",25),e._uU(9),e.ALo(10,"fileSize"),e.qZA()()(),e.BQk()}if(2&ge){const at=e.oxw().$implicit,Le=e.oxw();e.xp6(6),e.Oqu(Le.displayFilenameShortened(at.name)),e.xp6(3),e.Oqu(e.lcZ(10,2,at.size))}}function Y(ge,Ke){if(1&ge&&e.YNc(0,j,11,4,"ng-container",1),2&ge){const at=e.oxw();e.Q6J("ngIf",!at.showFileDescription)}}function K(ge,Ke){if(1&ge){const at=e.EpF();e.ynx(0),e.TgZ(1,"div",29),e.NdJ("click",function(){e.CHM(at);const R=e.oxw();return e.KtG(R.triggerUpload())}),e.TgZ(2,"label",30),e._UZ(3,"i",27),e._uU(4),e.ALo(5,"translate"),e.qZA()(),e.BQk()}2&ge&&(e.xp6(4),e.Oqu(e.lcZ(5,1,"imxplatform.component.upload.upload")))}function ne(ge,Ke){if(1&ge){const at=e.EpF();e.ynx(0),e.TgZ(1,"div",29),e.NdJ("click",function(){e.CHM(at);const R=e.oxw();return e.KtG(R.removeUploadButtonClicked.emit(!0))}),e.TgZ(2,"label",30),e._UZ(3,"i",31),e._uU(4),e.ALo(5,"translate"),e.qZA()(),e.BQk()}2&ge&&(e.xp6(4),e.Oqu(e.lcZ(5,1,"imxplatform.component.upload.remove")))}function ee(ge,Ke){1&ge&&(e.ynx(0),e._UZ(1,"mat-progress-bar",32),e.BQk())}const $=ge=>({hide:ge});let ue=(()=>{class ge{static randomString(at,Le){let R="";for(let Te=at;Te>0;--Te)R+=Le[Math.floor(Math.random()*Le.length)];return R}constructor(at,Le,R,Te){this.dataAccessService=at,this.changeDetectorRef=Le,this.userMessageService=R,this.translateService=Te,this.logger=(0,l.jl)("BaseUploadComponent",i.H.name),this.destroy$=new n.xQ,this.allowedFileTypes="text/*",this.autoUpload=!1,this.showFileSelectButton=!0,this.showDropZone=!1,this.showHeaderInformation=!0,this.buttonLbl="imxplatform.media.edit.choose-file",this.allowMultipleFiles=!1,this.fileLimit=this.allowMultipleFiles?1:100,this.maxFileSize=1e7,this.uploadComplete=new e.vpe,this.headerText="imxplatform.component.upload.header",this.sendMessagesOnComplete=!0,this.disabled=!1,this.showRemoveButton=!1,this.removeUploadButtonClicked=new e.vpe,this.showFileDescription=!1,this.additionalUploadParams=null,this.fileId=ge.randomString(20,"0123456789abcdefghijklmnopqrstuvwxyz"),this.uploading=!1}ngOnInit(){this.uploadComplete.pipe((0,t.R)(this.destroy$)).subscribe(at=>{this.uploading=!1,this.fileUpload.clear(),this.clearInputElement(),this.changeDetectorRef.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}hasFiles(){return!!this.fileUpload&&this.fileUpload.hasFiles()}onFileSelect(at){this.fileUpload?this.fileUpload.onFileSelect(at):console.error("File upload not set!"),this.changeDetectorRef.markForCheck()}onError(at){this.logger.error("component error: "+at)}displayFilenameShortened(at){return at.length>20&&(at=at.substring(0,12)+"(...)."+at.substr(at.lastIndexOf(".")+1)),at}triggerSelectionDialog(){this.fileInput.nativeElement.click()}onSelect(at){!0===this.autoUpload&&this.onFileUpload(at)}onFileUpload(at){if(!this.hasFiles())return;this.logger.info("Start upload of "+at.files.length+" files."+JSON.stringify(at.files));const Le=[];at.files&&(this.allowMultipleFiles?Le.push(...at.files):1===at.files.length?Le.push(at.files[0]):this.logger.warn("trying to upload multiple files, please set [allowMultipleFiles]=true")),Le.length>0?(this.uploading=!0,this.dataAccessService.processFile(Le,this.type,void 0,this.additionalUploadParams?this.additionalUploadParams:void 0).subscribe(R=>{if(this.sendMessagesOnComplete){let Te=!1;R.forEach(me=>{me.exception&&(Te=!0,this.userMessageService.showError(me.exception))}),Te||this.userMessageService.showInfo(this.translateService.instant("imxplatform.component.upload.success")),this.uploadComplete.emit(R)}},R=>{this.uploadComplete.emit(R),this.logger.error(R.message),this.sendMessagesOnComplete&&this.userMessageService.showError(this.translateService.instant("imxplatform.component.upload.error"),R)})):this.uploading=!1}triggerUpload(){this.fileUpload&&this.hasFiles()&&this.fileUpload.upload()}removeSelectedFile(at){this.clearInputElement();const Le=this.fileUpload.files.indexOf(at);this.fileUpload.remove(new Event(""),Le)}clearInputElement(){this.fileInput&&this.fileInput.nativeElement&&(this.fileInput.nativeElement.value="")}static#e=this.\u0275fac=function(Le){return new(Le||ge)(e.Y36(s.nq),e.Y36(e.sBO),e.Y36(p.Y),e.Y36(c.sK))};static#t=this.\u0275cmp=e.Xpm({type:ge,selectors:[["imx-base-upload"]],viewQuery:function(Le,R){if(1&Le&&(e.Gf(I,5),e.Gf(H,5)),2&Le){let Te;e.iGM(Te=e.CRH())&&(R.fileUpload=Te.first),e.iGM(Te=e.CRH())&&(R.fileInput=Te.first)}},inputs:{allowedFileTypes:"allowedFileTypes",autoUpload:"autoUpload",showFileSelectButton:"showFileSelectButton",showDropZone:"showDropZone",showHeaderInformation:"showHeaderInformation",buttonLbl:"buttonLbl",allowMultipleFiles:"allowMultipleFiles",fileLimit:"fileLimit",maxFileSize:"maxFileSize",type:"type",headerText:"headerText",sendMessagesOnComplete:"sendMessagesOnComplete",disabled:"disabled",showRemoveButton:"showRemoveButton",showFileDescription:"showFileDescription",additionalUploadParams:"additionalUploadParams"},outputs:{uploadComplete:"uploadComplete",removeUploadButtonClicked:"removeUploadButtonClicked"},decls:17,vars:23,consts:[[1,"base-upload-wrapper"],[4,"ngIf"],["multiple","multiple","styleClass","imx-file-upload","name","uploadFiles[]","customUpload","true",3,"ngClass","hidden","auto","fileLimit","maxFileSize","disabled","accept","uploadHandler","onSelect","onError"],["fileUpload",""],["pTemplate","content"],["pTemplate","file"],[1,"file-choose-row"],[1,"button",3,"hidden"],["type","file","multiple","multiple",1,"inputfile",3,"id","readOnly","disabled","accept","change"],["fileInput",""],[1,"imx-button","prio2","with-icon",3,"for","ngClass"],[1,"icon","icon-plusBold"],["translate","",1,"upload-header"],["class","upload-information txt-md-sm",4,"ngIf"],[1,"upload-information","txt-md-sm"],[1,"txt-grey"],[1,"drop-zone-content-wrapper"],["class","drop-zone-description",3,"click",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"drop-zone-preview-row"],[3,"click"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable"],[1,"drop-zone-preview-name"],[1,"txt-md"],[1,"drop-zone-preview-filesize"],[1,"txt-grey","txt-md-sm"],[1,"drop-zone-description",3,"click"],[1,"icon","icon-up-square"],[1,"txt-md-sm","txt-grey"],[1,"button",3,"click"],[1,"imx-button","prio2","with-icon"],[1,"icon","icon-trash"],["mode","indeterminate"]],template:function(Le,R){1&Le&&(e.TgZ(0,"div",0),e.YNc(1,P,4,2,"ng-container",1),e.TgZ(2,"p-fileUpload",2,3),e.NdJ("uploadHandler",function(me){return R.onFileUpload(me)})("onSelect",function(me){return R.onSelect(me)})("onError",function(me){return R.onError(me)}),e.YNc(4,q,5,2,"ng-template",4)(5,Y,1,1,"ng-template",5),e.qZA(),e.TgZ(6,"div",6)(7,"div",7)(8,"input",8,9),e.NdJ("change",function(me){return R.onFileSelect(me)}),e.qZA(),e.TgZ(10,"label",10),e._UZ(11,"i",11),e._uU(12),e.ALo(13,"translate"),e.qZA()(),e.YNc(14,K,6,3,"ng-container",1)(15,ne,6,3,"ng-container",1),e.qZA(),e.YNc(16,ee,2,0,"ng-container",1),e.qZA()),2&Le&&(e.xp6(),e.Q6J("ngIf",R.showHeaderInformation),e.xp6(),e.Q6J("ngClass",e.VKq(21,$,R.uploading))("hidden",!R.showDropZone)("auto",R.autoUpload)("fileLimit",R.fileLimit)("maxFileSize",R.maxFileSize)("disabled",R.disabled)("accept",R.allowedFileTypes),e.xp6(5),e.Q6J("hidden",!R.showFileSelectButton),e.xp6(),e.s9C("id",R.fileId),e.Q6J("readOnly",R.disabled)("disabled",R.disabled)("accept",R.allowedFileTypes),e.xp6(2),e.s9C("for",R.fileId),e.Q6J("ngClass",R.disabled?"upload-disabled":""),e.xp6(2),e.Oqu(e.lcZ(13,19,R.buttonLbl)),e.xp6(2),e.Q6J("ngIf",!R.autoUpload),e.xp6(),e.Q6J("ngIf",R.showRemoveButton),e.xp6(),e.Q6J("ngIf",R.uploading))},dependencies:[o.mk,o.sg,o.O5,x.pW,c.Pi,u.jx,m.p,c.X$,b.p],styles:[".upload-information[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.file-choose-row[_ngcontent-%COMP%]{margin-bottom:15px;display:flex}.file-choose-row[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{margin-right:10px}.file-choose-row[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]   .imx-button.with-icon[_ngcontent-%COMP%]{line-height:34px}.file-choose-row[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]   .imx-button.with-icon[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:14px;top:calc(50% - 6px)}.file-choose-row[_ngcontent-%COMP%]   .inputfile[_ngcontent-%COMP%]{width:.1px;height:.1px;opacity:0;overflow:hidden}.base-upload-wrapper[_ngcontent-%COMP%]{min-width:275px}  p-fileupload.hide{visibility:hidden;display:none}  p-fileupload .imx-file-upload .p-fileupload-buttonbar{display:none}  p-fileupload .imx-file-upload .p-fileupload-content{min-height:150px;max-width:300px;border:2px dashed #ced4e0;border-radius:2px;background:#fff;margin-bottom:10px}  p-fileupload .imx-file-upload .p-fileupload-content.p-fileupload-highlight{border:3px dashed #0a2663}  p-fileupload .imx-file-upload .p-fileupload-content .p-fileupload-files{width:100%}  p-fileupload .imx-file-upload .p-fileupload-content .drop-zone-description{cursor:pointer;text-align:center;margin:20px 0}  p-fileupload .imx-file-upload .p-fileupload-content .drop-zone-description .icon{font-size:32px;color:#0a2663}  p-fileupload .imx-file-upload .p-fileupload-content .drop-zone-preview-row{display:flex;flex-direction:row;margin-bottom:10px}  p-fileupload .imx-file-upload .p-fileupload-content .drop-zone-preview-row>div{margin-right:10px;display:flex;flex-direction:row;align-items:center}  p-fileupload .imx-file-upload .p-fileupload-content .drop-zone-preview-row .drop-zone-preview-name{flex:auto;max-width:60%}.upload-disabled[_ngcontent-%COMP%]{background-color:#d3d3d3}"]})}return ge})()},90089:(gt,X,a)=>{"use strict";a.d(X,{J:()=>q});var e=a(20756),n=a(19212),s=a(96814),l=a(56223),i=a(2032),t=a(64170),p=a(92596),c=a(2901),o=a(65073),x=a(8455),u=a(82121),m=a(22194),b=a(71365);function I(j,Y){if(1&j&&n._UZ(0,"imx-base-input-label",15),2&j){const K=n.oxw(4);n.Q6J("label",K.field.label)("forId",K.field.id+"."+K.hash+"-"+K.editLanguage.name)("required",K.field.required)}}function H(j,Y){if(1&j){const K=n.EpF();n.TgZ(0,"imx-i18n-translation-tooltip",16),n.NdJ("languageApplied",function(){n.CHM(K);const ee=n.oxw(4);return n.KtG(ee.toggleTranslationTooltip())}),n.qZA()}if(2&j){const K=n.oxw(4);n.Q6J("formHandler",K.formHandler)("currentLanguage",K.editLanguage)("control",K.control)}}function O(j,Y){if(1&j&&(n.TgZ(0,"mat-hint"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&j){const K=n.oxw(4);n.xp6(),n.Oqu(n.lcZ(2,1,K.field.hint))}}function P(j,Y){if(1&j&&(n.TgZ(0,"mat-hint",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&j){const K=Y.ngIf,ne=n.oxw(5);n.xp6(),n.hij(" ",n.xi3(2,1,"imxplatform.common-entity.edit.validation."+K,ne.getObjectForKey(K)),"")}}function G(j,Y){if(1&j&&(n.ynx(0),n._UZ(1,"imx-predefined-input-error",14),n.YNc(2,P,3,4,"mat-hint",17),n.BQk()),2&j){const K=n.oxw(4);n.xp6(),n.Q6J("errors",K.getChildErrors(K.editLanguage.name)),n.xp6(),n.Q6J("ngIf",K.getFirstGroupErrorKey())}}function B(j,Y){if(1&j){const K=n.EpF();n.TgZ(0,"mat-form-field",2),n.YNc(1,I,1,3,"imx-base-input-label",3),n._UZ(2,"imx-lockable-input",4),n.TgZ(3,"div",5)(4,"input",6),n.NdJ("keydown.meta.alt.l",function(){n.CHM(K);const ee=n.oxw(3);return n.KtG(ee.toggleTranslationTooltip())})("blur",function(ee){n.CHM(K);const $=n.oxw(3);return n.KtG($.i18nBlur.emit(ee))}),n.qZA(),n.TgZ(5,"a",7),n.NdJ("click",function(){n.CHM(K);const ee=n.oxw(3);return n.KtG(ee.toggleTranslationTooltip())}),n._UZ(6,"span",8),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"div",9),n._UZ(9,"span",10),n.qZA(),n.TgZ(10,"div",11),n._UZ(11,"img",12),n.qZA(),n.YNc(12,H,1,3,"imx-i18n-translation-tooltip",13),n.qZA(),n.YNc(13,O,3,3,"mat-hint",0),n._UZ(14,"imx-predefined-input-error",14),n.YNc(15,G,3,2,"ng-container",0),n.qZA()}if(2&j){const K=n.oxw(3);n.Q6J("formGroup",K.control),n.xp6(),n.Q6J("ngIf",K.field.renderLabel),n.xp6(),n.Q6J("field",K.field)("formHandler",K.formHandler)("form",K.form),n.xp6(2),n.Q6J("id",K.field.id+"."+K.hash+"-"+K.editLanguage.name)("required",K.field.required)("formControl",K.control.get(K.editLanguage.name)),n.xp6(2),n.Q6J("matTooltip",n.lcZ(7,16,"imxplatform.component.i18n-multi.show-languages")),n.xp6(4),n.Q6J("@showHide",K.isTranslationTooltipOpen?"show":"hide"),n.xp6(),n.Q6J("src","./assets/flags/"+K.editLanguage.name+".svg",n.LSH)("alt",K.editLanguage.name),n.xp6(),n.Q6J("ngIf",K.isTranslationTooltipOpen),n.xp6(),n.Q6J("ngIf",!K.control.invalid&&K.field.hint),n.xp6(),n.Q6J("errors",K.getChildErrors(K.editLanguage.name)),n.xp6(),n.Q6J("ngIf",!K.getChildErrorKeys(K.editLanguage.name))}}function ae(j,Y){if(1&j&&(n.ynx(0),n.YNc(1,B,16,18,"mat-form-field",1),n.ALo(2,"async"),n.BQk()),2&j){const K=n.oxw(2);n.xp6(),n.Q6J("ngIf",n.lcZ(2,1,K.loaded$))}}function J(j,Y){if(1&j&&(n.ynx(0),n.YNc(1,ae,3,3,"ng-container",0),n.BQk()),2&j){const K=Y.ngIf;n.xp6(),n.Q6J("ngIf",K.read)}}let q=(()=>{class j extends e.T{static#e=this.\u0275fac=(()=>{let K;return function(ee){return(K||(K=n.n5z(j)))(ee||j)}})();static#t=this.\u0275cmp=n.Xpm({type:j,selectors:[["imx-i18n-multi-input"]],inputs:{form:"form"},features:[n.qOj],decls:2,vars:3,consts:[[4,"ngIf"],[3,"formGroup",4,"ngIf"],[3,"formGroup"],[3,"label","forId","required",4,"ngIf"],[3,"field","formHandler","form"],[1,"input-wrapper"],["matInput","",3,"id","required","formControl","keydown.meta.alt.l","blur"],[1,"input-icon",3,"click"],["matTooltipPosition","above",1,"icon","icon-languageSwitch","imx-icon-middle",3,"matTooltip"],[1,"validation-icon"],[1,"icon","icon-exclamationmark"],[1,"current-language-icon"],[3,"src","alt"],[3,"formHandler","currentLanguage","control","languageApplied",4,"ngIf"],[3,"errors"],[3,"label","forId","required"],[3,"formHandler","currentLanguage","control","languageApplied"],["class","mat-mdc-error",4,"ngIf"],[1,"mat-mdc-error"]],template:function(ne,ee){1&ne&&(n.YNc(0,J,2,1,"ng-container",0),n.ALo(1,"async")),2&ne&&n.Q6J("ngIf",n.lcZ(1,1,ee.fieldPermission))},dependencies:[s.O5,l.Fj,l.JJ,l.JL,l.Q7,i.Nt,t.KE,t.bx,p.gM,l.oH,l.sg,c.u,o.$,x.J,u.a,m.F,s.Ov,b.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}"],data:{animation:e.M}})}return j})()},77020:(gt,X,a)=>{"use strict";a.d(X,{S:()=>ne});var e=a(19352),n=a(21473),s=a(20756),l=a(19212),i=a(96814),t=a(56223),p=a(64170),c=a(92596),o=a(63504),x=a(56356),u=a(2901),m=a(65073),b=a(8455),I=a(82121),H=a(22194),O=a(71365);function P(ee,$){if(1&ee&&l._UZ(0,"imx-base-input-label",14),2&ee){const ue=l.oxw(4);l.Q6J("label",ue.field.label)("forId",ue.field.id+"."+ue.hash+"-"+ue.editLanguage.name)("required",ue.field.required)}}function G(ee,$){if(1&ee){const ue=l.EpF();l.TgZ(0,"imx-i18n-translation-tooltip",15),l.NdJ("languageApplied",function(){l.CHM(ue);const Ke=l.oxw(4);return l.KtG(Ke.toggleTranslationTooltip())}),l.qZA()}if(2&ee){const ue=l.oxw(4);l.Q6J("formHandler",ue.formHandler)("currentLanguage",ue.editLanguage)("control",ue.control)}}function B(ee,$){if(1&ee&&(l.TgZ(0,"mat-hint"),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&ee){const ue=l.oxw(4);l.xp6(),l.Oqu(l.lcZ(2,1,ue.field.hint))}}function ae(ee,$){if(1&ee&&(l.TgZ(0,"mat-hint",17),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&ee){const ue=$.ngIf,ge=l.oxw(5);l.xp6(),l.hij(" ",l.xi3(2,1,"imxplatform.common-entity.edit.validation."+ue,ge.getObjectForKey(ue)),"")}}function J(ee,$){if(1&ee&&(l.ynx(0),l._UZ(1,"imx-predefined-input-error",13),l.YNc(2,ae,3,4,"mat-hint",16),l.BQk()),2&ee){const ue=l.oxw(4);l.xp6(),l.Q6J("errors",ue.getChildErrors(ue.editLanguage.name)),l.xp6(),l.Q6J("ngIf",ue.getFirstGroupErrorKey())}}const q=ee=>({focused:ee});function j(ee,$){if(1&ee){const ue=l.EpF();l.TgZ(0,"div",3),l.YNc(1,P,1,3,"imx-base-input-label",4),l._UZ(2,"imx-lockable-input",5),l.TgZ(3,"div",6)(4,"ckeditor",7),l.NdJ("focus",function(){l.CHM(ue);const Ke=l.oxw(3);return l.KtG(Ke.onFocus())})("input",function(){l.CHM(ue);const Ke=l.oxw(3);return l.KtG(Ke.onInput())})("change",function(){l.CHM(ue);const Ke=l.oxw(3);return l.KtG(Ke.onChange())})("blur",function(Ke){l.CHM(ue);const at=l.oxw(3);return at.ckEditorOnBlur(),l.KtG(at.i18nBlur.emit(Ke))})("keydown.meta.alt.l",function(){l.CHM(ue);const Ke=l.oxw(3);return l.KtG(Ke.toggleTranslationTooltip())})("ready",function(){l.CHM(ue);const Ke=l.oxw(3);return l.KtG(Ke.ready())}),l.qZA(),l.TgZ(5,"a",8),l.NdJ("click",function(){l.CHM(ue);const Ke=l.oxw(3);return l.KtG(Ke.toggleTranslationTooltip())}),l._UZ(6,"span",9),l.ALo(7,"translate"),l.qZA(),l.TgZ(8,"div",10),l._UZ(9,"img",11),l.qZA(),l.YNc(10,G,1,3,"imx-i18n-translation-tooltip",12),l.qZA(),l.YNc(11,B,3,3,"mat-hint",1),l._UZ(12,"imx-predefined-input-error",13),l.YNc(13,J,3,2,"ng-container",1),l.qZA()}if(2&ee){const ue=l.oxw(3);l.Q6J("formGroup",ue.control),l.xp6(),l.Q6J("ngIf",ue.field.renderLabel),l.xp6(),l.Q6J("field",ue.field)("formHandler",ue.formHandler)("form",ue.form),l.xp6(2),l.Q6J("id",ue.field.id+"."+ue.hash+"-"+ue.editLanguage.name)("readOnly",ue.control.get(ue.editLanguage.name).disabled)("formControl",ue.control.get(ue.editLanguage.name))("required",ue.field.required)("config",ue.ckconfig),l.xp6(),l.Q6J("ngClass",l.VKq(21,q,ue.isFocused)),l.xp6(),l.Q6J("matTooltip",l.lcZ(7,19,"imxplatform.component.i18n-multi.show-languages")),l.xp6(2),l.Q6J("@showHide",ue.isTranslationTooltipOpen?"show":"hide"),l.xp6(),l.Q6J("src","./assets/flags/"+ue.editLanguage.name+".svg",l.LSH)("alt",ue.editLanguage.name),l.xp6(),l.Q6J("ngIf",ue.isTranslationTooltipOpen),l.xp6(),l.Q6J("ngIf",!ue.control.invalid&&ue.field.hint),l.xp6(),l.Q6J("errors",ue.getChildErrors(ue.editLanguage.name)),l.xp6(),l.Q6J("ngIf",!ue.getChildErrorKeys(ue.editLanguage.name))}}function Y(ee,$){if(1&ee&&(l.ynx(0),l.YNc(1,j,14,23,"div",2),l.ALo(2,"async"),l.BQk()),2&ee){const ue=l.oxw(2);l.xp6(),l.Q6J("ngIf",l.lcZ(2,1,ue.loaded$))}}function K(ee,$){if(1&ee&&(l.ynx(0),l.YNc(1,Y,3,3,"ng-container",1),l.BQk()),2&ee){const ue=$.ngIf,ge=l.oxw();l.xp6(),l.Q6J("ngIf",ue.read&&ge.visible)}}let ne=(()=>{class ee extends s.T{constructor(ue,ge){super(),this.cd=ue,this.securityManagerService=ge,this.ckEditorReady=!1,this.languageSwitched=!1,this.ckconfig={},this.isFocused=!1,this.visible=!1}setVisible(){this.visible=!0}ngOnInit(){super.ngOnInit();const ue=this.securityManagerService.getActionsForActionPermission(n.uo.ACTION_PERM_NAME_EDITOR_TOOLBAR),ge=[];if(ue&&ue.length>0&&"*"!==ue[0]){const Le=ue.join(",").split("|");for(let R=0;R<Le.length;R++){const me=Le[R].split(","),Se=[];for(let Ue=0;Ue<me.length;Ue++){const We=me[Ue];We&&Se.push(We)}ge.push(Se)}}this.ckconfig={customConfig:"../ckeditor_imx/ckeditor_config.js"},ge.length>0&&(this.ckconfig.toolbar=ge);const Ke=this.securityManagerService.getActionsForActionPermission(n.uo.ACTION_PERM_NAME_EDITOR_WORDCOUNT_CONFIG);if(Ke&&Ke.length>0&&"*"!==Ke[0]){const at={};Ke.forEach(Le=>{const R=Le.split("=");R.length>1&&(at[R[0]]=R[1])}),this.ckconfig.wordcount=at}this.control.valueChanges.pipe((0,e.R)(this.destroy$)).subscribe(at=>{this.onChange()}),this.formHandler.formLanguage.getEditLanguageAsObservable().subscribe(at=>{this.languageSwitched=!0})}onFocus(){this.isFocused=!0}ckEditorOnBlur(){this.isFocused=!1}ready(){this.ckEditorReady=!0}onChange(){!this.ckEditorReady||this.languageSwitched?(this.control.markAsPristine(),this.languageSwitched=!1):this.cd.markForCheck()}onInput(){this.control.markAsDirty(),this.cd.markForCheck()}static#e=this.\u0275fac=function(ge){return new(ge||ee)(l.Y36(l.sBO),l.Y36(n.Xh))};static#t=this.\u0275cmp=l.Xpm({type:ee,selectors:[["imx-i18n-multi-richtext"]],inputs:{form:"form"},features:[l.qOj],decls:3,vars:3,consts:[["imx-observe-visibility","",3,"visible"],[4,"ngIf"],["class","imx-form-field",3,"formGroup",4,"ngIf"],[1,"imx-form-field",3,"formGroup"],[3,"label","forId","required",4,"ngIf"],[3,"field","formHandler","form"],[1,"input-wrapper"],["editorUrl","./assets/ckeditor/ckeditor.js",3,"id","readOnly","formControl","required","config","focus","input","change","blur","keydown.meta.alt.l","ready"],[1,"input-icon",3,"ngClass","click"],["matTooltipPosition","above",1,"icon","icon-languageSwitch","imx-icon-middle",3,"matTooltip"],[1,"current-language-icon"],[3,"src","alt"],[3,"formHandler","currentLanguage","control","languageApplied",4,"ngIf"],[3,"errors"],[3,"label","forId","required"],[3,"formHandler","currentLanguage","control","languageApplied"],["class","mat-mdc-error",4,"ngIf"],[1,"mat-mdc-error"]],template:function(ge,Ke){1&ge&&(l.TgZ(0,"div",0),l.NdJ("visible",function(){return Ke.setVisible()}),l.YNc(1,K,2,1,"ng-container",1),l.ALo(2,"async"),l.qZA()),2&ge&&(l.xp6(),l.Q6J("ngIf",l.lcZ(2,1,Ke.fieldPermission)))},dependencies:[i.mk,i.O5,t.JJ,t.JL,t.Q7,p.bx,c.gM,t.oH,t.sg,o.u,x.n,u.u,m.$,b.J,I.a,H.F,i.Ov,O.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.input-wrapper[_ngcontent-%COMP%]   .input-icon.focused[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{color:#0a2663}  :root{--ck-z-default: 1;--ck-z-modal: calc(var(--ck-z-default) + 1)}  ckeditor{width:100%;z-index:1}  ckeditor .cke{border:1px solid #ced4e0;border-radius:3px;color:#0a2663}  ckeditor .cke.cke_focus{border:1px solid #0a2663!important}  ckeditor .cke .cke_reset_all,   ckeditor .cke .cke_reset_all *,   ckeditor .cke .cke_reset_all a,   ckeditor .cke .cke_reset_all textarea{font-family:unset!important}  ckeditor .cke .cke_toolbox a.cke_combo_button:hover,   ckeditor .cke .cke_toolbox a.cke_combo_button:focus,   ckeditor .cke .cke_toolbox a.cke_combo_button:active,   ckeditor .cke .cke_toolbox a.cke_button_off:hover,   ckeditor .cke .cke_toolbox a.cke_button_off:focus,   ckeditor .cke .cke_toolbox a.cke_button_off:active{background:#eefafa!important;border:1px solid #ced4e0}  ckeditor .cke .cke_toolbox a.cke_button_on{border:1px solid #ced4e0}  ckeditor .cke .cke_resizer{border-color:transparent #0a2663 transparent transparent}  ckeditor .cke .cke_top{background:#fff;border-bottom:1px solid #ced4e0}  ckeditor .cke .cke_bottom{border-top:1px solid #ced4e0;background:#fff}  ckeditor .cke .cke_bottom a.cke_path_item:hover,   ckeditor .cke .cke_bottom a.cke_path_item:focus,   ckeditor .cke .cke_bottom a.cke_path_item:active{background:#eefafa!important}"],data:{animation:s.M}})}return ee})()},85768:(gt,X,a)=>{"use strict";a.d(X,{s:()=>q});var e=a(20756),n=a(19212),s=a(96814),l=a(56223),i=a(2032),t=a(64170),p=a(92596),c=a(2901),o=a(65073),x=a(8455),u=a(82121),m=a(22194),b=a(71365);function I(j,Y){if(1&j&&n._UZ(0,"imx-base-input-label",15),2&j){const K=n.oxw(4);n.Q6J("label",K.field.label)("forId",K.field.id+"."+K.hash+"-"+K.editLanguage.name)("required",K.field.required)}}function H(j,Y){if(1&j){const K=n.EpF();n.TgZ(0,"imx-i18n-translation-tooltip",16),n.NdJ("languageApplied",function(){n.CHM(K);const ee=n.oxw(4);return n.KtG(ee.toggleTranslationTooltip())}),n.qZA()}if(2&j){const K=n.oxw(4);n.Q6J("formHandler",K.formHandler)("currentLanguage",K.editLanguage)("control",K.control)}}function O(j,Y){if(1&j&&(n.TgZ(0,"mat-hint"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&j){const K=n.oxw(4);n.xp6(),n.Oqu(n.lcZ(2,1,K.field.hint))}}function P(j,Y){if(1&j&&(n.TgZ(0,"mat-hint",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&j){const K=Y.ngIf,ne=n.oxw(5);n.xp6(),n.hij(" ",n.xi3(2,1,"imxplatform.common-entity.edit.validation."+K,ne.getObjectForKey(K)),"")}}function G(j,Y){if(1&j&&(n.ynx(0),n._UZ(1,"imx-predefined-input-error",14),n.YNc(2,P,3,4,"mat-hint",17),n.BQk()),2&j){const K=n.oxw(4);n.xp6(),n.Q6J("errors",K.getChildErrors(K.editLanguage.name)),n.xp6(),n.Q6J("ngIf",K.getFirstGroupErrorKey())}}function B(j,Y){if(1&j){const K=n.EpF();n.TgZ(0,"mat-form-field",2),n.YNc(1,I,1,3,"imx-base-input-label",3),n._UZ(2,"imx-lockable-input",4),n.TgZ(3,"div",5)(4,"textarea",6),n.NdJ("keydown.enter",function(ee){return ee.stopPropagation()})("keydown.meta.alt.l",function(){n.CHM(K);const ee=n.oxw(3);return n.KtG(ee.toggleTranslationTooltip())})("blur",function(ee){n.CHM(K);const $=n.oxw(3);return n.KtG($.i18nBlur.emit(ee))}),n._uU(5,"        "),n.qZA(),n.TgZ(6,"a",7),n.NdJ("click",function(){n.CHM(K);const ee=n.oxw(3);return n.KtG(ee.toggleTranslationTooltip())}),n._UZ(7,"span",8),n.ALo(8,"translate"),n.qZA(),n.TgZ(9,"div",9),n._UZ(10,"span",10),n.qZA(),n.TgZ(11,"div",11),n._UZ(12,"img",12),n.qZA(),n.YNc(13,H,1,3,"imx-i18n-translation-tooltip",13),n.qZA(),n.YNc(14,O,3,3,"mat-hint",0),n._UZ(15,"imx-predefined-input-error",14),n.YNc(16,G,3,2,"ng-container",0),n.qZA()}if(2&j){const K=n.oxw(3);n.Q6J("formGroup",K.control),n.xp6(),n.Q6J("ngIf",K.field.renderLabel),n.xp6(),n.Q6J("field",K.field)("formHandler",K.formHandler)("form",K.form),n.xp6(2),n.Q6J("id",K.field.id+"."+K.hash+"-"+K.editLanguage.name)("required",K.field.required)("formControl",K.control.get(K.editLanguage.name)),n.xp6(3),n.Q6J("matTooltip",n.lcZ(8,16,"imxplatform.component.i18n-multi.show-languages")),n.xp6(4),n.Q6J("@showHide",K.isTranslationTooltipOpen?"show":"hide"),n.xp6(),n.Q6J("src","./assets/flags/"+K.editLanguage.name+".svg",n.LSH)("alt",K.editLanguage.name),n.xp6(),n.Q6J("ngIf",K.isTranslationTooltipOpen),n.xp6(),n.Q6J("ngIf",!K.control.invalid&&K.field.hint),n.xp6(),n.Q6J("errors",K.getChildErrors(K.editLanguage.name)),n.xp6(),n.Q6J("ngIf",!K.getChildErrorKeys(K.editLanguage.name))}}function ae(j,Y){if(1&j&&(n.ynx(0),n.YNc(1,B,17,18,"mat-form-field",1),n.ALo(2,"async"),n.BQk()),2&j){const K=n.oxw(2);n.xp6(),n.Q6J("ngIf",n.lcZ(2,1,K.loaded$))}}function J(j,Y){if(1&j&&(n.ynx(0),n.YNc(1,ae,3,3,"ng-container",0),n.BQk()),2&j){const K=Y.ngIf;n.xp6(),n.Q6J("ngIf",K.read)}}let q=(()=>{class j extends e.T{static#e=this.\u0275fac=(()=>{let K;return function(ee){return(K||(K=n.n5z(j)))(ee||j)}})();static#t=this.\u0275cmp=n.Xpm({type:j,selectors:[["imx-i18n-multi-textarea"]],inputs:{form:"form"},features:[n.qOj],decls:2,vars:3,consts:[[4,"ngIf"],[3,"formGroup",4,"ngIf"],[3,"formGroup"],[3,"label","forId","required",4,"ngIf"],[3,"field","formHandler","form"],[1,"input-wrapper"],["matInput","",3,"id","required","formControl","keydown.enter","keydown.meta.alt.l","blur"],[1,"input-icon",3,"click"],["matTooltipPosition","above",1,"icon","icon-languageSwitch","imx-icon-middle",3,"matTooltip"],[1,"validation-icon"],[1,"icon","icon-exclamationmark"],[1,"current-language-icon"],[3,"src","alt"],[3,"formHandler","currentLanguage","control","languageApplied",4,"ngIf"],[3,"errors"],[3,"label","forId","required"],[3,"formHandler","currentLanguage","control","languageApplied"],["class","mat-mdc-error",4,"ngIf"],[1,"mat-mdc-error"]],template:function(ne,ee){1&ne&&(n.YNc(0,J,2,1,"ng-container",0),n.ALo(1,"async")),2&ne&&n.Q6J("ngIf",n.lcZ(1,1,ee.fieldPermission))},dependencies:[s.O5,l.Fj,l.JJ,l.JL,l.Q7,i.Nt,t.KE,t.bx,p.gM,l.oH,l.sg,c.u,o.$,x.J,u.a,m.F,s.Ov,b.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}"],data:{animation:e.M}})}return j})()},65073:(gt,X,a)=>{"use strict";a.d(X,{$:()=>ae});var e=a(19212),n=a(15646),l=a(72079),i=a(19352),p=(a(45315),a(75678)),c=a(33946),o=a(20756),x=a(17700),u=a(71365),m=a(96814),b=a(50308),I=a(22194),H=a(88844);function O(J,q){if(1&J&&(e.TgZ(0,"div",10)(1,"div",11),e._UZ(2,"span",12),e.ALo(3,"stripTags"),e.qZA(),e.TgZ(4,"div",13)(5,"span"),e._uU(6),e.qZA()(),e.TgZ(7,"div",14),e._UZ(8,"img",15),e.qZA()()),2&J){const j=q.$implicit,Y=e.oxw(2);let K,ne;e.xp6(2),e.Q6J("innerHTML",e.lcZ(3,4,null==(K=Y.control.get(j))?null:K.value),e.oJD),e.xp6(4),e.Oqu(Y.getStringLength(null==(ne=Y.control.get(j))?null:ne.value)),e.xp6(2),e.Q6J("src","./assets/flags/"+j+".svg",e.LSH)("alt",j)}}function P(J,q){if(1&J&&e._UZ(0,"img",15),2&J){const j=q.$implicit;e.Q6J("src","./assets/flags/"+j+".svg",e.LSH)("alt",j)}}function G(J,q){if(1&J&&(e.ynx(0),e.TgZ(1,"p",16),e._uU(2,"imxplatform.component.i18n-multi.empty-languages"),e.qZA(),e.TgZ(3,"div",17),e.YNc(4,P,1,2,"img",18),e.qZA(),e.BQk()),2&J){const j=e.oxw(2);e.xp6(4),e.Q6J("ngForOf",j.emptyLanguages)}}function B(J,q){if(1&J){const j=e.EpF();e.TgZ(0,"div",1)(1,"div",2),e.YNc(2,O,9,6,"div",3),e.qZA(),e.TgZ(3,"div",4)(4,"div",5),e.YNc(5,G,5,1,"ng-container",6),e.qZA(),e.TgZ(6,"div",7)(7,"a",8),e.NdJ("click",function(){e.CHM(j);const K=e.oxw();return e.KtG(K.applyLanguages())}),e.TgZ(8,"span"),e._UZ(9,"imx-icon",9),e.qZA(),e._uU(10),e.ALo(11,"translate"),e.qZA()()()()}if(2&J){const j=e.oxw();e.Q6J("@ifEnterTrigger",void 0),e.xp6(2),e.Q6J("ngForOf",j.filledLanguages),e.xp6(3),e.Q6J("ngIf",j.emptyLanguages&&j.emptyLanguages.length>0),e.xp6(5),e.hij(" ",e.lcZ(11,4,"imxplatform.component.i18n-multi.apply-language-action"),"")}}let ae=(()=>{class J{constructor(j,Y){this.dialog=j,this.translationService=Y,this.languageApplied=new e.vpe,this.destroy$=new l.xQ,this.filledLanguages=[],this.emptyLanguages=[]}ngOnInit(){this.formHandler.formLanguage.getObjectLanguagesObservable().pipe((0,i.R)(this.destroy$)).subscribe(()=>this.initTooltip())}ngOnChanges(j){j.currentLanguage.firstChange||this.initTooltip()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}getStringLength(j){return"string"==typeof j?j.length:0}applyLanguages(){const j=n(this.control.get(this.currentLanguage.name).value);let Y=null!==j?j.replace(/<\S[^><]*>/g,""):"";Y.length>100&&(Y=Y.substr(0,100)+"..."),this.dialog.open(p.$,{...c.D.FORM_SMALL,data:{title:"imxplatform.component.i18n-multi.apply-language-title",text:this.translationService.instant("imxplatform.component.i18n-multi.apply-language-text",{text:Y}),confirmButtonKey:"imxplatform.component.i18n-multi.apply-language-confirm",iconClass:"icon-enter",translated:!1}}).afterClosed().subscribe(ne=>{ne&&(this.otherThanEditLanguages(this.control,this.currentLanguage.name).forEach($=>{this.control.get($).setValue(j)}),this.control.markAsTouched(),this.control.markAsDirty(),this.control.updateValueAndValidity(),this.languageApplied.emit(!0))})}initTooltip(){this.formHandler.formLanguage.getEditLanguage()&&(this.filledLanguages=[],this.emptyLanguages=[],this.otherThanEditLanguages(this.control,this.currentLanguage.name).forEach(Y=>{this.control.get(Y)&&this.control.get(Y).value&&null!=this.control.get(Y).value&&""!==this.control.get(Y).value?this.filledLanguages.push(Y):this.emptyLanguages.push(Y)}))}otherThanEditLanguages(j,Y){return Object.keys(j.value).filter(K=>K!==Y).filter(K=>"_entityType"!==K).filter(K=>"id"!==K)}static#e=this.\u0275fac=function(Y){return new(Y||J)(e.Y36(x.uw),e.Y36(u.sK))};static#t=this.\u0275cmp=e.Xpm({type:J,selectors:[["imx-i18n-translation-tooltip"]],inputs:{control:"control",formHandler:"formHandler",currentLanguage:"currentLanguage"},outputs:{languageApplied:"languageApplied"},features:[e.TTD],decls:1,vars:1,consts:[["class","form__translations-tooltip-wrapper",4,"ngIf"],[1,"form__translations-tooltip-wrapper"],[1,"form__translations-filled-languages"],["class","form__translations-language",4,"ngFor","ngForOf"],[1,"form__translations-footer"],[1,"form__translations-empty-languages"],[4,"ngIf"],[1,"form__translations-apply-languages"],[1,"txt-link",3,"click"],["icon","enter","size","small"],[1,"form__translations-language"],[1,"text","txt-grey"],[3,"innerHTML"],[1,"text-length"],[1,"flag"],[3,"src","alt"],["translate",""],[1,"flags"],[3,"src","alt",4,"ngFor","ngForOf"]],template:function(Y,K){1&Y&&e.YNc(0,B,12,6,"div",0),2&Y&&e.Q6J("ngIf",K.filledLanguages.length>0||K.emptyLanguages.length>0)},dependencies:[m.sg,m.O5,u.Pi,b.o,I.F,u.X$,H.p],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__translations-tooltip-wrapper[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 0 6px #00000040;padding:10px;z-index:2;width:100%;position:absolute;top:30px;left:0;-webkit-user-select:text;user-select:text}.form__translations-tooltip-wrapper[_ngcontent-%COMP%]   .form__translations-language[_ngcontent-%COMP%]{display:flex;border-bottom:1px solid #ced4e0;padding:5px 0}.form__translations-tooltip-wrapper[_ngcontent-%COMP%]   .form__translations-language[_ngcontent-%COMP%]:only-child{border-bottom:unset}.form__translations-tooltip-wrapper[_ngcontent-%COMP%]   .form__translations-language[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{flex:1;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.form__translations-tooltip-wrapper[_ngcontent-%COMP%]   .form__translations-language[_ngcontent-%COMP%]   .text-length[_ngcontent-%COMP%]{margin-left:8px}.form__translations-tooltip-wrapper[_ngcontent-%COMP%]   .form__translations-language[_ngcontent-%COMP%]   .text-length[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:inline-block;text-align:center;background-color:#eefafa;font-size:12px;padding:0 4px}.form__translations-tooltip-wrapper[_ngcontent-%COMP%]   .form__translations-language[_ngcontent-%COMP%]   .flag[_ngcontent-%COMP%]{margin-left:8px}.form__translations-tooltip-wrapper[_ngcontent-%COMP%]   .form__translations-language[_ngcontent-%COMP%]   .flag[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:20px;height:12px;margin-bottom:3px;margin-right:3px;vertical-align:middle}.form__translations-tooltip-wrapper[_ngcontent-%COMP%]   .form__translations-footer[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;padding:5px 0}.form__translations-tooltip-wrapper[_ngcontent-%COMP%]   .form__translations-empty-languages[_ngcontent-%COMP%]{flex-basis:50%;padding-top:5px}.form__translations-tooltip-wrapper[_ngcontent-%COMP%]   .form__translations-empty-languages[_ngcontent-%COMP%]   .flags[_ngcontent-%COMP%]{display:flex;margin-top:8px}.form__translations-tooltip-wrapper[_ngcontent-%COMP%]   .form__translations-empty-languages[_ngcontent-%COMP%]   .flags[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:20px;height:12px;margin-bottom:3px;margin-right:3px;vertical-align:middle}.form__translations-tooltip-wrapper[_ngcontent-%COMP%]   .form__translations-apply-languages[_ngcontent-%COMP%]{padding-top:5px;display:flex;flex-basis:50%;flex-direction:column;text-align:right;font-size:12px}.form__translations-tooltip-wrapper[_ngcontent-%COMP%]   .form__translations-apply-languages[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:inline-block}"],data:{animation:o.M}})}return J})()},54362:(gt,X,a)=>{"use strict";a.d(X,{H:()=>b});var e=a(19212),n=a(56223),s=a(2563),l=a(96814),i=a(2032),t=a(64170),p=a(6554),c=a(2901),o=a(82121);function x(I,H){if(1&I&&e._UZ(0,"imx-base-input-label",7),2&I){const O=e.oxw();e.Q6J("label",O.label)("forId",O.id)("required",O.required)}}const u=[[["","label-lockable",""]]],m=["[label-lockable]"];let b=(()=>{class I extends s.y{constructor(){super(...arguments),this.type="text"}toggleState(O){this.inputDisabled=O}static#e=this.\u0275fac=(()=>{let O;return function(G){return(O||(O=e.n5z(I)))(G||I)}})();static#t=this.\u0275cmp=e.Xpm({type:I,selectors:[["imx-base-input"]],inputs:{type:"type",pattern:"pattern",inputMode:"inputMode",readonly:"readonly"},features:[e._Bn([{provide:n.JU,useExisting:(0,e.Gpc)(()=>I),multi:!0}]),e.qOj],ngContentSelectors:m,decls:9,vars:11,consts:[[3,"label","forId","required",4,"ngIf"],[1,"input-wrapper"],["matInput","",3,"ngModel","pattern","id","disabled","required","readonly","ngModelChange","blur"],[1,"validation-icon"],[1,"icon","icon-exclamationmark"],[3,"hint"],[3,"errors"],[3,"label","forId","required"]],template:function(P,G){1&P&&(e.F$t(u),e.TgZ(0,"mat-form-field"),e.YNc(1,x,1,3,"imx-base-input-label",0),e.Hsn(2),e.TgZ(3,"div",1)(4,"input",2),e.NdJ("ngModelChange",function(ae){return G.model=ae})("blur",function(){return G.markAsTouched()}),e.qZA(),e.TgZ(5,"div",3),e._UZ(6,"span",4),e.qZA()(),e._UZ(7,"imx-base-input-hint",5)(8,"imx-predefined-input-error",6),e.qZA()),2&P&&(e.xp6(),e.Q6J("ngIf",G.label),e.xp6(3),e.Q6J("ngModel",G.model)("pattern",G.pattern)("id",G.id)("disabled",G.inputDisabled)("required",G.required)("readonly",G.readonly),e.uIk("type",G.type)("inputmode",G.inputMode),e.xp6(3),e.Q6J("hint",G.hint),e.xp6(),e.Q6J("errors",G.errors))},dependencies:[l.O5,n.Fj,n.JJ,n.Q7,n.c5,n.On,i.Nt,t.KE,p.g,c.u,o.a],encapsulation:2})}return I})()},13744:(gt,X,a)=>{"use strict";a.d(X,{a:()=>m});var e=a(21473),n=a(57462),s=a(41621),l=a(51100),i=a(19212),t=a(96814),p=a(56223),c=a(54362),o=a(8455);function x(b,I){if(1&b&&(i.ynx(0),i.TgZ(1,"imx-base-input",1),i._UZ(2,"imx-lockable-input",2),i.qZA(),i.BQk()),2&b){const H=i.oxw(2);i.xp6(),i.Q6J("id",H.field.id)("formControl",H.control)("disableControl",H.control.disabled)("type",H.determineType())("label",H.field.renderLabel&&!H.hideLabel?H.field.label:void 0)("inputMode",H.determineInputMode())("required",H.field.required)("hint",H.field.hint)("pattern",H.pattern)("errors",H.errors),i.xp6(),i.Q6J("field",H.field)("formHandler",H.formHandler)("form",H.form)}}function u(b,I){if(1&b&&(i.ynx(0),i.YNc(1,x,3,13,"ng-container",0),i.BQk()),2&b){const H=I.ngIf;i.xp6(),i.Q6J("ngIf",H.read)}}let m=(()=>{class b extends l.A{static determinePatternFromType(H,O,P,G){const B=P?"[\\+]?":"[\\-\\+]?";let ae;return"number"===H?ae=void 0!==O?B+"\\d*("+G+"?\\d{0,"+O+"})?":B+"\\d*("+G+"?\\d+)?":"int"===H?ae=B+"\\d*":"coordinate"===H?ae="-?\\d{0,3}"+G+"?\\d*":"price"===H?ae=void 0!==O?B+"\\d*("+G+"?\\d{1,"+O+"})?":B+"\\d*("+G+"?\\d+)?":"duration"===H&&(ae=n.Yn),ae}constructor(H){super(),this.formatterService=H}ngOnInit(){super.ngOnInit(),this.hash=(0,s.Cp)(),this.initPattern(this.field.type,this.field.validationDecimals,this.field.positiveOnly),this.originalValidator=this.control.validator}ngOnDestroy(){super.ngOnDestroy(),this.control.validator=this.originalValidator}determineType(){return"number"===this.field.type||"int"===this.field.type||"coordinate"===this.field.type||"price"===this.field.type?"text":this.field.type}initPattern(H,O,P){let G=this.formatterService.getDecimalSeparator();"."===G&&(G="\\."),this.pattern=b.determinePatternFromType(H,O,P,G)}determineInputMode(){return"number"===this.field.type||"price"===this.field.type||"coordinate"===this.field.type?"decimal":"int"===this.field.type?"numeric":void 0}static#e=this.\u0275fac=function(O){return new(O||b)(i.Y36(e.H1))};static#t=this.\u0275cmp=i.Xpm({type:b,selectors:[["imx-input"]],inputs:{form:"form"},features:[i.qOj],decls:2,vars:3,consts:[[4,"ngIf"],[3,"id","formControl","disableControl","type","label","inputMode","required","hint","pattern","errors"],["label-lockable","",3,"field","formHandler","form"]],template:function(O,P){1&O&&(i.YNc(0,u,2,1,"ng-container",0),i.ALo(1,"async")),2&O&&i.Q6J("ngIf",i.lcZ(1,1,P.fieldPermission))},dependencies:[t.O5,p.JJ,p.Q7,p.c5,p.oH,c.H,o.J,t.Ov]})}return b})()},50054:(gt,X,a)=>{"use strict";a.d(X,{m:()=>c}),a(62934),a(45315);var s=a(19212),l=a(96814),i=a(2901),t=a(8455);const p=o=>({"big-label":o});let c=(()=>{class o{static#e=this.\u0275fac=function(m){return new(m||o)};static#t=this.\u0275cmp=s.Xpm({type:o,selectors:[["imx-label-lockable"]],inputs:{field:"field",formHandler:"formHandler",form:"form",renderBig:"renderBig",label:"label"},decls:2,vars:9,consts:[[3,"label","forId","required","ngClass"],[3,"field","formHandler","form"]],template:function(m,b){1&m&&s._UZ(0,"imx-base-input-label",0)(1,"imx-lockable-input",1),2&m&&(s.Q6J("label",b.label?b.label:b.field.label)("forId",b.field.id)("required",b.field.required)("ngClass",s.VKq(7,p,b.renderBig)),s.xp6(),s.Q6J("field",b.field)("formHandler",b.formHandler)("form",b.form))},dependencies:[l.mk,i.u,t.J],styles:[".big-label[_ngcontent-%COMP%]{font-weight:700}"]})}return o})()},73192:(gt,X,a)=>{"use strict";a.d(X,{n:()=>ae});var e=a(19352),s=(a(15549),a(48499)),l=a(80750),i=a(51100),t=a(19212),p=a(17700),c=a(96814),o=a(71365);function x(J,q){1&J&&(t.TgZ(0,"span"),t._uU(1,"*"),t.qZA())}function u(J,q){if(1&J&&(t.TgZ(0,"label",7),t._uU(1),t.YNc(2,x,2,0,"span",0),t.qZA()),2&J){const j=t.oxw(3);t.uIk("for",j.field.id),t.xp6(),t.Oqu(j.field.label),t.xp6(),t.Q6J("ngIf",j.field.required)}}function m(J,q){1&J&&(t.TgZ(0,"span",8),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&J&&(t.xp6(),t.Oqu(t.lcZ(2,1,"imxplatform.component.language-select.no-language")))}function b(J,q){if(1&J&&(t.TgZ(0,"div",9)(1,"div",10)(2,"span"),t._uU(3),t.qZA()(),t.TgZ(4,"span"),t._uU(5),t.ALo(6,"translate"),t.qZA()()),2&J){const j=t.oxw(3);t.xp6(3),t.Oqu(j.selectedItems.length),t.xp6(2),t.Oqu(t.lcZ(6,2,"imxplatform.component.language-select.all"))}}function I(J,q){1&J&&t._UZ(0,"img",13),2&J&&t.Q6J("src","./assets/flags/"+q.$implicit.label+".svg",t.LSH)}function H(J,q){if(1&J&&(t.TgZ(0,"div",11),t.YNc(1,I,1,1,"img",12),t.qZA()),2&J){const j=t.oxw(3);t.xp6(),t.Q6J("ngForOf",j.selectedItems)}}function O(J,q){1&J&&(t.TgZ(0,"div",14),t._UZ(1,"span",15),t.qZA())}const P=J=>({"read-only":J});function G(J,q){if(1&J){const j=t.EpF();t.ynx(0),t.YNc(1,u,3,3,"label",1),t.TgZ(2,"div",2),t.NdJ("click",function(){t.CHM(j);const K=t.oxw(2);return t.KtG(K.field.renderAsReadOnly||K.control.disabled?"":K.openDialog())}),t.YNc(3,m,3,3,"span",3)(4,b,7,4,"div",4)(5,H,2,1,"div",5)(6,O,2,0,"div",6),t.qZA(),t.BQk()}if(2&J){const j=t.oxw(2);t.xp6(),t.Q6J("ngIf",j.field.renderLabel),t.xp6(),t.Q6J("ngClass",t.VKq(6,P,j.field.renderAsReadOnly||j.control.disabled)),t.xp6(),t.Q6J("ngIf",0==j.selectedItems.length),t.xp6(),t.Q6J("ngIf",j.areAllSelected()),t.xp6(),t.Q6J("ngIf",!j.areAllSelected()&&0!=j.selectedItems.length),t.xp6(),t.Q6J("ngIf",!j.field.renderAsReadOnly&&!j.control.disabled)}}function B(J,q){if(1&J&&(t.ynx(0),t.YNc(1,G,7,8,"ng-container",0),t.BQk()),2&J){const j=q.ngIf;t.xp6(),t.Q6J("ngIf",j.read)}}let ae=(()=>{class J extends i.A{constructor(j,Y){super(),this.dialog=j,this.changeDetectorRef=Y,this.items=[],this.selectedItems=[]}ngOnInit(){super.ngOnInit(),this.initProviders(),this.formHandler.getLanguageFormControl().valueChanges.pipe((0,e.R)(this.destroy$)).subscribe(j=>this.initProviders()),this.control.valueChanges.pipe((0,e.R)(this.destroy$)).subscribe(j=>this.initProviders())}openDialog(){this.field.readOnly||this.dialog.open(l.s,{maxWidth:600,data:{showConfigurationCheckboxes:!1,useObjectLanguages:!0,formLanguageHandler:this.formHandler.formLanguage,allowSaveEmptyArray:!0,selectedLanguageIds:this.selectedItems.map(Y=>Y.value)}}).afterClosed().subscribe(Y=>{null!=Y&&Y.selectedLanguages&&(this.selectedItems=Y.selectedLanguages.map(K=>({value:K.id,label:K.name})),this.control.setValue(Y.selectedLanguages.map(K=>K.id)))})}areAllSelected(){return this.items.length>0&&this.selectedItems.length>0&&this.items.length===this.selectedItems.length}initProviders(){this.optionProvider instanceof s.I1?this.optionProvider.getOptions(this.formHandler.baseObject,this.control.parent.value).pipe((0,e.R)(this.destroy$)).subscribe(j=>this.initOptions(j)):this.optionProvider instanceof Array?(this.items=this.optionProvider,this.selectedItems=this.items.filter(j=>this.control.value.find(Y=>Y===j.value))):this.optionProvider instanceof Function?this.optionProvider(this.formHandler.baseObject).pipe((0,e.R)(this.destroy$)).subscribe(j=>this.initOptions(j)):this.optionProvider instanceof s.K$&&this.optionProvider.getOptions(this.formHandler).pipe((0,e.R)(this.destroy$)).subscribe(j=>this.initOptions(j)),this.control.value||this.control.setValue([])}initOptions(j){this.items=j,this.selectedItems=j.filter(Y=>this.control.value&&this.control.value.find(K=>K===Y.value)),this.changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(Y){return new(Y||J)(t.Y36(p.uw),t.Y36(t.sBO))};static#t=this.\u0275cmp=t.Xpm({type:J,selectors:[["ng-component"]],hostAttrs:[1,"imx-language-select"],inputs:{form:"form",field:"field",optionProvider:"optionProvider"},features:[t.qOj],decls:2,vars:3,consts:[[4,"ngIf"],["translate","",4,"ngIf"],[1,"language-select-wrapper",3,"ngClass","click"],["class","select-nothing",4,"ngIf"],["class","select-all",4,"ngIf"],["class","select-options",4,"ngIf"],["class","select-button",4,"ngIf"],["translate",""],[1,"select-nothing"],[1,"select-all"],[1,"number"],[1,"select-options"],["class","language-icon",3,"src",4,"ngFor","ngForOf"],[1,"language-icon",3,"src"],[1,"select-button"],[1,"open-dialog","icon-more1"]],template:function(Y,K){1&Y&&(t.YNc(0,B,2,1,"ng-container",0),t.ALo(1,"async")),2&Y&&t.Q6J("ngIf",t.lcZ(1,1,K.fieldPermission))},dependencies:[c.mk,c.sg,c.O5,o.Pi,c.Ov,o.X$],styles:[".language-select-wrapper[_ngcontent-%COMP%]{cursor:pointer;width:100%;display:flex}.language-select-wrapper.read-only[_ngcontent-%COMP%]{cursor:unset}.language-select-wrapper[_ngcontent-%COMP%]   .select-nothing[_ngcontent-%COMP%], .language-select-wrapper[_ngcontent-%COMP%]   .select-all[_ngcontent-%COMP%]{font-size:12px;width:85%}.language-select-wrapper[_ngcontent-%COMP%]   .select-all[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]{width:20px;height:12px;margin-right:5px;background-color:#eefafa;font-size:12px;line-height:12px;text-align:center;display:inline-block}.language-select-wrapper[_ngcontent-%COMP%]   .select-button[_ngcontent-%COMP%]{position:relative}.language-select-wrapper[_ngcontent-%COMP%]   .select-button[_ngcontent-%COMP%]   .open-dialog[_ngcontent-%COMP%]{position:absolute;font-size:12px;top:calc(50% - 6px);color:#0a2663}.language-select-wrapper[_ngcontent-%COMP%]   .select-options[_ngcontent-%COMP%]{width:85%}.language-select-wrapper[_ngcontent-%COMP%]   .select-options[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:12px}.language-select-wrapper[_ngcontent-%COMP%]   .select-options[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-bottom:3px;margin-right:3px;vertical-align:middle}"]})}return J})()},30555:(gt,X,a)=>{"use strict";a.d(X,{A:()=>B});var e=a(78337),n=a(19212),s=a(56223),l=a(15646),t=a(48499),p=a(2563),c=a(71365),o=a(96814),x=a(59038),u=a(67338),m=a(1614);const b=ae=>({selected:ae});function I(ae,J){if(1&ae){const q=n.EpF();n.TgZ(0,"mat-list-option",12),n.NdJ("dblclick",function(){const K=n.CHM(q).$implicit,ne=n.oxw();return n.KtG(ne.leftNodeDblClick(K))})("click",function(){const K=n.CHM(q).$implicit,ne=n.oxw();return n.KtG(ne.onLeftNodeSelection(K))}),n._uU(1),n.ALo(2,"readI18n"),n.qZA()}if(2&ae){const q=J.$implicit,j=n.oxw();n.Q6J("ngClass",n.VKq(4,b,j.leftSelectionModel.isSelected(q))),n.xp6(),n.hij(" ",n.lcZ(2,2,q.label)," ")}}function H(ae,J){if(1&ae){const q=n.EpF();n.TgZ(0,"mat-list-option",12),n.NdJ("dblclick",function(){const K=n.CHM(q).$implicit,ne=n.oxw();return n.KtG(ne.rightNodeDblClick(K))})("click",function(){const K=n.CHM(q).$implicit,ne=n.oxw();return n.KtG(ne.onRightNodeSelection(K))}),n._uU(1),n.ALo(2,"readI18n"),n.qZA()}if(2&ae){const q=J.$implicit,j=n.oxw();n.Q6J("ngClass",n.VKq(4,b,j.rightSelectionModel.isSelected(q))),n.xp6(),n.hij(" ",n.lcZ(2,2,q.label)," ")}}const O=()=>({width:"100%",height:"100%"}),P=ae=>({readonly:ae}),G=ae=>({"ng-invalid":ae});let B=(()=>{class ae extends p.y{set sortNodesFn(q){this._sortNodesFn=q||t.f$}set displayNodeFn(q){this._displayNodeFn=q||this.defaultDisplayFn}set options(q){this.allItems=q,this.leftDataSource.data=l(this.allItems)}set availableItems(q){const j=l(q);this.allItems=j.map(Y=>({value:Y.id,label:this._displayNodeFn(Y,this.translateService.currentLang)})).sort((Y,K)=>this._sortNodesFn(Y,K,this.translateService.currentLang)),this.leftDataSource.data=l(this.allItems)}constructor(q){super(),this.translateService=q,this._sortNodesFn=t.f$,this._displayNodeFn=this.defaultDisplayFn,this.leftDataSource={data:[]},this.rightDataSource={data:[]},this.allItems=[],this.incomingValues=[],this.disabledList=!1}initListComponents(){this.leftDataSource.data=l(this.allItems),this.leftSelectionModel=new e.Ov(!0),this.rightDataSource.data=[],this.rightSelectionModel=new e.Ov(!0)}ngOnChanges(q){super.ngOnChanges(q),this.handleIncomingValues()}handleIncomingValues(){if(this.leftDataSource.data.length>0&&this.incomingValues.length>0){const q=new e.Ov(!0);this.incomingValues.forEach(j=>{const Y=this.getNodeFromList(j,this.leftDataSource);Y&&q.select(Y)}),this.shuffleToList(q,this.leftDataSource,this.rightDataSource),this.incomingValues=[]}}registerOnChange(q){this.propagateChange=q}registerOnTouched(q){}toggleState(q){this.disabledList=q}writeValue(q){this.initListComponents(),null!=q&&(this.incomingValues="string"==typeof q?q.split(",").map(j=>Number.parseInt(j)):q,this.handleIncomingValues())}shuffleLTR(){this.shuffleToList(this.leftSelectionModel,this.leftDataSource,this.rightDataSource),this.leftSelectionModel.clear(),this.rightSelectionModel.clear(),this.propagateValues()}shuffleAllLTR(){this.shuffleAll(this.leftDataSource,this.rightDataSource),this.leftSelectionModel.clear(),this.rightSelectionModel.clear(),this.propagateValues()}shuffleRTL(){this.shuffleToList(this.rightSelectionModel,this.rightDataSource,this.leftDataSource),this.leftSelectionModel.clear(),this.rightSelectionModel.clear(),this.propagateValues()}shuffleAllRTL(){this.shuffleAll(this.rightDataSource,this.leftDataSource),this.leftSelectionModel.clear(),this.rightSelectionModel.clear(),this.propagateValues()}shuffleToList(q,j,Y){q.selected.forEach(K=>{null==this.getNodeFromList(K.value,Y)?(this.copyToList(K,Y),this.removeFromList(K,j)):this.removeFromList(K,j)}),Y.data.sort((K,ne)=>this._sortNodesFn(K,ne,this.translateService.currentLang)),j.data.sort((K,ne)=>this._sortNodesFn(K,ne,this.translateService.currentLang))}shuffleAll(q,j){q.data.forEach(Y=>{void 0===this.getNodeFromList(Y.value,j)?(this.copyToList(Y,j),this.removeFromList(Y,q)):this.removeFromList(Y,q)}),j.data.sort((Y,K)=>this._sortNodesFn(Y,K,this.translateService.currentLang)),q.data.sort((Y,K)=>this._sortNodesFn(Y,K,this.translateService.currentLang))}propagateValues(){let q=[];this.rightDataSource.data.length>0&&(q=this.rightDataSource.data.map(j=>j.value)),this.propagateChange(q)}copyToList(q,j){const Y=this.copyNode(q);return j.data.push(Y),Y}removeFromList(q,j){j.data=j.data.filter(Y=>Y.value!==q.value)}getNodeFromList(q,j){return j.data.find(Y=>Y.value===q)}copyNode(q){return Object.assign({},q)}onLeftNodeSelection(q){this.disabledList||this.leftSelectionModel.toggle(q)}onRightNodeSelection(q){this.disabledList||this.rightSelectionModel.toggle(q)}leftNodeDblClick(q){this.disabledList||(this.leftSelectionModel.toggle(q),this.shuffleLTR())}rightNodeDblClick(q){this.disabledList||(this.rightSelectionModel.toggle(q),this.shuffleRTL())}defaultDisplayFn(q,j){return q&&q.i18nName?q.i18nName:q.id.toString()}static#e=this.\u0275fac=function(j){return new(j||ae)(n.Y36(c.sK))};static#t=this.\u0275cmp=n.Xpm({type:ae,selectors:[["imx-base-list-shuffle"]],hostAttrs:[1,"imx-base-list-shuffle"],inputs:{sortNodesFn:"sortNodesFn",displayNodeFn:"displayNodeFn",options:"options",availableItems:"availableItems"},features:[n._Bn([{provide:s.JU,useExisting:(0,n.Gpc)(()=>ae),multi:!0}]),n.qOj,n.TTD],decls:20,vars:20,consts:[[1,"list-shuffle"],[1,"list-group-wrapper"],["translate",""],[1,"list-group"],["dense","",1,"hide-checkbox"],["ngFor","",3,"ngForOf"],[1,"button-column",3,"ngClass"],[1,"icon-file-shuffleRight","imx-icon-middle",3,"ngClass","click"],[1,"icon-file-shuffleLeft","imx-icon-middle",3,"ngClass","click"],[1,"icon-files-shuffleRight","imx-icon-middle",3,"click"],[1,"icon-files-shuffleLeft","imx-icon-middle",3,"click"],[1,"list-group",3,"ngClass"],[3,"ngClass","dblclick","click"]],template:function(j,Y){1&j&&(n.TgZ(0,"div",0)(1,"div",1)(2,"label",2),n._uU(3,"imxplatform.component.tree-shuffle.available"),n.qZA(),n.TgZ(4,"div",3)(5,"p-scrollPanel")(6,"mat-selection-list",4),n.YNc(7,I,3,6,"ng-template",5),n.qZA()()()(),n.TgZ(8,"div",6)(9,"span",7),n.NdJ("click",function(){return Y.disabledList?void 0:Y.shuffleLTR()}),n.qZA(),n.TgZ(10,"span",8),n.NdJ("click",function(){return Y.disabledList?void 0:Y.shuffleRTL()}),n.qZA(),n.TgZ(11,"span",9),n.NdJ("click",function(){return Y.disabledList?void 0:Y.shuffleAllLTR()}),n.qZA(),n.TgZ(12,"span",10),n.NdJ("click",function(){return Y.disabledList?void 0:Y.shuffleAllRTL()}),n.qZA()(),n.TgZ(13,"div",1)(14,"label",2),n._uU(15,"imxplatform.component.tree-shuffle.assigned"),n.qZA(),n.TgZ(16,"div",11)(17,"p-scrollPanel")(18,"mat-selection-list",4),n.YNc(19,H,3,6,"ng-template",5),n.qZA()()()()()),2&j&&(n.xp6(5),n.Akn(n.DdM(10,O)),n.xp6(2),n.Q6J("ngForOf",Y.leftDataSource.data),n.xp6(),n.Q6J("ngClass",n.VKq(11,P,Y.disabledList)),n.xp6(),n.Q6J("ngClass",n.VKq(13,P,Y.leftSelectionModel.isEmpty())),n.xp6(),n.Q6J("ngClass",n.VKq(15,P,Y.rightSelectionModel.isEmpty())),n.xp6(6),n.Q6J("ngClass",n.VKq(17,G,null!=Y.errors)),n.xp6(),n.Akn(n.DdM(19,O)),n.xp6(2),n.Q6J("ngForOf",Y.rightDataSource.data))},dependencies:[o.mk,o.sg,x.Ub,x.vS,c.Pi,u.P,m.j],styles:[".list-shuffle[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;max-height:100%}.list-shuffle[_ngcontent-%COMP%]   .list-group-wrapper[_ngcontent-%COMP%]{flex:calc(50% - 20px) 0 0;overflow:hidden}.list-shuffle[_ngcontent-%COMP%]   .list-group-wrapper[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:5px}.list-shuffle[_ngcontent-%COMP%]   .list-group-wrapper[_ngcontent-%COMP%]   .list-group[_ngcontent-%COMP%]{width:100%;height:30vh;overflow:hidden;border:1px solid #ced4e0;background-color:#fff}.list-shuffle[_ngcontent-%COMP%]   .list-group-wrapper[_ngcontent-%COMP%]   .list-group.ng-invalid[_ngcontent-%COMP%]{border:1px solid #96172e}.list-shuffle[_ngcontent-%COMP%]   .button-column[_ngcontent-%COMP%]{align-self:flex-start;display:flex;flex-direction:column;margin:15px 10px;color:#0a2663}.list-shuffle[_ngcontent-%COMP%]   .button-column[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{cursor:pointer;margin-top:8px}.list-shuffle[_ngcontent-%COMP%]   .button-column.readonly[_ngcontent-%COMP%]{color:#ced4e0}.list-shuffle[_ngcontent-%COMP%]   .button-column.readonly[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{cursor:inherit}.list-shuffle[_ngcontent-%COMP%]   .button-column[_ngcontent-%COMP%] > span.readonly[_ngcontent-%COMP%]{color:#ced4e0}.list-shuffle[_ngcontent-%COMP%]   .mat-list-option[_ngcontent-%COMP%]     .mat-mdc-list-text{word-break:break-all}.mat-mdc-list-item-disabled[_ngcontent-%COMP%]{background-color:#fff}"]})}return ae})()},34446:(gt,X,a)=>{"use strict";a.d(X,{x:()=>I});var e=a(19212),n=a(56223),s=a(49193),l=a(21473),i=a(27556),t=a(48499),p=a(51100),c=a(96814),o=a(30555),x=a(50054);function u(H,O){if(1&H&&(e.ynx(0),e._UZ(1,"imx-label-lockable",1)(2,"imx-base-list-shuffle",2),e.BQk()),2&H){const P=e.oxw(2);e.xp6(),e.Q6J("field",P.field)("formHandler",P.formHandler)("form",P.formHandler.formGroup)("renderBig",!0),e.xp6(),e.Q6J("options",P.options)("formControl",P.control)("disableControl",P.disableControl)("sortNodesFn",P.sortNodesFn?P.sortNodesFn:void 0)("required",P.field.required)("hint",P.field.hint)("errors",P.errors)}}function m(H,O){if(1&H&&(e.ynx(0),e.YNc(1,u,3,11,"ng-container",0),e.BQk()),2&H){const P=O.ngIf;e.xp6(),e.Q6J("ngIf",P.read)}}const b=(0,l.jl)("ListShuffleComponent",i.H.name);let I=(()=>{class H extends p.A{constructor(){super(...arguments),this.disableControl=!1}ngOnChanges(P){P.optionProvider&&this.initializeOptions()}ngOnInit(){super.ngOnInit(),(!this.formHandler||!this.control||!this.field)&&b.warn("Cannot create the ListShuffleComponent: One of  Formhandler, Field or control is null. Check all @Input values!"),this.initializeOptions()}initializeOptions(){let P;this.optionProvider instanceof t.I1?P=this.optionProvider.getOptions(this.formHandler.baseObject,this.control.parent.value):this.optionProvider instanceof Array?P=(0,s.of)(this.optionProvider):this.optionProvider instanceof Function?P=this.optionProvider(this.formHandler.baseObject):this.optionProvider instanceof t.K$&&(P=this.optionProvider.getOptions(this.formHandler)),P.subscribe(G=>this.options=G)}static#e=this.\u0275fac=(()=>{let P;return function(B){return(P||(P=e.n5z(H)))(B||H)}})();static#t=this.\u0275cmp=e.Xpm({type:H,selectors:[["imx-list-shuffle"]],hostAttrs:[1,"imx-list-shuffle"],inputs:{optionProvider:"optionProvider",sortNodesFn:"sortNodesFn",disableControl:"disableControl"},features:[e._Bn([{provide:n.JU,useExisting:(0,e.Gpc)(()=>H),multi:!0}]),e.qOj,e.TTD],decls:2,vars:3,consts:[[4,"ngIf"],[3,"field","formHandler","form","renderBig"],[3,"options","formControl","disableControl","sortNodesFn","required","hint","errors"]],template:function(G,B){1&G&&(e.YNc(0,m,2,1,"ng-container",0),e.ALo(1,"async")),2&G&&e.Q6J("ngIf",e.lcZ(1,1,B.fieldPermission))},dependencies:[c.O5,n.JJ,n.Q7,n.oH,o.A,x.m,c.Ov]})}return H})()},8455:(gt,X,a)=>{"use strict";a.d(X,{J:()=>G});var e=a(49193),s=(a(1009),a(62192)),i=(a(62934),a(19212)),t=a(96814),p=a(92596),c=a(22194),o=a(71365);function x(B,ae){1&B&&i.GkF(0)}function u(B,ae){if(1&B){const J=i.EpF();i.ynx(0),i.TgZ(1,"a",4),i.NdJ("click",function(){i.CHM(J);const j=i.oxw(2);return i.KtG(j.toggle())}),i.YNc(2,x,1,0,"ng-container",5),i.qZA(),i.BQk()}if(2&B){i.oxw(2);const J=i.MAs(2);i.xp6(2),i.Q6J("ngTemplateOutlet",J)}}function m(B,ae){1&B&&i.GkF(0)}function b(B,ae){if(1&B&&(i.TgZ(0,"span",6),i.YNc(1,m,1,0,"ng-container",5),i.qZA()),2&B){i.oxw(2);const J=i.MAs(2);i.xp6(),i.Q6J("ngTemplateOutlet",J)}}function I(B,ae){if(1&B&&(i.ynx(0),i.YNc(1,u,3,1,"ng-container",2),i.ALo(2,"async"),i.YNc(3,b,2,1,"ng-template",null,3,i.W1O),i.BQk()),2&B){const J=i.MAs(4),q=i.oxw();i.xp6(),i.Q6J("ngIf",i.lcZ(2,2,q.hasEditPermission$))("ngIfElse",J)}}function H(B,ae){if(1&B&&(i._UZ(0,"span",7),i.ALo(1,"translate")),2&B){const J=i.oxw();i.Q6J("ngClass",J.currentIcon+(J.isLocked?" locked":""))("matTooltip",i.lcZ(1,2,J.isLocked?"imxplatform.component.lockable-input.locked":"imxplatform.component.lockable-input.unlocked"))}}const O="icon-lock",P="icon-unlock";let G=(()=>{class B{constructor(){this.isLocked=!1,this.hasEditPermission$=(0,e.of)(!1),this.currentIcon=P}ngOnInit(){if(this.field.lockable){const J=this.formHandler.readLockedImportProperties();this.isLocked=J.some(q=>q===this.field.lockableId),this.currentIcon=this.isLocked?O:P,this.hasEditPermission$=this.formHandler instanceof s.p?this.formHandler.hasEditPermission(this.field.permissionId):(0,e.of)(!1)}}toggle(){this.isLocked=!this.isLocked,this.currentIcon=this.isLocked?O:P,this.isLocked?this.formHandler.appendLockImportProperty(this.field.lockableId):this.formHandler.removeLockImportProperty(this.field.lockableId),this.form.markAsDirty()}static#e=this.\u0275fac=function(q){return new(q||B)};static#t=this.\u0275cmp=i.Xpm({type:B,selectors:[["imx-lockable-input"]],inputs:{field:"field",formHandler:"formHandler",form:"form"},decls:3,vars:1,consts:[[4,"ngIf"],["lockableIcon",""],[4,"ngIf","ngIfElse"],["readonly",""],[1,"lockable-icon",3,"click"],[4,"ngTemplateOutlet"],[1,"lockable-icon","readonly"],["matTooltipPosition","above",1,"icon","imx-icon-small",3,"ngClass","matTooltip"]],template:function(q,j){1&q&&i.YNc(0,I,5,4,"ng-container",0)(1,H,2,4,"ng-template",null,1,i.W1O),2&q&&i.Q6J("ngIf",j.field.lockable)},dependencies:[t.mk,t.O5,t.tP,p.gM,c.F,t.Ov,o.X$],styles:[".lockable-icon[_ngcontent-%COMP%]{margin-left:5px;width:35px}.readonly[_ngcontent-%COMP%]{cursor:unset}.locked[_ngcontent-%COMP%]{font-weight:700}"]})}return B})()},41593:(gt,X,a)=>{"use strict";a.d(X,{x:()=>o});var e=a(69862),n=a(19212),l=(a(45315),a(59143)),i=a(96814),t=a(82621),p=a(71365);function c(x,u){if(1&x&&n._UZ(0,"img",7),2&x){const m=n.oxw();n.Q6J("src",m.formGroup.get(m.imagePathFieldName).value,n.LSH)}}let o=(()=>{class x{constructor(m,b){this.changeDetectorRef=m,this.userMessageService=b,this.allowedFileTypes="image/*",this.uploadType="logoUpload",this.uploadComplete=new n.vpe}uploadFinished(m){m&&!(m instanceof e.UA)&&(!m[0].exception&&m[0].processResult&&(m[0].processResult.fileName&&null!==this.fileFieldName&&(this.formGroup.get(this.fileFieldName).setValue(m[0].processResult.fileName),this.formGroup.get(this.fileFieldName).markAsDirty()),m[0].processResult.fileUrl&&null!==this.imagePathFieldName&&(this.formGroup.get(this.imagePathFieldName).setValue(m[0].processResult.fileUrl),this.formGroup.get(this.imagePathFieldName).markAsDirty())),this.uploadComplete.emit(m))}removeCurrentImage(){null!==this.fileFieldName&&(this.formGroup.get(this.fileFieldName).setValue(null),this.formGroup.get(this.fileFieldName).markAsDirty()),null!==this.imagePathFieldName&&(this.formGroup.get(this.imagePathFieldName).setValue(null),this.formGroup.get(this.imagePathFieldName).markAsDirty())}static#e=this.\u0275fac=function(b){return new(b||x)(n.Y36(n.sBO),n.Y36(l.Y))};static#t=this.\u0275cmp=n.Xpm({type:x,selectors:[["imx-logo-upload"]],inputs:{allowedFileTypes:"allowedFileTypes",fileFieldName:"fileFieldName",imagePathFieldName:"imagePathFieldName",uploadType:"uploadType",formGroup:"formGroup",formHandler:"formHandler"},outputs:{uploadComplete:"uploadComplete"},decls:12,vars:13,consts:[[1,"image-upload-wrapper"],[3,"type","headerText","allowedFileTypes","allowMultipleFiles","showHeaderInformation","autoUpload","uploadComplete"],[1,"image-upload-wrapper__remove"],[1,"imx-button","prio3","file-remove-button",3,"disabled","click"],[1,"icon","icon-trash"],[1,"image-upload-wrapper__image"],["alt","",3,"src",4,"ngIf"],["alt","",3,"src"]],template:function(b,I){1&b&&(n.TgZ(0,"div",0)(1,"imx-base-upload",1),n.NdJ("uploadComplete",function(O){return I.uploadFinished(O)}),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",2)(4,"button",3),n.NdJ("click",function(){return I.removeCurrentImage()}),n._UZ(5,"i",4),n._uU(6),n.ALo(7,"translate"),n.qZA()(),n.TgZ(8,"div",5)(9,"figure")(10,"picture"),n.YNc(11,c,1,1,"img",6),n.qZA()()()()),2&b&&(n.xp6(),n.Q6J("type",I.uploadType)("headerText",n.lcZ(2,9,"imxplatform.dialog.image-choose"))("allowedFileTypes",I.allowedFileTypes)("allowMultipleFiles",!1)("showHeaderInformation",!0)("autoUpload",!0),n.xp6(3),n.Q6J("disabled",!I.fileFieldName||!I.formGroup.get(I.fileFieldName)||!I.formGroup.get(I.fileFieldName).value),n.xp6(2),n.hij(" ",n.lcZ(7,11,"imxplatform.dialog.image-delete"),""),n.xp6(5),n.Q6J("ngIf",I.imagePathFieldName&&I.formGroup.get(I.imagePathFieldName)&&I.formGroup.get(I.imagePathFieldName).value))},dependencies:[i.O5,t.B,p.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.image-upload-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.image-upload-wrapper__remove[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end}.image-upload-wrapper__remove[_ngcontent-%COMP%] > .file-remove-button[_ngcontent-%COMP%]{margin-bottom:15px}.image-upload-wrapper__image[_ngcontent-%COMP%]{width:120px}.image-upload-wrapper__image[_ngcontent-%COMP%] > figure[_ngcontent-%COMP%]{height:0;padding-bottom:100%;position:relative}.image-upload-wrapper__image[_ngcontent-%COMP%] > figure[_ngcontent-%COMP%] > picture[_ngcontent-%COMP%]{display:block;height:100%;position:absolute;width:100%}.image-upload-wrapper__image[_ngcontent-%COMP%] > figure[_ngcontent-%COMP%] > picture[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{height:100%;object-fit:cover;width:100%}"]})}return x})()},67849:(gt,X,a)=>{"use strict";a.d(X,{x:()=>x});var e=a(19212),n=a(56223),s=a(2563),l=a(2032),i=a(64170),t=a(50308),p=a(6554),c=a(2901),o=a(82121);let x=(()=>{class u extends s.y{static#e=this.\u0275fac=(()=>{let b;return function(H){return(b||(b=e.n5z(u)))(H||u)}})();static#t=this.\u0275cmp=e.Xpm({type:u,selectors:[["imx-base-multi-input"]],features:[e._Bn([{provide:n.JU,useExisting:(0,e.Gpc)(()=>u),multi:!0}]),e.qOj],decls:9,vars:9,consts:[[3,"label","forId","required"],[1,"input-wrapper"],["matInput","",3,"ngModel","id","disabled","required","ngModelChange","blur"],[1,"validation-icon"],["icon","exclamationmark","size","small"],[3,"hint"],[3,"errors"]],template:function(I,H){1&I&&(e.TgZ(0,"mat-form-field"),e._UZ(1,"imx-base-input-label",0),e.TgZ(2,"div",1)(3,"textarea",2),e.NdJ("ngModelChange",function(P){return H.model=P})("blur",function(){return H.markAsTouched()}),e._uU(4,"              "),e.qZA(),e.TgZ(5,"div",3),e._UZ(6,"imx-icon",4),e.qZA()(),e._UZ(7,"imx-base-input-hint",5)(8,"imx-predefined-input-error",6),e.qZA()),2&I&&(e.xp6(),e.Q6J("label",H.label)("forId",H.id)("required",H.required),e.xp6(2),e.Q6J("ngModel",H.model)("id",H.id)("disabled",H.disableControl)("required",H.required),e.xp6(4),e.Q6J("hint",H.hint),e.xp6(),e.Q6J("errors",H.errors))},dependencies:[n.Fj,n.JJ,n.Q7,n.On,l.Nt,i.KE,t.o,p.g,c.u,o.a],encapsulation:2})}return u})()},40869:(gt,X,a)=>{"use strict";a.d(X,{L:()=>H});var e=a(41621),n=a(51100),s=a(19212),l=a(96814),i=a(56223),t=a(2032),p=a(64170),c=a(71365);function o(O,P){1&O&&(s.TgZ(0,"span"),s._uU(1,"*"),s.qZA())}function x(O,P){if(1&O&&(s.TgZ(0,"label",9),s._uU(1),s.YNc(2,o,2,0,"span",0),s.qZA()),2&O){const G=s.oxw(3);s.uIk("for",G.field.id+"."+G.hash),s.xp6(),s.Oqu(G.field.label),s.xp6(),s.Q6J("ngIf",G.field.required)}}function u(O,P){if(1&O&&(s.TgZ(0,"mat-hint"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&O){const G=s.oxw(3);s.xp6(),s.Oqu(s.lcZ(2,1,G.field.hint))}}function m(O,P){if(1&O&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&O){const G=P.$implicit,B=s.oxw(3);s.xp6(),s.Oqu(s.xi3(2,1,"imxplatform.common-entity.edit.validation."+G,B.getObjectForKey(G)))}}function b(O,P){if(1&O&&(s.TgZ(0,"mat-form-field",2),s.YNc(1,x,3,3,"label",3),s.TgZ(2,"div",4)(3,"textarea",5),s._uU(4,"            "),s.qZA(),s.TgZ(5,"div",6),s._UZ(6,"span",7),s.qZA()(),s.YNc(7,u,3,3,"mat-hint",0)(8,m,3,4,"mat-error",8),s.qZA()),2&O){const G=s.oxw(2);s.Q6J("formGroup",G.form),s.xp6(),s.Q6J("ngIf",G.field.renderLabel),s.xp6(2),s.Q6J("id",G.field.id+"."+G.hash)("required",G.field.required)("formControl",G.control),s.xp6(4),s.Q6J("ngIf",G.field.hint),s.xp6(),s.Q6J("ngForOf",G.getErrorKeys())}}function I(O,P){if(1&O&&(s.ynx(0),s.YNc(1,b,9,7,"mat-form-field",1),s.BQk()),2&O){const G=P.ngIf;s.xp6(),s.Q6J("ngIf",G.read)}}let H=(()=>{class O extends n.A{ngOnInit(){super.ngOnInit(),this.hash=(0,e.Cp)()}static#e=this.\u0275fac=(()=>{let G;return function(ae){return(G||(G=s.n5z(O)))(ae||O)}})();static#t=this.\u0275cmp=s.Xpm({type:O,selectors:[["imx-multi-input"]],inputs:{form:"form"},features:[s.qOj],decls:2,vars:3,consts:[[4,"ngIf"],[3,"formGroup",4,"ngIf"],[3,"formGroup"],["translate","",4,"ngIf"],[1,"input-wrapper"],["matInput","",3,"id","required","formControl"],[1,"validation-icon"],[1,"icon","icon-exclamationmark"],[4,"ngFor","ngForOf"],["translate",""]],template:function(B,ae){1&B&&(s.YNc(0,I,2,1,"ng-container",0),s.ALo(1,"async")),2&B&&s.Q6J("ngIf",s.lcZ(1,1,ae.fieldPermission))},dependencies:[l.sg,l.O5,i.Fj,i.JJ,i.JL,i.Q7,t.Nt,p.KE,p.bx,p.TO,i.oH,i.sg,c.Pi,l.Ov,c.X$]})}return O})()},98259:(gt,X,a)=>{"use strict";a.d(X,{O:()=>G});var e=a(36116),n=a(19212),s=a(96814),l=a(56223),i=a(64170),t=a(59038),p=a(71365),c=a(67338),o=a(1614);function x(B,ae){1&B&&(n.TgZ(0,"span"),n._uU(1,"*"),n.qZA())}function u(B,ae){if(1&B&&(n.TgZ(0,"label",5),n._uU(1),n.YNc(2,x,2,0,"span",0),n.qZA()),2&B){const J=n.oxw(3);n.uIk("for",J.field.id),n.xp6(),n.Oqu(J.field.label),n.xp6(),n.Q6J("ngIf",J.field.required)}}const m=B=>({selected:B});function b(B,ae){if(1&B&&(n.TgZ(0,"mat-list-option",6),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"readI18n"),n.qZA()),2&B){const J=ae.$implicit,q=n.oxw(3);n.Q6J("ngClass",n.VKq(9,m,q.isSelected(J.value)))("disableRipple",q.control.disabled)("disabled",q.control.disabled)("value",J.value),n.xp6(),n.hij(" ",n.lcZ(2,5,n.lcZ(3,7,J.label))," ")}}function I(B,ae){if(1&B&&(n.TgZ(0,"mat-hint"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&B){const J=n.oxw(3);n.xp6(),n.Oqu(n.lcZ(2,1,J.field.hint))}}const H=()=>({width:"100%",height:"100%"});function O(B,ae){if(1&B&&(n.ynx(0),n.YNc(1,u,3,3,"label",1),n.TgZ(2,"div",2)(3,"p-scrollPanel")(4,"mat-selection-list",3),n.YNc(5,b,4,11,"ng-template",4),n.ALo(6,"async"),n.qZA()()(),n.YNc(7,I,3,3,"mat-hint",0),n.BQk()),2&B){const J=n.oxw(2);n.xp6(),n.Q6J("ngIf",J.field.renderLabel),n.xp6(2),n.Akn(n.DdM(9,H)),n.xp6(),n.Q6J("id",J.field.id)("formControl",J.control),n.xp6(),n.Q6J("ngForOf",n.lcZ(6,7,J.options$)),n.xp6(2),n.Q6J("ngIf",J.field.hint)}}function P(B,ae){if(1&B&&(n.ynx(0),n.YNc(1,O,8,10,"ng-container",0),n.BQk()),2&B){const J=ae.ngIf;n.xp6(),n.Q6J("ngIf",J.read)}}let G=(()=>{class B extends e.H{isSelected(J){return this.control.value&&this.control.value.find(q=>q===J)||!1}static#e=this.\u0275fac=(()=>{let J;return function(j){return(J||(J=n.n5z(B)))(j||B)}})();static#t=this.\u0275cmp=n.Xpm({type:B,selectors:[["imx-multi-select"]],hostAttrs:[1,"imx-multi-select"],features:[n.qOj],decls:2,vars:3,consts:[[4,"ngIf"],["translate","",4,"ngIf"],[1,"list-group"],["dense","",3,"id","formControl"],["ngFor","",3,"ngForOf"],["translate",""],[3,"ngClass","disableRipple","disabled","value"]],template:function(q,j){1&q&&(n.YNc(0,P,2,1,"ng-container",0),n.ALo(1,"async")),2&q&&n.Q6J("ngIf",n.lcZ(1,1,j.fieldPermission))},dependencies:[s.mk,s.sg,s.O5,l.JJ,i.bx,t.Ub,t.vS,l.oH,p.Pi,c.P,s.Ov,p.X$,o.j],styles:["[_nghost-%COMP%]{display:block}.mat-mdc-list-item-disabled[_ngcontent-%COMP%]{background-color:#fff}.list-group[_ngcontent-%COMP%]{width:100%;height:20vh;overflow:hidden;border:1px solid #ced4e0;border-radius:3px;background-color:#fff}.readonly-text[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:first-child   .separator[_ngcontent-%COMP%]{display:none}"],changeDetection:0})}return B})()},20717:(gt,X,a)=>{"use strict";a.d(X,{W:()=>ee});var e=a(19352),n=a(67276),s=a(48499),l=a(46009),i=a(19212),t=a(96814),p=a(56223),c=a(23680),o=a(64170),x=a(98525),u=a(71365),m=a(82121),b=a(22194),I=a(1614);function H($,ue){1&$&&(i.TgZ(0,"span"),i._uU(1,"*"),i.qZA())}function O($,ue){if(1&$&&(i.TgZ(0,"div",5)(1,"span",6),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"readI18n"),i.qZA()()),2&$){const ge=ue.$implicit;i.xp6(2),i.Oqu(i.lcZ(3,1,i.lcZ(4,3,ge.label)))}}function P($,ue){if(1&$&&(i.TgZ(0,"span",2),i._uU(1),i.YNc(2,H,2,0,"span",1),i.qZA(),i.TgZ(3,"div",3),i.YNc(4,O,5,5,"div",4),i.qZA()),2&$){const ge=i.oxw();i.xp6(),i.Oqu(ge.field.label),i.xp6(),i.Q6J("ngIf",ge.field.required),i.xp6(2),i.Q6J("ngForOf",ge.selectedItems)}}function G($,ue){1&$&&(i.TgZ(0,"span"),i._uU(1,"*"),i.qZA())}function B($,ue){if(1&$&&(i.TgZ(0,"label",2),i._uU(1),i.YNc(2,G,2,0,"span",1),i.qZA()),2&$){const ge=i.oxw(3);i.uIk("for",ge.field.id),i.xp6(),i.Oqu(ge.field.label),i.xp6(),i.Q6J("ngIf",ge.field.required)}}function ae($,ue){if(1&$&&(i.TgZ(0,"mat-option",14),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"readI18n"),i.qZA()),2&$){const ge=ue.$implicit;i.Q6J("value",ge.value),i.xp6(),i.hij(" ",i.lcZ(2,2,i.lcZ(3,4,ge.label))," ")}}function J($,ue){if(1&$&&(i.TgZ(0,"mat-hint"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&$){const ge=i.oxw(3);i.xp6(),i.Oqu(i.lcZ(2,1,ge.field.hint))}}function q($,ue){if(1&$){const ge=i.EpF();i.TgZ(0,"a",16),i.NdJ("click",function(){i.CHM(ge);const at=i.oxw().$implicit,Le=i.oxw(4);return i.KtG(Le.removeSelected(at.value))}),i.qZA()}}function j($,ue){if(1&$&&(i.TgZ(0,"div",5)(1,"span",6),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"readI18n"),i.qZA(),i.YNc(5,q,1,0,"a",15),i.qZA()),2&$){const ge=ue.$implicit,Ke=i.oxw(4);i.xp6(2),i.Oqu(i.lcZ(3,2,i.lcZ(4,4,ge.label))),i.xp6(3),i.Q6J("ngIf",Ke.control.enabled&&Ke.isEditable(ge.value))}}function Y($,ue){if(1&$&&(i.TgZ(0,"div",3),i.YNc(1,j,6,6,"div",4),i.qZA()),2&$){const ge=i.oxw(3);i.xp6(),i.Q6J("ngForOf",ge.selectedItems)}}function K($,ue){if(1&$){const ge=i.EpF();i.ynx(0),i.TgZ(1,"mat-form-field",8),i.YNc(2,B,3,3,"label",9),i.TgZ(3,"mat-select",10),i.NdJ("selectionChange",function(at){i.CHM(ge);const Le=i.oxw(2);return i.KtG(Le.onSelectionChanged(at))}),i.YNc(4,ae,4,6,"mat-option",11),i.qZA(),i.YNc(5,J,3,3,"mat-hint",1),i._UZ(6,"imx-predefined-input-error",12),i.qZA(),i.YNc(7,Y,2,1,"div",13),i.BQk()}if(2&$){const ge=i.oxw().ngIf,Ke=i.oxw();i.xp6(),i.Q6J("formGroup",Ke.form),i.xp6(),i.Q6J("ngIf",Ke.field.renderLabel&&Ke.field.label),i.xp6(),i.Q6J("id",Ke.field.id)("disabled",Ke.control.disabled)("required",Ke.field.required)("value",Ke.SELECT_PLACEHOLDER_VALUE),i.xp6(),i.Q6J("ngForOf",Ke.items),i.xp6(),i.Q6J("ngIf",Ke.field.hint&&Ke.control.enabled&&!Ke.control.errors),i.xp6(),i.Q6J("errors",Ke.control.errors),i.xp6(),i.Q6J("ngIf",ge.read)}}function ne($,ue){if(1&$&&(i.ynx(0),i.YNc(1,K,8,10,"ng-container",7),i.BQk()),2&$){const ge=ue.ngIf,Ke=i.oxw(),at=i.MAs(1);i.xp6(),i.Q6J("ngIf",ge.read&&!Ke.field.readOnly)("ngIfElse",at)}}let ee=(()=>{class $ extends l.X{constructor(ge){super(),this.changeDetectorRef=ge,this.SELECT_PLACEHOLDER_VALUE=n.F,this.items=[],this.visibleItems=[],this.selectedItems=[]}ngOnInit(){super.ngOnInit(),this.initProviders(),this.control.valueChanges.pipe((0,e.R)(this.destroy$)).subscribe(ge=>this.updateSelected())}onSelectionChanged(ge){const Ke=Number.parseInt(ge.value,10);if(!Number.isNaN(Ke)&&Ke>n.F){const at=this.control.value??[];at.push(Ke),this.updateValueAndSetDirty(at.filter((Le,R)=>at.indexOf(Le)===R))}else{const at=this.control.value;at.push(ge.value),this.updateValueAndSetDirty(at.filter((Le,R)=>at.indexOf(Le)===R))}ge.source.writeValue(n.F)}removeSelected(ge){this.updateValueAndSetDirty(this.control.value.filter(Ke=>Ke!==ge))}initProviders(){this.items.push(this.field.placeholder?{value:n.F,label:this.field.placeholder}:{value:n.F,label:"imxplatform.common.select-placeholder-demand"}),this.initItems(this.optionProvider,this.items),this.initItems(this.optionProviderForVisibles,this.visibleItems)}initItems(ge,Ke){ge instanceof s.I1?ge.getOptions(this.formHandler.baseObject,this.control.parent.value).pipe((0,e.R)(this.destroy$)).subscribe(at=>{Ke.push(...at),this.updateSelected()}):ge instanceof Array?(Ke.push(...ge),this.updateSelected()):ge instanceof Function?ge(this.formHandler.baseObject).pipe((0,e.R)(this.destroy$)).subscribe(at=>{Ke.push(...at),this.updateSelected()}):ge instanceof s.K$&&ge.getOptions(this.formHandler).pipe((0,e.R)(this.destroy$)).subscribe(at=>{Ke.push(...at),this.updateSelected()})}isEditable(ge){return void 0!==this.items.find(Ke=>Ke.value===ge)}updateValueAndSetDirty(ge){this.control.setValue(ge),this.control.markAsTouched(),this.control.markAsDirty()}updateSelected(){this.selectedItems=[];const ge=this.control.value;ge&&(ge.forEach(Ke=>{let at=this.visibleItems.find(Le=>Le.value===Ke);at?this.selectedItems.push(at):(at=this.items.find(Le=>Le.value===Ke),at&&this.selectedItems.push(at))}),this.changeDetectorRef.markForCheck())}static#e=this.\u0275fac=function(Ke){return new(Ke||$)(i.Y36(i.sBO))};static#t=this.\u0275cmp=i.Xpm({type:$,selectors:[["ng-component"]],inputs:{form:"form",optionProvider:"optionProvider",optionProviderForVisibles:"optionProviderForVisibles"},features:[i.qOj],decls:4,vars:3,consts:[["renderReadonly",""],[4,"ngIf"],["translate",""],[1,"selected-items-wrapper"],["class","selected-item",4,"ngFor","ngForOf"],[1,"selected-item"],[1,"label"],[4,"ngIf","ngIfElse"],[3,"formGroup"],["translate","",4,"ngIf"],[3,"id","disabled","required","value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"errors"],["class","selected-items-wrapper",4,"ngIf"],[3,"value"],["class","icon icon-crossBold",3,"click",4,"ngIf"],[1,"icon","icon-crossBold",3,"click"]],template:function(Ke,at){1&Ke&&(i.YNc(0,P,5,3,"ng-template",null,0,i.W1O)(2,ne,2,2,"ng-container",1),i.ALo(3,"async")),2&Ke&&(i.xp6(2),i.Q6J("ngIf",i.lcZ(3,1,at.fieldPermission)))},dependencies:[t.sg,t.O5,p.JL,c.ey,o.KE,o.bx,x.gD,p.sg,u.Pi,m.a,b.F,t.Ov,u.X$,I.j],styles:[".selected-items-wrapper[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;padding-top:5px}.selected-items-wrapper[_ngcontent-%COMP%]   .selected-item[_ngcontent-%COMP%]{padding:3px 8px;background-color:#0a266333;border-radius:20px;margin-right:5px}.selected-items-wrapper[_ngcontent-%COMP%]   .selected-item[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{color:#000;font-size:12px;margin-right:5px}.selected-items-wrapper[_ngcontent-%COMP%]   .selected-item[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{color:#0a2663;font-size:10px;padding:5px}"]})}return $})()},82121:(gt,X,a)=>{"use strict";a.d(X,{a:()=>t});var e=a(19212),n=a(96814),s=a(84634),l=a(71365);function i(p,c){if(1&p&&(e._UZ(0,"imx-base-input-error",1),e.ALo(1,"translate")),2&p){const o=c.$implicit,x=e.oxw();e.Q6J("errorMessage",e.xi3(1,1,"imxplatform.common-entity.edit.validation."+o,x.getErrorObjectForErrorKey(o)))}}let t=(()=>{class p{constructor(){this.errors=null}get errorKeys(){return this.errors?Object.keys(this.errors):[]}getErrorObjectForErrorKey(o){return this.errors?this.errors[o]:void 0}static#e=this.\u0275fac=function(x){return new(x||p)};static#t=this.\u0275cmp=e.Xpm({type:p,selectors:[["imx-predefined-input-error"]],inputs:{errors:"errors"},decls:1,vars:1,consts:[[3,"errorMessage",4,"ngFor","ngForOf"],[3,"errorMessage"]],template:function(x,u){1&x&&e.YNc(0,i,2,4,"imx-base-input-error",0),2&x&&e.Q6J("ngForOf",u.errorKeys)},dependencies:[n.sg,s.o,l.X$],encapsulation:2})}return p})()},33118:(gt,X,a)=>{"use strict";a.d(X,{q:()=>G});var e=a(19212),n=a(56223),s=a(2563),l=a(96814),i=a(87466),t=a(6554),p=a(2901),c=a(82121),o=a(71365),x=a(1614);const u=["customLabel"];function m(B,ae){1&B&&e.GkF(0)}const b=B=>({$implicit:B});function I(B,ae){if(1&B&&(e.ynx(0),e.YNc(1,m,1,0,"ng-container",8),e.BQk()),2&B){const J=e.oxw().$implicit,q=e.oxw();e.xp6(),e.Q6J("ngTemplateOutlet",q.customLabel)("ngTemplateOutletContext",e.VKq(2,b,J))}}function H(B,ae){if(1&B&&(e._uU(0),e.ALo(1,"translate"),e.ALo(2,"readI18n")),2&B){const J=e.oxw().$implicit;e.hij(" ",e.lcZ(1,1,e.lcZ(2,3,J.label))," ")}}function O(B,ae){if(1&B&&(e.TgZ(0,"mat-radio-button",5),e.YNc(1,I,2,4,"ng-container",6)(2,H,3,5,"ng-template",null,7,e.W1O),e.qZA()),2&B){const J=ae.$implicit,q=e.MAs(3),j=e.oxw();e.Q6J("value",J.value),e.xp6(),e.Q6J("ngIf",j.customLabel)("ngIfElse",q)}}const P=B=>({inline:B});let G=(()=>{class B extends s.y{constructor(){super(),this.radioButtons=[],this.mode="block",this.innerControl=new n.p4,this.innerControl.valueChanges.subscribe(J=>{this.propagateChange(J)})}ngOnInit(){0!==this.radioButtons.length&&(this.options=this.radioButtons.map(J=>({value:J.value,label:J.label})))}writeValue(J){super.writeValue(J),this.innerControl.setValue(J,{emitEvent:!1})}toggleState(J){J?this.innerControl.disable({onlySelf:!0,emitEvent:!1}):this.innerControl.enable({onlySelf:!0,emitEvent:!1})}static#e=this.\u0275fac=function(q){return new(q||B)};static#t=this.\u0275cmp=e.Xpm({type:B,selectors:[["imx-base-radio-button-group"]],contentQueries:function(q,j,Y){if(1&q&&e.Suo(Y,u,5),2&q){let K;e.iGM(K=e.CRH())&&(j.customLabel=K.first)}},inputs:{options:"options",radioButtons:"radioButtons",mode:"mode"},features:[e._Bn([{provide:n.JU,useExisting:(0,e.Gpc)(()=>B),multi:!0}]),e.qOj],decls:5,vars:14,consts:[[3,"label","forId","required"],[3,"ngClass","formControl","id","required"],[3,"value",4,"ngFor","ngForOf"],[3,"hint"],[3,"errors"],[3,"value"],[4,"ngIf","ngIfElse"],["defaultLabel",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(q,j){1&q&&(e._UZ(0,"imx-base-input-label",0),e.TgZ(1,"mat-radio-group",1),e.YNc(2,O,4,3,"mat-radio-button",2),e.qZA(),e._UZ(3,"imx-base-input-hint",3)(4,"imx-predefined-input-error",4)),2&q&&(e.Q6J("label",j.label)("forId",j.id)("required",j.required),e.xp6(),e.Tol("small"),e.Q6J("ngClass",e.VKq(12,P,"inline"===j.mode))("formControl",j.innerControl)("id",j.id)("required",j.required),e.xp6(),e.Q6J("ngForOf",j.options),e.xp6(),e.Q6J("hint",j.hint),e.xp6(),e.Q6J("errors",j.errors))},dependencies:[l.mk,l.sg,l.O5,l.tP,n.JJ,n.Q7,i.VQ,i.U0,n.oH,t.g,p.u,c.a,o.X$,x.j],styles:["mat-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:5px}mat-radio-group.inline[_ngcontent-%COMP%]{flex-direction:row}mat-radio-button[_ngcontent-%COMP%]:not(:last-child){margin-bottom:10px}mat-radio-group.inline[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]:not(:last-child){margin-right:10px}"]})}return B})()},22989:(gt,X,a)=>{"use strict";a.d(X,{C:()=>B});var e=a(49193),n=a(21473),s=a(27556),l=a(48499),i=a(51100),t=a(19212),p=a(96814),c=a(56223),o=a(33118),x=a(71365),u=a(1614);function m(ae,J){if(1&ae&&(t.TgZ(0,"span")(1,"span",4),t._uU(2,", "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.ALo(5,"readI18n"),t.qZA()),2&ae){const q=t.oxw().$implicit;t.xp6(3),t.hij("",t.lcZ(4,1,t.lcZ(5,3,q.label))," ")}}function b(ae,J){if(1&ae&&t.YNc(0,m,6,5,"span",1),2&ae){const q=J.$implicit,j=t.oxw(2);t.Q6J("ngIf",j.isSelected(q.value))}}function I(ae,J){if(1&ae&&(t.TgZ(0,"div",2),t.YNc(1,b,1,1,"ng-template",3),t.ALo(2,"async"),t.qZA()),2&ae){const q=t.oxw();t.xp6(),t.Q6J("ngForOf",t.lcZ(2,1,q.options$))}}function H(ae,J){if(1&ae&&(t.ynx(0),t._UZ(1,"imx-base-radio-button-group",6),t.ALo(2,"async"),t.BQk()),2&ae){const q=t.oxw(3);t.xp6(),t.Q6J("formControl",q.control)("disableControl",q.disableControl)("options",t.lcZ(2,8,q.options$))("label",q.field.renderLabel?q.field.label:void 0)("required",q.field.required)("hint",q.field.hint)("mode",q.field.groupRenderMode)("errors",q.errors)}}function O(ae,J){if(1&ae&&(t.ynx(0),t.YNc(1,H,3,10,"ng-container",5),t.BQk()),2&ae){const q=t.oxw(2),j=t.MAs(1);t.xp6(),t.Q6J("ngIf",!q.field.renderValueAsLabel)("ngIfElse",j)}}function P(ae,J){if(1&ae&&(t.ynx(0),t.YNc(1,O,2,2,"ng-container",1),t.BQk()),2&ae){const q=J.ngIf;t.xp6(),t.Q6J("ngIf",q.read)}}const G=(0,n.jl)("RadioButtonGroupComponent",s.H.name);let B=(()=>{class ae extends i.A{constructor(){super(...arguments),this.disableControl=!1}ngOnChanges(q){q.optionProvider&&this.initializeOptions()}ngOnInit(){super.ngOnInit(),(!this.form||!this.formHandler||!this.control||!this.field)&&G.warn("Cannot create the radio-button-group field: One of Form, Formhandler, Field or control is null. Check all @Input values for radio-button-group.component.ts for field"),this.initializeOptions()}initializeOptions(){this.optionProvider instanceof l.I1?this.options$=this.optionProvider.getOptions(this.formHandler.baseObject,this.control.parent.value):this.optionProvider instanceof Array?this.options$=(0,e.of)(this.optionProvider):this.optionProvider instanceof Function?this.options$=this.optionProvider(this.formHandler.baseObject):this.optionProvider instanceof l.K$&&(this.options$=this.optionProvider.getOptions(this.formHandler))}isSelected(q){return this.control.value===q}static#e=this.\u0275fac=(()=>{let q;return function(Y){return(q||(q=t.n5z(ae)))(Y||ae)}})();static#t=this.\u0275cmp=t.Xpm({type:ae,selectors:[["imx-radio-button-group"]],hostAttrs:[1,"imx-radio-button-group"],inputs:{form:"form",optionProvider:"optionProvider",disableControl:"disableControl"},features:[t.qOj,t.TTD],decls:4,vars:3,consts:[["renderValueAsLabel",""],[4,"ngIf"],[1,"readonly-text"],["ngFor","",3,"ngForOf"],[1,"separator"],[4,"ngIf","ngIfElse"],[3,"formControl","disableControl","options","label","required","hint","mode","errors"]],template:function(j,Y){1&j&&(t.YNc(0,I,3,3,"ng-template",null,0,t.W1O)(2,P,2,1,"ng-container",1),t.ALo(3,"async")),2&j&&(t.xp6(2),t.Q6J("ngIf",t.lcZ(3,1,Y.fieldPermission)))},dependencies:[p.sg,p.O5,c.JJ,c.Q7,c.oH,o.q,p.Ov,x.X$,u.j],styles:["[_nghost-%COMP%]{display:block}.readonly-text[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:first-child   .separator[_ngcontent-%COMP%]{display:none}"]})}return ae})()},29087:(gt,X,a)=>{"use strict";a.d(X,{Z:()=>I});var e=a(19212),n=a(56223),s=a(2563),l=a(96814),i=a(2032),t=a(64170),p=a(6554),c=a(2901),o=a(82121),x=a(1614);function u(H,O){if(1&H){const P=e.EpF();e.ynx(0),e.TgZ(1,"textarea",7),e.NdJ("blur",function(){e.CHM(P);const B=e.oxw(2);return e.KtG(B.markAsTouched())}),e.ALo(2,"readI18n"),e._uU(3,"          "),e.qZA(),e.BQk()}if(2&H){const P=e.oxw().ngIf,G=e.oxw();e.xp6(),e.Q6J("ngModel",e.xi3(2,5,G.model,P.name))("id",G.id)("disabled",!0)("required",G.required),e.uIk("type","text")}}function m(H,O){if(1&H){const P=e.EpF();e.ynx(0),e.TgZ(1,"input",7),e.NdJ("blur",function(){e.CHM(P);const B=e.oxw(2);return e.KtG(B.markAsTouched())}),e.ALo(2,"readI18n"),e.qZA(),e.BQk()}if(2&H){const P=e.oxw().ngIf,G=e.oxw();e.xp6(),e.Q6J("ngModel",e.xi3(2,5,G.model,P.name))("id",G.id)("disabled",!0)("required",G.required),e.uIk("type","text")}}function b(H,O){if(1&H&&(e.ynx(0),e.TgZ(1,"mat-form-field"),e._UZ(2,"imx-base-input-label",1),e.TgZ(3,"div",2),e.YNc(4,u,4,8,"ng-container",0)(5,m,3,8,"ng-container",0),e.TgZ(6,"div",3),e._UZ(7,"img",4),e.qZA()(),e._UZ(8,"imx-base-input-hint",5)(9,"imx-predefined-input-error",6),e.qZA(),e.BQk()),2&H){const P=O.ngIf,G=e.oxw();e.xp6(2),e.Q6J("label",G.label)("forId",G.id)("required",G.required),e.xp6(2),e.Q6J("ngIf",G.textArea),e.xp6(),e.Q6J("ngIf",!G.textArea),e.xp6(2),e.Q6J("src","./assets/flags/"+P.name+".svg",e.LSH),e.xp6(),e.Q6J("hint",G.hint),e.xp6(),e.Q6J("errors",G.errors)}}let I=(()=>{class H extends s.y{static#e=this.\u0275fac=(()=>{let P;return function(B){return(P||(P=e.n5z(H)))(B||H)}})();static#t=this.\u0275cmp=e.Xpm({type:H,selectors:[["imx-base-read-only-i18n-input"]],inputs:{i18nLanguage:"i18nLanguage",textArea:"textArea"},features:[e._Bn([{provide:n.JU,useExisting:(0,e.Gpc)(()=>H),multi:!0}]),e.qOj],decls:2,vars:3,consts:[[4,"ngIf"],[3,"label","forId","required"],[1,"input-wrapper"],[1,"current-language-icon"],[3,"src"],[3,"hint"],[3,"errors"],["matInput","",3,"ngModel","id","disabled","required","blur"]],template:function(G,B){1&G&&(e.YNc(0,b,10,8,"ng-container",0),e.ALo(1,"async")),2&G&&e.Q6J("ngIf",e.lcZ(1,1,B.i18nLanguage))},dependencies:[l.O5,n.Fj,n.JJ,n.Q7,n.On,i.Nt,t.KE,p.g,c.u,o.a,l.Ov,x.j],styles:["[_nghost-%COMP%]     .current-language-icon{right:5px}"]})}return H})()},61880:(gt,X,a)=>{"use strict";a.d(X,{Q:()=>t});var e=a(19212),n=a(56223),s=a(86073),l=a(2901),i=a(71365);let t=(()=>{class p extends s.B{static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=e.n5z(p)))(u||p)}})();static#t=this.\u0275cmp=e.Xpm({type:p,selectors:[["imx-base-read-only"]],inputs:{id:"id",label:"label",customModel:"customModel"},features:[e._Bn([{provide:n.JU,useExisting:(0,e.Gpc)(()=>p),multi:!0}]),e.qOj],decls:5,vars:7,consts:[[3,"label","forId"],[1,"ro"]],template:function(x,u){1&x&&(e._UZ(0,"imx-base-input-label",0),e.ALo(1,"translate"),e.TgZ(2,"span",1),e._uU(3),e.ALo(4,"translate"),e.qZA()),2&x&&(e.Q6J("label",e.lcZ(1,3,u.label)+":")("forId",u.id),e.xp6(3),e.Oqu(null!=u.customModel?u.customModel:u.model?u.model:e.lcZ(4,5,"imxplatform.common.no-value")))},dependencies:[l.u,i.X$],styles:[".ro[_ngcontent-%COMP%]{font-size:12px;line-height:16px;margin-left:5px;color:#0a2663}"]})}return p})()},78029:(gt,X,a)=>{"use strict";a.d(X,{f:()=>c});var e=a(46009),n=a(19212),s=a(96814),l=a(56223),i=a(61880);function t(o,x){if(1&o&&(n.ynx(0),n._UZ(1,"imx-base-read-only",1),n.BQk()),2&o){const u=n.oxw(2);n.xp6(),n.Q6J("formControl",u.control)("label",u.field.renderLabel?u.field.label:void 0)}}function p(o,x){if(1&o&&(n.ynx(0),n.YNc(1,t,2,2,"ng-container",0),n.BQk()),2&o){const u=x.ngIf;n.xp6(),n.Q6J("ngIf",u.read)}}let c=(()=>{class o extends e.X{static#e=this.\u0275fac=(()=>{let u;return function(b){return(u||(u=n.n5z(o)))(b||o)}})();static#t=this.\u0275cmp=n.Xpm({type:o,selectors:[["ng-component"]],inputs:{form:"form"},features:[n.qOj],decls:2,vars:3,consts:[[4,"ngIf"],[3,"formControl","label"]],template:function(m,b){1&m&&(n.YNc(0,p,2,1,"ng-container",0),n.ALo(1,"async")),2&m&&n.Q6J("ngIf",n.lcZ(1,1,b.fieldPermission))},dependencies:[s.O5,l.JJ,l.oH,i.Q,s.Ov],encapsulation:2})}return o})()},10444:(gt,X,a)=>{"use strict";a.d(X,{o:()=>ue});var e=a(19212),n=a(56223),s=a(2563),l=a(96814),i=a(23680),t=a(64170),p=a(98525),c=a(6554),o=a(2901),x=a(82121),u=a(71365),m=a(1614);const b=["customLabel"];function I(ge,Ke){1&ge&&e.GkF(0)}const H=ge=>({$implicit:ge});function O(ge,Ke){if(1&ge&&(e.TgZ(0,"mat-option",9),e.YNc(1,I,1,0,"ng-container",10),e.qZA()),2&ge){const at=Ke.$implicit;e.oxw(3);const Le=e.MAs(9);e.Q6J("value",at.value),e.xp6(),e.Q6J("ngTemplateOutlet",Le)("ngTemplateOutletContext",e.VKq(3,H,at))}}function P(ge,Ke){if(1&ge&&(e.TgZ(0,"mat-optgroup",7),e.ALo(1,"readI18n"),e.YNc(2,O,2,5,"mat-option",8),e.qZA()),2&ge){const at=Ke.$implicit;e.Q6J("label",e.lcZ(1,2,at.name)),e.xp6(2),e.Q6J("ngForOf",at.options)}}function G(ge,Ke){if(1&ge&&(e.ynx(0),e.YNc(1,P,3,4,"mat-optgroup",6),e.BQk()),2&ge){const at=e.oxw();e.xp6(),e.Q6J("ngForOf",at.optionGroups)}}function B(ge,Ke){1&ge&&e.GkF(0)}function ae(ge,Ke){if(1&ge&&(e.TgZ(0,"mat-option",9),e.YNc(1,B,1,0,"ng-container",10),e.qZA()),2&ge){const at=Ke.$implicit;e.oxw(2);const Le=e.MAs(9);e.Q6J("value",at.value),e.xp6(),e.Q6J("ngTemplateOutlet",Le)("ngTemplateOutletContext",e.VKq(3,H,at))}}function J(ge,Ke){if(1&ge&&(e.ynx(0),e.YNc(1,ae,2,5,"mat-option",8),e.BQk()),2&ge){const at=e.oxw();e.xp6(),e.Q6J("ngForOf",at.options)}}function q(ge,Ke){1&ge&&e.GkF(0)}function j(ge,Ke){if(1&ge&&(e.ynx(0),e.YNc(1,q,1,0,"ng-container",10),e.BQk()),2&ge){const at=e.oxw().$implicit,Le=e.oxw();e.xp6(),e.Q6J("ngTemplateOutlet",Le.customLabel)("ngTemplateOutletContext",e.VKq(2,H,at))}}function Y(ge,Ke){if(1&ge&&(e._uU(0),e.ALo(1,"translate"),e.ALo(2,"readI18n")),2&ge){const at=e.oxw().$implicit;e.hij(" ",e.lcZ(1,1,e.lcZ(2,3,at.label))," ")}}function K(ge,Ke){if(1&ge&&e.YNc(0,j,2,4,"ng-container",11)(1,Y,3,5,"ng-template",null,12,e.W1O),2&ge){const at=e.MAs(2),Le=e.oxw();e.Q6J("ngIf",Le.customLabel)("ngIfElse",at)}}const ne=[[["","label-lockable",""]]],ee=ge=>({"ng-invalid":ge}),$=["[label-lockable]"];let ue=(()=>{class ge extends s.y{constructor(){super(),this.optionGroups=[],this.innerControl=new n.p4,this.innerControl.valueChanges.subscribe(at=>{this.propagateChange(at)})}ngOnChanges(at){super.ngOnChanges(at),at.errors&&this.innerControl.setErrors(this.errors?this.errors:null),at.options&&this.initOptionGroups()}initOptionGroups(){if(this.options){this.optionGroups=[];const at={name:"",options:[]};this.optionGroups.push(at),this.options.forEach(Le=>{if(Le.group){const R=this.optionGroups.findIndex(Te=>Te.name===Le.group);-1===R?this.optionGroups.push({name:Le.group,options:[Le]}):this.optionGroups[R].options.push(Le)}else at.options.push(Le)})}}writeValue(at){super.writeValue(at),this.innerControl.setValue(at,{emitEvent:!1})}toggleState(at){at?this.innerControl.disable({onlySelf:!0,emitEvent:!1}):this.innerControl.enable({onlySelf:!0,emitEvent:!1})}static#e=this.\u0275fac=function(Le){return new(Le||ge)};static#t=this.\u0275cmp=e.Xpm({type:ge,selectors:[["imx-base-select"]],contentQueries:function(Le,R,Te){if(1&Le&&e.Suo(Te,b,5),2&Le){let me;e.iGM(me=e.CRH())&&(R.customLabel=me.first)}},inputs:{options:"options"},features:[e._Bn([{provide:n.JU,useExisting:(0,e.Gpc)(()=>ge),multi:!0}]),e.qOj,e.TTD],ngContentSelectors:$,decls:10,vars:13,consts:[[3,"label","forId","required"],[3,"ngClass","formControl","id","required","opened"],[4,"ngIf"],[3,"hint"],[3,"errors"],["renderOptions",""],[3,"label",4,"ngFor","ngForOf"],[3,"label"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf","ngIfElse"],["defaultLabel",""]],template:function(Le,R){1&Le&&(e.F$t(ne),e.TgZ(0,"mat-form-field"),e._UZ(1,"imx-base-input-label",0),e.Hsn(2),e.TgZ(3,"mat-select",1),e.NdJ("opened",function(){return R.markAsTouched()}),e.YNc(4,G,2,1,"ng-container",2)(5,J,2,1,"ng-container",2),e.qZA(),e._UZ(6,"imx-base-input-hint",3)(7,"imx-predefined-input-error",4),e.qZA(),e.YNc(8,K,3,2,"ng-template",null,5,e.W1O)),2&Le&&(e.xp6(),e.Q6J("label",R.label)("forId",R.id)("required",R.required),e.xp6(2),e.Q6J("ngClass",e.VKq(11,ee,R.innerControl.errors))("formControl",R.innerControl)("id",R.id)("required",R.required),e.xp6(),e.Q6J("ngIf",R.optionGroups.length>1),e.xp6(),e.Q6J("ngIf",R.optionGroups.length<2),e.xp6(),e.Q6J("hint",R.hint),e.xp6(),e.Q6J("errors",R.errors))},dependencies:[l.mk,l.sg,l.O5,l.tP,n.JJ,n.Q7,i.ey,i.Nv,t.KE,p.gD,n.oH,c.g,o.u,x.a,u.X$,m.j],encapsulation:2})}return ge})()},36116:(gt,X,a)=>{"use strict";a.d(X,{H:()=>j});var e=a(49193),n=a(53075),s=a(96124),l=a(21473),i=a(27556),t=a(67276),p=a(48499),c=a(51100),o=a(19212),x=a(96814),u=a(56223),m=a(10444),b=a(8455),I=a(71365),H=a(1614);function O(Y,K){if(1&Y&&(o.TgZ(0,"span")(1,"span",4),o._uU(2,", "),o.qZA(),o._uU(3),o.ALo(4,"translate"),o.ALo(5,"readI18n"),o.qZA()),2&Y){const ne=o.oxw().$implicit;o.xp6(3),o.hij("",o.lcZ(4,1,o.lcZ(5,3,ne.label))," ")}}function P(Y,K){if(1&Y&&o.YNc(0,O,6,5,"span",1),2&Y){const ne=K.$implicit,ee=o.oxw(2);o.Q6J("ngIf",ee.isSelected(ne.value))}}function G(Y,K){if(1&Y&&(o.TgZ(0,"div",2),o.YNc(1,P,1,1,"ng-template",3),o.ALo(2,"async"),o.qZA()),2&Y){const ne=o.oxw();o.xp6(),o.Q6J("ngForOf",o.lcZ(2,1,ne.options$))}}function B(Y,K){if(1&Y&&(o.ynx(0),o.TgZ(1,"imx-base-select",6),o.ALo(2,"async"),o._UZ(3,"imx-lockable-input",7),o.qZA(),o.BQk()),2&Y){const ne=o.oxw(3);o.xp6(),o.Q6J("formControl",ne.control)("disableControl",ne.disableControl)("options",o.lcZ(2,10,ne.options$))("label",ne.field.renderLabel?ne.field.label:void 0)("required",ne.field.required)("hint",ne.field.hint)("errors",ne.errors),o.xp6(2),o.Q6J("field",ne.field)("formHandler",ne.formHandler)("form",ne.form)}}function ae(Y,K){if(1&Y&&(o.ynx(0),o.YNc(1,B,4,12,"ng-container",5),o.BQk()),2&Y){const ne=o.oxw(2),ee=o.MAs(1);o.xp6(),o.Q6J("ngIf",!ne.field.renderValueAsLabel)("ngIfElse",ee)}}function J(Y,K){if(1&Y&&(o.ynx(0),o.YNc(1,ae,2,2,"ng-container",1),o.BQk()),2&Y){const ne=K.ngIf;o.xp6(),o.Q6J("ngIf",ne.read)}}const q=(0,l.jl)("SelectComponent",i.H.name);let j=(()=>{class Y extends c.A{constructor(){super(...arguments),this.disableControl=!1}ngOnChanges(ne){ne.optionProvider&&this.initializeOptions()}ngOnInit(){super.ngOnInit(),(!this.form||!this.formHandler||!this.control||!this.field)&&q.warn("Cannot create the select field: One of Form, Formhandler, Field or control is null. Check all @Input values for select.component.ts for field"),this.initializeOptions()}initializeOptions(){this.optionProvider instanceof p.I1?this.options$=this.optionProvider.getOptions(this.formHandler.baseObject,this.control.parent.value):this.optionProvider instanceof Array?this.options$=(0,e.of)(this.optionProvider):this.optionProvider instanceof Function?this.options$=this.optionProvider(this.formHandler.baseObject):this.optionProvider instanceof p.K$&&(this.options$=this.optionProvider.getOptions(this.formHandler)),this.field.placeholder&&this.options$&&(this.options$=this.options$.pipe((0,n.O)([]),(0,s.U)(ne=>[{value:this.field.initialValue?this.field.initialValue:t.F,label:this.field.placeholder},...ne])))}isSelected(ne){return this.control.value===ne}static#e=this.\u0275fac=(()=>{let ne;return function($){return(ne||(ne=o.n5z(Y)))($||Y)}})();static#t=this.\u0275cmp=o.Xpm({type:Y,selectors:[["imx-select"]],hostAttrs:[1,"imx-select"],inputs:{form:"form",optionProvider:"optionProvider",disableControl:"disableControl"},features:[o.qOj,o.TTD],decls:4,vars:3,consts:[["renderValueAsLabel",""],[4,"ngIf"],[1,"readonly-text"],["ngFor","",3,"ngForOf"],[1,"separator"],[4,"ngIf","ngIfElse"],[3,"formControl","disableControl","options","label","required","hint","errors"],["label-lockable","",3,"field","formHandler","form"]],template:function(ee,$){1&ee&&(o.YNc(0,G,3,3,"ng-template",null,0,o.W1O)(2,J,2,1,"ng-container",1),o.ALo(3,"async")),2&ee&&(o.xp6(2),o.Q6J("ngIf",o.lcZ(3,1,$.fieldPermission)))},dependencies:[x.sg,x.O5,u.JJ,u.Q7,u.oH,m.o,b.J,x.Ov,I.X$,H.j],styles:["[_nghost-%COMP%]{display:block}.readonly-text[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:first-child   .separator[_ngcontent-%COMP%]{display:none}"]})}return Y})()},30967:(gt,X,a)=>{"use strict";a.d(X,{U:()=>ae});var e=a(19212),n=a(56223),s=a(49193),l=a(23765),i=a(41621),t=a(2563),p=a(96814),c=a(24630),o=a(23680),x=a(2032),u=a(64170),m=a(71365),b=a(82121);function I(q,j){1&q&&(e.TgZ(0,"span"),e._uU(1,"*"),e.qZA())}function H(q,j){if(1&q&&(e.TgZ(0,"label",9),e._uU(1),e.YNc(2,I,2,0,"span",7),e.qZA()),2&q){const Y=e.oxw();e.uIk("for",Y.hash),e.xp6(),e.Oqu(Y.label),e.xp6(),e.Q6J("ngIf",Y.required)}}function O(q,j){if(1&q&&(e.ynx(0),e._UZ(1,"input",10),e.BQk()),2&q){const Y=e.oxw();e.xp6(),e.Q6J("value",Y.inputControl.value.representation)("disabled",!0)("id",Y.hash)}}function P(q,j){if(1&q){const Y=e.EpF();e._UZ(0,"input",11,12),e.TgZ(2,"span",13),e.NdJ("click",function(ne){e.CHM(Y);const ee=e.MAs(1),$=e.oxw();return e.KtG($.openPanel(ne,ee))}),e.qZA()}if(2&q){const Y=e.oxw(),K=e.MAs(7);e.Q6J("matAutocomplete",K)("formControl",Y.inputControl)("required",Y.required)("id",Y.hash)}}function G(q,j){if(1&q&&(e.TgZ(0,"mat-option",14),e._uU(1),e.qZA()),2&q){const Y=j.$implicit;e.Q6J("value",Y),e.xp6(),e.hij(" ",Y.representation," ")}}function B(q,j){1&q&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&q&&(e.xp6(),e.Oqu(e.lcZ(2,1,"imxplatform.common-entity.edit.validation.pattern")))}let ae=(()=>{class q extends t.y{constructor(Y){super(),this.changeDetectorRef=Y,this.fractionOfHour=2,this.hash=(0,i.Cp)(),this.startAtChar=2,this.inputDisabled=!1,this.inputControl=new n.p4,this.inputControl.setValidators([q=>{const j=new RegExp("^(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$");if(null!=q.value){if(q.value.representation)return q.value.representation.length>0&&!j.test(q.value.representation)?{pattern:{value:q.value.representation}}:null;if("string"==typeof q.value)return q.value.length>0&&!j.test(q.value)?{pattern:{value:q.value}}:null}return null}])}ngOnInit(){this.holders=(0,s.of)(this.generateOptions()),this.registerInputValueChangeListener()}defaultNameDisplayFn(Y){return Y?Y.representation:void 0}optionSelected(Y){this.model=Y.option.value.value}openPanel(Y,K){Y.stopPropagation(),this.holders=(0,s.of)(this.generateOptions()),K.openPanel()}writeValue(Y){super.writeValue(Y),this.inputControl.setValue(null!=Y?{representation:this.createRepresentation(Y),value:Y}:{representation:"",value:void 0},{emitEvent:!1})}validate(){return this.inputControl?.invalid?this.inputControl.errors:null}toggleState(Y){this.inputDisabled=Y}createRepresentation(Y){if(Y&&Y.length>0){const K=Y.split(":");return K[0]+":"+K[1]}return""}registerInputValueChangeListener(){this.inputControl.valueChanges.subscribe(Y=>{Y.length>=this.startAtChar&&(this.holders=(0,s.of)(this.generateOptions().filter(ne=>ne.representation.slice(0,Y.length)===Y)),this.changeDetectorRef.markForCheck()),""===Y.length&&this.inputControl.setValue(void 0,{emitEvent:!1}),this.propagateChange(""===Y?void 0:Y)})}generateOptions(){const Y=[],K=60/this.fractionOfHour;for(let ne=0;ne<1440;ne+=K)Y.push({representation:(0,l.IB)(ne),value:(0,l.IB)(ne)});return Y}static#e=this.\u0275fac=function(K){return new(K||q)(e.Y36(e.sBO))};static#t=this.\u0275cmp=e.Xpm({type:q,selectors:[["imx-base-smart-time"]],inputs:{fractionOfHour:"fractionOfHour"},features:[e._Bn([{provide:n.JU,useExisting:(0,e.Gpc)(()=>q),multi:!0},{provide:n.Cf,useExisting:(0,e.Gpc)(()=>q),multi:!0}]),e.qOj],decls:12,vars:10,consts:[["translate","",4,"ngIf"],[1,"input-wrapper"],[4,"ngIf","ngIfElse"],["permissionOk",""],[3,"displayWith","panelWidth","optionSelected"],["autocompletePnl","matAutocomplete"],["class","base-smart-time__option",3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"errors"],["translate",""],["matInput","","type","text",1,"autocomplete-field",3,"value","disabled","id"],["matInput","","type","text",3,"matAutocomplete","formControl","required","id"],["trigger","matAutocompleteTrigger"],[1,"smart-time-icon","icon-clock",3,"click"],[1,"base-smart-time__option",3,"value"]],template:function(K,ne){if(1&K&&(e.TgZ(0,"mat-form-field"),e.YNc(1,H,3,3,"label",0),e.TgZ(2,"div",1),e.YNc(3,O,2,3,"ng-container",2)(4,P,3,4,"ng-template",null,3,e.W1O),e.qZA(),e.TgZ(6,"mat-autocomplete",4,5),e.NdJ("optionSelected",function($){return ne.optionSelected($)}),e.YNc(8,G,2,2,"mat-option",6),e.ALo(9,"async"),e.qZA(),e.YNc(10,B,3,3,"mat-error",7),e._UZ(11,"imx-predefined-input-error",8),e.qZA()),2&K){const ee=e.MAs(5);e.xp6(),e.Q6J("ngIf",ne.label),e.xp6(2),e.Q6J("ngIf",ne.disableControl||ne.inputDisabled)("ngIfElse",ee),e.xp6(3),e.Q6J("displayWith",ne.defaultNameDisplayFn)("panelWidth",80),e.xp6(2),e.Q6J("ngForOf",e.lcZ(9,8,ne.holders)),e.xp6(2),e.Q6J("ngIf",ne.inputControl.errors&&ne.errors.toString()!==ne.inputControl.errors.toString()),e.xp6(),e.Q6J("errors",ne.errors)}},dependencies:[p.sg,p.O5,n.Fj,n.JJ,n.Q7,c.XC,o.ey,c.ZL,x.Nt,u.KE,u.TO,n.oH,m.Pi,b.a,p.Ov,m.X$],styles:[".smart-time-icon[_ngcontent-%COMP%]{color:#0a2663;cursor:pointer;font-size:14px;position:absolute;right:8px;top:50%;transform:translateY(-50%);z-index:1}.mat-mdc-option[_ngcontent-%COMP%]{line-height:24px;height:24px;font-size:14px;color:#0a2663}.base-smart-time__option[_ngcontent-%COMP%]     .mdc-list-item__primary-text{overflow:visible}"]})}return q})()},79060:(gt,X,a)=>{"use strict";a.d(X,{U:()=>c});var e=a(51100),n=a(19212),s=a(96814),l=a(56223),i=a(30967);function t(o,x){if(1&o&&(n.ynx(0),n._UZ(1,"imx-base-smart-time",1),n.BQk()),2&o){const u=n.oxw(2);n.xp6(),n.Q6J("formControl",u.control)("label",u.field.renderLabel?u.field.label:void 0)("hint",u.field.hint)("errors",u.errors)}}function p(o,x){if(1&o&&(n.ynx(0),n.YNc(1,t,2,4,"ng-container",0),n.BQk()),2&o){const u=x.ngIf;n.xp6(),n.Q6J("ngIf",u.read)}}let c=(()=>{class o extends e.A{constructor(u){super(),this.changeDetectorRef=u}ngDoCheck(){this.control.dirty&&this.changeDetectorRef.markForCheck()}ngOnInit(){super.ngOnInit(),this.control.value||this.control.setValue(null)}static#e=this.\u0275fac=function(m){return new(m||o)(n.Y36(n.sBO))};static#t=this.\u0275cmp=n.Xpm({type:o,selectors:[["imx-smart-time"]],hostAttrs:[1,"imx-smart-time"],inputs:{form:"form"},features:[n.qOj],decls:2,vars:3,consts:[[4,"ngIf"],[3,"formControl","label","hint","errors"]],template:function(m,b){1&m&&(n.YNc(0,p,2,1,"ng-container",0),n.ALo(1,"async")),2&m&&n.Q6J("ngIf",n.lcZ(1,1,b.fieldPermission))},dependencies:[s.O5,l.JJ,l.oH,i.U,s.Ov],changeDetection:0})}return o})()},72197:(gt,X,a)=>{"use strict";a.d(X,{n:()=>o});var e=a(19212),n=a(56223),s=a(2563),l=a(96814),i=a(82599);const t=x=>({selected:x});function p(x,u){if(1&x){const m=e.EpF();e.TgZ(0,"div",2),e.NdJ("click",function(){e.CHM(m);const I=e.oxw();return e.KtG(I.select())}),e._uU(1),e.qZA()}if(2&x){const m=e.oxw();e.Q6J("ngClass",e.VKq(2,t,m.model)),e.xp6(),e.Oqu(m.checkedLabel)}}function c(x,u){if(1&x){const m=e.EpF();e.TgZ(0,"div",2),e.NdJ("click",function(){e.CHM(m);const I=e.oxw();return e.KtG(I.unselect())}),e._uU(1),e.qZA()}if(2&x){const m=e.oxw();e.Q6J("ngClass",e.VKq(2,t,!m.model)),e.xp6(),e.Oqu(m.notCheckedLabel)}}let o=(()=>{class x extends s.y{constructor(){super(...arguments),this.size="middle"}static#e=this.toggleSizeToCssClassMap={middle:null,small:"imx-toggle-small"};get cssClass(){return["imx-toggle",this.toggleSizeCssClass].filter(m=>!!m).join(" ")}get toggleSizeCssClass(){return x.toggleSizeToCssClassMap[this.size]}select(){this.model=!0}unselect(){this.model=!1}static#t=this.\u0275fac=(()=>{let m;return function(I){return(m||(m=e.n5z(x)))(I||x)}})();static#n=this.\u0275cmp=e.Xpm({type:x,selectors:[["imx-toggle"]],inputs:{checkedLabel:"checkedLabel",notCheckedLabel:"notCheckedLabel",size:"size"},features:[e._Bn([{provide:n.JU,useExisting:(0,e.Gpc)(()=>x),multi:!0}]),e.qOj],decls:3,vars:4,consts:[[3,"ngClass","click",4,"ngIf"],[3,"ngClass","ngModel","ngModelChange"],[3,"ngClass","click"]],template:function(b,I){1&b&&(e.YNc(0,p,2,4,"div",0),e.TgZ(1,"mat-slide-toggle",1),e.NdJ("ngModelChange",function(O){return I.model=O}),e.qZA(),e.YNc(2,c,2,4,"div",0)),2&b&&(e.Q6J("ngIf",I.checkedLabel),e.xp6(),e.Q6J("ngClass",I.cssClass)("ngModel",I.model),e.xp6(),e.Q6J("ngIf",I.notCheckedLabel))},dependencies:[l.mk,l.O5,n.JJ,n.On,i.Rr],styles:["[_nghost-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{font-size:12px;line-height:14px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:hover{cursor:pointer}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:first-of-type{margin-right:6px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:nth-of-type(2){margin-left:6px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:not(.selected){color:#505c77}.imx-toggle[_ngcontent-%COMP%]:not(.imx-toggle-small)    {align-items:center;display:inline-flex}.imx-toggle[_ngcontent-%COMP%]:not(.imx-toggle-small)    :not(.imx-toggle-small) .mdc-switch__track{--mdc-switch-track-height: 24px;--mdc-switch-track-shape: 12px;--mdc-switch-track-width: 48px}.imx-toggle[_ngcontent-%COMP%]:not(.imx-toggle-small)    :not(.imx-toggle-small) .mdc-switch .mdc-switch__handle-track{left:4px;width:26px}.imx-toggle[_ngcontent-%COMP%]:not(.imx-toggle-small)    :not(.imx-toggle-small) .mdc-form-field{vertical-align:top}.imx-toggle[_ngcontent-%COMP%]:not(.imx-toggle-small)    :not(.imx-toggle-small) .mdc-switch .mdc-switch__handle{--mdc-switch-handle-height: 12px;--mdc-switch-handle-shape: 12px;--mdc-switch-handle-width: 12px}.imx-toggle[_ngcontent-%COMP%]:not(.imx-toggle-small)    :not(.imx-toggle-small) .mdc-switch{--mdc-switch-track-width: 48px;width:var(--mdc-switch-track-width)}.imx-toggle.imx-toggle-small[_ngcontent-%COMP%]    {align-items:center;display:inline-flex}.imx-toggle.imx-toggle-small[_ngcontent-%COMP%]     .mdc-switch__track{--mdc-switch-track-height: 10px;--mdc-switch-track-shape: 7px;--mdc-switch-track-width: 20px}.imx-toggle.imx-toggle-small[_ngcontent-%COMP%]     .mdc-switch .mdc-switch__handle-track{left:1px;width:12px}.imx-toggle.imx-toggle-small[_ngcontent-%COMP%]     .mdc-form-field{vertical-align:top}.imx-toggle.imx-toggle-small[_ngcontent-%COMP%]     .mdc-switch .mdc-switch__handle{--mdc-switch-handle-height: 5px;--mdc-switch-handle-shape: 5px;--mdc-switch-handle-width: 5px}.imx-toggle.imx-toggle-small[_ngcontent-%COMP%]     .mdc-switch{--mdc-switch-track-width: 20px;width:var(--mdc-switch-track-width)}"]})}return x})()},1931:(gt,X,a)=>{"use strict";a.d(X,{D:()=>Et});var e=a(19212),n=a(56223),s=a(49193),l=a(21473),i=a(27556),t=a(48499),p=a(51100),c=a(96814),o=a(78337),x=a(41894),u=a(98445),m=a(15646),b=a(2563),I=a(71365),H=a(17700),O=a(32296),P=a(75986),G=a(30617),B=a(92596),ae=a(67338),J=a(82121),q=a(1614);const j=["treeGroup"];function Y(lt,Vt){if(1&lt){const r=e.EpF();e.TgZ(0,"mat-tree-node",15)(1,"mat-checkbox",16),e.NdJ("change",function(Pt){const ye=e.CHM(r).$implicit,ve=e.oxw();return e.KtG(ve.onLeftNodeSelection(ye,Pt))}),e._uU(2),e.ALo(3,"readI18n"),e.qZA()()}if(2&lt){const r=Vt.$implicit,Z=e.oxw();e.xp6(),e.s9C("matTooltip",r.id),e.Q6J("disabled",Z.disabledTree)("checked",Z.leftSelectionModel.isSelected(r)),e.xp6(),e.Oqu(e.lcZ(3,4,Z._displayNodeFn(r,Z.translateService.currentLang)))}}function K(lt,Vt){1&lt&&(e.TgZ(0,"mat-icon",23),e._uU(1,"expand_more"),e.qZA())}function ne(lt,Vt){if(1&lt){const r=e.EpF();e.TgZ(0,"mat-icon",24),e.NdJ("click",function(Pt){e.CHM(r);const Oe=e.oxw(2);return e.KtG(Oe.customScrollPositionChanger(Pt))}),e._uU(1," chevron_right "),e.qZA()}}function ee(lt,Vt){if(1&lt){const r=e.EpF();e.TgZ(0,"mat-nested-tree-node")(1,"li")(2,"div",17)(3,"button",18),e.YNc(4,K,2,0,"mat-icon",19)(5,ne,2,0,"mat-icon",20),e.qZA(),e.TgZ(6,"mat-checkbox",21),e.NdJ("change",function(Pt){const ye=e.CHM(r).$implicit,ve=e.oxw();return e.KtG(ve.onLeftNodeSelection(ye,Pt))}),e._uU(7),e.ALo(8,"readI18n"),e.qZA()(),e.TgZ(9,"ul"),e.GkF(10,22),e.qZA()()()}if(2&lt){const r=Vt.$implicit,Z=e.oxw();e.xp6(4),e.Q6J("ngIf",Z.leftTreeControl.isExpanded(r)),e.xp6(),e.Q6J("ngIf",!Z.leftTreeControl.isExpanded(r)&&Z.hasChild(null,r)),e.xp6(),e.s9C("matTooltip",r.id),e.Q6J("disabled",Z.disabledTree)("checked",Z.leftSelectionModel.isSelected(r)),e.xp6(),e.Oqu(e.lcZ(8,8,Z._displayNodeFn(r,Z.translateService.currentLang))),e.xp6(2),e.ekj("tree-invisible",!Z.leftTreeControl.isExpanded(r))}}const $=lt=>({readonly:lt});function ue(lt,Vt){if(1&lt){const r=e.EpF();e.TgZ(0,"span",25),e.NdJ("click",function(){e.CHM(r);const Pt=e.oxw();return e.KtG(Pt.shuffleLTRWithChildren())}),e.ALo(1,"translate"),e.qZA()}if(2&lt){const r=e.oxw();e.s9C("matTooltip",e.lcZ(1,2,"imxplatform.component.tree-shuffle.assigneNodesAndSubNodes")),e.Q6J("ngClass",e.VKq(4,$,r.leftSelectionModel.isEmpty()))}}function ge(lt,Vt){if(1&lt){const r=e.EpF();e.TgZ(0,"mat-tree-node",15)(1,"mat-checkbox",16),e.NdJ("change",function(Pt){const ye=e.CHM(r).$implicit,ve=e.oxw();return e.KtG(ve.onRightNodeSelection(ye,Pt))}),e._uU(2),e.ALo(3,"readI18n"),e.qZA()()}if(2&lt){const r=Vt.$implicit,Z=e.oxw();e.xp6(),e.s9C("matTooltip",r.id),e.Q6J("disabled",Z.disabledTree)("checked",Z.rightSelectionModel.isSelected(r)),e.xp6(),e.Oqu(e.lcZ(3,4,Z._displayNodeFn(r,Z.translateService.currentLang)))}}function Ke(lt,Vt){1&lt&&(e.TgZ(0,"mat-icon",23),e._uU(1,"expand_more"),e.qZA())}function at(lt,Vt){1&lt&&(e.TgZ(0,"mat-icon",23),e._uU(1," chevron_right "),e.qZA())}function Le(lt,Vt){if(1&lt){const r=e.EpF();e.TgZ(0,"mat-nested-tree-node")(1,"li")(2,"div",17)(3,"button",18),e.YNc(4,Ke,2,0,"mat-icon",19)(5,at,2,0,"mat-icon",19),e.qZA(),e.TgZ(6,"mat-checkbox",21),e.NdJ("change",function(Pt){const ye=e.CHM(r).$implicit,ve=e.oxw();return e.KtG(ve.onRightNodeSelection(ye,Pt))}),e._uU(7),e.ALo(8,"readI18n"),e.qZA()(),e.TgZ(9,"ul"),e.GkF(10,22),e.qZA()()()}if(2&lt){const r=Vt.$implicit,Z=e.oxw();e.xp6(4),e.Q6J("ngIf",Z.rightTreeControl.isExpanded(r)),e.xp6(),e.Q6J("ngIf",!Z.rightTreeControl.isExpanded(r)&&Z.hasChild(null,r)),e.xp6(),e.s9C("matTooltip",r.id),e.Q6J("disabled",Z.disabledTree)("checked",Z.rightSelectionModel.isSelected(r)),e.xp6(),e.Oqu(e.lcZ(8,8,Z._displayNodeFn(r,Z.translateService.currentLang))),e.xp6(2),e.ekj("tree-invisible",!Z.rightTreeControl.isExpanded(r))}}const R=()=>({width:"100%",height:"100%"}),Te=lt=>({"ng-invalid":lt});let me=(()=>{class lt extends b.y{set displayNodeFn(r){this._displayNodeFn=r||this.defaultDisplayFn}set sortNodesFn(r){this._sortNodesFn=r||this.defaultSortNodesFn}set sortRootNodesFn(r){this._sortRootNodesFn=r||this.defaultSortNodesFn}set nodeRemovalValidatorFn(r){this._nodeRemovalValidatorFn=r||this.defaultNodeShuffleValidatorFn}set nodeAssignValidatorFn(r){this._nodeAssignValidatorFn=r||this.defaultNodeShuffleValidatorFn}set availableItems(r){if(r){const Z=m(r).sort((Pt,Oe)=>this._sortRootNodesFn(Pt,Oe,this.translateService.currentLang));Z.forEach(Pt=>this.sortChildren(Pt.children)),this.allItems=Z,this.leftDataSource.data=m(Z)}}constructor(r,Z,Pt){super(),this.changeDetectorRef=r,this.translateService=Z,this.dialog=Pt,this._displayNodeFn=this.defaultDisplayFn,this._sortNodesFn=this.defaultSortNodesFn,this._sortRootNodesFn=this.defaultSortNodesFn,this._nodeRemovalValidatorFn=this.defaultNodeShuffleValidatorFn,this._nodeAssignValidatorFn=this.defaultNodeShuffleValidatorFn,this.showSubNodesShuffle=!1,this.leftDataSource=new u.WX,this.allItems=[],this.incomingValues=[],this.disabledTree=!1,this.hasChild=(Oe,ye)=>null!=ye.children&&ye.children.length>0}ngOnChanges(r){super.ngOnChanges(r),this.handleIncomingValues()}sortChildren(r){r&&r.length>0&&(r=r.sort((Z,Pt)=>this._sortNodesFn(Z,Pt,this.translateService.currentLang))).forEach(Z=>this.sortChildren(Z.children))}initTreeComponents(){this.leftDataSource.data=m(this.allItems),this.leftTreeControl=new x.VY(r=>r.children),this.leftSelectionModel=new o.Ov(!0),this.rightDataSource=new u.WX,this.rightTreeControl=new x.VY(r=>r.children),this.rightSelectionModel=new o.Ov(!0)}handleIncomingValues(){if(this.leftDataSource.data.length>0&&this.incomingValues.length>0){this.incomingValues=this.filterIncomingValues(this.incomingValues);const r=new o.Ov(!0);this.incomingValues.forEach(Z=>{const Pt=this.getNodeFromList(Z,this.leftDataSource.data);Pt&&r.select(Pt)}),this.shuffleToTree(r,this.leftDataSource,this.rightDataSource,this.rightTreeControl,!0),this.leftDataSource.data.forEach(Z=>this.leftTreeControl.expand(Z)),this.incomingValues=[]}}filterIncomingValues(r){const Z=m(r);return r.filter(Pt=>{const Oe=this.getNodeFromList(Pt,this.leftDataSource.data);if(Oe){for(const ye of Oe.children)if(Z.indexOf(ye.id)>-1)return!1;return!0}})}toggleState(r){this.disabledTree=r}writeValue(r){this.initTreeComponents(),null!=r&&(this.incomingValues="string"==typeof r?r.split(",").map(Z=>Number.parseInt(Z)):r,this.handleIncomingValues(),this.changeDetectorRef.markForCheck())}shuffleLTR(){this._nodeAssignValidatorFn(this.leftSelectionModel.selected).subscribe(r=>r&&this.executeShuffleLTR())}shuffleLTRWithChildren(){this.leftSelectionModel.selected.forEach(r=>this.leftSelectionModel.select(...this.getDescendants(r))),this._nodeAssignValidatorFn(this.leftSelectionModel.selected).subscribe(r=>r&&this.executeShuffleLTR())}executeShuffleLTR(){this.shuffleToTree(this.leftSelectionModel,this.leftDataSource,this.rightDataSource,this.rightTreeControl,!0),this.leftSelectionModel.clear(),this.rightSelectionModel.clear(),this.propagateValues()}shuffleRTL(){this._nodeRemovalValidatorFn(this.rightSelectionModel.selected).subscribe(r=>r&&this.executeShuffleRTL())}executeShuffleRTL(){this.shuffleToTree(this.rightSelectionModel,this.rightDataSource,this.leftDataSource,this.leftTreeControl,!1),this.leftSelectionModel.clear(),this.rightSelectionModel.clear(),this.propagateValues()}shuffleToTree(r,Z,Pt,Oe,ye){r.selected.forEach(Dt=>{void 0===this.getNodeFromList(Dt.id,Pt.data)?(this.copyToTree(Dt,!ye,Pt,Oe),this.removeFromTree(Dt,ye,Z)):this.removeFromTree(Dt,ye,Z)});const ve=Pt.data;Pt.data=[],Pt.data=ve.sort((Dt,Rn)=>this._sortRootNodesFn(Dt,Rn,this.translateService.currentLang));const ft=Z.data;Z.data=[],Z.data=ft.sort((Dt,Rn)=>this._sortRootNodesFn(Dt,Rn,this.translateService.currentLang))}propagateValues(){let r=[];this.rightDataSource.data.length>0&&(r=this.rightDataSource.data.map(Z=>this.getDescendants(Z)).reduce((Z,Pt)=>[...Z,...Pt]).map(Z=>Z.id)),this.propagateChange(r)}copyToTree(r,Z,Pt,Oe){const ye=this.copyNode(r,Z);if(r.parent){let ve=this.getNodeFromList(r.parent.id,Pt.data);ve||(ve=this.copyToTree(r.parent,!1,Pt,Oe)),ye.parent=ve,ve.children.push(ye),ve.children.sort((ft,Dt)=>this._sortNodesFn(ft,Dt,this.translateService.currentLang)),Oe.expand(ve)}else Pt.data.push(ye);return ye}removeFromTree(r,Z,Pt){if(0===r.children.length||!Z)if(r.parent){const Oe=this.getNodeFromList(r.parent.id,Pt.data);Oe&&(Oe.children=Oe.children.filter(ye=>ye.id!==r.id),0===Oe.children.length&&Z&&this.removeFromTree(Oe,Z,Pt))}else Pt.data=Pt.data.filter(Oe=>Oe.id!==r.id)}getNodeFromList(r,Z){for(const Pt of Z){if(Pt.id===r)return Pt;if(Pt.children){const Oe=this.getNodeFromList(r,Pt.children);if(Oe)return Oe}}}copyNode(r,Z){if(Z){const Pt=m(r);return Pt.parent=void 0,Pt}{const Pt=Object.assign({},r);return Pt.children=[],Pt.parent=void 0,Pt}}onLeftNodeSelection(r,Z){Z.checked?this.leftSelectionModel.select(r):this.leftSelectionModel.deselect(r)}onRightNodeSelection(r,Z){const Pt=this.rightTreeControl.getDescendants(r);Z.checked?(this.rightSelectionModel.select(r),this.rightSelectionModel.select(...Pt)):(this.rightSelectionModel.deselect(r),this.rightSelectionModel.deselect(...Pt))}descendantsAllSelected(r){return this.leftTreeControl.getDescendants(r).every(Pt=>this.leftSelectionModel.isSelected(Pt))}descendantsPartiallySelected(r){return this.leftTreeControl.getDescendants(r).some(Oe=>this.leftSelectionModel.isSelected(Oe))&&!this.descendantsAllSelected(r)}descendantsNotSelected(r){return this.leftTreeControl.getDescendants(r).every(Pt=>!this.leftSelectionModel.isSelected(Pt))}toggleParentsSelection(r,Z){Z&&this.leftSelectionModel.select(r),Z||this.descendantsNotSelected(r)&&this.leftSelectionModel.deselect(r),null!=r.parent&&this.toggleParentsSelection(r.parent,Z)}customScrollPositionChanger(r){setTimeout(()=>{const Z=r.clientY-this.treeGroup.nativeElement.getBoundingClientRect().top-14,Pt=this.treeGroup.nativeElement.querySelector(".p-scrollpanel-content");Pt.scrollTop+Z>=Pt.scrollTopMax?Pt.scrollTop=Pt.scrollTopMax:Pt.scrollTop+=Z},20)}defaultDisplayFn(r){return r.id.toString()}defaultSortNodesFn(r,Z,Pt){return r.id>Z.id?1:-1}defaultNodeShuffleValidatorFn(r){return(0,s.of)(!0)}getDescendants(r){let Z=[r];return r.children.forEach(Pt=>Z=[...Z,...this.getDescendants(Pt)]),Z}static#e=this.\u0275fac=function(Z){return new(Z||lt)(e.Y36(e.sBO),e.Y36(I.sK),e.Y36(H.uw))};static#t=this.\u0275cmp=e.Xpm({type:lt,selectors:[["imx-base-tree-shuffle"]],viewQuery:function(Z,Pt){if(1&Z&&e.Gf(j,7),2&Z){let Oe;e.iGM(Oe=e.CRH())&&(Pt.treeGroup=Oe.first)}},hostAttrs:[1,"imx-base-tree-shuffle"],inputs:{displayNodeFn:"displayNodeFn",sortNodesFn:"sortNodesFn",sortRootNodesFn:"sortRootNodesFn",nodeRemovalValidatorFn:"nodeRemovalValidatorFn",nodeAssignValidatorFn:"nodeAssignValidatorFn",name:"name",availableItems:"availableItems",showSubNodesShuffle:"showSubNodesShuffle",rightDataSource:"rightDataSource"},features:[e._Bn([{provide:n.JU,useExisting:(0,e.Gpc)(()=>lt),multi:!0}]),e.qOj,e.TTD],decls:23,vars:26,consts:[[1,"tree-shuffle"],[1,"tree-group-wrapper"],["translate",""],[1,"tree-group"],["treeGroup",""],["id","leftTree",1,"tree",3,"dataSource","treeControl"],["class","tree__node","matTreeNodeToggle","","matTreeNodePadding","",4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],[1,"button-column",3,"ngClass"],[1,"icon-file-shuffleRight","imx-icon-middle",3,"ngClass","click"],[1,"icon-file-shuffleLeft","imx-icon-middle",3,"ngClass","click"],["class","icon-files-shuffleRight imx-icon-middle",3,"ngClass","matTooltip","click",4,"ngIf"],[1,"tree-group",3,"ngClass"],[1,"tree",3,"dataSource","treeControl"],[3,"errors"],["matTreeNodeToggle","","matTreeNodePadding","",1,"tree__node"],["matTooltipShowDelay","2000",1,"small","leaf",3,"matTooltip","disabled","checked","change"],[1,"mat-tree-node","tree__node"],["mat-icon-button","","matTreeNodeToggle",""],["class","mat-icon-rtl-mirror",4,"ngIf"],["class","mat-icon-rtl-mirror",3,"click",4,"ngIf"],["matTooltipShowDelay","2000",1,"small",3,"matTooltip","disabled","checked","change"],["matTreeNodeOutlet",""],[1,"mat-icon-rtl-mirror"],[1,"mat-icon-rtl-mirror",3,"click"],[1,"icon-files-shuffleRight","imx-icon-middle",3,"ngClass","matTooltip","click"]],template:function(Z,Pt){1&Z&&(e.TgZ(0,"div",0)(1,"div",1)(2,"label",2),e._uU(3,"imxplatform.component.tree-shuffle.available"),e.qZA(),e.TgZ(4,"div",3,4)(6,"p-scrollPanel")(7,"mat-tree",5),e.YNc(8,Y,4,6,"mat-tree-node",6)(9,ee,11,10,"mat-nested-tree-node",7),e.qZA()()()(),e.TgZ(10,"div",8)(11,"span",9),e.NdJ("click",function(){return Pt.shuffleLTR()}),e.qZA(),e.TgZ(12,"span",10),e.NdJ("click",function(){return Pt.shuffleRTL()}),e.qZA(),e.YNc(13,ue,2,6,"span",11),e.qZA(),e.TgZ(14,"div",1)(15,"label",2),e._uU(16,"imxplatform.component.tree-shuffle.assigned"),e.qZA(),e.TgZ(17,"div",12)(18,"p-scrollPanel")(19,"mat-tree",13),e.YNc(20,ge,4,6,"mat-tree-node",6)(21,Le,11,10,"mat-nested-tree-node",7),e.qZA()()(),e._UZ(22,"imx-predefined-input-error",14),e.qZA()()),2&Z&&(e.xp6(6),e.Akn(e.DdM(16,R)),e.xp6(),e.Q6J("dataSource",Pt.leftDataSource)("treeControl",Pt.leftTreeControl),e.xp6(2),e.Q6J("matTreeNodeDefWhen",Pt.hasChild),e.xp6(),e.Q6J("ngClass",e.VKq(17,$,Pt.disabledTree)),e.xp6(),e.Q6J("ngClass",e.VKq(19,$,Pt.leftSelectionModel.isEmpty())),e.xp6(),e.Q6J("ngClass",e.VKq(21,$,Pt.rightSelectionModel.isEmpty())),e.xp6(),e.Q6J("ngIf",Pt.showSubNodesShuffle),e.xp6(4),e.Q6J("ngClass",e.VKq(23,Te,null!=Pt.errors)),e.xp6(),e.Akn(e.DdM(25,R)),e.xp6(),e.Q6J("dataSource",Pt.rightDataSource)("treeControl",Pt.rightTreeControl),e.xp6(2),e.Q6J("matTreeNodeDefWhen",Pt.hasChild),e.xp6(),e.Q6J("errors",Pt.errors))},dependencies:[c.mk,c.O5,O.RK,P.oG,G.Hw,B.gM,u.GZ,u.fQ,u.ah,u.eu,u.gi,u.uo,u.Ar,I.Pi,ae.P,J.a,I.X$,q.j],styles:["mat-tree .tree__node .leaf{padding-left:24px}  mat-tree .mat-nested-tree-node ul{padding-left:22px}  mat-tree .mat-nested-tree-node .mat-icon{line-height:20px}  mat-tree .mat-nested-tree-node .material-icons{font-size:18px;color:#0a2663}  mat-tree .mat-tree-node.tree__node{min-height:18px;color:#0a2663}  mat-tree .mat-mdc-icon-button{width:24px;height:24px;line-height:20px;padding:0}.tree-invisible[_ngcontent-%COMP%]{display:none}.tree[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%], .tree[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.tree-shuffle[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;max-height:100%;margin-top:5px;margin-bottom:10px}.tree-shuffle[_ngcontent-%COMP%]   .tree-group-wrapper[_ngcontent-%COMP%]{width:100%}.tree-shuffle[_ngcontent-%COMP%]   .tree-group-wrapper[_ngcontent-%COMP%]   .tree-group[_ngcontent-%COMP%]{margin-top:3px;width:100%;height:30vh;overflow:hidden;border:1px solid #ced4e0;background-color:#fff}.tree-shuffle[_ngcontent-%COMP%]   .tree-group-wrapper[_ngcontent-%COMP%]   .tree-group.ng-invalid[_ngcontent-%COMP%]{border:1px solid #96172e}.tree-shuffle[_ngcontent-%COMP%]   .tree-group-wrapper[_ngcontent-%COMP%]   .tree-group[_ngcontent-%COMP%]   .mat-tree[_ngcontent-%COMP%]{padding:5px}.tree-shuffle[_ngcontent-%COMP%]   .button-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 10px;color:#0a2663}@media (max-width: 900px){.tree-shuffle[_ngcontent-%COMP%]   .button-column[_ngcontent-%COMP%]{margin:15px 5px}}.tree-shuffle[_ngcontent-%COMP%]   .button-column[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{cursor:pointer;margin-top:8px}.tree-shuffle[_ngcontent-%COMP%]   .button-column.readonly[_ngcontent-%COMP%]{color:#ced4e0}.tree-shuffle[_ngcontent-%COMP%]   .button-column.readonly[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{cursor:inherit}.tree-shuffle[_ngcontent-%COMP%]   .button-column[_ngcontent-%COMP%] > span.readonly[_ngcontent-%COMP%]{color:#ced4e0}"]})}return lt})();var Se=a(50054);function Ue(lt,Vt){if(1&lt&&(e.ynx(0),e._UZ(1,"imx-label-lockable",1)(2,"imx-base-tree-shuffle",2),e.ALo(3,"async"),e.BQk()),2&lt){const r=e.oxw(2);e.xp6(),e.Q6J("field",r.field)("formHandler",r.formHandler)("form",r.formHandler.formGroup)("renderBig",!0),e.xp6(),e.Q6J("name",r.field.id)("formControl",r.control)("disableControl",r.disableControl)("displayNodeFn",r.displayNodeFn)("sortNodesFn",r.sortNodesFn)("sortRootNodesFn",r.sortRootNodesFn)("availableItems",e.lcZ(3,16,r.rootNodes$))("nodeAssignValidatorFn",r.nodeAssignValidatorFn)("nodeRemovalValidatorFn",r.nodeRemovalValidatorFn)("required",r.field.required)("hint",r.field.hint)("errors",r.errors)}}function We(lt,Vt){if(1&lt&&(e.ynx(0),e.YNc(1,Ue,4,18,"ng-container",0),e.BQk()),2&lt){const r=Vt.ngIf;e.xp6(),e.Q6J("ngIf",r.read)}}const et=(0,l.jl)("TreeShuffleComponent",i.H.name);let Et=(()=>{class lt extends p.A{constructor(){super(...arguments),this.disableControl=!1}ngOnChanges(r){r.treeOptionProvider&&this.initializeOptions()}ngOnInit(){super.ngOnInit(),(!this.formHandler||!this.control||!this.field)&&et.warn("Cannot create the TreeShuffle component: One of  Formhandler, Field or control is null. Check all @Input values!"),this.initializeOptions()}initializeOptions(){this.treeOptionProvider instanceof t.Cf?this.rootNodes$=this.treeOptionProvider.getRootNodes():this.treeOptionProvider instanceof Array?this.rootNodes$=(0,s.of)(this.treeOptionProvider):et.warn("no root nodes passed for tree shuffle field "+this.field.id)}static#e=this.\u0275fac=(()=>{let r;return function(Pt){return(r||(r=e.n5z(lt)))(Pt||lt)}})();static#t=this.\u0275cmp=e.Xpm({type:lt,selectors:[["imx-tree-shuffle"]],hostAttrs:[1,"imx-tree-shuffle"],inputs:{name:"name",treeOptionProvider:"treeOptionProvider",displayNodeFn:"displayNodeFn",sortNodesFn:"sortNodesFn",sortRootNodesFn:"sortRootNodesFn",disableControl:"disableControl",nodeAssignValidatorFn:"nodeAssignValidatorFn",nodeRemovalValidatorFn:"nodeRemovalValidatorFn"},features:[e._Bn([{provide:n.JU,useExisting:(0,e.Gpc)(()=>lt),multi:!0}]),e.qOj,e.TTD],decls:2,vars:3,consts:[[4,"ngIf"],[3,"field","formHandler","form","renderBig"],[3,"name","formControl","disableControl","displayNodeFn","sortNodesFn","sortRootNodesFn","availableItems","nodeAssignValidatorFn","nodeRemovalValidatorFn","required","hint","errors"]],template:function(Z,Pt){1&Z&&(e.YNc(0,We,2,1,"ng-container",0),e.ALo(1,"async")),2&Z&&e.Q6J("ngIf",e.lcZ(1,1,Pt.fieldPermission))},dependencies:[c.O5,n.JJ,n.Q7,n.oH,me,Se.m,c.Ov]})}return lt})()},35617:(gt,X,a)=>{"use strict";a.d(X,{Q:()=>$});var e=a(19212),n=a(56223),s=a(41894),l=a(98445),i=a(78337),t=a(15646),c=a(2563),o=a(71365),x=a(96814),u=a(32296),m=a(75986),b=a(30617),I=a(92596),H=a(67338),O=a(2901),P=a(1614);const G=["treeGroup"];function B(ue,ge){if(1&ue){const Ke=e.EpF();e.ynx(0),e.TgZ(1,"mat-checkbox",9),e.NdJ("change",function(Le){e.CHM(Ke);const R=e.oxw().$implicit,Te=e.oxw();return e.KtG(Te.onNodeSelection(R,Le))}),e._uU(2),e.ALo(3,"readI18n"),e.qZA(),e.BQk()}if(2&ue){const Ke=e.oxw().$implicit,at=e.oxw();e.xp6(),e.s9C("matTooltip",at._tooltipFn(Ke,at.translateService.currentLang)),e.Q6J("disabled",at.isDisabled(Ke.id))("checked",at.selectionModel.isSelected(Ke)),e.xp6(),e.Oqu(e.lcZ(3,4,at._displayNodeFn(Ke,at.translateService.currentLang)))}}function ae(ue,ge){if(1&ue&&(e.TgZ(0,"label",10),e._uU(1),e.ALo(2,"readI18n"),e.qZA()),2&ue){const Ke=e.oxw().$implicit,at=e.oxw();e.xp6(),e.Oqu(e.lcZ(2,1,at._displayNodeFn(Ke,at.translateService.currentLang)))}}function J(ue,ge){if(1&ue&&(e.TgZ(0,"mat-tree-node",6),e.YNc(1,B,4,6,"ng-container",7)(2,ae,3,3,"ng-template",null,8,e.W1O),e.qZA()),2&ue){const Ke=e.MAs(3),at=e.oxw();e.xp6(),e.Q6J("ngIf",!at.hideCheckBoxes)("ngIfElse",Ke)}}function q(ue,ge){1&ue&&(e.TgZ(0,"mat-icon",16),e._uU(1," expand_more "),e.qZA())}function j(ue,ge){if(1&ue){const Ke=e.EpF();e.TgZ(0,"mat-icon",17),e.NdJ("click",function(Le){e.CHM(Ke);const R=e.oxw(2);return e.KtG(R.customScrollPositionChanger(Le))}),e._uU(1," chevron_right "),e.qZA()}}function Y(ue,ge){if(1&ue){const Ke=e.EpF();e.ynx(0),e.TgZ(1,"mat-checkbox",18),e.NdJ("change",function(Le){e.CHM(Ke);const R=e.oxw().$implicit,Te=e.oxw();return e.KtG(Te.onNodeSelection(R,Le))}),e._uU(2),e.ALo(3,"readI18n"),e.qZA(),e.BQk()}if(2&ue){const Ke=e.oxw().$implicit,at=e.oxw();e.xp6(),e.s9C("matTooltip",at._tooltipFn(Ke,at.translateService.currentLang)),e.Q6J("disabled",at.isDisabled(Ke.id))("checked",at.selectionModel.isSelected(Ke)),e.xp6(),e.hij(" ",e.lcZ(3,4,at._displayNodeFn(Ke,at.translateService.currentLang)),"")}}function K(ue,ge){if(1&ue&&(e.TgZ(0,"label"),e._uU(1),e.ALo(2,"readI18n"),e.qZA()),2&ue){const Ke=e.oxw().$implicit,at=e.oxw();e.xp6(),e.Oqu(e.lcZ(2,1,at._displayNodeFn(Ke,at.translateService.currentLang)))}}function ne(ue,ge){if(1&ue&&(e.TgZ(0,"mat-nested-tree-node")(1,"li")(2,"div",11)(3,"button",12),e.YNc(4,q,2,0,"mat-icon",13)(5,j,2,0,"mat-icon",14),e.qZA(),e.YNc(6,Y,4,6,"ng-container",7)(7,K,3,3,"ng-template",null,8,e.W1O),e.qZA(),e.TgZ(9,"ul"),e.GkF(10,15),e.qZA()()()),2&ue){const Ke=ge.$implicit,at=e.MAs(8),Le=e.oxw();e.xp6(4),e.Q6J("ngIf",Le.treeControl.isExpanded(Ke)),e.xp6(),e.Q6J("ngIf",!Le.treeControl.isExpanded(Ke)&&Le.hasChild(null,Ke)),e.xp6(),e.Q6J("ngIf",!Le.hideCheckBoxes)("ngIfElse",at),e.xp6(3),e.ekj("tree-invisible",!Le.treeControl.isExpanded(Ke))}}const ee=()=>({width:"100%",height:"100%"});let $=(()=>{class ue extends c.y{set availableItems(Ke){if(Ke){const at=t(Ke).sort((Le,R)=>this._sortRootNodesFn(Le,R,this.translateService.currentLang));at.forEach(Le=>this.sortChildren(Le.children)),this.allItems=at,this.dataSource.data=t(at)}}set displayNodeFn(Ke){this._displayNodeFn=Ke||this.defaultDisplayFn}set sortNodesFn(Ke){this._sortNodesFn=Ke||this.defaultSortNodesFn}set sortRootNodesFn(Ke){this._sortRootNodesFn=Ke||this.defaultSortNodesFn}set tooltipFn(Ke){this._tooltipFn=Ke||this.defaultDisplayFn}constructor(Ke){super(),this.translateService=Ke,this._displayNodeFn=this.defaultDisplayFn,this._sortNodesFn=this.defaultSortNodesFn,this._sortRootNodesFn=this.defaultSortNodesFn,this._tooltipFn=this.defaultDisplayFn,this.singleSelect=!1,this.hideCheckBoxes=!1,this.disabledIds=[],this.dataSource=new l.WX,this.treeControl=new s.VY(at=>at.children),this.selectionModel=new i.Ov(!0),this.allItems=[],this.incomingValues=[],this.disabledTree=!1,this.hasChild=(at,Le)=>null!=Le.children&&Le.children.length>0}getSelectedIds(){return this.selectionModel.selected.map(Ke=>Ke.id)}initTreeComponents(){this.dataSource.data=t(this.allItems),this.treeControl=new s.VY(Ke=>Ke.children),this.selectionModel=new i.Ov(!0)}sortChildren(Ke){Ke&&Ke.length>0&&(Ke=Ke.sort((at,Le)=>this._sortNodesFn(at,Le,this.translateService.currentLang))).forEach(at=>this.sortChildren(at.children))}ngOnChanges(Ke){this.handleIncomingValues()}handleIncomingValues(){this.dataSource.data.length>0&&this.incomingValues.length>0&&(this.incomingValues.forEach(Ke=>{this.dataSource.data.forEach(at=>{this.selectNode(Ke,at)})}),this.incomingValues=[]),this.dataSource.data.forEach(Ke=>this.treeControl.expand(Ke))}toggleState(Ke){this.disabledTree=Ke}writeValue(Ke){this.initTreeComponents(),null!=Ke&&(this.incomingValues="string"==typeof Ke?Ke.split(",").map(at=>Number.parseInt(at)):Ke,this.handleIncomingValues())}selectNode(Ke,at){at.id===Ke&&(this.selectionModel.select(at),this.expandNodeUp(at)),at.children&&at.children.forEach(Le=>this.selectNode(Ke,Le))}expandNodeUp(Ke){this.treeControl.expand(Ke),Ke.parent&&this.expandNodeUp(Ke.parent)}isDisabled(Ke){return this.disabledIds.some(at=>at===Ke)}onNodeSelection(Ke,at){at.checked?(this.singleSelect&&this.selectionModel.clear(),this.selectionModel.select(Ke)):this.selectionModel.deselect(Ke),this.propagateChange(this.selectionModel.selected.map(Le=>Le.id))}descendantsAllSelected(Ke){return this.treeControl.getDescendants(Ke).every(Le=>this.selectionModel.isSelected(Le))}descendantsPartiallySelected(Ke){return this.treeControl.getDescendants(Ke).some(R=>this.selectionModel.isSelected(R))&&!this.descendantsAllSelected(Ke)}descendantsNotSelected(Ke){return this.treeControl.getDescendants(Ke).every(Le=>!this.selectionModel.isSelected(Le))}customScrollPositionChanger(Ke){setTimeout(()=>{const at=Ke.clientY-this.treeGroup.nativeElement.getBoundingClientRect().top-14,Le=this.treeGroup.nativeElement.querySelector(".p-scrollpanel-content");Le.scrollTop+at>=Le.scrollTopMax?Le.scrollTop=Le.scrollTopMax:Le.scrollTop+=at},20)}toggleParentsSelection(Ke,at){at&&this.selectionModel.select(Ke),at||this.descendantsNotSelected(Ke)&&this.selectionModel.deselect(Ke),null!=Ke.parent&&this.toggleParentsSelection(Ke.parent,at)}defaultDisplayFn(Ke){return Ke.id.toString()}defaultSortNodesFn(Ke,at,Le){return Ke.id>at.id?1:-1}static#e=this.\u0275fac=function(at){return new(at||ue)(e.Y36(o.sK))};static#t=this.\u0275cmp=e.Xpm({type:ue,selectors:[["imx-base-tree"]],viewQuery:function(at,Le){if(1&at&&e.Gf(G,7),2&at){let R;e.iGM(R=e.CRH())&&(Le.treeGroup=R.first)}},hostAttrs:[1,"imx-base-tree"],inputs:{availableItems:"availableItems",singleSelect:"singleSelect",displayNodeFn:"displayNodeFn",sortNodesFn:"sortNodesFn",sortRootNodesFn:"sortRootNodesFn",tooltipFn:"tooltipFn",hideCheckBoxes:"hideCheckBoxes",disabledIds:"disabledIds"},features:[e._Bn([{provide:n.JU,useExisting:(0,e.Gpc)(()=>ue),multi:!0}]),e.qOj,e.TTD],decls:7,vars:9,consts:[[3,"label","forId","required"],[1,"tree-group"],["treeGroup",""],[1,"tree",3,"dataSource","treeControl"],["class","tree__node","matTreeNodeToggle","","matTreeNodePadding","",4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle","","matTreeNodePadding","",1,"tree__node"],[4,"ngIf","ngIfElse"],["labelonly",""],["matTooltipShowDelay","5000",1,"small","leaf",3,"matTooltip","disabled","checked","change"],[2,"margin-left","10px"],[1,"mat-tree-node","tree__node"],["mat-icon-button","","matTreeNodeToggle",""],["class","mat-icon-rtl-mirror",4,"ngIf"],["class","mat-icon-rtl-mirror",3,"click",4,"ngIf"],["matTreeNodeOutlet",""],[1,"mat-icon-rtl-mirror"],[1,"mat-icon-rtl-mirror",3,"click"],["matTooltipShowDelay","5000",1,"small",3,"matTooltip","disabled","checked","change"]],template:function(at,Le){1&at&&(e._UZ(0,"imx-base-input-label",0),e.TgZ(1,"div",1,2)(3,"p-scrollPanel")(4,"mat-tree",3),e.YNc(5,J,4,2,"mat-tree-node",4)(6,ne,11,6,"mat-nested-tree-node",5),e.qZA()()()),2&at&&(e.Q6J("label",Le.label)("forId",Le.id)("required",Le.required),e.xp6(3),e.Akn(e.DdM(8,ee)),e.xp6(),e.Q6J("dataSource",Le.dataSource)("treeControl",Le.treeControl),e.xp6(2),e.Q6J("matTreeNodeDefWhen",Le.hasChild))},dependencies:[x.O5,u.RK,m.oG,b.Hw,I.gM,l.GZ,l.fQ,l.ah,l.eu,l.gi,l.uo,l.Ar,H.P,O.u,P.j],styles:["mat-tree .tree__node .leaf{padding-left:24px}  mat-tree .mat-nested-tree-node ul{padding-left:22px}  mat-tree .mat-nested-tree-node .mat-icon{line-height:20px}  mat-tree .mat-nested-tree-node .material-icons{font-size:18px;color:#0a2663}  mat-tree .mat-tree-node.tree__node{min-height:18px;color:#0a2663}  mat-tree .mat-mdc-icon-button{width:24px;height:24px;line-height:20px;padding:0}.tree-invisible[_ngcontent-%COMP%]{display:none}.tree[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%], .tree[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.tree-group[_ngcontent-%COMP%]{min-height:200px}"]})}return ue})()},6929:(gt,X,a)=>{"use strict";a.d(X,{q:()=>b});var e=a(19212),n=a(56223),s=a(49193),l=a(21473),i=a(27556),t=a(48499),p=a(51100),c=a(96814),o=a(35617);function x(I,H){if(1&I&&(e.ynx(0),e._UZ(1,"imx-base-tree",1),e.ALo(2,"async"),e.BQk()),2&I){const O=e.oxw(2);e.xp6(),e.Q6J("formControl",O.control)("disableControl",O.disableControl)("displayNodeFn",O.displayNodeFn)("sortNodesFn",O.sortNodesFn)("sortRootNodesFn",O.sortRootNodesFn)("availableItems",e.lcZ(2,10,O.rootNodes$))("label",O.field.renderLabel?O.field.label:void 0)("required",O.field.required)("hint",O.field.hint)("errors",O.errors)}}function u(I,H){if(1&I&&(e.ynx(0),e.YNc(1,x,3,12,"ng-container",0),e.BQk()),2&I){const O=H.ngIf;e.xp6(),e.Q6J("ngIf",O.read)}}const m=(0,l.jl)("TreeComponent",i.H.name);let b=(()=>{class I extends p.A{constructor(){super(...arguments),this.disableControl=!1}ngOnChanges(O){O.treeOptionProvider&&this.initializeOptions()}ngOnInit(){super.ngOnInit(),(!this.formHandler||!this.control||!this.field)&&m.warn("Cannot create the Tree component: One of  Formhandler, Field or control is null. Check all @Input values!"),this.initializeOptions()}initializeOptions(){this.treeOptionProvider instanceof t.Cf?this.rootNodes$=this.treeOptionProvider.getRootNodes():this.treeOptionProvider instanceof Array?this.rootNodes$=(0,s.of)(this.treeOptionProvider):m.warn("no root nodes passed for tree shuffle field "+this.field.id)}static#e=this.\u0275fac=(()=>{let O;return function(G){return(O||(O=e.n5z(I)))(G||I)}})();static#t=this.\u0275cmp=e.Xpm({type:I,selectors:[["imx-tree"]],hostAttrs:[1,"imx-tree"],inputs:{name:"name",treeOptionProvider:"treeOptionProvider",displayNodeFn:"displayNodeFn",sortNodesFn:"sortNodesFn",sortRootNodesFn:"sortRootNodesFn",disableControl:"disableControl"},features:[e._Bn([{provide:n.JU,useExisting:(0,e.Gpc)(()=>I),multi:!0}]),e.qOj,e.TTD],decls:2,vars:3,consts:[[4,"ngIf"],[3,"formControl","disableControl","displayNodeFn","sortNodesFn","sortRootNodesFn","availableItems","label","required","hint","errors"]],template:function(P,G){1&P&&(e.YNc(0,u,2,1,"ng-container",0),e.ALo(1,"async")),2&P&&e.Q6J("ngIf",e.lcZ(1,1,G.fieldPermission))},dependencies:[c.O5,n.JJ,n.Q7,n.oH,o.Q,c.Ov]})}return I})()},48845:(gt,X,a)=>{"use strict";a.d(X,{G:()=>t});var e=a(19212),n=a(56223),s=a(2563),l=a(87466),i=a(71365);let t=(()=>{class p extends s.y{static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=e.n5z(p)))(u||p)}})();static#t=this.\u0275cmp=e.Xpm({type:p,selectors:[["imx-base-triple-radio-button"]],features:[e._Bn([{provide:n.JU,useExisting:(0,e.Gpc)(()=>p),multi:!0}]),e.qOj],decls:12,vars:13,consts:[["translate",""],[1,"small",3,"ngModel","ngModelChange"],[3,"value"]],template:function(x,u){1&x&&(e.TgZ(0,"label",0),e._uU(1),e.qZA(),e.TgZ(2,"mat-radio-group",1),e.NdJ("ngModelChange",function(b){return u.model=b}),e.TgZ(3,"mat-radio-button",2),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.TgZ(6,"mat-radio-button",2),e._uU(7),e.ALo(8,"translate"),e.qZA(),e.TgZ(9,"mat-radio-button",2),e._uU(10),e.ALo(11,"translate"),e.qZA()()),2&x&&(e.xp6(),e.Oqu(u.label),e.xp6(),e.Q6J("ngModel",u.model),e.xp6(2),e.hij(" ",e.lcZ(5,7,"imxplatform.component.triple-radio-button.no-matter")," "),e.xp6(2),e.Q6J("value",!1),e.xp6(),e.hij(" ",e.lcZ(8,9,"imxplatform.component.triple-radio-button.no")," "),e.xp6(2),e.Q6J("value",!0),e.xp6(),e.hij(" ",e.lcZ(11,11,"imxplatform.component.triple-radio-button.yes")," "))},dependencies:[n.JJ,n.On,l.VQ,l.U0,i.Pi,i.X$],styles:["[_nghost-%COMP%]{align-items:center;display:flex;justify-content:space-between;padding:5px 0}.mat-mdc-radio-group[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:30px}"]})}return p})()},49518:(gt,X,a)=>{"use strict";a.d(X,{W:()=>c});var e=a(51100),n=a(19212),s=a(96814),l=a(56223),i=a(48845);function t(o,x){if(1&o&&(n.ynx(0),n._UZ(1,"imx-base-triple-radio-button",1),n.BQk()),2&o){const u=n.oxw(2);n.xp6(),n.Q6J("formControl",u.control)("disableControl",u.control.disabled)("label",u.field.renderLabel?u.field.label:void 0)("required",u.field.required)("hint",u.field.hint)("errors",u.errors)}}function p(o,x){if(1&o&&(n.ynx(0),n.YNc(1,t,2,6,"ng-container",0),n.BQk()),2&o){const u=x.ngIf;n.xp6(),n.Q6J("ngIf",u.read)}}let c=(()=>{class o extends e.A{static#e=this.\u0275fac=(()=>{let u;return function(b){return(u||(u=n.n5z(o)))(b||o)}})();static#t=this.\u0275cmp=n.Xpm({type:o,selectors:[["imx-triple-radio-button"]],hostAttrs:[1,"imx-triple-radio-button"],inputs:{form:"form"},features:[n.qOj],decls:2,vars:3,consts:[[4,"ngIf"],[3,"formControl","disableControl","label","required","hint","errors"]],template:function(m,b){1&m&&(n.YNc(0,p,2,1,"ng-container",0),n.ALo(1,"async")),2&m&&n.Q6J("ngIf",n.lcZ(1,1,b.fieldPermission))},dependencies:[s.O5,l.JJ,l.Q7,l.oH,i.G,s.Ov]})}return o})()},86929:(gt,X,a)=>{"use strict";a.d(X,{U:()=>o});var e=a(59143),n=a(30342),s=a(19212),l=a(96814),i=a(56223),t=a(28907);function p(x,u){if(1&x&&s._UZ(0,"imx-form-control",4),2&x){const m=u.$implicit,b=s.oxw(2);s.Q6J("field",m)("control",b.formHandler.formGroup.get(m.id))("form",b.formHandler.formGroup)("config",b.formHandler.formConfiguration)("formHandler",b.formHandler)}}function c(x,u){if(1&x){const m=s.EpF();s.TgZ(0,"div",1)(1,"form",2),s.NdJ("ngSubmit",function(){s.CHM(m);const I=s.oxw();return s.KtG(I.submit())}),s.YNc(2,p,1,5,"ng-template",3),s.qZA()()}if(2&x){const m=s.oxw();s.xp6(),s.Q6J("formGroup",m.formHandler.formGroup),s.xp6(),s.Q6J("ngForOf",m.formHandler.formConfiguration.fields)}}let o=(()=>{class x extends n.N{constructor(m){super(m),this.userMessageService=m}ngOnChanges(m){m.record&&(this.formHandler.baseObject=m.record.currentValue)}static#e=this.\u0275fac=function(b){return new(b||x)(s.Y36(e.Y))};static#t=this.\u0275cmp=s.Xpm({type:x,selectors:[["imx-form"]],features:[s.qOj,s.TTD],decls:1,vars:1,consts:[["class","form",4,"ngIf"],[1,"form"],[3,"formGroup","ngSubmit"],["ngFor","",3,"ngForOf"],[3,"field","control","form","config","formHandler"]],template:function(b,I){1&b&&s.YNc(0,c,3,2,"div",0),2&b&&s.Q6J("ngIf",I.formHandler)},dependencies:[l.sg,l.O5,i._Y,i.JL,i.sg,t.A],styles:[".imx-form[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   .button-bar[_ngcontent-%COMP%]{float:right}"]})}return x})()},9413:(gt,X,a)=>{"use strict";a.d(X,{s:()=>R});var e=a(19212),n=a(56223),s=a(72079),l=a(51418),i=a(19352),p=(a(45315),a(57462)),c=a(65444),o=a(71365),x=a(96814),u=a(37012),m=a(12),b=a(33118),I=a(28907),H=a(22194);function O(Te,me){if(1&Te&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&Te){const Se=e.oxw();e.xp6(),e.Oqu(Se.optionDescription)}}function P(Te,me){1&Te&&e.GkF(0)}function G(Te,me){1&Te&&e.GkF(0)}function B(Te,me){1&Te&&e.GkF(0)}const ae=()=>({$implicit:"fromDate"}),J=()=>({$implicit:"toDate"});function q(Te,me){if(1&Te&&(e.TgZ(0,"imx-grid-element",1),e.YNc(1,G,1,0,"ng-container",4),e.qZA(),e.TgZ(2,"imx-grid-element",1),e.YNc(3,B,1,0,"ng-container",4),e.qZA(),e._UZ(4,"br")(5,"br")),2&Te){e.oxw();const Se=e.MAs(25);e.Q6J("lg_w",6)("sm_w",6)("ty_w",12),e.xp6(),e.Q6J("ngTemplateOutlet",Se)("ngTemplateOutletContext",e.DdM(10,ae)),e.xp6(),e.Q6J("lg_w",6)("sm_w",6)("ty_w",12),e.xp6(),e.Q6J("ngTemplateOutlet",Se)("ngTemplateOutletContext",e.DdM(11,J))}}function j(Te,me){1&Te&&e.GkF(0)}function Y(Te,me){1&Te&&e.GkF(0)}function K(Te,me){1&Te&&e.GkF(0)}function ne(Te,me){1&Te&&e.GkF(0)}function ee(Te,me){if(1&Te){const Se=e.EpF();e.TgZ(0,"imx-grid-element",1),e.YNc(1,ne,1,0,"ng-container",3),e.TgZ(2,"a",7),e.NdJ("click",function(){e.CHM(Se);const We=e.oxw();return e.KtG(We.selectAllLanguages())}),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"span"),e._uU(6," | "),e.qZA(),e.TgZ(7,"a",7),e.NdJ("click",function(){e.CHM(Se);const We=e.oxw();return e.KtG(We.deSelectAllLanguages())}),e._uU(8),e.ALo(9,"translate"),e.qZA()()}if(2&Te){const Se=e.oxw();e.Q6J("lg_w",12)("sm_w",12)("ty_w",12),e.xp6(),e.Q6J("ngIf",Se.languageIds&&Se.languageIds.length>0),e.xp6(2),e.hij(" ",e.lcZ(4,6,"imxplatform.common-entity.list.action.modify-appearances.select-all-languages"),""),e.xp6(5),e.hij(" ",e.lcZ(9,8,"imxplatform.common-entity.list.action.modify-appearances.select-no-languages")," ")}}function $(Te,me){if(1&Te&&e._UZ(0,"imx-form-control",8),2&Te){const Se=me.$implicit,Ue=e.oxw();e.Q6J("field",Ue.formHandler.formConfiguration.findFormFieldById(Se))("control",Ue.formHandler.formGroup.get(Se))("form",Ue.formHandler.formGroup)("formHandler",Ue.formHandler)("config",Ue.formHandler.formConfiguration)}}const ue=()=>({$implicit:"deliveryChannelId"}),ge=()=>({$implicit:"prioLevelId"}),Ke=()=>({$implicit:"contextProductlineId"}),at=()=>({$implicit:"languageIds"});var Le=function(Te){return Te.ADD="ADD",Te.REPLACE="REPLACE",Te.REMOVE="REMOVE",Te}(Le||{});let R=(()=>{class Te{constructor(Se,Ue,We){this.translateService=Se,this.languageOptionProviderService=Ue,this.changeDetectorRef=We,this.destroy$=new s.xQ,this.modifyOptionRadioButtons=[],this.optionDescription="",this.currentOption=Le.ADD,this.showFromTo=(0,e.tdS)(!1),this.languageIds=[]}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngOnInit(){Object.keys(Le).forEach(Se=>{this.modifyOptionRadioButtons.push({value:Se,label:this.translateService.instant("imxplatform.common-entity.list.action.modify-appearances.option_"+Se.toLowerCase())})}),this.formHandler.formGroup.get("modifyOption").setValue(Le.ADD),this.setOptionDescription(Le.ADD),this.setRequiredFields(Le.ADD),this.languageOptionProviderService.getOptionsAsIdValue(null,null).pipe((0,l.q)(1)).subscribe(Se=>{this.languageIds=Se.map(Ue=>Ue.value),this.selectAllLanguages()}),this.formHandler.formGroup.get("languageIds").valueChanges.pipe((0,i.R)(this.destroy$)).subscribe(()=>{this.formHandler.formGroup.get("languageIds").markAsDirty({onlySelf:!1}),this.changeDetectorRef.markForCheck()}),this.formHandler.formGroup.get("modifyOption").valueChanges.pipe((0,i.R)(this.destroy$)).subscribe(Se=>{this.setOptionDescription(Se),this.setRequiredFields(Se),this.currentOption=Se})}removeRequiredValidatorForControlAndDisable(Se,Ue){this.formHandler.formGroup.get(Se)&&(this.formHandler.formGroup.get(Se).setValidators(null),this.formHandler.formGroup.get(Se).setValue(Ue,{emitEvent:!1}),this.formHandler.formGroup.get(Se).updateValueAndValidity({emitEvent:!1}),this.formHandler.formGroup.get(Se).disable())}addRequiredValidatorForControlAndEnable(Se,Ue,We=!0){this.formHandler.formGroup.get(Se)&&(this.formHandler.formGroup.get(Se).enable({emitEvent:!1}),this.formHandler.formGroup.get(Se).setValidators(Ue),this.formHandler.formConfiguration.findFormFieldById(Se).required=We,this.formHandler.formGroup.get(Se).updateValueAndValidity({emitEvent:!1}))}setRequiredFields(Se){Le.REMOVE===Se?(this.removeRequiredValidatorForControlAndDisable("prioLevelId",-1),this.removeRequiredValidatorForControlAndDisable("contextProductlineId",-1),this.removeRequiredValidatorForControlAndDisable("languageIds",[]),"Event"!==this.forEntityType&&(this.removeRequiredValidatorForControlAndDisable("toDate",null),this.removeRequiredValidatorForControlAndDisable("fromDate",null),this.showFromTo.set(!1))):(this.addRequiredValidatorForControlAndEnable("prioLevelId",p.lS),this.addRequiredValidatorForControlAndEnable("contextProductlineId",null,!1),this.addRequiredValidatorForControlAndEnable("languageIds",null,!1),"Event"!==this.forEntityType&&(this.addRequiredValidatorForControlAndEnable("toDate",n.kI.required),this.addRequiredValidatorForControlAndEnable("fromDate",n.kI.required),this.showFromTo.set(!0)))}setOptionDescription(Se){this.optionDescription=this.translateService.instant("imxplatform.common-entity.list.action.modify-appearances.option_"+Se.toLowerCase()+"_desc")}selectAllLanguages(){this.languageIds.length>0&&this.formHandler.formGroup.get("languageIds").setValue(this.languageIds)}deSelectAllLanguages(){this.formHandler.formGroup.get("languageIds").setValue([])}static#e=this.\u0275fac=function(Ue){return new(Ue||Te)(e.Y36(o.sK),e.Y36(c.b),e.Y36(e.sBO))};static#t=this.\u0275cmp=e.Xpm({type:Te,selectors:[["imx-modify-appearances-data-dialog-content"]],inputs:{formHandler:"formHandler",forEntityType:"forEntityType"},decls:26,vars:35,consts:[[3,"formGroup"],[3,"lg_w","sm_w","ty_w"],["formControlName","modifyOption","label","imxplatform.common-entity.list.action.modify-appearances.select","mode","block",3,"radioButtons"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"lg_w","sm_w","ty_w",4,"ngIf"],["imxControl",""],[3,"click"],[3,"field","control","form","formHandler","config"]],template:function(Ue,We){if(1&Ue&&(e.TgZ(0,"imx-grid")(1,"div",0)(2,"imx-grid-element",1),e._UZ(3,"imx-base-radio-button-group",2),e.qZA(),e.TgZ(4,"imx-grid-element",1),e.YNc(5,O,2,1,"span",3),e.qZA(),e._UZ(6,"br")(7,"br"),e.TgZ(8,"imx-grid-element",1),e.YNc(9,P,1,0,"ng-container",4),e.qZA(),e._UZ(10,"br")(11,"br"),e.YNc(12,q,6,12),e.TgZ(13,"imx-grid-element",1),e.YNc(14,j,1,0,"ng-container",4),e.qZA(),e.TgZ(15,"imx-grid-element",1),e.YNc(16,Y,1,0,"ng-container",4),e.qZA(),e._UZ(17,"br")(18,"br"),e.TgZ(19,"imx-grid-element",1),e.YNc(20,K,1,0,"ng-container",4),e.qZA(),e.YNc(21,ee,10,10,"imx-grid-element",5),e._UZ(22,"br")(23,"br"),e.qZA()(),e.YNc(24,$,1,5,"ng-template",null,6,e.W1O)),2&Ue){const et=e.MAs(25);e.xp6(),e.Q6J("formGroup",We.formHandler.formGroup),e.xp6(),e.Q6J("lg_w",4)("sm_w",4)("ty_w",12),e.xp6(),e.Q6J("radioButtons",We.modifyOptionRadioButtons),e.xp6(),e.Q6J("lg_w",8)("sm_w",8)("ty_w",12),e.xp6(),e.Q6J("ngIf",We.optionDescription.length>0),e.xp6(3),e.Q6J("lg_w",12)("sm_w",12)("ty_w",12),e.xp6(),e.Q6J("ngTemplateOutlet",et)("ngTemplateOutletContext",e.DdM(31,ue)),e.xp6(3),e.um2(12,We.showFromTo()?12:-1),e.xp6(),e.Q6J("lg_w",6)("sm_w",6)("ty_w",12),e.xp6(),e.Q6J("ngTemplateOutlet",et)("ngTemplateOutletContext",e.DdM(32,ge)),e.xp6(),e.Q6J("lg_w",6)("sm_w",6)("ty_w",12),e.xp6(),e.Q6J("ngTemplateOutlet",et)("ngTemplateOutletContext",e.DdM(33,Ke)),e.xp6(3),e.Q6J("lg_w",12)("sm_w",12)("ty_w",12),e.xp6(),e.Q6J("ngTemplateOutlet",et)("ngTemplateOutletContext",e.DdM(34,at)),e.xp6(),e.Q6J("ngIf","REMOVE"!==We.currentOption)}},dependencies:[x.O5,x.tP,n.JJ,n.JL,n.sg,n.u,u.M,m.V,b.q,I.A,H.F,o.X$]})}return Te})()},83010:(gt,X,a)=>{"use strict";a.d(X,{Ee:()=>H,zn:()=>b,CU:()=>I});var e=a(19212),n=a(32651),s=a(72079),l=a(31933);class i{constructor(P,G){this.parentInjector=P,this.additionalTokens=G}get(P,G,B){return this.additionalTokens.get(P)||this.parentInjector.get(P,G)}}var t=a(96814);const p=["genericContent"];function c(O,P){}const o=(O,P)=>({fixed:O,"always-fixed":P}),x=["*"],b=new e.OlP("imxplatform.slidein.data");var I=function(O){return O.MEMO="MEMO",O}(I||{});let H=(()=>{class O{constructor(G){this.injector=G,this.isListFixed=!1}open(G,B){const ae=new s.xQ,J=new l.N(ae),q=new WeakMap;return q.set(b,B.data),this.genericContent.clear(),this.calculateFixedPosition(),this.genericContent.createComponent(G,{injector:new i(this.injector,q)}).instance.sidenav=this.sideNav,this.sideNav.open().then(Y=>{const K=this.sideNav._closedStream.subscribe(ne=>{ae.next(B.data),K.unsubscribe(),this.genericContent.clear()})}),J}isSlideInOpen(){return!(!this.sideNav||!this.sideNav)&&this.sideNav.opened}close(){this.sideNav.close()}onScrollEvent(){this.isSlideInOpen()&&!this.alwaysFixed&&this.calculateFixedPosition()}determineMode(){return window.innerWidth>1440?"side":"over"}calculateFixedPosition(){window.pageYOffset>0&&!this.alwaysFixed&&(this.isListFixed=window.pageYOffset>60)}static#e=this.\u0275fac=function(B){return new(B||O)(e.Y36(e.zs3))};static#t=this.\u0275cmp=e.Xpm({type:O,selectors:[["imx-generic-slide-in-page"]],viewQuery:function(B,ae){if(1&B&&(e.Gf(p,7,e.s_b),e.Gf(n.JX,5)),2&B){let J;e.iGM(J=e.CRH())&&(ae.genericContent=J.first),e.iGM(J=e.CRH())&&(ae.sideNav=J.first)}},hostBindings:function(B,ae){1&B&&e.NdJ("scroll",function(){return ae.onScrollEvent()},!1,e.Jf7)},inputs:{alwaysFixed:"alwaysFixed"},ngContentSelectors:x,decls:7,vars:5,consts:[[1,"generic-sidenav-container"],["position","end",3,"mode"],[1,"slide-in-container",3,"ngClass"],["genericContent",""]],template:function(B,ae){1&B&&(e.F$t(),e.TgZ(0,"mat-sidenav-container",0)(1,"mat-sidenav-content"),e.Hsn(2),e.qZA(),e.TgZ(3,"mat-sidenav",1)(4,"div",2),e.YNc(5,c,0,0,"ng-template",null,3,e.W1O),e.qZA()()()),2&B&&(e.xp6(3),e.Q6J("mode",ae.determineMode()),e.xp6(),e.Q6J("ngClass",e.WLB(2,o,ae.isListFixed,ae.alwaysFixed)))},dependencies:[t.mk,n.JX,n.TM,n.Rh],styles:["mat-sidenav-container.generic-sidenav-container[_ngcontent-%COMP%]{height:100%;min-height:calc(100vh - 220px);background:#fff}  .mat-drawer-backdrop.mat-drawer-shown{--mat-sidenav-scrim-color: rgba(0,0,0,.6)}.generic-sidenav-container[_ngcontent-%COMP%]   .mat-drawer[_ngcontent-%COMP%]{background-color:#fff}mat-sidenav-content[_ngcontent-%COMP%]{overflow:unset}mat-sidenav[_ngcontent-%COMP%]{border:none!important}mat-sidenav.mat-drawer-opened[_ngcontent-%COMP%]{width:305px;min-width:305px;max-width:305px}mat-sidenav[_ngcontent-%COMP%]   .slide-in-container[_ngcontent-%COMP%]{height:calc(100vh - 220px);width:305px}mat-sidenav[_ngcontent-%COMP%]   .slide-in-container.fixed[_ngcontent-%COMP%]:not(.always-fixed){position:fixed;top:110px;height:calc(100vh - 160px)}mat-sidenav[_ngcontent-%COMP%]   .slide-in-container.always-fixed[_ngcontent-%COMP%]{top:163px;position:fixed;height:calc(100vh - 170px)}"]})}return O})()},94289:(gt,X,a)=>{"use strict";a.d(X,{l:()=>G});var e=a(21473),n=a(19212),s=a(96814),l=a(38777),i=a(1614);const t=["tooltipextended"];function p(B,ae){if(1&B&&n._UZ(0,"img",6),2&B){const J=n.oxw(2);n.MGl("src","./assets/flags/",J.languages[0].name,".svg",n.LSH)}}function c(B,ae){if(1&B&&n._UZ(0,"img",6),2&B){const J=n.oxw(2);n.MGl("src","./assets/flags/",J.languages[1].name,".svg",n.LSH)}}function o(B,ae){if(1&B&&n._UZ(0,"img",6),2&B){const J=n.oxw(2);n.MGl("src","./assets/flags/",J.languages[2].name,".svg",n.LSH)}}function x(B,ae){if(1&B&&(n.TgZ(0,"span",7),n._uU(1),n.qZA()),2&B){const J=n.oxw(2);n.xp6(),n.hij("+",J.languages.length-2,"")}}function u(B,ae){if(1&B&&n._UZ(0,"img",8),2&B){const J=n.oxw(2);n.MGl("src","./assets/flags/",J.languages[2].name,".svg",n.LSH)}}function m(B,ae){if(1&B&&n._UZ(0,"img",8),2&B){const J=n.oxw(2);n.MGl("src","./assets/flags/",J.languages[3].name,".svg",n.LSH)}}function b(B,ae){if(1&B&&n._UZ(0,"img",8),2&B){const J=n.oxw(2);n.MGl("src","./assets/flags/",J.languages[4].name,".svg",n.LSH)}}function I(B,ae){if(1&B){const J=n.EpF();n.TgZ(0,"span",9),n.NdJ("mouseenter",function(j){n.CHM(J),n.oxw();const Y=n.MAs(10);return n.KtG(Y.show(j))})("mouseleave",function(){n.CHM(J),n.oxw();const j=n.MAs(10);return n.KtG(j.hide())}),n._uU(1),n.qZA()}if(2&B){const J=n.oxw(2);n.xp6(),n.hij("+",J.languages.length-4,"")}}function H(B,ae){if(1&B&&(n.TgZ(0,"div"),n._UZ(1,"img",6),n.TgZ(2,"span"),n._uU(3),n.ALo(4,"readI18n"),n.qZA()()),2&B){const J=ae.$implicit;n.xp6(),n.MGl("src","./assets/flags/",J.name,".svg",n.LSH),n.xp6(2),n.Oqu(n.lcZ(4,2,J.i18nName))}}function O(B,ae){if(1&B&&(n.ynx(0),n.YNc(1,H,5,4,"div",10),n.BQk()),2&B){const J=n.oxw(2);n.xp6(),n.Q6J("ngForOf",J.languagesComplete.slice(4))}}function P(B,ae){if(1&B&&(n.ynx(0),n.YNc(1,p,1,1,"img",1)(2,c,1,1,"img",1)(3,o,1,1,"img",1)(4,x,2,1,"span",2)(5,u,1,1,"img",3)(6,m,1,1,"img",3)(7,b,1,1,"img",3)(8,I,2,1,"span",4),n.TgZ(9,"imx-tooltip-extended",null,5),n.YNc(11,O,2,1,"ng-container",0),n.qZA(),n.BQk()),2&B){const J=n.oxw();n.xp6(),n.Q6J("ngIf",J.languages.length>0),n.xp6(),n.Q6J("ngIf",J.languages.length>1),n.xp6(),n.Q6J("ngIf",3==J.languages.length),n.xp6(),n.Q6J("ngIf",J.languages.length>3),n.xp6(),n.Q6J("ngIf",J.languages.length>2&&3!=J.languages.length),n.xp6(),n.Q6J("ngIf",J.languages.length>3),n.xp6(),n.Q6J("ngIf",5==J.languages.length),n.xp6(),n.Q6J("ngIf",J.languages.length>5),n.xp6(3),n.Q6J("ngIf",J.languagesComplete.length>5)}}let G=(()=>{class B{constructor(J){this.runtimeContextService=J,this.languagesComplete=[],this.inline=!1}ngOnInit(){this.publishClass="imx-language-flag "+this.blockOrInline(),this.provideToolTipContent(),this.sortLanguagesById()}blockOrInline(){return this.inline?"inline":"block"}provideToolTipContent(){this.languagesComplete=this.runtimeContextService.enrichLanguages(this.languages.map(J=>J.id))}sortLanguagesById(){this.languagesComplete.sort((J,q)=>J.id-q.id),this.languages.sort((J,q)=>J.id-q.id)}static#e=this.\u0275fac=function(q){return new(q||B)(n.Y36(e.Ze))};static#t=this.\u0275cmp=n.Xpm({type:B,selectors:[["imx-language-flag"]],viewQuery:function(q,j){if(1&q&&n.Gf(t,5),2&q){let Y;n.iGM(Y=n.CRH())&&(j.tooltipextended=Y.first)}},hostVars:2,hostBindings:function(q,j){2&q&&n.Tol(j.publishClass)},inputs:{languages:"languages",inline:"inline"},decls:1,vars:1,consts:[[4,"ngIf"],["class","language-icon inline",3,"src",4,"ngIf"],["class","further-languages inline",4,"ngIf"],["class","language-icon block",3,"src",4,"ngIf"],["class","further-languages block",3,"mouseenter","mouseleave",4,"ngIf"],["tooltipextended",""],[1,"language-icon","inline",3,"src"],[1,"further-languages","inline"],[1,"language-icon","block",3,"src"],[1,"further-languages","block",3,"mouseenter","mouseleave"],[4,"ngFor","ngForOf"]],template:function(q,j){1&q&&n.YNc(0,P,12,9,"ng-container",0),2&q&&n.Q6J("ngIf",j.languages&&j.languages.length>0)},dependencies:[s.sg,s.O5,l.j,i.j],styles:[".imx-language-flag[_nghost-%COMP%]{display:flex}.imx-language-flag.inline[_nghost-%COMP%]{flex-direction:row}.imx-language-flag.block[_nghost-%COMP%]{flex-direction:column}.imx-language-flag.inline[_nghost-%COMP%]   .language-icon.block[_ngcontent-%COMP%]{display:none}.imx-language-flag.inline[_nghost-%COMP%]   .further-languages.block[_ngcontent-%COMP%]{display:none}.imx-language-flag.block[_nghost-%COMP%]   .further-languages.inline[_ngcontent-%COMP%]{display:none}.language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-right:5px;margin-bottom:3px}.further-languages[_ngcontent-%COMP%]{width:20px;height:12px;margin-right:5px;background-color:#ced4e0;font-size:12px;line-height:12px;text-align:center;display:inline-block}"],changeDetection:0})}return B})()},42094:(gt,X,a)=>{"use strict";a.d(X,{H:()=>m});var e=a(86825),n=a(23291),l=(a(45315),a(19212)),i=a(96814),t=a(71365),p=a(1614);function c(b,I){if(1&b){const H=l.EpF();l.TgZ(0,"button",7),l.NdJ("click",function(){l.CHM(H);const P=l.oxw();return l.KtG(P.toggle())}),l._UZ(1,"img",8),l.ALo(2,"readI18n"),l.TgZ(3,"span",9),l._uU(4,"imxplatform.common.object-language "),l.qZA(),l.TgZ(5,"span",10),l._uU(6),l.ALo(7,"readI18n"),l.qZA()()}if(2&b){const H=l.oxw();l.xp6(),l.Q6J("src","./assets/flags/"+H.currentLanguage.name+".svg",l.LSH)("alt",l.lcZ(2,3,H.currentLanguage.i18nName)),l.xp6(5),l.hij("(",l.lcZ(7,5,H.currentLanguage.i18nName),")")}}function o(b,I){1&b&&l._UZ(0,"span",11)}function x(b,I){1&b&&l._UZ(0,"span",12)}function u(b,I){if(1&b){const H=l.EpF();l.TgZ(0,"div",13),l.NdJ("click",function(){const G=l.CHM(H).$implicit,B=l.oxw();return l.KtG(B.selectLanguage(G))}),l._UZ(1,"img",14),l.ALo(2,"readI18n"),l.TgZ(3,"span",15),l._uU(4),l.ALo(5,"readI18n"),l.qZA()()}if(2&b){const H=I.$implicit;l.xp6(),l.Q6J("src","./assets/flags/"+H.name+".svg",l.LSH)("alt",l.lcZ(2,3,H.i18nName)),l.xp6(3),l.Oqu(l.lcZ(5,5,H.i18nName))}}let m=(()=>{class b{constructor(){this.isMenuOpen=!1}ngOnInit(){const H=this.formHandler.formLanguage.getEditLanguageAsObservable(),O=this.formHandler.formLanguage.getObjectLanguagesObservable();this.subscription=(0,n.aj)([H,O]).subscribe(([P,G])=>{this.currentLanguage=P,this.selectableLanguages=G.filter(B=>B.id!==P.id)})}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}selectLanguage(H){this.formHandler.formLanguage.publishEditLanguage(H),this.isMenuOpen=!1}toggle(){this.selectableLanguages&&this.selectableLanguages.length>0&&(this.isMenuOpen=!this.isMenuOpen)}static#e=this.\u0275fac=function(O){return new(O||b)};static#t=this.\u0275cmp=l.Xpm({type:b,selectors:[["imx-language-switch-button"]],inputs:{formHandler:"formHandler"},decls:7,vars:6,consts:[[1,"language-select-wrapper"],["class","imx-button default with-icon prio4",3,"click",4,"ngIf"],[1,"imx-button","prio4","with-icon","dropdown",3,"disabled","click"],["class","icon icon-chevron-downBold",4,"ngIf"],["class","icon icon-chevron-upBold",4,"ngIf"],[1,"language-select-content"],["class","language-select-item",3,"click",4,"ngFor","ngForOf"],[1,"imx-button","default","with-icon","prio4",3,"click"],[3,"src","alt"],["translate","",1,"language-selected-label","imx-hide-sm"],[1,"language-selected","imx-hide-sm"],[1,"icon","icon-chevron-downBold"],[1,"icon","icon-chevron-upBold"],[1,"language-select-item",3,"click"],[1,"language-icon",3,"src","alt"],[1,"imx-hide-sm"]],template:function(O,P){1&O&&(l.TgZ(0,"div",0),l.YNc(1,c,8,7,"button",1),l.TgZ(2,"button",2),l.NdJ("click",function(){return P.toggle()}),l.YNc(3,o,1,0,"span",3)(4,x,1,0,"span",4),l.qZA(),l.TgZ(5,"div",5),l.YNc(6,u,6,7,"div",6),l.qZA()()),2&O&&(l.xp6(),l.Q6J("ngIf",P.currentLanguage),l.xp6(),l.Q6J("disabled",P.selectableLanguages&&0==P.selectableLanguages.length),l.xp6(),l.Q6J("ngIf",!P.isMenuOpen),l.xp6(),l.Q6J("ngIf",P.isMenuOpen),l.xp6(),l.Q6J("@openClose",P.isMenuOpen?"open":"closed"),l.xp6(),l.Q6J("ngForOf",P.selectableLanguages))},dependencies:[i.sg,i.O5,t.Pi,p.j],styles:[".imx-button[_ngcontent-%COMP%]{box-shadow:none;border-bottom:1px solid rgba(255,255,255,.5)}.imx-button.with-icon.dropdown[_ngcontent-%COMP%]{border-left:1px solid rgba(255,255,255,.5);border-bottom:1px solid rgba(255,255,255,.5);padding-left:25px}.imx-button.with-icon.dropdown[_ngcontent-%COMP%]:disabled{background-color:#eefafa}.imx-button.with-icon.dropdown[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:12px;height:12px;top:calc(50% - 5px);position:absolute;left:12px}.language-select-wrapper[_ngcontent-%COMP%]{white-space:nowrap;box-shadow:1px 1px 4px #0003;position:relative}.language-select-content[_ngcontent-%COMP%]{background-color:#eefafa;box-shadow:1px 1px 4px #0003;font-size:14px;width:100%;z-index:3;position:absolute;top:41px}.language-select-content[_ngcontent-%COMP%]   .language-select-item[_ngcontent-%COMP%]{color:#0a2663;padding:10px;cursor:pointer}.language-select-content[_ngcontent-%COMP%]   .language-select-item[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-right:5px}.language-select-content[_ngcontent-%COMP%]   .language-select-item[_ngcontent-%COMP%]:hover{color:#ced4e0}"],data:{animation:[(0,e.X$)("openClose",[(0,e.SB)("open",(0,e.oB)({opacity:"1",visibility:"visible"})),(0,e.SB)("closed",(0,e.oB)({opacity:"0",overflow:"hidden",visibility:"hidden"})),(0,e.eR)("open => closed",[(0,e.jt)("0.3s ease-out")]),(0,e.eR)("closed => open",[(0,e.jt)("0.3s ease-in")])])]}})}return b})()},35922:(gt,X,a)=>{"use strict";a.d(X,{V:()=>c});var e=a(19212),n=a(49193),s=a(96814),l=a(75986),i=a(50308);function t(o,x){1&o&&(e.ynx(0),e._UZ(1,"imx-icon",2),e.BQk())}function p(o,x){if(1&o){const u=e.EpF();e.TgZ(0,"mat-checkbox",3),e.NdJ("change",function(b){e.CHM(u);const I=e.oxw();return e.KtG(I.selectionChanged.emit(b))}),e.qZA()}if(2&o){const u=e.oxw();e.Q6J("value",u.id)("checked",u.checked)}}let c=(()=>{class o{constructor(){this.checked=!1,this.blockedByAction=(0,n.of)(!1),this.selectionChanged=new e.vpe}static#e=this.\u0275fac=function(m){return new(m||o)};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["imx-list-row-selection"]],hostAttrs:[1,"imx-list-row-selection"],inputs:{checked:"checked",id:"id",blockedByAction:"blockedByAction"},outputs:{selectionChanged:"selectionChanged"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["notBlocked",""],["icon","snake","size","middle",1,"blocked"],[3,"value","checked","change"]],template:function(m,b){if(1&m&&(e.YNc(0,t,2,0,"ng-container",0),e.ALo(1,"async"),e.YNc(2,p,1,2,"ng-template",null,1,e.W1O)),2&m){const I=e.MAs(3);e.Q6J("ngIf",e.lcZ(1,2,b.blockedByAction))("ngIfElse",I)}},dependencies:[s.O5,l.oG,i.o,s.Ov],styles:["[_nghost-%COMP%]{margin:auto 5px auto 0}[_nghost-%COMP%]   .blocked[_ngcontent-%COMP%]{display:block;animation-name:_ngcontent-%COMP%_spin;animation-duration:4s;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"],changeDetection:0})}return o})()},51588:(gt,X,a)=>{"use strict";a.d(X,{R:()=>l});var e=a(19212),n=a(59143);function s(i,t){if(1&i){const p=e.EpF();e.TgZ(0,"imx-duplicates-item",3),e.NdJ("selectedEvent",function(o){e.CHM(p);const x=e.oxw();return e.KtG(x.onSelectionChanged(o))})("noDuplicateSingleEvent",function(){const x=e.CHM(p).$implicit,u=e.oxw();return e.KtG(u.noDuplicateSingle(x.id))})("historyActionEvent",function(o){e.CHM(p);const x=e.oxw();return e.KtG(x.historyActionEvent.emit(o))})("deactivateSingleEvent",function(){const x=e.CHM(p).$implicit,u=e.oxw();return e.KtG(u.deactivateSingle(x.id))})("referencesActionEvent",function(o){e.CHM(p);const x=e.oxw();return e.KtG(x.referencesActionEvent.emit(o))}),e.qZA()}if(2&i){const p=t.$implicit,c=e.oxw();e.Q6J("candidateEntityName",c.candidateEntityName)("duplicateItem",p)("duplicateContentTemplate",c.duplicateContentTemplate)("groupAlreadyResolved",c.duplicateGroup.resolved)("selectedIds",c.selectedIds)("hasDeactivateAction",c.hasDeactivateAction)}}let l=(()=>{class i{constructor(p){this.userMessageService=p,this.hasDeactivateAction=!1,this.historyActionEvent=new e.vpe,this.resolveDuplicatesEvent=new e.vpe,this.noDuplicatesEvent=new e.vpe,this.noDuplicateSingleEvent=new e.vpe,this.extractSelectionEvent=new e.vpe,this.referencesActionEvent=new e.vpe,this.deactivateEvent=new e.vpe,this.selectedIds=new Set}ngOnInit(){this.duplicateGroup.candidates=this.sortBylastChangeTime(this.duplicateGroup.candidates)}determineEntityResourceKeyPrefix(p){switch(p.toLowerCase()){case"addressbase":return"imxtools.addressbase";case"addresspoi":return"imxplatform.addresspoi";case"event":return"imxeventmanager.event"}}sortBylastChangeTime(p){return p.sort((c,o)=>{const x=new Date(c.lastChangeTime).getTime(),u=new Date(o.lastChangeTime).getTime();return x>u?-1:x<u?1:0})}trackByItemId(p,c){return c.id}onSelectionChanged(p){p.checked?this.selectedIds.add(parseInt(p.source.value,10)):this.selectedIds.delete(parseInt(p.source.value,10))}resolveDuplicates(){this.resolveDuplicatesEvent.emit({groupId:this.duplicateGroup.id,selectedIds:this.selectedIds})}noDuplicate(){this.noDuplicatesEvent.emit({groupId:this.duplicateGroup.id,selectedIds:this.selectedIds})}noDuplicateSingle(p){this.noDuplicateSingleEvent.emit({groupId:this.duplicateGroup.id,selectedIds:new Set([p])})}deactivateSingle(p){this.deactivateEvent.emit({groupId:this.duplicateGroup.id,selectedIds:new Set([p])})}extractSelection(){this.selectedIds.size===this.duplicateGroup.candidates.length?this.userMessageService.showError("imxplatform.duplicate.list.action.extract-duplicate.warning"):this.extractSelectionEvent.emit({groupId:this.duplicateGroup.id,selectedIds:this.selectedIds})}static#e=this.\u0275fac=function(c){return new(c||i)(e.Y36(n.Y))};static#t=this.\u0275cmp=e.Xpm({type:i,selectors:[["imx-duplicates-group"]],hostAttrs:[1,"imx-duplicates-group"],inputs:{candidateEntityName:"candidateEntityName",duplicateGroup:"duplicateGroup",duplicatePropertyDiffTemplate:"duplicatePropertyDiffTemplate",duplicateContentTemplate:"duplicateContentTemplate",hasDeactivateAction:"hasDeactivateAction"},outputs:{historyActionEvent:"historyActionEvent",resolveDuplicatesEvent:"resolveDuplicatesEvent",noDuplicatesEvent:"noDuplicatesEvent",noDuplicateSingleEvent:"noDuplicateSingleEvent",extractSelectionEvent:"extractSelectionEvent",referencesActionEvent:"referencesActionEvent",deactivateEvent:"deactivateEvent"},decls:4,vars:8,consts:[[3,"duplicateGroup","candidateEntityName","entityResourceKeyPrefix","duplicatePropertyDiffTemplate"],[3,"candidateEntityName","duplicateItem","duplicateContentTemplate","groupAlreadyResolved","selectedIds","hasDeactivateAction","selectedEvent","noDuplicateSingleEvent","historyActionEvent","deactivateSingleEvent","referencesActionEvent",4,"ngFor","ngForOf","ngForTrackBy"],[3,"duplicateGroup","selectedIds","noDuplicatesEvent","extractSelectionEvent","resolveDuplicatesEvent"],[3,"candidateEntityName","duplicateItem","duplicateContentTemplate","groupAlreadyResolved","selectedIds","hasDeactivateAction","selectedEvent","noDuplicateSingleEvent","historyActionEvent","deactivateSingleEvent","referencesActionEvent"]],template:function(c,o){1&c&&(e._UZ(0,"imx-duplicates-header",0),e.TgZ(1,"mat-list"),e.YNc(2,s,1,6,"imx-duplicates-item",1),e.qZA(),e.TgZ(3,"imx-duplicates-footer",2),e.NdJ("noDuplicatesEvent",function(){return o.noDuplicate()})("extractSelectionEvent",function(){return o.extractSelection()})("resolveDuplicatesEvent",function(){return o.resolveDuplicates()}),e.qZA()),2&c&&(e.Q6J("duplicateGroup",o.duplicateGroup)("candidateEntityName",o.candidateEntityName)("entityResourceKeyPrefix",o.determineEntityResourceKeyPrefix(o.candidateEntityName))("duplicatePropertyDiffTemplate",o.duplicatePropertyDiffTemplate),e.xp6(2),e.Q6J("ngForOf",o.duplicateGroup.candidates)("ngForTrackBy",o.trackByItemId),e.xp6(),e.Q6J("duplicateGroup",o.duplicateGroup)("selectedIds",o.selectedIds))},styles:["\n\n\n\n\n\n\n\n\n\n\n\n.mat-mdc-list-base[_ngcontent-%COMP%]{border-left:1px solid #ced4e0;border-right:1px solid #ced4e0;border-top:1px solid #ced4e0}"]})}return i})()},74377:(gt,X,a)=>{"use strict";a.d(X,{N:()=>b});var e=a(19212),n=a(96814),s=a(75986),l=a(37012),i=a(12),t=a(17299),p=a(44840);function c(I,H){if(1&I){const O=e.EpF();e.TgZ(0,"div",7)(1,"mat-checkbox",8),e.NdJ("change",function(G){e.CHM(O);const B=e.oxw(2);return e.KtG(B.selectAll.emit(G))}),e.qZA()()}if(2&I){const O=e.oxw(2);e.xp6(),e.Q6J("checked",O.selection.allSelected)("indeterminate",O.selection.someSelected)}}function o(I,H){if(1&I&&(e.TgZ(0,"div",4),e.YNc(1,c,2,2,"div",5),e.TgZ(2,"div",6),e.Hsn(3),e.qZA()()),2&I){const O=e.oxw();e.xp6(),e.Q6J("ngIf",O.showCheckbox)}}const x=()=>[5,10,25,50,100,500];function u(I,H){if(1&I){const O=e.EpF();e.ynx(0),e.TgZ(1,"imx-grid-element",9)(2,"div",10)(3,"imx-paginator",11),e.NdJ("page",function(G){e.CHM(O);const B=e.oxw();return e.KtG(B.pageChanged.emit(G))}),e.qZA()()(),e.TgZ(4,"imx-grid-element",1)(5,"imx-paginator-page-size",12),e.NdJ("page",function(G){e.CHM(O);const B=e.oxw();return e.KtG(B.pageChanged.emit(G))}),e.qZA()(),e.BQk()}if(2&I){const O=e.oxw();e.xp6(3),e.Q6J("length",O.paging.numberOfResults)("pageSize",O.paging.pageSize)("pageIndex",O.paging.page)("pageLinks",7),e.xp6(2),e.Q6J("sizes",e.DdM(7,x))("pageIndex",O.paging.page)("pageSize",O.paging.pageSize)}}const m=["*"];let b=(()=>{class I{constructor(){this.disableAllSelection=!1,this.showCheckbox=!0,this.disablePaging=!1,this.pageChanged=new e.vpe,this.selectAll=new e.vpe}static#e=this.\u0275fac=function(P){return new(P||I)};static#t=this.\u0275cmp=e.Xpm({type:I,selectors:[["imx-list-footer"]],inputs:{paging:"paging",selection:"selection",disableAllSelection:"disableAllSelection",showCheckbox:"showCheckbox",disablePaging:"disablePaging"},outputs:{pageChanged:"pageChanged",selectAll:"selectAll"},ngContentSelectors:m,decls:5,vars:2,consts:[[1,"footer__sticky","pinable-transition","pinable-aware"],["lg_w","2","sm_w","3","lg_o","0"],["class","footer__list-actions-menu-wrapper",4,"ngIf"],[4,"ngIf"],[1,"footer__list-actions-menu-wrapper"],["class","footer__list-action-all-select",4,"ngIf"],[1,"footer__list-action-element"],[1,"footer__list-action-all-select"],[3,"checked","indeterminate","change"],["lg_w","8","sm_w","6","lg_o","0"],[1,"footer__list-paginator-wrapper"],[3,"length","pageSize","pageIndex","pageLinks","page"],[3,"sizes","pageIndex","pageSize","page"]],template:function(P,G){1&P&&(e.F$t(),e.TgZ(0,"div",0)(1,"imx-grid")(2,"imx-grid-element",1),e.YNc(3,o,4,1,"div",2),e.qZA(),e.YNc(4,u,6,8,"ng-container",3),e.qZA()()),2&P&&(e.xp6(3),e.Q6J("ngIf",!G.disableAllSelection),e.xp6(),e.Q6J("ngIf",!G.disablePaging))},dependencies:[n.O5,s.oG,l.M,i.V,t.J,p.C],styles:[".footer__sticky[_ngcontent-%COMP%]{position:fixed;left:0;bottom:0;height:50px;width:100%;z-index:3;background-color:#eefafa}.footer__sticky[_ngcontent-%COMP%]   .footer__list-action-all-select[_ngcontent-%COMP%]{width:25px;margin:auto 5px auto 0}.footer__list-actions-menu-wrapper[_ngcontent-%COMP%]{display:flex}.footer__list-paginator-wrapper[_ngcontent-%COMP%]{padding-top:7px}.footer__list-actions-menu[_ngcontent-%COMP%]{position:absolute;bottom:60px;left:0;z-index:2;margin-top:5px;background:#fff;box-shadow:0 0 5px #0003;display:flex;flex-direction:column;text-align:left}.footer__list-actions-menu[_ngcontent-%COMP%]   .triangle-down[_ngcontent-%COMP%]{position:absolute;left:20px;bottom:-12px;z-index:2}.footer__list-action-element[_ngcontent-%COMP%]{color:#000;font-size:14px;height:50px;padding-right:10px;cursor:pointer;border-right:1px solid #e6e9ef;flex:1;align-items:center;display:flex}@media (max-width: 1400px){.footer__list-action-element[_ngcontent-%COMP%]{font-size:12px}}"]})}return I})()},64123:(gt,X,a)=>{"use strict";a.d(X,{_:()=>ae});var e=a(19212),n=a(96814),s=a(22941),l=a(71365),i=a(37012),t=a(12),p=a(35475),c=a(22194);function o(J,q){if(1&J){const j=e.EpF();e.ynx(0),e.TgZ(1,"a",6),e.NdJ("click",function(){e.CHM(j);const K=e.oxw();return e.KtG(K.reload.emit())}),e._UZ(2,"span",7),e.qZA(),e.BQk()}}const x=J=>({count:J});function u(J,q){if(1&J&&(e.TgZ(0,"h1",8),e._uU(1),e.qZA()),2&J){const j=e.oxw();e.Q6J("translateParams",e.VKq(2,x,j.totalNumber)),e.xp6(),e.hij("",j.entityResourceKeyPrefix,".list.header")}}const m=(J,q)=>({count:J,info:q});function b(J,q){if(1&J&&(e.TgZ(0,"h1",8),e._uU(1),e.qZA()),2&J){const j=e.oxw();e.Q6J("translateParams",e.WLB(2,m,j.totalNumber,j.info)),e.xp6(),e.hij("",j.entityResourceKeyPrefix,".list.headerInfo")}}const I=()=>({count:0});function H(J,q){if(1&J&&(e.TgZ(0,"h1",8),e._uU(1),e.qZA()),2&J){const j=e.oxw();e.Q6J("translateParams",e.DdM(2,I)),e.xp6(),e.hij(" ",j.entityResourceKeyPrefix,".list.header")}}const O=J=>[J];function P(J,q){if(1&J&&(e.ynx(0),e.TgZ(1,"imx-tooltip",9)(2,"a",10),e._UZ(3,"span",11),e.qZA()(),e.BQk()),2&J){const j=e.oxw();e.xp6(2),e.Q6J("routerLink",e.VKq(1,O,j.getCompactToggleLink()))}}const G=[[["","list-header-button-row",""]]],B=["[list-header-button-row]"];let ae=(()=>{class J{constructor(){this.showCompactToggle=!0,this.showReload=!0,this.info=void 0,this.reload=new e.vpe}getCompactToggleLink(){return this.isCompactPageHeader?"../":"compact"}static#e=this.\u0275fac=function(Y){return new(Y||J)};static#t=this.\u0275cmp=e.Xpm({type:J,selectors:[["imx-list-header"]],hostAttrs:[1,"imx-list-header"],inputs:{totalNumber:"totalNumber",entityResourceKeyPrefix:"entityResourceKeyPrefix",isCompactPageHeader:"isCompactPageHeader",showCompactToggle:"showCompactToggle",showReload:"showReload",info:"info"},outputs:{reload:"reload"},ngContentSelectors:B,decls:12,vars:5,consts:[[1,"list__header-wrapper"],["lg_w","6","lg_o","0"],[1,"list__header"],[4,"ngIf"],["translate","",3,"translateParams",4,"ngIf"],[1,"list__header-right-menu"],[1,"reload",3,"click"],[1,"icon-refresh","imx-icon-middle"],["translate","",3,"translateParams"],["tooltipText","imxplatform.common.tooltip.switch-compact-default-list","offset","300"],["queryParamsHandling","preserve",1,"actions",3,"routerLink"],[1,"icon-listCompact","imx-icon-middle"]],template:function(Y,K){1&Y&&(e.F$t(G),e.TgZ(0,"div",0)(1,"imx-grid")(2,"imx-grid-element",1)(3,"div",2),e.YNc(4,o,3,0,"ng-container",3)(5,u,2,4,"h1",4)(6,b,2,5,"h1",4)(7,H,2,3,"h1",4)(8,P,4,3,"ng-container",3),e.qZA()(),e.TgZ(9,"imx-grid-element",1)(10,"div",5),e.Hsn(11),e.qZA()()()()),2&Y&&(e.xp6(4),e.Q6J("ngIf",K.showReload),e.xp6(),e.Q6J("ngIf",K.totalNumber&&!K.info),e.xp6(),e.Q6J("ngIf",K.totalNumber&&K.info),e.xp6(),e.Q6J("ngIf",!K.totalNumber),e.xp6(),e.Q6J("ngIf",K.showCompactToggle))},dependencies:[n.O5,s.rH,l.Pi,i.M,t.V,p.K,c.F],styles:[".list__header-wrapper[_ngcontent-%COMP%]{padding:15px 0}.list__header-right-menu[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:flex-end}.list__header-right-menu[_ngcontent-%COMP%]    >*{margin-left:10px}.list__header[_ngcontent-%COMP%]{display:flex}.list__header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{display:inline;font-size:22px;line-height:26px;padding:0 10px}.list__header[_ngcontent-%COMP%]   .reload[_ngcontent-%COMP%], .list__header[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{display:inline-block;cursor:pointer;text-decoration:none}.list__header[_ngcontent-%COMP%]   .reload[_ngcontent-%COMP%]{padding:5px 10px 0 0;border-right:1px solid #eefafa}.list__header[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{padding:5px 10px;border-left:1px solid #eefafa}"]})}return J})()},96681:(gt,X,a)=>{"use strict";a.d(X,{K:()=>s});var e=a(68484),n=a(19212);let s=(()=>{class l extends e.ig{static#e=this.\u0275fac=(()=>{let t;return function(c){return(t||(t=n.n5z(l)))(c||l)}})();static#t=this.\u0275dir=n.lG2({type:l,selectors:[["","imxLazyListExtensionAccordionItem",""]],features:[n.qOj]})}return l})()},80529:(gt,X,a)=>{"use strict";a.d(X,{j:()=>x});var e=a(43040),n=a(96681),s=a(19212),l=a(96814),i=a(68484);function t(u,m){}function p(u,m){if(1&u&&s.YNc(0,t,0,0,"ng-template",2),2&u){const b=s.oxw();s.Q6J("cdkPortalOutlet",b.portalOutlet)}}function c(u,m){1&u&&s.Hsn(0)}const o=["*"];let x=(()=>{class u{get getToggleDrawer(){return this._expanded?"open":"closed"}constructor(b){this.changeDetectorRef=b,this._expanded=!1}get expanded(){return this._expanded}expand(){this._expanded=!0,this.portalOutlet=this.accordionContent,this.changeDetectorRef.markForCheck()}collapse(){this._expanded=!1,this.portalOutlet=null,this.changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(I){return new(I||u)(s.Y36(s.sBO))};static#t=this.\u0275cmp=s.Xpm({type:u,selectors:[["imx-list-extension-accordion-item"]],contentQueries:function(I,H,O){if(1&I&&s.Suo(O,n.K,7),2&I){let P;s.iGM(P=s.CRH())&&(H.accordionContent=P.first)}},hostVars:1,hostBindings:function(I,H){2&I&&s.d8E("@openClose",H.getToggleDrawer)},inputs:{icon:"icon",header:"header",count:"count"},ngContentSelectors:o,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["defaultTemplate",""],[3,"cdkPortalOutlet"]],template:function(I,H){if(1&I&&(s.F$t(),s.YNc(0,p,1,1,null,0)(1,c,1,0,"ng-template",null,1,s.W1O)),2&I){const O=s.MAs(2);s.Q6J("ngIf",H.accordionContent)("ngIfElse",O)}},dependencies:[l.O5,i.Pl],styles:["[_nghost-%COMP%]{display:block;overflow:hidden}"],data:{animation:e.L5},changeDetection:0})}return u})()},34722:(gt,X,a)=>{"use strict";a.d(X,{F:()=>c});var e=a(80529),n=a(19212),s=a(96814),l=a(71365);function i(o,x){if(1&o&&(n.ynx(0),n._uU(1),n.BQk()),2&o){const u=n.oxw().$implicit;n.xp6(),n.hij("(",u.count,")")}}function t(o,x){if(1&o){const u=n.EpF();n.TgZ(0,"div",3),n.NdJ("click",function(){const I=n.CHM(u).$implicit,H=n.oxw();return n.KtG(H.toggle(I))}),n.TgZ(1,"p"),n._UZ(2,"span",4),n._uU(3),n.ALo(4,"translate"),n.YNc(5,i,2,1,"ng-container",5),n.qZA()()}if(2&o){const u=x.$implicit;n.ekj("active",u.expanded),n.xp6(2),n.Q6J("ngClass",u.icon),n.xp6(),n.hij(" ",n.lcZ(4,5,u.header)," "),n.xp6(2),n.Q6J("ngIf",u.count>0)}}const p=["*"];let c=(()=>{class o{toggle(u){u.expanded?u.collapse():(this.items.filter(m=>m!==u).forEach(m=>m.collapse()),u.expand())}static#e=this.\u0275fac=function(m){return new(m||o)};static#t=this.\u0275cmp=n.Xpm({type:o,selectors:[["imx-list-extension-accordion"]],contentQueries:function(m,b,I){if(1&m&&n.Suo(I,e.j,4),2&m){let H;n.iGM(H=n.CRH())&&(b.items=H)}},ngContentSelectors:p,decls:4,vars:1,consts:[[1,"list__extension"],[1,"list__extension__header"],["ngFor","",3,"ngForOf"],["tabindex","0",1,"tab",3,"click"],[3,"ngClass"],[4,"ngIf"]],template:function(m,b){1&m&&(n.F$t(),n.TgZ(0,"div",0)(1,"div",1),n.YNc(2,t,6,7,"ng-template",2),n.qZA(),n.Hsn(3),n.qZA()),2&m&&(n.xp6(2),n.Q6J("ngForOf",b.items))},dependencies:[s.mk,s.sg,s.O5,l.X$],styles:[".list__extension[_ngcontent-%COMP%]{background:#eefafa;border:1px solid #ced4e0;position:relative;top:-10px;margin-left:25px}.list__extension__header[_ngcontent-%COMP%]{display:flex;margin:0}.list__extension__header[_ngcontent-%COMP%]   .tab[_ngcontent-%COMP%]{margin:20px 10px 10px 20px;padding:7px 10px;cursor:pointer;word-break:break-word}@media (max-width: 900px){.list__extension__header[_ngcontent-%COMP%]   .tab[_ngcontent-%COMP%]{margin:10px 5px 5px 10px}}.list__extension__header[_ngcontent-%COMP%]   .tab.active[_ngcontent-%COMP%]{background:#fff;border-color:#ced4e0}"]})}return o})()},90633:(gt,X,a)=>{"use strict";a.d(X,{A:()=>l});var e=a(19212),n=a(71365);const s=["*"];let l=(()=>{class i{static#e=this.\u0275fac=function(c){return new(c||i)};static#t=this.\u0275cmp=e.Xpm({type:i,selectors:[["imx-list-no-results"]],ngContentSelectors:s,decls:2,vars:0,consts:[["translate",""]],template:function(c,o){1&c&&(e.F$t(),e.TgZ(0,"div",0),e.Hsn(1),e.qZA())},dependencies:[n.Pi],styles:["[_nghost-%COMP%]{height:55px;width:100%;background-color:#eefafa;font-size:14px;display:flex;justify-content:center;align-items:center}"]})}return i})()},97859:(gt,X,a)=>{"use strict";a.d(X,{Y:()=>j});var e=a(19212),n=a(83010),s=a(88119),l=a(96814),i=a(94289),t=a(35452),p=a(22194),c=a(71365),o=a(8386),x=a(80617);let u=(()=>{class Y{transform(ne){const ee=this.readEntityType(ne);return"Addressbase"===ee?ne.metainfos.some(ge=>100012e3===ge.productline.id)?"icon-map_tour":"icon-entityType-Addressbase":"Event"===ee?"icon-calendar-full":"Recipe"===ee?"icon-entityType-Article":"icon-entityType-"+ee}readEntityType(ne){return ne._entityType&&ne._entityType.startsWith("Compact")?ne._entityType.substring(7):ne._entityType}static#e=this.\u0275fac=function(ee){return new(ee||Y)};static#t=this.\u0275pipe=e.Yjl({name:"entityTypeIcon",type:Y,pure:!0})}return Y})();const m=(Y,K,ne,ee)=>[Y,"100x100",K,ne,ee];function b(Y,K){if(1&Y&&(e.TgZ(0,"a",20),e.ALo(1,"imgprx"),e._UZ(2,"img",21),e.ALo(3,"imgprx"),e.TgZ(4,"span",22),e._uU(5),e.qZA(),e.TgZ(6,"span",22),e._uU(7),e.qZA(),e.TgZ(8,"span",22),e._uU(9),e.qZA()()),2&Y){const ne=e.oxw(2);e.s9C("href",e.xi3(1,5,ne.dataObject.imageUrl,"600x400"),e.LSH),e.xp6(2),e.Q6J("src",e.G7q(3,8,e.l5B(14,m,ne.dataObject.imageUrl,ne.dataObject.imageIconFocalXRatio?ne.dataObject.imageIconFocalXRatio:-1,ne.dataObject.imageIconFocalYRatio?ne.dataObject.imageIconFocalYRatio:-1,""+(ne.dataObject.imageIconId?ne.dataObject.imageIconId:""))),e.LSH),e.xp6(3),e.Oqu(ne.dataObject.imageIconUrl),e.xp6(2),e.Oqu(ne.dataObject.imageUrl),e.xp6(2),e.Oqu(ne.mediaSrc)}}function I(Y,K){if(1&Y&&e._UZ(0,"img",21),2&Y){const ne=e.oxw(2);e.Q6J("src",ne.mediaSrc,e.LSH)}}const H=Y=>({placeholder:Y});function O(Y,K){if(1&Y&&(e.TgZ(0,"div",17),e.YNc(1,b,10,19,"a",18)(2,I,1,1,"ng-template",null,19,e.W1O),e.qZA()),2&Y){const ne=e.MAs(3),ee=e.oxw();e.Q6J("ngClass",e.VKq(3,H,!ee.dataObject.imageIconUrl)),e.xp6(),e.Q6J("ngIf",ee.dataObject.imageUrl)("ngIfElse",ne)}}function P(Y,K){1&Y&&e.GkF(0)}function G(Y,K){1&Y&&e.GkF(0)}const B=Y=>({dataObject:Y});function ae(Y,K){if(1&Y&&(e.TgZ(0,"div",23),e.YNc(1,G,1,0,"ng-container",6),e.qZA()),2&Y){const ne=e.oxw();e.xp6(),e.Q6J("ngTemplateOutlet",ne.rightSlotTemplate)("ngTemplateOutletContext",e.VKq(2,B,ne.dataObject))}}function J(Y,K){if(1&Y){const ne=e.EpF();e.TgZ(0,"imx-memo-toggle",24),e.NdJ("handleIconClick",function(){e.CHM(ne);const $=e.oxw();return e.KtG($.fireMemoEvent($.dataObject))}),e.qZA()}if(2&Y){const ne=e.oxw();e.Q6J("filled",ne.isActiveSlideIn(ne.slideInType.MEMO,ne.dataObject.id))("memoCnt",ne.memoCount)}}function q(Y,K){1&Y&&e.GkF(0)}let j=(()=>{class Y{constructor(ne){this.entityIconService=ne,this.isAddressPoi=!1,this.slideInEvent=new e.vpe,this.slideInType=n.CU}ngOnChanges(ne){ne.dataObject&&(this.mediaSrc=this.entityIconService.determineMediaIcon(this.dataObject._entityType,this.dataObject.imageIconUrl))}fireMemoEvent(ne){this.slideInEvent.emit({type:n.CU.MEMO,entityId:ne.id,memosEntityTitle:ne.title})}static#e=this.\u0275fac=function(ee){return new(ee||Y)(e.Y36(s.l))};static#t=this.\u0275cmp=e.Xpm({type:Y,selectors:[["imx-list-row"]],hostAttrs:[1,"imx-list-row"],inputs:{dataObject:"dataObject",isActiveSlideIn:"isActiveSlideIn",memoCount:"memoCount",ibeAssignmentCount:"ibeAssignmentCount",leftSlotTemplate:"leftSlotTemplate",rightSlotTemplate:"rightSlotTemplate",bottomSlotTemplate:"bottomSlotTemplate",isAddressPoi:"isAddressPoi"},outputs:{slideInEvent:"slideInEvent"},features:[e.TTD],decls:37,vars:47,consts:[[1,"list__content-wrapper"],["class","list__column image-column",3,"ngClass",4,"ngIf"],[1,"list__column","col2","icon-column"],[1,"list__content-rows"],[1,"list__content"],[1,"list__column","col3"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"list__column","col4"],[3,"languages"],[1,"list__column","col5"],[1,"txt-grey"],[1,"txt-md"],[1,"margin-top"],["class","list__column col6",4,"ngIf"],[1,"list__column","col7"],[3,"filled","memoCnt","handleIconClick",4,"ngIf"],[1,"list__column"],[1,"list__column","image-column",3,"ngClass"],["target","_blank",3,"href",4,"ngIf","ngIfElse"],["noImage",""],["target","_blank",3,"href"],["loading","lazy",3,"src"],[2,"display","none"],[1,"list__column","col6"],[3,"filled","memoCnt","handleIconClick"]],template:function(ee,$){1&ee&&(e.TgZ(0,"div",0),e.YNc(1,O,4,5,"div",1),e.TgZ(2,"div",2),e._UZ(3,"span"),e.ALo(4,"entityTypeIcon"),e.qZA(),e.TgZ(5,"div",3)(6,"div",4)(7,"div",5),e.YNc(8,P,1,0,"ng-container",6),e.qZA(),e.TgZ(9,"div",7),e._UZ(10,"imx-language-flag",8),e.qZA(),e.ynx(11),e.TgZ(12,"div",9)(13,"div")(14,"p",10),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"p",11),e._uU(18),e.ALo(19,"date"),e.ALo(20,"convertTimestamps"),e.ALo(21,"translate"),e.qZA()(),e.TgZ(22,"div",12)(23,"p",10),e._uU(24),e.ALo(25,"translate"),e.qZA(),e.TgZ(26,"p",11),e._uU(27),e.ALo(28,"date"),e.ALo(29,"convertTimestamps"),e.ALo(30,"translate"),e.qZA()()(),e.BQk(),e.YNc(31,ae,2,4,"div",13),e.TgZ(32,"div",14),e.YNc(33,J,1,2,"imx-memo-toggle",15),e.qZA()(),e.TgZ(34,"div",4)(35,"div",16),e.YNc(36,q,1,0,"ng-container",6),e.qZA()()()()),2&ee&&(e.xp6(),e.Q6J("ngIf",!$.isAddressPoi),e.xp6(2),e.Tol(e.lcZ(4,23,$.dataObject)),e.xp6(4),e.ekj("isAddressPoi",$.isAddressPoi),e.xp6(),e.Q6J("ngTemplateOutlet",$.leftSlotTemplate)("ngTemplateOutletContext",e.VKq(43,B,$.dataObject)),e.xp6(),e.ekj("isAddressPoi",$.isAddressPoi),e.xp6(),e.Q6J("languages",$.dataObject.languages),e.xp6(5),e.hij("",e.lcZ(16,25,"entity.AuditedDataObject.creationTime"),":"),e.xp6(3),e.lnq(" ",e.xi3(19,27,e.lcZ(20,30,$.dataObject.creationTime),"dd.MM.yyyy - HH:mm")," ",e.lcZ(21,32,"imxplatform.common.time-indicator")," (",$.dataObject.creationFrom,")"),e.xp6(6),e.hij("",e.lcZ(25,34,"entity.AuditedDataObject.lastChangeTime"),":"),e.xp6(3),e.lnq(" ",e.xi3(28,36,e.lcZ(29,39,$.dataObject.lastChangeTime),"dd.MM.yyyy - HH:mm")," ",e.lcZ(30,41,"imxplatform.common.time-indicator")," (",$.dataObject.lastChangeFrom,")"),e.xp6(4),e.Q6J("ngIf",!$.isAddressPoi),e.xp6(2),e.Q6J("ngIf",$.isActiveSlideIn),e.xp6(3),e.Q6J("ngTemplateOutlet",$.bottomSlotTemplate)("ngTemplateOutletContext",e.VKq(45,B,$.dataObject)))},dependencies:[l.mk,l.O5,l.tP,i.l,t.u,p.F,l.uU,c.X$,o.ZM,x.E,u],styles:["[_nghost-%COMP%]     imx-memo-toggle{margin-left:auto}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.list__content[_ngcontent-%COMP%]{display:-webkit-flex;display:flex;flex-direction:row;margin-bottom:5px;width:100%}.list__content-wrapper[_ngcontent-%COMP%]{display:flex}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.icon-column[_ngcontent-%COMP%]{font-size:20px;color:#000;line-height:22px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.image-column[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100px;height:100px;object-fit:cover}@media (max-width: 900px){.list__content-wrapper[_ngcontent-%COMP%]   .list__column.image-column[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:50px;height:50px}}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.image-column.placeholder[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:unset}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col3[_ngcontent-%COMP%]{flex-basis:450px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col4[_ngcontent-%COMP%]{width:20px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col5[_ngcontent-%COMP%]{flex-basis:400px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col6[_ngcontent-%COMP%]{flex-basis:200px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col7[_ngcontent-%COMP%]{margin-left:auto}.list__content[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.list__content-rows[_ngcontent-%COMP%]{width:100%}.list__column[_ngcontent-%COMP%]{margin-right:10px;word-break:break-word}@media (max-width: 900px){.list__column[_ngcontent-%COMP%]{margin-right:5px}}.list__column[_ngcontent-%COMP%]   .margin-top[_ngcontent-%COMP%]{margin-top:5px}.list__column[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style-type:square;list-style-position:inside}.list__column[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px}.list__content[_ngcontent-%COMP%]   .list__column.col3[_ngcontent-%COMP%]:not(.isAddressPoi){flex-basis:500px}.list__content[_ngcontent-%COMP%]   .list__column.col3.isAddressPoi[_ngcontent-%COMP%]{flex-basis:56.5217391304%}.list__content[_ngcontent-%COMP%]   .list__column.col4.isAddressPoi[_ngcontent-%COMP%]{margin-right:44px}"],changeDetection:0})}return Y})()},32786:(gt,X,a)=>{"use strict";a.d(X,{_:()=>s}),a(79309);var n=a(19212);let s=(()=>{class l{static#e=this.\u0275fac=function(p){return new(p||l)};static#t=this.\u0275cmp=n.Xpm({type:l,selectors:[["imx-row-address-view"]],inputs:{dataObject:"dataObject"},decls:4,vars:4,consts:[[1,"txt-grey"]],template:function(p,c){1&p&&(n.TgZ(0,"p",0),n._uU(1),n.qZA(),n.TgZ(2,"p",0),n._uU(3),n.qZA()),2&p&&(n.xp6(),n.AsE("",null==c.dataObject||null==c.dataObject.contact1||null==c.dataObject.contact1.address?null:c.dataObject.contact1.address.street," ",null==c.dataObject||null==c.dataObject.contact1||null==c.dataObject.contact1.address?null:c.dataObject.contact1.address.streetNo,""),n.xp6(2),n.AsE("",null==c.dataObject||null==c.dataObject.contact1||null==c.dataObject.contact1.address?null:c.dataObject.contact1.address.zipcode," ",null==c.dataObject||null==c.dataObject.contact1||null==c.dataObject.contact1.address?null:c.dataObject.contact1.address.city,""))},encapsulation:2})}return l})()},63675:(gt,X,a)=>{"use strict";a.d(X,{k:()=>c}),a(79309);var n=a(49193),s=a(19212),l=a(96814),i=a(92596),t=a(71365);function p(o,x){1&o&&(s._UZ(0,"span",3),s.ALo(1,"translate")),2&o&&s.s9C("matTooltip",s.lcZ(1,1,"imxplatform.common-entity.list.outside-client-hierarchy"))}let c=(()=>{class o{constructor(){this.outsideCurrentClientHierachy$=(0,n.of)(!1)}static#e=this.\u0275fac=function(m){return new(m||o)};static#t=this.\u0275cmp=s.Xpm({type:o,selectors:[["imx-row-client-view"]],inputs:{dataObject:"dataObject",outsideCurrentClientHierachy$:"outsideCurrentClientHierachy$"},decls:7,vars:8,consts:[[1,"txt-grey"],[1,"txt-default"],["class","icon icon-notificationType-Warning imx-icon-small outside-client",3,"matTooltip",4,"ngIf"],[1,"icon","icon-notificationType-Warning","imx-icon-small","outside-client",3,"matTooltip"]],template:function(m,b){1&m&&(s.TgZ(0,"p",0),s._uU(1),s.ALo(2,"translate"),s.TgZ(3,"span",1),s._uU(4),s.qZA(),s.YNc(5,p,2,3,"span",2),s.ALo(6,"async"),s.qZA()),2&m&&(s.xp6(),s.hij("",s.lcZ(2,4,"entity.CoreDataObject.client"),": "),s.xp6(3),s.AsE("",b.dataObject.client.name," (",b.dataObject.client.id,")"),s.xp6(),s.Q6J("ngIf",s.lcZ(6,6,b.outsideCurrentClientHierachy$)))},dependencies:[l.O5,i.gM,l.Ov,t.X$],styles:[".outside-client[_ngcontent-%COMP%]{font-weight:600;vertical-align:bottom;margin-left:3px}"]})}return o})()},20050:(gt,X,a)=>{"use strict";a.d(X,{w:()=>p});var e=a(19212),n=a(96814),s=a(92596),l=a(71365),i=a(1505);function t(c,o){if(1&c&&(e.TgZ(0,"span",3),e.ALo(1,"importSource"),e._uU(2),e.ALo(3,"translate"),e.TgZ(4,"span",1),e._uU(5),e.qZA()()),2&c){const x=e.oxw();e.Q6J("matTooltip",e.lcZ(1,3,null==x.dataObject.importRun?null:x.dataObject.importRun.importSource)),e.xp6(2),e.hij("",e.lcZ(3,5,"entity.CoreDataObject.importIdentifier"),": "),e.xp6(3),e.Oqu(x.dataObject.importIdentifier)}}let p=(()=>{class c{static#e=this.\u0275fac=function(u){return new(u||c)};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["imx-row-id-view"]],inputs:{dataObject:"dataObject"},decls:6,vars:5,consts:[[1,"txt-grey"],[1,"txt-default"],["class","txt-grey",3,"matTooltip",4,"ngIf"],[1,"txt-grey",3,"matTooltip"]],template:function(u,m){1&u&&(e.TgZ(0,"p",0),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",1),e._uU(4),e.qZA(),e.YNc(5,t,6,7,"span",2),e.qZA()),2&u&&(e.xp6(),e.hij("",e.lcZ(2,3,"entity.DataObject.id"),": "),e.xp6(3),e.hij("",m.dataObject.id," "),e.xp6(),e.Q6J("ngIf",m.dataObject.importIdentifier))},dependencies:[n.O5,s.gM,l.X$,i.q],encapsulation:2})}return c})()},1061:(gt,X,a)=>{"use strict";a.d(X,{B:()=>G}),a(1009),a(38996);var s=a(63172),l=a(19212),i=a(96814),t=a(56223),p=a(92596),c=a(71365),o=a(52463),x=a(2901),u=a(10001),m=a(28907);function b(B,ae){1&B&&(l.TgZ(0,"h3",10),l._uU(1,"imxplatform.media.assignment.new-header"),l.qZA())}function I(B,ae){if(1&B&&(l.ynx(0),l._UZ(1,"imx-form-control",4),l.BQk()),2&B){const J=l.oxw();l.xp6(),l.Q6J("field",J.mediaField.getChildField("imageType"))("control",J.mediaAssignmentFormRow.get("imageType"))("form",J.mediaAssignmentFormRow)("formHandler",J.formHandler)("config",J.formHandler.formConfiguration)}}function H(B,ae){if(1&B&&(l.ynx(0),l._UZ(1,"imx-base-input-label",6)(2,"imx-form-control",4),l.BQk()),2&B){const J=l.oxw();l.xp6(),l.Q6J("label","imxplatform.common-entity.edit.panels.media.productline"),l.xp6(),l.Q6J("field",J.mediaField.getChildField("productlines"))("control",J.mediaAssignmentFormRow.get("productlines"))("form",J.mediaAssignmentFormRow)("formHandler",J.formHandler)("config",J.formHandler.formConfiguration)}}function O(B,ae){if(1&B&&l._UZ(0,"imx-base-day-month",11)(1,"imx-base-day-month",11),2&B){const J=l.oxw();l.Q6J("formControl",J.mediaAssignmentFormRow.get("fromDate")),l.xp6(),l.Q6J("formControl",J.mediaAssignmentFormRow.get("toDate"))}}function P(B,ae){if(1&B&&l._UZ(0,"imx-form-control",4)(1,"imx-form-control",4),2&B){const J=l.oxw();l.Q6J("field",J.mediaField.getChildField("fromDate"))("control",J.mediaAssignmentFormRow.get("fromDate"))("form",J.mediaAssignmentFormRow)("formHandler",J.formHandler)("config",J.formHandler.formConfiguration),l.xp6(),l.Q6J("field",J.mediaField.getChildField("toDate"))("control",J.mediaAssignmentFormRow.get("toDate"))("form",J.mediaAssignmentFormRow)("formHandler",J.formHandler)("config",J.formHandler.formConfiguration)}}let G=(()=>{class B{constructor(J){this.languageOptionsProvider=J}hasImageTypeProperty(J){return J&&J.imageType}static#e=this.\u0275fac=function(q){return new(q||B)(l.Y36(s.N))};static#t=this.\u0275cmp=l.Xpm({type:B,selectors:[["imx-edit-media-assignment"]],inputs:{mediaField:"mediaField",formHandler:"formHandler",mediaAssignmentFormRow:"mediaAssignmentFormRow",media:"media"},decls:16,vars:33,consts:[[1,"form__content-row"],[1,"form__content-group"],["translate","",4,"ngIf"],["matTooltipShowDelay","5000",3,"matTooltip"],[3,"field","control","form","formHandler","config"],[4,"ngIf"],[3,"label"],[3,"field","control","form","isLanguageSelect","optionProvider","formHandler"],[1,"yearly-checkbox",3,"field","control","form","formHandler","config"],[1,"form__content-field-row"],["translate",""],[3,"formControl"]],template:function(q,j){1&q&&(l.TgZ(0,"div",0)(1,"div",1),l.YNc(2,b,2,0,"h3",2),l.TgZ(3,"div",3),l._UZ(4,"imx-form-control",4),l.qZA(),l._UZ(5,"imx-form-control",4),l.YNc(6,I,2,5,"ng-container",5),l._UZ(7,"imx-base-input-label",6)(8,"imx-checkbox-select",7),l.YNc(9,H,3,6,"ng-container",5),l._UZ(10,"imx-base-input-label",6)(11,"imx-form-control",8),l.TgZ(12,"div",9),l.YNc(13,O,2,2)(14,P,2,10),l.qZA(),l._UZ(15,"imx-form-control",4),l.qZA()()),2&q&&(l.xp6(2),l.Q6J("ngIf",-1===j.media.pooledMedium.id),l.xp6(),l.MGl("matTooltip","AssignmentId: ",j.mediaAssignmentFormRow.get("assignmentId").value,""),l.xp6(),l.Q6J("field",j.mediaField.getChildField("activated"))("control",j.mediaAssignmentFormRow.get("activated"))("form",j.mediaAssignmentFormRow)("formHandler",j.formHandler)("config",j.formHandler.formConfiguration),l.xp6(),l.Q6J("field",j.mediaField.getChildField("sortingValue"))("control",j.mediaAssignmentFormRow.get("sortingValue"))("form",j.mediaAssignmentFormRow)("formHandler",j.formHandler)("config",j.formHandler.formConfiguration),l.xp6(),l.Q6J("ngIf",j.hasImageTypeProperty(j.media)),l.xp6(),l.Q6J("label","entity.BasicAppearance.languages"),l.xp6(),l.Q6J("field",j.mediaField.getChildField("languages"))("control",j.mediaAssignmentFormRow.get("languages"))("form",j.mediaAssignmentFormRow)("isLanguageSelect",!0)("optionProvider",j.languageOptionsProvider)("formHandler",j.formHandler),l.xp6(),l.Q6J("ngIf",j.mediaField.getChildField("productlines")),l.xp6(),l.Q6J("label","imxplatform.common-entity.edit.panels.media.period"),l.xp6(),l.Q6J("field",j.mediaField.getChildField("annually"))("control",j.mediaAssignmentFormRow.get("annually"))("form",j.mediaAssignmentFormRow)("formHandler",j.formHandler)("config",j.formHandler.formConfiguration),l.xp6(2),l.um2(13,!0===j.mediaAssignmentFormRow.get("annually").value?13:14),l.xp6(2),l.Q6J("field",j.mediaField.getChildField("link"))("control",j.mediaAssignmentFormRow.get("link"))("form",j.mediaAssignmentFormRow)("formHandler",j.formHandler)("config",j.formHandler.formConfiguration))},dependencies:[i.O5,t.JJ,p.gM,t.oH,c.Pi,o.O,x.u,u.r,m.A],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{padding:10px}"]})}return B})()},66182:(gt,X,a)=>{"use strict";a.d(X,{I:()=>i});var e=a(46939),n=a(54320),s=a(19212);const l=()=>({width:"100%",height:"100%"});let i=(()=>{class t extends e.x{constructor(c){super(),this.data=c}static#e=this.\u0275fac=function(o){return new(o||t)(s.Y36(n.A))};static#t=this.\u0275cmp=s.Xpm({type:t,selectors:[["imx-media-assign-sidebar"]],features:[s.qOj],decls:2,vars:4,consts:[[3,"data","closeSidebar"]],template:function(o,x){1&o&&(s.TgZ(0,"p-scrollPanel")(1,"imx-small-media-mgmt",0),s.NdJ("closeSidebar",function(){return x.sidenav.close()}),s.qZA()()),2&o&&(s.Akn(s.DdM(3,l)),s.xp6(),s.Q6J("data",x.data))},encapsulation:2})}return t})()},13790:(gt,X,a)=>{"use strict";a.d(X,{b:()=>_o});var e=a(19212),n=a(56223),s=a(79309),l=a(49193),i=a(75222),t=a(21473),p=a(27556),c=a(22819),o=a(98120),x=a(57462),m=(a(21417),a(16763)),b=a(59143),I=a(22745),H=a(86929),O=a(71365),P=a(96814),G=a(23680),B=a(64170),ae=a(16007),J=a(98525),q=a(61880),j=a(28907),Y=a(42094),K=a(55475),ne=a(70623),ee=a(50334),$=a(22194),ue=a(8386),ge=a(80617),Ke=a(18341),at=a(1614);const Le=["imageElement"];function R(Hn,mo){if(1&Hn){const vn=e.EpF();e.TgZ(0,"div",2)(1,"imx-media-upload",3),e.NdJ("close",function(){e.CHM(vn);const wn=e.oxw();return e.KtG(wn.close())})("uploadFinished",function(wn){e.CHM(vn);const po=e.oxw();return e.KtG(po.uploadFinished.emit(wn))}),e.qZA()()}if(2&Hn){const vn=e.oxw();e.xp6(),e.Q6J("pooledMediumFormHandlerService",vn.formHandler)}}function Te(Hn,mo){if(1&Hn&&(e.TgZ(0,"mat-option",12),e._uU(1),e.qZA()),2&Hn){const vn=mo.$implicit;e.Q6J("value",vn.value),e.xp6(),e.Oqu(vn.label)}}function me(Hn,mo){if(1&Hn&&(e.TgZ(0,"div",13)(1,"div",14),e._UZ(2,"imx-language-switch-button",15),e.qZA()()),2&Hn){const vn=e.oxw(2);e.xp6(2),e.Q6J("formHandler",vn.formHandler)}}function Se(Hn,mo){1&Hn&&e.GkF(0)}function Ue(Hn,mo){1&Hn&&e.GkF(0)}function We(Hn,mo){1&Hn&&e.GkF(0)}function et(Hn,mo){1&Hn&&e.GkF(0)}function Et(Hn,mo){1&Hn&&e.GkF(0)}const lt=()=>({$implicit:"title"}),Vt=()=>({$implicit:"youtubeID"}),r=()=>({$implicit:"mediaType"}),Z=()=>({$implicit:"url"}),Pt=()=>({$implicit:"copyright"});function Oe(Hn,mo){if(1&Hn){const vn=e.EpF();e.TgZ(0,"div",16),e.YNc(1,Se,1,0,"ng-container",17),e.TgZ(2,"div",18),e.YNc(3,Ue,1,0,"ng-container",17),e.qZA(),e.TgZ(4,"div",18),e.YNc(5,We,1,0,"ng-container",17)(6,et,1,0,"ng-container",17),e.qZA(),e.YNc(7,Et,1,0,"ng-container",17),e.TgZ(8,"imx-media-terms-of-use",19),e.NdJ("termsOfUseChanged",function(wn){e.CHM(vn);const po=e.oxw(2);return e.KtG(po.acceptedTermOfUse=wn)}),e.qZA()()}if(2&Hn){const vn=e.oxw(2),Ji=e.MAs(4);e.xp6(),e.Q6J("ngTemplateOutlet",Ji)("ngTemplateOutletContext",e.DdM(13,lt)),e.xp6(),e.Q6J("hidden",!vn.isProviderSelected(vn.MEDIA_PROVIDER_YOUTUBE)),e.xp6(),e.Q6J("ngTemplateOutlet",Ji)("ngTemplateOutletContext",e.DdM(14,Vt)),e.xp6(),e.Q6J("hidden",!vn.isProviderSelected(vn.MEDIA_PROVIDER_URL)),e.xp6(),e.Q6J("ngTemplateOutlet",Ji)("ngTemplateOutletContext",e.DdM(15,r)),e.xp6(),e.Q6J("ngTemplateOutlet",Ji)("ngTemplateOutletContext",e.DdM(16,Z)),e.xp6(),e.Q6J("ngTemplateOutlet",Ji)("ngTemplateOutletContext",e.DdM(17,Pt)),e.xp6(),e.Q6J("pooledMediumFormHandlerService",vn.formHandler)}}function ye(Hn,mo){if(1&Hn){const vn=e.EpF();e.TgZ(0,"div",2)(1,"h3"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"mat-form-field")(5,"label",4),e._uU(6,"entity.PooledMedium.mediaProvider"),e.qZA(),e.TgZ(7,"mat-select",5),e.NdJ("ngModelChange",function(wn){e.CHM(vn);const po=e.oxw();return e.KtG(po.selectedNewMediaProviderId=wn)})("selectionChange",function(){e.CHM(vn);const wn=e.oxw();return e.KtG(wn.switchMediaProvider())}),e.YNc(8,Te,2,2,"mat-option",6),e.qZA()(),e.YNc(9,me,3,1,"div",7)(10,Oe,9,18,"div",8),e.TgZ(11,"div",9)(12,"button",10),e.NdJ("click",function(){e.CHM(vn);const wn=e.oxw();return e.KtG(wn.submit())}),e._uU(13),e.ALo(14,"translate"),e.qZA(),e.TgZ(15,"button",11),e.NdJ("click",function(){e.CHM(vn);const wn=e.oxw();return e.KtG(wn.close())}),e._uU(16,"imxplatform.dialog.common-close"),e.qZA()()()}if(2&Hn){const vn=e.oxw();e.xp6(2),e.Oqu(e.lcZ(3,7,"imxplatform.media.edit.create")),e.xp6(5),e.Q6J("ngModel",vn.selectedNewMediaProviderId),e.xp6(),e.Q6J("ngForOf",vn.allowedMediaProviders),e.xp6(),e.Q6J("ngIf",vn.selectedNewMediaProviderId>1),e.xp6(),e.Q6J("ngIf",vn.selectedNewMediaProviderId>1),e.xp6(2),e.Q6J("disabled",vn.formHandler.formGroup.invalid||!vn.acceptedTermOfUse),e.xp6(),e.Oqu(e.lcZ(14,9,"imxplatform.media.edit.create-submit"))}}function ve(Hn,mo){1&Hn&&e._UZ(0,"mat-progress-bar",37)}function ft(Hn,mo){if(1&Hn&&(e.ynx(0),e._UZ(1,"div",38)(2,"div",39),e.BQk()),2&Hn){const vn=e.oxw(3);e.xp6(),e.Udp("top",vn.currentFocusPointTopPercentage,"%"),e.xp6(),e.Udp("left",vn.currentFocusPointLeftPercentage,"%")}}function Dt(Hn,mo){1&Hn&&e._UZ(0,"div",40)}function Rn(Hn,mo){if(1&Hn){const vn=e.EpF();e.TgZ(0,"button",46),e.NdJ("click",function(){e.CHM(vn);const wn=e.oxw(4);return e.KtG(wn.enableEditFocusPoint())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&Hn&&(e.xp6(),e.Oqu(e.lcZ(2,1,"imxplatform.media.edit.edit-focus-point")))}function ti(Hn,mo){if(1&Hn&&(e.TgZ(0,"div",41)(1,"div",42)(2,"div",43),e._uU(3),e.qZA(),e.TgZ(4,"div",44),e.YNc(5,Rn,3,3,"button",45),e.qZA()()()),2&Hn){const vn=e.oxw(3);e.xp6(3),e.Oqu(vn.record.identification),e.xp6(2),e.Q6J("ngIf",!vn.disableFocusPointEdit)}}function Xt(Hn,mo){if(1&Hn&&(e.TgZ(0,"p"),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"fileSize"),e.qZA()),2&Hn){const vn=e.oxw(3);e.xp6(),e.AsE("",e.lcZ(2,2,"imxplatform.media.edit.size"),": ",e.lcZ(3,4,vn.record.fileSize),"")}}function Je(Hn,mo){if(1&Hn&&(e.TgZ(0,"p"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Hn){const vn=e.oxw(3);e.xp6(),e.lnq("",e.lcZ(2,3,"imxplatform.media.edit.dimension"),": ",vn.imageWidth," x ",vn.imageHeight,"")}}function dt(Hn,mo){if(1&Hn&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Hn){const vn=e.oxw(3);e.xp6(),e.lnq("",e.lcZ(2,3,"imxplatform.media.edit.focus-point")," @ ",vn.objectFocusPointX,"x",vn.objectFocusPointY,"")}}function Ie(Hn,mo){if(1&Hn){const vn=e.EpF();e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",47)(4,"b"),e._uU(5),e.qZA(),e._uU(6,"x"),e.TgZ(7,"b"),e._uU(8),e.qZA()(),e.TgZ(9,"a",48),e.NdJ("click",function(){e.CHM(vn);const wn=e.oxw(3);return e.KtG(wn.resetFocusPoint())}),e.qZA(),e.TgZ(10,"a",49),e.NdJ("click",function(){e.CHM(vn);const wn=e.oxw(3);return e.KtG(wn.disableEditFocusPoint())}),e.qZA()()}if(2&Hn){const vn=e.oxw(3);e.xp6(),e.hij("",e.lcZ(2,3,"imxplatform.media.edit.set-focus-points")," "),e.xp6(4),e.Oqu(vn.mouseFocusPointX),e.xp6(3),e.Oqu(vn.mouseFocusPointY)}}const ot=Hn=>({"focus-setpoint":Hn});function ct(Hn,mo){if(1&Hn){const vn=e.EpF();e.ynx(0),e.TgZ(1,"div",27)(2,"div",28),e.YNc(3,ve,1,0,"mat-progress-bar",29),e.TgZ(4,"img",30,31),e.NdJ("mousemove",function(wn){e.CHM(vn);const po=e.oxw(2);return e.KtG(po.onMouseMove(wn))})("click",function(){e.CHM(vn);const wn=e.oxw(2);return e.KtG(wn.setFocusPoint())})("load",function(){e.CHM(vn);const wn=e.oxw(2);return e.KtG(wn.onImageFinishedLoading())}),e.ALo(6,"imgprx"),e.ALo(7,"readI18n"),e.qZA(),e.YNc(8,ft,3,4,"ng-container",21)(9,Dt,1,0,"div",32)(10,ti,6,2,"div",33),e.qZA(),e.TgZ(11,"div",34)(12,"div",35),e.YNc(13,Xt,4,6,"p",21)(14,Je,3,5,"p",21),e.qZA(),e.TgZ(15,"div",36),e.YNc(16,dt,3,5,"span",21)(17,Ie,11,5,"span",21),e.qZA()()(),e.BQk()}if(2&Hn){const vn=e.oxw(2);e.xp6(3),e.Q6J("ngIf",!vn.isImageFinishLoading),e.xp6(),e.Q6J("hidden",!vn.isImageFinishLoading)("ngClass",e.VKq(17,ot,vn.isEditFocusPoint))("src",e.xi3(6,12,vn.record.url,"0:0"),e.LSH)("alt",e.lcZ(7,15,vn.record.description)),e.xp6(4),e.Q6J("ngIf",vn.objectFocusPointX&&vn.objectFocusPointY&&!vn.disableFocusPointEdit),e.xp6(),e.Q6J("ngIf",!vn.isEditFocusPoint),e.xp6(),e.Q6J("ngIf",!vn.isEditFocusPoint),e.xp6(3),e.Q6J("ngIf",vn.record.fileSize),e.xp6(),e.Q6J("ngIf",vn.isImageFinishLoading),e.xp6(2),e.Q6J("ngIf",!vn.isEditFocusPoint&&vn.objectFocusPointX&&vn.objectFocusPointY),e.xp6(),e.Q6J("ngIf",vn.isEditFocusPoint)}}function tn(Hn,mo){if(1&Hn&&(e.TgZ(0,"div",51)(1,"video",52),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",53),e._uU(5),e.ALo(6,"translate"),e.ALo(7,"fileSize"),e.qZA(),e.TgZ(8,"div",53),e._uU(9),e.ALo(10,"translate"),e.qZA()()),2&Hn){const vn=e.oxw(3);e.xp6(),e.Q6J("embedUrl",vn.record.url),e.xp6(),e.hij(" ",e.lcZ(3,6,"imxplatform.media.edit.no-video-support")," "),e.xp6(3),e.AsE("",e.lcZ(6,8,"imxplatform.media.edit.size"),": ",e.lcZ(7,10,vn.record.fileSize),""),e.xp6(4),e.AsE("",e.lcZ(10,12,"imxplatform.media.edit.identification"),": ",vn.record.identification,"")}}function yi(Hn,mo){if(1&Hn&&(e.TgZ(0,"div",51),e._UZ(1,"iframe",54),e.qZA()),2&Hn){const vn=e.oxw(3);e.xp6(),e.Q6J("embedUrl",vn.youtubeUrl)}}function ni(Hn,mo){if(1&Hn&&(e.ynx(0),e.YNc(1,tn,11,14,"div",50)(2,yi,2,1,"div",50),e.BQk()),2&Hn){const vn=e.oxw(2);e.xp6(),e.Q6J("ngIf",vn.isProvider(vn.MEDIA_PROVIDER_FILESYSTEM)),e.xp6(),e.Q6J("ngIf",vn.isProvider(vn.MEDIA_PROVIDER_YOUTUBE))}}function sn(Hn,mo){if(1&Hn&&(e.ynx(0),e.TgZ(1,"div",55)(2,"object",56)(3,"p"),e._uU(4),e.ALo(5,"translate"),e.qZA()(),e.TgZ(6,"div",57),e._uU(7),e.ALo(8,"translate"),e.ALo(9,"fileSize"),e.qZA(),e.TgZ(10,"div",57),e._uU(11),e.ALo(12,"translate"),e.qZA()(),e.BQk()),2&Hn){const vn=e.oxw(2);e.xp6(2),e.Q6J("embedUrl",vn.record.url),e.xp6(2),e.Oqu(e.lcZ(5,6,"imxplatform.media.edit.pdf-not-found")),e.xp6(3),e.AsE("",e.lcZ(8,8,"imxplatform.media.edit.size"),": ",e.lcZ(9,10,vn.record.fileSize),""),e.xp6(4),e.AsE("",e.lcZ(12,12,"imxplatform.media.edit.identification"),": ",vn.record.identification,"")}}function bn(Hn,mo){if(1&Hn&&(e.ynx(0),e.TgZ(1,"div",58)(2,"a",59),e._UZ(3,"span",60)(4,"br"),e.TgZ(5,"span",61),e._uU(6),e.ALo(7,"translate"),e.qZA()(),e.TgZ(8,"div",62),e._uU(9),e.ALo(10,"translate"),e.ALo(11,"fileSize"),e.qZA(),e.TgZ(12,"div",62),e._uU(13),e.ALo(14,"translate"),e.qZA()(),e.BQk()),2&Hn){const vn=e.oxw(2);e.xp6(2),e.Q6J("href",vn.record.url,e.LSH),e.xp6(4),e.Oqu(e.lcZ(7,6,"imxplatform.media.edit.download")),e.xp6(3),e.AsE("",e.lcZ(10,8,"imxplatform.media.edit.size"),": ",e.lcZ(11,10,vn.record.fileSize),""),e.xp6(4),e.AsE("",e.lcZ(14,12,"imxplatform.media.edit.identification"),": ",vn.record.identification,"")}}function vt(Hn,mo){1&Hn&&e.GkF(0)}function nn(Hn,mo){1&Hn&&e.GkF(0)}function rn(Hn,mo){1&Hn&&e.GkF(0)}function ii(Hn,mo){1&Hn&&e.GkF(0)}function Oo(Hn,mo){1&Hn&&e.GkF(0)}function no(Hn,mo){1&Hn&&e.GkF(0)}function Li(Hn,mo){1&Hn&&e.GkF(0)}function ji(Hn,mo){1&Hn&&e.GkF(0)}function Ii(Hn,mo){1&Hn&&e.GkF(0)}function _i(Hn,mo){1&Hn&&e.GkF(0)}const En=()=>({$implicit:"categories"});function co(Hn,mo){if(1&Hn&&(e.ynx(0),e.YNc(1,_i,1,0,"ng-container",17),e.BQk()),2&Hn){e.oxw(2);const vn=e.MAs(4);e.xp6(),e.Q6J("ngTemplateOutlet",vn)("ngTemplateOutletContext",e.DdM(2,En))}}function yn(Hn,mo){1&Hn&&e.GkF(0)}const ln=()=>({$implicit:"mediaContent"});function He(Hn,mo){if(1&Hn&&(e.ynx(0),e.YNc(1,yn,1,0,"ng-container",17),e.BQk()),2&Hn){e.oxw(2);const vn=e.MAs(4);e.xp6(),e.Q6J("ngTemplateOutlet",vn)("ngTemplateOutletContext",e.DdM(2,ln))}}function rt(Hn,mo){1&Hn&&e.GkF(0)}function $e(Hn,mo){if(1&Hn&&(e.ynx(0),e._UZ(1,"imx-base-read-only",63)(2,"imx-base-read-only",63),e.ALo(3,"date"),e.ALo(4,"convertTimestamps"),e._UZ(5,"imx-base-read-only",63),e.ALo(6,"date"),e.ALo(7,"convertTimestamps"),e.BQk()),2&Hn){const vn=e.oxw(2);e.xp6(),e.Q6J("label","entity.PooledMedium.identification")("customModel",vn.record.identification),e.xp6(),e.Q6J("label","entity.AuditedDataObject.creationTime")("customModel",e.xi3(3,6,e.lcZ(4,9,vn.record.creationTime),"dd.MM.yyyy - HH:mm")+" "+vn.translateService.instant("imxplatform.common.time-indicator")+" ("+vn.record.creationFrom+")"),e.xp6(3),e.Q6J("label","entity.AuditedDataObject.lastChangeTime")("customModel",e.xi3(6,11,e.lcZ(7,14,vn.record.lastChangeTime),"dd.MM.yyyy - HH:mm")+" "+vn.translateService.instant("imxplatform.common.time-indicator")+" ("+vn.record.lastChangeFrom+")")}}function Ve(Hn,mo){if(1&Hn){const vn=e.EpF();e.TgZ(0,"div",9)(1,"button",10),e.NdJ("click",function(){e.CHM(vn);const wn=e.oxw(2);return e.KtG(wn.submit())}),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"button",11),e.NdJ("click",function(){e.CHM(vn);const wn=e.oxw(2);return e.KtG(wn.close())}),e._uU(5,"imxplatform.dialog.common-close"),e.qZA()()}if(2&Hn){const vn=e.oxw(2);e.xp6(),e.Q6J("disabled",vn.formHandler.formGroup.invalid||vn.formHandler.formGroup.pristine),e.xp6(),e.Oqu(e.lcZ(3,2,"imxplatform.media.edit.save"))}}function Ce(Hn,mo){if(1&Hn){const vn=e.EpF();e.TgZ(0,"div",64)(1,"button",65),e.NdJ("click",function(){e.CHM(vn);const wn=e.oxw(2);return e.KtG(wn.applyAndClose())}),e.ALo(2,"async"),e._UZ(3,"i",66),e._uU(4,"imxplatform.media.assignment.save-and-close "),e.qZA(),e.TgZ(5,"button",67),e.NdJ("click",function(){e.CHM(vn);const wn=e.oxw(2);return e.KtG(wn.applyAndContinue())}),e._UZ(6,"i",68),e._uU(7,"imxplatform.media.edit.continue "),e.qZA()()}if(2&Hn){const vn=e.oxw(2);e.xp6(),e.Q6J("disabled",vn.formHandler.formGroup.invalid||!e.lcZ(2,1,vn.formHandler.hasSavePermission()))}}function tt(Hn,mo){if(1&Hn){const vn=e.EpF();e.TgZ(0,"div")(1,"button",65),e.NdJ("click",function(){e.CHM(vn);const wn=e.oxw(2);return e.KtG(wn.deleted.emit(!0))}),e.ALo(2,"async"),e._UZ(3,"i",69),e._uU(4,"imxplatform.media.edit.delete "),e.qZA()()}if(2&Hn){const vn=e.oxw(2);e.xp6(),e.Q6J("disabled",!e.lcZ(2,1,vn.formHandler.hasDeletePermission()))}}const ht=()=>({$implicit:"description"}),Qt=()=>({$implicit:"altText"}),Un=()=>({$implicit:"mediaLicense"}),Yt=()=>({$implicit:"sourceUrl"}),Fn=()=>({$implicit:"author"}),yt=()=>({$implicit:"authorUrl"}),Bt=()=>({$implicit:"searchKeywords"}),li=()=>({$implicit:"client"});function si(Hn,mo){if(1&Hn&&(e.TgZ(0,"div",2)(1,"form",20),e.YNc(2,ct,18,19,"ng-container",21)(3,ni,3,2,"ng-container",21)(4,sn,13,14,"ng-container",21)(5,bn,15,14,"ng-container",21),e.TgZ(6,"div",13)(7,"div",22)(8,"span",23),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.TgZ(11,"span",24),e._uU(12),e.qZA()(),e.TgZ(13,"div",14),e._UZ(14,"imx-language-switch-button",15),e.qZA()(),e.TgZ(15,"div",16),e.YNc(16,vt,1,0,"ng-container",17)(17,nn,1,0,"ng-container",17)(18,rn,1,0,"ng-container",17),e.qZA(),e.TgZ(19,"div",16),e.YNc(20,ii,1,0,"ng-container",17)(21,Oo,1,0,"ng-container",17)(22,no,1,0,"ng-container",17)(23,Li,1,0,"ng-container",17)(24,ji,1,0,"ng-container",17)(25,Ii,1,0,"ng-container",17)(26,co,2,3,"ng-container",21),e.ALo(27,"async"),e.YNc(28,He,2,3,"ng-container",21),e.ALo(29,"async"),e.YNc(30,rt,1,0,"ng-container",17),e.qZA(),e.TgZ(31,"div",16),e.YNc(32,$e,8,16,"ng-container",21),e.qZA()(),e.YNc(33,Ve,6,4,"div",25)(34,Ce,8,3,"div",26)(35,tt,5,3,"div",21),e.qZA()),2&Hn){const vn=e.oxw(),Ji=e.MAs(4);e.xp6(),e.Q6J("formGroup",vn.formHandler.formGroup),e.xp6(),e.Q6J("ngIf",vn.isType(vn.MEDIA_TYPE_IMAGE)),e.xp6(),e.Q6J("ngIf",vn.isType(vn.MEDIA_TYPE_VIDEO)),e.xp6(),e.Q6J("ngIf",vn.isType(vn.MEDIA_TYPE_PDF)),e.xp6(),e.Q6J("ngIf",vn.isType(vn.MEDIA_TYPE_FILE)),e.xp6(4),e.Oqu(e.lcZ(10,34,"imxplatform.media.edit.id")),e.xp6(3),e.Oqu(vn.record.id),e.xp6(2),e.Q6J("formHandler",vn.formHandler),e.xp6(2),e.Q6J("ngTemplateOutlet",Ji)("ngTemplateOutletContext",e.DdM(40,lt)),e.xp6(),e.Q6J("ngTemplateOutlet",Ji)("ngTemplateOutletContext",e.DdM(41,ht)),e.xp6(),e.Q6J("ngTemplateOutlet",Ji)("ngTemplateOutletContext",e.DdM(42,Qt)),e.xp6(2),e.Q6J("ngTemplateOutlet",Ji)("ngTemplateOutletContext",e.DdM(43,Un)),e.xp6(),e.Q6J("ngTemplateOutlet",Ji)("ngTemplateOutletContext",e.DdM(44,Pt)),e.xp6(),e.Q6J("ngTemplateOutlet",Ji)("ngTemplateOutletContext",e.DdM(45,Yt)),e.xp6(),e.Q6J("ngTemplateOutlet",Ji)("ngTemplateOutletContext",e.DdM(46,Fn)),e.xp6(),e.Q6J("ngTemplateOutlet",Ji)("ngTemplateOutletContext",e.DdM(47,yt)),e.xp6(),e.Q6J("ngTemplateOutlet",Ji)("ngTemplateOutletContext",e.DdM(48,Bt)),e.xp6(),e.Q6J("ngIf",e.lcZ(27,36,vn.categoriesAvailable$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(29,38,vn.mediaContentAvailable$)),e.xp6(2),e.Q6J("ngTemplateOutlet",Ji)("ngTemplateOutletContext",e.DdM(49,li)),e.xp6(2),e.Q6J("ngIf",vn.record.id),e.xp6(),e.Q6J("ngIf",vn.defaultBtnBar),e.xp6(),e.Q6J("ngIf",!vn.defaultBtnBar),e.xp6(),e.Q6J("ngIf",!vn.defaultBtnBar&&vn.freshlyUploaded)}}function oo(Hn,mo){if(1&Hn&&e._UZ(0,"imx-form-control",70),2&Hn){const vn=mo.$implicit,Ji=e.oxw();e.Q6J("field",Ji.formHandler.formConfiguration.findFormFieldById(vn))("control",Ji.formHandler.formGroup.get(vn))("form",Ji.formHandler.formGroup)("formHandler",Ji.formHandler)("config",Ji.formHandler.formConfiguration)}}let _o=(()=>{class Hn extends H.U{constructor(vn,Ji,wn,po,Kn,Vn){super(po),this.entitiesMgr=vn,this.mediaProviderOptionProvider=Ji,this.translateService=wn,this.platformDataAccessService=Kn,this.runtimeContextService=Vn,this.logger=(0,t.jl)("MediaEditFormComponent",p.H.name),this.MEDIA_TYPE_IMAGE=s.MR,this.MEDIA_TYPE_VIDEO=s.iC,this.MEDIA_TYPE_PDF=s.LD,this.MEDIA_TYPE_FILE=s.FJ,this.MEDIA_PROVIDER_YOUTUBE=s.yl,this.MEDIA_PROVIDER_FILESYSTEM=s.m9,this.MEDIA_PROVIDER_URL=s.bg,this.creationMode=!1,this.uploadMode=!1,this.disableFocusPointEdit=!1,this.defaultBtnBar=!1,this.freshlyUploaded=!1,this.continued=new e.vpe,this.closed=new e.vpe,this.deleted=new e.vpe,this.uploadFinished=new e.vpe,this.acceptedTermOfUse=!1,this.isEditFocusPoint=!1,this.allowedMediaProviders=[],this.selectedNewMediaProviderId=-1,this.isImageFinishLoading=!1,this.categoriesAvailable$=(0,l.of)(!1),this.mediaContentAvailable$=(0,l.of)(!1)}ngOnChanges(vn){super.ngOnChanges(vn),this.isImageFinishLoading=!1,this.categoriesAvailable$=this.entitiesMgr.getAllEntitiesOfType("PooledMediumCategory").pipe((0,i.w)(Ji=>(0,l.of)(Ji.totalNumberOfResults>0))),this.mediaContentAvailable$=this.entitiesMgr.getAllEntitiesOfType("MediaContent").pipe((0,i.w)(Ji=>(0,l.of)(Ji.totalNumberOfResults>0))),!this.uploadMode&&!this.creationMode&&(this.formHandler.formGroup.get("url").disable(),this.formHandler.formGroup.get("mediaType").disable(),this.formHandler.formGroup.get("youtubeID").disable()),this.creationMode&&(this.allowedMediaProvidersSubscription=this.mediaProviderOptionProvider.getOptions(void 0,void 0).subscribe(Ji=>{Ji&&(this.allowedMediaProviders=Ji.filter(wn=>wn.value!==s.m9.id),this.allowedMediaProviders.push({value:-1,label:"imxplatform.common.select-placeholder-demand"}))}))}ngOnInit(){this.loadRequiredProperties()}ngOnDestroy(){this.allowedMediaProvidersSubscription&&(this.allowedMediaProvidersSubscription.unsubscribe(),this.allowedMediaProvidersSubscription=null)}beforeSubmit(vn){!vn.id&&this.assignmentData&&(vn.assignedEntityType=this.assignmentData.ctxtEntityType,vn.assignedEntityId=this.assignmentData.ctxtEntityId)}loadRequiredProperties(){this.platformDataAccessService.getRequiredPropertiesForCoreEntity("PooledMedium").subscribe(vn=>{vn.forEach(Ji=>this.formHandler.applyRequiredPropertyDefinitionToField(Ji))})}switchMediaProvider(){const vn=this.allowedMediaProviders.find(Ji=>Ji.value===this.selectedNewMediaProviderId);if(this.logger.info("Create media. Selected provider: "+JSON.stringify(vn)),vn){const Ji={id:null,mediaProvider:{id:vn.value},title:{},identification:"",client:this.runtimeContextService.getLoginClient()};vn.value===s.yl.id&&(this.formHandler.formGroup.get("youtubeID").enable({onlySelf:!0,emitEvent:!1}),this.formHandler.formGroup.get("youtubeID").setValidators([n.kI.required,n.kI.maxLength(11),n.kI.minLength(11)]),this.formHandler.formConfiguration.findFormFieldById("youtubeID").insertor=(0,o.wq)("identification"),this.formHandler.formConfiguration.findFormFieldById("url").insertor=(0,o.G3)(),Ji.mediaType=s.iC,this.formHandler.baseObject=Ji,this.formHandler.formGroup.get("url").setValidators(null),this.formHandler.formGroup.get("url").updateValueAndValidity(),this.formHandler.formGroup.get("mediaType").setValidators(null),this.formHandler.formGroup.get("mediaType").updateValueAndValidity()),vn.value===s.bg.id&&(this.formHandler.formGroup.get("url").enable({onlySelf:!0,emitEvent:!1}),this.formHandler.formGroup.get("url").setValidators([n.kI.required,x.Y2]),this.formHandler.formGroup.get("mediaType").enable({onlySelf:!0,emitEvent:!1}),this.formHandler.formGroup.get("mediaType").setValidators(n.kI.required),this.formHandler.formConfiguration.findFormFieldById("url").insertor=(0,o.wq)("identification"),this.formHandler.formConfiguration.findFormFieldById("youtubeID").insertor=(0,o.G3)(),this.formHandler.baseObject=Ji,this.formHandler.formGroup.get("youtubeID").setValidators(null),this.formHandler.formGroup.get("youtubeID").updateValueAndValidity())}}isType(vn){return null!=this.record&&null!=this.record.mediaType&&this.record.mediaType.name==vn.name}isProvider(vn){return null!=this.record&&null!=this.record.mediaProvider&&this.record.mediaProvider.name==vn.name}isProviderSelected(vn){return this.selectedNewMediaProviderId===vn.id}applyAndContinue(){this.formHandler.hasSavePermission()?this.formHandler.formGroup.dirty?(this.submit(),this.continued.emit(!0)):this.formHandler.validateAllFormFields(this.formHandler.formGroup,"root")?this.doAdditionalValidation()&&this.continued.emit(!0):this.userMessageService.showError("imxplatform.common-entity.edit.invalid-form"):this.continued.emit(!0)}close(){this.closed.emit(!0)}applyAndClose(){this.formHandler.formGroup.dirty&&this.submit(),this.closed.emit(!0)}get youtubeUrl(){if(this.record){const vn=I.L.getVideoLink(this.record);if(vn)return vn.embedLink}}enableEditFocusPoint(){this.isEditFocusPoint=!0}disableEditFocusPoint(){this.isEditFocusPoint=!1}resetFocusPoint(){const vn=this.formHandler.formGroup.get("focalPointX"),Ji=this.formHandler.formGroup.get("focalPointY");vn&&Ji&&(vn.setValue(null),vn.markAsTouched(),vn.markAsDirty(),Ji.setValue(null),Ji.markAsTouched(),Ji.markAsDirty()),this.isEditFocusPoint=!1}get imageWidth(){if(this.imageElement)return this.imageElement.nativeElement.naturalWidth}get imageHeight(){if(this.imageElement)return this.imageElement.nativeElement.naturalHeight}get mouseFocusPointX(){return this.imageWidth&&this.imageElement?Math.floor(this.mousePositionOnImageX*(this.imageWidth/this.imageElement.nativeElement.width)):NaN}get mouseFocusPointY(){return this.imageHeight&&this.imageElement?Math.floor(this.mousePositionOnImageY*(this.imageHeight/this.imageElement.nativeElement.height)):NaN}get objectFocusPointX(){const vn=this.formHandler.formGroup.get("focalPointX");return vn?vn.value:NaN}get objectFocusPointY(){const vn=this.formHandler.formGroup.get("focalPointY");return vn?vn.value:NaN}onMouseMove(vn){this.mousePositionOnImageX=vn.offsetX,this.mousePositionOnImageY=vn.offsetY}setFocusPoint(){const vn=this.formHandler.formGroup.get("focalPointX"),Ji=this.formHandler.formGroup.get("focalPointY");vn&&Ji&&(vn.setValue(this.mouseFocusPointX),vn.markAsTouched(),vn.markAsDirty(),Ji.setValue(this.mouseFocusPointY),Ji.markAsTouched(),Ji.markAsDirty(),setTimeout(()=>{this.isEditFocusPoint=!1},1e3))}get currentFocusPointLeftPercentage(){const vn=this.objectFocusPointX;return!Number.isNaN(vn)&&this.isImageFinishLoading?vn/this.imageElement.nativeElement.naturalWidth*100:0}get currentFocusPointTopPercentage(){const vn=this.objectFocusPointY;return!Number.isNaN(vn)&&this.isImageFinishLoading?vn/this.imageElement.nativeElement.naturalHeight*100:0}onImageFinishedLoading(){this.isImageFinishLoading=!0}static#e=this.\u0275fac=function(Ji){return new(Ji||Hn)(e.Y36(t.qB),e.Y36(m.U),e.Y36(O.sK),e.Y36(b.Y),e.Y36(c.nq),e.Y36(t.Ze))};static#t=this.\u0275cmp=e.Xpm({type:Hn,selectors:[["imx-media-edit-form"]],viewQuery:function(Ji,wn){if(1&Ji&&e.Gf(Le,5),2&Ji){let po;e.iGM(po=e.CRH())&&(wn.imageElement=po.first)}},inputs:{formHandler:"formHandler",creationMode:"creationMode",uploadMode:"uploadMode",assignmentData:"assignmentData",disableFocusPointEdit:"disableFocusPointEdit",defaultBtnBar:"defaultBtnBar",freshlyUploaded:"freshlyUploaded"},outputs:{continued:"continued",closed:"closed",deleted:"deleted",uploadFinished:"uploadFinished"},features:[e.qOj,e.TTD],decls:5,vars:3,consts:[["class","form__content",4,"ngIf"],["imxControl",""],[1,"form__content"],[3,"pooledMediumFormHandlerService","close","uploadFinished"],["translate",""],[1,"imx-button-select",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["class","media-edit__meta-data-group",4,"ngIf"],["class","media-edit__field-group",4,"ngIf"],[1,"imx-button-bar","right"],[1,"imx-button","cta",3,"disabled","click"],["translate","",1,"imx-button","default",3,"click"],[3,"value"],[1,"media-edit__meta-data-group"],[1,"media-edit__language"],[3,"formHandler"],[1,"media-edit__field-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"hidden"],[3,"pooledMediumFormHandlerService","termsOfUseChanged"],["id","media-edit",3,"formGroup"],[4,"ngIf"],[1,"media-edit__medium-id"],[1,"label","txt-md","txt-grey"],[1,"txt-md"],["class","imx-button-bar right",4,"ngIf"],["class","wizard-button-bar",4,"ngIf"],[1,"media-edit__picture"],[1,"media-edit__picture-wrapper"],["mode","indeterminate",4,"ngIf"],[3,"hidden","ngClass","src","alt","mousemove","click","load"],["imageElement",""],["class","media-edit__picture-shadow",4,"ngIf"],["class","media-edit__picture-overlay",4,"ngIf"],[1,"media-edit__picture-footer"],[1,"left"],[1,"right"],["mode","indeterminate"],[1,"media-edit__focus-point-cross-hairs","x-axis"],[1,"media-edit__focus-point-cross-hairs","y-axis"],[1,"media-edit__picture-shadow"],[1,"media-edit__picture-overlay"],[1,"media-edit__picture-overlay-content"],[1,"identification"],[1,"button"],[3,"click",4,"ngIf"],[3,"click"],[1,"focus-coordinates"],[1,"icon","icon-trash",3,"click"],[1,"icon","icon-cross",3,"click"],["class","media-edit__video",4,"ngIf"],[1,"media-edit__video"],["embeddedObjectUrl","","parameter","src","controls","",3,"embedUrl"],[1,"media-edit__video-footer"],["type","text/html","frameborder","0","embeddedObjectUrl","","parameter","src",3,"embedUrl"],[1,"media-edit__pdf"],["type","application/pdf","embeddedObjectUrl","","parameter","data",3,"embedUrl"],[1,"media-edit__pdf-footer"],[1,"media-edit__file"],["target","_blank",1,"download",3,"href"],[1,"icon","imx-icon-middle","icon-down-square"],[1,"txt-link","txt-md-sm"],[1,"media-edit__file-footer"],[3,"label","customModel"],[1,"wizard-button-bar"],["translate","",1,"imx-button","prio2","with-icon",3,"disabled","click"],[1,"icon","icon-checkmark"],["translate","",1,"imx-button","prio2","with-icon",3,"click"],[1,"icon","icon-arrow-right"],[1,"icon","icon-trash"],[3,"field","control","form","formHandler","config"]],template:function(Ji,wn){1&Ji&&e.YNc(0,R,2,1,"div",0)(1,ye,17,11,"div",0)(2,si,36,50,"div",0)(3,oo,1,5,"ng-template",null,1,e.W1O),2&Ji&&(e.Q6J("ngIf",wn.uploadMode),e.xp6(),e.Q6J("ngIf",wn.creationMode),e.xp6(),e.Q6J("ngIf",!wn.creationMode&&!wn.uploadMode))},dependencies:[P.mk,P.sg,P.O5,P.tP,n._Y,n.JJ,n.JL,n.On,G.ey,B.KE,ae.pW,J.gD,n.sg,O.Pi,q.Q,j.A,Y.H,K.k,ne._,ee.G,$.F,P.Ov,P.uU,O.X$,ue.ZM,ge.E,Ke.p,at.j],styles:[".form__content[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.media-edit__file[_ngcontent-%COMP%]{background-color:#fff}.media-edit__file[_ngcontent-%COMP%]   .download[_ngcontent-%COMP%]{padding:4px 0;display:block;height:50px;text-align:center;text-decoration:none;color:#0a2663}.media-edit__file[_ngcontent-%COMP%]   .media-edit__file-footer[_ngcontent-%COMP%]{width:100%;height:18px;background-color:#eefafa;padding:0 5px;font-size:12px;text-align:left}.media-edit__pdf[_ngcontent-%COMP%]{text-align:center;background-color:#000;position:relative}.media-edit__pdf[_ngcontent-%COMP%]   object[_ngcontent-%COMP%]{height:35vh;width:100%;color:#fff;font-size:12px}.media-edit__pdf[_ngcontent-%COMP%]   .media-edit__pdf-footer[_ngcontent-%COMP%]{width:100%;height:18px;background-color:#eefafa;padding:0 5px;font-size:12px;text-align:left}.media-edit__video[_ngcontent-%COMP%]{text-align:center;background-color:#000;position:relative}.media-edit__video[_ngcontent-%COMP%]   video[_ngcontent-%COMP%]{max-width:100%;max-height:35vh}.media-edit__video[_ngcontent-%COMP%]   iframe[_ngcontent-%COMP%]{width:100%;height:30vh}.media-edit__video[_ngcontent-%COMP%]   .media-edit__video-footer[_ngcontent-%COMP%]{width:100%;height:18px;background-color:#eefafa;padding:0 5px;font-size:12px;text-align:left}.media-edit__picture[_ngcontent-%COMP%]{background-color:#eefafa}.media-edit__picture[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;display:block}.media-edit__picture[_ngcontent-%COMP%]   img.focus-setpoint[_ngcontent-%COMP%]{cursor:crosshair}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__picture-wrapper[_ngcontent-%COMP%]{position:relative;text-align:center;margin:0 auto;width:-moz-fit-content;width:fit-content}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__focus-point-cross-hairs[_ngcontent-%COMP%]{position:absolute;transition:all .3s ease-out}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__focus-point-cross-hairs.x-axis[_ngcontent-%COMP%]{width:100%;height:1px;left:0;background-image:linear-gradient(90deg,transparent 0%,#96172e 15%,#96172e 85%,transparent)}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__focus-point-cross-hairs.y-axis[_ngcontent-%COMP%]{width:1px;height:100%;top:0;background-image:linear-gradient(180deg,transparent 0%,#96172e 15%,#96172e 85%,transparent)}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__picture-shadow[_ngcontent-%COMP%]{width:100%;height:100%;background-color:#000;position:absolute;opacity:0;top:0;left:0;transition:opacity .3s ease-out}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__picture-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;color:#fff;visibility:hidden;display:flex;justify-content:center}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__picture-overlay[_ngcontent-%COMP%]   .media-edit__picture-overlay-content[_ngcontent-%COMP%]{text-align:center;margin:auto 0}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__picture-overlay[_ngcontent-%COMP%]   .media-edit__picture-overlay-content[_ngcontent-%COMP%]   .identification[_ngcontent-%COMP%], .media-edit__picture[_ngcontent-%COMP%]   .media-edit__picture-overlay[_ngcontent-%COMP%]   .media-edit__picture-overlay-content[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{margin:10px 0}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__picture-overlay[_ngcontent-%COMP%]   .media-edit__picture-overlay-content[_ngcontent-%COMP%]   .identification[_ngcontent-%COMP%]{word-break:break-word;padding:0 10px}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__picture-overlay[_ngcontent-%COMP%]   .media-edit__picture-overlay-content[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background:transparent;border:1px solid white;padding:6px 10px;color:#fff;min-width:160px;box-shadow:1px 1px 4px #0003;cursor:pointer}.media-edit__picture[_ngcontent-%COMP%]:hover   .media-edit__picture-shadow[_ngcontent-%COMP%]{opacity:.5}.media-edit__picture[_ngcontent-%COMP%]:hover   .media-edit__picture-overlay[_ngcontent-%COMP%]{visibility:visible}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__picture-footer[_ngcontent-%COMP%]{width:100%;line-height:16px;background-color:#eefafa;padding:0 5px;font-size:12px;text-align:left;display:flex;flex-direction:row}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__picture-footer[_ngcontent-%COMP%]   .focus-coordinates[_ngcontent-%COMP%]{min-width:65px;text-align:center;display:inline-block}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__picture-footer[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:14px;color:#0a2663;padding:0 5px}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__picture-footer[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{width:70%}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__picture-footer[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{width:130%;text-align:right}.media-edit__meta-data-group[_ngcontent-%COMP%]{display:flex;margin:15px 0}.media-edit__meta-data-group[_ngcontent-%COMP%]   .media-edit__medium-id[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{display:block}.media-edit__meta-data-group[_ngcontent-%COMP%]   .media-edit__language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;flex-grow:1}.media-edit__meta-data-group[_ngcontent-%COMP%]   .media-edit__language[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{margin-right:10px}.media-edit__field-group[_ngcontent-%COMP%]{margin-top:5px;padding:10px;border:1px solid #e6e9ef;background-color:#eefafa}.media-edit__field-group[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.media-edit__field-group[_ngcontent-%COMP%]   imx-base-read-only[_ngcontent-%COMP%]{margin-bottom:5px}.wizard-button-bar[_ngcontent-%COMP%]{padding:15px 0 0;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between}.wizard-button-bar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-bottom:15px}.wizard-button-bar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:not(:last-child){margin-right:10px}"]})}return Hn})()},89657:(gt,X,a)=>{"use strict";a.d(X,{r:()=>at});var e=a(45125),n=a(22819),s=a(59143),l=a(21473),i=a(21433),t=a(86313),p=a(33946),c=a(19212),o=a(22941),x=a(23097),u=a(17700),m=a(96814),b=a(16007),I=a(74961),H=a(6128),O=a(36681),P=a(59626);function G(Le,R){1&Le&&c._UZ(0,"mat-progress-bar",3)}function B(Le,R){if(1&Le){const Te=c.EpF();c.TgZ(0,"imx-dropup-button")(1,"imx-action-menu")(2,"imx-action-menu-item",4),c.NdJ("click",function(){const Ue=c.CHM(Te).folder,We=c.oxw();return c.KtG(We.renameFolder(Ue))}),c._uU(3," imxplatform.media-folder.list.rename "),c.qZA(),c.TgZ(4,"imx-action-menu-item",5),c.NdJ("click",function(){const Ue=c.CHM(Te).folder,We=c.oxw();return c.KtG(We.deleteFolder(Ue))}),c._uU(5," imxplatform.media-folder.list.remove "),c.qZA()()()}2&Le&&(c.xp6(2),c.Q6J("icon","icon-pencil"),c.xp6(2),c.Q6J("icon","icon-trash"))}function ae(Le,R){if(1&Le&&(c.TgZ(0,"span"),c._uU(1),c.qZA(),c.TgZ(2,"span",24),c._uU(3,"/"),c.qZA()),2&Le){const Te=R.$implicit;c.xp6(),c.Oqu(Te)}}function J(Le,R){if(1&Le){const Te=c.EpF();c.TgZ(0,"div",15),c.NdJ("click",function(){c.CHM(Te);const Se=c.oxw(2);return c.KtG(Se.createFolder())}),c._UZ(1,"span",25),c.qZA()}}function q(Le,R){1&Le&&c._UZ(0,"span",26)}function j(Le,R){1&Le&&c._UZ(0,"span",27)}function Y(Le,R){1&Le&&c.GkF(0)}const K=Le=>({folder:Le});function ne(Le,R){if(1&Le&&(c.TgZ(0,"div",13)(1,"div",30),c.YNc(2,Y,1,0,"ng-container",31),c.qZA()()),2&Le){const Te=c.oxw().$implicit;c.oxw(2);const me=c.MAs(3);c.xp6(2),c.Q6J("ngTemplateOutlet",me)("ngTemplateOutletContext",c.VKq(2,K,Te))}}function ee(Le,R){if(1&Le){const Te=c.EpF();c.TgZ(0,"div",28)(1,"div",20),c.NdJ("click",function(){const Ue=c.CHM(Te).$implicit,We=c.oxw(2);return c.KtG(We.enterFolder(Ue))}),c._UZ(2,"span",10),c.qZA(),c.TgZ(3,"div",22),c.NdJ("click",function(){const Ue=c.CHM(Te).$implicit,We=c.oxw(2);return c.KtG(We.enterFolder(Ue))}),c.TgZ(4,"span"),c._uU(5),c.qZA()(),c.YNc(6,ne,3,4,"div",29),c.qZA()}if(2&Le){const Te=R.$implicit,me=c.oxw(2);c.xp6(5),c.Oqu(Te.name),c.xp6(),c.Q6J("hasAnyPermission",me.hasMediaManagementStr)}}const $=Le=>({open:Le});function ue(Le,R){if(1&Le){const Te=c.EpF();c.TgZ(0,"div",6)(1,"div",7)(2,"div",8)(3,"div",9),c._UZ(4,"span",10),c.qZA(),c.TgZ(5,"div",11),c.YNc(6,ae,4,1,"ng-template",12),c.qZA(),c.TgZ(7,"div",13),c.YNc(8,J,2,0,"div",14),c.TgZ(9,"div",15),c.NdJ("click",function(){c.CHM(Te);const Se=c.oxw();return c.KtG(Se.toggleCollapse())}),c.YNc(10,q,1,0,"span",16)(11,j,1,0,"span",17),c.qZA()()()(),c.TgZ(12,"div",18)(13,"div",19)(14,"div",20),c.NdJ("click",function(){c.CHM(Te);const Se=c.oxw();return c.KtG(Se.leaveFolder())}),c._UZ(15,"span",21),c.qZA(),c.TgZ(16,"div",22),c.NdJ("click",function(){c.CHM(Te);const Se=c.oxw();return c.KtG(Se.leaveFolder())}),c.TgZ(17,"span"),c._uU(18,"..."),c.qZA()()(),c.YNc(19,ee,7,2,"div",23),c.qZA()()}if(2&Le){const Te=c.oxw();c.xp6(6),c.Q6J("ngForOf",Te.getCurrentPath()),c.xp6(2),c.Q6J("hasAnyPermission",Te.hasMediaManagementStr),c.xp6(2),c.Q6J("ngIf",Te.collapsed),c.xp6(),c.Q6J("ngIf",!Te.collapsed),c.xp6(),c.Q6J("ngClass",c.VKq(6,$,!Te.collapsed)),c.xp6(7),c.Q6J("ngForOf",Te.selectedFolder.children)}}const ge="/",Ke="[MediaPool]";let at=(()=>{class Le{constructor(Te,me,Se,Ue,We){this.route=Te,this.mediaFolderService=me,this.userMessageService=Se,this.dialog=Ue,this.dataAccessService=We,this.loaded$=new e.X(!1),this.folderStructure={name:Ke,parent:void 0,children:[]},this.collapsed=!1,this.hasMediaManagementStr=l.uo.F_POOLED_MEDIUM_MANAGEMENT_ALL.name,this.defaultFolderSorting=(et,Et)=>et.name.localeCompare(Et.name)}ngOnInit(){this.dataAccessService.getPooledMediaFolders().subscribe(Te=>{this.buildStructure(Te),this.urlParameterSubscription=this.route.queryParamMap.subscribe(me=>{this.updateCurrentFolderFromUrl(),this.updateCurrentPath()}),this.loaded$.next(!0)})}ngOnDestroy(){this.folderModificationSubscription&&(this.folderModificationSubscription.unsubscribe(),this.folderModificationSubscription=null),this.urlParameterSubscription&&(this.urlParameterSubscription.unsubscribe(),this.urlParameterSubscription=null)}enterFolder(Te){this.selectedFolder=Te,this.updateCurrentPath()}leaveFolder(){this.selectedFolder.parent&&(this.selectedFolder=this.selectedFolder.parent,this.updateCurrentPath())}getCurrentPath(){return this.mediaFolderService.getCurrentPath()}createFolder(){this.dialog.open(i.M,{minWidth:470,data:{folder:void 0,dialogTitle:"imxplatform.media.list.action.create-folder.header",folderInputLabel:"imxplatform.media.list.action.create-folder.label",confirmButtonLabel:"imxplatform.media.list.action.create-folder.confirm"}}).afterClosed().subscribe(Te=>{Te&&Te.length>0&&this.dataAccessService.createPooledMediaFolder(this.mediaFolderService.getCurrentPathAsString()?this.mediaFolderService.getCurrentPathAsString():"/",Te).subscribe(me=>{me&&(this.updateStructure(),this.userMessageService.showInfo("Ordner erfolgreich angelegt"))},me=>{this.userMessageService.showError(me.error)})})}deleteFolder(Te){Te&&this.dialog.open(t.F,{maxWidth:470,maxHeight:235,data:{i18n:"imxplatform.media-folder.list.action.delete.confirm",title:Te.name}}).afterClosed().subscribe(me=>{me&&this.dataAccessService.deletePooledMediaFolder(this.mediaFolderService.getCurrentPathAsString()?this.mediaFolderService.getCurrentPathAsString():"/",Te.name).subscribe(Se=>{Se&&(this.updateStructure(),this.userMessageService.showInfo("Ordner erfolgreich gel\xf6scht"))},Se=>{this.userMessageService.showError(Se.error)})})}renameFolder(Te){Te&&this.dialog.open(i.M,{...p.D.FORM_SMALL,data:{folder:Te.name,dialogTitle:"imxplatform.media.list.action.rename-folder.header",folderInputLabel:"imxplatform.media.list.action.rename-folder.label",confirmButtonLabel:"imxplatform.media.list.action.rename-folder.confirm"}}).afterClosed().subscribe(me=>{me&&me.length>0&&this.dataAccessService.renamePooledMediaFolder(this.mediaFolderService.getCurrentPathAsString()?this.mediaFolderService.getCurrentPathAsString():"/",Te.name,me).subscribe(Se=>{Se&&(this.updateStructure(),this.userMessageService.showInfo("Ordner erfolgreich umbenannt"))},Se=>{this.userMessageService.showError(Se.error)})})}updateStructure(){this.loaded$.next(!1),this.dataAccessService.getPooledMediaFolders().subscribe(Te=>{this.folderStructure={name:Ke,parent:void 0,children:[]},this.buildStructure(Te),this.loaded$.next(!0)})}updateCurrentPath(){const Te=[];this.walkThrough(this.selectedFolder,Te),Te.push(this.folderStructure.name),this.mediaFolderService.setCurrentPath(Te.reverse())}walkThrough(Te,me){Te.parent&&(me.push(Te.name),this.walkThrough(Te.parent,me))}sortStructure(Te){Te.children.forEach(me=>this.sortStructure(me)),Te.children.sort(this.defaultFolderSorting)}buildStructure(Te){Te.forEach(me=>this.buildFolder(me,this.folderStructure)),this.sortStructure(this.folderStructure),this.selectedFolder=this.folderStructure,this.updateCurrentFolderFromUrl(),this.updateCurrentPath()}updateCurrentFolderFromUrl(){if(this.route.snapshot.queryParamMap.has("path")){const Te=this.route.snapshot.queryParamMap.get("path"),me=this.findForPath(Te,this.folderStructure);this.selectedFolder=me||this.folderStructure}}findForPath(Te,me){if(!Te.includes(ge))return me.children.find(Se=>Se.name===Te);{if(2===Te.split(ge).length&&0===Te.split(ge)[1].length)return me.children.find(We=>We.name===Te.substr(0,Te.length-1));const Se=Te.split(ge)[0],Ue=me.children.find(We=>We.name===Se);if(Ue)return this.findForPath(Te.replace(Se+ge,""),Ue)}}buildFolder(Te,me){if(Te.includes(ge)){const Se=Te.split(ge)[0],Ue=me.children.find(We=>We.name===Se);if(Ue)this.buildFolder(Te.replace(Se+ge,""),Ue);else{const We={name:Se,parent:me,children:[]};me.children.push(We),this.buildFolder(Te.replace(Se+ge,""),We)}}else""!==Te&&me.children.push({name:Te,parent:me,children:[]})}toggleCollapse(){this.collapsed=!this.collapsed}static#e=this.\u0275fac=function(me){return new(me||Le)(c.Y36(o.gz),c.Y36(x.d),c.Y36(s.Y),c.Y36(u.uw),c.Y36(n.nq))};static#t=this.\u0275cmp=c.Xpm({type:Le,selectors:[["imx-media-folder-navigation"]],decls:6,vars:4,consts:[["loading",""],["actionMenu",""],["class","media-folder-navigation",4,"ngIf","ngIfElse"],["mode","indeterminate"],[3,"icon","click"],["additionalStyle","delete",3,"icon","click"],[1,"media-folder-navigation"],[1,"header"],[1,"row"],[1,"folder-icon","breadcrumb"],[1,"icon","imx-icon-middle","icon-folder"],[1,"label"],["ngFor","",3,"ngForOf"],[1,"actions"],["class","actions-wrapper imx-icon-clickable",3,"click",4,"hasAnyPermission"],[1,"actions-wrapper","imx-icon-clickable",3,"click"],["class","icon icon-chevron-downBold",4,"ngIf"],["class","icon icon-chevron-upBold",4,"ngIf"],[1,"content",3,"ngClass"],[1,"row","back"],[1,"folder-icon",3,"click"],[1,"icon","imx-icon-middle","icon-arrow-left"],[1,"label",3,"click"],["class","row folder",4,"ngFor","ngForOf"],[1,"separator"],[1,"icon","icon-plusBold"],[1,"icon","icon-chevron-downBold"],[1,"icon","icon-chevron-upBold"],[1,"row","folder"],["class","actions",4,"hasAnyPermission"],[1,"actions-wrapper","imx-icon-clickable"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(me,Se){if(1&me&&(c.YNc(0,G,1,0,"ng-template",null,0,c.W1O)(2,B,6,2,"ng-template",null,1,c.W1O)(4,ue,20,8,"div",2),c.ALo(5,"async")),2&me){const Ue=c.MAs(1);c.xp6(4),c.Q6J("ngIf",c.lcZ(5,2,Se.loaded$))("ngIfElse",Ue)}},dependencies:[m.mk,m.sg,m.O5,m.tP,b.pW,I.p,H.z,O.t,P.R,m.Ov],styles:[".media-folder-navigation[_ngcontent-%COMP%]{font-size:12px;margin-bottom:20px}.media-folder-navigation[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{opacity:0;height:auto;transition:all .5s ease-in-out;overflow:hidden;max-height:0}.media-folder-navigation[_ngcontent-%COMP%]   .content.open[_ngcontent-%COMP%]{opacity:1;max-height:100vh}.media-folder-navigation[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%], .media-folder-navigation[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]{min-height:40px;height:40px;border-bottom:1px solid #ced4e0;display:flex;flex-direction:row;align-items:center}.media-folder-navigation[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .row.back[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%], .media-folder-navigation[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .row.back[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%], .media-folder-navigation[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .row.folder[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%], .media-folder-navigation[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .row.folder[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%], .media-folder-navigation[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .row.back[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%], .media-folder-navigation[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .row.back[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%], .media-folder-navigation[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .row.folder[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%], .media-folder-navigation[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .row.folder[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{cursor:pointer}.media-folder-navigation[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .row.back[_ngcontent-%COMP%]:hover, .media-folder-navigation[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .row.folder[_ngcontent-%COMP%]:hover, .media-folder-navigation[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .row.back[_ngcontent-%COMP%]:hover, .media-folder-navigation[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .row.folder[_ngcontent-%COMP%]:hover{background-color:#fff;transition-property:background;transition-duration:.3s;transition-timing-function:linear}.media-folder-navigation[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%], .media-folder-navigation[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{flex-grow:1;line-height:24px}.media-folder-navigation[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]   .separator[_ngcontent-%COMP%], .media-folder-navigation[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]   .separator[_ngcontent-%COMP%]{padding:0 10px}.media-folder-navigation[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .folder-icon[_ngcontent-%COMP%], .media-folder-navigation[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .folder-icon[_ngcontent-%COMP%]{margin-right:10px}.media-folder-navigation[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .folder-icon.breadcrumb[_ngcontent-%COMP%], .media-folder-navigation[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .folder-icon.breadcrumb[_ngcontent-%COMP%]{color:#000}.media-folder-navigation[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%], .media-folder-navigation[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{height:100%;display:flex;border-left:1px dashed #ced4e0}.media-folder-navigation[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .actions-wrapper[_ngcontent-%COMP%], .media-folder-navigation[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .actions-wrapper[_ngcontent-%COMP%]{padding:5px;display:flex;flex:1;justify-content:center;align-items:center}.media-folder-navigation[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .actions-wrapper[_ngcontent-%COMP%]{padding:5px 15px}"]})}return Le})()},11236:(gt,X,a)=>{"use strict";a.d(X,{A:()=>ne,I:()=>ee});var e=a(19212),n=a(56223),s=a(21473),l=a(79309),i=a(72079),t=a(19352),p=a(86929),c=a(27556),o=a(98120),x=a(57462),u=a(16763),m=a(56199),b=a(59143),I=a(96814),H=a(23680),O=a(64170),P=a(98525),G=a(71365),B=a(28907),ae=a(42094),J=a(55475),q=a(36116);function j($,ue){if(1&$&&(e.TgZ(0,"mat-option",10),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&$){const ge=ue.$implicit;e.Q6J("value",ge.value),e.xp6(),e.Oqu(e.lcZ(2,2,ge.label))}}function Y($,ue){if(1&$&&(e.TgZ(0,"div",11)(1,"div",12),e._UZ(2,"imx-language-switch-button",13),e.qZA()()),2&$){const ge=e.oxw();e.xp6(2),e.Q6J("formHandler",ge.formHandler)}}function K($,ue){if(1&$){const ge=e.EpF();e.TgZ(0,"div",14),e._UZ(1,"imx-form-control",15),e.TgZ(2,"div",16),e._UZ(3,"imx-form-control",15),e.qZA(),e.TgZ(4,"div",16),e._UZ(5,"imx-select",17)(6,"imx-form-control",15),e.qZA(),e._UZ(7,"imx-form-control",15),e.TgZ(8,"imx-media-terms-of-use",18),e.NdJ("termsOfUseChanged",function(at){e.CHM(ge);const Le=e.oxw();return e.KtG(Le.acceptedTermOfUse=at)}),e.qZA()()}if(2&$){const ge=e.oxw();e.xp6(),e.Q6J("field",ge.formHandler.formConfiguration.findFormFieldById("title"))("control",ge.formHandler.formGroup.get("title"))("formHandler",ge.formHandler)("form",ge.formHandler.formGroup)("config",ge.formHandler.formConfiguration),e.xp6(),e.Q6J("hidden",!ge.isProviderSelected(ge.MEDIA_PROVIDER_YOUTUBE)),e.xp6(),e.Q6J("field",ge.formHandler.formConfiguration.findFormFieldById("youtubeID"))("control",ge.formHandler.formGroup.get("youtubeID"))("formHandler",ge.formHandler)("form",ge.formHandler.formGroup)("config",ge.formHandler.formConfiguration),e.xp6(),e.Q6J("hidden",!ge.isProviderSelected(ge.MEDIA_PROVIDER_URL)),e.xp6(),e.Q6J("field",ge.formHandler.formConfiguration.findFormFieldById("mediaType"))("control",ge.formHandler.formGroup.get("mediaType"))("form",ge.formHandler.formGroup)("optionProvider",ge.allowedMediaTypes),e.xp6(),e.Q6J("field",ge.formHandler.formConfiguration.findFormFieldById("url"))("control",ge.formHandler.formGroup.get("url"))("formHandler",ge.formHandler)("form",ge.formHandler.formGroup)("config",ge.formHandler.formConfiguration),e.xp6(),e.Q6J("field",ge.formHandler.formConfiguration.findFormFieldById("copyright"))("control",ge.formHandler.formGroup.get("copyright"))("formHandler",ge.formHandler)("form",ge.formHandler.formGroup)("config",ge.formHandler.formConfiguration),e.xp6(),e.Q6J("pooledMediumFormHandlerService",ge.formHandler)}}const ne=new e.OlP("implatform.media.type.voter");let ee=(()=>{class $ extends p.U{constructor(ge,Ke,at,Le,R,Te){super(ge),this.configurationProvider=Ke,this.mediaProviderOptionProvider=at,this.mediaTypeOptionProvider=Le,this.runtimeContextService=R,this.mediaTypeVoter=Te,this.logger=(0,s.jl)("MediaLinkComponent",c.H.name),this.destroy$=new i.xQ,this.MEDIA_TYPE_IMAGE=l.MR,this.MEDIA_PROVIDER_YOUTUBE=l.yl,this.MEDIA_PROVIDER_URL=l.bg,this.allowedMediaProviders=[],this.allowedMediaTypes=[],this.selectedNewMediaProviderId=-1,this.closed=new e.vpe,this.acceptedTermOfUse=!1}ngOnInit(){this.mediaProviderOptionProvider.getOptions(void 0,void 0).pipe((0,t.R)(this.destroy$)).subscribe(ge=>{this.allowedMediaProviders=ge.filter(Ke=>Ke.value!==l.m9.id),this.allowedMediaProviders.push({value:-1,label:"imxplatform.common.select-placeholder-demand"}),this.mediaTypeVoter&&(this.allowedMediaProviders=this.mediaTypeVoter.filterAllowedMediaProvider(this.allowedMediaProviders,this.assignmentData.formHandler.getEntityType()))}),this.mediaTypeOptionProvider.getOptions(void 0,void 0).pipe((0,t.R)(this.destroy$)).subscribe(ge=>{this.allowedMediaTypes=ge,this.mediaTypeVoter&&(this.allowedMediaTypes=this.mediaTypeVoter.filterAllowedMediaTypes(this.allowedMediaTypes,this.assignmentData.formHandler.getEntityType()))})}isProviderSelected(ge){return this.selectedNewMediaProviderId===ge.id}beforeSubmit(ge){!ge.id&&this.assignmentData&&(ge.assignedEntityType=this.assignmentData.ctxtEntityType,ge.assignedEntityId=this.assignmentData.ctxtEntityId)}switchMediaProvider(){const ge=this.allowedMediaProviders.find(Ke=>Ke.value===this.selectedNewMediaProviderId);if(this.logger.info("Create media. Selected provider: "+JSON.stringify(ge)),ge){const Ke={id:null,mediaProvider:{id:ge.value},title:{},identification:"",client:this.runtimeContextService.getLoginClient()};ge.value===l.yl.id&&(this.formHandler.formGroup.get("youtubeID").enable({onlySelf:!0,emitEvent:!1}),this.formHandler.formGroup.get("youtubeID").setValidators([n.kI.required,n.kI.maxLength(11),n.kI.minLength(11)]),this.formHandler.formConfiguration.findFormFieldById("youtubeID").insertor=(0,o.wq)("identification"),this.formHandler.formConfiguration.findFormFieldById("url").insertor=(0,o.G3)(),Ke.mediaType=l.iC,this.formHandler.baseObject=Ke,this.formHandler.formGroup.get("url").setValidators(null),this.formHandler.formGroup.get("url").updateValueAndValidity(),this.formHandler.formGroup.get("mediaType").setValidators(null),this.formHandler.formGroup.get("mediaType").updateValueAndValidity()),ge.value===l.bg.id&&(this.formHandler.formGroup.get("url").enable({onlySelf:!0,emitEvent:!1}),this.formHandler.formGroup.get("url").setValidators([n.kI.required,x.Y2]),this.formHandler.formGroup.get("mediaType").enable({onlySelf:!0,emitEvent:!1}),this.formHandler.formGroup.get("mediaType").setValidators(n.kI.required),this.formHandler.formConfiguration.findFormFieldById("url").insertor=(0,o.wq)("identification"),this.formHandler.formConfiguration.findFormFieldById("youtubeID").insertor=(0,o.G3)(),this.formHandler.baseObject=Ke,this.formHandler.formGroup.get("youtubeID").setValidators(null),this.formHandler.formGroup.get("youtubeID").updateValueAndValidity())}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(Ke){return new(Ke||$)(e.Y36(b.Y),e.Y36(s.Pc),e.Y36(u.U),e.Y36(m.T),e.Y36(s.Ze),e.Y36(ne,8))};static#t=this.\u0275cmp=e.Xpm({type:$,selectors:[["imx-media-link"]],inputs:{assignmentData:"assignmentData"},outputs:{closed:"closed"},features:[e.qOj],decls:17,vars:11,consts:[[1,"form__content"],[1,"provider-select"],["translate",""],[1,"imx-button-select",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["class","media-edit__meta-data-group",4,"ngIf"],["class","media-edit__field-group",4,"ngIf"],[1,"imx-button-bar","right"],[1,"imx-button","cta",3,"disabled","click"],["translate","",1,"imx-button","default",3,"click"],[3,"value"],[1,"media-edit__meta-data-group"],[1,"media-edit__language"],[3,"formHandler"],[1,"media-edit__field-group"],[3,"field","control","formHandler","form","config"],[3,"hidden"],[3,"field","control","form","optionProvider"],[3,"pooledMediumFormHandlerService","termsOfUseChanged"]],template:function(Ke,at){1&Ke&&(e.TgZ(0,"div",0)(1,"h3"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"mat-form-field",1)(5,"label",2),e._uU(6,"entity.PooledMedium.mediaProvider"),e.qZA(),e.TgZ(7,"mat-select",3),e.NdJ("ngModelChange",function(R){return at.selectedNewMediaProviderId=R})("selectionChange",function(){return at.switchMediaProvider()}),e.YNc(8,j,3,4,"mat-option",4),e.qZA()(),e.YNc(9,Y,3,1,"div",5)(10,K,9,27,"div",6),e.TgZ(11,"div",7)(12,"button",8),e.NdJ("click",function(){return at.submit()}),e._uU(13),e.ALo(14,"translate"),e.qZA(),e.TgZ(15,"button",9),e.NdJ("click",function(){return at.closed.emit(!1)}),e._uU(16,"imxplatform.dialog.common-close"),e.qZA()()()),2&Ke&&(e.xp6(2),e.Oqu(e.lcZ(3,7,"imxplatform.media.edit.create")),e.xp6(5),e.Q6J("ngModel",at.selectedNewMediaProviderId),e.xp6(),e.Q6J("ngForOf",at.allowedMediaProviders),e.xp6(),e.Q6J("ngIf",at.selectedNewMediaProviderId>1),e.xp6(),e.Q6J("ngIf",at.selectedNewMediaProviderId>1),e.xp6(2),e.Q6J("disabled",at.formHandler.formGroup.invalid||!at.acceptedTermOfUse),e.xp6(),e.Oqu(e.lcZ(14,9,"imxplatform.media.edit.create-submit")))},dependencies:[I.sg,I.O5,n.JJ,n.On,H.ey,O.KE,P.gD,G.Pi,B.A,ae.H,J.k,q.H,G.X$],styles:[".form__content[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.media-edit__file[_ngcontent-%COMP%]{background-color:#fff}.media-edit__file[_ngcontent-%COMP%]   .download[_ngcontent-%COMP%]{padding:4px 0;display:block;height:50px;text-align:center;text-decoration:none;color:#0a2663}.media-edit__file[_ngcontent-%COMP%]   .media-edit__file-footer[_ngcontent-%COMP%]{width:100%;height:18px;background-color:#eefafa;padding:0 5px;font-size:12px;text-align:left}.media-edit__pdf[_ngcontent-%COMP%]{text-align:center;background-color:#000;position:relative}.media-edit__pdf[_ngcontent-%COMP%]   object[_ngcontent-%COMP%]{height:35vh;width:100%;color:#fff;font-size:12px}.media-edit__pdf[_ngcontent-%COMP%]   .media-edit__pdf-footer[_ngcontent-%COMP%]{width:100%;height:18px;background-color:#eefafa;padding:0 5px;font-size:12px;text-align:left}.media-edit__video[_ngcontent-%COMP%]{text-align:center;background-color:#000;position:relative}.media-edit__video[_ngcontent-%COMP%]   video[_ngcontent-%COMP%]{max-width:100%;max-height:35vh}.media-edit__video[_ngcontent-%COMP%]   iframe[_ngcontent-%COMP%]{width:100%;height:30vh}.media-edit__video[_ngcontent-%COMP%]   .media-edit__video-footer[_ngcontent-%COMP%]{width:100%;height:18px;background-color:#eefafa;padding:0 5px;font-size:12px;text-align:left}.media-edit__picture[_ngcontent-%COMP%]{background-color:#eefafa}.media-edit__picture[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;display:block}.media-edit__picture[_ngcontent-%COMP%]   img.focus-setpoint[_ngcontent-%COMP%]{cursor:crosshair}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__picture-wrapper[_ngcontent-%COMP%]{position:relative;text-align:center;margin:0 auto;width:-moz-fit-content;width:fit-content}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__focus-point-cross-hairs[_ngcontent-%COMP%]{position:absolute;transition:all .3s ease-out}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__focus-point-cross-hairs.x-axis[_ngcontent-%COMP%]{width:100%;height:1px;left:0;background-image:linear-gradient(90deg,transparent 0%,#96172e 15%,#96172e 85%,transparent)}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__focus-point-cross-hairs.y-axis[_ngcontent-%COMP%]{width:1px;height:100%;top:0;background-image:linear-gradient(180deg,transparent 0%,#96172e 15%,#96172e 85%,transparent)}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__picture-shadow[_ngcontent-%COMP%]{width:100%;height:100%;background-color:#000;position:absolute;opacity:0;top:0;left:0;transition:opacity .3s ease-out}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__picture-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;color:#fff;visibility:hidden;display:flex;justify-content:center}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__picture-overlay[_ngcontent-%COMP%]   .media-edit__picture-overlay-content[_ngcontent-%COMP%]{text-align:center;margin:auto 0}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__picture-overlay[_ngcontent-%COMP%]   .media-edit__picture-overlay-content[_ngcontent-%COMP%]   .identification[_ngcontent-%COMP%], .media-edit__picture[_ngcontent-%COMP%]   .media-edit__picture-overlay[_ngcontent-%COMP%]   .media-edit__picture-overlay-content[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{margin:10px 0}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__picture-overlay[_ngcontent-%COMP%]   .media-edit__picture-overlay-content[_ngcontent-%COMP%]   .identification[_ngcontent-%COMP%]{word-break:break-word;padding:0 10px}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__picture-overlay[_ngcontent-%COMP%]   .media-edit__picture-overlay-content[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background:transparent;border:1px solid white;padding:6px 10px;color:#fff;min-width:160px;box-shadow:1px 1px 4px #0003;cursor:pointer}.media-edit__picture[_ngcontent-%COMP%]:hover   .media-edit__picture-shadow[_ngcontent-%COMP%]{opacity:.5}.media-edit__picture[_ngcontent-%COMP%]:hover   .media-edit__picture-overlay[_ngcontent-%COMP%]{visibility:visible}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__picture-footer[_ngcontent-%COMP%]{width:100%;line-height:16px;background-color:#eefafa;padding:0 5px;font-size:12px;text-align:left;display:flex;flex-direction:row}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__picture-footer[_ngcontent-%COMP%]   .focus-coordinates[_ngcontent-%COMP%]{min-width:65px;text-align:center;display:inline-block}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__picture-footer[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:14px;color:#0a2663;padding:0 5px}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__picture-footer[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{width:70%}.media-edit__picture[_ngcontent-%COMP%]   .media-edit__picture-footer[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{width:130%;text-align:right}.media-edit__meta-data-group[_ngcontent-%COMP%]{display:flex;margin:15px 0}.media-edit__meta-data-group[_ngcontent-%COMP%]   .media-edit__medium-id[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{display:block}.media-edit__meta-data-group[_ngcontent-%COMP%]   .media-edit__language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;flex-grow:1}.media-edit__meta-data-group[_ngcontent-%COMP%]   .media-edit__language[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{margin-right:10px}.media-edit__field-group[_ngcontent-%COMP%]{margin-top:5px;padding:10px;border:1px solid #e6e9ef;background-color:#eefafa}.media-edit__field-group[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.media-edit__field-group[_ngcontent-%COMP%]   imx-base-read-only[_ngcontent-%COMP%]{margin-bottom:5px}.wizard-button-bar[_ngcontent-%COMP%]{padding:15px 0 0;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between}.wizard-button-bar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-bottom:15px}.wizard-button-bar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:not(:last-child){margin-right:10px}.provider-select[_ngcontent-%COMP%]{width:unset;min-width:200px}"]})}return $})()},32458:(gt,X,a)=>{"use strict";a.d(X,{I:()=>o});var e=a(79309),n=a(19212),s=a(96814);function l(x,u){1&x&&(n.ynx(0),n._UZ(1,"span",1),n.BQk())}function i(x,u){1&x&&(n.ynx(0),n._UZ(1,"span",2),n.BQk())}function t(x,u){1&x&&(n.ynx(0),n._UZ(1,"span",3),n.BQk())}function p(x,u){1&x&&(n.ynx(0),n._UZ(1,"span",4),n.BQk())}function c(x,u){1&x&&(n.ynx(0),n._UZ(1,"span",5),n.BQk())}let o=(()=>{class x{constructor(){this.MEDIA_PROVIDER_FILESYSTEM=e.m9,this.MEDIA_PROVIDER_YOUTUBE=e.yl,this.MEDIA_PROVIDER_URL=e.bg,this.MEDIA_PROVIDER_VIMEO=e.k_,this.MEDIA_PROVIDER_MYVIDEO=e.Kk}static#e=this.\u0275fac=function(b){return new(b||x)};static#t=this.\u0275cmp=n.Xpm({type:x,selectors:[["imx-media-provider-icon"]],inputs:{pooledMedium:"pooledMedium"},decls:5,vars:5,consts:[[4,"ngIf"],[1,"icon-folder"],[1,"icon-youtube"],[1,"icon-earth"],[1,"icon-myvideo"],[1,"icon-vimeo"]],template:function(b,I){1&b&&n.YNc(0,l,2,0,"ng-container",0)(1,i,2,0,"ng-container",0)(2,t,2,0,"ng-container",0)(3,p,2,0,"ng-container",0)(4,c,2,0,"ng-container",0),2&b&&(n.Q6J("ngIf",(null==I.pooledMedium||null==I.pooledMedium.mediaProvider?null:I.pooledMedium.mediaProvider.name)===I.MEDIA_PROVIDER_FILESYSTEM.name),n.xp6(),n.Q6J("ngIf",(null==I.pooledMedium||null==I.pooledMedium.mediaProvider?null:I.pooledMedium.mediaProvider.name)===I.MEDIA_PROVIDER_YOUTUBE.name),n.xp6(),n.Q6J("ngIf",(null==I.pooledMedium||null==I.pooledMedium.mediaProvider?null:I.pooledMedium.mediaProvider.name)===I.MEDIA_PROVIDER_URL.name),n.xp6(),n.Q6J("ngIf",(null==I.pooledMedium||null==I.pooledMedium.mediaProvider?null:I.pooledMedium.mediaProvider.name)===I.MEDIA_PROVIDER_MYVIDEO.name),n.xp6(),n.Q6J("ngIf",(null==I.pooledMedium||null==I.pooledMedium.mediaProvider?null:I.pooledMedium.mediaProvider.name)===I.MEDIA_PROVIDER_VIMEO.name))},dependencies:[s.O5]})}return x})()},55475:(gt,X,a)=>{"use strict";a.d(X,{k:()=>c});var e=a(19212),n=a(21473),l=(a(21417),a(71365)),i=a(96814),t=a(75986);function p(o,x){if(1&o){const u=e.EpF();e.TgZ(0,"div",1)(1,"mat-checkbox",2),e.NdJ("change",function(b){e.CHM(u);const I=e.oxw();return e.KtG(I.valueChanged(b))}),e._UZ(2,"span",3),e.ALo(3,"async"),e.qZA()()}if(2&o){const u=e.oxw();e.xp6(2),e.Q6J("innerHTML",e.lcZ(3,1,u.copyrightConfirmationText$),e.oJD)}}let c=(()=>{class o{constructor(u,m){this.configurationProvider=u,this.translateService=m,this.termsOfUseChanged=new e.vpe}ngOnInit(){const u=this.configurationProvider.getStringFromSnapshot(n.x3.PLATFORM_MEDIA_COPYRIGHT_CONFIRMATION_ENABLED);this.isCopyrightConfirmationNeeded="true"===u||"showDisabledButtons"===u,this.isCopyrightConfirmationNeeded?this.copyrightConfirmationText$=this.pooledMediumFormHandlerService.determineCopyrightConfirmationText(this.configurationProvider,this.translateService):this.termsOfUseChanged.emit(!0)}determineCopyrightConfirmationText(){const u=this.configurationProvider.getStringFromSnapshot(n.x3.PLATFORM_MEDIA_COPYRIGHT_CONFIRMATION_LINK_0),m=this.configurationProvider.getStringFromSnapshot(n.x3.PLATFORM_MEDIA_COPYRIGHT_CONFIRMATION_LINK_1);return u&&m?this.translateService.get("imxplatform.media.edit.copyright-confirm-ext-1",{termsOfUse:u,dataProtection:m}):this.translateService.get(u?"imxplatform.media.edit.copyright-confirm-ext-0":"imxplatform.media.edit.copyright-confirm",{termsOfUse:u})}valueChanged(u){this.termsOfUseChanged.emit(u.checked)}static#e=this.\u0275fac=function(m){return new(m||o)(e.Y36(n.Pc),e.Y36(l.sK))};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["imx-media-terms-of-use"]],inputs:{pooledMediumFormHandlerService:"pooledMediumFormHandlerService"},outputs:{termsOfUseChanged:"termsOfUseChanged"},decls:1,vars:1,consts:[["class","terms-of-use",4,"ngIf"],[1,"terms-of-use"],[1,"small",3,"change"],[3,"innerHTML"]],template:function(m,b){1&m&&e.YNc(0,p,4,3,"div",0),2&m&&e.Q6J("ngIf",b.isCopyrightConfirmationNeeded)},dependencies:[i.O5,t.oG,i.Ov],styles:[".terms-of-use[_ngcontent-%COMP%]{margin:10px 0}[_nghost-%COMP%]     .mat-mdc-checkbox .mdc-label>span{white-space:normal}"]})}return o})()},86729:(gt,X,a)=>{"use strict";a.d(X,{l:()=>j});var e=a(79309),n=a(21473),s=a(22745),l=a(19212),i=a(88119),t=a(96814),p=a(38777),c=a(22194),o=a(8386);const x=["tooltipextended"],u=(Y,K,ne,ee,$)=>[Y,K,ne,ee,$],m=Y=>({placeholder:Y});function b(Y,K){if(1&Y){const ne=l.EpF();l.TgZ(0,"a",4)(1,"img",5,6),l.NdJ("mouseenter",function($){l.CHM(ne);const ue=l.oxw();return l.KtG(ue.toggleTooltip(!0,$))})("mouseleave",function(){l.CHM(ne);const $=l.oxw();return l.KtG($.toggleTooltip(!1))})("error",function(){l.CHM(ne);const $=l.MAs(2),ue=l.oxw();return l.KtG(ue.handleImgError($))}),l.ALo(3,"imgprx"),l.qZA()()}if(2&Y){const ne=l.oxw();l.s9C("href",ne.thumbnailLink,l.LSH),l.xp6(),l.Gre("thumbnail ",ne.size,""),l.Q6J("src",l.G7q(3,6,l.qbA(12,u,ne.thumbnailLink,ne.thumbnailSize,ne.focalPointX,ne.focalPointY,""+ne.mediumIdentifier)),l.LSH)("ngClass",l.VKq(18,m,ne.isPlaceholder))}}function I(Y,K){if(1&Y&&l._UZ(0,"img",7),2&Y){const ne=l.oxw();l.Gre("thumbnail ",ne.size,""),l.Q6J("src",ne.thumbnailLink,l.LSH)("ngClass",l.VKq(5,m,ne.isPlaceholder))}}function H(Y,K){if(1&Y&&(l.ynx(0),l.TgZ(1,"imx-tooltip-extended",8,9),l._UZ(3,"img",10),l.ALo(4,"imgprx"),l.qZA(),l.BQk()),2&Y){const ne=l.oxw();l.xp6(),l.Q6J("whiteBg",!0),l.xp6(2),l.Q6J("src",ne.isPlaceholder?ne.thumbnailLink:l.xi3(4,2,ne.thumbnailLink,"165x165"),l.LSH)}}const O="./assets/placeholders/type-image.svg",G="./assets/placeholders/type-pdf.svg",B="./assets/placeholders/type-text.svg";let j=(()=>{class Y{constructor(ne,ee){this.configurationProvider=ne,this.entityIconService=ee,this.hasTooltip=!1,this.thumbnailLink=O,this.isPlaceholder=!1,this.thumbnailSize="",this.mediumIdentifier="",this.focalPointX=-1,this.focalPointY=-1,this.imgErrorOccurred=!1}ngOnInit(){if(this.isObjectMedium(this.medium)){if(this.isType(this.medium.pooledMedium,e.MR)){this.thumbnailLink=this.createImageThumb(this.medium.pooledMedium,this.medium.deeplink?this.medium.deeplink:this.medium.pooledMedium.url);const ne=this.medium;void 0!==ne.imageWidth&&ne.focalPointX>0&&(this.focalPointX=Number((ne.focalPointX/ne.imageWidth).toFixed(3))),void 0!==ne.imageHeight&&ne.focalPointY>0&&(this.focalPointY=Number((ne.focalPointY/ne.imageHeight).toFixed(3)))}this.isType(this.medium.pooledMedium,e.iC)&&(this.thumbnailLink=this.createVideoThumb(this.medium.pooledMedium)),this.isType(this.medium.pooledMedium,e.FJ)&&(this.thumbnailLink=this.createFileThumb(this.medium.fileType),this.isPlaceholder=!0),this.isType(this.medium.pooledMedium,e.LD)&&(this.thumbnailLink=G,this.isPlaceholder=!0)}if(this.isPooledMedium(this.medium)){if(this.isType(this.medium,e.MR)&&(this.thumbnailLink=this.createImageThumb(this.medium,this.medium.url)),this.isType(this.medium,e.iC)&&(this.thumbnailLink=this.createVideoThumb(this.medium)),this.isType(this.medium,e.FJ)){const ne=this.getFileExtension(this.medium.identification);this.thumbnailLink=this.createFileThumb(ne),this.isPlaceholder=!0}this.isType(this.medium,e.LD)&&(this.thumbnailLink=G,this.isPlaceholder=!0)}this.thumbnailSize=this.determineThumbnailSize(this.size),this.mediumIdentifier=this.medium.id+""}determineThumbnailSize(ne){return"small"==ne?"35x35":"medium"==ne?"100x100":"150x150"}createFileThumb(ne){if(null==ne)return B;switch(ne){case"zip":return"./assets/placeholders/type-zip.svg";case"doc":case"docx":default:return B;case"xls":case"xlsx":return"./assets/placeholders/type-table.svg"}}toggleTooltip(ne,ee){this.hasTooltip&&!this.imgErrorOccurred&&(ne?this.tooltipextended.show(ee):this.tooltipextended.hide())}handleImgError(ne){ne.src="./assets/placeholders/broken-photo.svg",ne.style="object-fit: unset",this.imgErrorOccurred=!0}createVideoThumb(ne){const ee=s.L.getVideoLink(ne);return ee&&ee.thumbnailLink?ee.thumbnailLink:(this.isPlaceholder=!0,"./assets/placeholders/type-video.svg")}createImageThumb(ne,ee){return ne?ne.mediaProvider&&ne.mediaProvider.id===e.bg.id?this.entityIconService.determineMediaIcon(void 0,ne.identification):ee:(this.isPlaceholder=!0,O)}isObjectMedium(ne){return void 0!==ne.pooledMedium}isPooledMedium(ne){return void 0!==ne.mediaType}isType(ne,ee){return null!=ne&&null!=ne.mediaType&&ne.mediaType.name==ee.name}getFileExtension(ne){return ne.split(".").pop()}static#e=this.\u0275fac=function(ee){return new(ee||Y)(l.Y36(n.Pc),l.Y36(i.l))};static#t=this.\u0275cmp=l.Xpm({type:Y,selectors:[["imx-media-thumbnail"]],viewQuery:function(ee,$){if(1&ee&&l.Gf(x,5),2&ee){let ue;l.iGM(ue=l.CRH())&&($.tooltipextended=ue.first)}},inputs:{medium:"medium",size:"size",hasTooltip:"hasTooltip"},decls:6,vars:4,consts:[["target","_blank",3,"href",4,"ngIf","ngIfElse"],["placeholderImage",""],[2,"display","none"],[4,"ngIf"],["target","_blank",3,"href"],["loading","lazy",3,"src","ngClass","mouseenter","mouseleave","error"],["img",""],["loading","lazy",3,"src","ngClass"],[3,"whiteBg"],["tooltipextended",""],[1,"thumbnail__large",3,"src"]],template:function(ee,$){if(1&ee&&(l.YNc(0,b,4,20,"a",0)(1,I,1,7,"ng-template",null,1,l.W1O),l.TgZ(3,"span",2),l._uU(4),l.qZA(),l.YNc(5,H,5,5,"ng-container",3)),2&ee){const ue=l.MAs(2);l.Q6J("ngIf",!$.isPlaceholder)("ngIfElse",ue),l.xp6(4),l.Oqu($.thumbnailLink),l.xp6(),l.Q6J("ngIf",$.hasTooltip)}},dependencies:[t.mk,t.O5,p.j,c.F,o.ZM],styles:["img.thumbnail[_ngcontent-%COMP%]{object-fit:cover}img.thumbnail.placeholder[_ngcontent-%COMP%]{object-fit:unset}img.thumbnail.small[_ngcontent-%COMP%]{width:35px;height:35px}img.thumbnail.medium[_ngcontent-%COMP%]{width:100px;height:100px}@media (max-width: 900px){img.thumbnail.medium[_ngcontent-%COMP%]{width:50px;height:50px}}img.thumbnail.big[_ngcontent-%COMP%]{width:150px;height:150px}@media (max-width: 900px){img.thumbnail.big[_ngcontent-%COMP%]{width:100px;height:100px}}"]})}return Y})()},70623:(gt,X,a)=>{"use strict";a.d(X,{_:()=>q});var e=a(19212),n=a(21473),s=a(27556),l=a(22819),t=(a(21417),a(23097)),p=a(96814),c=a(16007),o=a(71365),x=a(85219),u=a(17919),m=a(55475),b=a(18341);const I=["fileUpload"];function H(j,Y){1&j&&(e.TgZ(0,"div",18)(1,"p"),e._UZ(2,"span",19),e.qZA(),e.TgZ(3,"p")(4,"span",20),e._uU(5),e.ALo(6,"translate"),e.qZA()()()),2&j&&(e.xp6(5),e.Oqu(e.lcZ(6,1,"imxplatform.media.edit.store-your-files")))}function O(j,Y){if(1&j&&e.YNc(0,H,7,3,"div",17),2&j){const K=e.oxw();e.Q6J("ngIf",!K.hasFiles)}}function P(j,Y){if(1&j&&e._UZ(0,"img",29),2&j){const K=e.oxw().$implicit;e.Q6J("src",K.objectURL,e.LSH)}}function G(j,Y){if(1&j){const K=e.EpF();e.TgZ(0,"div",21)(1,"div",22),e.YNc(2,P,1,1,"img",23),e.qZA(),e.TgZ(3,"div",24)(4,"span",25),e._uU(5),e.qZA()(),e.TgZ(6,"div")(7,"span",26),e._uU(8),e.ALo(9,"fileSize"),e.qZA()(),e.TgZ(10,"div",27),e.NdJ("click",function(){const $=e.CHM(K).$implicit,ue=e.oxw();return e.KtG(ue.removeSelectedFile($))}),e._UZ(11,"span",28),e.qZA()()}if(2&j){const K=Y.$implicit,ne=e.oxw();e.xp6(2),e.Q6J("ngIf",ne.isImage(K)),e.xp6(3),e.Oqu(K.name),e.xp6(3),e.Oqu(e.lcZ(9,3,K.size))}}function B(j,Y){1&j&&e._UZ(0,"mat-progress-bar",30)}function ae(j,Y){1&j&&(e.TgZ(0,"div",31)(1,"p",4),e._uU(2),e.ALo(3,"translate"),e.qZA()()),2&j&&(e.xp6(2),e.Oqu(e.lcZ(3,1,"imxplatform.media.edit.error-on-upload")))}const J=j=>({hide:j});let q=(()=>{class j{constructor(K,ne,ee){this.configurationProvider=K,this.mediaFolderService=ne,this.dataAccessService=ee,this.logger=(0,n.jl)("MediaUploadComponent",s.H.name),this.uploadFinished=new e.vpe,this.closed=new e.vpe,this.uploading=!1,this.showError=!1,this.defaultMaxFileSize=5e7,this.acceptedTermOfUse=!1}ngOnInit(){this.path=this.configurationProvider.getStringFromSnapshot(n.x3.PLATFORM_MEDIA_MANAGEMENT_DEFAULT_FOLDER),this.pathSubscription=this.mediaFolderService.onPathSelectionChanges().subscribe(K=>this.path=K),this.maxFileSize=this.configurationProvider.getNumberFromSnapshot(n.x3.PLATFORM_MEDIA_UPLOAD_SIZE_LIMIT),this.maxFileSize||(this.maxFileSize=this.defaultMaxFileSize),this.allowedFileTypes=this.pooledMediumFormHandlerService.determineAllowedFileTypes(this.configurationProvider)}ngOnDestroy(){this.pathSubscription&&(this.pathSubscription.unsubscribe(),this.pathSubscription=null)}onUpload(K){this.logger.info("Start upload of "+K.files.length+" files."+JSON.stringify(K.files)),this.uploading=!0,this.dataAccessService.uploadPooledMedia(K.files,this.path,this.assignmentData&&this.assignmentData.ctxtEntityId>0?{assignedEntityType:this.assignmentData.ctxtEntityType,assignedEntityId:this.assignmentData.ctxtEntityId}:void 0).subscribe(ne=>{const ee=ne.map($=>$.id);this.logger.info("Successfully uploaded "+ee.length+" files. Ids "+ee),this.uploadFinished.emit(ne),this.uploading=!1},ne=>{this.logger.error(ne.message),this.uploading=!1,this.showError=!0,this.fileUpload.clear()})}get hasFiles(){return!!this.fileUpload&&this.fileUpload.hasFiles()}chooseFile(){this.fileUpload&&this.fileUpload.choose()}removeSelectedFile(K){const ne=this.fileUpload.files.indexOf(K);this.fileUpload.remove(new Event(""),ne)}upload(){this.showError=!1,this.fileUpload&&this.fileUpload.upload()}isImage(K){return this.fileUpload.isImage(K)}static#e=this.\u0275fac=function(ne){return new(ne||j)(e.Y36(n.Pc),e.Y36(t.d),e.Y36(l.nq))};static#t=this.\u0275cmp=e.Xpm({type:j,selectors:[["imx-media-upload"]],viewQuery:function(ne,ee){if(1&ne&&e.Gf(I,5),2&ne){let $;e.iGM($=e.CRH())&&(ee.fileUpload=$.first)}},inputs:{assignmentData:"assignmentData",pooledMediumFormHandlerService:"pooledMediumFormHandlerService"},outputs:{uploadFinished:"uploadFinished",closed:"closed"},decls:39,vars:38,consts:[[1,"media-choose-button"],[1,"imx-button","prio2","with-icon",3,"click"],[1,"icon","icon-plusBold"],[1,"current-folder"],[1,"txt-md-sm"],[1,"media-upload-information","txt-md-sm"],[1,"txt-grey"],["styleClass","imx-file-upload","name","uploadFiles[]","customUpload","true","multiple","multiple",3,"ngClass","maxFileSize","accept","invalidFileTypeMessageSummary","invalidFileTypeMessageDetail","uploadHandler"],["fileUpload",""],["pTemplate","content"],["pTemplate","file"],[3,"ngIf"],["class","media-upload-error",4,"ngIf"],[3,"pooledMediumFormHandlerService","termsOfUseChanged"],[1,"imx-button-bar","right"],[1,"imx-button","cta",3,"disabled","click"],["translate","",1,"imx-button","default",3,"click"],["class","drop-zone-description",4,"ngIf"],[1,"drop-zone-description"],[1,"icon","icon-up-square"],[1,"txt-md-sm","txt-grey"],[1,"drop-zone-preview-row"],[1,"drop-zone-preview-image"],["width","100px",3,"src",4,"ngIf"],[1,"drop-zone-preview-name"],[1,"txt-md"],[1,"txt-grey","txt-md-sm"],[3,"click"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable"],["width","100px",3,"src"],["mode","buffer"],[1,"media-upload-error"]],template:function(ne,ee){1&ne&&(e.TgZ(0,"h3"),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div",0)(4,"button",1),e.NdJ("click",function(){return ee.chooseFile()}),e._UZ(5,"i",2),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"div",3)(9,"p",4),e._uU(10),e.ALo(11,"translate"),e.qZA()()(),e.TgZ(12,"div",5)(13,"p"),e._uU(14),e.ALo(15,"translate"),e.TgZ(16,"span",6),e._uU(17),e.qZA()(),e.TgZ(18,"p"),e._uU(19),e.ALo(20,"translate"),e.TgZ(21,"span",6),e._uU(22),e.ALo(23,"fileSize"),e.qZA()()(),e.TgZ(24,"p-fileUpload",7,8),e.NdJ("uploadHandler",function(ue){return ee.onUpload(ue)}),e.ALo(26,"translate"),e.ALo(27,"translate"),e.YNc(28,O,1,1,"ng-template",9)(29,G,12,5,"ng-template",10),e.qZA(),e.YNc(30,B,1,0,"ng-template",11)(31,ae,4,3,"div",12),e.TgZ(32,"imx-media-terms-of-use",13),e.NdJ("termsOfUseChanged",function(ue){return ee.acceptedTermOfUse=ue}),e.qZA(),e.TgZ(33,"div",14)(34,"button",15),e.NdJ("click",function(){return ee.upload()}),e._uU(35),e.ALo(36,"translate"),e.qZA(),e.TgZ(37,"button",16),e.NdJ("click",function(){return ee.closed.emit(!1)}),e._uU(38,"imxplatform.dialog.common-close "),e.qZA()()),2&ne&&(e.xp6(),e.Oqu(e.lcZ(2,18,"imxplatform.media.edit.data-upload")),e.xp6(5),e.hij("",e.lcZ(7,20,"imxplatform.media.edit.choose-file")," "),e.xp6(4),e.AsE("",e.lcZ(11,22,"imxplatform.media.edit.chosen-folder"),": ",ee.path,""),e.xp6(4),e.hij("",e.lcZ(15,24,"imxplatform.media.edit.allowed-file-types"),": "),e.xp6(3),e.Oqu(ee.allowedFileTypes),e.xp6(2),e.hij("",e.lcZ(20,26,"imxplatform.media.edit.max-file-size"),": "),e.xp6(3),e.Oqu(e.lcZ(23,28,ee.maxFileSize)),e.xp6(2),e.Q6J("ngClass",e.VKq(36,J,ee.uploading))("maxFileSize",ee.maxFileSize)("accept",ee.allowedFileTypes)("invalidFileTypeMessageSummary","{0}: "+e.lcZ(26,30,"imxplatform.media.edit.allowed-file-types-error"))("invalidFileTypeMessageDetail",e.lcZ(27,32,"imxplatform.media.edit.allowed-file-types-error-details")+" {0}"),e.xp6(6),e.Q6J("ngIf",ee.uploading),e.xp6(),e.Q6J("ngIf",ee.showError),e.xp6(),e.Q6J("pooledMediumFormHandlerService",ee.pooledMediumFormHandlerService),e.xp6(2),e.Q6J("disabled",!ee.hasFiles||!ee.acceptedTermOfUse||ee.uploading),e.xp6(),e.Oqu(e.lcZ(36,34,"imxplatform.media.edit.upload")))},dependencies:[p.mk,p.O5,c.pW,o.Pi,x.jx,u.p,m.k,o.X$,b.p],styles:["h3[_ngcontent-%COMP%]{margin-bottom:10px}.media-upload-information[_ngcontent-%COMP%]{margin-bottom:10px;word-break:break-word}.media-upload-information[_ngcontent-%COMP%]   p[_ngcontent-%COMP%] ~ p[_ngcontent-%COMP%]{margin-top:5px}.media-upload-error[_ngcontent-%COMP%]{background-color:#96172e;color:#fff;margin:15px 0;padding:10px;text-align:center}.media-choose-button[_ngcontent-%COMP%]{margin-bottom:10px;display:flex}.media-choose-button[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{margin-right:10px}.media-choose-button[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:14px;top:calc(50% - 6px)}.media-choose-button[_ngcontent-%COMP%]   .inputfile[_ngcontent-%COMP%]{width:.1px;height:.1px;opacity:0;overflow:hidden;position:absolute;z-index:-1}  p-fileupload.hide{visibility:hidden;display:none}  p-fileupload .imx-file-upload .p-fileupload-buttonbar{display:none}  p-fileupload .imx-file-upload .p-fileupload-content{min-height:150px;max-width:unset;border:3px dashed #ced4e0;background:#fff;padding:1em}  p-fileupload .imx-file-upload .p-fileupload-content.p-fileupload-highlight{border:3px dashed #0a2663}  p-fileupload .imx-file-upload .p-fileupload-content .p-fileupload-files{width:100%}  p-fileupload .imx-file-upload .p-fileupload-content .drop-zone-description{text-align:center;margin:20px 0}  p-fileupload .imx-file-upload .p-fileupload-content .drop-zone-description .icon{font-size:32px;color:#0a2663}  p-fileupload .imx-file-upload .p-fileupload-content .drop-zone-preview-row{display:flex;flex-direction:row;margin-bottom:10px}  p-fileupload .imx-file-upload .p-fileupload-content .drop-zone-preview-row>div{margin-right:10px;display:flex;flex-direction:row;align-items:center}  p-fileupload .imx-file-upload .p-fileupload-content .drop-zone-preview-row .drop-zone-preview-name{flex:auto}  p-fileupload .imx-file-upload .p-fileupload-content .drop-zone-preview-row .drop-zone-preview-image>img{max-width:100px}  p-fileupload p-messages{font-size:12px}  p-fileupload p-messages .p-message-error{background-color:#96172e;color:#fff}  p-fileupload p-messages .p-message-error .p-message-wrapper{padding:15px 15px 15px 0;flex-wrap:wrap}  p-fileupload p-messages .p-message-error .p-message-wrapper .p-message-icon{font-size:24px}  p-fileupload p-messages .p-message-error .p-message-wrapper .p-message-summary{font-weight:700;text-align:center;flex-grow:1}  p-fileupload p-messages .p-message-error .p-message-wrapper .p-message-detail{padding-left:15px;text-align:center}  p-fileupload p-messages .p-message-error .p-message-wrapper .p-message-close{color:#fff;position:absolute;top:18px;right:18px}"]})}return j})()},49880:(gt,X,a)=>{"use strict";a.d(X,{G:()=>u});var e=a(19212),s=(a(21417),a(72599)),l=a(96814),i=a(22194),t=a(71365);function p(m,b){1&m&&e._UZ(0,"span",9)}function c(m,b){1&m&&e._UZ(0,"div",10)}const o=m=>({active:m});function x(m,b){if(1&m){const I=e.EpF();e.ynx(0),e.TgZ(1,"div",5)(2,"a",6),e.NdJ("click",function(){const P=e.CHM(I).index,G=e.oxw();return e.KtG(G.stepActivate.emit(P))}),e._uU(3),e.ALo(4,"translate"),e.YNc(5,p,1,0,"span",7),e.qZA()(),e.YNc(6,c,1,0,"div",8),e.BQk()}if(2&m){const I=b.$implicit,H=b.index,O=e.oxw();e.xp6(),e.Q6J("ngClass",e.VKq(6,o,H===O.activeStepIndex)),e.xp6(2),e.Oqu(e.lcZ(4,4,I)),e.xp6(2),e.Q6J("ngIf",H===O.activeStepIndex&&O.isStepDirty(H)),e.xp6(),e.Q6J("ngIf",H+1<O.steps.length)}}let u=(()=>{class m{constructor(){this.stepActivate=new e.vpe,this.closed=new e.vpe}isStepDirty(I){return!(I!==s.S.STEP_EDIT_MEDIA||!this.formHandler.formGroup.dirty)||!(I!==s.S.STEP_EDIT_ASSIGNMENT||!this.assignmentsFormGroup.dirty)}static#e=this.\u0275fac=function(H){return new(H||m)};static#t=this.\u0275cmp=e.Xpm({type:m,selectors:[["imx-media-edit-step-indicator"]],inputs:{steps:"steps",activeStepIndex:"activeStepIndex",assignmentsFormGroup:"assignmentsFormGroup",formHandler:"formHandler"},outputs:{stepActivate:"stepActivate",closed:"closed"},decls:5,vars:1,consts:[[1,"media-edit-step-indicator"],[1,"wrapper"],[4,"ngFor","ngForOf"],[1,"close-button",3,"click"],[1,"icon-cross"],[1,"bubble",3,"ngClass"],[3,"click"],["class","icon icon-asterisk",4,"ngIf"],["class","line",4,"ngIf"],[1,"icon","icon-asterisk"],[1,"line"]],template:function(H,O){1&H&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,x,7,8,"ng-container",2),e.qZA(),e.TgZ(3,"div",3),e.NdJ("click",function(){return O.closed.emit(!0)}),e._UZ(4,"span",4),e.qZA()()),2&H&&(e.xp6(2),e.Q6J("ngForOf",O.steps))},dependencies:[l.mk,l.sg,l.O5,i.F,t.X$],styles:[".media-edit-step-indicator[_ngcontent-%COMP%]{position:relative;font-size:14px;padding:5px 10px 45px}.media-edit-step-indicator[_ngcontent-%COMP%]   .wrapper[_ngcontent-%COMP%]{width:100%;display:flex;padding:0 75px}@media (max-width: 1400px){.media-edit-step-indicator[_ngcontent-%COMP%]   .wrapper[_ngcontent-%COMP%]{padding:0 40px}}.media-edit-step-indicator[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]{flex-grow:1;transform:translateY(10px);border-top:1px solid #ced4e0}.media-edit-step-indicator[_ngcontent-%COMP%]   .bubble[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:50%;background-color:#ced4e0}.media-edit-step-indicator[_ngcontent-%COMP%]   .bubble.active[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-weight:700}.media-edit-step-indicator[_ngcontent-%COMP%]   .bubble[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:block;width:150px;transform:translate(-65px,25px);text-align:center}.media-edit-step-indicator[_ngcontent-%COMP%]   .icon-asterisk[_ngcontent-%COMP%]{color:#00faa5}.media-edit-step-indicator[_ngcontent-%COMP%]   .close-button[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:30px;height:30px;cursor:pointer;font-size:18px;text-align:center;padding-top:6px}"]})}return m})()},72599:(gt,X,a)=>{"use strict";a.d(X,{S:()=>Rn,p:()=>Xt});var e=a(39505),n=a(19212),s=a(56223),l=a(79309),i=a(23291),t=a(49193),p=a(13236),c=a(15033),o=a(21473),x=a(22819),u=a(22937),m=a(67638),b=a(38996),I=a(21317),H=a(21417),O=a(15767),P=a(59143),G=a(22941),B=a(17700),ae=a(23097),J=a(17591);function q(Je,dt){if(1&Je){const Ie=n.EpF();n.TgZ(0,"imx-pooled-medium-filter",12),n.NdJ("orderChanged",function(ct){n.CHM(Ie);const tn=n.oxw();return n.KtG(tn.sort(ct))})("applyFilter",function(ct){n.CHM(Ie);const tn=n.oxw();return tn.closeEditPanel(),n.KtG(tn.search(ct))})("resetFilter",function(){n.CHM(Ie);const ct=n.oxw();return n.KtG(ct.reset())}),n.qZA()}if(2&Je){const Ie=n.oxw();n.Q6J("formHandler",Ie.filterFormHandler)("record",Ie.filter)("orderFields",Ie.availableOrderFields)("orderField",Ie.orderField)("orderDirection",Ie.orderDirection)("isFileBrowserMode",Ie.isFileBrowserMode)("isSmallMediaMgmnt",!0)("ctxtEntityType",Ie.data.ctxtEntityType)("ctxEntityId",Ie.data.ctxtEntityId)("addressbaseIdOfOffer",Ie.data.addressbaseIdOfOffer)}}const j=Je=>({count:Je});function Y(Je,dt){if(1&Je&&(n.TgZ(0,"h1"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&Je){const Ie=n.oxw(2);n.xp6(),n.hij(" ",n.xi3(2,1,"imxplatform.media.list.header",n.VKq(4,j,null==Ie.currentResult?null:Ie.currentResult.totalNumberOfResults))," ")}}function K(Je,dt){if(1&Je){const Ie=n.EpF();n.TgZ(0,"div",19)(1,"mat-slide-toggle",20),n.NdJ("dragChange",function(){n.CHM(Ie);const ct=n.oxw(2);return ct.switchMode(),n.KtG(ct.closeEditPanel())})("toggleChange",function(){n.CHM(Ie);const ct=n.oxw(2);return ct.switchMode(),n.KtG(ct.closeEditPanel())}),n._uU(2),n.ALo(3,"translate"),n.qZA()()}if(2&Je){const Ie=n.oxw(2);n.xp6(),n.Q6J("checked",Ie.isFileBrowserMode),n.xp6(),n.hij(" ",n.lcZ(3,2,"imxplatform.media.list.file-browser")," ")}}function ne(Je,dt){if(1&Je){const Ie=n.EpF();n.TgZ(0,"div",13)(1,"imx-grid")(2,"imx-grid-element",14)(3,"div",15)(4,"a",16),n.NdJ("click",function(){n.CHM(Ie);const ct=n.oxw();return n.KtG(ct.reloadData())}),n._UZ(5,"span",17),n.qZA(),n.YNc(6,Y,3,6,"h1",7)(7,K,4,4,"div",18),n.qZA()(),n._UZ(8,"imx-grid-element",14),n.qZA()()}if(2&Je){const Ie=n.oxw();n.xp6(6),n.Q6J("ngIf",null==Ie.currentResult?null:Ie.currentResult.totalNumberOfResults),n.xp6(),n.Q6J("ngIf",!Ie.isFileBrowserHidden)}}function ee(Je,dt){if(1&Je){const Ie=n.EpF();n.TgZ(0,"div",21)(1,"imx-media-upload",22),n.NdJ("uploadFinished",function(ct){n.CHM(Ie);const tn=n.oxw();return n.KtG(tn.creationFinished(ct))})("closed",function(){n.CHM(Ie);const ct=n.oxw();return n.KtG(ct.currentMode=ct.MEDIA_POOL)}),n.qZA()()}if(2&Je){const Ie=n.oxw();n.xp6(),n.Q6J("pooledMediumFormHandlerService",Ie.formHandler)("assignmentData",Ie.data)}}function $(Je,dt){if(1&Je){const Ie=n.EpF();n.TgZ(0,"div",21)(1,"imx-media-link",23),n.NdJ("save",function(ct){n.CHM(Ie);const tn=n.oxw();return n.KtG(tn.saveMedia(ct))})("closed",function(){n.CHM(Ie);const ct=n.oxw();return n.KtG(ct.currentMode=ct.MEDIA_POOL)}),n.qZA()()}if(2&Je){const Ie=n.oxw();n.xp6(),n.Q6J("formHandler",Ie.formHandler)("assignmentData",Ie.data)}}function ue(Je,dt){1&Je&&(n.TgZ(0,"div"),n._UZ(1,"imx-media-folder-navigation"),n.qZA())}function ge(Je,dt){1&Je&&n._UZ(0,"mat-progress-bar",31)}function Ke(Je,dt){1&Je&&(n.ynx(0),n.TgZ(1,"p",34),n._uU(2,"imxplatform.media.list.no-records"),n.qZA(),n.BQk())}function at(Je,dt){if(1&Je&&(n.ynx(0),n.TgZ(1,"span"),n._uU(2),n.ALo(3,"readI18n"),n.qZA(),n.BQk()),2&Je){const Ie=n.oxw(),ot=Ie.linkclass,ct=Ie.$implicit;n.xp6(),n.Tol(ot),n.xp6(),n.Oqu(n.lcZ(3,4,null==ct?null:ct.title))}}function Le(Je,dt){if(1&Je&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&Je){const Ie=n.oxw().linkclass;n.Tol(Ie),n.xp6(),n.hij(" [",n.lcZ(2,4,"imxplatform.common-entity.edit.panels.media.no-title"),"]")}}function R(Je,dt){if(1&Je&&n.YNc(0,at,4,6,"ng-container",30)(1,Le,3,6,"ng-template",null,35,n.W1O),2&Je){const Ie=dt.$implicit,ot=n.MAs(2),ct=n.oxw(3);n.Q6J("ngIf",ct.isDefinedI18n(null==Ie?null:Ie.title))("ngIfElse",ot)}}function Te(Je,dt){if(1&Je){const Ie=n.EpF();n.TgZ(0,"div",46)(1,"mat-checkbox",47),n.NdJ("change",function(ct){n.CHM(Ie);const tn=n.oxw(5);return n.KtG(tn.onSelectionChanged(ct))}),n.qZA()()}if(2&Je){const Ie=n.oxw().$implicit,ot=n.oxw(4);n.xp6(),n.Q6J("value",Ie.id)("checked",ot.isItemSelected(Ie.id))}}function me(Je,dt){1&Je&&n.GkF(0)}const Se=(Je,dt)=>({selected:Je,assigned:dt}),Ue=Je=>({$implicit:Je});function We(Je,dt){if(1&Je){const Ie=n.EpF();n.TgZ(0,"div",38)(1,"div",39),n._UZ(2,"imx-media-provider-icon",40),n.qZA(),n.YNc(3,Te,2,2,"div",41),n.ALo(4,"async"),n.TgZ(5,"a",42),n.NdJ("click",function(){const tn=n.CHM(Ie).$implicit,yi=n.oxw(4);return n.KtG(yi.selectAndOpenItem(tn))}),n._UZ(6,"imx-media-thumbnail",43),n.qZA(),n.TgZ(7,"div",44),n.YNc(8,me,1,0,"ng-container",45),n.qZA()()}if(2&Je){const Ie=dt.$implicit;n.oxw(2);const ot=n.MAs(3),ct=n.oxw(2);n.Q6J("ngClass",n.WLB(8,Se,ct.isItemSelected(Ie.id),ct.isAlreadyAssigned(Ie))),n.xp6(2),n.Q6J("pooledMedium",Ie),n.xp6(),n.Q6J("ngIf",n.lcZ(4,6,ct.isBatchSelectionAllowed(Ie))),n.xp6(3),n.Q6J("medium",Ie),n.xp6(2),n.Q6J("ngTemplateOutlet",ot)("ngTemplateOutletContext",n.VKq(11,Ue,Ie))}}function et(Je,dt){if(1&Je&&(n.TgZ(0,"div",36),n.YNc(1,We,9,13,"div",37),n.qZA()),2&Je){const Ie=n.oxw().ngIf;n.xp6(),n.Q6J("ngForOf",Ie.items)}}function Et(Je,dt){if(1&Je&&(n.TgZ(0,"div"),n.YNc(1,Ke,3,0,"ng-container",7)(2,R,3,2,"ng-template",null,32,n.W1O)(4,et,2,1,"div",33),n.qZA()),2&Je){const Ie=dt.ngIf;n.xp6(),n.Q6J("ngIf",0==(null==Ie.items?null:Ie.items.length)),n.xp6(3),n.Q6J("ngIf",(null==Ie.items?null:Ie.items.length)>0)}}function lt(Je,dt){if(1&Je){const Ie=n.EpF();n.TgZ(0,"div")(1,"div",24)(2,"button",25),n.NdJ("click",function(){n.CHM(Ie);const ct=n.oxw();return ct.closeEditPanel(),n.KtG(ct.currentMode=ct.UPLOAD)}),n._UZ(3,"i",26),n._uU(4,"imxplatform.media.list.upload-media "),n.qZA(),n.TgZ(5,"button",25),n.NdJ("click",function(){n.CHM(Ie);const ct=n.oxw();return ct.currentMode=ct.LINK,n.KtG(ct.closeEditPanel())}),n._UZ(6,"i",27),n._uU(7,"imxplatform.media.list.add-media "),n.qZA()(),n.YNc(8,ue,2,0,"div",7),n.TgZ(9,"div",28),n.YNc(10,ge,1,0,"ng-template",null,29,n.W1O)(12,Et,5,2,"div",30),n.ALo(13,"async"),n.qZA()()}if(2&Je){const Ie=n.MAs(11),ot=n.oxw();n.xp6(2),n.Q6J("disabled",!ot.hasPooledMediumCreatePermission||!ot.hasAssignmentEditPermission),n.xp6(3),n.Q6J("disabled",!ot.hasPooledMediumCreatePermission||!ot.hasAssignmentEditPermission),n.xp6(3),n.Q6J("ngIf",ot.isFileBrowserMode),n.xp6(4),n.Q6J("ngIf",n.lcZ(13,5,ot.results))("ngIfElse",Ie)}}function Vt(Je,dt){if(1&Je){const Ie=n.EpF();n.TgZ(0,"imx-media-edit-form",54),n.NdJ("save",function(ct){n.CHM(Ie);const tn=n.oxw(3);return n.KtG(tn.saveMedia(ct))})("continued",function(){n.CHM(Ie);const ct=n.oxw(3);return n.KtG(ct.gotoStep(ct.STEP_EDIT_ASSIGNMENT))})("closed",function(){n.CHM(Ie);const ct=n.oxw(3);return ct.freshlyUploaded=!1,n.KtG(ct.closeSidebar.emit())})("deleted",function(){n.CHM(Ie);const ct=n.oxw(3);return n.KtG(ct.deleteSelectedMedia())}),n.qZA()}if(2&Je){const Ie=n.oxw(3);n.Q6J("disableFocusPointEdit",!1)("assignmentData",Ie.data)("formHandler",Ie.formHandler)("record",Ie.openedMedium)("defaultBtnBar",!1)("freshlyUploaded",Ie.freshlyUploaded)}}function r(Je,dt){if(1&Je){const Ie=n.EpF();n.TgZ(0,"imx-media-batch-edit-form",55),n.NdJ("allSaved",function(){n.CHM(Ie);const ct=n.oxw(3);return n.KtG(ct.afterBatchSave())})("continued",function(){n.CHM(Ie);const ct=n.oxw(3);return n.KtG(ct.gotoStep(ct.STEP_EDIT_ASSIGNMENT))})("closed",function(){n.CHM(Ie);const ct=n.oxw(3);return ct.freshlyUploaded=!1,n.KtG(ct.closeSidebar.emit())})("deleted",function(){n.CHM(Ie);const ct=n.oxw(3);return n.KtG(ct.deleteSelectedMedia())}),n.qZA()}if(2&Je){const Ie=n.oxw(3);n.Q6J("assignmentData",Ie.data)("formHandler",Ie.formHandler)("record",Ie.emptyMediaForBatchEdit)("selectedIds",Ie.selectedIds)("freshlyUploaded",Ie.freshlyUploaded)}}function Z(Je,dt){if(1&Je){const Ie=n.EpF();n.TgZ(0,"imx-media-assignment",56),n.NdJ("saved",function(){n.CHM(Ie);const ct=n.oxw(3);return n.KtG(ct.determineAlreadyAssignedMedia())})("back",function(){n.CHM(Ie);const ct=n.oxw(3);return n.KtG(ct.gotoStep(ct.STEP_EDIT_MEDIA))})("closed",function(){n.CHM(Ie);const ct=n.oxw(3);return ct.closeEditPanel(),n.KtG(ct.closeSidebar.emit())}),n.qZA()}if(2&Je){const Ie=n.oxw(3);n.Q6J("holderFormHandler",Ie.data.formHandler)("mediumFormHandler",Ie.formHandler)("pooledMedium",1===Ie.selectedIds.size?Ie.openedMedium:Ie.emptyMediaForBatchEdit)("batchMediaIds",Ie.selectedIds)("freshlyUploaded",Ie.freshlyUploaded)("mediaFormGroup",Ie.data.mediaFormGroup)("assignmentsFormGroup",Ie.assignmentsFormGroup)("hasAssignmentEditPermission",Ie.hasAssignmentEditPermission)("mediaField",Ie.data.mediaField)("imageTypes",Ie.data.imageTypes)("targetAssignmentId",Ie.data.targetAssignmentId)("dataObjectMediumInitializerService",Ie.data.dataObjectMediumInitializerService)}}const Pt=()=>({width:"100%",height:"100%"}),Oe=()=>["imxplatform.media.small-mgmt.step-attributes","imxplatform.media.small-mgmt.step-assignments"];function ye(Je,dt){if(1&Je){const Ie=n.EpF();n.TgZ(0,"p-scrollPanel")(1,"imx-media-edit-step-indicator",50),n.NdJ("stepActivate",function(ct){n.CHM(Ie);const tn=n.oxw(2);return n.KtG(tn.gotoStep(ct))})("closed",function(){n.CHM(Ie);const ct=n.oxw(2);return n.KtG(ct.closeEditPanel())}),n.qZA(),n.YNc(2,Vt,1,6,"imx-media-edit-form",51)(3,r,1,5,"imx-media-batch-edit-form",52)(4,Z,1,12,"imx-media-assignment",53),n.qZA()}if(2&Je){const Ie=n.oxw(2);n.Akn(n.DdM(9,Pt)),n.xp6(),n.Q6J("steps",n.DdM(10,Oe))("activeStepIndex",Ie.activeStep)("formHandler",Ie.formHandler)("assignmentsFormGroup",Ie.assignmentsFormGroup),n.xp6(),n.Q6J("ngIf",Ie.activeStep==Ie.STEP_EDIT_MEDIA&&1===Ie.selectedIds.size),n.xp6(),n.Q6J("ngIf",Ie.activeStep==Ie.STEP_EDIT_MEDIA&&Ie.selectedIds.size>1),n.xp6(),n.Q6J("ngIf",Ie.activeStep==Ie.STEP_EDIT_ASSIGNMENT)}}function ve(Je,dt){if(1&Je&&(n.TgZ(0,"div",48),n.YNc(1,ye,5,11,"p-scrollPanel",49),n.qZA()),2&Je){const Ie=n.oxw();n.xp6(),n.Q6J("ngIf",Ie.openedMedium)}}const ft=()=>[5,10,25,50,100];function Dt(Je,dt){if(1&Je){const Ie=n.EpF();n.TgZ(0,"imx-grid")(1,"imx-grid-element",57)(2,"div",58)(3,"imx-paginator",59),n.NdJ("page",function(ct){n.CHM(Ie);const tn=n.oxw();return n.KtG(tn.onPageChanged(ct))}),n.qZA()()(),n.TgZ(4,"imx-grid-element",60)(5,"imx-paginator-page-size",61),n.NdJ("page",function(ct){n.CHM(Ie);const tn=n.oxw();return n.KtG(tn.onPageChanged(ct))}),n.qZA()()()}if(2&Je){const Ie=n.oxw();n.xp6(3),n.Q6J("length",null==Ie.currentResult?null:Ie.currentResult.totalNumberOfResults)("pageSize",Ie.currentPageSize)("pageIndex",null==Ie.currentResult?null:Ie.currentResult.page)("pageLinks",7),n.xp6(2),n.Q6J("sizes",n.DdM(7,ft))("pageIndex",null==Ie.currentResult?null:Ie.currentResult.page)("pageSize",Ie.currentPageSize)}}var Rn=function(Je){return Je[Je.STEP_EDIT_MEDIA=0]="STEP_EDIT_MEDIA",Je[Je.STEP_EDIT_ASSIGNMENT=1]="STEP_EDIT_ASSIGNMENT",Je}(Rn||{}),ti=function(Je){return Je[Je.UPLOAD=0]="UPLOAD",Je[Je.LINK=1]="LINK",Je[Je.MEDIA_POOL=2]="MEDIA_POOL",Je}(ti||{});let Xt=(()=>{class Je extends p.u{constructor(Ie,ot,ct,tn,yi,ni,sn,bn,vt,nn,rn,ii,Oo,no,Li,ji){super(Ie,ot,ct,tn,yi,ni,sn,vt,nn,Oo,rn,ii,bn,no,Li),this.dataObjectMediumAssignService=ji,this.UPLOAD=ti.UPLOAD,this.LINK=ti.LINK,this.MEDIA_POOL=ti.MEDIA_POOL,this.STEP_EDIT_MEDIA=Rn.STEP_EDIT_MEDIA,this.STEP_EDIT_ASSIGNMENT=Rn.STEP_EDIT_ASSIGNMENT,this.closeSidebar=new n.vpe,this.currentMode=ti.MEDIA_POOL,this.assignedPooledMediaIds=[],this.assignmentsFormGroup=new s.nJ({}),this.hasAssignmentEditPermission=!0,this.activeStep=0,this.emptyMediaForBatchEdit={id:-99,client:this.runtimeContextService.getLoginClient(),mediaType:l.MR},this.freshlyUploaded=!1,this.searchHistoryEnabled=!1,this.currentPageSize=25}ngOnInit(){super.ngOnInit(),this.isFileBrowserHidden||(this.isFileBrowserMode=!1),this.data.initUpload&&(this.currentMode=ti.UPLOAD),this.recordsOnceLoaded=!1,this.data.targetPooledMediumId?this.navigateSamePage({id:this.data.targetPooledMediumId+"",ctxtEntityType:this.data.ctxtEntityType,ctxtEntityId:this.data.ctxtEntityId,ownerEntityType:this.data.ctxtEntityType,ownerEntityId:this.data.ctxtEntityId},"media"):this.data.ctxtEntityType&&this.navigateSamePage({ctxtEntityType:this.data.ctxtEntityType,ctxtEntityId:this.data.ctxtEntityId,ownerEntityType:this.data.ctxtEntityType,ownerEntityId:this.data.ctxtEntityId},"media"),this.data.targetPooledMediumId&&(this.jumpToAssignedMedia({id:this.data.targetPooledMediumId,identification:""}),this.data.targetAssignmentId&&(this.activeStep=Rn.STEP_EDIT_ASSIGNMENT)),(0,i.aj)([this.data.formHandler.hasEditPermission("media"),this.data.formHandler.hasSavePermission()]).subscribe(([Ie,ot])=>{this.hasAssignmentEditPermission=Ie&&ot})}navigateSamePage(Ie,ot){this.router.navigate([],{queryParams:Ie,fragment:"media"})}calcFileBrowserHidden(){return this.configurationProvider.getBooleanFromSnapshot(o.x3.PLATFORM_MEDIA_MANAGEMENT_FILE_BROWSER_HIDDEN)||this.configurationProvider.getBooleanFromSnapshot(o.x3.PLATFORM_MEDIA_MANAGEMENT_FILE_BROWSER_HIDDEN_SMALL_MM,!0)}beforeLoadRecords(Ie){super.beforeLoadRecords(Ie),this.isFileBrowserMode&&!Ie.path&&!this.isFileBrowserHidden&&(Ie.path="/")}afterContentLoaded(){this.determineAlreadyAssignedMedia()}resetSelection(){}onSelectionChanged(Ie){super.onSelectionChanged(Ie),1===this.selectedIds.size?this.editMedia(this.currentResult.items.find(ot=>ot.id===this.selectedIds.keys().next().value)):0===this.selectedIds.size&&(this.hideSidePanel(),this.activeStep=0)}isAlreadyAssigned(Ie){return this.assignedPooledMediaIds.some(ot=>ot===Ie.id)}gotoStep(Ie){Ie===Rn.STEP_EDIT_ASSIGNMENT&&this.formHandler.formGroup.dirty||Ie===Rn.STEP_EDIT_MEDIA&&this.assignmentsFormGroup.dirty?this.handleCloseAction(void 0,()=>{this.activeStep=Ie,Ie===Rn.STEP_EDIT_ASSIGNMENT?(this.formHandler.baseObject=this.openedMedium,this.formHandler.formGroup.markAsPristine()):(this.assignmentsFormGroup.removeControl("shadowmedia"),this.assignmentsFormGroup.markAsPristine())}):this.activeStep=Ie}editAreaIsDirty(){return this.formHandler.formGroup.dirty||this.assignmentsFormGroup.dirty}isBatchSelectionAllowed(Ie){return(0,t.of)(!0)}creationFinished(Ie){super.creationFinished(Ie),this.selectedIds.clear(),Ie.forEach(ot=>{this.selectedIds.add(ot.id)}),this.freshlyUploaded=!0,this.assignFreshMedia(),this.currentMode=this.MEDIA_POOL,this.activeStep=Rn.STEP_EDIT_MEDIA,this.editMedia(Ie[0])}afterBatchSave(){this.selectedIds.forEach(Ie=>{this.platformDataAccessService.getPooledMediaById(Ie).subscribe(ot=>{this.swapUpdatedMediaInMediaFormGroup(ot)})})}afterPooledMediaSaved(Ie){this.swapUpdatedMediaInMediaFormGroup(Ie)}swapUpdatedMediaInMediaFormGroup(Ie){this.data.mediaFormGroup.controls.forEach(ot=>{if(ot.value.rowEntity.pooledMedium.id===Ie.id){const tn=ot.get(b.Qy).value;tn.pooledMedium=Ie,ot.get(b.Qy).patchValue(tn),ot.get("title").patchValue(Ie.title)}})}closeEditPanel(){this.formHandler.formGroup.dirty||this.assignmentsFormGroup.dirty?this.handleCloseAction(void 0,()=>{this.freshlyUploaded=!1,this.hideSidePanel(),this.formHandler.formGroup.markAsPristine(),this.selectedIds.clear()}):(this.freshlyUploaded=!1,this.hideSidePanel(),this.formHandler.formGroup.markAsPristine(),this.selectedIds.clear())}deleteSelectedMedia(){const Ie=this.actionProvider.findActionForKey("pooledmedium-action-delete");1===this.selectedIds.size?this.executeDeleteAction(Ie.execute(this.openedMedium)):this.selectedIds.size>1&&this.executeDeleteAction(Ie.executeBatch(Array.from(this.selectedIds)))}executeDeleteAction(Ie){Ie.subscribe(ot=>{ot&&(this.selectedIds.forEach(ct=>{const yi=this.data.formHandler.getFormArrayRowEntities("media").findIndex(ni=>ni.pooledMedium.id===ct);yi>=0&&this.data.formHandler.removeLineFromCollection("media",yi,this.data.formHandler.formGroup)}),this.hideSidePanel(),this.resetSelection(),this.recordsOnceLoaded=!1,this.reloadData())})}jumpToAssignedMedia(Ie){this.selectedIds.clear(),this.selectedIds.add(Ie.id),Ie.insideSmallMediaMgmt=!0,this.openPanelForMedium(Ie)}determineAlreadyAssignedMedia(){this.assignedPooledMediaIds=[];const Ie=this.data.formHandler.getFormArrayRowEntities("media");this.currentResult.items.forEach(ot=>{Ie.some(ct=>ct.pooledMedium.id===ot.id)&&this.assignedPooledMediaIds.push(ot.id)})}assignFreshMedia(){this.hasAssignmentEditPermission?this.dataObjectMediumAssignService.assignNewMediaToCurrentEntity(Array.from(this.selectedIds),this.data.formHandler,this.data.mediaFormGroup,this.data.mediaField,this.data.dataObjectMediumInitializerService,this.data.imageTypes):this.userMessageService.showInfo("imxplatform.media.assignment.assignment-no-changes",void 0,1e4)}static#e=this.\u0275fac=function(ot){return new(ot||Je)(n.Y36(u.U),n.Y36(G.F0),n.Y36(G.gz),n.Y36(P.Y),n.Y36(O.G),n.Y36(B.uw),n.Y36(x.nq),n.Y36(ae.d),n.Y36(J.Q),n.Y36(c.a),n.Y36(o.Xh),n.Y36(o.Ze),n.Y36(I.Ke),n.Y36(H.vB),n.Y36(o.Pc),n.Y36(m.oO))};static#t=this.\u0275cmp=n.Xpm({type:Je,selectors:[["imx-small-media-mgmt"]],viewQuery:function(ot,ct){if(1&ot&&n.Gf(e.PQ,5),2&ot){let tn;n.iGM(tn=n.CRH())&&(ct.scrollable=tn.first)}},inputs:{data:"data"},outputs:{closeSidebar:"closeSidebar"},features:[n.qOj],decls:15,vars:7,consts:[[1,"media-search-assign","list"],[3,"formHandler","record","orderFields","orderField","orderDirection","isFileBrowserMode","isSmallMediaMgmnt","ctxtEntityType","ctxEntityId","addressbaseIdOfOffer","orderChanged","applyFilter","resetFilter",4,"ngIf"],["class","list__header-wrapper",4,"ngIf"],["lg_w","12","lg_o","0"],[1,"media-sidenav-container"],[1,"media-sidenav-content"],["class","source-area",4,"ngIf"],[4,"ngIf"],["mode","side","position","end",1,"media-sidenav"],["sidenav",""],["class","edit-panel",4,"ngIf"],[1,"footer__sticky"],[3,"formHandler","record","orderFields","orderField","orderDirection","isFileBrowserMode","isSmallMediaMgmnt","ctxtEntityType","ctxEntityId","addressbaseIdOfOffer","orderChanged","applyFilter","resetFilter"],[1,"list__header-wrapper"],["lg_w","6","lg_o","0"],[1,"list__header"],[1,"reload",3,"click"],[1,"icon-refresh","imx-icon-middle"],["class","mode-switch",4,"ngIf"],[1,"mode-switch"],[3,"checked","dragChange","toggleChange"],[1,"source-area"],[3,"pooledMediumFormHandlerService","assignmentData","uploadFinished","closed"],[3,"formHandler","assignmentData","save","closed"],[1,"button-bar"],["translate","",1,"imx-button","prio2","with-icon",3,"disabled","click"],[1,"icon","icon-up-square"],[1,"icon","icon-earth"],[1,"media-list"],["loading",""],[4,"ngIf","ngIfElse"],["mode","indeterminate"],["titleLink",""],["class","tiles__wrapper",4,"ngIf"],["translate",""],["withoutTitle",""],[1,"tiles__wrapper"],["class","tiles__item",3,"ngClass",4,"ngFor","ngForOf"],[1,"tiles__item",3,"ngClass"],[1,"tiles__icon-wrapper"],[3,"pooledMedium"],["class","tiles__checkbox-wrapper",4,"ngIf"],[3,"click"],["size","big",3,"medium"],[1,"tiles__footer"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"tiles__checkbox-wrapper"],[3,"value","checked","change"],[1,"edit-panel"],[3,"style",4,"ngIf"],[3,"steps","activeStepIndex","formHandler","assignmentsFormGroup","stepActivate","closed"],[3,"disableFocusPointEdit","assignmentData","formHandler","record","defaultBtnBar","freshlyUploaded","save","continued","closed","deleted",4,"ngIf"],[3,"assignmentData","formHandler","record","selectedIds","freshlyUploaded","allSaved","continued","closed","deleted",4,"ngIf"],[3,"holderFormHandler","mediumFormHandler","pooledMedium","batchMediaIds","freshlyUploaded","mediaFormGroup","assignmentsFormGroup","hasAssignmentEditPermission","mediaField","imageTypes","targetAssignmentId","dataObjectMediumInitializerService","saved","back","closed",4,"ngIf"],[3,"disableFocusPointEdit","assignmentData","formHandler","record","defaultBtnBar","freshlyUploaded","save","continued","closed","deleted"],[3,"assignmentData","formHandler","record","selectedIds","freshlyUploaded","allSaved","continued","closed","deleted"],[3,"holderFormHandler","mediumFormHandler","pooledMedium","batchMediaIds","freshlyUploaded","mediaFormGroup","assignmentsFormGroup","hasAssignmentEditPermission","mediaField","imageTypes","targetAssignmentId","dataObjectMediumInitializerService","saved","back","closed"],["lg_w","10","sm_w","9","lg_o","0"],[1,"footer__list-paginator-wrapper"],[3,"length","pageSize","pageIndex","pageLinks","page"],["lg_w","2","sm_w","3","lg_o","0"],[3,"sizes","pageIndex","pageSize","page"]],template:function(ot,ct){1&ot&&(n.TgZ(0,"div",0),n.YNc(1,q,1,10,"imx-pooled-medium-filter",1)(2,ne,9,2,"div",2),n.TgZ(3,"imx-grid")(4,"imx-grid-element",3)(5,"mat-sidenav-container",4)(6,"mat-sidenav-content",5),n.YNc(7,ee,2,2,"div",6)(8,$,2,2,"div",6)(9,lt,14,7,"div",7),n.qZA(),n.TgZ(10,"mat-sidenav",8,9),n.YNc(12,ve,2,1,"div",10),n.qZA()()()(),n.TgZ(13,"div",11),n.YNc(14,Dt,6,8,"imx-grid",7),n.qZA()()),2&ot&&(n.xp6(),n.Q6J("ngIf",ct.currentMode==ct.MEDIA_POOL),n.xp6(),n.Q6J("ngIf",ct.currentMode==ct.MEDIA_POOL),n.xp6(5),n.Q6J("ngIf",ct.currentMode===ct.UPLOAD),n.xp6(),n.Q6J("ngIf",ct.currentMode===ct.LINK),n.xp6(),n.Q6J("ngIf",ct.currentMode===ct.MEDIA_POOL),n.xp6(3),n.Q6J("ngIf",ct.currentMode===ct.MEDIA_POOL),n.xp6(2),n.Q6J("ngIf",ct.currentMode===ct.MEDIA_POOL))},styles:[".list__header-wrapper[_ngcontent-%COMP%]{padding:15px 0}.list__header-right-menu[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:flex-end}.list__header-right-menu[_ngcontent-%COMP%]    >*{margin-left:10px}.list__header[_ngcontent-%COMP%]{display:flex}.list__header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{display:inline;font-size:22px;line-height:26px;padding:0 10px}.list__header[_ngcontent-%COMP%]   .reload[_ngcontent-%COMP%], .list__header[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{display:inline-block;cursor:pointer;text-decoration:none}.list__header[_ngcontent-%COMP%]   .reload[_ngcontent-%COMP%]{padding:5px 10px 0 0;border-right:1px solid #eefafa}.list__header[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{padding:5px 10px;border-left:1px solid #eefafa}.footer__sticky[_ngcontent-%COMP%]{position:fixed;left:0;bottom:0;height:50px;width:100%;z-index:3;background-color:#eefafa}.footer__sticky[_ngcontent-%COMP%]   .footer__list-action-all-select[_ngcontent-%COMP%]{width:25px;margin:auto 5px auto 0}.footer__list-actions-menu-wrapper[_ngcontent-%COMP%]{display:flex}.footer__list-paginator-wrapper[_ngcontent-%COMP%]{padding-top:7px}.footer__list-actions-menu[_ngcontent-%COMP%]{position:absolute;bottom:60px;left:0;z-index:2;margin-top:5px;background:#fff;box-shadow:0 0 5px #0003;display:flex;flex-direction:column;text-align:left}.footer__list-actions-menu[_ngcontent-%COMP%]   .triangle-down[_ngcontent-%COMP%]{position:absolute;left:20px;bottom:-12px;z-index:2}.footer__list-action-element[_ngcontent-%COMP%]{color:#000;font-size:14px;height:50px;padding-right:10px;cursor:pointer;border-right:1px solid #e6e9ef;flex:1;align-items:center;display:flex}@media (max-width: 1400px){.footer__list-action-element[_ngcontent-%COMP%]{font-size:12px}}.tiles__wrapper[_ngcontent-%COMP%]{overflow:hidden;display:grid;grid-gap:15px;grid-template-columns:repeat(auto-fill,minmax(158px,1fr))}@media (max-width: 900px){.tiles__wrapper[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(108px,1fr))}}.tiles__wrapper[_ngcontent-%COMP%]   .tiles__item[_ngcontent-%COMP%]{background:#fff;border:1px solid #ced4e0;padding:3px;display:flex;flex-direction:column;position:relative;cursor:pointer}.tiles__wrapper[_ngcontent-%COMP%]   .tiles__item[_ngcontent-%COMP%]   .titles__item-disabled[_ngcontent-%COMP%]{background-color:#fff;opacity:.8;width:98%;height:98%;position:absolute;cursor:default}.tiles__wrapper[_ngcontent-%COMP%]   .tiles__item[_ngcontent-%COMP%]   .titles__item-disabled.assigned[_ngcontent-%COMP%], .tiles__wrapper[_ngcontent-%COMP%]   .tiles__item.assigned[_ngcontent-%COMP%]{background-color:#eefafa}.tiles__wrapper[_ngcontent-%COMP%]   .tiles__item[_ngcontent-%COMP%]   .tiles__footer[_ngcontent-%COMP%]{font-size:12px;line-height:14px;overflow:hidden;text-overflow:ellipsis;word-break:break-word;padding:5px 20px 5px 10px}.tiles__wrapper[_ngcontent-%COMP%]   .tiles__item[_ngcontent-%COMP%]   .tiles__icon-wrapper[_ngcontent-%COMP%]{background:#fff;text-align:center;padding-top:2px;width:22px;height:22px;position:absolute;top:0;left:0;color:#000}.tiles__wrapper[_ngcontent-%COMP%]   .tiles__item[_ngcontent-%COMP%]   .tiles__checkbox-wrapper[_ngcontent-%COMP%]{background:#fff;text-align:center;padding-top:2px;width:30px;height:30px;position:absolute;top:0;right:0;color:#000}.tiles__wrapper[_ngcontent-%COMP%]   .tiles__item[_ngcontent-%COMP%]   .tiles__action-menu[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0;padding-bottom:2px}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.media-search-assign[_ngcontent-%COMP%]{padding-bottom:50px;padding-top:50px}.media-search-assign[_ngcontent-%COMP%]   .media-sidenav-container[_ngcontent-%COMP%]{background-color:transparent;height:100%;min-height:calc(100vh - 170px)}.media-search-assign[_ngcontent-%COMP%]   .footer__sticky[_ngcontent-%COMP%]{width:70%;margin-left:30%}@media (max-width: 1400px){.media-search-assign[_ngcontent-%COMP%]   .footer__sticky[_ngcontent-%COMP%]{width:85%;margin-left:15%}}@media (max-width: 900px){.media-search-assign[_ngcontent-%COMP%]   .footer__sticky[_ngcontent-%COMP%]{width:calc(100% - 50px);margin-left:50px}}.media-search-assign[_ngcontent-%COMP%]   .button-bar[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;margin-bottom:15px}.media-search-assign[_ngcontent-%COMP%]   .button-bar[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%] ~ .imx-button[_ngcontent-%COMP%]{margin-left:10px}.media-search-assign[_ngcontent-%COMP%]     .filter__sticky-wrapper{right:0;top:0;left:unset;width:70%}@media (max-width: 1400px){.media-search-assign[_ngcontent-%COMP%]     .filter__sticky-wrapper{width:85%}}@media (max-width: 900px){.media-search-assign[_ngcontent-%COMP%]     .filter__sticky-wrapper{width:calc(100% - 50px)}}.media-search-assign[_ngcontent-%COMP%]     .filter__contents{right:0;top:50px;left:unset;width:70%}@media (max-width: 1400px){.media-search-assign[_ngcontent-%COMP%]     .filter__contents{width:85%}}@media (max-width: 900px){.media-search-assign[_ngcontent-%COMP%]     .filter__contents{width:calc(100% - 50px)}}@media (min-width: 1401px){.media-search-assign[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]{border:none;width:400px;min-width:400px;max-width:400px;min-height:400px}.media-search-assign[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]   .edit-panel[_ngcontent-%COMP%]{width:400px;padding-left:30px;height:calc(100vh - 170px)}.media-search-assign[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]   .edit-panel.fixed[_ngcontent-%COMP%]{position:fixed;height:calc(100vh - 170px);top:110px}.media-search-assign[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]   .edit-panel[_ngcontent-%COMP%]     .p-scrollpanel-content{padding:0 18px 18px 0}.media-search-assign[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]   .media-sidenav-container[_ngcontent-%COMP%]{overflow:visible;background-color:transparent}.media-search-assign[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]   .media-sidenav-content[_ngcontent-%COMP%]{overflow:inherit}}@media (min-width: 901px) and (max-width: 1400px){.media-search-assign[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]{border:none;width:320px;min-width:320px;max-width:320px;min-height:400px}.media-search-assign[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]   .edit-panel[_ngcontent-%COMP%]{width:320px;padding-left:30px;height:calc(100vh - 170px)}.media-search-assign[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]   .edit-panel.fixed[_ngcontent-%COMP%]{position:fixed;height:calc(100vh - 170px);top:110px}.media-search-assign[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]   .edit-panel[_ngcontent-%COMP%]     .p-scrollpanel-content{padding:0 18px 18px 0}.media-search-assign[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]   .media-sidenav-container[_ngcontent-%COMP%]{overflow:visible;background-color:transparent}.media-search-assign[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]   .media-sidenav-content[_ngcontent-%COMP%]{overflow:inherit}}.media-search-assign[_ngcontent-%COMP%]   .list__header[_ngcontent-%COMP%]   .mode-switch[_ngcontent-%COMP%]{font-size:12px;padding:3px 10px;border-left:1px solid #eefafa}.media-search-assign[_ngcontent-%COMP%]   .source-area[_ngcontent-%COMP%]{margin-top:20px}.media-search-assign[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]   .edit-panel[_ngcontent-%COMP%]{height:100%}"]})}return Je})()},22745:(gt,X,a)=>{"use strict";a.d(X,{L:()=>p});var e=a(79309),n=a(76503);const s="https://img.youtube.com/vi/{0}/0.jpg",i="http://www.youtube.com/embed/{0}";class p{static getVideoLink(o){if(o&&o.mediaProvider){const x=o.mediaProvider;if(x.name===e.bg.name)return this.getVideoLinkByUrl(o);if(x.name===e.yl.name){if(this.getValidUrl(o.identification))return this.getVideoLinkByUrl(o);{const m=o.identification;return{thumbnailLink:(0,n.U)(s,m),hrefLink:(0,n.U)("https://www.youtube.com/watch?v={0}",m),linkAvailable:!0,embedLink:(0,n.U)(i,m)}}}}}static getVideoLinkByUrl(o){if(o.identification&&(o.identification.includes("youtube")||o.identification.includes("youtu.be"))){const x=this.getValidUrl(o.identification);if(!x)return this.getFallbackVideoLink(o.identification);const u=this.getYoutubeId(x);return u?{linkAvailable:!0,hrefLink:o.identification,thumbnailLink:(0,n.U)(s,u),embedLink:(0,n.U)(i,u)}:this.getFallbackVideoLink(o.identification)}return this.getFallbackVideoLink(o.identification)}static getFallbackVideoLink(o){return{hrefLink:o||"",thumbnailLink:void 0,linkAvailable:!0,embedLink:void 0}}static getValidUrl(o){try{return new URL(o)}catch{return}}static getYoutubeId(o){const x=o.searchParams.get("v");if(x&&11===x.length)return x;{const u=new RegExp("/.*(?:youtu.be\\/|v\\/|u/\\w/|embed\\/|watch\\?.*&?v=)"),m=o.href.split(u);return m&&2===m.length&&m[1].length>=11?m[1].substring(0,11):void 0}}}},40395:(gt,X,a)=>{"use strict";a.d(X,{T:()=>s});var e=a(19212),n=a(50308);let s=(()=>{class l{constructor(){this.isClickable=!1,this.filled=!1}get icon(){return this.filled?"bubble--filled":"bubble"}static#e=this.\u0275fac=function(p){return new(p||l)};static#t=this.\u0275cmp=e.Xpm({type:l,selectors:[["imx-memo-icon"]],inputs:{isClickable:"isClickable",filled:"filled"},decls:1,vars:2,consts:[[3,"icon","isClickable"]],template:function(p,c){1&p&&e._UZ(0,"imx-icon",0),2&p&&e.Q6J("icon",c.icon)("isClickable",c.isClickable)},dependencies:[n.o],encapsulation:2})}return l})()},35452:(gt,X,a)=>{"use strict";a.d(X,{u:()=>c});var e=a(19212),n=a(21473),s=a(96814),l=a(40395),i=a(59626);function t(o,x){if(1&o&&(e.TgZ(0,"span",4),e._uU(1),e.qZA()),2&o){const u=e.oxw(2);e.Q6J("className",u.filled?"memo-count--filled":"memo-count"),e.xp6(),e.Oqu(u.memoCnt)}}function p(o,x){if(1&o){const u=e.EpF();e.ynx(0),e.TgZ(1,"imx-memo-icon",1),e.NdJ("click",function(){e.CHM(u);const b=e.oxw();return e.KtG(b.handleIconClick.emit())}),e.qZA(),e.TgZ(2,"div",2),e.NdJ("click",function(){e.CHM(u);const b=e.oxw();return e.KtG(b.handleIconClick.emit())}),e.YNc(3,t,2,2,"span",3),e.qZA(),e.BQk()}if(2&o){const u=e.oxw();e.xp6(),e.Q6J("isClickable",!0)("filled",u.filled),e.xp6(2),e.Q6J("ngIf",u.memoCnt>0)}}let c=(()=>{class o{constructor(){this.filled=!1,this.memoCnt=0,this.handleIconClick=new e.vpe,this.memoReadPermissionStr=n.uo.F_MEMO_MANAGEMENT_READ.name}static#e=this.\u0275fac=function(m){return new(m||o)};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["imx-memo-toggle"]],inputs:{filled:"filled",memoCnt:"memoCnt"},outputs:{handleIconClick:"handleIconClick"},decls:1,vars:1,consts:[[4,"hasAnyPermission"],[3,"isClickable","filled","click"],[3,"click"],[3,"className",4,"ngIf"],[3,"className"]],template:function(m,b){1&m&&e.YNc(0,p,4,3,"ng-container",0),2&m&&e.Q6J("hasAnyPermission",b.memoReadPermissionStr)},dependencies:[s.O5,l.T,i.R],styles:["[_nghost-%COMP%]{display:flex;justify-content:center;margin-left:15px;margin-bottom:15px;position:relative}[_nghost-%COMP%]    >imx-memo-icon>imx-icon>span{font-size:28px}[_nghost-%COMP%]    >div{position:absolute;top:6px;width:100%;display:flex;justify-content:center;cursor:pointer;font:400 12px/14px GT Walsheim,Arial,sans-serif}[_nghost-%COMP%]    >div>span:not(.memo-count--filled){color:#0a2663}[_nghost-%COMP%]    >div>span.memo-count--filled{color:#fff}"]})}return o})()},97808:(gt,X,a)=>{"use strict";a.d(X,{J:()=>G});var e=a(21473),n=a(46939),s=a(43040),l=a(19212),i=a(96814),t=a(22941),p=a(71365),c=a(67338),o=a(22194);function x(B,ae){1&B&&l.GkF(0)}const u=B=>({open:B});function m(B,ae){if(1&B){const J=l.EpF();l.TgZ(0,"a",10),l.NdJ("click",function(){l.CHM(J);const j=l.oxw().$implicit,Y=l.oxw();return l.KtG(Y.openBlock(j.labelKey))}),l.TgZ(1,"div",11),l._UZ(2,"span"),l.qZA(),l.TgZ(3,"div",12),l._uU(4),l.qZA()()}if(2&B){const J=l.oxw().$implicit,q=l.oxw();l.Q6J("ngClass",l.VKq(5,u,q.isBlockOpen(J.labelKey))),l.xp6(2),l.Gre("icon ",J.icon,""),l.xp6(2),l.Oqu(J.labelKey)}}function b(B,ae){if(1&B){const J=l.EpF();l.TgZ(0,"a",13),l.NdJ("click",function(){l.CHM(J);const j=l.oxw(2);return l.KtG(j.itemClicked())}),l.TgZ(1,"div",11),l._UZ(2,"span"),l.qZA(),l.TgZ(3,"div",12),l._uU(4),l.qZA()()}if(2&B){const J=l.oxw().$implicit;l.s9C("routerLink",J.routerLink),l.Q6J("queryParams",J.queryParams),l.xp6(2),l.Gre("icon ",J.icon,""),l.xp6(2),l.Oqu(J.labelKey)}}function I(B,ae){if(1&B){const J=l.EpF();l.TgZ(0,"a",13),l.NdJ("click",function(){l.CHM(J);const j=l.oxw(3);return l.KtG(j.itemClicked())}),l.TgZ(1,"div",11),l._UZ(2,"span"),l.qZA(),l.TgZ(3,"div",12),l._uU(4),l.qZA()()}if(2&B){const J=ae.$implicit;l.ekj("first",0===ae.index),l.s9C("routerLink",J.routerLink),l.Q6J("queryParams",J.queryParams),l.xp6(2),l.Gre("icon ",J.icon,""),l.xp6(2),l.Oqu(J.labelKey)}}function H(B,ae){if(1&B&&(l.TgZ(0,"div",14),l.YNc(1,I,5,8,"a",15),l.qZA()),2&B){const J=l.oxw().$implicit,q=l.oxw();l.Q6J("@openClose",q.isBlockOpen(J.labelKey)?"open":"closed")("ngClass",l.VKq(3,u,q.isBlockOpen(J.labelKey))),l.xp6(),l.Q6J("ngForOf",J.children)}}function O(B,ae){if(1&B&&(l.TgZ(0,"div",5),l.YNc(1,x,1,0,"ng-container",6)(2,m,5,7,"ng-template",null,7,l.W1O)(4,b,5,6,"ng-template",null,8,l.W1O)(6,H,2,5,"div",9),l.qZA()),2&B){const J=ae.$implicit,q=l.MAs(3),j=l.MAs(5),Y=l.oxw();l.xp6(),l.Q6J("ngIf",Y.hasSubNavigationBlock(J))("ngIfThen",q)("ngIfElse",j),l.xp6(5),l.Q6J("ngIf",Y.hasSubNavigationBlock(J))}}const P=()=>({width:"100%",height:"100%"});let G=(()=>{class B extends n.x{constructor(J){super(),this.navigationService=J}ngOnInit(){this.items=this.navigationService.getNavigationItems()}openBlock(J){this.navigationService.openBlock(J)}isBlockOpen(J){return this.navigationService.isBlockOpen(J)}itemClicked(){this.sidenav&&this.sidenav.close()}hasSubNavigationBlock(J){return null!=J.children&&J.children.length>0}static#e=this.\u0275fac=function(q){return new(q||B)(l.Y36(e.f5))};static#t=this.\u0275cmp=l.Xpm({type:B,selectors:[["ng-component"]],features:[l.qOj],decls:6,vars:4,consts:[["aria-label","Main Menu",1,"navigation-wrapper"],[1,"navigation-header"],["src","./assets/platform_negative.svg","alt","imx.Platform Logo"],[1,"navigation-scroll-wrapper"],["class","navigation-item-wrapper",4,"ngFor","ngForOf"],[1,"navigation-item-wrapper"],[4,"ngIf","ngIfThen","ngIfElse"],["subMenu",""],["navigate",""],["class","navigation-sub-item-wrapper",3,"ngClass",4,"ngIf"],[1,"navigation-action-item",3,"ngClass","click"],[1,"icon-wrapper"],["translate","",1,"label"],["routerLinkActive","active",1,"navigation-action-item",3,"routerLink","queryParams","click"],[1,"navigation-sub-item-wrapper",3,"ngClass"],["class","navigation-action-item","routerLinkActive","active",3,"first","routerLink","queryParams","click",4,"ngFor","ngForOf"]],template:function(q,j){1&q&&(l.TgZ(0,"nav",0)(1,"div",1),l._UZ(2,"img",2),l.qZA(),l.TgZ(3,"div",3)(4,"p-scrollPanel"),l.YNc(5,O,7,4,"div",4),l.qZA()()()),2&q&&(l.xp6(4),l.Akn(l.DdM(3,P)),l.xp6(),l.Q6J("ngForOf",j.items))},dependencies:[i.mk,i.sg,i.O5,t.rH,t.Od,p.Pi,c.P,o.F],styles:['.navigation-header[_ngcontent-%COMP%]{width:100%;height:85px;display:flex;flex-direction:column;align-items:center}.navigation-header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-top:20px;height:32px}.navigation-wrapper[_ngcontent-%COMP%]{position:relative;background-color:#e6e9ef;font-size:15px;min-height:100%}.navigation-wrapper[_ngcontent-%COMP%]   .navigation-about-link[_ngcontent-%COMP%]{position:absolute;bottom:10px;text-align:center;width:100%;font-size:12px}.navigation-action-item[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;overflow:hidden;text-decoration:none;height:50px;padding-right:20px}.navigation-action-item[_ngcontent-%COMP%]   .icon-wrapper[_ngcontent-%COMP%]{min-width:min(20%,60px);display:flex;align-items:center;justify-content:center}.navigation-action-item[_ngcontent-%COMP%]   .icon-wrapper[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:25px;max-width:25px}.navigation-action-item[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{overflow:hidden;position:relative}.navigation-action-item.disabled[_ngcontent-%COMP%]{cursor:default;color:#ced4e0}.navigation-action-item.open[_ngcontent-%COMP%]{background-color:#fff}.navigation-sub-item-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;font-size:14px}.navigation-sub-item-wrapper[_ngcontent-%COMP%]   .navigation-action-item[_ngcontent-%COMP%]{padding-left:min(7%,35px)}.navigation-sub-item-wrapper[_ngcontent-%COMP%]   .navigation-action-item[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:20px;max-width:20px}.navigation-sub-item-wrapper.open[_ngcontent-%COMP%]   .navigation-action-item[_ngcontent-%COMP%]{background-color:#ffffff80}.navigation-item-wrapper[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #ced4e0}.navigation-wrapper[_ngcontent-%COMP%]{height:100vh}.navigation-action-item.active[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]:after{content:"";position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;border-bottom-width:7px;z-index:-1}.navigation-scroll-wrapper[_ngcontent-%COMP%]{height:calc(100% - 85px)}.navigation-scroll-wrapper[_ngcontent-%COMP%]     .p-scrollpanel-content{padding:0 0 18px}'],data:{animation:s.l}})}return B})()},6469:(gt,X,a)=>{"use strict";a.d(X,{m:()=>o});var e=a(21473),n=a(19212),s=a(96814),l=a(38777),i=a(71365);const t=x=>({"open-data__style-override":x});function p(x,u){if(1&x){const m=n.EpF();n.ynx(0),n.TgZ(1,"div",1),n.NdJ("mouseenter",function(I){n.CHM(m);const H=n.MAs(10);return n.KtG(H.show(I))})("mouseleave",function(){n.CHM(m);const I=n.MAs(10);return n.KtG(I.hide())}),n.TgZ(2,"span",2)(3,"span",3),n._UZ(4,"span",4)(5,"span",5)(6,"span",6)(7,"span",7)(8,"span",8),n.qZA()(),n.TgZ(9,"imx-tooltip-extended",9,10)(11,"div",11)(12,"div"),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.TgZ(15,"ul")(16,"li")(17,"span",12),n._uU(18),n.ALo(19,"translate"),n.qZA(),n._uU(20),n.ALo(21,"translate"),n.qZA(),n.TgZ(22,"li")(23,"span",12),n._uU(24),n.ALo(25,"translate"),n.qZA(),n._uU(26),n.ALo(27,"translate"),n.qZA()()()()(),n.BQk()}if(2&x){const m=n.oxw();n.xp6(2),n.Q6J("ngClass",n.VKq(18,t,!0===m.isShownInList)),n.xp6(),n.Q6J("ngClass",m.openDataIcon),n.xp6(6),n.Q6J("offset",300),n.xp6(4),n.Oqu(n.lcZ(14,8,"imxplatform.common-entity.list.opendata.header")),n.xp6(5),n.hij("",n.lcZ(19,10,"imxplatform.common-entity.list.opendata.texts"),":"),n.xp6(2),n.hij(" ",n.lcZ(21,12,m.openDataRecord.openData?"imxplatform.common.yes":"imxplatform.common.no"),""),n.xp6(4),n.hij("",n.lcZ(25,14,"imxplatform.common-entity.list.opendata.images"),":"),n.xp6(2),n.hij(" ",n.lcZ(27,16,m.openDataRecord.openDataAnyImage?"imxplatform.common.yes":"imxplatform.common.no"),"")}}let o=(()=>{class x{constructor(m){this.configurationProvider=m,this.showOpenDataIcon=!1,this.isShownInList=!1,this.openDataIcon=""}ngOnChanges(m){this.determineOpenDataStateIcon()}ngOnInit(){this.determineOpenDataStateIcon()}determineOpenDataStateIcon(){if(!this.openDataRecord)return;let m="icon-openData-new";m+=!0===this.openDataRecord.openData&&!0===this.openDataRecord.openDataAnyImage?"-green":!0===this.openDataRecord.openData?"-orange":"-red",this.openDataIcon=m}static#e=this.\u0275fac=function(b){return new(b||x)(n.Y36(e.Pc))};static#t=this.\u0275cmp=n.Xpm({type:x,selectors:[["imx-opendata-icon"]],inputs:{openDataRecord:"openDataRecord",showOpenDataIcon:"showOpenDataIcon",isShownInList:"isShownInList"},features:[n.TTD],decls:1,vars:1,consts:[[4,"ngIf"],[3,"mouseenter","mouseleave"],[1,"actions","open-data__actions",3,"ngClass"],[1,"imx-icon-middle",3,"ngClass"],[1,"path1"],[1,"path2"],[1,"path3"],[1,"path4"],[1,"path5"],[3,"offset"],["openDataTooltip",""],[1,"open-data__tooltip-content"],[1,"open-data__tooltip-element"]],template:function(b,I){1&b&&n.YNc(0,p,28,20,"ng-container",0),2&b&&n.Q6J("ngIf",I.showOpenDataIcon)},dependencies:[s.mk,s.O5,l.j,i.X$],styles:[".actions[_ngcontent-%COMP%]{padding:5px 0 0 10px;margin-left:10px;border-left:1px solid #e6e9ef;display:inline-block;cursor:pointer;text-decoration:none}.open-data__style-override[_ngcontent-%COMP%]{border-left:0!important;padding:0;margin-left:5px}.open-data__tooltip-content[_ngcontent-%COMP%]{font-size:12px;margin-bottom:5px!important;display:block}.open-data__tooltip-element[_ngcontent-%COMP%]{margin-right:5px!important}.open-data__tooltip-content[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]{list-style:inside;padding-left:0}.open-data__actions[_ngcontent-%COMP%]{cursor:default!important}"]})}return x})()},63810:(gt,X,a)=>{"use strict";a.d(X,{I:()=>K});var e=a(16083),n=a(19212),s=a(27416),l=a(25699),i=a(49193),t=a(53075),p=a(96124),c=a(64022),o=a(67276),x=a(15198),u=a(96814),m=a(56223),b=a(87466),I=a(37012),H=a(12),O=a(24525),P=a(71365);function G(ne,ee){if(1&ne&&(n.ynx(0),n.TgZ(1,"mat-radio-group",8)(2,"mat-radio-button",9),n._uU(3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"mat-radio-button",9),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"mat-radio-button",9),n._uU(9),n.ALo(10,"translate"),n.qZA()(),n.BQk()),2&ne){const $=n.oxw(3);n.xp6(),n.Q6J("formControl",$.selectionControl),n.xp6(),n.Q6J("value","showEntitySelection"),n.xp6(),n.hij(" ",n.lcZ(4,7,"Bilder des Angebots")," "),n.xp6(2),n.Q6J("value","showAddressbaseSelection"),n.xp6(),n.hij(" ",n.lcZ(7,9,"Bilder des zugeh\xf6rigen Stammes")," "),n.xp6(2),n.Q6J("value","showAnySelection"),n.xp6(),n.hij(" ",n.lcZ(10,11,"Beliebige Zugeh\xf6rigkeit")," ")}}function B(ne,ee){if(1&ne&&(n.TgZ(0,"mat-radio-group",10)(1,"mat-radio-button",9),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"mat-radio-button",9),n._uU(5),n.ALo(6,"translate"),n.qZA()()),2&ne){const $=n.oxw(3);n.Q6J("formControl",$.selectionControl),n.xp6(),n.Q6J("value","showEntitySelection"),n.xp6(),n.hij(" ",n.lcZ(3,5,"Bilder des Objekts")," "),n.xp6(2),n.Q6J("value","showAnySelection"),n.xp6(),n.hij(" ",n.lcZ(6,7,"Beliebige Zugeh\xf6rigkeit")," ")}}function ae(ne,ee){if(1&ne&&(n.ynx(0),n.YNc(1,G,11,13,"ng-container",6)(2,B,7,9,"ng-template",null,7,n.W1O),n.BQk()),2&ne){const $=n.MAs(3),ue=n.oxw(2);n.xp6(),n.Q6J("ngIf",ue.showOfferView)("ngIfElse",$)}}function J(ne,ee){if(1&ne&&(n.TgZ(0,"form",1)(1,"div",2)(2,"imx-grid")(3,"imx-grid-element",3),n.YNc(4,ae,4,2,"ng-container",4),n._UZ(5,"imx-core-entity-autocomplete",5),n.qZA()()()()),2&ne){const $=n.oxw();n.Q6J("formGroup",$.parentForm),n.xp6(3),n.Q6J("lg_w",6)("sm_w",12),n.xp6(),n.Q6J("ngIf",$.ctxtEntityType),n.xp6(),n.Q6J("autocompleteCtrl",$.formHandler.formGroup.get("ownerEntityId"))("entityTypeControl",$.formHandler.formGroup.get("ownerEntityType"))("coreEntities",$.entityTypeOptions$)("formGroup",$.formHandler.formGroup)("disabled","showAnySelection"!==$.selectionControl.value)}}let q=(()=>{class ne extends x.O{constructor($){super(),this.coreEntityService=$,this.id="MEDIA_ASSIGNMENT_FILTER",this.titleKey="filter.Media.assignment",this.icon="icon-link",this.filterFields=["ownerEntityType","ownerEntityId","ownerEntitySelection"],this.initEntityTypeOptions()}handleIncomingValues($){const ue=super.handleIncomingValues($);return this.ctxtEntityType&&$.baseObject.ownerEntityType===this.ctxtEntityType&&$.baseObject.ownerEntityId==this.ctxtEntityId&&this.selectionControl.setValue("showEntitySelection"),ue}ngOnInit(){super.ngOnInit(),this.selectionControl=this.parentForm.get("ownerEntitySelection"),this.selectionControl.valueChanges.subscribe($=>{"showEntitySelection"===$?(this.formHandler.formGroup.get("ownerEntityId").setValue(void 0),this.formHandler.formGroup.get("ownerEntityType").setValue(this.ctxtEntityType),setTimeout(()=>{this.formHandler.formGroup.get("ownerEntityId").setValue(this.ctxtEntityId)},100)):"showAddressbaseSelection"===$&&(this.formHandler.formGroup.get("ownerEntityId").setValue(void 0),this.formHandler.formGroup.get("ownerEntityType").setValue("Addressbase"),setTimeout(()=>{this.formHandler.formGroup.get("ownerEntityId").setValue(this.addressbaseIdOfOffer)},100))}),"Offer"===this.ctxtEntityType&&(this.showOfferView=!0)}initEntityTypeOptions(){const $=(0,i.of)(this.coreEntityService.getVisibleCoreEntityDefsWithMediaAvailability().map(ue=>({label:ue.pluralLabel,value:ue.type})));this.entityTypeOptions$=$.pipe((0,t.O)([]),(0,p.U)(ue=>[{value:o.F,label:"imxplatform.common.select-placeholder-demand"},...ue]))}static#e=this.\u0275fac=function(ue){return new(ue||ne)(n.Y36(c.dE))};static#t=this.\u0275cmp=n.Xpm({type:ne,selectors:[["imx-media-assignment-filter-panel"]],hostAttrs:[1,"imx-media-assignment-filter-panel"],inputs:{ctxtEntityId:"ctxtEntityId",ctxtEntityType:"ctxtEntityType",addressbaseIdOfOffer:"addressbaseIdOfOffer"},features:[n._Bn([(0,x.T)(ne)]),n.qOj],decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"filter__card"],[3,"lg_w","sm_w"],[4,"ngIf"],[3,"autocompleteCtrl","entityTypeControl","coreEntities","formGroup","disabled"],[4,"ngIf","ngIfElse"],["default",""],["id","object-source",1,"small","radio-column",3,"formControl"],[3,"value"],[1,"small","radio-column",3,"formControl"]],template:function(ue,ge){1&ue&&n.YNc(0,J,6,9,"form",0),2&ue&&n.Q6J("ngIf",ge.panelShown)},dependencies:[u.O5,m._Y,m.JJ,m.JL,b.VQ,b.U0,m.oH,m.sg,I.M,H.V,O.k,P.X$],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}.radio-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:15px}"]})}return ne})();var j=a(59901);function Y(ne,ee){if(1&ne&&n._UZ(0,"imx-media-filter-panel",2,3)(2,"imx-media-assignment-filter-panel",4,5)(4,"imx-media-fulltext-filter-panel",6,7),2&ne){const $=n.oxw();n.Q6J("parentForm",$.formHandler.formGroup)("record",$.record)("formHandler",$.formHandler)("isFileBrowserMode",$.isFileBrowserMode),n.xp6(2),n.Q6J("parentForm",$.formHandler.formGroup)("record",$.record)("formHandler",$.formHandler)("ctxtEntityType",$.ctxtEntityType)("ctxtEntityId",$.ctxEntityId)("addressbaseIdOfOffer",$.addressbaseIdOfOffer),n.xp6(2),n.Q6J("parentForm",$.formHandler.formGroup)("record",$.record)("formHandler",$.formHandler)}}let K=(()=>{class ne extends e.F{constructor(){super(),this.isFileBrowserMode=!1,this.isSmallMediaMgmnt=!1}getEntityName(){return"PooledMedium"}static#e=this.\u0275fac=function(ue){return new(ue||ne)};static#t=this.\u0275cmp=n.Xpm({type:ne,selectors:[["imx-pooled-medium-filter"]],inputs:{isFileBrowserMode:"isFileBrowserMode",isSmallMediaMgmnt:"isSmallMediaMgmnt",ctxEntityId:"ctxEntityId",ctxtEntityType:"ctxtEntityType",addressbaseIdOfOffer:"addressbaseIdOfOffer"},features:[n.qOj],decls:3,vars:9,consts:[[3,"entityName","filterPanelsTemplate","formHandler","record","orderFields","orderField","orderDirection","enableSearchListOption","enableCreateContactListOption","orderChanged","save"],["filterPanelsTemplate",""],[3,"parentForm","record","formHandler","isFileBrowserMode"],["mediaFilterPanel",""],[3,"parentForm","record","formHandler","ctxtEntityType","ctxtEntityId","addressbaseIdOfOffer"],["mediaAssignmentFilterPanel",""],[3,"parentForm","record","formHandler"],["fulltextFilterPanel",""]],template:function(ue,ge){if(1&ue&&(n.TgZ(0,"imx-filter",0),n.NdJ("orderChanged",function(at){return ge.orderChanged.emit(at)})("save",function(at){return ge.applyFilter.emit(at)}),n.YNc(1,Y,6,13,"ng-template",null,1,n.W1O),n.qZA()),2&ue){const Ke=n.MAs(2);n.Q6J("entityName","PooledMedium")("filterPanelsTemplate",Ke)("formHandler",ge.formHandler)("record",ge.record)("orderFields",ge.orderFields)("orderField",ge.orderField)("orderDirection",ge.orderDirection)("enableSearchListOption",!ge.isSmallMediaMgmnt)("enableCreateContactListOption",!1)}},dependencies:[s.z,l.i,q,j.H]})}return ne})()},96747:(gt,X,a)=>{"use strict";a.d(X,{p:()=>q});var e=a(72079),n=a(4535),s=a(19212),l=a(96814),i=a(56223),t=a(37012),p=a(12),c=a(10001),o=a(33946),x=a(28907),u=a(22194),m=a(71365);function b(j,Y){1&j&&s.GkF(0)}function I(j,Y){1&j&&s.GkF(0)}function H(j,Y){1&j&&s.GkF(0)}function O(j,Y){1&j&&s.GkF(0)}function P(j,Y){if(1&j&&s._UZ(0,"imx-form-control",8),2&j){const K=Y.$implicit,ne=s.oxw();s.Q6J("field",ne.formHandler.formConfiguration.findFormFieldById(K))("control",ne.formHandler.formGroup.get(K))("form",ne.formHandler.formGroup)("formHandler",ne.formHandler)("config",ne.formHandler.formConfiguration)}}const G=()=>({$implicit:"deliveryChannelId"}),B=()=>({$implicit:"fromDate"}),ae=()=>({$implicit:"toDate"}),J=["*"];let q=(()=>{class j{constructor(K){this.formHandler=K,this.destroy$=new e.xQ,this.languageOptions=[],this.languageIdsOfEntity=[],this.formHandler.baseObject={}}ngOnInit(){this.languageIdsOfEntity=this.entity.languages.map(K=>K.id),this.languageIdsOfEntity.forEach(K=>this.languageOptions.push({value:K,label:K.toString()})),this.selectAllLanguages()}selectAllLanguages(){this.languageOptions.length>0&&this.formHandler.formGroup.get("languageIds").setValue(this.languageIdsOfEntity)}deSelectAllLanguages(){this.formHandler.formGroup.get("languageIds").setValue([])}getDialogResult(){return this.formHandler.getBaseObjectCopyWithCurrentFormValues()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(ne){return new(ne||j)(s.Y36(n.G))};static#t=this.\u0275cmp=s.Xpm({type:j,selectors:[["imx-propose-appearance-base"]],inputs:{entity:"entity",header:"header"},ngContentSelectors:J,decls:31,vars:40,consts:[["icon","icon-earth","dialogType","form",3,"heading","submitButtonDisabled","getSubmitResult"],["id","propose-appearances",1,"dialog-form",3,"formGroup"],[3,"lg_w","sm_w","ty_w"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"field","control","form","formHandler","optionProvider"],[4,"ngIf"],[3,"click"],["imxControl",""],[3,"field","control","form","formHandler","config"]],template:function(ne,ee){if(1&ne&&(s.F$t(),s.TgZ(0,"imx-dialog",0)(1,"div",1)(2,"imx-grid")(3,"div")(4,"imx-grid-element",2),s.YNc(5,b,1,0,"ng-container",3),s.qZA(),s._UZ(6,"br")(7,"br"),s.TgZ(8,"imx-grid-element",2),s.YNc(9,I,1,0,"ng-container",3),s.qZA(),s.TgZ(10,"imx-grid-element",2),s.YNc(11,H,1,0,"ng-container",3),s.qZA(),s._UZ(12,"br")(13,"br"),s.Hsn(14),s.TgZ(15,"imx-grid-element",2),s._UZ(16,"imx-checkbox-select",4),s.qZA(),s.TgZ(17,"imx-grid-element",2),s.YNc(18,O,1,0,"ng-container",5),s.TgZ(19,"a",6),s.NdJ("click",function(){return ee.selectAllLanguages()}),s._uU(20),s.ALo(21,"translate"),s.qZA(),s.TgZ(22,"span"),s._uU(23," | "),s.qZA(),s.TgZ(24,"a",6),s.NdJ("click",function(){return ee.deSelectAllLanguages()}),s._uU(25),s.ALo(26,"translate"),s.qZA()(),s._UZ(27,"br")(28,"br"),s.qZA()()()(),s.YNc(29,P,1,5,"ng-template",null,7,s.W1O)),2&ne){const $=s.MAs(30);s.s9C("heading",ee.header),s.Q6J("submitButtonDisabled",ee.formHandler.formGroup.invalid)("getSubmitResult",ee.getDialogResult.bind(ee)),s.xp6(),s.Q6J("formGroup",ee.formHandler.formGroup),s.xp6(3),s.Q6J("lg_w",12)("sm_w",12)("ty_w",12),s.xp6(),s.Q6J("ngTemplateOutlet",$)("ngTemplateOutletContext",s.DdM(37,G)),s.xp6(3),s.Q6J("lg_w",6)("sm_w",6)("ty_w",12),s.xp6(),s.Q6J("ngTemplateOutlet",$)("ngTemplateOutletContext",s.DdM(38,B)),s.xp6(),s.Q6J("lg_w",6)("sm_w",6)("ty_w",12),s.xp6(),s.Q6J("ngTemplateOutlet",$)("ngTemplateOutletContext",s.DdM(39,ae)),s.xp6(4),s.Q6J("lg_w",12)("sm_w",12)("ty_w",12),s.xp6(),s.Q6J("field",ee.formHandler.formConfiguration.findFormFieldById("languageIds"))("control",ee.formHandler.formGroup.get("languageIds"))("form",ee.formHandler.formGroup)("formHandler",ee.formHandler)("optionProvider",ee.languageOptions),s.xp6(),s.Q6J("lg_w",12)("sm_w",12)("ty_w",12),s.xp6(),s.Q6J("ngIf",ee.languageOptions&&ee.languageOptions.length>0),s.xp6(2),s.hij(" ",s.lcZ(21,33,"imxplatform.common.select-all-languages"),""),s.xp6(5),s.hij(" ",s.lcZ(26,35,"imxplatform.common.select-no-languages")," ")}},dependencies:[l.O5,l.tP,i.JL,i.sg,t.M,p.V,c.r,o.a,x.A,u.F,m.X$]})}return j})()},71577:(gt,X,a)=>{"use strict";a.d(X,{w:()=>r});var e=a(19212),n=a(22941),s=a(72079),l=a(23291),i=a(49193),t=a(77504),p=a(66745),c=a(19352),o=a(96124),x=a(62413),u=a(21473),m=a(39693),b=a(43040),I=a(71365),H=a(43425),O=a(1614),P=a(96814),G=a(67338),B=a(38777),ae=a(22194);const J=["quickaccesstooltip"];function q(Z,Pt){1&Z&&(e.TgZ(0,"div",21),e._UZ(1,"div",10),e.TgZ(2,"div",12),e._uU(3,"imxplatform.common.no-records"),e.qZA()())}function j(Z,Pt){if(1&Z){const Oe=e.EpF();e.TgZ(0,"button",22),e.NdJ("click",function(){e.CHM(Oe);const ve=e.oxw();return e.KtG(ve.close())}),e._UZ(1,"span",23),e.qZA()}}function Y(Z,Pt){if(1&Z){const Oe=e.EpF();e.TgZ(0,"button",24),e.NdJ("click",function(){e.CHM(Oe);const ve=e.oxw();return e.KtG(ve.pin())}),e._UZ(1,"span",25),e.qZA()}}function K(Z,Pt){1&Z&&(e.ynx(0),e._uU(1," *"),e.BQk())}function ne(Z,Pt){if(1&Z){const Oe=e.EpF();e.TgZ(0,"a",27),e.NdJ("click",function(){e.CHM(Oe);const ve=e.oxw(3);return e.KtG(ve.itemClicked())}),e.TgZ(1,"div",10),e._UZ(2,"span"),e.YNc(3,K,2,0,"ng-container",28),e.qZA(),e.TgZ(4,"div",29)(5,"div",30),e._uU(6),e.qZA(),e.TgZ(7,"div",31),e._uU(8),e.qZA()()()}if(2&Z){const Oe=Pt.$implicit;e.ekj("first",0===Pt.index)("navigation-action-item--modified",Oe.modified),e.Q6J("routerLink",Oe.link)("queryParams",Oe.queryParams),e.xp6(2),e.Gre("icon icon-",Oe.icon,""),e.xp6(),e.Q6J("ngIf",Oe.modified),e.xp6(3),e.Oqu(Oe.label),e.xp6(2),e.Oqu(Oe.timestamp)}}function ee(Z,Pt){if(1&Z&&(e.ynx(0),e.YNc(1,ne,9,12,"a",26),e.BQk()),2&Z){const Oe=e.oxw().ngIf;e.xp6(),e.Q6J("ngForOf",Oe)}}function $(Z,Pt){if(1&Z&&(e.ynx(0),e.YNc(1,ee,2,1,"ng-container",14),e.BQk()),2&Z){const Oe=Pt.ngIf;e.oxw();const ye=e.MAs(1);e.xp6(),e.Q6J("ngIf",Oe.length>0)("ngIfElse",ye)}}function ue(Z,Pt){if(1&Z){const Oe=e.EpF();e.TgZ(0,"a",33),e.NdJ("click",function(){const ft=e.CHM(Oe).$implicit,Dt=e.oxw(3);return e.KtG(Dt.navigate(ft))}),e.TgZ(1,"div",10),e._UZ(2,"span"),e.qZA(),e.TgZ(3,"div",34),e._uU(4),e.qZA()()}if(2&Z){const Oe=Pt.$implicit;e.ekj("first",0===Pt.index),e.xp6(2),e.Gre("icon icon-",Oe.icon,""),e.xp6(2),e.Oqu(Oe.label)}}function ge(Z,Pt){if(1&Z&&(e.ynx(0),e.YNc(1,ue,5,6,"a",32),e.BQk()),2&Z){const Oe=e.oxw().ngIf;e.xp6(),e.Q6J("ngForOf",Oe)}}function Ke(Z,Pt){if(1&Z&&(e.ynx(0),e.YNc(1,ge,2,1,"ng-container",14),e.BQk()),2&Z){const Oe=Pt.ngIf;e.oxw();const ye=e.MAs(1);e.xp6(),e.Q6J("ngIf",Oe.length>0)("ngIfElse",ye)}}function at(Z,Pt){if(1&Z){const Oe=e.EpF();e.TgZ(0,"a",27),e.NdJ("click",function(){e.CHM(Oe);const ve=e.oxw(3);return e.KtG(ve.itemClicked())}),e.TgZ(1,"div",10),e._UZ(2,"span"),e.qZA(),e.TgZ(3,"div",34),e._uU(4),e.qZA()()}if(2&Z){const Oe=Pt.$implicit;e.ekj("first",0===Pt.index),e.Q6J("routerLink",Oe.link)("queryParams",Oe.queryParams),e.xp6(2),e.Gre("icon icon-",Oe.icon,""),e.xp6(2),e.Oqu(Oe.label)}}function Le(Z,Pt){if(1&Z&&(e.ynx(0),e.YNc(1,at,5,8,"a",35),e.BQk()),2&Z){const Oe=e.oxw().ngIf;e.xp6(),e.Q6J("ngForOf",Oe)}}function R(Z,Pt){if(1&Z&&(e.ynx(0),e.YNc(1,Le,2,1,"ng-container",14),e.BQk()),2&Z){const Oe=Pt.ngIf;e.oxw();const ye=e.MAs(1);e.xp6(),e.Q6J("ngIf",Oe.length>0)("ngIfElse",ye)}}function Te(Z,Pt){if(1&Z&&(e.TgZ(0,"li"),e._uU(1),e.ALo(2,"async"),e.qZA()),2&Z){const Oe=Pt.$implicit;e.xp6(),e.hij(" ",e.lcZ(2,1,Oe)," ")}}function me(Z,Pt){if(1&Z&&(e.ynx(0),e.TgZ(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"ul"),e.YNc(5,Te,3,3,"li",38),e.qZA(),e.BQk()),2&Z){const Oe=e.oxw().$implicit,ye=e.oxw(3);e.xp6(2),e.hij("",e.lcZ(3,2,"imxplatform.entity-list.search-history.criteria"),":"),e.xp6(3),e.Q6J("ngForOf",ye.formatSearchQueries(Oe,5))}}function Se(Z,Pt){1&Z&&(e.ynx(0),e.TgZ(1,"p",4),e._uU(2,"imxplatform.entity-list.search-history.no-params"),e.qZA(),e.BQk())}function Ue(Z,Pt){if(1&Z){const Oe=e.EpF();e.TgZ(0,"a",33),e.NdJ("click",function(){const ft=e.CHM(Oe).$implicit,Dt=e.oxw(3);return e.KtG(Dt.navigate(ft))}),e.TgZ(1,"div",10),e._UZ(2,"span"),e.qZA(),e.TgZ(3,"div",36),e.NdJ("mouseenter",function(ve){e.CHM(Oe);const ft=e.MAs(6);return e.KtG(ft.show(ve))})("mouseleave",function(){e.CHM(Oe);const ve=e.MAs(6);return e.KtG(ve.hide())}),e._uU(4),e.qZA(),e.TgZ(5,"imx-tooltip-extended",null,37),e.YNc(7,me,6,4,"ng-container",28)(8,Se,3,0,"ng-container",28),e.qZA()()}if(2&Z){const Oe=Pt.$implicit,ye=Pt.index,ve=e.oxw(3);e.ekj("first",0===ye),e.xp6(2),e.Gre("icon icon-",Oe.icon,""),e.xp6(2),e.hij("",Oe.label," "),e.xp6(3),e.Q6J("ngIf",ve.hasQueryParams(Oe)),e.xp6(),e.Q6J("ngIf",!ve.hasQueryParams(Oe))}}function We(Z,Pt){if(1&Z&&(e.ynx(0),e.YNc(1,Ue,9,8,"a",32),e.BQk()),2&Z){const Oe=e.oxw().ngIf;e.xp6(),e.Q6J("ngForOf",Oe)}}function et(Z,Pt){if(1&Z&&(e.ynx(0),e.YNc(1,We,2,1,"ng-container",14),e.BQk()),2&Z){const Oe=Pt.ngIf;e.oxw();const ye=e.MAs(1);e.xp6(),e.Q6J("ngIf",Oe.length>0)("ngIfElse",ye)}}const Et=Z=>({pinned:Z}),lt=()=>({width:"100%",height:"100%"}),Vt=Z=>({open:Z});let r=(()=>{class Z{constructor(Oe,ye,ve,ft,Dt,Rn,ti,Xt){this.entityListsDataAccessService=Oe,this.translationService=ye,this.authenticationService=ve,this.router=ft,this.quickAccess=Dt,this.entitiesMgrService=Rn,this.readI18nPipe=ti,this.entityListNavigateService=Xt,this.filterCriteriaEntityMap=new Map([["language4App","Language"],["language","Language"],["clientIds","Client"],["entityState","EntityState"],["deliveryChannel","DeliveryChannel"],["prioLevel","PrioLevel"],["productlineIds","Productline"],["regionIds","Region"],["addressPoiTypes","AddressPoiType"],["creationUser","User"],["mediaProvider","MediaProvider"],["mediaType","MediaType"],["mediaLicense","MediaLicense"],["category","PooledMediumCategory"]]),this.filterResourceBundleKeyMap=new Map([["true","imxplatform.entity-list.search-history.true"],["false","imxplatform.entity-list.search-history.false"],["EXACT","filter.Media.exactOption"],["AND","filter.Media.andOption"],["OR","filter.Media.andOption"],["DEACTIVATED","entity.EntityState.deactivated"],["IN_PROGRESS","entity.EntityState.in_progress"],["PUBLISHED","entity.EntityState.published"],["PUBLISH_REFUSED","entity.EntityState.publish_refused"],["NEW","entity.EntityState.new"],["DUPLICATE","entity.EntityState.duplicate"],["withoutClasses","imxplatform.entity-list.search-history.false"],["withoutSubClasses","imxplatform.entity-list.search-history.true"],["notEmpty","imxplatform.component.compare.comparators.notEmpty"],["empty","imxplatform.component.compare.comparators.empty"],["between","imxplatform.component.compare.comparators.between"]]),this.formattedSearchQueries=new Map,this.openBlocks={searchHistory:!1,searchList:!1,objectHistory:!1,objectList:!1},this.isPinnedMode=!1,this.navigated=new e.vpe,this.destroy$=new s.xQ}ngOnInit(){if(this.entityIdTranslationMap$=new Map,this.quickAccess.getOpenBlocks().pipe((0,c.R)(this.destroy$)).subscribe(Oe=>this.openBlocks={...this.openBlocks,...Oe}),this.entityListsDataAccessService.forceReload(),this.searchLists$=this.entityListsDataAccessService.searchLists$(),this.objectLists$=this.entityListsDataAccessService.objectLists$(),this.searchHistory$=this.entityListsDataAccessService.searchHistory$(),this.objectHistory$=this.entityListsDataAccessService.objectHistory$(),this.isPinnedMode){const Oe=this.authenticationService.getAuthenticatedFlag();(0,l.aj)([Oe,this.router.events]).pipe((0,c.R)(this.destroy$)).subscribe(([ye,ve])=>{ye&&ve instanceof n.m2&&this.entityListsDataAccessService.forceReload()})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}pin(){this.quickAccess.pinAccess(this.openBlocks),this.navigated.emit()}close(){this.quickAccess.removePinnedAccess()}navigate(Oe){this.entityListNavigateService.navigateToEntityList(Oe),this.navigated.emit()}itemClicked(){this.navigated.emit()}loadLanguageTranslation(Oe,ye){return this.entitiesMgrService.getAllEntitiesOfType(Oe).pipe((0,o.U)(ve=>this.readI18nPipe.transform(ve.items.find(ft=>ft.name===ye).i18nName)))}loadEntityTranslation(Oe,ye){return this.entitiesMgrService.getEntityWithIdOfType(Oe,ye).pipe((0,o.U)(ve=>["Productline","Region","AddressPoiType","MediaLicense","PooledMediumCategory"].includes(Oe)?this.readI18nPipe.transform(ve.i18nName):["User"].includes(Oe)?ve.loginname:ve.name),(0,x.K)(()=>(0,i.of)(ye)))}getResourceBundleKeyTranslation(Oe){return this.filterResourceBundleKeyMap.get(Oe)?(0,i.of)(this.translationService.instant(this.filterResourceBundleKeyMap.get(Oe))):(0,i.of)(Oe)}getResourceBundleKeyTranslationString(Oe){return this.filterResourceBundleKeyMap.get(Oe)?this.translationService.instant(this.filterResourceBundleKeyMap.get(Oe)):Oe}queryEntityIdTranslationMap$(Oe,ye){return this.entityIdTranslationMap$.get(ye).get(Oe)||((0,p.k)(Oe)?this.entityIdTranslationMap$.get(ye).set(Oe,this.loadEntityTranslation(this.filterCriteriaEntityMap.get(ye),+Oe)):this.entityIdTranslationMap$.get(ye).set(Oe,this.loadLanguageTranslation(this.filterCriteriaEntityMap.get(ye),Oe))),this.entityIdTranslationMap$.get(ye).get(Oe)}transformHtmlEncoding(Oe){return Oe.includes("%7B")||Oe.includes("%7D")||Oe.includes("%3C")||Oe.includes("%3D")||Oe.includes("%3E")||Oe.includes("equal")?Oe.replace(/%7B/g,"{").replace(/%3C/g,"<").replace(/%3E/g,">").replace(/equal/g,"=").replace(/%7D/g,"}"):Oe}getValueTranslation(Oe,ye){let ve=!1;const ft=[];return Oe.split(",").map(Dt=>{this.filterCriteriaEntityMap.get(ye)&&(ve=!0,this.entityIdTranslationMap$.get(ye)||this.entityIdTranslationMap$.set(ye,new Map),ft.push(this.queryEntityIdTranslationMap$(Dt,ye)))}),ve?(0,t.D)(ft).pipe((0,o.U)(Dt=>Dt.map(Rn=>this.getResourceBundleKeyTranslationString(Rn))),(0,o.U)(Dt=>Dt.join(", "))):this.getResourceBundleKeyTranslation(this.transformHtmlEncoding(Oe))}getKeyTranslation(Oe,ye){return this.translationService.instant("filter."+Oe+"."+ye)}formatSearchQueries(Oe,ye){const ve=this.formattedSearchQueries.get(Oe.entity.entityType+"-"+Oe.entity.id);if(ve)return ve;{const ft=[];return Object.keys(Oe.queryParams).filter(Dt=>"navigated"!==Dt&&"adjusted"!==Dt).slice(0,ye).forEach((Dt,Rn)=>{Rn<ye-1?ft.push(this.getValueTranslation(Oe.queryParams[Dt],Dt).pipe((0,o.U)(ti=>this.getKeyTranslation(Oe.entity.entityType,Dt)+": "+ti))):Rn===ye-1&&Object.keys(Oe.queryParams).length>ye?ft.push((0,i.of)("...")):Rn===ye-1&&Object.keys(Oe.queryParams).length===ye&&ft.push(this.getValueTranslation(Oe.queryParams[Dt],Dt).pipe((0,o.U)(ti=>this.getKeyTranslation(Oe.entity.entityType,Dt)+": "+ti)))}),this.formattedSearchQueries.set(Oe.entity.entityType+"-"+Oe.entity.id,ft),ft}}hasQueryParams(Oe){return Oe.queryParams&&Object.keys(Oe.queryParams).filter(ye=>"navigated"!==ye&&"adjusted"!==ye).length>0}static#e=this.\u0275fac=function(ye){return new(ye||Z)(e.Y36(m.$),e.Y36(I.sK),e.Y36(u.$h),e.Y36(n.F0),e.Y36(H.I),e.Y36(u.qB),e.Y36(O.j),e.Y36(u.ir))};static#t=this.\u0275cmp=e.Xpm({type:Z,selectors:[["imx-quick-access-content"]],viewQuery:function(ye,ve){if(1&ye&&e.Gf(J,5),2&ye){let ft;e.iGM(ft=e.CRH())&&(ve.quickaccesstooltip=ft.first)}},inputs:{isPinnedMode:"isPinnedMode"},outputs:{navigated:"navigated"},decls:53,vars:52,consts:[["noItems",""],[1,"navigation-wrapper",3,"ngClass"],[1,"sidebar-header"],[1,"title"],["translate",""],["class","menu-button pin-quick-access",3,"click",4,"ngIf"],["class","menu-button pin-quick-access hide-on-small",3,"click",4,"ngIf"],[1,"navigation-scroll-wrapper"],[1,"navigation-item-wrapper"],[1,"navigation-action-item",3,"ngClass","click"],[1,"icon-wrapper"],[1,"icon","icon-clipboard"],["translate","",1,"label"],[1,"navigation-sub-item-wrapper",3,"ngClass"],[4,"ngIf","ngIfElse"],[1,"icon","icon-star"],[1,"icon","icon-files"],["translate","",1,"wrapper-label"],[1,"icon","icon-magnifier"],["routerLinkActive","active","routerLink","entitylistmgmt",1,"navigation-action-item",3,"click"],[1,"icon","icon-cog"],[1,"navigation-action-item"],[1,"menu-button","pin-quick-access",3,"click"],[1,"icon-cross","imx-icon-big"],[1,"menu-button","pin-quick-access","hide-on-small",3,"click"],[1,"icon-pin","imx-icon-big"],["class","navigation-action-item","routerLinkActive","active",3,"first","routerLink","queryParams","navigation-action-item--modified","click",4,"ngFor","ngForOf"],["routerLinkActive","active",1,"navigation-action-item",3,"routerLink","queryParams","click"],[4,"ngIf"],[1,"label"],["translate","",1,"txt-ellipsis"],[1,"time-stamp"],["class","navigation-action-item","routerLinkActive","active",3,"first","click",4,"ngFor","ngForOf"],["routerLinkActive","active",1,"navigation-action-item",3,"click"],["translate","",1,"label","txt-ellipsis"],["class","navigation-action-item","routerLinkActive","active",3,"first","routerLink","queryParams","click",4,"ngFor","ngForOf"],["translate","",1,"label",3,"mouseenter","mouseleave"],["quickaccesstooltip",""],[4,"ngFor","ngForOf"]],template:function(ye,ve){if(1&ye&&(e.YNc(0,q,4,0,"ng-template",null,0,e.W1O),e.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"span",4),e._uU(6,"imxplatform.entity-list.sidebar.title"),e.qZA()(),e.YNc(7,j,2,0,"button",5)(8,Y,2,0,"button",6),e.qZA(),e.TgZ(9,"div",7)(10,"p-scrollPanel")(11,"div",8)(12,"a",9),e.NdJ("click",function(){return ve.openBlocks.objectHistory=!ve.openBlocks.objectHistory}),e.TgZ(13,"div",10),e._UZ(14,"span",11),e.qZA(),e.TgZ(15,"div",12),e._uU(16,"imxplatform.entity-list.object-history.title"),e.qZA()(),e.TgZ(17,"div",13),e.YNc(18,$,2,2,"ng-container",14),e.ALo(19,"async"),e.qZA()(),e.TgZ(20,"div",8)(21,"a",9),e.NdJ("click",function(){return ve.openBlocks.searchList=!ve.openBlocks.searchList}),e.TgZ(22,"div",10),e._UZ(23,"span",15),e.qZA(),e.TgZ(24,"div",12),e._uU(25,"imxplatform.entity-list.search-list.title"),e.qZA()(),e.TgZ(26,"div",13),e.YNc(27,Ke,2,2,"ng-container",14),e.ALo(28,"async"),e.qZA()(),e.TgZ(29,"div",8)(30,"a",9),e.NdJ("click",function(){return ve.openBlocks.objectList=!ve.openBlocks.objectList}),e.TgZ(31,"div",10),e._UZ(32,"span",16),e.qZA(),e.TgZ(33,"div",17),e._uU(34,"imxplatform.entity-list.object-list.title"),e.qZA()(),e.TgZ(35,"div",13),e.YNc(36,R,2,2,"ng-container",14),e.ALo(37,"async"),e.qZA()(),e.TgZ(38,"div",8)(39,"a",9),e.NdJ("click",function(){return ve.openBlocks.searchHistory=!ve.openBlocks.searchHistory}),e.TgZ(40,"div",10),e._UZ(41,"span",18),e.qZA(),e.TgZ(42,"div",17),e._uU(43,"imxplatform.entity-list.search-history.title"),e.qZA()(),e.TgZ(44,"div",13),e.YNc(45,et,2,2,"ng-container",14),e.ALo(46,"async"),e.qZA()(),e.TgZ(47,"div",8)(48,"a",19),e.NdJ("click",function(){return ve.itemClicked()}),e.TgZ(49,"div",10),e._UZ(50,"span",20),e.qZA(),e.TgZ(51,"div",17),e._uU(52,"imxplatform.entity-list.sidebar.edit-lists"),e.qZA()()()()()()),2&ye){const ft=e.MAs(1);e.xp6(2),e.Q6J("ngClass",e.VKq(33,Et,ve.isPinnedMode)),e.xp6(5),e.Q6J("ngIf",ve.isPinnedMode),e.xp6(),e.Q6J("ngIf",!ve.isPinnedMode),e.xp6(2),e.Akn(e.DdM(35,lt)),e.xp6(2),e.Q6J("ngClass",e.VKq(36,Vt,ve.openBlocks.objectHistory)),e.xp6(5),e.Q6J("@openClose",ve.openBlocks.objectHistory?"open":"closed")("ngClass",e.VKq(38,Vt,ve.openBlocks.objectHistory)),e.xp6(),e.Q6J("ngIf",e.lcZ(19,25,ve.objectHistory$))("ngIfElse",ft),e.xp6(3),e.Q6J("ngClass",e.VKq(40,Vt,ve.openBlocks.searchList)),e.xp6(5),e.Q6J("@openClose",ve.openBlocks.searchList?"open":"closed")("ngClass",e.VKq(42,Vt,ve.openBlocks.searchList)),e.xp6(),e.Q6J("ngIf",e.lcZ(28,27,ve.searchLists$))("ngIfElse",ft),e.xp6(3),e.Q6J("ngClass",e.VKq(44,Vt,ve.openBlocks.objectList)),e.xp6(5),e.Q6J("@openClose",ve.openBlocks.objectList?"open":"closed")("ngClass",e.VKq(46,Vt,ve.openBlocks.objectList)),e.xp6(),e.Q6J("ngIf",e.lcZ(37,29,ve.objectLists$))("ngIfElse",ft),e.xp6(3),e.Q6J("ngClass",e.VKq(48,Vt,ve.openBlocks.searchHistory)),e.xp6(5),e.Q6J("@openClose",ve.openBlocks.searchHistory?"open":"closed")("ngClass",e.VKq(50,Vt,ve.openBlocks.searchHistory)),e.xp6(),e.Q6J("ngIf",e.lcZ(46,31,ve.searchHistory$))("ngIfElse",ft)}},dependencies:[P.mk,P.sg,P.O5,n.rH,n.Od,I.Pi,G.P,B.j,ae.F,P.Ov,I.X$],styles:['.navigation-header[_ngcontent-%COMP%]{width:100%;height:85px;display:flex;flex-direction:column;align-items:center}.navigation-header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-top:20px;height:32px}.navigation-wrapper[_ngcontent-%COMP%]{position:relative;background-color:#e6e9ef;font-size:15px;min-height:100%}.navigation-wrapper[_ngcontent-%COMP%]   .navigation-about-link[_ngcontent-%COMP%]{position:absolute;bottom:10px;text-align:center;width:100%;font-size:12px}.navigation-action-item[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;overflow:hidden;text-decoration:none;height:50px;padding-right:20px}.navigation-action-item[_ngcontent-%COMP%]   .icon-wrapper[_ngcontent-%COMP%]{min-width:min(20%,60px);display:flex;align-items:center;justify-content:center}.navigation-action-item[_ngcontent-%COMP%]   .icon-wrapper[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:25px;max-width:25px}.navigation-action-item[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{overflow:hidden;position:relative}.navigation-action-item.disabled[_ngcontent-%COMP%]{cursor:default;color:#ced4e0}.navigation-action-item.open[_ngcontent-%COMP%]{background-color:#fff}.navigation-sub-item-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;font-size:14px}.navigation-sub-item-wrapper[_ngcontent-%COMP%]   .navigation-action-item[_ngcontent-%COMP%]{padding-left:min(7%,35px)}.navigation-sub-item-wrapper[_ngcontent-%COMP%]   .navigation-action-item[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:20px;max-width:20px}.navigation-sub-item-wrapper.open[_ngcontent-%COMP%]   .navigation-action-item[_ngcontent-%COMP%]{background-color:#ffffff80}.navigation-item-wrapper[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #ced4e0}.navigation-wrapper[_ngcontent-%COMP%]{height:100vh}.navigation-wrapper.pinned[_ngcontent-%COMP%]{height:100%}.navigation-wrapper[_ngcontent-%COMP%]   .sidebar-header[_ngcontent-%COMP%]{height:50px;width:100%;color:#fff;display:flex;align-items:center;text-align:center}.navigation-wrapper[_ngcontent-%COMP%]   .sidebar-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%], .navigation-wrapper[_ngcontent-%COMP%]   .sidebar-header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:20px;line-height:24px}.navigation-wrapper[_ngcontent-%COMP%]   .sidebar-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{flex:1}@media (max-width: 900px){.navigation-wrapper[_ngcontent-%COMP%]   .hide-on-small[_ngcontent-%COMP%]{display:none}}.navigation-wrapper[_ngcontent-%COMP%]   .navigation-scroll-wrapper[_ngcontent-%COMP%]{height:calc(100% - 50px)}.navigation-wrapper[_ngcontent-%COMP%]   .navigation-scroll-wrapper[_ngcontent-%COMP%]     .p-scrollpanel-content{padding:0 0 18px}.navigation-action-item.active[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{position:relative}.navigation-action-item.active[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child:after{content:"";position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;border-bottom-width:7px;z-index:-1}.time-stamp[_ngcontent-%COMP%]{font-size:12px}.navigation-action-item--modified[_ngcontent-%COMP%]{font-style:italic}.menu-button.pin-quick-access[_ngcontent-%COMP%]{color:#fff}'],data:{animation:b.l}})}return Z})()},97550:(gt,X,a)=>{"use strict";a.d(X,{U:()=>p});var e=a(54320),n=a(46939),s=a(19212),l=a(43425),i=a(71577);const t=["quickaccesstooltip"];let p=(()=>{class c extends n.x{constructor(x,u){super(),this.data=x,this.quickAccess=u,this.quickAccess.setOpenBlocks(x.openBlocks)}closeSidebar(){this.sidenav&&this.sidenav.close()}static#e=this.\u0275fac=function(u){return new(u||c)(s.Y36(e.A,8),s.Y36(l.I))};static#t=this.\u0275cmp=s.Xpm({type:c,selectors:[["ng-component"]],viewQuery:function(u,m){if(1&u&&s.Gf(t,5),2&u){let b;s.iGM(b=s.CRH())&&(m.quickaccesstooltip=b.first)}},features:[s.qOj],decls:1,vars:1,consts:[[3,"isPinnedMode","navigated"]],template:function(u,m){1&u&&(s.TgZ(0,"imx-quick-access-content",0),s.NdJ("navigated",function(){return m.closeSidebar()}),s.qZA()),2&u&&s.Q6J("isPinnedMode",!1)},dependencies:[i.w]})}return c})()},25465:(gt,X,a)=>{"use strict";a.d(X,{$:()=>I});var e=a(19212),n=a(72079),s=a(19352),l=a(6128),i=a(36681),t=a(96814),p=a(74961),c=a(71365);function o(H,O){if(1&H){const P=e.EpF();e.TgZ(0,"imx-action-menu-item",2),e.NdJ("actionClicked",function(){const ae=e.CHM(P).$implicit,J=e.oxw(2);return J.executeAction.emit(ae),e.KtG(J.handleClickEvent())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&H){const P=O.$implicit;e.Q6J("icon",P.getIcon()),e.xp6(),e.hij(" ",e.lcZ(2,2,P.getActionLabelKey())," ")}}function x(H,O){if(1&H){const P=e.EpF();e.ynx(0),e.TgZ(1,"imx-action-menu-item",3),e.NdJ("actionClicked",function(){const ae=e.CHM(P).ngIf,J=e.oxw(2);return J.executeAction.emit(ae),e.KtG(J.handleClickEvent())}),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.BQk()}if(2&H){const P=O.ngIf;e.xp6(),e.Q6J("icon",P.getIcon())("additionalStyle","icon-trash"===P.getIcon()?"delete":""),e.xp6(),e.hij(" ",e.lcZ(3,3,P.getActionLabelKey())," ")}}function u(H,O){if(1&H&&(e.ynx(0),e.YNc(1,o,3,4,"ng-template",1),e.Hsn(2,1),e.YNc(3,x,4,5,"ng-container",0),e.BQk()),2&H){const P=e.oxw();e.xp6(),e.Q6J("ngForOf",P.sortedActions),e.xp6(2),e.Q6J("ngIf",P.deleteAction)}}const m=[[["","search-list-action-menu-top",""]],[["","search-list-action-menu-middle",""]]],b=["[search-list-action-menu-top]","[search-list-action-menu-middle]"];let I=(()=>{class H{constructor(P){this.parentDropupButton=P,this.actions=[],this.isBlockedByAction=!1,this.executeAction=new e.vpe,this.sortedActions=[],this.destroy$=new n.xQ,this.destroyMenuItemListeners$=new n.xQ}ngOnChanges(P){P.actions&&(this.deleteAction=this.actions.find(G=>G.isDeleteAction()),this.sortedActions=this.actions.filter(G=>!G.isDeleteAction()).sort((G,B)=>G.getOrder()-B.getOrder()))}ngAfterViewInit(){this.registerClickListeners(),this.menuItems.changes.pipe((0,s.R)(this.destroy$)).subscribe(this.registerClickListeners.bind(this))}ngOnDestroy(){this.destroyMenuItemListeners$.next(),this.destroyMenuItemListeners$.complete(),this.destroy$.next(),this.destroy$.complete()}registerClickListeners(){this.destroyMenuItemListeners$.next(),this.menuItems.forEach(P=>{P.actionClicked.pipe((0,s.R)(this.destroyMenuItemListeners$)).subscribe(()=>{this.handleClickEvent()})})}handleClickEvent(){this.parentDropupButton&&this.parentDropupButton.close()}static#e=this.\u0275fac=function(G){return new(G||H)(e.Y36(i.t,9))};static#t=this.\u0275cmp=e.Xpm({type:H,selectors:[["imx-search-list-action-menu"]],contentQueries:function(G,B,ae){if(1&G&&e.Suo(ae,l.z,4),2&G){let J;e.iGM(J=e.CRH())&&(B.menuItems=J)}},inputs:{actions:"actions",isBlockedByAction:"isBlockedByAction"},outputs:{executeAction:"executeAction"},features:[e.TTD],ngContentSelectors:b,decls:3,vars:1,consts:[[4,"ngIf"],["ng-template","","ngFor","",3,"ngForOf"],[3,"icon","actionClicked"],[3,"icon","additionalStyle","actionClicked"]],template:function(G,B){1&G&&(e.F$t(m),e.TgZ(0,"imx-action-menu"),e.Hsn(1),e.YNc(2,u,4,2,"ng-container",0),e.qZA()),2&G&&(e.xp6(2),e.Q6J("ngIf",!B.isBlockedByAction))},dependencies:[t.sg,t.O5,p.p,l.z,c.X$]})}return H})()},46939:(gt,X,a)=>{"use strict";a.d(X,{x:()=>e});class e{}},20883:(gt,X,a)=>{"use strict";a.d(X,{u:()=>r});var e=a(49193),n=a(23291),s=a(51418),l=a(96124),i=a(96743),t=a(75222),p=a(21473),c=a(22819),o=a(56758),x=a(58320),u=a(18051),m=a(59143),b=a(86313),I=a(83010),H=a(46939),O=a(19212),P=a(71365),G=a(66791),B=a(1614),ae=a(96814),J=a(56223),q=a(92596),j=a(67338),Y=a(50308);let K=(()=>{class Z extends Y.o{static#e=this.\u0275fac=(()=>{let Oe;return function(ve){return(Oe||(Oe=O.n5z(Z)))(ve||Z)}})();static#t=this.\u0275cmp=O.Xpm({type:Z,selectors:[["imx-delete-icon"]],features:[O.qOj],decls:1,vars:2,consts:[["icon","trash",3,"isClickable","size"]],template:function(ye,ve){1&ye&&O._UZ(0,"imx-icon",0),2&ye&&O.Q6J("isClickable",ve.isClickable)("size",ve.size)},dependencies:[Y.o],styles:["imx-icon[_ngcontent-%COMP%]     span{color:#96172e}"]})}return Z})();var ne=a(77958),ee=a(67849),$=a(10444),ue=a(40395),ge=a(59626);function Ke(Z,Pt){if(1&Z){const Oe=O.EpF();O.TgZ(0,"div",3)(1,"div")(2,"h2"),O._uU(3),O.ALo(4,"translate"),O.qZA(),O.TgZ(5,"div",4),O._uU(6),O.qZA()(),O.TgZ(7,"imx-icon",5),O.NdJ("click",function(){O.CHM(Oe);const ve=O.oxw();return O.KtG(ve.sidenav.close())}),O.qZA()()}if(2&Z){const Oe=O.oxw();O.xp6(3),O.Oqu(O.lcZ(4,3,"imxplatform.memo.heading")),O.xp6(3),O.Oqu(Oe.subHeader),O.xp6(),O.Q6J("isClickable",!0)}}function at(Z,Pt){if(1&Z){const Oe=O.EpF();O.ynx(0),O.TgZ(1,"div",11)(2,"span"),O._uU(3),O.ALo(4,"translate"),O.qZA(),O.TgZ(5,"div",12)(6,"imx-base-select",13),O.NdJ("ngModelChange",function(ve){O.CHM(Oe);const ft=O.oxw(2);return O.KtG(ft.selectedMemoAttributeGroupId=ve)})("ngModelChange",function(){O.CHM(Oe);const ve=O.oxw(2);return O.KtG(ve.loadMemoAttributes())}),O.qZA()()(),O.BQk()}if(2&Z){const Oe=O.oxw(2);O.xp6(3),O.hij("",O.lcZ(4,3,"imxplatform.memo.attribute-group"),":"),O.xp6(3),O.Q6J("ngModel",Oe.selectedMemoAttributeGroupId)("options",Oe.availableMemoGroups)}}function Le(Z,Pt){if(1&Z){const Oe=O.EpF();O.ynx(0),O.TgZ(1,"div",11)(2,"span"),O._uU(3),O.ALo(4,"translate"),O.qZA(),O.TgZ(5,"div",12)(6,"imx-base-select",13),O.NdJ("ngModelChange",function(ve){O.CHM(Oe);const ft=O.oxw(2);return O.KtG(ft.selectedMemoAttributeId=ve)}),O.qZA()()(),O.BQk()}if(2&Z){const Oe=O.oxw(2);O.xp6(3),O.hij("",O.lcZ(4,3,"imxplatform.memo.attribute"),":"),O.xp6(3),O.Q6J("ngModel",Oe.selectedMemoAttributeId)("options",Oe.availableMemoAttributes)}}function R(Z,Pt){if(1&Z){const Oe=O.EpF();O.ynx(0),O.TgZ(1,"imx-base-checkbox",8),O.NdJ("ngModelChange",function(ve){O.CHM(Oe);const ft=O.oxw(2);return O.KtG(ft.shareNewMemo=ve)}),O._uU(2),O.ALo(3,"translate"),O.qZA(),O.BQk()}if(2&Z){const Oe=O.oxw(2);O.xp6(),O.Q6J("ngModel",Oe.shareNewMemo),O.xp6(),O.Oqu(O.lcZ(3,2,"imxplatform.memo.shared"))}}function Te(Z,Pt){if(1&Z){const Oe=O.EpF();O.TgZ(0,"div",6),O.YNc(1,at,7,5,"ng-container",7)(2,Le,7,5,"ng-container",7),O.TgZ(3,"imx-base-multi-input",8),O.NdJ("ngModelChange",function(ve){O.CHM(Oe);const ft=O.oxw();return O.KtG(ft.newMemo=ve)}),O.qZA(),O.YNc(4,R,4,4,"ng-container",9),O.TgZ(5,"button",10),O.NdJ("click",function(){O.CHM(Oe);const ve=O.oxw();return O.KtG(ve.createNewMemo())}),O._uU(6),O.ALo(7,"translate"),O.qZA()()}if(2&Z){const Oe=O.oxw();O.xp6(),O.Q6J("ngIf",Oe.memoAttributeGroupsAvailable),O.xp6(),O.Q6J("ngIf",Oe.memoAttributesAvailable),O.xp6(),O.Q6J("ngModel",Oe.newMemo),O.xp6(),O.Q6J("hasAnyPermission",Oe.memoMarkPrivatePermissionStr),O.xp6(),O.Q6J("disabled",!Oe.data.entityId||-1!==Oe.selectedMemoAttributeGroupId&&-1===Oe.selectedMemoAttributeId||0==Oe.newMemo.length&&-1===Oe.selectedMemoAttributeId),O.xp6(),O.hij(" ",O.lcZ(7,6,"imxplatform.memo.saveMemo")," ")}}function me(Z,Pt){1&Z&&(O.TgZ(0,"div",17),O._uU(1),O.ALo(2,"translate"),O.qZA()),2&Z&&(O.xp6(),O.hij(" ",O.lcZ(2,1,"imxplatform.memo.noNotesAvailable")," "))}function Se(Z,Pt){1&Z&&(O._UZ(0,"imx-icon",24),O.ALo(1,"translate")),2&Z&&O.s9C("matTooltip",O.lcZ(1,1,"imxplatform.memo.private"))}function Ue(Z,Pt){if(1&Z){const Oe=O.EpF();O.TgZ(0,"imx-delete-icon",25),O.NdJ("click",function(){O.CHM(Oe);const ve=O.oxw().$implicit,ft=O.oxw(3);return O.KtG(ft.handleDeleteIconClick(ve))}),O.qZA()}2&Z&&O.Q6J("isClickable",!0)}function We(Z,Pt){if(1&Z&&(O.ynx(0),O.TgZ(1,"div",26)(2,"div",27),O._uU(3),O.ALo(4,"readI18n"),O.ALo(5,"readI18n"),O.qZA()(),O.BQk()),2&Z){const Oe=O.oxw().$implicit;O.xp6(3),O.lnq(" ",O.lcZ(4,3,null==Oe.memoAttribute||null==Oe.memoAttribute.attributeGroup?null:Oe.memoAttribute.attributeGroup.i18nName)," ",Oe.memoAttribute.attributeGroup?" - ":""," ",O.lcZ(5,5,null==Oe.memoAttribute?null:Oe.memoAttribute.i18nName)," ")}}function et(Z,Pt){if(1&Z&&(O.TgZ(0,"div",19)(1,"div",20),O._UZ(2,"imx-memo-icon"),O.TgZ(3,"div"),O._uU(4),O.qZA(),O.YNc(5,Se,2,3,"imx-icon",21)(6,Ue,1,1,"imx-delete-icon",22),O.qZA(),O.YNc(7,We,6,7,"ng-container",7),O.TgZ(8,"div",23),O._uU(9),O.qZA()()),2&Z){const Oe=Pt.$implicit,ye=O.oxw(3);O.xp6(4),O.Oqu(ye.getMemoTitle(Oe)),O.xp6(),O.Q6J("ngIf",!Oe.shared),O.xp6(),O.Q6J("hasAnyPermission",ye.memoDeletePermissionStr),O.xp6(),O.Q6J("ngIf",(null==Oe.memoAttribute?null:Oe.memoAttribute.id)>-1),O.xp6(2),O.hij(" ",Oe.note," ")}}const Et=()=>({width:"100%",height:"100%"});function lt(Z,Pt){if(1&Z&&(O.TgZ(0,"p-scrollPanel"),O.YNc(1,et,10,5,"div",18),O.qZA()),2&Z){const Oe=O.oxw(2);O.Akn(O.DdM(3,Et)),O.xp6(),O.Q6J("ngForOf",Oe.memos)}}function Vt(Z,Pt){if(1&Z&&(O.TgZ(0,"div",14),O.YNc(1,me,3,3,"div",15)(2,lt,2,4,"ng-template",null,16,O.W1O),O.qZA()),2&Z){const Oe=O.MAs(3),ye=O.oxw();O.xp6(),O.Q6J("ngIf",0===ye.memos.length)("ngIfElse",Oe)}}let r=(()=>{class Z extends H.x{constructor(Oe,ye,ve,ft,Dt,Rn,ti,Xt,Je,dt,Ie,ot,ct){super(),this.formatterService=Oe,this.platformDataAccessService=ye,this.imxEntitiesMgrService=ve,this.userMessageService=ft,this.translationService=Dt,this.dialogService=Rn,this.readI18nPipe=ti,this.memoProvider=Xt,this.memoAttributeOptionProvider=Je,this.memoAttributeGroupOptionProviderService=dt,this.translateService=Ie,this.securityManagerService=ot,this.data=ct,this.memos=[],this.newMemo="",this.shareNewMemo=1,this.selectedMemoAttributeId=-1,this.selectedMemoAttributeGroupId=-1,this.memoAttributesAvailable=!1,this.memoAttributeGroupsAvailable=!1,this.memoReadPermissionStr=p.uo.F_MEMO_MANAGEMENT_READ.name,this.memoWritePermissionStr=p.uo.F_MEMO_MANAGEMENT_CREATE.name,this.memoDeletePermissionStr=p.uo.F_MEMO_MANAGEMENT_DELETE.name,this.memoMarkPrivatePermissionStr=p.uo.F_MEMO_MANAGEMENT_MARK_PRIVATE.name}ngOnInit(){this.memoAttributeGroupOptionProviderService.getOptions(null,null).subscribe(Oe=>{if(Oe.length>1){const ye=[];ye.push({label:this.translateService.instant("imxplatform.memo.no-attribute-group"),value:-1}),ye.push(...Oe),this.availableMemoGroups=ye,Oe&&Oe.length>1?this.memoAttributeGroupsAvailable=!0:this.loadMemoAttributes()}else this.loadMemoAttributes()}),this._loadMemos()}loadMemoAttributes(){this.selectedMemoAttributeId=-1,(this.memoAttributeGroupsAvailable&&this.selectedMemoAttributeGroupId?this.memoAttributeOptionProvider.getOptionsByGroupId(null,null,this.selectedMemoAttributeGroupId):this.memoAttributeOptionProvider.getOptions(null,null)).subscribe(ye=>{const ve=[];ve.push({label:this.translateService.instant("imxplatform.memo.no-attribute"),value:-1}),ve.push(...ye),this.availableMemoAttributes=ve,ye&&ye.length>0&&(this.memoAttributesAvailable=!0)})}_loadMemos(){this.memoProvider.getMemos(this.data.memosEntityType,this.data.entityId).pipe((0,s.q)(1),(0,l.U)(Oe=>Oe.map(ye=>this._extendMemoWithCompleteUserInformation(ye))),(0,i.zg)(Oe=>Oe.length?(0,n.aj)(...Oe):(0,e.of)(Oe))).subscribe(Oe=>{Oe.forEach(ye=>{ye.memoAttribute||(ye.memoAttribute={id:-1})}),this.memos=this._sortMemosDescendingByCreationDate(Oe)},()=>{this._showErrorMessage("imxplatform.memo.loadMemosError")})}_loadCompleteUserObject({id:Oe}){return this.imxEntitiesMgrService.getEntityWithIdOfType("User",Oe)}_sortMemosDescendingByCreationDate(Oe){return Oe.sort((ye,ve)=>this._getCreationTimeAsDate(ye)>this._getCreationTimeAsDate(ve)?-1:1)}_getCreationTimeAsDate(Oe){return new Date(Oe.creationTime)}get _allRequiredDataAvailable(){return void 0!==this.data.memosEntityType&&void 0!==this.data.entityId}get subHeader(){const Oe=this.data.memosEntityTitle?this.readI18nPipe.transform(this.data.memosEntityTitle):null;return[`ID: ${this.data.entityId?this.data.entityId:""}`,Oe].filter(ye=>!!ye).join(", ")}createNewMemo(){this.platformDataAccessService.createMemo$({note:this.newMemo,shared:!!this.shareNewMemo,entityId:this.data.entityId,entityType:this.data.memosEntityType,memoAttribute:-1===this.selectedMemoAttributeId?null:{id:this.selectedMemoAttributeId}}).pipe((0,s.q)(1),(0,t.w)(ye=>this._extendMemoWithCompleteUserInformation(ye))).subscribe(ye=>{this._clearTextArea(),this._addCreatedMemoToList(ye),this.memoProvider.clearAll(),this.memoProvider.loadMemoCountsForEntities(this.data.memosEntityType,[this.data.entityId],!0)},()=>{this._showErrorMessage("imxplatform.memo.saveMemoError")})}_extendMemoWithCompleteUserInformation(Oe){const{user:ye,...ve}=Oe;return this._loadCompleteUserObject(ye).pipe((0,l.U)(ft=>({...ve,user:ft})))}_clearTextArea(){this.newMemo=""}_addCreatedMemoToList(Oe){const ye=[...this.memos];Oe.memoAttribute||(Oe.memoAttribute={id:-1}),ye.unshift(Oe),this.memos=ye}handleDeleteIconClick(Oe){this._showDeleteDialog(Oe)}_showDeleteDialog(Oe){this.dialogService.openDialog(b.F,{i18n:"imxplatform.memo.deleteDialog.content",title:this._createDynamicContentForDeleteDialog(Oe),dialogTitle:"imxplatform.memo.deleteDialog.heading",deleteButtonLabel:"imxplatform.memo.deleteDialog.buttonLabel"},{},()=>this._deleteMemo(Oe))}_deleteMemo(Oe){this.platformDataAccessService.deleteMemo$(Oe).pipe((0,s.q)(1)).subscribe(()=>{this._removeDeletedMemoFromList(Oe),this.memoProvider.clearAll(),this.memoProvider.loadMemoCountsForEntities(this.data.memosEntityType,[this.data.entityId],!0)},()=>{this._showErrorMessage("imxplatform.memo.deleteMemoError")})}_removeDeletedMemoFromList(Oe){const ye=[...this.memos],ve=ye.findIndex(ft=>ft.id===Oe.id);-1!==ve&&ye.splice(ve,1),this.memos=ye}_createDynamicContentForDeleteDialog(Oe){const ye=this.getMemoTitle(Oe);return`"${Oe.note}" (${ye})`}getMemoTitle(Oe){return`${this._getUserName(Oe.user)}, ${this._formatDate(Oe.creationTime)}`}_getUserName({loginname:Oe,firstname:ye,lastname:ve}){const ft=[ye,ve].filter(Dt=>!!Dt).join(" ");return ft.length>0?ft:Oe}_formatDate(Oe){return this.formatterService.formatDate(Oe,"dd.MM.YYYY")}_showErrorMessage(Oe){const ye=this.translationService.instant(Oe);this.userMessageService.showError(ye)}getMemoAttribute(Oe){return-1===Oe.memoAttribute?.id?null:Oe.memoAttribute}updateMemo(Oe,ye){}static#e=this.\u0275fac=function(ye){return new(ye||Z)(O.Y36(p.H1),O.Y36(c.nq),O.Y36(p.qB),O.Y36(m.Y),O.Y36(P.sK),O.Y36(G.x),O.Y36(B.j),O.Y36(u.o),O.Y36(x.b),O.Y36(o.U),O.Y36(P.sK),O.Y36(p.Xh),O.Y36(I.zn))};static#t=this.\u0275cmp=O.Xpm({type:Z,selectors:[["ng-component"]],features:[O.qOj],decls:4,vars:3,consts:[["class","header",4,"hasAnyPermission"],["class","new-memo-container",4,"hasAnyPermission"],["class","existing-memos",4,"hasAnyPermission"],[1,"header"],[1,"sub-header","txt-ellipsis"],["icon","chevron-rightBold",3,"isClickable","click"],[1,"new-memo-container"],[4,"ngIf"],[3,"ngModel","ngModelChange"],[4,"hasAnyPermission"],[1,"imx-button","prio2",3,"disabled","click"],[1,"memo-attr-wrapper","memo-attr-wrapper--input"],[1,"memo-attr-select"],[3,"ngModel","options","ngModelChange"],[1,"existing-memos"],["class","no-memos",4,"ngIf","ngIfElse"],["memosList",""],[1,"no-memos"],["class","memo",4,"ngFor","ngForOf"],[1,"memo"],[1,"memo-title"],["icon","eye-crossed","size","small",3,"matTooltip",4,"ngIf"],["size","small",3,"isClickable","click",4,"hasAnyPermission"],[1,"memo-content"],["icon","eye-crossed","size","small",3,"matTooltip"],["size","small",3,"isClickable","click"],[1,"memo-attr-wrapper"],[1,"memo-attr-display"]],template:function(ye,ve){1&ye&&(O.YNc(0,Ke,8,5,"div",0)(1,Te,8,8,"div",1),O._UZ(2,"hr"),O.YNc(3,Vt,4,2,"div",2)),2&ye&&(O.Q6J("hasAnyPermission",ve.memoReadPermissionStr),O.xp6(),O.Q6J("hasAnyPermission",ve.memoWritePermissionStr),O.xp6(2),O.Q6J("hasAnyPermission",ve.memoReadPermissionStr))},dependencies:[ae.sg,ae.O5,J.JJ,J.On,q.gM,j.P,K,Y.o,ne.G,ee.x,$.o,ue.T,ge.R,P.X$,B.j],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding-left:20px;height:100%}.header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:10px}.header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex:1;min-width:0;margin-right:5px}.header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .header[_ngcontent-%COMP%]   imx-icon[_ngcontent-%COMP%]     span{color:#000}hr[_ngcontent-%COMP%]{margin:15px 0 0;width:100%;border:none;border-top:1px solid #e6e9ef}.existing-memos[_ngcontent-%COMP%]{flex:1;min-height:0;padding:0 0 0 10px}.memo[_ngcontent-%COMP%]{border-bottom:1px solid #e6e9ef;padding:15px 18px 15px 0}  .memo .mat-mdc-select-arrow{color:#9da8c1!important}.memo-title[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 0 5px;position:relative}.memo-title[_ngcontent-%COMP%]   imx-memo-icon[_ngcontent-%COMP%]{margin-right:10px}.memo-title[_ngcontent-%COMP%]   imx-delete-icon[_ngcontent-%COMP%]{margin-left:10px}.memo-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex:1;color:#3e3e3e;font-size:14px;line-height:20px}.memo-title[_ngcontent-%COMP%] > imx-icon[_ngcontent-%COMP%]{position:absolute;left:3px;top:65%}.memo-content[_ngcontent-%COMP%], .no-memos[_ngcontent-%COMP%], .sub-header[_ngcontent-%COMP%]{font-size:14px;line-height:20px}button[_ngcontent-%COMP%], imx-base-checkbox[_ngcontent-%COMP%]{margin-top:10px}button[_ngcontent-%COMP%]{float:right}.memo-attr-wrapper[_ngcontent-%COMP%]{font-size:14px;width:100%}.memo-attr-wrapper.memo-attr-wrapper--input[_ngcontent-%COMP%]{line-height:30px;margin-bottom:15px}.memo-attr-wrapper[_ngcontent-%COMP%]:not(.memo-attr-wrapper--input){line-height:1em;margin-bottom:5px;text-align:right}.memo-attr-select[_ngcontent-%COMP%]{margin-left:10px;width:100%;min-width:150px;float:right}.memo-attr-display[_ngcontent-%COMP%]{font-style:italic}"]})}return Z})()},22415:(gt,X,a)=>{"use strict";a.d(X,{A:()=>o});var e=a(19212),n=a(96814),s=a(56223),l=a(87466),i=a(72197),t=a(71365);function p(x,u){if(1&x&&(e.TgZ(0,"mat-radio-button",11),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&x){const m=u.$implicit;e.Q6J("value",m.field),e.xp6(),e.hij(" ",e.lcZ(2,2,m.i18n)," ")}}function c(x,u){if(1&x){const m=e.EpF();e.TgZ(0,"div",6)(1,"div",7)(2,"mat-radio-group",8),e.NdJ("ngModelChange",function(I){e.CHM(m);const H=e.oxw();return e.KtG(H.orderFieldKey=I)})("change",function(){e.CHM(m);const I=e.oxw();return e.KtG(I.onFieldChanges())}),e.YNc(3,p,3,4,"mat-radio-button",9),e.qZA()(),e._UZ(4,"div",10),e.qZA()}if(2&x){const m=e.oxw();e.xp6(2),e.Q6J("ngModel",m.orderFieldKey),e.xp6(),e.Q6J("ngForOf",m.availableFields)}}let o=(()=>{class x{constructor(){this.orderChanged=new e.vpe,this.isMenuOpen=!1}ngOnChanges(m){this.availableFields=this.buildAvailableFields(),this.label=this.buildLabel("i18n"),this.sortLabelResourceKey=this.buildLabel("type"),this.isAscending=this.orderDirection&&"ASC"===this.orderDirection}onFieldChanges(){this.emitEvent()}onDirectionChanges(){this.orderFieldKey&&this.emitEvent()}buildLabel(m){const b=this.orderFields.filter(I=>I.field===this.orderFieldKey);return b[0]?b[0][m]:""}buildAvailableFields(){return this.orderFields.sort((m,b)=>m.index-b.index)}emitEvent(){this.orderChanged.emit({field:this.orderFieldKey,direction:this.isAscending?"ASC":"DESC"}),this.isMenuOpen=!1}static#e=this.\u0275fac=function(b){return new(b||x)};static#t=this.\u0275cmp=e.Xpm({type:x,selectors:[["imx-sort-button"]],inputs:{orderFieldKey:"orderFieldKey",orderDirection:"orderDirection",orderFields:"orderFields"},outputs:{orderChanged:"orderChanged"},features:[e.TTD],decls:14,vars:14,consts:[[1,"sort__button-wrapper"],[1,"sort__button",3,"click"],[1,"sort__button__column"],[1,"icon-chevron-down"],["class","sort__menu",4,"ngIf"],["size","small",3,"ngModel","checkedLabel","notCheckedLabel","ngModelChange"],[1,"sort__menu"],[1,"sort__menu-radio-group"],[1,"radio-group","small",3,"ngModel","ngModelChange","change"],["class","field-entry",3,"value",4,"ngFor","ngForOf"],[1,"triangle-up"],[1,"field-entry",3,"value"]],template:function(b,I){1&b&&(e.TgZ(0,"div",0)(1,"div",1),e.NdJ("click",function(){return I.isMenuOpen=!I.isMenuOpen}),e.TgZ(2,"span"),e._uU(3),e.ALo(4,"translate"),e.TgZ(5,"span",2),e._uU(6),e.ALo(7,"translate"),e.qZA()(),e._UZ(8,"span",3),e.qZA(),e.YNc(9,c,5,2,"div",4),e.qZA(),e.TgZ(10,"div")(11,"imx-toggle",5),e.NdJ("ngModelChange",function(O){return I.isAscending=O})("ngModelChange",function(){return I.onDirectionChanges()}),e.ALo(12,"translate"),e.ALo(13,"translate"),e.qZA()()),2&b&&(e.xp6(3),e.hij("",e.lcZ(4,6,"imxplatform.common-entity.list.sort.ordered-by")," "),e.xp6(3),e.hij("(",e.lcZ(7,8,I.label),")"),e.xp6(3),e.Q6J("ngIf",I.isMenuOpen),e.xp6(2),e.s9C("checkedLabel",""!==I.sortLabelResourceKey?e.lcZ(12,10,"imxplatform.common-entity.list.sort."+I.sortLabelResourceKey+".ascending"):""),e.s9C("notCheckedLabel",""!==I.sortLabelResourceKey?e.lcZ(13,12,"imxplatform.common-entity.list.sort."+I.sortLabelResourceKey+".descending"):""),e.Q6J("ngModel",I.isAscending))},dependencies:[n.sg,n.O5,s.JJ,s.On,l.VQ,l.U0,i.n,t.X$],styles:["[_nghost-%COMP%]{height:50px;display:flex;flex-direction:column;justify-content:space-evenly;border-left:1px solid #e6e9ef;padding-left:10px}.sort__button-wrapper[_ngcontent-%COMP%]{position:relative;z-index:2}.sort__button[_ngcontent-%COMP%]{font-size:14px;line-height:18px;display:flex;flex-direction:row;align-items:center;justify-content:flex-end;cursor:pointer}.sort__button[_ngcontent-%COMP%]   .sort__button__column[_ngcontent-%COMP%]{color:#3e3e3e}.sort__button[_ngcontent-%COMP%]   .icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}@media (max-width: 1400px){.sort__button[_ngcontent-%COMP%]{font-size:12px}}.sort__menu[_ngcontent-%COMP%]{position:absolute;width:230px;box-shadow:0 0 5px #0003;background-color:#fff;right:10px;top:30px}.sort__menu[_ngcontent-%COMP%]   .sort__menu-radio-group[_ngcontent-%COMP%]{padding:10px 20px;max-height:50vh;overflow:auto}.sort__menu[_ngcontent-%COMP%]   .triangle-up[_ngcontent-%COMP%]{position:absolute;right:10px;top:-12px;z-index:2;border-bottom-color:#fff}.sort__menu[_ngcontent-%COMP%]   .field-entry[_ngcontent-%COMP%]{margin-bottom:10px}.sort__menu[_ngcontent-%COMP%]     .radio-group{display:flex;flex-direction:column}"]})}return x})()},34300:(gt,X,a)=>{"use strict";a.d(X,{t:()=>c}),a(96698);var n=a(41621),s=a(19212),l=a(96814),i=a(55387);function t(o,x){if(1&o&&(s.TgZ(0,"imx-link",2),s._uU(1),s.qZA()),2&o){const u=s.oxw();s.Q6J("link",u.link)("queryParams",u.queryParams)("isExternal",u.isExternal),s.xp6(),s.Oqu(u.label)}}function p(o,x){if(1&o&&(s.TgZ(0,"imx-label"),s._uU(1),s.qZA()),2&o){const u=s.oxw();s.xp6(),s.Oqu(u.label)}}let c=(()=>{class o{updateDynamicComponent([u,{linkAccessor:m,labelAccessor:b,queryParamsAccessor:I,isExternal:H}]){this.link=(0,n.jg)(u,m),this.label=(0,n.jg)(u,b),I&&(this.queryParams=(0,n.jg)(u,I)),this.isExternal=H}static#e=this.\u0275fac=function(m){return new(m||o)};static#t=this.\u0275cmp=s.Xpm({type:o,selectors:[["imx-table-link-cell"]],decls:2,vars:2,consts:[[3,"link","queryParams","isExternal",4,"ngIf"],[4,"ngIf"],[3,"link","queryParams","isExternal"]],template:function(m,b){1&m&&s.YNc(0,t,2,4,"imx-link",0)(1,p,2,1,"imx-label",1),2&m&&(s.Q6J("ngIf",b.link&&b.label),s.xp6(),s.Q6J("ngIf",!b.link&&b.label))},dependencies:[l.O5,i.N],encapsulation:2})}return o})()},96698:(gt,X,a)=>{"use strict";a.d(X,{a:()=>We});var e=a(19212),n=a(25313),s=a(13566),l=a(41621),i=a(21473),t=a(1614),p=a(71365),c=a(96814),o=a(67338),x=a(15788),u=a(35475);function m(et,Et){1&et&&e.GkF(0)}const b=()=>({width:"100%",height:"100%"});function I(et,Et){if(1&et&&(e.ynx(0),e.TgZ(1,"p-scrollPanel"),e.YNc(2,m,1,0,"ng-container",4),e.qZA(),e.BQk()),2&et){e.oxw();const lt=e.MAs(4);e.xp6(),e.Akn(e.DdM(3,b)),e.xp6(),e.Q6J("ngTemplateOutlet",lt)}}function H(et,Et){1&et&&e.GkF(0)}function O(et,Et){if(1&et&&e.YNc(0,H,1,0,"ng-container",4),2&et){e.oxw();const lt=e.MAs(4);e.Q6J("ngTemplateOutlet",lt)}}function P(et,Et){1&et&&e._UZ(0,"tr",14)}function G(et,Et){if(1&et&&(e.ynx(0),e.YNc(1,P,1,0,"tr",13),e.BQk()),2&et){const lt=e.oxw(3);e.xp6(),e.Q6J("matHeaderRowDef",lt.displayedColumns)}}function B(et,Et){if(1&et){const lt=e.EpF();e.TgZ(0,"tr",16),e.NdJ("click",function(){const Z=e.CHM(lt).$implicit,Pt=e.oxw(4);return e.KtG(Pt.selectRow(Z))}),e.qZA()}}function ae(et,Et){if(1&et&&(e.ynx(0),e.YNc(1,B,1,0,"tr",15),e.BQk()),2&et){const lt=e.oxw(3);e.xp6(),e.Q6J("matRowDefColumns",lt.displayedColumns)}}function J(et,Et){1&et&&e._UZ(0,"tr",18)}function q(et,Et){if(1&et&&e.YNc(0,J,1,0,"tr",17),2&et){const lt=e.oxw(3);e.Q6J("matRowDefColumns",lt.displayedColumns)}}function j(et,Et){if(1&et&&(e.TgZ(0,"th",22),e._uU(1),e.qZA()),2&et){const lt=e.oxw(2).$implicit,Vt=e.oxw(3);e.Q6J("ngClass",lt.cssClass)("ngStyle",Vt.columnStyle(lt)),e.xp6(),e.hij(" ",Vt.translatedColumnHeader(lt)," ")}}function Y(et,Et){1&et&&(e.ynx(0),e.YNc(1,j,2,3,"th",21),e.BQk())}function K(et,Et){if(1&et&&(e.TgZ(0,"th",24),e._uU(1),e.qZA()),2&et){const lt=e.oxw(2).$implicit,Vt=e.oxw(3);e.Q6J("ngClass",lt.cssClass)("ngStyle",Vt.columnStyle(lt)),e.xp6(),e.hij(" ",Vt.translatedColumnHeader(lt)," ")}}function ne(et,Et){1&et&&(e.ynx(0),e.YNc(1,K,2,3,"th",23),e.BQk())}function ee(et,Et){1&et&&e.GkF(0)}const $=(et,Et)=>({$implicit:et,column:Et});function ue(et,Et){if(1&et&&(e.TgZ(0,"td",25)(1,"imx-tooltip",26),e.YNc(2,ee,1,0,"ng-container",27),e.qZA()()),2&et){const lt=Et.$implicit,Vt=e.oxw().$implicit;e.oxw(2);const r=e.MAs(2),Z=e.oxw();e.Q6J("ngClass",Vt.cssClass),e.xp6(),e.Q6J("tooltipText",Vt.tooltipAccessor?Z.outputProperty(lt,Vt.tooltipAccessor,Vt.customDisplayFn):void 0),e.xp6(),e.Q6J("ngTemplateOutlet",r)("ngTemplateOutletContext",e.WLB(4,$,lt,Vt))}}function ge(et,Et){if(1&et&&(e.ynx(0,19),e.YNc(1,Y,2,0,"ng-container",10)(2,ne,2,0,"ng-container",10)(3,ue,3,7,"td",20),e.BQk()),2&et){const lt=Et.$implicit,Vt=e.oxw(3);e.Q6J("matColumnDef",lt.accessor),e.xp6(),e.Q6J("ngIf",Vt.showColumnHeaders&&!lt.sortable),e.xp6(),e.Q6J("ngIf",Vt.showColumnHeaders&&lt.sortable)}}function Ke(et,Et){if(1&et&&(e.TgZ(0,"table",9),e.YNc(1,G,2,1,"ng-container",10)(2,ae,2,1,"ng-container",0)(3,q,1,1,"ng-template",null,11,e.W1O)(5,ge,4,3,"ng-container",12),e.qZA()),2&et){const lt=e.MAs(4),Vt=e.oxw(2);e.Q6J("ngClass",Vt.additionalStyle)("dataSource",Vt.dataSource),e.xp6(),e.Q6J("ngIf",Vt.showColumnHeaders),e.xp6(),e.Q6J("ngIf",Vt.rowSelection)("ngIfElse",lt),e.xp6(3),e.Q6J("ngForOf",Vt.columns)}}function at(et,Et){1&et&&e.GkF(0)}function Le(et,Et){if(1&et&&e.YNc(0,at,1,0,"ng-container",27),2&et){const lt=Et.$implicit,Vt=Et.column;e.oxw();const r=e.MAs(6),Z=e.MAs(4);e.Q6J("ngTemplateOutlet","component"===Vt.type?r:Z)("ngTemplateOutletContext",e.WLB(2,$,lt,Vt))}}function R(et,Et){if(1&et&&e._uU(0),2&et){const lt=Et.$implicit,Vt=Et.column,r=e.oxw(2);e.hij(" ",r.outputProperty(lt,Vt.accessor,Vt.customDisplayFn)," ")}}const Te=(et,Et)=>[et,Et];function me(et,Et){if(1&et&&e._UZ(0,"imx-dynamic-component",28),2&et){const lt=Et.$implicit,Vt=Et.column;e.Q6J("component",Vt.component)("componentParams",e.WLB(2,Te,lt,Vt))}}function Se(et,Et){if(1&et&&e.YNc(0,Ke,6,6,"table",5)(1,Le,1,5,"ng-template",null,6,e.W1O)(3,R,1,1,"ng-template",null,7,e.W1O)(5,me,1,5,"ng-template",null,8,e.W1O),2&et){const lt=e.oxw(),Vt=e.MAs(6);e.Q6J("ngIf",lt.data&&lt.data.length>0)("ngIfElse",Vt)}}function Ue(et,Et){1&et&&(e.TgZ(0,"p",29),e._uU(1,"imxplatform.common.no-records"),e.qZA())}let We=(()=>{class et{constructor(lt,Vt){this.readI18nPipe=lt,this.translateService=Vt,this.showColumnHeaders=!0,this.additionalStyle=[],this.maxHeight=void 0,this.rowClick=new e.vpe,this.dataSource=new n.by,this._tableValueAccessor=(r,Z)=>{const Pt=r[Z];return Pt&&(0,l.QK)(Pt)?this.readI18nPipe.transform(Pt,this.i18nLanguage.name).toLowerCase():(0,i.hj)(Pt)?Number(Pt):isNaN(Date.parse(Pt))?Pt&&Pt.toLowerCase():Date.parse(Pt).valueOf()},this.i18nLanguage={name:Vt.currentLang}}ngAfterViewInit(){this.dataSource.sort=this.sort,this.dataSource.sortingDataAccessor=this._tableValueAccessor}ngOnChanges(lt){lt.columns&&this._buildDisplayedColumns(),lt.data&&(this.dataSource.data=this.data),this.additionalStyle.push("sticky")}get maxHeightStyle(){return this.maxHeight?this.maxHeight:"unset"}columnStyle(lt){return lt.width?{width:lt.width}:null}extractProperty(lt,Vt){return Vt?(0,l.jg)(lt,Vt):lt}translatedColumnHeader({columnTitle:lt}){return(0,i.HD)(lt)?this.translateService.instant(lt):lt}outputProperty(lt,Vt,r){const Z=this.extractProperty(lt,Vt);return r?r.call(this,Z):(0,l.QK)(Z)?this.readI18nPipe.transform(Z,this.i18nLanguage?this.i18nLanguage.name:void 0):(0,i.HD)(Z)&&Z?this.translateService.instant(Z):Z}selectRow(lt){this.rowClick.emit(lt)}_buildDisplayedColumns(){this.displayedColumns=this.columns.map(lt=>lt.accessor)}static#e=this.\u0275fac=function(Vt){return new(Vt||et)(e.Y36(t.j),e.Y36(p.sK))};static#t=this.\u0275cmp=e.Xpm({type:et,selectors:[["imx-table"]],viewQuery:function(Vt,r){if(1&Vt&&e.Gf(s.YE,5),2&Vt){let Z;e.iGM(Z=e.CRH())&&(r.sort=Z.first)}},hostVars:2,hostBindings:function(Vt,r){2&Vt&&e.Udp("max-height",r.maxHeightStyle)},inputs:{columns:"columns",data:"data",showColumnHeaders:"showColumnHeaders",additionalStyle:"additionalStyle",rowSelection:"rowSelection",maxHeight:"maxHeight",i18nLanguage:"i18nLanguage"},outputs:{rowClick:"rowClick"},features:[e.TTD],decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["noScrollbar",""],["table",""],["noResults",""],[4,"ngTemplateOutlet"],["mat-table","","matSort","",3,"ngClass","dataSource",4,"ngIf","ngIfElse"],["cellContent",""],["defaultCellContent",""],["componentCellContent",""],["mat-table","","matSort","",3,"ngClass","dataSource"],[4,"ngIf"],["notSelectable",""],[3,"matColumnDef",4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["mat-header-row",""],["mat-row","","class","clickable",3,"click",4,"matRowDef","matRowDefColumns"],["mat-row","",1,"clickable",3,"click"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row",""],[3,"matColumnDef"],["mat-cell","",3,"ngClass",4,"matCellDef"],["mat-header-cell","","class","txt-ellipsis",3,"ngClass","ngStyle",4,"matHeaderCellDef"],["mat-header-cell","",1,"txt-ellipsis",3,"ngClass","ngStyle"],["mat-header-cell","","mat-sort-header","","class","txt-ellipsis",3,"ngClass","ngStyle",4,"matHeaderCellDef"],["mat-header-cell","","mat-sort-header","",1,"txt-ellipsis",3,"ngClass","ngStyle"],["mat-cell","",3,"ngClass"],[3,"tooltipText"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"component","componentParams"],["translate","",1,"txt-grey","txt-md-sm","no-records"]],template:function(Vt,r){if(1&Vt&&e.YNc(0,I,3,4,"ng-container",0)(1,O,1,1,"ng-template",null,1,e.W1O)(3,Se,7,2,"ng-template",null,2,e.W1O)(5,Ue,2,0,"ng-template",null,3,e.W1O),2&Vt){const Z=e.MAs(2);e.Q6J("ngIf",r.maxHeight)("ngIfElse",Z)}},dependencies:[c.mk,c.sg,c.O5,c.tP,c.PC,s.YE,s.nU,n.BZ,n.fO,n.as,n.w1,n.Dz,n.nj,n.ge,n.ev,n.XQ,n.Gk,p.Pi,o.P,x.B,u.K],styles:["[_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}button[_ngcontent-%COMP%]{margin-top:10px}.mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}[_nghost-%COMP%]{display:flex}.no-records[_ngcontent-%COMP%]{text-align:center}"]})}return et})()},2694:(gt,X,a)=>{"use strict";a.d(X,{j:()=>We});var e=a(19212),n=a(56223),s=a(22941),l=a(21473),t=(a(79309),a(49193)),p=a(32068),c=a(96776),o=a(96124),x=a(51418),u=a(17927),m=a(4116),b=a(64022),I=a(20263),H=a(44316),O=a(46551),P=a(41621),G=a(71365),B=a(96814),ae=a(24630),J=a(23680),q=a(2032),j=a(64170);const Y=["autocompletePnl"],K=["autocompleteTrigger"],ne=["autocompleteId"];function ee(et,Et){if(1&et){const lt=e.EpF();e.TgZ(0,"span",10),e.NdJ("keydown",function(r){e.CHM(lt);const Z=e.oxw();return e.KtG(Z.deleteKeyDown(r))})("click",function(){e.CHM(lt);const r=e.oxw();return e.KtG(r.clearAutocomplete())}),e.qZA()}}function $(et,Et){1&et&&(e.TgZ(0,"span",18),e._uU(1,"\xa0"),e.qZA())}function ue(et,Et){if(1&et&&(e.TgZ(0,"span",20),e._uU(1,"\xa0"),e.qZA()),2&et){const lt=e.oxw(2).$implicit;e.Q6J("ngClass","icon-entityType-"+lt.entityType)}}function ge(et,Et){1&et&&(e.TgZ(0,"span",20),e._uU(1,"\xa0"),e.qZA()),2&et&&e.Q6J("ngClass","icon-entity")}function Ke(et,Et){if(1&et&&e.YNc(0,ue,2,1,"span",19)(1,ge,2,1,"span",19),2&et){const lt=e.oxw().$implicit;e.Q6J("ngIf",lt.isCoreEntity),e.xp6(),e.Q6J("ngIf",!lt.isCoreEntity)}}function at(et,Et){if(1&et&&(e.ynx(0),e.TgZ(1,"div",17)(2,"span"),e._uU(3),e.qZA()(),e.BQk()),2&et){const lt=Et.ngIf;e.xp6(3),e.Oqu(lt)}}function Le(et,Et){if(1&et&&(e.ynx(0),e.TgZ(1,"span"),e._uU(2),e.ALo(3,"async"),e.qZA(),e.BQk()),2&et){const lt=e.oxw().$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,lt.additionalInfo))}}const R=et=>({inactive:et});function Te(et,Et){if(1&et&&(e.TgZ(0,"mat-option",14)(1,"div",15),e.YNc(2,$,2,0,"span",16)(3,Ke,2,2),e.TgZ(4,"div")(5,"span"),e._uU(6),e.qZA(),e.YNc(7,at,4,1,"ng-container",8),e.ALo(8,"async"),e.TgZ(9,"div",17)(10,"span"),e._uU(11),e.qZA(),e.YNc(12,Le,4,3,"ng-container",8),e.qZA()()()()),2&et){const lt=Et.$implicit;e.Q6J("value",lt)("ngClass",e.VKq(9,R,0==lt.entityStateId)),e.xp6(2),e.um2(2,lt.isTour?2:3),e.xp6(4),e.Oqu(lt.title),e.xp6(),e.Q6J("ngIf",e.lcZ(8,7,lt.additionalInfo2)),e.xp6(4),e.Oqu(lt.entityId),e.xp6(),e.Q6J("ngIf",lt.additionalInfo)}}function me(et,Et){if(1&et){const lt=e.EpF();e.ynx(0),e.YNc(1,Te,13,11,"mat-option",11),e.ALo(2,"async"),e.TgZ(3,"div",12),e.NdJ("click",function(){e.CHM(lt);const r=e.oxw();return e.KtG(r.gotoSearchPage())}),e.TgZ(4,"span",13),e._uU(5),e.ALo(6,"translate"),e.qZA()(),e.BQk()}if(2&et){const lt=e.oxw();e.xp6(),e.Q6J("ngForOf",e.lcZ(2,2,lt.holders)),e.xp6(4),e.Oqu(e.lcZ(6,4,"Alle Ergebnisse anzeigen"))}}function Se(et,Et){1&et&&(e.TgZ(0,"mat-error",21),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&et&&(e.Q6J("id",null),e.xp6(),e.Oqu(e.lcZ(2,2,"imxplatform.common-entity.edit.validation.required")))}const Ue=et=>({initialized:et});let We=(()=>{class et{constructor(lt,Vt,r,Z,Pt,Oe,ye,ve){this.universalSearchService=lt,this.translateService=Vt,this.router=r,this.coreEntityService=Z,this.filterFormHandlerService=Pt,this.changeDetectorRef=Oe,this.imxEntitiesMgrService=ye,this.universalSearchVoter=ve,this._addressPoiEntityType="AddressPoiType",this.startAtCharForString=3,this.autocompleteSelected=new e.vpe,this.enterPressed=new e.vpe,this.initialized=!1,this.contextNavigationService=(0,e.f3M)(m.E),this.holdersAvailable=!1,this.inputControl=new n.p4}ngOnInit(){this.inputControl=new n.p4,this.filterFormHandlerService.formGroup.get("searchString").valueChanges.subscribe(lt=>{this.inputControl.setValue(lt,{emitEvent:!1}),this.changeDetectorRef.detectChanges()}),this.inputControl.valueChanges.pipe((0,p.x)(),(0,c.b)(300)).subscribe(lt=>{this.holders=(0,t.of)([]),null==lt||""===lt?this.holdersAvailable=!1:"string"==typeof lt&&""!==lt&&(isNaN(Number(lt))?lt.length>=this.startAtCharForString&&this.retrieveHolders(lt):this.retrieveHolders(lt))}),this.hash=(0,P.Cp)(),this.registerRouteChangeEvent()}retrieveHolders(lt){this.holdersAvailable=!0,this.holders=this.getHolders(lt),this.changeDetectorRef.markForCheck()}getAdditionalInfo2(lt){return(0,t.of)(null)}getAdditionalInfo(lt){const Vt=" \xb7 ";if(lt.entityType===b.t8.ADDRESSBASE_ENTITY.type&&lt.city&&lt.city.length>0)return(0,t.of)(Vt+lt.city);if(lt.entityType===b.t8.ADDRESSPOI_ENTITY.type){const r=this.getRelevantReferenceIds(lt,this._addressPoiEntityType);return this.getEntities(r,this._addressPoiEntityType).pipe((0,o.U)(Z=>{const Pt=Z.map(Oe=>Oe.i18nName[this.translateService.currentLang]);return Pt?Vt+(Pt.length>1?Pt.join("/"):Pt[0]):""}))}if(lt.entityType===b.t8.EVENT_ENTITY.type)return(0,t.of)(Vt+lt.eventLocationContactName);if(lt.entityType===b.t8.OFFER_ENTITY.type||lt.entityType===b.t8.ANNOUNCEMENT_ENTITY.type){const r=this.getTitle(lt,"owningEntityTitle");if(lt.owningEntityType&&lt.owningEntityId&&this.getTitle(lt,"owningEntityTitle"))return(0,t.of)(Vt+this.translateService.instant("entity."+lt.owningEntityType+".entityName")+": "+lt.owningEntityId+Vt+r)}return"DeliveryChannel"===lt.entityType?this.getEntity(Number.parseInt(lt.entityId,10),lt.entityType).pipe((0,o.U)(r=>r?Vt+r.ownerClient.name:"")):(0,t.of)("User"===lt.entityType?Vt+lt.email:"")}getEntity(lt,Vt){return this.imxEntitiesMgrService.getEntityWithIdOfType(Vt,lt,!0)}getEntities(lt,Vt){return this.imxEntitiesMgrService.getEntityWithIdsOfType(Vt,lt,!0)}getRelevantReferenceIds(lt,Vt){const r=[];return(0,l.kJ)(lt.references)?lt.references.forEach(Z=>{const Pt=this.getReferenceIdForEntityType(Z,Vt);Pt&&r.push(Pt)}):(0,l.HD)(lt.references)&&r.push(this.getReferenceIdForEntityType(lt.references,Vt)),r}getReferenceIdForEntityType(lt,Vt){const r=lt.split("_");if(r[1]===Vt)return Number.parseInt(r[0],10)}optionSelected(lt){this.autocompleteSelected.emit(lt.option.value);const Vt=lt.option.value,r=this.coreEntityService.getCoreEntityDefByString(Vt.entityType),Z={openImmediately:!0};r?this.contextNavigationService.navigateToCoreEntityContextual([r.detailRoute,Vt.entityId]):"PooledDataObjectMedium"===Vt.entityType?(Z.id=Vt.entityId,this.router.navigate(["media"],{queryParams:Z})):"User"===Vt.entityType?(Z.userIds=Vt.entityId,this.router.navigate(["usermgmt"],{queryParams:Z})):"DeliveryChannel"===Vt.entityType?(Z.id=Vt.entityId,this.router.navigate(["deliverychannelmgmt"],{queryParams:Z})):"Client"===Vt.entityType?(Z.clientIds=Vt.entityId,this.router.navigate(["clientmgmt"],{queryParams:Z})):"UserRole"===Vt.entityType?(Z.roleIds=Vt.entityId,this.router.navigate(["rolemgmt"],{queryParams:Z})):"Recipe"===Vt.entityType?(Z.id=Vt.entityId,this.router.navigate(["recipes"],{queryParams:Z})):(Z.id=Vt.entityId,Z.entityName=Vt.entityType,this.router.navigate(["base-entities"],{queryParams:Z})),this.inputControl.setValue("Suchen...",{emitEvent:!1}),this.initialized=!1}clicked(){this.initialized||this.inputControl.setValue("",{emitEvent:!1}),this.initialized=!0}keyDown(lt){"Enter"===lt.key&&(this.enterPressed.emit(lt),this.handleEnterPress())}handleEnterPress(){this.inputControl.value&&(this.autocompleteTrigger.closePanel(),this.gotoSearchPage())}gotoSearchPage(){const lt={searchString:this.inputControl.value,page:1};this.autocompleteTrigger.closePanel(),this.router.navigate(["search"],{queryParams:lt})}getHolders(lt){return this.universalSearchService.searchAll(lt,{paging:{pageSize:10,pageIdx:0}},!0).pipe((0,x.q)(1),(0,u.b)(Vt=>this.totalNumberOfItems=Vt.totalNumberOfResults),(0,o.U)(Vt=>Vt.items.map(r=>({entityType:r.indexedObjectJson.entityType,entityId:Number.parseInt(r.indexedObjectJson.entityId,10),entityStateId:Number.parseInt(r.indexedObjectJson.entityStateId,10),clientId:Number.parseInt(r.indexedObjectJson.clientId,10),title:this.getTitle(r.indexedObjectJson,"title"),isCoreEntity:void 0!==this.coreEntityService.getCoreEntityDefByString(r.indexedObjectJson.entityType),searchTextDe:r.indexedObjectJson["searchText.de"],isTour:this.isTour(r.indexedObjectJson),additionalInfo:this.universalSearchVoter?this.universalSearchVoter.getAdditionalInfo(r.indexedObjectJson):this.getAdditionalInfo(r.indexedObjectJson),additionalInfo2:this.universalSearchVoter?this.universalSearchVoter.getAdditionalInfo2(r.indexedObjectJson):this.getAdditionalInfo2(r.indexedObjectJson)}))))}getTitle(lt,Vt){return lt[Vt+"."+this.translateService.currentLang]||lt[Vt]}isTour(lt){return this.getRelevantReferenceIds(lt,"Productline").includes(100012e3)}displayInput(lt){return"string"==typeof lt?lt:lt?lt.entityType+" "+lt.title:void 0}clearAutocomplete(){this.inputControl.setValue("",{emitEvent:!0}),this.autocompleteTrigger.closePanel(),this.autocompleteRef.nativeElement.focus()}deleteKeyDown(lt){"Enter"===lt.key&&this.clearAutocomplete()}registerRouteChangeEvent(){this.router.events.subscribe(lt=>{(lt instanceof s.m2||lt instanceof s.gk)&&(this.isOnSearchPage()||this.clearAutocomplete())})}isOnSearchPage(){return this.router.url.startsWith("/search")}static#e=this.\u0275fac=function(Vt){return new(Vt||et)(e.Y36(O.T),e.Y36(G.sK),e.Y36(s.F0),e.Y36(b.dE),e.Y36(I.I),e.Y36(e.sBO),e.Y36(l.qB),e.Y36(H.D,8))};static#t=this.\u0275cmp=e.Xpm({type:et,selectors:[["imx-universal-search"]],viewQuery:function(Vt,r){if(1&Vt&&(e.Gf(Y,7),e.Gf(K,7),e.Gf(ne,7)),2&Vt){let Z;e.iGM(Z=e.CRH())&&(r.autocompletePnl=Z.first),e.iGM(Z=e.CRH())&&(r.autocompleteTrigger=Z.first),e.iGM(Z=e.CRH())&&(r.autocompleteRef=Z.first)}},hostAttrs:[1,"imx-universal-search"],inputs:{startAtCharForString:"startAtCharForString"},outputs:{autocompleteSelected:"autocompleteSelected",enterPressed:"enterPressed"},decls:12,vars:11,consts:[[1,"searchbar"],[1,"searchbar__row"],[1,"searchbar__icon","icon-magnifier"],["matInput","","type","text",1,"autocomplete-field",3,"ngClass","matAutocomplete","formControl","placeholder","id","click","keydown"],["autocompleteId","","autocompleteTrigger","matAutocompleteTrigger"],["class","searchbar__icon searchbar__icon--delete icon-cross","tabindex","0",3,"keydown","click",4,"ngIf"],[1,"mat-autocomplete-panel--large",3,"displayWith","optionSelected"],["autocompletePnl","matAutocomplete"],[4,"ngIf"],[3,"id",4,"ngIf"],["tabindex","0",1,"searchbar__icon","searchbar__icon--delete","icon-cross",3,"keydown","click"],[3,"value","ngClass",4,"ngFor","ngForOf"],[1,"mat-mdc-autocomplete-panel__searchlink",3,"click"],[1,"txt-link","txt-md-sm"],[3,"value","ngClass"],[1,"row"],["class","icon icon-map_tour"],[1,"subtitle"],[1,"icon","icon-map_tour"],["class","icon",3,"ngClass",4,"ngIf"],[1,"icon",3,"ngClass"],[3,"id"]],template:function(Vt,r){if(1&Vt&&(e.TgZ(0,"div",0)(1,"mat-form-field")(2,"div",1),e._UZ(3,"span",2),e.TgZ(4,"input",3,4),e.NdJ("click",function(){return r.clicked()})("keydown",function(Pt){return r.keyDown(Pt)}),e.qZA(),e.YNc(7,ee,1,0,"span",5),e.qZA(),e.TgZ(8,"mat-autocomplete",6,7),e.NdJ("optionSelected",function(Pt){return r.optionSelected(Pt)}),e.YNc(10,me,7,6,"ng-container",8),e.qZA(),e.YNc(11,Se,3,4,"mat-error",9),e.qZA()()),2&Vt){const Z=e.MAs(9);e.xp6(4),e.Q6J("ngClass",e.VKq(9,Ue,r.initialized))("matAutocomplete",Z)("formControl",r.inputControl)("placeholder","Suchen...")("id",r.hash),e.xp6(3),e.Q6J("ngIf",r.inputControl.value),e.xp6(),e.Q6J("displayWith",r.displayInput),e.xp6(2),e.Q6J("ngIf",r.inputControl.value),e.xp6(),e.Q6J("ngIf",r.inputControl.errors)}},dependencies:[B.mk,B.sg,B.O5,n.Fj,n.JJ,ae.XC,J.ey,ae.ZL,q.Nt,j.KE,j.TO,n.oH,B.Ov,G.X$],styles:["[_nghost-%COMP%]{display:block}.searchbar[_ngcontent-%COMP%]{display:flex}.searchbar__row[_ngcontent-%COMP%]{align-items:center;background-color:#fff;border:1px solid #9DA8C1;border-radius:4px;display:flex;padding:0 10px}.searchbar__icon[_ngcontent-%COMP%]{color:#0a2663;font-size:18px;font-weight:900;line-height:18px}.searchbar__icon[_ngcontent-%COMP%]:not(.searchbar__icon--delete){margin-right:10px}.searchbar__icon.searchbar__icon--delete[_ngcontent-%COMP%]{cursor:pointer;margin-left:10px}[_nghost-%COMP%]   input.autocomplete-field.mat-mdc-input-element.mat-mdc-autocomplete-trigger[_ngcontent-%COMP%]{box-sizing:border-box;height:36px;color:#0a2663;background-color:#fff;border:none;font-size:14px;margin:2px 0 0;z-index:1}[_nghost-%COMP%]   input.autocomplete-field.mat-mdc-input-element.mat-mdc-autocomplete-trigger.ng-invalid[_ngcontent-%COMP%]{border:1px solid #96172e}.subtitle[_ngcontent-%COMP%]{margin-top:3px}input.autocomplete-field[_ngcontent-%COMP%]:-webkit-autofill, input.autocomplete-field[_ngcontent-%COMP%]:-webkit-autofill:hover, input.autocomplete-field[_ngcontent-%COMP%]:-webkit-autofill:focus{-webkit-transition:background-color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s}.mat-mdc-autocomplete-panel__searchlink[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:10px 0;text-decoration:underline}.mat-mdc-option[_ngcontent-%COMP%]{color:#0a2663;height:unset;line-height:unset;padding:4px 8px;white-space:normal;font-size:small}.inactive[_ngcontent-%COMP%]{color:#9da8c1;font-style:italic}.row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.icon[_ngcontent-%COMP%]{font-size:16px}"]})}return et})()},58755:(gt,X,a)=>{"use strict";a.d(X,{j:()=>l});var e=a(16083),n=a(19212),s=a(27416);let l=(()=>{class i extends e.F{getEntityName(){return"UniversalSearchItem"}static#e=this.\u0275fac=(()=>{let p;return function(o){return(p||(p=n.n5z(i)))(o||i)}})();static#t=this.\u0275cmp=n.Xpm({type:i,selectors:[["imx-universal-search-filter"]],features:[n.qOj],decls:1,vars:10,consts:[[3,"entityName","formHandler","record","orderFields","orderField","orderDirection","enableSearchListOption","enableCreateContactListOption","hideApplyBtn","searchListNameProposal","orderChanged","save"]],template:function(c,o){1&c&&(n.TgZ(0,"imx-filter",0),n.NdJ("orderChanged",function(u){return o.orderChanged.emit(u)})("save",function(u){return o.applyFilter.emit(u)}),n.qZA()),2&c&&n.Q6J("entityName","UniversalSearchItem")("formHandler",o.formHandler)("record",o.record)("orderFields",o.orderFields)("orderField",o.orderField)("orderDirection",o.orderDirection)("enableSearchListOption",o.enableCreateContactListOption)("enableCreateContactListOption",!1)("hideApplyBtn",!0)("searchListNameProposal",o.record.searchString)},dependencies:[s.z],changeDetection:0})}return i})()},41900:(gt,X,a)=>{"use strict";a.d(X,{$:()=>Le});var e=a(91226),n=a(21473),s=a(22819),l=a(30324),i=a(30258),t=a(31532),p=a(82134),c=a(59143),o=a(54320),x=a(43040),u=a(19212),m=a(23291),b=a(96124),I=a(8766),H=a(68727),O=a(96814),P=a(33946),G=a(71365);function B(R,Te){if(1&R&&(u.TgZ(0,"li")(1,"b"),u._uU(2),u.qZA(),u._uU(3),u._UZ(4,"br"),u._uU(5),u.ALo(6,"translate"),u.qZA()),2&R){const me=Te.$implicit;u.xp6(2),u.Oqu(me.product_info_name),u.xp6(),u.hij(": ",me.version," "),u.xp6(2),u.AsE("(",u.lcZ(6,4,"imxplatform.common.build.description"),"#: ",me.build,") ")}}function ae(R,Te){if(1&R&&(u.ynx(0),u.TgZ(1,"h4"),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"ul",1)(5,"li")(6,"b"),u._uU(7),u.ALo(8,"translate"),u.qZA(),u._uU(9),u.qZA()(),u.BQk()),2&R){const me=u.oxw();u.xp6(2),u.hij("",u.lcZ(3,3,"imxplatform.common.backend.header"),":"),u.xp6(5),u.Oqu(u.lcZ(8,5,"imxplatform.common.backend.url")),u.xp6(2),u.hij(": ",me.backendUrl," ")}}function J(R,Te){if(1&R){const me=u.EpF();u.TgZ(0,"button",4),u.NdJ("click",function(){u.CHM(me);const Ue=u.oxw();return u.KtG(Ue.checkForUpdates())}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&R&&(u.xp6(),u.hij(" ",u.lcZ(2,1,"Check for update")," "))}let q=(()=>{class R{constructor(me,Se,Ue,We,et,Et){this.infoService=me,this.platformService=Se,this.environmentService=Ue,this.securityManager=We,this.updates=et,this.userMessageService=Et,this.showUrl=!1,this.clientInfo$=this.infoService.getClientInfo()}ngOnInit(){this.modules$=(0,m.aj)([this.clientInfo$,this.platformService.getProducts().pipe((0,b.U)(me=>me.items))]).pipe((0,b.U)(([me,Se])=>(Se.unshift(me),Se))),((0,u.X6Q)()||this.securityManager.hasPermission(n.uo.F_SYSTEM_INFO_ALL))&&(this.showUrl=!0,this.environmentService.getString(n.x3.IMXPLATFORM_API_URL).subscribe(me=>{this.backendUrl=me}))}clearCache(){caches.keys().then(function(me){for(const Se of me)console.log("remove sw cache:",Se),caches.delete(Se)}),this.userMessageService.showInfo("Application-Cache wurde gel\xf6scht")}checkForUpdates(){this.updates.checkForUpdate().then(()=>this.userMessageService.showInfo("Triggering update check...")).catch(me=>{console.error("Update check failed",me),this.userMessageService.showError("Update check failed",me)})}static#e=this.\u0275fac=function(Se){return new(Se||R)(u.Y36(I.C),u.Y36(s.nq),u.Y36(n.Qj),u.Y36(n.Xh),u.Y36(H.yO),u.Y36(c.Y))};static#t=this.\u0275cmp=u.Xpm({type:R,selectors:[["ng-component"]],decls:14,vars:11,consts:[["heading","imxplatform.dialog.about-header","icon","icon-code","cancelButtonLabel","imxplatform.dialog.about-button","submitButtonLabel",""],[1,"technical-info"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"imx-button","prio2","technical-info",3,"click"],["class","imx-button prio2 technical-info",3,"click",4,"ngIf"]],template:function(Se,Ue){1&Se&&(u.TgZ(0,"imx-dialog",0)(1,"h4"),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"ul",1),u.YNc(5,B,7,6,"li",2),u.ALo(6,"async"),u.qZA(),u.YNc(7,ae,10,7,"ng-container",3),u.TgZ(8,"button",4),u.NdJ("click",function(){return Ue.clearCache()}),u._uU(9),u.ALo(10,"translate"),u.qZA(),u.YNc(11,J,3,3,"button",5),u.TgZ(12,"p"),u._uU(13,"Angular 17"),u.qZA()()),2&Se&&(u.xp6(2),u.hij("",u.lcZ(3,5,"imxplatform.common.build.header"),":"),u.xp6(3),u.Q6J("ngForOf",u.lcZ(6,7,Ue.modules$)),u.xp6(2),u.Q6J("ngIf",Ue.showUrl),u.xp6(2),u.hij(" ",u.lcZ(10,9,"Application-Cache l\xf6schen")," "),u.xp6(2),u.Q6J("ngIf",Ue.showUrl))},dependencies:[O.sg,O.O5,P.a,O.Ov,G.X$],styles:[".technical-info[_ngcontent-%COMP%]{margin:10px 0;padding-left:18px;display:block}.technical-info[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-bottom:5px}"]})}return R})();var j=a(61598),Y=a(59075),K=a(97550),ne=a(46939),ee=a(22941),$=a(17700),ue=a(23680),ge=a(22194);const Ke=R=>({open:R});function at(R,Te){if(1&R){const me=u.EpF();u.ynx(0),u.TgZ(1,"div",2),u._UZ(2,"img",3),u.TgZ(3,"p",4),u._uU(4),u.ALo(5,"translate"),u.qZA(),u.TgZ(6,"h3",4),u._uU(7),u.qZA()(),u.TgZ(8,"div",5)(9,"a",6),u.NdJ("click",function(){u.CHM(me);const Ue=u.oxw();return u.KtG(Ue.openSubmenuBlocks.userData=!Ue.openSubmenuBlocks.userData)}),u.TgZ(10,"div",7),u._UZ(11,"span",8),u.qZA(),u.TgZ(12,"div",9),u._uU(13,"imxplatform.main.user-profile.user-data"),u.qZA()(),u.TgZ(14,"div",10)(15,"a",11),u.NdJ("click",function(){u.CHM(me);const Ue=u.oxw();return u.KtG(Ue.editOwnUserData())}),u.TgZ(16,"div",7),u._UZ(17,"span",12),u.qZA(),u.TgZ(18,"div",9),u._uU(19,"imxplatform.main.user-profile.change-user-data"),u.qZA()(),u.TgZ(20,"a",11),u.NdJ("click",function(){u.CHM(me);const Ue=u.oxw();return u.KtG(Ue.changePassword())}),u.TgZ(21,"div",7),u._UZ(22,"span",13),u.qZA(),u.TgZ(23,"div",9),u._uU(24,"imxplatform.main.user-profile.change-password"),u.qZA()()()(),u.TgZ(25,"div",5)(26,"a",6),u.NdJ("click",function(){u.CHM(me);const Ue=u.oxw();return u.KtG(Ue.openSubmenuBlocks.language=!Ue.openSubmenuBlocks.language)}),u.TgZ(27,"div",7),u._UZ(28,"span",14),u.qZA(),u.TgZ(29,"div",9),u._uU(30,"imxplatform.main.user-profile.change-language"),u.qZA()(),u.TgZ(31,"div",10)(32,"a",11),u.NdJ("click",function(){u.CHM(me);const Ue=u.oxw();return u.KtG(Ue.changeEditorLanguage("de"))}),u.TgZ(33,"div",7),u._UZ(34,"img",15),u.qZA(),u.TgZ(35,"div",9),u._uU(36,"imxplatform.main.user-profile.change-language-de"),u.qZA()(),u.TgZ(37,"a",11),u.NdJ("click",function(){u.CHM(me);const Ue=u.oxw();return u.KtG(Ue.changeEditorLanguage("en"))}),u.TgZ(38,"div",7),u._UZ(39,"img",16),u.qZA(),u.TgZ(40,"div",9),u._uU(41,"imxplatform.main.user-profile.change-language-en"),u.qZA()()()(),u.TgZ(42,"div",5)(43,"a",11),u.NdJ("click",function(){u.CHM(me);const Ue=u.oxw();return u.KtG(Ue.openAboutDialog())}),u.TgZ(44,"div",7),u._UZ(45,"span",17),u.qZA(),u.TgZ(46,"div",9),u._uU(47,"imxplatform.navigation.about"),u.qZA()()(),u.TgZ(48,"div",5)(49,"a",11),u.NdJ("click",function(){u.CHM(me);const Ue=u.oxw();return u.KtG(Ue.logout())}),u.TgZ(50,"div",7),u._UZ(51,"span",18),u.qZA(),u.TgZ(52,"div",9),u._uU(53,"imxplatform.main.user-profile.logout"),u.qZA()()(),u.BQk()}if(2&R){const me=Te.ngIf,Se=u.oxw();u.xp6(2),u.MGl("alt","",me.loginname," Avatar"),u.xp6(2),u.AsE("",u.lcZ(5,11,"imxplatform.main.logged-in"),": ",me.loginname,""),u.xp6(3),u.AsE("",me.firstname," ",me.lastname,""),u.xp6(2),u.Q6J("ngClass",u.VKq(13,Ke,Se.openSubmenuBlocks.userData)),u.xp6(5),u.Q6J("@openClose",Se.openSubmenuBlocks.userData?"open":"closed")("ngClass",u.VKq(15,Ke,Se.openSubmenuBlocks.userData)),u.xp6(12),u.Q6J("ngClass",u.VKq(17,Ke,Se.openSubmenuBlocks.language)),u.xp6(5),u.Q6J("@openClose",Se.openSubmenuBlocks.language?"open":"closed")("ngClass",u.VKq(19,Ke,Se.openSubmenuBlocks.language))}}let Le=(()=>{class R extends ne.x{constructor(me,Se,Ue,We,et,Et,lt,Vt,r,Z,Pt,Oe){super(),this.authenticationService=me,this.router=Se,this.translationService=Ue,this.platformService=We,this.entityBrowseHistoryStorageService=et,this.genericSidebarService=Et,this.dialog=lt,this.platformMgmtDataAccessService=Vt,this.userMessageService=r,this.runtimeContextService=Z,this.languageInitService=Pt,this.userMgmtFormHandlerService=Oe,this.openSubmenuBlocks={userData:!1,language:!1},this.authenticated=!1}ngOnInit(){this.authSubscription=this.authenticationService.getAuthenticatedFlag().subscribe(me=>{if(this.authenticated=me,me){const Se=this.authenticationService.currentPrincipal;Se&&(this.currentProfile=this.platformService.getUserInfo(Se.getIdentifier()||""))}},()=>this.authenticated=!1),this.selectedLanguage=this.translationService.currentLang}ngOnDestroy(){this.authSubscription&&(this.authSubscription.unsubscribe(),this.authSubscription=void 0)}editOwnUserData(){const me=this.userMgmtFormHandlerService;this.platformMgmtDataAccessService.getUserByLoginname(this.runtimeContextService.getLoginUser().loginname).subscribe(Se=>{me.baseObject=Se,me.formGroup.get("loginname").disable(),this.dialog.open(Y.l,{minWidth:600,data:{mode:"EDIT_OWN",formRow:me.formGroup,formHandler:me}}).afterClosed().subscribe(We=>{if(We){const et=me.getBaseObjectCopyWithCurrentFormValues();this.platformMgmtDataAccessService.updateUser(et).subscribe(()=>{this.userMessageService.showInfo("imxplatform.user-mgmt.dialog-edit.success")},Et=>{this.userMessageService.showError(Et||"imxplatform.user-mgmt.dialog-edit.failure")})}})})}changePassword(){const me=this.userMgmtFormHandlerService;me.baseObject=this.runtimeContextService.getLoginUser(),this.dialog.open(Y.l,{minWidth:600,data:{mode:"CHANGE_PWD",formRow:me.formGroup,formHandler:me}}).afterClosed().subscribe(Ue=>{if(Ue){const We=me.formGroup.get("passwordDecrypted").value,et=me.getBaseObjectCopyWithCurrentFormValues();We&&(et.passwordDecrypted=We,this.platformMgmtDataAccessService.updateUser(et).subscribe(()=>{this.userMessageService.showInfo("imxplatform.user-mgmt.dialog-edit.success"),this.authenticationService.login(new n.iB(et.loginname,We)).subscribe(Et=>{Et.principal instanceof n.DD&&this.userMessageService.showError("imxplatform.user-mgmt.dialog-edit.failure")},Et=>this.userMessageService.showError(Et||"imxplatform.user-mgmt.dialog-edit.failure"))},Et=>{this.userMessageService.showError(Et||"imxplatform.user-mgmt.dialog-edit.failure")}))}})}logout(){this.entityBrowseHistoryStorageService.findAll().length>0?this.dialog.open(j.t,{maxWidth:470,data:{text:"imxplatform.userprofile.logout.hint"}}).afterClosed().subscribe(Se=>{Se?this.processLogout():this.sidenav.close().then(()=>{this.genericSidebarService.open(K.U,"left",{cssClass:"imx-quick-access-sidebar",data:{openBlocks:{objectHistory:!0}}})})}):this.processLogout()}changeEditorLanguage(me){this.selectedLanguage=me,this.languageInitService.switchLanguage(me),this.sidenav&&this.sidenav.close()}processLogout(){this.entityBrowseHistoryStorageService.clearAll(),this.authenticationService.logout(),this.currentProfile=e.E,this.router.navigate(["/login"]).then(()=>{this.router.navigate(["",{outlets:{bottom:null}}])}),this.sidenav&&this.sidenav.close()}openAboutDialog(){this.dialog.open(q,{maxWidth:500,data:{}})}static#e=this.\u0275fac=function(Se){return new(Se||R)(u.Y36(n.$h),u.Y36(ee.F0),u.Y36(G.sK),u.Y36(s.nq),u.Y36(i.I),u.Y36(o.B),u.Y36($.uw),u.Y36(l.Q),u.Y36(c.Y),u.Y36(n.Ze),u.Y36(p.mM),u.Y36(t.iN))};static#t=this.\u0275cmp=u.Xpm({type:R,selectors:[["imx-userprofile-sidebar"]],features:[u.qOj],decls:3,vars:3,consts:[["aria-label","Userprofile Menu",1,"navigation-wrapper"],[4,"ngIf"],[1,"imx-user-sidenav-header"],["src","./assets/avatar.jpg",1,"user-image",3,"alt"],["mat-line",""],[1,"navigation-item-wrapper"],[1,"navigation-action-item",3,"ngClass","click"],[1,"icon-wrapper"],[1,"icon-user-cog","icon"],["translate","",1,"label"],[1,"navigation-sub-item-wrapper",3,"ngClass"],[1,"navigation-action-item",3,"click"],[1,"icon-user-edit","icon"],[1,"icon-user-lock","icon"],[1,"icon","icon-languageSwitch"],["src","./assets/flags/de.svg","alt","Deutsch",1,"icon"],["src","./assets/flags/en.svg","alt","Englisch",1,"icon"],[1,"icon-code","icon"],[1,"icon-exit","icon"]],template:function(Se,Ue){1&Se&&(u.TgZ(0,"nav",0),u.YNc(1,at,54,21,"ng-container",1),u.ALo(2,"async"),u.qZA()),2&Se&&(u.xp6(),u.Q6J("ngIf",u.lcZ(2,1,Ue.currentProfile)))},dependencies:[O.mk,O.O5,ue.X2,G.Pi,ge.F,O.Ov,G.X$],styles:[".navigation-header[_ngcontent-%COMP%]{width:100%;height:85px;display:flex;flex-direction:column;align-items:center}.navigation-header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-top:20px;height:32px}.navigation-wrapper[_ngcontent-%COMP%]{position:relative;background-color:#e6e9ef;font-size:15px;min-height:100%}.navigation-wrapper[_ngcontent-%COMP%]   .navigation-about-link[_ngcontent-%COMP%]{position:absolute;bottom:10px;text-align:center;width:100%;font-size:12px}.navigation-action-item[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;overflow:hidden;text-decoration:none;height:50px;padding-right:20px}.navigation-action-item[_ngcontent-%COMP%]   .icon-wrapper[_ngcontent-%COMP%]{min-width:min(20%,60px);display:flex;align-items:center;justify-content:center}.navigation-action-item[_ngcontent-%COMP%]   .icon-wrapper[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:25px;max-width:25px}.navigation-action-item[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{overflow:hidden;position:relative}.navigation-action-item.disabled[_ngcontent-%COMP%]{cursor:default;color:#ced4e0}.navigation-action-item.open[_ngcontent-%COMP%]{background-color:#fff}.navigation-sub-item-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;font-size:14px}.navigation-sub-item-wrapper[_ngcontent-%COMP%]   .navigation-action-item[_ngcontent-%COMP%]{padding-left:min(7%,35px)}.navigation-sub-item-wrapper[_ngcontent-%COMP%]   .navigation-action-item[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:20px;max-width:20px}.navigation-sub-item-wrapper.open[_ngcontent-%COMP%]   .navigation-action-item[_ngcontent-%COMP%]{background-color:#ffffff80}.navigation-item-wrapper[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #ced4e0}.imx-user-sidenav-header[_ngcontent-%COMP%]{text-align:center;height:224px;padding-top:20px}.imx-user-sidenav-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%], .imx-user-sidenav-header[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#fff}.imx-user-sidenav-header[_ngcontent-%COMP%]   .user-image[_ngcontent-%COMP%]{height:100px;width:100px;border:2px solid #fff}"],data:{animation:x.l}})}return R})()},60757:(gt,X,a)=>{"use strict";a.d(X,{k:()=>t});var e=a(16083),n=a(19212),s=a(27416),l=a(7666);function i(p,c){if(1&p&&n._UZ(0,"imx-widget-config-filter-panel",2,3),2&p){const o=n.oxw();n.Q6J("pinned",!0)("parentForm",o.formHandler.formGroup)("formHandler",o.formHandler)("record",o.record)}}let t=(()=>{class p extends e.F{constructor(){super()}getEntityName(){return"WidgetConfig"}static#e=this.\u0275fac=function(x){return new(x||p)};static#t=this.\u0275cmp=n.Xpm({type:p,selectors:[["imx-widget-config-filter"]],features:[n.qOj],decls:3,vars:7,consts:[[3,"entityName","filterPanelsTemplate","formHandler","record","orderFields","orderField","orderDirection","orderChanged","save"],["filterPanelsTemplate",""],[3,"pinned","parentForm","formHandler","record"],["filterPanel",""]],template:function(x,u){if(1&x&&(n.TgZ(0,"imx-filter",0),n.NdJ("orderChanged",function(b){return u.orderChanged.emit(b)})("save",function(b){return u.applyFilter.emit(b)}),n.YNc(1,i,2,4,"ng-template",null,1,n.W1O),n.qZA()),2&x){const m=n.MAs(2);n.Q6J("entityName","WidgetConfig")("filterPanelsTemplate",m)("formHandler",u.formHandler)("record",u.record)("orderFields",u.orderFields)("orderField",u.orderField)("orderDirection",u.orderDirection)}},dependencies:[s.z,l.M]})}return p})()},76667:(gt,X,a)=>{"use strict";a.d(X,{l:()=>H});var e=a(56223),n=a(49193),t=(a(62192),a(62361),a(81169),a(84005)),p=a(19212),c=a(96814),o=a(75986),x=a(10444),u=a(28907),m=a(71365);function b(O,P){if(1&O&&(p.TgZ(0,"div"),p._UZ(1,"imx-form-control",2)(2,"imx-form-control",2),p.qZA()),2&O){const G=p.oxw();p.xp6(),p.Q6J("field",G.fromDateField)("control",G.formGroup.get(G.fromDateField.id))("form",G.formGroup)("formHandler",G.formHandler)("config",G.formHandler.formConfiguration),p.xp6(),p.Q6J("field",G.toDateField)("control",G.formGroup.get(G.toDateField.id))("form",G.formGroup)("formHandler",G.formHandler)("config",G.formHandler.formConfiguration)}}function I(O,P){if(1&O&&(p.TgZ(0,"div")(1,"div",3)(2,"div",4)(3,"div",5),p._UZ(4,"imx-base-select",6),p.ALo(5,"async"),p._UZ(6,"imx-base-select",7),p.ALo(7,"async"),p.qZA(),p.TgZ(8,"div",5),p._UZ(9,"imx-base-select",6),p.ALo(10,"async"),p._UZ(11,"imx-base-select",7),p.ALo(12,"async"),p.qZA()(),p.TgZ(13,"span",8),p._uU(14),p.ALo(15,"translate"),p.qZA(),p.TgZ(16,"div",9),p._UZ(17,"imx-base-select",10),p.ALo(18,"async"),p._UZ(19,"imx-base-select",10),p.ALo(20,"async"),p.qZA()()()),2&O){const G=p.oxw();p.xp6(4),p.Q6J("label","imxplatform.common-entity.edit.panels.opening-hours.dateFrom")("errors",G.formGroup.get(G.fromDateField.id).errors)("formControl",G.fromDayControl)("options",p.lcZ(5,21,G.dayOptions$)),p.xp6(2),p.Q6J("formControl",G.fromMonthControl)("errors",G.fromMonthControl.errors)("options",p.lcZ(7,23,G.monthOptions$)),p.xp6(3),p.Q6J("label","imxplatform.common-entity.edit.panels.opening-hours.dateTo")("errors",G.formGroup.get(G.toDateField.id).errors)("formControl",G.toDayControl)("options",p.lcZ(10,25,G.dayOptions$)),p.xp6(2),p.Q6J("formControl",G.toMonthControl)("errors",G.toMonthControl.errors)("options",p.lcZ(12,27,G.monthOptions$)),p.xp6(3),p.Oqu(p.lcZ(15,29,"imxplatform.common-entity.edit.panels.opening-hours.validInYears.main")),p.xp6(3),p.Q6J("label","imxplatform.common-entity.edit.panels.opening-hours.validInYears.from")("formControl",G.fromYearControl)("options",p.lcZ(18,31,G.yearOptions$)),p.xp6(2),p.Q6J("label","imxplatform.common-entity.edit.panels.opening-hours.validInYears.to")("formControl",G.toYearControl)("options",p.lcZ(20,33,G.yearOptions$))}}let H=(()=>{class O{constructor(G){this.changeDetectorRef=G}ngOnInit(){this.dayOptions$=this._initDayOptions(),this.monthOptions$=this._initMonthOptions(),this.yearOptions$=this._initYearOptions(),this._initFormControls(),this.fillFormControls()}ngAfterViewInit(){this._initDateChangeListeners(),this._initYearlyChangeListener(),this._disableFormControls()}_updateValidity(){this.formGroup.get(this.fromDateField.id).updateValueAndValidity(),this.formGroup.get(this.toDateField.id).updateValueAndValidity()}_initYearlyChangeListener(){this.formGroup.get(this.yearlyField.id).valueChanges.subscribe(G=>{if(!1===G)this.formGroup.get(this.toDateField.id).clearValidators(),this.formGroup.get(this.fromDateField.id).clearValidators();else{const B=this.formGroup.get(this.fromDateField.id).value;this.formGroup.get(this.fromDateField.id).setValidators([e.kI.required,this._dateValidatorFn(this.fromDayControl,this.fromMonthControl)]),this._setValueFormControls(B,this.fromDayControl,this.fromMonthControl,this.fromYearControl);const ae=this.formGroup.get(this.toDateField.id).value;this.formGroup.get(this.toDateField.id).setValidators([e.kI.required,this._dateValidatorFn(this.toDayControl,this.toMonthControl)]),this._setValueFormControls(ae,this.toDayControl,this.toMonthControl,this.toYearControl)}this.changeDetectorRef.detectChanges(),this._updateValidity()})}_initDayOptions(){return(0,n.of)([...Array(31).keys()].map(G=>({label:(G+1).toString(),value:G+1})))}_initMonthOptions(){let G=0;return(0,n.of)((0,t.z)().monthNames.map(B=>({label:B,value:G++})))}_initYearOptions(){return(0,n.of)([...Array(100).keys()].map(ae=>({label:(ae+2e3).toString(),value:ae+2e3})))}fillFormControls(){const G=this.formGroup.get(this.fromDateField.id).value;this.formGroup.get(this.fromDateField.id).setValidators([this._dateValidatorFn(this.fromDayControl,this.fromMonthControl)]),this._setValueFormControls(G,this.fromDayControl,this.fromMonthControl,this.fromYearControl);const B=this.formGroup.get(this.toDateField.id).value;this.formGroup.get(this.toDateField.id).setValidators([this._dateValidatorFn(this.toDayControl,this.toMonthControl)]),this._setValueFormControls(B,this.toDayControl,this.toMonthControl,this.toYearControl),this.changeDetectorRef.detectChanges()}_initFormControls(){this.fromDayControl=new e.p4,this.fromMonthControl=new e.p4,this.fromYearControl=new e.p4,this.toDayControl=new e.p4,this.toMonthControl=new e.p4,this.toYearControl=new e.p4}_disableFormControls(){this.formHandler.hasSavePermission().subscribe(G=>{!1===G&&(this.fromDayControl.disable(),this.fromMonthControl.disable(),this.fromYearControl.disable(),this.toDayControl.disable(),this.toMonthControl.disable(),this.toYearControl.disable(),this.formGroup.get(this.yearlyField.id).disable({onlySelf:!0,emitEvent:!1}),this.changeDetectorRef.detectChanges())})}_setValueFormControls(G,B,ae,J){null!==G&&(B.setValue(G.getDate()),ae.setValue(G.getMonth()),J.setValue(G.getFullYear()))}_initDateChangeListeners(){this._initSelectChangeListener(this.fromDayControl,this.fromDayControl,this.fromMonthControl,this.fromYearControl,this.formGroup.get(this.fromDateField.id)),this._initSelectChangeListener(this.fromMonthControl,this.fromDayControl,this.fromMonthControl,this.fromYearControl,this.formGroup.get(this.fromDateField.id)),this._initSelectChangeListener(this.fromYearControl,this.fromDayControl,this.fromMonthControl,this.fromYearControl,this.formGroup.get(this.fromDateField.id)),this._initSelectChangeListener(this.toDayControl,this.toDayControl,this.toMonthControl,this.toYearControl,this.formGroup.get(this.toDateField.id)),this._initSelectChangeListener(this.toMonthControl,this.toDayControl,this.toMonthControl,this.toYearControl,this.formGroup.get(this.toDateField.id)),this._initSelectChangeListener(this.toYearControl,this.toDayControl,this.toMonthControl,this.toYearControl,this.formGroup.get(this.toDateField.id))}_initSelectChangeListener(G,B,ae,J,q){G.valueChanges.subscribe(j=>{if(null!==B.value&&null!==ae.value){let Y;Y=null!==J.value?new Date(J.value,ae.value,B.value):new Date((new Date).getFullYear(),ae.value,B.value),Y&&(this.formGroup.markAsDirty(),q.setValue(Y))}this.changeDetectorRef.detectChanges()})}_checkDate(G,B){if(null!==G.value&&null!==B.value){const ae=new Date((new Date).getFullYear(),B.value,G.value);return G.value===ae.getDate()&&B.value===ae.getMonth()?null:{invalidDate:{valid:!1}}}}_dateValidatorFn(G,B){return ae=>this._checkDate(G,B)}static#e=this.\u0275fac=function(B){return new(B||O)(p.Y36(p.sBO))};static#t=this.\u0275cmp=p.Xpm({type:O,selectors:[["imx-yearly-definition"]],inputs:{formGroup:"formGroup",formHandler:"formHandler",yearlyField:"yearlyField",fromDateField:"fromDateField",toDateField:"toDateField"},decls:6,vars:6,consts:[[1,"small","checkbox",3,"formControl"],[4,"ngIf"],[3,"field","control","form","formHandler","config"],[1,"form__content-group"],[1,"form__content-row"],[1,"yearly-definition-dayMonth","input-wrapper"],[3,"label","errors","formControl","options"],[3,"formControl","errors","options"],[1,"item-label"],[1,"yearly-definition-year"],[3,"label","formControl","options"]],template:function(B,ae){1&B&&(p.TgZ(0,"div")(1,"mat-checkbox",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.YNc(4,b,3,10,"div",1)(5,I,21,35,"div",1),p.qZA()),2&B&&(p.xp6(),p.Q6J("formControl",ae.formGroup.get(ae.yearlyField.id)),p.xp6(),p.hij(" ",p.lcZ(3,4,ae.yearlyField.label)," "),p.xp6(2),p.Q6J("ngIf",!ae.formGroup.get(ae.yearlyField.id).value),p.xp6(),p.Q6J("ngIf",ae.formGroup.get(ae.yearlyField.id).value))},dependencies:[c.O5,e.JJ,o.oG,e.oH,x.o,u.A,c.Ov,m.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-row[_ngcontent-%COMP%]{margin-bottom:5px}.yearly-definition-dayMonth[_ngcontent-%COMP%]{align-items:flex-end;display:flex;margin:0 6px 0 0}.yearly-definition-dayMonth[_ngcontent-%COMP%]   imx-base-select[_ngcontent-%COMP%]:not(:last-child){margin:0 3px 0 0}.yearly-definition-dayMonth[_ngcontent-%COMP%]   imx-base-select[_ngcontent-%COMP%]:first-child{width:120px}.yearly-definition-dayMonth[_ngcontent-%COMP%]   imx-base-select[_ngcontent-%COMP%]:last-child{width:100px}.yearly-definition-year[_ngcontent-%COMP%]{align-items:flex-end;display:flex}.yearly-definition-year[_ngcontent-%COMP%] > imx-base-select[_ngcontent-%COMP%]{width:120px}.yearly-definition-year[_ngcontent-%COMP%] > imx-base-select[_ngcontent-%COMP%]:not(:last-child){margin:0 3px 0 0}.yearly-definition-dayMonth[_ngcontent-%COMP%]   imx-base-select[_ngcontent-%COMP%]     .mat-mdc-form-field-error{display:none}"]})}return O})()},22194:(gt,X,a)=>{"use strict";a.d(X,{F:()=>s});var e=a(21473),n=a(19212);let s=(()=>{class l{constructor(t,p){this.linkElementRef=t,this.authService=p}onCtrlShift(t){t&&(t.ctrlKey||t.metaKey)&&this.adjustHref()}onContextWindow(){this.adjustHref()}adjustHref(){const t=this.linkElementRef.nativeElement.getAttribute("href");if(t){const p=this.authService.generateTabSessionUrl(t);p&&p.length>0&&this.linkElementRef.nativeElement.setAttribute("href",p)}}static#e=this.\u0275fac=function(p){return new(p||l)(n.Y36(n.SBq),n.Y36(e.$h))};static#t=this.\u0275dir=n.lG2({type:l,selectors:[["a"]],hostBindings:function(p,c){1&p&&n.NdJ("click",function(x){return c.onCtrlShift(x)})("contextmenu",function(){return c.onContextWindow()})}})}return l})()},38888:(gt,X,a)=>{"use strict";a.d(X,{u:()=>n});var e=a(19212);let n=(()=>{class s{constructor(){this.touchedEvents=new e.vpe}onTouched(){this.touchedEvents.emit(!0)}static#e=this.\u0275fac=function(t){return new(t||s)};static#t=this.\u0275dir=e.lG2({type:s,selectors:[["input","formControlName",""],["textarea","formControlName",""],["select","formControlName",""]],hostBindings:function(t,p){1&t&&e.NdJ("blur",function(){return p.onTouched()})}})}return s})()},50334:(gt,X,a)=>{"use strict";a.d(X,{G:()=>n});var e=a(19212);let n=(()=>{class s{constructor(i){this.el=i}ngOnChanges(i){this.el.nativeElement[this.parameter]=this.embedUrl}static#e=this.\u0275fac=function(t){return new(t||s)(e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:s,selectors:[["","embeddedObjectUrl",""]],inputs:{embedUrl:"embedUrl",parameter:"parameter"},features:[e.TTD]})}return s})()},49546:(gt,X,a)=>{"use strict";a.d(X,{l:()=>n});var e=a(19212);let n=(()=>{class s{static#e=this.\u0275fac=function(t){return new(t||s)};static#t=this.\u0275dir=e.lG2({type:s,selectors:[["","imxGenericSelector",""]]})}return s})()},22201:(gt,X,a)=>{"use strict";a.d(X,{l:()=>p});var e=a(72079),n=a(19352),s=a(96124),i=(a(62192),a(21473)),t=a(19212);let p=(()=>{class c{constructor(x,u,m,b){this.templateRef=x,this.viewContainer=u,this.runtimeContext=m,this.securityManager=b,this.destroy$=new e.xQ}ngOnInit(){this.checkPermission()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}checkPermission(){if(this.destroy$.next(),this.formHandler){const x=this.formHandler.getEntityType();this.viewContainer.clear(),this.formHandler.isOwnedEntity().pipe((0,n.R)(this.destroy$),(0,s.U)(u=>this.permissionIds.some(m=>this.securityManager.hasPropertyVisibilityPermission(x,m,u)))).subscribe(u=>{this.viewContainer.clear(),u&&this.viewContainer.createEmbeddedView(this.templateRef)})}}static#e=this.\u0275fac=function(u){return new(u||c)(t.Y36(t.Rgc),t.Y36(t.s_b),t.Y36(i.Ze),t.Y36(i.Xh))};static#t=this.\u0275dir=t.lG2({type:c,selectors:[["","hasAnyFieldReadPermission",""]],inputs:{permissionIds:[t.lbL.None,"hasAnyFieldReadPermission","permissionIds"],formHandler:[t.lbL.None,"hasAnyFieldReadPermissionFormHandler","formHandler"]}})}return c})()},59626:(gt,X,a)=>{"use strict";a.d(X,{R:()=>s});var e=a(21473),n=a(19212);let s=(()=>{class l{constructor(t,p,c){this.templateRef=t,this.viewContainer=p,this.securityManager=c}ngOnInit(){this.viewContainer.clear(),this.permissions&&this.securityManager.hasAnyPermissionByNames(this.permissions)&&this.viewContainer.createEmbeddedView(this.templateRef)}static#e=this.\u0275fac=function(p){return new(p||l)(n.Y36(n.Rgc),n.Y36(n.s_b),n.Y36(e.Xh))};static#t=this.\u0275dir=n.lG2({type:l,selectors:[["","hasAnyPermission",""]],inputs:{permissions:[n.lbL.None,"hasAnyPermission","permissions"]}})}return l})()},17301:(gt,X,a)=>{"use strict";a.d(X,{j:()=>c});var e=a(72079),n=a(19352),s=a(96124),i=(a(62192),a(62934)),t=a(21473),p=a(19212);let c=(()=>{class o{constructor(u,m,b,I){this.templateRef=u,this.viewContainer=m,this.runtimeContext=b,this.securityManager=I,this.destroy$=new e.xQ}ngOnInit(){this.checkPermission()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}checkPermission(){if(this.destroy$.next(),this.formHandler){const u=this.formHandler.getEntityType();this.viewContainer.clear();const m=this.formHandler.formConfiguration.findFormFieldById(this.fieldPath);m?m instanceof i.o?this.formHandler.isOwnedEntity().pipe((0,n.R)(this.destroy$),(0,s.U)(b=>this.securityManager.hasPropertyVisibilityPermission(u,m.permissionId,b))).subscribe(b=>{this.viewContainer.clear(),b&&this.viewContainer.createEmbeddedView(this.templateRef)}):(console.error("field is not an instance of AbstractField; wrong configuration?",m),this.viewContainer.createEmbeddedView(this.templateRef)):(console.error("cannot find field with id "+this.fieldPath),this.viewContainer.createEmbeddedView(this.templateRef))}}static#e=this.\u0275fac=function(m){return new(m||o)(p.Y36(p.Rgc),p.Y36(p.s_b),p.Y36(t.Ze),p.Y36(t.Xh))};static#t=this.\u0275dir=p.lG2({type:o,selectors:[["","hasFieldReadPermission",""]],inputs:{fieldPath:[p.lbL.None,"hasFieldReadPermission","fieldPath"],formHandler:[p.lbL.None,"hasFieldReadPermissionFormHandler","formHandler"]}})}return o})()},47378:(gt,X,a)=>{"use strict";a.d(X,{X:()=>c});var e=a(72079),n=a(49193),s=a(19352),l=a(96743),t=(a(62192),a(62934)),p=a(19212);let c=(()=>{class o{constructor(u,m){this.templateRef=u,this.viewContainer=m,this.destroy$=new e.xQ}ngOnInit(){this.checkPermission()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}checkPermission(){if(this.destroy$.next(),!this.formHandler)throw new Error("no formHandler defined for HasFieldWritePermissionDirective");{this.viewContainer.clear();const u=this.formHandler.formConfiguration.findFormFieldById(this.fieldPath);u?u instanceof t.o?u.readOnly||this.formHandler.hasSavePermission().pipe((0,s.R)(this.destroy$),(0,l.zg)(m=>m?this.formHandler.hasEditPermission(u.permissionId):(0,n.of)(!1))).subscribe(m=>{this.viewContainer.clear(),m&&this.viewContainer.createEmbeddedView(this.templateRef)}):console.error("field is not an instance of AbstractField; wrong configuration?",u):console.error("cannot find field with id "+this.fieldPath)}}static#e=this.\u0275fac=function(m){return new(m||o)(p.Y36(p.Rgc),p.Y36(p.s_b))};static#t=this.\u0275dir=p.lG2({type:o,selectors:[["","hasFieldWritePermission",""]],inputs:{fieldPath:[p.lbL.None,"hasFieldWritePermission","fieldPath"],formHandler:[p.lbL.None,"hasFieldWritePermissionFormHandler","formHandler"]}})}return o})()},44365:(gt,X,a)=>{"use strict";a.d(X,{R:()=>i});var e=a(72079),n=a(19352),l=(a(62192),a(19212));let i=(()=>{class t{constructor(c,o){this.templateRef=c,this.viewContainer=o,this.destroy$=new e.xQ}ngOnInit(){this.checkPermission()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}checkPermission(){this.destroy$.next(),this.formHandler&&(this.viewContainer.clear(),this.formHandler.hasSavePermission().pipe((0,n.R)(this.destroy$)).subscribe(c=>{this.viewContainer.clear(),c&&this.viewContainer.createEmbeddedView(this.templateRef)}))}static#e=this.\u0275fac=function(o){return new(o||t)(l.Y36(l.Rgc),l.Y36(l.s_b))};static#t=this.\u0275dir=l.lG2({type:t,selectors:[["","hasSavePermission",""]],inputs:{formHandler:[l.lbL.None,"hasSavePermission","formHandler"]}})}return t})()},9491:(gt,X,a)=>{"use strict";a.d(X,{M:()=>p});var e=a(42582),n=a(21473),s=a(96585),l=a(19212),i=a(17700);let t=(()=>{class c extends s.e{constructor(x,u){super(x,u),this.entitiesMgr=x,this.dialog=u}static#e=this.\u0275fac=function(u){return new(u||c)(l.Y36(n.qB),l.Y36(i.uw))};static#t=this.\u0275cmp=l.Xpm({type:c,selectors:[["imx-placeholder-module-form-panel"]],hostAttrs:[1,"imx-placeholder-module-form-panel"],features:[l.qOj],decls:4,vars:0,consts:[[1,"form__content-row"],[1,"form__content-group"]],template:function(u,m){1&u&&(l.TgZ(0,"div",0)(1,"div",1)(2,"h3"),l._uU(3,"Es ist noch keine Modul-Implementation vorhanden"),l.qZA()()())},styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}"]})}return c})(),p=(()=>{class c{constructor(x,u){this.vc=x,this.metainfoFormPanelProviderRegistry=u}ngOnChanges(){this.vc.clear();let x=this.metainfoFormPanelProviderRegistry.getMetainfoFormPanelComponent(this.moduleKey,this.entityType);x||(x=t);const u=this.vc.createComponent(x);Object.assign(u.instance,this.inputs)}static#e=this.\u0275fac=function(u){return new(u||c)(l.Y36(l.s_b),l.Y36(e.RH))};static#t=this.\u0275dir=l.lG2({type:c,selectors:[["","moduleFormPanelComponent",""]],inputs:{moduleKey:"moduleKey",entityType:"entityType",inputs:"inputs"},exportAs:["moduleFormPanelComponentDirective"],features:[l.TTD]})}return c})()},30728:(gt,X,a)=>{"use strict";a.d(X,{a:()=>n});var e=a(19212);let n=(()=>{class s{constructor(i){this.editForm=i}onInvalidValue(){const i=this.editForm.nativeElement.querySelectorAll("mat-form-field.ng-invalid, input.ng-invalid, mat-select.ng-invalid, textarea.ng-invalid, ckeditor.ng-invalid, .checkbox-select-wrapper.ng-invalid, div.ng-invalid");if(i&&i.length>0){const t=i[0];t.scrollIntoView({behavior:"smooth",block:"center"}),t.focus({preventScroll:!0})}}static#e=this.\u0275fac=function(t){return new(t||s)(e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:s,selectors:[["","scrollToInvalidField",""]],hostBindings:function(t,p){1&t&&e.NdJ("invalid",function(){return p.onInvalidValue()})}})}return s})()},84961:(gt,X,a)=>{"use strict";a.d(X,{g:()=>s});var e=a(6160),n=a(19212);let s=(()=>{class l{constructor(t,p){this.vc=t,this.slotProviderRegistryService=p}ngOnInit(){if(this.imxSlotComponent){const t=this.slotProviderRegistryService.getSlotComponent(this.imxSlotComponent);if(t){const p=this.vc.createComponent(t);Object.assign(p.instance,this.inputs),this.outputs&&Object.keys(this.outputs).forEach(c=>{p.instance[c].subscribe(o=>this.outputs[c].call(o))})}}}static#e=this.\u0275fac=function(p){return new(p||l)(n.Y36(n.s_b),n.Y36(e.A))};static#t=this.\u0275dir=n.lG2({type:l,selectors:[["","imxSlotComponent",""]],inputs:{imxSlotComponent:"imxSlotComponent",provider:"provider",inputs:"inputs",outputs:"outputs"},exportAs:["slotComponentDirective"]})}return l})()},30154:(gt,X,a)=>{"use strict";a.d(X,{v:()=>n});var e=a(19212);let n=(()=>{class s{constructor(i){this.viewContainerRef=i}static#e=this.\u0275fac=function(t){return new(t||s)(e.Y36(e.s_b))};static#t=this.\u0275dir=e.lG2({type:s,selectors:[["","imxViewContainerRef",""]]})}return s})()},51733:(gt,X,a)=>{"use strict";a.d(X,{k:()=>l});var e=a(21473),n=a(473),s=a(19212);let l=(()=>{class i{parse(p){return this.isPromiseRejection(p)?this._parseError(p.rejection.error):this._parseError(p)}_parseError(p){let c="An error occurred";return p&&(p instanceof e.DO?c=void 0!==p.errorKey?p.errorKey.key:p.message:(0,n.w)(p)?c=p.message:(0,e.Ec)(p)?c=p:void 0!==p.message&&(c=p.message)),c}isPromiseRejection(p){return void 0!==p.rejection}static#e=this.\u0275fac=function(c){return new(c||i)};static#t=this.\u0275prov=s.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})()},69244:(gt,X,a)=>{"use strict";a.d(X,{L:()=>x});var e=a(19212),n=a(22939),s=a(70033),l=a(45125),i=a(96776),t=a(21473),p=a(27556),c=a(59143),o=a(51733);let x=(()=>{class u{constructor(b,I,H,O){this.userMessageService=b,this.errorParserService=I,this.snackbar=H,this.ngZone=O,this.logger=(0,t.jl)("GlobalErrorHandler",p.H.name),this.errors$=new l.X(void 0),this.startListenOnErrorAndDisplay(),this.sentryErrorHandler=s.v$()}handleError(b){b?(this.logger.error("handleError",b),b.stack&&this.logger.error("stack: "+b.stack),this.errors$.next(b)):(this.logger.error("some weird undefined error occurred"),this.errors$.next(new Error("imxplatform.common.error.unknown"))),this.sentryErrorHandler.handleError(b)}ngOnDestroy(){this.errorsSubscription&&(this.errorsSubscription.unsubscribe(),this.errorsSubscription=void 0)}startListenOnErrorAndDisplay(){this.ngZone.run(()=>{this.errorsSubscription=this.errors$.pipe((0,i.b)(1500)).subscribe(b=>{if(b){const I=this.errorParserService.parse(b);this.userMessageService.showError(I)}})})}static#e=this.\u0275fac=function(I){return new(I||u)(e.LFG((0,e.Gpc)(()=>c.Y)),e.LFG((0,e.Gpc)(()=>o.k)),e.LFG((0,e.Gpc)(()=>n.ux)),e.LFG((0,e.Gpc)(()=>e.R0b)))};static#t=this.\u0275prov=e.Yz7({token:u,factory:u.\u0275fac})}return u})()},91719:(gt,X,a)=>{"use strict";a.d(X,{P_w:()=>ds.P_,B7r:()=>ds.B7,vpn:()=>ds.vp,QyX:()=>Ea.Qy,rsm:()=>Ea.rs,N_z:()=>ds.N_,huu:()=>hf.h,Mq7:()=>Ud,jSX:()=>j,KhT:()=>sv,ipx:()=>J,Z59:()=>Lg.Z,x8A:()=>vr,z5l:()=>kg.z,s68:()=>yb.s,CVl:()=>B.C,L8D:()=>h,hzG:()=>Ec,tSG:()=>Af.t,BzM:()=>pe.B,OyM:()=>Hx.O,$cz:()=>rC.$,Qpf:()=>rg,pjK:()=>po,FQG:()=>Cr.F,TmZ:()=>cv.T,qwi:()=>AC,oHD:()=>Vx.o,OGz:()=>qr.O,NNe:()=>bb.N,z$M:()=>_r.z,nwV:()=>Ob.n,NnM:()=>dv.N,E$i:()=>lv,Snb:()=>Qc,KG8:()=>N.K,iVD:()=>In,eeS:()=>uv.e,I0_:()=>Kx,kjG:()=>$r,d$k:()=>Cb.d,plZ:()=>ne.p,GHh:()=>lM.G,IUB:()=>cM.I,AwY:()=>Pb.A,w$i:()=>aC.w,uYu:()=>hr.uY,zLk:()=>ng.z,xx6:()=>Uh.x,RmV:()=>Ht.R,Mw8:()=>Qx.M,Z4A:()=>Jx,Ah0:()=>Bh.A,Bq6:()=>pp,Diz:()=>_p.Di,aFQ:()=>Ui.a,Aq:()=>pv.A,c_T:()=>_p.c_,$Wc:()=>_p.$W,KSj:()=>zC.K,dDz:()=>ey.d,d4z:()=>Yx.d,UzO:()=>Tb.U,$59:()=>Eb,tbi:()=>kC.t,dwJ:()=>Ib,Tq6:()=>Yo,$Ab:()=>lg,FhU:()=>kb,GYV:()=>Mb.G,Z1d:()=>Rb.Z,yfN:()=>TO,A7q:()=>M.A,LPt:()=>WC,BsI:()=>$C,Ba4:()=>Lt.B,B8d:()=>sr.B,hpw:()=>VM.h,ACE:()=>na.A,OFy:()=>Ea.OF,Eom:()=>Nb,YRL:()=>ac.Y,pCd:()=>Ze.p,wgw:()=>x1.w,qeE:()=>Gx.q,t0F:()=>ir.t0,oxo:()=>Jt.o,rJy:()=>Mp.r,k_m:()=>_p.k_,hvm:()=>se.h,G7s:()=>Ka.G,Nkp:()=>Ng.N,dPH:()=>Ab.d,OOD:()=>Zh.O,DQB:()=>Hh.D,xzf:()=>G0.x,iTQ:()=>qt.i,$rd:()=>Sc,TtX:()=>he.Tt,evu:()=>Ic,lnr:()=>Ja.ln,f3D:()=>WO,x0E:()=>dh.x,qF7:()=>$b.q,ZCv:()=>VP.Z,BHq:()=>Iv.B,UWk:()=>By.U,QHT:()=>W1.Q,GLv:()=>Gh.G,B9_:()=>Wl.B,QaJ:()=>he.Q,W$N:()=>il.W,XZJ:()=>So.X,bK4:()=>Qh.b,$gT:()=>Jh.$,N2N:()=>_l.N,rSr:()=>vx.r,D$K:()=>Vh.D,Us$:()=>RC,pLQ:()=>zh.p,vtY:()=>Yh.v,Goq:()=>Wh.G,zhK:()=>uy.z,Nbw:()=>Jt.N,oiz:()=>wC.o,uYo:()=>WM,rMr:()=>DC,nCL:()=>Yt,_pF:()=>Uf,VdW:()=>ug,QBZ:()=>oy.Q,Bh$:()=>KP.B,lYm:()=>nO.l,Qwo:()=>zx.Qw,zds:()=>i.zd,lw2:()=>qy.l,Q47:()=>ar,PcS:()=>i.Pc,$5_:()=>SC.$,VWr:()=>bs.V,UBz:()=>Vf.U,Qwz:()=>Dg.Q,EBn:()=>si.E,ER7:()=>c1.E,vLY:()=>tO,Ru3:()=>xe.R,kZA:()=>xn.k,t8x:()=>ds.t8,dEJ:()=>ds.dE,aW9:()=>mv.a,lxQ:()=>tp.l,EWB:()=>ps.E,$3L:()=>Yf.$,ohD:()=>ig.oh,yik:()=>Rp.yi,xOe:()=>sC.x,AFT:()=>oC.AF,JzP:()=>RO.J,IdW:()=>Yb.I,Ykm:()=>dy.Y,Nnh:()=>cy.Nn,cK0:()=>oO.c,vvt:()=>dh.v,woc:()=>qx.w,F1d:()=>Pd.F,x9M:()=>kO.x,env:()=>$h.e,auo:()=>Qt.a,DQC:()=>Qt.D,xAy:()=>cg.x,tAc:()=>Fn.t,cc$:()=>Ef,jC1:()=>qC.j,Ks0:()=>ds.Ks,a$0:()=>Ac.a$,hgr:()=>NO.h,L9M:()=>K.L,tfF:()=>bn.t,s4V:()=>co.s,gmj:()=>IC.g,Sd1:()=>ii.S,cpn:()=>Oo.c,m$b:()=>ty.m,LYy:()=>Li.L,eRF:()=>no.e,nTJ:()=>st.n,s9U:()=>q.s,Xzv:()=>Lb.X,QWS:()=>em.Q,r3:()=>Dn.r,rXd:()=>Kl.r,Bbh:()=>UO.B,kWV:()=>xl.k,ddR:()=>vt.d,OVp:()=>BO.O,DJU:()=>ye,GuQ:()=>GO.G,Iri:()=>_o.I,fGD:()=>b.f,sh_:()=>xv.s,l1B:()=>XC.l,xAT:()=>cm,pZj:()=>V_,HpD:()=>Rf,J1$:()=>mx.J,nPU:()=>Wa.n,oKU:()=>I.o,KE0:()=>lP.K,Ov9:()=>QO.O,eFn:()=>sM.e,eDO:()=>AP.e,zDJ:()=>jd.zD,Maw:()=>xb.M,UT4:()=>ny.U,VqY:()=>ny.V,p70:()=>YO.p,zud:()=>Hi.z,Bcw:()=>Pc.B,AfD:()=>cl,UrU:()=>o.U,ESd:()=>Jr.E,Ac8:()=>ee.A,K$s:()=>Ws.K$,mjb:()=>vv.m,FJy:()=>zx.FJ,H11:()=>i.H1,YTj:()=>Do.Y,wKb:()=>eo.wK,OVR:()=>MP,vZb:()=>Py.v,Ihn:()=>Ws.Ih,lMk:()=>Fr.l,Bqd:()=>Bb.B,vTp:()=>ry,Ee_:()=>Bt.Ee,P5h:()=>zO.P,LqS:()=>$o.L,s07:()=>iy.s,Ru2:()=>eO.R,L6k:()=>jO.L,Ngj:()=>UC.N,l_h:()=>ay,lAk:()=>at.l,Ra2:()=>yr.R,jth:()=>Le.j,Xvw:()=>ll.X,RFi:()=>$O.R,fYw:()=>FC.f,PlG:()=>oo.P,yvx:()=>eP,A$A:()=>sp.A,JSK:()=>$.J,aJs:()=>bv.a,iYE:()=>gs.i,SKA:()=>wb.S,YC6:()=>Cv.Y,SD5:()=>tP.S,sds:()=>ly.s,tH6:()=>Jb.t,$0t:()=>nP.$,Gkr:()=>Ui.G,xHi:()=>hf.x,_cZ:()=>Uo,oaH:()=>Bc.o,Vmd:()=>br.Vm,V9m:()=>he.V9,sOr:()=>Re.s,vI_:()=>kt.v,RlX:()=>lf.R,WUH:()=>VO.W,FD4:()=>xe.F,mKO:()=>_v.mK,kF3:()=>_v.kF,hSA:()=>dM.h,b4M:()=>Hn.b4,rn3:()=>mx.r,mr3:()=>zx.mr,Gyk:()=>Qe.Gy,Aoi:()=>gP.A,VIo:()=>Ac.VI,WCY:()=>Ac.WC,eNC:()=>he.eN,s4b:()=>zb.s,j5o:()=>Av.j5,hw$:()=>Hg.hw,fsc:()=>Av.fs,bUz:()=>Av.bU,bSI:()=>Hg.bS,_cU:()=>Hg._c,KbZ:()=>sl.K,DAl:()=>iO.D,l0D:()=>$_.l0,ezM:()=>$_.ez,BeU:()=>$_.Be,hsB:()=>sn.hs,HpM:()=>gd.Hp,DBl:()=>vb.D,Azm:()=>Bb.A,zn7:()=>Bt.zn,tTp:()=>iC.t,Cmn:()=>iP.C,nGB:()=>yv.n,WR8:()=>KC,qKu:()=>NP.q,oBH:()=>av.o,e$K:()=>Xy.e,qB2:()=>i.qB,$tK:()=>ur.$,Yzi:()=>Ov.Y,uok:()=>i.uo,x3q:()=>i.x3,nqd:()=>sn.nq,Q8o:()=>mr.Q,yT$:()=>fM,Riq:()=>Zx,Xhl:()=>i.Xh,CMz:()=>Qb.C,IIB:()=>Gr.II,amK:()=>Vb.a,PHe:()=>oP.P,Vvc:()=>rP,Mxn:()=>Vx.M,lT7:()=>eo.lT,L5T:()=>jd.L5,s6X:()=>mh.s,lg1:()=>Yi.l,mM4:()=>aP.mM,hYA:()=>Ke,OD2:()=>fo.O,t_W:()=>zM,SsB:()=>sP.S,n$I:()=>Kh.n,Ack:()=>Zg.A,HLO:()=>iu.H,Fbf:()=>bu.F,jQw:()=>Od.j,NbL:()=>jo.N,_UU:()=>Cn._,GCG:()=>Wi.G,AKr:()=>uo.A,Ykg:()=>Ss.Y,Tb9:()=>cP.T,xBk:()=>dP.x,h2J:()=>E_,dXY:()=>Wb.d,lXk:()=>qh.l,c0R:()=>YM.c,NZk:()=>my.N,XsS:()=>j_,xGt:()=>Ap.x,Man:()=>us.M,cN0:()=>uc.c,hEI:()=>mP.h,ImG:()=>Mv.I,GoE:()=>py,bzU:()=>_P.b,GGu:()=>_y.G,ifz:()=>uP.i,Mo$:()=>wO.M,rj3:()=>hP.r,dgR:()=>jx.d,E_W:()=>gy.E,HZ0:()=>fy.H,VGo:()=>Sp.V,Ig6:()=>pP.I,UZY:()=>xy.U,$19:()=>fP.$,u$$:()=>Yg.u,k33:()=>vy.k,ll4:()=>xP.l,TL6:()=>hy.T,_gZ:()=>by._,itS:()=>Tv.i,bMP:()=>Ba.b,dMU:()=>oi.d,TH7:()=>ZO.T,osb:()=>mc.o,uS$:()=>HO.u,ucr:()=>li.u,RHm:()=>Ac.RH,sIf:()=>vP.s,LEN:()=>yy.L,IWA:()=>KO.I,kJJ:()=>Xx,Lkj:()=>zb.L,MPH:()=>oM.M,zPv:()=>rO.z,UfX:()=>dx.U,Lrd:()=>CP.L,q2N:()=>bP.q,NUq:()=>$x.N,OPm:()=>yP.O,SAg:()=>Cy.S,laH:()=>jd.l,JzT:()=>Oy.J,$yX:()=>Qe.$y,EGq:()=>Qe.EG,pvF:()=>Fy,GUq:()=>ds.GU,hGP:()=>Tt,NH8:()=>OP.N,hik:()=>mo.h,RZ2:()=>yt.R,bwl:()=>aM,mzY:()=>JO.m,I1q:()=>Ws.I1,HHi:()=>Ws.HH,mrS:()=>an.m,Ku6:()=>jM.K,UDP:()=>jb.U,xpf:()=>Zb.x,hT:()=>Jf,Nes:()=>wg,ZJB:()=>TP,wOC:()=>Kb,yio:()=>KM.y,W7z:()=>$M.W,xdk:()=>My.x,l2u:()=>EP.v,__Z:()=>Ev._,mPy:()=>Ty.m,acD:()=>wP.a,QNV:()=>Wr.Q,Ci3:()=>IP.C,xGj:()=>SP.x,iv:()=>$y.i,ccW:()=>FP.c,fqy:()=>LP.f,I_J:()=>DP.I,KeE:()=>Av.Ke,vB6:()=>Hg.vB,VO9:()=>Ey.V,VXB:()=>Ay.V,$WB:()=>hv.$,aE_:()=>RP.a,jM6:()=>wy,mzd:()=>PP.m,xl:()=>jc.x,DIo:()=>kP.D,nbW:()=>Ye.n,wvV:()=>Dy.w,FD5:()=>eo.FD,TyJ:()=>UP,jQ9:()=>Iy.j,Gey:()=>Sy.G,wqB:()=>ZP.w,I1h:()=>HP.I,Uaz:()=>BP.U,SYO:()=>GP.S,Cws:()=>Ry.C,dQb:()=>zP.d,jsD:()=>ue.j,Q_P:()=>YP.Q,f25:()=>QP.f,zCe:()=>JP.z,l9k:()=>p,vsq:()=>WP.v,FzX:()=>ts.F,pkq:()=>Rp.pk,aRh:()=>Wt.a,$jC:()=>Ms.$,xsF:()=>sl.x,PhF:()=>ts.P,Hr0:()=>ve.H,xXH:()=>jP.x,l6K:()=>$P.l,PcB:()=>ky,vkn:()=>Ly,F95:()=>XP.F,k8F:()=>eM.k,XMz:()=>jb.X,rNF:()=>qb,Rkf:()=>Ny.R,NSP:()=>Xb.N,CU6:()=>Bt.CU,pR0:()=>Pv.p,UBX:()=>Zy.U,Xjo:()=>Uy.X,ynR:()=>eC.y,hwB:()=>tM.h,AHB:()=>td.A,REe:()=>la,D$E:()=>rM.D,pr7:()=>Hy.p,ac$:()=>Ro.a,tGY:()=>Mg.t,XpX:()=>Xf,n$2:()=>nM.n,qrb:()=>Jy.q,YIQ:()=>Gy.Y,Cfr:()=>Ws.Cf,DaY:()=>wv.D,wQ2:()=>tC.w,lkI:()=>Qy.l,Wdl:()=>nC.W,vBG:()=>il.v,ka3:()=>Dv.k,Y5m:()=>c.Y,iQz:()=>hg,iNc:()=>$_.iN,$$Q:()=>Ky.$,EME:()=>Vy,bKU:()=>Wy,vEB:()=>zy.v,l$3:()=>iM.l,Z2H:()=>jy,f_S:()=>HC,o9B:()=>Fb,C9:()=>JC,vKx:()=>gd.vK,iHE:()=>ga.iH,gNA:()=>ga.gN,P86:()=>Ws.P8,a9F:()=>gd.a9,yHL:()=>gd.yH,XSm:()=>wr.XS,wrC:()=>ir.wr,DRt:()=>gd.DR,Tmi:()=>Ws.Tm,UkV:()=>wr.Uk,hq9:()=>ir.hq,kY5:()=>ir.kY,SC7:()=>Ja.SC,Z4b:()=>wr.Z4,NTt:()=>ga.NT,H_$:()=>gd.H_,AAq:()=>ir.AA,Idj:()=>wr.Id,THg:()=>wr.TH,nYd:()=>ir.nY,_R5:()=>gd._R,Qi:()=>ga.Qi,Ko5:()=>gd.Ko,JDH:()=>ga.JD,kFJ:()=>gd.kF,pWg:()=>gd.pW,f73:()=>gd.f7,ho3:()=>gd.ho,glZ:()=>gd.gl,Qyv:()=>Ws.Qy,Xfi:()=>ga.Xf,CpO:()=>ga.Cp,bk6:()=>us.bk,fB6:()=>us.fB,IB4:()=>Gr.IB,wB8:()=>us.wB,_OE:()=>us._O,wU8:()=>wr.wU,smf:()=>us.sm,ip3:()=>ga.ip,dnR:()=>ga.dn,nDJ:()=>Ur,CZP:()=>Gr.CZ,vKY:()=>Gr.vK,YnO:()=>us.Yn,E98:()=>us.E9,Lew:()=>us.Le,y8A:()=>ir.y8,jgv:()=>ga.jg,ua_:()=>Ja.u,VKY:()=>Ja.VK,vDp:()=>Ja.vD,hnV:()=>Ja.hn,xCN:()=>Ja.xC,TV6:()=>Ja.TV,BoM:()=>Ja.Bo,j5r:()=>Ja.j5,FTL:()=>Ja.FT,w1p:()=>Ja.w1,y8p:()=>us.y8,X_A:()=>ga.X_,WQr:()=>ga.WQ,R56:()=>Ja.R5,OUA:()=>Ja.OU,VXe:()=>GC,vuk:()=>ZC,GkW:()=>ir.Gk,Uwl:()=>lC.U,_Jk:()=>gd._J,umU:()=>gd.um,ORG:()=>gd.OR,e7t:()=>gd.e7,z5v:()=>Zb.z,jl5:()=>i.jl,l$5:()=>ga.l$,Y2j:()=>us.Y2,LF0:()=>us.LF,xO7:()=>wr.xO,KBk:()=>us.KB,YPC:()=>us.YP,sIB:()=>gd.sI,UPZ:()=>us.UP,elT:()=>us.el,wW3:()=>gd.wW,gg0:()=>gd.gg,bi4:()=>ga.bi,Qr$:()=>ga.Qr,QKs:()=>ga.QK,A2E:()=>ga.A2,wFo:()=>pM.w,XIr:()=>wr.XI,MKO:()=>wr.MK,Ygv:()=>BC,Ka$:()=>gd.K,WF0:()=>gd.WF,UZG:()=>mM.U,geP:()=>wr.ge,iwT:()=>ir.iw,O_j:()=>wr.O_,G3T:()=>ir.G3,J2M:()=>yg,Fph:()=>Pp,Zw_:()=>wr.Zw,sDl:()=>ir.sD,V6B:()=>wr.V6,nHE:()=>wr.nH,kJT:()=>ir.kJ,$$c:()=>gd.$$,iJN:()=>lC.i,k4S:()=>Gr.k4,YLc:()=>wr.YL,wqe:()=>ir.wq,tHy:()=>_M.t,DlU:()=>gd.Dl,G$0:()=>gd.G$,T9x:()=>qr.T,tiq:()=>gd.ti,SAB:()=>ga.SA,gi8:()=>us.gi,kiy:()=>xb.k,Bd$:()=>ga.Bd,CxB:()=>wr.Cx,Gxm:()=>ir.Gx,lm_:()=>Ws.lm,lSQ:()=>us.lS,OLD:()=>Ws.OL,Hnh:()=>ga.Hn,jVp:()=>Ja.jV,f$l:()=>Ws.f$,_Ug:()=>ir._U,d_g:()=>ir.d_,FOt:()=>ir.FO,Uz4:()=>ga.Uz,Epe:()=>$_.Ep,E8v:()=>Rp.E8,dI6:()=>Rp.dI,F4m:()=>Rp.F4,y5B:()=>Rp.y5,cR3:()=>Rp.cR,zyF:()=>Rp.zy,zDQ:()=>$_.zD,h7B:()=>Ws.h7,DZ9:()=>Ws.DZ});var e=a(96814),n=a(33247),s=a(55384),l=a(22941),i=a(21473),t=a(19212);let p=(()=>{class A{canDeactivate(f){return f.storeCurrentStateInStorage(),!0}static#e=this.\u0275fac=function(L){return new(L||A)};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();var c=a(59143),o=a(86929),x=a(56223),u=a(49193),m=a(96124),b=a(15604),I=a(93281),H=a(79309),O=a(75222),P=a(23291),G=a(17927),B=a(23222),ae=a(17700);let J=(()=>{class A extends B.C{constructor(f,L,V){super(L,V),this.runtimeContext=f,this.entitiesMgrService=L,this.dialog=V,this.feasibleClients=[],this.rootClients=[]}onRecordChange(){this.loadFeasibleClients(),this.determineClientAndParentClientIds(this.formHandler.formGroup.get("client").value)}ngOnInit(){super.ngOnInit(),this.formHandler.formGroup.get("client").valueChanges.subscribe(f=>{this.determineClientAndParentClientIds(f)})}determineFeasibleClients(){const f=this.runtimeContext.getCurrentAndSubClients().pipe((0,m.U)(An=>Array.from(An))),L=this.formHandler.getFormValue("client"),V=this.record.client?this.record.client.name:this.runtimeContext.getLoginClient().name,Xe=(0,u.of)({id:L,name:V});return(0,P.aj)([f,Xe]).pipe((0,m.U)(([An,Qo])=>An.some(Dr=>Qo.id===Dr.id)?new Set(An):new Set([Qo])))}loadFeasibleClients(){this.determineFeasibleClients().pipe((0,G.b)(f=>f.forEach(L=>{(null==L.parent||!f.has(L.parent))&&this.rootClients.push(L)})),(0,m.U)(f=>{const L=[];for(const V of Array.from(f.values()))L.push({label:V.name,value:V.id});return L.sort((V,Xe)=>V.label.localeCompare(Xe.label))})).subscribe(f=>{this.feasibleClients=f})}getClientHierarchy(f,L){const V=this.runtimeContext.getCurrentAndSubClients().pipe((0,m.U)(An=>Array.from(An))),Xe=this.entitiesMgr.getEntityWithIdOfType("Client",f).pipe((0,m.U)(An=>{const Qo=new Set;return L&&this.allSubClientsOfClient(An).forEach(Dr=>Qo.add(Dr)),Qo.add(An),Array.from(Qo)}));return(0,P.aj)([Xe,V]).pipe((0,m.U)(([An,Qo])=>new Set(Array.from(An.filter(Dr=>Qo.some(es=>es.id===Dr.id))))))}allSubClientsOfClient(f){const L=new Set;return this.fillSetWithChildClients(L,f),L}fillSetWithChildClients(f,L){if(L.children)for(const V of L.children)f.add(V),this.fillSetWithChildClients(f,V)}determineClientAndParentClientIds(f){this.entitiesMgr.getEntityWithIdOfType("Client",f).pipe((0,m.U)(L=>{const V=this.determineAllParentClientsOfClient(L);return V.add(L),[...V].map(Xe=>Xe.id)})).subscribe(L=>this.clientAndParentClientIds=L)}determineAllParentClientsOfClient(f){const L=new Set;let V=f.parent;for(;V;)V.id>H.t8&&L.add(V),V=V.parent;return L}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(i.Ze),t.Y36(i.qB),t.Y36(ae.uw))};static#t=this.\u0275dir=t.lG2({type:A,features:[t.qOj]})}return A})();var q=a(80750);let j=(()=>{class A extends J{constructor(f,L,V){super(f,L,V),this.runtimeContext=f,this.entitiesMgrService=L,this.dialog=V,this.tagsAvailable=(0,u.of)(!1)}onRecordChange(){super.onRecordChange(),null!=this.formHandler.formGroup.get("tags")&&(this.tagCollectionDataSource=this.prepareTable(this.formHandler.formGroup.get("tags"),f=>this.tagCollectionDataSource=f))}ngOnInit(){super.ngOnInit(),this.tagsAvailable=this.baseEntityAvailable("Tag")}onEditObjectLanguage(){this.dialog?this.dialog.open(q.s,{maxWidth:660,data:{showConfigurationCheckboxes:!0,allowSaveEmptyArray:!1,formLanguageHandler:this.formHandler.formLanguage,selectedLanguages:[...this.formHandler.getLanguageFormControl().value]}}).afterClosed().pipe((0,O.w)(L=>this.formHandler.validateObjectLanguageChange(L.addedLanguages,L.removedLanguages).pipe((0,m.U)(V=>V?L:void 0)))).subscribe(L=>{L&&(L.adjustChildObjects&&this.onObjectLanguageChange(L.addedLanguages,L.removedLanguages),this.formHandler.getLanguageFormControl().setValue(L.selectedLanguages),this.formHandler.editObjectLanguages(),L.copyFromObjectLanguage&&L.addedLanguages.length>0&&(this.formHandler.updateObjectLanguageContent(L.addedLanguages),this.onObjectLanguageChangeWithOvertakeFieldsOption(L.addedLanguages,L.removedLanguages)))}):console.warn("no dialog instance passed!")}onObjectLanguageChange(f,L){}onObjectLanguageChangeWithOvertakeFieldsOption(f,L){f.forEach(V=>this.formHandler.suggestPermaLinkForLang(V.name,this.getUniquePermalink.bind(this)))}suggestPermaLink(){this.formHandler.suggestPermaLinkForLang(this.formHandler.formLanguage.getEditLanguage().name,this.getUniquePermalink.bind(this))}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(i.Ze),t.Y36(i.qB),t.Y36(ae.uw))};static#t=this.\u0275dir=t.lG2({type:A,features:[t.qOj]})}return A})();var Y=a(71365),K=a(58139),ne=a(62192),ee=a(28907),$=a(90089),ue=a(1614);function ge(A,Gt){if(1&A&&(t.TgZ(0,"div",1),t._UZ(1,"img",2),t.ALo(2,"readI18n"),t.TgZ(3,"span"),t._uU(4),t.ALo(5,"readI18n"),t.qZA()()),2&A){const f=Gt.$implicit;t.xp6(),t.Q6J("src","./assets/flags/"+f.name+".svg",t.LSH)("alt",t.lcZ(2,3,f.i18nName)),t.xp6(3),t.Oqu(t.lcZ(5,5,f.i18nName))}}let Ke=(()=>{class A{constructor(f){this.changeDetectorRef=f}ngOnInit(){this.formHandler.formLanguage.getObjectLanguagesObservable().subscribe(f=>{this.languages=f,this.changeDetectorRef.markForCheck()})}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(t.sBO))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-language-list"]],inputs:{formHandler:"formHandler"},decls:1,vars:1,consts:[["class","language-icon",4,"ngFor","ngForOf"],[1,"language-icon"],[3,"src","alt"]],template:function(L,V){1&L&&t.YNc(0,ge,6,7,"div",0),2&L&&t.Q6J("ngForOf",V.languages)},dependencies:[e.sg,ue.j],styles:[".language-icon[_ngcontent-%COMP%]{margin-bottom:5px}.language-icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:20px;margin-right:10px}"]})}return A})();var at=a(22201),Le=a(17301);function R(A,Gt){1&A&&t.GkF(0)}function Te(A,Gt){1&A&&t.GkF(0)}const me=()=>({$implicit:"subTitle"}),Se=()=>({$implicit:"shortDescription"});function Ue(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"div",5)(1,"h3",6),t._uU(2,"imxplatform.common-entity.edit.panels.base-data.main-text"),t.qZA(),t.TgZ(3,"div",7)(4,"imx-i18n-multi-input",8),t.NdJ("i18nBlur",function(){t.CHM(f);const V=t.oxw();return t.KtG(V.suggestPermaLink.emit())}),t.qZA(),t.YNc(5,R,1,0,"ng-container",9),t.qZA(),t.YNc(6,Te,1,0,"ng-container",9),t.qZA()}if(2&A){const f=t.oxw(),L=t.MAs(5);t.xp6(4),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("title"))("control",f.formHandler.formGroup.get("title"))("form",f.formHandler.formGroup)("formHandler",f.formHandler),t.xp6(),t.Q6J("ngTemplateOutlet",L)("ngTemplateOutletContext",t.DdM(8,me)),t.xp6(),t.Q6J("ngTemplateOutlet",L)("ngTemplateOutletContext",t.DdM(9,Se))}}function We(A,Gt){if(1&A){const f=t.EpF();t.ynx(0),t.TgZ(1,"h3",13),t._uU(2,"imxplatform.common-entity.edit.panels.base-data.alternateLanguage"),t.qZA(),t.TgZ(3,"div",14)(4,"img",15,16),t.NdJ("error",function(){t.CHM(f);const V=t.MAs(5),Xe=t.oxw(2);return t.KtG(V.src=Xe.alternateLanguageIcon)}),t.qZA(),t.TgZ(6,"span"),t._uU(7),t.qZA()(),t.BQk()}if(2&A){const f=t.MAs(5),L=t.oxw(2);t.xp6(4),t.Q6J("src",f,t.LSH)("alt",L.formHandler.baseObject.alternateLanguage),t.xp6(3),t.Oqu(L.formHandler.baseObject.alternateLanguage)}}function et(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"div",10)(1,"h3",6),t._uU(2,"imxplatform.common-entity.edit.panels.base-data.languages"),t.qZA(),t._UZ(3,"imx-language-list",11),t.TgZ(4,"button",12),t.NdJ("click",function(){t.CHM(f);const V=t.oxw();return t.KtG(V.editObjectLanguages.emit())}),t.ALo(5,"async"),t.ALo(6,"async"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,We,8,3,"ng-container",3),t.qZA()}if(2&A){const f=t.oxw();t.xp6(3),t.Q6J("formHandler",f.formHandler),t.xp6(),t.Q6J("disabled",!t.lcZ(5,4,f.formHandler.hasEditPermission("languages"))||!t.lcZ(6,6,f.formHandler.hasSavePermission())),t.xp6(3),t.Oqu(t.lcZ(8,8,"imxplatform.common-entity.edit.panels.base-data.edit-languages")),t.xp6(2),t.Q6J("ngIf",f.formHandler.baseObject.alternateLanguage)}}function Et(A,Gt){1&A&&t.GkF(0)}const lt=()=>({$implicit:"longDescription"});function Vt(A,Gt){if(1&A&&(t.TgZ(0,"div",0)(1,"div",5),t.YNc(2,Et,1,0,"ng-container",9),t.qZA()()),2&A){t.oxw(2);const f=t.MAs(5);t.xp6(2),t.Q6J("ngTemplateOutlet",f)("ngTemplateOutletContext",t.DdM(2,lt))}}function r(A,Gt){if(1&A&&(t.ynx(0),t.YNc(1,Vt,3,3,"div",17),t.BQk()),2&A){const f=t.oxw();t.xp6(),t.Q6J("hasFieldReadPermission","longDescription")("hasFieldReadPermissionFormHandler",f.formHandler)}}function Z(A,Gt){if(1&A&&t._UZ(0,"imx-form-control",19),2&A){const f=t.oxw().$implicit,L=t.oxw();t.Q6J("field",L.formHandler.formConfiguration.findFormFieldById(f))("control",L.formHandler.formGroup.get(f))("form",L.formHandler.formGroup)("formHandler",L.formHandler)("config",L.formHandler.formConfiguration)}}function Pt(A,Gt){if(1&A&&t.YNc(0,Z,1,5,"imx-form-control",18),2&A){const f=Gt.$implicit,L=t.oxw();t.Q6J("ngIf",L.formHandler.formConfiguration.findFormFieldById(f))}}const Oe=()=>["title","subTitle","shortDescription"];let ye=(()=>{class A{constructor(){this.suggestPermaLink=new t.vpe,this.editObjectLanguages=new t.vpe,this.alternateLanguageIcon="./assets/flags/__.svg",this.img=""}ngOnInit(){this.img=this.formHandler.baseObject.alternateLanguage?"./assets/flags/"+this.formHandler.baseObject.alternateLanguage+".svg":this.alternateLanguageIcon}static#e=this.\u0275fac=function(L){return new(L||A)};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-edit-titles"]],hostAttrs:[1,"imx-edit-titles"],inputs:{formHandler:"formHandler",record:"record",hideLongDescription:"hideLongDescription"},outputs:{suggestPermaLink:"suggestPermaLink",editObjectLanguages:"editObjectLanguages"},decls:6,vars:6,consts:[[1,"form__content-row"],["class","form__content-group",4,"hasAnyFieldReadPermission","hasAnyFieldReadPermissionFormHandler"],["class","form__content-group language",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[4,"ngIf"],["imxControl",""],[1,"form__content-group"],["translate",""],[1,"form__content-field-row","wrap-md"],[3,"field","control","form","formHandler","i18nBlur"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"form__content-group","language"],[3,"formHandler"],[1,"imx-button","prio2","bottom",3,"disabled","click"],["translate","",1,"alternateLanguage"],[1,"language-icon"],[3,"src","alt","error"],["img",""],["class","form__content-row",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[3,"field","control","form","formHandler","config",4,"ngIf"],[3,"field","control","form","formHandler","config"]],template:function(L,V){1&L&&(t.TgZ(0,"div",0),t.YNc(1,Ue,7,10,"div",1)(2,et,10,10,"div",2),t.qZA(),t.YNc(3,r,2,2,"ng-container",3)(4,Pt,1,1,"ng-template",null,4,t.W1O)),2&L&&(t.xp6(),t.Q6J("hasAnyFieldReadPermission",t.DdM(5,Oe))("hasAnyFieldReadPermissionFormHandler",V.formHandler),t.xp6(),t.Q6J("hasFieldReadPermission","languageField")("hasFieldReadPermissionFormHandler",V.formHandler),t.xp6(),t.Q6J("ngIf",V.formHandler.formConfiguration.hasSomeField("longDescription")&&!V.hideLongDescription))},dependencies:[e.O5,e.tP,Y.Pi,ee.A,$.J,Ke,at.l,Le.j,e.Ov,Y.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__content-group.language[_ngcontent-%COMP%], .form__content-group.type[_ngcontent-%COMP%]{flex-basis:230px}.form__content-group.language[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{margin-top:15px}.alternateLanguage[_ngcontent-%COMP%]{margin-top:10px}.language-icon[_ngcontent-%COMP%]{margin-bottom:5px}.language-icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:20px;margin-right:10px}[_nghost-%COMP%]     imx-i18n-multi-richtext label{font-weight:700}"],changeDetection:0})}return A})();var ve=a(36116);function ft(A,Gt){1&A&&t.GkF(0)}const Dt=()=>({$implicit:"addressbaseUser"});function Rn(A,Gt){if(1&A&&(t.TgZ(0,"div",15),t.YNc(1,ft,1,0,"ng-container",16),t.qZA()),2&A){t.oxw(3);const f=t.MAs(17);t.xp6(),t.Q6J("ngTemplateOutlet",f)("ngTemplateOutletContext",t.DdM(2,Dt))}}function ti(A,Gt){if(1&A&&(t.ynx(0),t.YNc(1,Rn,2,3,"div",14),t.BQk()),2&A){const f=t.oxw(2);t.xp6(),t.Q6J("ngIf",f.showAddressbaseUser)}}function Xt(A,Gt){if(1&A&&(t.TgZ(0,"div",7)(1,"h3",2),t._uU(2,"imxplatform.addresspoi.edit.panels.base-data.client-group"),t.qZA(),t._UZ(3,"imx-edit-client",12),t.YNc(4,ti,2,1,"ng-container",13),t.qZA()),2&A){const f=t.oxw();t.xp6(3),t.Q6J("formHandler",f.formHandler)("feasibleClients",f.feasibleClients)("rootClients",f.rootClients),t.xp6(),t.Q6J("hasFieldReadPermission","addressbaseUser")("hasFieldReadPermissionFormHandler",f.formHandler)}}function Je(A,Gt){1&A&&t.GkF(0)}const dt=()=>({$implicit:"types"});function Ie(A,Gt){if(1&A&&(t.TgZ(0,"div",17),t.YNc(1,Je,1,0,"ng-container",16),t.qZA()),2&A){t.oxw();const f=t.MAs(17);t.xp6(),t.Q6J("ngTemplateOutlet",f)("ngTemplateOutletContext",t.DdM(2,dt))}}function ot(A,Gt){1&A&&t.GkF(0)}const ct=()=>({$implicit:"attributes"});function tn(A,Gt){if(1&A&&(t.TgZ(0,"div",4)(1,"div",7)(2,"h3",2),t._uU(3,"imxplatform.common-entity.edit.panels.base-data.attributes"),t.qZA(),t.YNc(4,ot,1,0,"ng-container",16),t.qZA()()),2&A){t.oxw();const f=t.MAs(17);t.xp6(4),t.Q6J("ngTemplateOutlet",f)("ngTemplateOutletContext",t.DdM(2,ct))}}function yi(A,Gt){if(1&A&&t._UZ(0,"imx-form-control",18),2&A){const f=Gt.$implicit,L=t.oxw();t.Q6J("field",L.formHandler.formConfiguration.findFormFieldById(f))("control",L.formHandler.formGroup.get(f))("form",L.formHandler.formGroup)("formHandler",L.formHandler)("config",L.formHandler.formConfiguration)}}let ni=(()=>{class A extends j{constructor(f,L,V,Xe,An,Qo){super(f,L,V),this.runtimeContext=f,this.entitiesMgr=L,this.dialog=V,this.collectionsService=Xe,this.entityStateDao=An,this.changeDetectorRef=Qo,this.entityStateOptions=[],this.attributesAvailable=(0,u.of)(!1),this.showAddressbaseUser=!1}onRecordChange(){super.onRecordChange(),this.initializeEntityStateOptions();const f=this.formHandler.formGroup.get("addressbaseUser");this.showAddressbaseUser=null!==f.value,this.showAddressbaseUser&&this.entitiesMgr.getEntityWithIdOfType("User",f.value).subscribe(L=>{f.setValue(L.loginname),f.markAsPristine({onlySelf:!0})})}ngOnInit(){super.ngOnInit(),this.attributesAvailable=this.baseEntityAvailable("AddressbaseAttribute")}getUniquePermalink(f,L){return(0,u.of)("")}initializeEntityStateOptions(){let f;f=this.entityStateDao.findAvailablesByEntity(this.record._entityType,this.record.id?this.record.id:"new","edit"),f.pipe((0,m.U)(L=>L.map(V=>({label:"entity.EntityState."+V.name.toLowerCase(),value:V.key})))).subscribe(L=>{this.entityStateOptions=L,this.changeDetectorRef.markForCheck()})}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(i.Ze),t.Y36(i.qB),t.Y36(ae.uw),t.Y36(b.f),t.Y36(I.o),t.Y36(t.sBO))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-address-poi-base-data-form-panel"]],hostAttrs:[1,"imx-address-poi-base-data-form-panel"],features:[t.qOj],decls:18,vars:19,consts:[[1,"form__content-panel","basicdata"],["id","basicdata",1,"anchor"],["translate",""],[3,"formHandler","editObjectLanguages"],[1,"form__content-row"],["class","form__content-group",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],["class","form__content-group type",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[1,"form__content-group"],[1,"form__content-field-row"],[1,"entity-state-switch",3,"field","control","form","formHandler","disableControl","optionProvider"],["class","form__content-row",4,"ngIf"],["imxControl",""],[3,"formHandler","feasibleClients","rootClients"],[4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],["class","user",4,"ngIf"],[1,"user"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"form__content-group","type"],[3,"field","control","form","formHandler","config"]],template:function(L,V){1&L&&(t.TgZ(0,"div",0),t._UZ(1,"div",1),t.TgZ(2,"h2",2),t._uU(3,"imxplatform.common-entity.edit.panels.base-data.title"),t.qZA(),t.TgZ(4,"imx-edit-titles",3),t.NdJ("editObjectLanguages",function(){return V.onEditObjectLanguage()}),t.qZA(),t.TgZ(5,"div",4),t.YNc(6,Xt,5,5,"div",5)(7,Ie,2,3,"div",6),t.qZA(),t.TgZ(8,"div",4)(9,"div",7)(10,"div",8),t._UZ(11,"imx-select",9),t.ALo(12,"async"),t.qZA()()(),t.YNc(13,tn,5,3,"div",10),t.ALo(14,"async"),t.ALo(15,"async"),t.qZA(),t.YNc(16,yi,1,5,"ng-template",null,11,t.W1O)),2&L&&(t.xp6(),t.uIk("data-scroll-id","basicdata"),t.xp6(3),t.Q6J("formHandler",V.formHandler),t.xp6(2),t.Q6J("hasFieldReadPermission","client")("hasFieldReadPermissionFormHandler",V.formHandler),t.xp6(),t.Q6J("hasFieldReadPermission","types")("hasFieldReadPermissionFormHandler",V.formHandler),t.xp6(4),t.Q6J("field",V.formHandler.formConfiguration.findFormFieldById("entityState"))("control",V.formHandler.formGroup.get("entityState"))("form",V.formHandler.formGroup)("formHandler",V.formHandler)("disableControl",t.lcZ(12,13,V.formHandler.isDeactivated()))("optionProvider",V.entityStateOptions),t.xp6(2),t.Q6J("ngIf",V.formHandler.formConfiguration.hasSomeField("attributes")&&t.lcZ(14,15,V.formHandler.hasReadPermission("attributes"))&&t.lcZ(15,17,V.attributesAvailable)))},dependencies:[e.O5,e.tP,Y.Pi,K.L,ye,ee.A,ve.H,Le.j,e.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-group.type[_ngcontent-%COMP%]{flex-basis:230px}.form__content-group[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]{margin-top:15px}"],changeDetection:0})}return A})();var sn=a(22819),bn=a(98840),vt=a(44069);function nn(A,Gt){if(1&A&&t._UZ(0,"imx-edit-social-media",7),2&A){const f=t.oxw();t.Q6J("formHandler",f.formHandler)("socialMediaDataSource",f.socialMediaDataSource)("socialMediaColumns",f.socialMediaColumns)}}let rn=(()=>{class A extends B.C{constructor(f,L,V,Xe,An,Qo){super(f,L),this.entitiesMgr=f,this.dialog=L,this.runtimeContext=V,this.collectionsService=Xe,this.platformDataAccessService=An,this.changeDetectorRef=Qo}ngOnInit(){super.ngOnInit(),this.socialMediaDataSource=this.prepareTable(this.formHandler.formGroup.get("socialMedia"),f=>this.socialMediaDataSource=f),this.socialMediaColumns=this.determineTableColumns("socialMedia")}handleContact1CitySelection(f){this.entitiesMgr.getEntityWithIdOfType("Location",f.entityId).subscribe(L=>{this.formHandler.handleCitySelection(L,"contact1.address.zipcode"),this.formHandler.resetGeoInfoData(L),this.changeDetectorRef.markForCheck()})}handleContact1ZipcodeSelection(f){this.entitiesMgr.getEntityWithIdOfType("Location",f.entityId).subscribe(L=>{this.formHandler.handleZipcodeSelection(L,f.inputString,"contact1.address.zipcode","contact1.address.city"),this.formHandler.resetGeoInfoData(L),this.changeDetectorRef.markForCheck()})}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(i.qB),t.Y36(ae.uw),t.Y36(i.Ze),t.Y36(b.f),t.Y36(sn.nq),t.Y36(t.sBO))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-address-poi-contact-data-form-panel"]],hostAttrs:[1,"imx-address-poi-contact-data-form-panel"],features:[t.qOj],decls:9,vars:7,consts:[[1,"form__content-panel","contactdata"],["id","contact",1,"anchor"],["translate",""],[1,"form__content-row"],[1,"form__content-group"],[3,"groupPrefix","header","formHandler","zipcodeSelection","citySelection"],[3,"formHandler","socialMediaDataSource","socialMediaColumns",4,"ngIf"],[3,"formHandler","socialMediaDataSource","socialMediaColumns"]],template:function(L,V){1&L&&(t.TgZ(0,"div",0),t._UZ(1,"div",1),t.TgZ(2,"h2",2),t._uU(3,"imxplatform.common-entity.edit.panels.contact-data.title"),t.qZA(),t.TgZ(4,"div",3)(5,"div",4)(6,"imx-edit-contact",5),t.NdJ("zipcodeSelection",function(An){return V.handleContact1ZipcodeSelection(An)})("citySelection",function(An){return V.handleContact1CitySelection(An)}),t.qZA()()(),t.YNc(7,nn,1,3,"imx-edit-social-media",6),t.ALo(8,"async"),t.qZA()),2&L&&(t.xp6(),t.uIk("data-scroll-id","contact"),t.xp6(5),t.Q6J("groupPrefix","contact1")("header","imxplatform.addresspoi.edit.panels.contact-data.contact1")("formHandler",V.formHandler),t.xp6(),t.Q6J("ngIf",t.lcZ(8,5,V.formHandler.hasReadPermission("socialMedia"))))},dependencies:[e.O5,Y.Pi,bn.t,vt.d,e.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}"],changeDetection:0})}return A})();var ii=a(75661),Oo=a(30968),no=a(41780),Li=a(24365);function ji(A,Gt){if(1&A&&(t.ynx(0),t._UZ(1,"imx-edit-geo-regions-advanced",6,10),t.BQk()),2&A){const f=t.oxw(2);t.xp6(),t.Q6J("formHandler",f.formHandler)("record",f.record)}}function Ii(A,Gt){if(1&A&&t._UZ(0,"imx-edit-geo-regions",11,10),2&A){const f=t.oxw(2);t.Q6J("formHandler",f.formHandler)}}function _i(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"div",1),t._UZ(1,"div",2),t.TgZ(2,"h2",3),t._uU(3,"imxplatform.common-entity.edit.panels.geo.title"),t.qZA(),t.TgZ(4,"imx-edit-geo-info",4),t.NdJ("locationSelection",function(V){t.CHM(f);const Xe=t.MAs(10),An=t.oxw();return Xe.overtakeLocation(V),An.editGeoRegionComponent.overtakeRegionsFromLocation(V),t.KtG(Xe.loadLocationsForZipcodeAndLocation())}),t.TgZ(5,"button",5),t.NdJ("click",function(){t.CHM(f);const V=t.oxw();return t.KtG(V.copyFromContact())}),t.ALo(6,"async"),t._uU(7),t.ALo(8,"translate"),t.qZA()(),t._UZ(9,"imx-edit-geo-location",6,7),t.YNc(11,ji,3,2,"ng-container",8)(12,Ii,2,1,"ng-template",null,9,t.W1O),t.qZA()}if(2&A){const f=t.MAs(13),L=t.oxw();t.xp6(),t.uIk("data-scroll-id","geo"),t.xp6(3),t.Q6J("formHandler",L.formHandler)("record",L.record),t.xp6(),t.Q6J("disabled",t.lcZ(6,9,L.overtakeFromContactDisabled$)),t.xp6(2),t.Oqu(t.lcZ(8,11,"imxplatform.addresspoi.edit.panels.geo.get-from-contact")),t.xp6(2),t.Q6J("formHandler",L.formHandler)("record",L.record),t.xp6(2),t.Q6J("ngIf",L.isAdvancedRegionManagement())("ngIfElse",f)}}let En=(()=>{class A extends B.C{constructor(f,L,V,Xe,An,Qo,Dr){super(f,L),this.entitiesMgr=f,this.dialog=L,this.runtimeContext=V,this.collectionsService=Xe,this.platformDataAccessService=An,this.configurationProvider=Qo,this.changeDetectorRef=Dr}ngOnInit(){super.ngOnInit(),this.overtakeFromContactDisabled$=(0,P.aj)([this.formHandler.hasEditPermission("geoInfo"),this.formHandler.hasSavePermission()]).pipe((0,m.U)(([f,L])=>!f||!L))}copyFromContact(){this.copyFormControlValue("contact1.address.street","geoInfo.street"),this.copyFormControlValue("contact1.address.streetNo","geoInfo.streetNo"),this.copyFormControlValue("contact1.address.zipcode","geoInfo.zipcode"),this.copyFormControlValue("contact1.address.city","geoInfo.city"),this.copyFormControlValue("contact1.address.country","geoInfo.country")}isAdvancedRegionManagement(){return"true"==this.configurationProvider.getStringFromSnapshot(i.x3.PLATFORM_ADVANCED_REGION_MANAGEMENT_ENABLED,"false")}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(i.qB),t.Y36(ae.uw),t.Y36(i.Ze),t.Y36(b.f),t.Y36(sn.nq),t.Y36(i.Pc),t.Y36(t.sBO))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-address-poi-geo-form-panel"]],hostAttrs:[1,"imx-address-poi-geo-form-panel"],features:[t.qOj],decls:1,vars:1,consts:[["class","form__content-panel geo",4,"ngIf"],[1,"form__content-panel","geo"],["id","geo",1,"anchor"],["translate",""],[3,"formHandler","record","locationSelection"],[1,"imx-button","prio2","bottom",3,"disabled","click"],[3,"formHandler","record"],["editGeoLocationComponent",""],[4,"ngIf","ngIfElse"],["defaultRegionComponent",""],["editGeoRegionComponent",""],[3,"formHandler"]],template:function(L,V){1&L&&t.YNc(0,_i,14,13,"div",0),2&L&&t.Q6J("ngIf",V.formHandler.hasReadPermission("geoInfo"))},dependencies:[e.O5,Y.Pi,ii.S,Oo.c,no.e,Li.L,e.Ov,Y.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}"],changeDetection:0})}return A})();var co=a(73623);let yn=(()=>{class A extends B.C{static#e=this.\u0275fac=(()=>{let f;return function(V){return(f||(f=t.n5z(A)))(V||A)}})();static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-references-form-panel"]],features:[t.qOj],decls:5,vars:2,consts:[[1,"form__content-panel"],["id","references",1,"anchor"],["translate",""],[3,"formHandler"]],template:function(L,V){1&L&&(t.TgZ(0,"div",0),t._UZ(1,"div",1),t.TgZ(2,"h2",2),t._uU(3,"imxplatform.common-entity.edit.panels.reference.title"),t.qZA(),t._UZ(4,"imx-edit-contact-lists",3),t.qZA()),2&L&&(t.xp6(),t.uIk("data-scroll-id","references"),t.xp6(3),t.Q6J("formHandler",V.formHandler))},dependencies:[Y.Pi,co.s],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return A})();function ln(A,Gt){if(1&A&&t._UZ(0,"imx-references-form-panel",1),2&A){const f=t.oxw();t.Q6J("formHandler",f.formHandler)("record",f.record)}}let He=(()=>{class A extends o.U{constructor(f){super(f),this.userMessageService=f}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(c.Y))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-address-poi-edit-form"]],inputs:{contactListsEnabled:"contactListsEnabled"},features:[t.qOj],decls:6,vars:8,consts:[["id","address-poi-edit",3,"formGroup","keydown.enter"],[3,"formHandler","record"],[3,"formHandler","record",4,"ngIf"]],template:function(L,V){1&L&&(t.TgZ(0,"div")(1,"form",0),t.NdJ("keydown.enter",function(An){return An.preventDefault()}),t._UZ(2,"imx-address-poi-base-data-form-panel",1)(3,"imx-address-poi-contact-data-form-panel",1)(4,"imx-address-poi-geo-form-panel",1),t.YNc(5,ln,1,2,"imx-references-form-panel",2),t.qZA()()),2&L&&(t.xp6(),t.Q6J("formGroup",V.formHandler.formGroup),t.xp6(),t.Q6J("formHandler",V.formHandler)("record",V.record),t.xp6(),t.Q6J("formHandler",V.formHandler)("record",V.record),t.xp6(),t.Q6J("formHandler",V.formHandler)("record",V.record),t.xp6(),t.Q6J("ngIf",V.contactListsEnabled))},dependencies:[e.O5,x._Y,x.JL,x.sg,ni,rn,En,yn],encapsulation:2})}return A})();var rt=a(6593),$e=a(72079),Ve=a(49016),Ce=a(91226),tt=a(19352),ht=a(11541),Qt=a(33946);const Un=(A,Gt)=>({title:A,id:Gt});let Yt=(()=>{class A{constructor(f){this.dialogData=f}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(ae.WI))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],decls:7,vars:12,consts:[["heading","imxplatform.dialog.close-edit-entity-header","icon","icon-exit","submitButtonLabel","imxplatform.dialog.close-edit-entity-button"],[1,"dialog-txt-md",3,"innerHTML"],[1,"dialog-txt-md"]],template:function(L,V){1&L&&(t.TgZ(0,"imx-dialog",0),t._UZ(1,"p",1),t.ALo(2,"translate"),t.ALo(3,"readI18n"),t.TgZ(4,"p",2),t._uU(5),t.ALo(6,"translate"),t.qZA()()),2&L&&(t.xp6(),t.Q6J("innerHTML",t.xi3(2,2,V.dialogData.text,t.WLB(9,Un,t.lcZ(3,5,V.dialogData.title),V.dialogData.objectId)),t.oJD),t.xp6(4),t.Oqu(t.lcZ(6,7,"imxplatform.dialog.discard-warning")))},dependencies:[Qt.a,Y.X$,ue.j],encapsulation:2})}return A})();var Fn=a(61598),yt=a(91630),Bt=a(83010),li=a(20883),si=a(4116),oo=a(88792),_o=a(30258),Hn=a(67995),mo=a(55063);const vn=["formNavigation"],Ji=["scrollBar"],wn=[0,163];let po=(()=>{class A{constructor(f,L,V,Xe,An,Qo,Dr,es,Al,Rl,$l){this.formHandler=f,this.platformDataAccessService=L,this.routingStateService=V,this.route=Xe,this.userMessageService=An,this.entitiesMgrService=Qo,this.entityBrowseHistoryStorageService=Dr,this.scroller=es,this.objectListCreationService=Al,this.dialog=Rl,this.editVoter=$l,this.imxPlatformSlots=Hn.PT,this.showError=!1,this.isSubmitting=!1,this.additionalRequiredProps=[],this.destroy$=new $e.xQ,this.titleService=(0,t.f3M)(rt.Dx),this.readI18nPipe=(0,t.f3M)(ue.j),this.translationService=(0,t.f3M)(Y.sK),this.isSaveAndClose=!1,this.isCreateMode=!1,this.currentActivePanel="",this.imxRouter=(0,t.f3M)(l.F0),this.contextNavigationService=(0,t.f3M)(si.E),this.navigationEnd$=new $e.xQ,this.ownContextNavigationUrl=null,this.scroller.setOffset(wn),this.imxRouter.events.pipe((0,tt.R)(this.navigationEnd$)).subscribe(kl=>{if(kl instanceof l.m2){this.navigationEnd$.next();const Jl=this.contextNavigationService.getLastSuccessfulNavigation();Jl&&Jl.length>0?"back"===Jl?this.ownContextNavigationUrl=kl.url:(this.ownContextNavigationUrl=kl.url,this.contextNavigationService.addContextNavigation({url:kl.url,cameFromUrl:Jl})):this.contextNavigationService.clearContextNavs()}}),(0,Ve.R)(window,"popstate").pipe((0,tt.R)(this.destroy$)).subscribe(kl=>{this.ownContextNavigationUrl&&this.ownContextNavigationUrl.length>0&&this.contextNavigationService.rememberNavigateBack()})}handleCloseAction(f,L){this.formHandler.formGroup.dirty?this.openCloseDialog(this.entityId?f:L).subscribe(V=>{V&&(this.formHandler.formGroup.markAsPristine(),this.clearCurrentStateInStorage(),this.navigateAfterClose())}):this.navigateAfterClose()}navigateAfterClose(){let f=!1;if(this.ownContextNavigationUrl&&this.ownContextNavigationUrl.length>0){const L=this.contextNavigationService.getContextNavigationForRoute(this.ownContextNavigationUrl);L&&(f=!0,this.contextNavigationService.navigateBackToUrl(L.cameFromUrl))}f||this.navigateToList()}ngOnInit(){this.formHandler.formGroup.markAsPristine(),this.route.data.pipe((0,tt.R)(this.destroy$)).subscribe(f=>{f.record&&Object.keys(f.record).indexOf("_dirty")>=0&&this.formHandler.formGroup.markAsDirty({onlySelf:!0}),this.record=f.record,void 0!==f.mode&&(this.isCreateMode="CREATE"===f.mode);const{id:L}=this.record;!this.isCreateMode&&L&&this.platformDataAccessService.addObjectToObjectHistory(this.getEntityTypeForHistory(),L).pipe((0,tt.R)(this.destroy$)).subscribe(),this.genericSlideInPage&&this.genericSlideInPage.isSlideInOpen()&&this.genericSlideInPage.close(),this.updateTabTitle()}),this.updateCurrentViewedPanel(),this.updateButtonBarPosition(),this.loadRequiredProperties()}ngAfterViewInit(){window.setTimeout(()=>this.scrollToAnchor(),1e3)}updateTabTitle(){const f=this.entityTitle;if(f){const L=this.readI18nPipe.transform(f),Xe="imx - "+this.translationService.instant("entity."+this.entityType+".entityName")+": "+L;this.titleService.setTitle(Xe)}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}get entityType(){return this.record._entityType}get entityId(){return this.record.id}get entityTitle(){const f=this.record;return void 0!==f.title?f.title:void 0}get importInfos(){const f=this.record;return void 0!==f.importInfos?f.importInfos:void 0}submit(f){if(f){this.showError=!1,this.isSubmitting=!0;const L=-1===f.id||null==f.id;(this.editVoter?this.editVoter.beforeSave(f):(0,u.of)(!0)).pipe((0,O.w)(Xe=>Xe?-1===f.id||null==f.id?this.addRecord(f).pipe((0,ht.x)(()=>this.isSubmitting=!1)):this.updateRecord(f).pipe((0,ht.x)(()=>this.isSubmitting=!1)):Ce.E)).subscribe(Xe=>{Xe&&(L&&this.platformDataAccessService.addObjectToObjectHistory(this.getEntityTypeForHistory(),Xe.id).pipe((0,tt.R)(this.destroy$)).subscribe(),this.recordSaved(Xe))},Xe=>{this.showError=!0,this.userMessageService.showError(Xe||"imxplatform.common-entity.edit.save-error")},()=>this.isSubmitting=!1)}else console.error("submit cannot be fulfilled, no record passed")}reload(){this.formHandler.formGroup.dirty?this.handleReloadAction(this.getReloadDialogMsg()).subscribe(f=>{f&&(this.clearCurrentStateInStorage(),this.reloadPage())}):(this.clearCurrentStateInStorage(),this.reloadPage())}reloadPage(){this.formHandler.formGroup.markAsPristine(),this.entitiesMgrService.refreshEntitiesOfType("Client"),this.routingStateService.writeScrollAnchor(),this.ownContextNavigationUrl&&this.ownContextNavigationUrl.length>0&&this.contextNavigationService.skipLastContextNavigation(),this.routingStateService.reload()}scrollToAnchor(){const f=this.routingStateService.readScrollAnchor();if(null!==f){const L=document.querySelector("[data-scroll-id="+f+"]");window.scrollTo({top:L.getBoundingClientRect().top+window.pageYOffset-163,behavior:"instant"}),this.routingStateService.setScrollAnchor(null)}}get _historyEntityType(){return oo.P[this.entityType.toUpperCase()]}get _entityListUrlContext(){return`${this.entityType.toLowerCase()}s`}addToObjectList(){this.dialog.open(yt.R,{maxWidth:650,data:{formHandler:this.formHandler,entityType:this.entityType}}).afterClosed().subscribe(f=>{this.objectListCreationService&&this.objectListCreationService.createOrUpdateObjectList(f,this.entityType,this._entityListUrlContext,this._historyEntityType,[this.record.id])})}dispatchSlideEvent(f){this.genericSlideInPage&&(this.genericSlideInPage.isSlideInOpen()&&this._activeSlideInType===f?(this.genericSlideInPage.close(),this._activeSlideInType=void 0):(this._activeSlideInType=f,this.openSlideInComponent(f)?this.openSlideInComponent(f).afterClosed().subscribe(V=>{this._activeSlideInType=void 0}):console.warn("no sidebarRef returned for for event",f)))}openSlideInComponent(f){if(f===Bt.CU.MEMO)return this.genericSlideInPage.open(li.u,{data:{entityId:this.entityId,memosEntityTitle:this.entityTitle,memosEntityType:this.entityType}})}get activeSlideInType(){if(this.genericSlideInPage&&this.genericSlideInPage.isSlideInOpen())return this._activeSlideInType}onBeforeUnload(f){this.formHandler.formGroup.dirty&&(f.returnValue=!0)}isPanelActive(f){return f===this.currentActivePanel}updateButtonBarPosition(){this.buttonBarTimeout&&(window.clearTimeout(this.buttonBarTimeout),this.buttonBarTimeout=null),this.buttonBarTimeout=window.setTimeout(()=>{const f=this.scrollBar.nativeElement.querySelector(".edit__navigation-sticky-wrapper .p-scrollpanel");f&&(f.style.maxHeight=this.formNavigation.nativeElement.getBoundingClientRect().height+"px")},300)}storeCurrentStateInStorage(){if(!this.isCreateMode&&this.formHandler.formGroup.dirty){const f=this.formHandler.getBaseObjectCopyWithCurrentFormValues();this.entityBrowseHistoryStorageService.set(this.getEntityTypeForHistory().entityType,f)}}handleReloadAction(f){return this.dialog.open(Fn.t,{maxWidth:470,data:{text:f,title:this.record.title,objectId:this.record.id}}).afterClosed()}openCloseDialog(f){return this.dialog.open(Yt,{maxWidth:470,data:{text:f,title:this.record.title,objectId:this.record.id}}).afterClosed()}clearCurrentStateInStorage(){!this.isCreateMode&&this.formHandler.baseObject&&this.entityBrowseHistoryStorageService.clear(this.getEntityTypeForHistory().entityType,this.formHandler.baseObject.id)}loadRequiredProperties(){this.platformDataAccessService.getRequiredPropertiesForCoreEntity(this.entityType).subscribe(f=>{this.additionalRequiredProps=f,this.transformRequiredPropertyDef(f).forEach(L=>{this.formHandler.applyRequiredPropertyDefinitionToField(L)})})}onScrollEvent(){this.scrollTimeout&&(window.clearTimeout(this.scrollTimeout),this.scrollTimeout=null),this.scrollTimeout=window.setTimeout(()=>this.updateCurrentViewedPanel(),50)}transformRequiredPropertyDef(f){return f}updateCurrentViewedPanel(){const f=this.getAvailablePanels().filter(L=>{const V=document.getElementById(L);if(V){const Xe=V.getBoundingClientRect().top;return void 0!==Xe&&Xe<window.innerHeight&&Xe>=0}return!1});f[0]&&(this.currentActivePanel=f[0])}static#e=this.\u0275fac=function(L){t.$Z()};static#t=this.\u0275dir=t.lG2({type:A,viewQuery:function(L,V){if(1&L&&(t.Gf(vn,7,t.SBq),t.Gf(Ji,7,t.SBq),t.Gf(Bt.Ee,5)),2&L){let Xe;t.iGM(Xe=t.CRH())&&(V.formNavigation=Xe.first),t.iGM(Xe=t.CRH())&&(V.scrollBar=Xe.first),t.iGM(Xe=t.CRH())&&(V.genericSlideInPage=Xe.first)}},hostBindings:function(L,V){1&L&&t.NdJ("beforeunload",function(An){return V.onBeforeUnload(An)},!1,t.Jf7)("scroll",function(){return V.onScrollEvent()},!1,t.Jf7)}})}return A})();var Kn=a(27556),Vn=a(67947),Wi=a(15767),Ft=a(16007),Oi=a(67338),On=a(37012),_n=a(12),st=a(66253),Dn=a(18476),Wt=a(30728),kn=a(22194);function Fi(A,Gt){1&A&&(t.TgZ(0,"div",22),t._UZ(1,"mat-progress-bar",23),t.qZA())}const ui=A=>({active:A}),Fo=()=>[];function At(A,Gt){if(1&A&&(t.TgZ(0,"a",24)(1,"div",11),t._UZ(2,"span",25),t.TgZ(3,"span",13),t._uU(4),t.ALo(5,"translate"),t.qZA()()()),2&A){const f=t.oxw();t.Q6J("ngClass",t.VKq(5,ui,f.isPanelActive("geo")))("routerLink",t.DdM(7,Fo)),t.xp6(4),t.Oqu(t.lcZ(5,3,"imxplatform.common-entity.edit.navigation.geoinformation"))}}function Jn(A,Gt){if(1&A&&(t.TgZ(0,"a",26)(1,"div",11),t._UZ(2,"span",27),t.TgZ(3,"span",13),t._uU(4),t.ALo(5,"translate"),t.qZA()()()),2&A){const f=t.oxw();t.Q6J("ngClass",t.VKq(5,ui,f.isPanelActive("references")))("routerLink",t.DdM(7,Fo)),t.xp6(4),t.Oqu(t.lcZ(5,3,"imxplatform.common-entity.edit.navigation.references"))}}const Bn=()=>({width:"100%",height:"100%"}),Bi=["basicdata","contact","geo","references"];let $n=(()=>{class A extends po{constructor(f,L,V,Xe,An,Qo,Dr,es,Al,Rl,$l,kl,Jl){super(f,L,Xe,V,An,Qo,Dr,es,Al,Rl),this.translateService=$l,this.listHistoryService=kl,this.router=Jl,this.logger=(0,i.jl)("AddressPoiEditPage",Kn.H.name)}ngOnInit(){super.ngOnInit(),this.isDeactivated$=this.formHandler.isDeactivated(),this.logger.debug("Open AddressPoi edit page. Is in creation mode: "+this.isCreateMode)}addRecord(f){return this.platformDataAccessService.createAddressPoi(f)}recordSaved(f){this.isSaveAndClose?this.close():this.isCreateMode?this.router.navigate(["addresspois","edit",f.id]):this.reload(),this.userMessageService.showInfo("imxplatform.addresspoi.edit.saved-successfull-msg")}updateRecord(f){return this.platformDataAccessService.updateAddressPoi(f)}getAvailablePanels(){return[...Bi]}getEntityTypeForHistory(){return oo.P.ADDRESSPOI}save(f){this.isSaveAndClose=f||!1,this.formComponent&&this.formComponent.submit(),this.clearCurrentStateInStorage()}getReloadDialogMsg(){return"imxplatform.addresspoi.edit.dialog-on-reload"}close(){super.handleCloseAction("imxplatform.addresspoi.edit.dialog-on-close","imxplatform.article.edit.dialog-on-close-new")}navigateToList(){this.listHistoryService.navigateToLastListState(this.getEntityTypeForHistory().entityType)||this.router.navigate(["/addresspois"])}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(Vn.qx),t.Y36(sn.nq),t.Y36(l.gz),t.Y36(i.Yz),t.Y36(c.Y),t.Y36(i.qB),t.Y36(_o.I),t.Y36(e.EM),t.Y36(mo.h),t.Y36(ae.uw),t.Y36(Y.sK),t.Y36(Wi.G),t.Y36(l.F0))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],viewQuery:function(L,V){if(1&L&&t.Gf(He,7),2&L){let Xe;t.iGM(Xe=t.CRH())&&(V.formComponent=Xe.first)}},features:[t.qOj],decls:30,vars:34,consts:[[1,"edit"],[3,"formHandler","record","entityType","resourceKeyPrefix","activeSlideInType","showImportInfoButton","reloadClicked","slideInEvent","addToObjectListClicked"],["class","page-loading-wrapper","progress-bar","",4,"ngIf"],["lg_w","12","lg_o","0"],[1,"edit__wrapper"],[1,"edit__navigation-sticky-wrapper"],[1,"edit__navigation-sticky-content"],["scrollBar",""],[1,"edit__navigation-items"],["formNavigation",""],["fragment","basicdata",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"edit__navigation-item-content"],[1,"icon","icon-pencil","imx-icon-middle"],[1,"item-label"],["fragment","contact",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-phone","imx-icon-middle"],["class","edit__navigation-item","fragment","geo",3,"ngClass","routerLink",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],["class","edit__navigation-item","fragment","references",3,"ngClass","routerLink",4,"ngIf"],[3,"formHandler","isSubmitting","save","saveAndClose","close"],[1,"edit__content"],["alwaysFixed","true"],["scrollToInvalidField","",3,"formHandler","record","contactListsEnabled","save"],["progress-bar","",1,"page-loading-wrapper"],["mode","indeterminate"],["fragment","geo",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-map-marker","imx-icon-middle"],["fragment","references",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-reference-list","imx-icon-middle"]],template:function(L,V){1&L&&(t.TgZ(0,"div",0)(1,"imx-edit-header",1),t.NdJ("reloadClicked",function(){return V.reload()})("slideInEvent",function(An){return V.dispatchSlideEvent(An)})("addToObjectListClicked",function(){return V.addToObjectList()}),t.YNc(2,Fi,2,0,"div",2),t.qZA(),t.TgZ(3,"imx-grid")(4,"imx-grid-element",3)(5,"div",4)(6,"div",5)(7,"div",6)(8,"p-scrollPanel",null,7)(10,"div",8,9)(12,"a",10)(13,"div",11),t._UZ(14,"span",12),t.TgZ(15,"span",13),t._uU(16),t.ALo(17,"translate"),t.qZA()()(),t.TgZ(18,"a",14)(19,"div",11),t._UZ(20,"span",15),t.TgZ(21,"span",13),t._uU(22),t.ALo(23,"translate"),t.qZA()()(),t.YNc(24,At,6,8,"a",16)(25,Jn,6,8,"a",17),t.qZA()(),t.TgZ(26,"imx-edit-page-button-bar",18),t.NdJ("save",function(){return V.save()})("saveAndClose",function(){return V.save(!0)})("close",function(){return V.close()}),t.qZA()()(),t.TgZ(27,"div",19)(28,"imx-generic-slide-in-page",20)(29,"imx-address-poi-edit-form",21),t.NdJ("save",function(An){return V.submit(An)}),t.qZA()()()()()()()),2&L&&(t.xp6(),t.Q6J("formHandler",V.formHandler)("record",V.record)("entityType","AddressPoi")("resourceKeyPrefix","imxplatform.addresspoi.")("activeSlideInType",V.activeSlideInType)("showImportInfoButton",V.record.importInfos&&V.record.importInfos.length>0),t.xp6(),t.Q6J("ngIf",V.isSubmitting),t.xp6(6),t.Akn(t.DdM(27,Bn)),t.xp6(4),t.Q6J("ngClass",t.VKq(28,ui,V.isPanelActive("basicdata")))("routerLink",t.DdM(30,Fo)),t.xp6(4),t.Oqu(t.lcZ(17,23,"imxplatform.common-entity.edit.navigation.basedata")),t.xp6(2),t.Q6J("ngClass",t.VKq(31,ui,V.isPanelActive("contact")))("routerLink",t.DdM(33,Fo)),t.xp6(4),t.Oqu(t.lcZ(23,25,"imxplatform.common-entity.edit.navigation.contact")),t.xp6(2),t.Q6J("hasFieldReadPermission","geoInfo.master")("hasFieldReadPermissionFormHandler",V.formHandler),t.xp6(),t.Q6J("ngIf",V.formHandler.isContactListsEnabled()),t.xp6(),t.Q6J("formHandler",V.formHandler)("isSubmitting",V.isSubmitting),t.xp6(3),t.Q6J("formHandler",V.formHandler)("record",V.record)("contactListsEnabled",V.formHandler.isContactListsEnabled()))},dependencies:[e.mk,e.O5,Ft.pW,l.rH,Oi.P,On.M,_n.V,He,st.n,Dn.r,Bt.Ee,Le.j,Wt.a,kn.F,Y.X$],styles:[".edit[_ngcontent-%COMP%]{padding-top:113px}.edit__wrapper[_ngcontent-%COMP%]{display:flex}.edit__wrapper[_ngcontent-%COMP%]   .edit__content[_ngcontent-%COMP%]{flex:1}.edit__navigation-items[_ngcontent-%COMP%]{display:flex;flex-direction:column}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]{font-size:14px;cursor:pointer;text-decoration:none;display:inline-block;transition:background-color .75s ease}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]{padding:8px;margin:5px 0;display:flex;flex-direction:row;align-items:center}@media (max-width: 900px){.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]{justify-content:center}}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content.sub[_ngcontent-%COMP%]{margin:2px 0}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .item-label[_ngcontent-%COMP%]{margin-left:15px;text-overflow:ellipsis;overflow:hidden}@media (max-width: 900px){.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .item-label[_ngcontent-%COMP%]{display:none}}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .item-label.sub[_ngcontent-%COMP%]{margin-left:10px}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .sub-item-icon[_ngcontent-%COMP%]{display:none}@media (max-width: 900px){.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .sub-item-icon[_ngcontent-%COMP%]{display:block}}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-sub-items[_ngcontent-%COMP%]{display:flex;flex-direction:column}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-sub-items[_ngcontent-%COMP%]   .icon-subNavigation[_ngcontent-%COMP%]{font-size:10px;margin-right:10px}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-sub-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]{padding-left:10px}.edit__navigation-sticky-wrapper[_ngcontent-%COMP%]{min-width:250px}@media (max-width: 900px){.edit__navigation-sticky-wrapper[_ngcontent-%COMP%]{min-width:100px}}.edit__navigation-sticky-content[_ngcontent-%COMP%]{padding-bottom:15px;padding-right:15px;max-width:250px;position:fixed;top:163px}.edit__navigation-sticky-content[_ngcontent-%COMP%]     .p-scrollpanel{transition:max-height .6s ease-in-out}@media (min-width: 901px){.edit__navigation-sticky-content[_ngcontent-%COMP%]{height:calc(100vh - 200px)}}@media (max-width: 900px){.edit__navigation-sticky-content[_ngcontent-%COMP%]{height:calc(100vh - 240px);min-width:100px}}"]})}return A})();var Ui=a(15033),Xo=a(67427),bt=a(48689),an=a(73209),Wn=a(88419),eo=a(83416),_r=a(45315),hr=a(96863);let In=(()=>{class A extends hr.uY{constructor(f,L,V,Xe,An,Qo,Dr,es,Al,Rl,$l,kl,Jl){super(f,L,V,Xe,An,Qo,Dr,es,void 0,Al,void 0,Rl,Jl,!0),this.runtimeContext=$l,this.configurationProvider=kl,this.logger=(0,i.jl)("AbstractInboxPage",Kn.H.name),this.cloneIdsMap=new Map,this.contextNavigationService=(0,t.f3M)(si.E)}ngOnInit(){this.runtimeContext.getCurrentAndSubClients().pipe((0,m.U)(f=>Array.from(f))).subscribe(f=>{this.currentAndSubClients=f}),this.configurationProvider.getString(i.x3.PLATFORM_WORKFLOW_DATAMANAGER_USER_ID,"").pipe((0,Wn.P)()).subscribe(f=>{this.imxDatamanagerUserId=f,super.ngOnInit()},f=>{console.error('Error loading userId for "imx.datamanager" in inbox!',f)})}getOriginalId(f){return this.cloneIdsMap.get(f.toString())}isClone(f){let L=!1;return this.cloneIdsMap.forEach((V,Xe)=>{Xe===f.toString()&&(L=!0)}),L}loadRecords(f,L,V,Xe,An){f.context=this.getInboxContext(),f.id&&this.platformDataAccessService.getDatamanagerCloneIds({ids:f.id},this.getEntityName()).pipe((0,Wn.P)()).subscribe(Qo=>{Qo&&Qo.length>0&&(f.id+=","+Qo),super.loadRecords(f,L,V,Xe,An)}),super.loadRecords(f,L,V,Xe,An)}onLoadRecords(f,L,V){super.onLoadRecords(f,L,V);const Xe=f.items.map(An=>An.id.toString());Xe&&Xe.length>0&&this.platformDataAccessService.getDatamanagerClonesForIds({ids:Xe.join(",")},this.getEntityName()).pipe((0,Wn.P)()).subscribe(An=>{Object.keys(An).forEach(Qo=>{this.cloneIdsMap.set(Qo,An[Qo])})})}executeRowAction(f,L){this.getEditActionKey()===f.getActionKey()&&20===L.entityState.key?this.router.navigate([this.getEditRoute(),"edit",L.id]):(this.getCloneActionKey()===f.getActionKey()&&(this.recordsOnceLoaded=!1),super.executeRowAction(f,L))}getTrackingCategory(){return this.getInboxContext()+" "+this.getEntityName()}getActionContext(){return this.getInboxContext()}beforeLoadRecords(f){this.adjustFilter(f)}useInboxDataSource(f){}retrieveIds(f){return f?f.split(",").map(L=>L.trim()):null}static#e=this.\u0275fac=function(L){t.$Z()};static#t=this.\u0275dir=t.lG2({type:A,features:[t.qOj]})}return A})();var Wr=a(17591),qi=a(92596),wi=a(1431),zo=a(85219),xi=a(74961),ki=a(6128),wo=a(36681),Ei=a(53807),ho=a(35475),Cr=a(16083);let vr=(()=>{class A extends Cr.F{constructor(f){super(),this.configurationProvider=f,this.hasAdminPermssionStr=i.uo.F_SYSTEM_MAINTENANCE_EXEC.name}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(i.Pc))};static#t=this.\u0275dir=t.lG2({type:A,features:[t.qOj]})}return A})();var qr=a(15198),Ra=a(87466);function ss(A,Gt){1&A&&t.GkF(0)}function Hs(A,Gt){1&A&&t.GkF(0)}function Cs(A,Gt){1&A&&t.GkF(0)}function ms(A,Gt){1&A&&t.GkF(0)}function ja(A,Gt){1&A&&t.GkF(0)}function el(A,Gt){1&A&&t.GkF(0)}function Vs(A,Gt){1&A&&t.GkF(0)}const ls=()=>({$implicit:"id"}),Fa=()=>({$implicit:"importId"}),Ds=()=>({$implicit:"language"}),dl=()=>({$implicit:"creationUser"}),ka=()=>({$implicit:"lastChangeUser"}),hs=()=>({$implicit:"creationRole"}),Ua=()=>({$implicit:"lastChangeRole"});function Tn(A,Gt){if(1&A&&(t.TgZ(0,"form",2)(1,"div",3)(2,"imx-grid")(3,"imx-grid-element",4)(4,"div"),t.YNc(5,ss,1,0,"ng-container",5),t.qZA()(),t.TgZ(6,"imx-grid-element",4)(7,"div"),t.YNc(8,Hs,1,0,"ng-container",5),t.qZA()(),t.TgZ(9,"imx-grid-element",4)(10,"div"),t.YNc(11,Cs,1,0,"ng-container",5),t.qZA()(),t._UZ(12,"imx-grid-element",4),t.TgZ(13,"imx-grid-element",4),t.YNc(14,ms,1,0,"ng-container",5),t.qZA(),t.TgZ(15,"imx-grid-element",4),t.YNc(16,ja,1,0,"ng-container",5),t.qZA(),t.TgZ(17,"imx-grid-element",4),t.YNc(18,el,1,0,"ng-container",5),t.qZA(),t.TgZ(19,"imx-grid-element",4),t.YNc(20,Vs,1,0,"ng-container",5),t.qZA(),t.TgZ(21,"imx-grid-element",4)(22,"div",6),t._UZ(23,"imx-form-control",7),t.qZA()(),t.TgZ(24,"imx-grid-element",4)(25,"div",6),t._UZ(26,"imx-form-control",7),t.qZA(),t.TgZ(27,"div",6)(28,"mat-radio-group",8)(29,"mat-radio-button",9),t._uU(30),t.ALo(31,"translate"),t.qZA(),t._UZ(32,"br"),t.TgZ(33,"mat-radio-button",10),t._uU(34),t.ALo(35,"translate"),t.qZA()()()()()()()),2&A){const f=t.oxw(),L=t.MAs(2);t.Q6J("formGroup",f.parentForm),t.xp6(3),t.Q6J("lg_w",6)("sm_w",12),t.xp6(2),t.Q6J("ngTemplateOutlet",L)("ngTemplateOutletContext",t.DdM(53,ls)),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(2),t.Q6J("ngTemplateOutlet",L)("ngTemplateOutletContext",t.DdM(54,Fa)),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(2),t.Q6J("ngTemplateOutlet",L)("ngTemplateOutletContext",t.DdM(55,Ds)),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("ngTemplateOutlet",L)("ngTemplateOutletContext",t.DdM(56,dl)),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("ngTemplateOutlet",L)("ngTemplateOutletContext",t.DdM(57,ka)),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("ngTemplateOutlet",L)("ngTemplateOutletContext",t.DdM(58,hs)),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("ngTemplateOutlet",L)("ngTemplateOutletContext",t.DdM(59,Ua)),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(2),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("entityState"))("control",f.formHandler.formGroup.get("entityState"))("form",f.formHandler.formGroup.get("entityState"))("formHandler",f.formHandler)("config",f.formHandler.formConfiguration),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(2),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("addressPoiTypes"))("control",f.formHandler.formGroup.get("addressPoiTypes"))("form",f.formHandler.formGroup.get("addressPoiTypes"))("formHandler",f.formHandler)("config",f.formHandler.formConfiguration),t.xp6(3),t.Q6J("value",f.addressPoiDataTypeSearchOption.WITHSUBCLASSES),t.xp6(),t.hij(" ",t.lcZ(31,49,"filter.AddressPoi.withSubClasses")," "),t.xp6(3),t.Q6J("value",f.addressPoiDataTypeSearchOption.WITHOUTSUBCLASSES),t.xp6(),t.hij(" ",t.lcZ(35,51,"filter.AddressPoi.withOutSubClasses")," ")}}function Qi(A,Gt){if(1&A&&t._UZ(0,"imx-form-control",11),2&A){const f=Gt.$implicit,L=t.oxw();t.Q6J("field",L.formHandler.formConfiguration.findFormFieldById(f))("control",L.formHandler.formGroup.get(f))("form",L.formHandler.formGroup.get(f))("formHandler",L.formHandler)("config",L.formHandler.formConfiguration)}}let To=(()=>{class A extends qr.O{constructor(){super(),this.id="MAIN_FILTER",this.titleKey="imxplatform.common-entity.filter.mainFilter.name",this.icon="icon-cube",this.addressPoiDataTypeSearchOption=sn.t0,this.filterFields=["id","importId","language","entityState","creationUser","lastChangeUser","creationRole","lastChangeRole","addressPoiTypes","includeSubClasses"]}static#e=this.\u0275fac=function(L){return new(L||A)};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-address-poi-main-filter-panel"]],hostAttrs:[1,"imx-address-poi-main-filter-panel"],features:[t._Bn([(0,qr.T)(A)]),t.qOj],decls:3,vars:1,consts:[[3,"formGroup",4,"ngIf"],["imxControl",""],[3,"formGroup"],[1,"filter__card"],[3,"lg_w","sm_w"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"single-selection"],[1,"checkbox-filter",3,"field","control","form","formHandler","config"],["formControlName","includeSubClasses",1,"small"],["id","withSubclasses","name","withSubclasses",3,"value"],["id","withOutSubclasses","name","withOutSubclasses",3,"value"],[3,"field","control","form","formHandler","config"]],template:function(L,V){1&L&&t.YNc(0,Tn,36,60,"form",0)(1,Qi,1,5,"ng-template",null,1,t.W1O),2&L&&t.Q6J("ngIf",V.panelShown)},dependencies:[e.O5,e.tP,x._Y,x.JJ,x.JL,Ra.VQ,Ra.U0,x.sg,x.u,On.M,_n.V,ee.A,Y.X$],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}.single-selection[_ngcontent-%COMP%]{margin-top:15px}"]})}return A})();var sr=a(86041),oi=a(35342),Vi=a(89642),Ti=a(77218),Hi=a(27416),Do=a(78274),$o=a(65716),yr=a(59626);function Vr(A,Gt){if(1&A&&(t.ynx(0),t._UZ(1,"imx-duplicates-filter-panel",2,11),t.BQk()),2&A){const f=t.oxw(2);t.xp6(),t.Q6J("parentForm",f.formHandler.formGroup)("record",f.record)("formHandler",f.formHandler)}}function da(A,Gt){if(1&A&&t._UZ(0,"imx-admin-filter-panel",2,12),2&A){const f=t.oxw(2);t.Q6J("parentForm",f.formHandler.formGroup)("record",f.record)("formHandler",f.formHandler)}}function Za(A,Gt){if(1&A&&(t._UZ(0,"imx-address-poi-main-filter-panel",2,3)(2,"imx-fulltext-filter-panel",2,4)(4,"imx-client-filter-panel",5,6)(6,"imx-geo-filter-panel",2,7)(8,"imx-memo-filter-panel",2,8),t.YNc(10,Vr,3,3,"ng-container",9)(11,da,2,3,"imx-admin-filter-panel",10)),2&A){const f=t.oxw();t.Q6J("parentForm",f.formHandler.formGroup)("record",f.record)("formHandler",f.formHandler),t.xp6(2),t.Q6J("parentForm",f.formHandler.formGroup)("record",f.record)("formHandler",f.formHandler),t.xp6(2),t.Q6J("parentForm",f.formHandler.formGroup)("record",f.record)("formHandler",f.formHandler)("availableClients",f.availableClients),t.xp6(2),t.Q6J("parentForm",f.formHandler.formGroup)("record",f.record)("formHandler",f.formHandler),t.xp6(2),t.Q6J("parentForm",f.formHandler.formGroup)("record",f.record)("formHandler",f.formHandler),t.xp6(2),t.Q6J("ngIf",f.formHandler.formGroup.get("certaintyFrom")),t.xp6(),t.Q6J("hasAnyPermission",f.hasAdminPermssionStr)}}let ma=(()=>{class A extends vr{constructor(f,L){super(f),this.entityCollectionsService=L}ngOnInit(){super.ngOnInit(),this.availableClients=this.entityCollectionsService.getSelectableClientsForAddressPoi()}getEntityName(){return"AddressPoi"}clientParams2RequestParams(f){return{}}newWidgetDef(f,L,V){}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(i.Pc),t.Y36(b.f))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-address-poi-filter"]],features:[t.qOj],decls:3,vars:9,consts:[[3,"entityName","filterPanelsTemplate","formHandler","record","orderFields","orderField","orderDirection","enableSearchListOption","enableCreateContactListOption","orderChanged","save"],["filterPanelsTemplate",""],[3,"parentForm","record","formHandler"],["mainFilterPanel",""],["fulltextFilterPanel",""],[3,"parentForm","record","formHandler","availableClients"],["clientFilterPanel",""],["geoFilterPanel",""],["memoFilterPanel",""],[4,"ngIf"],[3,"parentForm","record","formHandler",4,"hasAnyPermission"],["duplicatesFilterPanel",""],["adminFilterPanel",""]],template:function(L,V){if(1&L&&(t.TgZ(0,"imx-filter",0),t.NdJ("orderChanged",function(An){return V.orderChanged.emit(An)})("save",function(An){return V.applyFilter.emit(An)}),t.YNc(1,Za,12,18,"ng-template",null,1,t.W1O),t.qZA()),2&L){const Xe=t.MAs(2);t.Q6J("entityName","AddressPoi")("filterPanelsTemplate",Xe)("formHandler",V.formHandler)("record",V.record)("orderFields",V.orderFields)("orderField",V.orderField)("orderDirection",V.orderDirection)("enableSearchListOption",V.enableCreateContactListOption)("enableCreateContactListOption",!0)}},dependencies:[e.O5,To,sr.B,oi.d,Vi.Q,Ti.v,Hi.z,Do.Y,$o.L,yr.R],changeDetection:0})}return A})();var Wa=a(84102),Yi=a(94289),jo=a(74377),Cn=a(64123),uo=a(90633),fo=a(13098);function Jo(A,Gt){1&A&&(t.TgZ(0,"imx-list-no-results"),t._uU(1,"imxplatform.addresspoi.list.no-records"),t.qZA())}function kr(A,Gt){1&A&&t._UZ(0,"mat-progress-bar",9)}function Qr(A,Gt){if(1&A&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&A){const f=Gt.$implicit;t.Udp("width",f.width),t.Q6J("ngClass",f.cssClass),t.xp6(),t.hij(" ",t.lcZ(2,4,f.header)," ")}}function Aa(A,Gt){if(1&A&&(t.TgZ(0,"tr"),t.YNc(1,Qr,3,6,"th",15),t.qZA()),2&A){const f=t.oxw(3);t.xp6(),t.Q6J("ngForOf",f.columnDefinitions)}}function cs(A,Gt){if(1&A&&(t.TgZ(0,"span",18),t.ALo(1,"readI18n"),t._uU(2),t.ALo(3,"readI18n"),t.TgZ(4,"span",31),t._uU(5),t.qZA()()),2&A){const f=Gt.$implicit,L=Gt.last,V=t.oxw(5);t.Q6J("matTooltip",t.lcZ(1,4,V.addressPoiTypeMap.get(f.id)))("matTooltipShowDelay",500),t.xp6(2),t.hij(" ",t.lcZ(3,6,V.addressPoiTypeMap.get(f.id))," "),t.xp6(3),t.Oqu(L?"":"/")}}function ys(A,Gt){if(1&A&&(t.TgZ(0,"div",29),t.YNc(1,cs,6,8,"span",30),t.qZA()),2&A){const f=t.oxw().$implicit;t.xp6(),t.Q6J("ngForOf",f.types)}}function zr(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-action-menu-item",32),t.NdJ("actionClicked",function(){const Xe=t.CHM(f).$implicit,An=t.oxw().$implicit,Qo=t.oxw(3);return t.KtG(Qo.executeRowAction(Xe,An))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&A){const f=Gt.$implicit;t.Q6J("icon",f.getIcon())("additionalStyle","icon-trash"==f.getIcon()?"delete":""),t.xp6(),t.hij(" ",t.lcZ(2,3,f.getActionLabelKey())," ")}}const Pi=A=>({selected:A});function xo(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"tr",17)(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td",18),t.ALo(4,"readI18n"),t.TgZ(5,"a",19),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3);return t.KtG(An.contextNavigationService.navigateToCoreEntityContextual(["/addresspois/edit",Xe.id]))}),t.TgZ(6,"span",20),t._UZ(7,"span",21),t.qZA(),t._uU(8),t.ALo(9,"readI18n"),t.qZA(),t.TgZ(10,"span",22),t._uU(11),t.ALo(12,"translate"),t.ALo(13,"translate"),t.qZA()(),t.TgZ(14,"td"),t.YNc(15,ys,2,1,"div",23),t.qZA(),t.TgZ(16,"td",18),t._uU(17),t.qZA(),t.TgZ(18,"td")(19,"imx-tooltip",24),t.ALo(20,"readI18n"),t.ALo(21,"languageNames"),t._UZ(22,"imx-language-flag",25),t.qZA()(),t.TgZ(23,"td"),t._UZ(24,"imx-entity-state",26),t.qZA(),t.TgZ(25,"td",27)(26,"imx-dropup-button")(27,"imx-action-menu"),t.YNc(28,zr,3,5,"ng-template",28),t.qZA()()()()}if(2&A){const f=Gt.$implicit,L=t.oxw(3);t.Q6J("ngClass",t.VKq(29,Pi,L.isItemSelected(f.id))),t.xp6(2),t.Oqu(f.id),t.xp6(),t.Q6J("matTooltip",t.lcZ(4,17,f.title))("matTooltipShowDelay",500),t.xp6(5),t.hij(" ",t.lcZ(9,19,f.title)," "),t.xp6(3),t.hij(" ",L.isClone(f.id)?" ("+t.lcZ(12,21,"imxplatform.common-entity.list.inbox.copy")+" | "+t.lcZ(13,23,"imxplatform.common-entity.list.inbox.original-id")+": "+L.getOriginalId(f.id)+")":""," "),t.xp6(4),t.Q6J("ngIf",f.types&&f.types.length>0),t.xp6(),t.Q6J("matTooltip",null==f.client?null:f.client.name)("matTooltipShowDelay",500),t.xp6(),t.hij(" ",null==f.client?null:f.client.name," "),t.xp6(2),t.Q6J("tooltipText",t.lcZ(20,25,t.lcZ(21,27,f.languages)))("offset",300),t.xp6(3),t.Q6J("languages",f.languages)("inline",!0),t.xp6(2),t.Q6J("key",null==f||null==f.entityState?null:f.entityState.key)("appearances",null==f?null:f.appearances),t.xp6(4),t.Q6J("ngForOf",null==L.actionProvider?null:L.actionProvider.getRowActionsForType(L.getEntityName(),f.id))}}function lr(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"p-table",12),t.YNc(2,Aa,2,1,"ng-template",13)(3,xo,29,31,"ng-template",14),t.qZA(),t.BQk()),2&A){const f=t.oxw().ngIf;t.xp6(),t.Q6J("value",f.items)("resizableColumns",!0)}}function Ir(A,Gt){if(1&A&&(t.TgZ(0,"div",10),t.YNc(1,lr,4,2,"ng-container",11),t.qZA()),2&A){const f=Gt.ngIf;t.oxw();const L=t.MAs(7);t.xp6(),t.Q6J("ngIf",f.items.length>0)("ngIfElse",L)}}let Is=(()=>{class A extends In{constructor(f,L,V,Xe,An,Qo,Dr,es,Al,Rl,$l,kl,Jl,od){super(f,L,V,An,Qo,Dr,es,Al,Rl,$l,kl,Jl),this.entityCollectionsService=od,this.imxPermissions=i.uo,this.addressPoiTypeMap=new Map,this.availableOrderFields=[{index:1,field:"TITLE",i18n:"entity.AddressPoi.title",type:an.m.alphanumeric},{index:2,field:"ID",i18n:"entity.AddressPoi.id",type:an.m.numeric},{index:3,field:"CITY",i18n:"entity.AddressPoi.location",type:an.m.alphanumeric},{index:4,field:"CREATION_TIME",i18n:"imxplatform.common-entity.list.sort.creationTime",type:an.m.numeric},{index:5,field:"LAST_CHANGE",i18n:"imxplatform.common-entity.list.sort.lastChange",type:an.m.numeric},{index:6,field:"LAST_CHANGE_FROM",i18n:"imxplatform.common-entity.list.sort.lastChangeFrom",type:an.m.alphanumeric}],this.columnDefinitions=[{field:"id",header:"ID",width:"70px"},{field:"title",header:"entity.AddressPoi.title",width:"50%"},{field:"type",header:"imxplatform.addresspoi.compact.address-poi-type",width:"130px"},{field:"client",header:"entity.AddressPoi.client",width:"130px"},{field:"languages",header:"entity.AddressPoi.languages",width:"100px"},{field:"entity-state",header:"entity.AddressPoi.state",width:"20%"},{field:"action",header:"",width:"50px",cssClass:"action-column"}]}ngOnInit(){super.ngOnInit(),this.entityCollectionsService.getAllAddressPoiTypes().subscribe(f=>f.forEach(L=>this.addressPoiTypeMap.set(L.id,L.i18nName)))}getEntityName(){return"AddressPoi"}getEditRoute(){return"addresspois"}getEditActionKey(){return"addresspoi-dm-action-edit"}getCloneActionKey(){return"addresspoi-dm-action-createClone"}getInboxContext(){return"datamanager"}adjustFilter(f){if(f.includeSubClasses="false",this.currentAndSubClients){const L=this.retrieveIds(f.clientIds);f.clientIds=L?this.currentAndSubClients.map(V=>V.id).filter(V=>L.includes(""+V)).join(","):this.currentAndSubClients.map(V=>V.id).join(",")}this.imxDatamanagerUserId&&(f.owningUserId=this.imxDatamanagerUserId)}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(Xo.Q),t.Y36(l.F0),t.Y36(l.gz),t.Y36(i.Yz),t.Y36(c.Y),t.Y36(Wi.G),t.Y36(ae.uw),t.Y36(bt.Tp),t.Y36(sn.nq),t.Y36(Wr.Q),t.Y36(Ui.a),t.Y36(i.Ze),t.Y36(i.Pc),t.Y36(b.f))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],features:[t.qOj],decls:13,vars:18,consts:[[1,"search-page"],[3,"formHandler","record","orderFields","orderField","orderDirection","orderChanged","applyFilter","resetFilter"],[3,"icon","text"],[3,"totalNumber","entityResourceKeyPrefix","isCompactPageHeader","showCompactToggle","reload"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],["class","table-wrapper",4,"ngIf","ngIfElse"],[3,"disableAllSelection","paging","selection","pageChanged","selectAll"],["mode","indeterminate"],[1,"table-wrapper"],[4,"ngIf","ngIfElse"],[1,"imx-datatable",3,"value","resizableColumns"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",3,"ngClass"],[3,"ngClass"],[3,"matTooltip","matTooltipShowDelay"],[1,"txt-link",3,"click"],[1,"badge"],[1,"icon-map-marker"],[1,"txt-clone"],["class","types txt-default",4,"ngIf"],[3,"tooltipText","offset"],[3,"languages","inline"],[3,"key","appearances"],[1,"action-column"],["ngFor","",3,"ngForOf"],[1,"types","txt-default"],[3,"matTooltip","matTooltipShowDelay",4,"ngFor","ngForOf"],[1,"separator"],[3,"icon","additionalStyle","actionClicked"]],template:function(L,V){if(1&L&&(t.TgZ(0,"div",0)(1,"imx-address-poi-filter",1),t.NdJ("orderChanged",function(An){return V.sort(An)})("applyFilter",function(An){return V.search(An)})("resetFilter",function(){return V.reset()}),t.qZA(),t.TgZ(2,"imx-eyecatcher",2)(3,"imx-list-header",3),t.NdJ("reload",function(){return V.reloadComplete()}),t.qZA()(),t.TgZ(4,"imx-grid")(5,"imx-grid-element",4),t.YNc(6,Jo,2,0,"ng-template",null,5,t.W1O)(8,kr,1,0,"ng-template",null,6,t.W1O)(10,Ir,2,2,"div",7),t.ALo(11,"async"),t.qZA()(),t.TgZ(12,"imx-list-footer",8),t.NdJ("pageChanged",function(An){return V.onPageChanged(An)})("selectAll",function(An){return V.onSelectAll(An)}),t.qZA()()),2&L){const Xe=t.MAs(9);t.xp6(),t.Q6J("formHandler",V.filterFormHandler)("record",V.filter)("orderFields",V.availableOrderFields)("orderField",V.orderField)("orderDirection",V.orderDirection),t.xp6(),t.Q6J("icon","icon-mail")("text","imxplatform.navigation.inbox"),t.xp6(),t.Q6J("totalNumber",null==V.currentResult?null:V.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxplatform.addresspoi")("isCompactPageHeader",!0)("showCompactToggle",!0),t.xp6(7),t.Q6J("ngIf",t.lcZ(11,16,V.results))("ngIfElse",Xe),t.xp6(2),t.Q6J("disableAllSelection",!0)("paging",V.pagingModel)("selection",V.selectionModel)}},dependencies:[e.mk,e.sg,e.O5,Ft.pW,qi.gM,wi.iA,zo.jx,wi.Q7,xi.p,ki.z,wo.t,Ei.g,On.M,_n.V,ho.K,ma,Wa.n,Yi.l,jo.N,Cn._,uo.A,kn.F,e.Ov,Y.X$,fo.O,ue.j],styles:["[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.txt-clone[_ngcontent-%COMP%]{color:#4ac400}"]})}return A})();var ba=a(59038),Ss=a(97859),Ca=a(20050),Ia=a(63675);function wa(A,Gt){1&A&&(t.TgZ(0,"imx-list-no-results"),t._uU(1,"imxplatform.addresspoi.list.no-records"),t.qZA())}function Va(A,Gt){1&A&&t._UZ(0,"mat-progress-bar",11)}function zn(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-action-menu-item",20),t.NdJ("actionClicked",function(){const Xe=t.CHM(f).$implicit,An=t.oxw().$implicit,Qo=t.oxw(3);return t.KtG(Qo.executeRowAction(Xe,An))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&A){const f=Gt.$implicit;t.Q6J("icon",f.getIcon())("additionalStyle","icon-trash"==f.getIcon()?"delete":""),t.xp6(),t.hij(" ",t.lcZ(2,3,f.getActionLabelKey())," ")}}const di=A=>({selected:A});function cn(A,Gt){if(1&A&&(t.TgZ(0,"mat-list-item",13)(1,"div",14)(2,"div",15),t._UZ(3,"imx-list-row",16),t.qZA(),t.TgZ(4,"div",17)(5,"imx-dropup-button")(6,"imx-action-menu"),t.YNc(7,zn,3,5,"ng-template",18),t.qZA()(),t._UZ(8,"imx-entity-state",19),t.qZA()()()),2&A){const f=Gt.$implicit,L=t.oxw(3),V=t.MAs(14),Xe=t.MAs(16);t.xp6(),t.Q6J("ngClass",t.VKq(7,di,L.isItemSelected(f.id))),t.xp6(2),t.Q6J("dataObject",f)("leftSlotTemplate",V)("rightSlotTemplate",Xe),t.xp6(4),t.Q6J("ngForOf",null==L.actionProvider?null:L.actionProvider.getRowActionsForType(L.getEntityName(),f.id)),t.xp6(),t.Q6J("key",f.entityState.key)("inline",!1)}}function Zi(A,Gt){if(1&A&&(t.TgZ(0,"mat-list"),t.YNc(1,cn,9,9,"mat-list-item",12),t.qZA()),2&A){const f=t.oxw().ngIf,L=t.oxw();t.xp6(),t.Q6J("ngForOf",f.items)("ngForTrackBy",L.trackByItemId)}}function Eo(A,Gt){if(1&A&&(t.TgZ(0,"div"),t.YNc(1,Zi,2,2,"mat-list",7),t.qZA()),2&A){const f=Gt.ngIf;t.oxw();const L=t.MAs(7);t.xp6(),t.Q6J("ngIf",f.items.length>0)("ngIfElse",L)}}function oa(A,Gt){if(1&A&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"readI18n"),t.TgZ(3,"span",32),t._uU(4,"/"),t.qZA()()),2&A){const f=Gt.$implicit,L=t.oxw(3);t.xp6(),t.hij(" ",t.lcZ(2,1,L.addressPoiTypeMap.get(f.id))," ")}}function Nr(A,Gt){if(1&A&&(t.TgZ(0,"div",30),t.YNc(1,oa,5,3,"span",31),t.qZA()),2&A){const f=t.oxw().dataObject;t.xp6(),t.Q6J("ngForOf",f.types)}}function Rs(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"a",21),t.NdJ("click",function(){const Xe=t.CHM(f).dataObject,An=t.oxw();return t.KtG(An.contextNavigationService.navigateToCoreEntityContextual(["/addresspois/edit",Xe.id]))}),t._uU(1),t.ALo(2,"readI18n"),t.TgZ(3,"span",22),t._uU(4),t.ALo(5,"translate"),t.qZA()(),t._UZ(6,"imx-row-id-view",23)(7,"imx-row-client-view",23),t.TgZ(8,"p",24),t._uU(9),t.ALo(10,"translate"),t.TgZ(11,"span",25),t._uU(12),t.qZA()(),t.TgZ(13,"p",26),t._uU(14),t.qZA(),t.TgZ(15,"p",27),t._uU(16),t.qZA(),t.TgZ(17,"div",28)(18,"span",24),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"span",25),t._uU(22),t.ALo(23,"translate"),t.qZA()(),t.YNc(24,Nr,2,1,"div",29)}if(2&A){const f=Gt.dataObject,L=t.oxw();t.xp6(),t.hij(" ",t.lcZ(2,13,f.title)," "),t.xp6(3),t.Oqu(L.isClone(f.id)?" ("+t.lcZ(5,15,"imxplatform.common-entity.list.inbox.copy")+")":""),t.xp6(2),t.Q6J("dataObject",f),t.xp6(),t.Q6J("dataObject",f),t.xp6(2),t.hij("",t.lcZ(10,17,"entity.AddressPoi.addressbaseUser"),": "),t.xp6(3),t.AsE("",f.addressbaseUser.loginname," (",f.addressbaseUser.id,")"),t.xp6(2),t.Oqu(null==f||null==f.contact1?null:f.contact1.contactName),t.xp6(2),t.AsE("",null==f||null==f.contact1||null==f.contact1.address?null:f.contact1.address.zipcode," ",null==f||null==f.contact1||null==f.contact1.address?null:f.contact1.address.city,""),t.xp6(3),t.hij("",t.lcZ(20,19,"entity.EntityState.entityName"),":"),t.xp6(3),t.Oqu(t.lcZ(23,21,"entity.EntityState."+(null==f.entityState||null==f.entityState.name?null:f.entityState.name.toLowerCase()))),t.xp6(2),t.Q6J("ngIf",f.types&&f.types.length>0)}}function Zr(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"span",34)(2,"p"),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"span",34)(6,"p"),t._uU(7),t.ALo(8,"translate"),t.qZA()(),t.BQk()),2&A){const f=t.oxw().dataObject,L=t.oxw();t.xp6(3),t.hij(" ",t.lcZ(4,2,"imxplatform.common-entity.list.inbox.clone")," "),t.xp6(4),t.hij(" ",t.lcZ(8,4,"imxplatform.common-entity.list.inbox.original-id")+": "+L.getOriginalId(f.id)," ")}}function Na(A,Gt){if(1&A&&t.YNc(0,Zr,9,6,"ng-container",33),2&A){const f=Gt.dataObject,L=t.oxw();t.Q6J("ngIf",L.isClone(f.id))}}let Ho=(()=>{class A extends In{constructor(f,L,V,Xe,An,Qo,Dr,es,Al,Rl,$l,kl,Jl,od){super(f,L,V,An,Qo,Dr,Rl,$l,es,Al,Jl,kl),this.runtimeContext=Jl,this.entityCollectionsService=od,this.imxPermissions=i.uo,this.addressPoiTypeMap=new Map,this.availableOrderFields=[{index:1,field:"TITLE",i18n:"entity.AddressPoi.title",type:an.m.alphanumeric},{index:2,field:"ID",i18n:"entity.AddressPoi.id",type:an.m.numeric},{index:3,field:"CITY",i18n:"entity.AddressPoi.location",type:an.m.alphanumeric},{index:4,field:"CREATION_TIME",i18n:"imxplatform.common-entity.list.sort.creationTime",type:an.m.numeric},{index:5,field:"LAST_CHANGE",i18n:"imxplatform.common-entity.list.sort.lastChange",type:an.m.numeric},{index:6,field:"LAST_CHANGE_FROM",i18n:"imxplatform.common-entity.list.sort.lastChangeFrom",type:an.m.alphanumeric}]}ngOnInit(){super.ngOnInit(),this.entityCollectionsService.getAllAddressPoiTypes().subscribe(f=>f.forEach(L=>this.addressPoiTypeMap.set(L.id,L.i18nName)))}getEntityName(){return"AddressPoi"}getEditRoute(){return"addresspois"}getEditActionKey(){return"addresspoi-dm-action-edit"}getCloneActionKey(){return"addresspoi-dm-action-createClone"}getInboxContext(){return"datamanager"}adjustFilter(f){if(f.includeSubClasses="false",this.currentAndSubClients){const L=this.retrieveIds(f.clientIds);f.clientIds=L?this.currentAndSubClients.map(V=>V.id).filter(V=>L.includes(""+V)).join(","):this.currentAndSubClients.map(V=>V.id).join(",")}this.imxDatamanagerUserId&&(f.owningUserId=this.imxDatamanagerUserId)}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(Xo.Q),t.Y36(l.F0),t.Y36(l.gz),t.Y36(i.Yz),t.Y36(c.Y),t.Y36(Wi.G),t.Y36(ae.uw),t.Y36(Wr.Q),t.Y36(Ui.a),t.Y36(bt.Tp),t.Y36(sn.nq),t.Y36(i.Pc),t.Y36(i.Ze),t.Y36(b.f))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],features:[t.qOj],decls:17,vars:16,consts:[[1,"search-page"],[3,"formHandler","record","orderFields","orderField","orderDirection","orderChanged","applyFilter","resetFilter"],[3,"icon","text"],[3,"totalNumber","entityResourceKeyPrefix","reload"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],[4,"ngIf","ngIfElse"],[3,"disableAllSelection","paging","selection","pageChanged","selectAll"],["addressPoiLeftSlotTemplate",""],["addressPoiRightSlotTemplate",""],["mode","indeterminate"],["class","list__item",4,"ngFor","ngForOf","ngForTrackBy"],[1,"list__item"],[1,"list__row-wrapper",3,"ngClass"],[1,"list__row"],[3,"dataObject","leftSlotTemplate","rightSlotTemplate","bottomSlotTemplate"],[1,"list__row-action"],["ngFor","",3,"ngForOf"],[3,"key","inline"],[3,"icon","additionalStyle","actionClicked"],[1,"txt-bg",3,"click"],[1,"txt-clone"],[3,"dataObject"],[1,"txt-grey"],[1,"txt-default"],[1,"txt-sm","txt-grey","block"],[1,"txt-sm","txt-grey"],[1,"block"],["class","types txt-default",4,"ngIf"],[1,"types","txt-default"],[4,"ngFor","ngForOf"],[1,"separator"],[4,"ngIf"],[1,"txt-md"]],template:function(L,V){if(1&L&&(t.TgZ(0,"div",0)(1,"imx-address-poi-filter",1),t.NdJ("orderChanged",function(An){return V.sort(An)})("applyFilter",function(An){return V.search(An)})("resetFilter",function(){return V.reset()}),t.qZA(),t.TgZ(2,"imx-eyecatcher",2)(3,"imx-list-header",3),t.NdJ("reload",function(){return V.reloadComplete()}),t.qZA()(),t.TgZ(4,"imx-grid")(5,"imx-grid-element",4),t.YNc(6,wa,2,0,"ng-template",null,5,t.W1O)(8,Va,1,0,"ng-template",null,6,t.W1O)(10,Eo,2,2,"div",7),t.ALo(11,"async"),t.qZA()(),t.TgZ(12,"imx-list-footer",8),t.NdJ("pageChanged",function(An){return V.onPageChanged(An)})("selectAll",function(An){return V.onSelectAll(An)}),t.qZA()(),t.YNc(13,Rs,25,23,"ng-template",null,9,t.W1O)(15,Na,1,1,"ng-template",null,10,t.W1O)),2&L){const Xe=t.MAs(9);t.xp6(),t.Q6J("formHandler",V.filterFormHandler)("record",V.filter)("orderFields",V.availableOrderFields)("orderField",V.orderField)("orderDirection",V.orderDirection),t.xp6(),t.Q6J("icon","icon-mail")("text","imxplatform.navigation.inbox"),t.xp6(),t.Q6J("totalNumber",null==V.currentResult?null:V.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxplatform.addresspoi"),t.xp6(7),t.Q6J("ngIf",t.lcZ(11,14,V.results))("ngIfElse",Xe),t.xp6(2),t.Q6J("disableAllSelection",!0)("paging",V.pagingModel)("selection",V.selectionModel)}},dependencies:[e.mk,e.sg,e.O5,ba.i$,ba.Tg,Ft.pW,xi.p,ki.z,wo.t,Ei.g,On.M,_n.V,ma,Wa.n,jo.N,Cn._,uo.A,Ss.Y,Ca.w,Ia.k,kn.F,e.Ov,Y.X$,ue.j],styles:["[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.list__row[_ngcontent-%COMP%]{background:#fff;border:.5px solid #ced4e0;box-sizing:border-box;width:100%;padding:20px;z-index:1}@media (max-width: 900px){.list__row[_ngcontent-%COMP%]{padding:10px}}.list__row-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;box-sizing:border-box;position:relative;height:inherit}.list__row-wrapper.selected[_ngcontent-%COMP%]   .list__row[_ngcontent-%COMP%]{background-color:#eefafa}.list__row-action[_ngcontent-%COMP%]{min-width:45px;min-height:100%;display:flex;flex-direction:column;padding-left:5px;text-align:center;position:relative;z-index:1}@media (max-width: 900px){.list__row-action[_ngcontent-%COMP%]{min-width:30px;padding-left:2px}}.list__row-checkbox[_ngcontent-%COMP%]{margin:auto 5px auto 0}.txt-clone[_ngcontent-%COMP%]{color:#4ac400}.types[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:last-child   .separator[_ngcontent-%COMP%]{display:none}.status[_ngcontent-%COMP%], .block[_ngcontent-%COMP%]{margin-top:3px}"]})}return A})();var mc=a(18051),os=a(40254),ps=a(49032),Ps=a(56758),Ba=a(58320),Ka=a(77958),vc=a(67849),$s=a(10444);function js(A,Gt){if(1&A){const f=t.EpF();t.ynx(0),t.TgZ(1,"div",7)(2,"span"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",8)(6,"imx-base-select",9),t.NdJ("ngModelChange",function(V){t.CHM(f);const Xe=t.oxw();return t.KtG(Xe.selectedMemoAttributeGroupId=V)})("ngModelChange",function(){t.CHM(f);const V=t.oxw();return t.KtG(V.loadMemoAttributes())}),t.qZA()()(),t.BQk()}if(2&A){const f=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,3,"imxplatform.memo.attribute-group"),":"),t.xp6(3),t.Q6J("ngModel",f.selectedMemoAttributeGroupId)("options",f.availableMemoGroups)}}function bc(A,Gt){if(1&A){const f=t.EpF();t.ynx(0),t.TgZ(1,"div",7)(2,"span"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",8)(6,"imx-base-select",9),t.NdJ("ngModelChange",function(V){t.CHM(f);const Xe=t.oxw();return t.KtG(Xe.selectedMemoAttributeId=V)}),t.qZA()()(),t.BQk()}if(2&A){const f=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,3,"imxplatform.memo.attribute"),":"),t.xp6(3),t.Q6J("ngModel",f.selectedMemoAttributeId)("options",f.availableMemoAttributes)}}function ql(A,Gt){if(1&A){const f=t.EpF();t.ynx(0),t.TgZ(1,"imx-base-checkbox",5),t.NdJ("ngModelChange",function(V){t.CHM(f);const Xe=t.oxw();return t.KtG(Xe.shareNewMemo=V)}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.BQk()}if(2&A){const f=t.oxw();t.xp6(),t.Q6J("ngModel",f.shareNewMemo),t.xp6(),t.Oqu(t.lcZ(3,2,"imxplatform.memo.shared"))}}let Gs=(()=>{class A{constructor(f,L,V,Xe,An,Qo,Dr,es,Al,Rl){this.formatterService=f,this.platformDataAccessService=L,this.imxEntitiesMgrService=V,this.userMessageService=Xe,this.translationService=An,this.readI18nPipe=Qo,this.memoProvider=Dr,this.memoAttributeOptionProvider=es,this.memoAttributeGroupOptionProviderService=Al,this.data=Rl,this.formGroup=new x.nJ({}),this.newMemo="",this.shareNewMemo=1,this.selectedMemoAttributeId=-1,this.memoAttributesAvailable=!1,this.selectedMemoAttributeGroupId=-1,this.memoAttributeGroupsAvailable=!1,this.memoMarkPrivatePermissionStr=i.uo.F_MEMO_MANAGEMENT_MARK_PRIVATE.name}ngOnInit(){this.memoAttributeGroupOptionProviderService.getOptions(null,null).subscribe(f=>{if(f.length>1){const L=[];L.push({label:this.translationService.instant("imxplatform.memo.no-attribute-group"),value:-1}),L.push(...f),this.availableMemoGroups=L,f&&f.length>1?this.memoAttributeGroupsAvailable=!0:this.loadMemoAttributes()}else this.loadMemoAttributes()})}loadMemoAttributes(){this.selectedMemoAttributeId=-1,(this.memoAttributeGroupsAvailable&&this.selectedMemoAttributeGroupId?this.memoAttributeOptionProvider.getOptionsByGroupId(null,null,this.selectedMemoAttributeGroupId):this.memoAttributeOptionProvider.getOptions(null,null)).subscribe(L=>{const V=[];V.push({label:this.translationService.instant("imxplatform.memo.no-attribute"),value:-1}),V.push(...L),this.availableMemoAttributes=V,L&&L.length>0&&(this.memoAttributesAvailable=!0)})}createNewMemo(){let f=[];return this.data.entityIds&&(f=this.data.entityIds.map(L=>this.platformDataAccessService.createMemo$({note:this.newMemo,shared:!!this.shareNewMemo,entityId:L,entityType:this.data.entityType,memoAttribute:-1===this.selectedMemoAttributeId?null:{id:this.selectedMemoAttributeId}}))),{data:(0,P.aj)(f)}}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(i.H1),t.Y36(sn.nq),t.Y36(i.qB),t.Y36(c.Y),t.Y36(Y.sK),t.Y36(ue.j),t.Y36(mc.o),t.Y36(Ba.b),t.Y36(Ps.U),t.Y36(ae.WI))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],decls:9,vars:9,consts:[["icon","icon-bubble",3,"heading","submitButtonDisabled","getSubmitResult"],["dialogFrame",""],[1,"dialog-form"],[1,"new-memo-container"],[4,"ngIf"],[3,"ngModel","ngModelChange"],[4,"hasAnyPermission"],[1,"memo-attr-wrapper","memo-attr-wrapper--input"],[1,"memo-attr-select"],[3,"ngModel","options","ngModelChange"]],template:function(L,V){1&L&&(t.TgZ(0,"imx-dialog",0,1),t.ALo(2,"translate"),t.TgZ(3,"div",2)(4,"div",3),t.YNc(5,js,7,5,"ng-container",4)(6,bc,7,5,"ng-container",4),t.TgZ(7,"imx-base-multi-input",5),t.NdJ("ngModelChange",function(An){return V.newMemo=An}),t.qZA(),t.YNc(8,ql,4,4,"ng-container",6),t.qZA()()()),2&L&&(t.s9C("heading",t.lcZ(2,7,"imxplatform.memo.create")),t.Q6J("submitButtonDisabled",-1!==V.selectedMemoAttributeGroupId&&-1===V.selectedMemoAttributeId||0==V.newMemo.length&&-1===V.selectedMemoAttributeId)("getSubmitResult",V.createNewMemo.bind(V)),t.xp6(5),t.Q6J("ngIf",V.memoAttributeGroupsAvailable),t.xp6(),t.Q6J("ngIf",V.memoAttributesAvailable),t.xp6(),t.Q6J("ngModel",V.newMemo),t.xp6(),t.Q6J("hasAnyPermission",V.memoMarkPrivatePermissionStr))},dependencies:[e.O5,x.JJ,x.On,Ka.G,vc.x,$s.o,Qt.a,yr.R,Y.X$],styles:[".new-memo-container[_ngcontent-%COMP%]{width:250px}.memo-attr-wrapper[_ngcontent-%COMP%]{font-size:14px;width:100%}.memo-attr-wrapper.memo-attr-wrapper--input[_ngcontent-%COMP%]{line-height:30px;margin-bottom:15px}.memo-attr-wrapper[_ngcontent-%COMP%]:not(.memo-attr-wrapper--input){line-height:1em;margin-bottom:5px;text-align:right}.memo-attr-select[_ngcontent-%COMP%]{margin-left:10px;width:100%;min-width:150px;float:right}.memo-attr-display[_ngcontent-%COMP%]{font-style:italic}"]})}return A})();var Dl=a(68484),Yr=a(51418),_a=a(62413),ts=a(67276),rl=a(69594),ya=a(75986),Pl=a(55940);const jl=["dialogFrame"],Ml=["submitLink"];function rc(A,Gt){1&A&&(t.ynx(0),t.TgZ(1,"div",7)(2,"div",8)(3,"mat-checkbox",9),t._uU(4),t.ALo(5,"translate"),t.qZA()(),t.TgZ(6,"div",8)(7,"mat-checkbox",10),t._uU(8),t.ALo(9,"translate"),t.qZA()()(),t.BQk()),2&A&&(t.xp6(4),t.Oqu(t.lcZ(5,2,"imxplatform.statistic.options.show-periodical-once")),t.xp6(4),t.Oqu(t.lcZ(9,4,"imxplatform.statistic.options.show-periodical-at-end")))}function Kr(A,Gt){1&A&&(t.TgZ(0,"div",11),t._UZ(1,"mat-spinner"),t.TgZ(2,"h5",12),t._uU(3,"imxplatform.statistic.progress"),t.qZA()())}let la=(()=>{class A{constructor(f,L,V,Xe,An){this.platformDataAccessService=f,this.data=L,this.translateService=V,this.configurationProvider=Xe,this.overlay=An,this.formGroup=new x.nJ({}),this.asyncStatisticOptions=[],this.selectControl=new x.p4,this.selectField=new ts.P("statistic","imxplatform.statistic.label",{initialValue:ts.F,placeholder:"imxplatform.statistic.placeholder"}),this.showPeriodicalEventsOnceCtrl=new x.p4,this.addPeriodicalEventsToEndCtrl=new x.p4,this.disableSubmit=!0,this.showAlternateDatesModel=!1,this.overlayConfig={height:"100px",width:"100px",positionStrategy:this.overlay.position().global().centerHorizontally().centerVertically()},this.statisticOptions=this.loadStatisticsOptions(),this.formGroup.registerControl("statistic",this.selectControl),this.formGroup.registerControl("showPeriodicalEventsOnce",this.showPeriodicalEventsOnceCtrl),this.formGroup.registerControl("addPeriodicalEventsToEnd",this.addPeriodicalEventsToEndCtrl),this.initSelectChangeListener()}ngOnInit(){this.platformDataAccessService.getAsyncStatistics(this.data.entityType).pipe((0,Yr.q)(1),(0,_a.K)(()=>[])).subscribe(f=>{this.asyncStatisticOptions=f}),this.selectControl.setValue(ts.F),this.overlayRef=this.overlay.create(this.overlayConfig),this.showAlternateDatesModel=this.configurationProvider.getBooleanFromSnapshot(ks.IMXEVENTMANAGER_EVENTDATE_ALTERNATE,!1)}handleSubmit(){this.formGroup.valid&&(this.dialogFrame.handleConfirm(),this.dialogFrame.close(this.getDialogResult()))}initSelectChangeListener(){this.selectControl.valueChanges.subscribe(f=>{this.disableSubmit=f===ts.F,this.setAdditionalOptionValues()})}showAdditionalExportOptions(){if(!this.showAlternateDatesModel&&this.selectControl.value&&-1!==this.selectControl.value)return this.selectControl.value.startsWith("export")}setAdditionalOptionValues(){this.showAdditionalExportOptions()?(this.showPeriodicalEventsOnceCtrl.setValue(!0),this.addPeriodicalEventsToEndCtrl.setValue(!1)):(this.showPeriodicalEventsOnceCtrl.setValue(!1),this.addPeriodicalEventsToEndCtrl.setValue(!1))}getDialogResult(){return{model:this.formGroup.value,isAsync:this.asyncStatisticOptions.includes(this.formGroup.value.statistic),overlayRef:this.overlayRef}}loadStatisticsOptions(){return this.platformDataAccessService.getStatistics(this.data.entityType).pipe((0,m.U)(f=>f.map(L=>({label:this.translateService.instant("imxplatform.statistic.types."+L),value:L}))))}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(sn.nq),t.Y36(ae.WI),t.Y36(Y.sK),t.Y36(i.Pc),t.Y36(rl.aV))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],viewQuery:function(L,V){if(1&L&&(t.Gf(jl,7),t.Gf(Ml,7),t.Gf(Dl.bH,7)),2&L){let Xe;t.iGM(Xe=t.CRH())&&(V.dialogFrame=Xe.first),t.iGM(Xe=t.CRH())&&(V.submitLink=Xe.first),t.iGM(Xe=t.CRH())&&(V.templatePortal=Xe.first)}},hostAttrs:[1,"statistics-dialog"],decls:8,vars:11,consts:[["heading","imxplatform.statistic.title","icon","icon-pie-chart","submitButtonLabel","imxplatform.media.edit.download",3,"submitButtonDisabled","getSubmitResult"],["dialogFrame",""],["id","statistics-dialog",3,"formGroup","submit"],[1,"dialog-form"],[3,"field","control","form","formHandler","optionProvider"],[4,"ngIf"],["cdk-portal",""],[1,"additional-options-wrapper"],[1,"checkbox-wrapper"],["id","showPeriodicalEventsOnce","name","showPeriodicalEventsOnce","formControlName","showPeriodicalEventsOnce"],["id","addPeriodicalEventsToEnd","name","addPeriodicalEventsToEnd","formControlName","addPeriodicalEventsToEnd"],[1,"cdk-spinner-container"],["translate","",1,"txt-sm","cdk-spinner-container__text"]],template:function(L,V){1&L&&(t.TgZ(0,"imx-dialog",0,1)(2,"form",2),t.NdJ("submit",function(){return V.getDialogResult.bind(V)}),t.TgZ(3,"div",3),t._UZ(4,"imx-select",4),t.ALo(5,"async"),t.YNc(6,rc,10,6,"ng-container",5),t.qZA()()(),t.YNc(7,Kr,4,0,"ng-template",6)),2&L&&(t.Q6J("submitButtonDisabled",V.disableSubmit)("getSubmitResult",V.getDialogResult.bind(V)),t.xp6(2),t.Q6J("formGroup",V.formGroup),t.xp6(2),t.Q6J("field",V.selectField)("control",V.selectControl)("form",V.formGroup)("formHandler",V.data.formHandler)("optionProvider",t.lcZ(5,9,V.statisticOptions)),t.xp6(2),t.Q6J("ngIf",V.showAdditionalExportOptions()))},dependencies:[e.O5,x._Y,x.JJ,x.JL,ya.oG,Pl.Ou,Dl.bH,x.sg,x.u,Y.Pi,Qt.a,ve.H,e.Ov,Y.X$],styles:[".checkbox-wrapper[_ngcontent-%COMP%]{margin-top:10px}"]})}return A})();class ks extends i.zd{static#e=this.IMXEVENTMANAGER_EVENTDATE_ALTERNATE=new ks("alternate_eventdate_mgmt");getPrefix(){return"imxeventmanager2"}}var Ta=a(85422),ds=a(64022),bs=a(91145),sl=a(63333);let Ec=(()=>{class A extends hr.uY{constructor(f,L,V,Xe,An,Qo,Dr,es,Al,Rl,$l,kl,Jl,od,dm,Ku,Xh,ex){super(f,L,V,Xe,An,Qo,Dr,es,Al,$l,kl,dm,Ku,Xh),this.dataSource=f,this.runtimeContext=Rl,this.memoProvider=Jl,this.securityManager=od,this.translationService=ex,this.memoCreatePermission=i.uo.F_MEMO_MANAGEMENT_CREATE.name,this.clientVisibilityMap=new Map,this.contactListService=(0,t.f3M)(bs.V),this.coreEntityService=(0,t.f3M)(ds.dE)}showMemos(){return!0}isOutsideCurrentClientHierachy(f){let L=this.clientVisibilityMap.get(f);return void 0!==L||(L=this._isOutsideCurrentClientHierachy(f),this.clientVisibilityMap.set(f,L)),L}_isOutsideCurrentClientHierachy(f){return this.runtimeContext.getCurrentAndSubClients().pipe((0,m.U)(L=>Array.from(L)),(0,m.U)(L=>!L.some(V=>f===V.id)))}afterContentLoaded(){super.afterContentLoaded(),this.showMemos()&&this.currentResult.items&&this.securityManager.hasPermission(i.uo.F_MEMO_MANAGEMENT_READ)&&this.memoProvider.loadMemoCountsForEntities(this.getEntityName(),this.currentResult.items.map(f=>f.id))}getMemoCount(f){return this.memoProvider?this.memoProvider.getMemoCount(this.getEntityName(),f):0}swapAppearancesInResultItem(f){const L=this.currentResult.items.find(V=>V.id===f.id);L&&(L.appearances=f.appearances,L.refusedAppearances=f.refusedAppearances,L.pendingAppearances=f.pendingAppearances,L.entityState=f.entityState)}exportStatisticsOnSelectedIds(){this.exportStatistics(Array.from(this.selectedIds))}exportStatistics(f=[]){this.dialog.open(la,{maxWidth:600,data:{formHandler:this.filterFormHandler,entityType:this.getEntityName(),filterParams:this.getFilterParams(this.filterFormHandler.baseObject)}}).afterClosed().subscribe(L=>{if(L&&L.model&&L.overlayRef){let V=this.getFilterParams(this.filterFormHandler.baseObject);this.selectedIds.size>0&&(V=Object.assign(V||{},this.getFilterParams({id:f.join(",")})));let Xe=!0;if(!0===L.isAsync){V.imxStatisticFormat="xls",V.statName=L.model.statistic,V.queue="export_statistics",!0===L.model.showPeriodicalEventsOnce&&(V.statPeriodicalGrouped="true"),!0===L.model.addPeriodicalEventsToEnd&&(V.statPeriodicalOrdered="true");const An=this.actionProvider.findActionForKey("statistic-action-generate-statistic-async");An&&An instanceof Ta.M&&(Xe=!1,An.executeInBackgroundAsJob(f,new os.L,!0,V))}if(!0===Xe){const An=this.platformDataAccessService.getStatisticDownload(L.model,V);this.platformDataAccessService.openBlobResponse(An,L.model.statistic,"imxplatform.statistic.error",this.userMessageService)}}})}addMemoAttributesOnSelectedIds(){0===this.selectedIds.size?this.userMessageService.showInfo("imxplatform.common.error.no-selection"):this.addMemoAttributes(Array.from(this.selectedIds))}addMemoAttributes(f=[]){this.dialog.open(Gs,{...Qt.D.FORM_SMALL,data:{formHandler:this.filterFormHandler,entityType:this.getEntityName(),entityIds:f}}).afterClosed().subscribe(L=>{L&&L.data&&L.data.subscribe(V=>{const Xe=V.map(An=>An.entityId);this.memoProvider.clearAll(),this.memoProvider.loadMemoCountsForEntities(this.getEntityName(),Xe,!0),this.reloadComplete()},()=>{this._showErrorMessage("imxplatform.memo.saveMemoError")})})}hasHistoryPermission(){return this.securityManager.hasPermission(i.uo.F_HISTORY_ALL)}hasImportDataPermission(){return this.securityManager.hasPermission(i.uo.F_IMPORT_SOURCE_DATA_ALL)}canProvideImportSourceData(f){return this.importSourceDataProvidingImporters.includes(f)}proposeSelectedIdsAsContactList(){0===this.selectedIds.size?this.userMessageService.showInfo("imxplatform.common.error.no-selection"):this.dialog.open(ps.E,{...Qt.D.FORM_MEDIUM,data:{entityType:this.getEntityName(),filterFormHandler:this.filterFormHandler}}).afterClosed().subscribe(f=>{if(f){const L=this.coreEntityService.getCoreEntityDefByString(this.getEntityName()).listRoute,V={name:f.searchListName,entityType:this.getEntityName(),listType:H.E6.CONTACT_LIST,listInfo:"",listInfoClient:L+"?id="+Array.from(this.selectedIds).join(",")};this.contactListService.pushContactList(f.referenceOwner.type,f.referenceOwner.id,{...V,existingContactListId:f.existingContactListId}),this.router.navigate(["/"+f.referenceOwner.link],{fragment:"references"})}})}_showErrorMessage(f){const L=this.translationService.instant(f);this.userMessageService.showError(L)}static#e=this.\u0275fac=function(L){t.$Z()};static#t=this.\u0275dir=t.lG2({type:A,features:[t.qOj]})}return A})();var gr=a(51793),Js=a(5393),Ms=a(25465),Bs=a(91566),yl=a(26768),Fr=a(49546);function nl(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-statistics-button",17),t.NdJ("export",function(){t.CHM(f);const V=t.oxw();return t.KtG(V.exportStatistics())}),t.qZA()}}function hl(A,Gt){1&A&&t._UZ(0,"imx-create-new-entity-button",18),2&A&&t.Q6J("entityRoute","/addresspois")("entityResourceKeyPrefix","imxplatform.addresspoi")}function Cc(A,Gt){1&A&&(t.TgZ(0,"imx-list-no-results"),t._uU(1,"imxplatform.addresspoi.list.no-records"),t.qZA())}function Zt(A,Gt){1&A&&t._UZ(0,"mat-progress-bar",19)}function ri(A,Gt){if(1&A&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&A){const f=Gt.$implicit;t.Udp("width",f.width),t.Q6J("ngClass",f.cssClass),t.xp6(),t.hij(" ",t.lcZ(2,4,f.header)," ")}}function Mn(A,Gt){if(1&A&&(t.TgZ(0,"tr"),t.YNc(1,ri,3,6,"th",25),t.qZA()),2&A){const f=t.oxw(3);t.xp6(),t.Q6J("ngForOf",f.columnDefinitions)}}function mi(A,Gt){if(1&A&&(t.TgZ(0,"span",30),t.ALo(1,"readI18n"),t._uU(2),t.ALo(3,"readI18n"),t.TgZ(4,"span",46),t._uU(5),t.qZA()()),2&A){const f=Gt.$implicit,L=Gt.last,V=t.oxw(5);t.Q6J("matTooltip",t.lcZ(1,4,V.addressPoiTypeMap.get(f.id)))("matTooltipShowDelay",500),t.xp6(2),t.hij(" ",t.lcZ(3,6,V.addressPoiTypeMap.get(f.id))," "),t.xp6(3),t.Oqu(L?"":"/")}}function Mo(A,Gt){if(1&A&&(t.TgZ(0,"div",44),t.YNc(1,mi,6,8,"span",45),t.qZA()),2&A){const f=t.oxw().$implicit;t.xp6(),t.Q6J("ngForOf",f.types)}}function pr(A,Gt){1&A&&(t._UZ(0,"span",47),t.ALo(1,"translate")),2&A&&t.s9C("matTooltip",t.lcZ(1,1,"imxplatform.common-entity.list.outside-client-hierarchy"))}function Pr(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-action-menu-item",43),t.NdJ("click",function(){t.CHM(f);const V=t.oxw().$implicit,Xe=t.oxw(3);return t.KtG(Xe.executeHistoryAction(Xe.getEntityName(),V.id))}),t._uU(1,"imxplatform.common-entity.list.history"),t.qZA()}2&A&&t.Q6J("icon","icon-compare")}const xa=A=>({selected:A}),tl=A=>["../edit",A];function Ls(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"tr",27)(1,"td",28)(2,"mat-checkbox",29),t.NdJ("change",function(V){t.CHM(f);const Xe=t.oxw(3);return t.KtG(Xe.onSelectionChanged(V))}),t.qZA()(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td",30),t.ALo(6,"readI18n"),t.TgZ(7,"a",31)(8,"span",32),t._UZ(9,"span",33),t.qZA(),t._uU(10),t.ALo(11,"readI18n"),t.qZA()(),t.TgZ(12,"td"),t.YNc(13,Mo,2,1,"div",34),t.qZA(),t.TgZ(14,"td",30),t.ALo(15,"translate"),t.TgZ(16,"span"),t._uU(17),t.ALo(18,"translate"),t.qZA()(),t.TgZ(19,"td"),t._uU(20),t.YNc(21,pr,2,3,"span",35),t.ALo(22,"async"),t.qZA(),t.TgZ(23,"td")(24,"imx-tooltip",36),t.ALo(25,"readI18n"),t.ALo(26,"languageNames"),t._UZ(27,"imx-language-flag",37),t.qZA()(),t.TgZ(28,"td"),t._UZ(29,"imx-entity-state",38),t.qZA(),t.TgZ(30,"td",39)(31,"imx-dropup-button")(32,"imx-search-list-action-menu",13),t.NdJ("executeAction",function(V){const An=t.CHM(f).$implicit,Qo=t.oxw(3);return t.KtG(Qo.executeRowAction(V,An))}),t.ynx(33,40),t.TgZ(34,"imx-action-menu-item",41),t._uU(35,"imxplatform.common-entity.list.edit"),t.qZA(),t.BQk(),t.ynx(36,14),t.YNc(37,Pr,2,1,"imx-action-menu-item",42),t.TgZ(38,"imx-action-menu-item",43),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3);return t.KtG(An.executeReferencesAction(An.getEntityName(),Xe.id))}),t._uU(39,"imxplatform.common-entity.list.references"),t.qZA(),t.BQk(),t.qZA()()()()}if(2&A){const f=Gt.$implicit,L=t.oxw(3);t.Q6J("ngClass",t.VKq(39,xa,L.isItemSelected(f.id))),t.uIk("data-scroll-id",f.id),t.xp6(2),t.Q6J("value",f.id)("checked",L.isItemSelected(f.id)),t.xp6(2),t.Oqu(f.id),t.xp6(),t.Q6J("matTooltip",t.lcZ(6,25,f.title))("matTooltipShowDelay",500),t.xp6(2),t.Q6J("routerLink",t.VKq(41,tl,f.id)),t.xp6(3),t.hij(" ",t.lcZ(11,27,f.title)," "),t.xp6(3),t.Q6J("ngIf",f.types&&f.types.length>0),t.xp6(),t.Q6J("matTooltip",t.lcZ(15,29,"entity."+L.determineEntityType(f)+".entityName"))("matTooltipShowDelay",500),t.xp6(3),t.Oqu(t.lcZ(18,31,"entity."+L.determineEntityType(f)+".entityName")),t.xp6(3),t.hij(" ",null==f.client?null:f.client.name," "),t.xp6(),t.Q6J("ngIf",t.lcZ(22,33,L.isOutsideCurrentClientHierachy(null==f||null==f.client?null:f.client.id))),t.xp6(3),t.Q6J("tooltipText",t.lcZ(25,35,t.lcZ(26,37,f.languages)))("offset",300),t.xp6(3),t.Q6J("languages",f.languages)("inline",!0),t.xp6(2),t.Q6J("key",null==f||null==f.entityState?null:f.entityState.key),t.xp6(3),t.Q6J("actions",null==L.actionProvider?null:L.actionProvider.getRowActionsForType(L.getEntityName(),f.id)),t.xp6(2),t.Q6J("icon","icon-pencil")("routerLink",t.VKq(43,tl,f.id)),t.xp6(3),t.Q6J("ngIf",L.hasHistoryPermission()),t.xp6(),t.Q6J("icon","icon-link")}}function Ts(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"p-table",22),t.YNc(2,Mn,2,1,"ng-template",23)(3,Ls,40,45,"ng-template",24),t.qZA(),t.BQk()),2&A){const f=t.oxw().ngIf;t.xp6(),t.Q6J("value",f.items)("resizableColumns",!0)}}function _s(A,Gt){if(1&A&&(t.TgZ(0,"div",20),t.YNc(1,Ts,4,2,"ng-container",21),t.qZA()),2&A){const f=Gt.ngIf;t.oxw();const L=t.MAs(9);t.xp6(),t.Q6J("ngIf",f.items.length>0)("ngIfElse",L)}}function ul(A,Gt){if(1&A&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"span",48),t._uU(4),t.qZA()(),t._UZ(5,"span",49)),2&A){const f=t.oxw();t.xp6(),t.hij("",t.lcZ(2,2,"imxplatform.common-entity.list.selected-items")," "),t.xp6(3),t.hij("(",null==f.selectedIds?null:f.selectedIds.size,")")}}let qs=(()=>{class A extends Ec{constructor(f,L,V,Xe,An,Qo,Dr,es,Al,Rl,$l,kl,Jl,od,dm,Ku){super(f,L,V,Xe,An,Qo,Dr,es,void 0,$l,Al,Rl,kl,Jl,od,{},!0),this.entityCollectionsService=dm,this.dataAccessService=Ku,this.imxPermissions=i.uo,this.addressPoiTypeMap=new Map,this.availableOrderFields=[{index:1,field:"TITLE",i18n:"entity.AddressPoi.title",type:an.m.alphanumeric},{index:2,field:"ID",i18n:"entity.AddressPoi.id",type:an.m.numeric},{index:3,field:"CITY",i18n:"entity.AddressPoi.location",type:an.m.alphanumeric},{index:4,field:"CREATION_TIME",i18n:"imxplatform.common-entity.list.sort.creationTime",type:an.m.numeric},{index:5,field:"LAST_CHANGE",i18n:"imxplatform.common-entity.list.sort.lastChange",type:an.m.numeric},{index:6,field:"LAST_CHANGE_FROM",i18n:"imxplatform.common-entity.list.sort.lastChangeFrom",type:an.m.alphanumeric}],this.columnDefinitions=[{field:"select",header:"",width:"40px",cssClass:"select-column"},{field:"id",header:"ID",width:"70px"},{field:"title",header:"entity.AddressPoi.title",width:"50%"},{field:"type",header:"imxplatform.addresspoi.compact.address-poi-type",width:"130px"},{field:"entityType",header:"imxplatform.addresspoi.compact.entity-type",width:"130px"},{field:"client",header:"entity.AddressPoi.client",width:"130px"},{field:"languages",header:"entity.AddressPoi.languages",width:"100px"},{field:"entity-state",header:"entity.AddressPoi.state",width:"20%"},{field:"action",header:"",width:"50px",cssClass:"action-column"}]}ngOnInit(){super.ngOnInit(),this.entityCollectionsService.getAllAddressPoiTypes().subscribe(f=>f.forEach(L=>this.addressPoiTypeMap.set(L.id,L.i18nName)))}getEntityName(){return"AddressPoi"}getFilterParams(f){return this.dataAccessService.convertAddressPoiClientParamsToRequestParams(f)}determineEntityType(f){return f.AddressPoi_originalType?f.AddressPoi_originalType:this.getEntityName()}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(Xo.Q),t.Y36(l.F0),t.Y36(l.gz),t.Y36(c.Y),t.Y36(Wi.G),t.Y36(ae.uw),t.Y36(bt.Tp),t.Y36(sn.nq),t.Y36(Wr.Q),t.Y36(mo.h),t.Y36(i.Ze),t.Y36(mc.o),t.Y36(i.Xh),t.Y36(Ui.a),t.Y36(b.f),t.Y36(sn.nq))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],features:[t.qOj],decls:26,vars:26,consts:[[1,"search-page"],[3,"formHandler","record","orderFields","orderField","orderDirection","enableCreateContactListOption","orderChanged","applyFilter","resetFilter"],[3,"totalNumber","entityResourceKeyPrefix","isCompactPageHeader","reload"],["list-header-button-row",""],[3,"export",4,"hasAnyPermission"],[3,"entityRoute","entityResourceKeyPrefix",4,"hasAnyPermission"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],["class","table-wrapper",4,"ngIf","ngIfElse"],[3,"paging","selection","pageChanged","selectAll"],["position","above","halign","start"],["imx-dropup-trigger",""],[3,"actions","executeAction"],["search-list-action-menu-middle",""],[3,"icon","actionClicked"],[3,"actionClicked"],[3,"export"],[3,"entityRoute","entityResourceKeyPrefix"],["mode","indeterminate"],[1,"table-wrapper"],[4,"ngIf","ngIfElse"],[1,"imx-datatable",3,"value","resizableColumns"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",3,"ngClass"],["imxGenericSelector","",3,"ngClass"],[1,"select-column"],[3,"value","checked","change"],[3,"matTooltip","matTooltipShowDelay"],[1,"txt-link",3,"routerLink"],[1,"badge"],[1,"icon-map-marker"],["class","types txt-default",4,"ngIf"],["class","icon icon-notificationType-Warning imx-icon-small outside-client",3,"matTooltip",4,"ngIf"],[3,"tooltipText","offset"],[3,"languages","inline"],[3,"key"],[1,"action-column"],["search-list-action-menu-top",""],[3,"icon","routerLink"],[3,"icon","click",4,"ngIf"],[3,"icon","click"],[1,"types","txt-default"],[3,"matTooltip","matTooltipShowDelay",4,"ngFor","ngForOf"],[1,"separator"],[1,"icon","icon-notificationType-Warning","imx-icon-small","outside-client",3,"matTooltip"],[1,"selected-size"],[1,"icon-chevron-down"]],template:function(L,V){if(1&L&&(t.TgZ(0,"div",0)(1,"imx-address-poi-filter",1),t.NdJ("orderChanged",function(An){return V.sort(An)})("applyFilter",function(An){return V.search(An)})("resetFilter",function(){return V.reset()}),t.qZA(),t.TgZ(2,"imx-list-header",2),t.NdJ("reload",function(){return V.reloadComplete()}),t.ynx(3,3),t.YNc(4,nl,1,0,"imx-statistics-button",4)(5,hl,1,2,"imx-create-new-entity-button",5),t.BQk(),t.qZA(),t.TgZ(6,"imx-grid")(7,"imx-grid-element",6),t.YNc(8,Cc,2,0,"ng-template",null,7,t.W1O)(10,Zt,1,0,"ng-template",null,8,t.W1O)(12,_s,2,2,"div",9),t.ALo(13,"async"),t.qZA()(),t.TgZ(14,"imx-list-footer",10),t.NdJ("pageChanged",function(An){return V.onPageChanged(An)})("selectAll",function(An){return V.onSelectAll(An)}),t.TgZ(15,"imx-dropup-button",11),t.YNc(16,ul,6,4,"ng-template",12),t.TgZ(17,"imx-search-list-action-menu",13),t.NdJ("executeAction",function(An){return V.executeBatchAction(An)}),t.ynx(18,14),t.TgZ(19,"imx-action-menu-item",15),t.NdJ("actionClicked",function(){return V.addToObjectList()}),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"imx-action-menu-item-create-contact-list",16),t.NdJ("actionClicked",function(){return V.proposeSelectedIdsAsContactList()}),t.qZA(),t.TgZ(23,"imx-action-menu-item",15),t.NdJ("actionClicked",function(){return V.exportStatisticsOnSelectedIds()}),t._uU(24),t.ALo(25,"translate"),t.qZA(),t.BQk(),t.qZA()()()()),2&L){const Xe=t.MAs(11);t.xp6(),t.Q6J("formHandler",V.filterFormHandler)("record",V.filter)("orderFields",V.availableOrderFields)("orderField",V.orderField)("orderDirection",V.orderDirection)("enableCreateContactListOption",!0),t.xp6(),t.Q6J("totalNumber",null==V.currentResult?null:V.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxplatform.addresspoi")("isCompactPageHeader",!0),t.xp6(2),t.Q6J("hasAnyPermission",V.imxPermissions.F_STAT_ADDRESSPOI_EXPORT.name),t.xp6(),t.Q6J("hasAnyPermission",V.imxPermissions.F_ADDRESSPOI_CREATE.name),t.xp6(7),t.Q6J("ngIf",t.lcZ(13,20,V.results))("ngIfElse",Xe),t.xp6(2),t.Q6J("paging",V.pagingModel)("selection",V.selectionModel),t.xp6(3),t.Q6J("actions",null==V.actionProvider?null:V.actionProvider.getBatchActionsForType(V.getEntityName())),t.xp6(2),t.Q6J("icon","icon-star--add"),t.xp6(),t.hij(" ",t.lcZ(21,22,"imxplatform.entity-list.object-list.action-title")," "),t.xp6(3),t.Q6J("icon","icon-pie-chart"),t.xp6(),t.hij(" ",t.lcZ(25,24,"imxplatform.common.export")," ")}},dependencies:[e.mk,e.sg,e.O5,ya.oG,Ft.pW,qi.gM,l.rH,wi.iA,zo.jx,wi.Q7,ki.z,wo.t,gr.F,On.M,_n.V,Js.J,ho.K,Ms.$,ma,Bs.r,Wa.n,Yi.l,jo.N,Cn._,uo.A,yl.E,yr.R,kn.F,Fr.l,e.Ov,Y.X$,fo.O,ue.j],styles:["[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}"]})}return A})();var Ks=a(35922),pl=a(32786);function nc(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-statistics-button",19),t.NdJ("export",function(){t.CHM(f);const V=t.oxw();return t.KtG(V.exportStatistics())}),t.qZA()}}function Mi(A,Gt){1&A&&t._UZ(0,"imx-create-new-entity-button",20),2&A&&t.Q6J("entityRoute","/addresspois")("entityResourceKeyPrefix","imxplatform.addresspoi")}function or(A,Gt){1&A&&(t.TgZ(0,"imx-list-no-results"),t._uU(1,"imxplatform.addresspoi.list.no-records"),t.qZA())}function Ki(A,Gt){1&A&&t._UZ(0,"mat-progress-bar",21)}function Ao(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-action-menu-item",32),t.NdJ("click",function(){t.CHM(f);const V=t.oxw().$implicit,Xe=t.oxw(3);return t.KtG(Xe.executeHistoryAction(Xe.getEntityName(),V.id))}),t._uU(1," imxplatform.common-entity.list.history "),t.qZA()}2&A&&t.Q6J("icon","icon-compare")}const Go=A=>({selected:A}),dr=A=>["edit",A];function pn(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"mat-list-item",23)(1,"div",24)(2,"imx-list-row-selection",25),t.NdJ("selectionChanged",function(V){t.CHM(f);const Xe=t.oxw(3);return t.KtG(Xe.onSelectionChanged(V))}),t.qZA(),t.TgZ(3,"div",26)(4,"imx-list-row",27),t.NdJ("slideInEvent",function(V){t.CHM(f);const Xe=t.oxw(3);return t.KtG(Xe.dispatchSlideEvent(V))}),t.qZA()(),t.TgZ(5,"div",28)(6,"imx-dropup-button")(7,"imx-search-list-action-menu",13),t.NdJ("executeAction",function(V){const An=t.CHM(f).$implicit,Qo=t.oxw(3);return t.KtG(Qo.executeRowAction(V,An))}),t.ynx(8,29),t.TgZ(9,"imx-action-menu-item",30),t._uU(10," imxplatform.common-entity.list.edit "),t.qZA(),t.BQk(),t.ynx(11,14),t.YNc(12,Ao,2,1,"imx-action-menu-item",31),t.TgZ(13,"imx-action-menu-item",32),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3);return t.KtG(An.executeReferencesAction(An.getEntityName(),Xe.id))}),t._uU(14,"imxplatform.common-entity.list.references"),t.qZA(),t.BQk(),t.qZA()(),t._UZ(15,"imx-entity-state",33),t.qZA()()()}if(2&A){const f=Gt.$implicit,L=t.oxw(3),V=t.MAs(28);t.uIk("data-scroll-id",f.id),t.xp6(),t.Q6J("ngClass",t.VKq(16,Go,L.isItemSelected(f.id))),t.xp6(),t.Q6J("id",f.id)("checked",L.isItemSelected(f.id))("blockedByAction",L.isBlockedByAction(f.id)),t.xp6(2),t.Q6J("dataObject",f)("memoCount",L.getMemoCount(f.id))("isActiveSlideIn",L.isActiveSlideIn)("leftSlotTemplate",V)("isAddressPoi",!0),t.xp6(3),t.Q6J("actions",null==L.actionProvider?null:L.actionProvider.getRowActionsForType(L.getEntityName(),f.id)),t.xp6(2),t.Q6J("routerLink",t.VKq(18,dr,f.id)),t.xp6(3),t.Q6J("ngIf",L.hasHistoryPermission()),t.xp6(),t.Q6J("icon","icon-link"),t.xp6(2),t.Q6J("key",f.entityState.key)("inline",!1)}}function bo(A,Gt){if(1&A&&(t.TgZ(0,"mat-list"),t.YNc(1,pn,16,20,"mat-list-item",22),t.qZA()),2&A){const f=t.oxw().ngIf,L=t.oxw();t.xp6(),t.Q6J("ngForOf",f.items)("ngForTrackBy",L.trackByItemId)}}function nt(A,Gt){if(1&A&&(t.TgZ(0,"div"),t.YNc(1,bo,2,2,"mat-list",9),t.qZA()),2&A){const f=Gt.ngIf;t.oxw();const L=t.MAs(10);t.xp6(),t.Q6J("ngIf",f.items.length>0)("ngIfElse",L)}}function Sn(A,Gt){if(1&A&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"span",34),t._uU(4),t.qZA()(),t._UZ(5,"span",35)),2&A){const f=t.oxw();t.xp6(),t.hij("",t.lcZ(2,2,"imxplatform.common-entity.list.selected-items")," "),t.xp6(3),t.hij("(",null==f.selectedIds?null:f.selectedIds.size,")")}}function fi(A,Gt){if(1&A&&(t.TgZ(0,"span",44),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"span",45),t._uU(4),t.qZA()()),2&A){const f=t.oxw().dataObject;t.xp6(),t.hij("",t.lcZ(2,2,"entity.Addressbase.masterAddressPoiId"),": "),t.xp6(3),t.Oqu(f.masterAddressPoiId)}}function $i(A,Gt){if(1&A&&(t.TgZ(0,"span",44),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&A){const f=t.oxw().ngIf;t.xp6(),t.Oqu(t.lcZ(2,1,"entity."+f+".entityName"))}}function No(A,Gt){if(1&A&&(t.TgZ(0,"span",44),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&A){const f=t.oxw().ngIf;t.xp6(),t.hij("",t.lcZ(2,1,"entity."+f+".type"),": ")}}function Ar(A,Gt){1&A&&(t.TgZ(0,"span",48),t._uU(1,","),t.qZA())}function xr(A,Gt){if(1&A&&(t.TgZ(0,"span",44),t._uU(1),t.ALo(2,"readI18n"),t.YNc(3,Ar,2,0,"span",47),t.qZA()),2&A){const f=Gt.$implicit,L=Gt.last,V=t.oxw(2).dataObject,Xe=t.oxw();t.xp6(),t.hij(" ",t.lcZ(2,2,Xe.addressPoiTypeMap.get(f.id))," "),t.xp6(2),t.Q6J("ngIf",!L&&V.types.length>1)}}function Sr(A,Gt){if(1&A&&(t.ynx(0),t.YNc(1,$i,3,3,"span",40),t.TgZ(2,"div"),t.YNc(3,No,3,3,"span",40)(4,xr,4,4,"span",46),t.qZA(),t.BQk()),2&A){const f=Gt.ngIf,L=t.oxw().dataObject;t.xp6(),t.Q6J("ngIf","Addressbase"===f),t.xp6(2),t.Q6J("ngIf",L.types.length>0),t.xp6(),t.Q6J("ngForOf",L.types)}}function ns(A,Gt){if(1&A&&(t.TgZ(0,"a",36),t._uU(1),t.ALo(2,"readI18n"),t.qZA(),t.TgZ(3,"div",37)(4,"div",38),t._UZ(5,"imx-row-id-view",39),t.YNc(6,fi,5,4,"span",40),t._UZ(7,"imx-row-client-view",41),t.TgZ(8,"div",42),t._UZ(9,"imx-row-address-view",39),t.qZA()(),t.TgZ(10,"div",38),t.YNc(11,Sr,5,3,"ng-container",43),t.qZA()()),2&A){const f=Gt.dataObject,L=t.oxw();t.Q6J("routerLink",t.VKq(10,dr,f.id)),t.xp6(),t.hij(" ",t.lcZ(2,8,f.title)," "),t.xp6(4),t.Q6J("dataObject",f),t.xp6(),t.Q6J("ngIf",f.masterAddressPoiId),t.xp6(),t.Q6J("dataObject",f)("outsideCurrentClientHierachy$",L.isOutsideCurrentClientHierachy(null==f||null==f.client?null:f.client.id)),t.xp6(2),t.Q6J("dataObject",f),t.xp6(2),t.Q6J("ngIf",L.determineEntityType(f))}}let Tl=(()=>{class A extends Ec{constructor(f,L,V,Xe,An,Qo,Dr,es,Al,Rl,$l,kl,Jl,od,dm,Ku){super(f,L,V,Xe,An,Qo,es,Al,void 0,kl,Rl,$l,Jl,od,Dr,{},!0),this.entityCollectionsService=dm,this.dataAccessService=Ku,this.imxPermissions=i.uo,this.addressPoiTypeMap=new Map,this.availableOrderFields=[{index:1,field:"TITLE",i18n:"entity.AddressPoi.title",type:an.m.alphanumeric},{index:2,field:"ID",i18n:"entity.AddressPoi.id",type:an.m.numeric},{index:3,field:"CITY",i18n:"entity.AddressPoi.location",type:an.m.alphanumeric},{index:4,field:"CREATION_TIME",i18n:"imxplatform.common-entity.list.sort.creationTime",type:an.m.numeric},{index:5,field:"LAST_CHANGE",i18n:"imxplatform.common-entity.list.sort.lastChange",type:an.m.numeric},{index:6,field:"LAST_CHANGE_FROM",i18n:"imxplatform.common-entity.list.sort.lastChangeFrom",type:an.m.alphanumeric}]}ngOnInit(){super.ngOnInit(),this.entityCollectionsService.getAllAddressPoiTypes().subscribe(f=>f.forEach(L=>this.addressPoiTypeMap.set(L.id,L.i18nName)))}getFilterParams(f){return this.dataAccessService.convertAddressPoiClientParamsToRequestParams(f)}getEntityName(){return"AddressPoi"}showMemos(){return!0}determineEntityType(f){return f.AddressPoi_originalType?f.AddressPoi_originalType:this.getEntityName()}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(Xo.Q),t.Y36(l.F0),t.Y36(l.gz),t.Y36(c.Y),t.Y36(Wi.G),t.Y36(ae.uw),t.Y36(Ui.a),t.Y36(bt.Tp),t.Y36(sn.nq),t.Y36(Wr.Q),t.Y36(mo.h),t.Y36(i.Ze),t.Y36(mc.o),t.Y36(i.Xh),t.Y36(b.f),t.Y36(sn.nq))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],features:[t.qOj],decls:29,vars:24,consts:[[1,"search-page"],[3,"formHandler","record","orderFields","orderField","orderDirection","enableCreateContactListOption","orderChanged","applyFilter","resetFilter"],[3,"totalNumber","entityResourceKeyPrefix","reload"],["list-header-button-row",""],[3,"export",4,"hasAnyPermission"],[3,"entityRoute","entityResourceKeyPrefix",4,"hasAnyPermission"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],[4,"ngIf","ngIfElse"],[3,"paging","selection","pageChanged","selectAll"],["position","above","halign","start"],["imx-dropup-trigger",""],[3,"actions","executeAction"],["search-list-action-menu-middle",""],["icon","icon-star--add",3,"actionClicked"],[3,"actionClicked"],[3,"icon","actionClicked"],["addressPoiLeftSlotTemplate",""],[3,"export"],[3,"entityRoute","entityResourceKeyPrefix"],["mode","indeterminate"],["class","list__item","imxGenericSelector","",4,"ngFor","ngForOf","ngForTrackBy"],["imxGenericSelector","",1,"list__item"],[1,"list__row-wrapper",3,"ngClass"],[3,"id","checked","blockedByAction","selectionChanged"],[1,"list__row"],[3,"dataObject","memoCount","isActiveSlideIn","leftSlotTemplate","bottomSlotTemplate","isAddressPoi","slideInEvent"],[1,"list__row-action"],["search-list-action-menu-top",""],["icon","icon-pencil",3,"routerLink"],[3,"icon","click",4,"ngIf"],[3,"icon","click"],[3,"key","inline"],[1,"selected-size"],[1,"icon-chevron-down"],[1,"txt-bg","title_shortened",3,"routerLink"],[1,"leftSlotTemplate__container"],[1,"leftSlotTemplate__container__column"],[3,"dataObject"],["class","txt-grey",4,"ngIf"],[3,"dataObject","outsideCurrentClientHierachy$"],[1,"address-block"],[4,"ngIf"],[1,"txt-grey"],[1,"txt-default"],["class","txt-grey",4,"ngFor","ngForOf"],["class","separator",4,"ngIf"],[1,"separator"]],template:function(L,V){if(1&L&&(t.TgZ(0,"div",0)(1,"imx-address-poi-filter",1),t.NdJ("orderChanged",function(An){return V.sort(An)})("applyFilter",function(An){return V.search(An)})("resetFilter",function(){return V.reset()}),t.qZA(),t.TgZ(2,"imx-list-header",2),t.NdJ("reload",function(){return V.reloadComplete()}),t.ynx(3,3),t.YNc(4,nc,1,0,"imx-statistics-button",4)(5,Mi,1,2,"imx-create-new-entity-button",5),t.BQk(),t.qZA(),t.TgZ(6,"imx-grid")(7,"imx-grid-element",6)(8,"imx-generic-slide-in-page"),t.YNc(9,or,2,0,"ng-template",null,7,t.W1O)(11,Ki,1,0,"ng-template",null,8,t.W1O)(13,nt,2,2,"div",9),t.ALo(14,"async"),t.qZA()()(),t.TgZ(15,"imx-list-footer",10),t.NdJ("pageChanged",function(An){return V.onPageChanged(An)})("selectAll",function(An){return V.onSelectAll(An)}),t.TgZ(16,"imx-dropup-button",11),t.YNc(17,Sn,6,4,"ng-template",12),t.TgZ(18,"imx-search-list-action-menu",13),t.NdJ("executeAction",function(An){return V.executeBatchAction(An)}),t.ynx(19,14),t.TgZ(20,"imx-action-menu-item",15),t.NdJ("actionClicked",function(){return V.addToObjectList()}),t._uU(21),t.ALo(22,"translate"),t.qZA(),t.TgZ(23,"imx-action-menu-item-create-contact-list",16),t.NdJ("actionClicked",function(){return V.proposeSelectedIdsAsContactList()}),t.qZA(),t.TgZ(24,"imx-action-menu-item",17),t.NdJ("actionClicked",function(){return V.exportStatisticsOnSelectedIds()}),t._uU(25),t.ALo(26,"translate"),t.qZA(),t.BQk(),t.qZA()()()(),t.YNc(27,ns,12,12,"ng-template",null,18,t.W1O)),2&L){const Xe=t.MAs(12);t.xp6(),t.Q6J("formHandler",V.filterFormHandler)("record",V.filter)("orderFields",V.availableOrderFields)("orderField",V.orderField)("orderDirection",V.orderDirection)("enableCreateContactListOption",!0),t.xp6(),t.Q6J("totalNumber",null==V.currentResult?null:V.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxplatform.addresspoi"),t.xp6(2),t.Q6J("hasAnyPermission",V.imxPermissions.F_STAT_ADDRESSPOI_EXPORT.name),t.xp6(),t.Q6J("hasAnyPermission",V.imxPermissions.F_ADDRESSPOI_CREATE.name),t.xp6(8),t.Q6J("ngIf",t.lcZ(14,18,V.results))("ngIfElse",Xe),t.xp6(2),t.Q6J("paging",V.pagingModel)("selection",V.selectionModel),t.xp6(3),t.Q6J("actions",null==V.actionProvider?null:V.actionProvider.getBatchActionsForType(V.getEntityName())),t.xp6(3),t.hij(" ",t.lcZ(22,20,"imxplatform.entity-list.object-list.action-title")," "),t.xp6(3),t.Q6J("icon","icon-pie-chart"),t.xp6(),t.hij(" ",t.lcZ(26,22,"imxplatform.common.export")," ")}},dependencies:[e.mk,e.sg,e.O5,ba.i$,ba.Tg,Ft.pW,l.rH,ki.z,wo.t,gr.F,On.M,_n.V,Js.J,Ms.$,ma,Bs.r,Wa.n,Bt.Ee,jo.N,Cn._,uo.A,Ss.Y,Ks.V,Ca.w,pl._,Ia.k,yl.E,yr.R,kn.F,Fr.l,e.Ov,Y.X$,ue.j],styles:["[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.list__row[_ngcontent-%COMP%]{background:#fff;border:.5px solid #ced4e0;box-sizing:border-box;width:100%;padding:20px;z-index:1}@media (max-width: 900px){.list__row[_ngcontent-%COMP%]{padding:10px}}.list__row-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;box-sizing:border-box;position:relative;height:inherit}.list__row-wrapper.selected[_ngcontent-%COMP%]   .list__row[_ngcontent-%COMP%]{background-color:#eefafa}.list__row-action[_ngcontent-%COMP%]{min-width:45px;min-height:100%;display:flex;flex-direction:column;padding-left:5px;text-align:center;position:relative;z-index:1}@media (max-width: 900px){.list__row-action[_ngcontent-%COMP%]{min-width:30px;padding-left:2px}}.list__row-checkbox[_ngcontent-%COMP%]{margin:auto 5px auto 0}.types[_ngcontent-%COMP%]{margin-top:10px}.types[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:last-child   .separator[_ngcontent-%COMP%]{display:none}.leftSlotTemplate__container[_ngcontent-%COMP%]{display:flex}.leftSlotTemplate__container[_ngcontent-%COMP%]   .leftSlotTemplate__container__column[_ngcontent-%COMP%]{flex:50%}.leftSlotTemplate__container[_ngcontent-%COMP%]   .address-block[_ngcontent-%COMP%]{margin-top:3px}"]})}return A})();var Fs=a(48938),il=a(31252),ac=a(4938),Nl=a(53256),em=a(5490),Kl=a(36330),xl=a(93495),ll=a(47378);const tm=A=>({clientIds:A});function Nc(A,Gt){if(1&A&&t._UZ(0,"imx-autocomplete",17),2&A){const f=t.oxw(3);t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("articleUser"))("formHandler",f.formHandler)("control",f.formHandler.formGroup.controls.articleUser)("autocompleteService",f.userAutocompleteService)("autocompleteFilter",t.VKq(6,tm,null==f.clientAndParentClientIds?null:f.clientAndParentClientIds.join(",")))("disableControl",!f.hasAssignUserPermission()||null==f.formHandler.getFormValue("client"))}}function Dd(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(4);return t.KtG(V.resetAssignedUser())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&A&&(t.xp6(),t.hij(" ",t.lcZ(2,1,"imxplatform.common.reset")," "))}function _c(A,Gt){if(1&A&&(t.TgZ(0,"div"),t.YNc(1,Dd,3,3,"button",18),t.qZA()),2&A){const f=t.oxw(3);t.xp6(),t.Q6J("hasFieldWritePermission","articleUser")("hasFieldWritePermissionFormHandler",f.formHandler)}}function wc(A,Gt){if(1&A&&(t.TgZ(0,"div",14),t.YNc(1,Nc,1,8,"imx-autocomplete",15)(2,_c,2,2,"div",16),t.qZA()),2&A){const f=t.oxw(2);t.xp6(),t.Q6J("hasFieldReadPermission","articleUser")("hasFieldReadPermissionFormHandler",f.formHandler),t.xp6(),t.Q6J("ngIf",f.hasAssignUserPermission())}}function nm(A,Gt){if(1&A&&(t.TgZ(0,"div",11)(1,"h3",2),t._uU(2,"imxplatform.article.edit.panels.base-data.client-group"),t.qZA(),t._UZ(3,"imx-edit-client",12),t.YNc(4,wc,3,3,"div",13),t.qZA()),2&A){const f=t.oxw();t.xp6(3),t.Q6J("formHandler",f.formHandler)("feasibleClients",f.feasibleClients)("rootClients",f.rootClients),t.xp6(),t.Q6J("ngIf",f.formHandler.formConfiguration.findFormFieldById("articleUser"))}}function Id(A,Gt){1&A&&t.GkF(0)}function Ns(A,Gt){1&A&&t.GkF(0)}const Uc=()=>({$implicit:"link"}),dn=()=>({$implicit:"linkText"});function Mr(A,Gt){if(1&A&&(t.TgZ(0,"div",11)(1,"h3",2),t._uU(2,"imxplatform.article.edit.panels.base-data.additional-info"),t.qZA(),t.TgZ(3,"div",20),t.YNc(4,Id,1,0,"ng-container",21)(5,Ns,1,0,"ng-container",21),t.qZA()()),2&A){t.oxw();const f=t.MAs(18);t.xp6(4),t.Q6J("ngTemplateOutlet",f)("ngTemplateOutletContext",t.DdM(4,Uc)),t.xp6(),t.Q6J("ngTemplateOutlet",f)("ngTemplateOutletContext",t.DdM(5,dn))}}function mn(A,Gt){if(1&A&&(t.TgZ(0,"div",4)(1,"div",11)(2,"h3",2),t._uU(3,"imxplatform.common-entity.edit.panels.base-data.extended-attributes"),t.qZA(),t._UZ(4,"imx-edit-extended-attributes",22),t.qZA()()),2&A){const f=t.oxw();t.xp6(4),t.Q6J("formHandler",f.formHandler)("formGroup",f.formHandler.formGroup)("record",f.record)("extendedAttributes",f.extendedAttributesForCoreDateObject)}}function Nn(A,Gt){if(1&A&&t._UZ(0,"imx-edit-social-media",23),2&A){const f=t.oxw();t.Q6J("formHandler",f.formHandler)("socialMediaDataSource",f.socialMediaDataSource)("socialMediaColumns",f.socialMediaColumns)}}function Ci(A,Gt){if(1&A&&t._UZ(0,"imx-form-control",24),2&A){const f=Gt.$implicit,L=t.oxw();t.Q6J("field",L.formHandler.formConfiguration.findFormFieldById(f))("control",L.formHandler.formGroup.get(f))("form",L.formHandler.formGroup)("formHandler",L.formHandler)("config",L.formHandler.formConfiguration)}}const Io=()=>["client","articleUser"],cr=()=>["link","linkText"];let ra=(()=>{class A extends j{constructor(f,L,V,Xe,An,Qo,Dr){super(f,L,V),this.runtimeContext=f,this.entitiesMgr=L,this.dialog=V,this.collectionsService=Xe,this.platformDataAccessService=An,this.changeDetectorRef=Qo,this.userAutocompleteService=Dr}ngOnInit(){super.ngOnInit(),this.socialMediaDataSource=this.prepareTable(this.formHandler.formGroup.get("socialMedia"),f=>this.socialMediaDataSource=f),this.socialMediaColumns=this.determineTableColumns("socialMedia")}getUniquePermalink(f,L){return this.platformDataAccessService.suggestPermaLinkForArticle(f,L)}filterProductlineFn(f){return f.articleDetails&&Object.keys(f.articleDetails).length>0}hasAssignUserPermission(){return this.formHandler.hasArticleAssignUserPermission()}resetAssignedUser(){this.formHandler.formGroup.get("articleUser")&&this.formHandler.formGroup.get("articleUser").setValue(void 0)}determineFeasibleClients(){return this.formHandler.getFormValue("articleUser")&&!this.hasAssignUserPermission()?this.entitiesMgr.getEntityWithIdOfType("User",this.formHandler.getFormValue("articleUser")).pipe((0,O.w)(f=>this.getClientHierarchy(f.client.id,!0))):super.determineFeasibleClients()}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(i.Ze),t.Y36(i.qB),t.Y36(ae.uw),t.Y36(b.f),t.Y36(sn.nq),t.Y36(t.sBO),t.Y36(il.v))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-article-base-data-form-panel"]],hostAttrs:[1,"imx-article-base-data-form-panel"],features:[t.qOj],decls:19,vars:20,consts:[[1,"form__content-panel","basicdata"],["id","basicdata",1,"anchor"],["translate",""],[3,"formHandler","suggestPermaLink","editObjectLanguages"],[1,"form__content-row"],["class","form__content-group",4,"hasAnyFieldReadPermission","hasAnyFieldReadPermissionFormHandler"],[3,"formHandler"],["class","form__content-row",4,"ngIf"],[3,"formHandler","socialMediaDataSource","socialMediaColumns",4,"ngIf"],[3,"formHandler","filterProductlineFn"],["imxControl",""],[1,"form__content-group"],[3,"formHandler","feasibleClients","rootClients"],["class","user",4,"ngIf"],[1,"user"],[3,"field","formHandler","control","autocompleteService","autocompleteFilter","disableControl",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[4,"ngIf"],[3,"field","formHandler","control","autocompleteService","autocompleteFilter","disableControl"],["class","imx-button prio2",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"imx-button","prio2",3,"click"],[1,"form__content-field-row","wrap-sm"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"formHandler","formGroup","record","extendedAttributes"],[3,"formHandler","socialMediaDataSource","socialMediaColumns"],[3,"field","control","form","formHandler","config"]],template:function(L,V){1&L&&(t.TgZ(0,"div",0),t._UZ(1,"div",1),t.TgZ(2,"h2",2),t._uU(3,"imxplatform.common-entity.edit.panels.base-data.title"),t.qZA(),t.TgZ(4,"imx-edit-titles",3),t.NdJ("suggestPermaLink",function(){return V.suggestPermaLink()})("editObjectLanguages",function(){return V.onEditObjectLanguage()}),t.qZA(),t.TgZ(5,"div",4),t.YNc(6,nm,5,4,"div",5),t.qZA(),t._UZ(7,"imx-edit-seo",6),t.TgZ(8,"div",4),t.YNc(9,Mr,6,6,"div",5),t.qZA(),t._UZ(10,"imx-edit-origin",6),t.YNc(11,mn,5,4,"div",7),t.ALo(12,"async"),t.ALo(13,"async"),t.YNc(14,Nn,1,3,"imx-edit-social-media",8),t.ALo(15,"async"),t._UZ(16,"imx-edit-productlines",9),t.qZA(),t.YNc(17,Ci,1,5,"ng-template",null,10,t.W1O)),2&L&&(t.xp6(),t.uIk("data-scroll-id","basicdata"),t.xp6(3),t.Q6J("formHandler",V.formHandler),t.xp6(2),t.Q6J("hasAnyFieldReadPermission",t.DdM(18,Io))("hasAnyFieldReadPermissionFormHandler",V.formHandler),t.xp6(),t.Q6J("formHandler",V.formHandler),t.xp6(2),t.Q6J("hasAnyFieldReadPermission",t.DdM(19,cr))("hasAnyFieldReadPermissionFormHandler",V.formHandler),t.xp6(),t.Q6J("formHandler",V.formHandler),t.xp6(),t.Q6J("ngIf",t.lcZ(12,12,V.extendedAttributesForCoreDataObjectAvailable)&&t.lcZ(13,14,V.formHandler.hasReadPermission("attributeDefinitions"))),t.xp6(3),t.Q6J("ngIf",t.lcZ(15,16,V.formHandler.hasReadPermission("socialMedia"))),t.xp6(2),t.Q6J("formHandler",V.formHandler)("filterProductlineFn",V.filterProductlineFn))},dependencies:[e.O5,e.tP,x.JL,x.sg,Y.Pi,ac.Y,K.L,Nl.E,em.Q,Kl.r,xl.k,vt.d,ye,ee.A,at.l,Le.j,ll.X,e.Ov,Y.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}"],changeDetection:0})}return A})();var $a=a(45125),xe=a(23367);class h{constructor(Gt,f){this.entityBrowseHistoryStorageService=Gt,this.contactListService=f}resolve(Gt,f){const L=Number.parseInt(Gt.paramMap.get("id")||"",10);if(!Gt.paramMap.has("id")||Number.isNaN(L))return this.initCoreDataObject(Gt).pipe((0,m.U)(V=>V[this.getEntityType()]));{let V;const Xe=this.entityBrowseHistoryStorageService.get(this.getEntityType(),L);return V=Xe?(0,u.of)({_dirty:!0,...Xe}):this.getDataObjectById(L),V.pipe((0,m.U)(An=>{const Qo=this.contactListService.popContactListByRefObject(An);if(Qo){if(Qo.existingContactListId){const Dr=An.contactLists.find(es=>es.contactList.id===Qo.existingContactListId);Dr&&(Dr.contactList.entityType=Qo.entityType,Dr.contactList.listInfoClient=Qo.listInfoClient,Dr.contactList.user=Qo.user,Dr.contactList.listInfo="")}else An.contactLists.push({contactList:Qo});An._dirty=!0}return An}))}}}let k=(()=>{class A extends h{constructor(f,L,V){super(f,L),this.entityBrowseHistoryStorageService=f,this.contactListService=L,this.dataAccess=V}getEntityType(){return"AddressPoi"}getDataObjectById(f){return this.dataAccess.getAddressPoiById(f)}initCoreDataObject(f){return this.dataAccess.initAddressPoi()}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(_o.I),t.LFG(bs.V),t.LFG(sn.nq))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();var se=a(97564);function de(A,Gt){1&A&&(t.TgZ(0,"span"),t._uU(1," > "),t.qZA())}function Ae(A,Gt){if(1&A&&(t.ynx(0),t._uU(1),t.ALo(2,"readI18n"),t.BQk()),2&A){const f=t.oxw().$implicit;t.xp6(),t.Oqu(t.lcZ(2,1,f.i18nName))}}function Ct(A,Gt){if(1&A&&(t.ynx(0),t.YNc(1,de,2,0,"span",7)(2,Ae,3,3,"ng-container",7),t.BQk()),2&A){const f=Gt.$implicit,L=Gt.first;t.xp6(),t.Q6J("ngIf",f&&!L),t.xp6(),t.Q6J("ngIf",f)}}function wt(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"a",12),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(2);return t.KtG(V.deleteGeoInfoGeoPathsAndRemoveAllReferencesWithPurposeContactPurpose())}),t.qZA()}}function Mt(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"div",8)(2,"table")(3,"tr")(4,"td",9),t.YNc(5,Ct,3,2,"ng-container",10),t.ALo(6,"async"),t.qZA(),t.TgZ(7,"td",9),t.YNc(8,wt,1,0,"a",11),t.qZA()()()(),t.BQk()),2&A){const f=t.oxw();t.xp6(5),t.Q6J("ngForOf",t.lcZ(6,2,f.validGeoPath$)),t.xp6(3),t.Q6J("ngIf",f.validGeoPath$.value&&f.validGeoPath$.value.length)}}let fn=(()=>{class A extends B.C{constructor(f,L,V,Xe,An,Qo,Dr,es,Al,Rl){super(f,L),this.entitiesMgr=f,this.dialog=L,this.configurationProvider=V,this.runtimeContextService=Xe,this.registry=An,this.addressPoiService=Qo,this.imxPlatformDataAccessService=Dr,this.changeDetectorRef=es,this.collectionsService=Al,this.userMessageService=Rl,this.CONTACT_PURPOSE_ID=5,this.poiId=null,this.validGeoPath$=new $a.X([]),this.autocompleteControl=new x.p4,this.purposes=[]}ngOnInit(){super.ngOnInit(),this.collectionsService.getAllContactPurposes().subscribe(f=>{this.purposes=f})}get advancedRegionManagementEnabled(){return"true"==this.configurationProvider.getStringFromSnapshot(i.x3.PLATFORM_ADVANCED_REGION_MANAGEMENT_ENABLED,"false")}addresspoiDisplayFn(f){return f?f.representation:void 0}autoCompleteSelected(f){this.poiId=f.entityId}ngOnChanges(f){super.ngOnChanges(f),this.readValidGeoPath()}readValidGeoPath(){this.validGeoPath$.next(this.readGeoPathFromFormFields())}readGeoPathFromFormFields(){const f=[];return[1,2,3,4,5].forEach(L=>{const V=this.formHandler.formGroup.get(this._createGeoPathFieldName(L)).value;V&&f.push(V)}),f}_createGeoPathFieldName(f,L=!1){return"path"+f+"Region"+(L?"Id":"")}loadAddressPoiAndSetGeoInfoPathLevels(){this.poiId&&this.addressPoiService.getDataObjectById(this.poiId).subscribe(f=>{if(!f.geoInfo.path1RegionId)return void this.userMessageService.showError("imxplatform.common-entity.edit.panels.geo.geoPathAddressbaseSelection.geoPathNotAvailable");const L=this.formHandler.formGroup;L.get("path1RegionId").setValue(f.geoInfo.path1RegionId),L.get("path1Region").setValue(f.regions.find(V=>V.id===f.geoInfo.path1RegionId)??null),L.get("path2RegionId").setValue(f.geoInfo.path2RegionId),L.get("path2Region").setValue(f.regions.find(V=>V.id===f.geoInfo.path2RegionId)??null),L.get("path3RegionId").setValue(f.geoInfo.path3RegionId),L.get("path3Region").setValue(f.regions.find(V=>V.id===f.geoInfo.path3RegionId)??null),L.get("path4RegionId").setValue(f.geoInfo.path4RegionId),L.get("path4Region").setValue(f.regions.find(V=>V.id===f.geoInfo.path4RegionId)??null),L.get("path5RegionId").setValue(f.geoInfo.path5RegionId),L.get("path5Region").setValue(f.regions.find(V=>V.id===f.geoInfo.path5RegionId)??null),this.readValidGeoPath(),this.imxPlatformDataAccessService.createEntityList({name:f.title.de,entityType:"Addressbase",listType:H.E6.CONTACT_LIST,listInfo:"addressbaseIds="+f.id,user:this.runtimeContextService.getLoginUser()}).subscribe(V=>{this.removeAllReferencesWithPurpose();const Xe=this.formHandler.formConfiguration.findFormFieldById("contactLists"),An=this.formHandler.getObjectLanguages().map(es=>es.name),Qo=new x.nJ({}),Dr={};this.formHandler.addNewFormControlsForRow(Xe,Qo),Xe.children.forEach(es=>this.formHandler.transferFieldValueIncoming(es,Dr,{contactPurpose:{id:this.CONTACT_PURPOSE_ID},contactList:V},An,Qo)),Qo.patchValue(Dr),this.formHandler.formGroup.get("contactLists").push(Qo),this.changeDetectorRef.markForCheck()})})}deleteGeoInfoGeoPathsAndRemoveAllReferencesWithPurposeContactPurpose(){this.deleteGeoPath(),this.removeAllReferencesWithPurpose()}deleteGeoPath(){this.validGeoPath$.next([]);const f=this.formHandler.formGroup;f.get("path1RegionId").setValue(null),f.get("path1Region").setValue(null),f.get("path2RegionId").setValue(null),f.get("path2Region").setValue(null),f.get("path3RegionId").setValue(null),f.get("path3Region").setValue(null),f.get("path4RegionId").setValue(null),f.get("path4Region").setValue(null),f.get("path5RegionId").setValue(null),f.get("path5Region").setValue(null),this.changeDetectorRef.markForCheck()}removeAllReferencesWithPurpose(){const f=this.formHandler.formGroup.get("contactLists").controls.findIndex(L=>L.get("contactPurpose")&&this.CONTACT_PURPOSE_ID===L.get("contactPurpose").value);-1!==f&&(this.formHandler.removeLineFromCollection("contactLists",f),this.changeDetectorRef.markForCheck())}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(i.qB),t.Y36(ae.uw),t.Y36(i.Pc),t.Y36(i.Ze),t.Y36(xe.R),t.Y36(k),t.Y36(sn.nq),t.Y36(t.sBO),t.Y36(b.f),t.Y36(c.Y))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-article-geo-path-form-panel"]],hostAttrs:[1,"imx-article-geo-path-form-panel"],features:[t.qOj,t.TTD],decls:13,vars:10,consts:[[1,"form__content-panel"],[1,"form__content-row"],[1,"form__content-group"],["translate",""],[1,"form__content-field-row"],[3,"formControl","startAtChar","autocompleteService","autocompleteSelected"],[1,"imx-button","prio2","addButton",3,"disabled","click"],[4,"ngIf"],[1,"form__table"],[1,"action-column"],[4,"ngFor","ngForOf"],["class","icon icon-trash imx-icon-small imx-icon-clickable",3,"click",4,"ngIf"],[1,"icon","icon-trash","imx-icon-small","imx-icon-clickable",3,"click"]],template:function(L,V){1&L&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),t._uU(4,"imxplatform.common-entity.edit.panels.geo.geoPathAddressbaseSelection.title"),t.qZA(),t.TgZ(5,"div",4)(6,"imx-base-autocomplete",5),t.NdJ("autocompleteSelected",function(An){return V.autoCompleteSelected(An)}),t.qZA(),t.TgZ(7,"button",6),t.NdJ("click",function(){return V.loadAddressPoiAndSetGeoInfoPathLevels()}),t._uU(8),t.ALo(9,"translate"),t.qZA()(),t.TgZ(10,"div",4),t.YNc(11,Mt,9,4,"ng-container",7),t.ALo(12,"async"),t.qZA()()()()),2&L&&(t.xp6(6),t.Q6J("formControl",V.autocompleteControl)("startAtChar",3)("autocompleteService",V.registry.getAutocompleteService("Addressbase")),t.xp6(),t.Q6J("disabled",!V.poiId),t.xp6(),t.hij(" ",t.lcZ(9,6,"imxplatform.common-entity.edit.panels.geo.geoPathAddressbaseSelection.select-addressbase")," "),t.xp6(3),t.Q6J("ngIf",t.lcZ(12,8,V.validGeoPath$)))},dependencies:[e.sg,e.O5,x.JJ,x.oH,Y.Pi,se.h,kn.F,e.Ov,Y.X$,ue.j],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}"],changeDetection:0})}return A})();function Qn(A,Gt){if(1&A&&t._UZ(0,"imx-edit-geo-info",7),2&A){const f=t.oxw(2);t.Q6J("formHandler",f.formHandler)("record",f.record)}}function ei(A,Gt){if(1&A&&(t.ynx(0),t._UZ(1,"imx-edit-geo-regions-advanced",8)(2,"imx-article-geo-path-form-panel",7),t.BQk()),2&A){const f=t.oxw(2);t.xp6(),t.Q6J("formHandler",f.formHandler)("record",f.record)("showGeopath",!1),t.xp6(),t.Q6J("formHandler",f.formHandler)("record",f.record)}}function bi(A,Gt){if(1&A&&t._UZ(0,"imx-edit-geo-regions",9),2&A){const f=t.oxw(2);t.Q6J("formHandler",f.formHandler)}}function zi(A,Gt){if(1&A&&(t.TgZ(0,"div",1),t._UZ(1,"div",2),t.TgZ(2,"h2",3),t._uU(3,"imxplatform.common-entity.edit.panels.geo.title"),t.qZA(),t.YNc(4,Qn,1,2,"imx-edit-geo-info",4)(5,ei,3,5,"ng-container",5)(6,bi,1,1,"ng-template",null,6,t.W1O),t.qZA()),2&A){const f=t.MAs(7),L=t.oxw();t.xp6(),t.uIk("data-scroll-id","geo"),t.xp6(3),t.Q6J("ngIf",!L.hideEditGeoInfo),t.xp6(),t.Q6J("ngIf",L.advancedRegionManagementEnabled)("ngIfElse",f)}}let Be=(()=>{class A extends B.C{constructor(f,L,V){super(f,L),this.entitiesMgr=f,this.dialog=L,this.configurationProvider=V,this.hideEditGeoInfo=!1}ngOnInit(){super.ngOnInit(),this.hideEditGeoInfo=this.configurationProvider.getBooleanFromSnapshot(i.x3.IMXPLATFORM_HIDE_EDIT_GEO_INFO,!1)}get advancedRegionManagementEnabled(){return"true"==this.configurationProvider.getStringFromSnapshot(i.x3.PLATFORM_ADVANCED_REGION_MANAGEMENT_ENABLED,"false")}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(i.qB),t.Y36(ae.uw),t.Y36(i.Pc))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-article-geo-form-panel"]],hostAttrs:[1,"imx-article-geo-form-panel"],features:[t.qOj],decls:2,vars:3,consts:[["class","form__content-panel",4,"ngIf"],[1,"form__content-panel"],["id","geo",1,"anchor"],["translate",""],[3,"formHandler","record",4,"ngIf"],[4,"ngIf","ngIfElse"],["defaultRegionComponent",""],[3,"formHandler","record"],[3,"formHandler","record","showGeopath"],[3,"formHandler"]],template:function(L,V){1&L&&(t.YNc(0,zi,8,4,"div",0),t.ALo(1,"async")),2&L&&t.Q6J("ngIf",t.lcZ(1,1,V.formHandler.hasReadPermission("geoInfo")))},dependencies:[e.O5,Y.Pi,fn,ii.S,no.e,Li.L,e.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}"],changeDetection:0})}return A})();var pt=a(8832),Ye=a(15813),ut=a(3873);function Kt(A,Gt){if(1&A&&t._UZ(0,"imx-references-form-panel",3),2&A){const f=t.oxw(2);t.Q6J("formHandler",f.formHandler)("record",f.record)}}function en(A,Gt){if(1&A&&(t.TgZ(0,"div"),t._UZ(1,"imx-productline-info-form-panel",10),t.qZA()),2&A){const f=Gt.$implicit,L=t.oxw(3);t.xp6(),t.Q6J("module",f)("formHandler",L.formHandler)("record",L.record)("formGroup",L.formHandler.formGroup)}}function qn(A,Gt){if(1&A&&(t.TgZ(0,"div",8)(1,"h2",9),t._uU(2,"imxplatform.common-entity.edit.panels.productlineInfo.headline"),t.qZA(),t.YNc(3,en,2,4,"div",7),t.qZA()),2&A){const f=t.oxw(2);t.xp6(3),t.Q6J("ngForOf",f.productlineInfoModules)}}function hi(A,Gt){if(1&A&&(t.TgZ(0,"div"),t._UZ(1,"imx-module-form-panel",11),t.qZA()),2&A){const f=Gt.$implicit,L=t.oxw(2);t.xp6(),t.Q6J("module",f)("entityType","Article")("formHandler",L.formHandler)("record",L.record)}}const gi=()=>["fromDate","toDate","custom1","deliveryChannel","languages","actionColumn"];function ko(A,Gt){if(1&A&&(t.TgZ(0,"div")(1,"form",2),t.NdJ("keydown.enter",function(L){return L.preventDefault()}),t._UZ(2,"imx-article-base-data-form-panel",3)(3,"imx-article-geo-form-panel",3)(4,"imx-article-media-form-panel",3)(5,"imx-appearance-form-panel",4),t.YNc(6,Kt,1,2,"imx-references-form-panel",5)(7,qn,4,1,"div",6)(8,hi,2,4,"div",7),t.qZA()()),2&A){const f=t.oxw(),L=t.MAs(2);t.xp6(),t.Q6J("formGroup",f.formHandler.formGroup),t.xp6(),t.Q6J("formHandler",f.formHandler)("record",f.record),t.xp6(),t.Q6J("formHandler",f.formHandler)("record",f.record),t.xp6(),t.Q6J("formHandler",f.formHandler)("record",f.record),t.xp6(),t.Q6J("formHandler",f.formHandler)("record",f.record)("confirmPermissionName",f.getAppearanceConfirmPermission())("refusePermissionName",f.getAppearanceRefusePermission())("column1Template",L)("column1Label",f.formHandler.getFormFieldLabel("appearances:prioLevel"))("displayedColumns",t.DdM(17,gi)),t.xp6(),t.Q6J("ngIf",f.contactListsEnabled),t.xp6(),t.Q6J("ngIf",f.productlineInfoModules.length>0),t.xp6(),t.Q6J("ngForOf",f.dataModules)}}function Wo(A,Gt){if(1&A&&(t.TgZ(0,"div",12),t._UZ(1,"imx-form-control",13),t.qZA()),2&A){const f=Gt.element,L=t.oxw();t.xp6(),t.Q6J("field",L.formHandler.formConfiguration.findFormFieldById("appearances:prioLevel"))("control",f.controls.prioLevel)("form",L.formHandler.formGroup.get("appearances"))("formHandler",L.formHandler)("config",L.formHandler.formConfiguration)}}let tr=(()=>{class A extends o.U{constructor(f){super(f),this.userMessageService=f}getAppearanceConfirmPermission(){return i.uo.F_ARTICLE_APPEARANCE_CONFIRM}getAppearanceRefusePermission(){return i.uo.F_ARTICLE_APPEARANCE_REFUSE}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(c.Y))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-article-edit-form"]],inputs:{dataModules:"dataModules",productlineInfoModules:"productlineInfoModules",contactListsEnabled:"contactListsEnabled"},features:[t.qOj],decls:3,vars:2,consts:[[4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],["column1Template",""],["id","article-edit",3,"formGroup","keydown.enter"],[3,"formHandler","record"],[3,"formHandler","record","confirmPermissionName","refusePermissionName","column1Template","column1Label","displayedColumns"],[3,"formHandler","record",4,"ngIf"],["class","form__content-panel",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"form__content-panel"],["translate",""],[3,"module","formHandler","record","formGroup"],[3,"module","entityType","formHandler","record"],[1,"app_custom_col1"],[3,"field","control","form","formHandler","config"]],template:function(L,V){1&L&&t.YNc(0,ko,9,18,"div",0)(1,Wo,2,5,"ng-template",null,1,t.W1O),2&L&&t.Q6J("hasFieldReadPermission","title")("hasFieldReadPermissionFormHandler",V.formHandler)},dependencies:[e.sg,e.O5,x._Y,x.JL,x.sg,Y.Pi,Fs.O,ra,Be,pt.L,yn,ee.A,Ye.n,ut.A,Le.j],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}.app_custom_col1[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%]{margin-bottom:0}"]})}return A})();var br=a(47357),fa=a(97734),ga=a(41621);let $r=(()=>{class A extends po{constructor(f,L,V,Xe,An,Qo,Dr,es,Al,Rl,$l,kl){super(f,L,Xe,V,An,Qo,Dr,es,Al,Rl,kl),this.formHandler=f,this.imxEntitiesMgrService=Qo,this.translateService=$l,this.dataModules=[],this.productlineInfoModules=[],this.showModuleItems=!0,this.showProductlineInfoItems=!0,this.modules=[]}ngOnInit(){super.ngOnInit(),this.subscribeToProductlineChanges()}subscribeToProductlineChanges(){let f;this.formHandler.formGroup.get("productlineIds")&&this.formHandler.formGroup.get("productlineIds").valueChanges.pipe((0,tt.R)(this.destroy$),(0,G.b)(L=>{f=this.modules.map(V=>V.id),this.modules.length=0,this.dataModules.length=0,this.productlineInfoModules.length=0}),(0,fa.h)(L=>void 0!==L),(0,m.U)(L=>L.filter(V=>0!==V&&1e8!==V)),(0,O.w)(L=>this.imxEntitiesMgrService.getEntityWithIdsOfType("Productline",L).pipe((0,Yr.q)(1)))).subscribe(L=>{const V=[];L.forEach(Xe=>{if(this.hasProductlineSomeEditableData(Xe)){if(!f.find(An=>An===Xe.id)&&!this.formHandler.getFormArrayControl("metainfos").controls.find(Qo=>void 0===Qo.controls.moduleId.value)&&!this.formHandler.getFormArrayControl("metainfos").controls.find(Dr=>Dr.controls.moduleId.value===Xe.id)){const Dr=this.addNewMetaInfoRow("metainfos",Xe.plKey);if(!Dr.get("moduleId"))throw new Error("cannot find control with name moduleId in newRow for pl "+Xe.id);{Dr.get("moduleId").setValue(Xe.id);const es=this.formHandler.getFormArrayControl("metainfos");es.push(Dr),es.markAsDirty()}}V.push(Xe)}}),this.modules.push(...V.sort((Xe,An)=>(0,ga.Qi)(Xe.i18nName,An.i18nName,this.translateService.currentLang))),this.modules.forEach(Xe=>{this.isDataModule(Xe)&&this.formHandler.isProductlinePanelVisible(Xe.id)&&this.dataModules.push(Xe),this.hasProductlineInfo(Xe)&&this.formHandler.isProductlinePanelVisible(Xe.id)&&this.productlineInfoModules.push(Xe)}),this.updateButtonBarPosition()})}addNewMetaInfoRow(f,L){const V=this.formHandler.formConfiguration.findFormFieldById(f);if(V){const Xe=new x.nJ({});return this.formHandler.addNewFormControlsForRow(V,Xe,Qo=>Qo.id===L||"moduleId"===Qo.id||"rowId"===Qo.id||"productlineInfo"===Qo.id),Xe.markAsPristine(),Xe}throw new Error("cannot find ArrayField with name "+f)}toggleModules(){this.showModuleItems=!this.showModuleItems,this.updateButtonBarPosition()}toggleProductlineInfos(){this.showProductlineInfoItems=!this.showProductlineInfoItems,this.updateButtonBarPosition()}hasProductlineSomeEditableData(f){return this.hasProductlineInfo(f)||this.isDataModule(f)}static#e=this.\u0275fac=function(L){t.$Z()};static#t=this.\u0275dir=t.lG2({type:A,features:[t.qOj]})}return A})();function Rr(A,Gt){1&A&&(t.TgZ(0,"div",25),t._UZ(1,"mat-progress-bar",26),t.qZA())}const Xr=A=>({active:A}),Es=()=>[];function Ys(A,Gt){if(1&A&&(t.TgZ(0,"a",27)(1,"div",11),t._UZ(2,"span",28),t.TgZ(3,"span",13),t._uU(4),t.ALo(5,"translate"),t.qZA()()()),2&A){const f=t.oxw();t.Q6J("ngClass",t.VKq(5,Xr,f.isPanelActive("geo")))("routerLink",t.DdM(7,Es)),t.xp6(4),t.Oqu(t.lcZ(5,3,"imxplatform.common-entity.edit.navigation.geoinformation"))}}function qa(A,Gt){if(1&A&&(t.TgZ(0,"a",29)(1,"div",11),t._UZ(2,"span",30),t.TgZ(3,"span",13),t._uU(4),t.ALo(5,"translate"),t.qZA()()()),2&A){const f=t.oxw();t.Q6J("ngClass",t.VKq(5,Xr,f.isPanelActive("references")))("routerLink",t.DdM(7,Es)),t.xp6(4),t.Oqu(t.lcZ(5,3,"imxplatform.common-entity.edit.navigation.references"))}}function Qs(A,Gt){if(1&A&&(t.TgZ(0,"div")(1,"a",38)(2,"div",39),t._UZ(3,"span",40)(4,"span",41),t.TgZ(5,"span",42),t._uU(6),t.ALo(7,"readI18n"),t.qZA()()()()),2&A){const f=Gt.$implicit,L=t.oxw(4);t.xp6(),t.Q6J("ngClass",t.VKq(8,Xr,L.isPanelActive("productlineInfo-"+f.plKey)))("routerLink",t.DdM(10,Es))("fragment","productlineInfo-"+f.plKey),t.xp6(4),t.hYB("matTooltip","",f.plKey," ",f.id,""),t.xp6(),t.Oqu(t.lcZ(7,6,f.i18nName))}}function ic(A,Gt){if(1&A&&(t.TgZ(0,"div",36),t.YNc(1,Qs,8,11,"div",37),t.qZA()),2&A){const f=t.oxw(3);t.xp6(),t.Q6J("ngForOf",f.productlineInfoModules)}}function wl(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"div",32)(1,"div",33),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(2);return t.KtG(V.toggleProductlineInfos())}),t._UZ(2,"span",34),t.TgZ(3,"span",13),t._uU(4),t.ALo(5,"translate"),t.qZA()(),t.YNc(6,ic,2,1,"div",35),t.qZA()}if(2&A){const f=t.oxw(2);t.xp6(4),t.Oqu(t.lcZ(5,2,"imxplatform.common-entity.edit.navigation.productlineInfos")),t.xp6(2),t.Q6J("ngIf",f.showProductlineInfoItems)}}function md(A,Gt){if(1&A&&(t.TgZ(0,"div")(1,"a",38)(2,"div",39),t._UZ(3,"span",40)(4,"span",44),t.TgZ(5,"span",42),t._uU(6),t.ALo(7,"readI18n"),t.qZA()()()()),2&A){const f=Gt.$implicit,L=t.oxw(4);t.xp6(),t.Q6J("ngClass",t.VKq(8,Xr,L.isPanelActive("module-"+f.plKey)))("routerLink",t.DdM(10,Es))("fragment","module-"+f.plKey),t.xp6(4),t.hYB("matTooltip","",f.plKey," ",f.id,""),t.xp6(),t.Oqu(t.lcZ(7,6,f.i18nName))}}function Dc(A,Gt){if(1&A&&(t.TgZ(0,"div",36),t.YNc(1,md,8,11,"div",37),t.qZA()),2&A){const f=t.oxw(3);t.xp6(),t.Q6J("ngForOf",f.dataModules)}}function yc(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"div",32)(1,"div",33),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(2);return t.KtG(V.toggleModules())}),t._UZ(2,"span",43),t.TgZ(3,"span",13),t._uU(4),t.ALo(5,"translate"),t.qZA()(),t.YNc(6,Dc,2,1,"div",35),t.qZA()}if(2&A){const f=t.oxw(2);t.xp6(4),t.Oqu(t.lcZ(5,2,"imxplatform.common-entity.edit.navigation.modules")),t.xp6(2),t.Q6J("ngIf",f.showModuleItems)}}function Wc(A,Gt){if(1&A&&(t.ynx(0),t.YNc(1,wl,7,4,"div",31)(2,yc,7,4,"div",31),t.BQk()),2&A){const f=t.oxw();t.xp6(),t.Q6J("ngIf",f.productlineInfoModules.length>0),t.xp6(),t.Q6J("ngIf",f.dataModules.length>0)}}const im=()=>({width:"100%",height:"100%"}),Vl=["basicdata","media","geo","appearances","references"];let zc=(()=>{class A extends $r{constructor(f,L,V,Xe,An,Qo,Dr,es,Al,Rl,$l,kl,Jl){super(f,L,V,Xe,An,Qo,Dr,es,Al,Rl,$l),this.listHistoryService=kl,this.router=Jl,this.logger=(0,i.jl)("ArticleEditPage",Kn.H.name)}ngOnInit(){super.ngOnInit(),this.isDeactivated$=this.formHandler.isDeactivated(),this.logger.debug("Open article edit page. Is in creation mode: "+this.isCreateMode)}hasProductlineInfo(f){return f.articleDetails&&Object.keys(f.articleDetails).length>0&&!0===f.articleDetails.enableAdditionalDescriptions}isDataModule(f){return null!=f.metainfos&&f.metainfos.some(L=>"Article"===L.forEntity)}addRecord(f){return this.platformDataAccessService.createArticle(f)}recordSaved(f){this.isSaveAndClose?this.close():this.isCreateMode?this.router.navigate(["articles","edit",f.id]):this.reload(),this.userMessageService.showInfo("imxplatform.article.edit.saved-successfull-msg")}updateRecord(f){return this.platformDataAccessService.updateArticle(f)}getAvailablePanels(){return[...Vl]}getEntityTypeForHistory(){return oo.P.ARTICLE}save(f){this.isSaveAndClose=f||!1,this.formComponent&&this.formComponent.submit(),this.clearCurrentStateInStorage()}getReloadDialogMsg(){return"imxplatform.article.edit.dialog-on-reload"}close(){super.handleCloseAction("imxplatform.article.edit.dialog-on-close","imxplatform.article.edit.dialog-on-close-new")}navigateToList(){this.listHistoryService.navigateToLastListState(this.getEntityTypeForHistory().entityType)||this.router.navigate(["/articles"])}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(br.Ek),t.Y36(sn.nq),t.Y36(l.gz),t.Y36(i.Yz),t.Y36(c.Y),t.Y36(i.qB),t.Y36(_o.I),t.Y36(e.EM),t.Y36(mo.h),t.Y36(ae.uw),t.Y36(Y.sK),t.Y36(Wi.G),t.Y36(l.F0))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],viewQuery:function(L,V){if(1&L&&t.Gf(tr,7),2&L){let Xe;t.iGM(Xe=t.CRH())&&(V.formComponent=Xe.first)}},features:[t.qOj],decls:37,vars:44,consts:[[1,"edit"],[3,"formHandler","record","entityType","resourceKeyPrefix","activeSlideInType","reloadClicked","slideInEvent","addToObjectListClicked"],["class","page-loading-wrapper","progress-bar","",4,"ngIf"],["lg_w","12","lg_o","0"],[1,"edit__wrapper"],[1,"edit__navigation-sticky-wrapper"],[1,"edit__navigation-sticky-content"],["scrollBar",""],[1,"edit__navigation-items"],["formNavigation",""],["fragment","basicdata",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"edit__navigation-item-content"],[1,"icon","icon-pencil","imx-icon-middle"],[1,"item-label"],["class","edit__navigation-item","fragment","geo",3,"ngClass","routerLink",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],["fragment","media",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-picture","imx-icon-middle"],["fragment","appearances",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-earth","imx-icon-middle"],["class","edit__navigation-item","fragment","references",3,"ngClass","routerLink",4,"ngIf"],[4,"ngIf"],[3,"formHandler","isSubmitting","save","saveAndClose","close"],[1,"edit__content"],["alwaysFixed","true"],["scrollToInvalidField","",3,"formHandler","record","dataModules","productlineInfoModules","contactListsEnabled","save"],["progress-bar","",1,"page-loading-wrapper"],["mode","indeterminate"],["fragment","geo",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-map-marker","imx-icon-middle"],["fragment","references",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-reference-list","imx-icon-middle"],["class","edit__navigation-item",4,"ngIf"],[1,"edit__navigation-item"],[1,"edit__navigation-item-content",3,"click"],[1,"icon","icon-editor-text","imx-icon-middle"],["class","edit__navigation-sub-items",4,"ngIf"],[1,"edit__navigation-sub-items"],[4,"ngFor","ngForOf"],[1,"edit__navigation-item",3,"ngClass","routerLink","fragment"],[1,"edit__navigation-item-content","sub"],[1,"icon","icon-subNavigation"],[1,"icon","icon-editor-text","sub-item-icon"],["matTooltipShowDelay","5000",1,"item-label","sub",3,"matTooltip"],[1,"icon","icon-jigsaw","imx-icon-middle"],[1,"icon","icon-jigsaw","sub-item-icon"]],template:function(L,V){1&L&&(t.TgZ(0,"div",0)(1,"imx-edit-header",1),t.NdJ("reloadClicked",function(){return V.reload()})("slideInEvent",function(An){return V.dispatchSlideEvent(An)})("addToObjectListClicked",function(){return V.addToObjectList()}),t.YNc(2,Rr,2,0,"div",2),t.qZA(),t.TgZ(3,"imx-grid")(4,"imx-grid-element",3)(5,"div",4)(6,"div",5)(7,"div",6)(8,"p-scrollPanel",null,7)(10,"div",8,9)(12,"a",10)(13,"div",11),t._UZ(14,"span",12),t.TgZ(15,"span",13),t._uU(16),t.ALo(17,"translate"),t.qZA()()(),t.YNc(18,Ys,6,8,"a",14),t.TgZ(19,"a",15)(20,"div",11),t._UZ(21,"span",16),t.TgZ(22,"span",13),t._uU(23),t.ALo(24,"translate"),t.qZA()()(),t.TgZ(25,"a",17)(26,"div",11),t._UZ(27,"span",18),t.TgZ(28,"span",13),t._uU(29),t.ALo(30,"translate"),t.qZA()()(),t.YNc(31,qa,6,8,"a",19)(32,Wc,3,2,"ng-container",20),t.qZA()(),t.TgZ(33,"imx-edit-page-button-bar",21),t.NdJ("save",function(){return V.save()})("saveAndClose",function(){return V.save(!0)})("close",function(){return V.close()}),t.qZA()()(),t.TgZ(34,"div",22)(35,"imx-generic-slide-in-page",23)(36,"imx-article-edit-form",24),t.NdJ("save",function(An){return V.submit(An)}),t.qZA()()()()()()()),2&L&&(t.xp6(),t.Q6J("formHandler",V.formHandler)("record",V.record)("entityType","Article")("resourceKeyPrefix","imxplatform.article.")("activeSlideInType",V.activeSlideInType),t.xp6(),t.Q6J("ngIf",V.isSubmitting),t.xp6(6),t.Akn(t.DdM(34,im)),t.xp6(4),t.Q6J("ngClass",t.VKq(35,Xr,V.isPanelActive("basicdata")))("routerLink",t.DdM(37,Es)),t.xp6(4),t.Oqu(t.lcZ(17,28,"imxplatform.common-entity.edit.navigation.basedata")),t.xp6(2),t.Q6J("hasFieldReadPermission","geoInfo.master")("hasFieldReadPermissionFormHandler",V.formHandler),t.xp6(),t.Q6J("ngClass",t.VKq(38,Xr,V.isPanelActive("media")))("routerLink",t.DdM(40,Es)),t.xp6(4),t.Oqu(t.lcZ(24,30,"imxplatform.common-entity.edit.navigation.media")),t.xp6(2),t.Q6J("ngClass",t.VKq(41,Xr,V.isPanelActive("appearances")))("routerLink",t.DdM(43,Es)),t.xp6(4),t.Oqu(t.lcZ(30,32,"imxplatform.common-entity.edit.navigation.publications")),t.xp6(2),t.Q6J("ngIf",V.formHandler.isContactListsEnabled()),t.xp6(),t.Q6J("ngIf",V.dataModules),t.xp6(),t.Q6J("formHandler",V.formHandler)("isSubmitting",V.isSubmitting),t.xp6(3),t.Q6J("formHandler",V.formHandler)("record",V.record)("dataModules",V.dataModules)("productlineInfoModules",V.productlineInfoModules)("contactListsEnabled",V.formHandler.isContactListsEnabled()))},dependencies:[e.mk,e.sg,e.O5,Ft.pW,qi.gM,l.rH,Oi.P,On.M,_n.V,tr,st.n,Dn.r,Bt.Ee,Le.j,Wt.a,kn.F,Y.X$,ue.j],styles:[".edit[_ngcontent-%COMP%]{padding-top:113px}.edit__wrapper[_ngcontent-%COMP%]{display:flex}.edit__wrapper[_ngcontent-%COMP%]   .edit__content[_ngcontent-%COMP%]{flex:1}.edit__navigation-items[_ngcontent-%COMP%]{display:flex;flex-direction:column}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]{font-size:14px;cursor:pointer;text-decoration:none;display:inline-block;transition:background-color .75s ease}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]{padding:8px;margin:5px 0;display:flex;flex-direction:row;align-items:center}@media (max-width: 900px){.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]{justify-content:center}}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content.sub[_ngcontent-%COMP%]{margin:2px 0}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .item-label[_ngcontent-%COMP%]{margin-left:15px;text-overflow:ellipsis;overflow:hidden}@media (max-width: 900px){.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .item-label[_ngcontent-%COMP%]{display:none}}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .item-label.sub[_ngcontent-%COMP%]{margin-left:10px}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .sub-item-icon[_ngcontent-%COMP%]{display:none}@media (max-width: 900px){.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .sub-item-icon[_ngcontent-%COMP%]{display:block}}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-sub-items[_ngcontent-%COMP%]{display:flex;flex-direction:column}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-sub-items[_ngcontent-%COMP%]   .icon-subNavigation[_ngcontent-%COMP%]{font-size:10px;margin-right:10px}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-sub-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]{padding-left:10px}.edit__navigation-sticky-wrapper[_ngcontent-%COMP%]{min-width:250px}@media (max-width: 900px){.edit__navigation-sticky-wrapper[_ngcontent-%COMP%]{min-width:100px}}.edit__navigation-sticky-content[_ngcontent-%COMP%]{padding-bottom:15px;padding-right:15px;max-width:250px;position:fixed;top:163px}.edit__navigation-sticky-content[_ngcontent-%COMP%]     .p-scrollpanel{transition:max-height .6s ease-in-out}@media (min-width: 901px){.edit__navigation-sticky-content[_ngcontent-%COMP%]{height:calc(100vh - 200px)}}@media (max-width: 900px){.edit__navigation-sticky-content[_ngcontent-%COMP%]{height:calc(100vh - 240px);min-width:100px}}"]})}return A})();var Il=a(83530),Bc=a(46817),Ac=a(42582),Xl=a(20085),uc=a(85984),Oc=a(96742),jc=a(86838);function pc(A,Gt){if(1&A&&t._UZ(0,"imx-geo-filter-panel",14,15),2&A){const f=t.oxw(2);t.Q6J("addGeoRegionFilter",!0)("parentForm",f.formHandler.formGroup)("record",f.record)("formHandler",f.formHandler)}}function Ul(A,Gt){if(1&A&&(t.ynx(0),t._UZ(1,"imx-productline-filter-panel",16,17),t.BQk()),2&A){const f=t.oxw(3);t.xp6(),t.Q6J("parentForm",f.formHandler.formGroup)("record",f.record)("formHandler",f.formHandler)("availableProductlines",f.availableProductlines)}}function Xc(A,Gt){if(1&A&&(t.ynx(0),t.YNc(1,Ul,3,4,"ng-container",10),t.BQk()),2&A){const f=Gt.ngIf;t.xp6(),t.Q6J("ngIf",f.length>0)}}function ec(A,Gt){if(1&A&&t._UZ(0,"imx-dynamic-module-filter-panel",18),2&A){const f=Gt.$implicit,L=t.oxw(2);t.Q6J("parentForm",L.formHandler.formGroup)("record",L.record)("formHandler",L.formHandler)("moduleKey",f)}}function vd(A,Gt){if(1&A&&t._UZ(0,"imx-admin-filter-panel",2,19),2&A){const f=t.oxw(2);t.Q6J("parentForm",f.formHandler.formGroup)("record",f.record)("formHandler",f.formHandler)}}function bd(A,Gt){if(1&A&&(t._UZ(0,"imx-main-filter-panel",2,3)(2,"imx-fulltext-filter-panel",2,4)(4,"imx-appearance-filter-panel",5,6)(6,"imx-client-filter-panel",7,8),t.YNc(8,pc,2,4,"imx-geo-filter-panel",9)(9,Xc,2,1,"ng-container",10),t.ALo(10,"async"),t._UZ(11,"imx-memo-filter-panel",2,11),t.YNc(13,ec,1,4,"ng-template",12),t.ALo(14,"async"),t.YNc(15,vd,2,3,"imx-admin-filter-panel",13)),2&A){const f=t.oxw();t.Q6J("parentForm",f.formHandler.formGroup)("record",f.record)("formHandler",f.formHandler),t.xp6(2),t.Q6J("parentForm",f.formHandler.formGroup)("record",f.record)("formHandler",f.formHandler),t.xp6(2),t.Q6J("parentForm",f.formHandler.formGroup)("record",f.record)("formHandler",f.formHandler)("entityName",f.getEntityName()),t.xp6(2),t.Q6J("parentForm",f.formHandler.formGroup)("record",f.record)("formHandler",f.formHandler)("availableClients",f.availableClients),t.xp6(2),t.Q6J("ngIf",f.advancedRegionManagement$),t.xp6(),t.Q6J("ngIf",t.lcZ(10,21,f.availableProductlines)),t.xp6(2),t.Q6J("parentForm",f.formHandler.formGroup)("record",f.record)("formHandler",f.formHandler),t.xp6(2),t.Q6J("ngForOf",t.lcZ(14,23,f.configuredModules$)),t.xp6(2),t.Q6J("hasAnyPermission",f.hasAdminPermssionStr)}}let Sd=(()=>{class A extends vr{constructor(f,L,V,Xe,An,Qo){super(f),this.entitiesMgrService=L,this.securityManagerService=V,this.runtimeContextService=Xe,this.dataAccessService=An,this.metainfoFormPanelProviderRegistry=Qo,this.configuredModules$=(0,u.of)([]),this.advancedRegionManagement$=(0,u.of)(!1)}ngOnInit(){super.ngOnInit(),this.configuredModules$=this.configurationProvider.getString(i.x3.IMXPLATFORM_MODULES).pipe((0,m.U)(f=>f.split(",")),(0,m.U)(f=>f.filter(L=>void 0!==this.metainfoFormPanelProviderRegistry.getFilterPanelComponent(L)))),this.availableClients=this.determineAvailableClients(),this.availableProductlines=this.determineAvailableProductlines(),this.advancedRegionManagement$=this.configurationProvider.getBoolean(i.x3.PLATFORM_ADVANCED_REGION_MANAGEMENT_ENABLED,!1)}determineAvailableClients(){return this.securityManagerService.hasPermission(i.uo.F_ARTICLE_READ_ALL)?this.entitiesMgrService.getAllEntitiesOfType("Client").pipe((0,m.U)(f=>f.items)):this.securityManagerService.hasPermission(i.uo.F_ARTICLE_READ_OWN_CLIENT)?this.runtimeContextService.getCurrentAndSubClients().pipe((0,m.U)(f=>Array.from(f))):this.securityManagerService.hasPermission(i.uo.F_ARTICLE_READ_OWN_USER)?this.runtimeContextService.getCurrentClient().pipe((0,m.U)(f=>[f])):(0,u.of)([])}determineAvailableProductlines(){return this.entitiesMgrService.getAllEntitiesOfType("Productline").pipe((0,m.U)(f=>f.items.filter(L=>this.hasArticleDetails(L))))}hasArticleDetails(f){return!!(f.articleDetails&&Object.keys(f.articleDetails).length>0)||f.children?.some(V=>this.hasArticleDetails(V))}getEntityName(){return"Article"}clientParams2RequestParams(f){const L=this.paramMap2Filter(f),V=this.paramMap2DataAccessRequestOptions(f);return this.dataAccessService.convertArticleClientParamsToRequestParams(L,V)}newWidgetDef(f,L,V){return{x:0,y:3,cols:3,rows:1,widgetDef:{viewInfo:{showHeader:!0,columns:[{property:"id",format:"Number",header:"entity.DataObject.id",headerType:"Resource"},{property:"title",format:"Link(articles/edit/{id})",header:"entity.Article.title",headerType:"Resource"},{property:"lastChangeTime",format:"DateDiff",header:"entity.AuditedDataObject.lastChangeTime",headerType:"Resource",type:"Timestamp"}],rowCount:10},deepLink:{link:V,name:"imxplatform.dashboard.articlelist"},icon:"article",contentType:"EntityQuery",contentInfo:{serviceRequest:"article/compact?"+L},title:f,viewType:"List"}}}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(i.Pc),t.Y36(i.qB),t.Y36(i.Xh),t.Y36(i.Ze),t.Y36(sn.nq),t.Y36(Ac.RH))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-article-filter"]],features:[t.qOj],decls:3,vars:11,consts:[[3,"entityName","filterPanelsTemplate","formHandler","record","orderFields","orderField","orderDirection","enableSearchListOption","enableCreateContactListOption","newWidgetDefFn","clientParams2RequestParamsFn","orderChanged","save"],["filterPanelsTemplate",""],[3,"parentForm","record","formHandler"],["mainFilterPanel",""],["fulltextFilterPanel",""],[3,"parentForm","record","formHandler","entityName"],["appearanceFilterPanel",""],[3,"parentForm","record","formHandler","availableClients"],["clientFilterPanel",""],[3,"addGeoRegionFilter","parentForm","record","formHandler",4,"ngIf"],[4,"ngIf"],["memoFilterPanel",""],["ngFor","",3,"ngForOf"],[3,"parentForm","record","formHandler",4,"hasAnyPermission"],[3,"addGeoRegionFilter","parentForm","record","formHandler"],["geoFilterPanel",""],[3,"parentForm","record","formHandler","availableProductlines"],["productlineFilterPanel",""],[3,"parentForm","record","formHandler","moduleKey"],["adminFilterPanel",""]],template:function(L,V){if(1&L&&(t.TgZ(0,"imx-filter",0),t.NdJ("orderChanged",function(An){return V.orderChanged.emit(An)})("save",function(An){return V.applyFilter.emit(An)}),t.YNc(1,bd,16,25,"ng-template",null,1,t.W1O),t.qZA()),2&L){const Xe=t.MAs(2);t.Q6J("entityName","Article")("filterPanelsTemplate",Xe)("formHandler",V.formHandler)("record",V.record)("orderFields",V.orderFields)("orderField",V.orderField)("orderDirection",V.orderDirection)("enableSearchListOption",V.enableCreateContactListOption)("enableCreateContactListOption",!0)("newWidgetDefFn",V.newWidgetDefFn)("clientParams2RequestParamsFn",V.clientParams2RequestParamsFn)}},dependencies:[e.sg,e.O5,sr.B,oi.d,Xl.$,Vi.Q,Hi.z,Do.Y,$o.L,uc.c,Oc.H,jc.x,yr.R,e.Ov]})}return A})();function Ru(A,Gt){1&A&&t._UZ(0,"imx-create-new-entity-button",16),2&A&&t.Q6J("entityRoute","/articles")("entityResourceKeyPrefix","imxplatform.article")}function mm(A,Gt){1&A&&(t.TgZ(0,"imx-list-no-results"),t._uU(1,"imxplatform.article.list.no-records"),t.qZA())}function hu(A,Gt){1&A&&t._UZ(0,"mat-progress-bar",17)}function Fd(A,Gt){if(1&A&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&A){const f=Gt.$implicit;t.Udp("width",f.width),t.Q6J("ngClass",f.cssClass),t.xp6(),t.hij(" ",t.lcZ(2,4,f.header)," ")}}function tc(A,Gt){if(1&A&&(t.TgZ(0,"tr"),t.YNc(1,Fd,3,6,"th",23),t.qZA()),2&A){const f=t.oxw(3);t.xp6(),t.Q6J("ngForOf",f.columnDefinitions)}}function Km(A,Gt){1&A&&(t._UZ(0,"span",41),t.ALo(1,"translate")),2&A&&t.s9C("matTooltip",t.lcZ(1,1,"imxplatform.common-entity.list.outside-client-hierarchy"))}function um(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-action-menu-item",40),t.NdJ("click",function(){t.CHM(f);const V=t.oxw().$implicit,Xe=t.oxw(3);return t.KtG(Xe.executeHistoryAction(Xe.getEntityName(),V.id))}),t._uU(1," imxplatform.common-entity.list.history "),t.qZA()}2&A&&t.Q6J("icon","icon-compare")}const ad=A=>({selected:A}),Zc=A=>["../edit",A];function Cd(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"tr",25)(1,"td",26)(2,"mat-checkbox",27),t.NdJ("change",function(V){t.CHM(f);const Xe=t.oxw(3);return t.KtG(Xe.onSelectionChanged(V))}),t.qZA()(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td",28),t.ALo(6,"readI18n"),t.TgZ(7,"a",29)(8,"span",30),t._UZ(9,"span",31),t.qZA(),t._uU(10),t.ALo(11,"readI18n"),t.qZA()(),t.TgZ(12,"td"),t._uU(13),t.YNc(14,Km,2,3,"span",32),t.ALo(15,"async"),t.qZA(),t.TgZ(16,"td")(17,"imx-tooltip",33),t.ALo(18,"readI18n"),t.ALo(19,"languageNames"),t._UZ(20,"imx-language-flag",34),t.qZA()(),t.TgZ(21,"td"),t._UZ(22,"imx-entity-state",35),t.qZA(),t.TgZ(23,"td",36)(24,"imx-dropup-button")(25,"imx-search-list-action-menu",12),t.NdJ("executeAction",function(V){const An=t.CHM(f).$implicit,Qo=t.oxw(3);return t.KtG(Qo.executeRowAction(V,An))}),t.ynx(26,37),t.TgZ(27,"imx-action-menu-item",38),t._uU(28,"imxplatform.common-entity.list.edit "),t.qZA(),t.BQk(),t.ynx(29,13),t.YNc(30,um,2,1,"imx-action-menu-item",39),t.TgZ(31,"imx-action-menu-item",40),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3);return t.KtG(An.executeReferencesAction(An.getEntityName(),Xe.id))}),t._uU(32,"imxplatform.common-entity.list.references"),t.qZA(),t.BQk(),t.qZA()()()()}if(2&A){const f=Gt.$implicit,L=t.oxw(3);t.Q6J("ngClass",t.VKq(32,ad,L.isItemSelected(f.id))),t.uIk("data-scroll-id",f.id),t.xp6(2),t.Q6J("value",f.id)("checked",L.isItemSelected(f.id)),t.xp6(2),t.Oqu(f.id),t.xp6(),t.Q6J("matTooltip",t.lcZ(6,22,f.title))("matTooltipShowDelay",500),t.xp6(2),t.Q6J("routerLink",t.VKq(34,Zc,f.id)),t.xp6(3),t.hij(" ",t.lcZ(11,24,f.title)," "),t.xp6(3),t.hij(" ",null==f.client?null:f.client.name," "),t.xp6(),t.Q6J("ngIf",t.lcZ(15,26,L.isOutsideCurrentClientHierachy(null==f||null==f.client?null:f.client.id))),t.xp6(3),t.Q6J("tooltipText",t.lcZ(18,28,t.lcZ(19,30,f.languages)))("offset",300),t.xp6(3),t.Q6J("languages",f.languages)("inline",!0),t.xp6(2),t.Q6J("key",null==f||null==f.entityState?null:f.entityState.key)("appearances",null==f?null:f.appearances),t.xp6(3),t.Q6J("actions",null==L.actionProvider?null:L.actionProvider.getRowActionsForType(L.getEntityName(),f.id)),t.xp6(2),t.Q6J("icon","icon-pencil")("routerLink",t.VKq(36,Zc,f.id)),t.xp6(3),t.Q6J("ngIf",L.hasHistoryPermission()),t.xp6(),t.Q6J("icon","icon-link")}}function Rm(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"p-table",20),t.YNc(2,tc,2,1,"ng-template",21)(3,Cd,33,38,"ng-template",22),t.qZA(),t.BQk()),2&A){const f=t.oxw().ngIf;t.xp6(),t.Q6J("value",f.items)("resizableColumns",!0)}}function om(A,Gt){if(1&A&&(t.TgZ(0,"div",18),t.YNc(1,Rm,4,2,"ng-container",19),t.qZA()),2&A){const f=Gt.ngIf;t.oxw();const L=t.MAs(8);t.xp6(),t.Q6J("ngIf",f.items.length>0)("ngIfElse",L)}}function pm(A,Gt){if(1&A&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"span",42),t._uU(4),t.qZA()(),t._UZ(5,"span",43)),2&A){const f=t.oxw();t.xp6(),t.hij("",t.lcZ(2,2,"imxplatform.common-entity.list.selected-items")," "),t.xp6(3),t.hij("(",null==f.selectedIds?null:f.selectedIds.size,")")}}let Ld=(()=>{class A extends Ec{constructor(f,L,V,Xe,An,Qo,Dr,es,Al,Rl,$l,kl,Jl,od,dm){super(f,L,V,An,Qo,Dr,es,Al,void 0,kl,Rl,$l,Jl,od,dm,{},!0),this.imxPermissions=i.uo,this.availableOrderFields=[{index:1,field:"TITLE",i18n:"entity.ExtCoreDataObject.title",type:an.m.alphanumeric},{index:2,field:"ID",i18n:"entity.DataObject.id",type:an.m.numeric},{index:4,field:"CREATION_TIME",i18n:"imxplatform.common-entity.list.sort.creationTime",type:an.m.numeric},{index:5,field:"LAST_CHANGE",i18n:"imxplatform.common-entity.list.sort.lastChange",type:an.m.numeric},{index:6,field:"LAST_CHANGE_FROM",i18n:"imxplatform.common-entity.list.sort.lastChangeFrom",type:an.m.alphanumeric}],this.columnDefinitions=[{field:"select",header:"",width:"40px",cssClass:"select-column"},{field:"id",header:"ID",width:"70px"},{field:"title",header:"entity.ExtCoreDataObject.title",width:"50%"},{field:"client",header:"entity.Article.client",width:"130px"},{field:"languages",header:"Sprachen",width:"100px"},{field:"entity-state",header:"entity.Article.state",width:"20%"},{field:"action",header:"",width:"50px",cssClass:"action-column"}]}getEntityName(){return"Article"}getFilterParams(f){return this.platformDataAccessService.convertArticleClientParamsToRequestParams(f)}getSetStateAction(){return this.actionProvider.findActionForKey("article-action-set_state")}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(Il.J),t.Y36(l.F0),t.Y36(l.gz),t.Y36(i.Yz),t.Y36(c.Y),t.Y36(Wi.G),t.Y36(ae.uw),t.Y36(Bc.Y8),t.Y36(sn.nq),t.Y36(Wr.Q),t.Y36(mo.h),t.Y36(i.Ze),t.Y36(mc.o),t.Y36(i.Xh),t.Y36(Ui.a))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],features:[t.qOj],decls:25,vars:25,consts:[[1,"search-page"],[3,"formHandler","record","orderFields","orderField","orderDirection","enableCreateContactListOption","orderChanged","applyFilter","resetFilter"],[3,"totalNumber","entityResourceKeyPrefix","isCompactPageHeader","reload"],["list-header-button-row",""],[3,"entityRoute","entityResourceKeyPrefix",4,"hasAnyPermission"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],["class","table-wrapper",4,"ngIf","ngIfElse"],[3,"paging","selection","pageChanged","selectAll"],["position","above","halign","start"],["imx-dropup-trigger",""],[3,"actions","executeAction"],["search-list-action-menu-middle",""],[3,"icon","actionClicked"],[3,"actionClicked"],[3,"entityRoute","entityResourceKeyPrefix"],["mode","indeterminate"],[1,"table-wrapper"],[4,"ngIf","ngIfElse"],[1,"imx-datatable",3,"value","resizableColumns"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",3,"ngClass"],["imxGenericSelector","",3,"ngClass"],[1,"select-column"],[1,"",3,"value","checked","change"],[3,"matTooltip","matTooltipShowDelay"],[1,"txt-link",3,"routerLink"],[1,"badge"],[1,"icon-entityType-Article"],["class","icon icon-notificationType-Warning imx-icon-small outside-client",3,"matTooltip",4,"ngIf"],[3,"tooltipText","offset"],[3,"languages","inline"],[3,"key","appearances"],[1,"action-column"],["search-list-action-menu-top",""],[3,"icon","routerLink"],[3,"icon","click",4,"ngIf"],[3,"icon","click"],[1,"icon","icon-notificationType-Warning","imx-icon-small","outside-client",3,"matTooltip"],[1,"selected-size"],[1,"icon-chevron-down"]],template:function(L,V){if(1&L&&(t.TgZ(0,"div",0)(1,"imx-article-filter",1),t.NdJ("orderChanged",function(An){return V.sort(An)})("applyFilter",function(An){return V.search(An)})("resetFilter",function(){return V.reset()}),t.qZA(),t.TgZ(2,"imx-list-header",2),t.NdJ("reload",function(){return V.reloadComplete()}),t.ynx(3,3),t.YNc(4,Ru,1,2,"imx-create-new-entity-button",4),t.BQk(),t.qZA(),t.TgZ(5,"imx-grid")(6,"imx-grid-element",5),t.YNc(7,mm,2,0,"ng-template",null,6,t.W1O)(9,hu,1,0,"ng-template",null,7,t.W1O)(11,om,2,2,"div",8),t.ALo(12,"async"),t.qZA()(),t.TgZ(13,"imx-list-footer",9),t.NdJ("pageChanged",function(An){return V.onPageChanged(An)})("selectAll",function(An){return V.onSelectAll(An)}),t.TgZ(14,"imx-dropup-button",10),t.YNc(15,pm,6,4,"ng-template",11),t.TgZ(16,"imx-search-list-action-menu",12),t.NdJ("executeAction",function(An){return V.executeBatchAction(An)}),t.ynx(17,13),t.TgZ(18,"imx-action-menu-item",14),t.NdJ("actionClicked",function(){return V.addToObjectList()}),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"imx-action-menu-item-create-contact-list",15),t.NdJ("actionClicked",function(){return V.proposeSelectedIdsAsContactList()}),t.qZA(),t.TgZ(22,"imx-action-menu-item",14),t.NdJ("actionClicked",function(){return V.exportStatisticsOnSelectedIds()}),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.BQk(),t.qZA()()()()),2&L){const Xe=t.MAs(10);t.xp6(),t.Q6J("formHandler",V.filterFormHandler)("record",V.filter)("orderFields",V.availableOrderFields)("orderField",V.orderField)("orderDirection",V.orderDirection)("enableCreateContactListOption",!0),t.xp6(),t.Q6J("totalNumber",null==V.currentResult?null:V.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxplatform.article")("isCompactPageHeader",!0),t.xp6(2),t.Q6J("hasAnyPermission",V.imxPermissions.F_ARTICLE_CREATE.name),t.xp6(7),t.Q6J("ngIf",t.lcZ(12,19,V.results))("ngIfElse",Xe),t.xp6(2),t.Q6J("paging",V.pagingModel)("selection",V.selectionModel),t.xp6(3),t.Q6J("actions",null==V.actionProvider?null:V.actionProvider.getBatchActionsForType(V.getEntityName())),t.xp6(2),t.Q6J("icon","icon-star--add"),t.xp6(),t.hij(" ",t.lcZ(20,21,"imxplatform.entity-list.object-list.action-title")," "),t.xp6(3),t.Q6J("icon","icon-pie-chart"),t.xp6(),t.hij(" ",t.lcZ(24,23,"imxplatform.common.export")," ")}},dependencies:[e.mk,e.sg,e.O5,ya.oG,Ft.pW,qi.gM,l.rH,wi.iA,zo.jx,wi.Q7,ki.z,wo.t,gr.F,On.M,_n.V,ho.K,Ms.$,Sd,Bs.r,Wa.n,Yi.l,jo.N,Cn._,uo.A,yl.E,yr.R,kn.F,Fr.l,e.Ov,Y.X$,fo.O,ue.j],styles:["[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}"]})}return A})();var jd=a(43040);let Ud=(()=>{class A{constructor(f,L,V,Xe){this.runtimeContextService=f,this.entitiesMgrService=L,this.imxSecurityManagerService=V,this.changeDetectorRef=Xe,this.APPEARANCE_CONFIRMED={i18n:"entity.EntityState.derived.confirmed",iconClass:"icon-earth"},this.APPEARANCE_PENDING={i18n:"entity.EntityState.derived.pending",iconClass:"icon-earth-lock"},this.APPEARANCE_REFUSED={i18n:"entity.EntityState.derived.refused",iconClass:"icon-earth-reject"},this.entityUpdated=new t.vpe,this.ownAppearances=[],this.foreignAppearances=[],this.clientAndSubClients=new Set,this.allDeliveryChannels=[],this.permittedDeliveryChannels=[]}ngOnInit(){this.isOwnedEntity$=this.runtimeContextService.isOwnedEntity(this.entity.client.id);const f=this.runtimeContextService.getCurrentAndSubClients().pipe((0,Yr.q)(1)),L=this.entitiesMgrService.getAllEntitiesOfType("DeliveryChannel").pipe((0,Yr.q)(1));(0,P.aj)([f,L]).subscribe(([V,Xe])=>{this.allDeliveryChannels=Xe.items,this.clientAndSubClients=V,this.allDeliveryChannels.forEach(An=>{this.isPermittedDeliveryChannel(An)&&this.permittedDeliveryChannels.push(An)}),this.initAppearances(),this.changeDetectorRef.markForCheck()})}initAppearances(){this.ownAppearances=[],this.foreignAppearances=[];const f=this.getQueriedDeliveryChannels(!1),L=this.filter;this.entity.appearances.forEach(V=>{this.isQueriedAppearance(V,f,L.appearanceFrom,L.appearanceTo)&&(V.type=H.MB.CONFIRMED,this.pushAppearance(V))}),this.entity.pendingAppearances?.forEach(V=>{this.isQueriedAppearance(V,f,L.appearanceFrom,L.appearanceTo)&&(V.type=H.MB.PENDING,this.pushAppearance(V))}),this.entity.refusedAppearances?.forEach(V=>{this.isQueriedAppearance(V,f,L.appearanceFrom,L.appearanceTo)&&(V.type=H.MB.REFUSED,this.pushAppearance(V))}),this.ownAppearances=this.ownAppearances.sort((V,Xe)=>V.deliveryChannel.name.localeCompare(Xe.deliveryChannel.name)),this.foreignAppearances=this.foreignAppearances.sort((V,Xe)=>V.deliveryChannel.name.localeCompare(Xe.deliveryChannel.name)),this.postInitAppearances()}postInitAppearances(){}pushAppearance(f){this.permittedDeliveryChannels.map(L=>L.id).includes(f.deliveryChannel.id)?this.ownAppearances.push(f):this.foreignAppearances.push(f)}isPermittedDeliveryChannel(f){let L=!1;return this.clientAndSubClients.forEach(V=>{f.ownerClient&&V.id===f.ownerClient.id&&(L=!0),!1===L&&f.grantedClients&&f.grantedClients.length>0&&f.grantedClients.map(Xe=>Xe.id).includes(V.id)&&(L=!0)}),L}getQueriedDeliveryChannels(f){const L=[];if(this.filter.deliveryChannel)L.push(this.allDeliveryChannels.find(V=>String(V.id)===this.filter.deliveryChannel));else{if(!f)return this.allDeliveryChannels;this.allDeliveryChannels.forEach(V=>{this.isPermittedDeliveryChannel(V)&&L.push(V)})}return L}isQueriedAppearance(f,L,V,Xe){const An=new Date(Date.parse(f.fromDate)),Qo=new Date(Date.parse(f.toDate));let Dr=!0;return L.map(es=>es.id).includes(f.deliveryChannel.id)||(Dr=!1),!V||Xe&&!(An>Xe)||(Dr=!1),!Xe||null!=V&&!(Qo<V)||(Dr=!1),Dr}getHint(f){if(f.proposer&&f.proposer.id!==H.eH.id){if(f.type===H.MB.PENDING)return"Muss vom Eigent\xfcmer best\xe4tigt werden";if(f.type===H.MB.CONFIRMED)return"Best\xe4tigt durch Eigent\xfcmer"}else{if(f.type===H.MB.PENDING)return"Muss vom Auslieferungskanal-Besitzer best\xe4tigt werden";if(f.type===H.MB.CONFIRMED)return"Best\xe4tigt durch Auslieferungskanal-Besitzer"}}hasAppearanceConfirmPermission(f){return this.isOwnedEntity$.pipe((0,m.U)(L=>{let V=this.calcAppearanceConfirmPermission();return V&&(V=f.proposer&&f.proposer.id!==H.eH.id?L:this.calcCommonAppearanceEditPermissionByDC(f,L)),V}))}hasAppearanceRefusePermission(f){return this.isOwnedEntity$.pipe((0,m.U)(L=>{let V=this.calcAppearanceRefusePermission();return V&&(V=f.proposer&&f.proposer.id!==H.eH.id?L:this.calcCommonAppearanceEditPermissionByDC(f,L)),V}))}calcCommonAppearanceEditPermissionByDC(f,L){let V=!0;if(f&&f.id&&f.deliveryChannel){V=!1;const Xe=f.deliveryChannel;this.permittedDeliveryChannels.map(An=>An.id).includes(Xe.id)&&(V=!0)}return V}createActionCall(f,L,V){return"confirm"===V?{actionKey:this.entityType.toLocaleLowerCase()+"-action-confirm-appearance",entityType:this.entityType,entityIds:[f.id],actionParams:{appearanceId:L,type:V}}:{actionKey:this.entityType.toLocaleLowerCase()+"-action-refuse-appearance",entityType:this.entityType,entityIds:[f.id],actionParams:{appearanceId:L,type:V}}}isConfirmed(f){return f===H.MB.CONFIRMED}isPending(f){return f===H.MB.PENDING}isRefused(f){return f===H.MB.REFUSED}getAppearanceEntityState(f){return f===H.MB.CONFIRMED?this.APPEARANCE_CONFIRMED:f===H.MB.PENDING?this.APPEARANCE_PENDING:f===H.MB.REFUSED?this.APPEARANCE_REFUSED:void 0}getAppearanceEntityStateColorCss(f){return f===H.MB.CONFIRMED?"color-confirmed":f===H.MB.PENDING?"color-pending":f===H.MB.REFUSED?"color-refused":void 0}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(i.Ze),t.Y36(i.qB),t.Y36(i.Xh),t.Y36(t.sBO))};static#t=this.\u0275dir=t.lG2({type:A,inputs:{entity:"entity",entityType:"entityType",filter:"filter",formHandler:"formHandler"},outputs:{entityUpdated:"entityUpdated"}})}return A})();function km(A,Gt){1&A&&t.GkF(0)}function Nm(A,Gt){1&A&&t.GkF(0)}const xu=A=>({$implicit:A});function $u(A,Gt){if(1&A&&(t.TgZ(0,"div",7)(1,"div",8)(2,"div",9),t.YNc(3,km,1,0,"ng-container",10)(4,Nm,1,0,"ng-container",10),t.qZA()()()),2&A){const f=Gt.$implicit;t.oxw(2);const L=t.MAs(3),V=t.MAs(5);t.xp6(3),t.Q6J("ngTemplateOutlet",L)("ngTemplateOutletContext",t.VKq(4,xu,f)),t.xp6(),t.Q6J("ngTemplateOutlet",V)("ngTemplateOutletContext",t.VKq(6,xu,f))}}function Kd(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"div",3)(2,"span",4),t._uU(3,"imxplatform.common-entity.list.extension.appearance.own-dcs"),t.qZA()(),t.TgZ(4,"div",5),t.YNc(5,$u,5,8,"div",6),t.qZA(),t.BQk()),2&A){const f=t.oxw();t.xp6(5),t.Q6J("ngForOf",f.ownAppearances)}}function $m(A,Gt){1&A&&t.GkF(0)}function ed(A,Gt){1&A&&t.GkF(0)}function ku(A,Gt){if(1&A&&(t.TgZ(0,"div",7)(1,"div",8)(2,"div",9),t.YNc(3,$m,1,0,"ng-container",10)(4,ed,1,0,"ng-container",10),t.qZA()()()),2&A){const f=Gt.$implicit;t.oxw(2);const L=t.MAs(3),V=t.MAs(5);t.xp6(3),t.Q6J("ngTemplateOutlet",L)("ngTemplateOutletContext",t.VKq(4,xu,f)),t.xp6(),t.Q6J("ngTemplateOutlet",V)("ngTemplateOutletContext",t.VKq(6,xu,f))}}function _m(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"div",3)(2,"span",4),t._uU(3,"imxplatform.common-entity.list.extension.appearance.foreign-dcs"),t.qZA()(),t.TgZ(4,"div",5),t.YNc(5,ku,5,8,"div",6),t.qZA(),t.BQk()),2&A){const f=t.oxw();t.xp6(5),t.Q6J("ngForOf",f.foreignAppearances)}}function qm(A,Gt){if(1&A&&(t.TgZ(0,"div",11),t._UZ(1,"span",12),t.qZA(),t.TgZ(2,"div",13)(3,"p",14),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"p"),t._uU(7),t.ALo(8,"date"),t.ALo(9,"date"),t.qZA()(),t.TgZ(10,"div",15),t._UZ(11,"imx-entity-state",16),t.qZA(),t.TgZ(12,"div",17)(13,"p",14),t._uU(14),t.ALo(15,"translate"),t.qZA(),t.TgZ(16,"p"),t._uU(17),t.qZA()(),t.TgZ(18,"div",18),t._UZ(19,"imx-language-flag",19),t.qZA(),t.TgZ(20,"div",20)(21,"p",14),t._uU(22),t.ALo(23,"translate"),t.qZA(),t.TgZ(24,"imx-tooltip",21)(25,"p"),t._uU(26),t.qZA()()(),t.TgZ(27,"div",22)(28,"imx-tooltip",23)(29,"span",4),t._uU(30),t.qZA(),t._UZ(31,"span",24),t.qZA()()),2&A){const f=Gt.$implicit,L=t.oxw();t.Q6J("ngClass",L.getAppearanceEntityStateColorCss(f.type)),t.xp6(2),t.Q6J("ngClass",L.getAppearanceEntityStateColorCss(f.type)),t.xp6(2),t.hij("",t.lcZ(5,25,"imxplatform.common-entity.list.extension.appearance.period"),":"),t.xp6(3),t.AsE("",t.xi3(8,27,f.fromDate,"dd.MM.yyyy")," - ",t.xi3(9,30,f.toDate,"dd.MM.yyyy"),""),t.xp6(4),t.Q6J("fromDate",f.fromDate)("toDate",f.toDate)("checkForDates",!0)("renderLabel",!1),t.xp6(),t.Q6J("ngClass",L.getAppearanceEntityStateColorCss(f.type)),t.xp6(2),t.hij("",t.lcZ(15,33,"imxplatform.common-entity.list.extension.appearance.priority"),":"),t.xp6(3),t.Oqu(null==f.prioLevel?null:f.prioLevel.name),t.xp6(2),t.Q6J("languages",f.languages)("inline",!0),t.xp6(),t.Q6J("ngClass",L.getAppearanceEntityStateColorCss(f.type)),t.xp6(2),t.hij("",t.lcZ(23,35,"imxplatform.common-entity.list.extension.appearance.delivery-channel"),":"),t.xp6(2),t.Q6J("tooltipText","ProposerType "+(null==f.proposer?null:f.proposer.id))("tooltipPosition","above")("offset",2e3),t.xp6(2),t.Oqu(null==f.deliveryChannel?null:f.deliveryChannel.name),t.xp6(),t.Q6J("ngClass",L.getAppearanceEntityStateColorCss(f.type)),t.xp6(),t.Q6J("tooltipText",L.getHint(f))("offset",500),t.xp6(2),t.Oqu(L.getAppearanceEntityState(f.type).i18n),t.xp6(),t.Q6J("ngClass",L.getAppearanceEntityState(f.type).iconClass)}}function Xm(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"a",27),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(2).$implicit,Xe=t.oxw();return t.KtG(Xe.confirmOrRefuseAppearance(V,"refuse"))}),t._uU(1),t.ALo(2,"translate"),t._UZ(3,"span",28),t.qZA()}2&A&&(t.xp6(),t.hij(" ",t.lcZ(2,1,"imxplatform.common-entity.list.extension.appearance.refuse"),"\xa0"))}function Um(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"div",25),t.YNc(2,Xm,4,3,"a",26),t.ALo(3,"async"),t.qZA(),t.BQk()),2&A){const f=t.oxw().$implicit,L=t.oxw();t.xp6(2),t.Q6J("ngIf",t.lcZ(3,1,L.hasAppearanceRefusePermission(f)))}}function sd(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"a",27),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(2).$implicit,Xe=t.oxw();return t.KtG(Xe.confirmOrRefuseAppearance(V,"confirm"))}),t._uU(1),t.ALo(2,"translate"),t._UZ(3,"span",28),t.qZA()}2&A&&(t.xp6(),t.hij(" ",t.lcZ(2,1,"imxplatform.common-entity.list.extension.appearance.confirm"),"\xa0"))}function Kc(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"a",27),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(2).$implicit,Xe=t.oxw();return t.KtG(Xe.confirmOrRefuseAppearance(V,"refuse"))}),t._uU(1),t.ALo(2,"translate"),t._UZ(3,"span",28),t.qZA()}2&A&&(t.xp6(),t.hij(" ",t.lcZ(2,1,"imxplatform.common-entity.list.extension.appearance.refuse"),"\xa0"))}function fm(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"div",25)(2,"div"),t.YNc(3,sd,4,3,"a",26),t.ALo(4,"async"),t.qZA(),t.TgZ(5,"div"),t.YNc(6,Kc,4,3,"a",26),t.ALo(7,"async"),t.qZA()(),t.BQk()),2&A){const f=t.oxw().$implicit,L=t.oxw();t.xp6(3),t.Q6J("ngIf",t.lcZ(4,2,L.hasAppearanceConfirmPermission(f))),t.xp6(3),t.Q6J("ngIf",t.lcZ(7,4,L.hasAppearanceRefusePermission(f)))}}function Nu(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"a",27),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(2).$implicit,Xe=t.oxw();return t.KtG(Xe.confirmOrRefuseAppearance(V,"confirm"))}),t._uU(1),t.ALo(2,"translate"),t._UZ(3,"span",28),t.qZA()}2&A&&(t.xp6(),t.hij(" ",t.lcZ(2,1,"imxplatform.common-entity.list.extension.appearance.confirm"),"\xa0"))}function yd(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"div",25),t.YNc(2,Nu,4,3,"a",26),t.ALo(3,"async"),t.qZA(),t.BQk()),2&A){const f=t.oxw().$implicit,L=t.oxw();t.xp6(2),t.Q6J("ngIf",t.lcZ(3,1,L.hasAppearanceConfirmPermission(f)))}}function gm(A,Gt){if(1&A&&t.YNc(0,Um,4,3,"ng-container",0)(1,fm,8,6,"ng-container",0)(2,yd,4,3,"ng-container",0),2&A){const f=Gt.$implicit,L=t.oxw();t.Q6J("ngIf",L.isConfirmed(f.type)),t.xp6(),t.Q6J("ngIf",L.isPending(f.type)),t.xp6(),t.Q6J("ngIf",L.isRefused(f.type))}}let vu=(()=>{class A extends Ud{constructor(f,L,V,Xe,An){super(f,L,V,Xe),this.dataAccessService=An,this.ownAppearances=[],this.foreignAppearances=[]}calcAppearanceConfirmPermission(){return this.imxSecurityManagerService.hasPermission(i.uo.F_ARTICLE_APPEARANCE_CONFIRM)}calcAppearanceRefusePermission(){return this.imxSecurityManagerService.hasPermission(i.uo.F_ARTICLE_APPEARANCE_REFUSE)}hasAppearanceConfirmPermission(f){return this.isOwnedEntity$.pipe((0,m.U)(L=>{let V=this.calcAppearanceConfirmPermission();return V&&(V=this.imxSecurityManagerService.hasPropertyEditPermission(this.entityType,"appearance",L)),V&&(V=!(!f.proposer||f.proposer.id===H.eH.id)&&L),V}))}hasAppearanceRefusePermission(f){return this.isOwnedEntity$.pipe((0,m.U)(L=>{let V=this.calcAppearanceRefusePermission();return V&&(V=this.imxSecurityManagerService.hasPropertyEditPermission(this.entityType,"appearance",L)),V&&(V=!(!f.proposer||f.proposer.id===H.eH.id)&&L),V}))}confirmOrRefuseAppearance(f,L){this.dataAccessService.callAction(this.createActionCall(this.entity,f.id,L)).subscribe(V=>{V.includes(this.entity.id)&&this.dataAccessService.getArticleById(this.entity.id).subscribe(Xe=>{this.entityUpdated.emit(Xe),this.entity=Xe,this.initAppearances(),this.changeDetectorRef.markForCheck()})})}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(i.Ze),t.Y36(i.qB),t.Y36(i.Xh),t.Y36(t.sBO),t.Y36(sn.nq))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-article-appearance-extension-content"]],hostAttrs:[1,"imx-article-appearance-extension-content"],features:[t.qOj],decls:6,vars:2,consts:[[4,"ngIf"],["appearanceColumns",""],["actionColumns",""],[1,"group_header"],["translate",""],[1,"list__extension__content"],["class","row-wrapper",4,"ngFor","ngForOf"],[1,"row-wrapper"],[1,"list__extension__row","appearances"],[1,"list__content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"list__column",3,"ngClass"],[1,"icon-calendar-full"],[1,"list__column","dateCol",3,"ngClass"],[1,"txt-sm"],[1,"list__column","activityCol"],[3,"fromDate","toDate","checkForDates","renderLabel"],[1,"list__column","priorityCol",3,"ngClass"],[1,"list__column","langCol"],[3,"languages","inline"],[1,"list__column","dcCol",3,"ngClass"],[3,"tooltipText","tooltipPosition","offset"],[1,"list__column","stateCol","appearance-state",3,"ngClass"],[3,"tooltipText","offset"],[1,"icon","imx-icon-middle",3,"ngClass"],[1,"list__column","colAction"],["class","txt-link",3,"click",4,"ngIf"],[1,"txt-link",3,"click"],[1,"icon-arrow-right"]],template:function(L,V){1&L&&t.YNc(0,Kd,6,1,"ng-container",0)(1,_m,6,1,"ng-container",0)(2,qm,32,37,"ng-template",null,1,t.W1O)(4,gm,3,3,"ng-template",null,2,t.W1O),2&L&&(t.Q6J("ngIf",V.ownAppearances.length>0),t.xp6(),t.Q6J("ngIf",V.foreignAppearances.length>0))},dependencies:[e.mk,e.sg,e.O5,e.tP,Y.Pi,ho.K,Wa.n,Yi.l,kn.F,e.Ov,e.uU,Y.X$],styles:[".list__extension__content[_ngcontent-%COMP%]   .row-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-bottom:5px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row[_ngcontent-%COMP%]{background-color:#fff;padding:10px 40px 10px 10px;margin:0 20px 10px;width:100%;display:flex;flex-direction:column;position:relative}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row[_ngcontent-%COMP%]   .list__content[_ngcontent-%COMP%]{margin-bottom:0}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row[_ngcontent-%COMP%]   .row-action[_ngcontent-%COMP%]{position:absolute;right:0;top:0;height:100%;width:48px;display:flex;justify-content:center;align-items:center;cursor:pointer;color:#0a2663;border-left:1px solid #eefafa}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row[_ngcontent-%COMP%]   .list__column[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{margin-right:5px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.dateCol[_ngcontent-%COMP%]{flex-basis:200px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.activityCol[_ngcontent-%COMP%]{flex-basis:100px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.priorityCol[_ngcontent-%COMP%]{flex-basis:220px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.langCol[_ngcontent-%COMP%]{flex-basis:70px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.dcCol[_ngcontent-%COMP%]{flex-basis:240px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.plCol[_ngcontent-%COMP%], .list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.stateCol[_ngcontent-%COMP%]{flex-basis:250px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.colAction[_ngcontent-%COMP%]{flex-basis:250px;text-align:right}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col1[_ngcontent-%COMP%]{flex-basis:530px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col2[_ngcontent-%COMP%]{flex-basis:70px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col3[_ngcontent-%COMP%]{flex-basis:240px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col4[_ngcontent-%COMP%]{flex-basis:250px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col5[_ngcontent-%COMP%]{flex-basis:250px;text-align:right}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col6[_ngcontent-%COMP%]{padding-left:22px;margin-top:8px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.ibe-assignments[_ngcontent-%COMP%]   .list__column.col1[_ngcontent-%COMP%]{flex-basis:150px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.ibe-assignments[_ngcontent-%COMP%]   .list__column.col2[_ngcontent-%COMP%]{flex-basis:200px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.ibe-assignments[_ngcontent-%COMP%]   .list__column.col3[_ngcontent-%COMP%], .list__extension__content[_ngcontent-%COMP%]   .list__extension__row.ibe-assignments[_ngcontent-%COMP%]   .list__column.col4[_ngcontent-%COMP%]{flex-basis:150px}.color-refused[_ngcontent-%COMP%]{color:#96172e}.color-pending[_ngcontent-%COMP%]{color:#f0ab00}.color-confirmed[_ngcontent-%COMP%]{color:#739600}.appearance-state[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{vertical-align:middle}.appearance-state[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{margin-left:8px}.group_header[_ngcontent-%COMP%]{padding:0 65px 5px 10px;margin:0 20px 10px}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.list__content[_ngcontent-%COMP%]{display:-webkit-flex;display:flex;flex-direction:row;margin-bottom:5px;width:100%}.list__content-wrapper[_ngcontent-%COMP%]{display:flex}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.icon-column[_ngcontent-%COMP%]{font-size:20px;color:#000;line-height:22px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.image-column[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100px;height:100px;object-fit:cover}@media (max-width: 900px){.list__content-wrapper[_ngcontent-%COMP%]   .list__column.image-column[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:50px;height:50px}}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.image-column.placeholder[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:unset}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col3[_ngcontent-%COMP%]{flex-basis:450px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col4[_ngcontent-%COMP%]{width:20px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col5[_ngcontent-%COMP%]{flex-basis:400px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col6[_ngcontent-%COMP%]{flex-basis:200px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col7[_ngcontent-%COMP%]{margin-left:auto}.list__content[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.list__content-rows[_ngcontent-%COMP%]{width:100%}.list__column[_ngcontent-%COMP%]{margin-right:10px;word-break:break-word}@media (max-width: 900px){.list__column[_ngcontent-%COMP%]{margin-right:5px}}.list__column[_ngcontent-%COMP%]   .margin-top[_ngcontent-%COMP%]{margin-top:5px}.list__column[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style-type:square;list-style-position:inside}.list__column[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px}"],changeDetection:0})}return A})();var bu=a(34722),Od=a(80529),Uu=a(96681);function qu(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-article-appearance-extension-content",3),t.NdJ("entityUpdated",function(V){t.CHM(f);const Xe=t.oxw(2);return t.KtG(Xe.articleUpdated.emit(V))}),t.qZA()}if(2&A){const f=t.oxw(2);t.Q6J("entity",f.item)("entityType","Article")("filter",f.filter)}}function Bm(A,Gt){if(1&A&&(t.TgZ(0,"imx-list-extension-accordion-item",1),t.YNc(1,qu,1,3,"ng-template",2),t.qZA()),2&A){const f=t.oxw();t.Q6J("count",(null==f.item.appearances?null:f.item.appearances.length)+(null==f.item.pendingAppearances?null:f.item.pendingAppearances.length)+(null==f.item.refusedAppearances?null:f.item.refusedAppearances.length))}}let Am=(()=>{class A{constructor(){this.articleUpdated=new t.vpe}static#e=this.\u0275fac=function(L){return new(L||A)};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-article-list-extension"]],hostAttrs:[1,"imx-article-list-extension"],inputs:{item:"item",filter:"filter"},outputs:{articleUpdated:"articleUpdated"},decls:2,vars:1,consts:[["icon","icon-calendar-full","header","imxplatform.common-entity.list.extension.appearance.header",3,"count",4,"ngIf"],["icon","icon-calendar-full","header","imxplatform.common-entity.list.extension.appearance.header",3,"count"],["imxLazyListExtensionAccordionItem",""],[3,"entity","entityType","filter","entityUpdated"]],template:function(L,V){1&L&&(t.TgZ(0,"imx-list-extension-accordion"),t.YNc(1,Bm,2,1,"imx-list-extension-accordion-item",0),t.qZA()),2&L&&(t.xp6(),t.Q6J("ngIf",(null==V.item.appearances?null:V.item.appearances.length)+(null==V.item.pendingAppearances?null:V.item.pendingAppearances.length)+(null==V.item.refusedAppearances?null:V.item.refusedAppearances.length)>0))},dependencies:[e.O5,vu,bu.F,Od.j,Uu.K],encapsulation:2,data:{animation:jd.L5},changeDetection:0})}return A})();function hm(A,Gt){1&A&&t._UZ(0,"imx-create-new-entity-button",19),2&A&&t.Q6J("entityRoute","/articles")("entityResourceKeyPrefix","imxplatform.article")}function fc(A,Gt){1&A&&(t.TgZ(0,"imx-list-no-results"),t._uU(1,"imxplatform.article.list.no-records"),t.qZA())}function Zm(A,Gt){1&A&&t._UZ(0,"mat-progress-bar",20)}function ld(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-action-menu-item",31),t.NdJ("click",function(){t.CHM(f);const V=t.oxw().$implicit,Xe=t.oxw(3);return t.KtG(Xe.executeHistoryAction(Xe.getEntityName(),V.id))}),t._uU(1,"imxplatform.common-entity.list.history"),t.qZA()}2&A&&t.Q6J("icon","icon-compare")}function eu(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-article-list-extension",34),t.NdJ("articleUpdated",function(V){t.CHM(f);const Xe=t.oxw(4);return t.KtG(Xe.swapAppearancesInResultItem(V))}),t.qZA()}if(2&A){const f=t.oxw().$implicit,L=t.oxw(3);t.Q6J("item",f)("filter",L.filter)}}const Tp=A=>({selected:A}),Bu=A=>["edit",A];function Zu(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"mat-list-item",22)(1,"div",23)(2,"imx-list-row-selection",24),t.NdJ("selectionChanged",function(V){t.CHM(f);const Xe=t.oxw(3);return t.KtG(Xe.onSelectionChanged(V))}),t.qZA(),t.TgZ(3,"div",25)(4,"imx-list-row",26),t.NdJ("slideInEvent",function(V){t.CHM(f);const Xe=t.oxw(3);return t.KtG(Xe.dispatchSlideEvent(V))}),t.qZA()(),t.TgZ(5,"div",27)(6,"imx-dropup-button")(7,"imx-search-list-action-menu",12),t.NdJ("executeAction",function(V){const An=t.CHM(f).$implicit,Qo=t.oxw(3);return t.KtG(Qo.executeRowAction(V,An))}),t.ynx(8,28),t.TgZ(9,"imx-action-menu-item",29),t._uU(10," imxplatform.common-entity.list.edit "),t.qZA(),t.BQk(),t.ynx(11,13),t.YNc(12,ld,2,1,"imx-action-menu-item",30),t.TgZ(13,"imx-action-menu-item",31),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3);return t.KtG(An.executeReferencesAction(An.getEntityName(),Xe.id))}),t._uU(14,"imxplatform.common-entity.list.references"),t.qZA(),t.BQk(),t.qZA()(),t._UZ(15,"imx-entity-state",32),t.qZA()(),t.YNc(16,eu,1,2,"imx-article-list-extension",33),t.qZA()}if(2&A){const f=Gt.$implicit,L=t.oxw(3),V=t.MAs(28);t.uIk("data-scroll-id",f.id),t.xp6(),t.Q6J("ngClass",t.VKq(17,Tp,L.isItemSelected(f.id))),t.xp6(),t.Q6J("id",f.id)("checked",L.isItemSelected(f.id))("blockedByAction",L.isBlockedByAction(f.id)),t.xp6(2),t.Q6J("dataObject",f)("memoCount",L.getMemoCount(f.id))("isActiveSlideIn",L.isActiveSlideIn)("leftSlotTemplate",V),t.xp6(3),t.Q6J("actions",null==L.actionProvider?null:L.actionProvider.getRowActionsForType(L.getEntityName(),f.id)),t.xp6(2),t.Q6J("routerLink",t.VKq(19,Bu,f.id)),t.xp6(3),t.Q6J("ngIf",L.hasHistoryPermission()),t.xp6(),t.Q6J("icon","icon-link"),t.xp6(2),t.Q6J("key",f.entityState.key)("appearances",null==f?null:f.appearances)("inline",!1),t.xp6(),t.Q6J("ngIf",(null==f||null==f.appearances?null:f.appearances.length)+(null==f||null==f.pendingAppearances?null:f.pendingAppearances.length)+(null==f||null==f.refusedAppearances?null:f.refusedAppearances.length)>0)}}function Hm(A,Gt){if(1&A&&(t.TgZ(0,"mat-list"),t.YNc(1,Zu,17,21,"mat-list-item",21),t.qZA()),2&A){const f=t.oxw().ngIf,L=t.oxw();t.xp6(),t.Q6J("ngForOf",f.items)("ngForTrackBy",L.trackByItemId)}}function Cu(A,Gt){if(1&A&&(t.TgZ(0,"div"),t.YNc(1,Hm,2,2,"mat-list",8),t.qZA()),2&A){const f=Gt.ngIf;t.oxw();const L=t.MAs(9);t.xp6(),t.Q6J("ngIf",f.items.length>0)("ngIfElse",L)}}function yu(A,Gt){if(1&A&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"span",35),t._uU(4),t.qZA()(),t._UZ(5,"span",36)),2&A){const f=t.oxw();t.xp6(),t.hij("",t.lcZ(2,2,"imxplatform.common-entity.list.selected-items")," "),t.xp6(3),t.hij("(",null==f.selectedIds?null:f.selectedIds.size,")")}}function Xu(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-action-menu-item",17),t.NdJ("actionClicked",function(){t.CHM(f);const V=t.oxw();return t.KtG(V.addMemoAttributesOnSelectedIds())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&A&&(t.Q6J("icon","icon-bubble"),t.xp6(),t.hij(" ",t.lcZ(2,2,"imxplatform.entity-list.object-list.new-memo")," "))}function wm(A,Gt){if(1&A&&(t.TgZ(0,"a",37),t._uU(1),t.ALo(2,"readI18n"),t.qZA(),t._UZ(3,"imx-row-id-view",38)(4,"imx-row-client-view",39)),2&A){const f=Gt.dataObject,L=t.oxw();t.Q6J("routerLink",t.VKq(7,Bu,f.id)),t.xp6(),t.hij(" ",t.lcZ(2,5,f.title)," "),t.xp6(2),t.Q6J("dataObject",f),t.xp6(),t.Q6J("dataObject",f)("outsideCurrentClientHierachy$",L.isOutsideCurrentClientHierachy(null==f||null==f.client?null:f.client.id))}}let Bd=(()=>{class A extends Ec{constructor(f,L,V,Xe,An,Qo,Dr,es,Al,Rl,$l,kl,Jl,od,dm){super(f,L,V,An,Qo,Dr,Al,Rl,void 0,Jl,$l,kl,od,dm,es,{},!0),this.imxPermissions=i.uo,this.availableOrderFields=[{index:1,field:"TITLE",i18n:"entity.ExtCoreDataObject.title",type:an.m.alphanumeric},{index:2,field:"ID",i18n:"entity.DataObject.id",type:an.m.numeric},{index:4,field:"CREATION_TIME",i18n:"imxplatform.common-entity.list.sort.creationTime",type:an.m.numeric},{index:5,field:"LAST_CHANGE",i18n:"imxplatform.common-entity.list.sort.lastChange",type:an.m.numeric},{index:6,field:"LAST_CHANGE_FROM",i18n:"imxplatform.common-entity.list.sort.lastChangeFrom",type:an.m.alphanumeric}]}getEntityName(){return"Article"}getFilterParams(f){return this.platformDataAccessService.convertArticleClientParamsToRequestParams(f)}showMemos(){return!0}getSetStateAction(){return this.actionProvider.findActionForKey("article-action-set_state")}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(Il.J),t.Y36(l.F0),t.Y36(l.gz),t.Y36(i.Yz),t.Y36(c.Y),t.Y36(Wi.G),t.Y36(ae.uw),t.Y36(Ui.a),t.Y36(Bc.Y8),t.Y36(sn.nq),t.Y36(Wr.Q),t.Y36(mo.h),t.Y36(i.Ze),t.Y36(mc.o),t.Y36(i.Xh))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],features:[t.qOj],decls:29,vars:24,consts:[[1,"search-page"],[3,"formHandler","record","orderFields","orderField","orderDirection","enableCreateContactListOption","orderChanged","applyFilter","resetFilter"],[3,"totalNumber","entityResourceKeyPrefix","reload"],["list-header-button-row",""],[3,"entityRoute","entityResourceKeyPrefix",4,"hasAnyPermission"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],[4,"ngIf","ngIfElse"],[3,"paging","selection","pageChanged","selectAll"],["position","above","halign","start"],["imx-dropup-trigger",""],[3,"actions","executeAction"],["search-list-action-menu-middle",""],[3,"icon","actionClicked",4,"hasAnyPermission"],["icon","icon-star--add",3,"actionClicked"],[3,"actionClicked"],[3,"icon","actionClicked"],["articleLeftSlotTemplate",""],[3,"entityRoute","entityResourceKeyPrefix"],["mode","indeterminate"],["class","list__item","imxGenericSelector","",4,"ngFor","ngForOf","ngForTrackBy"],["imxGenericSelector","",1,"list__item"],[1,"list__row-wrapper",3,"ngClass"],[3,"id","checked","blockedByAction","selectionChanged"],[1,"list__row"],[3,"dataObject","memoCount","isActiveSlideIn","leftSlotTemplate","rightSlotTemplate","bottomSlotTemplate","slideInEvent"],[1,"list__row-action"],["search-list-action-menu-top",""],["icon","icon-pencil",3,"routerLink"],[3,"icon","click",4,"ngIf"],[3,"icon","click"],[3,"key","appearances","inline"],[3,"item","filter","articleUpdated",4,"ngIf"],[3,"item","filter","articleUpdated"],[1,"selected-size"],[1,"icon-chevron-down"],[1,"txt-bg","title_shortened",3,"routerLink"],[3,"dataObject"],[3,"dataObject","outsideCurrentClientHierachy$"]],template:function(L,V){if(1&L&&(t.TgZ(0,"div",0)(1,"imx-article-filter",1),t.NdJ("orderChanged",function(An){return V.sort(An)})("applyFilter",function(An){return V.search(An)})("resetFilter",function(){return V.reset()}),t.qZA(),t.TgZ(2,"imx-list-header",2),t.NdJ("reload",function(){return V.reloadComplete()}),t.ynx(3,3),t.YNc(4,hm,1,2,"imx-create-new-entity-button",4),t.BQk(),t.qZA(),t.TgZ(5,"imx-grid")(6,"imx-grid-element",5)(7,"imx-generic-slide-in-page"),t.YNc(8,fc,2,0,"ng-template",null,6,t.W1O)(10,Zm,1,0,"ng-template",null,7,t.W1O)(12,Cu,2,2,"div",8),t.ALo(13,"async"),t.qZA()()(),t.TgZ(14,"imx-list-footer",9),t.NdJ("pageChanged",function(An){return V.onPageChanged(An)})("selectAll",function(An){return V.onSelectAll(An)}),t.TgZ(15,"imx-dropup-button",10),t.YNc(16,yu,6,4,"ng-template",11),t.TgZ(17,"imx-search-list-action-menu",12),t.NdJ("executeAction",function(An){return V.executeBatchAction(An)}),t.ynx(18,13),t.YNc(19,Xu,3,4,"imx-action-menu-item",14),t.TgZ(20,"imx-action-menu-item",15),t.NdJ("actionClicked",function(){return V.addToObjectList()}),t._uU(21),t.ALo(22,"translate"),t.qZA(),t.TgZ(23,"imx-action-menu-item-create-contact-list",16),t.NdJ("actionClicked",function(){return V.proposeSelectedIdsAsContactList()}),t.qZA(),t.TgZ(24,"imx-action-menu-item",17),t.NdJ("actionClicked",function(){return V.exportStatisticsOnSelectedIds()}),t._uU(25),t.ALo(26,"translate"),t.qZA(),t.BQk(),t.qZA()()()(),t.YNc(27,wm,5,9,"ng-template",null,18,t.W1O)),2&L){const Xe=t.MAs(11);t.xp6(),t.Q6J("formHandler",V.filterFormHandler)("record",V.filter)("orderFields",V.availableOrderFields)("orderField",V.orderField)("orderDirection",V.orderDirection)("enableCreateContactListOption",!0),t.xp6(),t.Q6J("totalNumber",null==V.currentResult?null:V.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxplatform.article"),t.xp6(2),t.Q6J("hasAnyPermission",V.imxPermissions.F_ARTICLE_CREATE.name),t.xp6(8),t.Q6J("ngIf",t.lcZ(13,18,V.results))("ngIfElse",Xe),t.xp6(2),t.Q6J("paging",V.pagingModel)("selection",V.selectionModel),t.xp6(3),t.Q6J("actions",null==V.actionProvider?null:V.actionProvider.getBatchActionsForType(V.getEntityName())),t.xp6(2),t.Q6J("hasAnyPermission",V.memoCreatePermission),t.xp6(2),t.hij(" ",t.lcZ(22,20,"imxplatform.entity-list.object-list.action-title")," "),t.xp6(3),t.Q6J("icon","icon-pie-chart"),t.xp6(),t.hij(" ",t.lcZ(26,22,"imxplatform.common.export")," ")}},dependencies:[e.mk,e.sg,e.O5,ba.i$,ba.Tg,Ft.pW,l.rH,ki.z,wo.t,gr.F,On.M,_n.V,Ms.$,Sd,Am,Bs.r,Wa.n,Bt.Ee,jo.N,Cn._,uo.A,Ss.Y,Ks.V,Ca.w,Ia.k,yl.E,yr.R,kn.F,Fr.l,e.Ov,Y.X$,ue.j],styles:["[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.list__row[_ngcontent-%COMP%]{background:#fff;border:.5px solid #ced4e0;box-sizing:border-box;width:100%;padding:20px;z-index:1}@media (max-width: 900px){.list__row[_ngcontent-%COMP%]{padding:10px}}.list__row-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;box-sizing:border-box;position:relative;height:inherit}.list__row-wrapper.selected[_ngcontent-%COMP%]   .list__row[_ngcontent-%COMP%]{background-color:#eefafa}.list__row-action[_ngcontent-%COMP%]{min-width:45px;min-height:100%;display:flex;flex-direction:column;padding-left:5px;text-align:center;position:relative;z-index:1}@media (max-width: 900px){.list__row-action[_ngcontent-%COMP%]{min-width:30px;padding-left:2px}}.list__row-checkbox[_ngcontent-%COMP%]{margin:auto 5px auto 0}"]})}return A})();var xm=a(15646),Pd=a(86313),kt=a(4713),Jt=a(94023),he=a(34115),Re=a(818),Qe=a(60075),Ht=a(35119),qt=a(35418),Lo=a(45389),ur=a(39693),rr=a(23680),Oa=a(64170),Pa=a(98525),Ja=a(97049);function fs(A,Gt){if(1&A&&(t.TgZ(0,"imx-grid-element",3),t._UZ(1,"imx-form-control",4),t.qZA()),2&A){const f=Gt.$implicit,L=t.oxw();t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",f)("control",L.filterFormGroup.get(f.id))("form",L.filterFormGroup)("config",L.filterFormConfiguration)("formHandler",L.baseEntityFilterFormHandlerService)}}let Ic=(()=>{class A extends qr.O{constructor(f){super(),this.baseEntityFilterFormHandlerService=f,this.id="BASE_ENTITY_FILTER",this.titleKey="imxplatform.common-entity.filter.baseEntityFilter.header",this.icon="icon-cube",this.filterFields=[]}ngOnChanges(f){this.loaded$.next(!0),f.filterFormConfiguration&&(this.unsubscribeFromValueChanges(),this.filterFields=[],this.filterFields.push(...this.filterFormConfiguration.filterFields.map(L=>L.id)),this.subscribeToValueChanges(this.filterFormConfiguration.filterFields),setTimeout(()=>this.reset(),1),f.record&&this.formHandler&&setTimeout(()=>{this.handleIncomingValues(this.formHandler)},100))}ngOnInit(){this.includeFilter=!0}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(he.Tt))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-base-entity-filter-panel"]],hostAttrs:[1,"imx-base-entity-filter-panel"],inputs:{filterFormConfiguration:"filterFormConfiguration",filterFormGroup:"filterFormGroup"},features:[t._Bn([(0,qr.T)(A)]),t.qOj,t.TTD],decls:4,vars:2,consts:[[3,"formGroup"],[1,"filter__card"],["ngFor","",3,"ngForOf"],[3,"lg_w","sm_w"],[3,"field","control","form","config","formHandler"]],template:function(L,V){1&L&&(t.TgZ(0,"form",0)(1,"div",1)(2,"imx-grid"),t.YNc(3,fs,2,7,"ng-template",2),t.qZA()()()),2&L&&(t.Q6J("formGroup",V.filterFormGroup),t.xp6(3),t.Q6J("ngForOf",V.filterFormConfiguration.filterFields))},dependencies:[e.sg,x._Y,x.JL,x.sg,On.M,_n.V,ee.A],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}"]})}return A})();var Pc=a(83397),td=a(22415);function $c(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"div",33),t.NdJ("click",function(){t.CHM(f);const V=t.oxw();return t.KtG(V.scroll("left"))}),t._UZ(1,"span",34),t.qZA()}}function ud(A,Gt){if(1&A&&(t.TgZ(0,"mat-option",35),t._uU(1),t.ALo(2,"readI18n"),t.qZA()),2&A){const f=Gt.$implicit;t.s9C("matTooltip",f.value),t.Q6J("value",f.value),t.xp6(),t.Oqu(t.lcZ(2,3,f.label))}}function qc(A,Gt){if(1&A&&(t.TgZ(0,"mat-option",36),t._uU(1),t.qZA()),2&A){const f=Gt.$implicit;t.s9C("matTooltip",f.value),t.Q6J("value",f.value),t.xp6(),t.Oqu(f.label)}}function Dm(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"div",37),t.NdJ("click",function(){t.CHM(f);const V=t.oxw();return t.KtG(V.scroll("right"))}),t._UZ(1,"span",38),t.qZA()}}function oc(A,Gt){1&A&&t._UZ(0,"span",39)}const Zd=A=>({closed:A});let Sc=(()=>{class A extends Hi.z{constructor(f,L,V,Xe,An,Qo,Dr,es){super(f,L,V,Xe,An,Qo,Dr),this.translateService=es,this.entityName="none",this.defaultEntityOption={value:"",label:this.translateService.instant("imxplatform.common.select-placeholder-demand")},this.entities=[],this.modules=[],this.moduleMap=new Map,this.currentModuleName=""}ngOnInit(){super.ngOnInit(),this.baseEntities$.pipe((0,Yr.q)(1)).subscribe(f=>{const L=new Map,V=new Set;f.forEach(Xe=>{Xe.moduleId&&Xe.moduleId!==he.ch&&Xe.moduleId!==he.J5&&V.add(Xe.moduleId),L.get(Xe.moduleKey)||L.set(Xe.moduleKey,[]),L.get(Xe.moduleKey).push({value:Xe.dataObjectName,label:this.translateService.instant("entity."+Xe.dataObjectName+".entityName")})}),L.forEach(Xe=>Xe.sort((An,Qo)=>An.label.localeCompare(Qo.label))),this.moduleMap=L,this.modules.push({value:he.Q,label:this.translateService.instant("imxplatform.common.core-module-name")}),L.get(he.D_)&&this.modules.push({value:he.D_,label:this.translateService.instant("imxplatform.common.ibe-module-name")}),L.get(he.EW)&&this.modules.push({value:he.EW,label:"Event-Modul"}),(0,P.aj)(Array.from(V.keys()).map(Xe=>this.entitiesMgr.getEntityWithIdOfType("Productline",Xe))).subscribe(Xe=>{this.modules.push(...Xe.map(An=>({value:An.plKey,label:An.i18nName})).sort((An,Qo)=>(0,ga.Qi)(An.label,Qo.label,this.translateService.currentLang)))}),this.entities=[],this.entities.push(this.defaultEntityOption),this.entities.push(...this.moduleMap.get(this.formHandler.formGroup.get("moduleName").value))}),this.determineFormConfiguration(),this.currentModuleName=this.formHandler.formGroup.get("moduleName").value,this.formHandler.baseObject=this.record,this.formHandler.formGroup.get("moduleName").valueChanges.subscribe(f=>{f&&(!this.filterFormConfiguration||this.currentModuleName!==f)&&(this.currentModuleName=f,this.moduleMap.get(f)?(this.entities=[],this.entities.push(this.defaultEntityOption),this.entities.push(...this.moduleMap.get(f)),this.formHandler.formGroup.get("entityName").setValue(""),this.removePreviousFormControls(),this.determineFormConfiguration(),this.clearOrderPagingFields(),this.submit()):this.entities=[])}),this.formHandler.formGroup.get("entityName").valueChanges.subscribe(f=>{f&&(!this.filterFormConfiguration||this.filterFormConfiguration.entityName!==f)&&(this.removePreviousFormControls(),this.determineFormConfiguration(),this.clearOrderPagingFields(),this.submit())})}clearOrderPagingFields(){delete this.record.page,delete this.record.orderField,delete this.record.orderDirection,delete this.record.pageSize}beforeSubmit(f){delete f.page}removePreviousFormControls(){this.filterFormConfiguration&&Object.keys(this.filterFormGroup.controls).filter(f=>"moduleName"!==f&&"entityName"!==f).forEach(f=>{this.filterFormConfiguration.filterFields.some(L=>L.id===f)&&(this.filterFormGroup.removeControl(f),delete this.record[f])})}determineFormConfiguration(){const f=this.formHandler.formGroup.get("moduleName").value,L=this.formHandler.formGroup.get("entityName").value;this.filterFormConfiguration=this.formHandler.getBaseEntityConfig(f,L),this.formHandler.formConfiguration.fields=[],this.formHandler.formConfiguration.fields.push(he.CJ),this.formHandler.formConfiguration.fields.push(he.pN),this.formHandler.formConfiguration.fields.push(...this.filterFormConfiguration.filterFields);const V=this.formHandler.buildReactiveFormDataStructure(this.filterFormConfiguration.filterFields);Object.keys(V.controls).forEach(Xe=>this.formHandler.formGroup.registerControl(Xe,V.controls[Xe])),this.filterFormGroup=this.formHandler.formGroup,this.determineOrderFields()}determineOrderFields(){this.orderFields=[];let f=1;const L=this.filterFormConfiguration.optionalOrderFields;L?(L.some(V=>"id"===V.field.toLowerCase())||this.orderFields.unshift({index:Math.min(...L.map(V=>V.index))-1,field:"id",i18n:"entity.DataObject.id",type:an.m.numeric}),this.orderFields=this.orderFields.concat(L)):this.filterFormConfiguration.filterFields.forEach(V=>{this.orderFields.push(!V.type||"int"!==V.type&&"number"!==V.type?V.type&&"id"===V.id?{index:f++,field:V.id,i18n:V.label,type:an.m.numeric}:{index:f++,field:V.id,i18n:V.label,type:an.m.alphanumeric}:{index:f++,field:V.id,i18n:V.label,type:an.m.numeric})})}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(i.qB),t.Y36(sn.nq),t.Y36(ur.$),t.Y36(c.Y),t.Y36(ae.uw),t.Y36(l.F0),t.Y36(i.Pc),t.Y36(Y.sK))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-base-entity-filter"]],viewQuery:function(L,V){if(1&L&&t.Gf(qr.O,5),2&L){let Xe;t.iGM(Xe=t.CRH())&&(V.allFilterPanels=Xe)}},inputs:{baseEntities$:"baseEntities$"},features:[t.qOj],decls:39,vars:26,consts:[[3,"formGroup"],[1,"filter__sticky-wrapper","pinable-transition","pinable-aware"],["lg_w","12","lg_o","0"],[1,"filter__header-content"],[1,"filter__header-wrapper"],["filterHeader",""],[1,"filter__scroll-button-wrapper"],["class","filter__scroll-button left",3,"click",4,"ngIf"],[1,"filter__header"],[1,"filter__header__left"],[2,"overflow","hidden"],["scrollbar",""],[1,"filter__tabs"],["filterTabs",""],[1,"select-field-header-wrapper"],[1,"select-field-header","first"],["id","module","formControlName","moduleName"],["class","module-name-option","matTooltipShowDelay","5000",3,"value","matTooltip",4,"ngFor","ngForOf"],[1,"arrow-right-big"],[1,"select-field-header","second"],["id","entity","formControlName","entityName"],["matTooltipShowDelay","5000",3,"value","matTooltip",4,"ngFor","ngForOf"],[3,"panel","filterChanged","opened","closeClick","headerClick"],["class","filter__scroll-button right",3,"click",4,"ngIf"],[1,"filter__buttons"],["filterButtons",""],[1,"imx-button","prio2","with-modify",3,"click"],["class","icon icon-asterisk",4,"ngIf"],[3,"orderFields","orderFieldKey","orderDirection","orderChanged"],[1,"filter__contents","pinable-transition","pinable-aware",3,"ngClass"],[3,"formGroup","ngSubmit","keyup.enter"],[3,"pinned","parentForm","formHandler","record","filterFormConfiguration","filterFormGroup"],["baseEntityFilterPanel",""],[1,"filter__scroll-button","left",3,"click"],[1,"icon-chevron-leftBold"],["matTooltipShowDelay","5000",1,"module-name-option",3,"value","matTooltip"],["matTooltipShowDelay","5000",3,"value","matTooltip"],[1,"filter__scroll-button","right",3,"click"],[1,"icon-chevron-rightBold"],[1,"icon","icon-asterisk"]],template:function(L,V){if(1&L){const Xe=t.EpF();t.TgZ(0,"div")(1,"form",0)(2,"div",1)(3,"imx-grid")(4,"imx-grid-element",2)(5,"div",3)(6,"div",4,5)(8,"div",6),t.YNc(9,$c,2,0,"div",7),t.qZA(),t.TgZ(10,"div",8)(11,"div",9)(12,"div",10,11)(14,"div",12,13)(16,"div",14)(17,"div",15)(18,"mat-form-field")(19,"mat-select",16),t.YNc(20,ud,3,5,"mat-option",17),t.qZA()()(),t._UZ(21,"div",18),t.TgZ(22,"div",19)(23,"mat-form-field")(24,"mat-select",20),t.YNc(25,qc,2,3,"mat-option",21),t.qZA()()()(),t.TgZ(26,"imx-filter-header",22),t.NdJ("closeClick",function(){t.CHM(Xe);const Qo=t.MAs(38);return t.KtG(V.resetFilter(Qo.id))})("headerClick",function(){t.CHM(Xe);const Qo=t.MAs(38);return t.KtG(V.toggleFilterContent(Qo.id))}),t.qZA()()(),t.YNc(27,Dm,2,0,"div",23),t.TgZ(28,"div",24,25)(30,"button",26),t.NdJ("click",function(){return V.hideFilterContent(),V.submit()}),t._uU(31),t.ALo(32,"translate"),t.YNc(33,oc,1,0,"span",27),t.qZA()()()()(),t.TgZ(34,"imx-sort-button",28),t.NdJ("orderChanged",function(Qo){return V.onOrderChanged(Qo)}),t.qZA()()()()(),t.TgZ(35,"div",29)(36,"form",30),t.NdJ("ngSubmit",function(){return V.submit()})("keyup.enter",function(){return V.hideFilterContent(),V.submit()}),t._UZ(37,"imx-base-entity-filter-panel",31,32),t.qZA()()()()}if(2&L){const Xe=t.MAs(38);t.xp6(),t.Q6J("formGroup",V.formHandler.formGroup),t.xp6(8),t.Q6J("ngIf",V.scrollbarLeftShown),t.xp6(11),t.Q6J("ngForOf",V.modules),t.xp6(5),t.Q6J("ngForOf",V.entities),t.xp6(),t.Q6J("panel",Xe)("filterChanged",V.formHandler.formGroup.dirty)("opened",V.isShownFilterContent(Xe.id)),t.xp6(),t.Q6J("ngIf",V.scrollbarRightShown),t.xp6(4),t.hij(" ",t.lcZ(32,22,"imxplatform.common-entity.filter.apply")," "),t.xp6(2),t.Q6J("ngIf",V.formHandler.formGroup.dirty),t.xp6(),t.Q6J("orderFields",V.orderFields)("orderFieldKey",V.orderField)("orderDirection",V.orderDirection),t.xp6(),t.Q6J("@openClose",V.anyFilterContentShown()?"open":"closed")("ngClass",t.VKq(24,Zd,!V.anyFilterContentShown())),t.xp6(),t.Q6J("formGroup",V.formHandler.formGroup),t.xp6(),t.Q6J("pinned",!0)("parentForm",V.formHandler.formGroup)("formHandler",V.formHandler)("record",V.record)("filterFormConfiguration",V.filterFormConfiguration)("filterFormGroup",V.filterFormGroup)}},dependencies:[e.mk,e.sg,e.O5,x._Y,x.JJ,x.JL,rr.ey,Oa.KE,Pa.gD,qi.gM,x.sg,x.u,On.M,_n.V,Ic,Pc.B,td.A,Y.X$,ue.j],styles:['.filter__sticky-wrapper[_ngcontent-%COMP%]{position:fixed;left:0;top:50px;width:100%;z-index:3}.filter__header-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:flex-start}.filter__scroll-button-wrapper[_ngcontent-%COMP%]{position:relative}.filter__scroll-button[_ngcontent-%COMP%]{height:50px;width:36px;font-size:14px;line-height:18px;display:flex;flex-direction:row;align-items:center;justify-content:center;cursor:pointer;background-color:#eefafa;z-index:99}.filter__scroll-button.left[_ngcontent-%COMP%]{position:absolute;top:0;left:-36px;border-right:1px solid #fff}.filter__scroll-button.right[_ngcontent-%COMP%]{border-left:1px solid #fff;border-right:1px solid #fff}.filter__header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%}.filter__header__left[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center}.filter__header__left[_ngcontent-%COMP%]   .filter__tabs[_ngcontent-%COMP%]{display:flex;flex-direction:row}.filter__header__left[_ngcontent-%COMP%]   .filter__buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;position:relative}.filter__header__left[_ngcontent-%COMP%]   .filter__buttons[_ngcontent-%COMP%]   .triangle-up[_ngcontent-%COMP%]{position:absolute;top:53px;left:20px;z-index:999}.filter__header__left[_ngcontent-%COMP%]   .filter__buttons[_ngcontent-%COMP%]   .plus-button[_ngcontent-%COMP%]{height:50px;width:50px;font-size:14px;line-height:18px;display:flex;flex-direction:row;align-items:center;justify-content:center;cursor:pointer;border-right:1px solid #fff}.filter__header__left[_ngcontent-%COMP%]   .filter__buttons[_ngcontent-%COMP%]   .plus-button.initial[_ngcontent-%COMP%]{border-left:1px solid #fff}.filter__header__left[_ngcontent-%COMP%]   .filter__buttons[_ngcontent-%COMP%]   .plus-button.star-button[_ngcontent-%COMP%]{font-size:24px}.filter__header__left[_ngcontent-%COMP%]   .filter__buttons[_ngcontent-%COMP%]   imx-dropup-button[_ngcontent-%COMP%]{height:50px}.filter__header__left[_ngcontent-%COMP%]   .filter__buttons[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.filter__contents[_ngcontent-%COMP%]{background-color:#fff;border-bottom:1px solid #eefafa;box-shadow:0 0 10px #0003;position:fixed;top:100px;left:0;z-index:3;width:100%}.filter__contents.closed[_ngcontent-%COMP%]     .grid{height:0}.flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__header[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{min-height:40px}.filter__header-content[_ngcontent-%COMP%]{display:flex}.filter__header-wrapper[_ngcontent-%COMP%]{flex:1}.filter-container[_ngcontent-%COMP%] >   div{height:100%}  .select-field-header-wrapper{display:flex;flex-direction:row}  .select-field-header-wrapper .select-field-header{z-index:3}  .select-field-header-wrapper .mat-mdc-form-field .mat-mdc-select .mat-mdc-select-trigger{height:50px;line-height:50px;border-radius:unset;border:none;background-color:transparent}.module-name-option[ng-reflect-value^=modules_][_ngcontent-%COMP%]{font-style:italic}.arrow-right-big[_ngcontent-%COMP%]{width:50px;height:50px;box-sizing:border-box;left:50%;top:50%;transform:rotate(45deg);margin-left:-20px;margin-right:12px}.arrow-right-big[_ngcontent-%COMP%]:before{content:"";width:100%;height:100%;border-width:1px 0 0 0;border-style:solid;border-color:#fff;display:block}.arrow-right-big[_ngcontent-%COMP%]:after{content:"";float:left;position:relative;top:-100%;width:100%;height:100%;border-width:0 1px 0 0;border-style:solid;border-color:#fff}.select-field-header[_ngcontent-%COMP%]{height:50px;min-width:300px}.select-field-header.first[_ngcontent-%COMP%]{border-left:1px solid #fff}.select-field-header.second[_ngcontent-%COMP%]{border-right:1px solid #fff}'],data:{animation:jd.zD}})}return A})();function Md(A,Gt){1&A&&(t.TgZ(0,"imx-grid")(1,"imx-grid-element",5)(2,"div",13)(3,"h1",14),t._uU(4,"imxplatform.base-entity.list.header-no-filter"),t.qZA()()()()),2&A&&(t.xp6(),t.Q6J("lg_w",6)("lg_o",0))}const Pm=A=>({count:A});function Td(A,Gt){if(1&A&&(t.TgZ(0,"h1"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&A){const f=t.oxw(2);t.xp6(),t.Oqu(t.xi3(2,1,"entity."+f.filter.entityName+".count",t.VKq(4,Pm,f.numberOfResults)))}}function Mm(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"button",20),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(2);return t.KtG(V.newBaseEntity())}),t._UZ(1,"i",21),t._uU(2),t.ALo(3,"translate"),t.qZA()}2&A&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"imxplatform.base-entity.list.add"),""))}function Gm(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-grid")(1,"imx-grid-element",5)(2,"div",13)(3,"a",15),t.NdJ("click",function(){t.CHM(f);const V=t.oxw();return t.KtG(V.reloadComplete())}),t._UZ(4,"span",16),t.qZA(),t.TgZ(5,"imx-tooltip",17),t.YNc(6,Td,3,6,"h1",4),t.qZA()()(),t.TgZ(7,"imx-grid-element",5)(8,"div",18),t.YNc(9,Mm,4,3,"button",19),t.qZA()()()}if(2&A){const f=t.oxw();t.xp6(),t.Q6J("lg_w",6)("lg_o",0),t.xp6(4),t.Q6J("tooltipText",f.filter.entityName)("offset",3e3),t.xp6(),t.Q6J("ngIf",null==f.currentResult?null:f.currentResult.totalNumberOfResults),t.xp6(),t.Q6J("lg_w",6)("lg_o",0),t.xp6(2),t.Q6J("ngIf",f.isCreateButtonVisible())}}function Ou(A,Gt){1&A&&(t.TgZ(0,"mat-list",22)(1,"imx-list-no-results"),t._uU(2,"imxplatform.base-entity.list.no-records"),t.qZA()())}function Lc(A,Gt){1&A&&t._UZ(0,"mat-progress-bar",23)}function Hc(A,Gt){1&A&&(t.TgZ(0,"div",24),t._UZ(1,"div",25),t.qZA()),2&A&&t.Q6J("ngClass",Gt.class)}const Hd=A=>({"id-column":A});function Pu(A,Gt){if(1&A&&(t.TgZ(0,"th",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&A){const f=Gt.$implicit,L=t.oxw(6);t.Q6J("ngClass",t.VKq(5,Hd,f.id.toLocaleLowerCase()==="id".toLocaleLowerCase()))("className",L.getListColumnStyleClass(f)),t.xp6(),t.hij(" ",t.lcZ(2,3,f.label)," ")}}function tu(A,Gt){if(1&A&&(t.TgZ(0,"tr"),t._UZ(1,"th",32),t.YNc(2,Pu,3,7,"th",33),t._UZ(3,"th",34),t.qZA()),2&A){const f=Gt.$implicit;t.xp6(2),t.Q6J("ngForOf",f)}}function Jm(A,Gt){if(1&A&&(t.TgZ(0,"picture",42),t._UZ(1,"img",43),t.qZA()),2&A){const f=t.oxw(2).$implicit,L=t.oxw(2).$implicit,V=t.oxw(5);t.xp6(),t.Q6J("src",V.renderColumn(f.extractor(L),f),t.LSH)}}function Mu(A,Gt){if(1&A&&(t.TgZ(0,"span",44),t.ALo(1,"translate"),t.ALo(2,"readI18n"),t._uU(3),t.ALo(4,"translate"),t.ALo(5,"readI18n"),t.qZA()),2&A){const f=t.oxw(2).$implicit,L=t.oxw(2).$implicit,V=t.oxw(5);t.Q6J("matTooltip",t.lcZ(1,3,t.lcZ(2,5,V.renderColumn(f.extractor(L),f))))("matTooltipShowDelay",500),t.xp6(3),t.Oqu(t.lcZ(4,7,t.lcZ(5,9,V.renderColumn(f.extractor(L),f))))}}function Im(A,Gt){if(1&A){const f=t.EpF();t.ynx(0),t.TgZ(1,"td",39),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(3).$implicit,Xe=t.oxw(5);return t.KtG(Xe.editBaseEntity(V))}),t.YNc(2,Jm,2,1,"picture",40),t.TgZ(3,"div"),t.YNc(4,Mu,6,11,"span",41),t.qZA()(),t.BQk()}if(2&A){const f=t.oxw().$implicit,L=t.oxw(2).$implicit,V=t.oxw(5);t.xp6(),t.Gre("txt-link ",V.getListColumnStyleClass(f),""),t.Q6J("ngClass",t.VKq(9,Hd,f.id.toLocaleLowerCase()==="id".toLocaleLowerCase())),t.xp6(),t.Q6J("ngIf",V.isRenderedAsImage(f.extractor(L),f)&&V.renderColumn(f.extractor(L),f)),t.xp6(),t.Tol(V.getListColumnStyleClass(f)),t.xp6(),t.Q6J("ngIf",!V.isRenderedAsImage(f.extractor(L),f))}}function Mc(A,Gt){if(1&A&&(t.TgZ(0,"picture",42),t._UZ(1,"img",43),t.qZA()),2&A){const f=t.oxw(2).$implicit,L=t.oxw(2).$implicit,V=t.oxw(5);t.xp6(),t.Q6J("src",V.renderColumn(f.extractor(L),f),t.LSH)}}function gc(A,Gt){if(1&A&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"readI18n"),t.qZA()),2&A){const f=t.oxw(2).$implicit,L=t.oxw(2).$implicit,V=t.oxw(5);t.xp6(),t.Oqu(t.lcZ(2,1,t.lcZ(3,3,V.renderColumn(f.extractor(L),f))))}}function $d(A,Gt){if(1&A&&(t.TgZ(0,"td",45),t.YNc(1,Mc,2,1,"picture",40)(2,gc,4,5,"span",4),t.qZA()),2&A){const f=t.oxw().$implicit,L=t.oxw(2).$implicit,V=t.oxw(5);t.Q6J("ngClass",t.VKq(3,Hd,f.id.toLocaleLowerCase()==="id".toLocaleLowerCase())),t.xp6(),t.Q6J("ngIf",V.isRenderedAsImage(f.extractor(L),f)&&V.renderColumn(f.extractor(L),f)),t.xp6(),t.Q6J("ngIf",!V.isRenderedAsImage(f.extractor(L),f))}}function Rd(A,Gt){if(1&A&&(t.ynx(0),t.YNc(1,Im,5,11,"ng-container",28)(2,$d,3,5,"ng-template",null,38,t.W1O),t.BQk()),2&A){const f=t.MAs(3),L=t.oxw().$implicit;t.xp6(),t.Q6J("ngIf",L)("ngIfElse",f)}}function nu(A,Gt){if(1&A){const f=t.EpF();t.ynx(0),t.TgZ(1,"imx-action-menu-item",46),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(3).$implicit,Xe=t.oxw(5);return t.KtG(Xe.editBaseEntity(V))}),t._uU(2," imxplatform.common-entity.list.edit "),t.qZA(),t.BQk()}}function Gc(A,Gt){if(1&A){const f=t.EpF();t.ynx(0),t.TgZ(1,"imx-action-menu-item",47),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(3).$implicit,Xe=t.oxw(5);return t.KtG(Xe.deleteBaseEntity(V))}),t._uU(2," imxplatform.common-entity.list.remove "),t.qZA(),t.BQk()}}function sc(A,Gt){if(1&A){const f=t.EpF();t.ynx(0),t.TgZ(1,"imx-action-menu-item",48),t.NdJ("click",function(){t.CHM(f);const V=t.oxw().$implicit,Xe=t.oxw(3).$implicit,An=t.oxw(5);return t.KtG(An.executeBaseEntityAction(V,Xe))}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.BQk()}if(2&A){const f=t.oxw().$implicit;t.xp6(),t.Q6J("icon",f.icon),t.xp6(),t.hij(" ",t.lcZ(3,2,f.label)," ")}}function pd(A,Gt){if(1&A&&(t.ynx(0),t.YNc(1,sc,4,4,"ng-container",4),t.ALo(2,"async"),t.BQk()),2&A){const f=Gt.$implicit,L=t.oxw(3).$implicit,V=t.oxw(5);t.xp6(),t.Q6J("ngIf",t.lcZ(2,1,V.actionableMap.get(L.id).get(f.actionName)))}}function rm(A,Gt){if(1&A&&(t.TgZ(0,"imx-dropup-button")(1,"imx-action-menu"),t.YNc(2,nu,3,0,"ng-container",4)(3,Gc,3,0,"ng-container",4),t.ALo(4,"async"),t.YNc(5,pd,3,3,"ng-container",37),t.qZA()()),2&A){const f=t.oxw().$implicit,L=t.oxw().$implicit,V=t.oxw(5);t.xp6(2),t.Q6J("ngIf",f),t.xp6(),t.Q6J("ngIf",t.lcZ(4,3,V.removeableMap.get(L.id))),t.xp6(2),t.Q6J("ngForOf",V.actions)}}function Gd(A,Gt){if(1&A&&(t.ynx(0),t.YNc(1,Rd,4,2,"ng-container",37),t.TgZ(2,"td",34),t.YNc(3,rm,6,5,"imx-dropup-button",4),t.ALo(4,"async"),t.ALo(5,"async"),t.qZA(),t.BQk()),2&A){const f=Gt.$implicit,L=t.oxw(),V=L.columns,Xe=L.$implicit,An=t.oxw(5);t.xp6(),t.Q6J("ngForOf",V),t.xp6(2),t.Q6J("ngIf",f||t.lcZ(4,2,An.removeableMap.get(Xe.id))||t.lcZ(5,4,An.anyActionAllowed.get(Xe.id)))}}const vm=A=>({selected:A}),Us=A=>[A];function Tu(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"tr",24)(1,"td",32)(2,"mat-checkbox",36),t.NdJ("change",function(V){t.CHM(f);const Xe=t.oxw(5);return t.KtG(Xe.onSelectionChanged(V))}),t.qZA()(),t.YNc(3,Gd,6,6,"ng-container",37),t.ALo(4,"async"),t.qZA()}if(2&A){const f=Gt.$implicit,L=t.oxw(5);t.Q6J("ngClass",t.VKq(6,vm,L.isItemSelected(f.id))),t.xp6(2),t.Q6J("value",f.id)("checked",L.isItemSelected(f.id)),t.xp6(),t.Q6J("ngForOf",t.VKq(8,Us,t.lcZ(4,4,L.editableMap.get(f.id))))}}function Hu(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"p-table",29),t.YNc(2,tu,4,1,"ng-template",30)(3,Tu,5,10,"ng-template",31),t.qZA(),t.BQk()),2&A){const f=t.oxw(2).ngIf,L=t.oxw(2);t.xp6(),t.Q6J("columns",L.fields)("value",f.items)("resizableColumns",!0)}}function Gu(A,Gt){if(1&A&&(t.TgZ(0,"th",51),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&A){const f=Gt.$implicit;t.xp6(),t.hij(" ",t.lcZ(2,1,f.label)," ")}}function gp(A,Gt){if(1&A&&(t.TgZ(0,"tr"),t._UZ(1,"th",32),t.YNc(2,Gu,3,3,"th",50),t._UZ(3,"th",34),t.qZA()),2&A){const f=Gt.$implicit;t.xp6(2),t.Q6J("ngForOf",f)}}function Ep(A,Gt){if(1&A&&t._UZ(0,"p-treeTableToggler",54),2&A){const f=t.oxw(3).$implicit;t.Q6J("rowNode",f)}}function Ju(A,Gt){if(1&A){const f=t.EpF();t.ynx(0),t.TgZ(1,"a",55),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(3).rowData,Xe=t.oxw(5);return t.KtG(Xe.editBaseEntity(V))}),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"readI18n"),t.qZA(),t.BQk()}if(2&A){const f=t.oxw().$implicit,L=t.oxw(2).rowData,V=t.oxw(5);t.xp6(2),t.Oqu(t.lcZ(3,1,t.lcZ(4,3,V.renderColumn(f.extractor(L),f))))}}function Fe(A,Gt){if(1&A&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"readI18n"),t.qZA()),2&A){const f=t.oxw().$implicit,L=t.oxw(2).rowData,V=t.oxw(5);t.xp6(),t.Oqu(t.lcZ(2,1,t.lcZ(3,3,V.renderColumn(f.extractor(L),f))))}}function Pe(A,Gt){if(1&A&&(t.TgZ(0,"td",44),t.ALo(1,"translate"),t.ALo(2,"readI18n"),t.YNc(3,Ep,1,1,"p-treeTableToggler",53)(4,Ju,5,5,"ng-container",28)(5,Fe,4,5,"ng-template",null,38,t.W1O),t.qZA()),2&A){const f=Gt.$implicit,L=t.MAs(6),V=t.oxw().$implicit,Xe=t.oxw().rowData,An=t.oxw(5);t.Q6J("matTooltip",t.lcZ(1,5,t.lcZ(2,7,An.renderColumn(f.extractor(Xe),f))))("matTooltipShowDelay",500),t.xp6(3),t.Q6J("ngIf",f.baseEntityFieldOption.isTreeToggleField),t.xp6(),t.Q6J("ngIf",V)("ngIfElse",L)}}function St(A,Gt){if(1&A){const f=t.EpF();t.ynx(0),t.TgZ(1,"imx-action-menu-item",48),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(3).rowData,Xe=t.oxw(5);return t.KtG(Xe.editBaseEntity(V))}),t._uU(2," imxplatform.common-entity.list.edit "),t.qZA(),t.BQk()}2&A&&(t.xp6(),t.Q6J("icon","icon-pencil"))}function un(A,Gt){if(1&A){const f=t.EpF();t.ynx(0),t.TgZ(1,"imx-action-menu-item",48),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(3).rowData,Xe=t.oxw(5);return t.KtG(Xe.newBaseEntity(V))}),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.BQk()}if(2&A){const f=t.oxw(8);t.xp6(),t.Q6J("icon","icon-plus"),t.xp6(),t.AsE("",t.lcZ(3,3,"entity."+f.filter.entityName+".entityName")," ",t.lcZ(4,5,"imxplatform.base-entity.list.append"),"")}}function vi(A,Gt){if(1&A){const f=t.EpF();t.ynx(0),t.TgZ(1,"imx-action-menu-item",56),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(3).rowData,Xe=t.oxw(5);return t.KtG(Xe.deleteBaseEntity(V))}),t._uU(2," imxplatform.common-entity.list.remove "),t.qZA(),t.BQk()}2&A&&(t.xp6(),t.Q6J("icon","icon-trash"))}function qe(A,Gt){if(1&A){const f=t.EpF();t.ynx(0),t.TgZ(1,"imx-action-menu-item",48),t.NdJ("click",function(){t.CHM(f);const V=t.oxw().$implicit,Xe=t.oxw(3).rowData,An=t.oxw(5);return t.KtG(An.executeBaseEntityAction(V,Xe))}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.BQk()}if(2&A){const f=t.oxw().$implicit;t.xp6(),t.Q6J("icon",f.icon),t.xp6(),t.hij(" ",t.lcZ(3,2,f.label)," ")}}function Xi(A,Gt){if(1&A&&(t.ynx(0),t.YNc(1,qe,4,4,"ng-container",4),t.ALo(2,"async"),t.BQk()),2&A){const f=Gt.$implicit,L=t.oxw(3).rowData,V=t.oxw(5);t.xp6(),t.Q6J("ngIf",t.lcZ(2,1,V.actionableMap.get(L.id).get(f.actionName)))}}function xt(A,Gt){if(1&A&&(t.TgZ(0,"imx-dropup-button")(1,"imx-action-menu"),t.YNc(2,St,3,1,"ng-container",4)(3,un,5,7,"ng-container",4)(4,vi,3,1,"ng-container",4),t.ALo(5,"async"),t.YNc(6,Xi,3,3,"ng-container",37),t.qZA()()),2&A){const f=t.oxw().$implicit,L=t.oxw().rowData,V=t.oxw(5);t.xp6(2),t.Q6J("ngIf",f),t.xp6(),t.Q6J("ngIf",V.hasCreatePermission),t.xp6(),t.Q6J("ngIf",t.lcZ(5,4,V.removeableMap.get(L.id))),t.xp6(2),t.Q6J("ngForOf",V.actions)}}function jt(A,Gt){if(1&A&&(t.ynx(0),t.YNc(1,Pe,7,9,"td",52),t.TgZ(2,"td",34),t.YNc(3,xt,7,6,"imx-dropup-button",4),t.ALo(4,"async"),t.ALo(5,"async"),t.qZA(),t.BQk()),2&A){const f=Gt.$implicit,L=t.oxw(),V=L.columns,Xe=L.rowData,An=t.oxw(5);t.xp6(),t.Q6J("ngForOf",V),t.xp6(2),t.Q6J("ngIf",f||t.lcZ(4,2,An.removeableMap.get(Xe.id))||t.lcZ(5,4,An.anyActionAllowed.get(Xe.id)))}}function jn(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"tr")(1,"td",32)(2,"mat-checkbox",36),t.NdJ("change",function(V){t.CHM(f);const Xe=t.oxw(5);return t.KtG(Xe.onSelectionChanged(V))}),t.qZA()(),t.YNc(3,jt,6,6,"ng-container",37),t.ALo(4,"async"),t.qZA()}if(2&A){const f=Gt.rowData,L=t.oxw(5);t.xp6(2),t.Q6J("value",f.id)("checked",L.isItemSelected(f.id)),t.xp6(),t.Q6J("ngForOf",t.VKq(5,Us,t.lcZ(4,3,L.editableMap.get(f.id))))}}function ro(A,Gt){if(1&A){const f=t.EpF();t.ynx(0),t.TgZ(1,"p-treeTable",49),t.NdJ("onNodeExpand",function(V){t.CHM(f);const Xe=t.oxw(4);return t.KtG(Xe.saveTreeState(V))})("onNodeCollapse",function(V){t.CHM(f);const Xe=t.oxw(4);return t.KtG(Xe.saveTreeState(V))}),t.YNc(2,gp,4,1,"ng-template",30)(3,jn,5,7,"ng-template",31),t.qZA(),t.BQk()}if(2&A){const f=t.oxw(4);t.xp6(),t.Q6J("columns",f.fields)("value",f.treeRootNodes)("resizableColumns",!0)}}function Bo(A,Gt){if(1&A&&(t.ynx(0),t.YNc(1,Hu,4,3,"ng-container",4)(2,ro,4,3,"ng-container",4),t.BQk()),2&A){const f=t.oxw(3);t.xp6(),t.Q6J("ngIf",!f.isTreeData),t.xp6(),t.Q6J("ngIf",f.isTreeData)}}function jr(A,Gt){if(1&A&&(t.TgZ(0,"div",27),t.YNc(1,Bo,3,2,"ng-container",28),t.qZA()),2&A){const f=Gt.ngIf;t.oxw(2);const L=t.MAs(9);t.xp6(),t.Q6J("ngIf",f.items.length>0)("ngIfElse",L)}}function Hr(A,Gt){if(1&A&&(t.ynx(0),t.YNc(1,jr,2,2,"div",26),t.ALo(2,"async"),t.BQk()),2&A){const f=t.oxw(),L=t.MAs(11);t.xp6(),t.Q6J("ngIf",t.lcZ(2,2,f.results))("ngIfElse",L)}}function al(A,Gt){if(1&A&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"span",57),t._uU(4),t.qZA()(),t._UZ(5,"span",58)),2&A){const f=t.oxw();t.xp6(),t.hij("",t.lcZ(2,2,"imxplatform.common-entity.list.selected-items")," "),t.xp6(3),t.hij("(",null==f.selectedIds?null:f.selectedIds.size,")")}}function Jd(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-search-list-action-menu",59),t.NdJ("executeAction",function(V){t.CHM(f);const Xe=t.oxw();return t.KtG(Xe.executeBatchAction(V))}),t.qZA()}if(2&A){const f=t.oxw();t.Q6J("actions",f.getActions())}}function Qd(A,Gt){if(1&A){const f=t.EpF();t.ynx(0),t.TgZ(1,"imx-action-menu-item",60),t.NdJ("actionClicked",function(){t.CHM(f);const V=t.oxw();return t.KtG(V.deleteBaseEntityBatch())}),t._uU(2," imxplatform.common-entity.list.remove "),t.qZA(),t.BQk()}2&A&&(t.xp6(),t.Q6J("icon","icon-trash"))}let op=(()=>{class A extends Ht.R{constructor(f,L,V,Xe,An,Qo,Dr,es,Al,Rl,$l,kl,Jl,od,dm,Ku,Xh,ex,cC){super(f,L,V,Xe,An,Qo,Dr,es,Al,Rl,dm,void 0,ex,$l,{moduleName:"",entityName:""}),this.filterFormHandler=Dr,this.actionProvider=$l,this.ngControlBuilder=kl,this.runtimeContextService=Jl,this.imxSecurityManagerService=od,this.imxEntitiesMgrService=dm,this.formatterService=Ku,this.permissionManagerService=Xh,this.translateService=ex,this.injector=cC,this.currentPageSize=hr.L8,this.orderField="id",this.orderDirection="ASC",this.isTreeData=!1,this.treeRootNodes=[],this.treeState=[],this.treeNodesFilteredCount=0,this.editableMap=new Map,this.removeableMap=new Map,this.actionableMap=new Map,this.anyActionAllowed=new Map,this._deliveryChannelEntityName="DeliveryChannel",this.originDataSource=f}ngOnInit(){super.ngOnInit(),this.baseEntities$=this.platformDataAccessService.getBaseEntities().pipe((0,m.U)(f=>f.filter(L=>L.dataObjectName!==this._deliveryChannelEntityName)))}ngOnChanges(f){this.numberOfResults=this.buildNumberOfResults()}buildNumberOfResults(){return this.isTreeData&&this.treeNodesFilteredCount>0?this.treeNodesFilteredCount:this.currentResult.totalNumberOfResults}loadRecords(f,L,V,Xe,An){this.orderField=f.orderField??this.determineOrderField("id"),this.orderDirection=f.orderDirection??this.determineOrderDirection("ASC"),this.currentPageSize=f.pageSize??this.determinePageSize(hr.L8),this.currentPage=f.page??1,this.pagingModel={pageSize:this.currentPageSize,page:this.currentPage,numberOfResults:0},super.loadRecords(f,this.currentPage,this.currentPageSize,this.orderField,"ASC"===this.orderDirection?"ASC":"DESC")}beforeLoadRecords(f){if(this.dataSource=this.originDataSource,this.filter.entityName&&""!==this.filter.entityName){const L=this.filterFormHandler.getBaseEntityConfig(this.filter.moduleName,this.filter.entityName);f.filterPredicates=L.filterPredicates,f.sortPredicates=L.sortPredicates,L.dataSourceToken&&(this.dataSource=this.injector.get(L.dataSourceToken))}}renderColumn(f,L){return L.baseEntityFieldOption&&L.baseEntityFieldOption.listRenderer?L.baseEntityFieldOption.listRenderer(f):f}getListColumnStyleClass(f){if(f.baseEntityFieldOption&&f.baseEntityFieldOption.listColumnStyleClass)return f.baseEntityFieldOption.listColumnStyleClass}isRenderedAsImage(f,L){return!(!L.baseEntityFieldOption||!L.baseEntityFieldOption.renderAsImage)}afterContentLoaded(){if(this.editableMap.clear(),this.removeableMap.clear(),this.actionableMap.clear(),this.anyActionAllowed.clear(),this.filter.entityName&&""!==this.filter.entityName){const f=this.filterFormHandler.getBaseEntityConfig(this.filter.moduleName,this.filter.entityName);this.fields=f.fields.filter(V=>!V.baseEntityFieldOption.hideInList),this.actions=f.actions;const L=this.permissionManagerService.getPermissionServiceByType(this.filter.entityName);this.currentResult.items.forEach(V=>{this.fillPermissionMapsForDataObject(V,L)}),this.hasCreatePermission=L.hasCreatePermission(this.filter.entityName),this.hasBatchDeletePermission=L.hasBatchDeletePermission(this.filter.entityName)}else this.fields=[];if(this.isTreeData=!1,this.treeRootNodes=[],this.treeNodesFilteredCount=0,this.currentResult.items.forEach(f=>{if(f.children){const L=xm(f);this.treeRootNodes.push(this.createPrimeNgTreeNode(L)),this.isTreeData=!0}}),this.numberOfResults=this.buildNumberOfResults(),void 0!==this.filter.id&&this.filter.openImmediately){const f=parseInt(this.filter.id.split(",")[0],10),L=this.currentResult.items.find(V=>V.id===f);if(L)setTimeout(()=>{this.editBaseEntity(L)},500);else if(this.currentResult.items.length>0&&this.currentResult.items[0].children){let V;this.currentResult.items.forEach(Xe=>{V=this.findInChildren(Xe,f)}),V&&setTimeout(()=>{this.editBaseEntity(V)},500)}}}findInChildren(f,L){let V;if(f.children&&f.children.length>0){if(V=f.children.find(Xe=>Xe.id===L),V)return V;f.children.forEach(Xe=>{V=this.findInChildren(Xe,L)})}return V}fillPermissionMapsForDataObject(f,L){this.editableMap.set(f.id,L.hasEditPermission(this.filter.entityName,f)),this.removeableMap.set(f.id,L.hasDeletePermission(this.filter.entityName,f));const V=new Map;this.actions&&(this.actions.forEach(Xe=>V.set(Xe.actionName,L.hasActionPermission(this.filter.entityName,f,Xe.actionName))),this.actionableMap.set(f.id,V),this.actionableMap.forEach(Xe=>{this.anyActionAllowed.set(f.id,(0,P.aj)(Array.from(Xe.values())).pipe((0,m.U)(An=>An.reduce((Qo,Dr)=>Qo&&Dr))))})),f.children&&f.children.forEach(Xe=>{this.fillPermissionMapsForDataObject(Xe,L)})}getFilterPredicates(){return[]}getSortPredicates(){return new Map}createPrimeNgTreeNode(f){const L=[];let V=!!this.findTreeStateNode(f.id,"id")?.expanded;return f.children&&f.children.forEach(Xe=>{L.push(this.createPrimeNgTreeNode(Xe)),V=V||Xe.childFiltered||Xe.nodeFiltered||this.findTreeStateNode(Xe.id,"id")?.expanded}),f.nodeFiltered&&this.treeNodesFilteredCount++,{data:f,children:L,expanded:V}}isCreateButtonVisible(){return"Productline"!==this.filter.entityName&&this.hasCreatePermission}getEntityName(){return this.filter.entityName}getActions(){return this.filter.entityName&&this.filter.entityName.length>0&&this.actionProvider?this.actionProvider?.getBatchActionsForType(this.filter.entityName):[]}selectedIdsAsArray(){return Array.from(this.selectedIds)}deleteBaseEntity(f){const L=this.filterFormHandler.getBaseEntityConfig(this.filter.moduleName,this.filter.entityName);super.removeEntity(f,this.filter.entityName,L.deleteDialogTxt)}deleteBaseEntityBatch(){const f=this.filterFormHandler.getBaseEntityConfig(this.filter.moduleName,this.filter.entityName);if(0===this.selectedIds.size)this.userMessageService.showInfo("imxplatform.common-entity.list.action.none-selected");else{const L=Object.assign([],this.selectedIdsAsArray());this.dialog.open(Pd.F,{maxWidth:470,data:{batch:!0,i18n:f.deleteBatchDialogTxt?f.deleteBatchDialogTxt:"imxplatform.base-entity.list.action.delete.confirm-batch",count:L.length}}).afterClosed().subscribe(Xe=>{if(Xe){const An=[];L.forEach(Qo=>An.push(this.imxEntitiesMgrService.deleteEntityOfType(this.filter.entityName,Qo))),(0,P.aj)(An).subscribe(Qo=>{this.resetSelection(),this.reloadRecords(),this.userMessageService.showInfo("imxplatform.base-entity.list.dialog-delete-batch.success",L.length)},Qo=>{(0,i.Ec)(Qo)&&Qo.exceptionKey===i.Uf.PF_DATABASE_CONSTRAINT?this.userMessageService.showError("imxplatform.base-entity.list.dialog-delete.constraint-failure",{entityName:this.translateService.instant("entity."+this.filter.entityName+".entityName")}):this.userMessageService.showError(Qo||"imxplatform.base-entity.list.dialog-delete-batch.failure")})}})}}editBaseEntity(f){const L=this.filterFormHandler.getBaseEntityConfig(this.filter.moduleName,this.filter.entityName),V=new Re._(L,this.ngControlBuilder,this.runtimeContextService,this.imxSecurityManagerService,this.formatterService);L.fields.forEach(An=>{An.baseEntityFieldOption&&An.baseEntityFieldOption.isIdField&&(An.readOnly=!0)}),super.editEntity(f,this.filter.entityName,V,L.baseEntityDialog?L.baseEntityDialog:qt.i,{mode:"EDIT",title:"entity."+this.filter.entityName+".entityName",baseEntityConfig:L,dataObject:f,formRow:V.formGroup,formHandler:V},L.updateDataSourceToken?this.injector.get(L.updateDataSourceToken):void 0)}onEditDialogClose(f){super.onEditDialogClose(f),f&&f.baseEntityConfig&&f.baseEntityConfig.fields.forEach(L=>{L.baseEntityFieldOption&&L.baseEntityFieldOption.isIdField&&(L.readOnly=!1)})}newBaseEntity(f){const L=this.filterFormHandler.getBaseEntityConfig(this.filter.moduleName,this.filter.entityName),V=new Re._(L,this.ngControlBuilder,this.runtimeContextService,this.imxSecurityManagerService,this.formatterService);super.createNewEntity(this.filter.entityName,V,L.baseEntityDialog?L.baseEntityDialog:qt.i,{mode:"NEW",title:"entity."+this.filter.entityName+".entityName",baseEntityConfig:L,formRow:V.formGroup,formHandler:V},f,L.updateDataSourceToken?this.injector.get(L.updateDataSourceToken):void 0)}executeBaseEntityAction(f,L){this.dialog.open(f.actionDialog,{...Qt.D.FORM_BIG,data:{dataObject:L}}).afterClosed().subscribe(V=>{V&&this.reloadRecords()})}saveTreeState(f){0===this.treeState.length&&(this.treeState=xm(this.treeRootNodes));const L=this.findTreeStateNode(f.node.data.id,"id");L&&(L.expanded=f.node.expanded)}findTreeStateNode(f,L){let V;return this.treeState.forEach(Xe=>{const An=(0,i.xx)(Xe,f,L);An&&(V=An)}),V}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(Jt.o),t.Y36(l.F0),t.Y36(l.gz),t.Y36(c.Y),t.Y36(Wi.G),t.Y36(ae.uw),t.Y36(he.Tt),t.Y36(sn.nq),t.Y36(Wr.Q),t.Y36(sl.x),t.Y36(Ui.a),t.Y36(Qe.EG),t.Y36(i.Ze),t.Y36(i.Xh),t.Y36(i.qB),t.Y36(i.H1),t.Y36(kt.j),t.Y36(Y.sK),t.Y36(t.zs3))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],features:[t.qOj,t.TTD],decls:21,vars:14,consts:[[1,"base-entity-search","list"],[3,"formHandler","record","orderField","orderDirection","baseEntities$","orderChanged","save"],["filterComponent",""],[1,"list__header-wrapper"],[4,"ngIf"],[3,"lg_w","lg_o"],["noResults",""],["loading",""],["targetMarkerTemplate",""],[3,"paging","selection","pageChanged","selectAll"],["position","above","halign","start"],["imx-dropup-trigger",""],[3,"actions","executeAction",4,"ngIf"],[1,"list__header"],["translate",""],[1,"reload",3,"click"],[1,"icon-refresh","imx-icon-middle"],[3,"tooltipText","offset"],[1,"list__header-right-menu"],["class","imx-button default with-icon",3,"click",4,"ngIf"],[1,"imx-button","default","with-icon",3,"click"],[1,"icon","icon-file-add"],[1,"list-content"],["mode","indeterminate"],[3,"ngClass"],[1,"reorder-marker"],["class","table-wrapper",4,"ngIf","ngIfElse"],[1,"table-wrapper"],[4,"ngIf","ngIfElse"],[1,"imx-datatable",3,"columns","value","resizableColumns"],["pTemplate","header"],["pTemplate","body"],[1,"select-column"],["pResizableColumn","",3,"ngClass","className",4,"ngFor","ngForOf"],[1,"action-column"],["pResizableColumn","",3,"ngClass","className"],[3,"value","checked","change"],[4,"ngFor","ngForOf"],["noPerm",""],[3,"ngClass","click"],["class","baseEntityListImage",4,"ngIf"],[3,"matTooltip","matTooltipShowDelay",4,"ngIf"],[1,"baseEntityListImage"],[3,"src"],[3,"matTooltip","matTooltipShowDelay"],[1,"read-only-column",3,"ngClass"],["icon","icon-pencil",3,"click"],["icon","icon-trash","additionalStyle","delete",3,"click"],[3,"icon","click"],[1,"imx-datatable",3,"columns","value","resizableColumns","onNodeExpand","onNodeCollapse"],["ttResizableColumn","",4,"ngFor","ngForOf"],["ttResizableColumn",""],[3,"matTooltip","matTooltipShowDelay",4,"ngFor","ngForOf"],[3,"rowNode",4,"ngIf"],[3,"rowNode"],[1,"txt-link",3,"click"],["additionalStyle","delete",3,"icon","click"],[1,"selected-size"],[1,"icon-chevron-down"],[3,"actions","executeAction"],["additionalStyle","delete",3,"icon","actionClicked"]],template:function(L,V){1&L&&(t.TgZ(0,"div",0)(1,"imx-base-entity-filter",1,2),t.NdJ("orderChanged",function(An){return V.sort(An)})("save",function(An){return V.search(An)}),t.qZA(),t.TgZ(3,"div",3),t.YNc(4,Md,5,2,"imx-grid",4)(5,Gm,10,8,"imx-grid",4),t.qZA(),t.TgZ(6,"imx-grid")(7,"imx-grid-element",5),t.YNc(8,Ou,3,0,"ng-template",null,6,t.W1O)(10,Lc,1,0,"ng-template",null,7,t.W1O)(12,Hc,2,1,"ng-template",null,8,t.W1O)(14,Hr,3,4,"ng-container",4),t.qZA()(),t.TgZ(15,"imx-list-footer",9),t.NdJ("pageChanged",function(An){return V.onPageChanged(An)})("selectAll",function(An){return V.onSelectAll(An)}),t.TgZ(16,"imx-dropup-button",10),t.YNc(17,al,6,4,"ng-template",11),t.TgZ(18,"imx-action-menu"),t.YNc(19,Jd,1,1,"imx-search-list-action-menu",12)(20,Qd,3,1,"ng-container",4),t.qZA()()()()),2&L&&(t.xp6(),t.Q6J("formHandler",V.filterFormHandler)("record",V.filter)("orderField",V.orderField)("orderDirection",V.orderDirection)("baseEntities$",V.baseEntities$),t.xp6(3),t.Q6J("ngIf",!V.filter.entityName),t.xp6(),t.Q6J("ngIf",V.filter.entityName),t.xp6(2),t.Q6J("lg_w",12)("lg_o",0),t.xp6(7),t.Q6J("ngIf",V.filter.entityName),t.xp6(),t.Q6J("paging",V.pagingModel)("selection",V.selectionModel),t.xp6(4),t.Q6J("ngIf",V.getActions()&&V.getActions().length>0),t.xp6(),t.Q6J("ngIf",V.hasBatchDeletePermission))},dependencies:[e.mk,e.sg,e.O5,ya.oG,ba.i$,Ft.pW,qi.gM,Y.Pi,wi.iA,zo.jx,wi.Q7,Lo.iw,Lo.gc,Lo.ym,xi.p,ki.z,wo.t,gr.F,On.M,_n.V,ho.K,Ms.$,Sc,jo.N,uo.A,kn.F,e.Ov,Y.X$,ue.j],styles:[".footer__sticky[_ngcontent-%COMP%]{position:fixed;left:0;bottom:0;height:50px;width:100%;z-index:3;background-color:#eefafa}.footer__sticky[_ngcontent-%COMP%]   .footer__list-action-all-select[_ngcontent-%COMP%]{width:25px;margin:auto 5px auto 0}.footer__list-actions-menu-wrapper[_ngcontent-%COMP%]{display:flex}.footer__list-paginator-wrapper[_ngcontent-%COMP%]{padding-top:7px}.footer__list-actions-menu[_ngcontent-%COMP%]{position:absolute;bottom:60px;left:0;z-index:2;margin-top:5px;background:#fff;box-shadow:0 0 5px #0003;display:flex;flex-direction:column;text-align:left}.footer__list-actions-menu[_ngcontent-%COMP%]   .triangle-down[_ngcontent-%COMP%]{position:absolute;left:20px;bottom:-12px;z-index:2}.footer__list-action-element[_ngcontent-%COMP%]{color:#000;font-size:14px;height:50px;padding-right:10px;cursor:pointer;border-right:1px solid #e6e9ef;flex:1;align-items:center;display:flex}@media (max-width: 1400px){.footer__list-action-element[_ngcontent-%COMP%]{font-size:12px}}.list__header-wrapper[_ngcontent-%COMP%]{padding:15px 0}.list__header-right-menu[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:flex-end}.list__header-right-menu[_ngcontent-%COMP%]    >*{margin-left:10px}.list__header[_ngcontent-%COMP%]{display:flex}.list__header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{display:inline;font-size:22px;line-height:26px;padding:0 10px}.list__header[_ngcontent-%COMP%]   .reload[_ngcontent-%COMP%], .list__header[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{display:inline-block;cursor:pointer;text-decoration:none}.list__header[_ngcontent-%COMP%]   .reload[_ngcontent-%COMP%]{padding:5px 10px 0 0;border-right:1px solid #eefafa}.list__header[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{padding:5px 10px;border-left:1px solid #eefafa}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.base-entity-search[_ngcontent-%COMP%]{padding-bottom:50px;padding-top:50px}.base-entity-search[_ngcontent-%COMP%]   .icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.base-entity-search[_ngcontent-%COMP%]   .selected-size[_ngcontent-%COMP%]{color:#3e3e3e}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.imx-datatable[_ngcontent-%COMP%]   .select-column[_ngcontent-%COMP%]{width:40px}.imx-datatable[_ngcontent-%COMP%]   .action-column[_ngcontent-%COMP%]{width:50px}.imx-datatable[_ngcontent-%COMP%]   .id-column[_ngcontent-%COMP%]{width:100px}.imx-datatable[_ngcontent-%COMP%]   th.line-clamp-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   td.line-clamp-column[_ngcontent-%COMP%]{width:40%}.imx-datatable[_ngcontent-%COMP%]   .line-clamp-column[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;overflow:hidden}.imx-datatable[_ngcontent-%COMP%]   .read-only-column[_ngcontent-%COMP%]{color:#9da8c1!important}[_nghost-%COMP%]     .imx-datatable tr, [_nghost-%COMP%]     .imx-datatable td{text-overflow:unset!important;white-space:unset!important}.baseEntityListImage[_ngcontent-%COMP%]{display:block;height:2em;left:0;margin:0;overflow:hidden;padding:0;top:0;width:100%}.baseEntityListImage[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{display:block;height:100%;object-fit:contain;width:100%}"]})}return A})();var f_=a(25913),rp=a(63989),Ap=a(41593),iu=a(42094);function Qu(A,Gt){1&A&&t.GkF(0)}const Wp=A=>({fieldKey:"valueField",fragment:A});function S_(A,Gt){if(1&A&&t.YNc(0,Qu,1,0,"ng-container",11),2&A){const f=t.oxw(2).$implicit;t.oxw();const L=t.MAs(9);t.Q6J("ngTemplateOutlet",L)("ngTemplateOutletContext",t.VKq(2,Wp,f))}}function zp(A,Gt){1&A&&t.GkF(0)}const ap=A=>({fieldKey:"i18nValueField",fragment:A});function Rc(A,Gt){if(1&A&&t.YNc(0,zp,1,0,"ng-container",11),2&A){const f=t.oxw(2).$implicit;t.oxw();const L=t.MAs(9);t.Q6J("ngTemplateOutlet",L)("ngTemplateOutletContext",t.VKq(2,ap,f))}}function F_(A,Gt){1&A&&t.GkF(0)}const jp=A=>({fieldKey:"logoField",fragment:A});function Kp(A,Gt){if(1&A&&(t._UZ(0,"imx-logo-upload",12),t.YNc(1,F_,1,0,"ng-container",11)),2&A){const f=t.oxw(2).$implicit,L=t.oxw(),V=t.MAs(9);t.Q6J("allowedFileTypes",L.allowedFileTypes)("fileFieldName","logoField")("imagePathFieldName","logoImageUrl")("formGroup",f)("formHandler",L.data.formHandler),t.xp6(),t.Q6J("ngTemplateOutlet",V)("ngTemplateOutletContext",t.VKq(7,jp,f))}}function lc(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-accordion-panel",9),t.ALo(1,"readI18n"),t.YNc(2,S_,1,4)(3,Rc,1,4)(4,Kp,2,9),t.TgZ(5,"a",10),t.NdJ("click",function(){t.CHM(f);const V=t.oxw().index,Xe=t.oxw();return t.KtG(Xe.removeRow(V))}),t.qZA()()}if(2&A){const f=Gt.ngIf,L=t.oxw().$implicit,V=t.oxw();let Xe;t.Q6J("title",t.xi3(1,3,f.i18nName,V.data.formHandler.formLanguage.getEditLanguage().name))("expanded",!L.get("id").value),t.xp6(2),t.um2(2,"TEXT"===(Xe=f.type)?2:"I18N_TEXT"===Xe?3:"IMAGE"===Xe?4:-1)}}function $p(A,Gt){if(1&A&&(t.ynx(0),t.YNc(1,lc,6,6,"imx-accordion-panel",8),t.BQk()),2&A){const f=Gt.$implicit,L=t.oxw();t.xp6(),t.Q6J("ngIf",L.getPurpose(f))}}function Bp(A,Gt){if(1&A&&t._UZ(0,"imx-form-control",13),2&A){const f=Gt.fieldKey,L=Gt.fragment,V=t.oxw();t.Q6J("field",V.data.formHandler.formConfiguration.findFormFieldById("fragments:"+f))("control",L.get(f))("form",L)("formHandler",V.data.formHandler)("config",V.data.formHandler.formConfiguration)}}let g_=(()=>{class A{constructor(f,L){this.data=f,this.entitiesMgrService=L,this.allowedFileTypes="image/*",this.allPurposes=[],this.allSelectablePurposes=[],this.selectablePurposes=[]}ngOnInit(){this.registerAddButton(),this.entitiesMgrService.getAllEntitiesOfType("ClientInformationPurpose").subscribe(f=>{this.allPurposes=f.items,this.allSelectablePurposes=f.items.map(L=>({value:L.id,label:L.i18nName})),this.selectablePurposes=this.allSelectablePurposes,this.determineSelectablePurposes(this.data.formRow.get("fragments").value.map(L=>L.purpose.id))}),this.data.formRow.get("fragments").valueChanges.subscribe(f=>{const V=f.map(Xe=>Xe?.purpose?.id);this.determineSelectablePurposes(V)})}getFragments(){return this.data.formRow.get("fragments").controls}getPurpose(f){const L=f.get("purpose").value.id;return this.allPurposes.find(V=>V.id===L)}removeRow(f){this.data.formHandler.removeLineFromCollection("fragments",f)}registerAddButton(){this.addField=new ts.P("addControl","",{initialValue:-1,placeholder:"imxplatform.common.select-placeholder-add"}),this.addControl=new x.p4,this.addControl.setValue(ts.F),this.addControl.valueChanges.pipe((0,fa.h)(f=>void 0!==f&&f!==ts.F)).subscribe(f=>{const L=this.allPurposes.find(Xe=>Xe.id===f),V=this.data.formHandler.addNewCollectionRow("fragments",!0);V.get("purpose").setValue(L),V.get("clientInformation").setValue(this.data.clientInformation),this.addControl.setValue(ts.F)})}determineSelectablePurposes(f){this.selectablePurposes=this.allSelectablePurposes.filter(L=>!f.includes(L.value)),0===this.selectablePurposes.length?this.addControl.disable({emitEvent:!1}):this.addControl.enable({emitEvent:!1})}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(ae.WI),t.Y36(i.qB))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],decls:10,vars:10,consts:[["icon","icon-clients","dialogType","form",3,"heading","submitButtonDisabled"],["form-header","",3,"formHandler"],["id","client-information-mgmt-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[1,"imx-button-select",3,"field","control","form","formHandler","optionProvider"],[4,"ngFor","ngForOf"],["imxFormControl",""],[3,"title","expanded",4,"ngIf"],[3,"title","expanded"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"allowedFileTypes","fileFieldName","imagePathFieldName","formGroup","formHandler"],[3,"field","control","form","formHandler","config"]],template:function(L,V){1&L&&(t.TgZ(0,"imx-dialog",0),t._UZ(1,"imx-language-switch-button",1),t.TgZ(2,"form",2)(3,"div",3)(4,"div",4),t._UZ(5,"imx-select",5),t.TgZ(6,"imx-accordion"),t.YNc(7,$p,2,1,"ng-container",6),t.qZA()()()()(),t.YNc(8,Bp,1,5,"ng-template",null,7,t.W1O)),2&L&&(t.Q6J("heading","imxplatform.client-mgmt.dialog.header-client-info")("submitButtonDisabled",V.data.formRow.invalid||V.data.formRow.pristine),t.xp6(),t.Q6J("formHandler",V.data.formHandler),t.xp6(),t.Q6J("formGroup",V.data.formRow),t.xp6(3),t.Q6J("field",V.addField)("control",V.addControl)("form",V.data.formRow)("formHandler",V.data.formHandler)("optionProvider",V.selectablePurposes),t.xp6(2),t.Q6J("ngForOf",V.getFragments()))},dependencies:[e.sg,e.O5,e.tP,x._Y,x.JL,x.sg,f_.Z,rp.U,Ap.x,Qt.a,ee.A,iu.H,ve.H,kn.F,ue.j],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.icon-trash[_ngcontent-%COMP%]{float:right}.imx-button-select[_ngcontent-%COMP%]{margin-left:10px}.dialog-form-group[_ngcontent-%COMP%]{min-height:100px}"]})}return A})();function ep(A,Gt){1&A&&t.GkF(0)}const Vu=()=>({$implicit:"id"});function h_(A,Gt){if(1&A&&(t.ynx(0),t.YNc(1,ep,1,0,"ng-container",6),t.BQk()),2&A){t.oxw();const f=t.MAs(36);t.xp6(),t.Q6J("ngTemplateOutlet",f)("ngTemplateOutletContext",t.DdM(2,Vu))}}function ef(A,Gt){1&A&&t.GkF(0)}function qp(A,Gt){1&A&&t.GkF(0)}const L_=()=>({$implicit:"parent"});function x_(A,Gt){if(1&A&&(t.ynx(0),t.YNc(1,qp,1,0,"ng-container",6),t.BQk()),2&A){t.oxw();const f=t.MAs(36);t.xp6(),t.Q6J("ngTemplateOutlet",f)("ngTemplateOutletContext",t.DdM(2,L_))}}function tf(A,Gt){1&A&&t.GkF(0)}function wp(A,Gt){1&A&&t.GkF(0)}const _d=()=>({$implicit:"reliabilityClassification"});function Jc(A,Gt){if(1&A&&(t.ynx(0),t.YNc(1,wp,1,0,"ng-container",6),t.BQk()),2&A){t.oxw();const f=t.MAs(36);t.xp6(),t.Q6J("ngTemplateOutlet",f)("ngTemplateOutletContext",t.DdM(2,_d))}}function v_(A,Gt){1&A&&t.GkF(0)}const ou=()=>({$implicit:"mediaLicense"});function Yu(A,Gt){if(1&A&&(t.ynx(0),t.YNc(1,v_,1,0,"ng-container",6),t.BQk()),2&A){t.oxw();const f=t.MAs(36);t.xp6(),t.Q6J("ngTemplateOutlet",f)("ngTemplateOutletContext",t.DdM(2,ou))}}function b_(A,Gt){1&A&&t.GkF(0)}function hp(A,Gt){1&A&&t.GkF(0)}function Xp(A,Gt){1&A&&t.GkF(0)}function e_(A,Gt){1&A&&t.GkF(0)}function ru(A,Gt){1&A&&t.GkF(0)}function Zp(A,Gt){1&A&&t.GkF(0)}function Qm(A,Gt){1&A&&t.GkF(0)}function Dp(A,Gt){1&A&&t.GkF(0)}function bm(A,Gt){1&A&&t.GkF(0)}function t_(A,Gt){1&A&&t.GkF(0)}function n_(A,Gt){1&A&&t.GkF(0)}function xp(A,Gt){1&A&&t.GkF(0)}const Ip=()=>({$implicit:"attributes"});function U(A,Gt){if(1&A&&(t.TgZ(0,"imx-accordion-panel",13)(1,"div",10),t.YNc(2,xp,1,0,"ng-container",6),t.qZA()()),2&A){t.oxw();const f=t.MAs(36);t.xp6(2),t.Q6J("ngTemplateOutlet",f)("ngTemplateOutletContext",t.DdM(2,Ip))}}function S(A,Gt){if(1&A&&t._UZ(0,"imx-form-control",14),2&A){const f=Gt.$implicit,L=t.oxw();t.Q6J("field",L.data.formHandler.formConfiguration.findFormFieldById(f))("control",L.data.formRow.get(f))("form",L.data.formRow)("formHandler",L.data.formHandler)("config",L.data.formHandler.formConfiguration)}}const w=()=>({$implicit:"name"}),Q=()=>({$implicit:"shortDescription"}),oe=()=>({$implicit:"logo"}),fe=()=>({$implicit:"address.street"}),Ee=()=>({$implicit:"address.streetNo"}),it=()=>({$implicit:"address.zipcode"}),mt=()=>({$implicit:"address.city"}),$t=()=>({$implicit:"address.country"}),ai=()=>({$implicit:"address.phone1"}),Ai=()=>({$implicit:"address.phone2"}),ao=()=>({$implicit:"address.fax"}),go=()=>({$implicit:"address.email"}),Co=()=>({$implicit:"address.homepage"});let Vo=(()=>{class A{constructor(f,L,V){this.data=f,this.entitiesMgrService=L,this.entityCollectionsService=V,this.allowedFileTypes="image/*",this.reliabilityEntityClassificationAvailable=(0,u.of)(!1),this.mediaLicensesAvailable=(0,u.of)(!1),this.reliabilityEntityClassificationAvailable=this.entityCollectionsService.getAllReliablityClassifications("Client").pipe((0,O.w)(An=>(0,u.of)(An.length>0))),this.mediaLicensesAvailable=this.entityCollectionsService.getAllMediaLicenses().pipe((0,O.w)(An=>(0,u.of)(An.length>0)));const Xe=this.entitiesMgrService.getAllEntitiesOfType("Client").pipe((0,m.U)(An=>An.items),(0,m.U)(An=>An.filter(Qo=>Qo.id!==this.data.client.id)));this.data.formHandler.formGroup.get("name").setAsyncValidators(function nr(A){return Gt=>A.pipe((0,m.U)(f=>f.some(L=>L.name===Gt.value)),(0,m.U)(f=>f?{clientNameExists:!0}:null))}(Xe)),this.attributesAvailable$=this.entitiesMgrService.isBaseEntityAvailable("ClientAttribute")}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(ae.WI),t.Y36(i.qB),t.Y36(b.f))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],decls:37,vars:59,consts:[["icon","icon-clients","dialogType","form",3,"heading","submitButtonDisabled"],["form-header","",3,"formHandler"],["id","client-mgmt-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["title","imxplatform.client-mgmt.dialog.description"],[3,"allowedFileTypes","fileFieldName","imagePathFieldName","formGroup","formHandler"],["title","imxplatform.client-mgmt.dialog.address"],[1,"form__content-field-row"],["title","imxplatform.client-mgmt.dialog.additionals",4,"ngIf"],["imxFormControl",""],["title","imxplatform.client-mgmt.dialog.additionals"],[3,"field","control","form","formHandler","config"]],template:function(L,V){if(1&L&&(t.TgZ(0,"imx-dialog",0),t._UZ(1,"imx-language-switch-button",1),t.TgZ(2,"form",2)(3,"div",3)(4,"div",4),t.YNc(5,h_,2,3,"ng-container",5)(6,ef,1,0,"ng-container",6)(7,x_,2,3,"ng-container",5),t.TgZ(8,"imx-accordion")(9,"imx-accordion-panel",7),t.YNc(10,tf,1,0,"ng-container",6)(11,Jc,2,3,"ng-container",5),t.ALo(12,"async"),t.YNc(13,Yu,2,3,"ng-container",5),t.ALo(14,"async"),t._UZ(15,"imx-logo-upload",8),t.YNc(16,b_,1,0,"ng-container",6),t.qZA(),t.TgZ(17,"imx-accordion-panel",9)(18,"div",10),t.YNc(19,hp,1,0,"ng-container",6)(20,Xp,1,0,"ng-container",6),t.qZA(),t.TgZ(21,"div",10),t.YNc(22,e_,1,0,"ng-container",6)(23,ru,1,0,"ng-container",6),t.qZA(),t.TgZ(24,"div",10),t.YNc(25,Zp,1,0,"ng-container",6),t.qZA(),t.TgZ(26,"div",10),t.YNc(27,Qm,1,0,"ng-container",6)(28,Dp,1,0,"ng-container",6)(29,bm,1,0,"ng-container",6),t.qZA(),t.TgZ(30,"div",10),t.YNc(31,t_,1,0,"ng-container",6)(32,n_,1,0,"ng-container",6),t.qZA()()(),t.YNc(33,U,3,3,"imx-accordion-panel",11),t.ALo(34,"async"),t.qZA()()()(),t.YNc(35,S,1,5,"ng-template",null,12,t.W1O)),2&L){const Xe=t.MAs(36);t.Q6J("heading","EDIT"===V.data.mode?"imxplatform.client-mgmt.dialog.header-edit":"imxplatform.client-mgmt.dialog.header-new")("submitButtonDisabled",V.data.formRow.invalid||V.data.formRow.pristine),t.xp6(),t.Q6J("formHandler",V.data.formHandler),t.xp6(),t.Q6J("formGroup",V.data.formRow),t.xp6(3),t.Q6J("ngIf","EDIT"===V.data.mode),t.xp6(),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(46,w)),t.xp6(),t.Q6J("ngIf",V.data.formRow.get("parent").value),t.xp6(3),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(47,Q)),t.xp6(),t.Q6J("ngIf",t.lcZ(12,40,V.reliabilityEntityClassificationAvailable)),t.xp6(2),t.Q6J("ngIf",t.lcZ(14,42,V.mediaLicensesAvailable)),t.xp6(2),t.Q6J("allowedFileTypes",V.allowedFileTypes)("fileFieldName","logo")("imagePathFieldName","logoImageUrl")("formGroup",V.data.formRow)("formHandler",V.data.formHandler),t.xp6(),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(48,oe)),t.xp6(3),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(49,fe)),t.xp6(),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(50,Ee)),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(51,it)),t.xp6(),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(52,mt)),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(53,$t)),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(54,ai)),t.xp6(),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(55,Ai)),t.xp6(),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(56,ao)),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(57,go)),t.xp6(),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(58,Co)),t.xp6(),t.Q6J("ngIf",t.lcZ(34,44,V.attributesAvailable$))}},dependencies:[e.O5,e.tP,x._Y,x.JL,x.sg,f_.Z,rp.U,Ap.x,Qt.a,ee.A,iu.H,e.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.image-upload-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.image-upload-wrapper__remove[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end}.image-upload-wrapper__remove[_ngcontent-%COMP%] > .file-remove-button[_ngcontent-%COMP%]{margin-bottom:15px}.image-upload-wrapper__image[_ngcontent-%COMP%]{width:120px}.image-upload-wrapper__image[_ngcontent-%COMP%] > figure[_ngcontent-%COMP%]{height:0;padding-bottom:100%;position:relative}.image-upload-wrapper__image[_ngcontent-%COMP%] > figure[_ngcontent-%COMP%] > picture[_ngcontent-%COMP%]{display:block;height:100%;position:absolute;width:100%}.image-upload-wrapper__image[_ngcontent-%COMP%] > figure[_ngcontent-%COMP%] > picture[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{height:100%;object-fit:cover;width:100%}"]})}return A})();var mr=a(30324),Br=a(29166),wr=a(71041),Jr=a(62411),ir=a(98120),na=a(62361),Ea=a(38996),gs=a(32477),Gr=a(23765);const Bl=new Jr.E([new na.A("id",""),new na.A("_entityType","",{insertor:(0,ir._U)((0,ir.wq)("_entityType"),"ClientInformation")}),new Ea.OF("fragments",!1,[new na.A("id",""),new na.A("_entityType","",{insertor:(0,ir._U)((0,ir.wq)("_entityType"),"ClientInformationFragment")}),new Gr.II("text","valueField","Inhalt",{extractor:(0,wr.YL)("value"),insertor:(0,ir.wq)("value")}),new gs.i("i18nValueField","Inhalt",{extractor:(0,wr.YL)("i18nValue"),insertor:(0,ir.wq)("i18nValue")}),new Gr.II("text","logoField","Bildname",{readonly:!0,extractor:(0,wr.YL)("logoValue"),insertor:(0,ir.wq)("logoValue")}),new na.A("logoImageUrl","",{readonly:!0,insertor:(0,ir.G3)()}),new na.A("purpose","",{extractor:(0,wr.YL)("purpose"),insertor:(0,ir.wq)("purpose")}),new na.A("clientInformation","",{extractor:(0,wr.YL)("clientInformation"),insertor:(0,ir.wq)("clientInformation")})],{insertor:(0,ir.wq)("fragments"),extractor:(0,wr.YL)("fragments")})]);class Yl extends _r.z{constructor(Gt,f,L,V){super(Bl,void 0,Gt,f,V),this.runtimeContextService=f,this.imxSecurityManagerService=L,this.formatterService=V}getEntityType(){return"ClientInformation"}}var us=a(57462);const kd=new Jr.E([new Gr.II("text","fulltext","imxplatform.client-mgmt.filter.fulltext"),new Gr.II("text","clientIds","entity.DataObject.id",{extendedValidators:us.el,insertor:(0,ir.FO)((0,ir.wq)("clientIds"))}),new Gr.II("text","email","entity.Client.address.email"),new na.A("clientTree","",{insertor:(0,ir.G3)()})]);let Cm=(()=>{class A extends _r.z{constructor(f,L,V,Xe){super(kd,void 0,f,L,Xe),this.runtimeContextService=L,this.imxSecurityManagerService=V}getEntityType(){return"Client"}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(Qe.EG),t.LFG(i.Ze),t.LFG(i.Xh),t.LFG(i.H1))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();var _l=a(72764),Ws=a(48499);class Qc extends Ws.I1{constructor(Gt,f){super(),this.entitiesMgrService=Gt,this.translateService=f}getOptions(Gt,f){return this.entitiesMgrService.getAllEntitiesOfType(this.getEntityType()).pipe((0,m.U)(L=>L.items.map(V=>({label:V.i18nName,value:V.id})).sort((V,Xe)=>(0,ga.Qi)(V.label,Xe.label,this.translateService.currentLang))))}}let Wu=(()=>{class A extends Qc{constructor(f,L){super(f,L)}getEntityType(){return"ClientAttribute"}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(i.qB),t.LFG(Y.sK))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();var Sp=a(82063),tp=a(60999),sp=a(66175);let zu=(()=>{class A extends Ws.I1{constructor(f){super(),this.entitiesMgrService=f}getOptions(f,L){return this.entitiesMgrService.getAllEntitiesOfType("ReliabilityEntityClassification").pipe((0,m.U)(V=>V.items.filter(Xe=>"Client"===Xe.usageForEntityType).map(Xe=>({label:Xe.name,value:Xe.id})).sort((Xe,An)=>Xe.value-An.value)))}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(i.qB))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();const i_=new Jr.E([new Gr.II("number","id","entity.DataObject.id",{required:!1,readonly:!0}),new Gr.II("text","name","entity.Client.name",{required:!0,extendedValidators:x.kI.maxLength(100)}),new Gr.II("text","parent","imxplatform.client-mgmt.dialog.parent",{readonly:!0,extractor:A=>{const Gt=A.parent;if(Gt)return Gt.name+" ("+Gt.id+")"},insertor:(0,ir.G3)()}),new sp.A("shortDescription","entity.Client.shortDescription"),new Gr.II("text","logo","entity.Client.logo",{readonly:!0}),new Gr.II("text","logoImageUrl","entity.Client.logoImageUrl",{readonly:!0,insertor:ir.G3}),new Gr.II("text","address.street","entity.Client.address.street"),new Gr.II("text","address.streetNo","entity.Client.address.streetNo"),new Gr.II("text","address.zipcode","entity.Client.address.zipcode"),new Gr.II("text","address.city","entity.Client.address.city"),new ts.P("address.country","entity.Client.address.country",{optionProvider:tp.l,placeholder:"imxplatform.common.select-placeholder-demand",initialValue:-1,insertor:(0,ir.wq)("address.country",!0)}),new Gr.II("text","address.phone1","entity.Client.address.phone1"),new Gr.II("text","address.phone2","entity.Client.address.phone2"),new Gr.II("text","address.fax","entity.Client.address.fax"),new Gr.II("text","address.email","entity.Client.address.email",{extendedValidators:us.Le}),new sp.A("address.homepage","entity.Client.address.homepage",{extendedValidators:us.Y2}),new ts.P("reliabilityClassification","entity.Client.reliabilityClassification",{optionProvider:zu,placeholder:"imxplatform.common.select-placeholder-demand",initialValue:-1,extractor:(0,wr.YL)("reliabilityClassification.id"),insertor:(0,ir.wq)("reliabilityClassification.id",!0)}),new ts.P("mediaLicense","entity.Client.mediaLicense",{optionProvider:Sp.V,placeholder:"imxplatform.common.select-placeholder-demand",initialValue:-1,extractor:(0,wr.YL)("mediaLicense.id"),insertor:(0,ir.wq)("mediaLicense.id",!0)}),new _l.N("attributes","entity.Client.attributes",{optionProvider:Wu,extractor:(0,wr.XS)("attributes","id"),insertor:(0,ir.wr)("attributes","id"),rowLayout:!1})]);let Fp=(()=>{class A extends _r.z{constructor(f,L,V,Xe){super(i_,void 0,f,L,Xe),this.runtimeContextService=L,this.imxSecurityManagerService=V,this.formatterService=Xe}getEntityType(){return"Client"}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(Qe.EG),t.LFG(i.Ze),t.LFG(i.Xh),t.LFG(i.H1))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();function Vm(A,Gt){if(1&A&&(t.TgZ(0,"form",1)(1,"div",2)(2,"imx-grid")(3,"imx-grid-element",3),t._UZ(4,"imx-form-control",4),t.qZA(),t._UZ(5,"imx-grid-element",3),t.TgZ(6,"imx-grid-element",3),t._UZ(7,"imx-form-control",4),t.qZA(),t._UZ(8,"imx-grid-element",3),t.TgZ(9,"imx-grid-element",3),t._UZ(10,"imx-form-control",4),t.qZA()()()()),2&A){const f=t.oxw();t.Q6J("formGroup",f.parentForm),t.xp6(3),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("fulltext"))("control",f.formHandler.formGroup.get("fulltext"))("form",f.formHandler.formGroup.get("fulltext"))("formHandler",f.formHandler)("config",f.formHandler.formConfiguration),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("clientIds"))("control",f.formHandler.formGroup.get("clientIds"))("form",f.formHandler.formGroup.get("clientIds"))("formHandler",f.formHandler)("config",f.formHandler.formConfiguration),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("email"))("control",f.formHandler.formGroup.get("email"))("form",f.formHandler.formGroup.get("email"))("formHandler",f.formHandler)("config",f.formHandler.formConfiguration)}}let o_=(()=>{class A extends qr.O{constructor(f){super(),this.runtimeContextService=f,this.id="CLIENT_MGMT_FILTER",this.titleKey="imxplatform.common-entity.filter.commonFilter.header",this.icon="icon-user2",this.allClients=[],this.filterFields=["fulltext","clientIds","email"]}ngOnInit(){super.ngOnInit(),this.formHandler.formGroup.get("clientTree").valueChanges.subscribe(f=>{this.formHandler.formGroup.get("clientIds").setValue(f.join(","),{emitEvent:!1})}),this.formHandler.formGroup.get("clientIds").valueChanges.subscribe(f=>{this.overtakeClientIdsToTree(f)})}handleIncomingValues(f){const L=super.handleIncomingValues(f),V=f.baseObject.clientIds;return V&&this.overtakeClientIdsToTree(V),L}overtakeClientIdsToTree(f){if(f){const L=f.replace(/\s/g,"").split(",").map(V=>Number.parseInt(V,10));this.formHandler.formGroup.get("clientTree").setValue(L,{emitEvent:!1})}else this.formHandler.formGroup.get("clientTree").setValue([],{emitEvent:!1})}onReset(){this.parentForm.controls.clientIds.setValue(void 0)}onPanelShown(){super.onPanelShown(),this.loadClients()}loadClients(){0===this.allClients.length&&this.runtimeContextService.getCurrentAndSubClients().subscribe(f=>{const L=Array.from(f).filter(V=>null==V.parent||!f.has(V.parent));this.allClients=L})}displayFn(f){return f?f.name:void 0}sortFnForClient(f,L,V){return f.name.localeCompare(L.name)}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(i.Ze))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-client-mgmt-filter-panel"]],hostAttrs:[1,"imx-client-mgmt-filter-panel"],features:[t._Bn([(0,qr.T)(A)]),t.qOj],decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"filter__card"],[3,"lg_w","sm_w"],[3,"field","control","form","formHandler","config"]],template:function(L,V){1&L&&t.YNc(0,Vm,11,26,"form",0),2&L&&t.Q6J("ngIf",V.panelShown)},dependencies:[e.O5,x._Y,x.JL,x.sg,On.M,_n.V,ee.A],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}"]})}return A})();function C_(A,Gt){if(1&A&&t._UZ(0,"imx-client-mgmt-filter-panel",2,3),2&A){const f=t.oxw();t.Q6J("pinned",!0)("parentForm",f.formHandler.formGroup)("formHandler",f.formHandler)("record",f.record)}}let xf=(()=>{class A extends Cr.F{constructor(){super()}getEntityName(){return"Client"}static#e=this.\u0275fac=function(L){return new(L||A)};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-client-mgmt-filter"]],features:[t.qOj],decls:3,vars:7,consts:[[3,"entityName","filterPanelsTemplate","formHandler","record","orderFields","orderField","orderDirection","orderChanged","save"],["filterPanelsTemplate",""],[3,"pinned","parentForm","formHandler","record"],["clientMgmtFilterPanel",""]],template:function(L,V){if(1&L&&(t.TgZ(0,"imx-filter",0),t.NdJ("orderChanged",function(An){return V.orderChanged.emit(An)})("save",function(An){return V.applyFilter.emit(An)}),t.YNc(1,C_,2,4,"ng-template",null,1,t.W1O),t.qZA()),2&L){const Xe=t.MAs(2);t.Q6J("entityName","Client")("filterPanelsTemplate",Xe)("formHandler",V.formHandler)("record",V.record)("orderFields",V.orderFields)("orderField",V.orderField)("orderDirection",V.orderDirection)}},dependencies:[o_,Hi.z]})}return A})();function vf(A,Gt){1&A&&(t.TgZ(0,"imx-list-no-results"),t._uU(1,"imxplatform.client-mgmt.list.no-records"),t.qZA())}function bf(A,Gt){1&A&&t._UZ(0,"mat-progress-bar",8)}const y_=A=>({"id-column":A});function Gp(A,Gt){if(1&A&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&A){const f=Gt.$implicit;t.Q6J("ngClass",t.VKq(4,y_,"id"===f.id.toLocaleLowerCase())),t.xp6(),t.hij(" ",t.lcZ(2,2,f.label)," ")}}function Cf(A,Gt){if(1&A&&(t.TgZ(0,"tr"),t.YNc(1,Gp,3,6,"th",14),t._UZ(2,"th",15),t.qZA()),2&A){const f=Gt.$implicit;t.xp6(),t.Q6J("ngForOf",f)}}function nf(A,Gt){if(1&A&&t._UZ(0,"p-treeTableToggler",22),2&A){const f=t.oxw(2).$implicit;t.Q6J("rowNode",f)}}function r_(A,Gt){if(1&A){const f=t.EpF();t.ynx(0),t.TgZ(1,"a",23),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(2).rowData,Xe=t.oxw(3);return t.KtG(Xe.editClient(V))}),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"readI18n"),t.qZA(),t.BQk()}if(2&A){const f=t.oxw().$implicit,L=t.oxw().rowData,V=t.oxw(3);t.xp6(2),t.Oqu(t.lcZ(3,1,t.lcZ(4,3,V.renderColumn(f.extractor(L),f))))}}function au(A,Gt){if(1&A&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"readI18n"),t.qZA()),2&A){const f=t.oxw().$implicit,L=t.oxw().rowData,V=t.oxw(3);t.xp6(),t.Oqu(t.lcZ(2,1,t.lcZ(3,3,V.renderColumn(f.extractor(L),f))))}}function O_(A,Gt){if(1&A&&(t.TgZ(0,"td",19),t.ALo(1,"translate"),t.ALo(2,"readI18n"),t.YNc(3,nf,1,1,"p-treeTableToggler",20)(4,r_,5,5,"ng-container",10)(5,au,4,5,"ng-template",null,21,t.W1O),t.qZA()),2&A){const f=Gt.$implicit,L=t.MAs(6),V=t.oxw().rowData,Xe=t.oxw(3);t.Q6J("matTooltip",t.lcZ(1,6,t.lcZ(2,8,Xe.renderColumn(f.extractor(V),f))))("matTooltipShowDelay",500)("ngClass",t.VKq(10,y_,"id"===f.id.toLocaleLowerCase())),t.xp6(3),t.Q6J("ngIf",f.baseEntityFieldOption.isTreeToggleField),t.xp6(),t.Q6J("ngIf",Xe.hasEditPermission())("ngIfElse",L)}}function R_(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-action-menu-item",27),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(2).rowData,Xe=t.oxw(3);return t.KtG(Xe.editClient(V))}),t._uU(1," imxplatform.common-entity.list.edit "),t.qZA()}}function Ym(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-action-menu-item",27),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(2).rowData,Xe=t.oxw(3);return t.KtG(Xe.editClientInformation(V))}),t._uU(1," imxplatform.client-mgmt.list.edit-information "),t.qZA()}}function k_(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-action-menu-item",28),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(2).rowData,Xe=t.oxw(3);return t.KtG(Xe.appendSubClient(V))}),t._uU(1," imxplatform.client-mgmt.list.add "),t.qZA()}}function N_(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-action-menu-item",29),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(2).rowData,Xe=t.oxw(3);return t.KtG(Xe.deleteClient(V))}),t._uU(1," imxplatform.common-entity.list.remove "),t.qZA()}}function U_(A,Gt){if(1&A&&(t.TgZ(0,"imx-dropup-button")(1,"imx-action-menu"),t.YNc(2,R_,2,0,"imx-action-menu-item",24)(3,Ym,2,0,"imx-action-menu-item",24)(4,k_,2,0,"imx-action-menu-item",25)(5,N_,2,0,"imx-action-menu-item",26),t.qZA()()),2&A){const f=t.oxw(4);t.xp6(2),t.Q6J("ngIf",f.hasEditPermission()),t.xp6(),t.Q6J("ngIf",f.hasEditPermission()),t.xp6(),t.Q6J("ngIf",f.hasCreatePermission()),t.xp6(),t.Q6J("ngIf",f.hasDeletePermission())}}function Tm(A,Gt){if(1&A&&(t.TgZ(0,"tr"),t.YNc(1,O_,7,12,"td",17),t.TgZ(2,"td",15),t.YNc(3,U_,6,4,"imx-dropup-button",18),t.qZA()()),2&A){const f=Gt.columns,L=t.oxw(3);t.xp6(),t.Q6J("ngForOf",f),t.xp6(2),t.Q6J("ngIf",L.hasEditPermission()||L.hasCreatePermission||L.hasDeletePermission())}}function P_(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"p-treeTable",11),t.YNc(2,Cf,3,1,"ng-template",12)(3,Tm,4,2,"ng-template",13),t.qZA(),t.BQk()),2&A){const f=t.oxw(2);t.xp6(),t.Q6J("columns",f.fields)("value",f.treeRootNodes)("resizableColumns",!0)}}function rf(A,Gt){if(1&A&&(t.TgZ(0,"div",9),t.YNc(1,P_,4,3,"ng-container",10),t.qZA()),2&A){const f=Gt.ngIf;t.oxw();const L=t.MAs(6);t.xp6(),t.Q6J("ngIf",f.items.length>0)("ngIfElse",L)}}let vp=(()=>{class A extends hr.uY{constructor(f,L,V,Xe,An,Qo,Dr,es,Al,Rl,$l,kl,Jl,od,dm,Ku,Xh){super(f,L,V,Xe,An,Qo,Dr,es,Al,od,void 0,void 0),this.filterFormHandler=Dr,this.ngControlBuilder=Rl,this.imxSecurityManagerService=$l,this.entitiesMgrService=kl,this.platformMgmtDataAccessService=Jl,this.runtimeContextService=dm,this.securityManagerService=Ku,this.formatterService=Xh,this.imxPermissions=i.uo,this.availableOrderFields=[{index:1,field:"name",i18n:"entity.Client.name",type:an.m.alphanumeric},{index:2,field:"id",i18n:"entity.DataObject.id",type:an.m.numeric}],this.fields=[new Gr.II("text","name","entity.Client.name",{baseEntityFieldOption:{isTreeToggleField:!0}}),new Gr.II("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new sp.A("shortDescription","entity.Client.shortDescription"),new Gr.II("text","address.email","entity.Client.address.email"),new Gr.II("text","address.city","entity.Client.address.city")],this.treeRootNodes=[],this.treeNodesOverAllCount=0,this.treeNodesFilteredCount=0,this.orderField="id"}getEntityName(){return"Client"}beforeLoadRecords(f){super.beforeLoadRecords(f),f.filterPredicates=[(0,Ja.xC)("clientIds"),(0,Ja.OU)((A,Gt)=>!Gt.fulltext||A.name.toLowerCase().includes(Gt.fulltext.toLowerCase())||A.shortDescription&&Object.keys(A.shortDescription).filter(f=>"id"!==f&&"_entityType"!==f).some(f=>A.shortDescription[f]&&A.shortDescription[f].toLowerCase().includes(Gt.fulltext.toLowerCase()))),(0,Ja.OU)((A,Gt)=>!Gt.email||null!=A.address.email&&A.address.email.toLowerCase().includes(Gt.email.toLowerCase()))]}afterContentLoaded(){super.afterContentLoaded(),this.treeRootNodes=[],this.treeNodesOverAllCount=0,this.treeNodesFilteredCount=0;const f=this.determineFirstVisibleRoot(this.currentResult.items);if(f){const L=xm(f);this.treeRootNodes.push(this.createPrimeNgTreeNode(L))}this.numberOfResults=this.treeNodesFilteredCount>0?this.treeNodesFilteredCount:this.treeNodesOverAllCount}determineFirstVisibleRoot(f){let L=f.find(V=>V.id===this.runtimeContextService.getLoginClient().id);if(L)return L;for(const V of f)if(L=this.determineFirstVisibleRoot(V.children),L)break;return L}renderColumn(f,L){return L.baseEntityFieldOption&&L.baseEntityFieldOption.listRenderer?L.baseEntityFieldOption.listRenderer(f):f}hasEditPermission(){return this.securityManagerService.hasPermission(this.imxPermissions.F_CLIENT_MANAGEMENT_UPDATE)}hasCreatePermission(){return this.securityManagerService.hasPermission(this.imxPermissions.F_CLIENT_MANAGEMENT_CREATE)}hasDeletePermission(){return this.securityManagerService.hasPermission(this.imxPermissions.F_CLIENT_MANAGEMENT_DELETE)}appendSubClient(f){this.entitiesMgrService.newEntityOfType("Client").subscribe(L=>{L.parent=f,this.showClientDialog(L,"NEW")})}editClient(f){this.platformMgmtDataAccessService.getClientById(f.id).subscribe(L=>this.showClientDialog(L,"EDIT"))}editClientInformation(f){this.entitiesMgrService.getEntityWithIdOfType("ClientInformation",f.id).subscribe(L=>this.showClientInformationDialog(L),L=>{L&&404===L.status&&L.error&&L.error.params&&L.error.params&&L.error.params.find(V=>V.includes("id"))?this.entitiesMgrService.insertEntityOfType("ClientInformation",{id:f.id,fragments:[],_entityType:"ClientInformation"}).subscribe(Xe=>{this.showClientInformationDialog(Xe)},Xe=>{this.userMessageService.showError(Xe||"imxplatform.base-entity.list.dialog-create.failure")}):this.userMessageService.showError("imxplatform.exception.404_backend_version")})}deleteClient(f){this.dialog.open(Pd.F,{...Qt.D.FORM_SMALL,data:{i18n:"imxplatform.client-mgmt.list.action.delete.confirm",dialogTitle:"imxplatform.client-mgmt.dialog-delete.title",objectId:f.id}}).afterClosed().subscribe(V=>{V&&this.platformMgmtDataAccessService.deleteClientEventManagerConfig(f.id).subscribe(()=>{this.executeActualClientDelete(f)},Xe=>{this.executeActualClientDelete(f)})})}executeActualClientDelete(f){this.platformMgmtDataAccessService.deleteClient(f.id).subscribe(()=>{this.recordsOnceLoaded=!1,this.reloadData(),this.userMessageService.showInfo("imxplatform.client-mgmt.dialog-delete.success")},L=>{this.userMessageService.showError(L||"imxplatform.client-mgmt.dialog-delete.failure")})}showClientInformationDialog(f){const L=new Yl(this.ngControlBuilder,this.runtimeContextService,this.imxSecurityManagerService,this.formatterService);L.baseObject=f,this.dialog.open(g_,{...Qt.D.FORM_BIG,data:{formRow:L.formGroup,formHandler:L,clientInformation:f}}).afterClosed().subscribe(V=>{if(V){const Xe=L.getBaseObjectCopyWithCurrentFormValues();console.log("xxx currentFormValues",Xe),Xe.id=f.id,this.entitiesMgrService.updateEntityOfType("ClientInformation",Xe).subscribe(()=>{this.userMessageService.showInfo("imxplatform.base-entity.list.dialog-edit.success")},An=>{this.userMessageService.showError(An||"imxplatform.base-entity.list.dialog-edit.failure")})}})}showClientDialog(f,L){const V=new Fp(this.ngControlBuilder,this.runtimeContextService,this.imxSecurityManagerService,this.formatterService);V.baseObject=f,this.dialog.open(Vo,{...Qt.D.FORM_BIG,data:{mode:L,formRow:V.formGroup,formHandler:V,client:f}}).afterClosed().subscribe(An=>{if(An){const Qo=V.getBaseObjectCopyWithCurrentFormValues();delete Qo.children,Qo.parent&&(delete Qo.parent.children,delete Qo.parent.parent,Qo.parent._entityType="Client"),"EDIT"===L?this.platformMgmtDataAccessService.updateClient(Qo).subscribe(()=>{this.recordsOnceLoaded=!1,this.reloadData(),this.userMessageService.showInfo("imxplatform.client-mgmt.dialog-edit.success"),this.entitiesMgrService.refreshEntitiesOfType("Client")},Dr=>{this.userMessageService.showError(Dr||"imxplatform.client-mgmt.dialog-edit.failure")}):"NEW"===L&&(Qo._entityType="Client",this.platformMgmtDataAccessService.createClient(Qo).subscribe(()=>{this.recordsOnceLoaded=!1,this.reloadData(),this.userMessageService.showInfo("imxplatform.client-mgmt.dialog-create.success"),this.entitiesMgrService.refreshEntitiesOfType("Client")},Dr=>{this.userMessageService.showError(Dr||"imxplatform.client-mgmt.dialog-create.failure")}))}})}createPrimeNgTreeNode(f){const L=[];let V=f.nodeFiltered;return f.children&&f.children.forEach(Xe=>{L.push(this.createPrimeNgTreeNode(Xe)),V=V||Xe.childFiltered||Xe.nodeFiltered}),f.nodeFiltered&&this.treeNodesFilteredCount++,this.treeNodesOverAllCount++,{data:f,children:L,expanded:V||null===f.parent}}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(Br.e),t.Y36(l.F0),t.Y36(l.gz),t.Y36(c.Y),t.Y36(Wi.G),t.Y36(ae.uw),t.Y36(Cm),t.Y36(sn.nq),t.Y36(sl.x),t.Y36(Qe.EG),t.Y36(i.Xh),t.Y36(i.qB),t.Y36(mr.Q),t.Y36(Wr.Q),t.Y36(i.Ze),t.Y36(i.Xh),t.Y36(i.H1))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],features:[t.qOj],decls:12,vars:12,consts:[[1,"base-entity-search","list"],[3,"formHandler","record","orderFields","orderField","orderDirection","orderChanged","applyFilter","resetFilter"],[3,"totalNumber","entityResourceKeyPrefix","showCompactToggle","reload"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],["class","table-wrapper",4,"ngIf","ngIfElse"],[1,"footer__sticky"],["mode","indeterminate"],[1,"table-wrapper"],[4,"ngIf","ngIfElse"],[1,"imx-datatable",3,"columns","value","resizableColumns"],["pTemplate","header"],["pTemplate","body"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"action-column"],[3,"ngClass"],[3,"matTooltip","matTooltipShowDelay","ngClass",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"matTooltip","matTooltipShowDelay","ngClass"],[3,"rowNode",4,"ngIf"],["noPerm",""],[3,"rowNode"],[1,"txt-link",3,"click"],["icon","icon-pencil",3,"click",4,"ngIf"],["icon","icon-clients",3,"click",4,"ngIf"],["icon","icon-trash","additionalStyle","delete",3,"click",4,"ngIf"],["icon","icon-pencil",3,"click"],["icon","icon-clients",3,"click"],["icon","icon-trash","additionalStyle","delete",3,"click"]],template:function(L,V){if(1&L&&(t.TgZ(0,"div",0)(1,"imx-client-mgmt-filter",1),t.NdJ("orderChanged",function(An){return V.sort(An)})("applyFilter",function(An){return V.search(An)})("resetFilter",function(){return V.reset()}),t.qZA(),t.TgZ(2,"imx-list-header",2),t.NdJ("reload",function(){return V.reloadComplete()}),t.qZA(),t.TgZ(3,"imx-grid")(4,"imx-grid-element",3),t.YNc(5,vf,2,0,"ng-template",null,4,t.W1O)(7,bf,1,0,"ng-template",null,5,t.W1O)(9,rf,2,2,"div",6),t.ALo(10,"async"),t.qZA()(),t._UZ(11,"div",7),t.qZA()),2&L){const Xe=t.MAs(8);t.xp6(),t.Q6J("formHandler",V.filterFormHandler)("record",V.filter)("orderFields",V.availableOrderFields)("orderField",V.orderField)("orderDirection",V.orderDirection),t.xp6(),t.Q6J("totalNumber",V.numberOfResults)("entityResourceKeyPrefix","imxplatform.client-mgmt")("showCompactToggle",!1),t.xp6(7),t.Q6J("ngIf",t.lcZ(10,10,V.results))("ngIfElse",Xe)}},dependencies:[e.mk,e.sg,e.O5,Ft.pW,qi.gM,zo.jx,Lo.iw,Lo.gc,xi.p,ki.z,wo.t,On.M,_n.V,xf,Cn._,uo.A,kn.F,e.Ov,Y.X$,ue.j],styles:[".base-entity-search[_ngcontent-%COMP%]{padding-bottom:50px;padding-top:50px}.base-entity-search[_ngcontent-%COMP%]   .icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.base-entity-search[_ngcontent-%COMP%]   .selected-size[_ngcontent-%COMP%]{color:#3e3e3e}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.imx-datatable[_ngcontent-%COMP%]   .select-column[_ngcontent-%COMP%]{width:40px}.imx-datatable[_ngcontent-%COMP%]   .action-column[_ngcontent-%COMP%]{width:50px}.imx-datatable[_ngcontent-%COMP%]   .id-column[_ngcontent-%COMP%]{width:100px}"]})}return A})();function Of(A,Gt){if(1&A&&t._UZ(0,"imx-form-control",5),2&A){const f=Gt.$implicit,L=t.oxw();t.Q6J("field",f)("control",L.data.formHandler.formGroup.get(f.id))("form",L.data.formHandler.formGroup)("config",L.data.formHandler.formConfiguration)("formHandler",L.data.formHandler)}}let B_=(()=>{class A{constructor(f){this.data=f}getFields(){return this.data.formHandler.formConfiguration.fields}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(ae.WI))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],decls:5,vars:4,consts:[["icon","icon-pencil","dialogType","form",3,"heading","submitButtonDisabled"],["id","configuration-definition-part-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],["ngFor","",3,"ngForOf"],[3,"field","control","form","config","formHandler"]],template:function(L,V){1&L&&(t.TgZ(0,"imx-dialog",0)(1,"form",1)(2,"div",2)(3,"div",3),t.YNc(4,Of,1,5,"ng-template",4),t.qZA()()()()),2&L&&(t.Q6J("heading",V.data.title)("submitButtonDisabled",V.data.formRow.invalid||V.data.formRow.pristine),t.xp6(),t.Q6J("formGroup",V.data.formRow),t.xp6(3),t.Q6J("ngForOf",V.getFields()))},dependencies:[e.sg,x._Y,x.JL,x.sg,Qt.a,ee.A]})}return A})();var sf=a(4766);const Pf=new na.A("groupKey","",{required:!1,initialValue:""}),Mf=new na.A("parameterName","",{required:!1,initialValue:""}),a_=new Jr.E([Pf,Mf]),Z_=new t.OlP("imxplatform.filterformextensions.configurationdefinition");let s_=(()=>{class A extends _r.z{constructor(f,L,V,Xe,An){super(a_,void 0,L,V,An),this.runtimeContextService=V,this.imxSecurityManagerService=Xe,this.formatterService=An}getEntityType(){return"ConfigurationDefinition"}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(Z_,8),t.LFG(Qe.EG),t.LFG(i.Ze),t.LFG(i.Xh),t.LFG(i.H1))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();var lf=a(40340);function bp(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"div",23),t.NdJ("click",function(){t.CHM(f);const V=t.oxw();return t.KtG(V.scroll("left"))}),t._UZ(1,"span",24),t.qZA()}}function lp(A,Gt){if(1&A&&(t.TgZ(0,"mat-option",25),t._uU(1),t.ALo(2,"readI18n"),t.qZA()),2&A){const f=Gt.$implicit;t.s9C("matTooltip",f.value),t.Q6J("value",f.value),t.xp6(),t.Oqu(t.lcZ(2,3,f.label))}}function M_(A,Gt){if(1&A&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&A){const f=Gt.$implicit;t.s9C("matTooltip",f.value),t.Q6J("value",f.value),t.xp6(),t.Oqu(f.label)}}function cf(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"div",27),t.NdJ("click",function(){t.CHM(f);const V=t.oxw();return t.KtG(V.scroll("right"))}),t._UZ(1,"span",28),t.qZA()}}let H_=(()=>{class A extends Hi.z{constructor(f,L,V,Xe,An,Qo,Dr,es){super(f,L,V,Xe,An,Qo,Dr),this.translateService=es,this.parameterName="none",this._global="global",this.defaultEntityOption={value:this._global,label:this.translateService.instant("imxplatform.common.select-placeholder-demand")},this.defaultParameterOption={value:"-1",label:this.translateService.instant("imxplatform.common.select-placeholder-demand")},this.parameterNames=[],this.groupKeys=[],this.groupKeyMap=new Map,this.currentGroupKey=""}ngOnInit(){super.ngOnInit(),this.configDefs$.pipe((0,Yr.q)(1)).subscribe(f=>{if(f){const L=new Map;f.forEach(V=>{L.get(V.groupKey)||L.set(V.groupKey,[]),L.get(V.groupKey).push({value:V.parameterName,label:V.parameterName})}),L.forEach(V=>V.sort((Xe,An)=>Xe.label.localeCompare(An.label))),this.groupKeyMap=L,this.groupKeys=[],this.groupKeys.push(this.defaultEntityOption),Array.from(this.groupKeyMap.keys()).map(V=>{this.groupKeys.push({label:V,value:V})}),this.groupKeys.filter(V=>V.value===this._global)&&this.formHandler.formGroup.get("groupKey").setValue(this._global),this.parameterNames=[],this.parameterNames.push(this.defaultParameterOption),this.formHandler.formGroup.get("parameterName").setValue("-1"),this.groupKeyMap.get(this.formHandler.formGroup.get("groupKey").value)&&this.formHandler.formGroup.get("groupKey").value.length>0&&this.parameterNames.push(...this.groupKeyMap.get(this.formHandler.formGroup.get("groupKey").value))}}),this.currentGroupKey=this.formHandler.formGroup.get("groupKey").value,this.formHandler.formGroup.get("groupKey").valueChanges.subscribe(f=>{f&&this.currentGroupKey!==f&&(this.currentGroupKey=f,this.groupKeyMap.get(f)?(this.parameterNames=[],this.parameterNames.push(this.defaultParameterOption),this.parameterNames.push(...this.groupKeyMap.get(f)),this.formHandler.formGroup.get("parameterName").setValue("-1"),this.submit()):this.parameterNames=[])})}initScrollbar(){}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(i.qB),t.Y36(sn.nq),t.Y36(ur.$),t.Y36(c.Y),t.Y36(ae.uw),t.Y36(l.F0),t.Y36(i.Pc),t.Y36(Y.sK))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-configuration-definition-filter"]],viewQuery:function(L,V){if(1&L&&t.Gf(qr.O,5),2&L){let Xe;t.iGM(Xe=t.CRH())&&(V.allFilterPanels=Xe)}},inputs:{configDefs$:"configDefs$"},features:[t.qOj],decls:27,vars:5,consts:[[3,"formGroup"],[1,"filter__sticky-wrapper","pinable-transition","pinable-aware"],["lg_w","12","lg_o","0"],[1,"filter__header-content"],[1,"filter__header-wrapper"],["filterHeader",""],[1,"filter__scroll-button-wrapper"],["class","filter__scroll-button left",3,"click",4,"ngIf"],[1,"filter__header"],[1,"filter__header__left"],[2,"overflow","hidden"],["scrollbar",""],[1,"filter__tabs"],["filterTabs",""],[1,"select-field-header-wrapper"],[1,"select-field-header","first"],["id","module","formControlName","groupKey"],["class","module-name-option","matTooltipShowDelay","5000",3,"value","matTooltip",4,"ngFor","ngForOf"],[1,"arrow-right-big"],[1,"select-field-header","second"],["id","entity","formControlName","parameterName"],["matTooltipShowDelay","5000",3,"value","matTooltip",4,"ngFor","ngForOf"],["class","filter__scroll-button right",3,"click",4,"ngIf"],[1,"filter__scroll-button","left",3,"click"],[1,"icon-chevron-leftBold"],["matTooltipShowDelay","5000",1,"module-name-option",3,"value","matTooltip"],["matTooltipShowDelay","5000",3,"value","matTooltip"],[1,"filter__scroll-button","right",3,"click"],[1,"icon-chevron-rightBold"]],template:function(L,V){1&L&&(t.TgZ(0,"div")(1,"form",0)(2,"div",1)(3,"imx-grid")(4,"imx-grid-element",2)(5,"div",3)(6,"div",4,5)(8,"div",6),t.YNc(9,bp,2,0,"div",7),t.qZA(),t.TgZ(10,"div",8)(11,"div",9)(12,"div",10,11)(14,"div",12,13)(16,"div",14)(17,"div",15)(18,"mat-form-field")(19,"mat-select",16),t.YNc(20,lp,3,5,"mat-option",17),t.qZA()()(),t._UZ(21,"div",18),t.TgZ(22,"div",19)(23,"mat-form-field")(24,"mat-select",20),t.YNc(25,M_,2,3,"mat-option",21),t.qZA()()()()()(),t.YNc(26,cf,2,0,"div",22),t.qZA()()()()()()()()()),2&L&&(t.xp6(),t.Q6J("formGroup",V.formHandler.formGroup),t.xp6(8),t.Q6J("ngIf",V.scrollbarLeftShown),t.xp6(11),t.Q6J("ngForOf",V.groupKeys),t.xp6(5),t.Q6J("ngForOf",V.parameterNames),t.xp6(),t.Q6J("ngIf",V.scrollbarRightShown))},dependencies:[e.sg,e.O5,x._Y,x.JJ,x.JL,rr.ey,Oa.KE,Pa.gD,qi.gM,x.sg,x.u,On.M,_n.V,ue.j],styles:['.filter__sticky-wrapper[_ngcontent-%COMP%]{position:fixed;left:0;top:50px;width:100%;z-index:3}.filter__header-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:flex-start}.filter__scroll-button-wrapper[_ngcontent-%COMP%]{position:relative}.filter__scroll-button[_ngcontent-%COMP%]{height:50px;width:36px;font-size:14px;line-height:18px;display:flex;flex-direction:row;align-items:center;justify-content:center;cursor:pointer;background-color:#eefafa;z-index:99}.filter__scroll-button.left[_ngcontent-%COMP%]{position:absolute;top:0;left:-36px;border-right:1px solid #fff}.filter__scroll-button.right[_ngcontent-%COMP%]{border-left:1px solid #fff;border-right:1px solid #fff}.filter__header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%}.filter__header__left[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center}.filter__header__left[_ngcontent-%COMP%]   .filter__tabs[_ngcontent-%COMP%]{display:flex;flex-direction:row}.filter__header__left[_ngcontent-%COMP%]   .filter__buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;position:relative}.filter__header__left[_ngcontent-%COMP%]   .filter__buttons[_ngcontent-%COMP%]   .triangle-up[_ngcontent-%COMP%]{position:absolute;top:53px;left:20px;z-index:999}.filter__header__left[_ngcontent-%COMP%]   .filter__buttons[_ngcontent-%COMP%]   .plus-button[_ngcontent-%COMP%]{height:50px;width:50px;font-size:14px;line-height:18px;display:flex;flex-direction:row;align-items:center;justify-content:center;cursor:pointer;border-right:1px solid #fff}.filter__header__left[_ngcontent-%COMP%]   .filter__buttons[_ngcontent-%COMP%]   .plus-button.initial[_ngcontent-%COMP%]{border-left:1px solid #fff}.filter__header__left[_ngcontent-%COMP%]   .filter__buttons[_ngcontent-%COMP%]   .plus-button.star-button[_ngcontent-%COMP%]{font-size:24px}.filter__header__left[_ngcontent-%COMP%]   .filter__buttons[_ngcontent-%COMP%]   imx-dropup-button[_ngcontent-%COMP%]{height:50px}.filter__header__left[_ngcontent-%COMP%]   .filter__buttons[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.filter__contents[_ngcontent-%COMP%]{background-color:#fff;border-bottom:1px solid #eefafa;box-shadow:0 0 10px #0003;position:fixed;top:100px;left:0;z-index:3;width:100%}.filter__contents.closed[_ngcontent-%COMP%]     .grid{height:0}.flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__header[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{min-height:40px}.filter__header-content[_ngcontent-%COMP%]{display:flex}.filter__header-wrapper[_ngcontent-%COMP%]{flex:1}.filter-container[_ngcontent-%COMP%] >   div{height:100%}  .select-field-header-wrapper{display:flex;flex-direction:row}  .select-field-header-wrapper .select-field-header{z-index:3}  .select-field-header-wrapper .mat-mdc-form-field .mat-mdc-select .mat-mdc-select-trigger{height:50px;line-height:50px;border-radius:unset;border:none;background-color:transparent}.module-name-option[ng-reflect-value^=modules_][_ngcontent-%COMP%]{font-style:italic}.arrow-right-big[_ngcontent-%COMP%]{width:50px;height:50px;box-sizing:border-box;left:50%;top:50%;transform:rotate(45deg);margin-left:-20px;margin-right:12px}.arrow-right-big[_ngcontent-%COMP%]:before{content:"";width:100%;height:100%;border-width:1px 0 0 0;border-style:solid;border-color:#fff;display:block}.arrow-right-big[_ngcontent-%COMP%]:after{content:"";float:left;position:relative;top:-100%;width:100%;height:100%;border-width:0 1px 0 0;border-style:solid;border-color:#fff}.select-field-header[_ngcontent-%COMP%]{height:50px}.select-field-header.first[_ngcontent-%COMP%]{border-left:1px solid #fff;min-width:300px}.select-field-header.second[_ngcontent-%COMP%]{border-right:1px solid #fff;min-width:400px}'],data:{animation:jd.zD}})}return A})();function Wf(A,Gt){1&A&&(t.TgZ(0,"imx-grid")(1,"imx-grid-element",7)(2,"div",5)(3,"h1",12),t._uU(4,"imxplatform.configuration-definition.no-data"),t.qZA()()()()),2&A&&(t.xp6(),t.Q6J("lg_w",6)("lg_o",0))}function Tf(A,Gt){1&A&&(t.TgZ(0,"imx-grid")(1,"imx-grid-element",7)(2,"div",5)(3,"h1",12),t._uU(4,"imxplatform.configuration-definition.header-no-filter"),t.qZA()()()()),2&A&&(t.xp6(),t.Q6J("lg_w",6)("lg_o",0))}function l_(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"div")(1,"a",13),t.NdJ("click",function(){t.CHM(f);const V=t.oxw();return t.KtG(V.reloadData())}),t._UZ(2,"span",14),t.qZA()()}}function ym(A,Gt){if(1&A&&(t.TgZ(0,"imx-tooltip",15)(1,"h1"),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&A){const f=t.oxw();t.Q6J("offset",3e3),t.xp6(2),t.lnq("",f.configurationDefinitionParts.length," ",t.lcZ(3,4,"imxplatform.configuration-definition.mapping"),"",1!==f.configurationDefinitionParts.length?"s":"","")}}function Cp(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(f);const V=t.oxw();return t.KtG(V.newConfigurationDefinitionPart())}),t._UZ(1,"i",17),t._uU(2),t.ALo(3,"translate"),t.qZA()}2&A&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"imxplatform.configuration-definition-part.add"),""))}function G_(A,Gt){if(1&A&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&A){const f=Gt.$implicit;t.Udp("width",f.width),t.Q6J("ngClass",f.cssClass),t.xp6(),t.hij(" ",t.lcZ(2,4,f.header)," ")}}function c_(A,Gt){if(1&A&&(t.TgZ(0,"tr"),t.YNc(1,G_,3,6,"th",21),t._UZ(2,"th"),t.qZA()),2&A){const f=t.oxw(2);t.xp6(),t.Q6J("ngForOf",f.getColumnDefinitions())}}function be(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-action-menu-item",27),t.NdJ("click",function(){t.CHM(f);const V=t.oxw().$implicit,Xe=t.oxw(2);return t.KtG(Xe.removeConfigurationDefinitionPart(V))}),t._uU(1,"imxplatform.common-entity.list.remove "),t.qZA()}}function we(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"tr")(1,"td",23)(2,"a",24),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(2);return t.KtG(An.editConfigurationDefinitionPart(Xe))}),t._uU(3),t.qZA()(),t.TgZ(4,"td",23)(5,"a",24),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(2);return t.KtG(An.editConfigurationDefinitionPart(Xe))}),t._uU(6),t.qZA()(),t.TgZ(7,"td")(8,"imx-dropup-button")(9,"imx-action-menu")(10,"imx-action-menu-item",25),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(2);return t.KtG(An.editConfigurationDefinitionPart(Xe))}),t._uU(11,"imxplatform.common-entity.list.edit "),t.qZA(),t.YNc(12,be,2,0,"imx-action-menu-item",26),t.qZA()()()()}if(2&A){const f=Gt.$implicit,L=t.oxw(2);t.xp6(),t.Q6J("matTooltip",f.configKey)("matTooltipShowDelay",500),t.xp6(2),t.hij(" ",f.configKey," "),t.xp6(),t.Q6J("matTooltip",L.getDataObjectName(f.configValue))("matTooltipShowDelay",500),t.xp6(2),t.hij(" ",L.getDataObjectName(f.configValue)," "),t.xp6(6),t.Q6J("ngIf",L.isMappingType())}}function ie(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"p-table",18),t.YNc(2,c_,3,1,"ng-template",19)(3,we,13,7,"ng-template",20),t.qZA(),t.BQk()),2&A){const f=t.oxw();t.xp6(),t.Q6J("value",f.configurationDefinitionParts)}}const Ge=()=>[];let io=(()=>{class A extends hr.uY{constructor(f,L,V,Xe,An,Qo,Dr,es,Al,Rl,$l,kl,Jl,od){super(f,L,V,Xe,An,Qo,Dr,es,void 0,$l,void 0,kl),this.platformMgmtDataAccessService=Al,this.entitiesMgrService=Rl,this.configurationDefinitionPartFormHandlerService=Jl,this.translateService=od,this.mappingSeparator=";",this.keyValueSeparator=":",this.permissions=i.uo,this.configDefs=[],this.configurationDefinitionParts=[],this.columnDefinitionsSimpleConfig=[{field:"firstColumn",header:"imxplatform.configuration-definition-part.configKey",width:"45%"},{field:"secondColumn",header:"imxplatform.configuration-definition-part.configValue",width:"45%"}],this.columnDefinitionsMappingConfig=[{field:"firstColumn",header:"imxplatform.configuration-definition-part.mappingKey",width:"45%"},{field:"secondColumn",header:"imxplatform.configuration-definition-part.mappingValue",width:"45%"}]}ngOnInit(){super.ngOnInit(),this.configDefs$=this.results.pipe((0,m.U)(f=>f.items)),this.filterFormHandler.formGroup.get("parameterName").valueChanges.subscribe(f=>{this.configDefs&&(!this.currentConfigDef||this.currentConfigDef.parameterName!==f)&&this.determineCurrentConfigDefAndParts(f)})}onLoadRecords(f,L,V){super.onLoadRecords(f,L,V),console.log("xxx onLoadRecords",f),this.configDefs=[],f.items.forEach(Xe=>{this.configDefs.push(Xe)}),this.filterFormHandler.formGroup.get("parameterName").value&&this.determineCurrentConfigDefAndParts(this.filterFormHandler.formGroup.get("parameterName").value)}determineCurrentConfigDefAndParts(f){this.configDefs.forEach(L=>{L.parameterName===f&&(this.currentConfigDef=L)}),"-1"===f?this.configurationDefinitionParts=[]:this.loadConfigDefParts()}getEntityName(){return"ConfigurationDefinition"}getSortPredicates(){return new Map}newConfigurationDefinitionPart(){const f=this.getConfigDefPartConfig(),L=this.configurationDefinitionPartFormHandlerService;L.formConfiguration=f;const V=this.configurationDefinitionPartFormHandlerService.buildReactiveFormDataStructure(f.fields);Object.keys(V.controls).forEach(Qo=>this.configurationDefinitionPartFormHandlerService.formGroup.registerControl(Qo,V.controls[Qo])),L.formGroup=V,L.baseObject={configKey:void 0,configValue:{id:-1,_entityType:this.currentConfigDef.entityType}},this.dialog.open(B_,{...Qt.D.FORM_BIG,data:{mode:"NEW",formRow:L.formGroup,formHandler:L}}).afterClosed().subscribe(Qo=>{if(Qo){const Dr=L.getBaseObjectCopyWithCurrentFormValues();this.insertConfigDefPart(Dr)}})}insertConfigDefPart(f){const L=Object.assign({},this.currentConfigDef);L.parameterValue=this.getMappingStringPart(L.parameterValue,f),this.platformMgmtDataAccessService.updateConfigurationDefinition(L).subscribe(V=>{this.recordsOnceLoaded=!1,this.reloadComplete()},V=>{this.userMessageService.showError(V||"imxplatform.configuration-definition-part.edit-failure")})}removeConfigurationDefinitionPart(f){this.dialog.open(Pd.F,{...Qt.D.CONFIRM,data:{i18n:"imxplatform.configuration-definition-part.action.delete.confirm"}}).afterClosed().subscribe(L=>{L&&this.removeConfigDefPart(f)})}removeConfigDefPart(f){const L=Object.assign({},this.currentConfigDef),V=this.filterArray(this.configurationDefinitionParts,f);L.parameterValue=this.getMappingString(V),this.platformMgmtDataAccessService.updateConfigurationDefinition(L).subscribe(Xe=>{this.reloadComplete()},Xe=>{this.userMessageService.showError(Xe||"imxplatform.configuration-definition-part.edit-failure")})}filterArray(f,L){return f.filter(function(V){return!(V.configValue.id===L.configValue.id&&V.configKey===L.configKey)})}getFilterPredicates(){return[]}loadConfigDefParts(){if(this.configurationDefinitionParts=[],this.currentConfigDef&&!this.currentConfigDef.entityType)this.configurationDefinitionParts.push({configKey:this.currentConfigDef.parameterName,configValue:this.currentConfigDef.parameterValue});else if(this.currentConfigDef&&this.isMappingType()){const f=this.currentConfigDef.parameterValue;if(f){const L=f.split(this.mappingSeparator);for(const V of L){const Xe=V.split(this.keyValueSeparator);Xe.length>=2&&this.loadEntityMapping(Xe)}}}}loadEntityMapping(f){this.entitiesMgrService.getEntityWithIdOfType(this.currentConfigDef.entityType,Number(f[1])).subscribe(L=>{L&&this.configurationDefinitionParts.push({configKey:f[0],configValue:L})})}getColumnDefinitions(){return this.currentConfigDef&&this.currentConfigDef.entityType?this.columnDefinitionsMappingConfig:this.columnDefinitionsSimpleConfig}getDataObjectName(f){return(0,i.HD)(f)?f:(0,ga.QK)(f)?f.i18nName[this.translateService.currentLang]:this.hasI18nNameProp(f)?f.i18nName[this.translateService.currentLang]+" ("+f.id+")":this.hasTitleProp(f)?f.title[this.translateService.currentLang]+" ("+f.id+")":(0,ga.A2)(f)?f.name:f.id}hasI18nNameProp(f){return"i18nName"in f}hasTitleProp(f){return"title"in f}editConfigurationDefinitionPart(f){this.editConfigPart(f,"ConfigurationDefinitionPart",this.configurationDefinitionPartFormHandlerService,B_)}editConfigPart(f,L,V,Xe,An){const Qo=this.getConfigDefPartConfig();V.formConfiguration=Qo;const Dr=this.configurationDefinitionPartFormHandlerService.buildReactiveFormDataStructure(Qo.fields);Object.keys(Dr.controls).forEach(es=>this.configurationDefinitionPartFormHandlerService.formGroup.registerControl(es,Dr.controls[es])),V.formGroup=Dr,V.baseObject=f,this.dialog.open(Xe,{...Qt.D.FORM_BIG,data:An||{mode:"EDIT",formRow:V.formGroup,formHandler:V,dataObject:f,title:this.currentConfigDef.entityType?"imxplatform.configuration-definition-part.edit-mapping":"imxplatform.configuration-definition-part.edit-config"}}).afterClosed().subscribe(es=>{if(es){const Al=V.getBaseObjectCopyWithCurrentFormValues();this.updateConfigDefPart(f,Al)}})}updateConfigDefPart(f,L){const V=Object.assign({},this.currentConfigDef);this.isMappingType()?this.entitiesMgrService.getEntityWithIdOfType(this.currentConfigDef.entityType,L.configValue.id).subscribe(Xe=>{Xe&&(f.configKey=L.configKey,f.configValue=Xe,V.parameterValue=this.getMappingString(this.configurationDefinitionParts))}):(f.configKey=L.configKey,f.configValue=L.configValue,V.parameterValue=f.configValue,V.parameterName=f.configKey),this.platformMgmtDataAccessService.updateConfigurationDefinition(V).subscribe(Xe=>{this.reloadComplete()},Xe=>{this.userMessageService.showError(Xe||"imxplatform.configuration-definition-part.edit-failure")})}getMappingString(f){let L="";return f.forEach(V=>{L=this.getMappingStringPart(L,V)}),L}getMappingStringPart(f,L){return f+L.configKey+this.keyValueSeparator+L.configValue.id+this.mappingSeparator}isMappingType(){return this.currentConfigDef&&this.currentConfigDef.entityType}getConfigDefPartConfig(){let f;if(!this.currentConfigDef)throw new Error(" no currentConfigDef exists");return f=this.currentConfigDef.entityType?this.configurationDefinitionPartFormHandlerService.getConfigDefPartConfig(this.currentConfigDef.entityType):this.configurationDefinitionPartFormHandlerService.getDefaultConfigDefPartConfig(),f}isNamedDataObject(f){return!!(0,i.Kn)(f)&&"name"in f}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(sf.l),t.Y36(l.F0),t.Y36(l.gz),t.Y36(c.Y),t.Y36(Wi.G),t.Y36(ae.uw),t.Y36(s_),t.Y36(sn.nq),t.Y36(mr.Q),t.Y36(i.qB),t.Y36(Wr.Q),t.Y36(Ui.a),t.Y36(lf.K),t.Y36(Y.sK))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],features:[t.qOj],decls:17,vars:15,consts:[[1,"configuration-definition-search","list"],[3,"configDefs$","formHandler","record","orderFields","orderField","orderDirection","orderChanged","reset"],[1,"list__header-wrapper"],[4,"ngIf"],["lg_w","6","lg_o","0"],[1,"list__header"],[3,"offset",4,"ngIf"],[3,"lg_w","lg_o"],[1,"list__header-right-menu"],["class","imx-button default with-icon",3,"click",4,"ngIf"],["lg_w","12","lg_o","0"],[1,"table-wrapper"],["translate",""],[1,"reload",3,"click"],[1,"icon-refresh","imx-icon-middle"],[3,"offset"],[1,"imx-button","default","with-icon",3,"click"],[1,"icon","icon-file-add"],[1,"imx-datatable",3,"value"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",3,"ngClass"],[3,"matTooltip","matTooltipShowDelay"],[1,"txt-link",3,"click"],["icon","icon-pencil",3,"click"],["icon","icon-trash","additionalStyle","delete",3,"click",4,"ngIf"],["icon","icon-trash","additionalStyle","delete",3,"click"]],template:function(L,V){1&L&&(t.TgZ(0,"div",0)(1,"imx-configuration-definition-filter",1),t.NdJ("orderChanged",function(An){return V.sort(An)})("reset",function(){return V.reset()}),t.qZA(),t.TgZ(2,"div",2),t.YNc(3,Wf,5,2,"imx-grid",3)(4,Tf,5,2,"imx-grid",3),t.TgZ(5,"imx-grid")(6,"imx-grid-element",4)(7,"div",5),t.YNc(8,l_,3,0,"div",3)(9,ym,4,6,"imx-tooltip",6),t.qZA()(),t.TgZ(10,"imx-grid-element",7)(11,"div",8),t.YNc(12,Cp,4,3,"button",9),t.qZA()()()(),t.TgZ(13,"imx-grid")(14,"imx-grid-element",10)(15,"div",11),t.YNc(16,ie,4,1,"ng-container",3),t.qZA()()()()),2&L&&(t.xp6(),t.Q6J("configDefs$",V.configDefs$)("formHandler",V.filterFormHandler)("record",V.filter)("orderFields",t.DdM(14,Ge))("orderField",V.orderField)("orderDirection",V.orderDirection),t.xp6(2),t.Q6J("ngIf",0==V.configDefs.length),t.xp6(),t.Q6J("ngIf",V.configDefs.length>0&&!V.currentConfigDef),t.xp6(4),t.Q6J("ngIf",V.currentConfigDef),t.xp6(),t.Q6J("ngIf",V.configurationDefinitionParts&&V.currentConfigDef),t.xp6(),t.Q6J("lg_w",6)("lg_o",0),t.xp6(2),t.Q6J("ngIf",V.isMappingType()),t.xp6(4),t.Q6J("ngIf",V.currentConfigDef))},dependencies:[e.mk,e.sg,e.O5,qi.gM,Y.Pi,wi.iA,zo.jx,wi.Q7,xi.p,ki.z,wo.t,On.M,_n.V,ho.K,H_,kn.F,Y.X$],styles:[".list__header-wrapper[_ngcontent-%COMP%]{padding:15px 0}.list__header-right-menu[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:flex-end}.list__header-right-menu[_ngcontent-%COMP%]    >*{margin-left:10px}.list__header[_ngcontent-%COMP%]{display:flex}.list__header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{display:inline;font-size:22px;line-height:26px;padding:0 10px}.list__header[_ngcontent-%COMP%]   .reload[_ngcontent-%COMP%], .list__header[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{display:inline-block;cursor:pointer;text-decoration:none}.list__header[_ngcontent-%COMP%]   .reload[_ngcontent-%COMP%]{padding:5px 10px 0 0;border-right:1px solid #eefafa}.list__header[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{padding:5px 10px;border-left:1px solid #eefafa}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.configuration-definition-search[_ngcontent-%COMP%]{padding-bottom:50px;padding-top:50px}.configuration-definition-search[_ngcontent-%COMP%]   .icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.configuration-definition-search[_ngcontent-%COMP%]   .selected-size[_ngcontent-%COMP%]{color:#3e3e3e}"]})}return A})();var Ro=a(96698);let ar=(()=>{class A{constructor(f){this.configurationProvider=f,this.configParamsTable=[]}ngOnInit(){this.configurationSource$=this.configurationProvider.getList().pipe((0,m.U)(f=>f.sort((L,V)=>L.key.localeCompare(V.key)))),this.prepareConfigParamsTable()}prepareConfigParamsTable(){this.configParamsTable=[],this.configParamsTable.push({accessor:"key",columnTitle:"Key",width:"30%"},{accessor:"value",columnTitle:"Value"})}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(i.Pc))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],decls:5,vars:5,consts:[[1,"config-page"],[2,"margin-bottom","10px"],[3,"columns","data","rowSelection"]],template:function(L,V){1&L&&(t.TgZ(0,"div",0)(1,"h3",1),t._uU(2,"Konfigurationsparameter"),t.qZA(),t._UZ(3,"imx-table",2),t.ALo(4,"async"),t.qZA()),2&L&&(t.xp6(3),t.Q6J("columns",V.configParamsTable)("data",t.lcZ(4,3,V.configurationSource$))("rowSelection",!1))},dependencies:[Ro.a,e.Ov],styles:[".config-page[_ngcontent-%COMP%]{padding:50px}[_nghost-%COMP%]     imx-table td div{overflow:unset;text-overflow:unset!important;white-space:unset!important}"]})}return A})();var Or=a(68940),La=a(7902),za=a(96776),Ol=a(24521),fl=a(21959),As=a(19512),Xs=a(25478),kc=a(15766),Vc=a(95779),Ed=a(44612),am=a(15788);const y={BarChartDate:As.P,Links:Xs.F,List:kc.n,PieChartSimple:Vc.G,TextReadWrite:Ed._};let g=(()=>{class A{ngOnChanges(f){(f.widgetDef||f.widgetContent)&&this._allRequiredDataAvailable&&this._buildDynamicComponentProperties()}_buildDynamicComponentProperties(){void 0!==this.widgetDef&&void 0!==this.widgetContent&&(this.component=this.getWidgetComponent(this.widgetDef),this.componentParams={widgetDef:this.widgetDef,widgetContent:this.widgetContent})}get _allRequiredDataAvailable(){return void 0!==this.widgetDef&&void 0!==this.widgetContent}getWidgetComponent(f){const{viewType:L}=f;return y[L]}static#e=this.\u0275fac=function(L){return new(L||A)};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-dashboard-dynamic-widget-component"]],inputs:{widgetDef:"widgetDef",widgetContent:"widgetContent"},features:[t.TTD],decls:1,vars:2,consts:[[3,"component","componentParams"]],template:function(L,V){1&L&&t._UZ(0,"imx-dynamic-component",0),2&L&&t.Q6J("component",V.component)("componentParams",V.componentParams)},dependencies:[am.B],encapsulation:2})}return A})();const T=A=>({userName:A});function W(A,Gt){if(1&A&&(t.ynx(0),t._UZ(1,"div",1),t.ALo(2,"translate"),t._UZ(3,"img",2),t.BQk()),2&A){const f=Gt.ngIf,L=t.oxw();t.xp6(),t.Q6J("innerHTML",t.xi3(2,1,"imxplatform.dashboard.greeting",t.VKq(4,T,L.getUserName(f))),t.oJD)}}let le=(()=>{class A{constructor(f,L){this.authenticationService=f,this.platformService=L;const V=this.authenticationService.currentPrincipal;V&&(this.currentUser$=this.platformService.getUserInfo(V.getIdentifier()||""))}getUserName(f){const{firstname:L,lastname:V}=f;return[L,V].filter(Xe=>!!Xe).join(" ")}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(i.$h),t.Y36(sn.nq))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-dashboard-greeting"]],hostAttrs:[1,"imx-dashboard-greeting"],decls:2,vars:3,consts:[[4,"ngIf"],[3,"innerHTML"],["src","./assets/platform_negative.svg"]],template:function(L,V){1&L&&(t.YNc(0,W,4,6,"ng-container",0),t.ALo(1,"async")),2&L&&t.Q6J("ngIf",t.lcZ(1,1,V.currentUser$))},dependencies:[e.O5,e.Ov,Y.X$],styles:["[_nghost-%COMP%]{position:relative;padding-top:60px;padding-bottom:160px;color:#fff;margin-left:-80px;margin-right:-80px;display:flex;justify-content:center;align-items:center;text-align:right;font-size:24px;line-height:29px}[_nghost-%COMP%]   img[_ngcontent-%COMP%]{margin-left:30px;height:58px}"]})}return A})();var De=a(61058),ke=a(55387);function Ot(A,Gt){if(1&A&&(t.TgZ(0,"div",8),t._uU(1),t.qZA()),2&A){const f=t.oxw();t.xp6(),t.Oqu(f.title)}}function Nt(A,Gt){if(1&A&&(t.TgZ(0,"div",9),t._uU(1),t.qZA()),2&A){const f=t.oxw();t.xp6(),t.Oqu(f.infoText)}}function gn(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"div",10)(1,"span",11),t.NdJ("click",function(){t.CHM(f);const V=t.oxw();return t.KtG(V.emitWidgetRemove())}),t.qZA()()}}function Xn(A,Gt){if(1&A&&(t.TgZ(0,"div",12)(1,"imx-link",13),t._uU(2),t.qZA()()),2&A){const f=t.oxw();t.xp6(),t.Q6J("link",f.deepLink.link),t.xp6(),t.Oqu(f.translate(f.deepLink.name))}}const ci=["*"];let pi=(()=>{class A{set widget(f){this.dashboardWidget=f,this.icon=`dashboard-${f.widgetDef.icon}`,this.title=f.widgetDef.title,this.infoText=f.widgetDef.infoText,this.deepLink=f.widgetDef.deepLink,this.widgetDefId=f.widgetDef.id}get widget(){return this.dashboardWidget}constructor(f,L){this.translationService=f,this.securityManager=L,this.widgetRemove=new t.vpe}translate(f){return this.translationService.instant(f)}emitWidgetRemove(){this.widgetRemove.emit(this.widget)}canDelete(){return this.widgetDefId>9&&this.securityManager.hasPermission(i.uo.F_DASHBOARD_DELETE)}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(Y.sK),t.Y36(i.Xh))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-dashboard-widget-container"]],inputs:{widget:"widget"},outputs:{widgetRemove:"widgetRemove"},ngContentSelectors:ci,decls:9,vars:5,consts:[[1,"heading-container"],[3,"icon"],[1,"title-container"],["class","title",4,"ngIf"],["class","info-text",4,"ngIf"],["class","actions",4,"ngIf"],[1,"content-container"],["class","deep-link-container",4,"ngIf"],[1,"title"],[1,"info-text"],[1,"actions"],[1,"icon","icon-trash","imx-icon-small","imx-icon-clickable",3,"click"],[1,"deep-link-container"],[3,"link"]],template:function(L,V){1&L&&(t.F$t(),t.TgZ(0,"div",0),t._UZ(1,"imx-icon-with-circular-background",1),t.TgZ(2,"div",2),t.YNc(3,Ot,2,1,"div",3)(4,Nt,2,1,"div",4)(5,gn,2,0,"div",5),t.qZA()(),t.TgZ(6,"div",6),t.Hsn(7),t.qZA(),t.YNc(8,Xn,3,2,"div",7)),2&L&&(t.xp6(),t.Q6J("icon",V.icon),t.xp6(2),t.Q6J("ngIf",V.title),t.xp6(),t.Q6J("ngIf",V.infoText),t.xp6(),t.Q6J("ngIf",V.canDelete()),t.xp6(3),t.Q6J("ngIf",V.deepLink))},dependencies:[e.O5,De.P,ke.N],styles:["[_nghost-%COMP%]{height:100%;display:flex;flex-direction:column}[_nghost-%COMP%]   .icon-alarm[_ngcontent-%COMP%]{transform:rotate(-15deg)}[_nghost-%COMP%]   .heading-container[_ngcontent-%COMP%], [_nghost-%COMP%]   .deep-link-container[_ngcontent-%COMP%]{flex-shrink:0;display:flex}[_nghost-%COMP%]   .heading-container[_ngcontent-%COMP%]{margin-bottom:10px;align-items:center}[_nghost-%COMP%]   .heading-container[_ngcontent-%COMP%]   imx-icon-with-circular-background[_ngcontent-%COMP%]{flex-shrink:0;margin-right:10px;color:#ced4e0}[_nghost-%COMP%]   .heading-container[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]{display:flex;flex:1}[_nghost-%COMP%]   .heading-container[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:18px;line-height:22px}[_nghost-%COMP%]   .heading-container[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]   .info-text[_ngcontent-%COMP%]{font-size:12px;line-height:16px}[_nghost-%COMP%]   .heading-container[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{margin-left:auto}[_nghost-%COMP%]   .content-container[_ngcontent-%COMP%]{flex:1;min-height:0}[_nghost-%COMP%]   .deep-link-container[_ngcontent-%COMP%]{margin-top:10px;justify-content:flex-end}[_nghost-%COMP%]   .deep-link-container[_ngcontent-%COMP%]     a{font-size:12px;line-height:16px}"]})}return A})();const Di=A=>({"gridster-item--first":A});function Ni(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"gridster-item",2)(1,"imx-dashboard-widget-container",3),t.NdJ("widgetRemove",function(V){t.CHM(f);const Xe=t.oxw();return t.KtG(Xe.removeDashboardWidget(V))}),t._UZ(2,"imx-dashboard-dynamic-widget-component",4),t.qZA()()}if(2&A){const f=Gt.$implicit,L=Gt.index;t.Q6J("item",f)("ngClass",t.VKq(5,Di,0===L)),t.xp6(),t.Q6J("widget",f),t.xp6(),t.Q6J("widgetDef",f.widgetDef)("widgetContent",f.widgetContent)}}let lo=(()=>{class A{constructor(f,L,V){this.dashboardDataAccessService=f,this.userMessageService=L,this.securityManager=V,this.gridOptions={gridType:"verticalFixed",fixedRowHeight:265,swap:!0,swapWhileDragging:!0,minCols:12,maxCols:12,disableScrollHorizontal:!0,keepFixedHeightInMobile:!0,margin:20,mobileBreakpoint:900,outerMarginTop:0,outerMarginRight:80,outerMarginLeft:80,draggable:{enabled:!0},resizable:{enabled:!0},itemChangeCallback:()=>this.handleDashboardChange(),itemResizeCallback:()=>this.handleDashboardChange()},this.saveDashboardStream$$=new $e.xQ,this.saveDashboardStreamSubscription=new La.w,this.dashboardDataAccessService.loadDashboardWidgets$().subscribe(Xe=>{this.dashboardWidgets=Xe}),this.saveDashboardStreamSubscription=this.saveDashboardStream$$.pipe((0,za.b)(500),(0,Ol.T)(1)).subscribe(()=>{this.saveCurrentDashboardState()})}handleDashboardChange(){this.saveDashboardStream$$.next()}saveCurrentDashboardState(){if(this.securityManager.hasPermission(i.uo.F_DASHBOARD_OWN)){const f=this.gridComponent.grid.map(L=>L.item);this.dashboardDataAccessService.saveDashboard$(f).pipe((0,Yr.q)(1)).subscribe(()=>{},()=>{this.userMessageService.showError("imxplatform.dashboard.saveError")})}}removeDashboardWidget(f){this.dashboardWidgets.splice(this.dashboardWidgets.indexOf(f),1),this.handleDashboardChange()}ngOnDestroy(){this.saveDashboardStreamSubscription.unsubscribe()}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(fl.o),t.Y36(c.Y),t.Y36(i.Xh))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],viewQuery:function(L,V){if(1&L&&t.Gf(Or.sm,7),2&L){let Xe;t.iGM(Xe=t.CRH())&&(V.gridComponent=Xe.first)}},decls:3,vars:2,consts:[[3,"options"],[3,"item","ngClass",4,"ngFor","ngForOf"],[3,"item","ngClass"],[3,"widget","widgetRemove"],[3,"widgetDef","widgetContent"]],template:function(L,V){1&L&&(t.TgZ(0,"gridster",0),t._UZ(1,"imx-dashboard-greeting"),t.YNc(2,Ni,3,7,"gridster-item",1),t.qZA()),2&L&&(t.Q6J("options",V.gridOptions),t.xp6(2),t.Q6J("ngForOf",V.dashboardWidgets))},dependencies:[e.mk,e.sg,Or.sm,Or.IM,g,le,pi],styles:["gridster[_ngcontent-%COMP%]{background:transparent}gridster-item[_ngcontent-%COMP%]{border:.5px solid #ced4e0;border-radius:5px;padding:15px;background-color:#fff}@media (min-width: 901px){gridster-item[_ngcontent-%COMP%],   gridster-preview{margin-top:-80px}}@media (max-width: 900px){gridster-item.gridster-item--first[_ngcontent-%COMP%],   gridster-preview.gridster-item--first{margin-top:-80px}}  .dashboard-table .mat-mdc-header-cell.id-column,   .dashboard-table .mat-mdc-cell.id-column{width:10%!important}  .dashboard-table .mat-mdc-header-cell{background-color:#fff!important}  .dashboard-table .mat-mdc-cell{font-size:12px}  .dashboard-table .mat-mdc-row{height:28px}"]})}return A})();var yo=a(27835),So=a(12168),Ko=a(65444);const Uo=new Jr.E([new ts.P("type","entity.AddressPoiDuplicatesDefinition.type.header",{optionProvider:[{value:"ZIPCODE",label:"entity.AddressPoiDuplicatesDefinition.type.zipcode"},{value:"GEO_COORDINATES",label:"entity.AddressPoiDuplicatesDefinition.type.geo_coordinates"},{value:"GEO_COORDINATES_DECIMAL",label:"entity.AddressPoiDuplicatesDefinition.type.geo_coordinates_decimal"}],initialValue:"ZIPCODE"}),new ts.P("language","entity.Language.entityName",{optionProvider:Ko.b,placeholder:"imxplatform.common-entity.filter.mainFilter.language-placeholder",initialValue:eo.lT.name}),new Gr.II("int","titleMinPercentageMatch","entity.AddressPoiDuplicatesDefinition.titleMinPercentageMatch",{extendedValidators:[x.kI.min(1),x.kI.max(100)]}),new So.X("removeCityFromTitle","entity.AddressPoiDuplicatesDefinition.removeCityFromTitle",{initialValue:!0}),new Gr.II("text","zipcodesString","entity.AddressPoiDuplicatesDefinition.zipcodesString",{required:!1,extendedValidators:us.el,insertor:(0,ir.FO)((0,ir.wq)("zipcodesString"))}),new Gr.II("text","objectIdsString","entity.AddressPoiDuplicatesDefinition.objectIdsString",{required:!1,extendedValidators:us.el,insertor:(0,ir.FO)((0,ir.wq)("objectIdsString"))}),new Gr.II("number","distance","entity.AddressPoiDuplicatesDefinition.distance"),new Gr.II("text","excludeClientIdsString","entity.AddressPoiDuplicatesDefinition.excludeClientIdsString",{required:!1,extendedValidators:us.el,insertor:(0,ir.FO)((0,ir.wq)("excludeClientIdsString"))}),new Gr.II("text","multipleClientIdsString","entity.AddressPoiDuplicatesDefinition.multipleClientIdsString",{required:!1,extendedValidators:us.el,insertor:(0,ir.FO)((0,ir.wq)("multipleClientIdsString"))}),new Gr.II("int","devaluationTitle","entity.AddressPoiDuplicatesDefinition.devaluationTitle"),new Gr.II("int","devaluationPhone","entity.AddressPoiDuplicatesDefinition.devaluationPhone"),new Gr.II("int","devaluationEmail","entity.AddressPoiDuplicatesDefinition.devaluationEmail"),new Gr.II("int","devaluationIncompleteAddressGeoCoordinates","entity.AddressPoiDuplicatesDefinition.devaluationIncompleteAddressGeoCoordinates"),new Gr.II("number","maxDistance","entity.AddressPoiDuplicatesDefinition.maxDistance"),new Gr.II("int","devaluationDistance","entity.AddressPoiDuplicatesDefinition.devaluationDistance"),new Gr.II("number","maxExtendedDistance","entity.AddressPoiDuplicatesDefinition.maxExtendedDistance"),new Gr.II("int","devaluationExtendedDistance","entity.AddressPoiDuplicatesDefinition.devaluationExtendedDistance")]);let Yo=(()=>{class A extends _r.z{constructor(f,L,V){super(Uo,void 0,f,L,V),this.runtimeContextService=L,this.formatterService=V}getEntityType(){return"AddressPoiDuplicatesDefinition"}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(Qe.EG),t.LFG(i.Ze),t.LFG(i.H1))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();function Ur(){return[new Gr.II("int","certaintyFrom","filter.DuplicateGroup.certaintyFrom",{extendedValidators:[x.kI.min(0),x.kI.max(100)]}),new Gr.II("int","certaintyTo","filter.DuplicateGroup.certaintyTo",{extendedValidators:[x.kI.min(0),x.kI.max(100)]})]}const sa=new Jr.E([...bt.ov.fields,...Ur()]);let Ya=(()=>{class A extends _r.z{constructor(f,L,V,Xe){super(sa,void 0,f,V,Xe),this.imxSecurityManagerService=L,this.runtimeContextService=V,this.formatterService=Xe}getEntityType(){return"AddressPoi"}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(Qe.EG),t.LFG(i.Xh),t.LFG(i.Ze),t.LFG(i.H1))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();var ua=a(8367),ca=a(77504);function pa(A,Gt){1&A&&t.GkF(0)}function Xa(A,Gt){1&A&&t.GkF(0)}const Ma=()=>({$implicit:"zipcodesString"});function ea(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"imx-tooltip",6),t.ALo(2,"translate"),t.YNc(3,Xa,1,0,"ng-container",7),t.qZA(),t.BQk()),2&A){t.oxw();const f=t.MAs(80);t.xp6(),t.Q6J("tooltipText",t.lcZ(2,4,"imxplatform.duplicate.edit.dialog-create.zipcodesString.tooltip"))("offset",50),t.xp6(2),t.Q6J("ngTemplateOutlet",f)("ngTemplateOutletContext",t.DdM(6,Ma))}}function rs(A,Gt){1&A&&t.GkF(0)}function Sa(A,Gt){1&A&&t.GkF(0)}function ml(A,Gt){1&A&&t.GkF(0)}function nd(A,Gt){1&A&&t.GkF(0)}function cd(A,Gt){1&A&&t.GkF(0)}function sm(A,Gt){1&A&&t.GkF(0)}function ju(A,Gt){1&A&&t.GkF(0)}function su(A,Gt){1&A&&t.GkF(0)}function qd(A,Gt){1&A&&t.GkF(0)}function Xd(A,Gt){1&A&&t.GkF(0)}function Em(A,Gt){1&A&&t.GkF(0)}function Eu(A,Gt){1&A&&t.GkF(0)}function lu(A,Gt){1&A&&t.GkF(0)}function Vd(A,Gt){1&A&&t.GkF(0)}function Ad(A,Gt){1&A&&t.GkF(0)}function fd(A,Gt){1&A&&t.GkF(0)}function Om(A,Gt){1&A&&t.GkF(0)}function cu(A,Gt){1&A&&t.GkF(0)}function du(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"label",15),t._uU(1," imxplatform.duplicate.edit.dialog-create.warning "),t.qZA(),t.TgZ(2,"button",16),t.NdJ("click",function(){t.CHM(f);const V=t.oxw();return t.KtG(V.loadDefaultCriteria())}),t._uU(3," imxplatform.duplicate.edit.dialog-create.resetCriteria "),t.qZA()}if(2&A){const f=t.oxw();t.xp6(2),t.Q6J("disabled",!f.data.showLastUserInput&&f.data.formRow.pristine)}}function wd(A,Gt){if(1&A&&t._UZ(0,"imx-form-control",17),2&A){const f=Gt.$implicit,L=t.oxw();t.Q6J("field",L.data.formHandler.formConfiguration.findFormFieldById(f))("control",L.data.formRow.get(f))("form",L.data.formRow)("formHandler",L.data.formHandler)("config",L.data.formHandler.formConfiguration)}}function Wm(A,Gt){1&A&&t.GkF(0)}const Sl=A=>({$implicit:A});function np(A,Gt){if(1&A&&(t.TgZ(0,"imx-tooltip",6),t.ALo(1,"translate"),t.YNc(2,Wm,1,0,"ng-container",7),t.qZA()),2&A){const f=Gt.$implicit;t.oxw(2);const L=t.MAs(80);t.Q6J("tooltipText",t.lcZ(1,4,"imxplatform.duplicate.edit.dialog-create."+f.id+".tooltip"))("offset",50),t.xp6(2),t.Q6J("ngTemplateOutlet",L)("ngTemplateOutletContext",t.VKq(6,Sl,f.id))}}function lm(A,Gt){1&A&&t.YNc(0,np,3,8,"ng-template",18),2&A&&t.Q6J("ngForOf",Gt.$implicit)}const Sm=()=>({$implicit:"type"}),yp=()=>({$implicit:"language"}),Op=()=>({$implicit:"titleMinPercentageMatch"}),cp=()=>({$implicit:"removeCityFromTitle"}),Jp=()=>({$implicit:"objectIdsString"}),dp=()=>({$implicit:"distance"}),ip=()=>({$implicit:"excludeClientIdsString"}),Au=()=>({$implicit:"multipleClientIdsString"}),Lp=()=>({$implicit:"devaluationTitle"}),d_=()=>({$implicit:"devaluationPhone"}),zf=()=>({$implicit:"devaluationEmail"}),df=()=>({$implicit:"devaluationIncompleteAddressGeoCoordinates"}),jf=()=>({$implicit:"maxDistance"}),wu=()=>({$implicit:"devaluationDistance"}),Kf=()=>({$implicit:"maxExtendedDistance"}),og=()=>({$implicit:"devaluationExtendedDistance"});let Ef=(()=>{class A{constructor(f,L,V){this.data=f,this.dataAccessService=L,this.formatterService=V}ngOnInit(){this.data.showLastUserInput||this.loadDefaultCriteria();const f=this.data.formRow.get("type"),L=this.data.formRow.get("zipcodesString");f.valueChanges.subscribe(V=>{"ZIPCODE"!==V?(L.setValue(null),L.disable()):L.enable({emitEvent:!1})})}getNumberValue(f){return f&&f.toString().replace(".",this.formatterService.getDecimalSeparator())}isBasicFormField(f){return null!==this.data.formRow.get(f)}isExtendedFormField(f){if(!this.data.formHandler.getFormExtensions())return!1;let L=!1;return this.data.formHandler.getFormExtensions().forEach(V=>{V.extensions.forEach(Xe=>{Xe.extensionField.id===f&&(L=!0)})}),L}getFieldExtensions(f){const L=[];return this.data.formHandler.getFormExtensions()&&this.data.formHandler.getFormExtensions().forEach(V=>{V.extensions.forEach(Xe=>{Xe.fieldReference===f&&L.push(Xe.extensionField)})}),L}loadDefaultCriteria(){this.initDefaultCriteria(),this.data.formRow.markAsPristine(),this.data.showLastUserInput=!1}initDefaultCriteria(){this.dataAccessService.getInitializedCreationCriteria().subscribe(f=>{this.data.formRow.get("titleMinPercentageMatch").setValue(f.titleMinPercentageMatch),this.data.formRow.get("language").setValue(f.language.Language.name),this.data.formRow.get("type").setValue(f.type),this.data.formRow.get("zipcodesString").setValue(f.zipcodesString),this.data.formRow.get("removeCityFromTitle").setValue(f.removeCityFromTitle),this.data.formRow.get("objectIdsString").setValue(f.objectIdsString),this.data.formRow.get("excludeClientIdsString")&&this.data.formRow.get("excludeClientIdsString").setValue(f.excludeClientIdsString),this.data.formRow.get("multipleClientIdsString").setValue(f.multipleClientIdsString),this.data.formRow.get("distance").setValue(this.getNumberValue(f.distance)),this.data.formRow.get("devaluationTitle").setValue(f.devaluationTitle),this.data.formRow.get("devaluationPhone").setValue(f.devaluationPhone),this.data.formRow.get("devaluationEmail").setValue(f.devaluationEmail),this.data.formRow.get("devaluationIncompleteAddressGeoCoordinates").setValue(f.devaluationIncompleteAddressGeoCoordinates),this.data.formRow.get("maxDistance").setValue(this.getNumberValue(f.maxDistance)),this.data.formRow.get("devaluationDistance").setValue(f.devaluationDistance),this.data.formRow.get("maxExtendedDistance").setValue(this.getNumberValue(f.maxExtendedDistance)),this.data.formRow.get("devaluationExtendedDistance").setValue(f.devaluationExtendedDistance),this.data.formHandler.getFormExtensions()&&this.data.formHandler.getFormExtensions().forEach(L=>{L.extensions.forEach(V=>{this.data.formRow.get(V.extensionField.id).setValue(f[V.extensionField.id])})})})}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(ae.WI),t.Y36(sn.nq),t.Y36(i.H1))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],decls:83,vars:129,consts:[["dialogType","form",3,"heading","icon","submitButtonLabel"],["novalidate","",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[1,"form__content-group"],["translate",""],[3,"tooltipText","offset"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],[1,"form__content-row","wrap-md"],["translate","",1,"txt-grey","txt-md"],[1,"form__content-row"],["customButtonBar",""],["imxFormControl",""],["imxFormControlExtension",""],["translate","",1,"hint"],["translate","",1,"imx-button","cta","resetBtn",3,"disabled","click"],[3,"field","control","form","formHandler","config"],["ngFor","",3,"ngForOf"]],template:function(L,V){if(1&L&&(t.TgZ(0,"imx-dialog",0)(1,"form",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h3",5),t._uU(6,"imxplatform.duplicate.edit.dialog-create.groupCreation"),t.qZA(),t.TgZ(7,"imx-tooltip",6),t.ALo(8,"translate"),t.YNc(9,pa,1,0,"ng-container",7),t.qZA(),t.YNc(10,ea,4,7,"ng-container",8),t.TgZ(11,"div",9)(12,"imx-tooltip",6),t.ALo(13,"translate"),t.YNc(14,rs,1,0,"ng-container",7),t.qZA(),t.TgZ(15,"imx-tooltip",6),t.ALo(16,"translate"),t.YNc(17,Sa,1,0,"ng-container",7),t.qZA()(),t.TgZ(18,"imx-tooltip",6),t.ALo(19,"translate"),t.YNc(20,ml,1,0,"ng-container",7),t.qZA(),t.TgZ(21,"imx-tooltip",6),t.ALo(22,"translate"),t.YNc(23,nd,1,0,"ng-container",7),t.qZA(),t.TgZ(24,"imx-tooltip",6),t.ALo(25,"translate"),t.YNc(26,cd,1,0,"ng-container",7),t.qZA(),t.YNc(27,sm,1,0,"ng-container",7),t.TgZ(28,"imx-tooltip",6),t.ALo(29,"translate"),t.YNc(30,ju,1,0,"ng-container",7),t.qZA(),t.YNc(31,su,1,0,"ng-container",7),t.TgZ(32,"imx-tooltip",6),t.ALo(33,"translate"),t.YNc(34,qd,1,0,"ng-container",7),t.qZA()()(),t.TgZ(35,"div",3)(36,"div",4)(37,"h3",5),t._uU(38,"imxplatform.duplicate.edit.dialog-create.duplicateRatingCriteria"),t.qZA(),t.TgZ(39,"span",10),t._uU(40,"imxplatform.duplicate.edit.dialog-create.duplicateRatingCriteriaInfo"),t.qZA(),t.TgZ(41,"div",11)(42,"div",4)(43,"div",9)(44,"imx-tooltip",6),t.ALo(45,"translate"),t.YNc(46,Xd,1,0,"ng-container",7),t.qZA(),t.TgZ(47,"imx-tooltip",6),t.ALo(48,"translate"),t.YNc(49,Em,1,0,"ng-container",7),t.qZA()(),t.TgZ(50,"div",9)(51,"imx-tooltip",6),t.ALo(52,"translate"),t.YNc(53,Eu,1,0,"ng-container",7),t.qZA(),t.TgZ(54,"imx-tooltip",6),t.ALo(55,"translate"),t.YNc(56,lu,1,0,"ng-container",7),t.qZA()(),t.TgZ(57,"div",9),t.YNc(58,Vd,1,0,"ng-container",7),t.qZA()()(),t.TgZ(59,"div",11)(60,"div",4)(61,"h3",5),t._uU(62,"imxplatform.duplicate.edit.dialog-create.distanceCriteria"),t.qZA(),t.TgZ(63,"div",11)(64,"imx-tooltip",6),t.ALo(65,"translate"),t.YNc(66,Ad,1,0,"ng-container",7),t.qZA(),t.TgZ(67,"imx-tooltip",6),t.ALo(68,"translate"),t.YNc(69,fd,1,0,"ng-container",7),t.qZA()(),t.TgZ(70,"div",11)(71,"imx-tooltip",6),t.ALo(72,"translate"),t.YNc(73,Om,1,0,"ng-container",7),t.qZA(),t.TgZ(74,"imx-tooltip",6),t.ALo(75,"translate"),t.YNc(76,cu,1,0,"ng-container",7),t.qZA()()()()()()()(),t.YNc(77,du,4,1,"ng-template",null,12,t.W1O),t.qZA(),t.YNc(79,wd,1,5,"ng-template",null,13,t.W1O)(81,lm,1,1,"ng-template",null,14,t.W1O)),2&L){const Xe=t.MAs(80),An=t.MAs(82);t.Q6J("heading","imxplatform.duplicate.edit.dialog-create.header")("icon","icon-copy")("submitButtonLabel","imxplatform.duplicate.edit.dialog-create.submit"),t.xp6(),t.Q6J("formGroup",V.data.formRow),t.xp6(6),t.Q6J("tooltipText",t.lcZ(8,75,"imxplatform.duplicate.edit.dialog-create.type.tooltip"))("offset",50),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(107,Sm)),t.xp6(),t.Q6J("ngIf","ZIPCODE"===V.data.formRow.get("type").value),t.xp6(2),t.Q6J("tooltipText",t.lcZ(13,77,"imxplatform.duplicate.edit.dialog-create.language.tooltip"))("offset",50),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(108,yp)),t.xp6(),t.Q6J("tooltipText",t.lcZ(16,79,"imxplatform.duplicate.edit.dialog-create.titleMinPercentageMatch.tooltip"))("offset",50),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(109,Op)),t.xp6(),t.Q6J("tooltipText",t.lcZ(19,81,"imxplatform.duplicate.edit.dialog-create.removeCityFromTitle.tooltip"))("offset",50),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(110,cp)),t.xp6(),t.Q6J("tooltipText",t.lcZ(22,83,"imxplatform.duplicate.edit.dialog-create.objectIdsString.tooltip"))("offset",50),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(111,Jp)),t.xp6(),t.Q6J("tooltipText",t.lcZ(25,85,"imxplatform.duplicate.edit.dialog-create.distance.tooltip"))("offset",50),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(112,dp)),t.xp6(),t.Q6J("ngTemplateOutlet",An)("ngTemplateOutletContext",t.VKq(113,Sl,V.getFieldExtensions("distance"))),t.xp6(),t.Q6J("tooltipText",t.lcZ(29,87,"imxplatform.duplicate.edit.dialog-create.excludeClientIdsString.tooltip"))("offset",50),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(115,ip)),t.xp6(),t.Q6J("ngTemplateOutlet",An)("ngTemplateOutletContext",t.VKq(116,Sl,V.getFieldExtensions("excludeClientIdsString"))),t.xp6(),t.Q6J("tooltipText",t.lcZ(33,89,"imxplatform.duplicate.edit.dialog-create.multipleClientIdsString.tooltip"))("offset",50),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(118,Au)),t.xp6(10),t.Q6J("tooltipText",t.lcZ(45,91,"imxplatform.duplicate.edit.dialog-create.devaluationTitle.tooltip"))("offset",50),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(119,Lp)),t.xp6(),t.Q6J("tooltipText",t.lcZ(48,93,"imxplatform.duplicate.edit.dialog-create.devaluationPhone.tooltip"))("offset",50),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(120,d_)),t.xp6(2),t.Q6J("tooltipText",t.lcZ(52,95,"imxplatform.duplicate.edit.dialog-create.devaluationEmail.tooltip"))("offset",50),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(121,zf)),t.xp6(),t.Q6J("tooltipText",t.lcZ(55,97,"imxplatform.duplicate.edit.dialog-create.devaluationIncompleteAddressGeoCoordinates.tooltip"))("offset",50),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(122,df)),t.xp6(2),t.Q6J("ngTemplateOutlet",An)("ngTemplateOutletContext",t.VKq(123,Sl,V.getFieldExtensions("devaluationIncompleteAddressGeoCoordinates"))),t.xp6(6),t.Q6J("tooltipText",t.lcZ(65,99,"imxplatform.duplicate.edit.dialog-create.maxDistance.tooltip"))("offset",50),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(125,jf)),t.xp6(),t.Q6J("tooltipText",t.lcZ(68,101,"imxplatform.duplicate.edit.dialog-create.devaluationDistance.tooltip"))("offset",50),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(126,wu)),t.xp6(2),t.Q6J("tooltipText",t.lcZ(72,103,"imxplatform.duplicate.edit.dialog-create.maxExtendedDistance.tooltip"))("offset",50),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(127,Kf)),t.xp6(),t.Q6J("tooltipText",t.lcZ(75,105,"imxplatform.duplicate.edit.dialog-create.devaluationExtendedDistance.tooltip"))("offset",50),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(128,og))}},dependencies:[e.sg,e.O5,e.tP,x._Y,x.JL,x.sg,Y.Pi,ho.K,Qt.a,ee.A,Y.X$],styles:["\n\n\n\n\n\n\n\n\n\n\n\n.no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-group[_ngcontent-%COMP%] > .form__content-row[_ngcontent-%COMP%] > .imx-form-control[_ngcontent-%COMP%]{flex:50%}.form__content-group[_ngcontent-%COMP%] > .form__content-row[_ngcontent-%COMP%] > .imx-form-control[_ngcontent-%COMP%]:not(:only-child):first-child{margin-right:5px}.form__content-group[_ngcontent-%COMP%] > .form__content-row[_ngcontent-%COMP%] > .imx-form-control[_ngcontent-%COMP%]:nth-child(2){margin-left:5px}.form__content-group[_ngcontent-%COMP%] > .form__content-row[_ngcontent-%COMP%] > imx-tooltip[_ngcontent-%COMP%]{flex:50%}.form__content-group[_ngcontent-%COMP%] > .form__content-row[_ngcontent-%COMP%] > imx-tooltip[_ngcontent-%COMP%]:not(:last-child){margin-right:10px}.hint[_ngcontent-%COMP%]{text-align:left;margin:5px 15px 10px}.resetBtn[_ngcontent-%COMP%]{margin-right:20px!important}"]})}return A})();var Af=a(14696);const wf="lastDuplicationDefinition";let rg=(()=>{class A extends hr.uY{constructor(f,L,V,Xe,An,Qo,Dr,es,Al,Rl,$l,kl,Jl,od,dm){super(f,L,V,Xe,An,Qo,Dr,es,Al,Rl,od,dm,void 0,!0),this.dataSource=f,this.userMessageService=Xe,this.listHistoryService=An,this.dialog=Qo,this.filterFormHandler=Dr,this.platformDataAccessService=es,this.configurationProvider=$l,this.translateService=kl,this.duplicateDefinitionFormHandlerService=Jl,this.objectListCreationService=od,this.actionProvider=dm,this.imxPermissions=i.uo,this.orderField="ID",this.availableOrderFields=[{index:1,field:"ID",i18n:"entity.DuplCandidatesGroup.id",type:an.m.numeric}],this.showResolveAllForTypes=[],this.removeGroupAfterResolve=!1,this.currentPageSize=5,this.removeGroupAfterResolve=this.configurationProvider.getBooleanFromSnapshot(i.x3.IMXPLATFORM_DUPLICATES_REMOVE_AFTER_RESOLVE,!1);const Ku=this.configurationProvider.getStringFromSnapshot(i.x3.IMXPLATFORM_DUPLICATES_SHOW_RESOLVE_ALL);Ku&&(this.showResolveAllForTypes=Ku.split(",")),this.duplicateGroupsLoaded$=new ua.t(1)}getActionContext(){return"duplicates"}getSetStateAction(){return this.actionProvider.findActionForKey(this.getSetStateActionKey())}showResolveAllBtnForEntity(f){return this.showResolveAllForTypes.indexOf(f)>-1}resolveDuplicatesList(){this.duplicateGroupsLoaded$.pipe((0,Yr.q)(1)).subscribe(f=>{f&&this.actionProvider.findActionForKey(this.getResolveDuplicatesActionKey()).executeBatch(this.duplicateGroupIds.items).subscribe(V=>{V&&this.userMessageService.showInfo("imxplatform.duplicate.list.action.resolve-duplicate.background-hint",1e4)})})}resolveDuplicates(f){this.callActionExecute(this.getResolveDuplicatesActionKey(),f,this.extractMultipleActionParams(f)).subscribe(L=>{L&&(this.removeGroupAfterResolve?this.reloadData():this.results=this.results.pipe((0,O.w)(V=>{const Xe=V.items.map(An=>this.reloadCandidateGroupContent(An,f.groupId));return(0,P.aj)(Xe).pipe((0,m.U)(An=>({items:An,numberOfPages:V.numberOfPages,totalNumberOfResults:V.numberOfPages,page:V.page,pageSize:V.pageSize})))})))})}extractSingleActionParams(f){return{addressPoiId:[...f.selectedIds][0]}}extractMultipleActionParams(f){return{addressPoiIds:Array.from(f.selectedIds).join(",")}}noDuplicates(f){this.subscribeToActionAndReload(this.callActionExecute(this.getNoDuplicatesActionKey(),f,this.extractMultipleActionParams(f)))}noDuplicate(f){this.subscribeToActionAndReload(this.callActionExecute(this.getNoDuplicateActionKey(),f,this.extractSingleActionParams(f)))}extractSelectionFromGroup(f){this.subscribeToActionAndReload(this.callActionExecute(this.getExtractSelectionActionKey(),f,this.extractMultipleActionParams(f)))}createDuplicatesList(){let f={};sessionStorage.getItem(wf)&&(f=JSON.parse(sessionStorage.getItem(wf))),this.duplicateDefinitionFormHandlerService.baseObject=f,this.dialog.open(Ef,{...Qt.D.FORM_BIG,data:{formRow:this.duplicateDefinitionFormHandlerService.formGroup,formHandler:this.duplicateDefinitionFormHandlerService,showLastUserInput:Object.keys(f).length>0}}).afterClosed().subscribe(V=>{if(V){const Xe=this.duplicateDefinitionFormHandlerService.getBaseObjectCopyWithCurrentFormValues();this.duplicateDefinitionFormHandlerService.formGroup.pristine?sessionStorage.removeItem(wf):sessionStorage.setItem(wf,JSON.stringify(Xe)),this.actionProvider.findActionForKey(this.getDefineDuplicatesActionKey()).execute(Xe).subscribe(An=>{An&&this.userMessageService.showInfo("imxplatform.duplicate.list.action.define-duplicate.background-hint",1e4)})}})}areTitlesEqual(f){return(0,ga.iH)(f.candidates.map(L=>L.title),this.translateService.currentLang)}areAddressPropertiesEqual(f,L){return(0,ga.gN)(f.candidates.map(V=>V.contact1.address[L]))}areNormalizedAddressesEqual(f){return(0,ga.gN)(f.candidates.map(L=>L.normalizedAddress||""))}reloadCandidateGroupContent(f,L){if(f.id===L){const V=f.candidates.map(Xe=>Xe.id).map(Xe=>this.reloadCandidate(Xe));return(0,ca.D)(V).pipe((0,m.U)(Xe=>({id:f.id,candidates:Xe,resolved:!0,duplicateCertainty:void 0})))}return(0,u.of)(f)}callActionExecute(f,L,V){return L&&L.groupId&&this.lastEditedEntityIds.push(L.groupId),this.actionProvider.findActionForKey(f).executeDuplicateAction({id:L.groupId,_entityType:this.getEntityName()},V)}subscribeToActionAndReload(f){f.subscribe(L=>{L&&(this.resetSelection(),this.reloadData())})}beforeLoadRecords(f){this.duplicateGroupsLoaded$.next(!1)}afterContentLoaded(){super.afterContentLoaded(),this.reloadDuplicateGroupsId().pipe((0,Yr.q)(1)).subscribe(f=>{this.duplicateGroupIds=f,this.duplicateGroupsLoaded$.next(!0)},f=>{this.userMessageService.showError("Fehler beim Laden der Duplikatsgruppen",f)})}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(Af.t),t.Y36(l.F0),t.Y36(l.gz),t.Y36(c.Y),t.Y36(Wi.G),t.Y36(ae.uw),t.Y36(_r.z),t.Y36(sn.nq),t.Y36(sl.x),t.Y36(Wr.Q),t.Y36(i.Pc),t.Y36(Y.sK),t.Y36(_r.z),t.Y36(mo.h),t.Y36(Ui.a))};static#t=this.\u0275dir=t.lG2({type:A,features:[t.qOj]})}return A})();var bg=a(13557),Cg=a(51588),ag=a(26088);function yg(A){return A?A.substring(A.indexOf("_")):""}function Pp(A){return((A=(A=(A=A.replace(/[^\d+]+/g,"")).replace(/00/,"")).replace(/\+/,"")).startsWith("49")||A.startsWith("43")||A.startsWith("41")||A.startsWith("39"))&&(A=A.substring(2)),A.startsWith("0")&&(A=A.substring(1)),A}function m_(A,Gt){if(1&A&&(t.ynx(0),t._uU(1),t.ALo(2,"translate"),t.BQk()),2&A){const f=t.oxw().dataObject;t.xp6(),t.AsE("/ ",t.lcZ(2,2,"entity.CoreDataObject.importIdentifier"),": ",f.importIdentifier," ")}}function Df(A,Gt){if(1&A&&(t.TgZ(0,"span",6),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&A){const f=t.oxw(2);t.xp6(),t.AsE(" ",t.lcZ(2,2,"imxplatform.duplicate.list.content.address"),": ",f.duplicateItem.normalizedAddress,"")}}function Gg(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"span"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"span"),t._uU(5),t.qZA(),t.BQk()),2&A){const f=t.oxw().dataObject;t.xp6(2),t.hij(" // ",t.lcZ(3,2,"entity.AddressComponent.zipcode")," "),t.xp6(3),t.Oqu(f.contact1.address.zipcode)}}function Jg(A,Gt){if(1&A&&(t.TgZ(0,"span",6),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&A){const f=t.oxw(2);t.xp6(),t.AsE(" ",t.lcZ(2,2,"imxplatform.duplicate.list.content.address"),": ",f.normalizeNormalizedAddress(f.duplicateItem.normalizedAddress),"")}}function If(A,Gt){if(1&A&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&A){const f=t.oxw().dataObject,L=t.oxw();t.xp6(),t.AsE("",t.lcZ(2,2,"imxplatform.duplicate.list.content.phone"),": ",L.normalizePhone(null==f||null==f.contact1||null==f.contact1.address?null:f.contact1.address.phone1),"")}}function zm(A,Gt){if(1&A&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&A){const f=t.oxw().dataObject;t.xp6(),t.AsE("",t.lcZ(2,2,"entity.Addressbase.contact1.address.email"),": ",null==f||null==f.contact1||null==f.contact1.address?null:f.contact1.address.email,"")}}function Du(A,Gt){if(1&A&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"readI18n"),t.qZA()),2&A){const f=t.oxw().dataObject;t.xp6(),t.AsE("",t.lcZ(2,2,"entity.Addressbase.contact1.address.homepage"),": ",t.lcZ(3,4,null==f||null==f.contact1||null==f.contact1.address?null:f.contact1.address.homepage),"")}}function Qp(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"a",3),t.NdJ("click",function(){const Xe=t.CHM(f).dataObject,An=t.oxw();return t.KtG(An.contextNavigationService.navigateToCoreEntityContextual(["../addresspois/edit",Xe.id]))}),t._uU(1),t.ALo(2,"readI18n"),t.qZA(),t.TgZ(3,"p",4),t._uU(4),t.qZA(),t.TgZ(5,"div",5)(6,"p",6)(7,"span"),t._uU(8),t.YNc(9,m_,3,4,"ng-container",7),t.qZA()(),t.TgZ(10,"p",6),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.TgZ(13,"p",6),t.YNc(14,Df,3,4,"span",8)(15,Gg,6,4,"ng-container",7),t.qZA(),t.TgZ(16,"p",6),t._uU(17),t.ALo(18,"translate"),t.TgZ(19,"span"),t._uU(20),t.qZA(),t.TgZ(21,"span"),t._uU(22),t.qZA()(),t.TgZ(23,"p",6),t.YNc(24,Jg,3,4,"span",8),t.qZA(),t.TgZ(25,"p",6),t.YNc(26,If,3,4,"span",7),t.qZA(),t._UZ(27,"p",6),t.TgZ(28,"p",6),t.YNc(29,zm,3,4,"span",7),t.qZA(),t.TgZ(30,"p",6),t.YNc(31,Du,4,6,"span",7),t.qZA()()}if(2&A){const f=Gt.dataObject,L=t.oxw();t.xp6(),t.hij(" ",t.lcZ(2,16,f.title)," "),t.xp6(3),t.AsE("",null==f||null==f.contact1||null==f.contact1.address?null:f.contact1.address.zipcode," ",null==f||null==f.contact1||null==f.contact1.address?null:f.contact1.address.city,""),t.xp6(4),t.hij(" ID: ",f.id," "),t.xp6(),t.Q6J("ngIf",f.importIdentifier),t.xp6(2),t.AsE(" ",t.lcZ(12,18,"entity.CoreDataObject.client"),": ",f.client.name," "),t.xp6(3),t.Q6J("ngIf",""!==L.duplicateItem.normalizedAddress),t.xp6(),t.Q6J("ngIf",f.contact1.address.zipcode),t.xp6(2),t.hij("",t.lcZ(18,20,"imxplatform.common-entity.edit.panels.geo.coordinates"),": "),t.xp6(3),t.hij("L",null==f||null==f.geoInfo||null==f.geoInfo.coordinates?null:f.geoInfo.coordinates.longitude,""),t.xp6(2),t.hij(" B ",null==f||null==f.geoInfo||null==f.geoInfo.coordinates?null:f.geoInfo.coordinates.latitude,""),t.xp6(2),t.Q6J("ngIf",""!==L.duplicateItem.normalizedAddress),t.xp6(2),t.Q6J("ngIf",null==f||null==f.contact1||null==f.contact1.address?null:f.contact1.address.phone1),t.xp6(3),t.Q6J("ngIf",null==f||null==f.contact1||null==f.contact1.address?null:f.contact1.address.email),t.xp6(2),t.Q6J("ngIf",null==f||null==f.contact1||null==f.contact1.address?null:f.contact1.address.homepage)}}function mu(A,Gt){}let Vp=(()=>{class A{constructor(){this.contextNavigationService=(0,t.f3M)(si.E)}normalizeNormalizedAddress(f){return yg(f)}normalizePhone(f){return Pp(f)}static#e=this.\u0275fac=function(L){return new(L||A)};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-duplicates-content-address-poi"]],hostAttrs:[1,"imx-duplicates-content-address-poi"],inputs:{duplicateItem:"duplicateItem"},decls:5,vars:6,consts:[[3,"dataObject","isAddressPoi","memoCount","ibeAssignmentCount","leftSlotTemplate","rightSlotTemplate"],["addresspoiDuplicateLeftSlotTemplate",""],["addresspoiDuplicateRightSlotTemplate",""],[1,"txt-bg","txt-grey","title_shortened",3,"click"],[1,"txt-grey","txt-md-sm"],[1,"txt-sm","margin-top"],[1,"txt-grey"],[4,"ngIf"],["class","txt-grey",4,"ngIf"]],template:function(L,V){if(1&L&&(t._UZ(0,"imx-list-row",0),t.YNc(1,Qp,32,22,"ng-template",null,1,t.W1O)(3,mu,0,0,"ng-template",null,2,t.W1O)),2&L){const Xe=t.MAs(2),An=t.MAs(4);t.Q6J("dataObject",V.duplicateItem)("isAddressPoi",!0)("memoCount",0)("ibeAssignmentCount",0)("leftSlotTemplate",Xe)("rightSlotTemplate",An)}},dependencies:[e.O5,Ss.Y,kn.F,Y.X$,ue.j],styles:["\n\n\n\n\n\n\n\n\n\n\n\n[_nghost-%COMP%]{flex:100%}  .list__row .list__content-wrapper .list__column.image-column img{object-fit:cover!important}@media (min-width: 901px){  .list__row .list__content-wrapper .list__column.image-column img{height:65px!important}}@media (max-width: 900px){  .list__row .list__content-wrapper .list__column.image-column img{height:50px!important}}"]})}return A})();function mp(A,Gt){1&A&&(t.TgZ(0,"imx-list-no-results"),t._uU(1,"imxplatform.duplicate.list.no-records"),t.qZA())}function $f(A,Gt){1&A&&t._UZ(0,"mat-progress-bar",12)}function sg(A,Gt){1&A&&t._UZ(0,"imx-duplicates-content-address-poi",18),2&A&&t.Q6J("duplicateItem",Gt.duplicateItem)}function Sf(A,Gt){if(1&A&&t._UZ(0,"imx-duplicates-header-property",19)(1,"imx-duplicates-header-property",19)(2,"imx-duplicates-header-property",19)(3,"imx-duplicates-header-property",19)(4,"imx-duplicates-header-property",19),2&A){const f=Gt.duplicateGroup,L=t.oxw(4);t.Q6J("showRed",!L.areTitlesEqual(f))("resourceBundleKey","entity.AddressPoi.title"),t.xp6(),t.Q6J("showRed",!L.areAddressPropertiesEqual(f,"zipcode"))("resourceBundleKey","entity.AddressPoi.contact1.address.zipcode"),t.xp6(),t.Q6J("showRed",!L.areNormalizedAddressesEqual(f))("resourceBundleKey","entity.AddressComponent.entityName"),t.xp6(),t.Q6J("showRed",!L.areAddressPropertiesEqual(f,"phone1"))("resourceBundleKey","entity.AddressComponent.phone1"),t.xp6(),t.Q6J("showRed",!L.areAddressPropertiesEqual(f,"email"))("resourceBundleKey","entity.AddressComponent.email")}}function Og(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"mat-list-item",14)(1,"imx-duplicates-group",15),t.NdJ("resolveDuplicatesEvent",function(V){t.CHM(f);const Xe=t.oxw(3);return t.KtG(Xe.resolveDuplicates(V))})("noDuplicateSingleEvent",function(V){t.CHM(f);const Xe=t.oxw(3);return t.KtG(Xe.noDuplicates(V))})("noDuplicatesEvent",function(V){t.CHM(f);const Xe=t.oxw(3);return t.KtG(Xe.noDuplicates(V))})("extractSelectionEvent",function(V){t.CHM(f);const Xe=t.oxw(3);return t.KtG(Xe.extractSelectionFromGroup(V))})("referencesActionEvent",function(V){t.CHM(f);const Xe=t.oxw(3);return t.KtG(Xe.executeReferencesAction(V.entityName,V.id))}),t.qZA(),t.YNc(2,sg,1,1,"ng-template",null,16,t.W1O)(4,Sf,5,10,"ng-template",null,17,t.W1O),t.qZA()}if(2&A){const f=Gt.$implicit,L=t.MAs(3),V=t.MAs(5);t.xp6(),t.Q6J("candidateEntityName","AddressPoi")("duplicateGroup",f)("duplicatePropertyDiffTemplate",V)("duplicateContentTemplate",L)}}function Pg(A,Gt){if(1&A&&(t.TgZ(0,"mat-list"),t.YNc(1,Og,6,4,"mat-list-item",13),t.qZA()),2&A){const f=t.oxw().ngIf,L=t.oxw();t.xp6(),t.Q6J("ngForOf",f.items)("ngForTrackBy",L.trackByItemId)}}function qf(A,Gt){if(1&A&&(t.TgZ(0,"div"),t.YNc(1,Pg,2,2,"mat-list",8),t.qZA()),2&A){const f=Gt.ngIf;t.oxw();const L=t.MAs(9);t.xp6(),t.Q6J("ngIf",f.items.length>0)("ngIfElse",L)}}function nx(A,Gt){}let lg=(()=>{class A extends rg{constructor(f,L,V,Xe,An,Qo,Dr,es,Al,Rl,$l,kl,Jl,od,dm){super(f,L,V,An,Qo,Dr,Al,Jl,void 0,Rl,$l,kl,od,dm,es)}getEntityName(){return"AddressPoiDuplCandidatesGroup"}getFilterParams(f){return this.platformDataAccessService.convertAddressPoiDuplicatesClientParamsToRequestParams(f)}getSetStateActionKey(){return"addressbase-action-set_state"}getNoDuplicateActionKey(){return"addresspoi-duplicates-action-addresspoi_no_duplicate"}getNoDuplicatesActionKey(){return"addresspoi-duplicates-action-addresspoi_no_duplicates"}getExtractSelectionActionKey(){return"addresspoi-duplicates-action-addresspoi_extract_selected"}getResolveDuplicatesActionKey(){return"addresspoi-duplicates-action-resolve_duplicate_groups"}getDefineDuplicatesActionKey(){return"addresspoi-duplicates-action-define_duplicate_groups"}reloadDuplicateGroupsId(){return this.platformDataAccessService.getDuplicateGroupIds(this.filter)}reloadCandidate(f){return this.platformDataAccessService.getAddressPoiById(f)}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(yo.M),t.Y36(l.F0),t.Y36(l.gz),t.Y36(i.Yz),t.Y36(c.Y),t.Y36(Wi.G),t.Y36(ae.uw),t.Y36(Ui.a),t.Y36(Ya),t.Y36(Wr.Q),t.Y36(i.Pc),t.Y36(Y.sK),t.Y36(sn.nq),t.Y36(Yo),t.Y36(mo.h))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],features:[t.qOj],decls:17,vars:21,consts:[[1,"search-page"],[3,"formHandler","record","orderFields","orderField","orderDirection","orderChanged","applyFilter","resetFilter"],[3,"totalNumber","entityResourceKeyPrefix","isCompactPageHeader","showCompactToggle","reload"],["list-header-button-row",""],[3,"createDuplicatesPermission","resolveDuplicatesPermission","duplicateGroupsLoaded","showResolveAllBtn","resourcePrefix","createDuplicatesList","resolveDuplicatesList"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],[4,"ngIf","ngIfElse"],[3,"showCheckbox","paging","selection","pageChanged","selectAll"],["position","above","halign","start"],["imx-dropup-trigger",""],["mode","indeterminate"],["class","list__item",4,"ngFor","ngForOf","ngForTrackBy"],[1,"list__item"],[3,"candidateEntityName","duplicateGroup","duplicatePropertyDiffTemplate","duplicateContentTemplate","resolveDuplicatesEvent","noDuplicateSingleEvent","noDuplicatesEvent","extractSelectionEvent","referencesActionEvent"],["addressPoiDuplicateContent",""],["addressPoiPropertyDiffContent",""],[3,"duplicateItem"],[3,"showRed","resourceBundleKey"]],template:function(L,V){if(1&L&&(t.TgZ(0,"div",0)(1,"imx-address-poi-filter",1),t.NdJ("orderChanged",function(An){return V.sort(An)})("applyFilter",function(An){return V.search(An)})("resetFilter",function(){return V.reset()}),t.qZA(),t.TgZ(2,"imx-list-header",2),t.NdJ("reload",function(){return V.reloadComplete()}),t.ynx(3,3),t.TgZ(4,"imx-duplicates-button-bar",4),t.NdJ("createDuplicatesList",function(){return V.createDuplicatesList()})("resolveDuplicatesList",function(){return V.resolveDuplicatesList()}),t.qZA(),t.BQk(),t.qZA(),t.TgZ(5,"imx-grid")(6,"imx-grid-element",5)(7,"imx-generic-slide-in-page"),t.YNc(8,mp,2,0,"ng-template",null,6,t.W1O)(10,$f,1,0,"ng-template",null,7,t.W1O)(12,qf,2,2,"div",8),t.ALo(13,"async"),t.qZA()()(),t.TgZ(14,"imx-list-footer",9),t.NdJ("pageChanged",function(An){return V.onPageChanged(An)})("selectAll",function(An){return V.onSelectAll(An)}),t.TgZ(15,"imx-dropup-button",10),t.YNc(16,nx,0,0,"ng-template",11),t.qZA()()()),2&L){const Xe=t.MAs(11);t.xp6(),t.Q6J("formHandler",V.filterFormHandler)("record",V.filter)("orderFields",V.availableOrderFields)("orderField",V.orderField)("orderDirection",V.orderDirection),t.xp6(),t.Q6J("totalNumber",null==V.currentResult?null:V.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxplatform.duplicate")("isCompactPageHeader",!1)("showCompactToggle",!1),t.xp6(2),t.Q6J("createDuplicatesPermission",V.imxPermissions.F_ADDRESSPOI_DUPLICATES_GENERATE_LIST)("resolveDuplicatesPermission",V.imxPermissions.F_ADDRESSPOI_DUPLICATES_RESOLVE)("duplicateGroupsLoaded",V.duplicateGroupsLoaded$)("showResolveAllBtn",V.showResolveAllBtnForEntity("addresspoi"))("resourcePrefix","imxplatform.duplicate"),t.xp6(8),t.Q6J("ngIf",t.lcZ(13,19,V.results))("ngIfElse",Xe),t.xp6(2),t.Q6J("showCheckbox",!1)("paging",V.pagingModel)("selection",V.selectionModel)}},dependencies:[e.sg,e.O5,ba.i$,ba.Tg,Ft.pW,wo.t,gr.F,On.M,_n.V,ma,bg.G,Cg.R,ag.E,Vp,Bt.Ee,jo.N,Cn._,uo.A,e.Ov],styles:["\n\n\n\n\n\n\n\n\n\n\n\n[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}"]})}return A})();var Ff=a(54362);let uh=(()=>{class A{constructor(f,L){this.platformDataAccessService=f,this.dialogData=L,this._setOwnProperties(L),this._createFormGroup()}get _isEdit(){return!!this.entityList}_setOwnProperties(f){const{entityList:L,entityType:V,dialogHeading:Xe,dialogHeadingIcon:An,submitButtonLabel:Qo,listType:Dr}=f;this.entityType=V,this.entityList=L,this.heading=Xe,this.headingIcon=An,this.submitButtonLabel=Qo,this.listType=Dr}_createFormGroup(){this.listNameControl=new x.p4(this._isEdit?this.entityList.name:""),this.formGroup=new x.nJ({listName:this.listNameControl},x.kI.required),this._addListNameValidator()}_addListNameValidator(){const f=this.platformDataAccessService.getEntityLists().pipe((0,m.U)(L=>L.items),(0,m.U)(L=>this._isEdit?this._excludeListThatGetsEdited(L):L),(0,m.U)(L=>this._excludeOtherListTypesAndListsForOtherEntityTypes(L)));this.listNameControl.setAsyncValidators((0,us.wB)(f))}_excludeListThatGetsEdited(f){return f.filter(L=>this.entityList.id!==L.id)}_excludeOtherListTypesAndListsForOtherEntityTypes(f){return f.filter(L=>L.listType.id===this.listType.id&&L.entityType===this.entityType)}_setDialogLabels(){const f=this._isEdit;this.heading=f?"imxplatform.entity-list.search-list.edit-dialog.header":"imxplatform.entity-list.search-list.create-dialog.header",this.headingIcon=f?"pencil":"star--new",this.submitButtonLabel=f?"imxplatform.entity-list.search-list.edit-dialog.confirm":"imxplatform.entity-list.search-list.create-dialog.confirm"}getListName(){return this.listNameControl.value}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(sn.nq),t.Y36(ae.WI))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],decls:5,vars:9,consts:[[3,"heading","icon","submitButtonLabel","submitButtonDisabled","getSubmitResult"],[3,"formGroup"],["for","searchListName","translate",""],["id","searchListName",3,"formGroup","formControl","errors"]],template:function(L,V){1&L&&(t.TgZ(0,"imx-dialog",0)(1,"form",1)(2,"label",2),t._uU(3,"imxplatform.entity-list.search-list.create-dialog.name"),t.qZA(),t._UZ(4,"imx-base-input",3),t.qZA()()),2&L&&(t.Q6J("heading",V.heading)("icon",V.headingIcon)("submitButtonLabel",V.submitButtonLabel)("submitButtonDisabled",V.formGroup.invalid)("getSubmitResult",V.getListName.bind(V)),t.xp6(),t.Q6J("formGroup",V.formGroup),t.xp6(3),t.Q6J("formGroup",V.formGroup)("formControl",V.listNameControl)("errors",V.listNameControl.errors))},dependencies:[x._Y,x.JJ,x.JL,x.oH,x.sg,Y.Pi,Ff.H,Qt.a],encapsulation:2})}return A})();var Mg=a(34300);function ph(A,Gt){if(1&A&&t._UZ(0,"imx-icon-with-circular-background",2),2&A){const f=t.oxw();t.Q6J("icon",f.icon)}}function _h(A,Gt){if(1&A&&(t.TgZ(0,"imx-link",3),t._uU(1),t.qZA()),2&A){const f=t.oxw();t.Q6J("link",f.link)("queryParams",f.queryParams),t.xp6(),t.Oqu(f.label)}}let Xf=(()=>{class A extends Mg.t{updateDynamicComponent([f,L]){this.icon=f[L.iconAccessor],super.updateDynamicComponent([f,L])}static#e=this.\u0275fac=(()=>{let f;return function(V){return(f||(f=t.n5z(A)))(V||A)}})();static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-table-link-with-icon-cell"]],features:[t.qOj],decls:2,vars:2,consts:[["size","small",3,"icon",4,"ngIf"],[3,"link","queryParams",4,"ngIf"],["size","small",3,"icon"],[3,"link","queryParams"]],template:function(L,V){1&L&&t.YNc(0,ph,1,1,"imx-icon-with-circular-background",0)(1,_h,2,3,"imx-link",1),2&L&&(t.Q6J("ngIf",V.icon),t.xp6(),t.Q6J("ngIf",V.link&&V.label))},dependencies:[e.O5,De.P,ke.N],styles:["[_nghost-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-right:10px}"]})}return A})();var Rp=a(99123);function Lf(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-action-menu-item",3),t.NdJ("actionClicked",function(){t.CHM(f);const V=t.oxw(2);return t.KtG(V.handleEditClick())}),t._uU(1,"imxplatform.common-entity.list.edit"),t.qZA()}2&A&&t.Q6J("icon","icon-pencil")}function fh(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-action-menu-item",4),t.NdJ("actionClicked",function(){t.CHM(f);const V=t.oxw(2);return t.KtG(V.handleDeleteClick())}),t._uU(1,"imxplatform.common-entity.list.remove"),t.qZA()}2&A&&t.Q6J("icon","icon-trash")}function J_(A,Gt){if(1&A&&(t.TgZ(0,"imx-dropup-button")(1,"imx-action-menu"),t.YNc(2,Lf,2,1,"imx-action-menu-item",1)(3,fh,2,1,"imx-action-menu-item",2),t.qZA()()),2&A){const f=t.oxw();t.xp6(2),t.Q6J("ngIf",f.hasEditAction),t.xp6(),t.Q6J("ngIf",f.hasDeleteAction)}}let Rf=(()=>{class A{updateDynamicComponent([{entity:f},{onEditCallback:L,onDeleteCallback:V}]){this.entity=f,this.onEditCallback=L,this.onDeleteCallback=V}handleEditClick(){this.onEditCallback&&this.entity&&this.onEditCallback(this.entity)}handleDeleteClick(){this.onDeleteCallback&&this.entity&&this.onDeleteCallback(this.entity)}get hasActions(){return this.hasEditAction||this.hasDeleteAction}get hasEditAction(){return!!this.onEditCallback}get hasDeleteAction(){return!!this.onDeleteCallback}static#e=this.\u0275fac=function(L){return new(L||A)};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-entity-lists-action-cell"]],decls:1,vars:1,consts:[[4,"ngIf"],[3,"icon","actionClicked",4,"ngIf"],["additionalStyle","delete",3,"icon","actionClicked",4,"ngIf"],[3,"icon","actionClicked"],["additionalStyle","delete",3,"icon","actionClicked"]],template:function(L,V){1&L&&t.YNc(0,J_,4,2,"imx-dropup-button",0),2&L&&t.Q6J("ngIf",V.hasActions)},dependencies:[e.O5,xi.p,ki.z,wo.t],encapsulation:2})}return A})();var cg=a(66791);function Qg(A,Gt){if(1&A&&(t.TgZ(0,"th",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&A){const f=Gt.$implicit;t.Udp("width",f.width),t.Q6J("ngClass",f.cssClass),t.xp6(),t.hij(" ",t.lcZ(2,4,f.columnTitle)," ")}}function ix(A,Gt){if(1&A&&(t.TgZ(0,"tr"),t.YNc(1,Qg,3,6,"th",8),t.qZA()),2&A){const f=t.oxw(2);t.xp6(),t.Q6J("ngForOf",f.columns)}}function ox(A,Gt){1&A&&t.GkF(0)}const kf=(A,Gt)=>({$implicit:A,column:Gt});function gh(A,Gt){if(1&A&&(t.TgZ(0,"td",11)(1,"imx-tooltip",12),t.YNc(2,ox,1,0,"ng-container",13),t.qZA()()),2&A){const f=Gt.$implicit,L=t.oxw().$implicit,V=t.oxw(2),Xe=t.MAs(2);t.Q6J("ngClass",f.cssClass),t.xp6(),t.Q6J("tooltipText",f.tooltipAccessor?V.outputProperty(L,f.tooltipAccessor,f.customDisplayFn):void 0)("offset",300),t.xp6(),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.WLB(5,kf,L,f))}}function dg(A,Gt){if(1&A&&(t.TgZ(0,"tr"),t.YNc(1,gh,3,8,"td",10),t.qZA()),2&A){const f=t.oxw(2);t.xp6(),t.Q6J("ngForOf",f.columns)}}function Tg(A,Gt){if(1&A&&(t.TgZ(0,"p-table",5),t.YNc(1,ix,2,1,"ng-template",6)(2,dg,2,1,"ng-template",7),t.qZA()),2&A){const f=t.oxw();t.Q6J("value",f.data)("resizableColumns",!0)}}function hh(A,Gt){1&A&&t.GkF(0)}function Vg(A,Gt){if(1&A&&(t.TgZ(0,"div",14),t.YNc(1,hh,1,0,"ng-container",13),t.qZA()),2&A){const f=Gt.$implicit,L=Gt.column;t.oxw();const V=t.MAs(6),Xe=t.MAs(4);t.xp6(),t.Q6J("ngTemplateOutlet","component"===L.type?V:Xe)("ngTemplateOutletContext",t.WLB(2,kf,f,L))}}function Eg(A,Gt){if(1&A&&t._uU(0),2&A){const f=Gt.$implicit,L=Gt.column,V=t.oxw();t.hij(" ",V.outputProperty(f,L.accessor,L.customDisplayFn)," ")}}const mg=(A,Gt)=>[A,Gt];function xh(A,Gt){if(1&A&&t._UZ(0,"imx-dynamic-component",15),2&A){const f=Gt.$implicit,L=Gt.column;t.Q6J("component",L.component)("componentParams",t.WLB(2,mg,f,L))}}function Nf(A,Gt){1&A&&(t.TgZ(0,"imx-list-no-results"),t._uU(1,"imxplatform.common.no-records"),t.qZA())}let Uf=(()=>{class A extends Ro.a{static#e=this.\u0275fac=(()=>{let f;return function(V){return(f||(f=t.n5z(A)))(V||A)}})();static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-compact-table"]],inputs:{columns:"columns"},features:[t.qOj],decls:9,vars:2,consts:[["class","imx-datatable",3,"value","resizableColumns",4,"ngIf","ngIfElse"],["cellContent",""],["defaultCellContent",""],["componentCellContent",""],["noResults",""],[1,"imx-datatable",3,"value","resizableColumns"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",3,"ngClass"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[3,"tooltipText","offset"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"imx-datatable-cell-wrapper"],[3,"component","componentParams"]],template:function(L,V){if(1&L&&t.YNc(0,Tg,3,2,"p-table",0)(1,Vg,2,5,"ng-template",null,1,t.W1O)(3,Eg,1,1,"ng-template",null,2,t.W1O)(5,xh,1,5,"ng-template",null,3,t.W1O)(7,Nf,2,0,"ng-template",null,4,t.W1O),2&L){const Xe=t.MAs(8);t.Q6J("ngIf",V.data.length)("ngIfElse",Xe)}},dependencies:[e.mk,e.sg,e.O5,e.tP,wi.iA,zo.jx,wi.Q7,am.B,ho.K,uo.A,Y.X$],styles:[".imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.imx-datatable-cell-wrapper[_ngcontent-%COMP%]{max-width:50px!important}.imx-datatable-cell-wrapper[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{text-overflow:ellipsis}"]})}return A})();function Q_(A,Gt){if(1&A&&(t.TgZ(0,"h1",1),t._uU(1),t.qZA()),2&A){const f=t.oxw();t.Q6J("translateParams",f.translateParams),t.xp6(),t.Oqu(f.heading)}}let ug=(()=>{class A{static#e=this.\u0275fac=function(L){return new(L||A)};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-compact-list-table-heading"]],inputs:{heading:"heading",translateParams:"translateParams"},decls:1,vars:1,consts:[["translate","",3,"translateParams",4,"ngIf"],["translate","",3,"translateParams"]],template:function(L,V){1&L&&t.YNc(0,Q_,2,2,"h1",0),2&L&&t.Q6J("ngIf",V.heading)},dependencies:[e.O5,Y.Pi],styles:["h1[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return A})();const Ag=["*"];let V_=(()=>{class A{static#e=this.\u0275fac=function(L){return new(L||A)};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-entity-list-mgmt-page-grid-element"]],ngContentSelectors:Ag,decls:2,vars:2,consts:[[3,"lg_w","lg_o"]],template:function(L,V){1&L&&(t.F$t(),t.TgZ(0,"imx-grid-element",0),t.Hsn(1),t.qZA()),2&L&&t.Q6J("lg_w",12)("lg_o",0)},dependencies:[_n.V],styles:["[_nghost-%COMP%]{display:block}"]})}return A})();function Bf(A,Gt){if(1&A&&(t.ynx(0),t._UZ(1,"imx-compact-list-table-heading",1)(2,"imx-compact-table",2),t.BQk()),2&A){const f=Gt.ngIf,L=t.oxw();t.xp6(2),t.Q6J("columns",L.columns)("data",f)}}let Tt=(()=>{class A{constructor(f){this.entityListsDataAccessService=f,this.objectHistory$=this.entityListsDataAccessService.objectHistory$(),this.columns=[{accessor:"entity.id",columnTitle:"ID",width:"60px"},{accessor:"label",type:"component",component:Xf,columnTitle:"Name",linkAccessor:"link",labelAccessor:"label",queryParamsAccessor:"queryParams",iconAccessor:"icon",width:"100%"},{accessor:"timestamp",cssClass:"timestamp-column",columnTitle:"imxplatform.entity-list.object-history.last-opened",width:"200px"}]}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(ur.$))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-object-history-table"]],decls:2,vars:3,consts:[[4,"ngIf"],["heading","imxplatform.entity-list.object-history.title"],[3,"columns","data"]],template:function(L,V){1&L&&(t.YNc(0,Bf,3,2,"ng-container",0),t.ALo(1,"async")),2&L&&t.Q6J("ngIf",t.lcZ(1,1,V.objectHistory$))},dependencies:[e.O5,Uf,ug,e.Ov],encapsulation:2})}return A})();function zt(A,Gt){}function on(A,Gt){1&A&&t.YNc(0,zt,0,0,"ng-template")}function hn(A,Gt){}function Gn(A,Gt){1&A&&t.YNc(0,hn,0,0,"ng-template")}function Gi(A,Gt){}function Po(A,Gt){1&A&&t.YNc(0,Gi,0,0,"ng-template")}function er(A,Gt){}function Tr(A,Gt){1&A&&t.YNc(0,er,0,0,"ng-template")}const va=(A,Gt)=>({$implicit:A,columns:Gt,heading:"imxplatform.entity-list.contact-list.title"});function gl(A,Gt){if(1&A&&(t.ynx(0),t.YNc(1,Tr,1,0,null,0),t.ALo(2,"async"),t.BQk()),2&A){const f=t.oxw(),L=t.MAs(11);t.xp6(),t.Q6J("ngTemplateOutlet",L)("ngTemplateOutletContext",t.WLB(4,va,t.lcZ(2,2,f.contactLists$),f.contactListColumns))}}function Fl(A,Gt){if(1&A&&(t.TgZ(0,"imx-entity-list-mgmt-page-grid-element"),t._UZ(1,"imx-compact-list-table-heading",3)(2,"imx-compact-table",4),t.qZA()),2&A){const f=t.oxw(),L=f.heading,V=f.columns,Xe=f.$implicit;t.xp6(),t.Q6J("heading",L),t.xp6(),t.Q6J("columns",V)("data",Xe)}}function Zl(A,Gt){1&A&&t.YNc(0,Fl,3,3,"imx-entity-list-mgmt-page-grid-element",1),2&A&&t.Q6J("ngIf",Gt.$implicit)}const is=(A,Gt)=>({$implicit:A,columns:Gt,heading:"imxplatform.entity-list.search-list.title"}),Yc=(A,Gt)=>({$implicit:A,columns:Gt,heading:"imxplatform.entity-list.object-list.title"}),Yd=(A,Gt)=>({$implicit:A,columns:Gt,heading:"imxplatform.entity-list.search-history.title"});let cm=(()=>{class A{constructor(f,L,V,Xe,An,Qo){this.entityListsDataAccessService=f,this.platformDataAccessService=L,this.runtimeContextService=V,this.userMessageService=Xe,this.dialogService=An,this.translateService=Qo,this.isAdminUser=!1,this.entityListsDataAccessService.forceReload(),this.searchLists$=this.entityListsDataAccessService.searchLists$(),this.searchHistory$=this.entityListsDataAccessService.searchHistory$(),this.objectLists$=this.entityListsDataAccessService.objectLists$(),this.contactLists$=this.entityListsDataAccessService.contactLists$(),this.searchListColumns=this._buildColumnConfigurations(this.openSearchListEditDialog.bind(this),this.openSearchListDeleteDialog.bind(this)),this.objectListColumns=this._buildColumnConfigurations(this.openObjectListEditDialog.bind(this),this.openObjectListDeleteDialog.bind(this)),this.searchHistoryColumns=this._buildColumnConfigurations(),this.contactListColumns=this._buildColumnConfigurations(this.openContactListEditDialog.bind(this),this.openSearchListDeleteDialog.bind(this)),this.isAdminUser=(0,Rp.cR)(this.runtimeContextService.getLoginUser().loginname)}openSearchListEditDialog(f){this._openEditDialog(f,H.E6.SEARCH_LIST,L=>this._updateSearchList(f,L),"imxplatform.entity-list.search-list.edit-dialog.header","imxplatform.entity-list.dialog.edit-button-label")}openObjectListEditDialog(f){this._openEditDialog(f,H.E6.OBJECT_LIST,L=>this._updateObjectList(f,L),"imxplatform.entity-list.object-list.edit-dialog.header","imxplatform.entity-list.dialog.edit-button-label")}openContactListEditDialog(f){this._openEditDialog(f,H.E6.SEARCH_LIST,L=>this._updateSearchList(f,L),"imxplatform.entity-list.contact-list.edit-dialog.header","imxplatform.entity-list.dialog.edit-button-label")}openSearchListDeleteDialog(f){this._openDeleteDialog(f,()=>this._deleteSearchList(f),"imxplatform.entity-list.search-list.delete-dialog.title","imxplatform.entity-list.search-list.delete-dialog.confirm")}openObjectListDeleteDialog(f){this._openDeleteDialog(f,()=>this._deleteObjectList(f),"imxplatform.entity-list.object-list.delete-dialog.title","imxplatform.entity-list.object-list.delete-dialog.confirm")}openContactListDeleteDialog(f){this._openDeleteDialog(f,()=>this._deleteSearchList(f),"imxplatform.entity-list.contact-list.delete-dialog.title","imxplatform.entity-list.contact-list.delete-dialog.confirm")}_openDeleteDialog(f,L,V,Xe){this.dialogService.openDialog(Pd.F,{i18n:Xe,title:f.name,dialogTitle:V,deleteButtonLabel:"imxplatform.entity-list.dialog.delete-button-label"},{},L)}_openEditDialog(f,L,V,Xe,An){this.dialogService.openDialog(uh,{entityType:f.entityType,listType:L,dialogHeading:Xe,dialogHeadingIcon:"icon-pencil",submitButtonLabel:An,entityList:f},{},V)}_updateSearchList(f,L){this._updateEntityList(f,L,"imxplatform.entity-list.search-list.create-dialog.success","imxplatform.entity-list.search-list.create-dialog.failure")}_updateObjectList(f,L){this._updateEntityList(f,L,"imxplatform.entity-list.object-list.edit-dialog.success","imxplatform.entity-list.object-list.edit-dialog.failure")}_updateEntityList(f,L,V,Xe){if(!this._entityListWasChanged(f,L))return;const An=this._getUpdatedEntityList(f,L);this.platformDataAccessService.updateEntityList(An).pipe((0,Yr.q)(1)).subscribe(Qo=>this._updateEntityListSuccess(Qo,V),()=>this._updatedEntityListError(Xe))}_updateEntityListSuccess(f,L){this.userMessageService.showInfo(L),this.entityListsDataAccessService.upsertEntityLists(f)}_updatedEntityListError(f){this.userMessageService.showError(f)}_getUpdatedEntityList(f,L){return{...f,name:L}}_entityListWasChanged(f,L){return f.name!==L}_deleteSearchList(f){this._deleteEntityList(f,"imxplatform.entity-list.search-list.delete-dialog.success","imxplatform.entity-list.search-list.delete-dialog.failure")}_deleteObjectList(f){this._deleteEntityList(f,"imxplatform.entity-list.object-list.delete-dialog.success","imxplatform.entity-list.object-list.delete-dialog.failure")}_deleteEntityList(f,L,V){this.platformDataAccessService.deleteEntityList(f.id).pipe((0,Yr.q)(1)).subscribe(Xe=>{Xe?this._deleteEntityListSuccess(f,L):this._deleteEntityListError(V)},()=>this._deleteEntityListError(V))}_deleteEntityListSuccess(f,L){this.userMessageService.showInfo(L),this.entityListsDataAccessService.removeFromEntityLists(f)}_deleteEntityListError(f){this.userMessageService.showError(f)}_buildColumnConfigurations(f,L){return[{accessor:"label",width:"50%",type:"component",component:Xf,columnTitle:"imxplatform.entity-list.table.name",linkAccessor:"link",labelAccessor:"label",queryParamsAccessor:"queryParams",iconAccessor:"icon"},{accessor:"",width:"50%",tooltipAccessor:"entity.listInfo",columnTitle:"imxplatform.entity-list.table.search-details",customDisplayFn:this.displayListInfo.bind(this)},{accessor:"actionsColumn",type:"component",width:"50px",component:Rf,cssClass:"action-column",onEditCallback:f,onDeleteCallback:L}]}displayListInfo(f){return this.formatSearchQueries(f)}formatSearchQueries(f){return void 0!==f&&void 0!==f.queryParams?function jm(A,Gt,f){let L="";return Object.keys(Gt).forEach((V,Xe)=>{L=L+function up(A,Gt,f){return f.instant("filter."+A+"."+Gt)}(A,V,f)+": "+function T_(A,Gt){return"true"===A||"false"===A?Gt.instant("imxplatform.common."+A):A}(Gt[V],f),Xe<Object.keys(Gt).length-1&&(L+=", ")}),L}(f.entity.entityType,f.queryParams,this.translateService):""}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(ur.$),t.Y36(sn.nq),t.Y36(i.Ze),t.Y36(c.Y),t.Y36(cg.x),t.Y36(Y.sK))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],decls:12,vars:22,consts:[[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],["table",""],[3,"heading"],[3,"columns","data"]],template:function(L,V){if(1&L&&(t.TgZ(0,"imx-grid"),t.YNc(1,on,1,0,null,0),t.ALo(2,"async"),t.YNc(3,Gn,1,0,null,0),t.ALo(4,"async"),t.YNc(5,Po,1,0,null,0),t.ALo(6,"async"),t.TgZ(7,"imx-entity-list-mgmt-page-grid-element"),t._UZ(8,"imx-object-history-table"),t.qZA(),t.YNc(9,gl,3,7,"ng-container",1),t.qZA(),t.YNc(10,Zl,1,1,"ng-template",null,2,t.W1O)),2&L){const Xe=t.MAs(11);t.xp6(),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.WLB(13,is,t.lcZ(2,7,V.searchLists$),V.searchListColumns)),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.WLB(16,Yc,t.lcZ(4,9,V.objectLists$),V.objectListColumns)),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.WLB(19,Yd,t.lcZ(6,11,V.searchHistory$),V.searchHistoryColumns)),t.xp6(4),t.Q6J("ngIf",V.isAdminUser)}},dependencies:[e.O5,e.tP,On.M,Uf,ug,V_,Tt,e.Ov],styles:["imx-entity-list-mgmt-page-grid-element[_ngcontent-%COMP%]:not(:last-child){margin-bottom:50px}imx-entity-list-mgmt-page-grid-element[_ngcontent-%COMP%]:first-child{margin-top:20px}imx-entity-list-mgmt-page-grid-element[_ngcontent-%COMP%]:last-child{margin-bottom:20px}"]})}return A})();var u_=a(51733),kp=a(38888);function p_(A,Gt){1&A&&(t.ynx(0),t.TgZ(1,"p",7),t._uU(2,"imxplatform.forgot-password.header"),t.qZA(),t.BQk())}const Wd=()=>["../login"];function Zf(A,Gt){1&A&&(t.ynx(0),t.TgZ(1,"p",8),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"p",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",9)(8,"a",10),t._uU(9),t.ALo(10,"translate"),t.qZA()(),t.BQk()),2&A&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"imxplatform.forgot-password.success")),t.xp6(3),t.Oqu(t.lcZ(6,6,"imxplatform.forgot-password.success-hint")),t.xp6(3),t.Q6J("routerLink",t.DdM(10,Wd)),t.xp6(),t.Oqu(t.lcZ(10,8,"imxplatform.forgot-password.back")))}function Hf(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"p"),t._uU(2),t.qZA(),t.BQk()),2&A){const f=t.oxw(2);t.xp6(2),t.Oqu(f.errorMessage)}}function Yp(A,Gt){1&A&&(t.ynx(0),t.TgZ(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.BQk()),2&A&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"imxplatform.common.error.unknown")))}function Lr(A,Gt){if(1&A&&(t.TgZ(0,"div",11)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Hf,3,1,"ng-container",4)(5,Yp,4,3,"ng-container",4),t.qZA()),2&A){const f=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,3,"imxplatform.forgot-password.error")),t.xp6(2),t.Q6J("ngIf",f.errorMessage),t.xp6(),t.Q6J("ngIf",!f.errorMessage)}}function Ha(A,Gt){if(1&A&&(t.TgZ(0,"div",12)(1,"label",13),t._UZ(2,"input",14),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",15)(5,"button",16),t._uU(6),t.ALo(7,"translate"),t.qZA()(),t.TgZ(8,"div",9)(9,"a",10),t._uU(10),t.ALo(11,"translate"),t.qZA()()()),2&A){const f=t.oxw();t.xp6(2),t.s9C("placeholder",t.lcZ(3,5,"imxplatform.forgot-password.username")),t.xp6(3),t.Q6J("disabled",!f.forgotPasswordForm.valid),t.xp6(),t.hij(" ",t.lcZ(7,7,"imxplatform.forgot-password.button")," "),t.xp6(3),t.Q6J("routerLink",t.DdM(11,Wd)),t.xp6(),t.Oqu(t.lcZ(11,9,"imxplatform.forgot-password.back"))}}let cl=(()=>{class A{constructor(f,L,V,Xe,An){this.formBuilder=f,this.authService=L,this.router=V,this.route=Xe,this.errorParser=An,this.showError=!1,this.showSuccess=!1}ngOnInit(){this.buildForm()}resetPassword(){this.showError=!1;const f=this.forgotPasswordForm.get("username");return f&&this.authService.resetPassword(f.value).subscribe(L=>{this.showSuccess=!0},L=>{this.showError=!0;const V=this.errorParser.parse(L);this.errorMessage=(0,i.Ec)(V)?V.localizedMessage[0]:V}),!1}buildForm(){this.forgotPasswordForm=this.formBuilder.group({username:["",x.kI.required]})}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(x.QS),t.Y36(i.$h),t.Y36(l.F0),t.Y36(l.gz),t.Y36(u_.k))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],decls:10,vars:13,consts:[[3,"lg_w","lg_o","md_w","md_o","sm_w","sm_o","ty_w","ty_o"],["id","forgotPassword","novalidate","",3,"formGroup","ngSubmit"],[1,"forgotPassword__text"],["translate","",1,"forgotPassword__text__title"],[4,"ngIf"],["class","error-message-login",4,"ngIf"],["class","forgotPassword__inputGroup",4,"ngIf"],["translate","",1,"forgotPassword__text__paragraph"],[1,"forgotPassword__text__paragraph"],[1,"forgotPassword__inputGroup__functions"],[1,"forgotPassword__link",3,"routerLink"],[1,"error-message-login"],[1,"forgotPassword__inputGroup"],[1,"imx-input-text-default","icon-user"],["type","text","autocomplete","nope","formControlName","username","autofocus","",3,"placeholder"],[1,"imx-button-wrapper"],["type","submit",1,"imx-button-cta",3,"disabled"]],template:function(L,V){1&L&&(t.TgZ(0,"imx-grid")(1,"imx-grid-element",0)(2,"form",1),t.NdJ("ngSubmit",function(){return V.resetPassword()}),t.TgZ(3,"div",2)(4,"h1",3),t._uU(5,"imxplatform.forgot-password.question"),t.qZA(),t.YNc(6,p_,3,0,"ng-container",4)(7,Zf,11,11,"ng-container",4),t.qZA(),t.YNc(8,Lr,6,5,"div",5)(9,Ha,12,12,"div",6),t.qZA()()()),2&L&&(t.xp6(),t.Q6J("lg_w",4)("lg_o",4)("md_w",6)("md_o",3)("sm_w",8)("sm_o",2)("ty_w",10)("ty_o",1),t.xp6(),t.Q6J("formGroup",V.forgotPasswordForm),t.xp6(4),t.Q6J("ngIf",!V.showSuccess),t.xp6(),t.Q6J("ngIf",V.showSuccess),t.xp6(),t.Q6J("ngIf",V.showError),t.xp6(),t.Q6J("ngIf",!V.showSuccess))},dependencies:[e.O5,x._Y,x.Fj,x.JJ,x.JL,x.sg,x.u,l.rH,Y.Pi,On.M,_n.V,kp.u,kn.F,Y.X$],styles:['#login[_ngcontent-%COMP%], #forgotPassword[_ngcontent-%COMP%]{position:relative;background:transparent;text-align:left}@media (min-width: 551px){#login[_ngcontent-%COMP%], #forgotPassword[_ngcontent-%COMP%]{margin:173px 0 50px;padding-bottom:15px}}@media (max-width: 550px){#login[_ngcontent-%COMP%], #forgotPassword[_ngcontent-%COMP%]{margin:0px calc(-2.2222222222% - 2px);width:calc(100% + 2.2222222222% + 2.2222222222% + 4px);min-height:calc(100vh - 50px);padding-bottom:72px}}.login__text[_ngcontent-%COMP%], .forgotPassword__text[_ngcontent-%COMP%]{text-align:left}@media (min-width: 551px){.login__text[_ngcontent-%COMP%], .forgotPassword__text[_ngcontent-%COMP%]{margin:0 0 30px;padding:79px 52px 0}}@media (max-width: 550px){.login__text[_ngcontent-%COMP%], .forgotPassword__text[_ngcontent-%COMP%]{margin:0 0 20px;padding:200px 0 0}}.login__text__title[_ngcontent-%COMP%]:not(:last-child), .forgotPassword__text__title[_ngcontent-%COMP%]:not(:last-child){margin:0 0 4px}.login__text__title[_ngcontent-%COMP%]:last-child, .forgotPassword__text__title[_ngcontent-%COMP%]:last-child{margin:0}@media (min-width: 901px){.login__text__title[_ngcontent-%COMP%], .forgotPassword__text__title[_ngcontent-%COMP%]{font:600 44px/56px Noe Display,Arial,sans-serif;margin-bottom:4px;white-space:nowrap}}@media (min-width: 551px) and (max-width: 900px){.login__text__title[_ngcontent-%COMP%], .forgotPassword__text__title[_ngcontent-%COMP%]{font:600 36px/40px Noe Display,Arial,sans-serif;margin-bottom:4px}}@media (max-width: 550px){.login__text__title[_ngcontent-%COMP%], .forgotPassword__text__title[_ngcontent-%COMP%]{font:600 36px/40px Noe Display,Arial,sans-serif;margin-bottom:15px;text-align:center}}.login__text__paragraph[_ngcontent-%COMP%], .forgotPassword__text__paragraph[_ngcontent-%COMP%]{font:500 14px/1.2142857143 GT Walsheim,Arial,sans-serif;opacity:.75}.login__text__paragraph[_ngcontent-%COMP%]:not(:last-child), .forgotPassword__text__paragraph[_ngcontent-%COMP%]:not(:last-child){margin:0 0 5px}.login__text__paragraph[_ngcontent-%COMP%]:last-child, .forgotPassword__text__paragraph[_ngcontent-%COMP%]:last-child{margin:0}@media (min-width: 551px){.login__text__paragraph[_ngcontent-%COMP%], .forgotPassword__text__paragraph[_ngcontent-%COMP%]{text-align:left}}@media (max-width: 550px){.login__text__paragraph[_ngcontent-%COMP%], .forgotPassword__text__paragraph[_ngcontent-%COMP%]{text-align:center}}.login__link[_ngcontent-%COMP%], .forgotPassword__link[_ngcontent-%COMP%]{font:400 14px/1.2142857143 GT Walsheim,Arial,sans-serif;text-decoration:underline}.login__inputGroup[_ngcontent-%COMP%]:not(:last-child), .forgotPassword__inputGroup[_ngcontent-%COMP%]:not(:last-child){margin:0 0 30px}.login__inputGroup[_ngcontent-%COMP%]:last-child, .forgotPassword__inputGroup[_ngcontent-%COMP%]:last-child{margin:0}@media (min-width: 1401px){.login__inputGroup[_ngcontent-%COMP%] > .imx-input-text-default[_ngcontent-%COMP%]:not(:last-child), .forgotPassword__inputGroup[_ngcontent-%COMP%] > .imx-input-text-default[_ngcontent-%COMP%]:not(:last-child){margin:0 0 10px -31px}}@media (max-width: 1400px){.login__inputGroup[_ngcontent-%COMP%] > .imx-input-text-default[_ngcontent-%COMP%]:not(:last-child), .forgotPassword__inputGroup[_ngcontent-%COMP%] > .imx-input-text-default[_ngcontent-%COMP%]:not(:last-child){margin:0 0 10px}}@media (min-width: 1401px){.login__inputGroup[_ngcontent-%COMP%] > .imx-input-text-default[_ngcontent-%COMP%]:last-child, .forgotPassword__inputGroup[_ngcontent-%COMP%] > .imx-input-text-default[_ngcontent-%COMP%]:last-child{margin:0 0 0 -31px}}@media (max-width: 1400px){.login__inputGroup[_ngcontent-%COMP%] > .imx-input-text-default[_ngcontent-%COMP%]:last-child, .forgotPassword__inputGroup[_ngcontent-%COMP%] > .imx-input-text-default[_ngcontent-%COMP%]:last-child{margin:0}}@media (min-width: 551px){.login__inputGroup[_ngcontent-%COMP%], .forgotPassword__inputGroup[_ngcontent-%COMP%]{padding:0 52px}}@media (max-width: 550px){.login__inputGroup[_ngcontent-%COMP%], .forgotPassword__inputGroup[_ngcontent-%COMP%]{padding:0 8px}}.imx-input-text-default[_ngcontent-%COMP%]{display:block;padding:15px;border:1px #000000 solid;border-radius:25px;cursor:text}.imx-input-text-default[_ngcontent-%COMP%]:not(:first-child){margin-bottom:20px}.imx-input-text-default[_ngcontent-%COMP%]:before{display:inline-block;vertical-align:sub;width:20px;margin-right:8px;font-family:imx-linearicons!important;font-size:18px;line-height:1em;font-weight:900}@media (min-width: 1401px){.imx-input-text-default[_ngcontent-%COMP%]{min-width:404px}}.imx-input-text-default[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{font:300 17px/20px GT Walsheim,Arial,sans-serif;width:calc(100% - 28px);height:1.25;background:transparent;border:none;border-radius:0;outline:none}.imx-input-text-default[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]::placeholder{color:currentColor;opacity:1}.imx-input-text-default[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:-webkit-autofill, .imx-input-text-default[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:-webkit-autofill:hover, .imx-input-text-default[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:-webkit-autofill:focus, .imx-input-text-default[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:-webkit-autofill:active{-webkit-box-shadow:0 0 0 30px #eefafa inset!important}.login__inputGroup__functions[_ngcontent-%COMP%], .forgotPassword__inputGroup__functions[_ngcontent-%COMP%]{font:700 13.6px GT Walsheim,Arial,sans-serif}@media (min-width: 551px){.login__inputGroup__functions[_ngcontent-%COMP%], .forgotPassword__inputGroup__functions[_ngcontent-%COMP%]{text-align:left}}@media (max-width: 550px){.login__inputGroup__functions[_ngcontent-%COMP%], .forgotPassword__inputGroup__functions[_ngcontent-%COMP%]{text-align:center}}.error-message-login[_ngcontent-%COMP%]{position:relative;margin-bottom:25px}@media (min-width: 551px){.error-message-login[_ngcontent-%COMP%]{padding:15px 52px;text-align:left}}@media (max-width: 550px){.error-message-login[_ngcontent-%COMP%]{padding:15px 0;text-align:center;margin-left:-10px;margin-right:-10px}}.error-message-login.under_construction[_ngcontent-%COMP%]{padding:15px 0}.error-message-login[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{color:#fff;position:relative;z-index:1}.error-message-login[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]:not(:last-child){margin-bottom:5px}@media (min-width: 551px){.error-message-login[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{font:400 16px/22px GT Walsheim,Arial,sans-serif}}@media (max-width: 550px){.error-message-login[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{font:400 14px/18px GT Walsheim,Arial,sans-serif}}.error-message-login[_ngcontent-%COMP%] > p[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{color:#fff}.error-message-login__background[_ngcontent-%COMP%], .forgotPassword__success-message__background[_ngcontent-%COMP%]{background-attachment:fixed;height:100%;left:calc(-50vw + 50%);position:absolute;top:0;width:100vw}.imx-button-wrapper[_ngcontent-%COMP%]{display:flex}@media (min-width: 551px){.imx-button-wrapper[_ngcontent-%COMP%]{justify-content:flex-start}}@media (max-width: 550px){.imx-button-wrapper[_ngcontent-%COMP%]{justify-content:center}}.imx-button-cta[_ngcontent-%COMP%]{margin-bottom:20px;cursor:pointer;font:700 14.3157894737px GT Walsheim,Arial,sans-serif;text-transform:uppercase;text-align:center;display:inline-block;padding:14px 10px;border:none;border-radius:0;outline:none;box-shadow:2px 2px 4px #0003}@media (min-width: 1401px){.imx-button-cta[_ngcontent-%COMP%]{min-width:224px}}@media (min-width: 551px) and (max-width: 1400px){.imx-button-cta[_ngcontent-%COMP%]{min-width:224px}}@media (max-width: 550px){.imx-button-cta[_ngcontent-%COMP%]{min-width:167px}}.forgotPassword__text__paragraph[_ngcontent-%COMP%], .forgotPassword__link[_ngcontent-%COMP%], .forgotPassword__inputGroup__functions[_ngcontent-%COMP%]{color:#fff}.imx-input-text-default[_ngcontent-%COMP%]{border-color:#fff}.imx-input-text-default[_ngcontent-%COMP%]:before, .imx-input-text-default[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{color:#fff}#forgotPassword[_ngcontent-%COMP%]   .imx-input-text-default[_ngcontent-%COMP%]:first-child{margin-bottom:20px}input[_ngcontent-%COMP%]:-webkit-autofill, input[_ngcontent-%COMP%]:-webkit-autofill:hover, input[_ngcontent-%COMP%]:-webkit-autofill:focus, input[_ngcontent-%COMP%]:-webkit-autofill:active{-webkit-box-shadow:0 0 0 30px #0a2663 inset!important}@media (min-width: 1401px){.forgotPassword__success-message__background[_ngcontent-%COMP%]{background-image:url(\'data:image/svg+xml;charset=UTF-8,   %3Csvg   xmlns:dc="http://purl.org/dc/elements/1.1/"   xmlns:cc="http://creativecommons.org/ns%23"   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns%23"   xmlns:svg="http://www.w3.org/2000/svg"   xmlns="http://www.w3.org/2000/svg"   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"   width="10221"   height="19894"   viewBox="0 0 10221 19894"   fill="none"   version="1.1"   id="svg869"   sodipodi:docname="platformLoginBG_lg_red.svg"   inkscape:version="0.92.3 (2405546, 2018-03-11)"%3E  %3Cmetadata     id="metadata873"%3E    %3Crdf:RDF%3E      %3Ccc:Work         rdf:about=""%3E        %3Cdc:format%3Eimage/svg+xml%3C/dc:format%3E        %3Cdc:type           rdf:resource="http://purl.org/dc/dcmitype/StillImage" /%3E        %3Cdc:title%3E%3C/dc:title%3E      %3C/cc:Work%3E    %3C/rdf:RDF%3E  %3C/metadata%3E  %3Csodipodi:namedview     pagecolor="%23ffffff"     bordercolor="%23666666"     borderopacity="1"     objecttolerance="10"     gridtolerance="10"     guidetolerance="10"     inkscape:pageopacity="0"     inkscape:pageshadow="2"     inkscape:window-width="1920"     inkscape:window-height="1001"     id="namedview871"     showgrid="false"     inkscape:zoom="0.22975461"     inkscape:cx="1999.5926"     inkscape:cy="18701.942"     inkscape:window-x="-9"     inkscape:window-y="-9"     inkscape:window-maximized="1"     inkscape:current-layer="g862" /%3E  %3Cg     clip-path="url(%23clip0)"     id="g862"%3E    %3Cpath       d="M364.317 417.198L10221 19894L10221 134.003L508.611 134.004L364.317 417.198Z"       fill="%23EEFAFA"       id="path852"       style="fill:%23739600;fill-opacity:1" /%3E  %3C/g%3E  %3Cdefs     id="defs867"%3E    %3CclipPath       id="clip0"%3E      %3Crect         width="10221"         height="19894"         fill="white"         id="rect864" /%3E    %3C/clipPath%3E  %3C/defs%3E%3C/svg%3E\')}}@media (min-width: 551px) and (max-width: 1400px){.forgotPassword__success-message__background[_ngcontent-%COMP%]{background-image:url(\'data:image/svg+xml;charset=UTF-8,    %3Csvg       xmlns:dc="http://purl.org/dc/elements/1.1/"       xmlns:cc="http://creativecommons.org/ns%23"       xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns%23"       xmlns:svg="http://www.w3.org/2000/svg"       xmlns="http://www.w3.org/2000/svg"       xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"       xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"       width="17447.596"       height="43221.109"       viewBox="0 0 17447.596 43221.109"       version="1.1"       id="svg883"       sodipodi:docname="platformLoginBG_md_red.svg"       style="fill:none"       inkscape:version="0.92.3 (2405546, 2018-03-11)"%3E      %3Cmetadata         id="metadata887"%3E        %3Crdf:RDF%3E          %3Ccc:Work             rdf:about=""%3E            %3Cdc:format%3Eimage/svg+xml%3C/dc:format%3E            %3Cdc:type               rdf:resource="http://purl.org/dc/dcmitype/StillImage" /%3E            %3Cdc:title /%3E          %3C/cc:Work%3E        %3C/rdf:RDF%3E      %3C/metadata%3E      %3Csodipodi:namedview         pagecolor="%23ffffff"         bordercolor="%23666666"         borderopacity="1"         objecttolerance="10"         gridtolerance="10"         guidetolerance="10"         inkscape:pageopacity="0"         inkscape:pageshadow="2"         inkscape:window-width="1920"         inkscape:window-height="1001"         id="namedview885"         showgrid="false"         fit-margin-top="0"         fit-margin-left="0"         fit-margin-right="-100"         fit-margin-bottom="0"         inkscape:zoom="0.04"         inkscape:cx="10398.638"         inkscape:cy="34807.927"         inkscape:window-x="-9"         inkscape:window-y="-9"         inkscape:window-maximized="1"         inkscape:current-layer="g876" /%3E      %3Cg         clip-path="url(%23clip0)"         id="g876"         transform="matrix(17.402589,0,0,17.402589,0,1.1588789)"         style="stroke-width:0.05746271"%3E        %3Cpath           d="M -161.98331,555.91728 1488.3326,3817.2898 V 121.415 H 59.405562 Z"           id="path866"           inkscape:connector-curvature="0"           style="fill:%23739600;stroke-width:0.00330195;fill-opacity:1" /%3E        %3Cpath           d="M -20.09226,-0.06659233 -28.731357,16.888578 V -0.06659233 Z"           id="path868"           inkscape:connector-curvature="0"           style="fill:%230a2663;stroke-width:0.00330196" /%3E        %3Cpath           d="M -28.731357,95.500028 19.962291,-0.06659233 H 60.256103 L -28.731357,174.58133 Z"           id="path870"           inkscape:connector-curvature="0"           style="fill:%230a2663;stroke-width:0.00330196" /%3E        %3Cpath           d="m -28.731357,16.653638 8.519391,-16.72023033 H 20.081921 L -28.731357,95.734708 Z"           id="path872"           inkscape:connector-curvature="0"           style="fill:%2300faa5;stroke-width:0.00330196" /%3E        %3Cpath           d="M -28.731357,174.34691 60.136727,-0.06659233 H 100.43054 L -28.731357,253.42795 Z"           id="path874"           inkscape:connector-curvature="0"           style="fill:%2300faa5;stroke-width:0.00330196" /%3E      %3C/g%3E      %3Cdefs         id="defs881"%3E        %3CclipPath           id="clip0"%3E          %3Crect             width="1440"             height="2543"             id="rect878"             x="0"             y="0"             style="fill:%23ffffff" /%3E        %3C/clipPath%3E      %3C/defs%3E    %3C/svg%3E\')}}@media (max-width: 550px){.forgotPassword__success-message__background[_ngcontent-%COMP%]{background-color:#739600}}']})}return A})();var Wl=a(82621);let vl=(()=>{class A extends Ws.I1{constructor(f){super(),this.dataAccessService=f}getOptions(f,L){return this.dataAccessService.getFileUploadSupportingImporters().pipe((0,m.U)(V=>{const Xe=[];for(const An of Object.keys(V))Xe.push({label:V[An],value:An});return Xe}))}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(sn.nq))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();const hc=["fileUpload"];function dd(A,Gt){1&A&&(t.TgZ(0,"imx-grid-element",4)(1,"imx-list-no-results"),t._uU(2,"imxplatform.file-upload-importers.no-records"),t.qZA()())}function Fc(A,Gt){if(1&A){const f=t.EpF();t.ynx(0),t.TgZ(1,"div",6)(2,"imx-grid-element",7),t._UZ(3,"imx-base-select",8,9),t.qZA(),t.TgZ(5,"imx-grid-element",7)(6,"div",10)(7,"button",11),t.NdJ("click",function(){t.CHM(f);const V=t.oxw();return t.KtG(V.resetSelectImporter())}),t._uU(8),t.ALo(9,"translate"),t.qZA()()()(),t.BQk()}if(2&A){const f=t.oxw();t.xp6(3),t.Q6J("options",f.importerOptions)("label","imxplatform.file-upload-importers.use-importer")("formControl",f.selectedImporterForm),t.xp6(4),t.Q6J("disabled",!f.selectedImporter),t.xp6(),t.hij(" ",t.lcZ(9,5,"X")," ")}}function Hl(A,Gt){1&A&&(t.TgZ(0,"div",12),t._uU(1,"imxplatform.file-upload-importers.please-select"),t.qZA())}const uu=A=>({importerName:A});function Y_(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"div",13)(2,"span",14),t._uU(3,"imxplatform.file-upload-importers.upload-for"),t.qZA(),t._uU(4),t.qZA(),t.TgZ(5,"imx-base-upload",15,16),t.NdJ("uploadComplete",function(L){return L}),t.qZA(),t.BQk()),2&A){const f=t.oxw();t.xp6(4),t.AsE(": ",f.selectedImporterName," (",f.selectedImporter,")"),t.xp6(),t.Q6J("type","importerFileUpload")("headerText","imxplatform.file-upload-importers.select-files")("allowedFileTypes",".xls,.csv,.xml,.json,.txt,.zip")("allowMultipleFiles",!0)("showDropZone",!0)("maxFileSize",5e8)("autoUpload",!1)("additionalUploadParams",t.VKq(12,uu,f.selectedImporter))("showHeaderInformation",!1)("showFileDescription",!0)}}let W_=(()=>{class A{constructor(f,L,V){this.importerOptionProviderService=f,this.platformDataAccessService=L,this.changeDetectorRef=V,this.importerOptions=[],this.selectedImporter=null,this.selectedImporterName=null,this.selectedImporterForm=new x.p4,this.destroy$=new $e.xQ}ngOnInit(){this.loadOptions()}loadOptions(){this.importerOptionProviderService.getOptions(null,null).pipe((0,Yr.q)(1)).subscribe(f=>{this.importerOptions=f,this.changeDetectorRef.markForCheck()}),this.selectedImporterForm.valueChanges.pipe((0,tt.R)(this.destroy$)).subscribe(f=>{this.selectImporter(f),this.changeDetectorRef.markForCheck()})}selectImporter(f){this.selectedImporter=f;const L=this.importerOptions.find(V=>V.value===f);L&&(this.selectedImporterName=L.label),this.selectedImporterName=""}resetSelectImporter(){this.selectedImporter=null,this.selectedImporterName=null,this.selectedImporterForm.setValue(null),this.fileUpload.clearInputElement()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(vl),t.Y36(sn.nq),t.Y36(t.sBO))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],viewQuery:function(L,V){if(1&L&&t.Gf(hc,5),2&L){let Xe;t.iGM(Xe=t.CRH())&&(V.fileUpload=Xe.first)}},decls:10,vars:7,consts:[[1,"base-entity-search","list"],[3,"totalNumber","entityResourceKeyPrefix","showCompactToggle","reload"],["noResults",""],[4,"ngIf","ngIfElse"],["lg_w","12","lg_o","0"],["noSelection",""],[1,"fui-select-wrapper"],["lg_w","6","lg_o","0"],[3,"options","label","formControl"],["importerSelect",""],[1,"fui-select-btn-wrapper"],[1,"imx-button","prio2","useButton",3,"disabled","click"],["translate","",1,"fui-selected-header"],[1,"fui-selected-header"],["translate",""],[3,"type","headerText","allowedFileTypes","allowMultipleFiles","showDropZone","maxFileSize","autoUpload","additionalUploadParams","showHeaderInformation","showFileDescription","uploadComplete"],["fileUpload",""]],template:function(L,V){if(1&L&&(t.TgZ(0,"div",0)(1,"imx-list-header",1),t.NdJ("reload",function(){return V.loadOptions()}),t.qZA(),t.TgZ(2,"imx-grid"),t.YNc(3,dd,3,0,"ng-template",null,2,t.W1O)(5,Fc,10,7,"ng-container",3),t.TgZ(6,"imx-grid-element",4),t.YNc(7,Hl,2,0,"ng-template",null,5,t.W1O)(9,Y_,7,14,"ng-container",3),t.qZA()()()),2&L){const Xe=t.MAs(4),An=t.MAs(8);t.xp6(),t.Q6J("totalNumber",V.importerOptions.length)("entityResourceKeyPrefix","imxplatform.file-upload-importers")("showCompactToggle",!1),t.xp6(4),t.Q6J("ngIf",V.importerOptions.length>0)("ngIfElse",Xe),t.xp6(4),t.Q6J("ngIf",V.selectedImporter&&V.selectedImporter.length>0)("ngIfElse",An)}},dependencies:[e.O5,x.JJ,x.oH,Y.Pi,On.M,_n.V,$s.o,Wl.B,Cn._,uo.A,Y.X$],styles:[".imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.base-entity-search[_ngcontent-%COMP%]{padding-bottom:50px;padding-top:50px}.base-entity-search[_ngcontent-%COMP%]   .icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.base-entity-search[_ngcontent-%COMP%]   .selected-size[_ngcontent-%COMP%]{color:#3e3e3e}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}[_nghost-%COMP%]     .p-fileupload-content{max-width:100%!important;width:100%!important;min-height:500px!important;height:500px!important}[_nghost-%COMP%]     .drop-zone-content-wrapper{display:flex;align-items:center;justify-content:center;width:100%!important;height:100%!important}.fui-selected-header[_ngcontent-%COMP%]{background:#f5f5f5;padding:5px;margin-bottom:10px;width:100%}.fui-select-wrapper[_ngcontent-%COMP%]{margin-bottom:30px}.fui-select-btn-wrapper[_ngcontent-%COMP%]{margin-top:23px}"]})}return A})(),E_=(()=>{class A{static#e=this.\u0275fac=function(L){return new(L||A)};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],decls:1,vars:0,consts:[["mode","indeterminate",1,"progress-bar"]],template:function(L,V){1&L&&t._UZ(0,"mat-progress-bar",0)},dependencies:[Ft.pW],styles:[".progress-bar[_ngcontent-%COMP%]{position:relative}"]})}return A})(),mf=(()=>{class A{constructor(f,L,V){this.authenticationService=f,this.router=L,this.imxOAuthService=V,this.destroy$=new $e.xQ}ngOnInit(){this.authenticationService.getAuthenticatedFlag().pipe((0,tt.R)(this.destroy$)).subscribe(f=>{if(console.log("xxx OauthLandingPage authenticated",f),f){const L=sessionStorage.getItem("imxRedirectUrl");if(!L)return this.router.navigate(["dashboard"]);sessionStorage.removeItem("imxRedirectUrl"),this.router.navigateByUrl(L).catch(()=>this.router.navigate(["dashboard"]))}}),this.imxOAuthService&&this.imxOAuthService.loggedOutFlag$.pipe((0,tt.R)(this.destroy$)).subscribe(f=>{console.log("xxx OauthLandingPage loggedOut",f),f&&this.router.navigate(["login"])})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(i.$h),t.Y36(l.F0),t.Y36(i.Dx,8))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],decls:0,vars:0,template:function(L,V){}})}return A})(),Np=(()=>{class A{constructor(f){this.el=f}onInputChange(f){const L=this.el.nativeElement.value;this.el.nativeElement.value=L.toString().trim(),L!==this.el.nativeElement.value&&f.stopPropagation()}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(t.SBq))};static#t=this.\u0275dir=t.lG2({type:A,selectors:[["","trim",""]],hostBindings:function(L,V){1&L&&t.NdJ("input",function(An){return V.onInputChange(An)})}})}return A})();function uf(A,Gt){1&A&&(t.TgZ(0,"div",16),t._UZ(1,"div",17),t.TgZ(2,"p"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"p"),t._uU(6),t.ALo(7,"translate"),t.TgZ(8,"a",18),t._uU(9),t.ALo(10,"translate"),t.qZA()()()),2&A&&(t.xp6(3),t.Oqu(t.lcZ(4,3,"imxplatform.login.error")),t.xp6(3),t.hij("",t.lcZ(7,5,"imxplatform.login.error-hint")," "),t.xp6(3),t.Oqu(t.lcZ(10,7,"imxplatform.login.error-link")))}function z_(A,Gt){1&A&&(t.TgZ(0,"div",19),t._UZ(1,"div",17),t.TgZ(2,"p"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"p"),t._uU(6),t.ALo(7,"translate"),t.qZA()()),2&A&&(t.xp6(3),t.Oqu(t.lcZ(4,2,"site_under_construction.header")),t.xp6(3),t.Oqu(t.lcZ(7,4,"site_under_construction.detail")))}const pf=()=>["../forgot-password"];function Gf(A,Gt){1&A&&(t.TgZ(0,"div",20)(1,"a",21),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&A&&(t.xp6(),t.Q6J("routerLink",t.DdM(4,pf)),t.xp6(),t.Oqu(t.lcZ(3,2,"imxplatform.login.forgot-pw")))}function vh(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"div",22)(1,"div",23)(2,"div",24)(3,"small",25),t._uU(4,"imxplatform.login.or"),t.qZA()(),t.TgZ(5,"button",26),t.NdJ("click",function(){t.CHM(f);const V=t.oxw();return t.KtG(V.processLoginWithOauth())}),t.TgZ(6,"picture",27),t._UZ(7,"source",28)(8,"img",29),t.qZA(),t.TgZ(9,"span",30),t._uU(10),t.ALo(11,"translate"),t.qZA()()()()}if(2&A){const f=Gt.ngIf;t.xp6(10),t.Oqu(t.lcZ(11,1,f))}}let j_=(()=>{class A{constructor(f,L,V,Xe,An,Qo,Dr){this.formBuilder=f,this.authService=L,this.router=V,this.route=Xe,this.userMessageService=An,this.imxenv=Qo,this.imxOAuthService=Dr,this.logger=(0,i.jl)("LoginPage",Kn.H.name),this.showError=!1,this.siteUnderConstruction=!1,this.buildForm(),this.determineConstructionState()}ngOnInit(){const f=this.route.snapshot.queryParams;f.redirectUrl&&(this.redirectUrl=f.redirectUrl),this.authenticatedFlagSubscription=this.authService.getAuthenticatedFlag().subscribe(L=>{L&&(this.redirectUrl?this.router.navigateByUrl(this.redirectUrl).catch(()=>(this.logger.debug("Routing to default page: /"),this.router.navigate(["/"]))):this.router.navigate(["/"]),this.afterSuccessfulAuthentication())})}afterSuccessfulAuthentication(){}determineConstructionState(){this.imxenv.getString(i.x3.PLATFORM_SITE_UNDER_CONSTRUCTION).subscribe(L=>{this.siteUnderConstruction="true"===L})}ngOnDestroy(){this.authenticatedFlagSubscription&&(this.authenticatedFlagSubscription.unsubscribe(),this.authenticatedFlagSubscription=null)}processLogin(){this.showError=!1;const f=this.loginForm.get("username"),L=this.loginForm.get("password");if(f&&L){const V=f.value.toString().trim(),Xe=L.value.toString().trim();this.authService.login(new i.iB(V,Xe)).subscribe(An=>{An.principal instanceof i.DD&&(this.showError=!0)},An=>{this.showError=!0,An instanceof i.DO&&this.userMessageService.showError(An)})}return!1}processLoginWithOauth(){this.redirectUrl?sessionStorage.setItem("imxRedirectUrl",this.redirectUrl):sessionStorage.removeItem("imxRedirectUrl"),this.imxOAuthService.initOAuthLoginFlow()}buildForm(){this.loginForm=this.formBuilder.group({username:["",x.kI.required],password:["",x.kI.required]})}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(x.QS),t.Y36(i.$h),t.Y36(l.F0),t.Y36(l.gz),t.Y36(c.Y),t.Y36(i.Qj),t.Y36(i.Dx,8))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],decls:24,vars:25,consts:[[3,"lg_w","lg_o","md_w","md_o","sm_w","sm_o","ty_w","ty_o"],["id","login","novalidate","",3,"formGroup","ngSubmit"],[1,"login__text"],["translate","",1,"login__text__title"],["translate","",1,"login__text__paragraph"],["class","error-message-login",4,"ngIf"],["class","error-message-login under_construction",4,"ngIf"],[1,"login__inputGroup"],[1,"imx-input-text-default","icon-user"],["type","text","autocomplete","nope","formControlName","username","trim","","autofocus","",3,"placeholder"],[1,"imx-input-text-default","icon-lock"],["type","password","autocomplete","nope","formControlName","password","trim","",3,"placeholder"],[1,"imx-button-wrapper"],["type","submit",1,"imx-button-cta","imx-button","cta",3,"disabled"],["class","login__inputGroup__functions",4,"ngIf"],["class","oauth-group",4,"ngIf"],[1,"error-message-login"],[1,"error-message-login__background"],["href","forgot-password"],[1,"error-message-login","under_construction"],[1,"login__inputGroup__functions"],[1,"login__link",3,"routerLink"],[1,"oauth-group"],[1,"oauth-group__content"],[1,"oauth-group__header"],["translate","",1,"oauth-group__header__text"],[1,"oauth-group__button",3,"click"],["aria-hidden","true",1,"oauth-group__button__icon"],["srcset","assets/discoverSwiss.svg"],["alt","","src","assets/discoverSwiss.svg'"],[1,"oauth-group__button__text"]],template:function(L,V){1&L&&(t.TgZ(0,"imx-grid")(1,"imx-grid-element",0)(2,"form",1),t.NdJ("ngSubmit",function(){return V.processLogin()}),t.TgZ(3,"div",2)(4,"h1",3),t._uU(5,"imxplatform.login.title"),t.qZA(),t.TgZ(6,"p",4),t._uU(7,"imxplatform.login.header"),t.qZA()(),t.YNc(8,uf,11,9,"div",5)(9,z_,8,6,"div",6),t.TgZ(10,"div",7)(11,"label",8),t._UZ(12,"input",9),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"label",10),t._UZ(15,"input",11),t.ALo(16,"translate"),t.qZA(),t.TgZ(17,"div",12)(18,"button",13),t._uU(19),t.ALo(20,"translate"),t.qZA()(),t.YNc(21,Gf,4,5,"div",14),t.qZA()(),t.YNc(22,vh,12,3,"div",15),t.ALo(23,"async"),t.qZA()()),2&L&&(t.xp6(),t.Q6J("lg_w",4)("lg_o",4)("md_w",6)("md_o",3)("sm_w",8)("sm_o",2)("ty_w",10)("ty_o",1),t.xp6(),t.Q6J("formGroup",V.loginForm),t.xp6(6),t.Q6J("ngIf",V.showError&&!V.siteUnderConstruction),t.xp6(),t.Q6J("ngIf",V.siteUnderConstruction),t.xp6(3),t.s9C("placeholder",t.lcZ(13,17,"imxplatform.login.username")),t.xp6(3),t.s9C("placeholder",t.lcZ(16,19,"imxplatform.login.password")),t.xp6(3),t.Q6J("disabled",!V.loginForm.valid),t.xp6(),t.hij(" ",t.lcZ(20,21,"imxplatform.login.button")," "),t.xp6(2),t.Q6J("ngIf",!V.siteUnderConstruction),t.xp6(),t.Q6J("ngIf",t.lcZ(23,23,V.imxOAuthService&&V.imxOAuthService.oAuthBtnLbl$)))},dependencies:[e.O5,x._Y,x.Fj,x.JJ,x.JL,x.sg,x.u,l.rH,Y.Pi,On.M,_n.V,kp.u,kn.F,Np,e.Ov,Y.X$],styles:['#login[_ngcontent-%COMP%]{position:relative;background:transparent;text-align:left}@media (min-width: 551px){#login[_ngcontent-%COMP%]{margin:173px 0 50px;padding-bottom:15px}}@media (max-width: 550px){#login[_ngcontent-%COMP%]{margin:0px calc(-2.2222222222% - 2px);width:calc(100% + 2.2222222222% + 2.2222222222% + 4px);min-height:calc(100vh - 50px);padding-bottom:72px}}.login__text[_ngcontent-%COMP%]{text-align:left}@media (min-width: 551px){.login__text[_ngcontent-%COMP%]{margin:0 0 30px;padding:79px 52px 0}}@media (max-width: 550px){.login__text[_ngcontent-%COMP%]{margin:0 0 20px;padding:200px 0 0}}.login__text__title[_ngcontent-%COMP%]:not(:last-child){margin:0 0 4px}.login__text__title[_ngcontent-%COMP%]:last-child{margin:0}@media (min-width: 901px){.login__text__title[_ngcontent-%COMP%]{font:600 44px/56px Noe Display,Arial,sans-serif;margin-bottom:4px;white-space:nowrap}}@media (min-width: 551px) and (max-width: 900px){.login__text__title[_ngcontent-%COMP%]{font:600 36px/40px Noe Display,Arial,sans-serif;margin-bottom:4px}}@media (max-width: 550px){.login__text__title[_ngcontent-%COMP%]{font:600 36px/40px Noe Display,Arial,sans-serif;margin-bottom:15px;text-align:center}}.login__text__paragraph[_ngcontent-%COMP%]{font:500 14px/1.2142857143 GT Walsheim,Arial,sans-serif;opacity:.75}.login__text__paragraph[_ngcontent-%COMP%]:not(:last-child){margin:0 0 5px}.login__text__paragraph[_ngcontent-%COMP%]:last-child{margin:0}@media (min-width: 551px){.login__text__paragraph[_ngcontent-%COMP%]{text-align:left}}@media (max-width: 550px){.login__text__paragraph[_ngcontent-%COMP%]{text-align:center}}.login__link[_ngcontent-%COMP%]{font:400 14px/1.2142857143 GT Walsheim,Arial,sans-serif;text-decoration:underline}.login__inputGroup[_ngcontent-%COMP%]:not(:last-child){margin:0 0 30px}.login__inputGroup[_ngcontent-%COMP%]:last-child{margin:0}@media (min-width: 1401px){.login__inputGroup[_ngcontent-%COMP%] > .imx-input-text-default[_ngcontent-%COMP%]:not(:last-child){margin:0 0 10px -31px}}@media (max-width: 1400px){.login__inputGroup[_ngcontent-%COMP%] > .imx-input-text-default[_ngcontent-%COMP%]:not(:last-child){margin:0 0 10px}}@media (min-width: 1401px){.login__inputGroup[_ngcontent-%COMP%] > .imx-input-text-default[_ngcontent-%COMP%]:last-child{margin:0 0 0 -31px}}@media (max-width: 1400px){.login__inputGroup[_ngcontent-%COMP%] > .imx-input-text-default[_ngcontent-%COMP%]:last-child{margin:0}}@media (min-width: 551px){.login__inputGroup[_ngcontent-%COMP%]{padding:0 52px}}@media (max-width: 550px){.login__inputGroup[_ngcontent-%COMP%]{padding:0 8px}}.login__inputGroup__functions[_ngcontent-%COMP%]{font:700 13.6px GT Walsheim,Arial,sans-serif}@media (min-width: 551px){.login__inputGroup__functions[_ngcontent-%COMP%]{text-align:left}}@media (max-width: 550px){.login__inputGroup__functions[_ngcontent-%COMP%]{text-align:center}}.imx-input-text-default[_ngcontent-%COMP%]{display:block;padding:15px;border:1px #000000 solid;border-radius:25px;cursor:text}.imx-input-text-default[_ngcontent-%COMP%]:not(:first-child){margin-bottom:20px}.imx-input-text-default[_ngcontent-%COMP%]:before{display:inline-block;vertical-align:sub;width:20px;margin-right:8px;font-family:imx-linearicons!important;font-size:18px;line-height:1em;font-weight:900}@media (min-width: 1401px){.imx-input-text-default[_ngcontent-%COMP%]{min-width:404px}}.imx-input-text-default[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{font:300 17px/20px GT Walsheim,Arial,sans-serif;width:calc(100% - 28px);height:1.25;background:transparent;border:none;border-radius:0;outline:none}.imx-input-text-default[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]::placeholder{color:currentColor;opacity:1}.imx-input-text-default[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:-webkit-autofill, .imx-input-text-default[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:-webkit-autofill:hover, .imx-input-text-default[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:-webkit-autofill:focus, .imx-input-text-default[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:-webkit-autofill:active{-webkit-box-shadow:0 0 0 30px #eefafa inset!important}.imx-button-wrapper[_ngcontent-%COMP%]{display:flex}@media (min-width: 551px){.imx-button-wrapper[_ngcontent-%COMP%]{justify-content:flex-start}}@media (max-width: 550px){.imx-button-wrapper[_ngcontent-%COMP%]{justify-content:center}}.imx-button-cta[_ngcontent-%COMP%]{margin-bottom:20px;cursor:pointer;font:700 14.3157894737px GT Walsheim,Arial,sans-serif;text-transform:uppercase;text-align:center;display:inline-block;padding:14px 10px;border:none;border-radius:0;outline:none;box-shadow:2px 2px 4px #0003}@media (min-width: 1401px){.imx-button-cta[_ngcontent-%COMP%]{min-width:224px}}@media (min-width: 551px) and (max-width: 1400px){.imx-button-cta[_ngcontent-%COMP%]{min-width:224px}}@media (max-width: 550px){.imx-button-cta[_ngcontent-%COMP%]{min-width:167px}}.error-message-login[_ngcontent-%COMP%]{position:relative;margin-bottom:25px}@media (min-width: 551px){.error-message-login[_ngcontent-%COMP%]{padding:15px 52px;text-align:left}}@media (max-width: 550px){.error-message-login[_ngcontent-%COMP%]{padding:15px 0;text-align:center;margin-left:-10px;margin-right:-10px}}.error-message-login.under_construction[_ngcontent-%COMP%]{padding:15px 0}.error-message-login[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{color:#fff;position:relative;z-index:1}.error-message-login[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]:not(:last-child){margin-bottom:5px}@media (min-width: 551px){.error-message-login[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{font:400 16px/22px GT Walsheim,Arial,sans-serif}}@media (max-width: 550px){.error-message-login[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{font:400 14px/18px GT Walsheim,Arial,sans-serif}}.error-message-login[_ngcontent-%COMP%] > p[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{color:#fff}.error-message-login__background[_ngcontent-%COMP%]{background-attachment:fixed;height:100%;left:calc(-50vw + 50%);position:absolute;top:0;width:100vw}@media (min-width: 1401px){.error-message-login__background[_ngcontent-%COMP%]{background-image:url(\'data:image/svg+xml;charset=UTF-8,   %3Csvg   xmlns:dc="http://purl.org/dc/elements/1.1/"   xmlns:cc="http://creativecommons.org/ns%23"   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns%23"   xmlns:svg="http://www.w3.org/2000/svg"   xmlns="http://www.w3.org/2000/svg"   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"   width="10221"   height="19894"   viewBox="0 0 10221 19894"   fill="none"   version="1.1"   id="svg869"   sodipodi:docname="platformLoginBG_lg_red.svg"   inkscape:version="0.92.3 (2405546, 2018-03-11)"%3E  %3Cmetadata     id="metadata873"%3E    %3Crdf:RDF%3E      %3Ccc:Work         rdf:about=""%3E        %3Cdc:format%3Eimage/svg+xml%3C/dc:format%3E        %3Cdc:type           rdf:resource="http://purl.org/dc/dcmitype/StillImage" /%3E        %3Cdc:title%3E%3C/dc:title%3E      %3C/cc:Work%3E    %3C/rdf:RDF%3E  %3C/metadata%3E  %3Csodipodi:namedview     pagecolor="%23ffffff"     bordercolor="%23666666"     borderopacity="1"     objecttolerance="10"     gridtolerance="10"     guidetolerance="10"     inkscape:pageopacity="0"     inkscape:pageshadow="2"     inkscape:window-width="1920"     inkscape:window-height="1001"     id="namedview871"     showgrid="false"     inkscape:zoom="0.22975461"     inkscape:cx="1999.5926"     inkscape:cy="18701.942"     inkscape:window-x="-9"     inkscape:window-y="-9"     inkscape:window-maximized="1"     inkscape:current-layer="g862" /%3E  %3Cg     clip-path="url(%23clip0)"     id="g862"%3E    %3Cpath       d="M364.317 417.198L10221 19894L10221 134.003L508.611 134.004L364.317 417.198Z"       fill="%23EEFAFA"       id="path852"       style="fill:%2396172e;fill-opacity:1" /%3E  %3C/g%3E  %3Cdefs     id="defs867"%3E    %3CclipPath       id="clip0"%3E      %3Crect         width="10221"         height="19894"         fill="white"         id="rect864" /%3E    %3C/clipPath%3E  %3C/defs%3E%3C/svg%3E\')}}@media (min-width: 551px) and (max-width: 1400px){.error-message-login__background[_ngcontent-%COMP%]{background-image:url(\'data:image/svg+xml;charset=UTF-8,    %3Csvg       xmlns:dc="http://purl.org/dc/elements/1.1/"       xmlns:cc="http://creativecommons.org/ns%23"       xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns%23"       xmlns:svg="http://www.w3.org/2000/svg"       xmlns="http://www.w3.org/2000/svg"       xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"       xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"       width="17447.596"       height="43221.109"       viewBox="0 0 17447.596 43221.109"       version="1.1"       id="svg883"       sodipodi:docname="platformLoginBG_md_red.svg"       style="fill:none"       inkscape:version="0.92.3 (2405546, 2018-03-11)"%3E      %3Cmetadata         id="metadata887"%3E        %3Crdf:RDF%3E          %3Ccc:Work             rdf:about=""%3E            %3Cdc:format%3Eimage/svg+xml%3C/dc:format%3E            %3Cdc:type               rdf:resource="http://purl.org/dc/dcmitype/StillImage" /%3E            %3Cdc:title /%3E          %3C/cc:Work%3E        %3C/rdf:RDF%3E      %3C/metadata%3E      %3Csodipodi:namedview         pagecolor="%23ffffff"         bordercolor="%23666666"         borderopacity="1"         objecttolerance="10"         gridtolerance="10"         guidetolerance="10"         inkscape:pageopacity="0"         inkscape:pageshadow="2"         inkscape:window-width="1920"         inkscape:window-height="1001"         id="namedview885"         showgrid="false"         fit-margin-top="0"         fit-margin-left="0"         fit-margin-right="-100"         fit-margin-bottom="0"         inkscape:zoom="0.04"         inkscape:cx="10398.638"         inkscape:cy="34807.927"         inkscape:window-x="-9"         inkscape:window-y="-9"         inkscape:window-maximized="1"         inkscape:current-layer="g876" /%3E      %3Cg         clip-path="url(%23clip0)"         id="g876"         transform="matrix(17.402589,0,0,17.402589,0,1.1588789)"         style="stroke-width:0.05746271"%3E        %3Cpath           d="M -161.98331,555.91728 1488.3326,3817.2898 V 121.415 H 59.405562 Z"           id="path866"           inkscape:connector-curvature="0"           style="fill:%2396172e;stroke-width:0.00330195;fill-opacity:1" /%3E        %3Cpath           d="M -20.09226,-0.06659233 -28.731357,16.888578 V -0.06659233 Z"           id="path868"           inkscape:connector-curvature="0"           style="fill:%230a2663;stroke-width:0.00330196" /%3E        %3Cpath           d="M -28.731357,95.500028 19.962291,-0.06659233 H 60.256103 L -28.731357,174.58133 Z"           id="path870"           inkscape:connector-curvature="0"           style="fill:%230a2663;stroke-width:0.00330196" /%3E        %3Cpath           d="m -28.731357,16.653638 8.519391,-16.72023033 H 20.081921 L -28.731357,95.734708 Z"           id="path872"           inkscape:connector-curvature="0"           style="fill:%2300faa5;stroke-width:0.00330196" /%3E        %3Cpath           d="M -28.731357,174.34691 60.136727,-0.06659233 H 100.43054 L -28.731357,253.42795 Z"           id="path874"           inkscape:connector-curvature="0"           style="fill:%2300faa5;stroke-width:0.00330196" /%3E      %3C/g%3E      %3Cdefs         id="defs881"%3E        %3CclipPath           id="clip0"%3E          %3Crect             width="1440"             height="2543"             id="rect878"             x="0"             y="0"             style="fill:%23ffffff" /%3E        %3C/clipPath%3E      %3C/defs%3E    %3C/svg%3E\');background-size:cover}}@media (max-width: 550px){.error-message-login__background[_ngcontent-%COMP%]{background-color:#96172e;background-size:cover}}']})}return A})();var Yg=a(13236);let Jf=(()=>{class A{static#e=this.\u0275fac=function(L){return new(L||A)};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],decls:8,vars:0,consts:[[1,"center"],["href","/"]],template:function(L,V){1&L&&(t.TgZ(0,"div",0)(1,"h1"),t._uU(2,"403 - Not Authorized"),t.qZA(),t.TgZ(3,"p"),t._uU(4,"Leider haben Sie keine Berechtigung f\xfcr diese Seite."),t.qZA(),t.TgZ(5,"p")(6,"a",1),t._uU(7,"Zur Startseite"),t.qZA()()())},dependencies:[kn.F],styles:[".center[_ngcontent-%COMP%]{width:100%;text-align:center}"]})}return A})(),wg=(()=>{class A{static#e=this.\u0275fac=function(L){return new(L||A)};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-page-not-found"]],decls:8,vars:0,consts:[[1,"center"],["href","/"]],template:function(L,V){1&L&&(t.TgZ(0,"div",0)(1,"h1"),t._uU(2,"404 - Not Found"),t.qZA(),t.TgZ(3,"p"),t._uU(4,"Leider konnten wir die angeforderte Seite nicht finden."),t.qZA(),t.TgZ(5,"p")(6,"a",1),t._uU(7,"Zur Startseite"),t.qZA()()())},dependencies:[kn.F],styles:[".center[_ngcontent-%COMP%]{width:100%;text-align:center}"]})}return A})();function Wg(A,Gt){1&A&&t.GkF(0)}function rx(A,Gt){1&A&&t.GkF(0)}function ax(A,Gt){1&A&&t.GkF(0)}function sx(A,Gt){if(1&A&&t._UZ(0,"imx-form-control",6),2&A){const f=Gt.$implicit,L=t.oxw();t.Q6J("field",L.data.formHandler.formConfiguration.findFormFieldById(f))("control",L.data.formRow.get(f))("form",L.data.formRow)("formHandler",L.data.formHandler)("config",L.data.formHandler.formConfiguration)}}const lx=()=>({$implicit:"id"}),bh=()=>({$implicit:"name"}),r1=()=>({$implicit:"actions"});let cx=(()=>{class A{constructor(f){this.data=f,this.actionFormControl=new x.p4}ngOnInit(){this.actionFormControl=this.data.formRow.get("actions")}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(ae.WI))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],decls:9,vars:15,consts:[["dialogType","form",3,"heading","icon","submitButtonLabel","submitButtonDisabled","cancelButtonLabel"],["id","permission-mgmt-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["imxFormControl",""],[3,"field","control","form","formHandler","config"]],template:function(L,V){if(1&L&&(t.TgZ(0,"imx-dialog",0)(1,"form",1)(2,"div",2)(3,"div",3),t.YNc(4,Wg,1,0,"ng-container",4)(5,rx,1,0,"ng-container",4)(6,ax,1,0,"ng-container",4),t.qZA()()()(),t.YNc(7,sx,1,5,"ng-template",null,5,t.W1O)),2&L){const Xe=t.MAs(8);t.Q6J("heading","imxplatform.permission-mgmt.dialog.header")("icon","icon-lock")("submitButtonLabel","imxplatform.dialog.common-confirm")("submitButtonDisabled",V.data.formRow.invalid||V.data.formRow.pristine)("cancelButtonLabel","imxplatform.dialog.common-close"),t.xp6(),t.Q6J("formGroup",V.data.formRow),t.xp6(3),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(12,lx)),t.xp6(),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(13,bh)),t.xp6(),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(14,r1))}},dependencies:[e.tP,x._Y,x.JL,x.sg,Qt.a,ee.A],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.permission-dialog-textarea[_ngcontent-%COMP%]{box-sizing:border-box;width:100%}"]})}return A})();var a1=a(77099),gd=a(32961);const zg=new Jr.E([(0,gd.sI)("Permission"),new Gr.II("text","name","imxplatform.permission-mgmt.filter.name"),new Gr.II("text","actions","imxplatform.permission-mgmt.filter.actions")]);let Ch=(()=>{class A extends _r.z{constructor(f,L,V,Xe){super(zg,void 0,f,L,Xe),this.runtimeContextService=L,this.imxSecurityManagerService=V}getEntityType(){return"Permission"}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(Qe.EG),t.LFG(i.Ze),t.LFG(i.Xh),t.LFG(i.H1))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();var dx=a(7106);const zl=new Jr.E([new Gr.II("number","id","entity.DataObject.id",{required:!1,readonly:!0}),new Gr.II("text","name","entity.Permission.name",{required:!0,extendedValidators:x.kI.pattern("^A_(.)*"),hint:"imxplatform.permission-mgmt.dialog.name-hint"}),new dx.U("actions","entity.Permission.actions")]);let yh=(()=>{class A extends _r.z{constructor(f,L,V,Xe){super(zl,void 0,f,L,Xe),this.runtimeContextService=L,this.imxSecurityManagerService=V,this.formatterService=Xe}getEntityType(){return"Permission"}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(Qe.EG),t.LFG(i.Ze),t.LFG(i.Xh),t.LFG(i.H1))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();function Oh(A,Gt){if(1&A&&(t.TgZ(0,"form",1)(1,"div",2),t._UZ(2,"input",3),t.TgZ(3,"imx-grid")(4,"imx-grid-element",4),t._UZ(5,"imx-form-control",5),t.qZA(),t.TgZ(6,"imx-grid-element",4),t._UZ(7,"imx-form-control",5),t.qZA(),t.TgZ(8,"imx-grid-element",4),t._UZ(9,"imx-form-control",5),t.qZA()()()()),2&A){const f=t.oxw();t.Q6J("formGroup",f.parentForm),t.xp6(4),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("id"))("control",f.formHandler.formGroup.get("id"))("form",f.formHandler.formGroup.get("id"))("formHandler",f.formHandler)("config",f.formHandler.formConfiguration),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("name"))("control",f.formHandler.formGroup.get("name"))("form",f.formHandler.formGroup.get("name"))("formHandler",f.formHandler)("config",f.formHandler.formConfiguration),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("actions"))("control",f.formHandler.formGroup.get("actions"))("form",f.formHandler.formGroup.get("actions"))("formHandler",f.formHandler)("config",f.formHandler.formConfiguration)}}let eg=(()=>{class A extends qr.O{constructor(){super(),this.id="PERMISSION_MGMT_FILTER",this.titleKey="imxplatform.common-entity.filter.commonFilter.header",this.icon="icon-lock",this.filterFields=["id","name","actions"]}static#e=this.\u0275fac=function(L){return new(L||A)};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-permission-mgmt-filter-panel"]],hostAttrs:[1,"imx-permission-mgmt-filter-panel"],features:[t._Bn([(0,qr.T)(A)]),t.qOj],decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"filter__card"],["type","text","name","id",2,"display","none"],[3,"lg_w","sm_w"],[3,"field","control","form","formHandler","config"]],template:function(L,V){1&L&&t.YNc(0,Oh,10,22,"form",0),2&L&&t.Q6J("ngIf",V.panelShown)},dependencies:[e.O5,x._Y,x.JL,x.sg,On.M,_n.V,ee.A],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}"]})}return A})();function te(A,Gt){if(1&A&&t._UZ(0,"imx-permission-mgmt-filter-panel",2,3),2&A){const f=t.oxw();t.Q6J("pinned",!0)("parentForm",f.formHandler.formGroup)("formHandler",f.formHandler)("record",f.record)}}let Pn=(()=>{class A extends Cr.F{constructor(){super()}getEntityName(){return"Permission"}static#e=this.\u0275fac=function(L){return new(L||A)};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-permission-mgmt-filter"]],features:[t.qOj],decls:3,vars:7,consts:[[3,"entityName","filterPanelsTemplate","formHandler","record","orderFields","orderField","orderDirection","orderChanged","save"],["filterPanelsTemplate",""],[3,"pinned","parentForm","formHandler","record"],["persmissionMgmtFilterPanel",""]],template:function(L,V){if(1&L&&(t.TgZ(0,"imx-filter",0),t.NdJ("orderChanged",function(An){return V.orderChanged.emit(An)})("save",function(An){return V.applyFilter.emit(An)}),t.YNc(1,te,2,4,"ng-template",null,1,t.W1O),t.qZA()),2&L){const Xe=t.MAs(2);t.Q6J("entityName","Permission")("filterPanelsTemplate",Xe)("formHandler",V.formHandler)("record",V.record)("orderFields",V.orderFields)("orderField",V.orderField)("orderDirection",V.orderDirection)}},dependencies:[Hi.z,eg]})}return A})();function E(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-create-new-entity-button",10),t.NdJ("create",function(){t.CHM(f);const V=t.oxw();return t.KtG(V.createNewPermission())}),t.qZA()}2&A&&t.Q6J("fireCreateEvent",!0)("entityResourceKeyPrefix","imxplatform.permission-mgmt")}function _e(A,Gt){1&A&&(t.TgZ(0,"imx-list-no-results"),t._uU(1,"imxplatform.permission-mgmt.list.no-records"),t.qZA())}function Me(A,Gt){1&A&&t._UZ(0,"mat-progress-bar",11)}function Ln(A,Gt){if(1&A&&(t.TgZ(0,"th",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&A){const f=Gt.$implicit;t.Udp("width",f.width),t.Q6J("ngClass",f.cssClass),t.xp6(),t.hij(" ",t.lcZ(2,4,f.header)," ")}}function to(A,Gt){if(1&A&&(t.TgZ(0,"tr"),t.YNc(1,Ln,3,6,"th",17),t.qZA()),2&A){const f=t.oxw(3);t.xp6(),t.Q6J("ngForOf",f.columnDefinitions)}}function ha(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-action-menu-item",25),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(3).$implicit,Xe=t.oxw(3);return t.KtG(Xe.editPermission(V))}),t._uU(1,"imxplatform.common-entity.list.edit"),t.qZA()}}function zs(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-action-menu-item",26),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(3).$implicit,Xe=t.oxw(3);return t.KtG(Xe.deletePermission(V))}),t._uU(1,"imxplatform.common-entity.list.remove"),t.qZA()}}function cc(A,Gt){if(1&A&&(t.TgZ(0,"imx-dropup-button")(1,"imx-action-menu"),t.YNc(2,ha,2,0,"imx-action-menu-item",23)(3,zs,2,0,"imx-action-menu-item",24),t.qZA()()),2&A){const f=t.oxw(5);t.xp6(2),t.Q6J("hasAnyPermission",f.imxPermissions.F_PERMISSION_MANAGEMENT_UPDATE.name),t.xp6(),t.Q6J("hasAnyPermission",f.imxPermissions.F_PERMISSION_MANAGEMENT_DELETE.name)}}function Gl(A,Gt){if(1&A){const f=t.EpF();t.ynx(0),t.TgZ(1,"td")(2,"a",20),t.NdJ("click",function(){t.CHM(f);const V=t.oxw().$implicit,Xe=t.oxw(3);return t.KtG(Xe.editPermission(V))}),t._uU(3),t.qZA()(),t.TgZ(4,"td",21)(5,"a",20),t.NdJ("click",function(){t.CHM(f);const V=t.oxw().$implicit,Xe=t.oxw(3);return t.KtG(Xe.editPermission(V))}),t._uU(6),t.qZA()(),t.TgZ(7,"td",21)(8,"a",20),t.NdJ("click",function(){t.CHM(f);const V=t.oxw().$implicit,Xe=t.oxw(3);return t.KtG(Xe.editPermission(V))}),t._uU(9),t.qZA()(),t.TgZ(10,"td"),t.YNc(11,cc,4,2,"imx-dropup-button",22),t.qZA(),t.BQk()}if(2&A){const f=t.oxw().$implicit,L=t.oxw(3);t.xp6(3),t.hij(" ",f.id," "),t.xp6(),t.Q6J("matTooltip",f.name)("matTooltipShowDelay",500),t.xp6(2),t.hij(" ",f.name," "),t.xp6(),t.Q6J("matTooltip",f.actions)("matTooltipShowDelay",500),t.xp6(2),t.hij(" ",f.actions," "),t.xp6(2),t.Q6J("ngIf",L.hasEditPermission()||L.hasDeletePermission())}}function id(A,Gt){if(1&A&&(t.TgZ(0,"td"),t._uU(1),t.qZA(),t.TgZ(2,"td",21),t._uU(3),t.qZA(),t.TgZ(4,"td",21),t._uU(5),t.qZA(),t._UZ(6,"td")),2&A){const f=t.oxw().$implicit;t.xp6(),t.hij(" ",f.id," "),t.xp6(),t.Q6J("matTooltip",f.name)("matTooltipShowDelay",500),t.xp6(),t.hij(" ",f.name," "),t.xp6(),t.Q6J("matTooltip",f.actions)("matTooltipShowDelay",500),t.xp6(),t.hij(" ",f.actions," ")}}function zd(A,Gt){if(1&A&&(t.TgZ(0,"tr"),t.YNc(1,Gl,12,8,"ng-container",13),t.ALo(2,"async"),t.YNc(3,id,7,7,"ng-template",null,19,t.W1O),t.qZA()),2&A){const f=Gt.$implicit,L=t.MAs(4),V=t.oxw(3);t.xp6(),t.Q6J("ngIf",t.lcZ(2,2,V.editableMap.get(f.id)))("ngIfElse",L)}}function Fm(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"p-table",14),t.YNc(2,to,2,1,"ng-template",15)(3,zd,5,4,"ng-template",16),t.qZA(),t.BQk()),2&A){const f=t.oxw().ngIf;t.xp6(),t.Q6J("value",f.items)("resizableColumns",!0)}}function Lm(A,Gt){if(1&A&&(t.TgZ(0,"div",12),t.YNc(1,Fm,4,2,"ng-container",13),t.qZA()),2&A){const f=Gt.ngIf;t.oxw();const L=t.MAs(8);t.xp6(),t.Q6J("ngIf",f.items.length>0)("ngIfElse",L)}}let Iu=(()=>{class A extends hr.uY{constructor(f,L,V,Xe,An,Qo,Dr,es,Al,Rl,$l,kl,Jl,od,dm,Ku){super(f,L,V,Xe,An,Qo,Dr,es,void 0,Jl,void 0,void 0),this.filterFormHandler=Dr,this.ngControlBuilder=Al,this.imxSecurityManagerService=Rl,this.imxEntitiesMgrService=$l,this.platformMgmtDataAccessService=kl,this.runtimeContextService=od,this.securityManagerService=dm,this.formatterService=Ku,this.imxPermissions=i.uo,this.availableOrderFields=[{index:1,field:"ID",i18n:"entity.DataObject.id",type:an.m.numeric},{index:2,field:"NAME",i18n:"entity.Permission.name",type:an.m.alphanumeric}],this.orderField="ID",this.editableMap=new Map(Array.from({length:99999},(Xh,ex)=>[21e5+ex,(0,u.of)(!0)])),this.columnDefinitions=[{field:"id",header:"entity.Permission.id",width:"70px"},{field:"name",header:"entity.Permission.name",width:"60%"},{field:"actions",header:"entity.Permission.actions",width:"30%"},{field:"action",header:"",width:"5%"}]}beforeLoadRecords(f){super.beforeLoadRecords(f),f.filterPredicates=[(0,Ja.xC)("id"),(0,Ja.FT)("name"),(0,Ja.FT)("actions")],f.sortPredicates=this.getSortPredicates()}getSortPredicates(){const f=new Map;return f.set(this.availableOrderFields.find(L=>"ID"===L.field).field,(L,V)=>L.id-V.id),f.set(this.availableOrderFields.find(L=>"NAME"===L.field).field,(L,V)=>L.name-V.name),f}getEntityName(){return"Permission"}createNewPermission(){this.securityManagerService.hasAnyPermission([this.imxPermissions.F_PERMISSION_MANAGEMENT_CREATE])&&this.showPermissionDialog({id:null,name:"",actions:""},!0)}editPermission(f){this.showPermissionDialog(f)}hasEditPermission(){return this.securityManagerService.hasAnyPermission([this.imxPermissions.F_PERMISSION_MANAGEMENT_UPDATE])}hasDeletePermission(){return this.securityManagerService.hasAnyPermission([this.imxPermissions.F_PERMISSION_MANAGEMENT_DELETE])}showPermissionDialog(f,L=!1){const V=new yh(this.ngControlBuilder,this.runtimeContextService,this.imxSecurityManagerService,this.formatterService);V.baseObject=f,this.dialog.open(cx,{...Qt.D.FORM_BIG,data:{formRow:V.formGroup,formHandler:V}}).afterClosed().subscribe(An=>{if(An){const Qo=V.getBaseObjectCopyWithCurrentFormValues();L?this.platformMgmtDataAccessService.createPermission(Qo).subscribe(()=>{this.recordsOnceLoaded=!1,this.reloadData(),this.userMessageService.showInfo("imxplatform.permission-mgmt.dialog-create.success"),this.imxEntitiesMgrService.refreshEntitiesOfType("Permission")},Dr=>{this.userMessageService.showError(Dr||"imxplatform.permission-mgmt.dialog-create.failure")}):this.platformMgmtDataAccessService.updatePermission(Qo).subscribe(()=>{this.recordsOnceLoaded=!1,this.reloadData(),this.userMessageService.showInfo("imxplatform.permission-mgmt.dialog-edit.success"),this.imxEntitiesMgrService.refreshEntitiesOfType("Permission")},Dr=>{this.userMessageService.showError(Dr||"imxplatform.permission-mgmt.dialog-edit.failure")})}})}deletePermission(f){this.dialog.open(Pd.F,{...Qt.D.FORM_SMALL,data:{i18n:"imxplatform.permission-mgmt.list.action.delete.confirm",dialogTitle:"imxplatform.permission-mgmt.list.action.delete.header",objectId:f.id}}).afterClosed().subscribe(V=>{V&&this.platformMgmtDataAccessService.deletePermission(f.id).subscribe(()=>{this.recordsOnceLoaded=!1,this.reloadData(),this.userMessageService.showInfo("imxplatform.permission-mgmt.dialog-delete.success")},Xe=>{this.userMessageService.showError(Xe||"imxplatform.permission-mgmt.dialog-delete.failure")})})}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(a1.c),t.Y36(l.F0),t.Y36(l.gz),t.Y36(c.Y),t.Y36(Wi.G),t.Y36(ae.uw),t.Y36(Ch),t.Y36(sn.nq),t.Y36(Qe.EG),t.Y36(i.Xh),t.Y36(i.qB),t.Y36(mr.Q),t.Y36(Wr.Q),t.Y36(i.Ze),t.Y36(i.Xh),t.Y36(i.H1))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],features:[t.qOj],decls:14,vars:16,consts:[[1,"base-entity-search","list"],[3,"formHandler","record","orderFields","orderField","orderDirection","orderChanged","applyFilter","resetFilter"],[3,"totalNumber","entityResourceKeyPrefix","showCompactToggle","reload"],["list-header-button-row",""],[3,"fireCreateEvent","entityResourceKeyPrefix","create",4,"hasAnyPermission"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],["class","table-wrapper",4,"ngIf","ngIfElse"],[3,"disableAllSelection","paging","selection","pageChanged","selectAll"],[3,"fireCreateEvent","entityResourceKeyPrefix","create"],["mode","indeterminate"],[1,"table-wrapper"],[4,"ngIf","ngIfElse"],[1,"imx-datatable",3,"value","resizableColumns"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",3,"ngClass"],["readonly",""],[1,"txt-link",3,"click"],[3,"matTooltip","matTooltipShowDelay"],[4,"ngIf"],["icon","icon-pencil",3,"click",4,"hasAnyPermission"],["icon","icon-trash","additionalStyle","delete",3,"click",4,"hasAnyPermission"],["icon","icon-pencil",3,"click"],["icon","icon-trash","additionalStyle","delete",3,"click"]],template:function(L,V){if(1&L&&(t.TgZ(0,"div",0)(1,"imx-permission-mgmt-filter",1),t.NdJ("orderChanged",function(An){return V.sort(An)})("applyFilter",function(An){return V.search(An)})("resetFilter",function(){return V.reset()}),t.qZA(),t.TgZ(2,"imx-list-header",2),t.NdJ("reload",function(){return V.reloadComplete()}),t.ynx(3,3),t.YNc(4,E,1,2,"imx-create-new-entity-button",4),t.BQk(),t.qZA(),t.TgZ(5,"imx-grid")(6,"imx-grid-element",5),t.YNc(7,_e,2,0,"ng-template",null,6,t.W1O)(9,Me,1,0,"ng-template",null,7,t.W1O)(11,Lm,2,2,"div",8),t.ALo(12,"async"),t.qZA()(),t.TgZ(13,"imx-list-footer",9),t.NdJ("pageChanged",function(An){return V.onPageChanged(An)})("selectAll",function(An){return V.onSelectAll(An)}),t.qZA()()),2&L){const Xe=t.MAs(10);t.xp6(),t.Q6J("formHandler",V.filterFormHandler)("record",V.filter)("orderFields",V.availableOrderFields)("orderField",V.orderField)("orderDirection",V.orderDirection),t.xp6(),t.Q6J("totalNumber",null==V.currentResult?null:V.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxplatform.permission-mgmt")("showCompactToggle",!1),t.xp6(2),t.Q6J("hasAnyPermission",V.imxPermissions.F_PERMISSION_MANAGEMENT_CREATE.name),t.xp6(7),t.Q6J("ngIf",t.lcZ(12,14,V.results))("ngIfElse",Xe),t.xp6(2),t.Q6J("disableAllSelection",!0)("paging",V.pagingModel)("selection",V.selectionModel)}},dependencies:[e.mk,e.sg,e.O5,Ft.pW,qi.gM,wi.iA,zo.jx,wi.Q7,xi.p,ki.z,wo.t,On.M,_n.V,jo.N,Cn._,uo.A,yl.E,Pn,yr.R,kn.F,e.Ov,Y.X$],styles:[".imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.base-entity-search[_ngcontent-%COMP%]{padding-bottom:50px;padding-top:50px}.base-entity-search[_ngcontent-%COMP%]   .icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.base-entity-search[_ngcontent-%COMP%]   .selected-size[_ngcontent-%COMP%]{color:#3e3e3e}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}"]})}return A})();var Su=a(89051),K_=a(65486),jg=a(51419),Dg=a(55417);const s1=new Jr.E([new Gr.II("text","entityIds","imxplatform.contact-list-mgmt.filter.entityIds",{extractor:(0,wr.YL)("entityIds"),insertor:(0,ir.wq)("entityIds"),extendedValidators:x.kI.pattern("^[0-9]*$")}),new ts.P("contactPurposeId","entity.EntityListContact.contactPurpose",{extractor:(0,wr.YL)("contactPurposeId"),insertor:(0,ir.wq)("contactPurposeId"),optionProvider:Dg.Q,initialValue:-1,placeholder:"imxplatform.contact-list-mgmt.filter.contact-purpose-placeholder"}),new ts.P("entityTypes","imxplatform.contact-list-mgmt.filter.entityTypes",{optionProvider:[{value:"Addressbase",label:"entity.Addressbase.entityName"},{value:"Offer",label:"entity.Offer.entityName"},{value:"Event",label:"entity.Event.entityName"},{value:"Article",label:"entity.Article.entityName"}],placeholder:"imxplatform.contact-list-mgmt.filter.entity-types-placeholder",initialValue:-1,extractor:(0,wr.YL)("entityTypes"),insertor:(0,ir.wq)("entityTypes")})]);let l1=(()=>{class A extends _r.z{constructor(f,L,V,Xe){super(s1,void 0,f,L,Xe),this.runtimeContextService=L,this.imxSecurityManagerService=V}getEntityType(){return"ContactList"}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(Qe.EG),t.LFG(i.Ze),t.LFG(i.Xh),t.LFG(i.H1))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();var mx=a(48485);function kv(A,Gt){if(1&A&&(t.TgZ(0,"form",1)(1,"div",2)(2,"imx-grid")(3,"imx-grid-element",3),t._UZ(4,"imx-form-control",4),t.qZA(),t.TgZ(5,"imx-grid-element",3),t._UZ(6,"imx-form-control",4),t.qZA(),t.TgZ(7,"imx-grid-element",3),t._UZ(8,"imx-form-control",4),t.qZA()()()()),2&A){const f=t.oxw();t.Q6J("formGroup",f.parentForm),t.xp6(3),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("entityIds"))("control",f.formHandler.formGroup.get("entityIds"))("form",f.formHandler.formGroup.get("entityIds"))("formHandler",f.formHandler)("config",f.formHandler.formConfiguration),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("contactPurposeId"))("control",f.formHandler.formGroup.get("contactPurposeId"))("form",f.formHandler.formGroup.get("contactPurposeId"))("formHandler",f.formHandler)("config",f.formHandler.formConfiguration),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("entityTypes"))("control",f.formHandler.formGroup.get("entityTypes"))("form",f.formHandler.formGroup.get("entityTypes"))("formHandler",f.formHandler)("config",f.formHandler.formConfiguration)}}let __=(()=>{class A extends qr.O{constructor(){super(),this.id="CONTACT_LIST_MGMT_FILTER",this.titleKey="imxplatform.common-entity.filter.commonFilter.header",this.icon="icon-reference-list",this.filterFields=["entityIds","contactPurposeId","entityTypes"]}static#e=this.\u0275fac=function(L){return new(L||A)};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-contact-list-mgmt-filter-panel"]],features:[t._Bn([(0,qr.T)(A)]),t.qOj],decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"filter__card"],[3,"lg_w","sm_w"],[3,"field","control","form","formHandler","config"]],template:function(L,V){1&L&&t.YNc(0,kv,9,22,"form",0),2&L&&t.Q6J("ngIf",V.panelShown)},dependencies:[e.O5,x._Y,x.JL,x.sg,On.M,_n.V,ee.A],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}"]})}return A})();function Nv(A,Gt){if(1&A&&t._UZ(0,"imx-contact-list-mgmt-filter-panel",2,3),2&A){const f=t.oxw();t.Q6J("pinned",!0)("parentForm",f.formHandler.formGroup)("formHandler",f.formHandler)("record",f.record)}}let Uv=(()=>{class A extends Cr.F{constructor(){super()}getEntityName(){return"ContactList"}static#e=this.\u0275fac=function(L){return new(L||A)};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-contact-list-mgmt-filter"]],features:[t.qOj],decls:3,vars:7,consts:[[3,"entityName","filterPanelsTemplate","formHandler","record","orderFields","orderField","orderDirection","orderChanged","save"],["filterPanelsTemplate",""],[3,"pinned","parentForm","formHandler","record"],["contactListMgmtFilterPanel",""]],template:function(L,V){if(1&L&&(t.TgZ(0,"imx-filter",0),t.NdJ("orderChanged",function(An){return V.orderChanged.emit(An)})("save",function(An){return V.applyFilter.emit(An)}),t.YNc(1,Nv,2,4,"ng-template",null,1,t.W1O),t.qZA()),2&L){const Xe=t.MAs(2);t.Q6J("entityName","ContactList")("filterPanelsTemplate",Xe)("formHandler",V.formHandler)("record",V.record)("orderFields",V.orderFields)("orderField",V.orderField)("orderDirection",V.orderDirection)}},dependencies:[Hi.z,__]})}return A})();var c1=a(80617);function ux(A,Gt){1&A&&(t.TgZ(0,"imx-list-no-results"),t._uU(1,"imxplatform.contact-list-mgmt.list.no-records"),t.qZA())}function d1(A,Gt){1&A&&t._UZ(0,"mat-progress-bar",9)}function Bv(A,Gt){if(1&A&&(t.TgZ(0,"th",16)(1,"span",17),t.ALo(2,"translate"),t._uU(3),t.ALo(4,"translate"),t.qZA()()),2&A){const f=Gt.$implicit;t.Udp("width",f.width),t.Q6J("ngClass",f.cssClass),t.xp6(),t.Q6J("matTooltip",t.lcZ(2,6,f.header))("matTooltipShowDelay",500),t.xp6(2),t.Oqu(t.lcZ(4,8,f.header))}}function Zv(A,Gt){if(1&A&&(t.TgZ(0,"tr"),t.YNc(1,Bv,5,10,"th",15),t.qZA()),2&A){const f=t.oxw(3);t.xp6(),t.Q6J("ngForOf",f.columnDefinitions)}}function Hv(A,Gt){1&A&&t._UZ(0,"span",30)}function m1(A,Gt){1&A&&t._UZ(0,"span",31)}function Gv(A,Gt){if(1&A&&t.YNc(0,Hv,1,0,"span",29)(1,m1,1,0),2&A){const f=t.oxw().$implicit,L=t.oxw(3);t.um2(0,L.isManuallySorted(f)?0:1)}}function Jv(A,Gt){1&A&&(t.TgZ(0,"span",23),t._uU(1,"n/a"),t.qZA())}function px(A,Gt){1&A&&t._UZ(0,"span",30)}function Qv(A,Gt){1&A&&t._UZ(0,"span",31)}function Vv(A,Gt){if(1&A&&t.YNc(0,px,1,0,"span",29)(1,Qv,1,0),2&A){const f=t.oxw().$implicit,L=t.oxw(3);t.um2(0,L.isStaticEntityList(f)?0:1)}}function Yv(A,Gt){1&A&&(t.TgZ(0,"span",23),t._uU(1,"n/a"),t.qZA())}function Wv(A,Gt){1&A&&t._uU(0," imxplatform.contact-list-mgmt.list.action.edit.title ")}function zv(A,Gt){1&A&&t._uU(0," imxplatform.contact-list-mgmt.list.action.sort.title ")}const _f=A=>({selected:A});function _x(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"tr",18)(1,"td",19)(2,"mat-checkbox",20),t.NdJ("change",function(V){t.CHM(f);const Xe=t.oxw(3);return t.KtG(Xe.onSelectionChanged(V))}),t.qZA()(),t.ynx(3),t.TgZ(4,"td")(5,"span",21),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3);return t.KtG(An.openHolder(Xe))}),t._uU(6),t.qZA()(),t.TgZ(7,"td")(8,"span",21),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3);return t.KtG(An.openHolder(Xe))}),t._uU(9),t.qZA()(),t.TgZ(10,"td")(11,"span",21),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3);return t.KtG(An.openHolder(Xe))}),t._uU(12),t.qZA()(),t.TgZ(13,"td")(14,"imx-tooltip",22)(15,"span",23),t._uU(16),t.qZA()()(),t.TgZ(17,"td")(18,"span",24),t._uU(19),t.ALo(20,"date"),t.ALo(21,"convertTimestamps"),t.qZA()(),t.TgZ(22,"td")(23,"span",23),t._uU(24),t.qZA()(),t.TgZ(25,"td")(26,"span",23),t._uU(27),t.ALo(28,"translate"),t.qZA()(),t.TgZ(29,"td"),t.YNc(30,Gv,2,1)(31,Jv,2,0),t.qZA(),t.TgZ(32,"td"),t.YNc(33,Vv,2,1)(34,Yv,2,0),t.qZA(),t.TgZ(35,"td")(36,"imx-dropup-button")(37,"imx-action-menu")(38,"imx-action-menu-item",25),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3);return t.KtG(An.openHolder(Xe))}),t._uU(39," imxplatform.contact-list-mgmt.list.action.open-object "),t.qZA(),t.TgZ(40,"imx-action-menu-item",26),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3);return t.KtG(An.openListInNewTab(Xe))}),t._uU(41," imxplatform.contact-list-mgmt.list.action.follow-list "),t.qZA(),t.TgZ(42,"imx-action-menu-item",27),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3);return t.KtG(An.editContactList(Xe))}),t.YNc(43,Wv,1,0)(44,zv,1,0),t.qZA(),t.TgZ(45,"imx-action-menu-item",28),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3);return t.KtG(An.removeList(Xe))}),t._uU(46," imxplatform.common-entity.list.remove "),t.qZA()()()(),t.BQk(),t.qZA()}if(2&A){const f=Gt.$implicit,L=t.oxw(3);t.Q6J("ngClass",t.VKq(22,_f,L.isItemSelected(f.entityListId))),t.xp6(2),t.Q6J("value",f.entityListId)("checked",L.isItemSelected(f.id)),t.xp6(4),t.hij(" ",f.entityListId," "),t.xp6(3),t.hij(" ",f.holderId," "),t.xp6(3),t.hij(" ",f.holderTitle," "),t.xp6(2),t.Q6J("tooltipText",f.entityListListInfoClient)("offset",2e3),t.xp6(2),t.hij(" ",f.entityListName," "),t.xp6(3),t.hij(" ",t.xi3(20,15,t.lcZ(21,18,f.entityListLastChangeDate),"dd.MM.yyyy - HH:mm")," "),t.xp6(5),t.hij(" ",f.contactPurpose," "),t.xp6(3),t.hij(" ",t.lcZ(28,20,"entity."+f.entityListEntityType+".entityName")," "),t.xp6(3),t.um2(30,f.entityListListInfoClient?30:31),t.xp6(3),t.um2(33,f.entityListListInfoClient?33:34),t.xp6(10),t.um2(43,L.isStaticEntityList(f)?43:44)}}function jv(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"p-table",12),t.YNc(2,Zv,2,1,"ng-template",13)(3,_x,47,24,"ng-template",14),t.qZA(),t.BQk()),2&A){const f=t.oxw().ngIf;t.xp6(),t.Q6J("value",f.items)("resizableColumns",!0)}}function Kv(A,Gt){if(1&A&&(t.TgZ(0,"div",10),t.YNc(1,jv,4,2,"ng-container",11),t.qZA()),2&A){const f=Gt.ngIf;t.oxw();const L=t.MAs(6);t.xp6(),t.Q6J("ngIf",f.items.length>0)("ngIfElse",L)}}function u1(A,Gt){if(1&A&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"span",35),t._uU(4),t.qZA()(),t._UZ(5,"span",36)),2&A){const f=t.oxw(2);t.xp6(),t.hij("",t.lcZ(2,2,"imxplatform.common-entity.list.selected-items")," "),t.xp6(3),t.hij("(",null==f.selectedIds?null:f.selectedIds.size,")")}}function p1(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-dropup-button",32),t.YNc(1,u1,6,4,"ng-template",33),t.TgZ(2,"imx-action-menu")(3,"imx-action-menu-item",34),t.NdJ("actionClicked",function(){t.CHM(f);const V=t.oxw();return t.KtG(V.removeAllSelectedLists())}),t._uU(4),t.ALo(5,"translate"),t.qZA()()()}2&A&&(t.xp6(4),t.hij(" ",t.lcZ(5,1,"imxplatform.contact-list-mgmt.list.action.remove.batch")," "))}let Ph=(()=>{class A extends hr.uY{static entityTypeToPrefix(f){return f.toLowerCase()+"s"}constructor(f,L,V,Xe,An,Qo,Dr,es,Al,Rl,$l,kl,Jl,od,dm,Ku){super(f,L,V,Xe,An,Qo,Dr,es,void 0,Rl,void 0,Jl,{}),this.filterFormHandler=Dr,this.imxEntitiesMgrService=Al,this.runtimeContextService=$l,this.securityManagerService=kl,this.contactListDeleteAction=od,this.coreEntityService=dm,this.entityPermissionServiceRegistry=Ku,this.imxPermissions=i.uo,this.availableOrderFields=[{index:1,field:"HOLDERID",i18n:"imxplatform.common-entity.list.sort.id",type:an.m.numeric},{index:2,field:"HOLDERTITLE",i18n:"imxplatform.common-entity.list.action.references.column-title",type:an.m.alphanumeric}],this.orderField="HOLDERID",this.columnDefinitions=[{field:"select",header:"",width:"40px",cssClass:"select-column"},{field:"id",header:"imxplatform.contact-list-mgmt.list.columns.id",width:"70px"},{field:"holderId",header:"imxplatform.contact-list-mgmt.list.columns.holderId",width:"70px"},{field:"title",header:"imxplatform.contact-list-mgmt.list.columns.title",width:"20%"},{field:"name",header:"imxplatform.contact-list-mgmt.list.columns.name",width:"20%"},{field:"lastChangeTime",header:"imxplatform.contact-list-mgmt.list.columns.lastChangeTime",width:"15%"},{field:"contactPurpose",header:"entity.EntityListContact.contactPurpose",width:"15%"},{field:"entityType",header:"entity.EntityList.entityType",width:"10%"},{field:"manuallySorted",header:"imxplatform.contact-list-mgmt.list.columns.manuallySorted",width:"10%"},{field:"idList",header:"imxplatform.contact-list-mgmt.list.columns.idList",width:"10%"},{field:"action",header:"",width:"5%",cssClass:"action-column"}]}getEntityName(){return"ContactList"}openHolder(f){const L=f.holderId,Xe=this.router.serializeUrl(this.router.createUrlTree(["/"+A.entityTypeToPrefix(f.holderType),"edit",L],{fragment:"references"}));window.open(this.getBaseUrl()+Xe,"_blank")}isManuallySorted(f){return!!f.entityListListInfoClient&&(0,i.$R)(f.entityListListInfoClient)}isStaticEntityList(f){return!!f.entityListListInfoClient&&(0,i.tq)(f.entityListListInfoClient)}getUrlSegment(f){const L=f.holderId;return this.router.createUrlTree([A.entityTypeToPrefix(f.holderType),"edit",L],{fragment:"references"})}openListInNewTab(f){const V=f.entityListEntityType;this.platformDataAccessService.getEntityListComplete(f.entityListId).subscribe(Xe=>{this.followReferenceList(Xe,V)})}editContactList(f){const L=this.coreEntityService.getCoreEntityDefByString(f.holderType),V=this.entityPermissionServiceRegistry.getEntityPermissionService(f.holderType).calcSavePermissionById(f.holderId);this.platformDataAccessService.getEntityListComplete(f.entityListId).subscribe(Xe=>this.dialog.open(Su.d,{...Qt.D.FORM_HUGE,data:{entityList:Xe,hasWritePermission:V}}).afterClosed().pipe((0,O.w)(An=>An?this.platformDataAccessService.getCoreDataObjectById(f.holderId,L):(0,u.of)(void 0)),(0,O.w)(An=>{if(An){const Qo=An.contactLists.find(Dr=>Dr.contactList.id===f.entityListId);if(!Qo)throw new Error("no matching contactList found in object "+An.id);return Qo.contactList.listInfoClient=Xe.listInfoClient,this.platformDataAccessService.updateCoreDataObject(L,An)}return(0,u.of)(void 0)})).subscribe(An=>{An&&(this.userMessageService.showInfo("imxplatform.contact-list-mgmt.list.action.edit.success"),this.recordsOnceLoaded=!1,this.reloadData())},An=>{this.userMessageService.showError("imxplatform.contact-list-mgmt.list.action.edit.failure",An)}))}followReferenceList(f,L){let V=(0,i.Mg)(f.listInfoClient);const Xe=this.getBaseUrl();if(Object.keys(V).length>0){V=(0,i.jJ)(V);const An=this.router.serializeUrl(this.router.createUrlTree(["/"+A.entityTypeToPrefix(L)],{queryParams:V}));window.open(Xe+An,"_blank")}else{const An=this.router.serializeUrl(this.router.createUrlTree(["/"+A.entityTypeToPrefix(L)]));window.open(Xe+An,"_blank")}}getBaseUrl(){return window.location.href.replace(this.router.url,"")}removeList(f){this.contactListDeleteAction.execute(f).subscribe(L=>{L&&(this.recordsOnceLoaded=!1,this.reloadData())})}removeAllSelectedLists(){const f=this.currentResult.items.filter(L=>this.selectedIds.has(L.entityListId));this.contactListDeleteAction.executeReferenceDeleteBatchAction(f).subscribe(L=>{L&&(this.recordsOnceLoaded=!1,this.reloadData())})}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(jg.P),t.Y36(l.F0),t.Y36(l.gz),t.Y36(c.Y),t.Y36(Wi.G),t.Y36(ae.uw),t.Y36(l1),t.Y36(sn.nq),t.Y36(i.qB),t.Y36(Wr.Q),t.Y36(i.Ze),t.Y36(i.Xh),t.Y36(Ui.a),t.Y36(K_.p),t.Y36(ds.dE),t.Y36(mx.J))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],features:[t.qOj],decls:13,vars:15,consts:[[1,"base-entity-search","list"],[3,"formHandler","record","orderFields","orderField","orderDirection","orderChanged","applyFilter","resetFilter"],[3,"totalNumber","entityResourceKeyPrefix","showCompactToggle","reload"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],["class","table-wrapper",4,"ngIf","ngIfElse"],[3,"paging","selection","pageChanged","selectAll"],["position","above","halign","start",4,"ngIf"],["mode","indeterminate"],[1,"table-wrapper"],[4,"ngIf","ngIfElse"],[1,"imx-datatable",3,"value","resizableColumns"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",3,"ngClass"],[3,"matTooltip","matTooltipShowDelay"],[3,"ngClass"],[1,"select-column"],[1,"",3,"value","checked","change"],[1,"txt-link",3,"click"],[3,"tooltipText","offset"],[1,"txt-black"],[1,"txt-black-link"],["icon","icon-link",3,"click"],["icon","icon-reference-list",3,"click"],["icon","icon-pencil",3,"click"],["icon","icon-trash","additionalStyle","delete",3,"click"],["class","icon icon-checkmark"],[1,"icon","icon-checkmark"],[1,"icon","icon-minus"],["position","above","halign","start"],["imx-dropup-trigger",""],["icon","icon-trash","additionalStyle","delete",3,"actionClicked"],[1,"selected-size"],[1,"icon-chevron-down"]],template:function(L,V){if(1&L&&(t.TgZ(0,"div",0)(1,"imx-contact-list-mgmt-filter",1),t.NdJ("orderChanged",function(An){return V.sort(An)})("applyFilter",function(An){return V.search(An)})("resetFilter",function(){return V.reset()}),t.qZA(),t.TgZ(2,"imx-list-header",2),t.NdJ("reload",function(){return V.reloadComplete()}),t.qZA(),t.TgZ(3,"imx-grid")(4,"imx-grid-element",3),t.YNc(5,ux,2,0,"ng-template",null,4,t.W1O)(7,d1,1,0,"ng-template",null,5,t.W1O)(9,Kv,2,2,"div",6),t.ALo(10,"async"),t.qZA()(),t.TgZ(11,"imx-list-footer",7),t.NdJ("pageChanged",function(An){return V.onPageChanged(An)})("selectAll",function(An){return V.onSelectAll(An)}),t.YNc(12,p1,6,3,"imx-dropup-button",8),t.qZA()()),2&L){const Xe=t.MAs(8);t.xp6(),t.Q6J("formHandler",V.filterFormHandler)("record",V.filter)("orderFields",V.availableOrderFields)("orderField",V.orderField)("orderDirection",V.orderDirection),t.xp6(),t.Q6J("totalNumber",null==V.currentResult?null:V.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxplatform.contact-list-mgmt")("showCompactToggle",!1),t.xp6(7),t.Q6J("ngIf",t.lcZ(10,13,V.results))("ngIfElse",Xe),t.xp6(2),t.Q6J("paging",V.pagingModel)("selection",V.selectionModel),t.xp6(),t.Q6J("ngIf",V.selectedIds.size>0)}},dependencies:[e.mk,e.sg,e.O5,ya.oG,Ft.pW,qi.gM,wi.iA,zo.jx,wi.Q7,xi.p,ki.z,wo.t,gr.F,On.M,_n.V,ho.K,jo.N,Cn._,uo.A,Uv,e.Ov,e.uU,Y.X$,c1.E],styles:[".imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.base-entity-search[_ngcontent-%COMP%]{padding-bottom:50px;padding-top:50px}.base-entity-search[_ngcontent-%COMP%]   .icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.base-entity-search[_ngcontent-%COMP%]   .selected-size[_ngcontent-%COMP%]{color:#3e3e3e}[_nghost-%COMP%]     .imx-datatable tr, [_nghost-%COMP%]     .imx-datatable td{text-overflow:unset!important;white-space:unset!important}.txt-link[_ngcontent-%COMP%]{text-decoration:none}"]})}return A})();function fx(A,Gt){1&A&&t.GkF(0)}function gC(A,Gt){1&A&&t.GkF(0)}function _1(A,Gt){if(1&A&&(t.TgZ(0,"mat-list-option",17),t._uU(1),t.qZA()),2&A){const f=Gt.$implicit,L=t.oxw();t.ekj("imx-display-none",!L.filteredRoleOptionIds.includes(f.id)),t.Q6J("value",f.id),t.xp6(),t.hij(" ",f.name+" ("+f.id+")"," ")}}function f1(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"mat-list-item",19),t._uU(2),t.qZA(),t.BQk()),2&A){const f=t.oxw().$implicit;t.xp6(2),t.hij(" ",f.name+" ("+f.id+")"," ")}}function g1(A,Gt){if(1&A&&t.YNc(0,f1,3,1,"ng-container",18),2&A){const f=Gt.$implicit,L=t.oxw();t.Q6J("ngIf",L.roleHasPermissionSet(f.id))}}function Mh(A,Gt){if(1&A&&t._UZ(0,"imx-form-control",20),2&A){const f=Gt.$implicit,L=t.oxw();t.Q6J("field",L.data.formHandler.formConfiguration.findFormFieldById(f))("control",L.data.formRow.get(f))("form",L.data.formRow)("formHandler",L.data.formHandler)("config",L.data.formHandler.formConfiguration)}}const gx=()=>({$implicit:"id"}),Qf=()=>({$implicit:"name"}),h1=()=>({width:"100%",height:"100%"});let hx=(()=>{class A{constructor(f,L,V,Xe,An,Qo){this.data=f,this.configurationProvider=L,this.runtimeContextService=V,this.securityManagerService=Xe,this.entitiesMgrService=An,this.dialog=Qo,this.allRolePermissions=[],this.optionFilterCtrl=new x.p4,this.permissionFilterCtrl=new x.p4,this.permissionSelectCtrl=this.data.formHandler.formGroup.get("permissions"),this.filteredRoleOptionIds=[],this.filteredRolePermissions=[],this.destroy$=new $e.xQ}ngOnInit(){this.allRolePermissions=this.data.allRolePermissions.sort((f,L)=>f.name.localeCompare(L.name)),0===this.allRolePermissions.length&&this.loadAllPermissions(),this.registerPermissionFilterCtrl(),this.registerMultiSelectFilterCtrl(),this.filteredRolePermissions=this.filterPermissions(null,this.permissionSelectCtrl.value),this.filteredRoleOptionIds=this.allRolePermissions.map(f=>f.id)}registerPermissionFilterCtrl(){this.permissionFilterCtrl.valueChanges.pipe((0,tt.R)(this.destroy$)).subscribe(f=>{this.filteredRolePermissions=this.filterPermissions(f,null)})}registerMultiSelectFilterCtrl(){this.permissionSelectCtrl.valueChanges.pipe((0,tt.R)(this.destroy$)).subscribe(f=>{this.filteredRolePermissions=this.filterPermissions(null,f)})}filterPermissions(f,L){return this.filteredRolePermissions=this.filterByRoles(L||this.permissionSelectCtrl.value).sort((V,Xe)=>V.name.localeCompare(Xe.name)),f&&f.length>0?this.filteredRolePermissions=this.filterByNameOrId(f):this.filteredRolePermissions}filterByNameOrId(f){const L=[];return this.filteredRolePermissions.forEach(Xe=>{this.filterPredicate(Xe,f)&&L.push(Xe)}),L}filterByRoles(f){return this.allRolePermissions.filter(L=>f.includes(L.id)).map(L=>L)}loadAllPermissions(){this.entitiesMgrService.getAllEntitiesOfType("Permission").pipe((0,Yr.q)(1)).subscribe(f=>{this.allRolePermissions=f.items.sort((L,V)=>L.name.localeCompare(V.name)),this.filteredRolePermissions=this.filterPermissions(null,this.permissionSelectCtrl.value)})}roleHasPermissionSet(f){return this.data.formHandler.formGroup.get("permissions").value.includes(f)}filterSelectOptions(){this.filteredRoleOptionIds=this.allRolePermissions.filter(f=>null==this.optionFilterCtrl.value||""===this.optionFilterCtrl.value||this.filterPredicate(f,this.optionFilterCtrl.value)).map(f=>f.id)}filterPredicate(f,L){return f.name.toLowerCase().includes(L.toLowerCase())||(""+f.id).includes(L)}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(ae.WI),t.Y36(i.Pc),t.Y36(i.Ze),t.Y36(i.Xh),t.Y36(i.qB),t.Y36(ae.uw))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],decls:30,vars:26,consts:[["icon","icon-user-role","dialogType","form",3,"submitButtonDisabled","heading"],["id","role-mgmt-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"list-group-wrapper"],[1,"input-wrapper"],["translate",""],["id","option-filter-field"],[1,"mat-mdc-input-element",3,"formControl","placeholder","input"],[1,"list-group"],["dense","",3,"formControl","selectionChange"],["ngFor","",3,"ngForOf"],["id","permission-filter-field"],[1,"mat-mdc-input-element",3,"formControl","placeholder"],["dense",""],["imxFormControl",""],[3,"value"],[4,"ngIf"],[1,"small-height"],[3,"field","control","form","formHandler","config"]],template:function(L,V){if(1&L&&(t.TgZ(0,"imx-dialog",0)(1,"form",1)(2,"div",2)(3,"div",3),t.YNc(4,fx,1,0,"ng-container",4)(5,gC,1,0,"ng-container",4),t.TgZ(6,"div",5)(7,"div",6)(8,"label",7),t._uU(9,"imxplatform.role-mgmt.dialog.add-perm"),t.qZA(),t.TgZ(10,"label",8)(11,"input",9),t.NdJ("input",function(){return V.filterSelectOptions()}),t.ALo(12,"translate"),t.qZA()()(),t.TgZ(13,"div",10)(14,"p-scrollPanel")(15,"mat-selection-list",11),t.NdJ("selectionChange",function(){return V.filterSelectOptions()}),t.YNc(16,_1,2,4,"ng-template",12),t.qZA()()()(),t.TgZ(17,"div",5)(18,"div",6)(19,"label",7),t._uU(20,"imxplatform.role-mgmt.dialog.added-perms"),t.qZA(),t.TgZ(21,"label",13),t._UZ(22,"input",14),t.ALo(23,"translate"),t.qZA()(),t.TgZ(24,"div",10)(25,"p-scrollPanel")(26,"mat-list",15),t.YNc(27,g1,1,1,"ng-template",12),t.qZA()()()()()()()(),t.YNc(28,Mh,1,5,"ng-template",null,16,t.W1O)),2&L){const Xe=t.MAs(29);t.Q6J("submitButtonDisabled",V.data.formRow.invalid||V.data.formRow.pristine)("heading","imxplatform.role-mgmt.dialog.header"),t.xp6(),t.Q6J("formGroup",V.data.formRow),t.xp6(3),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(22,gx)),t.xp6(),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(23,Qf)),t.xp6(6),t.s9C("placeholder",t.lcZ(12,18,"imxplatform.user-mgmt.list.action.show-permissions.filter-placeholder")),t.Q6J("formControl",V.optionFilterCtrl),t.xp6(3),t.Akn(t.DdM(24,h1)),t.xp6(),t.Q6J("formControl",V.permissionSelectCtrl),t.xp6(),t.Q6J("ngForOf",V.allRolePermissions),t.xp6(6),t.s9C("placeholder",t.lcZ(23,20,"imxplatform.user-mgmt.list.action.show-permissions.filter-placeholder")),t.Q6J("formControl",V.permissionFilterCtrl),t.xp6(3),t.Akn(t.DdM(25,h1)),t.xp6(2),t.Q6J("ngForOf",V.filteredRolePermissions)}},dependencies:[e.sg,e.O5,e.tP,x._Y,x.Fj,x.JJ,x.JL,ba.i$,ba.Ub,ba.Tg,ba.vS,x.oH,x.sg,Y.Pi,Oi.P,Qt.a,ee.A,Y.X$],styles:[".small-height[_ngcontent-%COMP%]{height:16px!important}.list-group-wrapper[_ngcontent-%COMP%]{width:100%;margin-bottom:5px}.list-group-wrapper[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-bottom:5px}.list-group-wrapper[_ngcontent-%COMP%]   .list-group[_ngcontent-%COMP%]{width:100%;height:24vh;overflow:hidden;border:1px solid #ced4e0;background-color:#fff}.list-group-wrapper[_ngcontent-%COMP%]   .mat-mdc-list[_ngcontent-%COMP%]{padding:5px}#option-filter-field[_ngcontent-%COMP%], #permission-filter-field[_ngcontent-%COMP%]{margin-left:10px}.input-wrapper[_ngcontent-%COMP%]{align-items:center;display:flex}"]})}return A})();var $v=a(93428);let hC=(()=>{class A{constructor(f){this.imxEntitiesMgrService=f}getAutocompleteHolders(f,L){return null!=L?this.imxEntitiesMgrService.getEntityWithIdOfType("Permission",Number.parseInt(L,10)).pipe((0,m.U)(V=>[{entityId:V.id,entityType:"Permission",representation:V.name}])):f&&f.length>1?this.imxEntitiesMgrService.getAllEntitiesOfType("Permission").pipe((0,Yr.q)(1),(0,m.U)(V=>V.items),(0,m.U)(V=>V.filter(Xe=>Xe.name.toLowerCase().startsWith(f.toLowerCase()))),(0,m.U)(V=>V.map(Xe=>({entityId:Xe.id,entityType:"Permission",representation:Xe.name})))):(0,u.of)([])}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(i.qB))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();var x1=a(46893);const qv=new Jr.E([new Gr.II("text","fulltext","imxplatform.role-mgmt.filter.fulltext"),new Gr.II("text","roleIds","entity.DataObject.id",{extendedValidators:us.el,insertor:(0,ir.FO)((0,ir.wq)("roleIds"))}),new x1.w("permissionId","imxplatform.role-mgmt.filter.permission",{autocompleteService:hC,insertor:(0,ir.wq)("permissionId"),useAnyNameHolder:!1,renderLabel:!0})]);let v1=(()=>{class A extends _r.z{constructor(f,L,V,Xe){super(qv,void 0,f,L,Xe),this.runtimeContextService=L,this.imxSecurityManagerService=V}getEntityType(){return"UserRole"}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(Qe.EG),t.LFG(i.Ze),t.LFG(i.Xh),t.LFG(i.H1))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();const Xv=new Jr.E([new Gr.II("number","id","entity.DataObject.id",{required:!1,readonly:!0}),new Gr.II("text","name","entity.Role.name",{required:!0,extendedValidators:x.kI.maxLength(100)}),new na.A("permissions","",{extractor:(0,wr.XS)("permissions","id"),insertor:(0,ir.wr)("permissions","id")})]);let e0=(()=>{class A extends _r.z{constructor(f,L,V,Xe){super(Xv,void 0,f,L,Xe),this.runtimeContextService=L,this.imxSecurityManagerService=V,this.formatterService=Xe}getEntityType(){return"UserRole"}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(Qe.EG),t.LFG(i.Ze),t.LFG(i.Xh),t.LFG(i.H1))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();function b1(A,Gt){if(1&A&&(t.TgZ(0,"form",1)(1,"div",2)(2,"imx-grid")(3,"imx-grid-element",3),t._UZ(4,"imx-form-control",4),t.qZA(),t.TgZ(5,"imx-grid-element",3),t._UZ(6,"imx-form-control",4),t.qZA(),t.TgZ(7,"imx-grid-element",3),t._UZ(8,"imx-form-control",4),t.qZA()()()()),2&A){const f=t.oxw();t.Q6J("formGroup",f.parentForm),t.xp6(3),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("fulltext"))("control",f.formHandler.formGroup.get("fulltext"))("form",f.formHandler.formGroup.get("fulltext"))("formHandler",f.formHandler)("config",f.formHandler.formConfiguration),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("roleIds"))("control",f.formHandler.formGroup.get("roleIds"))("form",f.formHandler.formGroup.get("roleIds"))("formHandler",f.formHandler)("config",f.formHandler.formConfiguration),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("permissionId"))("control",f.formHandler.formGroup.get("permissionId"))("form",f.formHandler.formGroup.get("permissionId"))("formHandler",f.formHandler)("config",f.formHandler.formConfiguration)}}let xx=(()=>{class A extends qr.O{constructor(){super(),this.id="ROLE_MGMT_FILTER",this.titleKey="imxplatform.common-entity.filter.commonFilter.header",this.icon="icon-user2",this.filterFields=["fulltext","roleIds","permissionId"]}static#e=this.\u0275fac=function(L){return new(L||A)};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-role-mgmt-filter-panel"]],hostAttrs:[1,"imx-role-mgmt-filter-panel"],features:[t._Bn([(0,qr.T)(A)]),t.qOj],decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"filter__card"],[3,"lg_w","sm_w"],[3,"field","control","form","formHandler","config"]],template:function(L,V){1&L&&t.YNc(0,b1,9,22,"form",0),2&L&&t.Q6J("ngIf",V.panelShown)},dependencies:[e.O5,x._Y,x.JL,x.sg,On.M,_n.V,ee.A],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}"]})}return A})();function C1(A,Gt){if(1&A&&t._UZ(0,"imx-role-mgmt-filter-panel",2,3),2&A){const f=t.oxw();t.Q6J("pinned",!0)("parentForm",f.formHandler.formGroup)("formHandler",f.formHandler)("record",f.record)}}let Kg=(()=>{class A extends Cr.F{constructor(){super()}getEntityName(){return"UserRole"}static#e=this.\u0275fac=function(L){return new(L||A)};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-role-mgmt-filter"]],features:[t.qOj],decls:3,vars:7,consts:[[3,"entityName","filterPanelsTemplate","formHandler","record","orderFields","orderField","orderDirection","orderChanged","save"],["filterPanelsTemplate",""],[3,"pinned","parentForm","formHandler","record"],["roleMgmtFilterPanel",""]],template:function(L,V){if(1&L&&(t.TgZ(0,"imx-filter",0),t.NdJ("orderChanged",function(An){return V.orderChanged.emit(An)})("save",function(An){return V.applyFilter.emit(An)}),t.YNc(1,C1,2,4,"ng-template",null,1,t.W1O),t.qZA()),2&L){const Xe=t.MAs(2);t.Q6J("entityName","UserRole")("filterPanelsTemplate",Xe)("formHandler",V.formHandler)("record",V.record)("orderFields",V.orderFields)("orderField",V.orderField)("orderDirection",V.orderDirection)}},dependencies:[Hi.z,xx]})}return A})();function $g(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-create-new-entity-button",10),t.NdJ("create",function(){t.CHM(f);const V=t.oxw();return t.KtG(V.createNewRole())}),t.qZA()}2&A&&t.Q6J("fireCreateEvent",!0)("entityResourceKeyPrefix","imxplatform.role-mgmt")}function y1(A,Gt){1&A&&(t.TgZ(0,"imx-list-no-results"),t._uU(1,"imxplatform.user-mgmt.list.no-records"),t.qZA())}function t0(A,Gt){1&A&&t._UZ(0,"mat-progress-bar",11)}function n0(A,Gt){if(1&A&&(t.TgZ(0,"th",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&A){const f=Gt.$implicit;t.Udp("width",f.width),t.Q6J("ngClass",f.cssClass),t.xp6(),t.hij(" ",t.lcZ(2,4,f.header)," ")}}function o0(A,Gt){if(1&A&&(t.TgZ(0,"tr"),t.YNc(1,n0,3,6,"th",17),t.qZA()),2&A){const f=t.oxw(3);t.xp6(),t.Q6J("ngForOf",f.columnDefinitions)}}function r0(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-action-menu-item",25),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(4).$implicit,Xe=t.oxw(3);return t.KtG(Xe.editRole(V))}),t._uU(1," imxplatform.common-entity.list.edit "),t.qZA()}}function xC(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-action-menu-item",26),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(4).$implicit,Xe=t.oxw(3);return t.KtG(Xe.deleteRole(V))}),t._uU(1," imxplatform.common-entity.list.remove "),t.qZA()}}function vC(A,Gt){if(1&A&&(t.TgZ(0,"imx-dropup-button")(1,"imx-action-menu"),t.YNc(2,r0,2,0,"imx-action-menu-item",23)(3,xC,2,0,"imx-action-menu-item",24),t.qZA()()),2&A){const f=t.oxw(6);t.xp6(2),t.Q6J("hasAnyPermission",f.imxPermissions.F_ROLE_MANAGEMENT_UPDATE.name),t.xp6(),t.Q6J("hasAnyPermission",f.imxPermissions.F_ROLE_MANAGEMENT_DELETE.name)}}function Th(A,Gt){if(1&A){const f=t.EpF();t.ynx(0),t.TgZ(1,"td")(2,"a",21),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(2).$implicit,Xe=t.oxw(3);return t.KtG(Xe.editRole(V))}),t._uU(3),t.qZA()(),t.TgZ(4,"td",22)(5,"a",21),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(2).$implicit,Xe=t.oxw(3);return t.KtG(Xe.editRole(V))}),t._uU(6),t.qZA()(),t.TgZ(7,"td",22)(8,"a",21),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(2).$implicit,Xe=t.oxw(3);return t.KtG(Xe.editRole(V))}),t._uU(9),t.qZA()(),t.TgZ(10,"td"),t.YNc(11,vC,4,2,"imx-dropup-button",19),t.qZA(),t.BQk()}if(2&A){const f=t.oxw().ngIf,L=t.oxw().$implicit,V=t.oxw(3);t.xp6(3),t.hij(" ",L.id," "),t.xp6(),t.Q6J("matTooltip",L.name)("matTooltipShowDelay",500),t.xp6(2),t.hij(" ",L.name," "),t.xp6(),t.Q6J("matTooltip",f.permissions)("matTooltipShowDelay",500),t.xp6(2),t.hij(" ",f.permissions," "),t.xp6(2),t.Q6J("ngIf",V.hasEditPermission()||V.hasDeletePermission())}}function a0(A,Gt){if(1&A&&(t.TgZ(0,"td"),t._uU(1),t.qZA(),t.TgZ(2,"td"),t._uU(3),t.qZA(),t.TgZ(4,"td"),t._uU(5),t.qZA(),t._UZ(6,"td")),2&A){const f=t.oxw().ngIf,L=t.oxw().$implicit;t.xp6(),t.hij(" ",L.id," "),t.xp6(2),t.hij(" ",L.name," "),t.xp6(2),t.hij(" ",f.permissions," ")}}function s0(A,Gt){if(1&A&&(t.ynx(0),t.YNc(1,Th,12,8,"ng-container",13),t.ALo(2,"async"),t.YNc(3,a0,7,3,"ng-template",null,20,t.W1O),t.BQk()),2&A){const f=t.MAs(4),L=t.oxw().$implicit,V=t.oxw(3);t.xp6(),t.Q6J("ngIf",t.lcZ(2,2,V.editableMap.get(L.id)))("ngIfElse",f)}}const bC=A=>({permissions:A});function l0(A,Gt){if(1&A&&(t.TgZ(0,"tr"),t.YNc(1,s0,5,4,"ng-container",19),t.qZA()),2&A){const f=Gt.$implicit,L=t.oxw(3);t.xp6(),t.Q6J("ngIf",t.VKq(1,bC,L.renderPermissionNames(f.permissions)))}}function c0(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"p-table",14),t.YNc(2,o0,2,1,"ng-template",15)(3,l0,2,3,"ng-template",16),t.qZA(),t.BQk()),2&A){const f=t.oxw().ngIf;t.xp6(),t.Q6J("value",f.items)("resizableColumns",!0)}}function d0(A,Gt){if(1&A&&(t.TgZ(0,"div",12),t.YNc(1,c0,4,2,"ng-container",13),t.qZA()),2&A){const f=Gt.ngIf;t.oxw();const L=t.MAs(8);t.xp6(),t.Q6J("ngIf",f.items.length>0)("ngIfElse",L)}}let m0=(()=>{class A extends hr.uY{constructor(f,L,V,Xe,An,Qo,Dr,es,Al,Rl,$l,kl,Jl,od,dm,Ku){super(f,L,V,Xe,An,Qo,Dr,es,void 0,Jl,void 0,void 0,{}),this.filterFormHandler=Dr,this.ngControlBuilder=Al,this.imxSecurityManagerService=Rl,this.imxEntitiesMgrService=$l,this.platformMgmtDataAccessService=kl,this.runtimeContextService=od,this.securityManagerService=dm,this.formatterService=Ku,this.imxPermissions=i.uo,this.allRolePermissions=[],this.availableOrderFields=[{index:1,field:"NAME",i18n:"entity.Role.name",type:an.m.alphanumeric},{index:2,field:"ID",i18n:"entity.DataObject.id",type:an.m.numeric}],this.orderField="ID",this.editableMap=new Map,this.columnDefinitions=[{field:"id",header:"entity.DataObject.id",width:"70px"},{field:"name",header:"entity.Role.entityName",width:"20%"},{field:"permissions",header:"entity.Role.permissions",width:"70%"},{field:"action",header:"",width:"5%"}]}getEntityName(){return"UserRole"}createNewRole(){this.securityManagerService.hasAnyPermission([this.imxPermissions.F_ROLE_MANAGEMENT_CREATE])&&this.showRoleDialog({id:null,name:"",permissions:[]},"NEW")}editRole(f){this.showRoleDialog(f,"EDIT")}onLoadRecords(f,L,V){super.onLoadRecords(f,L,V),f.items.forEach(Xe=>{this.editableMap.set(Xe.id,this.isRoleEditable(Xe))}),this.loadAllPermissions()}loadAllPermissions(){return this.imxEntitiesMgrService.getAllEntitiesOfType("Permission").pipe((0,Yr.q)(1)).subscribe(f=>{this.allRolePermissions=f.items})}hasEditPermission(){return this.securityManagerService.hasAnyPermission([this.imxPermissions.F_ROLE_MANAGEMENT_UPDATE])}hasDeletePermission(){return this.securityManagerService.hasAnyPermission([this.imxPermissions.F_ROLE_MANAGEMENT_DELETE])}showRoleDialog(f,L){const V=new e0(this.ngControlBuilder,this.runtimeContextService,this.imxSecurityManagerService,this.formatterService);V.baseObject=f,this.hasEditPermission()||V.formGroup.disable({emitEvent:!1,onlySelf:!1}),this.dialog.open(hx,{...Qt.D.FORM_BIG,data:{mode:L,formRow:V.formGroup,formHandler:V,allRolePermissions:this.allRolePermissions}}).afterClosed().subscribe(An=>{if(An){const Qo=V.getBaseObjectCopyWithCurrentFormValues();"EDIT"===L?this.platformMgmtDataAccessService.updateUserRole(Qo).subscribe(()=>{this.recordsOnceLoaded=!1,this.reloadData(),this.userMessageService.showInfo("imxplatform.role-mgmt.dialog-edit.success")},Dr=>{this.userMessageService.showError(Dr||"imxplatform.role-mgmt.dialog-edit.failure")}):"NEW"===L&&this.platformMgmtDataAccessService.createUserRole(Qo).subscribe(()=>{this.recordsOnceLoaded=!1,this.reloadData(),this.userMessageService.showInfo("imxplatform.role-mgmt.dialog-create.success")},Dr=>{this.userMessageService.showError(Dr||"imxplatform.role-mgmt.dialog-create.failure")})}})}deleteRole(f){this.dialog.open(Pd.F,{...Qt.D.FORM_SMALL,data:{i18n:"imxplatform.role-mgmt.list.action.delete.confirm",dialogTitle:"imxplatform.role-mgmt.list.action.delete.header",objectId:f.id}}).afterClosed().subscribe(V=>{V&&this.platformMgmtDataAccessService.deleteUserRole(f.id).subscribe(()=>{this.recordsOnceLoaded=!1,this.reloadData(),this.userMessageService.showInfo("imxplatform.role-mgmt.dialog-delete.success")},Xe=>{this.userMessageService.showError(Xe||"imxplatform.role-mgmt.dialog-delete.failure")})})}renderPermissionNames(f){return f.map(L=>L.name).join(", ")}isRoleEditable(f){return this.securityManagerService.hasPermission(i.uo.F_ROLE_MANAGEMENT_UPDATE)?(0,u.of)(1!==f.id):(0,u.of)(!1)}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36($v.i),t.Y36(l.F0),t.Y36(l.gz),t.Y36(c.Y),t.Y36(Wi.G),t.Y36(ae.uw),t.Y36(v1),t.Y36(sn.nq),t.Y36(Qe.EG),t.Y36(i.Xh),t.Y36(i.qB),t.Y36(mr.Q),t.Y36(Wr.Q),t.Y36(i.Ze),t.Y36(i.Xh),t.Y36(i.H1))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],features:[t.qOj],decls:14,vars:16,consts:[[1,"base-entity-search","list"],[3,"formHandler","record","orderFields","orderField","orderDirection","orderChanged","applyFilter","resetFilter"],[3,"totalNumber","entityResourceKeyPrefix","showCompactToggle","reload"],["list-header-button-row",""],[3,"fireCreateEvent","entityResourceKeyPrefix","create",4,"hasAnyPermission"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],["class","table-wrapper",4,"ngIf","ngIfElse"],[3,"disableAllSelection","paging","selection","pageChanged","selectAll"],[3,"fireCreateEvent","entityResourceKeyPrefix","create"],["mode","indeterminate"],[1,"table-wrapper"],[4,"ngIf","ngIfElse"],[1,"imx-datatable",3,"value","resizableColumns"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",3,"ngClass"],[4,"ngIf"],["readonly",""],[1,"txt-link",3,"click"],[3,"matTooltip","matTooltipShowDelay"],["icon","icon-pencil",3,"click",4,"hasAnyPermission"],["icon","icon-trash","additionalStyle","delete",3,"click",4,"hasAnyPermission"],["icon","icon-pencil",3,"click"],["icon","icon-trash","additionalStyle","delete",3,"click"]],template:function(L,V){if(1&L&&(t.TgZ(0,"div",0)(1,"imx-role-mgmt-filter",1),t.NdJ("orderChanged",function(An){return V.sort(An)})("applyFilter",function(An){return V.search(An)})("resetFilter",function(){return V.reset()}),t.qZA(),t.TgZ(2,"imx-list-header",2),t.NdJ("reload",function(){return V.reloadComplete()}),t.ynx(3,3),t.YNc(4,$g,1,2,"imx-create-new-entity-button",4),t.BQk(),t.qZA(),t.TgZ(5,"imx-grid")(6,"imx-grid-element",5),t.YNc(7,y1,2,0,"ng-template",null,6,t.W1O)(9,t0,1,0,"ng-template",null,7,t.W1O)(11,d0,2,2,"div",8),t.ALo(12,"async"),t.qZA()(),t.TgZ(13,"imx-list-footer",9),t.NdJ("pageChanged",function(An){return V.onPageChanged(An)})("selectAll",function(An){return V.onSelectAll(An)}),t.qZA()()),2&L){const Xe=t.MAs(10);t.xp6(),t.Q6J("formHandler",V.filterFormHandler)("record",V.filter)("orderFields",V.availableOrderFields)("orderField",V.orderField)("orderDirection",V.orderDirection),t.xp6(),t.Q6J("totalNumber",null==V.currentResult?null:V.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxplatform.role-mgmt")("showCompactToggle",!1),t.xp6(2),t.Q6J("hasAnyPermission",V.imxPermissions.F_ROLE_MANAGEMENT_CREATE.name),t.xp6(7),t.Q6J("ngIf",t.lcZ(12,14,V.results))("ngIfElse",Xe),t.xp6(2),t.Q6J("disableAllSelection",!0)("paging",V.pagingModel)("selection",V.selectionModel)}},dependencies:[e.mk,e.sg,e.O5,Ft.pW,qi.gM,wi.iA,zo.jx,wi.Q7,xi.p,ki.z,wo.t,On.M,_n.V,jo.N,Cn._,uo.A,yl.E,Kg,yr.R,kn.F,e.Ov,Y.X$],styles:[".imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.base-entity-search[_ngcontent-%COMP%]{padding-bottom:50px;padding-top:50px}.base-entity-search[_ngcontent-%COMP%]   .icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.base-entity-search[_ngcontent-%COMP%]   .selected-size[_ngcontent-%COMP%]{color:#3e3e3e}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}"]})}return A})();var O1=a(7736);let _g=(()=>{class A extends Ws.I1{constructor(f){super(),this.imxPlatformDataAccessService=f}getOptions(f,L){if(f[0]&&f[0]!==ts.F&&f[1]&&f[1]!==ts.F)return this.imxPlatformDataAccessService.getMergeProperties(f[0].toLowerCase(),f[1].toLowerCase()).pipe((0,m.U)(V=>V&&V.length>0?V.split(",").map(Xe=>({label:Xe,value:Xe})):[]))}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(sn.nq))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();var vx=a(10001);function bx(A,Gt){1&A&&t.GkF(0)}function ff(A,Gt){1&A&&t.GkF(0)}function P1(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"div",3),t._UZ(2,"imx-form-control",11)(3,"imx-form-control",11)(4,"imx-form-control",11),t.qZA(),t.BQk()),2&A){const f=t.oxw();t.xp6(2),t.Q6J("field",f.data.formHandler.formConfiguration.findFormFieldById("configs:source"))("control",f.data.formRow.get("configs.source"))("form",f.data.formRow)("formHandler",f.data.formHandler)("config",f.data.formHandler.formConfiguration),t.xp6(),t.Q6J("field",f.data.formHandler.formConfiguration.findFormFieldById("configs:username"))("control",f.data.formRow.get("configs.username"))("form",f.data.formRow)("formHandler",f.data.formHandler)("config",f.data.formHandler.formConfiguration),t.xp6(),t.Q6J("field",f.data.formHandler.formConfiguration.findFormFieldById("configs:passwordDecrypted"))("control",f.data.formRow.get("configs.passwordDecrypted"))("form",f.data.formRow)("formHandler",f.data.formHandler)("config",f.data.formHandler.formConfiguration)}}function p0(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"div",3),t._UZ(2,"imx-form-control",11),t.qZA(),t.BQk()),2&A){const f=t.oxw();t.xp6(2),t.Q6J("field",f.data.formHandler.formConfiguration.findFormFieldById("configs:clientLicenseKey"))("control",f.data.formRow.get("configs.clientLicenseKey"))("form",f.data.formRow)("formHandler",f.data.formHandler)("config",f.data.formHandler.formConfiguration)}}function CC(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"div",3),t._UZ(2,"imx-form-control",11),t.qZA(),t.BQk()),2&A){const f=t.oxw();t.xp6(2),t.Q6J("field",f.data.formHandler.formConfiguration.findFormFieldById("configs:organisationId"))("control",f.data.formRow.get("configs.organisationId"))("form",f.data.formRow)("formHandler",f.data.formHandler)("config",f.data.formHandler.formConfiguration)}}function pu(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"div",3),t._UZ(2,"imx-form-control",11),t.qZA(),t.BQk()),2&A){const f=t.oxw();t.xp6(2),t.Q6J("field",f.data.formHandler.formConfiguration.findFormFieldById("configs:clientId"))("control",f.data.formRow.get("configs.clientId"))("form",f.data.formRow)("formHandler",f.data.formHandler)("config",f.data.formHandler.formConfiguration)}}function _0(A,Gt){1&A&&t.GkF(0)}function Cx(A,Gt){1&A&&t.GkF(0)}function f0(A,Gt){1&A&&t.GkF(0)}function g0(A,Gt){1&A&&t.GkF(0)}function yx(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"div",3),t._UZ(2,"imx-checkbox-select",12),t.qZA(),t.BQk()),2&A){const f=t.oxw();t.xp6(2),t.Q6J("field",f.data.formHandler.formConfiguration.findFormFieldById("mergeProperties"))("control",f.data.formRow.get("mergeProperties"))("form",f.data.formRow)("formHandler",f.data.formHandler)("optionProvider",f.mergePropsOptions)("rowLayout",!0)}}function M1(A,Gt){1&A&&t.GkF(0)}function T1(A,Gt){1&A&&t.GkF(0)}function E1(A,Gt){1&A&&t.GkF(0)}function h0(A,Gt){1&A&&t.GkF(0)}function x0(A,Gt){1&A&&t.GkF(0)}function fg(A,Gt){1&A&&t.GkF(0)}function A1(A,Gt){1&A&&t.GkF(0)}function w1(A,Gt){1&A&&t.GkF(0)}function v0(A,Gt){if(1&A&&t._UZ(0,"imx-form-control",11),2&A){const f=Gt.$implicit,L=t.oxw();t.Q6J("field",L.data.formHandler.formConfiguration.findFormFieldById(f))("control",L.data.formRow.get(f))("form",L.data.formRow)("formHandler",L.data.formHandler)("config",L.data.formHandler.formConfiguration)}}const D1=()=>({$implicit:"importerName"}),I1=()=>({$implicit:"sourceType"}),S1=()=>({$implicit:"client"}),qg=()=>({$implicit:"faultTolerant"}),b0=()=>({$implicit:"importStrategy"}),C0=()=>({$implicit:"state"}),Ox=()=>({$implicit:"active"}),y0=()=>({$implicit:"monday"}),Eh=()=>({$implicit:"tuesday"}),F1=()=>({$implicit:"wednesday"}),L1=()=>({$implicit:"thursday"}),O0=()=>({$implicit:"friday"}),P0=()=>({$implicit:"saturday"}),Xg=()=>({$implicit:"sunday"});let R1=(()=>{class A{constructor(f,L,V,Xe){this.data=f,this.dialog=L,this.standardImportMergePropertiesProviderService=V,this.standardImportEntityTypeProviderService=Xe,this.ET4_SOURCE_TYPE="ET4",this.TOUBIZ_SOURCE_TYPE="TOUBIZ",this.CUSTOM_SOURCE_TYPE="CUSTOM",this.OUTDOORACTIVE_SOURCE_TYPE="OUTDOORACTIVE",this.mergePropsOptions=[],this.entityTypeOptions=[],this.currentEntityType="",this.destroy$=new $e.xQ}ngOnInit(){"EDIT"===this.data.mode&&(this.data.formRow.controls.entityType.disable({emitEvent:!1}),this.data.formRow.controls.sourceType.disable({emitEvent:!1})),this.data.formRow.controls.sourceType.value&&this.data.formRow.controls.sourceType.value!==ts.F&&(this.currentSourceType=this.data.formRow.controls.sourceType.value,this.loadEntityTypes(),this.initializeSourceConfigFields(),this.registerRequiredConfigFields(),this.data.formRow.controls.entityType.value&&this.data.formRow.controls.entityType.value!==ts.F&&this.loadMergeProperties(this.data.formRow.controls.entityType.value)),this.data.formRow.controls.sourceType.valueChanges.pipe((0,tt.R)(this.destroy$)).subscribe(f=>{this.currentSourceType=f,this.currentSourceType&&this.currentSourceType!==ts.F&&(this.loadMergeProperties(this.data.formRow.controls.entityType.value),this.loadEntityTypes(),this.initializeSourceConfigFields(),this.registerRequiredConfigFields(),this.emptyConfigFields())}),this.data.formRow.controls.entityType.valueChanges.pipe((0,tt.R)(this.destroy$)).subscribe(f=>{f&&f!==ts.F&&this.loadMergeProperties(f)}),this.data.formRow.controls.configs.valueChanges.pipe((0,tt.R)(this.destroy$)).subscribe(f=>{let L;this.currentSourceType===this.CUSTOM_SOURCE_TYPE&&(L={sourceUrl:this.data.formRow.get("configs.source").value,passwordDecrypted:this.data.formRow.get("configs.passwordDecrypted").value,username:this.data.formRow.get("configs.username").value}),this.currentSourceType===this.ET4_SOURCE_TYPE&&(L={clientLicenseKey:this.data.formRow.get("configs.clientLicenseKey").value}),this.currentSourceType===this.OUTDOORACTIVE_SOURCE_TYPE&&(L={organisationId:this.data.formRow.get("configs.organisationId").value}),this.currentSourceType===this.TOUBIZ_SOURCE_TYPE&&(L={clientId:this.data.formRow.get("configs.clientId").value}),L&&this.data.formRow.get("configJsonAsString").setValue(JSON.stringify(L),{emitEvent:!1})})}initializeSourceConfigFields(){if(this.currentSourceType&&this.currentSourceType!==ts.F&&this.data.formRow.get("configJsonAsString").value){const f=JSON.parse(this.data.formRow.get("configJsonAsString").value);this.currentSourceType===this.CUSTOM_SOURCE_TYPE&&(this.data.formRow.get("configs.source").setValue(f.sourceUrl),f.passwordDecrypted&&this.data.formRow.get("configs.passwordDecrypted").setValue(f.passwordDecrypted),f.username&&this.data.formRow.get("configs.username").setValue(f.username)),this.currentSourceType===this.ET4_SOURCE_TYPE&&this.data.formRow.get("configs.clientLicenseKey").setValue(f.clientLicenseKey),this.currentSourceType===this.OUTDOORACTIVE_SOURCE_TYPE&&this.data.formRow.get("configs.organisationId").setValue(f.organisationId),this.currentSourceType===this.TOUBIZ_SOURCE_TYPE&&this.data.formRow.get("configs.clientId").setValue(f.clientId)}}emptyConfigFields(){this.data.formRow.get("configs.source")&&this.data.formRow.get("configs.source").setValue(null),this.data.formRow.get("configs.passwordDecrypted")&&this.data.formRow.get("configs.passwordDecrypted").setValue(null),this.data.formRow.get("configs.username")&&this.data.formRow.get("configs.username").setValue(null),this.data.formRow.get("configs.clientLicenseKey")&&this.data.formRow.get("configs.clientLicenseKey").setValue(null),this.data.formRow.get("configs.organisationId")&&this.data.formRow.get("configs.organisationId").setValue(null),this.data.formRow.get("configs.clientId")&&this.data.formRow.get("configs.clientId").setValue(null)}loadMergeProperties(f){f&&f!==ts.F&&this.currentEntityType!==f&&this.standardImportMergePropertiesProviderService.getOptions([this.currentSourceType,f],void 0).pipe((0,Yr.q)(1)).subscribe(L=>{this.currentEntityType=f;const V=[];L.forEach(Xe=>{V.push({label:this.determineLabel(f.toLowerCase(),Xe.value),value:Xe.value})}),this.mergePropsOptions=V})}loadEntityTypes(){this.currentSourceType&&this.currentSourceType!==ts.F&&this.standardImportEntityTypeProviderService.getOptions(this.currentSourceType,void 0).pipe((0,Yr.q)(1)).subscribe(f=>{const L=[];f.forEach(V=>{L.push({label:V.label,value:V.value})}),this.entityTypeOptions=L})}determineLabel(f,L){return"contact1"===L?"imxplatform.standard-import-config.dialog.contact1-merge-prop":"pricing"===L?"imxplatform.standard-import-config.dialog.pricing-merge-prop":(("contributor"===f||"location"===f)&&(f="AddressPoi"),"entity."+(f=f.charAt(0).toUpperCase()+f.slice(1))+"."+L)}configsValid(){return!!(this.currentSourceType===this.CUSTOM_SOURCE_TYPE&&this.data.formRow.get("configs.source").value||this.currentSourceType===this.ET4_SOURCE_TYPE&&this.data.formRow.get("configs.clientLicenseKey").value||this.currentSourceType===this.OUTDOORACTIVE_SOURCE_TYPE&&this.data.formRow.get("configs.organisationId").value||this.currentSourceType===this.TOUBIZ_SOURCE_TYPE&&this.data.formRow.get("configs.clientId").value)}registerRequiredConfigFields(){this.setConfigFieldValidator("source",this.currentSourceType===this.CUSTOM_SOURCE_TYPE),this.setConfigFieldValidator("clientLicenseKey",this.currentSourceType===this.ET4_SOURCE_TYPE),this.setConfigFieldValidator("organisationId",this.currentSourceType===this.OUTDOORACTIVE_SOURCE_TYPE),this.setConfigFieldValidator("clientId",this.currentSourceType===this.TOUBIZ_SOURCE_TYPE)}setConfigFieldValidator(f,L){const V=this.data.formHandler.formConfiguration.findFormFieldById("configs:"+f);if(!V)throw new Error("no field found with id "+f);V.required=L,V.applyValidatorsToControl(this.data.formHandler.formGroup.get("configs."+f)),this.data.formHandler.formGroup.get("configs."+f).updateValueAndValidity()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(ae.WI),t.Y36(ae.uw),t.Y36(_g),t.Y36(O1.W))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],decls:38,vars:55,consts:[["icon","icon-inbox","dialogType","form",3,"heading","submitButtonDisabled"],["id","standard-import-config-mgmt-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"field","control","form","formHandler","optionProvider"],[4,"ngIf"],["title","imxplatform.standard-import-config.dialog.accordion"],[1,"standard-import-config-active"],[1,"standard-import-config-weekday-select"],["imxFormControl",""],[3,"field","control","form","formHandler","config"],[3,"field","control","form","formHandler","optionProvider","rowLayout"]],template:function(L,V){if(1&L&&(t.TgZ(0,"imx-dialog",0)(1,"form",1)(2,"div",2)(3,"div",3),t.YNc(4,bx,1,0,"ng-container",4)(5,ff,1,0,"ng-container",4),t._UZ(6,"imx-select",5),t.qZA(),t.YNc(7,P1,5,15,"ng-container",6)(8,p0,3,5,"ng-container",6)(9,CC,3,5,"ng-container",6)(10,pu,3,5,"ng-container",6),t.TgZ(11,"div",3),t.YNc(12,_0,1,0,"ng-container",4),t.qZA(),t.TgZ(13,"imx-accordion-panel",7)(14,"div",3),t.YNc(15,Cx,1,0,"ng-container",4)(16,f0,1,0,"ng-container",4)(17,g0,1,0,"ng-container",4)(18,yx,3,6,"ng-container",6),t.TgZ(19,"div",8),t.YNc(20,M1,1,0,"ng-container",4),t.qZA(),t.TgZ(21,"div",9)(22,"div"),t.YNc(23,T1,1,0,"ng-container",4),t.qZA(),t.TgZ(24,"div"),t.YNc(25,E1,1,0,"ng-container",4),t.qZA(),t.TgZ(26,"div"),t.YNc(27,h0,1,0,"ng-container",4),t.qZA(),t.TgZ(28,"div"),t.YNc(29,x0,1,0,"ng-container",4),t.qZA(),t.TgZ(30,"div"),t.YNc(31,fg,1,0,"ng-container",4),t.qZA(),t.TgZ(32,"div"),t.YNc(33,A1,1,0,"ng-container",4),t.qZA(),t.TgZ(34,"div"),t.YNc(35,w1,1,0,"ng-container",4),t.qZA()()()()()()(),t.YNc(36,v0,1,5,"ng-template",null,10,t.W1O)),2&L){const Xe=t.MAs(37);t.Q6J("heading","entity.StandardImportConfig.entityName")("submitButtonDisabled",V.data.formRow.invalid||!V.configsValid()),t.xp6(),t.Q6J("formGroup",V.data.formRow),t.xp6(3),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(41,D1)),t.xp6(),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(42,I1)),t.xp6(),t.Q6J("field",V.data.formHandler.formConfiguration.findFormFieldById("entityType"))("control",V.data.formRow.get("entityType"))("form",V.data.formRow)("formHandler",V.data.formHandler)("optionProvider",V.entityTypeOptions),t.xp6(),t.Q6J("ngIf",V.currentSourceType&&V.currentSourceType===V.CUSTOM_SOURCE_TYPE),t.xp6(),t.Q6J("ngIf",V.currentSourceType&&V.currentSourceType===V.ET4_SOURCE_TYPE),t.xp6(),t.Q6J("ngIf",V.currentSourceType&&V.currentSourceType===V.OUTDOORACTIVE_SOURCE_TYPE),t.xp6(),t.Q6J("ngIf",V.currentSourceType&&V.currentSourceType===V.TOUBIZ_SOURCE_TYPE),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(43,S1)),t.xp6(3),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(44,qg)),t.xp6(),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(45,b0)),t.xp6(),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(46,C0)),t.xp6(),t.Q6J("ngIf",V.mergePropsOptions&&V.mergePropsOptions.length>0),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(47,Ox)),t.xp6(3),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(48,y0)),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(49,Eh)),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(50,F1)),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(51,L1)),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(52,O0)),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(53,P0)),t.xp6(2),t.Q6J("ngTemplateOutlet",Xe)("ngTemplateOutletContext",t.DdM(54,Xg))}},dependencies:[e.O5,e.tP,x._Y,x.JL,x.sg,rp.U,vx.r,Qt.a,ee.A,ve.H],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.header-right[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:flex-end}.header-right[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{margin-right:10px}.mat-mdc-cell[_ngcontent-%COMP%]{padding:0 13px}.form__content-group[_ngcontent-%COMP%] > .form__content-row[_ngcontent-%COMP%]{align-items:center}.form__content-group[_ngcontent-%COMP%] > .form__content-row[_ngcontent-%COMP%] > .imx-form-control[_ngcontent-%COMP%]{margin-right:26px}.file-choose-row[_ngcontent-%COMP%]{margin-bottom:15px;display:flex}.file-choose-row[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{margin-right:10px}.file-choose-row[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]   .imx-button.with-icon[_ngcontent-%COMP%]{line-height:34px}.file-choose-row[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]   .imx-button.with-icon[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:14px;top:calc(50% - 6px)}.file-choose-row[_ngcontent-%COMP%]   .inputfile[_ngcontent-%COMP%]{width:.1px;height:.1px;opacity:0;overflow:hidden;position:absolute;z-index:-1}#standard-import-config-mgmt-edit[_ngcontent-%COMP%]{max-width:650px}.standard-import-config-active[_ngcontent-%COMP%]{margin-left:3px}.standard-import-config-weekday-select[_ngcontent-%COMP%]{display:flex;flex-direction:row}.standard-import-config-weekday-select[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-left:3px;margin-right:3px}"]})}return A})();var M0=a(11947),T0=a(62868),E0=a(67750);function A0(A,Gt){if(1&A&&(t.TgZ(0,"form",1)(1,"div",2)(2,"imx-grid")(3,"imx-grid-element",3),t._UZ(4,"imx-form-control",4),t.qZA(),t.TgZ(5,"imx-grid-element",3),t._UZ(6,"imx-form-control",4),t.qZA(),t.TgZ(7,"imx-grid-element",3),t._UZ(8,"imx-form-control",4),t.qZA(),t.Hsn(9),t.qZA()()()),2&A){const f=t.oxw();t.Q6J("formGroup",f.parentForm),t.xp6(3),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("name"))("control",f.formHandler.formGroup.get("name"))("form",f.formHandler.formGroup.get("name"))("formHandler",f.formHandler)("config",f.formHandler.formConfiguration),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("client"))("control",f.formHandler.formGroup.get("client"))("form",f.formHandler.formGroup.get("client"))("formHandler",f.formHandler)("config",f.formHandler.formConfiguration),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("entity"))("control",f.formHandler.formGroup.get("entity"))("form",f.formHandler.formGroup.get("entity"))("formHandler",f.formHandler)("config",f.formHandler.formConfiguration)}}const w0=["*"];let D0=(()=>{class A extends qr.O{constructor(){super(),this.id="MAIN_FILTER",this.titleKey="imxplatform.common-entity.filter.baseEntityFilter.header",this.icon="icon-cube",this.filterFields=["id","name","client","entity"]}static#e=this.\u0275fac=function(L){return new(L||A)};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-standard-import-config-filter-panel"]],hostAttrs:[1,"imx-standard-import-config-filter-panel"],features:[t._Bn([(0,qr.T)(A)]),t.qOj],ngContentSelectors:w0,decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"filter__card"],[3,"lg_w","sm_w"],[3,"field","control","form","formHandler","config"]],template:function(L,V){1&L&&(t.F$t(),t.YNc(0,A0,10,22,"form",0)),2&L&&t.Q6J("ngIf",V.panelShown)},dependencies:[e.O5,x._Y,x.JL,x.sg,On.M,_n.V,ee.A],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}"]})}return A})();function I0(A,Gt){if(1&A&&t._UZ(0,"imx-standard-import-config-filter-panel",2,3),2&A){const f=t.oxw();t.Q6J("pinned",!0)("parentForm",f.formHandler.formGroup)("formHandler",f.formHandler)("record",f.record)}}let k1=(()=>{class A extends Cr.F{constructor(){super()}getEntityName(){return"StandardImportConfig"}static#e=this.\u0275fac=function(L){return new(L||A)};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-standard-import-config-filter"]],features:[t.qOj],decls:3,vars:7,consts:[[3,"entityName","filterPanelsTemplate","formHandler","record","orderFields","orderField","orderDirection","orderChanged","save"],["filterPanelsTemplate",""],[3,"pinned","parentForm","formHandler","record"],["filterPanel",""]],template:function(L,V){if(1&L&&(t.TgZ(0,"imx-filter",0),t.NdJ("orderChanged",function(An){return V.orderChanged.emit(An)})("save",function(An){return V.applyFilter.emit(An)}),t.YNc(1,I0,2,4,"ng-template",null,1,t.W1O),t.qZA()),2&L){const Xe=t.MAs(2);t.Q6J("entityName","StandardImportConfig")("filterPanelsTemplate",Xe)("formHandler",V.formHandler)("record",V.record)("orderFields",V.orderFields)("orderField",V.orderField)("orderDirection",V.orderDirection)}},dependencies:[Hi.z,D0]})}return A})();function Px(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-create-new-entity-button",16),t.NdJ("create",function(){t.CHM(f);const V=t.oxw();return t.KtG(V.createStandardImportConfig())}),t.qZA()}2&A&&t.Q6J("fireCreateEvent",!0)("entityResourceKeyPrefix","imxplatform.standard-import-config")}function S0(A,Gt){1&A&&(t.TgZ(0,"imx-list-no-results"),t._uU(1,"imxplatform.standard-import-config.list.no-records"),t.qZA())}function F0(A,Gt){1&A&&t._UZ(0,"mat-progress-bar",17)}function Ah(A,Gt){if(1&A&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&A){const f=Gt.$implicit;t.Udp("width",f.width),t.Q6J("ngClass",f.cssClass),t.xp6(),t.hij(" ",t.lcZ(2,4,f.header)," ")}}function L0(A,Gt){if(1&A&&(t.TgZ(0,"tr"),t.YNc(1,Ah,3,6,"th",23),t.qZA()),2&A){const f=t.oxw(3);t.xp6(),t.Q6J("ngForOf",f.columnDefinitions)}}function R0(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-action-menu-item",31),t.NdJ("actionClicked",function(){const Xe=t.CHM(f).$implicit,An=t.oxw().$implicit,Qo=t.oxw(3);return t.KtG(Qo.executeRowAction(Xe,An))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&A){const f=Gt.$implicit;t.Q6J("icon",f.getIcon()),t.xp6(),t.hij(" ",t.lcZ(2,2,f.getActionLabelKey())," ")}}function k0(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"tr")(1,"td")(2,"a",25),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3);return t.KtG(An.editStandardImportConfig(Xe))}),t._uU(3),t.qZA()(),t.TgZ(4,"td",26)(5,"a",25),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3);return t.KtG(An.editStandardImportConfig(Xe))}),t._uU(6),t.qZA()(),t.TgZ(7,"td",26)(8,"a",25),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3);return t.KtG(An.editStandardImportConfig(Xe))}),t._uU(9),t.qZA()(),t.TgZ(10,"td",26)(11,"a",27),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3);return t.KtG(An.editStandardImportConfig(Xe))}),t._uU(12),t.qZA()(),t.TgZ(13,"td",26)(14,"a",25),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3);return t.KtG(An.editStandardImportConfig(Xe))}),t._uU(15),t.qZA()(),t.TgZ(16,"td",26)(17,"a",25),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3);return t.KtG(An.editStandardImportConfig(Xe))}),t._uU(18),t.qZA()(),t.TgZ(19,"td")(20,"imx-dropup-button")(21,"imx-action-menu"),t.YNc(22,R0,3,4,"ng-template",28),t.TgZ(23,"imx-action-menu-item",29),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3);return t.KtG(An.editStandardImportConfig(Xe))}),t._uU(24,"imxplatform.common-entity.list.edit "),t.qZA(),t.TgZ(25,"imx-action-menu-item",30),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3);return t.KtG(An.removeStandardImportConfig(Xe))}),t._uU(26,"imxplatform.common-entity.list.remove "),t.qZA()()()()()}if(2&A){const f=Gt.$implicit,L=t.oxw(3);t.xp6(3),t.hij(" ",f.id," "),t.xp6(),t.Q6J("matTooltip",f.name)("matTooltipShowDelay",500),t.xp6(2),t.hij(" ",f.name," "),t.xp6(),t.Q6J("matTooltip",f.client.name)("matTooltipShowDelay",500),t.xp6(2),t.hij(" ",f.client.name," "),t.xp6(),t.Q6J("matTooltip",f.active?"imxplatform.common.yes":"imxplatform.common.no")("matTooltipShowDelay",500),t.xp6(2),t.hij(" ",f.active?"imxplatform.common.yes":"imxplatform.common.no"," "),t.xp6(),t.Q6J("matTooltip",L.determineEntityType(f.entityType))("matTooltipShowDelay",500),t.xp6(2),t.hij(" ",L.determineEntityType(f.entityType)," "),t.xp6(),t.Q6J("matTooltip",f.lastExecutionTime)("matTooltipShowDelay",500),t.xp6(2),t.hij(" ",f.lastExecutionTime," "),t.xp6(4),t.Q6J("ngForOf",null==L.actionProvider?null:L.actionProvider.getRowActionsForType(L.getEntityName(),f.id))}}function N0(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"p-table",20),t.YNc(2,L0,2,1,"ng-template",21)(3,k0,27,17,"ng-template",22),t.qZA(),t.BQk()),2&A){const f=t.oxw().ngIf;t.xp6(),t.Q6J("value",f.items)}}function U0(A,Gt){if(1&A&&(t.TgZ(0,"div",18),t.YNc(1,N0,4,1,"ng-container",19),t.qZA()),2&A){const f=Gt.ngIf;t.oxw();const L=t.MAs(22);t.xp6(),t.Q6J("ngIf",f.items.length>0)("ngIfElse",L)}}const Mx="StandardImportConfig";let H0=(()=>{class A extends hr.uY{constructor(f,L,V,Xe,An,Qo,Dr,es,Al,Rl,$l,kl,Jl,od){super(f,L,V,Xe,An,Qo,Dr,es,void 0,$l,void 0,kl,{}),this.platformMgmtDataAccessService=Al,this.entitiesMgrService=Rl,this.standardImportConfigFormHandlerService=Jl,this.translateService=od,this.imxPermissions=i.uo,this.orderField="id",this.availableOrderFields=[{index:1,field:"name",i18n:"entity.StandardImportConfig.importerName",type:an.m.alphanumeric},{index:2,field:"id",i18n:"entity.DataObject.id",type:an.m.numeric}],this.columnDefinitions=[{field:"id",header:"ID",width:"70px"},{field:"name",header:"entity.StandardImportConfig.importerName",width:"30%"},{field:"client",header:"entity.Client.entityName",width:"20%"},{field:"active",header:"entity.StandardImportConfig.active",width:"10%"},{field:"entityType",header:"entity.StandardImportConfig.entityType",width:"10%"},{field:"lastExecutionTime",header:"entity.StandardImportConfig.lastExecutionTime",width:"20%"},{field:"action",header:"",width:"5%"}]}getEntityName(){return Mx}createStandardImportConfig(){const f=this.standardImportConfigFormHandlerService,L=Mx;this.entitiesMgrService.newEntityOfType(L).subscribe(V=>{f.baseObject=V,f.baseObject._entityType=L,this.dialog.open(R1,{minWidth:600,data:{mode:"NEW",formRow:f.formGroup,formHandler:f}}).afterClosed().subscribe(Xe=>{if(Xe){const An=f.getBaseObjectCopyWithCurrentFormValues();"CUSTOM"===An.importSourceConfig.sourceType&&(An.importSourceConfig._entityType="CustomImportSourceConfig"),"ET4"===An.importSourceConfig.sourceType&&(An.importSourceConfig._entityType="Et4ImportSourceConfig"),"OUTDOORACTIVE"===An.importSourceConfig.sourceType&&(An.importSourceConfig._entityType="OutdooractiveImportSourceConfig"),"TOUBIZ"===An.importSourceConfig.sourceType&&(An.importSourceConfig._entityType="ToubizImportSourceConfig"),this.platformMgmtDataAccessService.createStandardImportConfig(An).subscribe(()=>{this.reloadRecords(),this.userMessageService.showInfo("imxplatform.base-entity.list.dialog-create.success")},Qo=>{this.userMessageService.showError(Qo||"imxplatform.base-entity.list.dialog-create.failure")})}this.onEditDialogClose(void 0)})})}onEditDialogClose(f){}reloadRecords(){this.recordsOnceLoaded=!1,this.reloadData()}editStandardImportConfig(f){const L=this.standardImportConfigFormHandlerService;L.baseObject=f,this.dialog.open(R1,{minWidth:600,data:{mode:"EDIT",formRow:L.formGroup,formHandler:L}}).afterClosed().subscribe(Xe=>{if(Xe){const An=L.getBaseObjectCopyWithCurrentFormValues();this.platformMgmtDataAccessService.updateStandardImportConfig(An).subscribe(()=>{this.reloadRecords(),this.userMessageService.showInfo("imxplatform.base-entity.list.dialog-edit.success")},Qo=>{this.userMessageService.showError(Qo||"imxplatform.base-entity.list.dialog-edit.failure")})}this.onEditDialogClose(void 0)})}removeStandardImportConfig(f){this.dialog.open(Pd.F,{maxWidth:470,maxHeight:235,data:{i18n:"imxplatform.base-entity.list.action.delete.confirm",objectId:f.id}}).afterClosed().subscribe(L=>{L&&this.platformMgmtDataAccessService.deleteStandardImportConfig(f.id).subscribe(V=>{this.reloadRecords(),this.userMessageService.showInfo(V?"imxplatform.base-entity.list.dialog-delete.success":"imxplatform.base-entity.list.dialog-delete.failure")},V=>{this.userMessageService.showError(V||"imxplatform.base-entity.list.dialog-delete.failure")})})}determineEntityType(f){const L=f.toLowerCase();return"contributor"===L||"location"===L?this.translateService.instant("entity.Event."+L):"event"===L?this.translateService.instant("entity."+L.charAt(0).toUpperCase()+L.slice(1)+".entityName"):L.charAt(0).toUpperCase()+L.slice(1)}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(M0.y),t.Y36(l.F0),t.Y36(l.gz),t.Y36(c.Y),t.Y36(Wi.G),t.Y36(ae.uw),t.Y36(T0.t),t.Y36(sn.nq),t.Y36(mr.Q),t.Y36(i.qB),t.Y36(Wr.Q),t.Y36(Ui.a),t.Y36(E0.W3),t.Y36(Y.sK))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],features:[t.qOj],decls:28,vars:22,consts:[[1,"base-entity-search","list"],[3,"formHandler","record","orderFields","orderField","orderDirection","orderChanged","applyFilter","resetFilter"],["lg_w","6","lg_o","3"],[1,"standard-import-icon-text"],[1,"standard-import-icon"],["src","./assets/standard-import/tta_light_large.svg","alt","TTA Logo"],[1,"standard-import-text"],["href","https://www.tourismtechalliance.org/","target","https://www.tourismtechalliance.org/"],[3,"totalNumber","entityResourceKeyPrefix","showCompactToggle","reload"],["list-header-button-row",""],[3,"fireCreateEvent","entityResourceKeyPrefix","create",4,"hasAnyPermission"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],["class","table-wrapper",4,"ngIf","ngIfElse"],[3,"disableAllSelection","paging","selection","pageChanged","selectAll"],[3,"fireCreateEvent","entityResourceKeyPrefix","create"],["mode","indeterminate"],[1,"table-wrapper"],[4,"ngIf","ngIfElse"],[1,"imx-datatable",3,"value"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",3,"ngClass"],[1,"txt-link",3,"click"],[3,"matTooltip","matTooltipShowDelay"],["translate","",1,"txt-link",3,"click"],["ngFor","",3,"ngForOf"],["icon","icon-pencil",3,"click"],["icon","icon-trash","additionalStyle","delete",3,"click"],[3,"icon","actionClicked"]],template:function(L,V){if(1&L&&(t.TgZ(0,"div",0)(1,"imx-standard-import-config-filter",1),t.NdJ("orderChanged",function(An){return V.sort(An)})("applyFilter",function(An){return V.search(An)})("resetFilter",function(){return V.reset()}),t.qZA(),t.TgZ(2,"imx-grid")(3,"imx-grid-element",2)(4,"div",3)(5,"div",4),t._UZ(6,"img",5),t.qZA(),t.TgZ(7,"div",6)(8,"h3"),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"p"),t._uU(12),t.ALo(13,"translate"),t.TgZ(14,"a",7),t._uU(15,"www.tourismtechalliance.org"),t.qZA()()()()()(),t.TgZ(16,"imx-list-header",8),t.NdJ("reload",function(){return V.reloadComplete()}),t.ynx(17,9),t.YNc(18,Px,1,2,"imx-create-new-entity-button",10),t.BQk(),t.qZA(),t.TgZ(19,"imx-grid")(20,"imx-grid-element",11),t.YNc(21,S0,2,0,"ng-template",null,12,t.W1O)(23,F0,1,0,"ng-template",null,13,t.W1O)(25,U0,2,2,"div",14),t.ALo(26,"async"),t.qZA()(),t.TgZ(27,"imx-list-footer",15),t.NdJ("pageChanged",function(An){return V.onPageChanged(An)})("selectAll",function(An){return V.onSelectAll(An)}),t.qZA()()),2&L){const Xe=t.MAs(24);t.xp6(),t.Q6J("formHandler",V.filterFormHandler)("record",V.filter)("orderFields",V.availableOrderFields)("orderField",V.orderField)("orderDirection",V.orderDirection),t.xp6(8),t.Oqu(t.lcZ(10,16,"imxplatform.standard-import-config.list.tta-title-text")),t.xp6(3),t.hij("",t.lcZ(13,18,"imxplatform.standard-import-config.list.tta-hint-text")," "),t.xp6(4),t.Q6J("totalNumber",null==V.currentResult?null:V.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxplatform.standard-import-config")("showCompactToggle",!1),t.xp6(2),t.Q6J("hasAnyPermission",V.imxPermissions.F_STANDARD_IMPORT_MANAGEMENT_ALL.name),t.xp6(7),t.Q6J("ngIf",t.lcZ(26,20,V.results))("ngIfElse",Xe),t.xp6(2),t.Q6J("disableAllSelection",!0)("paging",V.pagingModel)("selection",V.selectionModel)}},dependencies:[e.mk,e.sg,e.O5,Ft.pW,qi.gM,Y.Pi,wi.iA,zo.jx,wi.Q7,xi.p,ki.z,wo.t,On.M,_n.V,jo.N,Cn._,uo.A,yl.E,k1,yr.R,kn.F,e.Ov,Y.X$],styles:[".imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.base-entity-search[_ngcontent-%COMP%]{padding-bottom:50px;padding-top:50px}.base-entity-search[_ngcontent-%COMP%]   .icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.base-entity-search[_ngcontent-%COMP%]   .selected-size[_ngcontent-%COMP%]{color:#3e3e3e}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.standard-import-icon-text[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-top:6px;padding-top:5px;padding-bottom:5px}.standard-import-text[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:4px}.standard-import-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-right:5px;font-size:13px}.standard-import-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#0a2663}.standard-import-icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:90px;margin-left:5px;margin-right:8px}"]})}return A})();var OC=a(18806),G0=a(30144);function J0(A,Gt){if(1&A&&(t.ynx(0),t._UZ(1,"imx-select",5),t.BQk()),2&A){const f=t.oxw();t.xp6(),t.Q6J("field",f.data.formHandler.formConfiguration.findFormFieldById("sourceValueOption"))("control",f.data.formRow.get("sourceValueOption"))("form",f.data.formRow)("formHandler",f.data.formHandler)("optionProvider",f.mappableFieldValues)}}function Q0(A,Gt){1&A&&t.GkF(0)}function PC(A,Gt){1&A&&t.GkF(0)}const V0=()=>({$implicit:"sourceValueId"}),MC=()=>({$implicit:"sourceValueName"});function Y0(A,Gt){if(1&A&&(t.ynx(0),t.YNc(1,Q0,1,0,"ng-container",8)(2,PC,1,0,"ng-container",8),t.BQk()),2&A){t.oxw();const f=t.MAs(19);t.xp6(),t.Q6J("ngTemplateOutlet",f)("ngTemplateOutletContext",t.DdM(4,V0)),t.xp6(),t.Q6J("ngTemplateOutlet",f)("ngTemplateOutletContext",t.DdM(5,MC))}}const W0=A=>({entityType:A});function z0(A,Gt){if(1&A&&(t.ynx(0),t._UZ(1,"imx-base-autocomplete",9),t.TgZ(2,"span",10),t._uU(3,"imxplatform.standard-import-mapping.dialog.base-entity-hint"),t.qZA(),t.BQk()),2&A){const f=t.oxw();t.xp6(),t.Q6J("autocompleteService",f.baseEntityAutocompleteService)("autocompleteFilter",t.VKq(7,W0,f.baseEntityType))("label","entity.StandardImportMapping.baseEntityId")("displayItemFn",f.displayBaseEntity)("formControl",f.data.formRow.get("baseEntityId"))("required",!0)("startAtChar",1)}}function Ex(A,Gt){if(1&A&&t._UZ(0,"imx-form-control",11),2&A){const f=Gt.$implicit,L=t.oxw();t.Q6J("field",L.data.formHandler.formConfiguration.findFormFieldById(f))("control",L.data.formRow.get(f))("form",L.data.formRow)("formHandler",L.data.formHandler)("config",L.data.formHandler.formConfiguration)}}let Ig=(()=>{class A{constructor(f,L,V,Xe,An,Qo,Dr,es){this.data=f,this.standardImportNamesProviderService=L,this.imxPlatformDataAccessService=V,this.imxEntitiesMgrService=Xe,this.translateService=An,this.baseEntityAutocompleteService=Qo,this.userMessageService=Dr,this.dialogRef=es,this.mapperMetainfo=new Map,this.importerNamesOptions=[],this.sourceFieldOptions=[],this.baseEntityTypeOptions=[],this.baseEntityOptions=[]}ngOnInit(){this.loadImporterNamesWithMapping(),this.data.formHandler.formGroup.controls.importerName.valueChanges.subscribe(f=>{f&&this.data.formHandler.formGroup.controls.importerName.value!==ts.F&&(this.data.formHandler.formGroup.controls.sourceField.setValue(ts.F),this.data.formHandler.formGroup.controls.baseEntityId.setValue(ts.F),this.baseEntityTypeOptions=[],this.baseEntityOptions=[],this.loadMapperMetainfoAndFillOptions(f))}),this.data.formHandler.formGroup.controls.sourceField.valueChanges.subscribe(f=>{f&&this.data.formHandler.formGroup.controls.sourceField.value!==ts.F&&(this.loadMappableFieldValues(f),this.fillMappableBaseEntities(f))}),this.data.formHandler.formGroup.controls.baseEntityType.valueChanges.subscribe(f=>{f&&this.data.formHandler.formGroup.controls.baseEntityType.value!==ts.F&&(this.baseEntityType=f)}),"EDIT"===this.data.mode&&(this.data.formHandler.formGroup.get("importerName").value&&this.data.formHandler.formGroup.controls.importerName.value!==ts.F&&this.loadMapperMetainfoAndFillOptions(this.data.formHandler.formGroup.get("importerName").value,this.data.formHandler.formGroup.get("sourceField").value),this.data.formHandler.formGroup.get("sourceField").value&&this.data.formHandler.formGroup.controls.sourceField.value!==ts.F&&this.data.formHandler.formGroup.controls.sourceValueOption.setValue(this.data.formHandler.formGroup.get("sourceValueId").value),this.data.formHandler.formGroup.get("baseEntityType").value&&this.data.formHandler.formGroup.controls.baseEntityType.value!==ts.F&&(this.baseEntityType=this.data.formHandler.formGroup.get("baseEntityType").value),this.data.formRow.controls.importerName.disable({emitEvent:!1}),this.data.formRow.controls.sourceField.disable({emitEvent:!1}),this.data.formRow.controls.sourceValueOption.disable({emitEvent:!1}),this.data.formRow.controls.sourceValueId.disable({emitEvent:!1}))}loadImporterNamesWithMapping(){this.standardImportNamesProviderService.getOptions(void 0,void 0).subscribe(f=>{this.importerNamesOptions=f,this.importerNamesOptions&&1===this.importerNamesOptions.length&&this.data.formHandler.formGroup.controls.importerName.setValue(this.importerNamesOptions[0].value)})}loadMapperMetainfoAndFillOptions(f,L){this.imxPlatformDataAccessService.getMapperMetainfo(f).subscribe(V=>{this.sourceFieldOptions=[],this.mapperMetainfo=V,Array.from(this.mapperMetainfo.values()).forEach(An=>{Array.from(An.values()).forEach(Qo=>{0===this.sourceFieldOptions.filter(Dr=>Dr.value===Qo).length&&this.sourceFieldOptions.push({label:Qo,value:Qo})})}),this.sourceFieldOptions.sort((An,Qo)=>An.label.localeCompare(Qo.value)),this.sourceFieldOptions&&1===this.sourceFieldOptions.length&&this.data.formHandler.formGroup.controls.sourceField.setValue(this.sourceFieldOptions[0].value),"EDIT"===this.data.mode&&(this.loadMappableFieldValues(this.data.formHandler.formGroup.get("sourceField").value),this.fillMappableBaseEntities(this.data.formHandler.formGroup.get("sourceField").value))})}loadMappableFieldValues(f){return this.mappableFieldValues=[],this.imxPlatformDataAccessService.getMappableFieldValues(this.data.formHandler.formGroup.get("importerName").value,f).subscribe(L=>{const V=new Map([...L].sort((Xe,An)=>Xe[1]>An[1]?1:-1));for(const[Xe,An]of V)this.mappableFieldValues.push({label:An+" ["+Xe+"]",value:Xe});this.registerRequiredSourceFields()})}fillMappableBaseEntities(f){this.baseEntityTypeOptions=[];const L=[];for(const[V,Xe]of this.mapperMetainfo.entries())Xe.includes(f)&&L.push(V);L.length>0&&L.forEach(V=>{this.baseEntityTypeOptions.push({label:this.getBaseEntityTypeName(V),value:V})}),this.baseEntityTypeOptions.sort((V,Xe)=>V.label.localeCompare(Xe.value)),this.baseEntityTypeOptions&&1===this.baseEntityTypeOptions.length&&this.data.formHandler.formGroup.controls.baseEntityType.setValue(this.baseEntityTypeOptions[0].value)}getBaseEntityTypeName(f){return this.translateService.instant("entity."+f+".entityName")}displayBaseEntity(f){return f?f.representation+" ["+f.entityId+"]":""}confirm(){const f=this.data.formHandler.formGroup.get("sourceValueOption").value;f&&(this.data.formHandler.formGroup.controls.sourceValueId.setValue(f),this.mappableFieldValues.forEach(V=>{if(V.value===f){const Xe=V.label,An=V.label.indexOf("[");this.data.formHandler.formGroup.controls.sourceValueName.setValue(Xe.substring(0,An-1))}}));const L=this.data.formHandler.getBaseObjectCopyWithCurrentFormValues();"EDIT"===this.data.mode?(this.imxEntitiesMgrService.updateEntityOfType(this.data.entityName,L).subscribe(()=>{this.userMessageService.showInfo("imxplatform.base-entity.list.dialog-edit.success"),this.resetValues()},V=>{this.userMessageService.showError(V||"imxplatform.base-entity.list.dialog-edit.failure")}),this.dialogRef.close(!0)):"NEW"===this.data.mode&&this.imxEntitiesMgrService.insertEntityOfType(this.data.entityName,L).subscribe(()=>{this.userMessageService.showInfo("imxplatform.base-entity.list.dialog-create.success"),this.resetValues(),this.data.reloadFn()},V=>{this.userMessageService.showError(V||"imxplatform.base-entity.list.dialog-create.failure")})}close(){this.resetValues(),this.dialogRef.close(!1)}resetValues(){if("NEW"===this.data.mode){const f=this.data.formHandler.formGroup.get("importerName").value,L=this.data.formHandler.formGroup.get("sourceField").value;this.data.formHandler.formGroup.reset({importerName:f,sourceField:L})}else this.data.formHandler.formGroup.reset(),this.sourceFieldOptions=[],this.mappableFieldValues=void 0,this.baseEntityTypeOptions=[],this.baseEntityOptions=[],this.baseEntityType=void 0}getSubmitLabel(){return"NEW"===this.data.mode?"imxplatform.standard-import-mapping.dialog.submit-button-new":"imxplatform.standard-import-mapping.dialog.submit-button"}valid(){return!(!this.data.formRow.get("sourceValueOption").value&&!this.data.formRow.get("sourceValueId").value||!this.data.formRow.get("baseEntityId").value||this.data.formRow.get("baseEntityId").value===ts.F)}registerRequiredSourceFields(){setTimeout(()=>{const f=this.data.formHandler.formConfiguration.findFormFieldById("sourceValueId"),L=this.data.formHandler.formConfiguration.findFormFieldById("sourceValueOption"),V=this.data.formHandler.formGroup.get("sourceValueId"),Xe=this.data.formHandler.formGroup.get("sourceValueOption");this.mappableFieldValues&&0===this.mappableFieldValues.length?f&&(f.required=!0,f.applyValidatorsToControl(V),V.updateValueAndValidity(),L.required&&(L.required=!1,L.applyValidatorsToControl(Xe),Xe.updateValueAndValidity())):this.mappableFieldValues&&this.mappableFieldValues.length>0&&L&&(L.required=!0,L.applyValidatorsToControl(Xe),Xe.updateValueAndValidity(),f.required&&(f.required=!1,f.applyValidatorsToControl(V),V.updateValueAndValidity()))},100)}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(ae.WI),t.Y36(OC.b),t.Y36(sn.nq),t.Y36(i.qB),t.Y36(Y.sK),t.Y36(G0.x),t.Y36(c.Y),t.Y36(ae.so))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],decls:20,vars:23,consts:[["icon","icon-inbox","dialogType","form",3,"heading","submitButtonDisabled","useEvents","submitButtonLabel","onConfirm","onCancel"],["id","standard-import-mapping-mgmt-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],["translate","",1,"std-import-mapping-header"],[3,"field","control","form","formHandler","optionProvider"],[4,"ngIf"],["imxFormControl",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["name","addMappableBaseEntity",1,"import-mapping-base-entity-autocomplete",3,"autocompleteService","autocompleteFilter","label","displayItemFn","formControl","required","startAtChar"],["translate","",1,"hint"],[3,"field","control","form","formHandler","config"]],template:function(L,V){1&L&&(t.TgZ(0,"imx-dialog",0),t.NdJ("onConfirm",function(){return V.confirm()})("onCancel",function(){return V.close()}),t.TgZ(1,"form",1)(2,"div",2)(3,"div",3)(4,"h3",4),t._uU(5,"imxplatform.standard-import-mapping.dialog.header-general"),t.qZA(),t._UZ(6,"imx-select",5),t.qZA(),t.TgZ(7,"div",3)(8,"h3",4),t._uU(9,"imxplatform.standard-import-mapping.dialog.header-mapping-from"),t.qZA(),t._UZ(10,"imx-select",5),t.YNc(11,J0,2,5,"ng-container",6)(12,Y0,3,6,"ng-container",6),t.qZA(),t.TgZ(13,"div",3)(14,"h3",4),t._uU(15,"imxplatform.standard-import-mapping.dialog.header-mapping-to"),t.qZA(),t._UZ(16,"imx-select",5),t.YNc(17,z0,4,9,"ng-container",6),t.qZA()()()(),t.YNc(18,Ex,1,5,"ng-template",null,7,t.W1O)),2&L&&(t.Q6J("heading","entity.StandardImportMapping.entityName")("submitButtonDisabled",V.data.formRow.invalid||!V.valid())("useEvents",!0)("submitButtonLabel",V.getSubmitLabel()),t.xp6(),t.Q6J("formGroup",V.data.formRow),t.xp6(5),t.Q6J("field",V.data.formHandler.formConfiguration.findFormFieldById("importerName"))("control",V.data.formRow.get("importerName"))("form",V.data.formRow)("formHandler",V.data.formHandler)("optionProvider",V.importerNamesOptions),t.xp6(4),t.Q6J("field",V.data.formHandler.formConfiguration.findFormFieldById("sourceField"))("control",V.data.formRow.get("sourceField"))("form",V.data.formRow)("formHandler",V.data.formHandler)("optionProvider",V.sourceFieldOptions),t.xp6(),t.Q6J("ngIf",V.mappableFieldValues&&V.mappableFieldValues.length>0),t.xp6(),t.Q6J("ngIf",V.mappableFieldValues&&0===V.mappableFieldValues.length),t.xp6(4),t.Q6J("field",V.data.formHandler.formConfiguration.findFormFieldById("baseEntityType"))("control",V.data.formRow.get("baseEntityType"))("form",V.data.formRow)("formHandler",V.data.formHandler)("optionProvider",V.baseEntityTypeOptions),t.xp6(),t.Q6J("ngIf",V.baseEntityType))},dependencies:[e.O5,e.tP,x._Y,x.JJ,x.JL,x.Q7,x.oH,x.sg,Y.Pi,se.h,Qt.a,ee.A,ve.H],styles:[".std-import-mapping-header[_ngcontent-%COMP%]{margin-bottom:6px;margin-top:2px}.hint[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;color:#0000008a}"]})}return A})();function Ax(A,Gt){if(1&A&&(t.TgZ(0,"form",1)(1,"div",2)(2,"imx-grid")(3,"imx-grid-element",3),t._UZ(4,"imx-form-control",4),t.qZA(),t.TgZ(5,"imx-grid-element",3),t._UZ(6,"imx-form-control",4),t.qZA(),t.TgZ(7,"imx-grid-element",3),t._UZ(8,"imx-select",5),t.qZA(),t.TgZ(9,"imx-grid-element",3),t._UZ(10,"imx-form-control",4),t.qZA(),t.TgZ(11,"imx-grid-element",3),t._UZ(12,"imx-form-control",4),t.qZA(),t._UZ(13,"imx-grid-element",3),t.TgZ(14,"imx-grid-element",3),t._UZ(15,"imx-select",5),t.qZA(),t.TgZ(16,"imx-grid-element",3),t._UZ(17,"imx-form-control",4),t.qZA(),t.Hsn(18),t.qZA()()()),2&A){const f=t.oxw();t.Q6J("formGroup",f.parentForm),t.xp6(3),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("id"))("control",f.formHandler.formGroup.get("id"))("form",f.formHandler.formGroup.get("id"))("formHandler",f.formHandler)("config",f.formHandler.formConfiguration),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("importerName"))("control",f.formHandler.formGroup.get("importerName"))("form",f.formHandler.formGroup.get("importerName"))("formHandler",f.formHandler)("config",f.formHandler.formConfiguration),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("sourceField"))("control",f.formHandler.formGroup.get("sourceField"))("form",f.formHandler.formGroup.get("sourceField"))("formHandler",f.formHandler)("optionProvider",f.sourceFieldOptions),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("sourceValueName"))("control",f.formHandler.formGroup.get("sourceValueName"))("form",f.formHandler.formGroup.get("sourceValueName"))("formHandler",f.formHandler)("config",f.formHandler.formConfiguration),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("sourceValueId"))("control",f.formHandler.formGroup.get("sourceValueId"))("form",f.formHandler.formGroup.get("sourceValueId"))("formHandler",f.formHandler)("config",f.formHandler.formConfiguration),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("baseEntityType"))("control",f.formHandler.formGroup.get("baseEntityType"))("form",f.formHandler.formGroup.get("baseEntityType"))("formHandler",f.formHandler)("optionProvider",f.baseEntityTypeOptions),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("baseEntityId"))("control",f.formHandler.formGroup.get("baseEntityId"))("form",f.formHandler.formGroup.get("baseEntityId"))("formHandler",f.formHandler)("config",f.formHandler.formConfiguration)}}const wh=["*"];let H1=(()=>{class A extends qr.O{constructor(){super(),this.id="MAIN_FILTER",this.titleKey="imxplatform.common-entity.filter.baseEntityFilter.header",this.icon="icon-cube",this.sourceFieldOptions=[],this.baseEntityTypeOptions=[],this.filterFields=["id","importerName","sourceField","sourceValueId","sourceValueName","baseEntityType","baseEntityId"]}ngOnChanges(f){super.ngOnChanges(f),this.loadSourceFields(),this.loadBaseEntityTypes()}onPanelShown(){super.onPanelShown(),this.loadSourceFields(),this.loadBaseEntityTypes()}loadSourceFields(){this.sourceFields&&this.sourceFields.length>0&&this.sourceFields.forEach(f=>{0===this.sourceFieldOptions.filter(L=>L.value===f).length&&this.sourceFieldOptions.push({label:f,value:f})})}loadBaseEntityTypes(){this.baseEntityTypes&&this.baseEntityTypes.length>0&&this.baseEntityTypes.forEach(f=>{0===this.baseEntityTypeOptions.filter(L=>L.value===f).length&&this.baseEntityTypeOptions.push({label:"entity."+f+".entityName",value:f})})}onReset(){this.parentForm.controls.sourceField.setValue(void 0),this.parentForm.controls.importerName.setValue(void 0),this.parentForm.controls.id.setValue(void 0),this.parentForm.controls.sourceValueId.setValue(void 0),this.parentForm.controls.sourceValueName.setValue(void 0),this.parentForm.controls.baseEntityType.setValue(void 0),this.parentForm.controls.baseEntityId.setValue(void 0)}static#e=this.\u0275fac=function(L){return new(L||A)};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-standard-import-mapping-filter-panel"]],hostAttrs:[1,"imx-standard-import-mapping-filter-panel"],inputs:{sourceFields:"sourceFields",baseEntityTypes:"baseEntityTypes"},features:[t._Bn([(0,qr.T)(A)]),t.qOj,t.TTD],ngContentSelectors:wh,decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"filter__card"],[3,"lg_w","sm_w"],[3,"field","control","form","formHandler","config"],[3,"field","control","form","formHandler","optionProvider"]],template:function(L,V){1&L&&(t.F$t(),t.YNc(0,Ax,19,52,"form",0)),2&L&&t.Q6J("ngIf",V.panelShown)},dependencies:[e.O5,x._Y,x.JL,x.sg,On.M,_n.V,ee.A,ve.H],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}"]})}return A})();function eh(A,Gt){if(1&A&&t._UZ(0,"imx-standard-import-mapping-filter-panel",2,3),2&A){const f=t.oxw();t.Q6J("pinned",!0)("parentForm",f.formHandler.formGroup)("formHandler",f.formHandler)("record",f.record)("sourceFields",f.sourceFields)("baseEntityTypes",f.baseEntityTypes)}}let G1=(()=>{class A extends Cr.F{constructor(f){super(),this.imxEntitiesMgrService=f,this.standardImportMappings=[],this.sourceFields=[],this.baseEntityTypes=[]}refreshMappings(){this.loadAllMappings()}getEntityName(){return"StandardImportMapping"}loadAllMappings(){this.imxEntitiesMgrService.getAllEntitiesOfType(this.getEntityName()).pipe((0,Yr.q)(1)).subscribe(f=>{this.standardImportMappings=f.items,this.standardImportMappings&&this.standardImportMappings.length>0&&(this.sourceFields=this.standardImportMappings.map(L=>L.sourceField),this.baseEntityTypes=this.standardImportMappings.map(L=>L.baseEntityType))})}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(i.qB))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-standard-import-mapping-filter"]],features:[t.qOj],decls:3,vars:7,consts:[[3,"entityName","filterPanelsTemplate","formHandler","record","orderFields","orderField","orderDirection","orderChanged","save"],["filterPanelsTemplate",""],[3,"pinned","parentForm","formHandler","record","sourceFields","baseEntityTypes"],["filterPanel",""]],template:function(L,V){if(1&L&&(t.TgZ(0,"imx-filter",0),t.NdJ("orderChanged",function(An){return V.orderChanged.emit(An)})("save",function(An){return V.applyFilter.emit(An)}),t.YNc(1,eh,2,6,"ng-template",null,1,t.W1O),t.qZA()),2&L){const Xe=t.MAs(2);t.Q6J("entityName","StandardImportMapping")("filterPanelsTemplate",Xe)("formHandler",V.formHandler)("record",V.record)("orderFields",V.orderFields)("orderField",V.orderField)("orderDirection",V.orderDirection)}},dependencies:[Hi.z,H1],encapsulation:2})}return A})();var j0=a(97260),th=a(61157);const J1=["searchFilter"];function K0(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-create-new-entity-button",11),t.NdJ("create",function(){t.CHM(f);const V=t.oxw();return t.KtG(V.createStandardImportMapping())}),t.qZA()}2&A&&t.Q6J("fireCreateEvent",!0)("entityResourceKeyPrefix","imxplatform.standard-import-mapping")}function Q1(A,Gt){1&A&&(t.TgZ(0,"imx-list-no-results"),t._uU(1,"imxplatform.standard-import-mapping.list.no-records"),t.qZA())}function Dh(A,Gt){1&A&&t._UZ(0,"mat-progress-bar",12)}function $0(A,Gt){if(1&A&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&A){const f=Gt.$implicit;t.Udp("width",f.width),t.Q6J("ngClass",f.cssClass),t.xp6(),t.hij(" ",t.lcZ(2,4,f.header)," ")}}function q0(A,Gt){if(1&A&&(t.TgZ(0,"tr"),t.YNc(1,$0,3,6,"th",18),t.qZA()),2&A){const f=t.oxw(3);t.xp6(),t.Q6J("ngForOf",f.columnDefinitions)}}function X0(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-action-menu-item",24),t.NdJ("click",function(){t.CHM(f);const V=t.oxw().$implicit,Xe=t.oxw(3);return t.KtG(Xe.editStandardImportMapping(V))}),t._uU(1,"imxplatform.common-entity.list.edit "),t.qZA()}}function eb(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-action-menu-item",25),t.NdJ("click",function(){t.CHM(f);const V=t.oxw().$implicit,Xe=t.oxw(3);return t.KtG(Xe.removeStandardImportMapping(V))}),t._uU(1,"imxplatform.common-entity.list.remove "),t.qZA()}}function tb(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"tr")(1,"td")(2,"a",20),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3);return t.KtG(An.editStandardImportMapping(Xe))}),t._uU(3),t.qZA()(),t.TgZ(4,"td",21)(5,"a",20),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3);return t.KtG(An.editStandardImportMapping(Xe))}),t._uU(6),t.qZA()(),t.TgZ(7,"td",21)(8,"a",20),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3);return t.KtG(An.editStandardImportMapping(Xe))}),t._uU(9),t.qZA()(),t.TgZ(10,"td",21)(11,"a",20),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3);return t.KtG(An.editStandardImportMapping(Xe))}),t._uU(12),t.qZA()(),t.TgZ(13,"td",21)(14,"a",20),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3);return t.KtG(An.editStandardImportMapping(Xe))}),t._uU(15),t.qZA()(),t.TgZ(16,"td",21)(17,"a",20),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3);return t.KtG(An.editStandardImportMapping(Xe))}),t._uU(18),t.qZA()(),t.TgZ(19,"td",21)(20,"a",20),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3);return t.KtG(An.editStandardImportMapping(Xe))}),t._uU(21),t.qZA()(),t.TgZ(22,"td",21)(23,"a",20),t.NdJ("click",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3);return t.KtG(An.editStandardImportMapping(Xe))}),t._uU(24),t.qZA()(),t.TgZ(25,"td")(26,"imx-dropup-button")(27,"imx-action-menu"),t.YNc(28,X0,2,0,"imx-action-menu-item",22)(29,eb,2,0,"imx-action-menu-item",23),t.qZA()()()()}if(2&A){const f=Gt.$implicit,L=t.oxw(3);t.xp6(3),t.hij(" ",f.id," "),t.xp6(),t.Q6J("matTooltip",f.importerName)("matTooltipShowDelay",500),t.xp6(2),t.hij(" ",f.importerName," "),t.xp6(),t.Q6J("matTooltip",f.sourceField)("matTooltipShowDelay",500),t.xp6(2),t.hij(" ",f.sourceField," "),t.xp6(),t.Q6J("matTooltip",f.sourceValueName)("matTooltipShowDelay",500),t.xp6(2),t.hij(" ",f.sourceValueName," "),t.xp6(),t.Q6J("matTooltip",f.sourceValueId)("matTooltipShowDelay",500),t.xp6(2),t.hij(" ",f.sourceValueId," "),t.xp6(),t.Q6J("matTooltip",L.getBaseEntityTypeName(f.baseEntityType))("matTooltipShowDelay",500),t.xp6(2),t.hij(" ",L.getBaseEntityTypeName(f.baseEntityType)," "),t.xp6(),t.Q6J("matTooltip",f.baseEntityId)("matTooltipShowDelay",500),t.xp6(2),t.hij(" ",f.baseEntityId," "),t.xp6(),t.Q6J("matTooltip",L.getBaseEntityValueName(f.id))("matTooltipShowDelay",500),t.xp6(2),t.hij(" ",L.getBaseEntityValueName(f.id)," "),t.xp6(4),t.Q6J("hasAnyPermission",L.imxPermissions.F_STANDARD_IMPORT_MAPPING_UPDATE.name),t.xp6(),t.Q6J("hasAnyPermission",L.imxPermissions.F_STANDARD_IMPORT_MAPPING_DELETE.name)}}function wx(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"p-table",15),t.YNc(2,q0,2,1,"ng-template",16)(3,tb,30,24,"ng-template",17),t.qZA(),t.BQk()),2&A){const f=t.oxw().ngIf;t.xp6(),t.Q6J("value",f.items)}}function nh(A,Gt){if(1&A&&(t.TgZ(0,"div",13),t.YNc(1,wx,4,1,"ng-container",14),t.qZA()),2&A){const f=Gt.ngIf;t.oxw();const L=t.MAs(9);t.xp6(),t.Q6J("ngIf",f.items.length>0)("ngIfElse",L)}}const tg="StandardImportMapping";let Ih=(()=>{class A extends Ht.R{constructor(f,L,V,Xe,An,Qo,Dr,es,Al,Rl,$l,kl,Jl){super(f,L,V,An,Qo,Dr,es,Al,void 0,void 0,void 0,void 0,Jl,void 0,{moduleName:he.Q,entityName:tg}),this.platformMgmtDataAccessService=Rl,this.standardImportMappingFormHandlerService=$l,this.imxEntitiesMgrService=kl,this.translateService=Jl,this.imxPermissions=i.uo,this.availableOrderFields=[{index:1,field:"id",i18n:"entity.DataObject.id",type:an.m.numeric},{index:2,field:"importerName",i18n:"entity.StandardImportMapping.importerName",type:an.m.alphanumeric},{index:3,field:"sourceField",i18n:"entity.StandardImportMapping.sourceField",type:an.m.alphanumeric},{index:4,field:"baseEntityType",i18n:"entity.StandardImportMapping.baseEntityType",type:an.m.alphanumeric}],this.columnDefinitions=[{field:"id",header:"ID",width:"70px"},{field:"importerName",header:"entity.StandardImportMapping.importerName",width:"15%"},{field:"sourceField",header:"entity.StandardImportMapping.sourceField",width:"15%"},{field:"sourceValueName",header:"entity.StandardImportMapping.sourceValueName",width:"25%"},{field:"sourceValueId",header:"entity.StandardImportMapping.sourceValueId",width:"15%"},{field:"baseEntityType",header:"entity.StandardImportMapping.baseEntityType",width:"15%"},{field:"baseEntityId",header:"entity.StandardImportMapping.baseEntityId",width:"10%"},{field:"baseEntityValueName",header:"entity.StandardImportMapping.baseEntityValueName",width:"15%"},{field:"action",header:"",width:"5%"}],this.baseEntityValueNames=new Map,this.fireReloadEvent=!1}getEntityName(){return tg}createStandardImportMapping(){const f=this.standardImportMappingFormHandlerService,L=tg;this.imxEntitiesMgrService.newEntityOfType(L).subscribe(V=>{f.baseObject=V,this.dialog.open(Ig,{minWidth:600,data:{mode:"NEW",formRow:f.formGroup,formHandler:f,entityName:L,reloadFn:this.reloadRecords.bind(this)}}).afterClosed().subscribe(Xe=>{})})}editStandardImportMapping(f){const L=this.standardImportMappingFormHandlerService,V=tg;L.baseObject=f,this.dialog.open(Ig,{minWidth:600,data:{mode:"EDIT",formRow:L.formGroup,formHandler:L,entityName:V}}).afterClosed().subscribe(Xe=>{Xe&&this.reloadRecords()})}removeStandardImportMapping(f){const L=tg;this.dialog.open(Pd.F,{maxWidth:470,maxHeight:235,data:{i18n:"imxplatform.base-entity.list.action.delete.confirm",objectId:f.id}}).afterClosed().subscribe(V=>{V&&this.imxEntitiesMgrService.deleteEntityOfType(L,f.id).subscribe(Xe=>{this.reloadRecords(),this.userMessageService.showInfo(Xe?"imxplatform.base-entity.list.dialog-delete.success":"imxplatform.base-entity.list.dialog-delete.failure")},Xe=>{this.userMessageService.showError(Xe||"imxplatform.base-entity.list.dialog-delete.failure")})})}getSortPredicates(){return new Map}getFilterPredicates(){return[(0,Ja.xC)("id"),(0,Ja.FT)("importerName"),(0,Ja.Bo)("baseEntityId","baseEntityId"),(0,Ja.FT)("sourceValueId"),(0,Ja.FT)("baseEntityType"),(0,Ja.FT)("sourceField"),(0,Ja.Bo)("sourceValueName","sourceValueName")]}getBaseEntityTypeName(f){return this.translateService.instant("entity."+f+".entityName")}getDataObjectName(f){return(0,i.HD)(f)?f:(0,ga.QK)(f)||this.hasI18nNameProp(f)?f.i18nName[this.translateService.currentLang]:this.hasTitleProp(f)?f.title[this.translateService.currentLang]+" ("+f.id+")":(0,ga.A2)(f)?f.name:""}hasI18nNameProp(f){return"i18nName"in f}hasTitleProp(f){return"title"in f}getBaseEntityValueName(f){return this.baseEntityValueNames.get(f)}afterContentLoaded(){this.currentResult.items.forEach(f=>{let L;this.imxEntitiesMgrService.getEntityWithIdOfType(f.baseEntityType,f.baseEntityId).subscribe(V=>{L=this.getDataObjectName(V),this.baseEntityValueNames.set(f.id,L)})}),this.searchFilter.refreshMappings()}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(Jt.o),t.Y36(l.F0),t.Y36(l.gz),t.Y36(i.Yz),t.Y36(c.Y),t.Y36(Wi.G),t.Y36(ae.uw),t.Y36(j0.t),t.Y36(sn.nq),t.Y36(mr.Q),t.Y36(th.w),t.Y36(i.qB),t.Y36(Y.sK))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],viewQuery:function(L,V){if(1&L&&t.Gf(J1,7),2&L){let Xe;t.iGM(Xe=t.CRH())&&(V.searchFilter=Xe.first)}},features:[t.qOj],decls:15,vars:16,consts:[[1,"base-entity-search","list"],[3,"formHandler","record","orderFields","orderField","orderDirection","orderChanged","applyFilter","resetFilter"],["searchFilter",""],[3,"totalNumber","entityResourceKeyPrefix","showCompactToggle","reload"],["list-header-button-row",""],[3,"fireCreateEvent","entityResourceKeyPrefix","create",4,"hasAnyPermission"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],["class","table-wrapper",4,"ngIf","ngIfElse"],[3,"disableAllSelection","paging","selection","pageChanged","selectAll"],[3,"fireCreateEvent","entityResourceKeyPrefix","create"],["mode","indeterminate"],[1,"table-wrapper"],[4,"ngIf","ngIfElse"],[1,"imx-datatable",3,"value"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",3,"ngClass"],[1,"txt-link",3,"click"],[3,"matTooltip","matTooltipShowDelay"],["icon","icon-pencil",3,"click",4,"hasAnyPermission"],["icon","icon-trash","additionalStyle","delete",3,"click",4,"hasAnyPermission"],["icon","icon-pencil",3,"click"],["icon","icon-trash","additionalStyle","delete",3,"click"]],template:function(L,V){if(1&L&&(t.TgZ(0,"div",0)(1,"imx-standard-import-mapping-filter",1,2),t.NdJ("orderChanged",function(An){return V.sort(An)})("applyFilter",function(An){return V.search(An)})("resetFilter",function(){return V.reset()}),t.qZA(),t.TgZ(3,"imx-list-header",3),t.NdJ("reload",function(){return V.reloadComplete()}),t.ynx(4,4),t.YNc(5,K0,1,2,"imx-create-new-entity-button",5),t.BQk(),t.qZA(),t.TgZ(6,"imx-grid")(7,"imx-grid-element",6),t.YNc(8,Q1,2,0,"ng-template",null,7,t.W1O)(10,Dh,1,0,"ng-template",null,8,t.W1O)(12,nh,2,2,"div",9),t.ALo(13,"async"),t.qZA()(),t.TgZ(14,"imx-list-footer",10),t.NdJ("pageChanged",function(An){return V.onPageChanged(An)})("selectAll",function(An){return V.onSelectAll(An)}),t.qZA()()),2&L){const Xe=t.MAs(11);t.xp6(),t.Q6J("formHandler",V.filterFormHandler)("record",V.filter)("orderFields",V.availableOrderFields)("orderField",V.orderField)("orderDirection",V.orderDirection),t.xp6(2),t.Q6J("totalNumber",null==V.currentResult?null:V.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxplatform.standard-import-mapping")("showCompactToggle",!1),t.xp6(2),t.Q6J("hasAnyPermission",V.imxPermissions.F_STANDARD_IMPORT_MAPPING_CREATE.name),t.xp6(7),t.Q6J("ngIf",t.lcZ(13,14,V.results))("ngIfElse",Xe),t.xp6(2),t.Q6J("disableAllSelection",!0)("paging",V.pagingModel)("selection",V.selectionModel)}},dependencies:[e.mk,e.sg,e.O5,Ft.pW,qi.gM,wi.iA,zo.jx,wi.Q7,xi.p,ki.z,wo.t,On.M,_n.V,jo.N,Cn._,uo.A,yl.E,G1,yr.R,kn.F,e.Ov,Y.X$],styles:[".imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.base-entity-search[_ngcontent-%COMP%]{padding-bottom:50px;padding-top:50px}.base-entity-search[_ngcontent-%COMP%]   .icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.base-entity-search[_ngcontent-%COMP%]   .selected-size[_ngcontent-%COMP%]{color:#3e3e3e}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}[_nghost-%COMP%]     .imx-datatable tr, [_nghost-%COMP%]     .imx-datatable td{text-overflow:unset!important;white-space:unset!important}"]})}return A})();var TC=a(86904),nb=a(74815),Dx=a(53075);function Ix(A,Gt){1&A&&(t.TgZ(0,"imx-list-no-results"),t._uU(1,"imxplatform.user-activity.list.no-records"),t.qZA())}function ib(A,Gt){1&A&&t._UZ(0,"mat-progress-bar",6)}function V1(A,Gt){if(1&A&&(t.TgZ(0,"th",13),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&A){const f=Gt.$implicit;t.Udp("width",f.width),t.Q6J("ngClass",f.cssClass),t.xp6(),t.hij(" ",t.lcZ(2,4,f.header)," ")}}function ob(A,Gt){if(1&A&&(t.TgZ(0,"tr"),t.YNc(1,V1,3,6,"th",12),t.qZA()),2&A){const f=t.oxw(3);t.xp6(),t.Q6J("ngForOf",f.columnDefinitions)}}function rb(A,Gt){if(1&A&&(t.TgZ(0,"tr"),t.ynx(1),t.TgZ(2,"td"),t._uU(3),t.qZA(),t.TgZ(4,"td"),t._uU(5),t.qZA(),t.TgZ(6,"td"),t._uU(7),t.qZA(),t.TgZ(8,"td"),t._uU(9),t.qZA(),t.TgZ(10,"td"),t._uU(11),t.qZA(),t.BQk(),t.qZA()),2&A){const f=Gt.$implicit;t.xp6(3),t.hij(" ",f.userActivityInformation.userId," "),t.xp6(2),t.hij(" ",f.userActivityInformation.userName," "),t.xp6(2),t.hij(" ",f.userActivityInformation.type," "),t.xp6(2),t.hij(" ",f.userActivityInformation.accessTime," "),t.xp6(2),t.hij(" ",f.userActivityInformation.description," ")}}function Y1(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"p-table",9),t.YNc(2,ob,2,1,"ng-template",10)(3,rb,12,5,"ng-template",11),t.qZA(),t.BQk()),2&A){const f=t.oxw(2);t.xp6(),t.Q6J("value",f.activities)("resizableColumns",!0)}}function ab(A,Gt){if(1&A&&(t.TgZ(0,"div",7),t.YNc(1,Y1,4,2,"ng-container",8),t.qZA()),2&A){const f=t.oxw(),L=t.MAs(5);t.xp6(),t.Q6J("ngIf",f.activities.length>0)("ngIfElse",L)}}let sb=(()=>{class A{constructor(f,L){this.platformDataAccessService=f,this.changeDetectorRef=L,this.activities=[],this.columnDefinitions=[{field:"userId",header:"entity.UserActivityInformation.userId",width:"10%"},{field:"userName",header:"entity.UserActivityInformation.userName",width:"20%"},{field:"type",header:"entity.UserActivityInformation.type",width:"15%"},{field:"accessTime",header:"entity.UserActivityInformation.accessTime",width:"15%"},{field:"description",header:"entity.UserActivityInformation.description",width:"40%"}]}ngOnInit(){this.activitiesSubscription=(0,nb.F)(3e4).pipe((0,Dx.O)(0)).subscribe(()=>{try{this.reloadComplete()}catch{}})}ngOnDestroy(){this.activitiesSubscription.unsubscribe()}reloadComplete(){this.platformDataAccessService.getUserActivity().subscribe(f=>{this.activities=f,this.changeDetectorRef.markForCheck()})}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(sn.nq),t.Y36(t.sBO))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],decls:9,vars:5,consts:[[1,"base-entity-search","list"],[3,"totalNumber","entityResourceKeyPrefix","showCompactToggle","reload"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],["class","table-wrapper",4,"ngIf","ngIfElse"],["mode","indeterminate"],[1,"table-wrapper"],[4,"ngIf","ngIfElse"],[1,"imx-datatable",3,"value","resizableColumns"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",3,"ngClass"]],template:function(L,V){if(1&L&&(t.TgZ(0,"div",0)(1,"imx-list-header",1),t.NdJ("reload",function(){return V.reloadComplete()}),t.qZA(),t.TgZ(2,"imx-grid")(3,"imx-grid-element",2),t.YNc(4,Ix,2,0,"ng-template",null,3,t.W1O)(6,ib,1,0,"ng-template",null,4,t.W1O)(8,ab,2,2,"div",5),t.qZA()()()),2&L){const Xe=t.MAs(7);t.xp6(),t.Q6J("totalNumber",V.activities.length)("entityResourceKeyPrefix","imxplatform.user-activity")("showCompactToggle",!1),t.xp6(7),t.Q6J("ngIf",V.activities)("ngIfElse",Xe)}},dependencies:[e.mk,e.sg,e.O5,Ft.pW,wi.iA,zo.jx,wi.Q7,On.M,_n.V,Cn._,uo.A,Y.X$],styles:[".imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.base-entity-search[_ngcontent-%COMP%]{padding-bottom:50px;padding-top:50px}.base-entity-search[_ngcontent-%COMP%]   .icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.base-entity-search[_ngcontent-%COMP%]   .selected-size[_ngcontent-%COMP%]{color:#3e3e3e}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}"]})}return A})();var gg=a(59075),ih=a(76816),$_=a(31532);let hg=(()=>{class A{constructor(f,L,V,Xe,An,Qo,Dr,es){this.injector=f,this.ngControlBuilder=L,this.runtimeContextService=V,this.imxSecurityManagerService=Xe,this.formatterService=An,this.platformMgmtDataAccessService=Qo,this.dialog=Dr,this.userMessageService=es}createUser(f,L,V){const Xe=new $_.iN(this.injector.get($_.ez),this.injector.get($_.Be,[]),this.ngControlBuilder,this.runtimeContextService,this.imxSecurityManagerService,this.formatterService);return Xe.baseObject=f,Xe.formConfiguration.findFormFieldById("passwordDecrypted").required=!0,Xe.formConfiguration.findFormFieldById("passwordDecrypted").label="imxplatform.user-mgmt.dialog.passwordDecryptedNew",Xe.formConfiguration.findFormFieldById("passwordDecrypted").insertor=(0,ir.wq)("passwordDecrypted"),this.dialog.open(gg.l,{minWidth:600,data:{mode:"NEW",formRow:Xe.formGroup,formHandler:Xe,presetRoleIds:V}}).afterClosed().pipe((0,ht.x)(()=>this.resetPasswordFieldDefinition(Xe)),(0,O.w)(An=>{if(An){const Qo=Xe.getBaseObjectCopyWithCurrentFormValues();return this.platformMgmtDataAccessService.createUser(Qo,L).pipe((0,_a.K)(Dr=>{const es=this.createUser(Qo,L);return this.userMessageService.showError(Dr||"imxplatform.user-mgmt.dialog-create.failure"),es}))}return Ce.E}))}resetPasswordFieldDefinition(f){f.formConfiguration.findFormFieldById("passwordDecrypted").required=!1,f.formConfiguration.findFormFieldById("passwordDecrypted").label="entity.User.password",f.formConfiguration.findFormFieldById("passwordDecrypted").insertor=(0,ir.G3)()}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(t.zs3),t.LFG(Qe.EG),t.LFG(i.Ze),t.LFG(i.Xh),t.LFG(i.H1),t.LFG(mr.Q),t.LFG(ae.uw),t.LFG(c.Y))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();var oh=a(28181);const Sx=new Jr.E([new Gr.II("text","fulltext","imxplatform.user-mgmt.filter.fulltext"),new Gr.II("text","userIds","entity.DataObject.id",{extendedValidators:us.el,insertor:(0,ir.FO)((0,ir.wq)("userIds"))}),new na.A("clientIds","entity.User.client",{extractor:(0,wr.Id)("clientIds"),insertor:(0,ir.AA)("clientIds")}),new ts.P("roles","entity.User.roles",{optionProvider:oh.O,placeholder:"imxplatform.user-mgmt.filter.role-placeholder",initialValue:-1,extractor:(0,wr.V6)("roles")}),new _l.N("userStateIds","entity.UserState.entityName",{optionProvider:(0,Ws.h7)().sort((A,Gt)=>Gt.value-A.value),extractor:(0,wr.Id)("userStateIds"),insertor:(0,ir.AA)("userStateIds")}),new ts.P("userTypeId","entity.User.userType",{optionProvider:(0,Ws.P8)(),placeholder:"imxplatform.user-mgmt.filter.usertype-placeholder",initialValue:-1,extractor:(0,wr.V6)("userTypeId")})]);let Sh=(()=>{class A extends _r.z{constructor(f,L,V,Xe){super(Sx,void 0,f,L,Xe),this.runtimeContextService=L,this.imxSecurityManagerService=V}getEntityType(){return"User"}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(Qe.EG),t.LFG(i.Ze),t.LFG(i.Xh),t.LFG(i.H1))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();var W1=a(35617);function lb(A,Gt){if(1&A&&(t.TgZ(0,"form",1)(1,"div",2)(2,"imx-grid")(3,"imx-grid-element",3)(4,"div"),t._UZ(5,"imx-form-control",4),t.qZA()(),t.TgZ(6,"imx-grid-element",3),t._UZ(7,"imx-form-control",4),t.qZA(),t.TgZ(8,"imx-grid-element",3),t._UZ(9,"imx-form-control",4),t.qZA(),t.TgZ(10,"imx-grid-element",3),t._UZ(11,"imx-form-control",4),t.qZA(),t.TgZ(12,"imx-grid-element",5)(13,"label"),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._UZ(16,"imx-base-tree",6,7),t.qZA(),t.TgZ(18,"imx-grid-element",3),t._UZ(19,"imx-form-control",4),t.qZA()()()()),2&A){const f=t.oxw();t.Q6J("formGroup",f.parentForm),t.xp6(3),t.Q6J("lg_w",6)("sm_w",12),t.xp6(2),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("fulltext"))("control",f.formHandler.formGroup.get("fulltext"))("form",f.formHandler.formGroup.get("fulltext"))("formHandler",f.formHandler)("config",f.formHandler.formConfiguration),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("userIds"))("control",f.formHandler.formGroup.get("userIds"))("form",f.formHandler.formGroup.get("userIds"))("formHandler",f.formHandler)("config",f.formHandler.formConfiguration),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("roles"))("control",f.formHandler.formGroup.get("roles"))("form",f.formHandler.formGroup.get("roles"))("formHandler",f.formHandler)("config",f.formHandler.formConfiguration),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("userStateIds"))("control",f.formHandler.formGroup.get("userStateIds"))("form",f.formHandler.formGroup.get("userStateIds"))("formHandler",f.formHandler)("config",f.formHandler.formConfiguration),t.xp6(),t.Q6J("lg_w",6)("sm_w",12),t.xp6(2),t.Oqu(t.lcZ(15,42,f.getFormFieldLabel("clientIds"))),t.xp6(2),t.Q6J("displayNodeFn",f.displayFn)("sortNodesFn",f.sortFnForClient)("availableItems",f.allClients),t.xp6(2),t.Q6J("lg_w",6)("sm_w",12),t.xp6(),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("userTypeId"))("control",f.formHandler.formGroup.get("userTypeId"))("form",f.formHandler.formGroup.get("userTypeId"))("formHandler",f.formHandler)("config",f.formHandler.formConfiguration)}}let z1=(()=>{class A extends qr.O{constructor(f){super(),this.runtimeContextService=f,this.id="USER_MGMT_FILTER",this.titleKey="imxplatform.common-entity.filter.commonFilter.header",this.icon="icon-user2",this.allClients=[],this.filterFields=["fulltext","userIds","clientIds","roles","userStateIds","userTypeId"]}onReset(){this.parentForm.controls.clientIds.setValue([])}onPanelShown(){super.onPanelShown(),this.loadClients()}loadClients(){0===this.allClients.length&&this.runtimeContextService.getCurrentAndSubClients().subscribe(f=>{const L=Array.from(f).filter(V=>null==V.parent||!f.has(V.parent));this.allClients=L})}displayFn(f){return f?f.name:void 0}sortFnForClient(f,L,V){return f.name.localeCompare(L.name)}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(i.Ze))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-user-mgmt-filter-panel"]],hostAttrs:[1,"imx-user-mgmt-filter-panel"],features:[t._Bn([(0,qr.T)(A)]),t.qOj],decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"filter__card"],[3,"lg_w","sm_w"],[3,"field","control","form","formHandler","config"],[1,"tree_filter_panel",3,"lg_w","sm_w"],["formControlName","clientIds",3,"displayNodeFn","sortNodesFn","availableItems"],["tree",""]],template:function(L,V){1&L&&t.YNc(0,lb,20,44,"form",0),2&L&&t.Q6J("ngIf",V.panelShown)},dependencies:[e.O5,x._Y,x.JJ,x.JL,x.sg,x.u,On.M,_n.V,ee.A,W1.Q,Y.X$],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}"]})}return A})();function j1(A,Gt){if(1&A&&t._UZ(0,"imx-user-mgmt-filter-panel",2,3),2&A){const f=t.oxw();t.Q6J("pinned",!0)("parentForm",f.formHandler.formGroup)("formHandler",f.formHandler)("record",f.record)}}let Fx=(()=>{class A extends Cr.F{constructor(){super()}getEntityName(){return"User"}static#e=this.\u0275fac=function(L){return new(L||A)};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-user-mgmt-filter"]],features:[t.qOj],decls:3,vars:7,consts:[[3,"entityName","filterPanelsTemplate","formHandler","record","orderFields","orderField","orderDirection","orderChanged","save"],["filterPanelsTemplate",""],[3,"pinned","parentForm","formHandler","record"],["userMgmtFilterPanel",""]],template:function(L,V){if(1&L&&(t.TgZ(0,"imx-filter",0),t.NdJ("orderChanged",function(An){return V.orderChanged.emit(An)})("save",function(An){return V.applyFilter.emit(An)}),t.YNc(1,j1,2,4,"ng-template",null,1,t.W1O),t.qZA()),2&L){const Xe=t.MAs(2);t.Q6J("entityName","User")("filterPanelsTemplate",Xe)("formHandler",V.formHandler)("record",V.record)("orderFields",V.orderFields)("orderField",V.orderField)("orderDirection",V.orderDirection)}},dependencies:[Hi.z,z1]})}return A})();function K1(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-create-new-entity-button",14),t.NdJ("create",function(){t.CHM(f);const V=t.oxw();return t.KtG(V.createNewUser())}),t.qZA()}2&A&&t.Q6J("fireCreateEvent",!0)("entityResourceKeyPrefix","imxplatform.user-mgmt")}function cb(A,Gt){1&A&&(t.TgZ(0,"imx-list-no-results"),t._uU(1,"imxplatform.user-mgmt.list.no-records"),t.qZA())}function $1(A,Gt){1&A&&t._UZ(0,"mat-progress-bar",15)}function Lx(A,Gt){if(1&A&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&A){const f=Gt.$implicit;t.Udp("width",f.width),t.Q6J("ngClass",f.cssClass),t.xp6(),t.hij(" ",t.lcZ(2,4,f.header)," ")}}function q1(A,Gt){if(1&A&&(t.TgZ(0,"tr"),t.YNc(1,Lx,3,6,"th",21),t.qZA()),2&A){const f=t.oxw(3);t.xp6(),t.Q6J("ngForOf",f.columnDefinitions)}}function X1(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"a",30),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(2).$implicit,Xe=t.oxw(3);return t.KtG(Xe.editUser(V))}),t._uU(1),t.qZA()}if(2&A){const f=t.oxw(2).$implicit;t.xp6(),t.hij(" ",f.id," ")}}function db(A,Gt){if(1&A&&t._uU(0),2&A){const f=t.oxw(2).$implicit;t.hij(" ",f.id," ")}}function mb(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"a",30),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(2).$implicit,Xe=t.oxw(3);return t.KtG(Xe.editUser(V))}),t._uU(1),t.qZA()}if(2&A){const f=t.oxw(2).$implicit;t.xp6(),t.hij(" ",f.loginname," ")}}function Rx(A,Gt){if(1&A&&t._uU(0),2&A){const f=t.oxw(2).$implicit;t.hij(" ",f.loginname," ")}}function gf(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"a",30),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(2).$implicit,Xe=t.oxw(3);return t.KtG(Xe.editUser(V))}),t._uU(1),t.qZA()}if(2&A){const f=t.oxw(2).$implicit;t.xp6(),t.hij(" ",f.client.name," ")}}function rh(A,Gt){if(1&A&&t._uU(0),2&A){const f=t.oxw(2).$implicit;t.hij(" ",f.client.name," ")}}function Fu(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"a",30),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(2).$implicit,Xe=t.oxw(3);return t.KtG(Xe.editUser(V))}),t._uU(1),t.qZA()}if(2&A){const f=t.oxw(2).$implicit,L=t.oxw(3);t.xp6(),t.hij(" ",L.renderRoleNames(f.roles,"name")," ")}}function xg(A,Gt){if(1&A&&t._uU(0),2&A){const f=t.oxw(2).$implicit,L=t.oxw(3);t.hij(" ",L.renderRoleNames(f.roles,"name")," ")}}function ah(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"a",30),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(2).$implicit,Xe=t.oxw(3);return t.KtG(Xe.editUser(V))}),t._uU(1),t.qZA()}if(2&A){const f=t.oxw(2).$implicit;t.xp6(),t.hij(" ",f.organisation," ")}}function A_(A,Gt){if(1&A&&t._uU(0),2&A){const f=t.oxw(2).$implicit;t.hij(" ",f.organisation," ")}}function ub(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"a",30),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(2).$implicit,Xe=t.oxw(3);return t.KtG(Xe.editUser(V))}),t._uU(1),t.qZA()}if(2&A){const f=t.oxw(2).$implicit;t.xp6(),t.hij(" ",f.firstname," ")}}function Sg(A,Gt){if(1&A&&t._uU(0),2&A){const f=t.oxw(2).$implicit;t.hij(" ",f.firstname," ")}}function ev(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"a",30),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(2).$implicit,Xe=t.oxw(3);return t.KtG(Xe.editUser(V))}),t._uU(1),t.qZA()}if(2&A){const f=t.oxw(2).$implicit;t.xp6(),t.hij(" ",f.lastname," ")}}function tv(A,Gt){if(1&A&&t._uU(0),2&A){const f=t.oxw(2).$implicit;t.hij(" ",f.lastname," ")}}function pb(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"a",30),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(2).$implicit,Xe=t.oxw(3);return t.KtG(Xe.editUser(V))}),t._uU(1),t.qZA()}if(2&A){const f=t.oxw(2).$implicit;t.xp6(),t.hij(" ",f.address.email," ")}}function _b(A,Gt){if(1&A&&t._uU(0),2&A){const f=t.oxw(2).$implicit;t.hij(" ",f.address.email," ")}}function _u(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"a",30),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(2).$implicit,Xe=t.oxw(3);return t.KtG(Xe.editUser(V))}),t._uU(1),t.ALo(2,"date"),t.ALo(3,"convertTimestamps"),t.qZA()}if(2&A){const f=t.oxw(2).$implicit;t.xp6(),t.hij(" ",t.xi3(2,1,t.lcZ(3,4,f.lastLoginTime),"dd.MM.yyyy - HH:mm")," ")}}function nv(A,Gt){if(1&A&&(t._uU(0),t.ALo(1,"date"),t.ALo(2,"convertTimestamps")),2&A){const f=t.oxw(2).$implicit;t.hij(" ",t.xi3(1,1,t.lcZ(2,4,f.lastLoginTime),"dd.MM.yyyy - HH:mm")," ")}}function EC(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"a",30),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(2).$implicit,Xe=t.oxw(3);return t.KtG(Xe.editUser(V))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&A){const f=t.oxw(2).$implicit,L=t.oxw(3);t.xp6(),t.hij(" ",t.lcZ(2,1,L.renderUserType(f))," ")}}function Lu(A,Gt){if(1&A&&(t._uU(0),t.ALo(1,"translate")),2&A){const f=t.oxw(2).$implicit,L=t.oxw(3);t.hij(" ",t.lcZ(1,1,L.renderUserType(f))," ")}}function sh(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"a",30),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(2).$implicit,Xe=t.oxw(3);return t.KtG(Xe.editUser(V))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&A){const f=t.oxw(2).$implicit,L=t.oxw(3);t.xp6(),t.hij(" ",t.lcZ(2,1,"entity.UserState."+L.userStateTranslation.get(f.userStateId))," ")}}function Fg(A,Gt){if(1&A&&(t._uU(0),t.ALo(1,"translate")),2&A){const f=t.oxw(2).$implicit,L=t.oxw(3);t.hij(" ",t.lcZ(1,1,"entity.UserState."+L.userStateTranslation.get(f.userStateId))," ")}}function Fh(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-action-menu-item",33),t.NdJ("actionClicked",function(){t.CHM(f);const V=t.oxw(3).$implicit,Xe=t.oxw(3);return t.KtG(Xe.copyUser(V))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&A&&(t.xp6(),t.hij(" ",t.lcZ(2,1,"imxplatform.user-mgmt.list.copy")," "))}function lh(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-action-menu-item",34),t.NdJ("actionClicked",function(){const Xe=t.CHM(f).$implicit,An=t.oxw(3).$implicit,Qo=t.oxw(3);return t.KtG(Qo.executeRowAction(Xe,An))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&A){const f=Gt.$implicit;t.Q6J("icon",f.getIcon())("additionalStyle","icon-trash"==f.getIcon()?"delete":""),t.xp6(),t.hij(" ",t.lcZ(2,3,f.getActionLabelKey())," ")}}function ch(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-dropup-button")(1,"imx-action-menu")(2,"imx-action-menu-item",31),t.NdJ("click",function(){t.CHM(f);const V=t.oxw(2).$implicit,Xe=t.oxw(3);return t.KtG(Xe.editUser(V))}),t._uU(3,"imxplatform.common-entity.list.edit"),t.qZA(),t.YNc(4,Fh,3,3,"imx-action-menu-item",32)(5,lh,3,5,"ng-template",12),t.qZA()()}if(2&A){const f=t.oxw(2).$implicit,L=t.oxw(3);t.xp6(4),t.Q6J("hasAnyPermission",L.hasAdminPermssionStr),t.xp6(),t.Q6J("ngForOf",null==L.actionProvider?null:L.actionProvider.getRowActionsForType(L.getEntityName(),f.id))}}function iv(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"td"),t.YNc(2,X1,2,1,"a",27)(3,db,1,1),t.qZA(),t.TgZ(4,"td",28),t.YNc(5,mb,2,1,"a",27)(6,Rx,1,1),t.qZA(),t.TgZ(7,"td",28),t.YNc(8,gf,2,1,"a",27)(9,rh,1,1),t.qZA(),t.TgZ(10,"td",28),t.YNc(11,Fu,2,1,"a",27)(12,xg,1,1),t.qZA(),t.TgZ(13,"td",28),t.YNc(14,ah,2,1,"a",27)(15,A_,1,1),t.qZA(),t.TgZ(16,"td",28),t.YNc(17,ub,2,1,"a",27)(18,Sg,1,1),t.qZA(),t.TgZ(19,"td",28),t.YNc(20,ev,2,1,"a",27)(21,tv,1,1),t.qZA(),t.TgZ(22,"td",28),t.YNc(23,pb,2,1,"a",27)(24,_b,1,1),t.qZA(),t.TgZ(25,"td",28),t.ALo(26,"date"),t.ALo(27,"convertTimestamps"),t.YNc(28,_u,4,6,"a",27)(29,nv,3,6),t.qZA(),t.TgZ(30,"td",28),t.ALo(31,"translate"),t.YNc(32,EC,3,3,"a",27)(33,Lu,2,3),t.qZA(),t.TgZ(34,"td",28),t.ALo(35,"translate"),t.YNc(36,sh,3,3,"a",27)(37,Fg,2,3),t.qZA(),t.TgZ(38,"td"),t.YNc(39,ch,6,2,"imx-dropup-button",29),t.qZA(),t.BQk()),2&A){const f=Gt.$implicit,L=t.oxw().$implicit,V=t.oxw(3);t.xp6(2),t.um2(2,f?2:3),t.xp6(2),t.Q6J("matTooltip",L.loginname)("matTooltipShowDelay",500),t.xp6(),t.um2(5,f?5:6),t.xp6(2),t.Q6J("matTooltip",L.client.name)("matTooltipShowDelay",500),t.xp6(),t.um2(8,f?8:9),t.xp6(2),t.Q6J("matTooltip",V.renderRoleNames(L.roles,"name"))("matTooltipShowDelay",500),t.xp6(),t.um2(11,f?11:12),t.xp6(2),t.Q6J("matTooltip",L.organisation)("matTooltipShowDelay",500),t.xp6(),t.um2(14,f?14:15),t.xp6(2),t.Q6J("matTooltip",L.firstname)("matTooltipShowDelay",500),t.xp6(),t.um2(17,f?17:18),t.xp6(2),t.Q6J("matTooltip",L.lastname)("matTooltipShowDelay",500),t.xp6(),t.um2(20,f?20:21),t.xp6(2),t.Q6J("matTooltip",L.address.email)("matTooltipShowDelay",500),t.xp6(),t.um2(23,f?23:24),t.xp6(2),t.Q6J("matTooltip",t.xi3(26,32,t.lcZ(27,35,L.lastLoginTime),"dd.MM.yyyy - HH:mm"))("matTooltipShowDelay",500),t.xp6(3),t.um2(28,f?28:29),t.xp6(2),t.Q6J("matTooltip",t.lcZ(31,37,V.renderUserType(L)))("matTooltipShowDelay",500),t.xp6(2),t.um2(32,f?32:33),t.xp6(2),t.Q6J("matTooltip",t.lcZ(35,39,"entity.UserState."+V.userStateTranslation.get(L.userStateId)))("matTooltipShowDelay",500),t.xp6(2),t.um2(36,f?36:37),t.xp6(3),t.Q6J("ngIf",f)}}const kx=A=>({selected:A}),Nx=A=>[A];function Lh(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"tr",23)(1,"td",24)(2,"mat-checkbox",25),t.NdJ("change",function(V){t.CHM(f);const Xe=t.oxw(3);return t.KtG(Xe.onSelectionChanged(V))}),t.qZA()(),t.YNc(3,iv,40,41,"ng-container",26),t.ALo(4,"async"),t.qZA()}if(2&A){const f=Gt.$implicit,L=t.oxw(3);t.Q6J("ngClass",t.VKq(6,kx,L.isItemSelected(f.id))),t.xp6(2),t.Q6J("value",f.id)("checked",L.isItemSelected(f.id)),t.xp6(),t.Q6J("ngForOf",t.VKq(8,Nx,t.lcZ(4,4,L.editableMap.get(f.id))))}}function Ux(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"p-table",18),t.YNc(2,q1,2,1,"ng-template",19)(3,Lh,5,10,"ng-template",20),t.qZA(),t.BQk()),2&A){const f=t.oxw().ngIf;t.xp6(),t.Q6J("value",f.items)("resizableColumns",!0)}}function Rh(A,Gt){if(1&A&&(t.TgZ(0,"div",16),t.YNc(1,Ux,4,2,"ng-container",17),t.qZA()),2&A){const f=Gt.ngIf;t.oxw();const L=t.MAs(8);t.xp6(),t.Q6J("ngIf",f.items.length>0)("ngIfElse",L)}}function kh(A,Gt){if(1&A&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"span",35),t._uU(4),t.qZA()(),t._UZ(5,"span",36)),2&A){const f=t.oxw();t.xp6(),t.hij("",t.lcZ(2,2,"imxplatform.common-entity.list.selected-items")," "),t.xp6(3),t.hij("(",null==f.selectedIds?null:f.selectedIds.size,")")}}function vg(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-action-menu-item",34),t.NdJ("actionClicked",function(){const Xe=t.CHM(f).$implicit,An=t.oxw();return t.KtG(An.executeBatchAction(Xe))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&A){const f=Gt.$implicit;t.Q6J("icon",f.getIcon())("additionalStyle","icon-trash"==f.getIcon()?"delete":""),t.xp6(),t.hij(" ",t.lcZ(2,3,f.getActionLabelKey())," ")}}let fb=(()=>{class A extends hr.uY{constructor(f,L,V,Xe,An,Qo,Dr,es,Al,Rl,$l,kl,Jl,od,dm,Ku){super(f,L,V,Xe,An,Qo,Dr,es,void 0,$l,void 0,od,{}),this.filterFormHandler=Dr,this.imxEntitiesMgrService=Al,this.platformMgmtDataAccessService=Rl,this.runtimeContextService=kl,this.securityManagerService=Jl,this.userMgmtCreationService=dm,this.userMgmtFormHandlerService=Ku,this.imxPermissions=i.uo,this.hasAdminPermssionStr=i.uo.F_SYSTEM_MAINTENANCE_EXEC.name,this.availableOrderFields=[{index:1,field:"LOGINNAME",i18n:"entity.User.loginname",type:an.m.alphanumeric},{index:2,field:"ID",i18n:"entity.DataObject.id",type:an.m.numeric},{index:4,field:"CLIENT",i18n:"entity.User.client",type:an.m.alphanumeric}],this.userStateTranslation=new Map([[0,"DISABLED"],[20,"NEW"],[30,"PENDING"],[40,"ACTIVE"]]),this.orderField="ID",this.editableMap=new Map,this.columnDefinitions=[{field:"select",header:"",width:"40px",cssClass:"select-column"},{field:"id",header:"ID",width:"70px"},{field:"loginname",header:"entity.User.loginname",width:"10%"},{field:"client",header:"entity.User.client",width:"10%"},{field:"roles",header:"entity.User.roles",width:"20%"},{field:"organisation",header:"entity.User.organisation",width:"7.5%"},{field:"firstname",header:"entity.User.firstname",width:"7.5%"},{field:"lastname",header:"entity.User.lastname",width:"7.5%"},{field:"email",header:"entity.User.address.email",width:"7.5%"},{field:"lastLoginTime",header:"entity.User.lastLoginTime",width:"5%"},{field:"userType",header:"entity.User.userType",width:"5%"},{field:"userStateId",header:"entity.User.userState",width:"5%"},{field:"action",header:"",width:"5%",cssClass:"action-column"}]}getEntityName(){return"User"}onLoadRecords(f,L,V){super.onLoadRecords(f,L,V),f.items.forEach(Xe=>{this.editableMap.set(Xe.id,this.isUserEditable(Xe))})}getSetStateAction(){return this.actionProvider.findActionForKey("user-action-set_state")}copyUser(f){const L=f.address;L.email=null,this.showCreateUserDialog({id:null,loginname:"imx-"+f.loginname,address:L,client:f.client,roles:f.roles,_entityType:"User"})}createNewUser(){this.showCreateUserDialog({id:null,loginname:null,client:null,_entityType:"User"})}editUser(f){this.editableMap.get(f.id).pipe((0,Yr.q)(1)).subscribe(L=>{if(!L)throw new Error("insufficient permissions to edit user");{const V=this.userMgmtFormHandlerService;V.baseObject=f,this.dialog.open(gg.l,{minWidth:600,data:{mode:"EDIT",formRow:V.formGroup,formHandler:V}}).afterClosed().subscribe(An=>{if(An){const Qo=V.getBaseObjectCopyWithCurrentFormValues();this.platformMgmtDataAccessService.updateUser(Qo).subscribe(()=>{this.recordsOnceLoaded=!1,this.reloadData(),this.userMessageService.showInfo("imxplatform.user-mgmt.dialog-edit.success")},Dr=>{this.userMessageService.showError(Dr||"imxplatform.user-mgmt.dialog-edit.failure")})}})}})}deleteUser(f){this.dialog.open(Pd.F,{...Qt.D.FORM_SMALL,data:{i18n:"imxplatform.user-mgmt.list.action.delete.confirm",dialogTitle:"imxplatform.user-mgmt.dialog-delete.title",objectId:f.id}}).afterClosed().subscribe(V=>{V&&this.platformMgmtDataAccessService.deleteUser(f.id).subscribe(()=>{this.recordsOnceLoaded=!1,this.reloadData(),this.userMessageService.showInfo("imxplatform.user-mgmt.dialog-delete.success")},Xe=>{this.userMessageService.showError(Xe||"imxplatform.user-mgmt.dialog-delete.failure")})})}showCreateUserDialog(f){this.userMgmtCreationService.createUser(f).subscribe(L=>{L&&(this.recordsOnceLoaded=!1,this.reloadData(),this.userMessageService.showInfo("imxplatform.user-mgmt.dialog-create.success"))})}isPdfSubscriptUser(f){return"PdfSubscriptUser"===f._entityType}renderUserType(f){return this.isPdfSubscriptUser(f)?"entity.UserType.PDFSUBSCRIPTUSER":"entity.UserType."+f.userType}renderRoleNames(f,L){return f.map(V=>V.name).join(", ")}isUserEditable(f){if(this.isPdfSubscriptUser(f))return(0,u.of)(!1);if(this.securityManagerService.hasPermission(i.uo.F_USER_MANAGEMENT_UPDATE)){if((0,Rp.cR)(this.runtimeContextService.getLoginUser().loginname))return(0,u.of)(!0);if((0,Rp.y5)(f.loginname))return(0,u.of)(!1);const L=this.securityManagerService.getActionsStringForActionPermission(i.uo.ACTION_PERM_NAME_USER_MANAGMENT_ASSIGN_ROLES),V=L&&""!==L?L.split(","):[],Xe=[];for(const An of f.roles)Xe.push(this.imxEntitiesMgrService.getEntityWithIdOfType("UserRole",An.id).pipe((0,m.U)(Qo=>V.indexOf(An.id.toString())>-1||this.securityManagerService.hasAllPermissions(i.Xh.extractStaticPermissions(Qo)))));return(0,P.aj)(Xe).pipe((0,Dx.O)([!0]),(0,m.U)(An=>An.reduce((Qo,Dr)=>Qo&&Dr)))}return(0,u.of)(!1)}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(ih.l),t.Y36(l.F0),t.Y36(l.gz),t.Y36(c.Y),t.Y36(Wi.G),t.Y36(ae.uw),t.Y36(Sh),t.Y36(sn.nq),t.Y36(i.qB),t.Y36(mr.Q),t.Y36(Wr.Q),t.Y36(i.Ze),t.Y36(i.Xh),t.Y36(Ui.a),t.Y36(hg),t.Y36($_.iN))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],features:[t.qOj],decls:21,vars:19,consts:[[1,"base-entity-search","list"],[3,"formHandler","record","orderFields","orderField","orderDirection","orderChanged","applyFilter","resetFilter"],[3,"totalNumber","entityResourceKeyPrefix","showCompactToggle","reload"],["list-header-button-row",""],[3,"fireCreateEvent","entityResourceKeyPrefix","create",4,"hasAnyPermission"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],["class","table-wrapper",4,"ngIf","ngIfElse"],[3,"paging","selection","pageChanged","selectAll"],["position","above","halign","start"],["imx-dropup-trigger",""],["ngFor","",3,"ngForOf"],["icon","icon-star--add",3,"actionClicked"],[3,"fireCreateEvent","entityResourceKeyPrefix","create"],["mode","indeterminate"],[1,"table-wrapper"],[4,"ngIf","ngIfElse"],[1,"imx-datatable",3,"value","resizableColumns"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",3,"ngClass"],[3,"ngClass"],[1,"select-column"],[1,"",3,"value","checked","change"],[4,"ngFor","ngForOf"],["class","txt-link"],[3,"matTooltip","matTooltipShowDelay"],[4,"ngIf"],[1,"txt-link",3,"click"],["icon","icon-pencil",3,"click"],["icon","icon-copy",3,"actionClicked",4,"hasAnyPermission"],["icon","icon-copy",3,"actionClicked"],[3,"icon","additionalStyle","actionClicked"],[1,"selected-size"],[1,"icon-chevron-down"]],template:function(L,V){if(1&L&&(t.TgZ(0,"div",0)(1,"imx-user-mgmt-filter",1),t.NdJ("orderChanged",function(An){return V.sort(An)})("applyFilter",function(An){return V.search(An)})("resetFilter",function(){return V.reset()}),t.qZA(),t.TgZ(2,"imx-list-header",2),t.NdJ("reload",function(){return V.reloadComplete()}),t.ynx(3,3),t.YNc(4,K1,1,2,"imx-create-new-entity-button",4),t.BQk(),t.qZA(),t.TgZ(5,"imx-grid")(6,"imx-grid-element",5),t.YNc(7,cb,2,0,"ng-template",null,6,t.W1O)(9,$1,1,0,"ng-template",null,7,t.W1O)(11,Rh,2,2,"div",8),t.ALo(12,"async"),t.qZA()(),t.TgZ(13,"imx-list-footer",9),t.NdJ("pageChanged",function(An){return V.onPageChanged(An)})("selectAll",function(An){return V.onSelectAll(An)}),t.TgZ(14,"imx-dropup-button",10),t.YNc(15,kh,6,4,"ng-template",11),t.TgZ(16,"imx-action-menu"),t.YNc(17,vg,3,5,"ng-template",12),t.TgZ(18,"imx-action-menu-item",13),t.NdJ("actionClicked",function(){return V.addToObjectList()}),t._uU(19),t.ALo(20,"translate"),t.qZA()()()()()),2&L){const Xe=t.MAs(10);t.xp6(),t.Q6J("formHandler",V.filterFormHandler)("record",V.filter)("orderFields",V.availableOrderFields)("orderField",V.orderField)("orderDirection",V.orderDirection),t.xp6(),t.Q6J("totalNumber",null==V.currentResult?null:V.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxplatform.user-mgmt")("showCompactToggle",!1),t.xp6(2),t.Q6J("hasAnyPermission",V.imxPermissions.F_USER_MANAGEMENT_CREATE.name),t.xp6(7),t.Q6J("ngIf",t.lcZ(12,15,V.results))("ngIfElse",Xe),t.xp6(2),t.Q6J("paging",V.pagingModel)("selection",V.selectionModel),t.xp6(4),t.Q6J("ngForOf",null==V.actionProvider?null:V.actionProvider.getBatchActionsForType(V.getEntityName())),t.xp6(2),t.hij(" ",t.lcZ(20,17,"imxplatform.entity-list.object-list.action-title")," ")}},dependencies:[e.mk,e.sg,e.O5,ya.oG,Ft.pW,qi.gM,wi.iA,zo.jx,wi.Q7,xi.p,ki.z,wo.t,gr.F,On.M,_n.V,jo.N,Cn._,uo.A,yl.E,Fx,yr.R,kn.F,e.Ov,e.uU,Y.X$,c1.E],styles:[".imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.base-entity-search[_ngcontent-%COMP%]{padding-bottom:50px;padding-top:50px}.base-entity-search[_ngcontent-%COMP%]   .icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.base-entity-search[_ngcontent-%COMP%]   .selected-size[_ngcontent-%COMP%]{color:#3e3e3e}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}[_nghost-%COMP%]     .imx-datatable tr, [_nghost-%COMP%]     .imx-datatable td{text-overflow:unset!important;white-space:unset!important}"]})}return A})();var w_=a(99248);let ov=(()=>{class A extends h{constructor(f,L,V){super(f,L),this.entityBrowseHistoryStorageService=f,this.contactListService=L,this.dataAccess=V}getEntityType(){return"Article"}getDataObjectById(f){return this.dataAccess.getArticleById(f)}initCoreDataObject(f){return this.dataAccess.initArticle()}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(_o.I),t.LFG(bs.V),t.LFG(sn.nq))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})(),gb=(()=>{class A{constructor(f,L){this.router=f,this.dataAccessService=L}resolve(f,L){const V=Number.parseInt(f.paramMap.get("id")||"",10);return f.paramMap.has("id")&&!Number.isNaN(V)&&f.paramMap.has("type")?this.dataAccessService.getPortalPreviewUrl(f.paramMap.get("type"),V):Ce.E}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(l.F0),t.LFG(sn.nq))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();const rv=[{path:"login",component:j_,data:{title:"imxplatform.login.pageTitle"}},{path:"forgot-password",component:cl,data:{title:"imxplatform.forgot-password.pageTitle"}},{path:"dashboard",canActivate:[i.YX],component:lo,data:{title:"imxplatform.dashboard.pageTitle",guards:["AuthenticatedGuard"]}},{path:"base-entities",canActivate:[i.YX],data:{title:"imxplatform.base-entity.list.pageTitle",permissions:[i.uo.F_BASEENTITIES_MANAGEMENT_ALL,i.uo.F_MODULE_BASEENTITIES_MANAGEMENT_CREATE,i.uo.F_MODULE_BASEENTITIES_MANAGEMENT_READ,i.uo.F_MODULE_BASEENTITIES_MANAGEMENT_UPDATE,i.uo.F_MODULE_BASEENTITIES_MANAGEMENT_DELETE],guards:["AuthenticatedGuard","HasPermissionGuard"]},component:op},{path:"media",canActivate:[i.YX],component:Yg.u,data:{title:"imxplatform.media.list.pageTitle",permissions:[i.uo.F_POOLED_MEDIUM_MANAGEMENT_ALL],guards:["AuthenticatedGuard","AuthInitFinishedGuard"]}},{path:"articles",children:[{path:"edit/:id",canActivate:[i.YX],canDeactivate:[p],component:zc,resolve:{record:ov},data:{title:"imxplatform.article.edit.pageTitle",mode:"UPDATE",permissions:[i.uo.F_ARTICLE_READ_ALL,i.uo.F_ARTICLE_READ_OWN_CLIENT,i.uo.F_ARTICLE_READ_OWN_USER],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard","ProductlineLoadGuard"]}},{path:"new",canActivate:[i.YX],component:zc,resolve:{record:ov},data:{title:"imxplatform.article.edit.pageTitleNew",mode:"CREATE",permissions:[i.uo.F_ARTICLE_CREATE],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard","ProductlineLoadGuard"]}},{path:"compact",canActivate:[i.YX],component:Ld,data:{title:"imxplatform.article.list.pageTitleCompact",permissions:[i.uo.F_ARTICLE_READ_ALL,i.uo.F_ARTICLE_READ_OWN_CLIENT,i.uo.F_ARTICLE_READ_OWN_USER],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard","ProductlineLoadGuard"]}},{path:"",canActivate:[i.YX],component:Bd,data:{title:"imxplatform.article.list.pageTitle",permissions:[i.uo.F_ARTICLE_READ_ALL,i.uo.F_ARTICLE_READ_OWN_CLIENT,i.uo.F_ARTICLE_READ_OWN_USER],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard","ProductlineLoadGuard"]}}]},{path:"widgetconfig",canActivate:[i.YX],component:w_.o,data:{title:"imxplatform.widget-config.list.pageTitle",permissions:[i.uo.F_WIDGET_CONFIG_ADMINISTRATION],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard"]}},{path:"useractivity",canActivate:[i.YX],component:sb,data:{title:"imxplatform.navigation.user-activity",permissions:[i.uo.F_USER_MANAGEMENT_CREATE,i.uo.F_USER_MANAGEMENT_READ,i.uo.F_USER_MANAGEMENT_UPDATE,i.uo.F_USER_MANAGEMENT_DELETE],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard"]}},{path:"importerfileupload",canActivate:[i.YX],component:W_,data:{title:"imxplatform.importerfileupload.list.pageTitle",permissions:[i.uo.F_IMPORTER_FILE_UPLOAD_ALL],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard"]}},{path:"usermgmt",canActivate:[i.YX],component:fb,data:{title:"imxplatform.user-mgmt.list.pageTitle",permissions:[i.uo.F_USER_MANAGEMENT_CREATE,i.uo.F_USER_MANAGEMENT_READ,i.uo.F_USER_MANAGEMENT_UPDATE,i.uo.F_USER_MANAGEMENT_DELETE],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard"]}},{path:"referenceLists",canActivate:[i.YX],component:Ph,data:{title:"imxplatform.navigation.references",permissions:[i.uo.F_ENTITYLIST_CONTACT_MANAGEMENT],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard"]}},{path:"clientmgmt",canActivate:[i.YX],component:vp,data:{title:"imxplatform.client-mgmt.list.pageTitle",permissions:[i.uo.F_CLIENT_MANAGEMENT_CREATE,i.uo.F_CLIENT_MANAGEMENT_READ,i.uo.F_CLIENT_MANAGEMENT_UPDATE,i.uo.F_CLIENT_MANAGEMENT_DELETE],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard"]}},{path:"rolemgmt",canActivate:[i.YX],component:m0,data:{title:"imxplatform.role-mgmt.list.pageTitle",permissions:[i.uo.F_ROLE_MANAGEMENT_CREATE,i.uo.F_ROLE_MANAGEMENT_READ,i.uo.F_ROLE_MANAGEMENT_UPDATE,i.uo.F_ROLE_MANAGEMENT_DELETE],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard"]}},{path:"permissionmgmt",canActivate:[i.YX],component:Iu,data:{title:"imxplatform.permission-mgmt.list.pageTitle",permissions:[i.uo.F_PERMISSION_MANAGEMENT_CREATE,i.uo.F_PERMISSION_MANAGEMENT_READ,i.uo.F_PERMISSION_MANAGEMENT_UPDATE,i.uo.F_PERMISSION_MANAGEMENT_DELETE],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard"]}},{path:"addresspois",children:[{path:"edit/:id",canActivate:[i.YX],canDeactivate:[p],component:$n,resolve:{record:k},data:{title:"imxplatform.addresspoi.edit.pageTitle",mode:"UPDATE",permissions:[i.uo.F_ADDRESSPOI_READ_ALL,i.uo.F_ADDRESSPOI_LOCATION_READ_ALL,i.uo.F_ADDRESSPOI_CONTRIBUTOR_READ_ALL,i.uo.F_ADDRESSPOI_CONTACT_READ_ALL,i.uo.F_ADDRESSPOI_READ_OWN_CLIENT,i.uo.F_ADDRESSPOI_LOCATION_READ_OWN_CLIENT,i.uo.F_ADDRESSPOI_CONTRIBUTOR_READ_OWN_CLIENT,i.uo.F_ADDRESSPOI_CONTACT_READ_OWN_CLIENT,i.uo.F_ADDRESSPOI_READ_OWN_USER,i.uo.F_ADDRESSPOI_LOCATION_READ_OWN_USER,i.uo.F_ADDRESSPOI_CONTRIBUTOR_READ_OWN_USER,i.uo.F_ADDRESSPOI_CONTACT_READ_OWN_USER],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard"]}},{path:"new",canActivate:[i.YX],component:$n,resolve:{record:k},data:{title:"imxplatform.addresspoi.edit.pageTitleNew",mode:"CREATE",permissions:[i.uo.F_ADDRESSPOI_CREATE,i.uo.F_ADDRESSPOI_LOCATION_CREATE,i.uo.F_ADDRESSPOI_CONTRIBUTOR_CREATE,i.uo.F_ADDRESSPOI_CONTACT_CREATE],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard"]}},{path:"compact",canActivate:[i.YX],component:qs,data:{title:"imxplatform.addresspoi.list.pageTitleCompact",permissions:[i.uo.F_ADDRESSPOI_READ_ALL,i.uo.F_ADDRESSPOI_LOCATION_READ_ALL,i.uo.F_ADDRESSPOI_CONTRIBUTOR_READ_ALL,i.uo.F_ADDRESSPOI_CONTACT_READ_ALL,i.uo.F_ADDRESSPOI_READ_OWN_CLIENT,i.uo.F_ADDRESSPOI_LOCATION_READ_OWN_CLIENT,i.uo.F_ADDRESSPOI_CONTRIBUTOR_READ_OWN_CLIENT,i.uo.F_ADDRESSPOI_CONTACT_READ_OWN_CLIENT,i.uo.F_ADDRESSPOI_READ_OWN_USER,i.uo.F_ADDRESSPOI_LOCATION_READ_OWN_USER,i.uo.F_ADDRESSPOI_CONTRIBUTOR_READ_OWN_USER,i.uo.F_ADDRESSPOI_CONTACT_READ_OWN_USER],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard"]}},{path:"",canActivate:[i.YX],component:Tl,data:{title:"imxplatform.addresspoi.list.pageTitle",permissions:[i.uo.F_ADDRESSPOI_READ_ALL,i.uo.F_ADDRESSPOI_LOCATION_READ_ALL,i.uo.F_ADDRESSPOI_CONTRIBUTOR_READ_ALL,i.uo.F_ADDRESSPOI_CONTACT_READ_ALL,i.uo.F_ADDRESSPOI_READ_OWN_CLIENT,i.uo.F_ADDRESSPOI_LOCATION_READ_OWN_CLIENT,i.uo.F_ADDRESSPOI_CONTRIBUTOR_READ_OWN_CLIENT,i.uo.F_ADDRESSPOI_CONTACT_READ_OWN_CLIENT,i.uo.F_ADDRESSPOI_READ_OWN_USER,i.uo.F_ADDRESSPOI_LOCATION_READ_OWN_USER,i.uo.F_ADDRESSPOI_CONTRIBUTOR_READ_OWN_USER,i.uo.F_ADDRESSPOI_CONTACT_READ_OWN_USER],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard"]}}]},{path:"poiDuplicates",children:[{path:"",canActivate:[i.YX],component:lg,data:{title:"imxplatform.duplicate.list.pageTitle",permissions:[i.uo.F_ADDRESSPOI_DUPLICATES],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard"]}}]},{path:"inbox",children:[{path:"addresspois",children:[{path:"compact",component:Is,canActivate:[i.YX],data:{title:"imxplatform.addresspoi.list.datamanager.list.pageTitleCompact",permissions:[i.uo.F_ADDRESSPOI_READ_ALL,i.uo.F_ADDRESSPOI_LOCATION_READ_ALL,i.uo.F_ADDRESSPOI_CONTRIBUTOR_READ_ALL,i.uo.F_ADDRESSPOI_CONTACT_READ_ALL,i.uo.F_ADDRESSPOI_READ_OWN_CLIENT,i.uo.F_ADDRESSPOI_LOCATION_READ_OWN_CLIENT,i.uo.F_ADDRESSPOI_CONTRIBUTOR_READ_OWN_CLIENT,i.uo.F_ADDRESSPOI_CONTACT_READ_OWN_CLIENT,i.uo.F_ADDRESSPOI_READ_OWN_USER,i.uo.F_ADDRESSPOI_LOCATION_READ_OWN_USER,i.uo.F_ADDRESSPOI_CONTRIBUTOR_READ_OWN_USER,i.uo.F_ADDRESSPOI_CONTACT_READ_OWN_USER],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard"]}},{path:"",component:Ho,canActivate:[i.YX],data:{title:"imxplatform.addresspoi.list.datamanager.list.pageTitle",permissions:[i.uo.F_ADDRESSPOI_READ_ALL,i.uo.F_ADDRESSPOI_LOCATION_READ_ALL,i.uo.F_ADDRESSPOI_CONTRIBUTOR_READ_ALL,i.uo.F_ADDRESSPOI_CONTACT_READ_ALL,i.uo.F_ADDRESSPOI_READ_OWN_CLIENT,i.uo.F_ADDRESSPOI_LOCATION_READ_OWN_CLIENT,i.uo.F_ADDRESSPOI_CONTRIBUTOR_READ_OWN_CLIENT,i.uo.F_ADDRESSPOI_CONTACT_READ_OWN_CLIENT,i.uo.F_ADDRESSPOI_READ_OWN_USER,i.uo.F_ADDRESSPOI_LOCATION_READ_OWN_USER,i.uo.F_ADDRESSPOI_CONTRIBUTOR_READ_OWN_USER,i.uo.F_ADDRESSPOI_CONTACT_READ_OWN_USER],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard"]}}]}]},{path:"preview/:type/:id",canActivate:[i.YX],component:(()=>{class A{constructor(f,L){this.route=f,this.sanitizer=L,this.destroy$=new $e.xQ}ngOnInit(){this.route.data.pipe((0,tt.R)(this.destroy$)).subscribe(f=>{this.urlRaw=f.url,this.urlSafe=this.sanitizer.bypassSecurityTrustResourceUrl(f.url)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(l.gz),t.Y36(rt.H7))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],decls:5,vars:1,consts:[[1,"preview__header"],[1,"title"],["frameborder","0",1,"preview__frame",3,"src"]],template:function(L,V){1&L&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h1"),t._uU(3,"Preview"),t.qZA()()(),t._UZ(4,"iframe",2)),2&L&&(t.xp6(4),t.Q6J("src",V.urlSafe,t.uOi))},styles:[".preview__header[_ngcontent-%COMP%]{padding:10px 0;width:100%;text-align:center}.preview__header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{opacity:.2}.preview__header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font:600 30px/40px Noe Display,Arial,sans-serif;text-transform:uppercase}.preview__header[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font:400 12px GT Walsheim,Arial,sans-serif;text-decoration:none}.preview__frame[_ngcontent-%COMP%]{width:100%;height:calc(100% - 80px)}"]})}return A})(),resolve:{url:gb},data:{guards:["AuthenticatedGuard","AuthInitFinishedGuard"]}},{path:"configuration-definition",canActivate:[i.YX],data:{title:"imxplatform.configuration-definition.pageTitle",permissions:[i.uo.F_CONFIGURATION_DEFINITION_ALL,i.uo.F_CONFIGURATION_DEFINITION_CREATE,i.uo.F_CONFIGURATION_DEFINITION_READ_ALL,i.uo.F_CONFIGURATION_DEFINITION_UPDATE_ALL,i.uo.F_CONFIGURATION_DEFINITION_DELETE_ALL],guards:["AuthenticatedGuard","HasPermissionGuard"]},component:io},{path:"config",canActivate:[i.YX],component:ar,data:{permissions:[i.uo.F_SYSTEM_INFO_ALL],guards:["AuthenticatedGuard","AuthInitFinishedGuard"]}},{path:"entitylistmgmt",canActivate:[i.YX],component:cm,data:{guards:["AuthenticatedGuard","AuthInitFinishedGuard"]}},{path:"importconfig",canActivate:[i.YX],data:{title:"imxplatform.standard-import-config.list.pageTitle",permissions:[i.uo.F_STANDARD_IMPORT_MANAGEMENT_ALL,i.uo.F_STANDARD_IMPORT_MANAGEMENT_CREATE,i.uo.F_STANDARD_IMPORT_MANAGEMENT_READ,i.uo.F_STANDARD_IMPORT_MANAGEMENT_UPDATE,i.uo.F_STANDARD_IMPORT_MANAGEMENT_DELETE,i.uo.F_STANDARD_IMPORT_MANAGEMENT_EXECUTE],guards:["AuthenticatedGuard","HasPermissionGuard"]},component:H0},{path:"importmapping",canActivate:[i.YX],data:{permissions:[i.uo.F_STANDARD_IMPORT_MAPPING_ALL,i.uo.F_STANDARD_IMPORT_MAPPING_CREATE,i.uo.F_STANDARD_IMPORT_MAPPING_READ,i.uo.F_STANDARD_IMPORT_MAPPING_UPDATE,i.uo.F_STANDARD_IMPORT_MAPPING_DELETE],guards:["AuthenticatedGuard","HasPermissionGuard"]},component:Ih},{path:"search",canActivate:[i.YX],component:TC.H,data:{title:"imxplatform.universal-search-item.list.pageTitle",guards:["AuthenticatedGuard","AuthInitFinishedGuard"]}},{path:"loading",component:E_},{path:"oauth",component:mf},{path:"not-authorized",component:Jf},{path:"**",component:wg}];let Zx=(()=>{class A{static#e=this.\u0275fac=function(L){return new(L||A)};static#t=this.\u0275mod=t.oAB({type:A});static#n=this.\u0275inj=t.cJS({imports:[l.Bz.forChild(rv),l.Bz]})}return A})();var hb=a(45582),xb=a(6880),vb=a(49431),hf=a(80929),Lg=a(66789),Hx=a(77715),ng=a(34590),Nh=a(54699),Gx=a(18590);let Rg=(()=>{class A{constructor(f,L,V,Xe){this.data=f,this.runtimeContextService=L,this.availableLanguagesOptionProviderService=V,this.configurationProvider=Xe,this.targetLanguages=[],this.formGroup=new x.nJ({}),this.targetLangSelectCtrl=new x.p4;const An=this.configurationProvider.getStringFromSnapshot(i.x3.IMXPLATFORM_TRANSLATION_AVAILABLE_LANGUAGES);let Qo=[];An&&An.length>0&&(Qo=An.split(","),Qo.push(ts.F.toString())),this.availableLanguagesOptionProviderService.getOptions(void 0,void 0).pipe((0,Dx.O)([{value:ts.F.toString(),label:"imxplatform.common.select-placeholder-demand"}]),(0,m.U)(Dr=>Dr.filter(es=>"de"!==es.value))).subscribe(Dr=>{Qo&&Qo.length>0?this.targetLanguages.push(...Dr.filter(es=>Qo.includes(es.value))):this.targetLanguages.push(...Dr)}),this.targetLangSelectCtrl.setValue(ts.F.toString()),this.formGroup.registerControl("targetlanguage",this.targetLangSelectCtrl)}getDialogResult(){return{targetLanguage:this.targetLangSelectCtrl.value}}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(ae.WI),t.Y36(i.Ze),t.Y36(Gx.q),t.Y36(i.Pc))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],decls:10,vars:8,consts:[["heading","imxplatform.translate-action-dialog.header","icon","icon-languages","submitButtonLabel","imxplatform.translate-action-dialog.submit-button",3,"submitButtonDisabled","getSubmitResult"],[1,"dialog-form"],["id","translateGroup",3,"formGroup"],[1,"dialog-form-group"],["translate",""],[3,"formControl","options"],[1,"dialog-txt-md",3,"innerHTML"]],template:function(L,V){1&L&&(t.TgZ(0,"imx-dialog",0)(1,"div",1)(2,"div")(3,"form",2)(4,"div",3)(5,"label",4),t._uU(6,"imxplatform.translate-action-dialog.targetLanguage"),t.qZA(),t._UZ(7,"imx-base-select",5),t.qZA(),t._UZ(8,"p",6),t.ALo(9,"translate"),t.qZA()()()()),2&L&&(t.Q6J("submitButtonDisabled",V.formGroup.invalid||V.formGroup.pristine)("getSubmitResult",V.getDialogResult.bind(V)),t.xp6(3),t.Q6J("formGroup",V.formGroup),t.xp6(4),t.Q6J("formControl",V.targetLangSelectCtrl)("options",V.targetLanguages),t.xp6(),t.Q6J("innerHTML",t.lcZ(9,6,V.data.text),t.oJD))},dependencies:[x._Y,x.JJ,x.JL,x.oH,x.sg,Y.Pi,$s.o,Qt.a,Y.X$],encapsulation:2})}return A})();class Jx extends hf.h{constructor(Gt,f,L,V,Xe){super(Gt,f,L,V),this.dialog=Gt,this.dataAccess=f,this.entityStateDao=L,this.userMessageService=V,this.runtimeContextService=Xe}getOrder(){return this.ACTION_ORDER_TRANSLATE}doExecute(Gt){return this.executeBatch([...Array.of(Gt.id)])}executeBatch(Gt){return new Nh.y(f=>{this.dialog.open(Rg,{maxWidth:650,data:{text:"imxplatform.translate-action-dialog.attention"}}).afterClosed().subscribe(V=>{if(V){const Xe=this.createActionCallForBatch(this.getType(),Gt,{targetLanguage:V.targetLanguage});this.getLogger().info("Translation for objects: "+JSON.stringify(Xe)),this.dataAccess.callAction(Xe).subscribe(An=>{this.validateBatchResult(Gt,An),this.showSuccessMessage(An),f.next(!0)})}})})}getIcon(){return"icon-languages"}}var Qx=a(25203),av=a(12042);let sv=(()=>{class A{static#e=this.\u0275fac=function(L){return new(L||A)};static#t=this.\u0275dir=t.lG2({type:A,inputs:{formGroup:"formGroup"}})}return A})();var Vx=a(62934),bb=a(30342),Cb=a(9512),kg=a(96011);class lv{}var cv=a(8801),yb=a(1009),Ob=a(97111),dv=a(1026),mv=a(75789),uv=a(96585);let AC=(()=>{class A extends uv.e{constructor(f,L){super(f,L),this.entitiesMgr=f,this.dialog=L,this.extendedAttributesAvailable=(0,u.of)(!1)}ngOnInit(){this.extendedAttributes=this.entitiesMgr.getAllEntitiesOfType("ExtendedAttribute").pipe((0,m.U)(f=>f.items.filter(L=>L.modules&&L.modules.some(V=>V.id===this.moduleId)))),this.extendedAttributesAvailable=this.extendedAttributes.pipe((0,O.w)(f=>(0,u.of)(f.length>0)))}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(i.qB),t.Y36(ae.uw))};static#t=this.\u0275dir=t.lG2({type:A,features:[t.qOj]})}return A})();var Pb=a(36584),Uh=a(46939),Bh=a(51100),pv=a(13033),Yx=a(77966),Mb=a(81044),Tb=a(98869);let Eb=(()=>{class A{constructor(f,L){this.dataAccessService=f,this.configurationProvider=L}getAutocompleteHolders(f,L,V){const Xe=this.configurationProvider.getStringFromSnapshot(i.x3.IMXPLATFORM_EVENT_LOCATION_CONTRIBUTOR_AUTOCOMPLETE_FILTER_ENTITY_STATES),An=this.dataAccessService.getAddresspoiAutocomplete(f,L,{addresspoiType:H.GZ.id.toString(),entityStateIds:Xe||"",...V});return this.filterAutocompleteHoldersAfterLoad(An,V)}filterAutocompleteHoldersAfterLoad(f,L){return f}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(sn.nq),t.LFG(i.Pc))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();var N=a(89374),Lt=a(20171),M=a(45686),pe=a(90874),Ze=a(54576),xn=a(24525),Si=a(3305);function Ga(A,Gt){if(1&A&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&A){const f=t.oxw();t.xp6(),t.Oqu(f.titleDescription)}}function xs(A,Gt){if(1&A&&t._UZ(0,"span"),2&A){const f=t.oxw();t.Gre("",f.icon," marker")}}function vs(A,Gt){1&A&&t.GkF(0)}function bl(A,Gt){if(1&A){const f=t.EpF();t.ynx(0),t.TgZ(1,"a",12),t.NdJ("click",function(V){t.CHM(f);const Xe=t.oxw();return V.stopPropagation(),t.KtG(Xe.toggle())}),t.YNc(2,vs,1,0,"ng-container",13),t.qZA(),t.BQk()}if(2&A){t.oxw();const f=t.MAs(17);t.xp6(2),t.Q6J("ngTemplateOutlet",f)}}function Ll(A,Gt){1&A&&t.GkF(0)}function Tc(A,Gt){if(1&A&&(t.TgZ(0,"span",14),t.YNc(1,Ll,1,0,"ng-container",13),t.qZA()),2&A){t.oxw();const f=t.MAs(17);t.xp6(),t.Q6J("ngTemplateOutlet",f)}}function xc(A,Gt){if(1&A&&(t._UZ(0,"span",15),t.ALo(1,"translate")),2&A){const f=t.oxw();t.Q6J("ngClass",f.currentIcon+(f.isLocked?" locked":""))("matTooltip",t.lcZ(1,2,f.isLocked?"imxplatform.component.lockable-input.locked":"imxplatform.component.lockable-input.unlocked"))}}const fu=["*"],Nd="icon-lock",gu="icon-unlock";let pp=(()=>{class A extends rp.U{constructor(){super(...arguments),this.lockableFieldNames=[],this.lockableFields=[],this.isLocked=!1,this.hasEditPermission$=(0,u.of)(!1),this.currentIcon=gu}ngOnInit(){this.lockableFields=this.lockableFieldNames.map(L=>this.formHandler.formConfiguration.findFormFieldById(L));const f=this.formHandler.readLockedImportProperties();this.isLocked=this.lockableFields.filter(L=>f.some(V=>L.lockableId===V)).length===this.lockableFieldNames.length,this.currentIcon=this.isLocked?Nd:gu,this.hasEditPermission$=this.formHandler.hasSavePermission()}toggle(){this.isLocked=!this.isLocked,this.currentIcon=this.isLocked?Nd:gu,this.lockableFields.forEach(f=>{this.isLocked?this.formHandler.appendLockImportProperty(f.lockableId):this.formHandler.removeLockImportProperty(f.lockableId)})}static#e=this.\u0275fac=(()=>{let f;return function(V){return(f||(f=t.n5z(A)))(V||A)}})();static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-accordion-lockable-panel"]],inputs:{lockableFieldNames:"lockableFieldNames",formHandler:"formHandler"},features:[t.qOj],ngContentSelectors:fu,decls:19,vars:13,consts:[["hideToggle","true",3,"title","expanded","opened","closed"],[1,"open-close"],[1,"icon-plus",3,"hidden"],[1,"icon-minus",3,"hidden"],[1,"title"],["translate",""],[1,"description","txt-ellipsis"],[4,"ngIf"],[3,"class",4,"ngIf"],[4,"ngIf","ngIfElse"],["readonly",""],["lockableIcon",""],[1,"lockable-icon",3,"click"],[4,"ngTemplateOutlet"],[1,"lockable-icon","readonly"],["matTooltipPosition","above",1,"icon","imx-icon-small",3,"ngClass","matTooltip"]],template:function(L,V){if(1&L&&(t.F$t(),t.TgZ(0,"mat-expansion-panel",0),t.NdJ("opened",function(){return V.panelOpenState=!0})("closed",function(){return V.panelOpenState=!1}),t.ALo(1,"translate"),t.TgZ(2,"mat-expansion-panel-header")(3,"div",1),t._UZ(4,"span",2)(5,"span",3),t.qZA(),t.TgZ(6,"div",4)(7,"h3",5),t._uU(8),t.qZA()(),t.TgZ(9,"div",6),t.YNc(10,Ga,2,1,"span",7)(11,xs,1,3,"span",8),t.qZA(),t.YNc(12,bl,3,1,"ng-container",9),t.ALo(13,"async"),t.YNc(14,Tc,2,1,"ng-template",null,10,t.W1O)(16,xc,2,4,"ng-template",null,11,t.W1O),t.qZA(),t.Hsn(18),t.qZA()),2&L){const Xe=t.MAs(15);t.Q6J("title",t.lcZ(1,9,V.title))("expanded",V.expanded),t.xp6(4),t.Q6J("hidden",V.panelOpenState),t.xp6(),t.Q6J("hidden",!V.panelOpenState),t.xp6(3),t.Oqu(V.title),t.xp6(2),t.Q6J("ngIf",V.titleDescription),t.xp6(),t.Q6J("ngIf",V.icon),t.xp6(),t.Q6J("ngIf",t.lcZ(13,11,V.hasEditPermission$))("ngIfElse",Xe)}},dependencies:[e.mk,e.O5,e.tP,Si.ib,Si.yz,qi.gM,Y.Pi,kn.F,e.Ov,Y.X$],styles:[".mat-expansion-panel[_ngcontent-%COMP%]{background-color:#eefafa;border-bottom:1px solid #e6e9ef;border-radius:0!important}.mat-expansion-panel[_ngcontent-%COMP%]:not([class*=mat-elevation-z]){box-shadow:none}.mat-expansion-panel[_ngcontent-%COMP%]:not(.mat-expanded){overflow:visible}  .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-content{overflow:hidden}.mat-expansion-panel[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]{background-color:#eefafa;display:flex;height:48px!important;padding:8px 16px 0}.mat-expansion-panel[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]:hover{background-color:#e6e9ef}.mat-expansion-panel[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]   .open-close[_ngcontent-%COMP%]{width:30px;font-size:18px}.mat-expansion-panel[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{max-width:70%;min-width:33%}.mat-expansion-panel[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{color:#898989a6;font-size:14px;flex:1 1 auto;width:0}.mat-expansion-panel[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]   .marker[_ngcontent-%COMP%]{margin-left:10px}"]})}return A})();var Mp=a(87643),_p=a(60768),Ng=a(77323),Ab=a(63005),Zh=a(52463),_v=a(86228),Hh=a(72069),Gh=a(48845),dh=a(5606),Jh=a(13493),Qh=a(95575),Vh=a(7005),Yh=a(66684),Wh=a(68738),zh=a(60238),wC=a(54203);let DC=(()=>{class A extends Ws.Cf{constructor(f){super(),this.entitiesMgrService=f}getRootNodes(){return this.entitiesMgrService.getAllEntitiesOfType("Client").pipe((0,m.U)(f=>xm(f.items)),(0,m.U)(f=>f.filter(L=>null!==L.parent)),(0,G.b)(f=>f.forEach(L=>{L.parent.id===H.t8&&(L.parent=null)})),(0,m.U)(f=>f.filter(L=>null===L.parent)))}displayNodesFn(f){return f.name}sortNodesFn(f,L,V){return f.name.localeCompare(L.name)}sortRootNodesFn(f,L,V){return f.name.localeCompare(L.name)}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(i.qB))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();var IC=a(78942),SC=a(75678),FC=a(94366),wb=a(77020);const LC=["dialogFrame"];let RC=(()=>{class A{constructor(f){this.data=f}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(ae.WI))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],viewQuery:function(L,V){if(1&L&&t.Gf(LC,7),2&L){let Xe;t.iGM(Xe=t.CRH())&&(V.dialogFrame=Xe.first)}},decls:5,vars:6,consts:[["icon","icon-pencil","dialogType","form",3,"heading","submitButtonLabel"],["dialogFrame",""],[1,"dialog-form"],[1,"dialog-form-group"],[3,"form","field","formHandler","control"]],template:function(L,V){1&L&&(t.TgZ(0,"imx-dialog",0,1)(2,"div",2)(3,"div",3),t._UZ(4,"imx-i18n-multi-richtext",4),t.qZA()()()),2&L&&(t.Q6J("heading",V.data.title)("submitButtonLabel","imxplatform.common-entity.edit.save"),t.xp6(4),t.Q6J("form",V.data.form)("field",V.data.field)("formHandler",V.data.formHandler)("control",V.data.form.get(V.data.fieldName)))},dependencies:[Qt.a,wb.S],encapsulation:2})}return A})();var kC=a(63773);const fv=["dialogFrame"];function Ug(A,Gt){1&A&&t.GkF(0)}const OO=()=>({$implicit:"types"});function PO(A,Gt){if(1&A&&(t.TgZ(0,"div"),t.YNc(1,Ug,1,0,"ng-container",12),t.qZA()),2&A){t.oxw(2);const f=t.MAs(6);t.xp6(),t.Q6J("ngTemplateOutlet",f)("ngTemplateOutletContext",t.DdM(2,OO))}}function Db(A,Gt){if(1&A&&(t.TgZ(0,"imx-base-checkbox",13),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&A){const f=t.oxw(2);t.Q6J("formControl",f.addAsContributorCtrl),t.xp6(),t.Oqu(t.lcZ(2,2,"imxplatform.addresspoi.create.addAsContributor"))}}function Bg(A,Gt){if(1&A&&(t.TgZ(0,"imx-base-checkbox",13),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&A){const f=t.oxw(2);t.Q6J("formControl",f.addAsLocationCtrl),t.xp6(),t.Oqu(t.lcZ(2,2,"imxplatform.addresspoi.create.addAsLocation"))}}function gv(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"form",4)(1,"div",5)(2,"div",6),t._UZ(3,"imx-i18n-multi-input",7)(4,"imx-edit-client",8),t.YNc(5,PO,2,3,"div",9),t.TgZ(6,"imx-edit-contact",10),t.NdJ("zipcodeSelection",function(V){t.CHM(f);const Xe=t.oxw();return t.KtG(Xe.handleContact1ZipcodeSelection(V))})("citySelection",function(V){t.CHM(f);const Xe=t.oxw();return t.KtG(Xe.handleContact1CitySelection(V))}),t.qZA(),t.YNc(7,Db,3,4,"imx-base-checkbox",11)(8,Bg,3,4,"imx-base-checkbox",11),t.qZA()()()}if(2&A){const f=t.oxw();t.Q6J("formGroup",f.formHandler.formGroup),t.xp6(3),t.Q6J("field",f.formHandler.formConfiguration.findFormFieldById("title"))("control",f.formHandler.formGroup.get("title"))("form",f.formHandler.formGroup)("formHandler",f.formHandler),t.xp6(),t.Q6J("formHandler",f.formHandler)("feasibleClients",f.feasibleClients)("rootClients",f.rootClients),t.xp6(),t.Q6J("hasFieldReadPermission","types")("hasFieldReadPermissionFormHandler",f.formHandler),t.xp6(),t.Q6J("groupPrefix","contact1")("header","imxplatform.addresspoi.edit.panels.contact-data.contact1")("formHandler",f.formHandler)("smallVersion",!0),t.xp6(),t.Q6J("ngIf",f.isLocationTypeAndContributorSelected()),t.xp6(),t.Q6J("ngIf",f.isContributorTypeAndLocationSelected())}}function NC(A,Gt){if(1&A&&t._UZ(0,"imx-form-control",14),2&A){const f=Gt.$implicit,L=t.oxw();t.Q6J("field",L.formHandler.formConfiguration.findFormFieldById(f))("control",L.formHandler.formGroup.get(f))("form",L.formHandler.formGroup)("formHandler",L.formHandler)("config",L.formHandler.formConfiguration)}}let Ib=(()=>{class A{constructor(f,L,V,Xe,An,Qo){this.data=f,this.platformDataAccessService=L,this.userMessageService=V,this.entitiesMgr=Xe,this.entityCollectionsService=An,this.formHandler=Qo,this.feasibleClients=[],this.rootClients=[],this.initialized$=(0,u.of)(!1),this.addAsLocationCtrl=new x.p4,this.addAsContributorCtrl=new x.p4,this.loadRequiredProperties()}ngOnInit(){this.platformDataAccessService.initAddressPoi().pipe((0,m.U)(f=>f.AddressPoi)).subscribe(f=>{this.formHandler.baseObject=f,this.formHandler.formGroup.get("client").setValue(this.data.client),this.formHandler.formGroup.get("types").setValue([this.data.addressPoiType.id]),this.formHandler.formGroup.get("entityState").setValue(H.h_.key),this.formHandler.formGroup.addControl("addAsContributorCtrl",this.addAsContributorCtrl),this.initialized$=(0,u.of)(!0)}),this.loadFeasibleClients()}loadRequiredProperties(){this.platformDataAccessService.getRequiredPropertiesForCoreEntity("AddressPoi").subscribe(f=>{f.forEach(L=>{this.formHandler.applyRequiredPropertyDefinitionToField(L)})})}onConfirm(){if(this.formHandler.formGroup.valid){const f=this.formHandler.getBaseObjectCopyWithCurrentFormValues();this.platformDataAccessService.createAddressPoi(f).subscribe(L=>{this.userMessageService.showInfo("imxplatform.addresspoi.edit.saved-successfull-msg"),this.dialogFrame.close({addressPoi:L,addAsLocation:this.addAsLocationCtrl.value,addAsContributor:this.addAsContributorCtrl.value})},L=>{this.userMessageService.showError(L||"imxplatform.common-entity.edit.save-error")})}}onCancel(){this.dialogFrame.close(null)}isLocationTypeAndContributorSelected(){return this.data.addressPoiType.id===H.pv.id&&this.formHandler.formGroup.get("types").value.some(f=>f===H.GZ.id)}isContributorTypeAndLocationSelected(){return this.data.addressPoiType.id===H.GZ.id&&this.formHandler.formGroup.get("types").value.some(f=>f===H.pv.id)}handleContact1CitySelection(f){this.entitiesMgr.getEntityWithIdOfType("Location",f.entityId).subscribe(L=>{this.formHandler.handleCitySelection(L,"contact1.address.zipcode")})}handleContact1ZipcodeSelection(f){this.entitiesMgr.getEntityWithIdOfType("Location",f.entityId).subscribe(L=>{this.formHandler.handleZipcodeSelection(L,f.inputString,"contact1.address.zipcode","contact1.address.city")})}loadFeasibleClients(){this.entityCollectionsService.getSelectableClientsForAddressPoi().pipe((0,G.b)(f=>f.forEach(L=>{(null==L.parent||!f.some(V=>V.id===L.parent.id))&&this.rootClients.push(L)})),(0,m.U)(f=>{const L=[];return f.forEach(V=>L.push({label:V.name,value:V.id})),L.sort((V,Xe)=>V.label.localeCompare(Xe.label))})).subscribe(f=>this.feasibleClients=f)}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(ae.WI),t.Y36(sn.nq),t.Y36(c.Y),t.Y36(i.qB),t.Y36(b.f),t.Y36(Vn.qx))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],viewQuery:function(L,V){if(1&L&&t.Gf(fv,7),2&L){let Xe;t.iGM(Xe=t.CRH())&&(V.dialogFrame=Xe.first)}},hostAttrs:[1,"address-poi-create-dialog"],decls:7,vars:8,consts:[["icon","icon-entityType-AddressPoi","submitButtonLabel","imxplatform.common-entity.edit.save","dialogType","form",3,"heading","submitButtonDisabled","useEvents","onConfirm","onCancel"],["dialogFrame",""],["id","address-poi-create-dialog",3,"formGroup",4,"ngIf"],["imxControl",""],["id","address-poi-create-dialog",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[3,"field","control","form","formHandler"],[3,"formHandler","feasibleClients","rootClients"],[4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[3,"groupPrefix","header","formHandler","smallVersion","zipcodeSelection","citySelection"],[3,"formControl",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"formControl"],[3,"field","control","form","formHandler","config"]],template:function(L,V){1&L&&(t.TgZ(0,"imx-dialog",0,1),t.NdJ("onConfirm",function(){return V.onConfirm()})("onCancel",function(){return V.onCancel()}),t.ALo(2,"async"),t.YNc(3,gv,9,16,"form",2),t.ALo(4,"async"),t.qZA(),t.YNc(5,NC,1,5,"ng-template",null,3,t.W1O)),2&L&&(t.s9C("heading",V.data.title),t.Q6J("submitButtonDisabled",!t.lcZ(2,4,V.initialized$)||V.formHandler.formGroup.invalid)("useEvents",!0),t.xp6(3),t.Q6J("ngIf",t.lcZ(4,6,V.initialized$)))},dependencies:[e.O5,e.tP,x._Y,x.JJ,x.JL,x.oH,x.sg,Ka.G,Qt.a,K.L,bn.t,ee.A,$.J,Le.j,e.Ov,Y.X$]})}return A})();var UC=a(20949);let QM=(()=>{class A extends cv.T{constructor(f,L,V,Xe){super(f,L,V,Xe),this.imxSecurityManagerService=f,this.runtimeContext=L,this.configurationProvider=V,this.dataAccessService=Xe}getEntityType(){return"AddressPoiOccupancyList"}calcReadPermissionById(f){throw new Error("wong usage of calcReadPermissionById")}calcReadPermission(f){return(0,u.of)(!0)}calcSavePermissionById(f){throw new Error("wong usage of calcSavePermissionById")}calcSavePermission(f){return(0,u.of)(!0)}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(i.Xh),t.LFG(i.Ze),t.LFG(i.Pc),t.LFG(sn.nq))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();const MO=new Jr.E([BC(),HC()]);function BC(){return new UC.N("lastOccupancy",[new na.A("value","entity.AddressPoiOccupancy.value",{extendedValidators:[x.kI.min(0),x.kI.max(100)],insertor:(0,ir.G3)()}),new na.A("measurementTime","",{insertor:(0,ir.G3)()})],{extractor:(A=(0,wr.YL)("occupancies"),Gt=>{const f=A(Gt);if(f){f.sort(Sb);const L=new Date;let V;return f.forEach(Xe=>{new Date(Xe.measurementTime).getTime()<L.getTime()&&!Xe.forecast&&(V=Xe)}),V}}),insertor:(0,ir.G3)()});var A}function ZC(){return new Ea.OF("forecastOccupancies",!1,[new Gr.II("number","value","",{extendedValidators:[x.kI.min(0),x.kI.max(100)]}),new na.A("measurementTime","",{insertor:(0,ir.d_)((0,ir.wq)("measurementTime"))}),new na.A("forecast","",{insertor:(0,ir._U)((0,ir.wq)("forecast"),!0)})],{insertor:(0,ir.wq)("occupancies"),extractor:GC((0,wr.YL)("occupancies"))})}function HC(){return new UC.N("actualOccupancy",[new Gr.II("number","value","entity.AddressPoiOccupancy.value",{extendedValidators:[x.kI.min(0),x.kI.max(100),x.kI.required],insertor:JC((0,ir.wq)("value"))}),new na.A("measurementTime","",{extractor:(0,wr.O_)(),insertor:(0,ir.G3)()})],{insertor:Fb()})}function Sb(A,Gt){return new Date(A.measurementTime).getTime()-new Date(Gt.measurementTime).getTime()}function GC(A){return Gt=>{const f=A(Gt),L=new Date;return L.setHours(0,0,0,0),f.filter(V=>{const Xe=new Date(V.measurementTime);return Xe.setHours(0,0,0,0),Xe.getTime()>=L.getTime()&&V.forecast}).sort(Sb)}}function JC(A){return(Gt,f)=>{if(null==Gt||""===Gt)return null;{const L=f;L.id=void 0,L.measurementTime=(0,ir.Gk)(new Date),A(Gt,f)}}}function Fb(){return(A,Gt)=>{A&&Object.keys(A).length>0&&Gt.occupancies.push(A)}}let QC=(()=>{class A extends ne.p{constructor(f,L,V,Xe,An){super(MO,void 0,f,L,Xe,V,An),this.imxSecurityManagerService=L,this.formatterService=V}getEntityType(){return"AddressPoiOccupancyHolder"}isOwnedEntity(){return(0,u.of)(!0)}hasReadPermission(f){return this.savePermission$}hasEditPermission(f){return this.savePermission$}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(Qe.EG),t.LFG(i.Xh),t.LFG(i.H1),t.LFG(i.Ze),t.LFG(QM))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();var Lb=a(35350);const VC=["dialogFrame"];function jh(A,Gt){if(1&A&&(t.TgZ(0,"form",3),t._UZ(1,"imx-edit-occupancy",4),t.qZA()),2&A){const f=t.oxw();t.Q6J("formGroup",f.formHandler.formGroup),t.xp6(),t.Q6J("isWithinDialog",!0)("formHandler",f.formHandler)("addressPoiId",f.data.addressPoi.id)}}let TO=(()=>{class A{constructor(f,L,V,Xe,An){this.data=f,this.formHandler=L,this.translateService=V,this.platformDataAccessService=Xe,this.userMessageService=An,this.initialized$=(0,u.of)(!1)}ngOnInit(){this.platformDataAccessService.getAddressPoiOccupancy$(this.data.addressPoi.id).pipe().subscribe(f=>{this.formHandler.baseObject=f,this.initialized$=(0,u.of)(!0)})}isValid(){if(this.formHandler.formGroup.get("actualOccupancy")instanceof x.nJ&&this.formHandler.formGroup.get("actualOccupancy").get("value")){const f=this.formHandler.formGroup.get("actualOccupancy").get("value").value;return null!=f&&""!==f}return!1}onConfirm(){if(this.formHandler.formGroup.valid){const L=this.formHandler.formGroup.get("actualOccupancy").get("value").value;L&&this.platformDataAccessService.setAddressPoiOccupancy$(this.data.addressPoi.id,L).subscribe(V=>{this.userMessageService.showInfo("imxplatform.occupancy-dialog.saved-successfull-msg"),this.dialogFrame.close(!0)},V=>{this.userMessageService.showError(V||"imxplatform.occupancy-dialog.saved-error")})}}onCancel(){this.dialogFrame.close(null)}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(ae.WI),t.Y36(QC),t.Y36(Y.sK),t.Y36(sn.nq),t.Y36(c.Y))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],viewQuery:function(L,V){if(1&L&&t.Gf(VC,7),2&L){let Xe;t.iGM(Xe=t.CRH())&&(V.dialogFrame=Xe.first)}},hostAttrs:[1,"address-poi-occupancy-dialog"],decls:5,vars:8,consts:[["heading","imxplatform.occupancy-dialog.title","icon","icon-users-plus","submitButtonLabel","imxplatform.common-entity.edit.save","dialogType","form",3,"subline","submitButtonDisabled","useEvents","onConfirm","onCancel"],["dialogFrame",""],["id","address-poi-create-dialog",3,"formGroup",4,"ngIf"],["id","address-poi-create-dialog",3,"formGroup"],[3,"isWithinDialog","formHandler","addressPoiId"]],template:function(L,V){1&L&&(t.TgZ(0,"imx-dialog",0,1),t.NdJ("onConfirm",function(){return V.onConfirm()})("onCancel",function(){return V.onCancel()}),t.ALo(2,"readI18n"),t.YNc(3,jh,2,4,"form",2),t.ALo(4,"async"),t.qZA()),2&L&&(t.s9C("subline",t.lcZ(2,4,V.data.addressPoi.title)),t.Q6J("submitButtonDisabled",!V.isValid())("useEvents",!0),t.xp6(3),t.Q6J("ngIf",t.lcZ(4,6,V.initialized$)))},dependencies:[e.O5,x._Y,x.JL,x.sg,Qt.a,Lb.X,e.Ov,ue.j]})}return A})();const EO=["dialogFrame"];function YC(A,Gt){1&A&&t._UZ(0,"mat-progress-bar",15)}function AO(A,Gt){if(1&A&&t._UZ(0,"imx-table",16),2&A){const f=t.oxw();t.Q6J("columns",f.sensorDataColumnDefinitions)("data",f.filteredSensorData)}}let WC=(()=>{class A{constructor(f,L,V,Xe){this.data=f,this.formHandler=L,this.translateService=V,this.platformDataAccessService=Xe,this.sensorDataColumnDefinitions=[{accessor:"sensor.id",sortable:!0,columnTitle:"entity.OccupancySensor.entityName"},{accessor:"measurementTime",sortable:!0,columnTitle:"entity.AddressPoiOccupancy.measurementTime",customDisplayFn:this.formatMeasurementTimeTimeStamp},{accessor:"value",sortable:!0,columnTitle:"entity.AddressPoiOccupancy.value"}],this.isLoading=!1,this.idFilterFormControl=new x.p4(null),this.idFilterFieldPattern=us.UP,this.fromMeasurementTimeFilterFormControl=new x.p4,this.toMeasurementTimeFilterFormControl=new x.p4,this.sensorDataFilterFormGroup=new x.nJ({id:this.idFilterFormControl,measurementTimeFrom:this.fromMeasurementTimeFilterFormControl,measurementTimeTo:this.toMeasurementTimeFilterFormControl})}ngOnInit(){this._loadSensorData()}onCancel(){this.dialogFrame.close(null)}onConfirm(){this.dialogFrame.close(null)}_loadSensorData(){this.isLoading=!0,this.platformDataAccessService.getAddressPoiOccupancy$(this.data.addressPoi.id,"CREATION_TIME-DESC").pipe().subscribe(f=>{console.log(f),this.sensorData=f.occupancies,this.sensorData.map(L=>({addressPoiId:L.addressPoiId,measurementTime:new Date(L.measurementTime),value:L.value,sensor:L.sensor.id})).sort((L,V)=>L.sensor-V.sensor),this.filteredSensorData=this.sensorData,this.isLoading=!1})}formatMeasurementTimeTimeStamp(f){return f&&f.length>=2?f.slice(0,-2):"-"}convertCommaSeparatedIdListToArray(f){return f.replace(/\s/g,"").split(",").map(L=>parseInt(L,10))}filterSensorData(){const f=this.fromMeasurementTimeFilterFormControl.value,L=this.toMeasurementTimeFilterFormControl.value;let V=[];this.idFilterFormControl.valid&&this.idFilterFormControl.value&&(V=this.convertCommaSeparatedIdListToArray(this.idFilterFormControl.value)),V.length>0||f||L?this.filteredSensorData=this.sensorData.filter(An=>{let Qo=!1;if(V.length>0){if(!V.includes(An.sensor.id))return!1;Qo=!0}const Dr=new Date(this.formatMeasurementTimeTimeStamp(An.measurementTime).replace(" ","T")+"Z");if(f&&L){if(!(f<Dr&&L>Dr))return!1;Qo=!0}else if(f){if(!(f<Dr))return!1;Qo=!0}else if(L){if(!(L>Dr))return!1;Qo=!0}return Qo}):this._loadSensorData()}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(ae.WI),t.Y36(QC),t.Y36(Y.sK),t.Y36(sn.nq))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],viewQuery:function(L,V){if(1&L&&t.Gf(EO,7),2&L){let Xe;t.iGM(Xe=t.CRH())&&(V.dialogFrame=Xe.first)}},hostAttrs:[1,"address-poi-sensor-data-dialog"],decls:22,vars:13,consts:[["heading","imxplatform.common-entity.list.sensorData","icon","icon-sensor","submitButtonLabel","imxplatform.dialog.common-close","dialogType","form",3,"subline","cancelButtonLabel","useEvents","onConfirm","onCancel"],["dialogFrame",""],[1,"dialog-form",3,"formGroup"],[1,"dialog-form-group"],[1,"form__content-row"],[1,"sensorData-filter__text-filter"],["label","entity.AddressPoiOccupancy.id","formControlName","id","type","text",3,"pattern"],["label","imxplatform.common-entity.list.action.sensorData.date-interval-from","formControlName","measurementTimeFrom"],["label","imxplatform.common-entity.list.action.sensorData.date-interval-to","formControlName","measurementTimeTo"],[1,"sensorData__filterButton"],["id","sensor-filter__filter-btn",1,"imx-button","prio2","with-icon",3,"disabled","click"],[1,"icon","icon-refresh"],[1,"form__readonly_table"],["loading",""],["maxHeight","400px",3,"columns","data",4,"ngIf","ngIfElse"],["mode","indeterminate"],["maxHeight","400px",3,"columns","data"]],template:function(L,V){if(1&L&&(t.TgZ(0,"imx-dialog",0,1),t.NdJ("onConfirm",function(){return V.onConfirm()})("onCancel",function(){return V.onCancel()}),t.ALo(2,"readI18n"),t.TgZ(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5),t._UZ(7,"imx-base-input",6),t.qZA()(),t.TgZ(8,"div",4)(9,"div",5),t._UZ(10,"imx-base-date",7),t.qZA(),t.TgZ(11,"div",5),t._UZ(12,"imx-base-date",8),t.qZA()(),t.TgZ(13,"div",9)(14,"button",10),t.NdJ("click",function(){return V.filterSensorData()}),t._UZ(15,"i",11),t._uU(16),t.ALo(17,"translate"),t.qZA()()(),t.TgZ(18,"div",12),t.YNc(19,YC,1,0,"ng-template",null,13,t.W1O)(21,AO,1,2,"imx-table",14),t.qZA()()()),2&L){const Xe=t.MAs(20);t.s9C("subline",t.lcZ(2,9,V.data.addressPoi.title)),t.Q6J("cancelButtonLabel",void 0)("useEvents",!0),t.xp6(3),t.Q6J("formGroup",V.sensorDataFilterFormGroup),t.xp6(4),t.Q6J("pattern",V.idFilterFieldPattern),t.xp6(7),t.Q6J("disabled",!V.idFilterFormControl.valid),t.xp6(2),t.hij(" ",t.lcZ(17,11,"imxplatform.main.search")," "),t.xp6(5),t.Q6J("ngIf",!V.isLoading)("ngIfElse",Xe)}},dependencies:[e.O5,x.JJ,x.JL,x.c5,Ft.pW,x.sg,x.u,Ab.d,Ff.H,Qt.a,Ro.a,Y.X$,ue.j],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.sensorData__filterButton[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;padding-top:5px}.sensorData-filter__text-filter[_ngcontent-%COMP%]{flex:35%;flex-grow:0}.sensorData-filter__text-filter[_ngcontent-%COMP%]:first-child{margin:0 10px 0 0}.sensorData-filter__text-filter[_ngcontent-%COMP%]:nth-child(2){margin:0 0 0 10px}.form__readonly_table[_ngcontent-%COMP%]{border:1px solid #ced4e0;padding-left:20px;background:#eefafa}"]})}return A})();var VM=a(16699),Rb=a(12486);let kb=(()=>{class A extends Ws.I1{constructor(f,L){super(),this.entitiesMgrService=f,this.translateService=L}getOptions(f,L){return this.entitiesMgrService.getAllEntitiesOfType("AddressPoiGroup").pipe((0,m.U)(V=>V.items.map(Xe=>({label:Xe.title,value:Xe.id})).sort((Xe,An)=>(0,ga.Qi)(Xe.label,An.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(i.qB),t.LFG(Y.sK))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();var hv=a(3775);let Nb=(()=>{class A extends Ws.K${constructor(f){super(),this.portalContextPlsService=f}getOptions(f){if(f.formGroup&&f.formGroup.get("productlineIds")){const L=f.formGroup.get("productlineIds").value;return this.portalContextPlsService.getAllowedContextPls(L,f.getEntityType())}return(0,u.of)([])}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(hv.$))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();var Vf=a(38842),wO=a(21433),zC=a(55550),ig=a(1823),Yf=a(94699),q_=a(50308);function jC(A,Gt){if(1&A&&(t.ynx(0),t.TgZ(1,"imx-accordion-panel",3),t._uU(2),t.ALo(3,"json"),t.qZA(),t.BQk()),2&A){const f=Gt.$implicit,L=Gt.index;t.xp6(),t.Q6J("title","ImportID: "+f.importIdentifier)("expanded",0===L),t.xp6(),t.hij(" ",t.lcZ(3,3,f)," ")}}let KC=(()=>{class A extends Uh.x{constructor(f){super(),this.data=f}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(Bt.zn))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],features:[t.qOj],decls:8,vars:5,consts:[[1,"header"],["icon","chevron-rightBold",3,"isClickable","click"],[4,"ngFor","ngForOf"],[3,"title","expanded"]],template:function(L,V){1&L&&(t.TgZ(0,"div",0)(1,"div")(2,"h2"),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"imx-icon",1),t.NdJ("click",function(){return V.sidenav.close()}),t.qZA()(),t.TgZ(6,"imx-accordion"),t.YNc(7,jC,4,5,"ng-container",2),t.qZA()),2&L&&(t.xp6(3),t.Oqu(t.lcZ(4,3,"imxplatform.common-entity.edit.panels.import-info.title")),t.xp6(2),t.Q6J("isClickable",!0),t.xp6(2),t.Q6J("ngForOf",V.data.importInfos))},dependencies:[e.sg,f_.Z,rp.U,q_.o,e.Ts,Y.X$],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding-left:20px;height:100%}.header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:10px}.header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex:1;min-width:0;margin-right:5px}.header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .header[_ngcontent-%COMP%]   imx-icon[_ngcontent-%COMP%]     span{color:#000}"]})}return A})();function DO(A,Gt){1&A&&(t.TgZ(0,"h2"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&A&&(t.xp6(),t.Oqu(t.lcZ(2,1,"imxeventmanager.event.edit.panels.address.new-event-contributor")))}function IO(A,Gt){1&A&&(t.ynx(0),t.TgZ(1,"h2"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.BQk()),2&A&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"imxeventmanager.event.edit.panels.address.new-event-location")))}function SO(A,Gt){1&A&&t.GkF(0)}const FO=()=>({$implicit:"types"});function Ub(A,Gt){if(1&A&&(t.TgZ(0,"div"),t.YNc(1,SO,1,0,"ng-container",13),t.qZA()),2&A){t.oxw();const f=t.MAs(18);t.xp6(),t.Q6J("ngTemplateOutlet",f)("ngTemplateOutletContext",t.DdM(2,FO))}}function Wx(A,Gt){if(1&A&&t._UZ(0,"imx-form-control",14),2&A){const f=Gt.$implicit,L=t.oxw();t.Q6J("field",L.formHandler.formConfiguration.findFormFieldById(f))("control",L.formHandler.formGroup.get(f))("form",L.formHandler.formGroup)("formHandler",L.formHandler)("config",L.formHandler.formConfiguration)}}const LO=()=>({width:"100%",height:"90%"});let $C=(()=>{class A extends Uh.x{constructor(f,L,V,Xe){super(),this.data=f,this.formHandler=L,this.platformDataAccessService=V,this.userMessageService=Xe}ngOnInit(){this.platformDataAccessService.initAddressPoi().pipe((0,m.U)(f=>f.AddressPoi)).subscribe(f=>{this.formHandler.baseObject=f,this.record=f})}saveAddressPoi(){this.platformDataAccessService.createAddressPoi(this.formHandler.getBaseObjectCopyWithCurrentFormValues()).subscribe(f=>{3===this.data.addressPoiType.id?this.formHandler.formGroup.get("location").setValue(f.id):2===this.data.addressPoiType.id&&this.formHandler.formGroup.get("contributor").setValue(f.id),this.userMessageService.showInfo("imxplatform.addresspoi.edit.saved-successfull-msg"),this.sidenav.close()},f=>{this.userMessageService.showError(f||"imxplatform.common-entity.edit.save-error")})}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(Bt.zn),t.Y36(Vn.qx),t.Y36(sn.nq),t.Y36(c.Y))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],features:[t.qOj],decls:19,vars:19,consts:[[1,"header"],["contributor",""],[4,"ngIf","ngIfElse"],["icon","chevron-rightBold",3,"isClickable","click"],[1,"slide-in-panel"],[3,"formGroup","keydown.enter"],[3,"field","control","form","formHandler"],[3,"formHandler"],[4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[3,"groupPrefix","header","formHandler","smallVersion"],["translate","",1,"imx-button","prio2",3,"click"],["translate","",1,"imx-button","prio2",3,"disabled","click"],["imxControl",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"field","control","form","formHandler","config"]],template:function(L,V){if(1&L&&(t.TgZ(0,"div",0)(1,"div"),t.YNc(2,DO,3,3,"ng-template",null,1,t.W1O)(4,IO,4,3,"ng-container",2),t.qZA(),t.TgZ(5,"imx-icon",3),t.NdJ("click",function(){return V.sidenav.close()}),t.qZA()(),t.TgZ(6,"div",4)(7,"p-scrollPanel")(8,"form",5),t.NdJ("keydown.enter",function(An){return An.preventDefault()}),t._UZ(9,"imx-i18n-multi-input",6)(10,"imx-edit-client",7),t.YNc(11,Ub,2,3,"div",8),t._UZ(12,"imx-edit-contact",9),t.qZA()(),t.TgZ(13,"button",10),t.NdJ("click",function(){return V.sidenav.close()}),t._uU(14,"imxplatform.common-entity.edit.cancel"),t.qZA(),t.TgZ(15,"button",11),t.NdJ("click",function(){return V.saveAddressPoi()}),t._uU(16,"imxplatform.common-entity.edit.save"),t.qZA()(),t.YNc(17,Wx,1,5,"ng-template",null,12,t.W1O)),2&L){const Xe=t.MAs(3);t.xp6(4),t.Q6J("ngIf",3===V.data.addressPoiType.id)("ngIfElse",Xe),t.xp6(),t.Q6J("isClickable",!0),t.xp6(2),t.Akn(t.DdM(18,LO)),t.xp6(),t.Q6J("formGroup",V.formHandler.formGroup),t.xp6(),t.Q6J("field",V.formHandler.formConfiguration.findFormFieldById("title"))("control",V.formHandler.formGroup.get("title"))("form",V.formHandler.formGroup)("formHandler",V.formHandler),t.xp6(),t.Q6J("formHandler",V.formHandler),t.xp6(),t.Q6J("hasFieldReadPermission","types")("hasFieldReadPermissionFormHandler",V.formHandler),t.xp6(),t.Q6J("groupPrefix","contact1")("header","imxplatform.addresspoi.edit.panels.contact-data.contact1")("formHandler",V.formHandler)("smallVersion",!0),t.xp6(3),t.Q6J("disabled",V.formHandler.formGroup.invalid)}},dependencies:[e.O5,e.tP,x._Y,x.JL,x.sg,Y.Pi,Oi.P,q_.o,K.L,bn.t,ee.A,$.J,Le.j,Y.X$],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding-left:20px;height:100%}.header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:10px}.header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex:1;min-width:0;margin-right:5px}.header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .header[_ngcontent-%COMP%]   imx-icon[_ngcontent-%COMP%]     span{color:#000}.no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.slide-in-panel[_ngcontent-%COMP%]{min-height:0px;font-size:14px;line-height:20px}.slide-in-panel[_ngcontent-%COMP%] > .imx-button[_ngcontent-%COMP%]{float:right;margin-right:10px}"]})}return A})();var RO=a(94541),kO=a(48123),qC=a(4219),XC=a(88119),xv=a(24551),NO=a(27459),ey=a(42475),ty=a(57881),UO=a(59437),BO=a(6413),ZO=a(40395),HO=a(35452),GO=a(50334),JO=a(6469),QO=a(69258),VO=a(10791),ny=a(34077),YO=a(18341),vv=a(75794);class WO extends vv.m{constructor(Gt,f){super(f),this.baseEntityTypeName=Gt,this.extensions=f}}var zx=a(37014),iy=a(97683),oy=a(40175),Bb=a(54320);class ry{}var zO=a(66706),jO=a(69244),Zb=a(84005),KO=a(60092);let ay=(()=>{class A{constructor(f,L,V){this.templateRef=f,this.viewContainer=L,this.securityManager=V}ngOnInit(){this.viewContainer.clear(),this.permissions&&this.securityManager.hasAllPermissionByNames(this.permissions)&&this.viewContainer.createEmbeddedView(this.templateRef)}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(t.Rgc),t.Y36(t.s_b),t.Y36(i.Xh))};static#t=this.\u0275dir=t.lG2({type:A,selectors:[["","has-all-permission",""]],inputs:{permissions:[t.lbL.None,"has-all-permission","permissions"]}})}return A})();var $O=a(44365),sy=a(2901),Hb=a(50054);function qO(A,Gt){if(1&A&&t._UZ(0,"imx-label-lockable",2),2&A){const f=t.oxw();t.Q6J("field",f.field)("formHandler",f.formHandler)("form",f.formHandler.formGroup)("renderBig",!0)}}function XO(A,Gt){if(1&A&&(t._UZ(0,"imx-base-input-label",5),t.ALo(1,"readI18n")),2&A){const f=t.oxw().$implicit;t.s9C("label",t.lcZ(1,1,f.i18nName))}}function Gb(A,Gt){if(1&A&&(t.ynx(0),t.YNc(1,XO,2,3,"imx-base-input-label",3),t._UZ(2,"imx-checkbox-select",4),t.BQk()),2&A){const f=Gt.$implicit,L=t.oxw();t.xp6(),t.Q6J("ngIf",f.i18nName),t.xp6(),t.Q6J("field",L.field)("forceHideLabel",!0)("control",L.control)("form",L.form)("formHandler",L.formHandler)("optionProvider",f.attributes)("rowLayout",!0)("showLine",!1)}}let eP=(()=>{class A extends Bh.A{constructor(f,L){super(),this.entitiesMgr=f,this.readI18nPipe=L,this.groupedAttributes=[],this.defaultAttributeGroup={id:0,i18nName:void 0}}ngOnInit(){super.ngOnInit(),this._loadAttributes()}_loadAttributes(){this.entitiesMgr.getAllEntitiesOfType(this.i18AttributeType).pipe((0,Yr.q)(1)).subscribe(f=>{this.groupedAttributes=this._groupAttributes(f.items).sort((L,V)=>L.id-V.id)})}_groupAttributes(f){const L=[];f.forEach(V=>{const Xe=this._createAttributeOption(V);if(Xe){let{attributeGroup:An}=V;null===An&&(An=this.defaultAttributeGroup);const Qo=L.findIndex(Dr=>Dr.id===An.id);-1===Qo?L.push({...An,attributes:[Xe]}):L[Qo].attributes.push(Xe)}});for(const V of L)V.attributes.sort((Xe,An)=>Xe.label.localeCompare(An.label));return L}_createAttributeOption(f){const{i18nName:L,id:V}=f;return V&&L?{label:this._createAttributeOptionLabel(f),value:V}:null}_createAttributeOptionLabel(f){const{i18nName:L}=f;return L?this.readI18nPipe.transform(L):""}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(i.qB),t.Y36(ue.j))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-i18n-attributes"]],inputs:{form:"form",i18AttributeType:"i18AttributeType"},features:[t._Bn([{provide:x.JU,useExisting:(0,t.Gpc)(()=>A),multi:!0}]),t.qOj],decls:3,vars:2,consts:[[3,"field","formHandler","form","renderBig",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"field","formHandler","form","renderBig"],[3,"label",4,"ngIf"],[3,"field","forceHideLabel","control","form","formHandler","optionProvider","rowLayout","showLine"],[3,"label"]],template:function(L,V){1&L&&(t.YNc(0,qO,1,4,"imx-label-lockable",0),t._UZ(1,"br"),t.YNc(2,Gb,3,9,"ng-container",1)),2&L&&(t.Q6J("ngIf",V.field.renderLabel&&V.field.label),t.xp6(2),t.Q6J("ngForOf",V.groupedAttributes))},dependencies:[e.sg,e.O5,sy.u,vx.r,Hb.m,ue.j]})}return A})();var bv=a(23646),Cv=a(91597),Jb=a(56416),ly=a(85768),tP=a(15452),nP=a(65073),iP=a(42266),yv=a(44382),Ov=a(45118),Qb=a(8766),cy=a(81169),oP=a(51441);let rP=(()=>{class A extends Ws.I1{constructor(f){super(),this.collectionsService=f}getOptions(f,L){return this.collectionsService.getAllInputFieldTypes().pipe((0,m.U)(V=>V.filter(An=>!(!f||!("_entityType"in f))&&("Addressbase"===f._entityType&&An.usedForAddressbases||"Offer"===f._entityType&&An.usedForOffers||"Event"===f._entityType&&An.usedForEvents)).map(An=>({label:An.name,value:An.id})).sort((An,Qo)=>An.label.localeCompare(Qo.label)).reverse()))}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(b.f))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();var dy=a(90611),Vb=a(13744),Yb=a(20020),mh=a(20714),aP=a(82134),sP=a(15549),Kh=a(73192),Zg=a(3619),Wb=a(48802),YM=a(47918),my=a(61936),uy=a(8818);let WM=(()=>{class A extends Ws.I1{constructor(f,L){super(),this.entitiesMgrService=f,this.runtimeContextService=L}getOptions(f,L){return this.entitiesMgrService.getEntityWithIdOfType("Client",this.runtimeContextService.getLoginClient().id).pipe((0,m.U)(V=>{const Xe=[];return Xe.push(...this.getClientAndSubClientOptions(V)),V.parent&&Xe.push(...this.getParentOptions(V.parent)),Xe}))}getClientAndSubClientOptions(f){const L=[{label:f.name,value:f.id}];return f.children&&f.children.forEach(V=>L.push(...this.getClientAndSubClientOptions(V))),L}getParentOptions(f){if(0!==f.id){const L=[{label:f.name,value:f.id}];return f.parent&&L.push(...this.getParentOptions(f.parent)),L}return[]}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(i.qB),t.LFG(i.Ze))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();var $h=a(60292),lP=a(70612),cP=a(90230),dP=a(34446),qh=a(44590),mP=a(21647),Pv=a(72599),Mv=a(66182),D_=a(1061);let py=(()=>{class A{constructor(f){this.data=f}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(ae.WI))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],decls:8,vars:19,consts:[["heading","imxplatform.common-entity.edit.panels.media.edit-media-assignment","icon","icon-link","dialogType","form",3,"subline","submitButtonDisabled"],["id","media-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[3,"field","control","form","formHandler","config"],[3,"formHandler","mediaAssignmentFormRow","media","mediaField"]],template:function(L,V){1&L&&(t.TgZ(0,"imx-dialog",0),t.ALo(1,"readI18n"),t.TgZ(2,"form",1)(3,"div",2)(4,"div",3),t._UZ(5,"imx-form-control",4)(6,"imx-form-control",4),t.qZA(),t._UZ(7,"imx-edit-media-assignment",5),t.qZA()()()),2&L&&(t.Q6J("subline",t.lcZ(1,17,V.data.media.pooledMedium.title))("submitButtonDisabled",V.data.formHandler.formGroup.pristine||V.data.formHandler.formGroup.invalid),t.xp6(2),t.Q6J("formGroup",V.data.formHandler.formGroup),t.xp6(3),t.Q6J("field",V.data.mediaField.getChildField("title"))("control",V.data.mediaFormRow.get("title"))("form",V.data.mediaFormRow)("formHandler",V.data.formHandler)("config",V.data.formHandler.formConfiguration),t.xp6(),t.Q6J("field",V.data.mediaField.getChildField("identification"))("control",V.data.mediaFormRow.get("identification"))("form",V.data.mediaFormRow)("formHandler",V.data.formHandler)("config",V.data.formHandler.formConfiguration),t.xp6(),t.Q6J("formHandler",V.data.formHandler)("mediaAssignmentFormRow",V.data.mediaFormRow)("media",V.data.media)("mediaField",V.data.mediaField))},dependencies:[x._Y,x.JL,x.sg,Qt.a,ee.A,D_.B,ue.j],styles:[".yearly-checkbox[_ngcontent-%COMP%]{padding-top:16px}"]})}return A})();var _y=a(49880),uP=a(25699),fy=a(59901),gy=a(43941),hy=a(56199),xy=a(16763),pP=a(32458),_P=a(13790),fP=a(19004),jx=a(23097),gP=a(11236),hP=a(89657),xP=a(86729),Tv=a(4588),vy=a(55475),by=a(70623),zb=a(71049),vP=a(9413);let Kx=(()=>{class A extends Lg.Z{constructor(f,L,V,Xe,An){super(f,L,V,Xe,An),this.dialog=f,this.dataAccess=L,this.entityStateDao=V,this.userMessageService=Xe,this.logger=(0,i.jl)("ModifyAppearancesAction",Kn.H.name)}getOrder(){return this.ACTION_ORDER_MODIFY+5}doExecute(f){return new Nh.y(L=>{L.next(!0)})}executeBatch(f){return new Nh.y(L=>{this.openDialog().afterClosed().subscribe(Xe=>{if(Xe){let An={};An=Xe,An.languageIds&&(An.languageIds=An.languageIds.map(Dr=>Dr.id).join());const Qo=this.createActionCallForBatch(this.getEntityType(),f,An);this.logger.info("ModifyAppearance: "+JSON.stringify(Qo)),this.executeInBackground({entityIds:f,ids:f.length,operation:this.dataAccess.callAction(Qo)}),L.next(!0)}})})}getBatchWarningKey(){return"imxplatform.common-entity.list.action.modify-appearances.confirm-batch"}getActionLabelKey(){return"imxplatform.common-entity.list.action.modify-appearances.header"}getIcon(){return"icon-earth"}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(ae.uw),t.LFG(sn.nq),t.LFG(I.o),t.LFG(c.Y),t.LFG(_p.k_))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac})}return A})();var $x=a(72957),bP=a(57625),CP=a(40869),yP=a(98259),Cy=a(73895),yy=a(84432),Oy=a(97808),OP=a(63172),Py=a(90929),PP=a(65823);let MP=(()=>{class A extends Ws.Ih{constructor(f,L){super(),this.entitiesMgrService=f,this.translateService=L}setParams(f){this.entityType=f.entityType,this.attributeGroupId=Number(f.attributeGroupId)}getOptions(f,L){return this.entitiesMgrService.getAllEntitiesOfType(this.entityType).pipe((0,m.U)(V=>V.items.filter(Xe=>!this.attributeGroupId||!(!Xe.attributeGroup||Xe.attributeGroup.id!==this.attributeGroupId)).map(Xe=>({label:Xe.i18nName,value:Xe.id})).sort((Xe,An)=>(0,ga.Qi)(Xe.label,An.label,this.translateService.currentLang))))}getNewInstance(){return new A(this.entitiesMgrService,this.translateService)}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(i.qB),t.LFG(Y.sK))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})(),zM=(()=>{class A extends Ws.I1{constructor(f,L){super(),this.entitiesMgrService=f,this.translateService=L}getOptions(f,L){return this.entitiesMgrService.getAllEntitiesOfType("Language").pipe((0,m.U)(V=>V.items.map(Xe=>({label:Xe.i18nName,value:Xe.id})).sort((Xe,An)=>(0,ga.Qi)(Xe.label,An.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(i.qB),t.LFG(Y.sK))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();var jM=a(20539),KM=a(87104),$M=a(20717),My=a(91776),Ev=a(32562);let TP=(()=>{class A{constructor(f,L,V){this.router=f,this.titleService=L,this.translateService=V}initialize(f){this.router.events.pipe((0,fa.h)(L=>L instanceof l.m2),(0,m.U)(()=>{let L=this.router.routerState.root,V="";for(;L.firstChild;)L=L.firstChild;return L.snapshot?.data.title&&(V=L.snapshot.data.title),V})).subscribe(L=>{if(L){const V=this.translateService.instant(L);V.startsWith("imx -")?this.titleService.setTitle(V):this.titleService.setTitle("imx - "+V)}else this.titleService.setTitle(f)})}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(l.F0),t.LFG(rt.Dx),t.LFG(Y.sK))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();var EP=a(5015),Ty=a(22050),qx=a(26406),AP=a(86118),wP=a(93088),DP=a(63810),IP=a(6828),SP=a(42756),Ey=a(3186),Ay=a(84850),FP=a(14221),Av=a(21317),Hg=a(21417),LP=a(99234),jb=a(22937),RP=a(82121);let wy=(()=>{class A extends Ws.I1{constructor(f,L){super(),this.collectionsService=f,this.translateService=L}getOptions(f,L){return this.collectionsService.getAllPriceUnits().pipe((0,m.U)(V=>V.map(An=>({label:An.i18nName,value:An.id})).sort((An,Qo)=>(0,ga.Qi)(An.label,Qo.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(b.f),t.LFG(Y.sK))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();var kP=a(6996),Dy=a(94480),NP=a(1505);let Kb=(()=>{class A extends Ws.I1{constructor(f){super(),this.entitiesMgrService=f}getOptions(f,L){return this.entitiesMgrService.getAllEntitiesOfType("Permission").pipe((0,m.U)(V=>V.items.map(Xe=>({label:Xe.name+"  ("+Xe.id+")",value:Xe.id})).sort((Xe,An)=>Xe.value-An.value)))}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(i.qB))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})(),UP=(()=>{class A extends N.K{constructor(f){super(),this.entitiesMgrService=f}getRootNodes(){return this.entitiesMgrService.getAllEntitiesOfType("Productline").pipe((0,m.U)(f=>f.items.filter(L=>null==L.parent)))}sortRootNodesFn(f,L,V){return f.id-L.id}sortNodesFn(f,L,V){return f.id-L.id}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(i.qB))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();var Iy=a(41921),Sy=a(4535),BP=a(97550),ZP=a(71577),HP=a(43425),$b=a(33118),GP=a(97587);let Fy=(()=>{class A{constructor(f){this.formatterService=f}transform(f,L="#.##",V=!1){let Xe=f.toString();const An=this.formatterService.getDecimalSeparator();return Xe.includes(An)&&(Xe=Number.parseFloat(f.toString().replace(An,".")).toString()),V?this.formatterService.formatNumberWithAppendingZeros(Xe,L):this.formatterService.formatNumber(Xe,L)}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(i.H1,16))};static#t=this.\u0275pipe=t.Yjl({name:"formatNumber",type:A,pure:!0})}return A})();var JP=a(81158),QP=a(78029),VP=a(29087),YP=a(88954),WP=a(48336),zP=a(28633),jP=a(94469),KP=a(89846);let Ly=(()=>{class A extends Ws.I1{constructor(f){super(),this.collectionsService=f}getOptions(f,L){return this.collectionsService.getAllSensorFusionStrategies().pipe((0,m.U)(V=>V.map(Xe=>({label:Xe.i18nName?Xe.i18nName:"",value:Xe.id}))))}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(b.f))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();var Ry=a(22989),$P=a(20985);function qP(A,Gt){if(1&A&&(t.TgZ(0,"mat-option",5),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"readI18n"),t.qZA()),2&A){const f=Gt.$implicit;t.Q6J("value",f.value),t.xp6(),t.Oqu(t.lcZ(2,2,t.lcZ(3,4,f.label)))}}let ky=(()=>{class A{constructor(f,L){this.dialogRef=f,this.data=L,this.availableTypes=[],this.configuration=L,L.defaultImageTypeId&&L.defaultImageTypeId>0?this.currentImageTypeId=L.defaultImageTypeId:(this.availableTypes.push({value:-1,label:"imxplatform.common.select-placeholder-demand"}),this.currentImageTypeId=-1),this.availableTypes.push(...L.imageTypes.map(V=>({value:V.id,label:V.i18nName}))),f.disableClose=!0}getDialogResult(){return this.currentImageTypeId}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(ae.so),t.Y36(ae.WI))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["ng-component"]],decls:7,vars:4,consts:[["heading","imxplatform.media.list.action.select-image-type.header","icon","icon-picture","submitButtonLabel","imxplatform.media.list.action.select-image-type.confirm",3,"submitButtonDisabled","getSubmitResult"],[1,"dialog-form"],["translate",""],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(L,V){1&L&&(t.TgZ(0,"imx-dialog",0)(1,"div",1)(2,"mat-form-field")(3,"label",2),t._uU(4,"imxplatform.media.list.action.select-image-type.label"),t.qZA(),t.TgZ(5,"mat-select",3),t.NdJ("valueChange",function(An){return V.currentImageTypeId=An}),t.YNc(6,qP,4,6,"mat-option",4),t.qZA()()()()),2&L&&(t.Q6J("submitButtonDisabled",V.currentImageTypeId<1)("getSubmitResult",V.getDialogResult.bind(V)),t.xp6(5),t.Q6J("value",V.currentImageTypeId),t.xp6(),t.Q6J("ngForOf",V.availableTypes))},dependencies:[e.sg,rr.ey,Oa.KE,Pa.gD,Y.Pi,Qt.a,Y.X$,ue.j],encapsulation:2})}return A})();var XP=a(11166),eM=a(65752);class qb{}var Ny=a(85175),Xb=a(31933),eC=a(40271),tM=a(1033),Uy=a(28970),By=a(30967),Zy=a(79060),Hy=a(88844),nM=a(72197),Gy=a(23324),Jy=a(6929),tC=a(12947),wv=a(1931),nC=a(49518),Qy=a(44226);let Vy=(()=>{class A{constructor(f,L){this.element=L,this.added=!1,this.valid=!1,this.form=null,this.form=f}ngOnChanges(f){this.setupHandlers()}ngAfterViewInit(){this.setupHandlers()}ngOnDestroy(){this.changeSubscription&&(this.changeSubscription.unsubscribe(),this.changeSubscription=void 0),this.touchSubscription&&(this.touchSubscription.unsubscribe(),this.touchSubscription=void 0)}get formDirective(){return this.form?this.form.formDirective:null}checkParentType(){if(!(this.form instanceof x.x0)&&this.form instanceof x.uA)throw new i.DO('appValidationState cannot be used with an ngModelGroup parent. It is only compatible with parents that also have a "form" prefix: formGroupName, formArrayName, or formGroup.');if(!(this.form instanceof x.x0||this.form instanceof x.sg||this.form instanceof x.CE))throw new i.DO("appValidationState must be used with a parent formGroup directive.  You'll want to add a formGroup directive and pass it an existing FormGroup instance (you can create one in your class).")}setupHandlers(){!this.added&&this.name&&this.inputs&&(this.checkParentType(),this.control=this.formDirective.control.get(this.name),this.changeSubscription=this.control.statusChanges.subscribe(f=>{this.valid="VALID"===f,this.updateValidationState()}),this.valid="VALID"===this.control.status,this.inputs.forEach(f=>f.touchedEvents.subscribe(L=>this.updateValidationState())),this.added=!0)}updateValidationState(){this.valid?(this.element.nativeElement.classList.remove("has-error"),this.element.nativeElement.classList.add("has-success")):(this.element.nativeElement.classList.remove("has-success"),this.element.nativeElement.classList.add("has-error"))}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(x.gN,13),t.Y36(t.SBq))};static#t=this.\u0275dir=t.lG2({type:A,selectors:[["","appValidationState",""]],contentQueries:function(L,V,Xe){if(1&L&&t.Suo(Xe,kp.u,4),2&L){let An;t.iGM(An=t.CRH())&&(V.inputs=An)}},inputs:{name:[t.lbL.None,"appValidationState","name"]},features:[t.TTD]})}return A})();var Yy=a(22745);let Wy=(()=>{class A{constructor(f){this.el=f}ngOnInit(){const f=Yy.L.getVideoLink(this.video.pooledMedium);this.el.nativeElement.href=f?f.hrefLink:""}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(t.SBq))};static#t=this.\u0275dir=t.lG2({type:A,selectors:[["","videoLink",""]],inputs:{video:"video"}})}return A})();var zy=a(30154);let jy=(()=>{class A{transform(f){return f.map(L=>L.zipcode).join(", ")}static#e=this.\u0275fac=function(L){return new(L||A)};static#t=this.\u0275pipe=t.Yjl({name:"zipcodes",type:A,pure:!0})}return A})();var Ky=a(41900),iM=a(76667),Dv=a(7078);let Xx=(()=>{class A{constructor(f,L){this.vc=f,this.metainfoFormPanelProviderRegistry=L}ngOnChanges(){const f=this.metainfoFormPanelProviderRegistry.getFilterPanelComponent(this.moduleKey);if(f){const L=this.vc.createComponent(f);Object.assign(L.instance,this.inputs)}}static#e=this.\u0275fac=function(L){return new(L||A)(t.Y36(t.s_b),t.Y36(Ac.RH))};static#t=this.\u0275dir=t.lG2({type:A,selectors:[["","moduleFilterPanelComponent",""]],inputs:{moduleKey:"moduleKey",inputs:"inputs"},exportAs:["moduleFilterPanelComponentDirective"],features:[t.TTD]})}return A})();var oM=a(9491),rM=a(14394);let aM=(()=>{class A extends Ws.I1{constructor(f){super(),this.collectionsService=f}getOptions(f,L){return this.collectionsService.getAllOccupancySensors().pipe((0,m.U)(V=>V.map(Xe=>({label:Xe.name,value:Xe.id}))))}static#e=this.\u0275fac=function(L){return new(L||A)(t.LFG(b.f))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();var Iv=a(97639),iC=a(6160),oC=a(88535),$y=a(36020),rC=a(41281),aC=a(9408),sM=a(27975),lM=a(36145),cM=a(16049),dM=a(59776),qy=a(12891),sC=a(28635),mM=a(75303),Xy=a(27020),eO=a(30909);function uM(A,Gt){if(1&A){const f=t.EpF();t.TgZ(0,"imx-icon",1),t.NdJ("click",function(){t.CHM(f);const V=t.oxw();return t.KtG(V.navigator.clipboard.writeText(V.contentToCopy))}),t.ALo(1,"translate"),t.qZA()}2&A&&t.s9C("matTooltip",t.lcZ(1,1,"imxplatform.common-entity.list.copy"))}let tO=(()=>{class A{constructor(){this.navigator=navigator}updateDynamicComponent([f,L]){this.contentToCopy=f[L.accessor]}static#e=this.\u0275fac=function(L){return new(L||A)};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["imx-copy-to-clipboard-cell"]],decls:1,vars:1,consts:[["isClickable","true","icon","copy",3,"matTooltip","click",4,"ngIf"],["isClickable","true","icon","copy",3,"matTooltip","click"]],template:function(L,V){1&L&&t.YNc(0,uM,2,3,"imx-icon",0),2&L&&t.Q6J("ngIf",V.contentToCopy)},dependencies:[e.O5,qi.gM,q_.o,Y.X$],styles:["[_nghost-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-right:10px}"]})}return A})();var nO=a(17840),iO=a(44316),oO=a(55368),rO=a(5679),pM=a(473),lC=a(76503),_M=a(38347);(0,e.qS)(n.Z),(0,e.qS)(s.Z);let fM=(()=>{class A{static#e=this.\u0275fac=function(L){return new(L||A)};static#t=this.\u0275mod=t.oAB({type:A});static#n=this.\u0275inj=t.cJS({imports:[e.ez,Zx,hb.Yp]})}return A})()},75303:(gt,X,a)=>{"use strict";function e(n,s){return Object.keys(n).some(l=>l===s&&Object.keys(n[s]).length>0)}a.d(X,{U:()=>e})},93088:(gt,X,a)=>{"use strict";a.d(X,{a:()=>s});var e=a(21473),n=a(19212);let s=(()=>{class i{getNavigationItems(){return l}static#e=this.\u0275fac=function(c){return new(c||i)};static#t=this.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac})}return i})();const l=[{name:"dashboard",labelKey:"imxplatform.navigation.dashboard",icon:"icon-home",routerLink:"/dashboard",order:10},{name:"object_management",labelKey:"imxplatform.navigation.object-mgmt",icon:"icon-layers",open:!0,order:20,children:[{name:"object_management:searchAddressPoi",labelKey:"imxplatform.navigation.addresspois",icon:"icon-entityType-AddressPoi",routerLink:"/addresspois",order:9,permissions:[e.uo.F_ADDRESSPOI_READ_ALL,e.uo.F_ADDRESSPOI_LOCATION_READ_ALL,e.uo.F_ADDRESSPOI_CONTRIBUTOR_READ_ALL,e.uo.F_ADDRESSPOI_CONTACT_READ_ALL,e.uo.F_ADDRESSPOI_READ_OWN_CLIENT,e.uo.F_ADDRESSPOI_LOCATION_READ_OWN_CLIENT,e.uo.F_ADDRESSPOI_CONTRIBUTOR_READ_OWN_CLIENT,e.uo.F_ADDRESSPOI_CONTACT_READ_OWN_CLIENT,e.uo.F_ADDRESSPOI_READ_OWN_USER,e.uo.F_ADDRESSPOI_LOCATION_READ_OWN_USER,e.uo.F_ADDRESSPOI_CONTRIBUTOR_READ_OWN_USER,e.uo.F_ADDRESSPOI_CONTACT_READ_OWN_USER]},{name:"object_management:searchArticle",labelKey:"imxplatform.navigation.articles",icon:"icon-entityType-Article",routerLink:"/articles",order:20,permissions:[e.uo.F_ARTICLE_READ_ALL,e.uo.F_ARTICLE_READ_OWN_CLIENT,e.uo.F_ARTICLE_READ_OWN_USER]},{name:"object_management:searchAnnouncement",labelKey:"imxplatform.navigation.announcements",icon:"icon-entityType-Announcement",routerLink:"/announcements",order:15,permissions:[e.uo.F_ANNOUNCEMENT_READ]}]},{name:"publications",labelKey:"imxplatform.navigation.publications",icon:"icon-earth",order:30,children:[{name:"publications:widget-config-mgmt",labelKey:"imxplatform.navigation.widget-config",icon:"icon-whiteLabel",routerLink:"/widgetconfig",order:8,permissions:[e.uo.F_WIDGET_CONFIG_ADMINISTRATION]}]},{name:"media_management",labelKey:"imxplatform.navigation.media-mgmt",icon:"icon-picture",routerLink:"/media",order:40,permissions:[e.uo.F_POOLED_MEDIUM_MANAGEMENT_ALL]},{name:"user_management",labelKey:"imxplatform.navigation.user-mgmt",icon:"icon-users2",order:50,children:[{name:"user_management:userManagement",labelKey:"imxplatform.navigation.user",icon:"icon-users2",routerLink:"/usermgmt",order:3,permissions:[e.uo.F_USER_MANAGEMENT_CREATE,e.uo.F_USER_MANAGEMENT_READ,e.uo.F_USER_MANAGEMENT_UPDATE,e.uo.F_USER_MANAGEMENT_DELETE]},{name:"user_management:clientManagement",labelKey:"imxplatform.navigation.client",icon:"icon-clients",routerLink:"/clientmgmt",order:4,permissions:[e.uo.F_CLIENT_MANAGEMENT_CREATE,e.uo.F_CLIENT_MANAGEMENT_READ,e.uo.F_CLIENT_MANAGEMENT_UPDATE,e.uo.F_CLIENT_MANAGEMENT_DELETE]},{name:"user_management:roleManagement",labelKey:"imxplatform.navigation.roles",icon:"icon-user-role",routerLink:"/rolemgmt",order:5,permissions:[e.uo.F_ROLE_MANAGEMENT_CREATE,e.uo.F_ROLE_MANAGEMENT_READ,e.uo.F_ROLE_MANAGEMENT_UPDATE,e.uo.F_ROLE_MANAGEMENT_DELETE]},{name:"user_management:permissionManagement",labelKey:"imxplatform.navigation.permissions",icon:"icon-lock",routerLink:"/permissionmgmt",order:6,permissions:[e.uo.F_PERMISSION_MANAGEMENT_CREATE,e.uo.F_PERMISSION_MANAGEMENT_READ,e.uo.F_PERMISSION_MANAGEMENT_UPDATE,e.uo.F_PERMISSION_MANAGEMENT_DELETE]}]},{name:"list_management",labelKey:"imxplatform.navigation.lists",icon:"icon-list",open:!1,order:55,children:[{name:"list_management:referenceLists",labelKey:"imxplatform.navigation.reference-lists",icon:"icon-reference-list",routerLink:"/referenceLists",order:1,permissions:[e.uo.F_ENTITYLIST_CONTACT_MANAGEMENT]}]},{name:"administration",labelKey:"imxplatform.navigation.administration",icon:"icon-cog ",order:60,children:[{name:"administration:adminBaseEntities",labelKey:"imxplatform.navigation.base-entities",icon:"icon-entity ",routerLink:"/base-entities",order:2,permissions:[e.uo.F_BASEENTITIES_MANAGEMENT_ALL,e.uo.F_MODULE_BASEENTITIES_MANAGEMENT_CREATE,e.uo.F_MODULE_BASEENTITIES_MANAGEMENT_READ,e.uo.F_MODULE_BASEENTITIES_MANAGEMENT_UPDATE,e.uo.F_MODULE_BASEENTITIES_MANAGEMENT_DELETE]},{name:"configuration-definition",labelKey:"imxplatform.navigation.configuration-definition",icon:"icon-configuration",routerLink:"/configuration-definition",order:10,permissions:[e.uo.F_CONFIGURATION_DEFINITION_ALL,e.uo.F_CONFIGURATION_DEFINITION_CREATE,e.uo.F_CONFIGURATION_DEFINITION_READ_ALL,e.uo.F_CONFIGURATION_DEFINITION_UPDATE_ALL,e.uo.F_CONFIGURATION_DEFINITION_DELETE_ALL]}]},{name:"importer",labelKey:"imxplatform.navigation.data-sync",icon:"icon-inbox",order:70,children:[{name:"standardImportConfig",labelKey:"imxplatform.navigation.standard-import-config",icon:"icon-inbox",routerLink:"/importconfig",order:15,permissions:[e.uo.F_STANDARD_IMPORT_MANAGEMENT_ALL,e.uo.F_STANDARD_IMPORT_MANAGEMENT_CREATE,e.uo.F_STANDARD_IMPORT_MANAGEMENT_READ,e.uo.F_STANDARD_IMPORT_MANAGEMENT_UPDATE,e.uo.F_STANDARD_IMPORT_MANAGEMENT_DELETE,e.uo.F_STANDARD_IMPORT_MANAGEMENT_EXECUTE]},{name:"standardImportMapping",labelKey:"imxplatform.navigation.standard-import-mapping",icon:"icon-inbox",routerLink:"/importmapping",order:16,permissions:[e.uo.F_STANDARD_IMPORT_MAPPING_ALL,e.uo.F_STANDARD_IMPORT_MAPPING_CREATE,e.uo.F_STANDARD_IMPORT_MAPPING_READ,e.uo.F_STANDARD_IMPORT_MAPPING_UPDATE,e.uo.F_STANDARD_IMPORT_MAPPING_DELETE]}]},{name:"system",labelKey:"imxplatform.navigation.system",icon:"icon-code ",order:80,children:[{name:"config",labelKey:"imxplatform.navigation.show-config",icon:"icon-configuration",routerLink:"/config",order:10,permissions:[e.uo.F_SYSTEM_INFO_ALL]},{name:"administration:adminSysInfo",labelKey:"imxplatform.navigation.user-activity",icon:"icon-users2",routerLink:"/useractivity",order:100,permissions:[e.uo.F_SYSTEM_INFO_ALL]},{name:"importerfileupload",labelKey:"imxplatform.navigation.importer-file-upload",icon:"icon-inbox",routerLink:"importerfileupload",order:90,permissions:[e.uo.F_IMPORTER_FILE_UPLOAD_ALL]}]}]},96863:(gt,X,a)=>{"use strict";a.d(X,{L8:()=>ge,uY:()=>R});var e=a(97582),n=a(19212),s=a(21473),l=a(79309),i=a(3579),t=a(72079),p=a(54699),c=a(19352),o=a(96124),x=a(75789),u=a(24551),m=a(87820),b=a(91630),I=a(83010),H=a(20883),O=a(49546),P=a(27556),G=a(85422),ae=(a(15033),a(60768)),J=a(88792),Y=(a(22819),a(45315),a(9512)),ue=(a(15767),a(55063),a(59143),a(63333),a(16603));const ge=25;class R{constructor(me,Se,Ue,We,et,Et,lt,Vt,r,Z,Pt,Oe,ye,ve){this.dataSource=me,this.router=Se,this.route=Ue,this.userMessageService=We,this.listHistoryService=et,this.dialog=Et,this.filterFormHandler=lt,this.platformDataAccessService=Vt,this.searchPageDefaultsService=r,this.tracker=Z,this.objectListCreationService=Pt,this.actionProvider=Oe,this.lastEditedEntityIds=[],this.logger=(0,s.jl)("AbstractSearchPage",P.H.name),this.currentPageSize=ge,this.currentPage=1,this.orderField="TITLE",this.orderDirection="ASC",this.recordsOnceLoaded=!0,this.selectedIds=new Set,this.selectionModel={allSelected:!1,someSelected:!1},this.fromEdit=!1,this.backgroundActionService=(0,n.f3M)(ae.k_),this.destroy$=new t.xQ,this.filter=ye||{},this.searchHistoryEnabled=ve||!1,this.fromEdit=this.comingFromEdit(),this.isActiveSlideIn=this.isActiveSlideIn.bind(this)}getTrackingCategory(){return this.getEntityName()}ngOnInit(){this.currentPageSize=this.determinePageSize(this.currentPageSize),this.pagingModel={pageSize:this.currentPageSize,page:this.currentPage,numberOfResults:0},this.orderDirection=this.determineOrderDirection(this.orderDirection),this.orderField=this.determineOrderField(this.orderField),this.routerSubscription=this.route.queryParamMap.subscribe(me=>{const Se={};me.keys.forEach(Ue=>{Se[Ue]=me.get(Ue)}),this.filterFormHandler instanceof Y.d&&this.filterFormHandler.extendFilter(Se,!(Se&&Se.adjusted)),this.filter=Se,this.currentPage=+(me.get("page")||this.currentPage),this.currentPageSize=+(me.get("pageSize")||this.currentPageSize),this.orderField=me.get("orderField")||this.orderField,this.orderDirection=me.get("orderDirection")||this.orderDirection,this.resetSelection(),this.searchHistoryEnabled&&1===this.currentPage&&this.platformDataAccessService.createEntityList({name:(new Date).toLocaleString(["de-DE","en-US"],{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}),entityType:this.getEntityName(),listType:l.E6.SEARCH_HISTORY,listInfo:this.router.url.substring(1)}).subscribe(),this.listHistoryService&&this.listHistoryService.updateLastListState(this.getEntityName(),this.router.url.substring(1)),this.loadRecords(Object.assign({},this.filter),this.currentPage,this.currentPageSize,this.orderField,"ASC"===this.orderDirection?"ASC":"DESC")}),this.loadActionsFromActionProvider(),this.backgroundActionService.onJobFinishedSuccess.pipe((0,c.R)(this.destroy$)).subscribe(me=>{me&&me.action&&me.action instanceof G.M&&me.action.triggerSearchPageReloadOnSuccess()&&me.action.getEntityType()===this.getEntityName()&&(this.recordsOnceLoaded=!1,this.resetSelection(),this.reloadData())}),this.actionsState.subscribe(me=>{me.currentActions.filter(Se=>Se.entityType===this.getEntityName()).forEach(Se=>{this.selectedIds=new Set(Array.from(this.selectedIds).filter(Ue=>!Se.entityIds.includes(Ue)))})}),this.platformDataAccessService.getImportSourceDataProvidingImporters().subscribe(me=>{this.importSourceDataProvidingImporters=me})}determineOrderField(me){return this.searchPageDefaultsService?this.searchPageDefaultsService.getDefaultOrderField(this.getEntityName())??me:me}determineOrderDirection(me){return this.searchPageDefaultsService?this.searchPageDefaultsService.getDefaultOrderDirection(this.getEntityName())??me:me}determinePageSize(me){return this.searchPageDefaultsService?this.searchPageDefaultsService.getDefaultPageSize(this.getEntityName())??me:me}ngOnDestroy(){this.routerSubscription&&(this.routerSubscription.unsubscribe(),this.routerSubscription=void 0),this.resultsSubscription&&(this.resultsSubscription.unsubscribe(),this.resultsSubscription=void 0,this.currentResult={items:[],pageSize:0,numberOfPages:0,totalNumberOfResults:0,totalNumberOfRoots:0,page:1,pageIndices:[]}),this.destroy$.next(),this.destroy$.complete()}search(me){this.logger.debug("Search for: "+JSON.stringify(me));const Se={};Object.keys(me).forEach(Ue=>{void 0!==me[Ue]&&(""!==me[Ue]||"boolean"==typeof me[Ue])&&(Se[Ue]=me[Ue])}),this.genericSlideInPage&&this.genericSlideInPage.close(),this.navigateSamePage(Se)}addAndSearch(me){me&&this.search(Object.assign({},this.filter,me))}sort(me){const Ue=Object.assign({},this.route.snapshot.queryParams);me.field?Ue.orderField=me.field:delete Ue.orderField,me.direction?Ue.orderDirection=me.direction:delete Ue.orderDirection,this.navigateSamePage(Ue)}trackByItemId(me,Se){return Se.id}reloadComplete(){this.recordsOnceLoaded=!1,this.reloadData()}reset(){0!==Object.keys(this.filter).length&&this.navigateSamePage({})}showPage(me,Se){const We=Object.assign({},this.route.snapshot.queryParams);me>0?We.page=me:delete We.page,Se>0?We.pageSize=Se:delete We.pageSize,this.navigateSamePage(We)}onSelectionChanged(me){me.checked?this.selectedIds.add(parseInt(me.source.value,10)):this.selectedIds.delete(parseInt(me.source.value,10)),this.updateSelectAllFlag()}onSelectAll(me){me.checked?(this.selectionModel.allSelected=!0,this.currentResult.items.forEach(Se=>{this.isBlockedByAction(Se.id).subscribe(Ue=>{Ue||this.selectedIds.add(Se.id)})})):(this.selectionModel.allSelected=!1,this.currentResult.items.forEach(Se=>{this.selectedIds.delete(Se.id)})),this.updateSelectAllFlag()}isItemSelected(me){return this.selectedIds.has(me)}onPageChanged(me){this.showPage(me.pageIndex,me.pageSize)}beforeLoadRecords(me){}afterContentLoaded(){this.searchPreviousEditedEntity()}executeRowAction(me,Se){me&&(this.executeAction(me.execute(Se)),this.lastEditedEntityIds.push(Se.id))}executeBatchAction(me,Se){0===this.selectedIds.size?this.userMessageService.showInfo("imxplatform.common.error.no-selection"):(this.executeAction(me.executeBatch(this._selectedIdsArray,Se)),this._selectedIdsArray.forEach(Ue=>this.lastEditedEntityIds.push(Ue)))}executeHistoryAction(me,Se){this.dialog.open(u.s,{maxWidth:800,maxHeight:900,data:{entityId:Se,entityType:me,headerKey:"imxplatform.common-entity.list.action.history.header-text"}})}executeReferencesAction(me,Se){this.dialog.open(x.a,{maxWidth:800,maxHeight:900,data:{entityId:Se,entityType:me,headerKey:"imxplatform.common-entity.list.action.references.header-text"}})}executeImportSourceDataAction(me,Se,Ue){this.dialog.open(m.Q,{maxWidth:800,maxHeight:900,data:{importSource:me,importPurpose:Se,importIdentifier:Ue}})}addToObjectList(){0===this.selectedIds.size?this.userMessageService.showInfo("imxplatform.common.error.no-selection"):this.dialog.open(b.R,{maxWidth:650,data:{formHandler:this.filterFormHandler,entityType:this.getEntityName()}}).afterClosed().subscribe(me=>{this.objectListCreationService&&this.objectListCreationService.createOrUpdateObjectList(me,this.getEntityName(),this._entityListUrlContext,this._historyEntityType,this._selectedIdsArray)})}getFilterParams(me){return{}}get _selectedIdsArray(){return Array.from(this.selectedIds)}get _historyEntityType(){return J.P[this.getEntityName().toUpperCase()]}get _entityListUrlContext(){return`${this.getEntityName().toLowerCase()}s`}reloadData(){this.loadRecords(this.filter,this.currentPage,this.currentPageSize,this.orderField,"ASC"===this.orderDirection?"ASC":"DESC")}isBlockedByAction(me){return this.actionsState.pipe((0,o.U)(Se=>(0,ue.bN)(Se,this.getEntityName(),me)))}resetSelection(){this.selectedIds.clear(),this.selectionModel.someSelected=!1,this.selectionModel.allSelected=!1}executeAction(me){me.subscribe(Se=>{Se&&(this.resetSelection(),this.recordsOnceLoaded=!1,this.reloadData())})}loadRecords(me,Se,Ue,We,et){this.logger.info("Load records for page: "+Se+" filter: "+JSON.stringify(me)),this.beforeLoadRecords(me),this.results=this.dataSource.fetch(me,Se,Ue,We,et,!this.recordsOnceLoaded),this.resultsSubscription&&this.resultsSubscription.unsubscribe(),this.resultsSubscription=this.results.subscribe(Et=>{this.onLoadRecords(Et,Se,Ue),this.afterContentLoaded()})}onLoadRecords(me,Se,Ue){this.recordsOnceLoaded=!0,this.currentResult=me,this.currentPageSize=Ue,me.numberOfPages>0&&Se>me.numberOfPages&&this.showPage(me.numberOfPages,Ue),this.updateSelectAllFlag(),this.loadActions(me),this.tracker&&this.tracker.trackSearchResults(this.filter,this.getEntityName(),this.getTrackingCategory(),me.totalNumberOfResults),this.pagingModel.pageSize=this.currentPageSize,this.pagingModel.page=this.currentPage,this.pagingModel.numberOfResults=this.currentResult.totalNumberOfRoots}loadActions(me){this.actionProvider&&me.items&&this.actionProvider.loadRowActionsForTypeAndIds(this.getEntityName(),me.items.map(Se=>Se.id),this.getActionContext())}getActionContext(){}navigateSamePage(me,Se){this.router.navigate([],{queryParams:me,fragment:Se})}updateSelectAllFlag(){this.selectedIds.size>0?(this.selectionModel.allSelected=this.currentResult.items.every(me=>this.selectedIds.has(me.id)),this.selectionModel.someSelected=!this.selectionModel.allSelected&&this.currentResult.items.some(me=>this.selectedIds.has(me.id))):this.selectionModel.someSelected=!1}getResultIds(){const me=[];return this.results&&this.results.forEach(Se=>{Se.items.forEach(Ue=>{me.push(Ue.id)})}),me}searchPreviousEditedEntity(){this.lastEditedEntityIds.length>0?window.setTimeout(()=>{this.scrollToItem(this.lastEditedEntityIds),this.lastEditedEntityIds=[]},500):this.listHistoryService.retrievePreviousEditedEntity(this.getEntityName()).subscribe(me=>window.setTimeout(()=>this.scrollToItem([me]),500))}scrollToItem(me){const Se=this.getHighestListElement(me);if(Se){const Ue=Se.nativeElement.getBoundingClientRect().top+window.pageYOffset-100;window.scrollTo({top:Ue,behavior:"smooth"})}}getHighestListElement(me){const Se=this.listItems,Ue=[];me.forEach(et=>{const Et=Se.find(lt=>parseInt(lt.nativeElement.getAttribute("data-scroll-id"),10)===et);Et&&Ue.push(Et)});const We=Math.min(...Ue.map(et=>et.nativeElement.getBoundingClientRect().top));return Ue.find(et=>et.nativeElement.getBoundingClientRect().top===We)}comingFromEdit(){const me=this.router.getCurrentNavigation();if(me){const Se=me.finalUrl?.root?.children?.primary?.segments,Ue=me.previousNavigation?.finalUrl.root?.children?.primary?.segments,We=Se&&Se.length>0?Se[0].path:null,et=Ue&&Ue.length>0?Ue.map(Et=>Et.path):null;return!!(me.previousNavigation&&We&&et.includes(We))&&et.includes("edit")}return!1}loadActionsFromActionProvider(){this.actionProvider&&this.actionProvider.loadBatchActionsForType(this.getEntityName(),this.getActionContext())}dispatchSlideEvent(me){if(this._activeSlideInEntityId===me.entityId&&this._activeSlideInType===me.type)this.genericSlideInPage.close();else{this._activeSlideInEntityId=me.entityId,this._activeSlideInType=me.type;const Se=this.openSlideInComponent(me);Se?Se.afterClosed().subscribe(Ue=>{this._activeSlideInEntityId=void 0,this._activeSlideInType=void 0}):console.warn("no sidebarRef returned for for event",me)}}openSlideInComponent(me){if(me.type===I.CU.MEMO){const Se=me;return Se.memosEntityType=this.getEntityName(),this.genericSlideInPage.open(H.u,{data:Se})}}isActiveSlideIn(me,Se){return!!this.genericSlideInPage&&this.genericSlideInPage.isSlideInOpen()&&this._activeSlideInEntityId===Se&&this._activeSlideInType===me}static#e=this.\u0275fac=function(Se){n.$Z()};static#t=this.\u0275dir=n.lG2({type:R,viewQuery:function(Se,Ue){if(1&Se&&(n.Gf(I.Ee,5),n.Gf(O.l,5,n.SBq)),2&Se){let We;n.iGM(We=n.CRH())&&(Ue.genericSlideInPage=We.first),n.iGM(We=n.CRH())&&(Ue.listItems=We)}}})}(0,e.__decorate)([(0,i.Ph)(ue.$W),(0,e.__metadata)("design:type",p.y)],R.prototype,"actionsState",void 0)},35119:(gt,X,a)=>{"use strict";a.d(X,{R:()=>O});var e=a(86313),n=a(33946),s=a(21473),p=(a(15033),a(22819),a(45315),a(34115)),m=(a(15767),a(55063),a(59143),a(63333),a(96863)),b=a(15646),H=a(19212);let O=(()=>{class P extends m.uY{constructor(B,ae,J,q,j,Y,K,ne,ee,$,ue,ge,Ke,at,Le){super(B,ae,J,q,j,Y,K,ne,$,ee,ge,at,Le),this.entitiesMgrService=ue,this.translateService=Ke,this.orderField="id"}reloadRecords(){this.recordsOnceLoaded=!1,this.reloadData()}beforeLoadRecords(B){super.beforeLoadRecords(B),B.moduleName=p.Q,B.entityName=this.getEntityName(),B.filterPredicates=this.getFilterPredicates(),B.sortPredicates=this.getSortPredicates()}onEditDialogClose(B){}getDialogSize(){return n.D.FORM_BIG}editEntity(B,ae,J,q,j,Y){J.baseObject=B,this.dialog.open(q,{...this.getDialogSize(),data:j||{mode:"EDIT",formRow:J.formGroup,formHandler:J,dataObject:B}}).afterClosed().subscribe(K=>{if(K){const ne=J.getBaseObjectCopyWithCurrentFormValues();let ee;ee=Y?Y.updateEntity(ne):this.entitiesMgrService.updateEntityOfType(ae,ne),ee.subscribe(()=>{this.reloadRecords(),this.userMessageService.showInfo("imxplatform.base-entity.list.dialog-edit.success")},$=>{this.userMessageService.showError($||"imxplatform.base-entity.list.dialog-edit.failure")})}this.onEditDialogClose(j)})}createNewEntity(B,ae,J,q,j,Y){this.entitiesMgrService.newEntityOfType(B).subscribe(K=>{this.handleNewEntity(ae,K,j,J,q,Y)})}cloneEntity(B,ae,J,q,j,Y,K){const ne=this.clone(B);null!=ae&&ae.length>0&&this.resetIds(ne,ae),this.handleNewEntity(J,ne,Y,q,j,K)}clone(B){const ae=b(B);return ae.id=null,this.resetIds(ae,["I18n"]),ae}resetIds(B,ae){null==B||void 0===Object.keys(B)||Object.keys(B).forEach(J=>{"id"===J&&ae.includes(B._entityType)?B.id=null:void 0!==B[J]&&"object"==typeof B[J]&&this.resetIds(B[J],ae)})}handleNewEntity(B,ae,J,q,j,Y){B.baseObject=ae,B.baseObject._entityType=ae._entityType,J&&(B.baseObject.parent={id:J.id,_entityType:ae._entityType}),this.dialog.open(q,{...n.D.FORM_BIG,data:j||{mode:"NEW",formRow:B.formGroup,formHandler:B,dataObject:ae}}).afterClosed().subscribe(K=>{if(K){const ne=B.getBaseObjectCopyWithCurrentFormValues();let ee;ee=Y?Y.insertEntity(ne):this.entitiesMgrService.insertEntityOfType(ae._entityType,ne),ee.subscribe(()=>{this.reloadRecords(),this.userMessageService.showInfo("imxplatform.base-entity.list.dialog-create.success")},$=>{this.userMessageService.showError($||"imxplatform.base-entity.list.dialog-create.failure")})}this.onEditDialogClose(j)})}removeEntity(B,ae,J){this.dialog.open(e.F,{maxWidth:470,data:{i18n:J||"imxplatform.base-entity.list.action.delete.confirm",objectId:B.id}}).afterClosed().subscribe(q=>{q&&this.entitiesMgrService.deleteEntityOfType(ae,B.id).subscribe(j=>{this.reloadRecords(),this.userMessageService.showInfo(j?"imxplatform.base-entity.list.dialog-delete.success":"imxplatform.base-entity.list.dialog-delete.failure")},j=>{(0,s.Ec)(j)&&j.exceptionKey===s.Uf.PF_DATABASE_CONSTRAINT?this.userMessageService.showError(this.translateService.instant("imxplatform.base-entity.list.dialog-delete.constraint-failure",{entityName:this.translateService.instant("entity."+this.filter.entityName+".entityName")})):this.userMessageService.showError(j||"imxplatform.base-entity.list.dialog-delete.failure")})})}static#e=this.\u0275fac=function(ae){H.$Z()};static#t=this.\u0275dir=H.lG2({type:P,features:[H.qOj]})}return P})()},72069:(gt,X,a)=>{"use strict";a.d(X,{D:()=>s});var e=a(17700),n=a(19212);let s=(()=>{class l{constructor(t){this.data=t}static#e=this.\u0275fac=function(p){return new(p||l)(n.Y36(e.WI))};static#t=this.\u0275cmp=n.Xpm({type:l,selectors:[["ng-component"]],decls:0,vars:0,template:function(p,c){}})}return l})()},35418:(gt,X,a)=>{"use strict";a.d(X,{i:()=>m});var e=a(17700),n=a(19212),s=a(96814),l=a(56223),i=a(33946),t=a(28907),p=a(42094),c=a(71365);function o(b,I){if(1&b&&n._UZ(0,"imx-language-switch-button",6),2&b){const H=n.oxw();n.Q6J("formHandler",H.data.formHandler)}}function x(b,I){if(1&b&&n._UZ(0,"imx-form-control",8),2&b){const H=n.oxw().$implicit,O=n.oxw();n.Q6J("field",H)("control",O.data.formHandler.formGroup.get(H.id))("form",O.data.formHandler.formGroup)("config",O.data.formHandler.formConfiguration)("formHandler",O.data.formHandler)}}function u(b,I){if(1&b&&n.YNc(0,x,1,5,"imx-form-control",7),2&b){const H=I.$implicit,O=n.oxw();n.Q6J("ngIf",O.showField(H))}}let m=(()=>{class b{constructor(H){this.data=H}showField(H){return!(H.baseEntityFieldOption.hideInEditPage||"EDIT"!==this.data.mode&&H.baseEntityFieldOption.isIdField)}defaultSubmitResult(){return!0}static#e=this.\u0275fac=function(O){return new(O||b)(n.Y36(e.WI))};static#t=this.\u0275cmp=n.Xpm({type:b,selectors:[["ng-component"]],decls:7,vars:8,consts:[["icon","icon-baseEdit","dialogType","form",3,"heading","submitButtonDisabled","getSubmitResult"],["form-header","",3,"formHandler",4,"ngIf"],["id","base-entity-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],["ngFor","",3,"ngForOf"],["form-header","",3,"formHandler"],[3,"field","control","form","config","formHandler",4,"ngIf"],[3,"field","control","form","config","formHandler"]],template:function(O,P){1&O&&(n.TgZ(0,"imx-dialog",0),n.ALo(1,"translate"),n.YNc(2,o,1,1,"imx-language-switch-button",1),n.TgZ(3,"form",2)(4,"div",3)(5,"div",4),n.YNc(6,u,1,1,"ng-template",5),n.qZA()()()()),2&O&&(n.Q6J("heading",n.lcZ(1,6,P.data.title))("submitButtonDisabled",P.data.formRow.invalid||P.data.formRow.pristine)("getSubmitResult",P.defaultSubmitResult),n.xp6(2),n.Q6J("ngIf",P.data.baseEntityConfig.containsI18nFields),n.xp6(),n.Q6J("formGroup",P.data.formRow),n.xp6(3),n.Q6J("ngForOf",P.data.formHandler.formConfiguration.fields))},dependencies:[s.sg,s.O5,l._Y,l.JL,l.sg,i.a,t.A,p.H,c.X$],styles:[".header-right[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:flex-end}.header-right[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{margin-right:10px}"]})}return b})()},65678:(gt,X,a)=>{"use strict";a.d(X,{X:()=>c}),a(96698);var n=a(41621),s=a(21473),l=a(43790),i=a(19212),t=a(96814),p=a(61058);let c=(()=>{class o{updateDynamicComponent(u){const[m,b]=u,[I,H]=this._getIconInformation(m,b);this.icon=`${I}-${H}`,this._setIconCssClass(H,I)}_getIconInformation(u,m){return[this._getIconSet(m),this._getIconName(u,m)]}_getIconSet({format:u}){return u&&(0,s.HD)(u)&&(0,l.h)(u)||""}_getIconName(u,{accessor:m}){return(0,n.jg)(u,m)}_setIconCssClass(u,m){"notificationType"===m&&(this.cssClassName=u.toLowerCase())}static#e=this.\u0275fac=function(m){return new(m||o)};static#t=this.\u0275cmp=i.Xpm({type:o,selectors:[["imx-dashboard-table-icon"]],decls:1,vars:2,consts:[["size","small",3,"icon","ngClass"]],template:function(m,b){1&m&&i._UZ(0,"imx-icon-with-circular-background",0),2&m&&i.Q6J("icon",b.icon)("ngClass",b.cssClassName)},dependencies:[t.mk,p.P],styles:[".information[_ngcontent-%COMP%]     .icon-container{background-color:#906700}.warning[_ngcontent-%COMP%]     .icon-container{background-color:#96172e}.maintenance[_ngcontent-%COMP%]     .icon-container{background-color:#898989}.highPrio[_ngcontent-%COMP%]     .icon-container{background-color:#1c798e}"]})}return o})()},89757:(gt,X,a)=>{"use strict";a.d(X,{p:()=>u});var e=a(21473),s=(a(96698),a(88792)),l=a(41621),i=a(43790),t=a(19212),p=a(1614),c=a(96814),o=a(55387);function x(m,b){if(1&m&&(t.TgZ(0,"imx-link",1),t._uU(1),t.qZA()),2&m){const I=t.oxw();t.Q6J("link",I.link),t.xp6(),t.Oqu(I.label)}}let u=(()=>{class m{constructor(I){this.readI18nPipe=I,this.EDIT_PATH_PATTERN="EDIT",this.LIST_PATH_PATTERN="LIST",this.curlyBracketsRegex=/{(.*?)}/g,this.variableRegex=/\$(.*?)\$/g}updateDynamicComponent(I){const[H,O]=I;this._setLink(H,O),this._setLabel(H,O)}_setLink(I,H){let O=this._getLink(H);O=this.replaceDynamicPropsCurlyBrackets(I,O),O=this.replaceDynamicPropsVariables(O),this.link=O}replaceDynamicPropsCurlyBrackets(I,H){const O=this._extractDynamicLinkProperty(H,this.curlyBracketsRegex);return O&&O.forEach(P=>{const G=(0,l.jg)(I,P[1]);H=this._insertDynamicProperty(H,P[0],G)}),H}replaceDynamicPropsVariables(I){const H=this._extractDynamicLinkProperty(I,this.variableRegex);return H&&H.forEach(O=>{I=this.replacePathVariable(this.EDIT_PATH_PATTERN,O,I),I=this.replacePathVariable(this.LIST_PATH_PATTERN,O,I)}),I}replacePathVariable(I,H,O){const P=H[1].indexOf("_")+1;if(P>=1){const G=H[1].substring(P);if(G){const B=s.P.valueOf(G);if(B){let ae;switch(I){case this.EDIT_PATH_PATTERN:ae=B.detailRoute;break;case this.LIST_PATH_PATTERN:ae=B.listRoute;break;default:ae=void 0}ae&&(O=O.replace(this.variableRegex,ae))}}}return O}_setLabel(I,H){const O=(0,l.jg)(I,H.accessor);this.label=this.readI18nPipe.transform(O)}_getLink({format:I}){return I&&(0,e.HD)(I)&&(0,i.h)(I)||""}_extractDynamicLinkProperty(I,H){const O=[];let P;for(;null!=(P=H.exec(I));)O.push(P);return O.length>0?O:void 0}_insertDynamicProperty(I,H,O){return I.replace(H,O)}static#e=this.\u0275fac=function(H){return new(H||m)(t.Y36(p.j))};static#t=this.\u0275cmp=t.Xpm({type:m,selectors:[["imx-dashboard-table-link"]],decls:1,vars:1,consts:[[3,"link",4,"ngIf"],[3,"link"]],template:function(H,O){1&H&&t.YNc(0,x,2,2,"imx-link",0),2&H&&t.Q6J("ngIf",O.link)},dependencies:[c.O5,o.N],encapsulation:2})}return m})()},25501:(gt,X,a)=>{"use strict";a.d(X,{R:()=>I});var e=a(72079),n=a(49193),s=a(74815),l=a(49185),i=a(53075),t=a(62413),p=a(96124),c=a(19352),o=a(75222),x=a(21473),u=a(90576),m=a(89761),b=a(19212);let I=(()=>{class H{constructor(P,G){this.dataAccessService=P,this.dataExtractorService=G,this.destroy$$=new e.xQ}updateDynamicComponent(P){this._assignOwnProperties(P),this._setupDataStream(),this._onWidgetSetupSuccess()}_onWidgetSetupSuccess(){}_setupDataStream(){let P;P=this._refreshInterval?this._setupDataStreamWithRefresh(this._refreshInterval):this._setUpDataStreamWithoutRefresh(),this.data$=P.pipe((0,l.d)(1)),this.dataAsArray$=this.data$.pipe(G=>this._extractDataAsArray(G),G=>this._applyPageSize(G),(0,l.d)(1),(0,i.O)([]),(0,t.K)(G=>(0,n.of)([])))}_extractDataAsArray(P){return P.pipe((0,p.U)(G=>this.dataExtractorService.extractArrayData(this.contentType,G)))}_applyPageSize(P){return P.pipe((0,p.U)(G=>(0,m.LE)(this.viewInfo)&&this.viewInfo.rowCount?G.splice(0,this.viewInfo.rowCount):G))}_setupDataStreamWithRefresh(P){return(0,s.F)(1e3*P).pipe((0,c.R)(this.destroy$$),(0,i.O)(null),(0,o.w)(B=>this._shouldReturnInitialData(B)?this._returnInitialData():this._fetchDataFromService()))}_setUpDataStreamWithoutRefresh(){return this._hasInitialData?this._returnInitialData():this._fetchDataFromService()}_returnInitialData(){return(0,n.of)(this._initialData)}_fetchDataFromService(){return this.dataAccessService.get(this._serviceEndpoint)}get _refreshInterval(){return this.contentInfo.refreshPeriod}_shouldReturnInitialData(P){return this._isInitialDataRetrieving(P)&&this._hasInitialData}get _hasInitialData(){return!!this._initialData}_isInitialDataRetrieving(P){return null===P}get _initialData(){return"EntityQuery"!==this.contentType&&this.widgetContent?this.widgetContent:null}get _serviceEndpoint(){return this.contentInfo.serviceRequest}_assignOwnProperties({widgetDef:P,widgetContent:G}){const{viewInfo:B,contentType:ae,contentInfo:J}=P;this.viewInfo=B,this.contentType=ae,this.contentInfo=J,this.widgetContent=G}ngOnDestroy(){this.destroy$$.next(),this.destroy$$.complete()}static#e=this.\u0275fac=function(G){return new(G||H)(b.Y36(x.fx),b.Y36(u.X))};static#t=this.\u0275dir=b.lG2({type:H})}return H})()},19512:(gt,X,a)=>{"use strict";a.d(X,{P:()=>t});var e=a(21473),n=a(89761),s=a(95779),l=a(19212),i=a(59252);let t=(()=>{class p extends s.G{_onWidgetSetupSuccess(){this._adaptChartOptionsForStackedBarChart(),super._onWidgetSetupSuccess()}_createChartData(o){const x=this.viewInfo,u=[],m=[];return(0,n.kV)(x)&&(o.forEach(b=>{this._addXAxisDateLabelIfNotPresentYet(b,u,x),this._addDatasetToExistingDataGroupOrCreateNewDataGroup(b,m,x)}),this._formatXAxisDateLabels(u,x),this._translateDatasetLabels(m,x)),{preparedDatasets:m,labels:u}}_addXAxisDateLabelIfNotPresentYet(o,x,u){const m=o[u.dateColumn];(0,e.HD)(m)&&-1===x.indexOf(m)&&x.push(m)}_addDatasetToExistingDataGroupOrCreateNewDataGroup(o,x,u){const m=o[u.colorColumn],b=o[u.valueColumn];if((0,e.HD)(m)&&(0,e.hj)(b)){const I=x.findIndex(H=>H.label===m);if(-1===I){const H=this._getDatasetColor(o,u);x.push({label:m,data:[b],backgroundColor:H})}else x[I].data.push(b)}}_formatXAxisDateLabels(o,x){"Week"===x.dateColumnType&&o.forEach((u,m)=>o[m]=this._formatWeekDateLabel(u))}_formatWeekDateLabel(o){const[x,u]=o.split("-");return`KW${u}/${x}`}_translateDatasetLabels(o,x){const u=this._getAllDatasetsValueSum(o),{labelType:m,colorColumnType:b}=x;o.forEach(I=>{const H=this._getDatasetValueSum(I);I.label=this._prepareLabelForChartLegend(I.label,H,u,m,b)})}_getAllDatasetsValueSum(o){return o.reduce((x,u)=>x+this._getDatasetValueSum(u),0)}_getDatasetValueSum(o){return o.data.reduce((x,u)=>x+u,0)}_adaptChartOptionsForStackedBarChart(){this._isStackedBarChart&&(this.options=this._createOptionsForStackedBarChart())}get _isStackedBarChart(){return(0,n.kV)(this.viewInfo)&&"additive"===this.viewInfo.barType}_createOptionsForStackedBarChart(){return{...this.options,scales:{xAxes:[{stacked:!0}],yAxes:[{stacked:!0}]}}}static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=l.n5z(p)))(u||p)}})();static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["imx-dashboard-bar-chart-widget"]],features:[l.qOj],decls:1,vars:2,consts:[["type","bar",3,"data","options"]],template:function(x,u){1&x&&l._UZ(0,"p-chart",0),2&x&&l.Q6J("data",u.data)("options",u.options)},dependencies:[i.C],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%]{height:100%;overflow:auto}[_nghost-%COMP%]   p-chart[_ngcontent-%COMP%] >   div{min-width:250px;height:100%;display:flex;align-items:center;justify-content:center}"]})}return p})()},25478:(gt,X,a)=>{"use strict";a.d(X,{F:()=>c});var e=a(25501),n=a(19212),s=a(96814),l=a(50308),i=a(55387),t=a(71365);function p(o,x){if(1&o&&(n.TgZ(0,"div",1)(1,"imx-link",2),n._UZ(2,"imx-icon",3),n.TgZ(3,"span",4),n._uU(4),n.ALo(5,"translate"),n.qZA()()()),2&o){const u=x.$implicit;n.xp6(),n.Q6J("link",u.link),n.xp6(3),n.Oqu(n.lcZ(5,2,u.name))}}let c=(()=>{class o extends e.R{static#e=this.\u0275fac=(()=>{let u;return function(b){return(u||(u=n.n5z(o)))(b||o)}})();static#t=this.\u0275cmp=n.Xpm({type:o,selectors:[["imx-dashboard-links-widget"]],features:[n.qOj],decls:2,vars:3,consts:[["class","gridster-item-content",4,"ngFor","ngForOf"],[1,"gridster-item-content"],[3,"link"],["icon","link"],[1,"anchor-text"]],template:function(m,b){1&m&&(n.YNc(0,p,6,4,"div",0),n.ALo(1,"async")),2&m&&n.Q6J("ngForOf",n.lcZ(1,1,b.dataAsArray$))},dependencies:[s.sg,l.o,i.N,s.Ov,t.X$],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{margin-bottom:10px}[_nghost-%COMP%]     a{text-decoration:none;display:inline-flex;align-items:center}[_nghost-%COMP%]     a .anchor-text{text-decoration:underline;font-size:14px;line-height:16px}[_nghost-%COMP%]   imx-icon[_ngcontent-%COMP%]{margin-right:7px}[_nghost-%COMP%]   imx-icon[_ngcontent-%COMP%]     span{font-size:17px!important}"]})}return o})()},15766:(gt,X,a)=>{"use strict";a.d(X,{n:()=>H});var e=a(96124),n=a(21473),s=a(41621),l=a(90576),i=a(89761),t=a(43790),p=a(65678),c=a(89757),o=a(25501),x=a(19212),u=a(71365),m=a(96698),b=a(96814);const I=()=>["dashboard-table"];let H=(()=>{class O extends o.R{constructor(G,B,ae,J){super(G,B),this.translationService=ae,this.formatterService=J,this.columns=[],this.showColumnHeaders=!0}_onWidgetSetupSuccess(){(0,i.LE)(this.viewInfo)&&(this.columns=this.viewInfo.columns.map(G=>{const{property:B,toolTipProperty:ae,header:J,headerType:q}=G,j=this._getColumnContentType(G),Y=this._determineTooltipAccesor(ae,B);return{accessor:B,tooltipAccessor:Y,columnTitle:this._getColumnHeader(J,q),type:this._getColumnType(j),component:this._getColumnComponent(j),cssClass:this._getColumnCssClass(j),customDisplayFn:["id","dataObject.id"].includes(Y)?K=>K.toString():null,format:G.format}}),this.showColumnHeaders=!!this.viewInfo.showHeader),this.formattedDataAsArray$=this.dataAsArray$.pipe((0,e.U)(G=>{const B=this.viewInfo;return(0,i.LE)(B)&&G.forEach(ae=>{B.columns.forEach(J=>{this._applyFormat(ae,J)})}),G}))}_determineTooltipAccesor(G,B){return G||B&&["id","title","lastChangeTime","dataObject.id","dataObject.title","timestamp"].includes(B)?B:""}_getColumnHeader(G,B){if(G)return"Resource"===B?this.translationService.instant(G):G}_getColumnType(G){return"icon"===G||"link"===G?"component":"default"}_getColumnComponent(G){switch(G){case"icon":return p.X;case"link":return c.p}}_getColumnCssClass(G){switch(G){case"date":return"date-column";case"dateDiffToNow":return"date-diff-column";case"icon":return"icon-column imx-hide-sm";case"id":return"id-column";default:return}}_getColumnContentType(G){return this._isIconColumn(G)?"icon":this._isDateColumn(G)?"date":this._isDateDiffColumn(G)?"dateDiffToNow":this._isIdColumn(G)?"id":this._isNumberColumn(G)?"number":this._isLinkColumn(G)?"link":"string"}_isIdColumn(G){return this._isNumberColumn(G)&&G.property.includes("id")}_isNumberColumn({format:G}){return!!G&&G.includes("Number")}_isDateColumn({format:G}){return!!G&&G.includes("Date(")}_isDateDiffColumn({format:G}){return"DateDiff"===G}_isStringColumn({format:G}){return void 0===G||"String"===G}_isIconColumn({format:G}){return!!G&&G.includes("Iconset")}_isLinkColumn({format:G}){return!!G&&G.includes("Link")}_applyFormat(G,B){const{format:ae,property:J}=B;if(!ae||!(0,n.Kn)(G))return;let q=(0,s.jg)(G,J);switch(this._getColumnContentType(B)){case"date":q=this._applyDateFormat(q,B);break;case"dateDiffToNow":q=this._applyDateDiffFormat(q,B);break;case"id":case"number":q=this._applyNumberFormat(q,B)}(0,s.Hn)(G,J,q)}_applyNumberFormat(G,{format:B}){if(!B)return G;const ae=(0,t.h)(B);return this.formatterService.formatNumber(G,ae,G)}_applyDateFormat(G,B){const{format:ae,type:J}=B;if(!ae)return G;const q=this._getDateFormatOfBackendData(J),j=this._getOutputDateFormat(ae);return this.formatterService.formatDate(G,j,q,G)}_applyDateDiffFormat(G,B){const ae=this._getDateFormatOfBackendData(B.type);return this.formatterService.formatDateDiffFromNow(G,ae,G)}_getOutputDateFormat(G){return(0,t.h)(G)}_getDateFormatOfBackendData(G){if(G)return this._getBackendDataDateFormatForType(G)}_getBackendDataDateFormatForType(G){switch(G){case"Date":return"yyyy-MM-dd";case"Timestamp":return"yyyy-MM-dd HH:mm:ss.S";case"Time":return"HH:mm:ss.S";case"Week":return"YYYY-'W'ww";case"Month":return"YYYY-MM"}}static#e=this.\u0275fac=function(B){return new(B||O)(x.Y36(n.fx),x.Y36(l.X),x.Y36(u.sK),x.Y36(n.H1))};static#t=this.\u0275cmp=x.Xpm({type:O,selectors:[["imx-dashboard-list-widget"]],features:[x.qOj],decls:2,vars:7,consts:[["maxHeight","100%",1,"gridster-item-content",3,"additionalStyle","columns","data","showColumnHeaders"]],template:function(B,ae){1&B&&(x._UZ(0,"imx-table",0),x.ALo(1,"async")),2&B&&x.Q6J("additionalStyle",x.DdM(6,I))("columns",ae.columns)("data",x.lcZ(1,4,ae.formattedDataAsArray$))("showColumnHeaders",ae.showColumnHeaders)},dependencies:[m.a,b.Ov],encapsulation:2})}return O})()},95779:(gt,X,a)=>{"use strict";a.d(X,{G:()=>u});var e=a(7902),n=a(21473),s=a(90576);const l={red:"#96172E",green:"#739600",blue:"#1C798E",yellow:"#906700"},i=["#3366CC","#DC3912","#FF9900","#109618","#990099","#3B3EAC","#0099C6","#DD4477","#66AA00","#B82E2E","#316395","#994499","#22AA99","#AAAA11","#6633CC","#E67300","#8B0707","#329262","#5574A6","#3B3EAC"];var t=a(89761),p=a(25501),c=a(19212),o=a(71365),x=a(59252);let u=(()=>{class m extends p.R{constructor(I,H,O){super(I,H),this.translationService=O,this.options={legend:{position:"right"},maintainAspectRatio:!1},this._subscription=new e.w}_onWidgetSetupSuccess(){this._subscribeToIncomingDataAndUpdateChartAccordingly()}_subscribeToIncomingDataAndUpdateChartAccordingly(){this._subscription=this.dataAsArray$.subscribe(I=>{const{preparedDatasets:H,labels:O}=this._createChartData(I),P=H.map(({data:G,backgroundColor:B,label:ae})=>({data:G,backgroundColor:B,label:ae}));this.data={labels:O,datasets:P}})}_createChartData(I){let H={data:[],backgroundColor:[]},O=[];const P=this.viewInfo;return(0,t.bF)(P)&&(H=this._getChartDatasets(I,P),O=this._createLegendLabels(I,P,H)),{preparedDatasets:[H],labels:O}}_getChartDatasets(I,H){const O=[],P=[];return I.forEach(G=>{const B=this._getDatasetValue(G,H),ae=this._getDatasetColor(G,H);O.push(B),P.push(ae)}),{data:O,backgroundColor:P}}_getAllDatasetsValueSum(I){return I[0].data.reduce((H,O)=>H+O,0)}_createLegendLabels(I,H,O){const P=this._getAllDatasetsValueSum([O]),G=[];return I.forEach((B,ae)=>{const J=this._getDatasetLabel(B,H,O.data[ae],P);G.push(J)}),G}_getDatasetValue(I,H){const O=I[H.valueColumn];return(0,n.hj)(O)?O:0}_getDatasetLabel(I,H,O,P){const{colorColumn:G,colorColumnType:B,labelType:ae}=H,J=I[G];return(0,n.HD)(J)?this._prepareLabelForChartLegend(J,O,P,ae,B):"N/A"}_prepareLabelForChartLegend(I,H,O,P,G){return"EntityType"===G?I=this._translateEntityType(I):"Resource"===G&&(I=this._translateResource(I)),`${this._getLabelPrefix(P,H,O)} ${I}`.trim()}_translateEntityType(I){return this._translateResource(`entity.${I}.plural`)}_translateResource(I){return this.translationService.instant(I)}_getLabelPrefix(I,H,O){switch(I){case"absolute":return this._getAbsoluteLabelPrefix(H);case"percentage":return this._getPercentageLabelPrefix(H,O);default:return""}}_getAbsoluteLabelPrefix(I){return`${I}`}_getPercentageLabelPrefix(I,H){return`${(I/H*100).toFixed(0)}%`}_getDatasetColor(I,H){const O=this._getColorKey(I,H),P=this._getColorMapKey(O,H);return P&&l[P]||this._randomFallbackColor}_getColorKey(I,H){const O=I[H.colorColumn];if((0,n.HD)(O))return O}_getColorMapKey(I,H){if(I){const O=`${I}:`,P=H.colorMap.find(G=>G.startsWith(O));if(P)return P.replace(O,"")}}get _randomFallbackColor(){return i[this._randomIndex]}get _randomIndex(){const H=i.length;return Math.floor(Math.random()*(H-0))+0}static#e=this.\u0275fac=function(H){return new(H||m)(c.Y36(n.fx),c.Y36(s.X),c.Y36(o.sK))};static#t=this.\u0275cmp=c.Xpm({type:m,selectors:[["imx-dashboard-pie-chart-widget"]],features:[c.qOj],decls:1,vars:2,consts:[["type","doughnut",3,"data","options"]],template:function(H,O){1&H&&c._UZ(0,"p-chart",0),2&H&&c.Q6J("data",O.data)("options",O.options)},dependencies:[x.C],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%]{height:100%;overflow:auto}[_nghost-%COMP%]   p-chart[_ngcontent-%COMP%] >   div{min-width:250px;height:100%;display:flex;align-items:center;justify-content:center}"]})}return m})()},44612:(gt,X,a)=>{"use strict";a.d(X,{_:()=>b});var e=a(72079),n=a(7902),s=a(96776),l=a(51418),i=a(21473),t=a(41621),p=a(90576),c=a(89761),o=a(25501),x=a(19212),u=a(56223),m=a(67849);let b=(()=>{class I extends o.R{constructor(O,P){super(O,P),this._inputChangeStream$$=new e.xQ,this._subscriptions=new n.w,this._subscribeToInputChangesAndSaveThemToBackendAfterADebounceTime()}_onWidgetSetupSuccess(){this._subscribeToIncomingDataAndUpdateModelAccordingly()}_subscribeToInputChangesAndSaveThemToBackendAfterADebounceTime(){this._subscriptions.add(this._inputChangeStream$$.pipe((0,s.b)(500)).subscribe(()=>{this._performUpdateBackendRequest()}))}_performUpdateBackendRequest(){if(this._serviceEndpointForUpdate){const O=this._getUpdateRequestBody();this.dataAccessService.put(this._serviceEndpointForUpdate,O).pipe((0,l.q)(1)).subscribe(()=>{})}}get _serviceEndpointForUpdate(){return this.contentInfo.serviceRequestUpdate}_getUpdateRequestBody(){const O={...this._initialModel};return this.valueProperty&&(0,t.Hn)(O,this.valueProperty,this.model),O}_subscribeToIncomingDataAndUpdateModelAccordingly(){this._subscriptions.add(this.data$.subscribe(O=>this._updateModelForValidData(O)))}_updateModelForValidData(O){if((0,c.oK)(O)&&this.valueProperty){const P=this._extractDataObject(O),G=(0,t.jg)(P,this.valueProperty);(0,i.HD)(G)&&(this._initialModel=P,this.model=G)}}_extractDataObject(O){let P;return P=(0,c.il)(O)?O.value:O,P}get valueProperty(){if((0,c.SU)(this.viewInfo))return this.viewInfo.valueProperty}handleInputChange(){this._inputChangeStream$$.next()}ngOnDestroy(){this._subscriptions.unsubscribe()}static#e=this.\u0275fac=function(P){return new(P||I)(x.Y36(i.fx),x.Y36(p.X))};static#t=this.\u0275cmp=x.Xpm({type:I,selectors:[["imx-dashboard-text-read-write-widget"]],features:[x.qOj],decls:1,vars:1,consts:[[1,"gridster-item-content",3,"ngModel","ngModelChange"]],template:function(P,G){1&P&&(x.TgZ(0,"imx-base-multi-input",0),x.NdJ("ngModelChange",function(ae){return G.model=ae})("ngModelChange",function(){return G.handleInputChange()}),x.qZA()),2&P&&x.Q6J("ngModel",G.model)},dependencies:[u.JJ,u.On,m.x],styles:["[_nghost-%COMP%]{display:block}imx-base-multi-input[_ngcontent-%COMP%]     textarea{display:block;width:100%;min-height:180px!important;margin:0}"]})}return I})()},21959:(gt,X,a)=>{"use strict";a.d(X,{o:()=>l});var e=a(96124),n=a(21473),s=a(19212);let l=(()=>{class i{constructor(p){this.dataAccessService=p}loadDashboardWidgets$(){return this.dataAccessService.get(this._endpoint).pipe((0,e.U)(p=>(this.dashboardConfig={...p.Dashboard},p.Dashboard.widgets.map(c=>this._transformBackendToFrontend(c)))))}saveDashboard$(p){const c=this._createSaveDashboardRequestBody(p);return this.dataAccessService.post(this._endpoint,c)}_createSaveDashboardRequestBody(p){const c=p.map(o=>this._transformFrontendToBackend(o));return{Dashboard:{...this.dashboardConfig,widgets:c}}}get _endpoint(){return"dashboard/my"}_transformBackendToFrontend(p){const{size:{width:c,height:o},pos:{y:x,x:u},widgetDef:m,widgetContent:b}=p;return{cols:c,rows:o,hasContent:"TextReadWrite"===m.viewType,y:x,x:u,widgetDef:m,widgetContent:b}}_transformFrontendToBackend(p){const{cols:c,rows:o,x,y:u,widgetDef:m,widgetContent:b}=p;return{pos:{x,y:u},size:{width:c,height:o},widgetContent:b,widgetDef:m}}static#e=this.\u0275fac=function(c){return new(c||i)(s.LFG(n.fx))};static#t=this.\u0275prov=s.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})()},90576:(gt,X,a)=>{"use strict";a.d(X,{X:()=>l});var e=a(21473),n=a(89761),s=a(19212);let l=(()=>{class i{extractArrayData(p,c){let o;switch(p){case"EntityQuery":case"EntityList":o=this._extractListWidgetContentDataAsArray(c);break;case"ValueTable":o=this._extractValueTableWidgetContentDataAsArray(c);break;case"SingleValue":o=this._extractSingleValueWidgetContentDataAsArray(c);break;case"MultiValues":o=this._extractMultiValuesWidgetContentDataAsArray(c);break;default:throw Error("Dashboard widget content type not supported!")}if((0,e.kJ)(o))return o;throw Error('The provided data do not match the value of "widgetDef.contentType"!')}_extractListWidgetContentDataAsArray(p){if((0,n.YU)(p)){let c;return c=(0,n.eB)(p)?p.entityList:p,this._getObjectValues(c).find(o=>Array.isArray(o))||[]}}_extractValueTableWidgetContentDataAsArray(p){if((0,n.b1)(p))return(0,n.op)(p)?p.valueTable.rows:p.rows}_extractSingleValueWidgetContentDataAsArray(p){if((0,n.oK)(p))return(0,n.il)(p)?[p.value]:[p]}_extractMultiValuesWidgetContentDataAsArray(p){if((0,n.KP)(p))return(0,n.qi)(p)?p.multiValues.values:p.values}_getObjectValues(p){return Object.keys(p).map(c=>p[c])}static#e=this.\u0275fac=function(c){return new(c||i)};static#t=this.\u0275prov=s.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})()},89761:(gt,X,a)=>{"use strict";a.d(X,{KP:()=>c,LE:()=>x,SU:()=>u,YU:()=>n,b1:()=>l,bF:()=>m,eB:()=>s,il:()=>p,kV:()=>b,oK:()=>t,op:()=>i,qi:()=>o});var e=a(21473);function n(O){if(I(Object.keys(O),"entityList"))return!0;const G=function H(O){return Object.keys(O).map(P=>O[P])}(O).findIndex(J=>(0,e.kJ)(J));if(-1===G)return!1;const ae=O[Object.keys(O)[G]][0];return!!(0,e.Kn)(ae)&&void 0!==ae._entityType}function s(O){return void 0!==O.entityList}function l(O){const P=Object.keys(O);return I(P,"valueTable")||I(P,"rows")}function i(O){return void 0!==O.valueTable}function t(O){return I(Object.keys(O),"value")||(0,e.Kn)(O)}function p(O){return void 0!==O.value}function c(O){const P=Object.keys(O);return I(P,"multiValues")||I(P,"values")}function o(O){return void 0!==O.multiValues}function x(O){return void 0!==O.columns}function u(O){return void 0!==O.valueProperty}function m(O){return["valueColumn","colorColumn","colorMap"].every(G=>void 0!==O[G])}function b(O){return m(O)&&["dateColumn","dateColumnType","barType"].every(G=>void 0!==O[G])}function I(O,P){return!!O.find(G=>G===P)}},43790:(gt,X,a)=>{"use strict";function e(n){const s=n.match(/\((.*)\)/);return s?s[1]:void 0}a.d(X,{h:()=>e})},21647:(gt,X,a)=>{"use strict";a.d(X,{h:()=>ti});var e=a(19212),n=a(22941),s=a(72079),l=a(49193),i=a(19352),t=a(97808),p=a(97550),c=a(41900),o=a(60768),x=a(21473),u=a(4116),m=a(22819),b=a(54320),I=a(43425),H=a(96814),O=a(16007),P=a(32651),G=a(36681),B=a(51793),ae=a(50308),J=a(35475),q=a(87643),j=a(71577),Y=a(22194),K=a(2694),ne=a(71365);const ee=["genericSidebarRight"],$=["genericBarContentRight"],ue=["genericSidebarLeft"],ge=["genericBarContentLeft"];function Ke(Xt,Je){}function at(Xt,Je){}function Le(Xt,Je){1&Xt&&(e.ynx(0),e.TgZ(1,"picture",19),e._UZ(2,"source",20)(3,"source",21)(4,"img",22),e.qZA(),e.BQk())}function R(Xt,Je){1&Xt&&(e.ynx(0),e.TgZ(1,"picture",19),e._UZ(2,"source",23)(3,"source",24)(4,"img",25),e.qZA(),e.BQk())}function Te(Xt,Je){1&Xt&&(e.ynx(0),e.TgZ(1,"picture",26),e._UZ(2,"source",27)(3,"img",28),e.qZA(),e.BQk())}function me(Xt,Je){1&Xt&&(e.ynx(0),e.TgZ(1,"picture",26),e._UZ(2,"source",29)(3,"source",30)(4,"img",31),e.qZA(),e.BQk())}function Se(Xt,Je){1&Xt&&(e.ynx(0),e.TgZ(1,"div",32),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.BQk()),2&Xt&&(e.xp6(2),e.Oqu(e.lcZ(3,1,"imxplatform.main.license")))}function Ue(Xt,Je){1&Xt&&(e.ynx(0),e.TgZ(1,"div",33),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.BQk()),2&Xt&&(e.xp6(2),e.Oqu(e.lcZ(3,1,"imxplatform.main.license")))}function We(Xt,Je){if(1&Xt&&(e.ynx(0),e.YNc(1,Le,5,0,"ng-container",11)(2,R,5,0,"ng-container",11)(3,Te,4,0,"ng-container",11)(4,me,5,0,"ng-container",11),e.TgZ(5,"picture",16),e._UZ(6,"source",17)(7,"img",18),e.qZA(),e.YNc(8,Se,4,3,"ng-container",11)(9,Ue,4,3,"ng-container",11),e.BQk()),2&Xt){const dt=e.oxw();e.xp6(),e.Q6J("ngIf",dt.isDarkBackground()),e.xp6(),e.Q6J("ngIf",!dt.isDarkBackground()),e.xp6(),e.Q6J("ngIf",!dt.isDarkBackground()),e.xp6(),e.Q6J("ngIf",dt.isDarkBackground()),e.xp6(4),e.Q6J("ngIf",!dt.isDarkBackground()),e.xp6(),e.Q6J("ngIf",dt.isDarkBackground())}}function et(Xt,Je){if(1&Xt){const dt=e.EpF();e.TgZ(0,"imx-tooltip",47)(1,"button",48),e.NdJ("click",function(){e.CHM(dt);const ot=e.oxw(2);return e.KtG(ot.openNavigation())}),e._UZ(2,"span",49),e.qZA()()}2&Xt&&e.Q6J("tooltipText","imxplatform.main.tooltip.navigation")}function Et(Xt,Je){if(1&Xt){const dt=e.EpF();e.TgZ(0,"imx-tooltip",47)(1,"button",50),e.NdJ("click",function(){e.CHM(dt);const ot=e.oxw(2);return e.KtG(ot.openQuickAccess())}),e._UZ(2,"span",51),e.qZA()()}2&Xt&&e.Q6J("tooltipText","imxplatform.main.tooltip.quick-access")}function lt(Xt,Je){1&Xt&&(e.ynx(0),e._UZ(1,"imx-universal-search",52),e.BQk())}function Vt(Xt,Je){1&Xt&&(e.TgZ(0,"a",55),e._UZ(1,"imx-icon",56),e.qZA())}function r(Xt,Je){1&Xt&&e._UZ(0,"imx-icon",60)}function Z(Xt,Je){1&Xt&&e._UZ(0,"imx-icon",61)}function Pt(Xt,Je){if(1&Xt&&(e.TgZ(0,"a",57),e.YNc(1,r,1,0,"imx-icon",58)(2,Z,1,0,"imx-icon",59),e.qZA()),2&Xt){const dt=e.oxw(3);e.xp6(),e.Q6J("ngIf",!dt.backgroundActionService.isLastActionResultSuccessful()),e.xp6(),e.Q6J("ngIf",dt.backgroundActionService.isLastActionResultSuccessful())}}function Oe(Xt,Je){if(1&Xt&&e.YNc(0,Vt,2,0,"a",53)(1,Pt,3,2,"a",54),2&Xt){const dt=e.oxw(2);e.Q6J("ngIf",dt.backgroundActionService.backgroundActionsRunning()),e.xp6(),e.Q6J("ngIf",dt.backgroundActionService.backgroundActionsCompleted())}}function ye(Xt,Je){if(1&Xt&&(e.TgZ(0,"div",62)(1,"p",63),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"p",64),e._uU(5),e.qZA()()),2&Xt){const dt=Je.ngIf;e.xp6(2),e.hij(" ",e.lcZ(3,4,"imxplatform.main.logged-in-text")," "),e.xp6(3),e.lnq(" ",dt.loginname," (",dt.client.name,"/",dt.client.id,") ")}}function ve(Xt,Je){1&Xt&&(e.TgZ(0,"div",65),e._UZ(1,"mat-progress-bar",66),e.qZA())}function ft(Xt,Je){if(1&Xt){const dt=e.EpF();e.TgZ(0,"div",34),e.YNc(1,et,3,1,"imx-tooltip",35)(2,Et,3,1,"imx-tooltip",35),e.ALo(3,"async"),e.YNc(4,lt,2,0,"ng-container",11),e.ALo(5,"async"),e._UZ(6,"div",36),e.TgZ(7,"div",37)(8,"imx-dropup-button",38),e.YNc(9,Oe,2,2,"ng-template",39),e._UZ(10,"imx-background-action-list",40),e.qZA()(),e.TgZ(11,"div",41),e.NdJ("click",function(){e.CHM(dt);const ot=e.oxw();return e.KtG(ot.openUserSidebar())}),e.YNc(12,ye,6,6,"div",42),e.ALo(13,"async"),e.TgZ(14,"div",43),e._UZ(15,"img",44),e.qZA(),e._UZ(16,"span",45),e.qZA(),e.YNc(17,ve,2,0,"div",46),e.qZA()}if(2&Xt){const dt=e.oxw();e.xp6(),e.Q6J("ngIf",!dt.hideMenuButton),e.xp6(),e.Q6J("ngIf",!dt.hideQuickAccessButton&&!e.lcZ(3,7,dt.quickAccessService.getPinnedState())),e.xp6(2),e.Q6J("ngIf",e.lcZ(5,9,!dt.hideMenuButton&&dt.activateUniversalSearchbar$)),e.xp6(6),e.Q6J("actionStates",dt.backgroundActionService.getActionStates())("jobStates",dt.backgroundActionService.getJobStates()),e.xp6(2),e.Q6J("ngIf",e.lcZ(13,11,dt.currentProfile)),e.xp6(5),e.Q6J("ngIf",dt.navigating)}}function Dt(Xt,Je){1&Xt&&(e.TgZ(0,"div",67),e._UZ(1,"imx-quick-access-content",68),e.qZA()),2&Xt&&(e.xp6(),e.Q6J("isPinnedMode",!0))}const Rn=Xt=>({open:Xt});let ti=(()=>{class Xt{constructor(dt,Ie,ot,ct,tn,yi,ni,sn,bn,vt){this.authenticationService=dt,this.router=Ie,this.route=ot,this.platformService=ct,this.routingStateService=tn,this.genericSidebarService=yi,this.quickAccessService=ni,this.backgroundActionService=sn,this.configurationProvider=bn,this.navigationVoterService=vt,this.contextNavigationService=(0,e.f3M)(u.E),this.destroy$=new s.xQ,this.authenticated=!1,this.navigating=!1,this.hideMenuButton=!1,this.hideQuickAccessButton=!1,this.activateUniversalSearchbar$=(0,l.of)(!1),this.router.events.pipe((0,i.R)(this.destroy$)).subscribe(nn=>{nn instanceof n.m2&&this.contextNavigationService.setCurrentNavigationEnd(nn)})}ngOnInit(){caches.keys().then(function(dt){for(const Ie of dt)console.log("remove sw cache:",Ie),caches.delete(Ie)}),this.authSubscription=this.authenticationService.getAuthenticatedFlag().subscribe(dt=>{if(this.authenticated=dt,dt){const Ie=this.authenticationService.currentPrincipal;Ie&&(this.currentProfile=this.platformService.getUserInfo(Ie.getIdentifier()||""))}},()=>this.authenticated=!1),this.genericSidebarService.init({left:{sidenav:this.sidenavLeft,container:this.genericBarContentLeft,elementRef:this.genericSidebarElementRefLeft},right:{sidenav:this.sidenavRight,container:this.genericBarContentRight,elementRef:this.genericSidebarElementRefRight}}),this.router.events.subscribe(dt=>{dt instanceof n.OD&&(this.navigating=!0),(dt instanceof n.m2||dt instanceof n.gk)&&(this.navigating=!1,this.isPreviewPage=!!(this.router.url.startsWith("/preview")||this.router.url.startsWith("/qr-announcement-print")||this.router.url.startsWith("/noewEntry")))}),this.navigationVoterService&&(this.navigationVoterService.hideMenuButton().subscribe(dt=>this.hideMenuButton=dt),this.navigationVoterService.hideQuickAccessButton().subscribe(dt=>this.hideQuickAccessButton=dt)),this.route.queryParamMap.pipe((0,i.R)(this.destroy$)).subscribe(dt=>{!0===this.authenticated&&this.removeParamFromUrl(dt,["tabsession"])}),this.activateUniversalSearchbar$=this.configurationProvider.getBoolean(x.x3.IMXPLATFORM_UNIVERSAL_SEARCH_ACTIVATE)}removeParamFromUrl(dt,Ie){const ot={};dt.keys.filter(tn=>!Ie.includes(tn)).forEach(tn=>ot[tn]=dt.get(tn)),this.router.navigate([],{queryParams:ot,replaceUrl:!0,relativeTo:this.route})}onBeforeUnload(dt){this.backgroundActionService.backgroundActionsRunning()&&(dt.returnValue=!0)}ngOnDestroy(){this.authSubscription&&(this.authSubscription.unsubscribe(),this.authSubscription=void 0),this.destroy$.next(),this.destroy$.complete()}isFullScreenBackground(){return this.router.url.startsWith("/login")||this.router.url.startsWith("/forgot-password")||this.router.url.startsWith("/qr-announcement-update")}isDarkBackground(){return this.router.url.startsWith("/forgot-password")}openUserSidebar(){this.genericSidebarService.open(c.$,"right",{cssClass:"imx-user-sidebar"})}openNavigation(){this.genericSidebarService.open(t.J,"left",{cssClass:"imx-navigation-sidebar"})}openQuickAccess(){this.genericSidebarService.open(p.U,"left",{cssClass:"imx-quick-access-sidebar",data:{openBlocks:{objectHistory:!0}}})}static#e=this.\u0275fac=function(Ie){return new(Ie||Xt)(e.Y36(x.$h),e.Y36(n.F0),e.Y36(n.gz),e.Y36(m.nq),e.Y36(x.Yz),e.Y36(b.B),e.Y36(I.I),e.Y36(o.k_),e.Y36(x.Pc),e.Y36(x.qw,8))};static#t=this.\u0275cmp=e.Xpm({type:Xt,selectors:[["imx-platform-main"]],viewQuery:function(Ie,ot){if(1&Ie&&(e.Gf(ee,7),e.Gf($,7,e.s_b),e.Gf(ee,7,e.SBq),e.Gf(ue,7),e.Gf(ge,7,e.s_b),e.Gf(ue,7,e.SBq)),2&Ie){let ct;e.iGM(ct=e.CRH())&&(ot.sidenavRight=ct.first),e.iGM(ct=e.CRH())&&(ot.genericBarContentRight=ct.first),e.iGM(ct=e.CRH())&&(ot.genericSidebarElementRefRight=ct.first),e.iGM(ct=e.CRH())&&(ot.sidenavLeft=ct.first),e.iGM(ct=e.CRH())&&(ot.genericBarContentLeft=ct.first),e.iGM(ct=e.CRH())&&(ot.genericSidebarElementRefLeft=ct.first)}},hostBindings:function(Ie,ot){1&Ie&&e.NdJ("beforeunload",function(tn){return ot.onBeforeUnload(tn)},!1,e.Jf7)},decls:22,vars:10,consts:[[1,"imx-sidenav-container"],["mode","over","position","start",1,"mat-elevation-z4","imx-sidebar"],["genericSidebarLeft",""],[1,"close-button","navigation",3,"click"],[1,"icon-cross"],["genericBarContentLeft",""],["mode","over","position","end",1,"mat-elevation-z4","imx-sidebar"],["genericSidebarRight",""],[1,"close-button",3,"click"],["genericBarContentRight",""],[1,"content-wrap"],[4,"ngIf"],["class","imx-toolbar",4,"ngIf"],[1,"imx-main-content"],["class","imx-pin-container",4,"ngIf"],["id","main",1,"pinable-transition","pinable-shrink-content",3,"ngClass"],[1,"imx-loginLogo"],["srcset","assets/platform.svg"],["alt","","src","assets/platform.svg"],[1,"imx-loginBackground"],["srcset","assets/login/blue/platformLoginBG_lg_blue.svg","media","(min-width: 1401px)"],["srcset","assets/login/blue/platformLoginBG_md_blue.svg","media","(max-width: 1400px)"],["alt","","src","assets/login/blue/platformLoginBG_lg_blue.svg"],["srcset","assets/login/platformLoginBG_lg.svg","media","(min-width: 1401px)"],["srcset","assets/login/platformLoginBG_md.svg","media","(max-width: 1400px)"],["alt","","src","assets/login/platformLoginBG_lg.svg"],[1,"imx-loginBackground-triangle"],["srcset","assets/login/platformLoginTriangle.svg"],["alt","","src","assets/login/platformLoginTriangle.svg",1,"imx-loginBackground-triangle__image"],["srcset","assets/platformBG_lg.jpg","media","(min-width: 1401px)"],["srcset","assets/platformBG_md.jpg","media","(max-width: 1400px)"],["alt","","src","assets/platformBG_md.jpg",1,"imx-loginBackground-triangle__image"],[1,"imx-loginLicenseHint"],[1,"imx-loginLicenseHint","imx-loginLicenseHint--dark"],[1,"imx-toolbar"],[3,"tooltipText",4,"ngIf"],[1,"spacer"],[1,"background-actions"],["position","below","halign","end"],["imx-dropup-trigger",""],[3,"actionStates","jobStates"],[1,"user-profile-button",3,"click"],["class","info-text",4,"ngIf"],[1,"info-profile-icon"],["src","./assets/avatar.jpg","alt","User Avatar"],[1,"icon-chevron-down"],["class","page-loading-wrapper",4,"ngIf"],[3,"tooltipText"],[1,"menu-button","main-menu",3,"click"],[1,"icon-menu","imx-icon-big"],[1,"menu-button","quick-access-menu",3,"click"],[1,"icon-star","imx-icon-big"],[1,"us"],["class","actions-running",4,"ngIf"],["class","actions-done",4,"ngIf"],[1,"actions-running"],["icon","snake","size","xlarge"],[1,"actions-done"],["icon","flash","size","xlarge",4,"ngIf"],["icon","job-done","size","xlarge",4,"ngIf"],["icon","flash","size","xlarge"],["icon","job-done","size","xlarge"],[1,"info-text"],[1,"info-text-1","imx-hide-sm"],[1,"info-text-2"],[1,"page-loading-wrapper"],["mode","indeterminate"],[1,"imx-pin-container"],[3,"isPinnedMode"]],template:function(Ie,ot){if(1&Ie){const ct=e.EpF();e.TgZ(0,"mat-sidenav-container",0)(1,"mat-sidenav",1,2)(3,"div",3),e.NdJ("click",function(){e.CHM(ct);const yi=e.MAs(2);return e.KtG(yi.toggle())}),e._UZ(4,"span",4),e.qZA(),e.YNc(5,Ke,0,0,"ng-template",null,5,e.W1O),e.qZA(),e.TgZ(7,"mat-sidenav",6,7)(9,"div",8),e.NdJ("click",function(){e.CHM(ct);const yi=e.MAs(8);return e.KtG(yi.toggle())}),e._UZ(10,"span",4),e.qZA(),e.YNc(11,at,0,0,"ng-template",null,9,e.W1O),e.qZA(),e.TgZ(13,"mat-sidenav-content",10),e.YNc(14,We,10,6,"ng-container",11)(15,ft,18,13,"div",12),e.TgZ(16,"div",13),e.YNc(17,Dt,2,1,"div",14),e.ALo(18,"async"),e.TgZ(19,"div",15),e.ALo(20,"async"),e._UZ(21,"router-outlet"),e.qZA()()()()}2&Ie&&(e.xp6(14),e.Q6J("ngIf",ot.isFullScreenBackground()),e.xp6(),e.Q6J("ngIf",ot.authenticated&&!ot.isPreviewPage),e.xp6(2),e.Q6J("ngIf",e.lcZ(18,4,ot.quickAccessService.getPinnedState())&&ot.authenticated&&!ot.isPreviewPage),e.xp6(2),e.Q6J("ngClass",e.VKq(8,Rn,e.lcZ(20,6,ot.quickAccessService.getPinnedState()))))},dependencies:[H.mk,H.O5,O.pW,P.JX,P.TM,P.Rh,n.lC,G.t,B.F,ae.o,J.K,q.r,j.w,Y.F,K.j,H.Ov,ne.X$],styles:[".imx-main-content[_ngcontent-%COMP%]{display:flex;flex-direction:row;position:relative;flex:1;padding-bottom:10px}.imx-toolbar[_ngcontent-%COMP%] + .imx-main-content[_ngcontent-%COMP%]{padding-top:50px}#main[_ngcontent-%COMP%]{flex:1 1 100%}.imx-pin-container[_ngcontent-%COMP%]{width:18vw;height:calc(100% - 50px);z-index:4;position:fixed;top:50px;background:#e6e9ef}  .pinable-transition{transition:padding-left .2s ease-in-out}.pinable-shrink-content.open[_ngcontent-%COMP%]{padding-left:18vw}.pinable-shrink-content.open[_ngcontent-%COMP%]     .pinable-aware{padding-left:18vw}.background-actions-menu-triangle[_ngcontent-%COMP%]{right:10px;left:unset}.imx-toolbar[_ngcontent-%COMP%]{display:flex;width:100%;height:50px;flex-direction:row;position:fixed;top:0;left:0;z-index:3;align-items:center}@media (max-width: 900px){.imx-toolbar[_ngcontent-%COMP%]   .us[_ngcontent-%COMP%]{width:300px}}@media (min-width: 901px){.imx-toolbar[_ngcontent-%COMP%]   .us[_ngcontent-%COMP%]{width:600px}}.imx-toolbar[_ngcontent-%COMP%]   .spacer[_ngcontent-%COMP%]{display:flex;flex-grow:1}.imx-toolbar[_ngcontent-%COMP%]   .background-actions[_ngcontent-%COMP%]{padding:0 3vw}.imx-toolbar[_ngcontent-%COMP%]   .background-actions[_ngcontent-%COMP%]   .actions-done[_ngcontent-%COMP%]{padding:0 5px}.imx-toolbar[_ngcontent-%COMP%]   .background-actions[_ngcontent-%COMP%]   .actions-running[_ngcontent-%COMP%]{display:block;animation-name:_ngcontent-%COMP%_spin;animation-duration:4s;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.imx-toolbar[_ngcontent-%COMP%]   .page-loading-wrapper[_ngcontent-%COMP%]{position:absolute;top:50px;left:0;width:100%}.imx-loginLicenseHint[_ngcontent-%COMP%]{position:absolute;text-align:right;padding-bottom:5px;z-index:2}@media (min-width: 1401px){.imx-loginLicenseHint[_ngcontent-%COMP%]{bottom:10px;right:10px;width:339px}}@media (min-width: 901px) and (max-width: 1400px){.imx-loginLicenseHint[_ngcontent-%COMP%]{bottom:10px;right:10px;width:162px}}@media (min-width: 551px) and (max-width: 900px){.imx-loginLicenseHint[_ngcontent-%COMP%]{bottom:10px;right:10px;width:162px}}@media (max-width: 550px){.imx-loginLicenseHint[_ngcontent-%COMP%]{bottom:2px;right:5px;writing-mode:sideways-lr}}@media (min-width: 551px){.imx-loginLicenseHint[_ngcontent-%COMP%]:not(.imx-loginLicenseHint--dark){font:400 8.9285714286px GT Walsheim,Arial,sans-serif;color:#fff}}@media (max-width: 550px){.imx-loginLicenseHint[_ngcontent-%COMP%]:not(.imx-loginLicenseHint--dark){font:400 8.9285714286px GT Walsheim,Arial,sans-serif;color:#00000040}}@media (min-width: 551px){.imx-loginLicenseHint.imx-loginLicenseHint--dark[_ngcontent-%COMP%]{font:400 8.9285714286px GT Walsheim,Arial,sans-serif;color:#fff}}@media (max-width: 550px){.imx-loginLicenseHint.imx-loginLicenseHint--dark[_ngcontent-%COMP%]{font:400 8.9285714286px GT Walsheim,Arial,sans-serif;color:#ffffff80}}.imx-loginLogo[_ngcontent-%COMP%]{display:block;position:absolute;object-fit:cover}@media (min-width: 901px){.imx-loginLogo[_ngcontent-%COMP%]{top:25px}}@media (max-width: 900px){.imx-loginLogo[_ngcontent-%COMP%]{top:15px}}@media (min-width: 1401px) and (max-height: 781px){.imx-loginLogo[_ngcontent-%COMP%]{right:calc(415px - 50vh)}}@media (min-width: 1401px) and (min-height: 780px){.imx-loginLogo[_ngcontent-%COMP%]{right:25px}}@media (min-width: 901px) and (max-width: 1400px) and (max-height: 450px){.imx-loginLogo[_ngcontent-%COMP%]{right:calc(235px - 50vh)}}@media (min-width: 901px) and (max-width: 1400px) and (min-height: 451px){.imx-loginLogo[_ngcontent-%COMP%]{right:25px}}@media (min-width: 551px) and (max-width: 900px) and (max-height: 450px){.imx-loginLogo[_ngcontent-%COMP%]{right:calc(235px - 50vh)}}@media (min-width: 551px) and (max-width: 900px) and (min-height: 451px){.imx-loginLogo[_ngcontent-%COMP%]{right:10px}}@media (max-width: 550px){.imx-loginLogo[_ngcontent-%COMP%]{right:10px}}.imx-loginLogo[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{display:block;width:100%;object-fit:cover}@media (max-width: 550px){.imx-loginLogo[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{height:44px;width:initial}}.imx-loginBackground[_ngcontent-%COMP%]{display:block;position:fixed;inset:0}.imx-loginBackground[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{display:block}@media (max-width: 1400px){.imx-loginBackground[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{width:100vw}}.imx-loginBackground-triangle[_ngcontent-%COMP%]{overflow:hidden;display:flex;justify-content:flex-end;align-items:flex-end;position:fixed;right:0;bottom:0;object-fit:cover}@media (min-width: 1401px){.imx-loginBackground-triangle[_ngcontent-%COMP%]{height:700px;width:354px;z-index:1}}@media (min-width: 551px) and (max-width: 1400px){.imx-loginBackground-triangle[_ngcontent-%COMP%]{height:350px;width:177px;z-index:1}}@media (max-width: 550px){.imx-loginBackground-triangle[_ngcontent-%COMP%]{display:none}}.imx-loginBackground-triangle__image[_ngcontent-%COMP%]{height:100%;-webkit-mask-image:url(platformLoginTriangle.26816cf9df099094.svg);mask-image:url(platformLoginTriangle.26816cf9df099094.svg);-webkit-mask-position:right;mask-position:right;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}.imx-sidebar[_ngcontent-%COMP%]{z-index:2000;position:fixed;overflow:visible}.imx-sidebar[_ngcontent-%COMP%]     .mat-drawer-inner-container{overflow:hidden}.imx-sidebar[_ngcontent-%COMP%]   .close-button[_ngcontent-%COMP%]{width:50px;height:50px;position:fixed;top:-50px;transition:top .2s ease;cursor:pointer;font-size:20px;text-align:center}.imx-sidebar[_ngcontent-%COMP%]   .close-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:inline-block;padding-top:15px}.imx-navigation-sidebar[_ngcontent-%COMP%]{width:400px}.imx-navigation-sidebar[_ngcontent-%COMP%]   .close-button[_ngcontent-%COMP%]{left:400px}.imx-quick-access-sidebar[_ngcontent-%COMP%]{width:400px}.imx-quick-access-sidebar[_ngcontent-%COMP%]   .close-button[_ngcontent-%COMP%]{left:400px}.imx-user-sidebar[_ngcontent-%COMP%]{width:400px}.imx-user-sidebar[_ngcontent-%COMP%]   .close-button[_ngcontent-%COMP%]{right:400px}.imx-media-assign-sidebar[_ngcontent-%COMP%]{background-color:#fff;width:70%}.imx-media-assign-sidebar[_ngcontent-%COMP%]   .close-button[_ngcontent-%COMP%]{right:70%}@media (max-width: 1400px){.imx-media-assign-sidebar[_ngcontent-%COMP%]{width:85%}.imx-media-assign-sidebar[_ngcontent-%COMP%]   .close-button[_ngcontent-%COMP%]{right:85%}}@media (max-width: 900px){.imx-media-assign-sidebar[_ngcontent-%COMP%]{width:calc(100% - 50px)}.imx-media-assign-sidebar[_ngcontent-%COMP%]   .close-button[_ngcontent-%COMP%]{right:calc(100% - 50px)}}.imx-sidenav-container[_ngcontent-%COMP%]{z-index:unset}.imx-sidenav-container[_ngcontent-%COMP%] >   .mat-drawer-backdrop{z-index:5!important}.mat-drawer-opened[_ngcontent-%COMP%]   .close-button[_ngcontent-%COMP%]{top:0}.content-wrap[_ngcontent-%COMP%]{display:flex;min-height:100vH;flex-direction:column;justify-content:flex-start;z-index:unset}.spotlight-field[_ngcontent-%COMP%]{height:40px;flex-basis:420px;border:1px solid #898989;box-sizing:border-box;color:#fff;padding-left:10px;background-color:#535353;margin-left:5%}.imx-button.spotlight[_ngcontent-%COMP%]{margin-left:10px;min-height:40px;border-radius:unset}input.spotlight-field[_ngcontent-%COMP%]::placeholder, input.spotlight-field[_ngcontent-%COMP%]:-ms-input-placeholder{color:#fff;opacity:.7}.user-profile-button[_ngcontent-%COMP%]{color:#fff;display:flex;flex-direction:row;padding:0 20px;align-items:center;cursor:pointer}.user-profile-button[_ngcontent-%COMP%]   .icon-chevron-down[_ngcontent-%COMP%]{margin-left:10px;font-size:12px}.info-text[_ngcontent-%COMP%]{display:flex;flex-direction:column}.info-text-1[_ngcontent-%COMP%]{margin:0 0 2px;font-size:10px;text-align:right}.info-text-2[_ngcontent-%COMP%]{margin:0;font-size:14px;text-align:right}.info-profile-icon[_ngcontent-%COMP%]{margin-left:10px}.info-profile-icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border:2px solid white;border-radius:32px;width:32px;height:32px}.imx-nav-list-item[_ngcontent-%COMP%]{margin-top:-10px;margin-bottom:-20px;margin-left:15px;cursor:pointer}.imx-dashboard[_ngcontent-%COMP%]{padding-left:24px;color:#fff;padding-top:10px}.imx-navigation-group[_ngcontent-%COMP%]{padding:20px 0 0 10px}.imx-nav-item-active[_ngcontent-%COMP%]{color:#000}*[_ngcontent-%COMP%]:focus{outline:none!important}"]})}return Xt})()},13236:(gt,X,a)=>{"use strict";a.d(X,{u:()=>yt});var e=a(19212),n=a(79309),s=a(75789),l=a(33946),i=a(61598),t=a(13790),p=a(21473),c=a(27556),o=a(15033),x=a(22819),u=a(22937),m=a(98120),b=a(21317),I=a(21417),H=a(15767),O=a(59143),P=a(73209),G=a(41621),B=a(96863),ae=a(22941),J=a(17700),q=a(17591),j=a(23097),Y=a(96814),K=a(56223),ne=a(75986),ee=a(59038),$=a(16007),ue=a(32651),ge=a(71365),Ke=a(67338),at=a(74961),Le=a(6128),R=a(36681),Te=a(51793),me=a(37012),Se=a(12),Ue=a(35475),We=a(74377),et=a(35922),Et=a(89657),lt=a(32458),Vt=a(86729),r=a(63810),Z=a(72197),Pt=a(22194),Oe=a(80617),ye=a(18341),ve=a(4588),ft=a(1614);const Dt=["sidenav"];function Rn(Bt,li){if(1&Bt){const si=e.EpF();e.TgZ(0,"imx-action-menu-item",33),e.NdJ("actionClicked",function(){const Hn=e.CHM(si).$implicit,mo=e.oxw().item,vn=e.oxw();return e.KtG(vn.executeRowAction(Hn,mo))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&Bt){const si=li.$implicit;e.Q6J("icon",si.getIcon())("additionalStyle","icon-trash"==si.getIcon()?"delete":""),e.xp6(),e.hij(" ",e.lcZ(2,3,si.getActionLabelKey())," ")}}function ti(Bt,li){if(1&Bt){const si=e.EpF();e.TgZ(0,"imx-dropup-button")(1,"imx-action-menu")(2,"imx-action-menu-item",32),e.NdJ("click",function(){const Hn=e.CHM(si).item,mo=e.oxw();return e.KtG(mo.selectAndOpenItem(Hn))}),e._uU(3," imxplatform.common-entity.list.edit "),e.qZA(),e.TgZ(4,"imx-action-menu-item",32),e.NdJ("click",function(){const Hn=e.CHM(si).item,mo=e.oxw();return e.KtG(mo.showReferencesDialog(Hn.id))}),e._uU(5," imxplatform.common-entity.list.references "),e.qZA(),e.YNc(6,Rn,3,5,"ng-template",31),e.qZA()()}if(2&Bt){const si=li.item,oo=e.oxw();e.xp6(2),e.Q6J("icon","icon-pencil"),e.xp6(2),e.Q6J("icon","icon-link"),e.xp6(2),e.Q6J("ngForOf",oo.getPooledMediaRowActions(si.id))}}const Xt=Bt=>({count:Bt});function Je(Bt,li){if(1&Bt&&(e.TgZ(0,"h1"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Bt){const si=e.oxw();e.xp6(),e.hij(" ",e.xi3(2,1,"imxplatform.media.list.header",e.VKq(4,Xt,null==si.currentResult?null:si.currentResult.totalNumberOfResults))," ")}}function dt(Bt,li){1&Bt&&e._UZ(0,"span",34)}function Ie(Bt,li){1&Bt&&e._UZ(0,"span",35)}function ot(Bt,li){if(1&Bt){const si=e.EpF();e.TgZ(0,"div",36)(1,"imx-toggle",37),e.NdJ("ngModelChange",function(){e.CHM(si);const _o=e.oxw();return _o.switchMode(),e.KtG(_o.closeEditPanel())}),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()()}if(2&Bt){const si=e.oxw();e.xp6(),e.s9C("checkedLabel",e.lcZ(2,3,"imxplatform.media.list.all-media")),e.s9C("notCheckedLabel",e.lcZ(3,5,"imxplatform.media.list.file-browser")),e.Q6J("ngModel",!si.isFileBrowserMode)}}function ct(Bt,li){1&Bt&&(e.TgZ(0,"div",38),e._UZ(1,"imx-media-folder-navigation"),e.qZA())}function tn(Bt,li){1&Bt&&e._UZ(0,"mat-progress-bar",39)}function yi(Bt,li){1&Bt&&(e.TgZ(0,"p",43),e._uU(1,"imxplatform.media.list.no-records"),e.qZA())}function ni(Bt,li){1&Bt&&(e.TgZ(0,"p",43),e._uU(1,"imxplatform.media.list.no-records-in-folder"),e.qZA())}function sn(Bt,li){if(1&Bt&&(e.ynx(0),e.YNc(1,yi,2,0,"p",42)(2,ni,2,0,"p",42),e.BQk()),2&Bt){const si=e.oxw(2);e.xp6(),e.Q6J("ngIf",!si.isFileBrowserMode),e.xp6(),e.Q6J("ngIf",si.isFileBrowserMode)}}function bn(Bt,li){if(1&Bt){const si=e.EpF();e.ynx(0)(1),e.TgZ(2,"a",45),e.NdJ("click",function(){e.CHM(si);const _o=e.oxw().$implicit,Hn=e.oxw(2);return e.KtG(Hn.selectAndOpenItem(_o))}),e._uU(3),e.ALo(4,"readI18n"),e.qZA(),e.BQk()()}if(2&Bt){const si=e.oxw(),oo=si.linkclass,_o=si.$implicit;e.xp6(2),e.Tol(oo),e.xp6(),e.Oqu(e.lcZ(4,4,null==_o?null:_o.title))}}function vt(Bt,li){if(1&Bt){const si=e.EpF();e.ynx(0),e.TgZ(1,"a",46),e.NdJ("click",function(){e.CHM(si);const _o=e.oxw().$implicit,Hn=e.oxw(2);return e.KtG(Hn.selectAndOpenItem(_o))}),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.BQk()}if(2&Bt){const si=e.oxw().linkclass;e.xp6(),e.Tol(si),e.xp6(),e.hij("[",e.lcZ(3,4,"imxplatform.common-entity.edit.panels.media.no-title"),"]")}}function nn(Bt,li){if(1&Bt&&e.YNc(0,bn,5,6,"ng-container",23)(1,vt,4,6,"ng-template",null,44,e.W1O),2&Bt){const si=li.$implicit,oo=e.MAs(2),_o=e.oxw(2);e.Q6J("ngIf",_o.isDefinedI18n(null==si?null:si.title))("ngIfElse",oo)}}function rn(Bt,li){1&Bt&&e.GkF(0)}function ii(Bt,li){1&Bt&&e.GkF(0)}const Oo=(Bt,li)=>({selected:Bt,open:li}),no=Bt=>({item:Bt}),Li=Bt=>({$implicit:Bt});function ji(Bt,li){if(1&Bt){const si=e.EpF();e.TgZ(0,"div",49)(1,"div",50),e._UZ(2,"imx-media-provider-icon",51),e.qZA(),e.TgZ(3,"div",52)(4,"mat-checkbox",53),e.NdJ("change",function(_o){e.CHM(si);const Hn=e.oxw(3);return e.KtG(Hn.onSelectionChanged(_o))}),e.qZA()(),e.TgZ(5,"div",54),e.YNc(6,rn,1,0,"ng-container",55),e.qZA(),e.TgZ(7,"a",45),e.NdJ("click",function(){const Hn=e.CHM(si).$implicit,mo=e.oxw(3);return e.KtG(mo.selectAndOpenItem(Hn))}),e._UZ(8,"imx-media-thumbnail",56),e.qZA(),e.TgZ(9,"div",57),e.YNc(10,ii,1,0,"ng-container",55),e.qZA()()}if(2&Bt){const si=li.$implicit;e.oxw(2);const oo=e.MAs(3),_o=e.oxw(),Hn=e.MAs(2);e.Q6J("ngClass",e.WLB(9,Oo,_o.isItemOpened(si.id),(null==_o.openedMedium?null:_o.openedMedium.id)===si.id)),e.xp6(2),e.Q6J("pooledMedium",si),e.xp6(2),e.Q6J("value",si.id)("checked",_o.isItemSelected(si.id)),e.xp6(2),e.Q6J("ngTemplateOutlet",Hn)("ngTemplateOutletContext",e.VKq(12,no,si)),e.xp6(2),e.Q6J("medium",si),e.xp6(2),e.Q6J("ngTemplateOutlet",oo)("ngTemplateOutletContext",e.VKq(14,Li,si))}}function Ii(Bt,li){if(1&Bt&&(e.TgZ(0,"div",47),e.YNc(1,ji,11,16,"div",48),e.qZA()),2&Bt){const si=e.oxw().ngIf;e.xp6(),e.Q6J("ngForOf",si.items)}}function _i(Bt,li){1&Bt&&e.GkF(0)}function En(Bt,li){if(1&Bt&&(e.TgZ(0,"p",71),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",72),e._uU(4),e.ALo(5,"fileSize"),e.qZA()()),2&Bt){const si=e.oxw().$implicit;e.xp6(),e.hij("",e.lcZ(2,2,"imxplatform.media.list.file-size"),": "),e.xp6(3),e.Oqu(e.lcZ(5,4,null==si?null:si.fileSize))}}function co(Bt,li){if(1&Bt&&(e.TgZ(0,"div")(1,"p",71),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"p",75),e._uU(5),e.ALo(6,"readI18n"),e.qZA()()),2&Bt){const si=e.oxw().$implicit;e.xp6(2),e.hij("",e.lcZ(3,2,"imxplatform.common-entity.edit.panels.media.license")," :"),e.xp6(3),e.Oqu(e.lcZ(6,4,null==si||null==si.mediaLicense?null:si.mediaLicense.i18nName))}}function yn(Bt,li){if(1&Bt&&(e.TgZ(0,"div",68)(1,"div",77)(2,"p",72),e._uU(3),e.ALo(4,"translate"),e.TgZ(5,"span",71),e._uU(6),e.ALo(7,"mediumCategory"),e.qZA()()()()),2&Bt){const si=e.oxw().$implicit;e.xp6(3),e.AsE("",e.lcZ(4,3,"imxplatform.media.list.categories"),": (",null==si||null==si.categories?null:si.categories.length,"): "),e.xp6(3),e.Oqu(e.lcZ(7,5,null==si?null:si.categories))}}function ln(Bt,li){1&Bt&&e.GkF(0)}const He=Bt=>({selected:Bt}),rt=Bt=>({open:Bt}),$e=Bt=>({$implicit:Bt,linkclass:"txt-bg title-link"});function Ve(Bt,li){if(1&Bt){const si=e.EpF();e.TgZ(0,"mat-list-item",59)(1,"div",60)(2,"imx-list-row-selection",61),e.NdJ("selectionChanged",function(_o){e.CHM(si);const Hn=e.oxw(3);return e.KtG(Hn.onSelectionChanged(_o))}),e.qZA(),e.TgZ(3,"div",62)(4,"div",63)(5,"div",64)(6,"a",45),e.NdJ("click",function(){const Hn=e.CHM(si).$implicit,mo=e.oxw(3);return e.KtG(mo.selectAndOpenItem(Hn))}),e._UZ(7,"imx-media-thumbnail",65),e.qZA()(),e.TgZ(8,"div",66),e._UZ(9,"imx-media-provider-icon",51),e.qZA(),e.TgZ(10,"div",67)(11,"div",68)(12,"div",69),e.YNc(13,_i,1,0,"ng-container",55)(14,En,6,6,"p",70),e.TgZ(15,"p",71),e._uU(16,"ID: "),e.TgZ(17,"span",72),e._uU(18),e.qZA()(),e.TgZ(19,"p",71),e._uU(20,"Type: "),e.TgZ(21,"span",72),e._uU(22),e.qZA()()(),e.TgZ(23,"div",73),e.YNc(24,co,7,6,"div",8),e.TgZ(25,"div",74)(26,"p",71),e._uU(27),e.ALo(28,"translate"),e.qZA(),e.TgZ(29,"p",75),e._uU(30),e.ALo(31,"readI18n"),e.qZA()()(),e.TgZ(32,"div",69)(33,"div")(34,"p",71),e._uU(35),e.ALo(36,"translate"),e.qZA(),e.TgZ(37,"p",75),e._uU(38),e.ALo(39,"date"),e.ALo(40,"convertTimestamps"),e.ALo(41,"translate"),e.qZA()(),e.TgZ(42,"div",74)(43,"p",71),e._uU(44),e.ALo(45,"translate"),e.qZA(),e.TgZ(46,"p",75),e._uU(47),e.ALo(48,"date"),e.ALo(49,"convertTimestamps"),e.ALo(50,"translate"),e.qZA()()()(),e.YNc(51,yn,8,7,"div",76),e.TgZ(52,"div",68)(53,"div",77)(54,"p",72),e._uU(55),e.ALo(56,"translate"),e.TgZ(57,"span",71),e._uU(58),e.qZA()()()()()()(),e.TgZ(59,"div",78),e.YNc(60,ln,1,0,"ng-container",55),e.qZA()()()}if(2&Bt){const si=li.$implicit;e.oxw(2);const oo=e.MAs(3),_o=e.oxw(),Hn=e.MAs(2);e.xp6(),e.Q6J("ngClass",e.VKq(52,He,_o.isItemSelected(si.id))),e.xp6(),e.Q6J("id",si.id)("checked",_o.isItemSelected(si.id))("blockedByAction",_o.isBlockedByAction(si.id)),e.xp6(),e.Q6J("ngClass",e.VKq(54,rt,(null==_o.openedMedium?null:_o.openedMedium.id)===si.id)),e.xp6(4),e.Q6J("medium",si),e.xp6(2),e.Q6J("pooledMedium",si),e.xp6(4),e.Q6J("ngTemplateOutlet",oo)("ngTemplateOutletContext",e.VKq(56,$e,si)),e.xp6(),e.Q6J("ngIf",si.fileSize),e.xp6(4),e.Oqu(si.id),e.xp6(4),e.Oqu(null==si.mediaType?null:si.mediaType.name),e.xp6(2),e.Q6J("ngIf",null==si?null:si.mediaLicense),e.xp6(3),e.hij("",e.lcZ(28,28,"imxplatform.common-entity.edit.panels.media.copyright")," :"),e.xp6(3),e.Oqu(e.lcZ(31,30,null==si?null:si.copyright)),e.xp6(5),e.hij("",e.lcZ(36,32,"imxplatform.common-entity.edit.panels.media.creation"),":"),e.xp6(3),e.lnq(" ",e.xi3(39,34,e.lcZ(40,37,si.creationTime),"dd.MM.yyyy - HH:mm")," ",e.lcZ(41,39,"imxplatform.common.time-indicator")," (",si.creationFrom,")"),e.xp6(6),e.hij("",e.lcZ(45,41,"imxplatform.common-entity.edit.panels.media.lastChange"),":"),e.xp6(3),e.lnq(" ",e.xi3(48,43,e.lcZ(49,46,si.lastChangeTime),"dd.MM.yyyy - HH:mm")," ",e.lcZ(50,48,"imxplatform.common.time-indicator")," (",si.lastChangeFrom,")"),e.xp6(4),e.Q6J("ngIf",(null==si||null==si.categories?null:si.categories.length)>0),e.xp6(4),e.hij("",e.lcZ(56,50,"imxplatform.media.list.ident"),": "),e.xp6(3),e.Oqu(si.identification),e.xp6(2),e.Q6J("ngTemplateOutlet",Hn)("ngTemplateOutletContext",e.VKq(58,no,si))}}function Ce(Bt,li){if(1&Bt&&(e.TgZ(0,"mat-list"),e.YNc(1,Ve,61,60,"mat-list-item",58),e.qZA()),2&Bt){const si=e.oxw().ngIf;e.xp6(),e.Q6J("ngForOf",si.items)}}function tt(Bt,li){if(1&Bt&&(e.TgZ(0,"div"),e.YNc(1,sn,3,2,"ng-container",8)(2,nn,3,2,"ng-template",null,40,e.W1O)(4,Ii,2,1,"div",41)(5,Ce,2,1,"mat-list",8),e.qZA()),2&Bt){const si=li.ngIf,oo=e.oxw();e.xp6(),e.Q6J("ngIf",0==(null==si.items?null:si.items.length)),e.xp6(3),e.Q6J("ngIf",oo.isTileView&&(null==si.items?null:si.items.length)>0),e.xp6(),e.Q6J("ngIf",!oo.isTileView&&(null==si.items?null:si.items.length)>0)}}const ht=()=>({width:"100%",height:"100%"});function Qt(Bt,li){if(1&Bt){const si=e.EpF();e.TgZ(0,"p-scrollPanel")(1,"imx-media-edit-form",79),e.NdJ("save",function(_o){e.CHM(si);const Hn=e.oxw();return e.KtG(Hn.saveMedia(_o))})("uploadFinished",function(_o){e.CHM(si);const Hn=e.oxw();return e.KtG(Hn.creationFinished(_o))})("closed",function(){e.CHM(si);const _o=e.oxw();return e.KtG(_o.closeEditPanel())}),e.qZA()()}if(2&Bt){const si=e.oxw();e.Akn(e.DdM(7,ht)),e.xp6(),e.Q6J("formHandler",si.formHandler)("record",si.openedMedium)("creationMode",si.isCreationMode)("defaultBtnBar",!0)("uploadMode",si.isUploadMode)}}function Un(Bt,li){if(1&Bt&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",80),e._uU(4),e.qZA()(),e._UZ(5,"span",81)),2&Bt){const si=e.oxw();e.xp6(),e.hij("",e.lcZ(2,2,"imxplatform.common-entity.list.selected-items")," "),e.xp6(3),e.hij("(",null==si.selectedIds?null:si.selectedIds.size,")")}}function Yt(Bt,li){if(1&Bt){const si=e.EpF();e.TgZ(0,"imx-action-menu-item",33),e.NdJ("actionClicked",function(){const Hn=e.CHM(si).$implicit,mo=e.oxw();return e.KtG(mo.executeBatchAction(Hn))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&Bt){const si=li.$implicit;e.Q6J("icon",si.getIcon())("additionalStyle","icon-trash"==si.getIcon()?"delete":""),e.xp6(),e.hij("",e.lcZ(2,3,si.getActionLabelKey())," ")}}const Fn=Bt=>({fixed:Bt});let yt=(()=>{class Bt extends B.uY{constructor(si,oo,_o,Hn,mo,vn,Ji,wn,po,Kn,Vn,Wi,Ft,Oi,On){super(si,oo,_o,Hn,mo,vn,Kn,Ji,void 0,wn,void 0,po,{},!0),this.securityManagerService=Vn,this.runtimeContextService=Wi,this.mediaFolderService=Ft,this.formHandler=Oi,this.configurationProvider=On,this.logger=(0,p.jl)("MediaSearchPage",c.H.name),this.isFileBrowserHidden=!0,this.isCreationMode=!1,this.isUploadMode=!1,this.isFileBrowserMode=!1,this.isTileView=!1,this.isSidePanelShown=!1,this.isEditPanelFixed=!1,this.availableOrderFields=[{index:1,field:"TITLE",i18n:"entity.PooledMedium.title",type:P.m.alphanumeric},{index:2,field:"ID",i18n:"entity.PooledMedium.id",type:P.m.numeric}],this.currentClientIds=[],this.runtimeContextService.getCurrentAndSubClients().subscribe(_n=>{this.currentClientIds=Array.from(_n).map(st=>st.id)}),this.hasPooledMediumCreatePermission=this.formHandler.hasPooledMediumCreatePermission()}ngOnInit(){super.ngOnInit(),this.isFileBrowserHidden=this.calcFileBrowserHidden(),this.isFileBrowserMode=!this.isFileBrowserHidden&&this.configurationProvider.getBooleanFromSnapshot(p.x3.PLATFORM_MEDIA_MANAGEMENT_START_WITH_FILE_BROWSER),this.isFileBrowserHidden||this.subscribeToPathChanges();const si=this.route.snapshot.queryParamMap.get("path");si&&si.length>0&&!this.isFileBrowserHidden&&(this.isFileBrowserMode=!0)}calcFileBrowserHidden(){return this.configurationProvider.getBooleanFromSnapshot(p.x3.PLATFORM_MEDIA_MANAGEMENT_FILE_BROWSER_HIDDEN)}ngOnDestroy(){super.ngOnDestroy(),this.pathSubscription&&(this.pathSubscription.unsubscribe(),this.pathSubscription=null),this.mediaFolderService.reset()}getEntityName(){return"StandardPooledMedium"}isDefinedI18n(si){return(0,G.bi)(si)}selectAndOpenItem(si){this.editAreaIsDirty()?this.handleCloseAction(void 0,()=>{this.selectedIds.clear(),this.selectedIds.add(si.id),this.editMedia(si)}):(this.selectedIds.clear(),this.selectedIds.add(si.id),this.editMedia(si))}editAreaIsDirty(){return this.formHandler.formGroup.dirty}editMedia(si){this.openPanelForMedium(si)}saveMedia(si){si&&(-1===si.id||null===si.id?this.platformDataAccessService.createPooledMedia(si).subscribe(oo=>{this.creationFinished([oo]),this.userMessageService.showInfo("imxplatform.common-entity.edit.panels.media.edit-pooled-media-saved")},oo=>{this.userMessageService.showError("Fehler beim Anlegen des Objektes")}):this.platformDataAccessService.updatePooledMedia(si).subscribe(oo=>{this.userMessageService.showInfo("imxplatform.common-entity.edit.panels.media.edit-pooled-media-saved"),this.openedMedium=oo,this.afterPooledMediaSaved(oo),this.reloadData()},oo=>{this.userMessageService.showError("imxplatform.common-entity.edit.panels.media.edit-pooled-media-save-error")}))}afterPooledMediaSaved(si){}createMedia(){this.isCreationMode=!0,this.isUploadMode=!1,this.openedMedium=void 0,this.openEditPanel()}uploadMedia(){this.isCreationMode=!1,this.isUploadMode=!0,this.openedMedium=void 0,this.openEditPanel()}isUploadMediaDisabled(){return!this.hasPooledMediumCreatePermission||!this.isFileBrowserHidden&&!this.isFileBrowserMode}onEscPress(){this.closeEditPanel()}onScrollEvent(){this.isSidePanelShown&&this.calculateFixedPosition()}isItemOpened(si){return this.openedMedium&&this.openedMedium.id===si}afterContentLoaded(){super.afterContentLoaded(),this.closeEditPanel()}openEditPanel(){this.sidenav.open().then(()=>{this.isSidePanelShown=!0,this.calculateFixedPosition()})}closeEditPanel(){this.formHandler.formGroup.dirty&&this.openedMedium?this.handleCloseAction("imxplatform.media.edit.dialog-on-close",()=>{this.hideSidePanel()}):this.hideSidePanel()}hideSidePanel(){this.isCreationMode=!1,this.openedMedium=void 0,this.sidenav.close().then(()=>{this.isSidePanelShown=!1})}creationFinished(si){this.isCreationMode=!1,this.isUploadMode=!1,this.openedMedium=void 0,this.formHandler.formConfiguration.findFormFieldById("youtubeID").insertor=(0,m.G3)(),this.formHandler.formConfiguration.findFormFieldById("url").insertor=(0,m.G3)(),this.search({id:si.map(oo=>oo.id).join(",")})}subscribeToPathChanges(){this.pathSubscription=this.mediaFolderService.onPathSelectionChanges().subscribe(si=>{this.currentPath=si,this.addAndSearch({path:si})})}calculateFixedPosition(){this.isEditPanelFixed=this.sidenavElement.nativeElement.getBoundingClientRect().top<110}openPanelForMedium(si){null==this.openedMedium||this.openedMedium.id!==si.id?this.platformDataAccessService.getPooledMediaById(si.id).subscribe(oo=>{this.openedMedium=oo,this.openedMedium.insideSmallMediaMgmt=si.insideSmallMediaMgmt,this.openEditPanel(),this.isCreationMode=!1,this.isUploadMode=!1}):this.openedMedium.id===si.id&&this.openEditPanel()}handleCloseAction(si,oo){this.dialog.open(i.t,{...l.D.FORM_SMALL,data:{text:si||"imxplatform.media.edit.dialog-on-close",title:this.openedMedium?this.openedMedium.title:"",objectId:this.openedMedium?this.openedMedium.id:""}}).afterClosed().subscribe(_o=>{_o&&oo()})}switchMode(){this.isFileBrowserMode=!this.isFileBrowserMode,this.isFileBrowserMode?this.addAndSearch({path:"/",mediaProvider:n.m9.id}):(delete this.filter.path,delete this.filter.mediaProvider,this.addAndSearch(this.filter))}showReferencesDialog(si){this.dialog.open(s.a,{maxWidth:800,maxHeight:900,data:{entityId:si,entityType:"PooledDataObjectMedium",headerKey:"imxplatform.common-entity.list.action.references.header-text"}})}getPooledMediaRowActions(si){return this.actionProvider?.getRowActionsForType(this.getEntityName(),si).filter(oo=>"pooledmedium-action-move"!==oo.getActionKey()||!this.isFileBrowserHidden).sort((oo,_o)=>oo.getOrder()-_o.getOrder())}getPooledBatchActions(){return this.actionProvider?.getBatchActionsForType(this.getEntityName()).filter(si=>"pooledmedium-action-move"!==si.getActionKey()||!this.isFileBrowserHidden).sort((si,oo)=>si.getOrder()-oo.getOrder())}static#e=this.\u0275fac=function(oo){return new(oo||Bt)(e.Y36(u.U),e.Y36(ae.F0),e.Y36(ae.gz),e.Y36(O.Y),e.Y36(H.G),e.Y36(J.uw),e.Y36(x.nq),e.Y36(q.Q),e.Y36(o.a),e.Y36(b.Ke),e.Y36(p.Xh),e.Y36(p.Ze),e.Y36(j.d),e.Y36(I.vB),e.Y36(p.Pc))};static#t=this.\u0275cmp=e.Xpm({type:Bt,selectors:[["ng-component"]],viewQuery:function(oo,_o){if(1&oo&&(e.Gf(t.b,7),e.Gf(Dt,7,e.SBq),e.Gf(Dt,7)),2&oo){let Hn;e.iGM(Hn=e.CRH())&&(_o.formComponent=Hn.first),e.iGM(Hn=e.CRH())&&(_o.sidenavElement=Hn.first),e.iGM(Hn=e.CRH())&&(_o.sidenav=Hn.first)}},hostBindings:function(oo,_o){1&oo&&e.NdJ("keydown.escape",function(){return _o.onEscPress()},!1,e.evT)("scroll",function(){return _o.onScrollEvent()},!1,e.Jf7)},features:[e.qOj],decls:44,vars:33,consts:[[1,"media-search","list"],["actionMenu",""],[3,"formHandler","record","orderFields","orderField","orderDirection","isFileBrowserMode","orderChanged","applyFilter","resetFilter"],[1,"list__header-wrapper"],[3,"lg_w","lg_o"],[1,"list__header"],[1,"reload",3,"click"],[1,"icon-refresh","imx-icon-middle"],[4,"ngIf"],[3,"tooltipText"],[1,"actions",3,"click"],["class","icon-listDefault imx-icon-middle",4,"ngIf"],["class","icon-listCompact imx-icon-middle",4,"ngIf"],["class","mode-switch",4,"ngIf"],[1,"list__header-right-menu"],["translate","",1,"imx-button","prio3","with-icon",3,"disabled","click"],[1,"icon","icon-up-square"],[1,"icon","icon-link"],[1,"media-sidenav-container"],[1,"media-sidenav-content"],["class","media-folder",4,"ngIf"],[1,"media-list"],["loading",""],[4,"ngIf","ngIfElse"],["mode","side","position","end",1,"media-sidenav"],["sidenav",""],[1,"edit-panel",3,"ngClass"],[3,"style",4,"ngIf"],[3,"paging","selection","pageChanged","selectAll"],["position","above","halign","start"],["imx-dropup-trigger",""],["ngFor","",3,"ngForOf"],[3,"icon","click"],[3,"icon","additionalStyle","actionClicked"],[1,"icon-listDefault","imx-icon-middle"],[1,"icon-listCompact","imx-icon-middle"],[1,"mode-switch"],["size","middle",3,"ngModel","checkedLabel","notCheckedLabel","ngModelChange"],[1,"media-folder"],["mode","indeterminate"],["titleLink",""],["class","tiles__wrapper",4,"ngIf"],["translate","",4,"ngIf"],["translate",""],["withoutTitle",""],[3,"click"],["translate","",3,"click"],[1,"tiles__wrapper"],["class","tiles__item",3,"ngClass",4,"ngFor","ngForOf"],[1,"tiles__item",3,"ngClass"],[1,"tiles__icon-wrapper"],[3,"pooledMedium"],[1,"tiles__checkbox-wrapper"],[3,"value","checked","change"],[1,"tiles__action-menu"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["size","big",3,"medium"],[1,"tiles__footer"],["class","list__item",4,"ngFor","ngForOf"],[1,"list__item"],[1,"list__row-wrapper",3,"ngClass"],[3,"id","checked","blockedByAction","selectionChanged"],[1,"list__row",3,"ngClass"],[1,"list__content-wrapper"],[1,"list__column","image-column"],["size","medium",3,"medium"],[1,"list__column","col2","icon-column"],[1,"list__content-rows"],[1,"list__content"],[1,"list__column","col3"],["class","txt-grey",4,"ngIf"],[1,"txt-grey"],[1,"txt-default"],[1,"list__column","col5"],[1,"margin-top"],[1,"txt-md"],["class","list__content",4,"ngIf"],[1,"list__column"],[1,"list__row-action"],[3,"formHandler","record","creationMode","defaultBtnBar","uploadMode","save","uploadFinished","closed"],[1,"selected-size"],[1,"icon-chevron-down"]],template:function(oo,_o){if(1&oo&&(e.TgZ(0,"div",0),e.YNc(1,ti,7,3,"ng-template",null,1,e.W1O),e.TgZ(3,"imx-pooled-medium-filter",2),e.NdJ("orderChanged",function(mo){return _o.sort(mo)})("applyFilter",function(mo){return _o.search(mo)})("resetFilter",function(){return _o.reset()}),e.qZA(),e.TgZ(4,"div",3)(5,"imx-grid")(6,"imx-grid-element",4)(7,"div",5)(8,"a",6),e.NdJ("click",function(){return _o.reloadComplete()}),e._UZ(9,"span",7),e.qZA(),e.YNc(10,Je,3,6,"h1",8),e.TgZ(11,"imx-tooltip",9),e.ALo(12,"translate"),e.TgZ(13,"a",10),e.NdJ("click",function(){return _o.isTileView=!_o.isTileView}),e.YNc(14,dt,1,0,"span",11)(15,Ie,1,0,"span",12),e.qZA()(),e.YNc(16,ot,4,7,"div",13),e.qZA()(),e.TgZ(17,"imx-grid-element",4)(18,"div",14)(19,"button",15),e.NdJ("click",function(){return _o.uploadMedia()}),e._UZ(20,"i",16),e._uU(21,"imxplatform.media.list.upload-media "),e.qZA(),e.TgZ(22,"button",15),e.NdJ("click",function(){return _o.createMedia()}),e._UZ(23,"i",17),e._uU(24,"imxplatform.media.list.add-media "),e.qZA()()()()(),e.TgZ(25,"imx-grid")(26,"imx-grid-element",4)(27,"mat-sidenav-container",18)(28,"mat-sidenav-content",19),e.YNc(29,ct,2,0,"div",20),e.TgZ(30,"div",21),e.YNc(31,tn,1,0,"ng-template",null,22,e.W1O)(33,tt,6,3,"div",23),e.ALo(34,"async"),e.qZA()(),e.TgZ(35,"mat-sidenav",24,25)(37,"div",26),e.YNc(38,Qt,2,8,"p-scrollPanel",27),e.qZA()()()()(),e.TgZ(39,"imx-list-footer",28),e.NdJ("pageChanged",function(mo){return _o.onPageChanged(mo)})("selectAll",function(mo){return _o.onSelectAll(mo)}),e.TgZ(40,"imx-dropup-button",29),e.YNc(41,Un,6,4,"ng-template",30),e.TgZ(42,"imx-action-menu"),e.YNc(43,Yt,3,5,"ng-template",31),e.qZA()()()()),2&oo){const Hn=e.MAs(32);e.xp6(3),e.Q6J("formHandler",_o.filterFormHandler)("record",_o.filter)("orderFields",_o.availableOrderFields)("orderField",_o.orderField)("orderDirection",_o.orderDirection)("isFileBrowserMode",_o.isFileBrowserMode),e.xp6(3),e.Q6J("lg_w",6)("lg_o",0),e.xp6(4),e.Q6J("ngIf",null==_o.currentResult?null:_o.currentResult.totalNumberOfResults),e.xp6(),e.Q6J("tooltipText",e.lcZ(12,27,"imxplatform.media.list.switch-tile-list-view")),e.xp6(3),e.Q6J("ngIf",!_o.isTileView),e.xp6(),e.Q6J("ngIf",_o.isTileView),e.xp6(),e.Q6J("ngIf",!_o.isFileBrowserHidden),e.xp6(),e.Q6J("lg_w",6)("lg_o",0),e.xp6(2),e.Q6J("disabled",_o.isUploadMediaDisabled()),e.xp6(3),e.Q6J("disabled",!_o.hasPooledMediumCreatePermission),e.xp6(4),e.Q6J("lg_w",12)("lg_o",0),e.xp6(3),e.Q6J("ngIf",_o.isFileBrowserMode),e.xp6(4),e.Q6J("ngIf",e.lcZ(34,29,_o.results))("ngIfElse",Hn),e.xp6(4),e.Q6J("ngClass",e.VKq(31,Fn,_o.isEditPanelFixed)),e.xp6(),e.Q6J("ngIf",_o.openedMedium||_o.isCreationMode||_o.isUploadMode),e.xp6(),e.Q6J("paging",_o.pagingModel)("selection",_o.selectionModel),e.xp6(4),e.Q6J("ngForOf",_o.getPooledBatchActions())}},dependencies:[Y.mk,Y.sg,Y.O5,Y.tP,K.JJ,K.On,ne.oG,ee.i$,ee.Tg,$.pW,ue.JX,ue.TM,ue.Rh,ge.Pi,Ke.P,at.p,Le.z,R.t,Te.F,me.M,Se.V,Ue.K,We.N,et.V,t.b,Et.r,lt.I,Vt.l,r.I,Z.n,Pt.F,Y.Ov,Y.uU,ge.X$,Oe.E,ye.p,ve.i,ft.j],styles:[".list__header-wrapper[_ngcontent-%COMP%]{padding:15px 0}.list__header-right-menu[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:flex-end}.list__header-right-menu[_ngcontent-%COMP%]    >*{margin-left:10px}.list__header[_ngcontent-%COMP%]{display:flex}.list__header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{display:inline;font-size:22px;line-height:26px;padding:0 10px}.list__header[_ngcontent-%COMP%]   .reload[_ngcontent-%COMP%], .list__header[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{display:inline-block;cursor:pointer;text-decoration:none}.list__header[_ngcontent-%COMP%]   .reload[_ngcontent-%COMP%]{padding:5px 10px 0 0;border-right:1px solid #eefafa}.list__header[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{padding:5px 10px;border-left:1px solid #eefafa}.tiles__wrapper[_ngcontent-%COMP%]{overflow:hidden;display:grid;grid-gap:15px;grid-template-columns:repeat(auto-fill,minmax(158px,1fr))}@media (max-width: 900px){.tiles__wrapper[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(108px,1fr))}}.tiles__wrapper[_ngcontent-%COMP%]   .tiles__item[_ngcontent-%COMP%]{background:#fff;border:1px solid #ced4e0;padding:3px;display:flex;flex-direction:column;position:relative;cursor:pointer}.tiles__wrapper[_ngcontent-%COMP%]   .tiles__item[_ngcontent-%COMP%]   .titles__item-disabled[_ngcontent-%COMP%]{background-color:#fff;opacity:.8;width:98%;height:98%;position:absolute;cursor:default}.tiles__wrapper[_ngcontent-%COMP%]   .tiles__item[_ngcontent-%COMP%]   .titles__item-disabled.assigned[_ngcontent-%COMP%], .tiles__wrapper[_ngcontent-%COMP%]   .tiles__item.assigned[_ngcontent-%COMP%]{background-color:#eefafa}.tiles__wrapper[_ngcontent-%COMP%]   .tiles__item[_ngcontent-%COMP%]   .tiles__footer[_ngcontent-%COMP%]{font-size:12px;line-height:14px;overflow:hidden;text-overflow:ellipsis;word-break:break-word;padding:5px 20px 5px 10px}.tiles__wrapper[_ngcontent-%COMP%]   .tiles__item[_ngcontent-%COMP%]   .tiles__icon-wrapper[_ngcontent-%COMP%]{background:#fff;text-align:center;padding-top:2px;width:22px;height:22px;position:absolute;top:0;left:0;color:#000}.tiles__wrapper[_ngcontent-%COMP%]   .tiles__item[_ngcontent-%COMP%]   .tiles__checkbox-wrapper[_ngcontent-%COMP%]{background:#fff;text-align:center;padding-top:2px;width:30px;height:30px;position:absolute;top:0;right:0;color:#000}.tiles__wrapper[_ngcontent-%COMP%]   .tiles__item[_ngcontent-%COMP%]   .tiles__action-menu[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0;padding-bottom:2px}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.list__content[_ngcontent-%COMP%]{display:-webkit-flex;display:flex;flex-direction:row;margin-bottom:5px;width:100%}.list__content-wrapper[_ngcontent-%COMP%]{display:flex}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.icon-column[_ngcontent-%COMP%]{font-size:20px;color:#000;line-height:22px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.image-column[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100px;height:100px;object-fit:cover}@media (max-width: 900px){.list__content-wrapper[_ngcontent-%COMP%]   .list__column.image-column[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:50px;height:50px}}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.image-column.placeholder[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:unset}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col3[_ngcontent-%COMP%]{flex-basis:450px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col4[_ngcontent-%COMP%]{width:20px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col5[_ngcontent-%COMP%]{flex-basis:400px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col6[_ngcontent-%COMP%]{flex-basis:200px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col7[_ngcontent-%COMP%]{margin-left:auto}.list__content[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.list__content-rows[_ngcontent-%COMP%]{width:100%}.list__column[_ngcontent-%COMP%]{margin-right:10px;word-break:break-word}@media (max-width: 900px){.list__column[_ngcontent-%COMP%]{margin-right:5px}}.list__column[_ngcontent-%COMP%]   .margin-top[_ngcontent-%COMP%]{margin-top:5px}.list__column[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style-type:square;list-style-position:inside}.list__column[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px}.list__row[_ngcontent-%COMP%]{background:#fff;border:.5px solid #ced4e0;box-sizing:border-box;width:100%;padding:20px;z-index:1}@media (max-width: 900px){.list__row[_ngcontent-%COMP%]{padding:10px}}.list__row-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;box-sizing:border-box;position:relative;height:inherit}.list__row-wrapper.selected[_ngcontent-%COMP%]   .list__row[_ngcontent-%COMP%]{background-color:#eefafa}.list__row-action[_ngcontent-%COMP%]{min-width:45px;min-height:100%;display:flex;flex-direction:column;padding-left:5px;text-align:center;position:relative;z-index:1}@media (max-width: 900px){.list__row-action[_ngcontent-%COMP%]{min-width:30px;padding-left:2px}}.list__row-checkbox[_ngcontent-%COMP%]{margin:auto 5px auto 0}.media-search[_ngcontent-%COMP%]{padding-bottom:50px;padding-top:50px}.media-search[_ngcontent-%COMP%]   .media-sidenav-container[_ngcontent-%COMP%]{background-color:transparent;height:100%;min-height:calc(100vh - 220px)}@media (min-width: 1401px){.media-search[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]{border:none;width:500px;min-width:500px;max-width:500px;min-height:400px}.media-search[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]   .edit-panel[_ngcontent-%COMP%]{width:500px;padding-left:30px;height:calc(100vh - 240px)}.media-search[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]   .edit-panel.fixed[_ngcontent-%COMP%]{position:fixed;height:calc(100vh - 160px);top:110px}.media-search[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]   .edit-panel[_ngcontent-%COMP%]     .p-scrollpanel-content{padding:0 18px 18px 0}.media-search[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]   .media-sidenav-container[_ngcontent-%COMP%]{overflow:visible;background-color:transparent}.media-search[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]   .media-sidenav-content[_ngcontent-%COMP%]{overflow:inherit}}@media (min-width: 901px) and (max-width: 1400px){.media-search[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]{border:none;width:400px;min-width:400px;max-width:400px;min-height:400px}.media-search[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]   .edit-panel[_ngcontent-%COMP%]{width:400px;padding-left:30px;height:calc(100vh - 240px)}.media-search[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]   .edit-panel.fixed[_ngcontent-%COMP%]{position:fixed;height:calc(100vh - 160px);top:110px}.media-search[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]   .edit-panel[_ngcontent-%COMP%]     .p-scrollpanel-content{padding:0 18px 18px 0}.media-search[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]   .media-sidenav-container[_ngcontent-%COMP%]{overflow:visible;background-color:transparent}.media-search[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]   .media-sidenav-content[_ngcontent-%COMP%]{overflow:inherit}}@media (min-width: 551px) and (max-width: 900px){.media-search[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]{border:none;width:300px;min-width:300px;max-width:300px;min-height:400px}.media-search[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]   .edit-panel[_ngcontent-%COMP%]{width:300px;padding-left:30px;height:calc(100vh - 240px)}.media-search[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]   .edit-panel.fixed[_ngcontent-%COMP%]{position:fixed;height:calc(100vh - 160px);top:110px}.media-search[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]   .edit-panel[_ngcontent-%COMP%]     .p-scrollpanel-content{padding:0 18px 18px 0}.media-search[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]   .media-sidenav-container[_ngcontent-%COMP%]{overflow:visible;background-color:transparent}.media-search[_ngcontent-%COMP%]   .media-sidenav[_ngcontent-%COMP%]   .media-sidenav-content[_ngcontent-%COMP%]{overflow:inherit}}.media-search[_ngcontent-%COMP%]   .list__row.open[_ngcontent-%COMP%]{background-color:#eefafa}.media-search[_ngcontent-%COMP%]   .list__header[_ngcontent-%COMP%]   .mode-switch[_ngcontent-%COMP%]{font-size:14px;line-height:20px;padding:3px 10px;border-left:1px solid #eefafa}.media-search[_ngcontent-%COMP%]   .icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.media-search[_ngcontent-%COMP%]   .selected-size[_ngcontent-%COMP%]{color:#3e3e3e}"]})}return Bt})()},86904:(gt,X,a)=>{"use strict";a.d(X,{H:()=>yi});var e=a(96814),n=a(19212),s=a(21473),i=(a(79309),a(49193)),t=a(96124),p=a(15033),c=a(4116),o=a(64022),x=a(22819),u=a(46495),m=a(20263),b=a(15767),I=a(55063),H=a(59143),O=a(73209),P=a(44316),G=a(96863),B=a(22941),ae=a(17700),J=a(17591),q=a(71365),j=a(16007),Y=a(92596),K=a(1431),ne=a(85219),ee=a(37012),$=a(12),ue=a(84102),ge=a(74377),Ke=a(64123),at=a(90633),Le=a(22194),R=a(49546),Te=a(58755),me=a(1614);function Se(ni,sn){1&ni&&(n.TgZ(0,"imx-list-no-results"),n._uU(1,"imxplatform.universal-search-item.list.no-records"),n.qZA())}function Ue(ni,sn){1&ni&&n._UZ(0,"mat-progress-bar",8)}function We(ni,sn){if(1&ni&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&ni){const bn=sn.$implicit;n.Udp("width",bn.width),n.Q6J("ngClass",bn.cssClass),n.xp6(),n.hij(" ",n.lcZ(2,4,bn.header)," ")}}function et(ni,sn){if(1&ni&&(n.TgZ(0,"tr"),n.YNc(1,We,3,6,"th",15),n.qZA()),2&ni){const bn=n.oxw(4);n.xp6(),n.Q6J("ngForOf",bn.columnDefinitions)}}function Et(ni,sn){1&ni&&n._UZ(0,"span",25)}function lt(ni,sn){if(1&ni&&(n.TgZ(0,"span",27),n._uU(1,"\xa0"),n.qZA()),2&ni){const bn=n.oxw(2).$implicit;n.Q6J("ngClass","icon-entityType-"+bn.entityType)}}function Vt(ni,sn){if(1&ni&&(n.TgZ(0,"span",27),n._uU(1,"\xa0"),n.qZA()),2&ni){const bn=n.oxw(2).$implicit,vt=n.oxw(4);n.Q6J("ngClass","icon-"+vt.getNonCoreEntityIconSuffix(bn.entityType))}}function r(ni,sn){if(1&ni&&n.YNc(0,lt,2,1,"span",26)(1,Vt,2,1,"span",26),2&ni){const bn=n.oxw().$implicit;n.Q6J("ngIf",bn.isCoreEntity),n.xp6(),n.Q6J("ngIf",!bn.isCoreEntity)}}function Z(ni,sn){if(1&ni&&(n.ynx(0),n.TgZ(1,"span")(2,"span",21),n._uU(3),n.ALo(4,"translate"),n.qZA(),n._uU(5),n.qZA(),n._UZ(6,"br"),n.BQk()),2&ni){const bn=sn.ngIf;n.xp6(3),n.hij("",n.lcZ(4,2,"imxplatform.common-entity.edit.panels.geo.geoPath.valid"),":"),n.xp6(2),n.hij(" ",bn,"")}}function Pt(ni,sn){if(1&ni&&(n.ynx(0),n.TgZ(1,"span")(2,"span",21),n._uU(3),n.ALo(4,"translate"),n.qZA(),n._uU(5),n.qZA(),n._UZ(6,"br"),n.BQk()),2&ni){const bn=n.oxw(2).$implicit;n.xp6(3),n.hij("",n.lcZ(4,3,"entity.Location.entityName"),":"),n.xp6(2),n.AsE(" ",bn.zipcode," ",bn.city," ")}}function Oe(ni,sn){if(1&ni&&n.YNc(0,Pt,7,5,"ng-container",6),2&ni){const bn=n.oxw().$implicit;n.Q6J("ngIf",bn.city)}}function ye(ni,sn){if(1&ni&&(n.ynx(0),n.TgZ(1,"span"),n._uU(2),n.qZA(),n._UZ(3,"br"),n.BQk()),2&ni){const bn=n.oxw().$implicit;n.xp6(2),n.Oqu(bn.eventLocationContactName)}}function ve(ni,sn){if(1&ni&&(n.ynx(0),n.TgZ(1,"span")(2,"span",21),n._uU(3),n.ALo(4,"translate"),n.qZA(),n._uU(5),n.ALo(6,"async"),n.qZA(),n.BQk()),2&ni){const bn=n.oxw().$implicit;n.xp6(3),n.Oqu(n.lcZ(4,2,"entity.Client.entityName")),n.xp6(2),n.hij(": ",n.lcZ(6,4,bn.clientName),"")}}function ft(ni,sn){if(1&ni&&(n.ynx(0),n._UZ(1,"span",28),n.ALo(2,"async"),n.BQk()),2&ni){const bn=n.oxw().$implicit;n.xp6(),n.Q6J("innerHTML",n.lcZ(2,1,bn.categories),n.oJD)}}function Dt(ni,sn){if(1&ni&&(n.ynx(0),n.TgZ(1,"span"),n._uU(2),n._UZ(3,"br"),n.qZA(),n.BQk()),2&ni){const bn=n.oxw().$implicit;n.xp6(2),n.Oqu(bn.contentScore)}}function Rn(ni,sn){if(1&ni&&(n.ynx(0),n.TgZ(1,"span")(2,"span",21),n._uU(3),n.ALo(4,"translate"),n.qZA(),n._uU(5),n._UZ(6,"br"),n.qZA(),n.TgZ(7,"span")(8,"span",21),n._uU(9),n.ALo(10,"translate"),n.ALo(11,"translate"),n.qZA(),n._uU(12),n.qZA(),n.BQk()),2&ni){const bn=n.oxw().$implicit;n.xp6(3),n.hij("",n.lcZ(4,5,"entity.Event.location"),":"),n.xp6(2),n.hij(" ",bn.eventLocationContactName,""),n.xp6(4),n.AsE("",n.lcZ(10,7,"entity.Event.location")," ",n.lcZ(11,9,"entity.DataObject.id"),":"),n.xp6(3),n.hij(" ",bn.eventLocationId,"")}}function ti(ni,sn){if(1&ni&&(n.ynx(0),n.TgZ(1,"span")(2,"span",21),n._uU(3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"a",29),n._uU(6),n.qZA(),n._UZ(7,"br"),n.qZA(),n.TgZ(8,"span")(9,"span",21),n._uU(10),n.ALo(11,"translate"),n.ALo(12,"translate"),n.qZA(),n._uU(13),n.qZA(),n.BQk()),2&ni){const bn=n.oxw().$implicit,vt=n.oxw(4);n.xp6(3),n.hij("",n.lcZ(4,6,vt.getOwningEntityTypeStr(bn.owningEntityType)),": "),n.xp6(2),n.Q6J("routerLink",vt.getRouterLink(bn)),n.xp6(),n.Oqu(bn.owningEntityTitle),n.xp6(4),n.AsE("",n.lcZ(11,8,vt.getOwningEntityTypeStr(bn.owningEntityType))," ",n.lcZ(12,10,"entity.DataObject.id"),":"),n.xp6(3),n.hij(" ",bn.owningEntityId,"")}}function Xt(ni,sn){if(1&ni&&(n.ynx(0),n.TgZ(1,"span",21),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"br"),n.TgZ(5,"span"),n._uU(6),n.qZA(),n._UZ(7,"br"),n.TgZ(8,"span"),n._uU(9),n.qZA(),n.BQk()),2&ni){const bn=n.oxw().$implicit;n.xp6(2),n.hij("",n.lcZ(3,3,"imxplatform.common-entity.list.sort.lastChange"),":"),n.xp6(4),n.Oqu(bn.lastChangeTime),n.xp6(3),n.hij("(",bn.lastChangeUser,")")}}function Je(ni,sn){if(1&ni&&(n._UZ(0,"imx-entity-state",30),n.ALo(1,"async")),2&ni){const bn=n.oxw().$implicit,vt=n.oxw(4);n.Q6J("key",vt.parseIntNumber(bn.entityStateId))("useAppearanceLogic",!0)("appearances",n.lcZ(1,4,bn.appearances))("inline",!1)}}const dt=(ni,sn)=>({selected:ni,deactivated:sn});function Ie(ni,sn){if(1&ni){const bn=n.EpF();n.TgZ(0,"tr",17)(1,"td",18)(2,"a",19),n.NdJ("click",function(){const rn=n.CHM(bn).$implicit,ii=n.oxw(4);return n.KtG(ii.navigateToEntity(rn.routerLink))}),n.ALo(3,"translate"),n.YNc(4,Et,1,0,"span",20)(5,r,2,2),n.TgZ(6,"span"),n._uU(7),n.ALo(8,"readI18n"),n.qZA()()(),n.TgZ(9,"td",18)(10,"span")(11,"span",21),n._uU(12),n.ALo(13,"translate"),n.qZA(),n._uU(14),n.qZA(),n._UZ(15,"br"),n.YNc(16,Z,7,4,"ng-container",11),n.ALo(17,"async"),n.YNc(18,Oe,1,1,"ng-template",null,22,n.W1O)(20,ye,4,1,"ng-container",6)(21,ve,7,6,"ng-container",6),n.qZA(),n.TgZ(22,"td",18),n.YNc(23,ft,3,3,"ng-container",6),n.qZA(),n.TgZ(24,"td",18),n.YNc(25,Dt,4,1,"ng-container",6)(26,Rn,13,11,"ng-container",6)(27,ti,14,12,"ng-container",6),n.qZA(),n.TgZ(28,"td",18),n.YNc(29,Xt,10,5,"ng-container",6),n.qZA(),n.TgZ(30,"td",23),n.YNc(31,Je,2,6,"imx-entity-state",24),n.qZA()()}if(2&ni){const bn=sn.$implicit,vt=n.MAs(19),nn=n.oxw(4);n.Q6J("ngClass",n.WLB(25,dt,nn.isItemSelected(bn.id),0==nn.parseIntNumber(bn.entityStateId))),n.uIk("data-scroll-id",bn.id),n.xp6(2),n.Q6J("matTooltip",n.lcZ(3,17,"entity."+bn.entityType+".entityName")),n.xp6(2),n.um2(4,bn.isTour?4:5),n.xp6(3),n.Oqu(n.lcZ(8,19,bn.title)),n.xp6(5),n.Oqu(n.lcZ(13,21,"entity.DataObject.id")),n.xp6(2),n.hij(": ",bn.entityId,""),n.xp6(2),n.Q6J("ngIf",n.lcZ(17,23,bn.additionalInfo2))("ngIfElse",vt),n.xp6(4),n.Q6J("ngIf",bn.eventLocationContactName),n.xp6(),n.Q6J("ngIf",bn.clientId),n.xp6(2),n.Q6J("ngIf",bn.categories),n.xp6(2),n.Q6J("ngIf",bn.contentScore),n.xp6(),n.Q6J("ngIf",bn.eventLocationId&&bn.eventLocationContactName),n.xp6(),n.Q6J("ngIf",bn.owningEntityId&&bn.owningEntityType),n.xp6(2),n.Q6J("ngIf",bn.lastChangeTime&&bn.lastChangeUser),n.xp6(2),n.Q6J("ngIf",bn.isCoreEntity)}}function ot(ni,sn){if(1&ni&&(n.ynx(0),n.TgZ(1,"p-table",12),n.YNc(2,et,2,1,"ng-template",13)(3,Ie,32,28,"ng-template",14),n.qZA(),n.BQk()),2&ni){const bn=n.oxw(2).ngIf;n.xp6(),n.Q6J("value",bn)("resizableColumns",!0)}}function ct(ni,sn){if(1&ni&&(n.TgZ(0,"div",10),n.YNc(1,ot,4,2,"ng-container",11),n.qZA()),2&ni){const bn=n.oxw().ngIf;n.oxw();const vt=n.MAs(6);n.xp6(),n.Q6J("ngIf",bn.length>0)("ngIfElse",vt)}}function tn(ni,sn){if(1&ni&&(n.ynx(0),n.YNc(1,ct,2,2,"div",9),n.BQk()),2&ni){const bn=n.oxw(),vt=n.MAs(8);n.xp6(),n.Q6J("ngIf",bn.loaded)("ngIfElse",vt)}}let yi=(()=>{class ni extends G.uY{constructor(bn,vt,nn,rn,ii,Oo,no,Li,ji,Ii,_i,En,co,yn,ln){super(bn,vt,nn,rn,ii,Oo,Li,ji,void 0,Ii,_i,no,{},!0),this.translateService=En,this.coreEntityDefService=co,this.imxEntitiesMgrService=yn,this.universalSearchVoter=ln,this.imxPermissions=s.uo,this.columnDefinitions=[{field:"icon",header:"",width:"22%"},{field:"basicData",header:"",width:"22%"},{field:"categories",header:"",width:"18%"},{field:"additionalInfo",header:"",width:"18%"},{field:"changes",header:"",width:"18%"},{field:"state",header:"",width:"65px"}],this.availableOrderFields=[{index:1,field:"SCORE",i18n:"entity.UniversalSearchItem.score",type:O.m.numeric},{index:2,field:"TITLE",i18n:"entity.UniversalSearchItem.title",type:O.m.alphanumeric},{index:3,field:"LAST_CHANGE",i18n:"imxplatform.common-entity.list.sort.lastChange",type:O.m.numeric}],this.orderField="SCORE",this.orderDirection="DESC",this._clientType="Client",this.contextNavigationService=(0,n.f3M)(c.E),this.enrichedSearchResults=(0,i.of)([]),this.loaded=!1}ngOnInit(){super.ngOnInit()}afterContentLoaded(){this.enrichedSearchResults=this.results.pipe((0,t.U)(bn=>bn.items.map(vt=>{const nn=Number.parseInt(vt.indexedObjectJson._guid.split("_")[0],10),rn=vt.indexedObjectJson.entityType,ii=this.coreEntityDefService.getCoreEntityDefByString(rn);let Oo=(0,i.of)(void 0);return ii&&ii.hasAppearances&&(Oo=this.platformDataAccessService.getCoreDataObjectsCompactById([nn],ii).pipe((0,t.U)(no=>no&&no.length>0?no[0].appearances:void 0))),{docId:vt.docId,score:vt.score,entityType:rn,entityId:nn,entityStateId:Number.parseInt(vt.indexedObjectJson.entityStateId,10),clientId:Number.parseInt(vt.indexedObjectJson.clientId,10),clientName:vt.indexedObjectJson.clientId?this.getClientName(Number.parseInt(vt.indexedObjectJson.clientId,10)):(0,i.of)(""),city:vt.indexedObjectJson.city,eventLocationContactName:vt.indexedObjectJson.eventLocationContactName,eventLocationId:Number.parseInt(vt.indexedObjectJson.eventLocationId,10),owningEntityType:vt.indexedObjectJson.owningEntityType,owningEntityId:Number.parseInt(vt.indexedObjectJson.owningEntityId,10),owningEntityTitle:this.getTitle(vt.indexedObjectJson,"owningEntityTitle"),title:this.getTitle(vt.indexedObjectJson,"title"),lastChangeTime:this.formatLastChangeTime(vt.indexedObjectJson.lastChangeTime),lastChangeUser:vt.indexedObjectJson.lastChangeUser,isCoreEntity:void 0!==this.coreEntityDefService.getCoreEntityDefByString(rn),routerLink:this.getRouterLink(vt.indexedObjectJson),categories:this.getCategories(vt.indexedObjectJson),appearances:Oo,isTour:this.isTour(vt.indexedObjectJson),additionalInfo2:this.universalSearchVoter?this.universalSearchVoter.getAdditionalInfo2(vt.indexedObjectJson):this.getAdditionalInfo2(vt.indexedObjectJson)}}))),this.loaded=!0,super.afterContentLoaded(),this.totalHitsInfo=this.currentResult.totalHits}beforeLoadRecords(bn){this.loaded=!1}getClientName(bn){return bn?this.imxEntitiesMgrService.getEntityWithIdOfType(this._clientType,bn).pipe((0,t.U)(vt=>{if(vt&&vt.name)return vt.name})):(0,i.of)("")}isTour(bn){return this.getReferenceIdsForEntityType(bn.references,"Productline").includes(100012e3)}getCategories(bn){const vt=this.getReferenceIdsForEntityType(bn.references,"Productline"),nn=this.getReferenceIdsForEntityType(bn.references,"Category"),rn=this.getReferenceIdsForEntityType(bn.references,"AnnouncementType");let ii;return bn.entityType===o.t8.ADDRESSPOI_ENTITY.type&&(ii=this.getReferenceIdsForEntityType(bn.references,"AddressPoiType")),vt&&vt.length>0?this.getCategoriesString("Productline",vt):nn&&nn.length>0?this.getCategoriesString("Category",nn):rn&&rn.length>0?this.getCategoriesString("AnnouncementType",rn):ii&&ii.length>0?this.getCategoriesString("AddressPoiType",ii):(0,i.of)("")}getCategoriesString(bn,vt){return this.imxEntitiesMgrService.getEntityWithIdsOfType(bn,vt).pipe((0,t.U)(nn=>{if(nn){let rn="";return nn.length>1?(nn.forEach(ii=>{rn.length>0&&(rn+=", "),rn=this.enhanceCategoryStringForDataObject(ii,rn)}),'<span class="txt-black">'+this.translateService.instant("entity."+bn+".entityName")+":</span> "+rn):'<span class="txt-black">'+this.translateService.instant("entity."+bn+".entityName")+":</span> "+this.enhanceCategoryStringForDataObject(nn[0],rn)}return""}))}enhanceCategoryStringForDataObject(bn,vt){return vt+bn.i18nName[this.translateService.currentLang]}getReferenceIdsForEntityType(bn,vt){const nn=[];return bn&&((0,s.kJ)(bn)?bn.forEach(rn=>{const ii=rn.split("_");ii[1]===vt&&nn.push(Number.parseInt(ii[0],10))}):(0,s.HD)(bn)&&this.addReferenceIds(bn,vt,nn)),nn}addReferenceIds(bn,vt,nn){const rn=bn.split("_");rn[1]===vt&&nn.push(Number.parseInt(rn[0],10))}getRouterLink(bn){let vt="";const nn=this.coreEntityDefService.getCoreEntityDefByString(bn.entityType);return vt=nn?nn.detailRoute+"/"+bn.entityId:"PooledDataObjectMedium"===bn.entityType?"media?id="+bn.entityId:"DeliveryChannel"===bn.entityType?"deliverychannelmgmt?id="+bn.entityId:"User"===bn.entityType?"usermgmt?userIds="+bn.entityId:"Client"===bn.entityType?"clientmgmt?clientIds="+bn.entityId:"UserRole"===bn.entityType?"rolemgmt?roleIds="+bn.entityId:"base-entities?id="+bn.entityId+"&entityName="+bn.entityType+"&openImmediately=true",vt}getNonCoreEntityIconSuffix(bn){let vt="entity";switch(bn){case"PooledDataObjectMedium":vt="picture";break;case"DeliveryChannel":vt="earth";break;case"User":vt="users2";break;case"Client":vt="clients";break;case"UserRole":vt="user-role"}return vt}getTitle(bn,vt){return bn[vt+"."+this.translateService.currentLang]||(bn[vt]?bn[vt]:this.translateService.instant("imxplatform.common.no-value"))}formatLastChangeTime(bn){if(bn){const vt=new Date(Number(bn));if(vt)return new e.uU("de").transform(vt,"dd.MM.yyyy - HH:mm")}}getOwningEntityTypeStr(bn){return"entity."+bn+".entityName"}getFilterParams(bn){return{}}getEntityName(){return"UniversalSearchItem"}parseIntNumber(bn){return parseInt(bn,10)}getAdditionalInfo2(bn){return(0,i.of)(null)}navigateToEntity(bn){const vt={},nn=new URL(bn,"https://imxplatform.de");nn.searchParams.forEach((rn,ii)=>{vt[ii]=rn}),this.contextNavigationService.navigateToCoreEntityContextual([nn.pathname],vt)}static#e=this.\u0275fac=function(vt){return new(vt||ni)(n.Y36(u._),n.Y36(B.F0),n.Y36(B.gz),n.Y36(H.Y),n.Y36(b.G),n.Y36(ae.uw),n.Y36(p.a),n.Y36(m.I),n.Y36(x.nq),n.Y36(J.Q),n.Y36(I.h),n.Y36(q.sK),n.Y36(o.dE),n.Y36(s.qB),n.Y36(P.D,8))};static#t=this.\u0275cmp=n.Xpm({type:ni,selectors:[["ng-component"]],features:[n.qOj],decls:12,vars:17,consts:[[1,"search-page"],[3,"formHandler","record","orderFields","orderField","orderDirection","enableCreateContactListOption","orderChanged","applyFilter","resetFilter"],[3,"totalNumber","entityResourceKeyPrefix","showCompactToggle","showReload","info"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],[4,"ngIf"],[3,"paging","selection","showCheckbox","pageChanged","selectAll"],["mode","indeterminate"],["class","table-wrapper",4,"ngIf","ngIfElse"],[1,"table-wrapper"],[4,"ngIf","ngIfElse"],[1,"imx-datatable",3,"value","resizableColumns"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",3,"ngClass"],["imxGenericSelector","",3,"ngClass"],[1,"imx-datatable__td"],[1,"txt-md","imx-datatable__td__title",3,"matTooltip","click"],["class","icon icon-map_tour"],[1,"txt-black"],["showCity",""],[1,"imx-datatable__td","entity_state"],[3,"key","useAppearanceLogic","appearances","inline",4,"ngIf"],[1,"icon","icon-map_tour"],["class","icon",3,"ngClass",4,"ngIf"],[1,"icon",3,"ngClass"],[3,"innerHTML"],[1,"txt-link",3,"routerLink"],[3,"key","useAppearanceLogic","appearances","inline"]],template:function(vt,nn){1&vt&&(n.TgZ(0,"div",0)(1,"imx-universal-search-filter",1),n.NdJ("orderChanged",function(ii){return nn.sort(ii)})("applyFilter",function(ii){return nn.search(ii)})("resetFilter",function(){return nn.reset()}),n.qZA(),n._UZ(2,"imx-list-header",2),n.TgZ(3,"imx-grid")(4,"imx-grid-element",3),n.YNc(5,Se,2,0,"ng-template",null,4,n.W1O)(7,Ue,1,0,"ng-template",null,5,n.W1O)(9,tn,2,2,"ng-container",6),n.ALo(10,"async"),n.qZA()(),n.TgZ(11,"imx-list-footer",7),n.NdJ("pageChanged",function(ii){return nn.onPageChanged(ii)})("selectAll",function(ii){return nn.onSelectAll(ii)}),n.qZA()()),2&vt&&(n.xp6(),n.Q6J("formHandler",nn.filterFormHandler)("record",nn.filter)("orderFields",nn.availableOrderFields)("orderField",nn.orderField)("orderDirection",nn.orderDirection)("enableCreateContactListOption",!0),n.xp6(),n.Q6J("totalNumber",null==nn.currentResult?null:nn.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxplatform.universal-search-item")("showCompactToggle",!1)("showReload",!1)("info",nn.totalHitsInfo),n.xp6(7),n.Q6J("ngIf",n.lcZ(10,15,nn.enrichedSearchResults)),n.xp6(2),n.Q6J("paging",nn.pagingModel)("selection",nn.selectionModel)("showCheckbox",!1))},dependencies:[e.mk,e.sg,e.O5,j.pW,Y.gM,B.rH,K.iA,ne.jx,K.Q7,ee.M,$.V,ue.n,ge.N,Ke._,at.A,Le.F,R.l,Te.j,e.Ov,q.X$,me.j],styles:["[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.imx-datatable__td__title[_ngcontent-%COMP%]{display:inline-flex}.icon[_ngcontent-%COMP%]{flex:20px 0 0;font-size:20px;margin-right:5px}[_nghost-%COMP%]     .txt-black{color:#000}.imx-datatable[_ngcontent-%COMP%]   tr.deactivated[_ngcontent-%COMP%]   td.imx-datatable__td[_ngcontent-%COMP%]:not(.entity_state){color:#000;opacity:.6}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.p-element[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.imx-datatable__td[_ngcontent-%COMP%]{border-left:none;line-height:1.4em;white-space:normal}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.p-element[_ngcontent-%COMP%]   .txt-md[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.imx-datatable__td[_ngcontent-%COMP%]   .txt-md[_ngcontent-%COMP%]{color:#0a2663;text-decoration:none}.imx-datatable[_ngcontent-%COMP%]     .imx-datatable__td.entity_state{padding:20px 14px 20px 20px}.imx-datatable[_ngcontent-%COMP%]   td.imx-datatable__td[_ngcontent-%COMP%]     .imx-entity-state{background-color:transparent;border:none;float:right}.imx-datatable[_ngcontent-%COMP%]   td.imx-datatable__td[_ngcontent-%COMP%]     .imx-entity-state .icon.imx-icon-middle{font-size:30px;line-height:30px;width:30px}.icon-map_tour[_ngcontent-%COMP%]{margin-right:15px}"]})}return ni})()},99248:(gt,X,a)=>{"use strict";a.d(X,{o:()=>si});var e=a(21473),n=a(33946),s=a(3928),l=a(15033),i=a(22819),t=a(94023),p=a(34115),c=a(97049),o=a(45315),x=a(32961),u=a(71041),m=a(62411),b=a(23765),I=a(67276),H=a(60075),O=a(20539),P=a(19212);const G=new m.E([(0,x.sI)("WidgetConfig"),new b.II("text","identifier","entity.WidgetConfig.identifier"),new b.II("text","title","entity.WidgetConfig.title"),new I.P("deliveryChannel","entity.DeliveryChannel.entityName",{optionProvider:O.K,extractor:(0,u.V6)("deliveryChannel"),placeholder:"imxplatform.common.select-placeholder-any-delivery-channel",initialValue:-1})]);let B=(()=>{class oo extends o.z{constructor(Hn,mo,vn,Ji){super(G,void 0,Hn,mo,Ji),this.runtimeContextService=mo,this.imxSecurityManagerService=vn,this.formatterService=Ji}getEntityType(){return"WidgetConfig"}static#e=this.\u0275fac=function(mo){return new(mo||oo)(P.LFG(H.EG),P.LFG(e.Ze),P.LFG(e.Xh),P.LFG(e.H1))};static#t=this.\u0275prov=P.Yz7({token:oo,factory:oo.\u0275fac,providedIn:"root"})}return oo})();var ae=a(56223),J=a(79309),q=a(98120),j=a(62361),Y=a(38996),K=a(12168),ne=a(72764),ee=a(81169),$=a(66175),ue=a(7106),ge=a(87104),Ke=a(97587),at=a(28970),Le=a(57462),R=a(8818),Te=a(90929),me=a(61936),Se=a(85541),Ue=a(79360),We=a(46893),et=a(81044);const Et=new m.E([new j.A("id",""),new b.II("text","title","entity.WidgetConfig.title",{required:!0}),new $.A("identifier","entity.WidgetConfig.identifier",{required:!0,extendedValidators:ae.kI.maxLength(255)}),new ge.y("usageForEntityType","entity.WidgetConfig.usageForEntityType",{required:!0,optionProvider:function Dt(){return J.LV.map(oo=>({value:oo,label:oo}))}(),placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,u.TH)("usageForEntityType"),insertor:(0,q.AA)("usageForEntityType")}),new I.P("defaultEntityType","entity.WidgetConfig.defaultEntityType",{optionProvider:[],extractor:(0,u.YL)("defaultEntityType"),insertor:(0,q.wq)("defaultEntityType",!0),required:!0,placeholder:"imxplatform.common.select-placeholder-demand"}),new ue.U("styling","entity.WidgetConfig.styling",{extendedValidators:ae.kI.maxLength(2e3)}),new K.X("quickAccessList","entity.WidgetConfig.quickAccessList"),new K.X("showSearchResultHeader","entity.WidgetConfig.showSearchResultHeader"),new $.A("imprintUrl","entity.WidgetConfig.imprintUrl",{required:!0,extendedValidators:Le.Y2}),new $.A("privacyUrl","entity.WidgetConfig.privacyUrl",{required:!0,extendedValidators:Le.Y2}),new $.A("locationLabel","entity.WidgetConfig.locationLabel",{required:!0}),new Y.OF("footerLinkTargets",!1,[new $.A("label","entity.LinkTarget.label",{renderLabel:!1,required:!0}),new $.A("targetUrl","entity.LinkTarget.targetUrl",{renderLabel:!1,required:!0,extendedValidators:Le.Y2})]),new b.II("text","logoFileName","entity.WidgetConfig.logoFileName",{readonly:!0}),new b.II("text","logoImageUrl","entity.WidgetConfig.logoImageUrl",{readonly:!0,insertor:q.G3}),new I.P("deliveryChannel","entity.DeliveryChannel.entityName",{optionProvider:O.K,extractor:(0,u.YL)("deliveryChannel.id"),insertor:(0,q.wq)("deliveryChannel.id",!0),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-demand",required:!0}),new I.P("client","entity.Event.client",{optionProvider:R.z,initialValue:-1,placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,u.YL)("client.id"),insertor:(0,q.wq)("client.id",!0)}),new K.X("includeSubClients","entity.WidgetConfig.includeSubClients"),new Y.OF("typeDefs",!1,[new j.A("type",""),new j.A("_entityType",""),new Ke.S("entryViewType","entity.WidgetConfigTypeDef.entryViewType",{optionProvider:{optProvider:Te.v,params:{entityType:"WidgetConfigEntryViewType"}},groupRenderMode:"inline",insertor:(0,q.wq)("entryViewType.id",!0),extractor:(0,u.YL)("entryViewType.id"),required:!0,initialValue:3}),new K.X("showSearchFilter","entity.WidgetConfigTypeDef.showSearchFilter"),new ne.N("viewTypes","entity.WidgetConfigTypeDef.viewTypes",{optionProvider:{optProvider:Te.v,params:{entityType:"WidgetConfigViewType"}},required:!0,insertor:(0,q.wr)("viewTypes","id"),extractor:(0,u.XS)("viewTypes","id")}),new K.X("whatSearchEnabled","entity.WidgetConfigTypeDef.whatSearchEnabled"),new K.X("filterEnabled","entity.WidgetConfigTypeDef.filterEnabled"),new K.X("categoryFilterEnabled","entity.WidgetConfigTypeDef.categoryFilterEnabled"),new K.X("locationFilterEnabled","entity.WidgetConfigTypeDef.locationFilterEnabled"),new $.A("partnerClientUrl","entity.WidgetConfigEventDev.partnerClientUrl",{extendedValidators:Le.Y2}),function Vt(oo){return Oe(oo,"category","WidgetConfigCategory","Category")}("entryPageCategories"),new K.X("showMapInList","entity.WidgetConfigEventDev.showMapInList"),new ge.y("searchCategories","entity.WidgetConfigEventDev.searchCategories",{optionProvider:{optProvider:Te.v,params:{entityType:"Category"}},placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,u.XS)("searchCategories","id"),insertor:(0,q.wr)("searchCategories","id")}),new ge.y("searchCriteria","entity.WidgetConfigEventDev.searchCriteria",{optionProvider:{optProvider:Te.v,params:{entityType:"Criterion"}},renderLabel:!0,placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,u.XS)("searchCriteria","id"),insertor:(0,q.wr)("searchCriteria","id")}),new Ke.S("dateSearchType","entity.WidgetConfigEventDev.dateSearchType",{optionProvider:[{value:0,label:"entity.WidgetConfigEventDev.dateSearchTypeOptions.no-selection"},{value:1,label:"entity.WidgetConfigEventDev.dateSearchTypeOptions.fixed-date"},{value:2,label:"entity.WidgetConfigEventDev.dateSearchTypeOptions.relative-date"},{value:3,label:"entity.WidgetConfigEventDev.dateSearchTypeOptions.upcoming-weekend"}],initialValue:0}),...function ve(){return[new ee.Nn("fixedStartDate","entity.WidgetConfigEventDev.fixedStartDate"),new ee.Nn("fixedEndDate","entity.WidgetConfigEventDev.fixedEndDate"),new b.II("number","intervalFrom","entity.WidgetConfigEventDev.intervalFrom"),new b.II("number","intervalTo","entity.WidgetConfigEventDev.intervalTo")]}(),new at.X("startTime","entity.WidgetConfigEventDev.startTime"),new Ke.S("locationSearchType","entity.WidgetConfigEventDev.locationSearchType",{optionProvider:[{value:-1,label:"entity.WidgetConfigEventDev.locationSearchTypeOptions.no-selection"},{value:0,label:"entity.WidgetConfigEventDev.locationSearchTypeOptions.eventlocation"},{value:1,label:"entity.WidgetConfigEventDev.locationSearchTypeOptions.poigroup"},{value:2,label:"entity.WidgetConfigEventDev.locationSearchTypeOptions.zipcode"},{value:3,label:"entity.WidgetConfigEventDev.locationSearchTypeOptions.coordinates"},{value:4,label:"entity.WidgetConfigEventDev.locationSearchTypeOptions.region"},{value:5,label:"entity.WidgetConfigEventDev.locationSearchTypeOptions.location"}],initialValue:-1,insertor:(0,q.wq)("locationSearchType",!0),extractor:(0,u.YL)("locationSearchType")}),new I.P("series","entity.WidgetConfigEventDev.series",{optionProvider:{optProvider:Te.v,params:{entityType:"EventSeries"}},renderLabel:!0,initialValue:-1,placeholder:"imxplatform.common.select-placeholder-demand",insertor:(0,q.wq)("series.id",!0),extractor:(0,u.YL)("series.id")}),new K.X("whenSearchEnabled","entity.WidgetConfigEventDev.whenSearchEnabled"),new ge.y("categoryFilterCategories","entity.WidgetConfigEventDev.categoryFilterCategories",{optionProvider:{optProvider:Te.v,params:{entityType:"Category"}},placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,u.XS)("categoryFilterCategories","id"),insertor:(0,q.wr)("categoryFilterCategories","id")}),new K.X("criterionFilterEnabled","entity.WidgetConfigEventDev.criterionFilterEnabled"),new ge.y("criterionFilterCriteria","entity.WidgetConfigEventDev.criterionFilterCriteria",{optionProvider:{optProvider:Te.v,params:{entityType:"Criterion"}},placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,u.XS)("criterionFilterCriteria","id"),insertor:(0,q.wr)("criterionFilterCriteria","id")}),new Ke.S("preselectedDateType","entity.WidgetConfigEventDev.preselectedDateType",{optionProvider:[{value:0,label:"entity.WidgetConfigEventDev.dateSearchTypeOptions.no-selection"},{value:1,label:"entity.WidgetConfigEventDev.dateSearchTypeOptions.fixed-date"},{value:2,label:"entity.WidgetConfigEventDev.dateSearchTypeOptions.relative-date"},{value:3,label:"entity.WidgetConfigEventDev.dateSearchTypeOptions.upcoming-weekend"}],initialValue:0}),...function ft(){return[new ee.Nn("preselectedFixedStartDate","entity.WidgetConfigEventDev.fixedStartDate"),new ee.Nn("preselectedFixedEndDate","entity.WidgetConfigEventDev.fixedEndDate"),new b.II("number","preselectedIntervalFrom","entity.WidgetConfigEventDev.intervalFrom"),new b.II("number","preselectedIntervalTo","entity.WidgetConfigEventDev.intervalTo")]}(),new Ke.S("preselectedDayTimeType","entity.WidgetConfigEventDev.preselectedDayTimeType",{optionProvider:[{value:0,label:"entity.WidgetConfigEventDev.dateTimeOptions.morning"},{value:1,label:"entity.WidgetConfigEventDev.dateTimeOptions.midday"},{value:2,label:"entity.WidgetConfigEventDev.dateTimeOptions.evening"}],groupRenderMode:"inline"}),new ge.y("preselectedCategories","entity.WidgetConfigEventDev.preselectedCategories",{optionProvider:{optProvider:Te.v,params:{entityType:"Category"}},renderLabel:!0,placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,u.XS)("preselectedCategories","id"),insertor:(0,q.wr)("preselectedCategories","id")}),new ge.y("preselectedCriteria","entity.WidgetConfigEventDev.preselectedCriteria",{optionProvider:{optProvider:Te.v,params:{entityType:"Criterion"}},renderLabel:!0,placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,u.XS)("preselectedCriteria","id"),insertor:(0,q.wr)("preselectedCriteria","id")}),new b.II("coordinate","preselectedCoordinatesLat","entity.GeoInfo.latitude",{insertor:(0,q.wq)("preselectedCoordinates.latitude"),extractor:(0,u.YL)("preselectedCoordinates.latitude")}),new b.II("coordinate","preselectedCoordinatesLon","entity.GeoInfo.longitude",{insertor:(0,q.wq)("preselectedCoordinates.longitude"),extractor:(0,u.YL)("preselectedCoordinates.longitude")}),new b.II("number","preselectedRadius","entity.WidgetConfigTypeDef.preselectedRadius"),new I.P("preselectedLocation","entity.WidgetConfigTypeDef.preselectedLocation",{optionProvider:me.N,initialValue:-1,extractor:(0,u.YL)("preselectedLocation"),insertor:(0,q.wq)("preselectedLocation",!0),placeholder:"imxplatform.common.select-placeholder-demand"}),function ye(oo){return new Y.OF(oo,!1,[new $.A("label","entity.WidgetConfigProductline.label",{renderLabel:!1}),new I.P("target","entity.WidgetConfigProductline.productline",{optionProvider:Se.N,renderLabel:!1,required:!0,initialValue:-1,placeholder:"imxplatform.common.select-placeholder-demand",insertor:(0,q.wq)("productline.id",!0),extractor:(0,u.YL)("productline.id")}),new b.II("int","sortingValue","entity.WidgetConfigProductline.sortingValue",{renderLabel:!1})])}("entryPageProductlines"),new ge.y("productlinesAnd","entity.WidgetConfigPoiDef.productlinesAnd",{optionProvider:Se.N,placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,u.XS)("productlinesAnd","id"),insertor:(0,q.wr)("productlinesAnd","id")}),new ge.y("productlinesOr","entity.WidgetConfigPoiDef.productlinesOr",{optionProvider:Se.N,placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,u.XS)("productlinesOr","id"),insertor:(0,q.wr)("productlinesOr","id")}),new ge.y("productlinesIgnore","entity.WidgetConfigPoiDef.productlinesIgnore",{optionProvider:Se.N,placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,u.XS)("productlinesIgnore","id"),insertor:(0,q.wr)("productlinesIgnore","id")}),new ge.y("regions","entity.WidgetConfigTypeDef.regions",{optionProvider:Ue.w,placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,u.XS)("regions","id"),insertor:(0,q.wr)("regions","id")}),new ge.y("locations","entity.WidgetConfigTypeDef.locations",{optionProvider:me.N,placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,u.XS)("locations","id"),insertor:(0,q.wr)("locations","id")}),new ge.y("categoryFilterProductlines","entity.WidgetConfigPoiDef.categoryFilterProductlines",{optionProvider:Se.N,placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,u.XS)("categoryFilterProductlines","id"),insertor:(0,q.wr)("categoryFilterProductlines","id")}),new K.X("locationFilterEnabled","entity.WidgetConfigPoiDef.locationFilterEnabled"),new K.X("openingHoursFilterEnabled","entity.WidgetConfigPoiDef.openingHoursFilterEnabled"),new K.X("criterionFilterEnabled","entity.WidgetConfigPoiDef.criterionFilterEnabled"),new ge.y("criterionFilterProductlines","entity.WidgetConfigPoiDef.criterionFilterProductlines",{optionProvider:Se.N,placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,u.XS)("criterionFilterProductlines","id"),insertor:(0,q.wr)("criterionFilterProductlines","id")}),new ge.y("preselectedCategoryFilteredProductlines","entity.WidgetConfigPoiDef.preselectedCategoryFilteredProductlines",{optionProvider:Se.N,renderLabel:!0,placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,u.XS)("preselectedCategoryFilteredProductlines","id"),insertor:(0,q.wr)("preselectedCategoryFilteredProductlines","id")}),new ge.y("preselectedCriterionFilterProductlines","entity.WidgetConfigPoiDef.preselectedCriterionFilterProductlines",{optionProvider:Se.N,renderLabel:!0,placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,u.XS)("preselectedCriterionFilterProductlines","id"),insertor:(0,q.wr)("preselectedCriterionFilterProductlines","id")}),new Ke.S("preselectedOpeningHoursType","entity.WidgetConfigPoiDef.preselectedOpeningHoursType",{optionProvider:[{value:0,label:"entity.WidgetConfigPoiDef.preselectedOpeningHoursTypeOptions.none"},{value:1,label:"entity.WidgetConfigPoiDef.preselectedOpeningHoursTypeOptions.now"},{value:2,label:"entity.WidgetConfigPoiDef.preselectedOpeningHoursTypeOptions.tomorrow"},{value:3,label:"entity.WidgetConfigPoiDef.preselectedOpeningHoursTypeOptions.today"}],initialValue:0,groupRenderMode:"inline"}),new ge.y("tourCategories","entity.WidgetConfigTourDef.tourCategories",{optionProvider:{optProvider:Te.v,params:{entityType:"TourCategory"}},placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,u.XS)("tourCategories","id"),insertor:(0,q.wr)("tourCategories","id")}),function r(oo){return Oe(oo,"tourCategory","WidgetConfigTourCategory","TourCategory")}("entryPageTourCategories"),new ge.y("activityFilterTourCategories","entity.WidgetConfigTourDef.activityFilterTourCategories",{optionProvider:{optProvider:Te.v,params:{entityType:"TourCategory"}},placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,u.XS)("activityFilterTourCategories","id"),insertor:(0,q.wr)("activityFilterTourCategories","id")}),new K.X("difficultyLevelFilterEnabled","entity.WidgetConfigTourDef.difficultyLevelFilterEnabled"),new K.X("lengthDurationFilterEnabled","entity.WidgetConfigTourDef.lengthDurationFilterEnabled"),new ge.y("attributeFilterTourAttributes","entity.WidgetConfigTourDef.attributeFilterTourAttributes",{optionProvider:{optProvider:Te.v,params:{entityType:"TourAttribute"}},placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,u.XS)("attributeFilterTourAttributes","id"),insertor:(0,q.wr)("attributeFilterTourAttributes","id")}),new ge.y("preselectedTourCategories","entity.WidgetConfigTourDef.preselectedTourCategories",{optionProvider:{optProvider:Te.v,params:{entityType:"TourCategory"}},placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,u.XS)("preselectedTourCategories","id"),insertor:(0,q.wr)("preselectedTourCategories","id")}),new Ke.S("preselectedDifficultyLevel","entity.WidgetConfigTourDef.preselectedDifficultyLevel",{optionProvider:[{value:0,label:"entity.WidgetConfigTourDef.preselectedDifficultyLevelOptions.none"},{value:1,label:"entity.WidgetConfigTourDef.preselectedDifficultyLevelOptions.easy"},{value:2,label:"entity.WidgetConfigTourDef.preselectedDifficultyLevelOptions.medium"},{value:3,label:"entity.WidgetConfigTourDef.preselectedDifficultyLevelOptions.hard"}],initialValue:0,groupRenderMode:"inline"}),new b.II("int","preselectedMinDuration","entity.WidgetConfigTourDef.preselectedMinDuration"),new b.II("int","preselectedMaxDuration","entity.WidgetConfigTourDef.preselectedMaxDuration"),new b.II("int","preselectedMinLength","entity.WidgetConfigTourDef.preselectedMinLength"),new b.II("int","preselectedMaxLength","entity.WidgetConfigTourDef.preselectedMaxLength"),new ge.y("preselectedActivityFilterTourAttributes","entity.WidgetConfigTourDef.preselectedActivityFilterTourAttributes",{optionProvider:{optProvider:Te.v,params:{entityType:"TourAttribute"}},placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,u.XS)("preselectedActivityFilterTourAttributes","id"),insertor:(0,q.wr)("preselectedActivityFilterTourAttributes","id")}),new We.w("eventLocationsAutocomplete","entity.AddressPoi.entityName",{autocompleteService:et.G,autocompleteFilter:{entityStateIds:"40"},insertor:q.G3,useAnyNameHolder:!1,renderLabel:!1}),new Y.OF("whereSearchLocations",!0,[],{insertor:(0,q.wq)("locations"),extractor:(0,u.YL)("locations")}),new Y.OF("whereSearchPoiGroups",!0,[],{insertor:(0,q.wq)("poiGroups"),extractor:(0,u.YL)("poiGroups")}),new b.II("text","zipcodes","entity.WidgetConfigTypeDef.zipcodes"),new b.II("number","radius","entity.WidgetConfigTypeDef.radius"),new b.II("coordinate","coordinatesLat","entity.GeoInfo.latitude",{insertor:(0,q.wq)("coordinates.latitude"),extractor:(0,u.YL)("coordinates.latitude")}),new b.II("coordinate","coordinatesLon","entity.GeoInfo.longitude",{insertor:(0,q.wq)("coordinates.longitude"),extractor:(0,u.YL)("coordinates.longitude")}),new I.P("region","entity.WidgetConfigTypeDef.region",{optionProvider:me.N,initialValue:-1,extractor:(0,u.YL)("region"),insertor:(0,q.wq)("region",!0),placeholder:"imxplatform.common.select-placeholder-demand"}),new I.P("location","entity.WidgetConfigTypeDef.location",{optionProvider:me.N,initialValue:-1,extractor:(0,u.YL)("location"),insertor:(0,q.wq)("location",!0),placeholder:"imxplatform.common.select-placeholder-demand"})])]);let lt=(()=>{class oo extends o.z{constructor(Hn,mo,vn){super(Et,void 0,Hn,mo,vn)}getEntityType(){return"WidgetConfig"}static#e=this.\u0275fac=function(mo){return new(mo||oo)(P.LFG(H.EG),P.LFG(e.Ze),P.LFG(e.H1))};static#t=this.\u0275prov=P.Yz7({token:oo,factory:oo.\u0275fac,providedIn:"root"})}return oo})();function Oe(oo,_o,Hn,mo){return new Y.OF(oo,!1,[new $.A("label","entity."+Hn+".label",{renderLabel:!1}),new I.P("target","entity."+Hn+"."+_o,{optionProvider:{optProvider:Te.v,params:{entityType:mo}},renderLabel:!1,required:!0,initialValue:-1,placeholder:"imxplatform.common.select-placeholder-demand",insertor:(0,q.wq)(_o+".id",!0),extractor:(0,u.YL)(_o+".id")}),new b.II("int","sortingValue","entity."+Hn+".sortingValue",{renderLabel:!1})])}var Ie=a(15767),ot=a(59143),ct=a(63333),tn=a(73209),yi=a(35119),ni=a(22941),sn=a(17700),bn=a(17591),vt=a(71365),nn=a(96814),rn=a(16007),ii=a(92596),Oo=a(1431),no=a(85219),Li=a(74961),ji=a(6128),Ii=a(36681),_i=a(37012),En=a(12),co=a(74377),yn=a(64123),ln=a(90633),He=a(26768),rt=a(59626),$e=a(22194),Ve=a(60757),Ce=a(1614);function tt(oo,_o){if(1&oo){const Hn=P.EpF();P.TgZ(0,"imx-create-new-entity-button",10),P.NdJ("create",function(){P.CHM(Hn);const vn=P.oxw();return P.KtG(vn.createNewWidgetConfig())}),P.qZA()}2&oo&&P.Q6J("fireCreateEvent",!0)("entityResourceKeyPrefix","imxplatform.widget-config")}function ht(oo,_o){1&oo&&(P.TgZ(0,"imx-list-no-results"),P._uU(1,"imxplatform.widget-config.list.no-records"),P.qZA())}function Qt(oo,_o){1&oo&&P._UZ(0,"mat-progress-bar",11)}function Un(oo,_o){if(1&oo&&(P.TgZ(0,"th",18),P._uU(1),P.ALo(2,"translate"),P.qZA()),2&oo){const Hn=_o.$implicit;P.Udp("width",Hn.width),P.Q6J("ngClass",Hn.cssClass),P.xp6(),P.hij(" ",P.lcZ(2,4,Hn.header)," ")}}function Yt(oo,_o){if(1&oo&&(P.TgZ(0,"tr"),P.YNc(1,Un,3,6,"th",17),P.qZA()),2&oo){const Hn=P.oxw(3);P.xp6(),P.Q6J("ngForOf",Hn.columnDefinitions)}}function Fn(oo,_o){if(1&oo){const Hn=P.EpF();P.TgZ(0,"tr")(1,"td")(2,"a",19),P.NdJ("click",function(){const Ji=P.CHM(Hn).$implicit,wn=P.oxw(3);return P.KtG(wn.editWidgetConfig(Ji))}),P._uU(3),P.qZA()(),P.TgZ(4,"td",20)(5,"a",19),P.NdJ("click",function(){const Ji=P.CHM(Hn).$implicit,wn=P.oxw(3);return P.KtG(wn.editWidgetConfig(Ji))}),P._uU(6),P.qZA()(),P.TgZ(7,"td",20),P.ALo(8,"readI18n"),P.TgZ(9,"a",19),P.NdJ("click",function(){const Ji=P.CHM(Hn).$implicit,wn=P.oxw(3);return P.KtG(wn.editWidgetConfig(Ji))}),P._uU(10),P.ALo(11,"readI18n"),P.qZA()(),P.TgZ(12,"td",20),P.ALo(13,"readI18n"),P.TgZ(14,"a",19),P.NdJ("click",function(){const Ji=P.CHM(Hn).$implicit,wn=P.oxw(3);return P.KtG(wn.editWidgetConfig(Ji))}),P._uU(15),P.qZA()(),P.TgZ(16,"td",20),P.ALo(17,"readI18n"),P.TgZ(18,"a",19),P.NdJ("click",function(){const Ji=P.CHM(Hn).$implicit,wn=P.oxw(3);return P.KtG(wn.editWidgetConfig(Ji))}),P._uU(19),P.qZA()(),P.TgZ(20,"td")(21,"imx-dropup-button")(22,"imx-action-menu")(23,"imx-action-menu-item",21),P.NdJ("click",function(){const Ji=P.CHM(Hn).$implicit,wn=P.oxw(3);return P.KtG(wn.editWidgetConfig(Ji))}),P._uU(24,"imxplatform.common-entity.list.edit "),P.qZA(),P.TgZ(25,"imx-action-menu-item",22),P.NdJ("click",function(){const Ji=P.CHM(Hn).$implicit,wn=P.oxw(3);return P.KtG(wn.removeWidgetConfig(Ji))}),P._uU(26," imxplatform.common-entity.list.remove "),P.qZA()()()()()}if(2&oo){const Hn=_o.$implicit;P.xp6(3),P.hij(" ",Hn.id," "),P.xp6(),P.Q6J("matTooltip",Hn.title)("matTooltipShowDelay",500),P.xp6(2),P.hij(" ",Hn.title," "),P.xp6(),P.Q6J("matTooltip",P.lcZ(8,13,Hn.identifier))("matTooltipShowDelay",500),P.xp6(3),P.hij(" ",P.lcZ(11,15,Hn.identifier)," "),P.xp6(2),P.Q6J("matTooltip",P.lcZ(13,17,Hn.usageForEntityType))("matTooltipShowDelay",500),P.xp6(3),P.hij(" ",Hn.usageForEntityType," "),P.xp6(),P.Q6J("matTooltip",P.lcZ(17,19,Hn.defaultEntityType))("matTooltipShowDelay",500),P.xp6(3),P.hij(" ",Hn.defaultEntityType," ")}}function yt(oo,_o){if(1&oo&&(P.ynx(0),P.TgZ(1,"p-table",14),P.YNc(2,Yt,2,1,"ng-template",15)(3,Fn,27,21,"ng-template",16),P.qZA(),P.BQk()),2&oo){const Hn=P.oxw().ngIf;P.xp6(),P.Q6J("value",Hn.items)}}function Bt(oo,_o){if(1&oo&&(P.TgZ(0,"div",12),P.YNc(1,yt,4,1,"ng-container",13),P.qZA()),2&oo){const Hn=_o.ngIf;P.oxw();const mo=P.MAs(8);P.xp6(),P.Q6J("ngIf",Hn.items.length>0)("ngIfElse",mo)}}const li="WidgetConfig";let si=(()=>{class oo extends yi.R{constructor(Hn,mo,vn,Ji,wn,po,Kn,Vn,Wi,Ft,Oi,On,_n,st,Dn){super(Hn,mo,vn,Ji,wn,po,Kn,Vn,Wi,Ft,Oi,void 0,On,_n,{moduleName:p.Q,entityName:li}),this.translateService=On,this.runtimeContextService=st,this.widgetConfigFormHandlerService=Dn,this.platformPermissions=e.uo,this.availableOrderFields=[{index:1,field:"title",i18n:"entity.WidgetConfig.title",type:tn.m.alphanumeric},{index:2,field:"id",i18n:"entity.DataObject.id",type:tn.m.numeric},{index:3,field:"lastChangeTime",i18n:"entity.AuditedDataObject.lastChangeTime",type:tn.m.numeric}],this.columnDefinitions=[{field:"id",header:"ID",width:"70px"},{field:"title",header:"entity.WidgetConfig.title",width:"20%"},{field:"identifier",header:"entity.WidgetConfig.identifier",width:"20%"},{field:"usageForEntityType",header:"entity.WidgetConfig.usageForEntityType",width:"20%"},{field:"defaultEntityType",header:"entity.WidgetConfig.defaultEntityType",width:"20%"},{field:"action",header:"",width:"5%"}]}ngOnInit(){super.ngOnInit(),this.runtimeContextService.getCurrentAndSubClients().subscribe(Hn=>this.currentClientsAndSubClientIds=Array.from(Hn).map(mo=>mo.id))}getEntityName(){return li}getFilterPredicates(){return[(0,c.xC)("id"),(0,c.Bo)("title","title"),(0,c.hn)("identifier")]}getSortPredicates(){return new Map}createNewWidgetConfig(){this.createNewEntity(li,this.widgetConfigFormHandlerService,s.Q)}editWidgetConfig(Hn){this.editEntity(Hn,li,this.widgetConfigFormHandlerService,s.Q)}removeWidgetConfig(Hn){this.removeEntity(Hn,li)}getDialogSize(){return n.D.FORM_HUGE}editEntity(Hn,mo,vn,Ji,wn,po){delete Hn.name,super.editEntity(Hn,mo,vn,Ji,wn,po)}static#e=this.\u0275fac=function(mo){return new(mo||oo)(P.Y36(t.o),P.Y36(ni.F0),P.Y36(ni.gz),P.Y36(ot.Y),P.Y36(Ie.G),P.Y36(sn.uw),P.Y36(B),P.Y36(i.nq),P.Y36(bn.Q),P.Y36(ct.x),P.Y36(e.qB),P.Y36(vt.sK),P.Y36(l.a),P.Y36(e.Ze),P.Y36(lt))};static#t=this.\u0275cmp=P.Xpm({type:oo,selectors:[["ng-component"]],features:[P.qOj],decls:14,vars:16,consts:[[1,"base-entity-search","list"],[3,"formHandler","record","orderFields","orderField","orderDirection","orderChanged","applyFilter","resetFilter"],[3,"totalNumber","entityResourceKeyPrefix","showCompactToggle","reload"],["list-header-button-row",""],[3,"fireCreateEvent","entityResourceKeyPrefix","create",4,"hasAnyPermission"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],["class","table-wrapper",4,"ngIf","ngIfElse"],[3,"disableAllSelection","paging","selection","pageChanged","selectAll"],[3,"fireCreateEvent","entityResourceKeyPrefix","create"],["mode","indeterminate"],[1,"table-wrapper"],[4,"ngIf","ngIfElse"],[1,"imx-datatable",3,"value"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",3,"ngClass"],[1,"txt-link",3,"click"],[3,"matTooltip","matTooltipShowDelay"],["icon","icon-pencil",3,"click"],["icon","icon-trash","additionalStyle","delete",3,"click"]],template:function(mo,vn){if(1&mo&&(P.TgZ(0,"div",0)(1,"imx-widget-config-filter",1),P.NdJ("orderChanged",function(wn){return vn.sort(wn)})("applyFilter",function(wn){return vn.search(wn)})("resetFilter",function(){return vn.reset()}),P.qZA(),P.TgZ(2,"imx-list-header",2),P.NdJ("reload",function(){return vn.reloadComplete()}),P.ynx(3,3),P.YNc(4,tt,1,2,"imx-create-new-entity-button",4),P.BQk(),P.qZA(),P.TgZ(5,"imx-grid")(6,"imx-grid-element",5),P.YNc(7,ht,2,0,"ng-template",null,6,P.W1O)(9,Qt,1,0,"ng-template",null,7,P.W1O)(11,Bt,2,2,"div",8),P.ALo(12,"async"),P.qZA()(),P.TgZ(13,"imx-list-footer",9),P.NdJ("pageChanged",function(wn){return vn.onPageChanged(wn)})("selectAll",function(wn){return vn.onSelectAll(wn)}),P.qZA()()),2&mo){const Ji=P.MAs(10);P.xp6(),P.Q6J("formHandler",vn.filterFormHandler)("record",vn.filter)("orderFields",vn.availableOrderFields)("orderField",vn.orderField)("orderDirection",vn.orderDirection),P.xp6(),P.Q6J("totalNumber",null==vn.currentResult?null:vn.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxplatform.widget-config")("showCompactToggle",!1),P.xp6(2),P.Q6J("hasAnyPermission",vn.platformPermissions.F_WIDGET_CONFIG_ADMINISTRATION.name),P.xp6(7),P.Q6J("ngIf",P.lcZ(12,14,vn.results))("ngIfElse",Ji),P.xp6(2),P.Q6J("disableAllSelection",!0)("paging",vn.pagingModel)("selection",vn.selectionModel)}},dependencies:[nn.mk,nn.sg,nn.O5,rn.pW,ii.gM,Oo.iA,no.jx,Oo.Q7,Li.p,ji.z,Ii.t,_i.M,En.V,co.N,yn._,ln.A,He.E,rt.R,$e.F,Ve.k,nn.Ov,vt.X$,Ce.j],styles:[".imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.base-entity-search[_ngcontent-%COMP%]{padding-bottom:50px;padding-top:50px}.base-entity-search[_ngcontent-%COMP%]   .icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.base-entity-search[_ngcontent-%COMP%]   .selected-size[_ngcontent-%COMP%]{color:#3e3e3e}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}"]})}return oo})()},80617:(gt,X,a)=>{"use strict";a.d(X,{E:()=>n});var e=a(19212);let n=(()=>{class s{transform(i){return i&&i.length>0?new Date(i.replace(/\s/g,"T")):i}static#e=this.\u0275fac=function(t){return new(t||s)};static#t=this.\u0275pipe=e.Yjl({name:"convertTimestamps",type:s,pure:!0})}return s})()},18341:(gt,X,a)=>{"use strict";a.d(X,{p:()=>n});var e=a(19212);let n=(()=>{class s{constructor(){this.units=["bytes","KB","MB","GB","TB","PB"]}static#e=this.DIVIDER=1e3;transform(i,t=2){let p="string"==typeof i?+i:i;if(!isNaN(p)){let c=0;for(;p>=s.DIVIDER;)p/=s.DIVIDER,c++;return 0==c&&(t=0),p.toFixed(+t)+" "+this.units[c]}return""}static#t=this.\u0275fac=function(t){return new(t||s)};static#n=this.\u0275pipe=e.Yjl({name:"fileSize",type:s,pure:!0})}return s})()},1505:(gt,X,a)=>{"use strict";a.d(X,{q:()=>s});var e=a(21473),n=a(19212);let s=(()=>{class l{constructor(t){this.configurationProvider=t}transform(t){const p=new e.n$(e.x3.PLATFORM_IMPORT_SOURCE_NAMES,t),c=this.configurationProvider.getStringFromSnapshot(p);return c?c+" ("+t+")":t}static#e=this.\u0275fac=function(p){return new(p||l)(n.Y36(e.Pc,16))};static#t=this.\u0275pipe=n.Yjl({name:"importSource",type:l,pure:!0})}return l})()},13098:(gt,X,a)=>{"use strict";a.d(X,{O:()=>s});var e=a(21473),n=a(19212);let s=(()=>{class l{constructor(t){this.runtimeContextService=t}transform(t){if(t){const p=[];return t.forEach(c=>{const o=this.runtimeContextService.getLanguages().find(x=>x.name===c.name);o&&p.push(o.i18nName)}),p}}static#e=this.\u0275fac=function(p){return new(p||l)(n.Y36(e.Ze,16))};static#t=this.\u0275pipe=n.Yjl({name:"languageNames",type:l,pure:!0})}return l})()},4588:(gt,X,a)=>{"use strict";a.d(X,{i:()=>l});var e=a(1614),n=a(19212),s=a(71365);let l=(()=>{class i{constructor(p){this.translateService=p,this.i18nPipe=new e.j(this.translateService)}transform(p){return p&&p.length>0?p.map(c=>this.i18nPipe.transform(c.i18nName)).join(", "):p.toString()}static#e=this.\u0275fac=function(c){return new(c||i)(n.Y36(s.sK,16))};static#t=this.\u0275pipe=n.Yjl({name:"mediumCategory",type:i,pure:!0})}return i})()},6996:(gt,X,a)=>{"use strict";a.d(X,{D:()=>l});var e=a(41621),n=a(19212),s=a(71365);let l=(()=>{class i{constructor(p){this.translateService=p,this.ignoredProductLineIds=[0,1e8],this.priorityProductLineIds=[211,15]}transform(p,c=!1){const o=new Array(this.priorityProductLineIds.length),x=[];let u;return u=p.filter(m=>null!=m.productline).filter(m=>null==this.ignoredProductLineIds.find(b=>b==m.productline.id)),u=c?u.filter(m=>m.productline.id>=1e8).sort((m,b)=>(0,e.Qi)(m.productline.i18nName,b.productline.i18nName,this.translateService.currentLang)).concat(u.filter(m=>m.productline.id<1e8).sort((m,b)=>(0,e.Qi)(m.productline.i18nName,b.productline.i18nName,this.translateService.currentLang))):u.filter(m=>m.productline.id>=1e8).sort((m,b)=>m.productline.id-b.productline.id).concat(u.filter(m=>m.productline.id<1e8).sort((m,b)=>m.productline.id-b.productline.id)),u.forEach(m=>{if(null!=this.priorityProductLineIds.find(b=>b==m.productline.id)){const b=this.priorityProductLineIds.findIndex(I=>I==m.productline.id);o[b]=m}else x.push(m)}),[...o.filter(m=>null!=m),...x]}static#e=this.\u0275fac=function(c){return new(c||i)(n.Y36(s.sK,16))};static#t=this.\u0275pipe=n.Yjl({name:"productlineFilter",type:i,pure:!0})}return i})()},94480:(gt,X,a)=>{"use strict";a.d(X,{w:()=>l});var e=a(1614),n=a(19212),s=a(71365);let l=(()=>{class i{constructor(p){this.translateService=p,this.i18nPipe=new e.j(this.translateService)}transform(p){return p.filter(c=>!("productline"in c)||null!=c.productline).map(c=>"productline"in c?c.productline:c).map(c=>this.i18nPipe.transform(c.i18nName)).join(", ")}static#e=this.\u0275fac=function(c){return new(c||i)(n.Y36(s.sK,16))};static#t=this.\u0275pipe=n.Yjl({name:"productline",type:i,pure:!0})}return i})()},1614:(gt,X,a)=>{"use strict";a.d(X,{j:()=>s});var e=a(19212),n=a(71365);let s=(()=>{class l{constructor(t){this.translateService=t}transform(t,p,c=!0){return null!=t?t instanceof Array?t.map(o=>this.transformI18n(o,p,c)).join(", "):this.transformI18n(t,p,c):""}transformI18n(t,p,c=!0){if(void 0!==t){if("string"==typeof t)return t;if("number"==typeof t)return t.toString();if(p&&t[p]&&""!==t[p])return t[p];if(c){const o=this.translateService.currentLang;if(t[o]&&""!==t[o])return t[o];const x=this.translateService.defaultLang;if(t[x]&&""!==t[x])return t[x];const u=Object.keys(t).filter(m=>"id"!==m&&"_entityType"!==m).find(m=>null!=t[m]&&""!==t[m]);return u?t[u]+"["+u+"]":""}return""}return""}static#e=this.\u0275fac=function(p){return new(p||l)(e.Y36(n.sK,16))};static#t=this.\u0275pipe=e.Yjl({name:"readI18n",type:l,pure:!0})}return l})()},88844:(gt,X,a)=>{"use strict";a.d(X,{p:()=>n});var e=a(19212);let n=(()=>{class s{transform(i){return i&&i.length>0?i.replace(/<\S[^><]*>/g,""):i}static#e=this.\u0275fac=function(t){return new(t||s)};static#t=this.\u0275pipe=e.Yjl({name:"stripTags",type:s,pure:!0})}return s})()},27556:(gt,X,a)=>{"use strict";a.d(X,{H:()=>e});const e={name:"imxplatform",projectProduct:!1}},80929:(gt,X,a)=>{"use strict";a.d(X,{h:()=>c,x:()=>p});var e=a(19212),n=a(49193),s=a(23291),l=a(96743),i=a(96124),t=a(13033);const p=new e.OlP("imxplatform.action.voter");class c{constructor(x,u,m,b,I){this.dialog=x,this.dataAccess=u,this.entityStateDao=m,this.userMessageService=b,this.actionVoters=I,this.ACTION_ORDER_SET_STATE=10,this.ACTION_ORDER_MODIFY=20,this.ACTION_ORDER_IMPORT=30,this.ACTION_ORDER_MERGE=40,this.ACTION_ORDER_CLONE=60,this.ACTION_ORDER_CONVERT=70,this.ACTION_ORDER_PROPOSE_APPEARANCE=80,this.ACTION_ORDER_CONFIRM_PROPOSED_APPEARANCES=81,this.ACTION_ORDER_REFUSE_PROPOSED_APPEARANCES=82,this.ACTION_ORDER_TRANSLATE=90,this.ACTION_ORDER_DELETE=100}getOrder(){return 50}isDeleteAction(){return!1}execute(x){return this.evaluateActionVoters(x).pipe((0,l.zg)(u=>u?this.doExecute(x):(console.error("Action prevented by voter"),(0,n.of)(!1))))}isBlocking(){return!0}getSuccessKey(){return"imxplatform.common-entity.list.action.successful"}getFailedKey(){return"imxplatform.common-entity.list.action.failed"}getActionLabelKey(){return this.actionLabelKey}setActionLabelKey(x){this.actionLabelKey=x}getPriority(){return 1/0}createActionCall(x,u,m){return{actionKey:this.getActionKey(),entityType:x,entityIds:[u.id],actionParams:m||{}}}createActionCallForBatch(x,u,m){return{actionKey:this.getActionKey(),entityType:x,entityIds:u,actionParams:m||{}}}showSuccessMessage(x){this.userMessageService.showInfo(this.getSuccessKey(),x?{count:x.length}:{count:1})}showSuccessMessageForSingleAction(x){x&&1===x.length?this.userMessageService.showInfo(this.getSuccessKey(),{count:x.length}):this.userMessageService.showError(this.getFailedKey())}validateBatchResult(x,u,m){const b=x.filter(I=>-1===u.indexOf(I));if(b&&b.length>0){const I={notProcessedIds:b.join(", "),nothingWasProcessed:0===u.length,...m};this.dialog.open(t.A,{maxWidth:560,data:{i18nText:this.getBatchWarningKey(),context:I}})}}evaluateActionVoters(x,u){if(this.actionVoters){const m=this.getValidVoters();return(0,s.aj)(m.map(b=>b.voteForSingleExecution(x,u))).pipe((0,i.U)(b=>b.reduce((I,H)=>I&&H)))}return(0,n.of)(!0)}didActionVoterShowConfirmDialog(){return!!this.actionVoters&&this.getValidVoters().map(u=>u.showsConfirmDialog()).reduce((u,m)=>u||m)}getValidVoters(){return this.actionVoters.filter(x=>x.forAction()===this.getActionKey())}}},66789:(gt,X,a)=>{"use strict";a.d(X,{Z:()=>l});var e=a(21473),n=a(27556),s=a(80929);class l extends s.h{constructor(t,p,c,o,x,u){super(t,p,c,o,u),this.dialog=t,this.dataAccess=p,this.entityStateDao=c,this.userMessageService=o,this.backgroundActionService=x,this.actionVoters=u,this.loggerAbstract=(0,e.jl)("AbstractClientsideBackgroundAction",n.H.name)}executeInBackground(t){try{this.loggerAbstract.info("Scheduled background action of type: "+this.getActionKey()),this.backgroundActionService.addExecution(this,t)}catch(p){this.loggerAbstract.error("Scheduling of background action failed",p),this.userMessageService.showError("imxplatform.common.error.parallel-execution")}}getBatchWarningKey(){return"-not implemented -"}}},90874:(gt,X,a)=>{"use strict";a.d(X,{B:()=>p});var e=a(19212),n=a(4116),s=a(80929),l=a(54699),i=a(21473),t=a(27556);class p extends s.h{constructor(){super(...arguments),this.logger=(0,i.jl)("AbstractDatamanagerAction",t.H.name),this.contextNavigationService=(0,e.f3M)(n.E)}createActionCall(o,x,u){const m=super.createActionCall(o,x,u);return m.actionParams.context=this.getActionContext(),m}getActionContext(){return"datamanager"}shouldUserMessageBeShown(){return!0}executeBatch(o){throw this.logger.error("Batch operations are not supported for datamanager actions at this time!"),new Error("Not implemented")}doExecute(o,x){return new l.y(u=>{const m=this.createActionCall(this.getEntityType(),o,x);this.logger.info("Trigger datamanager action "+this.getActionKey()+" for "+this.getEntityType()+": "+JSON.stringify(m)),this.dataAccess.callAction(m).subscribe(b=>{this.shouldUserMessageBeShown()&&this.showSuccessMessageForSingleAction(b),u.next(!0),this.executeAfterActionComplete(o)},b=>{this.userMessageService.showError(b)})})}getBatchWarningKey(){return""}executeAfterActionComplete(o){}}},77715:(gt,X,a)=>{"use strict";a.d(X,{O:()=>p});var e=a(21473),n=a(54699),s=a(91226),l=a(62413),i=a(86313),t=a(85422);class p extends t.M{doExecute(o){return new n.y(x=>{this.dialog.open(i.F,{maxWidth:470,maxHeight:235,data:{i18n:this.getConfirmTitleKey(),title:o.title,objectId:o.id}}).afterClosed().subscribe(m=>{if(m){const b=this.createActionCall(this.getEntityType(),o);this.dataAccess.callAction(b).pipe((0,l.K)(I=>((0,e.Ec)(I)&&I.exceptionKey===e.Uf.PF_DATABASE_CONSTRAINT?this.userMessageService.showError("imxplatform.common-entity.list.action.delete.constraint-failure",{id:o.id}):this.userMessageService.showError(I||this.getFailedKey()),s.E))).subscribe(I=>{this.showSuccessMessageForSingleAction(I),x.next(!0)})}})})}executeBatch(o){return new n.y(x=>{this.dialog.open(i.F,{maxWidth:470,maxHeight:235,data:{batch:!0,i18n:this.getConfirmBatchTitleKey(),count:o.length}}).afterClosed().subscribe(m=>{m&&this.executeInBackgroundAsJob(o,x,!0)})})}getOrder(){return this.ACTION_ORDER_DELETE}isDeleteAction(){return!0}getSuccessKey(){return"imxplatform.common-entity.list.action.delete.successful"}getFailedKey(){return"imxplatform.common-entity.list.action.delete.failed-single"}getBatchWarningKey(){return"imxplatform.common-entity.list.action.delete.batch-warning"}triggerSearchPageReloadOnSuccess(){return!0}}},41281:(gt,X,a)=>{"use strict";a.d(X,{$:()=>I});var e=a(21473),n=a(49193),s=a(54699),l=a(96743),i=a(75222),t=a(75678),p=a(27556),u=(a(93281),a(22819),a(59143),a(66789)),b=(a(60768),a(19212));let I=(()=>{class H extends u.Z{constructor(P,G,B,ae,J,q){super(P,G,B,ae,J,q),this.dialog=P,this.dataAccess=G,this.entityStateDao=B,this.userMessageService=ae,this.backgroundActionService=J,this.actionVoters=q,this.logger=(0,e.jl)("AbstractDuplicateAction",p.H.name)}getEntityType(){return"AbstractDuplicateAction"}doExecute(P){throw new Error("this was neve supposed to be called")}executeDuplicateAction(P,G){return this.evaluateActionVoters(P,G).pipe((0,l.zg)(B=>B?this.didActionVoterShowConfirmDialog()?this._triggerDuplicateAction(P,G):this.openGroupActionConfirmDialog(P,G).pipe((0,i.w)(J=>J?(this.extendParamsWithDialogResultData(J,G),this._triggerDuplicateAction(P,G)):(0,n.of)(!1))):(console.error("Action prevented by voter"),(0,n.of)(!1))))}openGroupActionConfirmDialog(P,G){return this._openConfirmDialog(this.getConfirmTitleKey(),this.getConfirmTextKey()).afterClosed()}extendParamsWithDialogResultData(P,G){}_triggerDuplicateAction(P,G){return new s.y(B=>{const ae=this.createActionCall("DuplCandidatesGroup",P,G);this.logger.info("Trigger duplicate action "+this.getActionKey()+" for DuplCandidatesGroup: "+JSON.stringify(ae)),this.dataAccess.callAction(ae).subscribe(J=>{this.showSuccessMessageForDuplicates(G,J),B.next(!0)},J=>{this.userMessageService.showError(J)})})}executeBatch(P){throw this.logger.error("Batch operations are not supported for this duplicate action"+this.getActionKey()),new Error("Not implemented")}showSuccessMessageForDuplicates(P,G){G&&1===G.length?this.userMessageService.showInfo(this.getSuccessKey(),{processedEntities:G.length}):this.userMessageService.showError(this.getFailedKey())}getBatchWarningKey(){return""}getActionLabelKey(){return this.getConfirmTitleKey()}_openConfirmDialog(P,G){return this.dialog.open(t.$,{maxWidth:450,data:{title:P,text:G,iconClass:this.getIcon(),translated:!1,confirmButtonKey:"imxplatform.common.yes"}})}static#e=this.\u0275fac=function(G){b.$Z()};static#t=this.\u0275prov=b.Yz7({token:H,factory:H.\u0275fac})}return H})()},50916:(gt,X,a)=>{"use strict";a.d(X,{p:()=>o});var e=a(75678),n=a(49193),s=a(54699),l=a(91226),i=a(62413),t=a(21473),p=a(27556),c=a(80929);class o extends c.h{constructor(){super(...arguments),this.logger=(0,t.jl)("AbstractEditProposedAppearancesAction",p.H.name)}doExecute(u){return(0,n.of)(!1)}executeBatch(u){return new s.y(m=>{this.dialog.open(e.$,{maxWidth:600,maxHeight:300,data:{iconClass:this.getIcon(),title:this.getConfirmBatchTitleKey(),text:this.getConfirmBatchTextKey(),confirmButtonKey:"imxplatform.common.yes",cancelButtonKey:"imxplatform.common.no"}}).afterClosed().subscribe(I=>{if(I){const H=this.createActionCallForBatch(this.getEntityType(),u);this.dataAccess.callAction(H).pipe((0,i.K)(O=>(0,t.Ec)(O)?(this.userMessageService.showError("imxplatform.common-entity.list.action.proposed-appearances.failure",{id:""}),l.E):(0,n.of)([]))).subscribe(O=>{this.validateBatchResult(u,O),this.showSuccessMessage(O),m.next(!0)})}})})}getSuccessKey(){return"imxplatform.common-entity.list.action."+this.getConfirmOrRefuse()+"-proposed-appearances.successful"}getFailedKey(){return"imxplatform.common-entity.list.action."+this.getConfirmOrRefuse()+"-proposed-appearances.failed-single"}getBatchWarningKey(){return"imxplatform.common-entity.list.action."+this.getConfirmOrRefuse()+"-proposed-appearances.batch-warning"}getConfirmBatchTitleKey(){return"imxplatform.common-entity.list.action."+this.getConfirmOrRefuse()+"-proposed-appearances.batch-header"}getConfirmBatchTextKey(){return"imxplatform.common-entity.list.action."+this.getConfirmOrRefuse()+"-proposed-appearances.batch-text"}getConfirmTitleKey(){return"imxplatform.common-entity.list.action."+this.getConfirmOrRefuse()+"-proposed-appearances.header"}}},36145:(gt,X,a)=>{"use strict";a.d(X,{G:()=>n});var e=a(50916);class n extends e.p{constructor(l,i,t,p){super(l,i,t,p),this.dialog=l,this.dataAccess=i,this.entityStateDao=t,this.userMessageService=p}getOrder(){return this.ACTION_ORDER_CONFIRM_PROPOSED_APPEARANCES}getConfirmOrRefuse(){return"confirm"}getIcon(){return"icon-earth-confirm"}}},16049:(gt,X,a)=>{"use strict";a.d(X,{I:()=>n});var e=a(50916);class n extends e.p{constructor(l,i,t,p){super(l,i,t,p),this.dialog=l,this.dataAccess=i,this.entityStateDao=t,this.userMessageService=p}getOrder(){return this.ACTION_ORDER_REFUSE_PROPOSED_APPEARANCES}getConfirmOrRefuse(){return"refuse"}getIcon(){return"icon-earth-reject"}}},9408:(gt,X,a)=>{"use strict";a.d(X,{w:()=>u});var e=a(21473),n=a(96124),s=a(75222),l=a(27556),c=(a(93281),a(22819),a(59143),a(41281)),x=(a(60768),a(19212));let u=(()=>{class m extends c.${constructor(I,H,O,P,G,B){super(I,H,O,P,G,B),this.dialog=I,this.dataAccess=H,this.entityStateDao=O,this.userMessageService=P,this.backgroundActionService=G,this.actionVoters=B,this.logger=(0,e.jl)("AbstractDuplicateResolveAction",l.H.name)}openGroupActionConfirmDialog(I,H){const O=this.getCandidateActionParamName();return this.reloadDuplicates(I).pipe((0,n.U)(P=>P.filter(G=>H[O].includes(G.id))),(0,s.w)(P=>this.openDuplicatesDecisionDialog(P).afterClosed()))}reloadDuplicates(I){return this.getDuplicateGroupById(I.id).pipe((0,n.U)(H=>H[this.getGroupMemberProperty()].map(O=>({id:O.id,title:O.title}))))}getConfirmBatchTitleKey(){return"imxplatform.duplicate.list.action.resolve-duplicate.batch-header"}getBatchWarningKey(){return"imxplatform.duplicate.list.action.resolve-duplicate.batch-text"}getConfirmTitleKey(){return"imxplatform.duplicate.list.action.resolve-duplicate.header"}getConfirmTextKey(){return"imxplatform.duplicate.list.action.resolve-duplicate.text"}getSuccessKey(){return"imxplatform.duplicate.list.action.resolve-duplicate.successful"}static#e=this.\u0275fac=function(H){x.$Z()};static#t=this.\u0275prov=x.Yz7({token:m,factory:m.\u0275fac})}return m})()},85422:(gt,X,a)=>{"use strict";a.d(X,{M:()=>t});var e=a(80929),n=a(91226),s=a(16222),l=a(21473),i=a(27556);class t extends e.h{constructor(c,o,x,u,m,b){super(c,o,x,u,b),this.dialog=c,this.dataAccess=o,this.entityStateDao=x,this.userMessageService=u,this.backgroundActionService=m,this.actionVoters=b,this.logger=(0,l.jl)("AbstractServerSideBackgroundAction",i.H.name)}executeInBackgroundAsJob(c,o,x,u){const m=this.createActionCallForBatch(this.getEntityType(),c,u);this.logger.info("executeInBackgroundAsJob "+this.getEntityType()+": "+JSON.stringify(m)),this.dataAccess.callActionAsync(m).subscribe(b=>{this.backgroundActionService.addJobAsAction(b,this,!0,c),this.showScheduleHint(c),o.next(!1)},b=>{if(b instanceof l.DO&&b.errorKey===l.Oi.PF_NOT_AVAILABLE)return console.warn("seems that backend does not yet support asynch actions",b),console.warn("fallback to old action workflow"),this.dataAccess.callAction(m).subscribe(I=>{this.validateBatchResult(c,I),this.showSuccessMessage(I),o.next(!0)}),n.E;(0,s._)(b)})}getExecutionListLabel(){return this.getActionLabelKey()}showScheduleHint(c){this.userMessageService.showInfo("imxplatform.common-entity.list.action.scheduled",{},8e3)}triggerSearchPageReloadOnSuccess(){return!1}}},34590:(gt,X,a)=>{"use strict";a.d(X,{z:()=>c});var e=a(54699),n=a(77504),s=a(49193),l=a(51418),i=a(75222),t=a(20985),p=a(80929);class c extends p.h{constructor(x,u,m,b,I){super(x,u,b,I),this.dialog=x,this.dataAccess=u,this.imxEntitiesMgrService=m,this.entityStateDao=b,this.userMessageService=I,this.entityStateDao.findAvailablesByEntityType(this.getEntityType(),"action").pipe((0,l.q)(1)).subscribe(H=>{this.allStates=H})}getOrder(){return this.ACTION_ORDER_SET_STATE}getIcon(){return"icon-earth-confirm"}getBatchWarningKey(){return"imxplatform.common-entity.list.action.set-state.batch-warning"}getSuccessKey(){return"imxplatform.common-entity.list.action.set-state.successful"}doExecute(x){return new e.y(u=>{this.entityStateDao.findAvailablesByEntity(this.getEntityType(),x.id,"action").pipe((0,l.q)(1)).subscribe(m=>{this.dialog.open(t.l,{maxWidth:500,data:{currentStateKey:x.entityState.key,disableStateSelection:!1,allStates:m}}).afterClosed().subscribe(I=>{if("number"==typeof I){const H=this.createActionCall(this.getEntityType(),x,{entityStateId:I});this.dataAccess.callAction(H).subscribe(O=>{this.showSuccessMessageForSingleAction(O),u.next(!0)})}})})})}executeBatch(x,u){return new e.y(m=>{let b;const I=this.entityStateDao.findAvailablesByEntity(this.getEntityType(),x[0],"action");if(null==u)if(1===x.length)b=I.pipe((0,i.w)(H=>this._openStateDialog(H).afterClosed()));else{const H=[];x.forEach(O=>{H.push(this.entityStateDao.findAvailablesByEntity(this.getEntityType(),O,"action"))}),b=(0,n.D)(H).pipe((0,i.w)(O=>{const P=[];return O.forEach(G=>{G.forEach(B=>{P.map(ae=>ae.key).includes(B.key)||P.push(B)})}),this._openStateDialog(Array.from(P).sort((G,B)=>G.key-B.key)).afterClosed()}))}else b=I.pipe((0,i.w)(H=>H.map(O=>O.key).includes(u)?(0,s.of)(u):(0,s.of)(null)));b.subscribe(H=>{"number"==typeof H&&this.actionCall(x,H,m)})})}actionCall(x,u,m){const b=this.createActionCallForBatch(this.getEntityType(),x,{entityStateId:u});this.dataAccess.callAction(b).subscribe(I=>{this.validateBatchResult(x,I),this.showSuccessMessage(I),m.next(!0)})}_openStateDialog(x){return this.dialog.open(t.l,{maxWidth:500,data:{allStates:x}})}}},25203:(gt,X,a)=>{"use strict";a.d(X,{M:()=>n});var e=a(80929);class n extends e.h{}},15033:(gt,X,a)=>{"use strict";a.d(X,{G:()=>i,a:()=>t});var e=a(19212),n=a(21473),s=a(27556),l=a(22819);const i=new e.OlP("imxplatform.actions");let t=(()=>{class p{constructor(o,x){this.actions=o,this.dataAccessService=x,this.logger=(0,n.jl)("ActionProviderService",s.H.name),this.batchActionMap=new Map,this.rowActionMap=new Map,this.availableActions=[],this.filterAvailableActions(o)}filterAvailableActions(o){const x=[];o.forEach(u=>{!x.includes(u.getActionKey())&&o.filter(m=>m.getActionKey()===u.getActionKey()).length>1&&x.push(u.getActionKey())}),x&&x.length>0?(this.availableActions=[],o.forEach(u=>{if(x.includes(u.getActionKey())){if(!this.availableActions.find(m=>m.getActionKey()===u.getActionKey())){const m=o.filter(b=>b.getActionKey()===u.getActionKey()).reduce((b,I)=>b.getPriority()<=I.getPriority()?b:I);this.logger.debug('Multiple available actions found for key "'+m.getActionKey()+'" -> using the one with highest priority '+m.getPriority()),this.availableActions.push(m)}}else this.availableActions.push(u)})):this.availableActions=o}loadBatchActionsForType(o,x){this.dataAccessService.getActionInfo(o,x).subscribe(u=>{this.batchActionMap.set(o,u)})}loadRowActionsForTypeAndIds(o,x,u){x&&x.length>0&&this.dataAccessService.getAllowedRowActionInfo(o,x,u).subscribe(m=>{const b=this.rowActionMap.get(o);this.rowActionMap.set(o,b?new Map([...Array.from(b.entries()),...Array.from(m)]):m)})}getRowActionsForType(o,x){const u=[],m=this.rowActionMap.get(o);if(m){const b=m.get(x.toString());null!=b&&b.length>0&&b.forEach(I=>this.matchExecutable(I,u))}return u}getBatchActionsForType(o){const x=[],u=this.batchActionMap.get(o);return null!=u&&u.length>0&&u.filter(m=>m.batchAction).forEach(m=>this.matchExecutable(m,x)),x}findActionForKey(o){return this.availableActions.find(x=>x.getActionKey()===o)}findStaticActionForKey(o){return this.availableActions.find(x=>x.getActionKey()===o)}matchExecutable(o,x){const u=this.availableActions.find(m=>m.getActionKey()===o.actionKey);u&&(u.setActionLabelKey(o.actionName),x.push(u))}static#e=this.\u0275fac=function(x){return new(x||p)(e.LFG(i),e.LFG(l.nq))};static#t=this.\u0275prov=e.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},45686:(gt,X,a)=>{"use strict";a.d(X,{A:()=>b});var e=a(27975),n=a(80929),s=a(54699),l=a(49193),i=a(75222),t=a(93281),p=a(22819),c=a(59143),o=a(9408),x=a(60768),u=a(19212),m=a(17700);let b=(()=>{class I extends o.w{constructor(O,P,G,B,ae,J){super(O,P,G,B,ae,J),this.dialog=O,this.dataAccess=P,this.entityStateDao=G,this.userMessageService=B,this.backgroundActionService=ae,this.actionVoters=J}getDuplicateGroupById(O){return this.dataAccess.getAddressPoiDuplicateGroupById(O)}getGroupMemberProperty(){return"addressPois"}getCandidateActionParamName(){return"addressPoiIds"}openDuplicatesDecisionDialog(O){return this.dialog.open(e.e,{maxWidth:850,data:{duplicates:O,inheritMediaType:"NONE",inheritTexts:!1,inheritAppearances:!1,inheritInputFields:!1,inheritContactAddressbaseAssignment:!1,inheritAttributes:!1,inheritEntityLists:!1,deleteDuplicates:!1}})}executeBatch(O){return this._openConfirmDialog(this.getConfirmBatchTitleKey(),this.getBatchWarningKey()).afterClosed().pipe((0,i.w)(P=>P?new s.y(G=>{const B=this.createActionCallForBatch("AddressPoiDuplCandidatesGroup",O);this.logger.info("Trigger duplicate action "+this.getActionKey()+" for AddressPoiDuplCandidatesGroup: "+JSON.stringify(B));const ae=this.dataAccess.callAction(B);this.executeInBackground({entityIds:O,ids:O.length,operation:ae}),G.next(!0)}):(0,l.of)(!1)))}getEntityType(){return"AddressPoiDuplCandidatesGroup"}showSuccessMessageForDuplicates(O,P){const G=O.addressPoiIds.split(",").map(ae=>parseInt(ae,10)),B=G.filter(ae=>-1===G.indexOf(ae));B&&0===B.length?this.userMessageService.showInfo(this.getSuccessKey(),{processedEntities:P.length}):this.userMessageService.showError(this.getFailedKey())}extendParamsWithDialogResultData(O,P){P.masterId=O.masterId,P.inheritEntityLists=O.inheritEntityLists,P.deleteDuplicates=O.deleteDuplicates,P.inheritTexts=!1,P.inheritAppearances=O.inheritAppearances,P.inheritInputFields=O.inheritInputFields,P.inheritContactAddressbaseAssignment=O.inheritContactAddressbaseAssignment,P.inheritAttributes=O.inheritAttributes,P.inheritMediaType=O.inheritMediaType}getActionKey(){return"addresspoi-duplicates-action-resolve_duplicate_groups"}getIcon(){return"icon-undo_duplicate"}static#e=this.\u0275fac=function(P){return new(P||I)(u.LFG(m.uw),u.LFG(p.nq),u.LFG(t.o),u.LFG(c.Y),u.LFG(x.k_),u.LFG(n.x,8))};static#t=this.\u0275prov=u.Yz7({token:I,factory:I.\u0275fac})}return I})()},60768:(gt,X,a)=>{"use strict";a.d(X,{Di:()=>P,c_:()=>G,$W:()=>B,k_:()=>ae});var e=a(21473),n=a(79309),s=a(3579),l=a(72079),i=a(74815),t=a(19352),p=a(51418),c=a(27556),o=a(54266),x=a(22819),u=a(19212),m=a(94973),b=a(82851),I=a(59143);let H=(()=>{class J{constructor(){this.httpDataAccessService=(0,u.f3M)(e.J6),this.userMessageService=(0,u.f3M)(I.Y),this.dataAccessService=(0,u.f3M)(x.nq)}checkJobResultDownload(j){const Y=j.job.result.result.actionResult?.deeplink;if(Y&&Y.length>0){const K=this.downloadJobResultBlob(Y);this.dataAccessService.openBlobResponse(K,j.job.info.actionParams.statName,"imxplatform.statistic.error",this.userMessageService)}}downloadJobResultBlob(j){return this.httpDataAccessService.get(j,{responseType:"blob",observe:"response"}).pipe((0,m.C)(),(0,b.x)())}static#e=this.\u0275fac=function(Y){return new(Y||J)};static#t=this.\u0275prov=u.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"})}return J})();class P{}var G=function(J){return J.RUNNING="running",J.SUCCESS="success",J.FAILURE="failure",J}(G||{});class B{}let ae=(()=>{class J{constructor(j,Y,K){this.platformService=j,this.backgroundActionResultHandler=Y,this.store=K,this.logger=(0,e.jl)("BackgroundActionService",c.H.name),this.actions=[],this.executions=[],this.jobStates=[],this.destroy$=new l.xQ,this.onJobFinishedSuccess=new l.xQ,(0,i.F)(5e3).pipe((0,t.R)(this.destroy$)).subscribe(()=>{this.jobStates.forEach(ne=>{if(this.isActionJobRunning(ne.job))try{this.platformService.getJobById(ne.job.id).pipe((0,p.q)(1)).subscribe(ee=>{if(ee){if(ne.job=ee,ne.progress$=this.platformService.getJobProgressById(ee.id),this.isActionJobRunning(ne.job)||(this.executions=this.executions.filter($=>$!==ne.action.getActionKey()+ee.id),this.logger.info("job no longer running, remove from executions: "+ne.action.getActionKey()+ee.id),this.store.dispatch(new o.D.EndJobAction(ee.id))),this.isActionJobFinishedWithSuccess(ne.job)&&ne.isBatch){const $=ne.job.result.result.actionResult?.failedIds;$&&$.length>0&&(ne.notProcessIds=$?.split(",").map(ue=>Number.parseInt(ue,10))),this.backgroundActionResultHandler.checkJobResultDownload(ne),this.onJobFinishedSuccess.next(ne)}if(this.isActionJobFinishedWithError(ne.job)){const $=ne.job.result.result.error;$&&$.length>0&&(ne.errorMessage=$),ne.notProcessIds=ne.toProcessIds}}})}catch(ee){this.logger.warn("failed to get job with id "+ne.job.id,ee)}})})}isActionJobRunning(j){return j.status===n.By.running.toUpperCase()||j.status===n.By.scheduled.toUpperCase()}isActionJobFinishedWithSuccess(j){return j.status===n.By.finished_success.toUpperCase()}isActionJobFinishedWithError(j){return j.status===n.By.finished_error.toUpperCase()}addExecution(j,Y){if(this.executions.find(ne=>ne===j.getActionKey()))throw new Error("No parallel execution allowed");const K=this.addAction(j,Y);this.executions.push(j.getActionKey()),this.store.dispatch(new o.D.StartAction(j,K,j.getEntityType(),Y.entityIds)),Y.operation.subscribe(ne=>{let ee;this.executions=this.executions.filter($=>$!==j.getActionKey()),Array.isArray(ne)&&(ee=ne.length),this.store.dispatch(new o.D.EndAction(j.getActionKey(),K)),this.updateResult(K,{runState:G.SUCCESS,processedEntities:ee})},ne=>{this.logger.error("Background action failed to execute",ne),this.executions=this.executions.filter($=>$!==j.getActionKey());const ee=ne.localizedMessage&&ne.localizedMessage.length>0?ne.localizedMessage.join(" "):ne.error?ne.error:ne;this.store.dispatch(new o.D.EndAction(j.getActionKey(),K)),this.updateResult(K,{runState:G.FAILURE,errorMessage:ee})})}backgroundActionsRunning(){return this.executions.length>0}getActionStates(){return this.actions.sort((j,Y)=>Y.scheduleTime-j.scheduleTime).sort(this.actionRunStateComparator)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}addJobAsAction(j,Y,K,ne){this.jobStates.push({job:j,action:Y,isBatch:K,toProcessIds:ne,notProcessIds:[]}),this.executions.push(Y.getActionKey()+j.id),this.store.dispatch(new o.D.StartJobAction(Y,j.id,Y.getEntityType(),ne))}getJobStates(){return this.jobStates}backgroundActionsCompleted(){const j=this.actions.every(Y=>Y.runState!==G.RUNNING)&&this.jobStates.every(Y=>!this.isActionJobRunning(Y.job));return(this.actions.length>0||this.jobStates.length>0)&&j}isLastActionResultSuccessful(){return this.actions.length&&G.SUCCESS===this.actions[0].runState||this.jobStates.length&&this.jobStates[this.jobStates.length-1].job.status===n.By.finished_success.toUpperCase()}addAction(j,Y){this.actions.length>=5&&this.actions.sort((ne,ee)=>ee.scheduleTime-ne.scheduleTime).pop();const K=(new Date).getTime().toString(36);return this.actions.push({actionId:K,action:j,runState:G.RUNNING,scheduleTime:Date.now(),duration:0,allEntities:Y.ids,processedEntities:void 0}),K}updateResult(j,Y){const K=this.actions.find(ne=>ne.actionId==j);if(K){const ne={...K,...Y};void 0!==ne.processedEntities&&0===ne.processedEntities&&(ne.runState=G.FAILURE,ne.errorMessage="imxplatform.common-entity.list.action.batch-error"),this.actions=this.actions.filter(ee=>ee.actionId!==j),this.actions.push(ne)}}actionRunStateComparator(j,Y){return j.runState==G.RUNNING&&Y.runState!==G.RUNNING?-1:0}static#e=this.\u0275fac=function(Y){return new(Y||J)(u.LFG(x.nq),u.LFG(H),u.LFG(s.yh))};static#t=this.\u0275prov=u.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"})}return J})()},65486:(gt,X,a)=>{"use strict";a.d(X,{p:()=>G});var e=a(49193),n=a(54699),s=a(23291),l=a(96743),i=a(75222),t=a(62413),p=a(96124),c=a(75678),o=a(86313),x=a(93281),u=a(22819),m=a(48485),b=a(59143),I=a(80929),H=a(19212),O=a(17700),P=a(71365);let G=(()=>{class B extends I.h{constructor(J,q,j,Y,K,ne){super(J,q,j,Y),this.dialog=J,this.dataAccess=q,this.entityStateDao=j,this.userMessageService=Y,this.entityPermissionServiceRegistry=K,this.translationService=ne}executeBatch(J,q){return(0,e.of)(!0)}executeReferenceDeleteBatchAction(J){return this.openBatchDialog(J.map(q=>q.entityListId)).afterClosed().pipe((0,l.zg)(q=>q?this.executeRemoveRequest(J):(0,e.of)([])),(0,l.zg)(q=>q.length>0?this.openBatchSuccessDialog(q).afterClosed():(0,e.of)(!1)))}doExecute(J){return new n.y(q=>{this.entityPermissionServiceRegistry.getEntityPermissionService(J.holderType).calcSavePermissionById(J.holderId).pipe((0,i.w)(Y=>Y?this.dialog.open(o.F,{maxWidth:470,maxHeight:235,data:{i18n:this.getConfirmTitleKey(),title:J.entityListName,objectId:J.entityListId}}).afterClosed():(this.userMessageService.showInfo("imxplatform.contact-list-mgmt.list.action.remove.no-rights"),(0,e.of)(!1)))).subscribe(Y=>{Y?J.holderType&&J.holderId&&J.contactId?this.dataAccess.removeContactList(J.holderType,J.holderId,J.contactId).subscribe(()=>{this.userMessageService.showInfo("imxplatform.contact-list-mgmt.list.action.remove.success"),q.next(!0)},K=>{this.userMessageService.showError(K||"imxplatform.contact-list-mgmt.list.action.remove.failure"),q.next(!1)}):(this.userMessageService.showError("imxplatform.contact-list-mgmt.list.action.remove.failure"),q.next(!1)):q.next(!1)})})}getBatchWarningKey(){return"imxplatform.contact-list-mgmt.list.action.remove.warning"}getConfirmBatchTitleKey(){return"imxplatform.contact-list-mgmt.list.action.remove.confirm-batch"}getConfirmTitleKey(){return"imxplatform.contact-list-mgmt.list.action.remove.confirm"}getEntityType(){return"ContactList"}getActionKey(){return"contact-list-action-delete"}getIcon(){return"icon-trash"}openBatchDialog(J){return this.dialog.open(o.F,{maxWidth:470,maxHeight:235,data:{i18n:this.getConfirmBatchTitleKey(),batch:!0,count:J.length}})}openBatchSuccessDialog(J){const q=J.filter(K=>!0===K.success).map(K=>K.contactList.entityListId),j=J.filter(K=>!1===K.success).map(K=>K.contactList.entityListId);let Y="imxplatform.contact-list-mgmt.list.action.remove.batch-success-some";return 0===q.length?Y="imxplatform.contact-list-mgmt.list.action.remove.batch-failed-all":0===j.length&&(Y="imxplatform.contact-list-mgmt.list.action.remove.batch-success-all"),this.dialog.open(c.$,{maxWidth:450,data:{title:this.translationService.instant("imxplatform.contact-list-mgmt.list.action.remove.title"),text:this.translationService.instant(Y,{successIds:q.join(", "),errorIds:j.join(", "),count:j.length}),confirmButtonKey:"imxplatform.dialog.common-close",translated:!0}})}executeRemoveRequest(J){return(0,s.aj)(J.map(q=>this.handleRemoveResponse(q)))}handleRemoveResponse(J){return this.dataAccess.removeContactList(J.holderType,J.holderId,J.contactId).pipe((0,t.K)(()=>(0,e.of)({success:!1,contactList:J})),(0,p.U)(q=>q&&!1===q.success?{success:!1,contactList:J}:{success:!0,contactList:J}))}static#e=this.\u0275fac=function(q){return new(q||B)(H.LFG(O.uw),H.LFG(u.nq),H.LFG(x.o),H.LFG(b.Y),H.LFG(m.J),H.LFG(P.sK))};static#t=this.\u0275prov=H.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"})}return B})()},12042:(gt,X,a)=>{"use strict";a.d(X,{o:()=>u});var e=a(21473),n=a(49193),s=a(33946),l=a(87820),i=a(93281),t=a(22819),p=a(59143),c=a(25203),o=a(19212),x=a(17700);let u=(()=>{class m extends c.M{constructor(I,H,O,P,G){super(I,H,O,P,void 0),this.securityManagerService=G,this.importSourceDataProvidingImporters=[],this.dataAccess.getImportSourceDataProvidingImporters().subscribe(B=>{this.importSourceDataProvidingImporters=B},B=>{})}isRowAction(){return!0}isBatchActions(){return!1}isExecutable(I){return(0,n.of)(!(!I.importRun||!I.importRun.importSource)&&this.importSourceDataProvidingImporters.includes(I.importRun.importSource+":"+I.importRun.importPurpose))}isExecutableForSource(I,H){return(0,n.of)(!(!I.importRun||!I.importRun.importPurpose)&&this.importSourceDataProvidingImporters.includes(H+":"+I.importRun.importPurpose))}getActionKey(){return"import-source-view-action"}getIcon(){return"icon-inbox"}getActionLabelKey(){return"imxplatform.common-entity.list.importSourceData"}hasPermission(){return this.securityManagerService.hasPermission(e.uo.F_IMPORT_SOURCE_DATA_ALL)}executeBatch(I,H){throw new Error("Method not implemented.")}doExecute(I){return this.showImportSource(I.importRun.importSource,I.importRun.importPurpose,I.importIdentifier)}showImportSource(I,H,O){return this.dialog.open(l.Q,{...s.D.FORM_BIG,data:{importSource:I,importPurpose:H,importIdentifier:O}}).afterClosed()}getBatchWarningKey(){return""}static#e=this.\u0275fac=function(H){return new(H||m)(o.LFG(x.uw),o.LFG(t.nq),o.LFG(i.o),o.LFG(p.Y),o.LFG(e.Xh))};static#t=this.\u0275prov=o.Yz7({token:m,factory:m.\u0275fac})}return m})()},36020:(gt,X,a)=>{"use strict";a.d(X,{i:()=>o});var e=a(49193),n=a(91226),s=a(62413),l=a(96124),i=a(75222),t=a(21473),p=a(22819),c=a(19212);let o=(()=>{class x{constructor(m){this.dataAccess=m}cascadeDeletePooledMedium(m,b,I,H,O,P){let G=(0,e.of)(!0);m.referenceSpecification&&m.referenceSpecification.references&&m.referenceSpecification.references.length>0&&(G=this.dataAccess.callAction(b).pipe((0,s.K)(ae=>(O.showError(ae||P),n.E)),(0,l.U)(ae=>ae.length>0)));const B=this.dataAccess.callAction(I).pipe((0,s.K)(ae=>((0,t.Ec)(ae)&&ae.exceptionKey===t.Uf.PF_DATABASE_CONSTRAINT?O.showError("imxplatform.common-entity.list.action.delete.constraint-failure",{id:H}):O.showError(ae||P),n.E)));return G.pipe((0,i.w)(ae=>ae?B:n.E))}static#e=this.\u0275fac=function(b){return new(b||x)(c.LFG(p.nq))};static#t=this.\u0275prov=c.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"})}return x})()},3186:(gt,X,a)=>{"use strict";a.d(X,{V:()=>m});var e=a(59143),n=a(80929),s=a(21473),l=a(22819),i=a(27556),t=a(54699),p=a(6828),c=a(93281),o=a(19212),x=a(17700);const u="StandardPooledMedium";let m=(()=>{class b extends n.h{constructor(H,O,P,G){super(H,O,P,G),this.dialog=H,this.dataAccess=O,this.entityStateDao=P,this.userMessageService=G,this.logger=(0,s.jl)("PooledMediumMoveAction",i.H.name)}getActionKey(){return"pooledmedium-action-move"}getIcon(){return"icon-move"}getBatchWarningKey(){return"imxplatform.media.list.action.move.batch-warning"}getSuccessKey(){return"imxplatform.media.list.action.move.successful"}doExecute(H){return new t.y(O=>{this.dataAccess.getPooledMediaFolders().subscribe(P=>{this.dialog.open(p.C,{maxWidth:650,data:{folders:P}}).afterClosed().subscribe(B=>{if("string"==typeof B){const ae=this.createActionCall(u,H,{newFolder:B});this.logger.info("MoveMedia: "+JSON.stringify(ae)),this.dataAccess.callAction(ae).subscribe(J=>{this.showSuccessMessageForSingleAction(J),O.next(!0)})}})})})}executeBatch(H){return new t.y(O=>{this.dataAccess.getPooledMediaFolders().subscribe(P=>{this.dialog.open(p.C,{maxWidth:650,data:{folders:P}}).afterClosed().subscribe(B=>{if("string"==typeof B){const ae=this.createActionCallForBatch(u,H,{newFolder:B});this.logger.info("MoveMedia: "+JSON.stringify(ae)),this.dataAccess.callAction(ae).subscribe(J=>{this.validateBatchResult(H,J),this.showSuccessMessage(J),O.next(!0)})}})})})}static#e=this.\u0275fac=function(O){return new(O||b)(o.LFG(x.uw),o.LFG(l.nq),o.LFG(c.o),o.LFG(e.Y))};static#t=this.\u0275prov=o.Yz7({token:b,factory:b.\u0275fac})}return b})()},84850:(gt,X,a)=>{"use strict";a.d(X,{V:()=>b});var e=a(54699),n=a(42756),s=a(21473),l=a(27556),i=a(93281),t=a(22819),p=a(21417),c=a(59143),o=a(80929),x=a(19212),u=a(17700);const m="StandardPooledMedium";let b=(()=>{class I extends o.h{constructor(O,P,G,B,ae){super(O,P,B,ae),this.dialog=O,this.dataAccess=P,this.formHandler=G,this.entityStateDao=B,this.userMessageService=ae,this.logger=(0,s.jl)("PooledMediumUpdateAction",l.H.name)}getActionKey(){return"pooledmedium-action-update"}getIcon(){return"icon-pencil--squares"}getBatchWarningKey(){return"imxplatform.media.list.action.update.batch-warning"}doExecute(O){return new e.y(P=>{this.formHandler.formGroup.enable(),this.formHandler.baseObject=this.newPooledMedium(),this.dialog.open(n.x,{maxWidth:650,data:{formHandler:this.formHandler}}).afterClosed().subscribe(B=>{if(this.formHandler.formGroup.markAsPristine(),B){const ae=this.buildActionParams();if(0!==Object.keys(ae).length){const J=this.createActionCall(m,O,ae);this.logger.info("UpdateMedia: "+JSON.stringify(J)),this.dataAccess.callAction(J).subscribe(q=>{this.showSuccessMessageForSingleAction(q),P.next(!0)})}}})})}executeBatch(O){return new e.y(P=>{this.formHandler.formGroup.enable(),this.formHandler.baseObject=this.newPooledMedium(),this.dialog.open(n.x,{maxWidth:650,data:{formHandler:this.formHandler}}).afterClosed().subscribe(B=>{if(this.formHandler.formGroup.markAsPristine(),B){const ae=this.buildActionParams();if(0!==Object.keys(ae).length){const J=this.createActionCallForBatch(m,O,ae);this.logger.info("UpdateMedia: "+JSON.stringify(J)),this.dataAccess.callAction(J).subscribe(q=>{this.validateBatchResult(O,q),this.showSuccessMessage(q),P.next(!0)})}}})})}buildActionParams(){const O={};return Object.keys(this.formHandler.formGroup.controls).forEach(P=>{if(this.formHandler.formGroup.get(P).enabled){const G=this.formHandler.formGroup.get(P).value;G&&(O[P]=G)}}),O}componentValue(O){return this.formHandler.formGroup.get(O).enabled?this.formHandler.getFormValue(O):null}newPooledMedium(){return{id:null,identification:null,categories:[],copyright:{},description:{},altText:{},mediaContent:null,mediaLicense:null,mediaProvider:null,mediaType:null,searchKeywords:{},thumbUrl:null,title:{},url:null}}static#e=this.\u0275fac=function(P){return new(P||I)(x.LFG(u.uw),x.LFG(t.nq),x.LFG(p.vB),x.LFG(i.o),x.LFG(c.Y))};static#t=this.\u0275prov=x.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})()},77966:(gt,X,a)=>{"use strict";a.d(X,{d:()=>l});var e=a(64022),n=a(22819),s=a(19212);let l=(()=>{class i{constructor(p){this.dataAccessService=p}getEntityType(){return e.t8.ADDRESSPOI_ENTITY.type}getAutocompleteHolders(p,c,o){return this.dataAccessService.getAddresspoiAutocomplete(p,c,o)}getAutocompleteHoldersFiltered(p,c,o){return this.dataAccessService.genericGetCoreEntityFiltered(e.t8.ADDRESSPOI_ENTITY.apiPrefix,p,c,o)}static#e=this.\u0275fac=function(c){return new(c||i)(s.LFG(n.nq))};static#t=this.\u0275prov=s.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})()},98869:(gt,X,a)=>{"use strict";a.d(X,{U:()=>l});var e=a(22819),n=a(79309),s=a(19212);let l=(()=>{class i{constructor(p){this.dataAccessService=p}getAutocompleteHolders(p,c,o){return this.dataAccessService.getAddresspoiAutocomplete(p,c,{addresspoiType:n.zc.id.toString(),...o})}static#e=this.\u0275fac=function(c){return new(c||i)(s.LFG(e.nq))};static#t=this.\u0275prov=s.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})()},81044:(gt,X,a)=>{"use strict";a.d(X,{G:()=>i});var e=a(21473),n=a(22819),s=a(79309),l=a(19212);let i=(()=>{class t{constructor(c,o){this.dataAccessService=c,this.configurationProvider=o}getAutocompleteHolders(c,o,x){const u=this.configurationProvider.getStringFromSnapshot(e.x3.IMXPLATFORM_EVENT_LOCATION_CONTRIBUTOR_AUTOCOMPLETE_FILTER_ENTITY_STATES),m=this.dataAccessService.getAddresspoiAutocomplete(c,o,{addresspoiType:s.pv.id.toString(),entityStateIds:u||"",...x});return this.filterAutocompleteHoldersAfterLoad(m,x)}filterAutocompleteHoldersAfterLoad(c,o){return c}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(n.nq),l.LFG(e.Pc))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},30144:(gt,X,a)=>{"use strict";a.d(X,{x:()=>t});var e=a(96124),n=a(21473),s=a(22819),l=a(19212),i=a(71365);let t=(()=>{class p{constructor(o,x,u){this.imxPlatformDataAccessService=o,this.imxEntitiesMgrService=x,this.translateService=u}getAutocompleteHolders(o,x,u){const m=u.entityType;if(null==x&&o){const b=parseInt(o,10);isNaN(b)||(x=o)}return null!=x?this.imxEntitiesMgrService.getEntityWithIdOfType(m,Number.parseInt(x,10)).pipe((0,e.U)(b=>[{entityId:b.id,entityType:m,representation:this.determineRepresentation(b)}])):this.imxPlatformDataAccessService.getBaseEntityAutocomplete(m,o,u)}determineRepresentation(o){return o.name?o.name:o.i18nName?o.i18nName[this.translateService.currentLang]:o.id.toString()}static#e=this.\u0275fac=function(x){return new(x||p)(l.LFG(s.nq),l.LFG(n.qB),l.LFG(i.sK))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},60238:(gt,X,a)=>{"use strict";a.d(X,{p:()=>t});var e=a(49193),n=a(96124),s=a(22819),l=a(21473),i=a(19212);let t=(()=>{class p{constructor(o,x){this.imxPlatformDataAccessService=o,this.imxEntitiesMgrService=x}getAutocompleteHolders(o,x,u){return null!=x?this.imxEntitiesMgrService.getEntityWithIdOfType("Client",Number.parseInt(x,10)).pipe((0,n.U)(m=>[{entityId:m.id,entityType:"Client",representation:m.name}])):o?this.imxPlatformDataAccessService.getClientAutocomplete(o,u):(0,e.of)()}static#e=this.\u0275fac=function(x){return new(x||p)(i.LFG(s.nq),i.LFG(l.qB))};static#t=this.\u0275prov=i.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},23367:(gt,X,a)=>{"use strict";a.d(X,{F:()=>n,R:()=>s});var e=a(19212);const n=new e.OlP("imxplatform.core-data-object-autocomplete.service");let s=(()=>{class l{constructor(t){this.autocompleteServices=new Map,t.forEach(p=>this.autocompleteServices.set(p.getEntityType(),p))}getAutocompleteService(t){return this.autocompleteServices.get(t)}static#e=this.\u0275fac=function(p){return new(p||l)(e.LFG(n))};static#t=this.\u0275prov=e.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},53204:(gt,X,a)=>{"use strict";a.d(X,{V:()=>l});var e=a(96124),n=a(60999),s=a(19212);let l=(()=>{class i{constructor(p){this.countryOptionProviderService=p}getAutocompleteHolders(p,c){const o=p||c;return this.countryOptionProviderService.getOptions(void 0,void 0).pipe((0,e.U)(x=>x.filter(u=>u.label.toLowerCase().startsWith(o.toLowerCase()))),(0,e.U)(x=>x.map(u=>({entityId:u.label,entityType:u.label,representation:u.label,compareString:u.label}))))}static#e=this.\u0275fac=function(c){return new(c||i)(s.LFG(n.l))};static#t=this.\u0275prov=s.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})()},44590:(gt,X,a)=>{"use strict";a.d(X,{l:()=>p});var e=a(49193),n=a(96124),s=a(75222),l=a(21473),i=a(22819),t=a(19212);let p=(()=>{class c{constructor(x,u){this.imxPlatformDataAccessService=x,this.imxEntitiesMgrService=u}getAutocompleteHolders(x,u,m){return void 0!==u?this.readFromEntitiesMgr([Number(u)],void 0):x?this.imxPlatformDataAccessService.getLocationAutocomplete(x,m).pipe((0,n.U)(b=>b.map(I=>I.entityId)),(0,s.w)(b=>this.readFromEntitiesMgr(b,x))):(0,e.of)()}readFromEntitiesMgr(x,u){return this.imxEntitiesMgrService.getEntityWithIdsOfType("Location",x).pipe((0,n.U)(b=>b.map(I=>this.convertToHolder(I,u))))}convertToHolder(x,u){const m=x.zipcodes.find(b=>b.zipcode.indexOf(u)>-1);return{compareString:x.name,entityId:x.id,entityType:"Location",representation:this.buildRepresentation(x,m?m.zipcode:void 0),name:x.name,inputString:m?m.zipcode:u}}buildRepresentation(x,u){let m=x.name,b="";if(x.alias1&&(b+=x.alias1),x.alias2&&(b+=" ",b+=x.alias2),b=b.trim(),""!==b&&(m+=" ("+b+")"),x.zipcodes)if(1===x.zipcodes.length)m=x.zipcodes[0].zipcode+" "+m;else if(x.zipcodes.length>1){const I=x.zipcodes.map(H=>H.zipcode).join(",");m=(u||x.zipcodes[0].zipcode)+" "+m+" ["+I+"]"}return m}static#e=this.\u0275fac=function(u){return new(u||c)(t.LFG(i.nq),t.LFG(l.qB))};static#t=this.\u0275prov=t.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})()},69514:(gt,X,a)=>{"use strict";a.d(X,{M:()=>s});var e=a(22819),n=a(19212);let s=(()=>{class l{constructor(t){this.dataAccessService=t}getAutocompleteHolders(t,p,c){return this.dataAccessService.getRegionAutocomplete(t,p,c)}static#e=this.\u0275fac=function(p){return new(p||l)(n.LFG(e.nq))};static#t=this.\u0275prov=n.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},31252:(gt,X,a)=>{"use strict";a.d(X,{W:()=>p,v:()=>c});var e=a(49193),n=a(96124),s=a(75222),l=a(21473),i=a(22819),t=a(19212);const p="current_and_subclients";let c=(()=>{class o{constructor(u,m,b){this.imxPlatformDataAccessService=u,this.imxEntitiesMgrService=m,this.runtimeContextService=b}getAutocompleteHolders(u,m,b){return void 0!==m?this.imxEntitiesMgrService.getEntityWithIdOfType("User",Number.parseInt(m,10)).pipe((0,n.U)(I=>[{entityId:I.id,entityType:"User",representation:I.loginname}])):u?b&&b.clientIds===p?this.runtimeContextService.getCurrentAndSubClients().pipe((0,s.w)(I=>{const H=Array.from(I).map(O=>O.id);return this.imxPlatformDataAccessService.getUserAutocomplete(u,{clientIds:H.join(",")})})):this.imxPlatformDataAccessService.getUserAutocomplete(u,b):(0,e.of)()}static#e=this.\u0275fac=function(m){return new(m||o)(t.LFG(i.nq),t.LFG(l.qB),t.LFG(l.Ze))};static#t=this.\u0275prov=t.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})()},4713:(gt,X,a)=>{"use strict";a.d(X,{j:()=>s,v:()=>n});var e=a(19212);const n=new e.OlP("imxplatform.baseEntity.permission.service");let s=(()=>{class l{constructor(t){this.permissionServices=t}getPermissionServiceByType(t){return this.permissionServices.find(c=>c.baseEntityName===t)||this.permissionServices.find(c=>"all"===c.baseEntityName)}static#e=this.\u0275fac=function(p){return new(p||l)(e.LFG(n))};static#t=this.\u0275prov=e.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},5606:(gt,X,a)=>{"use strict";a.d(X,{v:()=>c,x:()=>p});var e=a(27556),n=a(21473),s=a(22819),l=a(49193),i=a(51418),t=a(19212);class p{}let c=(()=>{class o extends p{constructor(u,m){super(),this.platformDataAccessService=u,this.securityManagerService=m,this.logger=(0,n.jl)("DefaultBaseEntityPermissionService",e.H.name),this.baseEntitiesMap=new Map,this.baseEntityName="all",this.platformDataAccessService.getBaseEntities().pipe((0,i.q)(1)).subscribe(b=>{b.forEach(I=>{this.baseEntitiesMap.set(I.dataObjectName,I)})})}hasCreatePermission(u){return this.userHasBaseEntityPermissions(u,"c","createPermission")}hasBatchDeletePermission(u){return"Productline"!==u&&this.userHasBaseEntityPermissions(u,"d","deletePermission")}hasEditPermission(u,m){return(0,l.of)(this.userHasBaseEntityPermissions(u,"u","updatePermission"))}hasDeletePermission(u,m){return(0,l.of)(this.userHasBaseEntityPermissions(u,"d","deletePermission"))}hasActionPermission(u,m,b){return(0,l.of)(!0)}userHasBaseEntityPermissions(u,m,b){let I=!1;const H=this.baseEntitiesMap.get(u);if(H){const O=H[b];let P;O&&(P=O.name),I=this.securityManagerService.hasBaseEntityPermission(u,m,P)}else this.logger.error("no baseEntityDefinition found for "+u);return I}static#e=this.\u0275fac=function(m){return new(m||o)(t.LFG(s.nq),t.LFG(n.Xh))};static#t=this.\u0275prov=t.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})()},10791:(gt,X,a)=>{"use strict";a.d(X,{W:()=>n});const n=new(a(19212).OlP)("imxplatform.content-score.service")},5015:(gt,X,a)=>{"use strict";a.d(X,{v:()=>e});class e{constructor(){this.CONTENT_SCORE_ICONS_PREFIX="icon-contentScore_",this.CONTENT_SCORE_ICON_GOOD="good",this.CONTENT_SCORE_ICON_ACCEPTABLE="acceptable",this.CONTENT_SCORE_ICON_INSUFFICIENT="insufficient"}calcContentScoreIcon(s){const l=s.contentScore;if(null==l)return null;switch(!0){case l<33:return this.CONTENT_SCORE_ICONS_PREFIX+this.CONTENT_SCORE_ICON_INSUFFICIENT;case 33<=l&&l<=66:return this.CONTENT_SCORE_ICONS_PREFIX+this.CONTENT_SCORE_ICON_ACCEPTABLE;case 66<l:return this.CONTENT_SCORE_ICONS_PREFIX+this.CONTENT_SCORE_ICON_GOOD;default:return null}}}},4116:(gt,X,a)=>{"use strict";a.d(X,{E:()=>l});var e=a(19212),n=a(22941);let l=(()=>{class i{constructor(){this.router=(0,e.f3M)(n.F0),this.contextNavigations=[],this.currentNavigationEnd=null,this.rememberedNavigationUrl=null}addContextNavigation(p){if(this.contextNavigations.length>0){const c=this.contextNavigations[0];if(c.url===p.url&&c.cameFromUrl===p.cameFromUrl||p.url==p.cameFromUrl)return}this.contextNavigations.splice(0,0,p)}getContextNavigationForRoute(p){const c=this.contextNavigations.findIndex(o=>o.url===p);if(c>-1){const o=this.contextNavigations[c];return this.contextNavigations.splice(c,1),o}return null}clearContextNavs(){this.contextNavigations=[],this.rememberedNavigationUrl=null}setCurrentNavigationEnd(p){this.currentNavigationEnd=p}getCurrentNavigationEnd(){return this.currentNavigationEnd}skipLastContextNavigation(){this.contextNavigations.length>0?(this.rememberedNavigationUrl=this.contextNavigations[0].cameFromUrl,this.contextNavigations.splice(0,1)):this.rememberCurrentNavigation()}rememberCurrentNavigation(){this.rememberedNavigationUrl=this.getCurrentNavigationEnd().url}rememberNavigateBack(){this.rememberedNavigationUrl="back"}getLastSuccessfulNavigation(){const p=this.rememberedNavigationUrl;return this.rememberedNavigationUrl=null,p}navigateToCoreEntityContextual(p,c){this.rememberCurrentNavigation(),c?this.router.navigate(p,{queryParams:c}):this.router.navigate(p)}navigateBackToUrl(p){this.rememberNavigateBack();const c=new URL(p,"https://imxplatform.de"),o={};c.searchParams.forEach((x,u)=>{o[u]=x}),this.router.navigate([c.pathname],c.hash&&c.hash.length>0?{queryParams:o,fragment:c.hash.replace("#","")}:{queryParams:o})}static#e=this.\u0275fac=function(c){return new(c||i)};static#t=this.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})()},64022:(gt,X,a)=>{"use strict";a.d(X,{B7:()=>s,GU:()=>i,Ks:()=>t,N_:()=>p,P_:()=>l,dE:()=>x,t8:()=>o,vp:()=>c});var e=a(21473),n=a(19212);const s="AddressPoi",l="Addressbase",i="Offer",t="Event",p="Article",c="Announcement";let o=(()=>{class u{static#e=this.ADDRESSPOI_ENTITY={type:s,singleLabel:"entity.AddressPoi.entityName",pluralLabel:"entity.AddressPoi.plural",navigationPermission:"object_management:searchAddressPoi",mediaAssignmentPossible:!1,listRoute:"addresspois",detailRoute:"addresspois/edit",apiPrefix:"addresspoi",idSearchParam:"addressPoiIds",responsePrefix:"addresspois",hasAppearances:!1};static#t=this.ADDRESSBASE_ENTITY={type:l,singleLabel:"entity.Addressbase.entityName",pluralLabel:"entity.Addressbase.plural",navigationPermission:"object_management:searchAddressbase",mediaAssignmentPossible:!0,listRoute:"addressbases",detailRoute:"addressbases/edit",apiPrefix:"addressbase",idSearchParam:"addressbaseIds",responsePrefix:"compactAddressbases",hasAppearances:!0};static#n=this.OFFER_ENTITY={type:i,singleLabel:"entity.Offer.entityName",pluralLabel:"entity.Offer.plural",navigationPermission:"object_management:searchOffer",mediaAssignmentPossible:!0,listRoute:"offers",detailRoute:"offers/edit",apiPrefix:"offer",idSearchParam:"offerIds",responsePrefix:"compactOffers",hasAppearances:!0};static#i=this.EVENT_ENTITY={type:t,singleLabel:"entity.Event.entityName",pluralLabel:"entity.Event.plural",navigationPermission:"object_management:searchEvent",mediaAssignmentPossible:!0,listRoute:"events",detailRoute:"events/edit",apiPrefix:"event",idSearchParam:"eventIds",responsePrefix:"compactEvents",hasAppearances:!0};static#o=this.ARTICLE_ENTITY={type:p,singleLabel:"entity.Article.entityName",pluralLabel:"entity.Article.plural",navigationPermission:"object_management:searchArticle",mediaAssignmentPossible:!0,listRoute:"articles",detailRoute:"articles/edit",apiPrefix:"article",idSearchParam:"articleIds",responsePrefix:"compactArticles",hasAppearances:!0};static#r=this.ANNOUNCEMENT_ENTITY={type:c,singleLabel:"entity.Announcement.entityName",pluralLabel:"entity.Announcement.plural",navigationPermission:"object_management:searchAnnouncement",mediaAssignmentPossible:!1,listRoute:"announcements",detailRoute:"announcements/edit",apiPrefix:"announcement",idSearchParam:"announcementIds",responsePrefix:"compactAnnouncements",hasAppearances:!1}}return u})(),x=(()=>{class u{constructor(b){this.securityManagerService=b}getVisibleCoreEntityDefs(){return[o.ADDRESSPOI_ENTITY,o.ADDRESSBASE_ENTITY,o.OFFER_ENTITY,o.EVENT_ENTITY,o.ARTICLE_ENTITY,o.ANNOUNCEMENT_ENTITY].filter(b=>this.securityManagerService.hasNavigationPermission(b.navigationPermission))}getCoreEntityDefsForReferenceLists(){return[o.ADDRESSPOI_ENTITY,o.ADDRESSBASE_ENTITY,o.OFFER_ENTITY,o.EVENT_ENTITY,o.ARTICLE_ENTITY].filter(b=>this.securityManagerService.hasNavigationPermission(b.navigationPermission))}getCoreEntityDefByString(b){return[o.ADDRESSPOI_ENTITY,o.ADDRESSBASE_ENTITY,o.OFFER_ENTITY,o.EVENT_ENTITY,o.ARTICLE_ENTITY,o.ANNOUNCEMENT_ENTITY].find(I=>I.type===b)}getVisibleCoreEntityDefsWithMediaAvailability(){return this.getVisibleCoreEntityDefs().filter(b=>b.mediaAssignmentPossible)}getCoreEntityDefsWithExtendedAttributes(){return[o.ADDRESSBASE_ENTITY,o.OFFER_ENTITY,o.EVENT_ENTITY,o.ARTICLE_ENTITY]}static#e=this.\u0275fac=function(I){return new(I||u)(n.LFG(e.Xh))};static#t=this.\u0275prov=n.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})()},66684:(gt,X,a)=>{"use strict";a.d(X,{v:()=>s});var e=a(21473),n=a(19212);let s=(()=>{class l extends e.aP{constructor(t){super(t,"Client")}static#e=this.\u0275fac=function(p){return new(p||l)(n.LFG(e.fx))};static#t=this.\u0275prov=n.Yz7({token:l,factory:l.\u0275fac})}return l})()},68738:(gt,X,a)=>{"use strict";a.d(X,{G:()=>s});var e=a(21473),n=a(19212);let s=(()=>{class l extends e.aP{constructor(t){super(t,"ClientInformation")}insert(t){return this.insertInternal(t,!0)}static#e=this.\u0275fac=function(p){return new(p||l)(n.LFG(e.fx))};static#t=this.\u0275prov=n.Yz7({token:l,factory:l.\u0275fac})}return l})()},38842:(gt,X,a)=>{"use strict";a.d(X,{U:()=>s});var e=a(21473),n=a(19212);let s=(()=>{class l extends e.aP{constructor(t){super(t,"ContactPurpose")}insert(t){return this.insertInternal(t,!0)}static#e=this.\u0275fac=function(p){return new(p||l)(n.LFG(e.fx))};static#t=this.\u0275prov=n.Yz7({token:l,factory:l.\u0275fac})}return l})()},48123:(gt,X,a)=>{"use strict";a.d(X,{x:()=>s});var e=a(21473),n=a(19212);let s=(()=>{class l extends e.aP{constructor(t){super(t,"DeliveryChannel")}static#e=this.\u0275fac=function(p){return new(p||l)(n.LFG(e.fx))};static#t=this.\u0275prov=n.Yz7({token:l,factory:l.\u0275fac})}return l})()},93281:(gt,X,a)=>{"use strict";a.d(X,{o:()=>t});var e=a(96124),n=a(94973),s=a(82851),l=a(21473),i=a(19212);let t=(()=>{class p extends l.aP{constructor(o){super(o,"EntityState")}find(o,x){const u=Object.assign(o||{},this.buildRequestOptionParams(x));return this.dataAccess.get("entitystate",{params:u}).pipe((0,e.U)(m=>this.convertToDataObjectPaginatedResult(m)),(0,n.C)(),(0,s.x)())}findById(o){return this.find().pipe((0,e.U)(x=>x.items),(0,e.U)(x=>x.find(u=>u.id===o)))}findAvailablesByEntityType(o,x){return this.dataAccess.get("entitystate/"+o,{params:x?{context:x}:{}}).pipe((0,e.U)(m=>this.convertToEntityState(m)),(0,n.C)(),(0,s.x)())}findAvailablesByEntity(o,x,u){const m=Object.assign({entityId:x},u?{context:u}:{});return this.dataAccess.get("entitystate/"+o,{params:m}).pipe((0,e.U)(b=>this.convertToEntityState(b)),(0,n.C)(),(0,s.x)())}findAvailablesByEntityState(o,x,u){return this.dataAccess.get("entitystate/"+o+"/"+x,{params:u?{context:u}:{}}).pipe((0,e.U)(b=>this.convertToDataObjects(b)),(0,n.C)(),(0,s.x)())}convertToDataObjectPaginatedResult(o){const x=this.convertToDataObjects(o);return new l.BY(x,o.totalElements,o.number,o.size)}convertToDataObjects(o){const x=o[Object.keys(o)[0]];for(const u of x)u.id=u.key;return x}convertToEntityState(o){for(const x of o)x.id=x.key;return o}static#e=this.\u0275fac=function(x){return new(x||p)(i.LFG(l.fx))};static#t=this.\u0275prov=i.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},20714:(gt,X,a)=>{"use strict";a.d(X,{s:()=>s});var e=a(21473),n=a(19212);let s=(()=>{class l extends e.aP{constructor(t){super(t,"Language")}static#e=this.\u0275fac=function(p){return new(p||l)(n.LFG(e.fx))};static#t=this.\u0275prov=n.Yz7({token:l,factory:l.\u0275fac})}return l})()},47918:(gt,X,a)=>{"use strict";a.d(X,{c:()=>s});var e=a(21473),n=a(19212);let s=(()=>{class l extends e.aP{constructor(t){super(t,"Location")}static#e=this.\u0275fac=function(p){return new(p||l)(n.LFG(e.fx))};static#t=this.\u0275prov=n.Yz7({token:l,factory:l.\u0275fac})}return l})()},48336:(gt,X,a)=>{"use strict";a.d(X,{v:()=>s});var e=a(21473),n=a(19212);let s=(()=>{class l extends e.aP{constructor(t){super(t,"Region")}static#e=this.\u0275fac=function(p){return new(p||l)(n.LFG(e.fx))};static#t=this.\u0275prov=n.Yz7({token:l,factory:l.\u0275fac})}return l})()},40271:(gt,X,a)=>{"use strict";a.d(X,{y:()=>s});var e=a(21473),n=a(19212);let s=(()=>{class l extends e.aP{constructor(t){super(t,"SocialMediaProvider")}static#e=this.\u0275fac=function(p){return new(p||l)(n.LFG(e.fx))};static#t=this.\u0275prov=n.Yz7({token:l,factory:l.\u0275fac})}return l})()},7078:(gt,X,a)=>{"use strict";a.d(X,{k:()=>s});var e=a(21473),n=a(19212);let s=(()=>{class l extends e.aP{constructor(t){super(t,"User")}static#e=this.\u0275fac=function(p){return new(p||l)(n.LFG(e.fx))};static#t=this.\u0275prov=n.Yz7({token:l,factory:l.\u0275fac})}return l})()},15604:(gt,X,a)=>{"use strict";a.d(X,{f:()=>t});var e=a(23291),n=a(49193),s=a(96124),l=a(21473),i=a(19212);let t=(()=>{class p{constructor(o,x,u){this.entitiesMgrService=o,this.runtimeContextService=x,this.securityManagerService=u}getAllDeliveryChannels(){return this.entitiesMgrService.getAllEntitiesOfType("DeliveryChannel").pipe((0,s.U)(o=>o.items))}getOwnDeliveryChannels(){const o=this.runtimeContextService.getCurrentAndSubClients().pipe((0,s.U)(u=>Array.from(u)),(0,s.U)(u=>u.map(m=>m.id))),x=this.entitiesMgrService.getAllEntitiesOfType("DeliveryChannel").pipe((0,s.U)(u=>u.items));return(0,e.aj)([x,o]).pipe((0,s.U)(([u,m])=>u.filter(b=>m.some(I=>null!=b.ownerClient&&b.ownerClient.id===I||null!=b.grantedClients&&b.grantedClients.some(H=>H.id===I)))))}getAllContactPurposes(){return this.entitiesMgrService.getAllEntitiesOfType("ContactPurpose").pipe((0,s.U)(o=>o.items.filter(x=>1e3!==x.id&&1001!==x.id)))}getAllVariantDeviationContactPurposes(){return this.entitiesMgrService.getAllEntitiesOfType("ContactPurpose").pipe((0,s.U)(o=>o.items.filter(x=>1e3===x.id||1001===x.id)))}getAllImageTypes(){return this.entitiesMgrService.getAllEntitiesOfType("ImageType").pipe((0,s.U)(o=>o.items))}getAllLocations(){return this.entitiesMgrService.getAllEntitiesOfType("Location").pipe((0,s.U)(o=>o.items))}getAllSocialMediaProviders(){return this.entitiesMgrService.getAllEntitiesOfType("SocialMediaProvider").pipe((0,s.U)(o=>o.items))}getAllAddressPoiTypes(){return this.entitiesMgrService.getAllEntitiesOfType("AddressPoiType").pipe((0,s.U)(o=>o.items))}getAllSensorFusionStrategies(){return this.entitiesMgrService.getAllEntitiesOfType("SensorFusionStrategy").pipe((0,s.U)(o=>o.items))}getAllAddressbaseAttributes(){return this.entitiesMgrService.getAllEntitiesOfType("AddressbaseAttribute").pipe((0,s.U)(o=>o.items))}getAllEntityStates(){return this.entitiesMgrService.getAllEntitiesOfType("EntityState").pipe((0,s.U)(o=>o.items))}getAllInputFieldTypes(){return this.entitiesMgrService.getAllEntitiesOfType("InputFieldType").pipe((0,s.U)(o=>o.items))}getAllMediaLicenses(){return this.entitiesMgrService.getAllEntitiesOfType("MediaLicense").pipe((0,s.U)(o=>o.items))}getAllMediaTypes(){return this.entitiesMgrService.getAllEntitiesOfType("MediaType").pipe((0,s.U)(o=>o.items))}getAllMediaContent(){return this.entitiesMgrService.getAllEntitiesOfType("MediaContent").pipe((0,s.U)(o=>o.items))}getAllMediaProviders(){return this.entitiesMgrService.getAllEntitiesOfType("MediaProvider").pipe((0,s.U)(o=>o.items))}getAllPooledMediumCategories(){return this.entitiesMgrService.getAllEntitiesOfType("PooledMediumCategory").pipe((0,s.U)(o=>o.items))}getAllPriceUnits(){return this.entitiesMgrService.getAllEntitiesOfType("PriceUnit").pipe((0,s.U)(o=>o.items))}getAllAnnouncementTypes(){return this.entitiesMgrService.getAllEntitiesOfType("AnnouncementType").pipe((0,s.U)(o=>o.items))}getAllOccupancySensors(){return this.entitiesMgrService.getAllEntitiesOfType("OccupancySensor").pipe((0,s.U)(o=>o.items))}getAllUserRoles(){return this.entitiesMgrService.getAllEntitiesOfType("UserRole").pipe((0,s.U)(o=>o.items),(0,s.U)(o=>o.filter(x=>{if(this.securityManagerService.hasPermission(l.uo.F_USER_MANAGEMENT_ROLE_ALL))return!0;{const u=this.securityManagerService.getActionsStringForActionPermission(l.uo.ACTION_PERM_NAME_USER_MANAGMENT_ASSIGN_ROLES);return!!((u&&""!==u?u.split(","):[]).indexOf(x.id.toString())>-1||this.securityManagerService.hasAllPermissions(l.Xh.extractStaticPermissions(x)))}})))}getAllUserRolesWithoutPermissionCheck(){return this.entitiesMgrService.getAllEntitiesOfType("UserRole").pipe((0,s.U)(o=>o.items),(0,s.U)(o=>o))}getSelectableClientsForAddressPoi(){return this.securityManagerService.hasAnyPermission([l.uo.F_ADDRESSPOI_CONTACT_READ_ALL,l.uo.F_ADDRESSPOI_CONTRIBUTOR_READ_ALL,l.uo.F_ADDRESSPOI_LOCATION_READ_ALL])?this.entitiesMgrService.getAllEntitiesOfType("Client").pipe((0,s.U)(o=>o.items)):this.securityManagerService.hasAnyPermission([l.uo.F_ADDRESSPOI_CONTACT_READ_OWN_CLIENT,l.uo.F_ADDRESSPOI_CONTRIBUTOR_READ_OWN_CLIENT,l.uo.F_ADDRESSPOI_LOCATION_READ_OWN_CLIENT])?this.runtimeContextService.getCurrentAndSubClients().pipe((0,s.U)(o=>Array.from(o))):this.securityManagerService.hasAnyPermission([l.uo.F_ADDRESSPOI_CONTACT_READ_OWN_USER,l.uo.F_ADDRESSPOI_CONTRIBUTOR_READ_OWN_USER,l.uo.F_ADDRESSPOI_LOCATION_READ_OWN_USER])?this.runtimeContextService.getCurrentClient().pipe((0,s.U)(o=>[o])):(0,n.of)([])}getAllProductlines(){return this.entitiesMgrService.getAllEntitiesOfType("Productline").pipe((0,s.U)(o=>o.items))}getAllProductlinesWithPortalContext(){return this.entitiesMgrService.getAllEntitiesOfType("Productline").pipe((0,s.U)(o=>o.items.filter(x=>x.asPortalContext)))}getAllAlpsteinCategories(){return this.entitiesMgrService.getAllEntitiesOfType("AlpsteinCategory").pipe((0,s.U)(o=>o.items))}getAllReliablityClassifications(o){return this.entitiesMgrService.getAllEntitiesOfType("ReliabilityEntityClassification").pipe((0,s.U)(x=>x.items),(0,s.U)(x=>x.filter(u=>u.usageForEntityType===o)))}getAllIntegrityClassifications(o){return this.entitiesMgrService.getAllEntitiesOfType("IntegrityEntityClassification").pipe((0,s.U)(x=>x.items),(0,s.U)(x=>x.filter(u=>u.usageForEntityType===o)))}getAllPrioLevels(){return this.entitiesMgrService.getAllEntitiesOfType("PrioLevel").pipe((0,s.U)(o=>o.items))}static#e=this.\u0275fac=function(x){return new(x||p)(i.LFG(l.qB),i.LFG(l.Ze),i.LFG(l.Xh))};static#t=this.\u0275prov=i.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},88792:(gt,X,a)=>{"use strict";a.d(X,{P:()=>e});class e{static#e=this.ADDRESSPOI=new e("AddressPoi","map-marker","addresspois/edit","addresspois");static#t=this.ADDRESSBASE=new e("Addressbase","stem","addressbases/edit","addressbases");static#n=this.OFFER=new e("Offer","tag","offers/edit","offers");static#i=this.EVENT=new e("Event","calendar-full","events/edit","events");static#o=this.MEDIUM=new e("StandardPooledMedium","picture");static#r=this.POOLED_MEDIUM=new e("PooledMedium","picture");static#a=this.ARTICLE=new e("Article","entityType-Article","articles/edit","articles");static#s=this.ANNOUNCEMENT=new e("Announcement","entityType-Announcement","announcements/edit","announcements");static#l=this.ADDRESSPOI_DUPLICATES=new e("AddressbaseDuplCandidatesGroup","duplicate_poi");static#c=this.ADDRESSBASE_DUPLICATES=new e("AddressbaseDuplCandidatesGroup","duplicate_stem");static#d=this.EVENT_DUPLICATES=new e("EventDuplCandidatesGroup","duplicate_event");static#m=this.UNIVERSAL_SEARCH_ITEM=new e("UniversalSearchItem","magnifier");static#u=this.allTypes=[e.ADDRESSPOI,e.ADDRESSBASE,e.OFFER,e.EVENT,e.MEDIUM,e.POOLED_MEDIUM,e.ARTICLE,e.ANNOUNCEMENT,e.ADDRESSPOI_DUPLICATES,e.ADDRESSBASE_DUPLICATES,e.EVENT_DUPLICATES,e.UNIVERSAL_SEARCH_ITEM];constructor(s,l,i,t){this.entityType=s,this.icon=l,this.detailRoute=i,this.listRoute=t}static valueOf(s){return e.allTypes.find(l=>l.entityType===s)}static add(s){e.allTypes.some(l=>l===s)||e.allTypes.push(s)}}},27020:(gt,X,a)=>{"use strict";a.d(X,{e:()=>o});var e=a(16222),n=a(62413),s=a(96124),l=a(94973),i=a(82851),t=a(21473),p=a(27556),c=a(83416);class o{constructor(u,m){this.dataAccess=u,this.translateService=m,this.baseLogger=(0,t.jl)("ImxBaseDataAccessService",p.H.name)}static spreadIds(u){return u?u.split(",").map(m=>m.trim()):null}static retrieveLanguage(u,m){return u.language&&u.language!==c.lT.name?u.language:m||void 0}static retrieveFulltextFilter(u){return u.fulltext?u.fulltextSearchOption==c.wK.EXACTSEARCH?[u.fulltext]:u.fulltext.split(" "):null}static retrieveProductlineIds(u,m,b){if(u.productlineIds&&(!u.productlineSearchOption&&b||u.productlineSearchOption&&u.productlineSearchOption===m))return u.productlineIds}static retrieveFulltextRestrictions(u){const m=[];return(void 0===u.restrictTitle||"true"===u.restrictTitle)&&m.push("title"),u.restrictShortDesc&&"true"===u.restrictShortDesc&&m.push("shortDescription"),u.restrictLongDesc&&"true"===u.restrictLongDesc&&m.push("longDescription"),u.restrictCity&&"true"===u.restrictCity&&m.push("city"),u.restrictStreet&&"true"===u.restrictStreet&&m.push("street"),u.restrictDescription&&"true"===u.restrictDescription&&m.push("description"),u.restrictSubTitle&&"true"===u.restrictSubTitle&&m.push("subTitle"),u.restrictContactName&&"true"===u.restrictContactName&&m.push("contact_name"),u.restrictLastName&&"true"===u.restrictLastName&&m.push("lastName"),u.restrictSearchKeywords&&"true"===u.restrictSearchKeywords&&m.push("searchKeywords"),u.restrictCopyright&&"true"===u.restrictCopyright&&m.push("copyright"),m}static retrieveGeoSearchDistance(u){if(!((u.zipCode?u.zipCode.split(",").map(b=>b.trim()):[]).length>1))return u.searchDistance?u.searchDistance:void 0}static retrieveZipcodes(u){const m=u.zipCode?u.zipCode.split(",").map(b=>b.trim()):[];if(m.length>1||!u.searchDistance||0===Number.parseFloat(u.searchDistance))return m}static retrieveGeoSearchZipcode(u){const m=u.searchDistance?u.searchDistance:void 0,b=u.zipCode?u.zipCode.split(",").map(I=>I.trim()):[];if(m&&Number.parseFloat(m)>0&&1===b.length)return b[0]}genericGetById(u,m,b,I){return this.dataAccess.get(`${m}/${u}`).pipe((0,n.K)(H=>(this.baseLogger.debug("genericGetById failed: "+H.message),(0,e._)(H))),(0,s.U)(H=>H[b]),(0,s.U)(I||(H=>H)),(0,l.C)(),(0,i.x)())}genericAdd(u,m,b,I,H){const O=Object.assign({},u),P={};return P[b]=O,this.dataAccess.post(`${m}`,P,H).pipe((0,n.K)(G=>(this.baseLogger.debug("genericAdd failed: "+G.message),(0,e._)(G.error?G.error:G))),(0,s.U)(G=>G[b]),(0,s.U)(I||(G=>G)),(0,l.C)(),(0,i.x)())}genericUpdate(u,m,b,I,H){const O={};return O[b]=u,this.dataAccess.put(`${m}/${u.id}`,O,H).pipe((0,n.K)(P=>(this.baseLogger.debug("genericUpdate failed: "+P.message),(0,e._)(P.error?P.error:P))),(0,s.U)(P=>P[b]),(0,s.U)(I||(P=>P)),(0,l.C)(),(0,i.x)())}genericDelete(u,m){return this.dataAccess.delete(`${m}/${u}`).pipe((0,n.K)(b=>(this.baseLogger.debug("genericDelete failed: "+b.message),(0,e._)(b.error?b.error:b))),(0,s.U)(()=>!0),(0,l.C)(),(0,i.x)())}genericGetCoreEntityAutocomplete(u,m,b,I){const H={lang:this.translateService.currentLang,...I};return b?H.id=b:H.name=m,this.dataAccess.get(u+"/autocomplete",{params:H}).pipe((0,s.U)(O=>O.autocomplete),(0,l.C)(),(0,i.x)())}genericGetCoreEntityFiltered(u,m,b,I){const H={searchText:m,resultSize:b.toString(),lang:this.translateService.currentLang,...I};return this.dataAccess.get(u+"/autocompleteFiltered",{params:H}).pipe((0,s.U)(O=>O.autocomplete),(0,l.C)(),(0,i.x)())}filterEmptyCriteria(u){for(const m in u)(null==u[m]||""===u[m]||Array.isArray(u[m])&&0===u[m].length)&&delete u[m]}buildExtendedQueryCriteria(u,m){let b={};return m.forEach(I=>{b=Object.assign(b,I.mapperFn(u))}),b}buildRequestOptionParams(u,m){return u?Object.assign(this.buildPagingParams(u.paging),this.buildSortParams(u.sortFields,m)):{}}buildPagingParams(u){if("number"==typeof u)return 0===u?{page:1}:{page:u};if(u===t.KF)return{page:1,size:1e8};if((0,t.So)(u)){const m={page:u.pageIdx};return u.pageSize&&(m.size=u.pageSize),m}return{}}buildSortParams(u,m){if(u&&m){let b="";u.forEach(H=>{(0,t.rg)(H)?b+=H.field+"-"+H.direction+",":b+=H});const I={};return I[m]=b,I}return{}}suggestPermaLink(u,m,b){return this.dataAccess.get(u+"/uniquePermalink",{params:{lang:m,name:b}}).pipe((0,l.C)(),(0,i.x)())}combineComparatorParam(u,m){let b=u;return u&&m&&m.length>0&&(b+=","+m),b}convertComparator(u){return u?u.replace(/equal/g,"="):""}}},39693:(gt,X,a)=>{"use strict";a.d(X,{$:()=>b});var e=a(79309),n=a(72079),s=a(49185),l=a(17927),i=a(51418),t=a(96124),p=a(21473),c=a(30258),o=a(22819),x=a(88792),u=a(19212),m=a(1614);let b=(()=>{class I{constructor(O,P,G,B){this.platformDataAccessService=O,this.formatterService=P,this.readI18nPipe=G,this.entityBrowseHistoryStorageService=B,this.entityLists$$=new n.xQ,this.entityLists$=this.entityLists$$.asObservable().pipe((0,s.d)(1)),this.objectHistoryViewItems$$=new n.xQ,this.objectHistoryViewItems$=this.objectHistoryViewItems$$.asObservable().pipe((0,s.d)(1))}searchLists$(){return this._entityListsOfType(e.E6.SEARCH_LIST).pipe((0,l.b)(O=>O.sort((P,G)=>P.entity.name.toLowerCase().localeCompare(G.entity.name.toLowerCase()))))}objectLists$(){return this._entityListsOfType(e.E6.OBJECT_LIST).pipe((0,l.b)(O=>O.sort((P,G)=>P.entity.name.toLowerCase().localeCompare(G.entity.name.toLowerCase()))))}searchHistory$(){return this._entityListsOfType(e.E6.SEARCH_HISTORY).pipe((0,l.b)(O=>O.sort((P,G)=>P.entity.id<G.entity.id?1:-1)))}contactLists$(){return this._entityListsOfType(e.E6.CONTACT_LIST).pipe((0,l.b)(O=>O.sort((P,G)=>P.entity.name.toLowerCase().localeCompare(G.entity.name.toLowerCase()))))}objectHistory$(){return this.objectHistoryViewItems$}forceReload(){this._fetchEntityLists(),this._fetchObjectHistory()}_fetchEntityLists(){this.platformDataAccessService.getEntityLists({paging:"ONE_PAGE"}).pipe((0,i.q)(1)).subscribe(O=>this.entityLists$$.next(O))}_fetchObjectHistory(){this.platformDataAccessService.getObjectHistoryList$().pipe((0,i.q)(1)).subscribe(O=>{const{items:P}=O,G=this.entityBrowseHistoryStorageService.findAll().sort((q,j)=>j.lastModified.toString().localeCompare(q.lastModified.toString())).map(q=>({label:this.readI18nPipe.transform(q.record.title),timestamp:this.formatterService.formatDateDiffFromNow(q.lastModified),link:this._buildEntityDetailPageRoute(q.entityType,q.record.id||0),icon:this._buildEntityIcon(q.entityType),entity:{id:q.record.id,timestamp:this.formatterService.formatDateDiffFromNow(q.lastModified),dataObject:{id:q.record.id,_entityType:q.entityType,title:q.record.title,lastChangeTime:this.formatterService.formatDateDiffFromNow(q.lastModified)}},modified:!0})),B=P.map(q=>this._buildObjectHistoryViewItem(q)).filter(q=>null!==q),J=G.length>10?0:10-G.length;J>0&&(J<B.length&&(B.length=J),G.push(...B)),this.objectHistoryViewItems$$.next(G)})}upsertEntityLists(O){this.entityLists$.pipe((0,i.q)(1)).subscribe(P=>{const{items:G}=P,B=G.findIndex(ae=>ae.id===O.id);-1!==B?G[B]=O:G.push(O),this.entityLists$$.next(P)})}removeFromEntityLists(O){this.entityLists$.pipe((0,i.q)(1)).subscribe(P=>{const{items:G}=P,B=G.findIndex(ae=>ae.id===O.id);-1!==B&&G.splice(B,1),this.entityLists$$.next(P)})}_entityListsOfType(O){return this.entityLists$.pipe(P=>this._filterEntityListsByType(P,O),P=>this._addIcons(P),P=>this._buildViewItems(P))}_filterEntityListsByType(O,P){return O.pipe((0,t.U)(G=>(G.items||[]).filter(ae=>ae.listType.id===P.id)))}_addIcons(O){return O.pipe((0,t.U)(P=>P.map(G=>Object.assign(G,{icon:this._buildEntityIcon(G.entityType)}))))}_buildViewItems(O){return O.pipe((0,t.U)(P=>P.map(G=>this._buildViewItem(G))))}_buildViewItem(O){const P=(0,p.HD)(O.listInfo)?O.listInfo:"";return{label:O.name,link:this._extractUrlPath(P),queryParams:this._extractQueryParams(P),icon:this._buildEntityIcon(O.entityType),entity:O}}_buildObjectHistoryViewItem(O){const{dataObject:P,timestamp:G}=O,{_entityType:B}=P,ae=null!==this.entityBrowseHistoryStorageService.get(B,P.id||0);return ae?null:{label:this.readI18nPipe.transform(P.title),timestamp:this.formatterService.formatDateDiffFromNow(G),link:this._buildEntityDetailPageRoute(B,P.id||0),icon:this._buildEntityIcon(B),entity:O,modified:ae}}_extractUrlPath(O){return(0,p.C8)(O)}_extractQueryParams(O){return(0,p.Mg)(O)}_buildEntityIcon(O){const P=x.P.valueOf(O);return P?P.icon:"asterisk"}_buildEntityDetailPageRoute(O,P){const G=x.P.valueOf(O);return G&&G.detailRoute?[G.detailRoute+"/"+P.toString(10)]:(console.warn("no HistoryEntityType or route found for "+O),[])}static#e=this.\u0275fac=function(P){return new(P||I)(u.LFG(o.nq),u.LFG(p.H1),u.LFG(m.j),u.LFG(c.I))};static#t=this.\u0275prov=u.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})()},22819:(gt,X,a)=>{"use strict";a.d(X,{hs:()=>ae,nq:()=>J,t0:()=>q});var e=a(69862),n=a(19212),s=a(21473),l=a(79309),i=a(3579),t=a(49193),p=a(16222),c=a(91226),o=a(96124),x=a(62413),u=a(94973),m=a(82851),b=a(17927),I=a(27556),H=a(76343),O=a(64022),P=a(27020),G=a(83416),B=a(71365);const ae=new n.OlP("imxplatform.extended.filter.criteria");let J=(()=>{class K extends P.e{constructor(ee,$,ue,ge){super(ee,$),this.dataAccess=ee,this.translateService=$,this.extendedArticleCriteriaDefs=ue,this.store=ge,this.logger=(0,s.jl)("ImxPlatformDataAccessService",I.H.name),this.logger.info("Creating ImxPlatformDataAccessService")}getCoreDataObjectById(ee,$){return this.genericGetById(ee,$.apiPrefix,$.type)}getCoreDataObjectsCompactById(ee,$){if($===O.t8.ADDRESSPOI_ENTITY)return this.getAddressPois({id:ee.join(",")}).pipe((0,o.U)(ue=>ue.items));{const ue={};return ue[$.idSearchParam]=ee.join(","),this.dataAccess.get(`${$.apiPrefix}/compact`,{params:ue}).pipe((0,x.K)(ge=>(this.logger.debug("get compact failed",ge),(0,t.of)({[$.responsePrefix]:[],totalElements:0,number:0,size:0}))),(0,o.U)(ge=>ge[$.responsePrefix]),(0,u.C)(),(0,m.x)())}}updateCoreDataObject(ee,$){return this.genericUpdate($,ee.apiPrefix,ee.type)}openBlobResponse(ee,$,ue,ge){ee.subscribe(Ke=>{const Le=window.URL.createObjectURL(Ke.body),R=document.createElement("a");document.body.appendChild(R),R.setAttribute("style","display: none"),R.href=Le,R.download=this.extractFilename($,Ke),R.click(),window.URL.revokeObjectURL(Le),R.remove()},Ke=>{const at=new FileReader;at.onload=Le=>{try{const R=JSON.parse(Le.target.result);ge.showError(R)}catch{ge.showError(ue)}},at.onerror=Le=>{ge.showError(ue)},at.readAsText(Ke.error)})}extractFilename(ee,$){const ue=$.headers.get("Content-Disposition");if(ue){const Ke=ue.match('attachment;[ ]*filename="(.+)"');if(Ke&&Ke.length>0)return Ke[1]}const ge=$.headers.get("Content-Type");return"application/vnd.ms-excel"===ge?ee+".xls":"text/csv"===ge?ee+".csv":"application/zip"===ge?ee+".zip":ee}getGeoCoordinatesForEntity(ee,$){return this.dataAccess.get(`${ee}/${$}/geoCoordinates`).pipe((0,o.U)(ue=>ue.Coordinates),(0,u.C)(),(0,m.x)())}getGeneratedGeoPathEntity(ee,$){return this.dataAccess.get(`${ee}/${$}/generatedGeoPath`).pipe((0,o.U)(ue=>ue.map(ge=>ge.Region)),(0,u.C)(),(0,m.x)())}getCurrentGeoPathEntity(ee,$){return this.dataAccess.get(`${ee}/${$}/currentGeoPath`).pipe((0,o.U)(ue=>ue.map(ge=>ge.Region)),(0,u.C)(),(0,m.x)())}convertPooledMediaClientParamsToRequestParams(ee,$){const ue=this.buildPooledMediaQueryCriteria(ee);return Object.assign(ue||{},this.buildRequestOptionParams($,"mOrderFields"))}buildPooledMediaQueryCriteria(ee){let $={};return ee&&($={mObjectIds:ee.id,mIdent:ee.ident,mModifiedFrom:ee.modifiedFrom,mModifiedTo:ee.modifiedTo,mModifiedUser:ee.modifiedUser,mMediaProviderIds:ee.mediaProvider&&ee.mediaProvider>0?[ee.mediaProvider]:null,mMediaTypeIds:ee.mediaType&&ee.mediaType>0?[ee.mediaType]:null,mMediaLicenseIds:ee.mediaLicense&&ee.mediaLicense>0?[ee.mediaLicense]:null,mCategoryIds:ee.category&&ee.category>0?[ee.category]:null,mFulltext:P.e.retrieveFulltextFilter(ee),mFulltextSearchFields:P.e.retrieveFulltextRestrictions(ee),mFulltextExactMatch:!1,mFolder:ee.path?ee.path:null,mClientIds:ee.clientIds,mCreationUser:ee.creationUser,mOwnerEntityType:ee.ownerEntityType,mOwnerEntityId:ee.ownerEntityType&&ee.ownerEntityId?ee.ownerEntityId:null,ctxtEntityType:ee.ctxtEntityType,ctxtEntityId:ee.ctxtEntityType&&ee.ctxtEntityId?ee.ctxtEntityId:null,mWithMemo:ee.withMemo,mMemoUserId:ee.memoUserId,mMemoFromDate:ee.memoFromDate,mMemoToDate:ee.memoToDate,mWithMemoAttributeId:ee.withMemoAttributeId,mWithoutMemoAttributeId:ee.withoutMemoAttributeId}),this.filterEmptyCriteria($),$}getPooledMedia(ee,$){const ue=this.convertPooledMediaClientParamsToRequestParams(ee,$);return this.dataAccess.get("pooledmedium",{params:ue}).pipe((0,x.K)(ge=>(this.logger.debug("get pooledMedium failed",ge),(0,t.of)({pooledMedia:[],totalElements:0,number:0,size:0}))),(0,o.U)(ge=>new s.BY(ge.pooledMedia,ge.totalElements,ge.number,ge.size)),(0,u.C)(),(0,m.x)())}getPooledMediaByIds(ee,$,ue){return this.dataAccess.get("pooledmedium",{params:{mObjectIds:ee.join(","),mAssignedEntityType:$,mAssignedEntityId:ue+"",pageSize:"100000"}}).pipe((0,x.K)(ge=>(this.logger.debug("get pooledMedium failed",ge),(0,t.of)({pooledMedia:[],totalElements:0,number:0,size:0}))),(0,o.U)(ge=>ge.pooledMedia),(0,u.C)(),(0,m.x)())}getPooledMediaById(ee){return this.genericGetById(ee,"pooledmedium","PooledDataObjectMedium")}getPooledMediaIds(ee,$){const ue=this.convertPooledMediaClientParamsToRequestParams(ee,$);return this.logger.debug("Query options for getPooledMediaIds: "+JSON.stringify(ue)),this.dataAccess.get("pooledmedium/ids",{params:ue}).pipe((0,x.K)(ge=>(this.logger.debug("get pooledmedium/ids failed",ge),(0,t.of)({content:[],totalElements:0,number:0,size:0}))),(0,o.U)(ge=>new s.BY(ge.content,ge.totalElements,ge.number,ge.size)),(0,u.C)(),(0,m.x)())}updatePooledMedia(ee){return this.genericUpdate(ee,"pooledmedium","PooledDataObjectMedium")}createPooledMedia(ee){return this.genericAdd(ee,"pooledmedium","PooledDataObjectMedium")}deletePooledMedia(ee){return this.genericDelete(ee,"pooledmedium")}uploadMedium(ee,$,ue){const ge=new FormData;return ge.append(ee.name,ee,ee.name),$&&"/"!==$&&ge.append("path",$),ue&&Object.keys(ue).forEach(Ke=>ge.append(Ke,ue[Ke])),this.dataAccess.post("medium/upload",ge).pipe((0,o.U)(Ke=>Ke),(0,u.C)(),(0,m.x)())}uploadPooledMedia(ee,$,ue){const ge=new FormData;for(const Ke of ee)ge.append(Ke.name,Ke,Ke.name);return $&&"/"!==$&&ge.append("path",$),ue&&Object.keys(ue).forEach(Ke=>ge.append(Ke,ue[Ke])),this.dataAccess.post("pooledmedium/upload",ge).pipe((0,o.U)(Ke=>Ke),(0,u.C)(),(0,m.x)())}getPooledMediaFolders(){return this.dataAccess.get("pooledmedium/upload/folders").pipe((0,u.C)(),(0,m.x)())}createPooledMediaFolder(ee,$){return this.dataAccess.post("pooledmedium/upload/folder/create",void 0,{params:{baseFolder:ee,subFolder:$}}).pipe((0,u.C)(),(0,m.x)())}deletePooledMediaFolder(ee,$){return this.dataAccess.delete("pooledmedium/upload/folder/delete",{params:{baseFolder:ee,subFolder:$}}).pipe((0,u.C)(),(0,m.x)())}renamePooledMediaFolder(ee,$,ue){return this.dataAccess.put("pooledmedium/upload/folder/rename",void 0,{params:{baseFolder:ee,oldSubFolder:$,newSubFolder:ue}}).pipe((0,u.C)(),(0,m.x)())}processFile(ee,$,ue,ge){const Ke=new FormData;for(const at of ee)Ke.append(at.name,at,at.name);return ue&&Object.keys(ue).forEach(at=>Ke.append(at,ue[at])),this.dataAccess.post("file/process/"+$,Ke,ge?{params:ge}:void 0).pipe((0,o.U)(at=>at),(0,u.C)(),(0,m.x)())}uploadGPXForPrintmaps(ee){const $=new e.WM({"Content-Type":"application/json"});return this.dataAccess.post("file/uploadGPXForPrintmaps",JSON.stringify(ee),{headers:$}).pipe((0,u.C)(),(0,m.x)())}uploadGPXAsPooledMedium(ee,$,ue,ge){const Ke=new e.WM({"Content-Type":"application/json"});return this.dataAccess.post("pooledmedium/uploadGPX",JSON.stringify(ee),{headers:Ke,params:{assignedEntityType:$,assignedEntityId:ue.toString(),identification:ge}}).pipe((0,o.U)(at=>at.PooledDataObjectMedium),(0,u.C)(),(0,m.x)())}getUserInfo(ee){return this.dataAccess.get("user/"+ee+"/").pipe((0,o.U)($=>$.User),(0,u.C)(),(0,m.x)())}getUserProfile(ee){return this.dataAccess.get("user/"+ee+"/profile").pipe((0,o.U)($=>$.UserProfile),(0,u.C)(),(0,m.x)())}getBaseEntities(){return this.dataAccess.get("base-entities").pipe((0,o.U)(ee=>ee),(0,u.C)(),(0,m.x)())}getStatisticDownload(ee,$){const ue=$;return ue.imxStatisticFormat="xls",!0===ee.showPeriodicalEventsOnce&&(ue.statPeriodicalGrouped="true"),!0===ee.addPeriodicalEventsToEnd&&(ue.statPeriodicalOrdered="true"),this.dataAccess.get(`statistic/download/${ee.statistic}`,{params:ue,responseType:"blob",observe:"response"}).pipe((0,u.C)(),(0,m.x)())}getStatistics(ee){return this.dataAccess.get("statistic",{params:{entityType:ee}}).pipe((0,u.C)(),(0,m.x)())}getAsyncStatistics(ee){return this.dataAccess.get("statistic/async",{params:{entityType:ee}}).pipe((0,u.C)(),(0,m.x)())}getAddressPois(ee,$){const ue=this.convertAddressPoiClientParamsToRequestParams(ee,$);return ue.sysLang=this.translateService.currentLang,this.logger.debug("Query options for getAddressPois: "+JSON.stringify(ue)),this.dataAccess.get("addresspoi",{params:ue}).pipe((0,x.K)(ge=>(this.logger.debug("get addresspoi failed",ge),(0,t.of)({addresspois:[],totalElements:0,number:0,size:0}))),(0,o.U)(ge=>new s.BY(ge.addresspois,ge.totalElements,ge.number,ge.size)),(0,u.C)(),(0,m.x)())}getAddressPoiIds(ee,$){const ue=this.convertAddressPoiClientParamsToRequestParams(ee,$);return this.logger.debug("Query options for getAddressPoiIds: "+JSON.stringify(ue)),this.dataAccess.get("addresspoi/ids",{params:ue}).pipe((0,x.K)(ge=>(this.logger.debug("get addresspoi/ids failed",ge),(0,t.of)({content:[],totalElements:0,number:0,size:0}))),(0,o.U)(ge=>new s.BY(ge.content,ge.totalElements,ge.number,ge.size)),(0,u.C)(),(0,m.x)())}getAddressPoiById(ee){return this.genericGetById(ee,"addresspoi","AddressPoi")}addAddressPoi(ee){return this.genericAdd(ee,"addresspoi","AddressPoi")}updateAddressPoi(ee){return this.genericUpdate(ee,"addresspoi","AddressPoi")}createAddressPoi(ee){return this.genericAdd(ee,"addresspoi","AddressPoi")}deleteAddressPoi(ee){return this.genericDelete(ee,"addresspoi")}getAddresspoiAutocomplete(ee,$,ue){return this.genericGetCoreEntityAutocomplete("addresspoi",ee,$,ue)}initAddressPoi(){return this.dataAccess.get("addresspoi/new",{params:{lang:"de"}}).pipe((0,u.C)(),(0,m.x)())}convertAddressPoiClientParamsToRequestParams(ee,$){const ue=this.buildAddressPoiQueryCriteria(ee);return Object.assign(ue||{},this.buildRequestOptionParams($,"aOrderFields"))}buildAddressPoiQueryCriteria(ee){let $={};return ee&&($={addressPoiIds:ee.id,aImportKeys:P.e.spreadIds(ee.importId),aPresentedLanguage:P.e.retrieveLanguage(ee),aFulltext:P.e.retrieveFulltextFilter(ee),aFulltextSearchFields:P.e.retrieveFulltextRestrictions(ee),aFulltextSearchOption:ee.fulltextSearchOption?ee.fulltextSearchOption:null,aStateIds:void 0!==ee.entityState?ee.entityState.split(","):null,aZipcodes:P.e.retrieveZipcodes(ee),aGeoSearchLocationId:ee.geoLocationId,aGeoSearchDistance:P.e.retrieveGeoSearchDistance(ee),aGeoSearchZipcode:P.e.retrieveGeoSearchZipcode(ee),aGeoSearchLong:ee.longitude,aGeoSearchLat:ee.latitude,aNoGeoCoords:ee.noGeoCoords?"true"===ee.noGeoCoords:void 0,aRegionIds:P.e.spreadIds(ee.regionIds),aClientIds:ee.clientIds,aIncludeSubClients:ee.includeSubClients?"true"===ee.includeSubClients:void 0,aImportSource:ee.importSource,aImportPurpose:ee.importPurpose,aImportRunId:ee.importRunId,aPoiTypeIds:ee.addressPoiTypes?ee.addressPoiTypes.split(","):void 0,aCreationUserId:ee.creationUser,aLastChangeUserId:ee.lastChangeUser,aCreationRoleId:ee.creationRole,aLastChangeRoleId:ee.lastChangeRole,aSubClasses:ee.includeSubClasses,aOwningUser:ee.owningUserId,context:ee.context,aNoRegion:ee.noRegion,aWithMemo:ee.withMemo,aMemoUserId:ee.memoUserId,aMemoFromDate:ee.memoFromDate,aMemoToDate:ee.memoToDate,aWithMemoAttributeId:ee.withMemoAttributeId,aWithoutMemoAttributeId:ee.withoutMemoAttributeId}),this.filterEmptyCriteria($),$}convertAddressPoiDuplicatesClientParamsToRequestParams(ee,$){const ue=this.convertAddressPoiClientParamsToRequestParams(ee,$),ge=Object.assign(ue||{},{duplicateCertaintyFrom:ee.certaintyFrom,duplicateCertaintyTo:ee.certaintyTo});return this.filterEmptyCriteria(ge),ge}getOpenDates$(ee,$){if(!ee)return(0,t.of)([]);const ge={dates:$.map(Ke=>(0,s.w5)(Ke))};return this.dataAccess.get("addressbase/"+ee+"/openDates",{params:ge}).pipe((0,x.K)(Ke=>(this.logger.debug("get openDates failed",Ke),(0,t.of)([]))),(0,u.C)(),(0,m.x)())}getDuplicates(ee,$){const ue=this.convertAddressPoiDuplicatesClientParamsToRequestParams(ee,$);return ue.sysLang=this.translateService.currentLang,this.logger.debug("Query options for getDuplicates: "+JSON.stringify(ue)),this.dataAccess.get("addresspoi/duplicates",{params:ue}).pipe((0,x.K)(ge=>(this.logger.debug("get addresspoi/duplicates failed",ge),(0,t.of)({totalElements:0,number:0,size:0}))),(0,o.U)(ge=>{const Ke=ge.addresspoiDuplicateGroups;return Ke.forEach(at=>at.candidates=at.addressPois),new s.BY(Ke,ge.totalElements,ge.number,ge.size)}),(0,u.C)(),(0,m.x)())}getInitializedCreationCriteria(){this.logger.debug("getting initialized CreationCriteria");const $=new e.WM({"Content-Type":"application/json"});return this.dataAccess.get("addresspoi/duplicates/initializedCreationCriteria",{headers:$}).pipe((0,x.K)(ue=>(this.logger.debug("post addresspoi/duplicates/initializedCreationCriteria failed",ue),(0,t.of)(!1))),(0,u.C)(),(0,m.x)())}createDuplicateGroups(ee){this.logger.debug("Create new duplicate groups");const ue=new e.WM({"Content-Type":"application/json"});return this.dataAccess.post("addresspoi/duplicates/createGroups",JSON.stringify(ee),{headers:ue}).pipe((0,x.K)(ge=>(this.logger.debug("post addresspoi/duplicates/createGroups failed",ge),(0,t.of)(!1))),(0,u.C)(),(0,m.x)())}getAddressPoiDuplicateGroupById(ee){const $="addresspoi/duplicates/"+ee;return this.logger.debug("Query options for addresspoi/duplicates/ "),this.dataAccess.get($,{params:{}}).pipe((0,x.K)(ue=>(this.logger.debug($+" failed",ue),(0,t.of)({content:[]}))),(0,o.U)(ue=>ue.AddressPoiDuplCandidatesGroup),(0,u.C)(),(0,m.x)())}getDuplicateGroupIds(ee){const ge=this.convertAddressPoiClientParamsToRequestParams(ee,{paging:"ONE_PAGE"});return ge.sysLang=this.translateService.currentLang,this.logger.debug("Query options for addresspoi/duplicates/ids: "+JSON.stringify(ge)),this.dataAccess.get("addresspoi/duplicates/ids",{params:ge}).pipe((0,x.K)(Ke=>(this.logger.debug("get addresspoi/duplicates/ids failed",Ke),(0,t.of)({content:[]}))),(0,o.U)(Ke=>new s.BY(Ke.content,Ke.totalElements,Ke.number,Ke.size)),(0,u.C)(),(0,m.x)())}getProducts(){return this.dataAccess.get("admin/products").pipe((0,o.U)(ee=>new s.BY(ee.version_info,ee.totalElements,ee.number,ee.size)),(0,u.C)(),(0,m.x)())}getLocationAutocomplete(ee,$){const ue={lang:this.translateService.currentLang,name:ee,...$};return this.dataAccess.get("location/autocomplete",{params:ue}).pipe((0,o.U)(ge=>ge.autocomplete),(0,u.C)(),(0,m.x)())}getUserAutocomplete(ee,$){const ue={name:ee,...$};return this.dataAccess.get("user/autocomplete",{params:ue}).pipe((0,o.U)(ge=>ge.autocomplete),(0,u.C)(),(0,m.x)())}getClientAutocomplete(ee,$){const ue={name:ee,...$};return this.dataAccess.get("client/autocomplete",{params:ue}).pipe((0,o.U)(ge=>ge.autocomplete),(0,u.C)(),(0,m.x)())}getBaseEntityAutocomplete(ee,$,ue){const ge={name:$,lang:this.translateService.currentLang,...ue};return this.dataAccess.get("dataobject/"+ee+"/autocomplete",{params:ge}).pipe((0,o.U)(Ke=>Ke.autocomplete),(0,u.C)(),(0,m.x)())}getActionInfo(ee,$){const ue={};return $&&(ue.context=$),this.dataAccess.get("action/info/"+ee,{params:ue}).pipe((0,o.U)(ge=>ge.actions),(0,u.C)(),(0,m.x)())}getAllowedRowActionInfo(ee,$,ue){const ge={ids:$.join(","),rowsOnly:"true"};return ue&&(ge.context=ue),this.dataAccess.get("action/info/"+ee+"/callableOn",{params:ge}).pipe((0,o.U)(Ke=>{const at=new Map;return Object.keys(Ke).forEach(Le=>at.set(Le,Ke[Le])),at}),(0,u.C)(),(0,m.x)())}getActionIsCallableOn(ee,$,ue){const ge={actionKey:$,ids:ue.join(",")};return this.dataAccess.get("action/callableOn/"+ee+"/",{params:ge}).pipe((0,o.U)(Ke=>Ke.callableEntityIds),(0,u.C)(),(0,m.x)())}callAction(ee){return this.dataAccess.post("action/call",{actionCall:ee}).pipe((0,x.K)($=>(this.logger.debug("callAction failed",$),ee.entityIds.length>1?(0,t.of)({processedEntities:[]}):(0,p._)($.error?$.error:$))),(0,o.U)($=>$.processedEntities),(0,u.C)(),(0,m.x)())}getScheduler(){return this.dataAccess.get("scheduler").pipe((0,x.K)(ee=>(this.logger.debug("get scheduler failed",ee),(0,t.of)({size:0}))),(0,o.U)(ee=>ee.scheduler),(0,u.C)(),(0,m.x)())}getJobById(ee){return this.dataAccess.get(`scheduler/job/${ee}`).pipe((0,o.U)($=>$.Job),(0,u.C)(),(0,m.x)())}getJobProgressById(ee){return this.dataAccess.get(`scheduler/job/${ee}/progress`).pipe((0,x.K)($=>(this.logger.warn("getJobProgressById failed",$),(0,t.of)({percentage:0}))),(0,u.C)(),(0,m.x)())}callActionAsync(ee){return this.dataAccess.post("action/callAsync",{actionCall:ee}).pipe((0,x.K)($=>(this.logger.debug("callActionAsync failed",$),ee.entityIds.length>1?(0,t.of)({Job:null}):(0,p._)($.error?$.error:$))),(0,o.U)($=>$.Job),(0,u.C)(),(0,m.x)())}callActionExtended(ee){return this.dataAccess.post("action/callExtended",{actionCall:ee}).pipe((0,x.K)($=>(this.logger.debug("action/callExtended",$),ee.entityIds.length>1?(0,t.of)({successIds:[]}):(0,p._)($.error?$.error:$))),(0,b.b)($=>console.log("action callExtended result",$)),(0,o.U)($=>$),(0,u.C)(),(0,m.x)())}getPortalPreviewUrl(ee,$){let ue,ge;switch(ee){case"Addressbase":ue="addressbase",ge={addressbaseId:$};break;case"Event":ue="event",ge={eventId:$};break;case"Offer":ue="offer",ge={offerId:$};break;case"AddressPoi":ue="addressbase",ge={addresspoiId:$};break;default:return(0,t.of)("")}const Ke={lang:this.translateService.currentLang,...ge};return this.dataAccess.get(ue+"/previewUrl",{params:Ke}).pipe((0,x.K)(at=>(this.logger.debug("get preview url failed",at),c.E)),(0,u.C)(),(0,m.x)())}getContactLists(ee,$){const ue=Object.assign(ee||{},this.buildRequestOptionParams($,"orderFields")),ge=ue.orderField;return ge&&(delete ue.orderField,ue.orderFields=ge),this.dataAccess.get("contactlist",{params:ue}).pipe((0,o.U)(Ke=>new s.BY(Ke.content,Ke.totalElements,Ke.number,Ke.size)),(0,u.C)(),(0,m.x)())}getEntityListComplete(ee){return this.dataAccess.get(`entitylist/${ee}`).pipe((0,o.U)($=>$.EntityList),(0,u.C)(),(0,m.x)())}removeContactList(ee,$,ue){const ge=Object.assign({params:{holderType:ee,holderId:$,contactId:ue}});return this.dataAccess.delete("contactlist/remove",ge).pipe((0,o.U)(Ke=>Ke),(0,u.C)(),(0,m.x)())}getEntityLists(ee){return this.dataAccess.get("entitylist",{params:this.buildRequestOptionParams(ee)}).pipe((0,o.U)($=>{const ge=$.entitylists.map(Ke=>j(Ke));return new s.BY(ge,$.totalElements,$.number,$.size)}),(0,u.C)(),(0,m.x)())}getObjectHistoryList$(){return this.dataAccess.get("entitylist/objecthistory/entities").pipe((0,o.U)(ee=>new s.BY(ee.entities,ee.totalElements,ee.number,ee.size)),(0,u.C)(),(0,m.x)())}getEntityList(ee){return this.genericGetById(ee,"entitylist","EntityList",j)}updateEntityList(ee){return this.genericUpdate(ee,"entitylist","EntityList",j)}deleteEntityList(ee){return this.genericDelete(ee,"entitylist")}createEntityList(ee){return this.genericAdd(ee,"entitylist","EntityList",j)}getObjectHistory(ee){return this.dataAccess.get(`entitylist/objecthistory?entityType=${ee.entityType}`).pipe((0,o.U)($=>$.EntityList),(0,o.U)(j),(0,u.C)(),(0,m.x)())}addObjectToObjectHistory(ee,$){return this.store.dispatch(new H.$.OpenEntity(ee.entityType,$)),this.dataAccess.patch(`entitylist/objecthistory/push?entityType=${ee.entityType}&entityId=${$}`,"").pipe((0,o.U)(ue=>ue.EntityList),(0,o.U)(j),(0,u.C)(),(0,m.x)())}addObjectToObjectList(ee,$,ue){return this.addObjectsToObjectList(ee,$,[ue])}addObjectsToObjectList(ee,$,ue){return this.dataAccess.patch(`entitylist/objectlist/add/${ee}?entityType=${$.entityType}&entityIds=`+ue.join(","),"").pipe((0,o.U)(ge=>ge.EntityList),(0,o.U)(j),(0,u.C)(),(0,m.x)())}removeObjectFromObjectList(ee,$,ue){return this.removeObjectsFromObjectList(ee,$,[ue])}removeObjectsFromObjectList(ee,$,ue){return this.dataAccess.patch(`entitylist/objectlist/remove/${ee}?entityType=${$.entityType}&entityIds=`+ue.join(","),"").pipe((0,o.U)(ge=>ge.EntityList),(0,o.U)(j),(0,u.C)(),(0,m.x)())}replaceObjectsInObjectList(ee,$,ue){return this.dataAccess.patch(`entitylist/objectlist/replace/${ee}?entityType=${$.entityType}&entityIds=`+ue.join(","),"").pipe((0,o.U)(ge=>ge.EntityList),(0,o.U)(j),(0,u.C)(),(0,m.x)())}getMemos$(ee,$){return this.dataAccess.get("memo",{params:{entityType:ee,entityId:`${$}`}}).pipe((0,x.K)(ue=>(this.logger.debug("get memos failed",ue),(0,t.of)({memos:[],totalElements:0,number:0,size:0}))),(0,o.U)(ue=>ue.memos))}getMemoCounts$(ee,$){return this.dataAccess.get("memo/counts",{params:{entityType:ee,entityIds:$.toString()}}).pipe((0,o.U)(ue=>new Map(Object.keys(ue).map(ge=>[parseInt(ge,10),ue[ge]]))))}createMemo$(ee){return this.dataAccess.post("memo",{Memo:ee}).pipe((0,o.U)($=>$.Memo))}deleteMemo$(ee){return this.dataAccess.delete(`memo/${ee.id}`)}updateMemo$(ee){return this.dataAccess.put(`memo/${ee.id}`,{Memo:ee})}convertArticleClientParamsToRequestParams(ee,$){const ue=this.buildArticleQueryCriteria(ee);return Object.assign(ue||{},this.buildRequestOptionParams($,"aOrderFields"))}getArticles(ee,$){const ue=this.convertArticleClientParamsToRequestParams(ee,$);return ue.sysLang=this.translateService.currentLang,this.logger.debug("Query options for getArticles: "+JSON.stringify(ue)),this.dataAccess.get("article/compact",{params:ue}).pipe((0,x.K)(ge=>(this.logger.debug("get article failed",ge),(0,t.of)({compactArticles:[],totalElements:0,number:0,size:0}))),(0,o.U)(ge=>new s.BY(ge.compactArticles,ge.totalElements,ge.number,ge.size)),(0,u.C)(),(0,m.x)())}getArticleIds(ee,$){const ue=this.convertArticleClientParamsToRequestParams(ee,$);return this.logger.debug("Query options for getArticleIds: "+JSON.stringify(ue)),this.dataAccess.get("article/ids",{params:ue}).pipe((0,x.K)(ge=>(this.logger.debug("get article/ids failed",ge),(0,t.of)({content:[],totalElements:0,number:0,size:0}))),(0,o.U)(ge=>new s.BY(ge.content,ge.totalElements,ge.number,ge.size)),(0,u.C)(),(0,m.x)())}initArticle(){return this.dataAccess.get("article/new",{params:{lang:"de"}}).pipe((0,u.C)(),(0,m.x)())}suggestPermaLinkForArticle(ee,$){return this.suggestPermaLink("article",ee,$)}getArticleById(ee){return this.genericGetById(ee,"article","Article")}updateArticle(ee){return this.genericUpdate(ee,"article","Article")}createArticle(ee){return this.genericAdd(ee,"article","Article")}deleteArticle(ee){return this.genericDelete(ee,"article")}getArticleAutocomplete(ee,$,ue){return this.genericGetCoreEntityAutocomplete("article",ee,$,ue)}buildArticleQueryCriteria(ee){let $={};return ee&&($={articleIds:ee.id,aImportKeys:P.e.spreadIds(ee.importId),aPermaLink:ee.permalink,aPermaLinkLang:P.e.retrieveLanguage(ee,"de"),aFulltext:P.e.retrieveFulltextFilter(ee),aFulltextSearchFields:P.e.retrieveFulltextRestrictions(ee),aFulltextSearchOption:ee.fulltextSearchOption?ee.fulltextSearchOption:null,aDeliveryChannelId:ee.deliveryChannel?ee.deliveryChannel:null,aStateIds:void 0!==ee.entityState?ee.entityState.split(","):null,aAppearanceFrom:ee.appearanceFrom,aAppearanceTo:ee.appearanceTo,aClientIds:ee.clientIds,aIncludeSubClients:ee.includeSubClients?"true"===ee.includeSubClients:void 0,aCreationUserId:ee.creationUser,aLastChangeUserId:ee.lastChangeUser,aCreationRoleId:ee.creationRole,aLastChangeRoleId:ee.lastChangeRole,aImportSource:ee.importSource,aImportPurpose:ee.importPurpose,aImportRunId:ee.importRunId,aProductlineAndIds:P.e.retrieveProductlineIds(ee,G.FD.ALLPL,!0),aProductlineOrIds:P.e.retrieveProductlineIds(ee,G.FD.ATLEASTONEPL,!1),aProductlineNotIds:P.e.retrieveProductlineIds(ee,G.FD.NOTPL,!1),aConfirmedAppearances:ee.confirmedAppearances,aPendingAppearances:ee.pendingAppearances,aRefusedAppearances:ee.refusedAppearances,aWithMemo:ee.withMemo,aMemoUserId:ee.memoUserId,aMemoFromDate:ee.memoFromDate,aMemoToDate:ee.memoToDate,aWithMemoAttributeId:ee.withMemoAttributeId,aWithoutMemoAttributeId:ee.withoutMemoAttributeId,pathXRegionId:ee.pathXRegionId}),this.extendedArticleCriteriaDefs&&ee&&($=Object.assign($,this.buildExtendedQueryCriteria(ee,this.extendedArticleCriteriaDefs))),this.filterEmptyCriteria($),$}getAddressPoiOccupancy$(ee,$){const ue={addressPoiIds:ee+"",sensorId:"1"};return $&&(ue.occOrderFields=$),this.dataAccess.get("occupancy",{params:ue}).pipe((0,x.K)(ge=>(this.logger.debug("get occupancy failed",ge),(0,t.of)({occupancies:[]}))),(0,o.U)(ge=>({occupancies:ge.addressPoiOccupancies})),(0,u.C)(),(0,m.x)())}setAddressPoiOccupancy$(ee,$){return this.dataAccess.post("occupancy",{AddressPoiOccupancy:{id:void 0,measurementTime:void 0,addressPoiId:ee,sensor:{id:1,name:"",_entityType:"OccupancySensor"},value:$,forecast:!1,absolute:!1,_entityType:"AddressPoiOccupancy"}}).pipe((0,o.U)(ge=>ge.AddressPoiOccupancy))}getRequiredPropertiesForCoreEntity(ee){return this.dataAccess.get(ee.toLowerCase()+"/requiredProperties").pipe((0,x.K)($=>(this.logger.debug("get requiredProperties failed",$),(0,t.of)([]))),(0,o.U)($=>$),(0,u.C)(),(0,m.x)())}getEditFieldPermissionsForCoreEntity(ee,$){const ue="PooledDataObjectMedium"===ee?"pooledmedium":ee.toLowerCase();return this.dataAccess.get(ue+"/"+$+"/editFieldPermissions").pipe((0,x.K)(ge=>(this.logger.debug("get editFieldPermissions failed",ge),(0,t.of)([]))),(0,o.U)(ge=>ge),(0,u.C)(),(0,m.x)())}getDatamanagerCloneIds(ee,$){return this.logger.debug("getDatamanagerCloneIds for ids: "+ee.ids),this.dataAccess.get("datamanager/"+$+"/cloneIds1",{params:{ids:ee.ids}}).pipe((0,x.K)(ge=>(this.logger.debug("getDatamanagerCloneIds failed",ge),(0,t.of)([]))),(0,o.U)(ge=>ge),(0,u.C)(),(0,m.x)())}getDatamanagerClonesForIds(ee,$){return this.logger.debug("getDatamanagerClonesForIds for ids: "+ee.ids),this.dataAccess.get("datamanager/"+$+"/cloneIds1",{params:{ids:ee.ids}}).pipe((0,x.K)(ge=>(this.logger.debug("getDatamanagerClonesForIds failed",ge),(0,t.of)([]))),(0,o.U)(ge=>ge),(0,u.C)(),(0,m.x)())}getMergeProperties(ee,$){return this.dataAccess.get("standardImportConfig/mergeProperties",{params:{sourceType:ee,entityType:$}}).pipe((0,o.U)(ue=>ue),(0,u.C)(),(0,m.x)())}getStandardImportSourceTypes(){return this.dataAccess.get("standardImportConfig/sourceTypes").pipe((0,o.U)(ee=>ee),(0,u.C)(),(0,m.x)())}getStandardImportEntityTypes(ee){return this.dataAccess.get("standardImportConfig/entityTypes",{params:{sourceType:ee}}).pipe((0,o.U)($=>$),(0,u.C)(),(0,m.x)())}getImporterNamesWithMapping(){return this.dataAccess.get("standardImport/importerNamesWithMapping").pipe((0,o.U)(ee=>ee.content),(0,u.C)(),(0,m.x)())}getMapperMetainfo(ee){return this.dataAccess.get("standardImport/mapperMetainfo",{params:{importerName:ee}}).pipe((0,o.U)($=>{const ue=new Map;return Object.keys($.infoMap).forEach(ge=>ue.set(ge,$.infoMap[ge])),ue}),(0,u.C)(),(0,m.x)())}getMappableFieldValues(ee,$){return this.dataAccess.get("standardImport/mappableFieldValues",{params:{importerName:ee,fieldName:$}}).pipe((0,o.U)(ue=>{if(ue&&ue.content){const ge=new Map;return ue.content.forEach(Ke=>{ge.set(Ke.valueKey,Ke.valueName)}),ge}return new Map}),(0,u.C)(),(0,m.x)())}getActionItemHistory(ee,$,ue){return this.filterEmptyCriteria(ue),this.dataAccess.get("history/"+ee+"/"+$,{params:ue}).pipe((0,o.U)(ge=>ge.actionItems),(0,u.C)(),(0,m.x)())}getReferenceSpecification(ee,$,ue,ge){return this.filterEmptyCriteria(ue),this.dataAccess.get("reference/"+ee+"/"+$,{params:ue}).pipe((0,x.K)(Ke=>{if(this.logger.debug("get reference specification failed",Ke),Ke instanceof s.DO&&Ke.errorKey===s.Oi.PF_NOT_AVAILABLE)return ge.showError("imxplatform.exception.404_backend_version"),(0,t.of)({referencedEntity:void 0,references:[]});(0,p._)(Ke)}),(0,o.U)(Ke=>Ke.DataObjectReferenceSpecification?Ke.DataObjectReferenceSpecification:Ke),(0,u.C)(),(0,m.x)())}getAllCountries(){return this.dataAccess.get("countries").pipe((0,o.U)(ee=>ee.countries),(0,u.C)(),(0,m.x)())}getCountryByName(ee){return this.dataAccess.get("countries/"+ee).pipe((0,o.U)($=>$.Country),(0,u.C)(),(0,m.x)())}getGeoCode(ee,$,ue,ge,Ke){const at={street:ee,streetNo:$,zipcode:ue,city:ge,country:Ke};return this.filterEmptyCriteria(at),this.dataAccess.get("geo/geocode",{params:at}).pipe((0,o.U)(Le=>Le),(0,u.C)(),(0,m.x)())}getRegionAutocomplete(ee,$,ue){return this.genericGetCoreEntityAutocomplete("region",ee,$,ue)}getImportAssignments$(ee){return this.dataAccess.get("assignment/all",{params:{addressPoiIds:`${ee}`}}).pipe((0,x.K)($=>(this.logger.debug("get assignment failed",$),(0,t.of)({assignments:void 0,totalElements:0,number:0,size:0}))),(0,o.U)($=>$.assignments),(0,u.C)(),(0,m.x)())}getUserActivity(){return this.dataAccess.get("user/activity").pipe((0,x.K)(ee=>(this.logger.debug("get activities failed",ee),(0,t.of)([]))),(0,o.U)(ee=>ee.activities),(0,u.C)(),(0,m.x)())}getFileUploadSupportingImporters(){return this.dataAccess.get("importer/withFileUpload").pipe((0,x.K)(ee=>(this.logger.debug("get FileUploadSupportingImporters failed",ee),(0,t.of)([]))),(0,o.U)(ee=>ee),(0,u.C)(),(0,m.x)())}getImportSourceDataProvidingImporters(){return this.dataAccess.get("importer/withImportSourceData").pipe((0,x.K)(ee=>(this.logger.debug("get ImportSourceDataProvidingImporters failed",ee),(0,t.of)([]))),(0,o.U)(ee=>ee),(0,u.C)(),(0,m.x)())}getImportSourceData(ee,$,ue){return this.dataAccess.get("importer/importSourceData",{params:{importSource:ee,importPurpose:$,importIdentifier:ue}}).pipe((0,o.U)(Ke=>Ke),(0,u.C)(),(0,m.x)())}getPromptConverters(ee,$){const ue={entityType:ee,id:$.toString()};return this.dataAccess.get("aiPrompt/promptConverter",{params:ue}).pipe((0,x.K)(ge=>(this.logger.debug("aiPrompt/promptConverter",ge),(0,t.of)([]))),(0,o.U)(ge=>ge),(0,u.C)(),(0,m.x)())}getPrompt(ee,$,ue,ge,Ke){const at={lang:ue,promptConverter:ge,includedModules:Ke.join(",")},Le="aiPrompt/"+ee.toLowerCase()+"Prompt";return this.dataAccess.post(Le,$,{params:at}).pipe((0,x.K)(R=>(this.logger.debug(Le,R),(0,t.of)(null))),(0,o.U)(R=>R),(0,u.C)(),(0,m.x)())}generateFromPrompt(ee,$,ue,ge,Ke){const at={lang:ue,promptConverter:ge,includedModules:Ke.join(",")},Le="aiGeneration/generate"+ee;return this.dataAccess.post(Le,$,{params:at}).pipe((0,x.K)(R=>(this.logger.debug(Le,R),(0,t.of)(null))),(0,o.U)(R=>R),(0,u.C)(),(0,m.x)())}extractFromPrompt(ee,$,ue,ge,Ke){const at={lang:ue,promptConverter:ge,includedModules:Ke.join(",")},Le="aiGeneration/generate"+ee;return this.dataAccess.post(Le,$,{params:at}).pipe((0,x.K)(R=>(this.logger.debug(Le,R),(0,t.of)(null))),(0,o.U)(R=>R),(0,u.C)(),(0,m.x)())}static#e=this.\u0275fac=function($){return new($||K)(n.LFG(s.fx),n.LFG(B.sK),n.LFG(ae,8),n.LFG(i.yh))};static#t=this.\u0275prov=n.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"})}return K})();var q=function(K){return K.WITHSUBCLASSES="withSubClasses",K.WITHOUTSUBCLASSES="withoutSubClasses",K}(q||{});function j(K){return Object.assign(K,{listType:K.listType,listInfo:Y(K.listType,K.listInfo)})}function Y(K,ne){return K===l.E6.OBJECT_HISTORY?ne.split(",").map(ee=>parseInt(ee,10)):ne}},30324:(gt,X,a)=>{"use strict";a.d(X,{Q:()=>m});var e=a(21473),n=a(49193),s=a(16222),l=a(62413),i=a(96124),t=a(94973),p=a(82851),c=a(27556),o=a(27020),x=a(19212),u=a(71365);let m=(()=>{class b extends o.e{constructor(H,O){super(H,O),this.dataAccess=H,this.translateService=O,this.logger=(0,e.jl)("ImxPlatformMgmtDataAccessService",c.H.name),this.logger.info("Creating ImxPlatformMgmtDataAccessService")}convertUserMgmtClientParamsToRequestParams(H,O){const P=this.buildUserQueryCriteria(H);return Object.assign(P||{},this.buildRequestOptionParams(O,"uOrderFields"))}getUsers(H,O){const P=this.convertUserMgmtClientParamsToRequestParams(H,O);return this.logger.debug("Query options for getUser: "+JSON.stringify(P)),this.dataAccess.get("user",{params:P}).pipe((0,l.K)(G=>(this.logger.debug("get user failed",G),(0,n.of)({users:[],totalElements:0,number:0,size:0}))),(0,i.U)(G=>new e.BY(G.users,G.totalElements,G.number,G.size)),(0,t.C)(),(0,p.x)())}getPermissions(H,O){const P=Object.assign({},this.buildRequestOptionParams(O,"qOrderFields"));return this.logger.debug("Query options for getPermission: "+JSON.stringify(P)),this.dataAccess.get("permission",{params:P}).pipe((0,l.K)(G=>(this.logger.debug("get permission failed",G),(0,n.of)([]))),(0,t.C)(),(0,p.x)())}updatePermission(H){return this.genericUpdate(H,"permission","Permission")}createPermission(H){return this.genericAdd(H,"permission","Permission")}deletePermission(H){return this.genericDelete(H,"permission")}getUserIds(H,O){const P=this.convertUserMgmtClientParamsToRequestParams(H,O);return this.logger.debug("Query options for getUserIds: "+JSON.stringify(P)),this.dataAccess.get("user/ids",{params:P}).pipe((0,i.U)(G=>new e.BY(G.content,G.totalElements,G.number,G.size)),(0,t.C)(),(0,p.x)())}getUserByLoginname(H){return this.dataAccess.get("user/"+H+"/").pipe((0,l.K)(O=>(0,s._)(O.error?O.error:O)),(0,i.U)(O=>O.User),(0,t.C)(),(0,p.x)())}updateUser(H){return this.genericUpdate(H,"user","User")}createUser(H,O){return this.genericAdd(H,"user","User",null,{params:{confirmEmail:O?"true":"false"}})}deleteUser(H){return this.genericDelete(H,"user")}buildUserQueryCriteria(H){let O={};return H&&(O={uName:H.fulltext,uRoleId:H.roles,uClientIds:H.clientIds,uUserStateIds:H.userStateIds?H.userStateIds.split(","):void 0,uUserTypeId:H.userTypeId,uIds:H.userIds?H.userIds.split(","):void 0}),this.filterEmptyCriteria(O),O}buildRoleQueryCriteria(H){let O={};return H&&(O={rName:H.fulltext,rIds:H.roleIds?H.roleIds.split(","):void 0}),this.filterEmptyCriteria(O),O}convertRoleMgmtClientParamsToRequestParams(H,O){const P=this.buildRoleQueryCriteria(H);return Object.assign(P||{},this.buildRequestOptionParams(O,"rOrderFields"))}getUserRoles(H,O){const P=this.convertRoleMgmtClientParamsToRequestParams(H,O);return this.logger.debug("Query options for getUserRoles: "+JSON.stringify(P)),this.dataAccess.get("userRole",{params:P}).pipe((0,l.K)(G=>(this.logger.debug("get roles failed",G),(0,n.of)({users:[],totalElements:0,number:0,size:0}))),(0,i.U)(G=>new e.BY(G.roles,G.totalElements,G.number,G.size)),(0,t.C)(),(0,p.x)())}updateUserRole(H){return this.genericUpdate(H,"userRole","UserRole")}createUserRole(H){return this.genericAdd(H,"userRole","UserRole")}deleteUserRole(H){return this.genericDelete(H,"userRole")}buildClientQueryCriteria(H){let O={};return H&&(O={cName:H.fulltext,cIds:H.clientIds}),this.filterEmptyCriteria(O),O}getClients(H){const O=Object.assign({},this.buildRequestOptionParams(H,"qOrderFields"));return this.dataAccess.get("client",{params:O}).pipe((0,l.K)(P=>(this.logger.debug("getting clients failed",P),(0,n.of)({clients:[],totalElements:0,number:0,size:0}))),(0,i.U)(P=>new e.BY(P.clients,P.totalElements,P.number,P.size)),(0,t.C)(),(0,p.x)())}getClientById(H){return this.genericGetById(H,"client","Client")}updateClient(H){return this.genericUpdate(H,"client","Client")}createClient(H){return this.genericAdd(H,"client","Client")}deleteClient(H){return this.genericDelete(H,"client")}deleteClientEventManagerConfig(H){return this.genericDelete(H,"eventmanagerClientConfig")}convertRegionMgmtClientParamsToRequestParams(H,O){const P=this.buildRegionQueryCriteria(H);return O.sortFields.find(B=>B.field&&"id"===B.field)&&O.sortFields.map(B=>{B.field&&(B.field="ID")}),Object.assign(P||{},this.buildRequestOptionParams(O,"rOrderFields"))}getRegions(H,O){const P=this.convertRegionMgmtClientParamsToRequestParams(H,O);return this.logger.debug("Query options for getRegions: "+JSON.stringify(P)),this.dataAccess.get("region",{params:P}).pipe((0,l.K)(G=>(this.logger.debug("get region failed",G),(0,n.of)({regions:[],totalElements:0,number:0,size:0}))),(0,i.U)(G=>new e.BY(G.regions,G.totalElements,G.number,G.size)),(0,t.C)(),(0,p.x)())}updateRegion(H){return this.genericUpdate(H,"region","Region")}createRegion(H){return this.genericAdd(H,"region","Region")}deleteRegion(H){return this.genericDelete(H,"region")}buildRegionQueryCriteria(H){let O={};return H&&(O={regionIds:H.id,regionName:H.i18nName,regionNameAll:H.nameAll,rGeoLevelId:H.geoLevelId,rAssignmentLevelId:H.assignmentLevelId,rRegionTypeId:H.regionTypeId,rGeoPathLevelRegionId:H.geoPathLevelRegionId}),this.filterEmptyCriteria(O),O}getStandardImportConfigs(H,O){const P=this.convertStandardImportConfigMgmtClientParamsToRequestParams(H,O);return this.logger.debug("Query options for getStandardImportConfigs: "+JSON.stringify(P)),this.dataAccess.get("standardImportConfig",{params:P}).pipe((0,l.K)(G=>(this.logger.debug("getStandardImportConfigs failed",G),(0,n.of)({users:[],totalElements:0,number:0,size:0}))),(0,i.U)(G=>new e.BY(G.configs,G.totalElements,G.number,G.size)),(0,t.C)(),(0,p.x)())}convertStandardImportConfigMgmtClientParamsToRequestParams(H,O){const P=this.buildStandardImportConfigQueryCriteria(H);return Object.assign(P||{},this.buildRequestOptionParams(O,"qOrderFields"))}buildStandardImportConfigQueryCriteria(H){let O={};return H&&(O={qName:H.name,qClient:H.client,qEntity:H.entity}),this.filterEmptyCriteria(O),O}updateStandardImportConfig(H){return this.genericUpdate(H,"standardImportConfig","StandardImportConfig")}createStandardImportConfig(H){return this.genericAdd(H,"standardImportConfig","StandardImportConfig")}deleteStandardImportConfig(H){return this.genericDelete(H,"standardImportConfig")}getConfigurationDefinitions(){return this.dataAccess.get("configuration-definition").pipe((0,l.K)(H=>(this.logger.debug("getting configurationDefinitions failed",H),(0,n.of)([]))),(0,i.U)(H=>H),(0,t.C)(),(0,p.x)())}getConfigurationDefinitionById(H){return this.genericGetById(H,"configuration-definition","ConfigurationDefinition")}updateConfigurationDefinition(H){return this.genericUpdate(H,"configuration-definition","ConfigurationDefinition")}static#e=this.\u0275fac=function(O){return new(O||b)(x.LFG(e.fx),x.LFG(u.sK))};static#t=this.\u0275prov=x.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})()},83416:(gt,X,a)=>{"use strict";a.d(X,{FD:()=>e,lT:()=>s,wK:()=>n});var e=function(l){return l.ALLPL="allPL",l.ATLEASTONEPL="atLeastOnePL",l.NOTPL="notPL",l}(e||{}),n=function(l){return l.EXACTSEARCH="EXACT",l.ANDSEARCH="AND",l.ORSEARCH="OR",l}(n||{});const s={id:0,name:"none"}},14696:(gt,X,a)=>{"use strict";a.d(X,{t:()=>e});class e{extractSortFields(s,l){let i;return l&&s?i={direction:l,field:s}:s&&(i=s),i}}},67427:(gt,X,a)=>{"use strict";a.d(X,{Q:()=>i,Z:()=>t});var e=a(19212),n=a(21473),s=a(65752),l=a(22819);const i=new e.OlP("imxplatform.addresspoi.datasource");let t=(()=>{class p extends s.k{constructor(o,x){super(o),this.securityContextHolder=o,this.platformService=x}fetchAllIds(o,x,u){const m=this.extractSortFields(x,u);return this.platformService.getAddressPoiIds(o,{paging:"ONE_PAGE",sortFields:[m]})}fetchResults(o){return this.platformService.getAddressPois(o,{paging:{pageIdx:0,pageSize:1e3}})}toIdFilter(o){return{id:o.join(",")}}static#e=this.\u0275fac=function(x){return new(x||p)(e.LFG(n.q3),e.LFG(l.nq))};static#t=this.\u0275prov=e.Yz7({token:p,factory:p.\u0275fac})}return p})()},83530:(gt,X,a)=>{"use strict";a.d(X,{A:()=>i,J:()=>l});var e=a(19212),n=a(11166),s=a(22819);const l=new e.OlP("imxplatform.article.datasource");let i=(()=>{class t extends n.F{constructor(c){super(),this.platformService=c}fetchResults(c,o,x,u,m,b){const I=this.extractSortFields(u,m);return this.platformService.getArticles(c,{paging:{pageIdx:o,pageSize:x},sortFields:[I]})}static#e=this.\u0275fac=function(o){return new(o||t)(e.LFG(s.nq))};static#t=this.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac})}return t})()},94023:(gt,X,a)=>{"use strict";a.d(X,{N:()=>x,o:()=>o});var e=a(19212),n=a(21473),s=a(15646),i=a(49193),t=a(96124),p=a(54203),c=a(71365);const o=new e.OlP("imxplatform.base-entity.datasource");let x=(()=>{class u extends p.o{constructor(b,I){super(I),this.entitiesMgr=b,this.translateService=I}fetchResults(){return(0,i.of)()}fetchResultsByFilter(b,I){return this.entitiesMgr.getAllEntitiesOfType(b.entityName,void 0,I)}fetch(b,I,H,O,P,G){return b&&b.entityName?this.fetchResultsByFilter(b,G).pipe((0,t.U)(ae=>s(ae.items)),(0,t.U)(ae=>ae.filter(J=>this.filterItemByFilter(J,b))),(0,t.U)(ae=>({items:ae.filter(J=>null==J.parent),totalNumberOfResults:ae.length})),this.processClientsideSorting(O,P||"ASC",b),this.processClientsidePagination({pageIdx:I,pageSize:H})):(0,i.of)()}static#e=this.\u0275fac=function(I){return new(I||u)(e.LFG(n.qB),e.LFG(c.sK))};static#t=this.\u0275prov=e.Yz7({token:u,factory:u.\u0275fac})}return u})()},54203:(gt,X,a)=>{"use strict";a.d(X,{o:()=>c});var e=a(17927),n=a(96124),s=a(94973),l=a(82851),i=a(21473),t=a(41621),p=a(14696);class c extends p.t{constructor(x){super(),this.translateService=x,this.wantsPaginationAtAll=!0,this.processClientsideSorting=(u,m,b)=>(0,e.b)(I=>{if(u&&b&&b.sortPredicates&&b.sortPredicates.get(u)){const H=I.items.sort(b.sortPredicates.get(u));return m&&"DESC"===m?H.reverse():H}this.sortByOrderField(I.items,u,m)}),this.processClientsidePagination=u=>(0,n.U)(m=>{let b=m.totalNumberOfResults;if(m.items&&m.items.length>0&&m.items[0].children&&(b=m.items.length),this.wantsPaginationAtAll&&(0,i.So)(u)&&u.pageSize){const H=u.pageIdx,O=u.pageSize,P=(H-1)*O,G=(H-1)*O+O-1;return G>=0&&m.items.splice(G+1),P>0&&m.items.splice(0,P),new i.BY(m.items,m.totalNumberOfResults,H,O,b)}return new i.BY(m.items,m.totalNumberOfResults,1,m.items.length,b)})}fetch(x,u,m,b,I,H){return(H||void 0===this.fullResultObs)&&(this.fullResultObs=this.fetchResults()),this.fullResultObs.pipe((0,n.U)(O=>O.items),(0,n.U)(O=>O.filter(P=>this.filterItemByFilter(P,x))),(0,n.U)(O=>new i.BY(O,O.length,0,O.length)),this.processClientsideSorting(b,I||"ASC",x),this.processClientsidePagination({pageIdx:u,pageSize:m}),(0,s.C)(),(0,l.x)())}sortByOrderField(x,u,m){x.sort((b,I)=>{let H=0;if(u){if(!b.hasOwnProperty(u)||!I.hasOwnProperty(u))return 0;H="string"==typeof b[u]?b[u].localeCompare(I[u]):"number"==typeof b[u]?b[u]>I[u]?1:-1:b[u].hasOwnProperty(this.translateService.currentLang)?(0,t.Qi)(b[u],I[u],this.translateService.currentLang):0,0!==H&&(H="DESC"===m?-H:H)}return H}),x.forEach(b=>{b.children&&this.sortByOrderField(b.children,u,m)})}filterItemByFilter(x,u){if(u.filterPredicates)for(const m of u.filterPredicates)if(!m(x,u))return!1;return!0}}},29166:(gt,X,a)=>{"use strict";a.d(X,{e:()=>u,l:()=>m});var e=a(19212),n=a(15646),l=a(49193),i=a(96124),t=a(17927),p=a(21473),c=a(30324),o=a(54203),x=a(71365);const u=new e.OlP("imxplatform.client.datasource");let m=(()=>{class b extends o.o{constructor(H,O,P){super(O),this.entitiesMgr=H,this.translateService=O,this.mgmtDataService=P,this.wantsPaginationAtAll=!1}fetchResults(){return(0,l.of)()}fetch(H,O,P,G,B,ae){const J=this.extractSortFields(G,B);return this.mgmtDataService.getClients({paging:"ONE_PAGE",sortFields:[J]}).pipe((0,i.U)(q=>n(q.items)),(0,t.b)(q=>this.entitiesMgr.buildTree(q)),(0,i.U)(q=>q.filter(j=>this.filterItemByFilter(j,H))),(0,i.U)(q=>new p.BY(q,q.length,O,P)),this.processClientsideSorting(G,B||"ASC",H))}static#e=this.\u0275fac=function(O){return new(O||b)(e.LFG(p.qB),e.LFG(x.sK),e.LFG(c.Q))};static#t=this.\u0275prov=e.Yz7({token:b,factory:b.\u0275fac})}return b})()},4766:(gt,X,a)=>{"use strict";a.d(X,{l:()=>p,q:()=>c});var e=a(19212),n=a(21473),s=a(96124),l=a(30324),i=a(54203),t=a(71365);const p=new e.OlP("imxplatform.configuration-definition.datasource");let c=(()=>{class o extends i.o{constructor(u,m){super(m),this.mgmtDataService=u,this.translateService=m,this.wantsPaginationAtAll=!1}fetchResults(){return this.mgmtDataService.getConfigurationDefinitions().pipe((0,s.U)(u=>new n.BY(u,u.length,0,1)))}static#e=this.\u0275fac=function(m){return new(m||o)(e.LFG(l.Q),e.LFG(t.sK))};static#t=this.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac})}return o})()},51419:(gt,X,a)=>{"use strict";a.d(X,{P:()=>l,e:()=>i});var e=a(19212),n=a(22819),s=a(11166);const l=new e.OlP("imxplatform.reference-list.datasource");let i=(()=>{class t extends s.F{constructor(c){super(),this.dataAccess=c}fetchResults(c,o,x,u,m,b){const I=this.extractSortFields(u,m);return this.dataAccess.getContactLists(c,{paging:{pageIdx:o,pageSize:x},sortFields:[I]})}static#e=this.\u0275fac=function(o){return new(o||t)(e.LFG(n.nq))};static#t=this.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac})}return t})()},27835:(gt,X,a)=>{"use strict";a.d(X,{M:()=>l,d:()=>i});var e=a(19212),n=a(22819),s=a(11166);const l=new e.OlP("imxplatform.duplicates-address-poi.datasource");let i=(()=>{class t extends s.F{constructor(c){super(),this.platformService=c}fetchResults(c,o,x,u,m,b){const I=this.extractSortFields(u,m);return this.platformService.getDuplicates(c,{paging:{pageIdx:o,pageSize:x},sortFields:[I]})}static#e=this.\u0275fac=function(o){return new(o||t)(e.LFG(n.nq))};static#t=this.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac})}return t})()},77099:(gt,X,a)=>{"use strict";a.d(X,{c:()=>p,u:()=>c});var e=a(19212),n=a(21473),s=a(96124),l=a(30324),i=a(54203),t=a(71365);const p=new e.OlP("imxplatform.configuration-definition.datasource");let c=(()=>{class o extends i.o{constructor(u,m){super(m),this.mgmtDataService=u,this.translateService=m}fetchResults(){return this.mgmtDataService.getPermissions().pipe((0,s.U)(u=>new n.BY(u,u.length,0,1)))}static#e=this.\u0275fac=function(m){return new(m||o)(e.LFG(l.Q),e.LFG(t.sK))};static#t=this.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac})}return o})()},22937:(gt,X,a)=>{"use strict";a.d(X,{U:()=>l,X:()=>i});var e=a(19212),n=a(22819),s=a(11166);const l=new e.OlP("imxplatform.pooled-medium.datasource");let i=(()=>{class t extends s.F{constructor(c){super(),this.dataAccessService=c}fetchResults(c,o,x,u,m,b){const I=this.extractSortFields(u,m);return this.dataAccessService.getPooledMedia(c,{paging:{pageIdx:o,pageSize:x},sortFields:[I]})}static#e=this.\u0275fac=function(o){return new(o||t)(e.LFG(n.nq))};static#t=this.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac})}return t})()},44581:(gt,X,a)=>{"use strict";a.d(X,{R:()=>l,A:()=>i});var e=a(19212),n=a(30324);class s{}const l=new e.OlP("imxplatform.region.update.datasource");let i=(()=>{class t extends s{constructor(c){super(),this.mgmtDataService=c}insertEntity(c){return this.mgmtDataService.createRegion(c)}updateEntity(c){return this.mgmtDataService.updateRegion(c)}static#e=this.\u0275fac=function(o){return new(o||t)(e.LFG(n.Q))};static#t=this.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac})}return t})()},88012:(gt,X,a)=>{"use strict";a.d(X,{H:()=>i,U:()=>l});var e=a(19212),n=a(30324),s=a(11166);const l=new e.OlP("imxplatform.region.datasource");let i=(()=>{class t extends s.F{constructor(c){super(),this.mgmtDataService=c}fetchResults(c,o,x,u,m,b){const I=this.extractSortFields(u,m);return this.mgmtDataService.getRegions(c,{paging:{pageIdx:o,pageSize:x},sortFields:[I]})}static#e=this.\u0275fac=function(o){return new(o||t)(e.LFG(n.Q))};static#t=this.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac})}return t})()},11166:(gt,X,a)=>{"use strict";a.d(X,{F:()=>n});var e=a(14696);class n extends e.t{fetch(l,i,t,p,c,o){return this.fetchResults(l,i,t,p,c)}}},65752:(gt,X,a)=>{"use strict";a.d(X,{k:()=>u});var e=a(12650),s=a(49193),l=a(17927),i=a(96743),t=a(88419),p=a(86657),c=a(96124),o=a(21473),x=a(14696);class u extends x.t{constructor(b){super(),this.securityContextHolder=b}fetch(b,I,H,O,P,G){return I<1&&(I=1),this.cleanupFilter(b),this.checkCacheUser(),this.mustFetchFromBackend(b,I,H,O,P,G)?this.fetchAllIds(b,O,P).pipe((0,l.b)(B=>{this.resultIds=B.items,this.usedFilter=b,this.orderField=O,this.orderDir=P}),(0,i.zg)(B=>this.fetchResultsWithIds(B.items,I,H,B.totalNumberOfResults)),(0,t.P)(),(0,p.B)()):(this.orderDir!==P&&(this.orderDir=P,this.resultIds.reverse()),this.fetchResultsWithIds(this.resultIds,I,H,this.resultIds.length))}mustFetchFromBackend(b,I,H,O,P,G){return!(!G&&this.resultIds&&this.isEqualFilter(b,this.usedFilter)&&this.isEqualOrderField(O,this.orderField))}checkCacheUser(){(void 0===this.cacheUserId||void 0===this.securityContextHolder.authInfo||this.cacheUserId!==this.securityContextHolder.authInfo.principal.getIdentifier())&&(this.resultIds=void 0,this.cacheUserId=this.securityContextHolder.authInfo.principal.getIdentifier())}cleanupFilter(b){b.pageSize=void 0,b.page=void 0,b.orderDirection=void 0,b.orderField=void 0}fetchResultsWithIds(b,I,H,O){const P=b.slice((I-1)*H,I*H);if(0===P.length)return(0,s.of)(new o.BY([],O,I,H));const G=this.toIdFilter(P);return this.fetchResults(G).pipe((0,c.U)(B=>new o.BY(this.syncToOrderOfIds(P,B.items),O,I,H)))}syncToOrderOfIds(b,I){const H=[];for(const O of b){const P=this.findItemWithId(I,O);P&&H.push(P)}return H}findItemWithId(b,I){for(const H of b)if(H.id===I)return H;return null}isEqualFilter(b,I){return e(b,I)}isEqualOrderField(b,I){return!b&&!I||b===I}}},11947:(gt,X,a)=>{"use strict";a.d(X,{k:()=>t,y:()=>i});var e=a(19212),s=(a(79309),a(11166)),l=a(30324);const i=new e.OlP("imxplatform.standard-import-config.datasource");let t=(()=>{class p extends s.F{constructor(o){super(),this.mgmtDataService=o}fetchResults(o,x,u,m,b,I){const H=this.extractSortFields(m,b);return this.mgmtDataService.getStandardImportConfigs(o,{paging:{pageIdx:x,pageSize:u},sortFields:[H]})}static#e=this.\u0275fac=function(x){return new(x||p)(e.LFG(l.Q))};static#t=this.\u0275prov=e.Yz7({token:p,factory:p.\u0275fac})}return p})()},46495:(gt,X,a)=>{"use strict";a.d(X,{I:()=>i,_:()=>l});var e=a(19212),n=a(46551),s=a(11166);const l=new e.OlP("imxplatform.universal.search.datasource");let i=(()=>{class t extends s.F{constructor(c){super(),this.universalSearchService=c}fetchResults(c,o,x,u,m,b){const I=this.extractSortFields(u,m);return this.universalSearchService.searchAll(c.searchString,{paging:{pageIdx:o,pageSize:x},sortFields:[I]})}static#e=this.\u0275fac=function(o){return new(o||t)(e.LFG(n.T))};static#t=this.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac})}return t})()},93428:(gt,X,a)=>{"use strict";a.d(X,{i:()=>i,r:()=>t});var e=a(19212),n=a(96124),s=a(30324),l=a(11166);const i=new e.OlP("imxplatform.user-role.datasource");let t=(()=>{class p extends l.F{constructor(o){super(),this.mgmtDataService=o}fetchResults(o,x,u,m,b,I){const H=this.extractSortFields(m,b);return o.permissionId?this.mgmtDataService.getUserRoles(o,{paging:{pageIdx:1,pageSize:1e4},sortFields:[H]}).pipe((0,n.U)(O=>{const P=O.items.filter(G=>G.permissions.some(B=>B.id===Number.parseInt(o.permissionId,10)));return{items:P.slice((x-1)*u,x*u),pageSize:u,page:x,numberOfPages:Math.ceil(P.length/u),totalNumberOfResults:P.length}})):this.mgmtDataService.getUserRoles(o,{paging:{pageIdx:x,pageSize:u},sortFields:[H]})}static#e=this.\u0275fac=function(x){return new(x||p)(e.LFG(s.Q))};static#t=this.\u0275prov=e.Yz7({token:p,factory:p.\u0275fac})}return p})()},76816:(gt,X,a)=>{"use strict";a.d(X,{l:()=>l,u:()=>i});var e=a(19212),n=a(11166),s=a(30324);const l=new e.OlP("imxplatform.user.datasource");let i=(()=>{class t extends n.F{constructor(c){super(),this.mgmtDataService=c}fetchResults(c,o,x,u,m,b){const I=this.extractSortFields(u,m);return this.mgmtDataService.getUsers(c,{paging:{pageIdx:o,pageSize:x},sortFields:[I]})}static#e=this.\u0275fac=function(o){return new(o||t)(e.LFG(s.Q))};static#t=this.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac})}return t})()},66791:(gt,X,a)=>{"use strict";a.d(X,{x:()=>l});var e=a(51418),n=a(19212),s=a(17700);let l=(()=>{class i{constructor(p){this.dialog=p}openDialog(p,c={},o={},x){const u=this.dialog.open(p,{maxWidth:650,...o,data:c});x&&u.afterClosed().pipe((0,e.q)(1)).subscribe(m=>{m&&x(m)})}static#e=this.\u0275fac=function(c){return new(c||i)(n.LFG(s.uw))};static#t=this.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})()},30258:(gt,X,a)=>{"use strict";a.d(X,{I:()=>l,z:()=>n});var e=a(19212);const n=new e.OlP("imxplatform.entityhistory.storage"),s="modifiedRecord_";let l=(()=>{class i{constructor(p){this.storage=p}findAll(){const p=[];for(let c=0;c<this.storage.length;c++){const o=this.storage.key(c);if(o.startsWith(s)){const x=this.storage.getItem(o);if(x)try{p.push(JSON.parse(x))}catch{}}}return p}findAllByType(p){const c=[];for(let o=0;o<this.storage.length;o++){const x=this.storage.key(o);if(x.startsWith(s)&&this.parseEntityTypeFromCacheId(x)===p){const m=this.storage.getItem(x);if(m)try{c.push(JSON.parse(m))}catch{}}}return c}set(p,c){this.storage.setItem(this.buildCacheId(p,c.id),JSON.stringify({entityType:p,record:c,lastModified:new Date}))}get(p,c){const o=this.buildCacheId(p,c),x=this.storage.getItem(o);if(x)try{return JSON.parse(x).record}catch{}return null}clear(p,c){this.storage.removeItem(this.buildCacheId(p,c))}clearByEntityType(p){const c=[];for(let o=0;o<this.storage.length;o++){const x=this.storage.key(o);x.startsWith(s)&&this.parseEntityTypeFromCacheId(x)===p&&c.push(x)}c.forEach(o=>this.storage.removeItem(o))}clearAll(){const p=[];for(let c=0;c<this.storage.length;c++){const o=this.storage.key(c);o.startsWith(s)&&p.push(o)}p.forEach(c=>this.storage.removeItem(c))}buildCacheId(p,c){return this.buildStoragePrefixForEntityType(p)+c}buildStoragePrefixForEntityType(p){if(0===p.length||p.indexOf("_")>=0)throw new Error("Entity type empty or contains underscore");return s+p+"_"}parseEntityTypeFromCacheId(p){const c=p.split("_");return 3===c.length?c[1]:null}static#e=this.\u0275fac=function(c){return new(c||i)(e.LFG(n))};static#t=this.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})()},55257:(gt,X,a)=>{"use strict";a.d(X,{W:()=>n});var e=a(19212);let n=(()=>{class s{constructor(){this.CONTENT_SCORE_ICONS_PREFIX="icon-contentScore_",this.CONTENT_SCORE_ICON_GOOD="good",this.CONTENT_SCORE_ICON_ACCEPTABLE="acceptable",this.CONTENT_SCORE_ICON_INSUFFICIENT="insufficient"}calcIntegrityClassificiationIcon(i){const t=i.integrityClassification;if(t)switch(t.name){case"3":return this.CONTENT_SCORE_ICONS_PREFIX+this.CONTENT_SCORE_ICON_INSUFFICIENT;case"2":return this.CONTENT_SCORE_ICONS_PREFIX+this.CONTENT_SCORE_ICON_ACCEPTABLE;case"1":return this.CONTENT_SCORE_ICONS_PREFIX+this.CONTENT_SCORE_ICON_GOOD;default:return}}calcReliabilityClassificiationIcon(i){const t="icon-reliabilityClassification_";if(i.reliabilityClassification)switch(i.reliabilityClassification.name){case"C":return t+"20_orange";case"B":return t+"30_yellow";case"A":return t+"40_green";default:return}}static#e=this.\u0275fac=function(t){return new(t||s)};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac})}return s})()},69258:(gt,X,a)=>{"use strict";a.d(X,{O:()=>e});class e{static convertFromAppearanceToTimeRange(s){if(s)return s.map(l=>({from:l.fromDate,to:l.toDate}))}}},22050:(gt,X,a)=>{"use strict";a.d(X,{m:()=>c});var e=a(19212);const n={cssClass:"deactivated",i18n:"entity.EntityState.deactivated",hasCurrentAppearances:!1,iconClass:"icon-earth-lock"},s={cssClass:"inprogress",i18n:"entity.EntityState.in_progress",hasCurrentAppearances:!1,iconClass:"icon-earth"},l={cssClass:"published",i18n:"entity.EntityState.published",hasCurrentAppearances:!1,iconClass:"icon-earth-confirm"},i={cssClass:"pending",i18n:"entity.EntityState.derived.future",hasCurrentAppearances:!1,iconClass:"icon-published"},t={cssClass:"active",i18n:"entity.EntityState.derived.active",hasCurrentAppearances:!0,iconClass:"icon-published"},p={cssClass:"expired",i18n:"entity.EntityState.derived.expired",hasCurrentAppearances:!1,iconClass:"icon-published"};let c=(()=>{class o{constructor(){this.states=[n,s,l]}getAllEntityStates(){return this.states}determineStateForObject(u,m,b){let I;return I=Object.create(0===u?n:20===u?s:40===u?l:s),this.hasCurrentAppearances(m)?I.hasCurrentAppearances=!0:I.cssClass===l.cssClass&&b&&void 0!==m&&(I.cssClass="inprogress"),I}determineStateForDate(u,m,b=!1){const I=new Date(u),H=new Date(m),O=new Date;return null==u&&null==m||null==m&&null!=u&&O.valueOf()>I.valueOf()||null==u&&null!=m&&O.valueOf()<H.valueOf()||b&&this.isWithinAnnualInterval(I,H)?Object.create(t):b||O.valueOf()<I.valueOf()?Object.create(i):O.valueOf()>H.valueOf()?Object.create(p):Object.create(t)}isWithinRange(u){const m=new Date(u.from),b=new Date(u.to),I=new Date;return m.setHours(0,0,0,0),b.setHours(23,59,59,999),m<=I&&b>=I}isWithinAnnualInterval(u,m){const b=new Date(u),I=b.getDate(),H=b.getMonth(),O=new Date(m),P=O.getDate(),G=O.getMonth(),B=new Date,ae=B.getDate(),J=B.getMonth();return H<=G?H<J&&J<G||(H===G&&J===G?I<=ae&&ae<=P:(H===J||J===G)&&I<=ae):H<J||J<G||(H===J?I<=ae:J===G&&ae<=P)}hasCurrentAppearances(u){return!!(u&&u.length>0&&u.some(m=>this.isWithinRange(m)))}findState(u){const m=this.states.find(b=>b.cssClass==u);if(!m)throw Error("Can't find state for key: "+u);return m}static#e=this.\u0275fac=function(m){return new(m||o)};static#t=this.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})()},96011:(gt,X,a)=>{"use strict";a.d(X,{z:()=>l});var e=a(83416),n=a(21473),s=a(9512);class l extends s.d{constructor(t,p,c,o,x,u){super(t,p,c,o,x,u)}extendFilter(t,p){if(p){const o=this.securityManagerService.getActionsForActionPermission(n.uo.ACTION_PERM_NAME_SEARCH_DEFAULT+this.getSearchCriteriaType());this.evaluateActionDefs(o,t,!1)}const c=this.securityManagerService.getActionsForActionPermission(n.uo.ACTION_PERM_NAME_SEARCH_FIX+this.getSearchCriteriaType());this.evaluateActionDefs(c,t,!0)}evaluateActionDefs(t,p,c){t&&(1!==t.length||"*"!==t[0])&&t.forEach(o=>{const x=o.split(":")[0],u=o.split(":")[1];u&&this.extendFilterByValue(p,this.mapPermissionStrProperty(x),u,c)})}extendFilterByValue(t,p,c,o){if("considerSubclients"===p)return void(t.includeSubClients=c);"DeliveryChannel"===p&&(p="deliveryChannel");const x=this.formConfiguration.findFormFieldById(p);if(x){const u=x.extractor(t);let m=c;u instanceof Array&&(m="currentClient"===c?[this.runtimeContextService.getLoginClient().id]:c.replace(";",",").split(",").map(b=>Number.parseInt(b,10)),m.push(...u),m=[...new Set(m)]),x.insertor(m,t),"productlineIds"===p&&(t.productlineSearchOption=e.FD.ALLPL,o&&(t.productlineIds_fixed=c.replace(";",",")),t.productlineIds=c.replace(";",",")),"deliveryChannel"===p&&o&&(t.deliveryChannel_fixed=!0)}else{if(o)throw new Error("no field definition found for property "+p);console.error("no field definition found for  property "+p)}}mapPermissionStrProperty(t){return"Client"===t?"clientIds":"Productline"===t?"productlineIds":t}}},1009:(gt,X,a)=>{"use strict";a.d(X,{s:()=>b});var e=a(19212),n=a(21473),s=a(79309),l=a(91226),i=a(49193),t=a(96743),p=a(49185),c=a(96776),o=a(53075),x=a(96124),u=a(62192),m=a(3775);class b extends u.p{constructor(H,O,P,G,B,ae,J,q,j){super(H,O,P,G,B,ae,J,q),this.configurationProvider=j,this.assignedProductlinesChanged$=l.E,this.portalContextPlsService=(0,e.f3M)(m.$),this.isOwner$=this.baseObject$.pipe((0,t.zg)(Y=>{if(this.isNewEntity())return(0,i.of)(!0);if(Y.client){const K=Y.client;if(K.id)return this.runtimeContext.isOwnedEntity(K.id)}return(0,i.of)(!1)}),(0,p.d)(1)),this.formGroup.get("productlineIds")&&(this.assignedProductlinesChanged$=this.formGroup.get("productlineIds").valueChanges.pipe((0,c.b)(10)))}getFormModel(){return this.formGroup.getRawValue()}isOwnedEntity(){return this.isOwner$}isNewEntity(){return null==this.baseObject.id}isDeactivated(){return this.baseObject$.pipe((0,o.O)(!1),(0,x.U)(H=>this.isDeactivatedRecord(H)))}isDeactivatedRecord(H){return!!H.entityState&&H.entityState.key===s.Zr.key}isContactListsEnabled(){return this.configurationProvider.getBooleanFromSnapshot(n.x3.PLATFORM_CONTACTLISTS_ENABLED,!1)}handleCitySelection(H,O){if(H.zipcodes&&H.zipcodes.length>0&&this.formGroup.get(O)){const P=this.formGroup.get(O).value;H.zipcodes.some(G=>G.zipcode==P)||this.formGroup.get(O).setValue(H.zipcodes[0].zipcode)}}handleZipcodeSelection(H,O,P,G){O?this.formGroup.get(P).setValue(O):H.zipcodes&&H.zipcodes.length>0&&this.formGroup.get(P)?this.formGroup.get(P).setValue(H.zipcodes[0].zipcode):this.formGroup.get(P).setValue(""),this.formGroup.get(G)&&this.formGroup.get(G).setValue(H.name)}resetGeoInfoData(H){this.formGroup.get("geoInfo.city")&&this.formGroup.get("geoInfo.city").setValue(null),this.formGroup.get("geoInfo.zipcode")&&this.formGroup.get("geoInfo.zipcode").setValue(null),this.formGroup.get("location")&&this.formGroup.get("location").setValue(H.id),this.formGroup.get("regions")&&(H.regions&&0!==H.regions.length?this.formGroup.get("regions").setValue(H.regions.map(O=>O.id)):this.formGroup.get("regions").setValue([]))}isProductlinePanelVisible(H){const O=this.imxSecurityManagerService.getActionsForActionPermission(n.uo.ACTION_PERM_NAME_EDIT_PRODUCTLINES);if(n.Xh.isPropertyAccepted(H.toString(),O))return!0;const P=this.imxSecurityManagerService.getActionsForActionPermission(n.uo.ACTION_PERM_NAME_VISIBLE_PRODUCTLINES);return!!n.Xh.isPropertyAccepted(H.toString(),P)}checkProductlineEditActionPermissions(H){const O=this.imxSecurityManagerService.getActionsForActionPermission(n.uo.ACTION_PERM_NAME_EDIT_PRODUCTLINES),P=this.checkProductlineChanges(H,O);if(P.length>0)return P;{const G=this.imxSecurityManagerService.getActionsForActionPermission(n.uo.ACTION_PERM_NAME_EDIT_ENTITY_ASSIGNED_PRODUCTLINES);return this.checkProductlineChanges(H,G)}}hasMediaAssignmentRemovePermission(H){return(0,i.of)(!(H&&H.length>0&&this.portalContextPlsService.hasDeniedContextPls(H,this.getEntityType())))}checkProductlineChanges(H,O){return 1===O.length&&"*"===O[0]?[]:H.filter(P=>P!==s.Qm&&P!==s.Ui&&!n.Xh.isPropertyAccepted(P.toString(),O))}validateObjectLanguageChange(H,O){return(0,i.of)(!0)}hasUserCreatePermission(){return this.imxSecurityManagerService.hasPermission(n.uo.F_USER_MANAGEMENT_CREATE)}suggestPermaLinkForLang(H,O){if(this.formGroup.get("title")&&this.formGroup.get("permaLink")){const P=this.formGroup.get("title").value,G=this.formGroup.get("permaLink"),B=G.value;P&&P[H]&&(!B||!B[H]||G.dirty)&&O(H,P[H]).subscribe(ae=>{if(B)B[H]=ae,G.setValue(B);else{const J={_entityType:"I18n"};J[H]=ae,G.setValue(J)}G.markAsDirty()})}}onMediaPanelInit(H){}onMediaRowInit(H,O){}appendLockImportProperty(H){const O=this.readLockedImportProperties();O.push(H),this.saveLockedImportProperties(O)}removeLockImportProperty(H){const O=this.readLockedImportProperties().filter(P=>P!==H);this.saveLockedImportProperties(O)}readLockedImportProperties(){const H=this.formGroup.get("lockedImportProperties").value;let O=[];return H&&H.length>0&&(O=H.split(",")),O}saveLockedImportProperties(H){this.formGroup.get("lockedImportProperties").setValue(H.join(","),{emitEvent:!1})}onAssignedProductlinesChanges(){return this.assignedProductlinesChanged$}}},8801:(gt,X,a)=>{"use strict";a.d(X,{T:()=>p});var e=a(79309),n=a(96743),s=a(49185),l=a(96124),i=a(21473),t=a(27556);class p{constructor(o,x,u,m){this.securityManagerService=o,this.runtimeContextService=x,this.configurationProvider=u,this.platformDataAccessService=m,this.logger=(0,i.jl)("AbstractEntityPermissionService",t.H.name)}buildSavePermissionObservable(o){return o.pipe((0,n.zg)(x=>this.calcSavePermission(x)),(0,s.d)(1))}isImmutable(o){return this.configurationProvider.getString(i.x3.PLATFORM_IMPORT_IMMUTABLE_SOURCES,"").pipe((0,l.U)(x=>x.split(",")),(0,l.U)(x=>{const u=o.map(m=>m.importRun.importSource);return x.some(m=>u.includes(m))}))}isDeactivatedRecord(o){return!!o.entityState&&o.entityState.key===e.Zr.key}getInstanceBasedPermissions(o,x){return this.platformDataAccessService.getEditFieldPermissionsForCoreEntity(o,x)}}},45315:(gt,X,a)=>{"use strict";a.d(X,{z:()=>B});var e=a(56223),n=a(15646),s=a(8367),l=a(21473),i=a(27556),t=a(41621),p=a(71041),c=a(98120),o=a(62934);class x{constructor(J,q){this.formGroup=J,this.runtimeContextService=q,this.logger=(0,l.jl)("FormLanguageHandler",i.H.name),this.objectLanguagesObservable=new s.t(1),this.objectLanguages=[],this.editLanguageObservable=new s.t(1)}getLanguageFormControl(){return this.formGroup.get(o.M)}getObjectLanguages(){const J=this.getLanguageFormControl();if(J){if(!J.value)throw new Error("languageFormControl does not yet have a value");const q=J.value.filter(j=>j&&j.id).map(j=>j.id);return this.runtimeContextService.getLanguages().filter(j=>q.find(Y=>Y===j.id))}return this.runtimeContextService.getLanguages()}getObjectLanguagesObservable(){return this.objectLanguagesObservable}publishObjectLanguages(){this.objectLanguages=this.getObjectLanguages(),this.logger.debug("Use object languages for current record: "+JSON.stringify(this.objectLanguages)),this.objectLanguagesObservable.next(this.objectLanguages),this.editLanguage?this.objectLanguages.find(J=>J.id===this.editLanguage.id)||this.objectLanguages.length>0&&this.publishEditLanguage(this.objectLanguages[0]):this.objectLanguages.length>0&&(this.publishEditLanguage(this.objectLanguages[0]),this.logger.debug("Use fallback. The current language is not an object language: "+JSON.stringify(this.objectLanguages)))}getEditLanguageAsObservable(){return this.editLanguageObservable}getEditLanguage(){return this.editLanguage}publishEditLanguage(J){if(J){const q=this.runtimeContextService.getLanguages().find(j=>j.id===J.id);q&&(this.logger.info("Set current edit language to: "+JSON.stringify(q)),this.editLanguage=q,this.editLanguageObservable.next(q))}}}var u=a(34077),m=a(62411),b=a(19425),I=a(36584),H=a(38996),O=a(20949),P=a(23765),G=a(60092);class B{constructor(J,q,j,Y,K,ne){this.inputFormConfiguration=J,this.formExtensions=q,this.ngControlBuilder=j,this.runtimeContextService=Y,this.formatterService=K,this.formValidator=ne,this.logger=(0,l.jl)("AbstractFormHandler",i.H.name),this.baseObject$=new s.t(1),this.formConfiguration=this.mergeFormConfigurations(J,q),this.formGroup=this.buildReactiveFormDataStructure(this.formConfiguration.fields),this.formLanguage=new x(this.formGroup,Y)}getFormExtensions(){return this.formExtensions}getFieldExtensions(J,q){const j=[];return this.getFormExtensions()&&this.getFormExtensions().forEach(Y=>{Y.extensions.forEach(K=>{K.fieldReference===J&&K.type===q&&j.push(K.extensionField)})}),j}get baseObject(){return this._baseObject}set baseObject(J){const q={};let j=[];const Y=this.formConfiguration.getLanguageField();j=Y?Y.extractor(J).map(K=>K.name):this.runtimeContextService.getLanguages().map(K=>K.name),this.formConfiguration.fields.filter(K=>K instanceof I.A).forEach(K=>{this.transferFieldValueIncoming(K,q,J,j,this.formGroup)}),this.formGroup.reset({},{emitEvent:!1}),this.formGroup.enable({onlySelf:!1,emitEvent:!1}),this.formGroup.patchValue(q),J&&Object.keys(J).indexOf("_dirty")>=0&&this.formGroup.markAsDirty({onlySelf:!0}),this.formLanguage.publishObjectLanguages(),this._baseObject=J,this.baseObject$.next(J),this.logger.debug("patchValues done")}getBaseObjectCopyWithCurrentFormValues(){const J=n(this.baseObject);return this.formConfiguration.fields.forEach(q=>{this.applyFieldValue(this.formGroup,q,J)}),J}transferFieldValueIncoming(J,q,j,Y,K){if(this.adjustLanguagesForField(J,Y,K,!1),j){let ne=J.extractor;J instanceof P.II&&(0,P.l7)(J.type)&&(ne=(0,p.Zw)(J.extractor,this.formatterService.getDecimalSeparator())),J instanceof H.OF&&K.get(J.id).clear();let ee=ne(j);if(null!=ee)if(J instanceof H.OF){const $=[],ue=K.get(J.id);if(!ue)throw new Error("AbstractFormHandler: no FormArray found for field with id "+J.id);ee.forEach(Ke=>{const at={},Le=new e.nJ({});ue.push(Le),J.children.forEach(R=>{const Te=J.childFormControls.get(R.id);if(Te){const me=this.cloneControl(Te);Le.registerControl(R.id,me),this.transferFieldValueIncoming(R,at,Ke,Y,Le)}}),$.push(at)}),this.setPathValueOnObject(q,J.id.split("."),0,$)}else if(J instanceof O.N){const $=K.get(J.id);if(!$)throw new Error("AbstractFormHandler: no FormGroup found for field with id "+J.id);const ue={};J.children.forEach(ge=>{const Ke=J.childFormControls.get(ge.id);if(Ke){const at=this.cloneControl(Ke);$.registerControl(ge.id,at),this.transferFieldValueIncoming(ge,ue,ee,Y,$)}}),this.setPathValueOnObject(q,J.id.split("."),0,ue)}else"true"===ee?ee=!0:"false"===ee&&(ee=!1),this.setPathValueOnObject(q,J.id.split("."),0,ee);else null!=J.initialValue&&this.setPathValueOnObject(q,J.id.split("."),0,J.initialValue)}}applyFieldValue(J,q,j){if(q instanceof H.OF){const Y=J.get(q.id);if(Y){const K=q.extractor(j),ne=[];Y.controls.forEach(ee=>{const $=ee.value[H.rs];if($&&!q.isStrongType&&K){const ue=K.find(ge=>ge.id===$);if(ue)q.children.forEach(ge=>{this.applyFieldValue(ee,ge,ue)}),ne.push(ue);else{const ge={};q.children.forEach(Ke=>{this.applyFieldValue(ee,Ke,ge)}),ne.push(ge)}}else{const ue={};q.children.forEach(ge=>{this.applyFieldValue(ee,ge,ue)}),ne.push(ue)}}),q.insertor(ne,j)}}else if(q instanceof O.N){const Y=J.get(q.id);if(Y){let K=q.extractor(j);if(K||(K={}),q instanceof G.I){const ne=q;(0,t.jg)(j,"productline.id".split("."))===ne.options.moduleId&&(K._entityType||(K._entityType=ne.options.moduleClass),q.children.forEach($=>{this.applyFieldValue(Y,$,K)}),q.insertor(K,j))}else 0===Object.keys(Y.controls).length?q.insertor({},j):(q.children.forEach(ne=>{this.applyFieldValue(Y,ne,K)}),q.insertor(K,j))}}else{const Y=J.get(q.id);if(Y&&q.insertor){let K=q.insertor;q instanceof P.II&&(0,P.l7)(q.type)&&(K=(0,c.sD)(q.insertor,this.formatterService.getDecimalSeparator())),K(Y.value,j)}}}getFormFieldLabel(J){const q=this.formConfiguration.findFormFieldById(J);return q instanceof I.A?q.label:""}getFormValue(J){if(this.formGroup.get(J))return this.formGroup.get(J).value;throw new Error("AbstractFormHandler: no form control found with id "+J)}getFormArrayControl(J,q=this.formGroup){return this.getFormArrayControlOfFormGroup(q,J)}getFormArrayControlOfFormGroup(J,q){const j=J.get(q);if(j&&j instanceof e.vC)return j;throw new Error("cannot find FormArray control with fieldName "+q)}getFormArrayRowEntities(J){return this.getFormArrayControl(J).controls.map(q=>{if(q.get(H.Qy))return q.get(H.Qy).value;this.logger.warn("ArrayField "+J+" does not contain control "+H.Qy)})}getFormArrayRowByEntityId(J,q){return this.getFormArrayControl(J).controls.find(j=>j.get(H.rs)?j.get(H.rs).value===q:(this.logger.warn("ArrayField "+J+" does not contain control "+H.rs),!1))}getFormArrayRowByIndex(J,q){return this.getFormArrayControl(J).at(q)}getFormArrayRowEntityByEntityId(J,q){const j=this.getFormArrayRowByEntityId(J,q);return j&&j.get(H.Qy)?j.get(H.Qy).value:(this.logger.warn("ArrayField "+J+" does not contain control "+H.rs+" neither control "+H.Qy),null)}validateAllFormFields(J,q){let j=!0;return Object.keys(J.controls).forEach(Y=>{const K=J.get(Y);if(K instanceof e.p4)K.markAsTouched(),K&&K.invalid&&(console.log("Invalid form field: "+Y+" parent: "+q,K),j=!1);else if(K instanceof e.nJ){const ne=this.validateAllFormFields(K,Y)&&!K.invalid;ne||console.log("Invalid form group: "+Y+" parent: "+q,K),j=ne&&j&&!K.invalid}else if(K instanceof e.vC){K.invalid&&console.log("Invalid form array: "+Y+" parent: "+q,K);let ne=!0;K.controls.forEach(ee=>{ne=ne&&this.validateAllFormFields(ee,Y)&&j}),j=ne&&j&&!K.invalid}}),j}applyRequiredPropertyDefinitionToField(J){if(J.includes(":")){const q=J.substring(0,J.lastIndexOf(":")),j=J.substring(J.lastIndexOf(":")+1),Y=this.formConfiguration.findFormFieldById(q),K=Y.getChildField(j);if(K instanceof o.o){const ne=[];ne.push(Y.childFormControls.get(j)),this.formGroup.get(q).controls.forEach(ee=>{Object.keys(ee.controls).forEach($=>{$===j&&ne.push(ee.get($))})}),ne.forEach(ee=>this.applyRequiredConstraintToField(K,ee))}}else{const q=this.formConfiguration.findFormFieldById(J),j=this.formGroup.get(J);q&&q instanceof o.o&&j?this.applyRequiredConstraintToField(q,j):console.warn("neither field definition or control found for required property definition "+J)}}applyRequiredConstraintToField(J,q){J.required=!0,J.applyValidatorsToControl(q),q.updateValueAndValidity()}cloneControl(J){let q;return J instanceof e.nJ?(q=new e.nJ({},J.validator,J.asyncValidator),Object.keys(J.controls).forEach(j=>{q.registerControl(j,this.cloneControl(J.get(j)))})):J instanceof e.vC?(q=new e.vC([],J.validator,J.asyncValidator),Object.keys(J.controls).forEach(j=>{q.registerControl(j,this.cloneControl(J[j]))})):q=new e.p4(null,J.validator,J.asyncValidator),q}addNewCollectionRow(J,q=!0,j){const Y=this.formConfiguration.findFormFieldById(J);if(Y){const K=new e.nJ({});return this.addNewFormControlsForRow(Y,K)&&(K.markAsDirty(),K.markAsTouched(),K.updateValueAndValidity()),q&&(j?(j.push(K),j.markAsDirty()):(this.getFormArrayControl(J).push(K),this.getFormArrayControl(J).markAsDirty())),K}throw new Error("cannot find ArrayField with name "+J)}addNewFormControlsForRow(J,q,j=(()=>!0)){let Y=!1;return J.children.filter(j).forEach(K=>{const ne=J.childFormControls.get(K.id);if(ne){const ee=this.cloneControl(ne);q.registerControl(K.id,ee),this.adjustLanguagesForField(K,this.formLanguage.getObjectLanguages().map($=>$.name),q,!0),null!=K.initialValue&&ee.setValue(K.initialValue),Y=!0,K instanceof O.N&&!(K instanceof H.OF)&&this.addNewFormControlsForRow(K,ee)}}),Y}removeLineFromCollection(J,q,j=this.formGroup){const Y=this.getFormArrayControl(J,j);Y.removeAt(q),Y.markAsDirty()}mergeFormConfigurations(J,q){if(q&&q.length>0){let j=J;return q.forEach(Y=>{j=this.applyFormExtensionToFormConfiguration(j,Y),Y.lockableFields?.forEach(K=>{const ne=j.findFormFieldById(K);ne?ne.lockable=!0:this.logger.error("cannot find lockable field with name "+K)})}),j}return J}applyFormExtensionToFormConfiguration(J,q){const j=this.applyFormExtensionToFormConfigurationFields(J,q);return new m.E(j)}applyFormExtensionToFormConfigurationFields(J,q){let j=J.fields;return q.extensions&&q.extensions.forEach(Y=>{switch(Y.type){case u.V.INSERT_BEFORE:case u.V.INSERT_AFTER:j=[...j,Y.extensionField];break;case u.V.REMOVE:j=j.filter(K=>K.id!==Y.fieldReference);break;case u.V.ADD:if(Y.fieldReference){const K=j.find(ne=>ne.id===Y.fieldReference);K instanceof O.N&&K.children.push(Y.extensionField)}else j=[...j,Y.extensionField];break;case u.V.OVERRIDE:j=j.map(K=>{if(K.id===Y.fieldReference)return Y.extensionField;if(K instanceof O.N&&Y.fieldReference.indexOf(":")>-1&&Y.fieldReference.split(O.P)[0]===K.id){const ne=Y.fieldReference.lastIndexOf(O.P),ee=J.findFormFieldById(Y.fieldReference.substring(0,ne));if(ee){const $=ee.children.find(ue=>ue.id===Y.fieldReference.substring(ne+1));$?(ee.children.splice(ee.children.indexOf($),1,Y.extensionField),this.logger.debug("OVERRIDE field definition for "+Y.fieldReference)):this.logger.warn("No childToReplace found. Is it the proper fields OVERRIDE declaration? Declared field OVERRIDE:"+Y.fieldReference)}else this.logger.warn("No GroupField found. Is it the proper fields OVERRIDE declaration? Declared field OVERRIDE:"+Y.fieldReference)}return K})}}),j}buildReactiveFormDataStructure(J){const q={};J.filter(Y=>Y instanceof I.A).filter(Y=>!Y.id.includes(".")).forEach(Y=>q[Y.id]=this.ngControlBuilder.buildControl(Y));const j=new e.nJ(q);return J.filter(Y=>Y instanceof I.A).filter(Y=>Y.id.includes(".")).forEach(Y=>{this.createFormGroupTree(j,Y.id.split("."),0,this.ngControlBuilder.buildControl(Y))}),j}createFormGroupTree(J,q,j,Y){if(j!==q.length-1)if(J.contains(q[j])&&J.get(q[j])instanceof e.nJ)this.createFormGroupTree(J.get(q[j]),q,j+1,Y);else{const K=J.registerControl(q[j],new e.nJ({}));this.createFormGroupTree(K,q,j+1,Y)}else J.addControl(q[j],Y)}setPathValueOnObject(J,q,j,Y){j!==q.length-1?(J[q[j]]||(J[q[j]]={}),this.setPathValueOnObject(J[q[j]],q,j+1,Y)):J[q[j]]=Y}getLanguageFormControl(){return this.formLanguage.getLanguageFormControl()}getObjectLanguages(){return this.formLanguage.getObjectLanguages()}editObjectLanguages(){const J=this.formLanguage.getObjectLanguages().map(q=>q.name);this.i18nForEach(this.formConfiguration.fields,this.formGroup,J,(q,j,Y)=>this.adjustLanguagesForField(q,j,Y,!0)),this.formLanguage.publishObjectLanguages()}updateObjectLanguageContent(J){const q=this.formLanguage.getEditLanguage();this.i18nForEach(this.formConfiguration.fields,this.formGroup,J.map(j=>j.name),(j,Y,K)=>this.copyLanguageContent(j,Y,K,q))}doAdditionalValidation(){return!this.formValidator||this.formValidator.doAdditionalValidation(this)}i18nForEach(J,q,j,Y){J.forEach(K=>{if(K instanceof H.OF){const ne=q.get(K.id);if(!ne)throw new Error("cannot find FormArray for field "+K.id);ne.controls.forEach(ee=>{this.i18nForEach(K.children,ee,j,Y)})}else if(K instanceof O.N){const ne=q.get(K.id);if(!ne)throw new Error("cannot find FormControl for field "+K.id);Object.keys(ne.controls).length>0&&this.i18nForEach(K.children,ne,j,Y)}else Y(K,j,q)})}adjustLanguagesForField(J,q,j,Y){if(q){if(J instanceof b.b){const K=j.get(J.id);if(K){const ne=Object.keys(K.controls);ne.forEach(ee=>{"id"!==ee&&"_entityType"!==ee&&!q.find($=>$===ee)&&K.removeControl(ee)}),q.forEach(ee=>{if(!ne.find($=>$===ee)){const $=new e.p4;K.registerControl(ee,$),Y&&($.markAsTouched(),$.markAsDirty(),$.updateValueAndValidity())}}),J.applyValidatorsToControl(K),K.parent.updateValueAndValidity()}else this.logger.error("no i18n form group found for field "+J.id)}}else this.logger.error("adjustLanguagesForField for field "+J.id+" needs languages but none are provided")}copyLanguageContent(J,q,j,Y){if(q){if(J instanceof b.b){const K=j.get(J.id);K?q.forEach(ne=>{if(Object.keys(K.controls).find(ee=>ee===ne)&&Object.keys(K.controls).find(ee=>ee===Y.name)){const ee=n(K.get(Y.name).value),$=K.get(ne);$.value||$.setValue(ee),$.markAsTouched(),$.markAsDirty(),$.updateValueAndValidity()}}):this.logger.error("no i18n form group found for field "+J.id)}}else this.logger.error("copyLanguageContent for field "+J.id+" needs addedLanguages but none are provided")}}},9512:(gt,X,a)=>{"use strict";a.d(X,{d:()=>s});var e=a(21473),n=a(45315);class s extends n.z{constructor(i,t,p,c,o,x){super(i,t,p,c,o,void 0),this.securityManagerService=x,this.visibilityProps=this.securityManagerService.getActionsForVisibilityPermissionForSearchCriteria(this.getSearchCriteriaType())}hasSearchFieldReadPermission(i){return e.Xh.isPropertyAccepted(i,this.visibilityProps)}extendFilter(i,t){}}},62192:(gt,X,a)=>{"use strict";a.d(X,{p:()=>K});var e=a(97582),n=a(3579),s=a(23291),l=a(12594),i=a(11280),t=a(40254),p=a(47279),c=a(6735),o=a(96258);function x(...ne){const ee=ne[ne.length-1];return"function"==typeof ee&&ne.pop(),(0,l.n)(ne,void 0).lift(new u(ee))}class u{constructor(ee){this.resultSelector=ee}call(ee,$){return $.subscribe(new m(ee,this.resultSelector))}}class m extends t.L{constructor(ee,$,ue=Object.create(null)){super(ee),this.iterators=[],this.active=0,this.resultSelector="function"==typeof $?$:null,this.values=ue}_next(ee){const $=this.iterators;(0,i.k)(ee)?$.push(new I(ee)):$.push("function"==typeof ee[o.hZ]?new b(ee[o.hZ]()):new H(this.destination,this,ee))}_complete(){const ee=this.iterators,$=ee.length;if(this.unsubscribe(),0!==$){this.active=$;for(let ue=0;ue<$;ue++){let ge=ee[ue];ge.stillUnsubscribed?this.destination.add(ge.subscribe(ge,ue)):this.active--}}else this.destination.complete()}notifyInactive(){this.active--,0===this.active&&this.destination.complete()}checkIterators(){const ee=this.iterators,$=ee.length,ue=this.destination;for(let at=0;at<$;at++){let Le=ee[at];if("function"==typeof Le.hasValue&&!Le.hasValue())return}let ge=!1;const Ke=[];for(let at=0;at<$;at++){let Le=ee[at],R=Le.next();if(Le.hasCompleted()&&(ge=!0),R.done)return void ue.complete();Ke.push(R.value)}this.resultSelector?this._tryresultSelector(Ke):ue.next(Ke),ge&&ue.complete()}_tryresultSelector(ee){let $;try{$=this.resultSelector.apply(this,ee)}catch(ue){return void this.destination.error(ue)}this.destination.next($)}}class b{constructor(ee){this.iterator=ee,this.nextResult=ee.next()}hasValue(){return!0}next(){const ee=this.nextResult;return this.nextResult=this.iterator.next(),ee}hasCompleted(){const ee=this.nextResult;return ee&&ee.done}}class I{constructor(ee){this.array=ee,this.index=0,this.length=0,this.length=ee.length}[o.hZ](){return this}next(ee){const $=this.index++;return $<this.length?{value:this.array[$],done:!1}:{value:null,done:!0}}hasValue(){return this.array.length>this.index}hasCompleted(){return this.array.length===this.index}}class H extends p.L{constructor(ee,$,ue){super(ee),this.parent=$,this.observable=ue,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[o.hZ](){return this}next(){const ee=this.buffer;return 0===ee.length&&this.isComplete?{value:null,done:!0}:{value:ee.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(ee,$,ue,ge,Ke){this.buffer.push($),this.parent.checkIterators()}subscribe(ee,$){return(0,c.D)(this,this.observable,this,$)}}var O=a(49193),P=a(54699),G=a(75222),B=a(96124),ae=a(49185),J=a(96743),q=a(16603),j=a(45315),Y=a(62934);class K extends j.z{constructor(ee,$,ue,ge,Ke,at,Le,R){super(ee,$,ue,Ke,at,R),this.imxSecurityManagerService=ge,this.runtimeContext=Ke,this.entityPermissionService=Le,this.editFieldPermissionsCache=new Map,this.blockedByAction$=this.baseObject$.pipe((0,G.w)(Te=>this.actionsState$.pipe((0,B.U)(me=>(0,q.bN)(me,this.getEntityType(),Te.id)))),(0,ae.d)(1)),this.savePermission$=(0,s.aj)([Le.buildSavePermissionObservable(this.baseObject$),this.blockedByAction$]).pipe((0,B.U)(([Te,me])=>Te&&!me))}getFieldPermission(ee){return x(this.hasReadPermission(ee),this.hasEditPermission(ee),this.hasSavePermission()).pipe((0,B.U)(([$,ue,ge])=>({read:$,write:ue,saveEntity:ge})))}hasReadPermission(ee){return this.isOwnedEntity().pipe((0,B.U)($=>this.imxSecurityManagerService.hasPropertyVisibilityPermission(this.getEntityType(),ee,$)))}hasEditPermission(ee){return this.isOwnedEntity().pipe((0,B.U)($=>this.imxSecurityManagerService.hasPropertyEditPermission(this.getEntityType(),ee,$)),(0,J.zg)($=>{if(!$)return(0,O.of)($);const ue=this.getEditFieldPermissions(this.getEntityType(),this.baseObject.id);return this.imxSecurityManagerService.hasInstanceBasedEditPermission(ee,this.getEntityType(),ue).pipe((0,B.U)(ge=>void 0===ge?$:ge))}))}hasSavePermission(){return this.savePermission$}hasEditAndSavePermission(ee){return x(this.hasEditPermission(ee),this.hasSavePermission()).pipe((0,B.U)(([$,ue])=>$&&ue))}isFieldEditable(ee){const $=this.formConfiguration.findFormFieldById(ee);if($){if($ instanceof Y.o)return $.readOnly?(0,O.of)(!1):this.hasSavePermission().pipe((0,J.zg)(ue=>ue?this.hasEditPermission($.permissionId):(0,O.of)(!1)));console.error("field is not an instance of AbstractField; wrong configuration?",$)}else console.error("cannot find field with id "+ee)}isBlockedByAction(){return this.blockedByAction$}getEditFieldPermissions(ee,$){return null==$?(0,O.of)([]):(void 0===this.editFieldPermissionsCache.get($)&&this.editFieldPermissionsCache.set($,this.entityPermissionService.getInstanceBasedPermissions(ee,$)),this.editFieldPermissionsCache.get($))}}(0,e.__decorate)([(0,n.Ph)(q.$W),(0,e.__metadata)("design:type",P.y)],K.prototype,"actionsState$",void 0)},80222:(gt,X,a)=>{"use strict";a.d(X,{g:()=>o});var e=a(79309),n=a(23291),s=a(75222),l=a(96124),i=a(21473),t=a(22819),p=a(8801),c=a(19212);let o=(()=>{class x extends p.T{constructor(m,b,I,H){super(m,b,I,H),this.imxSecurityManagerService=m,this.runtimeContext=b,this.configurationProvider=I,this.dataAccessService=H}getEntityType(){return"AddressPoi"}calcReadPermissionById(m){return this.dataAccessService.getAddressPoiById(m).pipe((0,s.w)(b=>this.calcReadPermission(b)))}calcReadPermission(m){return this.runtimeContext.getCurrentAndSubClients().pipe((0,l.U)(b=>Array.from(b).map(I=>I.id)),(0,l.U)(b=>!!(this.imxSecurityManagerService.hasPermission(i.uo.F_ADDRESSPOI_READ_ALL)||m.types.includes(e.zc)&&this.imxSecurityManagerService.hasPermission(i.uo.F_ADDRESSPOI_CONTACT_READ_ALL)||m.types.includes(e.pv)&&this.imxSecurityManagerService.hasPermission(i.uo.F_ADDRESSPOI_LOCATION_READ_ALL)||m.types.includes(e.GZ)&&this.imxSecurityManagerService.hasPermission(i.uo.F_ADDRESSPOI_CONTRIBUTOR_READ_ALL)||this.imxSecurityManagerService.hasDirectPermission(i.uo.F_ADDRESSPOI_READ_OWN_CLIENT)||m.types.includes(e.zc)&&this.imxSecurityManagerService.hasPermission(i.uo.F_ADDRESSPOI_CONTACT_READ_OWN_CLIENT)||m.types.includes(e.pv)&&this.imxSecurityManagerService.hasPermission(i.uo.F_ADDRESSPOI_LOCATION_READ_OWN_CLIENT)||m.types.includes(e.GZ)&&this.imxSecurityManagerService.hasPermission(i.uo.F_ADDRESSPOI_CONTRIBUTOR_READ_OWN_CLIENT)&&m.client&&b.some(I=>I===m.client.id))||!!(this.imxSecurityManagerService.hasDirectPermission(i.uo.F_ADDRESSPOI_READ_OWN_USER)||m.types.includes(e.zc)&&this.imxSecurityManagerService.hasPermission(i.uo.F_ADDRESSPOI_CONTACT_READ_OWN_USER)||m.types.includes(e.pv)&&this.imxSecurityManagerService.hasPermission(i.uo.F_ADDRESSPOI_LOCATION_READ_OWN_USER)||m.types.includes(e.GZ)&&this.imxSecurityManagerService.hasPermission(i.uo.F_ADDRESSPOI_CONTRIBUTOR_READ_OWN_USER)&&m.addressbaseUser&&m.addressbaseUser.id===this.runtimeContext.getLoginUser().id)))}calcSavePermissionById(m){return this.dataAccessService.getAddressPoiById(m).pipe((0,s.w)(b=>this.calcSavePermission(b)))}calcSavePermission(m){const b=this.runtimeContext.getCurrentAndSubClients().pipe((0,l.U)(I=>Array.from(I).map(H=>H.id)),(0,l.U)(I=>{let H=!1;return this.isDeactivatedRecord(m)||(this.imxSecurityManagerService.hasAnyPermission([i.uo.F_ADDRESSPOI_LOCATION_UPDATE_ALL,i.uo.F_ADDRESSPOI_CONTRIBUTOR_UPDATE_ALL,i.uo.F_ADDRESSPOI_CONTACT_UPDATE_ALL])||this.imxSecurityManagerService.hasAnyPermission([i.uo.F_ADDRESSPOI_LOCATION_CREATE,i.uo.F_ADDRESSPOI_CONTRIBUTOR_CREATE,i.uo.F_ADDRESSPOI_CONTACT_CREATE])&&!m.id||this.imxSecurityManagerService.hasAnyPermission([i.uo.F_ADDRESSPOI_LOCATION_UPDATE_OWN_CLIENT,i.uo.F_ADDRESSPOI_CONTRIBUTOR_UPDATE_OWN_CLIENT,i.uo.F_ADDRESSPOI_CONTACT_UPDATE_OWN_CLIENT])&&m.client&&I.some(O=>O===m.client.id)||this.imxSecurityManagerService.hasAnyPermission([i.uo.F_ADDRESSPOI_LOCATION_UPDATE_OWN_USER,i.uo.F_ADDRESSPOI_CONTRIBUTOR_UPDATE_OWN_USER,i.uo.F_ADDRESSPOI_CONTACT_UPDATE_OWN_USER])&&m.addressbaseUser&&m.addressbaseUser.id===this.runtimeContext.getLoginUser().id)&&(H=!0),H}));if(m.importInfos&&m.importInfos.length>0){const I=this.isImmutable(m.importInfos);return(0,n.aj)([I,b]).pipe((0,l.U)(([H,O])=>!0===O&&!1===H))}return b}static#e=this.\u0275fac=function(b){return new(b||x)(c.LFG(i.Xh),c.LFG(i.Ze),c.LFG(i.Pc),c.LFG(t.nq))};static#t=this.\u0275prov=c.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"})}return x})()},48689:(gt,X,a)=>{"use strict";a.d(X,{Tp:()=>ae,l:()=>H,ov:()=>B});var e=a(19212),n=a(83416),s=a(22819),l=a(21473),i=a(98120),t=a(62361),p=a(72764),c=a(96011),o=a(32961),x=a(71041),u=a(62411),m=a(60075),b=a(20171),I=a(70612);const H=new e.OlP("imxplatform.filterforms.addresspoi"),O=new e.OlP("imxplatform.filterformextensions.addresspoi"),B=new u.E([...function P(){return[...(0,o.K)("AddressPoi"),new p.N("entityState","filter.AddressPoi.entityState",{optionProvider:I.K,rowLayout:!1,big:!0,extractor:(0,x.Id)("entityState"),insertor:(0,i.AA)("entityState"),required:!1}),new p.N("addressPoiTypes","filter.AddressPoi.addressPoiTypes",{optionProvider:b.B,rowLayout:!1,big:!0,extractor:(0,x.Id)("addressPoiTypes"),insertor:(0,i.AA)("addressPoiTypes"),required:!1}),new t.A("includeSubClasses","",{required:!1,initialValue:s.t0.WITHSUBCLASSES,insertor:(0,i.wq)("includeSubClasses"),extractor:(0,x.YL)("includeSubClasses")})]}(),...(0,o.H_)("AddressPoi"),...function G(J){return[new t.A("fulltext","filter."+J+".fulltext",{required:!1}),new t.A("fulltextSearchOption","filter."+J+".fulltextSearchOption",{required:!1,initialValue:n.wK.ANDSEARCH}),new t.A("restrictTitle","filter."+J+".restrictTitle",{required:!1,initialValue:!0,extractor:(0,x.Uk)("restrictTitle")}),new t.A("restrictContactName","filter."+J+".restrictContactName",{required:!1,extractor:(0,x.Uk)("restrictContactName")}),new t.A("restrictCity","filter."+J+".restrictCity",{required:!1,extractor:(0,x.Uk)("restrictCity")}),new t.A("restrictStreet","filter."+J+".restrictStreet",{required:!1,extractor:(0,x.Uk)("restrictStreet")}),new t.A("restrictLastName","filter."+J+".restrictLastName",{required:!1,extractor:(0,x.Uk)("restrictLastName")}),new t.A("exactOption","filter."+J+".exactOption",{required:!1}),new t.A("andOption","filter."+J+".andOption",{required:!1}),new t.A("orOption","filter."+J+".orOption",{required:!1}),new t.A("restrict","filter."+J+".restrict",{required:!1})]}("AddressPoi"),...(0,o.OR)("AddressPoi"),...(0,o.vK)("AddressPoi"),...(0,o.WF)()]);let ae=(()=>{class J extends c.z{constructor(j,Y,K,ne,ee,$){super(j,Y,K,ee,$,ne),this.imxSecurityManagerService=ne,this.runtimeContextService=ee,this.formatterService=$}getEntityType(){return"AddressPoi"}getSearchCriteriaType(){return"AddressPoiSearchCriteria"}static#e=this.\u0275fac=function(Y){return new(Y||J)(e.LFG(H),e.LFG(O,8),e.LFG(m.EG),e.LFG(l.Xh),e.LFG(l.Ze),e.LFG(l.H1))};static#t=this.\u0275prov=e.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"})}return J})()},67947:(gt,X,a)=>{"use strict";a.d(X,{dC:()=>O,qx:()=>P,yq:()=>b});var e=a(19212),n=a(21473),s=a(62934),l=a(32961),i=a(6880),t=a(1009),p=a(71041),c=a(62411),o=a(98120),x=a(23765),u=a(60075),m=a(80222);const b=new e.OlP("imxplatform.forms.addresspoi"),I=new e.OlP("imxplatform.formextensions.addresspoi");function H(){return(0,i.k)("AddressPoi")}const O=new c.E([l.Hp.createField("title",H()),l.Hp.createField("subTitle",H()),l.Hp.createField(s.M),l.Hp.createField("types",H()),l.Hp.createField("client",H()),new x.II("text","addressbaseUser","entity.AddressPoi.addressbaseUser",{readonly:!0,extractor:(0,p.YL)("addressbaseUser.id"),insertor:(0,o.G3)()}),l.Hp.createField("entityState",H()),l.Hp.createField("author",H()),l.Hp.createField("mediaLicense",H()),l.Hp.createField("attributes",H()),...(0,l.kF)("contact1","entity.AddressPoi.contact1"),l.Hp.createField("socialMedia",H()),l.Hp.createField("addSocialMediaField",H()),...(0,l.e7)(),l.Hp.createField("location",H()),l.Hp.createField("regions",H()),l.Hp.createField("regions_adv",H()),...(0,l.f7)()]);let P=(()=>{class G extends t.s{constructor(ae,J,q,j,Y,K,ne,ee){super(ae,J,q,j,K,Y,ee,void 0,ne),this.imxSecurityManagerService=j,this.formatterService=Y}getEntityType(){return"AddressPoi"}static#e=this.\u0275fac=function(J){return new(J||G)(e.LFG(b),e.LFG(I,8),e.LFG(u.EG),e.LFG(n.Xh),e.LFG(n.H1),e.LFG(n.Ze),e.LFG(n.Pc),e.LFG(m.g))};static#t=this.\u0275prov=e.Yz7({token:G,factory:G.\u0275fac,providedIn:"root"})}return G})()},53502:(gt,X,a)=>{"use strict";a.d(X,{m:()=>p});var e=a(75222),n=a(96124),s=a(21473),l=a(22819),i=a(8801),t=a(19212);let p=(()=>{class c extends i.T{constructor(x,u,m,b){super(x,u,m,b),this.imxSecurityManagerService=x,this.runtimeContext=u,this.configurationProvider=m,this.dataAccessService=b}getEntityType(){return"Article"}calcReadPermissionById(x){return this.dataAccessService.getArticleById(x).pipe((0,e.w)(u=>this.calcReadPermission(u)))}calcReadPermission(x){return this.runtimeContext.getCurrentAndSubClients().pipe((0,n.U)(u=>Array.from(u).map(m=>m.id)),(0,n.U)(u=>!!(this.imxSecurityManagerService.hasPermission(s.uo.F_ARTICLE_READ_ALL)||this.imxSecurityManagerService.hasDirectPermission(s.uo.F_ARTICLE_READ_OWN_CLIENT)&&x.client&&u.some(m=>m===x.client.id))||!(!this.imxSecurityManagerService.hasDirectPermission(s.uo.F_ARTICLE_READ_OWN_USER)||!x.articleUser||x.articleUser.id!==this.runtimeContext.getLoginUser().id)))}calcSavePermissionById(x){return this.dataAccessService.getArticleById(x).pipe((0,e.w)(u=>this.calcSavePermission(u)))}calcSavePermission(x){return this.runtimeContext.getCurrentAndSubClients().pipe((0,n.U)(u=>Array.from(u).map(m=>m.id)),(0,n.U)(u=>{let m=!1;return this.isDeactivatedRecord(x)||(this.imxSecurityManagerService.hasPermission(s.uo.F_ARTICLE_UPDATE_ALL)||this.imxSecurityManagerService.hasPermission(s.uo.F_ARTICLE_CREATE)&&!x.id||this.imxSecurityManagerService.hasDirectPermission(s.uo.F_ARTICLE_UPDATE_OWN_CLIENT)&&x.client&&u.some(b=>b===x.client.id)||this.imxSecurityManagerService.hasDirectPermission(s.uo.F_ARTICLE_UPDATE_OWN_USER)&&x.articleUser&&x.articleUser.id===this.runtimeContext.getLoginUser().id)&&(m=!0),m}))}static#e=this.\u0275fac=function(u){return new(u||c)(t.LFG(s.Xh),t.LFG(s.Ze),t.LFG(s.Pc),t.LFG(l.nq))};static#t=this.\u0275prov=t.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})()},46817:(gt,X,a)=>{"use strict";a.d(X,{DP:()=>o,Y8:()=>m,o:()=>x,rr:()=>u});var e=a(19212),n=a(21473),s=a(96011),l=a(32961),i=a(71041),t=a(62411),p=a(62361),c=a(60075);const o=new e.OlP("imxplatform.filterforms.article"),x=new e.OlP("imxplatform.filterformextensions.article"),u=new t.E([...(0,l.K)("Article"),...(0,l.H_)("Article"),...(0,l._J)("Article"),...(0,l.yH)("Article"),...(0,l.vK)("Article"),...(0,l.Dl)("Article"),...(0,l.WF)(),new p.A("pathXRegionId","filter.Article.pathXRegion",{extractor:(0,i.V6)("pathXRegionId")})]);let m=(()=>{class b extends s.z{constructor(H,O,P,G,B,ae){super(H,O,P,G,B,ae),this.runtimeContextService=G,this.formatterService=B,this.securityManagerService=ae}getEntityType(){return"Article"}getSearchCriteriaType(){return"ArticleSearchCriteria"}static#e=this.\u0275fac=function(O){return new(O||b)(e.LFG(o),e.LFG(x,8),e.LFG(c.EG),e.LFG(n.Ze),e.LFG(n.H1),e.LFG(n.Xh))};static#t=this.\u0275prov=e.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})()},47357:(gt,X,a)=>{"use strict";a.d(X,{Di:()=>B,Ek:()=>ae,HO:()=>O,Vm:()=>P});var e=a(19212),n=a(21473),s=a(1009),l=a(71041),i=a(98120),t=a(62934),p=a(62361),c=a(66175),o=a(57462),x=a(32961),u=a(6880),m=a(62411),b=a(71049),I=a(60075),H=a(53502);const O=new e.OlP("imxplatform.forms.article"),P=new e.OlP("imxplatform.formextensions.article");function G(){return(0,u.k)("Article")}const B=new m.E([x.Hp.createField("title",G()),x.Hp.createField("subTitle",G()),x.Hp.createField("shortDescription",G()),x.Hp.createField("longDescription",G()),x.Hp.createField(t.M),x.Hp.createField("client",G()),new p.A("articleUser","entity.Article.articleUser",{extractor:(0,l.YL)("articleUser.id"),insertor:(0,i.wq)("articleUser.id")}),x.Hp.createField("permaLink",G()),x.Hp.createField("htmlHeadTitle",G()),x.Hp.createField("searchKeywords",G()),x.Hp.createField("htmlHeadMetaDescription",G()),x.Hp.createField("canonicalUrl",G()),new c.A("link","entity.Article.link",{extendedValidators:o.Y2}),new c.A("linkText","entity.Article.linkText"),x.Hp.createField("author",G()),x.Hp.createField("mediaLicense",G()),x.Hp.createField("socialMedia",G()),x.Hp.createField("addSocialMediaField",G()),...(0,x.e7)(),x.Hp.createField("regions",G()),x.Hp.createField("regions_adv",G()),x.Hp.createField("media",(0,u.k)("ArticleImage")),x.Hp.createField("entityState",G()),x.Hp.createField("articleAppearances"),x.Hp.createField("articlePendingAppearances"),x.Hp.createField("articleRefusedAppearances"),...(0,x.f7)(),x.Hp.createField("metainfos"),x.Hp.createField("productlineIds"),x.Hp.createField("attributeDefinitions"),x.Hp.createField("lockedImportProperties")]);let ae=(()=>{class J extends s.s{constructor(j,Y,K,ne,ee,$,ue,ge,Ke){super(j,[$.getModulesFormExtension("Article"),...Y||[]],K,ne,ue,ee,Ke,void 0,ge),this.imxSecurityManagerService=ne,this.formatterService=ee,this.moduleFormConfigurationService=$}getEntityType(){return"Article"}hasArticleAssignUserPermission(){return this.imxSecurityManagerService.hasPermission(n.uo.F_ARTICLE_ASSIGN_USER)}static#e=this.\u0275fac=function(Y){return new(Y||J)(e.LFG(O),e.LFG(P,8),e.LFG(I.EG),e.LFG(n.Xh),e.LFG(n.H1),e.LFG(b.L),e.LFG(n.Ze),e.LFG(n.Pc),e.LFG(H.m))};static#t=this.\u0275prov=e.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"})}return J})()},34115:(gt,X,a)=>{"use strict";a.d(X,{CJ:()=>H,D_:()=>x,EW:()=>m,J5:()=>b,Q:()=>o,Tt:()=>B,V9:()=>I,ch:()=>u,eN:()=>G,pN:()=>O});var e=a(19212),n=a(21473),s=a(45315),l=a(97049),i=a(62411),t=a(62361),p=a(60075),c=a(818);const o="imxplatform_core",x="ibe_mapping",u=-2,m="modules_event",b=-3,I=new e.OlP("imxplatform.filterformextensions.basentity"),H=new t.A("moduleName","",{required:!1,initialValue:o}),O=new t.A("entityName","",{required:!1,initialValue:""}),P=new i.E([H,O]),G=new e.OlP("imxplatform.module.base-entity.config");let B=(()=>{class ae extends s.z{constructor(q,j,Y,K,ne,ee,$){super(P,q,Y,K,ee),this.runtimeContextService=K,this.imxSecurityManagerService=ne,this.moduleBaseEntityFormConfigurations=$,this.configMap=new Map,this.baseEntityFormExtensions=j||[]}getEntityType(){return"BaseEntity"}getBaseEntityConfig(q,j){const Y=q+"-"+j;let K=this.configMap.get(Y);if(K)return K;{const ne=q&&""!==q?q:o,ee=this.moduleBaseEntityFormConfigurations.filter($=>$.moduleKey===ne);if(0===ee.length)this.logger.debug("no BaseEntity configs found for module "+q),K=this.getDefaultBaseEntityConfig(j);else{const $=[];ee.forEach(ue=>{let ge=ue.baseEntityFormConfigurations.find(at=>at.entityName==j);const Ke=this.baseEntityFormExtensions.filter(at=>at.baseEntityTypeName===j);if(Ke&&Ke.length>0)for(const at of Ke)ge=this.applyBaseEntityFormExtensionToFormConfiguration(ge,at);ge&&$.push(ge)}),0===$.length?(j&&this.logger.debug("no BaseEntity config found for entity "+j),K=this.getDefaultBaseEntityConfig(j)):K=$[$.length-1]}return this.configMap.set(Y,K),K}}applyBaseEntityFormExtensionToFormConfiguration(q,j){const Y=this.applyFormExtensionToFormConfigurationFields(q,j),K=new l.ln(q.entityName,Y);return K.filterFields=q.filterFields,K.filterPredicates=q.filterPredicates,K.baseEntityDialog=q.baseEntityDialog,K.containsI18nFields=q.containsI18nFields,K.sortPredicates=q.sortPredicates,K.baseEntityDialog=q.baseEntityDialog,K.dataSourceToken=q.dataSourceToken,K.actions=q.actions,K.optionalOrderFields=q.optionalOrderFields,K}getDefaultBaseEntityConfig(q){const j=l.pD;return j.entityName=q,j}static#e=this.\u0275fac=function(j){return new(j||ae)(e.LFG(I,8),e.LFG(c.s,8),e.LFG(p.EG),e.LFG(n.Ze),e.LFG(n.Xh),e.LFG(n.H1),e.LFG(G))};static#t=this.\u0275prov=e.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"})}return ae})()},818:(gt,X,a)=>{"use strict";a.d(X,{_:()=>l,s:()=>s});var e=a(19212),n=a(45315);const s=new e.OlP("imxplatform.formextensions.basentity");class l extends n.z{constructor(t,p,c,o,x){super(t,[],p,c,x),this.baseEntityFormConfiguration=t,this.runtimeContextService=c,this.imxSecurityManagerService=o,this.formatterService=x}getEntityType(){return"BaseEntity"}}},61291:(gt,X,a)=>{"use strict";a.d(X,{X:()=>n});var e=a(19212);let n=(()=>{class s{openBaseEntityInNewTab(i,t,p,c,o,x,u){window.open(`base-entities?moduleName=${i}&entityName=${t}&page=${p}&orderField=${c}&orderDirection=${o}&openImmediately=${x}&id=${u}`,"_blank")}static#e=this.\u0275fac=function(t){return new(t||s)};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})()},86228:(gt,X,a)=>{"use strict";a.d(X,{mK:()=>qs,kF:()=>Ks});var e=a(56223),n=a(17700),s=a(49193),l=a(23291),i=a(17927),t=a(96124),p=a(72069),c=a(22819),o=a(48485),x=a(59143),u=a(88535),m=a(19212),b=a(96814),I=a(71365),H=a(33946);const O=["dialogFrame"];function P(Mi,or){1&Mi&&(m.TgZ(0,"p",8)(1,"span",9),m._uU(2,"imxplatform.resolve-region-reference-dialog.loading-info"),m.qZA()())}const G=Mi=>({id:Mi});let B=(()=>{class Mi extends p.D{constructor(Ki,Ao,Go,dr){super(Ki),this.data=Ki,this.platformDataAccessService=Ao,this.permissionServiceRegistry=Go,this.userMessageService=dr,this.formGroup=new e.nJ({}),this.isLoading=!1,this.hasSavePermission$=(0,s.of)(!1)}ngOnInit(){this.loadReferences()}loadReferences(){this.isLoading=!0,this.referenceSpecification$=this.platformDataAccessService.getReferenceSpecification(this.data.dataObject._entityType,this.data.dataObject.id,{},this.userMessageService).pipe((0,i.b)(Ki=>{if(this.referenceSpecification=Ki,this.hasSavePermission$=(0,s.of)(!0),Ki&&Ki.references.length>0){const Ao=[];Ki.references.forEach(Go=>{Ao.push(this.hasSavePermission((0,u.nt)(Go),(0,u.zv)(Go)))}),this.hasSavePermission$=(0,l.aj)(Ao).pipe((0,t.U)(Go=>(this.isLoading=!1,Go.reduce((dr,pn)=>dr&&pn))))}},Ki=>{this.isLoading=!1}))}hasSavePermission(Ki,Ao){const Go=this.permissionServiceRegistry.getEntityPermissionService(Ki);return Go?Go.calcSavePermissionById(Ao).pipe((0,t.U)(dr=>dr)):(0,s.of)(!0)}handleResolveAction(){const Ki={actionKey:"region-action-resolve-references",entityType:"Region",entityIds:[this.data.dataObject.id],actionParams:{}};this.isLoading=!0,this.platformDataAccessService.callAction(Ki).subscribe(Ao=>{0===Ao.length?this.userMessageService.showError("imxplatform.resolve-region-reference-dialog.saved-error"):this.userMessageService.showInfo("imxplatform.resolve-region-reference-dialog.saved-successfull-msg"),this.isLoading=!1,this.dialogFrame.close(!0)},Ao=>{this.isLoading=!1})}onCancel(){this.dialogFrame.close(null)}getReferencesInfoTextKey(){return"imxplatform.resolve-region-reference-dialog.references"}static#e=this.\u0275fac=function(Ao){return new(Ao||Mi)(m.Y36(n.WI),m.Y36(c.nq),m.Y36(o.J),m.Y36(x.Y))};static#t=this.\u0275cmp=m.Xpm({type:Mi,selectors:[["ng-component"]],viewQuery:function(Ao,Go){if(1&Ao&&m.Gf(O,7),2&Ao){let dr;m.iGM(dr=m.CRH())&&(Go.dialogFrame=dr.first)}},features:[m.qOj],decls:10,vars:17,consts:[["icon","icon-fingerprint","dialogType","form",3,"heading","submitButtonLabel","submitButtonDisabled","icon","useEvents","onConfirm","onCancel"],["dialogFrame",""],["id","region-resolve",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[1,"dialog-txt-md",3,"innerHTML"],["class","dialog-txt-md txt-hint",4,"ngIf"],[3,"referenceSpecification$","referencesInfoText"],[1,"dialog-txt-md","txt-hint"],["translate",""]],template:function(Ao,Go){1&Ao&&(m.TgZ(0,"imx-dialog",0,1),m.NdJ("onConfirm",function(){return Go.handleResolveAction()})("onCancel",function(){return Go.onCancel()}),m.TgZ(2,"form",2)(3,"div",3)(4,"div",4),m._UZ(5,"p",5),m.ALo(6,"translate"),m.YNc(7,P,3,0,"p",6),m.ALo(8,"async"),m._UZ(9,"imx-data-object-references",7),m.qZA()()()()),2&Ao&&(m.Q6J("heading","imxplatform.resolve-region-reference-dialog.title")("submitButtonLabel","imxplatform.resolve-region-reference-dialog.resolve")("submitButtonDisabled",Go.isLoading)("icon","icon-trash")("useEvents",!0),m.xp6(2),m.Q6J("formGroup",Go.formGroup),m.xp6(3),m.Q6J("innerHTML",m.xi3(6,10,"imxplatform.resolve-region-reference-dialog.question",m.VKq(15,G,Go.data.dataObject.id)),m.oJD),m.xp6(2),m.Q6J("ngIf",!Go.hasSavePermission$||!m.lcZ(8,13,Go.hasSavePermission$)),m.xp6(2),m.Q6J("referenceSpecification$",Go.referenceSpecification$)("referencesInfoText",Go.getReferencesInfoTextKey()))},dependencies:[b.O5,e._Y,e.JL,e.sg,I.Pi,H.a,u.AF,b.Ov,I.X$],encapsulation:2})}return Mi})();var ae=a(72079),J=a(51418),q=a(21473),j=a(38996),Y=a(38347),K=a(35418),ne=a(25313),ee=a(28907),$=a(42094),ue=a(22194),ge=a(1614);function Ke(Mi,or){1&Mi&&m.GkF(0)}const at=()=>({$implicit:"id"});function Le(Mi,or){if(1&Mi&&(m.ynx(0),m.YNc(1,Ke,1,0,"ng-container",6),m.BQk()),2&Mi){m.oxw();const Ki=m.MAs(24);m.xp6(),m.Q6J("ngTemplateOutlet",Ki)("ngTemplateOutletContext",m.DdM(2,at))}}function R(Mi,or){1&Mi&&m.GkF(0)}function Te(Mi,or){1&Mi&&m.GkF(0)}function me(Mi,or){1&Mi&&m.GkF(0)}function Se(Mi,or){1&Mi&&(m.TgZ(0,"p",14),m._uU(1,"imxplatform.common.no-records"),m.qZA())}function Ue(Mi,or){1&Mi&&m._UZ(0,"tr",28)}function We(Mi,or){1&Mi&&m._UZ(0,"tr",29)}function et(Mi,or){1&Mi&&(m.TgZ(0,"th",30),m._uU(1,"entity.DataObject.id"),m.qZA())}function Et(Mi,or){if(1&Mi&&(m.TgZ(0,"td",31)(1,"span"),m._uU(2),m.qZA()()),2&Mi){const Ki=or.$implicit;m.xp6(2),m.Oqu(Ki.controls.rowId.value)}}function lt(Mi,or){1&Mi&&(m.TgZ(0,"th",32),m._uU(1,"entity.AddressPoi.title"),m.qZA())}function Vt(Mi,or){if(1&Mi&&(m.ynx(0),m.TgZ(1,"span"),m._uU(2),m.ALo(3,"readI18n"),m.qZA(),m.BQk()),2&Mi){const Ki=or.ngIf,Ao=m.oxw(3);m.xp6(2),m.Oqu(m.xi3(3,1,Ki.title,Ao.data.formHandler.formLanguage.getEditLanguage().name))}}function r(Mi,or){if(1&Mi&&(m.TgZ(0,"td",33),m.YNc(1,Vt,4,4,"ng-container",5),m.qZA()),2&Mi){const Ki=or.$implicit;m.xp6(),m.Q6J("ngIf",Ki.controls.completeAddressPoi.value)}}function Z(Mi,or){1&Mi&&(m.TgZ(0,"th",32),m._uU(1,"entity.AddressPoi.type"),m.qZA())}function Pt(Mi,or){if(1&Mi&&(m.ynx(0),m.TgZ(1,"span"),m._uU(2),m.qZA(),m.BQk()),2&Mi){const Ki=or.ngIf;m.xp6(2),m.Oqu(Ki.poiType)}}function Oe(Mi,or){if(1&Mi&&(m.TgZ(0,"td",33),m.YNc(1,Pt,3,1,"ng-container",5),m.qZA()),2&Mi){const Ki=or.$implicit;m.xp6(),m.Q6J("ngIf",Ki.controls.completeAddressPoi.value)}}function ye(Mi,or){1&Mi&&m._UZ(0,"th",34)}function ve(Mi,or){if(1&Mi){const Ki=m.EpF();m.TgZ(0,"td",35)(1,"a",36),m.NdJ("click",function(){const dr=m.CHM(Ki).$implicit,pn=m.oxw(2);return m.KtG(pn.data.formHandler.removeLineFromCollection("addressPois",pn.poisDataSource.filteredData.indexOf(dr)))}),m.qZA()()}2&Mi&&m.Q6J("formGroup",or.$implicit)}function ft(Mi,or){if(1&Mi&&(m.TgZ(0,"table",15),m.YNc(1,Ue,1,0,"tr",16)(2,We,1,0,"tr",17),m.ynx(3,18),m.YNc(4,et,2,0,"th",19)(5,Et,3,1,"td",20),m.BQk(),m.ynx(6,21),m.YNc(7,lt,2,0,"th",22)(8,r,2,1,"td",23),m.BQk(),m.ynx(9,24),m.YNc(10,Z,2,0,"th",22)(11,Oe,2,1,"td",23),m.BQk(),m.ynx(12,25),m.YNc(13,ye,1,0,"th",26)(14,ve,2,1,"td",27),m.BQk(),m.qZA()),2&Mi){const Ki=m.oxw();m.Q6J("dataSource",Ki.poisDataSource),m.xp6(),m.Q6J("matHeaderRowDef",Ki.poisColumns),m.xp6(),m.Q6J("matRowDefColumns",Ki.poisColumns)}}function Dt(Mi,or){1&Mi&&m.GkF(0)}function Rn(Mi,or){if(1&Mi&&m._UZ(0,"imx-form-control",37),2&Mi){const Ki=or.$implicit,Ao=m.oxw();m.Q6J("field",Ao.data.formHandler.formConfiguration.findFormFieldById(Ki))("control",Ao.data.formHandler.formGroup.get(Ki))("form",Ao.data.formHandler.formGroup)("formHandler",Ao.data.formHandler)("config",Ao.data.formHandler.formConfiguration)}}const ti=()=>({$implicit:"i18nName"}),Xt=()=>({$implicit:"leadAddressPoi"}),Je=()=>({$implicit:"type"}),dt=()=>({$implicit:"addAddressPoi"});let Ie=(()=>{class Mi extends K.i{constructor(Ki,Ao,Go){super(Go),this.platformDataAccessService=Ki,this.entitiesMgrService=Ao,this.data=Go,this.destroy$=new ae.xQ}ngOnInit(){this.data.formHandler.formGroup.controls.id.disable(),this.poisDataSource=(0,Y.t)(this.data.formHandler.formGroup.get("addressPois"),Ki=>this.poisDataSource=Ki,this.destroy$),this.poisDataSource.data.forEach(Ki=>{this.loadCompleteAddressPoi(Ki)}),this.poisColumns=new Array,this.poisColumns.push("id"),this.poisColumns.push("title"),this.poisColumns.push("poiType"),this.poisColumns.push("removeColumn")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}addAddressPoi(){const Ki=this.data.formHandler.formGroup.get("addAddressPoi").value,Ao=this.data.formHandler.addNewCollectionRow("addressPois",!0);Ao.get(j.rs).setValue(Ki),this.loadCompleteAddressPoi(Ao)}loadCompleteAddressPoi(Ki){this.loadAddressPoi(Ki.get("rowId").value).pipe((0,J.q)(1)).subscribe(Ao=>{Ki.get("completeAddressPoi").setValue(Ao),this.data.formHandler.formGroup.get("addAddressPoi").setValue(void 0)})}loadAddressPoi(Ki){const Ao=this.entitiesMgrService.getAllEntitiesOfType("AddressPoiType").pipe((0,t.U)(dr=>dr.items)),Go=this.platformDataAccessService.getAddressPoiById(Ki);return(0,l.aj)([Go,Ao]).pipe((0,t.U)(([dr,pn])=>({title:dr.title,poiType:dr.types.map(bo=>pn.find(nt=>nt.id===bo.id).i18nName.de).join(", ")})))}static#e=this.\u0275fac=function(Ao){return new(Ao||Mi)(m.Y36(c.nq),m.Y36(q.qB),m.Y36(n.WI))};static#t=this.\u0275cmp=m.Xpm({type:Mi,selectors:[["ng-component"]],features:[m.qOj],decls:25,vars:25,consts:[["icon","icon-baseEdit","dialogType","form",3,"heading","submitButtonDisabled"],["form-header","",3,"formHandler"],["id","base-entity-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["translate",""],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[1,"addSection"],[1,"imx-button","prio2",3,"disabled","click"],["imxControl",""],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","id"],["mat-header-cell","","class","id-column","translate","",4,"matHeaderCellDef"],["mat-cell","","class","id-column",4,"matCellDef"],["matColumnDef","title"],["mat-header-cell","","translate","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","poiType"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","","translate","",1,"id-column"],["mat-cell","",1,"id-column"],["mat-header-cell","","translate",""],["mat-cell",""],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"],[3,"field","control","form","formHandler","config"]],template:function(Ao,Go){if(1&Ao&&(m.TgZ(0,"imx-dialog",0),m.ALo(1,"translate"),m._UZ(2,"imx-language-switch-button",1),m.TgZ(3,"form",2)(4,"div",3)(5,"div",4),m.YNc(6,Le,2,3,"ng-container",5)(7,R,1,0,"ng-container",6)(8,Te,1,0,"ng-container",6)(9,me,1,0,"ng-container",6),m.TgZ(10,"label",7),m._uU(11,"entity.AddressPoiGroup.addressPois"),m.qZA(),m.YNc(12,Se,2,0,"ng-template",null,8,m.W1O),m.TgZ(14,"div",9),m.YNc(15,ft,15,3,"table",10),m.qZA(),m.TgZ(16,"div",11)(17,"label",7),m._uU(18,"imxplatform.base-entity.poi-group-dialog.select-poi"),m.qZA(),m.YNc(19,Dt,1,0,"ng-container",6),m.TgZ(20,"button",12),m.NdJ("click",function(){return Go.addAddressPoi()}),m._uU(21),m.ALo(22,"translate"),m.qZA()()()()()(),m.YNc(23,Rn,1,5,"ng-template",null,13,m.W1O)),2&Ao){const dr=m.MAs(13),pn=m.MAs(24);m.Q6J("heading",m.lcZ(1,17,Go.data.title))("submitButtonDisabled",Go.data.formRow.invalid||Go.data.formRow.pristine),m.xp6(2),m.Q6J("formHandler",Go.data.formHandler),m.xp6(),m.Q6J("formGroup",Go.data.formRow),m.xp6(3),m.Q6J("ngIf","EDIT"===Go.data.mode),m.xp6(),m.Q6J("ngTemplateOutlet",pn)("ngTemplateOutletContext",m.DdM(21,ti)),m.xp6(),m.Q6J("ngTemplateOutlet",pn)("ngTemplateOutletContext",m.DdM(22,Xt)),m.xp6(),m.Q6J("ngTemplateOutlet",pn)("ngTemplateOutletContext",m.DdM(23,Je)),m.xp6(6),m.Q6J("ngIf",Go.poisDataSource&&Go.poisDataSource.data.length>0)("ngIfElse",dr),m.xp6(4),m.Q6J("ngTemplateOutlet",pn)("ngTemplateOutletContext",m.DdM(24,dt)),m.xp6(),m.Q6J("disabled",!Go.data.formHandler.formGroup.get("addAddressPoi").value),m.xp6(),m.hij(" ",m.lcZ(22,19,"imxplatform.common.add")," ")}},dependencies:[b.O5,b.tP,e._Y,e.JL,ne.BZ,ne.fO,ne.as,ne.w1,ne.Dz,ne.nj,ne.ge,ne.ev,ne.XQ,ne.Gk,e.sg,I.Pi,H.a,ee.A,$.H,ue.F,I.X$,ge.j],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.addSection[_ngcontent-%COMP%]{margin-top:10px}.id-column[_ngcontent-%COMP%]{width:30%}"]})}return Mi})();function ot(Mi,or){if(1&Mi&&m._UZ(0,"imx-language-switch-button",6),2&Mi){const Ki=m.oxw();m.Q6J("formHandler",Ki.data.formHandler)}}function ct(Mi,or){if(1&Mi&&m._UZ(0,"imx-form-control",8),2&Mi){const Ki=m.oxw().$implicit,Ao=m.oxw();m.Q6J("field",Ki)("control",Ao.data.formHandler.formGroup.get(Ki.id))("form",Ao.data.formHandler.formGroup)("config",Ao.data.formHandler.formConfiguration)("formHandler",Ao.data.formHandler)}}function tn(Mi,or){if(1&Mi&&m.YNc(0,ct,1,5,"imx-form-control",7),2&Mi){const Ki=or.$implicit,Ao=m.oxw();m.Q6J("ngIf",Ao.showField(Ki))}}let yi=(()=>{class Mi extends K.i{constructor(Ki,Ao){super(Ki),this.data=Ki,this.entitiesMgrService=Ao}ngOnInit(){null!==this.data.formHandler.formGroup.controls.id.value?this.data.formHandler.formGroup.controls.id.disable():"NEW"===this.data.mode&&this.entitiesMgrService.getAllEntitiesOfType("ContactPurpose").pipe((0,t.U)(Ki=>Ki.items.filter(Ao=>Ao.id<1e3||Ao.id>1001))).subscribe(Ki=>{const Ao=Ki.map(dr=>dr.id),Go=Ao.length>0?Math.max(...Ao)+1:1;this.data.formHandler.formGroup.controls.id.setValue(Go)})}static#e=this.\u0275fac=function(Ao){return new(Ao||Mi)(m.Y36(n.WI),m.Y36(q.qB))};static#t=this.\u0275cmp=m.Xpm({type:Mi,selectors:[["ng-component"]],features:[m.qOj],decls:7,vars:8,consts:[["icon","icon-baseEdit","dialogType","form",3,"heading","submitButtonDisabled","getSubmitResult"],["form-header","",3,"formHandler",4,"ngIf"],["id","base-entity-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],["ngFor","",3,"ngForOf"],["form-header","",3,"formHandler"],[3,"field","control","form","config","formHandler",4,"ngIf"],[3,"field","control","form","config","formHandler"]],template:function(Ao,Go){1&Ao&&(m.TgZ(0,"imx-dialog",0),m.ALo(1,"translate"),m.YNc(2,ot,1,1,"imx-language-switch-button",1),m.TgZ(3,"form",2)(4,"div",3)(5,"div",4),m.YNc(6,tn,1,1,"ng-template",5),m.qZA()()()()),2&Ao&&(m.Q6J("heading",m.lcZ(1,6,Go.data.title))("submitButtonDisabled",Go.data.formRow.invalid||Go.data.formRow.pristine)("getSubmitResult",Go.defaultSubmitResult),m.xp6(2),m.Q6J("ngIf",Go.data.baseEntityConfig.containsI18nFields),m.xp6(),m.Q6J("formGroup",Go.data.formRow),m.xp6(3),m.Q6J("ngForOf",Go.data.formHandler.formConfiguration.fields))},dependencies:[b.sg,b.O5,e._Y,e.JL,e.sg,H.a,ee.A,$.H,I.X$],styles:[".header-right[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:flex-end}.header-right[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{margin-right:10px}"]})}return Mi})();var ni=a(41593);function sn(Mi,or){1&Mi&&m.GkF(0)}function bn(Mi,or){1&Mi&&m.GkF(0)}function vt(Mi,or){1&Mi&&m.GkF(0)}function nn(Mi,or){1&Mi&&m.GkF(0)}function rn(Mi,or){1&Mi&&m.GkF(0)}function ii(Mi,or){if(1&Mi&&m._UZ(0,"imx-form-control",8),2&Mi){const Ki=or.$implicit,Ao=m.oxw();m.Q6J("field",Ao.data.formHandler.formConfiguration.findFormFieldById(Ki))("control",Ao.data.formHandler.formGroup.get(Ki))("form",Ao.data.formHandler.formGroup)("formHandler",Ao.data.formHandler)("config",Ao.data.formHandler.formConfiguration)}}const Oo=()=>({$implicit:"i18nName"}),no=()=>({$implicit:"intValue"}),Li=()=>({$implicit:"assignedAttribute"}),ji=()=>({$implicit:"logo"}),Ii=()=>({$implicit:"logoUrl"});let _i=(()=>{class Mi extends K.i{constructor(Ki){super(Ki),this.data=Ki,this.allowedFileTypes="image/*"}static#e=this.\u0275fac=function(Ao){return new(Ao||Mi)(m.Y36(n.WI))};static#t=this.\u0275cmp=m.Xpm({type:Mi,selectors:[["ng-component"]],features:[m.qOj],decls:14,vars:26,consts:[["icon","icon-baseEdit","dialogType","form",3,"heading","submitButtonDisabled"],["form-header","",3,"formHandler"],["id","base-entity-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"allowedFileTypes","fileFieldName","imagePathFieldName","formGroup","formHandler"],["imxControl",""],[3,"field","control","form","formHandler","config"]],template:function(Ao,Go){if(1&Ao&&(m.TgZ(0,"imx-dialog",0),m.ALo(1,"translate"),m._UZ(2,"imx-language-switch-button",1),m.TgZ(3,"form",2)(4,"div",3)(5,"div",4),m.YNc(6,sn,1,0,"ng-container",5)(7,bn,1,0,"ng-container",5)(8,vt,1,0,"ng-container",5),m._UZ(9,"imx-logo-upload",6),m.YNc(10,nn,1,0,"ng-container",5)(11,rn,1,0,"ng-container",5),m.qZA()()()(),m.YNc(12,ii,1,5,"ng-template",null,7,m.W1O)),2&Ao){const dr=m.MAs(13);m.Q6J("heading",m.lcZ(1,19,Go.data.title))("submitButtonDisabled",Go.data.formRow.invalid||Go.data.formRow.pristine),m.xp6(2),m.Q6J("formHandler",Go.data.formHandler),m.xp6(),m.Q6J("formGroup",Go.data.formRow),m.xp6(3),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(21,Oo)),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(22,no)),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(23,Li)),m.xp6(),m.Q6J("allowedFileTypes",Go.allowedFileTypes)("fileFieldName","logo")("imagePathFieldName","logoImageUrl")("formGroup",Go.data.formRow)("formHandler",Go.data.formHandler),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(24,ji)),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(25,Ii))}},dependencies:[b.tP,e._Y,e.JL,e.sg,ni.x,H.a,ee.A,$.H,I.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.image-upload-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.image-upload-wrapper__remove[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end}.image-upload-wrapper__remove[_ngcontent-%COMP%] > .file-remove-button[_ngcontent-%COMP%]{margin-bottom:15px}.image-upload-wrapper__image[_ngcontent-%COMP%]{width:120px}.image-upload-wrapper__image[_ngcontent-%COMP%] > figure[_ngcontent-%COMP%]{height:0;padding-bottom:100%;position:relative}.image-upload-wrapper__image[_ngcontent-%COMP%] > figure[_ngcontent-%COMP%] > picture[_ngcontent-%COMP%]{display:block;height:100%;position:absolute;width:100%}.image-upload-wrapper__image[_ngcontent-%COMP%] > figure[_ngcontent-%COMP%] > picture[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{height:100%;object-fit:cover;width:100%}"]})}return Mi})();var En=a(79309);function co(Mi,or){1&Mi&&m.GkF(0)}function yn(Mi,or){1&Mi&&m.GkF(0)}function ln(Mi,or){1&Mi&&m.GkF(0)}function He(Mi,or){1&Mi&&m.GkF(0)}function rt(Mi,or){1&Mi&&m.GkF(0)}function $e(Mi,or){1&Mi&&m.GkF(0)}const Ve=()=>({$implicit:"valueEntityType"}),Ce=()=>({$implicit:"valueEntityQueryOptions"});function tt(Mi,or){if(1&Mi&&(m.ynx(0),m.YNc(1,rt,1,0,"ng-container",5)(2,$e,1,0,"ng-container",5),m.BQk()),2&Mi){m.oxw();const Ki=m.MAs(20);m.xp6(),m.Q6J("ngTemplateOutlet",Ki)("ngTemplateOutletContext",m.DdM(4,Ve)),m.xp6(),m.Q6J("ngTemplateOutlet",Ki)("ngTemplateOutletContext",m.DdM(5,Ce))}}function ht(Mi,or){1&Mi&&m.GkF(0)}function Qt(Mi,or){1&Mi&&m.GkF(0)}function Un(Mi,or){1&Mi&&m.GkF(0)}function Yt(Mi,or){1&Mi&&m.GkF(0)}function Fn(Mi,or){1&Mi&&m.GkF(0)}function yt(Mi,or){1&Mi&&m.GkF(0)}function Bt(Mi,or){1&Mi&&m.GkF(0)}function li(Mi,or){if(1&Mi&&m._UZ(0,"imx-form-control",9),2&Mi){const Ki=or.$implicit,Ao=m.oxw();m.Q6J("field",Ao.data.formHandler.formConfiguration.findFormFieldById(Ki))("control",Ao.data.formHandler.formGroup.get(Ki))("form",Ao.data.formHandler.formGroup)("formHandler",Ao.data.formHandler)("config",Ao.data.formHandler.formConfiguration)}}const si=()=>({$implicit:"i18nName"}),oo=()=>({$implicit:"usageForEntityType"}),_o=()=>({$implicit:"attributeGroup"}),Hn=()=>({$implicit:"valueType"}),mo=()=>({$implicit:"requiresValidity"}),vn=()=>({$implicit:"additionalInfo"}),Ji=()=>({$implicit:"additionalI18nInfo"}),wn=()=>({$implicit:"modules"}),po=()=>({$implicit:"modulesForList"}),Kn=()=>({$implicit:"logo"}),Vn=()=>({$implicit:"logoUrl"});let Wi=(()=>{class Mi extends K.i{constructor(Ki){super(Ki),this.data=Ki,this.allowedFileTypes="image/*",this.isTypeEntitySelected=!1}ngOnInit(){this.isTypeEntitySelected=this.data.formRow.get("valueType").value===En.Vg,this.data.formRow.get("valueType").valueChanges.subscribe(Ki=>this.isTypeEntitySelected=Ki===En.Vg)}static#e=this.\u0275fac=function(Ao){return new(Ao||Mi)(m.Y36(n.WI))};static#t=this.\u0275cmp=m.Xpm({type:Mi,selectors:[["ng-component"]],features:[m.qOj],decls:21,vars:45,consts:[["icon","icon-baseEdit","dialogType","form",3,"heading","submitButtonDisabled"],["form-header","",3,"formHandler"],["id","base-entity-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],[3,"allowedFileTypes","fileFieldName","imagePathFieldName","formGroup","formHandler"],["imxControl",""],[3,"field","control","form","formHandler","config"]],template:function(Ao,Go){if(1&Ao&&(m.TgZ(0,"imx-dialog",0),m.ALo(1,"translate"),m._UZ(2,"imx-language-switch-button",1),m.TgZ(3,"form",2)(4,"div",3)(5,"div",4),m.YNc(6,co,1,0,"ng-container",5)(7,yn,1,0,"ng-container",5)(8,ln,1,0,"ng-container",5)(9,He,1,0,"ng-container",5)(10,tt,3,6,"ng-container",6)(11,ht,1,0,"ng-container",5)(12,Qt,1,0,"ng-container",5)(13,Un,1,0,"ng-container",5)(14,Yt,1,0,"ng-container",5)(15,Fn,1,0,"ng-container",5),m._UZ(16,"imx-logo-upload",7),m.YNc(17,yt,1,0,"ng-container",5)(18,Bt,1,0,"ng-container",5),m.qZA()()()(),m.YNc(19,li,1,5,"ng-template",null,8,m.W1O)),2&Ao){const dr=m.MAs(20);m.Q6J("heading",m.lcZ(1,32,Go.data.title))("submitButtonDisabled",Go.data.formRow.invalid||Go.data.formRow.pristine),m.xp6(2),m.Q6J("formHandler",Go.data.formHandler),m.xp6(),m.Q6J("formGroup",Go.data.formRow),m.xp6(3),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(34,si)),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(35,oo)),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(36,_o)),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(37,Hn)),m.xp6(),m.Q6J("ngIf",Go.isTypeEntitySelected),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(38,mo)),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(39,vn)),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(40,Ji)),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(41,wn)),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(42,po)),m.xp6(),m.Q6J("allowedFileTypes",Go.allowedFileTypes)("fileFieldName","logo")("imagePathFieldName","logoImageUrl")("formGroup",Go.data.formRow)("formHandler",Go.data.formHandler),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(43,Kn)),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(44,Vn))}},dependencies:[b.O5,b.tP,e._Y,e.JL,e.sg,ni.x,H.a,ee.A,$.H,I.X$],styles:[".image-upload-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.image-upload-wrapper__image[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end;flex-basis:50%;padding-left:20px}.image-upload-wrapper__image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:contain;max-width:100%}.image-upload-wrapper__image[_ngcontent-%COMP%]   .file-remove-button[_ngcontent-%COMP%]{max-width:200px;align-self:center;margin-top:15px}"]})}return Mi})();var Ft=a(69862),Oi=a(15646),On=a(19352),_n=a(75222),st=a(50579),Dn=a(95435),Wt=a(69514),kn=a(57462),Fi=a(23357),ui=a(97564),Fo=a(82621);function At(Mi,or){if(1&Mi&&(m.TgZ(0,"span",19),m._uU(1),m.ALo(2,"translate"),m.TgZ(3,"span",20),m._uU(4),m.qZA()()),2&Mi){const Ki=m.oxw(2);m.xp6(),m.hij("",m.lcZ(2,2,"entity.Region.id"),": "),m.xp6(3),m.Oqu(null==Ki.data?null:Ki.data.dataObject.id)}}function Jn(Mi,or){if(1&Mi&&(m.TgZ(0,"span",19),m._uU(1),m.ALo(2,"translate"),m.TgZ(3,"span",20),m._uU(4),m.qZA()()),2&Mi){const Ki=m.oxw(2);m.xp6(),m.hij("\xa0\xa0\xa0",m.lcZ(2,2,"entity.Region.externalId"),": "),m.xp6(3),m.Oqu(null==Ki.data||null==Ki.data.dataObject?null:Ki.data.dataObject.externalId)}}function Bn(Mi,or){1&Mi&&m.GkF(0)}function Bi(Mi,or){1&Mi&&m.GkF(0)}function $n(Mi,or){1&Mi&&m.GkF(0)}function Ui(Mi,or){1&Mi&&m.GkF(0)}function Xo(Mi,or){1&Mi&&m.GkF(0)}function bt(Mi,or){1&Mi&&m.GkF(0)}function an(Mi,or){if(1&Mi){const Ki=m.EpF();m.TgZ(0,"a",22),m.NdJ("click",function(){m.CHM(Ki);const Go=m.oxw(3);return m.KtG(Go.removeGeoPath())}),m.qZA()}}function Wn(Mi,or){if(1&Mi&&(m.TgZ(0,"p"),m._uU(1),m.ALo(2,"translate"),m.YNc(3,an,1,0,"a",21),m.qZA()),2&Mi){const Ki=m.oxw(2);m.xp6(),m.hij(" ",m.lcZ(2,2,Ki.data.formHandler.formGroup.get("geoPathString").value?Ki.data.formHandler.formGroup.get("geoPathString").value:"imxplatform.region.dialog.geoPathString.not-defined")," "),m.xp6(2),m.Q6J("ngIf",Ki.data.formHandler.formGroup.get("geoPathString").value)}}function eo(Mi,or){1&Mi&&m.GkF(0)}const _r=()=>({$implicit:"category"});function hr(Mi,or){if(1&Mi&&(m.ynx(0),m.YNc(1,eo,1,0,"ng-container",9),m.BQk()),2&Mi){m.oxw(2);const Ki=m.MAs(7);m.xp6(),m.Q6J("ngTemplateOutlet",Ki)("ngTemplateOutletContext",m.DdM(2,_r))}}function In(Mi,or){if(1&Mi){const Ki=m.EpF();m.TgZ(0,"imx-mtk-map",24),m.NdJ("positionChanged",function(Go){m.CHM(Ki);const dr=m.oxw(3);return m.KtG(dr.changedPosition(Go))}),m.qZA()}if(2&Mi){const Ki=m.oxw(3);m.Q6J("mode","MAP")("mapDisabled",!1)("zoom",10)("longitude",null!=Ki.geoObject&&null!=Ki.geoObject.geoCenter&&Ki.geoObject.geoCenter.coordinates[0]?Ki.geoObject.geoCenter.coordinates[0]:0)("latitude",null!=Ki.geoObject&&null!=Ki.geoObject.geoCenter&&Ki.geoObject.geoCenter.coordinates[1]?Ki.geoObject.geoCenter.coordinates[1]:0)("geoObject",Ki.geoObject.geoCoords)}}function Wr(Mi,or){if(1&Mi&&(m.TgZ(0,"div"),m.YNc(1,In,1,6,"imx-mtk-map",23),m.qZA()),2&Mi){const Ki=m.oxw(2);m.xp6(),m.Q6J("ngIf",Ki.geoObject)}}function qi(Mi,or){if(1&Mi&&(m.TgZ(0,"p"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mi){const Ki=m.oxw(2);m.xp6(),m.AsE("",m.lcZ(2,2,"entity.Region.geonameId")," : ",null==Ki.data||null==Ki.data.dataObject?null:Ki.data.dataObject.geonameId,"")}}function wi(Mi,or){if(1&Mi&&(m.TgZ(0,"p"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mi){const Ki=m.oxw(2);m.xp6(),m.AsE("",m.lcZ(2,2,"entity.Region.polygonProvider")," : ",null==Ki.data||null==Ki.data.dataObject?null:Ki.data.dataObject.polygonProvider.name,"")}}function zo(Mi,or){if(1&Mi&&(m.TgZ(0,"p"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mi){const Ki=m.oxw(2);m.xp6(),m.AsE("",m.lcZ(2,2,"entity.Region.externalPolygonId")," : ",null==Ki.data||null==Ki.data.dataObject?null:Ki.data.dataObject.externalPolygonId,"")}}const xi=()=>({$implicit:"i18nName"}),ki=()=>({$implicit:"nameOrig"}),wo=()=>({$implicit:"nameAll"}),Ei=()=>({$implicit:"geoLevel"}),ho=()=>({$implicit:"regionType"}),Cr=()=>({$implicit:"assignmentLevel"}),vr=()=>({geoLevelIds:"1,2,3,4,5"});function qr(Mi,or){if(1&Mi){const Ki=m.EpF();m.ynx(0),m.YNc(1,At,5,4,"span",4)(2,Jn,5,4,"span",4),m.TgZ(3,"form",5)(4,"div",6)(5,"div",7)(6,"div",8),m.YNc(7,Bn,1,0,"ng-container",9)(8,Bi,1,0,"ng-container",9),m.qZA(),m.YNc(9,$n,1,0,"ng-container",9)(10,Ui,1,0,"ng-container",9)(11,Xo,1,0,"ng-container",9)(12,bt,1,0,"ng-container",9),m.TgZ(13,"h3"),m._uU(14),m.ALo(15,"translate"),m.qZA(),m.YNc(16,Wn,4,4,"p",2),m.TgZ(17,"div",10),m._UZ(18,"imx-base-autocomplete",11,12),m.TgZ(20,"button",13),m.NdJ("click",function(){m.CHM(Ki);const Go=m.MAs(19);return m.oxw().addGeoPath(Go.getSelectedId()),m.KtG(Go.writeValue(void 0))}),m._uU(21),m.ALo(22,"translate"),m.qZA()(),m.YNc(23,hr,2,3,"ng-container",2),m.ALo(24,"async"),m.YNc(25,Wr,2,1,"div",2)(26,qi,3,4,"p",2)(27,wi,3,4,"p",2)(28,zo,3,4,"p",2),m.TgZ(29,"div",14)(30,"h3"),m._uU(31),m.ALo(32,"translate"),m.qZA(),m.TgZ(33,"p")(34,"button",15),m.NdJ("click",function(){m.CHM(Ki);const Go=m.oxw();return m.KtG(Go.downloadKml())}),m._UZ(35,"i",16),m._uU(36),m.ALo(37,"translate"),m.qZA()()(),m.TgZ(38,"div",17)(39,"imx-base-upload",18),m.NdJ("uploadComplete",function(Go){m.CHM(Ki);const dr=m.oxw();return m.KtG(dr.processKmlComplete(Go))}),m.qZA()()()()(),m.BQk()}if(2&Mi){const Ki=m.oxw(),Ao=m.MAs(7);m.xp6(),m.Q6J("ngIf",(null==Ki.data?null:Ki.data.dataObject)&&(null==Ki.data?null:Ki.data.dataObject.id)>0),m.xp6(),m.Q6J("ngIf",(null==Ki.data?null:Ki.data.dataObject)&&(null==Ki.data||null==Ki.data.dataObject?null:Ki.data.dataObject.externalId)),m.xp6(),m.Q6J("formGroup",Ki.data.formRow),m.xp6(4),m.Q6J("ngTemplateOutlet",Ao)("ngTemplateOutletContext",m.DdM(44,xi)),m.xp6(),m.Q6J("ngTemplateOutlet",Ao)("ngTemplateOutletContext",m.DdM(45,ki)),m.xp6(),m.Q6J("ngTemplateOutlet",Ao)("ngTemplateOutletContext",m.DdM(46,wo)),m.xp6(),m.Q6J("ngTemplateOutlet",Ao)("ngTemplateOutletContext",m.DdM(47,Ei)),m.xp6(),m.Q6J("ngTemplateOutlet",Ao)("ngTemplateOutletContext",m.DdM(48,ho)),m.xp6(),m.Q6J("ngTemplateOutlet",Ao)("ngTemplateOutletContext",m.DdM(49,Cr)),m.xp6(2),m.Oqu(m.lcZ(15,34,"entity.Region.geoPathString")),m.xp6(2),m.Q6J("ngIf",Ki.data.formHandler.formGroup.get("geoPathString")),m.xp6(2),m.Q6J("autocompleteService",Ki.regionAutocompleteService)("autocompleteFilter",m.DdM(50,vr))("label","imxplatform.common-entity.edit.panels.geo.geoRegion.chooseGeoObjectForGeoPath"),m.xp6(3),m.hij(" ",m.lcZ(22,36,"imxplatform.common.add")," "),m.xp6(2),m.Q6J("ngIf",m.lcZ(24,38,Ki.eventlocationEndowmentsAvailable)),m.xp6(2),m.Q6J("ngIf",(null==Ki.data?null:Ki.data.dataObject)&&(null==Ki.data||null==Ki.data.dataObject?null:Ki.data.dataObject.coordinates)&&null!==(null==Ki.data||null==Ki.data.dataObject||null==Ki.data.dataObject.coordinates?null:Ki.data.dataObject.coordinates.longitude)&&null!==(null==Ki.data||null==Ki.data.dataObject||null==Ki.data.dataObject.coordinates?null:Ki.data.dataObject.coordinates.latitude)),m.xp6(),m.Q6J("ngIf",Ki.data&&Ki.data.dataObject&&Ki.data.dataObject.geonameId),m.xp6(),m.Q6J("ngIf",Ki.data&&Ki.data.dataObject&&Ki.data.dataObject.polygonProvider&&Ki.data.dataObject.polygonProvider.name),m.xp6(),m.Q6J("ngIf",Ki.data&&Ki.data.dataObject&&Ki.data.dataObject.externalPolygonId),m.xp6(3),m.Oqu(m.lcZ(32,40,"imxplatform.media.edit.download")),m.xp6(5),m.hij(" ",m.lcZ(37,42,"imxplatform.common-entity.edit.panels.geo.download-kml")," "),m.xp6(3),m.Q6J("type","extractGeometry")("headerText","imxplatform.common-entity.edit.panels.geo.read-kml")("allowedFileTypes",".kml")("allowMultipleFiles",!1)("autoUpload",!0)("showFileSelectButton",!0)}}function Ra(Mi,or){if(1&Mi&&m._UZ(0,"imx-form-control",25),2&Mi){const Ki=or.$implicit,Ao=m.oxw();m.Q6J("field",Ao.data.formHandler.formConfiguration.findFormFieldById(Ki))("control",Ao.data.formHandler.formGroup.get(Ki))("form",Ao.data.formHandler.formGroup)("formHandler",Ao.data.formHandler)("config",Ao.data.formHandler.formConfiguration)}}let ss=(()=>{class Mi extends K.i{static#e=this.GEO_LEVEL_SHAPE=100;constructor(Ki,Ao,Go,dr,pn,bo){super(Ki),this.data=Ki,this.platformDataAccessService=Ao,this.entitiesMgrService=Go,this.changeDetectorRef=dr,this.regionAutocompleteService=pn,this.maptoolkitApiLoaderService=bo,this.destroy$=new ae.xQ,this.eventlocationEndowmentsAvailable=(0,s.of)(!1)}ngOnInit(){this.data&&this.data.dataObject&&this.data.dataObject.id&&this.platformDataAccessService.getGeoCoordinatesForEntity("region",this.data.dataObject.id).subscribe(Ki=>{this.geoObject=Ki,this.data?.dataObject?.coordinates?.maxLongitude&&this.data?.dataObject?.coordinates?.maxLatitude&&this.data?.dataObject?.coordinates?.minLongitude&&this.data?.dataObject?.coordinates?.minLatitude?(this.geoObject.geoCoords.maxLongitude=this.data?.dataObject?.coordinates?.maxLongitude,this.geoObject.geoCoords.minLongitude=this.data?.dataObject?.coordinates?.minLongitude,this.geoObject.geoCoords.maxLatitude=this.data?.dataObject?.coordinates?.maxLatitude,this.geoObject.geoCoords.minLatitude=this.data?.dataObject?.coordinates?.minLatitude):this.data.formHandler.formGroup.get("geoCoords").setValue(this.geoObject.geoCoords),this.updateCoordinates()}),this.setAssignmentLevelValidator(this.data.formHandler.formGroup.get("geoLevel").value),this.data.formHandler.formGroup.get("geoLevel").valueChanges.pipe((0,On.R)(this.destroy$)).subscribe(Ki=>{this.setAssignmentLevelValidator(Ki),this.changeDetectorRef.detectChanges()}),this.eventlocationEndowmentsAvailable=this.entitiesMgrService.getAllEntitiesOfType("RegionCategory").pipe((0,_n.w)(Ki=>(0,s.of)(Ki.totalNumberOfResults>0)))}setAssignmentLevelValidator(Ki){Mi.GEO_LEVEL_SHAPE===Ki?this.addRequiredValidatorForControlAndEnable("assignmentLevel",kn.lS):this.addRequiredValidatorForControlAndEnable("assignmentLevel",null,!1)}updateCoordinates(){this.geoObject&&this.geoObject.geoCenter&&this.geoObject?.geoCenter?.coordinates.length>1&&this.geoObject?.geoCenter?.coordinates[1]&&this.data.formHandler.formGroup.get("latitude").setValue(this.geoObject?.geoCenter?.coordinates[1]?this.geoObject.geoCenter.coordinates[1]:0),this.geoObject&&this.geoObject.geoCenter&&this.geoObject?.geoCenter?.coordinates.length>0&&this.geoObject?.geoCenter?.coordinates[0]&&this.data.formHandler.formGroup.get("longitude").setValue(this.geoObject?.geoCenter?.coordinates[0]?this.geoObject.geoCenter.coordinates[0]:0)}processKmlComplete(Ki){Ki&&!(Ki instanceof Ft.UA)&&1===Ki.length&&(this.dataObjectObjectClone=Oi(this.data.dataObject),this.geoObject=Ki[0].processResult.Coordinates,this.data.dataObject={},this.data.dataObject.coordinates=Ki[0].processResult.Coordinates,this.data.formHandler.formGroup.get("geoCenter").setValue(this.data.dataObject.coordinates.geoCenter),this.data.formHandler.formGroup.get("geoCoords").setValue(this.data.dataObject.coordinates.geoCoords),this.data.dataObject.polygonProvider=null,this.data.dataObject.externalPolygonId=null,this.updateCoordinates(),this.data.formRow.markAsDirty(),this.changeDetectorRef.markForCheck())}onCancel(){console.warn("cancel",this.dataObjectObjectClone),this.dataObjectObjectClone&&(console.warn("cancel",this.dataObjectObjectClone),this.data.dataObject.polygonProvider=this.dataObjectObjectClone.polygonProvider,this.data.dataObject.externalPolygonId=this.dataObjectObjectClone.externalPolygonId)}removeGeoPath(){this.resetValueAndMarkAsDirty("pathLevel1Id",null),this.resetValueAndMarkAsDirty("pathLevel2Id",null),this.resetValueAndMarkAsDirty("pathLevel3Id",null),this.resetValueAndMarkAsDirty("pathLevel4Id",null),this.resetValueAndMarkAsDirty("pathLevel5Id",null),this.resetValueAndMarkAsDirty("geoPathString",null)}addGeoPath(Ki){this.entitiesMgrService.getEntityWithIdOfType("Region",Ki).subscribe(Ao=>{this.removeGeoPath();const Go=["pathLevel1Id","pathLevel2Id","pathLevel3Id","pathLevel4Id","pathLevel5Id"],dr=Go.filter(pn=>Ao[pn]).map(pn=>{const bo=Ao[pn];return this.resetValueAndMarkAsDirty(pn,bo),this.entitiesMgrService.getEntityWithIdOfType("Region",bo)});(0,l.aj)(dr).subscribe(pn=>{const bo=pn.map(Sn=>Sn.i18nName.de).join(" > ")+" > "+Ao.i18nName.de,nt=Go.find(Sn=>!Ao[Sn]);nt&&this.resetValueAndMarkAsDirty(nt,Ao.id),this.data.formHandler.formGroup.get("geoPathString").setValue(bo),this.data.formHandler.formGroup.get("geoPathString").markAsDirty()})})}resetValueAndMarkAsDirty(Ki,Ao){const Go=this.data.formHandler.formGroup.get(Ki);Go.setValue(Ao),Go.markAsDirty()}addRequiredValidatorForControlAndEnable(Ki,Ao,Go=!0){this.data.formHandler.formGroup.get(Ki).enable({emitEvent:!1}),this.data.formHandler.formGroup.get(Ki).setValidators(Ao),this.data.formHandler.formConfiguration.findFormFieldById(Ki).required=Go,this.data.formHandler.formGroup.get(Ki).updateValueAndValidity({emitEvent:!1})}changedPosition(Ki){Ki?.length&&Ki.length>1&&(this.data.formHandler.formGroup.get("latitude").setValue(Ki[0]),this.data.formHandler.formGroup.get("longitude").setValue(Ki[1]),this.data.formRow.markAsDirty(),this.changeDetectorRef.markForCheck())}downloadKml(){const Ki=this.data?.dataObject?.nameOrig?this.data?.dataObject?.nameOrig:"region",Ao=st(this.geoObject.geoCoords,{name:Ki,description:"Kml data for "+Ki}),Go=window.URL.createObjectURL(new Blob([Ao],{type:"application/vnd.google-earth.kml+xml"})),dr=document.createElement("a");document.body.appendChild(dr),dr.setAttribute("style","display: none"),dr.href=Go,dr.download=Ki+".kml",dr.click(),window.URL.revokeObjectURL(Go),dr.remove()}static#t=this.\u0275fac=function(Ao){return new(Ao||Mi)(m.Y36(n.WI),m.Y36(c.nq),m.Y36(q.qB),m.Y36(m.sBO),m.Y36(Wt.M),m.Y36(Dn.vK))};static#n=this.\u0275cmp=m.Xpm({type:Mi,selectors:[["ng-component"]],features:[m.qOj],decls:8,vars:10,consts:[["icon","icon-baseEdit","dialogType","form",3,"heading","submitButtonDisabled","onCancel"],["form-header","",3,"formHandler"],[4,"ngIf"],["imxControl",""],["class","headline-label txt-grey",4,"ngIf"],["id","extended-region-base-entity-dialog",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[1,"form__content-field-row","wrap-ty"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"form__content-field-row","choose-geo-path"],["name","addGeoPath",1,"region-geo-path-autocomplete",3,"autocompleteService","autocompleteFilter","label"],["addGeoPathAutocompleteControl",""],[1,"imx-button","prio2","addButton",3,"click"],["id","process_kml_download"],[1,"imx-button","default","addButton",3,"click"],[1,"icon","icon-file-download"],["id","process_kml_upload"],[3,"type","headerText","allowedFileTypes","allowMultipleFiles","autoUpload","showFileSelectButton","uploadComplete"],[1,"headline-label","txt-grey"],[1,"txt-default"],["class","icon icon-trash imx-icon-small imx-icon-clickable",3,"click",4,"ngIf"],[1,"icon","icon-trash","imx-icon-small","imx-icon-clickable",3,"click"],[3,"mode","mapDisabled","zoom","longitude","latitude","geoObject","positionChanged",4,"ngIf"],[3,"mode","mapDisabled","zoom","longitude","latitude","geoObject","positionChanged"],[3,"field","control","form","formHandler","config"]],template:function(Ao,Go){1&Ao&&(m.TgZ(0,"imx-dialog",0),m.NdJ("onCancel",function(){return Go.onCancel()}),m.ALo(1,"translate"),m.ALo(2,"readI18n"),m._UZ(3,"imx-language-switch-button",1),m.YNc(4,qr,40,51,"ng-container",2),m.ALo(5,"async"),m.qZA(),m.YNc(6,Ra,1,5,"ng-template",null,3,m.W1O)),2&Ao&&(m.Q6J("heading",m.lcZ(1,4,Go.data.title)+" "+m.lcZ(2,6,null==Go.data||null==Go.data.dataObject?null:Go.data.dataObject.i18nName))("submitButtonDisabled",Go.data.formRow.invalid||Go.data.formRow.pristine),m.xp6(3),m.Q6J("formHandler",Go.data.formHandler),m.xp6(),m.Q6J("ngIf",m.lcZ(5,8,Go.maptoolkitApiLoaderService.loadApi$)))},dependencies:[b.O5,b.tP,e._Y,e.JL,e.sg,Fi.q,ui.h,Fo.B,H.a,ee.A,$.H,ue.F,b.Ov,I.X$,ge.j],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}#extended-region-base-entity-dialog[_ngcontent-%COMP%]     .map-add-button{display:none}#process_kml_upload[_ngcontent-%COMP%]{margin-top:20px}.choose-geo-path[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:10px}"]})}return Mi})();var Hs=a(2032),Cs=a(64170),ms=a(6554),ja=a(2901);function el(Mi,or){1&Mi&&m.GkF(0)}function Vs(Mi,or){1&Mi&&m.GkF(0)}function ls(Mi,or){1&Mi&&m.GkF(0)}function Fa(Mi,or){1&Mi&&m.GkF(0)}function Ds(Mi,or){1&Mi&&m.GkF(0)}function dl(Mi,or){1&Mi&&(m.TgZ(0,"p",22),m._uU(1,"imxplatform.common.no-records"),m.qZA())}function ka(Mi,or){1&Mi&&m._UZ(0,"tr",35)}function hs(Mi,or){1&Mi&&m._UZ(0,"tr",36)}function Ua(Mi,or){1&Mi&&(m.TgZ(0,"th",37),m._uU(1,"ID"),m.qZA())}function Tn(Mi,or){if(1&Mi&&(m.TgZ(0,"td",38)(1,"span"),m._uU(2),m.qZA()()),2&Mi){const Ki=or.$implicit;m.xp6(2),m.Oqu(Ki.controls.rowEntity.value.id)}}function Qi(Mi,or){1&Mi&&(m.TgZ(0,"th",39),m._uU(1,"Name"),m.qZA())}function To(Mi,or){if(1&Mi&&(m.TgZ(0,"td",40)(1,"span"),m._uU(2),m.ALo(3,"readI18n"),m.qZA()()),2&Mi){const Ki=or.$implicit;m.xp6(2),m.Oqu(m.lcZ(3,1,Ki.controls.rowEntity.value.i18nName))}}function sr(Mi,or){1&Mi&&m._UZ(0,"th",41)}function oi(Mi,or){if(1&Mi){const Ki=m.EpF();m.TgZ(0,"td",42)(1,"a",43),m.NdJ("click",function(){const dr=m.CHM(Ki).$implicit,pn=m.oxw(3);return m.KtG(pn.removeRegionRow(dr))}),m.qZA()()}2&Mi&&m.Q6J("formGroup",or.$implicit)}function Vi(Mi,or){if(1&Mi&&(m.TgZ(0,"table",23),m.YNc(1,ka,1,0,"tr",24)(2,hs,1,0,"tr",25),m.ynx(3,26),m.YNc(4,Ua,2,0,"th",27)(5,Tn,3,1,"td",28),m.BQk(),m.ynx(6,29),m.YNc(7,Qi,2,0,"th",30)(8,To,4,3,"td",31),m.BQk(),m.ynx(9,32),m.YNc(10,sr,1,0,"th",33)(11,oi,2,1,"td",34),m.BQk(),m.qZA()),2&Mi){const Ki=m.oxw(2);m.Q6J("dataSource",Ki.regionCollectionDataSource),m.xp6(),m.Q6J("matHeaderRowDef",Ki.regionCollectionColumns),m.xp6(),m.Q6J("matRowDefColumns",Ki.regionCollectionColumns)}}function Ti(Mi,or){if(1&Mi){const Ki=m.EpF();m.ynx(0),m.TgZ(1,"div",12)(2,"h3",13),m._uU(3,"imxplatform.common-entity.edit.panels.geo.regionSelection.default"),m.qZA(),m.YNc(4,dl,2,0,"ng-template",null,14,m.W1O),m.TgZ(6,"div",15),m.YNc(7,Vi,12,3,"table",16),m.qZA(),m.TgZ(8,"div",17)(9,"imx-base-autocomplete",18,19),m.NdJ("enterPressed",function(){m.CHM(Ki);const Go=m.MAs(12);return m.KtG(Go.focus())}),m.qZA(),m.TgZ(11,"button",20,21),m.NdJ("click",function(){m.CHM(Ki);const Go=m.MAs(10);return m.oxw().addRegionRow(Go.getSelectedId()),m.KtG(Go.writeValue(void 0))}),m._uU(13),m.ALo(14,"translate"),m.qZA()()(),m._UZ(15,"br"),m.BQk()}if(2&Mi){const Ki=m.MAs(5),Ao=m.MAs(10),Go=m.oxw();m.xp6(7),m.Q6J("ngIf",Go.regionCollectionDataSource&&Go.regionCollectionDataSource.data.length>0)("ngIfElse",Ki),m.xp6(2),m.Q6J("autocompleteService",Go.regionAutocompleteService)("label","filter.AddressPoi.region"),m.xp6(2),m.Q6J("disabled",!Ao.getSelectedId()),m.xp6(2),m.hij(" ",m.lcZ(14,6,"imxplatform.common.add")," ")}}function Hi(Mi,or){1&Mi&&m.GkF(0)}const Do=()=>({$implicit:"regions"});function $o(Mi,or){if(1&Mi&&(m.ynx(0),m.YNc(1,Hi,1,0,"ng-container",5),m.BQk()),2&Mi){m.oxw();const Ki=m.MAs(21);m.xp6(),m.Q6J("ngTemplateOutlet",Ki)("ngTemplateOutletContext",m.DdM(2,Do))}}function yr(Mi,or){1&Mi&&m.GkF(0)}function Vr(Mi,or){1&Mi&&m.GkF(0)}function da(Mi,or){if(1&Mi&&m._UZ(0,"imx-form-control",44),2&Mi){const Ki=or.$implicit,Ao=m.oxw();m.Q6J("field",Ao.data.formHandler.formConfiguration.findFormFieldById(Ki))("control",Ao.data.formHandler.formGroup.get(Ao.data.formHandler.formConfiguration.findFormFieldById(Ki).id))("form",Ao.data.formHandler.formGroup)("formHandler",Ao.data.formHandler)("config",Ao.data.formHandler.formConfiguration)}}const Za=()=>({$implicit:"name"}),ma=()=>({$implicit:"communityCode"}),Wa=()=>({$implicit:"i18nName"}),Yi=()=>({$implicit:"alias1"}),jo=()=>({$implicit:"alias2"}),Cn=()=>({$implicit:"latitude"}),uo=()=>({$implicit:"longitude"});let fo=(()=>{class Mi extends K.i{constructor(Ki,Ao,Go,dr,pn){super(Ki),this.data=Ki,this.configurationProvider=Ao,this.entitiesMgr=Go,this.regionAutocompleteService=dr,this.changeDetectorRef=pn,this.myControl=new e.p4,this.destroy$=new ae.xQ,this.zipcodeIdMap=new Map,Array.isArray(Ki.formRow.get("zipcodes").value)?(this.myControl.setValue(this.formatZipCodeString(Ki.formRow.get("zipcodes").value)),this.zipcodeIdMap=this.fillZipcodeMap(Ki.formRow.get("zipcodes").value)):this.data.formHandler.formGroup.patchValue({zipcodes:[]})}formatZipCodeString(Ki){let Ao="";return Ki&&Ki.forEach((Go,dr,pn)=>{Ao=dr<pn.length-1?Ao.concat(Go.zipcode,","):Ao.concat(Go.zipcode)}),Ao}fillZipcodeMap(Ki){const Ao=new Map;return Ki&&Ki.forEach(Go=>{Ao.set(Go.zipcode,Go.id)}),Ao}handleZipcode(Ki){const Ao=[];Ki.target.value.split(",").forEach((Go,dr)=>{this.zipcodeIdMap.has(Go)?Ao.push({_entityType:"LocationZipcode",id:this.zipcodeIdMap.get(Go),zipcode:Go.toString()}):""!==Go&&Ao.push({_entityType:"LocationZipcode",id:null,zipcode:Go.toString()})}),this.data.formHandler.formGroup.patchValue({zipcodes:Ao}),this.data.formHandler.formGroup.get("zipcodes").markAsDirty()}ngOnInit(){this.regionCollectionColumns=["regionId","name","removeColumn"],null!=this.data.formHandler.formGroup.get("regions_adv")&&(this.regionCollectionDataSource=this.prepareTable(this.data.formHandler.formGroup.get("regions_adv"),Ki=>this.regionCollectionDataSource=Ki),console.log("prepareTable",this.regionCollectionDataSource))}addRegionRow(Ki){this.data.formHandler.formGroup.get("regions").value.indexOf(Ki)>-1||this.entitiesMgr.getEntityWithIdOfType("Region",Ki).pipe((0,On.R)(this.destroy$)).subscribe(Ao=>{this.data.formHandler.addNewCollectionRow("regions_adv").controls[j.Qy].setValue(Ao),this.data.formHandler.formGroup.get("regions").value.push(Ao.id),this.changeDetectorRef.markForCheck()})}removeRegionRow(Ki){this.data.formHandler.removeLineFromCollection("regions_adv",this.regionCollectionDataSource.filteredData.indexOf(Ki)),this.data.formHandler.formGroup.get("regions").value.splice(this.data.formHandler.formGroup.get("regions").value.indexOf(Ki.get("rowEntity").value.id),1)}prepareTable(Ki,Ao,Go){return(0,Y.t)(Ki,Ao,this.destroy$,Go)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}isAdvancedRegionManagement(){return this.configurationProvider.getBooleanFromSnapshot(q.x3.PLATFORM_ADVANCED_REGION_MANAGEMENT_ENABLED)}static#e=this.\u0275fac=function(Ao){return new(Ao||Mi)(m.Y36(n.WI),m.Y36(q.Pc),m.Y36(q.qB),m.Y36(Wt.M),m.Y36(m.sBO))};static#t=this.\u0275cmp=m.Xpm({type:Mi,selectors:[["ng-component"]],features:[m.qOj],decls:22,vars:35,consts:[["icon","icon-baseEdit","dialogType","form",3,"heading","submitButtonDisabled"],["form-header","",3,"formHandler"],["id","base-entity-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"label","forId"],[1,"input-wrapper"],["matInput","",3,"formControl","id","blur"],[3,"hint"],[4,"ngIf"],["imxFormControl",""],[1,"form__content-group"],["translate",""],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[1,"button-wrapper"],["name","addRegion",1,"region-autocomplete",3,"autocompleteService","label","enterPressed"],["regionAutocompleteControl",""],[1,"imx-button","prio2",3,"disabled","click"],["addRegionButton",""],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","regionId"],["mat-header-cell","","class","idCol",4,"matHeaderCellDef"],["mat-cell","","class","idCol",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","",1,"idCol"],["mat-cell","",1,"idCol"],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"],[3,"field","control","form","formHandler","config"]],template:function(Ao,Go){if(1&Ao&&(m.TgZ(0,"imx-dialog",0),m.ALo(1,"translate"),m._UZ(2,"imx-language-switch-button",1),m.TgZ(3,"form",2)(4,"div",3)(5,"div",4),m.YNc(6,el,1,0,"ng-container",5),m.TgZ(7,"mat-form-field"),m._UZ(8,"imx-base-input-label",6),m.TgZ(9,"div",7)(10,"input",8),m.NdJ("blur",function(pn){return Go.handleZipcode(pn)}),m.qZA()(),m._UZ(11,"imx-base-input-hint",9),m.qZA(),m.YNc(12,Vs,1,0,"ng-container",5)(13,ls,1,0,"ng-container",5)(14,Fa,1,0,"ng-container",5)(15,Ds,1,0,"ng-container",5)(16,Ti,16,8,"ng-container",10)(17,$o,2,3,"ng-container",10)(18,yr,1,0,"ng-container",5)(19,Vr,1,0,"ng-container",5),m.qZA()()()(),m.YNc(20,da,1,5,"ng-template",null,11,m.W1O)),2&Ao){const dr=m.MAs(21);let pn;m.Q6J("heading",m.lcZ(1,26,Go.data.title))("submitButtonDisabled",Go.data.formRow.invalid||Go.data.formRow.pristine),m.xp6(2),m.Q6J("formHandler",Go.data.formHandler),m.xp6(),m.Q6J("formGroup",Go.data.formRow),m.xp6(3),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(28,Za)),m.xp6(2),m.Q6J("label",null==(pn=Go.data.formHandler.formConfiguration.findFormFieldById("zipcodes"))?null:pn.label)("forId","zipcodeField"),m.xp6(2),m.Q6J("formControl",Go.myControl)("id","zipcodeField"),m.uIk("type","text"),m.xp6(),m.Q6J("hint","imxplatform.base-entity.zipcode-hint"),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(29,ma)),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(30,Wa)),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(31,Yi)),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(32,jo)),m.xp6(),m.Q6J("ngIf",Go.isAdvancedRegionManagement()),m.xp6(),m.Q6J("ngIf",!Go.isAdvancedRegionManagement()),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(33,Cn)),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(34,uo))}},dependencies:[b.O5,b.tP,e._Y,e.Fj,e.JJ,e.JL,Hs.Nt,Cs.KE,ne.BZ,ne.fO,ne.as,ne.w1,ne.Dz,ne.nj,ne.ge,ne.ev,ne.XQ,ne.Gk,e.oH,e.sg,I.Pi,ui.h,ms.g,ja.u,H.a,ee.A,$.H,ue.F,I.X$,ge.j],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}"]})}return Mi})();const Jo=Mi=>({sensorId:Mi});function kr(Mi,or){if(1&Mi&&(m.TgZ(0,"h3"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mi){const Ki=m.oxw();m.xp6(),m.Oqu(m.xi3(2,1,"imxplatform.occupancy-dialog.id-read-only",m.VKq(4,Jo,Ki.sensorId)))}}function Qr(Mi,or){1&Mi&&m.GkF(0)}function Aa(Mi,or){1&Mi&&m.GkF(0)}function cs(Mi,or){1&Mi&&m.GkF(0)}function ys(Mi,or){1&Mi&&m.GkF(0)}function zr(Mi,or){1&Mi&&m.GkF(0)}function Pi(Mi,or){1&Mi&&m.GkF(0)}function xo(Mi,or){if(1&Mi&&m._UZ(0,"imx-form-control",9),2&Mi){const Ki=or.$implicit,Ao=m.oxw();m.Q6J("field",Ao.data.formHandler.formConfiguration.findFormFieldById(Ki))("control",Ao.data.formHandler.formGroup.get(Ki))("form",Ao.data.formHandler.formGroup)("formHandler",Ao.data.formHandler)("config",Ao.data.formHandler.formConfiguration)}}const lr=()=>({$implicit:"id"}),Ir=()=>({$implicit:"name"}),Da=()=>({$implicit:"info"}),ia=()=>({$implicit:"thresholdWarn"}),as=()=>({$implicit:"thresholdAlert"}),Is=()=>({$implicit:"capacity"});let ba=(()=>{class Mi extends K.i{constructor(Ki){super(Ki),this.data=Ki,this.allowedFileTypes="image/*",this.sensorId=Ss,this.disableFields=!1}ngOnInit(){parseInt(this.data.formHandler.formGroup.get("id").value,10)===Ss&&(this.disableFields=!0,this.data.formHandler.formGroup.get("name").disable(),this.data.formHandler.formGroup.get("info").disable(),this.data.formHandler.formGroup.get("thresholdWarn").disable(),this.data.formHandler.formGroup.get("thresholdAlert").disable(),this.data.formHandler.formGroup.get("capacity").disable())}static#e=this.\u0275fac=function(Ao){return new(Ao||Mi)(m.Y36(n.WI))};static#t=this.\u0275cmp=m.Xpm({type:Mi,selectors:[["ng-component"]],features:[m.qOj],decls:16,vars:25,consts:[["icon","icon-baseEdit","dialogType","form",3,"heading","submitButtonDisabled"],["form-header","",3,"formHandler"],["id","base-entity-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[1,"form__content-row"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["imxControl",""],[3,"field","control","form","formHandler","config"]],template:function(Ao,Go){if(1&Ao&&(m.TgZ(0,"imx-dialog",0),m.ALo(1,"translate"),m._UZ(2,"imx-language-switch-button",1),m.TgZ(3,"form",2)(4,"div",3)(5,"div",4)(6,"div",5),m.YNc(7,kr,3,6,"h3",6),m.qZA(),m.YNc(8,Qr,1,0,"ng-container",7)(9,Aa,1,0,"ng-container",7)(10,cs,1,0,"ng-container",7)(11,ys,1,0,"ng-container",7)(12,zr,1,0,"ng-container",7)(13,Pi,1,0,"ng-container",7),m.qZA()()()(),m.YNc(14,xo,1,5,"ng-template",null,8,m.W1O)),2&Ao){const dr=m.MAs(15);m.Q6J("heading",m.lcZ(1,17,Go.data.title))("submitButtonDisabled",Go.data.formRow.invalid||Go.data.formRow.pristine),m.xp6(2),m.Q6J("formHandler",Go.data.formHandler),m.xp6(),m.Q6J("formGroup",Go.data.formRow),m.xp6(4),m.Q6J("ngIf",Go.disableFields),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(19,lr)),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(20,Ir)),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(21,Da)),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(22,ia)),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(23,as)),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(24,Is))}},dependencies:[b.O5,b.tP,e._Y,e.JL,e.sg,H.a,ee.A,$.H,I.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}"]})}return Mi})();const Ss=1;var Ca=a(99123);function Ia(Mi,or){1&Mi&&m.GkF(0)}function wa(Mi,or){1&Mi&&m.GkF(0)}function Va(Mi,or){1&Mi&&m.GkF(0)}function zn(Mi,or){1&Mi&&m.GkF(0)}function di(Mi,or){1&Mi&&m.GkF(0)}const cn=()=>({$implicit:"addressbaseDetailsAdditionalDescription"});function Zi(Mi,or){if(1&Mi&&(m.ynx(0),m.YNc(1,di,1,0,"ng-container",5),m.BQk()),2&Mi){m.oxw();const Ki=m.MAs(21);m.xp6(),m.Q6J("ngTemplateOutlet",Ki)("ngTemplateOutletContext",m.DdM(2,cn))}}function Eo(Mi,or){1&Mi&&m.GkF(0)}function oa(Mi,or){1&Mi&&m.GkF(0)}const Nr=()=>({$implicit:"offerDetailsAdditionalDescription"});function Rs(Mi,or){if(1&Mi&&(m.ynx(0),m.YNc(1,oa,1,0,"ng-container",5),m.BQk()),2&Mi){m.oxw();const Ki=m.MAs(21);m.xp6(),m.Q6J("ngTemplateOutlet",Ki)("ngTemplateOutletContext",m.DdM(2,Nr))}}function Zr(Mi,or){1&Mi&&m.GkF(0)}function Na(Mi,or){1&Mi&&m.GkF(0)}const ol=()=>({$implicit:"articleDetailsAdditionalDescription"});function Cl(Mi,or){if(1&Mi&&(m.ynx(0),m.YNc(1,Na,1,0,"ng-container",5),m.BQk()),2&Mi){m.oxw();const Ki=m.MAs(21);m.xp6(),m.Q6J("ngTemplateOutlet",Ki)("ngTemplateOutletContext",m.DdM(2,ol))}}function Ql(Mi,or){1&Mi&&m.GkF(0)}function Ho(Mi,or){if(1&Mi&&(m.TgZ(0,"p",10)(1,"span",11),m._uU(2,"forEntity:"),m.qZA(),m.TgZ(3,"span"),m._uU(4),m.qZA()(),m.TgZ(5,"p",10)(6,"span",11),m._uU(7,"metaInfoSpec:"),m.qZA(),m.TgZ(8,"span"),m._uU(9),m.qZA()()),2&Mi){const Ki=or.$implicit;m.xp6(4),m.Oqu(Ki.forEntity),m.xp6(5),m.Oqu(Ki.metainfoClass)}}function mc(Mi,or){if(1&Mi&&(m.ynx(0),m.TgZ(1,"h3"),m._uU(2,"Datenmodul"),m.qZA(),m.YNc(3,Ho,10,2,"ng-template",9),m.BQk()),2&Mi){const Ki=m.oxw();m.xp6(3),m.Q6J("ngForOf",Ki.metainfoSpecs)}}function os(Mi,or){if(1&Mi&&m._UZ(0,"imx-form-control",12),2&Mi){const Ki=or.$implicit,Ao=m.oxw();m.Q6J("field",Ao.data.formHandler.formConfiguration.findFormFieldById(Ki))("control",Ao.data.formHandler.formGroup.get(Ki))("form",Ao.data.formHandler.formGroup)("formHandler",Ao.data.formHandler)("config",Ao.data.formHandler.formConfiguration)}}const ps=()=>({$implicit:"i18nName"}),Ps=()=>({$implicit:"id"}),Ba=()=>({$implicit:"plKey"}),Ka=()=>({$implicit:"addressbaseDetails"}),vc=()=>({$implicit:"offerDetails"}),$s=()=>({$implicit:"articleDetails"}),js=()=>({$implicit:"asPortalContext"});let bc=(()=>{class Mi extends K.i{constructor(Ki,Ao,Go){super(Ki),this.data=Ki,this.entitiesMgrService=Ao,this.runtimeContextService=Go,this.isAdminUser=!1}ngOnInit(){null!==this.data.formHandler.formGroup.controls.id.value?this.data.formHandler.formGroup.controls.id.disable():"NEW"===this.data.mode&&this.entitiesMgrService.getAllEntitiesOfType("Productline").pipe((0,t.U)(Ki=>Ki.items.filter(Ao=>Ao.id<1e8))).subscribe(Ki=>{const Ao=Ki.map(dr=>dr.id),Go=Math.max(...Ao)+1;Go<1e8&&this.data.formHandler.formGroup.controls.id.setValue(Go)}),this.isAdminUser=(0,Ca.cR)(this.runtimeContextService.getLoginUser().loginname),"EDIT"===this.data.mode&&this.data.dataObject.metainfos&&(this.metainfoSpecs=this.data.dataObject.metainfos.map(Ki=>({metainfoClass:Ki.metainfoClass,forEntity:Ki.forEntity})))}static#e=this.\u0275fac=function(Ao){return new(Ao||Mi)(m.Y36(n.WI),m.Y36(q.qB),m.Y36(q.Ze))};static#t=this.\u0275cmp=m.Xpm({type:Mi,selectors:[["ng-component"]],features:[m.qOj],decls:22,vars:31,consts:[["icon","icon-baseEdit","dialogType","form",3,"heading","submitButtonDisabled"],["form-header","",3,"formHandler"],["id","base-entity-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"dialog-form-group--productline__row"],[4,"ngIf"],["imxControl",""],["ngFor","",3,"ngForOf"],[1,"txt-default"],[1,"txt-grey"],[3,"field","control","form","formHandler","config"]],template:function(Ao,Go){if(1&Ao&&(m.TgZ(0,"imx-dialog",0),m.ALo(1,"translate"),m._UZ(2,"imx-language-switch-button",1),m.TgZ(3,"form",2)(4,"div",3)(5,"div",4),m.YNc(6,Ia,1,0,"ng-container",5)(7,wa,1,0,"ng-container",5)(8,Va,1,0,"ng-container",5),m.TgZ(9,"div",6),m.YNc(10,zn,1,0,"ng-container",5)(11,Zi,2,3,"ng-container",7),m.qZA(),m.TgZ(12,"div",6),m.YNc(13,Eo,1,0,"ng-container",5)(14,Rs,2,3,"ng-container",7),m.qZA(),m.TgZ(15,"div",6),m.YNc(16,Zr,1,0,"ng-container",5)(17,Cl,2,3,"ng-container",7),m.qZA(),m.YNc(18,Ql,1,0,"ng-container",5)(19,mc,4,1,"ng-container",7),m.qZA()()()(),m.YNc(20,os,1,5,"ng-template",null,8,m.W1O)),2&Ao){const dr=m.MAs(21);m.Q6J("heading",m.lcZ(1,22,Go.data.title))("submitButtonDisabled",Go.data.formRow.invalid||Go.data.formRow.pristine),m.xp6(2),m.Q6J("formHandler",Go.data.formHandler),m.xp6(),m.Q6J("formGroup",Go.data.formRow),m.xp6(3),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(24,ps)),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(25,Ps)),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(26,Ba)),m.xp6(2),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(27,Ka)),m.xp6(),m.Q6J("ngIf",Go.data.formRow.controls.addressbaseDetails.value),m.xp6(2),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(28,vc)),m.xp6(),m.Q6J("ngIf",Go.data.formRow.controls.offerDetails.value),m.xp6(2),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(29,$s)),m.xp6(),m.Q6J("ngIf",Go.data.formRow.controls.articleDetails.value),m.xp6(),m.Q6J("ngTemplateOutlet",dr)("ngTemplateOutletContext",m.DdM(30,js)),m.xp6(),m.Q6J("ngIf",Go.isAdminUser&&Go.metainfoSpecs&&Go.metainfoSpecs.length>0)}},dependencies:[b.sg,b.O5,b.tP,e._Y,e.JL,e.sg,H.a,ee.A,$.H,I.X$],styles:[".dialog-form-group--productline__row[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.txt-grey[_ngcontent-%COMP%]{margin:0 10px}"]})}return Mi})();var ql=a(77966),Gs=a(44581),Dl=a(88012),Yr=a(71041),_a=a(98120),ts=a(20171),rl=a(8818),ya=a(60292),Pl=a(41621),jl=a(48499);let Ml=(()=>{class Mi extends jl.I1{constructor(Ki,Ao){super(),this.entitiesMgrService=Ki,this.translateService=Ao}getOptions(Ki,Ao){return this.entitiesMgrService.getAllEntitiesOfType("DistanceDefinitionGroup").pipe((0,t.U)(Go=>Go.items.map(dr=>({label:dr.i18nName,value:dr.id})).sort((dr,pn)=>(0,Pl.Qi)(dr.label,pn.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(Ao){return new(Ao||Mi)(m.LFG(q.qB),m.LFG(I.sK))};static#t=this.\u0275prov=m.Yz7({token:Mi,factory:Mi.\u0275fac,providedIn:"root"})}return Mi})();var rc=a(73209),Kr=a(97049),la=a(62361),ks=a(46893),Ta=a(12168),ds=a(72764),bs=a(66175),sl=a(32477),Ec=a(15452),gr=a(23765),Js=a(90230),Ms=a(87104),Bs=a(67276),yl=a(12947),Fr=a(84432);let nl=(()=>{class Mi extends jl.I1{constructor(Ki,Ao){super(),this.entitiesMgrService=Ki,this.translateService=Ao}getOptions(Ki,Ao){return this.entitiesMgrService.getAllEntitiesOfType("AssignmentLevel").pipe((0,t.U)(Go=>Go.items.map(dr=>({label:dr.i18nName,value:dr.id})).sort((dr,pn)=>(0,Pl.Qi)(dr.label,pn.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(Ao){return new(Ao||Mi)(m.LFG(q.qB),m.LFG(I.sK))};static#t=this.\u0275prov=m.Yz7({token:Mi,factory:Mi.\u0275fac,providedIn:"root"})}return Mi})();var hl=a(30461);let Cc=(()=>{class Mi extends jl.I1{constructor(Ki,Ao){super(),this.entitiesMgrService=Ki,this.translateService=Ao}getOptions(Ki,Ao){return this.entitiesMgrService.getAllEntitiesOfType("ExtendedAttributeGroup").pipe((0,t.U)(Go=>Go.items.map(dr=>({label:dr.i18nName,value:dr.id})).sort((dr,pn)=>(0,Pl.Qi)(dr.label,pn.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(Ao){return new(Ao||Mi)(m.LFG(q.qB),m.LFG(I.sK))};static#t=this.\u0275prov=m.Yz7({token:Mi,factory:Mi.\u0275fac,providedIn:"root"})}return Mi})(),Zt=(()=>{class Mi extends jl.I1{constructor(Ki,Ao){super(),this.entitiesMgrService=Ki,this.translateService=Ao}getOptions(Ki,Ao){return this.entitiesMgrService.getAllEntitiesOfType("ExtendedAttribute").pipe((0,t.U)(Go=>Go.items.map(dr=>({label:dr.i18nName,value:dr.id})).sort((dr,pn)=>(0,Pl.Qi)(dr.label,pn.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(Ao){return new(Ao||Mi)(m.LFG(q.qB),m.LFG(I.sK))};static#t=this.\u0275prov=m.Yz7({token:Mi,factory:Mi.\u0275fac,providedIn:"root"})}return Mi})();var ri=a(64022);let Mn=(()=>{class Mi extends jl.I1{constructor(Ki){super(),this.coreEntityService=Ki}getOptions(Ki,Ao){const Go=this.coreEntityService.getCoreEntityDefsWithExtendedAttributes().map(dr=>({label:dr.pluralLabel,value:dr.type}));return(0,s.of)(Go)}static#e=this.\u0275fac=function(Ao){return new(Ao||Mi)(m.LFG(ri.dE))};static#t=this.\u0275prov=m.Yz7({token:Mi,factory:Mi.\u0275fac,providedIn:"root"})}return Mi})();var mi=a(40988),Mo=a(56758),pr=a(89374);let Pr=(()=>{class Mi extends pr.K{constructor(Ki){super(),this.entitiesMgrService=Ki}getRootNodes(){return this.entitiesMgrService.getAllEntitiesOfType("Productline").pipe((0,t.U)(Ki=>Ki.items.filter(Ao=>"modules_root"===Ao.plKey)))}static#e=this.\u0275fac=function(Ao){return new(Ao||Mi)(m.LFG(q.qB))};static#t=this.\u0275prov=m.Yz7({token:Mi,factory:Mi.\u0275fac,providedIn:"root"})}return Mi})(),xa=(()=>{class Mi extends jl.I1{constructor(Ki,Ao){super(),this.entitiesMgrService=Ki,this.translateService=Ao}getOptions(Ki,Ao){return this.entitiesMgrService.getAllEntitiesOfType("RegionCategory").pipe((0,t.U)(Go=>Go.items.map(dr=>({label:dr.i18nName,value:dr.id})).sort((dr,pn)=>(0,Pl.Qi)(dr.label,pn.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(Ao){return new(Ao||Mi)(m.LFG(q.qB),m.LFG(I.sK))};static#t=this.\u0275prov=m.Yz7({token:Mi,factory:Mi.\u0275fac,providedIn:"root"})}return Mi})(),tl=(()=>{class Mi extends pr.K{constructor(Ki){super(),this.entitiesMgrService=Ki}getRootNodes(){return this.entitiesMgrService.getAllEntitiesOfType("Region").pipe((0,t.U)(Ki=>Ki.items.filter(Ao=>null==Ao.parent)))}static#e=this.\u0275fac=function(Ao){return new(Ao||Mi)(m.LFG(q.qB))};static#t=this.\u0275prov=m.Yz7({token:Mi,factory:Mi.\u0275fac,providedIn:"root"})}return Mi})(),Ls=(()=>{class Mi extends jl.I1{constructor(Ki,Ao){super(),this.entitiesMgrService=Ki,this.translateService=Ao}getOptions(Ki,Ao){return this.entitiesMgrService.getAllEntitiesOfType("RegionType").pipe((0,t.U)(Go=>Go.items.map(dr=>({label:dr.i18nName,value:dr.id})).sort((dr,pn)=>(0,Pl.Qi)(dr.label,pn.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(Ao){return new(Ao||Mi)(m.LFG(q.qB),m.LFG(I.sK))};static#t=this.\u0275prov=m.Yz7({token:Mi,factory:Mi.\u0275fac,providedIn:"root"})}return Mi})();var Ts=a(34115);const qs=new Fr.L(Ts.Q,[new Kr.ln("AlpsteinCategory",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new bs.A("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:kn.KB}),new gr.II("text","categoryKey","entity.AlpsteinCategory.categoryKey")],[new gr.II("text","i18nName","entity.I18nDataObject.i18nName")],[(0,Kr.vD)()]),new Kr.ln("DeliveryChannel",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new gr.II("text","name","entity.DeliveryChannel.name",{required:!0}),new Bs.P("ownerClient","entity.DeliveryChannel.ownerClient",{optionProvider:rl.z,extractor:(0,Yr.YL)("ownerClient.id"),insertor:(0,_a.wq)("ownerClient.id",!0),placeholder:"imxplatform.common.select-placeholder-demand",initialValue:-1,required:!0,baseEntityFieldOption:{hideInList:!0}}),new la.A("ownerClientForList","entity.DeliveryChannel.ownerClient",{extractor:(0,Yr.YL)("ownerClient.name"),insertor:(0,_a.G3)(),required:!1}),new Js.T("grantedClients","entity.DeliveryChannel.grantedClients",{optionProvider:rl.z,extractor:(0,Yr.XS)("grantedClients","id"),insertor:(0,_a.wr)("grantedClients","id"),renderLabel:!0,baseEntityFieldOption:{hideInList:!0}}),new la.A("grantedClientsForList","entity.DeliveryChannel.grantedClients",{extractor:(0,Yr.XS)("grantedClients","name"),insertor:(0,_a.G3)(),required:!1,baseEntityFieldOption:{listColumnStyleClass:"line-clamp-column"}})],[new gr.II("text","name","entity.DeliveryChannel.name"),new Bs.P("ownerClient","entity.DeliveryChannel.ownerClient",{optionProvider:rl.z,extractor:(0,Yr.V6)("ownerClient"),insertor:(0,_a.wq)("ownerClient",!0),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-no-selection"}),new Bs.P("grantedClients","entity.DeliveryChannel.grantedClients",{optionProvider:rl.z,extractor:(0,Yr.V6)("grantedClients"),insertor:(0,_a.wq)("grantedClients",!0),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-no-selection"})],[(0,Kr.TV)(),(0,Kr.Bo)("ownerClient","ownerClient.id"),(0,Kr.VK)("grantedClients","id",!0)],[{index:2,field:"name",i18n:"entity.DeliveryChannel.name",type:rc.m.alphanumeric},{index:3,field:"ownerClient",i18n:"entity.DeliveryChannel.ownerClient",type:rc.m.alphanumeric}],null,(new Map).set("ownerClient",Kr.jV)),new Kr.ln("ImageType",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new bs.A("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:kn.KB}),new gr.II("number","width","entity.ImageType.width",{}),new gr.II("number","height","entity.ImageType.height",{}),new ds.N("usageForEntityType","entity.ImageType.usageForEntityType",{extractor:(0,Yr.TH)("usageForEntityType"),insertor:(0,_a.AA)("usageForEntityType"),optionProvider:[{value:"Addressbase",label:"Addressbase"},{value:"Offer",label:"Offer"},{value:"Event",label:"Event"},{value:"Article",label:"Article"}]})],[new gr.II("text","i18nName","entity.I18nDataObject.i18nName")],[(0,Kr.vD)()]),new Kr.ln("DashboardWidgetDef",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new gr.II("text","title","entity.DashboardWidgetDef.title",{required:!0}),new Ec.S("jsonDefinition","entity.DashboardWidgetDef.jsonDefinition",{required:!0}),new Bs.P("viewType","entity.DashboardWidgetDef.viewType",{optionProvider:(0,jl.DZ)(),extractor:(0,Yr.YL)("viewType"),insertor:(0,_a.wq)("viewType",!0),placeholder:"imxplatform.common.select-placeholder-no-selection",required:!0})],[new gr.II("text","title","entity.DashboardWidgetDef.title")],[(0,Kr.FT)("title")]),new Kr.ln("DistanceDefinition",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new bs.A("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:kn.KB}),new Bs.P("group","entity.I18nAttribute.attributeGroup",{optionProvider:Ml,extractor:(0,Yr.YL)("group.id"),insertor:(0,_a.wq)("group.id",!0),required:!0,initialValue:-1,placeholder:"imxplatform.common.select-placeholder-demand",baseEntityFieldOption:{hideInList:!0}}),new la.A("DistanceDefinitionGroupI18nName","entity.I18nAttribute.attributeGroup",{extractor:(0,Yr.YL)("group.i18nName"),insertor:(0,_a.G3)()})],[new gr.II("text","i18nName","entity.I18nDataObject.i18nName")],[(0,Kr.vD)()]),new Kr.ln("DistanceDefinitionGroup",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new bs.A("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:kn.KB})],[new gr.II("text","i18nName","entity.I18nDataObject.i18nName")],[(0,Kr.vD)()]),new Kr.ln("PaymentOption",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new bs.A("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:kn.KB})],[new gr.II("text","i18nName","entity.I18nDataObject.i18nName")],[(0,Kr.vD)()]),new Kr.ln("ExternalDataProvider",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new gr.II("text","name","entity.ExternalDataProvider.name",{required:!0}),new gr.II("text","externalId","entity.ExternalDataProvider.externalId"),new gr.II("text","importSource","entity.ExternalDataProvider.importSource"),new gr.II("text","url","entity.ExternalDataProvider.url"),new gr.II("text","logo","entity.ExternalDataProvider.logo")],[new gr.II("text","name","entity.ExternalDataProvider.name")],[(0,Kr.TV)()]),new Kr.ln("LocationDefinition",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new bs.A("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:kn.KB}),new Ta.X("withInfo","entity.LocationDefinition.withInfo",{baseEntityFieldOption:{listRenderer:Mi=>Mi?"imxplatform.common.yes":"imxplatform.common.no"}})],[new gr.II("text","i18nName","entity.I18nDataObject.i18nName")],[(0,Kr.vD)()]),new Kr.ln("MediaLicense",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new bs.A("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:kn.KB}),new Ta.X("openData","entity.MediaLicense.openData",{baseEntityFieldOption:{listRenderer:Mi=>Mi?"imxplatform.common.yes":"imxplatform.common.no"}}),new bs.A("info","entity.MediaLicense.info",{baseEntityFieldOption:{hideInList:!0}}),new gr.II("text","licenseUrl","entity.MediaLicense.licenseUrl",{extendedValidators:kn.Y2}),new gr.II("text","iconUrl","entity.MediaLicense.iconUrl",{extendedValidators:kn.Y2})],[new gr.II("text","i18nName","entity.I18nDataObject.i18nName")],[(0,Kr.vD)()]),new Kr.ln("MediaContent",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new bs.A("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:kn.KB})],[new gr.II("text","i18nName","entity.I18nDataObject.i18nName")],[(0,Kr.vD)()]),new Kr.ln("PooledMediumCategory",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new bs.A("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:kn.KB})],[new gr.II("text","i18nName","entity.I18nDataObject.i18nName")],[(0,Kr.vD)()]),new Kr.ln("Location",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new gr.II("text","name","entity.Location.name",{required:!0}),new bs.A("i18nName","imxplatform.common.multi-lang"),new gr.II("text","alias1","entity.Location.alias1"),new gr.II("text","alias2","entity.Location.alias2"),new gr.II("text","communityCode","entity.Location.communityCode"),new la.A("zipcodes","entity.Location.zipcodes",{extractor:(0,Yr.YL)("zipcodes"),insertor:(0,_a.wq)("zipcodes"),baseEntityFieldOption:{listRenderer:Mi=>Mi.map(or=>or.zipcode).join(", ")}}),new yl.w("regions","entity.Location.regions",{optionProvider:tl,extractor:(0,Yr.XS)("regions","id"),insertor:(0,_a.wr)("regions","id"),baseEntityFieldOption:{hideInList:!0}}),new gr.II("number","latitude","entity.Location.latitude",{extractor:(0,Yr.YL)("coordinates.latitude"),insertor:(0,_a.wq)("coordinates.latitude"),baseEntityFieldOption:{hideInList:!0}}),new gr.II("number","longitude","entity.Location.longitude",{extractor:(0,Yr.YL)("coordinates.longitude"),insertor:(0,_a.wq)("coordinates.longitude"),baseEntityFieldOption:{hideInList:!0}}),new la.A("regionsForList","entity.Location.assignedRegions",{extractor:(0,Yr.XS)("regions","i18nName"),insertor:(0,_a.G3)(),required:!1}),new j.OF("regions_adv",!0,[],{extractor:(0,Yr.YL)("regions"),insertor:(0,_a.G3)(),baseEntityFieldOption:{hideInList:!0}})],[new gr.II("text","name","entity.Location.name"),new gr.II("text","zipcodes","imxplatform.base-entity.filter.zipcode"),new ks.w("regions","imxplatform.base-entity.filter.region",{autocompleteService:Wt.M,insertor:(0,_a.wq)("regions"),extractor:(0,Yr.YL)("regions"),useAnyNameHolder:!1,renderLabel:!0,required:!1})],[(0,Kr.TV)(),(0,Kr.VK)("zipcodes","zipcode"),(0,Kr.VK)("regions","id",!0)],[{index:1,field:"name",i18n:"entity.Location.name",type:rc.m.alphanumeric}],fo),new Kr.ln("AddressPoiGroup",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new bs.A("i18nName","entity.AddressPoiGroup.i18nName",{extendedI18nValidators:kn.KB}),new ks.w("leadAddressPoi","entity.AddressPoiGroup.leadAddressPoi",{autocompleteService:ql.d,insertor:function ul(Mi){return(or,Ki)=>{Ki[Mi]={id:or}}}("leadAddressPoi"),extractor:(0,Yr.YL)("leadAddressPoi.id"),useAnyNameHolder:!1,renderLabel:!0,required:!0,baseEntityFieldOption:{hideInList:!0}}),new la.A("leadAddressPoiForList","entity.AddressPoiGroup.leadAddressPoi",{extractor:(0,Yr.YL)("leadAddressPoi.title"),insertor:(0,_a.G3)(),required:!1}),new Bs.P("type","entity.AddressPoiGroup.type",{optionProvider:ts.B,extractor:(0,Yr.YL)("type.id"),insertor:(0,_a.wq)("type.id",!0),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-no-selection",baseEntityFieldOption:{hideInList:!0}}),new j.OF("addressPois",!0,[new la.A("id","",{extractor:(0,Yr.YL)("id")}),new la.A("completeAddressPoi","",{insertor:_a.G3})],{baseEntityFieldOption:{hideInList:!0}}),new ks.w("addAddressPoi","",{autocompleteService:ql.d,insertor:(0,_a.G3)(),renderLabel:!1,baseEntityFieldOption:{hideInList:!0}})],[new gr.II("text","i18nName","entity.AddressPoiGroup.i18nName")],[(0,Kr.vD)()],null,Ie),new Kr.ln("PrioLevel",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new gr.II("text","name","entity.PrioLevel.name",{required:!0}),new gr.II("int","priority","entity.PrioLevel.priority",{required:!0}),new Ta.X("usedForAddressbases","entity.PrioLevel.usedForAddressbases",{baseEntityFieldOption:{hideInList:!0}}),new Ta.X("usedForOffers","entity.PrioLevel.usedForOffers",{baseEntityFieldOption:{hideInList:!0}}),new Ms.y("usageForEntityType","entity.ExtendedAttribute.usageForEntityType",{optionProvider:Mn,extractor:(0,Yr.TH)("usageForEntityType"),insertor:(0,_a.AA)("usageForEntityType"),required:!0}),new ds.N("deliveryChannels","entity.PrioLevel.deliveryChannels",{rowLayout:!0,optionProvider:ya.e,extractor:(0,Yr.XS)("deliveryChannels","id"),insertor:(0,_a.wr)("deliveryChannels","id"),baseEntityFieldOption:{hideInList:!0}}),new la.A("deliveryChannelsForList","entity.PrioLevel.deliveryChannels",{extractor:(0,Yr.XS)("deliveryChannels","name"),insertor:(0,_a.G3)(),required:!1})],[new gr.II("text","name","entity.PrioLevel.name")],[(0,Kr.TV)()]),new Kr.ln("Productline",[new bs.A("i18nName","entity.Productline.i18nName",{extendedI18nValidators:kn.KB,baseEntityFieldOption:{isTreeToggleField:!0}}),new gr.II("number","id","entity.DataObject.id",{required:!0,baseEntityFieldOption:{isIdField:!0}}),new gr.II("text","plKey","entity.Productline.plKey",{required:!0}),new Ta.X("addressbaseDetails","entity.Productline.addressbaseProductline",{extractor:nc("addressbaseDetails"),insertor:pl("addressbaseDetails"),baseEntityFieldOption:{listRenderer:Mi=>Mi?"imxplatform.common.yes":"imxplatform.common.no"}}),new Ta.X("addressbaseDetailsAdditionalDescription","entity.ProductlineDetail.enableAdditionalDescriptions",{extractor:(0,Yr.YL)("addressbaseDetails.enableAdditionalDescriptions"),insertor:(0,_a.wq)("addressbaseDetails.enableAdditionalDescriptions"),initialValue:null,baseEntityFieldOption:{hideInList:!0}}),new Ta.X("offerDetails","entity.Productline.offerProductline",{extractor:nc("offerDetails"),insertor:pl("offerDetails"),baseEntityFieldOption:{listRenderer:Mi=>Mi?"imxplatform.common.yes":"imxplatform.common.no"}}),new Ta.X("offerDetailsAdditionalDescription","entity.ProductlineDetail.enableAdditionalDescriptions",{extractor:(0,Yr.YL)("offerDetails.enableAdditionalDescriptions"),insertor:(0,_a.wq)("offerDetails.enableAdditionalDescriptions"),baseEntityFieldOption:{hideInList:!0}}),new Ta.X("articleDetails","entity.Productline.articleProductline",{extractor:nc("articleDetails"),insertor:pl("articleDetails"),baseEntityFieldOption:{listRenderer:Mi=>Mi?"imxplatform.common.yes":"imxplatform.common.no"}}),new Ta.X("articleDetailsAdditionalDescription","entity.ProductlineDetail.enableAdditionalDescriptions",{extractor:(0,Yr.YL)("articleDetails.enableAdditionalDescriptions"),insertor:(0,_a.wq)("articleDetails.enableAdditionalDescriptions"),initialValue:null,baseEntityFieldOption:{hideInList:!0}}),new Ta.X("asPortalContext","entity.Productline.asPortalContext",{baseEntityFieldOption:{listRenderer:Mi=>Mi?"imxplatform.common.yes":"imxplatform.common.no"}})],[new gr.II("text","plKey","entity.Productline.plKey"),new gr.II("text","i18nName","entity.I18nDataObject.i18nName")],[(0,Kr.OU)((0,Kr.FT)("plKey")),(0,Kr.OU)((0,Kr.vD)())],void 0,bc),new Kr.ln("Region",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0,isTreeToggleField:!0}}),new bs.A("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:kn.KB}),new la.A("parentForList","entity.Region.parent",{extractor:(0,Yr.YL)("parent.i18nName"),insertor:(0,_a.G3)()})],[new gr.II("text","i18nName","entity.I18nDataObject.i18nName")],[(0,Kr.OU)((0,Kr.vD)())]),new Kr.ln("SocialMediaProvider",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new bs.A("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:kn.KB})],[new gr.II("text","i18nName","entity.I18nDataObject.i18nName")],[(0,Kr.vD)()]),new Kr.ln("InputFieldType",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new gr.II("text","name","entity.InputFieldType.name",{required:!0}),new gr.II("text","typeKey","entity.InputFieldType.typeKey",{required:!0}),new Ta.X("usedForAddressbases","entity.InputFieldType.usedForAddressbases",{baseEntityFieldOption:{hideInList:!0}}),new Ta.X("usedForOffers","entity.InputFieldType.usedForOffers",{baseEntityFieldOption:{hideInList:!0}}),new Ta.X("usedForEvents","entity.InputFieldType.usedForEvents",{baseEntityFieldOption:{hideInList:!0}})],[new gr.II("text","name","entity.InputFieldType.name")],[(0,Kr.TV)()]),new Kr.ln("Tag",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new gr.II("text","name","entity.Tag.name",{required:!0}),new bs.A("title","entity.Tag.title",{extendedI18nValidators:kn.KB}),new sl.i("description","entity.Tag.description",{baseEntityFieldOption:{hideInList:!0}}),new ds.N("deliveryChannels","entity.Tag.deliveryChannels",{rowLayout:!0,optionProvider:ya.e,extractor:(0,Yr.XS)("deliveryChannels","id"),insertor:(0,_a.wr)("deliveryChannels","id"),baseEntityFieldOption:{hideInList:!0}}),new la.A("deliveryChannelsForList","entity.PrioLevel.deliveryChannels",{extractor:(0,Yr.XS)("deliveryChannels","name"),insertor:(0,_a.G3)(),required:!1})],[new gr.II("text","name","entity.Tag.name"),new gr.II("text","deliveryChannels","entity.Tag.deliveryChannels")],[(0,Kr.TV)(),(0,Kr.VK)("deliveryChannels","name")],[{index:1,field:"name",i18n:"entity.Location.name",type:rc.m.alphanumeric}]),new Kr.ln("ExtendedAttribute",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new bs.A("i18nName","imxplatform.common.multi-lang",{extendedI18nValidators:kn.KB}),new Bs.P("attributeGroup","entity.ExtendedAttributeGroup.entityName",{optionProvider:Cc,extractor:(0,Yr.YL)("attributeGroup.id"),insertor:(0,_a.wq)("attributeGroup.id",!0),placeholder:"imxplatform.common.select-placeholder-no-selection",baseEntityFieldOption:{hideInList:!0},initialValue:-1}),new la.A("attributeGroupForList","entity.ExtendedAttributeGroup.entityName",{extractor:(0,Yr.YL)("attributeGroup.i18nName"),insertor:(0,_a.G3)(),required:!1}),new Ms.y("usageForEntityType","entity.ExtendedAttribute.usageForEntityType",{optionProvider:Mn,extractor:(0,Yr.TH)("usageForEntityType"),insertor:(0,_a.AA)("usageForEntityType"),required:!0}),new Bs.P("valueType","entity.ExtendedAttribute.valueType.name",{optionProvider:(0,jl.Tm)(),initialValue:0,extractor:(0,Yr.YL)("valueType"),insertor:(0,_a.wq)("valueType",!0),baseEntityFieldOption:{hideInList:!0}}),new la.A("valueTypeForList","entity.ExtendedAttribute.valueType.name",{extractor:(0,Yr.MK)((0,Yr.YL)("valueType"),(0,jl.Tm)()),insertor:(0,_a.G3)(),required:!1}),new Bs.P("valueEntityType","entity.ExtendedAttribute.valueEntityType",{optionProvider:hl.h,extractor:(0,Yr.YL)("valueEntityType"),insertor:(0,_a.wq)("valueEntityType",!0),placeholder:"imxplatform.common.select-placeholder-no-selection",baseEntityFieldOption:{hideInList:!0},initialValue:-1}),new gr.II("text","valueEntityQueryOptions","entity.ExtendedAttribute.valueEntityQueryOptions",{baseEntityFieldOption:{hideInList:!0}}),new Ta.X("requiresValidity","entity.ExtendedAttribute.requiresValidity",{baseEntityFieldOption:{listRenderer:Mi=>Mi?"imxplatform.common.yes":"imxplatform.common.no"}}),new Ta.X("additionalInfo","entity.ExtendedAttribute.additionalInfo",{baseEntityFieldOption:{listRenderer:Mi=>Mi?"imxplatform.common.yes":"imxplatform.common.no"}}),new Ta.X("additionalI18nInfo","entity.ExtendedAttribute.additionalI18nInfo",{baseEntityFieldOption:{listRenderer:Mi=>Mi?"imxplatform.common.yes":"imxplatform.common.no"}}),new yl.w("modules","entity.ExtendedAttribute.modules",{optionProvider:Pr,extractor:(0,Yr.XS)("modules","id"),insertor:(0,_a.wr)("modules","id"),renderLabel:!0,baseEntityFieldOption:{hideInList:!0}}),new la.A("modulesForList","entity.ExtendedAttribute.modules",{extractor:(0,Yr.XS)("modules","i18nName"),insertor:(0,_a.G3)(),required:!1}),new gr.II("text","logo","entity.ExtendedAttribute.logo",{readonly:!0,baseEntityFieldOption:{hideInList:!0}}),new la.A("logoImageUrl","",{baseEntityFieldOption:{hideInList:!0}}),new gr.II("text","logoUrl","entity.ExtendedAttribute.logoUrl",{baseEntityFieldOption:{hideInList:!0}})],[new gr.II("text","i18nName","entity.I18nDataObject.i18nName")],[(0,Kr.vD)()],null,Wi),new Kr.ln("ExtendedAttributeGroup",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new bs.A("i18nName","imxplatform.common.multi-lang",{extendedI18nValidators:kn.KB})],[new gr.II("text","i18nName","entity.I18nDataObject.i18nName")],[(0,Kr.vD)()]),new Kr.ln("ExtendedAttributeDefinitionValue",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new bs.A("i18nName","imxplatform.common.multi-lang",{extendedI18nValidators:kn.KB}),new gr.II("int","intValue","entity.ExtendedAttributeDefinitionValue.intValue"),new Bs.P("assignedAttribute","entity.ExtendedAttribute.entityName",{optionProvider:Zt,extractor:(0,Yr.YL)("assignedAttribute.id"),insertor:(0,_a.wq)("assignedAttribute.id",!0),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-no-selection",baseEntityFieldOption:{hideInList:!0},required:!0}),new la.A("assignedAttributeForList","entity.ExtendedAttribute.entityName",{extractor:(0,Yr.YL)("assignedAttribute.i18nName"),insertor:(0,_a.G3)()}),new gr.II("text","logo","entity.ExtendedAttributeDefinitionValue.logo",{readonly:!0}),new la.A("logoImageUrl","",{baseEntityFieldOption:{hideInList:!0}}),new gr.II("text","logoUrl","entity.ExtendedAttributeDefinitionValue.logoUrl")],[new gr.II("text","i18nName","entity.I18nDataObject.i18nName")],[(0,Kr.vD)()],null,_i),new Kr.ln("AnnouncementType",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new bs.A("i18nName","imxplatform.common.multi-lang",{extendedI18nValidators:kn.KB})],[new gr.II("text","i18nName","entity.I18nDataObject.i18nName")],[(0,Kr.TV)()]),new Kr.ln("OccupancySensor",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new gr.II("text","name","entity.NamedDataObject.name",{required:!0}),new gr.II("text","info","entity.OccupancySensor.info"),new gr.II("int","thresholdWarn","entity.OccupancySensor.thresholdWarn"),new gr.II("int","thresholdAlert","entity.OccupancySensor.thresholdAlert"),new gr.II("int","capacity","entity.OccupancySensor.capacity")],[new gr.II("text","name","entity.NamedDataObject.name"),new gr.II("text","info","entity.OccupancySensor.info")],[(0,Kr.TV)(),(0,Kr.FT)("info")],null,ba),new Kr.ln("RegionCategory",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new bs.A("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:kn.KB})],[new gr.II("text","i18nName","entity.I18nDataObject.i18nName")],[(0,Kr.vD)()]),new Kr.ln("ContactPurpose",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new bs.A("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:kn.KB})],[new gr.II("text","i18nName","entity.I18nDataObject.i18nName")],[(0,Kr.vD)()],null,yi),new Kr.ln("ConfigurationGroup",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new gr.II("text","name","entity.NamedDataObject.name")],[new gr.II("text","name","entity.NamedDataObject.name")],[(0,Kr.TV)()]),new Kr.ln("MemoAttribute",[new gr.II("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new bs.A("i18nName","entity.I18nDataObject.i18nName"),new Bs.P("attributeGroup","entity.MemoAttributeGroup.entityName",{optionProvider:Mo.U,extractor:(0,Yr.YL)("attributeGroup.id"),insertor:(0,_a.wq)("attributeGroup.id",!0),initialValue:-1,required:!0,placeholder:"imxplatform.common.select-placeholder-no-selection",baseEntityFieldOption:{hideInList:!0}}),new la.A("attributeGroupI18nName","entity.MemoAttributeGroup.entityName",{extractor:(0,Yr.YL)("attributeGroup.i18nName"),insertor:(0,_a.G3)()})],[new gr.II("text","i18nName","entity.I18nDataObject.i18nName")],[(0,Kr.vD)()]),new Kr.ln("MemoAttributeGroup",[new gr.II("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new bs.A("i18nName","entity.I18nDataObject.i18nName")],[new gr.II("text","i18nName","entity.I18nDataObject.i18nName")],[(0,Kr.vD)()]),new Kr.ln("StandardImportMappingGroup",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new gr.II("text","name","entity.StandardImportMappingGroup.name"),new gr.II("text","importerNames","entity.StandardImportMappingGroup.importerNames")],[new gr.II("text","name","entity.StandardImportMappingGroup.name")],[(0,Kr.TV)()])]),Ks=new Fr.L(Ts.Q,[new Kr.ln("Region",[new gr.II("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new bs.A("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:kn.KB}),new gr.II("text","nameOrig","entity.Region.nameOrig",{baseEntityFieldOption:{hideInList:!0}}),new gr.II("text","nameAll","entity.Region.nameAll",{baseEntityFieldOption:{hideInList:!0}}),new Bs.P("geoLevel","entity.Region.geoLevel",{optionProvider:mi.l,extractor:(0,Yr.YL)("geoLevel.id"),insertor:(0,_a.wq)("geoLevel.id",!0),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-no-selection",required:!0,baseEntityFieldOption:{hideInList:!0}}),new la.A("geoLevelForList","entity.Region.geoLevel",{extractor:(0,Yr.YL)("geoLevel.name"),insertor:(0,_a.G3)(),required:!1}),new la.A("regionTypeForList","entity.Region.regionType",{extractor:(0,Yr.YL)("regionType.i18nName"),insertor:(0,_a.G3)(),required:!1}),new Bs.P("assignmentLevel","entity.Region.assignmentLevel",{optionProvider:nl,extractor:(0,Yr.YL)("assignmentLevel.id"),insertor:(0,_a.wq)("assignmentLevel.id",!0),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-no-selection",required:!1,baseEntityFieldOption:{hideInList:!0}}),new la.A("geoPathString","entity.Region.geoPathString",{extractor:(0,Yr.YL)("geoPathString"),insertor:(0,_a.G3)(),required:!1,readonly:!0}),new la.A("latitude","entity.Region.coordinates.latitude",{extractor:(0,Yr.YL)("coordinates.latitude"),insertor:(0,_a.wq)("coordinates.latitude",!0),required:!1,baseEntityFieldOption:{hideInList:!0}}),new la.A("longitude","entity.Region.coordinates.longitude",{extractor:(0,Yr.YL)("coordinates.longitude"),insertor:(0,_a.wq)("coordinates.longitude",!0),required:!1,baseEntityFieldOption:{hideInList:!0}}),new la.A("pathLevel1Id","entity.Region.pathLevel1Id",{extractor:(0,Yr.YL)("pathLevel1Id"),insertor:(0,_a.wq)("pathLevel1Id",!0),required:!1,baseEntityFieldOption:{hideInList:!0}}),new la.A("pathLevel2Id","entity.Region.pathLevel1Id",{extractor:(0,Yr.YL)("pathLevel2Id"),insertor:(0,_a.wq)("pathLevel2Id",!0),required:!1,baseEntityFieldOption:{hideInList:!0}}),new la.A("pathLevel3Id","entity.Region.pathLevel1Id",{extractor:(0,Yr.YL)("pathLevel3Id"),insertor:(0,_a.wq)("pathLevel3Id",!0),required:!1,baseEntityFieldOption:{hideInList:!0}}),new la.A("pathLevel4Id","entity.Region.pathLevel1Id",{extractor:(0,Yr.YL)("pathLevel4Id"),insertor:(0,_a.wq)("pathLevel4Id",!0),required:!1,baseEntityFieldOption:{hideInList:!0}}),new la.A("pathLevel5Id","entity.Region.pathLevel1Id",{extractor:(0,Yr.YL)("pathLevel5Id"),insertor:(0,_a.wq)("pathLevel5Id",!0),required:!1,baseEntityFieldOption:{hideInList:!0}}),new la.A("geoCenter","",{extractor:(0,Yr.YL)("coordinates.geoCenter"),insertor:(0,_a.wq)("coordinates.geoCenter",!0),required:!1,baseEntityFieldOption:{hideInList:!0}}),new la.A("geoCoords","",{extractor:(0,Yr.YL)("coordinates.geoCoords"),insertor:(0,_a.wq)("coordinates.geoCoords",!0),required:!1,baseEntityFieldOption:{hideInList:!0}}),new Bs.P("regionType","entity.Region.regionType",{optionProvider:Ls,extractor:(0,Yr.YL)("regionType.id"),insertor:(0,_a.wq)("regionType.id",!0),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-no-selection",baseEntityFieldOption:{hideInList:!0}}),new ds.N("category","entity.Region.category",{rowLayout:!0,optionProvider:xa,extractor:(0,Yr.XS)("category","id"),insertor:(0,_a.wr)("category","id"),baseEntityFieldOption:{hideInList:!0}}),new gr.II("text","geonameId","entity.Region.geonameId",{baseEntityFieldOption:{hideInList:!0}}),new gr.II("text","polygonProvider","entity.Region.polygonProvider",{baseEntityFieldOption:{hideInList:!0}}),new gr.II("text","externalPolygonId","entity.Region.externalPolygonId",{baseEntityFieldOption:{hideInList:!0}})],[new Bs.P("geoLevel","entity.Region.geoLevel",{optionProvider:mi.l,extractor:(0,Yr.V6)("geoLevelId"),insertor:(0,_a.wq)("geoLevelId",!0),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-no-selection"}),new gr.II("text","i18nName","entity.I18nDataObject.i18nName"),new Bs.P("assignmentLevel","entity.Region.assignmentLevel",{optionProvider:nl,extractor:(0,Yr.V6)("assignmentLevelId"),insertor:(0,_a.wq)("assignmentLevelId",!0),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-no-selection"}),new gr.II("text","nameAll","entity.Region.nameAll"),new ks.w("geoPathLevelRegionId","entity.Region.geoPathString",{autocompleteService:Wt.M,useAnyNameHolder:!1,renderLabel:!0}),new Bs.P("regionType","entity.Region.regionType",{optionProvider:Ls,extractor:(0,Yr.V6)("regionTypeId"),insertor:(0,_a.wq)("regionTypeId",!0),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-no-selection"})],[(0,Kr.vD)(),(0,Kr.Bo)("geoLevel","geoLevelId"),(0,Kr.Bo)("regionType","regionType.id"),(0,Kr.xC)("geoPathLevelRegionId")],[{index:1,field:"id",i18n:"entity.DataObject.id",type:rc.m.numeric},{index:2,field:"NAME",i18n:"entity.I18nDataObject.i18nName",type:rc.m.alphanumeric}],ss,void 0,[{actionName:"resolve",icon:"icon-trash",label:"imxplatform.resolve-region-reference-dialog.title",actionDialog:B}],void 0,void 0,Dl.U,Gs.R)]);function pl(Mi){return(or,Ki)=>{if(or){Ki[Mi]={_entityType:"ProductlineDetail",id:null,enableAdditionalDescriptions:!1}}else Ki[Mi]=[]}}function nc(Mi){return or=>!(!or||!or[Mi]||"object"!=typeof or[Mi]||0===Object.keys(or[Mi]).length)}},54576:(gt,X,a)=>{"use strict";a.d(X,{p:()=>i});var e=a(4938),n=a(37014),s=a(46893),l=a(19212);let i=(()=>{class t extends n.Qw{constructor(c){super(),this.injector=c}isResponsible(c,o){return c instanceof s.w}build(c,o,x,u,m,b){c.clear();const I=c.createComponent(e.Y);return I.instance.form=o,I.instance.formHandler=x,I.instance.control=u,I.instance.field=m,I.instance.permissionPrefix=b,m.autocompleteService&&(I.instance.autocompleteService=this.injector.get(m.autocompleteService,m.autocompleteService)),I.instance.autocompleteFilter=m.autocompleteFilter,I.instance.useAnyNameHolder=m.useAnyNameHolder,I.instance.displayItemFn=m.displayItemFn,I}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(l.zs3))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac})}return t})()},13493:(gt,X,a)=>{"use strict";a.d(X,{$:()=>i});var e=a(95575),n=a(37014),s=a(12168),l=a(19212);let i=(()=>{class t extends n.Qw{isResponsible(c,o){return c instanceof s.X}build(c,o,x,u,m,b){c.clear();const I=c.createComponent(e.b);return I.instance.form=o,I.instance.formHandler=x,I.instance.control=u,I.instance.field=m,I.instance.permissionPrefix=b,I}static#e=this.\u0275fac=(()=>{let c;return function(x){return(c||(c=l.n5z(t)))(x||t)}})();static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac})}return t})()},7005:(gt,X,a)=>{"use strict";a.d(X,{D:()=>i});var e=a(10001),n=a(37014),s=a(72764),l=a(19212);let i=(()=>{class t extends n.Qw{constructor(c){super(),this.injector=c}isResponsible(c,o){return c instanceof s.N}build(c,o,x,u,m,b){c.clear();const I=c.createComponent(e.r);return I.instance.form=o,I.instance.formHandler=x,I.instance.control=u,I.instance.field=m,I.instance.permissionPrefix=b,I.instance.optionProvider=super.determineOptionProvider(m,this.injector),I}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(l.zs3))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac})}return t})()},89846:(gt,X,a)=>{"use strict";a.d(X,{B:()=>$});var e=a(19212),n=a(13744),s=a(21473),l=a(49193),i=a(19352),t=a(53075),p=a(96124),c=a(27556),o=a(67276),x=a(48499),u=a(51100),m=a(96814),b=a(56223),I=a(64170),H=a(71365),O=a(54362),P=a(10444);function G(ue,ge){if(1&ue&&(e.TgZ(0,"mat-hint"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ue){const Ke=e.oxw(2);e.xp6(),e.Oqu(e.lcZ(2,1,Ke.field.hint))}}function B(ue,ge){if(1&ue&&(e.ynx(0),e.TgZ(1,"div",5),e._UZ(2,"imx-base-input",6),e.qZA(),e.BQk()),2&ue){const Ke=e.oxw(3);e.xp6(2),e.Q6J("formControl",Ke.form.get("minCtrl"))("disableControl",Ke.disableControl)("type","text")("inputMode","decimal")("required",!1)("pattern",Ke.pattern)}}function ae(ue,ge){if(1&ue&&(e.ynx(0),e.TgZ(1,"p",7),e._uU(2," imxplatform.component.compare.and "),e.qZA(),e.TgZ(3,"div",8),e._UZ(4,"imx-base-input",6),e.qZA(),e.BQk()),2&ue){const Ke=e.oxw(3);e.xp6(4),e.Q6J("formControl",Ke.form.get("maxCtrl"))("disableControl",Ke.disableControl)("type","text")("inputMode","decimal")("required",!1)("pattern",Ke.pattern)}}function J(ue,ge){if(1&ue&&(e.ynx(0),e.TgZ(1,"div",3),e._UZ(2,"imx-base-select",4),e.ALo(3,"async"),e.qZA(),e.YNc(4,B,3,6,"ng-container",0)(5,ae,5,6,"ng-container",0),e.BQk()),2&ue){const Ke=e.oxw(2);e.xp6(2),e.Q6J("formControl",Ke.form.get("comparatorCtrl"))("disableControl",Ke.disableControl)("options",e.lcZ(3,7,Ke.options$))("required",!1)("errors",Ke.errors),e.xp6(2),e.Q6J("ngIf",Ke.showValue),e.xp6(),e.Q6J("ngIf",Ke.showInterval)}}const q=ue=>({hasHint:ue});function j(ue,ge){if(1&ue&&(e.ynx(0),e.TgZ(1,"div",1)(2,"p",2),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.YNc(5,G,3,3,"mat-hint",0),e.qZA(),e.YNc(6,J,6,9,"ng-container",0),e.BQk()),2&ue){const Ke=ge.ngIf,at=e.oxw();e.xp6(),e.Q6J("ngClass",e.VKq(6,q,at.field.hint)),e.xp6(2),e.Oqu(e.lcZ(4,4,at.field.label)),e.xp6(2),e.Q6J("ngIf",at.field.hint),e.xp6(),e.Q6J("ngIf",Ke.read)}}const Y=(0,s.jl)("CompareComponent",c.H.name);let K=(()=>{class ue extends u.A{constructor(Ke){super(),this.formatterService=Ke,this.disableControl=!1,this.pattern="[+]?\\d*(,?\\d{0,2})?",this.showInterval=!1,this.showValue=!0}ngOnChanges(Ke){Ke.optionProvider&&this.initializeOptions()}ngOnInit(){super.ngOnInit(),(!this.form||!this.formHandler||!this.control||!this.field)&&Y.warn("Cannot create the compare field: One of Form, Formhandler, Field or control is null. Check all @Input values for compare.component.ts for field"),this.pattern=this.determinePattern(),this.initializeOptions(),this.renderContentScoreView(this.form.get("comparatorCtrl").value),this.form.get("comparatorCtrl").valueChanges.pipe((0,i.R)(this.destroy$)).subscribe(Ke=>{this.renderContentScoreView(Ke)})}determinePattern(){let Ke=this.formatterService.getDecimalSeparator();return"."===Ke&&(Ke="\\."),n.a.determinePatternFromType("number",void 0,!0,Ke)}initializeOptions(){this.optionProvider instanceof x.I1?this.options$=this.optionProvider.getOptions(this.formHandler.baseObject,this.control.parent.value):this.optionProvider instanceof Array?this.options$=(0,l.of)(this.optionProvider):this.optionProvider instanceof Function?this.options$=this.optionProvider(this.formHandler.baseObject):this.optionProvider instanceof x.K$&&(this.options$=this.optionProvider.getOptions(this.formHandler)),this.field.placeholder&&this.options$&&(this.options$=this.options$.pipe((0,t.O)([]),(0,p.U)(Ke=>[{value:o.F,label:this.field.placeholder},...Ke])))}isSelected(Ke){return this.control.value===Ke}renderContentScoreView(Ke){"between"===Ke?(this.showInterval=!0,this.showValue=!0):"empty"===Ke||"notEmpty"===Ke?(this.showValue=!1,this.showInterval=!1,this.form.get("minCtrl").setValue(void 0),this.form.get("maxCtrl").setValue(void 0)):-1===Ke?(this.showValue=!1,this.showInterval=!1):(this.showValue=!0,this.showInterval=!1,this.form.get("maxCtrl").setValue(void 0))}static#e=this.\u0275fac=function(at){return new(at||ue)(e.Y36(s.H1))};static#t=this.\u0275cmp=e.Xpm({type:ue,selectors:[["imx-compare"]],hostAttrs:[1,"imx-compare"],inputs:{form:"form",optionProvider:"optionProvider",disableControl:"disableControl"},features:[e.qOj,e.TTD],decls:2,vars:3,consts:[[4,"ngIf"],[1,"compare__label",3,"ngClass"],[1,"compare__label__text"],[1,"compare__comparator"],[3,"formControl","disableControl","options","required","errors"],[1,"compare__input"],[3,"formControl","disableControl","type","inputMode","required","pattern"],["translate","",1,"compare__text"],[1,"compare__interval"]],template:function(at,Le){1&at&&(e.YNc(0,j,7,8,"ng-container",0),e.ALo(1,"async")),2&at&&e.Q6J("ngIf",e.lcZ(1,1,Le.fieldPermission))},dependencies:[m.mk,m.O5,b.JJ,b.Q7,b.c5,I.bx,b.oH,H.Pi,O.H,P.o,m.Ov,H.X$],styles:["[_nghost-%COMP%]{display:flex}.compare__label[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:300px}.compare__label.hasHint[_ngcontent-%COMP%]{line-height:16px}.compare__label[_ngcontent-%COMP%]:not(.hasHint){line-height:30px}.compare__label__text[_ngcontent-%COMP%]{line-height:unset}.compare__comparator[_ngcontent-%COMP%]{line-height:30px;margin-left:10px;text-align:center;width:150px}.compare__input[_ngcontent-%COMP%], .compare__interval[_ngcontent-%COMP%]{width:70px;margin-left:10px}.compare__text[_ngcontent-%COMP%]{line-height:30px;text-align:center;margin-left:10px}"]})}return ue})();var ne=a(37014),ee=a(17840);let $=(()=>{class ue extends ne.Qw{constructor(Ke){super(),this.injector=Ke}isResponsible(Ke,at){return Ke instanceof ee.l}build(Ke,at,Le,R,Te,me){Ke.clear();const Se=Ke.createComponent(K);return Se.instance.form=at,Se.instance.formHandler=Le,Se.instance.control=R,Se.instance.field=Te,Se.instance.permissionPrefix=me,Se.instance.optionProvider=Te.optionProvider instanceof e.DyG?this.injector.get(Te.optionProvider,Te.optionProvider):Te.optionProvider,Se}static#e=this.\u0275fac=function(at){return new(at||ue)(e.LFG(e.zs3))};static#t=this.\u0275prov=e.Yz7({token:ue,factory:ue.\u0275fac})}return ue})()},90611:(gt,X,a)=>{"use strict";a.d(X,{Y:()=>i});var e=a(20020),n=a(37014),s=a(81169),l=a(19212);let i=(()=>{class t extends n.Qw{isResponsible(c,o){return c instanceof s.Nn}build(c,o,x,u,m,b){const I=c.createComponent(e.I);return I.instance.form=o,I.instance.formHandler=x,I.instance.control=u,I.instance.field=m,I.instance.permissionPrefix=b,I}static#e=this.\u0275fac=(()=>{let c;return function(x){return(c||(c=l.n5z(t)))(x||t)}})();static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac})}return t})()},23646:(gt,X,a)=>{"use strict";a.d(X,{a:()=>i});var e=a(90089),n=a(37014),s=a(66175),l=a(19212);let i=(()=>{class t extends n.Qw{isResponsible(c,o){return c instanceof s.A&&!o.languageChooser}build(c,o,x,u,m,b){c.clear();const I=c.createComponent(e.J);return I.instance.form=o,I.instance.formHandler=x,I.instance.control=u,I.instance.field=m,I.instance.permissionPrefix=b,I}static#e=this.\u0275fac=(()=>{let c;return function(x){return(c||(c=l.n5z(t)))(x||t)}})();static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac})}return t})()},91597:(gt,X,a)=>{"use strict";a.d(X,{Y:()=>i});var e=a(77020),n=a(37014),s=a(32477),l=a(19212);let i=(()=>{class t extends n.Qw{isResponsible(c,o){return c instanceof s.i&&!o.languageChooser}build(c,o,x,u,m,b){const I=c.createComponent(e.S);return I.instance.form=o,I.instance.formHandler=x,I.instance.control=u,I.instance.field=m,I.instance.permissionPrefix=b,I}static#e=this.\u0275fac=(()=>{let c;return function(x){return(c||(c=l.n5z(t)))(x||t)}})();static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac})}return t})()},56416:(gt,X,a)=>{"use strict";a.d(X,{t:()=>i});var e=a(85768),n=a(37014),s=a(15452),l=a(19212);let i=(()=>{class t extends n.Qw{isResponsible(c,o){return c instanceof s.S&&!o.languageChooser}build(c,o,x,u,m,b){c.clear();const I=c.createComponent(e.s);return I.instance.form=o,I.instance.formHandler=x,I.instance.control=u,I.instance.field=m,I.instance.permissionPrefix=b,I}static#e=this.\u0275fac=(()=>{let c;return function(x){return(c||(c=l.n5z(t)))(x||t)}})();static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac})}return t})()},51441:(gt,X,a)=>{"use strict";a.d(X,{P:()=>i});var e=a(13744),n=a(37014),s=a(23765),l=a(19212);let i=(()=>{class t extends n.Qw{isResponsible(c,o){return c instanceof s.II}build(c,o,x,u,m,b){c.clear();const I=c.createComponent(e.a);return I.instance.form=o,I.instance.formHandler=x,I.instance.control=u,I.instance.field=m,I.instance.permissionPrefix=b,I}static#e=this.\u0275fac=(()=>{let c;return function(x){return(c||(c=l.n5z(t)))(x||t)}})();static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac})}return t})()},3619:(gt,X,a)=>{"use strict";a.d(X,{A:()=>i});var e=a(73192),n=a(37014),s=a(15549),l=a(19212);let i=(()=>{class t extends n.Qw{constructor(c){super(),this.injector=c}isResponsible(c,o){return c instanceof s.S}build(c,o,x,u,m,b){const I=c.createComponent(e.n);return I.instance.form=o,I.instance.formHandler=x,I.instance.control=u,I.instance.field=m,I.instance.optionProvider=super.determineOptionProvider(m,this.injector),I}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(l.zs3))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac})}return t})()},57625:(gt,X,a)=>{"use strict";a.d(X,{q:()=>i});var e=a(40869),n=a(37014),s=a(7106),l=a(19212);let i=(()=>{class t extends n.Qw{isResponsible(c,o){return c instanceof s.U}build(c,o,x,u,m,b){c.clear();const I=c.createComponent(e.L);return I.instance.form=o,I.instance.formHandler=x,I.instance.control=u,I.instance.field=m,I.instance.permissionPrefix=b,I}static#e=this.\u0275fac=(()=>{let c;return function(x){return(c||(c=l.n5z(t)))(x||t)}})();static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac})}return t})()},73895:(gt,X,a)=>{"use strict";a.d(X,{S:()=>i});var e=a(98259),n=a(37014),s=a(72957),l=a(19212);let i=(()=>{class t extends n.Qw{constructor(c){super(),this.injector=c}isResponsible(c,o){return c instanceof s.N}build(c,o,x,u,m,b){c.clear();const I=c.createComponent(e.O);return I.instance.form=o,I.instance.formHandler=x,I.instance.control=u,I.instance.field=m,I.instance.permissionPrefix=b,I.instance.optionProvider=super.determineOptionProvider(m,this.injector),I}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(l.zs3))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac})}return t})()},91776:(gt,X,a)=>{"use strict";a.d(X,{x:()=>i});var e=a(19212),n=a(20717),s=a(37014),l=a(87104);let i=(()=>{class t extends s.Qw{constructor(c){super(),this.injector=c}isResponsible(c,o){return c instanceof l.y}build(c,o,x,u,m,b){c.clear();const I=c.createComponent(n.W);return I.instance.form=o,I.instance.formHandler=x,I.instance.control=u,I.instance.field=m,I.instance.permissionPrefix=b,I.instance.optionProvider=super.determineOptionProvider(m,this.injector),m.optionProviderForVisibles&&(I.instance.optionProviderForVisibles=this.determineOptionProviderForVisibles(m)),I}determineOptionProviderForVisibles(c){if((0,s.YA)(c.optionProviderForVisibles)){const x=this.injector.get(c.optionProviderForVisibles.optProvider).getNewInstance();return x.setParams(c.optionProviderForVisibles.params),x}return c.optionProviderForVisibles instanceof e.DyG?this.injector.get(c.optionProviderForVisibles,c.optionProviderForVisibles):c.optionProviderForVisibles}static#e=this.\u0275fac=function(o){return new(o||t)(e.LFG(e.zs3))};static#t=this.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac})}return t})()},28633:(gt,X,a)=>{"use strict";a.d(X,{d:()=>i});var e=a(22989),n=a(37014),s=a(97587),l=a(19212);let i=(()=>{class t extends n.Qw{constructor(c){super(),this.injector=c}isResponsible(c,o){return c instanceof s.S}build(c,o,x,u,m,b){c.clear();const I=c.createComponent(e.C);return I.instance.form=o,I.instance.formHandler=x,I.instance.control=u,I.instance.field=m,I.instance.permissionPrefix=b,I.instance.optionProvider=super.determineOptionProvider(m,this.injector),I}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(l.zs3))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac})}return t})()},81158:(gt,X,a)=>{"use strict";a.d(X,{z:()=>i});var e=a(78029),n=a(37014),s=a(88954),l=a(19212);let i=(()=>{class t extends n.Qw{isResponsible(c,o){return c instanceof s.Q}build(c,o,x,u,m,b){c.clear();const I=c.createComponent(e.f);return I.instance.form=o,I.instance.formHandler=x,I.instance.control=u,I.instance.field=m,I.instance.permissionPrefix=b,I}static#e=this.\u0275fac=(()=>{let c;return function(x){return(c||(c=l.n5z(t)))(x||t)}})();static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac})}return t})()},94469:(gt,X,a)=>{"use strict";a.d(X,{x:()=>p});var e=a(36116),n=a(37014),s=a(72957),l=a(87104),i=a(67276),t=a(19212);let p=(()=>{class c extends n.Qw{constructor(x){super(),this.injector=x}isResponsible(x,u){return x instanceof i.P&&!(x instanceof s.N)&&!(x instanceof l.y)}build(x,u,m,b,I,H){x.clear();const O=x.createComponent(e.H);return O.instance.form=u,O.instance.formHandler=m,O.instance.control=b,O.instance.field=I,O.instance.permissionPrefix=H,O.instance.optionProvider=super.determineOptionProvider(I,this.injector),O}static#e=this.\u0275fac=function(u){return new(u||c)(t.LFG(t.zs3))};static#t=this.\u0275prov=t.Yz7({token:c,factory:c.\u0275fac})}return c})()},26406:(gt,X,a)=>{"use strict";a.d(X,{w:()=>e});class e{getExtensionOrderFields(){return[]}getExtensionOrderFieldsForType(s){return this.getExtensionOrderFields().filter(l=>s===l.extentionSortQueryForType)}}},86118:(gt,X,a)=>{"use strict";a.d(X,{e:()=>e});class e{}},32961:(gt,X,a)=>{"use strict";a.d(X,{Hp:()=>Xt,vK:()=>nn,a9:()=>Je,yH:()=>sn,DR:()=>dt,H_:()=>no,_R:()=>He,Ko:()=>ln,kF:()=>Ie,pW:()=>yn,f7:()=>ct,ho:()=>Oo,gl:()=>En,_J:()=>ni,um:()=>vt,OR:()=>bn,e7:()=>ot,sI:()=>yi,wW:()=>Ii,gg:()=>_i,K:()=>tn,WF:()=>ji,$$:()=>ii,Dl:()=>Li,G$:()=>co,ti:()=>rn});var e=a(56223),n=a(41621),s=a(44590),l=a(31252),i=a(83416),t=a(71041),p=a(6880),c=a(98120),o=a(62934),x=a(62361),u=a(38996),m=a(46893),b=a(12168),I=a(72764),H=a(17840),O=a(81169),P=a(20949),G=a(66175),B=a(32477),ae=a(15452),J=a(23765),q=a(15549),j=a(90230),Y=a(88954),K=a(67276),ne=a(44226),ee=a(48499),$=a(57462),ue=a(20171),ge=a(96124),Ke=a(15604),at=a(19212);let Le=(()=>{class Ce extends ee.I1{constructor(ht){super(),this.collectionsService=ht}getOptions(ht,Qt){return this.collectionsService.getAllAddressbaseAttributes().pipe((0,ge.U)(Un=>Un.map(Yt=>({label:Yt.i18nName,value:Yt.id}))))}static#e=this.\u0275fac=function(Qt){return new(Qt||Ce)(at.LFG(Ke.f))};static#t=this.\u0275prov=at.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})(),R=(()=>{class Ce extends ee.HH{constructor(ht){super(),this.collectionsService=ht}getOptions(ht,Qt){return this.collectionsService.getAllAlpsteinCategories().pipe((0,ge.U)(Un=>Un.map(Yt=>({label:Yt.i18nName,value:Yt.id}))))}sortOptionsFn(ht,Qt,Un){return(0,ee.f$)(ht,Qt,Un)}static#e=this.\u0275fac=function(Qt){return new(Qt||Ce)(at.LFG(Ke.f))};static#t=this.\u0275prov=at.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})();var Te=a(18590),me=a(55417),Se=a(60999),Ue=a(70612),We=a(40175),et=a(90929),Et=a(97683),lt=a(42266),Vt=a(82063),r=a(58320),Z=a(63172),Pt=a(49193);let Oe=(()=>{class Ce extends ee.I1{constructor(){super(...arguments),this.filterComparatorLabels=new Map([["imxplatform.component.opendata.options.none","none"],["imxplatform.component.opendata.options.obj","obj"],["imxplatform.component.opendata.options.img","img"],["imxplatform.component.opendata.options.objimg","objimg"],["imxplatform.component.opendata.options.noImg","noImg"]])}getOptions(ht,Qt){const Un=[];return this.filterComparatorLabels.forEach((Yt,Fn)=>{Un.push({label:Fn,value:Yt})}),(0,Pt.of)(Un)}static#e=this.\u0275fac=(()=>{let ht;return function(Un){return(ht||(ht=at.n5z(Ce)))(Un||Ce)}})();static#t=this.\u0275prov=at.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})();var ye=a(20539),ve=a(65823),ft=a(41921),Dt=a(79360),Rn=a(1033);let ti=(()=>{class Ce extends ee.I1{constructor(ht){super(),this.entityCollectionsService=ht}getOptions(ht,Qt){return this.entityCollectionsService.getAllUserRolesWithoutPermissionCheck().pipe((0,ge.U)(Un=>Un.map(Yt=>({label:Yt.name,value:Yt.id})).sort((Yt,Fn)=>Yt.label.localeCompare(Fn.label))))}static#e=this.\u0275fac=function(Qt){return new(Qt||Ce)(at.LFG(Ke.f))};static#t=this.\u0275prov=at.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})();const Xt=(new p.M).addCreatorFn("title",()=>new G.A("title","entity.%entityType%.title",{required:!0,extendedValidators:e.kI.maxLength(255)})).addCreatorFn("subTitle",()=>new G.A("subTitle","entity.%entityType%.subTitle")).addCreatorFn("shortDescription",()=>new ae.S("shortDescription","entity.%entityType%.shortDescription")).addCreatorFn("longDescription",()=>new B.i("longDescription","entity.%entityType%.longDescription",{renderLabel:!0})).addCreatorFn(o.M,()=>new x.A(o.M,"",{permissionId:"languages",extractor:(0,t.YL)("languages"),insertor:(0,c.wq)("languages")})).addCreatorFn("lockedImportProperties",()=>new x.A("lockedImportProperties","",{permissionId:"lockedImportProperties",insertor:(0,c.wq)("lockedImportProperties"),extractor:(0,t.YL)("lockedImportProperties")})).addCreatorFn("types",()=>new I.N("types","entity.%entityType%.type",{optionProvider:ue.B,extractor:(0,t.XS)("types","id"),insertor:(0,c.wr)("types","id"),renderLabel:!0})).addCreatorFn("addressbaseUser",()=>new x.A("addressbaseUser","entity.%entityType%.addressbaseUser",{extractor:(0,t.YL)("addressbaseUser.id"),insertor:(0,c.wq)("addressbaseUser.id")})).addCreatorFn("permaLink",()=>new G.A("permaLink","entity.ExtCoreDataObject.permaLink",{required:!0,hint:"imxplatform.common-entity.edit.panels.base-data.permaLink-hint"})).addCreatorFn("htmlHeadTitle",()=>new G.A("htmlHeadTitle","entity.ExtCoreDataObject.htmlHeadTitle")).addCreatorFn("searchKeywords",()=>new G.A("searchKeywords","entity.ExtCoreDataObject.searchKeywords")).addCreatorFn("htmlHeadMetaDescription",()=>new ae.S("htmlHeadMetaDescription","entity.ExtCoreDataObject.htmlHeadMetaDescription")).addCreatorFn("canonicalUrl",()=>new G.A("canonicalUrl","entity.ExtCoreDataObject.canonicalUrl",{extendedValidators:$.Y2})).addCreatorFn("tags",()=>new u.OF("tags",!0,[])).addCreatorFn("attributes",()=>new I.N("attributes","entity.%entityType%.attributes",{optionProvider:Le,extractor:(0,t.XS)("attributes","id"),insertor:(0,c.wr)("attributes","id"),renderLabel:!1})).addCreatorFn("attributeDefinitions",()=>new u.OF("attributeDefinitions",!1,[new x.A("attribute","entity.ExtendedAttributeDefinition.attribute",{extractor:(0,t.YL)("attribute"),insertor:(0,c.wq)("attribute")}),new O.Nn("validityFromDate","entity.ExtendedAttributeDefinition.validityFromDate"),new O.Nn("validityToDate","entity.ExtendedAttributeDefinition.validityToDate"),new J.II("text","information","entity.ExtendedAttributeDefinition.information"),new G.A("i18nInformation","entity.ExtendedAttributeDefinition.i18nInformation"),new K.P("enumValue","entity.ExtendedAttributeDefinition.enumValue",{placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,t.YL)("enumValue.id"),insertor:(0,c.wq)("enumValue.id",!0),initialValue:-1}),new J.II("int","intValue","entity.ExtendedAttributeDefinition.intValue"),new J.II("number","doubleValue","entity.ExtendedAttributeDefinition.doubleValue"),new m.w("entityIdValue","entity.ExtendedAttributeDefinition.entityIdValue",{useAnyNameHolder:!1})],{renderLabel:!1})).addCreatorFn("socialMedia",()=>new u.OF("socialMedia",!1,[new K.P("provider","Netzwerk",{required:!0,optionProvider:Rn.h,extractor:(0,t.YL)("provider.id"),insertor:(0,c.wq)("provider.id",!0),renderValueAsLabel:!0}),new J.II("text","identification","ID")],{renderLabel:!1})).addCreatorFn("addSocialMediaField",()=>new K.P("addSocialMediaField","",{optionProvider:{optProvider:et.v,params:{entityType:"SocialMediaProvider"}},placeholder:"imxplatform.common.select-placeholder-add",renderLabel:!1,initialValue:-1,insertor:(0,c.G3)()})).addCreatorFn("client",()=>new x.A("client","entity.CoreDataObject.client",{extractor:(0,t.YL)("client.id"),insertor:(0,c.wq)("client.id")})).addCreatorFn("bookingLink",()=>new G.A("bookingLink","entity.%entityType%.bookingLink",{hint:"imxplatform.common-entity.edit.panels.base-data.bookingLink-hint",extendedValidators:$.Y2})).addCreatorFn("bookingLinkText",()=>new G.A("bookingLinkText","entity.%entityType%.bookingLinkText")).addCreatorFn("entityState",()=>new K.P("entityState","entity.ExtCoreDataObject.entityState",{optionProvider:Ue.K,extractor:(0,t.YL)("entityState.key"),insertor:(0,c.wq)("entityState.key")})).addCreatorFn("regions",()=>new x.A("regions","",{extractor:(0,t.XS)("regions","id"),insertor:(0,c.wr)("regions","id")})).addCreatorFn("location",()=>new x.A("location","entity.GeoInfo.city",{extractor:(0,t.YL)("location.id"),insertor:(0,c.wq)("location.id")})).addCreatorFn("regions_adv",()=>new u.OF("regions_adv",!0,[],{extractor:(0,t.YL)("regions"),insertor:(0,c.G3)()})).addCreatorFn("author",()=>new J.II("text","author","entity.ExtCoreDataObject.author")).addCreatorFn("mediaLicense",()=>new K.P("mediaLicense","entity.ExtCoreDataObject.mediaLicense",{placeholder:"imxplatform.common.select-placeholder-no-selection",optionProvider:Vt.V,extractor:(0,t.YL)("mediaLicense.id"),insertor:(0,c.wq)("mediaLicense.id",!0),initialValue:-1})).addCreatorFn("media",()=>new u.OF("media",!1,[new x.A(u.Qy,"",{extractor:(0,t.Cx)(),insertor:(0,c.G3)()}),new x.A("assignmentId","",{extractor:(0,t.YL)("id"),insertor:(0,c.G3)()}),new x.A("_entityType",""),new x.A("pooledMediumId","",{extractor:(0,t.YL)("pooledMedium.id"),insertor:(0,c.wq)("pooledMedium.id")}),new x.A("pooledMediumEntityType","",{extractor:(0,t.YL)("pooledMedium._entityType"),insertor:(0,c.wq)("pooledMedium._entityType")}),new x.A("fileType",""),new G.A("title","entity.PooledMedium.title",{extractor:(0,t.YL)("pooledMedium.title"),insertor:(0,c.G3)(),readonly:!0}),new J.II("text","identification","entity.PooledMedium.identification",{extractor:(0,t.YL)("pooledMedium.identification"),insertor:(0,c.G3)(),readonly:!0}),new J.II("number","sortingValue","entity.DataObjectMedium.sortingValue",{required:!0,initialValue:-1}),new G.A("link","entity.DataObjectMedium.link",{extendedValidators:$.Y2}),new K.P("imageType","entity.DataObjectMedium.imageType",{optionProvider:lt.C,extractor:(0,t.YL)("imageType.id"),insertor:(0,c.wq)("imageType.id",!0),renderLabel:!0}),new q.S("languages","",{optionProvider:Z.N,extractor:(0,t.XS)("languages","id"),insertor:(0,c.wr)("languages","id"),renderLabel:!1}),new O.Nn("fromDate","entity.DataObjectMedium.fromDate"),new O.Nn("toDate","entity.DataObjectMedium.toDate"),new b.X("annually","entity.DataObjectMedium.annually"),new b.X("activated","entity.DataObjectMedium.activated",{permissionId:"deactivated",insertor:(0,c.kY)("deactivated"),extractor:(0,c.hq)("deactivated")})])).addCreatorFn("mediaChangedFromOutside",()=>new x.A("mediaChangedFromOutside","",{insertor:(0,c.G3)(),extractor:(0,t.O_)()})).addCreatorFn("appearances",()=>new u.OF("appearances",!1,[...Je()],{permissionId:"appearance",renderLabel:!1})).addCreatorFn("pendingAppearances",()=>new u.OF("pendingAppearances",!0,[...Je()],{permissionId:"appearance",renderLabel:!1})).addCreatorFn("refusedAppearances",()=>new u.OF("refusedAppearances",!0,[...Je()],{permissionId:"appearance",renderLabel:!1})).addCreatorFn("articleAppearances",()=>new u.OF("appearances",!1,[...dt()],{permissionId:"appearance",renderLabel:!1})).addCreatorFn("articlePendingAppearances",()=>new u.OF("pendingAppearances",!0,[...dt()],{permissionId:"appearance",renderLabel:!1})).addCreatorFn("articleRefusedAppearances",()=>new u.OF("refusedAppearances",!0,[...dt()],{permissionId:"appearance",renderLabel:!1})).addCreatorFn("metainfos",()=>new u.OF("metainfos",!1,[new x.A("moduleId","",{extractor:(0,t.YL)("productline.id"),insertor:(0,c.wq)("productline.id")}),new P.N("productlineInfo",[new G.A("title","entity.ProductlineInfo.title",{}),new G.A("subTitle","entity.ProductlineInfo.subTitle",{}),new ae.S("shortDesc","entity.ProductlineInfo.shortDesc",{}),new B.i("longDesc","entity.ProductlineInfo.longDesc",{}),new J.II("text","contactName","entity.ProductlineInfo.contactName",{}),new J.II("text","firstName","entity.ProductlineInfo.firstName",{}),new J.II("text","lastName","entity.ProductlineInfo.lastName",{}),new G.A("email","entity.ProductlineInfo.email",{}),new G.A("homepage","entity.ProductlineInfo.homepage",{}),new G.A("homepageLinkText","entity.ProductlineInfo.homepageLinkText",{}),new G.A("phone","entity.ProductlineInfo.phone",{}),new G.A("htmlHeadTitle","entity.ProductlineInfo.htmlHeadTitle",{}),new G.A("htmlHeadMetaDescription","entity.ProductlineInfo.htmlHeadMetaDescription",{}),new G.A("searchKeywords","entity.ProductlineInfo.searchKeywords",{})])],{noPermissionInherit:!0})).addCreatorFn("productlineIds",()=>new x.A("productlineIds","",{extractor:(0,t.XS)("metainfos","productline.id"),insertor:co(),permissionId:"productlines"})).addCreatorFn("contentScore",()=>new Y.Q("contentScore","entity.ScorableDataObject.contentScore",{extractor:En("contentScore")})).addCreatorFn("relevanceScore",()=>new J.II("int","relevanceScore","entity.AddressPoi.relevanceScore",{insertor:(0,c.wq)("relevanceScore"),extractor:(0,t.YL)("relevanceScore"),extendedValidators:$.gi,hint:"imxplatform.common-entity.edit.panels.base-data.relevance-hint"}));function Je(){return[new O.Nn("fromDate","entity.BasicAppearance.fromDate",{required:!0,initialValue:Ii()}),new O.Nn("toDate","entity.BasicAppearance.toDate",{required:!0,initialValue:_i()}),new x.A("deliveryChannel","entity.BasicAppearance.deliveryChannel",{extractor:(0,t.YL)("deliveryChannel.id"),insertor:(0,c.wq)("deliveryChannel.id",!0)}),new q.S("languages","entity.BasicAppearance.languages",{optionProvider:Z.N,extractor:(0,t.XS)("languages","id"),insertor:(0,c.wr)("languages","id")}),new x.A("proposer","",{extractor:(0,t.YL)("proposer.id"),insertor:(0,c.G3)()})]}function dt(){return[...Je(),new K.P("prioLevel","entity.Appearance.prioLevel",{required:!0,optionProvider:ve.m,extractor:(0,t.YL)("prioLevel.id"),insertor:(0,c.wq)("prioLevel.id",!0),initialValue:1})]}function Ie(Ce,tt){return[new J.II("text",Ce+".contactName",tt+".contactName"),new J.II("text",Ce+".firstname",tt+".firstname"),new J.II("text",Ce+".lastname",tt+".lastname"),new K.P(Ce+".salutation",tt+".salutation",{optionProvider:(0,ee.lm)(),initialValue:""}),new J.II("text",Ce+".address.addition",tt+".address.addition"),new K.P(Ce+".address.country",tt+".address.country",{optionProvider:Se.l,initialValue:null}),new J.II("text",Ce+".address.email",tt+".address.email",{extendedValidators:$.Le}),new J.II("text",Ce+".address.fax",tt+".address.fax",{extendedValidators:e.kI.maxLength(100)}),new J.II("text",Ce+".address.phone1",tt+".address.phone1",{extendedValidators:e.kI.maxLength(100)}),new J.II("text",Ce+".address.phone2",tt+".address.phone2",{extendedValidators:e.kI.maxLength(100)}),new J.II("text",Ce+".address.street",tt+".address.street"),new J.II("text",Ce+".address.streetNo",tt+".address.streetNo"),new m.w(Ce+".address.zipcode",tt+".address.zipcode",{autocompleteService:s.l,useAnyNameHolder:!0}),new m.w(Ce+".address.city",tt+".address.city",{autocompleteService:s.l,useAnyNameHolder:!0}),new G.A(Ce+".address.homepage",tt+".address.homepage",{extendedValidators:$.Y2,hint:"imxplatform.common-entity.edit.hint.url"}),new G.A(Ce+".address.homepageLinkText",tt+".address.homepageLinkText")]}function ot(){return[new x.A("geoInfo.master","",{permissionId:"geoInfo",extractor:(0,t.O_)(),insertor:(0,c.G3)()}),new J.II("coordinate","geoInfo.coordinates.longitude","entity.GeoInfo.longitude"),new J.II("coordinate","geoInfo.coordinates.latitude","entity.GeoInfo.latitude"),new x.A("geoInfo.coordinates.minLatitude","entity.GeoInfo.minLatitude"),new x.A("geoInfo.coordinates.maxLatitude","entity.GeoInfo.maxLatitude"),new x.A("geoInfo.coordinates.minLongitude","entity.GeoInfo.minLongitude"),new x.A("geoInfo.coordinates.maxLongitude","entity.GeoInfo.maxLongitude"),new J.II("text","geoInfo.wikidataId","entity.GeoInfo.wikidataId"),new J.II("text","geoInfo.osmId","entity.GeoInfo.osmId"),new J.II("text","geoInfo.timezone","entity.GeoInfo.timezone",{readonly:!0}),new x.A("geoInfo.what3words","entity.GeoInfo.what3words",{extractor:(0,t.YL)("geoInfo.what3words"),insertor:(0,c.G3)(),readonly:!0}),new x.A("geoInfo.coordinates.geoCoords","",{permissionId:"geoInfo",extractor:(0,t.YL)("geoInfo.coordinates.geoCoords"),insertor:(0,c.wq)("geoInfo.coordinates.geoCoords")}),new x.A("geoInfo.coordinates.geoCenter","",{permissionId:"geoInfo",extractor:(0,t.YL)("geoInfo.coordinates.geoCenter"),insertor:(0,c.wq)("geoInfo.coordinates.geoCenter")}),new m.w("geoInfo.city","entity.GeoInfo.city",{autocompleteService:s.l,useAnyNameHolder:!0}),new J.II("text","geoInfo.street","entity.GeoInfo.street"),new J.II("text","geoInfo.streetNo","entity.GeoInfo.streetNo"),new J.II("text","geoInfo.zipcode","entity.GeoInfo.zipcode"),new K.P("geoInfo.country","entity.GeoInfo.country",{optionProvider:Se.l,initialValue:null}),new I.N("geoInfo.geoSystems","",{optionProvider:Et.s,extractor:(0,t.nH)("geoInfo.geoSystems"),insertor:(0,c.kJ)("geoInfo.geoSystems"),renderLabel:!1,rowLayout:!0,permissionId:"geoInfo.system"}),new j.T("geoInfo.alpsteinInfo.categories","entity.AlpsteinInfo.categories",{optionProvider:R,extractor:(0,t.XS)("geoInfo.alpsteinInfo.categories","id"),insertor:(0,c.wr)("geoInfo.alpsteinInfo.categories","id")}),new x.A("geoRegion","entity.GeoInfo.geoRegion",{extractor:(0,t.YL)("geoInfo.geoRegion"),insertor:(0,c.wq)("geoInfo.geoRegion")}),new x.A("path1Region","",{extractor:(0,t.YL)("geoInfo.path1Region"),insertor:(0,c.wq)("geoInfo.path1Region")}),new x.A("path1RegionId","",{extractor:(0,t.YL)("geoInfo.path1RegionId"),insertor:(0,c.wq)("geoInfo.path1RegionId")}),new x.A("path2Region","",{extractor:(0,t.YL)("geoInfo.path2Region"),insertor:(0,c.wq)("geoInfo.path2Region")}),new x.A("path2RegionId","",{extractor:(0,t.YL)("geoInfo.path2RegionId"),insertor:(0,c.wq)("geoInfo.path2RegionId")}),new x.A("path3Region","",{extractor:(0,t.YL)("geoInfo.path3Region"),insertor:(0,c.wq)("geoInfo.path3Region")}),new x.A("path3RegionId","",{extractor:(0,t.YL)("geoInfo.path3RegionId"),insertor:(0,c.wq)("geoInfo.path3RegionId")}),new x.A("path4Region","",{extractor:(0,t.YL)("geoInfo.path4Region"),insertor:(0,c.wq)("geoInfo.path4Region")}),new x.A("path4RegionId","",{extractor:(0,t.YL)("geoInfo.path4RegionId"),insertor:(0,c.wq)("geoInfo.path4RegionId")}),new x.A("path5Region","",{extractor:(0,t.YL)("geoInfo.path5Region"),insertor:(0,c.wq)("geoInfo.path5Region")}),new x.A("path5RegionId","",{extractor:(0,t.YL)("geoInfo.path5RegionId"),insertor:(0,c.wq)("geoInfo.path5RegionId")})]}function ct(){return[new u.OF("contactLists",!1,[new x.A("contactList","",{extractor:(0,t.YL)("contactList"),insertor:(0,c.wq)("contactList")}),new J.II("text","contactListName","",{extractor:(0,t.YL)("contactList.name"),insertor:(0,c.wq)("contactList.name"),required:!0}),new K.P("contextProductline","entity.EntityListContact.contextProductline",{placeholder:"imxplatform.common.select-placeholder-no-selection",optionProvider:ft.j,extractor:(0,t.YL)("contextProductline.id"),insertor:(0,c.wq)("contextProductline.id",!0),initialValue:-1}),new K.P("contactPurpose","entity.EntityListContact.contactPurpose",{optionProvider:me.Q,placeholder:"imxplatform.common.select-placeholder-no-selection",extractor:(0,t.YL)("contactPurpose.id"),insertor:(0,c.wq)("contactPurpose.id",!0),initialValue:-1}),new x.A("listInfoClient","",{extractor:(0,t.YL)("contactList.listInfoClient"),insertor:(0,c.wq)("contactList.listInfoClient")})],{renderLabel:!1})]}function tn(Ce){return[yi(Ce),new J.II("text","importId","filter."+Ce+".importId",{insertor:(0,c.FO)((0,c.wq)("importId"))}),new J.II("text","permalink","filter."+Ce+".permalink",{required:!1}),new K.P("language","filter."+Ce+".language",{optionProvider:Te.q,placeholder:"imxplatform.common-entity.filter.mainFilter.language-placeholder",initialValue:i.lT.name})]}function yi(Ce){return new J.II("text","id","filter."+Ce+".id",{extendedValidators:$.el,insertor:(0,c.FO)((0,c.wq)("id"))})}function ni(Ce){return[new x.A("fulltext","filter."+Ce+".fulltext",{required:!1}),new x.A("fulltextSearchOption","filter."+Ce+".fulltextSearchOption",{required:!1,initialValue:i.wK.ANDSEARCH}),new x.A("restrictTitle","filter."+Ce+".restrictTitle",{required:!1,initialValue:!0,extractor:(0,t.Uk)("restrictTitle")}),new x.A("restrictShortDesc","filter."+Ce+".restrictShortDesc",{required:!1,extractor:(0,t.Uk)("restrictShortDesc")}),new x.A("restrictLongDesc","filter."+Ce+".restrictLongDesc",{required:!1,extractor:(0,t.Uk)("restrictLongDesc")}),new x.A("restrictCity","filter."+Ce+".restrictCity",{required:!1,extractor:(0,t.Uk)("restrictCity")}),new x.A("restrictStreet","filter."+Ce+".restrictStreet",{required:!1,extractor:(0,t.Uk)("restrictStreet")}),new x.A("exactOption","filter."+Ce+".exactOption",{required:!1}),new x.A("andOption","filter."+Ce+".andOption",{required:!1}),new x.A("orOption","filter."+Ce+".orOption",{required:!1}),new x.A("restrict","filter."+Ce+".restrict",{required:!1})]}function sn(Ce){return[new x.A("appearanceFrom","",{required:!1,fieldValueType:"date"}),new x.A("appearanceTo","",{required:!1,fieldValueType:"date"}),new I.N("entityState","filter."+Ce+".entityState",{optionProvider:Ue.K,rowLayout:!0,big:!0,extractor:(0,t.Id)("entityState"),insertor:(0,c.AA)("entityState")}),new K.P("deliveryChannel","filter."+Ce+".deliveryChannel",{optionProvider:ye.K,placeholder:"imxplatform.common-entity.filter.appearanceFilter.delivery-channel-placeholder",extractor:(0,t.V6)("deliveryChannel"),initialValue:-1}),new K.P("language4App","filter."+Ce+".language4App",{optionProvider:Te.q,placeholder:"imxplatform.common-entity.filter.appearanceFilter.language-placeholder",initialValue:i.lT.name}),new x.A("confirmedAppearances",""),new x.A("pendingAppearances",""),new x.A("refusedAppearances","")]}function bn(Ce){return[new x.A("geoLocationId","",{required:!1}),new x.A("zipCode","filter."+Ce+".zipCode",{required:!1}),new J.II("coordinate","longitude","filter."+Ce+".longitude",{required:!1}),new J.II("coordinate","latitude","filter."+Ce+".latitude",{required:!1}),new J.II("number","searchDistance","filter."+Ce+".searchDistance",{required:!1,hint:"imxplatform.common-entity.filter.geoFilter.searchDistanceHint"}),new x.A("noGeoCoords","filter."+Ce+".noGeoCoords",{required:!1}),new x.A("noRegion","filter."+Ce+".noRegion",{required:!1}),new x.A("noLocation","filter."+Ce+".noLocation",{required:!1}),new K.P("regionIds","filter."+Ce+".regionIds",{optionProvider:Dt.w,placeholder:"imxplatform.common-entity.filter.geoFilter.region-placeholder",extractor:(0,t.V6)("regionIds"),initialValue:-1,required:!1}),new K.P("geoRegionId","filter."+Ce+".geoRegion",{optionProvider:Dt.w,placeholder:"imxplatform.common-entity.filter.geoFilter.region-placeholder",extractor:(0,t.V6)("geoRegionId"),initialValue:-1,required:!1})]}function vt(Ce){return[new x.A("geoLocationIdAlt","",{required:!1}),new x.A("zipCodeAlt","filter."+Ce+".zipCode",{required:!1}),new J.II("coordinate","longitudeAlt","filter."+Ce+".longitude",{required:!1}),new J.II("coordinate","latitudeAlt","filter."+Ce+".latitude",{required:!1}),new J.II("number","searchDistanceAlt","filter."+Ce+".searchDistance",{required:!1,hint:"imxplatform.common-entity.filter.geoFilter.searchDistanceHint"}),new x.A("noGeoCoordsAlt","filter."+Ce+".noGeoCoords",{required:!1}),new x.A("noRegionAlt","filter."+Ce+".noRegion",{required:!1}),new x.A("noLocationAlt","filter."+Ce+".noLocation",{required:!1}),new K.P("regionIdsAlt","filter."+Ce+".regionIds",{optionProvider:Dt.w,placeholder:"imxplatform.common-entity.filter.geoFilter.region-placeholder",extractor:(0,t.V6)("regionIdsAlt"),initialValue:-1,required:!1}),new K.P("geoRegionIdAlt","filter."+Ce+".geoRegion",{optionProvider:Dt.w,placeholder:"imxplatform.common-entity.filter.geoFilter.region-placeholder",extractor:(0,t.V6)("geoRegionIdAlt"),initialValue:-1,required:!1})]}function nn(Ce){return[new x.A("importSource","filter."+Ce+".importSource",{required:!1}),new x.A("importPurpose","filter."+Ce+".importPurpose",{required:!1}),new x.A("importRunId","filter."+Ce+".importRunId",{required:!1})]}function rn(Ce){return[new H.l("contentScore","imxplatform.common-entity.filter.qualityFilter.content-score",{optionProvider:We.Q,required:!1,renderLabel:!0,insertor:ln("contentScore"),extractor:He("contentScore")}),new ne.l("imagesAvailable","filter.AddressPoi.imagesAvailable",{required:!1}),new ne.l("mediaCopyrightAvailable","filter."+Ce+".mediaCopyrightAvailable",{required:!1}),new K.P("mediaLicense","filter."+Ce+".mediaLicense",{optionProvider:Vt.V,placeholder:"imxplatform.common-entity.filter.qualityFilter.media-license-placeholder",extractor:(0,t.V6)("mediaLicense"),initialValue:-1,required:!1,renderLabel:!1}),new K.P("imageMediaLicense","filter."+Ce+".imageMediaLicense",{optionProvider:Vt.V,placeholder:"imxplatform.common-entity.filter.qualityFilter.media-license-placeholder",extractor:(0,t.V6)("imageMediaLicense"),initialValue:-1,required:!1,renderLabel:!1})]}function ii(Ce){return[new K.P("opendata","filter."+Ce+".opendata",{optionProvider:Oe,placeholder:"imxplatform.common-entity.filter.openDataFilter.placeholder",extractor:(0,t.YL)("opendata"),initialValue:-1,required:!1})]}function Oo(){return[new H.l("longDescriptionContent","imxplatform.common-entity.filter.qualityFilter.long-desc-label",{optionProvider:We.Q,required:!1,renderLabel:!0,hint:"imxplatform.common-entity.filter.qualityFilter.long-desc-label-hint",insertor:ln("longDescriptionContent"),extractor:He("longDescriptionContent")}),new H.l("metaDescriptionContent","imxplatform.common-entity.filter.qualityFilter.meta-desc-label",{optionProvider:We.Q,required:!1,renderLabel:!0,hint:"imxplatform.common-entity.filter.qualityFilter.meta-desc-label-hint",insertor:ln("metaDescriptionContent"),extractor:He("metaDescriptionContent")})]}function no(Ce){return[new x.A("clientIds","",{extractor:(0,t.Id)("clientIds"),insertor:(0,c.AA)("clientIds")}),new x.A("includeSubClients","filter."+Ce+".includeSubClients",{required:!1}),new m.w("creationUser","filter."+Ce+".creationUser",{autocompleteService:l.v,autocompleteFilter:{clientIds:l.W},useAnyNameHolder:!1,extractor:(0,t.V6)("creationUser"),insertor:(0,c.wq)("creationUser"),required:!1}),new m.w("lastChangeUser","filter."+Ce+".lastChangeUser",{autocompleteService:l.v,autocompleteFilter:{clientIds:l.W},useAnyNameHolder:!1,extractor:(0,t.V6)("lastChangeUser"),insertor:(0,c.wq)("lastChangeUser"),required:!1}),new K.P("creationRole","filter."+Ce+".creationRole",{optionProvider:ti,placeholder:"imxplatform.common-entity.filter.mainFilter.creation-role-placeholder",extractor:(0,t.V6)("creationRole"),initialValue:-1,required:!1}),new K.P("lastChangeRole","filter."+Ce+".lastChangeRole",{optionProvider:ti,placeholder:"imxplatform.common-entity.filter.mainFilter.last-change-role-placeholder",extractor:(0,t.V6)("lastChangeRole"),initialValue:-1,required:!1})]}function Li(Ce){return[new x.A("productlineIds","",{extractor:(0,t.Id)("productlineIds"),insertor:(0,c.AA)("productlineIds")}),new x.A("productlineSearchOption","",{required:!1,initialValue:i.FD.ALLPL})]}function ji(){return[new ne.l("withMemo","filter.Memo.withMemo",{required:!1}),new m.w("memoUserId","filter.Memo.memoUser",{autocompleteService:l.v,autocompleteFilter:{clientIds:l.W},useAnyNameHolder:!1,extractor:(0,t.V6)("memoUserId"),insertor:(0,c.wq)("memoUserId"),required:!1}),new O.Nn("memoFromDate","filter.Memo.memoFromDate"),new O.Nn("memoToDate","filter.Memo.memoToDate"),new K.P("withMemoAttributeId","filter.Memo.withMemoAttributeId",{optionProvider:r.b,placeholder:"imxplatform.common.select-placeholder-any",extractor:(0,t.V6)("withMemoAttributeId"),insertor:(0,c.wq)("withMemoAttributeId",!0),initialValue:-1}),new K.P("withoutMemoAttributeId","filter.Memo.withoutMemoAttributeId",{optionProvider:r.b,placeholder:"imxplatform.common.select-placeholder-any",extractor:(0,t.V6)("withoutMemoAttributeId"),insertor:(0,c.wq)("withoutMemoAttributeId",!0),initialValue:-1})]}function Ii(){return new Date}function _i(){return new Date(2099,11,31)}function En(Ce){return tt=>function Ve(Ce){return Ce&&Math.round(10*Ce)/10}(tt[Ce])}function co(){return(Ce,tt)=>{const ht=tt.metainfos,Qt=[];Ce.forEach(Yt=>{const Fn=ht.find(yt=>(0,n.jg)(yt,["productline","id"])===Yt);Qt.push(Fn||{id:null,productline:{id:Yt}})}),tt.metainfos=Qt}}function yn(Ce){return(tt,ht)=>{(0,c.wq)(Ce)(ht.id?null:tt,ht)}}function ln(Ce){return(tt,ht)=>{const Un=Ce+"Max";(0,c.wq)(Ce+"Comparator")(tt.comparatorCtrl!==K.F?function $e(Ce){return Ce&&"string"==typeof Ce?Ce.replace(/=/g,"equal"):Ce}(tt.comparatorCtrl):void 0,ht),(0,c.wq)(Ce)(tt.minCtrl,ht),(0,c.wq)(Un)(tt.maxCtrl,ht)}}function He(Ce){return tt=>{const ht={},Fn=tt[Ce],yt=tt[Ce+"Max"];return ht.comparatorCtrl=function rt(Ce){return Ce&&Ce!==K.F?String(Ce).replace(/%3C/g,"<").replace(/%3E/g,">").replace(/equal/g,"="):K.F}(tt[Ce+"Comparator"]),ht.minCtrl=Fn,ht.maxCtrl=yt,ht}}},40340:(gt,X,a)=>{"use strict";a.d(X,{K:()=>p,R:()=>t});var e=a(19212),n=a(21473),s=a(45315),l=a(12891),i=a(60075);const t=new e.OlP("imxplatform.configuration-definition-part.config");let p=(()=>{class c extends s.z{constructor(x,u,m,b,I){super(l._,void 0,x,m,b),this.configurationDefPartConfigs=I}getEntityType(){return"ConfigurationDefinitionPart"}getConfigDefPartConfig(x){let u;return x&&(u=void 0,this.configurationDefPartConfigs.forEach(m=>{const b=m.find(I=>I.entityName===x);b&&(u=b)})),u||this.getDefaultConfigDefPartConfig()}getDefaultConfigDefPartConfig(){return l._}static#e=this.\u0275fac=function(u){return new(u||c)(e.LFG(i.EG),e.LFG(n.Xh),e.LFG(n.Ze),e.LFG(n.H1),e.LFG(t))};static#t=this.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})()},67638:(gt,X,a)=>{"use strict";a.d(X,{eI:()=>c,hs:()=>p,oO:()=>o});var e=a(56223),n=a(79309),s=a(21473),l=a(22819),i=a(59143),t=a(19212);const p="assignmentId";function c(x,u){return x+"_"+u}let o=(()=>{class x{constructor(m,b,I){this.userMessageService=m,this.configurationProvider=b,this.platformDataAccessService=I}assignNewMediaToCurrentEntity(m,b,I,H,O,P){m.forEach(G=>{this.platformDataAccessService.getPooledMediaById(G).subscribe(B=>{const ae=O.initializeDataObject(B,b,void 0);this.initializeImageType(ae,B,P),ae.pooledMedium=B;const J=new e.nJ({});b.addNewFormControlsForRow(H,J),this.patchValuesIntoMediaRow(J,ae,b,H),J.get(p).setValue(c(G,1)),J.markAsDirty(),I.push(J),I.markAsDirty()})})}initializeImageType(m,b,I){if(b.mediaType&&b.mediaType.id===n.MR.id){const H=this.configurationProvider.getNumberFromSnapshot(s.x3.PLATFORM_IMAGE_DEFAULT_TYPE_ID);H&&H>0&&I.some(O=>O.id===H)?m.imageType={id:H}:I.length>=1&&(m.imageType={id:I[0].id})}}patchValuesIntoMediaRow(m,b,I,H){const O=I.getObjectLanguages().map(G=>G.name),P={};H.children.forEach(G=>I.transferFieldValueIncoming(G,P,b,O,m)),m.patchValue(P)}static#e=this.\u0275fac=function(b){return new(b||x)(t.LFG(i.Y),t.LFG(s.Pc),t.LFG(l.nq))};static#t=this.\u0275prov=t.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"})}return x})()},28635:(gt,X,a)=>{"use strict";a.d(X,{x:()=>n});var e=a(79309);class n{initializeDataObject(l,i,t){const p={id:null,sortingValue:0,languages:[],annually:!1,fromDate:void 0,toDate:void 0,pooledMedium:l};return this.extendDataObjectMedium(p,l,i,t),p}extendDataObjectMedium(l,i,t,p){i.mediaType||console.error("pooledMedium without mediaType?",i),i.mediaType.name===e.MR.name&&(l.imageType=p,l._entityType=t.getEntityType()+"Image"),i.mediaType.name===e.iC.name&&(l._entityType=t.getEntityType()+"Video"),i.mediaType.name===e.FJ.name&&(l._entityType=t.getEntityType()+"File",l.fileType=i.identification.split(".").pop()),i.mediaType.name===e.LD.name&&(l._entityType=t.getEntityType()+"File",l.fileType=e.LD.name)}}},48485:(gt,X,a)=>{"use strict";a.d(X,{J:()=>s,r:()=>n});var e=a(19212);const n=new e.OlP("imxplatform.entity-permission.service");let s=(()=>{class l{constructor(t){this.services=new Map,t.forEach(p=>this.services.set(p.getEntityType(),p))}getEntityPermissionService(t){return this.services.get(t)}static#e=this.\u0275fac=function(p){return new(p||l)(e.LFG(n))};static#t=this.\u0275prov=e.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},37014:(gt,X,a)=>{"use strict";a.d(X,{FJ:()=>s,Qw:()=>l,YA:()=>i,mr:()=>n});var e=a(19212);const n=new e.OlP("imxplatform.forms.componentbuilder");let s=(()=>{class t{constructor(c){this.builders=c}build(c,o,x,u,m,b,I){const H=this.builders.find(O=>O.isResponsible(b,c));return H?H.build(o,x,u,m,b,I):null}static#e=this.\u0275fac=function(o){return new(o||t)(e.LFG(n))};static#t=this.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac})}return t})();class l{determineOptionProvider(p,c){if(i(p.optionProvider)){const x=c.get(p.optionProvider.optProvider).getNewInstance();return x.setParams(p.optionProvider.params),x}return p.optionProvider instanceof e.DyG?c.get(p.optionProvider,p.optionProvider):p.optionProvider}}function i(t){return"optProvider"in t}},45118:(gt,X,a)=>{"use strict";a.d(X,{Y:()=>n});var e=a(19212);let n=(()=>{class s{isErrorState(i,t){return!(!i||!i.invalid)}static#e=this.\u0275fac=function(t){return new(t||s)};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})()},97111:(gt,X,a)=>{"use strict";a.d(X,{n:()=>e});class e{constructor(s){this.id=s}}},97049:(gt,X,a)=>{"use strict";a.d(X,{Bo:()=>I,FT:()=>u,OU:()=>P,R5:()=>O,SC:()=>j,TV:()=>o,VK:()=>J,hn:()=>b,j5:()=>H,jV:()=>Y,ln:()=>c,pD:()=>K,u:()=>q,vD:()=>x,w1:()=>m,xC:()=>B});var e=a(41621),n=a(57462),s=a(62411),l=a(98120),i=a(19425),t=a(23765),p=a(67276);class c extends s.E{constructor(ee,$,ue,ge,Ke,at,Le,R,Te,me,Se,Ue){super($),this.entityName=ee,this.fields=$,this.optionalFilterFields=ue,this.filterPredicateFns=ge,this.optionalOrderFields=Ke,this._baseEntityDialog=at,this.orderFieldSortFnMap=Le,this.actions=R,this.deleteDialogTxt=Te,this.deleteBatchDialogTxt=me,this.dataSourceToken=Se,this.updateDataSourceToken=Ue,this.filterFields=[],this.filterFields.push(new t.II("text","id","entity.DataObject.id",{extendedValidators:n.el,insertor:(0,l.FO)((0,l.wq)("id"))})),this.optionalFilterFields&&this.filterFields.push(...ue),this.filterPredicates=[],this.filterPredicates.push(B("id")),ge&&this.filterPredicates.push(...ge),this.baseEntityDialog=at,this.sortPredicates=Le,$.forEach(We=>{We instanceof i.b&&(this.containsI18nFields=!0)})}}function o(){return u("name")}function x(){return b("i18nName")}function u(ne){return(ee,$)=>!$[ne]||null!=ee[ne]&&ee[ne].toLowerCase().includes($[ne].toLowerCase())}function m(ne,ee){return($,ue)=>{if(ue[ne]){const ge=(0,e.jg)($,ee);return null!=ge&&ge.toLowerCase().includes(ue[ne].toLowerCase())}return!0}}function b(ne){return(ee,$)=>{if($[ne]){const ue=ee[ne];return void 0!==ue&&Object.keys(ue).filter(ge=>"id"!==ge&&"_entityType"!==ge).some(ge=>ue[ge]&&ue[ge].toLowerCase().includes($[ne].toLowerCase()))}return!0}}function I(ne,ee){return($,ue)=>{if(ue[ne]){const ge=(0,e.jg)($,ee);return void 0!==ge&&ge==ue[ne]}return!0}}function H(ne,ee){return($,ue)=>{if(ue[ne]){const ge=(0,e.jg)($,ee);return void 0!==ge&&ge.some(Ke=>Ke==ue[ne])}return!0}}function O(ne,ee,$){return(ue,ge)=>{if(ge[ne]){const Ke=(0,e.jg)(ue,ee);return void 0!==Ke&&$(Ke,ge)}return!0}}function P(ne){return(ee,$)=>!!ne(ee,$)||!!ee.children&&G(ee,$,ne)}function G(ne,ee,$){if($(ne,ee))return ne.nodeFiltered=!0,!0;if(ne.children){const ue=ne.children.filter(ge=>G(ge,ee,$));return ue.length>0&&(ne.children=ue,ne.childFiltered=!0,!0)}return!1}function B(ne){return(ee,$)=>{if($[ne]){const ue=$[ne].split(",").map(ge=>parseInt(ge,10));return ee.children?ae(ee,ue):ue.some(ge=>ge===ee.id)}return!0}}function ae(ne,ee){if(ee.some($=>$===ne.id))return ne.nodeFiltered=!0,!0;if(ne.children){const $=ne.children.filter(ue=>ae(ue,ee));return $.length>0&&(ne.children=$,ne.childFiltered=!0,!0)}return!1}function J(ne,ee,$=!1){return(ue,ge)=>!ge[ne]||ge[ne]===p.F.toString()||($?null!=ue[ne]&&ue[ne].map(Ke=>Ke[ee]).some(Ke=>Ke==ge[ne]):null!=ue[ne]&&ue[ne].map(Ke=>Ke[ee]).join(" ").includes(ge[ne]))}function q(ne,ee){return($,ue)=>{if(ue[ne]){let ge=!1;return $[ne].map(Ke=>Ke[ee]).forEach(Ke=>{Object.keys(Ke).filter(at=>"id"!==at&&"_entityType"!==at).some(at=>Ke[at]&&Ke[at].includes(ue[ne]))&&(ge=!0)}),ge}return!0}}function j(ne){return ne?"imxplatform.common.yes":"imxplatform.common.no"}function Y(ne,ee){return null!==ne.ownerClient&&null!==ee.ownerClient?ne.ownerClient.name<ee.ownerClient.name?-1:ne.ownerClient.name>ee.ownerClient.name?1:0:null!==ne.ownerClient&&null===ee.ownerClient?-1:null===ne.ownerClient&&null!==ee.ownerClient?1:0}const K=new c("default",[new t.II("text","id","entity.DataObject.id",{readonly:!0})])},12891:(gt,X,a)=>{"use strict";a.d(X,{_:()=>l,l:()=>s});var e=a(62411),n=a(23765);class s extends e.E{constructor(t,p){super(p),this.entityName=t,this.fields=p}}const l=new s("default",[new n.II("text","configKey","imxplatform.configuration-definition-part.configKey"),new n.II("text","configValue","imxplatform.configuration-definition-part.configValue")])},71041:(gt,X,a)=>{"use strict";a.d(X,{Cx:()=>l,Id:()=>I,MK:()=>G,O_:()=>i,TH:()=>b,Uk:()=>O,V6:()=>H,XI:()=>o,XS:()=>t,YL:()=>s,Z4:()=>u,Zw:()=>m,ge:()=>P,nH:()=>c,wU:()=>x,xO:()=>p});var e=a(21473),n=a(41621);function s(B){return ae=>B.includes(".")?(0,n.jg)(ae,B.split(".")):ae[B]}function l(){return B=>B}function i(){return B=>{}}function t(B,ae){return J=>{const q=(0,n.jg)(J,B.split("."));if(null==q)return null;const j=[];return q.forEach(Y=>j.push((0,n.jg)(Y,ae.split(".")))),j}}function p(B,ae,J){return q=>{const j=(0,n.jg)(q,B.split("."));if(null==j)return null;const Y=[];return j.forEach(K=>{K.attributeGroup&&K.attributeGroup.id===J&&Y.push((0,n.jg)(K,ae.split(".")))}),Y}}function c(B){return ae=>{let J;if(J=B.includes(".")?(0,n.jg)(ae,B.split(".")):ae[B],J)return Object.keys(J).filter(j=>!0===J[j])}}function o(B){return ae=>{const J=B(ae);if(J)return(0,e.gR)(new Date(J))}}function x(B){return ae=>{const J=B(ae);if(J)return new Date(J)}}function u(B,ae){return J=>ae(B(J))}function m(B,ae){return J=>{const q=B(J);return q&&q.toString().replace(".",ae)}}function b(B){return ae=>{const J=ae[B];return J?J.split(","):[]}}function I(B){return ae=>{const J=ae[B];return J?J.split(",").map(q=>Number.parseInt(q,10)):[]}}function H(B){return ae=>{const J=ae[B];if(J)return Number.parseFloat(J)}}function O(B){return ae=>{const J=ae[B];return!(!J||"true"!==J)||(!J||"false"!==J)&&void 0}}function P(B,ae,J){return q=>{if((0,n.jg)(q,"productline.id".split("."))!==ae)return;const Y=q[B];return Y&&Y._entityType===J?Y:{}}}function G(B,ae){return J=>{const q=B(J),j=ae.find(Y=>Y.value===q);return j?j.label:""}}},6880:(gt,X,a)=>{"use strict";a.d(X,{M:()=>s,k:()=>n});var e=a(38996);function n(l){return i=>i.replace("%entityType%",l)}class s{constructor(){this.fields=new Map}addCreatorFn(i,t){return this.fields.set(i,t),this}createField(i,t,p){if(this.fields.get(i)){const c=this.fields.get(i)(p);return t&&(c.setLabel(t(c.label)),c instanceof e.OF&&c.children.forEach(o=>o.setLabel(t(o.label)))),c}throw new Error("FieldDefinitions - unknown field "+i)}fieldExists(i){return void 0!==this.fields.get(i)}}},34077:(gt,X,a)=>{"use strict";a.d(X,{U:()=>e,V:()=>n});class e{constructor(l,i,t){this.type=l,this.fieldReference=i,this.extensionField=t}}var n=function(s){return s[s.OVERRIDE=0]="OVERRIDE",s[s.INSERT_BEFORE=1]="INSERT_BEFORE",s[s.INSERT_AFTER=2]="INSERT_AFTER",s[s.REMOVE=3]="REMOVE",s[s.ADD=4]="ADD",s}(n||{})},62411:(gt,X,a)=>{"use strict";a.d(X,{E:()=>p});var e=a(19212),n=a(21473),s=a(27556),l=a(62934),i=a(38996),t=a(20949);class p{constructor(o,x=!1){this.fields=o,this.languageChooser=x,this.logger=(0,n.jl)("FormConfiguration",s.H.name),this.validateFields(o)}validateFields(o){const x={};o.forEach(u=>{if(x[u.id]){if((0,e.X6Q)())throw new Error("ERROR: duplicate field definition of field "+u.id);console.error("ERROR: duplicate field definition of field "+u.id,this)}x[u.id]=!0})}getLanguageField(){return this.fields.find(o=>o.id===l.M)}findFormFieldById(o){if(o.includes(t.P)){const x=o.substring(0,o.lastIndexOf(t.P)),u=this.determineGroupField(null,x.split(t.P));return u?u.getChildField(o.substring(o.lastIndexOf(t.P)+1)):void 0}return this.fields.find(x=>x.id===o)}findArrayFieldById(o){const x=this.findFormFieldById(o);if(x instanceof i.OF)return x;throw new Error("cannot find AbstractFormItem of type ArrayField with id "+o+" in the FormConfiguration")}hasSomeField(...o){return o.some(x=>null!=this.findFormFieldById(x))}determineGroupField(o,x){let u;if(u=o?o.getChildField(x[0]):this.findFormFieldById(x[0]),u&&u instanceof t.N)return x.length>1?this.determineGroupField(u,x.slice(1)):u;this.logger.error("cannot find GroupField with path "+x+" in the FormConfiguration")}}},75794:(gt,X,a)=>{"use strict";a.d(X,{m:()=>e});class e{constructor(s){this.extensions=s,this.lockableFields=[]}setLockableFields(s){return this.lockableFields=s,this}}},98120:(gt,X,a)=>{"use strict";a.d(X,{AA:()=>o,FO:()=>O,G3:()=>u,Gk:()=>i,Gx:()=>b,_U:()=>I,d_:()=>P,hq:()=>B,iw:()=>m,kJ:()=>p,kY:()=>ae,nY:()=>x,sD:()=>H,t0:()=>l,wq:()=>t,wr:()=>c,y8:()=>G});var e=a(96814),n=a(41621),s=a(71041);const l="yyyy-MM-dd HH:mm:ss.SSS";function i(J){return new e.uU("de").transform(J,l)}function t(J,q){return(j,Y)=>{if(q&&("number"==typeof j&&-1===j||"string"==typeof j&&"-1"===j)&&(j=null),J.includes(".")){const K=J.split(".");if("id"==K[K.length-1]&&(null==j||"string"==typeof j&&""==j)){const ne=G(Y,K.slice(0,K.length-2),!1);ne?ne[K[K.length-1]]=j:Y[K[0]]=null}else G(Y,K.slice(0,K.length-1),!0)[K[K.length-1]]=j}else Y[J]=j}}function p(J){return(q,j)=>{const Y=G(j,J.split("."),!0);Object.keys(Y).filter(K=>"boolean"==typeof Y[K]).forEach(K=>Y[K]=!1),q instanceof Array&&q.forEach(K=>{"boolean"==typeof Y[K]&&(Y[K]=!0)})}}function c(J,q){return(j,Y)=>{const K=[];j&&j.forEach(ee=>{const $={};$[q]=ee,K.push($)});const ne=J.split(".");ne.length>1?G(Y,ne.slice(0,ne.length-1),!0)[ne[ne.length-1]]=K:Y[J]=K}}function o(J){return(q,j)=>{const Y=t(J);Y(q&&q instanceof Array&&q.length>0?q.join(","):void 0,j)}}function x(J){return(q,j)=>{const Y=t(J);if(q){const K=[],ne=q;if(Array.isArray(ne)&&ne.length>0)for(let ee=0;ee<ne.length;ee++)K.push(ne[ee]);else!1===Array.isArray(ne)&&K.push(ne);Y(K,j)}else Y([],j)}}function u(){return(J,q)=>{}}function m(J,q,j){return(Y,K)=>{(0,n.jg)(K,"productline.id".split("."))===q&&Y&&(K[J]=Y)}}function b(){return(J,q)=>{Object.assign(q,J)}}function I(J,q){return(j,Y)=>{J(q,Y)}}function H(J,q){return(j,Y)=>{let K=j;j&&(K=Number.parseFloat(j.toString().replace(q,"."))),J(K,Y)}}function O(J){return(q,j)=>{let Y=q;q&&(Y=q.replace(/\s/g,"")),J(Y,j)}}function P(J){return(q,j)=>{let Y=q;q instanceof Date||(Y=Date.parse(q+"")),Y=i(Y),J(Y,j)}}function G(J,q,j){let Y=J[q[0]];return!Y&&j&&(J[q[0]]={},Y=J[q[0]]),Y?q.length>1?G(Y,q.slice(1),j):Y:null}function B(J){return q=>!(0,s.YL)(J)(q)}function ae(J){return(q,j)=>{q=!q,t(J)(q,j)}}},62934:(gt,X,a)=>{"use strict";a.d(X,{M:()=>l,o:()=>i});var e=a(56223),n=a(98120),s=a(36584);const l="languageField";class i extends s.A{constructor(p,c,o){super(p,c,o),this.required=!1,this.readOnly=!1,this.extendedValidators=[],this.hint=void 0,this.fieldValueType=void 0,this.insertor=o&&o.insertor?o.insertor:(0,n.wq)(p),o&&(this.required=o.required||!1,this.extendedValidators=o.extendedValidators||[],this.hint=o.hint,this.readOnly=o.readonly||!1,this.fieldValueType=o.fieldValueType)}determineRequiredValidator(){return[e.kI.required]}applyValidatorsToControl(p){let c=[];return this.required&&c.push(...this.determineRequiredValidator()),this.extendedValidators&&(c=c.concat(this.extendedValidators)),p.setValidators(c),p}appendValidator(p){const c=[];this.extendedValidators&&(this.extendedValidators instanceof Array?c.push(...this.extendedValidators):c.push(this.extendedValidators)),c.push(p),this.extendedValidators=c}}},19425:(gt,X,a)=>{"use strict";a.d(X,{b:()=>l});var e=a(56223),n=a(57462),s=a(62934);class l extends s.o{constructor(p,c,o){super(p,c,o),this.extendedI18nValidators=[],o&&(this.extendedI18nValidators=o.extendedI18nValidators||[])}applyValidatorsToControl(p){const c=this.applyI18nGroupValidator(p);return Object.keys(c.controls).filter(o=>"id"!==o&&"_entityType"!==o).forEach(o=>{super.applyValidatorsToControl(c.get(o))}),c}applyI18nGroupValidator(p){const c=[];return this.extendedI18nValidators&&(this.extendedI18nValidators instanceof Array?this.extendedI18nValidators.forEach(o=>c.push(o)):c.push(this.extendedI18nValidators)),this.extendedValidators&&c.push(i),this.required&&c.push(n.LF),p.setValidators(c),p}}function i(t){if(t instanceof e.nJ){const p=t,c=Object.keys(p.controls).filter(n.y8).filter(o=>p.get(o).invalid);return c.length>0?{i18nSubControlFailed:{groupHint:!0,count:c.length,languages:"'"+c.join(",")+"'"}}:null}return null}},36584:(gt,X,a)=>{"use strict";a.d(X,{A:()=>s});var e=a(97111),n=a(71041);class s extends e.n{constructor(i,t,p){super(i),this.renderLabel=!0,this.label=t,this.permissionId=p&&p.permissionId?p.permissionId:this.id,this.lockableId=p&&p.lockableId?p.lockableId:this.id,this.extractor=p&&p.extractor?p.extractor:(0,n.YL)(i),this.initialValue=p?p.initialValue:null,this.renderLabel=!p||void 0===p.renderLabel||p.renderLabel,this.baseEntityFieldOption=p&&p.baseEntityFieldOption?p.baseEntityFieldOption:{}}setLabel(i){return this.label=i,this}}},62361:(gt,X,a)=>{"use strict";a.d(X,{A:()=>n});var e=a(62934);class n extends e.o{constructor(l,i,t){super(l,i||"",t)}}},38996:(gt,X,a)=>{"use strict";a.d(X,{OF:()=>p,Qy:()=>t,rs:()=>i});var e=a(71041),n=a(98120),s=a(62361),l=a(20949);const i="rowId",t="rowEntity";class p extends l.N{constructor(o,x,u,m){super(o,u,m),this.children=u,this.isStrongType=x||!1,x?(this.children.push(new s.A(t,"",{extractor:(0,e.Cx)(),insertor:(0,n.Gx)()})),this.children.push(new s.A(i,"",{extractor:(0,e.YL)("id"),insertor:(0,n.wq)("id")}))):this.children.push(new s.A(i,"",{extractor:(0,e.YL)("id"),insertor:(0,n.wq)("id")})),this.children.forEach(b=>{b.renderLabel=m&&void 0!==m.renderLabel?m.renderLabel&&b.renderLabel:b.renderLabel})}}},46893:(gt,X,a)=>{"use strict";a.d(X,{w:()=>n});var e=a(62934);class n extends e.o{constructor(l,i,t){super(l,i,t),t&&(t.autocompleteService&&(this.autocompleteService=t.autocompleteService),t.autocompleteFilter&&(this.autocompleteFilter=t.autocompleteFilter),t.useAnyNameHolder&&(this.useAnyNameHolder=t.useAnyNameHolder),t.displayItemFn&&(this.displayItemFn=t.displayItemFn))}}},72764:(gt,X,a)=>{"use strict";a.d(X,{N:()=>n});var e=a(62934);class n extends e.o{constructor(l,i,t){super(l,i,t),this.rowLayout=!1,this.big=!1,this.isLanguageSelect=!1,this.optionProvider=t.optionProvider,t&&(this.rowLayout=t.rowLayout||!1,this.big=t.big||!1,this.isLanguageSelect=t.isLanguageSelect||!1)}}},12168:(gt,X,a)=>{"use strict";a.d(X,{X:()=>n});var e=a(62934);class n extends e.o{constructor(l,i,t){super(l,i||"",t)}}},17840:(gt,X,a)=>{"use strict";a.d(X,{l:()=>n});var e=a(62934);class n extends e.o{constructor(l,i,t){super(l,i,t),this.initialValue={comparatorCtrl:-1,minCtrl:void 0,maxCtrl:void 0},this.placeholder="imxplatform.common.compare-placeholder",t&&(this.optionProvider=t.optionProvider,this.placeholder=t.placeholder?t.placeholder:this.placeholder,this.hint=t.hint)}}},81169:(gt,X,a)=>{"use strict";a.d(X,{Nn:()=>i});var e=a(96814),n=a(71041),s=a(98120),l=a(62934);class i extends l.o{constructor(o,x,u){super(o,x,u),(!u||!u.insertor)&&(this.insertor=function t(c){return(o,x)=>{let u=o;o instanceof Date&&(u=new e.uU("de").transform(o,"yyyy-MM-dd")),c(u,x)}}((0,s.wq)(o))),(!u||!u.extractor)&&(this.extractor=function p(c){return o=>{const x=c(o);if(x)return new Date(x)}}((0,n.YL)(o))),u&&(this.quickaccess=u.quickaccess)}}},20949:(gt,X,a)=>{"use strict";a.d(X,{N:()=>s,P:()=>n});var e=a(62934);const n=":";class s extends e.o{constructor(i,t,p){super(i,"",p),this.children=t,this.childFormControls=new Map,this.permissionSeparator=p&&p.permissionSeparator?p.permissionSeparator:".",(!p||!0!==p.noPermissionInherit)&&(t.forEach(c=>this.prependPermissionToChild(c,this.permissionId+this.permissionSeparator)),t.forEach(c=>this.prependLockableIdToChild(c,this.lockableId))),this.readOnly&&t.forEach(c=>{this.propagateReadOnlyStateToChild(c)})}prependPermissionToChild(i,t){i.permissionId=t+i.permissionId,i instanceof s&&i.children.forEach(p=>this.prependPermissionToChild(p,t))}prependLockableIdToChild(i,t){i.lockableId=t+i.lockableId,i instanceof s&&i.children.forEach(p=>this.prependLockableIdToChild(p,t))}propagateReadOnlyStateToChild(i){i instanceof e.o&&(i.readOnly=!0,i instanceof s&&i.children.forEach(t=>this.propagateReadOnlyStateToChild(t)))}addChildField(i){return this.children.push(i),this.prependPermissionToChild(i,this.permissionId+this.permissionSeparator),this}addChildFormControl(i,t){this.childFormControls.set(i,t)}getChildField(i){return this.children.find(t=>t.id===i)}}},66175:(gt,X,a)=>{"use strict";a.d(X,{A:()=>n});var e=a(19425);class n extends e.b{}},32477:(gt,X,a)=>{"use strict";a.d(X,{i:()=>n});var e=a(19425);class n extends e.b{}},15452:(gt,X,a)=>{"use strict";a.d(X,{S:()=>n});var e=a(19425);class n extends e.b{}},23765:(gt,X,a)=>{"use strict";a.d(X,{CZ:()=>p,IB:()=>o,II:()=>s,k4:()=>x,l7:()=>n,vK:()=>c});var e=a(62934);function n(u){return"number"===u||"int"===u||"coordinate"===u||"price"===u}class s extends e.o{constructor(m,b,I,H){super(b,I,H),this.type=m,("time"===m||"date"===m)&&(this.insertor=function l(u){return(m,b)=>{u(""===m?null:m,b)}}(this.insertor)),"price"===m&&(this.extractor=function t(u){return m=>{const b=u(m);return b&&b.toFixed(2)}}(this.extractor),this.insertor=function i(u){return(m,b)=>{if(null==m||""===m)u(null,b);else{const I=Number(Number(m).toFixed(2));u(""===I?null:I,b)}}}(this.insertor),this.validationDecimals=2),"duration"===m&&(this.extractor=p(this.extractor),this.insertor=c(this.insertor)),H&&void 0!==H.validationDecimals&&(this.validationDecimals=H.validationDecimals),H&&void 0!==H.positiveOnly&&(this.positiveOnly=H.positiveOnly)}}function p(u){return m=>{const b=u(m);if(b)return o(b)}}function c(u){return(m,b)=>{if(m&&"string"==typeof m){const I=x(m);u(I,b)}else u(void 0,b)}}function o(u){if(null!=u){const m=Math.floor(u/60),b=u%60;return`${m>=10?m:`0${m}`}:${b>=10?b:`0${b}`}`}return""}function x(u){const m=u.split(":");return 60*parseInt(m[0],10)+parseInt(m[1],10)}},15549:(gt,X,a)=>{"use strict";a.d(X,{S:()=>n});var e=a(62934);class n extends e.o{constructor(l,i,t){super(l,i,t),this.optionProvider=t.optionProvider,this.renderAsReadOnly=t.renderAsReadOnly||!1}}},90230:(gt,X,a)=>{"use strict";a.d(X,{T:()=>n});var e=a(62934);class n extends e.o{constructor(l,i,t){super(l,i,t),t&&(this.optionProvider=t.optionProvider)}}},60092:(gt,X,a)=>{"use strict";a.d(X,{I:()=>i,e:()=>l});var e=a(71041),n=a(98120),s=a(20949);const l="$";class i extends s.N{constructor(p,c,o){super(p,c,{...o,permissionId:o.moduleClass,lockableId:o.moduleClass+":",permissionSeparator:":",extractor:(0,e.ge)("data",o.moduleId,o.moduleClass),insertor:(0,n.iw)("data",o.moduleId,o.moduleClass)}),this.children=c,this.options=o}}},7106:(gt,X,a)=>{"use strict";a.d(X,{U:()=>n});var e=a(62934);class n extends e.o{constructor(l,i,t){super(l,i,t)}}},72957:(gt,X,a)=>{"use strict";a.d(X,{N:()=>n});var e=a(67276);class n extends e.P{}},87104:(gt,X,a)=>{"use strict";a.d(X,{y:()=>n});var e=a(67276);class n extends e.P{constructor(l,i,t){super(l,i,t),this.optionProviderForVisibles=t.optionProviderForVisibles}}},97587:(gt,X,a)=>{"use strict";a.d(X,{S:()=>l});var e=a(56223),n=a(57462),s=a(62934);class l extends s.o{constructor(t,p,c){super(t,p,c),c&&(this.optionProvider=c.optionProvider,this.renderValueAsLabel=c.renderValueAsLabel||!1,this.groupRenderMode=c.groupRenderMode||"block")}determineRequiredValidator(){return[n.lS,e.kI.required]}}},88954:(gt,X,a)=>{"use strict";a.d(X,{Q:()=>n});var e=a(36584);class n extends e.A{}},67276:(gt,X,a)=>{"use strict";a.d(X,{F:()=>l,P:()=>i});var e=a(56223),n=a(57462),s=a(62934);const l=-1;class i extends s.o{constructor(p,c,o){super(p,c,o),o&&(this.optionProvider=o.optionProvider,this.placeholder=o.placeholder,this.renderValueAsLabel=o.renderValueAsLabel||!1)}determineRequiredValidator(){return[n.lS,e.kI.required]}}},28970:(gt,X,a)=>{"use strict";a.d(X,{X:()=>n});var e=a(62934);class n extends e.o{constructor(l,i,t){super(l,i,t)}}},23324:(gt,X,a)=>{"use strict";a.d(X,{Y:()=>n});var e=a(62934);class n extends e.o{constructor(l,i,t){super(l,i,t),t&&(this.optionProvider=t.optionProvider)}}},12947:(gt,X,a)=>{"use strict";a.d(X,{w:()=>n});var e=a(23324);class n extends e.Y{constructor(l,i,t){super(l,i,t)}}},44226:(gt,X,a)=>{"use strict";a.d(X,{l:()=>l});var e=a(56223),n=a(57462),s=a(62934);class l extends s.o{constructor(t,p,c){super(t,p||"",c)}determineRequiredValidator(){return[n.lS,e.kI.required]}}},48499:(gt,X,a)=>{"use strict";a.d(X,{Cf:()=>p,DZ:()=>u,HH:()=>i,I1:()=>s,Ih:()=>l,K$:()=>t,OL:()=>I,P8:()=>H,Qy:()=>x,Tm:()=>m,f$:()=>c,h7:()=>O,lm:()=>o});var e=a(79309),n=a(41621);class s{}class l extends s{}class i extends s{}class t{}class p{}function c(P,G,B){return(0,n.QK)(P.label)?(0,n.Qi)(P.label,G.label,B):P.label&&G.label?P.label.localeCompare(G.label):0}function o(){return[{value:"",label:"imxplatform.common.no-value"},{value:"Herr",label:"imxplatform.common.salutations.mr"},{value:"Frau",label:"imxplatform.common.salutations.mrs"},{value:"Familie",label:"imxplatform.common.salutations.family"}]}function x(){return[{value:"Deutschland",label:"imxplatform.common.country.germany"},{value:"\xd6sterreich",label:"imxplatform.common.country.austria"},{value:"Schweiz",label:"imxplatform.common.country.switzerland"},{value:"Liechtenstein",label:"imxplatform.common.country.liechtenstein"},{value:"Frankreich",label:"imxplatform.common.country.france"},{value:"Luxemburg",label:"imxplatform.common.country.luxembourg"},{value:"Belgien",label:"imxplatform.common.country.belgium"},{value:"Niederlande",label:"imxplatform.common.country.netherlands"},{value:"D\xe4nemark",label:"imxplatform.common.country.denmark"},{value:"Norwegen",label:"imxplatform.common.country.norway"},{value:"Schweden",label:"imxplatform.common.country.sweden"},{value:"Finnland",label:"imxplatform.common.country.finland"},{value:"Tschechien",label:"imxplatform.common.country.czechia"},{value:"Italien",label:"imxplatform.common.country.italy"},{value:"Slowenien",label:"imxplatform.common.country.slovenia"},{value:"Kroatien",label:"imxplatform.common.country.croatia"},{value:"Polen",label:"imxplatform.common.country.poland"}]}function u(){return[{value:"List",label:"List"},{value:"BarChartDate",label:"BarChartDate"},{value:"PieChartSimple",label:"PieChartSimple"},{value:"Links",label:"Links"},{value:"TextReadWrite",label:"TextReadWrite"}]}function m(){return[{value:e.ij,label:"entity.ExtendedAttribute.valueType.none"},{value:e.B8,label:"entity.ExtendedAttribute.valueType.int"},{value:e.nJ,label:"entity.ExtendedAttribute.valueType.enum"},{value:e.vk,label:"entity.ExtendedAttribute.valueType.double"},{value:e.Vg,label:"entity.ExtendedAttribute.valueType.entity"}]}const b=[e.qL.id,e.MN.id];function I(){return e.TS.filter(G=>b.includes(G.id)).map(G=>({value:G.name,label:"entity.UserType."+G.name}))}function H(){return e.TS.sort((G,B)=>G.name.localeCompare(B.name)).map(G=>({value:G.id,label:"entity.UserType."+G.name}))}function O(){return e.k6.map(G=>({value:G.id,label:"entity.UserState."+G.name}))}},84432:(gt,X,a)=>{"use strict";a.d(X,{L:()=>e});class e{constructor(s,l){this.moduleKey=s,this.baseEntityFormConfigurations=l}}},57462:(gt,X,a)=>{"use strict";a.d(X,{E9:()=>B,KB:()=>o,LF:()=>c,Le:()=>ae,M:()=>p,UP:()=>i,Y2:()=>u,YP:()=>x,Yn:()=>J,_O:()=>H,bk:()=>G,el:()=>t,fB:()=>P,gi:()=>I,lS:()=>m,sm:()=>b,wB:()=>O,y8:()=>l});var e=a(56223),n=a(96124),s=a(51418);const l=q=>"id"!==q&&"_entityType"!==q,i="^\\s*\\d+\\s*(,\\s*\\d+\\s*)*$",t=e.kI.pattern(i),p=new Date(100,0,1);function c(q){if(q instanceof e.nJ){const j=q;return Object.keys(j.controls).filter(l).every(K=>{const ne=j.get(K);return ne&&ne.value&&ne.value.length>0})?null:{i18nAll:{groupHint:!0,countAll:Object.keys(j.controls).filter(l).length}}}return null}function o(q){let j;return j=q instanceof e.p4&&q.parent?q.parent:q,Object.keys(j.controls).filter(l).some(K=>{const ne=j.get(K);return ne&&ne.value&&ne.value.length>0})?null:{i18nSome:{groupHint:!0}}}function x(q){let j;return j=q instanceof e.p4&&q.parent?q.parent:q,Object.keys(j.controls).filter(l).some(K=>{const ne=j.get(K);return ne&&null!=ne.value})?null:{i18nSome:{groupHint:!0}}}function u(q){if(q&&q.value&&q.value.length>0){const j=q.value;if(!j.startsWith("https://")&&!j.startsWith("http://")||!j.includes("."))return{httpUrl:!0}}return null}function m(q){return void 0===q.value||null==q.value||-1===q.value?{required:!0}:null}function b(q){return q.value&&q.value<p?{invalidDate:!0}:null}function I(q){return q&&q.value&&q.value.length>0&&(q.value<0||q.value>100)?{relevanceScore:!0}:null}function H(q){return j=>q.pipe((0,n.U)(Y=>Y.some(K=>K===j.value)),(0,n.U)(Y=>Y?{nameExists:!0}:null),(0,s.q)(1))}function O(q){return j=>q.pipe((0,n.U)(Y=>Y.some(K=>K.name===j.value)),(0,n.U)(Y=>Y?{listExists:!0}:null),(0,s.q)(1))}function P(q,j){return Y=>{if(Y.value&&Y.enabled){const K=new Date(Y.value);return K.getTime()<q.getTime()||K.getTime()>j.getTime()?{invalidAnnouncementDate:!0}:null}}}function G(q,j){return Y=>{if(Y.value&&Y.enabled){const K=new Date(Y.value);return K.getDate()<q.getDate()&&K.getMonth()<q.getMonth()&&K.getFullYear()<q.getFullYear()||K.getDate()>j.getDate()&&K.getMonth()>j.getMonth()&&K.getFullYear()>j.getFullYear()?{invalidDate:!0}:null}}}const B=new RegExp(".+@.+\\..{2,}");function ae(q){return q&&q.value&&q.value.length>0&&(!B.test(q.value)||q.value.length>255)?{invalidEmail:!0}:null}const J=new RegExp("^[0-9]{1,}:[0-5][0-9]$")},49431:(gt,X,a)=>{"use strict";a.d(X,{D:()=>u});var e=a(71041),n=a(98120),s=a(62361),l=a(38996),i=a(66175),t=a(32477),p=a(23765),c=a(60092),o=a(6880),x=a(57462);const u=(new o.M).addCreatorFn("modules_story_article",b=>new c.I("modules_story_article",[new l.OF("stories",!1,[new p.II("int","sortValue","entity.Story.sortValue",{initialValue:0,required:!0}),new i.A("title","entity.Story.title",{extendedI18nValidators:x.KB,required:!0}),new t.i("generalDescription","entity.Story.generalDescription"),new l.OF("storyContacts",!1,[new p.II("int","sortValue","",{initialValue:0,required:!0,extractor:(0,e.YL)("sortValue"),insertor:(0,n.wq)("sortValue")}),new s.A("contactAddressPoi","",{extractor:(0,e.YL)("contactAddressPoi"),insertor:(0,n.wq)("contactAddressPoi")})],{extractor:(0,e.YL)("storyContacts"),insertor:(0,n.wq)("storyContacts")}),new l.OF("storyImages",!1,[new p.II("int","sortValue","",{initialValue:0,required:!0,extractor:(0,e.YL)("sortValue"),insertor:(0,n.wq)("sortValue")}),new i.A("title","",{extractor:(0,e.YL)("title"),insertor:(0,n.wq)("title")}),new s.A("fileName","",{extractor:(0,e.YL)("fileName"),insertor:(0,n.wq)("fileName")}),new s.A("deeplink","",{extractor:(0,e.YL)("deeplink"),insertor:(0,n.G3)()})],{extractor:(0,e.YL)("storyImages"),insertor:(0,n.wq)("storyImages")})])],{moduleClass:"StoryArticle",moduleId:400001e3}))},42582:(gt,X,a)=>{"use strict";a.d(X,{RH:()=>t,VI:()=>l,WC:()=>s,a$:()=>i});var e=a(19212),n=a(60092);const s=new e.OlP("imxplatform.metainfo.form-panel.provider"),l=new e.OlP("imxplatform.metainfo.filter-panel.provider"),i="modules_event";let t=(()=>{class p{constructor(o,x){this.metainfoFormPanelMappings=new Map,this.metainfoFilterPanelMappings=new Map,o.forEach(u=>u.getMetainfoFormPanelMappings().forEach((m,b,I)=>this.metainfoFormPanelMappings.set(b,m))),x.forEach(u=>u.getMetainfoFilterPanelMappings().forEach((m,b,I)=>this.metainfoFilterPanelMappings.set(b,m)))}getMetainfoFormPanelComponent(o,x){return this.metainfoFormPanelMappings.get(o)||this.metainfoFormPanelMappings.get(o+n.e+x)}getFilterPanelComponent(o){return this.metainfoFilterPanelMappings.get(o)}static#e=this.\u0275fac=function(x){return new(x||p)(e.LFG(s),e.LFG(l))};static#t=this.\u0275prov=e.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},71049:(gt,X,a)=>{"use strict";a.d(X,{L:()=>p,s:()=>t});var e=a(19212),n=a(21473),s=a(34077),l=a(75794),i=a(60092);const t=new e.OlP("imxplatform.module.field.definition");let p=(()=>{class c{constructor(x,u){this.fieldDefs=x,this.configurationProvider=u,this.configuredModules=[],this.productlines=new Map,this.configurationProvider.getString(n.x3.IMXPLATFORM_MODULES).subscribe(m=>this.configuredModules.push(...m.split(",").map(b=>b.trim()))),this.configurationProvider.getString(n.x3.IMXPLATFORM_TO_MIGRATE_MODULES).subscribe(m=>this.configuredModules.push(...m.split(",").map(b=>b.trim())))}getModulesFormExtension(x){const u=[];return this.configuredModules.forEach(m=>{const b=this.fieldDefs.find(I=>I.fieldExists(m));if(b)u.push(b.createField(m,void 0,this.productlines));else{const I=this.fieldDefs.find(H=>H.fieldExists(m+i.e+x));I?u.push(I.createField(m+i.e+x,void 0,this.productlines)):console.warn("no field collections yet or module is no data module: "+m)}}),new l.m(u.map(m=>new s.U(s.V.ADD,"metainfos",m)))}getEventModuleFormExtension(){const x=[],u=this.fieldDefs.find(m=>m.fieldExists("modules_event"));return u?u.createField("modules_event",void 0,this.productlines).children.forEach(b=>x.push(b)):console.warn("no field collections yet for module modules_event"),new l.m(x.map(m=>new s.U(s.V.ADD,"metainfo",m)))}static#e=this.\u0275fac=function(u){return new(u||c)(e.LFG(t),e.LFG(n.Pc))};static#t=this.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})()},60075:(gt,X,a)=>{"use strict";a.d(X,{$y:()=>t,EG:()=>i,Gy:()=>l});var e=a(19212),n=a(56223),s=a(62361);const l=new e.OlP("imxplatform.forms.controlbuilder");let i=(()=>{class p{constructor(o){this.controlBuilders=o}buildControl(o){const x=this.controlBuilders.find(m=>o instanceof m.formItemType);if(x)return x.build(o,this.controlBuilders);const u=new n.p4("");return o instanceof s.A&&o.applyValidatorsToControl(u),u}static#e=this.\u0275fac=function(x){return new(x||p)(e.LFG(l))};static#t=this.\u0275prov=e.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})();class t{applyDefaultFields(c){c&&(c.addControl("id",new n.p4),c.addControl("_entityType",new n.p4))}}},99234:(gt,X,a)=>{"use strict";a.d(X,{f:()=>p});var e=a(49193),n=a(75222),s=a(21473),l=a(22819),i=a(8801),t=a(19212);let p=(()=>{class c extends i.T{constructor(x,u,m,b){super(x,u,m,b),this.imxSecurityManagerService=x,this.runtimeContext=u,this.configurationProvider=m,this.platformDataAccessService=b}getEntityType(){return"PooledDataObjectMedium"}calcReadPermissionById(x){return this.platformDataAccessService.getPooledMediaById(x).pipe((0,n.w)(u=>this.calcReadPermission(u)))}calcSavePermissionById(x){return this.platformDataAccessService.getPooledMediaById(x).pipe((0,n.w)(u=>this.calcSavePermission(u)))}calcSavePermission(x){return-99===x.id||this.securityManagerService.hasPermission(s.uo.F_POOLED_MEDIUM_UPDATE_ALL)?(0,e.of)(!0):this.securityManagerService.hasPermission(s.uo.F_POOLED_MEDIUM_UPDATE_OWN_CLIENT)?this.determineClientBasedVisibility(x):this.securityManagerService.hasPermission(s.uo.F_POOLED_MEDIUM_UPDATE_OWN_USER)?(0,e.of)(this.runtimeContextService.getLoginUser().loginname.trim()===x.creationFrom.trim()):(0,e.of)(!1)}calcReadPermission(x){return this.securityManagerService.hasPermission(s.uo.F_POOLED_MEDIUM_READ_ALL)||x.insideSmallMediaMgmt?(0,e.of)(!0):this.securityManagerService.hasPermission(s.uo.F_POOLED_MEDIUM_READ_OWN_CLIENT)?this.determineClientBasedVisibility(x):this.securityManagerService.hasPermission(s.uo.F_POOLED_MEDIUM_READ_OWN_USER)?(0,e.of)(this.runtimeContextService.getLoginUser().loginname.trim()===x.creationFrom.trim()):(0,e.of)(!1)}calcDeletePermission(x){return this.securityManagerService.hasPermission(s.uo.F_POOLED_MEDIUM_DELETE_ALL)?(0,e.of)(!0):this.securityManagerService.hasPermission(s.uo.F_POOLED_MEDIUM_DELETE_OWN_CLIENT)?this.determineClientBasedVisibility(x):this.securityManagerService.hasPermission(s.uo.F_POOLED_MEDIUM_DELETE_OWN_USER)?(0,e.of)(this.runtimeContextService.getLoginUser().loginname.trim()===x.creationFrom.trim()):(0,e.of)(!1)}determineClientBasedVisibility(x){return x.client?this.runtimeContext.isOwnedEntity(x.client.id):(console.warn("PooledMedium "+x.id+" has no client???"),(0,e.of)(!1))}static#e=this.\u0275fac=function(u){return new(u||c)(t.LFG(s.Xh),t.LFG(s.Ze),t.LFG(s.Pc),t.LFG(l.nq))};static#t=this.\u0275prov=t.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})()},21317:(gt,X,a)=>{"use strict";a.d(X,{Ke:()=>G,bU:()=>O,fs:()=>H,j5:()=>P});var e=a(19212),n=a(21473),s=a(83416),l=a(45315),i=a(32961),t=a(71041),p=a(62411),c=a(62361),o=a(67276),x=a(60075),u=a(82063),m=a(16763),b=a(56199),I=a(14221);const H=new e.OlP("imxplatform.filterforms.pooled-medium"),O=new e.OlP("imxplatform.filterformextensions.pooled-medium"),P=new p.E([(0,i.sI)("Media"),new c.A("ident",""),new c.A("modifiedFrom",""),new c.A("modifiedTo",""),new c.A("modifiedUser",""),new o.P("mediaProvider","filter.Media.mediaProvider",{optionProvider:m.U,placeholder:"imxplatform.common-entity.filter.mediaFilter.media-provider-placeholder",extractor:(0,t.V6)("mediaProvider"),initialValue:-1}),new o.P("mediaType","filter.Media.mediaType",{optionProvider:b.T,placeholder:"imxplatform.common-entity.filter.mediaFilter.media-type-placeholder",extractor:(0,t.V6)("mediaType"),initialValue:-1}),new o.P("mediaLicense","filter.Media.mediaLicense",{optionProvider:u.V,placeholder:"imxplatform.common-entity.filter.mediaFilter.media-license-placeholder",extractor:(0,t.V6)("mediaLicense"),initialValue:-1}),new o.P("category","filter.Media.category",{optionProvider:I.c,placeholder:"imxplatform.common-entity.filter.mediaFilter.media-category-placeholder",extractor:(0,t.V6)("category"),initialValue:-1}),new c.A("ownerEntityType","",{initialValue:-1}),new c.A("ownerEntityId",""),new c.A("ownerEntitySelection","",{initialValue:"showAnySelection"}),new c.A("fulltext",""),new c.A("fulltextSearchFields",""),new c.A("fulltextSearchOption","",{initialValue:s.wK.ANDSEARCH}),new c.A("restrictTitle","",{initialValue:!0,extractor:(0,t.Uk)("restrictTitle")}),new c.A("restrictDescription","",{extractor:(0,t.Uk)("restrictDescription")}),new c.A("restrictCopyright","",{extractor:(0,t.Uk)("restrictCopyright")})]);let G=(()=>{class B extends l.z{constructor(J,q,j,Y,K){super(J,q,j,Y,K)}getEntityType(){return"PooledMediumFilter"}static#e=this.\u0275fac=function(q){return new(q||B)(e.LFG(H),e.LFG(O,8),e.LFG(x.EG),e.LFG(n.Ze),e.LFG(n.H1))};static#t=this.\u0275prov=e.Yz7({token:B,factory:B.\u0275fac})}return B})()},21417:(gt,X,a)=>{"use strict";a.d(X,{hw:()=>ge,bS:()=>$,_c:()=>ue,vB:()=>Ke});var e=a(19212),n=a(49193),s=a(97734),l=a(96743),i=a(49185),t=a(21473),p=a(62192),c=a(71041),o=a(62411),x=a(98120),u=a(62361),m=a(66175),b=a(15452),I=a(23765),H=a(87104),O=a(67276),P=a(57462),G=a(60075),B=a(8818),ae=a(96124),J=a(15604),q=a(48499);let j=(()=>{class at extends q.I1{constructor(R){super(),this.collectionsService=R}getOptions(R,Te){return this.collectionsService.getAllMediaContent().pipe((0,ae.U)(me=>me.map(Se=>({label:Se.i18nName,value:Se.id}))))}static#e=this.\u0275fac=function(Te){return new(Te||at)(e.LFG(J.f))};static#t=this.\u0275prov=e.Yz7({token:at,factory:at.\u0275fac,providedIn:"root"})}return at})();var Y=a(82063),K=a(56199),ne=a(14221),ee=a(99234);const $=new e.OlP("imxplatform.forms.pooled-medium"),ue=new e.OlP("imxplatform.formextensions.pooled-medium"),ge=new o.E([new m.A("title","entity.PooledMedium.title",{extendedI18nValidators:P.KB}),new b.S("description","entity.PooledMedium.description"),new m.A("altText","entity.PooledMedium.altText"),new m.A("copyright","entity.PooledMedium.copyright"),new I.II("text","sourceUrl","entity.PooledMedium.sourceUrl",{extendedValidators:P.Y2}),new I.II("text","author","entity.PooledMedium.author"),new I.II("text","authorUrl","entity.PooledMedium.authorUrl",{extendedValidators:P.Y2}),new O.P("mediaLicense","entity.PooledMedium.mediaLicense",{optionProvider:Y.V,extractor:(0,c.YL)("mediaLicense.id"),insertor:(0,x.wq)("mediaLicense.id",!0),placeholder:"imxplatform.common.select-placeholder-no-selection",initialValue:-1}),new m.A("searchKeywords","entity.PooledMedium.searchKeywords"),new H.y("categories","entity.PooledMedium.category",{optionProvider:ne.c,extractor:(0,c.XS)("categories","id"),insertor:(0,x.wr)("categories","id")}),new O.P("mediaContent","entity.PooledMedium.mediaContent",{optionProvider:j,placeholder:"imxplatform.common.select-placeholder-no-selection",extractor:(0,c.YL)("mediaContent.id"),insertor:(0,x.wq)("mediaContent.id",!0),initialValue:-1}),new u.A("focalPointX",""),new u.A("focalPointY",""),new u.A("assignedEntityType",""),new u.A("assignedEntityId",""),new I.II("text","youtubeID","entity.PooledMedium.youtube-id",{insertor:(0,x.G3)()}),new O.P("mediaType","entity.PooledMedium.mediaType",{optionProvider:K.T,extractor:(0,c.YL)("mediaType.id"),insertor:(0,x.wq)("mediaType.id"),initialValue:1}),new I.II("text","url","entity.PooledMedium.url",{insertor:(0,x.G3)()}),new O.P("client","entity.PooledMedium.client",{optionProvider:B.z,extractor:(0,c.YL)("client.id"),insertor:(0,x.wq)("client.id",!0),placeholder:"imxplatform.common.select-placeholder-demand",initialValue:-1,required:!0})]);let Ke=(()=>{class at extends p.p{constructor(R,Te,me,Se,Ue,We,et,Et){super(R,Te,me,Se,Ue,We,Et),this.securityManagerService=Se,this.runtimeContextService=Ue,this.formatterService=We,this.entitiesMgrService=et,this.pooledMediumEntityPermissionService=Et,this.isOwner$=this.baseObject$.pipe((0,s.h)(lt=>void 0!==lt),(0,l.zg)(lt=>{if(this.isNewEntity())return(0,n.of)(!0);if(!lt.client)return console.warn("PooledMedium "+lt.id+" has no client???"),(0,n.of)(!1);{const Vt=lt.client;if(void 0!==Vt.id)return this.runtimeContext.isOwnedEntity(Vt.id)}}),(0,i.d)(1))}getEntityType(){return"PooledDataObjectMedium"}isOwnedEntity(){return this.isOwner$}isNewEntity(){return null==this.baseObject.id}hasDeletePermission(){return this.pooledMediumEntityPermissionService.calcDeletePermission(this.baseObject)}hasReadEntityPermission(R){return this.pooledMediumEntityPermissionService.calcReadPermission(R)}hasMinimalDeletePermission(){return this.securityManagerService.hasAnyPermission([t.uo.F_POOLED_MEDIUM_DELETE_ALL,t.uo.F_POOLED_MEDIUM_DELETE_OWN_CLIENT,t.uo.F_POOLED_MEDIUM_DELETE_OWN_USER])}hasAssignPermission(R){return this.securityManagerService.hasPermission(t.uo.F_POOLED_MEDIUM_ASSIGN_ALL)?(0,n.of)(!0):this.securityManagerService.hasPermission(t.uo.F_POOLED_MEDIUM_ASSIGN_OWN_CLIENT)?this.pooledMediumEntityPermissionService.determineClientBasedVisibility(R):this.securityManagerService.hasPermission(t.uo.F_POOLED_MEDIUM_ASSIGN_OWN_USER)?(0,n.of)(this.runtimeContextService.getLoginUser().loginname.trim()===R.creationFrom.trim()):(0,n.of)(!1)}hasPooledMediumCreatePermission(){return this.securityManagerService.hasPermission(t.uo.F_POOLED_MEDIUM_CREATE)}determineCopyrightConfirmationText(R,Te){const me=R.getStringFromSnapshot(t.x3.PLATFORM_MEDIA_COPYRIGHT_CONFIRMATION_LINK_0),Se=R.getStringFromSnapshot(t.x3.PLATFORM_MEDIA_COPYRIGHT_CONFIRMATION_LINK_1);return me&&Se?Te.get("imxplatform.media.edit.copyright-confirm-ext-1",{termsOfUse:me,dataProtection:Se}):Te.get(me?"imxplatform.media.edit.copyright-confirm-ext-0":"imxplatform.media.edit.copyright-confirm",{termsOfUse:me})}determineAllowedFileTypes(R){const Te=R.getStringFromSnapshot(t.x3.PLATFORM_MEDIA_SUFFIXES);return Te?Te.split(",").map(me=>"."+me).join(","):""}static#e=this.\u0275fac=function(Te){return new(Te||at)(e.LFG($),e.LFG(ue,8),e.LFG(G.EG),e.LFG(t.Xh),e.LFG(t.Ze),e.LFG(t.H1),e.LFG(t.qB),e.LFG(ee.f))};static#t=this.\u0275prov=e.Yz7({token:at,factory:at.\u0275fac})}return at})()},3775:(gt,X,a)=>{"use strict";a.d(X,{$:()=>t});var e=a(21473),n=a(51418),s=a(96124),l=a(64022),i=a(19212);let t=(()=>{class p{constructor(o){this.entitiesMgrService=o}getAllContextPls(o,x){return this.retrievePls(o,x)}getAllowedContextPls(o,x){const u=this.filterAllowedContextProductlines(o);return this.retrievePls(u,x)}hasDeniedContextPls(o,x){return this.filterAllowedContextProductlines(o).length<o.length}retrievePls(o,x){return o=o.filter(u=>1e8!==u&&0!==u),this.entitiesMgrService.getEntityWithIdsOfType("Productline",o).pipe((0,n.q)(1),(0,s.U)(u=>u.filter(m=>m.asPortalContext&&(x===l.P_&&m.addressbaseDetails||x===l.GU&&m.offerDetails||x===l.N_&&m.articleDetails))),(0,s.U)(u=>u.map(m=>({label:m.i18nName,value:m.id}))))}filterAllowedContextProductlines(o){return o}static#e=this.\u0275fac=function(x){return new(x||p)(i.LFG(e.qB))};static#t=this.\u0275prov=i.Yz7({token:p,factory:p.\u0275fac})}return p})()},4535:(gt,X,a)=>{"use strict";a.d(X,{G:()=>I});var e=a(49193),n=a(21473),s=a(45315),l=a(71041),i=a(62411),t=a(98120),p=a(72764),c=a(81169),o=a(67276),x=a(60075),u=a(20539),m=a(19212);const b=new i.E([new o.P("deliveryChannelId","entity.Appearance.deliveryChannel",{optionProvider:u.K,extractor:(0,l.V6)("deliveryChannel.id"),placeholder:"imxplatform.common.select-placeholder-demand",insertor:(0,t.wq)("deliveryChannelId",!0),initialValue:-1,required:!0}),new c.Nn("fromDate","entity.Appearance.fromDate",{required:!0}),new c.Nn("toDate","entity.Appearance.toDate",{required:!0}),new p.N("languageIds","entity.BasicAppearance.languages",{optionProvider:void 0,extractor:(0,l.XS)("languageIds","id"),insertor:(0,t.wr)("languageIds","id"),isLanguageSelect:!0,rowLayout:!0}),new o.P("prioLevelId","entity.Appearance.prioLevel",{placeholder:"imxplatform.common.select-placeholder-demand",optionProvider:void 0,initialValue:-1,extractor:(0,l.V6)("prioLevel.id"),insertor:(0,t.wq)("prioLevelId",!0),required:!1}),new o.P("contextProductlineId","entity.Appearance.productline",{optionProvider:void 0,placeholder:"imxplatform.common.select-placeholder-no-selection",extractor:(0,l.V6)("productline.id"),insertor:(0,t.wq)("contextProductlineId",!0),initialValue:-1})]);let I=(()=>{class H extends s.z{constructor(P,G,B,ae){super(b,void 0,P,ae,B),this.imxSecurityManagerService=G,this.formatterService=B}getEntityType(){return"ProposeAppearanceData"}hasEditPermission(P){return(0,e.of)(!0)}hasReadPermission(P){return(0,e.of)(!0)}hasSavePermission(){return(0,e.of)(!0)}static#e=this.\u0275fac=function(G){return new(G||H)(m.LFG(x.EG),m.LFG(n.Xh),m.LFG(n.H1),m.LFG(n.Ze))};static#t=this.\u0275prov=m.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"})}return H})()},89374:(gt,X,a)=>{"use strict";a.d(X,{K:()=>s});var e=a(41621),n=a(48499);class s extends n.Cf{displayNodesFn(i){return i.i18nName}sortNodesFn(i,t,p){return(0,e.Qi)(i.i18nName,t.i18nName,p)}sortRootNodesFn(i,t,p){return(0,e.Qi)(i.i18nName,t.i18nName,p)}}},20171:(gt,X,a)=>{"use strict";a.d(X,{B:()=>p});var e=a(96124),n=a(41621),s=a(15604),l=a(48499),i=a(19212),t=a(71365);let p=(()=>{class c extends l.I1{constructor(x,u){super(),this.collectionsService=x,this.translateService=u}getOptions(x,u){return this.collectionsService.getAllAddressPoiTypes().pipe((0,e.U)(m=>m.map(b=>({label:b.i18nName,value:b.id})).sort((b,I)=>(0,n.Qi)(b.label,I.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(u){return new(u||c)(i.LFG(s.f),i.LFG(t.sK))};static#t=this.\u0275prov=i.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})()},18590:(gt,X,a)=>{"use strict";a.d(X,{q:()=>p});var e=a(96124),n=a(41621),s=a(21473),l=a(48499),i=a(19212),t=a(71365);let p=(()=>{class c extends l.I1{constructor(x,u){super(),this.runtimeContextService=x,this.translateService=u}getOptions(x,u){return this.runtimeContextService.getLanguagesAsObservable().pipe((0,e.U)(m=>m.map(b=>({label:b.i18nName,value:b.name})).sort((b,I)=>(0,n.Qi)(b.label,I.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(u){return new(u||c)(i.LFG(s.Ze),i.LFG(t.sK))};static#t=this.\u0275prov=i.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})()},8818:(gt,X,a)=>{"use strict";a.d(X,{z:()=>i});var e=a(96124),n=a(21473),s=a(48499),l=a(19212);let i=(()=>{class t extends s.HH{constructor(c){super(),this.runtimeContextService=c}getOptions(c,o){return this.runtimeContextService.getCurrentAndSubClients().pipe((0,e.U)(x=>{const u=[];for(const m of Array.from(x.values()))u.push({label:m.name,value:m.id});return u.sort((m,b)=>m.label.localeCompare(b.label))}))}sortOptionsFn(c,o,x){return(0,s.f$)(c,o,x)}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(n.Ze))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},40175:(gt,X,a)=>{"use strict";a.d(X,{Q:()=>l});var e=a(49193),n=a(48499),s=a(19212);let l=(()=>{class i extends n.I1{constructor(){super(),this.filterComparatorLabels=new Map([["imxplatform.component.compare.comparators.greaterThanOrEqual",">="],["imxplatform.component.compare.comparators.lessThanOrEqual","<="],["imxplatform.component.compare.comparators.equal","="],["imxplatform.component.compare.comparators.notEmpty","notEmpty"],["imxplatform.component.compare.comparators.empty","empty"],["imxplatform.component.compare.comparators.between","between"]])}getOptions(p,c){return(0,e.of)(Array.from(this.filterComparatorLabels).map(([o,x])=>({label:o,value:x})))}static#e=this.\u0275fac=function(c){return new(c||i)};static#t=this.\u0275prov=s.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})()},55417:(gt,X,a)=>{"use strict";a.d(X,{Q:()=>i});var e=a(96124),n=a(15604),s=a(48499),l=a(19212);let i=(()=>{class t extends s.I1{constructor(c){super(),this.collectionsService=c}getOptions(c,o){return this.collectionsService.getAllContactPurposes().pipe((0,e.U)(x=>x.map(m=>({label:m.i18nName,value:m.id})).reverse()))}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(n.f))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},30461:(gt,X,a)=>{"use strict";a.d(X,{h:()=>i});var e=a(49193),n=a(64022),s=a(48499),l=a(19212);let i=(()=>{class t extends s.I1{constructor(c){super(),this.coreEntityService=c}getOptions(c,o){const x=this.coreEntityService.getVisibleCoreEntityDefs().map(u=>({label:u.pluralLabel,value:u.type}));return(0,e.of)(x)}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(n.dE))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},60999:(gt,X,a)=>{"use strict";a.d(X,{l:()=>i});var e=a(96124),n=a(21473),s=a(48499),l=a(19212);let i=(()=>{class t extends s.I1{constructor(c){super(),this.configurationProvider=c}getOptions(c,o){return this.configurationProvider.getString(n.x3.PLATFORM_COUNTRIES,"").pipe((0,e.U)(x=>x.split(",")),(0,e.U)(x=>x&&x.length>0&&x[0].length>0?x.map(u=>({label:u,value:u})).sort((u,m)=>u.toString().localeCompare(m.toString())):(0,s.Qy)()))}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(n.Pc))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},60292:(gt,X,a)=>{"use strict";a.d(X,{e:()=>i});var e=a(96124),n=a(15604),s=a(48499),l=a(19212);let i=(()=>{class t extends s.I1{constructor(c){super(),this.collectionsService=c}getOptions(c,o){return this.collectionsService.getAllDeliveryChannels().pipe((0,e.U)(x=>x.map(u=>({label:u.name,value:u.id})).sort((u,m)=>u.label.localeCompare(m.label))))}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(n.f))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},70612:(gt,X,a)=>{"use strict";a.d(X,{K:()=>i});var e=a(96124),n=a(15604),s=a(48499),l=a(19212);let i=(()=>{class t extends s.I1{constructor(c){super(),this.collectionsService=c}getOptions(c,o){return this.collectionsService.getAllEntityStates().pipe((0,e.U)(x=>x.map(u=>({label:"entity.EntityState."+u.name.toLowerCase(),value:u.key}))))}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(n.f))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},90929:(gt,X,a)=>{"use strict";a.d(X,{v:()=>p});var e=a(96124),n=a(41621),s=a(21473),l=a(48499),i=a(19212),t=a(71365);let p=(()=>{class c extends l.Ih{constructor(x,u){super(),this.entitiesMgrService=x,this.translateService=u}setParams(x){this.entityType=x.entityType,x.sortBy&&(this.sortBy=x.sortBy)}getOptions(x,u){return this.entitiesMgrService.getAllEntitiesOfType(this.entityType).pipe((0,e.U)(m=>m.items.map(I=>({label:I.i18nName,value:I.id})).sort("value"===this.sortBy?(I,H)=>I.value-H.value:(I,H)=>(0,n.Qi)(I.label,H.label,this.translateService.currentLang))))}getNewInstance(){return new c(this.entitiesMgrService,this.translateService)}static#e=this.\u0275fac=function(u){return new(u||c)(i.LFG(s.qB),i.LFG(t.sK))};static#t=this.\u0275prov=i.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})()},40988:(gt,X,a)=>{"use strict";a.d(X,{l:()=>p});var e=a(21473),n=a(41621),s=a(96124),l=a(48499),i=a(19212),t=a(71365);let p=(()=>{class c extends l.I1{constructor(x,u){super(),this.entitiesMgrService=x,this.translateService=u}getOptions(x,u){return this.entitiesMgrService.getAllEntitiesOfType("GeoLevel").pipe((0,s.U)(m=>m.items.map(b=>({label:b.i18nName,value:b.id})).sort((b,I)=>(0,n.Qi)(b.label,I.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(u){return new(u||c)(i.LFG(e.qB),i.LFG(t.sK))};static#t=this.\u0275prov=i.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})()},97683:(gt,X,a)=>{"use strict";a.d(X,{s:()=>i});var e=a(96124),n=a(21473),s=a(48499),l=a(19212);let i=(()=>{class t extends s.I1{constructor(c){super(),this.configurationProvider=c,this.geoSystemLabels=new Map([["googleMaps","entity.GeoInfo.googleMaps"],["alpstein","entity.GeoInfo.alpstein"],["toursprung","entity.GeoInfo.toursprung"],["alta4","entity.GeoInfo.alta4"]])}getOptions(c,o){return this.configurationProvider.getString(n.x3.PLATFORM_GEO_INFO_SYSTEMS).pipe((0,e.U)(x=>x&&x.length>0?x.split(",").map(u=>({label:this.geoSystemLabels.get(u)||"",value:u})):[]))}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(n.Pc))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},42266:(gt,X,a)=>{"use strict";a.d(X,{C:()=>i});var e=a(96124),n=a(15604),s=a(48499),l=a(19212);let i=(()=>{class t extends s.I1{constructor(c){super(),this.collectionsService=c}getOptions(c,o){return this.collectionsService.getAllImageTypes().pipe((0,e.U)(x=>x.filter(u=>!u.height&&!u.width).filter(u=>!(!c||!("_entityType"in c))&&u.usageForEntityType?.split(",")?.some(b=>b===c._entityType)).map(u=>({label:u.i18nName?u.i18nName:"",value:u.id}))))}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(n.f))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},65444:(gt,X,a)=>{"use strict";a.d(X,{b:()=>p});var e=a(96124),n=a(41621),s=a(21473),l=a(48499),i=a(19212),t=a(71365);let p=(()=>{class c extends l.I1{constructor(x,u){super(),this.entitiesMgrService=x,this.translateService=u}getOptions(x,u){return this.entitiesMgrService.getAllEntitiesOfType("Language").pipe((0,e.U)(m=>m.items.map(b=>({label:b.i18nName,value:b.name})).sort((b,I)=>(0,n.Qi)(b.label,I.label,this.translateService.currentLang))))}getOptionsAsIdValue(x,u){return this.entitiesMgrService.getAllEntitiesOfType("Language").pipe((0,e.U)(m=>m.items.map(b=>({label:b.i18nName,value:b.id})).sort((b,I)=>(0,n.Qi)(b.label,I.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(u){return new(u||c)(i.LFG(s.qB),i.LFG(t.sK))};static#t=this.\u0275prov=i.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})()},61936:(gt,X,a)=>{"use strict";a.d(X,{N:()=>i});var e=a(96124),n=a(15604),s=a(48499),l=a(19212);let i=(()=>{class t extends s.I1{constructor(c){super(),this.collectionsService=c}getOptions(c,o){return this.collectionsService.getAllLocations().pipe((0,e.U)(x=>x.map(u=>({label:u.name,value:u.id}))))}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(n.f))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},82063:(gt,X,a)=>{"use strict";a.d(X,{V:()=>i});var e=a(96124),n=a(15604),s=a(48499),l=a(19212);let i=(()=>{class t extends s.I1{constructor(c){super(),this.collectionsService=c}getOptions(c,o){return this.collectionsService.getAllMediaLicenses().pipe((0,e.U)(x=>x.map(u=>({label:u.i18nName?u.i18nName:"",value:u.id}))))}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(n.f))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},16763:(gt,X,a)=>{"use strict";a.d(X,{U:()=>i});var e=a(96124),n=a(15604),s=a(48499),l=a(19212);let i=(()=>{class t extends s.I1{constructor(c){super(),this.collectionsService=c}getOptions(c,o){return this.collectionsService.getAllMediaProviders().pipe((0,e.U)(x=>x.map(u=>({label:u.name?u.name:"",value:u.id}))))}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(n.f))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},56199:(gt,X,a)=>{"use strict";a.d(X,{T:()=>i});var e=a(96124),n=a(15604),s=a(48499),l=a(19212);let i=(()=>{class t extends s.I1{constructor(c){super(),this.collectionsService=c}getOptions(c,o){return this.collectionsService.getAllMediaTypes().pipe((0,e.U)(x=>x.map(u=>({label:u.i18nName?u.i18nName:u.name,value:u.id}))))}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(n.f))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},56758:(gt,X,a)=>{"use strict";a.d(X,{U:()=>p});var e=a(21473),n=a(96124),s=a(48499),l=a(41621),i=a(19212),t=a(71365);let p=(()=>{class c extends s.I1{constructor(x,u){super(),this.entitiesMgrService=x,this.translateService=u}getOptions(x,u){return this.entitiesMgrService.getAllEntitiesOfType("MemoAttributeGroup").pipe((0,n.U)(m=>m.items.map(b=>({label:b.i18nName,value:b.id})).sort((b,I)=>(0,l.Qi)(b.label,I.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(u){return new(u||c)(i.LFG(e.qB),i.LFG(t.sK))};static#t=this.\u0275prov=i.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})()},58320:(gt,X,a)=>{"use strict";a.d(X,{b:()=>t});var e=a(21473),n=a(96124),s=a(48499),l=a(19212),i=a(71365);let t=(()=>{class p extends s.I1{constructor(o,x){super(),this.entitiesMgrService=o,this.translateService=x}getOptions(o,x){return this.entitiesMgrService.getAllEntitiesOfType("MemoAttribute").pipe((0,n.U)(u=>{const m=u.items.map(b=>({label:b.attributeGroup?b.attributeGroup.i18nName[this.translateService.currentLang]+" - "+b.i18nName[this.translateService.currentLang]:b.i18nName[this.translateService.currentLang],value:b.id}));return m.sort((b,I)=>{const H=b.label.toString().toLowerCase(),O=I.label.toString().toLowerCase();return H<O?-1:H>O?1:0}),m}))}getOptionsByGroupId(o,x,u){return this.entitiesMgrService.getAllEntitiesOfType("MemoAttribute").pipe((0,n.U)(m=>{const b=[];return m.items.forEach(I=>{I.attributeGroup&&I.attributeGroup.id===u&&b.push({label:I.i18nName[this.translateService.currentLang],value:I.id})}),b.sort((I,H)=>{const O=I.label.toString().toLowerCase(),P=H.label.toString().toLowerCase();return O<P?-1:O>P?1:0}),b}))}static#e=this.\u0275fac=function(x){return new(x||p)(l.LFG(e.qB),l.LFG(i.sK))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},63172:(gt,X,a)=>{"use strict";a.d(X,{N:()=>l});var e=a(49193),n=a(48499),s=a(19212);let l=(()=>{class i extends n.K${getOptions(p){return p&&p.getLanguageFormControl()&&p.getLanguageFormControl().value?(0,e.of)(p.getLanguageFormControl().value.map(c=>({label:c.name,value:c.id}))):(0,e.of)([])}static#e=this.\u0275fac=(()=>{let p;return function(o){return(p||(p=s.n5z(i)))(o||i)}})();static#t=this.\u0275prov=s.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})()},20539:(gt,X,a)=>{"use strict";a.d(X,{K:()=>i});var e=a(96124),n=a(15604),s=a(48499),l=a(19212);let i=(()=>{class t extends s.I1{constructor(c){super(),this.collectionsService=c}getOptions(c,o){return this.collectionsService.getOwnDeliveryChannels().pipe((0,e.U)(x=>x.map(u=>({label:u.name,value:u.id})).sort((u,m)=>u.label.localeCompare(m.label))))}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(n.f))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},14221:(gt,X,a)=>{"use strict";a.d(X,{c:()=>i});var e=a(96124),n=a(15604),s=a(48499),l=a(19212);let i=(()=>{class t extends s.I1{constructor(c){super(),this.collectionsService=c}getOptions(c,o){return this.collectionsService.getAllPooledMediumCategories().pipe((0,e.U)(x=>x.map(u=>({label:u.i18nName?u.i18nName:"",value:u.id}))))}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(n.f))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},65823:(gt,X,a)=>{"use strict";a.d(X,{m:()=>i});var e=a(96124),n=a(15604),s=a(48499),l=a(19212);let i=(()=>{class t extends s.I1{constructor(c){super(),this.collectionsService=c}getOptions(c,o){return this.collectionsService.getAllPrioLevels().pipe((0,e.U)(x=>x.filter(m=>{if(c&&"_entityType"in c){let b=!1;return m.usageForEntityType&&(b=m.usageForEntityType.split(",").includes(c._entityType)),b||(b="Addressbase"===c._entityType&&m.usedForAddressbases||"Offer"===c._entityType&&m.usedForOffers),b}return!0}).map(m=>({label:m.name,value:m.id})).sort((m,b)=>m.label.localeCompare(b.label)).reverse()))}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(n.f))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},85541:(gt,X,a)=>{"use strict";a.d(X,{N:()=>p});var e=a(79309),n=a(96124),s=a(15604),l=a(48499),i=a(19212),t=a(71365);let p=(()=>{class c extends l.I1{constructor(x,u){super(),this.collectionsService=x,this.translateService=u}getOptions(x,u){return this.collectionsService.getAllProductlines().pipe((0,n.U)(m=>m.filter(b=>b.id!=e.Qm&&b.id!=e.Ui).map(b=>({label:b.i18nName[this.translateService.currentLang]+" ("+b.id+")",value:b.id})).sort((b,I)=>b.label.localeCompare(I.label))))}static#e=this.\u0275fac=function(u){return new(u||c)(i.LFG(s.f),i.LFG(t.sK))};static#t=this.\u0275prov=i.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})()},41921:(gt,X,a)=>{"use strict";a.d(X,{j:()=>i});var e=a(49193),n=a(48499),s=a(3775),l=a(19212);let i=(()=>{class t extends n.K${constructor(c){super(),this.portalContextPlsService=c}getOptions(c){if(c.formGroup&&c.formGroup.get("productlineIds")){const o=c.formGroup.get("productlineIds").value;return this.portalContextPlsService.getAllContextPls(o,c.getEntityType())}return(0,e.of)([])}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(s.$))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},79360:(gt,X,a)=>{"use strict";a.d(X,{w:()=>p});var e=a(96124),n=a(41621),s=a(21473),l=a(48499),i=a(19212),t=a(71365);let p=(()=>{class c extends l.I1{constructor(x,u){super(),this.entitiesMgrService=x,this.translateService=u}getOptions(x,u){return this.entitiesMgrService.getAllEntitiesOfType("Region").pipe((0,e.U)(m=>m.items.map(b=>({label:b.i18nName,value:b.id})).sort((b,I)=>(0,n.Qi)(b.label,I.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(u){return new(u||c)(i.LFG(s.qB),i.LFG(t.sK))};static#t=this.\u0275prov=i.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})()},1033:(gt,X,a)=>{"use strict";a.d(X,{h:()=>i});var e=a(96124),n=a(15604),s=a(48499),l=a(19212);let i=(()=>{class t extends s.I1{constructor(c){super(),this.collectionsService=c}getOptions(c,o){return this.collectionsService.getAllSocialMediaProviders().pipe((0,e.U)(x=>x.map(m=>({label:m.i18nName?m.i18nName:"",value:m.id})).reverse()))}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(n.f))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},7736:(gt,X,a)=>{"use strict";a.d(X,{W:()=>p});var e=a(96124),n=a(21473),s=a(22819),l=a(48499),i=a(19212),t=a(71365);let p=(()=>{class c extends l.I1{constructor(x,u,m){super(),this.configurationProvider=x,this.imxPlatformDataAccessService=u,this.translateService=m}getOptions(x,u){return this.imxPlatformDataAccessService.getStandardImportEntityTypes(x).pipe((0,e.U)(m=>m&&m.length>0?m.map(I=>({label:this.determineEntityType(I),value:I})):[]))}determineEntityType(x){const u=x.toLowerCase();return"contributor"===u||"location"===u?this.translateService.instant("entity.Event."+u):"event"===u?this.translateService.instant("entity."+u.charAt(0).toUpperCase()+u.slice(1)+".entityName"):u.charAt(0).toUpperCase()+u.slice(1)}static#e=this.\u0275fac=function(u){return new(u||c)(i.LFG(n.Pc),i.LFG(s.nq),i.LFG(t.sK))};static#t=this.\u0275prov=i.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})()},18806:(gt,X,a)=>{"use strict";a.d(X,{b:()=>i});var e=a(96124),n=a(22819),s=a(48499),l=a(19212);let i=(()=>{class t extends s.I1{constructor(c){super(),this.imxPlatformDataAccessService=c}getOptions(c,o){return this.imxPlatformDataAccessService.getImporterNamesWithMapping().pipe((0,e.U)(x=>x.sort((u,m)=>u.localeCompare(m)).map(u=>({label:u,value:u}))))}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(n.nq))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},28181:(gt,X,a)=>{"use strict";a.d(X,{O:()=>i});var e=a(96124),n=a(15604),s=a(48499),l=a(19212);let i=(()=>{class t extends s.I1{constructor(c){super(),this.entityCollectionsService=c}getOptions(c,o){return this.entityCollectionsService.getAllUserRoles().pipe((0,e.U)(x=>x.map(u=>({label:u.name,value:u.id})).sort((u,m)=>u.label.localeCompare(m.label))))}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(n.f))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},62868:(gt,X,a)=>{"use strict";a.d(X,{t:()=>I});var e=a(8818),n=a(21473),s=a(45315),l=a(32961),i=a(71041),t=a(62411),p=a(98120),c=a(23765),o=a(67276),x=a(60075),u=a(7736),m=a(19212);const b=new t.E([(0,l.sI)("StandardImportConfig"),new c.II("text","importerName","entity.StandardImportConfig.importerName",{extractor:(0,i.YL)("name"),insertor:(0,p.wq)("name")}),new o.P("client","entity.Client.entityName",{optionProvider:e.z,extractor:(0,i.V6)("client"),placeholder:"imxplatform.common.select-placeholder-any-client",initialValue:-1}),new o.P("entity","entity.StandardImportConfig.entityType",{optionProvider:u.W,extractor:(0,i.YL)("entity"),placeholder:"imxplatform.common.select-placeholder-any",initialValue:-1})]);let I=(()=>{class H extends s.z{constructor(P,G,B,ae){super(b,void 0,P,G,ae),this.runtimeContextService=G,this.imxSecurityManagerService=B,this.formatterService=ae}getEntityType(){return"StandardImportConfig"}static#e=this.\u0275fac=function(G){return new(G||H)(m.LFG(x.EG),m.LFG(n.Ze),m.LFG(n.Xh),m.LFG(n.H1))};static#t=this.\u0275prov=m.Yz7({token:H,factory:H.\u0275fac})}return H})()},67750:(gt,X,a)=>{"use strict";a.d(X,{W3:()=>Y});var e=a(79309),n=a(45315),s=a(8818),l=a(21473),i=a(71041),t=a(62411),p=a(98120),c=a(62361),o=a(12168),x=a(20949),u=a(23765),m=a(67276),b=a(60075),I=a(49193),H=a(48499),O=a(19212),P=a(71365);let G=(()=>{class ne extends H.I1{constructor($){super(),this.translateService=$}getOptions($,ue){return(0,I.of)([{label:this.translateService.instant("entity.EntityState.in_progress"),value:e.KX.key},{label:this.translateService.instant("entity.EntityState.published"),value:e.h_.key}])}static#e=this.\u0275fac=function(ue){return new(ue||ne)(O.LFG(P.sK))};static#t=this.\u0275prov=O.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"})}return ne})();var B=a(96124),ae=a(22819);let J=(()=>{class ne extends H.I1{constructor($,ue){super(),this.configurationProvider=$,this.imxPlatformDataAccessService=ue,this._tourismTechAlliance="Tourism Tech Alliance",this._sonstige="Sonstige",this.standardSourceTypeLabelsArray=[[1,"ET4","destination.one",this._tourismTechAlliance],[2,"TOUBIZ","mein.toubiz",this._tourismTechAlliance],[3,"OUTDOORACTIVE","Outdooractive",this._tourismTechAlliance],[4,"CUSTOM","Eigene Quelle",this._sonstige]]}getOptions($,ue){return this.imxPlatformDataAccessService.getStandardImportSourceTypes().pipe((0,B.U)(ge=>ge&&ge.length>0?ge.map(at=>({label:this.getLabel(at),value:at,group:this.getGroup(at)})).sort((at,Le)=>this.getSortingValue(at)-this.getSortingValue(Le)):[]))}getLabel($){let ue=$;return this.standardSourceTypeLabelsArray.forEach(ge=>{ge[1]===$&&(ue=ge[2])}),ue}getSortingValue($){let ue=0;return this.standardSourceTypeLabelsArray.forEach(ge=>{ge[1]===$.value&&(ue=ge[0])}),ue}getGroup($){let ue=$;return this.standardSourceTypeLabelsArray.forEach(ge=>{ge[1]===$&&(ue=ge[3])}),ue}static#e=this.\u0275fac=function(ue){return new(ue||ne)(O.LFG(l.Pc),O.LFG(ae.nq))};static#t=this.\u0275prov=O.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"})}return ne})(),q=(()=>{class ne extends H.I1{constructor($,ue){super(),this.imxPlatformDataAccessService=$,this.translateService=ue}getOptions($,ue){return(0,I.of)([{label:this.translateService.instant("entity.ImportStrategy.APPEND_ONLY_NEW"),value:"APPEND_ONLY_NEW"},{label:this.translateService.instant("entity.ImportStrategy.MERGE_ENTITIES"),value:"MERGE_ENTITIES"},{label:this.translateService.instant("entity.ImportStrategy.MERGE_DEACTIVATE_ENTITIES"),value:"MERGE_DEACTIVATE_ENTITIES"}])}static#e=this.\u0275fac=function(ue){return new(ue||ne)(O.LFG(ae.nq),O.LFG(P.sK))};static#t=this.\u0275prov=O.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"})}return ne})();const j=new t.E([new u.II("text","importerName","entity.StandardImportConfig.importerName",{extractor:(0,i.YL)("name"),insertor:(0,p.wq)("name"),required:!0}),new m.P("client","entity.StandardImportConfig.client",{optionProvider:s.z,extractor:(0,i.YL)("client.id"),insertor:(0,p.wq)("client.id",!0),placeholder:"imxplatform.common.select-placeholder-demand",initialValue:-1,required:!0,hint:"imxplatform.standard-import-config.dialog.client-hint"}),new m.P("sourceType","entity.StandardImportConfig.sourceType",{optionProvider:J,extractor:(0,i.YL)("importSourceConfig.sourceType"),insertor:(0,p.wq)("importSourceConfig.sourceType",!0),placeholder:"imxplatform.common.select-placeholder-demand",initialValue:-1,required:!0}),new x.N("configs",[new u.II("text","source","entity.StandardImportConfig.importSourceConfig.custom.source"),new u.II("text","username","entity.StandardImportConfig.importSourceConfig.custom.username"),new u.II("text","passwordDecrypted","entity.StandardImportConfig.importSourceConfig.custom.password"),new u.II("text","clientLicenseKey","entity.StandardImportConfig.importSourceConfig.et4.clientLicenseKey"),new u.II("text","organisationId","entity.StandardImportConfig.importSourceConfig.outdooractive.organisationId"),new u.II("text","clientId","entity.StandardImportConfig.importSourceConfig.toubiz.clientId")],{extractor:ne=>({})}),new c.A("configJsonAsString",void 0,{extractor:(0,i.YL)("importSourceConfig.configJsonAsString"),insertor:(0,p.wq)("importSourceConfig.configJsonAsString")}),new m.P("entityType","entity.StandardImportConfig.entityType",{extractor:(0,i.YL)("entityType"),insertor:(0,p.wq)("entityType"),optionProvider:void 0,initialValue:-1,placeholder:"imxplatform.common.select-placeholder-demand",required:!0}),new m.P("importStrategy","entity.StandardImportConfig.importStrategyType",{optionProvider:q,extractor:(0,i.YL)("importStrategy"),insertor:(0,p.wq)("importStrategy",!0),initialValue:"MERGE_DEACTIVATE_ENTITIES"}),new m.P("state","entity.StandardImportConfig.state",{optionProvider:G,extractor:(0,i.YL)("state"),insertor:(0,p.wq)("state",!0),initialValue:e.h_.key}),new c.A("mergeProperties","entity.StandardImportConfig.mergeProperties",{extractor:(0,i.TH)("mergeProperties"),insertor:(0,p.AA)("mergeProperties")}),new o.X("faultTolerant","entity.StandardImportConfig.faultTolerant",{initialValue:!0}),new o.X("active","entity.StandardImportConfig.active",{initialValue:!0}),new o.X("monday","entity.StandardImportConfig.monday",{initialValue:!0}),new o.X("tuesday","entity.StandardImportConfig.tuesday",{initialValue:!0}),new o.X("wednesday","entity.StandardImportConfig.wednesday",{initialValue:!0}),new o.X("thursday","entity.StandardImportConfig.thursday",{initialValue:!0}),new o.X("friday","entity.StandardImportConfig.friday",{initialValue:!0}),new o.X("saturday","entity.StandardImportConfig.saturday",{initialValue:!0}),new o.X("sunday","entity.StandardImportConfig.sunday",{initialValue:!0})]);let Y=(()=>{class ne extends n.z{constructor($,ue,ge,Ke){super(j,void 0,$,ge,Ke)}getEntityType(){return"StandardImportConfig"}static#e=this.\u0275fac=function(ue){return new(ue||ne)(O.LFG(b.EG),O.LFG(l.Xh),O.LFG(l.Ze),O.LFG(l.H1))};static#t=this.\u0275prov=O.Yz7({token:ne,factory:ne.\u0275fac})}return ne})()},97260:(gt,X,a)=>{"use strict";a.d(X,{t:()=>m});var e=a(21473),n=a(45315),s=a(32961),l=a(71041),i=a(62411),t=a(23765),p=a(67276),c=a(60075),o=a(18806),x=a(19212);const u=new i.E([(0,s.sI)("StandardImportMapping"),new p.P("importerName","filter.StandardImportMapping.importerName",{optionProvider:o.b,extractor:(0,l.YL)("importerName"),placeholder:"imxplatform.common.select-placeholder-any",initialValue:-1}),new t.II("text","sourceValueId","filter.StandardImportMapping.sourceValueId"),new t.II("text","sourceValueName","filter.StandardImportMapping.sourceValueName"),new t.II("text","baseEntityId","filter.StandardImportMapping.baseEntityId"),new p.P("sourceField","filter.StandardImportMapping.sourceField",{extractor:(0,l.YL)("sourceField"),optionProvider:void 0,initialValue:-1,placeholder:"imxplatform.common.select-placeholder-any"}),new p.P("baseEntityType","filter.StandardImportMapping.baseEntityType",{extractor:(0,l.YL)("baseEntityType"),optionProvider:void 0,initialValue:-1,placeholder:"imxplatform.common.select-placeholder-any"})]);let m=(()=>{class b extends n.z{constructor(H,O,P,G){super(u,void 0,H,O,G),this.runtimeContextService=O,this.imxSecurityManagerService=P,this.formatterService=G}getEntityType(){return"StandardImportMapping"}static#e=this.\u0275fac=function(O){return new(O||b)(x.LFG(c.EG),x.LFG(e.Ze),x.LFG(e.Xh),x.LFG(e.H1))};static#t=this.\u0275prov=x.Yz7({token:b,factory:b.\u0275fac})}return b})()},61157:(gt,X,a)=>{"use strict";a.d(X,{w:()=>m});var e=a(45315),n=a(21473),s=a(71041),l=a(62411),i=a(98120),t=a(62361),p=a(23765),c=a(67276),o=a(60075),x=a(19212);const u=new l.E([new c.P("importerName","entity.StandardImportMapping.importerName",{extractor:(0,s.YL)("importerName"),insertor:(0,i.wq)("importerName"),placeholder:"imxplatform.common.select-placeholder-demand",initialValue:-1,required:!0,hint:"imxplatform.standard-import-mapping.dialog.importer-name-hint"}),new c.P("sourceField","entity.StandardImportMapping.sourceField",{extractor:(0,s.YL)("sourceField"),insertor:(0,i.wq)("sourceField"),placeholder:"imxplatform.common.select-placeholder-demand",initialValue:-1,required:!0,hint:"imxplatform.standard-import-mapping.dialog.source-field-hint"}),new t.A("sourceValueOption","entity.StandardImportMapping.sourceValueOption",{hint:"imxplatform.standard-import-mapping.dialog.source-value-option-hint"}),new p.II("text","sourceValueName","entity.StandardImportMapping.sourceValueName",{hint:"imxplatform.standard-import-mapping.dialog.source-value-name-hint"}),new p.II("text","sourceValueId","entity.StandardImportMapping.sourceValueId",{hint:"imxplatform.standard-import-mapping.dialog.source-value-id-hint"}),new c.P("baseEntityType","entity.StandardImportMapping.baseEntityType",{extractor:(0,s.YL)("baseEntityType"),insertor:(0,i.wq)("baseEntityType"),placeholder:"imxplatform.common.select-placeholder-demand",initialValue:-1,required:!0,hint:"imxplatform.standard-import-mapping.dialog.base-entity-type-hint"}),new t.A("baseEntityId","entity.StandardImportMapping.baseEntityId")]);let m=(()=>{class b extends e.z{constructor(H,O,P,G){super(u,void 0,H,P,G)}getEntityType(){return"StandardImportMapping"}static#e=this.\u0275fac=function(O){return new(O||b)(x.LFG(o.EG),x.LFG(n.Xh),x.LFG(n.Ze),x.LFG(n.H1))};static#t=this.\u0275prov=x.Yz7({token:b,factory:b.\u0275fac})}return b})()},20263:(gt,X,a)=>{"use strict";a.d(X,{I:()=>c});var e=a(21473),n=a(62361),s=a(45315),l=a(62411),i=a(60075),t=a(19212);const p=new l.E([new n.A("searchString","")]);let c=(()=>{class o extends s.z{constructor(u,m,b,I){super(p,void 0,u,b,I),this.imxSecurityManagerService=m,this.runtimeContextService=b,this.formatterService=I}getEntityType(){return"UniversalSearchItem"}static#e=this.\u0275fac=function(m){return new(m||o)(t.LFG(i.EG),t.LFG(e.Xh),t.LFG(e.Ze),t.LFG(e.H1))};static#t=this.\u0275prov=t.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})()},31532:(gt,X,a)=>{"use strict";a.d(X,{Be:()=>B,Ep:()=>q,ez:()=>G,iN:()=>j,l0:()=>ae,zD:()=>J});var e=a(19212),n=a(56223),s=a(79309),l=a(21473),i=a(71041),t=a(57462),p=a(98120),c=a(28181),o=a(45315),x=a(62411),u=a(62361),m=a(72764),b=a(23765),I=a(67276),H=a(48499),O=a(60075),P=a(60999);const G=new e.OlP("imxplatform.forms.usermgmt"),B=new e.OlP("imxplatform.formextensions.usermgmt"),ae=new x.E([new I.P("userType","entity.UserType.entityName",{optionProvider:(0,H.OL)(),extractor:(0,i.YL)("userType"),insertor:(0,p.wq)("userType"),initialValue:s.qL.name}),new b.II("text","deliveryChannelIds","entity.User.deliveryChannelIds",{extractor:(0,i.YL)("attributes.deliveryChannelIds"),insertor:(0,p.wq)("attributes.deliveryChannelIds"),extendedValidators:n.kI.pattern("^[\\d]*(,[\\d]*)*\\d$")}),new b.II("text","defaultDeliveryChannelId","entity.User.defaultDeliveryChannelId",{extractor:(0,i.YL)("attributes.defaultDeliveryChannelId"),insertor:(0,p.wq)("attributes.defaultDeliveryChannelId"),extendedValidators:n.kI.pattern("^[\\d]*$")}),new u.A("jwtToken","",{extractor:(0,i.YL)("jwtToken"),insertor:(0,p.wq)("jwtToken")}),new b.II("text","passwordDecrypted","entity.User.password",{insertor:(0,p.G3)(),extendedValidators:[n.kI.maxLength(50),n.kI.minLength(8)]}),...J(),new u.A("client","entity.User.client",{extractor:(0,i.YL)("client.id"),insertor:(0,p.wq)("client.id"),required:!0}),new m.N("roles","entity.User.roles",{rowLayout:!0,optionProvider:c.O,extractor:(0,i.XS)("roles","id"),insertor:(0,p.wr)("roles","id")}),new I.P("userStateId","entity.UserState.entityName",{optionProvider:(0,H.h7)(),extractor:(0,i.YL)("userStateId"),insertor:(0,p.wq)("userStateId"),initialValue:s._L.id}),new b.II("text","organisation","entity.User.organisation",{extendedValidators:n.kI.maxLength(255)}),...q(),new b.II("text","notices","entity.User.notices",{extendedValidators:n.kI.maxLength(255)})]);function J(){return[new b.II("text","loginname","entity.User.loginname",{required:!0,extendedValidators:n.kI.maxLength(100)}),new b.II("text","firstname","entity.User.firstname",{extendedValidators:n.kI.maxLength(255)}),new b.II("text","lastname","entity.User.lastname",{extendedValidators:n.kI.maxLength(255)})]}function q(){return[new b.II("text","email","entity.User.address.email",{extractor:(0,i.YL)("address.email"),insertor:(0,p.wq)("address.email"),required:!0,extendedValidators:t.Le}),new b.II("tel","phone1","entity.User.address.phone1",{extractor:(0,i.YL)("address.phone1"),insertor:(0,p.wq)("address.phone1"),extendedValidators:n.kI.maxLength(255)}),new b.II("tel","phone2","entity.User.address.phone2",{extractor:(0,i.YL)("address.phone1"),insertor:(0,p.wq)("address.phone1"),extendedValidators:n.kI.maxLength(255)}),new b.II("tel","fax","entity.User.address.fax",{extractor:(0,i.YL)("address.fax"),insertor:(0,p.wq)("address.fax"),extendedValidators:n.kI.maxLength(255)}),new b.II("text","street","entity.User.address.street",{extractor:(0,i.YL)("address.street"),insertor:(0,p.wq)("address.street"),extendedValidators:n.kI.maxLength(255)}),new b.II("text","streetNo","entity.User.address.streetNo",{extractor:(0,i.YL)("address.streetNo"),insertor:(0,p.wq)("address.streetNo"),extendedValidators:n.kI.maxLength(255)}),new b.II("text","zipcode","entity.User.address.zipcode",{extractor:(0,i.YL)("address.zipcode"),insertor:(0,p.wq)("address.zipcode"),extendedValidators:n.kI.maxLength(255)}),new b.II("text","city","entity.User.address.city",{extractor:(0,i.YL)("address.city"),insertor:(0,p.wq)("address.city"),extendedValidators:n.kI.maxLength(255)}),new I.P("country","entity.User.address.country",{optionProvider:P.l,extractor:(0,i.YL)("address.country"),insertor:(0,p.wq)("address.country",!0),placeholder:"imxplatform.common.select-placeholder-no-selection",initialValue:-1})]}let j=(()=>{class Y extends o.z{constructor(ne,ee,$,ue,ge,Ke){super(ne,ee,$,ue,Ke),this.runtimeContextService=ue,this.imxSecurityManagerService=ge,this.formatterService=Ke}getEntityType(){return"User"}static#e=this.\u0275fac=function(ee){return new(ee||Y)(e.LFG(G),e.LFG(B,8),e.LFG(O.EG),e.LFG(l.Ze),e.LFG(l.Xh),e.LFG(l.H1))};static#t=this.\u0275prov=e.Yz7({token:Y,factory:Y.\u0275fac})}return Y})()},59776:(gt,X,a)=>{"use strict";a.d(X,{h:()=>n});const n=new(a(19212).OlP)("imxplatform.distance.search.items")},30909:(gt,X,a)=>{"use strict";a.d(X,{R:()=>l});var e=a(21473),n=a(19212);const s="long_lat";let l=(()=>{class i{constructor(p){this.configurationProvider=p,this.geometryFormat=this.configurationProvider.getStringFromSnapshot(e.x3.PLATFORM_GEOCOORDS_LONG_LAT_ORDER,s)}formatGeometryForTourObject(p){return this.geometryFormat===s?p.map(c=>c.join(",")).join(" "):p.map(c=>[c[1],c[0],c[2]]).map(c=>c.join(",")).join(" ")}static#e=this.\u0275fac=function(c){return new(c||i)(n.LFG(e.Pc))};static#t=this.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac})}return i})()},84005:(gt,X,a)=>{"use strict";a.d(X,{x:()=>n,z:()=>s});const n=new(a(19212).OlP)("imxplatform.primeng.calendar.locale");function s(){return{firstDayOfWeek:1,dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],monthNames:["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],today:"Heute",clear:"Zur\xfccksetzen",dateFormat:"dd.mm.yyyy",weekHeader:"KW"}}},67995:(gt,X,a)=>{"use strict";a.d(X,{PT:()=>s,b4:()=>l,yY:()=>i});var e=a(19212),n=a(97639),s=function(t){return t.EDIT_PAGE_ADDITIONAL_BUTTON_BAR="EDIT_PAGE_ADDITIONAL_BUTTON_BAR",t}(s||{});const l=new e.OlP("imxplatform.edit.page.additional.button.slot");class i extends n.B{constructor(){super(),super.addComponentMapping(s.EDIT_PAGE_ADDITIONAL_BUTTON_BAR,l)}}},8766:(gt,X,a)=>{"use strict";a.d(X,{C:()=>o});var e=a(69862),n=a(49193),s=a(17927),l=a(96124),i=a(49185),t=a(21473),p=a(27556),c=a(19212);let o=(()=>{class x{constructor(m){this.http=m,this.logger=(0,t.jl)("InfoService",p.H.name),this.appVersion="@VERSION@",this.clientInfo$=this.loadClientInfo()}loadClientInfo(){return this.http.get("assets/version.json",{headers:new e.WM({"Cache-Control":"no-cache",Pragma:"no-cache",Expires:"Sat, 01 Jan 2000 00:00:00 GMT"})}).pipe((0,s.b)(m=>this.logger.info("Requesting client version: "+m.version+" ("+m.imxBuildNo+")")),(0,l.U)(m=>({product_info_name:"imxPlatform3UI-"+m.imxProject,version:m.version,build:m.imxBuildNo,product_info_project:!1})),(0,i.d)())}getClientInfo(){return this.clientInfo$}usingLatestVersion(){return"VERSION@"===this.appVersion.substring(1)?(0,n.of)(!0):this.loadClientInfo().pipe((0,l.U)(m=>m.version===this.appVersion))}static#e=this.\u0275fac=function(b){return new(b||x)(c.LFG(e.eN))};static#t=this.\u0275prov=c.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"})}return x})()},82134:(gt,X,a)=>{"use strict";a.d(X,{A0:()=>b,mM:()=>H});var e=a(19212),n=a(21473),s=a(27556),l=a(47279),i=a(61250),t=a(6735);class c{constructor(P){this.notifier=P}call(P,G){return G.subscribe(new o(P,this.notifier))}}class o extends l.L{constructor(P,G){super(P),this.hasValue=!1;const B=new i.d(this,void 0,void 0);this.add(B),this.innerSubscription=B;const ae=(0,t.D)(this,G,void 0,void 0,B);ae!==B&&(this.add(ae),this.innerSubscription=ae)}_next(P){this.hasValue&&super._next(P)}notifyNext(P,G,B,ae,J){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()}notifyComplete(){}}var x=a(71365),u=a(23680),m=a(85219);const b=new e.OlP("application.language.storage"),I="APPLICATION_LANGUAGE";let H=(()=>{class O{constructor(G,B,ae,J,q){this.routingService=G,this.translateService=B,this.dateAdapter=ae,this.storage=J,this.config=q,this.logger=(0,n.jl)("LanguageInitService",s.H.name)}init(G){this.translateService.addLangs(G),this.translateService.setDefaultLang("de");const B=this.storage.getItem(I);if(B)this.useLanguage(B);else{let ae=null;try{ae=this.translateService.getBrowserLang()}catch{}this.useLanguage(ae&&ae.match(/de|en/)?ae:"de")}this.translateService.onLangChange.pipe(function p(O){return P=>P.lift(new c(O))}(this.translations$)).subscribe(ae=>{this.logger.info("Switch to system language: "+ae.lang),this.routingService.reload()})}switchLanguage(G){this.useLanguage(G),this.storage.setItem(I,G)}useLanguage(G){this.translations$=this.translateService.use(G),this.dateAdapter.setLocale(G),this.translateService.get("primeng").subscribe(B=>this.config.setTranslation(this.fixPrimeNGTranslations(B)))}fixPrimeNGTranslations(G){switch(typeof G){case"function":return G();case"object":if(Array.isArray(G))return G.map(B=>this.fixPrimeNGTranslations(B));for(const B in G)G[B]=this.fixPrimeNGTranslations(G[B]);return G;default:return G}}static#e=this.\u0275fac=function(B){return new(B||O)(e.LFG(n.Yz),e.LFG(x.sK),e.LFG(u._A),e.LFG(b),e.LFG(m.b4))};static#t=this.\u0275prov=e.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"})}return O})()},91145:(gt,X,a)=>{"use strict";a.d(X,{V:()=>s});var e=a(19212),n=a(22941);let s=(()=>{class l{constructor(t){this.router=t,this.contactListByRefObject=new Map}pushContactList(t,p,c){this.contactListByRefObject.set(t+"-"+p,c)}popContactListByRefObject(t){const p=this.contactListByRefObject.get(this.determineKey(t));if(p)return this.contactListByRefObject.delete(this.determineKey(t)),p}determineKey(t){return t._entityType+"-"+t.id}static#e=this.\u0275fac=function(p){return new(p||l)(e.LFG(n.F0))};static#t=this.\u0275prov=e.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},15767:(gt,X,a)=>{"use strict";a.d(X,{G:()=>t});var e=a(51418),n=a(96124),s=a(39693),l=a(19212),i=a(22941);let t=(()=>{class p{constructor(o,x){this.router=o,this.entityListsDataAccessService=x,this.historyByEntityType={}}updateLastListState(o,x){this.historyByEntityType[o]=x}navigateToLastListState(o){return this.historyByEntityType[o]?this.router.navigateByUrl(this.historyByEntityType[o]):null}retrievePreviousEditedEntity(o){return this.entityListsDataAccessService.objectHistory$().pipe((0,e.q)(1),(0,n.U)(x=>x.length>0&&this.equalEntity(x[0].entity.dataObject._entityType,o)?x[0].entity.id:null))}equalEntity(o,x){return o===x||!(!o.toLowerCase().includes("address")||!x.toLowerCase().includes("address"))}static#e=this.\u0275fac=function(x){return new(x||p)(l.LFG(i.F0),l.LFG(s.$))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},55063:(gt,X,a)=>{"use strict";a.d(X,{h:()=>o});var e=a(79309),n=a(49193),s=a(23291),l=a(62413),i=a(39693),t=a(22819),p=a(59143),c=a(19212);let o=(()=>{class x{constructor(m,b,I){this.userMessageService=m,this.platformDataAccessService=b,this.entityListsDataAccessService=I}createOrUpdateObjectList(m,b,I,H,O){if(m){const P=[];m.listSelection&&m.listSelection.length>0&&m.listSelection.forEach(G=>{P.push(m.overwriteList?this.platformDataAccessService.replaceObjectsInObjectList(G,H,O).pipe((0,l.K)(B=>(0,n.of)(void 0))):this.platformDataAccessService.addObjectsToObjectList(G,H,O).pipe((0,l.K)(B=>(0,n.of)(void 0))))}),m.createNewList&&m.newListName&&P.push(this.platformDataAccessService.createEntityList({name:m.newListName,entityType:b,listType:e.E6.OBJECT_LIST,listInfo:`${I}?id=${O}`}).pipe((0,l.K)(B=>(0,n.of)(void 0)))),(0,s.aj)(P).subscribe(G=>{G.reduce((ae,J)=>ae&&J)?(G.forEach(ae=>{this.entityListsDataAccessService.upsertEntityLists(ae)}),this.userMessageService.showInfo("imxplatform.entity-list.object-list.create-dialog.success")):this.userMessageService.showError("imxplatform.entity-list.object-list.create-dialog.failure")})}}static#e=this.\u0275fac=function(b){return new(b||x)(c.LFG(p.Y),c.LFG(t.nq),c.LFG(i.$))};static#t=this.\u0275prov=c.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"})}return x})()},88119:(gt,X,a)=>{"use strict";a.d(X,{l:()=>n});var e=a(19212);let n=(()=>{class s{determineMediaIcon(i,t){return t?t.indexOf("host.docker.internal")>0||t.indexOf("localhost")>0?t:!t.startsWith("https")&&location.protocol.startsWith("https")?"./assets/result-list-icons/no_ssl_image.svg":t:"./assets/result-list-icons/dummy-list.svg"}static#e=this.\u0275fac=function(t){return new(t||s)};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})()},23097:(gt,X,a)=>{"use strict";a.d(X,{d:()=>s});var e=a(8367),n=a(19212);let s=(()=>{class l{constructor(){this.selection$=new e.t(1),this.currentPath=[]}setCurrentPath(t){if(this.buildPathString(t)!==this.buildPathString(this.currentPath)){this.currentPath=t;const p=this.buildPathString(t);this.currentPathAsString=p,this.selection$.next(p)}}onPathSelectionChanges(){return this.selection$}getCurrentPath(){return this.currentPath}getCurrentPathAsString(){return this.currentPathAsString}reset(){this.currentPath=[],this.selection$=new e.t(1)}buildPathString(t){return t.slice(1,t.length).join("/")+"/"}static#e=this.\u0275fac=function(p){return new(p||l)};static#t=this.\u0275prov=n.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},18051:(gt,X,a)=>{"use strict";a.d(X,{o:()=>t});var e=a(49193),n=a(51418),s=a(49185),l=a(22819),i=a(19212);let t=(()=>{class p{constructor(o){this.dataAccessService=o,this.memoCountMap=new Map}loadMemoCountsForEntities(o,x,u){if(0!==x.length){if(!u){const m=this.memoCountMap.get(o);if(m&&x.every(b=>m.has(b)))return}this.dataAccessService.getMemoCounts$(o,x).subscribe(m=>{const b=this.memoCountMap.get(o);this.memoCountMap.set(o,b?new Map([...Array.from(b.entries()),...Array.from(m)]):m)})}}setMemoCount(o,x,u){let m=this.memoCountMap.get(o);m||(m=new Map,this.memoCountMap.set(o,m)),m.set(x,u)}getMemoCount(o,x){const u=this.memoCountMap.get(o);let m=0;return u&&(m=u.get(x)),m||(m=0),m}clearAll(){this.entityType=void 0,this.entityId=void 0}getMemos(o,x){return(this.entityId!==x||this.entityType!==o)&&(this.entityType=o,this.entityId=x,this.memosOfCurrentEntity$=this.entityId?this.dataAccessService.getMemos$(this.entityType,this.entityId).pipe((0,n.q)(1),(0,s.d)()):(0,e.of)([])),this.memosOfCurrentEntity$}updateMemo$(o){return this.dataAccessService.updateMemo$(o)}static#e=this.\u0275fac=function(x){return new(x||p)(i.LFG(l.nq))};static#t=this.\u0275prov=i.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},59143:(gt,X,a)=>{"use strict";a.d(X,{Y:()=>q});var e=a(69862),n=a(22939),s=a(19212),l=a(96814),i=a(71365),t=a(22194);let p=(()=>{class j{transform(K,ne=", "){return K?K.join(ne):""}static#e=this.\u0275fac=function(ne){return new(ne||j)};static#t=this.\u0275pipe=s.Yjl({name:"join",type:j,pure:!0})}return j})();function c(j,Y){if(1&j&&(s.ynx(0),s.TgZ(1,"dt"),s._uU(2,"Error:"),s.qZA(),s.TgZ(3,"dd"),s._uU(4),s.qZA(),s.BQk()),2&j){const K=s.oxw(2);s.xp6(4),s.Oqu(K.error.error)}}function o(j,Y){if(1&j&&(s.ynx(0),s._uU(1),s.BQk()),2&j){const K=s.oxw(3);s.xp6(),s.hij(" (",K.error.reasonKey,")")}}function x(j,Y){if(1&j&&(s.ynx(0),s.TgZ(1,"dt"),s._uU(2,"Fehlermeldung:"),s.qZA(),s.TgZ(3,"dd"),s._uU(4),s.YNc(5,o,2,1,"ng-container",4),s.qZA(),s.BQk()),2&j){const K=s.oxw(2);s.xp6(4),s.Oqu(K.error.message),s.xp6(),s.Q6J("ngIf",K.error.reasonKey)}}function u(j,Y){if(1&j&&(s.ynx(0),s.TgZ(1,"dt"),s._uU(2,"HTTP-Status:"),s.qZA(),s.TgZ(3,"dd"),s._uU(4),s.qZA(),s.BQk()),2&j){const K=s.oxw(2);s.xp6(4),s.Oqu(K.error.status)}}function m(j,Y){if(1&j&&(s.ynx(0),s._uU(1),s.BQk()),2&j){const K=s.oxw(3);s.xp6(),s.hij(" (",K.error.exceptionKey,")")}}function b(j,Y){if(1&j&&(s.ynx(0),s.TgZ(1,"dt"),s._uU(2,"Exception:"),s.qZA(),s.TgZ(3,"dd"),s._uU(4),s.YNc(5,m,2,1,"ng-container",4),s.qZA(),s.BQk()),2&j){const K=s.oxw(2);s.xp6(4),s.Oqu(K.error.exception),s.xp6(),s.Q6J("ngIf",K.error.exceptionKey)}}function I(j,Y){if(1&j&&(s.ynx(0),s.TgZ(1,"dt"),s._uU(2,"Timestamp:"),s.qZA(),s.TgZ(3,"dd"),s._uU(4),s.qZA(),s.BQk()),2&j){const K=s.oxw(2);s.xp6(4),s.Oqu(K.error.timestamp)}}function H(j,Y){if(1&j&&(s.ynx(0),s.TgZ(1,"dt"),s._uU(2,"Pfad:"),s.qZA(),s.TgZ(3,"dd"),s._uU(4),s.qZA(),s.BQk()),2&j){const K=s.oxw(2);s.xp6(4),s.Oqu(K.error.path)}}function O(j,Y){if(1&j&&(s.ynx(0),s.TgZ(1,"dt"),s._uU(2,"Parameter:"),s.qZA(),s.TgZ(3,"dd"),s._uU(4),s.ALo(5,"join"),s.qZA(),s.BQk()),2&j){const K=s.oxw(2);s.xp6(4),s.Oqu(s.lcZ(5,1,K.error.params))}}function P(j,Y){if(1&j&&(s.TgZ(0,"dl"),s.YNc(1,c,5,1,"ng-container",4)(2,x,6,2,"ng-container",4)(3,u,5,1,"ng-container",4)(4,b,6,2,"ng-container",4)(5,I,5,1,"ng-container",4)(6,H,5,1,"ng-container",4)(7,O,6,3,"ng-container",4),s.qZA()),2&j){const K=s.oxw();s.xp6(),s.Q6J("ngIf",K.error.error),s.xp6(),s.Q6J("ngIf",K.error.message||K.error.reasonKey),s.xp6(),s.Q6J("ngIf",K.error.status),s.xp6(),s.Q6J("ngIf",K.error.exception||K.error.exceptionKey),s.xp6(),s.Q6J("ngIf",K.error.timestamp),s.xp6(),s.Q6J("ngIf",K.error.path),s.xp6(),s.Q6J("ngIf",K.error.params&&K.error.params.length>0)}}let G=(()=>{class j{constructor(K,ne){this.error=K,this.snackBarRef=ne,this.showDetails=!1}dismiss(){this.snackBarRef.dismiss()}toggleDetails(){this.showDetails=!this.showDetails}static#e=this.\u0275fac=function(ne){return new(ne||j)(s.Y36(n.qD),s.Y36(n.OX))};static#t=this.\u0275cmp=s.Xpm({type:j,selectors:[["imx-error-body-snack-item"]],decls:12,vars:4,consts:[["href","javascript:void(0)",1,"closer",3,"click"],[1,"icon","icon-crossBold"],["translate",""],["href","javascript:void(0)","translate","",1,"toggler",3,"click"],[4,"ngIf"]],template:function(ne,ee){1&ne&&(s.TgZ(0,"p")(1,"a",0),s.NdJ("click",function(){return ee.dismiss()}),s._UZ(2,"i",1),s.qZA(),s.TgZ(3,"strong",2),s._uU(4,"imxplatform.common.error.title"),s.qZA(),s._UZ(5,"br"),s._uU(6),s.ALo(7,"join"),s.qZA(),s.TgZ(8,"p")(9,"a",3),s.NdJ("click",function(){return ee.toggleDetails()}),s._uU(10,"imxplatform.common.error.showmore"),s.qZA()(),s.YNc(11,P,8,7,"dl",4)),2&ne&&(s.xp6(6),s.hij(" ",s.lcZ(7,2,ee.error.localizedMessage)," "),s.xp6(5),s.Q6J("ngIf",ee.showDetails))},dependencies:[l.O5,i.Pi,t.F,p],styles:["[_nghost-%COMP%] > p[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] > p[_ngcontent-%COMP%] > .closer[_ngcontent-%COMP%]{color:#fff;text-decoration:none;position:absolute;top:0;right:0}[_nghost-%COMP%] > p[_ngcontent-%COMP%]   .toggler[_ngcontent-%COMP%]{color:#fff}[_nghost-%COMP%] > dl[_ngcontent-%COMP%]   dt[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%] > dl[_ngcontent-%COMP%]   dd[_ngcontent-%COMP%]{margin-inline-start:0}"]})}return j})();var B=a(21473);const J=1e4;let q=(()=>{class j{constructor(K,ne,ee){this.snackbar=K,this.translateService=ne,this.ngZone=ee}showInfo(K,ne,ee){this.translateService.get(K,ne).subscribe($=>{this.snackbar.open($,"",{duration:ee||2e3,panelClass:"blue-snackbar",verticalPosition:"bottom"})})}showError(K,ne){if((0,B.Ec)(K))this.snackbar.openFromComponent(G,{data:K,duration:J,panelClass:"error",verticalPosition:"bottom"});else if(K instanceof e.UA)K.error&&(0,B.Ec)(K.error)?this.snackbar.openFromComponent(G,{data:K.error,duration:J,panelClass:"error",verticalPosition:"bottom"}):this.snackbar.open(K.message,"",{duration:J,panelClass:"error",verticalPosition:"bottom"});else{let ee;ee=K instanceof Error?K.message:K,this.translateService.get(ee,ne).subscribe($=>{this.ngZone.run(()=>{this.snackbar.open($,"",{duration:J,panelClass:"error",verticalPosition:"bottom"})})})}}static#e=this.\u0275fac=function(ne){return new(ne||j)(s.LFG(n.ux),s.LFG(i.sK),s.LFG(s.R0b))};static#t=this.\u0275prov=s.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"})}return j})()},32562:(gt,X,a)=>{"use strict";a.d(X,{_:()=>l});var e=a(23680),n=a(21473),s=a(19212);let l=(()=>{class i extends e.LF{constructor(p,c){super(p.toString()),this.matDateLocale=p,this.formatter=c}getFirstDayOfWeek(){return 1}parse(p){return this.formatter.parseDate(p,this.formatter.getDefaultDateOutputPattern())}static#e=this.\u0275fac=function(c){return new(c||i)(s.LFG(e.Ad),s.LFG(n.H1))};static#t=this.\u0275prov=s.Yz7({token:i,factory:i.\u0275fac})}return i})()},43425:(gt,X,a)=>{"use strict";a.d(X,{I:()=>p});var e=a(8367),n=a(97734),s=a(19212),l=a(22941),i=a(71088);let p=(()=>{class c{constructor(x,u){this.router=x,this.mediaMatcher=u,this.pinnedState$=new e.t(1),this.openBlocks$=new e.t(1),this.ignoredPages=["/dashboard","/login","/forgot-password"],this.smallScreenHandler=m=>{m.matches&&this.removePinnedAccess()}}getPinnedState(){return this.pinnedState$.pipe((0,n.h)(x=>!this.isIgnored()))}getOpenBlocks(){return this.openBlocks$}setOpenBlocks(x){this.openBlocks$.next(x)}pinAccess(x){this.pinnedState$.next(!0),this.setOpenBlocks(x),this.mediaMatch=this.mediaMatcher.matchMedia("(max-width: 1280px)"),this.mediaMatch.addEventListener("change",this.smallScreenHandler)}removePinnedAccess(){this.pinnedState$.next(!1),this.mediaMatch.removeEventListener("change",this.smallScreenHandler)}isIgnored(){let x=!1;return this.ignoredPages.forEach(u=>{x||(x=this.router.url.startsWith(u))}),x}static#e=this.\u0275fac=function(u){return new(u||c)(s.LFG(l.F0),s.LFG(i.vx))};static#t=this.\u0275prov=s.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})()},19004:(gt,X,a)=>{"use strict";a.d(X,{$:()=>t});var e=a(22819),n=a(49193),s=a(21473),l=a(27556),i=a(19212);let t=(()=>{class p{constructor(o){this.dataAccess=o,this.logger=(0,s.jl)("MediaResolverService",l.H.name)}resolve(o,x){const u=Number.parseInt(o.paramMap.get("id")||"",10);return!o.paramMap.has("id")||Number.isNaN(u)?(this.logger.info("No pooled medium id is received. A new record is returned"),(0,n.of)({id:null,_entityType:"PooledMedium",identification:"[Neu]"})):this.dataAccess.getPooledMediaById(u)}static#e=this.\u0275fac=function(x){return new(x||p)(i.LFG(e.nq))};static#t=this.\u0275prov=i.Yz7({token:p,factory:p.\u0275fac})}return p})()},63333:(gt,X,a)=>{"use strict";a.d(X,{K:()=>n,x:()=>s});var e=a(19212);const n=new e.OlP("imxplatform.searchpagedefaults");let s=(()=>{class l{constructor(t){this.searchPageDefaults=t}getDefaultPageSize(t){if(this.searchPageDefaults){const p=this.searchPageDefaults.find(c=>c.entityType===t);if(p&&p.defaultPageSize)return p.defaultPageSize}}getDefaultOrderDirection(t){if(this.searchPageDefaults){const p=this.searchPageDefaults.find(c=>c.entityType===t);if(p&&p.defaultOrderDirection)return p.defaultOrderDirection}}getDefaultOrderField(t){if(this.searchPageDefaults){const p=this.searchPageDefaults.find(c=>c.entityType===t);if(p&&p.defaultOrderField)return p.defaultOrderField}}static#e=this.\u0275fac=function(p){return new(p||l)(e.LFG(n,8))};static#t=this.\u0275prov=e.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},54320:(gt,X,a)=>{"use strict";a.d(X,{A:()=>i,B:()=>t});var e=a(19212),n=a(72079),s=a(85175),l=a(31933);const i=new e.OlP("imxplatform.sidebar.data");let t=(()=>{class p{constructor(o){this.injector=o}init(o){this.sidebarConfigRight=o.right,this.sidebarConfigLeft=o.left}open(o,x,u){this.disableScrolling();const m=new n.xQ,b=new l.N(m),I="left"===x?this.sidebarConfigLeft:this.sidebarConfigRight;if(I.sidenav&&I.container&&I.elementRef){u.cssClass&&I.elementRef.nativeElement.classList.add(u.cssClass),I.sidenav.disableClose=null!=u.disableClose&&u.disableClose;const H=new WeakMap;H.set(i,u.data),I.container.clear(),I.container.createComponent(o,{injector:new s.R(this.injector,H)}).instance.sidenav=I.sidenav,I.sidenav.open().then(P=>{const G=I.sidenav._closedStream.subscribe(B=>{m.next(u.data),G.unsubscribe(),this.cleanUpContainer(u,I.container,I.elementRef)})})}return b}disableScrolling(){document.body.style.animation="open 200ms ease-out 0s 1";const o=window.scrollX,x=window.scrollY;document.body.style.overflow="hidden",window.onscroll=()=>{window.scrollTo(o,x)}}enableScrolling(){window.onscroll=()=>{},document.body.style.animation="close 200ms ease-out 0s",document.body.style.overflow="",document.body.style.animation=""}cleanUpContainer(o,x,u){o.cssClass&&(u.nativeElement.classList.remove(o.cssClass),x.clear()),this.enableScrolling()}static#e=this.\u0275fac=function(x){return new(x||p)(e.LFG(e.zs3))};static#t=this.\u0275prov=e.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},85175:(gt,X,a)=>{"use strict";a.d(X,{R:()=>e});class e{constructor(s,l){this.parentInjector=s,this.additionalTokens=l}get(s,l,i){return this.additionalTokens.get(s)||this.parentInjector.get(s,l)}}},31933:(gt,X,a)=>{"use strict";a.d(X,{N:()=>e});class e{constructor(s){this.afterClosed$=s}afterClosed(){return this.afterClosed$}}},6160:(gt,X,a)=>{"use strict";a.d(X,{A:()=>i,t:()=>l});var e=a(19212),n=a(21473),s=a(27556);const l=new e.OlP("imxplatform.slot.provider");let i=(()=>{class t{constructor(c,o){this.injector=o,this.logger=(0,n.jl)("SlotProviderRegistryService",s.H.name),this.slot2TokenMap=new Map,this.slot2ComponentMap=new Map,c.forEach(x=>this.registerMappings(x))}registerMappings(c){c.getComponentMapping().forEach((o,x)=>{if(this.slot2TokenMap.get(x))throw new Error("duplicate slot key provided: "+x+". Please check the slot definitions.");this.slot2TokenMap.set(x,o)})}getSlotComponent(c){let o=this.slot2ComponentMap.get(c);if(!o){const x=this.slot2TokenMap.get(c);if(!x)return;o=this.injector.get(x,void 0,e.XFs.Optional),this.slot2ComponentMap.set(c,o)}return o}static#e=this.\u0275fac=function(o){return new(o||t)(e.LFG(l),e.LFG(e.zs3))};static#t=this.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},97639:(gt,X,a)=>{"use strict";a.d(X,{B:()=>e});class e{constructor(){this.componentMapping=new Map}getComponentMapping(){return this.componentMapping}addComponentMapping(s,l){this.componentMapping.set(s,l)}}},17591:(gt,X,a)=>{"use strict";a.d(X,{Q:()=>s});var e=a(19212),n=a(75339);let s=(()=>{class l{constructor(t){this.tracker=t,this.disableHeatmap()}setAppName(t){this.tracker.setCustomDimension(1,t)}trackSearchResults(t,p,c,o){const x=Object.assign({entityType:p},t);this.tracker.trackSiteSearch(JSON.stringify(x),c,o)}disableHeatmap(){this.tracker.push(["HeatmapSessionRecording::disable"])}static#e=this.\u0275fac=function(p){return new(p||l)(e.LFG(n.ws))};static#t=this.\u0275prov=e.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},73209:(gt,X,a)=>{"use strict";a.d(X,{m:()=>e});var e=function(n){return n.alphanumeric="alphanumeric",n.numeric="numeric",n}(e||{})},44316:(gt,X,a)=>{"use strict";a.d(X,{D:()=>n});const n=new(a(19212).OlP)("imxplatform.universal.search.voter")},46551:(gt,X,a)=>{"use strict";a.d(X,{T:()=>m});var e=a(21473),n=a(49193),s=a(62413),l=a(96124),i=a(51418),t=a(94973),p=a(82851),c=a(27556),o=a(27020),x=a(19212),u=a(71365);let m=(()=>{class b extends o.e{constructor(H,O){super(H,O),this.dataAccess=H,this.translateService=O,this.logger=(0,e.jl)("UniversalSearchService",c.H.name)}searchAll(H,O,P){if(!H)return(0,n.of)(new e.BY([],0,0,0));let G;G=isNaN(Number(H))?"("+(H=(H=(H=H.replace(/[,\/#!$%\^&\*;:{}=\-`~()+?!"'\[\]]/g," ").trim()).replace(/\s\s+/g," ")).replace(/\s/g," AND "))+"*) OR ("+H+")":H,this.logger.debug("universal search string: ",G);const ae=Object.assign({searchString:G}||{},this.buildRequestOptionParams(O,"searchOrderFields"));return this.dataAccess.get("search",{params:ae}).pipe((0,s.K)(J=>(0,n.of)({content:[],totalElements:0,number:0,size:0})),(0,l.U)(J=>{const j=new e.BY(J.content,J.totalElements,J.number,J.size);return j.totalHits=J.totalHits,j}),(0,i.q)(1),(0,t.C)(),(0,p.x)())}endsWithCharacter(H){return!H.endsWith(" ")}static#e=this.\u0275fac=function(O){return new(O||b)(x.LFG(e.fx),x.LFG(u.sK))};static#t=this.\u0275prov=x.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})()},45582:(gt,X,a)=>{"use strict";a.d(X,{Yp:()=>Pe,Ll:()=>St,f2:()=>un,iU:()=>vi});var e=a(34423),n=a(69594),s=a(68484),l=a(96814),i=a(69862),t=a(33247),p=a(55384),c=a(19212),o=a(56223),x=a(24630),u=a(32296),m=a(49488),b=a(75986),I=a(23680),H=a(38034),O=a(17700),P=a(26385),G=a(3305),B=a(73176),ae=a(30617),J=a(2032),q=a(59038),j=a(21476),Y=a(16007),K=a(55940),ne=a(87466),ee=a(98525),$=a(32651),ue=a(82599),ge=a(92202),Ke=a(22939),at=a(13566),Le=a(61545),R=a(25313),Te=a(81274),me=a(92596),Se=a(98445),Ue=a(6593),We=a(22941),et=a(8386),Et=a(71365),lt=a(3579),Vt=a(68940),r=a(34554),Z=a(95435),Pt=a(67742),Oe=a(63504),ye=a(43858),ve=a(59252),ft=a(17919),Dt=a(88454),Rn=a(67338),ti=a(1431),Xt=a(45389),Je=a(21473),dt=a(22194),Ie=a(97564),ot=a(33946),ct=a(89051),tn=a(49193),yi=a(62413),ni=a(96124),sn=a(94973),bn=a(82851),vt=a(64022),nn=a(85219),rn=a(32068),ii=a(96776),Oo=a(75222),no=a(23367);function Li(qe,Xi){1&qe&&(c.ynx(0),c._UZ(1,"mat-progress-bar",3),c.BQk())}function ji(qe,Xi){1&qe&&(c.TgZ(0,"p",4),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&qe&&(c.xp6(),c.Oqu(c.lcZ(2,1,"imxplatform.common-entity.edit.panels.reference.sorting.too-less-chars")))}function Ii(qe,Xi){1&qe&&(c.TgZ(0,"p",4),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&qe&&(c.xp6(),c.Oqu(c.lcZ(2,1,"F\xfcr die Suche ben\xf6tigen Sie eine neuere Platform-Backend-Version")))}let _i=(()=>{class qe{constructor(xt){this.coreDataObjectAutocompleteRegistry=xt,this.pageSize=10,this.entityListQueryParams={},this.holdersFound=new c.vpe,this.inputControl=new o.NI(""),this.loading=!1,this.tooLessChars=!1,this.oldBackendVersion=!1}ngOnInit(){this.autocompleteService=this.coreDataObjectAutocompleteRegistry.getAutocompleteService(this.entityType),this.inputControl.valueChanges.pipe((0,rn.x)(),(0,ii.b)(400),(0,Oo.w)(xt=>null==xt||""===xt?(this.tooLessChars=!0,(0,tn.of)("TOO_LESS_CHARS")):"string"==typeof xt&&""!==xt?xt.length>=3?(this.tooLessChars=!1,this.loading=!0,this.getAutocompleteHolders(xt)):(this.tooLessChars=!0,(0,tn.of)("TOO_LESS_CHARS")):void 0)).subscribe(xt=>{this.holdersFound.emit(xt),this.loading=!1})}getAutocompleteHolders(xt){if(this.autocompleteService)return this.autocompleteService.getAutocompleteHoldersFiltered(xt,this.pageSize+1,this.entityListQueryParams).pipe((0,yi.K)(jt=>(400===jt.status&&(this.oldBackendVersion=!0),(0,tn.of)([]))));throw new Error("no autocompleteService found for "+this.entityType)}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.Y36(no.R))};static#t=this.\u0275cmp=c.Xpm({type:qe,selectors:[["imx-entity-list-search-field"]],inputs:{entityType:"entityType",pageSize:"pageSize",entityListQueryParams:"entityListQueryParams"},outputs:{holdersFound:"holdersFound"},decls:5,vars:7,consts:[["matInput","","type","text",1,"autocomplete-field",3,"placeholder","formControl"],[4,"ngIf"],["class","txt-grey txt-md",4,"ngIf"],["mode","indeterminate"],[1,"txt-grey","txt-md"]],template:function(jt,jn){1&jt&&(c._UZ(0,"input",0),c.ALo(1,"translate"),c.YNc(2,Li,2,0,"ng-container",1)(3,ji,3,3,"p",2)(4,Ii,3,3,"p",2)),2&jt&&(c.s9C("placeholder",c.lcZ(1,5,"imxplatform.common-entity.edit.panels.reference.sorting.searchInList")),c.Q6J("formControl",jn.inputControl),c.xp6(2),c.Q6J("ngIf",jn.loading),c.xp6(),c.Q6J("ngIf",jn.tooLessChars&&!jn.oldBackendVersion),c.xp6(),c.Q6J("ngIf",jn.oldBackendVersion))},dependencies:[l.O5,o.Fj,o.JJ,J.Nt,Y.pW,o.oH,Et.X$],styles:["\n\n\n\n\n\n\n\n\n\n\n\ninput.autocomplete-field[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;height:30px;background-color:#fff;border:1px solid #ced4e0;border-radius:3px;padding:0 33px 0 10px;font-size:14px;z-index:1;margin-bottom:5px}input.autocomplete-field.ng-invalid[_ngcontent-%COMP%]{border:1px solid #96172e}input.autocomplete-field[_ngcontent-%COMP%]:disabled{color:#9da8c1;border:1px solid #e6e9ef}"]})}return qe})();var En=a(1614);function co(qe,Xi){1&qe&&c._UZ(0,"mat-progress-bar",2)}function yn(qe,Xi){1&qe&&(c.TgZ(0,"p",14),c._uU(1," imxplatform.common.no-records"),c.qZA())}function ln(qe,Xi){1&qe&&(c.TgZ(0,"p",15),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&qe&&(c.xp6(),c.Oqu(c.lcZ(2,1,"imxplatform.common-entity.edit.panels.reference.sorting.more-items-hint")))}function He(qe,Xi){if(1&qe&&(c.TgZ(0,"th",18),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&qe){const xt=Xi.$implicit;c.Udp("width",xt.width),c.Q6J("ngClass",xt.cssClass),c.xp6(),c.hij(" ",c.lcZ(2,4,xt.header)," ")}}function rt(qe,Xi){if(1&qe&&(c.TgZ(0,"tr",16),c.YNc(1,He,3,6,"th",17),c.qZA()),2&qe){const xt=c.oxw(2);c.xp6(),c.Q6J("ngForOf",xt.columnDefinitions)}}function $e(qe,Xi){if(1&qe){const xt=c.EpF();c.TgZ(0,"td",21),c.NdJ("click",function(){c.CHM(xt);const jn=c.oxw().$implicit,ro=c.oxw(2);return c.KtG(ro.isItemSelected(jn.id)?ro.remove.emit(jn.id):ro.add.emit(jn.id))}),c.TgZ(1,"span",22),c._uU(2),c.qZA()(),c.TgZ(3,"td",21),c.NdJ("click",function(){c.CHM(xt);const jn=c.oxw().$implicit,ro=c.oxw(2);return c.KtG(ro.isItemSelected(jn.id)?ro.remove.emit(jn.id):ro.add.emit(jn.id))}),c.TgZ(4,"span",23),c.ALo(5,"readI18n"),c._uU(6),c.ALo(7,"readI18n"),c.qZA()()}if(2&qe){const xt=c.oxw().$implicit;c.xp6(2),c.Oqu(xt.id),c.xp6(2),c.Q6J("matTooltipShowDelay",500)("matTooltip",c.lcZ(5,4,xt.title)),c.xp6(2),c.Oqu(c.lcZ(7,6,xt.title))}}function Ve(qe,Xi){if(1&qe&&(c.TgZ(0,"td",24)(1,"span"),c._uU(2),c.qZA()(),c.TgZ(3,"td",24)(4,"span",25),c.ALo(5,"readI18n"),c._uU(6),c.ALo(7,"readI18n"),c.qZA()()),2&qe){const xt=c.oxw().$implicit;c.xp6(2),c.Oqu(xt.id),c.xp6(2),c.Q6J("matTooltipShowDelay",500)("matTooltip",c.lcZ(5,4,xt.title)),c.xp6(2),c.Oqu(c.lcZ(7,6,xt.title))}}function Ce(qe,Xi){if(1&qe){const xt=c.EpF();c.TgZ(0,"a",27),c.NdJ("click",function(){c.CHM(xt);const jn=c.oxw(2).$implicit,ro=c.oxw(2);return c.KtG(ro.deleteFromSelectList.emit(jn.id))}),c.qZA()}if(2&qe){const xt=c.oxw(3).ngIf;c.Q6J("hidden",1===xt.items.length)}}function tt(qe,Xi){if(1&qe&&(c.TgZ(0,"td",24),c.YNc(1,Ce,1,1,"a",26),c.qZA()),2&qe){const xt=c.oxw(3);c.xp6(),c.Q6J("ngIf",xt.hasEditPermission)}}const ht=qe=>({selected:qe});function Qt(qe,Xi){if(1&qe&&(c.TgZ(0,"tr",19),c.YNc(1,$e,8,8)(2,Ve,8,8)(3,tt,2,1,"td",20),c.qZA()),2&qe){const xt=Xi.$implicit,jt=c.oxw(2);c.Q6J("ngClass",c.VKq(4,ht,jt.isItemSelected(xt.id))),c.uIk("data-scroll-id",xt.id),c.xp6(),c.um2(1,jt.hasEditPermission?1:2),c.xp6(2),c.Q6J("ngIf",jt.isIdList)}}const Un=()=>["id","title"];function Yt(qe,Xi){if(1&qe){const xt=c.EpF();c.ynx(0),c.TgZ(1,"div",3)(2,"h3",4),c._uU(3),c.ALo(4,"translate"),c.qZA()(),c.TgZ(5,"div")(6,"div",5)(7,"imx-entity-list-search-field",6),c.NdJ("holdersFound",function(jn){c.CHM(xt);const ro=c.oxw();return c.KtG(ro.holdersFound(jn))}),c.qZA()(),c.YNc(8,yn,2,0,"p",7)(9,ln,3,3,"p",8),c.TgZ(10,"div",9)(11,"p-table",10,11),c.YNc(13,rt,2,1,"ng-template",12)(14,Qt,4,6,"ng-template",13),c.qZA()()(),c.BQk()}if(2&qe){const xt=Xi.ngIf,jt=c.oxw();c.xp6(3),c.AsE("",c.lcZ(4,11,"imxplatform.common-entity.edit.panels.reference.sorting.available")," (",xt.totalNumberOfResults,")"),c.xp6(4),c.Q6J("entityType",jt.entityList.entityType)("pageSize",jt.PAGE_SIZE)("entityListQueryParams",jt.entityListQueryParams),c.xp6(),c.Q6J("ngIf",0===xt.items.length),c.xp6(),c.Q6J("ngIf",xt.numberOfPages>1),c.xp6(2),c.Q6J("value",xt.items)("responsiveLayout","scroll")("globalFilterFields",c.DdM(13,Un))("resizableColumns",!1)}}let Fn=(()=>{class qe{constructor(xt,jt,jn){this.dataAccess=xt,this.translateService=jt,this.coreEntityDefService=jn,this.currentlySortedIds=[],this.isIdList=!1,this.hasEditPermission=!1,this.add=new c.vpe,this.remove=new c.vpe,this.deleteFromSelectList=new c.vpe,this.PAGE_SIZE=50,this.entityListQueryParams={},this.filteredListShown=!1,this.columnDefinitions=[{field:"id",header:"entity.DataObject.id",width:"70px"},{field:"name",header:"entity.ExtCoreDataObject.title",width:"90%"}]}ngOnChanges(xt){xt.entityList&&!xt.entityList.isFirstChange()&&(this.results=this.loadEntities(this.entityList)),this.entityListQueryParams=(0,Je.w_)(this.entityList.listInfo)}ngOnInit(){this.results=this.loadEntities(this.entityList),this.isIdList&&this.columnDefinitions.push({field:"actionColumn",header:"",width:"70px"})}holdersFound(xt){if(console.log("xxx holdersFound",xt),xt&&(0,Je.kJ)(xt)){const jt=xt.length;xt=xt.slice(0,this.PAGE_SIZE),this.filteredListShown=!0,this.results=(0,tn.of)(new Je.BY(xt.map(jn=>{const ro={id:jn.entityId,title:{}};return ro.title[this.translateService.currentLang]=jn.representation,ro}),jt,0,this.PAGE_SIZE))}else this.filteredListShown&&(this.filteredListShown=!1,this.results=this.loadEntities(this.entityList))}loadEntities(xt){const jt=this.coreEntityDefService.getCoreEntityDefByString(xt.entityType).apiPrefix;return xt.listInfo&&xt.listInfo.length>0?this.dataAccess.get(jt+"/compact?"+xt.listInfo,{params:{page:"0",size:this.PAGE_SIZE.toString()}}).pipe((0,yi.K)(()=>(0,tn.of)({compactEntities:[],totalElements:0,number:0,size:0})),(0,ni.U)(jn=>{const ro=Object.keys(jn)[0];return new Je.BY(jn[ro].map(jr=>({id:jr.id,title:jr.title})),jn.totalElements,jn.number,jn.size)}),(0,sn.C)(),(0,bn.x)()):(0,tn.of)(new Je.BY([],0,0,0))}isItemSelected(xt){return this.currentlySortedIds.includes(xt)}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.Y36(Je.fx),c.Y36(Et.sK),c.Y36(vt.dE))};static#t=this.\u0275cmp=c.Xpm({type:qe,selectors:[["imx-entity-list-sorted-select-table"]],inputs:{entityList:"entityList",currentlySortedIds:"currentlySortedIds",isIdList:"isIdList",hasEditPermission:"hasEditPermission"},outputs:{add:"add",remove:"remove",deleteFromSelectList:"deleteFromSelectList"},features:[c.TTD],decls:4,vars:4,consts:[["loading",""],[4,"ngIf","ngIfElse"],["mode","indeterminate"],[1,"form__content-row"],["translate",""],[1,"search-field"],[3,"entityType","pageSize","entityListQueryParams","holdersFound"],["class","txt-grey txt-md no-records","translate","",4,"ngIf"],["class","txt-grey txt-md",4,"ngIf"],[1,"form__table"],[1,"imx-datatable",3,"value","responsiveLayout","globalFilterFields","resizableColumns"],["mytab",""],["pTemplate","header"],["pTemplate","body"],["translate","",1,"txt-grey","txt-md","no-records"],[1,"txt-grey","txt-md"],[1,"mat-mdc-header-row"],["class","mat-mdc-header-cell","pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",1,"mat-mdc-header-cell",3,"ngClass"],[1,"mat-mdc-row",3,"ngClass"],["class","mat-mdc-cell",4,"ngIf"],[1,"mat-mdc-cell",3,"click"],[1,"txt-link"],[1,"txt-link",3,"matTooltipShowDelay","matTooltip"],[1,"mat-mdc-cell"],[3,"matTooltipShowDelay","matTooltip"],["class","icon icon-trash imx-icon-middle imx-icon-clickable",3,"hidden","click",4,"ngIf"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"hidden","click"]],template:function(jt,jn){if(1&jt&&(c.YNc(0,co,1,0,"ng-template",null,0,c.W1O)(2,Yt,15,14,"ng-container",1),c.ALo(3,"async")),2&jt){const ro=c.MAs(1);c.xp6(2),c.Q6J("ngIf",c.lcZ(3,2,jn.results))("ngIfElse",ro)}},dependencies:[l.mk,l.sg,l.O5,Y.pW,me.gM,Et.Pi,ti.iA,nn.jx,ti.Q7,_i,dt.F,l.Ov,Et.X$,En.j],styles:["\n\n\n\n\n\n\n\n\n\n\n\n.no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}[_nghost-%COMP%]   .form__table[_ngcontent-%COMP%]{height:40vh;overflow:auto;position:relative;scrollbar-color:rgba(0,0,0,.25) rgba(0,0,0,.1)!important;scrollbar-width:thin!important}[_nghost-%COMP%]   .form__table[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px}[_nghost-%COMP%]   .form__table[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:#00000040}[_nghost-%COMP%]   .form__table[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#00000040;outline:0}[_nghost-%COMP%]     thead{position:sticky;top:0;z-index:1}[_nghost-%COMP%]   tr.mat-mdc-row[_ngcontent-%COMP%]{height:40px}.input-wrapper[_ngcontent-%COMP%]   .mat-mdc-input-element[_ngcontent-%COMP%]{font-weight:400}.search-field[_ngcontent-%COMP%]{margin-bottom:15px}.mat-mdc-row.selected[_ngcontent-%COMP%]{background-color:#e6e9ef}.txt-link[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%]     .p-datatable table{border-collapse:inherit;border-spacing:0!important}[_nghost-%COMP%]     .p-datatable table .mat-mdc-row:first-child th{border:none}"]})}return qe})();var yt=a(79545),Bt=a(54699),li=a(60768),si=a(66789),oo=a(91719),_o=a(27556);const Hn="Article";let mo=(()=>{class qe extends si.Z{constructor(xt,jt,jn,ro,Bo){super(xt,jt,jn,ro,Bo),this.dialog=xt,this.dataAccess=jt,this.entityStateDao=jn,this.userMessageService=ro,this.backgroundActionService=Bo,this.logger=(0,oo.jl5)("ArticleImxsearchIndexAction",_o.H.name)}doExecute(xt){return new Bt.y(jt=>{this.dialog.open(oo.$5_,{maxWidth:450,data:{title:"imxplatform.article.list.action.imxsearch-index.header",text:"imxplatform.article.list.action.imxsearch-index.text",iconClass:"icon-refresh",translated:!1,confirmButtonKey:"imxplatform.common.yes"}}).afterClosed().subscribe(ro=>{if(ro){const Bo=this.createActionCall(Hn,xt);this.executeInBackground({entityIds:[xt.id],ids:1,operation:this.dataAccess.callAction(Bo)}),jt.next(!0)}})})}executeBatch(xt){return new Bt.y(jt=>{this.dialog.open(oo.$5_,{maxWidth:450,data:{title:"imxplatform.article.list.action.imxsearch-index.header",text:"imxplatform.article.list.action.imxsearch-index.batch-text",iconClass:"icon-refresh",translated:!1,confirmButtonKey:"imxplatform.common.yes"}}).afterClosed().subscribe(ro=>{if(ro){const Bo=this.createActionCallForBatch(Hn,xt);this.executeInBackground({entityIds:xt,ids:xt.length,operation:this.dataAccess.callAction(Bo)}),jt.next(!0)}})})}getEntityType(){return"Article"}getSuccessKey(){return"imxplatform.article.list.action.imxsearch-index.successful"}getBatchWarningKey(){return"imxplatform.article.list.action.imxsearch-index.batch-warning"}getActionKey(){return"article-action-imxsearch-index"}getIcon(){return"icon-refresh"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(oo.nqd),c.LFG(oo.oKU),c.LFG(oo.Y5m),c.LFG(li.k_))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var vn=a(65486),Ji=a(45686),wn=a(93281),po=a(22819),Kn=a(59143),Vn=a(85422);let Wi=(()=>{class qe extends Vn.M{constructor(xt,jt,jn,ro,Bo){super(xt,jt,jn,ro,Bo),this.dialog=xt,this.dataAccess=jt,this.entityStateDao=jn,this.userMessageService=ro,this.backgroundActionService=Bo}doExecute(xt){}executeBatch(xt,jt){}isBlocking(){return!1}getActionKey(){return"statistic-action-generate-statistic-async"}getActionLabelKey(){return"imxplatform.statistic.action.statistic-action-generate-statistic-async"}getBatchWarningKey(){return""}getEntityType(){return"YouCannotFindMe:)"}getIcon(){return""}getSuccessKey(){return"imxplatform.statistic.action.success"}getFailedKey(){return"imxplatform.statistic.action.failure"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y),c.LFG(li.k_))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();var Ft=a(51419),Oi=a(77099),On=a(96747);let _n=(()=>{class qe{constructor(xt){this.data=xt}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.Y36(O.WI))};static#t=this.\u0275cmp=c.Xpm({type:qe,selectors:[["ng-component"]],decls:1,vars:2,consts:[[3,"entity","header"]],template:function(jt,jn){1&jt&&c._UZ(0,"imx-propose-appearance-base",0),2&jt&&c.Q6J("entity",jn.data.entity)("header",jn.data.header)},dependencies:[On.p]})}return qe})();var st=a(80929);let Dn=(()=>{class qe extends st.h{constructor(xt,jt,jn,ro){super(xt,jt,jn,ro),this.dialog=xt,this.dataAccess=jt,this.entityStateDao=jn,this.userMessageService=ro,this.logger=(0,Je.jl)("ArticleProposeAppearanceAction",_o.H.name)}doExecute(xt){return new Bt.y(jt=>{this.dialog.open(_n,{...ot.D.FORM_MEDIUM,data:{header:this.getActionLabelKey(),entity:xt}}).afterClosed().subscribe(ro=>{if(ro){let Bo={};Bo=ro,Bo.languageIds&&(Bo.languageIds=Bo.languageIds.map(Hr=>Hr.id).join());const jr=this.createActionCall(this.getEntityType(),xt,Bo);this.logger.info("ArticleProposeAppearanceAction: "+JSON.stringify(jr)),this.dataAccess.callAction(jr).subscribe(Hr=>{this.showSuccessMessageForSingleAction(Hr),jt.next(!0)})}})})}executeBatch(xt){return new Bt.y(jt=>{jt.next(!0)})}getEntityType(){return"Article"}getSuccessKey(){return"imxplatform.article.list.action.propose-appearance.successful"}getActionKey(){return"article-action-propose-appearances"}getActionLabelKey(){return"imxplatform.article.list.action.propose-appearance.header"}getBatchWarningKey(){return""}getIcon(){return"icon-earth"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var Wt=a(36145);let kn=(()=>{class qe extends Wt.G{constructor(xt,jt,jn,ro){super(xt,jt,jn,ro),this.dialog=xt,this.dataAccess=jt,this.entityStateDao=jn,this.userMessageService=ro}getActionKey(){return"article-action-confirm-pending-appearances"}getEntityType(){return"Article"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var Fi=a(16049);let ui=(()=>{class qe extends Fi.I{constructor(xt,jt,jn,ro){super(xt,jt,jn,ro),this.dialog=xt,this.dataAccess=jt,this.entityStateDao=jn,this.userMessageService=ro}getActionKey(){return"article-action-refuse-pending-appearances"}getEntityType(){return"Article"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var Fo=a(55257),At=a(79060),Jn=a(37014),Bn=a(28970);let Bi=(()=>{class qe extends Jn.Qw{isResponsible(xt,jt){return xt instanceof Bn.X}build(xt,jt,jn,ro,Bo,jr){xt.clear();const Hr=xt.createComponent(At.U);return Hr.instance.form=jt,Hr.instance.formHandler=jn,Hr.instance.control=ro,Hr.instance.field=Bo,Hr.instance.permissionPrefix=jr,Hr}static#e=this.\u0275fac=(()=>{let xt;return function(jn){return(xt||(xt=c.n5z(qe)))(jn||qe)}})();static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var $n=a(26406),Ui=a(86118),Xo=a(3775),bt=a(97260),an=a(61157),Wn=a(31532),_r=(a(7666),a(8832)),hr=a(13790),In=a(84850),Wr=a(21417),qi=a(86929),wi=a(28907),zo=a(42094),xi=a(17301);function ki(qe,Xi){1&qe&&c.GkF(0)}function wo(qe,Xi){1&qe&&c.GkF(0)}function Ei(qe,Xi){1&qe&&c.GkF(0)}function ho(qe,Xi){1&qe&&c.GkF(0)}function Cr(qe,Xi){1&qe&&c.GkF(0)}function vr(qe,Xi){1&qe&&c.GkF(0)}function qr(qe,Xi){1&qe&&c.GkF(0)}function Ra(qe,Xi){1&qe&&c.GkF(0)}function ss(qe,Xi){1&qe&&c.GkF(0)}const Hs=()=>({$implicit:"categories"});function Cs(qe,Xi){if(1&qe&&(c.ynx(0),c.YNc(1,ss,1,0,"ng-container",6),c.BQk()),2&qe){c.oxw();const xt=c.MAs(30);c.xp6(),c.Q6J("ngTemplateOutlet",xt)("ngTemplateOutletContext",c.DdM(2,Hs))}}function ms(qe,Xi){1&qe&&c.GkF(0)}const ja=()=>({$implicit:"mediaContent"});function el(qe,Xi){if(1&qe&&(c.ynx(0),c.YNc(1,ms,1,0,"ng-container",6),c.BQk()),2&qe){c.oxw();const xt=c.MAs(30);c.xp6(),c.Q6J("ngTemplateOutlet",xt)("ngTemplateOutletContext",c.DdM(2,ja))}}function Vs(qe,Xi){if(1&qe){const xt=c.EpF();c.TgZ(0,"div")(1,"button",9),c.NdJ("click",function(){c.CHM(xt);const jn=c.oxw();return c.KtG(jn.deleted.emit(!0))}),c._UZ(2,"i",14),c._uU(3,"imxplatform.media.edit.delete-batch "),c.qZA()()}if(2&qe){const xt=c.oxw();c.xp6(),c.Q6J("disabled",!xt.formHandler.hasMinimalDeletePermission())}}function ls(qe,Xi){if(1&qe){const xt=c.EpF();c.TgZ(0,"div",16)(1,"mat-checkbox",17),c.NdJ("change",function(jn){c.CHM(xt);const ro=c.oxw(2);return c.KtG(ro.batchActivationChanged(jn))}),c.qZA(),c._UZ(2,"imx-form-control",18),c.qZA()}if(2&qe){const xt=c.oxw().$implicit,jt=c.oxw();c.xp6(),c.Q6J("checked",!1)("value",xt),c.xp6(),c.Q6J("field",jt.formHandler.formConfiguration.findFormFieldById(xt))("control",jt.formHandler.formGroup.get(xt))("form",jt.formHandler.formGroup)("formHandler",jt.formHandler)("config",jt.formHandler.formConfiguration)}}function Fa(qe,Xi){if(1&qe&&c.YNc(0,ls,3,7,"div",15),2&qe){const xt=Xi.$implicit,jt=c.oxw();c.Q6J("hasFieldReadPermission",xt)("hasFieldReadPermissionFormHandler",jt.formHandler)}}const Ds=()=>({$implicit:"title"}),dl=()=>({$implicit:"description"}),ka=()=>({$implicit:"mediaLicense"}),hs=()=>({$implicit:"copyright"}),Ua=()=>({$implicit:"sourceUrl"}),Tn=()=>({$implicit:"author"}),Qi=()=>({$implicit:"authorUrl"}),To=()=>({$implicit:"searchKeywords"});let sr=(()=>{class qe extends qi.U{constructor(xt,jt,jn,ro){super(jt),this.entitiesMgr=xt,this.updateAction=jn,this.dataAccess=ro,this.freshlyUploaded=!1,this.continued=new c.vpe,this.closed=new c.vpe,this.allSaved=new c.vpe,this.deleted=new c.vpe,this.categoriesAvailable$=(0,tn.of)(!1),this.mediaContentAvailable$=(0,tn.of)(!1)}ngOnChanges(xt){super.ngOnChanges(xt),this.categoriesAvailable$=this.entitiesMgr.getAllEntitiesOfType("PooledMediumCategory").pipe((0,Oo.w)(jt=>(0,tn.of)(jt.totalNumberOfResults>0))),this.mediaContentAvailable$=this.entitiesMgr.getAllEntitiesOfType("MediaContent").pipe((0,Oo.w)(jt=>(0,tn.of)(jt.totalNumberOfResults>0)))}ngAfterViewInit(){setTimeout(()=>{this.formHandler.formConfiguration.fields.forEach(xt=>{this.setComponentState(xt.id,!1)})},10)}batchActivationChanged(xt){this.setComponentState(xt.source.value,xt.checked)}setComponentState(xt,jt){const jn=this.formHandler.formGroup.get(xt);jt?jn.enable({emitEvent:!1,onlySelf:!0}):jn.disable({emitEvent:!1,onlySelf:!0})}getMediaListLength(){return Array.from(this.selectedIds).length}applyAndContinue(){this.formHandler.formGroup.dirty?this.callBatchUpdateAction(this.continued):this.continued.emit(!0)}applyAndClose(){this.formHandler.formGroup.dirty?this.callBatchUpdateAction(this.closed):this.closed.emit(!0)}callBatchUpdateAction(xt){const jt={};Object.keys(this.formHandler.formGroup.controls).forEach(ro=>{if(this.formHandler.formGroup.get(ro).enabled){const Bo=this.formHandler.formGroup.get(ro).value;Bo&&(jt[ro]=Bo)}});const jn=this.createActionCall(jt);this.dataAccess.callAction(jn).subscribe(ro=>{this.updateAction.validateBatchResult(Array.from(this.selectedIds),ro),this.userMessageService.showInfo("imxplatform.common-entity.list.action.successful",{count:ro.length}),this.formHandler.formGroup.markAsPristine(),this.allSaved.emit(),xt.emit(!0)})}createActionCall(xt){return{actionKey:"pooledmedium-action-update",entityType:"StandardPooledMedium",entityIds:Array.from(this.selectedIds),actionParams:xt||{}}}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.Y36(Je.qB),c.Y36(Kn.Y),c.Y36(In.V),c.Y36(po.nq))};static#t=this.\u0275cmp=c.Xpm({type:qe,selectors:[["imx-media-batch-edit-form"]],inputs:{formHandler:"formHandler",selectedIds:"selectedIds",assignmentData:"assignmentData",freshlyUploaded:"freshlyUploaded"},outputs:{continued:"continued",closed:"closed",allSaved:"allSaved",deleted:"deleted"},features:[c.qOj,c.TTD],decls:31,vars:35,consts:[["id","media-batch-edit",3,"formGroup"],[1,"media-edit__meta-data-group"],[1,"media-edit__medium-id"],[1,"txt-md"],[3,"formHandler"],[1,"media-edit__field-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],[1,"wizard-button-bar"],["translate","",1,"imx-button","prio2","with-icon",3,"disabled","click"],[1,"icon","icon-checkmark"],["translate","",1,"imx-button","prio2","with-icon",3,"click"],[1,"icon","icon-arrow-right"],["imxControl",""],[1,"icon","icon-trash"],["class","media-edit__checked-row",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[1,"media-edit__checked-row"],[1,"small","checkbox",3,"checked","value","change"],[3,"field","control","form","formHandler","config"]],template:function(jt,jn){if(1&jt&&(c.TgZ(0,"div")(1,"form",0)(2,"div",1)(3,"div",2)(4,"span",3),c._uU(5),c.qZA()(),c._UZ(6,"imx-language-switch-button",4),c.qZA(),c.TgZ(7,"div",5),c.YNc(8,ki,1,0,"ng-container",6)(9,wo,1,0,"ng-container",6),c.qZA(),c.TgZ(10,"div",5),c.YNc(11,Ei,1,0,"ng-container",6)(12,ho,1,0,"ng-container",6)(13,Cr,1,0,"ng-container",6)(14,vr,1,0,"ng-container",6)(15,qr,1,0,"ng-container",6)(16,Ra,1,0,"ng-container",6)(17,Cs,2,3,"ng-container",7),c.ALo(18,"async"),c.YNc(19,el,2,3,"ng-container",7),c.ALo(20,"async"),c.qZA()(),c.TgZ(21,"div",8)(22,"button",9),c.NdJ("click",function(){return jn.applyAndClose()}),c._UZ(23,"i",10),c._uU(24,"imxplatform.media.assignment.save-and-close "),c.qZA(),c.TgZ(25,"button",11),c.NdJ("click",function(){return jn.applyAndContinue()}),c._UZ(26,"i",12),c._uU(27,"imxplatform.media.edit.continue "),c.qZA()(),c.YNc(28,Vs,4,1,"div",7),c.qZA(),c.YNc(29,Fa,1,2,"ng-template",null,13,c.W1O)),2&jt){const ro=c.MAs(30);c.xp6(),c.Q6J("formGroup",jn.formHandler.formGroup),c.xp6(4),c.hij("",jn.getMediaListLength()," Medien gew\xe4hlt"),c.xp6(),c.Q6J("formHandler",jn.formHandler),c.xp6(2),c.Q6J("ngTemplateOutlet",ro)("ngTemplateOutletContext",c.DdM(27,Ds)),c.xp6(),c.Q6J("ngTemplateOutlet",ro)("ngTemplateOutletContext",c.DdM(28,dl)),c.xp6(2),c.Q6J("ngTemplateOutlet",ro)("ngTemplateOutletContext",c.DdM(29,ka)),c.xp6(),c.Q6J("ngTemplateOutlet",ro)("ngTemplateOutletContext",c.DdM(30,hs)),c.xp6(),c.Q6J("ngTemplateOutlet",ro)("ngTemplateOutletContext",c.DdM(31,Ua)),c.xp6(),c.Q6J("ngTemplateOutlet",ro)("ngTemplateOutletContext",c.DdM(32,Tn)),c.xp6(),c.Q6J("ngTemplateOutlet",ro)("ngTemplateOutletContext",c.DdM(33,Qi)),c.xp6(),c.Q6J("ngTemplateOutlet",ro)("ngTemplateOutletContext",c.DdM(34,To)),c.xp6(),c.Q6J("ngIf",c.lcZ(18,23,jn.categoriesAvailable$)),c.xp6(2),c.Q6J("ngIf",c.lcZ(20,25,jn.mediaContentAvailable$)),c.xp6(3),c.Q6J("disabled",jn.formHandler.formGroup.invalid),c.xp6(6),c.Q6J("ngIf",jn.freshlyUploaded)}},dependencies:[l.O5,l.tP,o._Y,o.JL,b.oG,o.sg,Et.Pi,wi.A,zo.H,xi.j,l.Ov],styles:[".media-edit__meta-data-group[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin:15px 0}.media-edit__meta-data-group[_ngcontent-%COMP%]   .media-edit__medium-id[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{display:block}.media-edit__field-group[_ngcontent-%COMP%]{margin-top:5px;padding:10px;border:1px solid #e6e9ef;background-color:#eefafa}.media-edit__field-group[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.media-edit__field-group[_ngcontent-%COMP%]   .media-edit__checked-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.media-edit__field-group[_ngcontent-%COMP%]   .media-edit__checked-row[_ngcontent-%COMP%]   .checkbox[_ngcontent-%COMP%]{flex:0 0 auto;padding-right:10px;padding-top:24px}.media-edit__field-group[_ngcontent-%COMP%]   .media-edit__checked-row[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%]{flex:auto}.wizard-button-bar[_ngcontent-%COMP%]{padding:15px 0 0;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between}.wizard-button-bar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-bottom:15px}.wizard-button-bar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:not(:last-child){margin-right:10px}"]})}return qe})();var oi=a(72599),Vi=a(72079),Hi=(a(1009),a(67638)),Do=a(28635),$o=a(38996),yr=a(1061);function Vr(qe,Xi){1&qe&&c._UZ(0,"span",17)}function da(qe,Xi){1&qe&&c._UZ(0,"span",18)}function Za(qe,Xi){1&qe&&c._UZ(0,"span",19)}function ma(qe,Xi){1&qe&&(c.TgZ(0,"span",20),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&qe&&(c.xp6(),c.hij(" (",c.lcZ(2,1,"imxplatform.media.assignment.new"),")"))}function Wa(qe,Xi){if(1&qe){const xt=c.EpF();c.TgZ(0,"span",21),c.NdJ("click",function(){c.CHM(xt);const jn=c.oxw().index,ro=c.oxw();return c.KtG(ro.removeAssignment(jn))}),c.qZA()}}function Yi(qe,Xi){if(1&qe&&(c.ynx(0),c.TgZ(1,"form",22),c._UZ(2,"imx-edit-media-assignment",23),c.qZA(),c.BQk()),2&qe){const xt=c.oxw(2);c.xp6(),c.Q6J("formGroup",xt.assignmentsFormGroup),c.xp6(),c.Q6J("formHandler",xt.holderFormHandler)("mediaAssignmentFormRow",xt.currentMediaAssignment)("media",xt.currentMediaAssignment.get("rowEntity").value)("mediaField",xt.mediaField)}}function jo(qe,Xi){if(1&qe){const xt=c.EpF();c.ynx(0),c.TgZ(1,"div",10)(2,"span",11),c.NdJ("click",function(){const ro=c.CHM(xt).index,Bo=c.oxw();return c.KtG(Bo.toggleAssignment(ro))}),c.YNc(3,Vr,1,0,"span",12)(4,da,1,0,"span",13),c.TgZ(5,"span"),c._uU(6),c.ALo(7,"translate"),c.YNc(8,Za,1,0,"span",14)(9,ma,3,3,"span",15),c.qZA()(),c.YNc(10,Wa,1,0,"span",16),c.qZA(),c.YNc(11,Yi,3,5,"ng-container",2),c.BQk()}if(2&qe){const xt=Xi.$implicit,jt=Xi.index,jn=c.oxw();c.xp6(3),c.Q6J("ngIf",jn.editedIndex===jt),c.xp6(),c.Q6J("ngIf",jn.editedIndex!==jt),c.xp6(2),c.AsE("",jt+1,". ",c.lcZ(7,8,"imxplatform.media.assignment.assignment")," "),c.xp6(2),c.Q6J("ngIf",xt.dirty),c.xp6(),c.Q6J("ngIf",!xt.get("rowId").value),c.xp6(),c.Q6J("ngIf",jn.hasAssignmentEditPermission&&jn.hasAssignPermissionForCurrentMedium&&jt>0),c.xp6(),c.Q6J("ngIf",jt===jn.editedIndex)}}function Cn(qe,Xi){1&qe&&(c.ynx(0),c.TgZ(1,"span",24),c._uU(2,"imxplatform.media.assignment.assignment-no-permission"),c.qZA(),c._UZ(3,"br"),c.BQk())}function uo(qe,Xi){1&qe&&(c.ynx(0),c.TgZ(1,"span",24),c._uU(2,"imxplatform.media.assignment.assignment-no-changes"),c.qZA(),c._UZ(3,"br"),c.BQk())}function fo(qe,Xi){if(1&qe){const xt=c.EpF();c.TgZ(0,"div",10)(1,"span",11),c.NdJ("click",function(){c.CHM(xt);const jn=c.oxw();return c.KtG(jn.addNewAssignment())}),c._UZ(2,"span",25),c.TgZ(3,"span",26),c._uU(4,"imxplatform.media.assignment.assignment-add"),c.qZA()()()}}let Jo=(()=>{class qe{constructor(xt,jt,jn){this.userMessageService=xt,this.platformDataAccessService=jt,this.dataObjectMediumAssignService=jn,this.logger=(0,Je.jl)("MediaAssignmentComponent",_o.H.name),this.freshlyUploaded=!1,this.hasAssignmentEditPermission=!0,this.saved=new c.vpe,this.back=new c.vpe,this.closed=new c.vpe,this.assignmentsFormArray=new o.vC([]),this.hasAssignPermissionForCurrentMedium=!0,this.destroy$=new Vi.xQ}ngOnChanges(xt){xt.pooledMedium&&!xt.pooledMedium.isFirstChange()&&this.mediumFormHandler.hasAssignPermission(this.pooledMedium).subscribe(jt=>{this.hasAssignPermissionForCurrentMedium=jt,this.initializeFormArray(),this.editedIndex=0,this.currentMediaAssignment=this.assignmentsFormArray.at(this.editedIndex)})}ngOnInit(){this.mediumFormHandler.hasAssignPermission(this.pooledMedium).subscribe(xt=>{this.hasAssignPermissionForCurrentMedium=xt,this.initializeFormArray(),this.editedIndex=this.targetAssignmentId?this.assignmentsFormArray.controls.findIndex(jt=>jt.get(Hi.hs).value===this.targetAssignmentId):0,this.currentMediaAssignment=this.assignmentsFormArray.at(this.editedIndex)}),this.holderFormHandler.hasEditPermission("media").subscribe(xt=>this.hasAssignmentEditPermission=xt)}initializeFormArray(){let xt;if(this.assignmentsFormGroup.registerControl("shadowmedia",this.assignmentsFormArray),this.assignmentsFormArray.clear(),this.assignmentsFormGroup.markAsPristine(),xt=this.mediaFormGroup.controls.filter(this.batchMediaIds&&this.batchMediaIds.size>0&&this.freshlyUploaded?jt=>jt.get("pooledMediumId").value===this.getBatchMediaIdsSorted()[0]:jt=>jt.get("pooledMediumId").value===this.pooledMedium.id),xt.forEach(jt=>{const jn=jt.get($o.Qy).value,ro=jt.get(Hi.hs).value;this.createAndAddAssignmentFormRow(jn,ro)}),0===xt.length&&this.hasAssignPermissionForCurrentMedium&&this.hasAssignmentEditPermission){const jt=this.dataObjectMediumInitializerService.initializeDataObject(this.pooledMedium,this.holderFormHandler,void 0);this.dataObjectMediumAssignService.initializeImageType(jt,this.pooledMedium,this.imageTypes),this.createAndAddAssignmentFormRow(jt,void 0).markAsDirty({onlySelf:!0})}}createAndAddAssignmentFormRow(xt,jt){const jn=new o.nJ({});return this.holderFormHandler.addNewFormControlsForRow(this.mediaField,jn),this.hasAssignmentEditPermission||jn.disable(),this.dataObjectMediumAssignService.patchValuesIntoMediaRow(jn,xt,this.holderFormHandler,this.mediaField),jt&&jn.get(Hi.hs).setValue(jt),jn.markAsPristine(),this.assignmentsFormArray.push(jn),this.holderFormHandler.onMediaRowInit(jn,this.destroy$),jn}toggleAssignment(xt){xt===this.editedIndex?(this.currentMediaAssignment=void 0,this.editedIndex=-1):(this.currentMediaAssignment=this.assignmentsFormArray.at(xt),this.editedIndex=xt)}addNewAssignment(){const xt=this.dataObjectMediumInitializerService.initializeDataObject(this.pooledMedium,this.holderFormHandler,void 0);this.dataObjectMediumAssignService.initializeImageType(xt,this.pooledMedium,this.imageTypes);const jt=this.createAndAddAssignmentFormRow(xt,void 0);jt.markAsDirty(),this.currentMediaAssignment=jt,this.editedIndex=this.assignmentsFormArray.length-1}removeAssignment(xt){this.assignmentsFormArray.removeAt(xt),this.assignmentsFormGroup.markAsDirty()}saveAssignments(xt){if(this.assignmentsFormGroup.dirty||this.assignmentsFormArray.controls.some(jt=>jt.dirty))if(this.mediumFormHandler.validateAllFormFields(this.assignmentsFormGroup,"root"))if(this.batchMediaIds.size>1)this.saveBatchAssignments(xt);else{const jn=[];let ro=0;this.mediaFormGroup.controls.forEach((Bo,jr)=>{if(Bo.get($o.Qy).value&&this.pooledMedium.id===Bo.get($o.Qy).value.pooledMedium.id){const Hr=Bo.get(Hi.hs).value,al=this.assignmentsFormArray.controls.find(Jd=>Jd.get(Hi.hs).value===Hr);al?(ro++,this.transferMediaRowValues(al,Bo,{id:void 0,pooledMedium:this.pooledMedium})):jn.push(jr)}}),jn.forEach(Bo=>this.mediaFormGroup.removeAt(Bo)),this.assignmentsFormArray.controls.forEach(Bo=>{if(!Bo.get(Hi.hs).value&&Bo.dirty){ro++;const Hr={id:void 0,pooledMedium:this.pooledMedium},al=new o.nJ({});this.holderFormHandler.addNewFormControlsForRow(this.mediaField,al),this.transferMediaRowValues(Bo,al,Hr),al.get(Hi.hs).setValue((0,Hi.eI)(this.pooledMedium.id,ro)),this.mediaFormGroup.push(al)}}),this.assignmentsFormGroup.markAsPristine(),this.mediaFormGroup.markAsDirty(),this.saved.emit(),xt&&this.closed.emit(),this.userMessageService.showInfo("imxplatform.media.assignment.save-hint",void 0,1e4)}else this.userMessageService.showError("imxplatform.common-entity.edit.invalid-form");else xt&&this.closed.emit()}saveBatchAssignments(xt){this.getBatchMediaIdsSorted().forEach(jt=>{this.platformDataAccessService.getPooledMediaById(jt).subscribe(jn=>{this.assignmentsFormArray.controls.forEach((ro,Bo)=>{const jr=(0,Hi.eI)(jt,Bo+1),Hr=this.mediaFormGroup.controls.find(al=>al.get(Hi.hs).value===jr);if(Hr)this.transferMediaRowValues(ro,Hr,{id:void 0,pooledMedium:jn});else{const al=this.dataObjectMediumInitializerService.initializeDataObject(jn,this.holderFormHandler,void 0),Jd=new o.nJ({});this.holderFormHandler.addNewFormControlsForRow(this.mediaField,Jd),this.transferMediaRowValues(ro,Jd,al),Jd.get(Hi.hs).setValue((0,Hi.eI)(jt,Bo+1)),this.mediaFormGroup.push(Jd)}})})}),this.assignmentsFormGroup.markAsPristine(),this.mediaFormGroup.markAsDirty(),this.saved.emit(),xt&&this.closed.emit(),this.userMessageService.showInfo("imxplatform.media.assignment.save-hint",void 0,1e4)}transferMediaRowValues(xt,jt,jn){this.mediaField.children.filter(ro=>"pooledMediumId"!==ro.id&&"pooledMediumEntityType"!==ro.id).forEach(ro=>{this.holderFormHandler.applyFieldValue(xt,ro,jn)}),this.dataObjectMediumAssignService.patchValuesIntoMediaRow(jt,jn,this.holderFormHandler,this.mediaField),jt.markAsDirty()}getBatchMediaIdsSorted(){return Array.from(this.batchMediaIds).sort((xt,jt)=>xt-jt)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.assignmentsFormGroup.removeControl("shadowmedia"),this.assignmentsFormGroup.markAsPristine()}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.Y36(Kn.Y),c.Y36(po.nq),c.Y36(Hi.oO))};static#t=this.\u0275cmp=c.Xpm({type:qe,selectors:[["imx-media-assignment"]],inputs:{holderFormHandler:"holderFormHandler",mediumFormHandler:"mediumFormHandler",pooledMedium:"pooledMedium",batchMediaIds:"batchMediaIds",freshlyUploaded:"freshlyUploaded",mediaFormGroup:"mediaFormGroup",assignmentsFormGroup:"assignmentsFormGroup",hasAssignmentEditPermission:"hasAssignmentEditPermission",mediaField:"mediaField",dataObjectMediumInitializerService:"dataObjectMediumInitializerService",imageTypes:"imageTypes",targetAssignmentId:"targetAssignmentId"},outputs:{saved:"saved",back:"back",closed:"closed"},features:[c.TTD],decls:16,vars:6,consts:[[1,"media-assignment"],[4,"ngFor","ngForOf"],[4,"ngIf"],["class","header",4,"ngIf"],[1,"button-bar"],["translate","",1,"imx-button","prio2","with-icon",3,"click"],[1,"icon","icon-arrow-left"],["translate","",1,"imx-button","prio2","with-icon",3,"disabled","click"],[1,"icon","icon-checkmark"],[1,"button-bar-lower"],[1,"header"],[1,"assignment-header","txt-md",3,"click"],["class","icon icon-chevron-up",4,"ngIf"],["class","icon icon-chevron-down",4,"ngIf"],["class","icon icon-asterisk",4,"ngIf"],["class","new_row",4,"ngIf"],["class","icon icon-trash",3,"click",4,"ngIf"],[1,"icon","icon-chevron-up"],[1,"icon","icon-chevron-down"],[1,"icon","icon-asterisk"],[1,"new_row"],[1,"icon","icon-trash",3,"click"],["id","media-assignment",3,"formGroup"],[3,"formHandler","mediaAssignmentFormRow","media","mediaField"],["translate","",1,"txt-md"],[1,"icon","icon-plus"],["translate",""]],template:function(jt,jn){1&jt&&(c.TgZ(0,"div",0),c.YNc(1,jo,12,10,"ng-container",1)(2,Cn,4,0,"ng-container",2)(3,uo,4,0,"ng-container",2)(4,fo,5,0,"div",3),c.TgZ(5,"div",4)(6,"button",5),c.NdJ("click",function(){return jn.back.emit()}),c._UZ(7,"i",6),c._uU(8,"imxplatform.media.assignment.attributes "),c.qZA(),c.TgZ(9,"button",7),c.NdJ("click",function(){return jn.saveAssignments(!1)}),c._UZ(10,"i",8),c._uU(11,"imxplatform.media.assignment.save "),c.qZA()(),c.TgZ(12,"div",9)(13,"button",7),c.NdJ("click",function(){return jn.saveAssignments(!0)}),c._UZ(14,"i",8),c._uU(15,"imxplatform.media.assignment.save-and-close "),c.qZA()()()),2&jt&&(c.xp6(),c.Q6J("ngForOf",jn.assignmentsFormArray.controls),c.xp6(),c.Q6J("ngIf",0===jn.assignmentsFormArray.controls.length&&!jn.hasAssignPermissionForCurrentMedium),c.xp6(),c.Q6J("ngIf",0===jn.assignmentsFormArray.controls.length&&!jn.hasAssignmentEditPermission),c.xp6(),c.Q6J("ngIf",jn.hasAssignPermissionForCurrentMedium&&jn.hasAssignmentEditPermission),c.xp6(5),c.Q6J("disabled",!jn.hasAssignPermissionForCurrentMedium||!jn.hasAssignmentEditPermission),c.xp6(4),c.Q6J("disabled",!jn.hasAssignPermissionForCurrentMedium||!jn.hasAssignmentEditPermission))},dependencies:[l.sg,l.O5,o._Y,o.JL,o.sg,Et.Pi,yr.B,Et.X$],styles:[".media-assignment[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{margin-bottom:10px;display:flex;justify-content:space-between}.media-assignment[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .assignment-header[_ngcontent-%COMP%]{cursor:pointer}.media-assignment[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .assignment-header[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]:not(.icon-asterisk){margin:5px 5px 0}.media-assignment[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .assignment-header[_ngcontent-%COMP%]   .new_row[_ngcontent-%COMP%]{font-weight:700}.media-assignment[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .icon-trash[_ngcontent-%COMP%]{cursor:pointer;margin-right:10px}.media-assignment[_ngcontent-%COMP%]   .button-bar[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.media-assignment[_ngcontent-%COMP%]   .button-bar-lower[_ngcontent-%COMP%]{margin-top:10px;display:flex;flex-direction:row;align-items:center;justify-content:flex-end}"]})}return qe})();var kr=a(66182),Qr=a(89657),Aa=a(32458),cs=a(86729),ys=a(70623),zr=a(11236),Pi=a(49880),xo=a(63810),Ir=(a(60757),a(49518)),Da=a(44226);let ia=(()=>{class qe extends Jn.Qw{isResponsible(xt,jt){return xt instanceof Da.l}build(xt,jt,jn,ro,Bo,jr){xt.clear();const Hr=xt.createComponent(Ir.W);return Hr.instance.form=jt,Hr.instance.formHandler=jn,Hr.instance.control=ro,Hr.instance.field=Bo,Hr.instance.permissionPrefix=jr,Hr}static#e=this.\u0275fac=(()=>{let xt;return function(jn){return(xt||(xt=c.n5z(qe)))(jn||qe)}})();static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var as=a(69244),Is=a(93088),di=(a(65678),a(89757),a(19512),a(25478),a(15766),a(95779),a(44612),a(90576)),Zi=(a(99248),a(80617)),Eo=a(1505),oa=a(13098),Nr=a(15033),Rs=a(63773);let Zr=(()=>{class qe extends st.h{constructor(xt,jt,jn,ro){super(xt,jt,jn,ro),this.dialog=xt,this.dataAccess=jt,this.entityStateDao=jn,this.userMessageService=ro,this.logger=(0,Je.jl)("AddressPoiConvertAction",_o.H.name)}doExecute(xt){return new Bt.y(jt=>{this.dialog.open(Rs.t,{maxWidth:550,data:{objectId:xt.id,title:xt.title,i18nHeader:"imxplatform.addresspoi.list.action.convert.header",i18nText:"imxplatform.addresspoi.list.action.convert.confirm",batch:!1}}).afterClosed().subscribe(ro=>{if(ro){const Bo=super.createActionCall(this.getEntityType(),xt);this.logger.info("Convert Addresspoi action: "+JSON.stringify(Bo)),this.dataAccess.callAction(Bo).subscribe(jr=>{this.showSuccessMessageForSingleAction(jr),jt.next(!0)})}})})}executeBatch(xt){return new Bt.y(jt=>{this.dialog.open(Rs.t,{maxWidth:550,data:{count:xt.length,i18nHeader:"imxplatform.addresspoi.list.action.convert.header-batch",i18nText:"imxplatform.addresspoi.list.action.convert.confirm-batch",batch:!0}}).afterClosed().subscribe(ro=>{if(ro){const Bo=super.createActionCallForBatch(this.getEntityType(),xt);this.logger.info("Convert Addresspoi action: "+JSON.stringify(Bo)),this.dataAccess.callAction(Bo).subscribe(jr=>{this.validateBatchResult(xt,jr),this.showSuccessMessage(jr),jt.next(!0)})}})})}getSuccessKey(){return"imxplatform.addresspoi.list.action.convert.successful"}getBatchWarningKey(){return"imxplatform.addresspoi.list.action.convert.batch-warning"}getActionLabelKey(){return"imxplatform.gui.list.addresspoi.action.convert"}getEntityType(){return"AddressPoi"}getActionKey(){return"addresspoi-action-convert"}getIcon(){return"icon-stem"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var Na=a(77715);let ol=(()=>{class qe extends Na.O{constructor(xt,jt,jn,ro,Bo){super(xt,jt,jn,ro,Bo)}getConfirmBatchTitleKey(){return"imxplatform.addresspoi.list.action.delete.confirm-batch"}getConfirmTitleKey(){return"imxplatform.addresspoi.list.action.delete.confirm"}getEntityType(){return"AddressPoi"}getActionKey(){return"addresspoi-action-delete"}getIcon(){return"icon-trash"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y),c.LFG(li.k_))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var Cl=a(90874);let Ql=(()=>{class qe extends Cl.B{constructor(xt,jt,jn,ro){super(xt,jt,jn,ro),this.dialog=xt,this.dataAccess=jt,this.entityStateDao=jn,this.userMessageService=ro}getEntityType(){return"AddressPoi"}getActionKey(){return"addresspoi-dm-action-createClone"}getIcon(){return"icon-earth"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})(),Ho=(()=>{class qe extends Cl.B{constructor(xt,jt,jn,ro){super(xt,jt,jn,ro),this.dialog=xt,this.dataAccess=jt,this.entityStateDao=jn,this.userMessageService=ro}getEntityType(){return"AddressPoi"}getActionKey(){return"addresspoi-dm-action-create"}getIcon(){return"icon-earth"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})(),mc=(()=>{class qe extends Cl.B{constructor(xt,jt,jn,ro){super(xt,jt,jn,ro),this.dialog=xt,this.dataAccess=jt,this.entityStateDao=jn,this.userMessageService=ro}getEntityType(){return"AddressPoi"}getActionKey(){return"addresspoi-dm-action-deactivate"}getIcon(){return"icon-earth"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})(),os=(()=>{class qe extends Cl.B{constructor(xt,jt,jn,ro){super(xt,jt,jn,ro),this.dialog=xt,this.dataAccess=jt,this.entityStateDao=jn,this.userMessageService=ro}getActionKey(){return"addresspoi-dm-action-delete"}getEntityType(){return"AddressPoi"}getIcon(){return"icon-earth"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})(),ps=(()=>{class qe extends Cl.B{constructor(xt,jt,jn,ro,Bo){super(xt,jt,jn,ro),this.dialog=xt,this.dataAccess=jt,this.entityStateDao=jn,this.userMessageService=ro,this.router=Bo}getEntityType(){return"AddressPoi"}shouldUserMessageBeShown(){return!1}getActionKey(){return"addresspoi-dm-action-edit"}getIcon(){return"icon-earth"}executeAfterActionComplete(xt){this.contextNavigationService.navigateToCoreEntityContextual(["addresspois","edit",xt.id])}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y),c.LFG(We.F0))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})(),Ps=(()=>{class qe extends Cl.B{constructor(xt,jt,jn,ro){super(xt,jt,ro,jn),this.dialog=xt,this.dataAccess=jt,this.userMessageService=jn,this.entityStateDao=ro}getEntityType(){return"AddressPoi"}getActionKey(){return"addresspoi-dm-action-forDelete"}getIcon(){return"icon-earth"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(Kn.Y),c.LFG(wn.o))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var Ba=a(94541);let Ka=(()=>{class qe extends Cl.B{constructor(xt,jt,jn,ro){super(xt,jt,jn,ro),this.dialog=xt,this.dataAccess=jt,this.entityStateDao=jn,this.userMessageService=ro}doExecute(xt){return new Bt.y(jt=>{this.dialog.open(Ba.J,{maxWidth:500,data:{selectedClientId:-1,headerKey:"imxplatform.gui.list.addresspoi-dm.action.inspect-header",submitKey:"imxplatform.gui.list.addresspoi-dm.action.inspect-submit",textKey:"imxplatform.gui.list.addresspoi-dm.action.inspect-text",selectKey:"imxplatform.gui.addresspoi.addresspoi-dm.action.inspect-client",entityClientId:xt.client.id}}).afterClosed().subscribe(ro=>{if(ro&&ro.selectedClientId>-1)return super.doExecute(xt,{selectedClientId:ro.selectedClientId}).subscribe(jr=>jt.next(!0))})})}getActionLabelKey(){return"imxplatform.gui.list.addresspoi-dm.action.inspect"}getActionKey(){return"addresspoi-dm-action-inspect"}getEntityType(){return"AddressPoi"}getIcon(){return"icon-earth"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})(),vc=(()=>{class qe extends Cl.B{constructor(xt,jt,jn,ro){super(xt,jt,jn,ro),this.dialog=xt,this.dataAccess=jt,this.entityStateDao=jn,this.userMessageService=ro}getEntityType(){return"AddressPoi"}getActionKey(){return"addresspoi-dm-action-publish"}getIcon(){return"icon-earth"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})(),$s=(()=>{class qe extends Cl.B{constructor(xt,jt,jn,ro){super(xt,jt,jn,ro),this.dialog=xt,this.dataAccess=jt,this.entityStateDao=jn,this.userMessageService=ro}getEntityType(){return"AddressPoi"}getActionKey(){return"addresspoi-dm-action-refuse"}getIcon(){return"icon-earth"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var js=a(44382);let bc=(()=>{class qe extends si.Z{constructor(xt,jt,jn,ro,Bo){super(xt,jt,jn,ro,Bo),this.dialog=xt,this.dataAccess=jt,this.entityStateDao=jn,this.userMessageService=ro,this.backgroundActionService=Bo,this.logger=(0,Je.jl)("AddressPoiImportAction",_o.H.name)}doExecute(xt){return new Bt.y(jt=>{this.dialog.open(js.n,{maxWidth:500,data:{i18n:"imxplatform.addresspoi.list.action.import.confirm",sourcesI18n:"imxplatform.addresspoi.list.action.import.multiple-sources",title:xt.title,ids:Array.of(xt.id),queryForAssignments:!0}}).afterClosed().subscribe(ro=>{if(ro){const Bo={importSources:ro},jr=this.createActionCall(this.getEntityType(),xt,Bo);this.logger.info("Trigger import for addresspoi: "+JSON.stringify(jr)),this.executeInBackground({entityIds:[xt.id],ids:1,operation:this.dataAccess.callAction(jr)}),jt.next(!0)}})})}executeBatch(xt){return new Bt.y(jt=>{this.dialog.open(js.n,{maxWidth:500,data:{batch:!0,i18n:"imxplatform.addresspoi.list.action.import.confirm-batch",sourcesI18n:"imxplatform.addresspoi.list.action.import.multiple-sources",count:xt.length,ids:xt,queryForAssignments:!0}}).afterClosed().subscribe(ro=>{if(ro){const Bo={importSources:ro},jr=this.createActionCallForBatch(this.getEntityType(),xt,Bo);this.logger.info("Trigger batch import for addresspoi: "+JSON.stringify(jr)),this.logger.info("Create action call to import for addressbases: "+JSON.stringify(jr)),this.executeInBackground({entityIds:xt,ids:xt.length,operation:this.dataAccess.callAction(jr)}),jt.next(!0)}})})}getSuccessKey(){return"imxplatform.addresspoi.list.action.import.successful"}getEntityType(){return"AddressPoi"}getActionKey(){return"addresspoi-action-import"}getIcon(){return"icon-inbox"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y),c.LFG(li.k_))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var ql=a(12486);let Gs=(()=>{class qe extends st.h{constructor(xt,jt,jn,ro){super(xt,jt,jn,ro),this.dialog=xt,this.dataAccess=jt,this.entityStateDao=jn,this.userMessageService=ro,this.logger=(0,Je.jl)("AddressPoiMergeDuplicatesAction",_o.H.name)}getOrder(){return this.ACTION_ORDER_MERGE}doExecute(xt){throw new Error("Not implemented")}executeBatch(xt){return new Bt.y(jt=>{const jn=2!==xt.length,ro=[];xt.forEach(jr=>this.dataAccess.getAddressPoiById(jr).subscribe(Hr=>{ro.push(Hr)})),this.dialog.open(ql.Z,{maxWidth:850,data:{invalidSelected:jn,duplicates:ro}}).afterClosed().subscribe(jr=>{if(void 0!==jr&&"boolean"!=typeof jr&&"number"==typeof jr.selectedMasterId){const Hr=this.createActionCallForBatch(this.getEntityType(),xt,{selectedMasterId:jr.selectedMasterId});this.logger.info("Merge duplicates for addresspoi: "+JSON.stringify(Hr)),this.dataAccess.callAction(Hr).subscribe(al=>{this.validateBatchResult(xt,al),this.showSuccessMessage(al),jt.next(!0)})}})})}getBatchWarningKey(){return"imxplatform.addresspoi.list.action.merge.batch-warning"}getSuccessKey(){return"imxplatform.addresspoi.list.action.merge.successful"}getEntityType(){return"AddressPoi"}getActionKey(){return"addresspoi-action-merge-duplicates"}getIcon(){return"icon-undo_duplicate"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var Dl=a(34590);let Yr=(()=>{class qe extends Dl.z{constructor(xt,jt,jn,ro,Bo){super(xt,jt,jn,ro,Bo),this.dialog=xt,this.dataAccess=jt,this.imxEntitiesMgrService=jn,this.entityStateDao=ro,this.userMessageService=Bo}doExecute(xt){return super.doExecute(xt)}executeBatch(xt,jt){return super.executeBatch(xt,jt)}getActionKey(){return"addresspoi-action-set_state"}getEntityType(){return"AddressPoi"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(Je.qB),c.LFG(wn.o),c.LFG(Kn.Y))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var _a=a(41281);let ts=(()=>{class qe extends _a.${constructor(xt,jt,jn,ro,Bo){super(xt,jt,jn,ro,Bo),this.dialog=xt,this.dataAccess=jt,this.entityStateDao=jn,this.userMessageService=ro,this.backgroundActionService=Bo}getConfirmBatchTitleKey(){return"imxplatform.duplicate.list.action.extract-duplicate.batch-header"}getConfirmTitleKey(){return"imxplatform.duplicate.list.action.extract-duplicate.header"}getConfirmTextKey(){return"imxplatform.duplicate.list.action.extract-duplicate.text"}getActionKey(){return"addresspoi-duplicates-action-addresspoi_extract_selected"}getIcon(){return"icon-extract_duplicates"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y),c.LFG(li.k_))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})(),rl=(()=>{class qe extends _a.${constructor(xt,jt,jn,ro,Bo){super(xt,jt,jn,ro,Bo),this.dialog=xt,this.dataAccess=jt,this.entityStateDao=jn,this.userMessageService=ro,this.backgroundActionService=Bo}getConfirmBatchTitleKey(){return"imxplatform.duplicate.list.action.no-duplicate.successful"}getConfirmTitleKey(){return"imxplatform.duplicate.list.action.no-duplicate.header"}getConfirmTextKey(){return"imxplatform.duplicate.list.action.no-duplicate.text"}getActionKey(){return"addresspoi-duplicates-action-addresspoi_no_duplicate"}getIcon(){return"icon-checklist_duplicates"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y),c.LFG(li.k_))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})(),ya=(()=>{class qe extends _a.${constructor(xt,jt,jn,ro,Bo){super(xt,jt,jn,ro,Bo),this.dialog=xt,this.dataAccess=jt,this.entityStateDao=jn,this.userMessageService=ro,this.backgroundActionService=Bo}getConfirmBatchTitleKey(){return"imxplatform.duplicate.list.action.no-duplicate.successful"}getConfirmTitleKey(){return"imxplatform.duplicate.list.action.no-duplicate.batch-header"}getConfirmTextKey(){return"imxplatform.duplicate.list.action.no-duplicate.text"}getActionKey(){return"addresspoi-duplicates-action-addresspoi_no_duplicates"}getIcon(){return"icon-checklist_duplicates"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y),c.LFG(li.k_))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})(),Pl=(()=>{class qe extends Na.O{constructor(xt,jt,jn,ro,Bo){super(xt,jt,jn,ro,Bo)}getConfirmBatchTitleKey(){return"imxplatform.article.list.action.delete.confirm-batch"}getConfirmTitleKey(){return"imxplatform.article.list.action.delete.confirm"}getEntityType(){return"Article"}getActionKey(){return"article-action-delete"}getIcon(){return"icon-trash"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y),c.LFG(li.k_))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})(),jl=(()=>{class qe extends Dl.z{constructor(xt,jt,jn,ro,Bo){super(xt,jt,jn,ro,Bo),this.dialog=xt,this.dataAccess=jt,this.imxEntitiesMgrService=jn,this.entityStateDao=ro,this.userMessageService=Bo}doExecute(xt){return super.doExecute(xt)}executeBatch(xt,jt){return super.executeBatch(xt,jt)}getActionKey(){return"article-action-set_state"}getEntityType(){return"Article"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(Je.qB),c.LFG(wn.o),c.LFG(Kn.Y))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})(),Ml=(()=>{class qe extends st.h{constructor(xt,jt,jn,ro){super(xt,jt,jn,ro),this.dialog=xt,this.dataAccess=jt,this.entityStateDao=jn,this.userMessageService=ro,this.logger=(0,Je.jl)("DummyAction",_o.H.name)}doExecute(xt){return(0,tn.of)(!0)}executeBatch(xt){return(0,tn.of)(!0)}getSuccessKey(){return"imxplatform.dummy.successful"}getBatchWarningKey(){return"imxplatform.dummy.batch-warning"}getActionLabelKey(){return"imxplatform.dummy.action"}getEntityType(){return"AddressPoi"}getActionKey(){return"dummy-action"}getIcon(){return"icon-pencil"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var rc=a(49346),Kr=a(36020);let la=(()=>{class qe extends Na.O{constructor(xt,jt,jn,ro,Bo,jr){super(xt,jt,jn,ro,Bo),this.pooledMediumCascadeDeleteService=jr}doExecute(xt){return new Bt.y(jt=>{this.dialog.open(rc.E,{maxWidth:870,maxHeight:635,data:{i18n:this.getConfirmTitleKey(),title:xt.title,objectId:xt.id,entityType:xt._entityType}}).afterClosed().subscribe(ro=>{if(ro){const Bo=this.createResolveReferencesActionCall(xt,{references:ro.referenceSpecification.references}),jr=this.createActionCall(this.getEntityType(),xt);this.pooledMediumCascadeDeleteService.cascadeDeletePooledMedium(ro,Bo,jr,xt.id,this.userMessageService,this.getFailedKey()).subscribe(al=>{this.showSuccessMessageForSingleAction(al),jt.next(!0)})}})})}createResolveReferencesActionCall(xt,jt){return{actionKey:"pooledmedium-action-resolve-references",entityType:this.getEntityType(),entityIds:[xt.id],actionParams:jt||{}}}getConfirmBatchTitleKey(){return"imxplatform.media.list.action.delete.confirm-batch"}getConfirmTitleKey(){return"imxplatform.media.list.action.delete.confirm"}getEntityType(){return"StandardPooledMedium"}getActionKey(){return"pooledmedium-action-delete"}getIcon(){return"icon-trash"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y),c.LFG(li.k_),c.LFG(Kr.i))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var ks=a(3186);let Ta=(()=>{class qe extends Na.O{constructor(xt,jt,jn,ro,Bo){super(xt,jt,jn,ro,Bo)}doExecute(xt){const jt={id:xt.id,type:this.getEntityType(),title:xt.name};return super.doExecute(jt)}getConfirmBatchTitleKey(){return"imxplatform.standard-import-config.list.action.delete.confirm-batch"}getConfirmTitleKey(){return"imxplatform.standard-import-config.list.action.delete.confirm"}getEntityType(){return"StandardImportConfig"}getActionKey(){return"standardimport-action-delete-bak"}getIcon(){return"icon-trash"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y),c.LFG(li.k_))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var ds=a(75678);let bs=(()=>{class qe extends st.h{constructor(xt,jt,jn,ro,Bo){super(xt,jt,jn,ro),this.dialog=xt,this.dataAccess=jt,this.entityStateDao=jn,this.userMessageService=ro,this.translationService=Bo,this.logger=(0,Je.jl)("StandardImportConfigExecuteAction",_o.H.name)}doExecute(xt){return new Bt.y(jt=>{this.dialog.open(ds.$,{maxWidth:470,maxHeight:235,data:{title:this.translationService.instant("imxplatform.standard-import-config.list.action.execute.header"),text:this.translationService.instant("imxplatform.standard-import-config.list.action.execute.confirm",{id:xt.id,title:xt.name}),iconClass:this.getIcon(),translated:!0,confirmButtonKey:"imxplatform.standard-import-config.list.action.execute.header"}}).afterClosed().subscribe(ro=>{if(ro){const Bo=this.createActionCall(this.getEntityType(),xt);this.logger.info("Delete "+this.getEntityType()+": "+JSON.stringify(Bo)),this.dataAccess.callAction(Bo).subscribe(jr=>{this.showSuccessMessageForSingleAction(jr),jt.next(!0)})}})})}executeBatch(xt){throw this.logger.error("Batch actions are not supported for StandardImportConfigs"),new Error("Not implemented")}getBatchWarningKey(){return"imxplatform.standard-import-config.list.action.execute.batch-warning"}getEntityType(){return"StandardImportConfig"}getActionKey(){return"standardimport-action-execute"}getActionLabelKey(){return"imxplatform.standard-import-config.list.action.execute.header"}getIcon(){return"icon-enter"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y),c.LFG(Et.sK))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})(),sl=(()=>{class qe extends st.h{constructor(xt,jt,jn,ro){super(xt,jt,jn,ro),this.dialog=xt,this.dataAccess=jt,this.entityStateDao=jn,this.userMessageService=ro,this.logger=(0,Je.jl)("StandardImportConfigValidateAction",_o.H.name)}doExecute(xt){return new Bt.y(jt=>{const jn=this.createActionCall(this.getEntityType(),xt);this.logger.info("Trigger standard-import-config action "+this.getActionKey()+" for "+this.getEntityType()+": "+JSON.stringify(jn)),this.dataAccess.callAction(jn).subscribe(ro=>{this.showSuccessMessageForSingleAction(ro),jt.next(!0)})})}executeBatch(xt){throw this.logger.error("Batch actions are not supported for StandardImportConfigs"),new Error("Not implemented")}getBatchWarningKey(){return"imxplatform.standard-import-config.list.action.validate.batch-warning"}getEntityType(){return"StandardImportConfig"}getActionKey(){return"standardimport-action-validate"}getActionLabelKey(){return"imxplatform.standard-import-config.list.action.validate.header"}getIcon(){return"icon-eye"}getSuccessKey(){return"imxplatform.standard-import-config.list.action.validate.success"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})(),Ec=(()=>{class qe extends Na.O{constructor(xt,jt,jn,ro,Bo){super(xt,jt,jn,ro,Bo)}doExecute(xt){const jt={id:xt.id,type:this.getEntityType(),title:xt.loginname};return super.doExecute(jt)}getConfirmBatchTitleKey(){return"imxplatform.user-mgmt.list.action.delete.confirm-batch"}getConfirmTitleKey(){return"imxplatform.user-mgmt.list.action.delete.confirm"}getEntityType(){return"User"}getActionKey(){return"user-action-delete"}getIcon(){return"icon-trash"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y),c.LFG(li.k_))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var gr=a(91226);const Js=(qe,Xi)=>({title:qe,id:Xi});function Ms(qe,Xi){if(1&qe&&(c._UZ(0,"p",2),c.ALo(1,"translate"),c.ALo(2,"readI18n")),2&qe){const xt=c.oxw();c.Q6J("innerHTML",c.xi3(1,1,xt.data.i18n,c.WLB(6,Js,c.lcZ(2,4,xt.data.title),xt.data.objectId)),c.oJD)}}const Bs=qe=>({count:qe});function yl(qe,Xi){if(1&qe&&(c._UZ(0,"p",2),c.ALo(1,"translate")),2&qe){const xt=c.oxw();c.Q6J("innerHTML",c.xi3(1,1,xt.data.i18n,c.VKq(4,Bs,xt.data.count)),c.oJD)}}let Fr=(()=>{class qe{constructor(xt){this.data=xt}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.Y36(O.WI))};static#t=this.\u0275cmp=c.Xpm({type:qe,selectors:[["ng-component"]],decls:3,vars:5,consts:[["cancelButtonLabel","imxplatform.dialog.common-abort",3,"heading","submitButtonLabel","icon"],["class","dialog-txt-md",3,"innerHTML",4,"ngIf"],[1,"dialog-txt-md",3,"innerHTML"]],template:function(jt,jn){1&jt&&(c.TgZ(0,"imx-dialog",0),c.YNc(1,Ms,3,9,"p",1)(2,yl,2,6,"p",1),c.qZA()),2&jt&&(c.Q6J("heading",jn.data.count&&jn.data.count>1?"imxplatform.user-mgmt.list.action.disable.header-plural":"imxplatform.user-mgmt.list.action.disable.header-singular")("submitButtonLabel","imxplatform.user-mgmt.dialog-disable.button")("icon","icon-lock"),c.xp6(),c.Q6J("ngIf",!jn.data.batch),c.xp6(),c.Q6J("ngIf",jn.data.batch))},dependencies:[l.O5,ot.a,Et.X$,En.j],encapsulation:2})}return qe})(),nl=(()=>{class qe extends st.h{constructor(xt,jt,jn,ro){super(xt,jt,jn,ro),this.dialog=xt,this.dataAccess=jt,this.entityStateDao=jn,this.userMessageService=ro,this.logger=(0,Je.jl)("UserDisableAction",_o.H.name)}doExecute(xt){return new Bt.y(jt=>{this.dialog.open(Fr,{maxWidth:470,maxHeight:235,data:{i18n:this.getConfirmTitleKey(),title:xt.loginname,objectId:xt.id}}).afterClosed().subscribe(ro=>{if(ro){const Bo=this.createActionCall(this.getEntityType(),xt);this.logger.info("Disable "+this.getEntityType()+": "+JSON.stringify(Bo)),this.dataAccess.callAction(Bo).pipe((0,yi.K)(jr=>(this.userMessageService.showError(jr||this.getFailedKey()),gr.E))).subscribe(jr=>{this.showSuccessMessageForSingleAction(jr),jt.next(!0)})}})})}executeBatch(xt){return new Bt.y(jt=>{this.dialog.open(Fr,{maxWidth:470,maxHeight:235,data:{batch:!0,i18n:this.getConfirmBatchTitleKey(),count:xt.length}}).afterClosed().subscribe(ro=>{if(ro){const Bo=this.createActionCallForBatch(this.getEntityType(),xt);this.logger.info("Disable batch "+this.getEntityType()+": "+JSON.stringify(Bo)),this.dataAccess.callAction(Bo).pipe((0,yi.K)(jr=>(this.userMessageService.showError(jr||this.getFailedKey()),(0,tn.of)([])))).subscribe(jr=>{this.validateBatchResult(xt,jr),this.showSuccessMessage(jr),jt.next(!0)})}})})}getConfirmBatchTitleKey(){return"imxplatform.user-mgmt.list.action.disable.confirm-batch"}getConfirmTitleKey(){return"imxplatform.user-mgmt.list.action.disable.confirm"}getEntityType(){return"User"}getActionKey(){return"user-action-disable"}getActionLabelKey(){return"imxplatform.user-mgmt.list.action.disable.header-singular"}getIcon(){return"icon-lock"}getBatchWarningKey(){return"imxplatform.user-mgmt.list.action.disable.batch-warning"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})(),hl=(()=>{class qe extends st.h{constructor(xt,jt,jn,ro,Bo){super(xt,jt,jn,ro),this.dialog=xt,this.dataAccess=jt,this.entityStateDao=jn,this.userMessageService=ro,this.translationService=Bo,this.logger=(0,Je.jl)("UserRequestNewPasswordAction",_o.H.name)}doExecute(xt){return new Bt.y(jt=>{this.dialog.open(ds.$,{maxWidth:450,data:{title:this.translationService.instant("imxplatform.user-mgmt.list.action.request-new-pw.header"),text:this.translationService.instant("imxplatform.user-mgmt.list.action.request-new-pw.confirm-batch",{title:xt.loginname,id:xt.id,count:1}),iconClass:this.getIcon(),confirmButtonKey:"imxplatform.user-mgmt.list.action.request-new-pw.confirm-btn-key",translated:!0}}).afterClosed().subscribe(ro=>{if(ro){const Bo=this.createActionCall(this.getEntityType(),xt);this.logger.info("Requesting new password for user: "+JSON.stringify(Bo)),this.dataAccess.callAction(Bo).subscribe(jr=>{this.showSuccessMessageForSingleAction(jr),jt.next(!0)})}})})}executeBatch(xt){return new Bt.y(jt=>{this.dialog.open(ds.$,{maxWidth:450,data:{title:this.translationService.instant("imxplatform.user-mgmt.list.action.request-new-pw.header"),text:this.translationService.instant("imxplatform.user-mgmt.list.action.request-new-pw.confirm-batch",{count:xt.length}),iconClass:this.getIcon(),confirmButtonKey:"imxplatform.user-mgmt.list.action.request-new-pw.confirm-btn-key",translated:!0}}).afterClosed().subscribe(ro=>{if(ro){const Bo=super.createActionCallForBatch(this.getEntityType(),xt);this.logger.info("Requesting new password for multiple users: "+JSON.stringify(Bo)),this.dataAccess.callAction(Bo).subscribe(jr=>{this.validateBatchResult(xt,jr),this.showSuccessMessage(jr),jt.next(!0)})}})})}getBatchWarningKey(){return"imxplatform.user-mgmt.list.action.request-new-pw.batch-warning"}getSuccessKey(){return"imxplatform.user-mgmt.list.action.request-new-pw.successful"}getEntityType(){return"User"}getActionKey(){return"user-action-request_new_password"}getActionLabelKey(){return"imxplatform.user-mgmt.list.action.request-new-pw.header"}getIcon(){return"icon-file-add"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y),c.LFG(Et.sK))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var Cc=a(54362),Zt=a(67849);function ri(qe,Xi){if(1&qe&&(c.TgZ(0,"mat-list-item"),c._uU(1),c.qZA()),2&qe){const xt=Xi.$implicit;c.xp6(),c.hij(" ",xt.loginname+" ("+(null==xt.address?null:xt.address.email)+")"," ")}}const Mn=()=>({width:"100%",height:"100%"});let mi=(()=>{class qe{constructor(xt,jt,jn){this.data=xt,this.translationService=jt,this.entitiesMgr=jn,this.formGroup=new o.nJ({}),this.mailSenderAddressCtrl=new o.p4,this.mailSubjectCtrl=new o.p4,this.mailContentCtrl=new o.p4,this.formGroup.registerControl("mailSenderAddress",this.mailSenderAddressCtrl),this.formGroup.registerControl("mailSubject",this.mailSubjectCtrl),this.formGroup.registerControl("mailContent",this.mailContentCtrl),this.formGroup.controls.mailSubject.setValue(this.translationService.instant("imxplatform.user-mgmt.list.action.send-reminder-mail.mailSubjectDefaultValue")),this.formGroup.controls.mailContent.setValue(this.translationService.instant("imxplatform.user-mgmt.list.action.send-reminder-mail.mailContentDefaultValue")),this.entitiesMgr.getEntitiesOfType("User").subscribe(ro=>{this.users=ro.items.filter(Bo=>this.data.userIds.includes(Bo.id))})}getDialogResult(){return this.formGroup.value}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.Y36(O.WI),c.Y36(Et.sK),c.Y36(Je.qB))};static#t=this.\u0275cmp=c.Xpm({type:qe,selectors:[["ng-component"]],decls:16,vars:18,consts:[["heading","imxplatform.user-mgmt.list.action.send-reminder-mail.header","icon","icon-mail","dialogType","form","submitButtonLabel","imxplatform.user-mgmt.list.action.send-reminder-mail.confirm-btn-key",3,"submitButtonDisabled","getSubmitResult"],["id","send-reminder-dialog",3,"formGroup"],[1,"dialog-form"],[1,"send-reminder-input"],[3,"required","type","id","formControlName","label"],[3,"id","formControlName","label"],[1,"list-group-wrapper"],["translate",""],[1,"list-group"],["dense",""],["ngFor","",3,"ngForOf"]],template:function(jt,jn){1&jt&&(c.TgZ(0,"imx-dialog",0)(1,"form",1)(2,"div",2)(3,"div",3),c._UZ(4,"imx-base-input",4),c.qZA(),c.TgZ(5,"div",3),c._UZ(6,"imx-base-input",5),c.qZA(),c.TgZ(7,"div",3),c._UZ(8,"imx-base-multi-input",5),c.qZA(),c.TgZ(9,"div",6)(10,"label",7),c._uU(11,"imxplatform.user-mgmt.list.action.send-reminder-mail.recipients"),c.qZA(),c.TgZ(12,"div",8)(13,"p-scrollPanel")(14,"mat-list",9),c.YNc(15,ri,2,1,"ng-template",10),c.qZA()()()()()()()),2&jt&&(c.Q6J("submitButtonDisabled",!jn.formGroup.controls.mailSenderAddress.value)("getSubmitResult",jn.getDialogResult.bind(jn)),c.xp6(),c.Q6J("formGroup",jn.formGroup),c.xp6(3),c.Q6J("required",!0)("type","email")("id","mailSenderAddress")("formControlName","mailSenderAddress")("label","imxplatform.user-mgmt.list.action.send-reminder-mail.mailSenderAddress"),c.xp6(2),c.Q6J("id","mailSubject")("formControlName","mailSubject")("label","imxplatform.user-mgmt.list.action.send-reminder-mail.mailSubject"),c.xp6(2),c.Q6J("id","mailContent")("formControlName","mailContent")("label","imxplatform.user-mgmt.list.action.send-reminder-mail.mailContent"),c.xp6(5),c.Akn(c.DdM(17,Mn)),c.xp6(2),c.Q6J("ngForOf",jn.users))},dependencies:[l.sg,o._Y,o.JJ,o.JL,o.Q7,q.i$,q.Tg,o.sg,o.u,Et.Pi,Rn.P,Cc.H,Zt.x,ot.a],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}[_nghost-%COMP%]     .mat-mdc-tree{background-color:transparent}#send-reminder-dialog[_ngcontent-%COMP%]{width:540px}.send-reminder-input[_ngcontent-%COMP%]{margin-bottom:15px}imx-base-multi-input[_ngcontent-%COMP%]     textarea{display:block;width:100%;min-height:160px!important;margin:0}.mat-mdc-list-item[_ngcontent-%COMP%]{height:16px!important}.list-group-wrapper[_ngcontent-%COMP%]{width:100%}.list-group-wrapper[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:5px}.list-group-wrapper[_ngcontent-%COMP%]   .list-group[_ngcontent-%COMP%]{width:100%;height:10vh;overflow:hidden;border:1px solid #ced4e0;background-color:#fff}.mat-mdc-list-item-disabled[_ngcontent-%COMP%]{background-color:#fff}"]})}return qe})(),Mo=(()=>{class qe extends st.h{constructor(xt,jt,jn,ro){super(xt,jt,jn,ro),this.dialog=xt,this.dataAccess=jt,this.entityStateDao=jn,this.userMessageService=ro,this.logger=(0,Je.jl)("UserSendReminderMailAction",_o.H.name)}doExecute(xt){return new Bt.y(jt=>{this.dialog.open(mi,{maxWidth:600,data:{userIds:Array.of(xt.id)}}).afterClosed().subscribe(jn=>{if(jn){const ro={reminderSubject:jn.mailSubject,reminderMessage:jn.mailContent,reminderSender:jn.mailSenderAddress},Bo=this.createActionCall(this.getEntityType(),xt,ro);this.logger.info("Sending reminder email for single user: "+JSON.stringify(Bo)),this.dataAccess.callAction(Bo).subscribe(jr=>{this.showSuccessMessageForSingleAction(jr),jt.next(!0)})}})})}executeBatch(xt){return new Bt.y(jt=>{this.dialog.open(mi,{maxWidth:600,data:{userIds:xt}}).afterClosed().subscribe(jn=>{if(jn){if(!jn.mailSenderAddress)return;const ro={reminderSubject:jn.mailSubject,reminderMessage:jn.mailContent,reminderSender:jn.mailSenderAddress},Bo=this.createActionCallForBatch(this.getEntityType(),xt,ro);this.logger.info("Sending reminder emails for multiple users: "+JSON.stringify(Bo)),this.dataAccess.callAction(Bo).subscribe(jr=>{this.validateBatchResult(xt,jr),this.showSuccessMessage(jr),jt.next(!0)})}})})}getBatchWarningKey(){return"imxplatform.user-mgmt.list.action.send-reminder-mail.batch-warning"}getSuccessKey(){return"imxplatform.user-mgmt.list.action.send-reminder-mail.successful"}getEntityType(){return"User"}getActionKey(){return"user-action-send_reminder_email"}getActionLabelKey(){return"imxplatform.user-mgmt.list.action.send-reminder-mail.header"}getIcon(){return"icon-inbox"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var pr=a(10444);let Pr=(()=>{class qe{constructor(xt,jt,jn){this.data=xt,this.translationService=jt,this.entitiesMgr=jn,this.formGroup=new o.nJ({}),this.selectedUserSateCtrl=new o.p4,this.userStateTranslation=new Map([[0,"DISABLED"],[20,"NEW"],[30,"PENDING"],[40,"ACTIVE"]]),this.userStateOptions=[],this.formGroup.registerControl("selectedUserSateId",this.selectedUserSateCtrl),this.userStateTranslation.forEach((ro,Bo)=>{this.userStateOptions.push({label:this.translationService.instant("entity.UserState."+ro),value:Bo})}),this.userStateOptions.push({label:this.translationService.instant("imxplatform.common.select-placeholder-demand"),value:-1}),this.formGroup.controls.selectedUserSateId.setValue(-1)}getDialogResult(){return this.formGroup.value}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.Y36(O.WI),c.Y36(Et.sK),c.Y36(Je.qB))};static#t=this.\u0275cmp=c.Xpm({type:qe,selectors:[["ng-component"]],decls:8,vars:4,consts:[["heading","imxplatform.user-mgmt.list.action.set-state.header","icon","icon-earth","dialogType","form","submitButtonLabel","imxplatform.user-mgmt.list.action.set-state.confirm-btn-key",3,"submitButtonDisabled","getSubmitResult"],["id","send-reminder-dialog",3,"formGroup"],[1,"dialog-form"],["id","set-state-info"],["translate",""],[1,"set-state-input"],["formControlName","selectedUserSateId",1,"set-state-input-id",3,"options"]],template:function(jt,jn){1&jt&&(c.TgZ(0,"imx-dialog",0)(1,"form",1)(2,"div",2)(3,"div",3)(4,"p",4),c._uU(5,"imxplatform.user-mgmt.list.action.set-state.information"),c.qZA()(),c.TgZ(6,"div",5),c._UZ(7,"imx-base-select",6),c.qZA()()()()),2&jt&&(c.Q6J("submitButtonDisabled",-1===jn.formGroup.controls.selectedUserSateId.value)("getSubmitResult",jn.getDialogResult.bind(jn)),c.xp6(),c.Q6J("formGroup",jn.formGroup),c.xp6(6),c.Q6J("options",jn.userStateOptions))},dependencies:[o._Y,o.JJ,o.JL,o.sg,o.u,Et.Pi,pr.o,ot.a],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}#set-state-info[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return qe})(),tl=(()=>{class qe extends st.h{constructor(xt,jt,jn,ro){super(xt,jt,jn,ro),this.dialog=xt,this.dataAccess=jt,this.entityStateDao=jn,this.userMessageService=ro,this.logger=(0,Je.jl)("UserSetStateAction",_o.H.name)}doExecute(xt){return new Bt.y(jt=>{this.dialog.open(Pr,{maxWidth:600,data:{}}).afterClosed().subscribe(jn=>{if(jn){const Bo=this.createActionCall("User",xt,{userStateId:jn.selectedUserSateId});this.logger.info("setting user state for single user: "+JSON.stringify(Bo)),this.dataAccess.callAction(Bo).subscribe(jr=>{this.showSuccessMessageForSingleAction(jr),jt.next(!0)})}})})}executeBatch(xt){return new Bt.y(jt=>{this.dialog.open(Pr,{maxWidth:600,data:{}}).afterClosed().subscribe(jn=>{if(jn){const Bo=this.createActionCallForBatch("User",xt,{userStateId:jn.selectedUserSateId});this.logger.info("setting user state for users: "+JSON.stringify(Bo)),this.dataAccess.callAction(Bo).subscribe(jr=>{this.validateBatchResult(xt,jr),this.showSuccessMessage(jr),jt.next(!0)})}})})}getBatchWarningKey(){return"imxplatform.user-mgmt.list.action.set-state.batch-warning"}getSuccessKey(){return"imxplatform.user-mgmt.list.action.set-state.successful"}getActionKey(){return"user-action-set_state"}getActionLabelKey(){return"imxplatform.user-mgmt.list.action.set-state.header"}getIcon(){return"icon-earth"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var Ls=a(19352),Ts=a(51418),_s=a(93428);function ul(qe,Xi){if(1&qe&&(c.TgZ(0,"mat-list-option",15),c._uU(1),c.qZA()),2&qe){const xt=Xi.$implicit;c.Q6J("value",xt.id),c.xp6(),c.hij(" ",xt.name+" ("+xt.id+")"," ")}}function qs(qe,Xi){if(1&qe&&(c.ynx(0),c.TgZ(1,"div",17)(2,"mat-list-item",18),c._uU(3),c.qZA()(),c.BQk()),2&qe){const xt=c.oxw().$implicit,jt=c.oxw();c.xp6(),c.Q6J("matTooltip",jt.getActionPermissionTooltipText(xt)),c.xp6(2),c.hij(" ",xt.name+" ("+xt.id+") || ["+xt.roleName+":"+xt.roleId+"]"," ")}}function Ks(qe,Xi){if(1&qe&&(c.ynx(0),c.TgZ(1,"mat-list-item",18),c._uU(2),c.qZA(),c.BQk()),2&qe){const xt=c.oxw().$implicit;c.xp6(2),c.hij(" ",xt.name+" ("+xt.id+") || ["+xt.roleName+":"+xt.roleId+"]"," ")}}function pl(qe,Xi){if(1&qe&&c.YNc(0,qs,4,2,"ng-container",16)(1,Ks,3,1,"ng-container",16),2&qe){const xt=Xi.$implicit,jt=c.oxw();c.Q6J("ngIf",jt.hasActionPermissionTooltipText(xt)),c.xp6(),c.Q6J("ngIf",!jt.hasActionPermissionTooltipText(xt))}}const nc=()=>({width:"100%",height:"100%"});let Mi=(()=>{class qe{constructor(xt,jt,jn,ro){this.data=xt,this.translationService=jt,this.entitiesMgrService=jn,this.userRoleDataSourceService=ro,this.formGroup=new o.nJ({}),this.userRolesCtrl=new o.p4,this.permissionFilterCtrl=new o.p4,this.allUserRoles=[],this.filteredUserPermissions=[],this.rolePermissionMap=new Map,this.destroy$=new Vi.xQ,this.formGroup.registerControl("userRolesCtrl",this.userRolesCtrl),this.formGroup.registerControl("permissionFilterCtrl",this.permissionFilterCtrl)}ngOnInit(){0===this.allUserRoles.length&&this.loadUserRoles(),this.userRolesCtrl.valueChanges.pipe((0,Ls.R)(this.destroy$)).subscribe(xt=>{this.filteredUserPermissions=this.filterByRoles(xt),this.sortFilteredPermissions();const jt=this.permissionFilterCtrl.value;jt&&jt.length>0&&this.filterByNameOrId(jt)}),this.permissionFilterCtrl.valueChanges.pipe((0,Ls.R)(this.destroy$)).subscribe(xt=>{xt&&xt.length>0?this.filterByNameOrId(xt):(this.filteredUserPermissions=this.filterByRoles(this.userRolesCtrl.value),this.sortFilteredPermissions())})}filterByNameOrId(xt){const jt=[];this.filterByRoles(this.userRolesCtrl.value).forEach(ro=>{(ro.name.toLowerCase().includes(xt.toLowerCase())||(""+ro.id).includes(xt))&&jt.push(ro)}),this.filteredUserPermissions=jt,this.sortFilteredPermissions()}sortFilteredPermissions(){this.filteredUserPermissions=this.filteredUserPermissions.sort((xt,jt)=>xt.name.localeCompare(jt.name))}hasActionPermissionTooltipText(xt){return xt.actions&&xt.actions.length>0}getActionPermissionTooltipText(xt){return xt.actions}filterByRoles(xt){const jt=[];return this.rolePermissionMap.forEach(xt&&xt.length>0?(jn,ro)=>{xt.includes(ro)&&jt.push(...jn)}:(jn,ro)=>{jt.push(...jn)}),jt}loadUserRoles(){const xt=this.data.roles.map(jt=>jt.id).join(",");xt&&xt.length>0&&this.userRoleDataSourceService.fetch({roleIds:xt},1,1e4,"id").pipe((0,Ts.q)(1)).subscribe(jt=>{this.allUserRoles=jt.items,this.allUserRoles=this.allUserRoles.sort((jn,ro)=>jn.name.localeCompare(ro.name)),this.allUserRoles.forEach(jn=>{const ro=jn.permissions.map(Bo=>{const jr=Bo;return jr.roleName=jn.name,jr.roleId=jn.id,jr});this.filteredUserPermissions.push(...ro),this.sortFilteredPermissions(),this.rolePermissionMap.set(jn.id,ro)})})}getDialogResult(){return this.formGroup.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.Y36(O.WI),c.Y36(Et.sK),c.Y36(Je.qB),c.Y36(_s.i))};static#t=this.\u0275cmp=c.Xpm({type:qe,selectors:[["ng-component"]],decls:26,vars:17,consts:[["heading","imxplatform.user-mgmt.list.action.show-permissions.header","icon","icon-magnifier","dialogType","form",3,"cancelButtonLabel","submitButtonLabel","getSubmitResult"],[3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],["id","show-permissions-info"],["translate",""],["id","show-permissions-wrapper"],[1,"list-group-wrapper"],[1,"list-group"],["dense","",3,"formControl"],["ngFor","",3,"ngForOf"],[1,"input-wrapper"],["id","permission-filter-field"],[1,"mat-mdc-input-element",3,"formControl","placeholder"],["dense",""],[3,"value"],[4,"ngIf"],["matTooltipClass","perm-tooltip",3,"matTooltip"],[1,"small-height","perm-item"]],template:function(jt,jn){1&jt&&(c.TgZ(0,"imx-dialog",0)(1,"form",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"p",5),c._uU(6,"imxplatform.user-mgmt.list.action.show-permissions.information"),c.qZA()(),c.TgZ(7,"div",6)(8,"div",7)(9,"label",5),c._uU(10,"imxplatform.user-mgmt.list.action.show-permissions.roles"),c.qZA(),c.TgZ(11,"div",8)(12,"p-scrollPanel")(13,"mat-selection-list",9),c.YNc(14,ul,2,2,"ng-template",10),c.qZA()()()(),c.TgZ(15,"div",7)(16,"div",11)(17,"label",5),c._uU(18,"imxplatform.user-mgmt.list.action.show-permissions.permissions"),c.qZA(),c.TgZ(19,"label",12),c._UZ(20,"input",13),c.ALo(21,"translate"),c.qZA()(),c.TgZ(22,"div",8)(23,"p-scrollPanel")(24,"mat-list",14),c.YNc(25,pl,2,2,"ng-template",10),c.qZA()()()()()()()()()),2&jt&&(c.Q6J("cancelButtonLabel","imxplatform.user-mgmt.list.action.show-permissions.btn-key")("submitButtonLabel",void 0)("getSubmitResult",jn.getDialogResult.bind(jn)),c.xp6(),c.Q6J("formGroup",jn.formGroup),c.xp6(11),c.Akn(c.DdM(15,nc)),c.xp6(),c.Q6J("formControl",jn.formGroup.get("userRolesCtrl")),c.xp6(),c.Q6J("ngForOf",jn.allUserRoles),c.xp6(6),c.s9C("placeholder",c.lcZ(21,13,"imxplatform.user-mgmt.list.action.show-permissions.filter-placeholder")),c.Q6J("formControl",jn.formGroup.get("permissionFilterCtrl")),c.xp6(3),c.Akn(c.DdM(16,nc)),c.xp6(2),c.Q6J("ngForOf",jn.filteredUserPermissions))},dependencies:[l.sg,l.O5,o._Y,o.Fj,o.JJ,o.JL,q.i$,q.Ub,q.Tg,q.vS,me.gM,o.oH,o.sg,Et.Pi,Rn.P,ot.a,Et.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.grid[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.role-grid[_ngcontent-%COMP%]{margin:0}.small-height[_ngcontent-%COMP%]{height:16px!important}.list-group-wrapper[_ngcontent-%COMP%]{width:100%;margin-bottom:5px}.list-group-wrapper[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-bottom:5px}.list-group-wrapper[_ngcontent-%COMP%]   .list-group[_ngcontent-%COMP%]{width:100%;height:24vh;overflow:hidden;border:1px solid #ced4e0;background-color:#fff}.list-group-wrapper[_ngcontent-%COMP%]   .mat-mdc-list[_ngcontent-%COMP%]{padding:5px}.list-group-wrapper[_ngcontent-%COMP%]   .perm-item[_ngcontent-%COMP%]:hover{background-color:#0a2663;color:#eefafa}  .perm-tooltip{font-size:12px!important;max-width:unset!important;width:unset!important;overflow:unset!important;white-space:unset!important;text-overflow:unset!important}#permission-filter-field[_ngcontent-%COMP%]{margin-left:10px}.input-wrapper[_ngcontent-%COMP%]{align-items:center;display:flex}"]})}return qe})(),Ki=(()=>{class qe extends st.h{constructor(xt,jt,jn,ro){super(xt,jt,jn,ro),this.dialog=xt,this.dataAccess=jt,this.entityStateDao=jn,this.userMessageService=ro,this.logger=(0,Je.jl)("UserShowPermissionsAction",_o.H.name)}doExecute(xt){return new Bt.y(jt=>{this.dialog.open(Mi,{...ot.D.FORM_BIG,data:{roles:xt.roles}}).afterClosed().subscribe(jn=>{jt.next(!1)})})}executeBatch(xt){return(0,tn.of)(!1)}getBatchWarningKey(){return"imxplatform.user-mgmt.list.action.show-permissions.batch-warning"}getSuccessKey(){return"imxplatform.user-mgmt.list.action.show-permissions.successful"}getActionKey(){return"user-action-show_permissions"}getActionLabelKey(){return"imxplatform.user-mgmt.list.action.show-permissions.name"}getIcon(){return"icon-magnifier"}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(O.uw),c.LFG(po.nq),c.LFG(wn.o),c.LFG(Kn.Y))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var Ao=a(12042),Go=a(77966);let dr=(()=>{class qe{constructor(xt,jt){this.dataAccessService=xt,this.translateService=jt}getEntityType(){return vt.t8.ARTICLE_ENTITY.type}getAutocompleteHolders(xt,jt){return this.dataAccessService.getArticleAutocomplete(xt,jt,void 0)}getAutocompleteHoldersFiltered(xt,jt,jn){return this.dataAccessService.genericGetCoreEntityFiltered(vt.t8.ARTICLE_ENTITY.apiPrefix,xt,jt,jn)}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(po.nq),c.LFG(Et.sK))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();var pn=a(4713),bo=a(5606),nt=a(10791),Sn=a(5015);let fi=(()=>{class qe extends Je.aP{constructor(xt){super(xt,"AddressPoiType")}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(Je.fx))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var $i=a(66684),No=a(68738),Ar=a(38842),xr=a(48123);let Sr=(()=>{class qe extends Je.aP{constructor(xt){super(xt,"ImageType")}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(Je.fx))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var ns=a(20714),Tl=a(47918);let Fs=(()=>{class qe extends Je.aP{constructor(xt){super(xt,"MediaLicense")}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(Je.fx))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})(),il=(()=>{class qe extends Je.aP{constructor(xt){super(xt,"Productline")}insert(xt){return this.insertInternal(xt,!0)}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(Je.fx))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var ac=a(48336),Nl=a(40271);let em=(()=>{class qe extends Je.aP{constructor(xt){super(xt,"Tag")}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(Je.fx))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var Kl=a(7078),xl=a(67427),ll=a(83530),tm=a(94023),Nc=a(29166),Dd=a(4766),_c=a(27835),wc=a(22937),nm=a(65752);let Id=(()=>{class qe extends nm.k{constructor(xt,jt){super(xt),this.securityContextHolder=xt,this.dataAccessService=jt}fetchAllIds(xt,jt,jn){const ro=this.extractSortFields(jt,jn);return this.ownerEntityType=xt.ownerEntityType,this.ownerEntityId=xt.ownerEntityId,this.ctxtEntityType=xt.ctxtEntityType,this.ctxtEntityId=xt.ctxtEntityId,this.dataAccessService.getPooledMediaIds(xt,{paging:"ONE_PAGE",sortFields:[ro]})}fetchResults(xt){return xt.ownerEntityType=this.ownerEntityType,xt.ownerEntityId=this.ownerEntityId,xt.ctxtEntityType=this.ctxtEntityType,xt.ctxtEntityId=this.ctxtEntityId,this.dataAccessService.getPooledMedia(xt,{paging:{pageIdx:0,pageSize:1e3}})}toIdFilter(xt){return{id:xt.join(",")}}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(Je.q3),c.LFG(po.nq))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var Ns=a(44581),Uc=a(11947),dn=a(76816),Mr=a(88012),mn=a(30258),Nn=a(69258),Ci=a(22050),Io=a(80222),cr=a(48689),ra=a(67947),$a=a(53502),xe=a(30909),h=a(46817),k=a(47357),se=a(34115),de=a(86228),Ae=a(54576),Ct=a(13493),wt=a(7005),Mt=a(90611),fn=a(23646),Qn=a(91597),ei=a(56416),bi=a(51441),zi=a(3619),Be=a(34446),pt=a(90230);let Ye=(()=>{class qe extends Jn.Qw{constructor(xt){super(),this.injector=xt}isResponsible(xt,jt){return xt instanceof pt.T}build(xt,jt,jn,ro,Bo,jr){xt.clear();const Hr=xt.createComponent(Be.x);return Hr.instance.formHandler=jn,Hr.instance.control=ro,Hr.instance.field=Bo,Hr.instance.permissionPrefix=jr,Hr.instance.optionProvider=this.injector.get(Bo.optionProvider,Bo.optionProvider),Hr.instance.sortNodesFn=Hr.instance.optionProvider.sortOptionsFn,Hr}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(c.zs3))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var ut=a(57625),Kt=a(73895),en=a(91776),qn=a(28633),hi=a(81158),gi=a(94469),ko=a(89846),Wo=a(23324),tr=a(12947),br=a(6929);let fa=(()=>{class qe extends Jn.Qw{constructor(xt){super(),this.injector=xt}isResponsible(xt,jt){return xt instanceof Wo.Y&&!(xt instanceof tr.w)}build(xt,jt,jn,ro,Bo,jr){xt.clear();const Hr=xt.createComponent(br.q);return Hr.instance.formHandler=jn,Hr.instance.control=ro,Hr.instance.field=Bo,Hr.instance.permissionPrefix=jr,Hr.instance.treeOptionProvider=this.injector.get(Bo.optionProvider,Bo.optionProvider),Hr.instance.displayNodeFn=Hr.instance.treeOptionProvider.displayNodesFn,Hr.instance.sortNodesFn=Hr.instance.treeOptionProvider.sortNodesFn,Hr.instance.sortRootNodesFn=Hr.instance.treeOptionProvider.sortRootNodesFn,Hr}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(c.zs3))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var ga=a(1931);let $r=(()=>{class qe extends Jn.Qw{constructor(xt){super(),this.injector=xt}isResponsible(xt,jt){return xt instanceof tr.w}build(xt,jt,jn,ro,Bo,jr){xt.clear();const Hr=xt.createComponent(ga.D);return Hr.instance.formHandler=jn,Hr.instance.control=ro,Hr.instance.field=Bo,Hr.instance.permissionPrefix=jr,Hr.instance.treeOptionProvider=this.injector.get(Bo.optionProvider,Bo.optionProvider),Hr.instance.displayNodeFn=Hr.instance.treeOptionProvider.displayNodesFn,Hr.instance.sortNodesFn=Hr.instance.treeOptionProvider.sortNodesFn,Hr.instance.sortRootNodesFn=Hr.instance.treeOptionProvider.sortRootNodesFn,Hr}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(c.zs3))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac})}return qe})();var Rr=a(60075);let Xr=(()=>{class qe extends Rr.$y{constructor(){super(),this.formItemType=$o.OF}build(xt,jt){return xt.children.forEach(jn=>{const ro=jt.find(Bo=>jn instanceof Bo.formItemType);xt.addChildFormControl(jn.id,ro?ro.build(jn,jt):new o.p4)}),xt.applyValidatorsToControl(new o.vC([]))}static#e=this.\u0275fac=function(jt){return new(jt||qe)};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();var Es=a(46893);let Ys=(()=>{class qe extends Rr.$y{constructor(){super(),this.formItemType=Es.w}build(xt,jt){const jn=new o.p4;return xt.applyValidatorsToControl(jn)}static#e=this.\u0275fac=function(jt){return new(jt||qe)};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();var qa=a(12168);let Qs=(()=>{class qe extends Rr.$y{constructor(){super(),this.formItemType=qa.X}build(xt,jt){const jn=new o.p4;return xt.applyValidatorsToControl(jn)}static#e=this.\u0275fac=function(jt){return new(jt||qe)};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();var ic=a(72764);let wl=(()=>{class qe extends Rr.$y{constructor(){super(),this.formItemType=ic.N}build(xt,jt){const jn=new o.p4;return xt.applyValidatorsToControl(jn)}static#e=this.\u0275fac=function(jt){return new(jt||qe)};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})(),md=(()=>{class qe extends Rr.$y{constructor(){super(),this.formItemType=Bn.X}build(xt,jt){const jn=new o.p4;return xt.applyValidatorsToControl(jn)}static#e=this.\u0275fac=function(jt){return new(jt||qe)};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();var Dc=a(81169);let yc=(()=>{class qe extends Rr.$y{constructor(){super(),this.formItemType=Dc.Nn}build(xt,jt){const jn=new o.p4;return xt.applyValidatorsToControl(jn)}static#e=this.\u0275fac=function(jt){return new(jt||qe)};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();var Wc=a(17840);let im=(()=>{class qe extends Rr.$y{constructor(){super(),this.formItemType=Wc.l}build(xt,jt){const jn=new o.nJ({comparatorCtrl:new o.p4,minCtrl:new o.p4,maxCtrl:new o.p4});return xt.applyValidatorsToControl(jn),jn}static#e=this.\u0275fac=function(jt){return new(jt||qe)};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();var Vl=a(20949);let zc=(()=>{class qe extends Rr.$y{constructor(){super(),this.formItemType=Vl.N}build(xt,jt){return xt.children.forEach(jn=>{const ro=jt.find(Bo=>jn instanceof Bo.formItemType);xt.addChildFormControl(jn.id,ro?ro.build(jn,jt):new o.p4)}),new o.nJ({})}static#e=this.\u0275fac=function(jt){return new(jt||qe)};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();var Il=a(66175);let Bc=(()=>{class qe extends Rr.$y{constructor(){super(),this.formItemType=Il.A}build(xt,jt){const jn=new o.nJ({});return xt.applyValidatorsToControl(jn),this.applyDefaultFields(jn),jn}static#e=this.\u0275fac=function(jt){return new(jt||qe)};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();var Ac=a(32477);let Xl=(()=>{class qe extends Rr.$y{constructor(){super(),this.formItemType=Ac.i}build(xt,jt){const jn=new o.nJ({});return xt.applyValidatorsToControl(jn),this.applyDefaultFields(jn),jn}static#e=this.\u0275fac=function(jt){return new(jt||qe)};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();var uc=a(15452);let Oc=(()=>{class qe extends Rr.$y{constructor(){super(),this.formItemType=uc.S}build(xt,jt){const jn=new o.nJ({});return xt.applyValidatorsToControl(jn),this.applyDefaultFields(jn),jn}static#e=this.\u0275fac=function(jt){return new(jt||qe)};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();var jc=a(23765);let pc=(()=>{class qe extends Rr.$y{constructor(){super(),this.formItemType=jc.II}build(xt,jt){const jn=new o.p4;return xt.applyValidatorsToControl(jn)}static#e=this.\u0275fac=function(jt){return new(jt||qe)};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();var Ul=a(15549);let Xc=(()=>{class qe extends Rr.$y{constructor(){super(),this.formItemType=Ul.S}build(xt,jt){const jn=new o.p4;return xt.applyValidatorsToControl(jn)}static#e=this.\u0275fac=function(jt){return new(jt||qe)};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})(),ec=(()=>{class qe extends Rr.$y{constructor(){super(),this.formItemType=pt.T}build(xt,jt){const jn=new o.p4;return xt.applyValidatorsToControl(jn)}static#e=this.\u0275fac=function(jt){return new(jt||qe)};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();var vd=a(60092);let bd=(()=>{class qe extends Rr.$y{constructor(){super(),this.formItemType=vd.I}build(xt,jt){return xt.children.forEach(jn=>{const ro=jt.find(Bo=>jn instanceof Bo.formItemType);xt.addChildFormControl(jn.id,ro?ro.build(jn,jt):new o.p4)}),new o.nJ({})}static#e=this.\u0275fac=function(jt){return new(jt||qe)};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();var Sd=a(7106);let Ru=(()=>{class qe extends Rr.$y{constructor(){super(),this.formItemType=Sd.U}build(xt,jt){const jn=new o.p4;return xt.applyValidatorsToControl(jn)}static#e=this.\u0275fac=function(jt){return new(jt||qe)};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();var mm=a(72957);let hu=(()=>{class qe extends Rr.$y{constructor(){super(),this.formItemType=mm.N}build(xt,jt){const jn=new o.p4;return xt.applyValidatorsToControl(jn)}static#e=this.\u0275fac=function(jt){return new(jt||qe)};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();var Fd=a(87104);let tc=(()=>{class qe extends Rr.$y{constructor(){super(),this.formItemType=Fd.y}build(xt,jt){const jn=new o.p4;return xt.applyValidatorsToControl(jn)}static#e=this.\u0275fac=function(jt){return new(jt||qe)};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();var Km=a(88954);let um=(()=>{class qe extends Rr.$y{constructor(){super(),this.formItemType=Km.Q}build(xt,jt){return new o.p4}static#e=this.\u0275fac=function(jt){return new(jt||qe)};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();var ad=a(67276);let Zc=(()=>{class qe extends Rr.$y{constructor(){super(),this.formItemType=ad.P}build(xt,jt){const jn=new o.p4;return xt.applyValidatorsToControl(jn)}static#e=this.\u0275fac=function(jt){return new(jt||qe)};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})(),Cd=(()=>{class qe extends Rr.$y{constructor(){super(),this.formItemType=Wo.Y}build(xt,jt){const jn=new o.p4;return xt.applyValidatorsToControl(jn)}static#e=this.\u0275fac=function(jt){return new(jt||qe)};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})(),Rm=(()=>{class qe extends Rr.$y{constructor(){super(),this.formItemType=tr.w}build(xt,jt){const jn=new o.p4;return xt.applyValidatorsToControl(jn)}static#e=this.\u0275fac=function(jt){return new(jt||qe)};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})(),om=(()=>{class qe extends Rr.$y{constructor(){super(),this.formItemType=Da.l}build(xt,jt){const jn=new o.p4;return xt.applyValidatorsToControl(jn)}static#e=this.\u0275fac=function(jt){return new(jt||qe)};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();var pm=a(40340),Ld=a(8818),jd=a(61936),Ud=a(12891),km=a(60292),Nm=a(90929),xu=a(85541);const $u=[new Ud.l("Client",[new jc.II("text","configKey","imxplatform.configuration-definition-part.mappingKey",{required:!0}),new ad.P("configValue","entity.Client.entityName",{optionProvider:Ld.z,extractor:qe=>{if(!qe)return;const Xi=qe.configValue;return Xi?Xi.id:void 0},insertor:(qe,Xi)=>{qe&&Xi&&(Xi.configValue.id=qe)},initialValue:-1,placeholder:"imxplatform.common.select-placeholder-demand",required:!0})]),new Ud.l("Location",[new jc.II("text","configKey","imxplatform.configuration-definition-part.mappingKey",{required:!0}),new ad.P("configValue","entity.Location.entityName",{optionProvider:jd.N,extractor:qe=>{if(!qe)return;const Xi=qe.configValue;return Xi?Xi.id:void 0},insertor:(qe,Xi)=>{qe&&Xi&&(Xi.configValue.id=qe)},initialValue:-1,placeholder:"imxplatform.common.select-placeholder-demand",required:!0})]),new Ud.l("DeliveryChannel",[new jc.II("text","configKey","imxplatform.configuration-definition-part.mappingKey",{required:!0}),new ad.P("configValue","entity.DeliveryChannel.entityName",{optionProvider:km.e,extractor:qe=>{if(!qe)return;const Xi=qe.configValue;return Xi?Xi.id:void 0},insertor:(qe,Xi)=>{qe&&Xi&&(Xi.configValue.id=qe)},initialValue:-1,placeholder:"imxplatform.common.select-placeholder-demand",required:!0})]),new Ud.l("Productline",[new jc.II("text","configKey","imxplatform.configuration-definition-part.mappingKey",{required:!0}),new ad.P("configValue","entity.Productline.i18nName",{optionProvider:xu.N,extractor:qe=>{if(!qe)return;const Xi=qe.configValue;return Xi?Xi.id:void 0},insertor:(qe,Xi)=>{qe&&Xi&&(Xi.configValue.id=qe)},initialValue:-1,placeholder:"imxplatform.common.select-placeholder-demand",required:!0})]),new Ud.l("Category",[new jc.II("text","configKey","imxplatform.configuration-definition-part.mappingKey",{required:!0}),new ad.P("configValue","entity.Category.i18nName",{optionProvider:{optProvider:Nm.v,params:{entityType:"Category"}},extractor:qe=>{if(!qe)return;const Xi=qe.configValue;return Xi?Xi.id:void 0},insertor:(qe,Xi)=>{qe&&Xi&&(Xi.configValue.id=qe)},initialValue:-1,placeholder:"imxplatform.common.select-placeholder-demand",required:!0})])];var ed=a(48485),ku=a(45118),_m=a(14394);let qm=(()=>{class qe{constructor(){this.metainfoFormPanelMappings=new Map,this.metainfoFormPanelMappings.set("modules_story_article",_m.D)}getMetainfoFormPanelMappings(){return this.metainfoFormPanelMappings}static#e=this.\u0275fac=function(jt){return new(jt||qe)};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();var Xm=a(49431),Um=a(42582),sd=a(71049),Kc=a(21317),fm=a(62868),Nu=a(67750);let yd=(()=>{class qe{constructor(xt){this.dataAccessService=xt}search(xt,jt,jn,ro){return this.dataAccessService.getArticles({latitude:xt.toString(),longitude:jt.toString(),searchDistance:jn.toString()},{paging:{pageSize:ro,pageIdx:0},sortFields:["GEO_DISTANCE-ASC"]})}getEntityType(){return vt.t8.ARTICLE_ENTITY.type}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(po.nq))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();var gm=a(59776);const vu=(qe,Xi,xt)=>{if(0==xt||0==Xi)return`0 von ${xt}`;const jt=qe*Xi;return`${jt+1} - ${jt<(xt=Math.max(xt,0))?Math.min(jt+Xi,xt):jt+Xi} von ${xt}`};function bu(){const qe=new j.ye;return qe.itemsPerPageLabel="Elemente pro Seite:",qe.nextPageLabel="N\xe4chste Seite",qe.previousPageLabel="Vorherige Seite",qe.getRangeLabel=vu,qe}var Od=a(84005),Uu=a(67995),qu=a(82134),Bm=a(19004),Am=a(6160),hm=a(16603),fc=a(97582),Zm=a(76343);let ld=class V2{openEntity(Xi,xt){const jt=Xi.getState();Xi.setState({...jt,entityType:xt.entityType,entityId:xt.entityId})}static#e=this.\u0275fac=function(xt){return new(xt||V2)};static#t=this.\u0275prov=c.Yz7({token:V2,factory:V2.\u0275fac})};(0,fc.__decorate)([(0,lt.aU)(Zm.$.OpenEntity),(0,fc.__metadata)("design:type",Function),(0,fc.__metadata)("design:paramtypes",[Object,Zm.$.OpenEntity]),(0,fc.__metadata)("design:returntype",void 0)],ld.prototype,"openEntity",null),ld=(0,fc.__decorate)([(0,lt.ZM)({name:"edit"})],ld);var eu=a(4219),Tp=a(32562),Bu=a(51588),Hm=(a(79309),a(35475));const Cu=qe=>({count:qe});function yu(qe,Xi){if(1&qe&&(c.TgZ(0,"span",10),c._uU(1),c.qZA()),2&qe){const xt=c.oxw();c.Q6J("translateParams",c.VKq(2,Cu,xt.duplicateGroup.candidates.length)),c.xp6(),c.hij("",xt.entityResourceKeyPrefix,".list.header")}}const Xu=()=>({count:0});function wm(qe,Xi){if(1&qe&&(c.TgZ(0,"span",10),c._uU(1),c.qZA()),2&qe){const xt=c.oxw();c.Q6J("translateParams",c.DdM(2,Xu)),c.xp6(),c.hij("",xt.entityResourceKeyPrefix,".list.header")}}function Bd(qe,Xi){1&qe&&c.GkF(0)}const xm=qe=>({duplicateGroup:qe});function Pd(qe,Xi){if(1&qe&&(c.TgZ(0,"div",11),c.YNc(1,Bd,1,0,"ng-container",12),c.qZA()),2&qe){const xt=c.oxw();c.xp6(),c.Q6J("ngTemplateOutlet",xt.duplicatePropertyDiffTemplate)("ngTemplateOutletContext",c.VKq(2,xm,xt.duplicateGroup))}}function kt(qe,Xi){if(1&qe&&(c.TgZ(0,"span"),c._uU(1),c.qZA()),2&qe){const xt=c.oxw();c.xp6(),c.hij("",xt.duplicateGroup.duplicateCertainty," %")}}function Jt(qe,Xi){1&qe&&(c.TgZ(0,"span"),c._uU(1,"---"),c.qZA())}const he=qe=>({"color-box--lowCert":qe});let Re=(()=>{class qe{static#e=this.\u0275fac=function(jt){return new(jt||qe)};static#t=this.\u0275cmp=c.Xpm({type:qe,selectors:[["imx-duplicates-header"]],hostAttrs:[1,"imx-duplicates-header"],inputs:{duplicateGroup:"duplicateGroup",candidateEntityName:"candidateEntityName",entityResourceKeyPrefix:"entityResourceKeyPrefix",duplicatePropertyDiffTemplate:"duplicatePropertyDiffTemplate"},decls:17,vars:19,consts:[[1,"text-box"],[1,"text-box__header"],["class","txt-sm","translate","",3,"translateParams",4,"ngIf"],["class","text-box__list",4,"ngIf"],[3,"tooltipText","offset"],[1,"side-box"],[1,"txt-sm"],[4,"ngIf"],[1,"color-box",3,"ngClass"],[1,"color-box__progress"],["translate","",1,"txt-sm",3,"translateParams"],[1,"text-box__list"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(jt,jn){1&jt&&(c.TgZ(0,"div",0)(1,"div",1)(2,"h6"),c._uU(3),c.ALo(4,"translate"),c.qZA(),c.YNc(5,yu,2,4,"span",2)(6,wm,2,3,"span",2),c.qZA(),c.YNc(7,Pd,2,4,"div",3),c.qZA(),c.TgZ(8,"imx-tooltip",4)(9,"div",5)(10,"h6",6),c._uU(11),c.ALo(12,"translate"),c.qZA(),c.YNc(13,kt,2,1,"span",7)(14,Jt,2,0,"span",7),c.qZA()(),c.TgZ(15,"div",8),c._UZ(16,"div",9),c.qZA()),2&jt&&(c.xp6(3),c.AsE("",c.lcZ(4,13,"entity.DuplCandidatesGroup.entityName")," ",jn.duplicateGroup.id,""),c.xp6(2),c.Q6J("ngIf",jn.duplicateGroup.candidates.length),c.xp6(),c.Q6J("ngIf",!jn.duplicateGroup.candidates.length),c.xp6(),c.Q6J("ngIf",jn.duplicatePropertyDiffTemplate),c.xp6(),c.Q6J("tooltipText",jn.duplicateGroup.duplicateCertaintyInfo)("offset",300),c.xp6(3),c.hij("",c.lcZ(12,15,"entity.DuplCandidatesGroup.duplicateCertainty")," "),c.xp6(2),c.Q6J("ngIf",null!=jn.duplicateGroup.duplicateCertainty),c.xp6(),c.Q6J("ngIf",null==jn.duplicateGroup.duplicateCertainty),c.xp6(),c.Q6J("ngClass",c.VKq(17,he,jn.duplicateGroup.duplicateCertainty<=50)),c.xp6(),c.Udp("width",jn.duplicateGroup.duplicateCertainty,"%"))},dependencies:[l.mk,l.O5,l.tP,Et.Pi,Hm.K,Et.X$],styles:["\n\n\n\n\n\n\n\n\n\n\n\n[_nghost-%COMP%]{align-items:stretch;display:flex;margin:0 0 5px;position:relative;z-index:0}.text-box[_ngcontent-%COMP%]{background-color:#fff;border:.5px solid #ced4e0;box-shadow:5px 0 #fff,0 5px #fff,5px 5px #fff;flex:calc(100% - 150px);display:flex;margin:0 0 10px;padding:7px 5px 5px 15px}@media (max-width: 900px){.text-box[_ngcontent-%COMP%]{flex-direction:column;justify-content:space-between}}.text-box__header[_ngcontent-%COMP%]{flex-shrink:0}@media (max-width: 900px){.text-box__header[_ngcontent-%COMP%]{margin-bottom:5px}}.text-box__header[_ngcontent-%COMP%] > h6[_ngcontent-%COMP%]{font-size:16px;font-weight:400;line-height:22px;margin:0}.text-box__header[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{margin:0 0 5px}.text-box__list[_ngcontent-%COMP%]{align-items:flex-end;display:flex;flex:100%;flex-wrap:wrap;justify-content:flex-end}.side-box[_ngcontent-%COMP%]{padding:7px 15px;text-align:right;width:150px}.side-box[_ngcontent-%COMP%] > h6[_ngcontent-%COMP%]{margin:0 0 3px}.side-box[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:20px;line-height:22px}.color-box[_ngcontent-%COMP%]{background-color:#f4e4c3;height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.color-box[_ngcontent-%COMP%]:not(.color-box--lowCert){background-color:#f4e4c3}.color-box.color-box--lowCert[_ngcontent-%COMP%]{background-color:#f2e0d6}.color-box__progress[_ngcontent-%COMP%]{background:linear-gradient(to right,#00ffb1,#00e195);height:100%;left:0;position:absolute;top:0}"]})}return qe})();var Qe=a(74961),Ht=a(6128),qt=a(36681),Lo=a(51793);function ur(qe,Xi){if(1&qe&&(c.TgZ(0,"span"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&qe){const xt=c.oxw(4);c.xp6(),c.AsE("",null==xt.selectedIds?null:xt.selectedIds.size," ",c.lcZ(2,2,"imxplatform.duplicate.selected-elements"),"")}}function rr(qe,Xi){if(1&qe&&(c.TgZ(0,"span"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&qe){const xt=c.oxw(4);c.xp6(),c.AsE("",null==xt.selectedIds?null:xt.selectedIds.size," ",c.lcZ(2,2,"imxplatform.duplicate.selected-element"),"")}}function Oa(qe,Xi){if(1&qe&&(c.TgZ(0,"a",10),c.YNc(1,ur,3,4,"span",11)(2,rr,3,4,"span",11),c.qZA(),c._UZ(3,"span",12)),2&qe){const xt=c.oxw(3);c.xp6(),c.Q6J("ngIf",(null==xt.selectedIds?null:xt.selectedIds.size)>1),c.xp6(),c.Q6J("ngIf",1==(null==xt.selectedIds?null:xt.selectedIds.size))}}function Pa(qe,Xi){if(1&qe){const xt=c.EpF();c.TgZ(0,"imx-action-menu-item",13),c.NdJ("actionClicked",function(){c.CHM(xt);const jn=c.oxw(3);return c.KtG(jn.resolveDuplicatesEvent.emit())}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&qe&&(c.xp6(),c.hij(" ",c.lcZ(2,1,"imxplatform.duplicate.list.action.resolve-duplicate.header")," "))}function Ja(qe,Xi){if(1&qe){const xt=c.EpF();c.TgZ(0,"imx-action-menu-item",14),c.NdJ("actionClicked",function(){c.CHM(xt);const jn=c.oxw(3);return c.KtG(jn.noDuplicatesEvent.emit())}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&qe&&(c.xp6(),c.hij(" ",c.lcZ(2,1,"imxplatform.duplicate.list.action.no-duplicate.batch-header")," "))}function fs(qe,Xi){if(1&qe){const xt=c.EpF();c.TgZ(0,"imx-action-menu-item",14),c.NdJ("actionClicked",function(){c.CHM(xt);const jn=c.oxw(3);return c.KtG(jn.noDuplicatesEvent.emit())}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&qe&&(c.xp6(),c.hij(" ",c.lcZ(2,1,"imxplatform.duplicate.list.action.no-duplicate.batch-header-single")," "))}function El(qe,Xi){if(1&qe){const xt=c.EpF();c.TgZ(0,"imx-action-menu-item",15),c.NdJ("actionClicked",function(){c.CHM(xt);const jn=c.oxw(3);return c.KtG(jn.extractSelectionEvent.emit())}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&qe&&(c.Q6J("icon","icon-extract_duplicates"),c.xp6(),c.hij(" ",c.lcZ(2,2,"imxplatform.duplicate.list.action.extract-duplicate.batch-header")," "))}function Ic(qe,Xi){if(1&qe&&(c.TgZ(0,"imx-dropup-button",5),c.YNc(1,Oa,4,2,"ng-template",6),c.TgZ(2,"imx-action-menu"),c.YNc(3,Pa,3,3,"imx-action-menu-item",7)(4,Ja,3,3,"imx-action-menu-item",8)(5,fs,3,3,"imx-action-menu-item",8)(6,El,3,4,"imx-action-menu-item",9),c.qZA()()),2&qe){const xt=c.oxw(2);c.Q6J("ngClass","imx-dropup-button"),c.xp6(3),c.Q6J("ngIf",xt.selectedIds.size>1),c.xp6(),c.Q6J("ngIf",xt.selectedIds.size>1),c.xp6(),c.Q6J("ngIf",1==xt.selectedIds.size),c.xp6(),c.Q6J("ngIf",xt.selectedIds.size>1)}}function Pc(qe,Xi){if(1&qe){const xt=c.EpF();c.TgZ(0,"div",2)(1,"mat-checkbox",3),c.NdJ("change",function(jn){c.CHM(xt);const ro=c.oxw();return c.KtG(ro.selectAll(jn))}),c.qZA(),c.YNc(2,Ic,7,5,"imx-dropup-button",4),c.qZA()}if(2&qe){const xt=c.oxw();c.xp6(),c.Q6J("checked",xt.allSelected())("indeterminate",xt.someSelected()),c.xp6(),c.Q6J("ngIf",xt.selectedIds.size>0)}}function td(qe,Xi){if(1&qe){const xt=c.EpF();c.TgZ(0,"div",16)(1,"imx-tooltip",17),c.ALo(2,"translate"),c.TgZ(3,"a",18),c.NdJ("click",function(){c.CHM(xt);const jn=c.oxw();return jn.selectAllForQuickAccess(),c.KtG(jn.resolveDuplicatesEvent.emit())}),c.qZA()()()}2&qe&&(c.xp6(),c.Q6J("tooltipText",c.lcZ(2,2,"imxplatform.duplicate.list.action.resolve-duplicate.resolve-complete-group"))("offset",50))}let $c=(()=>{class qe{constructor(){this.resolveDuplicatesEvent=new c.vpe,this.noDuplicatesEvent=new c.vpe,this.extractSelectionEvent=new c.vpe}selectAll(xt){xt.checked?this.duplicateGroup.candidates.forEach(jt=>this.selectedIds.add(jt.id)):this.selectedIds.clear()}someSelected(){return this.duplicateGroup.candidates.some(xt=>this.selectedIds.has(xt.id))&&!this.allSelected()}allSelected(){return this.duplicateGroup.candidates.every(xt=>this.selectedIds.has(xt.id))}selectAllForQuickAccess(){this.duplicateGroup.candidates.forEach(xt=>this.selectedIds.add(xt.id))}static#e=this.\u0275fac=function(jt){return new(jt||qe)};static#t=this.\u0275cmp=c.Xpm({type:qe,selectors:[["imx-duplicates-footer"]],hostAttrs:[1,"imx-duplicates-footer"],inputs:{duplicateGroup:"duplicateGroup",selectedIds:"selectedIds"},outputs:{resolveDuplicatesEvent:"resolveDuplicatesEvent",noDuplicatesEvent:"noDuplicatesEvent",extractSelectionEvent:"extractSelectionEvent"},decls:2,vars:2,consts:[["class","footer-action",4,"ngIf"],["class","footer-action-right",4,"ngIf"],[1,"footer-action"],[1,"footer-action-checkbox",3,"checked","indeterminate","change"],["position","above","halign","start",3,"ngClass",4,"ngIf"],["position","above","halign","start",3,"ngClass"],["imx-dropup-trigger",""],["icon","icon-undo_duplicate",3,"actionClicked",4,"ngIf"],["icon","icon-checklist_duplicates",3,"actionClicked",4,"ngIf"],[3,"icon","actionClicked",4,"ngIf"],[1,"txt-md","txt-ellipsis"],[4,"ngIf"],[1,"icon-chevron-down"],["icon","icon-undo_duplicate",3,"actionClicked"],["icon","icon-checklist_duplicates",3,"actionClicked"],[3,"icon","actionClicked"],[1,"footer-action-right"],[3,"tooltipText","offset"],[1,"icon","icon-undo_duplicate","imx-icon-big","imx-icon-clickable",3,"click"]],template:function(jt,jn){1&jt&&c.YNc(0,Pc,3,3,"div",0)(1,td,4,4,"div",1),2&jt&&(c.Q6J("ngIf",!jn.duplicateGroup.resolved),c.xp6(),c.Q6J("ngIf",!jn.duplicateGroup.resolved))},dependencies:[l.mk,l.O5,b.oG,Qe.p,Ht.z,qt.t,Lo.F,Hm.K,dt.F,Et.X$],styles:["\n\n\n\n\n\n\n\n\n\n\n\n[_nghost-%COMP%]{background-color:#eefafa;border:.5px solid #ced4e0;display:flex;justify-content:space-between;align-items:center;height:46px}.footer-action[_ngcontent-%COMP%]{align-items:center;border-right:1px solid #ced4e0;display:flex;height:100%;padding:0 21px 0 15px;width:255px}.footer-action[_ngcontent-%COMP%]     .imx-dropup-button{width:calc(100% - 30px)}.footer-action[_ngcontent-%COMP%]     .imx-dropup-button .action-menu{align-items:center;display:flex;justify-content:space-between}.footer-action[_ngcontent-%COMP%]     .imx-dropup-button .action-menu .icon-chevron-down{color:#000;cursor:pointer;font-size:12px;font-weight:700}.footer-action[_ngcontent-%COMP%]     mat-checkbox.footer-action-checkbox{margin:0 10px 0 0}.footer-action[_ngcontent-%COMP%]     mat-checkbox.footer-action-checkbox .mat-mdc-checkbox-layout{margin-bottom:0}.footer-action-right[_ngcontent-%COMP%]{padding:0 21px 0 15px}"]})}return qe})();var ud=a(4116),qc=a(84102);function Dm(qe,Xi){if(1&qe){const xt=c.EpF();c.TgZ(0,"mat-checkbox",12),c.NdJ("change",function(jn){c.CHM(xt);const ro=c.oxw();return c.KtG(ro.fireSelectedEvent(jn))}),c.qZA()}if(2&qe){const xt=c.oxw();c.Q6J("value",xt.duplicateItem.id)("checked",xt.isItemSelected(xt.duplicateItem.id))}}function oc(qe,Xi){1&qe&&c.GkF(0)}function Zd(qe,Xi){if(1&qe){const xt=c.EpF();c.ynx(0),c.TgZ(1,"imx-action-menu-item",13),c.NdJ("click",function(){c.CHM(xt);const jn=c.oxw();return c.KtG(jn.deactivateSingleEvent.emit())}),c._uU(2," imxeventmanager.duplicate.list.action.deactivate.header "),c.qZA(),c.BQk()}2&qe&&(c.xp6(),c.Q6J("icon","icon-cross"))}const Sc=qe=>({selected:qe}),Md=qe=>({duplicateItem:qe});let Pm=(()=>{class qe{constructor(){this.hasDeactivateAction=!1,this.groupAlreadyResolved=!1,this.selectedEvent=new c.vpe,this.noDuplicateSingleEvent=new c.vpe,this.historyActionEvent=new c.vpe,this.deactivateSingleEvent=new c.vpe,this.referencesActionEvent=new c.vpe,this.contextNavigationService=(0,c.f3M)(ud.E)}fireSelectedEvent(xt){this.selectedEvent.emit(xt)}isItemSelected(xt){return this.selectedIds.has(xt)}fireHistoryActionEvent(){this.fireEntityNameIdBasedEvent(this.historyActionEvent)}fireReferencesActionEvent(){this.fireEntityNameIdBasedEvent(this.referencesActionEvent)}fireEntityNameIdBasedEvent(xt){xt.emit({entityName:this.candidateEntityName,id:this.duplicateItem.id})}static#e=this.\u0275fac=function(jt){return new(jt||qe)};static#t=this.\u0275cmp=c.Xpm({type:qe,selectors:[["imx-duplicates-item"]],hostAttrs:[1,"imx-duplicates-item"],inputs:{candidateEntityName:"candidateEntityName",duplicateItem:"duplicateItem",entityResourceKeyPrefix:"entityResourceKeyPrefix",selectedIds:"selectedIds",duplicateContentTemplate:"duplicateContentTemplate",hasDeactivateAction:"hasDeactivateAction",groupAlreadyResolved:"groupAlreadyResolved"},outputs:{selectedEvent:"selectedEvent",noDuplicateSingleEvent:"noDuplicateSingleEvent",historyActionEvent:"historyActionEvent",deactivateSingleEvent:"deactivateSingleEvent",referencesActionEvent:"referencesActionEvent"},decls:20,vars:15,consts:[[1,"list__item"],[1,"list__row-wrapper",3,"ngClass"],[1,"list__content"],[1,"list__row-checkbox"],[3,"value","checked","change",4,"ngIf"],[1,"imx-duplicates-item-wrapper"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"list__row-action"],[3,"icon","click"],["icon","icon-pencil",3,"click"],[4,"ngIf"],[3,"key","appearances","inline"],[3,"value","checked","change"],["additionalStyle","delete",3,"icon","click"]],template:function(jt,jn){1&jt&&(c.TgZ(0,"mat-list-item",0)(1,"div",1)(2,"div",2)(3,"div",3),c.YNc(4,Dm,1,2,"mat-checkbox",4),c.qZA(),c.TgZ(5,"div",5),c.YNc(6,oc,1,0,"ng-container",6),c.TgZ(7,"div",7)(8,"imx-dropup-button")(9,"imx-action-menu")(10,"imx-action-menu-item",8),c.NdJ("click",function(){return jn.noDuplicateSingleEvent.emit(jn.duplicateItem.id)}),c._uU(11," imxplatform.duplicate.list.action.no-duplicate.header "),c.qZA(),c.TgZ(12,"imx-action-menu-item",9),c.NdJ("click",function(){return jn.contextNavigationService.navigateToCoreEntityContextual(["../"+jn.candidateEntityName.toLowerCase()+"s/edit",jn.duplicateItem.id])}),c._uU(13," imxplatform.common-entity.list.edit "),c.qZA(),c.TgZ(14,"imx-action-menu-item",8),c.NdJ("click",function(){return jn.fireHistoryActionEvent()}),c._uU(15," imxplatform.common-entity.list.history "),c.qZA(),c.TgZ(16,"imx-action-menu-item",8),c.NdJ("click",function(){return jn.fireReferencesActionEvent()}),c._uU(17," imxplatform.common-entity.list.references "),c.qZA(),c.YNc(18,Zd,3,1,"ng-container",10),c.qZA()(),c._UZ(19,"imx-entity-state",11),c.qZA()()()()()),2&jt&&(c.xp6(),c.Q6J("ngClass",c.VKq(11,Sc,jn.isItemSelected(jn.duplicateItem.id))),c.xp6(3),c.Q6J("ngIf",!jn.groupAlreadyResolved),c.xp6(2),c.Q6J("ngTemplateOutlet",jn.duplicateContentTemplate)("ngTemplateOutletContext",c.VKq(13,Md,jn.duplicateItem)),c.xp6(4),c.Q6J("icon","icon-undo_duplicate"),c.xp6(4),c.Q6J("icon","icon-compare"),c.xp6(2),c.Q6J("icon","icon-link"),c.xp6(2),c.Q6J("ngIf",jn.hasDeactivateAction),c.xp6(),c.Q6J("key",jn.duplicateItem.entityState.key)("appearances",jn.duplicateItem.appearances)("inline",!1))},dependencies:[l.mk,l.O5,l.tP,b.oG,q.Tg,Qe.p,Ht.z,qt.t,qc.n],styles:["\n\n\n\n\n\n\n\n\n\n\n\n.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.list__content[_ngcontent-%COMP%]{display:-webkit-flex;display:flex;flex-direction:row;margin-bottom:5px;width:100%}.list__content-wrapper[_ngcontent-%COMP%]{display:flex}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.icon-column[_ngcontent-%COMP%]{font-size:20px;color:#000;line-height:22px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.image-column[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100px;height:100px;object-fit:cover}@media (max-width: 900px){.list__content-wrapper[_ngcontent-%COMP%]   .list__column.image-column[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:50px;height:50px}}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.image-column.placeholder[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:unset}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col3[_ngcontent-%COMP%]{flex-basis:450px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col4[_ngcontent-%COMP%]{width:20px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col5[_ngcontent-%COMP%]{flex-basis:400px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col6[_ngcontent-%COMP%]{flex-basis:200px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col7[_ngcontent-%COMP%]{margin-left:auto}.list__content[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.list__content-rows[_ngcontent-%COMP%]{width:100%}.list__row[_ngcontent-%COMP%]{background:#fff;border:.5px solid #ced4e0;box-sizing:border-box;width:100%;padding:20px;z-index:1}@media (max-width: 900px){.list__row[_ngcontent-%COMP%]{padding:10px}}.list__row-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;box-sizing:border-box;position:relative;height:inherit}.list__row-wrapper.selected[_ngcontent-%COMP%]   .list__row[_ngcontent-%COMP%]{background-color:#eefafa}.list__row-action[_ngcontent-%COMP%]{min-width:45px;min-height:100%;display:flex;flex-direction:column;padding-left:5px;text-align:center;position:relative;z-index:1}@media (max-width: 900px){.list__row-action[_ngcontent-%COMP%]{min-width:30px;padding-left:2px}}.list__row-checkbox[_ngcontent-%COMP%]{margin:auto 5px auto 0}[_nghost-%COMP%]{margin-bottom:0}[_nghost-%COMP%]   .mat-mdc-list-item.mdc-list-item[_ngcontent-%COMP%]{margin-bottom:0;padding:15px 15px 0}[_nghost-%COMP%]   .imx-duplicates-item-wrapper[_ngcontent-%COMP%]{display:flex;flex:100%;justify-content:space-between;padding:0 0 15px}[_nghost-%COMP%]:not(:last-child)   .imx-duplicates-item-wrapper[_ngcontent-%COMP%]{border-bottom:1px solid #ced4e0}@media (min-width: 901px){.list__row-checkbox[_ngcontent-%COMP%]{margin:22.5px 10px 10px 0}}@media (max-width: 900px){.list__row-checkbox[_ngcontent-%COMP%]{margin:15px 5px 5px 0}}"]})}return qe})();var Td=a(68727);let Mm=(()=>{class qe{constructor(xt,jt){this.updates=xt,this.dialog=jt}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(Td.yO),c.LFG(O.uw))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();var Gm=a(74815),Ou=a(93990),Lc=a(29384);let Pu=(()=>{class qe{constructor(xt){this.updates=xt,this.logger=(0,Je.jl)("UpdateCheckService",_o.H.name),this.logger.info("UpdateCheckService initialized and now checks every 3600 seconds");const jt=(0,tn.of)(!0).pipe((0,Lc.g)(6e4)),jn=(0,Gm.F)(36e5);(0,Ou.z)(jt,jn).subscribe(()=>{xt.isEnabled?(this.logger.info("Triggering update check"),xt.checkForUpdate().then(()=>this.logger.info("Update check successful")).catch(Bo=>this.logger.error("Update check failed: "+Bo))):this.logger.warn("Service worker is not enabled; cannot trigger update check")})}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(Td.yO))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();var tu=a(96743);let Jm=(()=>{class qe{constructor(xt,jt){this.updates=xt,this.dialog=jt,this.logger=(0,Je.jl)("UpdateNotificationService",_o.H.name),this.logger.info("Listening for application updates from ServiceWorker; ServiceWorker is "+(xt?"isEnabled":"not enabled")),this.updates.versionUpdates.pipe((0,tu.zg)(jn=>(this.logger.info("ServiceWorker VersionEvent: "+jn.type),"VERSION_READY"===jn.type?this.dialog.open(ds.$,{maxWidth:450,data:{title:"imxplatform.update-available.dialog.title",text:"imxplatform.update-available.dialog.text",iconClass:"icon-refresh",confirmButtonKey:"imxplatform.update-available.dialog.confirmButtonText",cancelButtonKey:"imxplatform.update-available.dialog.cancelButtonText",translated:!1}}).afterClosed():(0,tn.of)(!1)))).subscribe(jn=>{this.logger.debug("ServiceWorker reload confirmed: "+jn),jn&&document.location.reload()})}static#e=this.\u0275fac=function(jt){return new(jt||qe)(c.LFG(Td.yO),c.LFG(O.uw))};static#t=this.\u0275prov=c.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();a(2694),a(58755),a(86904);var gc=a(46495),Tu=(a(3928),a(40024),a(91640),a(33637),a(57863),a(42035),a(4592),a(80182),a(15755),a(27891),a(37012)),Hu=a(12),Gu=a(17299),gp=a(44840);(0,l.qS)(t.Z),(0,l.qS)(p.Z);let Pe=(()=>{class qe{static forRoot(){return{ngModule:qe,providers:[{provide:nt.W,useClass:Sn.v,multi:!1},{provide:Nn.O,useClass:Ci.m,multi:!1},{provide:Ui.e,useClass:$n.w,multi:!1},{provide:_r.g,useClass:Do.x},Wr.vB,Nr.a,Fo.W,xe.R,Xo.$]}}static#e=this.\u0275fac=function(jt){return new(jt||qe)};static#t=this.\u0275mod=c.oAB({type:qe});static#n=this.\u0275inj=c.cJS({providers:[Ue.Dx,{provide:Je.gk,useClass:Is.a,multi:!0},Rr.EG,{provide:Rr.Gy,useClass:Ys,multi:!0},{provide:Rr.Gy,useClass:um,multi:!0},{provide:Rr.Gy,useClass:pc,multi:!0},{provide:Rr.Gy,useClass:Ru,multi:!0},{provide:Rr.Gy,useClass:Bc,multi:!0},{provide:Rr.Gy,useClass:Oc,multi:!0},{provide:Rr.Gy,useClass:Xl,multi:!0},{provide:Rr.Gy,useClass:Zc,multi:!0},{provide:Rr.Gy,useClass:hu,multi:!0},{provide:Rr.Gy,useClass:Qs,multi:!0},{provide:Rr.Gy,useClass:wl,multi:!0},{provide:Rr.Gy,useClass:md,multi:!0},{provide:Rr.Gy,useClass:Xr,multi:!0},{provide:Rr.Gy,useClass:zc,multi:!0},{provide:Rr.Gy,useClass:bd,multi:!0},{provide:Rr.Gy,useClass:yc,multi:!0},{provide:Rr.Gy,useClass:im,multi:!0},{provide:Rr.Gy,useClass:Xc,multi:!0},{provide:Rr.Gy,useClass:ec,multi:!0},{provide:Rr.Gy,useClass:tc,multi:!0},{provide:Rr.Gy,useClass:Cd,multi:!0},{provide:Rr.Gy,useClass:Rm,multi:!0},{provide:Rr.Gy,useClass:om,multi:!0},Jn.FJ,{provide:Jn.mr,useClass:Ae.p,multi:!0},{provide:Jn.mr,useClass:bi.P,multi:!0},{provide:Jn.mr,useClass:ut.q,multi:!0},{provide:Jn.mr,useClass:fn.a,multi:!0},{provide:Jn.mr,useClass:ei.t,multi:!0},{provide:Jn.mr,useClass:Qn.Y,multi:!0},{provide:Jn.mr,useClass:hi.z,multi:!0},{provide:Jn.mr,useClass:qn.d,multi:!0},{provide:Jn.mr,useClass:ko.B,multi:!0},{provide:Jn.mr,useClass:gi.x,multi:!0},{provide:Jn.mr,useClass:Kt.S,multi:!0},{provide:Jn.mr,useClass:Mt.Y,multi:!0},{provide:Jn.mr,useClass:Ct.$,multi:!0},{provide:Jn.mr,useClass:wt.D,multi:!0},{provide:Jn.mr,useClass:Bi,multi:!0},{provide:Jn.mr,useClass:zi.A,multi:!0},{provide:Jn.mr,useClass:Ye,multi:!0},{provide:Jn.mr,useClass:en.x,multi:!0},{provide:Jn.mr,useClass:fa,multi:!0},{provide:Jn.mr,useClass:$r,multi:!0},{provide:Jn.mr,useClass:ia,multi:!0},{provide:ra.yq,useValue:ra.dC},{provide:cr.l,useValue:cr.ov},Kc.Ke,Bm.$,{provide:Kc.fs,useValue:Kc.j5},{provide:Wr.bS,useValue:Wr.hw},{provide:k.HO,useValue:k.Di},{provide:h.DP,useValue:h.rr},Wn.iN,{provide:Wn.ez,useValue:Wn.l0},di.X,{provide:xl.Q,useClass:xl.Z},{provide:ll.J,useClass:ll.A},{provide:tm.o,useClass:tm.N},{provide:wc.U,useClass:Id},{provide:dn.l,useClass:dn.u},{provide:Nc.e,useClass:Nc.l},{provide:_s.i,useClass:_s.r},{provide:Uc.y,useClass:Uc.k},{provide:Dd.l,useClass:Dd.q},{provide:Oi.c,useClass:Oi.u},{provide:_c.M,useClass:_c.d},{provide:Mr.U,useClass:Mr.H},{provide:Ns.R,useClass:Ns.A},{provide:gc._,useClass:gc.I},{provide:Ft.P,useClass:Ft.e},{provide:I.rD,useClass:I.hu},{provide:O.RB,useFactory:un,deps:[n.aV]},{provide:O.Bq,useValue:{scrollOptionNoop:vi(),hasBackdrop:!0,disableClose:!0,closeOnNavigation:!0,autoFocus:!0}},{provide:Nr.G,useClass:Ml,multi:!0},{provide:Nr.G,useClass:la,multi:!0},{provide:Nr.G,useClass:Pl,multi:!0},{provide:Nr.G,useClass:jl,multi:!0},{provide:Nr.G,useClass:Dn,multi:!0},{provide:Nr.G,useClass:kn,multi:!0},{provide:Nr.G,useClass:ui,multi:!0},{provide:Nr.G,useClass:mo,multi:!0},{provide:Nr.G,useClass:ks.V,multi:!0},{provide:Nr.G,useClass:In.V,multi:!0},{provide:Nr.G,useClass:ol,multi:!0},{provide:Nr.G,useClass:bc,multi:!0},{provide:Nr.G,useClass:Yr,multi:!0},{provide:Nr.G,useClass:Zr,multi:!0},{provide:Nr.G,useClass:Gs,multi:!0},{provide:Nr.G,useClass:hl,multi:!0},{provide:Nr.G,useClass:bs,multi:!0},{provide:Nr.G,useClass:sl,multi:!0},{provide:Nr.G,useClass:Ta,multi:!0},{provide:Nr.G,useClass:Ec,multi:!0},{provide:Nr.G,useClass:nl,multi:!0},{provide:Nr.G,useClass:Mo,multi:!0},{provide:Nr.G,useClass:tl,multi:!0},{provide:Nr.G,useClass:Ki,multi:!0},{provide:Nr.G,useClass:Ao.o,multi:!0},{provide:Nr.G,useClass:mc,multi:!0},{provide:Nr.G,useClass:ps,multi:!0},{provide:Nr.G,useClass:$s,multi:!0},{provide:Nr.G,useClass:vc,multi:!0},{provide:Nr.G,useClass:Ql,multi:!0},{provide:Nr.G,useClass:Ho,multi:!0},{provide:Nr.G,useClass:Ps,multi:!0},{provide:Nr.G,useClass:os,multi:!0},{provide:Nr.G,useClass:Ka,multi:!0},{provide:Nr.G,useClass:ts,multi:!0},{provide:Nr.G,useClass:rl,multi:!0},{provide:Nr.G,useClass:ya,multi:!0},{provide:Nr.G,useClass:Ji.A,multi:!0},{provide:Nr.G,useClass:vn.p,multi:!0},{provide:Nr.G,useClass:Wi,multi:!0},{provide:Um.WC,useClass:qm,multi:!0},{provide:sd.s,useValue:Xm.D,multi:!0},{provide:pm.R,useValue:$u,multi:!0},{provide:j.ye,useFactory:bu},{provide:i.TP,useClass:Je.XY,multi:!0},{provide:i.TP,useClass:Je.JV,multi:!0},{provide:c.qLn,useClass:as.L},{provide:c.ip1,useFactory:St,deps:[Je.Qj,Jm,Pu,Mm],multi:!0},Nu.W3,fm.t,an.w,bt.t,{provide:Je.vN,useClass:il,multi:!0},{provide:Je.vN,useClass:Tl.c,multi:!0},{provide:Je.vN,useClass:ac.v,multi:!0},{provide:Je.vN,useClass:xr.x,multi:!0},{provide:Je.vN,useClass:wn.o,multi:!0},{provide:Je.vN,useClass:ns.s,multi:!0},{provide:Je.vN,useClass:$i.v,multi:!0},{provide:Je.vN,useClass:No.G,multi:!0},{provide:Je.vN,useClass:fi,multi:!0},{provide:Je.vN,useClass:Nl.y,multi:!0},{provide:Je.vN,useClass:em,multi:!0},{provide:Je.vN,useClass:Kl.k,multi:!0},{provide:Je.vN,useClass:Ar.U,multi:!0},{provide:Je.vN,useClass:Sr,multi:!0},{provide:Je.vN,useClass:Fs,multi:!0},{provide:mn.z,useValue:window.sessionStorage},{provide:no.F,useClass:Go.d,multi:!0},{provide:no.F,useClass:dr,multi:!0},{provide:ed.r,useClass:$a.m,multi:!0},{provide:ed.r,useClass:Io.g,multi:!0},{provide:pn.v,useClass:bo.v,multi:!0},{provide:gm.h,useClass:yd,multi:!0},{provide:Am.t,useClass:Uu.yY,multi:!0},{provide:I.rD,useClass:ku.Y},{provide:c.soG,useClass:eu.j,deps:[Et.sK]},{provide:I.Ad,useClass:eu.j,deps:[Et.sK]},{provide:I._A,useClass:Tp._,deps:[I.Ad,Je.H1]},{provide:Od.x,useValue:(0,Od.z)()},{provide:se.eN,useValue:de.mK,multi:!0},En.j,Zi.E,oa.O,Eo.q,{provide:qu.A0,useValue:window.localStorage},{provide:Je.Lr,useClass:Je.Dt,multi:!0},{provide:ye.hr,useValue:{minThumbSize:28.5}}],imports:[l.ez,e._t,o.u5,Vt.IX,x.Bb,u.ot,m.vV,b.p9,H.FA,O.Is,P.t,G.To,B.N6,ae.Ps,J.c,q.ie,I.XK,I.Ng,j.TU,Y.Cv,K.Cq,ne.Fk,I.si,ee.LD,$.SJ,ge.KP,ue.rP,Ke.ZX,at.JX,Le.T5,R.p0,Te.g0,me.AV,Se.dp,n.U8,s.eL,o.UX,We.Bz,Et.aw,ve.S,l.ez,Oe.d,ti.U$,Xt.dp,ft.O,Rn._,Dt.y,Pt.N,r.xT,Z.dK,et.ki,ye.kb,lt.$l.forFeature([ld,hm.$W])]})}return qe})();function St(qe){return()=>qe.isInitialized()}function un(qe){return()=>qe.scrollStrategies.noop()}function vi(){return new n.uw(void 0,void 0,void 0,void 0).noop()}c.B6R(Bu.R,function(){return[l.sg,q.i$,Re,Pm,$c]},[]),c.B6R(ct.d,function(){return[l.O5,Et.Pi,Ie.h,ot.a,Fn,yt.e]},function(){return[Et.X$]}),c.B6R(oi.p,function(){return[l.mk,l.sg,l.O5,l.tP,b.oG,Y.pW,$.JX,$.TM,$.Rh,ue.Rr,Et.Pi,Rn.P,Tu.M,Hu.V,Gu.J,gp.C,Jo,hr.b,sr,Pi.G,Qr.r,Aa.I,ys._,zr.I,cs.l,xo.I,dt.F]},function(){return[l.Ov,Et.X$,En.j]}),c.B6R(kr.I,function(){return[Rn.P,oi.p]},[])},54266:(gt,X,a)=>{"use strict";var e,n;a.d(X,{D:()=>e}),(n=e||(e={})).StartJobAction=(()=>{class p{static#e=this.type="[Action] StartJobAction";constructor(o,x,u,m){this.action=o,this.jobId=x,this.entityType=u,this.entityIds=m}}return p})(),n.StartAction=(()=>{class p{static#e=this.type="[Action] StartAction";constructor(o,x,u,m){this.action=o,this.actionId=x,this.entityType=u,this.entityIds=m}}return p})(),n.EndAction=(()=>{class p{static#e=this.type="[Action] EndAction";constructor(o,x){this.actionName=o,this.actionId=x}}return p})(),n.EndJobAction=(()=>{class p{static#e=this.type="[Action] EndJobAction";constructor(o){this.jobId=o}}return p})()},16603:(gt,X,a)=>{"use strict";a.d(X,{$W:()=>c,bN:()=>p});var e=a(97582),n=a(3579),s=a(54266),l=a(19212);function p(o,x,u){return o.currentActions.some(m=>m.blocking&&m.entityIds.includes(u)&&m.entityType===x)}let c=class Y2{startJobAction(x,u){const m=x.getState();x.patchState({currentActions:[...m.currentActions,{actionName:u.action.getActionKey(),blocking:u.action.isBlocking(),entityType:u.entityType,entityIds:u.entityIds,jobId:u.jobId}]})}startAction(x,u){const m=x.getState();x.patchState({currentActions:[...m.currentActions,{actionName:u.action.getActionKey(),blocking:u.action.isBlocking(),actionId:u.actionId,entityType:u.entityType,entityIds:u.entityIds}]})}endJobAction(x,u){const b=x.getState().currentActions.filter(I=>function i(o){return"jobId"in o}(I)&&I.jobId!==u.jobId);x.patchState({currentActions:[...b]})}endAction(x,u){const b=x.getState().currentActions.filter(I=>function t(o){return"actionId"in o}(I)&&I.actionId!==u.actionId);x.patchState({currentActions:[...b]})}static#e=this.\u0275fac=function(u){return new(u||Y2)};static#t=this.\u0275prov=l.Yz7({token:Y2,factory:Y2.\u0275fac})};(0,e.__decorate)([(0,n.aU)(s.D.StartJobAction),(0,e.__metadata)("design:type",Function),(0,e.__metadata)("design:paramtypes",[Object,s.D.StartJobAction]),(0,e.__metadata)("design:returntype",void 0)],c.prototype,"startJobAction",null),(0,e.__decorate)([(0,n.aU)(s.D.StartAction),(0,e.__metadata)("design:type",Function),(0,e.__metadata)("design:paramtypes",[Object,s.D.StartAction]),(0,e.__metadata)("design:returntype",void 0)],c.prototype,"startAction",null),(0,e.__decorate)([(0,n.aU)(s.D.EndJobAction),(0,e.__metadata)("design:type",Function),(0,e.__metadata)("design:paramtypes",[Object,s.D.EndJobAction]),(0,e.__metadata)("design:returntype",void 0)],c.prototype,"endJobAction",null),(0,e.__decorate)([(0,n.aU)(s.D.EndAction),(0,e.__metadata)("design:type",Function),(0,e.__metadata)("design:paramtypes",[Object,s.D.EndAction]),(0,e.__metadata)("design:returntype",void 0)],c.prototype,"endAction",null),c=(0,e.__decorate)([(0,n.ZM)({name:"asynchActionStateModel",defaults:{currentActions:[]}})],c)},76343:(gt,X,a)=>{"use strict";var e;a.d(X,{$:()=>e}),(e||(e={})).OpenEntity=(()=>{class l{static#e=this.type="[Edit] OpenEntity";constructor(t,p){this.entityType=t,this.entityId=p}}return l})()},43040:(gt,X,a)=>{"use strict";a.d(X,{L5:()=>l,l:()=>n,zD:()=>s});var e=a(86825);const n=[(0,e.X$)("openClose",[(0,e.SB)("open",(0,e.oB)({"max-height":"1000px",opacity:"1"})),(0,e.SB)("closed",(0,e.oB)({"max-height":"0",opacity:"0",overflow:"hidden"})),(0,e.eR)("open => closed",[(0,e.jt)("0.5s ease-out")]),(0,e.eR)("closed => open",[(0,e.jt)("0.5s ease-in")])])],s=[(0,e.X$)("openClose",[(0,e.SB)("open",(0,e.oB)({"max-height":"10000px",opacity:"1"})),(0,e.SB)("closed",(0,e.oB)({"max-height":"0",opacity:"0",overflow:"hidden"})),(0,e.eR)("open => closed",[(0,e.jt)("0.5s ease-out")]),(0,e.eR)("closed => open",[(0,e.jt)("0.5s ease-in")])])],l=[(0,e.X$)("openClose",[(0,e.SB)("open",(0,e.oB)({height:"*",opacity:"1"})),(0,e.SB)("closed",(0,e.oB)({height:"0",opacity:"0"})),(0,e.eR)("open => closed",[(0,e.jt)("0.2s ease-out")]),(0,e.eR)("closed => open",[(0,e.jt)("0.2s ease-in")])]),(0,e.X$)("activeInactive",[(0,e.SB)("active",(0,e.oB)({background:"white","border-color":"#ced4e0"})),(0,e.SB)("inactive",(0,e.oB)({background:"inherit","border-color":"transparent"})),(0,e.eR)("active => inactive",[]),(0,e.eR)("inactive => active",[(0,e.jt)("0.5s ease-in")])])]},4219:(gt,X,a)=>{"use strict";a.d(X,{j:()=>e});class e extends String{constructor(s){super(""),this.service=s}toString(){return this.service.currentLang}}},38347:(gt,X,a)=>{"use strict";a.d(X,{t:()=>s});var e=a(25313),n=a(19352);function s(l,i,t,p){if(!l)throw new Error("cannot prepareTable for undefined formArray");const c=new e.by(l.controls);return p&&c.data.sort((o,x)=>p(o,x)),i&&l.valueChanges.pipe((0,n.R)(t)).subscribe(o=>{const x=new e.by(l.controls);p&&x.data.sort((u,m)=>p(u,m)),i(x)}),c}},41621:(gt,X,a)=>{"use strict";a.d(X,{A2:()=>b,Bd:()=>O,Cp:()=>p,Hn:()=>i,JD:()=>x,NT:()=>s,QK:()=>m,Qi:()=>o,Qr:()=>H,SA:()=>P,Uz:()=>c,WQ:()=>B,X_:()=>G,Xf:()=>t,bi:()=>u,dn:()=>q,gN:()=>ae,iH:()=>J,ip:()=>j,jg:()=>l,l$:()=>I});var e=a(19212),n=a(21473);function s(Y){return Object.keys(Y).filter(K=>Y[K]).reduce((K,ne)=>{const ee={};return ee[ne]=Y[ne],Object.assign(K,ee)},{})}function l(Y,K){const ne=(0,n.HD)(K)?K.split("."):K;if(Y)return(Y=Y[ne[0]])&&ne.length>1?l(Y,ne.slice(1)):Y}function i(Y,K,ne){const ee=K.split(".");ee.reduce(($,ue,ge)=>{if(ge!==ee.length-1)return $[ue];$[ue]=ne},Y)}function t(){return Math.random().toString(36).slice(-4)}function p(){return t()+t()}function c(){return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}function o(Y,K,ne){if(void 0!==Y&&void 0!==K){const ee=Y[ne],$=K[ne];return ee&&$?ee.localeCompare($):0}return 0}function x(Y,K,ne){return"string"==typeof Y.label&&"string"==typeof K.label?Y.label.localeCompare(K.label):o(Y.label,K.label,ne)}function u(Y,K){return!!Y&&Object.keys(Y).filter(ne=>"_entityType"!==ne).filter(ne=>"id"!==ne).some(ne=>!K&&Y[ne]&&""!==Y[ne]||K===ne&&Y[ne]&&""!==Y[ne])}function m(Y){return!!(0,n.Kn)(Y)&&"I18n"===Y._entityType}function b(Y){return!!(0,n.Kn)(Y)&&"name"in Y}function I(Y,K){return K in Y}function H(Y){return 0===Object.keys(Y).length||Object.keys(Y).map(K=>null==Y[K]||""===Y[K]||"object"==typeof Y[K]&&H(Y[K])).reduce((K,ne)=>K&&ne)}function O(Y){Object.keys(Y.controls).filter(K=>"_entityType"!==K).filter(K=>"id"!==K).forEach(K=>Y.get(K).setValue(""))}function P(Y,K){const ne=Y[K];if(ne&&ne.length>0)return ne;{const ee=Object.keys(Y).filter($=>"id"!==$&&"_entityType"!==$).find($=>null!=Y[$]&&""!==Y[$]);return ee?Y[ee]+"["+ee+"]":""}}function G(Y){return 0!==Y&&1e8!==Y}function B(Y){return 0!==Y.id&&1e8!==Y.id}function ae(Y){return 0===Y.length||!Y.some(K=>K!==Y[0])}function J(Y,K){return 0===Y.length||!Y.some(ne=>o(Y[0],ne,K))}function q(Y,K){let ne="";return(0,e.X6Q)()&&(ne+=Y.id+"  ",Object.keys(K.controls).filter(ee=>"id"!==ee&&"_entityType"!==ee).forEach(ee=>{ne+=ee+"::"+j(K.get(ee))+" | "})),ne}function j(Y){if((0,e.X6Q)()){let K="";return Y.errors&&(K=Object.keys(Y.errors).join(",")),"valid: "+Y.valid+" touched: "+Y.touched+" dirty: "+Y.dirty+" errors: "+K}return""}},76503:(gt,X,a)=>{"use strict";function e(s,...l){for(let i=0;i<l.length;i++)s=s.replace(`{${i}}`,l[i]);return s}function n(s){const l={};return s.split("&").forEach(i=>{if(i.includes("=")){const t=i.split("=");l[t[0]]=t[1]}}),l}a.d(X,{U:()=>e,i:()=>n})},473:(gt,X,a)=>{"use strict";function e(n){return n instanceof TypeError}a.d(X,{w:()=>e})},99123:(gt,X,a)=>{"use strict";a.d(X,{E8:()=>c,F4:()=>t,cR:()=>p,dI:()=>l,pk:()=>e,y5:()=>s,yi:()=>n,zy:()=>i});const e="admin",n="imx.datamanager";function s(o){return p(o)||l(o)||i(o)}function l(o){return o.startsWith("imx.")}function i(o){return o.startsWith("ws.")}function t(o){return"ws.maintenance"===o.toLowerCase()}function p(o){return o.toLowerCase()===e}function c(o){return o.toLowerCase()===n}},8111:(gt,X,a)=>{"use strict";a.r(X),a.d(X,{ADDRESSBASE_DATA_SOURCE:()=>k.M,AddressbaseAutocompleteService:()=>ka.s,AddressbaseCreateDialogComponent:()=>dx,AddressbaseDeleteAction:()=>ax.j,AddressbaseDuplicateDefinitionFormHandlerService:()=>Qd,AddressbaseEntityPermissionService:()=>uf.B,AddressbaseFilterComponent:()=>Xr,AddressbaseFilterFormHandlerService:()=>se.ru,AddressbaseFormHandlerService:()=>t.D6,AddressbaseResolverService:()=>Bf,BusinessTypeOptionProviderService:()=>Jf,CampingAttributeOptionProviderService:()=>j_.x,CampingEndowmentOptionProviderService:()=>Yg.O,CertificateProviderService:()=>Fc.q,ContactAddressbaseAutocompleteService:()=>ht,ConventionCenterRoomAttributeOptionProviderService:()=>zl.U,ConventionLocationAttributeOptionProviderService:()=>Oh.J,ConventionLocationTypeOptionProviderService:()=>yh.j,DayDefinitionOptionProviderService:()=>Hl.q,DistanceDefinitionOptionProviderService:()=>uu.G,DuplicatesRightSlotAddressbaseComponent:()=>z_.S,Gastro2BusinessTypeOptionProviderService:()=>wg.J,Gastro2CuisineTypeOptionProviderService:()=>Wg.t,Gastro2EndowmentOptionProviderService:()=>vh.k,IMXTOOLS_ADDRESSBASE_DATA_OBJECT_MEDIUM_INITIALIZER:()=>b.g,IMXTOOLS_ADDRESSBASE_DUPLICATE_CONTENT_SLOT_TOKEN:()=>Tn.qd,IMXTOOLS_ADDRESSBASE_DUPLICATE_DEFINITION_FORM_EXTENSIONS:()=>Jd,IMXTOOLS_ADDRESSBASE_EDIT_VOTER:()=>$a,IMXTOOLS_ADDRESSBASE_EXTENDED_CRITERIA_DEFS:()=>tt.C,IMXTOOLS_ADDRESSBASE_FILTER_FORM_CONFIGURATION:()=>se.KX,IMXTOOLS_ADDRESSBASE_FILTER_FORM_EXTENSIONS:()=>se.Wk,IMXTOOLS_ADDRESSBASE_FORM_CONFIGURATION:()=>t.qX,IMXTOOLS_ADDRESSBASE_FORM_EXTENSIONS:()=>t.sy,IMXTOOLS_ADDRESSBASE_FORM_VALIDATOR:()=>t.VH,IMXTOOLS_EDIT_TITLES_SLOT_TOKEN:()=>Tn.iz,IMXTOOLS_OFFER_DATA_OBJECT_MEDIUM_INITIALIZER:()=>Gp.o,IMXTOOLS_OPENINGHOURS_DEFINITION_VOTER:()=>t.v8,IMX_TOOLS_MODULES_FIELD_COLLECTION:()=>or.Re,IbeDeskline3HolidayThemeOptionProviderService:()=>rx.b,ImxToolsConfigParameter:()=>hs.s,ImxToolsDataAccessService:()=>tt.N,ImxToolsEntityCollectionsService:()=>We.G,ImxToolsModule:()=>eg,LocationDefinitionOptionProviderService:()=>et,MODULE_PL_ACCOMMODATION_ID:()=>or.lt,MODULE_PL_TOUR_ID:()=>or.$C,OpeningHoursInformationFormPanelComponent:()=>Mo.R7,PaymentOptionOptionProviderService:()=>Y_.F,PriceCurrencyOptionProviderService:()=>pf.V,PriceItemCategoryProviderService:()=>Gf.K,SharedImxToolsModule:()=>e.a,TourAttributeOptionProviderService:()=>W_.N,TourExpositionOptionProviderService:()=>E_.E,TourMonthOptionProviderService:()=>mf.h,TourTrackTypeOptionProviderService:()=>Np.A,addCertificate:()=>or.A7,certificateClassifications:()=>or.fK,ibeDeskline3Fields:()=>or.iN,ibeDeskline3ModuleField:()=>or.Yu,openingHoursInformationFields:()=>pg.zI});var e=a(4220),n=a(22941),s=a(21473),l=a(85829),i=a(19212),t=a(1329),p=a(3873),c=a(15813),o=a(17301),x=a(96814),u=a(56223),m=a(71365),b=a(46911),I=a(49193),H=a(23291),O=a(96124),P=a(19352),G=a(97734),B=a(17700),ae=a(75661),J=a(30968),q=a(41780),j=a(24365),Y=a(28907),ne=(a(1009),a(92596)),ee=a(22194);function $(te,Pn){1&te&&i.GkF(0)}function ue(te,Pn){1&te&&i.GkF(0)}function ge(te,Pn){if(1&te&&(i.TgZ(0,"span",4),i.YNc(1,ue,1,0,"ng-container",1),i.qZA()),2&te){i.oxw();const E=i.MAs(6);i.xp6(),i.Q6J("ngTemplateOutlet",E)}}function Ke(te,Pn){if(1&te&&(i._UZ(0,"span",5),i.ALo(1,"translate")),2&te){const E=i.oxw();i.Q6J("ngClass",E.currentIcon+(E.isLocked?" locked":""))("matTooltip",i.lcZ(1,2,E.isLocked?"imxplatform.component.lockable-input.locked":"imxplatform.component.lockable-input.unlocked"))}}const at="icon-lock",Le="icon-unlock";let R=(()=>{class te{constructor(){this.isLocked=!1,this.currentIcon=Le}ngOnInit(){const E=this.formHandler.readLockedImportProperties();this.isLocked=!0,this.fields.forEach(_e=>{!E.some(Ln=>Ln===_e)&&this.isLocked&&(this.isLocked=!1)}),this.currentIcon=this.isLocked?at:Le}toggle(){this.isLocked=!this.isLocked,this.currentIcon=this.isLocked?at:Le,this.fields.forEach(E=>{this.isLocked?this.formHandler.appendLockImportProperty(E):this.formHandler.removeLockImportProperty(E)}),this.form.markAsDirty()}static#e=this.\u0275fac=function(_e){return new(_e||te)};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-lockable-multi-input"]],inputs:{fields:"fields",formHandler:"formHandler",form:"form"},decls:7,vars:1,consts:[[1,"lockable-icon",3,"click"],[4,"ngTemplateOutlet"],["readonly",""],["lockableIcon",""],[1,"lockable-icon","readonly"],["matTooltipPosition","above",1,"icon","imx-icon-small",3,"ngClass","matTooltip"]],template:function(_e,Me){if(1&_e&&(i.ynx(0),i.TgZ(1,"a",0),i.NdJ("click",function(){return Me.toggle()}),i.YNc(2,$,1,0,"ng-container",1),i.qZA(),i.YNc(3,ge,2,1,"ng-template",null,2,i.W1O),i.BQk(),i.YNc(5,Ke,2,4,"ng-template",null,3,i.W1O)),2&_e){const Ln=i.MAs(6);i.xp6(2),i.Q6J("ngTemplateOutlet",Ln)}},dependencies:[x.mk,x.tP,ne.gM,ee.F,m.X$],styles:[".lockable-icon[_ngcontent-%COMP%]{margin-left:5px;width:35px}.readonly[_ngcontent-%COMP%]{cursor:unset}.locked[_ngcontent-%COMP%]{font-weight:700}"]})}return te})();var Te=a(47378),me=a(25313),Se=a(79309),Ue=a(17927),We=a(33066);let et=(()=>{class te extends l.OptionProvider{constructor(E,_e,Me){super(),this.collectionsService=E,this.entitiesMgrService=_e,this.translateService=Me}getOptions(E,_e){return this.collectionsService.getAllLocationDefinition().pipe((0,O.U)(Me=>Me.map(Ln=>({label:Ln.i18nName?Ln.i18nName:"",value:Ln.id}))))}getLocationDefinitions(){return this.entitiesMgrService.getAllEntitiesOfType("LocationDefinition").pipe((0,O.U)(E=>E.items.map(_e=>_e).sort((_e,Me)=>(0,l.compareI18n)(_e.i18nName,Me.i18nName,this.translateService.currentLang))))}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.LFG(We.G),i.LFG(l.ImxEntitiesMgrService),i.LFG(m.sK))};static#t=this.\u0275prov=i.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"})}return te})();var Et=a(77958),lt=a(1614);function Vt(te,Pn){if(1&te&&(i.ynx(0),i._uU(1),i.BQk()),2&te){const E=i.oxw().$implicit;i.xp6(),i.hij(" ",E.locationInfo," ")}}function r(te,Pn){if(1&te&&i._UZ(0,"imx-form-control",9),2&te){const E=i.oxw().ngIf,_e=i.oxw(4);i.Q6J("field",_e.formHandler.formConfiguration.findFormFieldById("locations:locationInfo"))("control",E.controls.locationInfo)("form",_e.formHandler.formGroup)("formHandler",_e.formHandler)("config",_e.formHandler.formConfiguration)}}function Z(te,Pn){if(1&te&&(i.ynx(0),i.YNc(1,r,1,5,"imx-form-control",8),i.BQk()),2&te){const E=i.oxw().$implicit,_e=i.oxw(3);i.xp6(),i.Q6J("ngIf",_e.isLocationWithInfo(E))}}function Pt(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"div",1)(1,"imx-base-checkbox",6),i.NdJ("checkboxClick",function(Me){const to=i.CHM(E).$implicit,ha=i.oxw(3);return i.KtG(ha.handleCheckboxClick(to,Me.isChecked))}),i.qZA(),i.TgZ(2,"span",7),i._uU(3),i.ALo(4,"readI18n"),i.qZA(),i.YNc(5,Vt,2,1,"ng-container",2)(6,Z,2,1,"ng-container",2),i.qZA()}if(2&te){const E=Pn.$implicit,_e=i.oxw(3);i.xp6(),i.Q6J("disableControl",_e.disableCheckbox)("formControl",_e.locationIdCtrlMap.get(E.id)),i.xp6(2),i.Oqu(i.lcZ(4,5,E.i18nName)),i.xp6(2),i.Q6J("ngIf",!_e.getFormRowByLocationDefinitionId(E.id)),i.xp6(),i.Q6J("ngIf",_e.getFormRowByLocationDefinitionId(E.id))}}function Oe(te,Pn){if(1&te&&(i.ynx(0),i.TgZ(1,"div",3)(2,"h3",4),i._uU(3,"imxtools.addressbase.edit.panels.base-data.locations"),i.qZA(),i.YNc(4,Pt,7,7,"div",5),i.qZA(),i.BQk()),2&te){const E=i.oxw().ngIf;i.xp6(4),i.Q6J("ngForOf",E)}}function ye(te,Pn){if(1&te&&(i.TgZ(0,"div",1),i.YNc(1,Oe,5,1,"ng-container",2),i.qZA()),2&te){const E=Pn.ngIf;i.xp6(),i.Q6J("ngIf",E.length>0)}}let ve=(()=>{class te{constructor(E,_e,Me,Ln){this.entitiesMgr=E,this.configurationProvider=_e,this.changeDetectorRef=Me,this.locationDefinitionOptionProviderService=Ln,this.locationDefinitions=(0,I.of)([]),this.locationIdCtrlMap=new Map,this.disableCheckbox=!1}ngOnInit(){this.locationDefinitions=this.loadLocationDefinitions(),this.disableCheckbox=this.determinePermissions()}determinePermissions(){return this.formHandler.formConfiguration.findFormFieldById("locations").readOnly||this.record&&this.record.entityState.key===Se.Zr.key}loadLocationDefinitions(){return this.locationDefinitionOptionProviderService.getLocationDefinitions().pipe((0,Ue.b)(E=>this.setMap(E)))}setMap(E){E.forEach(_e=>{const Me=new u.p4,Ln=void 0!==this.getFormRowByLocationDefinitionId(_e.id);Me.setValue(Ln),this.locationIdCtrlMap.set(_e.id,Me)})}isLocationWithInfo(E){return!!E.withInfo&&E.withInfo}handleCheckboxClick(E,_e){_e?this.addLocation(E):this.removeLocation(E)}getFormRowByLocationDefinitionId(E){return this.formHandler.getFormArrayControl("locations").controls.find(_e=>!!_e.get("locationDefinition")&&_e.get("locationDefinition").value===E)}addLocation(E){const _e=this.formHandler.addNewCollectionRow("locations",!1,this.formHandler.getFormArrayControl("locations"));_e&&(_e.controls.locationDefinition.setValue(E.id),this.formHandler.formGroup.get("locations").push(_e),this.locationIdCtrlMap.get(E.id).setValue(!0))}removeLocation(E){const _e=this.getFormRowByLocationDefinitionId(E.id);if(_e){const Me=this.formHandler.getFormArrayControl("locations").controls.indexOf(_e);-1!==Me&&(this.formHandler.removeLineFromCollection("locations",Me,this.formHandler.formGroup),this.locationIdCtrlMap.get(E.id).setValue(!1))}}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(s.qB),i.Y36(s.Pc),i.Y36(i.sBO),i.Y36(et))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-edit-geo-location-definitions"]],inputs:{formHandler:"formHandler",record:"record"},decls:3,vars:5,consts:[["class","form__content-row",4,"ngIf"],[1,"form__content-row"],[4,"ngIf"],[1,"form__content-group","location"],["translate",""],["class","form__content-row",4,"ngFor","ngForOf"],[3,"disableControl","formControl","checkboxClick"],[1,"locationInfo__content"],[3,"field","control","form","formHandler","config",4,"ngIf"],[3,"field","control","form","formHandler","config"]],template:function(_e,Me){1&_e&&(i.YNc(0,ye,2,1,"div",0),i.ALo(1,"async"),i.ALo(2,"async")),2&_e&&i.Q6J("ngIf",i.lcZ(1,1,Me.formHandler.hasReadPermission("locationDefinition"))&&i.lcZ(2,3,Me.locationDefinitions))},dependencies:[Et.G,Y.A,x.sg,x.O5,u.JJ,u.oH,m.Pi,lt.j,x.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-row[_ngcontent-%COMP%]{align-items:center;-moz-column-gap:10px;column-gap:10px;margin-bottom:10px}.form__content-row[_ngcontent-%COMP%] > .imx-form-control[_ngcontent-%COMP%]{margin-bottom:0}"],changeDetection:0})}return te})();const ft=["editGeoRegionComponent"],Dt=()=>["geoInfo"];function Rn(te,Pn){if(1&te&&(i.ynx(0),i._UZ(1,"imx-lockable-multi-input",13),i.BQk()),2&te){const E=i.oxw(2);i.xp6(),i.Q6J("fields",i.DdM(3,Dt))("formHandler",E.formHandler)("form",E.formHandler.formGroup)}}function ti(te,Pn){if(1&te&&(i.ynx(0),i._UZ(1,"imx-edit-geo-regions-advanced",11,14),i.BQk()),2&te){const E=i.oxw(2);i.xp6(),i.Q6J("formHandler",E.formHandler)("record",E.record)}}function Xt(te,Pn){if(1&te&&i._UZ(0,"imx-edit-geo-regions",15,14),2&te){const E=i.oxw(2);i.Q6J("formHandler",E.formHandler)}}function Je(te,Pn){1&te&&(i.TgZ(0,"p",22),i._uU(1,"imxplatform.common.no-records"),i.qZA())}function dt(te,Pn){1&te&&i._UZ(0,"tr",35)}function Ie(te,Pn){1&te&&i._UZ(0,"tr",36)}function ot(te,Pn){if(1&te&&(i.TgZ(0,"th",37),i._uU(1),i.qZA()),2&te){const E=i.oxw(4);i.xp6(),i.Oqu(E.formHandler.getFormFieldLabel("distances:distanceDefinition"))}}function ct(te,Pn){if(1&te&&(i.TgZ(0,"td",38)(1,"span"),i._uU(2),i.ALo(3,"readI18n"),i.qZA()()),2&te){const E=Pn.$implicit;i.xp6(2),i.Oqu(i.lcZ(3,1,E.controls.distanceDefinition.value.i18nName))}}function tn(te,Pn){if(1&te&&(i.TgZ(0,"th",37),i._uU(1),i.qZA()),2&te){const E=i.oxw(4);i.xp6(),i.Oqu(E.formHandler.getFormFieldLabel("distances:distanceDefinitionGroup"))}}function yi(te,Pn){if(1&te&&(i.TgZ(0,"td",39)(1,"span"),i._uU(2),i.ALo(3,"readI18n"),i.qZA()()),2&te){const E=Pn.$implicit;i.Q6J("formGroup",E),i.xp6(2),i.Oqu(i.lcZ(3,2,E.controls.distanceDefinitionGroup.value))}}function ni(te,Pn){if(1&te&&(i.TgZ(0,"th",37),i._uU(1),i.qZA()),2&te){const E=i.oxw(4);i.xp6(),i.Oqu(E.formHandler.getFormFieldLabel("distances:distance"))}}function sn(te,Pn){if(1&te&&(i.TgZ(0,"td",39),i._UZ(1,"imx-form-control",40),i.qZA()),2&te){const E=Pn.$implicit,_e=i.oxw(4);i.Q6J("formGroup",E),i.xp6(),i.Q6J("field",_e.formHandler.formConfiguration.findFormFieldById("distances:distance"))("control",E.controls.distance)("form",_e.formHandler.formGroup.get("distances"))("formHandler",_e.formHandler)("config",_e.formHandler.formConfiguration)}}function bn(te,Pn){1&te&&i._UZ(0,"th",41)}function vt(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"a",44),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw().$implicit,Ln=i.oxw(4);return i.KtG(Ln.formHandler.removeLineFromCollection("distances",Ln.distanceDataSource.filteredData.indexOf(Me)))}),i.qZA()}}function nn(te,Pn){if(1&te&&(i.TgZ(0,"td",42),i.YNc(1,vt,1,0,"a",43),i.qZA()),2&te){const E=Pn.$implicit,_e=i.oxw(4);i.Q6J("formGroup",E),i.xp6(),i.Q6J("hasFieldWritePermission","distances")("hasFieldWritePermissionFormHandler",_e.formHandler)}}function rn(te,Pn){if(1&te&&(i.TgZ(0,"table",23),i.YNc(1,dt,1,0,"tr",24)(2,Ie,1,0,"tr",25),i.ynx(3,26),i.YNc(4,ot,2,1,"th",27)(5,ct,4,3,"td",28),i.BQk(),i.ynx(6,29),i.YNc(7,tn,2,1,"th",27)(8,yi,4,4,"td",30),i.BQk(),i.ynx(9,31),i.YNc(10,ni,2,1,"th",27)(11,sn,2,6,"td",30),i.BQk(),i.ynx(12,32),i.YNc(13,bn,1,0,"th",33)(14,nn,2,3,"td",34),i.BQk(),i.qZA()),2&te){const E=i.oxw(3);i.Q6J("dataSource",E.distanceDataSource),i.xp6(),i.Q6J("matHeaderRowDef",E.distanceColumns),i.xp6(),i.Q6J("matRowDefColumns",E.distanceColumns)}}function ii(te,Pn){if(1&te&&i._UZ(0,"imx-form-control",45),2&te){const E=i.oxw(3);i.Q6J("field",E.formHandler.formConfiguration.findFormFieldById("addDistanceField"))("control",E.formHandler.formGroup.get("addDistanceField"))("form",E.formHandler.formGroup)("formHandler",E.formHandler)("config",E.formHandler.formConfiguration)}}function Oo(te,Pn){if(1&te&&(i.TgZ(0,"div",16)(1,"div",17)(2,"h3",3),i._uU(3,"imxtools.addressbase.edit.panels.base-data.distance-definitions"),i.qZA(),i.YNc(4,Je,2,0,"ng-template",null,18,i.W1O),i.TgZ(6,"div",19),i.YNc(7,rn,15,3,"table",20),i.qZA(),i.YNc(8,ii,1,5,"imx-form-control",21),i.qZA()()),2&te){const E=i.MAs(5),_e=i.oxw(2);i.xp6(7),i.Q6J("ngIf",_e.distanceDataSource&&_e.distanceDataSource.data.length>0)("ngIfElse",E),i.xp6(),i.Q6J("hasFieldWritePermission","distances")("hasFieldWritePermissionFormHandler",_e.formHandler)}}function no(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"div",1),i._UZ(1,"div",2),i.TgZ(2,"h2")(3,"span",3),i._uU(4,"imxplatform.common-entity.edit.panels.geo.title"),i.qZA(),i.YNc(5,Rn,2,4,"ng-container",4),i.qZA(),i.TgZ(6,"imx-edit-geo-info",5),i.NdJ("locationSelection",function(Me){i.CHM(E);const Ln=i.MAs(12),to=i.oxw();return Ln.overtakeLocation(Me),to.editGeoRegionComponent.overtakeRegionsFromLocation(Me),i.KtG(Ln.loadLocationsForZipcodeAndLocation())}),i.TgZ(7,"button",6),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw();return i.KtG(Me.copyFromContact())}),i.ALo(8,"async"),i._uU(9),i.ALo(10,"translate"),i.qZA()(),i.TgZ(11,"imx-edit-geo-location",7,8),i.NdJ("locationChanged",function(Me){i.CHM(E);const Ln=i.oxw();return i.KtG(Ln.editGeoRegionComponent.overtakeRegionsFromLocation(Me))}),i.qZA(),i.YNc(13,ti,3,2,"ng-container",9)(14,Xt,2,1,"ng-template",null,10,i.W1O),i._UZ(16,"imx-edit-geo-location-definitions",11),i.YNc(17,Oo,9,4,"div",12),i.ALo(18,"async"),i.ALo(19,"async"),i.qZA()}if(2&te){const E=i.MAs(15),_e=i.oxw();i.xp6(),i.uIk("data-scroll-id","geo"),i.xp6(4),i.Q6J("ngIf",_e.showLockGeoInfoCoordinates),i.xp6(),i.Q6J("formHandler",_e.formHandler)("record",_e.record),i.xp6(),i.Q6J("disabled",i.lcZ(8,13,_e.overtakeFromContactDisabled$)),i.xp6(2),i.Oqu(i.lcZ(10,15,"imxtools.addressbase.edit.panels.geo.get-from-contact")),i.xp6(2),i.Q6J("formHandler",_e.formHandler)("record",_e.record),i.xp6(2),i.Q6J("ngIf",_e.advancedRegionManagementEnabled)("ngIfElse",E),i.xp6(3),i.Q6J("formHandler",_e.formHandler)("record",_e.record),i.xp6(),i.Q6J("ngIf",i.lcZ(18,17,_e.distanceDefinitionsAvailable)&&i.lcZ(19,19,_e.formHandler.hasReadPermission("distances")))}}let Li=(()=>{class te extends l.AbstractCoreDataObjectFormPanelComponent{constructor(E,_e,Me,Ln,to){super(E,_e),this.entitiesMgr=E,this.dialog=_e,this.changeDetectorRef=Me,this.configurationProvider=Ln,this.userMessageService=to,this.distanceDefinitionsAvailable=(0,I.of)(!1)}ngOnInit(){super.ngOnInit(),this.showLockGeoInfoCoordinates=this.configurationProvider.getBooleanFromSnapshot(l.ImxPlatformConfigParameter.IMXPLATFORM_LOCK_GEO_INFO_COORDINATES),this.overtakeFromContactDisabled$=(0,H.aj)([this.formHandler.hasEditPermission("geoInfo"),this.formHandler.hasSavePermission()]).pipe((0,O.U)(([E,_e])=>!E||!_e)),this.distanceDefinitionsAvailable=this.baseEntityAvailable("DistanceDefinition"),this.initDistanceTable()}get advancedRegionManagementEnabled(){return"true"==this.configurationProvider.getStringFromSnapshot(l.ImxPlatformConfigParameter.PLATFORM_ADVANCED_REGION_MANAGEMENT_ENABLED,"false")}copyFromContact(){this.copyFormControlValue("contact1.address.street","geoInfo.street"),this.copyFormControlValue("contact1.address.streetNo","geoInfo.streetNo"),this.copyFormControlValue("contact1.address.zipcode","geoInfo.zipcode"),this.copyFormControlValue("contact1.address.city","geoInfo.city"),this.copyFormControlValue("contact1.address.country","geoInfo.country")}initDistanceTable(){this.formHandler.formGroup.get("distances")&&(this.distanceDataSource=this.prepareTable(this.formHandler.formGroup.get("distances"),E=>this.distanceDataSource=E),this.distanceColumns=this.determineTableColumns("distances")),this.formHandler.formGroup.controls.addDistanceField&&this.formHandler.formGroup.controls.addDistanceField.valueChanges.pipe((0,P.R)(this.destroy$),(0,G.h)(E=>E!==l.SELECT_PLACEHOLDER_VALUE)).subscribe(E=>{this.entitiesMgr.getEntityWithIdOfType("DistanceDefinition",E).pipe((0,P.R)(this.destroy$)).subscribe(_e=>{if(this.distanceDataSource&&this.distanceDataSource._data._value.length>0&&this.distanceDataSource._data._value.map(Me=>Me.value.distanceDefinition.id).includes(_e.id))this.userMessageService.showError("imxtools.addressbase.edit.panels.geo.definition-already-assigned");else{const Me=this.formHandler.addNewCollectionRow("distances");Me.controls.distanceDefinition.setValue(_e),Me.controls.distanceDefinitionGroup.setValue(_e.group.i18nName)}this.formHandler.formGroup.controls.addDistanceField.setValue(l.SELECT_PLACEHOLDER_VALUE)})})}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(l.ImxEntitiesMgrService),i.Y36(B.uw),i.Y36(i.sBO),i.Y36(l.ConfigurationProvider),i.Y36(l.UserMessageService))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-addressbase-geo-form-panel"]],viewQuery:function(_e,Me){if(1&_e&&i.Gf(ft,5),2&_e){let Ln;i.iGM(Ln=i.CRH())&&(Me.editGeoRegionComponent=Ln.first)}},hostAttrs:[1,"imx-addressbase-geo-form-panel"],features:[i.qOj],decls:1,vars:1,consts:[["class","form__content-panel",4,"ngIf"],[1,"form__content-panel"],["id","geo",1,"anchor"],["translate",""],[4,"ngIf"],[3,"formHandler","record","locationSelection"],[1,"imx-button","prio2","bottom",3,"disabled","click"],[3,"formHandler","record","locationChanged"],["editGeoLocationComponent",""],[4,"ngIf","ngIfElse"],["defaultRegionComponent",""],[3,"formHandler","record"],["class","form__content-row",4,"ngIf"],[3,"fields","formHandler","form"],["editGeoRegionComponent",""],[3,"formHandler"],[1,"form__content-row"],[1,"form__content-group"],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],["class","imx-button-select no-margin",3,"field","control","form","formHandler","config",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","distanceDefinition"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","distanceDefinitionGroup"],["mat-cell","",3,"formGroup",4,"matCellDef"],["matColumnDef","distance"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell",""],["mat-cell",""],["mat-cell","",3,"formGroup"],[3,"field","control","form","formHandler","config"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],["class","icon icon-trash imx-icon-middle imx-icon-clickable",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"],[1,"imx-button-select","no-margin",3,"field","control","form","formHandler","config"]],template:function(_e,Me){1&_e&&i.YNc(0,no,20,21,"div",0),2&_e&&i.Q6J("ngIf",Me.formHandler.hasReadPermission("geoInfo"))},dependencies:[ae.S,J.c,q.e,j.L,Y.A,R,Te.X,ee.F,x.O5,u.JL,me.BZ,me.fO,me.as,me.w1,me.Dz,me.nj,me.ge,me.ev,me.XQ,me.Gk,u.sg,m.Pi,ve,lt.j,x.Ov,m.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}"],changeDetection:0})}return te})();var ji=a(99879),Ii=a(48938);function _i(te,Pn){if(1&te&&i._UZ(0,"imx-form-control",3),2&te){const E=Pn.element,_e=i.oxw();i.Q6J("field",_e.formHandler.formConfiguration.findFormFieldById("appearances:productline"))("control",E.controls.productline)("form",_e.formHandler.formGroup.get("appearances"))("formHandler",_e.formHandler)("config",_e.formHandler.formConfiguration)}}function En(te,Pn){if(1&te&&i._UZ(0,"imx-form-control",3),2&te){const E=Pn.element,_e=i.oxw();i.Q6J("field",_e.formHandler.formConfiguration.findFormFieldById("appearances:prioLevel"))("control",E.controls.prioLevel)("form",_e.formHandler.formGroup.get("appearances"))("formHandler",_e.formHandler)("config",_e.formHandler.formConfiguration)}}let co=(()=>{class te extends l.AbstractCoreDataObjectFormPanelComponent{constructor(E,_e){super(E),this.entitiesMgr=E,this.changeDetectorRef=_e}ngOnInit(){super.ngOnInit(),this.displayedColumns=this.determineDisplayColumns()}getAppearanceConfirmPermission(){if("Addressbase"===this.record._entityType)return ji.i.F_ADDRESSBASE_APPEARANCE_CONFIRM;if("Offer"===this.record._entityType)return ji.i.F_OFFER_APPEARANCE_CONFIRM;throw new Error("Ooops? Current record is neither Addressbase or Offer???")}getAppearanceRefusePermission(){if("Addressbase"===this.record._entityType)return ji.i.F_ADDRESSBASE_APPEARANCE_REFUSE;if("Offer"===this.record._entityType)return ji.i.F_OFFER_APPEARANCE_REFUSE;throw new Error("Ooops? Current record is neither Addressbase or Offer???")}determineDisplayColumns(){return["fromDate","toDate","custom2","deliveryChannel","custom1","languages","actionColumn"]}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(l.ImxEntitiesMgrService),i.Y36(i.sBO))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-master-data-object-appearance-form-panel"]],hostAttrs:[1,"imx-master-data-object-appearance-form-panel"],features:[i.qOj],decls:5,vars:9,consts:[[3,"formHandler","record","displayedColumns","column1Template","column1Label","column2Template","column2Label","confirmPermissionName","refusePermissionName"],["column1Template",""],["column2Template",""],[3,"field","control","form","formHandler","config"]],template:function(_e,Me){if(1&_e&&(i._UZ(0,"imx-appearance-form-panel",0),i.YNc(1,_i,1,5,"ng-template",null,1,i.W1O)(3,En,1,5,"ng-template",null,2,i.W1O)),2&_e){const Ln=i.MAs(2),to=i.MAs(4);i.Q6J("formHandler",Me.formHandler)("record",Me.record)("displayedColumns",Me.displayedColumns)("column1Template",Ln)("column1Label",Me.formHandler.getFormFieldLabel("appearances:productline"))("column2Template",to)("column2Label",Me.formHandler.getFormFieldLabel("appearances:prioLevel"))("confirmPermissionName",Me.getAppearanceConfirmPermission())("refusePermissionName",Me.getAppearanceRefusePermission())}},dependencies:[Ii.O,Y.A],styles:[".imx-form-control[_ngcontent-%COMP%]{margin:unset}"],changeDetection:0})}return te})();var yn=a(73623),ln=a(75986),He=a(15646),rt=a(72079),$e=a(45125),Ve=a(62413),Ce=a(51418),tt=a(21223);let ht=(()=>{class te{constructor(E){this.imxToolsDataAccessService=E}getAutocompleteHolders(E,_e,Me){return this.imxToolsDataAccessService.getContactAddressbaseAutocomplete(E,_e,Me)}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.LFG(tt.N))};static#t=this.\u0275prov=i.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"})}return te})();var Qt=a(97564),Un=a(84102),Yt=a(36116),Fn=a(74961),yt=a(6128),Bt=a(36681),li=a(88844);function si(te,Pn){1&te&&(i.TgZ(0,"p",4),i._uU(1,"imxplatform.common.no-records"),i.qZA())}function oo(te,Pn){1&te&&i._UZ(0,"tr",27)}function _o(te,Pn){1&te&&i._UZ(0,"tr",28)}function Hn(te,Pn){1&te&&(i.TgZ(0,"th",29),i._uU(1,"imxtools.addressbase.edit.panels.contact-addressbase.id"),i.qZA())}function mo(te,Pn){if(1&te&&(i.TgZ(0,"td",30)(1,"span"),i._uU(2),i.qZA()()),2&te){const E=Pn.$implicit;i.xp6(2),i.Oqu(E.controls.contactAddressbase.value.id)}}function vn(te,Pn){1&te&&(i.TgZ(0,"th",31),i._uU(1,"imxtools.addressbase.edit.panels.contact-addressbase.title"),i.qZA())}function Ji(te,Pn){if(1&te&&(i.TgZ(0,"td",32)(1,"span"),i._uU(2),i.ALo(3,"readI18n"),i.qZA()()),2&te){const E=Pn.$implicit;i.xp6(2),i.Oqu(i.lcZ(3,1,E.controls.contactAddressbase.value.title))}}function wn(te,Pn){1&te&&(i.TgZ(0,"th",31),i._uU(1,"imxtools.addressbase.edit.panels.contact-addressbase.address"),i.qZA())}function po(te,Pn){if(1&te&&(i.TgZ(0,"td",32)(1,"span"),i._uU(2),i.qZA()()),2&te){const E=Pn.$implicit,_e=i.oxw(2);i.xp6(2),i.hij("",_e.addressInfo(null==E.controls.contactAddressbase.value.contact1||null==E.controls.contactAddressbase.value.contact1.address?null:E.controls.contactAddressbase.value.contact1.address.street,null==E.controls.contactAddressbase.value.contact1||null==E.controls.contactAddressbase.value.contact1.address?null:E.controls.contactAddressbase.value.contact1.address.streetNo,null==E.controls.contactAddressbase.value.contact1||null==E.controls.contactAddressbase.value.contact1.address?null:E.controls.contactAddressbase.value.contact1.address.zipcode,null==E.controls.contactAddressbase.value.contact1||null==E.controls.contactAddressbase.value.contact1.address?null:E.controls.contactAddressbase.value.contact1.address.city)," ")}}function Kn(te,Pn){if(1&te&&(i.TgZ(0,"th",31),i._uU(1),i.qZA()),2&te){const E=i.oxw(2);i.xp6(),i.Oqu(E.formHandler.getFormFieldLabel("contactAddressbases:description"))}}function Vn(te,Pn){if(1&te&&(i.TgZ(0,"td",33),i._uU(1),i.ALo(2,"stripTags"),i.ALo(3,"readI18n"),i.qZA()),2&te){const E=Pn.$implicit,_e=i.oxw(2);i.xp6(),i.hij(" ",i.lcZ(2,1,i.xi3(3,3,E.controls.description.value,_e.formHandler.formLanguage.getEditLanguage().name))," ")}}function Wi(te,Pn){if(1&te&&(i.TgZ(0,"th",31),i._uU(1),i.qZA()),2&te){const E=i.oxw(2);i.xp6(),i.Oqu(E.formHandler.getFormFieldLabel("contactAddressbases:contextProductline"))}}function Ft(te,Pn){if(1&te&&(i.TgZ(0,"td",34),i._UZ(1,"imx-form-control",35),i.qZA()),2&te){const E=Pn.$implicit,_e=i.oxw(2);i.Q6J("formGroup",E),i.xp6(),i.Q6J("field",_e.formHandler.formConfiguration.findFormFieldById("contactAddressbases:contextProductline"))("control",E.controls.contextProductline)("form",_e.formHandler.formGroup.get("contactAddressbases"))("formHandler",_e.formHandler)("config",_e.formHandler.formConfiguration)}}function Oi(te,Pn){if(1&te&&(i.TgZ(0,"th",31),i._uU(1),i.qZA()),2&te){const E=i.oxw(2);i.xp6(),i.Oqu(E.formHandler.getFormFieldLabel("contactAddressbases:purpose"))}}function On(te,Pn){if(1&te&&(i.TgZ(0,"td",34),i._UZ(1,"imx-select",36),i.qZA()),2&te){const E=Pn.$implicit,_e=i.oxw(2);i.Q6J("formGroup",E),i.xp6(),i.Q6J("field",_e.formHandler.formConfiguration.findFormFieldById("contactAddressbases:purpose"))("control",E.controls.purpose)("form",_e.formHandler.formGroup.get("contactAddressbases"))("formHandler",_e.formHandler)("optionProvider",_e.optionProvider)}}function _n(te,Pn){if(1&te&&(i.TgZ(0,"th",39),i._uU(1),i.qZA()),2&te){const E=i.oxw(3);i.xp6(),i.Oqu(E.formHandler.getFormFieldLabel("contactAddressbases:sortingValue"))}}function st(te,Pn){if(1&te&&(i.TgZ(0,"td",34),i._UZ(1,"imx-form-control",35),i.qZA()),2&te){const E=Pn.$implicit,_e=i.oxw(3);i.Q6J("formGroup",E),i.xp6(),i.Q6J("field",_e.formHandler.formConfiguration.findFormFieldById("contactAddressbases:sortingValue"))("control",E.controls.sortingValue)("form",_e.formHandler.formGroup.get("contactAddressbases"))("formHandler",_e.formHandler)("config",_e.formHandler.formConfiguration)}}function Dn(te,Pn){1&te&&(i.ynx(0,37),i.YNc(1,_n,2,1,"th",38)(2,st,2,6,"td",18),i.BQk())}function Wt(te,Pn){1&te&&(i.TgZ(0,"th",40),i.ALo(1,"translate"),i._uU(2,"entity.ExtCoreDataObject.entityState"),i.qZA()),2&te&&i.Q6J("matTooltip",i.lcZ(1,1,"entity.ExtCoreDataObject.entityState"))}function kn(te,Pn){if(1&te&&i._UZ(0,"imx-entity-state",45),2&te){const E=i.oxw().ngIf;i.Q6J("key",null==E.entityState?null:E.entityState.key)("appearances",E.appearances)("renderLabel",!1)("useAppearanceLogic",!0)}}function Fi(te,Pn){1&te&&(i.TgZ(0,"p",46),i._uU(1,"N/A"),i.qZA())}function ui(te,Pn){if(1&te&&(i.ynx(0),i.YNc(1,kn,1,4,"imx-entity-state",43)(2,Fi,2,0,"ng-template",null,44,i.W1O),i.BQk()),2&te){const E=Pn.ngIf,_e=i.MAs(3);i.xp6(),i.Q6J("ngIf",E.entityState)("ngIfElse",_e)}}function Fo(te,Pn){if(1&te&&(i.TgZ(0,"td",41),i.YNc(1,ui,4,2,"ng-container",42),i.qZA()),2&te){const E=Pn.$implicit,_e=i.oxw(2);i.Q6J("formGroup",E),i.xp6(),i.Q6J("ngIf",_e.contactAddressbasesMap.get(E.controls.contactAddressbase.value.id))}}function At(te,Pn){1&te&&i._UZ(0,"th",47)}function Jn(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-action-menu-item",51),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw().$implicit,Ln=i.oxw(2);return i.KtG(Ln.removeContactAddressbase(Me,Ln.dataSource))}),i._uU(1," imxplatform.common-entity.list.remove "),i.qZA()}2&te&&i.Q6J("icon","icon-trash")}function Bn(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"td",48)(1,"imx-dropup-button")(2,"imx-action-menu")(3,"imx-action-menu-item",49),i.NdJ("click",function(){const Ln=i.CHM(E).$implicit,to=i.oxw(2);return i.KtG(to.addDescription(Ln))}),i._uU(4," entity.AddressbaseContact.edit-description "),i.qZA(),i.YNc(5,Jn,2,1,"imx-action-menu-item",50),i.qZA()()()}if(2&te){const E=Pn.$implicit,_e=i.oxw(2);i.Q6J("formGroup",E),i.xp6(3),i.Q6J("icon","icon-plus"),i.xp6(2),i.Q6J("hasFieldWritePermission","contactAddressbases")("hasFieldWritePermissionFormHandler",_e.formHandler)}}function Bi(te,Pn){if(1&te&&(i.TgZ(0,"table",5),i.YNc(1,oo,1,0,"tr",6)(2,_o,1,0,"tr",7),i.ynx(3,8),i.YNc(4,Hn,2,0,"th",9)(5,mo,3,1,"td",10),i.BQk(),i.ynx(6,11),i.YNc(7,vn,2,0,"th",12)(8,Ji,4,3,"td",13),i.BQk(),i.ynx(9,14),i.YNc(10,wn,2,0,"th",12)(11,po,3,1,"td",13),i.BQk(),i.ynx(12,15),i.YNc(13,Kn,2,1,"th",12)(14,Vn,4,6,"td",16),i.BQk(),i.ynx(15,17),i.YNc(16,Wi,2,1,"th",12)(17,Ft,2,6,"td",18),i.BQk(),i.ynx(18,19),i.YNc(19,Oi,2,1,"th",12)(20,On,2,6,"td",18),i.BQk(),i.YNc(21,Dn,3,0,"ng-container",20),i.ynx(22,21),i.YNc(23,Wt,3,3,"th",22)(24,Fo,2,2,"td",23),i.BQk(),i.ynx(25,24),i.YNc(26,At,1,0,"th",25)(27,Bn,6,4,"td",26),i.BQk(),i.qZA()),2&te){const E=i.oxw();i.Q6J("dataSource",E.dataSource),i.xp6(),i.Q6J("matHeaderRowDef",E.columns),i.xp6(),i.Q6J("matRowDefColumns",E.columns),i.xp6(19),i.Q6J("ngIf",E.hasSortingValue)}}function $n(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"div",52),i._UZ(1,"imx-base-autocomplete",53,54),i.TgZ(3,"button",55),i.NdJ("click",function(){i.CHM(E);const Me=i.MAs(2);return i.oxw().addContactAddressLine(Me.getSelectedId()),i.KtG(Me.writeValue(void 0))}),i._uU(4),i.ALo(5,"translate"),i.qZA()()}if(2&te){const E=i.MAs(2),_e=i.oxw();i.xp6(),i.Q6J("autocompleteService",_e.contactAddressbaseAutocompleteService)("label","imxtools.addressbase.edit.panels.base-data.choose-contact-addressbases")("displayItemFn",_e.addressbaseDisplayFn),i.xp6(2),i.Q6J("disabled",!E.getSelectedId()),i.xp6(),i.hij(" ",i.lcZ(5,5,"imxplatform.common.add")," ")}}let Ui=(()=>{class te{constructor(E,_e,Me,Ln,to){this.contactAddressbaseAutocompleteService=E,this.imxToolsDataAccessService=_e,this.changeDetectorRef=Me,this.dialog=Ln,this.entitiesMgrService=to,this.hasSortingValue=!1,this.defaultPurposeId=-1}addDescription(E){if(E){const _e=E.value;this.openDescriptionDialog(E).afterClosed().subscribe(Ln=>{Ln?this.changeDetectorRef.markForCheck():E.reset(_e,{onlySelf:!0})})}}openDescriptionDialog(E){return this.dialog.open(l.CkEditDialogComponent,{...l.DialogDefaultSizes.FORM_MEDIUM,data:{title:"entity.AddressbaseContact.edit-description",form:E,fieldName:"description",field:this.formHandler.formConfiguration.findArrayFieldById("contactAddressbases").getChildField("description"),formHandler:this.formHandler}})}addressInfo(E,_e,Me,Ln){let to="";return E&&_e?to=E+" "+_e+", ":E&&(to=E+", "),Me&&(to=to+" "+Me),Ln&&(to=to+" "+Ln),to}addressbaseDisplayFn(E){return E?E.representation:void 0}addContactAddressLine(E){this.imxToolsDataAccessService.getAddressbaseById(E).subscribe(_e=>{const Me=this.formHandler.addNewCollectionRow("contactAddressbases"),Ln={entityState:_e.entityState,id:_e.id,title:He(_e.title),contact1:He(_e.contact1),appearances:He(_e.appearances)};Me.controls.contactAddressbase.setValue(Ln),this.defaultPurposeId>0&&this.entitiesMgrService.getEntityWithIdOfType("ContactPurpose",this.defaultPurposeId).subscribe(to=>{Me.controls.purpose.setValue(to.id,to)}),this.contactAddressbasesMap.set(E,_e),this.changeDetectorRef.markForCheck()})}removeContactAddressbase(E,_e){if(this.formArray){const Me=this.formArray.controls.findIndex(Ln=>Ln.get("contactAddressbase").value.id===E.get("contactAddressbase").value.id&&Ln.get("purpose").value===E.get("purpose").value);void 0!==Me&&(this.formArray.removeAt(Me),_e.data.splice(_e.data.indexOf(E),1))}this.changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(ht),i.Y36(tt.N),i.Y36(i.sBO),i.Y36(B.uw),i.Y36(l.ImxEntitiesMgrService))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-contact-addressbases-table"]],inputs:{formHandler:"formHandler",formArray:"formArray",dataSource:"dataSource",columns:"columns",hasSortingValue:"hasSortingValue",optionProvider:"optionProvider",defaultPurposeId:"defaultPurposeId",contactAddressbasesMap:"contactAddressbasesMap"},decls:5,vars:4,consts:[["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],["class","form__content-field-row autocomplete-row",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","contactAddressbase"],["mat-header-cell","","class","id-column","translate","",4,"matHeaderCellDef"],["mat-cell","","class","id-column",4,"matCellDef"],["matColumnDef","title"],["mat-header-cell","","translate","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","address"],["matColumnDef","description"],["mat-cell","","class","txt-ellipsis",4,"matCellDef"],["matColumnDef","contextProductline"],["mat-cell","",3,"formGroup",4,"matCellDef"],["matColumnDef","purpose"],["matColumnDef","sortingValue",4,"ngIf"],["matColumnDef","entityState"],["mat-header-cell","","translate","","class","entityState-column",3,"matTooltip",4,"matHeaderCellDef"],["mat-cell","","class","entityState-column",3,"formGroup",4,"matCellDef"],["matColumnDef","removeColumn",1,"action-column"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","","translate","",1,"id-column"],["mat-cell","",1,"id-column"],["mat-header-cell","","translate",""],["mat-cell",""],["mat-cell","",1,"txt-ellipsis"],["mat-cell","",3,"formGroup"],[3,"field","control","form","formHandler","config"],[3,"field","control","form","formHandler","optionProvider"],["matColumnDef","sortingValue"],["mat-header-cell","","translate","","class","sorting-value-column",4,"matHeaderCellDef"],["mat-header-cell","","translate","",1,"sorting-value-column"],["mat-header-cell","","translate","",1,"entityState-column",3,"matTooltip"],["mat-cell","",1,"entityState-column",3,"formGroup"],[4,"ngIf"],[3,"key","appearances","renderLabel","useAppearanceLogic",4,"ngIf","ngIfElse"],["noEntityState",""],[3,"key","appearances","renderLabel","useAppearanceLogic"],[1,"txt-md-sm"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],[3,"icon","click"],["additionalStyle","delete",3,"icon","click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],["additionalStyle","delete",3,"icon","click"],[1,"form__content-field-row","autocomplete-row"],["name","addContactAddressbase",1,"contact-addressbase-autocomplete",3,"autocompleteService","label","displayItemFn"],["contactAddressbaseAutocompleteControl",""],[1,"imx-button","prio2","addButton",3,"disabled","click"]],template:function(_e,Me){if(1&_e&&(i.YNc(0,si,2,0,"ng-template",null,0,i.W1O),i.TgZ(2,"div",1),i.YNc(3,Bi,28,4,"table",2),i.qZA(),i.YNc(4,$n,6,7,"div",3)),2&_e){const Ln=i.MAs(1);i.xp6(3),i.Q6J("ngIf",Me.dataSource&&Me.dataSource.data.length>0)("ngIfElse",Ln),i.xp6(),i.Q6J("hasFieldWritePermission","contactAddressbases")("hasFieldWritePermissionFormHandler",Me.formHandler)}},dependencies:[Qt.h,Un.n,Y.A,Yt.H,Te.X,x.O5,u.JL,me.BZ,me.fO,me.as,me.w1,me.Dz,me.nj,me.ge,me.ev,me.XQ,me.Gk,ne.gM,u.sg,m.Pi,Fn.p,yt.z,Bt.t,lt.j,li.p,m.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.mat-mdc-header-cell.entityState-column[_ngcontent-%COMP%], .mat-mdc-cell.entityState-column[_ngcontent-%COMP%]{width:50px}.hint[_ngcontent-%COMP%]{margin-bottom:10px}.sorting-value-column[_ngcontent-%COMP%]{width:75px}.autocomplete-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.autocomplete-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}"],changeDetection:0})}return te})();function Xo(te,Pn){1&te&&(i.TgZ(0,"p",6),i._uU(1," imxtools.offer.contact-addressbase-hint"),i.qZA())}function bt(te,Pn){1&te&&(i.ynx(0),i.YNc(1,Xo,2,0,"p",5),i.ALo(2,"translate"),i.BQk()),2&te&&(i.xp6(),i.Q6J("ngIf","imxtools.offer.contact-addressbase-hint"!==i.lcZ(2,1,"imxtools.offer.contact-addressbase-hint")))}function an(te,Pn){1&te&&(i.TgZ(0,"p",6),i._uU(1," imxtools.offer.contact-addressbase-hint"),i.qZA())}function Wn(te,Pn){1&te&&(i.ynx(0),i.YNc(1,an,2,0,"p",5),i.ALo(2,"translate"),i.BQk()),2&te&&(i.xp6(),i.Q6J("ngIf","imxtools.addressbase.contact-addressbase-hint"!==i.lcZ(2,1,"imxtools.addressbase.contact-addressbase-hint")))}function eo(te,Pn){if(1&te&&i._UZ(0,"imx-contact-addressbases-table",7),2&te){const E=i.oxw(2);i.Q6J("formHandler",E.formHandler)("formArray",E.contactAddressbases)("dataSource",E.contactAddressbasesDataSource)("columns",E.contactAddressbasesColumns)("hasSortingValue",E.hasSortingValue)("optionProvider",E.contactPurposeOptions)("contactAddressbasesMap",E.contactAddressbasesMap)}}function _r(te,Pn){if(1&te&&i._UZ(0,"imx-contact-addressbases-table",9),2&te){const E=i.oxw(3);i.Q6J("formHandler",E.formHandler)("formArray",E.contactAddressbases)("dataSource",E.variantDeviationAddressbasesDataSource)("columns",E.contactAddressbasesColumns)("hasSortingValue",E.hasSortingValue)("optionProvider",E.variantDeviationOptions)("defaultPurposeId",1e3)("contactAddressbasesMap",E.contactAddressbasesMap)}}function hr(te,Pn){if(1&te&&(i.ynx(0),i.TgZ(1,"div",1)(2,"div",2)(3,"h3",3),i._uU(4,"imxtools.addressbase.edit.panels.contact-addressbase.header_variant"),i.qZA(),i.YNc(5,_r,1,8,"imx-contact-addressbases-table",8),i.ALo(6,"async"),i.qZA()(),i.BQk()),2&te){const E=i.oxw(2);i.xp6(5),i.Q6J("ngIf",i.lcZ(6,1,E.contactAddressbaseFullyLoaded))}}function In(te,Pn){if(1&te&&(i.ynx(0),i.TgZ(1,"div",1)(2,"div",2)(3,"h3",3),i._uU(4,"imxtools.addressbase.edit.panels.contact-addressbase.header"),i.qZA(),i.YNc(5,bt,3,3,"ng-container",0)(6,Wn,3,3,"ng-container",0)(7,eo,1,7,"imx-contact-addressbases-table",4),i.ALo(8,"async"),i.qZA()(),i.YNc(9,hr,7,3,"ng-container",0),i.BQk()),2&te){const E=i.oxw();i.xp6(5),i.Q6J("ngIf","Offer"===E.formHandler.getEntityType()),i.xp6(),i.Q6J("ngIf","Addressbase"===E.formHandler.getEntityType()),i.xp6(),i.Q6J("ngIf",i.lcZ(8,4,E.contactAddressbaseFullyLoaded)),i.xp6(2),i.Q6J("ngIf",E.variantDeviationOptions&&E.variantDeviationOptions.length>0&&E.hasTourModule())}}function wi(te){return 1e3!==te.value.purpose&&1001!==te.value.purpose}function zo(te){return 1e3===te.value.purpose||1001===te.value.purpose}let xi=(()=>{class te{constructor(E,_e,Me,Ln,to){this.contactAddressbaseAutocompleteService=E,this.imxToolsDataAccessService=_e,this.changeDetectorRef=Me,this.dialog=Ln,this.collectionsService=to,this.hasSortingValue=!1,this.destroy$=new rt.xQ,this.contactPurposeOptions=[],this.variantDeviationOptions=[],this.contactAddressbasesMap=new Map,this.contactAddressbaseFullyLoaded=new $e.X(!1)}ngOnInit(){this.contactAddressbases=this.formHandler.formGroup.get("contactAddressbases"),this.contactAddressbasesDataSource=this.prepareFilteredTable(this.contactAddressbases,Me=>this.contactAddressbasesDataSource=Me,wi,Me=>this.variantDeviationAddressbasesDataSource=Me,zo,this.destroy$),this.variantDeviationAddressbasesDataSource=this.prepareFilteredTable(this.contactAddressbases,Me=>this.variantDeviationAddressbasesDataSource=Me,zo,Me=>this.contactAddressbasesDataSource=Me,wi,this.destroy$);const E=this.formHandler.formConfiguration.findFormFieldById("contactAddressbases");this.contactAddressbasesColumns=new Array,this.contactAddressbasesColumns.push("contactAddressbase"),this.contactAddressbasesColumns.push("title"),this.contactAddressbasesColumns.push("address"),this.contactAddressbasesColumns.push(...E.children.filter(Me=>Me.id!==l.ARRAY_ID_FIELD&&"contactAddressbase"!==Me.id&&"sortingValue"!==Me.id).map(Me=>Me.id)),this.hasSortingValue&&(this.contactAddressbasesColumns.push("sortingValue"),this.contactAddressbasesDataSource.data.sort((Me,Ln)=>Me.value.sortingValue-Ln.value.sortingValue)),this.contactAddressbasesColumns.push("entityState"),this.contactAddressbasesColumns.push("removeColumn");const _e=this.contactAddressbases.controls;if(_e)if(0===_e.length)this.contactAddressbaseFullyLoaded.next(!0);else for(const[Me,Ln]of _e.entries()){const to=Ln.get("contactAddressbase").value.id;this.imxToolsDataAccessService.getAddressbaseById(to).pipe((0,Ve.K)((ha,zs)=>{const cc=Ln.get("contactAddressbase").value.title,Gl=Ln.get("contactAddressbase").value.contact1,id={id:to,title:He(cc),contact1:He(Gl)};return(0,I.of)(id)})).subscribe(ha=>{this.contactAddressbasesMap.set(to,ha),this.contactAddressbasesMap.size===_e.length&&this.contactAddressbaseFullyLoaded.next(!0)})}this.loadContactPurposeOptions(),this.loadVariantDeviationContactPurposeOptions()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}addContactAddressLine(E){this.imxToolsDataAccessService.getAddressbaseById(E).subscribe(_e=>{const Me=this.formHandler.addNewCollectionRow("contactAddressbases"),Ln={entityState:_e.entityState,id:_e.id,title:He(_e.title),contact1:He(_e.contact1),appearances:He(_e.appearances)};Me.controls.contactAddressbase.setValue(Ln),this.changeDetectorRef.markForCheck()})}loadContactPurposeOptions(){this.collectionsService.getAllContactPurposes().pipe((0,Ce.q)(1)).subscribe(E=>{const _e=[];_e.push({label:"imxplatform.common.select-placeholder-no-selection",value:-1}),E.forEach(Me=>{_e.push({label:Me.i18nName,value:Me.id})}),this.contactPurposeOptions=_e})}loadVariantDeviationContactPurposeOptions(){this.collectionsService.getAllVariantDeviationContactPurposes().pipe((0,Ce.q)(1)).subscribe(E=>{const _e=[];E.forEach(Me=>{_e.push({label:Me.i18nName,value:Me.id})}),this.variantDeviationOptions=_e,this.changeDetectorRef.markForCheck()})}prepareFilteredTable(E,_e,Me,Ln,to,ha){if(!E)throw new Error("cannot prepareTable for undefined formArray");const zs=new me.by(E.controls);return zs.data=zs.data.filter(Me),E.valueChanges.pipe((0,P.R)(ha)).subscribe(cc=>{const Gl=new me.by(E.controls);Gl.data=Gl.data.filter(Me),_e(Gl)}),E.valueChanges.pipe((0,P.R)(ha)).subscribe(cc=>{const Gl=new me.by(E.controls);Gl.data=Gl.data.filter(to),Ln(Gl)}),zs}hasTourModule(){return!!this.formHandler.formGroup.get("metainfos").controls.find(_e=>100012e3===_e.get("moduleId").value)}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(ht),i.Y36(tt.N),i.Y36(i.sBO),i.Y36(B.uw),i.Y36(l.EntityCollectionsService))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-edit-contact-addressbases"]],inputs:{formHandler:"formHandler",hasSortingValue:"hasSortingValue"},decls:2,vars:3,consts:[[4,"ngIf"],[1,"form__content-row"],[1,"form__content-group"],["translate",""],[3,"formHandler","formArray","dataSource","columns","hasSortingValue","optionProvider","contactAddressbasesMap",4,"ngIf"],["class","txt-hint txt-md hint","translate","",4,"ngIf"],["translate","",1,"txt-hint","txt-md","hint"],[3,"formHandler","formArray","dataSource","columns","hasSortingValue","optionProvider","contactAddressbasesMap"],[3,"formHandler","formArray","dataSource","columns","hasSortingValue","optionProvider","defaultPurposeId","contactAddressbasesMap",4,"ngIf"],[3,"formHandler","formArray","dataSource","columns","hasSortingValue","optionProvider","defaultPurposeId","contactAddressbasesMap"]],template:function(_e,Me){1&_e&&(i.YNc(0,In,10,6,"ng-container",0),i.ALo(1,"async")),2&_e&&i.Q6J("ngIf",i.lcZ(1,1,Me.formHandler.hasReadPermission("contactAddressbases")))},dependencies:[x.O5,m.Pi,Ui,x.Ov,m.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.hint[_ngcontent-%COMP%]{margin-bottom:10px}"],changeDetection:0})}return te})();function ki(te,Pn){if(1&te&&i._UZ(0,"imx-edit-contact-lists",5),2&te){const E=i.oxw();i.Q6J("formHandler",E.formHandler)}}function wo(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"div",8)(1,"div",9)(2,"h3",2),i._uU(3,"imxtools.addressbase.edit.panels.reference.contact-target"),i.qZA(),i.TgZ(4,"mat-checkbox",10),i.NdJ("change",function(Me){i.CHM(E);const Ln=i.oxw(3);return i.KtG(Ln.changeIsContactAddressbase(Me))}),i.ALo(5,"async"),i.ALo(6,"async"),i._uU(7),i.ALo(8,"translate"),i.qZA()()()}if(2&te){const E=i.oxw(3);i.xp6(4),i.Q6J("disabled",!i.lcZ(5,3,E.formHandler.hasEditPermission("contactTarget"))||!i.lcZ(6,5,E.formHandler.hasSavePermission()))("checked",E.isContactAddressbase()),i.xp6(3),i.hij("",i.lcZ(8,7,"imxtools.addressbase.edit.panels.reference.as-contact-addressbase")," ")}}function Ei(te,Pn){if(1&te&&(i.ynx(0),i.YNc(1,wo,9,9,"div",7),i.ALo(2,"async"),i.BQk()),2&te){const E=i.oxw(2);i.xp6(),i.Q6J("ngIf",i.lcZ(2,1,E.formHandler.hasReadPermission("contactTarget")))}}function ho(te,Pn){if(1&te&&(i.ynx(0),i.YNc(1,Ei,3,3,"ng-container",4),i._UZ(2,"imx-edit-contact-addressbases",6),i.BQk()),2&te){const E=i.oxw();i.xp6(),i.Q6J("ngIf","Addressbase"===E.formHandler.getEntityType()),i.xp6(),i.Q6J("formHandler",E.formHandler)("hasSortingValue",E.contactAddressbaseHasSortingValue)}}function Cr(te,Pn){if(1&te){const E=i.EpF();i.ynx(0),i.TgZ(1,"div",8)(2,"div",9)(3,"h3"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"button",11),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw();return i.KtG(Me.showObjectReferences())}),i._uU(7),i.ALo(8,"translate"),i.qZA()()(),i.BQk()}2&te&&(i.xp6(4),i.Oqu(i.lcZ(5,2,"imxplatform.common-entity.list.references")),i.xp6(3),i.hij(" ",i.lcZ(8,4,"imxplatform.common-entity.list.loadReferences")," "))}const vr=Se.zc.id;let qr=(()=>{class te extends l.AbstractCoreDataObjectFormPanelComponent{constructor(E,_e,Me){super(_e,Me),this.configurationProvider=E,this.entitiesMgr=_e,this.dialog=Me,this.contactAddressbaseHasSortingValue=!1,this.showObjectRefrencesForTypes=[];const Ln=this.configurationProvider.getStringFromSnapshot(l.ImxPlatformConfigParameter.IMXPLATFORM_DETAIL_SHOW_REFERENCES_DIALOG);Ln&&(this.showObjectRefrencesForTypes=Ln.split(","))}isContactAddressbase(){const E=this.formHandler.formGroup.get("types");if(E)return E.value.some(Me=>Me===vr)}changeIsContactAddressbase(E){const _e=this.formHandler.formGroup.get("types");if(_e){if(E.checked)_e.value.push(vr);else{const Me=_e.value;Me.splice(Me.findIndex(Ln=>Ln===vr),1)}_e.markAsDirty()}}showObjectReferences(){this.dialog.open(l.CoreEntityReferencesDialogComponent,{maxWidth:800,maxHeight:900,data:{entityId:this.record.id,entityType:this.record._entityType,headerKey:"imxplatform.common-entity.list.action.references.header-text"}})}showReferencesBtnForEntity(){return this.showObjectRefrencesForTypes.indexOf(this.record?._entityType?.toLowerCase())>-1}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(l.ConfigurationProvider),i.Y36(l.ImxEntitiesMgrService),i.Y36(B.uw))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-master-data-object-references-form-panel"]],inputs:{contactListsEnabled:"contactListsEnabled",contactAddressbaseEnabled:"contactAddressbaseEnabled",contactAddressbaseHasSortingValue:"contactAddressbaseHasSortingValue"},features:[i.qOj],decls:7,vars:4,consts:[[1,"form__content-panel"],["id","references",1,"anchor"],["translate",""],[3,"formHandler",4,"ngIf"],[4,"ngIf"],[3,"formHandler"],[3,"formHandler","hasSortingValue"],["class","form__content-row",4,"ngIf"],[1,"form__content-row"],[1,"form__content-group"],[1,"small",3,"disabled","checked","change"],[1,"imx-button","prio2",3,"click"]],template:function(_e,Me){1&_e&&(i.TgZ(0,"div",0),i._UZ(1,"div",1),i.TgZ(2,"h2",2),i._uU(3,"imxplatform.common-entity.edit.panels.reference.title"),i.qZA(),i.YNc(4,ki,1,1,"imx-edit-contact-lists",3)(5,ho,3,3,"ng-container",4)(6,Cr,9,6,"ng-container",4),i.qZA()),2&_e&&(i.xp6(),i.uIk("data-scroll-id","references"),i.xp6(3),i.Q6J("ngIf",Me.contactListsEnabled),i.xp6(),i.Q6J("ngIf",Me.contactAddressbaseEnabled),i.xp6(),i.Q6J("ngIf",Me.showReferencesBtnForEntity()))},dependencies:[yn.s,x.O5,ln.oG,m.Pi,xi,x.Ov,m.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}"],changeDetection:0})}return te})();var Ra=a(27459),ss=a(1505),Hs=a(22819),Cs=a(61880);function ms(te,Pn){if(1&te&&(i.ynx(0),i.TgZ(1,"div",1),i._UZ(2,"imx-base-read-only",2),i.qZA(),i.BQk()),2&te){const E=i.oxw();i.xp6(2),i.Q6J("label",E.getLabel())("customModel",E.getImportSources())}}let ja=(()=>{class te{constructor(E,_e,Me){this.imxPlatformDataAccessService=E,this.translateService=_e,this.importSourcePipe=Me,this.importAssignments=[]}ngOnInit(){this.record&&this.record.id&&this.imxPlatformDataAccessService.getImportAssignments$(Array.of(this.record.id)).subscribe(E=>this.importAssignments=E)}getImportSources(){const E=this.record.importRun.importSource;let _e="";return this.importAssignments.forEach(Me=>{_e+=this.importSourcePipe.transform(Me.importSource),E===Me.importSource&&this.importAssignments.length>1&&(_e=_e+" ("+this.translateService.instant("entity.AddressPoiImportAssignment.main")+")"),this.importAssignments.indexOf(Me)!==this.importAssignments.length-1&&(_e+=", ")}),_e}getLabel(){return this.importAssignments&&this.importAssignments.length>0?this.importAssignments.length>1?"entity.AddressPoiImportAssignment.entityNamePlural":"entity.AddressPoiImportAssignment.entityName":""}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(Hs.nq),i.Y36(m.sK),i.Y36(ss.q))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-edit-assignment"]],hostAttrs:[1,"imx-edit-assignment"],inputs:{record:"record"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"assignment-block"],[3,"label","customModel"]],template:function(_e,Me){1&_e&&i.YNc(0,ms,3,2,"ng-container",0),2&_e&&i.Q6J("ngIf",Me.importAssignments&&Me.importAssignments.length>0)},dependencies:[x.O5,Cs.Q],encapsulation:2})}return te})();var el=a(59437);function Vs(te,Pn){1&te&&i.GkF(0)}function ls(te,Pn){if(1&te&&i._UZ(0,"imx-form-control",10),2&te){const E=Pn.$implicit,_e=i.oxw();i.Q6J("field",_e.formHandler.formConfiguration.findFormFieldById(E))("control",_e.formHandler.formGroup.get(E))("form",_e.formHandler.formGroup)("formHandler",_e.formHandler)("config",_e.formHandler.formConfiguration)}}const Fa=()=>({$implicit:"reliabilityClassification"});let Ds=(()=>{class te extends l.AbstractCoreDataObjectFormPanelComponent{static#e=this.\u0275fac=(()=>{let E;return function(Me){return(E||(E=i.n5z(te)))(Me||te)}})();static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-addressbase-anatomy-form-panel"]],features:[i.qOj],decls:12,vars:8,consts:[[1,"form__content-panel"],["id","anatomy",1,"anchor"],["translate",""],[1,"form__content-row"],[1,"form__content-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"formHandler"],[3,"formHandler","record"],[3,"record"],["imxControl",""],[3,"field","control","form","formHandler","config"]],template:function(_e,Me){if(1&_e&&(i.TgZ(0,"div",0),i._UZ(1,"div",1),i.TgZ(2,"h2",2),i._uU(3,"imxplatform.common-entity.edit.panels.anatomy.title"),i.qZA(),i.TgZ(4,"div",3)(5,"div",4),i.YNc(6,Vs,1,0,"ng-container",5),i._UZ(7,"imx-edit-quality",6)(8,"imx-edit-audited-data",7)(9,"imx-edit-assignment",8),i.qZA()()(),i.YNc(10,ls,1,5,"ng-template",null,9,i.W1O)),2&_e){const Ln=i.MAs(11);i.xp6(),i.uIk("data-scroll-id","anatomy"),i.xp6(5),i.Q6J("ngTemplateOutlet",Ln)("ngTemplateOutletContext",i.DdM(7,Fa)),i.xp6(),i.Q6J("formHandler",Me.formHandler),i.xp6(),i.Q6J("formHandler",Me.formHandler)("record",Me.record),i.xp6(),i.Q6J("record",Me.record)}},dependencies:[Ra.h,ja,el.B,Y.A,x.tP,m.Pi],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}"]})}return te})();var dl=a(75222),ka=a(66550),hs=a(62736),Ua=a(53075),Tn=a(86374);let Qi=(()=>{class te extends l.AbstractBaseDataFormPanelComponent{constructor(E,_e,Me,Ln,to,ha,zs,cc,Gl,id){super(to,Ln,zs),this.toolsDataAccessService=E,this.addressbaseAutocompleteService=_e,this.userAutocompleteService=Me,this.entitiesMgr=Ln,this.runtimeContext=to,this.router=ha,this.dialog=zs,this.changeDetectorRef=cc,this.translateService=Gl,this.inputFieldTypeOptionProviderService=id,this.paymentOptionsAvailable=(0,I.of)(!1),this.inputFieldTypesAvailable=(0,I.of)(!1),this.attributesAvailable=(0,I.of)(!1),this.productlinesForInputFieldsMap=new Map,this.imxToolsSlots=Tn.G5}ngOnInit(){super.ngOnInit(),this.paymentOptionsAvailable=this.baseEntityAvailable("PaymentOption"),this.inputFieldTypesAvailable=this.inputFieldTypeOptionProviderService.getOptions(this.record,void 0).pipe((0,dl.w)(E=>(0,I.of)(E.length>0))),this.attributesAvailable=this.baseEntityAvailable("AddressbaseAttribute"),this.formHandler.formGroup.get("inputFields")&&(this.inputFieldCollectionDataSource=this.prepareTable(this.formHandler.formGroup.get("inputFields"),E=>this.inputFieldCollectionDataSource=E),this.inputFieldCollectionColumns=this.determineTableColumns("inputFields")),this.formHandler.formGroup.controls.addInputField&&this.formHandler.formGroup.controls.addInputField.valueChanges.pipe((0,P.R)(this.destroy$),(0,G.h)(E=>E&&E!==l.SELECT_PLACEHOLDER_VALUE)).subscribe(E=>{this.formHandler.addNewCollectionRow("inputFields").controls.inputFieldType.setValue(E),this.formHandler.formGroup.controls.addInputField.setValue(l.SELECT_PLACEHOLDER_VALUE),this.formHandler.formGroup.controls.addInputField.markAsPristine()}),this.formHandler.formGroup.get("productlineIds").valueChanges.pipe((0,P.R)(this.destroy$)).subscribe(E=>{const _e=[];this.formHandler.getFormArrayControl("inputFields").controls.forEach(Me=>{const Ln=Me.get("productline").value;null!=Ln&&-1!==Ln&&!E.includes(Ln)&&_e.push(Ln)}),_e.forEach(Me=>{this.formHandler.getFormArrayControl("inputFields").removeAt(this.formHandler.getFormArrayControl("inputFields").controls.findIndex(Ln=>Ln.get("productline").value===Me))}),this.changeDetectorRef.markForCheck()})}getProductlinesForInputFieldType(E){if(E.get("inputFieldType")){const _e=E.get("inputFieldType").value;if(!this.productlinesForInputFieldsMap.get(_e)){const Ln=this.determineProductlinesForInputFieldType(_e);this.productlinesForInputFieldsMap.set(_e,Ln)}return this.productlinesForInputFieldsMap.get(_e)}throw new Error("FormControl inputFieldType is missing in row")}determineProductlinesForInputFieldType(E){return _e=>this.entitiesMgr.getEntityWithIdOfType("InputFieldType",E).pipe((0,G.h)(Ln=>this.isInputFieldTypeUsable(Ln)&&void 0!==Ln.productlines),(0,O.U)(Ln=>Ln.productlines.map(to=>to.id).filter(l.filterNoneRootProductlineIds)),(0,dl.w)(Ln=>this.entitiesMgr.getEntityWithIdsOfType("Productline",Ln)),(0,O.U)(Ln=>Ln.filter(l.filterNoneRootProductlines).filter(to=>this.isProductlineAssigned(to)).map(to=>({label:to.i18nName,value:to.id})))).pipe((0,Ua.O)([]),(0,O.U)(Ln=>[{value:-1,label:"imxtools.common-entity.edit.no-productline-selection"},...Ln]))}isProductlineAssigned(E){return this.formHandler.getFormModel().productlineIds.some(_e=>_e===E.id)}extractDeliveryChannels(E){return E.deliveryChannels.map(_e=>_e.name).join(", ")}openAddressbase(E){}hasAssignUserPermission(){return!1}resetAssignedUser(){this.formHandler.formGroup.get("addressbaseUser")&&this.formHandler.formGroup.get("addressbaseUser").setValue(void 0)}onObjectLanguageChange(E,_e){(E.length>0||_e.length>0)&&this.formHandler.formGroup.get("appearances").controls.forEach(Ln=>this.adjustLanguagesForFormControl(Ln,E,_e))}adjustLanguagesForFormControl(E,_e,Me){const Ln=E.get("languages");if(Ln){const to=Ln.value;to.push(..._e.map(ha=>ha.id)),Ln.setValue(to.filter((ha,zs)=>to.indexOf(ha)===zs)),Ln.setValue(Ln.value.filter(ha=>-1===Me.findIndex(zs=>zs.id===ha))),Ln.markAsDirty(),Ln.markAsTouched(),Ln.updateValueAndValidity()}}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(tt.N),i.Y36(ka.s),i.Y36(l.UserAutocompleteService),i.Y36(s.qB),i.Y36(s.Ze),i.Y36(n.F0),i.Y36(B.uw),i.Y36(i.sBO),i.Y36(m.sK),i.Y36(l.InputFieldTypeOptionProviderService))};static#t=this.\u0275dir=i.lG2({type:te,features:[i.qOj]})}return te})();var To=a(4938),sr=a(58139),oi=a(5490),Vi=a(36330),Ti=a(93495),Hi=a(6413),Do=a(53256),$o=a(22201),yr=a(84961);function Vr(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"div",6)(1,"div",14)(2,"h3",2),i._uU(3,"imxtools.offer.edit.panels.base-data.addressbaseId"),i.qZA(),i._UZ(4,"imx-autocomplete",15),i.TgZ(5,"button",16),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(2);return i.KtG(Me.openAddressbase(null==Me.formHandler.formGroup.controls.addressbaseId?null:Me.formHandler.formGroup.controls.addressbaseId.value))}),i._uU(6),i.ALo(7,"translate"),i.qZA()()()}if(2&te){const E=i.oxw(2);i.xp6(4),i.Q6J("field",E.formHandler.formConfiguration.findFormFieldById("addressbaseId"))("formHandler",E.formHandler)("control",E.formHandler.formGroup.controls.addressbaseId)("autocompleteService",E.addressbaseAutocompleteService),i.xp6(),i.Q6J("disabled",null==(null==E.formHandler.formGroup.controls.addressbaseId?null:E.formHandler.formGroup.controls.addressbaseId.value)),i.xp6(),i.hij("",i.lcZ(7,6,"imxtools.offer.edit.panels.base-data.open-addressbase")," ")}}function da(te,Pn){if(1&te&&(i.ynx(0),i.YNc(1,Vr,8,8,"div",5),i.BQk()),2&te){const E=i.oxw();i.xp6(),i.Q6J("hasFieldReadPermission","addressbaseId")("hasFieldReadPermissionFormHandler",E.formHandler)}}function Za(te,Pn){1&te&&i.GkF(0)}const ma=()=>({$implicit:"additionalInfo"});function Wa(te,Pn){if(1&te&&(i.TgZ(0,"div",6)(1,"div",14),i.YNc(2,Za,1,0,"ng-container",17),i.qZA()()),2&te){i.oxw();const E=i.MAs(29);i.xp6(2),i.Q6J("ngTemplateOutlet",E)("ngTemplateOutletContext",i.DdM(2,ma))}}const Yi=te=>({clientIds:te});function jo(te,Pn){if(1&te&&i._UZ(0,"imx-autocomplete",23),2&te){const E=i.oxw(3);i.Q6J("field",E.formHandler.formConfiguration.findFormFieldById("addressbaseUser"))("formHandler",E.formHandler)("control",E.formHandler.formGroup.controls.addressbaseUser)("autocompleteService",E.userAutocompleteService)("autocompleteFilter",i.VKq(6,Yi,null==E.clientAndParentClientIds?null:E.clientAndParentClientIds.join(",")))("disableControl",!E.hasAssignUserPermission()||null==E.formHandler.getFormValue("client"))}}function Cn(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"button",25),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(4);return i.KtG(Me.resetAssignedUser())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&te&&(i.xp6(),i.hij(" ",i.lcZ(2,1,"imxplatform.common.reset")," "))}function uo(te,Pn){if(1&te&&(i.ynx(0),i.YNc(1,Cn,3,3,"button",24),i.BQk()),2&te){const E=i.oxw(3);i.xp6(),i.Q6J("hasFieldWritePermission","addressbaseUser")("hasFieldWritePermissionFormHandler",E.formHandler)}}function fo(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"button",27),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(4);return i.KtG(Me.createUser())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&te){const E=i.oxw(4);i.Q6J("disabled",void 0===E.formHandler.getFormModel().client),i.xp6(),i.hij(" ",i.lcZ(2,2,"imxtools.addressbase.edit.panels.base-data.create-user")," ")}}function Jo(te,Pn){if(1&te&&(i.ynx(0),i.YNc(1,fo,3,4,"button",26),i.BQk()),2&te){const E=i.oxw(3);i.xp6(),i.Q6J("hasFieldWritePermission","addressbaseUser")("hasFieldWritePermissionFormHandler",E.formHandler)}}function kr(te,Pn){if(1&te&&(i.TgZ(0,"div",20),i.YNc(1,jo,1,8,"imx-autocomplete",21),i.TgZ(2,"div",22),i.YNc(3,uo,2,2,"ng-container",3)(4,Jo,2,2,"ng-container",3),i.qZA()()),2&te){const E=i.oxw(2);i.xp6(),i.Q6J("hasFieldReadPermission","addressbaseUser")("hasFieldReadPermissionFormHandler",E.formHandler),i.xp6(2),i.Q6J("ngIf",E.hasAssignUserPermission()),i.xp6(),i.Q6J("ngIf",E.hasUserCreatePermission())}}function Qr(te,Pn){if(1&te&&(i.TgZ(0,"div",14)(1,"h3",2),i._uU(2),i.qZA(),i._UZ(3,"imx-edit-client",18),i.YNc(4,kr,5,4,"div",19),i.qZA()),2&te){const E=i.oxw();i.xp6(2),i.Oqu(E.getClientLabel()),i.xp6(),i.Q6J("formHandler",E.formHandler)("feasibleClients",E.feasibleClients)("rootClients",E.rootClients),i.xp6(),i.Q6J("ngIf",E.formHandler.formConfiguration.findFormFieldById("addressbaseUser"))}}function Aa(te,Pn){1&te&&i.GkF(0)}const cs=()=>({$implicit:"types"});function ys(te,Pn){if(1&te&&(i.TgZ(0,"div",29),i.YNc(1,Aa,1,0,"ng-container",17),i.qZA()),2&te){i.oxw(2);const E=i.MAs(29);i.xp6(),i.Q6J("ngTemplateOutlet",E)("ngTemplateOutletContext",i.DdM(2,cs))}}function zr(te,Pn){if(1&te&&(i.ynx(0),i.YNc(1,ys,2,3,"div",28),i.BQk()),2&te){const E=i.oxw();i.xp6(),i.Q6J("hasFieldReadPermission","types")("hasFieldReadPermissionFormHandler",E.formHandler)}}function Pi(te,Pn){if(1&te&&i._UZ(0,"imx-edit-tags",30),2&te){const E=i.oxw();i.Q6J("formHandler",E.formHandler)("tagCollectionDataSource",E.tagCollectionDataSource)}}function xo(te,Pn){1&te&&i.GkF(0)}function lr(te,Pn){1&te&&i.GkF(0)}const Ir=()=>({$implicit:"bookingLink"}),Da=()=>({$implicit:"bookingLinkText"});function ia(te,Pn){if(1&te&&(i.TgZ(0,"div",6)(1,"div",14)(2,"h3",2),i._uU(3,"imxtools.common-entity.edit.panels.base-data.booking-info"),i.qZA(),i.TgZ(4,"div",22),i.YNc(5,xo,1,0,"ng-container",17)(6,lr,1,0,"ng-container",17),i.qZA()()()),2&te){i.oxw();const E=i.MAs(29);i.xp6(5),i.Q6J("ngTemplateOutlet",E)("ngTemplateOutletContext",i.DdM(4,Ir)),i.xp6(),i.Q6J("ngTemplateOutlet",E)("ngTemplateOutletContext",i.DdM(5,Da))}}function as(te,Pn){1&te&&i.GkF(0)}const Is=()=>({$implicit:"paymentOptions"});function ba(te,Pn){if(1&te&&(i.TgZ(0,"div",6)(1,"div",14)(2,"h3",2),i._uU(3,"entity.Addressbase.paymentOptions"),i.qZA(),i.YNc(4,as,1,0,"ng-container",17),i.qZA()()),2&te){i.oxw();const E=i.MAs(29);i.xp6(4),i.Q6J("ngTemplateOutlet",E)("ngTemplateOutletContext",i.DdM(2,Is))}}function Ss(te,Pn){1&te&&(i.TgZ(0,"p",35),i._uU(1,"imxplatform.common.no-records"),i.qZA())}function Ca(te,Pn){1&te&&i._UZ(0,"tr",50)}function Ia(te,Pn){1&te&&i._UZ(0,"tr",51)}function wa(te,Pn){if(1&te&&(i.TgZ(0,"th",52),i._uU(1),i.qZA()),2&te){const E=i.oxw(3);i.xp6(),i.Oqu(E.formHandler.getFormFieldLabel("inputFields:inputFieldType"))}}function Va(te,Pn){if(1&te&&(i.TgZ(0,"td",53),i._UZ(1,"imx-form-control",54),i.qZA()),2&te){const E=Pn.$implicit,_e=i.oxw(3);i.Q6J("formGroup",E),i.xp6(),i.Q6J("field",_e.formHandler.formConfiguration.findFormFieldById("inputFields:inputFieldType"))("control",E.controls.inputFieldType)("form",_e.formHandler.formGroup.get("inputFields"))("formHandler",_e.formHandler)("config",_e.formHandler.formConfiguration)}}function zn(te,Pn){if(1&te&&(i.TgZ(0,"th",52),i._uU(1),i.qZA()),2&te){const E=i.oxw(3);i.xp6(),i.Oqu(E.formHandler.getFormFieldLabel("inputFields:productline"))}}function di(te,Pn){if(1&te&&(i.TgZ(0,"td",53),i._UZ(1,"imx-select",55),i.qZA()),2&te){const E=Pn.$implicit,_e=i.oxw(3);i.Q6J("formGroup",E),i.xp6(),i.Q6J("field",_e.formHandler.formConfiguration.findFormFieldById("inputFields:productline"))("control",E.controls.productline)("form",_e.formHandler.formGroup.get("inputFields"))("formHandler",_e.formHandler)("optionProvider",_e.getProductlinesForInputFieldType(E))}}function cn(te,Pn){if(1&te&&(i.TgZ(0,"th",52),i._uU(1),i.qZA()),2&te){const E=i.oxw(3);i.xp6(),i.Oqu(E.formHandler.getFormFieldLabel("inputFields:inputFieldValue"))}}function Zi(te,Pn){if(1&te&&(i.TgZ(0,"td",53),i._UZ(1,"imx-form-control",54),i.qZA()),2&te){const E=Pn.$implicit,_e=i.oxw(3);i.Q6J("formGroup",E),i.xp6(),i.Q6J("field",_e.formHandler.formConfiguration.findFormFieldById("inputFields:inputFieldValue"))("control",E.controls.inputFieldValue)("form",_e.formHandler.formGroup.get("inputFields"))("formHandler",_e.formHandler)("config",_e.formHandler.formConfiguration)}}function Eo(te,Pn){if(1&te&&(i.TgZ(0,"th",56),i._uU(1),i.qZA()),2&te){const E=i.oxw(3);i.xp6(),i.Oqu(E.formHandler.getFormFieldLabel("inputFields:sortingValue"))}}function oa(te,Pn){if(1&te&&(i.TgZ(0,"td",57),i._UZ(1,"imx-form-control",54),i.qZA()),2&te){const E=Pn.$implicit,_e=i.oxw(3);i.Q6J("formGroup",E),i.xp6(),i.Q6J("field",_e.formHandler.formConfiguration.findFormFieldById("inputFields:sortingValue"))("control",E.controls.sortingValue)("form",_e.formHandler.formGroup.get("inputFields"))("formHandler",_e.formHandler)("config",_e.formHandler.formConfiguration)}}function Nr(te,Pn){1&te&&i._UZ(0,"th",58)}function Rs(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"a",61),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw().$implicit,Ln=i.oxw(3);return i.KtG(Ln.formHandler.removeLineFromCollection("inputFields",Ln.inputFieldCollectionDataSource.filteredData.indexOf(Me)))}),i.qZA()}}function Zr(te,Pn){if(1&te&&(i.TgZ(0,"td",59),i.YNc(1,Rs,1,0,"a",60),i.qZA()),2&te){const E=Pn.$implicit,_e=i.oxw(3);i.Q6J("formGroup",E),i.xp6(),i.Q6J("hasFieldWritePermission","inputFields")("hasFieldWritePermissionFormHandler",_e.formHandler)}}function Na(te,Pn){if(1&te&&(i.TgZ(0,"table",36),i.YNc(1,Ca,1,0,"tr",37)(2,Ia,1,0,"tr",38),i.ynx(3,39),i.YNc(4,wa,2,1,"th",40)(5,Va,2,6,"td",41),i.BQk(),i.ynx(6,42),i.YNc(7,zn,2,1,"th",40)(8,di,2,6,"td",41),i.BQk(),i.ynx(9,43),i.YNc(10,cn,2,1,"th",40)(11,Zi,2,6,"td",41),i.BQk(),i.ynx(12,44),i.YNc(13,Eo,2,1,"th",45)(14,oa,2,6,"td",46),i.BQk(),i.ynx(15,47),i.YNc(16,Nr,1,0,"th",48)(17,Zr,2,3,"td",49),i.BQk(),i.qZA()),2&te){const E=i.oxw(2);i.Q6J("dataSource",E.inputFieldCollectionDataSource),i.xp6(),i.Q6J("matHeaderRowDef",E.inputFieldCollectionColumns),i.xp6(),i.Q6J("matRowDefColumns",E.inputFieldCollectionColumns)}}function ol(te,Pn){if(1&te&&i._UZ(0,"imx-form-control",62),2&te){const E=i.oxw(2);i.Q6J("field",E.formHandler.formConfiguration.findFormFieldById("addInputField"))("control",E.formHandler.formGroup.get("addInputField"))("form",E.formHandler.formGroup)("formHandler",E.formHandler)("config",E.formHandler.formConfiguration)}}function Cl(te,Pn){if(1&te&&(i.TgZ(0,"div",6)(1,"div",14)(2,"h3",2),i._uU(3,"imxtools.common-entity.edit.panels.base-data.input-fields"),i.qZA(),i.YNc(4,Ss,2,0,"ng-template",null,31,i.W1O),i.TgZ(6,"div",32),i.YNc(7,Na,18,3,"table",33),i.qZA(),i.YNc(8,ol,1,5,"imx-form-control",34),i.qZA()()),2&te){const E=i.MAs(5),_e=i.oxw();i.xp6(7),i.Q6J("ngIf",_e.inputFieldCollectionDataSource&&_e.inputFieldCollectionDataSource.data.length>0)("ngIfElse",E),i.xp6(),i.Q6J("hasFieldWritePermission","inputFields")("hasFieldWritePermissionFormHandler",_e.formHandler)}}function Ql(te,Pn){if(1&te&&(i.TgZ(0,"div",6)(1,"div",14)(2,"h3",2),i._uU(3,"imxplatform.common-entity.edit.panels.base-data.extended-attributes"),i.qZA(),i._UZ(4,"imx-edit-extended-attributes",63),i.qZA()()),2&te){const E=i.oxw();i.xp6(4),i.Q6J("formHandler",E.formHandler)("formGroup",E.formHandler.formGroup)("record",E.record)("extendedAttributes",E.extendedAttributesForCoreDateObject)}}function Ho(te,Pn){1&te&&i.GkF(0)}const mc=()=>({$implicit:"attributes"});function os(te,Pn){if(1&te&&(i.TgZ(0,"div",6)(1,"div",14)(2,"h3",2),i._uU(3,"imxplatform.common-entity.edit.panels.base-data.attributes"),i.qZA(),i.YNc(4,Ho,1,0,"ng-container",17),i.qZA()()),2&te){i.oxw();const E=i.MAs(29);i.xp6(4),i.Q6J("ngTemplateOutlet",E)("ngTemplateOutletContext",i.DdM(2,mc))}}function ps(te,Pn){if(1&te&&i._UZ(0,"imx-form-control",54),2&te){const E=Pn.$implicit,_e=i.oxw();i.Q6J("field",_e.formHandler.formConfiguration.findFormFieldById(E))("control",_e.formHandler.formGroup.get(E))("form",_e.formHandler.formGroup)("formHandler",_e.formHandler)("config",_e.formHandler.formConfiguration)}}const Ps=(te,Pn)=>({formHandler:te,record:Pn}),Ba=(te,Pn)=>({editObjectLanguages:te,suggestPermaLink:Pn}),Ka=()=>["bookingLink","bookingLinkText"];let vc=(()=>{class te extends Qi{constructor(E,_e,Me,Ln,to,ha,zs,cc,Gl,id,zd,Fm,Lm){super(E,_e,Me,Ln,to,ha,zs,cc,Gl,id),this.toolsDataAccessService=E,this.addressbaseAutocompleteService=_e,this.userAutocompleteService=Me,this.entitiesMgr=Ln,this.runtimeContext=to,this.router=ha,this.dialog=zs,this.changeDetectorRef=cc,this.translateService=Gl,this.inputFieldTypeOptionProviderService=id,this.userMgmtCreationService=zd,this.configurationProvider=Fm,this.entityCollectionsService=Lm,this.userCreationPresetRoleIds=[]}ngDoCheck(){this.assignedContactTypesCount!==this.formHandler.formGroup.get("types").value.length&&(this.changeDetectorRef.markForCheck(),this.assignedContactTypesCount=this.formHandler.formGroup.get("types").value.length)}onRecordChange(){super.onRecordChange(),this.assignedContactTypesCount=this.formHandler.formGroup.get("types").value.length||0}ngOnInit(){super.ngOnInit();const E=this.configurationProvider.getStringFromSnapshot(hs.s.IMXTOOLS_ADDRESSBASE_USER_CREATION_PREDEFINED_ROLEs,void 0);E&&(this.userCreationPresetRoleIds=E.split(",").map(_e=>parseInt(_e))),0===this.userCreationPresetRoleIds.length&&this.entityCollectionsService.getAllUserRoles().subscribe(_e=>{this.userCreationPresetRoleIds=_e.filter(Me=>Me.permissions.some(Ln=>Ln.name===ji.i.F_ADDRESSBASE_READ_OWN_USER.name)).map(Me=>Me.id)})}isInputFieldTypeUsable(E){return E.usedForAddressbases}getClientLabel(){return"imxtools.addressbase.edit.panels.base-data.client-group"}getUniquePermalink(E,_e){return this.toolsDataAccessService.suggestPermaLinkForAddressbase(E,_e)}determineFeasibleClients(){return this.formHandler.getFormValue("addressbaseUser")&&!this.hasAssignUserPermission()?this.entitiesMgr.getEntityWithIdOfType("User",this.formHandler.getFormValue("addressbaseUser")).pipe((0,dl.w)(E=>this.getClientHierarchy(E.client.id,!0))):super.determineFeasibleClients()}hasAssignUserPermission(){return this.formHandler.hasAddressbaseAssignUserPermission()}hasUserCreatePermission(){return this.formHandler.hasUserCreatePermission()}filterProductlineFn(E){return E.addressbaseDetails&&Object.keys(E.addressbaseDetails).length>0}createUser(){this.userMgmtCreationService.createUser({client:{id:this.formHandler.getFormModel().client},userStateId:Se.dz.id,_entityType:"User"},!1,this.userCreationPresetRoleIds).subscribe(E=>{this.formHandler.formGroup.get("addressbaseUser").setValue(E.id)})}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(tt.N),i.Y36(ka.s),i.Y36(l.UserAutocompleteService),i.Y36(s.qB),i.Y36(s.Ze),i.Y36(n.F0),i.Y36(B.uw),i.Y36(i.sBO),i.Y36(m.sK),i.Y36(l.InputFieldTypeOptionProviderService),i.Y36(l.UserMgmtCreationService),i.Y36(l.ConfigurationProvider),i.Y36(l.EntityCollectionsService))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-addressbase-base-data-form-panel"]],features:[i.qOj],decls:30,vars:46,consts:[[1,"form__content-panel","basicdata"],["id","basicdata",1,"anchor"],["translate",""],[4,"ngIf"],[3,"imxSlotComponent","inputs","outputs"],["class","form__content-row",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[1,"form__content-row"],["class","form__content-group",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[3,"formHandler"],[3,"formHandler","tagCollectionDataSource",4,"ngIf"],["class","form__content-row",4,"hasAnyFieldReadPermission","hasAnyFieldReadPermissionFormHandler"],["class","form__content-row",4,"ngIf"],[3,"formHandler","filterProductlineFn"],["imxControl",""],[1,"form__content-group"],[1,"imx-form-control",3,"field","formHandler","control","autocompleteService"],[1,"imx-button","prio2","imx-button-open-addressbase",3,"disabled","click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"formHandler","feasibleClients","rootClients"],["class","user",4,"ngIf"],[1,"user"],[3,"field","formHandler","control","autocompleteService","autocompleteFilter","disableControl",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[1,"form__content-field-row"],[3,"field","formHandler","control","autocompleteService","autocompleteFilter","disableControl"],["class","imx-button prio2",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"imx-button","prio2",3,"click"],["class","imx-button prio2 create-user-btn",3,"disabled","click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"imx-button","prio2","create-user-btn",3,"disabled","click"],["class","form__content-group type",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[1,"form__content-group","type"],[3,"formHandler","tagCollectionDataSource"],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],["class","imx-button-select no-margin",3,"field","control","form","formHandler","config",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","inputFieldType"],["mat-header-cell","","translate","",4,"matHeaderCellDef"],["mat-cell","",3,"formGroup",4,"matCellDef"],["matColumnDef","productline"],["matColumnDef","inputFieldValue"],["matColumnDef","sortingValue"],["mat-header-cell","","class","sortingValueCol","translate","",4,"matHeaderCellDef"],["mat-cell","","class","sortingValueCol",3,"formGroup",4,"matCellDef"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","","translate",""],["mat-cell","",3,"formGroup"],[3,"field","control","form","formHandler","config"],[3,"field","control","form","formHandler","optionProvider"],["mat-header-cell","","translate","",1,"sortingValueCol"],["mat-cell","",1,"sortingValueCol",3,"formGroup"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],["class","icon icon-trash imx-icon-middle imx-icon-clickable",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"],[1,"imx-button-select","no-margin",3,"field","control","form","formHandler","config"],[3,"formHandler","formGroup","record","extendedAttributes"]],template:function(_e,Me){1&_e&&(i.TgZ(0,"div",0),i._UZ(1,"div",1),i.TgZ(2,"h2",2),i._uU(3,"imxplatform.common-entity.edit.panels.base-data.title"),i.qZA(),i.YNc(4,da,2,2,"ng-container",3),i.GkF(5,4),i.YNc(6,Wa,3,3,"div",5),i.TgZ(7,"div",6),i.YNc(8,Qr,5,5,"div",7)(9,zr,2,2,"ng-container",3),i.qZA(),i._UZ(10,"imx-edit-seo",8),i.YNc(11,Pi,1,2,"imx-edit-tags",9),i.ALo(12,"async"),i.YNc(13,ia,7,6,"div",10),i._UZ(14,"imx-edit-origin",8),i.YNc(15,ba,5,3,"div",11),i.ALo(16,"async"),i.ALo(17,"async"),i.YNc(18,Cl,9,4,"div",11),i.ALo(19,"async"),i.ALo(20,"async"),i.YNc(21,Ql,5,4,"div",11),i.ALo(22,"async"),i.ALo(23,"async"),i.YNc(24,os,5,3,"div",11),i.ALo(25,"async"),i.ALo(26,"async"),i._UZ(27,"imx-edit-productlines",12),i.qZA(),i.YNc(28,ps,1,5,"ng-template",null,13,i.W1O)),2&_e&&(i.xp6(),i.uIk("data-scroll-id","basicdata"),i.xp6(3),i.Q6J("ngIf",Me.formHandler.formConfiguration.hasSomeField("addressbaseId")),i.xp6(),i.Q6J("imxSlotComponent",Me.imxToolsSlots.EDIT_TITLES_SLOT)("inputs",i.WLB(39,Ps,Me.formHandler,Me.record))("outputs",i.WLB(42,Ba,Me.onEditObjectLanguage.bind(Me),Me.suggestPermaLink.bind(Me))),i.xp6(),i.Q6J("hasFieldReadPermission","additionalInfo")("hasFieldReadPermissionFormHandler",Me.formHandler),i.xp6(2),i.Q6J("hasFieldReadPermission","client")("hasFieldReadPermissionFormHandler",Me.formHandler),i.xp6(),i.Q6J("ngIf",Me.formHandler.formConfiguration.hasSomeField("types")),i.xp6(),i.Q6J("formHandler",Me.formHandler),i.xp6(),i.Q6J("ngIf",i.lcZ(12,21,Me.tagsAvailable)),i.xp6(2),i.Q6J("hasAnyFieldReadPermission",i.DdM(45,Ka))("hasAnyFieldReadPermissionFormHandler",Me.formHandler),i.xp6(),i.Q6J("formHandler",Me.formHandler),i.xp6(),i.Q6J("ngIf",i.lcZ(16,23,Me.paymentOptionsAvailable)&&i.lcZ(17,25,Me.formHandler.hasReadPermission("paymentOptions"))),i.xp6(3),i.Q6J("ngIf",i.lcZ(19,27,Me.inputFieldTypesAvailable)&&i.lcZ(20,29,Me.formHandler.hasReadPermission("inputField"))),i.xp6(3),i.Q6J("ngIf",i.lcZ(22,31,Me.extendedAttributesForCoreDataObjectAvailable)&&i.lcZ(23,33,Me.formHandler.hasReadPermission("attributeDefinitions"))),i.xp6(3),i.Q6J("ngIf",Me.formHandler.formConfiguration.hasSomeField("attributes")&&i.lcZ(25,35,Me.formHandler.hasReadPermission("attributes"))&&i.lcZ(26,37,Me.attributesAvailable)),i.xp6(3),i.Q6J("formHandler",Me.formHandler)("filterProductlineFn",Me.filterProductlineFn))},dependencies:[To.Y,sr.L,oi.Q,Vi.r,Ti.k,Hi.O,Do.E,Y.A,Yt.H,$o.l,o.j,Te.X,ee.F,yr.g,x.O5,x.tP,u.JL,me.BZ,me.fO,me.as,me.w1,me.Dz,me.nj,me.ge,me.ev,me.XQ,me.Gk,u.sg,m.Pi,x.Ov,m.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.form__content-group.type[_ngcontent-%COMP%]{flex-basis:230px}.form__content-group[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]{margin-top:15px}.sortingValueCol[_ngcontent-%COMP%]{flex:0 1 100px}.create-user-btn[_ngcontent-%COMP%]{margin-left:10px}[_nghost-%COMP%]     .mdc-data-table__cell{overflow:visible}"],changeDetection:0})}return te})();var $s=a(98840),js=a(44069);function bc(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"div",4)(1,"imx-edit-contact",5),i.NdJ("zipcodeSelection",function(Me){i.CHM(E);const Ln=i.oxw();return i.KtG(Ln.handleContact2ZipcodeSelection(Me))})("citySelection",function(Me){i.CHM(E);const Ln=i.oxw();return i.KtG(Ln.handleContact2CitySelection(Me))}),i.qZA()()}if(2&te){const E=i.oxw();i.xp6(),i.Q6J("groupPrefix","contact2")("header","imxtools.addressbase.edit.panels.contact-data.contact2")("formHandler",E.formHandler)}}function ql(te,Pn){if(1&te&&i._UZ(0,"imx-edit-social-media",8),2&te){const E=i.oxw();i.Q6J("formHandler",E.formHandler)("socialMediaDataSource",E.socialMediaDataSource)("socialMediaColumns",E.socialMediaColumns)}}const Gs=()=>["contact2"],Dl=Se.zc.id;let Yr=(()=>{class te extends l.AbstractCoreDataObjectFormPanelComponent{constructor(E,_e,Me,Ln,to,ha){super(_e,Ln),this.imxToolsDataAccessService=E,this.entitiesMgr=_e,this.runtimeContextService=Me,this.dialog=Ln,this.changeDetectorRef=to,this.configurationProvider=ha}ngOnInit(){super.ngOnInit(),this.socialMediaDataSource=this.prepareTable(this.formHandler.formGroup.get("socialMedia"),E=>this.socialMediaDataSource=E),this.socialMediaColumns=this.determineTableColumns("socialMedia")}addContactAddressLine(E){this.imxToolsDataAccessService.getAddressbaseById(E).subscribe(_e=>{const Me=this.formHandler.addNewCollectionRow("contactAddressbases"),Ln={entityState:_e.entityState,id:_e.id,title:He(_e.title),contact1:He(_e.contact1),appearances:He(_e.appearances)};Me.controls.contactAddressbase.setValue(Ln),this.changeDetectorRef.markForCheck()})}handleContact1CitySelection(E){E&&E.entityId&&this.entitiesMgr.getEntityWithIdOfType("Location",E.entityId).subscribe(_e=>{this.formHandler.handleCitySelection(_e,"contact1.address.zipcode"),this.formHandler.resetGeoInfoData(_e),this.changeDetectorRef.markForCheck()})}handleContact2CitySelection(E){E&&E.entityId&&this.entitiesMgr.getEntityWithIdOfType("Location",E.entityId).subscribe(_e=>{this.formHandler.handleCitySelection(_e,"contact2.address.zipcode")})}handleContact1ZipcodeSelection(E){E&&E.entityId&&this.entitiesMgr.getEntityWithIdOfType("Location",E.entityId).subscribe(_e=>{this.formHandler.handleZipcodeSelection(_e,E.inputString,"contact1.address.zipcode","contact1.address.city"),this.formHandler.resetGeoInfoData(_e),this.changeDetectorRef.markForCheck()})}handleContact2ZipcodeSelection(E){E&&E.entityId&&this.entitiesMgr.getEntityWithIdOfType("Location",E.entityId).subscribe(_e=>{this.formHandler.handleZipcodeSelection(_e,E.inputString,"contact2.address.zipcode","contact2.address.city")})}isContactAddressbase(){const E=this.formHandler.formGroup.get("types");if(E)return E.value.some(Me=>Me===Dl)}changeIsContactAddressbase(E){const _e=this.formHandler.formGroup.get("types");if(_e){if(E.checked)_e.value.push(Dl);else{const Me=_e.value;Me.splice(Me.findIndex(Ln=>Ln===Dl),1)}_e.markAsDirty()}}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(tt.N),i.Y36(s.qB),i.Y36(s.Ze),i.Y36(B.uw),i.Y36(i.sBO),i.Y36(l.ConfigurationProvider))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-addressbase-contact-data-form-panel"]],features:[i.qOj],decls:10,vars:10,consts:[[1,"form__content-panel","contactdata"],["id","contact",1,"anchor"],["translate",""],[1,"form__content-row","wrap-md"],[1,"form__content-group"],[3,"groupPrefix","header","formHandler","zipcodeSelection","citySelection"],["class","form__content-group",4,"hasAnyFieldReadPermission","hasAnyFieldReadPermissionFormHandler"],[3,"formHandler","socialMediaDataSource","socialMediaColumns",4,"ngIf"],[3,"formHandler","socialMediaDataSource","socialMediaColumns"]],template:function(_e,Me){1&_e&&(i.TgZ(0,"div",0),i._UZ(1,"div",1),i.TgZ(2,"h2",2),i._uU(3,"imxtools.common-entity.edit.panels.contact-data.title"),i.qZA(),i.TgZ(4,"div",3)(5,"div",4)(6,"imx-edit-contact",5),i.NdJ("zipcodeSelection",function(to){return Me.handleContact1ZipcodeSelection(to)})("citySelection",function(to){return Me.handleContact1CitySelection(to)}),i.qZA()(),i.YNc(7,bc,2,3,"div",6),i.qZA(),i.YNc(8,ql,1,3,"imx-edit-social-media",7),i.ALo(9,"async"),i.qZA()),2&_e&&(i.xp6(),i.uIk("data-scroll-id","contact"),i.xp6(5),i.Q6J("groupPrefix","contact1")("header","imxtools.addressbase.edit.panels.contact-data.contact1")("formHandler",Me.formHandler),i.xp6(),i.Q6J("hasAnyFieldReadPermission",i.DdM(9,Gs))("hasAnyFieldReadPermissionFormHandler",Me.formHandler),i.xp6(),i.Q6J("ngIf",i.lcZ(9,7,Me.formHandler.hasReadPermission("socialMedia"))))},dependencies:[$s.t,js.d,$o.l,x.O5,m.Pi,x.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}@media (max-width: 900px){.form__content-panel.contactdata[_ngcontent-%COMP%]   .form__content-row[_ngcontent-%COMP%]{flex-wrap:wrap}.form__content-panel.contactdata[_ngcontent-%COMP%]   .form__content-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:0}}"],changeDetection:0})}return te})();var _a=a(29989),ts=a(18718),rl=a(94289),ya=a(59038),Pl=a(16007),jl=a(17299),Ml=a(80617),rc=a(6996),Kr=a(94480),la=a(8386);const ks=()=>[Un.n,rl.l,o.j,ee.F,x.mk,x.sg,x.O5,ya.i$,ya.Tg,Pl.pW,m.Pi,Fn.p,yt.z,Bt.t,jl.J,lt.j,Ml.E,rc.D,Kr.w,x.Ov,x.uU,m.X$,la.ZM];function Ta(te,Pn){1&te&&(i.TgZ(0,"p",11),i._uU(1,"imxplatform.common.no-records"),i.qZA())}function ds(te,Pn){1&te&&i._UZ(0,"mat-progress-bar",12)}function bs(te,Pn){if(1&te&&(i.ynx(0),i.TgZ(1,"p",32),i._uU(2),i.TgZ(3,"span",31),i._uU(4),i.ALo(5,"productline"),i.qZA()(),i.BQk()),2&te){const E=Pn.ngIf;i.xp6(2),i.hij("Produktlinien (",E.length,"): "),i.xp6(2),i.Oqu(i.lcZ(5,2,E))}}function sl(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-action-menu-item",44),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw().$implicit,Ln=i.oxw(5);return i.KtG(Ln.navigateToOffer(Me.id))}),i._uU(1," imxplatform.common-entity.list.edit "),i.qZA()}2&te&&i.Q6J("icon","icon-pencil")}function Ec(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-action-menu-item",45),i.NdJ("actionClicked",function(){i.CHM(E);const Me=i.oxw().$implicit,Ln=i.oxw(5);return i.KtG(Ln.onRemoveOffer(Me))}),i._uU(1,"imxplatform.common-entity.list.remove "),i.qZA()}2&te&&i.Q6J("icon","icon-trash")}const gr=te=>({placeholder:te}),Js=(te,Pn,E,_e)=>[te,"100x100",Pn,E,_e];function Ms(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"mat-list-item",17)(1,"div",18)(2,"div",19)(3,"div",20)(4,"div",21),i._UZ(5,"img",22),i.ALo(6,"imgprx"),i.TgZ(7,"span",23),i._uU(8),i.qZA()(),i.TgZ(9,"div",24),i._UZ(10,"span",25),i.qZA(),i.TgZ(11,"div",26)(12,"div",27)(13,"div",28)(14,"a",29),i.NdJ("click",function(){const Ln=i.CHM(E).$implicit,to=i.oxw(5);return i.KtG(to.contextNavigationService.navigateToCoreEntityContextual(["/offers","edit",Ln.id]))}),i._uU(15),i.ALo(16,"readI18n"),i.qZA(),i.TgZ(17,"div",30)(18,"p",31),i._uU(19,"ID: "),i.TgZ(20,"span",32),i._uU(21),i.qZA()(),i.TgZ(22,"p",31),i._uU(23,"Mandant: "),i.TgZ(24,"span",32),i._uU(25),i.qZA()()()(),i.TgZ(26,"div",33),i._UZ(27,"imx-language-flag",34),i.qZA(),i.TgZ(28,"div",35)(29,"div")(30,"p",31),i._uU(31),i.ALo(32,"translate"),i.qZA(),i.TgZ(33,"p",36),i._uU(34),i.ALo(35,"date"),i.ALo(36,"convertTimestamps"),i.ALo(37,"translate"),i.qZA()(),i.TgZ(38,"div",37)(39,"p",31),i._uU(40),i.ALo(41,"translate"),i.qZA(),i.TgZ(42,"p",36),i._uU(43),i.ALo(44,"date"),i.ALo(45,"convertTimestamps"),i.ALo(46,"translate"),i.qZA()()()(),i.TgZ(47,"div",27)(48,"div",38),i.YNc(49,bs,6,4,"ng-container",39),i.ALo(50,"productlineFilter"),i.qZA()()()()(),i.TgZ(51,"div",40)(52,"imx-dropup-button")(53,"imx-action-menu"),i.YNc(54,sl,2,1,"imx-action-menu-item",41),i.ALo(55,"async"),i.YNc(56,Ec,2,1,"imx-action-menu-item",42),i.ALo(57,"async"),i.qZA()(),i._UZ(58,"imx-entity-state",43),i.qZA()()()}if(2&te){const E=Pn.$implicit,_e=i.oxw(5);i.xp6(4),i.Q6J("ngClass",i.VKq(54,gr,!E.imageUrl)),i.xp6(),i.Q6J("src",E.imageUrl?i.G7q(6,22,i.l5B(56,Js,E.imageUrl,E.imageIconFocalXRatio?E.imageIconFocalXRatio:-1,E.imageIconFocalYRatio?E.imageIconFocalYRatio:-1,""+(E.imageIconId?E.imageIconId:""))):"./assets/placeholders/type-image.svg",i.LSH),i.xp6(3),i.Oqu(E.imageIconUrl),i.xp6(7),i.hij(" ",i.lcZ(16,28,E.title),""),i.xp6(6),i.hij("",E.id," "),i.xp6(4),i.Oqu(null==E||null==E.client?null:E.client.name),i.xp6(2),i.Q6J("languages",null==E?null:E.languages),i.xp6(4),i.hij("",i.lcZ(32,30,"entity.AuditedDataObject.creationTime"),":"),i.xp6(3),i.lnq(" ",i.xi3(35,32,i.lcZ(36,35,E.creationTime),"dd.MM.yyyy - HH:mm")," ",i.lcZ(37,37,"imxplatform.common.time-indicator")," (",E.creationFrom,")"),i.xp6(6),i.hij("",i.lcZ(41,39,"entity.AuditedDataObject.lastChangeTime"),":"),i.xp6(3),i.lnq(" ",i.xi3(44,41,i.lcZ(45,44,E.lastChangeTime),"dd.MM.yyyy - HH:mm")," ",i.lcZ(46,46,"imxplatform.common.time-indicator")," (",E.lastChangeFrom,")"),i.xp6(6),i.Q6J("ngIf",i.lcZ(50,48,null==E?null:E.metainfos)),i.xp6(5),i.Q6J("ngIf",i.lcZ(55,50,_e.formHandler.hasEditOfferPermission(E))),i.xp6(2),i.Q6J("ngIf",i.lcZ(57,52,_e.formHandler.hasDeleteOfferPermission(E))),i.xp6(2),i.Q6J("additionalClass","form__list-row-action-box")("key",E.entityState.key)("appearances",null==E?null:E.appearances)("inline",!1)}}function Bs(te,Pn){if(1&te&&(i.TgZ(0,"div",15)(1,"p"),i._uU(2,"Dem Stamm sind "),i.TgZ(3,"b"),i._uU(4),i.qZA(),i._uU(5," Angebote zugewiesen"),i.qZA(),i.TgZ(6,"mat-list"),i.YNc(7,Ms,59,61,"mat-list-item",16),i.qZA()()),2&te){const E=i.oxw().ngIf;i.xp6(4),i.Oqu(E.totalNumberOfResults),i.xp6(3),i.Q6J("ngForOf",E.items)}}function yl(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-paginator",46),i.NdJ("page",function(Me){i.CHM(E);const Ln=i.oxw(4);return i.KtG(Ln.onPageChange(Me))}),i.qZA()}if(2&te){const E=i.oxw().ngIf,_e=i.oxw(3);i.Q6J("length",E.totalNumberOfResults)("pageIndex",_e.currentPageIndex)("pageSize",_e.currentPageSize)("pageLinks",7)}}function Fr(te,Pn){if(1&te&&(i.TgZ(0,"div"),i.YNc(1,Bs,8,2,"div",13)(2,yl,1,4,"imx-paginator",14),i.qZA()),2&te){const E=Pn.ngIf;i.oxw();const _e=i.MAs(2),Me=i.oxw(2);i.xp6(),i.Q6J("ngIf",E.totalNumberOfResults>0)("ngIfElse",_e),i.xp6(),i.Q6J("ngIf",E.totalNumberOfResults>Me.currentPageSize)}}function nl(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"button",47),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(3);return i.KtG(Me.linkToCreateOffer())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&te&&(i.xp6(),i.hij(" ",i.lcZ(2,1,"imxtools.addressbase.edit.panels.offer.create-offer")," "))}function hl(te,Pn){if(1&te&&(i.TgZ(0,"div",6),i.YNc(1,Ta,2,0,"ng-template",null,7,i.W1O)(3,ds,1,0,"ng-template",null,8,i.W1O)(5,Fr,3,3,"div",9),i.ALo(6,"async"),i.YNc(7,nl,3,3,"button",10),i.qZA()),2&te){const E=i.MAs(4),_e=i.oxw(2);i.xp6(5),i.Q6J("ngIf",i.lcZ(6,3,_e.offersPagedItems$))("ngIfElse",E),i.xp6(2),i.Q6J("ngIf",_e.formHandler.hasAddOfferPermission())}}function Cc(te,Pn){if(1&te&&(i.TgZ(0,"div",4),i.YNc(1,hl,8,5,"div",5),i.qZA()),2&te){const E=i.oxw();i.xp6(),i.Q6J("hasFieldReadPermission","offerIds")("hasFieldReadPermissionFormHandler",E.formHandler)}}function Zt(te,Pn){1&te&&i._UZ(0,"imx-loading-detail")}let ri=(()=>{class te extends l.AbstractCoreDataObjectFormPanelComponent{constructor(E,_e,Me,Ln,to){super(E,Ln),this.entitiesMgr=E,this.router=_e,this.toolsDataAccess=Me,this.dialog=Ln,this.offerDeleteAction=to,this.contextNavigationService=(0,i.f3M)(l.ContextNavigationService),this.currentPageIndex=1,this.currentPageSize=10}onRecordChange(){this.loadOffers()}ngOnInit(){if(super.ngOnInit(),!this.formHandler.formGroup.get("offerIds"))throw new Error("No FormControl found with id offerIds")}onRemoveOffer(E){this.offerDeleteAction.doExecute(E).subscribe(_e=>{this.formHandler.formGroup.get("offerIds").setValue(this.formHandler.formGroup.get("offerIds").value.filter(Me=>Me!==E.id)),this.loadOffers()})}onPageChange(E){this.currentPageIndex=E.pageIndex,this.currentPageSize=E.pageSize,this.loadOffers();const _e=document.getElementById("offers");_e&&_e.scrollIntoView({behavior:"smooth",block:"start"})}loadOffers(){this.offersPagedItems$=this.formHandler.formGroup.get("offerIds").value&&this.formHandler.formGroup.get("offerIds").value.length>0?this.toolsDataAccess.getOffers({id:this.formHandler.formGroup.get("offerIds").value.join(",")},{paging:{pageIdx:this.currentPageIndex,pageSize:this.currentPageSize}}):(0,I.of)({totalNumberOfResults:0})}navigateToOffer(E){this.contextNavigationService.navigateToCoreEntityContextual(["/offers","edit",E],{addressbaseId:this.record.id})}linkToCreateOffer(){if(this.formHandler.formGroup.dirty){const E=this.openDiscardDialog("imxtools.addressbase.edit.dialog-on-close");E&&E.afterClosed().subscribe(_e=>{_e&&this.contextNavigationService.navigateToCoreEntityContextual(["/offers","new"],{addressbaseId:this.record.id})})}else this.contextNavigationService.navigateToCoreEntityContextual(["/offers","new"],{addressbaseId:this.record.id})}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(s.qB),i.Y36(n.F0),i.Y36(tt.N),i.Y36(B.uw),i.Y36(_a.j))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-addressbase-offer-form-panel"]],hostAttrs:[1,"imx-addressbase-offer-form-panel"],inputs:{formHandler:"formHandler"},features:[i.qOj],decls:8,vars:1,consts:[[1,"form__content-panel","offer"],["id","offers",1,"anchor"],["translate",""],[2e3],[1,"form__content-row"],["class","form__content-group",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[1,"form__content-group"],["noRecord",""],["loading",""],[4,"ngIf","ngIfElse"],["class","imx-button prio2 bottom",3,"click",4,"ngIf"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mode","indeterminate"],["class","form__list media-list",4,"ngIf","ngIfElse"],[3,"length","pageIndex","pageSize","pageLinks","page",4,"ngIf"],[1,"form__list","media-list"],["class","form__list-item",4,"ngFor","ngForOf"],[1,"form__list-item"],[1,"form__list-row-wrapper"],[1,"form__list-row"],[1,"form__list-content-wrapper"],[1,"form__list-column","image-column",3,"ngClass"],["loading","lazy",1,"list-image",3,"src"],[2,"display","none"],[1,"form__list-column","col2","icon-column"],[1,"icon-tag"],[1,"form__list-content-rows"],[1,"form__list-content"],[1,"form__list-column","col3"],[1,"txt-bg",3,"click"],[1,"txt-sm","margin-top"],[1,"txt-grey"],[1,"txt-default"],[1,"list__column","col4"],[3,"languages"],[1,"list__column","col5"],[1,"txt-md"],[1,"margin-top"],[1,"form__list-column"],[4,"ngIf"],[1,"form__list-row-action"],[3,"icon","click",4,"ngIf"],["additionalStyle","delete",3,"icon","actionClicked",4,"ngIf"],[3,"additionalClass","key","appearances","inline"],[3,"icon","click"],["additionalStyle","delete",3,"icon","actionClicked"],[3,"length","pageIndex","pageSize","pageLinks","page"],[1,"imx-button","prio2","bottom",3,"click"]],template:function(_e,Me){1&_e&&(i.TgZ(0,"div",0),i._UZ(1,"div",1),i.TgZ(2,"h2",2),i._uU(3,"entity.Offer.plural"),i.qZA(),i.YNc(4,Cc,2,2)(5,Zt,1,0),i.EqZ(6,4,ks,null,5,null,null,3,i.t2F),i.BYR(0,-1),i.qZA()),2&_e&&(i.xp6(),i.uIk("data-scroll-id","offers"))},dependencies:[m.Pi,ts.k],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__list[_ngcontent-%COMP%]   .form__list-item[_ngcontent-%COMP%]{color:#3e3e3e;font-size:12px;line-height:16px;margin-bottom:10px;height:100%!important}.form__list[_ngcontent-%COMP%]   .form__list-row-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;box-sizing:border-box;position:relative;height:inherit;width:100%}.form__list[_ngcontent-%COMP%]   .form__list-row-wrapper.new[_ngcontent-%COMP%]   .form__list-row[_ngcontent-%COMP%]{background-color:#eefafa}.form__list[_ngcontent-%COMP%]   .form__list-row[_ngcontent-%COMP%]{background:#fff;border:.5px solid #ced4e0;box-sizing:border-box;width:100%;padding:20px;z-index:1}@media (max-width: 900px){.form__list[_ngcontent-%COMP%]   .form__list-row[_ngcontent-%COMP%]{padding:10px}}.form__list[_ngcontent-%COMP%]   .form__list-column[_ngcontent-%COMP%]{margin-right:10px;word-break:break-word}@media (max-width: 900px){.form__list[_ngcontent-%COMP%]   .form__list-column[_ngcontent-%COMP%]{margin-right:5px}}.form__list[_ngcontent-%COMP%]   .form__list-column[_ngcontent-%COMP%]   .margin-top[_ngcontent-%COMP%]{margin-top:7px}.form__list[_ngcontent-%COMP%]   .form__list-column[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style-type:square;list-style-position:inside}.form__list[_ngcontent-%COMP%]   .form__list-column[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px}.form__list[_ngcontent-%COMP%]   .form__list-content-wrapper[_ngcontent-%COMP%]{display:flex}.form__list[_ngcontent-%COMP%]   .form__list-content-wrapper[_ngcontent-%COMP%]   .form__list-column.icon-column[_ngcontent-%COMP%]{font-size:20px;color:#000;line-height:22px}.form__list[_ngcontent-%COMP%]   .form__list-content-wrapper[_ngcontent-%COMP%]   .form__list-column.image-column[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100px;height:100px;object-fit:cover}@media (max-width: 900px){.form__list[_ngcontent-%COMP%]   .form__list-content-wrapper[_ngcontent-%COMP%]   .form__list-column.image-column[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:50px;height:50px}}.form__list[_ngcontent-%COMP%]   .form__list-content-wrapper[_ngcontent-%COMP%]   .form__list-column.image-column.placeholder[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:unset}.form__list[_ngcontent-%COMP%]   .form__list-content-wrapper[_ngcontent-%COMP%]   .form__list-column.col3[_ngcontent-%COMP%]{flex-basis:450px}.form__list[_ngcontent-%COMP%]   .form__list-content-wrapper[_ngcontent-%COMP%]   .form__list-column.col4[_ngcontent-%COMP%]{width:20px}.form__list[_ngcontent-%COMP%]   .form__list-content-wrapper[_ngcontent-%COMP%]   .form__list-column.col5[_ngcontent-%COMP%]{flex-basis:400px}.form__list[_ngcontent-%COMP%]   .form__list-content[_ngcontent-%COMP%]{display:-webkit-flex;display:flex;flex-direction:row;margin-bottom:10px;width:100%}.form__list[_ngcontent-%COMP%]   .form__list-content[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.form__list[_ngcontent-%COMP%]   .form__list-content-rows[_ngcontent-%COMP%]{width:100%}.form__list[_ngcontent-%COMP%]   .form__list-row-action[_ngcontent-%COMP%]{min-height:100%;display:flex;flex-direction:column;padding-left:5px;text-align:center;position:relative;z-index:1;min-width:40px}@media (max-width: 900px){.form__list[_ngcontent-%COMP%]   .form__list-row-action[_ngcontent-%COMP%]{min-width:30px;padding-left:2px}}.form__list[_ngcontent-%COMP%]   .form__list-row-action[_ngcontent-%COMP%]   .form__list-row-action-box[_ngcontent-%COMP%]{flex:1;display:flex;justify-content:center;align-items:center}.form__list[_ngcontent-%COMP%]   .form__list-row-action[_ngcontent-%COMP%]   .form__list-row-action-box.menu[_ngcontent-%COMP%]{background:#0a2663;color:#fff;cursor:pointer}.form__list[_ngcontent-%COMP%]   .form__list-row-action[_ngcontent-%COMP%]   .form__list-row-action-box[_ngcontent-%COMP%] ~ .form__list-row-action-box[_ngcontent-%COMP%]{margin-top:5px}.form__list[_ngcontent-%COMP%]   .form__list-extension[_ngcontent-%COMP%]{background:#eefafa;border:1px solid #ced4e0;position:relative;top:-10px}.form__list[_ngcontent-%COMP%]   .form__list-extension-header[_ngcontent-%COMP%]{display:flex;margin:0}.form__list[_ngcontent-%COMP%]   .form__list-extension-header[_ngcontent-%COMP%]   .tab[_ngcontent-%COMP%]{margin:20px 10px 10px 20px;padding:7px 10px;cursor:pointer;border-radius:3px}@media (max-width: 900px){.form__list[_ngcontent-%COMP%]   .form__list-extension-header[_ngcontent-%COMP%]   .tab[_ngcontent-%COMP%]{margin:10px 5px 5px 10px}}.form__list[_ngcontent-%COMP%]   .form__list-extension-content[_ngcontent-%COMP%]   .row-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-bottom:5px}.form__list[_ngcontent-%COMP%]   .form__list-extension-row[_ngcontent-%COMP%]{background-color:#fff;padding:10px 65px 10px 10px;margin:0 20px 10px;width:100%;border-radius:3px;display:flex;flex-direction:column;position:relative}.form__list[_ngcontent-%COMP%]   .form__list-extension-row[_ngcontent-%COMP%]   .margin-top[_ngcontent-%COMP%]{margin-top:7px}.form__list[_ngcontent-%COMP%]   .form__list-extension-row[_ngcontent-%COMP%]   .form__list-content[_ngcontent-%COMP%]{margin-bottom:0}.form__list[_ngcontent-%COMP%]   .form__list-extension-row[_ngcontent-%COMP%]   .form__list-column[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{margin-right:5px}.form__list[_ngcontent-%COMP%]   .form__list-content[_ngcontent-%COMP%]   .form__list-column.col3[_ngcontent-%COMP%]{flex-basis:50%}.form__list[_ngcontent-%COMP%]   .form__list-content[_ngcontent-%COMP%]   .form__list-column.bottom-slot[_ngcontent-%COMP%]{padding-left:105px}"],changeDetection:0})}return te})();var Mn=a(2901),mi=a(10444),Mo=a(45438);function pr(te,Pn){if(1&te&&(i.TgZ(0,"div"),i._UZ(1,"imx-opening-hours-information-form-panel",16),i.qZA()),2&te){const E=i.oxw().$implicit,_e=i.oxw(2);i.xp6(),i.Q6J("formHandler",_e.formHandler)("openingHoursInformationRowFormGroup",_e.getOpeningHoursRowByPl(E.value))("tileDesc",E.label)}}function Pr(te,Pn){if(1&te&&(i.TgZ(0,"div",6),i.YNc(1,pr,2,3,"div",15),i.qZA()),2&te){const E=Pn.$implicit,_e=i.oxw(2);i.xp6(),i.Q6J("ngIf",E.value==_e.productlineSelectionCtrl.value)}}function xa(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"div",1),i._UZ(1,"div",2),i.TgZ(2,"h2",3),i._uU(3,"imxtools.addressbase.edit.panels.opening-hours.header"),i.qZA(),i.TgZ(4,"div",4)(5,"div",5)(6,"div",6),i._UZ(7,"imx-base-input-label",7)(8,"imx-base-select",8),i.TgZ(9,"div",6)(10,"div",9)(11,"div"),i._UZ(12,"imx-form-control",10)(13,"imx-form-control",10)(14,"imx-form-control",10),i.qZA(),i.TgZ(15,"div",11),i._UZ(16,"imx-form-control",10)(17,"imx-form-control",10),i.qZA()()()(),i.TgZ(18,"div",12)(19,"button",13),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw();return i.KtG(Me.reset(Me.productlineSelectionCtrl.value))}),i.ALo(20,"async"),i._uU(21),i.ALo(22,"translate"),i.qZA()(),i.YNc(23,Pr,2,1,"div",14),i.qZA()()()}if(2&te){const E=i.oxw();i.xp6(),i.uIk("data-scroll-id","openingHours"),i.xp6(6),i.Q6J("label","imxtools.addressbase.edit.panels.opening-hours.sub-header"),i.xp6(),i.Q6J("formControl",E.productlineSelectionCtrl)("options",E.productlines),i.xp6(4),i.Q6J("field",E.formHandler.formConfiguration.findFormFieldById("openingHoursInformations:temporarilyClosed"))("control",E.getOpeningHoursRowByPl(E.productlineSelectionCtrl.value).get("temporarilyClosed"))("form",E.getOpeningHoursRowByPl(E.productlineSelectionCtrl.value))("formHandler",E.formHandler)("config",E.formHandler.formConfiguration),i.xp6(),i.Q6J("field",E.formHandler.formConfiguration.findFormFieldById("openingHoursInformations:permanentlyClosed"))("control",E.getOpeningHoursRowByPl(E.productlineSelectionCtrl.value).get("permanentlyClosed"))("form",E.getOpeningHoursRowByPl(E.productlineSelectionCtrl.value))("formHandler",E.formHandler)("config",E.formHandler.formConfiguration),i.xp6(),i.Q6J("field",E.formHandler.formConfiguration.findFormFieldById("openingHoursInformations:openOnRequest"))("control",E.getOpeningHoursRowByPl(E.productlineSelectionCtrl.value).get("openOnRequest"))("form",E.getOpeningHoursRowByPl(E.productlineSelectionCtrl.value))("formHandler",E.formHandler)("config",E.formHandler.formConfiguration),i.xp6(2),i.Q6J("field",E.formHandler.formConfiguration.findFormFieldById("openingHoursInformations:noOpeningHours"))("control",E.getOpeningHoursRowByPl(E.productlineSelectionCtrl.value).get("noOpeningHours"))("form",E.getOpeningHoursRowByPl(E.productlineSelectionCtrl.value))("formHandler",E.formHandler)("config",E.formHandler.formConfiguration),i.xp6(),i.Q6J("field",E.formHandler.formConfiguration.findFormFieldById("openingHoursInformations:permanentlyOpen"))("control",E.getOpeningHoursRowByPl(E.productlineSelectionCtrl.value).get("permanentlyOpen"))("form",E.getOpeningHoursRowByPl(E.productlineSelectionCtrl.value))("formHandler",E.formHandler)("config",E.formHandler.formConfiguration),i.xp6(2),i.Q6J("disabled",!E.hasContent(E.productlineSelectionCtrl.value)||!i.lcZ(20,32,E.formHandler.hasSavePermission())),i.xp6(2),i.hij(" ",i.lcZ(22,34,"imxtools.addressbase.edit.panels.opening-hours.btn-reset")," "),i.xp6(2),i.Q6J("ngForOf",E.productlines)}}const tl={value:-1,label:"Standard"};let Ls=(()=>{class te extends l.AbstractCoreDataObjectFormPanelComponent{constructor(E,_e,Me,Ln,to){super(E,Me),this.entitiesMgr=E,this.productlinesOptionService=_e,this.dialog=Me,this.translateService=Ln,this.changeDetectorRef=to,this.productlines=[]}onRecordChange(){if(this.loadProductlines(),!this.getOpeningHoursRowByPl(-1)){const E=this.formHandler.formGroup.pristine,_e=this.formHandler.addNewCollectionRow("openingHoursInformations");this.getProductlineControl(_e).setValue(null),E&&_e.markAsPristine()}}ngOnInit(){this.productlineSelectionCtrl=this.formHandler.formGroup.get("selectOpeningHoursProductline"),this.formHandler.onAssignedProductlinesChanges().pipe((0,P.R)(this.destroy$)).subscribe(_e=>{this.productlineSelectionCtrl.setValue(-1),this.loadProductlines();const Me=[];this.formHandler.getFormArrayControl("openingHoursInformations").controls.forEach((Ln,to)=>{const ha=Ln.get("productline").value;ha&&!_e.includes(ha)&&Me.push(ha)}),Me.forEach(Ln=>{this.formHandler.getFormArrayControl("openingHoursInformations").removeAt(this.formHandler.getFormArrayControl("openingHoursInformations").controls.findIndex(to=>to.get("productline").value===Ln))})});const E=this.formHandler.formGroup.get("selectOpeningHoursProductline");E&&E.valueChanges.pipe((0,P.R)(this.destroy$),(0,G.h)(_e=>-1!==_e)).subscribe(_e=>{if(!this.getOpeningHoursRowByPl(_e)){const Me=this.formHandler.addNewCollectionRow("openingHoursInformations");this.getProductlineControl(Me).setValue(-1===_e?null:_e)}E.markAsPristine()}),this.getOpeningHoursRowByPl(this.productlineSelectionCtrl.value)&&(this.getOpeningHoursRowByPl(this.productlineSelectionCtrl.value).get("noOpeningHours").value&&this.getOpeningHoursRowByPl(this.productlineSelectionCtrl.value).get("permanentlyOpen").disable(),this.getOpeningHoursRowByPl(this.productlineSelectionCtrl.value).get("permanentlyOpen").value&&this.getOpeningHoursRowByPl(this.productlineSelectionCtrl.value).get("noOpeningHours").disable(),this.getOpeningHoursRowByPl(this.productlineSelectionCtrl.value).get("noOpeningHours").valueChanges.subscribe(_e=>{this.disableOrEnableCheckbox(_e,"permanentlyOpen")}),this.getOpeningHoursRowByPl(this.productlineSelectionCtrl.value).get("permanentlyOpen").valueChanges.subscribe(_e=>{this.disableOrEnableCheckbox(_e,"noOpeningHours")}))}reset(E){this.hasContent(E)&&(E>-1?this.entitiesMgr.getEntityWithIdOfType("Productline",E).subscribe(_e=>{this.showResetDialog(_e.id,_e.i18nName[this.translateService.currentLang])}):this.showResetDialog(tl.value,tl.label))}loadProductlines(){this.productlines=[],this.productlines.push(tl),this.productlinesOptionService.getOptions(this.formHandler).subscribe(E=>this.productlines.push(...E))}showResetDialog(E,_e){this.dialog.open(l.ConfirmDialogComponent,{maxWidth:450,data:{title:this.translateService.instant("imxtools.addressbase.edit.panels.opening-hours.reset-confirm-title"),text:this.translateService.instant("imxtools.addressbase.edit.panels.opening-hours.reset-confirm-text",{pl:_e}),iconClass:"icon-trash",translated:!0,confirmButtonKey:"imxtools.addressbase.edit.panels.opening-hours.reset-btn-text"}}).afterClosed().subscribe(Ln=>{if(Ln){const to=this.getOpeningHoursRowByPl(E);to&&(to.get("openingHours")&&((0,l.resetI18nControl)(to.get("openingHours")),to.markAsDirty()),to.get("openingHourDefinitions")&&(to.get("openingHourDefinitions").controls.length=0,to.get("openingHourDefinitions").setValue([]),to.markAsDirty()),to.get("descriptionClosedDays")&&((0,l.resetI18nControl)(to.get("descriptionClosedDays")),to.markAsDirty()),to.get("closedHourDefinitions")&&(to.get("closedHourDefinitions").controls.length=0,to.get("closedHourDefinitions").setValue([]),to.markAsDirty()),to.get("temporarilyClosed")&&(to.get("temporarilyClosed").setValue(!1),to.markAsDirty()),to.get("permanentlyClosed")&&(to.get("permanentlyClosed").setValue(!1),to.markAsDirty()),to.get("noOpeningHours")&&(to.get("noOpeningHours").setValue(!1),to.markAsDirty()),to.get("permanentlyOpen")&&(to.get("permanentlyOpen").setValue(!1),to.markAsDirty()),to.get("openOnRequest")&&(to.get("openOnRequest").setValue(!1),to.markAsDirty()),this.changeDetectorRef.markForCheck())}})}hasContent(E){const _e=this.getOpeningHoursRowByPl(E);return!!_e&&(!this.isEmptyI18nControl(_e.get("openingHours"))||!this.isEmptyI18nControl(_e.get("descriptionClosedDays"))||_e.get("openingHourDefinitions").controls.length>0||_e.get("closedHourDefinitions").controls.length>0)}isEmptyI18nControl(E){return!Object.keys(E.controls).filter(_e=>"_entityType"!==_e).filter(_e=>"id"!==_e).map(_e=>E.get(_e).value).some(_e=>null!=_e&&""!==_e)}getOpeningHoursRowByPl(E){return this.formHandler.getFormArrayControl("openingHoursInformations").controls.find(_e=>this.getProductlineControl(_e).value===E||null==_e.get("productline").value&&-1===E)}getProductlineControl(E){if(E.get("productline"))return E.get("productline");throw new Error("openingHours row does not contain control productlineId")}disableOrEnableCheckbox(E,_e){E?this.getOpeningHoursRowByPl(this.productlineSelectionCtrl.value).controls[_e].disable({emitEvent:!1}):this.getOpeningHoursRowByPl(this.productlineSelectionCtrl.value).controls[_e].enable({emitEvent:!1})}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(l.ImxEntitiesMgrService),i.Y36(l.ProductlinesWithPortalContextOptionProviderService),i.Y36(B.uw),i.Y36(m.sK),i.Y36(i.sBO))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-opening-hours-data-form-panel"]],features:[i.qOj],decls:1,vars:2,consts:[["class","form__content-panel openingHours",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[1,"form__content-panel","openingHours"],["id","openingHours",1,"anchor"],["translate",""],[1,"form__content-row"],[1,"form__content-group"],[1,"form__content-field-row"],[3,"label"],[1,"product-line-select",3,"formControl","options"],[1,"opened-closed-flags"],[3,"field","control","form","formHandler","config"],[1,"opened-closed-flag-right-block"],[1,"form__content-field-row","txt-right"],[1,"imx-button","prio2",3,"disabled","click"],["class","form__content-field-row",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"formHandler","openingHoursInformationRowFormGroup","tileDesc"]],template:function(_e,Me){1&_e&&i.YNc(0,xa,24,36,"div",0),2&_e&&i.Q6J("hasFieldReadPermission","openingHoursPermissionField")("hasFieldReadPermissionFormHandler",Me.formHandler)},dependencies:[Mn.u,mi.o,Y.A,o.j,x.sg,x.O5,u.JJ,u.oH,m.Pi,Mo.R7,x.Ov,m.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.product-line-select[_ngcontent-%COMP%]{display:block;width:unset!important;min-width:200px;margin-bottom:10px}.opened-closed-flags[_ngcontent-%COMP%]{display:flex;flex-direction:row}.opened-closed-flag-right-block[_ngcontent-%COMP%]{margin-left:40px}"],changeDetection:0})}return te})();function Ts(te,Pn){if(1&te&&i._UZ(0,"imx-opening-hours-data-form-panel",2),2&te){const E=i.oxw(2);i.Q6J("formHandler",E.formHandler)("record",E.record)}}function _s(te,Pn){if(1&te&&i._UZ(0,"imx-master-data-object-references-form-panel",7),2&te){const E=i.oxw(2);i.Q6J("formHandler",E.formHandler)("record",E.record)("contactListsEnabled",E.contactListsEnabled)("contactAddressbaseEnabled",E.formHandler.isContactAddressbaseEnabled())("contactAddressbaseHasSortingValue",!0)}}function ul(te,Pn){if(1&te&&(i.TgZ(0,"div"),i._UZ(1,"imx-productline-info-form-panel",10),i.qZA()),2&te){const E=Pn.$implicit,_e=i.oxw(3);i.xp6(),i.Q6J("module",E)("formHandler",_e.formHandler)("record",_e.record)("formGroup",_e.formHandler.formGroup)}}function qs(te,Pn){if(1&te&&(i.TgZ(0,"div",8)(1,"h2",9),i._uU(2,"imxplatform.common-entity.edit.panels.productlineInfo.headline"),i.qZA(),i.YNc(3,ul,2,4,"div",6),i.qZA()),2&te){const E=i.oxw(2);i.xp6(3),i.Q6J("ngForOf",E.productlineInfoModules)}}function Ks(te,Pn){if(1&te&&(i.TgZ(0,"div"),i._UZ(1,"imx-module-form-panel",11),i.qZA()),2&te){const E=Pn.$implicit,_e=i.oxw(2);i.xp6(),i.Q6J("module",E)("entityType","Addressbase")("formHandler",_e.formHandler)("record",_e.record)}}function pl(te,Pn){if(1&te&&(i.TgZ(0,"div")(1,"form",1),i.NdJ("keydown.enter",function(_e){return _e.preventDefault()}),i._UZ(2,"imx-addressbase-base-data-form-panel",2)(3,"imx-addressbase-contact-data-form-panel",2)(4,"imx-addressbase-geo-form-panel",2),i.YNc(5,Ts,1,2,"imx-opening-hours-data-form-panel",3),i._UZ(6,"imx-addressbase-media-form-panel",2)(7,"imx-master-data-object-appearance-form-panel",2),i.YNc(8,_s,1,5,"imx-master-data-object-references-form-panel",4),i._UZ(9,"imx-addressbase-anatomy-form-panel",2),i.YNc(10,qs,4,1,"div",5)(11,Ks,2,4,"div",6),i._UZ(12,"imx-addressbase-offer-form-panel",2),i.qZA()()),2&te){const E=i.oxw();i.xp6(),i.Q6J("formGroup",E.formHandler.formGroup),i.xp6(),i.Q6J("formHandler",E.formHandler)("record",E.record),i.xp6(),i.Q6J("formHandler",E.formHandler)("record",E.record),i.xp6(),i.Q6J("formHandler",E.formHandler)("record",E.record),i.xp6(),i.Q6J("hasFieldReadPermission","openingHoursPermissionField")("hasFieldReadPermissionFormHandler",E.formHandler),i.xp6(),i.Q6J("formHandler",E.formHandler)("record",E.record),i.xp6(),i.Q6J("formHandler",E.formHandler)("record",E.record),i.xp6(),i.Q6J("ngIf",E.contactListsEnabled||E.contactAddressbaseEnabled),i.xp6(),i.Q6J("formHandler",E.formHandler)("record",E.record),i.xp6(),i.Q6J("ngIf",E.productlineInfoModules.length>0),i.xp6(),i.Q6J("ngForOf",E.dataModules),i.xp6(),i.Q6J("formHandler",E.formHandler)("record",E.record)}}let nc=(()=>{class te extends l.FormComponent{constructor(E){super(E),this.userMessageService=E}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(l.UserMessageService))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-addressbase-edit-form"]],inputs:{formHandler:"formHandler",dataModules:"dataModules",productlineInfoModules:"productlineInfoModules",contactListsEnabled:"contactListsEnabled",contactAddressbaseEnabled:"contactAddressbaseEnabled"},features:[i.qOj],decls:1,vars:2,consts:[[4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],["id","addressbase-edit",3,"formGroup","keydown.enter"],[3,"formHandler","record"],[3,"formHandler","record",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[3,"formHandler","record","contactListsEnabled","contactAddressbaseEnabled","contactAddressbaseHasSortingValue",4,"ngIf"],["class","form__content-panel",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"formHandler","record","contactListsEnabled","contactAddressbaseEnabled","contactAddressbaseHasSortingValue"],[1,"form__content-panel"],["translate",""],[3,"module","formHandler","record","formGroup"],[3,"module","entityType","formHandler","record"]],template:function(_e,Me){1&_e&&i.YNc(0,pl,13,20,"div",0),2&_e&&i.Q6J("hasFieldReadPermission","title")("hasFieldReadPermissionFormHandler",Me.formHandler)},dependencies:[p.A,c.n,o.j,x.sg,x.O5,u._Y,u.JL,u.sg,m.Pi,b.E,Li,co,qr,Ds,vc,Yr,ri,Ls],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return te})();var Mi=a(28321),or=a(96135),Ki=a(66253),Ao=a(35475);const Go=()=>[];function dr(te,Pn){if(1&te&&(i.TgZ(0,"imx-tooltip",1)(1,"a",2)(2,"span",3),i._UZ(3,"span",4)(4,"span",5),i.qZA()()()),2&te){const E=i.oxw();i.Q6J("tooltipText",E.getScoreTooltip("entity.AddressPoi.relevanceScore",E.record.relevanceScore))("offset",300),i.xp6(),i.Q6J("routerLink",i.DdM(4,Go)),i.xp6(),i.Q6J("ngClass",E.relevanceScoreIcon)}}let pn=(()=>{class te{constructor(E){this.translateService=E}ngOnChanges(E){E.record&&this.record&&(this.relevanceScoreIcon=this.calcRelevanceScoreIcon())}getScoreTooltip(E,_e){return this.translateService.instant(E)+": "+_e}calcRelevanceScoreIcon(){const E="icon-relevanceScore_",_e=this.record.relevanceScore;if(null==_e)return null;switch(!0){case _e<25:return E+"25_red";case 25<=_e&&_e<=50:return E+"50_red";case 50<_e&&_e<=75:return E+"75_yellow";case 75<_e:return E+"100_green";default:return null}}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(m.sK))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-relevance-score-icon"]],inputs:{record:"record"},features:[i.TTD],decls:1,vars:1,consts:[[3,"tooltipText","offset",4,"ngIf"],[3,"tooltipText","offset"],["fragment","anatomy",1,"actions",3,"routerLink"],[1,"imx-icon-middle",3,"ngClass"],[1,"path1"],[1,"path2"]],template:function(_e,Me){1&_e&&i.YNc(0,dr,5,5,"imx-tooltip",0),2&_e&&i.Q6J("ngIf",Me.relevanceScoreIcon)},dependencies:[x.mk,x.O5,n.rH,Ao.K,ee.F],styles:[".actions[_ngcontent-%COMP%]{padding:5px 0 0 10px;margin-left:10px;border-left:1px solid #e6e9ef;display:inline-block;cursor:pointer;text-decoration:none}"]})}return te})();var bo=a(18476),nt=a(6469),Sn=a(83010),fi=a(30728),$i=a(67338),No=a(37012),Ar=a(12);function xr(te,Pn){1&te&&(i.TgZ(0,"div",33),i._UZ(1,"mat-progress-bar",34),i.qZA())}const Sr=te=>({active:te}),ns=()=>[];function Tl(te,Pn){if(1&te&&(i.TgZ(0,"a",35)(1,"div",13),i._UZ(2,"span",36),i.TgZ(3,"span",15),i._uU(4),i.ALo(5,"translate"),i.qZA()()()),2&te){const E=i.oxw();i.Q6J("ngClass",i.VKq(5,Sr,E.isPanelActive("geo")))("routerLink",i.DdM(7,ns)),i.xp6(4),i.Oqu(i.lcZ(5,3,"imxplatform.common-entity.edit.navigation.geoinformation"))}}function Fs(te,Pn){if(1&te&&(i.TgZ(0,"a",37)(1,"div",13),i._UZ(2,"span",38),i.TgZ(3,"span",15),i._uU(4),i.ALo(5,"translate"),i.qZA()()()),2&te){const E=i.oxw();i.Q6J("ngClass",i.VKq(5,Sr,E.isPanelActive("openingHours")))("routerLink",i.DdM(7,ns)),i.xp6(4),i.Oqu(i.lcZ(5,3,"imxplatform.common-entity.edit.navigation.opening"))}}function il(te,Pn){if(1&te&&(i.TgZ(0,"a",39)(1,"div",13),i._UZ(2,"span",40),i.TgZ(3,"span",15),i._uU(4),i.ALo(5,"translate"),i.qZA()()()),2&te){const E=i.oxw();i.Q6J("ngClass",i.VKq(5,Sr,E.isPanelActive("references")))("routerLink",i.DdM(7,ns)),i.xp6(4),i.Oqu(i.lcZ(5,3,"imxplatform.common-entity.edit.navigation.references"))}}function ac(te,Pn){if(1&te&&(i.TgZ(0,"div")(1,"a",48)(2,"div",49),i._UZ(3,"span",50)(4,"span",51),i.TgZ(5,"span",52),i._uU(6),i.ALo(7,"readI18n"),i.qZA()()()()),2&te){const E=Pn.$implicit,_e=i.oxw(4);i.xp6(),i.Q6J("ngClass",i.VKq(8,Sr,_e.isPanelActive("productlineInfo-"+E.plKey)))("routerLink",i.DdM(10,ns))("fragment","productlineInfo-"+E.plKey),i.xp6(4),i.hYB("matTooltip","",E.plKey," ",E.id,""),i.xp6(),i.Oqu(i.lcZ(7,6,E.i18nName))}}function Nl(te,Pn){if(1&te&&(i.TgZ(0,"div",46),i.YNc(1,ac,8,11,"div",47),i.qZA()),2&te){const E=i.oxw(3);i.xp6(),i.Q6J("ngForOf",E.productlineInfoModules)}}function em(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"div",42)(1,"div",43),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(2);return i.KtG(Me.toggleProductlineInfos())}),i._UZ(2,"span",44),i.TgZ(3,"span",15),i._uU(4),i.ALo(5,"translate"),i.qZA()(),i.YNc(6,Nl,2,1,"div",45),i.qZA()}if(2&te){const E=i.oxw(2);i.xp6(4),i.Oqu(i.lcZ(5,2,"imxplatform.common-entity.edit.navigation.productlineInfos")),i.xp6(2),i.Q6J("ngIf",E.showProductlineInfoItems)}}function Kl(te,Pn){if(1&te&&(i.TgZ(0,"div")(1,"a",48)(2,"div",49),i._UZ(3,"span",50)(4,"span",54),i.TgZ(5,"span",52),i._uU(6),i.ALo(7,"readI18n"),i.qZA()()()()),2&te){const E=Pn.$implicit,_e=i.oxw(4);i.xp6(),i.Q6J("ngClass",i.VKq(8,Sr,_e.isPanelActive("module-"+E.plKey)))("routerLink",i.DdM(10,ns))("fragment","module-"+E.plKey),i.xp6(4),i.hYB("matTooltip","",E.plKey," ",E.id,""),i.xp6(),i.Oqu(i.lcZ(7,6,E.i18nName))}}function xl(te,Pn){if(1&te&&(i.TgZ(0,"div",46),i.YNc(1,Kl,8,11,"div",47),i.qZA()),2&te){const E=i.oxw(3);i.xp6(),i.Q6J("ngForOf",E.dataModules)}}function ll(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"div",42)(1,"div",43),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(2);return i.KtG(Me.toggleModules())}),i._UZ(2,"span",53),i.TgZ(3,"span",15),i._uU(4),i.ALo(5,"translate"),i.qZA()(),i.YNc(6,xl,2,1,"div",45),i.qZA()}if(2&te){const E=i.oxw(2);i.xp6(4),i.Oqu(i.lcZ(5,2,"imxplatform.common-entity.edit.navigation.modules")),i.xp6(2),i.Q6J("ngIf",E.showModuleItems)}}function tm(te,Pn){if(1&te&&(i.ynx(0),i.YNc(1,em,7,4,"div",41)(2,ll,7,4,"div",41),i.BQk()),2&te){const E=i.oxw();i.xp6(),i.Q6J("ngIf",E.productlineInfoModules.length>0),i.xp6(),i.Q6J("ngIf",E.dataModules.length>0)}}function Nc(te,Pn){if(1&te&&(i.TgZ(0,"a",55)(1,"div",13),i._UZ(2,"span",56),i.TgZ(3,"span",15),i._uU(4),i.ALo(5,"translate"),i.qZA()()()),2&te){const E=i.oxw();i.Q6J("ngClass",i.VKq(5,Sr,E.isPanelActive("offers")))("routerLink",i.DdM(7,ns)),i.xp6(4),i.Oqu(i.lcZ(5,3,"imxplatform.common-entity.edit.navigation.offers"))}}const Dd=()=>({width:"100%",height:"100%"});function _c(te,Pn){1&te&&(i.TgZ(0,"div",33),i._UZ(1,"mat-progress-bar",34),i.qZA())}function wc(te,Pn){if(1&te&&(i.TgZ(0,"a",35)(1,"div",13),i._UZ(2,"span",36),i.TgZ(3,"span",15),i._uU(4),i.ALo(5,"translate"),i.qZA()()()),2&te){const E=i.oxw();i.Q6J("ngClass",i.VKq(5,Sr,E.isPanelActive("geo")))("routerLink",i.DdM(7,ns)),i.xp6(4),i.Oqu(i.lcZ(5,3,"imxplatform.common-entity.edit.navigation.geoinformation"))}}function nm(te,Pn){if(1&te&&(i.TgZ(0,"a",37)(1,"div",13),i._UZ(2,"span",38),i.TgZ(3,"span",15),i._uU(4),i.ALo(5,"translate"),i.qZA()()()),2&te){const E=i.oxw();i.Q6J("ngClass",i.VKq(5,Sr,E.isPanelActive("openingHours")))("routerLink",i.DdM(7,ns)),i.xp6(4),i.Oqu(i.lcZ(5,3,"imxplatform.common-entity.edit.navigation.opening"))}}function Id(te,Pn){if(1&te&&(i.TgZ(0,"a",39)(1,"div",13),i._UZ(2,"span",40),i.TgZ(3,"span",15),i._uU(4),i.ALo(5,"translate"),i.qZA()()()),2&te){const E=i.oxw();i.Q6J("ngClass",i.VKq(5,Sr,E.isPanelActive("references")))("routerLink",i.DdM(7,ns)),i.xp6(4),i.Oqu(i.lcZ(5,3,"imxplatform.common-entity.edit.navigation.references"))}}function Ns(te,Pn){if(1&te&&(i.TgZ(0,"div")(1,"a",48)(2,"div",49),i._UZ(3,"span",50)(4,"span",51),i.TgZ(5,"span",52),i._uU(6),i.ALo(7,"readI18n"),i.qZA()()()()),2&te){const E=Pn.$implicit,_e=i.oxw(4);i.xp6(),i.Q6J("ngClass",i.VKq(8,Sr,_e.isPanelActive("productlineInfo-"+E.plKey)))("routerLink",i.DdM(10,ns))("fragment","productlineInfo-"+E.plKey),i.xp6(4),i.hYB("matTooltip","",E.plKey," ",E.id,""),i.xp6(),i.Oqu(i.lcZ(7,6,E.i18nName))}}function Uc(te,Pn){if(1&te&&(i.TgZ(0,"div",46),i.YNc(1,Ns,8,11,"div",47),i.qZA()),2&te){const E=i.oxw(3);i.xp6(),i.Q6J("ngForOf",E.productlineInfoModules)}}function dn(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"div",42)(1,"div",43),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(2);return i.KtG(Me.toggleProductlineInfos())}),i._UZ(2,"span",44),i.TgZ(3,"span",15),i._uU(4),i.ALo(5,"translate"),i.qZA()(),i.YNc(6,Uc,2,1,"div",45),i.qZA()}if(2&te){const E=i.oxw(2);i.xp6(4),i.Oqu(i.lcZ(5,2,"imxplatform.common-entity.edit.navigation.productlineInfos")),i.xp6(2),i.Q6J("ngIf",E.showProductlineInfoItems)}}function Mr(te,Pn){if(1&te&&(i.TgZ(0,"div")(1,"a",48)(2,"div",49),i._UZ(3,"span",50)(4,"span",54),i.TgZ(5,"span",52),i._uU(6),i.ALo(7,"readI18n"),i.qZA()()()()),2&te){const E=Pn.$implicit,_e=i.oxw(4);i.xp6(),i.Q6J("ngClass",i.VKq(8,Sr,_e.isPanelActive("module-"+E.plKey)))("routerLink",i.DdM(10,ns))("fragment","module-"+E.plKey),i.xp6(4),i.hYB("matTooltip","",E.plKey," ",E.id,""),i.xp6(),i.Oqu(i.lcZ(7,6,E.i18nName))}}function mn(te,Pn){if(1&te&&(i.TgZ(0,"div",46),i.YNc(1,Mr,8,11,"div",47),i.qZA()),2&te){const E=i.oxw(3);i.xp6(),i.Q6J("ngForOf",E.dataModules)}}function Nn(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"div",42)(1,"div",43),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(2);return i.KtG(Me.toggleModules())}),i._UZ(2,"span",53),i.TgZ(3,"span",15),i._uU(4),i.ALo(5,"translate"),i.qZA()(),i.YNc(6,mn,2,1,"div",45),i.qZA()}if(2&te){const E=i.oxw(2);i.xp6(4),i.Oqu(i.lcZ(5,2,"imxplatform.common-entity.edit.navigation.modules")),i.xp6(2),i.Q6J("ngIf",E.showModuleItems)}}function Ci(te,Pn){if(1&te&&(i.ynx(0),i.YNc(1,dn,7,4,"div",41)(2,Nn,7,4,"div",41),i.BQk()),2&te){const E=i.oxw();i.xp6(),i.Q6J("ngIf",E.productlineInfoModules.length>0),i.xp6(),i.Q6J("ngIf",E.dataModules.length>0)}}function Io(te,Pn){if(1&te&&(i.TgZ(0,"a",55)(1,"div",13),i._UZ(2,"span",56),i.TgZ(3,"span",15),i._uU(4),i.ALo(5,"translate"),i.qZA()()()),2&te){const E=i.oxw();i.Q6J("ngClass",i.VKq(5,Sr,E.isPanelActive("offers")))("routerLink",i.DdM(7,ns)),i.xp6(4),i.Oqu(i.lcZ(5,3,"imxplatform.common-entity.edit.navigation.offers"))}}const cr=".edit[_ngcontent-%COMP%]{padding-top:113px}.edit__wrapper[_ngcontent-%COMP%]{display:flex}.edit__wrapper[_ngcontent-%COMP%]   .edit__content[_ngcontent-%COMP%]{flex:1}.edit__navigation-items[_ngcontent-%COMP%]{display:flex;flex-direction:column}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]{font-size:14px;cursor:pointer;text-decoration:none;display:inline-block;transition:background-color .75s ease}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]{padding:8px;margin:5px 0;display:flex;flex-direction:row;align-items:center}@media (max-width: 900px){.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]{justify-content:center}}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content.sub[_ngcontent-%COMP%]{margin:2px 0}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .item-label[_ngcontent-%COMP%]{margin-left:15px;text-overflow:ellipsis;overflow:hidden}@media (max-width: 900px){.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .item-label[_ngcontent-%COMP%]{display:none}}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .item-label.sub[_ngcontent-%COMP%]{margin-left:10px}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .sub-item-icon[_ngcontent-%COMP%]{display:none}@media (max-width: 900px){.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .sub-item-icon[_ngcontent-%COMP%]{display:block}}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-sub-items[_ngcontent-%COMP%]{display:flex;flex-direction:column}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-sub-items[_ngcontent-%COMP%]   .icon-subNavigation[_ngcontent-%COMP%]{font-size:10px;margin-right:10px}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-sub-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]{padding-left:10px}.edit__navigation-sticky-wrapper[_ngcontent-%COMP%]{min-width:250px}@media (max-width: 900px){.edit__navigation-sticky-wrapper[_ngcontent-%COMP%]{min-width:100px}}.edit__navigation-sticky-content[_ngcontent-%COMP%]{padding-bottom:15px;padding-right:15px;max-width:250px;position:fixed;top:163px}.edit__navigation-sticky-content[_ngcontent-%COMP%]     .p-scrollpanel{transition:max-height .6s ease-in-out}@media (min-width: 901px){.edit__navigation-sticky-content[_ngcontent-%COMP%]{height:calc(100vh - 200px)}}@media (max-width: 900px){.edit__navigation-sticky-content[_ngcontent-%COMP%]{height:calc(100vh - 240px);min-width:100px}}",ra=["basicdata","contact","geo","openingHours","media","appearances","references","anatomy","offers"],$a=new i.OlP("imxtools.addressbase.edit.voter");let xe=(()=>{class te extends l.AbstractModuleAwareDataObjectEditPage{constructor(E,_e,Me,Ln,to,ha,zs,cc,Gl,id,zd,Fm,Lm,Iu,Su,K_){super(E,_e,Me,Ln,to,ha,zs,cc,Gl,id,zd,Fm),this.addressbaseEditVoter=Fm,this.router=Lm,this.listHistoryService=Iu,this.dataAccessService=Su,this.configurationProvider=K_,this.logger=(0,l.getLogger)("AddressbaseEditPage",Mi.H.name),this.resourceKeyPrefix="imxtools.addressbase."}ngOnInit(){super.ngOnInit(),this.isDeactivated$=this.formHandler.isDeactivated(),this.logger.debug("Open addressbase edit page. Is in creation mode: "+this.isCreateMode)}addRecord(E){return this.dataAccessService.createAddressbase(E)}recordSaved(E){this.isSaveAndClose?this.close():this.isCreateMode?this.router.navigate(["addressbases","edit",E.id]):this.reload(),this.userMessageService.showInfo("imxtools.addressbase.edit.save-successfull")}updateRecord(E){return this.dataAccessService.updateAddressbase(E)}getAvailablePanels(){const E=[...ra];return this.dataModules.forEach(_e=>E.push("module-"+_e.plKey)),this.productlineInfoModules.forEach(_e=>E.push("productlineInfo-"+_e.plKey)),E}getEntityTypeForHistory(){return l.HistoryEntityType.ADDRESSBASE}save(E){this.isSaveAndClose=E||!1,this.formComponent&&this.formComponent.submit(),this.clearCurrentStateInStorage()}getReloadDialogMsg(){return"imxtools.addressbase.edit.dialog-on-reload"}close(){super.handleCloseAction("imxtools.addressbase.edit.dialog-on-close","imxtools.addressbase.edit.dialog-on-close-new")}navigateToList(){this.listHistoryService.navigateToLastListState(this.getEntityTypeForHistory().entityType)||this.router.navigate(["/addressbases"])}hasProductlineInfo(E){return E.addressbaseDetails&&Object.keys(E.addressbaseDetails).length>0&&!0===E.addressbaseDetails.enableAdditionalDescriptions}isDataModule(E){return null!=E.metainfos&&E.metainfos.some(_e=>"Addressbase"===_e.forEntity)}showOpenData(){return this.configurationProvider.getBooleanFromSnapshot(l.ImxPlatformConfigParameter.PLATFORM_OPEN_DATA_ENABLED,!1)}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(t.D6),i.Y36(l.ImxPlatformDataAccessService),i.Y36(n.gz),i.Y36(s.Yz),i.Y36(l.UserMessageService),i.Y36(l.ImxEntitiesMgrService),i.Y36(l.EntityBrowseHistoryStorageService),i.Y36(x.EM),i.Y36(l.ObjectListCreationService),i.Y36(B.uw),i.Y36(m.sK),i.Y36($a,8),i.Y36(n.F0),i.Y36(l.ListHistoryService),i.Y36(tt.N),i.Y36(l.ConfigurationProvider))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["ng-component"]],viewQuery:function(_e,Me){if(1&_e&&i.Gf(nc,7),2&_e){let Ln;i.iGM(Ln=i.CRH())&&(Me.formComponent=Ln.first)}},features:[i.qOj],decls:54,vars:72,consts:[[1,"edit"],[3,"formHandler","record","entityType","resourceKeyPrefix","activeSlideInType","showImportInfoButton","showQualityBlock","reloadClicked","slideInEvent","addToObjectListClicked"],["class","page-loading-wrapper","progress-bar","",4,"ngIf"],["quality-icons","",3,"record"],["quality-icons","",3,"openDataRecord","showOpenDataIcon"],["lg_w","12","lg_o","0"],[1,"edit__wrapper"],[1,"edit__navigation-sticky-wrapper"],[1,"edit__navigation-sticky-content"],["scrollBar",""],[1,"edit__navigation-items"],["formNavigation",""],["fragment","basicdata",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"edit__navigation-item-content"],[1,"icon","icon-pencil","imx-icon-middle"],[1,"item-label"],["fragment","contact",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-phone","imx-icon-middle"],["class","edit__navigation-item","fragment","geo",3,"ngClass","routerLink",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],["class","edit__navigation-item","fragment","openingHours",3,"ngClass","routerLink",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],["fragment","media",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-picture","imx-icon-middle"],["fragment","appearances",1,"edit__navigation-item",3,"routerLink","ngClass"],[1,"icon","icon-earth","imx-icon-middle"],["class","edit__navigation-item","fragment","references",3,"ngClass","routerLink",4,"ngIf"],["fragment","anatomy",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-site-map","imx-icon-middle"],[4,"ngIf"],["class","edit__navigation-item","fragment","offers",3,"ngClass","routerLink",4,"ngIf"],[3,"formHandler","isSubmitting","hideCloseBtn","save","saveAndClose","close"],[1,"edit__content"],["alwaysFixed","true"],["scrollToInvalidField","",3,"formHandler","record","dataModules","productlineInfoModules","contactListsEnabled","contactAddressbaseEnabled","save"],["progress-bar","",1,"page-loading-wrapper"],["mode","indeterminate"],["fragment","geo",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-map-marker","imx-icon-middle"],["fragment","openingHours",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-calendar-full","imx-icon-middle"],["fragment","references",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-reference-list","imx-icon-middle"],["class","edit__navigation-item",4,"ngIf"],[1,"edit__navigation-item"],[1,"edit__navigation-item-content",3,"click"],[1,"icon","icon-editor-text","imx-icon-middle"],["class","edit__navigation-sub-items",4,"ngIf"],[1,"edit__navigation-sub-items"],[4,"ngFor","ngForOf"],[1,"edit__navigation-item",3,"ngClass","routerLink","fragment"],[1,"edit__navigation-item-content","sub"],[1,"icon","icon-subNavigation"],[1,"icon","icon-editor-text","sub-item-icon"],["matTooltipShowDelay","5000",1,"item-label","sub",3,"matTooltip"],[1,"icon","icon-jigsaw","imx-icon-middle"],[1,"icon","icon-jigsaw","sub-item-icon"],["fragment","offers",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-tag","imx-icon-middle"]],template:function(_e,Me){1&_e&&(i.TgZ(0,"div",0)(1,"imx-edit-header",1),i.NdJ("reloadClicked",function(){return Me.reload()})("slideInEvent",function(to){return Me.dispatchSlideEvent(to)})("addToObjectListClicked",function(){return Me.addToObjectList()}),i.YNc(2,xr,2,0,"div",2),i._UZ(3,"imx-relevance-score-icon",3)(4,"imx-opendata-icon",4),i.qZA(),i.TgZ(5,"imx-grid")(6,"imx-grid-element",5)(7,"div",6)(8,"div",7)(9,"div",8)(10,"p-scrollPanel",null,9)(12,"div",10,11)(14,"a",12)(15,"div",13),i._UZ(16,"span",14),i.TgZ(17,"span",15),i._uU(18),i.ALo(19,"translate"),i.qZA()()(),i.TgZ(20,"a",16)(21,"div",13),i._UZ(22,"span",17),i.TgZ(23,"span",15),i._uU(24),i.ALo(25,"translate"),i.qZA()()(),i.YNc(26,Tl,6,8,"a",18)(27,Fs,6,8,"a",19),i.TgZ(28,"a",20)(29,"div",13),i._UZ(30,"span",21),i.TgZ(31,"span",15),i._uU(32),i.ALo(33,"translate"),i.qZA()()(),i.TgZ(34,"a",22)(35,"div",13),i._UZ(36,"span",23),i.TgZ(37,"span",15),i._uU(38),i.ALo(39,"translate"),i.qZA()()(),i.YNc(40,il,6,8,"a",24),i.TgZ(41,"a",25)(42,"div",13),i._UZ(43,"span",26),i.TgZ(44,"span",15),i._uU(45),i.ALo(46,"translate"),i.qZA()()(),i.YNc(47,tm,3,2,"ng-container",27)(48,Nc,6,8,"a",28),i.qZA()(),i.TgZ(49,"imx-edit-page-button-bar",29),i.NdJ("save",function(){return Me.save()})("saveAndClose",function(){return Me.save(!0)})("close",function(){return Me.close()}),i.ALo(50,"async"),i.qZA()()(),i.TgZ(51,"div",30)(52,"imx-generic-slide-in-page",31)(53,"imx-addressbase-edit-form",32),i.NdJ("save",function(to){return Me.submit(to)}),i.qZA()()()()()()()),2&_e&&(i.xp6(),i.Q6J("formHandler",Me.formHandler)("record",Me.record)("entityType","Addressbase")("resourceKeyPrefix",Me.resourceKeyPrefix)("activeSlideInType",Me.activeSlideInType)("showImportInfoButton",Me.record.importInfos&&Me.record.importInfos.length>0)("showQualityBlock",!0),i.xp6(),i.Q6J("ngIf",Me.isSubmitting),i.xp6(),i.Q6J("record",Me.record),i.xp6(),i.Q6J("openDataRecord",Me.record)("showOpenDataIcon",Me.showOpenData()),i.xp6(6),i.Akn(i.DdM(56,Dd)),i.xp6(4),i.Q6J("ngClass",i.VKq(57,Sr,Me.isPanelActive("basicdata")))("routerLink",i.DdM(59,ns)),i.xp6(4),i.Oqu(i.lcZ(19,44,"imxplatform.common-entity.edit.navigation.basedata")),i.xp6(2),i.Q6J("ngClass",i.VKq(60,Sr,Me.isPanelActive("contact")))("routerLink",i.DdM(62,ns)),i.xp6(4),i.Oqu(i.lcZ(25,46,"imxplatform.common-entity.edit.navigation.contact")),i.xp6(2),i.Q6J("hasFieldReadPermission","geoInfo.master")("hasFieldReadPermissionFormHandler",Me.formHandler),i.xp6(),i.Q6J("hasFieldReadPermission","openingHoursPermissionField")("hasFieldReadPermissionFormHandler",Me.formHandler),i.xp6(),i.Q6J("ngClass",i.VKq(63,Sr,Me.isPanelActive("media")))("routerLink",i.DdM(65,ns)),i.xp6(4),i.Oqu(i.lcZ(33,48,"imxplatform.common-entity.edit.navigation.media")),i.xp6(2),i.Q6J("routerLink",i.DdM(66,ns))("ngClass",i.VKq(67,Sr,Me.isPanelActive("appearances"))),i.xp6(4),i.Oqu(i.lcZ(39,50,"imxplatform.common-entity.edit.navigation.publications")),i.xp6(2),i.Q6J("ngIf",Me.formHandler.isContactListsEnabled()||Me.formHandler.isContactAddressbaseEnabled()),i.xp6(),i.Q6J("ngClass",i.VKq(69,Sr,Me.isPanelActive("anatomy")))("routerLink",i.DdM(71,ns)),i.xp6(4),i.Oqu(i.lcZ(46,52,"imxplatform.common-entity.edit.navigation.anatomy")),i.xp6(2),i.Q6J("ngIf",Me.dataModules),i.xp6(),i.Q6J("ngIf",Me.formHandler.hasAnyOfferPermission()),i.xp6(),i.Q6J("formHandler",Me.formHandler)("isSubmitting",Me.isSubmitting)("hideCloseBtn",!!Me.editVoter&&i.lcZ(50,54,Me.editVoter.hideCloseBtn())),i.xp6(4),i.Q6J("formHandler",Me.formHandler)("record",Me.record)("dataModules",Me.dataModules)("productlineInfoModules",Me.productlineInfoModules)("contactListsEnabled",Me.formHandler.isContactListsEnabled())("contactAddressbaseEnabled",Me.formHandler.isContactAddressbaseEnabled()))},dependencies:[Ki.n,pn,bo.r,nt.m,Sn.Ee,o.j,fi.a,ee.F,x.mk,x.sg,x.O5,Pl.pW,ne.gM,n.rH,$i.P,No.M,Ar.V,nc,lt.j,x.Ov,m.X$],styles:[cr]})}return te})(),h=(()=>{class te extends xe{constructor(){super(...arguments),this.resourceKeyPrefix="imxtools.addressbase."}ngOnInit(){super.ngOnInit(),this.record.id||this.addProductlineTour()}addProductlineTour(){this.entitiesMgrService.getEntityWithIdOfType("Productline",or.$C).subscribe(E=>{this.record.metainfos.push({id:null,data:null,productline:E})})}static#e=this.\u0275fac=(()=>{let E;return function(Me){return(E||(E=i.n5z(te)))(Me||te)}})();static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["ng-component"]],features:[i.qOj],decls:54,vars:72,consts:[[1,"edit"],[3,"formHandler","record","entityType","resourceKeyPrefix","activeSlideInType","showImportInfoButton","showQualityBlock","reloadClicked","slideInEvent","addToObjectListClicked"],["class","page-loading-wrapper","progress-bar","",4,"ngIf"],["quality-icons","",3,"record"],["quality-icons","",3,"openDataRecord","showOpenDataIcon"],["lg_w","12","lg_o","0"],[1,"edit__wrapper"],[1,"edit__navigation-sticky-wrapper"],[1,"edit__navigation-sticky-content"],["scrollBar",""],[1,"edit__navigation-items"],["formNavigation",""],["fragment","basicdata",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"edit__navigation-item-content"],[1,"icon","icon-pencil","imx-icon-middle"],[1,"item-label"],["fragment","contact",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-phone","imx-icon-middle"],["class","edit__navigation-item","fragment","geo",3,"ngClass","routerLink",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],["class","edit__navigation-item","fragment","openingHours",3,"ngClass","routerLink",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],["fragment","media",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-picture","imx-icon-middle"],["fragment","appearances",1,"edit__navigation-item",3,"routerLink","ngClass"],[1,"icon","icon-earth","imx-icon-middle"],["class","edit__navigation-item","fragment","references",3,"ngClass","routerLink",4,"ngIf"],["fragment","anatomy",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-site-map","imx-icon-middle"],[4,"ngIf"],["class","edit__navigation-item","fragment","offers",3,"ngClass","routerLink",4,"ngIf"],[3,"formHandler","isSubmitting","hideCloseBtn","save","saveAndClose","close"],[1,"edit__content"],["alwaysFixed","true"],["scrollToInvalidField","",3,"formHandler","record","dataModules","productlineInfoModules","contactListsEnabled","contactAddressbaseEnabled","save"],["progress-bar","",1,"page-loading-wrapper"],["mode","indeterminate"],["fragment","geo",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-map-marker","imx-icon-middle"],["fragment","openingHours",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-calendar-full","imx-icon-middle"],["fragment","references",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-reference-list","imx-icon-middle"],["class","edit__navigation-item",4,"ngIf"],[1,"edit__navigation-item"],[1,"edit__navigation-item-content",3,"click"],[1,"icon","icon-editor-text","imx-icon-middle"],["class","edit__navigation-sub-items",4,"ngIf"],[1,"edit__navigation-sub-items"],[4,"ngFor","ngForOf"],[1,"edit__navigation-item",3,"ngClass","routerLink","fragment"],[1,"edit__navigation-item-content","sub"],[1,"icon","icon-subNavigation"],[1,"icon","icon-editor-text","sub-item-icon"],["matTooltipShowDelay","5000",1,"item-label","sub",3,"matTooltip"],[1,"icon","icon-jigsaw","imx-icon-middle"],[1,"icon","icon-jigsaw","sub-item-icon"],["fragment","offers",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-tag","imx-icon-middle"]],template:function(_e,Me){1&_e&&(i.TgZ(0,"div",0)(1,"imx-edit-header",1),i.NdJ("reloadClicked",function(){return Me.reload()})("slideInEvent",function(to){return Me.dispatchSlideEvent(to)})("addToObjectListClicked",function(){return Me.addToObjectList()}),i.YNc(2,_c,2,0,"div",2),i._UZ(3,"imx-relevance-score-icon",3)(4,"imx-opendata-icon",4),i.qZA(),i.TgZ(5,"imx-grid")(6,"imx-grid-element",5)(7,"div",6)(8,"div",7)(9,"div",8)(10,"p-scrollPanel",null,9)(12,"div",10,11)(14,"a",12)(15,"div",13),i._UZ(16,"span",14),i.TgZ(17,"span",15),i._uU(18),i.ALo(19,"translate"),i.qZA()()(),i.TgZ(20,"a",16)(21,"div",13),i._UZ(22,"span",17),i.TgZ(23,"span",15),i._uU(24),i.ALo(25,"translate"),i.qZA()()(),i.YNc(26,wc,6,8,"a",18)(27,nm,6,8,"a",19),i.TgZ(28,"a",20)(29,"div",13),i._UZ(30,"span",21),i.TgZ(31,"span",15),i._uU(32),i.ALo(33,"translate"),i.qZA()()(),i.TgZ(34,"a",22)(35,"div",13),i._UZ(36,"span",23),i.TgZ(37,"span",15),i._uU(38),i.ALo(39,"translate"),i.qZA()()(),i.YNc(40,Id,6,8,"a",24),i.TgZ(41,"a",25)(42,"div",13),i._UZ(43,"span",26),i.TgZ(44,"span",15),i._uU(45),i.ALo(46,"translate"),i.qZA()()(),i.YNc(47,Ci,3,2,"ng-container",27)(48,Io,6,8,"a",28),i.qZA()(),i.TgZ(49,"imx-edit-page-button-bar",29),i.NdJ("save",function(){return Me.save()})("saveAndClose",function(){return Me.save(!0)})("close",function(){return Me.close()}),i.ALo(50,"async"),i.qZA()()(),i.TgZ(51,"div",30)(52,"imx-generic-slide-in-page",31)(53,"imx-addressbase-edit-form",32),i.NdJ("save",function(to){return Me.submit(to)}),i.qZA()()()()()()()),2&_e&&(i.xp6(),i.Q6J("formHandler",Me.formHandler)("record",Me.record)("entityType","Addressbase")("resourceKeyPrefix",Me.resourceKeyPrefix)("activeSlideInType",Me.activeSlideInType)("showImportInfoButton",Me.record.importInfos&&Me.record.importInfos.length>0)("showQualityBlock",!0),i.xp6(),i.Q6J("ngIf",Me.isSubmitting),i.xp6(),i.Q6J("record",Me.record),i.xp6(),i.Q6J("openDataRecord",Me.record)("showOpenDataIcon",Me.showOpenData()),i.xp6(6),i.Akn(i.DdM(56,Dd)),i.xp6(4),i.Q6J("ngClass",i.VKq(57,Sr,Me.isPanelActive("basicdata")))("routerLink",i.DdM(59,ns)),i.xp6(4),i.Oqu(i.lcZ(19,44,"imxplatform.common-entity.edit.navigation.basedata")),i.xp6(2),i.Q6J("ngClass",i.VKq(60,Sr,Me.isPanelActive("contact")))("routerLink",i.DdM(62,ns)),i.xp6(4),i.Oqu(i.lcZ(25,46,"imxplatform.common-entity.edit.navigation.contact")),i.xp6(2),i.Q6J("hasFieldReadPermission","geoInfo.master")("hasFieldReadPermissionFormHandler",Me.formHandler),i.xp6(),i.Q6J("hasFieldReadPermission","openingHoursPermissionField")("hasFieldReadPermissionFormHandler",Me.formHandler),i.xp6(),i.Q6J("ngClass",i.VKq(63,Sr,Me.isPanelActive("media")))("routerLink",i.DdM(65,ns)),i.xp6(4),i.Oqu(i.lcZ(33,48,"imxplatform.common-entity.edit.navigation.media")),i.xp6(2),i.Q6J("routerLink",i.DdM(66,ns))("ngClass",i.VKq(67,Sr,Me.isPanelActive("appearances"))),i.xp6(4),i.Oqu(i.lcZ(39,50,"imxplatform.common-entity.edit.navigation.publications")),i.xp6(2),i.Q6J("ngIf",Me.formHandler.isContactListsEnabled()||Me.formHandler.isContactAddressbaseEnabled()),i.xp6(),i.Q6J("ngClass",i.VKq(69,Sr,Me.isPanelActive("anatomy")))("routerLink",i.DdM(71,ns)),i.xp6(4),i.Oqu(i.lcZ(46,52,"imxplatform.common-entity.edit.navigation.anatomy")),i.xp6(2),i.Q6J("ngIf",Me.dataModules),i.xp6(),i.Q6J("ngIf",Me.formHandler.hasAnyOfferPermission()),i.xp6(),i.Q6J("formHandler",Me.formHandler)("isSubmitting",Me.isSubmitting)("hideCloseBtn",!!Me.editVoter&&i.lcZ(50,54,Me.editVoter.hideCloseBtn())),i.xp6(4),i.Q6J("formHandler",Me.formHandler)("record",Me.record)("dataModules",Me.dataModules)("productlineInfoModules",Me.productlineInfoModules)("contactListsEnabled",Me.formHandler.isContactListsEnabled())("contactAddressbaseEnabled",Me.formHandler.isContactAddressbaseEnabled()))},dependencies:[Ki.n,pn,bo.r,nt.m,Sn.Ee,o.j,fi.a,ee.F,x.mk,x.sg,x.O5,Pl.pW,ne.gM,n.rH,$i.P,No.M,Ar.V,nc,lt.j,x.Ov,m.X$],styles:[cr]})}return te})();var k=a(65320),se=a(49202),de=a(74377),Ae=a(64123),Ct=a(90633),wt=a(85219),Mt=a(1431),fn=a(53807),Qn=a(86041),ei=a(35342),bi=a(4595),zi=a(20085),Be=a(89642),pt=a(77218),Ye=a(27416),ut=a(78274),Kt=a(65716),en=a(85984),qn=a(96742),hi=a(86838),gi=a(59626);function ko(te,Pn){if(1&te&&(i.ynx(0),i._UZ(1,"imx-productline-filter-panel",19,20),i.BQk()),2&te){const E=i.oxw(3);i.xp6(),i.Q6J("parentForm",E.formHandler.formGroup)("record",E.record)("formHandler",E.formHandler)("availableProductlines",E.availableProductlines)}}function Wo(te,Pn){if(1&te&&(i.ynx(0),i.YNc(1,ko,3,4,"ng-container",13),i.BQk()),2&te){const E=Pn.ngIf;i.xp6(),i.Q6J("ngIf",E.length>0)}}function tr(te,Pn){if(1&te&&i._UZ(0,"imx-dynamic-module-filter-panel",21),2&te){const E=Pn.$implicit,_e=i.oxw(2);i.Q6J("parentForm",_e.formHandler.formGroup)("record",_e.record)("formHandler",_e.formHandler)("moduleKey",E)}}function br(te,Pn){if(1&te&&(i.ynx(0),i._UZ(1,"imx-duplicates-filter-panel",2,22),i.BQk()),2&te){const E=i.oxw(2);i.xp6(),i.Q6J("parentForm",E.formHandler.formGroup)("record",E.record)("formHandler",E.formHandler)}}function fa(te,Pn){if(1&te&&i._UZ(0,"imx-admin-filter-panel",2,23),2&te){const E=i.oxw(2);i.Q6J("parentForm",E.formHandler.formGroup)("record",E.record)("formHandler",E.formHandler)}}const ga=()=>({name:"prioLevel"}),$r=te=>[te];function Rr(te,Pn){if(1&te&&(i._UZ(0,"imx-main-filter-panel",2,3)(2,"imx-fulltext-filter-panel",2,4),i.TgZ(4,"imx-appearance-filter-panel",5,6)(6,"imx-grid-element",7),i._UZ(7,"imx-form-control",8),i.qZA()(),i._UZ(8,"imx-client-filter-panel",9,10)(10,"imx-geo-filter-panel",11,12),i.YNc(12,Wo,2,1,"ng-container",13),i.ALo(13,"async"),i._UZ(14,"imx-memo-filter-panel",2,14),i.YNc(16,tr,1,4,"ng-template",15),i.ALo(17,"async"),i._UZ(18,"imx-quality-filter-panel",16,17),i.YNc(20,br,3,3,"ng-container",13)(21,fa,2,3,"imx-admin-filter-panel",18)),2&te){const E=i.oxw();i.Q6J("parentForm",E.formHandler.formGroup)("record",E.record)("formHandler",E.formHandler),i.xp6(2),i.Q6J("parentForm",E.formHandler.formGroup)("record",E.record)("formHandler",E.formHandler),i.xp6(2),i.Q6J("parentForm",E.formHandler.formGroup)("record",E.record)("formHandler",E.formHandler)("additionalFields",i.VKq(42,$r,i.DdM(41,ga)))("entityName",E.getEntityName()),i.xp6(2),i.Q6J("lg_w",6)("sm_w",12),i.xp6(),i.Q6J("field",E.formHandler.formConfiguration.findFormFieldById("prioLevel"))("control",E.formHandler.formGroup.get("prioLevel"))("form",E.formHandler.formGroup.get("prioLevel"))("formHandler",E.formHandler)("config",E.formHandler.formConfiguration),i.xp6(),i.Q6J("parentForm",E.formHandler.formGroup)("record",E.record)("formHandler",E.formHandler)("availableClients",E.availableClients),i.xp6(2),i.Q6J("addGeoRegionFilter",!0)("parentForm",E.formHandler.formGroup)("record",E.record)("formHandler",E.formHandler),i.xp6(2),i.Q6J("ngIf",i.lcZ(13,37,E.availableProductlines)),i.xp6(2),i.Q6J("parentForm",E.formHandler.formGroup)("record",E.record)("formHandler",E.formHandler),i.xp6(2),i.Q6J("ngForOf",i.lcZ(17,39,E.configuredModules$)),i.xp6(2),i.Q6J("parentForm",E.formHandler.formGroup)("record",E.record)("showOpenDataFilter",E.openDataEnabled)("formHandler",E.formHandler),i.xp6(2),i.Q6J("ngIf",E.formHandler.formGroup.get("certaintyFrom")),i.xp6(),i.Q6J("hasAnyPermission",E.hasAdminPermssionStr)}}let Xr=(()=>{class te extends l.AbstractCoreDataObjectFilterComponent{constructor(E,_e,Me,Ln,to,ha){super(E),this.imxToolsDataAccessService=_e,this.entitiesMgrService=Me,this.securityManagerService=Ln,this.runtimeContextService=to,this.metainfoFormPanelProviderRegistry=ha,this.configuredModules$=(0,I.of)([]),this.contentScoreEnabled=!1,this.openDataEnabled=!1}ngOnInit(){if(super.ngOnInit(),this.configuredModules$=this.configurationProvider.getString(hs.s.IMXTOOLS_MODULES).pipe((0,O.U)(E=>E.split(",")),(0,O.U)(E=>E.filter(_e=>void 0!==this.metainfoFormPanelProviderRegistry.getFilterPanelComponent(_e)))),this.availableClients=this.determineAvailableClients(),this.availableProductlines=this.determineAvailableProductlines(),this.contentScoreEnabled=this.isContentScoreEnabled(),this.contentScoreEnabled){const E=this.orderFields,_e=E.reduce((Me,Ln)=>Ln.index>Me?Ln.index:Me,E[0].index);this.orderFields.push({index:_e+1,field:"CONTENT_SCORE",i18n:"filter.ScorableDataObject.contentScore",type:l.OrderType.numeric})}this.openDataEnabled=this.isOpenDataEnabled()}isContentScoreEnabled(){return this.configurationProvider.getBooleanFromSnapshot(l.ImxPlatformConfigParameter.PLATFORM_CONTENT_SCORE_ENABLED)}isOpenDataEnabled(){return this.configurationProvider.getBooleanFromSnapshot(l.ImxPlatformConfigParameter.PLATFORM_OPEN_DATA_ENABLED)}determineAvailableClients(){return this.securityManagerService.hasPermission(ji.i.F_ADDRESSBASE_READ_ALL)?this.entitiesMgrService.getAllEntitiesOfType("Client").pipe((0,O.U)(E=>E.items)):this.securityManagerService.hasPermission(ji.i.F_ADDRESSBASE_READ_OWN_CLIENT)?this.runtimeContextService.getCurrentAndSubClients().pipe((0,O.U)(E=>Array.from(E))):this.securityManagerService.hasPermission(ji.i.F_ADDRESSBASE_READ_OWN_USER)?this.runtimeContextService.getCurrentClient().pipe((0,O.U)(E=>[E])):(0,I.of)([])}determineAvailableProductlines(){return this.entitiesMgrService.getAllEntitiesOfType("Productline").pipe((0,O.U)(E=>E.items.filter(_e=>this.hasAddressbaseDetails(_e))))}hasAddressbaseDetails(E){return!!(E.addressbaseDetails&&Object.keys(E.addressbaseDetails).length>0)||E.children?.some(Me=>this.hasAddressbaseDetails(Me))}getEntityName(){return"Addressbase"}newWidgetDef(E,_e,Me){return{x:0,y:3,cols:3,rows:1,widgetDef:{viewInfo:{showHeader:!0,columns:[{property:"id",format:"Number",header:"entity.DataObject.id",headerType:"Resource"},{property:"title",format:"Link(addressbases/edit/{id})",header:"entity.Addressbase.title",headerType:"Resource"},{property:"lastChangeTime",format:"DateDiff",header:"entity.Addressbase.lastChangeTime",headerType:"Resource",type:"Timestamp"}],rowCount:10},deepLink:{link:Me,name:"imxplatform.dashboard.addressbaselist"},icon:"addressbase",contentType:"EntityQuery",contentInfo:{serviceRequest:"addressbase/compact?"+_e},title:E,viewType:"List"}}}clientParams2RequestParams(E){const _e=this.paramMap2Filter(E),Me=this.paramMap2DataAccessRequestOptions(E);return this.imxToolsDataAccessService.convertAddressbaseClientParamsToRequestParams(_e,Me)}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(l.ConfigurationProvider),i.Y36(tt.N),i.Y36(s.qB),i.Y36(s.Xh),i.Y36(s.Ze),i.Y36(l.MetainfoFormPanelProviderRegistry))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-addressbase-filter"]],features:[i.qOj],decls:3,vars:11,consts:[[3,"entityName","filterPanelsTemplate","enableSearchListOption","enableCreateContactListOption","newWidgetDefFn","clientParams2RequestParamsFn","formHandler","record","orderFields","orderField","orderDirection","orderChanged","save"],["filterPanelsTemplate",""],[3,"parentForm","record","formHandler"],["mainFilterPanel",""],["fulltextFilterPanel",""],[3,"parentForm","record","formHandler","additionalFields","entityName"],["appearanceFilterPanel",""],[3,"lg_w","sm_w"],[3,"field","control","form","formHandler","config"],[3,"parentForm","record","formHandler","availableClients"],["clientFilterPanel",""],[3,"addGeoRegionFilter","parentForm","record","formHandler"],["geoFilterPanel",""],[4,"ngIf"],["memoFilterPanel",""],["ngFor","",3,"ngForOf"],[3,"parentForm","record","showOpenDataFilter","formHandler"],["qualityFilterPanel",""],[3,"parentForm","record","formHandler",4,"hasAnyPermission"],[3,"parentForm","record","formHandler","availableProductlines"],["productlineFilterPanel",""],[3,"parentForm","record","formHandler","moduleKey"],["duplicatesFilterPanel",""],["adminFilterPanel",""]],template:function(_e,Me){if(1&_e&&(i.TgZ(0,"imx-filter",0),i.NdJ("orderChanged",function(to){return Me.orderChanged.emit(to)})("save",function(to){return Me.applyFilter.emit(to)}),i.YNc(1,Rr,22,44,"ng-template",null,1,i.W1O),i.qZA()),2&_e){const Ln=i.MAs(2);i.Q6J("entityName","Addressbase")("filterPanelsTemplate",Ln)("enableSearchListOption",!0)("enableCreateContactListOption",Me.enableCreateContactListOption)("newWidgetDefFn",Me.newWidgetDefFn)("clientParams2RequestParamsFn",Me.clientParams2RequestParamsFn)("formHandler",Me.formHandler)("record",Me.record)("orderFields",Me.orderFields)("orderField",Me.orderField)("orderDirection",Me.orderDirection)}},dependencies:[Qn.B,ei.d,bi.s,zi.$,Be.Q,pt.v,Ye.z,Y.A,ut.Y,Kt.L,en.c,qn.H,hi.x,gi.R,x.sg,x.O5,Ar.V,x.Ov],changeDetection:0})}return te})();var Es=a(13098);function Ys(te,Pn){1&te&&(i.TgZ(0,"imx-list-no-results"),i._uU(1,"imxtools.addressbase.list.no-records"),i.qZA())}function qa(te,Pn){1&te&&i._UZ(0,"mat-progress-bar",9)}function Qs(te,Pn){if(1&te&&(i.TgZ(0,"th",16),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&te){const E=Pn.$implicit;i.Udp("width",E.width),i.Q6J("ngClass",E.cssClass),i.xp6(),i.hij(" ",i.lcZ(2,4,E.header)," ")}}function ic(te,Pn){if(1&te&&(i.TgZ(0,"tr"),i.YNc(1,Qs,3,6,"th",15),i.qZA()),2&te){const E=i.oxw(3);i.xp6(),i.Q6J("ngForOf",E.columnDefinitions)}}function wl(te,Pn){if(1&te&&(i.ynx(0),i.TgZ(1,"imx-tooltip",22),i.ALo(2,"productline"),i._uU(3),i.ALo(4,"productline"),i.qZA(),i.BQk()),2&te){const E=Pn.ngIf;i.xp6(),i.Q6J("tooltipText",i.lcZ(2,3,E))("offset",300),i.xp6(2),i.hij(" ",i.lcZ(4,5,E)," ")}}function md(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-action-menu-item",28),i.NdJ("actionClicked",function(){const Ln=i.CHM(E).$implicit,to=i.oxw().$implicit,ha=i.oxw(3);return i.KtG(ha.executeRowAction(Ln,to))}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&te){const E=Pn.$implicit;i.Q6J("icon",E.getIcon())("additionalStyle","icon-trash"==E.getIcon()?"delete":""),i.xp6(),i.hij(" ",i.lcZ(2,3,E.getActionLabelKey())," ")}}function Dc(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"tr")(1,"td"),i._uU(2),i.qZA(),i.TgZ(3,"td")(4,"a",17),i.NdJ("click",function(){const Ln=i.CHM(E).$implicit,to=i.oxw(3);return i.KtG(to.contextNavigationService.navigateToCoreEntityContextual(["../edit",Ln.id]))}),i.ALo(5,"readI18n"),i.TgZ(6,"span",18),i._UZ(7,"span",19),i.qZA(),i._uU(8),i.ALo(9,"readI18n"),i.qZA(),i.TgZ(10,"span",20),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"translate"),i.qZA()(),i.TgZ(14,"td",21),i._uU(15),i.qZA(),i.TgZ(16,"td")(17,"imx-tooltip",22),i.ALo(18,"readI18n"),i.ALo(19,"languageNames"),i._UZ(20,"imx-language-flag",23),i.qZA()(),i.TgZ(21,"td"),i.YNc(22,wl,5,7,"ng-container",24),i.ALo(23,"productlineFilter"),i.qZA(),i.TgZ(24,"td"),i._UZ(25,"imx-entity-state",25),i.qZA(),i.TgZ(26,"td",26)(27,"imx-dropup-button")(28,"imx-action-menu"),i.YNc(29,md,3,5,"ng-template",27),i.qZA()()()()}if(2&te){const E=Pn.$implicit,_e=i.oxw(3);i.xp6(2),i.Oqu(E.id),i.xp6(2),i.Q6J("matTooltip",i.lcZ(5,16,E.title))("matTooltipShowDelay",500),i.xp6(4),i.hij(" ",i.lcZ(9,18,E.title)," "),i.xp6(3),i.hij(" ",_e.isClone(E.id)?" ("+i.lcZ(12,20,"imxplatform.common-entity.list.inbox.copy")+" | "+i.lcZ(13,22,"imxplatform.common-entity.list.inbox.original-id")+": "+_e.getOriginalId(E.id)+")":""," "),i.xp6(3),i.Q6J("matTooltip",null==E.client?null:E.client.name)("matTooltipShowDelay",500),i.xp6(),i.hij(" ",null==E.client?null:E.client.name," "),i.xp6(2),i.Q6J("tooltipText",i.lcZ(18,24,i.lcZ(19,26,E.languages)))("offset",300),i.xp6(3),i.Q6J("languages",E.languages)("inline",!0),i.xp6(2),i.Q6J("ngIf",i.xi3(23,28,null==E?null:E.metainfos,!0)),i.xp6(3),i.Q6J("key",null==E||null==E.entityState?null:E.entityState.key)("appearances",null==E?null:E.appearances),i.xp6(4),i.Q6J("ngForOf",null==_e.actionProvider?null:_e.actionProvider.getRowActionsForType(_e.getEntityName(),E.id))}}function yc(te,Pn){if(1&te&&(i.ynx(0),i.TgZ(1,"p-table",12),i.YNc(2,ic,2,1,"ng-template",13)(3,Dc,30,31,"ng-template",14),i.qZA(),i.BQk()),2&te){const E=i.oxw().ngIf;i.xp6(),i.Q6J("value",E.items)("resizableColumns",!0)}}function Wc(te,Pn){if(1&te&&(i.TgZ(0,"div",10),i.YNc(1,yc,4,2,"ng-container",11),i.qZA()),2&te){const E=Pn.ngIf;i.oxw();const _e=i.MAs(7);i.xp6(),i.Q6J("ngIf",E.items.length>0)("ngIfElse",_e)}}let Il=(()=>{class te extends l.AbstractInboxPage{constructor(E,_e,Me,Ln,to,ha,zs,cc,Gl,id,zd,Fm,Lm,Iu,Su){super(E,_e,Me,to,ha,zs,cc,Gl,zd,Fm,Iu,Su),this.dataAccessService=Lm,this.imxToolsPermissions=ji.i,this.availableOrderFields=[{index:1,field:"TITLE",i18n:"entity.Addressbase.title",type:l.OrderType.alphanumeric},{index:2,field:"ID",i18n:"entity.Addressbase.id",type:l.OrderType.numeric},{index:3,field:"CITY",i18n:"entity.Addressbase.location",type:l.OrderType.alphanumeric},{index:4,field:"CREATION_TIME",i18n:"imxplatform.common-entity.list.sort.creationTime",type:l.OrderType.numeric},{index:5,field:"LAST_CHANGE",i18n:"imxplatform.common-entity.list.sort.lastChange",type:l.OrderType.numeric},{index:6,field:"LAST_CHANGE_FROM",i18n:"imxplatform.common-entity.list.sort.lastChangeFrom",type:l.OrderType.alphanumeric}],this.columnDefinitions=[{field:"id",header:"ID",width:"70px"},{field:"title",header:"entity.Addressbase.title",width:"50%"},{field:"client",header:"entity.Addressbase.client",width:"130px"},{field:"languages",header:"entity.Addressbase.languages",width:"100px"},{field:"productlines",header:"entity.Addressbase.productlines",width:"40%"},{field:"entity-state",header:"entity.Addressbase.state",width:"20%"},{field:"action",header:"",width:"50px",cssClass:"action-column"}]}getEntityName(){return"Addressbase"}getFilterParams(E){return this.dataAccessService.convertAddressbaseClientParamsToRequestParams(E)}getSetStateAction(){return this.actionProvider.findActionForKey("addressbase-action-set_state")}getCloneActionKey(){return"addressbase-dm-action-createClone"}getEditActionKey(){return"addressbase-dm-action-edit"}getEditRoute(){return"addressbases"}getInboxContext(){return"datamanager"}adjustFilter(E){if(!this.configurationProvider.getBooleanFromSnapshot(l.ImxPlatformConfigParameter.PLATFORM_WORKFLOW_USE_DISPATCHER_STATE_ENGINE,!1)){if(this.currentAndSubClients){const _e=this.retrieveIds(E.clientIds);E.clientIds=_e?this.currentAndSubClients.map(Me=>Me.id).filter(Me=>_e.includes(""+Me)).join(","):this.currentAndSubClients.map(Me=>Me.id).join(",")}this.imxDatamanagerUserId&&(E.owningUser=this.imxDatamanagerUserId)}}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(k.M),i.Y36(n.F0),i.Y36(n.gz),i.Y36(s.Yz),i.Y36(l.UserMessageService),i.Y36(l.ListHistoryService),i.Y36(B.uw),i.Y36(se.ru),i.Y36(l.ImxPlatformDataAccessService),i.Y36(l.ObjectListCreationService),i.Y36(l.PlatformTrackingService),i.Y36(l.ActionProviderService),i.Y36(tt.N),i.Y36(s.Ze),i.Y36(l.ConfigurationProvider))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["ng-component"]],features:[i.qOj],decls:13,vars:16,consts:[[1,"search-page"],[3,"formHandler","record","orderFields","orderField","orderDirection","orderChanged","applyFilter","resetFilter"],[3,"icon","text"],[3,"totalNumber","entityResourceKeyPrefix","isCompactPageHeader","reload"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],["class","table-wrapper",4,"ngIf","ngIfElse"],[3,"paging","selection","pageChanged","selectAll"],["mode","indeterminate"],[1,"table-wrapper"],[4,"ngIf","ngIfElse"],[1,"imx-datatable",3,"value","resizableColumns"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",3,"ngClass"],[1,"txt-link",3,"matTooltip","matTooltipShowDelay","click"],[1,"badge"],[1,"icon-stem"],[1,"txt-clone"],[3,"matTooltip","matTooltipShowDelay"],[3,"tooltipText","offset"],[3,"languages","inline"],[4,"ngIf"],[3,"key","appearances"],[1,"action-column"],["ngFor","",3,"ngForOf"],[3,"icon","additionalStyle","actionClicked"]],template:function(_e,Me){if(1&_e&&(i.TgZ(0,"div",0)(1,"imx-addressbase-filter",1),i.NdJ("orderChanged",function(to){return Me.sort(to)})("applyFilter",function(to){return Me.search(to)})("resetFilter",function(){return Me.reset()}),i.qZA(),i.TgZ(2,"imx-eyecatcher",2)(3,"imx-list-header",3),i.NdJ("reload",function(){return Me.reloadComplete()}),i.qZA()(),i.TgZ(4,"imx-grid")(5,"imx-grid-element",4),i.YNc(6,Ys,2,0,"ng-template",null,5,i.W1O)(8,qa,1,0,"ng-template",null,6,i.W1O)(10,Wc,2,2,"div",7),i.ALo(11,"async"),i.qZA()(),i.TgZ(12,"imx-list-footer",8),i.NdJ("pageChanged",function(to){return Me.onPageChanged(to)})("selectAll",function(to){return Me.onSelectAll(to)}),i.qZA()()),2&_e){const Ln=i.MAs(9);i.xp6(),i.Q6J("formHandler",Me.filterFormHandler)("record",Me.filter)("orderFields",Me.availableOrderFields)("orderField",Me.orderField)("orderDirection",Me.orderDirection),i.xp6(),i.Q6J("icon","icon-mail")("text","imxplatform.navigation.inbox"),i.xp6(),i.Q6J("totalNumber",null==Me.currentResult?null:Me.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxtools.addressbase")("isCompactPageHeader",!0),i.xp6(7),i.Q6J("ngIf",i.lcZ(11,14,Me.results))("ngIfElse",Ln),i.xp6(2),i.Q6J("paging",Me.pagingModel)("selection",Me.selectionModel)}},dependencies:[Un.n,rl.l,de.N,Ae._,Ct.A,ee.F,x.mk,x.sg,x.O5,Pl.pW,ne.gM,wt.jx,Mt.iA,Mt.Q7,Fn.p,yt.z,Bt.t,fn.g,No.M,Ar.V,Ao.K,Xr,lt.j,Es.O,rc.D,Kr.w,x.Ov,m.X$],styles:["[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.txt-clone[_ngcontent-%COMP%]{color:#4ac400}"]})}return te})(),Bc=(()=>{class te{constructor(E){this.dataAccessService=E,this.ibeAssignmentCountMap=new Map}loadIbeAssignmentCountsForEntities(E,_e){0!==E.length&&(!_e&&E.every(Me=>this.ibeAssignmentCountMap.has(Me))||this.dataAccessService.getIbeAssignmentCounts$(E).subscribe(Me=>{Me.forEach((Ln,to)=>this.ibeAssignmentCountMap.set(to,Ln))}))}setIbeAssignmentCount(E,_e){const Me=this.ibeAssignmentCountMap.get(E);Me||this.ibeAssignmentCountMap.set(E,Me)}getIbeAssignmentCount(E){const _e=this.ibeAssignmentCountMap.get(E);return _e||(_e?void 0:0)}getIbeAssignments(E){return this.entityId!==E&&(this.entityId=E,this.ibeAssignmentsOfCurrentEntity$=this.entityId?this.dataAccessService.getIbeAssignments$(this.entityId):void 0),this.ibeAssignmentsOfCurrentEntity$}updateIbeAssignment(E){return this.dataAccessService.updateIbeAssignment(E)}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.LFG(tt.N))};static#t=this.\u0275prov=i.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"})}return te})();var Ac=a(97859),Xl=a(20050),uc=a(63675),Oc=a(32279),jc=a(66456);function pc(te,Pn){1&te&&(i.TgZ(0,"imx-list-no-results"),i._uU(1,"imxtools.addressbase.list.no-records"),i.qZA())}function Ul(te,Pn){1&te&&i._UZ(0,"mat-progress-bar",12)}function Xc(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-action-menu-item",21),i.NdJ("actionClicked",function(){const Ln=i.CHM(E).$implicit,to=i.oxw().$implicit,ha=i.oxw(3);return i.KtG(ha.executeRowAction(Ln,to))}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&te){const E=Pn.$implicit;i.Q6J("icon",E.getIcon())("additionalStyle","icon-trash"==E.getIcon()?"delete":""),i.xp6(),i.hij(" ",i.lcZ(2,3,E.getActionLabelKey())," ")}}function ec(te,Pn){if(1&te&&(i.TgZ(0,"mat-list-item",14)(1,"div",15)(2,"div",16),i._UZ(3,"imx-list-row",17),i.qZA(),i.TgZ(4,"div",18)(5,"imx-dropup-button")(6,"imx-action-menu"),i.YNc(7,Xc,3,5,"ng-template",19),i.qZA()(),i._UZ(8,"imx-entity-state",20),i.qZA()()()),2&te){const E=Pn.$implicit,_e=i.oxw(3),Me=i.MAs(14),Ln=i.MAs(16),to=i.MAs(18);i.xp6(3),i.Q6J("dataObject",E)("leftSlotTemplate",Me)("rightSlotTemplate",Ln)("bottomSlotTemplate",to),i.xp6(4),i.Q6J("ngForOf",null==_e.actionProvider?null:_e.actionProvider.getRowActionsForType(_e.getEntityName(),E.id)),i.xp6(),i.Q6J("key",E.entityState.key)("appearances",null==E?null:E.appearances)("inline",!1)}}function vd(te,Pn){if(1&te&&(i.TgZ(0,"mat-list"),i.YNc(1,ec,9,8,"mat-list-item",13),i.qZA()),2&te){const E=i.oxw().ngIf,_e=i.oxw();i.xp6(),i.Q6J("ngForOf",E.items)("ngForTrackBy",_e.trackByItemId)}}function bd(te,Pn){if(1&te&&(i.TgZ(0,"div"),i.YNc(1,vd,2,2,"mat-list",7),i.qZA()),2&te){const E=Pn.ngIf;i.oxw();const _e=i.MAs(7);i.xp6(),i.Q6J("ngIf",E.items.length>0)("ngIfElse",_e)}}function Sd(te,Pn){if(1&te&&(i.TgZ(0,"span",25),i._uU(1),i.ALo(2,"translate"),i.TgZ(3,"span",26),i._uU(4),i.qZA()()),2&te){const E=i.oxw().dataObject;i.xp6(),i.hij("",i.lcZ(2,2,"entity.Addressbase.masterAddressPoiId"),": "),i.xp6(3),i.Oqu(E.masterAddressPoiId)}}function Ru(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"a",22),i.NdJ("click",function(){const Ln=i.CHM(E).dataObject,to=i.oxw();return i.KtG(to.contextNavigationService.navigateToCoreEntityContextual(["/addressbases/edit",Ln.id]))}),i._uU(1),i.ALo(2,"readI18n"),i.TgZ(3,"span",23),i._uU(4),i.ALo(5,"translate"),i.qZA()(),i._UZ(6,"imx-row-id-view",24)(7,"imx-row-client-view",24),i.TgZ(8,"p",25),i._uU(9),i.ALo(10,"translate"),i.TgZ(11,"span",26),i._uU(12),i.qZA()(),i.TgZ(13,"p",27),i._uU(14),i.qZA(),i.TgZ(15,"p",25),i._uU(16),i.qZA(),i.TgZ(17,"div",28),i.YNc(18,Sd,5,4,"span",29),i.qZA()}if(2&te){const E=Pn.dataObject,_e=i.oxw();i.xp6(),i.hij(" ",i.lcZ(2,11,E.title)," "),i.xp6(3),i.Oqu(_e.isClone(E.id)?" ("+i.lcZ(5,13,"imxplatform.common-entity.list.inbox.copy")+")":""),i.xp6(2),i.Q6J("dataObject",E),i.xp6(),i.Q6J("dataObject",E),i.xp6(2),i.hij("",i.lcZ(10,15,"entity.AddressPoi.addressbaseUser"),": "),i.xp6(3),i.AsE("",null==E.addressbaseUser?null:E.addressbaseUser.loginname," (",null==E.addressbaseUser?null:E.addressbaseUser.id,")"),i.xp6(2),i.Oqu(null==E||null==E.contact1?null:E.contact1.contactName),i.xp6(2),i.AsE("",null==E||null==E.contact1||null==E.contact1.address?null:E.contact1.address.zipcode," ",null==E||null==E.contact1||null==E.contact1.address?null:E.contact1.address.city,""),i.xp6(2),i.Q6J("ngIf",E.masterAddressPoiId)}}function mm(te,Pn){if(1&te&&(i.ynx(0),i.TgZ(1,"span",31)(2,"p"),i._uU(3),i.ALo(4,"translate"),i.qZA()(),i.TgZ(5,"span",31)(6,"p"),i._uU(7),i.ALo(8,"translate"),i.qZA()(),i.BQk()),2&te){const E=i.oxw().dataObject,_e=i.oxw();i.xp6(3),i.hij(" ",i.lcZ(4,2,"imxplatform.common-entity.list.inbox.clone")," "),i.xp6(4),i.hij(" ",i.lcZ(8,4,"imxplatform.common-entity.list.inbox.original-id")+": "+_e.getOriginalId(E.id)," ")}}function hu(te,Pn){if(1&te&&(i.YNc(0,mm,9,6,"ng-container",30),i._UZ(1,"br")(2,"imx-addressbase-right-slot",24)),2&te){const E=Pn.dataObject,_e=i.oxw();i.Q6J("ngIf",_e.isClone(E.id)),i.xp6(2),i.Q6J("dataObject",E)}}function Fd(te,Pn){1&te&&i._UZ(0,"imx-addressbase-bottom-slot",24),2&te&&i.Q6J("dataObject",Pn.dataObject)}let ad=(()=>{class te extends l.AbstractInboxPage{constructor(E,_e,Me,Ln,to,ha,zs,cc,Gl,id,zd,Fm,Lm,Iu,Su,K_,jg,Dg){super(E,_e,Me,to,ha,zs,Gl,id,zd,cc,jg,Dg),this.securityManager=Lm,this.ibeAssignmentService=Su,this.dataAccessService=K_,this.imxToolsPermissions=ji.i,this.availableOrderFields=[{index:1,field:"TITLE",i18n:"entity.Addressbase.title",type:l.OrderType.alphanumeric},{index:2,field:"ID",i18n:"entity.Addressbase.id",type:l.OrderType.numeric},{index:3,field:"CITY",i18n:"entity.Addressbase.location",type:l.OrderType.alphanumeric},{index:4,field:"CREATION_TIME",i18n:"imxplatform.common-entity.list.sort.creationTime",type:l.OrderType.numeric},{index:5,field:"LAST_CHANGE",i18n:"imxplatform.common-entity.list.sort.lastChange",type:l.OrderType.numeric},{index:6,field:"LAST_CHANGE_FROM",i18n:"imxplatform.common-entity.list.sort.lastChangeFrom",type:l.OrderType.alphanumeric}]}getEntityName(){return"Addressbase"}getFilterParams(E){return this.dataAccessService.convertAddressbaseClientParamsToRequestParams(E)}getSetStateAction(){return this.actionProvider.findActionForKey("addressbase-action-set_state")}afterContentLoaded(){super.afterContentLoaded(),this.securityManager.hasPermission(l.ImxPermissions.F_IBE_ASSIGNMENT_ALL)&&this.currentResult.items&&this.ibeAssignmentService.loadIbeAssignmentCountsForEntities(this.currentResult.items.map(E=>E.id))}getInboxContext(){return"datamanager"}adjustFilter(E){if(!this.configurationProvider.getBooleanFromSnapshot(l.ImxPlatformConfigParameter.PLATFORM_WORKFLOW_USE_DISPATCHER_STATE_ENGINE,!1)){if(this.currentAndSubClients){const _e=this.retrieveIds(E.clientIds);E.clientIds=_e?this.currentAndSubClients.map(Me=>Me.id).filter(Me=>_e.includes(""+Me)).join(","):this.currentAndSubClients.map(Me=>Me.id).join(",")}this.imxDatamanagerUserId&&(E.owningUser=this.imxDatamanagerUserId)}}getCloneActionKey(){return"addressbase-dm-action-createClone"}getEditActionKey(){return"addressbase-dm-action-edit"}getEditRoute(){return"addressbases"}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(k.M),i.Y36(n.F0),i.Y36(n.gz),i.Y36(s.Yz),i.Y36(l.UserMessageService),i.Y36(l.ListHistoryService),i.Y36(B.uw),i.Y36(l.ActionProviderService),i.Y36(se.ru),i.Y36(l.ImxPlatformDataAccessService),i.Y36(l.PlatformTrackingService),i.Y36(l.ObjectListCreationService),i.Y36(s.Xh),i.Y36(l.MemoProviderService),i.Y36(Bc),i.Y36(tt.N),i.Y36(s.Ze),i.Y36(l.ConfigurationProvider))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["ng-component"]],features:[i.qOj],decls:19,vars:17,consts:[[1,"search-page"],[3,"formHandler","record","orderFields","orderField","orderDirection","orderChanged","applyFilter","resetFilter"],[3,"icon","text"],[3,"totalNumber","entityResourceKeyPrefix","isCompactPageHeader","reload"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],[4,"ngIf","ngIfElse"],[3,"disableAllSelection","paging","selection","pageChanged","selectAll"],["addressbaseLeftSlotTemplate",""],["addressbaseRightSlotTemplate",""],["addressbaseBottomSlotTemplate",""],["mode","indeterminate"],["class","list__item",4,"ngFor","ngForOf","ngForTrackBy"],[1,"list__item"],[1,"list__row-wrapper"],[1,"list__row"],[3,"dataObject","leftSlotTemplate","rightSlotTemplate","bottomSlotTemplate"],[1,"list__row-action"],["ngFor","",3,"ngForOf"],[3,"key","appearances","inline"],[3,"icon","additionalStyle","actionClicked"],[1,"txt-bg",3,"click"],[1,"txt-clone"],[3,"dataObject"],[1,"txt-grey"],[1,"txt-default"],[1,"txt-sm","txt-grey","address-block"],[1,"txt-sm","margin-top"],["class","txt-grey",4,"ngIf"],[4,"ngIf"],[1,"txt-md"]],template:function(_e,Me){if(1&_e&&(i.TgZ(0,"div",0)(1,"imx-addressbase-filter",1),i.NdJ("orderChanged",function(to){return Me.sort(to)})("applyFilter",function(to){return Me.search(to)})("resetFilter",function(){return Me.reset()}),i.qZA(),i.TgZ(2,"imx-eyecatcher",2)(3,"imx-list-header",3),i.NdJ("reload",function(){return Me.reloadComplete()}),i.qZA()(),i.TgZ(4,"imx-grid")(5,"imx-grid-element",4),i.YNc(6,pc,2,0,"ng-template",null,5,i.W1O)(8,Ul,1,0,"ng-template",null,6,i.W1O)(10,bd,2,2,"div",7),i.ALo(11,"async"),i.qZA()(),i.TgZ(12,"imx-list-footer",8),i.NdJ("pageChanged",function(to){return Me.onPageChanged(to)})("selectAll",function(to){return Me.onSelectAll(to)}),i.qZA()(),i.YNc(13,Ru,19,17,"ng-template",null,9,i.W1O)(15,hu,3,2,"ng-template",null,10,i.W1O)(17,Fd,1,1,"ng-template",null,11,i.W1O)),2&_e){const Ln=i.MAs(9);i.xp6(),i.Q6J("formHandler",Me.filterFormHandler)("record",Me.filter)("orderFields",Me.availableOrderFields)("orderField",Me.orderField)("orderDirection",Me.orderDirection),i.xp6(),i.Q6J("icon","icon-mail")("text","imxplatform.navigation.inbox"),i.xp6(),i.Q6J("totalNumber",null==Me.currentResult?null:Me.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxtools.addressbase")("isCompactPageHeader",!1),i.xp6(7),i.Q6J("ngIf",i.lcZ(11,15,Me.results))("ngIfElse",Ln),i.xp6(2),i.Q6J("disableAllSelection",!0)("paging",Me.pagingModel)("selection",Me.selectionModel)}},dependencies:[Un.n,de.N,Ae._,Ct.A,Ac.Y,Xl.w,uc.k,ee.F,x.sg,x.O5,ya.i$,ya.Tg,Pl.pW,Fn.p,yt.z,Bt.t,fn.g,No.M,Ar.V,Oc.V,Xr,jc.i,lt.j,x.Ov,m.X$],styles:["[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.list__row[_ngcontent-%COMP%]{background:#fff;border:.5px solid #ced4e0;box-sizing:border-box;width:100%;padding:20px;z-index:1}@media (max-width: 900px){.list__row[_ngcontent-%COMP%]{padding:10px}}.list__row-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;box-sizing:border-box;position:relative;height:inherit}.list__row-wrapper.selected[_ngcontent-%COMP%]   .list__row[_ngcontent-%COMP%]{background-color:#eefafa}.list__row-action[_ngcontent-%COMP%]{min-width:45px;min-height:100%;display:flex;flex-direction:column;padding-left:5px;text-align:center;position:relative;z-index:1}@media (max-width: 900px){.list__row-action[_ngcontent-%COMP%]{min-width:30px;padding-left:2px}}.list__row-checkbox[_ngcontent-%COMP%]{margin:auto 5px auto 0}.address-block[_ngcontent-%COMP%]{margin-top:3px}"]})}return te})();var Zc=a(25465),Cd=a(91566),Rm=a(26768),om=a(49546),pm=a(51793),Ld=a(5393);function jd(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-action-menu-item",6),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(2);return i.KtG(Me.executeOccupancyAction(Me.entity))}),i._uU(1," imxplatform.common-entity.list.occupancy "),i.qZA()}2&te&&i.Q6J("icon","icon-users-plus")}function Ud(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-action-menu-item",6),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(2);return i.KtG(Me.executeCreateAnnouncementAction(Me.entity))}),i._uU(1," imxplatform.common-entity.list.announcement "),i.qZA()}2&te&&i.Q6J("icon","icon-entityType-Announcement")}function km(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-action-menu-item",6),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(2);return i.KtG(Me.executeSensorDataAction(Me.entity))}),i._uU(1," imxplatform.common-entity.list.sensorData "),i.qZA()}2&te&&i.Q6J("icon","icon-sensor")}function Nm(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-action-menu-item",6),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(2);return i.KtG(Me.executeHistoryAction.emit())}),i._uU(1," imxplatform.common-entity.list.history "),i.qZA()}2&te&&i.Q6J("icon","icon-compare")}function xu(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-action-menu-item",9),i.NdJ("actionClicked",function(){i.CHM(E);const Me=i.oxw().ngIf,Ln=i.oxw(2);return i.KtG(Ln.executeAction.emit(Me))}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&te){const E=i.oxw().ngIf;i.Q6J("icon",E.getIcon()),i.xp6(),i.hij(" ",i.lcZ(2,2,E.getActionLabelKey())," ")}}function $u(te,Pn){if(1&te&&(i.ynx(0),i.YNc(1,xu,3,4,"imx-action-menu-item",8),i.ALo(2,"async"),i.BQk()),2&te){const E=Pn.ngIf,_e=i.oxw(2);i.xp6(),i.Q6J("ngIf",E.hasPermission()&&i.lcZ(2,1,E.isExecutable(_e.entity)))}}const Kd=(te,Pn)=>[te,Pn],$m=te=>[te];function ed(te,Pn){if(1&te){const E=i.EpF();i.ynx(0,4),i.YNc(1,jd,2,1,"imx-action-menu-item",5)(2,Ud,2,1,"imx-action-menu-item",5)(3,km,2,1,"imx-action-menu-item",5)(4,Nm,2,1,"imx-action-menu-item",5),i.TgZ(5,"imx-action-menu-item",6),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw();return i.KtG(Me.executeReferencesAction.emit())}),i._uU(6," imxplatform.common-entity.list.references "),i.qZA(),i.YNc(7,$u,3,3,"ng-container",7),i.BQk()}if(2&te){const E=i.oxw();i.xp6(),i.Q6J("ngIf",E.securityManager.hasAnyPermission(i.WLB(6,Kd,E.imxPermissions.F_OCCUPANCY_CREATE,E.imxPermissions.F_OCCUPANCY_UPDATE))),i.xp6(),i.Q6J("ngIf",E.securityManager.hasPermission(E.imxPermissions.F_ANNOUNCEMENT_CREATE)),i.xp6(),i.Q6J("ngIf",E.securityManager.hasAnyPermission(i.VKq(9,$m,E.imxPermissions.F_OCCUPANCY_READ))),i.xp6(),i.Q6J("ngIf",E.securityManager.hasAnyPermission(i.VKq(11,$m,E.imxPermissions.F_HISTORY_ALL))),i.xp6(),i.Q6J("icon","icon-link"),i.xp6(2),i.Q6J("ngIf",E.actionProvider.findStaticActionForKey("import-source-view-action"))}}const ku=te=>["edit",te];let _m=(()=>{class te{constructor(E,_e,Me,Ln){this.dialog=E,this.router=_e,this.securityManager=Me,this.actionProvider=Ln,this.publishClass="imx-row-action-menu",this.entityName="Addressbase",this.isBlockedByAction=!1,this.executeHistoryAction=new i.vpe,this.executeReferencesAction=new i.vpe,this.executeAction=new i.vpe,this.imxPermissions=l.ImxPermissions}executeOccupancyAction(E){this.dialog.open(l.AddressPoiOccupancyDialogComponent,{...l.DialogDefaultSizes.FORM_BIG,data:{addressPoi:E}})}executeSensorDataAction(E){this.dialog.open(l.AddressPoiSensorDataDialogComponent,{...l.DialogDefaultSizes.FORM_BIG,data:{addressPoi:E}})}executeCreateAnnouncementAction(E){this.router.navigate(["announcements","new"],{queryParams:{addressPoiId:E.id}})}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(B.uw),i.Y36(n.F0),i.Y36(s.Xh),i.Y36(l.ActionProviderService))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-addressbase-row-action-menu"]],hostVars:2,hostBindings:function(_e,Me){2&_e&&i.Tol(Me.publishClass)},inputs:{entity:"entity",isBlockedByAction:"isBlockedByAction"},outputs:{executeHistoryAction:"executeHistoryAction",executeReferencesAction:"executeReferencesAction",executeAction:"executeAction"},decls:6,vars:6,consts:[[3,"actions","isBlockedByAction","executeAction"],["search-list-action-menu-top",""],["icon","icon-pencil",3,"routerLink"],["search-list-action-menu-middle","",4,"ngIf"],["search-list-action-menu-middle",""],[3,"icon","click",4,"ngIf"],[3,"icon","click"],[4,"ngIf"],[3,"icon","actionClicked",4,"ngIf"],[3,"icon","actionClicked"]],template:function(_e,Me){1&_e&&(i.TgZ(0,"imx-dropup-button")(1,"imx-search-list-action-menu",0),i.NdJ("executeAction",function(to){return Me.executeAction.emit(to)}),i.ynx(2,1),i.TgZ(3,"imx-action-menu-item",2),i._uU(4," imxplatform.common-entity.list.edit "),i.qZA(),i.BQk(),i.YNc(5,ed,8,13,"ng-container",3),i.qZA()()),2&_e&&(i.xp6(),i.Q6J("actions",null==Me.actionProvider?null:Me.actionProvider.getRowActionsForType(Me.entityName,Me.entity.id))("isBlockedByAction",Me.isBlockedByAction),i.xp6(2),i.Q6J("routerLink",i.VKq(4,ku,Me.entity.id)),i.xp6(2),i.Q6J("ngIf",!Me.isBlockedByAction))},dependencies:[Zc.$,x.O5,n.rH,yt.z,Bt.t,x.Ov,m.X$],styles:["[_nghost-%COMP%]{flex:1;margin:0 0 5px}"],changeDetection:0})}return te})();function qm(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-statistics-button",17),i.NdJ("export",function(){i.CHM(E);const Me=i.oxw();return i.KtG(Me.exportStatistics())}),i.qZA()}}function Xm(te,Pn){if(1&te&&i._UZ(0,"imx-create-new-entity-button",18),2&te){const E=i.oxw();i.Q6J("entityRoute",E.entityRoute)("entityResourceKeyPrefix",E.entityResourceKeyPrefix)}}function Um(te,Pn){1&te&&(i.TgZ(0,"imx-list-no-results"),i._uU(1,"imxtools.addressbase.list.no-records"),i.qZA())}function sd(te,Pn){1&te&&i._UZ(0,"mat-progress-bar",19)}function Kc(te,Pn){if(1&te&&(i.TgZ(0,"th",26),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&te){const E=Pn.$implicit;i.Udp("width",E.width),i.Q6J("ngClass",E.cssClass),i.xp6(),i.hij(" ",i.lcZ(2,4,E.header)," ")}}function fm(te,Pn){if(1&te&&(i.TgZ(0,"tr"),i.YNc(1,Kc,3,6,"th",25),i.qZA()),2&te){const E=i.oxw(3);i.xp6(),i.Q6J("ngForOf",E.columnDefinitions)}}function Nu(te,Pn){1&te&&(i._UZ(0,"span",40),i.ALo(1,"translate")),2&te&&i.s9C("matTooltip",i.lcZ(1,1,"imxplatform.common-entity.list.outside-client-hierarchy"))}function yd(te,Pn){if(1&te&&(i.ynx(0),i.TgZ(1,"imx-tooltip",34),i.ALo(2,"productline"),i._uU(3),i.ALo(4,"productline"),i.qZA(),i.BQk()),2&te){const E=Pn.ngIf;i.xp6(),i.Q6J("tooltipText",i.lcZ(2,3,E))("offset",300),i.xp6(2),i.hij(" ",i.lcZ(4,5,E)," ")}}const gm=te=>({selected:te}),vu=te=>["../edit",te];function bu(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"tr",27)(1,"td",28)(2,"mat-checkbox",29),i.NdJ("change",function(Me){i.CHM(E);const Ln=i.oxw(3);return i.KtG(Ln.onSelectionChanged(Me))}),i.qZA()(),i.TgZ(3,"td"),i._uU(4),i.qZA(),i.TgZ(5,"td")(6,"a",30),i.ALo(7,"readI18n"),i.TgZ(8,"span",31),i._UZ(9,"span"),i.qZA(),i._uU(10),i.ALo(11,"readI18n"),i.qZA()(),i.TgZ(12,"td",32),i.ALo(13,"readI18n"),i._uU(14),i.YNc(15,Nu,2,3,"span",33),i.ALo(16,"async"),i.qZA(),i.TgZ(17,"td")(18,"imx-tooltip",34),i.ALo(19,"readI18n"),i.ALo(20,"languageNames"),i._UZ(21,"imx-language-flag",35),i.qZA()(),i.TgZ(22,"td"),i.YNc(23,yd,5,7,"ng-container",36),i.ALo(24,"productlineFilter"),i.qZA(),i.TgZ(25,"td"),i._UZ(26,"imx-entity-state",37),i.qZA(),i.TgZ(27,"td",38)(28,"imx-addressbase-row-action-menu",39),i.NdJ("executeAction",function(Me){const to=i.CHM(E).$implicit,ha=i.oxw(3);return i.KtG(ha.executeRowAction(Me,to))})("executeHistoryAction",function(){const Ln=i.CHM(E).$implicit,to=i.oxw(3);return i.KtG(to.executeHistoryAction(to.getEntityName(),Ln.id))})("executeReferencesAction",function(){const Ln=i.CHM(E).$implicit,to=i.oxw(3);return i.KtG(to.executeReferencesAction(to.getEntityName(),Ln.id))}),i.qZA()()()}if(2&te){const E=Pn.$implicit,_e=i.oxw(3);i.Q6J("ngClass",i.VKq(39,gm,_e.isItemSelected(E.id))),i.uIk("data-scroll-id",E.id),i.xp6(2),i.Q6J("value",E.id)("checked",_e.isItemSelected(E.id)),i.xp6(2),i.Oqu(E.id),i.xp6(2),i.Q6J("routerLink",i.VKq(41,vu,E.id))("matTooltipShowDelay",500)("matTooltip",i.lcZ(7,24,E.title)),i.xp6(3),i.Tol(_e.entityTypeIcon),i.xp6(),i.hij(" ",i.lcZ(11,26,E.title)," "),i.xp6(2),i.Q6J("matTooltip",i.lcZ(13,28,null==E.client?null:E.client.name))("matTooltipShowDelay",500),i.xp6(2),i.hij(" ",null==E.client?null:E.client.name," "),i.xp6(),i.Q6J("ngIf",i.lcZ(16,30,_e.isOutsideCurrentClientHierachy(null==E||null==E.client?null:E.client.id))),i.xp6(3),i.Q6J("tooltipText",i.lcZ(19,32,i.lcZ(20,34,E.languages)))("offset",300),i.xp6(3),i.Q6J("languages",E.languages)("inline",!0),i.xp6(2),i.Q6J("ngIf",i.xi3(24,36,null==E?null:E.metainfos,!0)),i.xp6(3),i.Q6J("key",null==E||null==E.entityState?null:E.entityState.key)("appearances",null==E?null:E.appearances),i.xp6(2),i.Q6J("entity",E)}}function Od(te,Pn){if(1&te&&(i.ynx(0),i.TgZ(1,"p-table",22),i.YNc(2,fm,2,1,"ng-template",23)(3,bu,29,43,"ng-template",24),i.qZA(),i.BQk()),2&te){const E=i.oxw().ngIf;i.xp6(),i.Q6J("value",E.items)("resizableColumns",!0)}}function Uu(te,Pn){if(1&te&&(i.TgZ(0,"div",20),i.YNc(1,Od,4,2,"ng-container",21),i.qZA()),2&te){const E=Pn.ngIf;i.oxw();const _e=i.MAs(9);i.xp6(),i.Q6J("ngIf",E.items.length>0)("ngIfElse",_e)}}function qu(te,Pn){if(1&te&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"translate"),i.TgZ(3,"span",41),i._uU(4),i.qZA()(),i._UZ(5,"span",42)),2&te){const E=i.oxw();i.xp6(),i.hij("",i.lcZ(2,2,"imxplatform.common-entity.list.selected-items")," "),i.xp6(3),i.hij("(",null==E.selectedIds?null:E.selectedIds.size,")")}}function Bm(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-statistics-button",17),i.NdJ("export",function(){i.CHM(E);const Me=i.oxw();return i.KtG(Me.exportStatistics())}),i.qZA()}}function Am(te,Pn){if(1&te&&i._UZ(0,"imx-create-new-entity-button",18),2&te){const E=i.oxw();i.Q6J("entityRoute",E.entityRoute)("entityResourceKeyPrefix",E.entityResourceKeyPrefix)}}function hm(te,Pn){1&te&&(i.TgZ(0,"imx-list-no-results"),i._uU(1,"imxtools.addressbase.list.no-records"),i.qZA())}function fc(te,Pn){1&te&&i._UZ(0,"mat-progress-bar",19)}function Zm(te,Pn){if(1&te&&(i.TgZ(0,"th",26),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&te){const E=Pn.$implicit;i.Udp("width",E.width),i.Q6J("ngClass",E.cssClass),i.xp6(),i.hij(" ",i.lcZ(2,4,E.header)," ")}}function ld(te,Pn){if(1&te&&(i.TgZ(0,"tr"),i.YNc(1,Zm,3,6,"th",25),i.qZA()),2&te){const E=i.oxw(3);i.xp6(),i.Q6J("ngForOf",E.columnDefinitions)}}function eu(te,Pn){1&te&&(i._UZ(0,"span",40),i.ALo(1,"translate")),2&te&&i.s9C("matTooltip",i.lcZ(1,1,"imxplatform.common-entity.list.outside-client-hierarchy"))}function Tp(te,Pn){if(1&te&&(i.ynx(0),i.TgZ(1,"imx-tooltip",34),i.ALo(2,"productline"),i._uU(3),i.ALo(4,"productline"),i.qZA(),i.BQk()),2&te){const E=Pn.ngIf;i.xp6(),i.Q6J("tooltipText",i.lcZ(2,3,E))("offset",300),i.xp6(2),i.hij(" ",i.lcZ(4,5,E)," ")}}function Bu(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"tr",27)(1,"td",28)(2,"mat-checkbox",29),i.NdJ("change",function(Me){i.CHM(E);const Ln=i.oxw(3);return i.KtG(Ln.onSelectionChanged(Me))}),i.qZA()(),i.TgZ(3,"td"),i._uU(4),i.qZA(),i.TgZ(5,"td")(6,"a",30),i.ALo(7,"readI18n"),i.TgZ(8,"span",31),i._UZ(9,"span"),i.qZA(),i._uU(10),i.ALo(11,"readI18n"),i.qZA()(),i.TgZ(12,"td",32),i.ALo(13,"readI18n"),i._uU(14),i.YNc(15,eu,2,3,"span",33),i.ALo(16,"async"),i.qZA(),i.TgZ(17,"td")(18,"imx-tooltip",34),i.ALo(19,"readI18n"),i.ALo(20,"languageNames"),i._UZ(21,"imx-language-flag",35),i.qZA()(),i.TgZ(22,"td"),i.YNc(23,Tp,5,7,"ng-container",36),i.ALo(24,"productlineFilter"),i.qZA(),i.TgZ(25,"td"),i._UZ(26,"imx-entity-state",37),i.qZA(),i.TgZ(27,"td",38)(28,"imx-addressbase-row-action-menu",39),i.NdJ("executeAction",function(Me){const to=i.CHM(E).$implicit,ha=i.oxw(3);return i.KtG(ha.executeRowAction(Me,to))})("executeHistoryAction",function(){const Ln=i.CHM(E).$implicit,to=i.oxw(3);return i.KtG(to.executeHistoryAction(to.getEntityName(),Ln.id))})("executeReferencesAction",function(){const Ln=i.CHM(E).$implicit,to=i.oxw(3);return i.KtG(to.executeReferencesAction(to.getEntityName(),Ln.id))}),i.qZA()()()}if(2&te){const E=Pn.$implicit,_e=i.oxw(3);i.Q6J("ngClass",i.VKq(39,gm,_e.isItemSelected(E.id))),i.uIk("data-scroll-id",E.id),i.xp6(2),i.Q6J("value",E.id)("checked",_e.isItemSelected(E.id)),i.xp6(2),i.Oqu(E.id),i.xp6(2),i.Q6J("routerLink",i.VKq(41,vu,E.id))("matTooltipShowDelay",500)("matTooltip",i.lcZ(7,24,E.title)),i.xp6(3),i.Tol(_e.entityTypeIcon),i.xp6(),i.hij(" ",i.lcZ(11,26,E.title)," "),i.xp6(2),i.Q6J("matTooltip",i.lcZ(13,28,null==E.client?null:E.client.name))("matTooltipShowDelay",500),i.xp6(2),i.hij(" ",null==E.client?null:E.client.name," "),i.xp6(),i.Q6J("ngIf",i.lcZ(16,30,_e.isOutsideCurrentClientHierachy(null==E||null==E.client?null:E.client.id))),i.xp6(3),i.Q6J("tooltipText",i.lcZ(19,32,i.lcZ(20,34,E.languages)))("offset",300),i.xp6(3),i.Q6J("languages",E.languages)("inline",!0),i.xp6(2),i.Q6J("ngIf",i.xi3(24,36,null==E?null:E.metainfos,!0)),i.xp6(3),i.Q6J("key",null==E||null==E.entityState?null:E.entityState.key)("appearances",null==E?null:E.appearances),i.xp6(2),i.Q6J("entity",E)}}function Zu(te,Pn){if(1&te&&(i.ynx(0),i.TgZ(1,"p-table",22),i.YNc(2,ld,2,1,"ng-template",23)(3,Bu,29,43,"ng-template",24),i.qZA(),i.BQk()),2&te){const E=i.oxw().ngIf;i.xp6(),i.Q6J("value",E.items)("resizableColumns",!0)}}function Hm(te,Pn){if(1&te&&(i.TgZ(0,"div",20),i.YNc(1,Zu,4,2,"ng-container",21),i.qZA()),2&te){const E=Pn.ngIf;i.oxw();const _e=i.MAs(9);i.xp6(),i.Q6J("ngIf",E.items.length>0)("ngIfElse",_e)}}function Cu(te,Pn){if(1&te&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"translate"),i.TgZ(3,"span",41),i._uU(4),i.qZA()(),i._UZ(5,"span",42)),2&te){const E=i.oxw();i.xp6(),i.hij("",i.lcZ(2,2,"imxplatform.common-entity.list.selected-items")," "),i.xp6(3),i.hij("(",null==E.selectedIds?null:E.selectedIds.size,")")}}const yu="[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}";let Xu=(()=>{class te extends l.AbstractCoreDataObjectSearchPage{constructor(E,_e,Me,Ln,to,ha,zs,cc,Gl,id,zd,Fm,Lm,Iu,Su){super(E,_e,Me,Ln,to,ha,zs,cc,void 0,zd,Gl,id,Fm,Lm,Iu,{},!0),this.dataAccessService=Su,this.imxToolsPermissions=ji.i,this.imxPermissions=l.ImxPermissions,this.availableOrderFields=[{index:1,field:"TITLE",i18n:"entity.Addressbase.title",type:l.OrderType.alphanumeric},{index:2,field:"ID",i18n:"entity.Addressbase.id",type:l.OrderType.numeric},{index:3,field:"CITY",i18n:"entity.Addressbase.location",type:l.OrderType.alphanumeric},{index:4,field:"CREATION_TIME",i18n:"imxplatform.common-entity.list.sort.creationTime",type:l.OrderType.numeric},{index:5,field:"LAST_CHANGE",i18n:"imxplatform.common-entity.list.sort.lastChange",type:l.OrderType.numeric},{index:6,field:"LAST_CHANGE_FROM",i18n:"imxplatform.common-entity.list.sort.lastChangeFrom",type:l.OrderType.alphanumeric}],this.columnDefinitions=[{field:"select",header:"",width:"40px",cssClass:"select-column"},{field:"id",header:"ID",width:"70px"},{field:"title",header:"entity.Addressbase.title",width:"50%"},{field:"client",header:"entity.Addressbase.client",width:"130px"},{field:"languages",header:"entity.Addressbase.languages",width:"100px"},{field:"productlines",header:"entity.Addressbase.productlines",width:"40%"},{field:"entity-state",header:"entity.Addressbase.state",width:"20%"},{field:"action",header:"",width:"50px",cssClass:"action-column"}],this.entityResourceKeyPrefix="imxtools.addressbase",this.entityRoute="/addressbases",this.entityTypeIcon="icon-stem"}getEntityName(){return"Addressbase"}getFilterParams(E){return this.dataAccessService.convertAddressbaseClientParamsToRequestParams(E)}getSetStateAction(){return this.actionProvider.findActionForKey("addressbase-action-set_state")}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(k.M),i.Y36(n.F0),i.Y36(n.gz),i.Y36(l.UserMessageService),i.Y36(l.ListHistoryService),i.Y36(B.uw),i.Y36(se.ru),i.Y36(l.ImxPlatformDataAccessService),i.Y36(l.PlatformTrackingService),i.Y36(l.ObjectListCreationService),i.Y36(s.Ze),i.Y36(l.MemoProviderService),i.Y36(s.Xh),i.Y36(l.ActionProviderService),i.Y36(tt.N))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["ng-component"]],features:[i.qOj],decls:26,vars:26,consts:[[1,"search-page"],[3,"formHandler","record","orderFields","orderField","orderDirection","enableCreateContactListOption","orderChanged","applyFilter","resetFilter"],[3,"totalNumber","entityResourceKeyPrefix","isCompactPageHeader","reload"],["list-header-button-row",""],[3,"export",4,"hasAnyPermission"],[3,"entityRoute","entityResourceKeyPrefix",4,"hasAnyPermission"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],["class","table-wrapper",4,"ngIf","ngIfElse"],[3,"paging","selection","pageChanged","selectAll"],["position","above","halign","start"],["imx-dropup-trigger",""],[3,"actions","executeAction"],["search-list-action-menu-middle",""],[3,"icon","actionClicked"],[3,"actionClicked"],[3,"export"],[3,"entityRoute","entityResourceKeyPrefix"],["mode","indeterminate"],[1,"table-wrapper"],[4,"ngIf","ngIfElse"],[1,"imx-datatable",3,"value","resizableColumns"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",3,"ngClass"],["imxGenericSelector","",3,"ngClass"],[1,"select-column"],[3,"value","checked","change"],[1,"txt-link",3,"routerLink","matTooltipShowDelay","matTooltip"],[1,"badge"],[3,"matTooltip","matTooltipShowDelay"],["class","icon icon-notificationType-Warning imx-icon-small outside-client",3,"matTooltip",4,"ngIf"],[3,"tooltipText","offset"],[3,"languages","inline"],[4,"ngIf"],[3,"key","appearances"],[1,"action-column"],[3,"entity","executeAction","executeHistoryAction","executeReferencesAction"],[1,"icon","icon-notificationType-Warning","imx-icon-small","outside-client",3,"matTooltip"],[1,"selected-size"],[1,"icon-chevron-down"]],template:function(_e,Me){if(1&_e&&(i.TgZ(0,"div",0)(1,"imx-addressbase-filter",1),i.NdJ("orderChanged",function(to){return Me.sort(to)})("applyFilter",function(to){return Me.search(to)})("resetFilter",function(){return Me.reset()}),i.qZA(),i.TgZ(2,"imx-list-header",2),i.NdJ("reload",function(){return Me.reloadComplete()}),i.ynx(3,3),i.YNc(4,qm,1,0,"imx-statistics-button",4)(5,Xm,1,2,"imx-create-new-entity-button",5),i.BQk(),i.qZA(),i.TgZ(6,"imx-grid")(7,"imx-grid-element",6),i.YNc(8,Um,2,0,"ng-template",null,7,i.W1O)(10,sd,1,0,"ng-template",null,8,i.W1O)(12,Uu,2,2,"div",9),i.ALo(13,"async"),i.qZA()(),i.TgZ(14,"imx-list-footer",10),i.NdJ("pageChanged",function(to){return Me.onPageChanged(to)})("selectAll",function(to){return Me.onSelectAll(to)}),i.TgZ(15,"imx-dropup-button",11),i.YNc(16,qu,6,4,"ng-template",12),i.TgZ(17,"imx-search-list-action-menu",13),i.NdJ("executeAction",function(to){return Me.executeBatchAction(to)}),i.ynx(18,14),i.TgZ(19,"imx-action-menu-item",15),i.NdJ("actionClicked",function(){return Me.addToObjectList()}),i._uU(20),i.ALo(21,"translate"),i.qZA(),i.TgZ(22,"imx-action-menu-item-create-contact-list",16),i.NdJ("actionClicked",function(){return Me.proposeSelectedIdsAsContactList()}),i.qZA(),i.TgZ(23,"imx-action-menu-item",15),i.NdJ("actionClicked",function(){return Me.exportStatisticsOnSelectedIds()}),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.BQk(),i.qZA()()()()),2&_e){const Ln=i.MAs(11);i.xp6(),i.Q6J("formHandler",Me.filterFormHandler)("record",Me.filter)("orderFields",Me.availableOrderFields)("orderField",Me.orderField)("orderDirection",Me.orderDirection)("enableCreateContactListOption",!0),i.xp6(),i.Q6J("totalNumber",null==Me.currentResult?null:Me.currentResult.totalNumberOfResults)("entityResourceKeyPrefix",Me.entityResourceKeyPrefix)("isCompactPageHeader",!0),i.xp6(2),i.Q6J("hasAnyPermission",Me.imxToolsPermissions.F_STAT_ADDRESSBASE_EXPORT.name),i.xp6(),i.Q6J("hasAnyPermission",Me.imxToolsPermissions.F_ADDRESSBASE_CREATE.name),i.xp6(7),i.Q6J("ngIf",i.lcZ(13,20,Me.results))("ngIfElse",Ln),i.xp6(2),i.Q6J("paging",Me.pagingModel)("selection",Me.selectionModel),i.xp6(3),i.Q6J("actions",null==Me.actionProvider?null:Me.actionProvider.getBatchActionsForType(Me.getEntityName())),i.xp6(2),i.Q6J("icon","icon-star--add"),i.xp6(),i.hij(" ",i.lcZ(21,22,"imxplatform.entity-list.object-list.action-title")," "),i.xp6(3),i.Q6J("icon","icon-pie-chart"),i.xp6(),i.hij(" ",i.lcZ(25,24,"imxplatform.common.export")," ")}},dependencies:[Zc.$,Cd.r,Un.n,rl.l,de.N,Ae._,Ct.A,Rm.E,gi.R,ee.F,om.l,x.mk,x.sg,x.O5,ln.oG,Pl.pW,ne.gM,n.rH,wt.jx,Mt.iA,Mt.Q7,yt.z,Bt.t,pm.F,No.M,Ar.V,Ld.J,Ao.K,_m,Xr,lt.j,Es.O,rc.D,Kr.w,x.Ov,m.X$],styles:[yu]})}return te})(),wm=(()=>{class te extends Xu{constructor(){super(...arguments),this.entityResourceKeyPrefix="imxtools.tour",this.entityRoute="/tours",this.entityTypeIcon="icon-map_tour"}static#e=this.\u0275fac=(()=>{let E;return function(Me){return(E||(E=i.n5z(te)))(Me||te)}})();static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["ng-component"]],features:[i.qOj],decls:26,vars:26,consts:[[1,"search-page"],[3,"formHandler","record","orderFields","orderField","orderDirection","enableCreateContactListOption","orderChanged","applyFilter","resetFilter"],[3,"totalNumber","entityResourceKeyPrefix","isCompactPageHeader","reload"],["list-header-button-row",""],[3,"export",4,"hasAnyPermission"],[3,"entityRoute","entityResourceKeyPrefix",4,"hasAnyPermission"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],["class","table-wrapper",4,"ngIf","ngIfElse"],[3,"paging","selection","pageChanged","selectAll"],["position","above","halign","start"],["imx-dropup-trigger",""],[3,"actions","executeAction"],["search-list-action-menu-middle",""],[3,"icon","actionClicked"],[3,"actionClicked"],[3,"export"],[3,"entityRoute","entityResourceKeyPrefix"],["mode","indeterminate"],[1,"table-wrapper"],[4,"ngIf","ngIfElse"],[1,"imx-datatable",3,"value","resizableColumns"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",3,"ngClass"],["imxGenericSelector","",3,"ngClass"],[1,"select-column"],[3,"value","checked","change"],[1,"txt-link",3,"routerLink","matTooltipShowDelay","matTooltip"],[1,"badge"],[3,"matTooltip","matTooltipShowDelay"],["class","icon icon-notificationType-Warning imx-icon-small outside-client",3,"matTooltip",4,"ngIf"],[3,"tooltipText","offset"],[3,"languages","inline"],[4,"ngIf"],[3,"key","appearances"],[1,"action-column"],[3,"entity","executeAction","executeHistoryAction","executeReferencesAction"],[1,"icon","icon-notificationType-Warning","imx-icon-small","outside-client",3,"matTooltip"],[1,"selected-size"],[1,"icon-chevron-down"]],template:function(_e,Me){if(1&_e&&(i.TgZ(0,"div",0)(1,"imx-addressbase-filter",1),i.NdJ("orderChanged",function(to){return Me.sort(to)})("applyFilter",function(to){return Me.search(to)})("resetFilter",function(){return Me.reset()}),i.qZA(),i.TgZ(2,"imx-list-header",2),i.NdJ("reload",function(){return Me.reloadComplete()}),i.ynx(3,3),i.YNc(4,Bm,1,0,"imx-statistics-button",4)(5,Am,1,2,"imx-create-new-entity-button",5),i.BQk(),i.qZA(),i.TgZ(6,"imx-grid")(7,"imx-grid-element",6),i.YNc(8,hm,2,0,"ng-template",null,7,i.W1O)(10,fc,1,0,"ng-template",null,8,i.W1O)(12,Hm,2,2,"div",9),i.ALo(13,"async"),i.qZA()(),i.TgZ(14,"imx-list-footer",10),i.NdJ("pageChanged",function(to){return Me.onPageChanged(to)})("selectAll",function(to){return Me.onSelectAll(to)}),i.TgZ(15,"imx-dropup-button",11),i.YNc(16,Cu,6,4,"ng-template",12),i.TgZ(17,"imx-search-list-action-menu",13),i.NdJ("executeAction",function(to){return Me.executeBatchAction(to)}),i.ynx(18,14),i.TgZ(19,"imx-action-menu-item",15),i.NdJ("actionClicked",function(){return Me.addToObjectList()}),i._uU(20),i.ALo(21,"translate"),i.qZA(),i.TgZ(22,"imx-action-menu-item-create-contact-list",16),i.NdJ("actionClicked",function(){return Me.proposeSelectedIdsAsContactList()}),i.qZA(),i.TgZ(23,"imx-action-menu-item",15),i.NdJ("actionClicked",function(){return Me.exportStatisticsOnSelectedIds()}),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.BQk(),i.qZA()()()()),2&_e){const Ln=i.MAs(11);i.xp6(),i.Q6J("formHandler",Me.filterFormHandler)("record",Me.filter)("orderFields",Me.availableOrderFields)("orderField",Me.orderField)("orderDirection",Me.orderDirection)("enableCreateContactListOption",!0),i.xp6(),i.Q6J("totalNumber",null==Me.currentResult?null:Me.currentResult.totalNumberOfResults)("entityResourceKeyPrefix",Me.entityResourceKeyPrefix)("isCompactPageHeader",!0),i.xp6(2),i.Q6J("hasAnyPermission",Me.imxToolsPermissions.F_STAT_ADDRESSBASE_EXPORT.name),i.xp6(),i.Q6J("hasAnyPermission",Me.imxToolsPermissions.F_ADDRESSBASE_CREATE.name),i.xp6(7),i.Q6J("ngIf",i.lcZ(13,20,Me.results))("ngIfElse",Ln),i.xp6(2),i.Q6J("paging",Me.pagingModel)("selection",Me.selectionModel),i.xp6(3),i.Q6J("actions",null==Me.actionProvider?null:Me.actionProvider.getBatchActionsForType(Me.getEntityName())),i.xp6(2),i.Q6J("icon","icon-star--add"),i.xp6(),i.hij(" ",i.lcZ(21,22,"imxplatform.entity-list.object-list.action-title")," "),i.xp6(3),i.Q6J("icon","icon-pie-chart"),i.xp6(),i.hij(" ",i.lcZ(25,24,"imxplatform.common.export")," ")}},dependencies:[Zc.$,Cd.r,Un.n,rl.l,de.N,Ae._,Ct.A,Rm.E,gi.R,ee.F,om.l,x.mk,x.sg,x.O5,ln.oG,Pl.pW,ne.gM,n.rH,wt.jx,Mt.iA,Mt.Q7,yt.z,Bt.t,pm.F,No.M,Ar.V,Ld.J,Ao.K,_m,Xr,lt.j,Es.O,rc.D,Kr.w,x.Ov,m.X$],styles:[yu]})}return te})();var Bd=a(35922),xm=a(32786),Pd=a(34722),kt=a(80529),Jt=a(96681);function he(te,Pn){1&te&&i.GkF(0)}function Re(te,Pn){1&te&&i.GkF(0)}const Qe=te=>({$implicit:te});function Ht(te,Pn){if(1&te&&(i.TgZ(0,"div",7)(1,"div",8)(2,"div",9),i.YNc(3,he,1,0,"ng-container",10)(4,Re,1,0,"ng-container",10),i.qZA()()()),2&te){const E=Pn.$implicit;i.oxw(2);const _e=i.MAs(3),Me=i.MAs(5);i.xp6(3),i.Q6J("ngTemplateOutlet",_e)("ngTemplateOutletContext",i.VKq(4,Qe,E)),i.xp6(),i.Q6J("ngTemplateOutlet",Me)("ngTemplateOutletContext",i.VKq(6,Qe,E))}}function qt(te,Pn){if(1&te&&(i.ynx(0),i.TgZ(1,"div",3)(2,"span",4),i._uU(3,"imxplatform.common-entity.list.extension.appearance.own-dcs"),i.qZA()(),i.TgZ(4,"div",5),i.YNc(5,Ht,5,8,"div",6),i.qZA(),i.BQk()),2&te){const E=i.oxw();i.xp6(5),i.Q6J("ngForOf",E.ownAppearances)}}function Lo(te,Pn){1&te&&i.GkF(0)}function ur(te,Pn){1&te&&i.GkF(0)}function rr(te,Pn){if(1&te&&(i.TgZ(0,"div",7)(1,"div",8)(2,"div",9),i.YNc(3,Lo,1,0,"ng-container",10)(4,ur,1,0,"ng-container",10),i.qZA()()()),2&te){const E=Pn.$implicit;i.oxw(2);const _e=i.MAs(3),Me=i.MAs(5);i.xp6(3),i.Q6J("ngTemplateOutlet",_e)("ngTemplateOutletContext",i.VKq(4,Qe,E)),i.xp6(),i.Q6J("ngTemplateOutlet",Me)("ngTemplateOutletContext",i.VKq(6,Qe,E))}}function Oa(te,Pn){if(1&te&&(i.ynx(0),i.TgZ(1,"div",3)(2,"span",4),i._uU(3,"imxplatform.common-entity.list.extension.appearance.foreign-dcs"),i.qZA()(),i.TgZ(4,"div",5),i.YNc(5,rr,5,8,"div",6),i.qZA(),i.BQk()),2&te){const E=i.oxw();i.xp6(5),i.Q6J("ngForOf",E.foreignAppearances)}}function Pa(te,Pn){if(1&te&&(i.ynx(0),i.TgZ(1,"p",14),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"p"),i._uU(5),i.ALo(6,"readI18n"),i.qZA(),i.BQk()),2&te){const E=i.oxw().$implicit,_e=i.oxw();i.xp6(2),i.hij("",i.lcZ(3,2,"imxplatform.common-entity.list.extension.appearance.productline"),":"),i.xp6(3),i.Oqu(i.lcZ(6,4,_e.productlineI18nMap.get(null==E.productline?null:E.productline.id)))}}function Ja(te,Pn){if(1&te&&(i.TgZ(0,"div",11),i._UZ(1,"span",12),i.qZA(),i.TgZ(2,"div",13)(3,"p",14),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"p"),i._uU(7),i.ALo(8,"date"),i.ALo(9,"date"),i.qZA()(),i.TgZ(10,"div",15),i._UZ(11,"imx-entity-state",16),i.qZA(),i.TgZ(12,"div",17)(13,"p",14),i._uU(14),i.ALo(15,"translate"),i.qZA(),i.TgZ(16,"p"),i._uU(17),i.qZA()(),i.TgZ(18,"div",18),i._UZ(19,"imx-language-flag",19),i.qZA(),i.TgZ(20,"div",20)(21,"p",14),i._uU(22),i.ALo(23,"translate"),i.qZA(),i.TgZ(24,"imx-tooltip",21)(25,"p"),i._uU(26),i.qZA()()(),i.TgZ(27,"div",22),i.YNc(28,Pa,7,6,"ng-container",0),i.qZA(),i.TgZ(29,"div",23)(30,"imx-tooltip",24)(31,"span",4),i._uU(32),i.qZA(),i._UZ(33,"span",25),i.qZA()()),2&te){const E=Pn.$implicit,_e=i.oxw();i.Q6J("ngClass",_e.getAppearanceEntityStateColorCss(E.type)),i.xp6(2),i.Q6J("ngClass",_e.getAppearanceEntityStateColorCss(E.type)),i.xp6(2),i.hij("",i.lcZ(5,27,"imxplatform.common-entity.list.extension.appearance.period"),":"),i.xp6(3),i.AsE("",i.xi3(8,29,E.fromDate,"dd.MM.yyyy")," - ",i.xi3(9,32,E.toDate,"dd.MM.yyyy"),""),i.xp6(4),i.Q6J("fromDate",E.fromDate)("toDate",E.toDate)("checkForDates",!0)("renderLabel",!1),i.xp6(),i.Q6J("ngClass",_e.getAppearanceEntityStateColorCss(E.type)),i.xp6(2),i.hij("",i.lcZ(15,35,"imxplatform.common-entity.list.extension.appearance.priority"),":"),i.xp6(3),i.Oqu(null==E.prioLevel?null:E.prioLevel.name),i.xp6(2),i.Q6J("languages",E.languages)("inline",!0),i.xp6(),i.Q6J("ngClass",_e.getAppearanceEntityStateColorCss(E.type)),i.xp6(2),i.hij("",i.lcZ(23,37,"imxplatform.common-entity.list.extension.appearance.delivery-channel"),":"),i.xp6(2),i.Q6J("tooltipText","ProposerType "+(null==E.proposer?null:E.proposer.id))("tooltipPosition","above")("offset",2e3),i.xp6(2),i.Oqu(null==E.deliveryChannel?null:E.deliveryChannel.name),i.xp6(),i.Q6J("ngClass",_e.getAppearanceEntityStateColorCss(E.type)),i.xp6(),i.Q6J("ngIf",null==E.productline?null:E.productline.id),i.xp6(),i.Q6J("ngClass",_e.getAppearanceEntityStateColorCss(E.type)),i.xp6(),i.Q6J("tooltipText",_e.getHint(E))("offset",500),i.xp6(2),i.Oqu(_e.getAppearanceEntityState(E.type).i18n),i.xp6(),i.Q6J("ngClass",_e.getAppearanceEntityState(E.type).iconClass)}}function fs(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"a",28),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(2).$implicit,Ln=i.oxw();return i.KtG(Ln.confirmOrRefuseAppearance(Me,"refuse"))}),i._uU(1),i.ALo(2,"translate"),i._UZ(3,"span",29),i.qZA()}2&te&&(i.xp6(),i.hij(" ",i.lcZ(2,1,"imxplatform.common-entity.list.extension.appearance.refuse"),"\xa0"))}function El(te,Pn){if(1&te&&(i.ynx(0),i.TgZ(1,"div",26),i.YNc(2,fs,4,3,"a",27),i.ALo(3,"async"),i.qZA(),i.BQk()),2&te){const E=i.oxw().$implicit,_e=i.oxw();i.xp6(2),i.Q6J("ngIf",i.lcZ(3,1,_e.hasAppearanceRefusePermission(E)))}}function Ic(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"a",28),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(2).$implicit,Ln=i.oxw();return i.KtG(Ln.confirmOrRefuseAppearance(Me,"confirm"))}),i._uU(1),i.ALo(2,"translate"),i._UZ(3,"span",29),i.qZA()}2&te&&(i.xp6(),i.hij(" ",i.lcZ(2,1,"imxplatform.common-entity.list.extension.appearance.confirm"),"\xa0"))}function Pc(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"a",28),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(2).$implicit,Ln=i.oxw();return i.KtG(Ln.confirmOrRefuseAppearance(Me,"refuse"))}),i._uU(1),i.ALo(2,"translate"),i._UZ(3,"span",29),i.qZA()}2&te&&(i.xp6(),i.hij(" ",i.lcZ(2,1,"imxplatform.common-entity.list.extension.appearance.refuse"),"\xa0"))}function td(te,Pn){if(1&te&&(i.ynx(0),i.TgZ(1,"div",26)(2,"div"),i.YNc(3,Ic,4,3,"a",27),i.ALo(4,"async"),i.qZA(),i.TgZ(5,"div"),i.YNc(6,Pc,4,3,"a",27),i.ALo(7,"async"),i.qZA()(),i.BQk()),2&te){const E=i.oxw().$implicit,_e=i.oxw();i.xp6(3),i.Q6J("ngIf",i.lcZ(4,2,_e.hasAppearanceConfirmPermission(E))),i.xp6(3),i.Q6J("ngIf",i.lcZ(7,4,_e.hasAppearanceRefusePermission(E)))}}function $c(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"a",28),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(2).$implicit,Ln=i.oxw();return i.KtG(Ln.confirmOrRefuseAppearance(Me,"confirm"))}),i._uU(1),i.ALo(2,"translate"),i._UZ(3,"span",29),i.qZA()}2&te&&(i.xp6(),i.hij(" ",i.lcZ(2,1,"imxplatform.common-entity.list.extension.appearance.confirm"),"\xa0"))}function ud(te,Pn){if(1&te&&(i.ynx(0),i.TgZ(1,"div",26),i.YNc(2,$c,4,3,"a",27),i.ALo(3,"async"),i.qZA(),i.BQk()),2&te){const E=i.oxw().$implicit,_e=i.oxw();i.xp6(2),i.Q6J("ngIf",i.lcZ(3,1,_e.hasAppearanceConfirmPermission(E)))}}function qc(te,Pn){if(1&te&&i.YNc(0,El,4,3,"ng-container",0)(1,td,8,6,"ng-container",0)(2,ud,4,3,"ng-container",0),2&te){const E=Pn.$implicit,_e=i.oxw();i.Q6J("ngIf",_e.isConfirmed(E.type)),i.xp6(),i.Q6J("ngIf",_e.isPending(E.type)),i.xp6(),i.Q6J("ngIf",_e.isRefused(E.type))}}let Dm=(()=>{class te extends l.AbstractAppearanceExtensionContentComponent{constructor(E,_e,Me,Ln,to,ha){super(E,_e,Me,Ln),this.dataAccessService=to,this.toolsDataAccessService=ha,this.ownAppearances=[],this.foreignAppearances=[]}calcAppearanceConfirmPermission(){return this.imxSecurityManagerService.hasPermission("Addressbase"===this.entityType?ji.i.F_ADDRESSBASE_APPEARANCE_CONFIRM:ji.i.F_OFFER_APPEARANCE_CONFIRM)}calcAppearanceRefusePermission(){return this.imxSecurityManagerService.hasPermission("Addressbase"===this.entityType?ji.i.F_ADDRESSBASE_APPEARANCE_REFUSE:ji.i.F_OFFER_APPEARANCE_REFUSE)}postInitAppearances(){super.postInitAppearances();const _e=[...this.ownAppearances,...this.foreignAppearances].filter(Me=>null!=Me.productline).map(Me=>Me.productline.id);this.readProductLineI18n(_e)}hasAppearanceConfirmPermission(E){return this.isOwnedEntity$.pipe((0,O.U)(_e=>{let Me=this.calcAppearanceConfirmPermission();return Me&&(Me=this.imxSecurityManagerService.hasPropertyEditPermission(this.entityType,"appearance",_e)),Me&&(Me=!(!E.proposer||E.proposer.id===Se.eH.id)&&_e),Me}))}hasAppearanceRefusePermission(E){return this.isOwnedEntity$.pipe((0,O.U)(_e=>{let Me=this.calcAppearanceRefusePermission();return Me&&(Me=this.imxSecurityManagerService.hasPropertyEditPermission(this.entityType,"appearance",_e)),Me&&(Me=!(!E.proposer||E.proposer.id===Se.eH.id)&&_e),Me}))}confirmOrRefuseAppearance(E,_e){this.dataAccessService.callAction(this.createActionCall(this.entity,E.id,_e)).subscribe(Me=>{Me.includes(this.entity.id)&&("Addressbase"===this.entityType?this.toolsDataAccessService.getAddressbaseById(this.entity.id).subscribe(Ln=>{this.entityUpdated.emit(Ln),this.entity=Ln,this.initAppearances(),this.changeDetectorRef.markForCheck()}):"Offer"===this.entityType&&this.toolsDataAccessService.getOfferById(this.entity.id).subscribe(Ln=>{this.entityUpdated.emit(Ln),this.entity=Ln,this.initAppearances(),this.changeDetectorRef.markForCheck()}))})}readProductLineI18n(E){this.productlineI18nMap=new Map,this.entitiesMgrService.getEntityWithIdsOfType("Productline",E).subscribe(_e=>{_e.forEach(Me=>this.productlineI18nMap.set(Me.id,Me.i18nName))})}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(s.Ze),i.Y36(s.qB),i.Y36(s.Xh),i.Y36(i.sBO),i.Y36(l.ImxPlatformDataAccessService),i.Y36(tt.N))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-tools-appearance-extension-content"]],hostAttrs:[1,"imx-tools-appearance-extension-content"],features:[i.qOj],decls:6,vars:2,consts:[[4,"ngIf"],["appearanceColumns",""],["actionColumns",""],[1,"group_header"],["translate",""],[1,"list__extension__content"],["class","row-wrapper",4,"ngFor","ngForOf"],[1,"row-wrapper"],[1,"list__extension__row","appearances"],[1,"list__content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"list__column",3,"ngClass"],[1,"icon-calendar-full"],[1,"list__column","dateCol",3,"ngClass"],[1,"txt-sm"],[1,"list__column","activityCol"],[3,"fromDate","toDate","checkForDates","renderLabel"],[1,"list__column","priorityCol",3,"ngClass"],[1,"list__column","langCol"],[3,"languages","inline"],[1,"list__column","dcCol",3,"ngClass"],[3,"tooltipText","tooltipPosition","offset"],[1,"list__column","plCol",3,"ngClass"],[1,"list__column","stateCol","appearance-state",3,"ngClass"],[3,"tooltipText","offset"],[1,"icon","imx-icon-middle",3,"ngClass"],[1,"list__column","colAction"],["class","txt-link",3,"click",4,"ngIf"],[1,"txt-link",3,"click"],[1,"icon-arrow-right"]],template:function(_e,Me){1&_e&&i.YNc(0,qt,6,1,"ng-container",0)(1,Oa,6,1,"ng-container",0)(2,Ja,34,39,"ng-template",null,1,i.W1O)(4,qc,3,3,"ng-template",null,2,i.W1O),2&_e&&(i.Q6J("ngIf",Me.ownAppearances.length>0),i.xp6(),i.Q6J("ngIf",Me.foreignAppearances.length>0))},dependencies:[Un.n,rl.l,ee.F,x.mk,x.sg,x.O5,x.tP,m.Pi,Ao.K,lt.j,x.Ov,x.uU,m.X$],styles:[".list__extension__content[_ngcontent-%COMP%]   .row-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-bottom:5px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row[_ngcontent-%COMP%]{background-color:#fff;padding:10px 40px 10px 10px;margin:0 20px 10px;width:100%;display:flex;flex-direction:column;position:relative}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row[_ngcontent-%COMP%]   .list__content[_ngcontent-%COMP%]{margin-bottom:0}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row[_ngcontent-%COMP%]   .row-action[_ngcontent-%COMP%]{position:absolute;right:0;top:0;height:100%;width:48px;display:flex;justify-content:center;align-items:center;cursor:pointer;color:#0a2663;border-left:1px solid #eefafa}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row[_ngcontent-%COMP%]   .list__column[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{margin-right:5px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.dateCol[_ngcontent-%COMP%]{flex-basis:200px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.activityCol[_ngcontent-%COMP%]{flex-basis:100px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.priorityCol[_ngcontent-%COMP%]{flex-basis:220px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.langCol[_ngcontent-%COMP%]{flex-basis:70px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.dcCol[_ngcontent-%COMP%]{flex-basis:240px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.plCol[_ngcontent-%COMP%], .list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.stateCol[_ngcontent-%COMP%]{flex-basis:250px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.colAction[_ngcontent-%COMP%]{flex-basis:250px;text-align:right}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col1[_ngcontent-%COMP%]{flex-basis:530px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col2[_ngcontent-%COMP%]{flex-basis:70px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col3[_ngcontent-%COMP%]{flex-basis:240px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col4[_ngcontent-%COMP%]{flex-basis:250px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col5[_ngcontent-%COMP%]{flex-basis:250px;text-align:right}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col6[_ngcontent-%COMP%]{padding-left:22px;margin-top:8px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.ibe-assignments[_ngcontent-%COMP%]   .list__column.col1[_ngcontent-%COMP%]{flex-basis:150px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.ibe-assignments[_ngcontent-%COMP%]   .list__column.col2[_ngcontent-%COMP%]{flex-basis:200px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.ibe-assignments[_ngcontent-%COMP%]   .list__column.col3[_ngcontent-%COMP%], .list__extension__content[_ngcontent-%COMP%]   .list__extension__row.ibe-assignments[_ngcontent-%COMP%]   .list__column.col4[_ngcontent-%COMP%]{flex-basis:150px}.color-refused[_ngcontent-%COMP%]{color:#96172e}.color-pending[_ngcontent-%COMP%]{color:#f0ab00}.color-confirmed[_ngcontent-%COMP%]{color:#739600}.appearance-state[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{vertical-align:middle}.appearance-state[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{margin-left:8px}.group_header[_ngcontent-%COMP%]{padding:0 65px 5px 10px;margin:0 20px 10px}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.list__content[_ngcontent-%COMP%]{display:-webkit-flex;display:flex;flex-direction:row;margin-bottom:5px;width:100%}.list__content-wrapper[_ngcontent-%COMP%]{display:flex}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.icon-column[_ngcontent-%COMP%]{font-size:20px;color:#000;line-height:22px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.image-column[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100px;height:100px;object-fit:cover}@media (max-width: 900px){.list__content-wrapper[_ngcontent-%COMP%]   .list__column.image-column[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:50px;height:50px}}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.image-column.placeholder[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:unset}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col3[_ngcontent-%COMP%]{flex-basis:450px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col4[_ngcontent-%COMP%]{width:20px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col5[_ngcontent-%COMP%]{flex-basis:400px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col6[_ngcontent-%COMP%]{flex-basis:200px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col7[_ngcontent-%COMP%]{margin-left:auto}.list__content[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.list__content-rows[_ngcontent-%COMP%]{width:100%}.list__column[_ngcontent-%COMP%]{margin-right:10px;word-break:break-word}@media (max-width: 900px){.list__column[_ngcontent-%COMP%]{margin-right:5px}}.list__column[_ngcontent-%COMP%]   .margin-top[_ngcontent-%COMP%]{margin-top:5px}.list__column[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style-type:square;list-style-position:inside}.list__column[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px}"],changeDetection:0})}return te})();var oc=a(50308);function Zd(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"div",14)(1,"a",15),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw().$implicit,Ln=i.oxw();return i.KtG(Ln.showImportSource(Me))}),i.TgZ(2,"span"),i._UZ(3,"imx-icon",16),i.qZA()()()}}function Sc(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"span"),i._UZ(5,"imx-icon",6),i.qZA()(),i.TgZ(6,"div",7)(7,"p",8),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"p"),i._uU(11),i.qZA()(),i.TgZ(12,"div",9)(13,"p",8),i._uU(14),i.ALo(15,"translate"),i.qZA(),i.TgZ(16,"p"),i._uU(17),i.qZA()(),i.TgZ(18,"div",10)(19,"p",8),i._uU(20),i.ALo(21,"translate"),i.qZA(),i.TgZ(22,"mat-checkbox",11),i.NdJ("change",function(Me){const to=i.CHM(E).$implicit,ha=i.oxw();return i.KtG(ha.toggle(Me,to))})("ngModelChange",function(Me){const to=i.CHM(E).$implicit;return i.KtG(to.active=Me)}),i.qZA()(),i.TgZ(23,"div",12)(24,"p"),i._uU(25),i.ALo(26,"translate"),i.qZA()()(),i.YNc(27,Zd,4,0,"div",13),i.ALo(28,"async"),i.qZA()()}if(2&te){const E=Pn.$implicit,_e=i.oxw();i.xp6(8),i.Oqu(i.lcZ(9,8,"entity.IbeAddressbaseImportAssignment.importSource")),i.xp6(3),i.hij(" ",E.importSource,""),i.xp6(3),i.Oqu(i.lcZ(15,10,"entity.IbeAddressbaseImportAssignment.importId")),i.xp6(3),i.hij(" ",E.importId,""),i.xp6(3),i.Oqu(i.lcZ(21,12,"entity.IbeAddressbaseImportAssignment.active")),i.xp6(2),i.Q6J("ngModel",E.active),i.xp6(3),i.Oqu(_e.masterSource===E.importSource?i.lcZ(26,14,"entity.IbeAddressbaseImportAssignment.master"):""),i.xp6(2),i.Q6J("ngIf",i.lcZ(28,16,_e.sourceViewAction&&_e.sourceViewAction.hasPermission()&&_e.sourceViewAction.isExecutableForSource(_e.addressbase,E.importSource)))}}let Md=(()=>{class te{constructor(E,_e,Me){this.ibeAssignmentService=E,this.actionProviderService=_e,this.changeDetectorRef=Me}ngOnInit(){this.sourceViewAction=this.actionProviderService.findStaticActionForKey("import-source-view-action"),this.ibeAssignmentService.getIbeAssignments(this.addressbase.id).pipe((0,Ce.q)(1)).subscribe(E=>{this.masterSource=E.ExtendedIbeAddressbaseImportAssignment.masterSource,this.ibeAssignments=E.ExtendedIbeAddressbaseImportAssignment.ibeAddressbaseImportAssignments,this.changeDetectorRef.markForCheck()})}toggle(E,_e){this.ibeAssignmentService.updateIbeAssignment(_e).pipe((0,Ce.q)(1)).subscribe()}showImportSource(E){this.sourceViewAction.showImportSource(E.importSource,this.addressbase.importRun.importPurpose,E.importId).subscribe()}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(Bc),i.Y36(l.ActionProviderService),i.Y36(i.sBO))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-ibe-assignment-extension-content"]],hostAttrs:[1,"imx-ibe-assignment-extension-content"],inputs:{addressbase:"addressbase"},decls:2,vars:1,consts:[[1,"list__extension__content"],["class","row-wrapper",4,"ngFor","ngForOf"],[1,"row-wrapper"],[1,"list__extension__row"],[1,"list__content"],[1,"list__column"],["icon","link"],[1,"list__column","col1"],[1,"txt-sm"],[1,"list__column","col2"],[1,"list__column","col3"],[1,"small",3,"ngModel","change","ngModelChange"],[1,"list__column","col4"],["class","action-col",4,"ngIf"],[1,"action-col"],[3,"click"],["icon","inbox"]],template:function(_e,Me){1&_e&&(i.TgZ(0,"div",0),i.YNc(1,Sc,29,18,"div",1),i.qZA()),2&_e&&(i.xp6(),i.Q6J("ngForOf",Me.ibeAssignments))},dependencies:[ee.F,x.sg,x.O5,u.JJ,u.On,ln.oG,oc.o,x.Ov,m.X$],styles:[".list__extension__content[_ngcontent-%COMP%]   .row-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-bottom:5px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row[_ngcontent-%COMP%]{background-color:#fff;padding:10px 40px 10px 10px;margin:0 20px 10px;width:100%;display:flex;flex-direction:column;position:relative}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row[_ngcontent-%COMP%]   .list__content[_ngcontent-%COMP%]{margin-bottom:0}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row[_ngcontent-%COMP%]   .row-action[_ngcontent-%COMP%]{position:absolute;right:0;top:0;height:100%;width:48px;display:flex;justify-content:center;align-items:center;cursor:pointer;color:#0a2663;border-left:1px solid #eefafa}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row[_ngcontent-%COMP%]   .list__column[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{margin-right:5px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.dateCol[_ngcontent-%COMP%]{flex-basis:200px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.activityCol[_ngcontent-%COMP%]{flex-basis:100px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.priorityCol[_ngcontent-%COMP%]{flex-basis:220px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.langCol[_ngcontent-%COMP%]{flex-basis:70px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.dcCol[_ngcontent-%COMP%]{flex-basis:240px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.plCol[_ngcontent-%COMP%], .list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.stateCol[_ngcontent-%COMP%]{flex-basis:250px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.colAction[_ngcontent-%COMP%]{flex-basis:250px;text-align:right}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col1[_ngcontent-%COMP%]{flex-basis:530px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col2[_ngcontent-%COMP%]{flex-basis:70px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col3[_ngcontent-%COMP%]{flex-basis:240px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col4[_ngcontent-%COMP%]{flex-basis:250px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col5[_ngcontent-%COMP%]{flex-basis:250px;text-align:right}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col6[_ngcontent-%COMP%]{padding-left:22px;margin-top:8px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.ibe-assignments[_ngcontent-%COMP%]   .list__column.col1[_ngcontent-%COMP%]{flex-basis:150px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.ibe-assignments[_ngcontent-%COMP%]   .list__column.col2[_ngcontent-%COMP%]{flex-basis:200px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.ibe-assignments[_ngcontent-%COMP%]   .list__column.col3[_ngcontent-%COMP%], .list__extension__content[_ngcontent-%COMP%]   .list__extension__row.ibe-assignments[_ngcontent-%COMP%]   .list__column.col4[_ngcontent-%COMP%]{flex-basis:150px}.color-refused[_ngcontent-%COMP%]{color:#96172e}.color-pending[_ngcontent-%COMP%]{color:#f0ab00}.color-confirmed[_ngcontent-%COMP%]{color:#739600}.appearance-state[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{vertical-align:middle}.appearance-state[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{margin-left:8px}.group_header[_ngcontent-%COMP%]{padding:0 65px 5px 10px;margin:0 20px 10px}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.list__content[_ngcontent-%COMP%]{display:-webkit-flex;display:flex;flex-direction:row;margin-bottom:5px;width:100%}.list__content-wrapper[_ngcontent-%COMP%]{display:flex}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.icon-column[_ngcontent-%COMP%]{font-size:20px;color:#000;line-height:22px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.image-column[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100px;height:100px;object-fit:cover}@media (max-width: 900px){.list__content-wrapper[_ngcontent-%COMP%]   .list__column.image-column[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:50px;height:50px}}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.image-column.placeholder[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:unset}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col3[_ngcontent-%COMP%]{flex-basis:450px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col4[_ngcontent-%COMP%]{width:20px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col5[_ngcontent-%COMP%]{flex-basis:400px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col6[_ngcontent-%COMP%]{flex-basis:200px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col7[_ngcontent-%COMP%]{margin-left:auto}.list__content[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.list__content-rows[_ngcontent-%COMP%]{width:100%}.list__column[_ngcontent-%COMP%]{margin-right:10px;word-break:break-word}@media (max-width: 900px){.list__column[_ngcontent-%COMP%]{margin-right:5px}}.list__column[_ngcontent-%COMP%]   .margin-top[_ngcontent-%COMP%]{margin-top:5px}.list__column[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style-type:square;list-style-position:inside}.list__column[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row[_ngcontent-%COMP%]{flex-direction:row}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row[_ngcontent-%COMP%]   .list__content[_ngcontent-%COMP%]{align-items:center}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row[_ngcontent-%COMP%]   .list__content[_ngcontent-%COMP%]   .col4[_ngcontent-%COMP%]{margin-top:3px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]{align-self:flex-end}[_nghost-%COMP%]     .col3 .mat-mdc-checkbox{padding-bottom:0}"]})}return te})();function Pm(te,Pn){if(1&te&&(i.ynx(0),i.TgZ(1,"p",8),i._uU(2),i.ALo(3,"translate"),i.TgZ(4,"span",21),i._uU(5),i.ALo(6,"productline"),i.qZA()(),i.BQk()),2&te){const E=Pn.ngIf;i.xp6(2),i.AsE("",i.lcZ(3,3,"imxtools.addressbase.list.extension.offer.productlines")," (",E.length,"): "),i.xp6(3),i.Oqu(i.lcZ(6,5,E))}}function Td(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5),i._UZ(4,"span",6),i.qZA(),i.TgZ(5,"div",7)(6,"p"),i._uU(7),i.ALo(8,"readI18n"),i.qZA(),i.TgZ(9,"p",8),i._uU(10,"ID: "),i.TgZ(11,"span",9),i._uU(12),i.qZA(),i._uU(13," | Mandant: "),i.TgZ(14,"span",9),i._uU(15),i.qZA()()(),i.TgZ(16,"div",10),i._UZ(17,"imx-language-flag",11),i.qZA(),i.TgZ(18,"div",12)(19,"p",13),i._uU(20),i.ALo(21,"translate"),i.qZA(),i.TgZ(22,"p"),i._uU(23),i.ALo(24,"date"),i.ALo(25,"convertTimestamps"),i.qZA()(),i.TgZ(26,"div",14)(27,"p",13),i._uU(28),i.ALo(29,"translate"),i.qZA(),i.TgZ(30,"p"),i._uU(31),i.ALo(32,"date"),i.ALo(33,"convertTimestamps"),i.qZA()(),i.TgZ(34,"div",15),i._UZ(35,"imx-entity-state",16),i.qZA()(),i.TgZ(36,"div",4)(37,"div",17),i.YNc(38,Pm,7,7,"ng-container",18),i.ALo(39,"productlineFilter"),i.qZA()(),i.TgZ(40,"div",19)(41,"imx-dropup-button")(42,"imx-action-menu")(43,"imx-action-menu-item",20),i.NdJ("click",function(){const Ln=i.CHM(E).$implicit,to=i.oxw();return i.KtG(to.contextNavigationService.navigateToCoreEntityContextual(["/offers","edit",Ln.id]))}),i._uU(44,"imxplatform.common-entity.list.edit"),i.qZA()()()()()()}if(2&te){const E=Pn.$implicit;i.xp6(7),i.Oqu(i.lcZ(8,12,E.title)),i.xp6(5),i.Oqu(E.id),i.xp6(3),i.Oqu(E.client.name),i.xp6(2),i.Q6J("languages",E.languages)("inline",!0),i.xp6(3),i.hij("",i.lcZ(21,14,"imxtools.addressbase.list.extension.offer.created"),":"),i.xp6(3),i.Oqu(i.xi3(24,16,i.lcZ(25,19,E.creationTime),"dd.MM.yyyy - HH:mm")),i.xp6(5),i.hij("",i.lcZ(29,21,"imxtools.addressbase.list.extension.offer.lastChangeTime"),":"),i.xp6(3),i.Oqu(i.xi3(32,23,i.lcZ(33,26,E.lastChangeTime),"dd.MM.yyyy - HH:mm")),i.xp6(4),i.Q6J("key",E.entityState.key),i.xp6(3),i.Q6J("ngIf",i.lcZ(39,28,null==E?null:E.metainfos)),i.xp6(5),i.Q6J("icon","icon-pencil")}}let Mm=(()=>{class te{constructor(E){this.toolsDataAccess=E,this.contextNavigationService=(0,i.f3M)(l.ContextNavigationService)}ngOnInit(){this.loadedOffers$=this.toolsDataAccess.getOffers({id:this.offers.map(E=>E.id).join(",")}).pipe((0,O.U)(E=>E.items))}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(tt.N))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-offer-extension-content"]],hostAttrs:[1,"imx-offer-extension-content"],inputs:{offers:"offers"},decls:3,vars:3,consts:[[1,"list__extension__content"],["class","row-wrapper",4,"ngFor","ngForOf"],[1,"row-wrapper"],[1,"list__extension__row","offers"],[1,"list__content"],[1,"list__column"],[1,"icon-tag"],[1,"list__column","col1"],[1,"txt-grey","txt-sm"],[1,"txt-default"],[1,"list__column","col2"],[3,"languages","inline"],[1,"list__column","col3"],[1,"txt-sm"],[1,"list__column","col4"],[1,"list__column","col5"],[3,"key"],[1,"list__column","col6"],[4,"ngIf"],[1,"row-action"],[3,"icon","click"],[1,"txt-default","txt-sm"]],template:function(_e,Me){1&_e&&(i.TgZ(0,"div",0),i.YNc(1,Td,45,30,"div",1),i.ALo(2,"async"),i.qZA()),2&_e&&(i.xp6(),i.Q6J("ngForOf",i.lcZ(2,1,Me.loadedOffers$)))},dependencies:[Un.n,rl.l,x.sg,x.O5,Fn.p,yt.z,Bt.t,lt.j,Ml.E,rc.D,Kr.w,x.Ov,x.uU,m.X$],styles:[".list__extension__content[_ngcontent-%COMP%]   .row-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-bottom:5px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row[_ngcontent-%COMP%]{background-color:#fff;padding:10px 40px 10px 10px;margin:0 20px 10px;width:100%;display:flex;flex-direction:column;position:relative}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row[_ngcontent-%COMP%]   .list__content[_ngcontent-%COMP%]{margin-bottom:0}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row[_ngcontent-%COMP%]   .row-action[_ngcontent-%COMP%]{position:absolute;right:0;top:0;height:100%;width:48px;display:flex;justify-content:center;align-items:center;cursor:pointer;color:#0a2663;border-left:1px solid #eefafa}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row[_ngcontent-%COMP%]   .list__column[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{margin-right:5px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.dateCol[_ngcontent-%COMP%]{flex-basis:200px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.activityCol[_ngcontent-%COMP%]{flex-basis:100px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.priorityCol[_ngcontent-%COMP%]{flex-basis:220px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.langCol[_ngcontent-%COMP%]{flex-basis:70px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.dcCol[_ngcontent-%COMP%]{flex-basis:240px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.plCol[_ngcontent-%COMP%], .list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.stateCol[_ngcontent-%COMP%]{flex-basis:250px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.appearances[_ngcontent-%COMP%]   .list__column.colAction[_ngcontent-%COMP%]{flex-basis:250px;text-align:right}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col1[_ngcontent-%COMP%]{flex-basis:530px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col2[_ngcontent-%COMP%]{flex-basis:70px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col3[_ngcontent-%COMP%]{flex-basis:240px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col4[_ngcontent-%COMP%]{flex-basis:250px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col5[_ngcontent-%COMP%]{flex-basis:250px;text-align:right}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.offers[_ngcontent-%COMP%]   .list__column.col6[_ngcontent-%COMP%]{padding-left:22px;margin-top:8px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.ibe-assignments[_ngcontent-%COMP%]   .list__column.col1[_ngcontent-%COMP%]{flex-basis:150px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.ibe-assignments[_ngcontent-%COMP%]   .list__column.col2[_ngcontent-%COMP%]{flex-basis:200px}.list__extension__content[_ngcontent-%COMP%]   .list__extension__row.ibe-assignments[_ngcontent-%COMP%]   .list__column.col3[_ngcontent-%COMP%], .list__extension__content[_ngcontent-%COMP%]   .list__extension__row.ibe-assignments[_ngcontent-%COMP%]   .list__column.col4[_ngcontent-%COMP%]{flex-basis:150px}.color-refused[_ngcontent-%COMP%]{color:#96172e}.color-pending[_ngcontent-%COMP%]{color:#f0ab00}.color-confirmed[_ngcontent-%COMP%]{color:#739600}.appearance-state[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{vertical-align:middle}.appearance-state[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{margin-left:8px}.group_header[_ngcontent-%COMP%]{padding:0 65px 5px 10px;margin:0 20px 10px}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.list__content[_ngcontent-%COMP%]{display:-webkit-flex;display:flex;flex-direction:row;margin-bottom:5px;width:100%}.list__content-wrapper[_ngcontent-%COMP%]{display:flex}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.icon-column[_ngcontent-%COMP%]{font-size:20px;color:#000;line-height:22px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.image-column[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100px;height:100px;object-fit:cover}@media (max-width: 900px){.list__content-wrapper[_ngcontent-%COMP%]   .list__column.image-column[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:50px;height:50px}}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.image-column.placeholder[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:unset}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col3[_ngcontent-%COMP%]{flex-basis:450px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col4[_ngcontent-%COMP%]{width:20px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col5[_ngcontent-%COMP%]{flex-basis:400px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col6[_ngcontent-%COMP%]{flex-basis:200px}.list__content-wrapper[_ngcontent-%COMP%]   .list__column.col7[_ngcontent-%COMP%]{margin-left:auto}.list__content[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.list__content-rows[_ngcontent-%COMP%]{width:100%}.list__column[_ngcontent-%COMP%]{margin-right:10px;word-break:break-word}@media (max-width: 900px){.list__column[_ngcontent-%COMP%]{margin-right:5px}}.list__column[_ngcontent-%COMP%]   .margin-top[_ngcontent-%COMP%]{margin-top:5px}.list__column[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style-type:square;list-style-position:inside}.list__column[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px}"],data:{animation:l.LIST_EXTENSION_ANIMATION},changeDetection:0})}return te})();function Gm(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-tools-appearance-extension-content",5),i.NdJ("entityUpdated",function(Me){i.CHM(E);const Ln=i.oxw(2);return i.KtG(Ln.addressbaseUpdated.emit(Me))}),i.qZA()}if(2&te){const E=i.oxw(2);i.Q6J("entity",E.item)("entityType","Addressbase")("filter",E.filter)}}function Ou(te,Pn){if(1&te&&(i.TgZ(0,"imx-list-extension-accordion-item",3),i.YNc(1,Gm,1,3,"ng-template",4),i.qZA()),2&te){const E=i.oxw();i.Q6J("count",(null==E.item.appearances?null:E.item.appearances.length)+(null==E.item.pendingAppearances?null:E.item.pendingAppearances.length)+(null==E.item.refusedAppearances?null:E.item.refusedAppearances.length))}}function Lc(te,Pn){if(1&te&&i._UZ(0,"imx-offer-extension-content",7),2&te){const E=i.oxw(2);i.Q6J("offers",E.item.offers)}}function Hc(te,Pn){if(1&te&&(i.TgZ(0,"imx-list-extension-accordion-item",6),i.YNc(1,Lc,1,1,"ng-template",4),i.qZA()),2&te){const E=i.oxw();i.Q6J("count",null==E.item.offers?null:E.item.offers.length)}}function Hd(te,Pn){if(1&te&&i._UZ(0,"imx-ibe-assignment-extension-content",9),2&te){const E=i.oxw(2);i.Q6J("addressbase",E.item)}}function Pu(te,Pn){if(1&te&&(i.TgZ(0,"imx-list-extension-accordion-item",8),i.YNc(1,Hd,1,1,"ng-template",4),i.qZA()),2&te){const E=i.oxw();i.Q6J("count",E.ibeAssignmentCount)}}let tu=(()=>{class te{constructor(){this.addressbaseUpdated=new i.vpe}static#e=this.\u0275fac=function(_e){return new(_e||te)};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-addressbase-list-extension"]],hostAttrs:[1,"imx-addressbase-list-extension"],inputs:{item:"item",filter:"filter",ibeAssignmentCount:"ibeAssignmentCount"},outputs:{addressbaseUpdated:"addressbaseUpdated"},decls:4,vars:3,consts:[["icon","icon-calendar-full","header","imxplatform.common-entity.list.extension.appearance.header",3,"count",4,"ngIf"],["icon","icon-tag","header","imxtools.addressbase.list.extension.offer.header",3,"count",4,"ngIf"],["icon","icon-link","header","entity.IbeAddressbaseImportAssignment.entityName",3,"count",4,"ngIf"],["icon","icon-calendar-full","header","imxplatform.common-entity.list.extension.appearance.header",3,"count"],["imxLazyListExtensionAccordionItem",""],[3,"entity","entityType","filter","entityUpdated"],["icon","icon-tag","header","imxtools.addressbase.list.extension.offer.header",3,"count"],[3,"offers"],["icon","icon-link","header","entity.IbeAddressbaseImportAssignment.entityName",3,"count"],[3,"addressbase"]],template:function(_e,Me){1&_e&&(i.TgZ(0,"imx-list-extension-accordion"),i.YNc(1,Ou,2,1,"imx-list-extension-accordion-item",0)(2,Hc,2,1,"imx-list-extension-accordion-item",1)(3,Pu,2,1,"imx-list-extension-accordion-item",2),i.qZA()),2&_e&&(i.xp6(),i.Q6J("ngIf",(null==Me.item.appearances?null:Me.item.appearances.length)+(null==Me.item.pendingAppearances?null:Me.item.pendingAppearances.length)+(null==Me.item.refusedAppearances?null:Me.item.refusedAppearances.length)>0),i.xp6(),i.Q6J("ngIf",(null==Me.item.offers?null:Me.item.offers.length)>0),i.xp6(),i.Q6J("ngIf",Me.ibeAssignmentCount>0))},dependencies:[Pd.F,kt.j,Jt.K,x.O5,Dm,Md,Mm],encapsulation:2,data:{animation:l.LIST_EXTENSION_ANIMATION},changeDetection:0})}return te})();function Jm(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-statistics-button",22),i.NdJ("export",function(){i.CHM(E);const Me=i.oxw();return i.KtG(Me.exportStatistics())}),i.qZA()}}function Mu(te,Pn){if(1&te&&i._UZ(0,"imx-create-new-entity-button",23),2&te){const E=i.oxw();i.Q6J("entityRoute",E.entityRoute)("entityResourceKeyPrefix",E.entityResourceKeyPrefix)}}function Im(te,Pn){1&te&&(i.TgZ(0,"imx-list-no-results"),i._uU(1,"imxtools.addressbase.list.no-records"),i.qZA())}function Mc(te,Pn){1&te&&i._UZ(0,"mat-progress-bar",24)}function gc(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-addressbase-list-extension",35),i.NdJ("addressbaseUpdated",function(Me){i.CHM(E);const Ln=i.oxw(4);return i.KtG(Ln.swapAppearancesInResultItem(Me))}),i.qZA()}if(2&te){const E=i.oxw().$implicit,_e=i.oxw(3);i.Q6J("item",E)("filter",_e.filter)("ibeAssignmentCount",_e.getIbeAssignmentCount(E.id))}}const $d=te=>({selected:te});function Rd(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"mat-list-item",26)(1,"div",27)(2,"imx-list-row-selection",28),i.NdJ("selectionChanged",function(Me){i.CHM(E);const Ln=i.oxw(3);return i.KtG(Ln.onSelectionChanged(Me))}),i.qZA(),i.TgZ(3,"div",29)(4,"imx-list-row",30),i.NdJ("slideInEvent",function(Me){i.CHM(E);const Ln=i.oxw(3);return i.KtG(Ln.dispatchSlideEvent(Me))}),i.qZA()(),i.TgZ(5,"div",31)(6,"imx-addressbase-row-action-menu",32),i.NdJ("executeAction",function(Me){const to=i.CHM(E).$implicit,ha=i.oxw(3);return i.KtG(ha.executeRowAction(Me,to))})("executeHistoryAction",function(){const Ln=i.CHM(E).$implicit,to=i.oxw(3);return i.KtG(to.executeHistoryAction(to.getEntityName(),Ln.id))})("executeReferencesAction",function(){const Ln=i.CHM(E).$implicit,to=i.oxw(3);return i.KtG(to.executeReferencesAction(to.getEntityName(),Ln.id))}),i.ALo(7,"async"),i.qZA(),i._UZ(8,"imx-entity-state",33),i.qZA()(),i.YNc(9,gc,1,3,"imx-addressbase-list-extension",34),i.qZA()}if(2&te){const E=Pn.$implicit,_e=i.oxw(3),Me=i.MAs(29),Ln=i.MAs(31),to=i.MAs(33);i.Q6J("ngClass","list__item"),i.uIk("data-scroll-id",E.id),i.xp6(),i.Q6J("ngClass",i.VKq(21,$d,_e.isItemSelected(E.id))),i.xp6(),i.Q6J("id",E.id)("checked",_e.isItemSelected(E.id))("blockedByAction",_e.isBlockedByAction(E.id)),i.xp6(2),i.Q6J("dataObject",E)("memoCount",_e.getMemoCount(E.id))("ibeAssignmentCount",_e.getIbeAssignmentCount(E.id))("isActiveSlideIn",_e.isActiveSlideIn)("leftSlotTemplate",Me)("rightSlotTemplate",Ln)("bottomSlotTemplate",to),i.xp6(2),i.Q6J("entity",E)("isBlockedByAction",i.lcZ(7,19,_e.isBlockedByAction(E.id))),i.xp6(2),i.Q6J("key",E.entityState.key)("appearances",null==E?null:E.appearances)("inline",!1),i.xp6(),i.Q6J("ngIf",(null==E||null==E.appearances?null:E.appearances.length)+(null==E||null==E.pendingAppearances?null:E.pendingAppearances.length)+(null==E||null==E.refusedAppearances?null:E.refusedAppearances.length)>0||(null==E||null==E.offers?null:E.offers.length)>0)}}function nu(te,Pn){if(1&te&&(i.TgZ(0,"mat-list"),i.YNc(1,Rd,10,23,"mat-list-item",25),i.qZA()),2&te){const E=i.oxw().ngIf,_e=i.oxw();i.xp6(),i.Q6J("ngForOf",E.items)("ngForTrackBy",_e.trackByItemId)}}function Gc(te,Pn){if(1&te&&(i.TgZ(0,"div"),i.YNc(1,nu,2,2,"mat-list",9),i.qZA()),2&te){const E=Pn.ngIf;i.oxw();const _e=i.MAs(10);i.xp6(),i.Q6J("ngIf",E.items.length>0)("ngIfElse",_e)}}function sc(te,Pn){if(1&te&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"translate"),i.TgZ(3,"span",36),i._uU(4),i.qZA()(),i._UZ(5,"span",37)),2&te){const E=i.oxw();i.xp6(),i.hij("",i.lcZ(2,2,"imxplatform.common-entity.list.selected-items")," "),i.xp6(3),i.hij("(",null==E.selectedIds?null:E.selectedIds.size,")")}}function pd(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-action-menu-item",18),i.NdJ("actionClicked",function(){i.CHM(E);const Me=i.oxw();return i.KtG(Me.addMemoAttributesOnSelectedIds())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&te&&(i.Q6J("icon","icon-bubble"),i.xp6(),i.hij(" ",i.lcZ(2,2,"imxplatform.entity-list.object-list.new-memo")," "))}function rm(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-action-menu-item-create-contact-list",38),i.NdJ("actionClicked",function(){i.CHM(E);const Me=i.oxw();return i.KtG(Me.proposeSelectedIdsAsContactList())}),i.qZA()}}function Gd(te,Pn){if(1&te&&(i.TgZ(0,"span",44),i._uU(1),i.ALo(2,"translate"),i.TgZ(3,"span",45),i._uU(4),i.qZA()()),2&te){const E=i.oxw().dataObject;i.xp6(),i.hij("",i.lcZ(2,2,"entity.Addressbase.masterAddressPoiId"),": "),i.xp6(3),i.Oqu(E.masterAddressPoiId)}}const vm=te=>["edit",te];function Us(te,Pn){if(1&te&&(i.TgZ(0,"a",39),i._uU(1),i.ALo(2,"readI18n"),i.qZA(),i._UZ(3,"imx-row-id-view",40),i.YNc(4,Gd,5,4,"span",41),i._UZ(5,"imx-row-client-view",42),i.TgZ(6,"div",43),i._UZ(7,"imx-row-address-view",40),i.qZA()),2&te){const E=Pn.dataObject,_e=i.oxw();i.Q6J("routerLink",i.VKq(9,vm,E.id)),i.xp6(),i.hij(" ",i.lcZ(2,7,E.title)," "),i.xp6(2),i.Q6J("dataObject",E),i.xp6(),i.Q6J("ngIf",E.masterAddressPoiId),i.xp6(),i.Q6J("dataObject",E)("outsideCurrentClientHierachy$",_e.isOutsideCurrentClientHierachy(null==E||null==E.client?null:E.client.id)),i.xp6(2),i.Q6J("dataObject",E)}}function Tu(te,Pn){1&te&&i._UZ(0,"imx-addressbase-right-slot",40),2&te&&i.Q6J("dataObject",Pn.dataObject)}function Hu(te,Pn){1&te&&i._UZ(0,"imx-addressbase-bottom-slot",40),2&te&&i.Q6J("dataObject",Pn.dataObject)}function Gu(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-statistics-button",22),i.NdJ("export",function(){i.CHM(E);const Me=i.oxw();return i.KtG(Me.exportStatistics())}),i.qZA()}}function gp(te,Pn){if(1&te&&i._UZ(0,"imx-create-new-entity-button",23),2&te){const E=i.oxw();i.Q6J("entityRoute",E.entityRoute)("entityResourceKeyPrefix",E.entityResourceKeyPrefix)}}function Ep(te,Pn){1&te&&(i.TgZ(0,"imx-list-no-results"),i._uU(1,"imxtools.addressbase.list.no-records"),i.qZA())}function Ju(te,Pn){1&te&&i._UZ(0,"mat-progress-bar",24)}function Fe(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-addressbase-list-extension",35),i.NdJ("addressbaseUpdated",function(Me){i.CHM(E);const Ln=i.oxw(4);return i.KtG(Ln.swapAppearancesInResultItem(Me))}),i.qZA()}if(2&te){const E=i.oxw().$implicit,_e=i.oxw(3);i.Q6J("item",E)("filter",_e.filter)("ibeAssignmentCount",_e.getIbeAssignmentCount(E.id))}}function Pe(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"mat-list-item",26)(1,"div",27)(2,"imx-list-row-selection",28),i.NdJ("selectionChanged",function(Me){i.CHM(E);const Ln=i.oxw(3);return i.KtG(Ln.onSelectionChanged(Me))}),i.qZA(),i.TgZ(3,"div",29)(4,"imx-list-row",30),i.NdJ("slideInEvent",function(Me){i.CHM(E);const Ln=i.oxw(3);return i.KtG(Ln.dispatchSlideEvent(Me))}),i.qZA()(),i.TgZ(5,"div",31)(6,"imx-addressbase-row-action-menu",32),i.NdJ("executeAction",function(Me){const to=i.CHM(E).$implicit,ha=i.oxw(3);return i.KtG(ha.executeRowAction(Me,to))})("executeHistoryAction",function(){const Ln=i.CHM(E).$implicit,to=i.oxw(3);return i.KtG(to.executeHistoryAction(to.getEntityName(),Ln.id))})("executeReferencesAction",function(){const Ln=i.CHM(E).$implicit,to=i.oxw(3);return i.KtG(to.executeReferencesAction(to.getEntityName(),Ln.id))}),i.ALo(7,"async"),i.qZA(),i._UZ(8,"imx-entity-state",33),i.qZA()(),i.YNc(9,Fe,1,3,"imx-addressbase-list-extension",34),i.qZA()}if(2&te){const E=Pn.$implicit,_e=i.oxw(3),Me=i.MAs(29),Ln=i.MAs(31),to=i.MAs(33);i.Q6J("ngClass","list__item"),i.uIk("data-scroll-id",E.id),i.xp6(),i.Q6J("ngClass",i.VKq(21,$d,_e.isItemSelected(E.id))),i.xp6(),i.Q6J("id",E.id)("checked",_e.isItemSelected(E.id))("blockedByAction",_e.isBlockedByAction(E.id)),i.xp6(2),i.Q6J("dataObject",E)("memoCount",_e.getMemoCount(E.id))("ibeAssignmentCount",_e.getIbeAssignmentCount(E.id))("isActiveSlideIn",_e.isActiveSlideIn)("leftSlotTemplate",Me)("rightSlotTemplate",Ln)("bottomSlotTemplate",to),i.xp6(2),i.Q6J("entity",E)("isBlockedByAction",i.lcZ(7,19,_e.isBlockedByAction(E.id))),i.xp6(2),i.Q6J("key",E.entityState.key)("appearances",null==E?null:E.appearances)("inline",!1),i.xp6(),i.Q6J("ngIf",(null==E||null==E.appearances?null:E.appearances.length)+(null==E||null==E.pendingAppearances?null:E.pendingAppearances.length)+(null==E||null==E.refusedAppearances?null:E.refusedAppearances.length)>0||(null==E||null==E.offers?null:E.offers.length)>0)}}function St(te,Pn){if(1&te&&(i.TgZ(0,"mat-list"),i.YNc(1,Pe,10,23,"mat-list-item",25),i.qZA()),2&te){const E=i.oxw().ngIf,_e=i.oxw();i.xp6(),i.Q6J("ngForOf",E.items)("ngForTrackBy",_e.trackByItemId)}}function un(te,Pn){if(1&te&&(i.TgZ(0,"div"),i.YNc(1,St,2,2,"mat-list",9),i.qZA()),2&te){const E=Pn.ngIf;i.oxw();const _e=i.MAs(10);i.xp6(),i.Q6J("ngIf",E.items.length>0)("ngIfElse",_e)}}function vi(te,Pn){if(1&te&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"translate"),i.TgZ(3,"span",36),i._uU(4),i.qZA()(),i._UZ(5,"span",37)),2&te){const E=i.oxw();i.xp6(),i.hij("",i.lcZ(2,2,"imxplatform.common-entity.list.selected-items")," "),i.xp6(3),i.hij("(",null==E.selectedIds?null:E.selectedIds.size,")")}}function qe(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-action-menu-item",18),i.NdJ("actionClicked",function(){i.CHM(E);const Me=i.oxw();return i.KtG(Me.addMemoAttributesOnSelectedIds())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&te&&(i.Q6J("icon","icon-bubble"),i.xp6(),i.hij(" ",i.lcZ(2,2,"imxplatform.entity-list.object-list.new-memo")," "))}function Xi(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-action-menu-item-create-contact-list",38),i.NdJ("actionClicked",function(){i.CHM(E);const Me=i.oxw();return i.KtG(Me.proposeSelectedIdsAsContactList())}),i.qZA()}}function xt(te,Pn){if(1&te&&(i.TgZ(0,"span",44),i._uU(1),i.ALo(2,"translate"),i.TgZ(3,"span",45),i._uU(4),i.qZA()()),2&te){const E=i.oxw().dataObject;i.xp6(),i.hij("",i.lcZ(2,2,"entity.Addressbase.masterAddressPoiId"),": "),i.xp6(3),i.Oqu(E.masterAddressPoiId)}}function jt(te,Pn){if(1&te&&(i.TgZ(0,"a",39),i._uU(1),i.ALo(2,"readI18n"),i.qZA(),i._UZ(3,"imx-row-id-view",40),i.YNc(4,xt,5,4,"span",41),i._UZ(5,"imx-row-client-view",42),i.TgZ(6,"div",43),i._UZ(7,"imx-row-address-view",40),i.qZA()),2&te){const E=Pn.dataObject,_e=i.oxw();i.Q6J("routerLink",i.VKq(9,vm,E.id)),i.xp6(),i.hij(" ",i.lcZ(2,7,E.title)," "),i.xp6(2),i.Q6J("dataObject",E),i.xp6(),i.Q6J("ngIf",E.masterAddressPoiId),i.xp6(),i.Q6J("dataObject",E)("outsideCurrentClientHierachy$",_e.isOutsideCurrentClientHierachy(null==E||null==E.client?null:E.client.id)),i.xp6(2),i.Q6J("dataObject",E)}}function jn(te,Pn){1&te&&i._UZ(0,"imx-addressbase-right-slot",40),2&te&&i.Q6J("dataObject",Pn.dataObject)}function ro(te,Pn){1&te&&i._UZ(0,"imx-addressbase-bottom-slot",40),2&te&&i.Q6J("dataObject",Pn.dataObject)}const Bo="[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.list__row[_ngcontent-%COMP%]{background:#fff;border:.5px solid #ced4e0;box-sizing:border-box;width:100%;padding:20px;z-index:1}@media (max-width: 900px){.list__row[_ngcontent-%COMP%]{padding:10px}}.list__row-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;box-sizing:border-box;position:relative;height:inherit}.list__row-wrapper.selected[_ngcontent-%COMP%]   .list__row[_ngcontent-%COMP%]{background-color:#eefafa}.list__row-action[_ngcontent-%COMP%]{min-width:45px;min-height:100%;display:flex;flex-direction:column;padding-left:5px;text-align:center;position:relative;z-index:1}@media (max-width: 900px){.list__row-action[_ngcontent-%COMP%]{min-width:30px;padding-left:2px}}.list__row-checkbox[_ngcontent-%COMP%]{margin:auto 5px auto 0}.address-block[_ngcontent-%COMP%]{margin-top:3px}";let jr=(()=>{class te extends l.AbstractCoreDataObjectSearchPage{constructor(E,_e,Me,Ln,to,ha,zs,cc,Gl,id,zd,Fm,Lm,Iu,Su,K_,jg,Dg){super(E,_e,Me,Ln,to,ha,cc,Gl,id,Lm,zd,Fm,Iu,Su,zs,{},!0),this.ibeAssignmentService=K_,this.dataAccessService=jg,this.extensionOrderFieldsProviderService=Dg,this.imxToolsPermissions=ji.i,this.imxPermissions=l.ImxPermissions,this.imxToolsSlots=Tn.G5,this.availableOrderFields=[{index:1,field:"TITLE",i18n:"entity.Addressbase.title",type:l.OrderType.alphanumeric},{index:2,field:"ID",i18n:"entity.Addressbase.id",type:l.OrderType.numeric},{index:3,field:"CITY",i18n:"entity.Addressbase.location",type:l.OrderType.alphanumeric},{index:4,field:"CREATION_TIME",i18n:"imxplatform.common-entity.list.sort.creationTime",type:l.OrderType.numeric},{index:5,field:"LAST_CHANGE",i18n:"imxplatform.common-entity.list.sort.lastChange",type:l.OrderType.numeric},{index:6,field:"LAST_CHANGE_FROM",i18n:"imxplatform.common-entity.list.sort.lastChangeFrom",type:l.OrderType.alphanumeric}],this.entityResourceKeyPrefix="imxtools.addressbase",this.entityRoute="/addressbases",this.enableCreateContactList=!0,this.entityTypeIcon="icon-stem"}ngOnInit(){super.ngOnInit();const E=this.extensionOrderFieldsProviderService.getExtensionOrderFieldsForType("addressbase");E&&E.length>0&&this.availableOrderFields.push(...this.extensionOrderFieldsProviderService.getExtensionOrderFieldsForType("addressbase"))}getEntityName(){return"Addressbase"}showMemos(){return!0}getFilterParams(E){return this.dataAccessService.convertAddressbaseClientParamsToRequestParams(E)}getSetStateAction(){return this.actionProvider.findActionForKey("addressbase-action-set_state")}afterContentLoaded(){super.afterContentLoaded(),this.securityManager.hasPermission(l.ImxPermissions.F_IBE_ASSIGNMENT_ALL)&&this.currentResult.items&&this.ibeAssignmentService.loadIbeAssignmentCountsForEntities(this.currentResult.items.map(E=>E.id))}getIbeAssignmentCount(E){return this.ibeAssignmentService?this.ibeAssignmentService.getIbeAssignmentCount(E):0}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(k.M),i.Y36(n.F0),i.Y36(n.gz),i.Y36(l.UserMessageService),i.Y36(l.ListHistoryService),i.Y36(B.uw),i.Y36(l.ActionProviderService),i.Y36(se.ru),i.Y36(l.ImxPlatformDataAccessService),i.Y36(l.SearchPageDefaultsService),i.Y36(l.PlatformTrackingService),i.Y36(l.ObjectListCreationService),i.Y36(s.Ze),i.Y36(l.MemoProviderService),i.Y36(s.Xh),i.Y36(Bc),i.Y36(tt.N),i.Y36(l.ExtensionOrderFieldsProviderService))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["ng-component"]],features:[i.qOj],decls:34,vars:27,consts:[[1,"search-page"],[3,"formHandler","record","orderFields","orderField","orderDirection","enableCreateContactListOption","orderChanged","applyFilter","resetFilter"],[3,"totalNumber","entityResourceKeyPrefix","isCompactPageHeader","reload"],["list-header-button-row",""],[3,"export",4,"hasAnyPermission"],[3,"entityRoute","entityResourceKeyPrefix",4,"hasAnyPermission"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],[4,"ngIf","ngIfElse"],[3,"paging","selection","pageChanged","selectAll"],["position","above","halign","start"],["imx-dropup-trigger",""],[3,"actions","executeAction"],["search-list-action-menu-middle",""],[3,"icon","actionClicked",4,"hasAnyPermission"],["icon","icon-star--add",3,"actionClicked"],[3,"actionClicked",4,"ngIf"],[3,"icon","actionClicked"],["addressbaseLeftSlotTemplate",""],["addressbaseRightSlotTemplate",""],["addressbaseBottomSlotTemplate",""],[3,"export"],[3,"entityRoute","entityResourceKeyPrefix"],["mode","indeterminate"],["imxGenericSelector","",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],["imxGenericSelector","",3,"ngClass"],[1,"list__row-wrapper",3,"ngClass"],[3,"id","checked","blockedByAction","selectionChanged"],[1,"list__row"],[3,"dataObject","memoCount","ibeAssignmentCount","isActiveSlideIn","leftSlotTemplate","rightSlotTemplate","bottomSlotTemplate","slideInEvent"],[1,"list__row-action"],[3,"entity","isBlockedByAction","executeAction","executeHistoryAction","executeReferencesAction"],[3,"key","appearances","inline"],[3,"item","filter","ibeAssignmentCount","addressbaseUpdated",4,"ngIf"],[3,"item","filter","ibeAssignmentCount","addressbaseUpdated"],[1,"selected-size"],[1,"icon-chevron-down"],[3,"actionClicked"],[1,"txt-bg","title_shortened",3,"routerLink"],[3,"dataObject"],["class","txt-grey",4,"ngIf"],[3,"dataObject","outsideCurrentClientHierachy$"],[1,"address-block"],[1,"txt-grey"],[1,"txt-default"]],template:function(_e,Me){if(1&_e&&(i.TgZ(0,"div",0)(1,"imx-addressbase-filter",1),i.NdJ("orderChanged",function(to){return Me.sort(to)})("applyFilter",function(to){return Me.search(to)})("resetFilter",function(){return Me.reset()}),i.qZA(),i.TgZ(2,"imx-list-header",2),i.NdJ("reload",function(){return Me.reloadComplete()}),i.ynx(3,3),i.YNc(4,Jm,1,0,"imx-statistics-button",4)(5,Mu,1,2,"imx-create-new-entity-button",5),i.BQk(),i.qZA(),i.TgZ(6,"imx-grid")(7,"imx-grid-element",6)(8,"imx-generic-slide-in-page"),i.YNc(9,Im,2,0,"ng-template",null,7,i.W1O)(11,Mc,1,0,"ng-template",null,8,i.W1O)(13,Gc,2,2,"div",9),i.ALo(14,"async"),i.qZA()()(),i.TgZ(15,"imx-list-footer",10),i.NdJ("pageChanged",function(to){return Me.onPageChanged(to)})("selectAll",function(to){return Me.onSelectAll(to)}),i.TgZ(16,"imx-dropup-button",11),i.YNc(17,sc,6,4,"ng-template",12),i.TgZ(18,"imx-search-list-action-menu",13),i.NdJ("executeAction",function(to){return Me.executeBatchAction(to)}),i.ynx(19,14),i.YNc(20,pd,3,4,"imx-action-menu-item",15),i.TgZ(21,"imx-action-menu-item",16),i.NdJ("actionClicked",function(){return Me.addToObjectList()}),i._uU(22),i.ALo(23,"translate"),i.qZA(),i.YNc(24,rm,1,0,"imx-action-menu-item-create-contact-list",17),i.TgZ(25,"imx-action-menu-item",18),i.NdJ("actionClicked",function(){return Me.exportStatisticsOnSelectedIds()}),i._uU(26),i.ALo(27,"translate"),i.qZA(),i.BQk(),i.qZA()()()(),i.YNc(28,Us,8,11,"ng-template",null,19,i.W1O)(30,Tu,1,1,"ng-template",null,20,i.W1O)(32,Hu,1,1,"ng-template",null,21,i.W1O)),2&_e){const Ln=i.MAs(12);i.xp6(),i.Q6J("formHandler",Me.filterFormHandler)("record",Me.filter)("orderFields",Me.availableOrderFields)("orderField",Me.orderField)("orderDirection",Me.orderDirection)("enableCreateContactListOption",Me.enableCreateContactList),i.xp6(),i.Q6J("totalNumber",null==Me.currentResult?null:Me.currentResult.totalNumberOfResults)("entityResourceKeyPrefix",Me.entityResourceKeyPrefix)("isCompactPageHeader",!1),i.xp6(2),i.Q6J("hasAnyPermission",Me.imxToolsPermissions.F_STAT_ADDRESSBASE_EXPORT.name),i.xp6(),i.Q6J("hasAnyPermission",Me.imxToolsPermissions.F_ADDRESSBASE_CREATE.name),i.xp6(8),i.Q6J("ngIf",i.lcZ(14,21,Me.results))("ngIfElse",Ln),i.xp6(2),i.Q6J("paging",Me.pagingModel)("selection",Me.selectionModel),i.xp6(3),i.Q6J("actions",null==Me.actionProvider?null:Me.actionProvider.getBatchActionsForType(Me.getEntityName())),i.xp6(2),i.Q6J("hasAnyPermission",Me.memoCreatePermission),i.xp6(2),i.hij(" ",i.lcZ(23,23,"imxplatform.entity-list.object-list.action-title")," "),i.xp6(2),i.Q6J("ngIf",Me.enableCreateContactList),i.xp6(),i.Q6J("icon","icon-pie-chart"),i.xp6(),i.hij(" ",i.lcZ(27,25,"imxplatform.common.export")," ")}},dependencies:[Zc.$,Cd.r,Un.n,Sn.Ee,de.N,Ae._,Ct.A,Ac.Y,Bd.V,Xl.w,xm._,uc.k,Rm.E,gi.R,ee.F,om.l,x.mk,x.sg,x.O5,ya.i$,ya.Tg,Pl.pW,n.rH,yt.z,Bt.t,pm.F,No.M,Ar.V,Ld.J,Oc.V,_m,Xr,tu,jc.i,lt.j,x.Ov,m.X$],styles:[Bo]})}return te})(),Hr=(()=>{class te extends jr{constructor(){super(...arguments),this.entityResourceKeyPrefix="imxtools.tour",this.entityRoute="/tours",this.enableCreateContactList=!1,this.entityTypeIcon="icon-map_tour"}beforeLoadRecords(E){E.productlineIds=E.productlineIds?[E.productlineIds,or.$C].join(","):or.$C+"",E.productlineIds_fixed=E.productlineIds_fixed?[E.productlineIds_fixed,or.$C].join(","):or.$C+"",E.productlineSearchOption=l.ProductlineSearchOption.ALLPL,this.filter=Object.assign({},E)}static#e=this.\u0275fac=(()=>{let E;return function(Me){return(E||(E=i.n5z(te)))(Me||te)}})();static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["ng-component"]],features:[i.qOj],decls:34,vars:27,consts:[[1,"search-page"],[3,"formHandler","record","orderFields","orderField","orderDirection","enableCreateContactListOption","orderChanged","applyFilter","resetFilter"],[3,"totalNumber","entityResourceKeyPrefix","isCompactPageHeader","reload"],["list-header-button-row",""],[3,"export",4,"hasAnyPermission"],[3,"entityRoute","entityResourceKeyPrefix",4,"hasAnyPermission"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],[4,"ngIf","ngIfElse"],[3,"paging","selection","pageChanged","selectAll"],["position","above","halign","start"],["imx-dropup-trigger",""],[3,"actions","executeAction"],["search-list-action-menu-middle",""],[3,"icon","actionClicked",4,"hasAnyPermission"],["icon","icon-star--add",3,"actionClicked"],[3,"actionClicked",4,"ngIf"],[3,"icon","actionClicked"],["addressbaseLeftSlotTemplate",""],["addressbaseRightSlotTemplate",""],["addressbaseBottomSlotTemplate",""],[3,"export"],[3,"entityRoute","entityResourceKeyPrefix"],["mode","indeterminate"],["imxGenericSelector","",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],["imxGenericSelector","",3,"ngClass"],[1,"list__row-wrapper",3,"ngClass"],[3,"id","checked","blockedByAction","selectionChanged"],[1,"list__row"],[3,"dataObject","memoCount","ibeAssignmentCount","isActiveSlideIn","leftSlotTemplate","rightSlotTemplate","bottomSlotTemplate","slideInEvent"],[1,"list__row-action"],[3,"entity","isBlockedByAction","executeAction","executeHistoryAction","executeReferencesAction"],[3,"key","appearances","inline"],[3,"item","filter","ibeAssignmentCount","addressbaseUpdated",4,"ngIf"],[3,"item","filter","ibeAssignmentCount","addressbaseUpdated"],[1,"selected-size"],[1,"icon-chevron-down"],[3,"actionClicked"],[1,"txt-bg","title_shortened",3,"routerLink"],[3,"dataObject"],["class","txt-grey",4,"ngIf"],[3,"dataObject","outsideCurrentClientHierachy$"],[1,"address-block"],[1,"txt-grey"],[1,"txt-default"]],template:function(_e,Me){if(1&_e&&(i.TgZ(0,"div",0)(1,"imx-addressbase-filter",1),i.NdJ("orderChanged",function(to){return Me.sort(to)})("applyFilter",function(to){return Me.search(to)})("resetFilter",function(){return Me.reset()}),i.qZA(),i.TgZ(2,"imx-list-header",2),i.NdJ("reload",function(){return Me.reloadComplete()}),i.ynx(3,3),i.YNc(4,Gu,1,0,"imx-statistics-button",4)(5,gp,1,2,"imx-create-new-entity-button",5),i.BQk(),i.qZA(),i.TgZ(6,"imx-grid")(7,"imx-grid-element",6)(8,"imx-generic-slide-in-page"),i.YNc(9,Ep,2,0,"ng-template",null,7,i.W1O)(11,Ju,1,0,"ng-template",null,8,i.W1O)(13,un,2,2,"div",9),i.ALo(14,"async"),i.qZA()()(),i.TgZ(15,"imx-list-footer",10),i.NdJ("pageChanged",function(to){return Me.onPageChanged(to)})("selectAll",function(to){return Me.onSelectAll(to)}),i.TgZ(16,"imx-dropup-button",11),i.YNc(17,vi,6,4,"ng-template",12),i.TgZ(18,"imx-search-list-action-menu",13),i.NdJ("executeAction",function(to){return Me.executeBatchAction(to)}),i.ynx(19,14),i.YNc(20,qe,3,4,"imx-action-menu-item",15),i.TgZ(21,"imx-action-menu-item",16),i.NdJ("actionClicked",function(){return Me.addToObjectList()}),i._uU(22),i.ALo(23,"translate"),i.qZA(),i.YNc(24,Xi,1,0,"imx-action-menu-item-create-contact-list",17),i.TgZ(25,"imx-action-menu-item",18),i.NdJ("actionClicked",function(){return Me.exportStatisticsOnSelectedIds()}),i._uU(26),i.ALo(27,"translate"),i.qZA(),i.BQk(),i.qZA()()()(),i.YNc(28,jt,8,11,"ng-template",null,19,i.W1O)(30,jn,1,1,"ng-template",null,20,i.W1O)(32,ro,1,1,"ng-template",null,21,i.W1O)),2&_e){const Ln=i.MAs(12);i.xp6(),i.Q6J("formHandler",Me.filterFormHandler)("record",Me.filter)("orderFields",Me.availableOrderFields)("orderField",Me.orderField)("orderDirection",Me.orderDirection)("enableCreateContactListOption",Me.enableCreateContactList),i.xp6(),i.Q6J("totalNumber",null==Me.currentResult?null:Me.currentResult.totalNumberOfResults)("entityResourceKeyPrefix",Me.entityResourceKeyPrefix)("isCompactPageHeader",!1),i.xp6(2),i.Q6J("hasAnyPermission",Me.imxToolsPermissions.F_STAT_ADDRESSBASE_EXPORT.name),i.xp6(),i.Q6J("hasAnyPermission",Me.imxToolsPermissions.F_ADDRESSBASE_CREATE.name),i.xp6(8),i.Q6J("ngIf",i.lcZ(14,21,Me.results))("ngIfElse",Ln),i.xp6(2),i.Q6J("paging",Me.pagingModel)("selection",Me.selectionModel),i.xp6(3),i.Q6J("actions",null==Me.actionProvider?null:Me.actionProvider.getBatchActionsForType(Me.getEntityName())),i.xp6(2),i.Q6J("hasAnyPermission",Me.memoCreatePermission),i.xp6(2),i.hij(" ",i.lcZ(23,23,"imxplatform.entity-list.object-list.action-title")," "),i.xp6(2),i.Q6J("ngIf",Me.enableCreateContactList),i.xp6(),i.Q6J("icon","icon-pie-chart"),i.xp6(),i.hij(" ",i.lcZ(27,25,"imxplatform.common.export")," ")}},dependencies:[Zc.$,Cd.r,Un.n,Sn.Ee,de.N,Ae._,Ct.A,Ac.Y,Bd.V,Xl.w,xm._,uc.k,Rm.E,gi.R,ee.F,om.l,x.mk,x.sg,x.O5,ya.i$,ya.Tg,Pl.pW,n.rH,yt.z,Bt.t,pm.F,No.M,Ar.V,Ld.J,Oc.V,_m,Xr,tu,jc.i,lt.j,x.Ov,m.X$],styles:[Bo]})}return te})();var al=a(27996);const Jd=new i.OlP("imxtools.formextensions.addressbase.duplicate.definition");let Qd=(()=>{class te extends l.AbstractFormHandler{constructor(E,_e,Me,Ln){super(l.IMXPLATFORM_ADDRESS_POI_DUPLICATE_DEFINITION_FORM_CONFIGURATION,E,_e,Me,Ln),this.runtimeContextService=Me,this.formatterService=Ln}getEntityType(){return"AddressPoiDuplicatesDefinition"}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.LFG(Jd,8),i.LFG(l.NgControlBuilderService),i.LFG(s.Ze),i.LFG(l.FormatterService))};static#t=this.\u0275prov=i.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"})}return te})();const op=new l.FormConfiguration([...se.Uo.fields,...(0,l.duplicatesFilterFields)()]);let f_=(()=>{class te extends l.AbstractFormHandler{constructor(E,_e,Me,Ln){super(op,E,_e,Me,Ln),this.runtimeContextService=Me,this.formatterService=Ln}getEntityType(){return"Addressbase"}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.LFG(se.Wk,8),i.LFG(l.NgControlBuilderService),i.LFG(s.Ze),i.LFG(l.FormatterService))};static#t=this.\u0275prov=i.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"})}return te})();var rp=a(13557),Ap=a(51588),iu=a(26088);function Qu(te,Pn){1&te&&(i.TgZ(0,"imx-list-no-results"),i._uU(1,"imxplatform.duplicate.list.no-records"),i.qZA())}function Wp(te,Pn){1&te&&i._UZ(0,"mat-progress-bar",12)}const S_=te=>({duplicateItem:te});function zp(te,Pn){if(1&te&&i.GkF(0,18),2&te){const E=Pn.duplicateItem,_e=i.oxw(4);i.Q6J("imxSlotComponent",_e.imxToolsSlots.ADDRESSBASE_DUPLICATE_CONTENT_SLOT)("inputs",i.VKq(2,S_,E))}}function ap(te,Pn){if(1&te&&(i.ynx(0),i._UZ(1,"imx-duplicates-header-property",20)(2,"imx-duplicates-header-property",20)(3,"imx-duplicates-header-property",20)(4,"imx-duplicates-header-property",20)(5,"imx-duplicates-header-property",20)(6,"imx-duplicates-header-property",20),i.BQk()),2&te){const E=i.oxw().duplicateGroup,_e=i.oxw(4);i.xp6(),i.Q6J("showRed",!_e.areTitlesEqual(E))("resourceBundleKey","entity.AddressPoi.title"),i.xp6(),i.Q6J("showRed",!_e.areProductlinesEqual(E))("resourceBundleKey","entity.Addressbase.productlines"),i.xp6(),i.Q6J("showRed",!_e.areAddressPropertiesEqual(E,"zipcode"))("resourceBundleKey","entity.AddressPoi.contact1.address.zipcode"),i.xp6(),i.Q6J("showRed",!_e.areNormalizedAddressesEqual(E))("resourceBundleKey","entity.AddressComponent.entityName"),i.xp6(),i.Q6J("showRed",!_e.areAddressPropertiesEqual(E,"phone1"))("resourceBundleKey","entity.AddressComponent.phone1"),i.xp6(),i.Q6J("showRed",!_e.areAddressPropertiesEqual(E,"email"))("resourceBundleKey","entity.AddressComponent.email")}}function Rc(te,Pn){if(1&te&&i.YNc(0,ap,7,12,"ng-container",19),2&te){const E=i.oxw(4);i.Q6J("ngIf",!E.hideDuplicateGroupIcons)}}function F_(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"mat-list-item",14)(1,"imx-duplicates-group",15),i.NdJ("historyActionEvent",function(Me){i.CHM(E);const Ln=i.oxw(3);return i.KtG(Ln.executeHistoryAction(Me.entityName,Me.id))})("resolveDuplicatesEvent",function(Me){i.CHM(E);const Ln=i.oxw(3);return i.KtG(Ln.resolveDuplicates(Me))})("noDuplicateSingleEvent",function(Me){i.CHM(E);const Ln=i.oxw(3);return i.KtG(Ln.noDuplicates(Me))})("noDuplicatesEvent",function(Me){i.CHM(E);const Ln=i.oxw(3);return i.KtG(Ln.noDuplicates(Me))})("extractSelectionEvent",function(Me){i.CHM(E);const Ln=i.oxw(3);return i.KtG(Ln.extractSelectionFromGroup(Me))})("referencesActionEvent",function(Me){i.CHM(E);const Ln=i.oxw(3);return i.KtG(Ln.executeReferencesAction(Me.entityName,Me.id))}),i.qZA(),i.YNc(2,zp,1,4,"ng-template",null,16,i.W1O)(4,Rc,1,1,"ng-template",null,17,i.W1O),i.qZA()}if(2&te){const E=Pn.$implicit,_e=i.MAs(3),Me=i.MAs(5);i.uIk("data-scroll-id",E.id),i.xp6(),i.Q6J("candidateEntityName","Addressbase")("duplicateGroup",E)("duplicatePropertyDiffTemplate",Me)("duplicateContentTemplate",_e)}}function jp(te,Pn){if(1&te&&(i.TgZ(0,"mat-list"),i.YNc(1,F_,6,5,"mat-list-item",13),i.qZA()),2&te){const E=i.oxw().ngIf,_e=i.oxw();i.xp6(),i.Q6J("ngForOf",E.items)("ngForTrackBy",_e.trackByItemId)}}function Kp(te,Pn){if(1&te&&(i.TgZ(0,"div"),i.YNc(1,jp,2,2,"mat-list",8),i.qZA()),2&te){const E=Pn.ngIf;i.oxw();const _e=i.MAs(9);i.xp6(),i.Q6J("ngIf",E.items.length>0)("ngIfElse",_e)}}function lc(te,Pn){}let $p=(()=>{class te extends l.AbstractDuplicatesSearchPage{constructor(E,_e,Me,Ln,to,ha,zs,cc,Gl,id,zd,Fm,Lm,Iu,Su){super(E,_e,Me,Ln,to,ha,Gl,id,void 0,Lm,cc,zd,Fm,Iu,zs),this.toolsDataAccessService=Su,this.imxToolsPermissions=ji.i,this.imxToolsSlots=Tn.G5,this.hideDuplicateGroupIcons=!1}ngOnInit(){super.ngOnInit(),this.hideDuplicateGroupIcons=this.configurationProvider.getBooleanFromSnapshot(l.ImxPlatformConfigParameter.IMXPLATFORM_HIDE_DUPLICATE_GROUP_ICONS,!1)}getEntityName(){return"AddressbaseDuplCandidatesGroup"}getFilterParams(E){return this.toolsDataAccessService.convertAddressbaseDuplicatesClientParamsToRequestParams(E)}getSetStateActionKey(){return"addressbase-action-set_state"}getNoDuplicateActionKey(){return"addresspoi-duplicates-action-addresspoi_no_duplicate"}getNoDuplicatesActionKey(){return"addresspoi-duplicates-action-addresspoi_no_duplicates"}getExtractSelectionActionKey(){return"addresspoi-duplicates-action-addresspoi_extract_selected"}getResolveDuplicatesActionKey(){return"addresspoi-duplicates-action-resolve_duplicate_groups"}getDefineDuplicatesActionKey(){return"addressbase-duplicates-action-define_duplicate_groups"}reloadDuplicateGroupsId(){return this.toolsDataAccessService.getDuplicateGroupIds(this.filter)}reloadCandidate(E){return this.toolsDataAccessService.getAddressbases({id:E.toString()}).pipe((0,O.U)(_e=>_e.items[0]))}areProductlinesEqual(E){const _e=E.candidates.map(Me=>Me.metainfos.map(Ln=>Ln.productline.id));return!_e.some(Me=>Me.length!==_e[0].length||this.plIdsUnEqual(Me,_e[0]))}plIdsUnEqual(E,_e){return E.some(Me=>!_e.some(Ln=>Ln===Me))}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(al.H),i.Y36(n.F0),i.Y36(n.gz),i.Y36(l.UserMessageService),i.Y36(l.ListHistoryService),i.Y36(B.uw),i.Y36(l.ActionProviderService),i.Y36(l.ConfigurationProvider),i.Y36(f_),i.Y36(l.ImxPlatformDataAccessService),i.Y36(m.sK),i.Y36(Qd),i.Y36(l.PlatformTrackingService),i.Y36(l.ObjectListCreationService),i.Y36(tt.N))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["ng-component"]],features:[i.qOj],decls:17,vars:21,consts:[[1,"search-page"],[3,"formHandler","record","orderFields","orderField","orderDirection","orderChanged","applyFilter","resetFilter"],[3,"totalNumber","entityResourceKeyPrefix","isCompactPageHeader","showCompactToggle","reload"],["list-header-button-row",""],[3,"createDuplicatesPermission","resolveDuplicatesPermission","duplicateGroupsLoaded","showResolveAllBtn","resourcePrefix","createDuplicatesList","resolveDuplicatesList"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],[4,"ngIf","ngIfElse"],[3,"showCheckbox","paging","selection","pageChanged","selectAll"],["position","above","halign","start"],["imx-dropup-trigger",""],["mode","indeterminate"],["class","list__item","imxGenericSelector","",4,"ngFor","ngForOf","ngForTrackBy"],["imxGenericSelector","",1,"list__item"],[3,"candidateEntityName","duplicateGroup","duplicatePropertyDiffTemplate","duplicateContentTemplate","historyActionEvent","resolveDuplicatesEvent","noDuplicateSingleEvent","noDuplicatesEvent","extractSelectionEvent","referencesActionEvent"],["addressbaseDuplicateContent",""],["addressbasePropertyDiffContent",""],[3,"imxSlotComponent","inputs"],[4,"ngIf"],[3,"showRed","resourceBundleKey"]],template:function(_e,Me){if(1&_e&&(i.TgZ(0,"div",0)(1,"imx-addressbase-filter",1),i.NdJ("orderChanged",function(to){return Me.sort(to)})("applyFilter",function(to){return Me.search(to)})("resetFilter",function(){return Me.reset()}),i.qZA(),i.TgZ(2,"imx-list-header",2),i.NdJ("reload",function(){return Me.reloadComplete()}),i.ynx(3,3),i.TgZ(4,"imx-duplicates-button-bar",4),i.NdJ("createDuplicatesList",function(){return Me.createDuplicatesList()})("resolveDuplicatesList",function(){return Me.resolveDuplicatesList()}),i.qZA(),i.BQk(),i.qZA(),i.TgZ(5,"imx-grid")(6,"imx-grid-element",5)(7,"imx-generic-slide-in-page"),i.YNc(8,Qu,2,0,"ng-template",null,6,i.W1O)(10,Wp,1,0,"ng-template",null,7,i.W1O)(12,Kp,2,2,"div",8),i.ALo(13,"async"),i.qZA()()(),i.TgZ(14,"imx-list-footer",9),i.NdJ("pageChanged",function(to){return Me.onPageChanged(to)})("selectAll",function(to){return Me.onSelectAll(to)}),i.TgZ(15,"imx-dropup-button",10),i.YNc(16,lc,0,0,"ng-template",11),i.qZA()()()),2&_e){const Ln=i.MAs(11);i.xp6(),i.Q6J("formHandler",Me.filterFormHandler)("record",Me.filter)("orderFields",Me.availableOrderFields)("orderField",Me.orderField)("orderDirection",Me.orderDirection),i.xp6(),i.Q6J("totalNumber",null==Me.currentResult?null:Me.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxplatform.duplicate")("isCompactPageHeader",!1)("showCompactToggle",!1),i.xp6(2),i.Q6J("createDuplicatesPermission",Me.imxPermissions.F_ADDRESSPOI_DUPLICATES_GENERATE_LIST)("resolveDuplicatesPermission",Me.imxPermissions.F_ADDRESSPOI_DUPLICATES_RESOLVE)("duplicateGroupsLoaded",Me.duplicateGroupsLoaded$)("showResolveAllBtn",Me.showResolveAllBtnForEntity("addressbase"))("resourcePrefix","imxplatform.duplicate"),i.xp6(8),i.Q6J("ngIf",i.lcZ(13,19,Me.results))("ngIfElse",Ln),i.xp6(2),i.Q6J("showCheckbox",!1)("paging",Me.pagingModel)("selection",Me.selectionModel)}},dependencies:[rp.G,Ap.R,iu.E,Sn.Ee,de.N,Ae._,Ct.A,om.l,yr.g,x.sg,x.O5,ya.i$,ya.Tg,Pl.pW,Bt.t,pm.F,No.M,Ar.V,Xr,x.Ov],styles:["[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.create-duplicates-btn[_ngcontent-%COMP%]{margin-right:10px}"]})}return te})();var Bp=a(35350);const g_=["editOccupancyComponent"];let ep=(()=>{class te extends l.AbstractCoreDataObjectFormPanelComponent{constructor(E,_e){super(E),this.entitiesMgr=E,this.translateService=_e}occupanciesAdjusted(){this.editOccupancyComponent&&this.editOccupancyComponent.getOpenDates()}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(l.ImxEntitiesMgrService),i.Y36(m.sK))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-announcement-occupancy-form-panel"]],viewQuery:function(_e,Me){if(1&_e&&i.Gf(g_,7),2&_e){let Ln;i.iGM(Ln=i.CRH())&&(Me.editOccupancyComponent=Ln.first)}},hostAttrs:[1,"imx-announcement-occupancy-form-panel"],features:[i.qOj],decls:6,vars:3,consts:[[1,"form__content-panel","occupancy"],["id","occupancy",1,"anchor"],["translate",""],[3,"formHandler","addressPoiId"],["editOccupancyComponent",""]],template:function(_e,Me){1&_e&&(i.TgZ(0,"div",0),i._UZ(1,"div",1),i.TgZ(2,"h2",2),i._uU(3,"imxplatform.announcement.edit.panels.occupancy.title"),i.qZA(),i._UZ(4,"imx-edit-occupancy",3,4),i.qZA()),2&_e&&(i.xp6(),i.uIk("data-scroll-id","occupancy"),i.xp6(3),i.Q6J("formHandler",Me.formHandler)("addressPoiId",Me.formHandler.formGroup.get("addressPoiId").value))},dependencies:[Bp.X,m.Pi],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return te})();var Vu=a(96776),h_=a(85715);function ef(te,Pn){if(1&te&&(i.ynx(0),i._UZ(1,"imx-autocomplete",14),i.BQk()),2&te){const E=i.oxw(2);i.xp6(),i.Q6J("field",E.formHandler.formConfiguration.findFormFieldById("addressPoiId"))("formHandler",E.formHandler)("control",E.formHandler.formGroup.controls.addressPoiId)("autocompleteService",E.autoCompleteService)}}function qp(te,Pn){if(1&te&&(i.ynx(0),i._UZ(1,"imx-select",15),i.ALo(2,"async"),i.BQk()),2&te){const E=i.oxw(2);i.xp6(),i.Q6J("field",E.formHandler.formConfiguration.findFormFieldById("addressPoiId"))("control",E.formHandler.formGroup.get("addressPoiId"))("form",E.formHandler.formGroup)("formHandler",E.formHandler)("optionProvider",i.lcZ(2,5,E.owningAddressbaseOptions$))}}function L_(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"div",4)(1,"div",6)(2,"h3",2),i._uU(3,"imxtools.offer.edit.panels.base-data.addressbaseId"),i.qZA(),i.YNc(4,ef,2,4,"ng-container",12)(5,qp,3,7,"ng-container",12),i.TgZ(6,"button",13),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw();return i.KtG(Me.openAddressPoi())}),i._uU(7," imxplatform.announcement.edit.panels.base-data.addressPoi-open "),i.qZA()()()}if(2&te){const E=i.oxw();i.xp6(4),i.Q6J("ngIf",0===E.owningAddressbases.length||1===E.owningAddressbases.length),i.xp6(),i.Q6J("ngIf",E.owningAddressbases.length>1),i.xp6(),i.Q6J("disabled",null==(null==E.formHandler.formGroup.controls.addressPoiId?null:E.formHandler.formGroup.controls.addressPoiId.value))}}function x_(te,Pn){if(1&te&&(i.TgZ(0,"div",6)(1,"h3",2),i._uU(2,"imxplatform.announcement.edit.panels.base-data.client-section"),i.qZA(),i._UZ(3,"imx-edit-client",16),i.qZA()),2&te){const E=i.oxw();i.xp6(3),i.Q6J("formHandler",E.formHandler)("feasibleClients",E.feasibleClients)("rootClients",E.rootClients)}}function tf(te,Pn){1&te&&i.GkF(0)}function wp(te,Pn){1&te&&i.GkF(0)}function _d(te,Pn){1&te&&i.GkF(0)}function Jc(te,Pn){if(1&te&&(i.TgZ(0,"div",4)(1,"div",6),i._UZ(2,"imx-edit-audited-data",17),i.qZA()()),2&te){const E=i.oxw();i.xp6(2),i.Q6J("formHandler",E.formHandler)("record",E.record)}}function v_(te,Pn){if(1&te&&i._UZ(0,"imx-form-control",18),2&te){const E=Pn.$implicit,_e=i.oxw();i.Q6J("field",_e.formHandler.formConfiguration.findFormFieldById(E))("control",_e.formHandler.formGroup.get(E))("form",_e.formHandler.formGroup)("formHandler",_e.formHandler)("config",_e.formHandler.formConfiguration)}}const ou=()=>({$implicit:"type"}),Yu=()=>({$implicit:"title"}),b_=()=>({$implicit:"description"});let hp=(()=>{class te extends l.AbstractClientAwareFormPanelComponent{constructor(E,_e,Me,Ln,to,ha,zs){super(to,E,_e),this.entitiesMgrService=E,this.dialog=_e,this.securityManagerService=Me,this.coreDataObjectAutocompleteRegistry=Ln,this.runtimeContext=to,this.router=ha,this.dataAccessService=zs,this.occupanciesAdjusted=new i.vpe,this.owningAddressbases=[],this.today=new Date,this.minValidityDate=void 0,this.maxValidityDate=void 0,this.contextNavigationService=(0,i.f3M)(l.ContextNavigationService)}onRecordChange(){this.maxValidityDate=new Date,this.maxValidityDate.setDate(this.maxValidityDate.getDate()+7),this.maxValidityDate.setHours(23,59,0,0),!this.record.id||new Date(this.record.validityTime).getTime()>=this.today.getTime()?(this.formHandler.formGroup.get("validityTime").setValidators([u.kI.required,(0,l.createDateValidator)(this.today,this.maxValidityDate)]),this.minValidityDate=this.today):(this.formHandler.formGroup.get("validityTime").setValidators(null),this.minValidityDate=void 0),this.formHandler.formGroup.get("validityTime").updateValueAndValidity()}ngOnInit(){if(super.ngOnInit(),this.hasAddressbasePermission())this.autoCompleteService=this.coreDataObjectAutocompleteRegistry.getAutocompleteService("Addressbase");else{if(!this.securityManagerService.hasAnyPermission([l.ImxPermissions.F_ADDRESSPOI_READ_ALL,l.ImxPermissions.F_ADDRESSPOI_READ_OWN_CLIENT,l.ImxPermissions.F_ADDRESSPOI_READ_OWN_USER]))throw new Error("Insufficient Permissions: Neither Addressbase nor AddressPoi Permission provided");this.autoCompleteService=this.coreDataObjectAutocompleteRegistry.getAutocompleteService("AddressPoi")}this.formHandler.formGroup.get("type").valueChanges.pipe((0,P.R)(this.destroy$),(0,Vu.b)(100)).subscribe(E=>{(0,Se.od)(E)?this.adjustOccupanciesRows(new Date(this.formHandler.formGroup.get("validityTime").value)):(this.formHandler.formGroup.get("forecastOccupancies").clear(),this.formHandler.formGroup.get("actualOccupancy.value").clearValidators(),this.formHandler.formGroup.get("actualOccupancy.value").updateValueAndValidity())}),this.formHandler.formGroup.get("validityTime").valueChanges.pipe((0,P.R)(this.destroy$),(0,Vu.b)(300)).subscribe(E=>{(0,Se.od)(this.formHandler.formGroup.get("type").value)&&this.adjustOccupanciesRows(new Date(E))}),this.loadFeasibleClients(),!this.record.id&&null===this.record.addressPoi.id&&this.securityManagerService.hasPermission({name:"F_Addressbase_OwnUser:R"})&&this.dataAccessService.getAddressbases({owningUser:this.runtimeContext.getLoginUser().id.toString()}).subscribe(E=>{if(this.owningAddressbases=Array.from(E.items),this.owningAddressbases&&1===this.owningAddressbases.length){const _e=this.owningAddressbases[0].id;this.formHandler.formGroup.get("addressPoiId").setValue(_e)}else this.owningAddressbases&&this.owningAddressbases.length>1&&(this.formHandler.formGroup.get("addressPoiId").setValue(-1),this.formHandler.formGroup.get("addressPoiId").setValidators(l.selectValueRequiredValidator),this.owningAddressbaseOptions$=this.loadAddressbaseOptions(this.owningAddressbases))})}determineFeasibleClients(){const E=super.determineFeasibleClients(),_e=this.runtimeContext.getCurrentAndSubClients();return(0,H.aj)([E,_e]).pipe((0,O.U)(([Me,Ln])=>(Ln.forEach(to=>Me.add(to)),Me)))}adjustOccupanciesRows(E){if(this.isValidityValid(E)){const _e=new Date,Me=E.getTime()-_e.getTime(),Ln=Math.ceil(Me/864e5);for(let ha=this.formHandler.getFormArrayControl("forecastOccupancies").controls.length-1;ha>=Ln-1;ha--)this.formHandler.removeLineFromCollection("forecastOccupancies",ha);for(let ha=0;ha<Math.min(Ln,8);ha++){const zs=new Date;zs.setDate(_e.getDate()+ha),zs.setHours(0,0,0,0),this.findForecastRowByDate(zs)<0&&0!==ha&&this.formHandler.addNewCollectionRow("forecastOccupancies").get("measurementTime").setValue(zs)}this.formHandler.getFormArrayControl("forecastOccupancies").controls.sort(this.sortForecasts),this.formHandler.formGroup.updateValueAndValidity(),this.occupanciesAdjusted.emit()}}sortForecasts(E,_e){const Me=new Date(E.get("measurementTime").value),Ln=new Date(_e.get("measurementTime").value);return Me.getTime()-Ln.getTime()}findForecastRowByDate(E){const _e=new Date(E);return this.formHandler.getFormArrayControl("forecastOccupancies").controls.findIndex(Me=>{if(Me.get("measurementTime")){const Ln=new Date(Me.get("measurementTime").value);return Ln.setHours(0,0,0,0),Ln.getTime()===_e.getTime()}})}isValidityValid(E){return!this.maxValidityDate||E.getTime()>=(new Date).getTime()&&E.getTime()<=this.maxValidityDate.getTime()}hasAddressbasePermission(){return this.securityManagerService.hasAnyPermission([{name:"F_Addressbase_All:R"},{name:"F_Addressbase_OwnClient:R"},{name:"F_Addressbase_OwnUser:R"}])}determineLink(){return"addressbases"}openAddressPoi(){this.formHandler.formGroup.dirty?this.dialog.open(l.DiscardDialogComponent,{maxWidth:470,data:{i18n:"imxtools.announcement.edit.dialog-on-reload",title:this.record.title,objectId:this.record.id}}).afterClosed().subscribe(E=>{E&&this.contextNavigationService.navigateToCoreEntityContextual([this.determineLink(),"edit",this.formHandler.formGroup.get("addressPoiId").value])}):this.contextNavigationService.navigateToCoreEntityContextual([this.determineLink(),"edit",this.formHandler.formGroup.get("addressPoiId").value])}loadAddressbaseOptions(E){return(0,I.of)([{label:"imxplatform.common.select-placeholder-demand",value:-1},...E.map(_e=>({label:_e.title.de,value:_e.id}))])}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(s.qB),i.Y36(B.uw),i.Y36(s.Xh),i.Y36(l.CoreDataObjectAutocompleteRegistry),i.Y36(s.Ze),i.Y36(n.F0),i.Y36(tt.N))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-announcement-base-data-form-panel"]],hostAttrs:[1,"imx-announcement-base-data-form-panel"],outputs:{occupanciesAdjusted:"occupanciesAdjusted"},features:[i.qOj],decls:21,vars:25,consts:[[1,"form__content-panel","basicdata"],["id","basicdata",1,"anchor"],["translate",""],["class","form__content-row",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[1,"form__content-row"],["class","form__content-group",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[1,"form__content-group"],[1,"form__content-field-row","wrap-sm"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"label","formControl","errors","min","max","disableControl"],["class","form__content-row",4,"ngIf"],["imxControl",""],[4,"ngIf"],["translate","",1,"imx-button","prio2","imx-button-open-addressbase",3,"disabled","click"],[1,"imx-form-control",3,"field","formHandler","control","autocompleteService"],[1,"entity-state-switch",3,"field","control","form","formHandler","optionProvider"],[3,"formHandler","feasibleClients","rootClients"],[3,"formHandler","record"],[3,"field","control","form","formHandler","config"]],template:function(_e,Me){if(1&_e&&(i.TgZ(0,"div",0),i._UZ(1,"div",1),i.TgZ(2,"h2",2),i._uU(3,"imxplatform.common-entity.edit.panels.base-data.title"),i.qZA(),i.YNc(4,L_,8,3,"div",3),i.TgZ(5,"div",4),i.YNc(6,x_,4,3,"div",5),i.qZA(),i.TgZ(7,"div",4)(8,"div",6)(9,"h3",2),i._uU(10,"imxplatform.announcement.edit.panels.base-data.title-section"),i.qZA(),i.TgZ(11,"div",7),i.YNc(12,tf,1,0,"ng-container",8),i._UZ(13,"imx-base-date-time",9),i.ALo(14,"async"),i.ALo(15,"async"),i.qZA(),i.YNc(16,wp,1,0,"ng-container",8)(17,_d,1,0,"ng-container",8),i.qZA()(),i.YNc(18,Jc,3,2,"div",10),i.qZA(),i.YNc(19,v_,1,5,"ng-template",null,11,i.W1O)),2&_e){const Ln=i.MAs(20);i.xp6(),i.uIk("data-scroll-id","basicdata"),i.xp6(3),i.Q6J("hasFieldReadPermission","addressPoiId")("hasFieldReadPermissionFormHandler",Me.formHandler),i.xp6(2),i.Q6J("hasFieldReadPermission","client")("hasFieldReadPermissionFormHandler",Me.formHandler),i.xp6(6),i.Q6J("ngTemplateOutlet",Ln)("ngTemplateOutletContext",i.DdM(22,ou)),i.xp6(),i.Q6J("label",Me.formHandler.getFormFieldLabel("validityTime"))("formControl",Me.formHandler.formGroup.get("validityTime"))("errors",Me.formHandler.formGroup.get("validityTime").errors)("min",Me.minValidityDate)("max",Me.maxValidityDate)("disableControl",!(i.lcZ(14,18,Me.formHandler.hasSavePermission())&&i.lcZ(15,20,Me.formHandler.hasEditPermission("validityTime")))),i.xp6(3),i.Q6J("ngTemplateOutlet",Ln)("ngTemplateOutletContext",i.DdM(23,Yu)),i.xp6(),i.Q6J("ngTemplateOutlet",Ln)("ngTemplateOutletContext",i.DdM(24,b_)),i.xp6(),i.Q6J("ngIf",Me.record.id)}},dependencies:[To.Y,h_.v,Ra.h,sr.L,Y.A,Yt.H,o.j,x.O5,x.tP,u.JJ,u.oH,m.Pi,x.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}"]})}return te})();const Xp=["occupancyFormPanel"];function e_(te,Pn){if(1&te&&i._UZ(0,"imx-announcement-occupancy-form-panel",3,4),2&te){const E=i.oxw();i.Q6J("formHandler",E.formHandler)("record",E.record)}}let ru=(()=>{class te extends l.FormComponent{constructor(E){super(E),this.userMessageService=E}showOccupancies(E){return(0,Se.od)(E)}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(l.UserMessageService))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-announcement-edit-form"]],viewQuery:function(_e,Me){if(1&_e&&i.Gf(Xp,5),2&_e){let Ln;i.iGM(Ln=i.CRH())&&(Me.occupancyFormPanel=Ln.first)}},features:[i.qOj],decls:4,vars:4,consts:[["id","announcement-edit",3,"formGroup","keydown.enter"],[3,"formHandler","record","occupanciesAdjusted"],[3,"formHandler","record",4,"ngIf"],[3,"formHandler","record"],["occupancyFormPanel",""]],template:function(_e,Me){1&_e&&(i.TgZ(0,"div")(1,"form",0),i.NdJ("keydown.enter",function(to){return to.preventDefault()}),i.TgZ(2,"imx-announcement-base-data-form-panel",1),i.NdJ("occupanciesAdjusted",function(){return null==Me.occupancyFormPanel?null:Me.occupancyFormPanel.occupanciesAdjusted()}),i.qZA(),i.YNc(3,e_,2,2,"imx-announcement-occupancy-form-panel",2),i.qZA()()),2&_e&&(i.xp6(),i.Q6J("formGroup",Me.formHandler.formGroup),i.xp6(),i.Q6J("formHandler",Me.formHandler)("record",Me.record),i.xp6(),i.Q6J("ngIf",Me.showOccupancies(Me.formHandler.formGroup.get("type").value)))},dependencies:[x.O5,u._Y,u.JL,u.sg,hp,ep],encapsulation:2})}return te})();var Zp=a(81538);function Qm(te,Pn){1&te&&(i.TgZ(0,"div",19),i._UZ(1,"mat-progress-bar",20),i.qZA())}const Dp=te=>({active:te}),bm=()=>[];function t_(te,Pn){if(1&te&&(i.ynx(0),i.TgZ(1,"a",21)(2,"div",11),i._UZ(3,"span",22),i.TgZ(4,"span",13),i._uU(5),i.ALo(6,"translate"),i.qZA()()(),i.BQk()),2&te){const E=i.oxw();i.xp6(),i.Q6J("ngClass",i.VKq(5,Dp,E.isPanelActive("occupancy")))("routerLink",i.DdM(7,bm)),i.xp6(4),i.Oqu(i.lcZ(6,3,"imxplatform.common-entity.edit.navigation.occupancy"))}}const n_=()=>({width:"100%",height:"100%"}),xp=["basicdata","occupancy"];let Ip=(()=>{class te extends l.AbstractEditPage{constructor(E,_e,Me,Ln,to,ha,zs,cc,Gl,id,zd,Fm,Lm,Iu){super(E,_e,Ln,Me,to,ha,zs,cc,Gl,id),this.imxEntitiesMgrService=ha,this.listHistoryService=Fm,this.router=Lm,this.toolsDataAccessService=Iu,this.logger=(0,l.getLogger)("AnnouncementEditPage",Mi.H.name),this.occupancyType=Se.cF.id}ngOnInit(){super.ngOnInit(),this.logger.debug("Open announcement edit page. Is in creation mode: "+this.isCreateMode),this.formHandler.formConfiguration.findFormFieldById("addressPoiId").readOnly=!this.isCreateMode,this.formHandler.formConfiguration.findFormFieldById("type").readOnly=!this.isCreateMode}showOccupancies(E){return(0,Se.od)(E.id)}addRecord(E){const _e=!!E.sendPushAnnouncement&&E.sendPushAnnouncement;return delete E.sendPushAnnouncement,this.toolsDataAccessService.createAnnouncement(E,_e)}recordSaved(E){this.isSaveAndClose?this.close():this.isCreateMode?this.router.navigate(["announcements","edit",E.id]):this.reload(),this.userMessageService.showInfo("imxplatform.announcement.edit.saved-successfull-msg")}updateRecord(E){const _e=!!E.sendPushAnnouncement&&E.sendPushAnnouncement;return delete E.sendPushAnnouncement,this.toolsDataAccessService.updateAnnouncement(E,_e)}getAvailablePanels(){return[...xp]}getEntityTypeForHistory(){return l.HistoryEntityType.ANNOUNCEMENT}saveAndPush(){this.formHandler.formGroup.get("sendPushAnnouncement").setValue(!0,{emitEvent:!1}),this.save(!1)}save(E){this.isSaveAndClose=E||!1,this.formComponent&&this.formComponent.submit(),this.clearCurrentStateInStorage()}getReloadDialogMsg(){return"imxplatform.announcement.edit.dialog-on-reload"}close(){super.handleCloseAction("imxplatform.announcement.edit.dialog-on-close","imxplatform.announcement.edit.dialog-on-close-new")}navigateToList(){this.listHistoryService.navigateToLastListState(this.getEntityTypeForHistory().entityType)||this.router.navigate(["/announcements"])}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(Zp.Bq),i.Y36(l.ImxPlatformDataAccessService),i.Y36(n.gz),i.Y36(s.Yz),i.Y36(l.UserMessageService),i.Y36(l.ImxEntitiesMgrService),i.Y36(l.EntityBrowseHistoryStorageService),i.Y36(x.EM),i.Y36(l.ObjectListCreationService),i.Y36(B.uw),i.Y36(m.sK),i.Y36(l.ListHistoryService),i.Y36(n.F0),i.Y36(tt.N))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["ng-component"]],viewQuery:function(_e,Me){if(1&_e&&i.Gf(ru,7),2&_e){let Ln;i.iGM(Ln=i.CRH())&&(Me.formComponent=Ln.first)}},features:[i.qOj],decls:23,vars:24,consts:[[1,"edit"],[3,"formHandler","record","entityType","resourceKeyPrefix","showEntityStateIcon","showMemoIcon","activeSlideInType","reloadClicked","slideInEvent","addToObjectListClicked"],["class","page-loading-wrapper","progress-bar","",4,"ngIf"],["lg_w","12","lg_o","0"],[1,"edit__wrapper"],[1,"edit__navigation-sticky-wrapper"],[1,"edit__navigation-sticky-content"],["scrollBar",""],[1,"edit__navigation-items"],["formNavigation",""],["fragment","basicdata",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"edit__navigation-item-content"],[1,"icon","icon-pencil","imx-icon-middle"],[1,"item-label"],[4,"ngIf"],["genericActionLabel","imxplatform.announcement.edit.push",3,"formHandler","isSubmitting","save","saveAndAction","saveAndClose","close"],[1,"edit__content"],["alwaysFixed","true"],["scrollToInvalidField","",3,"formHandler","record","save"],["progress-bar","",1,"page-loading-wrapper"],["mode","indeterminate"],["fragment","occupancy",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-users-plus","imx-icon-middle"]],template:function(_e,Me){1&_e&&(i.TgZ(0,"div",0)(1,"imx-edit-header",1),i.NdJ("reloadClicked",function(){return Me.reload()})("slideInEvent",function(to){return Me.dispatchSlideEvent(to)})("addToObjectListClicked",function(){return Me.addToObjectList()}),i.YNc(2,Qm,2,0,"div",2),i.qZA(),i.TgZ(3,"imx-grid")(4,"imx-grid-element",3)(5,"div",4)(6,"div",5)(7,"div",6)(8,"p-scrollPanel",null,7)(10,"div",8,9)(12,"a",10)(13,"div",11),i._UZ(14,"span",12),i.TgZ(15,"span",13),i._uU(16),i.ALo(17,"translate"),i.qZA()()(),i.YNc(18,t_,7,8,"ng-container",14),i.qZA()(),i.TgZ(19,"imx-edit-page-button-bar",15),i.NdJ("save",function(){return Me.save()})("saveAndAction",function(){return Me.saveAndPush()})("saveAndClose",function(){return Me.save(!0)})("close",function(){return Me.close()}),i.qZA()()(),i.TgZ(20,"div",16)(21,"imx-generic-slide-in-page",17)(22,"imx-announcement-edit-form",18),i.NdJ("save",function(to){return Me.submit(to)}),i.qZA()()()()()()()),2&_e&&(i.xp6(),i.Q6J("formHandler",Me.formHandler)("record",Me.record)("entityType","Announcement")("resourceKeyPrefix","imxplatform.announcement.")("showEntityStateIcon",!1)("showMemoIcon",!1)("activeSlideInType",Me.activeSlideInType),i.xp6(),i.Q6J("ngIf",Me.isSubmitting),i.xp6(6),i.Akn(i.DdM(20,n_)),i.xp6(4),i.Q6J("ngClass",i.VKq(21,Dp,Me.isPanelActive("basicdata")))("routerLink",i.DdM(23,bm)),i.xp6(4),i.Oqu(i.lcZ(17,18,"imxplatform.common-entity.edit.navigation.basedata")),i.xp6(2),i.Q6J("ngIf",Me.record.id&&Me.showOccupancies(Me.record.type)),i.xp6(),i.Q6J("formHandler",Me.formHandler)("isSubmitting",Me.isSubmitting),i.xp6(3),i.Q6J("formHandler",Me.formHandler)("record",Me.record))},dependencies:[Ki.n,bo.r,Sn.Ee,fi.a,ee.F,x.mk,x.O5,Pl.pW,n.rH,$i.P,No.M,Ar.V,ru,m.X$],styles:[".edit[_ngcontent-%COMP%]{padding-top:113px}.edit__wrapper[_ngcontent-%COMP%]{display:flex}.edit__wrapper[_ngcontent-%COMP%]   .edit__content[_ngcontent-%COMP%]{flex:1}.edit__navigation-items[_ngcontent-%COMP%]{display:flex;flex-direction:column}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]{font-size:14px;cursor:pointer;text-decoration:none;display:inline-block;transition:background-color .75s ease}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]{padding:8px;margin:5px 0;display:flex;flex-direction:row;align-items:center}@media (max-width: 900px){.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]{justify-content:center}}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content.sub[_ngcontent-%COMP%]{margin:2px 0}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .item-label[_ngcontent-%COMP%]{margin-left:15px;text-overflow:ellipsis;overflow:hidden}@media (max-width: 900px){.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .item-label[_ngcontent-%COMP%]{display:none}}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .item-label.sub[_ngcontent-%COMP%]{margin-left:10px}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .sub-item-icon[_ngcontent-%COMP%]{display:none}@media (max-width: 900px){.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .sub-item-icon[_ngcontent-%COMP%]{display:block}}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-sub-items[_ngcontent-%COMP%]{display:flex;flex-direction:column}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-sub-items[_ngcontent-%COMP%]   .icon-subNavigation[_ngcontent-%COMP%]{font-size:10px;margin-right:10px}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-sub-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]{padding-left:10px}.edit__navigation-sticky-wrapper[_ngcontent-%COMP%]{min-width:250px}@media (max-width: 900px){.edit__navigation-sticky-wrapper[_ngcontent-%COMP%]{min-width:100px}}.edit__navigation-sticky-content[_ngcontent-%COMP%]{padding-bottom:15px;padding-right:15px;max-width:250px;position:fixed;top:163px}.edit__navigation-sticky-content[_ngcontent-%COMP%]     .p-scrollpanel{transition:max-height .6s ease-in-out}@media (min-width: 901px){.edit__navigation-sticky-content[_ngcontent-%COMP%]{height:calc(100vh - 200px)}}@media (max-width: 900px){.edit__navigation-sticky-content[_ngcontent-%COMP%]{height:calc(100vh - 240px);min-width:100px}}"]})}return te})();var U=a(23733);function S(te,Pn){1&te&&i.GkF(0)}function w(te,Pn){if(1&te&&i._UZ(0,"imx-form-control",9),2&te){const E=Pn.$implicit,_e=i.oxw();i.Q6J("field",_e.formHandler.formConfiguration.findFormFieldById(E))("control",_e.formHandler.formGroup.get(E))("form",_e.formHandler.formGroup)("formHandler",_e.formHandler)("config",_e.formHandler.formConfiguration)}}const Q=()=>({$implicit:"reliabilityClassification"});let oe=(()=>{class te extends l.AbstractCoreDataObjectFormPanelComponent{static#e=this.\u0275fac=(()=>{let E;return function(Me){return(E||(E=i.n5z(te)))(Me||te)}})();static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-offer-anatomy-form-panel"]],features:[i.qOj],decls:11,vars:7,consts:[[1,"form__content-panel"],["id","anatomy",1,"anchor"],["translate",""],[1,"form__content-row"],[1,"form__content-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"formHandler"],[3,"formHandler","record"],["imxControl",""],[3,"field","control","form","formHandler","config"]],template:function(_e,Me){if(1&_e&&(i.TgZ(0,"div",0),i._UZ(1,"div",1),i.TgZ(2,"h2",2),i._uU(3,"imxplatform.common-entity.edit.panels.anatomy.title"),i.qZA(),i.TgZ(4,"div",3)(5,"div",4),i.YNc(6,S,1,0,"ng-container",5),i._UZ(7,"imx-edit-quality",6)(8,"imx-edit-audited-data",7),i.qZA()()(),i.YNc(9,w,1,5,"ng-template",null,8,i.W1O)),2&_e){const Ln=i.MAs(10);i.xp6(),i.uIk("data-scroll-id","anatomy"),i.xp6(5),i.Q6J("ngTemplateOutlet",Ln)("ngTemplateOutletContext",i.DdM(6,Q)),i.xp6(),i.Q6J("formHandler",Me.formHandler),i.xp6(),i.Q6J("formHandler",Me.formHandler)("record",Me.record)}},dependencies:[Ra.h,el.B,Y.A,x.tP,m.Pi],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}"]})}return te})();var fe=a(33946),Ee=a(55368);function it(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"mat-checkbox",10),i.NdJ("change",function(Me){i.CHM(E);const Ln=i.oxw(2);return i.KtG(Ln.onLanguageSelect(Me))}),i._UZ(1,"img",11),i.TgZ(2,"span"),i._uU(3),i.ALo(4,"readI18n"),i.qZA()()}if(2&te){const E=i.oxw().$implicit,_e=i.oxw();i.Q6J("value",E.name)("checked",_e.isSelected(E.name)),i.xp6(),i.Q6J("src","./assets/flags/"+E.name+".svg",i.LSH),i.xp6(2),i.Oqu(i.lcZ(4,4,null==E?null:E.i18nName))}}function mt(te,Pn){if(1&te&&(i.TgZ(0,"div",8),i.YNc(1,it,5,6,"mat-checkbox",9),i.qZA()),2&te){const E=Pn.$implicit;i.xp6(),i.Q6J("ngIf","__"!=E.name)}}let $t=(()=>{class te{constructor(E){this.data=E,this.formGroup=new u.nJ({}),this.selectedLanguages=[],this.formGroup.addControl("availabilityTransferInfo",new u.p4),this.selectedLanguages=E.languages,this.isFormInvalid$=this.formGroup.statusChanges.pipe((0,O.U)(_e=>"INVALID"===_e),(0,Vu.b)(0))}getFormResult(){let E,_e;return this.formGroup.get("weekly")&&(E={weekGap:this.formGroup.get("weekly").value.weekGap,weekDays:this.formGroup.get("weekly").value.weekDays}),this.formGroup.get("monthly")&&(_e={monthlyDateSeriesDefinition:this.formGroup.get("monthly").value.monthlyDateSeriesDefinition,monthlyDefinitionDayOfMonth:this.formGroup.get("monthly").value.monthlyDefinitionDayOfMonth,monthlyDefinitionMonthGap:this.formGroup.get("monthly").value.monthlyDefinitionMonthGap,weeklyDefinitionMonthGap:this.formGroup.get("monthly").value.weeklyDefinitionMonthGap,weeklyDefinitionGap:this.formGroup.get("monthly").value.weeklyDefinitionGap,weeklyDefinitionWeekDay:this.formGroup.get("monthly").value.weeklyDefinitionWeekDay}),{dateSeries:{dateSeriesInterval:this.formGroup.get("dateSeriesInterval").value,startDate:this.formGroup.get("startDate").value,endDate:this.formGroup.get("endDate").value,weekly:E,monthly:_e},info:this.data.formHandler.formGroup.get("availabilityTransferInfo"),languages:this.selectedLanguages}}isSelected(E){return this.selectedLanguages.some(_e=>_e.name===E)}onLanguageSelect(E){if(E.checked){const _e=this.data.languages.find(Me=>Me.name===E.source.value);_e&&this.selectedLanguages.push(_e)}else this.selectedLanguages=this.selectedLanguages.filter(_e=>_e.name!==E.source.value)}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(B.WI))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-availability-add-date-series-dialog"]],decls:10,vars:13,consts:[["heading","imxtools.offer.edit.panels.availabilities.add-date-series","icon","icon-calendar-31",3,"submitButtonDisabled","getSubmitResult"],[1,"dialog-form",3,"formGroup"],[1,"dialog-form-group"],[3,"formGroup","startDate"],[3,"field","control","form","formHandler","config"],[1,"language-selection-wrapper"],[1,"language-selection","col1"],["class","language-icon",4,"ngFor","ngForOf"],[1,"language-icon"],["class","checkbox",3,"value","checked","change",4,"ngIf"],[1,"checkbox",3,"value","checked","change"],[3,"src"]],template:function(_e,Me){1&_e&&(i.TgZ(0,"imx-dialog",0),i.ALo(1,"async"),i.TgZ(2,"div",1)(3,"div",2),i._UZ(4,"imx-date-series-form",3),i.qZA(),i.TgZ(5,"div",2),i._UZ(6,"imx-form-control",4),i.TgZ(7,"div",5)(8,"div",6),i.YNc(9,mt,2,1,"div",7),i.qZA()()()()()),2&_e&&(i.Q6J("submitButtonDisabled",i.lcZ(1,11,Me.isFormInvalid$))("getSubmitResult",Me.getFormResult.bind(Me)),i.xp6(2),i.Q6J("formGroup",Me.formGroup),i.xp6(2),i.Q6J("formGroup",Me.formGroup)("startDate",Me.data.startDate),i.xp6(2),i.Q6J("field",Me.data.formHandler.formConfiguration.findFormFieldById("availabilityTransferInfo"))("control",Me.data.formHandler.formGroup.controls.availabilityTransferInfo)("form",Me.data.formHandler.formGroup.get("availabilityTransferInfo"))("formHandler",Me.data.formHandler)("config",Me.data.formHandler.formConfiguration),i.xp6(3),i.Q6J("ngForOf",Me.data.languages))},dependencies:[fe.a,Y.A,Ee.E,x.sg,x.O5,u.JL,ln.oG,u.sg,lt.j,x.Ov],styles:[".language-selection-wrapper[_ngcontent-%COMP%]{display:flex;font-size:12px}.language-selection-wrapper[_ngcontent-%COMP%]     .mat-mdc-checkbox-layout{display:initial}.language-selection-wrapper[_ngcontent-%COMP%]   .language-selection[_ngcontent-%COMP%]{margin-right:15px;display:grid;grid-template-columns:repeat(3,auto)}.language-selection-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{margin-bottom:5px}.language-selection-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:20px;margin-right:5px;vertical-align:middle}.language-selection-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]   .checkbox[_ngcontent-%COMP%]{margin-right:10px}.language-selection-text[_ngcontent-%COMP%]{margin-top:10px}.language-settings-wrapper[_ngcontent-%COMP%]{margin-top:15px}.language-settings-wrapper[_ngcontent-%COMP%]   .language-label[_ngcontent-%COMP%]{color:#0a2663}"]})}return te})();var ai=a(23212),Ai=a(25913),ao=a(63989),go=a(63005);function Co(te,Pn){1&te&&(i.TgZ(0,"p",5),i._uU(1,"imxplatform.common.no-records"),i.qZA())}function Vo(te,Pn){1&te&&i._UZ(0,"tr",21)}function nr(te,Pn){1&te&&i._UZ(0,"tr",22)}function mr(te,Pn){if(1&te&&(i.TgZ(0,"th",23),i._uU(1),i.qZA()),2&te){const E=i.oxw(2);i.xp6(),i.Oqu(E.formHandler.getFormFieldLabel("availabilities:fromDate"))}}function Br(te,Pn){if(1&te&&(i.TgZ(0,"td",24),i._UZ(1,"imx-form-control",25),i.qZA()),2&te){const E=Pn.$implicit,_e=i.oxw(2);i.Q6J("formGroup",E),i.xp6(),i.Q6J("field",_e.formHandler.formConfiguration.findFormFieldById("availabilities:fromDate"))("control",E.controls.fromDate)("form",_e.formHandler.formGroup.get("availabilities"))("formHandler",_e.formHandler)("config",_e.formHandler.formConfiguration)}}function wr(te,Pn){if(1&te&&(i.TgZ(0,"th",23),i._uU(1),i.qZA()),2&te){const E=i.oxw(2);i.xp6(),i.Oqu(E.formHandler.getFormFieldLabel("availabilities:toDate"))}}function Jr(te,Pn){if(1&te&&i._UZ(0,"imx-form-control",25),2&te){const E=i.oxw().$implicit,_e=i.oxw(2);i.Q6J("field",_e.formHandler.formConfiguration.findFormFieldById("availabilities:toDate"))("control",E.controls.toDate)("form",_e.formHandler.formGroup.get("availabilities"))("formHandler",_e.formHandler)("config",_e.formHandler.formConfiguration)}}function ir(te,Pn){if(1&te&&i._UZ(0,"imx-base-date",28),2&te){const E=i.oxw().$implicit;i.Q6J("disableControl",!0)("formControl",E.controls.toDate)}}function na(te,Pn){if(1&te&&(i.TgZ(0,"td",24),i.YNc(1,Jr,1,5,"imx-form-control",26)(2,ir,1,2,"imx-base-date",27),i.qZA()),2&te){const E=Pn.$implicit,_e=i.oxw(2);i.Q6J("formGroup",E),i.xp6(),i.Q6J("ngIf",!_e.disableToDate),i.xp6(),i.Q6J("ngIf",_e.disableToDate)}}function Ea(te,Pn){if(1&te&&(i.TgZ(0,"th",29),i._uU(1),i.qZA()),2&te){const E=i.oxw(2);i.xp6(),i.Oqu(E.formHandler.getFormFieldLabel("availabilities:info"))}}function gs(te,Pn){if(1&te&&(i.TgZ(0,"td",24),i._UZ(1,"imx-form-control",25),i.qZA()),2&te){const E=Pn.$implicit,_e=i.oxw(2);i.Q6J("formGroup",E),i.xp6(),i.Q6J("field",_e.formHandler.formConfiguration.findFormFieldById("availabilities:info"))("control",E.controls.info)("form",_e.formHandler.formGroup.get("availabilities"))("formHandler",_e.formHandler)("config",_e.formHandler.formConfiguration)}}function Gr(te,Pn){if(1&te&&(i.TgZ(0,"th",30),i._uU(1),i.qZA()),2&te){const E=i.oxw(2);i.xp6(),i.Oqu(E.formHandler.getFormFieldLabel("availabilities:languages"))}}function Bl(te,Pn){if(1&te&&(i.TgZ(0,"td",31),i._UZ(1,"imx-form-control",25),i.qZA()),2&te){const E=Pn.$implicit,_e=i.oxw(2);i.Q6J("formGroup",E),i.xp6(),i.Q6J("field",_e.formHandler.formConfiguration.findFormFieldById("availabilities:languages"))("control",E.controls.languages)("form",_e.formHandler.formGroup.get("availabilities"))("formHandler",_e.formHandler)("config",_e.formHandler.formConfiguration)}}function Yl(te,Pn){1&te&&i._UZ(0,"th",32)}function us(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"a",35),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw().$implicit,Ln=i.oxw(2);return i.KtG(Ln.removeDate(Ln.dataSource.data.indexOf(Me)))}),i.qZA()}}function kd(te,Pn){if(1&te&&(i.TgZ(0,"td",33),i.YNc(1,us,1,0,"a",34),i.qZA()),2&te){const E=Pn.$implicit,_e=i.oxw(2);i.Q6J("formGroup",E),i.xp6(),i.Q6J("hasFieldWritePermission","availabilities")("hasFieldWritePermissionFormHandler",_e.formHandler)}}function Cm(te,Pn){if(1&te&&(i.TgZ(0,"table",6),i.YNc(1,Vo,1,0,"tr",7)(2,nr,1,0,"tr",8),i.ynx(3,9),i.YNc(4,mr,2,1,"th",10)(5,Br,2,6,"td",11),i.BQk(),i.ynx(6,12),i.YNc(7,wr,2,1,"th",10)(8,na,3,3,"td",11),i.BQk(),i.ynx(9,13),i.YNc(10,Ea,2,1,"th",14)(11,gs,2,6,"td",11),i.BQk(),i.ynx(12,15),i.YNc(13,Gr,2,1,"th",16)(14,Bl,2,6,"td",17),i.BQk(),i.ynx(15,18),i.YNc(16,Yl,1,0,"th",19)(17,kd,2,3,"td",20),i.BQk(),i.qZA()),2&te){const E=i.oxw();i.Q6J("dataSource",E.dataSource),i.xp6(),i.Q6J("matHeaderRowDef",E.displayedColumns),i.xp6(),i.Q6J("matRowDefColumns",E.displayedColumns)}}function _l(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-paginator",36),i.NdJ("page",function(Me){i.CHM(E);const Ln=i.oxw();return i.KtG(Ln.onPageChange(Me))}),i.qZA()}if(2&te){const E=i.oxw();i.Q6J("length",E.currentFilteredSize)("pageIndex",E.currentPageIndex)("pageSize",E.currentPageSize)("pageLinks",7)}}let Ws=(()=>{class te{constructor(E){this.changeDetectorRef=E,this.displayedColumns=[""],this.currentPageIndex=1,this.currentPageSize=10,this.currentFilteredSize=0,this.destroy$=new rt.xQ}ngOnChanges(E){this.determinePageChunk()}ngOnInit(){this.formHandler.formGroup.get("availabilities").valueChanges.pipe((0,P.R)(this.destroy$),(0,Vu.b)(100)).subscribe(E=>{this.determinePageChunk()})}removeDate(E){this.formHandler.removeLineFromCollection("availabilities",(this.currentPageIndex-1)*this.currentPageSize+E)}sortByDate(E,_e){return E.get("fromDate")&&E.get("fromDate").value&&_e.get("fromDate")&&_e.get("fromDate").value?E.get("fromDate").value.getTime()-_e.get("fromDate").value.getTime():0}determinePageChunk(){const E=this.formHandler.formGroup.get("availabilities");if(E.controls.sort((_e,Me)=>this.sortByDate(_e,Me)),!E)throw new Error("cannot determinePageChunk for undefined formArray");this.currentFilteredSize=E.controls.length,this.dataSource=new me.by(E.controls.slice((this.currentPageIndex-1)*this.currentPageSize,(this.currentPageIndex-1)*this.currentPageSize+this.currentPageSize)),this.changeDetectorRef.markForCheck()}onPageChange(E){this.currentPageIndex=E.pageIndex,this.currentPageSize=E.pageSize,this.determinePageChunk()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(i.sBO))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-availabilities-table"]],inputs:{formHandler:"formHandler",displayedColumns:"displayedColumns",disableToDate:"disableToDate",record:"record"},features:[i.TTD],decls:6,vars:3,consts:[[1,"dates-container"],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[3,"length","pageIndex","pageSize","pageLinks","page",4,"ngIf"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","fromDate"],["mat-header-cell","","class","date","translate","",4,"matHeaderCellDef"],["mat-cell","","class","date",3,"formGroup",4,"matCellDef"],["matColumnDef","toDate"],["matColumnDef","info"],["mat-header-cell","","translate","",4,"matHeaderCellDef"],["matColumnDef","languages"],["mat-header-cell","","class","language","translate","",4,"matHeaderCellDef"],["mat-cell","","class","language",3,"formGroup",4,"matCellDef"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","","translate","",1,"date"],["mat-cell","",1,"date",3,"formGroup"],[3,"field","control","form","formHandler","config"],[3,"field","control","form","formHandler","config",4,"ngIf"],[3,"disableControl","formControl",4,"ngIf"],[3,"disableControl","formControl"],["mat-header-cell","","translate",""],["mat-header-cell","","translate","",1,"language"],["mat-cell","",1,"language",3,"formGroup"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],["class","icon icon-trash imx-icon-middle imx-icon-clickable",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"],[3,"length","pageIndex","pageSize","pageLinks","page"]],template:function(_e,Me){if(1&_e&&(i.TgZ(0,"div",0),i.YNc(1,Co,2,0,"ng-template",null,1,i.W1O),i.TgZ(3,"div",2),i.YNc(4,Cm,18,3,"table",3),i.qZA(),i.YNc(5,_l,1,4,"imx-paginator",4),i.qZA()),2&_e){const Ln=i.MAs(2);i.xp6(4),i.Q6J("ngIf",Me.dataSource&&Me.dataSource.data.length>0)("ngIfElse",Ln),i.xp6(),i.Q6J("ngIf",Me.currentFilteredSize>Me.currentPageSize)}},dependencies:[go.d,Y.A,Te.X,ee.F,x.O5,u.JJ,u.JL,me.BZ,me.fO,me.as,me.w1,me.Dz,me.nj,me.ge,me.ev,me.XQ,me.Gk,u.oH,u.sg,m.Pi,jl.J],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}"]})}return te})();function Qc(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"button",8),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw();return i.KtG(Me.addDateSeries(Me.datePickerValues))}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&te&&(i.xp6(),i.hij(" ",i.lcZ(2,1,"imxtools.offer.edit.panels.availabilities.add-date-series")," "))}const Wu=te=>({"existing-date":te});function Sp(te,Pn){if(1&te&&(i.TgZ(0,"span",18),i._uU(1),i.qZA()),2&te){const E=Pn.$implicit,_e=i.oxw(3);i.Q6J("ngClass",i.VKq(2,Wu,_e.isExisting(E))),i.xp6(),i.Oqu(E.day)}}function tp(te,Pn){if(1&te){const E=i.EpF();i.ynx(0),i.TgZ(1,"button",24),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(4);return i.KtG(Me.addDate(Me.datePickerValues))}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.BQk()}if(2&te){const E=i.oxw(4);i.xp6(),i.Q6J("disabled",!E.enableCalenderAddDateButton()),i.xp6(),i.hij(" ",i.lcZ(3,2,"imxtools.offer.edit.panels.availabilities.add-date")," ")}}function sp(te,Pn){1&te&&i._UZ(0,"i",29)}function zu(te,Pn){1&te&&i._UZ(0,"i",30)}function Hp(te,Pn){if(1&te){const E=i.EpF();i.ynx(0),i.TgZ(1,"button",26),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(4);return i.KtG(Me.isAddMenuOpen=!Me.isAddMenuOpen)}),i.YNc(2,sp,1,0,"i",27)(3,zu,1,0,"i",28),i.qZA(),i.BQk()}if(2&te){const E=i.oxw(4);i.xp6(2),i.Q6J("ngIf",!E.isAddMenuOpen),i.xp6(),i.Q6J("ngIf",E.isAddMenuOpen)}}function i_(te,Pn){1&te&&i.GkF(0)}function Fp(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"div",19)(1,"div",20)(2,"div",21),i.YNc(3,tp,4,4,"ng-container",9)(4,Hp,4,2,"ng-container",7),i.qZA(),i.TgZ(5,"div",22),i.YNc(6,i_,1,0,"ng-container",23),i.qZA()(),i.TgZ(7,"button",24),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(3);return i.KtG(Me.removeDate(Me.datePickerValues))}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",25),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(3);return i.KtG(Me.removeAllDates())}),i._uU(11),i.qZA()()}if(2&te){const E=i.oxw(3),_e=i.MAs(1);i.xp6(3),i.Q6J("ngIf",null!==E.datePickerValues&&E.datePickerValues.length>0)("ngIfElse",_e),i.xp6(),i.Q6J("ngIf",null!==E.datePickerValues&&E.datePickerValues.length>0),i.xp6(),i.Q6J("hidden",!E.isAddMenuOpen),i.xp6(),i.Q6J("ngTemplateOutlet",_e),i.xp6(),i.Q6J("disabled",!E.enableRemoveDateButton()),i.xp6(),i.hij(" ",i.lcZ(9,9,"imxtools.offer.edit.panels.availabilities.remove-date")," "),i.xp6(2),i.Q6J("disabled",0===E.asFormArray(E.formHandler.formGroup.get("availabilities")).length),i.xp6(),i.hij(" ","imxtools.offer.edit.panels.availabilities.remove-all-dates","")}}function Vm(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"div",19)(1,"button",31),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(3);return i.KtG(Me.addAvailability())}),i._uU(2," imxtools.offer.edit.panels.availabilities.add-date "),i.qZA(),i.TgZ(3,"button",25),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(3);return i.KtG(Me.removeAllDates())}),i._uU(4," imxtools.offer.edit.panels.availabilities.remove-all-dates "),i.qZA()()}if(2&te){const E=i.oxw(3);i.xp6(3),i.Q6J("disabled",0===E.asFormArray(E.formHandler.formGroup.get("availabilities")).length)}}const o_=te=>({count:te});function C_(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",11),i.ALo(2,"translate"),i.TgZ(3,"div",12)(4,"p-calendar",13),i.NdJ("ngModelChange",function(Me){i.CHM(E);const Ln=i.oxw(2);return i.KtG(Ln.datePickerValues=Me)}),i.YNc(5,Sp,2,4,"ng-template",14),i.qZA(),i.YNc(6,Fp,12,11,"div",15),i.qZA()(),i.TgZ(7,"imx-accordion-panel",16),i.ALo(8,"translate"),i._UZ(9,"imx-availabilities-table",17),i.YNc(10,Vm,5,1,"div",15),i.qZA()()}if(2&te){const E=i.oxw(2);i.xp6(),i.s9C("titleDescription",i.xi3(2,19,"imxeventmanager.event.edit.panels.dates.event-dates-count",i.VKq(25,o_,E.asFormArray(E.formHandler.formGroup.get("availabilities")).length))),i.xp6(3),i.Q6J("ngModel",E.datePickerValues)("inline",!0)("selectionMode","multiple")("numberOfMonths",4)("disabledDates",E.disabledDates)("defaultDate",E.viewStartDate)("minDate",E.minSelectionDate)("showOtherMonths",!1)("firstDayOfWeek",1),i.xp6(2),i.Q6J("hasFieldWritePermission","availabilities")("hasFieldWritePermissionFormHandler",E.formHandler),i.xp6(),i.s9C("titleDescription",i.xi3(8,22,"imxtools.offer.edit.panels.availabilities.availability-dates-count",i.VKq(27,o_,E.asFormArray(E.formHandler.formGroup.get("availabilities")).length))),i.xp6(2),i.Q6J("formHandler",E.formHandler)("displayedColumns",E.displayedColumns)("disableToDate",!0)("record",E.record),i.xp6(),i.Q6J("hasFieldWritePermission","availabilities")("hasFieldWritePermissionFormHandler",E.formHandler)}}function xf(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"div",19)(1,"button",31),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(3);return i.KtG(Me.addAvailability())}),i._uU(2," imxtools.offer.edit.panels.availabilities.add-availability "),i.qZA(),i.TgZ(3,"button",25),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(3);return i.KtG(Me.removeAllDates())}),i._uU(4," imxtools.offer.edit.panels.availabilities.remove-all-dates "),i.qZA()()}if(2&te){const E=i.oxw(3);i.xp6(3),i.Q6J("disabled",0===E.asFormArray(E.formHandler.formGroup.get("availabilities")).length)}}function vf(te,Pn){if(1&te&&(i.TgZ(0,"h3",3),i._uU(1,"imxtools.offer.edit.panels.availabilities.validity"),i.qZA(),i._UZ(2,"imx-availabilities-table",32),i.YNc(3,xf,5,1,"div",15)),2&te){const E=i.oxw(2);i.xp6(2),i.Q6J("formHandler",E.formHandler)("displayedColumns",E.displayedColumns)("record",E.record),i.xp6(),i.Q6J("hasFieldWritePermission","availabilities")("hasFieldWritePermissionFormHandler",E.formHandler)}}function bf(te,Pn){if(1&te&&(i.ynx(0),i.YNc(1,C_,11,29,"imx-accordion",9)(2,vf,4,5,"ng-template",null,10,i.W1O),i.BQk()),2&te){const E=i.MAs(3),_e=i.oxw();i.xp6(),i.Q6J("ngIf",_e.availabilityByDateSelection)("ngIfElse",E)}}let y_=(()=>{class te extends l.AbstractCoreDataObjectFormPanelComponent{constructor(E,_e,Me,Ln,to,ha,zs){super(E),this.entitiesMgr=E,this.userMessageService=_e,this.configurationProvider=Me,this.changeDetectorRef=Ln,this.formatterService=to,this.dialogService=ha,this.dataAccessService=zs,this.datePickerValues=null,this.disabledDates=[],this.minSelectionDate=new Date,this.viewStartDate=new Date,this.isAddMenuOpen=!1}ngOnInit(){this.availabilityByDateSelection=this.configurationProvider.getBooleanFromSnapshot(hs.s.IMXTOOLS_OFFER_AVAILABILITY_BY_DATE_SELECTION,!1),null!=this.formHandler.formGroup.get("availabilities")&&(this.dataSource=this.prepareTable(this.formHandler.formGroup.get("availabilities"),E=>this.dataSource=E),this.displayedColumns=this.determineTableColumns("availabilities")),this.availabilityByDateSelection&&this.formHandler.formGroup.get("duration").valueChanges.pipe((0,Vu.b)(300)).subscribe(E=>{const _e=void 0!==E?Number.parseInt(E,10):0;this.dataSource.data.forEach(Me=>{this._adjustToDate(Me,_e)}),this.changeDetectorRef.markForCheck()}),this.determineCalendarBounds()}ngOnChanges(E){E.datePickerValues&&(null==E.datePickerValues.currentValue||0===E.datePickerValues.currentValue.length)&&(this.isAddMenuOpen=!1)}determineCalendarBounds(){let E=null;this.formHandler.formGroup.get("availabilities").value.map(_e=>new Date(_e.fromDate)).forEach(_e=>{E=null===E||_e.getTime()<E.getTime()?_e:E}),this.minSelectionDate=null===E||(new Date).getTime()<E.getTime()?new Date:E,this.viewStartDate=(0,s.Qn)(this.formHandler.formGroup.get("availabilities").value.map(_e=>new Date(_e.fromDate)))}isExisting(E){return-1!==this.findStartDateRowIndex(E)}findStartDateRowIndex(E){return this.formHandler.formGroup.get("availabilities").getRawValue().map(_e=>new Date(_e.fromDate)).findIndex(_e=>E.year===_e.getFullYear()&&E.month===_e.getMonth()&&E.day===_e.getDate())}findEventDatesRowByDate(E){return this.findStartDateRowIndex({day:E.getDate(),month:E.getMonth(),year:E.getFullYear()})}asFormArray(E){return E}enableRemoveDateButton(){return!!this.datePickerValues&&this.datePickerValues.some(E=>this.isExisting({day:E.getDate(),month:E.getMonth(),year:E.getFullYear()}))}enableCalenderAddDateButton(){return!!this.datePickerValues&&this.datePickerValues.some(E=>!this.isExisting({day:E.getDate(),month:E.getMonth(),year:E.getFullYear()}))}resetSelection(){this.datePickerValues=null}addDate(E){this.isAddMenuOpen=!1;const _e=E.filter(Me=>!this.isExisting({day:Me.getDate(),month:Me.getMonth(),year:Me.getFullYear()}));_e&&(_e.forEach(Me=>{this._addAvailability(Me)}),this.datesAdded(_e.length))}addDateSeries(E){this.isAddMenuOpen=!1,this.openAddDateSeriesDialog()}openAddDateSeriesDialog(){this._openDialog($t,{formHandler:this.formHandler,startDate:this.datePickerValues&&this.datePickerValues.length>0?this.datePickerValues[0]:void 0,languages:this.formHandler.getObjectLanguages()},E=>this._handleAddDateSeriesConfirmation(E))}_openDialog(E,_e={},Me){this.dialogService.openDialog(E,_e,{minWidth:650},Me)}_handleAddDateSeriesConfirmation(E){this._createDateSeries(E).pipe((0,Ce.q)(1)).subscribe(Me=>{this._addAvailabilities(Me,E.languages,E.info)},Me=>{this.userMessageService.showError("imxeventmanager.event.edit.panels.dates.event-date-series-generation-failed")})}addAvailability(){this._addAvailability(void 0)}_addAvailabilities(E,_e,Me){E.forEach(Ln=>this._addAvailability(Ln,_e,Me))}_addAvailability(E,_e,Me){const Ln=this.formHandler.addNewCollectionRow("availabilities");_e?Ln.controls.languages.patchValue(_e.map(to=>to.id)):Ln.controls.languages&&Ln.controls.languages.patchValue(this.formHandler.getObjectLanguages().map(to=>to.id)),Me&&Ln.controls.info.patchValue(Me.value),this.availabilityByDateSelection&&(E&&Ln.get("fromDate").setValue(E),this._adjustToDate(Ln,Number.parseInt(this.formHandler.formGroup.get("duration").value,10)))}_adjustToDate(E,_e){const Me=E.get("fromDate").value,Ln=new Date(Me.getTime());_e&&_e>0&&Ln.setDate(Ln.getDate()+_e),E.get("toDate").setValue(Ln)}removeAllDates(){const E=this.formHandler.formGroup.get("availabilities").value.length;this.formHandler.formGroup.get("availabilities").clear(),this.datesRemoved(E);const _e=document.getElementById("availabilities");_e&&_e.scrollIntoView({behavior:"smooth",block:"start"})}removeDate(E){if(E){let _e=0;E.forEach(Me=>{let Ln=this.findEventDatesRowByDate(Me);for(;Ln>-1;)_e++,this.formHandler.removeLineFromCollection("availabilities",Ln),Ln=this.findEventDatesRowByDate(Me)}),this.datesRemoved(_e),this.datePickerValues=null}}_createDateSeries({dateSeries:E}){const{dateSeriesInterval:_e,startDate:Me,endDate:Ln,weekly:to,monthly:ha}=E;let zs;const cc={startDate:Me,endDate:Ln};switch(_e){case l.DateSeriesInterval.Daily:zs=this.createDailyDateSeries$(cc);break;case l.DateSeriesInterval.Weekly:{const Gl={...cc,...to};zs=this.createWeeklyDateSeries$(Gl);break}case l.DateSeriesInterval.Monthly:{const Gl={...cc,...ha};zs=this.createMonthlyDateSeries$(Gl);break}}return zs}createDailyDateSeries$(E){const _e=this.buildDateSeriesParams(E);return this.dataAccessService.generateAvailabilityDates$("daily",_e)}createWeeklyDateSeries$({startDate:E,endDate:_e,weekGap:Me,weekDays:Ln}){const to={...this.buildDateSeriesParams({startDate:E,endDate:_e}),gap:`${Me}`,weekDays:Ln};return this.dataAccessService.generateAvailabilityDates$("weekly",to)}createMonthlyDateSeries$(E){const{startDate:_e,endDate:Me,monthlyDateSeriesDefinition:Ln}=E,to=this.buildDateSeriesParams({startDate:_e,endDate:Me});return Ln===l.MonthlyDateSeriesDefinition.DayOfWeek?this.createMonthlyDateSeriesFromWeeklyDefinition(E,to):this.createMonthlyDateSeriesFromMonthlyDefinition(E,to)}createMonthlyDateSeriesFromWeeklyDefinition(E,_e){const{weeklyDefinitionWeekDay:Me,weeklyDefinitionGap:Ln,weeklyDefinitionMonthGap:to}=E,ha={..._e,specificDayOfWeek:"true",dayOfWeek:`${Me}`,gap:`${Ln}`,monthGap:`${to}`};return this.dataAccessService.generateAvailabilityDates$("monthly",ha)}createMonthlyDateSeriesFromMonthlyDefinition(E,_e){const{monthlyDefinitionDayOfMonth:Me,monthlyDefinitionMonthGap:Ln}=E,to={..._e,specificDayOfMonth:"true",dayOfMonth:`${Me}`,monthGap:`${Ln}`};return this.dataAccessService.generateAvailabilityDates$("monthly",to)}buildDateSeriesParams({startDate:E,endDate:_e}){return{startDate:this.createDateString(E),endDate:this.createDateString(_e)}}createDateString(E){return this.formatterService.formatDate(E,"YYYY-MM-dd")}datesAdded(E){this.userMessageService.showInfo("imxeventmanager.event.edit.panels.dates.dates-added",{count:E}),this.datePickerValues=null}datesRemoved(E){this.userMessageService.showInfo("imxeventmanager.event.edit.panels.dates.dates-removed",{count:E}),this.datePickerValues=null}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(s.qB),i.Y36(l.UserMessageService),i.Y36(s.Pc),i.Y36(i.sBO),i.Y36(l.FormatterService),i.Y36(l.DialogService),i.Y36(tt.N))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-offer-availabilities-form-panel"]],features:[i.qOj,i.TTD],decls:13,vars:9,consts:[["addSeries",""],[1,"form__content-panel","availabilities"],["id","availabilities",1,"anchor"],["translate",""],[1,"form__content-row"],[1,"form__content-group"],[3,"field","control","form","formHandler","config"],[4,"ngIf"],[1,"imx-button","prio2",3,"click"],[4,"ngIf","ngIfElse"],["classicModel",""],["expanded","true","title","imxeventmanager.event.edit.panels.dates.calendar-title",3,"titleDescription"],[1,"calendar"],[3,"ngModel","inline","selectionMode","numberOfMonths","disabledDates","defaultDate","minDate","showOtherMonths","firstDayOfWeek","ngModelChange"],["pTemplate","date"],["class","button-bar",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],["expanded","true","title","imxtools.offer.edit.panels.availabilities.availability-dates-title",3,"titleDescription"],[3,"formHandler","displayedColumns","disableToDate","record"],[3,"ngClass"],[1,"button-bar"],[1,"dropdown-button-bar"],[1,"button-dropdown-wrapper"],[1,"button-dropdown-content",3,"hidden"],[4,"ngTemplateOutlet"],[1,"imx-button","prio2",3,"disabled","click"],["translate","",1,"imx-button","prio2",3,"disabled","click"],[1,"imx-button","prio2","dropdown",3,"click"],["class","icon icon-chevron-downBold",4,"ngIf"],["class","icon icon-chevron-upBold",4,"ngIf"],[1,"icon","icon-chevron-downBold"],[1,"icon","icon-chevron-upBold"],["translate","",1,"imx-button","prio2",3,"click"],[3,"formHandler","displayedColumns","record"]],template:function(_e,Me){1&_e&&(i.YNc(0,Qc,3,3,"ng-template",null,0,i.W1O),i.TgZ(2,"div",1),i._UZ(3,"div",2),i.TgZ(4,"h2",3),i._uU(5,"imxtools.offer.edit.panels.availabilities.header"),i.qZA(),i.TgZ(6,"div",4)(7,"div",5)(8,"h3",3),i._uU(9,"imxtools.offer.edit.panels.availabilities.information"),i.qZA(),i._UZ(10,"imx-form-control",6),i.YNc(11,bf,4,2,"ng-container",7),i.ALo(12,"async"),i.qZA()()()),2&_e&&(i.xp6(3),i.uIk("data-scroll-id","availabilities"),i.xp6(7),i.Q6J("field",Me.formHandler.formConfiguration.findFormFieldById("duration"))("control",Me.formHandler.formGroup.controls.duration)("form",Me.formHandler.formGroup.get("duration"))("formHandler",Me.formHandler)("config",Me.formHandler.formConfiguration),i.xp6(),i.Q6J("ngIf",i.lcZ(12,7,Me.formHandler.hasReadPermission("availabilities"))))},dependencies:[Y.A,Te.X,x.mk,x.O5,x.tP,u.JJ,u.On,m.Pi,ai.f,wt.jx,Ai.Z,ao.U,Ws,x.Ov,m.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}  p-calendar .p-datepicker-group-container{background:#fff;border:1px solid #ced4e0;position:static;display:flex;flex-direction:row;flex-wrap:wrap;padding:10px}  p-calendar .p-datepicker-group-container .p-datepicker-header{padding:0 0 10px}  p-calendar .p-datepicker-group-container .p-datepicker-header .p-datepicker-prev,   p-calendar .p-datepicker-group-container .p-datepicker-header .p-datepicker-next{top:0;cursor:pointer}  p-calendar .p-datepicker-group-container .p-datepicker-year{margin:0 0 0 .25em}  p-calendar .p-datepicker-group-container th{font-weight:400;color:#000;font-size:12px;padding:.5em}  p-calendar .p-datepicker-group-container td{border:0;padding:0}  p-calendar .p-datepicker-group-container td:hover:not(.p-datepicker-other-month){cursor:pointer}  p-calendar .p-datepicker-group-container td .p-ripple{border:0;border-collapse:collapse;display:block;font:400 14px/20px GT Walsheim,Arial,sans-serif;font-size:.9em;padding:0;text-align:center;text-decoration:none}  p-calendar .p-datepicker-group-container td .p-ripple span{padding:5px;display:inline-block;text-align:center;width:100%}  p-calendar .p-datepicker-group-container td .p-ripple span.existing-date{border-radius:50%}  p-calendar .p-datepicker-group-container td .p-ripple.p-disabled{color:#9da8c1}  p-calendar .p-datepicker-group-container .p-datepicker-title{font-size:12px}  p-calendar .p-datepicker-group-container .p-datepicker-title .p-link{color:#000}  p-calendar .p-datepicker-multiple-month.p-datepicker-inline .p-datepicker-group-container .p-datepicker-group{flex:0 1 auto;margin-right:15px}.calendar[_ngcontent-%COMP%]{margin-bottom:10px}.button-bar[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:40px;display:flex;justify-content:space-between}.button-bar[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%] ~ .imx-button[_ngcontent-%COMP%]{margin-left:1px}.button-bar-dropdown[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:40px;display:flex;justify-content:space-between}.button-bar-dropdown[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%] ~ .imx-button[_ngcontent-%COMP%]{margin-left:1px}[_nghost-%COMP%]  .mat-mdc-expansion-panel-content>.mat-mdc-expansion-panel-body{padding:unset!important}.dropdown-button-bar[_ngcontent-%COMP%]{position:relative;margin-right:10px}.dropdown-button-bar[_ngcontent-%COMP%]   .button-dropdown-wrapper[_ngcontent-%COMP%]{white-space:nowrap;display:inline-block;flex-grow:1}.dropdown-button-bar[_ngcontent-%COMP%]   .button-dropdown-wrapper[_ngcontent-%COMP%] > .imx-button[_ngcontent-%COMP%]{box-shadow:none}.dropdown-button-bar[_ngcontent-%COMP%]   .button-dropdown-wrapper[_ngcontent-%COMP%] > .imx-button.upper[_ngcontent-%COMP%]{width:calc(100% - 35px)}.dropdown-button-bar[_ngcontent-%COMP%]   .button-dropdown-wrapper[_ngcontent-%COMP%] > .imx-button.dropdown[_ngcontent-%COMP%]{border-left:1px solid rgba(230,233,239,.5)}.dropdown-button-bar[_ngcontent-%COMP%]   .button-dropdown-content[_ngcontent-%COMP%]{position:absolute;width:100%;z-index:1;top:35px}.dropdown-button-bar[_ngcontent-%COMP%]   .button-dropdown-content[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{box-shadow:1px 1px 4px #0003;width:100%}"],changeDetection:0})}return te})();var Gp=a(57729);function Cf(te,Pn){if(1&te&&(i.ynx(0),i._UZ(1,"imx-edit-geo-regions-advanced",13),i.BQk()),2&te){const E=i.oxw(3);i.xp6(),i.Q6J("formHandler",E.formHandler)("record",E.record)("showGeopath",!1)}}function nf(te,Pn){if(1&te&&i._UZ(0,"imx-edit-geo-regions",14),2&te){const E=i.oxw(3);i.Q6J("formHandler",E.formHandler)}}function r_(te,Pn){if(1&te&&(i.ynx(0),i.YNc(1,Cf,2,3,"ng-container",11)(2,nf,1,1,"ng-template",null,12,i.W1O),i.BQk()),2&te){const E=i.MAs(3),_e=i.oxw(2);i.xp6(),i.Q6J("ngIf",_e.advancedRegionManagementEnabled)("ngIfElse",E)}}function au(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"div",1),i._UZ(1,"div",2),i.TgZ(2,"h2",3),i._uU(3,"imxplatform.common-entity.edit.panels.geo.title"),i.qZA(),i.TgZ(4,"div",4)(5,"div",5)(6,"h3",3),i._uU(7,"imxtools.offer.edit.panels.geo.sub-title"),i.qZA(),i.TgZ(8,"div",6)(9,"mat-checkbox",7),i._uU(10),i.ALo(11,"translate"),i.qZA()()()(),i.TgZ(12,"imx-edit-geo-info",8),i.ALo(13,"async"),i.TgZ(14,"button",9),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw();return i.KtG(Me.copyFromAddressbase())}),i.ALo(15,"async"),i._uU(16),i.ALo(17,"translate"),i.qZA()(),i.YNc(18,r_,4,2,"ng-container",10),i.qZA()}if(2&te){const E=i.oxw();i.xp6(),i.uIk("data-scroll-id","geo"),i.xp6(8),i.Q6J("formControl",E.geoCodeDataFromAddressbase),i.xp6(),i.hij(" ",i.lcZ(11,9,"entity.Offer.geoCodeDataFromAddressbase")," "),i.xp6(2),i.Q6J("formHandler",E.formHandler)("record",E.record)("mapDisabled",i.lcZ(13,11,E.isDisabled$)),i.xp6(2),i.Q6J("disabled",i.lcZ(15,13,E.isDisabled$)),i.xp6(2),i.hij(" ",i.lcZ(17,15,"imxtools.offer.edit.panels.geo.get-from-contact")," "),i.xp6(2),i.Q6J("ngIf",E.offerWithRegionsEnabled)}}let O_=(()=>{class te extends l.AbstractCoreDataObjectFormPanelComponent{constructor(E,_e,Me,Ln,to){super(E,_e),this.entitiesMgr=E,this.dialog=_e,this.imxToolsDataAccessService=Me,this.formatterService=Ln,this.configurationProvider=to,this.logger=(0,l.getLogger)("OfferGeoFormPanelComponent",Mi.H.name)}onRecordChange(){super.onRecordChange(),this.geoCodeDataFromAddressbase=this.formHandler.formGroup.get("geoCodeDataFromAddressbase"),(0,H.aj)([this.formHandler.hasEditPermission("geoInfo"),this.formHandler.hasSavePermission()]).pipe((0,O.U)(([E,_e])=>!E||!_e)).subscribe(E=>E?this.geoCodeDataFromAddressbase.disable():this.geoCodeDataFromAddressbase.enable()),this.geoCodeDataFromAddressbase&&(this.isDisabled$=this.geoCodeDataFromAddressbase.valueChanges.pipe((0,Ua.O)(this.record.geoCodeDataFromAddressbase),(0,Ue.b)(E=>{this.toggleFieldState(E)}),(0,P.R)(this.destroy$)))}copyFromAddressbase(){const E=this.formHandler.formGroup.get("addressbaseId");if(E){const _e=E.value;_e?this.imxToolsDataAccessService.getAddressbaseById(_e).subscribe(Me=>{if(Me.geoInfo&&Me.geoInfo.street&&Me.geoInfo.streetNo&&Me.geoInfo.zipcode&&Me.geoInfo.city&&Me.geoInfo.country?(this.setValue("geoInfo.street",Me.geoInfo.street),this.setValue("geoInfo.streetNo",Me.geoInfo.streetNo),this.setValue("geoInfo.zipcode",Me.geoInfo.zipcode),this.setValue("geoInfo.city",Me.geoInfo.city),this.setValue("geoInfo.country",Me.geoInfo.country)):Me.contact1&&Me.contact1.address&&(this.setValue("geoInfo.street",Me.contact1.address.street),this.setValue("geoInfo.streetNo",Me.contact1.address.streetNo),this.setValue("geoInfo.zipcode",Me.contact1.address.zipcode),this.setValue("geoInfo.city",Me.contact1.address.city),this.setValue("geoInfo.country",Me.contact1.address.country)),Me.geoInfo&&Me.geoInfo.coordinates&&(this.setCoordinateValue("geoInfo.coordinates.longitude",Me.geoInfo.coordinates.longitude),this.setCoordinateValue("geoInfo.coordinates.latitude",Me.geoInfo.coordinates.latitude)),Me.geoInfo&&Me.geoInfo.geoSystems){const Ln=Object.keys(Me.geoInfo.geoSystems);this.setValue("geoInfo.geoSystems",Ln.filter(to=>!0===Me.geoInfo.geoSystems[to]))}}):this.logger.warn("Can't copy data from addressbase. Can't get addressbase id from form-field: addressbaseId")}}setValue(E,_e){const Me=this.formHandler.formGroup.get(E);Me&&Me.setValue(_e)}setCoordinateValue(E,_e){const Me=this.formHandler.formGroup.get(E);Me&&Me.setValue(this.formatterService.formatNumber(_e,"#.#####"))}toggleFieldState(E){this.setFieldState("geoInfo.street",E,!1),this.setFieldState("geoInfo.streetNo",E,!1),this.setFieldState("geoInfo.zipcode",E,!1),this.setFieldState("geoInfo.city",E,!1),this.setFieldState("geoInfo.country",E,!1),this.setFieldState("geoInfo.coordinates.longitude",E,!1),this.setFieldState("geoInfo.coordinates.latitude",E,!1),this.setFieldState("geoInfo.geoSystems",E,!1)}setFieldState(E,_e,Me=!0){const Ln=this.formHandler.formGroup.get(E);Ln&&(_e?(Ln.disable({emitEvent:!1,onlySelf:!0}),Me&&Ln.setValue(null)):Ln.enable({emitEvent:!1,onlySelf:!0}))}get advancedRegionManagementEnabled(){return"true"==this.configurationProvider.getStringFromSnapshot(l.ImxPlatformConfigParameter.PLATFORM_ADVANCED_REGION_MANAGEMENT_ENABLED,"false")}get offerWithRegionsEnabled(){return this.configurationProvider.getBooleanFromSnapshot(hs.s.IMXTOOLS_OFFER_WITH_REGIONS,!1)}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(l.ImxEntitiesMgrService),i.Y36(B.uw),i.Y36(tt.N),i.Y36(l.FormatterService),i.Y36(l.ConfigurationProvider))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-offer-geo-form-panel"]],hostAttrs:[1,"imx-offer-geo-form-panel"],features:[i.qOj],decls:2,vars:3,consts:[["class","form__content-panel geo",4,"ngIf"],[1,"form__content-panel","geo"],["id","geo",1,"anchor"],["translate",""],[1,"form__content-row"],[1,"form__content-group"],[1,"form__content-field-row"],[1,"small",3,"formControl"],[3,"formHandler","record","mapDisabled"],[1,"imx-button","prio2","bottom",3,"disabled","click"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["defaultRegionComponent",""],[3,"formHandler","record","showGeopath"],[3,"formHandler"]],template:function(_e,Me){1&_e&&(i.YNc(0,au,19,17,"div",0),i.ALo(1,"async")),2&_e&&i.Q6J("ngIf",i.lcZ(1,1,Me.formHandler.hasReadPermission("geoInfo")))},dependencies:[ae.S,q.e,j.L,x.O5,u.JJ,ln.oG,u.oH,m.Pi,x.Ov,m.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}"],changeDetection:0})}return te})();function R_(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"div",6)(1,"div",14)(2,"h3",2),i._uU(3,"imxtools.offer.edit.panels.base-data.addressbaseId"),i.qZA(),i._UZ(4,"imx-autocomplete",15),i.TgZ(5,"button",16),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(2);return i.KtG(Me.openAddressbase(null==Me.formHandler.formGroup.controls.addressbaseId?null:Me.formHandler.formGroup.controls.addressbaseId.value))}),i._uU(6),i.ALo(7,"translate"),i.qZA()()()}if(2&te){const E=i.oxw(2);i.xp6(4),i.Q6J("field",E.formHandler.formConfiguration.findFormFieldById("addressbaseId"))("formHandler",E.formHandler)("control",E.formHandler.formGroup.controls.addressbaseId)("autocompleteService",E.addressbaseAutocompleteService),i.xp6(),i.Q6J("disabled",null==(null==E.formHandler.formGroup.controls.addressbaseId?null:E.formHandler.formGroup.controls.addressbaseId.value)),i.xp6(),i.hij("",i.lcZ(7,6,"imxtools.offer.edit.panels.base-data.open-addressbase")," ")}}function Ym(te,Pn){if(1&te&&(i.ynx(0),i.YNc(1,R_,8,8,"div",5),i.BQk()),2&te){const E=i.oxw();i.xp6(),i.Q6J("hasFieldReadPermission","addressbaseId")("hasFieldReadPermissionFormHandler",E.formHandler)}}function k_(te,Pn){1&te&&i.GkF(0)}const N_=()=>({$implicit:"additionalInfo"});function U_(te,Pn){if(1&te&&(i.TgZ(0,"div",6)(1,"div",14),i.YNc(2,k_,1,0,"ng-container",17),i.qZA()()),2&te){i.oxw();const E=i.MAs(29);i.xp6(2),i.Q6J("ngTemplateOutlet",E)("ngTemplateOutletContext",i.DdM(2,N_))}}const Tm=te=>({clientIds:te});function P_(te,Pn){if(1&te&&i._UZ(0,"imx-autocomplete",23),2&te){const E=i.oxw(3);i.Q6J("field",E.formHandler.formConfiguration.findFormFieldById("addressbaseUser"))("formHandler",E.formHandler)("control",E.formHandler.formGroup.controls.addressbaseUser)("autocompleteService",E.userAutocompleteService)("autocompleteFilter",i.VKq(6,Tm,null==E.clientAndParentClientIds?null:E.clientAndParentClientIds.join(",")))("disableControl",!E.hasAssignUserPermission()||null==E.formHandler.getFormValue("client"))}}function rf(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"button",25),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(4);return i.KtG(Me.resetAssignedUser())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&te&&(i.xp6(),i.hij(" ",i.lcZ(2,1,"imxplatform.common.reset")," "))}function vp(te,Pn){if(1&te&&(i.ynx(0),i.YNc(1,rf,3,3,"button",24),i.BQk()),2&te){const E=i.oxw(3);i.xp6(),i.Q6J("hasFieldWritePermission","addressbaseUser")("hasFieldWritePermissionFormHandler",E.formHandler)}}function yf(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"button",27),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(4);return i.KtG(Me.createUser())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&te){const E=i.oxw(4);i.Q6J("disabled",void 0===E.formHandler.getFormModel().client),i.xp6(),i.hij(" ",i.lcZ(2,2,"imxtools.addressbase.edit.panels.base-data.create-user")," ")}}function af(te,Pn){if(1&te&&(i.ynx(0),i.YNc(1,yf,3,4,"button",26),i.BQk()),2&te){const E=i.oxw(3);i.xp6(),i.Q6J("hasFieldWritePermission","addressbaseUser")("hasFieldWritePermissionFormHandler",E.formHandler)}}function Of(te,Pn){if(1&te&&(i.TgZ(0,"div",20),i.YNc(1,P_,1,8,"imx-autocomplete",21),i.TgZ(2,"div",22),i.YNc(3,vp,2,2,"ng-container",3)(4,af,2,2,"ng-container",3),i.qZA()()),2&te){const E=i.oxw(2);i.xp6(),i.Q6J("hasFieldReadPermission","addressbaseUser")("hasFieldReadPermissionFormHandler",E.formHandler),i.xp6(2),i.Q6J("ngIf",E.hasAssignUserPermission()),i.xp6(),i.Q6J("ngIf",E.hasUserCreatePermission())}}function B_(te,Pn){if(1&te&&(i.TgZ(0,"div",14)(1,"h3",2),i._uU(2),i.qZA(),i._UZ(3,"imx-edit-client",18),i.YNc(4,Of,5,4,"div",19),i.qZA()),2&te){const E=i.oxw();i.xp6(2),i.Oqu(E.getClientLabel()),i.xp6(),i.Q6J("formHandler",E.formHandler)("feasibleClients",E.feasibleClients)("rootClients",E.rootClients),i.xp6(),i.Q6J("ngIf",E.formHandler.formConfiguration.findFormFieldById("addressbaseUser"))}}function sf(te,Pn){1&te&&i.GkF(0)}const Pf=()=>({$implicit:"types"});function Mf(te,Pn){if(1&te&&(i.TgZ(0,"div",29),i.YNc(1,sf,1,0,"ng-container",17),i.qZA()),2&te){i.oxw(2);const E=i.MAs(29);i.xp6(),i.Q6J("ngTemplateOutlet",E)("ngTemplateOutletContext",i.DdM(2,Pf))}}function a_(te,Pn){if(1&te&&(i.ynx(0),i.YNc(1,Mf,2,3,"div",28),i.BQk()),2&te){const E=i.oxw();i.xp6(),i.Q6J("hasFieldReadPermission","types")("hasFieldReadPermissionFormHandler",E.formHandler)}}function Z_(te,Pn){if(1&te&&i._UZ(0,"imx-edit-tags",30),2&te){const E=i.oxw();i.Q6J("formHandler",E.formHandler)("tagCollectionDataSource",E.tagCollectionDataSource)}}function s_(te,Pn){1&te&&i.GkF(0)}function lf(te,Pn){1&te&&i.GkF(0)}const bp=()=>({$implicit:"bookingLink"}),lp=()=>({$implicit:"bookingLinkText"});function M_(te,Pn){if(1&te&&(i.TgZ(0,"div",6)(1,"div",14)(2,"h3",2),i._uU(3,"imxtools.common-entity.edit.panels.base-data.booking-info"),i.qZA(),i.TgZ(4,"div",22),i.YNc(5,s_,1,0,"ng-container",17)(6,lf,1,0,"ng-container",17),i.qZA()()()),2&te){i.oxw();const E=i.MAs(29);i.xp6(5),i.Q6J("ngTemplateOutlet",E)("ngTemplateOutletContext",i.DdM(4,bp)),i.xp6(),i.Q6J("ngTemplateOutlet",E)("ngTemplateOutletContext",i.DdM(5,lp))}}function cf(te,Pn){1&te&&i.GkF(0)}const H_=()=>({$implicit:"paymentOptions"});function Wf(te,Pn){if(1&te&&(i.TgZ(0,"div",6)(1,"div",14)(2,"h3",2),i._uU(3,"entity.Addressbase.paymentOptions"),i.qZA(),i.YNc(4,cf,1,0,"ng-container",17),i.qZA()()),2&te){i.oxw();const E=i.MAs(29);i.xp6(4),i.Q6J("ngTemplateOutlet",E)("ngTemplateOutletContext",i.DdM(2,H_))}}function Tf(te,Pn){1&te&&(i.TgZ(0,"p",35),i._uU(1,"imxplatform.common.no-records"),i.qZA())}function l_(te,Pn){1&te&&i._UZ(0,"tr",50)}function ym(te,Pn){1&te&&i._UZ(0,"tr",51)}function Cp(te,Pn){if(1&te&&(i.TgZ(0,"th",52),i._uU(1),i.qZA()),2&te){const E=i.oxw(3);i.xp6(),i.Oqu(E.formHandler.getFormFieldLabel("inputFields:inputFieldType"))}}function G_(te,Pn){if(1&te&&(i.TgZ(0,"td",53),i._UZ(1,"imx-form-control",54),i.qZA()),2&te){const E=Pn.$implicit,_e=i.oxw(3);i.Q6J("formGroup",E),i.xp6(),i.Q6J("field",_e.formHandler.formConfiguration.findFormFieldById("inputFields:inputFieldType"))("control",E.controls.inputFieldType)("form",_e.formHandler.formGroup.get("inputFields"))("formHandler",_e.formHandler)("config",_e.formHandler.formConfiguration)}}function c_(te,Pn){if(1&te&&(i.TgZ(0,"th",52),i._uU(1),i.qZA()),2&te){const E=i.oxw(3);i.xp6(),i.Oqu(E.formHandler.getFormFieldLabel("inputFields:productline"))}}function be(te,Pn){if(1&te&&(i.TgZ(0,"td",53),i._UZ(1,"imx-select",55),i.qZA()),2&te){const E=Pn.$implicit,_e=i.oxw(3);i.Q6J("formGroup",E),i.xp6(),i.Q6J("field",_e.formHandler.formConfiguration.findFormFieldById("inputFields:productline"))("control",E.controls.productline)("form",_e.formHandler.formGroup.get("inputFields"))("formHandler",_e.formHandler)("optionProvider",_e.getProductlinesForInputFieldType(E))}}function we(te,Pn){if(1&te&&(i.TgZ(0,"th",52),i._uU(1),i.qZA()),2&te){const E=i.oxw(3);i.xp6(),i.Oqu(E.formHandler.getFormFieldLabel("inputFields:inputFieldValue"))}}function ie(te,Pn){if(1&te&&(i.TgZ(0,"td",53),i._UZ(1,"imx-form-control",54),i.qZA()),2&te){const E=Pn.$implicit,_e=i.oxw(3);i.Q6J("formGroup",E),i.xp6(),i.Q6J("field",_e.formHandler.formConfiguration.findFormFieldById("inputFields:inputFieldValue"))("control",E.controls.inputFieldValue)("form",_e.formHandler.formGroup.get("inputFields"))("formHandler",_e.formHandler)("config",_e.formHandler.formConfiguration)}}function Ge(te,Pn){if(1&te&&(i.TgZ(0,"th",56),i._uU(1),i.qZA()),2&te){const E=i.oxw(3);i.xp6(),i.Oqu(E.formHandler.getFormFieldLabel("inputFields:sortingValue"))}}function Rt(te,Pn){if(1&te&&(i.TgZ(0,"td",57),i._UZ(1,"imx-form-control",54),i.qZA()),2&te){const E=Pn.$implicit,_e=i.oxw(3);i.Q6J("formGroup",E),i.xp6(),i.Q6J("field",_e.formHandler.formConfiguration.findFormFieldById("inputFields:sortingValue"))("control",E.controls.sortingValue)("form",_e.formHandler.formGroup.get("inputFields"))("formHandler",_e.formHandler)("config",_e.formHandler.formConfiguration)}}function Zn(te,Pn){1&te&&i._UZ(0,"th",58)}function io(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"a",61),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw().$implicit,Ln=i.oxw(3);return i.KtG(Ln.formHandler.removeLineFromCollection("inputFields",Ln.inputFieldCollectionDataSource.filteredData.indexOf(Me)))}),i.qZA()}}function Ro(te,Pn){if(1&te&&(i.TgZ(0,"td",59),i.YNc(1,io,1,0,"a",60),i.qZA()),2&te){const E=Pn.$implicit,_e=i.oxw(3);i.Q6J("formGroup",E),i.xp6(),i.Q6J("hasFieldWritePermission","inputFields")("hasFieldWritePermissionFormHandler",_e.formHandler)}}function ar(te,Pn){if(1&te&&(i.TgZ(0,"table",36),i.YNc(1,l_,1,0,"tr",37)(2,ym,1,0,"tr",38),i.ynx(3,39),i.YNc(4,Cp,2,1,"th",40)(5,G_,2,6,"td",41),i.BQk(),i.ynx(6,42),i.YNc(7,c_,2,1,"th",40)(8,be,2,6,"td",41),i.BQk(),i.ynx(9,43),i.YNc(10,we,2,1,"th",40)(11,ie,2,6,"td",41),i.BQk(),i.ynx(12,44),i.YNc(13,Ge,2,1,"th",45)(14,Rt,2,6,"td",46),i.BQk(),i.ynx(15,47),i.YNc(16,Zn,1,0,"th",48)(17,Ro,2,3,"td",49),i.BQk(),i.qZA()),2&te){const E=i.oxw(2);i.Q6J("dataSource",E.inputFieldCollectionDataSource),i.xp6(),i.Q6J("matHeaderRowDef",E.inputFieldCollectionColumns),i.xp6(),i.Q6J("matRowDefColumns",E.inputFieldCollectionColumns)}}function Or(te,Pn){if(1&te&&i._UZ(0,"imx-form-control",62),2&te){const E=i.oxw(2);i.Q6J("field",E.formHandler.formConfiguration.findFormFieldById("addInputField"))("control",E.formHandler.formGroup.get("addInputField"))("form",E.formHandler.formGroup)("formHandler",E.formHandler)("config",E.formHandler.formConfiguration)}}function La(te,Pn){if(1&te&&(i.TgZ(0,"div",6)(1,"div",14)(2,"h3",2),i._uU(3,"imxtools.common-entity.edit.panels.base-data.input-fields"),i.qZA(),i.YNc(4,Tf,2,0,"ng-template",null,31,i.W1O),i.TgZ(6,"div",32),i.YNc(7,ar,18,3,"table",33),i.qZA(),i.YNc(8,Or,1,5,"imx-form-control",34),i.qZA()()),2&te){const E=i.MAs(5),_e=i.oxw();i.xp6(7),i.Q6J("ngIf",_e.inputFieldCollectionDataSource&&_e.inputFieldCollectionDataSource.data.length>0)("ngIfElse",E),i.xp6(),i.Q6J("hasFieldWritePermission","inputFields")("hasFieldWritePermissionFormHandler",_e.formHandler)}}function za(te,Pn){if(1&te&&(i.TgZ(0,"div",6)(1,"div",14)(2,"h3",2),i._uU(3,"imxplatform.common-entity.edit.panels.base-data.extended-attributes"),i.qZA(),i._UZ(4,"imx-edit-extended-attributes",63),i.qZA()()),2&te){const E=i.oxw();i.xp6(4),i.Q6J("formHandler",E.formHandler)("formGroup",E.formHandler.formGroup)("record",E.record)("extendedAttributes",E.extendedAttributesForCoreDateObject)}}function Ol(te,Pn){1&te&&i.GkF(0)}const fl=()=>({$implicit:"attributes"});function As(te,Pn){if(1&te&&(i.TgZ(0,"div",6)(1,"div",14)(2,"h3",2),i._uU(3,"imxplatform.common-entity.edit.panels.base-data.attributes"),i.qZA(),i.YNc(4,Ol,1,0,"ng-container",17),i.qZA()()),2&te){i.oxw();const E=i.MAs(29);i.xp6(4),i.Q6J("ngTemplateOutlet",E)("ngTemplateOutletContext",i.DdM(2,fl))}}function Xs(te,Pn){if(1&te&&i._UZ(0,"imx-form-control",54),2&te){const E=Pn.$implicit,_e=i.oxw();i.Q6J("field",_e.formHandler.formConfiguration.findFormFieldById(E))("control",_e.formHandler.formGroup.get(E))("form",_e.formHandler.formGroup)("formHandler",_e.formHandler)("config",_e.formHandler.formConfiguration)}}const kc=(te,Pn)=>({formHandler:te,record:Pn}),Vc=(te,Pn)=>({editObjectLanguages:te,suggestPermaLink:Pn}),Ed=()=>["bookingLink","bookingLinkText"];let am=(()=>{class te extends Qi{constructor(E,_e,Me,Ln,to,ha,zs,cc,Gl,id,zd){super(E,_e,Me,Ln,to,ha,zs,cc,Gl,id),this.toolsDataAccessService=E,this.addressbaseAutocompleteService=_e,this.userAutocompleteService=Me,this.entitiesMgr=Ln,this.runtimeContext=to,this.router=ha,this.dialog=zs,this.changeDetectorRef=cc,this.translateService=Gl,this.inputFieldTypeOptionProviderService=id,this.configurationProvider=zd,this.contextNavigationService=(0,i.f3M)(l.ContextNavigationService)}ngOnInit(){super.ngOnInit(),this.paymentOptionsAvailable=(0,I.of)(!1),this.configurationProvider.getBooleanFromSnapshot(hs.s.IMXTOOLS_OFFER_ALLOWED_WITHOUT_ADDRESSBASE,!1)&&(this.formHandler.formConfiguration.findFormFieldById("addressbaseId").required=!1,this.formHandler.formGroup.get("addressbaseId").setValidators(null),this.formHandler.formGroup.get("addressbaseId").updateValueAndValidity({emitEvent:!1}))}getClientLabel(){return"imxtools.offer.edit.panels.base-data.client-group"}openAddressbase(E){this.formHandler.formGroup.dirty?this.dialog.open(l.DiscardDialogComponent,{maxWidth:470,data:{i18n:"imxtools.offer.edit.dialog-on-reload",title:this.record.title,objectId:this.record.id}}).afterClosed().subscribe(_e=>{_e&&this.contextNavigationService.navigateToCoreEntityContextual(["addressbases","edit",E])}):this.contextNavigationService.navigateToCoreEntityContextual(["addressbases","edit",E])}isInputFieldTypeUsable(E){return E.usedForOffers}getUniquePermalink(E,_e){return this.toolsDataAccessService.suggestPermaLinkForOffer(E,_e)}filterProductlineFn(E){return E.offerDetails&&Object.keys(E.offerDetails).length>0}onObjectLanguageChange(E,_e){super.onObjectLanguageChange(E,_e),(E.length>0||_e.length>0)&&this.formHandler.formGroup.get("availabilities").controls.forEach(Ln=>this.adjustLanguagesForFormControl(Ln,E,_e))}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(tt.N),i.Y36(ka.s),i.Y36(l.UserAutocompleteService),i.Y36(s.qB),i.Y36(s.Ze),i.Y36(n.F0),i.Y36(B.uw),i.Y36(i.sBO),i.Y36(m.sK),i.Y36(l.InputFieldTypeOptionProviderService),i.Y36(l.ConfigurationProvider))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-offer-base-data-form-panel"]],hostAttrs:[1,"imx-offer-base-data-form-panel"],features:[i.qOj],decls:30,vars:46,consts:[[1,"form__content-panel","basicdata"],["id","basicdata",1,"anchor"],["translate",""],[4,"ngIf"],[3,"imxSlotComponent","inputs","outputs"],["class","form__content-row",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[1,"form__content-row"],["class","form__content-group",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[3,"formHandler"],[3,"formHandler","tagCollectionDataSource",4,"ngIf"],["class","form__content-row",4,"hasAnyFieldReadPermission","hasAnyFieldReadPermissionFormHandler"],["class","form__content-row",4,"ngIf"],[3,"formHandler","filterProductlineFn"],["imxControl",""],[1,"form__content-group"],[1,"imx-form-control",3,"field","formHandler","control","autocompleteService"],[1,"imx-button","prio2","imx-button-open-addressbase",3,"disabled","click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"formHandler","feasibleClients","rootClients"],["class","user",4,"ngIf"],[1,"user"],[3,"field","formHandler","control","autocompleteService","autocompleteFilter","disableControl",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[1,"form__content-field-row"],[3,"field","formHandler","control","autocompleteService","autocompleteFilter","disableControl"],["class","imx-button prio2",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"imx-button","prio2",3,"click"],["class","imx-button prio2 create-user-btn",3,"disabled","click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"imx-button","prio2","create-user-btn",3,"disabled","click"],["class","form__content-group type",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[1,"form__content-group","type"],[3,"formHandler","tagCollectionDataSource"],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],["class","imx-button-select no-margin",3,"field","control","form","formHandler","config",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","inputFieldType"],["mat-header-cell","","translate","",4,"matHeaderCellDef"],["mat-cell","",3,"formGroup",4,"matCellDef"],["matColumnDef","productline"],["matColumnDef","inputFieldValue"],["matColumnDef","sortingValue"],["mat-header-cell","","class","sortingValueCol","translate","",4,"matHeaderCellDef"],["mat-cell","","class","sortingValueCol",3,"formGroup",4,"matCellDef"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","","translate",""],["mat-cell","",3,"formGroup"],[3,"field","control","form","formHandler","config"],[3,"field","control","form","formHandler","optionProvider"],["mat-header-cell","","translate","",1,"sortingValueCol"],["mat-cell","",1,"sortingValueCol",3,"formGroup"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],["class","icon icon-trash imx-icon-middle imx-icon-clickable",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"],[1,"imx-button-select","no-margin",3,"field","control","form","formHandler","config"],[3,"formHandler","formGroup","record","extendedAttributes"]],template:function(_e,Me){1&_e&&(i.TgZ(0,"div",0),i._UZ(1,"div",1),i.TgZ(2,"h2",2),i._uU(3,"imxplatform.common-entity.edit.panels.base-data.title"),i.qZA(),i.YNc(4,Ym,2,2,"ng-container",3),i.GkF(5,4),i.YNc(6,U_,3,3,"div",5),i.TgZ(7,"div",6),i.YNc(8,B_,5,5,"div",7)(9,a_,2,2,"ng-container",3),i.qZA(),i._UZ(10,"imx-edit-seo",8),i.YNc(11,Z_,1,2,"imx-edit-tags",9),i.ALo(12,"async"),i.YNc(13,M_,7,6,"div",10),i._UZ(14,"imx-edit-origin",8),i.YNc(15,Wf,5,3,"div",11),i.ALo(16,"async"),i.ALo(17,"async"),i.YNc(18,La,9,4,"div",11),i.ALo(19,"async"),i.ALo(20,"async"),i.YNc(21,za,5,4,"div",11),i.ALo(22,"async"),i.ALo(23,"async"),i.YNc(24,As,5,3,"div",11),i.ALo(25,"async"),i.ALo(26,"async"),i._UZ(27,"imx-edit-productlines",12),i.qZA(),i.YNc(28,Xs,1,5,"ng-template",null,13,i.W1O)),2&_e&&(i.xp6(),i.uIk("data-scroll-id","basicdata"),i.xp6(3),i.Q6J("ngIf",Me.formHandler.formConfiguration.hasSomeField("addressbaseId")),i.xp6(),i.Q6J("imxSlotComponent",Me.imxToolsSlots.EDIT_TITLES_SLOT)("inputs",i.WLB(39,kc,Me.formHandler,Me.record))("outputs",i.WLB(42,Vc,Me.onEditObjectLanguage.bind(Me),Me.suggestPermaLink.bind(Me))),i.xp6(),i.Q6J("hasFieldReadPermission","additionalInfo")("hasFieldReadPermissionFormHandler",Me.formHandler),i.xp6(2),i.Q6J("hasFieldReadPermission","client")("hasFieldReadPermissionFormHandler",Me.formHandler),i.xp6(),i.Q6J("ngIf",Me.formHandler.formConfiguration.hasSomeField("types")),i.xp6(),i.Q6J("formHandler",Me.formHandler),i.xp6(),i.Q6J("ngIf",i.lcZ(12,21,Me.tagsAvailable)),i.xp6(2),i.Q6J("hasAnyFieldReadPermission",i.DdM(45,Ed))("hasAnyFieldReadPermissionFormHandler",Me.formHandler),i.xp6(),i.Q6J("formHandler",Me.formHandler),i.xp6(),i.Q6J("ngIf",i.lcZ(16,23,Me.paymentOptionsAvailable)&&i.lcZ(17,25,Me.formHandler.hasReadPermission("paymentOptions"))),i.xp6(3),i.Q6J("ngIf",i.lcZ(19,27,Me.inputFieldTypesAvailable)&&i.lcZ(20,29,Me.formHandler.hasReadPermission("inputField"))),i.xp6(3),i.Q6J("ngIf",i.lcZ(22,31,Me.extendedAttributesForCoreDataObjectAvailable)&&i.lcZ(23,33,Me.formHandler.hasReadPermission("attributeDefinitions"))),i.xp6(3),i.Q6J("ngIf",Me.formHandler.formConfiguration.hasSomeField("attributes")&&i.lcZ(25,35,Me.formHandler.hasReadPermission("attributes"))&&i.lcZ(26,37,Me.attributesAvailable)),i.xp6(3),i.Q6J("formHandler",Me.formHandler)("filterProductlineFn",Me.filterProductlineFn))},dependencies:[To.Y,sr.L,oi.Q,Vi.r,Ti.k,Hi.O,Do.E,Y.A,Yt.H,$o.l,o.j,Te.X,ee.F,yr.g,x.O5,x.tP,u.JL,me.BZ,me.fO,me.as,me.w1,me.Dz,me.nj,me.ge,me.ev,me.XQ,me.Gk,u.sg,m.Pi,x.Ov,m.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.form__content-group.type[_ngcontent-%COMP%]{flex-basis:230px}.form__content-group[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]{margin-top:15px}.sortingValueCol[_ngcontent-%COMP%]{flex:0 1 100px}.create-user-btn[_ngcontent-%COMP%]{margin-left:10px}[_nghost-%COMP%]     .mdc-data-table__cell{overflow:visible}"],changeDetection:0})}return te})();function y(te,Pn){1&te&&i.GkF(0)}function g(te,Pn){1&te&&i.GkF(0)}function T(te,Pn){1&te&&i.GkF(0)}function W(te,Pn){1&te&&i.GkF(0)}function le(te,Pn){1&te&&i.GkF(0)}function De(te,Pn){1&te&&i.GkF(0)}function ke(te,Pn){1&te&&i.GkF(0)}function Ot(te,Pn){1&te&&i.GkF(0)}function Nt(te,Pn){1&te&&i.GkF(0)}function gn(te,Pn){1&te&&i.GkF(0)}function Xn(te,Pn){1&te&&i.GkF(0)}function ci(te,Pn){if(1&te&&i._UZ(0,"imx-form-control",8),2&te){const E=Pn.$implicit,_e=i.oxw();i.Q6J("field",_e.formHandler.formConfiguration.findFormFieldById(E))("control",_e.formHandler.formGroup.get(E))("form",_e.formHandler.formGroup)("formHandler",_e.formHandler)("config",_e.formHandler.formConfiguration)}}const pi=()=>({$implicit:"pricing.fromPrice"}),Di=()=>({$implicit:"pricing.toPrice"}),Ni=()=>({$implicit:"pricing.absolutePrice"}),lo=()=>({$implicit:"pricing.freeOfCharge"}),yo=()=>({$implicit:"pricing.priceBasis"}),So=()=>({$implicit:"pricing.priceDescription"}),Ko=()=>({$implicit:"seasonSpring"}),Uo=()=>({$implicit:"seasonSummer"}),Yo=()=>({$implicit:"seasonAutumn"}),fr=()=>({$implicit:"seasonWinter"}),Ur=()=>({$implicit:"includedServices"});let sa=(()=>{class te extends l.AbstractCoreDataObjectFormPanelComponent{constructor(E,_e){super(E,_e),this.entitiesMgr=E,this.dialog=_e}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(l.ImxEntitiesMgrService),i.Y36(B.uw))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-offer-offer-data-form-panel"]],features:[i.qOj],decls:31,vars:34,consts:[[1,"form__content-panel","offerdata"],["id","offerdata",1,"anchor"],["translate",""],[1,"form__content-row"],[1,"form__content-group"],[1,"form__content-field-row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["imxControl",""],[3,"field","control","form","formHandler","config"]],template:function(_e,Me){if(1&_e&&(i.TgZ(0,"div",0),i._UZ(1,"div",1),i.TgZ(2,"h2",2),i._uU(3,"imxplatform.common-entity.edit.navigation.offer-data"),i.qZA(),i.TgZ(4,"div",3)(5,"div",4)(6,"h3",2),i._uU(7,"imxplatform.common-entity.edit.navigation.pricing-info"),i.qZA(),i.TgZ(8,"div",5),i.YNc(9,y,1,0,"ng-container",6)(10,g,1,0,"ng-container",6)(11,T,1,0,"ng-container",6)(12,W,1,0,"ng-container",6),i.qZA(),i.YNc(13,le,1,0,"ng-container",6)(14,De,1,0,"ng-container",6),i.qZA()(),i.TgZ(15,"div",3)(16,"div",4)(17,"h3",2),i._uU(18,"imxtools.addressbase.edit.panels.offer.seasonal-assignment"),i.qZA(),i.TgZ(19,"div",5),i.YNc(20,ke,1,0,"ng-container",6)(21,Ot,1,0,"ng-container",6)(22,Nt,1,0,"ng-container",6)(23,gn,1,0,"ng-container",6),i.qZA()()(),i.TgZ(24,"div",3)(25,"div",4)(26,"h3",2),i._uU(27,"entity.Offer.includedServices"),i.qZA(),i.YNc(28,Xn,1,0,"ng-container",6),i.qZA()()(),i.YNc(29,ci,1,5,"ng-template",null,7,i.W1O)),2&_e){const Ln=i.MAs(30);i.xp6(),i.uIk("data-scroll-id","offerdata"),i.xp6(8),i.Q6J("ngTemplateOutlet",Ln)("ngTemplateOutletContext",i.DdM(23,pi)),i.xp6(),i.Q6J("ngTemplateOutlet",Ln)("ngTemplateOutletContext",i.DdM(24,Di)),i.xp6(),i.Q6J("ngTemplateOutlet",Ln)("ngTemplateOutletContext",i.DdM(25,Ni)),i.xp6(),i.Q6J("ngTemplateOutlet",Ln)("ngTemplateOutletContext",i.DdM(26,lo)),i.xp6(),i.Q6J("ngTemplateOutlet",Ln)("ngTemplateOutletContext",i.DdM(27,yo)),i.xp6(),i.Q6J("ngTemplateOutlet",Ln)("ngTemplateOutletContext",i.DdM(28,So)),i.xp6(6),i.Q6J("ngTemplateOutlet",Ln)("ngTemplateOutletContext",i.DdM(29,Ko)),i.xp6(),i.Q6J("ngTemplateOutlet",Ln)("ngTemplateOutletContext",i.DdM(30,Uo)),i.xp6(),i.Q6J("ngTemplateOutlet",Ln)("ngTemplateOutletContext",i.DdM(31,Yo)),i.xp6(),i.Q6J("ngTemplateOutlet",Ln)("ngTemplateOutletContext",i.DdM(32,fr)),i.xp6(5),i.Q6J("ngTemplateOutlet",Ln)("ngTemplateOutletContext",i.DdM(33,Ur))}},dependencies:[Y.A,x.tP,m.Pi],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.checkbox-wrapper[_ngcontent-%COMP%]{margin:auto 0}"],changeDetection:0})}return te})();function Ya(te,Pn){if(1&te&&i._UZ(0,"imx-master-data-object-references-form-panel",6),2&te){const E=i.oxw(2);i.Q6J("formHandler",E.formHandler)("record",E.record)("contactListsEnabled",E.contactListsEnabled)("contactAddressbaseEnabled",E.formHandler.isContactAddressbaseEnabled())}}function ua(te,Pn){if(1&te&&(i.TgZ(0,"div"),i._UZ(1,"imx-productline-info-form-panel",9),i.qZA()),2&te){const E=Pn.$implicit,_e=i.oxw(3);i.xp6(),i.Q6J("module",E)("formHandler",_e.formHandler)("record",_e.record)("formGroup",_e.formHandler.formGroup)}}function ca(te,Pn){if(1&te&&(i.TgZ(0,"div",7)(1,"h2",8),i._uU(2,"imxplatform.common-entity.edit.panels.productlineInfo.headline"),i.qZA(),i.YNc(3,ua,2,4,"div",5),i.qZA()),2&te){const E=i.oxw(2);i.Udp("margin-bottom","30px"),i.xp6(),i.Udp("margin-bottom","10px"),i.xp6(2),i.Q6J("ngForOf",E.productlineInfoModules)}}function pa(te,Pn){if(1&te&&(i.TgZ(0,"div"),i._UZ(1,"imx-module-form-panel",10),i.qZA()),2&te){const E=Pn.$implicit,_e=i.oxw(2);i.xp6(),i.Q6J("module",E)("entityType","Offer")("formHandler",_e.formHandler)("record",_e.record)}}function Xa(te,Pn){if(1&te&&(i.TgZ(0,"div")(1,"form",1),i._UZ(2,"imx-offer-base-data-form-panel",2)(3,"imx-offer-offer-data-form-panel",2)(4,"imx-offer-availabilities-form-panel",2)(5,"imx-offer-geo-form-panel",2)(6,"imx-offer-media-form-panel",2)(7,"imx-master-data-object-appearance-form-panel",2),i.YNc(8,Ya,1,4,"imx-master-data-object-references-form-panel",3),i._UZ(9,"imx-offer-anatomy-form-panel",2),i.YNc(10,ca,4,5,"div",4)(11,pa,2,4,"div",5),i.qZA()()),2&te){const E=i.oxw();i.xp6(),i.Q6J("formGroup",E.formHandler.formGroup),i.xp6(),i.Q6J("formHandler",E.formHandler)("record",E.record),i.xp6(),i.Q6J("formHandler",E.formHandler)("record",E.record),i.xp6(),i.Q6J("formHandler",E.formHandler)("record",E.record),i.xp6(),i.Q6J("formHandler",E.formHandler)("record",E.record),i.xp6(),i.Q6J("formHandler",E.formHandler)("record",E.record),i.xp6(),i.Q6J("formHandler",E.formHandler)("record",E.record),i.xp6(),i.Q6J("ngIf",E.contactListsEnabled||E.contactAddressbaseEnabled),i.xp6(),i.Q6J("formHandler",E.formHandler)("record",E.record),i.xp6(),i.Q6J("ngIf",E.productlineInfoModules.length>0),i.xp6(),i.Q6J("ngForOf",E.dataModules)}}let Ma=(()=>{class te extends l.FormComponent{constructor(E){super(E),this.userMessageService=E}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(l.UserMessageService))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-offer-edit-form"]],inputs:{formHandler:"formHandler",dataModules:"dataModules",productlineInfoModules:"productlineInfoModules",contactListsEnabled:"contactListsEnabled",contactAddressbaseEnabled:"contactAddressbaseEnabled"},features:[i.qOj],decls:1,vars:2,consts:[[4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],["id","offer-edit",3,"formGroup"],[3,"formHandler","record"],[3,"formHandler","record","contactListsEnabled","contactAddressbaseEnabled",4,"ngIf"],["class","form__content-panel",3,"margin-bottom",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"formHandler","record","contactListsEnabled","contactAddressbaseEnabled"],[1,"form__content-panel"],["translate",""],[3,"module","formHandler","record","formGroup"],[3,"module","entityType","formHandler","record"]],template:function(_e,Me){1&_e&&i.YNc(0,Xa,12,18,"div",0),2&_e&&i.Q6J("hasFieldReadPermission","title")("hasFieldReadPermissionFormHandler",Me.formHandler)},dependencies:[p.A,c.n,o.j,x.sg,x.O5,u._Y,u.JL,u.sg,m.Pi,co,qr,oe,y_,Gp.b,O_,am,sa],encapsulation:2})}return te})();function ea(te,Pn){1&te&&(i.TgZ(0,"div",31),i._UZ(1,"mat-progress-bar",32),i.qZA())}const rs=te=>({active:te}),Sa=()=>[];function ml(te,Pn){if(1&te&&(i.TgZ(0,"a",33)(1,"div",11),i._UZ(2,"span",34),i.TgZ(3,"span",13),i._uU(4),i.ALo(5,"translate"),i.qZA()()()),2&te){const E=i.oxw();i.Q6J("ngClass",i.VKq(5,rs,E.isPanelActive("geo")))("routerLink",i.DdM(7,Sa)),i.xp6(4),i.Oqu(i.lcZ(5,3,"imxplatform.common-entity.edit.navigation.geoinformation"))}}function nd(te,Pn){if(1&te&&(i.TgZ(0,"a",35)(1,"div",11),i._UZ(2,"span",36),i.TgZ(3,"span",13),i._uU(4),i.ALo(5,"translate"),i.qZA()()()),2&te){const E=i.oxw();i.Q6J("ngClass",i.VKq(5,rs,E.isPanelActive("references")))("routerLink",i.DdM(7,Sa)),i.xp6(4),i.Oqu(i.lcZ(5,3,"imxplatform.common-entity.edit.navigation.references"))}}function cd(te,Pn){if(1&te&&(i.TgZ(0,"div")(1,"a",44)(2,"div",45),i._UZ(3,"span",46)(4,"span",47),i.TgZ(5,"span",48),i._uU(6),i.ALo(7,"readI18n"),i.qZA()()()()),2&te){const E=Pn.$implicit,_e=i.oxw(4);i.xp6(),i.Q6J("ngClass",i.VKq(8,rs,_e.isPanelActive("productlineInfo-"+E.plKey)))("routerLink",i.DdM(10,Sa))("fragment","productlineInfo-"+E.plKey),i.xp6(4),i.hYB("matTooltip","",E.plKey," ",E.id,""),i.xp6(),i.Oqu(i.lcZ(7,6,E.i18nName))}}function sm(te,Pn){if(1&te&&(i.TgZ(0,"div",42),i.YNc(1,cd,8,11,"div",43),i.qZA()),2&te){const E=i.oxw(3);i.xp6(),i.Q6J("ngForOf",E.productlineInfoModules)}}function ju(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"div",38)(1,"div",39),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(2);return i.KtG(Me.toggleProductlineInfos())}),i._UZ(2,"span",40),i.TgZ(3,"span",13),i._uU(4),i.ALo(5,"translate"),i.qZA()(),i.YNc(6,sm,2,1,"div",41),i.qZA()}if(2&te){const E=i.oxw(2);i.xp6(4),i.Oqu(i.lcZ(5,2,"imxplatform.common-entity.edit.navigation.productlineInfos")),i.xp6(2),i.Q6J("ngIf",E.showProductlineInfoItems)}}function su(te,Pn){if(1&te&&(i.TgZ(0,"div")(1,"a",44)(2,"div",45),i._UZ(3,"span",46)(4,"span",50),i.TgZ(5,"span",48),i._uU(6),i.ALo(7,"readI18n"),i.qZA()()()()),2&te){const E=Pn.$implicit,_e=i.oxw(4);i.xp6(),i.Q6J("ngClass",i.VKq(8,rs,_e.isPanelActive("module-"+E.plKey)))("routerLink",i.DdM(10,Sa))("fragment","module-"+E.plKey),i.xp6(4),i.hYB("matTooltip","",E.plKey," ",E.id,""),i.xp6(),i.Oqu(i.lcZ(7,6,E.i18nName))}}function qd(te,Pn){if(1&te&&(i.TgZ(0,"div",42),i.YNc(1,su,8,11,"div",43),i.qZA()),2&te){const E=i.oxw(3);i.xp6(),i.Q6J("ngForOf",E.dataModules)}}function Xd(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"div",38)(1,"div",39),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw(2);return i.KtG(Me.toggleModules())}),i._UZ(2,"span",49),i.TgZ(3,"span",13),i._uU(4),i.ALo(5,"translate"),i.qZA()(),i.YNc(6,qd,2,1,"div",41),i.qZA()}if(2&te){const E=i.oxw(2);i.xp6(4),i.Oqu(i.lcZ(5,2,"imxplatform.common-entity.edit.navigation.modules")),i.xp6(2),i.Q6J("ngIf",E.showModuleItems)}}function Em(te,Pn){if(1&te&&(i.ynx(0),i.YNc(1,ju,7,4,"div",37)(2,Xd,7,4,"div",37),i.BQk()),2&te){const E=i.oxw();i.xp6(),i.Q6J("ngIf",E.productlineInfoModules.length>0),i.xp6(),i.Q6J("ngIf",E.dataModules.length>0)}}const Eu=()=>({width:"100%",height:"100%"}),lu=["basicdata","offerdata","availabilities","contact","geo","media","appearances","references","anatomy"];let Vd=(()=>{class te extends l.AbstractModuleAwareDataObjectEditPage{constructor(E,_e,Me,Ln,to,ha,zs,cc,Gl,id,zd,Fm,Lm,Iu,Su){super(E,_e,Me,Ln,to,ha,zs,cc,Gl,id,zd),this.listHistoryService=Fm,this.dataAccessService=Lm,this.router=Iu,this.configurationProvider=Su,this.logger=(0,l.getLogger)("OfferEditPage",Mi.H.name)}ngOnInit(){super.ngOnInit(),this.logger.debug("Open offer edit page. Is in creation mode: "+this.isCreateMode);const E=this.configurationProvider.getBooleanFromSnapshot(hs.s.IMXTOOLS_OFFER_ALLOWED_WITHOUT_ADDRESSBASE,!1);this.formHandler.formConfiguration.findFormFieldById("addressbaseId").readOnly=!this.isCreateMode&&!E}addRecord(E){return this.dataAccessService.createOffer(E)}recordSaved(E){this.isSaveAndClose?this.close():this.isCreateMode?(this.ownContextNavigationUrl&&this.ownContextNavigationUrl.length>0&&this.contextNavigationService.skipLastContextNavigation(),this.router.navigate(["offers","edit",E.id],{queryParams:{}})):this.reload(),this.userMessageService.showInfo("imxtools.offer.edit.save-successfull")}updateRecord(E){return this.dataAccessService.updateOffer(E)}getAvailablePanels(){const E=[...lu];return this.dataModules.forEach(_e=>E.push("module-"+_e.plKey)),this.productlineInfoModules.forEach(_e=>E.push("productlineInfo-"+_e.plKey)),E}save(E){this.isSaveAndClose=E||!1,this.formComponent&&this.formComponent.submit(),this.clearCurrentStateInStorage()}getEntityTypeForHistory(){return l.HistoryEntityType.OFFER}getReloadDialogMsg(){return"imxtools.offer.edit.dialog-on-reload"}close(){super.handleCloseAction("imxtools.offer.edit.dialog-on-close","imxtools.offer.edit.dialog-on-close-new")}navigateToList(){this.listHistoryService.navigateToLastListState(this.getEntityTypeForHistory().entityType)||this.router.navigate(["/offers"])}hasProductlineInfo(E){return E.offerDetails&&Object.keys(E.offerDetails).length>0&&!0===E.offerDetails.enableAdditionalDescriptions}isDataModule(E){return null!=E.metainfos&&E.metainfos.some(_e=>"Offer"===_e.forEntity)}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(U.jn),i.Y36(l.ImxPlatformDataAccessService),i.Y36(n.gz),i.Y36(s.Yz),i.Y36(l.UserMessageService),i.Y36(l.ImxEntitiesMgrService),i.Y36(l.EntityBrowseHistoryStorageService),i.Y36(x.EM),i.Y36(l.ObjectListCreationService),i.Y36(B.uw),i.Y36(m.sK),i.Y36(l.ListHistoryService),i.Y36(tt.N),i.Y36(n.F0),i.Y36(l.ConfigurationProvider))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["ng-component"]],viewQuery:function(_e,Me){if(1&_e&&i.Gf(Ma,7),2&_e){let Ln;i.iGM(Ln=i.CRH())&&(Me.formComponent=Ln.first)}},features:[i.qOj],decls:55,vars:70,consts:[[1,"edit"],[3,"formHandler","record","entityType","resourceKeyPrefix","activeSlideInType","showQualityBlock","reloadClicked","slideInEvent","addToObjectListClicked"],["class","page-loading-wrapper","progress-bar","",4,"ngIf"],["lg_w","12","lg_o","0"],[1,"edit__wrapper"],[1,"edit__navigation-sticky-wrapper"],[1,"edit__navigation-sticky-content"],["scrollBar",""],[1,"edit__navigation-items"],["formNavigation",""],["fragment","basicdata",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"edit__navigation-item-content"],[1,"icon","icon-pencil","imx-icon-middle"],[1,"item-label"],["fragment","offerdata",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-tag","imx-icon-middle"],["fragment","availabilities",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-calendar-31","imx-icon-middle"],["class","edit__navigation-item","fragment","geo",3,"ngClass","routerLink",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],["fragment","media",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-picture","imx-icon-middle"],["fragment","appearances",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-earth","imx-icon-middle"],["class","edit__navigation-item","fragment","references",3,"ngClass","routerLink",4,"ngIf"],["fragment","anatomy",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-site-map","imx-icon-middle"],[4,"ngIf"],[3,"formHandler","isSubmitting","save","saveAndClose","close"],[1,"edit__content"],["alwaysFixed","true"],["scrollToInvalidField","",3,"formHandler","record","dataModules","productlineInfoModules","contactListsEnabled","contactAddressbaseEnabled","save"],["progress-bar","",1,"page-loading-wrapper"],["mode","indeterminate"],["fragment","geo",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-map-marker","imx-icon-middle"],["fragment","references",1,"edit__navigation-item",3,"ngClass","routerLink"],[1,"icon","icon-reference-list","imx-icon-middle"],["class","edit__navigation-item",4,"ngIf"],[1,"edit__navigation-item"],[1,"edit__navigation-item-content",3,"click"],[1,"icon","icon-editor-text","imx-icon-middle"],["class","edit__navigation-sub-items",4,"ngIf"],[1,"edit__navigation-sub-items"],[4,"ngFor","ngForOf"],[1,"edit__navigation-item",3,"ngClass","routerLink","fragment"],[1,"edit__navigation-item-content","sub"],[1,"icon","icon-subNavigation"],[1,"icon","icon-editor-text","sub-item-icon"],["matTooltipShowDelay","5000",1,"item-label","sub",3,"matTooltip"],[1,"icon","icon-jigsaw","imx-icon-middle"],[1,"icon","icon-jigsaw","sub-item-icon"]],template:function(_e,Me){1&_e&&(i.TgZ(0,"div",0)(1,"imx-edit-header",1),i.NdJ("reloadClicked",function(){return Me.reload()})("slideInEvent",function(to){return Me.dispatchSlideEvent(to)})("addToObjectListClicked",function(){return Me.addToObjectList()}),i.YNc(2,ea,2,0,"div",2),i.qZA(),i.TgZ(3,"imx-grid")(4,"imx-grid-element",3)(5,"div",4)(6,"div",5)(7,"div",6)(8,"p-scrollPanel",null,7)(10,"div",8,9)(12,"a",10)(13,"div",11),i._UZ(14,"span",12),i.TgZ(15,"span",13),i._uU(16),i.ALo(17,"translate"),i.qZA()()(),i.TgZ(18,"a",14)(19,"div",11),i._UZ(20,"span",15),i.TgZ(21,"span",13),i._uU(22),i.ALo(23,"translate"),i.qZA()()(),i.TgZ(24,"a",16)(25,"div",11),i._UZ(26,"span",17),i.TgZ(27,"span",13),i._uU(28),i.ALo(29,"translate"),i.qZA()()(),i.YNc(30,ml,6,8,"a",18),i.TgZ(31,"a",19)(32,"div",11),i._UZ(33,"span",20),i.TgZ(34,"span",13),i._uU(35),i.ALo(36,"translate"),i.qZA()()(),i.TgZ(37,"a",21)(38,"div",11),i._UZ(39,"span",22),i.TgZ(40,"span",13),i._uU(41),i.ALo(42,"translate"),i.qZA()()(),i.YNc(43,nd,6,8,"a",23),i.TgZ(44,"a",24)(45,"div",11),i._UZ(46,"span",25),i.TgZ(47,"span",13),i._uU(48),i.ALo(49,"translate"),i.qZA()()(),i.YNc(50,Em,3,2,"ng-container",26),i.qZA()(),i.TgZ(51,"imx-edit-page-button-bar",27),i.NdJ("save",function(){return Me.save()})("saveAndClose",function(){return Me.save(!0)})("close",function(){return Me.close()}),i.qZA()()(),i.TgZ(52,"div",28)(53,"imx-generic-slide-in-page",29)(54,"imx-offer-edit-form",30),i.NdJ("save",function(to){return Me.submit(to)}),i.qZA()()()()()()()),2&_e&&(i.xp6(),i.Q6J("formHandler",Me.formHandler)("record",Me.record)("entityType","Offer")("resourceKeyPrefix","imxtools.offer.")("activeSlideInType",Me.activeSlideInType)("showQualityBlock",!0),i.xp6(),i.Q6J("ngIf",Me.isSubmitting),i.xp6(6),i.Akn(i.DdM(51,Eu)),i.xp6(4),i.Q6J("ngClass",i.VKq(52,rs,Me.isPanelActive("basicdata")))("routerLink",i.DdM(54,Sa)),i.xp6(4),i.Oqu(i.lcZ(17,39,"imxplatform.common-entity.edit.navigation.basedata")),i.xp6(2),i.Q6J("ngClass",i.VKq(55,rs,Me.isPanelActive("offerdata")))("routerLink",i.DdM(57,Sa)),i.xp6(4),i.Oqu(i.lcZ(23,41,"imxplatform.common-entity.edit.navigation.offer-data")),i.xp6(2),i.Q6J("ngClass",i.VKq(58,rs,Me.isPanelActive("availabilities")))("routerLink",i.DdM(60,Sa)),i.xp6(4),i.Oqu(i.lcZ(29,43,"imxplatform.common-entity.edit.navigation.offer-availabilities")),i.xp6(2),i.Q6J("hasFieldReadPermission","geoInfo.master")("hasFieldReadPermissionFormHandler",Me.formHandler),i.xp6(),i.Q6J("ngClass",i.VKq(61,rs,Me.isPanelActive("media")))("routerLink",i.DdM(63,Sa)),i.xp6(4),i.Oqu(i.lcZ(36,45,"imxplatform.common-entity.edit.navigation.media")),i.xp6(2),i.Q6J("ngClass",i.VKq(64,rs,Me.isPanelActive("appearances")))("routerLink",i.DdM(66,Sa)),i.xp6(4),i.Oqu(i.lcZ(42,47,"imxplatform.common-entity.edit.navigation.publications")),i.xp6(2),i.Q6J("ngIf",Me.formHandler.isContactListsEnabled()||Me.formHandler.isContactAddressbaseEnabled()),i.xp6(),i.Q6J("ngClass",i.VKq(67,rs,Me.isPanelActive("anatomy")))("routerLink",i.DdM(69,Sa)),i.xp6(4),i.Oqu(i.lcZ(49,49,"imxplatform.common-entity.edit.navigation.anatomy")),i.xp6(2),i.Q6J("ngIf",Me.dataModules),i.xp6(),i.Q6J("formHandler",Me.formHandler)("isSubmitting",Me.isSubmitting),i.xp6(3),i.Q6J("formHandler",Me.formHandler)("record",Me.record)("dataModules",Me.dataModules)("productlineInfoModules",Me.productlineInfoModules)("contactListsEnabled",Me.formHandler.isContactListsEnabled())("contactAddressbaseEnabled",Me.formHandler.isContactAddressbaseEnabled()))},dependencies:[Ki.n,bo.r,Sn.Ee,o.j,fi.a,ee.F,x.mk,x.sg,x.O5,Pl.pW,ne.gM,n.rH,$i.P,No.M,Ar.V,Ma,lt.j,m.X$],styles:[".edit[_ngcontent-%COMP%]{padding-top:113px}.edit__wrapper[_ngcontent-%COMP%]{display:flex}.edit__wrapper[_ngcontent-%COMP%]   .edit__content[_ngcontent-%COMP%]{flex:1}.edit__navigation-items[_ngcontent-%COMP%]{display:flex;flex-direction:column}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]{font-size:14px;cursor:pointer;text-decoration:none;display:inline-block;transition:background-color .75s ease}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]{padding:8px;margin:5px 0;display:flex;flex-direction:row;align-items:center}@media (max-width: 900px){.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]{justify-content:center}}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content.sub[_ngcontent-%COMP%]{margin:2px 0}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .item-label[_ngcontent-%COMP%]{margin-left:15px;text-overflow:ellipsis;overflow:hidden}@media (max-width: 900px){.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .item-label[_ngcontent-%COMP%]{display:none}}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .item-label.sub[_ngcontent-%COMP%]{margin-left:10px}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .sub-item-icon[_ngcontent-%COMP%]{display:none}@media (max-width: 900px){.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-item-content[_ngcontent-%COMP%]   .sub-item-icon[_ngcontent-%COMP%]{display:block}}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-sub-items[_ngcontent-%COMP%]{display:flex;flex-direction:column}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-sub-items[_ngcontent-%COMP%]   .icon-subNavigation[_ngcontent-%COMP%]{font-size:10px;margin-right:10px}.edit__navigation-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]   .edit__navigation-sub-items[_ngcontent-%COMP%]   .edit__navigation-item[_ngcontent-%COMP%]{padding-left:10px}.edit__navigation-sticky-wrapper[_ngcontent-%COMP%]{min-width:250px}@media (max-width: 900px){.edit__navigation-sticky-wrapper[_ngcontent-%COMP%]{min-width:100px}}.edit__navigation-sticky-content[_ngcontent-%COMP%]{padding-bottom:15px;padding-right:15px;max-width:250px;position:fixed;top:163px}.edit__navigation-sticky-content[_ngcontent-%COMP%]     .p-scrollpanel{transition:max-height .6s ease-in-out}@media (min-width: 901px){.edit__navigation-sticky-content[_ngcontent-%COMP%]{height:calc(100vh - 200px)}}@media (max-width: 900px){.edit__navigation-sticky-content[_ngcontent-%COMP%]{height:calc(100vh - 240px);min-width:100px}}"]})}return te})();var Ad=a(31475),fd=a(73832),Om=a(66706);function cu(te,Pn){if(1&te&&(i.ynx(0),i._UZ(1,"imx-geo-filter-offer-panel",7,20),i.BQk()),2&te){const E=i.oxw(2);i.xp6(),i.Q6J("parentForm",E.formHandler.formGroup)("record",E.record)("formHandler",E.formHandler)}}function du(te,Pn){if(1&te&&i._UZ(0,"imx-geo-filter-panel",7,21),2&te){const E=i.oxw(2);i.Q6J("parentForm",E.formHandler.formGroup)("record",E.record)("formHandler",E.formHandler)}}function wd(te,Pn){if(1&te&&(i.ynx(0),i._UZ(1,"imx-productline-filter-panel",22,23),i.BQk()),2&te){const E=i.oxw(3);i.xp6(),i.Q6J("parentForm",E.formHandler.formGroup)("record",E.record)("formHandler",E.formHandler)("availableProductlines",E.availableProductlines)}}function Wm(te,Pn){if(1&te&&(i.ynx(0),i.YNc(1,wd,3,4,"ng-container",16),i.BQk()),2&te){const E=Pn.ngIf;i.xp6(),i.Q6J("ngIf",E.length>0)}}function Sl(te,Pn){if(1&te&&i._UZ(0,"imx-admin-filter-panel",7,24),2&te){const E=i.oxw(2);i.Q6J("parentForm",E.formHandler.formGroup)("record",E.record)("formHandler",E.formHandler)}}const np=()=>({name:"oAddressbaseId"}),lm=te=>[te],Sm=()=>({name:"prioLevel"});function yp(te,Pn){if(1&te&&(i.TgZ(0,"imx-main-filter-panel",2,3)(2,"imx-grid-element",4)(3,"form",5),i._UZ(4,"imx-base-autocomplete",6),i.qZA()()(),i._UZ(5,"imx-fulltext-filter-panel",7,8),i.TgZ(7,"imx-appearance-filter-panel",9,10)(9,"imx-grid-element",4),i._UZ(10,"imx-form-control",11),i.qZA()(),i._UZ(11,"imx-client-filter-panel",12,13),i.YNc(13,cu,3,3,"ng-container",14)(14,du,2,3,"ng-template",null,15,i.W1O)(16,Wm,2,1,"ng-container",16),i.ALo(17,"async"),i._UZ(18,"imx-memo-filter-panel",7,17)(20,"imx-quality-filter-panel",7,18),i.YNc(22,Sl,2,3,"imx-admin-filter-panel",19)),2&te){const E=i.MAs(15),_e=i.oxw();i.Q6J("parentForm",_e.formHandler.formGroup)("record",_e.record)("formHandler",_e.formHandler)("additionalFields",i.VKq(42,lm,i.DdM(41,np))),i.xp6(2),i.Q6J("lg_w",6)("sm_w",12),i.xp6(),i.Q6J("formGroup",_e.formHandler.formGroup),i.xp6(),i.Q6J("autocompleteService",_e.addressbaseAutocompleteService)("label","imxtools.offer.filter.mainFilter.oAddressbaseId")("displayItemFn",_e.addressbaseDisplayFn),i.xp6(),i.Q6J("parentForm",_e.formHandler.formGroup)("record",_e.record)("formHandler",_e.formHandler),i.xp6(2),i.Q6J("parentForm",_e.formHandler.formGroup)("record",_e.record)("formHandler",_e.formHandler)("additionalFields",i.VKq(45,lm,i.DdM(44,Sm)))("entityName",_e.getEntityName()),i.xp6(2),i.Q6J("lg_w",6)("sm_w",12),i.xp6(),i.Q6J("field",_e.formHandler.formConfiguration.findFormFieldById("prioLevel"))("control",_e.formHandler.formGroup.get("prioLevel"))("form",_e.formHandler.formGroup.get("prioLevel"))("formHandler",_e.formHandler)("config",_e.formHandler.formConfiguration),i.xp6(),i.Q6J("parentForm",_e.formHandler.formGroup)("record",_e.record)("formHandler",_e.formHandler)("availableClients",_e.availableClients),i.xp6(2),i.Q6J("ngIf",_e.offerLocationFilter)("ngIfElse",E),i.xp6(3),i.Q6J("ngIf",i.lcZ(17,39,_e.availableProductlines)),i.xp6(2),i.Q6J("parentForm",_e.formHandler.formGroup)("record",_e.record)("formHandler",_e.formHandler),i.xp6(2),i.Q6J("parentForm",_e.formHandler.formGroup)("record",_e.record)("formHandler",_e.formHandler),i.xp6(2),i.Q6J("hasAnyPermission",_e.hasAdminPermssionStr)}}let Op=(()=>{class te extends l.AbstractCoreDataObjectFilterComponent{constructor(E,_e,Me,Ln,to,ha){super(to),this.addressbaseAutocompleteService=E,this.imxToolsDataAccessService=_e,this.entitiesMgrService=Me,this.securityManagerService=Ln,this.runtimeContextService=ha}ngOnInit(){if(super.ngOnInit(),this.availableClients=this.determineAvailableClients(),this.availableProductlines=this.determineAvailableProductlines(),this.configurationProvider.getBooleanFromSnapshot(l.ImxPlatformConfigParameter.PLATFORM_CONTENT_SCORE_ENABLED)){const E=this.orderFields,_e=E.reduce((Me,Ln)=>Ln.index>Me?Ln.index:Me,E[0].index);this.orderFields.push({index:_e+1,field:"CONTENT_SCORE",i18n:"filter.ScorableDataObject.contentScore",type:l.OrderType.numeric})}}determineAvailableClients(){return this.securityManagerService.hasPermission(ji.i.F_OFFER_READ_ALL)?this.entitiesMgrService.getAllEntitiesOfType("Client").pipe((0,O.U)(E=>E.items)):this.securityManagerService.hasPermission(ji.i.F_OFFER_READ_OWN_CLIENT)?this.runtimeContextService.getCurrentAndSubClients().pipe((0,O.U)(E=>Array.from(E))):this.securityManagerService.hasPermission(ji.i.F_OFFER_READ_OWN_USER)?this.runtimeContextService.getCurrentClient().pipe((0,O.U)(E=>[E])):(0,I.of)([])}determineAvailableProductlines(){return this.entitiesMgrService.getAllEntitiesOfType("Productline").pipe((0,O.U)(E=>E.items.filter(_e=>this.hasOfferDetails(_e))))}hasOfferDetails(E){return!!(E.offerDetails&&Object.keys(E.offerDetails).length>0)||E.children?.some(Me=>this.hasOfferDetails(Me))}getEntityName(){return"Offer"}newWidgetDef(E,_e,Me){return{x:0,y:3,cols:3,rows:1,widgetDef:{viewInfo:{showHeader:!0,columns:[{property:"id",format:"Number",header:"entity.DataObject.id",headerType:"Resource"},{property:"title",format:"Link(offers/edit/{id})",header:"entity.Offer.title",headerType:"Resource"},{property:"lastChangeTime",format:"DateDiff",header:"entity.Offer.lastChangeTime",headerType:"Resource",type:"Timestamp"}],rowCount:10},deepLink:{link:Me,name:"imxplatform.dashboard.offerlist"},icon:"offer",contentType:"EntityQuery",contentInfo:{serviceRequest:"offer/compact?"+_e},title:E,viewType:"List"}}}clientParams2RequestParams(E){const _e=this.paramMap2Filter(E),Me=this.paramMap2DataAccessRequestOptions(E);return this.imxToolsDataAccessService.convertOfferClientParamsToRequestParams(_e,Me)}addressbaseDisplayFn(E){return E?E.representation:void 0}get offerLocationFilter(){return this.configurationProvider.getBooleanFromSnapshot(hs.s.IMXTOOLS_OFFER_SHOW_OFFER_LOCATION_FILTER,!1)}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(ka.s),i.Y36(tt.N),i.Y36(s.qB),i.Y36(s.Xh),i.Y36(l.ConfigurationProvider),i.Y36(s.Ze))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-offer-filter"]],features:[i.qOj],decls:3,vars:11,consts:[[3,"entityName","filterPanelsTemplate","enableSearchListOption","enableCreateContactListOption","newWidgetDefFn","clientParams2RequestParamsFn","formHandler","record","orderFields","orderField","orderDirection","orderChanged","save"],["filterPanelsTemplate",""],[3,"parentForm","record","formHandler","additionalFields"],["mainFilterPanel",""],[3,"lg_w","sm_w"],[3,"formGroup"],["name","oAddressbase","formControlName","oAddressbaseId",3,"autocompleteService","label","displayItemFn"],[3,"parentForm","record","formHandler"],["fulltextFilterPanel",""],[3,"parentForm","record","formHandler","additionalFields","entityName"],["appearanceFilterPanel",""],[3,"field","control","form","formHandler","config"],[3,"parentForm","record","formHandler","availableClients"],["clientFilterPanel",""],[4,"ngIf","ngIfElse"],["addressbaseLocationFilter",""],[4,"ngIf"],["memoFilterPanel",""],["qualityFilterPanel",""],[3,"parentForm","record","formHandler",4,"hasAnyPermission"],["geoFilterOfferPanel",""],["geoFilterPanel",""],[3,"parentForm","record","formHandler","availableProductlines"],["productlineFilterPanel",""],["adminFilterPanel",""]],template:function(_e,Me){if(1&_e&&(i.TgZ(0,"imx-filter",0),i.NdJ("orderChanged",function(to){return Me.orderChanged.emit(to)})("save",function(to){return Me.applyFilter.emit(to)}),i.YNc(1,yp,23,47,"ng-template",null,1,i.W1O),i.qZA()),2&_e){const Ln=i.MAs(2);i.Q6J("entityName","Offer")("filterPanelsTemplate",Ln)("enableSearchListOption",!0)("enableCreateContactListOption",Me.enableCreateContactListOption)("newWidgetDefFn",Me.newWidgetDefFn)("clientParams2RequestParamsFn",Me.clientParams2RequestParamsFn)("formHandler",Me.formHandler)("record",Me.record)("orderFields",Me.orderFields)("orderField",Me.orderField)("orderDirection",Me.orderDirection)}},dependencies:[Qn.B,ei.d,bi.s,zi.$,Qt.h,Be.Q,Ye.z,Y.A,ut.Y,Kt.L,Om.P,en.c,hi.x,gi.R,x.O5,u._Y,u.JJ,u.JL,u.sg,u.u,Ar.V,x.Ov],changeDetection:0})}return te})();function cp(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-statistics-button",17),i.NdJ("export",function(){i.CHM(E);const Me=i.oxw();return i.KtG(Me.exportStatistics())}),i.qZA()}}function Jp(te,Pn){1&te&&i._UZ(0,"imx-create-new-entity-button",18),2&te&&i.Q6J("entityRoute","/offers")("entityResourceKeyPrefix","imxtools.offer")}function dp(te,Pn){1&te&&(i.TgZ(0,"imx-list-no-results"),i._uU(1,"imxtools.offer.list.no-records"),i.qZA())}function ip(te,Pn){1&te&&i._UZ(0,"mat-progress-bar",19)}function Au(te,Pn){if(1&te&&(i.TgZ(0,"th",26),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&te){const E=Pn.$implicit;i.Udp("width",E.width),i.Q6J("ngClass",E.cssClass),i.xp6(),i.hij(" ",i.lcZ(2,4,E.header)," ")}}function Lp(te,Pn){if(1&te&&(i.TgZ(0,"tr"),i.YNc(1,Au,3,6,"th",25),i.qZA()),2&te){const E=i.oxw(3);i.xp6(),i.Q6J("ngForOf",E.columnDefinitions)}}function d_(te,Pn){1&te&&(i._UZ(0,"span",45),i.ALo(1,"translate")),2&te&&i.s9C("matTooltip",i.lcZ(1,1,"imxplatform.common-entity.list.outside-client-hierarchy"))}function zf(te,Pn){if(1&te&&(i.ynx(0),i.TgZ(1,"imx-tooltip",36),i.ALo(2,"productline"),i._uU(3),i.ALo(4,"productline"),i.qZA(),i.BQk()),2&te){const E=Pn.ngIf;i.xp6(),i.Q6J("tooltipText",i.lcZ(2,3,E))("offset",300),i.xp6(2),i.hij(" ",i.lcZ(4,5,E)," ")}}function df(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-action-menu-item",44),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw().$implicit,Ln=i.oxw(3);return i.KtG(Ln.executeHistoryAction(Ln.getEntityName(),Me.id))}),i._uU(1,"imxplatform.common-entity.list.history"),i.qZA()}2&te&&i.Q6J("icon","icon-compare")}function jf(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-action-menu-item",15),i.NdJ("actionClicked",function(){i.CHM(E);const Me=i.oxw().ngIf,Ln=i.oxw().$implicit,to=i.oxw(3);return i.KtG(to.executeRowAction(Me,Ln))}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&te){const E=i.oxw().ngIf;i.Q6J("icon",E.getIcon()),i.xp6(),i.hij(" ",i.lcZ(2,2,E.getActionLabelKey())," ")}}function wu(te,Pn){if(1&te&&(i.ynx(0),i.YNc(1,jf,3,4,"imx-action-menu-item",46),i.BQk()),2&te){const E=Pn.ngIf,_e=i.oxw().$implicit;i.xp6(),i.Q6J("ngIf",E.hasPermission()&&E.isExecutable(_e))}}const Kf=te=>({selected:te}),og=te=>["../edit",te],Ef=te=>["/addressbases","edit",te],Af=te=>["edit",te];function wf(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"tr",27)(1,"td",28)(2,"mat-checkbox",29),i.NdJ("change",function(Me){i.CHM(E);const Ln=i.oxw(3);return i.KtG(Ln.onSelectionChanged(Me))}),i.qZA()(),i.TgZ(3,"td"),i._uU(4),i.qZA(),i.TgZ(5,"td",30),i.ALo(6,"readI18n"),i.TgZ(7,"a",31)(8,"span",32),i._UZ(9,"span",33),i.qZA(),i._uU(10),i.ALo(11,"readI18n"),i.qZA()(),i.TgZ(12,"td",30)(13,"div",32),i._UZ(14,"span",34),i.qZA(),i.TgZ(15,"a",31),i._uU(16),i.ALo(17,"readI18n"),i.qZA()(),i.TgZ(18,"td"),i._uU(19),i.YNc(20,d_,2,3,"span",35),i.ALo(21,"async"),i.qZA(),i.TgZ(22,"td")(23,"imx-tooltip",36),i.ALo(24,"readI18n"),i.ALo(25,"languageNames"),i._UZ(26,"imx-language-flag",37),i.qZA()(),i.TgZ(27,"td"),i.YNc(28,zf,5,7,"ng-container",38),i.ALo(29,"productlineFilter"),i.qZA(),i.TgZ(30,"td"),i._UZ(31,"imx-entity-state",39),i.qZA(),i.TgZ(32,"td",40)(33,"imx-dropup-button")(34,"imx-search-list-action-menu",13),i.NdJ("executeAction",function(Me){const to=i.CHM(E).$implicit,ha=i.oxw(3);return i.KtG(ha.executeRowAction(Me,to))}),i.ynx(35,41),i.TgZ(36,"imx-action-menu-item",42),i._uU(37," imxplatform.common-entity.list.edit "),i.qZA(),i.BQk(),i.ynx(38,14),i.YNc(39,df,2,1,"imx-action-menu-item",43),i.TgZ(40,"imx-action-menu-item",44),i.NdJ("click",function(){const Ln=i.CHM(E).$implicit,to=i.oxw(3);return i.KtG(to.executeReferencesAction(to.getEntityName(),Ln.id))}),i._uU(41,"imxplatform.common-entity.list.references"),i.qZA(),i.YNc(42,wu,2,1,"ng-container",38),i.BQk(),i.qZA()()()()}if(2&te){const E=Pn.$implicit,_e=i.oxw(3);i.Q6J("ngClass",i.VKq(44,Kf,_e.isItemSelected(E.id))),i.uIk("data-scroll-id",E.id),i.xp6(2),i.Q6J("value",E.id)("checked",_e.isItemSelected(E.id)),i.xp6(2),i.Oqu(E.id),i.xp6(),i.Q6J("matTooltip",i.lcZ(6,29,E.title))("matTooltipShowDelay",500),i.xp6(2),i.Q6J("routerLink",i.VKq(46,og,E.id)),i.xp6(3),i.hij(" ",i.lcZ(11,31,E.title)," "),i.xp6(2),i.Q6J("matTooltip",null==E.addressbase?null:E.addressbase.id)("matTooltipShowDelay",500),i.xp6(3),i.Q6J("routerLink",i.VKq(48,Ef,null==E.addressbase?null:E.addressbase.id)),i.xp6(),i.AsE("",i.lcZ(17,33,null==E.addressbase?null:E.addressbase.title)," (",null==E.addressbase?null:E.addressbase.id,")"),i.xp6(3),i.hij(" ",null==E.client?null:E.client.name," "),i.xp6(),i.Q6J("ngIf",i.lcZ(21,35,_e.isOutsideCurrentClientHierachy(null==E||null==E.client?null:E.client.id))),i.xp6(3),i.Q6J("tooltipText",i.lcZ(24,37,i.lcZ(25,39,E.languages)))("offset",300),i.xp6(3),i.Q6J("languages",E.languages)("inline",!0),i.xp6(2),i.Q6J("ngIf",i.xi3(29,41,null==E?null:E.metainfos,!0)),i.xp6(3),i.Q6J("key",null==E||null==E.entityState?null:E.entityState.key)("appearances",null==E?null:E.appearances),i.xp6(3),i.Q6J("actions",null==_e.actionProvider?null:_e.actionProvider.getRowActionsForType(_e.getEntityName(),E.id)),i.xp6(2),i.Q6J("icon","icon-pencil")("routerLink",i.VKq(50,Af,E.id)),i.xp6(3),i.Q6J("ngIf",_e.hasHistoryPermission()),i.xp6(),i.Q6J("icon","icon-link"),i.xp6(2),i.Q6J("ngIf",_e.actionProvider.findStaticActionForKey("import-source-view-action"))}}function rg(te,Pn){if(1&te&&(i.ynx(0),i.TgZ(1,"p-table",22),i.YNc(2,Lp,2,1,"ng-template",23)(3,wf,43,52,"ng-template",24),i.qZA(),i.BQk()),2&te){const E=i.oxw().ngIf;i.xp6(),i.Q6J("value",E.items)("resizableColumns",!0)}}function bg(te,Pn){if(1&te&&(i.TgZ(0,"div",20),i.YNc(1,rg,4,2,"ng-container",21),i.qZA()),2&te){const E=Pn.ngIf;i.oxw();const _e=i.MAs(9);i.xp6(),i.Q6J("ngIf",E.items.length>0)("ngIfElse",_e)}}function Cg(te,Pn){if(1&te&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"translate"),i.TgZ(3,"span",47),i._uU(4),i.qZA()(),i._UZ(5,"span",48)),2&te){const E=i.oxw();i.xp6(),i.hij("",i.lcZ(2,2,"imxplatform.common-entity.list.selected-items")," "),i.xp6(3),i.hij("(",null==E.selectedIds?null:E.selectedIds.size,")")}}let ag=(()=>{class te extends l.AbstractCoreDataObjectSearchPage{constructor(E,_e,Me,Ln,to,ha,zs,cc,Gl,id,zd,Fm,Lm,Iu,Su,K_){super(E,_e,Me,to,ha,zs,cc,Gl,void 0,Fm,id,zd,Lm,Iu,Su,{},!0),this.toolsDataAccessService=K_,this.imxToolsPermissions=ji.i,this.availableOrderFields=[{index:1,field:"TITLE",i18n:"entity.Offer.title",type:l.OrderType.alphanumeric},{index:2,field:"ID",i18n:"entity.Offer.id",type:l.OrderType.numeric},{index:4,field:"CREATION_TIME",i18n:"imxplatform.common-entity.list.sort.creationTime",type:l.OrderType.numeric},{index:5,field:"LAST_CHANGE",i18n:"imxplatform.common-entity.list.sort.lastChange",type:l.OrderType.numeric},{index:6,field:"LAST_CHANGE_FROM",i18n:"imxplatform.common-entity.list.sort.lastChangeFrom",type:l.OrderType.alphanumeric}],this.columnDefinitions=[{field:"select",header:"",width:"40px",cssClass:"select-column"},{field:"id",header:"ID",width:"50px"},{field:"title",header:"entity.Offer.title",width:"30%"},{field:"addressbase",header:"entity.Offer.addressbase",width:"30%"},{field:"client",header:"entity.Offer.client",width:"100px"},{field:"languages",header:"Sprachen",width:"100px"},{field:"productlines",header:"Produktlinien",width:"30%"},{field:"entity-state",header:"entity.Offer.state",width:"10%"},{field:"action",header:"",width:"50px",cssClass:"action-column"}]}getEntityName(){return"Offer"}getFilterParams(E){return this.toolsDataAccessService.convertOfferClientParamsToRequestParams(E)}getSetStateAction(){return this.actionProvider.findActionForKey("offer-action-set_state")}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(Ad.Y),i.Y36(n.F0),i.Y36(n.gz),i.Y36(s.Yz),i.Y36(l.UserMessageService),i.Y36(l.ListHistoryService),i.Y36(B.uw),i.Y36(fd.MJ),i.Y36(l.ImxPlatformDataAccessService),i.Y36(l.PlatformTrackingService),i.Y36(l.ObjectListCreationService),i.Y36(s.Ze),i.Y36(l.MemoProviderService),i.Y36(s.Xh),i.Y36(l.ActionProviderService),i.Y36(tt.N))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["ng-component"]],features:[i.qOj],decls:26,vars:26,consts:[[1,"search-page"],[3,"formHandler","record","orderFields","orderField","orderDirection","enableCreateContactListOption","orderChanged","applyFilter","resetFilter"],[3,"totalNumber","entityResourceKeyPrefix","isCompactPageHeader","reload"],["list-header-button-row",""],[3,"export",4,"hasAnyPermission"],[3,"entityRoute","entityResourceKeyPrefix",4,"hasAnyPermission"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],["class","table-wrapper",4,"ngIf","ngIfElse"],[3,"paging","selection","pageChanged","selectAll"],["position","above","halign","start"],["imx-dropup-trigger",""],[3,"actions","executeAction"],["search-list-action-menu-middle",""],[3,"icon","actionClicked"],[3,"actionClicked"],[3,"export"],[3,"entityRoute","entityResourceKeyPrefix"],["mode","indeterminate"],[1,"table-wrapper"],[4,"ngIf","ngIfElse"],[1,"imx-datatable",3,"value","resizableColumns"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",3,"ngClass"],["imxGenericSelector","",3,"ngClass"],[1,"select-column"],[1,"",3,"value","checked","change"],[3,"matTooltip","matTooltipShowDelay"],[1,"txt-link",3,"routerLink"],[1,"badge"],[1,"icon-tag"],[1,"icon-stem"],["class","icon icon-notificationType-Warning imx-icon-small outside-client",3,"matTooltip",4,"ngIf"],[3,"tooltipText","offset"],[3,"languages","inline"],[4,"ngIf"],[3,"key","appearances"],[1,"action-column"],["search-list-action-menu-top",""],[3,"icon","routerLink"],[3,"icon","click",4,"ngIf"],[3,"icon","click"],[1,"icon","icon-notificationType-Warning","imx-icon-small","outside-client",3,"matTooltip"],[3,"icon","actionClicked",4,"ngIf"],[1,"selected-size"],[1,"icon-chevron-down"]],template:function(_e,Me){if(1&_e&&(i.TgZ(0,"div",0)(1,"imx-offer-filter",1),i.NdJ("orderChanged",function(to){return Me.sort(to)})("applyFilter",function(to){return Me.search(to)})("resetFilter",function(){return Me.reset()}),i.qZA(),i.TgZ(2,"imx-list-header",2),i.NdJ("reload",function(){return Me.reloadComplete()}),i.ynx(3,3),i.YNc(4,cp,1,0,"imx-statistics-button",4)(5,Jp,1,2,"imx-create-new-entity-button",5),i.BQk(),i.qZA(),i.TgZ(6,"imx-grid")(7,"imx-grid-element",6),i.YNc(8,dp,2,0,"ng-template",null,7,i.W1O)(10,ip,1,0,"ng-template",null,8,i.W1O)(12,bg,2,2,"div",9),i.ALo(13,"async"),i.qZA()(),i.TgZ(14,"imx-list-footer",10),i.NdJ("pageChanged",function(to){return Me.onPageChanged(to)})("selectAll",function(to){return Me.onSelectAll(to)}),i.TgZ(15,"imx-dropup-button",11),i.YNc(16,Cg,6,4,"ng-template",12),i.TgZ(17,"imx-search-list-action-menu",13),i.NdJ("executeAction",function(to){return Me.executeBatchAction(to)}),i.ynx(18,14),i.TgZ(19,"imx-action-menu-item",15),i.NdJ("actionClicked",function(){return Me.addToObjectList()}),i._uU(20),i.ALo(21,"translate"),i.qZA(),i.TgZ(22,"imx-action-menu-item-create-contact-list",16),i.NdJ("actionClicked",function(){return Me.proposeSelectedIdsAsContactList()}),i.qZA(),i.TgZ(23,"imx-action-menu-item",15),i.NdJ("actionClicked",function(){return Me.exportStatisticsOnSelectedIds()}),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.BQk(),i.qZA()()()()),2&_e){const Ln=i.MAs(11);i.xp6(),i.Q6J("formHandler",Me.filterFormHandler)("record",Me.filter)("orderFields",Me.availableOrderFields)("orderField",Me.orderField)("orderDirection",Me.orderDirection)("enableCreateContactListOption",!0),i.xp6(),i.Q6J("totalNumber",null==Me.currentResult?null:Me.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxtools.offer")("isCompactPageHeader",!0),i.xp6(2),i.Q6J("hasAnyPermission",Me.imxToolsPermissions.F_STAT_OFFER_EXPORT.name),i.xp6(),i.Q6J("hasAnyPermission",Me.imxToolsPermissions.F_OFFER_CREATE.name),i.xp6(7),i.Q6J("ngIf",i.lcZ(13,20,Me.results))("ngIfElse",Ln),i.xp6(2),i.Q6J("paging",Me.pagingModel)("selection",Me.selectionModel),i.xp6(3),i.Q6J("actions",null==Me.actionProvider?null:Me.actionProvider.getBatchActionsForType(Me.getEntityName())),i.xp6(2),i.Q6J("icon","icon-star--add"),i.xp6(),i.hij(" ",i.lcZ(21,22,"imxplatform.entity-list.object-list.action-title")," "),i.xp6(3),i.Q6J("icon","icon-pie-chart"),i.xp6(),i.hij(" ",i.lcZ(25,24,"imxplatform.common.export")," ")}},dependencies:[Zc.$,Cd.r,Un.n,rl.l,de.N,Ae._,Ct.A,Rm.E,gi.R,ee.F,om.l,x.mk,x.sg,x.O5,ln.oG,Pl.pW,ne.gM,n.rH,wt.jx,Mt.iA,Mt.Q7,yt.z,Bt.t,pm.F,No.M,Ar.V,Ld.J,Ao.K,Op,lt.j,Es.O,rc.D,Kr.w,x.Ov,m.X$],styles:["[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}"]})}return te})();function yg(te,Pn){if(1&te&&(i.ynx(0),i.TgZ(1,"p",1),i._uU(2),i.ALo(3,"translate"),i.TgZ(4,"span",2),i._uU(5),i.ALo(6,"productline"),i.qZA()(),i.BQk()),2&te){const E=Pn.ngIf;i.xp6(2),i.AsE("",i.lcZ(3,3,"imxtools.offer.list.produclines")," (",E.length,"): "),i.xp6(3),i.Oqu(i.lcZ(6,5,E))}}let Pp=(()=>{class te{static#e=this.\u0275fac=function(_e){return new(_e||te)};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-offer-bottom-slot"]],hostAttrs:[1,"imx-offer-bottom-slot"],inputs:{dataObject:"dataObject"},decls:2,vars:4,consts:[[4,"ngIf"],[1,"txt-default"],[1,"txt-grey"]],template:function(_e,Me){1&_e&&(i.YNc(0,yg,7,7,"ng-container",0),i.ALo(1,"productlineFilter")),2&_e&&i.Q6J("ngIf",i.xi3(1,1,null==Me.dataObject?null:Me.dataObject.metainfos,!0))},dependencies:[x.O5,rc.D,Kr.w,m.X$]})}return te})();function m_(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-tools-appearance-extension-content",3),i.NdJ("entityUpdated",function(Me){i.CHM(E);const Ln=i.oxw(2);return i.KtG(Ln.offerUpdated.emit(Me))}),i.qZA()}if(2&te){const E=i.oxw(2);i.Q6J("entity",E.item)("entityType","Offer")("filter",E.filter)}}function Df(te,Pn){if(1&te&&(i.TgZ(0,"imx-list-extension-accordion-item",1),i.YNc(1,m_,1,3,"ng-template",2),i.qZA()),2&te){const E=i.oxw();i.Q6J("count",(null==E.item.appearances?null:E.item.appearances.length)+(null==E.item.pendingAppearances?null:E.item.pendingAppearances.length)+(null==E.item.refusedAppearances?null:E.item.refusedAppearances.length))}}let Gg=(()=>{class te{constructor(){this.offerUpdated=new i.vpe}static#e=this.\u0275fac=function(_e){return new(_e||te)};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-offer-list-extension"]],hostAttrs:[1,"imx-offer-list-extension"],inputs:{item:"item",filter:"filter"},outputs:{offerUpdated:"offerUpdated"},decls:2,vars:1,consts:[["icon","icon-calendar-full","header","imxplatform.common-entity.list.extension.appearance.header",3,"count",4,"ngIf"],["icon","icon-calendar-full","header","imxplatform.common-entity.list.extension.appearance.header",3,"count"],["imxLazyListExtensionAccordionItem",""],[3,"entity","entityType","filter","entityUpdated"]],template:function(_e,Me){1&_e&&(i.TgZ(0,"imx-list-extension-accordion"),i.YNc(1,Df,2,1,"imx-list-extension-accordion-item",0),i.qZA()),2&_e&&(i.xp6(),i.Q6J("ngIf",(null==Me.item.appearances?null:Me.item.appearances.length)+(null==Me.item||null==Me.item.pendingAppearances?null:Me.item.pendingAppearances.length)+(null==Me.item||null==Me.item.refusedAppearances?null:Me.item.refusedAppearances.length)>0))},dependencies:[Pd.F,kt.j,Jt.K,x.O5,Dm],encapsulation:2,data:{animation:l.LIST_EXTENSION_ANIMATION},changeDetection:0})}return te})();function Jg(te,Pn){if(1&te&&(i.ynx(0),i.TgZ(1,"span",8),i._uU(2),i.ALo(3,"number"),i.qZA(),i.BQk()),2&te){const E=i.oxw(2);i.xp6(2),i.Oqu(i.xi3(3,1,null==E.dataObject?null:E.dataObject.contentScore,"1.1-1"))}}function If(te,Pn){1&te&&(i.TgZ(0,"span",9),i._uU(1,"imxplatform.common.no-value"),i.qZA())}function zm(te,Pn){if(1&te&&(i.ynx(0),i.TgZ(1,"p",3),i._uU(2),i.ALo(3,"translate"),i.YNc(4,Jg,4,4,"ng-container",6)(5,If,2,0,"ng-template",null,7,i.W1O),i.qZA(),i.BQk()),2&te){const E=i.MAs(6),_e=i.oxw();i.xp6(2),i.hij("",i.lcZ(3,3,"entity.ScorableDataObject.contentScore"),": "),i.xp6(2),i.Q6J("ngIf",null!=(null==_e.dataObject?null:_e.dataObject.contentScore))("ngIfElse",E)}}let Du=(()=>{class te{constructor(E){this.configurationProvider=E,this.contextNavigationService=(0,i.f3M)(l.ContextNavigationService)}showContentScore(){return this.configurationProvider.getBooleanFromSnapshot(l.ImxPlatformConfigParameter.PLATFORM_CONTENT_SCORE_ENABLED)}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(l.ConfigurationProvider))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-offer-right-slot"]],hostAttrs:[1,"imx-offer-right-slot"],inputs:{dataObject:"dataObject"},decls:16,vars:11,consts:[[1,"list__column"],[4,"ngIf"],[1,"margin-top"],[1,"txt-grey"],[1,"txt-md","txt-link",3,"click"],[1,"txt-md"],[4,"ngIf","ngIfElse"],["emptyContentScore",""],[1,"txt-default"],["translate","",1,"txt-default"]],template:function(_e,Me){1&_e&&(i.TgZ(0,"div",0)(1,"div"),i.YNc(2,zm,7,5,"ng-container",1),i.qZA(),i.TgZ(3,"div",2)(4,"p",3),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"a",4),i.NdJ("click",function(){return Me.contextNavigationService.navigateToCoreEntityContextual(["/addressbases","edit",null==Me.dataObject||null==Me.dataObject.addressbase?null:Me.dataObject.addressbase.id])}),i._uU(8),i.ALo(9,"readI18n"),i.qZA()(),i.TgZ(10,"div",2)(11,"p",3),i._uU(12),i.ALo(13,"translate"),i.qZA(),i.TgZ(14,"p",5),i._uU(15),i.qZA()()()),2&_e&&(i.xp6(2),i.Q6J("ngIf",Me.showContentScore()),i.xp6(3),i.hij("",i.lcZ(6,5,"imxtools.offer.list.addressbase"),":"),i.xp6(3),i.Oqu(i.lcZ(9,7,null==Me.dataObject||null==Me.dataObject.addressbase?null:Me.dataObject.addressbase.title)),i.xp6(4),i.hij("",i.lcZ(13,9,"imxtools.offer.list.addressbaseId"),":"),i.xp6(3),i.Oqu(null==Me.dataObject||null==Me.dataObject.addressbase?null:Me.dataObject.addressbase.id))},dependencies:[ee.F,x.O5,m.Pi,lt.j,x.JJ,m.X$],styles:[".list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.list__column[_ngcontent-%COMP%]{margin-right:10px;word-break:break-word}@media (max-width: 900px){.list__column[_ngcontent-%COMP%]{margin-right:5px}}.list__column[_ngcontent-%COMP%]   .margin-top[_ngcontent-%COMP%]{margin-top:5px}.list__column[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style-type:square;list-style-position:inside}.list__column[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px}.offer-right-slot[_nghost-%COMP%]{flex-basis:450px}"]})}return te})();function Qp(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-statistics-button",21),i.NdJ("export",function(){i.CHM(E);const Me=i.oxw();return i.KtG(Me.exportStatistics())}),i.qZA()}}function mu(te,Pn){1&te&&i._UZ(0,"imx-create-new-entity-button",22),2&te&&i.Q6J("entityRoute","/offers")("entityResourceKeyPrefix","imxtools.offer")}function Vp(te,Pn){1&te&&(i.TgZ(0,"imx-list-no-results"),i._uU(1,"imxtools.offer.list.no-records"),i.qZA())}function mp(te,Pn){1&te&&i._UZ(0,"mat-progress-bar",23)}function $f(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-action-menu-item",34),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw().$implicit,Ln=i.oxw(3);return i.KtG(Ln.executeHistoryAction(Ln.getEntityName(),Me.id))}),i._uU(1,"imxplatform.common-entity.list.history"),i.qZA()}2&te&&i.Q6J("icon","icon-compare")}function sg(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-action-menu-item",16),i.NdJ("actionClicked",function(){i.CHM(E);const Me=i.oxw().ngIf,Ln=i.oxw().$implicit,to=i.oxw(3);return i.KtG(to.executeRowAction(Me,Ln))}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&te){const E=i.oxw().ngIf;i.Q6J("icon",E.getIcon()),i.xp6(),i.hij(" ",i.lcZ(2,2,E.getActionLabelKey())," ")}}function Sf(te,Pn){if(1&te&&(i.ynx(0),i.YNc(1,sg,3,4,"imx-action-menu-item",38),i.BQk()),2&te){const E=Pn.ngIf,_e=i.oxw().$implicit;i.xp6(),i.Q6J("ngIf",E.hasPermission()&&E.isExecutable(_e))}}function Og(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-offer-list-extension",39),i.NdJ("offerUpdated",function(Me){i.CHM(E);const Ln=i.oxw(4);return i.KtG(Ln.swapAppearancesInResultItem(Me))}),i.qZA()}if(2&te){const E=i.oxw().$implicit,_e=i.oxw(3);i.Q6J("item",E)("filter",_e.filter)}}const Pg=te=>({selected:te}),qf=te=>["edit",te];function nx(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"mat-list-item",25)(1,"div",26)(2,"imx-list-row-selection",27),i.NdJ("selectionChanged",function(Me){i.CHM(E);const Ln=i.oxw(3);return i.KtG(Ln.onSelectionChanged(Me))}),i.qZA(),i.TgZ(3,"div",28)(4,"imx-list-row",29),i.NdJ("slideInEvent",function(Me){i.CHM(E);const Ln=i.oxw(3);return i.KtG(Ln.dispatchSlideEvent(Me))}),i.qZA()(),i.TgZ(5,"div",30)(6,"imx-dropup-button")(7,"imx-search-list-action-menu",13),i.NdJ("executeAction",function(Me){const to=i.CHM(E).$implicit,ha=i.oxw(3);return i.KtG(ha.executeRowAction(Me,to))}),i.ynx(8,31),i.TgZ(9,"imx-action-menu-item",32),i._uU(10," imxplatform.common-entity.list.edit "),i.qZA(),i.BQk(),i.ynx(11,14),i.YNc(12,$f,2,1,"imx-action-menu-item",33),i.TgZ(13,"imx-action-menu-item",34),i.NdJ("click",function(){const Ln=i.CHM(E).$implicit,to=i.oxw(3);return i.KtG(to.executeReferencesAction(to.getEntityName(),Ln.id))}),i._uU(14,"imxplatform.common-entity.list.references"),i.qZA(),i.YNc(15,Sf,2,1,"ng-container",35),i.BQk(),i.qZA()(),i._UZ(16,"imx-entity-state",36),i.qZA()(),i.YNc(17,Og,1,2,"imx-offer-list-extension",37),i.qZA()}if(2&te){const E=Pn.$implicit,_e=i.oxw(3),Me=i.MAs(29),Ln=i.MAs(31),to=i.MAs(33);i.uIk("data-scroll-id",E.id),i.xp6(),i.Q6J("ngClass",i.VKq(22,Pg,_e.isItemSelected(E.id))),i.xp6(),i.Q6J("id",E.id)("checked",_e.isItemSelected(E.id))("blockedByAction",_e.isBlockedByAction(E.id)),i.xp6(2),i.Q6J("dataObject",E)("memoCount",_e.getMemoCount(E.id))("isActiveSlideIn",_e.isActiveSlideIn)("leftSlotTemplate",Me)("rightSlotTemplate",Ln)("bottomSlotTemplate",to),i.xp6(3),i.Q6J("actions",null==_e.actionProvider?null:_e.actionProvider.getRowActionsForType(_e.getEntityName(),E.id)),i.xp6(2),i.Q6J("icon","icon-pencil")("routerLink",i.VKq(24,qf,E.id)),i.xp6(3),i.Q6J("ngIf",_e.hasHistoryPermission()),i.xp6(),i.Q6J("icon","icon-link"),i.xp6(2),i.Q6J("ngIf",_e.actionProvider.findStaticActionForKey("import-source-view-action")),i.xp6(),i.Q6J("additionalClass","list__row-action-box")("key",E.entityState.key)("appearances",null==E?null:E.appearances)("inline",!1),i.xp6(),i.Q6J("ngIf",(null==E||null==E.appearances?null:E.appearances.length)+(null==E||null==E.pendingAppearances?null:E.pendingAppearances.length)+(null==E||null==E.refusedAppearances?null:E.refusedAppearances.length)>0)}}function lg(te,Pn){if(1&te&&(i.TgZ(0,"mat-list"),i.YNc(1,nx,18,26,"mat-list-item",24),i.qZA()),2&te){const E=i.oxw().ngIf,_e=i.oxw();i.xp6(),i.Q6J("ngForOf",E.items)("ngForTrackBy",_e.trackByItemId)}}function Ff(te,Pn){if(1&te&&(i.TgZ(0,"div"),i.YNc(1,lg,2,2,"mat-list",9),i.qZA()),2&te){const E=Pn.ngIf;i.oxw();const _e=i.MAs(10);i.xp6(),i.Q6J("ngIf",E.items.length>0)("ngIfElse",_e)}}function uh(te,Pn){if(1&te&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"translate"),i.TgZ(3,"span",40),i._uU(4),i.qZA()(),i._UZ(5,"span",41)),2&te){const E=i.oxw();i.xp6(),i.hij("",i.lcZ(2,2,"imxplatform.common-entity.list.selected-items")," "),i.xp6(3),i.hij("(",null==E.selectedIds?null:E.selectedIds.size,")")}}function Mg(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"imx-action-menu-item",16),i.NdJ("actionClicked",function(){i.CHM(E);const Me=i.oxw();return i.KtG(Me.addMemoAttributesOnSelectedIds())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&te&&(i.Q6J("icon","icon-bubble"),i.xp6(),i.hij(" ",i.lcZ(2,2,"imxplatform.entity-list.object-list.new-memo")," "))}function ph(te,Pn){if(1&te&&(i.TgZ(0,"a",42),i._uU(1),i.ALo(2,"readI18n"),i.qZA(),i._UZ(3,"imx-row-id-view",43)(4,"imx-row-client-view",44)),2&te){const E=Pn.dataObject,_e=i.oxw();i.Q6J("routerLink",i.VKq(7,qf,E.id)),i.xp6(),i.hij(" ",i.lcZ(2,5,E.title)," "),i.xp6(2),i.Q6J("dataObject",E),i.xp6(),i.Q6J("dataObject",E)("outsideCurrentClientHierachy$",_e.isOutsideCurrentClientHierachy(null==E||null==E.client?null:E.client.id))}}function _h(te,Pn){1&te&&i._UZ(0,"imx-offer-right-slot",43),2&te&&i.Q6J("dataObject",Pn.dataObject)}function Xf(te,Pn){1&te&&i._UZ(0,"imx-offer-bottom-slot",43),2&te&&i.Q6J("dataObject",Pn.dataObject)}let Rp=(()=>{class te extends l.AbstractCoreDataObjectSearchPage{constructor(E,_e,Me,Ln,to,ha,zs,cc,Gl,id,zd,Fm,Lm,Iu,Su,K_){super(E,_e,Me,to,ha,zs,cc,Gl,void 0,Fm,id,zd,Lm,Iu,Su,{},!0),this.toolsDataAccessService=K_,this.imxToolsPermissions=ji.i,this.availableOrderFields=[{index:1,field:"TITLE",i18n:"entity.Offer.title",type:l.OrderType.alphanumeric},{index:2,field:"ID",i18n:"entity.Offer.id",type:l.OrderType.numeric},{index:4,field:"CREATION_TIME",i18n:"imxplatform.common-entity.list.sort.creationTime",type:l.OrderType.numeric},{index:5,field:"LAST_CHANGE",i18n:"imxplatform.common-entity.list.sort.lastChange",type:l.OrderType.numeric},{index:6,field:"LAST_CHANGE_FROM",i18n:"imxplatform.common-entity.list.sort.lastChangeFrom",type:l.OrderType.alphanumeric}]}getEntityName(){return"Offer"}showMemos(){return!0}getFilterParams(E){return this.toolsDataAccessService.convertOfferClientParamsToRequestParams(E)}getSetStateAction(){return this.actionProvider.findActionForKey("offer-action-set_state")}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(Ad.Y),i.Y36(n.F0),i.Y36(n.gz),i.Y36(s.Yz),i.Y36(l.UserMessageService),i.Y36(l.ListHistoryService),i.Y36(B.uw),i.Y36(fd.MJ),i.Y36(l.ImxPlatformDataAccessService),i.Y36(l.PlatformTrackingService),i.Y36(l.ObjectListCreationService),i.Y36(s.Ze),i.Y36(l.MemoProviderService),i.Y36(s.Xh),i.Y36(l.ActionProviderService),i.Y36(tt.N))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["ng-component"]],features:[i.qOj],decls:34,vars:27,consts:[[1,"search-page"],[3,"formHandler","record","orderFields","orderField","orderDirection","enableCreateContactListOption","orderChanged","applyFilter","resetFilter"],[3,"totalNumber","entityResourceKeyPrefix","isCompactPageHeader","reload"],["list-header-button-row",""],[3,"export",4,"hasAnyPermission"],[3,"entityRoute","entityResourceKeyPrefix",4,"hasAnyPermission"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],[4,"ngIf","ngIfElse"],[3,"paging","selection","pageChanged","selectAll"],["position","above","halign","start"],["imx-dropup-trigger",""],[3,"actions","executeAction"],["search-list-action-menu-middle",""],[3,"icon","actionClicked",4,"hasAnyPermission"],[3,"icon","actionClicked"],[3,"actionClicked"],["offerLeftSlotTemplate",""],["offerRightSlotTemplate",""],["offerBottomSlotTemplate",""],[3,"export"],[3,"entityRoute","entityResourceKeyPrefix"],["mode","indeterminate"],["class","list__item","imxGenericSelector","",4,"ngFor","ngForOf","ngForTrackBy"],["imxGenericSelector","",1,"list__item"],[1,"list__row-wrapper",3,"ngClass"],[3,"id","checked","blockedByAction","selectionChanged"],[1,"list__row"],[3,"dataObject","memoCount","isActiveSlideIn","leftSlotTemplate","rightSlotTemplate","bottomSlotTemplate","slideInEvent"],[1,"list__row-action"],["search-list-action-menu-top",""],[3,"icon","routerLink"],[3,"icon","click",4,"ngIf"],[3,"icon","click"],[4,"ngIf"],[3,"additionalClass","key","appearances","inline"],[3,"item","filter","offerUpdated",4,"ngIf"],[3,"icon","actionClicked",4,"ngIf"],[3,"item","filter","offerUpdated"],[1,"selected-size"],[1,"icon-chevron-down"],[1,"txt-bg","title_shortened",3,"routerLink"],[3,"dataObject"],[3,"dataObject","outsideCurrentClientHierachy$"]],template:function(_e,Me){if(1&_e&&(i.TgZ(0,"div",0)(1,"imx-offer-filter",1),i.NdJ("orderChanged",function(to){return Me.sort(to)})("applyFilter",function(to){return Me.search(to)})("resetFilter",function(){return Me.reset()}),i.qZA(),i.TgZ(2,"imx-list-header",2),i.NdJ("reload",function(){return Me.reloadComplete()}),i.ynx(3,3),i.YNc(4,Qp,1,0,"imx-statistics-button",4)(5,mu,1,2,"imx-create-new-entity-button",5),i.BQk(),i.qZA(),i.TgZ(6,"imx-grid")(7,"imx-grid-element",6)(8,"imx-generic-slide-in-page"),i.YNc(9,Vp,2,0,"ng-template",null,7,i.W1O)(11,mp,1,0,"ng-template",null,8,i.W1O)(13,Ff,2,2,"div",9),i.ALo(14,"async"),i.qZA()()(),i.TgZ(15,"imx-list-footer",10),i.NdJ("pageChanged",function(to){return Me.onPageChanged(to)})("selectAll",function(to){return Me.onSelectAll(to)}),i.TgZ(16,"imx-dropup-button",11),i.YNc(17,uh,6,4,"ng-template",12),i.TgZ(18,"imx-search-list-action-menu",13),i.NdJ("executeAction",function(to){return Me.executeBatchAction(to)}),i.ynx(19,14),i.YNc(20,Mg,3,4,"imx-action-menu-item",15),i.TgZ(21,"imx-action-menu-item",16),i.NdJ("actionClicked",function(){return Me.addToObjectList()}),i._uU(22),i.ALo(23,"translate"),i.qZA(),i.TgZ(24,"imx-action-menu-item-create-contact-list",17),i.NdJ("actionClicked",function(){return Me.proposeSelectedIdsAsContactList()}),i.qZA(),i.TgZ(25,"imx-action-menu-item",16),i.NdJ("actionClicked",function(){return Me.exportStatisticsOnSelectedIds()}),i._uU(26),i.ALo(27,"translate"),i.qZA(),i.BQk(),i.qZA()()()(),i.YNc(28,ph,5,9,"ng-template",null,18,i.W1O)(30,_h,1,1,"ng-template",null,19,i.W1O)(32,Xf,1,1,"ng-template",null,20,i.W1O)),2&_e){const Ln=i.MAs(12);i.xp6(),i.Q6J("formHandler",Me.filterFormHandler)("record",Me.filter)("orderFields",Me.availableOrderFields)("orderField",Me.orderField)("orderDirection",Me.orderDirection)("enableCreateContactListOption",!0),i.xp6(),i.Q6J("totalNumber",null==Me.currentResult?null:Me.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxtools.offer")("isCompactPageHeader",!1),i.xp6(2),i.Q6J("hasAnyPermission",Me.imxToolsPermissions.F_STAT_OFFER_EXPORT.name),i.xp6(),i.Q6J("hasAnyPermission",Me.imxToolsPermissions.F_OFFER_CREATE.name),i.xp6(8),i.Q6J("ngIf",i.lcZ(14,21,Me.results))("ngIfElse",Ln),i.xp6(2),i.Q6J("paging",Me.pagingModel)("selection",Me.selectionModel),i.xp6(3),i.Q6J("actions",null==Me.actionProvider?null:Me.actionProvider.getBatchActionsForType(Me.getEntityName())),i.xp6(2),i.Q6J("hasAnyPermission",Me.memoCreatePermission),i.xp6(),i.Q6J("icon","icon-star--add"),i.xp6(),i.hij(" ",i.lcZ(23,23,"imxplatform.entity-list.object-list.action-title")," "),i.xp6(3),i.Q6J("icon","icon-pie-chart"),i.xp6(),i.hij(" ",i.lcZ(27,25,"imxplatform.common.export")," ")}},dependencies:[Zc.$,Cd.r,Un.n,Sn.Ee,de.N,Ae._,Ct.A,Ac.Y,Bd.V,Xl.w,uc.k,Rm.E,gi.R,ee.F,om.l,x.mk,x.sg,x.O5,ya.i$,ya.Tg,Pl.pW,n.rH,yt.z,Bt.t,pm.F,No.M,Ar.V,Ld.J,Pp,Op,Gg,Du,lt.j,x.Ov,m.X$],styles:["[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}.list__row[_ngcontent-%COMP%]{background:#fff;border:.5px solid #ced4e0;box-sizing:border-box;width:100%;padding:20px;z-index:1}@media (max-width: 900px){.list__row[_ngcontent-%COMP%]{padding:10px}}.list__row-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;box-sizing:border-box;position:relative;height:inherit}.list__row-wrapper.selected[_ngcontent-%COMP%]   .list__row[_ngcontent-%COMP%]{background-color:#eefafa}.list__row-action[_ngcontent-%COMP%]{min-width:45px;min-height:100%;display:flex;flex-direction:column;padding-left:5px;text-align:center;position:relative;z-index:1}@media (max-width: 900px){.list__row-action[_ngcontent-%COMP%]{min-width:30px;padding-left:2px}}.list__row-checkbox[_ngcontent-%COMP%]{margin:auto 5px auto 0}"]})}return te})();var Lf=a(91226),fh=a(77504),J_=a(86657),Rf=a(96743),cg=a(67742);function Qg(te,Pn){if(1&te&&(i.TgZ(0,"h2"),i._uU(1),i.qZA()),2&te){const E=Pn.ngIf;i.xp6(),i.hij("",E,":")}}const ix=te=>({"background-image":te,height:"75px"});function ox(te,Pn){if(1&te&&(i.ynx(0),i._UZ(1,"div",13),i.BQk()),2&te){const E=Pn.ngIf;i.xp6(),i.Q6J("ngStyle",i.VKq(1,ix,"url("+E+")"))}}function kf(te,Pn){if(1&te&&(i.TgZ(0,"tr")(1,"td")(2,"p"),i._uU(3),i.qZA(),i._UZ(4,"img",14),i.qZA(),i.TgZ(5,"td"),i._UZ(6,"qrcode",15),i.qZA()()),2&te){const E=Pn.$implicit;i.xp6(3),i.Oqu(E.label),i.xp6(),i.s9C("src",E.imageUrl,i.LSH),i.s9C("alt",E.label),i.xp6(2),i.Q6J("qrdata",E.targetUrl)("width",180)("errorCorrectionLevel","M")}}function gh(te,Pn){if(1&te&&(i.TgZ(0,"h2"),i._uU(1),i.qZA()),2&te){const E=Pn.ngIf;i.xp6(),i.hij("",E,":")}}function dg(te,Pn){if(1&te&&(i.TgZ(0,"div",9),i._UZ(1,"img",16),i.qZA()),2&te){const E=Pn.ngIf;i.xp6(),i.s9C("src",E,i.LSH)}}function Tg(te,Pn){if(1&te){const E=i.EpF();i.ynx(0),i.TgZ(1,"a",1),i.NdJ("click",function(){i.CHM(E);const Me=i.oxw();return i.KtG(Me.print())}),i._uU(2,"Drucken"),i.qZA(),i.TgZ(3,"div",2)(4,"div",3)(5,"div",4),i.YNc(6,Qg,2,1,"h2",5),i.ALo(7,"async"),i.TgZ(8,"h1"),i._uU(9),i.ALo(10,"translate"),i.qZA()(),i.YNc(11,ox,2,3,"ng-container",5),i.ALo(12,"async"),i.qZA(),i.TgZ(13,"div",6)(14,"p"),i._uU(15),i.ALo(16,"translate"),i.qZA(),i.TgZ(17,"h3"),i._uU(18),i.ALo(19,"readI18n"),i.qZA(),i.TgZ(20,"table",7),i.YNc(21,kf,7,6,"tr",0),i.qZA()(),i.TgZ(22,"div",8)(23,"div",4)(24,"p"),i._uU(25),i.ALo(26,"readI18n"),i._UZ(27,"br"),i._uU(28),i.ALo(29,"translate"),i.qZA()(),i.TgZ(30,"div",9)(31,"p"),i._uU(32),i.ALo(33,"translate"),i._UZ(34,"br"),i._uU(35),i.ALo(36,"date"),i.qZA()()()(),i.TgZ(37,"div",2)(38,"div",3)(39,"div",4),i.YNc(40,gh,2,1,"h2",5),i.ALo(41,"async"),i.TgZ(42,"h1"),i._uU(43),i.ALo(44,"translate"),i.qZA()(),i.YNc(45,dg,2,1,"div",10),i.ALo(46,"async"),i.qZA(),i.TgZ(47,"div",6)(48,"p"),i._uU(49),i.ALo(50,"translate"),i.qZA(),i.TgZ(51,"p",11),i._uU(52),i.ALo(53,"translate"),i.qZA(),i.TgZ(54,"h3"),i._uU(55),i.ALo(56,"readI18n"),i.qZA(),i.TgZ(57,"p"),i._uU(58),i.ALo(59,"translate"),i.qZA(),i.TgZ(60,"p",12),i._uU(61),i.qZA()(),i.TgZ(62,"div",8)(63,"div",4)(64,"p"),i._uU(65),i.ALo(66,"readI18n"),i._UZ(67,"br"),i._uU(68),i.ALo(69,"translate"),i.qZA()(),i.TgZ(70,"div",9)(71,"p"),i._uU(72),i.ALo(73,"translate"),i._UZ(74,"br"),i._uU(75),i.ALo(76,"date"),i.qZA()()()(),i.BQk()}if(2&te){const E=Pn.$implicit,_e=i.oxw();i.xp6(6),i.Q6J("ngIf",i.lcZ(7,28,_e.productLabel$)),i.xp6(3),i.Oqu(i.lcZ(10,30,"entity.QrAnnouncementAddressbase.print.title")),i.xp6(2),i.Q6J("ngIf",i.lcZ(12,32,_e.logoUrl$)),i.xp6(4),i.Oqu(i.lcZ(16,34,"entity.QrAnnouncementAddressbase.print.qrdescription")),i.xp6(3),i.AsE("",i.lcZ(19,36,E.poiLabel)," (ID: ",E.id,")"),i.xp6(3),i.Q6J("ngForOf",E.qrCodeItems),i.xp6(4),i.AsE(" ",i.lcZ(26,38,E.poiLabel)," (ID: ",E.id,")"),i.xp6(3),i.AsE(" ",i.lcZ(29,40,"entity.QrAnnouncementAddressbase.print.imxplatformInstance")," ",_e.platformUrl," "),i.xp6(4),i.hij(" ",i.lcZ(33,42,"filter.Announcement.page")," 1 / 2"),i.xp6(3),i.hij(" ",i.xi3(36,44,_e.currentDate,"dd.MM.yyyy HH:MM")," "),i.xp6(5),i.Q6J("ngIf",i.lcZ(41,47,_e.productLabel$)),i.xp6(3),i.Oqu(i.lcZ(44,49,"entity.QrAnnouncementAddressbase.print.title")),i.xp6(2),i.Q6J("ngIf",i.lcZ(46,51,_e.logoUrl$)),i.xp6(4),i.Oqu(i.lcZ(50,53,"entity.QrAnnouncementAddressbase.print.pindescription")),i.xp6(3),i.Oqu(i.lcZ(53,55,"entity.QrAnnouncementAddressbase.print.yourpoi")),i.xp6(3),i.AsE("",i.lcZ(56,57,E.poiLabel)," (ID: ",E.id,")"),i.xp6(3),i.Oqu(i.lcZ(59,59,"entity.QrAnnouncementAddressbase.print.yourpin")),i.xp6(3),i.Oqu(E.pinCode),i.xp6(4),i.AsE(" ",i.lcZ(66,61,E.poiLabel)," (ID: ",E.id,")"),i.xp6(3),i.AsE(" ",i.lcZ(69,63,"entity.QrAnnouncementAddressbase.print.imxplatformInstance")," ",_e.platformUrl," "),i.xp6(4),i.hij(" ",i.lcZ(73,65,"filter.Announcement.page")," 2 / 2"),i.xp6(3),i.hij(" ",i.xi3(76,67,_e.currentDate,"dd.MM.yyyy HH:MM")," ")}}let hh=(()=>{class te{constructor(E,_e,Me,Ln,to){this.route=E,this.router=_e,this.dataAccess=Me,this.configuration=Ln,this.translateService=to,this.logger=(0,l.getLogger)("QrAnnouncementPrintPage",Mi.H.name),this.qrCodePages$=Lf.E,this.currentDate=new Date,this.logoUrl$=Lf.E,this.productLabel$=Lf.E}ngOnInit(){this.platformUrl=this.buildPlatformUrl(),this.productLabel$=this.configuration.getString(l.ImxPlatformConfigParameter.IMXPLATFORM_ANNOUNCEMENT_QR_PAGE_TITLE).pipe((0,J_.B)()),this.logoUrl$=this.configuration.getString(l.ImxPlatformConfigParameter.IMXPLATFORM_ANNOUNCEMENT_QR_PAGE_LOGO_URL,"./assets/platform.svg").pipe((0,J_.B)()),this.qrCodePages$=this.route.paramMap.pipe((0,O.U)(E=>{const _e=E.get("addressbaseIds");if(_e){const Me=_e.split(",");return Me.length>1?Me.map(Ln=>+Ln):[+_e]}}),(0,Rf.zg)(E=>{const _e=E.map(Me=>this.dataAccess.getAddressbaseById(Me));return(0,fh.D)(_e)}),(0,O.U)(E=>E.map(_e=>{const Me=_e.metainfos.find(Ln=>Ln.productline.id===or.l0);return Me?{id:_e.id,poiLabel:_e.title,pinCode:Me.data.pin+"",qrCodeItems:[{label:this.translateService.instant("entity.QrAnnouncementAddressbase.print.occupancy.low"),imageUrl:"./assets/qrannouncement/low.svg",targetUrl:this.buildQrCodeUrl(_e.id,"low")},{label:this.translateService.instant("entity.QrAnnouncementAddressbase.print.occupancy.medium"),imageUrl:"./assets/qrannouncement/medium.svg",targetUrl:this.buildQrCodeUrl(_e.id,"medium")},{label:this.translateService.instant("entity.QrAnnouncementAddressbase.print.occupancy.high"),imageUrl:"./assets/qrannouncement/high.svg",targetUrl:this.buildQrCodeUrl(_e.id,"high")}]}:(this.logger.error("Addressbase "+_e.id+" does not have module modules_qr_announcement assigned"),null)}).filter(_e=>_e)))}print(){window.print()}buildPlatformUrl(){return[window.location.origin,document.querySelector("base").getAttribute("href")].join("")}buildQrCodeUrl(E,_e){return this.platformUrl.slice(0,-1)+this.router.createUrlTree(["/qr-announcement-update",{addressbaseId:E,level:_e}])}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(n.gz),i.Y36(n.F0),i.Y36(tt.N),i.Y36(l.ConfigurationProvider),i.Y36(m.sK))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["ng-component"]],decls:2,vars:3,consts:[[4,"ngFor","ngForOf"],["href","javascript:void",1,"hide-print",3,"click"],[1,"print-page"],[1,"header"],[1,"left"],[4,"ngIf"],[1,"body"],[1,"qrCodeList"],[1,"footer"],[1,"right"],["class","right",4,"ngIf"],[1,"nomargin"],[1,"pincode"],[1,"right",3,"ngStyle"],[1,"icon",3,"src","alt"],[3,"qrdata","width","errorCorrectionLevel"],["alt","imx.Platform",3,"src"]],template:function(_e,Me){1&_e&&(i.YNc(0,Tg,77,70,"ng-container",0),i.ALo(1,"async")),2&_e&&i.Q6J("ngForOf",i.lcZ(1,1,Me.qrCodePages$))},dependencies:[ee.F,x.sg,x.O5,x.PC,cg.V,lt.j,x.Ov,x.uU,m.X$],styles:['.hide-print[_ngcontent-%COMP%]{margin:20px auto;display:block;text-align:center}@media print{.hide-print[_ngcontent-%COMP%]{display:none}}.print-page[_ngcontent-%COMP%]{width:100%;max-width:720px;margin-left:auto;margin-right:auto;page-break-after:always}.print-page[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{padding:20px}.print-page[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{float:left}.print-page[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:28px;padding:10px 0 0;font-weight:400}.print-page[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:40px;font-weight:700;padding:10px 0}.print-page[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{float:right;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;width:200px;height:80px;background-size:contain;background-position:top right;background-repeat:no-repeat}.print-page[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]:after{content:"";display:table;clear:both}.print-page[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]{width:100%;height:810px;padding:0 20px 20px}.print-page[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin-bottom:10px}.print-page[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%] > p.nomargin[_ngcontent-%COMP%]{margin-bottom:0}.print-page[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%] > p.pincode[_ngcontent-%COMP%]{font-size:30px;font-weight:700}.print-page[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:28px;line-height:36px;padding:10px 0 40px}.print-page[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]{width:100%;border-spacing:0;border-collapse:collapse}.print-page[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border:1px solid #000;padding:20px;width:50%;text-align:center}.print-page[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.print-page[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{height:140px}.print-page[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]{padding:20px}.print-page[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:12px}.print-page[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{width:80%;float:left}.print-page[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{width:20%;float:right;text-align:right}.print-page[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]:after{content:"";display:table;clear:both}']})}return te})();var Vg=a(38888);function Eg(te,Pn){if(1&te){const E=i.EpF();i.ynx(0),i.TgZ(1,"form",8),i.NdJ("ngSubmit",function(){i.CHM(E);const Me=i.oxw(3);return i.KtG(Me.storeQrAnnouncement())}),i.TgZ(2,"div",9)(3,"p",10),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"h3",11),i._uU(7),i.ALo(8,"readI18n"),i.qZA(),i._UZ(9,"img",12),i.qZA(),i.TgZ(10,"div",13)(11,"label",14),i._UZ(12,"input",15),i.ALo(13,"translate"),i.qZA(),i.TgZ(14,"div",16)(15,"button",17),i._uU(16),i.ALo(17,"translate"),i.qZA()()()(),i.BQk()}if(2&te){const E=i.oxw().ngIf,_e=i.oxw().ngIf,Me=i.oxw();i.xp6(),i.Q6J("formGroup",Me.form),i.xp6(3),i.Oqu(i.lcZ(5,8,"entity.QrAnnouncementAddressbase.print.yourpoi")),i.xp6(3),i.AsE("",i.lcZ(8,10,_e.title)," (ID: ",_e.id,")"),i.xp6(2),i.MGl("src","./assets/qrannouncement/",E,".svg",i.LSH),i.xp6(3),i.s9C("placeholder",i.lcZ(13,12,"entity.QrAnnouncementAddressbase.update.enterpin")),i.xp6(3),i.Q6J("disabled",!Me.form.valid),i.xp6(),i.hij(" ",i.lcZ(17,14,"entity.QrAnnouncementAddressbase.update.submit")," ")}}function mg(te,Pn){if(1&te&&(i.ynx(0),i.TgZ(1,"div",18)(2,"h3",19),i._uU(3," entity.QrAnnouncementAddressbase.update.success.title"),i.qZA(),i.TgZ(4,"p",20),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"date"),i.ALo(8,"translate"),i.TgZ(9,"strong"),i._uU(10),i.ALo(11,"readI18n"),i.qZA(),i._uU(12),i.ALo(13,"translate"),i.TgZ(14,"strong"),i._uU(15),i.ALo(16,"translate"),i.qZA(),i._uU(17,". "),i.qZA()(),i.BQk()),2&te){const E=i.oxw().ngIf,_e=i.oxw().ngIf,Me=i.oxw();i.xp6(5),i.lnq(" ",i.lcZ(6,7,"entity.QrAnnouncementAddressbase.update.success.description.1")," ",i.xi3(7,9,Me.submissionDate,"dd.MM.yyyy HH:mm")," ",i.lcZ(8,12,"entity.QrAnnouncementAddressbase.update.success.description.2")," "),i.xp6(5),i.Oqu(i.lcZ(11,14,_e.title)),i.xp6(2),i.AsE(" (ID: ",_e.id,") ",i.lcZ(13,16,"entity.QrAnnouncementAddressbase.update.success.description.3")," "),i.xp6(3),i.Oqu(i.lcZ(16,18,"entity.QrAnnouncementAddressbase.level."+E))}}function xh(te,Pn){if(1&te&&(i.ynx(0),i.TgZ(1,"div",5)(2,"h1",6),i._uU(3,"entity.QrAnnouncementAddressbase.update.title"),i.qZA(),i.TgZ(4,"p",7),i._uU(5,"entity.QrAnnouncementAddressbase.update.description"),i.qZA()(),i.YNc(6,Eg,18,16,"ng-container",4)(7,mg,18,20,"ng-container",4),i.BQk()),2&te){const E=i.oxw(2);i.xp6(6),i.Q6J("ngIf",!E.submitted),i.xp6(),i.Q6J("ngIf",E.submitted)}}function Nf(te,Pn){if(1&te&&(i.ynx(0),i.YNc(1,xh,8,2,"ng-container",4),i.ALo(2,"async"),i.BQk()),2&te){const E=i.oxw();i.xp6(),i.Q6J("ngIf",i.lcZ(2,1,E.occupancy$))}}function Uf(te,Pn){1&te&&(i.TgZ(0,"p"),i._uU(1,"Der POI existiert leider nicht."),i.qZA())}const Q_="high",ug="medium",Ag="low";let V_=(()=>{class te{constructor(E,_e,Me,Ln,to,ha,zs){this.route=E,this.credentials=_e,this.genericDataAccess=Me,this.dataAccess=Ln,this.imxenv=to,this.configuration=ha,this.userMessageService=zs,this.poi$=Lf.E,this.occupancy$=Lf.E,this.form=new u.nJ({pin:new u.p4(null,u.kI.required)}),this.submitted=!1}ngOnInit(){this.previousCredentials=this.credentials.currentCredentials,this.poi$=(0,H.aj)([this.imxenv.getString(hs.s.IMXTOOLS_QRANNOUNCEMENT_WEBSERVICE_USER).pipe((0,Ce.q)(1)),this.imxenv.getString(hs.s.IMXTOOLS_QRANNOUNCEMENT_WEBSERVICE_PASSWORD).pipe((0,Ce.q)(1))]).pipe((0,Ue.b)(E=>{this.credentials.currentCredentials=new s.iB(E[0],E[1])}),(0,Rf.zg)(()=>this.route.paramMap),(0,O.U)(E=>+E.get("addressbaseId")),(0,Ue.b)(E=>{this.addressbaseId=E}),(0,Rf.zg)(E=>this.dataAccess.getAddressbaseById(E))),this.occupancy$=this.route.paramMap.pipe((0,O.U)(E=>E.get("level")),(0,G.h)(E=>[Ag,ug,Q_].indexOf(E)>=0),(0,Ue.b)(E=>{this.relativeOccupancy=this.mapLevelToRelativeOccupancy(E)}))}ngOnDestroy(){this.credentials.currentCredentials=this.previousCredentials}storeQrAnnouncement(){this.genericDataAccess.post("announcement/processQRCodeOccupancy",{addressbaseId:this.addressbaseId,pin:this.form.get("pin").value,relativeOccupancy:this.relativeOccupancy}).pipe((0,Ve.K)(E=>(this.userMessageService.showError(404===E.status?"entity.QrAnnouncementAddressbase.update.errors.wrongping":"entity.QrAnnouncementAddressbase.update.errors.general"),Lf.E))).subscribe(()=>{this.submissionDate=new Date,this.submitted=!0})}mapLevelToRelativeOccupancy(E){switch(E){case Ag:return 10;case ug:return 70;case Q_:return 90}}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(n.gz),i.Y36(s.TY),i.Y36(s.fx),i.Y36(tt.N),i.Y36(s.Qj),i.Y36(s.Pc),i.Y36(l.UserMessageService))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-qr-announcement-update"]],decls:7,vars:12,consts:[[3,"lg_w","lg_o","md_w","md_o","sm_w","sm_o","ty_w","ty_o"],[1,"qrAnnouncement"],[4,"ngIf","ngIfElse"],["poiNotFound",""],[4,"ngIf"],[1,"qrAnnouncement__text"],["translate","",1,"qrAnnouncement__text__title"],["translate","",1,"qrAnnouncement__text__paragraph"],["novalidate","",3,"formGroup","ngSubmit"],[1,"qrAnnouncement__details"],[1,"qrAnnouncement__details__roofline"],[1,"qrAnnouncement__details__label"],[1,"qrAnnouncement__details__indicator",3,"src"],[1,"login__inputGroup"],[1,"imx-input-text-default","icon-lock"],["type","number","name","pin","formControlName","pin","autofocus","",3,"placeholder"],[1,"imx-button-wrapper"],["type","submit",1,"imx-button-cta","imx-button","cta",3,"disabled"],[1,"qrAnnouncement__success"],["translate","",1,"qrAnnouncement__success__title"],[1,"qrAnnouncement__success__paragraph"]],template:function(_e,Me){if(1&_e&&(i.TgZ(0,"imx-grid")(1,"imx-grid-element",0)(2,"div",1),i.YNc(3,Nf,3,3,"ng-container",2),i.ALo(4,"async"),i.qZA()()(),i.YNc(5,Uf,2,0,"ng-template",null,3,i.W1O)),2&_e){const Ln=i.MAs(6);i.xp6(),i.Q6J("lg_w",4)("lg_o",4)("md_w",6)("md_o",3)("sm_w",8)("sm_o",2)("ty_w",10)("ty_o",1),i.xp6(2),i.Q6J("ngIf",i.lcZ(4,10,Me.poi$))("ngIfElse",Ln)}},dependencies:[Vg.u,x.O5,u._Y,u.Fj,u.wV,u.JJ,u.JL,u.sg,u.u,m.Pi,No.M,Ar.V,lt.j,x.Ov,x.uU,m.X$],styles:["#qrAnnouncement[_ngcontent-%COMP%]{position:relative;background:transparent;text-align:left}@media (min-width: 551px){#qrAnnouncement[_ngcontent-%COMP%]{margin:173px 0 50px;padding-bottom:45px}}@media (max-width: 550px){#qrAnnouncement[_ngcontent-%COMP%]{margin:0px calc(-2.2222222222% - 2px);width:calc(100% + 2.2222222222% + 2.2222222222% + 4px);min-height:calc(100vh - 50px);padding-bottom:72px}}.qrAnnouncement__text[_ngcontent-%COMP%]{text-align:left}@media (min-width: 551px){.qrAnnouncement__text[_ngcontent-%COMP%]{margin:0 0 30px;padding:200px 52px 0}}@media (max-width: 550px){.qrAnnouncement__text[_ngcontent-%COMP%]{margin:0 0 20px;padding:120px 0 0}}.qrAnnouncement__text__title[_ngcontent-%COMP%]:not(:last-child){margin:0 0 4px}.qrAnnouncement__text__title[_ngcontent-%COMP%]:last-child{margin:0}@media (min-width: 901px){.qrAnnouncement__text__title[_ngcontent-%COMP%]{font:600 44px/56px Noe Display,Arial,sans-serif;margin-bottom:4px;white-space:nowrap}}@media (min-width: 551px) and (max-width: 900px){.qrAnnouncement__text__title[_ngcontent-%COMP%]{font:600 36px/40px Noe Display,Arial,sans-serif;margin-bottom:4px}}@media (max-width: 550px){.qrAnnouncement__text__title[_ngcontent-%COMP%]{font:600 26px/32px Noe Display,Arial,sans-serif;margin-bottom:15px;text-align:center}}.qrAnnouncement__text__paragraph[_ngcontent-%COMP%]{font:500 14px/1.2142857143 GT Walsheim,Arial,sans-serif;opacity:.75}.qrAnnouncement__text__paragraph[_ngcontent-%COMP%]:not(:last-child){margin:0 0 5px}.qrAnnouncement__text__paragraph[_ngcontent-%COMP%]:last-child{margin:0}@media (min-width: 551px){.qrAnnouncement__text__paragraph[_ngcontent-%COMP%]{text-align:left}}@media (max-width: 550px){.qrAnnouncement__text__paragraph[_ngcontent-%COMP%]{text-align:center}}.qrAnnouncement__details[_ngcontent-%COMP%]   .qrAnnouncement__details__roofline[_ngcontent-%COMP%]{font:500 14px/1.2142857143 GT Walsheim,Arial,sans-serif;opacity:.75;text-align:center}.qrAnnouncement__details[_ngcontent-%COMP%]   .qrAnnouncement__details__label[_ngcontent-%COMP%]{font:600 20px/24px Noe Display,Arial,sans-serif;margin-bottom:15px;text-align:center}.qrAnnouncement__details[_ngcontent-%COMP%]   .qrAnnouncement__details__indicator[_ngcontent-%COMP%]{text-align:center;max-height:120px;padding:20px 0}.qrAnnouncement__success[_ngcontent-%COMP%]{margin-top:50px}.qrAnnouncement__success[_ngcontent-%COMP%]   .qrAnnouncement__success__title[_ngcontent-%COMP%]{font:600 20px/24px Noe Display,Arial,sans-serif;margin-bottom:15px;text-align:center}.qrAnnouncement__success[_ngcontent-%COMP%]   .qrAnnouncement__success__paragraph[_ngcontent-%COMP%]{text-align:center;max-height:120px;padding:20px 0}.login__inputGroup[_ngcontent-%COMP%]:not(:last-child){margin:0 0 30px}.login__inputGroup[_ngcontent-%COMP%]:last-child{margin:0}@media (min-width: 1401px){.login__inputGroup[_ngcontent-%COMP%] > .imx-input-text-default[_ngcontent-%COMP%]:not(:last-child){margin:0 0 10px -31px}}@media (max-width: 1400px){.login__inputGroup[_ngcontent-%COMP%] > .imx-input-text-default[_ngcontent-%COMP%]:not(:last-child){margin:0 0 10px}}@media (min-width: 1401px){.login__inputGroup[_ngcontent-%COMP%] > .imx-input-text-default[_ngcontent-%COMP%]:last-child{margin:0 0 0 -31px}}@media (max-width: 1400px){.login__inputGroup[_ngcontent-%COMP%] > .imx-input-text-default[_ngcontent-%COMP%]:last-child{margin:0}}@media (min-width: 551px){.login__inputGroup[_ngcontent-%COMP%]{padding:0 52px}}@media (max-width: 550px){.login__inputGroup[_ngcontent-%COMP%]{padding:0 8px}}.login__inputGroup__functions[_ngcontent-%COMP%]{font:700 13.6px GT Walsheim,Arial,sans-serif}@media (min-width: 551px){.login__inputGroup__functions[_ngcontent-%COMP%]{text-align:left}}@media (max-width: 550px){.login__inputGroup__functions[_ngcontent-%COMP%]{text-align:center}}.imx-input-text-default[_ngcontent-%COMP%]{display:block;padding:15px;border:1px #000000 solid;border-radius:25px;cursor:text}.imx-input-text-default[_ngcontent-%COMP%]:before{display:inline-block;vertical-align:sub;width:20px;margin-right:8px;font-family:imx-linearicons!important;font-size:18px;line-height:1em;font-weight:900}.imx-input-text-default[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{font:300 17px/20px GT Walsheim,Arial,sans-serif;width:calc(100% - 28px);height:1.25;background:transparent;border:none;border-radius:0;outline:none}.imx-input-text-default[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]::placeholder{color:currentColor;opacity:1}input[_ngcontent-%COMP%]:-webkit-autofill, input[_ngcontent-%COMP%]:-webkit-autofill:hover, input[_ngcontent-%COMP%]:-webkit-autofill:focus, input[_ngcontent-%COMP%]:-webkit-autofill:active{-webkit-box-shadow:0 0 0 30px #eefafa inset!important}.imx-button-wrapper[_ngcontent-%COMP%]{display:flex}@media (min-width: 551px){.imx-button-wrapper[_ngcontent-%COMP%]{justify-content:flex-start}}@media (max-width: 550px){.imx-button-wrapper[_ngcontent-%COMP%]{justify-content:center}}.imx-button-cta[_ngcontent-%COMP%]{margin-bottom:20px;cursor:pointer;font:700 14.3157894737px GT Walsheim,Arial,sans-serif;text-transform:uppercase;text-align:center;display:inline-block;padding:14px 10px;border:none;border-radius:0;outline:none;box-shadow:2px 2px 4px #0003}@media (min-width: 1401px){.imx-button-cta[_ngcontent-%COMP%]{min-width:224px}}@media (min-width: 551px) and (max-width: 1400px){.imx-button-cta[_ngcontent-%COMP%]{min-width:224px}}@media (max-width: 550px){.imx-button-cta[_ngcontent-%COMP%]{min-width:167px}}"]})}return te})(),Bf=(()=>{class te extends l.AbstractCoreDataObjectResolverService{constructor(E,_e,Me){super(E,_e),this.entityBrowseHistoryStorageService=E,this.contactListService=_e,this.dataAccess=Me}getEntityType(){return"Addressbase"}getDataObjectById(E){return this.dataAccess.getAddressbaseById(E)}initCoreDataObject(E){return this.dataAccess.initAddressbase()}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.LFG(l.EntityBrowseHistoryStorageService),i.LFG(l.ContactListService),i.LFG(tt.N))};static#t=this.\u0275prov=i.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"})}return te})(),Tt=(()=>{class te extends l.AbstractCoreDataObjectResolverService{constructor(E,_e,Me){super(E,_e),this.entityBrowseHistoryStorageService=E,this.contactListService=_e,this.dataAccess=Me,this.logger=(0,l.getLogger)("OfferResolverService",Mi.H.name)}getEntityType(){return"Offer"}getDataObjectById(E){return this.dataAccess.getOfferById(E)}initCoreDataObject(E){let _e=Number.parseInt(E.queryParamMap.get("addressbaseId")||"",10);return this.logger.debug("Set addressbase for new offer. AddressbaseId = "+_e),Number.isNaN(_e)&&(_e=null),this.dataAccess.initOffer().pipe((0,Ue.b)(Me=>Me.Offer.addressbase={id:_e}))}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.LFG(l.EntityBrowseHistoryStorageService),i.LFG(l.ContactListService),i.LFG(tt.N))};static#t=this.\u0275prov=i.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"})}return te})(),zt=(()=>{class te extends l.AbstractCoreDataObjectResolverService{constructor(E,_e,Me){super(E,_e),this.entityBrowseHistoryStorageService=E,this.contactListService=_e,this.dataAccess=Me}getEntityType(){return"Announcement"}getDataObjectById(E){return this.dataAccess.getAnnouncementById(E)}initCoreDataObject(E){let _e=Number.parseInt(E.queryParamMap.get("addressPoiId")||"",10);return Number.isNaN(_e)&&(_e=null),this.dataAccess.initAnnouncement().pipe((0,Ue.b)(Me=>Me.Announcement.addressPoi={id:_e}))}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.LFG(l.EntityBrowseHistoryStorageService),i.LFG(l.ContactListService),i.LFG(tt.N))};static#t=this.\u0275prov=i.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"})}return te})();var on=a(19969),hn=a(21893);function Gn(te,Pn){1&te&&i.GkF(0)}function Gi(te,Pn){1&te&&i.GkF(0)}function Po(te,Pn){1&te&&i.GkF(0)}function er(te,Pn){1&te&&i.GkF(0)}function Tr(te,Pn){1&te&&i.GkF(0)}const va=()=>({$implicit:"addressPoiId"}),gl=()=>({$implicit:"id"}),Fl=()=>({$implicit:"type"}),Zl=()=>({$implicit:"validOnly"}),is=()=>({$implicit:"invalidOnly"});function Yc(te,Pn){if(1&te&&(i.TgZ(0,"form",2)(1,"div",3)(2,"imx-grid")(3,"imx-grid-element",4),i.YNc(4,Gn,1,0,"ng-container",5),i.qZA(),i.TgZ(5,"imx-grid-element",4),i.YNc(6,Gi,1,0,"ng-container",5),i.qZA(),i.TgZ(7,"imx-grid-element",4),i.YNc(8,Po,1,0,"ng-container",5),i.qZA(),i.TgZ(9,"imx-grid-element",4),i._UZ(10,"imx-base-date",6),i.qZA(),i.TgZ(11,"imx-grid-element",4)(12,"div",7),i.YNc(13,er,1,0,"ng-container",5),i.qZA(),i.TgZ(14,"div",7),i.YNc(15,Tr,1,0,"ng-container",5),i.qZA()(),i.Hsn(16),i.qZA()()()),2&te){const E=i.oxw(),_e=i.MAs(2);i.Q6J("formGroup",E.parentForm),i.xp6(3),i.Q6J("lg_w",6)("sm_w",6),i.xp6(),i.Q6J("ngTemplateOutlet",_e)("ngTemplateOutletContext",i.DdM(23,va)),i.xp6(),i.Q6J("lg_w",6)("sm_w",12),i.xp6(),i.Q6J("ngTemplateOutlet",_e)("ngTemplateOutletContext",i.DdM(24,gl)),i.xp6(),i.Q6J("lg_w",6)("sm_w",12),i.xp6(),i.Q6J("ngTemplateOutlet",_e)("ngTemplateOutletContext",i.DdM(25,Fl)),i.xp6(),i.Q6J("lg_w",6)("sm_w",12),i.xp6(),i.Q6J("label",E.formHandler.getFormFieldLabel("validityTime"))("quickaccess","today"),i.xp6(),i.Q6J("lg_w",6)("sm_w",12),i.xp6(2),i.Q6J("ngTemplateOutlet",_e)("ngTemplateOutletContext",i.DdM(26,Zl)),i.xp6(2),i.Q6J("ngTemplateOutlet",_e)("ngTemplateOutletContext",i.DdM(27,is))}}function Yd(te,Pn){if(1&te&&i._UZ(0,"imx-form-control",8),2&te){const E=Pn.$implicit,_e=i.oxw();i.Q6J("field",_e.formHandler.formConfiguration.findFormFieldById(E))("control",_e.formHandler.formGroup.get(E))("form",_e.formHandler.formGroup)("formHandler",_e.formHandler)("config",_e.formHandler.formConfiguration)}}const cm=["*"];let jm=(()=>{class te extends l.AbstractFilterPanelComponent{constructor(){super(),this.id="MAIN_FILTER",this.titleKey="imxplatform.common-entity.filter.mainFilter.name",this.icon="icon-cube",this.filterFields=["id","importId","language","creationUser","lastChangeUser","addressPoiId","validityTime","type"]}static#e=this.\u0275fac=function(_e){return new(_e||te)};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-announcement-filter-panel"]],hostAttrs:[1,"imx-announcement-filter-panel"],features:[i._Bn([(0,l.provideParent)(te)]),i.qOj],ngContentSelectors:cm,decls:3,vars:1,consts:[[3,"formGroup",4,"ngIf"],["imxControl",""],[3,"formGroup"],[1,"filter__card"],[3,"lg_w","sm_w"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["formControlName","validityTime",3,"label","quickaccess"],[1,"announcement-filter__cb"],[3,"field","control","form","formHandler","config"]],template:function(_e,Me){1&_e&&(i.F$t(),i.YNc(0,Yc,17,28,"form",0)(1,Yd,1,5,"ng-template",null,1,i.W1O)),2&_e&&i.Q6J("ngIf",Me.panelShown)},dependencies:[go.d,Y.A,x.O5,x.tP,u._Y,u.JJ,u.JL,u.sg,u.u,No.M,Ar.V],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}.announcement-filter__cb[_ngcontent-%COMP%]{margin-right:5px}"]})}return te})();function up(te,Pn){if(1&te&&i._UZ(0,"imx-announcement-filter-panel",2,3)(2,"imx-fulltext-filter-panel",2,4)(4,"imx-client-filter-panel",5,6)(6,"imx-geo-filter-panel",2,7),2&te){const E=i.oxw();i.Q6J("parentForm",E.formHandler.formGroup)("record",E.record)("formHandler",E.formHandler),i.xp6(2),i.Q6J("parentForm",E.formHandler.formGroup)("record",E.record)("formHandler",E.formHandler),i.xp6(2),i.Q6J("parentForm",E.formHandler.formGroup)("record",E.record)("formHandler",E.formHandler)("availableClients",E.availableClients),i.xp6(2),i.Q6J("parentForm",E.formHandler.formGroup)("record",E.record)("formHandler",E.formHandler)}}let T_=(()=>{class te extends l.AbstractEntityFilterComponent{constructor(E,_e,Me,Ln){super(),this.configurationProvider=E,this.entitiesMgrService=_e,this.securityManagerService=Me,this.runtimeContextService=Ln}ngOnInit(){super.ngOnInit(),this.availableClients=this.determineAvailableClients(),this.availableProductlines=this.determineAvailableProductlines()}determineAvailableClients(){return this.runtimeContextService.getCurrentAndSubClients().pipe((0,O.U)(E=>Array.from(E)))}determineAvailableProductlines(){return this.entitiesMgrService.getAllEntitiesOfType("Productline").pipe((0,O.U)(E=>E.items.filter(_e=>this.hasAddressbaseDetails(_e))))}hasAddressbaseDetails(E){return!!(E.addressbaseDetails&&Object.keys(E.addressbaseDetails).length>0)||E.children.some(Me=>this.hasAddressbaseDetails(Me))}getEntityName(){return"Announcement"}clientParams2RequestParams(E){return{}}newWidgetDef(E,_e,Me){}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(s.Pc),i.Y36(s.qB),i.Y36(s.Xh),i.Y36(s.Ze))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["imx-announcement-filter"]],features:[i.qOj],decls:3,vars:9,consts:[[3,"entityName","filterPanelsTemplate","formHandler","record","orderFields","orderField","orderDirection","enableSearchListOption","enableCreateContactListOption","orderChanged","save"],["filterPanelsTemplate",""],[3,"parentForm","record","formHandler"],["mainFilterPanel",""],["fulltextFilterPanel",""],[3,"parentForm","record","formHandler","availableClients"],["clientFilterPanel",""],["geoFilterPanel",""]],template:function(_e,Me){if(1&_e&&(i.TgZ(0,"imx-filter",0),i.NdJ("orderChanged",function(to){return Me.orderChanged.emit(to)})("save",function(to){return Me.applyFilter.emit(to)}),i.YNc(1,up,8,13,"ng-template",null,1,i.W1O),i.qZA()),2&_e){const Ln=i.MAs(2);i.Q6J("entityName","Announcement")("filterPanelsTemplate",Ln)("formHandler",Me.formHandler)("record",Me.record)("orderFields",Me.orderFields)("orderField",Me.orderField)("orderDirection",Me.orderDirection)("enableSearchListOption",!0)("enableCreateContactListOption",Me.enableCreateContactListOption)}},dependencies:[Be.Q,Ye.z,ut.Y,Kt.L,jm]})}return te})();function u_(te,Pn){1&te&&i._UZ(0,"imx-create-new-entity-button",15),2&te&&i.Q6J("entityRoute","/announcements")("entityResourceKeyPrefix","imxplatform.announcement")}function kp(te,Pn){1&te&&(i.TgZ(0,"imx-list-no-results"),i._uU(1,"imxplatform.announcement.list.no-records"),i.qZA())}function p_(te,Pn){1&te&&i._UZ(0,"mat-progress-bar",16)}function Wd(te,Pn){if(1&te&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&te){const E=Pn.$implicit;i.Udp("width",E.width),i.Q6J("ngClass",E.cssClass),i.xp6(),i.hij(" ",i.lcZ(2,4,E.header)," ")}}function Zf(te,Pn){if(1&te&&(i.TgZ(0,"tr"),i.YNc(1,Wd,3,6,"th",22),i.qZA()),2&te){const E=i.oxw(3);i.xp6(),i.Q6J("ngForOf",E.columnDefinitions)}}const Hf=te=>({selected:te}),Yp=te=>["edit",te],Lr=te=>["/addressbases","edit",te];function Ha(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"tr",24)(1,"td",25)(2,"mat-checkbox",26),i.NdJ("change",function(Me){i.CHM(E);const Ln=i.oxw(3);return i.KtG(Ln.onSelectionChanged(Me))}),i.qZA()(),i.TgZ(3,"td"),i._uU(4),i.qZA(),i.TgZ(5,"td",27),i.ALo(6,"readI18n"),i.TgZ(7,"a",28)(8,"span",29),i._UZ(9,"span",30),i.qZA(),i._uU(10),i.ALo(11,"readI18n"),i.qZA()(),i.TgZ(12,"td",27)(13,"div",29),i._UZ(14,"span",31),i.qZA(),i.TgZ(15,"a",28),i._uU(16),i.ALo(17,"readI18n"),i.qZA()(),i.TgZ(18,"td",27),i.ALo(19,"readI18n"),i._uU(20),i.ALo(21,"readI18n"),i.qZA(),i.TgZ(22,"td",27),i.ALo(23,"date"),i._uU(24),i.ALo(25,"date"),i.qZA(),i.TgZ(26,"td",27),i.ALo(27,"date"),i._uU(28),i.ALo(29,"date"),i._UZ(30,"br"),i._uU(31),i.qZA(),i.TgZ(32,"td",27),i.ALo(33,"date"),i._uU(34),i.ALo(35,"date"),i._UZ(36,"br"),i._uU(37),i.qZA(),i.TgZ(38,"td",32)(39,"imx-dropup-button")(40,"imx-search-list-action-menu",12),i.NdJ("executeAction",function(Me){const to=i.CHM(E).$implicit,ha=i.oxw(3);return i.KtG(ha.executeRowAction(Me,to))}),i.ynx(41,33),i.TgZ(42,"imx-action-menu-item",34),i._uU(43,"imxplatform.common-entity.list.edit "),i.qZA(),i.BQk(),i.qZA()()()()}if(2&te){const E=Pn.$implicit,_e=i.oxw(3);i.Q6J("ngClass",i.VKq(58,Hf,_e.isItemSelected(E.id))),i.xp6(2),i.Q6J("value",E.id)("checked",_e.isItemSelected(E.id)),i.xp6(2),i.Oqu(E.id),i.xp6(),i.Q6J("matTooltip",i.lcZ(6,30,E.title))("matTooltipShowDelay",500),i.xp6(2),i.Q6J("routerLink",i.VKq(60,Yp,E.id)),i.xp6(3),i.hij(" ",i.lcZ(11,32,E.title)," "),i.xp6(2),i.Q6J("matTooltip",null==E.addressPoi?null:E.addressPoi.id)("matTooltipShowDelay",500),i.xp6(3),i.Q6J("routerLink",i.VKq(62,Lr,null==E.addressPoi?null:E.addressPoi.id)),i.xp6(),i.AsE("",i.lcZ(17,34,null==E.addressPoi?null:E.addressPoi.title)," (",null==E.addressPoi?null:E.addressPoi.id,")"),i.xp6(2),i.Q6J("matTooltip",i.lcZ(19,36,E.type.i18nName))("matTooltipShowDelay",500),i.xp6(2),i.hij(" ",i.lcZ(21,38,E.type.i18nName)," "),i.xp6(2),i.Q6J("matTooltip",i.xi3(23,40,E.validityTime,"dd.MM.yyyy HH:mm"))("matTooltipShowDelay",500),i.xp6(2),i.hij(" ",i.xi3(25,43,E.validityTime,"dd.MM.yyyy HH:mm")," "),i.xp6(2),i.Q6J("matTooltip",i.xi3(27,46,E.creationTime,"dd.MM.yyyy HH:mm")+" "+E.creationFrom)("matTooltipShowDelay",500),i.xp6(2),i.hij(" ",i.xi3(29,49,E.creationTime,"dd.MM.yyyy HH:mm")," "),i.xp6(3),i.hij(" ",E.creationFrom," "),i.xp6(),i.Q6J("matTooltip",i.xi3(33,52,E.lastChangeTime,"dd.MM.yyyy HH:mm")+" "+E.lastChangeFrom)("matTooltipShowDelay",500),i.xp6(2),i.hij(" ",i.xi3(35,55,E.lastChangeTime,"dd.MM.yyyy HH:mm")," "),i.xp6(3),i.hij(" ",E.lastChangeFrom," "),i.xp6(3),i.Q6J("actions",null==_e.actionProvider?null:_e.actionProvider.getRowActionsForType(_e.getEntityName(),E.id)),i.xp6(2),i.Q6J("icon","icon-pencil")("routerLink",i.VKq(64,Yp,E.id))}}function ws(te,Pn){if(1&te&&(i.ynx(0),i.TgZ(1,"p-table",19),i.YNc(2,Zf,2,1,"ng-template",20)(3,Ha,44,66,"ng-template",21),i.qZA(),i.BQk()),2&te){const E=i.oxw().ngIf;i.xp6(),i.Q6J("value",E.items)("resizableColumns",!0)}}function cl(te,Pn){if(1&te&&(i.TgZ(0,"div",17),i.YNc(1,ws,4,2,"ng-container",18),i.qZA()),2&te){const E=Pn.ngIf;i.oxw();const _e=i.MAs(8);i.xp6(),i.Q6J("ngIf",E.items.length>0)("ngIfElse",_e)}}function Wl(te,Pn){if(1&te&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"translate"),i.TgZ(3,"span",35),i._uU(4),i.qZA()(),i._UZ(5,"span",36)),2&te){const E=i.oxw();i.xp6(),i.hij("",i.lcZ(2,2,"imxplatform.common-entity.list.selected-items")," "),i.xp6(3),i.hij("(",null==E.selectedIds?null:E.selectedIds.size,")")}}const hc=[{path:"addressbases",children:[{path:"edit/:id",canActivate:[s.YX],canDeactivate:[l.RecordDirtyGuard],component:xe,resolve:{record:Bf},data:{title:"imxtools.addressbase.edit.pageTitle",mode:"UPDATE",permissions:[ji.i.F_ADDRESSBASE_READ_ALL,ji.i.F_ADDRESSBASE_READ_OWN_CLIENT,ji.i.F_ADDRESSBASE_READ_OWN_USER],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard","ProductlineLoadGuard"]}},{path:"new",canActivate:[s.YX],component:xe,resolve:{record:Bf},data:{title:"imxtools.addressbase.edit.pageTitleNew",mode:"CREATE",permissions:[ji.i.F_ADDRESSBASE_CREATE],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard","ProductlineLoadGuard"]}},{path:"compact",canActivate:[s.YX],component:Xu,data:{title:"imxtools.addressbase.list.pageTitleCompact",permissions:[ji.i.F_ADDRESSBASE_READ_ALL,ji.i.F_ADDRESSBASE_READ_OWN_CLIENT,ji.i.F_ADDRESSBASE_READ_OWN_USER],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard","ProductlineLoadGuard"]}},{path:"",canActivate:[s.YX],component:jr,data:{title:"imxtools.addressbase.list.pageTitle",permissions:[ji.i.F_ADDRESSBASE_READ_ALL,ji.i.F_ADDRESSBASE_READ_OWN_CLIENT,ji.i.F_ADDRESSBASE_READ_OWN_USER],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard","ProductlineLoadGuard"]}}]},{path:"tours",children:[{path:"edit/:id",canActivate:[s.YX],canDeactivate:[l.RecordDirtyGuard],component:h,resolve:{record:Bf},data:{title:"imxtools.tour.edit.pageTitle",mode:"UPDATE",permissions:[ji.i.F_ADDRESSBASE_READ_ALL,ji.i.F_ADDRESSBASE_READ_OWN_CLIENT,ji.i.F_ADDRESSBASE_READ_OWN_USER],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard","ProductlineLoadGuard"]}},{path:"new",canActivate:[s.YX],component:h,resolve:{record:Bf},data:{title:"imxtools.tour.edit.pageTitleNew",mode:"CREATE",permissions:[ji.i.F_ADDRESSBASE_CREATE],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard","ProductlineLoadGuard"]}},{path:"compact",canActivate:[s.YX],component:wm,data:{title:"imxtools.tour.list.pageTitleCompact",permissions:[ji.i.F_ADDRESSBASE_READ_ALL,ji.i.F_ADDRESSBASE_READ_OWN_CLIENT,ji.i.F_ADDRESSBASE_READ_OWN_USER],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard","ProductlineLoadGuard"]}},{path:"",canActivate:[s.YX],component:Hr,data:{title:"imxtools.tour.list.pageTitle",permissions:[ji.i.F_ADDRESSBASE_READ_ALL,ji.i.F_ADDRESSBASE_READ_OWN_CLIENT,ji.i.F_ADDRESSBASE_READ_OWN_USER],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard","ProductlineLoadGuard"]}}]},{path:"addressbaseDuplicates",children:[{path:"",canActivate:[s.YX],component:$p,data:{title:"imxplatform.duplicate.list.pageTitle",permissions:[s.uo.F_ADDRESSPOI_DUPLICATES],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard","ProductlineLoadGuard"]}}]},{path:"offers",children:[{path:"edit/:id",canActivate:[s.YX],canDeactivate:[l.RecordDirtyGuard],component:Vd,resolve:{record:Tt},data:{title:"imxtools.offer.edit.pageTitle",mode:"UPDATE",permissions:[ji.i.F_OFFER_READ_ALL,ji.i.F_OFFER_READ_OWN_CLIENT,ji.i.F_OFFER_READ_OWN_USER],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard","ProductlineLoadGuard"]}},{path:"new",canActivate:[s.YX],component:Vd,resolve:{record:Tt},data:{title:"imxtools.offer.edit.pageTitleNew",mode:"CREATE",permissions:[ji.i.F_OFFER_CREATE],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard","ProductlineLoadGuard"]}},{path:"compact",canActivate:[s.YX],component:ag,data:{title:"imxtools.offer.list.pageTitleCompact",permissions:[ji.i.F_OFFER_READ_ALL,ji.i.F_OFFER_READ_OWN_CLIENT,ji.i.F_OFFER_READ_OWN_USER],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard","ProductlineLoadGuard"]}},{path:"",canActivate:[s.YX],component:Rp,data:{title:"imxtools.offer.list.pageTitle",permissions:[ji.i.F_OFFER_READ_ALL,ji.i.F_OFFER_READ_OWN_CLIENT,ji.i.F_OFFER_READ_OWN_USER],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard","ProductlineLoadGuard"]}}]},{path:"inbox",children:[{path:"addressbases",children:[{path:"compact",canActivate:[s.YX],component:Il,data:{title:"imxtools.addressbase.list.datamanager.list.pageTitleCompact",permissions:[ji.i.F_ADDRESSBASE_READ_ALL,ji.i.F_ADDRESSBASE_READ_OWN_CLIENT,ji.i.F_ADDRESSBASE_READ_OWN_USER],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard","ProductlineLoadGuard"]}},{path:"",canActivate:[s.YX],component:ad,data:{title:"imxtools.addressbase.list.datamanager.list.pageTitle",permissions:[ji.i.F_ADDRESSBASE_READ_ALL,ji.i.F_ADDRESSBASE_READ_OWN_CLIENT,ji.i.F_ADDRESSBASE_READ_OWN_USER],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard","ProductlineLoadGuard"]}}]}]},{path:"announcements",children:[{path:"edit/:id",canActivate:[s.YX],canDeactivate:[l.RecordDirtyGuard],component:Ip,resolve:{record:zt},data:{title:"imxplatform.announcement.edit.pageTitle",mode:"UPDATE",permissions:[s.uo.F_ANNOUNCEMENT_READ],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard"]}},{path:"new",canActivate:[s.YX],component:Ip,resolve:{record:zt},data:{title:"imxplatform.announcement.edit.pageTitleNew",mode:"CREATE",permissions:[s.uo.F_ANNOUNCEMENT_CREATE],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard"]}},{path:"",canActivate:[s.YX],component:(()=>{class te extends l.AbstractSearchPage{constructor(E,_e,Me,Ln,to,ha,zs,cc,Gl,id,zd){super(E,_e,Me,Ln,to,ha,cc,Gl,void 0,id,zd,zs,{},!0),this.imxPermissions=s.uo,this.availableOrderFields=[{index:1,field:"TITLE",i18n:"entity.ExtCoreDataObject.title",type:l.OrderType.alphanumeric},{index:2,field:"ID",i18n:"entity.DataObject.id",type:l.OrderType.numeric},{index:4,field:"CREATION_TIME",i18n:"imxplatform.common-entity.list.sort.creationTime",type:l.OrderType.numeric},{index:5,field:"LAST_CHANGE",i18n:"imxplatform.common-entity.list.sort.lastChange",type:l.OrderType.numeric},{index:6,field:"LAST_CHANGE_FROM",i18n:"imxplatform.common-entity.list.sort.lastChangeFrom",type:l.OrderType.alphanumeric},{index:7,field:"VALIDITY_TIME",i18n:"filter.Announcement.validityTime",type:l.OrderType.numeric}],this.columnDefinitions=[{field:"select",header:"",width:"40px",cssClass:"select-column"},{field:"id",header:"ID",width:"70px"},{field:"title",header:"entity.Announcement.title",width:"25%"},{field:"addressPoi",header:"entity.Announcement.addressPoi",width:"25%"},{field:"type",header:"entity.Announcement.type",width:"10%"},{field:"validityTime",header:"entity.Announcement.validityTime",width:"10%"},{field:"creationTime",header:"entity.AuditedDataObject.creationTime",width:"10%"},{field:"lastChangeTime",header:"entity.AuditedDataObject.lastChangeTime",width:"10%"},{field:"action",header:"",width:"50px",cssClass:"action-column"}],this.orderField="LAST_CHANGE",this.orderDirection="DESC"}getEntityName(){return"Announcement"}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(on.l),i.Y36(n.F0),i.Y36(n.gz),i.Y36(l.UserMessageService),i.Y36(l.ListHistoryService),i.Y36(B.uw),i.Y36(l.ActionProviderService),i.Y36(hn.IA),i.Y36(l.ImxPlatformDataAccessService),i.Y36(l.PlatformTrackingService),i.Y36(l.ObjectListCreationService))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["ng-component"]],features:[i.qOj],decls:21,vars:20,consts:[[1,"search-page"],[3,"formHandler","record","orderFields","orderField","orderDirection","orderChanged","applyFilter","resetFilter"],[3,"totalNumber","entityResourceKeyPrefix","showCompactToggle","reload"],["list-header-button-row",""],[3,"entityRoute","entityResourceKeyPrefix",4,"hasAnyPermission"],["lg_w","12","lg_o","0"],["noResults",""],["loading",""],["class","table-wrapper",4,"ngIf","ngIfElse"],[3,"paging","selection","pageChanged","selectAll"],["position","above","halign","start"],["imx-dropup-trigger",""],[3,"actions","executeAction"],["search-list-action-menu-middle",""],[3,"icon","actionClicked"],[3,"entityRoute","entityResourceKeyPrefix"],["mode","indeterminate"],[1,"table-wrapper"],[4,"ngIf","ngIfElse"],[1,"imx-datatable",3,"value","resizableColumns"],["pTemplate","header"],["pTemplate","body"],["pResizableColumn","",3,"ngClass","width",4,"ngFor","ngForOf"],["pResizableColumn","",3,"ngClass"],[3,"ngClass"],[1,"select-column"],[1,"",3,"value","checked","change"],[3,"matTooltip","matTooltipShowDelay"],[1,"txt-link",3,"routerLink"],[1,"badge"],[1,"icon-entityType-Announcement"],[1,"icon-entityType-Addressbase"],[1,"action-column"],["search-list-action-menu-top",""],[3,"icon","routerLink"],[1,"selected-size"],[1,"icon-chevron-down"]],template:function(_e,Me){if(1&_e&&(i.TgZ(0,"div",0)(1,"imx-announcement-filter",1),i.NdJ("orderChanged",function(to){return Me.sort(to)})("applyFilter",function(to){return Me.search(to)})("resetFilter",function(){return Me.reset()}),i.qZA(),i.TgZ(2,"imx-list-header",2),i.NdJ("reload",function(){return Me.reloadComplete()}),i.ynx(3,3),i.YNc(4,u_,1,2,"imx-create-new-entity-button",4),i.BQk(),i.qZA(),i.TgZ(5,"imx-grid")(6,"imx-grid-element",5),i.YNc(7,kp,2,0,"ng-template",null,6,i.W1O)(9,p_,1,0,"ng-template",null,7,i.W1O)(11,cl,2,2,"div",8),i.ALo(12,"async"),i.qZA()(),i.TgZ(13,"imx-list-footer",9),i.NdJ("pageChanged",function(to){return Me.onPageChanged(to)})("selectAll",function(to){return Me.onSelectAll(to)}),i.TgZ(14,"imx-dropup-button",10),i.YNc(15,Wl,6,4,"ng-template",11),i.TgZ(16,"imx-search-list-action-menu",12),i.NdJ("executeAction",function(to){return Me.executeBatchAction(to)}),i.ynx(17,13),i.TgZ(18,"imx-action-menu-item",14),i.NdJ("actionClicked",function(){return Me.addToObjectList()}),i._uU(19),i.ALo(20,"translate"),i.qZA(),i.BQk(),i.qZA()()()()),2&_e){const Ln=i.MAs(10);i.xp6(),i.Q6J("formHandler",Me.filterFormHandler)("record",Me.filter)("orderFields",Me.availableOrderFields)("orderField",Me.orderField)("orderDirection",Me.orderDirection),i.xp6(),i.Q6J("totalNumber",null==Me.currentResult?null:Me.currentResult.totalNumberOfResults)("entityResourceKeyPrefix","imxplatform.announcement")("showCompactToggle",!1),i.xp6(2),i.Q6J("hasAnyPermission",Me.imxPermissions.F_ANNOUNCEMENT_CREATE.name),i.xp6(7),i.Q6J("ngIf",i.lcZ(12,16,Me.results))("ngIfElse",Ln),i.xp6(2),i.Q6J("paging",Me.pagingModel)("selection",Me.selectionModel),i.xp6(3),i.Q6J("actions",null==Me.actionProvider?null:Me.actionProvider.getBatchActionsForType(Me.getEntityName())),i.xp6(2),i.Q6J("icon","icon-star--add"),i.xp6(),i.hij(" ",i.lcZ(20,18,"imxplatform.entity-list.object-list.action-title")," ")}},dependencies:[Zc.$,de.N,Ae._,Ct.A,Rm.E,gi.R,ee.F,x.mk,x.sg,x.O5,ln.oG,Pl.pW,ne.gM,n.rH,wt.jx,Mt.iA,Mt.Q7,yt.z,Bt.t,pm.F,No.M,Ar.V,T_,lt.j,x.Ov,x.uU,m.X$],styles:["[_nghost-%COMP%] > div.search-page[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.selected-size[_ngcontent-%COMP%]{color:#3e3e3e}imx-generic-slide-in-page[_ngcontent-%COMP%]{display:block}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-column-resizer-helper{background-color:#0a2663}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{overflow:visible}.imx-datatable[_ngcontent-%COMP%]     .p-datatable .p-datatable-table{border-collapse:collapse;min-width:100%;width:100%;table-layout:fixed}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover, .imx-datatable[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{white-space:nowrap}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#0a2663;overflow:hidden;text-overflow:ellipsis;font-weight:inherit}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-left:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;text-align:left;padding:10px;vertical-align:top;border-top:0;font-size:12px}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%]{border:none;padding-left:0;overflow:visible}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.select-column[_ngcontent-%COMP%] + td[_ngcontent-%COMP%], .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.select-column[_ngcontent-%COMP%] + th[_ngcontent-%COMP%]{border-left:none}.imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type, .imx-datatable[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-of-type{border-left:none}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block;text-align:center;vertical-align:middle;margin-right:5px;padding:1px}.imx-datatable[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:10px;color:#fff}.list__item[_ngcontent-%COMP%]{color:#3e3e3e;margin-bottom:10px;height:100%!important}.mat-mdc-list.mat-mdc-list-base[_ngcontent-%COMP%]{padding-top:0}[_ngcontent-%COMP%]:focus{outline:none}"]})}return te})(),data:{title:"imxplatform.announcement.list.pageTitleCompact",permissions:[s.uo.F_ANNOUNCEMENT_READ],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard"]}}]},{path:"qr-announcement-print",canActivate:[s.YX],canDeactivate:[l.RecordDirtyGuard],component:hh,data:{title:"entity.QrAnnouncementAddressbase.pageTitle",mode:"UPDATE",permissions:[ji.i.F_ADDRESSBASE_READ_ALL,ji.i.F_ADDRESSBASE_READ_OWN_CLIENT,ji.i.F_ADDRESSBASE_READ_OWN_USER],guards:["AuthenticatedGuard","HasPermissionGuard","AuthInitFinishedGuard"]}},{path:"qr-announcement-update",component:V_}];let dd=(()=>{class te{static#e=this.\u0275fac=function(_e){return new(_e||te)};static#t=this.\u0275mod=i.oAB({type:te});static#n=this.\u0275inj=i.cJS({imports:[n.Bz.forChild(hc),n.Bz]})}return te})();var Fc=a(58038),Hl=a(50629),uu=a(13831),Y_=a(50225),W_=a(66676),E_=a(67493),mf=a(14805),Np=a(12624),uf=a(24933),z_=a(44636),pf=a(27553),Gf=a(47928),vh=a(95471),pg=a(52656),j_=a(15343),Yg=a(31564);let Jf=(()=>{class te extends l.AbstractI18nDataObjectOptionProviderService{constructor(E,_e){super(E,_e)}getEntityType(){return"BusinessType"}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.LFG(l.ImxEntitiesMgrService),i.LFG(m.sK))};static#t=this.\u0275prov=i.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"})}return te})();var wg=a(99264),Wg=a(52284),rx=a(50341),ax=a(37966),sx=a(90089);const lx=["dialogFrame"];function bh(te,Pn){1&te&&i.GkF(0)}const r1=()=>({$implicit:"types"});function cx(te,Pn){if(1&te&&(i.TgZ(0,"div"),i.YNc(1,bh,1,0,"ng-container",12),i.qZA()),2&te){i.oxw(2);const E=i.MAs(6);i.xp6(),i.Q6J("ngTemplateOutlet",E)("ngTemplateOutletContext",i.DdM(2,r1))}}function a1(te,Pn){if(1&te&&(i.TgZ(0,"imx-base-checkbox",13),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&te){const E=i.oxw(2);i.Q6J("formControl",E.addAsContributorCtrl),i.xp6(),i.Oqu(i.lcZ(2,2,"imxplatform.addresspoi.create.addAsContributor"))}}function gd(te,Pn){if(1&te&&(i.TgZ(0,"imx-base-checkbox",13),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&te){const E=i.oxw(2);i.Q6J("formControl",E.addAsLocationCtrl),i.xp6(),i.Oqu(i.lcZ(2,2,"imxplatform.addresspoi.create.addAsLocation"))}}function zg(te,Pn){if(1&te){const E=i.EpF();i.TgZ(0,"form",4)(1,"div",5)(2,"div",6)(3,"imx-i18n-multi-input",7),i.NdJ("i18nBlur",function(){i.CHM(E);const Me=i.oxw();return i.KtG(Me.suggestPermaLink())}),i.qZA(),i._UZ(4,"imx-edit-client",8),i.YNc(5,cx,2,3,"div",9),i.TgZ(6,"imx-edit-contact",10),i.NdJ("zipcodeSelection",function(Me){i.CHM(E);const Ln=i.oxw();return i.KtG(Ln.handleContact1ZipcodeSelection(Me))})("citySelection",function(Me){i.CHM(E);const Ln=i.oxw();return i.KtG(Ln.handleContact1CitySelection(Me))}),i.qZA(),i.YNc(7,a1,3,4,"imx-base-checkbox",11)(8,gd,3,4,"imx-base-checkbox",11),i.qZA()()()}if(2&te){const E=i.oxw();i.Q6J("formGroup",E.formHandler.formGroup),i.xp6(3),i.Q6J("field",E.formHandler.formConfiguration.findFormFieldById("title"))("control",E.formHandler.formGroup.get("title"))("form",E.formHandler.formGroup)("formHandler",E.formHandler),i.xp6(),i.Q6J("formHandler",E.formHandler)("feasibleClients",E.feasibleClients)("rootClients",E.rootClients),i.xp6(),i.Q6J("hasFieldReadPermission","types")("hasFieldReadPermissionFormHandler",E.formHandler),i.xp6(),i.Q6J("groupPrefix","contact1")("header","imxplatform.addresspoi.edit.panels.contact-data.contact1")("formHandler",E.formHandler)("smallVersion",!0),i.xp6(),i.Q6J("ngIf",E.isLocationTypeAndContributorSelected()),i.xp6(),i.Q6J("ngIf",E.isContributorTypeAndLocationSelected())}}function Ch(te,Pn){if(1&te&&i._UZ(0,"imx-form-control",14),2&te){const E=Pn.$implicit,_e=i.oxw();i.Q6J("field",_e.formHandler.formConfiguration.findFormFieldById(E))("control",_e.formHandler.formGroup.get(E))("form",_e.formHandler.formGroup)("formHandler",_e.formHandler)("config",_e.formHandler.formConfiguration)}}let dx=(()=>{class te{constructor(E,_e,Me,Ln,to,ha,zs){this.data=E,this.platformDataAccessService=_e,this.dataAccessService=Me,this.userMessageService=Ln,this.entitiesMgr=to,this.entityCollectionsService=ha,this.formHandler=zs,this.destroy$=new rt.xQ,this.feasibleClients=[],this.rootClients=[],this.initialized$=(0,I.of)(!1),this.addAsLocationCtrl=new u.p4,this.addAsContributorCtrl=new u.p4,this.loadRequiredProperties()}ngOnInit(){this.dataAccessService.initAddressbase().pipe((0,O.U)(E=>E.Addressbase)).subscribe(E=>{this.formHandler.baseObject=E,this.formHandler.formGroup.get("client").setValue(this.data.client),this.formHandler.formGroup.get("types").setValue([this.data.addressPoiType.id]),this.formHandler.formGroup.get("entityState").setValue(Se.h_.key),this.formHandler.formGroup.addControl("addAsContributorCtrl",this.addAsContributorCtrl),this.formHandler.formGroup.addControl("addAsLocationCtrl",this.addAsLocationCtrl),this.initialized$=(0,I.of)(!0)}),this.loadFeasibleClients(),this.data.additionalMandatoryFields&&this.data.additionalMandatoryFields.forEach(E=>this.formHandler.formConfiguration.findFormFieldById(E).required=!0),this.formHandler.formGroup.get("title").valueChanges.pipe((0,P.R)(this.destroy$)).subscribe(E=>this.formHandler.formGroup.get("shortDescription").setValue(E))}loadRequiredProperties(){this.platformDataAccessService.getRequiredPropertiesForCoreEntity("Addressbase").subscribe(E=>{E.forEach(_e=>{this.formHandler.applyRequiredPropertyDefinitionToField(_e)})})}suggestPermaLink(){this.formHandler.suggestPermaLinkForLang(this.formHandler.formLanguage.getEditLanguage().name,this.getUniquePermalink.bind(this))}getUniquePermalink(E,_e){return this.dataAccessService.suggestPermaLinkForAddressbase(E,_e)}onConfirm(){if(this.formHandler.validateAllFormFields(this.formHandler.formGroup,"root")){const _e=this.formHandler.getBaseObjectCopyWithCurrentFormValues();this.dataAccessService.createAddressbase(_e).subscribe(Me=>{this.userMessageService.showInfo("imxtools.addressbase.edit.save-successfull"),this.dialogFrame.close({addressbase:Me,addAsLocation:this.addAsLocationCtrl.value,addAsContributor:this.addAsContributorCtrl.value})},Me=>{this.userMessageService.showError(Me||"imxplatform.common-entity.edit.save-error")})}else this.userMessageService.showError("imxplatform.common-entity.edit.invalid-form")}onCancel(){this.dialogFrame.close(null)}isLocationTypeAndContributorSelected(){return this.data.addressPoiType.id===Se.pv.id&&this.formHandler.formGroup.get("types").value.some(E=>E===Se.GZ.id)}isContributorTypeAndLocationSelected(){return this.data.addressPoiType.id===Se.GZ.id&&this.formHandler.formGroup.get("types").value.some(E=>E===Se.pv.id)}handleContact1CitySelection(E){this.entitiesMgr.getEntityWithIdOfType("Location",E.entityId).subscribe(_e=>{this.formHandler.handleCitySelection(_e,"contact1.address.zipcode")})}handleContact1ZipcodeSelection(E){this.entitiesMgr.getEntityWithIdOfType("Location",E.entityId).subscribe(_e=>{this.formHandler.handleZipcodeSelection(_e,E.inputString,"contact1.address.zipcode","contact1.address.city")})}loadFeasibleClients(){this.entityCollectionsService.getSelectableClientsForAddressPoi().pipe((0,Ue.b)(E=>E.forEach(_e=>{(null==_e.parent||!E.some(Me=>Me.id===_e.parent.id))&&this.rootClients.push(_e)})),(0,O.U)(E=>{const _e=[];return E.forEach(Me=>_e.push({label:Me.name,value:Me.id})),_e.sort((Me,Ln)=>Me.label.localeCompare(Ln.label))})).subscribe(E=>this.feasibleClients=E)}ngOnDestroy(){this.data.additionalMandatoryFields&&this.data.additionalMandatoryFields.forEach(E=>this.formHandler.formConfiguration.findFormFieldById(E).required=!1),this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(_e){return new(_e||te)(i.Y36(B.WI),i.Y36(l.ImxPlatformDataAccessService),i.Y36(tt.N),i.Y36(l.UserMessageService),i.Y36(l.ImxEntitiesMgrService),i.Y36(l.EntityCollectionsService),i.Y36(t.D6))};static#t=this.\u0275cmp=i.Xpm({type:te,selectors:[["ng-component"]],viewQuery:function(_e,Me){if(1&_e&&i.Gf(lx,7),2&_e){let Ln;i.iGM(Ln=i.CRH())&&(Me.dialogFrame=Ln.first)}},decls:7,vars:8,consts:[["icon","icon-entityType-Addressbase","submitButtonLabel","imxplatform.common-entity.edit.save","dialogType","form",3,"heading","submitButtonDisabled","useEvents","onConfirm","onCancel"],["dialogFrame",""],["id","address-poi-create-dialog",3,"formGroup",4,"ngIf"],["imxControl",""],["id","address-poi-create-dialog",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[3,"field","control","form","formHandler","i18nBlur"],[3,"formHandler","feasibleClients","rootClients"],[4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],[3,"groupPrefix","header","formHandler","smallVersion","zipcodeSelection","citySelection"],[3,"formControl",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"formControl"],[3,"field","control","form","formHandler","config"]],template:function(_e,Me){1&_e&&(i.TgZ(0,"imx-dialog",0,1),i.NdJ("onConfirm",function(){return Me.onConfirm()})("onCancel",function(){return Me.onCancel()}),i.ALo(2,"async"),i.YNc(3,zg,9,16,"form",2),i.ALo(4,"async"),i.qZA(),i.YNc(5,Ch,1,5,"ng-template",null,3,i.W1O)),2&_e&&(i.s9C("heading",Me.data.title),i.Q6J("submitButtonDisabled",!i.lcZ(2,4,Me.initialized$)||Me.formHandler.formGroup.invalid)("useEvents",!0),i.xp6(3),i.Q6J("ngIf",i.lcZ(4,6,Me.initialized$)))},dependencies:[Et.G,fe.a,sr.L,$s.t,Y.A,sx.J,o.j,x.O5,x.tP,u._Y,u.JJ,u.JL,u.oH,u.sg,x.Ov,m.X$]})}return te})();var zl=a(42894),yh=a(71467),Oh=a(28088);let eg=(()=>{class te{static#e=this.\u0275fac=function(_e){return new(_e||te)};static#t=this.\u0275mod=i.oAB({type:te});static#n=this.\u0275inj=i.cJS({imports:[dd,e.a]})}return te})()},44636:(gt,X,a)=>{"use strict";a.d(X,{S:()=>s});var e=a(19212),n=a(66456);let s=(()=>{class l{static#e=this.\u0275fac=function(p){return new(p||l)};static#t=this.\u0275cmp=e.Xpm({type:l,selectors:[["imx-duplicates-right-slot-addressbase"]],inputs:{dataObject:"dataObject",extendedDataObject:"extendedDataObject"},decls:1,vars:1,consts:[[3,"dataObject"]],template:function(p,c){1&p&&e._UZ(0,"imx-addressbase-right-slot",0),2&p&&e.Q6J("dataObject",c.dataObject)},dependencies:[n.i],encapsulation:2,changeDetection:0})}return l})()},46911:(gt,X,a)=>{"use strict";a.d(X,{E:()=>m,g:()=>u});var e=a(19212),n=a(85829),s=a(21223),l=a(43941),i=a(96814),t=a(94480),p=a(71365);function c(b,I){if(1&b&&(e.TgZ(0,"div",5)(1,"p",6),e._uU(2),e.ALo(3,"translate"),e.TgZ(4,"span",7),e._uU(5),e.ALo(6,"productline"),e.qZA()()()),2&b){const H=I.ngIf,O=e.oxw(2).item;e.xp6(2),e.AsE("",e.lcZ(3,3,"imxtools.addressbase.edit.panels.media.productlines")," (",null==O||null==O.productlines?null:O.productlines.length,"): "),e.xp6(3),e.Oqu(e.lcZ(6,5,H))}}function o(b,I){if(1&b&&(e.ynx(0),e.TgZ(1,"div",3),e.YNc(2,c,7,7,"div",4),e.ALo(3,"async"),e.qZA(),e.BQk()),2&b){const H=e.oxw().item,O=e.oxw();e.xp6(2),e.Q6J("ngIf",e.lcZ(3,1,O.productlinesObservables.get(H.id)))}}function x(b,I){if(1&b&&e.YNc(0,o,4,3,"ng-container",2),2&b){const H=I.item;e.Q6J("ngIf",(null==H||null==H.productlines?null:H.productlines.length)>0)}}const u=new e.OlP("imxtools.forms.addressbase.dataobjectmediuminitializer");let m=(()=>{class b extends n.AbstractCoreDataObjectFormPanelComponent{constructor(H,O,P){super(H),this.entitiesMgr=H,this.dataAccessService=O,this.dataObjectMediumInitializer=P,this.productlinesObservables=new Map}mediaLoaded(H){this.productlinesObservables.clear(),H.forEach((O,P)=>{if(O.productlines){const G=O.productlines.map(B=>B.id);this.productlinesObservables.set(O.id,this.entitiesMgr.getEntityWithIdsOfType("Productline",G))}})}afterPooledMediumDelete(H){this.dataAccessService.getAddressbaseById(H).subscribe(O=>{this.formHandler.baseObject=O,this.record=O})}static#e=this.\u0275fac=function(O){return new(O||b)(e.Y36(n.ImxEntitiesMgrService),e.Y36(s.N),e.Y36(u))};static#t=this.\u0275cmp=e.Xpm({type:b,selectors:[["imx-addressbase-media-form-panel"]],features:[e.qOj],decls:3,vars:6,consts:[["anchor","media",3,"formHandler","record","dataObjectEntityType","dataObjectMediumInitializerService","removeHeader","bottomRowTemplate","mediaLoaded","afterPooledMediumDelete"],["toolsBottomRowTemplate",""],[4,"ngIf"],[1,"form__list-content"],["class","form__list-column",4,"ngIf"],[1,"form__list-column"],[1,"txt-default"],[1,"txt-grey"]],template:function(O,P){if(1&O&&(e.TgZ(0,"imx-media-form-panel",0),e.NdJ("mediaLoaded",function(B){return P.mediaLoaded(B)})("afterPooledMediumDelete",function(B){return P.afterPooledMediumDelete(B)}),e.qZA(),e.YNc(1,x,1,1,"ng-template",null,1,e.W1O)),2&O){const G=e.MAs(2);e.Q6J("formHandler",P.formHandler)("record",P.record)("dataObjectEntityType","Addressbase")("dataObjectMediumInitializerService",P.dataObjectMediumInitializer)("removeHeader","imxtools.addressbase.edit.panels.media.remove-confirm")("bottomRowTemplate",G)}},dependencies:[l.E,i.O5,t.w,i.Ov,p.X$],encapsulation:2,changeDetection:0})}return b})()},45438:(gt,X,a)=>{"use strict";a.d(X,{R7:()=>si});var e=a(25313),n=a(85829),s=a(49193),l=a(51418),i=a(96743),t=a(1329),p=a(56223),c=a(17700),o=a(72079),x=a(62736),u=a(19212),m=a(33946),b=a(28907),I=a(96814);let H=(()=>{class Hn{constructor(vn){this.data=vn}static#e=this.\u0275fac=function(Ji){return new(Ji||Hn)(u.Y36(c.WI))};static#t=this.\u0275cmp=u.Xpm({type:Hn,selectors:[["ng-component"]],decls:9,vars:19,consts:[["heading","entity.TimeIntervalDefinition.entityName","icon","icon-calendar-full","dialogType","form",3,"submitButtonDisabled"],["id","time-interval-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[1,"form__content-field-row"],[3,"field","control","form","formHandler","config"]],template:function(Ji,wn){1&Ji&&(u.TgZ(0,"imx-dialog",0),u.ALo(1,"async"),u.TgZ(2,"form",1)(3,"div",2)(4,"div",3)(5,"div",4),u._UZ(6,"imx-form-control",5)(7,"imx-form-control",5)(8,"imx-form-control",5),u.qZA()()()()()),2&Ji&&(u.Q6J("submitButtonDisabled",wn.data.formRow.invalid||!u.lcZ(1,17,wn.data.formHandler.hasSavePermission())),u.xp6(2),u.Q6J("formGroup",wn.data.formHandler.formGroup),u.xp6(4),u.Q6J("field",wn.data.arrayField.getChildField("day"))("control",wn.data.formRow.get("day"))("form",wn.data.formRow)("formHandler",wn.data.formHandler)("config",wn.data.formHandler.formConfiguration),u.xp6(),u.Q6J("field",wn.data.arrayField.getChildField("timeFrom"))("control",wn.data.formRow.get("timeFrom"))("form",wn.data.formRow)("formHandler",wn.data.formHandler)("config",wn.data.formHandler.formConfiguration),u.xp6(),u.Q6J("field",wn.data.arrayField.getChildField("timeTo"))("control",wn.data.formRow.get("timeTo"))("form",wn.data.formRow)("formHandler",wn.data.formHandler)("config",wn.data.formHandler.formConfiguration))},dependencies:[m.a,b.A,p._Y,p.JL,p.sg,I.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}"]})}return Hn})();var O=a(50629),P=a(75986),G=a(2032),B=a(64170),ae=a(71365);function J(Hn,mo){if(1&Hn){const vn=u.EpF();u.TgZ(0,"div")(1,"mat-checkbox",11),u.NdJ("change",function(wn){u.CHM(vn);const po=u.oxw();return u.KtG(po.handleDaySelectionChange(wn))}),u._uU(2),u.qZA()()}if(2&Hn){const vn=mo.$implicit,Ji=u.oxw();u.xp6(),u.Q6J("value",vn.value)("checked",Ji.isSelected(vn.value)),u.xp6(),u.hij(" ",vn.label," ")}}let q=(()=>{class Hn{constructor(vn,Ji){this.dayDefinitionOptionProviderService=vn,this.data=Ji,this.selectedDays=[],vn.getOptions(null,null).pipe((0,l.q)(1)).subscribe(wn=>{this.dayDefinitions=wn})}isSelected(vn){return this.selectedDays.some(Ji=>Ji===vn)}selectDaily(vn){vn.source.checked?this.selectedDays.push(...this.dayDefinitions.map(Ji=>Ji.value)):this.selectedDays=[]}selectWeekday(vn){vn.source.checked?this.selectedDays.push(1,2,3,4,5):this.selectedDays=this.selectedDays.filter(Ji=>Ji>5)}isFieldRequired(vn){return this.data.formHandler.formConfiguration.findFormFieldById("openingHoursInformations:openingHourDefinitions:timeIntervals:"+vn).required}submitBtnDisabled(){return this.isFieldRequired("timeFrom")&&void 0===this.timeFrom||this.isFieldRequired("timeTo")&&void 0===this.timeTo}handleDaySelectionChange({checked:vn,source:{value:Ji}}){const wn=parseInt(Ji,10);vn?this._addToSelectedDays(wn):this._removeFromSelectedDays(wn)}_addToSelectedDays(vn){this.selectedDays.push(vn)}_removeFromSelectedDays(vn){const Ji=this.selectedDays.findIndex(wn=>wn===vn);-1!==Ji&&this.selectedDays.splice(Ji,1)}getDialogResult(){return this._timeSeries}get _timeSeries(){const{timeFrom:vn,timeTo:Ji,selectedDays:wn}=this;return{timeFrom:vn,timeTo:Ji,days:wn}}static#e=this.\u0275fac=function(Ji){return new(Ji||Hn)(u.Y36(O.q),u.Y36(c.WI))};static#t=this.\u0275cmp=u.Xpm({type:Hn,selectors:[["ng-component"]],decls:23,vars:17,consts:[["heading","entity.TimeSeriesDefinition.entityName","icon","icon-calendar-full","dialogType","form",3,"submitButtonDisabled","getSubmitResult"],[1,"dialog-form"],[1,"dialog-form-group"],[1,"form__content-field-row"],[3,"change"],[1,"weekdays"],[4,"ngFor","ngForOf"],["translate",""],[1,"input-wrapper"],["id","'timeFrom'","matInput","",3,"ngModel","required","ngModelChange"],["id","'timeTo'","matInput","",3,"ngModel","required","ngModelChange"],[3,"value","checked","change"]],template:function(Ji,wn){1&Ji&&(u.TgZ(0,"imx-dialog",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"mat-checkbox",4),u.NdJ("change",function(Kn){return wn.selectDaily(Kn)}),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.TgZ(7,"mat-checkbox",4),u.NdJ("change",function(Kn){return wn.selectWeekday(Kn)}),u._uU(8),u.ALo(9,"translate"),u.qZA()(),u.TgZ(10,"div",5),u.YNc(11,J,3,3,"div",6),u.qZA(),u.TgZ(12,"div",3)(13,"mat-form-field")(14,"label",7),u._uU(15,"entity.TimeIntervalDefinition.timeFrom"),u.qZA(),u.TgZ(16,"div",8)(17,"input",9),u.NdJ("ngModelChange",function(Kn){return wn.timeFrom=Kn}),u.qZA()()(),u.TgZ(18,"mat-form-field")(19,"label",7),u._uU(20,"entity.TimeIntervalDefinition.timeTo"),u.qZA(),u.TgZ(21,"div",8)(22,"input",10),u.NdJ("ngModelChange",function(Kn){return wn.timeTo=Kn}),u.qZA()()()()()()()),2&Ji&&(u.Q6J("submitButtonDisabled",wn.submitBtnDisabled())("getSubmitResult",wn.getDialogResult.bind(wn)),u.xp6(5),u.Oqu(u.lcZ(6,13,"imxtools.addressbase.edit.panels.opening-hours.daily")),u.xp6(3),u.Oqu(u.lcZ(9,15,"imxtools.addressbase.edit.panels.opening-hours.weekdays")),u.xp6(3),u.Q6J("ngForOf",wn.dayDefinitions),u.xp6(3),u.uIk("for","timeFrom"),u.xp6(3),u.Q6J("ngModel",wn.timeFrom)("required",wn.isFieldRequired("timeFrom")),u.uIk("type","time"),u.xp6(2),u.uIk("for","timeTo"),u.xp6(3),u.Q6J("ngModel",wn.timeTo)("required",wn.isFieldRequired("timeTo")),u.uIk("type","time"))},dependencies:[m.a,I.sg,p.Fj,p.JJ,p.Q7,p.On,P.oG,G.Nt,B.KE,ae.Pi,ae.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.weekdays[_ngcontent-%COMP%]{margin:10px 0}"]})}return Hn})();var j=a(76667),Y=a(17301),K=a(47378),ne=a(22194),ee=a(74961),$=a(6128),ue=a(36681);const ge=["dialogFrame"],Ke=["yearlyDefinition"];function at(Hn,mo){1&Hn&&(u.TgZ(0,"mat-error",16),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&Hn&&(u.Q6J("id",null),u.xp6(),u.Oqu(u.lcZ(2,2,"imxplatform.common-entity.edit.panels.opening-hours.timeIntervalsRequired")))}function Le(Hn,mo){if(1&Hn&&(u.TgZ(0,"p",14),u._uU(1,"imxplatform.common.no-records"),u.qZA(),u.YNc(2,at,3,4,"mat-error",15)),2&Hn){const vn=u.oxw(2);u.xp6(2),u.Q6J("ngIf",vn.data.formRow.get("timeIntervals").errors)}}function R(Hn,mo){1&Hn&&u._UZ(0,"tr",28)}function Te(Hn,mo){1&Hn&&u._UZ(0,"tr",29)}function me(Hn,mo){1&Hn&&(u.TgZ(0,"th",30),u._uU(1,"entity.TimeIntervalDefinition.day"),u.qZA())}function Se(Hn,mo){if(1&Hn){const vn=u.EpF();u.TgZ(0,"td",31)(1,"a",32),u.NdJ("click",function(){const po=u.CHM(vn).$implicit,Kn=u.oxw(3);return u.KtG(Kn.editTimeInterval(po,Kn.data.definitionType))}),u.TgZ(2,"span"),u._uU(3),u.qZA()()()}if(2&Hn){const vn=mo.$implicit,Ji=u.oxw(3);u.xp6(3),u.Oqu(Ji.getDayName(vn.controls.day.value))}}function Ue(Hn,mo){1&Hn&&(u.TgZ(0,"th",30),u._uU(1,"entity.TimeIntervalDefinition.timeFrom"),u.qZA())}function We(Hn,mo){if(1&Hn){const vn=u.EpF();u.TgZ(0,"td",31)(1,"a",32),u.NdJ("click",function(){const po=u.CHM(vn).$implicit,Kn=u.oxw(3);return u.KtG(Kn.editTimeInterval(po,Kn.data.definitionType))}),u.TgZ(2,"span"),u._uU(3),u.qZA()()()}if(2&Hn){const vn=mo.$implicit,Ji=u.oxw(3);u.xp6(3),u.Oqu(Ji.formatTimeInterval(vn.controls.timeFrom.value))}}function et(Hn,mo){1&Hn&&(u.TgZ(0,"th",30),u._uU(1,"entity.TimeIntervalDefinition.timeTo"),u.qZA())}function Et(Hn,mo){if(1&Hn){const vn=u.EpF();u.TgZ(0,"td",31)(1,"a",32),u.NdJ("click",function(){const po=u.CHM(vn).$implicit,Kn=u.oxw(3);return u.KtG(Kn.editTimeInterval(po,Kn.data.definitionType))}),u.TgZ(2,"span"),u._uU(3),u.qZA()()()}if(2&Hn){const vn=mo.$implicit,Ji=u.oxw(3);u.xp6(3),u.Oqu(Ji.formatTimeInterval(vn.controls.timeTo.value))}}function lt(Hn,mo){1&Hn&&u._UZ(0,"th",33)}function Vt(Hn,mo){if(1&Hn){const vn=u.EpF();u.TgZ(0,"imx-action-menu-item",37),u.NdJ("click",function(){u.CHM(vn);const wn=u.oxw().index,po=u.oxw(3);return u.KtG(po.removeTimeInterval(wn))}),u._uU(1," imxplatform.common-entity.list.remove "),u.qZA()}2&Hn&&u.Q6J("icon","icon-trash")}function r(Hn,mo){if(1&Hn){const vn=u.EpF();u.TgZ(0,"td",34)(1,"imx-dropup-button")(2,"imx-action-menu")(3,"imx-action-menu-item",35),u.NdJ("click",function(){const po=u.CHM(vn).$implicit,Kn=u.oxw(3);return u.KtG(Kn.editTimeInterval(po,Kn.data.definitionType))}),u._uU(4,"imxplatform.common-entity.list.details"),u.qZA(),u.YNc(5,Vt,2,1,"imx-action-menu-item",36),u.qZA()()()}if(2&Hn){const vn=mo.$implicit,Ji=u.oxw(3);u.Q6J("formGroup",vn),u.xp6(3),u.Q6J("icon","icon-magnifier"),u.xp6(2),u.Q6J("hasFieldWritePermission",Ji.data.fieldsPathPrefix+Ji.data.definitionType.key+":timeIntervals")("hasFieldWritePermissionFormHandler",Ji.data.formHandler)}}function Z(Hn,mo){if(1&Hn&&(u.TgZ(0,"table",17),u.YNc(1,R,1,0,"tr",18)(2,Te,1,0,"tr",19),u.ynx(3,20),u.YNc(4,me,2,0,"th",21)(5,Se,4,1,"td",22),u.BQk(),u.ynx(6,23),u.YNc(7,Ue,2,0,"th",21)(8,We,4,1,"td",22),u.BQk(),u.ynx(9,24),u.YNc(10,et,2,0,"th",21)(11,Et,4,1,"td",22),u.BQk(),u.ynx(12,25),u.YNc(13,lt,1,0,"th",26)(14,r,6,4,"td",27),u.BQk(),u.qZA()),2&Hn){const vn=u.oxw(2);u.Q6J("dataSource",vn.timeIntervalDefDataSource),u.xp6(),u.Q6J("matHeaderRowDef",vn.timeIntervalDefColumns),u.xp6(),u.Q6J("matRowDefColumns",vn.timeIntervalDefColumns)}}function Pt(Hn,mo){if(1&Hn){const vn=u.EpF();u.ynx(0),u.TgZ(1,"div",4)(2,"h3"),u._uU(3),u.ALo(4,"translate"),u.qZA(),u.YNc(5,Le,3,1,"ng-template",null,10,u.W1O),u.TgZ(7,"div",11),u.YNc(8,Z,15,3,"table",12),u.qZA(),u.TgZ(9,"button",13),u.NdJ("click",function(){u.CHM(vn);const wn=u.oxw();return u.KtG(wn.createTimeInterval(wn.data.definitionType))}),u.ALo(10,"async"),u._uU(11),u.ALo(12,"translate"),u.qZA(),u.TgZ(13,"button",13),u.NdJ("click",function(){u.CHM(vn);const wn=u.oxw();return u.KtG(wn.createTimeSeries(wn.data.definitionType))}),u.ALo(14,"async"),u._uU(15),u.ALo(16,"translate"),u.qZA()(),u.BQk()}if(2&Hn){const vn=u.MAs(6),Ji=u.oxw();u.xp6(3),u.Oqu(u.lcZ(4,7,"entity.OpeningHoursDefinition.timeIntervals")),u.xp6(5),u.Q6J("ngIf",Ji.timeIntervalDefDataSource&&Ji.timeIntervalDefDataSource.data.length>0)("ngIfElse",vn),u.xp6(),u.Q6J("disabled",Ji.data.formRow.invalid||!Ji.hasTimeIntervalPermisions()||!u.lcZ(10,9,Ji.data.formHandler.hasSavePermission())||Ji.data.openingClosedHoursForbidden),u.xp6(2),u.Oqu(u.lcZ(12,11,"imxtools.addressbase.edit.panels.opening-hours.create")),u.xp6(2),u.Q6J("disabled",!Ji.hasTimeIntervalPermisions()||!u.lcZ(14,13,Ji.data.formHandler.hasSavePermission())||Ji.data.openingClosedHoursForbidden),u.xp6(2),u.Oqu(u.lcZ(16,15,"imxtools.addressbase.edit.panels.opening-hours.row"))}}let Oe=(()=>{class Hn{constructor(vn,Ji,wn,po,Kn){this.formatterService=vn,this.dialog=Ji,this.configurationProvider=wn,this.changeDetectorRef=po,this.data=Kn,this.timeIntervalDefColumns=[],this.destroy$=new o.xQ,this.timeIntervalDefDataSource=new e.by(this.data.formRow.get("timeIntervals").controls),this.timeIntervalDefColumns.push("day","timeFrom","timeTo","removeColumn")}ngOnInit(){this.configurationProvider.getBoolean(x.s.IMXTOOLS_OPENINGHOURS_ENABLE_DATE_CHECK,!0).pipe((0,l.q)(1)).subscribe(vn=>{!0===vn&&(this.data.formRow.get("dateFrom").setValidators(p.kI.required),this.data.formHandler.formConfiguration.findFormFieldById("openingHoursInformations:"+this.data.definitionType.key+":dateFrom").required=!0,this.data.formRow.get("dateFrom").updateValueAndValidity(),this.data.formRow.get("dateTo").setValidators(p.kI.required),this.data.formHandler.formConfiguration.findFormFieldById("openingHoursInformations:"+this.data.definitionType.key+":dateTo").required=!0,this.data.formRow.get("dateTo").updateValueAndValidity(),this.changeDetectorRef.markForCheck())})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onConfirm(){const vn=this.yearlyDefinition.fromYearControl.value,Ji=this.yearlyDefinition.toYearControl.value,wn=this.data.formRow.get(this.yearlyDefinition.yearlyField.id).value;if(!Ji&&wn){const po=this.data.formRow.get("dateTo").value;po&&(po.setFullYear(2099),this.data.formRow.get("dateTo").setValue(po))}if(!vn&&wn){const po=this.data.formRow.get("dateFrom").value;po&&(po&&po.setFullYear((new Date).getFullYear()-1),this.data.formRow.get("dateFrom").setValue(po))}this.dialogFrame.close(!0)}isSubmitDisabled(){if(this.yearlyDefinition.fromYearControl){const vn=this.yearlyDefinition.fromYearControl.value,Ji=this.yearlyDefinition.toYearControl.value;if(vn&&Ji){if(this.data.formRow.get("dateFrom").value>this.data.formRow.get("dateTo").value)return!0}else if(vn){const wn=this.data.formRow.get("dateFrom").value,po=this.data.formRow.get("dateTo").value;if(!po)return!1;if(po.setFullYear(2099),wn>po)return!0}else if(Ji){const wn=this.data.formRow.get("dateFrom").value,po=this.data.formRow.get("dateTo").value;if(!wn||(wn.setFullYear((new Date).getFullYear()),wn>po))return!0}}return!1}onCancel(){this.dialogFrame.close(null)}editTimeInterval(vn,Ji){if(vn){const wn=vn.value;this.dialog.open(H,{minWidth:600,data:{arrayField:this.data.formHandler.formConfiguration.findArrayFieldById(this.data.fieldsPathPrefix+Ji.key+":timeIntervals"),formRow:vn,formHandler:this.data.formHandler}}).afterClosed().subscribe(Kn=>{Kn||vn.reset(wn,{onlySelf:!0})})}}hasTimeIntervalPermisions(){const vn=this.data.formHandler.formConfiguration.findFormFieldById(this.data.fieldsPathPrefix+this.data.definitionType.key+":timeIntervals");return this.data.formHandler.hasEditPermission(vn.permissionId)}createTimeInterval(vn){const Ji=this._createTimeIntervalRow(vn);this.dialog.open(H,{minWidth:600,data:{arrayField:this.data.formHandler.formConfiguration.findArrayFieldById(this.data.fieldsPathPrefix+vn.key+":timeIntervals"),formRow:Ji,formHandler:this.data.formHandler}}).afterClosed().subscribe(po=>{po&&(this._addTimeIntervalToFormArray(Ji),this.timeIntervalDefDataSource=new e.by(this.data.formRow.get("timeIntervals").controls))})}_createTimeIntervalRow(vn){return this.data.formHandler.addNewCollectionRow("openingHoursInformations:"+vn.key+":timeIntervals",!1)}_addTimeIntervalToFormArray(vn){this.data.formRow.get("timeIntervals").push(vn),this.data.formRow.get("timeIntervals").markAsDirty()}createTimeSeries(vn){this.dialog.open(q,{minWidth:600,data:{formHandler:this.data.formHandler}}).afterClosed().subscribe(Ji=>this._addTimeSeriesToTimeIntervals(Ji,vn))}_addTimeSeriesToTimeIntervals({days:vn,timeFrom:Ji,timeTo:wn},po){void 0!==vn&&(vn.forEach(Kn=>{const Vn=this._createTimeIntervalRow(po);this._setValuesOnTimeIntervalRow(Vn,Kn,Ji,wn),this._addTimeIntervalToFormArray(Vn)}),this.timeIntervalDefDataSource=new e.by(this.data.formRow.get("timeIntervals").controls))}_setValuesOnTimeIntervalRow(vn,Ji,wn,po){vn.get("day").patchValue(Ji),vn.get("timeFrom").patchValue(wn),vn.get("timeTo").patchValue(po)}removeTimeInterval(vn){this.data.formRow.get("timeIntervals").removeAt(vn),this.data.formRow.get("timeIntervals").markAsDirty(),this.timeIntervalDefDataSource=new e.by(this.data.formRow.get("timeIntervals").controls)}formatTimeInterval(vn){return this.formatterService.formatTimeInterval(vn)}getDayName(vn){return this.data.getDayName(vn)}static#e=this.\u0275fac=function(Ji){return new(Ji||Hn)(u.Y36(n.FormatterService),u.Y36(c.uw),u.Y36(n.ConfigurationProvider),u.Y36(u.sBO),u.Y36(c.WI))};static#t=this.\u0275cmp=u.Xpm({type:Hn,selectors:[["ng-component"]],viewQuery:function(Ji,wn){if(1&Ji&&(u.Gf(ge,7),u.Gf(Ke,7)),2&Ji){let po;u.iGM(po=u.CRH())&&(wn.dialogFrame=po.first),u.iGM(po=u.CRH())&&(wn.yearlyDefinition=po.first)}},decls:13,vars:23,consts:[["icon","icon-calendar-full","dialogType","form",3,"heading","useEvents","submitButtonDisabled","onConfirm","onCancel"],["dialogFrame",""],["id","hours-definition-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[1,"form__content-field-row"],[3,"field","control","form","formHandler","config"],[3,"formHandler","formGroup","yearlyField","fromDateField","toDateField"],["yearlyDefinition",""],[4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[1,"imx-button","prio2",3,"disabled","click"],["translate","",1,"txt-grey","txt-md-sm","no-records"],[3,"id",4,"ngIf"],[3,"id"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","day"],["mat-header-cell","","translate","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","timeFrom"],["matColumnDef","timeTo"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","","translate",""],["mat-cell",""],[1,"txt-link",3,"click"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],[3,"icon","click"],["additionalStyle","delete",3,"icon","click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],["additionalStyle","delete",3,"icon","click"]],template:function(Ji,wn){1&Ji&&(u.TgZ(0,"imx-dialog",0,1),u.NdJ("onConfirm",function(){return wn.onConfirm()})("onCancel",function(){return wn.onCancel()}),u.ALo(2,"async"),u.TgZ(3,"form",2)(4,"div",3)(5,"div",4)(6,"div",5),u._UZ(7,"imx-form-control",6),u.qZA(),u.TgZ(8,"div",5),u._UZ(9,"imx-form-control",6),u.qZA(),u._UZ(10,"imx-yearly-definition",7,8),u.qZA(),u.YNc(12,Pt,17,17,"ng-container",9),u.qZA()()()),2&Ji&&(u.Q6J("heading",wn.data.title)("useEvents",!0)("submitButtonDisabled",wn.data.formRow.invalid||wn.data.formRow.pristine||!1===u.lcZ(2,21,wn.data.formHandler.hasSavePermission())||wn.isSubmitDisabled()||wn.data.openingClosedHoursForbidden),u.xp6(3),u.Q6J("formGroup",wn.data.formHandler.formGroup),u.xp6(4),u.Q6J("field",wn.data.arrayField.getChildField("description"))("control",wn.data.formRow.get("description"))("form",wn.data.formRow)("formHandler",wn.data.formHandler)("config",wn.data.formHandler.formConfiguration),u.xp6(2),u.Q6J("field",wn.data.arrayField.getChildField("additionalInformation"))("control",wn.data.formRow.get("additionalInformation"))("form",wn.data.formRow)("formHandler",wn.data.formHandler)("config",wn.data.formHandler.formConfiguration),u.xp6(),u.Q6J("formHandler",wn.data.formHandler)("formGroup",wn.data.formRow)("yearlyField",wn.data.arrayField.getChildField("yearly"))("fromDateField",wn.data.arrayField.getChildField("dateFrom"))("toDateField",wn.data.arrayField.getChildField("dateTo")),u.xp6(2),u.Q6J("hasFieldReadPermission",wn.data.fieldsPathPrefix+wn.data.definitionType.key+":timeIntervals")("hasFieldReadPermissionFormHandler",wn.data.formHandler))},dependencies:[m.a,b.A,j.l,Y.j,K.X,ne.F,I.O5,p._Y,p.JL,B.TO,e.BZ,e.fO,e.as,e.w1,e.Dz,e.nj,e.ge,e.ev,e.XQ,e.Gk,p.sg,ae.Pi,ee.p,$.z,ue.t,I.Ov,ae.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.hours-definition-dialog-content[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:5px}.mat-mdc-row[_ngcontent-%COMP%]{position:relative}.imx-button[_ngcontent-%COMP%]{margin:10px}.definition-list-row-action-menu[_ngcontent-%COMP%]{position:absolute;top:0;right:47px;z-index:2;margin-right:5px;background:#fff;box-shadow:0 0 5px #0003;display:flex;flex-direction:column}.definition-list-row-action-menu[_ngcontent-%COMP%]   .triangle-right[_ngcontent-%COMP%]{position:absolute;right:-12px;top:0;border-left-color:#fff}.checkbox[_ngcontent-%COMP%]{margin-bottom:10px}.form__table[_ngcontent-%COMP%]{overflow-y:auto;max-height:400px}"]})}return Hn})();var ye=a(25913),ve=a(63989),ft=a(1614);function Dt(Hn,mo){1&Hn&&(u.TgZ(0,"p",10),u._uU(1,"imxtools.addressbase.edit.panels.opening-hours.opening-hours-no-record"),u.qZA())}function Rn(Hn,mo){1&Hn&&u._UZ(0,"tr",26)}function ti(Hn,mo){if(1&Hn){const vn=u.EpF();u.TgZ(0,"tr",27),u.NdJ("click",function(){const po=u.CHM(vn).$implicit,Kn=u.oxw(2);return u.KtG(Kn.editHoursDefinition(po,Kn.openingHourType))}),u.qZA()}}function Xt(Hn,mo){if(1&Hn&&(u.TgZ(0,"th",28),u._uU(1),u.qZA()),2&Hn){const vn=u.oxw(2);u.xp6(),u.hij(" ",vn.formHandler.getFormFieldLabel(vn.getFieldsPathPrefix()+"openingHourDefinitions:yearly")," ")}}function Je(Hn,mo){if(1&Hn&&(u.TgZ(0,"td",29),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&Hn){const vn=mo.$implicit,Ji=u.oxw(2);u.xp6(),u.hij(" ",u.lcZ(2,1,Ji.renderYearlyColumn(vn))," ")}}function dt(Hn,mo){if(1&Hn&&(u.TgZ(0,"th",28),u._uU(1),u.qZA()),2&Hn){const vn=u.oxw(2);u.xp6(),u.hij(" ",vn.formHandler.getFormFieldLabel(vn.getFieldsPathPrefix()+"openingHourDefinitions:description")," ")}}function Ie(Hn,mo){if(1&Hn&&(u.TgZ(0,"td",30),u._uU(1),u.ALo(2,"readI18n"),u.qZA()),2&Hn){const vn=mo.$implicit,Ji=u.oxw(2);u.xp6(),u.hij(" ",u.xi3(2,1,vn.controls.description.value,Ji.formEditLanguage.name)," ")}}function ot(Hn,mo){if(1&Hn&&(u.TgZ(0,"th",28),u._uU(1),u.qZA()),2&Hn){const vn=u.oxw(2);u.xp6(),u.hij(" ",vn.formHandler.getFormFieldLabel(vn.getFieldsPathPrefix()+"openingHourDefinitions:additionalInformation")," ")}}function ct(Hn,mo){if(1&Hn&&(u.TgZ(0,"td",30),u._uU(1),u.ALo(2,"readI18n"),u.qZA()),2&Hn){const vn=mo.$implicit,Ji=u.oxw(2);u.xp6(),u.hij(" ",u.xi3(2,1,vn.controls.additionalInformation.value,Ji.formEditLanguage.name)," ")}}function tn(Hn,mo){if(1&Hn&&(u.TgZ(0,"th",28),u._uU(1),u.qZA()),2&Hn){const vn=u.oxw(2);u.xp6(),u.hij(" ",vn.formHandler.getFormFieldLabel(vn.getFieldsPathPrefix()+"openingHourDefinitions:dateFrom")," ")}}function yi(Hn,mo){if(1&Hn&&(u.TgZ(0,"td",29),u._uU(1),u.qZA()),2&Hn){const vn=mo.$implicit,Ji=u.oxw(2);u.xp6(),u.hij(" ",Ji.renderDateColumn(vn,vn.controls.dateFrom)," ")}}function ni(Hn,mo){if(1&Hn&&(u.TgZ(0,"th",28),u._uU(1),u.qZA()),2&Hn){const vn=u.oxw(2);u.xp6(),u.hij(" ",vn.formHandler.getFormFieldLabel(vn.getFieldsPathPrefix()+"openingHourDefinitions:dateTo")," ")}}function sn(Hn,mo){if(1&Hn&&(u.TgZ(0,"td",29),u._uU(1),u.qZA()),2&Hn){const vn=mo.$implicit,Ji=u.oxw(2);u.xp6(),u.hij(" ",Ji.renderDateColumn(vn,vn.controls.dateTo)," ")}}function bn(Hn,mo){1&Hn&&(u.TgZ(0,"th",28),u._uU(1," entity.TimeIntervalDefinition.entityName "),u.qZA())}function vt(Hn,mo){if(1&Hn&&(u.TgZ(0,"td",29),u._uU(1),u.qZA()),2&Hn){const vn=mo.$implicit,Ji=u.oxw(2);u.xp6(),u.Oqu(Ji.renderTimeIntervals(vn.controls.timeIntervals.value))}}function nn(Hn,mo){1&Hn&&u._UZ(0,"th",31)}function rn(Hn,mo){if(1&Hn){const vn=u.EpF();u.TgZ(0,"imx-action-menu-item",35),u.NdJ("click",function(){u.CHM(vn);const wn=u.oxw().index,po=u.oxw(2);return u.KtG(po.removeFromDefinitions("openingHourDefinitions",wn))}),u._uU(1," imxplatform.common-entity.list.remove "),u.qZA()}2&Hn&&u.Q6J("icon","icon-trash")}function ii(Hn,mo){if(1&Hn){const vn=u.EpF();u.TgZ(0,"td",32)(1,"imx-dropup-button")(2,"imx-action-menu")(3,"imx-action-menu-item",33),u.NdJ("click",function(){const po=u.CHM(vn).$implicit,Kn=u.oxw(2);return u.KtG(Kn.editHoursDefinition(po,Kn.openingHourType))}),u._uU(4," imxplatform.common-entity.list.details "),u.qZA(),u.YNc(5,rn,2,1,"imx-action-menu-item",34),u.qZA()()()}if(2&Hn){const vn=mo.$implicit,Ji=u.oxw(2);u.Q6J("formGroup",vn),u.xp6(3),u.Q6J("icon","icon-magnifier"),u.xp6(2),u.Q6J("hasFieldWritePermission",Ji.getFieldsPathPrefix()+"openingHourDefinitions")("hasFieldWritePermissionFormHandler",Ji.formHandler)}}function Oo(Hn,mo){if(1&Hn&&(u.TgZ(0,"table",11),u.YNc(1,Rn,1,0,"tr",12)(2,ti,1,0,"tr",13),u.ynx(3,14),u.YNc(4,Xt,2,1,"th",15)(5,Je,3,3,"td",16),u.BQk(),u.ynx(6,17),u.YNc(7,dt,2,1,"th",15)(8,Ie,3,4,"td",18),u.BQk(),u.ynx(9,19),u.YNc(10,ot,2,1,"th",15)(11,ct,3,4,"td",18),u.BQk(),u.ynx(12,20),u.YNc(13,tn,2,1,"th",15)(14,yi,2,1,"td",16),u.BQk(),u.ynx(15,21),u.YNc(16,ni,2,1,"th",15)(17,sn,2,1,"td",16),u.BQk(),u.ynx(18,22),u.YNc(19,bn,2,0,"th",15)(20,vt,2,1,"td",16),u.BQk(),u.ynx(21,23),u.YNc(22,nn,1,0,"th",24)(23,ii,6,4,"td",25),u.BQk(),u.qZA()),2&Hn){const vn=u.oxw();u.Q6J("dataSource",vn.openingDefinitionDataSource),u.xp6(),u.Q6J("matHeaderRowDef",vn.openingDefinitionColumns),u.xp6(),u.Q6J("matRowDefColumns",vn.openingDefinitionColumns)}}function no(Hn,mo){1&Hn&&(u.TgZ(0,"mat-error",36),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&Hn&&(u.Q6J("id",null),u.xp6(),u.Oqu(u.lcZ(2,2,"imxplatform.common-entity.edit.panels.opening-hours.hourDefinitionsInvalid")))}function Li(Hn,mo){if(1&Hn){const vn=u.EpF();u.TgZ(0,"button",37),u.NdJ("click",function(){u.CHM(vn);const wn=u.oxw();return u.KtG(wn.createHoursDefinition(wn.openingHourType))}),u._uU(1),u.ALo(2,"translate"),u.qZA()}if(2&Hn){const vn=u.oxw();u.Q6J("disabled",vn.openingClosedHoursForbidden()),u.xp6(),u.hij(" ",u.lcZ(2,2,"imxtools.addressbase.edit.panels.opening-hours.opening-hours-create")," ")}}function ji(Hn,mo){1&Hn&&(u.TgZ(0,"p",10),u._uU(1,"imxtools.addressbase.edit.panels.opening-hours.closing-hours-no-record"),u.qZA())}function Ii(Hn,mo){1&Hn&&u._UZ(0,"tr",26)}function _i(Hn,mo){if(1&Hn){const vn=u.EpF();u.TgZ(0,"tr",27),u.NdJ("click",function(){const po=u.CHM(vn).$implicit,Kn=u.oxw(2);return u.KtG(Kn.editHoursDefinition(po,Kn.closedHourType))}),u.qZA()}}function En(Hn,mo){if(1&Hn&&(u.TgZ(0,"th",28),u._uU(1),u.qZA()),2&Hn){const vn=u.oxw(2);u.xp6(),u.hij(" ",vn.formHandler.getFormFieldLabel(vn.getFieldsPathPrefix()+"closedHourDefinitions:yearly")," ")}}function co(Hn,mo){if(1&Hn&&(u.TgZ(0,"td",29),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&Hn){const vn=mo.$implicit,Ji=u.oxw(2);u.xp6(),u.hij(" ",u.lcZ(2,1,Ji.renderYearlyColumn(vn))," ")}}function yn(Hn,mo){if(1&Hn&&(u.TgZ(0,"th",28),u._uU(1),u.qZA()),2&Hn){const vn=u.oxw(2);u.xp6(),u.hij(" ",vn.formHandler.getFormFieldLabel(vn.getFieldsPathPrefix()+"closedHourDefinitions:description")," ")}}function ln(Hn,mo){if(1&Hn&&(u.TgZ(0,"td",30),u._uU(1),u.ALo(2,"readI18n"),u.qZA()),2&Hn){const vn=mo.$implicit,Ji=u.oxw(2);u.xp6(),u.hij(" ",u.xi3(2,1,vn.controls.description.value,Ji.formEditLanguage.name)," ")}}function He(Hn,mo){if(1&Hn&&(u.TgZ(0,"th",28),u._uU(1),u.qZA()),2&Hn){const vn=u.oxw(2);u.xp6(),u.hij(" ",vn.formHandler.getFormFieldLabel(vn.getFieldsPathPrefix()+"closedHourDefinitions:additionalInformation")," ")}}function rt(Hn,mo){if(1&Hn&&(u.TgZ(0,"td",30),u._uU(1),u.ALo(2,"readI18n"),u.qZA()),2&Hn){const vn=mo.$implicit,Ji=u.oxw(2);u.xp6(),u.hij(" ",u.xi3(2,1,vn.controls.additionalInformation.value,Ji.formEditLanguage.name)," ")}}function $e(Hn,mo){if(1&Hn&&(u.TgZ(0,"th",28),u._uU(1),u.qZA()),2&Hn){const vn=u.oxw(2);u.xp6(),u.hij(" ",vn.formHandler.getFormFieldLabel(vn.getFieldsPathPrefix()+"closedHourDefinitions:dateFrom")," ")}}function Ve(Hn,mo){if(1&Hn&&(u.TgZ(0,"td",29),u._uU(1),u.qZA()),2&Hn){const vn=mo.$implicit,Ji=u.oxw(2);u.xp6(),u.hij(" ",Ji.renderDateColumn(vn,vn.controls.dateFrom)," ")}}function Ce(Hn,mo){if(1&Hn&&(u.TgZ(0,"th",28),u._uU(1),u.qZA()),2&Hn){const vn=u.oxw(2);u.xp6(),u.hij(" ",vn.formHandler.getFormFieldLabel(vn.getFieldsPathPrefix()+"closedHourDefinitions:dateTo")," ")}}function tt(Hn,mo){if(1&Hn&&(u.TgZ(0,"td",29),u._uU(1),u.qZA()),2&Hn){const vn=mo.$implicit,Ji=u.oxw(2);u.xp6(),u.hij(" ",Ji.renderDateColumn(vn,vn.controls.dateTo)," ")}}function ht(Hn,mo){1&Hn&&(u.TgZ(0,"th",28),u._uU(1,"entity.TimeIntervalDefinition.entityName "),u.qZA())}function Qt(Hn,mo){if(1&Hn&&(u.TgZ(0,"td",29),u._uU(1),u.qZA()),2&Hn){const vn=mo.$implicit,Ji=u.oxw(2);u.xp6(),u.Oqu(Ji.renderTimeIntervals(vn.controls.timeIntervals.value))}}function Un(Hn,mo){1&Hn&&u._UZ(0,"th",31)}function Yt(Hn,mo){if(1&Hn){const vn=u.EpF();u.TgZ(0,"imx-action-menu-item",35),u.NdJ("click",function(){u.CHM(vn);const wn=u.oxw().index,po=u.oxw(2);return u.KtG(po.removeFromDefinitions("closedHourDefinitions",wn))}),u._uU(1," imxplatform.common-entity.list.remove "),u.qZA()}2&Hn&&u.Q6J("icon","icon-trash")}function Fn(Hn,mo){if(1&Hn){const vn=u.EpF();u.TgZ(0,"td",32)(1,"imx-dropup-button")(2,"imx-action-menu")(3,"imx-action-menu-item",33),u.NdJ("click",function(){const po=u.CHM(vn).$implicit,Kn=u.oxw(2);return u.KtG(Kn.editHoursDefinition(po,Kn.closedHourType))}),u._uU(4," imxplatform.common-entity.list.details "),u.qZA(),u.YNc(5,Yt,2,1,"imx-action-menu-item",34),u.qZA()()()}if(2&Hn){const vn=mo.$implicit,Ji=u.oxw(2);u.Q6J("formGroup",vn),u.xp6(3),u.Q6J("icon","icon-magnifier"),u.xp6(2),u.Q6J("hasFieldWritePermission",Ji.getFieldsPathPrefix()+"closedHourDefinitions")("hasFieldWritePermissionFormHandler",Ji.formHandler)}}function yt(Hn,mo){if(1&Hn&&(u.TgZ(0,"table",11),u.YNc(1,Ii,1,0,"tr",12)(2,_i,1,0,"tr",13),u.ynx(3,14),u.YNc(4,En,2,1,"th",15)(5,co,3,3,"td",16),u.BQk(),u.ynx(6,17),u.YNc(7,yn,2,1,"th",15)(8,ln,3,4,"td",18),u.BQk(),u.ynx(9,19),u.YNc(10,He,2,1,"th",15)(11,rt,3,4,"td",18),u.BQk(),u.ynx(12,20),u.YNc(13,$e,2,1,"th",15)(14,Ve,2,1,"td",16),u.BQk(),u.ynx(15,21),u.YNc(16,Ce,2,1,"th",15)(17,tt,2,1,"td",16),u.BQk(),u.ynx(18,22),u.YNc(19,ht,2,0,"th",15)(20,Qt,2,1,"td",16),u.BQk(),u.ynx(21,23),u.YNc(22,Un,1,0,"th",24)(23,Fn,6,4,"td",25),u.BQk(),u.qZA()),2&Hn){const vn=u.oxw();u.Q6J("dataSource",vn.closedDefinitionDataSource),u.xp6(),u.Q6J("matHeaderRowDef",vn.closedDefinitionColumns),u.xp6(),u.Q6J("matRowDefColumns",vn.closedDefinitionColumns)}}function Bt(Hn,mo){1&Hn&&(u.TgZ(0,"mat-error",36),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&Hn&&(u.Q6J("id",null),u.xp6(),u.Oqu(u.lcZ(2,2,"imxplatform.common-entity.edit.panels.opening-hours.hourDefinitionsInvalid")))}function li(Hn,mo){if(1&Hn){const vn=u.EpF();u.TgZ(0,"button",37),u.NdJ("click",function(){u.CHM(vn);const wn=u.oxw();return u.KtG(wn.createHoursDefinition(wn.closedHourType))}),u._uU(1),u.ALo(2,"translate"),u.qZA()}if(2&Hn){const vn=u.oxw();u.Q6J("disabled",vn.openingClosedHoursForbidden()),u.xp6(),u.hij(" ",u.lcZ(2,2,"imxtools.addressbase.edit.panels.opening-hours.closing-hours-create")," ")}}let si=(()=>{class Hn extends n.AbstractCoreDataObjectFormPanelComponent{constructor(vn,Ji,wn,po,Kn,Vn){super(vn,Kn),this.entitiesMgr=vn,this.formatterService=Ji,this.changeDetectorRef=wn,this.readI18nPipe=po,this.dialog=Kn,this.openingHoursDefinitionVoter=Vn,this.permissionPathPrefix="",this.shownActionMenu=new Map,this.openingHourType=oo,this.closedHourType=_o,this.entitiesMgr.getAllEntitiesOfType("DayDefinition").pipe((0,l.q)(1)).subscribe(Wi=>this.dayDefinitions=Wi.items)}ngOnInit(){this.openingDefinitionDataSource=this.prepareTable(this.openingHoursInformationRowFormGroup.get("openingHourDefinitions"),vn=>this.openingDefinitionDataSource=vn),this.openingDefinitionColumns=this.determineTableColumns("openingHoursInformations:openingHourDefinitions"),this.closedDefinitionDataSource=this.prepareTable(this.openingHoursInformationRowFormGroup.get("closedHourDefinitions"),vn=>this.closedDefinitionDataSource=vn),this.closedDefinitionColumns=this.determineTableColumns("openingHoursInformations:closedHourDefinitions"),this.filledOpeningHours=!this.emptyOpeningHours(),this.filledClosingHours=!this.emptyClosingHours(),this.openingHoursInformationRowFormGroup.valueChanges.subscribe(vn=>{this.filledOpeningHours=!this.emptyOpeningHours(),this.filledClosingHours=!this.emptyClosingHours()})}emptyOpeningHours(){return(0,n.isEmptyObject)(this.openingHoursInformationRowFormGroup.get("openingHourDefinitions").value)&&(0,n.isEmptyObject)(this.openingHoursInformationRowFormGroup.get("openingHours").value)}emptyClosingHours(){return(0,n.isEmptyObject)(this.openingHoursInformationRowFormGroup.get("closedHourDefinitions").value)&&(0,n.isEmptyObject)(this.openingHoursInformationRowFormGroup.get("descriptionClosedDays").value)}getFieldsPathPrefix(){return this.modulePath?this.modulePath+":openingHoursInformations:":"openingHoursInformations:"}removeFromDefinitions(vn,Ji){this.openingHoursInformationRowFormGroup.get(vn).removeAt(Ji),this.openingHoursInformationRowFormGroup.get(vn).markAsDirty()}setShownActionMenu(vn,Ji){null!=this.shownActionMenu.get(Ji)&&this.shownActionMenu.get(Ji)===vn?this.shownActionMenu.set(Ji,null):this.shownActionMenu.set(Ji,vn)}closeActionMenu(vn,Ji){null!=this.shownActionMenu.get(Ji)!=null&&this.shownActionMenu.get(Ji)===vn&&this.shownActionMenu.set(Ji,null)}isShownActionMenu(vn,Ji){return null!=this.shownActionMenu.get(Ji)&&this.shownActionMenu.get(Ji)===vn}editHoursDefinition(vn,Ji){if(vn){const wn=vn.value;this._openHoursDefinitionDialog(vn,Ji).afterClosed().pipe((0,i.zg)(po=>po&&this.openingHoursDefinitionVoter?this.openingHoursDefinitionVoter.confirm(this.formHandler,this.openingHoursInformationRowFormGroup,vn,Ji.key):(0,s.of)(po))).subscribe(po=>{po?this.changeDetectorRef.markForCheck():vn.reset(wn,{onlySelf:!0})})}}_openHoursDefinitionDialog(vn,Ji){return this.dialog.open(Oe,{...n.DialogDefaultSizes.FORM_BIG,data:{title:"entity."+Ji.entityName+".entityName",arrayField:this.formHandler.formConfiguration.findArrayFieldById(this.getFieldsPathPrefix()+Ji.key),formRow:vn,formHandler:this.formHandler,openingClosedHoursForbidden:this.openingClosedHoursForbidden(),fieldsPathPrefix:this.getFieldsPathPrefix(),definitionType:Ji,getDayName:wn=>this._getDayName(wn)}})}createHoursDefinition(vn){const Ji=this.formHandler.addNewCollectionRow("openingHoursInformations:"+vn.key,!1);this._openHoursDefinitionDialog(Ji,vn).afterClosed().pipe((0,i.zg)(wn=>wn&&this.openingHoursDefinitionVoter?this.openingHoursDefinitionVoter.confirm(this.formHandler,this.openingHoursInformationRowFormGroup,Ji,vn.key):(0,s.of)(wn))).subscribe(wn=>{wn&&(this.openingHoursInformationRowFormGroup.get(vn.key).push(Ji),this.openingHoursInformationRowFormGroup.get(vn.key).markAsDirty(),vn===oo?this.openingDefinitionDataSource=new e.by(this.openingHoursInformationRowFormGroup.get(vn.key).controls):this.closedDefinitionDataSource=new e.by(this.openingHoursInformationRowFormGroup.get(vn.key).controls),this.changeDetectorRef.markForCheck())})}renderYearlyColumn(vn){return vn.get("yearly").value&&!0===vn.get("yearly").value?vn.get("dateFrom").value&&vn.get("dateTo").value?vn.get("dateFrom").value.getFullYear()+"-"+vn.get("dateTo").value.getFullYear():"imxplatform.common.yes":"imxplatform.common.no"}renderDateColumn(vn,Ji){return Ji&&Ji.value?vn.get("yearly").value&&!0===vn.get("yearly").value?this.formatterService.formatDate(Ji.value,"dd. MMMM"):this.formatterService.formatDate(Ji.value,"dd.MM.yyyy"):""}renderTimeIntervals(vn){return vn.map(Ji=>{let wn=this._getDayName(Ji.day);const po=this.formatTimeInterval(Ji.timeFrom),Kn=this.formatTimeInterval(Ji.timeTo);return po&&Kn?wn+=": "+po+" - "+Kn:po&&!Kn?wn+=": "+po:Kn&&(wn+=": - "+Kn),wn}).join("\n")}_getDayName(vn){if(this.dayDefinitions){const Ji=this.dayDefinitions.find(wn=>wn.id===vn);if(Ji)return this.readI18nPipe.transform(Ji.i18nName)}return`${vn}`}formatTimeInterval(vn){return this.formatterService.formatTimeInterval(vn)}openingClosedHoursForbidden(){return this.openingHoursInformationRowFormGroup.get("noOpeningHours").value||this.openingHoursInformationRowFormGroup.get("permanentlyOpen").value}static#e=this.\u0275fac=function(Ji){return new(Ji||Hn)(u.Y36(n.ImxEntitiesMgrService),u.Y36(n.FormatterService),u.Y36(u.sBO),u.Y36(n.ReadI18nPipe),u.Y36(c.uw),u.Y36(t.v8,8))};static#t=this.\u0275cmp=u.Xpm({type:Hn,selectors:[["imx-opening-hours-information-form-panel"]],inputs:{tileDesc:"tileDesc",openingHoursInformationRowFormGroup:"openingHoursInformationRowFormGroup",modulePath:"modulePath",permissionPathPrefix:"permissionPathPrefix"},features:[u.qOj],decls:23,vars:28,consts:[["title","imxtools.addressbase.edit.panels.opening-hours.opening-hours-title",3,"titleDescription","icon"],["translate",""],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[3,"id",4,"ngIf"],["class","imx-button prio2",3,"disabled","click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[3,"field","control","formHandler","form","config"],["title","imxtools.addressbase.edit.panels.opening-hours.closing-hours-title",3,"titleDescription","icon"],["noRecordClosingHours",""],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","clickable",3,"click",4,"matRowDef","matRowDefColumns"],["matColumnDef","yearly"],["mat-header-cell","","translate","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","description"],["mat-cell","","class","txt-ellipsis",4,"matCellDef"],["matColumnDef","additionalInformation"],["matColumnDef","dateFrom"],["matColumnDef","dateTo"],["matColumnDef","timeIntervals"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row","",1,"clickable",3,"click"],["mat-header-cell","","translate",""],["mat-cell",""],["mat-cell","",1,"txt-ellipsis"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],[3,"icon","click"],["additionalStyle","delete",3,"icon","click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],["additionalStyle","delete",3,"icon","click"],[3,"id"],[1,"imx-button","prio2",3,"disabled","click"]],template:function(Ji,wn){if(1&Ji&&(u.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0),u.ALo(2,"readI18n"),u.TgZ(3,"span",1),u._uU(4,"imxtools.addressbase.edit.panels.opening-hours.opening-hours-definition-title"),u.qZA(),u.YNc(5,Dt,2,0,"ng-template",null,2,u.W1O),u.TgZ(7,"div",3),u.YNc(8,Oo,24,3,"table",4),u.qZA(),u.YNc(9,no,3,4,"mat-error",5)(10,Li,3,4,"button",6),u._UZ(11,"imx-form-control",7),u.qZA(),u.TgZ(12,"imx-accordion-panel",8),u.ALo(13,"readI18n"),u.TgZ(14,"span",1),u._uU(15,"imxtools.addressbase.edit.panels.opening-hours.closing-hours-definition-title"),u.qZA(),u.YNc(16,ji,2,0,"ng-template",null,9,u.W1O),u.TgZ(18,"div",3),u.YNc(19,yt,24,3,"table",4),u.qZA(),u.YNc(20,Bt,3,4,"mat-error",5)(21,li,3,4,"button",6),u._UZ(22,"imx-form-control",7),u.qZA()()),2&Ji){const po=u.MAs(6),Kn=u.MAs(17);u.xp6(),u.Q6J("titleDescription",u.lcZ(2,24,wn.tileDesc))("icon",wn.filledOpeningHours?"icon-checkmark":""),u.xp6(7),u.Q6J("ngIf",wn.openingDefinitionDataSource&&wn.openingDefinitionDataSource.data.length>0)("ngIfElse",po),u.xp6(),u.Q6J("ngIf",wn.openingHoursInformationRowFormGroup.get("openingHourDefinitions").invalid),u.xp6(),u.Q6J("hasFieldWritePermission",wn.getFieldsPathPrefix()+"openingHourDefinitions")("hasFieldWritePermissionFormHandler",wn.formHandler),u.xp6(),u.Q6J("field",wn.formHandler.formConfiguration.findFormFieldById(wn.getFieldsPathPrefix()+"openingHours"))("control",wn.openingHoursInformationRowFormGroup.get("openingHours"))("formHandler",wn.formHandler)("form",wn.formHandler.formGroup.get("openingHoursInformations"))("config",wn.formHandler.formConfiguration),u.xp6(),u.Q6J("titleDescription",u.lcZ(13,26,wn.tileDesc))("icon",wn.filledClosingHours?"icon-checkmark":""),u.xp6(7),u.Q6J("ngIf",wn.closedDefinitionDataSource&&wn.closedDefinitionDataSource.data.length>0)("ngIfElse",Kn),u.xp6(),u.Q6J("ngIf",wn.openingHoursInformationRowFormGroup.get("closedHourDefinitions").invalid),u.xp6(),u.Q6J("hasFieldWritePermission",wn.getFieldsPathPrefix()+"closedHourDefinitions")("hasFieldWritePermissionFormHandler",wn.formHandler),u.xp6(),u.Q6J("field",wn.formHandler.formConfiguration.findFormFieldById(wn.getFieldsPathPrefix()+"descriptionClosedDays"))("control",wn.openingHoursInformationRowFormGroup.get("descriptionClosedDays"))("formHandler",wn.formHandler)("form",wn.formHandler.formGroup.get("openingHoursInformations"))("config",wn.formHandler.formConfiguration)}},dependencies:[b.A,K.X,I.O5,p.JL,B.TO,e.BZ,e.fO,e.as,e.w1,e.Dz,e.nj,e.ge,e.ev,e.XQ,e.Gk,p.sg,ae.Pi,ye.Z,ve.U,ee.p,$.z,ue.t,ft.j,ae.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.imx-button[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:10px}h3[_ngcontent-%COMP%]{margin-bottom:10px}.definition-list-row-action-menu[_ngcontent-%COMP%]{position:absolute;top:0;right:47px;z-index:2;margin-right:5px;background:#fff;box-shadow:0 0 5px #0003;display:flex;flex-direction:column}.definition-list-row-action-menu[_ngcontent-%COMP%]   .triangle-right[_ngcontent-%COMP%]{position:absolute;right:-12px;top:0;border-left-color:#fff}.mat-mdc-row[_ngcontent-%COMP%]{position:relative}.action-menu-wrapper[_ngcontent-%COMP%]{height:42px;display:flex;justify-content:center;flex-direction:column}"]})}return Hn})();const oo={key:"openingHourDefinitions",entityName:"OpeningHoursDefinition"},_o={key:"closedHourDefinitions",entityName:"ClosedHoursDefinition"}},57729:(gt,X,a)=>{"use strict";a.d(X,{b:()=>m,o:()=>u});var e=a(19212),n=a(85829),s=a(21223),l=a(43941),i=a(96814),t=a(94480),p=a(71365);function c(b,I){if(1&b&&(e.TgZ(0,"div",5)(1,"p",6),e._uU(2),e.ALo(3,"translate"),e.TgZ(4,"span",7),e._uU(5),e.ALo(6,"productline"),e.qZA()()()),2&b){const H=I.ngIf,O=e.oxw(2).item;e.xp6(2),e.AsE("",e.lcZ(3,3,"imxtools.offer.edit.panels.media.productlines")," (",null==O||null==O.productlines?null:O.productlines.length,"): "),e.xp6(3),e.Oqu(e.lcZ(6,5,H))}}function o(b,I){if(1&b&&(e.ynx(0),e.TgZ(1,"div",3),e.YNc(2,c,7,7,"div",4),e.ALo(3,"async"),e.qZA(),e.BQk()),2&b){const H=e.oxw().item,O=e.oxw();e.xp6(2),e.Q6J("ngIf",e.lcZ(3,1,O.productlinesObservables.get(H.index)))}}function x(b,I){if(1&b&&e.YNc(0,o,4,3,"ng-container",2),2&b){const H=I.item;e.Q6J("ngIf",(null==H||null==H.productlines?null:H.productlines.length)>0)}}const u=new e.OlP("imxtools.forms.addressbase.dataobjectmediuminitializer");let m=(()=>{class b extends n.AbstractCoreDataObjectFormPanelComponent{constructor(H,O,P){super(H),this.entitiesMgr=H,this.dataAccessService=O,this.dataObjectMediumInitializer=P,this.productlinesObservables=new Map}mediaLoaded(H){this.productlinesObservables.clear(),H.forEach((O,P)=>{if(O.productlines){const G=O.productlines.map(B=>B.id);this.productlinesObservables.set(P,this.entitiesMgr.getEntityWithIdsOfType("Productline",G))}})}afterPooledMediumDelete(H){this.dataAccessService.getOfferById(H).subscribe(O=>{this.formHandler.baseObject=O,this.record=O})}static#e=this.\u0275fac=function(O){return new(O||b)(e.Y36(n.ImxEntitiesMgrService),e.Y36(s.N),e.Y36(u))};static#t=this.\u0275cmp=e.Xpm({type:b,selectors:[["imx-offer-media-form-panel"]],features:[e.qOj],decls:3,vars:6,consts:[[3,"formHandler","record","dataObjectEntityType","dataObjectMediumInitializerService","removeHeader","bottomRowTemplate","mediaLoaded","afterPooledMediumDelete"],["toolsBottomRowTemplate",""],[4,"ngIf"],[1,"form__list-content"],["class","form__list-column",4,"ngIf"],[1,"form__list-column"],[1,"txt-default"],[1,"txt-grey"]],template:function(O,P){if(1&O&&(e.TgZ(0,"imx-media-form-panel",0),e.NdJ("mediaLoaded",function(B){return P.mediaLoaded(B)})("afterPooledMediumDelete",function(B){return P.afterPooledMediumDelete(B)}),e.qZA(),e.YNc(1,x,1,1,"ng-template",null,1,e.W1O)),2&O){const G=e.MAs(2);e.Q6J("formHandler",P.formHandler)("record",P.record)("dataObjectEntityType","Offer")("dataObjectMediumInitializerService",P.dataObjectMediumInitializer)("removeHeader","imxtools.offer.edit.panels.media.remove-confirm")("bottomRowTemplate",G)}},dependencies:[l.E,i.O5,t.w,i.Ov,p.X$],encapsulation:2,changeDetection:0})}return b})()},32279:(gt,X,a)=>{"use strict";a.d(X,{V:()=>p});var e=a(19212),n=a(96814),s=a(6996),l=a(94480),i=a(71365);function t(c,o){if(1&c&&(e.ynx(0),e.TgZ(1,"p",1),e._uU(2),e.ALo(3,"translate"),e.TgZ(4,"span",2),e._uU(5),e.ALo(6,"productline"),e.qZA()(),e.BQk()),2&c){const x=o.ngIf;e.xp6(2),e.AsE("",e.lcZ(3,3,"imxtools.addressbase.list.produclines")," (",x.length,"): "),e.xp6(3),e.Oqu(e.lcZ(6,5,x))}}let p=(()=>{class c{static#e=this.\u0275fac=function(u){return new(u||c)};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["imx-addressbase-bottom-slot"]],hostAttrs:[1,"imx-addressbase-bottom-slot"],inputs:{dataObject:"dataObject"},decls:2,vars:4,consts:[[4,"ngIf"],[1,"txt-default"],[1,"txt-grey"]],template:function(u,m){1&u&&(e.YNc(0,t,7,7,"ng-container",0),e.ALo(1,"productlineFilter")),2&u&&e.Q6J("ngIf",e.xi3(1,1,null==m.dataObject?null:m.dataObject.metainfos,!0))},dependencies:[n.O5,s.D,l.w,i.X$],changeDetection:0})}return c})()},66456:(gt,X,a)=>{"use strict";a.d(X,{i:()=>b});var e=a(85829),n=a(19212),s=a(6469),l=a(96814),i=a(71365);let t=(()=>{class I{static#e=this.\u0275fac=function(P){return new(P||I)};static#t=this.\u0275cmp=n.Xpm({type:I,selectors:[["imx-addressbase-additional-right-slot"]],inputs:{dataObject:"dataObject"},decls:0,vars:0,template:function(P,G){},encapsulation:2,changeDetection:0})}return I})();function p(I,H){if(1&I&&(n.ynx(0),n.TgZ(1,"p",5),n._uU(2),n.ALo(3,"translate"),n.TgZ(4,"span",6),n._uU(5),n.qZA()(),n.BQk()),2&I){const O=n.oxw();n.xp6(2),n.hij("",n.lcZ(3,2,"entity.Addressbase.addressbaseUser"),": "),n.xp6(3),n.hij("\xa0",null==O.dataObject||null==O.dataObject.addressbaseUser?null:O.dataObject.addressbaseUser.loginname,"")}}function c(I,H){if(1&I&&(n.ynx(0),n.TgZ(1,"span",6),n._uU(2),n.ALo(3,"number"),n.qZA(),n.BQk()),2&I){const O=n.oxw(2);n.xp6(2),n.hij("\xa0",n.xi3(3,1,null==O.dataObject?null:O.dataObject.contentScore,"1.1-1"),"")}}function o(I,H){1&I&&(n.TgZ(0,"span",9),n._uU(1,"\xa0imxplatform.common.no-value"),n.qZA())}function x(I,H){if(1&I&&(n.ynx(0),n.TgZ(1,"p",5),n._uU(2),n.ALo(3,"translate"),n.YNc(4,c,4,4,"ng-container",7)(5,o,2,0,"ng-template",null,8,n.W1O),n.qZA(),n.BQk()),2&I){const O=n.MAs(6),P=n.oxw();n.xp6(2),n.hij("",n.lcZ(3,3,"entity.ScorableDataObject.contentScore"),": "),n.xp6(2),n.Q6J("ngIf",null!=(null==P.dataObject?null:P.dataObject.contentScore))("ngIfElse",O)}}function u(I,H){if(1&I&&(n.TgZ(0,"p",10),n._uU(1),n.ALo(2,"translate"),n.TgZ(3,"span",6),n._uU(4),n.qZA()()),2&I){const O=n.oxw();n.xp6(),n.hij("",n.lcZ(2,2,"entity.Client.reliabilityClassification"),": "),n.xp6(3),n.Oqu(null==O.dataObject?null:O.dataObject.client.reliabilityClassification.name)}}function m(I,H){if(1&I&&(n.TgZ(0,"div",11)(1,"div")(2,"p",10),n._uU(3),n.ALo(4,"translate"),n.qZA()(),n.TgZ(5,"div"),n._UZ(6,"imx-opendata-icon",12),n.qZA()()),2&I){const O=n.oxw();n.xp6(3),n.hij("",n.lcZ(4,4,"entity.OpenDataDataObject.openDataState"),":"),n.xp6(3),n.Q6J("openDataRecord",O.dataObject)("isShownInList",!0)("showOpenDataIcon",!0)}}let b=(()=>{class I{constructor(O){this.configurationProvider=O,this.showOpenDataLine=!1,this.showContentScoreLine=!1}ngOnInit(){this.showOpenDataLine=this.configurationProvider.getBooleanFromSnapshot(e.ImxPlatformConfigParameter.PLATFORM_OPEN_DATA_ENABLED,!1),this.showContentScoreLine=this.configurationProvider.getBooleanFromSnapshot(e.ImxPlatformConfigParameter.PLATFORM_CONTENT_SCORE_ENABLED)}static#e=this.\u0275fac=function(P){return new(P||I)(n.Y36(e.ConfigurationProvider))};static#t=this.\u0275cmp=n.Xpm({type:I,selectors:[["imx-addressbase-right-slot"]],hostAttrs:[1,"imx-addressbase-right-slot"],inputs:{dataObject:"dataObject"},decls:7,vars:5,consts:[[1,"a__right_slot_wrapper"],[4,"ngIf"],["class","txt-grey",4,"ngIf"],["class","a__right_slot_od_wrapper a__data_line",4,"ngIf"],[3,"dataObject"],[1,"txt-grey","a__data_line"],[1,"txt-default"],[4,"ngIf","ngIfElse"],["emptyContentScore",""],["translate","",1,"txt-default"],[1,"txt-grey"],[1,"a__right_slot_od_wrapper","a__data_line"],[3,"openDataRecord","isShownInList","showOpenDataIcon"]],template:function(P,G){1&P&&(n.TgZ(0,"div",0)(1,"div"),n.YNc(2,p,6,4,"ng-container",1)(3,x,7,5,"ng-container",1)(4,u,5,4,"p",2)(5,m,7,6,"div",3),n._UZ(6,"imx-addressbase-additional-right-slot",4),n.qZA()()),2&P&&(n.xp6(2),n.Q6J("ngIf",null==G.dataObject.addressbaseUser?null:G.dataObject.addressbaseUser.loginname),n.xp6(),n.Q6J("ngIf",G.showContentScoreLine),n.xp6(),n.Q6J("ngIf",null==G.dataObject?null:G.dataObject.client.reliabilityClassification),n.xp6(),n.Q6J("ngIf",G.showOpenDataLine),n.xp6(),n.Q6J("dataObject",G.dataObject))},dependencies:[s.m,l.O5,i.Pi,t,l.JJ,i.X$],styles:[".a__right_slot_wrapper[_ngcontent-%COMP%]{overflow:hidden}.a__right_slot_wrapper[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:left}.a__data_line[_ngcontent-%COMP%]{display:flex;align-items:center;word-break:break-word}.a__right_slot_od_wrapper[_ngcontent-%COMP%]{margin-top:5px}.a__right_slot_od_wrapper[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:inline-flex}"],changeDetection:0})}return I})()},28321:(gt,X,a)=>{"use strict";a.d(X,{H:()=>e});const e={name:"imxtools",projectProduct:!1}},37966:(gt,X,a)=>{"use strict";a.d(X,{j:()=>l});var e=a(85829),n=a(19212),s=a(17700);let l=(()=>{class i extends e.AbstractDeleteAction{constructor(p,c,o,x,u){super(p,c,o,x,u)}getConfirmBatchTitleKey(){return"imxtools.addressbase.list.action.delete.confirm-batch"}getConfirmTitleKey(){return"imxtools.addressbase.list.action.delete.confirm"}getEntityType(){return"Addressbase"}getActionKey(){return"addressbase-action-delete"}getIcon(){return"icon-trash"}static#e=this.\u0275fac=function(c){return new(c||i)(n.LFG(s.uw),n.LFG(e.ImxPlatformDataAccessService),n.LFG(e.EntityStateDao),n.LFG(e.UserMessageService),n.LFG(e.BackgroundActionService))};static#t=this.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac})}return i})()},29989:(gt,X,a)=>{"use strict";a.d(X,{j:()=>l});var e=a(85829),n=a(19212),s=a(17700);let l=(()=>{class i extends e.AbstractDeleteAction{constructor(p,c,o,x,u){super(p,c,o,x,u)}getConfirmBatchTitleKey(){return"imxtools.offer.list.action.delete.confirm-batch"}getConfirmTitleKey(){return"imxtools.offer.list.action.delete.confirm"}getEntityType(){return"Offer"}getActionKey(){return"offer-action-delete"}getIcon(){return"icon-trash"}static#e=this.\u0275fac=function(c){return new(c||i)(n.LFG(s.uw),n.LFG(e.ImxPlatformDataAccessService),n.LFG(e.EntityStateDao),n.LFG(e.UserMessageService),n.LFG(e.BackgroundActionService))};static#t=this.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})()},66550:(gt,X,a)=>{"use strict";a.d(X,{s:()=>l});var e=a(85829),n=a(21223),s=a(19212);let l=(()=>{class i{constructor(p){this.imxToolsDataAccessService=p}getEntityType(){return e.CoreEntityDef.ADDRESSBASE_ENTITY.type}getAutocompleteHolders(p,c,o){return this.imxToolsDataAccessService.getAddressbaseAutocomplete(p,c,o)}getAutocompleteHoldersFiltered(p,c,o){return this.imxToolsDataAccessService.genericGetCoreEntityFiltered(e.CoreEntityDef.ADDRESSBASE_ENTITY.apiPrefix,p,c,o)}static#e=this.\u0275fac=function(c){return new(c||i)(s.LFG(n.N))};static#t=this.\u0275prov=s.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})()},62736:(gt,X,a)=>{"use strict";a.d(X,{s:()=>n});var e=a(85829);class n extends e.ImxPlatformConfigParameter{static#e=this.IMXTOOLS_MODULES=new n("modules");static#t=this.IMXTOOLS_CONTACT_ADDRESSBASE_ENABLED=new n("contact_addressbase.enabled");static#n=this.INBOX_SELECTABLE_CLIENT_IDS=new n("inbox.selectable_client_ids");static#i=this.IMXTOOLS_OPENINGHOURS_ENABLE_DATE_CHECK=new n("addressbase.openinghours.enable.date_check");static#o=this.IMXTOOLS_MEDIA_FALLBACK_ICONS=new n("media.fallback_icons");static#r=this.IMXTOOLS_OFFER_AVAILABILITY_BY_DATE_SELECTION=new n("offer_availability_by_date_selection");static#a=this.IMXTOOLS_QRANNOUNCEMENT_WEBSERVICE_USER=new n("qrannouncement.webservice.user");static#s=this.IMXTOOLS_QRANNOUNCEMENT_WEBSERVICE_PASSWORD=new n("qrannouncement.webservice.password");static#l=this.IMXTOOLS_OFFER_ALLOWED_WITHOUT_ADDRESSBASE=new n("offer.without_addressbase");static#c=this.IMXTOOLS_OFFER_WITH_REGIONS=new n("offer.with_regions");static#d=this.IMXTOOLS_OFFER_SHOW_OFFER_LOCATION_FILTER=new n("offer.show_offer_location_filter");static#m=this.IMXTOOLS_ADDRESSBASE_USER_CREATION_PREDEFINED_ROLEs=new n("addressbase.user_creation.predefined_roles");getPrefix(){return"imxtools2"}}},21223:(gt,X,a)=>{"use strict";a.d(X,{C:()=>m,N:()=>b});var e=a(69862),n=a(19212),s=a(85829),l=a(21473),i=a(49193),t=a(62413),p=a(96124),c=a(94973),o=a(82851),x=a(28321),u=a(71365);const m=new n.OlP("imxtools.extended.filter.criteria");let b=(()=>{class I extends s.ImxBaseDataAccessService{constructor(O,P,G){super(O,P),this.dataAccess=O,this.translateService=P,this.extendedAddressbaseCriteriaDefs=G,this.logger=(0,l.jl)("ImxToolsDataAccessService",x.H.name),this.logger.info("Creating ImxToolsDataAccessService")}getOffers(O,P){const G=this.convertOfferClientParamsToRequestParams(O,P);return G.sysLang=this.translateService.currentLang,this.logger.debug("Query options for getOffers: "+JSON.stringify(G)),this.dataAccess.get("offer/compact",{params:G}).pipe((0,t.K)(B=>(this.logger.debug("get offer/compact failed",B),(0,i.of)({compactOffers:[],totalElements:0,number:0,size:0}))),(0,p.U)(B=>new l.BY(B.compactOffers,B.totalElements,B.number,B.size)),(0,c.C)(),(0,o.x)())}getOfferById(O){return this.genericGetById(O,"offer","Offer")}updateOffer(O){return this.genericUpdate(O,"offer","Offer")}createOffer(O){return this.genericAdd(O,"offer","Offer")}getOfferAutocomplete(O,P,G){return this.genericGetCoreEntityAutocomplete("offer",O,P,G)}initOffer(){return this.dataAccess.get("offer/new",{params:{lang:"de"}}).pipe((0,c.C)(),(0,o.x)())}generateAvailabilityDates$(O,P){return this.dataAccess.get("offer/generateAvailabilities/"+O,{params:P}).pipe((0,t.K)(G=>(this.logger.debug("generate availability dates failed",G),(0,i.of)([]))),(0,p.U)(G=>{const B=[];return G.content.forEach(J=>{const q=new Date(Date.parse(J));B.push(q)}),B}),(0,c.C)(),(0,o.x)())}convertAddressbaseDuplicatesClientParamsToRequestParams(O,P){const G=this.convertAddressbaseClientParamsToRequestParams(O,P),B=Object.assign(G||{},{duplicateCertaintyFrom:O.certaintyFrom,duplicateCertaintyTo:O.certaintyTo});return this.filterEmptyCriteria(B),B}getDuplicates(O,P){const G=this.convertAddressbaseDuplicatesClientParamsToRequestParams(O,P);return G.sysLang=this.translateService.currentLang,this.logger.debug("Query options for getAddressbases: "+JSON.stringify(G)),this.dataAccess.get("addressbase/duplicates",{params:G}).pipe((0,t.K)(B=>(this.logger.debug("get addressbase/duplicates failed",B),(0,i.of)({totalElements:0,number:0,size:0}))),(0,p.U)(B=>{const ae=B.addressbaseDuplicateGroups;return ae.forEach(J=>J.candidates=J.addressPois),new l.BY(ae,B.totalElements,B.number,B.size)}),(0,c.C)(),(0,o.x)())}createDuplicateGroups(O){this.logger.debug("Create new duplicate groups");const G=new e.WM({"Content-Type":"application/json"});return this.dataAccess.post("addressbase/duplicates/createGroups",JSON.stringify(O),{headers:G}).pipe((0,t.K)(B=>(this.logger.debug("post addressbase/duplicates/createGroups failed",B),(0,i.of)(!1))),(0,c.C)(),(0,o.x)())}getDuplicateGroupIds(O){const B=this.convertAddressbaseClientParamsToRequestParams(O,{paging:"ONE_PAGE"});return B.sysLang=this.translateService.currentLang,this.logger.debug("Query options for addressbase/duplicates/ids: "+JSON.stringify(B)),this.dataAccess.get("addressbase/duplicates/ids",{params:B}).pipe((0,t.K)(ae=>(this.logger.debug("get addressbase/duplicates/ids failed",ae),(0,i.of)({content:[]}))),(0,p.U)(ae=>new l.BY(ae.content,ae.totalElements,ae.number,ae.size)),(0,c.C)(),(0,o.x)())}getDuplicateGroup(O){const P="addressbase/duplicates/"+O;return this.logger.debug("Query options for addressbase/duplicates/ "),this.dataAccess.get(P,{params:{}}).pipe((0,t.K)(G=>(this.logger.debug(P+" failed",G),(0,i.of)({content:[]}))),(0,p.U)(G=>G.AddressPoiDuplCandidatesGroup),(0,c.C)(),(0,o.x)())}getAddressbases(O,P){const G=this.convertAddressbaseClientParamsToRequestParams(O,P);return G.sysLang=this.translateService.currentLang,this.logger.debug("Query options for getAddressbases: "+JSON.stringify(G)),this.dataAccess.get("addressbase/compact",{params:G}).pipe((0,t.K)(B=>(this.logger.debug("get addressbase/compact failed",B),(0,i.of)({compactAddressbases:[],totalElements:0,number:0,size:0}))),(0,p.U)(B=>new l.BY(B.compactAddressbases,B.totalElements,B.number,B.size)),(0,c.C)(),(0,o.x)())}getAddressbasesComplete(O,P){const G=this.convertAddressbaseClientParamsToRequestParams(O,P);return G.sysLang=this.translateService.currentLang,this.logger.debug("Query options for getAddressbases: "+JSON.stringify(G)),this.dataAccess.get("addressbase",{params:G}).pipe((0,t.K)(B=>(this.logger.debug("get addressbase failed",B),(0,i.of)({addressbases:[],totalElements:0,number:0,size:0}))),(0,p.U)(B=>new l.BY(B.addressbases,B.totalElements,B.number,B.size)),(0,c.C)(),(0,o.x)())}getAddressbaseIds(O,P){const G=this.convertAddressbaseClientParamsToRequestParams(O,P);return this.logger.debug("Query options for getAddressbaseIds: "+JSON.stringify(G)),this.dataAccess.get("addressbase/ids",{params:G}).pipe((0,t.K)(B=>(this.logger.debug("get addressbase/ids failed",B),(0,i.of)({content:[],totalElements:0,number:0,size:0}))),(0,p.U)(B=>new l.BY(B.content,B.totalElements,B.number,B.size)),(0,c.C)(),(0,o.x)())}getOfferIds(O,P){const G=this.convertOfferClientParamsToRequestParams(O,P);return this.logger.debug("Query options for getOfferIds: "+JSON.stringify(G)),this.dataAccess.get("offer/ids",{params:G}).pipe((0,t.K)(B=>(this.logger.debug("get offer/ids failed",B),(0,i.of)({content:[],totalElements:0,number:0,size:0}))),(0,p.U)(B=>new l.BY(B.content,B.totalElements,B.number,B.size)),(0,c.C)(),(0,o.x)())}initAddressbase(){return this.dataAccess.get("addressbase/new",{params:{lang:"de"}}).pipe((0,c.C)(),(0,o.x)())}suggestPermaLinkForAddressbase(O,P){return this.suggestPermaLink("addressbase",O,P)}suggestPermaLinkForOffer(O,P){return this.suggestPermaLink("offer",O,P)}convertAddressbaseClientParamsToRequestParams(O,P){const G=this.buildAddressbaseQueryCriteria(O);return Object.assign(G||{},this.buildRequestOptionParams(P,"aOrderFields"))}buildAddressbaseQueryCriteria(O){let P={};return O&&(P={addressbaseIds:O.id,aImportKeys:s.ImxBaseDataAccessService.spreadIds(O.importId),aPermaLink:O.permalink,aPermaLinkLang:s.ImxBaseDataAccessService.retrieveLanguage(O,"de"),aPresentedLanguage:s.ImxBaseDataAccessService.retrieveLanguage(O),aFulltext:s.ImxBaseDataAccessService.retrieveFulltextFilter(O),aFulltextSearchFields:s.ImxBaseDataAccessService.retrieveFulltextRestrictions(O),aFulltextSearchOption:O.fulltextSearchOption?O.fulltextSearchOption:null,aPrioLevelId:O.prioLevel?O.prioLevel:null,aDeliveryChannelId:O.deliveryChannel?O.deliveryChannel:null,aStateIds:void 0!==O.entityState?O.entityState.split(","):null,aProductlineAndIds:s.ImxBaseDataAccessService.retrieveProductlineIds(O,s.ProductlineSearchOption.ALLPL,!0),aProductlineOrIds:s.ImxBaseDataAccessService.retrieveProductlineIds(O,s.ProductlineSearchOption.ATLEASTONEPL,!1),aProductlineNotIds:s.ImxBaseDataAccessService.retrieveProductlineIds(O,s.ProductlineSearchOption.NOTPL,!1),aAppearanceFrom:O.appearanceFrom,aAppearanceTo:O.appearanceTo,aZipcodes:s.ImxBaseDataAccessService.retrieveZipcodes(O),aGeoSearchLocationId:O.geoLocationId,aGeoSearchDistance:s.ImxBaseDataAccessService.retrieveGeoSearchDistance(O),aGeoSearchZipcode:s.ImxBaseDataAccessService.retrieveGeoSearchZipcode(O),aGeoSearchLong:O.longitude,aGeoSearchLat:O.latitude,aNoGeoCoords:O.noGeoCoords?"true"===O.noGeoCoords:void 0,aRegionIds:s.ImxBaseDataAccessService.spreadIds(O.regionIds),aClientIds:O.clientIds,aIncludeSubClients:O.includeSubClients?"true"===O.includeSubClients:void 0,aImportSource:O.importSource,aImportPurpose:O.importPurpose,aImportRunId:O.importRunId,aCreationUserId:O.creationUser,aCreationRoleId:O.creationRole,aLastChangeUserId:O.lastChangeUser,aLastChangeRoleId:O.lastChangeRole,aOwningUserId:O.owningUser,aContentScore:this.combineComparatorParam(O.contentScore,O.contentScoreMax),aContentScoreComparator:this.convertComparator(O.contentScoreComparator),aLongDescriptionContent:this.combineComparatorParam(O.longDescriptionContent,O.longDescriptionContentMax),aLongDescriptionContentComparator:this.convertComparator(O.longDescriptionContentComparator),aMetaDescriptionContent:this.combineComparatorParam(O.metaDescriptionContent,O.metaDescriptionContentMax),aMetaDescriptionContentComparator:this.convertComparator(O.metaDescriptionContentComparator),context:O.context,aNoRegion:O.noRegion,aNoLocation:O.noLocation,aImagesAvailable:O.imagesAvailable,aConfirmedAppearances:O.confirmedAppearances,aPendingAppearances:O.pendingAppearances,aRefusedAppearances:O.refusedAppearances,aOpenData:this.convertOpenDataFilterToParams(O.opendata,"obj"),aOpenDataAnyImage:this.convertOpenDataFilterToParams(O.opendata,"img"),aOpenDataNoImage:this.convertOpenDataFilterToParams(O.opendata,"noImg"),aWithMemo:O.withMemo,aMemoUserId:O.memoUserId,aMemoFromDate:O.memoFromDate,aMemoToDate:O.memoToDate,aWithMemoAttributeId:O.withMemoAttributeId,aWithoutMemoAttributeId:O.withoutMemoAttributeId,aGeoRegionId:O.geoRegionId,aImageMediaLicenseIds:O.imageMediaLicense,aPoiTypeIds:O.addressPoiTypes?O.addressPoiTypes.split(","):void 0,aOpeningHoursAvailable:O.openingHoursAvailable,aMediaCopyrightAvailable:O.mediaCopyrightAvailable,aExcludeCreationUserId:O.excludeCreationUser,aDeliveryChannelNotIds:O.deliveryChannelNot?O.deliveryChannelNot:null,aMediaLicenseIds:O.mediaLicense}),this.extendedAddressbaseCriteriaDefs&&O&&(P=Object.assign(P,this.buildExtendedQueryCriteria(O,this.extendedAddressbaseCriteriaDefs))),this.filterEmptyCriteria(P),P}convertOpenDataFilterToParams(O,P){let G;return O&&O.includes(P)?G=!0:O&&"none"===O&&(G=!1),G}convertOfferClientParamsToRequestParams(O,P){const G=this.buildOfferQueryCriteria(O);return Object.assign(G||{},this.buildRequestOptionParams(P,"oOrderFields"))}buildOfferQueryCriteria(O){let P={};return O&&(P={offerIds:O.id,oImportKeys:s.ImxBaseDataAccessService.spreadIds(O.importId),oPermaLink:O.permalink,oPermaLinkLang:s.ImxBaseDataAccessService.retrieveLanguage(O,"de"),oPresentedLanguage:s.ImxBaseDataAccessService.retrieveLanguage(O),addressbaseId:O.oAddressbaseId,oFulltext:s.ImxBaseDataAccessService.retrieveFulltextFilter(O),oFulltextSearchFields:s.ImxBaseDataAccessService.retrieveFulltextRestrictions(O),oFulltextSearchOption:O.fulltextSearchOption?O.fulltextSearchOption:null,oPrioLevelId:O.prioLevel?O.prioLevel:null,oDeliveryChannelId:O.deliveryChannel?O.deliveryChannel:null,oStateIds:void 0!==O.entityState?O.entityState.split(","):null,oProductlineAndIds:s.ImxBaseDataAccessService.retrieveProductlineIds(O,s.ProductlineSearchOption.ALLPL,!0),oProductlineOrIds:s.ImxBaseDataAccessService.retrieveProductlineIds(O,s.ProductlineSearchOption.ATLEASTONEPL,!1),oProductlineNotIds:s.ImxBaseDataAccessService.retrieveProductlineIds(O,s.ProductlineSearchOption.NOTPL,!1),oAppearanceFrom:O.appearanceFrom,oAppearanceTo:O.appearanceTo,aZipcodes:s.ImxBaseDataAccessService.retrieveZipcodes(O),aGeoSearchLocationId:O.geoLocationId,aGeoSearchDistance:s.ImxBaseDataAccessService.retrieveGeoSearchDistance(O),aGeoSearchZipcode:s.ImxBaseDataAccessService.retrieveGeoSearchZipcode(O),aGeoSearchLong:O.longitude,aGeoSearchLat:O.latitude,aNoLocation:O.noLocation?O.noLocation:O.noLocationAlt?O.noLocationAlt:null,oNoGeoCoords:O.noGeoCoords?"true"===O.noGeoCoords:O.noGeoCoordsAlt?"true"===O.noGeoCoordsAlt:void 0,aPoiTypeIds:O.addressPoiTypes?O.addressPoiTypes.split(","):void 0,oGeoSearchLocationId:O.geoLocationIdAlt,oGeoSearchDistance:O.searchDistanceAlt,oGeoSearchZipcode:O.zipCodeAlt,oGeoSearchLong:O.longitudeAlt,oGeoSearchLat:O.latitudeAlt,oRegionIds:O.regionIdsAlt,oNoRegion:O.noRegionAlt,oImportSource:O.importSource,oImportPurpose:O.importPurpose,oImportRunId:O.importRunId,oClientIds:O.clientIds,oIncludeSubClients:O.includeSubClients?"true"===O.includeSubClients:void 0,aRegionIds:s.ImxBaseDataAccessService.spreadIds(O.regionIds),oCreationUserId:O.creationUser,oLastChangeUserId:O.lastChangeUser,oCreationRoleId:O.creationRole,oLastChangeRoleId:O.lastChangeRole,oContentScore:this.combineComparatorParam(O.contentScore,O.contentScoreMax),oContentScoreComparator:this.convertComparator(O.contentScoreComparator),oImagesAvailable:O.imagesAvailable,oFreeOfCharge:O.freeOfCharge,oLongDescAvailable:O.longDescAvailable,oConfirmedAppearances:O.confirmedAppearances,oPendingAppearances:O.pendingAppearances,oRefusedAppearances:O.refusedAppearances,oWithMemo:O.withMemo,oMemoUserId:O.memoUserId,oMemoFromDate:O.memoFromDate,oMemoToDate:O.memoToDate,oWithMemoAttributeId:O.withMemoAttributeId,oWithoutMemoAttributeId:O.withoutMemoAttributeId,oImageMediaLicenseIds:O.imageMediaLicense,oMediaCopyrightAvailable:O.mediaCopyrightAvailable,oExcludeCreationUserId:O.excludeCreationUser,oDeliveryChannelNotIds:O.deliveryChannelNot?O.deliveryChannelNot:null,oMediaLicenseIds:O.mediaLicense}),this.filterEmptyCriteria(P),P}getAddressbaseById(O){return this.genericGetById(O,"addressbase","Addressbase")}updateAddressbase(O){return this.genericUpdate(O,"addressbase","Addressbase")}createAddressbase(O){return this.genericAdd(O,"addressbase","Addressbase")}getAddressbaseAutocomplete(O,P,G){return this.genericGetCoreEntityAutocomplete("addressbase",O,P,G)}getContactAddressbaseAutocomplete(O,P,G){const B={lang:this.translateService.currentLang,...G};return P?B.id=P:B.name=O,this.dataAccess.get("contactaddressbase/autocomplete",{params:B}).pipe((0,p.U)(ae=>ae.autocomplete),(0,c.C)(),(0,o.x)())}getIbeAssignments$(O){return this.dataAccess.get("ibeassignment/extended",{params:{addressbaseId:`${O}`}}).pipe((0,t.K)(P=>(this.logger.debug("get ibeassignments failed",P),(0,i.of)({ibeAssignment:void 0,totalElements:0,number:0,size:0}))),(0,p.U)(P=>P),(0,c.C)(),(0,o.x)())}getIbeAssignmentCounts$(O){return this.dataAccess.get("ibeassignment/counts",{params:{addressbaseIds:O.toString()}}).pipe((0,t.K)(P=>(this.logger.debug("get ibeassignment count failed",P),(0,i.of)(new Map))),(0,p.U)(P=>new Map(Object.keys(P).map(G=>[parseInt(G,10),P[G]]))))}updateIbeAssignment(O){return this.genericUpdate(O,"ibeassignment","IbeAddressbaseImportAssignment")}convertAnnouncementClientParamsToRequestParams(O,P){const G=this.buildAnnouncementQueryCriteria(O);return Object.assign(G||{},this.buildRequestOptionParams(P,"aOrderFields"))}getAnnouncements(O,P){const G=this.convertAnnouncementClientParamsToRequestParams(O,P);return G.sysLang=this.translateService.currentLang,this.logger.debug("Query options for getAnnouncements: "+JSON.stringify(G)),this.dataAccess.get("announcement/compact",{params:G}).pipe((0,t.K)(B=>(this.logger.debug("get announcement failed",B),(0,i.of)({compactAnnouncements:[],totalElements:0,number:0,size:0}))),(0,p.U)(B=>new l.BY(B.compactAnnouncements,B.totalElements,B.number,B.size)),(0,c.C)(),(0,o.x)())}getAccouncementIds(O,P){const G=this.convertAnnouncementClientParamsToRequestParams(O,P);return this.logger.debug("Query options for convertAnnouncementClientParamsToRequestParams: "+JSON.stringify(G)),this.dataAccess.get("announcement/ids",{params:G}).pipe((0,t.K)(B=>(this.logger.debug("get announcement/ids failed",B),(0,i.of)({content:[],totalElements:0,number:0,size:0}))),(0,p.U)(B=>new l.BY(B.content,B.totalElements,B.number,B.size)),(0,c.C)(),(0,o.x)())}initAnnouncement(){return this.dataAccess.get("announcement/new",{params:{lang:"de"}}).pipe((0,c.C)(),(0,o.x)())}getAnnouncementById(O){return this.genericGetById(O,"announcement","Announcement")}updateAnnouncement(O,P){return this.genericUpdate(O,"announcement","Announcement",null,{params:{sendPushAnnouncement:!!P&&P+""}})}createAnnouncement(O,P){return this.genericAdd(O,"announcement","Announcement",null,{params:{sendPushAnnouncement:!!P&&P+""}})}deleteAnnouncement(O){return this.genericDelete(O,"announcement")}buildAnnouncementQueryCriteria(O){let P={};return O&&(P={announcementIds:O.id,aClientIds:O.clientIds,aIncludeSubClients:O.includeSubClients?"true"===O.includeSubClients:void 0,addressbaseIds:O.addressPoiId?[O.addressPoiId]:void 0,aImportKeys:s.ImxBaseDataAccessService.spreadIds(O.importId),aPresentedLanguage:s.ImxBaseDataAccessService.retrieveLanguage(O),aFulltext:s.ImxBaseDataAccessService.retrieveFulltextFilter(O),aFulltextSearchFields:s.ImxBaseDataAccessService.retrieveFulltextRestrictions(O),aFulltextSearchOption:O.fulltextSearchOption?O.fulltextSearchOption:null,aLocationIds:O.geoLocationId,aZipcodes:s.ImxBaseDataAccessService.retrieveZipcodes(O),aGeoSearchDistance:s.ImxBaseDataAccessService.retrieveGeoSearchDistance(O),aGeoSearchZipcode:s.ImxBaseDataAccessService.retrieveGeoSearchZipcode(O),aGeoSearchLong:O.longitude,aGeoSearchLat:O.latitude,aNoGeoCoords:O.noGeoCoords?"true"===O.noGeoCoords:void 0,aRegionIds:s.ImxBaseDataAccessService.spreadIds(O.regionIds),aImportSource:O.importSource,aImportPurpose:O.importPurpose,aImportRunId:O.importRunId,aAnnouncementTypeId:O.type,aValidityDate:O.validityTime,aProductlineAndIds:s.ImxBaseDataAccessService.retrieveProductlineIds(O,s.ProductlineSearchOption.ALLPL,!0),aProductlineOrIds:s.ImxBaseDataAccessService.retrieveProductlineIds(O,s.ProductlineSearchOption.ATLEASTONEPL,!1),aProductlineNotIds:s.ImxBaseDataAccessService.retrieveProductlineIds(O,s.ProductlineSearchOption.NOTPL,!1),aValidOnly:O.validOnly,aInvalidOnly:O.invalidOnly,aWithMemo:O.withMemo,aMemoUserId:O.memoUserId,aMemoFromDate:O.memoFromDate,aMemoToDate:O.memoToDate,aWithMemoAttributeId:O.withMemoAttributeId,aWithoutMemoAttributeId:O.withoutMemoAttributeId,aCreationUserId:O.creationUser,aCreationRoleId:O.creationRole,aLastChangeUserId:O.lastChangeUser,aLastChangeRoleId:O.lastChangeRole}),this.filterEmptyCriteria(P),P}static#e=this.\u0275fac=function(P){return new(P||I)(n.LFG(l.fx),n.LFG(u.sK),n.LFG(m,8))};static#t=this.\u0275prov=n.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})()},33066:(gt,X,a)=>{"use strict";a.d(X,{G:()=>l});var e=a(21473),n=a(96124),s=a(19212);let l=(()=>{class i{constructor(p){this.entitiesMgrService=p}getAllDistanceDefinitions(){return this.entitiesMgrService.getAllEntitiesOfType("DistanceDefinition").pipe((0,n.U)(p=>p.items))}getAllLocationDefinition(){return this.entitiesMgrService.getAllEntitiesOfType("LocationDefinition").pipe((0,n.U)(p=>p.items))}getAllPaymentOptions(){return this.entitiesMgrService.getAllEntitiesOfType("PaymentOption").pipe((0,n.U)(p=>p.items))}getAllPrioLevels(){return this.entitiesMgrService.getAllEntitiesOfType("PrioLevel").pipe((0,n.U)(p=>p.items))}static#e=this.\u0275fac=function(c){return new(c||i)(s.LFG(e.qB))};static#t=this.\u0275prov=s.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})()},65320:(gt,X,a)=>{"use strict";a.d(X,{M:()=>l});var e=a(19212);a(85829),a(21223);const l=new e.OlP("imxtools.addressbase.datasource")},19969:(gt,X,a)=>{"use strict";a.d(X,{l:()=>l,y:()=>i});var e=a(19212),n=a(85829),s=a(21223);const l=new e.OlP("imxplatform.announcement.datasource");let i=(()=>{class t extends n.ServerSideFilteringDataSourceService{constructor(c){super(),this.toolsDataAccessService=c}fetchResults(c,o,x,u,m,b){const I=this.extractSortFields(u,m);return this.toolsDataAccessService.getAnnouncements(c,{paging:{pageIdx:o,pageSize:x},sortFields:[I]})}static#e=this.\u0275fac=function(o){return new(o||t)(e.LFG(s.N))};static#t=this.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac})}return t})()},27996:(gt,X,a)=>{"use strict";a.d(X,{H:()=>l,g:()=>i});var e=a(19212),n=a(85829),s=a(21223);const l=new e.OlP("imxplatform.duplicates-addressbase.datasource");let i=(()=>{class t extends n.ServerSideFilteringDataSourceService{constructor(c){super(),this.toolsService=c}fetchResults(c,o,x,u,m,b){const I=this.extractSortFields(u,m);return this.toolsService.getDuplicates(c,{paging:{pageIdx:o,pageSize:x},sortFields:[I]})}static#e=this.\u0275fac=function(o){return new(o||t)(e.LFG(s.N))};static#t=this.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac})}return t})()},31475:(gt,X,a)=>{"use strict";a.d(X,{Y:()=>l}),a(21223);var n=a(19212);a(85829);const l=new n.OlP("imxtools.offer.datasource")},49202:(gt,X,a)=>{"use strict";a.d(X,{KX:()=>l,Uo:()=>t,Wk:()=>i,ru:()=>p});var e=a(19212),n=a(85829),s=a(21473);const l=new e.OlP("imxtools.filterforms.addressbase"),i=new e.OlP("imxtools.filterformextensions.addressbase"),t=new n.FormConfiguration([...(0,n.mainFilterFields)("Addressbase"),...(0,n.fulltextFilterFields)("Addressbase"),...(0,n.appearanceFilterFields)("Addressbase"),new n.Select("deliveryChannelNot","filter.Addressbase.deliveryChannelNot",{optionProvider:n.OwnDeliveryChannelOptionProviderService,placeholder:"imxplatform.common.no-value",extractor:(0,n.numberExtractor)("deliveryChannelNot"),initialValue:-1}),new n.Select("prioLevel","filter.Addressbase.prioLevel",{placeholder:"imxtools.common-entity.filter.appearanceFilter.any-priority",required:!1,optionProvider:n.PrioLevelOptionProviderService,initialValue:-1,extractor:(0,n.numberExtractor)("prioLevel")}),new n.CheckboxSelect("addressPoiTypes","filter.AddressPoi.addressPoiTypes",{optionProvider:n.AddressPoiTypeOptionProviderService,rowLayout:!0,extractor:(0,n.commaseparatedNumbersExtractor)("addressPoiTypes"),insertor:(0,n.commaseparatedInsertor)("addressPoiTypes"),required:!1,big:!0}),...(0,n.geoFilterFields)("Addressbase"),...(0,n.adminFilterFields)("Addressbase"),...(0,n.clientFilterFields)("Addressbase"),new n.AutocompleteField("excludeCreationUser","filter.Event.excludeCreationUser",{autocompleteService:n.UserAutocompleteService,autocompleteFilter:{clientIds:n.CURRENT_AND_SUBCLIENTS},useAnyNameHolder:!1,extractor:(0,n.numberExtractor)("excludeCreationUser"),insertor:(0,n.pathInsertor)("excludeCreationUser"),required:!1}),...(0,n.productlineFilterFields)("Addressbase"),new n.Select("businessTypes","entity.BusinessType.entityName",{optionProvider:{optProvider:n.GenericI18nDataObjectOptionProviderService,params:{entityType:"BusinessType"}},initialValue:-1,placeholder:"imxplatform.common.select-placeholder-any",extractor:(0,n.numberExtractor)("businessTypes")}),new n.Select("tourAttributes","entity.TourAttribute.entityName",{optionProvider:{optProvider:n.GenericI18nDataObjectOptionProviderService,params:{entityType:"TourAttribute"}},initialValue:-1,placeholder:"imxplatform.common.select-placeholder-any",extractor:(0,n.numberExtractor)("tourAttributes")}),new n.Select("tourCategories","entity.TourCategory.entityName",{optionProvider:{optProvider:n.GenericI18nDataObjectOptionProviderService,params:{entityType:"TourCategory"}},initialValue:-1,placeholder:"imxplatform.common.select-placeholder-any",extractor:(0,n.numberExtractor)("tourCategories")}),new n.Select("tourDifficulties","entity.TourDifficulty.entityName",{optionProvider:{optProvider:n.GenericI18nDataObjectOptionProviderService,params:{entityType:"TourDifficulty"}},initialValue:-1,placeholder:"imxplatform.common.select-placeholder-any",extractor:(0,n.numberExtractor)("tourDifficulties")}),new n.Select("tourExpositions","entity.TourExposition.entityName",{optionProvider:{optProvider:n.GenericI18nDataObjectOptionProviderService,params:{entityType:"TourExposition"}},initialValue:-1,placeholder:"imxplatform.common.select-placeholder-any",extractor:(0,n.numberExtractor)("tourExpositions")}),new n.Select("tourMonths","entity.TourMonth.entityName",{optionProvider:{optProvider:n.GenericI18nDataObjectOptionProviderService,params:{entityType:"TourMonth"}},initialValue:-1,placeholder:"imxplatform.common.select-placeholder-any",extractor:(0,n.numberExtractor)("tourMonths")}),new n.Select("tourTrackTypes","entity.TourTrackType.entityName",{optionProvider:{optProvider:n.GenericI18nDataObjectOptionProviderService,params:{entityType:"TourTrackType"}},initialValue:-1,placeholder:"imxplatform.common.select-placeholder-any",extractor:(0,n.numberExtractor)("tourTrackTypes")}),new n.AnyField("certificates","",{required:!1,extractor:(0,n.pathExtractor)("certificates"),insertor:(0,n.pathInsertor)("certificates")}),...(0,n.qualityFilterFields)("Addressbase"),new n.TripleRadioButton("openingHoursAvailable","filter.Addressbase.openingHoursAvailable",{required:!1}),...(0,n.contentLengthFields)(),...(0,n.memoFilterFields)(),...(0,n.openDataFilterFields)("Addressbase")]);let p=(()=>{class c extends n.AbstractCoreDataObjectFilterFormHandler{constructor(x,u,m,b,I,H){super(x,u,m,b,H,I),this.runtimeContextService=b,this.imxSecurityManagerService=I,this.formatterService=H}getEntityType(){return"Addressbase"}getSearchCriteriaType(){return"AddressbaseSearchCriteria"}static#e=this.\u0275fac=function(u){return new(u||c)(e.LFG(l),e.LFG(i,8),e.LFG(n.NgControlBuilderService),e.LFG(s.Ze),e.LFG(s.Xh),e.LFG(n.FormatterService))};static#t=this.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac})}return c})()},24933:(gt,X,a)=>{"use strict";a.d(X,{B:()=>o});var e=a(85829),n=a(21473),s=a(23291),l=a(75222),i=a(96124),t=a(21223),p=a(99879),c=a(19212);let o=(()=>{class x extends e.AbstractEntityPermissionService{constructor(m,b,I,H,O){super(m,b,I,H),this.imxSecurityManagerService=m,this.runtimeContext=b,this.configurationProvider=I,this.platformDataAccessService=H,this.dataAccessService=O}getEntityType(){return"Addressbase"}calcReadPermissionById(m){return this.dataAccessService.getAddressbaseById(m).pipe((0,l.w)(b=>this.calcReadPermission(b)))}calcReadPermission(m){return this.runtimeContext.getCurrentAndSubClients().pipe((0,i.U)(b=>Array.from(b).map(I=>I.id)),(0,i.U)(b=>!!(this.imxSecurityManagerService.hasPermission(p.i.F_ADDRESSBASE_READ_ALL)||this.imxSecurityManagerService.hasDirectPermission(p.i.F_ADDRESSBASE_READ_OWN_CLIENT)&&m.client&&b.some(I=>I===m.client.id))||!(!this.imxSecurityManagerService.hasDirectPermission(p.i.F_ADDRESSBASE_READ_OWN_USER)||!m.addressbaseUser||m.addressbaseUser.id!==this.runtimeContext.getLoginUser().id)))}calcSavePermissionById(m){return this.dataAccessService.getAddressbaseById(m).pipe((0,l.w)(b=>this.calcSavePermission(b)))}calcSavePermission(m){const b=this.runtimeContext.getCurrentAndSubClients().pipe((0,i.U)(I=>Array.from(I).map(H=>H.id)),(0,i.U)(I=>{let H=!1;return this.isDeactivatedRecord(m)||(this.imxSecurityManagerService.hasPermission(p.i.F_ADDRESSBASE_UPDATE_ALL)&&this.hasEditPermissionForAssignedProductlines(m)||this.imxSecurityManagerService.hasPermission(p.i.F_ADDRESSBASE_CREATE)&&!m.id||this.imxSecurityManagerService.hasDirectPermission(p.i.F_ADDRESSBASE_UPDATE_OWN_CLIENT)&&m.client&&I.some(O=>O===m.client.id)&&this.hasEditPermissionForAssignedProductlines(m)||this.imxSecurityManagerService.hasDirectPermission(p.i.F_ADDRESSBASE_UPDATE_OWN_USER)&&m.addressbaseUser&&m.addressbaseUser.id===this.runtimeContext.getLoginUser().id&&this.hasEditPermissionForAssignedProductlines(m))&&(H=!0),H}));if(m.importInfos&&m.importInfos.length>0){const I=this.isImmutable(m.importInfos);return(0,s.aj)([I,b]).pipe((0,i.U)(([H,O])=>!0===O&&!1===H))}return b}calcDeletePermission(m){return this.runtimeContext.getCurrentAndSubClients().pipe((0,i.U)(b=>Array.from(b).map(I=>I.id)),(0,i.U)(b=>{let I=!1;return(this.imxSecurityManagerService.hasPermission(p.i.F_ADDRESSBASE_DELETE_ALL)&&this.hasEditPermissionForAssignedProductlines(m)||this.imxSecurityManagerService.hasDirectPermission(p.i.F_ADDRESSBASE_DELETE_OWN_CLIENT)&&m.client&&b.some(H=>H===m.client.id)&&this.hasEditPermissionForAssignedProductlines(m)||this.imxSecurityManagerService.hasDirectPermission(p.i.F_ADDRESSBASE_DELETE_OWN_USER)&&m.addressbaseUser&&m.addressbaseUser.id===this.runtimeContext.getLoginUser().id&&this.hasEditPermissionForAssignedProductlines(m))&&(I=!0),I}))}hasEditPermissionForAssignedProductlines(m){if(!m.metainfos||0===m.metainfos.length)return!0;const b=this.imxSecurityManagerService.getActionsForActionPermission(e.ImxPermissions.ACTION_PERM_NAME_EDIT_ENTITY_ASSIGNED_PRODUCTLINES);return 1===b.length&&b.indexOf("*")>=0||m.metainfos.some(O=>n.Xh.isPropertyAccepted(O.productline.id.toString(),b))}static#e=this.\u0275fac=function(b){return new(b||x)(c.LFG(n.Xh),c.LFG(n.Ze),c.LFG(e.ConfigurationProvider),c.LFG(e.ImxPlatformDataAccessService),c.LFG(t.N))};static#t=this.\u0275prov=c.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"})}return x})()},1329:(gt,X,a)=>{"use strict";a.d(X,{D6:()=>B,VH:()=>I,_N:()=>G,qX:()=>m,sy:()=>b,v8:()=>H});var e=a(19212),n=a(85829),s=a(21473),l=a(49193),i=a(23291),t=a(96124),p=a(49185),c=a(62736),o=a(99879),x=a(52656),u=a(24933);const m=new e.OlP("imxtools.forms.addressbase"),b=new e.OlP("imxtools.formextensions.addressbase"),I=new e.OlP("imxtools.validator.addressbase"),H=new e.OlP("imxtools.openinghours.definition.voter");function O(){return(0,n.replaceEntityTypeInLabel)("Addressbase")}const G=new n.FormConfiguration([n.IMX_PLATFORM_FIELDS.createField("title",O()),n.IMX_PLATFORM_FIELDS.createField("subTitle",O()),n.IMX_PLATFORM_FIELDS.createField("shortDescription",O()),n.IMX_PLATFORM_FIELDS.createField("longDescription",O()),n.IMX_PLATFORM_FIELDS.createField(n.LANGUAGE_FIELD),n.IMX_PLATFORM_FIELDS.createField("types",O()),n.IMX_PLATFORM_FIELDS.createField("client",O()),n.IMX_PLATFORM_FIELDS.createField("addressbaseUser",O()),n.IMX_PLATFORM_FIELDS.createField("permaLink",O()),n.IMX_PLATFORM_FIELDS.createField("htmlHeadTitle",O()),n.IMX_PLATFORM_FIELDS.createField("searchKeywords",O()),n.IMX_PLATFORM_FIELDS.createField("htmlHeadMetaDescription",O()),n.IMX_PLATFORM_FIELDS.createField("canonicalUrl",O()),n.IMX_PLATFORM_FIELDS.createField("bookingLink",O()),n.IMX_PLATFORM_FIELDS.createField("bookingLinkText",O()),n.IMX_PLATFORM_FIELDS.createField("tags",O()),x.dR.createField("paymentOptions",O()),x.dR.createField("inputFields",(0,n.replaceEntityTypeInLabel)("AddressbaseInputField")),x.dR.createField("addInputField"),n.IMX_PLATFORM_FIELDS.createField("attributeDefinitions"),x.dR.createField("contactAddressbases",O()),...(0,n.contactDataFields)("contact1","entity.Addressbase.contact1"),...(0,n.contactDataFields)("contact2","entity.Addressbase.contact2"),n.IMX_PLATFORM_FIELDS.createField("socialMedia",O()),n.IMX_PLATFORM_FIELDS.createField("addSocialMediaField",O()),...(0,n.geoInfoFields)(),n.IMX_PLATFORM_FIELDS.createField("location",O()),n.IMX_PLATFORM_FIELDS.createField("regions",O()),n.IMX_PLATFORM_FIELDS.createField("regions_adv",O()),x.dR.createField("distances",O()),x.dR.createField("locations",O()),x.dR.createField("addDistanceField",O()),n.IMX_PLATFORM_FIELDS.createField("author",O()),n.IMX_PLATFORM_FIELDS.createField("mediaLicense",O()),n.IMX_PLATFORM_FIELDS.createField("attributes",O()),new n.AnyField("selectOpeningHoursProductline","imxtools.addressbase.edit.panels.opening-hours.sub-header",{insertor:(0,n.noneInsertor)(),initialValue:-1,renderLabel:!0}),new n.AnyField("openingHoursPermissionField","",{permissionId:"openingHours",insertor:(0,n.noneInsertor)()}),new n.ArrayField("openingHoursInformations",!1,[new n.AnyField("productline","",{extractor:(0,n.pathExtractor)("productline.id"),insertor:(0,n.pathInsertor)("productline.id")}),...(0,x.zI)("openingHoursInformation.")],{permissionId:"openingHoursInformations.openingHoursInformation",insertor:function P(ae){return(J,q)=>{J&&J instanceof Array&&(q[ae]=J.some(K=>!(!K.openingHoursInformation||!(K.openingHoursInformation.openingHours&&(0,n.isDefinedI18n)(K.openingHoursInformation.openingHours)||K.openingHoursInformation.descriptionClosedDays&&(0,n.isDefinedI18n)(K.openingHoursInformation.descriptionClosedDays)||K.openingHoursInformation.openingHourDefinitions&&K.openingHoursInformation.openingHourDefinitions.length>0||K.openingHoursInformation.closedHourDefinitions&&K.openingHoursInformation.closedHourDefinitions.length>0)&&null==K.openingHoursInformation.temporarilyClosed&&null==K.openingHoursInformation.permanentlyClosed&&null==K.openingHoursInformation.noOpeningHours&&null==K.openingHoursInformation.permanentlyOpen&&null==K.openingHoursInformation.openOnRequest))?J:[])}}("openingHoursInformations")}),new n.I18nMultiTextarea("additionalInfo","entity.Addressbase.additionalInfo"),n.IMX_PLATFORM_FIELDS.createField("entityState",O()),x.dR.createField("appearances"),x.dR.createField("pendingAppearances"),x.dR.createField("refusedAppearances"),n.IMX_PLATFORM_FIELDS.createField("media",(0,n.replaceEntityTypeInLabel)("AddressbaseImage")).addChildField(new n.PicklistSelect("productlines","",{optionProvider:n.AssignableProductlinesWithPortalContextOptionProviderService,optionProviderForVisibles:n.ProductlinesWithPortalContextOptionProviderService,extractor:(0,n.arrayValueExtractor)("productlines","id"),insertor:(0,n.arrayValueInsertor)("productlines","id"),rowLayout:!0})),n.IMX_PLATFORM_FIELDS.createField("mediaChangedFromOutside"),n.IMX_PLATFORM_FIELDS.createField("metainfos"),n.IMX_PLATFORM_FIELDS.createField("productlineIds"),new n.AnyField("offerIds","",{extractor:(0,n.arrayValueExtractor)("offers","id"),insertor:(0,n.arrayValueInsertor)("offers","id")}),n.IMX_PLATFORM_FIELDS.createField("contentScore",O()),n.IMX_PLATFORM_FIELDS.createField("relevanceScore",O()),new n.ReadOnly("reliabilityClassification","entity.Client.reliabilityClassification",{extractor:(0,n.pathExtractor)("client.reliabilityClassification.name"),permissionId:"client.reliabilityClassification"}),...(0,n.contactListsFields)(),n.IMX_PLATFORM_FIELDS.createField("lockedImportProperties")]);let B=(()=>{class ae extends n.AbstractCoreDataObjectFormHandler{constructor(q,j,Y,K,ne,ee,$,ue,ge,Ke){super(q,[ue.getModulesFormExtension("Addressbase"),...j||[]],K,ne,ee,$,Ke,Y,ge),this.moduleFormConfigurationService=ue}getEntityType(){return"Addressbase"}isContactAddressbaseEnabled(){return this.configurationProvider.getBooleanFromSnapshot(c.s.IMXTOOLS_CONTACT_ADDRESSBASE_ENABLED,!1)}hasAddressbaseAssignUserPermission(){return this.imxSecurityManagerService.hasPermission(o.i.F_ADDRESSBASE_ASSIGN_USER)}hasAddOfferPermission(){return this.imxSecurityManagerService.hasPermission(o.i.F_OFFER_CREATE)}hasEditOfferPermission(q){if(this.imxSecurityManagerService.hasPermission(o.i.F_OFFER_UPDATE_ALL))return(0,l.of)(!0);const j=this.runtimeContext.getCurrentAndSubClients().pipe((0,t.U)(Y=>Array.from(Y).map(K=>K.id)));return(0,i.aj)([this.baseObject$,j]).pipe((0,t.U)(([Y,K])=>{let ne=!1;return(this.imxSecurityManagerService.hasDirectPermission(o.i.F_OFFER_UPDATE_OWN_CLIENT)&&K.some(ee=>ee===q.client.id)||this.imxSecurityManagerService.hasDirectPermission(o.i.F_OFFER_UPDATE_OWN_USER)&&Y.addressbaseUser&&Y.addressbaseUser.id===this.runtimeContext.getLoginUser().id)&&(ne=!0),this.logger.debug("hasEditOfferPermission "+q.id+"/"+ne),ne}),(0,p.d)())}hasDeleteOfferPermission(q){if(this.imxSecurityManagerService.hasPermission(o.i.F_OFFER_DELETE_ALL))return(0,l.of)(this.hasProductlineEditPermission());const j=this.runtimeContext.getCurrentAndSubClients().pipe((0,t.U)(Y=>Array.from(Y).map(K=>K.id)));return(0,i.aj)([this.baseObject$,j]).pipe((0,t.U)(([Y,K])=>{let ne=!1;return(this.imxSecurityManagerService.hasDirectPermission(o.i.F_OFFER_DELETE_OWN_CLIENT)&&K.some(ee=>ee===q.client.id)||this.imxSecurityManagerService.hasDirectPermission(o.i.F_OFFER_DELETE_OWN_USER)&&Y.addressbaseUser&&Y.addressbaseUser.id===this.runtimeContext.getLoginUser().id)&&(ne=!0),this.logger.debug("hasDeleteOfferPermission "+q.id+"/"+ne),ne&&this.hasProductlineEditPermission()}))}hasAnyOfferPermission(){return this.imxSecurityManagerService.hasAnyPermission([o.i.F_OFFER_ALL,o.i.F_OFFER_READ_ALL,o.i.F_OFFER_READ_OWN_CLIENT,o.i.F_OFFER_READ_OWN_USER,o.i.F_OFFER_CREATE,o.i.F_OFFER_UPDATE_ALL,o.i.F_OFFER_UPDATE_OWN_CLIENT,o.i.F_OFFER_UPDATE_OWN_USER,o.i.F_OFFER_DELETE_ALL,o.i.F_OFFER_DELETE_OWN_CLIENT,o.i.F_OFFER_DELETE_OWN_USER])}hasProductlineEditPermission(){return!0}static#e=this.\u0275fac=function(j){return new(j||ae)(e.LFG(m),e.LFG(b,8),e.LFG(I,8),e.LFG(n.NgControlBuilderService),e.LFG(s.Xh),e.LFG(s.Ze),e.LFG(n.FormatterService),e.LFG(n.ModuleFormConfigurationService),e.LFG(n.ConfigurationProvider),e.LFG(u.B))};static#t=this.\u0275prov=e.Yz7({token:ae,factory:ae.\u0275fac})}return ae})()},21893:(gt,X,a)=>{"use strict";a.d(X,{IA:()=>c,fG:()=>p,wc:()=>i});var e=a(19212),n=a(85829),s=a(21473),l=a(20623);const i=new e.OlP("imxplatform.filterforms.announcement"),t=new e.OlP("imxplatform.filterformextensions.announcement"),p=new n.FormConfiguration([...(0,n.mainFilterFields)("Announcement"),new n.AutocompleteField("addressPoiId","filter.Announcement.addressPoiId",{autocompleteService:n.AddressPoiAutocompleteService,useAnyNameHolder:!1,extractor:(0,n.numberExtractor)("addressPoiId"),insertor:(0,n.pathInsertor)("addressPoiId"),required:!1}),new n.DateField("validityTime","filter.Announcement.validityTime",{quickaccess:"today"}),new n.Select("type","filter.Announcement.type",{optionProvider:l.f,placeholder:"imxplatform.announcement.filter.type-placeholder",extractor:(0,n.numberExtractor)("type"),initialValue:-1}),...(0,n.clientFilterFields)("Announcement"),new n.AnyField("fulltext","filter.Announcement.fulltext",{required:!1}),new n.AnyField("fulltextSearchOption","filter.Announcement.fulltextSearchOption",{required:!1,initialValue:n.FulltextSearchOption.ANDSEARCH}),new n.AnyField("restrictTitle","filter.Announcement.restrictTitle",{required:!1,initialValue:!0,extractor:(0,n.booleanExtractor)("restrictTitle")}),new n.AnyField("restrictDescription","filter.Announcement.restrictDescription",{required:!1,extractor:(0,n.booleanExtractor)("restrictDescription")}),new n.AnyField("exactOption","filter.Announcement.exactOption",{required:!1}),new n.AnyField("andOption","filter.Announcement.andOption",{required:!1}),new n.AnyField("orOption","filter.Announcement.orOption",{required:!1}),new n.AnyField("restrict","filter.Announcement.restrict",{required:!1}),new n.Checkbox("validOnly","filter.Announcement.validOnly",{required:!1}),new n.Checkbox("invalidOnly","filter.Announcement.invalidOnly",{required:!1}),...(0,n.geoFilterFields)("Announcement"),...(0,n.productlineFilterFields)("Addressbase"),...(0,n.adminFilterFields)("Announcement"),...(0,n.memoFilterFields)()]);let c=(()=>{class o extends n.AbstractCoreDataObjectFilterFormHandler{constructor(u,m,b,I,H,O){super(u,m,b,I,H,O),this.runtimeContextService=I,this.formatterService=H,this.securityManagerService=O}getEntityType(){return"Announcement"}getSearchCriteriaType(){return"AnnouncementSearchCriteria"}static#e=this.\u0275fac=function(m){return new(m||o)(e.LFG(i),e.LFG(t,8),e.LFG(n.NgControlBuilderService),e.LFG(s.Ze),e.LFG(n.FormatterService),e.LFG(s.Xh))};static#t=this.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})()},81538:(gt,X,a)=>{"use strict";a.d(X,{Bq:()=>B,gK:()=>P,DS:()=>I});var e=a(19212),n=a(56223),s=a(85829),l=a(21473),i=a(49193),t=a(23291),p=a(75222),c=a(96124),o=a(21223),x=a(24933);let m=(()=>{class ae extends s.AbstractEntityPermissionService{constructor(q,j,Y,K,ne,ee){super(q,j,Y,K),this.imxSecurityManagerService=q,this.runtimeContext=j,this.configurationProvider=Y,this.platformDataAccessService=K,this.dataAccessService=ne,this.addressbaseEntityPermissionService=ee}getEntityType(){return"Announcement"}calcReadPermissionById(q){return this.dataAccessService.getAnnouncementById(q).pipe((0,p.w)(j=>this.calcReadPermission(j)))}calcReadPermission(q){const j=this.addressbaseEntityPermissionService.calcReadPermission(q.addressPoi),Y=this.runtimeContext.getCurrentAndSubClients().pipe((0,c.U)(K=>Array.from(K).map(ne=>ne.id)),(0,c.U)(K=>!(q.client&&!K.some(ne=>ne===q.client.id))));return(0,t.aj)([j,Y]).pipe((0,c.U)(([K,ne])=>!!this.imxSecurityManagerService.hasPermission(s.ImxPermissions.F_ANNOUNCEMENT_READ)&&(!1!==K||ne)))}calcSavePermissionById(q){return this.dataAccessService.getAnnouncementById(q).pipe((0,p.w)(j=>this.calcSavePermission(j)))}calcSavePermission(q){const j=this.runtimeContext.getCurrentAndSubClients().pipe((0,c.U)(K=>Array.from(K).map(ne=>ne.id)),(0,c.U)(K=>{let ne=!1;return this.imxSecurityManagerService.hasPermission(s.ImxPermissions.F_ANNOUNCEMENT_UPDATE)&&(ne=!0),q.client&&!K.some(ee=>ee===q.client.id)&&(ne=!1),ne})),Y=this.calcReadPermission(q);return(0,t.aj)([Y,j]).pipe((0,c.U)(([K,ne])=>!1!==ne&&K))}static#e=this.\u0275fac=function(j){return new(j||ae)(e.LFG(l.Xh),e.LFG(l.Ze),e.LFG(s.ConfigurationProvider),e.LFG(s.ImxPlatformDataAccessService),e.LFG(o.N),e.LFG(x.B))};static#t=this.\u0275prov=e.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"})}return ae})();var b=a(20623);const I=new e.OlP("imxplatform.forms.announcement"),H=new e.OlP("imxplatform.formextensions.announcement"),P=new s.FormConfiguration([new s.Select("type","entity.Announcement.type",{required:!0,optionProvider:b.f,extractor:(0,s.pathExtractor)("type.id"),insertor:(0,s.pathInsertor)("type.id"),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-demand"}),s.IMX_PLATFORM_FIELDS.createField("client",function O(){return(0,s.replaceEntityTypeInLabel)("Announcement")}()),new s.I18nMultiInput("title","entity.ExtCoreDataObject.title",{extendedValidators:n.kI.maxLength(255),extendedI18nValidators:s.i18nSomeValidator}),new s.I18nMultiRichtext("description","entity.Announcement.description"),new s.AnyField("validityTime","entity.Announcement.validityTime",{required:!0,initialValue:function G(ae){const J=new Date;return J.setDate(J.getDate()+ae),J.setHours(23,59,0,0),J}(0),extractor:(0,s.dateExtractor)((0,s.pathExtractor)("validityTime")),insertor:(0,s.timeStampInsertor)((0,s.pathInsertor)("validityTime"))}),new s.AnyField("addressPoiId","entity.Announcement.addressPoi",{required:!0,extractor:(0,s.pathExtractor)("addressPoi.id"),insertor:(0,s.pathInsertor)("addressPoi.id"),permissionId:"addressPoi"}),(0,s.lastOccupancyField)(),(0,s.forecastField)(),(0,s.actualOccupancyField)(),new s.AnyField("sendPushAnnouncement","entity.Announcement.sendPushAnnouncement",{})]);let B=(()=>{class ae extends s.AbstractCoreDataObjectFormHandler{constructor(q,j,Y,K,ne,ee,$,ue){super(q,j,Y,K,ee,ne,$,void 0,ue),this.imxSecurityManagerService=K,this.formatterService=ne}getEntityType(){return"Announcement"}isOwnedEntity(){return(0,i.of)(!0)}static#e=this.\u0275fac=function(j){return new(j||ae)(e.LFG(I),e.LFG(H,8),e.LFG(s.NgControlBuilderService),e.LFG(l.Xh),e.LFG(s.FormatterService),e.LFG(l.Ze),e.LFG(m),e.LFG(s.ConfigurationProvider))};static#t=this.\u0275prov=e.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"})}return ae})()},52656:(gt,X,a)=>{"use strict";a.d(X,{Pf:()=>p,dR:()=>i,zI:()=>c});var e=a(85829),n=a(50629),s=a(13831),l=a(50225);const i=(new e.FieldDefinitions).addCreatorFn("paymentOptions",()=>new e.CheckboxSelect("paymentOptions","entity.%entityType%.paymentOptions",{optionProvider:l.F,extractor:(0,e.arrayValueExtractor)("paymentOptions","id"),insertor:(0,e.arrayValueInsertor)("paymentOptions","id"),renderLabel:!1,rowLayout:!0})).addCreatorFn("inputFields",()=>new e.ArrayField("inputFields",!1,[new e.Select("inputFieldType","entity.%entityType%.type",{required:!0,optionProvider:e.InputFieldTypeOptionProviderService,extractor:(0,e.pathExtractor)("inputFieldType.id"),insertor:(0,e.pathInsertor)("inputFieldType.id",!0),renderValueAsLabel:!0}),new e.AnyField("productline","entity.%entityType%.productline",{placeholder:"imxplatform.common.select-placeholder-no-selection",extractor:(0,e.pathExtractor)("productline.id"),insertor:(0,e.pathInsertor)("productline.id",!0),initialValue:-1}),new e.I18nMultiInput("inputFieldValue","entity.%entityType%.value",{extractor:(0,e.pathExtractor)("value"),insertor:(0,e.pathInsertor)("value")}),new e.Input("number","sortingValue","entity.%entityType%.sortingValue",{required:!0,initialValue:-1})],{renderLabel:!1})).addCreatorFn("addInputField",()=>new e.Select("addInputField","",{optionProvider:e.InputFieldTypeOptionProviderService,placeholder:"imxplatform.common.select-placeholder-add",initialValue:-1,renderLabel:!1,permissionId:"inputFields",insertor:(0,e.noneInsertor)()})).addCreatorFn("contactAddressbases",()=>new e.ArrayField("contactAddressbases",!1,[new e.AnyField("contactAddressbase","",{extractor:(0,e.pathExtractor)("contactAddressbase"),insertor:(0,e.pathInsertor)("contactAddressbase")}),new e.Select("contextProductline","entity.AddressbaseContact.contextProductline",{placeholder:"imxplatform.common.select-placeholder-no-selection",optionProvider:e.ProductlinesWithPortalContextOptionProviderService,extractor:(0,e.pathExtractor)("contextProductline.id"),insertor:(0,e.pathInsertor)("contextProductline.id",!0),initialValue:-1}),new e.Select("purpose","entity.AddressbaseContact.purpose",{extractor:(0,e.pathExtractor)("purpose.id"),insertor:(0,e.pathInsertor)("purpose.id",!0),initialValue:-1}),new e.Input("int","sortingValue","entity.AddressbaseContact.sortingValue"),new e.I18nMultiRichtext("description","entity.AddressbaseContact.description")],{renderLabel:!1})).addCreatorFn("locations",()=>new e.ArrayField("locations",!1,[new e.I18nMultiInput("i18nName","entity.LocationDefinition.entityName",{extractor:(0,e.pathExtractor)("locationDefinition.i18nName"),insertor:(0,e.pathInsertor)("locationDefinition.i18nName")}),new e.AnyField("locationDefinition","Distanz-Definition",{extractor:(0,e.pathExtractor)("locationDefinition.id"),insertor:(0,e.pathInsertor)("locationDefinition.id")}),new e.Input("text","locationInfo","entity.AddressbaseContact.sortingValue")],{renderLabel:!1})).addCreatorFn("distances",()=>new e.ArrayField("distances",!1,[new e.AnyField("distanceDefinition","Distanz-Definition",{extractor:(0,e.pathExtractor)("distanceDefinition"),insertor:(0,e.pathInsertor)("distanceDefinition")}),new e.AnyField("distanceDefinitionGroup","Distanz-Gruppe",{extractor:(0,e.pathExtractor)("distanceDefinition.group.i18nName"),insertor:(0,e.noneInsertor)()}),new e.Input("number","distance","Distanz (km) ")],{renderLabel:!1})).addCreatorFn("addDistanceField",()=>new e.Select("addDistanceField","",{optionProvider:s.G,placeholder:"imxplatform.common.select-placeholder-add",renderLabel:!1,initialValue:-1,insertor:(0,e.noneInsertor)()})).addCreatorFn("appearances",()=>new e.ArrayField("appearances",!1,[...t()],{permissionId:"appearance",renderLabel:!1})).addCreatorFn("pendingAppearances",()=>new e.ArrayField("pendingAppearances",!0,[...t()],{permissionId:"appearance",renderLabel:!1})).addCreatorFn("refusedAppearances",()=>new e.ArrayField("refusedAppearances",!0,[...t()],{permissionId:"appearance",renderLabel:!1}));function t(){return[...(0,e.appearanceFields)(),new e.Select("prioLevel","entity.Appearance.prioLevel",{required:!0,optionProvider:e.PrioLevelOptionProviderService,extractor:(0,e.pathExtractor)("prioLevel.id"),insertor:(0,e.pathInsertor)("prioLevel.id",!0),initialValue:1}),new e.Select("productline","entity.Appearance.productline",{optionProvider:e.ProductlinesWithPortalContextOptionProviderService,placeholder:"imxplatform.common.select-placeholder-no-selection",extractor:(0,e.pathExtractor)("productline.id"),insertor:(0,e.pathInsertor)("productline.id",!0),initialValue:-1})]}function p(){const m=new Date;return m.setDate(m.getDate()+7),m}function c(m="",b=!1){return[o(m,b),new e.ArrayField("openingHourDefinitions",!1,u("OpeningHoursDefinition"),{extractor:(0,e.pathExtractor)(m+"openingHourDefinitions"),insertor:(0,e.pathInsertor)(m+"openingHourDefinitions")}),x(m,b),new e.ArrayField("closedHourDefinitions",!1,u("ClosedHoursDefinition"),{extractor:(0,e.pathExtractor)(m+"closedHourDefinitions"),insertor:(0,e.pathInsertor)(m+"closedHourDefinitions")}),new e.Checkbox("temporarilyClosed","entity.OpeningHoursInformation.temporarilyClosed",{extractor:(0,e.pathExtractor)(m+"temporarilyClosed"),insertor:(0,e.pathInsertor)(m+"temporarilyClosed")}),new e.Checkbox("permanentlyClosed","entity.OpeningHoursInformation.permanentlyClosed",{extractor:(0,e.pathExtractor)(m+"permanentlyClosed"),insertor:(0,e.pathInsertor)(m+"permanentlyClosed")}),new e.Checkbox("noOpeningHours","entity.OpeningHoursInformation.noOpeningHours",{extractor:(0,e.pathExtractor)(m+"noOpeningHours"),insertor:(0,e.pathInsertor)(m+"noOpeningHours"),hint:"imxtools.addressbase.edit.panels.opening-hours.noOpeningHours-hint"}),new e.Checkbox("permanentlyOpen","entity.OpeningHoursInformation.permanentlyOpen",{extractor:(0,e.pathExtractor)(m+"permanentlyOpen"),insertor:(0,e.pathInsertor)(m+"permanentlyOpen"),hint:"imxtools.addressbase.edit.panels.opening-hours.permanentlyOpen-hint"}),new e.Checkbox("openOnRequest","entity.OpeningHoursInformation.openOnRequest",{extractor:(0,e.pathExtractor)(m+"openOnRequest"),insertor:(0,e.pathInsertor)(m+"openOnRequest")})]}function o(m="",b=!1){return b?new e.I18nMultiTextarea("openingHours","entity.OpeningHoursInformation.descriptionOpeningHours",{hint:"imxtools.addressbase.edit.panels.opening-hours.descriptionOpeningHours-hint",extractor:(0,e.pathExtractor)(m+"openingHours"),insertor:(0,e.pathInsertor)(m+"openingHours")}):new e.I18nMultiRichtext("openingHours","entity.OpeningHoursInformation.descriptionOpeningHours",{hint:"imxtools.addressbase.edit.panels.opening-hours.descriptionOpeningHours-hint",extractor:(0,e.pathExtractor)(m+"openingHours"),insertor:(0,e.pathInsertor)(m+"openingHours")})}function x(m="",b=!1){return b?new e.I18nMultiTextarea("descriptionClosedDays","entity.OpeningHoursInformation.descriptionClosedDays",{hint:"imxtools.addressbase.edit.panels.opening-hours.descriptionClosedDays-hint",extractor:(0,e.pathExtractor)(m+"descriptionClosedDays"),insertor:(0,e.pathInsertor)(m+"descriptionClosedDays")}):new e.I18nMultiRichtext("descriptionClosedDays","entity.OpeningHoursInformation.descriptionClosedDays",{hint:"imxtools.addressbase.edit.panels.opening-hours.descriptionClosedDays-hint",extractor:(0,e.pathExtractor)(m+"descriptionClosedDays"),insertor:(0,e.pathInsertor)(m+"descriptionClosedDays")})}function u(m){return[new e.AnyField("yearly","entity."+m+".yearly"),new e.I18nMultiInput("description","entity."+m+".description"),new e.I18nMultiTextarea("additionalInformation","entity."+m+".additionalInformation"),new e.DateField("dateFrom","entity."+m+".dateFrom",{required:!1}),new e.DateField("dateTo","entity."+m+".dateTo",{required:!1}),new e.ArrayField("timeIntervals",!1,[new e.Select("day","entity.TimeIntervalDefinition.day",{optionProvider:n.q,extractor:(0,e.pathExtractor)("day.id"),insertor:(0,e.pathInsertor)("day.id"),placeholder:"imxplatform.common.select-placeholder-demand",initialValue:-1,required:!0}),new e.Input("time","timeFrom","entity.TimeIntervalDefinition.timeFrom"),new e.Input("time","timeTo","entity.TimeIntervalDefinition.timeTo")])]}},96135:(gt,X,a)=>{"use strict";a.d(X,{Re:()=>Hn,lt:()=>li,x6:()=>oo,l0:()=>_o,$C:()=>si,A7:()=>mo,fK:()=>vn,iN:()=>eo,Yu:()=>Wn});var e=a(56223),n=a(85829),s=a(66550),l=a(52656),i=a(21473),t=a(96124),p=a(19212),c=a(71365);let o=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("AccommodationLanguage").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})();var x=a(49193);let u=(()=>{class In extends n.OptionProvider{constructor(){super()}getOptions(qi,wi){return(0,x.of)([{label:"imxtools.metainfo.modules_acc.category.stars.one",value:1},{label:"imxtools.metainfo.modules_acc.category.stars.two",value:2},{label:"imxtools.metainfo.modules_acc.category.stars.three",value:3},{label:"imxtools.metainfo.modules_acc.category.stars.four",value:4},{label:"imxtools.metainfo.modules_acc.category.stars.five",value:5}])}static#e=this.\u0275fac=function(wi){return new(wi||In)};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),m=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("AccommodationType").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),b=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("ApartmentEndowment").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),I=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("BeachAdditionalInfoDefinition").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),H=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("BeachBathEndowment").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),O=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("BeachCharacter").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),P=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("BeachChildrenOffer").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),G=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("BeachEndowment").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),B=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("BeachService").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),ae=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("BeachSportOffer").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),J=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("BeachType").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})();var q=a(15343),j=a(31564);let Y=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("CampingType").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),K=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("CenterGastronomyAttribute").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),ne=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("CenterEndowment").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),ee=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("CenterEventType").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})();var $=a(42894);let ue=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("CenterTopic").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),ge=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("EventlocationGastronomyAttribute").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})();var Ke=a(71467);let at=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("CityTopic").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})();var Le=a(28088);let R=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("CnvHotelEndowment").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),Te=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("CnvHotelEventType").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),me=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("CnvHotelGeneralEndowment").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),Se=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("CnvHotelRoomEndowment").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),Ue=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("CnvHotelSportEndowment").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),We=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("EventlocationEndowment").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),et=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("EventlocationEventType").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),Et=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("EventlocationTopic").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),lt=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("Gastro2Ambience").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})();var Vt=a(99264);let r=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("Gastro2CookingStyle").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),Z=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("Gastro2CuisineCharacteristic").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})();var Pt=a(52284),Oe=a(95471);let ye=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("Gastro2EventSerie").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),ve=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("Gastro2GuestGroup").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),ft=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("Gastro2OperationalFeature").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),Dt=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("Gastro2Organization").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),Rn=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("Gastro2PaymentOption").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),ti=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("Gastro2PriceSegment").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),Xt=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("Gastro2Product").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),Je=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("Gastro2ServiceType").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),dt=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("CuisineType").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),Ie=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("GastronomyAttribute").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),ot=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("GastronomyBusinessType").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),ct=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("HostelEndowment").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),tn=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("HostelRoomType").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),yi=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("HostelType").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),ni=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("IbeDeskline3ArtAndCultureInfrastructureTopic1").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),sn=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("IbeDeskline3ArtAndCultureInfrastructureTopic2").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),bn=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("IbeDeskline3FoodAndBeverageInfrastructureTopic1").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),vt=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("IbeDeskline3FoodAndBeverageInfrastructureTopic2").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})();var nn=a(50341);let rn=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("IbeDeskline3InfrastructureTopic1").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),ii=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("IbeDeskline3InfrastructureTopic2").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),Oo=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("IbeDeskline3MobilityAndTrafficInfrastructureTopic1").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),no=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("IbeDeskline3MobilityAndTrafficInfrastructureTopic2").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),Li=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("IbeDeskline3PoiInfrastructureTopic1").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),ji=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("IbeDeskline3PoiInfrastructureTopic2").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),Ii=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("IbeDeskline3RouteAndTourInfrastructureTopic1").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),_i=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("IbeDeskline3RouteAndTourInfrastructureTopic2").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),En=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("IbeDeskline3SportAndLeisureInfrastructureTopic1").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),co=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("IbeDeskline3SportAndLeisureInfrastructureTopic2").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),yn=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("IbeDeskline3WellnessAndHealthInfrastructureTopic1").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),ln=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("IbeDeskline3WellnessAndHealthInfrastructureTopic2").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),He=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("LodgeRegion").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),rt=(()=>{class In extends n.OptionProvider{constructor(qi,wi){super(),this.entitiesMgrService=qi,this.translateService=wi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("LodgeType").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id})).sort((xi,ki)=>(0,n.compareI18n)(xi.label,ki.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB),p.LFG(c.sK))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})();var $e=a(50225);let Ve=(()=>{class In extends n.AbstractI18nDataObjectTreeOptionProviderService{constructor(qi){super(),this.entitiesMgrService=qi}getRootNodes(){return this.entitiesMgrService.getAllEntitiesOfType("RegiondoCategory").pipe((0,t.U)(qi=>qi.items.filter(wi=>null==wi.parent)))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})(),Ce=(()=>{class In extends n.OptionProvider{constructor(qi){super(),this.entitiesMgrService=qi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("RfaPartner").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id?xi.id:-1}))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})();var tt=a(66676);let ht=(()=>{class In extends n.OptionProvider{constructor(qi){super(),this.entitiesMgrService=qi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("TourCondition").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id}))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})();var Qt=a(67493),Un=a(14805),Yt=a(12624);let Fn=(()=>{class In extends n.OptionProvider{constructor(qi){super(),this.entitiesMgrService=qi}getOptions(qi,wi){return this.entitiesMgrService.getAllEntitiesOfType("PriceDefinitionAttribute").pipe((0,t.U)(zo=>zo.items.map(xi=>({label:xi.i18nName,value:xi.id?xi.id:-1}))))}static#e=this.\u0275fac=function(wi){return new(wi||In)(p.LFG(i.qB))};static#t=this.\u0275prov=p.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"})}return In})();var yt=a(47928),Bt=a(27553);const li=100001e3,si=100012e3,oo=100003050,_o=100018e3,Hn=(new n.FieldDefinitions).addCreatorFn("certificateClassifications",()=>vn()).addCreatorFn("addCertificate",()=>mo()).addCreatorFn("modules_acc",In=>new n.ModuleField("modules_acc",[new n.Checkbox("superior","imxtools.metainfo.modules_acc.category.superior",{extractor:(0,n.pathExtractor)("category.superior"),insertor:(0,n.pathInsertor)("category.superior"),permissionId:"category.superior"}),new n.Select("categoryDehoga","imxtools.metainfo.modules_acc.category.dehoga",{placeholder:"imxplatform.common.select-placeholder-demand",initialValue:-1,optionProvider:u,extractor:(0,n.pathExtractor)("category.dehoga"),insertor:(0,n.pathInsertor)("category.dehoga",!0),permissionId:"category.categoryDehoga"}),new n.Select("categoryDehogaGuestHouse","imxtools.metainfo.modules_acc.category.dehogaGuestHouse",{placeholder:"imxplatform.common.select-placeholder-demand",initialValue:-1,optionProvider:u,extractor:(0,n.pathExtractor)("category.dehogaGasthof"),insertor:(0,n.pathInsertor)("category.dehogaGasthof",!0),permissionId:"category.categoryDehogaGuestHouse"}),new n.Select("categoryDtvAparmentMin","imxtools.metainfo.modules_acc.category.dtvApartmentMin",{placeholder:"imxplatform.common.select-placeholder-demand",initialValue:-1,optionProvider:u,extractor:(0,n.pathExtractor)("category.dtvFewMin"),insertor:(0,n.pathInsertor)("category.dtvFewMin",!0),permissionId:"category.categoryDtvAparmentMin"}),new n.Select("categoryDtvAparmentMax","imxtools.metainfo.modules_acc.category.dtvApartmentMax",{placeholder:"imxplatform.common.select-placeholder-demand",initialValue:-1,optionProvider:u,extractor:(0,n.pathExtractor)("category.dtvFewMax"),insertor:(0,n.pathInsertor)("category.dtvFewMax",!0),permissionId:"category.categoryDtvAparmentMax"}),new n.Select("categoryDtvPrivateRoom","imxtools.metainfo.modules_acc.category.dtvPrivateRoom",{placeholder:"imxplatform.common.select-placeholder-demand",initialValue:-1,optionProvider:u,extractor:(0,n.pathExtractor)("category.dtvPrivat"),insertor:(0,n.pathInsertor)("category.dtvPrivat",!0),permissionId:"category.categoryDtvPrivateRoom"}),new n.Select("categoryDtvCamping","imxtools.metainfo.modules_acc.category.dtvCamping",{placeholder:"imxplatform.common.select-placeholder-demand",initialValue:-1,optionProvider:u,extractor:(0,n.pathExtractor)("category.dtvCamping"),insertor:(0,n.pathInsertor)("category.dtvCamping",!0),permissionId:"category.categoryDtvCamping"}),new n.Select("categoryHrs","imxtools.metainfo.modules_acc.category.hrs",{placeholder:"imxplatform.common.select-placeholder-demand",initialValue:-1,optionProvider:u,extractor:(0,n.pathExtractor)("category.hrs"),insertor:(0,n.pathInsertor)("category.hrs",!0),permissionId:"category.categoryHrs"}),new n.CheckboxSelect("businessTypes","entity.AccommodationAddressbase.businessTypes",{rowLayout:!0,optionProvider:{optProvider:n.GenericI18nDataObjectOptionProviderService,params:{entityType:"BusinessType"}},extractor:(0,n.arrayValueExtractor)("businessTypes","id"),insertor:(0,n.arrayValueInsertor)("businessTypes","id")}),new n.CheckboxSelect("accommodationTypes","entity.AccommodationAddressbase.accommodationTypes",{rowLayout:!0,optionProvider:m,extractor:(0,n.arrayValueExtractor)("accommodationTypes","id"),insertor:(0,n.arrayValueInsertor)("accommodationTypes","id")}),new n.CheckboxSelect("topics","entity.AccommodationAddressbase.topics",{rowLayout:!0,optionProvider:{optProvider:n.GenericI18nDataObjectOptionProviderService,params:{entityType:"Topic"}},extractor:(0,n.arrayValueExtractor)("topics","id"),insertor:(0,n.arrayValueInsertor)("topics","id")}),new n.Input("text","trustYouId","entity.AccommodationAddressbase.trustYouId"),new n.Input("text","surveyId","entity.AccommodationAddressbase.surveyId"),new n.Checkbox("onlineBookable","entity.AccommodationAddressbase.onlineBookable"),new n.CheckboxSelect("accommodationLanguages","entity.AccommodationAddressbase.accommodationLanguages",{optionProvider:o,extractor:(0,n.arrayValueExtractor)("accommodationLanguages","id"),insertor:(0,n.arrayValueInsertor)("accommodationLanguages","id")}),new n.AnyField("endowments","",{extractor:(0,n.arrayValueExtractor)("endowments","id"),insertor:an("endowments")}),Hn.createField("certificateClassifications"),Hn.createField("addCertificate"),n.IMX_PLATFORM_FIELDS.createField("attributeDefinitions")],{moduleClass:"AccommodationAddressbase",moduleId:li})).addCreatorFn("modules_acc_apartment",In=>new n.ModuleField("modules_acc_apartment",[new n.Input("int","overallUnitsApartments","entity.ApartmentAddressbase.overallUnitsApartments"),new n.Input("int","overallUnitsHouses","entity.ApartmentAddressbase.overallUnitsHouses"),new n.Input("int","overallUnitsApartments2","entity.ApartmentAddressbase.overallUnitsApartments2"),new n.ArrayField("apartmentDetails",!1,[new n.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:n.i18nSomeValidatorButEmptyAllowed}),new n.Input("int","numUnitsHouses","entity.ApartmentAddressbaseDetail.numUnitsHouses"),new n.Input("int","numUnitsApartments","entity.ApartmentAddressbaseDetail.numUnitsApartments"),new n.Input("int","numUnitsApartments2","entity.ApartmentAddressbaseDetail.numUnitsApartments2"),new n.Input("int","numPersonsFrom","entity.ApartmentAddressbaseDetail.numPersons"),new n.Input("int","numPersonsTo","entity.ApartmentAddressbaseDetail.to"),new n.Input("int","dtvFewFrom","entity.ApartmentAddressbaseDetail.dtvFew"),new n.Input("int","dtvFewTo","entity.ApartmentAddressbaseDetail.to"),new n.Input("int","areaSizeFrom","entity.ApartmentAddressbaseDetail.areaSize"),new n.Input("int","areaSizeTo","entity.ApartmentAddressbaseDetail.to"),new n.Input("int","numLivingRoomsFrom","entity.ApartmentAddressbaseDetail.numLivingRooms"),new n.Input("int","numLivingRoomsTo","entity.ApartmentAddressbaseDetail.to"),new n.Input("int","numSleepingRoomsFrom","entity.ApartmentAddressbaseDetail.numSleepingRooms"),new n.Input("int","numSleepingRoomsTo","entity.ApartmentAddressbaseDetail.to"),new n.Input("int","numCombinedRoomsFrom","entity.ApartmentAddressbaseDetail.numCombinedRooms"),new n.Input("int","numCombinedRoomsTo","entity.ApartmentAddressbaseDetail.to"),new n.Input("int","numChildrenBedsFrom","entity.ApartmentAddressbaseDetail.numChildrenBeds"),new n.Input("int","numChildrenBedsTo","entity.ApartmentAddressbaseDetail.to"),new n.Checkbox("daily","entity.ApartmentAddressbaseDetail.daily"),new n.Checkbox("allSeason","entity.ApartmentAddressbaseDetail.allSeason"),new n.Checkbox("breakfastOnDemand","entity.ApartmentAddressbaseDetail.breakfastOnDemand"),new n.CheckboxSelect("endowments","entity.ApartmentAddressbaseDetail.endowments",{optionProvider:b,extractor:(0,n.arrayValueExtractor)("endowments","id"),insertor:(0,n.arrayValueInsertor)("endowments","id")}),new n.ArrayField("priceLists",!1,[new n.DateField("validFrom","entity.ApartmentPriceList.validFrom",{required:!0}),new n.Input("price","pricePerMonthMin","entity.ApartmentPriceList.pricePerMonthMin"),new n.Input("price","pricePerMonthMax","entity.ApartmentPriceList.pricePerMonthMax"),new n.Input("price","pricePerWeekMin","entity.ApartmentPriceList.pricePerWeekMin"),new n.Input("price","pricePerWeekMax","entity.ApartmentPriceList.pricePerWeekMax"),new n.Input("price","pricePerDayMin","entity.ApartmentPriceList.pricePerDayMin"),new n.Input("price","pricePerDayMax","entity.ApartmentPriceList.pricePerDayMax")],{renderLabel:!0,extractor:(0,n.pathExtractor)("priceLists"),insertor:(0,n.pathInsertor)("priceLists")})],{renderLabel:!0,extractor:(0,n.pathExtractor)("apartmentDetails"),insertor:(0,n.pathInsertor)("apartmentDetails",!0)})],{moduleClass:"ApartmentAddressbase",moduleId:100001100})).addCreatorFn("modules_acc_hostel",In=>new n.ModuleField("modules_acc_hostel",[new n.MultiSelect("hostelTypes","entity.HostelType.entityName",{optionProvider:yi,extractor:(0,n.arrayValueExtractor)("hostelTypes","id"),insertor:(0,n.arrayValueInsertor)("hostelTypes","id")}),new n.MultiSelect("roomTypes","entity.HostelRoomType.entityName",{optionProvider:tn,extractor:(0,n.arrayValueExtractor)("roomTypes","id"),insertor:(0,n.arrayValueInsertor)("roomTypes","id")}),new n.MultiSelect("endowments","entity.HostelEndowment.entityName",{optionProvider:ct,extractor:(0,n.arrayValueExtractor)("endowments","id"),insertor:(0,n.arrayValueInsertor)("endowments","id"),renderLabel:!1}),new n.Input("number","fromPrice","entity.HostelAddressbase.prices.fromPrice"),new n.Input("number","toPrice","entity.HostelAddressbase.prices.toPrice"),new n.Input("number","groupPrice","entity.HostelAddressbase.prices.groupPrice"),new n.Checkbox("priceOnRequest","entity.HostelAddressbase.prices.priceOnRequest")],{moduleClass:"HostelAddressbase",moduleId:100001200})).addCreatorFn("modules_acc_camping",In=>new n.ModuleField("modules_acc_camping",[new n.Input("number","fromPrice","entity.CampingAddressbase.prices.fromPrice"),new n.Input("number","toPrice","entity.CampingAddressbase.prices.toPrice"),new n.Checkbox("priceOnRequest","entity.CampingAddressbase.prices.priceOnRequest"),new n.MultiSelect("attributes","",{optionProvider:q.x,extractor:(0,n.arrayValueExtractor)("attributes","id"),insertor:(0,n.arrayValueInsertor)("attributes","id"),renderLabel:!1}),new n.MultiSelect("endowments","",{optionProvider:j.O,extractor:(0,n.arrayValueExtractor)("endowments","id"),insertor:(0,n.arrayValueInsertor)("endowments","id"),renderLabel:!1}),new n.MultiSelect("types","",{optionProvider:Y,extractor:(0,n.arrayValueExtractor)("types","id"),insertor:(0,n.arrayValueInsertor)("types","id"),renderLabel:!1}),new n.Input("int","maxCampTime","entity.CampingAddressbase.maxCampTime"),new n.Input("int","caravanSpaces","entity.CampingAddressbase.caravanSpaces"),new n.I18nMultiInput("underground","entity.CampingAddressbase.underground"),new n.Checkbox("hasElectricity","entity.CampingAddressbase.hasElectricity"),new n.I18nMultiTextarea("electricityNotes","entity.CampingAddressbase.electricityNotes"),new n.Checkbox("hasRecyclingStation","entity.CampingAddressbase.hasRecyclingStation"),new n.I18nMultiTextarea("recyclingStationNotes","entity.CampingAddressbase.recyclingStationNotes")],{moduleClass:"CampingAddressbase",moduleId:100001300})).addCreatorFn("modules_certification",In=>new n.ModuleField("modules_certification",[Hn.createField("certificateClassifications"),Hn.createField("addCertificate")],{moduleClass:"CertificationAddressbase",moduleId:100013e3})).addCreatorFn("modules_tour",In=>new n.ModuleField("modules_tour",[new n.I18nMultiRichtext("directions","entity.TourAddressbase.directions"),new n.I18nMultiRichtext("startingPointDescr","entity.TourAddressbase.startingPointDescr"),new n.I18nMultiRichtext("destination","entity.TourAddressbase.destination"),new n.I18nMultiRichtext("safetyGuidelines","entity.TourAddressbase.safetyGuidelines"),new n.I18nMultiRichtext("equipment","entity.TourAddressbase.equipment"),new n.I18nMultiRichtext("trackSignage","entity.TourAddressbase.trackSignage"),new n.ArrayField("locations",!0,[]),new n.Select("tourcondition","entity.TourCondition.entityName",{optionProvider:ht,extractor:(0,n.pathExtractor)("condition.id"),insertor:(0,n.pathInsertor)("condition.id",!0),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-no-selection"}),new n.AnyField("categories","",{extractor:(0,n.arrayValueExtractor)("categories","id"),insertor:an("categories")}),new n.AnyField("difficulties","",{extractor:(0,n.arrayValueExtractor)("difficulties","id"),insertor:an("difficulties")}),new n.CheckboxSelect("months","entity.TourMonth.entityName",{optionProvider:Un.h,extractor:(0,n.arrayValueExtractor)("months","id"),insertor:(0,n.arrayValueInsertor)("months","id"),rowLayout:!0}),new n.CheckboxSelect("months","",{optionProvider:Un.h,extractor:(0,n.arrayValueExtractor)("months","id"),insertor:(0,n.arrayValueInsertor)("months","id"),rowLayout:!0}),new n.CheckboxSelect("attributes","entity.TourAttribute.entityName",{optionProvider:tt.N,extractor:(0,n.arrayValueExtractor)("attributes","id"),insertor:(0,n.arrayValueInsertor)("attributes","id"),rowLayout:!0}),new n.CheckboxSelect("trackTypes","entity.TourTrackType.entityName",{optionProvider:Yt.A,extractor:(0,n.arrayValueExtractor)("trackTypes","id"),insertor:(0,n.arrayValueInsertor)("trackTypes","id"),rowLayout:!0}),new n.Input("duration","duration","entity.TourAddressbase.duration"),new n.Input("number","length","entity.TourAddressbase.length"),new n.Input("int","maxAltitude","entity.TourElevation.maxAltitude",{extractor:(0,n.pathExtractor)("elevation.maxAltitude"),insertor:(0,n.pathInsertor)("elevation.maxAltitude")}),new n.Input("int","minAltitude","entity.TourElevation.minAltitude",{extractor:(0,n.pathExtractor)("elevation.minAltitude"),insertor:(0,n.pathInsertor)("elevation.minAltitude")}),new n.Input("int","ascent","entity.TourElevation.ascent",{extractor:(0,n.pathExtractor)("elevation.ascent"),insertor:(0,n.pathInsertor)("elevation.ascent")}),new n.Input("int","descent","entity.TourElevation.descent",{extractor:(0,n.pathExtractor)("elevation.descent"),insertor:(0,n.pathInsertor)("elevation.descent")}),new n.Input("int","profile","entity.TourElevation.profile",{extractor:(0,n.pathExtractor)("elevation.profile"),insertor:(0,n.pathInsertor)("elevation.profile")}),new n.MultiInput("geometry","entity.TourAddressbase.geometry",{extendedValidators:e.kI.pattern("^((-?\\d+(\\.\\d+)?,){2}(-?\\d+(\\.\\d+)?)(\\s|\\;))+((-?\\d+(\\.\\d+)?,){2}(-?\\d+(\\.\\d+)?)\\s?)$")}),new n.CheckboxSelect("expositions","entity.TourExposition.entityName",{optionProvider:Qt.E,extractor:(0,n.arrayValueExtractor)("expositions","id"),insertor:(0,n.arrayValueInsertor)("expositions","id"),rowLayout:!0}),new n.Input("number","riskPotential","entity.TourAddressbase.riskPotential"),new n.Input("text","stages","entity.TourAddressbase.stages"),new n.Input("text","routeType","Routentyp (internal only)"),new n.I18nMultiRichtext("objective","entity.TourAddressbase.objective"),new n.Input("duration","durationDownhill","entity.TourAddressbase.durationDownhill"),new n.Input("int","durationDays","entity.TourAddressbase.durationDays"),new n.Input("text","routeNumber","entity.TourAddressbase.routeNumber"),new n.I18nMultiRichtext("gettingThere","entity.TourAddressbase.gettingThere"),new n.I18nMultiRichtext("parking","entity.TourAddressbase.parking"),new n.I18nMultiRichtext("publicTransit","entity.TourAddressbase.publicTransit"),new n.I18nMultiRichtext("additionalInformation","entity.TourAddressbase.additionalInformation"),new n.I18nMultiRichtext("tip","entity.TourAddressbase.tip"),new n.I18nMultiRichtext("literature","entity.TourAddressbase.literature"),new n.I18nMultiRichtext("maps","entity.TourAddressbase.maps"),new n.Input("number","condition","entity.TourRating.condition",{extractor:(0,n.pathExtractor)("rating.condition"),insertor:(0,n.pathInsertor)("rating.condition")}),new n.Input("number","difficulty","entity.TourRating.difficulty",{extractor:(0,n.pathExtractor)("rating.difficulty"),insertor:(0,n.pathInsertor)("rating.difficulty")}),new n.Input("number","landscape","entity.TourRating.landscape",{extractor:(0,n.pathExtractor)("rating.landscape"),insertor:(0,n.pathInsertor)("rating.landscape")}),new n.Input("number","qualityOfExperience","entity.TourRating.qualityOfExperience",{extractor:(0,n.pathExtractor)("rating.qualityOfExperience"),insertor:(0,n.pathInsertor)("rating.qualityOfExperience")}),new n.Input("number","communityRating","entity.TourRating.communityRating",{extractor:(0,n.pathExtractor)("rating.communityRating"),insertor:(0,n.pathInsertor)("rating.communityRating")}),new n.Input("number","communityRatingCount","entity.TourRating.communityRatingCount",{extractor:(0,n.pathExtractor)("rating.communityRatingCount"),insertor:(0,n.pathInsertor)("rating.communityRatingCount")}),new n.Input("number","qualityLevel","entity.TourRating.qualityLevel",{extractor:(0,n.pathExtractor)("rating.qualityLevel"),insertor:(0,n.pathInsertor)("rating.qualityLevel")}),new n.Input("number","technique","entity.TourRating.technique",{extractor:(0,n.pathExtractor)("rating.technique"),insertor:(0,n.pathInsertor)("rating.technique")}),n.IMX_PLATFORM_FIELDS.createField("attributeDefinitions")],{moduleClass:"TourAddressbase",moduleId:100012e3})).addCreatorFn("modules_gastronomy",In=>new n.ModuleField("modules_gastronomy",[new n.Input("number","fromPrice","entity.GastronomyAddressbase.prices.fromPrice"),new n.Input("number","toPrice","entity.GastronomyAddressbase.prices.fromPrice"),new n.CheckboxSelect("attributes","entity.GastronomyAddressbase.attributes",{optionProvider:Ie,extractor:(0,n.arrayValueExtractor)("attributes","id"),insertor:(0,n.arrayValueInsertor)("attributes","id"),rowLayout:!0,renderLabel:!1}),new n.CheckboxSelect("businessTypes","entity.GastronomyBusinessType.entityName",{optionProvider:ot,extractor:(0,n.arrayValueExtractor)("businessTypes","id"),insertor:(0,n.arrayValueInsertor)("businessTypes","id"),rowLayout:!0}),new n.Checkbox("menuAvailable","entity.GastronomyAddressbase.menuAvailable"),new n.I18nMultiRichtext("breakfastDescription","entity.GastronomyAddressbase.breakfastDescription")],{moduleClass:"GastronomyAddressbase",moduleId:100002e3})).addCreatorFn("modules_gastronomy_restaurant",In=>new n.ModuleField("modules_gastronomy_restaurant",[new n.CheckboxSelect("cuisineTypes","entity.CuisineType.entityName",{optionProvider:dt,extractor:(0,n.arrayValueExtractor)("cuisineTypes","id"),insertor:(0,n.arrayValueInsertor)("cuisineTypes","id"),rowLayout:!0,renderLabel:!1})],{moduleClass:"GastronomyRestaurantAddressbase",moduleId:100002050})).addCreatorFn("modules_gastro2",In=>new n.ModuleField("modules_gastro2",[new n.I18nMultiRichtext("openingHours","entity.Gastro2Addressbase.openingHours"),new n.Input("text","emailReservationRequests","entity.Gastro2Addressbase.emailReservationRequests"),new n.I18nMultiInput("transport","entity.Gastro2Addressbase.transport"),new n.I18nMultiInput("priceAverage","entity.Gastro2Addressbase.priceAverage"),new n.Input("number","priceAppetizerMin","entity.Gastro2Addressbase.priceAppetizerMin"),new n.Input("number","priceAppetizerMax","entity.Gastro2Addressbase.priceAppetizerMax"),new n.Input("number","priceMainCourseMin","entity.Gastro2Addressbase.priceMainCourseMin"),new n.Input("number","priceMainCourseMax","entity.Gastro2Addressbase.priceMainCourseMax"),new n.Input("number","priceDessertMin","entity.Gastro2Addressbase.priceDessertMin"),new n.Input("number","priceDessertMax","entity.Gastro2Addressbase.priceDessertMax"),new n.Input("number","priceMenuMin","entity.Gastro2Addressbase.priceMenuMin"),new n.Input("number","priceMenuMax","entity.Gastro2Addressbase.priceMenuMax"),new n.Input("text","reservationUrl","entity.Gastro2Addressbase.reservationUrl",{extendedValidators:n.httpUrlValidator}),new n.Input("text","menuUrl","entity.Gastro2Addressbase.menuUrl",{extendedValidators:n.httpUrlValidator}),new n.Select("priceSegment","entity.Gastro2Addressbase.priceSegment",{optionProvider:ti,extractor:(0,n.pathExtractor)("priceSegment.id"),insertor:(0,n.pathInsertor)("priceSegment.id",!0),placeholder:"imxplatform.common.select-placeholder-demand",initialValue:-1,required:!1}),new n.CheckboxSelect("guestGroups","entity.Gastro2Addressbase.guestGroups",{optionProvider:ve,extractor:(0,n.arrayValueExtractor)("guestGroups","id"),insertor:(0,n.arrayValueInsertor)("guestGroups","id"),rowLayout:!0}),new n.CheckboxSelect("serviceTypes","entity.Gastro2Addressbase.serviceTypes",{optionProvider:Je,extractor:(0,n.arrayValueExtractor)("serviceTypes","id"),insertor:(0,n.arrayValueInsertor)("serviceTypes","id"),rowLayout:!0}),new n.CheckboxSelect("ambience","entity.Gastro2Ambience.entityName",{optionProvider:lt,extractor:(0,n.arrayValueExtractor)("ambience","id"),insertor:(0,n.arrayValueInsertor)("ambience","id"),rowLayout:!0}),new n.CheckboxSelect("cookingStyle","entity.Gastro2CookingStyle.entityName",{optionProvider:r,extractor:(0,n.arrayValueExtractor)("cookingStyle","id"),insertor:(0,n.arrayValueInsertor)("cookingStyle","id"),rowLayout:!0}),new n.CheckboxSelect("cuisineCharacteristics","entity.Gastro2CuisineCharacteristic.entityName",{optionProvider:Z,extractor:(0,n.arrayValueExtractor)("cuisineCharacteristics","id"),insertor:(0,n.arrayValueInsertor)("cuisineCharacteristics","id"),rowLayout:!0}),new n.CheckboxSelect("endowments","entity.Gastro2Endowment.entityName",{optionProvider:Oe.k,extractor:(0,n.arrayValueExtractor)("endowments","id"),insertor:(0,n.arrayValueInsertor)("endowments","id"),rowLayout:!0}),new n.CheckboxSelect("eventSeries","entity.Gastro2EventSerie.entityName",{optionProvider:ye,extractor:(0,n.arrayValueExtractor)("eventSeries","id"),insertor:(0,n.arrayValueInsertor)("eventSeries","id"),rowLayout:!0}),new n.CheckboxSelect("operationalFeatures","entity.Gastro2OperationalFeature.entityName",{optionProvider:ft,extractor:(0,n.arrayValueExtractor)("operationalFeatures","id"),insertor:(0,n.arrayValueInsertor)("operationalFeatures","id"),rowLayout:!0}),new n.CheckboxSelect("organizations","entity.Gastro2Organization.entityName",{optionProvider:Dt,extractor:(0,n.arrayValueExtractor)("organizations","id"),insertor:(0,n.arrayValueInsertor)("organizations","id"),rowLayout:!0}),new n.CheckboxSelect("paymentOptions","entity.Gastro2PaymentOption.entityName",{optionProvider:Rn,extractor:(0,n.arrayValueExtractor)("paymentOptions","id"),insertor:(0,n.arrayValueInsertor)("paymentOptions","id"),rowLayout:!0}),new n.CheckboxSelect("products","entity.Gastro2Product.entityName",{optionProvider:Xt,extractor:(0,n.arrayValueExtractor)("products","id"),insertor:(0,n.arrayValueInsertor)("products","id"),rowLayout:!0}),new n.Input("number","seatsIndoor","entity.Gastro2Addressbase.seatsIndoor"),new n.Input("number","seatsOutdoor","entity.Gastro2Addressbase.seatsOutdoor"),new n.I18nMultiRichtext("seatsInformation","imxtools.metainfo.modules_gastro2.seatsInformation"),new n.CheckboxSelect("businessTypes","entity.Gastro2BusinessType.entityName",{optionProvider:Vt.J,extractor:(0,n.arrayValueExtractor)("businessTypes","id"),insertor:(0,n.arrayValueInsertor)("businessTypes","id"),rowLayout:!0}),new n.CheckboxSelect("cuisineTypes","entity.Gastro2CuisineType.entityName",{optionProvider:Pt.t,extractor:(0,n.arrayValueExtractor)("cuisineTypes","id"),insertor:(0,n.arrayValueInsertor)("cuisineTypes","id"),rowLayout:!0}),new n.I18nMultiInput("awards","entity.Gastro2Addressbase.awards"),new n.I18nMultiInput("starClassification","entity.Gastro2Addressbase.starClassification"),n.IMX_PLATFORM_FIELDS.createField("attributeDefinitions")],{moduleClass:"Gastro2Addressbase",moduleId:100002100})).addCreatorFn("modules_lodge",In=>new n.ModuleField("modules_lodge",[new n.Input("int","altitude","entity.LodgeAddressbase.altitude"),new n.Input("text","pathInformation","entity.LodgeAddressbase.pathInformation"),new n.Select("region","entity.LodgeRegion.entityName",{optionProvider:He,extractor:(0,n.pathExtractor)("region.id"),insertor:(0,n.pathInsertor)("region.id",!0),placeholder:"imxplatform.common.select-placeholder-demand",initialValue:-1,required:!1}),new n.CheckboxSelect("types","entity.LodgeAddressbase.types",{optionProvider:rt,extractor:(0,n.arrayValueExtractor)("types","id"),insertor:(0,n.arrayValueInsertor)("types","id"),rowLayout:!0}),new n.I18nMultiTextarea("surroundingInformation","entity.LodgeAddressbase.surroundingInformation"),new n.CheckboxSelect("suitabilities","entity.LodgeAddressbase.suitabilities",{rowLayout:!0,optionProvider:{optProvider:n.GenericI18nDataObjectOptionProviderService,params:{entityType:"LodgeSuitability"}},extractor:(0,n.arrayValueExtractor)("suitabilities","id"),insertor:(0,n.arrayValueInsertor)("suitabilities","id")}),new n.CheckboxSelect("additionalFeatures","entity.LodgeAddressbase.additionalFeatures",{rowLayout:!0,optionProvider:{optProvider:n.GenericI18nDataObjectOptionProviderService,params:{entityType:"LodgeAdditionalFeature"}},extractor:(0,n.arrayValueExtractor)("additionalFeatures","id"),insertor:(0,n.arrayValueInsertor)("additionalFeatures","id")}),new n.I18nMultiTextarea("winterRoom","entity.LodgeAddressbase.winterRoom"),new n.I18nMultiTextarea("emergencyRoom","entity.LodgeAddressbase.emergencyRoom"),new n.Input("int","beds","entity.LodgeAddressbase.beds"),new n.Input("int","dormitories","entity.LodgeAddressbase.dormitories"),new n.Input("int","makeshiftBeds","entity.LodgeAddressbase.makeshiftBeds"),new n.I18nMultiTextarea("approachLocation","entity.LodgeAddressbase.approachLocation"),new n.Input("int","approachAltitude","entity.LodgeAddressbase.approachAltitude"),new n.Input("number","approachWalkingTime","entity.LodgeAddressbase.approachWalkingTime"),new n.Input("number","utmNorth","entity.LodgeAddressbase.utmNorth"),new n.Input("number","utmEast","entity.LodgeAddressbase.utmEast"),new n.Input("text","referenceMeridian","entity.LodgeAddressbase.referenceMeridian"),new n.I18nMultiTextarea("arrivalByTrain","entity.LodgeAddressbase.arrivalByTrain"),new n.I18nMultiTextarea("arrivalByBus","entity.LodgeAddressbase.arrivalByBus"),new n.I18nMultiTextarea("arrivalByCar","entity.LodgeAddressbase.arrivalByCar"),new n.I18nMultiTextarea("parking","entity.LodgeAddressbase.parking"),new n.Input("text","contactLodgeWart","entity.LodgeAddressbase.contactLodgeWart"),new n.Input("text","contactLodgeHost","entity.LodgeAddressbase.contactLodgeHost"),new n.I18nMultiTextarea("tourInformation","entity.LodgeAddressbase.tourInformation"),new n.ArrayField("tours",!0,[])],{moduleClass:"LodgeAddressbase",moduleId:100014e3})).addCreatorFn("modules_convention_center",In=>new n.ModuleField("modules_convention_center",[new n.I18nMultiRichtext("roomDescription","entity.CenterAddressbase.roomDescription"),new n.I18nMultiRichtext("outdoorDescription","entity.CenterAddressbase.outdoorDescription"),new n.CheckboxSelect("eventTypes","entity.CenterAddressbase.eventTypes",{optionProvider:ee,extractor:(0,n.arrayValueExtractor)("eventTypes","id"),insertor:(0,n.arrayValueInsertor)("eventTypes","id"),rowLayout:!0}),new n.I18nMultiInput("specialEventType","entity.CenterAddressbase.specialEventType"),new n.Input("int","areaWellness","entity.CenterAddressbase.capacity.areaWellness",{extractor:(0,n.pathExtractor)("capacity.areaWellness"),insertor:(0,n.pathInsertor)("capacity.areaWellness")}),new n.CheckboxSelect("forLanguages","imxtools.metainfo.modules_convention_center.main.languages",{optionProvider:n.LanguageOptionProviderService,extractor:(0,n.arrayValueExtractor)("forLanguages","id"),insertor:(0,n.arrayValueInsertor)("forLanguages","id"),rowLayout:!0}),new n.CheckboxSelect("topics","entity.CenterAddressbase.topics",{optionProvider:ue,extractor:(0,n.arrayValueExtractor)("topics","id"),insertor:(0,n.arrayValueInsertor)("topics","id"),rowLayout:!0}),new n.CheckboxSelect("locationTypes","imxtools.metainfo.modules_convention_center.main.locationTypes",{optionProvider:Ke.j,extractor:(0,n.arrayValueExtractor)("locationTypes","id"),insertor:(0,n.arrayValueInsertor)("locationTypes","id"),rowLayout:!0}),new n.I18nMultiInput("specialLocationType","entity.EventlocationAddressbase.specialLocationType"),new n.I18nMultiRichtext("testimonial","entity.CenterAddressbase.testimonial"),new n.CheckboxSelect("endowments","imxtools.metainfo.modules_convention_center.main.endowments",{optionProvider:ne,extractor:(0,n.arrayValueExtractor)("endowments","id"),insertor:(0,n.arrayValueInsertor)("endowments","id"),renderLabel:!1,rowLayout:!0}),...Ji(),...Wi(),...wn(),...po(),new n.CheckboxSelect("locationAttributes","imxtools.metainfo.modules_convention_location.locationAttributes",{optionProvider:Le.J,extractor:(0,n.arrayValueExtractor)("infrastructure.locationAttributes","id"),insertor:(0,n.arrayValueInsertor)("infrastructure.locationAttributes","id"),rowLayout:!0}),new n.Input("int","areaExhibition","entity.CenterAddressbase.capacity.areaExhibition",{extractor:(0,n.pathExtractor)("capacity.areaExhibition"),insertor:(0,n.pathInsertor)("capacity.areaExhibition")}),new n.Input("int","areaInside","entity.CenterAddressbase.capacity.areaInside",{extractor:(0,n.pathExtractor)("capacity.areaInside"),insertor:(0,n.pathInsertor)("capacity.areaInside")}),new n.Input("int","areaOutside","entity.CenterAddressbase.capacity.areaOutside",{extractor:(0,n.pathExtractor)("capacity.areaOutside"),insertor:(0,n.pathInsertor)("capacity.areaOutside")}),new n.Input("int","areaTotal","entity.CenterAddressbase.capacity.areaTotal",{extractor:(0,n.pathExtractor)("capacity.areaTotal"),insertor:(0,n.pathInsertor)("capacity.areaTotal")}),new n.Input("int","areaLargest","entity.CenterAddressbase.capacity.areaLargest",{extractor:(0,n.pathExtractor)("capacity.areaLargest"),insertor:(0,n.pathInsertor)("capacity.areaLargest")}),new n.Input("int","numberPersonsOverall","entity.CenterAddressbase.capacity.numberPersonsOverall",{extractor:(0,n.pathExtractor)("capacity.numberPersonsOverall"),insertor:(0,n.pathInsertor)("capacity.numberPersonsOverall")}),new n.Input("int","numberParkspaceOverall","entity.CenterAddressbase.capacity.numberParkspaceOverall",{extractor:(0,n.pathExtractor)("capacity.numberParkspaceOverall"),insertor:(0,n.pathInsertor)("capacity.numberParkspaceOverall")}),new n.Input("int","numberParkspaceOutdoor","entity.CenterAddressbase.capacity.numberParkspaceOutdoor",{extractor:(0,n.pathExtractor)("capacity.numberParkspaceOutdoor"),insertor:(0,n.pathInsertor)("capacity.numberParkspaceOutdoor")}),new n.Input("int","numberParkspaceGarage","entity.CenterAddressbase.capacity.numberParkspaceGarage",{extractor:(0,n.pathExtractor)("capacity.numberParkspaceGarage"),insertor:(0,n.pathInsertor)("capacity.numberParkspaceGarage")}),new n.Input("int","numberConferenceRooms","entity.CenterAddressbase.capacity.numberConferenceRooms",{extractor:(0,n.pathExtractor)("capacity.numberConferenceRooms"),insertor:(0,n.pathInsertor)("capacity.numberConferenceRooms")}),new n.Input("text","numberGroupRooms","entity.CenterAddressbase.capacity.numberGroupRooms",{extractor:(0,n.pathExtractor)("capacity.numberGroupRooms"),insertor:(0,n.pathInsertor)("capacity.numberGroupRooms")}),new n.Input("int","numberPax","entity.CenterAddressbase.capacity.numberPax",{extractor:(0,n.pathExtractor)("capacity.numberPax"),insertor:(0,n.pathInsertor)("capacity.numberPax")}),new n.CheckboxSelect("gastronomyAttributes","entity.CenterGastronomy.gastronomyAttributes",{optionProvider:K,extractor:(0,n.arrayValueExtractor)("gastronomy.gastronomyAttributes","id"),insertor:(0,n.arrayValueInsertor)("gastronomy.gastronomyAttributes","id"),rowLayout:!0}),...Vn(),...Kn()],{moduleClass:"CenterAddressbase",moduleId:100003200})).addCreatorFn("modules_convention_hotel",In=>new n.ModuleField("modules_convention_hotel",[new n.I18nMultiRichtext("roomDescription","entity.CenterAddressbase.roomDescription"),new n.I18nMultiRichtext("outdoorDescription","entity.CenterAddressbase.outdoorDescription"),new n.CheckboxSelect("eventTypes","entity.CenterAddressbase.eventTypes",{optionProvider:Te,extractor:(0,n.arrayValueExtractor)("eventTypes","id"),insertor:(0,n.arrayValueInsertor)("eventTypes","id"),rowLayout:!0}),new n.I18nMultiInput("specialEventType","entity.CenterAddressbase.specialEventType"),new n.Input("int","areaWellness","entity.CenterAddressbase.capacity.areaWellness",{extractor:(0,n.pathExtractor)("capacity.areaWellness"),insertor:(0,n.pathInsertor)("capacity.areaWellness")}),new n.CheckboxSelect("forLanguages","imxtools.metainfo.modules_convention_hotel.main.languages",{optionProvider:n.LanguageOptionProviderService,extractor:(0,n.arrayValueExtractor)("forLanguages","id"),insertor:(0,n.arrayValueInsertor)("forLanguages","id"),rowLayout:!0}),new n.Checkbox("informationOrder","entity.CnvHotelAddressbase.informationOrder"),new n.Checkbox("partnerMember","entity.CnvHotelAddressbase.partnerMember"),new n.AutocompleteField("city","entity.CnvHotelAddressbase.city",{autocompleteService:s.s,autocompleteFilter:{productlineIds:oo.toString()},useAnyNameHolder:!1,extractor:(0,n.pathExtractor)("city.addressbase.id"),insertor:(0,n.noneInsertor)()}),new n.AnyField("cityAddressbase","",{extractor:(0,n.pathExtractor)("city.id"),insertor:(0,n.pathInsertor)("city.id")}),new n.CheckboxSelect("locationTypes","entity.CnvHotelAddressbase.locationTypes",{optionProvider:Ke.j,extractor:(0,n.arrayValueExtractor)("locationTypes","id"),insertor:(0,n.arrayValueInsertor)("locationTypes","id"),rowLayout:!0}),new n.I18nMultiInput("specialLocationType","entity.CnvHotelAddressbase.specialLocationType"),new n.AnyField("classification","entity.ConventionHotel.classification",{extractor:(0,n.pathExtractor)("classification"),insertor:(0,n.pathInsertor)("classification")}),new n.Checkbox("classificationSuperior","entity.CnvHotelAddressbase.classificationSuperior"),new n.I18nMultiRichtext("testimonial","entity.CnvHotelAddressbase.testimonial"),new n.CheckboxSelect("generalEndowments","entity.CnvHotelAddressbase.generalEndowments",{optionProvider:me,extractor:(0,n.arrayValueExtractor)("generalEndowments","id"),insertor:(0,n.arrayValueInsertor)("generalEndowments","id"),rowLayout:!0}),new n.CheckboxSelect("endowments","entity.CnvHotelAddressbase.endowments",{optionProvider:R,extractor:(0,n.arrayValueExtractor)("endowments","id"),insertor:(0,n.arrayValueInsertor)("endowments","id"),rowLayout:!0}),new n.CheckboxSelect("sportEndowments","entity.CnvHotelAddressbase.sportEndowments",{optionProvider:Ue,extractor:(0,n.arrayValueExtractor)("sportEndowments","id"),insertor:(0,n.arrayValueInsertor)("sportEndowments","id"),rowLayout:!0}),new n.CheckboxSelect("roomEndowments","entity.CnvHotelAddressbase.roomEndowments",{optionProvider:Se,extractor:(0,n.arrayValueExtractor)("roomEndowments","id"),insertor:(0,n.arrayValueInsertor)("roomEndowments","id"),rowLayout:!0}),...wn(),...po(),new n.CheckboxSelect("locationAttributes","imxtools.metainfo.modules_convention_location.locationAttributes",{optionProvider:Le.J,extractor:(0,n.arrayValueExtractor)("infrastructure.locationAttributes","id"),insertor:(0,n.arrayValueInsertor)("infrastructure.locationAttributes","id"),rowLayout:!0}),new n.Input("int","areaExhibition","entity.CnvHotelAddressbase.capacity.areaExhibition",{extractor:(0,n.pathExtractor)("capacity.areaExhibition"),insertor:(0,n.pathInsertor)("capacity.areaExhibition")}),new n.Input("int","areaLargest","entity.CnvHotelAddressbase.capacity.areaLargest",{extractor:(0,n.pathExtractor)("capacity.areaLargest"),insertor:(0,n.pathInsertor)("capacity.areaLargest")}),new n.Input("int","numberPersonsRestaurant","entity.CnvHotelAddressbase.capacity.numberPersonsRestaurant",{extractor:(0,n.pathExtractor)("capacity.numberPersonsRestaurant"),insertor:(0,n.pathInsertor)("capacity.numberPersonsRestaurant")}),new n.Input("int","numberPersons","entity.CnvHotelAddressbase.capacity.numberPersons",{extractor:(0,n.pathExtractor)("capacity.numberPersons"),insertor:(0,n.pathInsertor)("capacity.numberPersons")}),new n.Input("int","numberParkspaceOverall","entity.CnvHotelAddressbase.capacity.numberParkspaceOverall",{extractor:(0,n.pathExtractor)("capacity.numberParkspaceOverall"),insertor:(0,n.pathInsertor)("capacity.numberParkspaceOverall")}),new n.Input("int","numberParkspaceOutdoor","entity.CnvHotelAddressbase.capacity.numberParkspaceOutdoor",{extractor:(0,n.pathExtractor)("capacity.numberParkspaceOutdoor"),insertor:(0,n.pathInsertor)("capacity.numberParkspaceOutdoor")}),new n.Input("int","numberParkspaceGarage","entity.CnvHotelAddressbase.capacity.numberParkspaceGarage",{extractor:(0,n.pathExtractor)("capacity.numberParkspaceGarage"),insertor:(0,n.pathInsertor)("capacity.numberParkspaceGarage")}),new n.Input("int","numberRooms","entity.CnvHotelAddressbase.capacity.numberRooms",{extractor:(0,n.pathExtractor)("capacity.numberRooms"),insertor:(0,n.pathInsertor)("capacity.numberRooms")}),new n.Input("int","numberSingleRooms","entity.CnvHotelAddressbase.capacity.numberSingleRooms",{extractor:(0,n.pathExtractor)("capacity.numberSingleRooms"),insertor:(0,n.pathInsertor)("capacity.numberSingleRooms")}),new n.Input("int","numberDoubleRooms","entity.CnvHotelAddressbase.capacity.numberDoubleRooms",{extractor:(0,n.pathExtractor)("capacity.numberDoubleRooms"),insertor:(0,n.pathInsertor)("capacity.numberDoubleRooms")}),new n.Input("int","numberSharedRooms","entity.CnvHotelAddressbase.capacity.numberSharedRooms",{extractor:(0,n.pathExtractor)("capacity.numberSharedRooms"),insertor:(0,n.pathInsertor)("capacity.numberSharedRooms")}),new n.Input("int","numberSuiteRooms","entity.CnvHotelAddressbase.capacity.numberSuiteRooms",{extractor:(0,n.pathExtractor)("capacity.numberSuiteRooms"),insertor:(0,n.pathInsertor)("capacity.numberSuiteRooms")}),new n.Input("int","numberConferenceRooms","entity.CnvHotelAddressbase.capacity.numberConferenceRooms",{extractor:(0,n.pathExtractor)("capacity.numberConferenceRooms"),insertor:(0,n.pathInsertor)("capacity.numberConferenceRooms")}),new n.Input("text","numberGroupRooms","entity.CnvHotelAddressbase.capacity.numberGroupRooms",{extractor:(0,n.pathExtractor)("capacity.numberGroupRooms"),insertor:(0,n.pathInsertor)("capacity.numberGroupRooms")}),new n.Input("int","numberAccessibleRooms","entity.CnvHotelAddressbase.capacity.numberAccessibleRooms",{extractor:(0,n.pathExtractor)("capacity.numberAccessibleRooms"),insertor:(0,n.pathInsertor)("capacity.numberAccessibleRooms")}),new n.Input("int","numberPax","entity.CnvHotelAddressbase.capacity.numberPax",{extractor:(0,n.pathExtractor)("capacity.numberPax"),insertor:(0,n.pathInsertor)("capacity.numberPax")}),...Vn(),...Wi()],{moduleClass:"CnvHotelAddressbase",moduleId:100003100})).addCreatorFn("modules_convention_city",In=>new n.ModuleField("modules_convention_city",[new n.Checkbox("informationOrder","entity.CenterAddressbase.informationOrder"),new n.Checkbox("partnerMember","entity.CenterAddressbase.partnerMember"),new n.CheckboxSelect("forLanguages","imxtools.metainfo.modules_convention_center.main.languages",{optionProvider:n.LanguageOptionProviderService,extractor:(0,n.arrayValueExtractor)("forLanguages","id"),insertor:(0,n.arrayValueInsertor)("forLanguages","id"),rowLayout:!0}),new n.I18nMultiRichtext("testimonial","entity.CnvHotelAddressbase.testimonial"),new n.CheckboxSelect("topics","entity.CityAddressbase.topics",{optionProvider:at,extractor:(0,n.arrayValueExtractor)("topics","id"),insertor:(0,n.arrayValueInsertor)("topics","id"),rowLayout:!0}),new n.Input("int","numberBedsOverall","entity.CityAddressbase.numberBedsOverall",{extractor:(0,n.pathExtractor)("numberBedsOverall"),insertor:(0,n.pathInsertor)("numberBedsOverall")}),new n.CheckboxSelect("locationTypes","imxtools.metainfo.modules_convention_center.main.locationTypes",{optionProvider:Ke.j,extractor:(0,n.arrayValueExtractor)("locationTypes","id"),insertor:(0,n.arrayValueInsertor)("locationTypes","id"),rowLayout:!0}),new n.I18nMultiInput("specialLocationType","entity.EventlocationAddressbase.specialLocationType"),new n.ArrayField("centers",!1,[new n.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:n.i18nSomeValidatorButEmptyAllowed}),new n.Input("text","homepage","entity.CityCenter.homepage"),new n.Input("int","numberRooms","entity.CityCenter.numberRooms"),new n.Input("int","roomCapacityPersons","entity.CityCenter.roomCapacityPersons"),new n.Input("int","overallCapacityPersons","entity.CityCenter.overallCapacityPersons")],{renderLabel:!0,extractor:(0,n.pathExtractor)("centers"),insertor:(0,n.pathInsertor)("centers",!0)}),...Ji(),...wn(),...po(),new n.CheckboxSelect("locationAttributes","entity.CityAddressbase.infrastructure.locationAttributes",{optionProvider:Le.J,extractor:(0,n.arrayValueExtractor)("infrastructure.locationAttributes","id"),insertor:(0,n.arrayValueInsertor)("infrastructure.locationAttributes","id"),rowLayout:!0})],{moduleClass:"CityAddressbase",moduleId:100003050})).addCreatorFn("modules_convention_location",In=>new n.ModuleField("modules_convention_location",[new n.Checkbox("informationOrder","entity.CenterAddressbase.informationOrder"),new n.Checkbox("partnerMember","entity.CenterAddressbase.partnerMember"),new n.CheckboxSelect("forLanguages","imxtools.metainfo.modules_convention_center.main.languages",{optionProvider:n.LanguageOptionProviderService,extractor:(0,n.arrayValueExtractor)("forLanguages","id"),insertor:(0,n.arrayValueInsertor)("forLanguages","id"),rowLayout:!0}),new n.I18nMultiRichtext("outdoorDescription","entity.EventlocationAddressbase.outdoorDescription"),new n.I18nMultiRichtext("roomDescription","entity.EventlocationAddressbase.roomDescription"),new n.I18nMultiRichtext("testimonial","entity.CnvHotelAddressbase.testimonial"),new n.CheckboxSelect("eventlocationEndowments","entity.EventlocationAddressbase.eventlocationEndowments",{optionProvider:We,extractor:(0,n.arrayValueExtractor)("eventlocationEndowments","id"),insertor:(0,n.arrayValueInsertor)("eventlocationEndowments","id"),rowLayout:!0}),new n.CheckboxSelect("topics","entity.EventlocationAddressbase.topics",{optionProvider:Et,extractor:(0,n.arrayValueExtractor)("topics","id"),insertor:(0,n.arrayValueInsertor)("topics","id"),renderLabel:!1,rowLayout:!0}),new n.CheckboxSelect("eventTypes","entity.EventlocationAddressbase.eventTypes",{optionProvider:et,extractor:(0,n.arrayValueExtractor)("eventTypes","id"),insertor:(0,n.arrayValueInsertor)("eventTypes","id"),rowLayout:!0}),new n.I18nMultiInput("specialEventType","entity.CnvHotelAddressbase.specialEventType"),new n.CheckboxSelect("locationTypes","imxtools.metainfo.modules_convention_center.main.locationTypes",{optionProvider:Ke.j,extractor:(0,n.arrayValueExtractor)("locationTypes","id"),insertor:(0,n.arrayValueInsertor)("locationTypes","id"),rowLayout:!0}),new n.I18nMultiInput("specialLocationType","entity.EventlocationAddressbase.specialLocationType"),...Wi(),...wn(),...po(),new n.CheckboxSelect("locationAttributes","imxtools.metainfo.modules_convention_location.locationAttributes",{optionProvider:Le.J,extractor:(0,n.arrayValueExtractor)("infrastructure.locationAttributes","id"),insertor:(0,n.arrayValueInsertor)("infrastructure.locationAttributes","id"),rowLayout:!0}),new n.Input("int","areaTotal","entity.CenterAddressbase.capacity.areaTotal",{extractor:(0,n.pathExtractor)("capacity.numberPax"),insertor:(0,n.pathInsertor)("capacity.numberPax")}),new n.Input("int","areaInside","entity.CenterAddressbase.capacity.areaInside",{extractor:(0,n.pathExtractor)("capacity.areaInside"),insertor:(0,n.pathInsertor)("capacity.areaInside")}),new n.Input("int","areaOutside","entity.CenterAddressbase.capacity.areaOutside",{extractor:(0,n.pathExtractor)("capacity.areaOutside"),insertor:(0,n.pathInsertor)("capacity.areaOutside")}),new n.Input("int","areaOverall","entity.EventlocationAddressbase.capacity.areaOverall",{extractor:(0,n.pathExtractor)("capacity.areaOverall"),insertor:(0,n.pathInsertor)("capacity.areaOverall")}),new n.Input("int","areaIndoor","entity.EventlocationAddressbase.capacity.areaIndoor",{extractor:(0,n.pathExtractor)("capacity.areaIndoor"),insertor:(0,n.pathInsertor)("capacity.areaIndoor")}),new n.Input("int","areaOutdoor","entity.EventlocationAddressbase.capacity.areaOutdoor",{extractor:(0,n.pathExtractor)("capacity.areaOutdoor"),insertor:(0,n.pathInsertor)("capacity.areaOutdoor")}),new n.Input("int","areaExhibition","entity.EventlocationAddressbase.capacity.areaExhibition",{extractor:(0,n.pathExtractor)("capacity.areaExhibition"),insertor:(0,n.pathInsertor)("capacity.areaExhibition")}),new n.Input("int","areaLargest","entity.EventlocationAddressbase.capacity.areaLargest",{extractor:(0,n.pathExtractor)("capacity.areaLargest"),insertor:(0,n.pathInsertor)("capacity.areaLargest")}),new n.Input("int","numberPersonsOverall","entity.EventlocationAddressbase.capacity.numberPersonsOverall",{extractor:(0,n.pathExtractor)("capacity.numberPersonsOverall"),insertor:(0,n.pathInsertor)("capacity.numberPersonsOverall")}),new n.Input("int","numberPersonsIndoor","entity.EventlocationAddressbase.capacity.numberPersonsIndoor",{extractor:(0,n.pathExtractor)("capacity.numberPersonsIndoor"),insertor:(0,n.pathInsertor)("capacity.numberPersonsIndoor")}),new n.Input("int","numberPersonsOutdoor","entity.EventlocationAddressbase.capacity.numberPersonsOutdoor",{extractor:(0,n.pathExtractor)("capacity.numberPersonsOutdoor"),insertor:(0,n.pathInsertor)("capacity.numberPersonsOutdoor")}),new n.Input("int","numberParkspaceOverall","entity.EventlocationAddressbase.capacity.numberParkspaceOverall",{extractor:(0,n.pathExtractor)("capacity.numberParkspaceOverall"),insertor:(0,n.pathInsertor)("capacity.numberParkspaceOverall")}),new n.Input("int","numberParkspaceOutdoor","entity.EventlocationAddressbase.capacity.numberParkspaceOutdoor",{extractor:(0,n.pathExtractor)("capacity.numberParkspaceOutdoor"),insertor:(0,n.pathInsertor)("capacity.numberParkspaceOutdoor")}),new n.Input("int","numberParkspaceGarage","entity.EventlocationAddressbase.capacity.numberParkspaceGarage",{extractor:(0,n.pathExtractor)("capacity.numberParkspaceGarage"),insertor:(0,n.pathInsertor)("capacity.numberParkspaceGarage")}),new n.Input("int","numberConferenceRooms","entity.EventlocationAddressbase.capacity.numberConferenceRooms",{extractor:(0,n.pathExtractor)("capacity.numberConferenceRooms"),insertor:(0,n.pathInsertor)("capacity.numberConferenceRooms")}),new n.Input("text","numberGroupRooms","entity.EventlocationAddressbase.capacity.numberGroupRooms",{extractor:(0,n.pathExtractor)("capacity.numberGroupRooms"),insertor:(0,n.pathInsertor)("capacity.numberGroupRooms")}),new n.Input("int","numberPax","entity.EventlocationAddressbase.capacity.numberPax",{extractor:(0,n.pathExtractor)("capacity.numberPax"),insertor:(0,n.pathInsertor)("capacity.numberPax")}),new n.CheckboxSelect("gastronomyAttributes","entity.EventlocationGastronomy.gastronomyAttributes",{optionProvider:ge,extractor:(0,n.arrayValueExtractor)("gastronomy.gastronomyAttributes","id"),insertor:(0,n.arrayValueInsertor)("gastronomy.gastronomyAttributes","id"),rowLayout:!1}),...Kn(),...Vn()],{moduleClass:"EventlocationAddressbase",moduleId:100003300})).addCreatorFn("modules_convention_green_meeting",In=>new n.ModuleField("modules_convention_green_meeting",[new n.AnyField("x",""),new n.I18nMultiRichtext("description","imxtools.metainfo.modules_convention_green_meeting.description")],{moduleClass:"GreenMeetingAddressbase",moduleId:100003500})).addCreatorFn("modules_beach",In=>new n.ModuleField("modules_beach",[new n.CheckboxSelect("types","entity.BeachType.entityName",{optionProvider:J,extractor:(0,n.arrayValueExtractor)("types","id"),insertor:(0,n.arrayValueInsertor)("types","id"),rowLayout:!0}),new n.CheckboxSelect("services","entity.BeachService.entityName",{optionProvider:B,extractor:(0,n.arrayValueExtractor)("services","id"),insertor:(0,n.arrayValueInsertor)("services","id"),rowLayout:!0}),new n.CheckboxSelect("character","entity.BeachCharacter.entityName",{optionProvider:O,extractor:(0,n.arrayValueExtractor)("character","id"),insertor:(0,n.arrayValueInsertor)("character","id"),rowLayout:!0}),new n.CheckboxSelect("endowments","entity.BeachEndowment.entityName",{optionProvider:G,extractor:(0,n.arrayValueExtractor)("endowments","id"),insertor:(0,n.arrayValueInsertor)("endowments","id"),rowLayout:!0}),new n.CheckboxSelect("bathEndowments","entity.BeachBathEndowment.entityName",{optionProvider:H,extractor:(0,n.arrayValueExtractor)("bathEndowments","id"),insertor:(0,n.arrayValueInsertor)("bathEndowments","id"),rowLayout:!0}),new n.CheckboxSelect("childrenOffers","entity.BeachChildrenOffer.entityName",{optionProvider:P,extractor:(0,n.arrayValueExtractor)("childrenOffers","id"),insertor:(0,n.arrayValueInsertor)("childrenOffers","id"),rowLayout:!0}),new n.CheckboxSelect("sportOffers","entity.BeachSportOffer.entityName",{optionProvider:ae,extractor:(0,n.arrayValueExtractor)("sportOffers","id"),insertor:(0,n.arrayValueInsertor)("sportOffers","id"),rowLayout:!0}),new n.ArrayField("addInfos",!1,[new n.AnyField("attributeDef","imxtools.metainfo.modules_beach.additionalInformation.attributeDef",{extractor:(0,n.pathExtractor)("attributeDef"),insertor:(0,n.pathInsertor)("attributeDef")}),new n.I18nMultiInput("info","imxtools.metainfo.modules_beach.additionalInformation.info",{extractor:(0,n.pathExtractor)("info"),insertor:(0,n.pathInsertor)("info"),renderLabel:!1,readonly:!1})],{extractor:(0,n.pathExtractor)("addInfos"),insertor:(0,n.pathInsertor)("addInfos"),renderLabel:!1}),new n.Select("addAdditionalInfoField","addAdditionalInfoField",{optionProvider:I,placeholder:"imxplatform.common.select-placeholder-add",renderLabel:!1,initialValue:-1,insertor:(0,n.noneInsertor)()}),n.IMX_PLATFORM_FIELDS.createField("attributeDefinitions")],{moduleClass:"BeachAddressbase",moduleId:100004e3})).addCreatorFn("modules_particular_condition",In=>new n.ModuleField("modules_particular_condition",[new n.DateField("dateFrom","entity.ParticularConditionAddressbase.dateFrom"),new n.DateField("dateTo","entity.ParticularConditionAddressbase.dateTo"),new n.I18nMultiInput("generalInformationTitle","entity.ParticularConditionAddressbase.generalInformationTitle"),new n.I18nMultiRichtext("generalInformation","entity.ParticularConditionAddressbase.generalInformation"),new n.I18nMultiRichtext("openingHours","entity.ParticularConditionAddressbase.openingHours"),new n.I18nMultiInput("openingHoursLink","entity.ParticularConditionAddressbase.openingHoursLink"),new n.I18nMultiRichtext("reservation","entity.ParticularConditionAddressbase.reservation"),new n.I18nMultiInput("reservationLink","entity.ParticularConditionAddressbase.reservationLink"),new n.I18nMultiRichtext("visitorInformation","entity.ParticularConditionAddressbase.visitorInformation"),new n.I18nMultiRichtext("waitingTime","entity.ParticularConditionAddressbase.waitingTime"),new n.I18nMultiRichtext("preventiveMeasures","entity.ParticularConditionAddressbase.preventiveMeasures"),new n.I18nMultiRichtext("securityMeasures","entity.ParticularConditionAddressbase.securityMeasures"),n.IMX_PLATFORM_FIELDS.createField("attributeDefinitions")],{moduleClass:"ParticularConditionAddressbase",moduleId:100015e3})).addCreatorFn("modules_rating",In=>new n.ModuleField("modules_rating",[new n.Input("text","system","entity.RatingAddressbase.system"),new n.Input("int","averageRating","entity.RatingAddressbase.averageRating"),new n.Input("int","recommendationRate","entity.RatingAddressbase.recommendationRate"),new n.Input("int","ratingCount","entity.RatingAddressbase.ratingCount"),new n.Input("text","externalId","entity.RatingAddressbase.externalId")],{moduleClass:"RatingAddressbase",moduleId:100011e3})).addCreatorFn("modules_occupancy",In=>new n.ModuleField("modules_occupancy",[new n.Select("sensorFusionStrategy","entity.OccupancyAddressbase.sensorFusionStrategy",{optionProvider:n.SensorFusionStrategyOptionProviderService,placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,n.pathExtractor)("sensorFusionStrategy.id"),insertor:(0,n.pathInsertor)("sensorFusionStrategy.id",!0),initialValue:-1,required:!0}),new n.MultiSelect("sensors","entity.OccupancyAddressbase.sensors",{optionProvider:n.OccupancySensorOptionProviderService,extractor:(0,n.arrayValueExtractor)("sensors","id"),insertor:(0,n.arrayValueInsertor)("sensors","id")}),new n.Checkbox("autoGenerateAnnouncement","entity.OccupancyAddressbase.autoGenerateAnnouncement")],{moduleClass:"OccupancyAddressbase",moduleId:100017e3})).addCreatorFn("modules_qr_announcement",In=>new n.ModuleField("modules_qr_announcement",[new n.Input("text","pin","entity.QrAnnouncementAddressbase.pin",{extendedValidators:[e.kI.minLength(4),e.kI.pattern(/^[0-9]{4}$/)],hint:"imxtools.metainfo.modules_qr_announcement.pin_hint"})],{moduleClass:"QrAnnouncementAddressbase",moduleId:_o})).addCreatorFn("modules_acc_services",In=>new n.ModuleField("modules_acc_services",[new n.AnyField("accommodationServicesAddressbase","",{extractor:(0,n.rowExtractor)(),insertor:(0,n.noneInsertor)()})],{moduleClass:"AccommodationServicesAddressbase",moduleId:100001400})).addCreatorFn("modules_rfa",In=>new n.ModuleField("modules_rfa",[new n.DateField("classificationFromDate","entity.RfaAddressbase.classificationFromDate"),new n.DateField("classificationToDate","entity.RfaAddressbase.classificationToDate"),new n.Input("text","taskNumber","entity.RfaAddressbase.taskNumber"),new n.Checkbox("validityChecked","entity.RfaAddressbase.validityChecked"),new n.Checkbox("information","entity.RfaAddressbase.information"),new n.I18nMultiRichtext("guestGroupMobilityText","entity.RfaAddressbase.guestGroupMobilityText"),new n.I18nMultiRichtext("guestGroupHearingText","entity.RfaAddressbase.guestGroupHearingText"),new n.I18nMultiRichtext("guestGroupVisualText","entity.RfaAddressbase.guestGroupVisualText"),new n.I18nMultiRichtext("guestGroupCognitiveText","entity.RfaAddressbase.guestGroupCognitiveText"),new n.I18nMultiInput("urlWalking","entity.RfaAddressbase.urlWalking",{extendedValidators:n.httpUrlValidator}),new n.I18nMultiInput("urlWheelchair","entity.RfaAddressbase.urlWheelchair",{extendedValidators:n.httpUrlValidator}),new n.I18nMultiInput("urlDeaf","entity.RfaAddressbase.urlDeaf",{extendedValidators:n.httpUrlValidator}),new n.I18nMultiInput("urlMental","entity.RfaAddressbase.urlMental",{extendedValidators:n.httpUrlValidator}),new n.I18nMultiInput("urlVisual","entity.RfaAddressbase.urlVisual",{extendedValidators:n.httpUrlValidator}),new n.AnyField("criteria","",{extractor:(0,n.arrayValueExtractor)("criteria","id"),insertor:an("criteria")}),new n.AnyField("categories","",{extractor:(0,n.arrayValueExtractor)("categories","id"),insertor:an("categories")}),new n.AnyField("stages","",{extractor:(0,n.arrayValueExtractor)("stages","id"),insertor:an("stages")}),new n.Select("partner","entity.RfaAddressbase.partner",{optionProvider:Ce,placeholder:"imxplatform.common.select-placeholder-add",renderLabel:!0,initialValue:-1,extractor:(0,n.pathExtractor)("partner.id"),insertor:(0,n.pathInsertor)("partner.id",!0)})],{moduleClass:"RfaAddressbase",moduleId:100016e3})).addCreatorFn("modules_price_list",In=>new n.ModuleField("modules_price_list",[new n.ArrayField("priceLists",!1,[new n.I18nMultiInput("i18nName","entity.PriceList.name"),new n.DateField("validFrom","entity.PriceList.validFrom"),new n.DateField("validUntil","entity.PriceList.validUntil"),new n.Checkbox("annually","entity.PriceList.annually"),new n.I18nMultiRichtext("description","entity.PriceDefinition.description",{extractor:(0,n.pathExtractor)("priceDefinition.description"),insertor:(0,n.pathInsertor)("priceDefinition.description")}),new n.CheckboxSelect("attributes","entity.PriceDefinition.attributes",{optionProvider:Fn,extractor:(0,n.arrayValueExtractor)("priceDefinition.attributes","id"),insertor:(0,n.arrayValueInsertor)("priceDefinition.attributes","id")}),new n.ArrayField("priceItems",!1,[new n.Select("priceItemCategory","entity.PriceItem.category",{placeholder:"imxplatform.common.select-placeholder-demand",initialValue:-1,optionProvider:yt.K,extractor:(0,n.pathExtractor)("priceItemCategory.id"),insertor:(0,n.pathInsertor)("priceItemCategory.id",!0)}),new n.I18nMultiInput("categoryDescription","entity.PriceItem.categoryDescription"),new n.Select("currency","entity.PriceItem.currency",{placeholder:"imxplatform.common.select-placeholder-demand",initialValue:-1,optionProvider:Bt.V,extractor:(0,n.pathExtractor)("currency.id"),insertor:(0,n.pathInsertor)("currency.id",!0)}),new n.Input("int","ageFrom","entity.PriceItem.ageFrom"),new n.Input("int","ageTo","entity.PriceItem.ageTo"),new n.Input("int","amountPeopleFrom","entity.PriceItem.amountPeopleFrom"),new n.Input("int","amountPeopleTo","entity.PriceItem.amountPeopleTo"),new n.I18nMultiInput("description","entity.PriceItem.description"),new n.ArrayField("priceValues",!1,[new n.AnyField("type","entity.PriceValue.type",{extractor:(0,n.pathExtractor)("type"),insertor:(0,n.pathInsertor)("type")}),new n.Input("number","value","entity.PriceValue.value")],{renderLabel:!1})],{extractor:(0,n.pathExtractor)("priceDefinition.priceItems"),insertor:(0,n.pathInsertor)("priceDefinition.priceItems")})],{renderLabel:!0}),new n.CheckboxSelect("paymentOptions","entity.PriceListAddressbase.paymentOptions",{optionProvider:$e.F,extractor:(0,n.arrayValueExtractor)("paymentOptions","id"),insertor:(0,n.arrayValueInsertor)("paymentOptions","id"),rowLayout:!0}),new n.I18nMultiRichtext("paymentInformation","entity.PriceListAddressbase.paymentInformation"),n.IMX_PLATFORM_FIELDS.createField("attributeDefinitions")],{moduleClass:"PriceListAddressbase",moduleId:100019e3})).addCreatorFn("modules_regiondo_offer",In=>new n.ModuleField("modules_regiondo_offer",[new n.Input("text","skuDataProduct","entity.RegiondoOffer.skuDataProduct"),new n.Input("text","productId","entity.RegiondoOffer.productId"),new n.Input("text","location","entity.RegiondoOffer.location"),new n.Input("text","provider","entity.RegiondoOffer.provider"),new n.I18nMultiRichtext("faqNotIncluded","entity.RegiondoOffer.faqNotIncluded"),new n.I18nMultiRichtext("faqParticipants","entity.RegiondoOffer.faqParticipants"),new n.I18nMultiRichtext("faqCustomerRequirements","entity.RegiondoOffer.faqCustomerRequirements"),new n.I18nMultiRichtext("faqOtherInfo","entity.RegiondoOffer.faqOtherInfo"),new n.I18nMultiRichtext("faqSpectators","entity.RegiondoOffer.faqSpectators"),new n.I18nMultiRichtext("importantInfo","entity.RegiondoOffer.importantInfo"),new n.I18nMultiRichtext("parkingOptionsComment","entity.RegiondoOffer.parkingOptionsComment"),new n.I18nMultiRichtext("publicTransportComment","entity.RegiondoOffer.publicTransportComment"),new n.Input("int","bookingNoticePeriod","entity.RegiondoOffer.bookingNoticePeriod"),new n.Input("text","durationType","entity.RegiondoOffer.durationType"),new n.Input("text","durationValues","entity.RegiondoOffer.durationValues"),new n.Input("text","languages",null),new n.Checkbox("asGift","entity.RegiondoOffer.asGift"),new n.Input("text","appointmentTypes","entity.RegiondoOffer.appointmentTypes"),new n.Input("text","productSupplierId","entity.RegiondoOffer.productSupplierId"),new n.ArrayField("infoPdfs",!1,[new n.Input("text","infoPdf","entity.RegiondoOffer.infoPdfs.value",{insertor:(0,n.pathInsertor)("value"),extractor:(0,n.pathExtractor)("value"),renderLabel:!1,required:!0,extendedValidators:n.httpUrlValidator})],{extractor:(0,n.pathExtractor)("infoPdfs"),insertor:(0,n.pathInsertor)("infoPdfs")}),new n.TreeShuffleField("categories","entity.RegiondoOffer.categories",{optionProvider:Ve,extractor:(0,n.arrayValueExtractor)("categories","id"),insertor:(0,n.arrayValueInsertor)("categories","id"),baseEntityFieldOption:{hideInList:!0},renderLabel:!1})],{moduleClass:"RegiondoOffer",moduleId:100021e3})).addCreatorFn("modules_ibe_deskline3_food_beverage",In=>new n.ModuleField("modules_ibe_deskline3_food_beverage",[...eo(bn,vt,nn.b),new n.Input("number","fromPrice","entity.AbstractIbeDeskline3InfrastructureAddressbase.fromPrice"),new n.Input("number","toPrice","entity.AbstractIbeDeskline3InfrastructureAddressbase.toPrice"),new n.Input("int","seatsInside","entity.AbstractIbeDeskline3InfrastructureAddressbase.seatsInside"),new n.Input("int","seatsOutside","entity.AbstractIbeDeskline3InfrastructureAddressbase.seatsOutside")],{moduleClass:"IbeDeskline3FoodAndBeverageInfrastructureAddressbase",moduleId:300003101})).addCreatorFn("modules_ibe_deskline3_route_tour",In=>Wn("modules_ibe_deskline3_route_tour",300003102,"IbeDeskline3RouteAndTourInfrastructureAddressbase",Ii,_i,nn.b)).addCreatorFn("modules_ibe_deskline3_sport_leisure",In=>Wn("modules_ibe_deskline3_sport_leisure",300003103,"IbeDeskline3SportAndLeisureInfrastructureAddressbase",En,co,nn.b)).addCreatorFn("modules_ibe_deskline3_wellness_health",In=>Wn("modules_ibe_deskline3_wellness_health",300003104,"IbeDeskline3WellnessAndHealthInfrastructureAddressbase",yn,ln,nn.b)).addCreatorFn("modules_ibe_deskline3_art_culture",In=>Wn("modules_ibe_deskline3_art_culture",300003105,"IbeDeskline3ArtAndCultureInfrastructureAddressbase",ni,sn,nn.b)).addCreatorFn("modules_ibe_deskline3_poi",In=>Wn("modules_ibe_deskline3_poi",300003106,"IbeDeskline3PoiInfrastructureAddressbase",Li,ji,nn.b)).addCreatorFn("modules_ibe_deskline3_mobility_traffic",In=>Wn("modules_ibe_deskline3_mobility_traffic",300003107,"IbeDeskline3MobilityAndTrafficInfrastructureAddressbase",Oo,no,nn.b)).addCreatorFn("modules_ibe_deskline3_infra",In=>Wn("modules_ibe_deskline3_infra",300003108,"IbeDeskline3InfrastructureAddressbase",rn,ii,nn.b)).addCreatorFn("modules_ibe_deskline3_acc",In=>new n.ModuleField("modules_ibe_deskline3_acc",[new n.AnyField("ibeDeskline3AccAddressbase","",{extractor:(0,n.rowExtractor)(),insertor:(0,n.noneInsertor)()})],{moduleClass:"IbeDeskline3AccAddressbase",moduleId:300003100})).addCreatorFn("modules_ibe_tomas_acc",In=>new n.ModuleField("modules_ibe_tomas_acc",[new n.AnyField("ibeTomasAccAddressbase","",{extractor:(0,n.rowExtractor)(),insertor:(0,n.noneInsertor)()})],{moduleClass:"IbeTomasAccAddressbase",moduleId:300001100})).addCreatorFn("modules_ibe_deskline3_house_package",In=>new n.ModuleField("modules_ibe_deskline3_house_package",[new n.ArrayField("holidayThemes",!1,[new n.I18nMultiInput("i18nName","imxplatform.common.multi-lang",{extendedI18nValidators:n.i18nSomeValidator,readonly:!0,renderLabel:!1}),new n.Input("text","externalId","entity.IbeDeskline3HolidayTheme.externalId",{readonly:!0,renderLabel:!1})],{extractor:(0,n.pathExtractor)("holidayThemes"),insertor:(0,n.pathInsertor)("holidayThemes")}),new n.ArrayField("assignedProducts",!1,[new n.Input("text","externalId","entity.IbeDeskline3HolidayTheme.externalId",{required:!0,readonly:!0,renderLabel:!1})],{extractor:(0,n.pathExtractor)("assignedProducts"),insertor:(0,n.pathInsertor)("assignedProducts")})],{moduleClass:"IbeDeskline3HousePackageMastersOffer",moduleId:300003109}));function mo(){return new n.Select("addCertificate","",{permissionId:"certificateClassifications",placeholder:"imxplatform.common.select-placeholder-add",initialValue:-1,renderLabel:!1,insertor:(0,n.noneInsertor)()})}function vn(){return new n.ArrayField("certificateClassifications",!1,[new n.AnyField("certificate","entity.CertificateClassification.certificate",{extractor:(0,n.pathExtractor)("certificate"),insertor:(0,n.pathInsertor)("certificate")}),new n.DateField("validityFromDate","entity.CertificateClassification.validityFromDate"),new n.DateField("validityToDate","entity.CertificateClassification.validityToDate"),new n.Input("text","information","entity.CertificateClassification.information"),new n.Select("enumValue","entity.CertificateClassification.enumValue",{placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,n.pathExtractor)("enumValue.id"),insertor:(0,n.pathInsertor)("enumValue.id",!0),initialValue:-1}),new n.Input("int","intValue","entity.CertificateClassification.intValue")],{renderLabel:!1})}function Ji(){return[new n.ArrayField("hotels",!1,[new n.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:n.i18nSomeValidatorButEmptyAllowed}),new n.Input("text","homepage","entity.ConventionHotel.homepage"),new n.Input("int","roomCapacity","entity.ConventionHotel.roomCapacity"),new n.Input("int","numberSingleRooms","entity.ConventionHotel.numberSingleRooms"),new n.Input("int","numberDoubleRooms","entity.ConventionHotel.numberDoubleRooms"),new n.Input("int","numberSuiteRooms","entity.ConventionHotel.numberSuiteRooms"),new n.AnyField("classification","entity.ConventionHotel.classification",{extractor:(0,n.pathExtractor)("classification"),insertor:(0,n.pathInsertor)("classification")}),new n.Checkbox("classificationSuperior","entity.ConventionHotel.classificationSuperior"),new n.I18nMultiInput("distanceCongressCenter","entity.ConventionHotel.distanceCongressCenter")],{renderLabel:!0,extractor:(0,n.pathExtractor)("hotels"),insertor:(0,n.pathInsertor)("hotels",!0)})]}function wn(){return[new n.ArrayField("distances",!1,[new n.AnyField("distanceDestination","imxtools.metainfo.modules_convention_center.infrastructure.destinationType",{extractor:(0,n.pathExtractor)("distanceDestination"),insertor:(0,n.pathInsertor)("distanceDestination")}),new n.AnyField("destinationType","imxtools.metainfo.modules_convention_center.infrastructure.destinationType",{extractor:(0,n.pathExtractor)("distanceDestination.destinationType"),insertor:(0,n.pathInsertor)("distanceDestination.destinationType")}),new n.Input("number","distanceValue","Entfernung ",{extractor:(0,n.pathExtractor)("distanceValue"),insertor:(0,n.pathInsertor)("distanceValue")}),new n.I18nMultiInput("distanceDestinationStaticTrue","imxtools.metainfo.modules_convention_center.infrastructure.distanceDestination",{extractor:(0,n.pathExtractor)("distanceDestination.i18nName"),insertor:(0,n.noneInsertor)(),renderLabel:!1,readonly:!0}),new n.I18nMultiInput("distanceDestinationStaticFalse","imxtools.metainfo.modules_convention_center.infrastructure.distanceDestination",{extractor:(0,n.pathExtractor)("distanceDestination.i18nName"),insertor:(0,n.pathInsertor)("distanceDestination.i18nName"),renderLabel:!1})],{extractor:(0,n.pathExtractor)("infrastructure.distances"),insertor:(0,n.pathInsertor)("infrastructure.distances"),renderLabel:!1})]}function po(){return[new n.Select("addDistance","addDistance",{placeholder:"imxplatform.common.select-placeholder-add",renderLabel:!1,initialValue:-1,insertor:(0,n.noneInsertor)()})]}function Kn(){return[new n.Input("text","contactName","entity.CenterGastronomy.contact.contactName",{extractor:(0,n.pathExtractor)("gastronomy.contact.contactName"),insertor:(0,n.pathInsertor)("gastronomy.contact.contactName")}),new n.Select("salutation","entity.CenterGastronomy.contact.salutation",{optionProvider:(0,n.salutationValues)(),placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,n.pathExtractor)("gastronomy.contact.salutation"),insertor:(0,n.pathInsertor)("gastronomy.contact.salutation",!0),initialValue:""}),new n.Input("text","firstname","entity.CenterGastronomy.contact.firstname",{extractor:(0,n.pathExtractor)("gastronomy.contact.firstname"),insertor:(0,n.pathInsertor)("gastronomy.contact.firstname")}),new n.Input("text","lastname","entity.CenterGastronomy.contact.lastname",{extractor:(0,n.pathExtractor)("gastronomy.contact.lastname"),insertor:(0,n.pathInsertor)("gastronomy.contact.lastname")}),new n.Input("text","addressstreet","entity.CenterGastronomy.contact.address.street",{extractor:(0,n.pathExtractor)("gastronomy.contact.address.street"),insertor:(0,n.pathInsertor)("gastronomy.contact.address.street")}),new n.Input("text","addressstreetNo","entity.CenterGastronomy.contact.address.streetNo",{extractor:(0,n.pathExtractor)("gastronomy.contact.address.streetNo"),insertor:(0,n.pathInsertor)("gastronomy.contact.address.streetNo")}),new n.Input("text","addresszipcode","entity.CenterGastronomy.contact.address.zipcode",{extractor:(0,n.pathExtractor)("gastronomy.contact.address.zipcode"),insertor:(0,n.pathInsertor)("gastronomy.contact.address.zipcode")}),new n.Input("text","addresscity","entity.CenterGastronomy.contact.address.city",{extractor:(0,n.pathExtractor)("gastronomy.contact.address.city"),insertor:(0,n.pathInsertor)("gastronomy.contact.address.city")}),new n.Select("addresscountry","entity.CenterGastronomy.contact.address.country",{optionProvider:n.CountryOptionProviderService,placeholder:"imxplatform.common.select-placeholder-demand",extractor:(0,n.pathExtractor)("gastronomy.contact.address.country"),insertor:(0,n.pathInsertor)("gastronomy.contact.address.country",!0),initialValue:-1}),new n.Input("text","addressphone1","entity.CenterGastronomy.contact.address.phone1",{extractor:(0,n.pathExtractor)("gastronomy.contact.address.phone1"),insertor:(0,n.pathInsertor)("gastronomy.contact.address.phone1")}),new n.Input("text","addressphone2","entity.CenterGastronomy.contact.address.phone2",{extractor:(0,n.pathExtractor)("gastronomy.contact.address.phone2"),insertor:(0,n.pathInsertor)("gastronomy.contact.address.phone2")}),new n.Input("text","addressfax","entity.CenterGastronomy.contact.address.fax",{extractor:(0,n.pathExtractor)("gastronomy.contact.address.fax"),insertor:(0,n.pathInsertor)("gastronomy.contact.address.fax")}),new n.Input("text","addressemail","entity.CenterGastronomy.contact.address.email",{extractor:(0,n.pathExtractor)("gastronomy.contact.address.email"),insertor:(0,n.pathInsertor)("gastronomy.contact.address.email")}),new n.I18nMultiInput("addresshomepage","entity.CenterGastronomy.contact.address.homepage",{extractor:(0,n.pathExtractor)("gastronomy.contact.address.homepage"),insertor:(0,n.pathInsertor)("gastronomy.contact.address.homepage")})]}function Vn(){return[new n.ArrayField("restaurants",!1,[new n.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:n.i18nSomeValidatorButEmptyAllowed}),new n.Input("int","number","entity.ConventionRestaurant.number"),new n.Input("int","seats","entity.ConventionRestaurant.seats"),new n.Input("int","rsize","entity.ConventionRestaurant.rsize"),new n.Input("int","classification","entity.ConventionRestaurant.classification"),new n.Checkbox("classificationSuperior","entity.ConventionRestaurant.classificationSuperior")],{renderLabel:!0,extractor:(0,n.pathExtractor)("gastronomy.restaurants"),insertor:(0,n.pathInsertor)("gastronomy.restaurants",!0)})]}function Wi(){return[new n.ArrayField("rooms",!1,[new n.Input("int","number","entity.ConventionRoom.number"),new n.I18nMultiInput("i18nName","entity.ConventionRoom.i18nName",{extendedI18nValidators:n.i18nSomeValidatorButEmptyAllowed}),new n.Input("text","combinations","entity.ConventionRoom.combinations"),new n.Input("number","rsize","entity.ConventionRoom.rsize"),new n.Input("number","height","entity.ConventionRoom.height"),new n.Input("number","length","entity.ConventionRoom.length"),new n.Input("number","width","entity.ConventionRoom.width"),new n.Input("int","parliament","entity.ConventionRoom.parliament"),new n.Input("int","ushape","entity.ConventionRoom.ushape"),new n.Input("int","seatsInRows","entity.ConventionRoom.seatsInRows"),new n.Input("int","seatsInCircle","entity.ConventionRoom.seatsInCircle"),new n.Input("int","banquet","entity.ConventionRoom.banquet"),new n.Input("int","standupReception","entity.ConventionRoom.standupReception"),new n.Input("int","blockSeating","entity.ConventionRoom.blockSeating"),new n.CheckboxSelect("roomAttributes","entity.ConventionRoom.roomAttributes",{optionProvider:$.U,extractor:(0,n.arrayValueExtractor)("roomAttributes","id"),insertor:(0,n.arrayValueInsertor)("roomAttributes","id"),renderLabel:!0,rowLayout:!0}),new n.AnyField("image","entity.ConventionRoom.image",{extractor:(0,n.pathExtractor)("image"),insertor:(0,n.pathInsertor)("image")}),new n.I18nMultiInput("imageTitle","entity.ConventionRoom.image.title",{extractor:(0,n.pathExtractor)("image.title"),insertor:(0,n.pathInsertor)("image.title",!0)}),new n.I18nMultiInput("imageDescription","entity.ConventionRoom.image.description",{extractor:(0,n.pathExtractor)("image.description"),insertor:(0,n.pathInsertor)("image.description",!0)}),new n.I18nMultiInput("imageCopyright","entity.ConventionRoom.image.copyright",{extractor:(0,n.pathExtractor)("image.copyright"),insertor:(0,n.pathInsertor)("image.copyright",!0)}),new n.Input("text","imageFilename","imxtools.metainfo.modules_convention_center.rooms.filename",{extractor:(0,n.pathExtractor)("image.filename"),insertor:(0,n.pathInsertor)("image.filename",!0),readonly:!0})])]}function an(In){return(Wr,qi)=>{if(!Wr)return;const wi=Wr.map(zo=>({id:zo}));qi[In]=wi}}function Wn(In,Wr,qi,wi,zo,xi){return new n.ModuleField(In,[...eo(wi,zo,xi)],{readonly:!0,moduleClass:qi,moduleId:Wr})}function eo(In,Wr,qi){return[new n.CheckboxSelect("topics1","entity.AbstractIbeDeskline3InfrastructureTopic1",{optionProvider:In,extractor:(0,n.arrayValueExtractor)("topics1","id"),insertor:(0,n.arrayValueInsertor)("topics1","id"),rowLayout:!0}),new n.CheckboxSelect("topics2","entity.AbstractIbeDeskline3InfrastructureTopic2",{optionProvider:Wr,extractor:(0,n.arrayValueExtractor)("topics2","id"),insertor:(0,n.arrayValueInsertor)("topics2","id"),rowLayout:!0}),new n.Checkbox("topPoi","entity.AbstractIbeDeskline3InfrastructureAddressbase.topPoi"),new n.CheckboxSelect("holidayThemes","entity.IbeDeskline3AccAddressbase.holidayThemes",{optionProvider:qi,extractor:(0,n.arrayValueExtractor)("topics1","id"),insertor:(0,n.arrayValueInsertor)("topics1","id"),rowLayout:!0,renderLabel:!1}),new n.ArrayField("openingHours",!1,[new n.DateField("dateFrom","entity.IbeDeskline3OpeningHours.dateFrom",{required:!1}),new n.DateField("dateTo","entity.IbeDeskline3OpeningHours.dateTo",{required:!1}),new n.I18nMultiTextarea("text","entity.IbeDeskline3OpeningHours.text",{extractor:(0,n.pathExtractor)("text"),insertor:(0,n.pathInsertor)("text")})],{extractor:(0,n.pathExtractor)("openingHours"),insertor:(0,n.pathInsertor)("openingHours"),renderLabel:!1}),new n.GroupField("openingHoursInformations",[...(0,l.zI)()],{permissionId:"openingHoursInformation",insertor:(0,n.pathInsertor)("openingHoursInformation"),extractor:(0,n.pathExtractor)("openingHoursInformation")}),new n.I18nMultiRichtext("priceInformation","entity.AbstractIbeDeskline3InfrastructureAddressbase.priceInformation",{extractor:(0,n.pathExtractor)("priceInformation"),insertor:(0,n.pathInsertor)("priceInformation")})]}},73832:(gt,X,a)=>{"use strict";a.d(X,{Kq:()=>t,MJ:()=>p,Xc:()=>l});var e=a(19212),n=a(85829),s=a(21473);const l=new e.OlP("imxtools.filterforms.offer"),i=new e.OlP("imxtools.filterformextensions.offer"),t=new n.FormConfiguration([...(0,n.mainFilterFields)("Offer"),new n.AnyField("oAddressbaseId","",{required:!1}),...(0,n.fulltextFilterFields)("Offer"),...(0,n.appearanceFilterFields)("Offer"),new n.Select("deliveryChannelNot","filter.Offer.deliveryChannelNot",{optionProvider:n.OwnDeliveryChannelOptionProviderService,placeholder:"imxplatform.common.no-value",extractor:(0,n.numberExtractor)("deliveryChannelNot"),initialValue:-1}),new n.Select("prioLevel","entity.Appearance.prioLevel",{placeholder:"imxtools.common-entity.filter.appearanceFilter.any-priority",required:!1,optionProvider:n.PrioLevelOptionProviderService,initialValue:-1,extractor:(0,n.numberExtractor)("prioLevel")}),...(0,n.geoFilterFields)("Offer"),...(0,n.geoFilterAltFields)("Offer"),...(0,n.adminFilterFields)("Offer"),...(0,n.memoFilterFields)(),...(0,n.clientFilterFields)("Offer"),new n.AutocompleteField("excludeCreationUser","filter.Event.excludeCreationUser",{autocompleteService:n.UserAutocompleteService,autocompleteFilter:{clientIds:n.CURRENT_AND_SUBCLIENTS},useAnyNameHolder:!1,extractor:(0,n.numberExtractor)("excludeCreationUser"),insertor:(0,n.pathInsertor)("excludeCreationUser"),required:!1}),...(0,n.productlineFilterFields)("Addressbase"),new n.AnyField("certificates","",{required:!1}),...(0,n.qualityFilterFields)("Offer")]);let p=(()=>{class c extends n.AbstractCoreDataObjectFilterFormHandler{constructor(x,u,m,b,I,H){super(x,u,m,b,H,I),this.runtimeContextService=b,this.imxSecurityManagerService=I}getEntityType(){return"Offer"}getSearchCriteriaType(){return"OfferSearchCriteria"}static#e=this.\u0275fac=function(u){return new(u||c)(e.LFG(l),e.LFG(i,8),e.LFG(n.NgControlBuilderService),e.LFG(s.Ze),e.LFG(s.Xh),e.LFG(n.FormatterService))};static#t=this.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac})}return c})()},72186:(gt,X,a)=>{"use strict";a.d(X,{B:()=>c});var e=a(85829),n=a(21473),s=a(75222),l=a(96124),i=a(21223),t=a(99879),p=a(19212);let c=(()=>{class o extends e.AbstractEntityPermissionService{constructor(u,m,b,I,H){super(u,m,b,I),this.imxSecurityManagerService=u,this.runtimeContext=m,this.configurationProvider=b,this.platformDataAccessService=I,this.dataAccessService=H}getEntityType(){return"Offer"}calcReadPermissionById(u){return this.dataAccessService.getOfferById(u).pipe((0,s.w)(m=>this.calcReadPermission(m)))}calcReadPermission(u){return this.runtimeContext.getCurrentAndSubClients().pipe((0,l.U)(m=>Array.from(m).map(b=>b.id)),(0,l.U)(m=>!!(this.imxSecurityManagerService.hasPermission(t.i.F_OFFER_READ_ALL)||this.imxSecurityManagerService.hasDirectPermission(t.i.F_OFFER_READ_OWN_CLIENT)&&u.client&&m.some(b=>b===u.client.id))||!(!this.imxSecurityManagerService.hasDirectPermission(t.i.F_OFFER_READ_OWN_USER)||!u.addressbase.addressbaseUser||u.addressbase.addressbaseUser.id!==this.runtimeContext.getLoginUser().id)))}calcSavePermissionById(u){return this.dataAccessService.getOfferById(u).pipe((0,s.w)(m=>this.calcSavePermission(m)))}calcSavePermission(u){return this.runtimeContext.getCurrentAndSubClients().pipe((0,l.U)(m=>Array.from(m).map(b=>b.id)),(0,l.U)(m=>{let b=!1;return this.isDeactivatedRecord(u)||(this.imxSecurityManagerService.hasPermission(t.i.F_OFFER_UPDATE_ALL)||this.imxSecurityManagerService.hasPermission(t.i.F_OFFER_CREATE)&&!u.id||this.imxSecurityManagerService.hasDirectPermission(t.i.F_OFFER_UPDATE_OWN_CLIENT)&&u.client&&m.some(I=>I===u.client.id)||this.imxSecurityManagerService.hasDirectPermission(t.i.F_OFFER_UPDATE_OWN_USER)&&u.addressbase.addressbaseUser&&u.addressbase.addressbaseUser.id===this.runtimeContext.getLoginUser().id)&&(b=!0),b}))}static#e=this.\u0275fac=function(m){return new(m||o)(p.LFG(n.Xh),p.LFG(n.Ze),p.LFG(e.ConfigurationProvider),p.LFG(e.ImxPlatformDataAccessService),p.LFG(i.N))};static#t=this.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})()},23733:(gt,X,a)=>{"use strict";a.d(X,{SX:()=>c,_1:()=>m,jn:()=>b});var e=a(19212),n=a(56223),s=a(85829),l=a(21473),i=a(62736),t=a(52656),p=a(72186);const c=new e.OlP("imxtools.forms.offer"),o=new e.OlP("imxtools.formextensions.offer"),x=new e.OlP("imxtools.validator.offer");function u(){return(0,s.replaceEntityTypeInLabel)("Offer")}const m=new s.FormConfiguration([s.IMX_PLATFORM_FIELDS.createField("title",u()),s.IMX_PLATFORM_FIELDS.createField("subTitle",u()),s.IMX_PLATFORM_FIELDS.createField("shortDescription",u()),s.IMX_PLATFORM_FIELDS.createField("longDescription",u()),new s.AnyField("addressbaseId","entity.Offer.addressbase",{required:!0,extractor:(0,s.pathExtractor)("addressbase.id"),insertor:(0,s.pathInsertor)("addressbase.id"),permissionId:"addressbase"}),s.IMX_PLATFORM_FIELDS.createField(s.LANGUAGE_FIELD),s.IMX_PLATFORM_FIELDS.createField("permaLink",u()),s.IMX_PLATFORM_FIELDS.createField("htmlHeadTitle",u()),s.IMX_PLATFORM_FIELDS.createField("searchKeywords",u()),s.IMX_PLATFORM_FIELDS.createField("htmlHeadMetaDescription",u()),s.IMX_PLATFORM_FIELDS.createField("canonicalUrl",u()),s.IMX_PLATFORM_FIELDS.createField("tags",u()),s.IMX_PLATFORM_FIELDS.createField("bookingLink",u()),s.IMX_PLATFORM_FIELDS.createField("bookingLinkText",u()),s.IMX_PLATFORM_FIELDS.createField("client",u()),t.dR.createField("inputFields",(0,s.replaceEntityTypeInLabel)("OfferInputField")),t.dR.createField("addInputField"),s.IMX_PLATFORM_FIELDS.createField("attributeDefinitions"),new s.Input("price","pricing.fromPrice","entity.Offer.pricing.fromPrice"),new s.Input("price","pricing.toPrice","entity.Offer.pricing.toPrice"),new s.Input("price","pricing.absolutePrice","entity.Offer.pricing.absolutePrice"),new s.Checkbox("pricing.freeOfCharge","entity.Offer.pricing.freeOfCharge"),new s.I18nMultiInput("pricing.priceBasis","entity.Offer.pricing.priceBasis"),new s.I18nMultiRichtext("pricing.priceDescription","entity.Offer.pricing.priceDescription"),new s.I18nMultiRichtext("includedServices","entity.Offer.includedServices",{renderLabel:!1}),new s.Checkbox("seasonSpring","entity.Offer.seasonSpring"),new s.Checkbox("seasonSummer","entity.Offer.seasonSummer"),new s.Checkbox("seasonAutumn","entity.Offer.seasonAutumn"),new s.Checkbox("seasonWinter","entity.Offer.seasonWinter"),new s.Input("number","duration","entity.Offer.duration",{extendedValidators:[n.kI.min(1),n.kI.max(1e3)]}),new s.ArrayField("availabilities",!1,[new s.DateField("fromDate","entity.Availability.fromDate",{required:!0,renderLabel:!1,initialValue:new Date}),new s.DateField("toDate","entity.Availability.toDate",{required:!0,renderLabel:!1,initialValue:(0,t.Pf)()}),new s.I18nMultiInput("info","entity.Availability.info",{renderLabel:!1}),new s.LanguageSelect("languages","entity.Availability.languages",{renderLabel:!1,optionProvider:s.ObjectLanguagesOptionProviderService,extractor:(0,s.arrayValueExtractor)("languages","id"),insertor:(0,s.arrayValueInsertor)("languages","id")})]),t.dR.createField("contactAddressbases",u()),s.IMX_PLATFORM_FIELDS.createField("entityState",u()),t.dR.createField("appearances"),t.dR.createField("pendingAppearances"),t.dR.createField("refusedAppearances"),s.IMX_PLATFORM_FIELDS.createField("media",(0,s.replaceEntityTypeInLabel)("AddressbaseImage")).addChildField(new s.PicklistSelect("productlines","",{optionProvider:s.AssignableProductlinesWithPortalContextOptionProviderService,optionProviderForVisibles:s.ProductlinesWithPortalContextOptionProviderService,extractor:(0,s.arrayValueExtractor)("productlines","id"),insertor:(0,s.arrayValueInsertor)("productlines","id"),rowLayout:!0})),new s.AnyField("geoCodeDataFromAddressbase","entity.Offer.geoCodeDataFromAddressbase"),...(0,s.geoInfoFields)(),s.IMX_PLATFORM_FIELDS.createField("author",u()),s.IMX_PLATFORM_FIELDS.createField("mediaLicense",u()),s.IMX_PLATFORM_FIELDS.createField("metainfos"),s.IMX_PLATFORM_FIELDS.createField("productlineIds"),s.IMX_PLATFORM_FIELDS.createField("regions",u()),s.IMX_PLATFORM_FIELDS.createField("regions_adv",u()),s.IMX_PLATFORM_FIELDS.createField("contentScore"),...(0,s.contactListsFields)(),new s.I18nMultiTextarea("additionalInfo","entity.Offer.additionalInfo"),new s.I18nMultiInput("availabilityTransferInfo","availability.info",{renderLabel:!1})]);let b=(()=>{class I extends s.AbstractCoreDataObjectFormHandler{constructor(O,P,G,B,ae,J,q,j,Y,K){super(O,[j.getModulesFormExtension("Offer"),...P||[]],B,ae,J,q,Y,G,K)}getEntityType(){return"Offer"}isContactAddressbaseEnabled(){return this.configurationProvider.getBooleanFromSnapshot(i.s.IMXTOOLS_CONTACT_ADDRESSBASE_ENABLED,!1)}static#e=this.\u0275fac=function(P){return new(P||I)(e.LFG(c),e.LFG(o,8),e.LFG(x,8),e.LFG(s.NgControlBuilderService),e.LFG(l.Xh),e.LFG(l.Ze),e.LFG(s.FormatterService),e.LFG(s.ModuleFormConfigurationService),e.LFG(p.B),e.LFG(s.ConfigurationProvider))};static#t=this.\u0275prov=e.Yz7({token:I,factory:I.\u0275fac})}return I})()},20623:(gt,X,a)=>{"use strict";a.d(X,{f:()=>i});var e=a(85829),n=a(96124),s=a(19212),l=a(71365);let i=(()=>{class t extends e.OptionProvider{constructor(c,o){super(),this.collectionsService=c,this.translateService=o}getOptions(c,o){return this.collectionsService.getAllAnnouncementTypes().pipe((0,n.U)(x=>x.map(u=>({label:u.i18nName,value:u.id}))))}static#e=this.\u0275fac=function(o){return new(o||t)(s.LFG(e.EntityCollectionsService),s.LFG(l.sK))};static#t=this.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},15343:(gt,X,a)=>{"use strict";a.d(X,{x:()=>t});var e=a(85829),n=a(21473),s=a(96124),l=a(19212),i=a(71365);let t=(()=>{class p extends e.OptionProvider{constructor(o,x){super(),this.entitiesMgrService=o,this.translateService=x}getOptions(o,x){return this.entitiesMgrService.getAllEntitiesOfType("CampingAttribute").pipe((0,s.U)(u=>u.items.map(m=>({label:m.i18nName,value:m.id})).sort((m,b)=>(0,e.compareI18n)(m.label,b.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(x){return new(x||p)(l.LFG(n.qB),l.LFG(i.sK))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},31564:(gt,X,a)=>{"use strict";a.d(X,{O:()=>t});var e=a(85829),n=a(21473),s=a(96124),l=a(19212),i=a(71365);let t=(()=>{class p extends e.OptionProvider{constructor(o,x){super(),this.entitiesMgrService=o,this.translateService=x}getOptions(o,x){return this.entitiesMgrService.getAllEntitiesOfType("CampingEndowment").pipe((0,s.U)(u=>u.items.map(m=>({label:m.i18nName,value:m.id})).sort((m,b)=>(0,e.compareI18n)(m.label,b.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(x){return new(x||p)(l.LFG(n.qB),l.LFG(i.sK))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},58038:(gt,X,a)=>{"use strict";a.d(X,{q:()=>p});var e=a(85829),n=a(49193),s=a(96124),l=a(75222),i=a(19212),t=a(71365);let p=(()=>{class c{constructor(x,u){this.entitiesMgrService=x,this.translateService=u}loadCertificates(){return this.entitiesMgrService.getAllEntitiesOfType("Certificate").pipe((0,s.U)(x=>x.items.map(u=>u).sort((u,m)=>(0,e.compareI18n)(u.i18nName,m.i18nName,this.translateService.currentLang))))}loadCertificateClassValues(){return this.entitiesMgrService.getAllEntitiesOfType("CertificateClassValue").pipe((0,s.U)(x=>x.items))}loadCertificatesByProductline(x){return this.loadCertificates().pipe((0,s.U)(u=>u.filter(m=>m.modules.some(b=>b.id===x))))}certificatesAvailableForProductline(x){return this.loadCertificatesByProductline(x).pipe((0,l.w)(u=>(0,n.of)(u.length>0)))}static#e=this.\u0275fac=function(u){return new(u||c)(i.LFG(e.ImxEntitiesMgrService),i.LFG(t.sK))};static#t=this.\u0275prov=i.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})()},42894:(gt,X,a)=>{"use strict";a.d(X,{U:()=>t});var e=a(85829),n=a(21473),s=a(96124),l=a(19212),i=a(71365);let t=(()=>{class p extends e.OptionProvider{constructor(o,x){super(),this.entitiesMgrService=o,this.translateService=x}getOptions(o,x){return this.entitiesMgrService.getAllEntitiesOfType("ConventionRoomAttribute").pipe((0,s.U)(u=>u.items.map(m=>({label:m.i18nName,value:m.id})).sort((m,b)=>(0,e.compareI18n)(m.label,b.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(x){return new(x||p)(l.LFG(n.qB),l.LFG(i.sK))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},71467:(gt,X,a)=>{"use strict";a.d(X,{j:()=>t});var e=a(85829),n=a(21473),s=a(96124),l=a(19212),i=a(71365);let t=(()=>{class p extends e.OptionProvider{constructor(o,x){super(),this.entitiesMgrService=o,this.translateService=x}getOptions(o,x){return this.entitiesMgrService.getAllEntitiesOfType("ConventionLocationType").pipe((0,s.U)(u=>u.items.map(m=>({label:m.i18nName,value:m.id})).sort((m,b)=>(0,e.compareI18n)(m.label,b.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(x){return new(x||p)(l.LFG(n.qB),l.LFG(i.sK))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},28088:(gt,X,a)=>{"use strict";a.d(X,{J:()=>t});var e=a(85829),n=a(21473),s=a(96124),l=a(19212),i=a(71365);let t=(()=>{class p extends e.OptionProvider{constructor(o,x){super(),this.entitiesMgrService=o,this.translateService=x}getOptions(o,x){return this.entitiesMgrService.getAllEntitiesOfType("ConventionLocationAttribute").pipe((0,s.U)(u=>u.items.map(m=>({label:m.i18nName,value:m.id})).sort((m,b)=>(0,e.compareI18n)(m.label,b.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(x){return new(x||p)(l.LFG(n.qB),l.LFG(i.sK))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},50629:(gt,X,a)=>{"use strict";a.d(X,{q:()=>l});var e=a(85829),n=a(96124),s=a(19212);let l=(()=>{class i extends e.OptionProvider{constructor(p,c){super(),this.entitiesMgr=p,this.readI18nPipe=c}getOptions(p,c){return this.entitiesMgr.getAllEntitiesOfType("DayDefinition").pipe((0,n.U)(o=>o.items.map(u=>({label:this.readI18nPipe.transform(u.i18nName),value:u.id}))))}static#e=this.\u0275fac=function(c){return new(c||i)(s.LFG(e.ImxEntitiesMgrService),s.LFG(e.ReadI18nPipe))};static#t=this.\u0275prov=s.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})()},13831:(gt,X,a)=>{"use strict";a.d(X,{G:()=>t});var e=a(85829),n=a(96124),s=a(33066),l=a(19212),i=a(71365);let t=(()=>{class p extends e.OptionProvider{constructor(o,x){super(),this.collectionsService=o,this.translateService=x}getOptions(o,x){const u=new e.ReadI18nPipe(this.translateService);return this.collectionsService.getAllDistanceDefinitions().pipe((0,n.U)(m=>m.map(I=>({label:I.i18nName?u.transform(I.i18nName)+" ["+u.transform(I.group.i18nName)+"]":"",value:I.id})).reverse()))}static#e=this.\u0275fac=function(x){return new(x||p)(l.LFG(s.G),l.LFG(i.sK))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},99264:(gt,X,a)=>{"use strict";a.d(X,{J:()=>t});var e=a(85829),n=a(21473),s=a(96124),l=a(19212),i=a(71365);let t=(()=>{class p extends e.OptionProvider{constructor(o,x){super(),this.entitiesMgrService=o,this.translateService=x}getOptions(o,x){return this.entitiesMgrService.getAllEntitiesOfType("Gastro2BusinessType").pipe((0,s.U)(u=>u.items.map(m=>({label:m.i18nName,value:m.id})).sort((m,b)=>(0,e.compareI18n)(m.label,b.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(x){return new(x||p)(l.LFG(n.qB),l.LFG(i.sK))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},52284:(gt,X,a)=>{"use strict";a.d(X,{t:()=>t});var e=a(85829),n=a(21473),s=a(96124),l=a(19212),i=a(71365);let t=(()=>{class p extends e.OptionProvider{constructor(o,x){super(),this.entitiesMgrService=o,this.translateService=x}getOptions(o,x){return this.entitiesMgrService.getAllEntitiesOfType("Gastro2CuisineType").pipe((0,s.U)(u=>u.items.map(m=>({label:m.i18nName,value:m.id})).sort((m,b)=>(0,e.compareI18n)(m.label,b.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(x){return new(x||p)(l.LFG(n.qB),l.LFG(i.sK))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},95471:(gt,X,a)=>{"use strict";a.d(X,{k:()=>t});var e=a(85829),n=a(21473),s=a(96124),l=a(19212),i=a(71365);let t=(()=>{class p extends e.OptionProvider{constructor(o,x){super(),this.entitiesMgrService=o,this.translateService=x}getOptions(o,x){return this.entitiesMgrService.getAllEntitiesOfType("Gastro2Endowment").pipe((0,s.U)(u=>u.items.map(m=>({label:m.i18nName,value:m.id})).sort((m,b)=>(0,e.compareI18n)(m.label,b.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(x){return new(x||p)(l.LFG(n.qB),l.LFG(i.sK))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},50341:(gt,X,a)=>{"use strict";a.d(X,{b:()=>t});var e=a(85829),n=a(21473),s=a(96124),l=a(19212),i=a(71365);let t=(()=>{class p extends e.OptionProvider{constructor(o,x){super(),this.entitiesMgrService=o,this.translateService=x}getOptions(o,x){return this.entitiesMgrService.getAllEntitiesOfType("IbeDeskline3InfrastructureHolidayTheme").pipe((0,s.U)(u=>u.items.map(m=>({label:m.i18nName,value:m.id})).sort((m,b)=>(0,e.compareI18n)(m.label,b.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(x){return new(x||p)(l.LFG(n.qB),l.LFG(i.sK))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},50225:(gt,X,a)=>{"use strict";a.d(X,{F:()=>t});var e=a(85829),n=a(96124),s=a(33066),l=a(19212),i=a(71365);let t=(()=>{class p extends e.OptionProvider{constructor(o,x){super(),this.collectionsService=o,this.translateService=x}getOptions(o,x){return this.collectionsService.getAllPaymentOptions().pipe((0,n.U)(u=>u.map(m=>({label:m.i18nName,value:m.id})).sort((m,b)=>(0,e.compareI18n)(m.label,b.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(x){return new(x||p)(l.LFG(s.G),l.LFG(i.sK))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},27553:(gt,X,a)=>{"use strict";a.d(X,{V:()=>i});var e=a(85829),n=a(21473),s=a(96124),l=a(19212);let i=(()=>{class t extends e.OptionProvider{constructor(c){super(),this.entitiesMgrService=c}getOptions(c,o){return this.entitiesMgrService.getAllEntitiesOfType("PriceCurrency").pipe((0,s.U)(x=>x.items.map(u=>({label:u.i18nName,value:u.id?u.id:-1}))))}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(n.qB))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},47928:(gt,X,a)=>{"use strict";a.d(X,{K:()=>t});var e=a(85829),n=a(21473),s=a(96124),l=a(19212),i=a(71365);let t=(()=>{class p extends e.OptionProvider{constructor(o,x){super(),this.entitiesMgrService=o,this.translateService=x}getOptions(o,x){return this.entitiesMgrService.getAllEntitiesOfType("PriceItemCategory").pipe((0,s.U)(u=>u.items.map(m=>({label:m.i18nName,value:m.id?m.id:-1})).sort((m,b)=>(0,e.compareI18n)(m.label,b.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(x){return new(x||p)(l.LFG(n.qB),l.LFG(i.sK))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},66676:(gt,X,a)=>{"use strict";a.d(X,{N:()=>i});var e=a(85829),n=a(21473),s=a(96124),l=a(19212);let i=(()=>{class t extends e.OptionProvider{constructor(c){super(),this.entitiesMgrService=c}getOptions(c,o){return this.entitiesMgrService.getAllEntitiesOfType("TourAttribute").pipe((0,s.U)(x=>x.items.map(u=>({label:u.i18nName,value:u.id?u.id:-1}))))}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(n.qB))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},67493:(gt,X,a)=>{"use strict";a.d(X,{E:()=>i});var e=a(85829),n=a(21473),s=a(96124),l=a(19212);let i=(()=>{class t extends e.OptionProvider{constructor(c){super(),this.entitiesMgrService=c}getOptions(c,o){return this.entitiesMgrService.getAllEntitiesOfType("TourExposition").pipe((0,s.U)(x=>x.items.map(u=>({label:u.i18nName||u.name,value:u.id?u.id:-1}))))}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(n.qB))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},14805:(gt,X,a)=>{"use strict";a.d(X,{h:()=>i});var e=a(85829),n=a(21473),s=a(96124),l=a(19212);let i=(()=>{class t extends e.OptionProvider{constructor(c){super(),this.entitiesMgrService=c}getOptions(c,o){return this.entitiesMgrService.getAllEntitiesOfType("TourMonth").pipe((0,s.U)(x=>x.items.map(u=>({label:u.i18nName||u.name,value:u.id?u.id:-1}))))}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(n.qB))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},12624:(gt,X,a)=>{"use strict";a.d(X,{A:()=>i});var e=a(85829),n=a(21473),s=a(96124),l=a(19212);let i=(()=>{class t extends e.OptionProvider{constructor(c){super(),this.entitiesMgrService=c}getOptions(c,o){return this.entitiesMgrService.getAllEntitiesOfType("TourTrackType").pipe((0,s.U)(x=>x.items.map(u=>({label:u.i18nName,value:u.id?u.id:-1}))))}static#e=this.\u0275fac=function(o){return new(o||t)(l.LFG(n.qB))};static#t=this.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},86374:(gt,X,a)=>{"use strict";a.d(X,{Am:()=>p,G5:()=>s,Pg:()=>l,iz:()=>i,qd:()=>t});var e=a(19212),n=a(85829),s=function(c){return c.ADDRESSBASE_LIST_BOTTOM_ROW_SLOT="ADDRESSBASE_LIST_BOTTOM_ROW_SLOT",c.EDIT_TITLES_SLOT="EDIT_TITLES_SLOT",c.ADDRESSBASE_DUPLICATE_CONTENT_SLOT="ADDRESSBASE_DUPLICATE_CONTENT_SLOT",c}(s||{});const l=new e.OlP("imxtools.addressbase.list.bottom.slot"),i=new e.OlP("imxtools.edit.titles.slot"),t=new e.OlP("imxtools.addressbase.duplicate.content.slot");let p=(()=>{class c extends n.BaseSlotProvider{constructor(){super(),super.addComponentMapping(s.ADDRESSBASE_LIST_BOTTOM_ROW_SLOT,l),super.addComponentMapping(s.EDIT_TITLES_SLOT,i),super.addComponentMapping(s.ADDRESSBASE_DUPLICATE_CONTENT_SLOT,t)}static#e=this.\u0275fac=function(u){return new(u||c)};static#t=this.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})()},99879:(gt,X,a)=>{"use strict";a.d(X,{i:()=>n});var e=a(85829);class n{static#e=this.F_ADDRESSBASE_ALL={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Addressbase:*"};static#t=this.F_ADDRESSBASE_CREATE={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Addressbase:C"};static#n=this.F_ADDRESSBASE_READ_ALL={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Addressbase_All:R"};static#i=this.F_ADDRESSBASE_UPDATE_ALL={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Addressbase_All:U"};static#o=this.F_ADDRESSBASE_DELETE_ALL={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Addressbase_All:D"};static#r=this.F_ADDRESSBASE_READ_OWN_CLIENT={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Addressbase_OwnClient:R"};static#a=this.F_ADDRESSBASE_UPDATE_OWN_CLIENT={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Addressbase_OwnClient:U"};static#s=this.F_ADDRESSBASE_DELETE_OWN_CLIENT={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Addressbase_OwnClient:D"};static#l=this.F_ADDRESSBASE_READ_OWN_USER={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Addressbase_OwnUser:R"};static#c=this.F_ADDRESSBASE_UPDATE_OWN_USER={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Addressbase_OwnUser:U"};static#d=this.F_ADDRESSBASE_DELETE_OWN_USER={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Addressbase_OwnUser:D"};static#m=this.F_ADDRESSBASE_ASSIGN_USER={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Addressbase_AssignUser:*"};static#u=this.F_STAT_ADDRESSBASE_EXPORT={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Statistics:AddressbaseExport"};static#p=this.F_OFFER_ALL={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Offer:*"};static#_=this.F_OFFER_CREATE={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Offer:C"};static#f=this.F_OFFER_READ_ALL={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Offer_All:R"};static#g=this.F_OFFER_UPDATE_ALL={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Offer_All:U"};static#h=this.F_OFFER_DELETE_ALL={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Offer_All:D"};static#x=this.F_OFFER_READ_OWN_CLIENT={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Offer_OwnClient:R"};static#v=this.F_OFFER_UPDATE_OWN_CLIENT={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Offer_OwnClient:U"};static#b=this.F_OFFER_DELETE_OWN_CLIENT={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Offer_OwnClient:D"};static#C=this.F_OFFER_READ_OWN_USER={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Offer_OwnUser:R"};static#y=this.F_OFFER_UPDATE_OWN_USER={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Offer_OwnUser:U"};static#O=this.F_OFFER_DELETE_OWN_USER={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Offer_OwnUser:D"};static#P=this.F_STAT_OFFER_EXPORT={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"Statistics:OfferExport"};static#M=this.F_ADDRESSBASE_APPEARANCE={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"AddressbaseAppearance:*"};static#T=this.F_ADDRESSBASE_APPEARANCE_CONFIRM={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"AddressbaseAppearance:Confirm"};static#E=this.F_ADDRESSBASE_APPEARANCE_REFUSE={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"AddressbaseAppearance:Refuse"};static#A=this.F_OFFER_APPEARANCE={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"OfferAppearance:*"};static#w=this.F_OFFER_APPEARANCE_CONFIRM={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"OfferAppearance:Confirm"};static#D=this.F_OFFER_APPEARANCE_REFUSE={name:e.ImxPermissions.PREFIX_FUNCTION_PERMISSIONS+"OfferAppearance:Refuse"}}},4220:(gt,X,a)=>{"use strict";a.d(X,{a:()=>BD});var e=a(96814),n=a(34423),s=a(56223),l=a(22941),i=a(24630),t=a(32296),p=a(49488),c=a(75986),o=a(23680),x=a(38034),u=a(17700),m=a(26385),b=a(3305),I=a(73176),H=a(30617),O=a(2032),P=a(59038),G=a(21476),B=a(16007),ae=a(55940),J=a(87466),q=a(98525),j=a(32651),Y=a(82599),K=a(92202),ne=a(22939),ee=a(13566),$=a(61545),ue=a(25313),ge=a(81274),Ke=a(92596),at=a(98445),Le=a(8386),R=a(85829),Te=a(21473),me=a(23212),Se=a(67338),Ue=a(17919),We=a(1431),et=a(71365),Et=a(67742),lt=a(32279),Vt=a(37966),r=a(19212);let Z=(()=>{class v extends R.AbstractDatamanagerAction{constructor(F,re,ze,It){super(F,re,ze,It),this.dialog=F,this.dataAccess=re,this.entityStateDao=ze,this.userMessageService=It}getActionLabelKey(){return"imxtools2.gui.list.addressbase-dm.action.createClone"}getActionKey(){return"addressbase-dm-action-createClone"}getEntityType(){return"Addressbase"}getIcon(){return"icon-copy"}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})(),Pt=(()=>{class v extends R.AbstractDatamanagerAction{constructor(F,re,ze,It){super(F,re,ze,It),this.dialog=F,this.dataAccess=re,this.entityStateDao=ze,this.userMessageService=It}getActionLabelKey(){return"imxtools2.gui.list.addressbase-dm.action.create"}getActionKey(){return"addressbase-dm-action-create"}getEntityType(){return"Addressbase"}getIcon(){return"icon-file-add"}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})(),Oe=(()=>{class v extends R.AbstractDatamanagerAction{constructor(F,re,ze,It){super(F,re,ze,It),this.dialog=F,this.dataAccess=re,this.entityStateDao=ze,this.userMessageService=It}getActionLabelKey(){return"imxtools2.gui.list.addressbase-dm.action.deactivate"}getActionKey(){return"addressbase-dm-action-deactivate"}getEntityType(){return"Addressbase"}getIcon(){return"icon-earth"}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})(),ye=(()=>{class v extends R.AbstractDatamanagerAction{constructor(F,re,ze,It,vo){super(F,re,ze,It),this.dialog=F,this.dataAccess=re,this.entityStateDao=ze,this.userMessageService=It,this.router=vo}getActionLabelKey(){return"imxtools2.gui.list.addressbase-dm.action.edit"}shouldUserMessageBeShown(){return!1}getActionKey(){return"addressbase-dm-action-edit"}getEntityType(){return"Addressbase"}getIcon(){return"icon-pencil"}executeAfterActionComplete(F){this.contextNavigationService.navigateToCoreEntityContextual(["addressbases","edit",F.id])}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService),r.LFG(l.F0))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})(),ve=(()=>{class v extends R.AbstractDatamanagerAction{constructor(F,re,ze,It){super(F,re,ze,It),this.dialog=F,this.dataAccess=re,this.entityStateDao=ze,this.userMessageService=It}getActionLabelKey(){return"imxtools2.gui.list.addressbase-dm.action.forDelete"}getActionKey(){return"addressbase-dm-action-forDelete"}getEntityType(){return"Addressbase"}getIcon(){return"icon-earth"}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})(),ft=(()=>{class v extends R.AbstractDatamanagerAction{constructor(F,re,ze,It){super(F,re,ze,It),this.dialog=F,this.dataAccess=re,this.entityStateDao=ze,this.userMessageService=It}getActionLabelKey(){return"imxtools2.gui.list.addressbase-dm.action.delete"}getActionKey(){return"addressbase-dm-action-delete"}getEntityType(){return"Addressbase"}getIcon(){return"icon-trash"}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})();var Dt=a(54699);let Rn=(()=>{class v extends R.AbstractDatamanagerAction{constructor(F,re,ze,It){super(F,re,ze,It),this.dialog=F,this.dataAccess=re,this.entityStateDao=ze,this.userMessageService=It}doExecute(F){return new Dt.y(re=>{this.dialog.open(R.DatamanagerInspectDialogComponent,{maxWidth:500,data:{selectedClientId:-1,headerKey:"imxtools2.gui.list.addressbase-dm.action.inspect-header",submitKey:"imxtools2.gui.list.addressbase-dm.action.inspect-submit",textKey:"imxtools2.gui.list.addressbase-dm.action.inspect-text",selectKey:"imxtools2.gui.list.addressbase-dm.action.inspect-client",entityClientId:F.client.id}}).afterClosed().subscribe(It=>{if(It&&It.selectedClientId>-1)return super.doExecute(F,{selectedClientId:It.selectedClientId}).subscribe(Os=>re.next(!0))})})}getActionLabelKey(){return"imxtools2.gui.list.addressbase-dm.action.inspect"}getActionKey(){return"addressbase-dm-action-inspect"}getEntityType(){return"Addressbase"}getIcon(){return"icon-earth"}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})(),ti=(()=>{class v extends R.AbstractDatamanagerAction{constructor(F,re,ze,It){super(F,re,ze,It),this.dialog=F,this.dataAccess=re,this.entityStateDao=ze,this.userMessageService=It}getActionLabelKey(){return"imxtools2.gui.list.addressbase-dm.action.publish"}getActionKey(){return"addressbase-dm-action-publish"}getEntityType(){return"Addressbase"}getIcon(){return"icon-earth"}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})(),Xt=(()=>{class v extends R.AbstractDatamanagerAction{constructor(F,re,ze,It){super(F,re,ze,It),this.dialog=F,this.dataAccess=re,this.entityStateDao=ze,this.userMessageService=It}getActionLabelKey(){return"imxtools2.gui.list.addressbase-dm.action.refuse"}getActionKey(){return"addressbase-dm-action-refuse"}getEntityType(){return"Addressbase"}getIcon(){return"icon-earth"}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})();var Je=a(96124),dt=a(21223);let Ie=(()=>{class v extends R.AbstractClientSideBackgroundAction{constructor(F,re,ze,It,vo,Os){super(F,re,ze,It,vo),this.dialog=F,this.dataAccess=re,this.entityStateDao=ze,this.userMessageService=It,this.backgroundActionService=vo,this.toolsDataAccessService=Os}doExecute(F,re){return new Dt.y(ze=>{const It=this.toolsDataAccessService.createDuplicateGroups(F).pipe((0,Je.U)(vo=>[1]));this.executeInBackground({entityIds:[],ids:1,operation:It}),ze.next(!0)})}getEntityType(){return"AddressbaseDefineDuplicate"}executeBatch(F,re){}getIcon(){return""}getActionKey(){return"addressbase-duplicates-action-define_duplicate_groups"}getSuccessKey(){return"imxplatform.duplicate.list.action.define-duplicate.success"}getActionLabelKey(){return"imxplatform.duplicate.list.action.define-duplicate.header"}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService),r.LFG(R.BackgroundActionService),r.LFG(dt.N))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})();var ot=a(28321);const ct="Addressbase";let tn=(()=>{class v extends R.AbstractClientSideBackgroundAction{constructor(F,re,ze,It,vo){super(F,re,ze,It,vo),this.dialog=F,this.dataAccess=re,this.entityStateDao=ze,this.userMessageService=It,this.backgroundActionService=vo,this.logger=(0,R.getLogger)("AddressbaseImxsearchIndexAction",ot.H.name)}doExecute(F){return new Dt.y(re=>{this.dialog.open(R.ConfirmDialogComponent,{maxWidth:450,data:{title:"imxtools.addressbase.list.action.imxsearch-index.header",text:"imxtools.addressbase.list.action.imxsearch-index.text",iconClass:"icon-refresh",translated:!1,confirmButtonKey:"imxplatform.common.yes"}}).afterClosed().subscribe(It=>{if(It){const vo=this.createActionCall(ct,F);this.executeInBackground({entityIds:[F.id],ids:1,operation:this.dataAccess.callAction(vo)}),re.next(!0)}})})}executeBatch(F){return new Dt.y(re=>{this.dialog.open(R.ConfirmDialogComponent,{maxWidth:450,data:{title:"imxtools.addressbase.list.action.imxsearch-index.header",text:"imxtools.addressbase.list.action.imxsearch-index.batch-text",iconClass:"icon-refresh",translated:!1,confirmButtonKey:"imxplatform.common.yes"}}).afterClosed().subscribe(It=>{if(It){const vo=this.createActionCallForBatch(ct,F);this.executeInBackground({entityIds:F,ids:F.length,operation:this.dataAccess.callAction(vo)}),re.next(!0)}})})}getEntityType(){return"Addressbase"}getSuccessKey(){return"imxtools.addressbase.list.action.imxsearch-index.successful"}getBatchWarningKey(){return"imxtools.addressbase.list.action.imxsearch-index.batch-warning"}getActionKey(){return"addressbase-action-imxsearch-index"}getIcon(){return"icon-refresh"}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService),r.LFG(R.BackgroundActionService))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})();const yi="Addressbase";let ni=(()=>{class v extends R.AbstractClientSideBackgroundAction{constructor(F,re,ze,It,vo){super(F,re,ze,It,vo),this.dialog=F,this.dataAccess=re,this.entityStateDao=ze,this.userMessageService=It,this.backgroundActionService=vo,this.logger=(0,R.getLogger)("AddressbaseInvalidateCacheAction",ot.H.name)}doExecute(F){return new Dt.y(re=>{this.dialog.open(R.ConfirmDialogComponent,{maxWidth:450,data:{title:"imxtools.addressbase.list.action.invalidate-cache.header",text:"imxtools.addressbase.list.action.invalidate-cache.text",iconClass:"icon-refresh",translated:!1,confirmButtonKey:"imxplatform.common.yes"}}).afterClosed().subscribe(It=>{if(It){const vo=this.createActionCall(yi,F);this.executeInBackground({entityIds:[F.id],ids:1,operation:this.dataAccess.callAction(vo)}),re.next(!0)}})})}executeBatch(F){return new Dt.y(re=>{this.dialog.open(R.ConfirmDialogComponent,{maxWidth:450,data:{title:"imxtools.addressbase.list.action.invalidate-cache.header",text:"imxtools.addressbase.list.action.invalidate-cache.batch-text",iconClass:"icon-refresh",translated:!1,confirmButtonKey:"imxplatform.common.yes"}}).afterClosed().subscribe(It=>{if(It){const vo=this.createActionCallForBatch(yi,F);this.executeInBackground({entityIds:F,ids:F.length,operation:this.dataAccess.callAction(vo)}),re.next(!0)}})})}getEntityType(){return"Addressbase"}getSuccessKey(){return"imxtools.addressbase.list.action.invalidate-cache.successful"}getBatchWarningKey(){return"imxtools.addressbase.list.action.invalidate-cache.batch-warning"}getActionKey(){return"addressbase-action-invalidate-cache"}getIcon(){return"icon-refresh"}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService),r.LFG(R.BackgroundActionService))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})();var sn=a(77504);let vt=(()=>{class v extends R.AbstractAction{constructor(F,re,ze,It,vo){super(F,re,It,vo),this.dialog=F,this.dataAccess=re,this.imxToolsAccess=ze,this.entityStateDao=It,this.userMessageService=vo,this.logger=(0,R.getLogger)("AddressbaseMergeDuplicateAction",ot.H.name)}getOrder(){return this.ACTION_ORDER_MERGE}getAddressbases(F){const re=[];return F.forEach(ze=>re.push(this.imxToolsAccess.getAddressbaseById(ze))),(0,sn.D)(re)}doExecute(F){throw new Error("AddressbaseMergeDuplicatesAction can not be called on a single Addressbase")}executeBatch(F){return new Dt.y(re=>{this.getAddressbases(F).subscribe(It=>{this.dialog.open(R.ExtendedDuplicatesDialogComponent,{maxWidth:850,data:{duplicates:It,inheritMediaType:"WITH_CONTEXT_PLS",inheritTexts:!1,inheritAppearances:!1,inheritInputFields:!1,inheritContactAddressbaseAssignment:!1,inheritAttributes:!1}}).afterClosed().subscribe(Os=>{if(Os){const xd=this.createActionCallForBatch("Addressbase",F,{masterId:Os.masterId,inheritTexts:Os.inheritTexts,inheritAppearances:Os.inheritAppearances,inheritInputFields:Os.inheritInputFields,inheritContactAddressbaseAssignment:Os.inheritContactAddressbaseAssignment,inheritAttributes:Os.inheritAttributes,inheritMediaType:Os.inheritMediaType});this.logger.info("Merge duplicates for addressbase: "+JSON.stringify(xd)),this.dataAccess.callAction(xd).subscribe(yO=>{this.validateBatchResult(F,yO),this.showSuccessMessage(yO),re.next(!0)})}})})})}getBatchWarningKey(){return"imxtools.addressbase.list.action.merge-duplicates.batch-warning"}getSuccessKey(){return"imxtools.addressbase.list.action.merge-duplicates.successful"}getActionKey(){return"addressbase-action-merge-duplicates"}getIcon(){return"icon-undo_duplicate"}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(dt.N),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})();var nn=a(72079),rn=a(19352),ii=a(33066),Oo=a(96747),no=a(36116),Li=a(12);let ji=(()=>{class v{constructor(F,re,ze,It){this.entitiesMgrService=F,this.collectionsService=re,this.formHandler=ze,this.data=It,this.destroy$=new nn.xQ,this.productlineOptions=[],this.prioLevels=[]}ngOnInit(){this.setRequiredFields();const F=this.data.entity.metainfos.map(re=>re.productline.id);this.entitiesMgrService.getEntityWithIdsOfType("Productline",F).pipe((0,rn.R)(this.destroy$)).subscribe(re=>{re.forEach(ze=>{ze.asPortalContext&&this.productlineOptions.push({value:ze.id,label:ze.i18nName})})}),this.initPrioLevels("Addressbase"===this.data.entityType)}addRequiredValidatorForControlAndEnable(F,re,ze=!0){this.formHandler.formGroup.get(F).enable({emitEvent:!1}),this.formHandler.formGroup.get(F).setValidators(re),this.formHandler.formConfiguration.findFormFieldById(F).required=ze,this.formHandler.formGroup.get(F).updateValueAndValidity({emitEvent:!1})}setRequiredFields(){this.addRequiredValidatorForControlAndEnable("prioLevelId",R.selectValueRequiredValidator)}initPrioLevels(F){this.collectionsService.getAllPrioLevels().pipe((0,Je.U)(re=>re.filter(It=>F?It.usedForAddressbases:It.usedForOffers).map(It=>({label:It.name,value:It.id})).sort((It,vo)=>vo.label.localeCompare(It.label)).reverse())).subscribe(re=>this.prioLevels=re)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(ii.G),r.Y36(R.ProposeAppearanceActionFormHandlerService),r.Y36(u.WI))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["ng-component"]],decls:5,vars:18,consts:[[3,"entity","header"],[3,"lg_w","sm_w","ty_w"],[3,"field","control","form","formHandler","optionProvider"]],template:function(re,ze){1&re&&(r.TgZ(0,"imx-propose-appearance-base",0)(1,"imx-grid-element",1),r._UZ(2,"imx-select",2),r.qZA(),r.TgZ(3,"imx-grid-element",1),r._UZ(4,"imx-select",2),r.qZA()()),2&re&&(r.Q6J("entity",ze.data.entity)("header",ze.data.header),r.xp6(),r.Q6J("lg_w",6)("sm_w",6)("ty_w",12),r.xp6(),r.Q6J("field",ze.formHandler.formConfiguration.findFormFieldById("prioLevelId"))("control",ze.formHandler.formGroup.get("prioLevelId"))("form",ze.formHandler.formGroup)("formHandler",ze.formHandler)("optionProvider",ze.prioLevels),r.xp6(),r.Q6J("lg_w",6)("sm_w",6)("ty_w",12),r.xp6(),r.Q6J("field",ze.formHandler.formConfiguration.findFormFieldById("contextProductlineId"))("control",ze.formHandler.formGroup.get("contextProductlineId"))("form",ze.formHandler.formGroup)("formHandler",ze.formHandler)("optionProvider",ze.productlineOptions))},dependencies:[Oo.p,no.H,Li.V]})}return v})();class Ii extends R.AbstractAction{constructor(Ne,F,re,ze){super(Ne,F,re,ze),this.dialog=Ne,this.dataAccess=F,this.entityStateDao=re,this.userMessageService=ze,this.logger=(0,Te.jl)("AbstractToolsProposeAppearanceAction",ot.H.name)}getOrder(){return this.ACTION_ORDER_PROPOSE_APPEARANCE}doExecute(Ne){return new Dt.y(F=>{this.dialog.open(ji,{...R.DialogDefaultSizes.FORM_MEDIUM,data:{header:this.getActionLabelKey(),entityType:this.getEntityType(),entity:Ne}}).afterClosed().subscribe(ze=>{if(ze){let It={};It=ze,It.languageIds&&(It.languageIds=It.languageIds.map(Os=>Os.id).join());const vo=this.createActionCall(this.getEntityType(),Ne,It);this.logger.info("AbstractProposeAppearanceAction: "+JSON.stringify(vo)),this.dataAccess.callAction(vo).subscribe(Os=>{this.showSuccessMessageForSingleAction(Os),F.next(!0)})}})})}executeBatch(Ne){return new Dt.y(F=>{F.next(!0)})}getBatchWarningKey(){return""}getIcon(){return"icon-earth"}}let _i=(()=>{class v extends Ii{constructor(F,re,ze,It){super(F,re,ze,It),this.dialog=F,this.dataAccess=re,this.entityStateDao=ze,this.userMessageService=It}getEntityType(){return"Addressbase"}getSuccessKey(){return"imxtools.addressbase.list.action.propose-appearance.successful"}getActionKey(){return"addressbase-action-propose-appearances"}getActionLabelKey(){return"imxtools.addressbase.list.action.propose-appearance.header"}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})(),co=(()=>{class v extends R.AbstractClientSideBackgroundAction{constructor(F,re,ze,It,vo){super(F,re,ze,It,vo),this.dialog=F,this.dataAccess=re,this.entityStateDao=ze,this.userMessageService=It,this.backgroundActionService=vo,this.logger=(0,R.getLogger)("OfferImxsearchIndexAction",ot.H.name)}doExecute(F){return new Dt.y(re=>{this.dialog.open(R.ConfirmDialogComponent,{maxWidth:450,data:{title:"imxtools.offer.list.action.imxsearch-index.header",text:"imxtools.offer.list.action.imxsearch-index.text",iconClass:"icon-refresh",translated:!1,confirmButtonKey:"imxplatform.common.yes"}}).afterClosed().subscribe(It=>{if(It){const vo=this.createActionCall("Offer",F);this.executeInBackground({entityIds:[F.id],ids:1,operation:this.dataAccess.callAction(vo)}),re.next(!0)}})})}executeBatch(F){return new Dt.y(re=>{this.dialog.open(R.ConfirmDialogComponent,{maxWidth:450,data:{title:"imxtools.offer.list.action.imxsearch-index.header",text:"imxtools.offer.list.action.imxsearch-index.batch-text",iconClass:"icon-refresh",translated:!1,confirmButtonKey:"imxplatform.common.yes"}}).afterClosed().subscribe(It=>{if(It){const vo=this.createActionCallForBatch("Offer",F);this.executeInBackground({entityIds:F,ids:F.length,operation:this.dataAccess.callAction(vo)}),re.next(!0)}})})}getEntityType(){return"Offer"}getSuccessKey(){return"imxtools.offer.list.action.imxsearch-index.successful"}getBatchWarningKey(){return"imxtools.offer.list.action.imxsearch-index.batch-warning"}getActionKey(){return"offer-action-imxsearch-index"}getIcon(){return"icon-refresh"}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService),r.LFG(R.BackgroundActionService))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})(),yn=(()=>{class v extends Ii{constructor(F,re,ze,It){super(F,re,ze,It),this.dialog=F,this.dataAccess=re,this.entityStateDao=ze,this.userMessageService=It}getEntityType(){return"Offer"}getSuccessKey(){return"imxtools.offer.list.action.propose-appearance.successful"}getActionKey(){return"offer-action-propose-appearances"}getActionLabelKey(){return"imxtools.offer.list.action.propose-appearance.header"}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})(),ln=(()=>{class v extends R.AbstractProposedAppearancesConfirmAction{constructor(F,re,ze,It){super(F,re,ze,It),this.dialog=F,this.dataAccess=re,this.entityStateDao=ze,this.userMessageService=It}getActionKey(){return"addressbase-action-confirm-pending-appearances"}getEntityType(){return"Addressbase"}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})(),He=(()=>{class v extends R.AbstractProposedAppearancesRefuseAction{constructor(F,re,ze,It){super(F,re,ze,It),this.dialog=F,this.dataAccess=re,this.entityStateDao=ze,this.userMessageService=It}getActionKey(){return"addressbase-action-refuse-pending-appearances"}getEntityType(){return"Addressbase"}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})(),rt=(()=>{class v extends R.AbstractTranslateAction{constructor(F,re,ze,It,vo,Os){super(F,re,It,vo,Os),this.dialog=F,this.dataAccess=re,this.imxToolsAccess=ze,this.entityStateDao=It,this.userMessageService=vo,this.runtimeContextService=Os,this.logger=(0,R.getLogger)("AddressbaseTranslateAction",ot.H.name)}getBatchWarningKey(){return"imxtools.addressbase.list.action.merge-duplicates.batch-warning"}getSuccessKey(){return"imxtools.addressbase.list.action.translate.successful"}getActionKey(){return"addressbase-action-translate"}getLogger(){return this.logger}getType(){return"Addressbase"}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(dt.N),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService),r.LFG(Te.Ze))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})(),$e=(()=>{class v extends R.AbstractProposedAppearancesConfirmAction{constructor(F,re,ze,It){super(F,re,ze,It),this.dialog=F,this.dataAccess=re,this.entityStateDao=ze,this.userMessageService=It}getActionKey(){return"offer-action-confirm-pending-appearances"}getEntityType(){return"Offer"}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})(),Ve=(()=>{class v extends R.AbstractProposedAppearancesRefuseAction{constructor(F,re,ze,It){super(F,re,ze,It),this.dialog=F,this.dataAccess=re,this.entityStateDao=ze,this.userMessageService=It}getActionKey(){return"offer-action-refuse-pending-appearances"}getEntityType(){return"Offer"}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})();var Ce=a(66550);let tt=(()=>{class v{constructor(F){this.toolsDataAccessService=F}getEntityType(){return R.CoreEntityDef.OFFER_ENTITY.type}getAutocompleteHolders(F,re,ze){return this.toolsDataAccessService.getOfferAutocomplete(F,re,ze)}getAutocompleteHoldersFiltered(F,re,ze){return this.toolsDataAccessService.genericGetCoreEntityFiltered(R.CoreEntityDef.OFFER_ENTITY.apiPrefix,F,re,ze)}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(dt.N))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})();const ht=new r.OlP("imxtools.ibeconfiglocationmapping.datasource");let Qt=(()=>{class v extends R.ClientSideFilteringBaseEntityDataSourceService{constructor(F,re){super(F,re),this.locationNames=new Map,this.entitiesMgr.getAllEntitiesOfType("Location").subscribe(ze=>{ze.items.forEach(It=>{this.locationNames.set(It.id,It.name)})})}fetchResultsByFilter(F,re){return super.fetchResultsByFilter(F,re).pipe((0,Je.U)(It=>new Te.BY(It.items.map(vo=>this.enrichWithLocationNames(vo)),It.totalNumberOfResults,It.page,It.pageSize)))}enrichWithLocationNames(F){const{...re}=F;return{...re,locationName:this.locationNames.get(F.dataObjectId)}}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(Te.qB),r.LFG(et.sK))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})();var Un=a(49202),Yt=a(1329),Fn=a(24933),yt=a(23733),Bt=a(72186);let si=(()=>{class v extends R.AbstractAction{constructor(F,re,ze,It){super(F,re,ze,It),this.dialog=F,this.dataAccess=re,this.entityStateDao=ze,this.userMessageService=It,this.logger=(0,R.getLogger)("AddressbaseDefineDuplicateIbeAction",ot.H.name)}doExecute(F){throw new Error("AddressbaseDefineDuplicateIbeAction can not be called on a single Addressbase")}executeBatch(F){return new Dt.y(re=>{const ze=this.createActionCallForBatch("Addressbase",F);this.logger.info("Define duplicates for addressbases: "+JSON.stringify(ze)),this.dataAccess.callAction(ze).subscribe(It=>{this.validateBatchResult(F,It),this.showSuccessMessage(It),re.next(!0)},It=>{this.userMessageService.showError(It.error)})})}getBatchWarningKey(){return"imxtools.addressbase.list.action.define-duplicate.batch-warning"}getSuccessKey(){return"imxtools.addressbase.list.action.define-duplicate.successful"}getActionKey(){return"ibe-addressbase-action-define-duplicate"}getActionLabelKey(){return"imxtools.addressbase.list.action.define-duplicate.header"}getIcon(){return"icon-copy"}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})();const oo="Addressbase";let _o=(()=>{class v extends R.AbstractClientSideBackgroundAction{constructor(F,re,ze,It,vo){super(F,re,ze,It,vo),this.dialog=F,this.dataAccess=re,this.entityStateDao=ze,this.userMessageService=It,this.backgroundActionService=vo,this.logger=(0,R.getLogger)("AddressbaseImportAction",ot.H.name)}doExecute(F){return new Dt.y(re=>{this.dialog.open(R.ImportDialogComponent,{maxWidth:450,data:{i18n:"imxtools.addressbase.list.action.import.confirm",sourcesI18n:"imxtools.addressbase.list.action.import.multiple-sources",title:F.title,ids:Array.of(F.id),queryForAssignments:!0}}).afterClosed().subscribe(It=>{if(It){let vo;vo=It.length>0?this.createActionCall(oo,F,{importSources:It}):this.createActionCall(oo,F),this.logger.info("Trigger import for addressbase: "+JSON.stringify(vo)),this.executeInBackground({entityIds:[F.id],ids:1,operation:this.dataAccess.callAction(vo)}),re.next(!0)}})})}executeBatch(F){return new Dt.y(re=>{this.dialog.open(R.ImportDialogComponent,{maxWidth:450,data:{batch:!0,i18n:"imxtools.addressbase.list.action.import.confirm-batch",sourcesI18n:"imxtools.addressbase.list.action.import.multiple-sources",count:F.length,ids:F,queryForAssignments:!0}}).afterClosed().subscribe(It=>{if(It){let vo;vo=It.length>0?this.createActionCallForBatch(oo,F,{importSources:It}):this.createActionCallForBatch(oo,F),this.logger.info("Create action call to import for addressbases: "+JSON.stringify(vo)),this.executeInBackground({entityIds:F,ids:F.length,operation:this.dataAccess.callAction(vo)}),re.next(!0)}})})}getEntityType(){return"Addressbase"}getSuccessKey(){return"imxtools.addressbase.list.action.import.successful"}getActionKey(){return"addressbase-action-import"}getIcon(){return"icon-inbox"}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService),r.LFG(R.BackgroundActionService))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})();var Hn=a(46911);let mo=(()=>{class v{constructor(F){this.dataAccessService=F}search(F,re,ze,It){return this.dataAccessService.getAddressbases({latitude:F.toString(),longitude:re.toString(),searchDistance:ze.toString()},{paging:{pageSize:It,pageIdx:0},sortFields:["GEO_DISTANCE-ASC"]})}getEntityType(){return R.CoreEntityDef.ADDRESSBASE_ENTITY.type}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(dt.N))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})(),vn=(()=>{class v extends R.AbstractSetStateAction{constructor(F,re,ze,It,vo){super(F,re,ze,It,vo),this.dialog=F,this.dataAccess=re,this.imxEntitiesMgrService=ze,this.entityStateDao=It,this.userMessageService=vo}doExecute(F){return super.doExecute(F)}executeBatch(F,re){return super.executeBatch(F,re)}getActionKey(){return"addressbase-action-set_state"}getEntityType(){return"Addressbase"}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.ImxEntitiesMgrService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})();var Ji=a(15646),wn=a(49193);const po=new R.FormConfiguration([new R.Checkbox("modifyClient","imxtools.addressbase.list.action.modify.client",{extractor:(0,R.pathExtractor)("modifyClient"),insertor:(0,R.pathInsertor)("modifyClient")}),new R.Select("selectedClientId","entity.Addressbase.client",{optionProvider:R.ClientOptionProviderService,extractor:(0,R.pathExtractor)("selectedClientId"),insertor:(0,R.pathInsertor)("selectedClientId",!0),placeholder:"imxplatform.common.select-placeholder-demand",initialValue:-1,required:!1,renderLabel:!1}),new R.Checkbox("modifyProductline","imxtools.addressbase.list.action.modify.productline",{extractor:(0,R.pathExtractor)("modifyProductline"),insertor:(0,R.pathInsertor)("modifyProductline")}),new R.AnyField("productlineIds","",{extractor:(0,R.commaseparatedNumbersExtractor)("productlineIds"),insertor:(0,R.commaseparatedInsertor)("productlineIds")}),new R.AnyField("productlineReplaceOption","",{extractor:(0,R.pathExtractor)("productlineReplaceOption"),insertor:(0,R.pathInsertor)("productlineReplaceOption")})]);let Kn=(()=>{class v extends R.AbstractFormHandler{constructor(F,re,ze,It){super(po,void 0,F,It,ze),this.imxSecurityManagerService=re,this.formatterService=ze}getEntityType(){return"ModifyAddressbasesData"}hasEditPermission(F){return(0,wn.of)(this.imxSecurityManagerService.hasPropertyEditPermission("Addressbase",F))}hasReadPermission(F){return(0,wn.of)(this.imxSecurityManagerService.hasPropertyVisibilityPermission("Addressbase",F))}hasSavePermission(){return(0,wn.of)(!0)}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(R.NgControlBuilderService),r.LFG(Te.Xh),r.LFG(R.FormatterService),r.LFG(Te.Ze))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})();var Vn=a(33118),Wi=a(33946),Ft=a(28907),Oi=a(35617),On=a(37012);function _n(v,Ne){1&v&&r.GkF(0)}const st=()=>({$implicit:"modifyProductline"});function Dn(v,Ne){if(1&v&&(r.TgZ(0,"div",7)(1,"imx-grid-element",8)(2,"div",9),r.YNc(3,_n,1,0,"ng-container",10),r.qZA(),r._UZ(4,"imx-base-radio-button-group",11),r.qZA(),r.TgZ(5,"imx-grid-element",12)(6,"div",13),r._UZ(7,"imx-base-tree",14,15),r.qZA()()()),2&v){const F=r.oxw(),re=r.MAs(12);r.xp6(3),r.Q6J("ngTemplateOutlet",re)("ngTemplateOutletContext",r.DdM(9,st)),r.xp6(),r.Q6J("radioButtons",F.replaceOptionRadioButtons),r.xp6(),r.Q6J("lg_w",7)("sm_w",12)("ty_w",12),r.xp6(2),r.Q6J("displayNodeFn",F.displayFnForPl)("sortNodesFn",F.sortFnForPl)("availableItems",F.rootProductlines)}}function Wt(v,Ne){1&v&&r.GkF(0)}function kn(v,Ne){1&v&&r.GkF(0)}const Fi=()=>({$implicit:"modifyClient"}),ui=()=>({$implicit:"selectedClientId"});function Fo(v,Ne){if(1&v&&(r.TgZ(0,"div"),r.YNc(1,Wt,1,0,"ng-container",10)(2,kn,1,0,"ng-container",10),r.qZA()),2&v){r.oxw();const F=r.MAs(12);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(4,Fi)),r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(5,ui))}}function At(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",16),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById(F))("control",re.formHandler.formGroup.get(F))("form",re.formHandler.formGroup)("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}let Jn=(()=>{class v{constructor(F,re,ze){this.translateService=F,this.entitiesMgrService=re,this.formHandler=ze,this.destroy$=new nn.xQ,this.replaceOptionRadioButtons=[],this.rootProductlines=[],this.formHandler.formGroup.setValidators(Bi),this.formHandler.baseObject={}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngOnInit(){Object.keys(Bn).forEach(F=>{this.replaceOptionRadioButtons.push({value:F,label:this.translateService.instant("imxtools.addressbase.list.action.modify.option_"+F.toLowerCase())})}),this.formHandler.formGroup.get("productlineReplaceOption").setValue(Bn.ADD),this.availableProductlines$=this.determineAvailableProductlines(),this.loadProductlines()}displayFnForPl(F){return F?F.i18nName:void 0}sortFnForPl(F,re,ze){return(0,R.compareI18n)(F.i18nName,re.i18nName,ze)}determineAvailableProductlines(){return this.entitiesMgrService.getAllEntitiesOfType("Productline").pipe((0,Je.U)(F=>F.items.filter(re=>this.hasAddressbaseDetails(re))))}hasAddressbaseDetails(F){return!!(F.addressbaseDetails&&Object.keys(F.addressbaseDetails).length>0)||F.children.some(ze=>this.hasAddressbaseDetails(ze))}cleanupChildren(F,re){F.children&&(F.children=F.children.filter(ze=>re.some(It=>It.id===ze.id)),F.children.forEach(ze=>this.cleanupChildren(ze,re)))}loadProductlines(){this.availableProductlines$&&0===this.rootProductlines.length&&this.availableProductlines$.pipe((0,rn.R)(this.destroy$)).subscribe(F=>{const re=F.filter(ze=>null==ze.parent||-1===F.indexOf(ze.parent)).map(ze=>Ji(ze));re.forEach(ze=>this.cleanupChildren(ze,F)),this.rootProductlines=re})}getDialogResult(){return this.formHandler.getBaseObjectCopyWithCurrentFormValues()}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(et.sK),r.Y36(R.ImxEntitiesMgrService),r.Y36(Kn))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["ng-component"]],decls:13,vars:9,consts:[["heading","imxtools.addressbase.list.action.modify.title","icon","icon-pencil","dialogType","form",3,"submitButtonDisabled","getSubmitResult"],["id","addressbase-modify",1,"dialog-form",3,"formGroup"],[1,"addressbase-modify-dialog-wrapper"],["class","addressbase-modify-dialog-pl-wrapper",4,"ngIf"],["lg_w","12","sm_w","12","lg_o","0"],[4,"ngIf"],["imxControl",""],[1,"addressbase-modify-dialog-pl-wrapper"],["lg_w","5","sm_w","12","lg_o","0"],[1,"addressbase-modify-dialog-pl-cb-wrapper"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["formControlName","productlineReplaceOption","label","imxtools.offer.list.action.modify-addressbase.actions","mode","block",3,"radioButtons"],[1,"tree_panel",3,"lg_w","sm_w","ty_w"],[1,"pl-group-wrapper"],["id","tree_panel","formControlName","productlineIds",3,"displayNodeFn","sortNodesFn","availableItems"],["tree",""],[3,"field","control","form","formHandler","config"]],template:function(re,ze){1&re&&(r.TgZ(0,"imx-dialog",0)(1,"div",1)(2,"imx-grid")(3,"div",2),r.YNc(4,Dn,9,10,"div",3),r.ALo(5,"async"),r._UZ(6,"br")(7,"br"),r.TgZ(8,"imx-grid-element",4),r.YNc(9,Fo,3,6,"div",5),r.ALo(10,"async"),r.qZA()()()()(),r.YNc(11,At,1,5,"ng-template",null,6,r.W1O)),2&re&&(r.Q6J("submitButtonDisabled",ze.formHandler.formGroup.invalid)("getSubmitResult",ze.getDialogResult.bind(ze)),r.xp6(),r.Q6J("formGroup",ze.formHandler.formGroup),r.xp6(3),r.Q6J("ngIf",r.lcZ(5,5,ze.formHandler.hasEditPermission("productlines"))),r.xp6(5),r.Q6J("ngIf",r.lcZ(10,7,ze.formHandler.hasEditPermission("client"))))},dependencies:[Vn.q,Wi.a,Ft.A,Oi.Q,e.O5,e.tP,s.JJ,s.JL,s.sg,s.u,On.M,Li.V,e.Ov],styles:[".pl-group-wrapper[_ngcontent-%COMP%]{border:1px solid #ced4e0}.pl-group-wrapper[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:5px}.addressbase-modify-dialog-pl-cb-wrapper[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return v})();var Bn=function(v){return v.ADD="ADD",v.REPLACE="REPLACE",v.REMOVE="REMOVE",v}(Bn||{});function Bi(v){if(v instanceof s.nJ){const Ne=v;return Ne.get("modifyProductline").value||Ne.get("modifyClient").value?null:{required:!0}}return null}let Ui=(()=>{class v extends R.AbstractAction{constructor(F,re,ze,It){super(F,re,ze,It),this.dialog=F,this.dataAccess=re,this.entityStateDao=ze,this.userMessageService=It,this.logger=(0,R.getLogger)("AddressbaseModifyAction",ot.H.name)}getOrder(){return this.ACTION_ORDER_MODIFY}doExecute(F){return new Dt.y(re=>{re.next(!0)})}executeBatch(F){return new Dt.y(re=>{this.dialog.open(Jn,{...R.DialogDefaultSizes.FORM_BIG,data:{}}).afterClosed().subscribe(It=>{if(It){const vo={};!0===It.modifyProductline&&It.productlineIds&&It.productlineIds.length>0&&(vo.modifyProductlines=It.productlineReplaceOption,vo.productlineIds=It.productlineIds.split(",").map(Number)),!0===It.modifyClient&&It.selectedClientId&&It.selectedClientId>0&&(vo.clientId=It.selectedClientId);const Os=this.createActionCallForBatch("Addressbase",F,vo);this.logger.info("ModifyAddressbases: "+JSON.stringify(Os)),this.dataAccess.callAction(Os).subscribe(xd=>{this.validateBatchResult(F,xd),this.showSuccessMessage(xd),re.next(!0)})}})})}getBatchWarningKey(){return"imxtools.addressbase.list.action.modify.confirm-batch"}getSuccessKey(){return"imxtools.addressbase.list.action.modify.successful"}getActionKey(){return"addressbase-action-modify"}getIcon(){return"icon-pencil"}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})(),Xo=(()=>{class v extends R.OptionProvider{constructor(F){super(),this.collectionsService=F}getOptions(){return this.collectionsService.getAllPrioLevels().pipe((0,Je.U)(F=>F.filter(ze=>ze.usedForAddressbases).map(ze=>({label:ze.name,value:ze.id})).sort((ze,It)=>It.label.localeCompare(ze.label)).reverse()))}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(ii.G))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})(),bt=(()=>{class v extends R.OptionProvider{constructor(F,re){super(),this.entitiesMgrService=F,this.translateService=re}getOptions(F,re){return this.entitiesMgrService.getAllEntitiesOfType("Productline").pipe((0,Je.U)(ze=>ze.items),(0,Je.U)(ze=>ze.filter(It=>It.asPortalContext&&It.addressbaseDetails)),(0,Je.U)(ze=>ze.map(It=>({label:It.i18nName,value:It.id})).sort((It,vo)=>(0,R.compareI18n)(It.label,vo.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(R.ImxEntitiesMgrService),r.LFG(et.sK))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})();const an=new R.FormConfiguration([new R.AnyField("modifyOption","",{extractor:(0,R.pathExtractor)("modifyOption"),insertor:(0,R.pathInsertor)("modifyOption")}),new R.Select("deliveryChannelId","entity.Appearance.deliveryChannel",{optionProvider:R.OwnDeliveryChannelOptionProviderService,extractor:(0,R.numberExtractor)("deliveryChannel.id"),placeholder:"imxplatform.common.select-placeholder-demand",insertor:(0,R.pathInsertor)("deliveryChannelId",!0),initialValue:-1,required:!0}),new R.Select("prioLevelId","filter.Addressbase.prioLevel",{placeholder:"imxplatform.common.select-placeholder-demand",optionProvider:Xo,initialValue:-1,extractor:(0,R.numberExtractor)("prioLevel.id"),insertor:(0,R.pathInsertor)("prioLevelId",!0)}),new R.Select("contextProductlineId","entity.Appearance.productline",{optionProvider:bt,placeholder:"imxplatform.common.select-placeholder-no-selection",extractor:(0,R.numberExtractor)("productline.id"),insertor:(0,R.pathInsertor)("contextProductlineId",!0),initialValue:-1}),new R.DateField("fromDate","imxplatform.common-entity.list.action.modify-appearances.from-date",{}),new R.DateField("toDate","imxplatform.common-entity.list.action.modify-appearances.to-date",{}),new R.CheckboxSelect("languageIds","entity.BasicAppearance.languages",{optionProvider:R.LanguageOptionProviderService,extractor:(0,R.arrayValueExtractor)("languageIds","id"),insertor:(0,R.arrayValueInsertor)("languageIds","id"),isLanguageSelect:!0,rowLayout:!0})]);let Wn=(()=>{class v extends R.AbstractFormHandler{constructor(F,re,ze,It){super(an,void 0,F,It,ze),this.imxSecurityManagerService=re,this.formatterService=ze}getEntityType(){return"ModifyAddressbaseAppearanceData"}hasEditPermission(F){return(0,wn.of)(this.imxSecurityManagerService.hasPropertyEditPermission("Addressbase",F))}hasReadPermission(F){return(0,wn.of)(this.imxSecurityManagerService.hasPropertyVisibilityPermission("Addressbase",F))}hasSavePermission(){return(0,wn.of)(!0)}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(R.NgControlBuilderService),r.LFG(Te.Xh),r.LFG(R.FormatterService),r.LFG(Te.Ze))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})();var eo=a(9413);let _r=(()=>{class v{constructor(F){this.formHandler=F,this.formHandler.baseObject={}}getDialogResult(){return this.formHandler.getBaseObjectCopyWithCurrentFormValues()}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(Wn))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["ng-component"]],decls:3,vars:4,consts:[["heading","imxplatform.common-entity.list.action.modify-appearances.header","icon","icon-earth","dialogType","form","xmlns","http://www.w3.org/1999/html",3,"submitButtonDisabled","getSubmitResult"],["id","addressbase-modify-appearances",1,"dialog-form"],[3,"formHandler","forEntityType"]],template:function(re,ze){1&re&&(r.TgZ(0,"imx-dialog",0)(1,"div",1),r._UZ(2,"imx-modify-appearances-data-dialog-content",2),r.qZA()()),2&re&&(r.Q6J("submitButtonDisabled",ze.formHandler.formGroup.invalid)("getSubmitResult",ze.getDialogResult.bind(ze)),r.xp6(2),r.Q6J("formHandler",ze.formHandler)("forEntityType","Addressbase"))},dependencies:[Wi.a,eo.s]})}return v})(),hr=(()=>{class v extends R.AbstractModifyAppearancesAction{constructor(F,re,ze,It,vo){super(F,re,ze,It,vo),this.dialog=F,this.dataAccess=re,this.entityStateDao=ze,this.userMessageService=It}getEntityType(){return"Addressbase"}getSuccessKey(){return"imxtools.addressbase.list.action.modify-appearances.successful"}getActionKey(){return"addressbase-action-modify-appearances"}openDialog(){return this.dialog.open(_r,{...R.DialogDefaultSizes.FORM_MEDIUM,data:{},confirmButtonKey:"imxplatform.common-entity.list.action.modify-appearances.confirm"})}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService),r.LFG(R.BackgroundActionService))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})(),In=(()=>{class v{constructor(F,re){this.translateService=F,this.data=re,this.pinOptionsRadioButtons=[],this.dialogForm=new s.nJ({generateNewPin:new s.p4("")})}getDialogResult(){return this.dialogForm.get("generateNewPin").value}ngOnInit(){Object.keys(Wr).forEach(F=>{this.pinOptionsRadioButtons.push({value:F,label:this.translateService.instant("imxtools.addressbase.list.action.qr-announcement.pin-option_"+F.toLowerCase())})}),this.dialogForm.get("generateNewPin").setValue(Wr.NO)}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(et.sK),r.Y36(u.WI))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["ng-component"]],decls:6,vars:10,consts:[[3,"heading","icon","submitButtonLabel","cancelButtonLabel","getSubmitResult"],[1,"dialog-txt-md",3,"innerHTML"],["novalidate","",3,"formGroup"],["formControlName","generateNewPin","mode","block",3,"radioButtons"]],template:function(re,ze){1&re&&(r.TgZ(0,"imx-dialog",0),r._UZ(1,"p",1),r.ALo(2,"translate"),r._UZ(3,"br"),r.TgZ(4,"form",2),r._UZ(5,"imx-base-radio-button-group",3),r.qZA()()),2&re&&(r.Q6J("heading",ze.data.title)("icon",ze.data.iconClass)("submitButtonLabel",ze.data.confirmButtonKey?ze.data.confirmButtonKey:"imxplatform.dialog.common-confirm")("cancelButtonLabel",ze.data.cancelButtonKey?ze.data.cancelButtonKey:"imxplatform.dialog.common-abort")("getSubmitResult",ze.getDialogResult.bind(ze)),r.xp6(),r.Q6J("innerHTML",r.lcZ(2,8,ze.data.text),r.oJD),r.xp6(3),r.Q6J("formGroup",ze.dialogForm),r.xp6(),r.Q6J("radioButtons",ze.pinOptionsRadioButtons))},dependencies:[Vn.q,Wi.a,s._Y,s.JJ,s.JL,s.sg,s.u,et.X$],encapsulation:2})}return v})();var Wr=function(v){return v.YES="YES",v.NO="NO",v}(Wr||{});const qi="Addressbase";let wi=(()=>{class v extends R.AbstractAction{constructor(F,re,ze,It,vo,Os){super(F,re,ze,It),this.dialog=F,this.dataAccess=re,this.entityStateDao=ze,this.userMessageService=It,this.translateService=vo,this.router=Os,this.logger=(0,R.getLogger)("AddressbaseQrAnnouncementAction",ot.H.name)}doExecute(F){return new Dt.y(re=>{this.dialog.open(In,{maxWidth:450,data:{title:this.translateService.instant("imxtools.addressbase.list.action.qr-announcement.header"),text:this.translateService.instant("imxtools.addressbase.list.action.qr-announcement.text",{id:F.id}),iconClass:this.getIcon(),translated:!0,confirmButtonKey:"imxtools.addressbase.list.action.qr-announcement.confirm-btn-text"}}).afterClosed().subscribe(It=>{if(It){const vo={};vo.generateNewPin=It===Wr.YES;const Os=this.createActionCall(qi,F,vo);this.logger.info("Trigger QrAction for addressbase: "+JSON.stringify(Os)),this.dataAccess.callAction(Os).subscribe(xd=>{this.openQrCodeWindow([+xd]),re.next(!0)})}})})}executeBatch(F){return new Dt.y(re=>{this.dialog.open(In,{maxWidth:450,data:{title:this.translateService.instant("imxtools.addressbase.list.action.qr-announcement.batch-header"),text:this.translateService.instant("imxtools.addressbase.list.action.qr-announcement.batch-text",{count:F.length}),iconClass:this.getIcon(),confirmButtonKey:"imxtools.addressbase.list.action.qr-announcement.confirm-btn-text",translated:!0}}).afterClosed().subscribe(It=>{if(It){const vo={};vo.generateNewPin=It===Wr.YES;const Os=this.createActionCallForBatch(qi,F,vo);this.logger.info("Trigger QrAction for addressbase: "+JSON.stringify(Os)),this.dataAccess.callAction(Os).subscribe(xd=>{this.validateBatchResult(F,xd),this.openQrCodeWindow(xd),re.next(!0)})}})})}getBatchWarningKey(){return"imxtools.addressbase.list.action.qr-announcement.batch-warning"}getSuccessKey(){return"imxtools.addressbase.list.action.qr-announcement.successful"}getActionKey(){return"addressbase-action-qr-announcement"}getActionLabelKey(){return"imxtools.addressbase.list.action.qr-announcement.header"}getIcon(){return"icon-qrcode"}openQrCodeWindow(F){const re=this.router.serializeUrl(this.router.createUrlTree(["/qr-announcement-print/",{addressbaseIds:[F]}])),ze=window.location.href.replace(this.router.url,"");window.open(ze+re,"_blank","width=792,height=1000")}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService),r.LFG(et.sK),r.LFG(l.F0))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})();function zo(v,Ne){if(1&v&&(r.TgZ(0,"form",1)(1,"div",2)(2,"imx-grid")(3,"imx-grid-element",3),r._UZ(4,"imx-form-control",4),r.qZA()()()()),2&v){const F=r.oxw();r.Q6J("formGroup",F.parentForm),r.xp6(3),r.Q6J("lg_w",6)("sm_w",12),r.xp6(),r.Q6J("field",F.formHandler.formConfiguration.findFormFieldById("businessTypes"))("control",F.formHandler.formGroup.get("businessTypes"))("form",F.formHandler.formGroup.get("businessTypes"))("formHandler",F.formHandler)("config",F.formHandler.formConfiguration)}}const xi={mapperFn:v=>({aBusinessTypeIds:v.businessTypes?v.businessTypes:void 0})};let ki=(()=>{class v extends R.AbstractFilterPanelComponent{constructor(){super(),this.icon="icon-jigsaw",this.id="modules_acc",this.titleKey="imxtools.common-entity.filter.accommodationAddressbaseFilter.name",this.filterFields=["businessTypes"]}static#e=this.\u0275fac=function(re){return new(re||v)};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-accommodation-addressbase-filter-panel"]],hostAttrs:[1,"imx-accommodation-addressbase-filter-panel"],features:[r._Bn([(0,R.provideParent)(v)]),r.qOj],decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"filter__card"],[3,"lg_w","sm_w"],[3,"field","control","form","formHandler","config"]],template:function(re,ze){1&re&&r.YNc(0,zo,5,8,"form",0),2&re&&r.Q6J("ngIf",ze.panelShown)},dependencies:[Ft.A,e.O5,s._Y,s.JL,s.sg,On.M,Li.V],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}"]})}return v})();var wo=a(75222);function Ei(v,Ne){if(1&v&&(r.TgZ(0,"imx-grid-element",4),r._UZ(1,"imx-form-control",5),r.qZA()),2&v){const F=r.oxw(2);r.Q6J("lg_w",6)("sm_w",12),r.xp6(),r.Q6J("field",F.formHandler.formConfiguration.findFormFieldById("tourAttributes"))("control",F.formHandler.formGroup.get("tourAttributes"))("form",F.formHandler.formGroup.get("tourAttributes"))("formHandler",F.formHandler)("config",F.formHandler.formConfiguration)}}function ho(v,Ne){if(1&v&&(r.TgZ(0,"imx-grid-element",4),r._UZ(1,"imx-form-control",5),r.qZA()),2&v){const F=r.oxw(2);r.Q6J("lg_w",6)("sm_w",12),r.xp6(),r.Q6J("field",F.formHandler.formConfiguration.findFormFieldById("tourCategories"))("control",F.formHandler.formGroup.get("tourCategories"))("form",F.formHandler.formGroup.get("tourCategories"))("formHandler",F.formHandler)("config",F.formHandler.formConfiguration)}}function Cr(v,Ne){if(1&v&&(r.TgZ(0,"imx-grid-element",4),r._UZ(1,"imx-form-control",5),r.qZA()),2&v){const F=r.oxw(2);r.Q6J("lg_w",6)("sm_w",12),r.xp6(),r.Q6J("field",F.formHandler.formConfiguration.findFormFieldById("tourDifficulties"))("control",F.formHandler.formGroup.get("tourDifficulties"))("form",F.formHandler.formGroup.get("tourDifficulties"))("formHandler",F.formHandler)("config",F.formHandler.formConfiguration)}}function vr(v,Ne){if(1&v&&(r.TgZ(0,"imx-grid-element",4),r._UZ(1,"imx-form-control",5),r.qZA()),2&v){const F=r.oxw(2);r.Q6J("lg_w",6)("sm_w",12),r.xp6(),r.Q6J("field",F.formHandler.formConfiguration.findFormFieldById("tourTrackTypes"))("control",F.formHandler.formGroup.get("tourTrackTypes"))("form",F.formHandler.formGroup.get("tourTrackTypes"))("formHandler",F.formHandler)("config",F.formHandler.formConfiguration)}}function qr(v,Ne){if(1&v&&(r.TgZ(0,"form",1)(1,"div",2)(2,"imx-grid"),r.YNc(3,Ei,2,7,"imx-grid-element",3),r.ALo(4,"async"),r.YNc(5,ho,2,7,"imx-grid-element",3),r.ALo(6,"async"),r.YNc(7,Cr,2,7,"imx-grid-element",3),r.ALo(8,"async"),r.TgZ(9,"imx-grid-element",4),r._UZ(10,"imx-form-control",5),r.qZA(),r.TgZ(11,"imx-grid-element",4),r._UZ(12,"imx-form-control",5),r.qZA(),r.YNc(13,vr,2,7,"imx-grid-element",3),r.ALo(14,"async"),r.qZA()()()),2&v){const F=r.oxw();r.Q6J("formGroup",F.parentForm),r.xp6(3),r.Q6J("ngIf",r.lcZ(4,19,F.attributesAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(6,21,F.categoriesAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(8,23,F.difficultiesAvailable)),r.xp6(2),r.Q6J("lg_w",6)("sm_w",12),r.xp6(),r.Q6J("field",F.formHandler.formConfiguration.findFormFieldById("tourExpositions"))("control",F.formHandler.formGroup.get("tourExpositions"))("form",F.formHandler.formGroup.get("tourExpositions"))("formHandler",F.formHandler)("config",F.formHandler.formConfiguration),r.xp6(),r.Q6J("lg_w",6)("sm_w",12),r.xp6(),r.Q6J("field",F.formHandler.formConfiguration.findFormFieldById("tourMonths"))("control",F.formHandler.formGroup.get("tourMonths"))("form",F.formHandler.formGroup.get("tourMonths"))("formHandler",F.formHandler)("config",F.formHandler.formConfiguration),r.xp6(),r.Q6J("ngIf",r.lcZ(14,25,F.trackTypesAvailable))}}const Ra={mapperFn:v=>({aTourAttributeIds:v.tourAttributes?v.tourAttributes:void 0,aTourCategoryIds:v.tourCategories?v.tourCategories:void 0,aTourDifficultyIds:v.tourDifficulties?v.tourDifficulties:void 0,aTourExpositionIds:v.tourExpositions?v.tourExpositions:void 0,aTourMonthIds:v.tourMonths?v.tourMonths:void 0,aTourTrackTypeIds:v.tourTrackTypes?v.tourTrackTypes:void 0})};let ss=(()=>{class v extends R.AbstractFilterPanelComponent{constructor(F){super(),this.entitiesMgr=F,this.icon="icon-jigsaw",this.id="modules_tour",this.titleKey="imxtools.common-entity.filter.tourAddressbaseFilter.name",this.attributesAvailable=(0,wn.of)(!1),this.categoriesAvailable=(0,wn.of)(!1),this.difficultiesAvailable=(0,wn.of)(!1),this.trackTypesAvailable=(0,wn.of)(!1),this.filterFields=["tourAttributes","tourCategories","tourDifficulties","tourExpositions","tourMonths","tourTrackTypes"]}ngOnInit(){super.ngOnInit(),this.attributesAvailable=this.entitiesMgr.getAllEntitiesOfType("TourAttribute").pipe((0,wo.w)(F=>(0,wn.of)(F.totalNumberOfResults>0))),this.categoriesAvailable=this.entitiesMgr.getAllEntitiesOfType("TourCategory").pipe((0,wo.w)(F=>(0,wn.of)(F.totalNumberOfResults>0))),this.difficultiesAvailable=this.entitiesMgr.getAllEntitiesOfType("TourDifficulty").pipe((0,wo.w)(F=>(0,wn.of)(F.totalNumberOfResults>0))),this.trackTypesAvailable=this.entitiesMgr.getAllEntitiesOfType("TourTrackType").pipe((0,wo.w)(F=>(0,wn.of)(F.totalNumberOfResults>0)))}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-tour-addressbase-filter-panel"]],hostAttrs:[1,"imx-tour-addressbase-filter-panel"],features:[r._Bn([(0,R.provideParent)(v)]),r.qOj],decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"filter__card"],[3,"lg_w","sm_w",4,"ngIf"],[3,"lg_w","sm_w"],[3,"field","control","form","formHandler","config"]],template:function(re,ze){1&re&&r.YNc(0,qr,15,27,"form",0),2&re&&r.Q6J("ngIf",ze.panelShown)},dependencies:[Ft.A,e.O5,s._Y,s.JL,s.sg,On.M,Li.V,e.Ov],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}"]})}return v})();var ja=a(23291),el=a(58038),Vs=a(77958),ls=a(63005),Fa=a(1614);function Ds(v,Ne){if(1&v&&r._UZ(0,"imx-base-date",11),2&v){const F=r.oxw(2).$implicit,re=r.oxw(2);r.Q6J("formControl",re.certificateFormControlMap.get(F.id)[3])("disableControl",re.certificateFormControlMap.get(F.id)[3].disabled)}}function dl(v,Ne){if(1&v&&r._UZ(0,"imx-base-date",11),2&v){const F=r.oxw(2).$implicit,re=r.oxw(2);r.Q6J("formControl",re.certificateFormControlMap.get(F.id)[4])("disableControl",re.certificateFormControlMap.get(F.id)[4].disabled)}}function ka(v,Ne){if(1&v&&(r.TgZ(0,"div")(1,"div",9)(2,"span"),r._uU(3),r.ALo(4,"translate"),r.qZA(),r.YNc(5,Ds,1,2,"imx-base-date",10),r.qZA(),r.TgZ(6,"div",9)(7,"span"),r._uU(8),r.ALo(9,"translate"),r.qZA(),r.YNc(10,dl,1,2,"imx-base-date",10),r.qZA()()),2&v){const F=r.oxw().$implicit;r.xp6(3),r.Oqu(r.lcZ(4,4,"entity.CertificateClassification.validityFromDate")),r.xp6(2),r.Q6J("ngIf",F.requiresValidity),r.xp6(3),r.Oqu(r.lcZ(9,6,"entity.CertificateClassification.validityToDate")),r.xp6(2),r.Q6J("ngIf",F.requiresValidity)}}function hs(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",15),2&v){const F=r.oxw(2).$implicit,re=r.oxw(2);r.Q6J("field",re.valueTypeIntField)("control",re.certificateFormControlMap.get(F.id)[1])("form",re.formHandler.formGroup)("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}function Ua(v,Ne){if(1&v&&r._UZ(0,"imx-select",16),2&v){const F=r.oxw(2).$implicit,re=r.oxw(2);r.Q6J("field",re.certificateFormControlMap.get(F.id)[2])("control",re.certificateFormControlMap.get(F.id)[2])("form",re.certificateFormControlMap.get(F.id)[2])("formHandler",re.formHandler)("optionProvider",re.certificateClassValueOptions.get(F.id))}}function Tn(v,Ne){if(1&v&&(r.TgZ(0,"div",12),r.YNc(1,hs,1,5,"imx-form-control",13)(2,Ua,1,5,"imx-select",14),r.qZA()),2&v){const F=r.oxw().$implicit,re=r.oxw(2);r.xp6(),r.Q6J("ngIf",(null==F?null:F.valueType)==re.valueTypeInt),r.xp6(),r.Q6J("ngIf",(null==F?null:F.valueType)==re.valueTypeEnum)}}const Qi=v=>({selected:v});function To(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"li",5)(1,"imx-base-checkbox",6),r.NdJ("checkboxClick",function(){const It=r.CHM(F).$implicit,vo=r.oxw(2);return r.KtG(vo.toggleFormControls(It.id))}),r._uU(2),r.ALo(3,"readI18n"),r.qZA(),r.YNc(4,ka,11,8,"div",7)(5,Tn,3,2,"div",8),r.qZA()}if(2&v){const F=Ne.$implicit,re=r.oxw(2);r.Q6J("ngClass",r.VKq(7,Qi,re.isSelected(F.id))),r.xp6(),r.Q6J("formControl",re.certificateFormControlMap.get(F.id)[0]),r.xp6(),r.Oqu(r.lcZ(3,5,F.i18nName)),r.xp6(2),r.Q6J("ngIf",F.requiresValidity),r.xp6(),r.Q6J("ngIf",(null==F?null:F.valueType)==re.valueTypeInt||(null==F?null:F.valueType)==re.valueTypeEnum)}}function sr(v,Ne){if(1&v&&(r.TgZ(0,"form",1)(1,"div",2)(2,"imx-grid")(3,"imx-grid-element",3)(4,"ul"),r.YNc(5,To,6,9,"li",4),r.qZA()()()()()),2&v){const F=r.oxw();r.Q6J("formGroup",F.parentForm),r.xp6(3),r.Q6J("lg_w",8)("md_w",10)("sm_w",12),r.xp6(2),r.Q6J("ngForOf",F.certificates)}}const oi={mapperFn:v=>({aCertClassifications:Vi(v.certificates)})};function Vi(v){return v?v.split(","):""}let Ti=(()=>{class v extends R.AbstractFilterPanelComponent{constructor(F,re,ze){super(),this.entitiesMgr=F,this.translateService=re,this.certificateProviderService=ze,this.icon="icon-jigsaw",this.id="modules_certification",this.titleKey="imxtools.metainfo.modules_acc.certificates",this.valueTypeIntField=new R.Input("int","intValue","entity.CertificateClassification.intValue",{renderLabel:!1}),this.valueTypeInt=1,this.valueTypeEnum=2,this.certificateClassValueOptions=new Map,this.certificateFormControlMap=new Map,this.filterFields=["certificates"]}ngOnInit(){super.ngOnInit(),(0,ja.aj)([this.certificateProviderService.loadCertificates(),this.certificateProviderService.loadCertificateClassValues()]).pipe((0,Je.U)(([F,re])=>[F,re])).subscribe(F=>{this.fillCertificates(F[0]),this.fillCertificateClassValues(F[1]),this.setFormControls(),this.fillFormControls(),this.registerValueChangeListeners()})}getModifiedFieldsCount(){return[...this.certificateFormControlMap].filter(F=>!0===F[1][0].value).length}onReset(){this.certificates.forEach(F=>{this.certificateFormControlMap.get(F.id).forEach(re=>{re.setValue(null)}),this.toggleFormControls(F.id)}),this.setDefaultValueAllSelects()}onPanelShown(){null===this.formHandler.formGroup.get("certificates").value&&this.certificates.forEach(F=>{this.certificateFormControlMap.get(F.id).forEach(re=>{re.setValue(null)}),this.resetFormControls(F.id)})}modifyFormValues(F){super.modifyFormValues(F),F.certificates=this.convertToUrl(this.getCertificateFilterObjects())}setFormControls(){this.certificates.forEach(F=>{this.certificateFormControlMap.set(F.id,[new s.p4,new s.p4,new s.p4,new s.p4,new s.p4])})}fillFormControls(){if(this.formHandler){this.setDefaultValueAllSelects();const F=this.formHandler.formGroup.get("certificates").value;F&&this.extractDataFromString(F),this.certificates.forEach(re=>this.toggleFormControls(re.id))}}registerValueChangeListeners(){this.certificates.forEach(F=>{this.certificateFormControlMap.get(F.id).slice(1).forEach(re=>re.valueChanges.subscribe(()=>this.formHandler.formGroup.get("certificates").markAsDirty()))})}setDefaultValueAllSelects(){this.certificates.forEach(F=>this.certificateFormControlMap.get(F.id)[2].setValue(R.SELECT_PLACEHOLDER_VALUE))}toggleFormControls(F){this.certificateFormControlMap.get(F)[0].value?this.certificateFormControlMap.get(F).slice(1).forEach(re=>re.enable()):(this.certificateFormControlMap.get(F).slice(1).forEach(re=>{re.disable(),re.setValue(null)}),this.certificateFormControlMap.get(F)[2].setValue(R.SELECT_PLACEHOLDER_VALUE))}resetFormControls(F){this.certificateFormControlMap.get(F).slice(1).forEach(re=>{re.disable(),re.setValue(null)}),this.certificateFormControlMap.get(F)[2].setValue(R.SELECT_PLACEHOLDER_VALUE)}isSelected(F){return!!this.certificateFormControlMap.get(F)[0].value&&this.certificateFormControlMap.get(F)[0].value}getCertificateFilterObjects(){const F=new Map([...this.certificateFormControlMap].filter(ze=>!0===ze[1][0].value)),re=[];for(const ze of F.keys())re.push({certificateId:ze,enumValueId:this.certificateFormControlMap.get(ze)[2].value,intValue:this.certificateFormControlMap.get(ze)[1].value,validityFromDate:this.certificateFormControlMap.get(ze)[3].value,validityToDate:this.certificateFormControlMap.get(ze)[4].value});return re}convertToUrl(F){let re="";return F.length>0&&F.forEach((ze,It)=>{ze.intValue?re=re.concat("{certificateId:"+ze.certificateId+";intValue:"+ze.intValue+"}"):ze.enumValueId&&ze.enumValueId>-1?re=re.concat("{certificateId:"+ze.certificateId+";enumValueId:"+ze.enumValueId+"}"):ze.validityFromDate||ze.validityToDate?ze.validityFromDate&&ze.validityToDate?re=re.concat("{certificateId:"+ze.certificateId+";validityFromDate:"+(0,Te.w5)(ze.validityFromDate)+";validityToDate:"+(0,Te.w5)(ze.validityToDate)+"}"):ze.validityFromDate?re=re.concat("{certificateId:"+ze.certificateId+";validityFromDate:"+(0,Te.w5)(ze.validityFromDate)+"}"):ze.validityToDate&&(re=re.concat("{certificateId:"+ze.certificateId+";validityToDate:"+(0,Te.w5)(ze.validityToDate)+"}")):re=re.concat("{certificateId:"+ze.certificateId+"}"),It<F.length-1&&(re=re.concat(","))}),re}extractDataFromString(F){F.match(/[^{\}]+(?=})/g).forEach(ze=>{let It=-1;ze.split(";").forEach(vo=>{if(vo.includes("certificateId")&&(It=parseInt(vo.split(":")[1],10)),-1!==It&&this.certificateFormControlMap.get(It)){const Os=this.certificateFormControlMap.get(It);if(Os[0].setValue(!0),vo.includes("enumValueId")&&this.certificateClassValueOptions.get(It)){const xd=this.certificateClassValueOptions.get(It).find(yO=>yO.value===parseInt(vo.split(":")[1],10));xd&&Os[2].setValue(xd.value)}if(vo.includes("intValue")&&Os[1].setValue(vo.split(":")[1]),vo.includes("validityFromDate")){const xd=new Date(vo.split(":")[1]);xd.getTime()==xd.getTime()&&Os[3].setValue(xd)}if(vo.includes("validityToDate")){const xd=new Date(vo.split(":")[1]);xd.getTime()==xd.getTime()&&Os[4].setValue(xd)}}})})}fillCertificates(F){this.certificates=F}fillCertificateClassValues(F){F.forEach(re=>{const ze=this.certificateClassValueOptions.get(re.assignedCertificate.id);ze?ze.push({value:re.id,label:re.i18nName}):this.certificateClassValueOptions.set(re.assignedCertificate.id,[{value:R.SELECT_PLACEHOLDER_VALUE,label:"imxplatform.common.select-placeholder-any"},{value:re.id,label:re.i18nName}])})}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(et.sK),r.Y36(el.q))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-certificate-filter-panel"]],features:[r._Bn([(0,R.provideParent)(v)]),r.qOj],decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"filter__card"],[3,"lg_w","md_w","sm_w"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[3,"formControl","checkboxClick"],[4,"ngIf"],["class","certificate__valueType-container",4,"ngIf"],[1,"certificate__requiresValidity__date"],[3,"formControl","disableControl",4,"ngIf"],[3,"formControl","disableControl"],[1,"certificate__valueType-container"],[3,"field","control","form","formHandler","config",4,"ngIf"],[3,"field","control","form","formHandler","optionProvider",4,"ngIf"],[3,"field","control","form","formHandler","config"],[3,"field","control","form","formHandler","optionProvider"]],template:function(re,ze){1&re&&r.YNc(0,sr,6,5,"form",0),2&re&&r.Q6J("ngIf",ze.panelShown)},dependencies:[Vs.G,ls.d,Ft.A,no.H,e.mk,e.sg,e.O5,s._Y,s.JJ,s.JL,s.oH,s.sg,On.M,Li.V,Fa.j,et.X$],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.field-margin[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter__card[_ngcontent-%COMP%]{width:100%;padding-top:20px;padding-bottom:20px;font-size:14px}.filter__card[_ngcontent-%COMP%]     .grid-element{margin-top:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{margin-right:10px}.filter__checkbox-wrapper[_ngcontent-%COMP%]   .language-icon[_ngcontent-%COMP%]{width:20px;height:12px;margin-left:5px}.filter__date-field[_ngcontent-%COMP%]{margin-right:10px;align-items:baseline;max-width:150px}.filter__align-left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]     .tree-group{min-height:200px}[_nghost-%COMP%]     .tree-group label.mat-mdc-checkbox-layout{margin-bottom:0}@media (min-width: 1401px){[_nghost-%COMP%]     .tree-group{height:calc(80vh - 191px)}}@media (min-width: 901px) and (max-width: 1400px){[_nghost-%COMP%]     .tree-group{height:40vh}}@media (max-width: 900px){[_nghost-%COMP%]     .tree-group{height:30vh}}[_nghost-%COMP%]     .p-scrollpanel-content{height:100%}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper>div{border-top:unset!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .row-layout{display:grid;grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]     .imx-checkbox-select .checkbox-select-wrapper .checkbox{white-space:nowrap}form[_ngcontent-%COMP%]{max-height:calc(100vh - 150px);overflow:auto}ul[_ngcontent-%COMP%]{list-style-type:none}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{display:flex;height:33px;justify-content:space-between;margin-bottom:2px;padding-left:5px;padding-right:5px}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover, ul[_ngcontent-%COMP%] > li.selected[_ngcontent-%COMP%]{background-color:#eefafa;transition-property:background;transition-duration:.2s;transition-timing-function:linear}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > imx-base-checkbox[_ngcontent-%COMP%]{align-items:center;display:flex}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > imx-base-checkbox[_ngcontent-%COMP%]{margin-right:15px}.certificate__valueType-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.certificate__valueType-container[_ngcontent-%COMP%] > imx-select[_ngcontent-%COMP%]{width:200px}.certificate__requiresValidity__date[_ngcontent-%COMP%]{display:flex}.certificate__requiresValidity__date[_ngcontent-%COMP%]:first-child{margin-right:15px}.certificate__requiresValidity__date[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{align-items:center;display:flex;margin-right:10px}.certificate__requiresValidity__date[_ngcontent-%COMP%] > imx-base-date[_ngcontent-%COMP%]{width:100px}"]})}return v})(),Hi=(()=>{class v extends Te.aP{constructor(F){super(F,"DistanceDefinition")}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(Te.fx))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})(),Do=(()=>{class v extends Te.aP{constructor(F){super(F,"DistanceDefinitionGroup")}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(Te.fx))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})();var $o=a(62736);let yr=(()=>{class v extends R.EntityIconService{constructor(F){super(),this.configurationProvider=F,this.hostSpecificIcons=new Map;const re=this.configurationProvider.getStringFromSnapshot($o.s.IMXTOOLS_MEDIA_FALLBACK_ICONS);re&&re.split(",").forEach(ze=>{const It=ze.split(">");It&&2===It.length&&this.hostSpecificIcons.set(It[0],It[1])})}determineMediaIcon(F,re){if(!F||"Addressbase"!==F&&"CompactAddressbase"!==F&&"CompactOffer"!==F&&"Offer"!==F)return super.determineMediaIcon(F,re);{const ze=this.getHost(re);if(ze){const It=this.hostSpecificIcons.get(ze);return It?"./assets/result-list-icons/"+It.replace("-list.gif",".svg"):super.determineMediaIcon(F,re)}return super.determineMediaIcon(F,re)}}getHost(F){try{return new URL(F).host}catch{return}}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(R.ConfigurationProvider))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})();var Vr=a(41593),da=a(42094);function Za(v,Ne){1&v&&r.GkF(0)}function ma(v,Ne){1&v&&r.GkF(0)}function Wa(v,Ne){1&v&&r.GkF(0)}function Yi(v,Ne){1&v&&r.GkF(0)}function jo(v,Ne){1&v&&r.GkF(0)}function Cn(v,Ne){1&v&&r.GkF(0)}function uo(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",8),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.data.formHandler.formConfiguration.findFormFieldById(F))("control",re.data.formHandler.formGroup.get(F))("form",re.data.formHandler.formGroup)("formHandler",re.data.formHandler)("config",re.data.formHandler.formConfiguration)}}const fo=()=>({$implicit:"i18nName"}),Jo=()=>({$implicit:"intValue"}),kr=()=>({$implicit:"assignedCertificate"}),Qr=()=>({$implicit:"description"}),Aa=()=>({$implicit:"logo"}),cs=()=>({$implicit:"logoUrl"});let ys=(()=>{class v extends R.BaseEntityDialogComponent{constructor(F){super(F),this.data=F,this.allowedFileTypes="image/*"}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(u.WI))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["ng-component"]],features:[r.qOj],decls:16,vars:29,consts:[["icon","icon-baseEdit","dialogType","form",3,"heading","submitButtonDisabled"],["form-header","",3,"formHandler"],["id","base-entity-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"allowedFileTypes","fileFieldName","imagePathFieldName","formGroup","formHandler"],["imxControl",""],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-dialog",0),r.ALo(1,"translate"),r._UZ(2,"imx-language-switch-button",1),r.TgZ(3,"form",2)(4,"div",3)(5,"div",4),r.YNc(6,Za,1,0,"ng-container",5)(7,ma,1,0,"ng-container",5)(8,Wa,1,0,"ng-container",5)(9,Yi,1,0,"ng-container",5),r._UZ(10,"imx-logo-upload",6),r.YNc(11,jo,1,0,"ng-container",5)(12,Cn,1,0,"ng-container",5),r.qZA()()()(),r.YNc(13,uo,1,5,"ng-template",null,7,r.W1O),r._uU(15,"\nc\n")),2&re){const It=r.MAs(14);r.Q6J("heading",r.lcZ(1,21,ze.data.title))("submitButtonDisabled",ze.data.formRow.invalid||ze.data.formRow.pristine),r.xp6(2),r.Q6J("formHandler",ze.data.formHandler),r.xp6(),r.Q6J("formGroup",ze.data.formRow),r.xp6(3),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(23,fo)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(24,Jo)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(25,kr)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(26,Qr)),r.xp6(),r.Q6J("allowedFileTypes",ze.allowedFileTypes)("fileFieldName","logo")("imagePathFieldName","logoImageUrl")("formGroup",ze.data.formRow)("formHandler",ze.data.formHandler),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(27,Aa)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(28,cs))}},dependencies:[Vr.x,Wi.a,Ft.A,da.H,e.tP,s._Y,s.JL,s.sg,et.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.image-upload-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.image-upload-wrapper__remove[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end}.image-upload-wrapper__remove[_ngcontent-%COMP%] > .file-remove-button[_ngcontent-%COMP%]{margin-bottom:15px}.image-upload-wrapper__image[_ngcontent-%COMP%]{width:120px}.image-upload-wrapper__image[_ngcontent-%COMP%] > figure[_ngcontent-%COMP%]{height:0;padding-bottom:100%;position:relative}.image-upload-wrapper__image[_ngcontent-%COMP%] > figure[_ngcontent-%COMP%] > picture[_ngcontent-%COMP%]{display:block;height:100%;position:absolute;width:100%}.image-upload-wrapper__image[_ngcontent-%COMP%] > figure[_ngcontent-%COMP%] > picture[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{height:100%;object-fit:cover;width:100%}"]})}return v})();function zr(v,Ne){1&v&&r.GkF(0)}function Pi(v,Ne){1&v&&r.GkF(0)}function xo(v,Ne){1&v&&r.GkF(0)}function lr(v,Ne){1&v&&r.GkF(0)}function Ir(v,Ne){1&v&&r.GkF(0)}function Da(v,Ne){1&v&&r.GkF(0)}function ia(v,Ne){1&v&&r.GkF(0)}function as(v,Ne){1&v&&r.GkF(0)}function Is(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",8),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.data.formHandler.formConfiguration.findFormFieldById(F))("control",re.data.formHandler.formGroup.get(F))("form",re.data.formHandler.formGroup)("formHandler",re.data.formHandler)("config",re.data.formHandler.formConfiguration)}}const ba=()=>({$implicit:"i18nName"}),Ss=()=>({$implicit:"valueType"}),Ca=()=>({$implicit:"requiresValidity"}),Ia=()=>({$implicit:"additionalInfo"}),wa=()=>({$implicit:"modules"}),Va=()=>({$implicit:"logo"}),zn=()=>({$implicit:"logoUrl"}),di=()=>({$implicit:"computed"});let cn=(()=>{class v extends R.BaseEntityDialogComponent{constructor(F){super(F),this.data=F,this.allowedFileTypes="image/*"}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(u.WI))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["ng-component"]],features:[r.qOj],decls:17,vars:35,consts:[["icon","icon-baseEdit","dialogType","form",3,"heading","submitButtonDisabled"],["form-header","",3,"formHandler"],["id","base-entity-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"allowedFileTypes","fileFieldName","imagePathFieldName","formGroup","formHandler"],["imxControl",""],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-dialog",0),r.ALo(1,"translate"),r._UZ(2,"imx-language-switch-button",1),r.TgZ(3,"form",2)(4,"div",3)(5,"div",4),r.YNc(6,zr,1,0,"ng-container",5)(7,Pi,1,0,"ng-container",5)(8,xo,1,0,"ng-container",5)(9,lr,1,0,"ng-container",5)(10,Ir,1,0,"ng-container",5),r._UZ(11,"imx-logo-upload",6),r.YNc(12,Da,1,0,"ng-container",5)(13,ia,1,0,"ng-container",5)(14,as,1,0,"ng-container",5),r.qZA()()()(),r.YNc(15,Is,1,5,"ng-template",null,7,r.W1O)),2&re){const It=r.MAs(16);r.Q6J("heading",r.lcZ(1,25,ze.data.title))("submitButtonDisabled",ze.data.formRow.invalid||ze.data.formRow.pristine),r.xp6(2),r.Q6J("formHandler",ze.data.formHandler),r.xp6(),r.Q6J("formGroup",ze.data.formRow),r.xp6(3),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(27,ba)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(28,Ss)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(29,Ca)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(30,Ia)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(31,wa)),r.xp6(),r.Q6J("allowedFileTypes",ze.allowedFileTypes)("fileFieldName","logo")("imagePathFieldName","logoImageUrl")("formGroup",ze.data.formRow)("formHandler",ze.data.formHandler),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(32,Va)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(33,zn)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(34,di))}},dependencies:[Vr.x,Wi.a,Ft.A,da.H,e.tP,s._Y,s.JL,s.sg,et.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.image-upload-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.image-upload-wrapper__remove[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end}.image-upload-wrapper__remove[_ngcontent-%COMP%] > .file-remove-button[_ngcontent-%COMP%]{margin-bottom:15px}.image-upload-wrapper__image[_ngcontent-%COMP%]{width:120px}.image-upload-wrapper__image[_ngcontent-%COMP%] > figure[_ngcontent-%COMP%]{height:0;padding-bottom:100%;position:relative}.image-upload-wrapper__image[_ngcontent-%COMP%] > figure[_ngcontent-%COMP%] > picture[_ngcontent-%COMP%]{display:block;height:100%;position:absolute;width:100%}.image-upload-wrapper__image[_ngcontent-%COMP%] > figure[_ngcontent-%COMP%] > picture[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{height:100%;object-fit:cover;width:100%}"]})}return v})(),Zi=(()=>{class v extends R.OptionProvider{constructor(F,re){super(),this.entitiesMgrService=F,this.translateService=re}getOptions(F,re){return this.entitiesMgrService.getAllEntitiesOfType("EndowmentGroup").pipe((0,Je.U)(ze=>ze.items.map(It=>({label:It.i18nName,value:It.id})).sort((It,vo)=>(0,R.compareI18n)(It.label,vo.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(Te.qB),r.LFG(et.sK))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})(),Eo=(()=>{class v extends R.OptionProvider{constructor(F,re){super(),this.entitiesMgrService=F,this.translateService=re}getOptions(F,re){return this.entitiesMgrService.getAllEntitiesOfType("Endowment").pipe((0,Je.U)(ze=>ze.items.map(It=>({label:It.i18nName,value:It.id})).sort((It,vo)=>(0,R.compareI18n)(It.label,vo.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(Te.qB),r.LFG(et.sK))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})();a(79309);let Nr=(()=>{class v extends R.OptionProvider{constructor(F,re){super(),this.entitiesMgrService=F,this.translateService=re}getOptions(F,re){return this.entitiesMgrService.getAllEntitiesOfType("Certificate").pipe((0,Je.U)(ze=>ze.items.map(It=>({label:It.i18nName,value:It.id})).sort((It,vo)=>(0,R.compareI18n)(It.label,vo.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(Te.qB),r.LFG(et.sK))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})(),Rs=(()=>{class v extends R.OptionProvider{constructor(F,re){super(),this.entitiesMgrService=F,this.translateService=re}getOptions(F,re){return this.entitiesMgrService.getAllEntitiesOfType("ConventionDestinationType").pipe((0,Je.U)(ze=>ze.items.map(It=>({label:It.i18nName,value:It.id})).sort((It,vo)=>(0,R.compareI18n)(It.label,vo.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(Te.qB),r.LFG(et.sK))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})(),Zr=(()=>{class v extends R.OptionProvider{constructor(F,re){super(),this.entitiesMgrService=F,this.translateService=re}getOptions(F,re){return this.entitiesMgrService.getAllEntitiesOfType("RfaCategoryGroup").pipe((0,Je.U)(ze=>ze.items.map(It=>({label:It.i18nName,value:It.id})).sort((It,vo)=>(0,R.compareI18n)(It.label,vo.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(Te.qB),r.LFG(et.sK))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})(),Na=(()=>{class v extends R.OptionProvider{constructor(F,re){super(),this.entitiesMgrService=F,this.translateService=re}getOptions(F,re){return this.entitiesMgrService.getAllEntitiesOfType("RfaCriterionGroup").pipe((0,Je.U)(ze=>ze.items.map(It=>({label:It.i18nName,value:It.id})).sort((It,vo)=>(0,R.compareI18n)(It.label,vo.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(Te.qB),r.LFG(et.sK))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})(),ol=(()=>{class v extends R.OptionProvider{constructor(F,re){super(),this.entitiesMgrService=F,this.translateService=re}getOptions(F,re){return this.entitiesMgrService.getAllEntitiesOfType("RfaStageGroup").pipe((0,Je.U)(ze=>ze.items.map(It=>({label:It.i18nName,value:It.id})).sort((It,vo)=>(0,R.compareI18n)(It.label,vo.label,this.translateService.currentLang))))}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(Te.qB),r.LFG(et.sK))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})(),Cl=(()=>{class v extends R.OptionProvider{constructor(F){super(),this.entitiesMgrService=F}getOptions(F,re){return this.entitiesMgrService.getAllEntitiesOfType("TourDifficultyGroup").pipe((0,Je.U)(ze=>ze.items.map(It=>({label:It.i18nName,value:It.id?It.id:-1}))))}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(Te.qB))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})();const Ql=new R.ModuleBaseEntityConfiguration(R.CORE_MODULE_KEY,[new R.BaseEntityFormConfiguration("InputFieldType",[new R.Input("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.Input("text","name","entity.InputFieldType.name",{required:!0}),new R.Input("text","typeKey","entity.InputFieldType.typeKey",{required:!0}),new R.Checkbox("usedForAddressbases","entity.InputFieldType.usedForAddressbases",{baseEntityFieldOption:{hideInList:!0}}),new R.Checkbox("usedForOffers","entity.InputFieldType.usedForOffers",{baseEntityFieldOption:{hideInList:!0}}),new R.Checkbox("usedForEvents","entity.InputFieldType.usedForEvents",{baseEntityFieldOption:{hideInList:!0}}),new R.TreeField("productlines","entity.InputFieldType.productlines",{renderLabel:!1,optionProvider:R.ProductlineTreeOptionProviderService,extractor:(0,R.arrayValueExtractor)("productlines","id"),insertor:(0,R.arrayValueInsertor)("productlines","id"),baseEntityFieldOption:{hideInList:!0}})],[new R.Input("text","name","entity.InputFieldType.name")],[(0,R.filterByName)()]),new R.BaseEntityFormConfiguration("IbeMealType",[new R.Input("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("IbeServiceType",[new R.Input("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("IbeServiceEndowment",[new R.Input("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:R.i18nSomeValidator}),new R.Select("representingEndowment","entity.IbeServiceEndowment.representingEndowment",{optionProvider:Eo,extractor:(0,R.pathExtractor)("representingEndowment.id"),insertor:(0,R.pathInsertor)("representingEndowment.id",!0),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-no-selection",baseEntityFieldOption:{hideInList:!0}}),new R.AnyField("representingEndowmentI18nName","entity.I18nAttribute.attributeGroup",{extractor:(0,R.pathExtractor)("representingEndowment.i18nName"),insertor:(0,R.noneInsertor)()})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("Certificate",[new R.Input("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:R.i18nSomeValidator}),new R.Select("valueType","entity.Certificate.valueType.entityName",{optionProvider:[{value:0,label:"entity.Certificate.valueType.0"},{value:1,label:"entity.Certificate.valueType.1"},{value:2,label:"entity.Certificate.valueType.2"}],baseEntityFieldOption:{hideInList:!0}}),new R.AnyField("valueTypeForList","entity.Certificate.valueType.entityName",{extractor:(0,R.labelFromOptionsExtractor)((0,R.pathExtractor)("valueType"),[{value:0,label:"entity.Certificate.valueType.0"},{value:1,label:"entity.Certificate.valueType.1"},{value:2,label:"entity.Certificate.valueType.2"}]),insertor:(0,R.noneInsertor)(),required:!1}),new R.Checkbox("requiresValidity","entity.Certificate.requiresValidity",{baseEntityFieldOption:{listRenderer:v=>v?"imxplatform.common.yes":"imxplatform.common.no"}}),new R.Checkbox("additionalInfo","entity.Certificate.additionalInfo",{baseEntityFieldOption:{listRenderer:v=>v?"imxplatform.common.yes":"imxplatform.common.no"}}),new R.TreeField("modules","entity.Certificate.modules",{optionProvider:R.ProductlineTreeOptionProviderService,extractor:(0,R.arrayValueExtractor)("modules","id"),insertor:(0,R.arrayValueInsertor)("modules","id"),baseEntityFieldOption:{hideInList:!0}}),new R.AnyField("modulesForList","entity.Certificate.modules",{extractor:(0,R.arrayValueExtractor)("modules","i18nName"),insertor:(0,R.noneInsertor)(),baseEntityFieldOption:{hideInEditPage:!0}}),new R.Input("text","logo","entity.Certificate.logo",{readonly:!0,baseEntityFieldOption:{hideInList:!0}}),new R.AnyField("logoImageUrl","entity.CertificateClassValue.logo",{baseEntityFieldOption:{renderAsImage:!0}}),new R.Input("text","logoUrl","entity.Certificate.logoUrl",{baseEntityFieldOption:{hideInList:!0}}),new R.Checkbox("computed","entity.Certificate.computed",{baseEntityFieldOption:{listRenderer:v=>v?"imxplatform.common.yes":"imxplatform.common.no"}})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()],null,cn),new R.BaseEntityFormConfiguration("CertificateClassValue",[new R.Input("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:R.i18nSomeValidator}),new R.Input("int","intValue","entity.CertificateClassValue.intValue"),new R.Input("text","logo","entity.CertificateClassValue.logo",{readonly:!0,baseEntityFieldOption:{hideInList:!0}}),new R.AnyField("logoImageUrl","entity.CertificateClassValue.logo",{baseEntityFieldOption:{renderAsImage:!0}}),new R.Input("text","logoUrl","entity.CertificateClassValue.logoUrl"),new R.Select("assignedCertificate","entity.CertificateClassValue.assignedCertificate",{optionProvider:Nr,extractor:(0,R.pathExtractor)("assignedCertificate.id"),insertor:(0,R.pathInsertor)("assignedCertificate.id",!0),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-no-selection",baseEntityFieldOption:{hideInList:!0},required:!0}),new R.AnyField("assignedCertificateForList","entity.CertificateClassValue.assignedCertificate",{extractor:(0,R.pathExtractor)("assignedCertificate.i18nName"),insertor:(0,R.noneInsertor)(),required:!1}),new R.I18nMultiRichtext("description","entity.CertificateClassValue.description")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()],null,ys),new R.BaseEntityFormConfiguration("Holiday",[new R.Input("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.Holiday.i18nName",{extendedI18nValidators:R.i18nSomeValidator}),new R.DateField("fromDate","entity.Holiday.fromDate",{required:!0,baseEntityFieldOption:{listRenderer:v=>new R.FormatterService(r.soG.toString()).formatDate(v,"dd.MM.yyyy")}}),new R.DateField("toDate","entity.Holiday.toDate",{required:!0,baseEntityFieldOption:{listRenderer:v=>new R.FormatterService(r.soG.toString()).formatDate(v,"dd.MM.yyyy")}}),new R.Checkbox("nationwide","entity.Holiday.nationwide",{baseEntityFieldOption:{listRenderer:v=>v?"imxplatform.common.yes":"imxplatform.common.no"}}),new R.Input("text","country","entity.Holiday.country"),new R.Input("text","type","entity.Holiday.type",{baseEntityFieldOption:{hideInList:!0}}),new R.Input("text","subdivisions","entity.Holiday.subdivisions",{baseEntityFieldOption:{hideInList:!0}}),new R.Input("text","info","entity.Holiday.info",{baseEntityFieldOption:{hideInList:!0}})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)(),(0,R.filterByStringProperty)("country")])]),Ho=new R.ModuleBaseEntityConfiguration("modules_acc",[new R.BaseEntityFormConfiguration("BusinessType",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("AccommodationType",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("AccommodationLanguage",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("Endowment",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName"),new R.Select("attributeGroup","entity.I18nAttribute.attributeGroup",{optionProvider:Zi,extractor:(0,R.pathExtractor)("attributeGroup.id"),insertor:(0,R.pathInsertor)("attributeGroup.id",!0),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-no-selection",baseEntityFieldOption:{hideInList:!0}}),new R.AnyField("attributeGroupI18nName","entity.I18nAttribute.attributeGroup",{extractor:(0,R.pathExtractor)("attributeGroup.i18nName"),insertor:(0,R.noneInsertor)()})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("EndowmentGroup",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("Topic",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()])]),mc=new R.ModuleBaseEntityConfiguration("modules_lodge",[new R.BaseEntityFormConfiguration("LodgeType",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("LodgeSuitability",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("LodgeAdditionalFeature",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("LodgeRegion",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()])]),os=new R.ModuleBaseEntityConfiguration("modules_tour",[new R.BaseEntityFormConfiguration("TourDifficulty",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName"),new R.Input("text","value","entity.TourDifficulty.value",{extractor:(0,R.pathExtractor)("value"),insertor:(0,R.pathInsertor)("value")}),new R.Select("attributeGroup","entity.I18nAttribute.attributeGroup",{optionProvider:Cl,extractor:(0,R.pathExtractor)("attributeGroup.id"),insertor:(0,R.pathInsertor)("attributeGroup.id",!0),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-no-selection",baseEntityFieldOption:{hideInList:!0}}),new R.AnyField("attributeGroupI18nName","entity.I18nAttribute.attributeGroup",{extractor:(0,R.pathExtractor)("attributeGroup.i18nName"),insertor:(0,R.noneInsertor)()})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("TourDifficultyGroup",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("TourAttribute",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.Input("text","name","entity.TourAttribute.name"),new R.I18nMultiInput("i18nName","imxplatform.common.multi-lang",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName"),new R.Input("text","name","entity.TourAttribute.name")],[(0,R.filterByI18nName)(),(0,R.filterByName)()]),new R.BaseEntityFormConfiguration("TourTrackType",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("TourCategory",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0,isTreeToggleField:!0}}),new R.Input("text","name","entity.TourCategory.name",{baseEntityFieldOption:{hideInList:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName"),new R.AnyField("parent","entity.I18nAttribute.attributeGroup",{extractor:(0,R.pathExtractor)("parent.i18nName"),insertor:(0,R.noneInsertor)()})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("TourCondition",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()])]),ps=new R.ModuleBaseEntityConfiguration("modules_gastro2",[new R.BaseEntityFormConfiguration("Gastro2Ambience",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("Gastro2CuisineType",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("Gastro2CookingStyle",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("Gastro2Endowment",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("Gastro2CuisineCharacteristic",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("Gastro2OperationalFeature",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("Gastro2BusinessType",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("Gastro2PaymentOption",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("Gastro2Product",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("Gastro2Organization",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("Gastro2EventSerie",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("Gastro2PriceSegment",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("Gastro2GuestGroup",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("Gastro2ServiceType",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()])]),Ps=new R.ModuleBaseEntityConfiguration("modules_convention",[new R.BaseEntityFormConfiguration("ConventionLocationType",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("ConventionDestinationType",[new R.Input("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.Input("text","name","entity.NamedDataObject.name",{extractor:(0,R.pathExtractor)("name"),insertor:(0,R.pathInsertor)("name"),required:!0}),new R.I18nMultiInput("i18nName","imxplatform.common.multi-lang",{extendedI18nValidators:R.i18nSomeValidator}),new R.Checkbox("staticDestination","entity.ConventionDestinationType.staticDestination",{baseEntityFieldOption:{listRenderer:v=>v?"imxplatform.common.yes":"imxplatform.common.no"},extractor:(0,R.pathExtractor)("staticDestination"),insertor:(0,R.pathInsertor)("staticDestination")})],[new R.Input("text","name","entity.NamedDataObject.name"),new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByName)(),(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("ConventionDistanceDestination",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:R.i18nSomeValidator}),new R.Select("destinationType","entity.ConventionDestinationType.entityName",{optionProvider:Rs,extractor:(0,R.pathExtractor)("destinationType.id"),insertor:(0,R.pathInsertor)("destinationType.id"),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-no-selection",required:!0})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("ConventionLocationType",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("ConventionLocationAttribute",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("ConventionRoomAttribute",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()])]),Ba=new R.ModuleBaseEntityConfiguration("modules_convention_location",[new R.BaseEntityFormConfiguration("EventlocationEndowment",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("EventlocationEventType",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("EventlocationGastronomyAttribute",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("EventlocationTopic",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()])]),Ka=new R.ModuleBaseEntityConfiguration("modules_convention_hotel",[new R.BaseEntityFormConfiguration("CnvHotelGeneralEndowment",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("CnvHotelEndowment",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("CnvHotelTopic",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("CnvHotelSportEndowment",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("CnvHotelEventType",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("CnvHotelRoomEndowment",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()])]),vc=new R.ModuleBaseEntityConfiguration("modules_convention_city",[new R.BaseEntityFormConfiguration("CityTopic",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()])]),$s=new R.ModuleBaseEntityConfiguration("modules_convention_center",[new R.BaseEntityFormConfiguration("CenterEndowment",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("CenterGastronomyAttribute",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("CenterTopic",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("CenterEventType",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()])]),js=new R.ModuleBaseEntityConfiguration("modules_gastronomy",[new R.BaseEntityFormConfiguration("GastronomyAttribute",[new R.Input("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","imxplatform.common.multi-lang",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("GastronomyBusinessType",[new R.Input("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","imxplatform.common.multi-lang",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()])]),bc=new R.ModuleBaseEntityConfiguration("modules_gastronomy_restaurant",[new R.BaseEntityFormConfiguration("CuisineType",[new R.Input("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","imxplatform.common.multi-lang",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()])]),ql=new R.ModuleBaseEntityConfiguration("modules_acc_hostel",[new R.BaseEntityFormConfiguration("HostelType",[new R.Input("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","imxplatform.common.multi-lang",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("HostelEndowment",[new R.Input("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","imxplatform.common.multi-lang",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("HostelRoomType",[new R.Input("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","imxplatform.common.multi-lang",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()])]),Gs=new R.ModuleBaseEntityConfiguration("modules_acc_camping",[new R.BaseEntityFormConfiguration("CampingEndowment",[new R.Input("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","imxplatform.common.multi-lang",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("CampingAttribute",[new R.Input("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","imxplatform.common.multi-lang",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("CampingType",[new R.Input("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","imxplatform.common.multi-lang",{extendedI18nValidators:R.i18nSomeValidator})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()])]),Dl=new R.ModuleBaseEntityConfiguration("modules_rfa",[new R.BaseEntityFormConfiguration("RfaPartner",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("RfaCategory",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName"),new R.Select("attributeGroup","entity.I18nAttribute.attributeGroup",{optionProvider:Zr,extractor:(0,R.pathExtractor)("attributeGroup.id"),insertor:(0,R.pathInsertor)("attributeGroup.id",!0),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-no-selection",baseEntityFieldOption:{hideInList:!0}}),new R.AnyField("attributeGroupI18nName","entity.I18nAttribute.attributeGroup",{extractor:(0,R.pathExtractor)("attributeGroup.i18nName"),insertor:(0,R.noneInsertor)()})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("RfaCategoryGroup",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("RfaCriterion",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName"),new R.Select("attributeGroup","entity.I18nAttribute.attributeGroup",{optionProvider:Na,extractor:(0,R.pathExtractor)("attributeGroup.id"),insertor:(0,R.pathInsertor)("attributeGroup.id",!0),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-no-selection",baseEntityFieldOption:{hideInList:!0}}),new R.AnyField("attributeGroupI18nName","entity.I18nAttribute.attributeGroup",{extractor:(0,R.pathExtractor)("attributeGroup.i18nName"),insertor:(0,R.noneInsertor)()})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("RfaCriterionGroup",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("RfaStage",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName"),new R.Select("attributeGroup","entity.I18nAttribute.attributeGroup",{optionProvider:ol,extractor:(0,R.pathExtractor)("attributeGroup.id"),insertor:(0,R.pathInsertor)("attributeGroup.id",!0),initialValue:-1,placeholder:"imxplatform.common.select-placeholder-no-selection",baseEntityFieldOption:{hideInList:!0}}),new R.AnyField("attributeGroupI18nName","entity.I18nAttribute.attributeGroup",{extractor:(0,R.pathExtractor)("attributeGroup.i18nName"),insertor:(0,R.noneInsertor)()})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("RfaStageGroup",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()])]),Yr=new R.ModuleBaseEntityConfiguration("modules_price_list",[new R.BaseEntityFormConfiguration("PriceCurrency",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("PriceItemCategory",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("PriceDefinitionAttribute",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("PriceValueType",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName"),new R.Input("number","sortingValue","entity.PriceValueType.sortingValue")],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName"),new R.Input("number","sortingValue","entity.PriceValueType.sortingValue")],[(0,R.filterByI18nName)()])]),_a=new R.ModuleBaseEntityConfiguration("modules_regiondo_offer",[new R.BaseEntityFormConfiguration("RegiondoCategory",[new R.Input("text","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0,isTreeToggleField:!0}}),new R.I18nMultiInput("i18nName","entity.I18nDataObject.i18nName"),new R.AnyField("parent","entity.RegiondoCategory.parent",{extractor:(0,R.pathExtractor)("parent.i18nName"),insertor:(0,R.noneInsertor)()})],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()])]);const rl=new R.ModuleBaseEntityConfiguration("ibe_mapping",[new R.BaseEntityFormConfiguration("IbeConfigBusinessTypeMapping",la("IbeConfigBusinessTypeMapping"),ks(),Ta()),new R.BaseEntityFormConfiguration("IbeConfigCertificateClassValueMapping",la("IbeConfigCertificateClassValueMapping"),ks(),Ta()),new R.BaseEntityFormConfiguration("IbeConfigCertificateMapping",[...la("IbeConfigCertificateMapping"),new R.Input("text","externalGroupId","entity.GroupedIbeDataObjectMapping.externalGroupId")],ks(),Ta()),new R.BaseEntityFormConfiguration("IbeConfigDistanceDefinitionMapping",la("IbeConfigDistanceDefinitionMapping"),ks(),Ta()),new R.BaseEntityFormConfiguration("IbeConfigEndowmentMapping",[...la("IbeConfigEndowmentMapping"),new R.Input("text","externalGroupId","entity.GroupedIbeDataObjectMapping.externalGroupId")],ks(),Ta()),new R.BaseEntityFormConfiguration("IbeConfigImageTypeMapping",la("IbeConfigImageTypeMapping"),ks(),Ta()),new R.BaseEntityFormConfiguration("IbeConfigLocationDefinitionMapping",la("IbeConfigLocationDefinitionMapping"),ks(),Ta()),new R.BaseEntityFormConfiguration("IbeConfigLocationMapping",[new R.Input("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.Input("number","dataObjectId","entity.IbeConfigLocationMapping.dataObjectId"),new R.AnyField("locationName","entity.IbeConfigLocationMapping.locationName",{extractor:(0,R.pathExtractor)("locationName"),insertor:(0,R.noneInsertor)()}),new R.Input("text","externalId","entity.IbeDataObjectMapping.externalId"),new R.Input("text","connectorId","entity.IbeDataObjectMapping.connectorId"),new R.Input("text","additionalInfo","entity.IbeConfigLocationMapping.additionalInfo")],[...ks(),new R.Input("text","additionalInfo","entity.IbeConfigLocationMapping.additionalInfo")],[...Ta(),(0,R.filterByStringProperty)("additionalInfo")],void 0,void 0,void 0,void 0,void 0,void 0,ht),new R.BaseEntityFormConfiguration("IbeConfigRegionMapping",la("IbeConfigRegionMapping"),ks(),Ta()),new R.BaseEntityFormConfiguration("IbeConfigRegionMapping",la("IbeConfigRegionMapping"),ks(),Ta()),new R.BaseEntityFormConfiguration("IbeConfigRegionMapping",la("IbeConfigRegionMapping"),ks(),Ta()),new R.BaseEntityFormConfiguration("IbeConfigServiceClassificationMapping",la("IbeConfigServiceClassificationMapping"),ks(),Ta()),new R.BaseEntityFormConfiguration("IbeConfigServiceEndowmentMapping",la("IbeConfigServiceEndowmentMapping"),ks(),Ta()),new R.BaseEntityFormConfiguration("IbeConfigServiceTypeMapping",la("IbeConfigServiceTypeMapping"),ks(),Ta()),new R.BaseEntityFormConfiguration("IbeConfigMediaLicenseMapping",la("IbeConfigMediaLicenseMapping"),ks(),Ta()),new R.BaseEntityFormConfiguration("IbeConfigMealTypeMapping",la("IbeConfigMealTypeMapping"),ks(),Ta()),new R.BaseEntityFormConfiguration("IbeImportSourcePriorityDefinition",[new R.Input("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.Input("text","zipcode","entity.IbeImportSourcePriorityDefinition.zipcode",{required:!0}),new R.Input("text","priorityList","entity.IbeImportSourcePriorityDefinition.priorityList",{required:!0})],[new R.Input("text","zipcode","entity.IbeImportSourcePriorityDefinition.zipcode")],[(0,R.filterByStringProperty)("zipcode")])]),ya=new R.ModuleBaseEntityConfiguration("modules_ibe_deskline3_infra",[new R.BaseEntityFormConfiguration("IbeDeskline3InfrastructureTopic1",[...ds()],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("IbeDeskline3InfrastructureTopic2",[...ds()],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()])]),Pl=new R.ModuleBaseEntityConfiguration("modules_ibe_deskline3_food_beverage",[new R.BaseEntityFormConfiguration("IbeDeskline3FoodAndBeverageInfrastructureTopic1",[...ds()],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("IbeDeskline3FoodAndBeverageInfrastructureTopic2",[...ds()],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()])]),jl=new R.ModuleBaseEntityConfiguration("modules_ibe_deskline3_poi",[new R.BaseEntityFormConfiguration("IbeDeskline3PoiInfrastructureTopic1",[...ds()],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("IbeDeskline3PoiInfrastructureTopic2",[...ds()],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()])]),Ml=new R.ModuleBaseEntityConfiguration("modules_ibe_deskline3_sport_leisure",[new R.BaseEntityFormConfiguration("IbeDeskline3SportAndLeisureInfrastructureTopic1",[...ds()],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("IbeDeskline3SportAndLeisureInfrastructureTopic2",[...ds()],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()])]),rc=new R.ModuleBaseEntityConfiguration("modules_ibe_deskline3_mobility_traffic",[new R.BaseEntityFormConfiguration("IbeDeskline3MobilityAndTrafficInfrastructureTopic1",[...ds()],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("IbeDeskline3MobilityAndTrafficInfrastructureTopic2",[...ds()],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()])]),Kr=new R.ModuleBaseEntityConfiguration("modules_ibe_deskline3_wellness_health",[new R.BaseEntityFormConfiguration("IbeDeskline3WellnessAndHealthInfrastructureTopic1",[...ds()],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()]),new R.BaseEntityFormConfiguration("IbeDeskline3WellnessAndHealthInfrastructureTopic2",[...ds()],[new R.Input("text","i18nName","entity.I18nDataObject.i18nName")],[(0,R.filterByI18nName)()])]);function la(v){return[new R.Input("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.Input("number","dataObjectId","entity."+v+".dataObjectId"),new R.Input("text","externalId","entity.IbeDataObjectMapping.externalId"),new R.Input("text","connectorId","entity.IbeDataObjectMapping.connectorId")]}function ks(){return[new R.Input("number","dataObjectId","entity.IbeDataObjectMapping.dataObjectId"),new R.Input("text","externalId","entity.IbeDataObjectMapping.externalId"),new R.Input("text","connectorId","entity.IbeDataObjectMapping.connectorId")]}function Ta(){return[(0,R.filterById)("dataObjectId"),(0,R.filterByStringProperty)("externalId"),(0,R.filterByStringProperty)("connectorId")]}function ds(){return[new R.Input("number","id","entity.DataObject.id",{baseEntityFieldOption:{isIdField:!0}}),new R.I18nMultiInput("i18nName","imxplatform.common.multi-lang",{extendedI18nValidators:R.i18nSomeValidator}),new R.Input("text","externalId","entity.IbeDeskline3InfrastructureTopic1.externalId",{required:!0})]}var bs=a(51418),sl=a(2901),Ec=a(10001),gr=a(53256),Js=a(25913),Ms=a(63989),Bs=a(17927),yl=a(97734),Fr=a(44365),nl=a(47378),hl=a(22194);function Cc(v,Ne){1&v&&(r.TgZ(0,"p",4),r._uU(1,"imxplatform.common.no-records"),r.qZA())}function Zt(v,Ne){1&v&&r._UZ(0,"tr",20)}function ri(v,Ne){1&v&&r._UZ(0,"tr",21)}function Mn(v,Ne){if(1&v&&(r.TgZ(0,"th",22),r._uU(1),r.qZA()),2&v){const F=r.oxw(2);r.xp6(),r.Oqu(F.formHandler.getFormFieldLabel(F.modulePath+":certificateClassifications:certificate"))}}function mi(v,Ne){if(1&v&&(r.TgZ(0,"td",23)(1,"span"),r._uU(2),r.ALo(3,"readI18n"),r.qZA()()),2&v){const F=Ne.$implicit;r.xp6(2),r.Oqu(r.lcZ(3,1,F.controls.certificate.value.i18nName))}}function Mo(v,Ne){if(1&v&&(r.TgZ(0,"th",24),r._uU(1),r.qZA()),2&v){const F=r.oxw(2);r.xp6(),r.Oqu(F.formHandler.getFormFieldLabel(F.modulePath+":certificateClassifications:validityFromDate"))}}function pr(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",27),2&v){const F=r.oxw().$implicit,re=r.oxw(2);r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById(re.modulePath+":certificateClassifications:validityFromDate"))("control",F.controls.validityFromDate)("form",re.moduleDataFormGroup)("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}function Pr(v,Ne){if(1&v&&(r.TgZ(0,"td",25),r.YNc(1,pr,1,5,"imx-form-control",26),r.qZA()),2&v){const F=Ne.$implicit;r.Q6J("formGroup",F),r.xp6(),r.Q6J("ngIf",null==F.controls.certificate.value?null:F.controls.certificate.value.requiresValidity)}}function xa(v,Ne){if(1&v&&(r.TgZ(0,"th",24),r._uU(1),r.qZA()),2&v){const F=r.oxw(2);r.xp6(),r.Oqu(F.formHandler.getFormFieldLabel(F.modulePath+":certificateClassifications:validityToDate"))}}function tl(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",27),2&v){const F=r.oxw().$implicit,re=r.oxw(2);r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById(re.modulePath+":certificateClassifications:validityToDate"))("control",F.controls.validityToDate)("form",re.moduleDataFormGroup)("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}function Ls(v,Ne){if(1&v&&(r.TgZ(0,"td",25),r.YNc(1,tl,1,5,"imx-form-control",26),r.qZA()),2&v){const F=Ne.$implicit;r.Q6J("formGroup",F),r.xp6(),r.Q6J("ngIf",null==F.controls.certificate.value?null:F.controls.certificate.value.requiresValidity)}}function Ts(v,Ne){if(1&v&&(r.TgZ(0,"th",22),r._uU(1),r.qZA()),2&v){const F=r.oxw(2);r.xp6(),r.Oqu(F.formHandler.getFormFieldLabel(F.modulePath+":certificateClassifications:information"))}}function _s(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",27),2&v){const F=r.oxw().$implicit,re=r.oxw(2);r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById(re.modulePath+":certificateClassifications:information"))("control",F.controls.information)("form",re.moduleDataFormGroup)("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}function ul(v,Ne){if(1&v&&(r.TgZ(0,"td",23),r.YNc(1,_s,1,5,"imx-form-control",26),r.qZA()),2&v){const F=Ne.$implicit;r.xp6(),r.Q6J("ngIf",null==F.controls.certificate.value?null:F.controls.certificate.value.additionalInfo)}}function qs(v,Ne){if(1&v&&(r.TgZ(0,"th",22),r._uU(1),r.qZA()),2&v){const F=r.oxw(2);r.xp6(),r.Oqu(F.formHandler.getFormFieldLabel(F.modulePath+":certificateClassifications:intValue"))}}function Ks(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",27),2&v){const F=r.oxw().$implicit,re=r.oxw(2);r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById(re.modulePath+":certificateClassifications:intValue"))("control",F.controls.intValue)("form",re.moduleDataFormGroup)("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}function pl(v,Ne){if(1&v&&r._UZ(0,"imx-select",29),2&v){const F=r.oxw().$implicit,re=r.oxw(2);r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById(re.modulePath+":certificateClassifications:enumValue"))("control",F.controls.enumValue)("form",re.moduleDataFormGroup)("formHandler",re.formHandler)("optionProvider",re.certificateClassValueOptions.get(F.controls.certificate.value.id))}}function nc(v,Ne){if(1&v&&(r.TgZ(0,"td",23),r.YNc(1,Ks,1,5,"imx-form-control",26)(2,pl,1,5,"imx-select",28),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.Q6J("ngIf",(null==F.controls.certificate.value?null:F.controls.certificate.value.valueType)===re.valueTypeInt),r.xp6(),r.Q6J("ngIf",(null==F.controls.certificate.value?null:F.controls.certificate.value.valueType)==re.valueTypeEnum)}}function Mi(v,Ne){1&v&&r._UZ(0,"th",30)}function or(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"a",34),r.NdJ("click",function(){r.CHM(F);const ze=r.oxw(2).$implicit,It=r.oxw(2);return r.KtG(It.removeCertificateClassification(ze.controls.certificate.value.id))}),r.qZA()}}function Ki(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,or,1,0,"a",33),r.BQk()),2&v){const F=r.oxw(3);r.xp6(),r.Q6J("hasFieldWritePermission",F.modulePath+":certificateClassifications")("hasFieldWritePermissionFormHandler",F.formHandler)}}function Ao(v,Ne){if(1&v&&(r.TgZ(0,"td",31),r.YNc(1,Ki,2,2,"ng-container",32),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.Q6J("formGroup",F),r.xp6(),r.Q6J("ngIf",!re.moduleDataFormGroup.get("certificateClassifications").disabled&&!re.isCertificateDisabledInRow(F.controls.certificate.value.id)&&!F.controls.certificate.value.computed)}}function Go(v,Ne){if(1&v&&(r.TgZ(0,"table",5),r.YNc(1,Zt,1,0,"tr",6)(2,ri,1,0,"tr",7),r.ynx(3,8),r.YNc(4,Mn,2,1,"th",9)(5,mi,4,3,"td",10),r.BQk(),r.ynx(6,11),r.YNc(7,Mo,2,1,"th",12)(8,Pr,2,2,"td",13),r.BQk(),r.ynx(9,14),r.YNc(10,xa,2,1,"th",12)(11,Ls,2,2,"td",13),r.BQk(),r.ynx(12,15),r.YNc(13,Ts,2,1,"th",9)(14,ul,2,1,"td",10),r.BQk(),r.ynx(15,16),r.YNc(16,qs,2,1,"th",9)(17,nc,3,2,"td",10),r.BQk(),r.ynx(18,17),r.YNc(19,Mi,1,0,"th",18)(20,Ao,2,2,"td",19),r.BQk(),r.qZA()),2&v){const F=r.oxw();r.Q6J("dataSource",F.dataSource),r.xp6(),r.Q6J("matHeaderRowDef",F.displayedColumns),r.xp6(),r.Q6J("matRowDefColumns",F.displayedColumns)}}function dr(v,Ne){if(1&v&&r._UZ(0,"imx-select",35),2&v){const F=r.oxw();r.Q6J("disableControl",0===F.certificatesOptions.length||F.moduleDataFormGroup.get("certificateClassifications").disabled)("field",F.formHandler.formConfiguration.findFormFieldById(F.modulePath+":addCertificate"))("control",F.addControl)("form",F.moduleDataFormGroup)("formHandler",F.formHandler)("optionProvider",F.certificatesOptions)}}let pn=(()=>{class v extends R.AbstractCoreDataObjectFormPanelComponent{constructor(F,re,ze,It,vo){super(F),this.entitiesMgr=F,this.translateService=re,this.dialog=ze,this.userMessageService=It,this.changeDetectorRef=vo,this.disabledCertificateIds=[],this.allCertificatesOptions=[],this.certificatesOptions=[],this.certificateClassValueOptions=new Map,this.hasCerticatesWithAdditionalInfo=!1,this.hasCerticatesWithValidity=!1,this.addControl=new s.p4,this.valueTypeInt=1,this.valueTypeEnum=2,this.certificateIds=[]}onRecordChange(){super.onRecordChange(),this.certificates.pipe((0,Bs.b)(F=>{this.hasCerticatesWithAdditionalInfo=F.some(re=>re.additionalInfo),this.hasCerticatesWithValidity=F.some(re=>re.requiresValidity),this.certificateIds=F.map(re=>re.id)}),(0,Je.U)(F=>F.map(re=>({label:re.i18nName,value:re.id?re.id:-1,computed:re.computed})).sort((re,ze)=>this.sortFn?this.sortFn(re,ze):(0,R.compareI18n)(re.label,ze.label,this.translateService.currentLang)))).subscribe(F=>{this.allCertificatesOptions.push(...F.filter(re=>!re.computed)),this.disabledCertificateIds.push(...F.filter(re=>re.computed).map(re=>re.value)),this.updateCertificatesOptions()}),this.prepareCertificateTable(),this.entitiesMgr.getAllEntitiesOfType("CertificateClassValue").pipe((0,Je.U)(F=>F.items)).subscribe(F=>{F.forEach(re=>{const ze=this.certificateClassValueOptions.get(re.assignedCertificate.id);ze?ze.find(It=>It.value===re.id)||ze.push({value:re.id,label:re.i18nName}):this.certificateClassValueOptions.set(re.assignedCertificate.id,[{value:re.id,label:re.i18nName}])}),this.changeDetectorRef.markForCheck()}),this.displayedColumns=["certificate"],this.hasCerticatesWithValidity&&this.displayedColumns.push("validityFromDate","validityToDate"),this.hasCerticatesWithAdditionalInfo&&this.displayedColumns.push("information"),this.displayedColumns.push("enumOrIntValue"),this.displayedColumns.push("removeColumn")}ngOnInit(){this.addControl.setValue(R.SELECT_PLACEHOLDER_VALUE),this.addControl.valueChanges.pipe((0,rn.R)(this.destroy$),(0,yl.h)(F=>void 0!==F&&F!==R.SELECT_PLACEHOLDER_VALUE&&this.certificateIds.some(re=>re===F))).subscribe(F=>{const re=this.formHandler.addNewCollectionRow(this.modulePath+":certificateClassifications",!1);re.controls.certificate.setValue({id:F}),re.controls.enumValue.setValue(-1),this.entitiesMgr.getEntityWithIdOfType("Certificate",F).subscribe(ze=>{re.controls.certificate.setValue(ze)}),this.moduleDataFormGroup.get("certificateClassifications").push(re),this.moduleDataFormGroup.get("certificateClassifications").markAsDirty(),this.updateCertificatesOptions(),this.addControl.setValue(R.SELECT_PLACEHOLDER_VALUE)}),this.moduleDataFormGroup.get("certificateClassifications").controls.forEach(F=>{if(F.get("certificate")&&F.get("certificate").value){const re=F.get("certificate");this.entitiesMgr.getEntityWithIdOfType("Certificate",re.value.id).subscribe(ze=>{re.setValue(ze)})}}),this.disabledCertificateIds&&this.disabledCertificateIds.length>0&&!this.moduleDataFormGroup.get("certificateClassifications").disabled&&this.moduleDataFormGroup.get("certificateClassifications").controls.forEach(F=>{if(F.get("certificate")&&F.get("certificate").value){const re=F.get("certificate");this.isCertificateDisabledInRow(re.value.id)&&(F.get("enumValue").disable({onlySelf:!0,emitEvent:!1}),F.get("intValue").disable({onlySelf:!0,emitEvent:!1}),F.get("validityFromDate").disable({onlySelf:!0,emitEvent:!1}),F.get("validityToDate").disable({onlySelf:!0,emitEvent:!1}),F.get("information").disable({onlySelf:!0,emitEvent:!1}))}})}isCertificateDisabledInRow(F){return this.disabledCertificateIds&&this.disabledCertificateIds.some(re=>re===F)}updateCertificatesOptions(){this.certificatesOptions=this.allCertificatesOptions.filter(F=>!this.isAlreadyAssigned(F.value))}isAlreadyAssigned(F){return this.moduleDataFormGroup.get("certificateClassifications").value.some(re=>re.certificate.id===F)}prepareCertificateTable(){const F=this.moduleDataFormGroup.get("certificateClassifications");if(!F)throw new Error("cannot prepareTable for undefined formArray");F.valueChanges.pipe((0,rn.R)(this.destroy$)).subscribe(re=>{this.dataSource=this.createDataSource(F)}),this.dataSource=this.createDataSource(F)}createDataSource(F){const re=new ue.by(F.controls);return re.data.sort((ze,It)=>this.sortFn?this.sortFn(ze,It):(0,R.compareI18n)(ze.get("certificate").value.i18nName,It.get("certificate").value.i18nName,this.translateService.currentLang)),re.data=re.data.filter(ze=>this.filterCertificateClassifications(ze)),re}filterCertificateClassifications(F){const re=F.get("certificate").value.id;return this.certificateIds.some(ze=>ze===re)}removeCertificateClassification(F){const re=this.moduleDataFormGroup.get("certificateClassifications").controls.findIndex(ze=>ze.get("certificate").value.id===F);re>-1&&this.moduleDataFormGroup.get("certificateClassifications").removeAt(re),this.moduleDataFormGroup.get("certificateClassifications").markAsDirty(),this.updateCertificatesOptions()}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(Te.qB),r.Y36(et.sK),r.Y36(u.uw),r.Y36(R.UserMessageService),r.Y36(r.sBO))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-certificate-form-panel"]],hostAttrs:[1,"imx-certificate-form-panel"],inputs:{moduleDataFormGroup:"moduleDataFormGroup",certificates:"certificates",moduleId:"moduleId",modulePath:"modulePath",disabledCertificateIds:"disabledCertificateIds",sortFn:"sortFn"},features:[r.qOj],decls:6,vars:3,consts:[["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],["class","imx-button-select",3,"disableControl","field","control","form","formHandler","optionProvider",4,"hasSavePermission"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","certificate"],["mat-header-cell","","translate","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","validityFromDate"],["mat-header-cell","","class","date","translate","",4,"matHeaderCellDef"],["mat-cell","","class","date",3,"formGroup",4,"matCellDef"],["matColumnDef","validityToDate"],["matColumnDef","information"],["matColumnDef","enumOrIntValue"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","","translate",""],["mat-cell",""],["mat-header-cell","","translate","",1,"date"],["mat-cell","",1,"date",3,"formGroup"],[3,"field","control","form","formHandler","config",4,"ngIf"],[3,"field","control","form","formHandler","config"],[3,"field","control","form","formHandler","optionProvider",4,"ngIf"],[3,"field","control","form","formHandler","optionProvider"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],[4,"ngIf"],["class","icon icon-trash imx-icon-middle imx-icon-clickable",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"],[1,"imx-button-select",3,"disableControl","field","control","form","formHandler","optionProvider"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"div"),r.YNc(1,Cc,2,0,"ng-template",null,0,r.W1O),r.TgZ(3,"div",1),r.YNc(4,Go,21,3,"table",2),r.qZA()(),r.YNc(5,dr,1,6,"imx-select",3)),2&re){const It=r.MAs(2);r.xp6(4),r.Q6J("ngIf",ze.dataSource&&ze.dataSource.data.length>0)("ngIfElse",It),r.xp6(),r.Q6J("hasSavePermission",ze.formHandler)}},dependencies:[Ft.A,no.H,Fr.R,nl.X,hl.F,e.O5,s.JL,ue.BZ,ue.fO,ue.as,ue.w1,ue.Dz,ue.nj,ue.ge,ue.ev,ue.XQ,ue.Gk,s.sg,et.Pi,Fa.j],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.date[_ngcontent-%COMP%]{max-width:130px}"]})}return v})();function bo(v,Ne){1&v&&r.GkF(0)}function nt(v,Ne){1&v&&r.GkF(0)}const Sn=()=>({$implicit:"accommodationTypes"});function fi(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,nt,1,0,"ng-container",2),r.BQk()),2&v){r.oxw();const F=r.MAs(27);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,Sn))}}function $i(v,Ne){1&v&&r.GkF(0)}function No(v,Ne){1&v&&r.GkF(0)}function Ar(v,Ne){1&v&&r.GkF(0)}function xr(v,Ne){if(1&v&&(r.ynx(0),r._UZ(1,"imx-base-input-label",13),r.ALo(2,"readI18n"),r._UZ(3,"imx-checkbox-select",14),r.BQk()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.s9C("label",r.lcZ(2,8,F.i18nName)),r.xp6(2),r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById("metainfos:modules_acc:endowments"))("control",re.moduleDataFormGroup.get("endowments"))("form",re.moduleDataFormGroup)("formHandler",re.formHandler)("optionProvider",F.endowments)("rowLayout",!0)("showLine",!0)}}function Sr(v,Ne){if(1&v&&(r.TgZ(0,"imx-accordion-panel",11),r.YNc(1,xr,4,10,"ng-container",12),r.qZA()),2&v){const F=r.oxw();r.xp6(),r.Q6J("ngForOf",F.groupedEndowments)}}function ns(v,Ne){if(1&v&&(r.TgZ(0,"imx-accordion-panel",15),r._UZ(1,"imx-certificate-form-panel",16),r.qZA()),2&v){const F=r.oxw();r.xp6(),r.Q6J("formHandler",F.formHandler)("moduleDataFormGroup",F.moduleDataFormGroup)("modulePath","metainfos:modules_acc")("record",F.record)("certificates",F.certificates)}}function Tl(v,Ne){1&v&&r.GkF(0)}function Fs(v,Ne){1&v&&r.GkF(0)}function il(v,Ne){1&v&&r.GkF(0)}function ac(v,Ne){1&v&&r.GkF(0)}function Nl(v,Ne){1&v&&r.GkF(0)}function em(v,Ne){1&v&&r.GkF(0)}function Kl(v,Ne){1&v&&r.GkF(0)}function xl(v,Ne){1&v&&r.GkF(0)}const ll=()=>({$implicit:"superior"}),tm=()=>({$implicit:"categoryDehoga"}),Nc=()=>({$implicit:"categoryDehogaGuestHouse"}),Dd=()=>({$implicit:"categoryDtvAparmentMin"}),_c=()=>({$implicit:"categoryDtvAparmentMax"}),wc=()=>({$implicit:"categoryDtvPrivateRoom"}),nm=()=>({$implicit:"categoryDtvCamping"}),Id=()=>({$implicit:"categoryHrs"});function Ns(v,Ne){if(1&v&&(r.TgZ(0,"imx-accordion-panel",17),r.ynx(1),r.YNc(2,Tl,1,0,"ng-container",2)(3,Fs,1,0,"ng-container",2)(4,il,1,0,"ng-container",2)(5,ac,1,0,"ng-container",2)(6,Nl,1,0,"ng-container",2)(7,em,1,0,"ng-container",2)(8,Kl,1,0,"ng-container",2)(9,xl,1,0,"ng-container",2),r.BQk(),r.qZA()),2&v){r.oxw();const F=r.MAs(27);r.xp6(2),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(16,ll)),r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(17,tm)),r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(18,Nc)),r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(19,Dd)),r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(20,_c)),r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(21,wc)),r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(22,nm)),r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(23,Id))}}function Uc(v,Ne){1&v&&r.GkF(0)}const dn=()=>({$implicit:"accommodationLanguages"});function Mr(v,Ne){if(1&v&&(r.TgZ(0,"imx-accordion-panel",18),r.YNc(1,Uc,1,0,"ng-container",2),r.qZA()),2&v){r.oxw();const F=r.MAs(27);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,dn))}}function mn(v,Ne){1&v&&r.GkF(0)}const Nn=()=>({$implicit:"topics"});function Ci(v,Ne){if(1&v&&(r.TgZ(0,"imx-accordion-panel",19),r.YNc(1,mn,1,0,"ng-container",2),r.qZA()),2&v){r.oxw();const F=r.MAs(27);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,Nn))}}function Io(v,Ne){if(1&v&&(r.TgZ(0,"imx-accordion-panel",20),r._UZ(1,"imx-edit-extended-attributes",21),r.qZA()),2&v){const F=r.oxw();r.xp6(),r.Q6J("formHandler",F.formHandler)("formGroup",F.moduleDataFormGroup)("fieldPrefix","metainfos:modules_acc")("extendedAttributes",F.extendedAttributes)("permissionIdPrefix","AccommodationAddressbase")}}function cr(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",22),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById("metainfos:modules_acc:"+F))("control",re.moduleDataFormGroup.get(F))("form",re.formHandler.formGroup.get("metainfos"))("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}const ra=()=>({$implicit:"businessTypes"}),$a=()=>({$implicit:"trustYouId"}),xe=()=>({$implicit:"surveyId"}),h=()=>({$implicit:"onlineBookable"});let k=(()=>{class v extends R.AbstractExtendedAttributeAwareFormPanelComponent{constructor(F,re,ze){super(F,re),this.entitiesMgr=F,this.dialog=re,this.readI18nPipe=ze,this.businessTypesAvailable=(0,wn.of)(!1),this.accommodationTypesAvailable=(0,wn.of)(!1),this.endowmentsAvailable=(0,wn.of)(!1),this.certificatesAvailable=(0,wn.of)(!1),this.accommodationLanguagesAvailable=(0,wn.of)(!1),this.topicsAvailable=(0,wn.of)(!1),this.groupedEndowments=[],this.defaultAttributeGroup={id:0,i18nName:void 0}}ngOnInit(){super.ngOnInit(),this.businessTypesAvailable=this.baseEntityAvailable("BusinessType"),this.accommodationTypesAvailable=this.baseEntityAvailable("AccommodationType"),this.endowmentsAvailable=this.baseEntityAvailable("Endowment"),this.certificatesAvailable=this.baseEntityAvailable("Certificate"),this.accommodationLanguagesAvailable=this.baseEntityAvailable("AccommodationLanguage"),this.topicsAvailable=this.baseEntityAvailable("Topic"),this.certificates=this.entitiesMgr.getAllEntitiesOfType("Certificate").pipe((0,Je.U)(F=>F.items.filter(re=>re.modules&&re.modules.some(ze=>ze.id==this.moduleId)))),this.endowmentsAvailable&&this._loadEndowments()}_loadEndowments(){this.entitiesMgr.getAllEntitiesOfType("Endowment").pipe((0,bs.q)(1)).subscribe(F=>{this.groupedEndowments=this._groupEndowments(F.items).sort((re,ze)=>re.id-ze.id)})}_groupEndowments(F){const re=[];return F.forEach(ze=>{const It=this._createEndowmentOption(ze);let{attributeGroup:vo}=ze;null===vo&&(vo=this.defaultAttributeGroup);const Os=re.findIndex(xd=>xd.id===vo.id);-1===Os?re.push({...vo,endowments:[It]}):re[Os].endowments.push(It)}),re}_createEndowmentOption(F){const{i18nName:re,id:ze}=F;return{label:this.readI18nPipe.transform(re),value:ze}}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(Te.qB),r.Y36(u.uw),r.Y36(R.ReadI18nPipe))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-accommodation-addressbase-form-panel"]],features:[r.qOj],decls:28,vars:37,consts:[["title","imxtools.metainfo.modules_acc.main"],["translate",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],["title","imxtools.metainfo.modules_acc.endowments",4,"ngIf"],["title","imxtools.metainfo.modules_acc.certificates",4,"ngIf"],["title","imxtools.metainfo.modules_acc.category.header",4,"ngIf"],["title","imxtools.metainfo.modules_acc.languages",4,"ngIf"],["title","imxtools.metainfo.modules_acc.topics",4,"ngIf"],["title","imxtools.metainfo.modules_acc.attributes",4,"ngIf"],["imxControl",""],["title","imxtools.metainfo.modules_acc.endowments"],[4,"ngFor","ngForOf"],[3,"label"],[3,"field","control","form","formHandler","optionProvider","rowLayout","showLine"],["title","imxtools.metainfo.modules_acc.certificates"],[3,"formHandler","moduleDataFormGroup","modulePath","record","certificates"],["title","imxtools.metainfo.modules_acc.category.header"],["title","imxtools.metainfo.modules_acc.languages"],["title","imxtools.metainfo.modules_acc.topics"],["title","imxtools.metainfo.modules_acc.attributes"],[3,"formHandler","formGroup","fieldPrefix","extendedAttributes","permissionIdPrefix"],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0)(2,"h3",1),r._uU(3,"imxtools.metainfo.modules_acc.typification"),r.qZA(),r.YNc(4,bo,1,0,"ng-container",2)(5,fi,2,3,"ng-container",3),r.ALo(6,"async"),r.TgZ(7,"h3",1),r._uU(8,"imxtools.metainfo.modules_acc.rating"),r.qZA(),r.YNc(9,$i,1,0,"ng-container",2)(10,No,1,0,"ng-container",2)(11,Ar,1,0,"ng-container",2),r.qZA(),r.YNc(12,Sr,2,1,"imx-accordion-panel",4),r.ALo(13,"async"),r.YNc(14,ns,2,5,"imx-accordion-panel",5),r.ALo(15,"async"),r.ALo(16,"async"),r.YNc(17,Ns,10,24,"imx-accordion-panel",6),r.ALo(18,"async"),r.YNc(19,Mr,2,3,"imx-accordion-panel",7),r.ALo(20,"async"),r.YNc(21,Ci,2,3,"imx-accordion-panel",8),r.ALo(22,"async"),r.YNc(23,Io,2,5,"imx-accordion-panel",9),r.ALo(24,"async"),r.ALo(25,"async"),r.qZA(),r.YNc(26,cr,1,5,"ng-template",null,10,r.W1O)),2&re){const It=r.MAs(27);r.xp6(4),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(33,ra)),r.xp6(),r.Q6J("ngIf",r.lcZ(6,15,ze.accommodationTypesAvailable)),r.xp6(4),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(34,$a)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(35,xe)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(36,h)),r.xp6(),r.Q6J("ngIf",r.lcZ(13,17,ze.endowmentsAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(15,19,ze.certificatesAvailable)&&r.lcZ(16,21,ze.formHandler.hasReadPermission("AccommodationAddressbase:certificateClassifications"))),r.xp6(3),r.Q6J("ngIf",r.lcZ(18,23,ze.formHandler.hasReadPermission("AccommodationAddressbase:category"))),r.xp6(2),r.Q6J("ngIf",r.lcZ(20,25,ze.accommodationLanguagesAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(22,27,ze.topicsAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(24,29,ze.extendedAttributesAvailable)&&r.lcZ(25,31,ze.formHandler.hasReadPermission("AccommodationAddressbase:attributeDefinitions")))}},dependencies:[sl.u,Ec.r,gr.E,Ft.A,e.sg,e.O5,e.tP,s.JL,s.sg,et.Pi,Js.Z,Ms.U,pn,Fa.j,e.Ov],encapsulation:2,changeDetection:0})}return v})();function se(v,Ne){1&v&&r.GkF(0)}function de(v,Ne){1&v&&r.GkF(0)}function Ae(v,Ne){1&v&&r.GkF(0)}function Ct(v,Ne){1&v&&r.GkF(0)}function wt(v,Ne){1&v&&r.GkF(0)}function Mt(v,Ne){1&v&&r.GkF(0)}function fn(v,Ne){1&v&&r.GkF(0)}function Qn(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",7),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.data.arrayField.getChildField(F))("control",re.data.formRow.get(F))("form",re.data.formRow)("formHandler",re.data.formHandler)("config",re.data.formHandler.formConfiguration)}}const ei=()=>({$implicit:"validFrom"}),bi=()=>({$implicit:"pricePerMonthMin"}),zi=()=>({$implicit:"pricePerMonthMax"}),Be=()=>({$implicit:"pricePerWeekMin"}),pt=()=>({$implicit:"pricePerWeekMax"}),Ye=()=>({$implicit:"pricePerDayMin"}),ut=()=>({$implicit:"pricePerDayMax"});let Kt=(()=>{class v{constructor(F){this.data=F,this.modulePath="metainfos:modules_acc_apartment"}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(u.WI))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["ng-component"]],decls:17,vars:26,consts:[["icon","icon-pencil--squares","dialogType","form",3,"heading","submitButtonDisabled"],["id","accommodation-apartment-price-list-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"form__content-field-row"],["imxFormControl",""],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-dialog",0),r.ALo(1,"async"),r.TgZ(2,"form",1)(3,"div",2)(4,"div",3),r.YNc(5,se,1,0,"ng-container",4),r.TgZ(6,"div",5),r.YNc(7,de,1,0,"ng-container",4)(8,Ae,1,0,"ng-container",4),r.qZA(),r.TgZ(9,"div",5),r.YNc(10,Ct,1,0,"ng-container",4)(11,wt,1,0,"ng-container",4),r.qZA(),r.TgZ(12,"div",5),r.YNc(13,Mt,1,0,"ng-container",4)(14,fn,1,0,"ng-container",4),r.qZA()()()()(),r.YNc(15,Qn,1,5,"ng-template",null,6,r.W1O)),2&re){const It=r.MAs(16);r.Q6J("heading",ze.data.title)("submitButtonDisabled",ze.data.formRow.invalid||ze.data.formRow.pristine||!r.lcZ(1,17,ze.data.formHandler.hasSavePermission())),r.xp6(2),r.Q6J("formGroup",ze.data.formHandler.formGroup),r.xp6(3),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(19,ei)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(20,bi)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(21,zi)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(22,Be)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(23,pt)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(24,Ye)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(25,ut))}},dependencies:[Wi.a,Ft.A,e.tP,s._Y,s.JL,s.sg,e.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}"]})}return v})();var en=a(74961),qn=a(6128),hi=a(36681);function gi(v,Ne){1&v&&r.GkF(0)}function ko(v,Ne){1&v&&r.GkF(0)}function Wo(v,Ne){1&v&&r.GkF(0)}function tr(v,Ne){1&v&&r.GkF(0)}function br(v,Ne){1&v&&r.GkF(0)}function fa(v,Ne){1&v&&r.GkF(0)}function ga(v,Ne){1&v&&r.GkF(0)}function $r(v,Ne){1&v&&r.GkF(0)}function Rr(v,Ne){1&v&&r.GkF(0)}function Xr(v,Ne){1&v&&r.GkF(0)}function Es(v,Ne){1&v&&r.GkF(0)}function Ys(v,Ne){1&v&&r.GkF(0)}function qa(v,Ne){1&v&&r.GkF(0)}function Qs(v,Ne){1&v&&r.GkF(0)}function ic(v,Ne){1&v&&r.GkF(0)}function wl(v,Ne){1&v&&r.GkF(0)}function md(v,Ne){1&v&&r.GkF(0)}function Dc(v,Ne){1&v&&r.GkF(0)}function yc(v,Ne){1&v&&r.GkF(0)}function Wc(v,Ne){1&v&&r.GkF(0)}function im(v,Ne){1&v&&r.GkF(0)}function Vl(v,Ne){1&v&&r.GkF(0)}function zc(v,Ne){1&v&&(r.TgZ(0,"p",11),r._uU(1,"imxplatform.common.no-records"),r.qZA())}function Il(v,Ne){1&v&&r._UZ(0,"tr",21)}function Bc(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"tr",22),r.NdJ("click",function(){const It=r.CHM(F).$implicit,vo=r.oxw(2);return r.KtG(vo.editPriceList(It))}),r.qZA()}}function Ac(v,Ne){1&v&&(r.TgZ(0,"th",23),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ApartmentPriceList.validFrom")))}function Xl(v,Ne){if(1&v&&(r.TgZ(0,"td",24),r._uU(1),r.ALo(2,"date"),r.qZA()),2&v){const F=Ne.$implicit;r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.validFrom.value,"dd.MM.yyyy")," ")}}function uc(v,Ne){1&v&&r._UZ(0,"th",25)}function Oc(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"imx-action-menu-item",29),r.NdJ("click",function(){r.CHM(F);const ze=r.oxw().$implicit,It=r.oxw(2);return r.KtG(It.data.formHandler.removeLineFromCollection("priceLists",It.priceListsCollectionDataSource.filteredData.indexOf(ze),It.data.formRow))}),r._uU(1," imxplatform.common-entity.list.remove "),r.qZA()}2&v&&r.Q6J("icon","icon-trash")}function jc(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"td",26)(1,"imx-dropup-button")(2,"imx-action-menu")(3,"imx-action-menu-item",27),r.NdJ("click",function(){const It=r.CHM(F).$implicit,vo=r.oxw(2);return r.KtG(vo.editPriceList(It))}),r._uU(4," imxplatform.common-entity.list.details "),r.qZA(),r.YNc(5,Oc,2,1,"imx-action-menu-item",28),r.qZA()()()}if(2&v){const F=Ne.$implicit,re=r.oxw(2);r.Q6J("formGroup",F),r.xp6(3),r.Q6J("icon","icon-magnifier"),r.xp6(2),r.Q6J("hasSavePermission",re.data.formHandler)}}function pc(v,Ne){if(1&v&&(r.TgZ(0,"table",12),r.YNc(1,Il,1,0,"tr",13)(2,Bc,1,0,"tr",14),r.ynx(3,15),r.YNc(4,Ac,3,3,"th",16)(5,Xl,3,4,"td",17),r.BQk(),r.ynx(6,18),r.YNc(7,uc,1,0,"th",19)(8,jc,6,3,"td",20),r.BQk(),r.qZA()),2&v){const F=r.oxw();r.Q6J("dataSource",F.priceListsCollectionDataSource),r.xp6(),r.Q6J("matHeaderRowDef",F.priceListsColumns),r.xp6(),r.Q6J("matRowDefColumns",F.priceListsColumns)}}function Ul(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",30),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.data.arrayField.getChildField(F))("control",re.data.formRow.get(F))("form",re.data.formRow)("formHandler",re.data.formHandler)("config",re.data.formHandler.formConfiguration)}}const Xc=()=>({$implicit:"i18nName"}),ec=()=>({$implicit:"numUnitsHouses"}),vd=()=>({$implicit:"numUnitsApartments"}),bd=()=>({$implicit:"numUnitsApartments2"}),Sd=()=>({$implicit:"numPersonsFrom"}),Ru=()=>({$implicit:"numPersonsTo"}),mm=()=>({$implicit:"dtvFewFrom"}),hu=()=>({$implicit:"dtvFewTo"}),Fd=()=>({$implicit:"areaSizeFrom"}),tc=()=>({$implicit:"areaSizeTo"}),Km=()=>({$implicit:"numLivingRoomsFrom"}),um=()=>({$implicit:"numLivingRoomsTo"}),ad=()=>({$implicit:"numSleepingRoomsFrom"}),Zc=()=>({$implicit:"numSleepingRoomsTo"}),Cd=()=>({$implicit:"numCombinedRoomsFrom"}),Rm=()=>({$implicit:"numCombinedRoomsTo"}),om=()=>({$implicit:"numChildrenBedsFrom"}),pm=()=>({$implicit:"numChildrenBedsTo"}),Ld=()=>({$implicit:"daily"}),jd=()=>({$implicit:"allSeason"}),Ud=()=>({$implicit:"breakfastOnDemand"}),km=()=>({$implicit:"endowments"});let Nm=(()=>{class v{constructor(F,re,ze){this.data=F,this.changeDetectorRef=re,this.dialog=ze,this.modulePath="metainfos:modules_acc_apartment",this.destroy$=new nn.xQ}ngOnInit(){this.data.formRow.get("priceLists")&&(this.priceListsCollectionDataSource=(0,R.prepareTable)(this.data.formRow.get("priceLists"),F=>this.priceListsCollectionDataSource=F,this.destroy$),this.priceListsColumns=["validFrom","actionColumn"])}editPriceList(F){if(F){const re=F.value;this.openPriceListDialog(F).afterClosed().subscribe(It=>{It?this.changeDetectorRef.markForCheck():F.reset(re,{onlySelf:!0})})}}createPriceList(){const F=this.data.formHandler.addNewCollectionRow(this.modulePath+":apartmentDetails:priceLists",!1);this.openPriceListDialog(F).afterClosed().subscribe(ze=>{ze&&(this.data.formRow.get("priceLists").push(F),this.data.formRow.get("priceLists").markAsDirty(),this.priceListsCollectionDataSource=new ue.by(this.data.formRow.get("priceLists").controls),this.changeDetectorRef.markForCheck())})}openPriceListDialog(F){return this.dialog.open(Kt,{minWidth:600,data:{title:"entity.ApartmentPriceList.entityName",arrayField:this.data.formHandler.formConfiguration.findArrayFieldById(this.modulePath+":apartmentDetails:priceLists"),formRow:F,formHandler:this.data.formHandler}})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(u.WI),r.Y36(r.sBO),r.Y36(u.uw))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["ng-component"]],decls:47,vars:81,consts:[["icon","icon-pencil--squares","dialogType","form",3,"heading","submitButtonDisabled"],["id","rooms-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group","dialog-form-group--apartmentDetail"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"form__content-field-row"],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[1,"imx-button","prio2",3,"disabled","click"],["imxFormControl",""],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","clickable",3,"click",4,"matRowDef","matRowDefColumns"],["matColumnDef","validFrom"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actionColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row","",1,"clickable",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],[3,"icon","click"],["additionalStyle","delete",3,"icon","click",4,"hasSavePermission"],["additionalStyle","delete",3,"icon","click"],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-dialog",0),r.ALo(1,"async"),r.TgZ(2,"form",1)(3,"div",2)(4,"div",3),r.YNc(5,gi,1,0,"ng-container",4),r.TgZ(6,"div",5),r.YNc(7,ko,1,0,"ng-container",4)(8,Wo,1,0,"ng-container",4)(9,tr,1,0,"ng-container",4),r.qZA(),r.TgZ(10,"div",5),r.YNc(11,br,1,0,"ng-container",4)(12,fa,1,0,"ng-container",4),r.qZA(),r.TgZ(13,"div",5),r.YNc(14,ga,1,0,"ng-container",4)(15,$r,1,0,"ng-container",4),r.qZA(),r.TgZ(16,"div",5),r.YNc(17,Rr,1,0,"ng-container",4)(18,Xr,1,0,"ng-container",4),r.qZA(),r.TgZ(19,"div",5),r.YNc(20,Es,1,0,"ng-container",4)(21,Ys,1,0,"ng-container",4),r.qZA(),r.TgZ(22,"div",5),r.YNc(23,qa,1,0,"ng-container",4)(24,Qs,1,0,"ng-container",4),r.qZA(),r.TgZ(25,"div",5),r.YNc(26,ic,1,0,"ng-container",4)(27,wl,1,0,"ng-container",4),r.qZA(),r.TgZ(28,"div",5),r.YNc(29,md,1,0,"ng-container",4)(30,Dc,1,0,"ng-container",4),r.qZA(),r.TgZ(31,"div",5),r.YNc(32,yc,1,0,"ng-container",4)(33,Wc,1,0,"ng-container",4)(34,im,1,0,"ng-container",4),r.qZA(),r.YNc(35,Vl,1,0,"ng-container",4)(36,zc,2,0,"ng-template",null,6,r.W1O),r.TgZ(38,"div",7),r.YNc(39,pc,9,3,"table",8),r.qZA(),r.TgZ(40,"button",9),r.NdJ("click",function(){return ze.createPriceList()}),r.ALo(41,"async"),r.ALo(42,"async"),r._uU(43),r.ALo(44,"translate"),r.qZA()()()()(),r.YNc(45,Ul,1,5,"ng-template",null,10,r.W1O)),2&re){const It=r.MAs(37),vo=r.MAs(46);r.Q6J("heading",ze.data.title)("submitButtonDisabled",ze.data.formRow.invalid||ze.data.formRow.pristine||!r.lcZ(1,51,ze.data.formHandler.hasSavePermission())),r.xp6(2),r.Q6J("formGroup",ze.data.formHandler.formGroup),r.xp6(3),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(59,Xc)),r.xp6(2),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(60,ec)),r.xp6(),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(61,vd)),r.xp6(),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(62,bd)),r.xp6(2),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(63,Sd)),r.xp6(),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(64,Ru)),r.xp6(2),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(65,mm)),r.xp6(),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(66,hu)),r.xp6(2),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(67,Fd)),r.xp6(),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(68,tc)),r.xp6(2),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(69,Km)),r.xp6(),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(70,um)),r.xp6(2),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(71,ad)),r.xp6(),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(72,Zc)),r.xp6(2),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(73,Cd)),r.xp6(),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(74,Rm)),r.xp6(2),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(75,om)),r.xp6(),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(76,pm)),r.xp6(2),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(77,Ld)),r.xp6(),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(78,jd)),r.xp6(),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(79,Ud)),r.xp6(),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(80,km)),r.xp6(4),r.Q6J("ngIf",ze.priceListsCollectionDataSource&&ze.priceListsCollectionDataSource.data.length>0)("ngIfElse",It),r.xp6(),r.Q6J("disabled",!r.lcZ(41,53,ze.data.formHandler.hasSavePermission())||!r.lcZ(42,55,ze.data.formHandler.hasSavePermission())),r.xp6(3),r.hij(" ",r.lcZ(44,57,"imxtools.metainfo.modules_acc_apartment.priceList-new")," ")}},dependencies:[Wi.a,Ft.A,Fr.R,e.O5,e.tP,s._Y,s.JL,ue.BZ,ue.fO,ue.as,ue.w1,ue.Dz,ue.nj,ue.ge,ue.ev,ue.XQ,ue.Gk,s.sg,et.Pi,en.p,qn.z,hi.t,e.Ov,e.uU,et.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}  .dialog-form-group--apartmentDetail .form__table .mat-mdc-table{table-layout:unset!important}"]})}return v})();var xu=a(88844);function $u(v,Ne){1&v&&r.GkF(0)}function Kd(v,Ne){1&v&&r.GkF(0)}function $m(v,Ne){1&v&&r.GkF(0)}function ed(v,Ne){1&v&&(r.TgZ(0,"p",11),r._uU(1,"imxplatform.common.no-records"),r.qZA())}function ku(v,Ne){1&v&&r._UZ(0,"tr",32)}function _m(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"tr",33),r.NdJ("click",function(){const It=r.CHM(F).$implicit,vo=r.oxw(2);return r.KtG(vo.editApartmentDetail(It))}),r.qZA()}}function qm(v,Ne){1&v&&(r.TgZ(0,"th",34),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ApartmentAddressbaseDetail.i18nName")))}function Xm(v,Ne){if(1&v&&(r.TgZ(0,"td",35),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.i18nName.value,re.formEditLanguage.name)," ")}}function Um(v,Ne){1&v&&(r.TgZ(0,"th",36),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ApartmentAddressbaseDetail.numUnitsHouses")))}function sd(v,Ne){if(1&v&&(r._UZ(0,"td",37),r.ALo(1,"stripTags"),r.ALo(2,"readI18n")),2&v){const F=Ne.$implicit,re=r.oxw(2);r.Q6J("innerHTML",r.lcZ(1,1,r.xi3(2,3,F.controls.numUnitsHouses.value,re.formEditLanguage.name)),r.oJD)}}function Kc(v,Ne){1&v&&(r.TgZ(0,"th",34),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ApartmentAddressbaseDetail.numUnitsApartments")))}function fm(v,Ne){if(1&v&&(r._UZ(0,"td",38),r.ALo(1,"stripTags"),r.ALo(2,"readI18n")),2&v){const F=Ne.$implicit,re=r.oxw(2);r.Q6J("innerHTML",r.lcZ(1,1,r.xi3(2,3,F.controls.numUnitsApartments.value,re.formEditLanguage.name)),r.oJD)}}function Nu(v,Ne){1&v&&(r.TgZ(0,"th",34),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ApartmentAddressbaseDetail.numUnitsApartments2")))}function yd(v,Ne){if(1&v&&(r._UZ(0,"td",38),r.ALo(1,"stripTags"),r.ALo(2,"readI18n")),2&v){const F=Ne.$implicit,re=r.oxw(2);r.Q6J("innerHTML",r.lcZ(1,1,r.xi3(2,3,F.controls.numUnitsApartments2.value,re.formEditLanguage.name)),r.oJD)}}function gm(v,Ne){1&v&&(r.TgZ(0,"th",34),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ApartmentAddressbaseDetail.dtvFew")))}function vu(v,Ne){if(1&v&&(r._UZ(0,"td",38),r.ALo(1,"stripTags"),r.ALo(2,"readI18n")),2&v){const F=Ne.$implicit,re=r.oxw(2);r.Q6J("innerHTML",r.lcZ(1,1,r.xi3(2,3,F.controls.dtvFewFrom.value,re.formEditLanguage.name)),r.oJD)}}function bu(v,Ne){1&v&&(r.TgZ(0,"th",34),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ApartmentAddressbaseDetail.areaSize")))}function Od(v,Ne){if(1&v&&(r._UZ(0,"td",38),r.ALo(1,"stripTags"),r.ALo(2,"readI18n")),2&v){const F=Ne.$implicit,re=r.oxw(2);r.Q6J("innerHTML",r.lcZ(1,1,r.xi3(2,3,F.controls.areaSizeFrom.value,re.formEditLanguage.name)),r.oJD)}}function Uu(v,Ne){1&v&&(r.TgZ(0,"th",34),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ApartmentAddressbaseDetail.numLivingRooms")))}function qu(v,Ne){if(1&v&&(r._UZ(0,"td",38),r.ALo(1,"stripTags"),r.ALo(2,"readI18n")),2&v){const F=Ne.$implicit,re=r.oxw(2);r.Q6J("innerHTML",r.lcZ(1,1,r.xi3(2,3,F.controls.numLivingRoomsFrom.value,re.formEditLanguage.name)),r.oJD)}}function Bm(v,Ne){1&v&&(r.TgZ(0,"th",34),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ApartmentAddressbaseDetail.numSleepingRooms")))}function Am(v,Ne){if(1&v&&(r._UZ(0,"td",38),r.ALo(1,"stripTags"),r.ALo(2,"readI18n")),2&v){const F=Ne.$implicit,re=r.oxw(2);r.Q6J("innerHTML",r.lcZ(1,1,r.xi3(2,3,F.controls.numSleepingRoomsFrom.value,re.formEditLanguage.name)),r.oJD)}}function hm(v,Ne){1&v&&(r.TgZ(0,"th",34),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ApartmentAddressbaseDetail.numCombinedRooms")))}function fc(v,Ne){if(1&v&&(r._UZ(0,"td",38),r.ALo(1,"stripTags"),r.ALo(2,"readI18n")),2&v){const F=Ne.$implicit,re=r.oxw(2);r.Q6J("innerHTML",r.lcZ(1,1,r.xi3(2,3,F.controls.numCombinedRoomsFrom.value,re.formEditLanguage.name)),r.oJD)}}function Zm(v,Ne){1&v&&r._UZ(0,"th",39)}function ld(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"imx-action-menu-item",43),r.NdJ("click",function(){r.CHM(F);const ze=r.oxw().$implicit,It=r.oxw(2);return r.KtG(It.formHandler.removeLineFromCollection("apartmentDetails",It.apartmentDetailCollectionDataSource.filteredData.indexOf(ze),It.moduleDataFormGroup))}),r._uU(1," imxplatform.common-entity.list.remove "),r.qZA()}2&v&&r.Q6J("icon","icon-trash")}function eu(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"td",40)(1,"imx-dropup-button")(2,"imx-action-menu")(3,"imx-action-menu-item",41),r.NdJ("click",function(){const It=r.CHM(F).$implicit,vo=r.oxw(2);return r.KtG(vo.editApartmentDetail(It))}),r._uU(4," imxplatform.common-entity.list.details "),r.qZA(),r.YNc(5,ld,2,1,"imx-action-menu-item",42),r.qZA()()()}if(2&v){const F=Ne.$implicit,re=r.oxw(2);r.Q6J("formGroup",F),r.xp6(3),r.Q6J("icon","icon-magnifier"),r.xp6(2),r.Q6J("hasSavePermission",re.formHandler)}}function Tp(v,Ne){if(1&v&&(r.TgZ(0,"table",12),r.YNc(1,ku,1,0,"tr",13)(2,_m,1,0,"tr",14),r.ynx(3,15),r.YNc(4,qm,3,3,"th",16)(5,Xm,3,4,"td",17),r.BQk(),r.ynx(6,18),r.YNc(7,Um,3,3,"th",19)(8,sd,3,6,"td",20),r.BQk(),r.ynx(9,21),r.YNc(10,Kc,3,3,"th",16)(11,fm,3,6,"td",22),r.BQk(),r.ynx(12,23),r.YNc(13,Nu,3,3,"th",16)(14,yd,3,6,"td",22),r.BQk(),r.ynx(15,24),r.YNc(16,gm,3,3,"th",16)(17,vu,3,6,"td",22),r.BQk(),r.ynx(18,25),r.YNc(19,bu,3,3,"th",16)(20,Od,3,6,"td",22),r.BQk(),r.ynx(21,26),r.YNc(22,Uu,3,3,"th",16)(23,qu,3,6,"td",22),r.BQk(),r.ynx(24,27),r.YNc(25,Bm,3,3,"th",16)(26,Am,3,6,"td",22),r.BQk(),r.ynx(27,28),r.YNc(28,hm,3,3,"th",16)(29,fc,3,6,"td",22),r.BQk(),r.ynx(30,29),r.YNc(31,Zm,1,0,"th",30)(32,eu,6,3,"td",31),r.BQk(),r.qZA()),2&v){const F=r.oxw();r.Q6J("dataSource",F.apartmentDetailCollectionDataSource),r.xp6(),r.Q6J("matHeaderRowDef",F.apartmentDetailColumns),r.xp6(),r.Q6J("matRowDefColumns",F.apartmentDetailColumns)}}function Bu(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",44),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById("metainfos:modules_acc_apartment:"+F))("control",re.moduleDataFormGroup.get(F))("form",re.formHandler.formGroup.get("metainfos"))("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}const Zu=()=>({$implicit:"overallUnitsApartments"}),Hm=()=>({$implicit:"overallUnitsHouses"}),Cu=()=>({$implicit:"overallUnitsApartments2"});let yu=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(F,re,ze,It){super(F),this.entitiesMgr=F,this.dialog=re,this.changeDetectorRef=ze,this.translateService=It,this.modulePath="metainfos:modules_acc_apartment"}ngOnInit(){this.moduleDataFormGroup.get("apartmentDetails")&&(this.apartmentDetailCollectionDataSource=this.prepareTable(this.moduleDataFormGroup.get("apartmentDetails"),F=>this.apartmentDetailCollectionDataSource=F,(F,re)=>(0,R.compareI18n)(F.controls.i18nName.value,re.controls.i18nName.value,this.translateService.currentLang)),this.apartmentDetailColumns=["i18nName","numUnitsHouses","numUnitsApartments","numUnitsApartments2","dtvFewFrom","areaSizeFrom","numLivingRoomsFrom","numSleepingRoomsFrom","numCombinedRoomsFrom","actionColumn"])}openApartmentDetailDialog(F){return this.dialog.open(Nm,{minWidth:600,data:{title:"imxtools.metainfo.modules_acc_apartment.apartmentDetail-title",arrayField:this.formHandler.formConfiguration.findArrayFieldById(this.modulePath+":apartmentDetails"),formRow:F,formHandler:this.formHandler}})}editApartmentDetail(F){if(F){const re=F.value;this.openApartmentDetailDialog(F).afterClosed().subscribe(It=>{It?this.changeDetectorRef.markForCheck():F.reset(re,{onlySelf:!0})})}}createApartmentDetail(){const F=this.formHandler.addNewCollectionRow(this.modulePath+":apartmentDetails",!1);this.openApartmentDetailDialog(F).afterClosed().subscribe(ze=>{ze&&(this.moduleDataFormGroup.get("apartmentDetails").push(F),this.moduleDataFormGroup.get("apartmentDetails").markAsDirty(),this.apartmentDetailCollectionDataSource=new ue.by(this.moduleDataFormGroup.get("apartmentDetails").controls),this.changeDetectorRef.markForCheck())})}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(u.uw),r.Y36(r.sBO),r.Y36(et.sK))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-accommodation-apartment-addressbase-form-panel"]],features:[r.qOj],decls:21,vars:19,consts:[["title","imxtools.metainfo.modules_acc_apartment.main"],["translate",""],[1,"form__content-row"],[1,"form__content-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["title","imxtools.metainfo.modules_acc_apartment.detail"],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[1,"imx-button","prio2",3,"disabled","click"],["imxControl",""],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","clickable",3,"click",4,"matRowDef","matRowDefColumns"],["matColumnDef","i18nName"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","numUnitsHouses"],["mat-header-cell","","class","imx-hide-sm",4,"matHeaderCellDef"],["mat-cell","","class","txt-ellipsis",3,"innerHTML",4,"matCellDef"],["matColumnDef","numUnitsApartments"],["mat-cell","",3,"innerHTML",4,"matCellDef"],["matColumnDef","numUnitsApartments2"],["matColumnDef","dtvFewFrom"],["matColumnDef","areaSizeFrom"],["matColumnDef","numLivingRoomsFrom"],["matColumnDef","numSleepingRoomsFrom"],["matColumnDef","numCombinedRoomsFrom"],["matColumnDef","actionColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row","",1,"clickable",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","",1,"imx-hide-sm"],["mat-cell","",1,"txt-ellipsis",3,"innerHTML"],["mat-cell","",3,"innerHTML"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],[3,"icon","click"],["additionalStyle","delete",3,"icon","click",4,"hasSavePermission"],["additionalStyle","delete",3,"icon","click"],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0)(2,"h3",1),r._uU(3,"imxtools.metainfo.modules_acc_apartment.total"),r.qZA(),r.TgZ(4,"div",2)(5,"div",3),r.YNc(6,$u,1,0,"ng-container",4)(7,Kd,1,0,"ng-container",4)(8,$m,1,0,"ng-container",4),r.qZA()()(),r.TgZ(9,"imx-accordion-panel",5),r.YNc(10,ed,2,0,"ng-template",null,6,r.W1O),r.TgZ(12,"div",7),r.YNc(13,Tp,33,3,"table",8),r.qZA(),r.TgZ(14,"button",9),r.NdJ("click",function(){return ze.createApartmentDetail()}),r.ALo(15,"async"),r.ALo(16,"async"),r._uU(17),r.ALo(18,"translate"),r.qZA()()(),r.YNc(19,Bu,1,5,"ng-template",null,10,r.W1O)),2&re){const It=r.MAs(11),vo=r.MAs(20);r.xp6(6),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(16,Zu)),r.xp6(),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(17,Hm)),r.xp6(),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(18,Cu)),r.xp6(5),r.Q6J("ngIf",ze.apartmentDetailCollectionDataSource&&ze.apartmentDetailCollectionDataSource.data.length>0)("ngIfElse",It),r.xp6(),r.Q6J("disabled",!r.lcZ(15,10,ze.formHandler.hasSavePermission())||!r.lcZ(16,12,ze.formHandler.hasSavePermission())),r.xp6(3),r.hij(" ",r.lcZ(18,14,"imxtools.metainfo.modules_acc_apartment.apartmentDetail-new")," ")}},dependencies:[Ft.A,Fr.R,e.O5,e.tP,s.JL,ue.BZ,ue.fO,ue.as,ue.w1,ue.Dz,ue.nj,ue.ge,ue.ev,ue.XQ,ue.Gk,s.sg,et.Pi,Js.Z,Ms.U,en.p,qn.z,hi.t,Fa.j,xu.p,e.Ov,et.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}"],changeDetection:0})}return v})();function Xu(v,Ne){1&v&&r.GkF(0)}function wm(v,Ne){1&v&&r.GkF(0)}function Bd(v,Ne){1&v&&r.GkF(0)}function xm(v,Ne){1&v&&r.GkF(0)}function Pd(v,Ne){1&v&&r.GkF(0)}function kt(v,Ne){1&v&&r.GkF(0)}function Jt(v,Ne){1&v&&r.GkF(0)}function he(v,Ne){1&v&&r.GkF(0)}function Re(v,Ne){1&v&&r.GkF(0)}function Qe(v,Ne){1&v&&r.GkF(0)}function Ht(v,Ne){1&v&&r.GkF(0)}function qt(v,Ne){1&v&&r.GkF(0)}function Lo(v,Ne){1&v&&r.GkF(0)}function ur(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",7),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById("metainfos:modules_acc_camping:"+F))("control",re.moduleDataFormGroup.get(F))("form",re.formHandler.formGroup.get("metainfos"))("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}const rr=()=>({$implicit:"fromPrice"}),Oa=()=>({$implicit:"toPrice"}),Pa=()=>({$implicit:"priceOnRequest"}),Ja=()=>({$implicit:"endowments"}),fs=()=>({$implicit:"attributes"}),El=()=>({$implicit:"types"}),Ic=()=>({$implicit:"maxCampTime"}),Pc=()=>({$implicit:"caravanSpaces"}),td=()=>({$implicit:"underground"}),$c=()=>({$implicit:"hasElectricity"}),ud=()=>({$implicit:"electricityNotes"}),qc=()=>({$implicit:"hasRecyclingStation"}),Dm=()=>({$implicit:"recyclingStationNotes"});let oc=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{ngOnInit(){this._registerHasElectricityChangeListener(),this.registerHasRecyclingStationChangeListener()}_registerHasElectricityChangeListener(){const F=this.moduleDataFormGroup.get("hasElectricity");F.valueChanges.subscribe(re=>{const ze=this.moduleDataFormGroup.get("electricityNotes");re?ze.enable():ze.disable()}),F.setValue(F.value)}registerHasRecyclingStationChangeListener(){const F=this.moduleDataFormGroup.get("hasRecyclingStation");F.valueChanges.subscribe(re=>{const ze=this.moduleDataFormGroup.get("recyclingStationNotes");re?ze.enable():ze.disable()}),F.setValue(F.value)}static#e=this.\u0275fac=(()=>{let F;return function(ze){return(F||(F=r.n5z(v)))(ze||v)}})();static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-accommodation-camping-addressbase-form-panel"]],features:[r.qOj],decls:41,vars:39,consts:[["title","entity.CampingAddressbase.entityName"],["translate",""],[1,"form__content-row"],[1,"form__content-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"form__content-row","form__content-row--textArea"],["imxControl",""],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0)(2,"h3",1),r._uU(3,"entity.CampingAddressbase.prices.entityName"),r.qZA(),r.TgZ(4,"div",2)(5,"div",3)(6,"div",2),r.YNc(7,Xu,1,0,"ng-container",4)(8,wm,1,0,"ng-container",4)(9,Bd,1,0,"ng-container",4),r.qZA()()(),r.TgZ(10,"h3",1),r._uU(11,"entity.CampingAddressbase.endowments"),r.qZA(),r.TgZ(12,"div",2)(13,"div",3),r.YNc(14,xm,1,0,"ng-container",4),r.qZA()(),r.TgZ(15,"h3",1),r._uU(16,"entity.CampingAddressbase.attributes"),r.qZA(),r.TgZ(17,"div",2)(18,"div",3),r.YNc(19,Pd,1,0,"ng-container",4),r.qZA()(),r.TgZ(20,"h3",1),r._uU(21,"entity.CampingAddressbase.types"),r.qZA(),r.TgZ(22,"div",2)(23,"div",3),r.YNc(24,kt,1,0,"ng-container",4),r.qZA()(),r.TgZ(25,"h3",1),r._uU(26,"entity.CampingAddressbase.additional_information"),r.qZA(),r.TgZ(27,"div",2)(28,"div",3)(29,"div",2),r.YNc(30,Jt,1,0,"ng-container",4)(31,he,1,0,"ng-container",4),r.qZA(),r.YNc(32,Re,1,0,"ng-container",4),r.TgZ(33,"div",5),r.YNc(34,Qe,1,0,"ng-container",4)(35,Ht,1,0,"ng-container",4),r.qZA(),r.TgZ(36,"div",5),r.YNc(37,qt,1,0,"ng-container",4)(38,Lo,1,0,"ng-container",4),r.qZA()()()()(),r.YNc(39,ur,1,5,"ng-template",null,6,r.W1O)),2&re){const It=r.MAs(40);r.xp6(7),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(26,rr)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(27,Oa)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(28,Pa)),r.xp6(5),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(29,Ja)),r.xp6(5),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(30,fs)),r.xp6(5),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(31,El)),r.xp6(6),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(32,Ic)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(33,Pc)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(34,td)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(35,$c)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(36,ud)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(37,qc)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(38,Dm))}},dependencies:[Ft.A,e.tP,et.Pi,Js.Z,Ms.U],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__content-row[_ngcontent-%COMP%] > .imx-form-control[_ngcontent-%COMP%]:not(:last-child){margin-right:10px}.form__content-row[_ngcontent-%COMP%]{align-items:flex-start;display:flex}  .imx-checkbox .mat-mdc-checkbox-layout{display:flex;flex-direction:column-reverse}  .imx-checkbox .mat-mdc-checkbox-layout .mat-mdc-checkbox-inner-container{margin:0}.form__content-row--textArea[_ngcontent-%COMP%]{display:flex;width:75%}.form__content-row--textArea[_ngcontent-%COMP%] > imx-form-control[_ngcontent-%COMP%]{flex:50%}"],changeDetection:0})}return v})();function Zd(v,Ne){1&v&&r.GkF(0)}function Sc(v,Ne){1&v&&r.GkF(0)}function Md(v,Ne){1&v&&r.GkF(0)}function Pm(v,Ne){1&v&&r.GkF(0)}function Td(v,Ne){1&v&&r.GkF(0)}function Mm(v,Ne){1&v&&r.GkF(0)}function Gm(v,Ne){1&v&&r.GkF(0)}function Ou(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",6),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById("metainfos:modules_acc_hostel:"+F))("control",re.moduleDataFormGroup.get(F))("form",re.formHandler.formGroup.get("metainfos"))("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}const Lc=()=>({$implicit:"hostelTypes"}),Hc=()=>({$implicit:"roomTypes"}),Hd=()=>({$implicit:"endowments"}),Pu=()=>({$implicit:"fromPrice"}),tu=()=>({$implicit:"toPrice"}),Jm=()=>({$implicit:"groupPrice"}),Mu=()=>({$implicit:"priceOnRequest"});let Im=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{static#e=this.\u0275fac=(()=>{let F;return function(ze){return(F||(F=r.n5z(v)))(ze||v)}})();static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-accommodation-hostel-addressbase-form-panel"]],features:[r.qOj],decls:24,vars:21,consts:[["title","imxtools.metainfo.modules_acc_hostel.main"],["translate",""],[1,"form__content-row"],[1,"form__content-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["imxControl",""],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0)(2,"h3",1),r._uU(3,"imxtools.metainfo.modules_acc_hostel.type"),r.qZA(),r.TgZ(4,"div",2)(5,"div",3),r.YNc(6,Zd,1,0,"ng-container",4)(7,Sc,1,0,"ng-container",4),r.qZA()(),r.TgZ(8,"h3",1),r._uU(9,"imxtools.metainfo.modules_acc_hostel.endowments"),r.qZA(),r.TgZ(10,"div",2)(11,"div",3),r.YNc(12,Md,1,0,"ng-container",4),r.qZA()(),r.TgZ(13,"h3",1),r._uU(14,"entity.HostelAddressbase.prices.entityName"),r.qZA(),r.TgZ(15,"div",2)(16,"div",3)(17,"div",2),r.YNc(18,Pm,1,0,"ng-container",4)(19,Td,1,0,"ng-container",4)(20,Mm,1,0,"ng-container",4)(21,Gm,1,0,"ng-container",4),r.qZA()()()()(),r.YNc(22,Ou,1,5,"ng-template",null,5,r.W1O)),2&re){const It=r.MAs(23);r.xp6(6),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(14,Lc)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(15,Hc)),r.xp6(5),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(16,Hd)),r.xp6(6),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(17,Pu)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(18,tu)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(19,Jm)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(20,Mu))}},dependencies:[Ft.A,e.tP,et.Pi,Js.Z,Ms.U],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__content-row[_ngcontent-%COMP%] > .imx-form-control[_ngcontent-%COMP%]:not(:last-child){margin-right:10px}.form__content-row[_ngcontent-%COMP%]{align-items:flex-start;display:flex}  .imx-checkbox .mat-mdc-checkbox-layout{display:flex;flex-direction:column-reverse}  .imx-checkbox .mat-mdc-checkbox-layout .mat-mdc-checkbox-inner-container{margin:0}"],changeDetection:0})}return v})();var Mc=a(54362),gc=a(29087),$d=a(96698);function Rd(v,Ne){1&v&&r.GkF(0)}function nu(v,Ne){1&v&&r.GkF(0)}function Gc(v,Ne){1&v&&r.GkF(0)}function sc(v,Ne){1&v&&r.GkF(0)}function pd(v,Ne){1&v&&r.GkF(0)}function rm(v,Ne){if(1&v&&(r._UZ(0,"imx-base-input",7),r.ALo(1,"readI18n")),2&v){const F=Ne.model;r.Q6J("label",Ne.label)("disableControl",!0)("ngModel",r.lcZ(1,3,F))}}function Gd(v,Ne){if(1&v&&r._UZ(0,"imx-base-read-only-i18n-input",8),2&v){const F=Ne.model,re=Ne.label,ze=r.oxw();r.Q6J("label",re)("ngModel",F)("i18nLanguage",ze.formHandler.formLanguage.getEditLanguageAsObservable())}}const vm=v=>({model:v,label:"entity.AccommodationService.i18nName"}),Us=v=>({model:v,label:"entity.AccommodationService.externalId"}),Tu=v=>({model:v,label:"entity.AccommodationService.serviceTypeName"}),Hu=v=>({model:v,label:"entity.AccommodationService.basePrice"}),Gu=v=>({model:v,label:"entity.AccommodationService.priceRule"});let gp=(()=>{class v{constructor(){this.urlImagesTable=[]}ngOnInit(){this.prepareUrlImagesTable()}onUrlImageClick(F){window.open(F.url,"","width=800,height=600,top=200,left="+(screen.width-window.innerWidth))}prepareUrlImagesTable(){this.urlImagesTable=[],this.urlImagesTable.push({accessor:"externalId",columnTitle:"entity.AccommodationServiceUrlImage.externalId"},{accessor:"i18nName",columnTitle:"entity.AccommodationServiceUrlImage.i18nName"},{accessor:"copyright",columnTitle:"entity.AccommodationServiceUrlImage.copyright"},{accessor:"sortingValue",columnTitle:"entity.IbeUrlImage.sortingValue"})}static#e=this.\u0275fac=function(re){return new(re||v)};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-accommodation-service-panel"]],inputs:{service:"service",formHandler:"formHandler"},decls:15,vars:25,consts:[[1,"form__content-field-row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"form__readonly_table"],[3,"label"],["maxHeight","330px",3,"columns","data","i18nLanguage","rowSelection","rowClick"],["readOnlyInput",""],["readOnlyI18n",""],[3,"label","disableControl","ngModel"],[3,"label","ngModel","i18nLanguage"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"div",0),r.YNc(1,Rd,1,0,"ng-container",1),r.qZA(),r.TgZ(2,"div",0),r.YNc(3,nu,1,0,"ng-container",1)(4,Gc,1,0,"ng-container",1),r.qZA(),r.TgZ(5,"div",0),r.YNc(6,sc,1,0,"ng-container",1)(7,pd,1,0,"ng-container",1),r.qZA(),r.TgZ(8,"div",2),r._UZ(9,"imx-base-input-label",3),r.TgZ(10,"imx-table",4),r.NdJ("rowClick",function(vo){return ze.onUrlImageClick(vo)}),r.qZA()(),r.YNc(11,rm,2,5,"ng-template",null,5,r.W1O)(13,Gd,1,3,"ng-template",null,6,r.W1O)),2&re){const It=r.MAs(12),vo=r.MAs(14);r.xp6(),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.VKq(15,vm,ze.service.i18nName)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.VKq(17,Us,ze.service.externalId)),r.xp6(),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.VKq(19,Tu,ze.service.serviceTypeName)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.VKq(21,Hu,ze.service.basePrice)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.VKq(23,Gu,ze.service.priceRule)),r.xp6(2),r.Q6J("label","entity.AccommodationService.urlImages"),r.xp6(),r.Q6J("columns",ze.urlImagesTable)("data",ze.service.accommodationServiceUrlImages)("i18nLanguage",ze.formHandler.formLanguage.getEditLanguage())("rowSelection",!0)}},dependencies:[Mc.H,sl.u,gc.Z,$d.a,e.tP,s.JJ,s.On,Fa.j],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__readonly_table[_ngcontent-%COMP%]{border:1px solid #e6e9ef;padding:10px 20px;margin-bottom:10px}  .mat-mdc-column-externalId{width:10%}  .mat-mdc-column-sortingValue{width:10%}  .mat-mdc-column-copyright{width:20%}"]})}return v})();function Ep(v,Ne){if(1&v&&(r.TgZ(0,"imx-accordion-panel",1),r.ALo(1,"readI18n"),r._UZ(2,"imx-accommodation-service-panel",2),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("title","entity.AccommodationServicesAddressbase.entityName")("titleDescription",r.xi3(1,4,F.i18nName,re.formHandler.formLanguage.getEditLanguage().name)),r.xp6(2),r.Q6J("service",F)("formHandler",re.formHandler)}}let Ju=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{ngOnInit(){const F=this.moduleDataFormGroup.get("accommodationServicesAddressbase");if(!F)throw new Error("no FormControl configured with id accommodationServicesAddressbase");this.data=F.value}static#e=this.\u0275fac=(()=>{let F;return function(ze){return(F||(F=r.n5z(v)))(ze||v)}})();static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-accommodation-services-addressbase-form-panel"]],features:[r.qOj],decls:2,vars:1,consts:[[3,"title","titleDescription",4,"ngFor","ngForOf"],[3,"title","titleDescription"],[3,"service","formHandler"]],template:function(re,ze){1&re&&(r.TgZ(0,"imx-accordion"),r.YNc(1,Ep,3,7,"imx-accordion-panel",0),r.qZA()),2&re&&(r.xp6(),r.Q6J("ngForOf",null==ze.data?null:ze.data.accommodationServices))},dependencies:[e.sg,Js.Z,Ms.U,gp,Fa.j],changeDetection:0})}return v})();function Fe(v,Ne){1&v&&(r.TgZ(0,"p",6),r._uU(1,"imxplatform.common.no-records"),r.qZA())}function Pe(v,Ne){1&v&&r._UZ(0,"tr",18)}function St(v,Ne){1&v&&r._UZ(0,"tr",19)}function un(v,Ne){if(1&v&&(r.TgZ(0,"th",20),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v){const F=r.oxw(2);r.xp6(),r.Oqu(r.lcZ(2,1,F.formHandler.getFormFieldLabel(F.modulePath+":addInfos:attributeDef")))}}function vi(v,Ne){if(1&v&&(r.TgZ(0,"td",21)(1,"span"),r._uU(2),r.ALo(3,"readI18n"),r.qZA()()),2&v){const F=Ne.$implicit;r.xp6(2),r.Oqu(r.lcZ(3,1,F.controls.attributeDef.value.i18nName))}}function qe(v,Ne){if(1&v&&(r.TgZ(0,"th",20),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v){const F=r.oxw(2);r.xp6(),r.Oqu(r.lcZ(2,1,F.formHandler.getFormFieldLabel(F.modulePath+":addInfos:info")))}}function Xi(v,Ne){if(1&v&&(r.TgZ(0,"td",22),r._UZ(1,"imx-form-control",23),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.Q6J("formGroup",F),r.xp6(),r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById(re.modulePath+":addInfos:info"))("control",F.controls.info)("form",re.formHandler.formGroup.get("metainfos"))("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}function xt(v,Ne){1&v&&r._UZ(0,"th",24)}function jt(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"a",27),r.NdJ("click",function(){r.CHM(F);const ze=r.oxw().$implicit,It=r.oxw(2);return r.KtG(It.formHandler.removeLineFromCollection("addInfos",It.additionalInfoDataSource.filteredData.indexOf(ze),It.moduleDataFormGroup))}),r.qZA()}}function jn(v,Ne){if(1&v&&(r.TgZ(0,"td",25),r.YNc(1,jt,1,0,"a",26),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.Q6J("formGroup",F),r.xp6(),r.Q6J("hasFieldWritePermission",re.modulePath+":addInfos")("hasFieldWritePermissionFormHandler",re.formHandler)}}function ro(v,Ne){if(1&v&&(r.TgZ(0,"table",7),r.YNc(1,Pe,1,0,"tr",8)(2,St,1,0,"tr",9),r.ynx(3,10),r.YNc(4,un,3,3,"th",11)(5,vi,4,3,"td",12),r.BQk(),r.ynx(6,13),r.YNc(7,qe,3,3,"th",11)(8,Xi,2,6,"td",14),r.BQk(),r.ynx(9,15),r.YNc(10,xt,1,0,"th",16)(11,jn,2,3,"td",17),r.BQk(),r.qZA()),2&v){const F=r.oxw();r.Q6J("dataSource",F.additionalInfoDataSource),r.xp6(),r.Q6J("matHeaderRowDef",F.additionalInfoColumns),r.xp6(),r.Q6J("matRowDefColumns",F.additionalInfoColumns)}}function Bo(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",28),2&v){const F=r.oxw();r.Q6J("field",F.formHandler.formConfiguration.findFormFieldById(F.modulePath+":addAdditionalInfoField"))("control",F.moduleDataFormGroup.get("addAdditionalInfoField"))("form",F.formHandler.formGroup.get("metainfos"))("formHandler",F.formHandler)("config",F.formHandler.formConfiguration)}}let jr=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(F,re,ze,It,vo){super(F),this.entitiesMgr=F,this.dialog=re,this.changeDetectorRef=ze,this.translateService=It,this.userMessageService=vo}ngOnInit(){this._initDistanceTable()}_initDistanceTable(){this.moduleDataFormGroup.get("addInfos")&&(this.additionalInfoDataSource=this.prepareTable(this.moduleDataFormGroup.get("addInfos"),F=>this.additionalInfoDataSource=F),this.additionalInfoColumns=["attributeDef","info","removeColumn"]),this.moduleDataFormGroup.controls.addAdditionalInfoField&&this.moduleDataFormGroup.controls.addAdditionalInfoField.valueChanges.pipe((0,rn.R)(this.destroy$),(0,yl.h)(F=>F!==R.SELECT_PLACEHOLDER_VALUE)).subscribe(F=>{this.entitiesMgr.getEntityWithIdOfType("BeachAdditionalInfoDefinition",F).pipe((0,rn.R)(this.destroy$)).subscribe(re=>{this.additionalInfoDataSource&&this.additionalInfoDataSource._data._value.length>0&&this.additionalInfoDataSource._data._value.map(ze=>ze.value.attributeDef.id).includes(re.id)?this.userMessageService.showError("imxtools.metainfo.modules_beach.additionalInformation.additional-info-already-assigned"):this.formHandler.addNewCollectionRow(this.modulePath+":addInfos",!0,this.formHandler.getFormArrayControlOfFormGroup(this.moduleDataFormGroup,"addInfos")).controls.attributeDef.setValue(re),this.moduleDataFormGroup.controls.addAdditionalInfoField.setValue(R.SELECT_PLACEHOLDER_VALUE)})})}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(u.uw),r.Y36(r.sBO),r.Y36(et.sK),r.Y36(R.UserMessageService))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-beach-additional-info-form-panel"]],inputs:{modulePath:"modulePath"},features:[r.qOj],decls:7,vars:4,consts:[[1,"form__content-row"],[1,"form__content-group"],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],["class","imx-button-select no-margin",3,"field","control","form","formHandler","config",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","attributeDef"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","info"],["mat-cell","",3,"formGroup",4,"matCellDef"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell",""],["mat-cell",""],["mat-cell","",3,"formGroup"],[3,"field","control","form","formHandler","config"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],["class","icon icon-trash imx-icon-middle imx-icon-clickable",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"],[1,"imx-button-select","no-margin",3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"div",0)(1,"div",1),r.YNc(2,Fe,2,0,"ng-template",null,2,r.W1O),r.TgZ(4,"div",3),r.YNc(5,ro,12,3,"table",4),r.qZA(),r.YNc(6,Bo,1,5,"imx-form-control",5),r.qZA()()),2&re){const It=r.MAs(3);r.xp6(5),r.Q6J("ngIf",ze.additionalInfoDataSource&&ze.additionalInfoDataSource.data.length>0)("ngIfElse",It),r.xp6(),r.Q6J("hasFieldWritePermission",ze.modulePath+":addInfos")("hasFieldWritePermissionFormHandler",ze.formHandler)}},dependencies:[Ft.A,nl.X,hl.F,e.O5,s.JL,ue.BZ,ue.fO,ue.as,ue.w1,ue.Dz,ue.nj,ue.ge,ue.ev,ue.XQ,ue.Gk,s.sg,et.Pi,Fa.j,et.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.mat-mdc-table[_ngcontent-%COMP%] > .mat-mdc-row[_ngcontent-%COMP%] > .mat-mdc-cell[_ngcontent-%COMP%]{overflow:hidden}.form__table.infrastructure[_ngcontent-%COMP%] > .mat-mdc-table[_ngcontent-%COMP%] > .mat-mdc-header-row[_ngcontent-%COMP%] > .mat-mdc-header-cell[_ngcontent-%COMP%]:nth-last-child(1), .form__table.infrastructure[_ngcontent-%COMP%] > .mat-mdc-table[_ngcontent-%COMP%] > .mat-mdc-row[_ngcontent-%COMP%] > .mat-mdc-cell[_ngcontent-%COMP%]:nth-last-child(1){flex:0 0 100px}h3[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return v})();function Hr(v,Ne){1&v&&r.GkF(0)}const al=()=>({$implicit:"types"});function Jd(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,Hr,1,0,"ng-container",6),r.BQk()),2&v){r.oxw();const F=r.MAs(24);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,al))}}function Qd(v,Ne){1&v&&r.GkF(0)}const op=()=>({$implicit:"services"});function f_(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,Qd,1,0,"ng-container",6),r.BQk()),2&v){r.oxw();const F=r.MAs(24);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,op))}}function rp(v,Ne){1&v&&r.GkF(0)}const Ap=()=>({$implicit:"character"});function iu(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,rp,1,0,"ng-container",6),r.BQk()),2&v){r.oxw();const F=r.MAs(24);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,Ap))}}function Qu(v,Ne){1&v&&r.GkF(0)}const Wp=()=>({$implicit:"sportOffers"});function S_(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,Qu,1,0,"ng-container",6),r.BQk()),2&v){r.oxw();const F=r.MAs(24);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,Wp))}}function zp(v,Ne){1&v&&r.GkF(0)}const ap=()=>({$implicit:"childrenOffers"});function Rc(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,zp,1,0,"ng-container",6),r.BQk()),2&v){r.oxw();const F=r.MAs(24);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,ap))}}function F_(v,Ne){1&v&&r.GkF(0)}const jp=()=>({$implicit:"endowments"});function Kp(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,F_,1,0,"ng-container",6),r.BQk()),2&v){r.oxw();const F=r.MAs(24);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,jp))}}function lc(v,Ne){1&v&&r.GkF(0)}const $p=()=>({$implicit:"bathEndowments"});function Bp(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,lc,1,0,"ng-container",6),r.BQk()),2&v){r.oxw();const F=r.MAs(24);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,$p))}}function g_(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"imx-accordion-panel",7),r._UZ(2,"imx-beach-additional-info-form-panel",8),r.qZA(),r.BQk()),2&v){const F=r.oxw();r.xp6(2),r.Q6J("formHandler",F.formHandler)("modulePath",F.modulePath)("moduleDataFormGroup",F.moduleDataFormGroup)}}function ep(v,Ne){if(1&v&&(r.TgZ(0,"imx-accordion-panel",9),r._UZ(1,"imx-edit-extended-attributes",10),r.qZA()),2&v){const F=r.oxw();r.xp6(),r.Q6J("formHandler",F.formHandler)("formGroup",F.moduleDataFormGroup)("fieldPrefix","metainfos:modules_beach")("extendedAttributes",F.extendedAttributes)}}function Vu(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",11),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById("metainfos:modules_beach:"+F))("control",re.moduleDataFormGroup.get(F))("form",re.formHandler.formGroup.get("metainfos"))("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}let h_=(()=>{class v extends R.AbstractExtendedAttributeAwareFormPanelComponent{constructor(F,re){super(F,re),this.entitiesMgr=F,this.dialog=re,this.typesAvailable=(0,wn.of)(!1),this.servicesAvailable=(0,wn.of)(!1),this.characterAvailable=(0,wn.of)(!1),this.sportOffersAvailable=(0,wn.of)(!1),this.childrenOffersAvailable=(0,wn.of)(!1),this.endowmentsAvailable=(0,wn.of)(!1),this.bathEndowmentsAvailable=(0,wn.of)(!1),this.modulePath="metainfos:modules_beach"}ngOnInit(){super.ngOnInit(),this.typesAvailable=this.baseEntityAvailable("BeachType"),this.servicesAvailable=this.baseEntityAvailable("BeachService"),this.characterAvailable=this.baseEntityAvailable("BeachCharacter"),this.sportOffersAvailable=this.baseEntityAvailable("BeachSportOffer"),this.childrenOffersAvailable=this.baseEntityAvailable("BeachChildrenOffer"),this.endowmentsAvailable=this.baseEntityAvailable("BeachEndowment"),this.bathEndowmentsAvailable=this.baseEntityAvailable("BeachBathEndowment")}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(u.uw))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-beach-addressbase-form-panel"]],features:[r.qOj],decls:25,vars:29,consts:[["title","imxtools.metainfo.modules_beach.main.header"],[4,"ngIf"],["title","imxtools.metainfo.modules_beach.offers.header"],["title","imxtools.metainfo.modules_beach.endowments.header"],["title","imxtools.metainfo.modules_beach.attributes.header",4,"ngIf"],["imxControl",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["title","imxtools.metainfo.modules_beach.additionalInformation.header"],[3,"formHandler","modulePath","moduleDataFormGroup"],["title","imxtools.metainfo.modules_beach.attributes.header"],[3,"formHandler","formGroup","fieldPrefix","extendedAttributes"],[3,"field","control","form","formHandler","config"]],template:function(re,ze){1&re&&(r.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0),r.YNc(2,Jd,2,3,"ng-container",1),r.ALo(3,"async"),r.YNc(4,f_,2,3,"ng-container",1),r.ALo(5,"async"),r.YNc(6,iu,2,3,"ng-container",1),r.ALo(7,"async"),r.qZA(),r.TgZ(8,"imx-accordion-panel",2),r.YNc(9,S_,2,3,"ng-container",1),r.ALo(10,"async"),r.YNc(11,Rc,2,3,"ng-container",1),r.ALo(12,"async"),r.qZA(),r.TgZ(13,"imx-accordion-panel",3),r.YNc(14,Kp,2,3,"ng-container",1),r.ALo(15,"async"),r.YNc(16,Bp,2,3,"ng-container",1),r.ALo(17,"async"),r.qZA(),r.YNc(18,g_,3,3,"ng-container",1),r.ALo(19,"async"),r.YNc(20,ep,2,4,"imx-accordion-panel",4),r.ALo(21,"async"),r.ALo(22,"async"),r.qZA(),r.YNc(23,Vu,1,5,"ng-template",null,5,r.W1O)),2&re&&(r.xp6(2),r.Q6J("ngIf",r.lcZ(3,9,ze.typesAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(5,11,ze.servicesAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(7,13,ze.characterAvailable)),r.xp6(3),r.Q6J("ngIf",r.lcZ(10,15,ze.sportOffersAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(12,17,ze.childrenOffersAvailable)),r.xp6(3),r.Q6J("ngIf",r.lcZ(15,19,ze.endowmentsAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(17,21,ze.bathEndowmentsAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(19,23,ze.formHandler.hasReadPermission("BeachAddressbase:addInfos"))),r.xp6(2),r.Q6J("ngIf",r.lcZ(21,25,ze.extendedAttributesAvailable)&&r.lcZ(22,27,ze.formHandler.hasReadPermission("BeachAddressbase:attributeDefinitions"))))},dependencies:[gr.E,Ft.A,e.O5,e.tP,s.JL,s.sg,Js.Z,Ms.U,jr,e.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}"],changeDetection:0})}return v})();function ef(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"imx-accordion-panel",2),r.ALo(2,"readI18n"),r._UZ(3,"imx-certificate-form-panel",3),r.qZA(),r.BQk()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.s9C("titleDescription",r.lcZ(2,7,F.i18nName)),r.xp6(2),r.Q6J("formHandler",re.formHandler)("moduleDataFormGroup",re.moduleDataFormGroup)("modulePath","metainfos:modules_certification")("record",re.record)("moduleId",F.moduleId)("certificates",F.certificates$)}}function qp(v,Ne){if(1&v&&(r.TgZ(0,"imx-accordion"),r.YNc(1,ef,4,9,"ng-container",1),r.qZA()),2&v){const F=r.oxw();r.xp6(),r.Q6J("ngForOf",F.groupedCertificates)}}let L_=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(F,re){super(F,re),this.entitiesMgr=F,this.dialog=re,this.certificatesAvailable=(0,wn.of)(!1),this.groupedCertificates=[],this.defaultCertificateGroup={moduleId:void 0,i18nName:void 0,certificates:[]}}ngOnInit(){this.certificatesAvailable=this.baseEntityAvailable("Certificate");let F=[];if(!this.formHandler.formGroup.get("productlineIds"))throw new Error("current formGroup does not have form control productlineIds!");F=this.formHandler.formGroup.get("productlineIds").value,this.entitiesMgr.getAllEntitiesOfType("Certificate").subscribe(re=>{this.groupedCertificates=this.groupCertificates(re.items,F)})}groupCertificates(F,re){const ze=[];return F.forEach(It=>{null===It.modules?this.defaultCertificateGroup.certificates.push(It):It.modules.forEach(vo=>{if(re.some(Os=>Os===vo.id)){const Os=ze.findIndex(xd=>xd.moduleId===vo.id);-1===Os?ze.push({moduleId:vo.id,i18nName:vo.i18nName,certificates:[It]}):ze[Os].certificates.push(It)}})}),ze.forEach(It=>It.certificates$=(0,wn.of)(It.certificates)),ze}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(u.uw))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-certification-addressbase-form-panel"]],features:[r.qOj],decls:2,vars:3,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"],["title","imxtools.metainfo.modules_certification.main",3,"titleDescription"],[3,"formHandler","moduleDataFormGroup","modulePath","record","moduleId","certificates"]],template:function(re,ze){1&re&&(r.YNc(0,qp,2,1,"imx-accordion",0),r.ALo(1,"async")),2&re&&r.Q6J("ngIf",r.lcZ(1,1,ze.certificatesAvailable))},dependencies:[e.sg,e.O5,Js.Z,Ms.U,pn,Fa.j,e.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}"],changeDetection:0})}return v})();var x_=a(69862),tf=a(82621);function wp(v,Ne){1&v&&r.GkF(0)}function _d(v,Ne){1&v&&r.GkF(0)}function Jc(v,Ne){1&v&&r.GkF(0)}function v_(v,Ne){1&v&&r.GkF(0)}function ou(v,Ne){1&v&&r.GkF(0)}function Yu(v,Ne){1&v&&r.GkF(0)}function b_(v,Ne){1&v&&r.GkF(0)}function hp(v,Ne){1&v&&r.GkF(0)}function Xp(v,Ne){1&v&&r.GkF(0)}function e_(v,Ne){1&v&&r.GkF(0)}function ru(v,Ne){1&v&&r.GkF(0)}function Zp(v,Ne){1&v&&r.GkF(0)}function Qm(v,Ne){1&v&&r.GkF(0)}function Dp(v,Ne){1&v&&r.GkF(0)}function bm(v,Ne){1&v&&r.GkF(0)}function t_(v,Ne){1&v&&r.GkF(0)}function n_(v,Ne){1&v&&r.GkF(0)}function xp(v,Ne){1&v&&r.GkF(0)}function Ip(v,Ne){1&v&&r.GkF(0)}function U(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",13),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.data.arrayField.getChildField(F))("control",re.data.formRow.get(F))("form",re.data.formRow)("formHandler",re.data.formHandler)("config",re.data.formHandler.formConfiguration)}}const S=()=>({$implicit:"number"}),w=()=>({$implicit:"i18nName"}),Q=()=>({$implicit:"combinations"}),oe=()=>({$implicit:"rsize"}),fe=()=>({$implicit:"height"}),Ee=()=>({$implicit:"length"}),it=()=>({$implicit:"width"}),mt=()=>({$implicit:"parliament"}),$t=()=>({$implicit:"ushape"}),ai=()=>({$implicit:"seatsInRows"}),Ai=()=>({$implicit:"seatsInCircle"}),ao=()=>({$implicit:"banquet"}),go=()=>({$implicit:"standupReception"}),Co=()=>({$implicit:"blockSeating"}),Vo=()=>({$implicit:"roomAttributes"}),nr=()=>({$implicit:"imageFilename"}),mr=()=>({$implicit:"imageTitle"}),Br=()=>({$implicit:"imageDescription"}),wr=()=>({$implicit:"imageCopyright"});let Jr=(()=>{class v{constructor(F){this.data=F,this.logger=(0,Te.jl)("ConventionCenterAddressbaseRoomsDialogComponent",ot.H.name),this.uploading=!1,this.showError=!1,this.allowedFileTypes="image/*",this.path="/assets/images/"}removeCurrentImage(){this.logger.info("Removing currently set image "+this.data.formRow.get("imageFilename").value),this.data.formRow.get("imageFilename").setValue(null),this.data.formRow.get("imageFilename").markAsDirty()}uploadComplete(F){F&&!(F instanceof x_.UA)&&(F[0].exception||(this.data.formRow.get("imageFilename").setValue(F[0].processResult.fileUrl),this.data.formRow.get("imageFilename").markAsDirty()))}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(u.WI))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["ng-component"]],decls:42,vars:74,consts:[["icon","icon-pencil--squares","dialogType","form",3,"heading","submitButtonDisabled"],["form-header","",3,"formHandler"],["id","rooms-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"form__content-field-row"],["translate","",1,"image-header"],[1,"cnv-room-image-upload-wrapper"],[3,"type","headerText","allowedFileTypes","allowMultipleFiles","showHeaderInformation","autoUpload","uploadComplete"],[1,"imx-button","prio3","file-remove-button",3,"click"],[1,"icon","icon-trash"],["imxFormControl",""],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-dialog",0),r.ALo(1,"async"),r._UZ(2,"imx-language-switch-button",1),r.TgZ(3,"form",2)(4,"div",3)(5,"div",4),r.YNc(6,wp,1,0,"ng-container",5),r.TgZ(7,"div",6),r.YNc(8,_d,1,0,"ng-container",5)(9,Jc,1,0,"ng-container",5),r.qZA(),r.TgZ(10,"div",6),r.YNc(11,v_,1,0,"ng-container",5)(12,ou,1,0,"ng-container",5)(13,Yu,1,0,"ng-container",5)(14,b_,1,0,"ng-container",5),r.qZA(),r.TgZ(15,"div",6),r.YNc(16,hp,1,0,"ng-container",5)(17,Xp,1,0,"ng-container",5)(18,e_,1,0,"ng-container",5)(19,ru,1,0,"ng-container",5),r.qZA(),r.TgZ(20,"div",6),r.YNc(21,Zp,1,0,"ng-container",5)(22,Qm,1,0,"ng-container",5),r.qZA(),r.YNc(23,Dp,1,0,"ng-container",5)(24,bm,1,0,"ng-container",5),r.qZA(),r.TgZ(25,"div",4)(26,"h2",7),r._uU(27,"entity.ConventionRoom.image.entityName"),r.qZA(),r.TgZ(28,"div",8)(29,"imx-base-upload",9),r.NdJ("uploadComplete",function(vo){return ze.uploadComplete(vo)}),r.ALo(30,"translate"),r.qZA(),r.TgZ(31,"div")(32,"button",10),r.NdJ("click",function(){return ze.removeCurrentImage()}),r._UZ(33,"i",11),r._uU(34),r.ALo(35,"translate"),r.qZA()()(),r.YNc(36,t_,1,0,"ng-container",5)(37,n_,1,0,"ng-container",5)(38,xp,1,0,"ng-container",5)(39,Ip,1,0,"ng-container",5),r.qZA()()()(),r.YNc(40,U,1,5,"ng-template",null,12,r.W1O)),2&re){const It=r.MAs(41);r.Q6J("heading",ze.data.title)("submitButtonDisabled",ze.data.formRow.invalid||ze.data.formRow.pristine||!r.lcZ(1,49,ze.data.formHandler.hasSavePermission())),r.xp6(2),r.Q6J("formHandler",ze.data.formHandler),r.xp6(),r.Q6J("formGroup",ze.data.formHandler.formGroup),r.xp6(3),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(55,S)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(56,w)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(57,Q)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(58,oe)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(59,fe)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(60,Ee)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(61,it)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(62,mt)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(63,$t)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(64,ai)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(65,Ai)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(66,ao)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(67,go)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(68,Co)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(69,Vo)),r.xp6(5),r.Q6J("type","cnvImageUpload")("headerText",r.lcZ(30,51,"imxtools.metainfo.modules_convention_center.rooms.choose"))("allowedFileTypes",ze.allowedFileTypes)("allowMultipleFiles",!1)("showHeaderInformation",!0)("autoUpload",!0),r.xp6(5),r.hij(" ",r.lcZ(35,53,"imxtools.metainfo.modules_convention_center.rooms.remove"),""),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(70,nr)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(71,mr)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(72,Br)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(73,wr))}},dependencies:[tf.B,Wi.a,Ft.A,da.H,e.tP,s._Y,s.JL,s.sg,et.Pi,e.Ov,et.X$],styles:[".cnv-room-image-upload-wrapper[_ngcontent-%COMP%]{display:flex}.image-header[_ngcontent-%COMP%]{margin-bottom:10px}.file-remove-button[_ngcontent-%COMP%]{background:#96172e}.file-choose-row[_ngcontent-%COMP%]{margin-bottom:15px;display:flex}.file-choose-row[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{margin-right:10px}.file-choose-row[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]   .imx-button.with-icon[_ngcontent-%COMP%]{line-height:34px}.file-choose-row[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]   .imx-button.with-icon[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:14px;top:calc(50% - 6px)}.file-choose-row[_ngcontent-%COMP%]   .inputfile[_ngcontent-%COMP%]{width:.1px;height:.1px;opacity:0;overflow:hidden;position:absolute;z-index:-1}"]})}return v})();function ir(v,Ne){1&v&&(r.TgZ(0,"p",6),r._uU(1,"imxplatform.common.no-records"),r.qZA())}function na(v,Ne){1&v&&r._UZ(0,"tr",30)}function Ea(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"tr",31),r.NdJ("click",function(){const It=r.CHM(F).$implicit,vo=r.oxw(2);return r.KtG(vo.editRoom(It))}),r.qZA()}}function gs(v,Ne){1&v&&(r.TgZ(0,"th",32),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ConventionRoom.number")))}function Gr(v,Ne){if(1&v&&(r.TgZ(0,"td",33),r._uU(1),r.qZA()),2&v){const F=Ne.$implicit;r.xp6(),r.hij(" ",F.controls.number.value," ")}}function Bl(v,Ne){1&v&&(r.TgZ(0,"th",34),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ConventionRoom.i18nName")))}function Yl(v,Ne){if(1&v&&(r.TgZ(0,"td",35),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.i18nName.value,re.formEditLanguage.name)," ")}}function us(v,Ne){1&v&&(r.TgZ(0,"th",34),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ConventionRoom.combinations")))}function kd(v,Ne){if(1&v&&(r.TgZ(0,"td",36),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.combinations.value,re.formEditLanguage.name)," ")}}function Cm(v,Ne){1&v&&(r.TgZ(0,"th",34),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ConventionRoom.rsize")))}function _l(v,Ne){if(1&v&&(r.TgZ(0,"td",36),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.rsize.value,re.formEditLanguage.name)," ")}}function Ws(v,Ne){1&v&&(r.TgZ(0,"th",34),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ConventionRoom.parliament")))}function Qc(v,Ne){if(1&v&&(r.TgZ(0,"td",36),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.parliament.value,re.formEditLanguage.name)," ")}}function Wu(v,Ne){1&v&&(r.TgZ(0,"th",34),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ConventionRoom.ushape")))}function Sp(v,Ne){if(1&v&&(r.TgZ(0,"td",36),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.ushape.value,re.formEditLanguage.name)," ")}}function tp(v,Ne){1&v&&(r.TgZ(0,"th",34),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ConventionRoom.seatsInRows")))}function sp(v,Ne){if(1&v&&(r.TgZ(0,"td",36),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.seatsInRows.value,re.formEditLanguage.name)," ")}}function zu(v,Ne){1&v&&(r.TgZ(0,"th",34),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ConventionRoom.seatsInCircle")))}function Hp(v,Ne){if(1&v&&(r.TgZ(0,"td",36),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.seatsInCircle.value,re.formEditLanguage.name)," ")}}function i_(v,Ne){1&v&&(r.TgZ(0,"th",34),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ConventionRoom.banquet")))}function Fp(v,Ne){if(1&v&&(r.TgZ(0,"td",36),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.banquet.value,re.formEditLanguage.name)," ")}}function Vm(v,Ne){1&v&&(r.TgZ(0,"th",34),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ConventionRoom.standupReception")))}function o_(v,Ne){if(1&v&&(r.TgZ(0,"td",36),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.standupReception.value,re.formEditLanguage.name)," ")}}function C_(v,Ne){1&v&&(r.TgZ(0,"th",34),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ConventionRoom.blockSeating")))}function xf(v,Ne){if(1&v&&(r.TgZ(0,"td",36),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.blockSeating.value,re.formEditLanguage.name)," ")}}function vf(v,Ne){1&v&&(r.TgZ(0,"th",34),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ConventionRoom.image.entityName")))}function bf(v,Ne){1&v&&(r.TgZ(0,"span"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.hij(" ",r.lcZ(2,1,"imxtools.metainfo.modules_convention_center.rooms.no-image")," "))}function y_(v,Ne){if(1&v&&(r._UZ(0,"img",40),r.ALo(1,"imgprx")),2&v){const F=r.oxw(2).$implicit;r.Q6J("src",r.xi3(1,1,null==F.controls.image.value?null:F.controls.image.value.deeplink,"0:0"),r.LSH)}}function Gp(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,bf,3,3,"span",37)(2,y_,2,4,"img",38),r.TgZ(3,"span",39),r._uU(4),r.qZA(),r.BQk()),2&v){const F=r.oxw().$implicit;r.xp6(),r.Q6J("ngIf",null===F.controls.image.value.filename),r.xp6(),r.Q6J("ngIf",null!==F.controls.image.value.filename),r.xp6(2),r.Oqu(null==F.controls.image.value?null:F.controls.image.value.deeplink)}}function Cf(v,Ne){if(1&v&&(r.TgZ(0,"td",36),r.YNc(1,Gp,5,3,"ng-container",37),r.qZA()),2&v){const F=Ne.$implicit;r.xp6(),r.Q6J("ngIf",F.controls.image.value)}}function nf(v,Ne){1&v&&r._UZ(0,"th",41)}function r_(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"imx-action-menu-item",45),r.NdJ("click",function(){r.CHM(F);const ze=r.oxw().$implicit,It=r.oxw(2);return r.KtG(It.formHandler.removeLineFromCollection("rooms",It.roomCollectionDataSource.filteredData.indexOf(ze),It.moduleDataFormGroup))}),r._uU(1," imxplatform.common-entity.list.remove "),r.qZA()}2&v&&r.Q6J("icon","icon-trash")}function au(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"td",42)(1,"imx-dropup-button")(2,"imx-action-menu")(3,"imx-action-menu-item",43),r.NdJ("click",function(){const It=r.CHM(F).$implicit,vo=r.oxw(2);return r.KtG(vo.editRoom(It))}),r._uU(4," imxplatform.common-entity.list.details "),r.qZA(),r.YNc(5,r_,2,1,"imx-action-menu-item",44),r.qZA()()()}if(2&v){const F=Ne.$implicit,re=r.oxw(2);r.Q6J("formGroup",F),r.xp6(3),r.Q6J("icon","icon-magnifier"),r.xp6(2),r.Q6J("hasSavePermission",re.formHandler)}}function O_(v,Ne){if(1&v&&(r.TgZ(0,"table",7),r.YNc(1,na,1,0,"tr",8)(2,Ea,1,0,"tr",9),r.ynx(3,10),r.YNc(4,gs,3,3,"th",11)(5,Gr,2,1,"td",12),r.BQk(),r.ynx(6,13),r.YNc(7,Bl,3,3,"th",14)(8,Yl,3,4,"td",15),r.BQk(),r.ynx(9,16),r.YNc(10,us,3,3,"th",14)(11,kd,3,4,"td",17),r.BQk(),r.ynx(12,18),r.YNc(13,Cm,3,3,"th",14)(14,_l,3,4,"td",17),r.BQk(),r.ynx(15,19),r.YNc(16,Ws,3,3,"th",14)(17,Qc,3,4,"td",17),r.BQk(),r.ynx(18,20),r.YNc(19,Wu,3,3,"th",14)(20,Sp,3,4,"td",17),r.BQk(),r.ynx(21,21),r.YNc(22,tp,3,3,"th",14)(23,sp,3,4,"td",17),r.BQk(),r.ynx(24,22),r.YNc(25,zu,3,3,"th",14)(26,Hp,3,4,"td",17),r.BQk(),r.ynx(27,23),r.YNc(28,i_,3,3,"th",14)(29,Fp,3,4,"td",17),r.BQk(),r.ynx(30,24),r.YNc(31,Vm,3,3,"th",14)(32,o_,3,4,"td",17),r.BQk(),r.ynx(33,25),r.YNc(34,C_,3,3,"th",14)(35,xf,3,4,"td",17),r.BQk(),r.ynx(36,26),r.YNc(37,vf,3,3,"th",14)(38,Cf,2,1,"td",17),r.BQk(),r.ynx(39,27),r.YNc(40,nf,1,0,"th",28)(41,au,6,3,"td",29),r.BQk(),r.qZA()),2&v){const F=r.oxw();r.Q6J("dataSource",F.roomCollectionDataSource),r.xp6(),r.Q6J("matHeaderRowDef",F.roomCollectionColumns),r.xp6(),r.Q6J("matRowDefColumns",F.roomCollectionColumns)}}let R_=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(F,re,ze){super(F),this.entitiesMgr=F,this.dialog=re,this.changeDetectorRef=ze}ngOnInit(){this._loadRooms()}_loadRooms(){this.moduleDataFormGroup.get("rooms")&&(this.roomCollectionDataSource=this.prepareTable(this.moduleDataFormGroup.get("rooms"),F=>this.roomCollectionDataSource=F,(F,re)=>F.controls.number.value-re.controls.number.value),this.roomCollectionColumns=["number","i18nName","combinations","rsize","parliament","ushape","seatsInRows","seatsInCircle","banquet","standupReception","blockSeating","image","actionColumn"])}openRoomDialog(F){return this.dialog.open(Jr,{minWidth:600,data:{title:"imxtools.metainfo.modules_convention_center.rooms.description",arrayField:this.formHandler.formConfiguration.findArrayFieldById(this.modulePath+":rooms"),formRow:F,formHandler:this.formHandler}})}editRoom(F){if(F){const re=F.value;this.openRoomDialog(F).afterClosed().subscribe(It=>{It?this.changeDetectorRef.markForCheck():F.reset(re,{onlySelf:!0})})}}createRoom(){const F=this.formHandler.addNewCollectionRow(this.modulePath+":rooms",!1);this.openRoomDialog(F).afterClosed().subscribe(ze=>{ze&&(this.moduleDataFormGroup.get("rooms").push(F),this.moduleDataFormGroup.get("rooms").markAsDirty(),this.roomCollectionDataSource=new ue.by(this.moduleDataFormGroup.get("rooms").controls),this.changeDetectorRef.markForCheck())})}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(u.uw),r.Y36(r.sBO))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-convention-room-form-panel"]],inputs:{modulePath:"modulePath"},features:[r.qOj],decls:11,vars:10,consts:[[1,"form__content-row"],[1,"form__content-group"],["noRecordRooms",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[1,"imx-button","prio2",3,"disabled","click"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","clickable",3,"click",4,"matRowDef","matRowDefColumns"],["matColumnDef","number"],["mat-header-cell","","class","id-column",4,"matHeaderCellDef"],["mat-cell","","class","id-column",4,"matCellDef"],["matColumnDef","i18nName"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","txt-ellipsis",4,"matCellDef"],["matColumnDef","combinations"],["mat-cell","",4,"matCellDef"],["matColumnDef","rsize"],["matColumnDef","parliament"],["matColumnDef","ushape"],["matColumnDef","seatsInRows"],["matColumnDef","seatsInCircle"],["matColumnDef","banquet"],["matColumnDef","standupReception"],["matColumnDef","blockSeating"],["matColumnDef","image"],["matColumnDef","actionColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row","",1,"clickable",3,"click"],["mat-header-cell","",1,"id-column"],["mat-cell","",1,"id-column"],["mat-header-cell",""],["mat-cell","",1,"txt-ellipsis"],["mat-cell",""],[4,"ngIf"],["class","img-cnv-room-preview",3,"src",4,"ngIf"],[2,"display","none"],[1,"img-cnv-room-preview",3,"src"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],[3,"icon","click"],["additionalStyle","delete",3,"icon","click",4,"hasSavePermission"],["additionalStyle","delete",3,"icon","click"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"div",0)(1,"div",1),r.YNc(2,ir,2,0,"ng-template",null,2,r.W1O),r.TgZ(4,"div",3),r.YNc(5,O_,42,3,"table",4),r.qZA(),r.TgZ(6,"button",5),r.NdJ("click",function(){return ze.createRoom()}),r.ALo(7,"async"),r.ALo(8,"async"),r._uU(9),r.ALo(10,"translate"),r.qZA()()()),2&re){const It=r.MAs(3);r.xp6(5),r.Q6J("ngIf",ze.roomCollectionDataSource&&ze.roomCollectionDataSource.data.length>0)("ngIfElse",It),r.xp6(),r.Q6J("disabled",!r.lcZ(7,4,ze.formHandler.hasSavePermission())||!r.lcZ(8,6,ze.formHandler.hasSavePermission())),r.xp6(3),r.hij(" ",r.lcZ(10,8,"imxtools.metainfo.modules_convention_center.create-room")," ")}},dependencies:[Fr.R,e.O5,s.JL,ue.BZ,ue.fO,ue.as,ue.w1,ue.Dz,ue.nj,ue.ge,ue.ev,ue.XQ,ue.Gk,s.sg,et.Pi,en.p,qn.z,hi.t,Fa.j,e.Ov,et.X$,Le.ZM],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}h3[_ngcontent-%COMP%]{margin-bottom:10px}.id-column[_ngcontent-%COMP%]{width:60px}.img-cnv-room-preview[_ngcontent-%COMP%]{display:block;max-height:38px;width:auto;height:auto}"]})}return v})();function Ym(v,Ne){1&v&&r.GkF(0)}function k_(v,Ne){1&v&&r.GkF(0)}function N_(v,Ne){1&v&&r.GkF(0)}function U_(v,Ne){1&v&&r.GkF(0)}function Tm(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",7),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.data.arrayField.getChildField(F))("control",re.data.formRow.get(F))("form",re.data.formRow)("formHandler",re.data.formHandler)("config",re.data.formHandler.formConfiguration)}}const P_=()=>({$implicit:"number"}),rf=()=>({$implicit:"i18nName"}),vp=()=>({$implicit:"seats"}),yf=()=>({$implicit:"rsize"});let af=(()=>{class v{constructor(F){this.data=F}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(u.WI))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["ng-component"]],decls:12,vars:18,consts:[["icon","icon-pencil--squares","dialogType","form",3,"heading","submitButtonDisabled"],["form-header","",3,"formHandler"],["id","hotel-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["imxFormControl",""],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-dialog",0),r.ALo(1,"async"),r._UZ(2,"imx-language-switch-button",1),r.TgZ(3,"form",2)(4,"div",3)(5,"div",4),r.YNc(6,Ym,1,0,"ng-container",5)(7,k_,1,0,"ng-container",5)(8,N_,1,0,"ng-container",5)(9,U_,1,0,"ng-container",5),r.qZA()()()(),r.YNc(10,Tm,1,5,"ng-template",null,6,r.W1O)),2&re){const It=r.MAs(11);r.Q6J("heading",ze.data.title)("submitButtonDisabled",ze.data.formRow.invalid||ze.data.formRow.pristine||!r.lcZ(1,12,ze.data.formHandler.hasSavePermission())),r.xp6(2),r.Q6J("formHandler",ze.data.formHandler),r.xp6(),r.Q6J("formGroup",ze.data.formHandler.formGroup),r.xp6(3),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(14,P_)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(15,rf)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(16,vp)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(17,yf))}},dependencies:[Wi.a,Ft.A,da.H,e.tP,s._Y,s.JL,s.sg,e.Ov]})}return v})();function Of(v,Ne){1&v&&(r.TgZ(0,"p",7),r._uU(1,"imxplatform.common.no-records"),r.qZA())}function B_(v,Ne){1&v&&r._UZ(0,"tr",21)}function sf(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"tr",22),r.NdJ("click",function(){const It=r.CHM(F).$implicit,vo=r.oxw(2);return r.KtG(vo.editRestaurant(It))}),r.qZA()}}function Pf(v,Ne){if(1&v&&(r.TgZ(0,"th",23),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v){const F=r.oxw(2);r.xp6(),r.Oqu(r.lcZ(2,1,F.formHandler.getFormFieldLabel(F.modulePath+":restaurants:number")))}}function Mf(v,Ne){if(1&v&&(r.TgZ(0,"td",24),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.number.value,re.formEditLanguage.name)," ")}}function a_(v,Ne){if(1&v&&(r.TgZ(0,"th",23),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v){const F=r.oxw(2);r.xp6(),r.Oqu(r.lcZ(2,1,F.formHandler.getFormFieldLabel(F.modulePath+":restaurants:i18nName")))}}function Z_(v,Ne){if(1&v&&(r.TgZ(0,"td",25),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.i18nName.value,re.formEditLanguage.name)," ")}}function s_(v,Ne){if(1&v&&(r.TgZ(0,"th",23),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v){const F=r.oxw(2);r.xp6(),r.Oqu(r.lcZ(2,1,F.formHandler.getFormFieldLabel(F.modulePath+":restaurants:seats")))}}function lf(v,Ne){if(1&v&&(r.TgZ(0,"td",24),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.seats.value,re.formEditLanguage.name)," ")}}function bp(v,Ne){if(1&v&&(r.TgZ(0,"th",23),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v){const F=r.oxw(2);r.xp6(),r.Oqu(r.lcZ(2,1,F.formHandler.getFormFieldLabel(F.modulePath+":restaurants:rsize")))}}function lp(v,Ne){if(1&v&&(r.TgZ(0,"td",24),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.rsize.value,re.formEditLanguage.name)," ")}}function M_(v,Ne){1&v&&r._UZ(0,"th",26)}function cf(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"imx-action-menu-item",30),r.NdJ("click",function(){r.CHM(F);const ze=r.oxw().$implicit,It=r.oxw(2);return r.KtG(It.formHandler.removeLineFromCollection("restaurants",It.restaurantCollectionDataSource.filteredData.indexOf(ze),It.moduleDataFormGroup))}),r._uU(1," imxplatform.common-entity.list.remove "),r.qZA()}2&v&&r.Q6J("icon","icon-trash")}function H_(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"td",27)(1,"imx-dropup-button")(2,"imx-action-menu")(3,"imx-action-menu-item",28),r.NdJ("click",function(){const It=r.CHM(F).$implicit,vo=r.oxw(2);return r.KtG(vo.editRestaurant(It))}),r._uU(4," imxplatform.common-entity.list.details "),r.qZA(),r.YNc(5,cf,2,1,"imx-action-menu-item",29),r.qZA()()()}if(2&v){const F=Ne.$implicit,re=r.oxw(2);r.Q6J("formGroup",F),r.xp6(3),r.Q6J("icon","icon-magnifier"),r.xp6(2),r.Q6J("hasSavePermission",re.formHandler)}}function Wf(v,Ne){if(1&v&&(r.TgZ(0,"table",8),r.YNc(1,B_,1,0,"tr",9)(2,sf,1,0,"tr",10),r.ynx(3,11),r.YNc(4,Pf,3,3,"th",12)(5,Mf,3,4,"td",13),r.BQk(),r.ynx(6,14),r.YNc(7,a_,3,3,"th",12)(8,Z_,3,4,"td",15),r.BQk(),r.ynx(9,16),r.YNc(10,s_,3,3,"th",12)(11,lf,3,4,"td",13),r.BQk(),r.ynx(12,17),r.YNc(13,bp,3,3,"th",12)(14,lp,3,4,"td",13),r.BQk(),r.ynx(15,18),r.YNc(16,M_,1,0,"th",19)(17,H_,6,3,"td",20),r.BQk(),r.qZA()),2&v){const F=r.oxw();r.Q6J("dataSource",F.restaurantCollectionDataSource),r.xp6(),r.Q6J("matHeaderRowDef",F.restaurantCollectionColumns),r.xp6(),r.Q6J("matRowDefColumns",F.restaurantCollectionColumns)}}let Tf=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(F,re,ze,It){super(F),this.entitiesMgr=F,this.dialog=re,this.changeDetectorRef=ze,this.translateService=It}ngOnInit(){this._loadRestaurants()}_loadRestaurants(){this.moduleDataFormGroup.get("restaurants")&&(this.restaurantCollectionDataSource=this.prepareTable(this.moduleDataFormGroup.get("restaurants"),F=>this.restaurantCollectionDataSource=F,(F,re)=>(0,R.compareI18n)(F.controls.i18nName.value,re.controls.i18nName.value,this.translateService.currentLang)),this.restaurantCollectionColumns=["number","i18nName","seats","rsize","actionColumn"])}openRestaurantDialog(F){return this.dialog.open(af,{minWidth:600,data:{title:"imxtools.metainfo.modules_convention_center.gastronomy.description",arrayField:this.formHandler.formConfiguration.findArrayFieldById(this.modulePath+":restaurants"),formRow:F,formHandler:this.formHandler}})}editRestaurant(F){if(F){const re=F.value;this.openRestaurantDialog(F).afterClosed().subscribe(It=>{It?this.changeDetectorRef.markForCheck():F.reset(re,{onlySelf:!0})})}}createRestaurant(){const F=this.formHandler.addNewCollectionRow(this.modulePath+":restaurants",!1);this.openRestaurantDialog(F).afterClosed().subscribe(ze=>{ze&&(this.moduleDataFormGroup.get("restaurants").push(F),this.moduleDataFormGroup.get("restaurants").markAsDirty(),this.restaurantCollectionDataSource=new ue.by(this.moduleDataFormGroup.get("restaurants").controls),this.changeDetectorRef.markForCheck())})}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(u.uw),r.Y36(r.sBO),r.Y36(et.sK))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-convention-restaurant-form-panel"]],inputs:{modulePath:"modulePath"},features:[r.qOj],decls:13,vars:10,consts:[["translate",""],[1,"form__content-row"],[1,"form__content-group"],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[1,"imx-button","prio2",3,"disabled","click"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","clickable",3,"click",4,"matRowDef","matRowDefColumns"],["matColumnDef","number"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","i18nName"],["mat-cell","","class","txt-ellipsis",4,"matCellDef"],["matColumnDef","seats"],["matColumnDef","rsize"],["matColumnDef","actionColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row","",1,"clickable",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-cell","",1,"txt-ellipsis"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],[3,"icon","click"],["additionalStyle","delete",3,"icon","click",4,"hasSavePermission"],["additionalStyle","delete",3,"icon","click"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"h3",0),r._uU(1,"imxtools.metainfo.modules_convention_center.gastronomy.restaurants"),r.qZA(),r.TgZ(2,"div",1)(3,"div",2),r.YNc(4,Of,2,0,"ng-template",null,3,r.W1O),r.TgZ(6,"div",4),r.YNc(7,Wf,18,3,"table",5),r.qZA(),r.TgZ(8,"button",6),r.NdJ("click",function(){return ze.createRestaurant()}),r.ALo(9,"async"),r.ALo(10,"async"),r._uU(11),r.ALo(12,"translate"),r.qZA()()()),2&re){const It=r.MAs(5);r.xp6(7),r.Q6J("ngIf",ze.restaurantCollectionDataSource&&ze.restaurantCollectionDataSource.data.length>0)("ngIfElse",It),r.xp6(),r.Q6J("disabled",!r.lcZ(9,4,ze.formHandler.hasSavePermission())||!r.lcZ(10,6,ze.formHandler.hasSavePermission())),r.xp6(3),r.hij(" ",r.lcZ(12,8,"imxtools.metainfo.modules_convention_center.create-restaurant")," ")}},dependencies:[Fr.R,e.O5,s.JL,ue.BZ,ue.fO,ue.as,ue.w1,ue.Dz,ue.nj,ue.ge,ue.ev,ue.XQ,ue.Gk,s.sg,et.Pi,en.p,qn.z,hi.t,Fa.j,e.Ov,et.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}h3[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return v})();var l_=a(96743);function ym(v,Ne){1&v&&(r.TgZ(0,"p",7),r._uU(1,"imxplatform.common.no-records"),r.qZA())}function Cp(v,Ne){1&v&&r._UZ(0,"tr",20)}function G_(v,Ne){1&v&&r._UZ(0,"tr",21)}function c_(v,Ne){if(1&v&&(r.TgZ(0,"th",22),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v){const F=r.oxw(2);r.xp6(),r.Oqu(r.lcZ(2,1,F.formHandler.getFormFieldLabel(F.modulePath+":distances:destinationType")))}}function be(v,Ne){if(1&v&&(r.TgZ(0,"td",23),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.destinationType.value.i18nName,re.formEditLanguage.name)," ")}}function we(v,Ne){if(1&v&&(r.TgZ(0,"th",22),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v){const F=r.oxw(2);r.xp6(),r.Oqu(r.lcZ(2,1,F.formHandler.getFormFieldLabel(F.modulePath+":distances:distanceDestinationStaticTrue")))}}function ie(v,Ne){1&v&&r.GkF(0)}const Ge=()=>({$implicit:"distanceDestinationStaticTrue"});function Rt(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,ie,1,0,"ng-container",27),r.BQk()),2&v){r.oxw();const F=r.MAs(6);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,Ge))}}function Zn(v,Ne){1&v&&r.GkF(0)}const io=()=>({$implicit:"distanceDestinationStaticFalse"});function Ro(v,Ne){if(1&v&&r.YNc(0,Zn,1,0,"ng-container",27),2&v){r.oxw();const F=r.MAs(6);r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,io))}}function ar(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",28),2&v){const F=Ne.$implicit,re=r.oxw().$implicit,ze=r.oxw(2);r.Q6J("field",ze.formHandler.formConfiguration.findFormFieldById(ze.modulePath+":distances:"+F))("control",re.controls[F])("form",ze.formHandler.formGroup.get("metainfos"))("formHandler",ze.formHandler)("config",ze.formHandler.formConfiguration)}}function Or(v,Ne){if(1&v&&(r.TgZ(0,"td",23),r.YNc(1,Rt,2,3,"ng-container",24),r.ALo(2,"async"),r.YNc(3,Ro,1,3,"ng-template",null,25,r.W1O)(5,ar,1,5,"ng-template",null,26,r.W1O),r.qZA()),2&v){const F=Ne.$implicit,re=r.MAs(4),ze=r.oxw(2);r.xp6(),r.Q6J("ngIf",r.lcZ(2,2,ze.destinationTypeIdStaticDestinationMap.get(F.controls.destinationType.value.id)))("ngIfElse",re)}}function La(v,Ne){if(1&v&&(r.TgZ(0,"th",22),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v){const F=r.oxw(2);r.xp6(),r.Oqu(r.lcZ(2,1,F.formHandler.getFormFieldLabel(F.modulePath+":distances:distanceValue")))}}function za(v,Ne){if(1&v&&(r.TgZ(0,"td",29),r._UZ(1,"imx-form-control",28),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.Q6J("formGroup",F),r.xp6(),r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById(re.modulePath+":distances:distanceValue"))("control",F.controls.distanceValue)("form",re.formHandler.formGroup.get("metainfos"))("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}function Ol(v,Ne){1&v&&r._UZ(0,"th",30)}function fl(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"a",33),r.NdJ("click",function(){r.CHM(F);const ze=r.oxw().$implicit,It=r.oxw(2);return r.KtG(It.removeDistance(ze.controls.distanceDestination.value.id,ze.controls.destinationType.value.id))}),r.qZA()}}function As(v,Ne){if(1&v&&(r.TgZ(0,"td",31),r.YNc(1,fl,1,0,"a",32),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.Q6J("formGroup",F),r.xp6(),r.Q6J("hasFieldWritePermission",re.modulePath+":distances")("hasFieldWritePermissionFormHandler",re.formHandler)}}function Xs(v,Ne){if(1&v&&(r.TgZ(0,"table",8),r.YNc(1,Cp,1,0,"tr",9)(2,G_,1,0,"tr",10),r.ynx(3,11),r.YNc(4,c_,3,3,"th",12)(5,be,3,4,"td",13),r.BQk(),r.ynx(6,14),r.YNc(7,we,3,3,"th",12)(8,Or,7,4,"td",13),r.BQk(),r.ynx(9,15),r.YNc(10,La,3,3,"th",12)(11,za,2,6,"td",16),r.BQk(),r.ynx(12,17),r.YNc(13,Ol,1,0,"th",18)(14,As,2,3,"td",19),r.BQk(),r.qZA()),2&v){const F=r.oxw();r.Q6J("dataSource",F.distanceCollectionDataSource),r.xp6(),r.Q6J("matHeaderRowDef",F.distanceColumns),r.xp6(),r.Q6J("matRowDefColumns",F.distanceColumns)}}function kc(v,Ne){if(1&v&&r._UZ(0,"imx-select",34),2&v){const F=r.oxw();r.Q6J("disableControl",0===F.distancesOptions.length)("field",F.formHandler.formConfiguration.findFormFieldById(F.modulePath+":addDistance"))("control",F.moduleDataFormGroup.get("addDistance"))("form",F.moduleDataFormGroup)("formHandler",F.formHandler)("optionProvider",F.distancesOptions)}}let Vc=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(F,re,ze,It,vo,Os){super(F),this.entitiesMgr=F,this.dialog=re,this.changeDetectorRef=ze,this.translateService=It,this.userMessageService=vo,this.readI18nPipe=Os,this.allDistancesOptions=[],this.distancesOptions=[]}ngOnInit(){this.loadOptionData().subscribe(F=>{this.conventionDistanceDestinations=F,this.allDistancesOptions=this.convertDataToOptions(F),this.updateDistancesOptions(),this.changeDetectorRef.markForCheck()}),this._initDistanceTable(),this._initSelectChangeListener()}loadOptionData(){return this.entitiesMgr.getAllEntitiesOfType("ConventionDestinationType").pipe((0,Je.U)(F=>F.items.map(re=>re))).pipe((0,l_.zg)(F=>this.entitiesMgr.getAllEntitiesOfType("ConventionDistanceDestination").pipe((0,Je.U)(re=>re.items.filter(ze=>ze.destinationType).filter(ze=>F.filter(It=>void 0!==It.staticDestination&&!0===It.staticDestination).map(It=>It.id).includes(ze.destinationType.id)).map(ze=>(ze.destinationType.staticDestination=!0,ze)).concat(F.filter(ze=>void 0===ze.staticDestination||!1===ze.staticDestination).map(ze=>(ze.staticDestination=!1,{destinationType:ze})))))))}convertDataToOptions(F){const re=[];return F.forEach(ze=>{re.push(ze.i18nName?{label:this.readI18nPipe.transform([ze.destinationType.i18nName,ze.i18nName]),value:ze}:{label:ze.destinationType.i18nName,value:ze})}),re}updateDistancesOptions(){this.distancesOptions=this.allDistancesOptions.filter(F=>!this.isAlreadyAssigned(F.value))}isAlreadyAssigned(F){return this.moduleDataFormGroup.get("distances").value.some(re=>!0===F.destinationType.staticDestination&&re.destinationType.id===F.destinationType.id&&re.distanceDestination.id&&re.distanceDestination.id===F.id)||this.moduleDataFormGroup.get("distances").value.some(re=>!1===F.destinationType.staticDestination&&re.destinationType.id===F.destinationType.id)}fillDestinationTypeIdStaticDestinationMap(){const F=new Map;return this.distanceCollectionDataSource._data._value.forEach((re,ze)=>{F.set(this.distanceCollectionDataSource._data._value[ze].value.destinationType.id,this.entitiesMgr.getEntityWithIdOfType("ConventionDestinationType",this.distanceCollectionDataSource._data._value[ze].value.destinationType.id).pipe((0,Je.U)(It=>!("staticDestination"in It)||It.staticDestination)))}),F}_initSelectChangeListener(){this.moduleDataFormGroup.controls.addDistance&&this.moduleDataFormGroup.controls.addDistance.valueChanges.pipe((0,rn.R)(this.destroy$),(0,yl.h)(F=>F!==R.SELECT_PLACEHOLDER_VALUE)).subscribe(F=>{if(F){const re=this.formHandler.addNewCollectionRow(this.modulePath+":distances",!1);re.controls.destinationType.setValue(F.destinationType),re.controls.destinationType.setValue(F.destinationType),re.controls.distanceDestination.setValue(F),F.i18nName&&(re.controls.distanceDestinationStaticTrue.patchValue(F.i18nName),re.controls.distanceDestinationStaticFalse.patchValue(F.i18nName)),this.moduleDataFormGroup.get("distances").push(re),this.moduleDataFormGroup.get("distances").markAsDirty(),this.updateDistancesOptions(),this._initDistanceTable(),this.changeDetectorRef.markForCheck(),this.destinationTypeIdStaticDestinationMap=this.fillDestinationTypeIdStaticDestinationMap(),this.moduleDataFormGroup.controls.addDistance.setValue(R.SELECT_PLACEHOLDER_VALUE),this.moduleDataFormGroup.controls.addDistance.markAsPristine()}})}_initDistanceTable(){this.moduleDataFormGroup.get("distances")&&(this.distanceCollectionDataSource=this.prepareTable(this.moduleDataFormGroup.get("distances"),F=>this.distanceCollectionDataSource=F),this.distanceColumns=["destinationType","distanceDestinationStaticTrue","distanceValue","removeColumn"],this.destinationTypeIdStaticDestinationMap=this.fillDestinationTypeIdStaticDestinationMap())}removeDistance(F,re){const ze=this.moduleDataFormGroup.get("distances").controls.findIndex(It=>It.get("destinationType").value.id===re&&It.get("distanceDestination").value.id===F);ze>-1&&this.moduleDataFormGroup.get("distances").removeAt(ze),this.moduleDataFormGroup.get("distances").markAsDirty(),this.updateDistancesOptions(),this._initDistanceTable()}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(Te.qB),r.Y36(u.uw),r.Y36(r.sBO),r.Y36(et.sK),r.Y36(R.UserMessageService),r.Y36(R.ReadI18nPipe))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-convention-distance-form-panel"]],inputs:{modulePath:"modulePath"},features:[r.qOj],decls:9,vars:3,consts:[["translate",""],[1,"form__content-row"],[1,"form__content-group"],["noRecord",""],[1,"form__table","infrastructure"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],["class","imx-button-select",3,"disableControl","field","control","form","formHandler","optionProvider",4,"hasSavePermission"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","destinationType"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","distanceDestinationStaticTrue"],["matColumnDef","distanceValue"],["mat-cell","",3,"formGroup",4,"matCellDef"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell",""],["mat-cell",""],[4,"ngIf","ngIfElse"],["distanceDestinationStaticFalse",""],["distanceFormTemplate",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"field","control","form","formHandler","config"],["mat-cell","",3,"formGroup"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],["class","icon icon-trash imx-icon-middle imx-icon-delete","role","button",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],["role","button",1,"icon","icon-trash","imx-icon-middle","imx-icon-delete",3,"click"],[1,"imx-button-select",3,"disableControl","field","control","form","formHandler","optionProvider"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"h3",0),r._uU(1,"imxtools.addressbase.edit.panels.base-data.distance-definitions"),r.qZA(),r.TgZ(2,"div",1)(3,"div",2),r.YNc(4,ym,2,0,"ng-template",null,3,r.W1O),r.TgZ(6,"div",4),r.YNc(7,Xs,15,3,"table",5),r.qZA(),r.YNc(8,kc,1,6,"imx-select",6),r.qZA()()),2&re){const It=r.MAs(5);r.xp6(7),r.Q6J("ngIf",ze.distanceCollectionDataSource&&ze.distanceCollectionDataSource.data.length>0)("ngIfElse",It),r.xp6(),r.Q6J("hasSavePermission",ze.formHandler)}},dependencies:[Ft.A,no.H,Fr.R,nl.X,hl.F,e.O5,e.tP,s.JL,ue.BZ,ue.fO,ue.as,ue.w1,ue.Dz,ue.nj,ue.ge,ue.ev,ue.XQ,ue.Gk,s.sg,et.Pi,Fa.j,e.Ov,et.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}h3[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return v})();function Ed(v,Ne){1&v&&r.GkF(0)}function am(v,Ne){1&v&&r.GkF(0)}function y(v,Ne){1&v&&r.GkF(0)}function g(v,Ne){1&v&&r.GkF(0)}function T(v,Ne){1&v&&r.GkF(0)}function W(v,Ne){1&v&&r.GkF(0)}function le(v,Ne){1&v&&r.GkF(0)}function De(v,Ne){1&v&&r.GkF(0)}function ke(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",10),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.data.arrayField.getChildField(F))("control",re.data.formRow.get(F))("form",re.data.formRow)("formHandler",re.data.formHandler)("config",re.data.formHandler.formConfiguration)}}const Ot=()=>({$implicit:"i18nName"}),Nt=()=>({$implicit:"homepage"}),gn=()=>({$implicit:"roomCapacity"}),Xn=()=>({$implicit:"numberSingleRooms"}),ci=()=>({$implicit:"numberDoubleRooms"}),pi=()=>({$implicit:"numberSuiteRooms"}),Di=()=>({$implicit:"classificationSuperior"}),Ni=()=>({$implicit:"distanceCongressCenter"});let lo=(()=>{class v{constructor(F){this.data=F,this.classificationRadioButtons=[{value:-1,label:"imxtools.metainfo.modules_convention_center.hotels.none"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"}]}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(u.WI))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["ng-component"]],decls:19,vars:32,consts:[["icon","icon-pencil--squares","dialogType","form",3,"heading","submitButtonDisabled"],["form-header","",3,"formHandler"],["id","hotel-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"form__content-field-row"],[1,"dialog-form",3,"formGroup"],["formControlName","classification","label","entity.ConventionHotel.classification","mode","inline",3,"radioButtons"],["imxFormControl",""],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-dialog",0),r.ALo(1,"async"),r._UZ(2,"imx-language-switch-button",1),r.TgZ(3,"form",2)(4,"div",3)(5,"div",4),r.YNc(6,Ed,1,0,"ng-container",5)(7,am,1,0,"ng-container",5),r.TgZ(8,"div",6),r.YNc(9,y,1,0,"ng-container",5)(10,g,1,0,"ng-container",5)(11,T,1,0,"ng-container",5)(12,W,1,0,"ng-container",5),r.qZA(),r.TgZ(13,"div",7),r._UZ(14,"imx-base-radio-button-group",8),r.qZA(),r.YNc(15,le,1,0,"ng-container",5)(16,De,1,0,"ng-container",5),r.qZA()()()(),r.YNc(17,ke,1,5,"ng-template",null,9,r.W1O)),2&re){const It=r.MAs(18);r.Q6J("heading",ze.data.title)("submitButtonDisabled",ze.data.formRow.invalid||ze.data.formRow.pristine||!r.lcZ(1,22,ze.data.formHandler.hasSavePermission())),r.xp6(2),r.Q6J("formHandler",ze.data.formHandler),r.xp6(),r.Q6J("formGroup",ze.data.formHandler.formGroup),r.xp6(3),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(24,Ot)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(25,Nt)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(26,gn)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(27,Xn)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(28,ci)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(29,pi)),r.xp6(),r.Q6J("formGroup",ze.data.formRow),r.xp6(),r.Q6J("radioButtons",ze.classificationRadioButtons),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(30,Di)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(31,Ni))}},dependencies:[Vn.q,Wi.a,Ft.A,da.H,e.tP,s._Y,s.JJ,s.JL,s.sg,s.u,e.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}"]})}return v})();function yo(v,Ne){1&v&&(r.TgZ(0,"p",6),r._uU(1,"imxplatform.common.no-records"),r.qZA())}function So(v,Ne){1&v&&r._UZ(0,"tr",25)}function Ko(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"tr",26),r.NdJ("click",function(){const It=r.CHM(F).$implicit,vo=r.oxw(2);return r.KtG(vo.editHotel(It))}),r.qZA()}}function Uo(v,Ne){1&v&&(r.TgZ(0,"th",27),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ConventionHotel.i18nName")))}function Yo(v,Ne){if(1&v&&(r.TgZ(0,"td",28),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.i18nName.value,re.formEditLanguage.name)," ")}}function fr(v,Ne){1&v&&(r.TgZ(0,"th",27),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ConventionHotel.homepage")))}function Ur(v,Ne){if(1&v&&(r.TgZ(0,"td",28),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.homepage.value,re.formEditLanguage.name)," ")}}function sa(v,Ne){1&v&&(r.TgZ(0,"th",27),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ConventionHotel.roomCapacity")))}function Ya(v,Ne){if(1&v&&(r.TgZ(0,"td",29),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.roomCapacity.value,re.formEditLanguage.name)," ")}}function ua(v,Ne){1&v&&(r.TgZ(0,"th",27),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ConventionHotel.numberSingleRooms")))}function ca(v,Ne){if(1&v&&(r.TgZ(0,"td",29),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.numberSingleRooms.value,re.formEditLanguage.name)," ")}}function pa(v,Ne){1&v&&(r.TgZ(0,"th",27),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ConventionHotel.numberDoubleRooms")))}function Xa(v,Ne){if(1&v&&(r.TgZ(0,"td",29),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.numberDoubleRooms.value,re.formEditLanguage.name)," ")}}function Ma(v,Ne){1&v&&(r.TgZ(0,"th",27),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ConventionHotel.numberSuiteRooms")))}function ea(v,Ne){if(1&v&&(r.TgZ(0,"td",29),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.numberSuiteRooms.value,re.formEditLanguage.name)," ")}}function rs(v,Ne){1&v&&(r.TgZ(0,"th",27),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ConventionHotel.classification")))}function Sa(v,Ne){if(1&v&&(r.TgZ(0,"td",29),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.classification.value,re.formEditLanguage.name)," ")}}function ml(v,Ne){1&v&&(r.TgZ(0,"th",27),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ConventionHotel.classificationSuperior")))}function nd(v,Ne){if(1&v&&(r.TgZ(0,"td",29),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v){const F=Ne.$implicit;r.xp6(),r.hij(" ",r.lcZ(2,1,"imxtools.metainfo.modules_convention_center.hotels."+F.controls.classificationSuperior.value)," ")}}function cd(v,Ne){1&v&&(r.TgZ(0,"th",27),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.ConventionHotel.distanceCongressCenter")))}function sm(v,Ne){if(1&v&&(r.TgZ(0,"td",29),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.distanceCongressCenter.value,re.formEditLanguage.name)," ")}}function ju(v,Ne){1&v&&r._UZ(0,"th",30)}function su(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"imx-action-menu-item",34),r.NdJ("click",function(){r.CHM(F);const ze=r.oxw().$implicit,It=r.oxw(2);return r.KtG(It.formHandler.removeLineFromCollection("hotels",It.hotelCollectionDataSource.filteredData.indexOf(ze),It.moduleDataFormGroup))}),r._uU(1," imxplatform.common-entity.list.remove "),r.qZA()}2&v&&r.Q6J("icon","icon-trash")}function qd(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"td",31)(1,"imx-dropup-button")(2,"imx-action-menu")(3,"imx-action-menu-item",32),r.NdJ("click",function(){const It=r.CHM(F).$implicit,vo=r.oxw(2);return r.KtG(vo.editHotel(It))}),r._uU(4," imxplatform.common-entity.list.details "),r.qZA(),r.YNc(5,su,2,1,"imx-action-menu-item",33),r.qZA()()()}if(2&v){const F=Ne.$implicit,re=r.oxw(2);r.Q6J("formGroup",F),r.xp6(3),r.Q6J("icon","icon-magnifier"),r.xp6(2),r.Q6J("hasSavePermission",re.formHandler)}}function Xd(v,Ne){if(1&v&&(r.TgZ(0,"table",7),r.YNc(1,So,1,0,"tr",8)(2,Ko,1,0,"tr",9),r.ynx(3,10),r.YNc(4,Uo,3,3,"th",11)(5,Yo,3,4,"td",12),r.BQk(),r.ynx(6,13),r.YNc(7,fr,3,3,"th",11)(8,Ur,3,4,"td",12),r.BQk(),r.ynx(9,14),r.YNc(10,sa,3,3,"th",11)(11,Ya,3,4,"td",15),r.BQk(),r.ynx(12,16),r.YNc(13,ua,3,3,"th",11)(14,ca,3,4,"td",15),r.BQk(),r.ynx(15,17),r.YNc(16,pa,3,3,"th",11)(17,Xa,3,4,"td",15),r.BQk(),r.ynx(18,18),r.YNc(19,Ma,3,3,"th",11)(20,ea,3,4,"td",15),r.BQk(),r.ynx(21,19),r.YNc(22,rs,3,3,"th",11)(23,Sa,3,4,"td",15),r.BQk(),r.ynx(24,20),r.YNc(25,ml,3,3,"th",11)(26,nd,3,3,"td",15),r.BQk(),r.ynx(27,21),r.YNc(28,cd,3,3,"th",11)(29,sm,3,4,"td",15),r.BQk(),r.ynx(30,22),r.YNc(31,ju,1,0,"th",23)(32,qd,6,3,"td",24),r.BQk(),r.qZA()),2&v){const F=r.oxw();r.Q6J("dataSource",F.hotelCollectionDataSource),r.xp6(),r.Q6J("matHeaderRowDef",F.hotelCollectionColumns),r.xp6(),r.Q6J("matRowDefColumns",F.hotelCollectionColumns)}}let Em=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(F,re,ze,It){super(F),this.entitiesMgr=F,this.dialog=re,this.changeDetectorRef=ze,this.translateService=It}ngOnInit(){this._loadHotels()}_loadHotels(){this.moduleDataFormGroup.get("hotels")&&(this.hotelCollectionDataSource=this.prepareTable(this.moduleDataFormGroup.get("hotels"),F=>this.hotelCollectionDataSource=F,(F,re)=>(0,R.compareI18n)(F.controls.i18nName.value,re.controls.i18nName.value,this.translateService.currentLang)),this.hotelCollectionColumns=["i18nName","homepage","roomCapacity","numberSingleRooms","numberDoubleRooms","numberSuiteRooms","classification","classificationSuperior","distanceCongressCenter","actionColumn"])}openHotelDialog(F){return this.dialog.open(lo,{minWidth:600,data:{title:"entity.ConventionHotel.entityName",arrayField:this.formHandler.formConfiguration.findArrayFieldById(this.modulePath+":hotels"),formRow:F,formHandler:this.formHandler}})}editHotel(F){if(F){const re=F.value;this.openHotelDialog(F).afterClosed().subscribe(It=>{It?this.changeDetectorRef.markForCheck():F.reset(re,{onlySelf:!0})})}}createHotel(){const F=this.formHandler.addNewCollectionRow(this.modulePath+":hotels",!1);this.openHotelDialog(F).afterClosed().subscribe(ze=>{ze&&(this.moduleDataFormGroup.get("hotels").push(F),this.moduleDataFormGroup.get("hotels").markAsDirty(),this.hotelCollectionDataSource=new ue.by(this.moduleDataFormGroup.get("hotels").controls),this.changeDetectorRef.markForCheck())})}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(u.uw),r.Y36(r.sBO),r.Y36(et.sK))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-convention-hotel-form-panel"]],inputs:{modulePath:"modulePath"},features:[r.qOj],decls:11,vars:10,consts:[[1,"form__content-row"],[1,"form__content-group"],["noRecordHotel",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[1,"imx-button","prio2",3,"disabled","click"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","clickable",3,"click",4,"matRowDef","matRowDefColumns"],["matColumnDef","i18nName"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","txt-ellipsis",4,"matCellDef"],["matColumnDef","homepage"],["matColumnDef","roomCapacity"],["mat-cell","",4,"matCellDef"],["matColumnDef","numberSingleRooms"],["matColumnDef","numberDoubleRooms"],["matColumnDef","numberSuiteRooms"],["matColumnDef","classification"],["matColumnDef","classificationSuperior"],["matColumnDef","distanceCongressCenter"],["matColumnDef","actionColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row","",1,"clickable",3,"click"],["mat-header-cell",""],["mat-cell","",1,"txt-ellipsis"],["mat-cell",""],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],[3,"icon","click"],["additionalStyle","delete",3,"icon","click",4,"hasSavePermission"],["additionalStyle","delete",3,"icon","click"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"div",0)(1,"div",1),r.YNc(2,yo,2,0,"ng-template",null,2,r.W1O),r.TgZ(4,"div",3),r.YNc(5,Xd,33,3,"table",4),r.qZA(),r.TgZ(6,"button",5),r.NdJ("click",function(){return ze.createHotel()}),r.ALo(7,"async"),r.ALo(8,"async"),r._uU(9),r.ALo(10,"translate"),r.qZA()()()),2&re){const It=r.MAs(3);r.xp6(5),r.Q6J("ngIf",ze.hotelCollectionDataSource&&ze.hotelCollectionDataSource.data.length>0)("ngIfElse",It),r.xp6(),r.Q6J("disabled",!r.lcZ(7,4,ze.formHandler.hasSavePermission())||!r.lcZ(8,6,ze.formHandler.hasSavePermission())),r.xp6(3),r.hij(" ",r.lcZ(10,8,"imxtools.metainfo.modules_convention_center.create-hotel")," ")}},dependencies:[Fr.R,e.O5,s.JL,ue.BZ,ue.fO,ue.as,ue.w1,ue.Dz,ue.nj,ue.ge,ue.ev,ue.XQ,ue.Gk,s.sg,et.Pi,en.p,qn.z,hi.t,Fa.j,e.Ov,et.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}h3[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return v})();function Eu(v,Ne){1&v&&r.GkF(0)}function lu(v,Ne){1&v&&r.GkF(0)}function Vd(v,Ne){1&v&&r.GkF(0)}function Ad(v,Ne){1&v&&r.GkF(0)}const fd=()=>({$implicit:"eventTypes"});function Om(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,Ad,1,0,"ng-container",1),r.BQk()),2&v){r.oxw();const F=r.MAs(67);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,fd))}}function cu(v,Ne){1&v&&r.GkF(0)}function du(v,Ne){1&v&&r.GkF(0)}const wd=()=>({$implicit:"topics"});function Wm(v,Ne){if(1&v&&(r.TgZ(0,"div"),r.YNc(1,du,1,0,"ng-container",1),r.qZA()),2&v){r.oxw();const F=r.MAs(67);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,wd))}}function Sl(v,Ne){1&v&&r.GkF(0)}const np=()=>({$implicit:"locationTypes"});function lm(v,Ne){if(1&v&&(r.TgZ(0,"div"),r.YNc(1,Sl,1,0,"ng-container",1),r.qZA()),2&v){r.oxw();const F=r.MAs(67);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,np))}}function Sm(v,Ne){1&v&&r.GkF(0)}function yp(v,Ne){1&v&&r.GkF(0)}function Op(v,Ne){1&v&&r.GkF(0)}const cp=()=>({$implicit:"endowments"});function Jp(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"imx-accordion-panel",13)(2,"h3",9),r._uU(3,"entity.CenterAddressbase.endowments"),r.qZA(),r.YNc(4,Op,1,0,"ng-container",1),r.qZA(),r.BQk()),2&v){r.oxw();const F=r.MAs(67);r.xp6(4),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,cp))}}function dp(v,Ne){if(1&v&&(r.TgZ(0,"imx-accordion-panel",14),r._UZ(1,"imx-convention-hotel-form-panel",15),r.qZA()),2&v){const F=r.oxw();r.xp6(),r.Q6J("formHandler",F.formHandler)("modulePath",F.modulePath)("moduleDataFormGroup",F.moduleDataFormGroup)}}function ip(v,Ne){if(1&v&&(r.TgZ(0,"imx-accordion-panel",16),r._UZ(1,"imx-convention-room-form-panel",15),r.qZA()),2&v){const F=r.oxw();r.xp6(),r.Q6J("formHandler",F.formHandler)("modulePath",F.modulePath)("moduleDataFormGroup",F.moduleDataFormGroup)}}function Au(v,Ne){1&v&&r.GkF(0)}const Lp=()=>({$implicit:"locationAttributes"});function d_(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,Au,1,0,"ng-container",1),r.BQk()),2&v){r.oxw(2);const F=r.MAs(67);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,Lp))}}function zf(v,Ne){if(1&v&&(r.TgZ(0,"imx-accordion-panel",17),r._UZ(1,"imx-convention-distance-form-panel",15),r.YNc(2,d_,2,3,"ng-container",2),r.ALo(3,"async"),r.qZA()),2&v){const F=r.oxw();r.xp6(),r.Q6J("formHandler",F.formHandler)("modulePath",F.modulePath)("moduleDataFormGroup",F.moduleDataFormGroup),r.xp6(),r.Q6J("ngIf",r.lcZ(3,4,F.locationAttributesAvailable))}}function df(v,Ne){1&v&&r.GkF(0)}function jf(v,Ne){1&v&&r.GkF(0)}function wu(v,Ne){1&v&&r.GkF(0)}function Kf(v,Ne){1&v&&r.GkF(0)}function og(v,Ne){1&v&&r.GkF(0)}function Ef(v,Ne){1&v&&r.GkF(0)}function Af(v,Ne){1&v&&r.GkF(0)}function wf(v,Ne){1&v&&r.GkF(0)}function rg(v,Ne){1&v&&r.GkF(0)}function bg(v,Ne){1&v&&r.GkF(0)}function Cg(v,Ne){1&v&&r.GkF(0)}function ag(v,Ne){1&v&&r.GkF(0)}function yg(v,Ne){1&v&&r.GkF(0)}function Pp(v,Ne){1&v&&r.GkF(0)}const m_=()=>({$implicit:"gastronomyAttributes"});function Df(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,Pp,1,0,"ng-container",1),r.BQk()),2&v){r.oxw();const F=r.MAs(67);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,m_))}}function Gg(v,Ne){1&v&&r.GkF(0)}function Jg(v,Ne){1&v&&r.GkF(0)}function If(v,Ne){1&v&&r.GkF(0)}function zm(v,Ne){1&v&&r.GkF(0)}function Du(v,Ne){1&v&&r.GkF(0)}function Qp(v,Ne){1&v&&r.GkF(0)}function mu(v,Ne){1&v&&r.GkF(0)}function Vp(v,Ne){1&v&&r.GkF(0)}function mp(v,Ne){1&v&&r.GkF(0)}function $f(v,Ne){1&v&&r.GkF(0)}function sg(v,Ne){1&v&&r.GkF(0)}function Sf(v,Ne){1&v&&r.GkF(0)}function Og(v,Ne){1&v&&r.GkF(0)}function Pg(v,Ne){1&v&&r.GkF(0)}function qf(v,Ne){if(1&v&&r._UZ(0,"imx-convention-restaurant-form-panel",15),2&v){const F=r.oxw();r.Q6J("formHandler",F.formHandler)("modulePath",F.modulePath)("moduleDataFormGroup",F.moduleDataFormGroup)}}function nx(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",18),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById("metainfos:modules_convention_center:"+F))("control",re.moduleDataFormGroup.get(F))("form",re.formHandler.formGroup.get("metainfos"))("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}const lg=()=>({$implicit:"forLanguages"}),Ff=()=>({$implicit:"roomDescription"}),uh=()=>({$implicit:"outdoorDescription"}),Mg=()=>({$implicit:"specialEventType"}),ph=()=>({$implicit:"specialLocationType"}),_h=()=>({$implicit:"testimonial"}),Xf=()=>({$implicit:"areaExhibition"}),Rp=()=>({$implicit:"areaInside"}),Lf=()=>({$implicit:"areaOutside"}),fh=()=>({$implicit:"areaTotal"}),J_=()=>({$implicit:"areaWellness"}),Rf=()=>({$implicit:"areaLargest"}),cg=()=>({$implicit:"numberPersonsOverall"}),Qg=()=>({$implicit:"numberParkspaceOverall"}),ix=()=>({$implicit:"numberParkspaceOutdoor"}),ox=()=>({$implicit:"numberParkspaceGarage"}),kf=()=>({$implicit:"numberConferenceRooms"}),gh=()=>({$implicit:"numberGroupRooms"}),dg=()=>({$implicit:"numberPax"}),Tg=()=>({$implicit:"contactName"}),hh=()=>({$implicit:"salutation"}),Vg=()=>({$implicit:"firstname"}),Eg=()=>({$implicit:"lastname"}),mg=()=>({$implicit:"addressstreet"}),xh=()=>({$implicit:"addressstreetNo"}),Nf=()=>({$implicit:"addresszipcode"}),Uf=()=>({$implicit:"addresscity"}),Q_=()=>({$implicit:"addresscountry"}),ug=()=>({$implicit:"addressphone1"}),Ag=()=>({$implicit:"addressphone2"}),V_=()=>({$implicit:"addressfax"}),Bf=()=>({$implicit:"addressemail"}),Tt=()=>({$implicit:"addresshomepage"});let zt=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(F,re){super(F,re),this.entitiesMgr=F,this.dialog=re,this.topicsAvailable=(0,wn.of)(!1),this.eventTypesAvailable=(0,wn.of)(!1),this.locationTypesAvailable=(0,wn.of)(!1),this.endowmentsAvailable=(0,wn.of)(!1),this.gastronomyAttributesAvailable=(0,wn.of)(!1),this.locationAttributesAvailable=(0,wn.of)(!1),this.modulePath="metainfos:modules_convention_center"}ngOnInit(){this._loadCapacity(),this.eventTypesAvailable=this.baseEntityAvailable("CenterEventType"),this.topicsAvailable=this.baseEntityAvailable("CenterTopic"),this.locationTypesAvailable=this.baseEntityAvailable("ConventionLocationType"),this.endowmentsAvailable=this.baseEntityAvailable("CenterEndowment"),this.gastronomyAttributesAvailable=this.baseEntityAvailable("CenterGastronomyAttribute"),this.locationAttributesAvailable=this.baseEntityAvailable("ConventionLocationAttribute")}_loadCapacity(){this.moduleDataFormGroup.get("capacity")&&(this.capacityDataSource=this.moduleDataFormGroup.get("capacity"))}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(u.uw))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-convention-center-addressbase-form-panel"]],features:[r.qOj],decls:68,vars:128,consts:[["title","imxtools.metainfo.modules_convention_center.main.header"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],["title","imxtools.metainfo.modules_convention_center.hotels.header",4,"ngIf"],["title","imxtools.metainfo.modules_convention_center.rooms.header",4,"ngIf"],["title","imxtools.metainfo.modules_convention_center.infrastructure.header",4,"ngIf"],["title","imxtools.metainfo.modules_convention_center.capacity.header"],[1,"form__content-field-row"],["title","imxtools.metainfo.modules_convention_center.gastronomy.header"],["translate",""],[1,"form__content-group"],[3,"formHandler","modulePath","moduleDataFormGroup",4,"ngIf"],["imxControl",""],["title","imxtools.metainfo.modules_convention_center.endowments.header"],["title","imxtools.metainfo.modules_convention_center.hotels.header"],[3,"formHandler","modulePath","moduleDataFormGroup"],["title","imxtools.metainfo.modules_convention_center.rooms.header"],["title","imxtools.metainfo.modules_convention_center.infrastructure.header"],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0),r.YNc(2,Eu,1,0,"ng-container",1)(3,lu,1,0,"ng-container",1)(4,Vd,1,0,"ng-container",1)(5,Om,2,3,"ng-container",2),r.ALo(6,"async"),r.YNc(7,cu,1,0,"ng-container",1)(8,Wm,2,3,"div",2),r.ALo(9,"async"),r.YNc(10,lm,2,3,"div",2),r.ALo(11,"async"),r.YNc(12,Sm,1,0,"ng-container",1)(13,yp,1,0,"ng-container",1),r.qZA(),r.YNc(14,Jp,5,3,"ng-container",2),r.ALo(15,"async"),r.ALo(16,"async"),r.YNc(17,dp,2,3,"imx-accordion-panel",3),r.ALo(18,"async"),r.YNc(19,ip,2,3,"imx-accordion-panel",4),r.ALo(20,"async"),r.YNc(21,zf,4,6,"imx-accordion-panel",5),r.ALo(22,"async"),r.TgZ(23,"imx-accordion-panel",6)(24,"div",7),r.YNc(25,df,1,0,"ng-container",1)(26,jf,1,0,"ng-container",1)(27,wu,1,0,"ng-container",1)(28,Kf,1,0,"ng-container",1),r.qZA(),r.TgZ(29,"div",7),r.YNc(30,og,1,0,"ng-container",1)(31,Ef,1,0,"ng-container",1),r.qZA(),r.TgZ(32,"div",7),r.YNc(33,Af,1,0,"ng-container",1),r.qZA(),r.TgZ(34,"div",7),r.YNc(35,wf,1,0,"ng-container",1)(36,rg,1,0,"ng-container",1)(37,bg,1,0,"ng-container",1),r.qZA(),r.TgZ(38,"div",7),r.YNc(39,Cg,1,0,"ng-container",1)(40,ag,1,0,"ng-container",1)(41,yg,1,0,"ng-container",1),r.qZA()(),r.TgZ(42,"imx-accordion-panel",8),r.YNc(43,Df,2,3,"ng-container",2),r.ALo(44,"async"),r.TgZ(45,"h3",9),r._uU(46,"imxtools.metainfo.modules_convention_center.gastronomy.contact"),r.qZA(),r.TgZ(47,"div",10),r.YNc(48,Gg,1,0,"ng-container",1)(49,Jg,1,0,"ng-container",1)(50,If,1,0,"ng-container",1)(51,zm,1,0,"ng-container",1),r.TgZ(52,"div",7),r.YNc(53,Du,1,0,"ng-container",1)(54,Qp,1,0,"ng-container",1),r.qZA(),r.TgZ(55,"div",7),r.YNc(56,mu,1,0,"ng-container",1)(57,Vp,1,0,"ng-container",1),r.qZA(),r.YNc(58,mp,1,0,"ng-container",1)(59,$f,1,0,"ng-container",1)(60,sg,1,0,"ng-container",1)(61,Sf,1,0,"ng-container",1)(62,Og,1,0,"ng-container",1)(63,Pg,1,0,"ng-container",1),r.qZA(),r.YNc(64,qf,1,3,"imx-convention-restaurant-form-panel",11),r.ALo(65,"async"),r.qZA()(),r.YNc(66,nx,1,5,"ng-template",null,12,r.W1O)),2&re){const It=r.MAs(67);r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(95,lg)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(96,Ff)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(97,uh)),r.xp6(),r.Q6J("ngIf",r.lcZ(6,75,ze.eventTypesAvailable)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(98,Mg)),r.xp6(),r.Q6J("ngIf",r.lcZ(9,77,ze.topicsAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(11,79,ze.locationTypesAvailable)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(99,ph)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(100,_h)),r.xp6(),r.Q6J("ngIf",r.lcZ(15,81,ze.endowmentsAvailable)&&r.lcZ(16,83,ze.formHandler.hasReadPermission("CenterAddressbase:endowments"))),r.xp6(3),r.Q6J("ngIf",r.lcZ(18,85,ze.formHandler.hasReadPermission("CenterAddressbase:hotels"))),r.xp6(2),r.Q6J("ngIf",r.lcZ(20,87,ze.formHandler.hasReadPermission("CenterAddressbase:rooms"))),r.xp6(2),r.Q6J("ngIf",r.lcZ(22,89,ze.formHandler.hasReadPermission("CenterAddressbase:distances"))),r.xp6(4),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(101,Xf)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(102,Rp)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(103,Lf)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(104,fh)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(105,J_)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(106,Rf)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(107,cg)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(108,Qg)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(109,ix)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(110,ox)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(111,kf)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(112,gh)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(113,dg)),r.xp6(2),r.Q6J("ngIf",r.lcZ(44,91,ze.gastronomyAttributesAvailable)),r.xp6(5),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(114,Tg)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(115,hh)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(116,Vg)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(117,Eg)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(118,mg)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(119,xh)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(120,Nf)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(121,Uf)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(122,Q_)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(123,ug)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(124,Ag)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(125,V_)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(126,Bf)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(127,Tt)),r.xp6(),r.Q6J("ngIf",r.lcZ(65,93,ze.formHandler.hasReadPermission("CenterAddressbase:restaurants")))}},dependencies:[Ft.A,e.O5,e.tP,et.Pi,Js.Z,Ms.U,R_,Tf,Vc,Em,e.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}"],changeDetection:0})}return v})();function on(v,Ne){1&v&&r.GkF(0)}function hn(v,Ne){1&v&&r.GkF(0)}function Gn(v,Ne){1&v&&r.GkF(0)}function Gi(v,Ne){1&v&&r.GkF(0)}function Po(v,Ne){1&v&&r.GkF(0)}function er(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",6),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.data.arrayField.getChildField(F))("control",re.data.formRow.get(F))("form",re.data.formRow)("formHandler",re.data.formHandler)("config",re.data.formHandler.formConfiguration)}}const Tr=()=>({$implicit:"i18nName"}),va=()=>({$implicit:"homepage"}),gl=()=>({$implicit:"numberRooms"}),Fl=()=>({$implicit:"roomCapacityPersons"}),Zl=()=>({$implicit:"overallCapacityPersons"});let is=(()=>{class v{constructor(F){this.data=F}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(u.WI))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["ng-component"]],decls:12,vars:20,consts:[["icon","icon-pencil--squares","dialogType","form",3,"heading","submitButtonDisabled"],["id","city-center-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["imxFormControl",""],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-dialog",0),r.ALo(1,"async"),r.TgZ(2,"form",1)(3,"div",2)(4,"div",3),r.YNc(5,on,1,0,"ng-container",4)(6,hn,1,0,"ng-container",4)(7,Gn,1,0,"ng-container",4)(8,Gi,1,0,"ng-container",4)(9,Po,1,0,"ng-container",4),r.qZA()()()(),r.YNc(10,er,1,5,"ng-template",null,5,r.W1O)),2&re){const It=r.MAs(11);r.Q6J("heading",ze.data.title)("submitButtonDisabled",ze.data.formRow.invalid||ze.data.formRow.pristine||!r.lcZ(1,13,ze.data.formHandler.hasSavePermission())),r.xp6(2),r.Q6J("formGroup",ze.data.formHandler.formGroup),r.xp6(3),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(15,Tr)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(16,va)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(17,gl)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(18,Fl)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(19,Zl))}},dependencies:[Wi.a,Ft.A,e.tP,s._Y,s.JL,s.sg,e.Ov]})}return v})();function Yc(v,Ne){1&v&&(r.TgZ(0,"p",6),r._uU(1,"imxplatform.common.no-records"),r.qZA())}function Yd(v,Ne){1&v&&r._UZ(0,"tr",24)}function cm(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"tr",25),r.NdJ("click",function(){const It=r.CHM(F).$implicit,vo=r.oxw(2);return r.KtG(vo.editCityCenter(It))}),r.qZA()}}function jm(v,Ne){1&v&&(r.TgZ(0,"th",24),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.CityCenter.i18nName")))}function up(v,Ne){if(1&v&&(r.TgZ(0,"td",26),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.i18nName.value,re.formEditLanguage.name)," ")}}function T_(v,Ne){1&v&&(r.TgZ(0,"th",27),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.CityCenter.homepage")))}function u_(v,Ne){if(1&v&&(r.TgZ(0,"td",26),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.homepage.value,re.formEditLanguage.name)," ")}}function kp(v,Ne){1&v&&(r.TgZ(0,"th",27),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.CityCenter.numberRooms")))}function p_(v,Ne){if(1&v&&(r.TgZ(0,"td",28),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.numberRooms.value,re.formEditLanguage.name)," ")}}function Wd(v,Ne){1&v&&(r.TgZ(0,"th",27),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.CityCenter.roomCapacityPersons")))}function Zf(v,Ne){if(1&v&&(r.TgZ(0,"td",28),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.roomCapacityPersons.value,re.formEditLanguage.name)," ")}}function Hf(v,Ne){1&v&&(r.TgZ(0,"th",29),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.CityCenter.overallCapacityPersons")))}function Yp(v,Ne){if(1&v&&(r.TgZ(0,"td",30),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.overallCapacityPersons.value,re.formEditLanguage.name)," ")}}function Lr(v,Ne){1&v&&r._UZ(0,"th",31)}function Ha(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"imx-action-menu-item",35),r.NdJ("click",function(){r.CHM(F);const ze=r.oxw().$implicit,It=r.oxw(2);return r.KtG(It.formHandler.removeLineFromCollection("centers",It.cityCenterCollectionDataSource.filteredData.indexOf(ze),It.moduleDataFormGroup))}),r._uU(1," imxplatform.common-entity.list.remove "),r.qZA()}2&v&&r.Q6J("icon","icon-trash")}function ws(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"td",32)(1,"imx-dropup-button")(2,"imx-action-menu")(3,"imx-action-menu-item",33),r.NdJ("click",function(){const It=r.CHM(F).$implicit,vo=r.oxw(2);return r.KtG(vo.editCityCenter(It))}),r._uU(4," imxplatform.common-entity.list.details "),r.qZA(),r.YNc(5,Ha,2,1,"imx-action-menu-item",34),r.qZA()()()}if(2&v){const F=Ne.$implicit,re=r.oxw(2);r.Q6J("formGroup",F),r.xp6(3),r.Q6J("icon","icon-magnifier"),r.xp6(2),r.Q6J("hasSavePermission",re.formHandler)}}function cl(v,Ne){if(1&v&&(r.TgZ(0,"table",7),r.YNc(1,Yd,1,0,"tr",8)(2,cm,1,0,"tr",9),r.ynx(3,10),r.YNc(4,jm,3,3,"th",11)(5,up,3,4,"td",12),r.BQk(),r.ynx(6,13),r.YNc(7,T_,3,3,"th",14)(8,u_,3,4,"td",12),r.BQk(),r.ynx(9,15),r.YNc(10,kp,3,3,"th",14)(11,p_,3,4,"td",16),r.BQk(),r.ynx(12,17),r.YNc(13,Wd,3,3,"th",14)(14,Zf,3,4,"td",16),r.BQk(),r.ynx(15,18),r.YNc(16,Hf,3,3,"th",19)(17,Yp,3,4,"td",20),r.BQk(),r.ynx(18,21),r.YNc(19,Lr,1,0,"th",22)(20,ws,6,3,"td",23),r.BQk(),r.qZA()),2&v){const F=r.oxw();r.Q6J("dataSource",F.cityCenterCollectionDataSource),r.xp6(),r.Q6J("matHeaderRowDef",F.cityCenterCollectionColumns),r.xp6(),r.Q6J("matRowDefColumns",F.cityCenterCollectionColumns)}}let Wl=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(F,re,ze,It){super(F),this.entitiesMgr=F,this.dialog=re,this.changeDetectorRef=ze,this.translateService=It}ngOnInit(){this._loadCityCenters()}_loadCityCenters(){this.moduleDataFormGroup.get("centers")&&(this.cityCenterCollectionDataSource=this.prepareTable(this.moduleDataFormGroup.get("centers"),F=>this.cityCenterCollectionDataSource=F,(F,re)=>(0,R.compareI18n)(F.controls.i18nName.value,re.controls.i18nName.value,this.translateService.currentLang)),this.cityCenterCollectionColumns=["i18nName","homepage","numberRooms","roomCapacityPersons","overallCapacityPersons","actionColumn"])}openCityCenterDialog(F){return this.dialog.open(is,{minWidth:600,data:{title:"imxtools.metainfo.modules_convention_city.city-center",arrayField:this.formHandler.formConfiguration.findArrayFieldById(this.modulePath+":centers"),formRow:F,formHandler:this.formHandler}})}editCityCenter(F){if(F){const re=F.value;this.openCityCenterDialog(F).afterClosed().subscribe(It=>{It?this.changeDetectorRef.markForCheck():F.reset(re,{onlySelf:!0})})}}createCityCenter(){const F=this.formHandler.addNewCollectionRow(this.modulePath+":centers",!1);this.openCityCenterDialog(F).afterClosed().subscribe(ze=>{ze&&(this.moduleDataFormGroup.get("centers").push(F),this.moduleDataFormGroup.get("centers").markAsDirty(),this.cityCenterCollectionDataSource=new ue.by(this.moduleDataFormGroup.get("centers").controls),this.changeDetectorRef.markForCheck())})}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(u.uw),r.Y36(r.sBO),r.Y36(et.sK))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-city-center-form-panel"]],inputs:{modulePath:"modulePath"},features:[r.qOj],decls:11,vars:10,consts:[[1,"form__content-row"],[1,"form__content-group"],["noRecordCityCenter",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[1,"imx-button","prio2",3,"disabled","click"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","clickable",3,"click",4,"matRowDef","matRowDefColumns"],["matColumnDef","i18nName"],["mat-header-row","",4,"matHeaderCellDef"],["mat-cell","","class","txt-ellipsis",4,"matCellDef"],["matColumnDef","homepage"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","numberRooms"],["mat-cell","",4,"matCellDef"],["matColumnDef","roomCapacityPersons"],["matColumnDef","overallCapacityPersons"],["mat-header-cell","","class","imx-hide-md",4,"matHeaderCellDef"],["mat-cell","","class","imx-hide-md",4,"matCellDef"],["matColumnDef","actionColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row","",1,"clickable",3,"click"],["mat-cell","",1,"txt-ellipsis"],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","",1,"imx-hide-md"],["mat-cell","",1,"imx-hide-md"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],[3,"icon","click"],["additionalStyle","delete",3,"icon","click",4,"hasSavePermission"],["additionalStyle","delete",3,"icon","click"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"div",0)(1,"div",1),r.YNc(2,Yc,2,0,"ng-template",null,2,r.W1O),r.TgZ(4,"div",3),r.YNc(5,cl,21,3,"table",4),r.qZA(),r.TgZ(6,"button",5),r.NdJ("click",function(){return ze.createCityCenter()}),r.ALo(7,"async"),r.ALo(8,"async"),r._uU(9),r.ALo(10,"translate"),r.qZA()()()),2&re){const It=r.MAs(3);r.xp6(5),r.Q6J("ngIf",ze.cityCenterCollectionDataSource&&ze.cityCenterCollectionDataSource.data.length>0)("ngIfElse",It),r.xp6(),r.Q6J("disabled",!r.lcZ(7,4,ze.formHandler.hasSavePermission())||!r.lcZ(8,6,ze.formHandler.hasSavePermission())),r.xp6(3),r.hij(" ",r.lcZ(10,8,"imxtools.metainfo.modules_convention_city.create-center")," ")}},dependencies:[Fr.R,e.O5,s.JL,ue.BZ,ue.fO,ue.as,ue.w1,ue.Dz,ue.nj,ue.ge,ue.ev,ue.XQ,ue.Gk,s.sg,et.Pi,en.p,qn.z,hi.t,Fa.j,e.Ov,et.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}h3[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return v})();function vl(v,Ne){1&v&&r.GkF(0)}function hc(v,Ne){1&v&&r.GkF(0)}function dd(v,Ne){1&v&&r.GkF(0)}function Fc(v,Ne){1&v&&r.GkF(0)}const Hl=()=>({$implicit:"topics"});function uu(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,Fc,1,0,"ng-container",1),r.BQk()),2&v){r.oxw();const F=r.MAs(21);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,Hl))}}function Y_(v,Ne){1&v&&r.GkF(0)}function W_(v,Ne){1&v&&r.GkF(0)}const E_=()=>({$implicit:"locationTypes"});function mf(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,W_,1,0,"ng-container",1),r.BQk()),2&v){r.oxw();const F=r.MAs(21);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,E_))}}function Np(v,Ne){1&v&&r.GkF(0)}function uf(v,Ne){1&v&&r.GkF(0)}function z_(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"imx-accordion-panel",5),r._UZ(2,"imx-city-center-form-panel",6),r.qZA(),r.BQk()),2&v){const F=r.oxw();r.xp6(2),r.Q6J("formHandler",F.formHandler)("modulePath",F.modulePath)("moduleDataFormGroup",F.moduleDataFormGroup)}}function pf(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"imx-accordion-panel",7),r._UZ(2,"imx-convention-hotel-form-panel",6),r.qZA(),r.BQk()),2&v){const F=r.oxw();r.xp6(2),r.Q6J("formHandler",F.formHandler)("modulePath",F.modulePath)("moduleDataFormGroup",F.moduleDataFormGroup)}}function Gf(v,Ne){1&v&&r.GkF(0)}const vh=()=>({$implicit:"locationAttributes"});function pg(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,Gf,1,0,"ng-container",1),r.BQk()),2&v){r.oxw(2);const F=r.MAs(21);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,vh))}}function j_(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"imx-accordion-panel",8),r._UZ(2,"imx-convention-distance-form-panel",6),r.YNc(3,pg,2,3,"ng-container",3),r.ALo(4,"async"),r.qZA(),r.BQk()),2&v){const F=r.oxw();r.xp6(2),r.Q6J("formHandler",F.formHandler)("modulePath",F.modulePath)("moduleDataFormGroup",F.moduleDataFormGroup),r.xp6(),r.Q6J("ngIf",r.lcZ(4,4,F.locationAttributesAvailable))}}function Yg(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",9),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById("metainfos:modules_convention_city:"+F))("control",re.moduleDataFormGroup.get(F))("form",re.formHandler.formGroup.get("metainfos"))("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}const Jf=()=>({$implicit:"forLanguages"}),wg=()=>({$implicit:"informationOrder"}),Wg=()=>({$implicit:"partnerMember"}),rx=()=>({$implicit:"numberBedsOverall"}),ax=()=>({$implicit:"specialLocationType"}),sx=()=>({$implicit:"testimonial"});let lx=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(F,re){super(F,re),this.entitiesMgr=F,this.dialog=re,this.topicsAvailable=(0,wn.of)(!1),this.locationTypesAvailable=(0,wn.of)(!1),this.locationAttributesAvailable=(0,wn.of)(!1),this.modulePath="metainfos:modules_convention_city"}ngOnInit(){this.topicsAvailable=this.baseEntityAvailable("CityTopic"),this.locationTypesAvailable=this.baseEntityAvailable("ConventionLocationType"),this.locationAttributesAvailable=this.baseEntityAvailable("ConventionLocationAttribute")}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(u.uw))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-convention-city-addressbase-form-panel"]],features:[r.qOj],decls:22,vars:33,consts:[["title","imxtools.metainfo.modules_convention_center.main.header"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["translate",""],[4,"ngIf"],["imxControl",""],["title","imxtools.metainfo.modules_convention_city.centers"],[3,"formHandler","modulePath","moduleDataFormGroup"],["title","imxtools.metainfo.modules_convention_center.hotels.header"],["title","imxtools.metainfo.modules_convention_center.infrastructure.header"],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0),r.YNc(2,vl,1,0,"ng-container",1),r.TgZ(3,"h3",2),r._uU(4,"entity.CityAddressbase.properties"),r.qZA(),r.YNc(5,hc,1,0,"ng-container",1)(6,dd,1,0,"ng-container",1)(7,uu,2,3,"ng-container",3),r.ALo(8,"async"),r.YNc(9,Y_,1,0,"ng-container",1)(10,mf,2,3,"ng-container",3),r.ALo(11,"async"),r.YNc(12,Np,1,0,"ng-container",1)(13,uf,1,0,"ng-container",1),r.qZA(),r.YNc(14,z_,3,3,"ng-container",3),r.ALo(15,"async"),r.YNc(16,pf,3,3,"ng-container",3),r.ALo(17,"async"),r.YNc(18,j_,5,6,"ng-container",3),r.ALo(19,"async"),r.qZA(),r.YNc(20,Yg,1,5,"ng-template",null,4,r.W1O)),2&re){const It=r.MAs(21);r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(27,Jf)),r.xp6(3),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(28,wg)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(29,Wg)),r.xp6(),r.Q6J("ngIf",r.lcZ(8,17,ze.topicsAvailable)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(30,rx)),r.xp6(),r.Q6J("ngIf",r.lcZ(11,19,ze.locationTypesAvailable)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(31,ax)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(32,sx)),r.xp6(),r.Q6J("ngIf",r.lcZ(15,21,ze.formHandler.hasReadPermission("CityAddressbase:centers"))),r.xp6(2),r.Q6J("ngIf",r.lcZ(17,23,ze.formHandler.hasReadPermission("CityAddressbase:hotels"))),r.xp6(2),r.Q6J("ngIf",r.lcZ(19,25,ze.formHandler.hasReadPermission("CityAddressbase:infrastructure")))}},dependencies:[Ft.A,e.O5,e.tP,et.Pi,Js.Z,Ms.U,Vc,Em,Wl,e.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}"],changeDetection:0})}return v})();function bh(v,Ne){1&v&&r.GkF(0)}function r1(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",3),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById("metainfos:modules_convention_green_meeting:"+F))("control",re.moduleDataFormGroup.get(F))("form",re.formHandler.formGroup.get("metainfos"))("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}const cx=()=>({$implicit:"description"});let a1=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(F,re){super(F,re),this.entitiesMgr=F,this.dialog=re,this.modulePath="metainfos:modules_convention_green_meeting"}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(u.uw))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-convention-green-meeting-addressbase-form-panel"]],features:[r.qOj],decls:5,vars:3,consts:[["title","imxtools.metainfo.modules_convention_center.main.header"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["imxControl",""],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0),r.YNc(2,bh,1,0,"ng-container",1),r.qZA()(),r.YNc(3,r1,1,5,"ng-template",null,2,r.W1O)),2&re){const It=r.MAs(4);r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(2,cx))}},dependencies:[Ft.A,e.tP,Js.Z,Ms.U],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}"],changeDetection:0})}return v})();var gd=a(96135);function zg(v,Ne){1&v&&r.GkF(0)}function Ch(v,Ne){1&v&&r.GkF(0)}function dx(v,Ne){1&v&&r.GkF(0)}function zl(v,Ne){1&v&&r.GkF(0)}const yh=()=>({$implicit:"eventTypes"});function Oh(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,zl,1,0,"ng-container",1),r.BQk()),2&v){r.oxw();const F=r.MAs(62);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,yh))}}function eg(v,Ne){1&v&&r.GkF(0)}function te(v,Ne){1&v&&r.GkF(0)}function Pn(v,Ne){1&v&&r.GkF(0)}function E(v,Ne){1&v&&r.GkF(0)}function _e(v,Ne){1&v&&r.GkF(0)}const Me=()=>({$implicit:"locationTypes"});function Ln(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,_e,1,0,"ng-container",1),r.BQk()),2&v){r.oxw();const F=r.MAs(62);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,Me))}}function to(v,Ne){1&v&&r.GkF(0)}function ha(v,Ne){if(1&v&&(r.TgZ(0,"div",14),r._UZ(1,"imx-base-radio-button-group",15),r.qZA()),2&v){const F=r.oxw(2);r.Q6J("formGroup",F.moduleDataFormGroup),r.xp6(),r.Q6J("radioButtons",F.classificationRadioButtons)}}function zs(v,Ne){1&v&&r.GkF(0)}const cc=()=>({$implicit:"classificationSuperior"});function Gl(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"h3",3),r._uU(2,"entity.CnvHotelAddressbase.classification"),r.qZA(),r.TgZ(3,"div",12)(4,"div",9),r.YNc(5,ha,2,2,"div",13),r.ALo(6,"async"),r.YNc(7,zs,1,0,"ng-container",1),r.qZA()(),r.BQk()),2&v){const F=r.oxw(),re=r.MAs(62);r.xp6(5),r.Q6J("ngIf",r.lcZ(6,3,F.formHandler.hasReadPermission("CnvHotelAddressbase:classification"))),r.xp6(2),r.Q6J("ngTemplateOutlet",re)("ngTemplateOutletContext",r.DdM(5,cc))}}function id(v,Ne){1&v&&r.GkF(0)}function zd(v,Ne){1&v&&r.GkF(0)}const Fm=()=>({$implicit:"generalEndowments"});function Lm(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,zd,1,0,"ng-container",1),r.BQk()),2&v){r.oxw(2);const F=r.MAs(62);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,Fm))}}function Iu(v,Ne){1&v&&r.GkF(0)}const Su=()=>({$implicit:"endowments"});function K_(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,Iu,1,0,"ng-container",1),r.BQk()),2&v){r.oxw(2);const F=r.MAs(62);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,Su))}}function jg(v,Ne){1&v&&r.GkF(0)}const Dg=()=>({$implicit:"sportEndowments"});function Rv(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,jg,1,0,"ng-container",1),r.BQk()),2&v){r.oxw(2);const F=r.MAs(62);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,Dg))}}function s1(v,Ne){1&v&&r.GkF(0)}const l1=()=>({$implicit:"roomEndowments"});function mx(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,s1,1,0,"ng-container",1),r.BQk()),2&v){r.oxw(2);const F=r.MAs(62);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,l1))}}function kv(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"imx-accordion-panel",16),r.YNc(2,Lm,2,3,"ng-container",2),r.ALo(3,"async"),r.YNc(4,K_,2,3,"ng-container",2),r.ALo(5,"async"),r.YNc(6,Rv,2,3,"ng-container",2),r.ALo(7,"async"),r.YNc(8,mx,2,3,"ng-container",2),r.ALo(9,"async"),r.qZA(),r.BQk()),2&v){const F=r.oxw();r.xp6(2),r.Q6J("ngIf",r.lcZ(3,4,F.generalEndowmentAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(5,6,F.endowmentAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(7,8,F.sportEndowmentAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(9,10,F.roomEndowmentAvailable))}}function __(v,Ne){if(1&v&&(r.TgZ(0,"imx-accordion-panel",17),r._UZ(1,"imx-convention-room-form-panel",7),r.qZA()),2&v){const F=r.oxw();r.xp6(),r.Q6J("formHandler",F.formHandler)("modulePath",F.modulePath)("moduleDataFormGroup",F.moduleDataFormGroup)}}function Nv(v,Ne){1&v&&r.GkF(0)}const Uv=()=>({$implicit:"locationAttributes"});function c1(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,Nv,1,0,"ng-container",1),r.BQk()),2&v){r.oxw();const F=r.MAs(62);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,Uv))}}function ux(v,Ne){1&v&&r.GkF(0)}function d1(v,Ne){1&v&&r.GkF(0)}function Bv(v,Ne){1&v&&r.GkF(0)}function Zv(v,Ne){1&v&&r.GkF(0)}function Hv(v,Ne){1&v&&r.GkF(0)}function m1(v,Ne){1&v&&r.GkF(0)}function Gv(v,Ne){1&v&&r.GkF(0)}function Jv(v,Ne){1&v&&r.GkF(0)}function px(v,Ne){1&v&&r.GkF(0)}function Qv(v,Ne){1&v&&r.GkF(0)}function Vv(v,Ne){1&v&&r.GkF(0)}function Yv(v,Ne){1&v&&r.GkF(0)}function Wv(v,Ne){1&v&&r.GkF(0)}function zv(v,Ne){1&v&&r.GkF(0)}function _f(v,Ne){1&v&&r.GkF(0)}function _x(v,Ne){1&v&&r.GkF(0)}function jv(v,Ne){1&v&&r.GkF(0)}function Kv(v,Ne){if(1&v&&(r.TgZ(0,"imx-accordion-panel",18),r._UZ(1,"imx-convention-restaurant-form-panel",7),r.qZA()),2&v){const F=r.oxw();r.xp6(),r.Q6J("formHandler",F.formHandler)("modulePath",F.modulePath)("moduleDataFormGroup",F.moduleDataFormGroup)}}function u1(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",19),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById("metainfos:modules_convention_hotel:"+F))("control",re.moduleDataFormGroup.get(F))("form",re.formHandler.formGroup.get("metainfos"))("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}const p1=()=>({$implicit:"forLanguages"}),Ph=()=>({$implicit:"roomDescription"}),fx=()=>({$implicit:"outdoorDescription"}),gC=()=>({$implicit:"specialEventType"}),_1=()=>({$implicit:"informationOrder"}),f1=()=>({$implicit:"partnerMember"}),g1=()=>({$implicit:"city"}),Mh=()=>({$implicit:"specialLocationType"}),gx=()=>({$implicit:"testimonial"}),Qf=()=>({$implicit:"numberRooms"}),h1=()=>({$implicit:"numberSingleRooms"}),hx=()=>({$implicit:"numberDoubleRooms"}),$v=()=>({$implicit:"numberSharedRooms"}),hC=()=>({$implicit:"numberSuiteRooms"}),x1=()=>({$implicit:"numberConferenceRooms"}),qv=()=>({$implicit:"numberGroupRooms"}),v1=()=>({$implicit:"numberAccessibleRooms"}),Xv=()=>({$implicit:"numberPax"}),e0=()=>({$implicit:"numberPersons"}),b1=()=>({$implicit:"numberPersonsRestaurant"}),xx=()=>({$implicit:"areaExhibition"}),C1=()=>({$implicit:"areaWellness"}),Kg=()=>({$implicit:"areaLargest"}),$g=()=>({$implicit:"numberParkspaceOverall"}),y1=()=>({$implicit:"numberParkspaceOutdoor"}),t0=()=>({$implicit:"numberParkspaceGarage"});let n0=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(F,re,ze){super(F,re),this.entitiesMgr=F,this.dialog=re,this.toolsDataAccessService=ze,this.eventTypesAvailable=(0,wn.of)(!1),this.locationTypesAvailable=(0,wn.of)(!1),this.generalEndowmentAvailable=(0,wn.of)(!1),this.endowmentAvailable=(0,wn.of)(!1),this.sportEndowmentAvailable=(0,wn.of)(!1),this.roomEndowmentAvailable=(0,wn.of)(!1),this.locationAttributesAvailable=(0,wn.of)(!1),this.modulePath="metainfos:modules_convention_hotel",this.logger=(0,R.getLogger)("ConventionHotelAddressbaseFormPanelComponent",ot.H.name),this.classificationRadioButtons=[{value:-1,label:"imxtools.metainfo.modules_convention_center.hotels.none"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"}]}ngOnInit(){this.eventTypesAvailable=this.baseEntityAvailable("CnvHotelEventType"),this.locationTypesAvailable=this.baseEntityAvailable("ConventionLocationType"),this.generalEndowmentAvailable=this.baseEntityAvailable("CnvHotelGeneralEndowment"),this.endowmentAvailable=this.baseEntityAvailable("CnvHotelEndowment"),this.sportEndowmentAvailable=this.baseEntityAvailable("CnvHotelSportEndowment"),this.roomEndowmentAvailable=this.baseEntityAvailable("CnvHotelRoomEndowment"),this.locationAttributesAvailable=this.baseEntityAvailable("ConventionLocationAttribute"),super.ngOnInit(),this.moduleDataFormGroup.get("city").valueChanges.subscribe(F=>{this.toolsDataAccessService.getAddressbaseById(F).subscribe(re=>{const ze=re.metainfos.filter(It=>It.productline.id===gd.x6);ze.length>0?this.moduleDataFormGroup.get("cityAddressbase").setValue(ze[0].data.id):this.logger.warn("addressbase "+re.id+" does not have module "+gd.x6+" assigned as expected")})})}resetCity(){this.moduleDataFormGroup.get("city").setValue(null),this.moduleDataFormGroup.get("cityAddressbase").setValue(null)}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(u.uw),r.Y36(dt.N))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-convention-hotel-addressbase-form-panel"]],features:[r.qOj],decls:63,vars:122,consts:[["title","imxtools.metainfo.modules_convention_hotel.main.header"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],["translate",""],[1,"imx-button","prio2",3,"disabled","click"],["title","imxtools.metainfo.modules_convention_center.rooms.header",4,"ngIf"],["title","imxtools.metainfo.modules_convention_center.infrastructure.header"],[3,"formHandler","modulePath","moduleDataFormGroup"],["title","imxtools.metainfo.modules_convention_center.capacity.header"],[1,"form__content-field-row"],["title","imxtools.metainfo.modules_convention_center.gastronomy.header",4,"ngIf"],["imxControl",""],[1,"form__content-group"],[3,"formGroup",4,"ngIf"],[3,"formGroup"],["formControlName","classification","label","entity.ConventionHotel.classification","mode","inline",3,"radioButtons"],["title","imxtools.metainfo.modules_convention_center.endowments.header"],["title","imxtools.metainfo.modules_convention_center.rooms.header"],["title","imxtools.metainfo.modules_convention_center.gastronomy.header"],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0),r.YNc(2,zg,1,0,"ng-container",1)(3,Ch,1,0,"ng-container",1)(4,dx,1,0,"ng-container",1)(5,Oh,2,3,"ng-container",2),r.ALo(6,"async"),r.YNc(7,eg,1,0,"ng-container",1),r.TgZ(8,"h3",3),r._uU(9,"entity.CnvHotelAddressbase.properties"),r.qZA(),r.YNc(10,te,1,0,"ng-container",1)(11,Pn,1,0,"ng-container",1)(12,E,1,0,"ng-container",1),r.TgZ(13,"button",4),r.NdJ("click",function(){return ze.resetCity()}),r._uU(14),r.ALo(15,"translate"),r.qZA(),r.YNc(16,Ln,2,3,"ng-container",2),r.ALo(17,"async"),r.YNc(18,to,1,0,"ng-container",1)(19,Gl,8,6,"ng-container",2),r.ALo(20,"async"),r.ALo(21,"async"),r.YNc(22,id,1,0,"ng-container",1),r.qZA(),r.YNc(23,kv,10,12,"ng-container",2),r.ALo(24,"async"),r.ALo(25,"async"),r.ALo(26,"async"),r.ALo(27,"async"),r.ALo(28,"async"),r.ALo(29,"async"),r.ALo(30,"async"),r.ALo(31,"async"),r.YNc(32,__,2,3,"imx-accordion-panel",5),r.ALo(33,"async"),r.TgZ(34,"imx-accordion-panel",6),r._UZ(35,"imx-convention-distance-form-panel",7),r.YNc(36,c1,2,3,"ng-container",2),r.ALo(37,"async"),r.qZA(),r.TgZ(38,"imx-accordion-panel",8),r.YNc(39,ux,1,0,"ng-container",1),r.TgZ(40,"div",9),r.YNc(41,d1,1,0,"ng-container",1)(42,Bv,1,0,"ng-container",1)(43,Zv,1,0,"ng-container",1)(44,Hv,1,0,"ng-container",1),r.qZA(),r.TgZ(45,"div",9),r.YNc(46,m1,1,0,"ng-container",1)(47,Gv,1,0,"ng-container",1)(48,Jv,1,0,"ng-container",1)(49,px,1,0,"ng-container",1),r.qZA(),r.YNc(50,Qv,1,0,"ng-container",1)(51,Vv,1,0,"ng-container",1)(52,Yv,1,0,"ng-container",1)(53,Wv,1,0,"ng-container",1)(54,zv,1,0,"ng-container",1),r.TgZ(55,"div",9),r.YNc(56,_f,1,0,"ng-container",1)(57,_x,1,0,"ng-container",1)(58,jv,1,0,"ng-container",1),r.qZA()(),r.YNc(59,Kv,2,3,"imx-accordion-panel",10),r.ALo(60,"async"),r.qZA(),r.YNc(61,u1,1,5,"ng-template",null,11,r.W1O)),2&re){const It=r.MAs(62);r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(96,p1)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(97,Ph)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(98,fx)),r.xp6(),r.Q6J("ngIf",r.lcZ(6,64,ze.eventTypesAvailable)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(99,gC)),r.xp6(3),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(100,_1)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(101,f1)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(102,g1)),r.xp6(),r.Q6J("disabled",null==ze.moduleDataFormGroup.get("city").value),r.xp6(),r.hij("",r.lcZ(15,66,"imxplatform.common.reset")," "),r.xp6(2),r.Q6J("ngIf",r.lcZ(17,68,ze.locationTypesAvailable)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(103,Mh)),r.xp6(),r.Q6J("ngIf",r.lcZ(20,70,ze.formHandler.hasReadPermission("CnvHotelAddressbase:classification"))||r.lcZ(21,72,ze.formHandler.hasReadPermission("CnvHotelAddressbase:classificationSuperior"))),r.xp6(3),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(104,gx)),r.xp6(),r.Q6J("ngIf",r.lcZ(24,74,ze.generalEndowmentAvailable)&&r.lcZ(25,76,ze.formHandler.hasReadPermission("CnvHotelAddressbase:generalEndowments"))||r.lcZ(26,78,ze.endowmentAvailable)&&r.lcZ(27,80,ze.formHandler.hasReadPermission("CnvHotelAddressbase:endowments"))||r.lcZ(28,82,ze.sportEndowmentAvailable)&&r.lcZ(29,84,ze.formHandler.hasReadPermission("CnvHotelAddressbase:sportEndowments"))||r.lcZ(30,86,ze.roomEndowmentAvailable)&&r.lcZ(31,88,ze.formHandler.hasReadPermission("CnvHotelAddressbase:roomEndowments"))),r.xp6(9),r.Q6J("ngIf",r.lcZ(33,90,ze.formHandler.hasReadPermission("CnvHotelAddressbase:rooms"))),r.xp6(3),r.Q6J("formHandler",ze.formHandler)("modulePath",ze.modulePath)("moduleDataFormGroup",ze.moduleDataFormGroup),r.xp6(),r.Q6J("ngIf",r.lcZ(37,92,ze.locationAttributesAvailable)),r.xp6(3),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(105,Qf)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(106,h1)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(107,hx)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(108,$v)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(109,hC)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(110,x1)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(111,qv)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(112,v1)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(113,Xv)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(114,e0)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(115,b1)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(116,xx)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(117,C1)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(118,Kg)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(119,$g)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(120,y1)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(121,t0)),r.xp6(),r.Q6J("ngIf",r.lcZ(60,94,ze.formHandler.hasReadPermission("CnvHotelAddressbase:restaurants")))}},dependencies:[Vn.q,Ft.A,e.O5,e.tP,s.JJ,s.JL,s.sg,s.u,et.Pi,Js.Z,Ms.U,R_,Tf,Vc,e.Ov,et.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__table.infrastructure[_ngcontent-%COMP%] > .mat-mdc-table[_ngcontent-%COMP%] > .mat-mdc-header-row[_ngcontent-%COMP%] > .mat-mdc-header-cell[_ngcontent-%COMP%]:nth-last-child(1), .form__table.infrastructure[_ngcontent-%COMP%] > .mat-mdc-table[_ngcontent-%COMP%] > .mat-mdc-row[_ngcontent-%COMP%] > .mat-mdc-cell[_ngcontent-%COMP%]:nth-last-child(1){flex:0 0 100px}.form__content-field-row[_ngcontent-%COMP%]{align-items:baseline}.imx-button[_ngcontent-%COMP%]{margin-bottom:20px}"],changeDetection:0})}return v})();function o0(v,Ne){1&v&&r.GkF(0)}function r0(v,Ne){1&v&&r.GkF(0)}function xC(v,Ne){1&v&&r.GkF(0)}function vC(v,Ne){1&v&&r.GkF(0)}function Th(v,Ne){1&v&&r.GkF(0)}function a0(v,Ne){1&v&&r.GkF(0)}const s0=()=>({$implicit:"eventTypes"});function bC(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,a0,1,0,"ng-container",1),r.BQk()),2&v){r.oxw();const F=r.MAs(70);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,s0))}}function l0(v,Ne){1&v&&r.GkF(0)}function c0(v,Ne){1&v&&r.GkF(0)}const d0=()=>({$implicit:"topics"});function m0(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,c0,1,0,"ng-container",1),r.BQk()),2&v){r.oxw();const F=r.MAs(70);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,d0))}}function O1(v,Ne){1&v&&r.GkF(0)}const u0=()=>({$implicit:"locationTypes"});function _g(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,O1,1,0,"ng-container",1),r.BQk()),2&v){r.oxw();const F=r.MAs(70);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,u0))}}function vx(v,Ne){1&v&&r.GkF(0)}function bx(v,Ne){1&v&&r.GkF(0)}function ff(v,Ne){1&v&&r.GkF(0)}const P1=()=>({$implicit:"eventlocationEndowments"});function p0(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"imx-accordion-panel",9),r.YNc(2,ff,1,0,"ng-container",1),r.qZA(),r.BQk()),2&v){r.oxw();const F=r.MAs(70);r.xp6(2),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,P1))}}function CC(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"imx-accordion-panel",10),r._UZ(2,"imx-convention-room-form-panel",11),r.qZA(),r.BQk()),2&v){const F=r.oxw();r.xp6(2),r.Q6J("formHandler",F.formHandler)("modulePath",F.modulePath)("moduleDataFormGroup",F.moduleDataFormGroup)}}function pu(v,Ne){1&v&&r.GkF(0)}const _0=()=>({$implicit:"locationAttributes"});function Cx(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"imx-accordion-panel",12),r._UZ(2,"imx-convention-distance-form-panel",11),r.YNc(3,pu,1,0,"ng-container",1),r.qZA(),r.BQk()),2&v){const F=r.oxw(),re=r.MAs(70);r.xp6(2),r.Q6J("formHandler",F.formHandler)("modulePath",F.modulePath)("moduleDataFormGroup",F.moduleDataFormGroup),r.xp6(),r.Q6J("ngTemplateOutlet",re)("ngTemplateOutletContext",r.DdM(5,_0))}}function f0(v,Ne){1&v&&r.GkF(0)}function g0(v,Ne){1&v&&r.GkF(0)}function yx(v,Ne){1&v&&r.GkF(0)}function M1(v,Ne){1&v&&r.GkF(0)}function T1(v,Ne){1&v&&r.GkF(0)}function E1(v,Ne){1&v&&r.GkF(0)}function h0(v,Ne){1&v&&r.GkF(0)}function x0(v,Ne){1&v&&r.GkF(0)}function fg(v,Ne){1&v&&r.GkF(0)}function A1(v,Ne){1&v&&r.GkF(0)}function w1(v,Ne){1&v&&r.GkF(0)}function v0(v,Ne){1&v&&r.GkF(0)}function D1(v,Ne){1&v&&r.GkF(0)}function I1(v,Ne){1&v&&r.GkF(0)}function S1(v,Ne){1&v&&r.GkF(0)}const qg=()=>({$implicit:"gastronomyAttributes"});function b0(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,S1,1,0,"ng-container",1),r.BQk()),2&v){r.oxw();const F=r.MAs(70);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,qg))}}function C0(v,Ne){1&v&&r.GkF(0)}function Ox(v,Ne){1&v&&r.GkF(0)}function y0(v,Ne){1&v&&r.GkF(0)}function Eh(v,Ne){1&v&&r.GkF(0)}function F1(v,Ne){1&v&&r.GkF(0)}function L1(v,Ne){1&v&&r.GkF(0)}function O0(v,Ne){1&v&&r.GkF(0)}function P0(v,Ne){1&v&&r.GkF(0)}function Xg(v,Ne){1&v&&r.GkF(0)}function R1(v,Ne){1&v&&r.GkF(0)}function M0(v,Ne){1&v&&r.GkF(0)}function T0(v,Ne){1&v&&r.GkF(0)}function E0(v,Ne){1&v&&r.GkF(0)}function A0(v,Ne){1&v&&r.GkF(0)}function w0(v,Ne){if(1&v&&r._UZ(0,"imx-convention-restaurant-form-panel",11),2&v){const F=r.oxw(2);r.Q6J("formHandler",F.formHandler)("modulePath",F.modulePath)("moduleDataFormGroup",F.moduleDataFormGroup)}}function D0(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,w0,1,3,"imx-convention-restaurant-form-panel",13),r.BQk()),2&v){const F=r.oxw();r.xp6(),r.Q6J("ngIf",F.formHandler.hasReadPermission("EventlocationAddressbase:restaurants"))}}function I0(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",14),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById("metainfos:modules_convention_location:"+F))("control",re.moduleDataFormGroup.get(F))("form",re.formHandler.formGroup.get("metainfos"))("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}const k1=()=>({$implicit:"forLanguages"}),Px=()=>({$implicit:"roomDescription"}),S0=()=>({$implicit:"outdoorDescription"}),F0=()=>({$implicit:"informationOrder"}),Ah=()=>({$implicit:"partnerMember"}),L0=()=>({$implicit:"specialEventType"}),R0=()=>({$implicit:"specialLocationType"}),k0=()=>({$implicit:"testimonial"}),N0=()=>({$implicit:"areaOverall"}),U0=()=>({$implicit:"areaIndoor"}),Mx=()=>({$implicit:"areaOutdoor"}),B0=()=>({$implicit:"areaExhibition"}),N1=()=>({$implicit:"areaLargest"}),U1=()=>({$implicit:"numberPersonsOverall"}),Z0=()=>({$implicit:"numberPersonsIndoor"}),yC=()=>({$implicit:"numberPersonsOutdoor"}),B1=()=>({$implicit:"numberParkspaceOverall"}),Z1=()=>({$implicit:"numberParkspaceOutdoor"}),Tx=()=>({$implicit:"numberParkspaceGarage"}),H0=()=>({$implicit:"numberConferenceRooms"}),OC=()=>({$implicit:"numberGroupRooms"}),G0=()=>({$implicit:"numberPax"}),J0=()=>({$implicit:"contactName"}),Q0=()=>({$implicit:"salutation"}),PC=()=>({$implicit:"firstname"}),V0=()=>({$implicit:"lastname"}),MC=()=>({$implicit:"addressstreet"}),Y0=()=>({$implicit:"addressstreetNo"}),W0=()=>({$implicit:"addresszipcode"}),z0=()=>({$implicit:"addresscity"}),Ex=()=>({$implicit:"addresscountry"}),Ig=()=>({$implicit:"addressphone1"}),Ax=()=>({$implicit:"addressphone2"}),wh=()=>({$implicit:"addressfax"}),H1=()=>({$implicit:"addressemail"}),eh=()=>({$implicit:"addresshomepage"});let G1=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(F,re){super(F,re),this.entitiesMgr=F,this.dialog=re,this.topicsAvailable=(0,wn.of)(!1),this.eventlocationEndowmentsAvailable=(0,wn.of)(!1),this.eventTypesAvailable=(0,wn.of)(!1),this.locationTypesAvailable=(0,wn.of)(!1),this.locationAttributesAvailable=(0,wn.of)(!1),this.gastronomyAttributesAvailable=(0,wn.of)(!1),this.modulePath="metainfos:modules_convention_location"}ngOnInit(){this.topicsAvailable=this.baseEntityAvailable("EventlocationTopic"),this.eventlocationEndowmentsAvailable=this.baseEntityAvailable("EventlocationEndowment"),this.eventTypesAvailable=this.baseEntityAvailable("EventlocationEventType"),this.locationTypesAvailable=this.baseEntityAvailable("ConventionLocationType"),this.locationAttributesAvailable=this.baseEntityAvailable("ConventionLocationAttribute"),this.gastronomyAttributesAvailable=this.baseEntityAvailable("EventlocationGastronomyAttribute")}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(u.uw))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-convention-location-addressbase-form-panel"]],features:[r.qOj],decls:71,vars:134,consts:[["title","imxtools.metainfo.modules_convention_center.main.header"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["translate",""],[4,"ngIf"],["title","entity.EventlocationAddressbase.capacity.entityName"],[1,"form__content-field-row"],["title","imxtools.metainfo.modules_convention_center.gastronomy.header"],[1,"form__content-group"],["imxControl",""],["title","imxtools.metainfo.modules_convention_center.endowments.header"],["title","imxtools.metainfo.modules_convention_center.rooms.header"],[3,"formHandler","modulePath","moduleDataFormGroup"],["title","imxtools.metainfo.modules_convention_center.infrastructure.header"],[3,"formHandler","modulePath","moduleDataFormGroup",4,"ngIf"],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0),r.YNc(2,o0,1,0,"ng-container",1)(3,r0,1,0,"ng-container",1)(4,xC,1,0,"ng-container",1),r.TgZ(5,"h3",2),r._uU(6,"entity.EventlocationAddressbase.properties"),r.qZA(),r.YNc(7,vC,1,0,"ng-container",1)(8,Th,1,0,"ng-container",1)(9,bC,2,3,"ng-container",3),r.ALo(10,"async"),r.YNc(11,l0,1,0,"ng-container",1)(12,m0,2,3,"ng-container",3),r.ALo(13,"async"),r.YNc(14,_g,2,3,"ng-container",3),r.ALo(15,"async"),r.YNc(16,vx,1,0,"ng-container",1)(17,bx,1,0,"ng-container",1),r.qZA(),r.YNc(18,p0,3,3,"ng-container",3),r.ALo(19,"async"),r.ALo(20,"async"),r.YNc(21,CC,3,3,"ng-container",3),r.ALo(22,"async"),r.YNc(23,Cx,4,6,"ng-container",3),r.ALo(24,"async"),r.TgZ(25,"imx-accordion-panel",4)(26,"div",5),r.YNc(27,f0,1,0,"ng-container",1)(28,g0,1,0,"ng-container",1)(29,yx,1,0,"ng-container",1)(30,M1,1,0,"ng-container",1),r.qZA(),r.TgZ(31,"div",5),r.YNc(32,T1,1,0,"ng-container",1),r.qZA(),r.TgZ(33,"div",5),r.YNc(34,E1,1,0,"ng-container",1)(35,h0,1,0,"ng-container",1)(36,x0,1,0,"ng-container",1),r.qZA(),r.TgZ(37,"div",5),r.YNc(38,fg,1,0,"ng-container",1)(39,A1,1,0,"ng-container",1)(40,w1,1,0,"ng-container",1),r.qZA(),r.TgZ(41,"div",5),r.YNc(42,v0,1,0,"ng-container",1)(43,D1,1,0,"ng-container",1)(44,I1,1,0,"ng-container",1),r.qZA()(),r.TgZ(45,"imx-accordion-panel",6),r.YNc(46,b0,2,3,"ng-container",3),r.ALo(47,"async"),r.TgZ(48,"h3",2),r._uU(49,"imxtools.metainfo.modules_convention_center.gastronomy.contact"),r.qZA(),r.TgZ(50,"div",7),r.YNc(51,C0,1,0,"ng-container",1)(52,Ox,1,0,"ng-container",1)(53,y0,1,0,"ng-container",1)(54,Eh,1,0,"ng-container",1),r.TgZ(55,"div",5),r.YNc(56,F1,1,0,"ng-container",1)(57,L1,1,0,"ng-container",1),r.qZA(),r.TgZ(58,"div",5),r.YNc(59,O0,1,0,"ng-container",1)(60,P0,1,0,"ng-container",1),r.qZA(),r.YNc(61,Xg,1,0,"ng-container",1)(62,R1,1,0,"ng-container",1)(63,M0,1,0,"ng-container",1)(64,T0,1,0,"ng-container",1)(65,E0,1,0,"ng-container",1)(66,A0,1,0,"ng-container",1),r.qZA(),r.YNc(67,D0,2,1,"ng-container",3),r.ALo(68,"async"),r.qZA()(),r.YNc(69,I0,1,5,"ng-template",null,8,r.W1O)),2&re){const It=r.MAs(70);r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(98,k1)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(99,Px)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(100,S0)),r.xp6(3),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(101,F0)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(102,Ah)),r.xp6(),r.Q6J("ngIf",r.lcZ(10,80,ze.eventTypesAvailable)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(103,L0)),r.xp6(),r.Q6J("ngIf",r.lcZ(13,82,ze.topicsAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(15,84,ze.locationTypesAvailable)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(104,R0)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(105,k0)),r.xp6(),r.Q6J("ngIf",r.lcZ(19,86,ze.eventlocationEndowmentsAvailable)&&r.lcZ(20,88,ze.formHandler.hasReadPermission("EventlocationAddressbase:eventlocationEndowments"))),r.xp6(3),r.Q6J("ngIf",r.lcZ(22,90,ze.formHandler.hasReadPermission("EventlocationAddressbase:rooms"))),r.xp6(2),r.Q6J("ngIf",r.lcZ(24,92,ze.formHandler.hasReadPermission("EventlocationAddressbase:distances"))),r.xp6(4),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(106,N0)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(107,U0)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(108,Mx)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(109,B0)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(110,N1)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(111,U1)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(112,Z0)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(113,yC)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(114,B1)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(115,Z1)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(116,Tx)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(117,H0)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(118,OC)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(119,G0)),r.xp6(2),r.Q6J("ngIf",r.lcZ(47,94,ze.gastronomyAttributesAvailable)),r.xp6(5),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(120,J0)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(121,Q0)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(122,PC)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(123,V0)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(124,MC)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(125,Y0)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(126,W0)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(127,z0)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(128,Ex)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(129,Ig)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(130,Ax)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(131,wh)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(132,H1)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(133,eh)),r.xp6(),r.Q6J("ngIf",r.lcZ(68,96,ze.formHandler.hasReadPermission("EventlocationAddressbase:restaurants")))}},dependencies:[Ft.A,e.O5,e.tP,et.Pi,Js.Z,Ms.U,R_,Tf,Vc,e.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}"],changeDetection:0})}return v})();function j0(v,Ne){1&v&&r.GkF(0)}function th(v,Ne){1&v&&r.GkF(0)}function J1(v,Ne){1&v&&r.GkF(0)}function K0(v,Ne){1&v&&r.GkF(0)}function Q1(v,Ne){1&v&&r.GkF(0)}function Dh(v,Ne){1&v&&r.GkF(0)}function $0(v,Ne){1&v&&r.GkF(0)}function q0(v,Ne){1&v&&r.GkF(0)}function X0(v,Ne){1&v&&r.GkF(0)}function eb(v,Ne){1&v&&r.GkF(0)}function tb(v,Ne){1&v&&r.GkF(0)}function wx(v,Ne){1&v&&r.GkF(0)}function nh(v,Ne){1&v&&r.GkF(0)}function tg(v,Ne){1&v&&r.GkF(0)}function Ih(v,Ne){1&v&&r.GkF(0)}function TC(v,Ne){1&v&&r.GkF(0)}const nb=()=>({$implicit:"guestGroups"});function Dx(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,TC,1,0,"ng-container",2),r.BQk()),2&v){r.oxw();const F=r.MAs(71);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,nb))}}function Ix(v,Ne){1&v&&r.GkF(0)}function ib(v,Ne){1&v&&r.GkF(0)}const V1=()=>({$implicit:"ambience"});function ob(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,ib,1,0,"ng-container",2),r.BQk()),2&v){r.oxw();const F=r.MAs(71);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,V1))}}function rb(v,Ne){1&v&&(r.TgZ(0,"h3",1),r._uU(1,"entity.Gastro2Endowment.entityName"),r.qZA())}function Y1(v,Ne){1&v&&r.GkF(0)}function ab(v,Ne){1&v&&r.GkF(0)}function sb(v,Ne){1&v&&r.GkF(0)}function gg(v,Ne){1&v&&r.GkF(0)}const ih=()=>({$implicit:"endowments"});function $_(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,gg,1,0,"ng-container",2),r.BQk()),2&v){r.oxw();const F=r.MAs(71);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,ih))}}function hg(v,Ne){1&v&&r.GkF(0)}const oh=()=>({$implicit:"businessTypes"});function Sx(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,hg,1,0,"ng-container",2),r.BQk()),2&v){r.oxw();const F=r.MAs(71);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,oh))}}function Sh(v,Ne){1&v&&r.GkF(0)}const W1=()=>({$implicit:"operationalFeatures"});function lb(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,Sh,1,0,"ng-container",2),r.BQk()),2&v){r.oxw();const F=r.MAs(71);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,W1))}}function z1(v,Ne){1&v&&r.GkF(0)}const j1=()=>({$implicit:"paymentOptions"});function Fx(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,z1,1,0,"ng-container",2),r.BQk()),2&v){r.oxw();const F=r.MAs(71);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,j1))}}function K1(v,Ne){1&v&&r.GkF(0)}const cb=()=>({$implicit:"cuisineTypes"});function $1(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,K1,1,0,"ng-container",2),r.BQk()),2&v){r.oxw();const F=r.MAs(71);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,cb))}}function Lx(v,Ne){1&v&&r.GkF(0)}const q1=()=>({$implicit:"cookingStyle"});function X1(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,Lx,1,0,"ng-container",2),r.BQk()),2&v){r.oxw();const F=r.MAs(71);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,q1))}}function db(v,Ne){1&v&&r.GkF(0)}const mb=()=>({$implicit:"cuisineCharacteristics"});function Rx(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,db,1,0,"ng-container",2),r.BQk()),2&v){r.oxw();const F=r.MAs(71);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,mb))}}function gf(v,Ne){1&v&&(r.TgZ(0,"h3",1),r._uU(1,"imxtools.metainfo.modules_gastro2.awards "),r.qZA())}function rh(v,Ne){1&v&&r.GkF(0)}function Fu(v,Ne){1&v&&r.GkF(0)}function xg(v,Ne){1&v&&r.GkF(0)}const ah=()=>({$implicit:"products"});function A_(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,xg,1,0,"ng-container",2),r.BQk()),2&v){r.oxw();const F=r.MAs(71);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,ah))}}function ub(v,Ne){1&v&&r.GkF(0)}const Sg=()=>({$implicit:"organizations"});function ev(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,ub,1,0,"ng-container",2),r.BQk()),2&v){r.oxw();const F=r.MAs(71);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,Sg))}}function tv(v,Ne){1&v&&r.GkF(0)}const pb=()=>({$implicit:"eventSeries"});function _b(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,tv,1,0,"ng-container",2),r.BQk()),2&v){r.oxw();const F=r.MAs(71);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,pb))}}function _u(v,Ne){if(1&v&&(r.TgZ(0,"imx-accordion-panel",8),r._UZ(1,"imx-edit-extended-attributes",9),r.qZA()),2&v){const F=r.oxw();r.xp6(),r.Q6J("formHandler",F.formHandler)("formGroup",F.moduleDataFormGroup)("fieldPrefix","metainfos:modules_gastro2")("extendedAttributes",F.extendedAttributes)}}function nv(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",10),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById("metainfos:modules_gastro2:"+F))("control",re.moduleDataFormGroup.get(F))("form",re.formHandler.formGroup.get("metainfos"))("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}const EC=()=>({$implicit:"openingHours"}),Lu=()=>({$implicit:"emailReservationRequests"}),sh=()=>({$implicit:"menuUrl"}),Fg=()=>({$implicit:"reservationUrl"}),Fh=()=>({$implicit:"transport"}),lh=()=>({$implicit:"priceAverage"}),ch=()=>({$implicit:"priceAppetizerMin"}),iv=()=>({$implicit:"priceAppetizerMax"}),kx=()=>({$implicit:"priceMainCourseMin"}),Nx=()=>({$implicit:"priceMainCourseMax"}),Lh=()=>({$implicit:"priceDessertMin"}),Ux=()=>({$implicit:"priceDessertMax"}),Rh=()=>({$implicit:"priceMenuMin"}),kh=()=>({$implicit:"priceMenuMax"}),vg=()=>({$implicit:"priceSegment"}),fb=()=>({$implicit:"serviceTypes"}),w_=()=>({$implicit:"seatsIndoor"}),ov=()=>({$implicit:"seatsOutdoor"}),gb=()=>({$implicit:"seatsInformation"}),Bx=()=>({$implicit:"awards"}),rv=()=>({$implicit:"starClassification"});let Zx=(()=>{class v extends R.AbstractExtendedAttributeAwareFormPanelComponent{constructor(F,re){super(F,re),this.entitiesMgr=F,this.dialog=re,this.ambienceAvailable=(0,wn.of)(!1),this.businessTypesAvailable=(0,wn.of)(!1),this.cookingStyleAvailable=(0,wn.of)(!1),this.cuisineCharacteristicsAvailable=(0,wn.of)(!1),this.cuisineTypesAvailable=(0,wn.of)(!1),this.endowmentsAvailable=(0,wn.of)(!1),this.eventSeriesAvailable=(0,wn.of)(!1),this.operationalFeaturesAvailable=(0,wn.of)(!1),this.organizationsAvailable=(0,wn.of)(!1),this.paymentOptionsAvailable=(0,wn.of)(!1),this.productsAvailable=(0,wn.of)(!1),this.guestGroupsAvailable=(0,wn.of)(!1)}ngOnInit(){super.ngOnInit(),this.ambienceAvailable=this.baseEntityAvailable("Gastro2Ambience"),this.businessTypesAvailable=this.baseEntityAvailable("Gastro2BusinessType"),this.cookingStyleAvailable=this.baseEntityAvailable("Gastro2CookingStyle"),this.cuisineCharacteristicsAvailable=this.baseEntityAvailable("Gastro2CuisineCharacteristic"),this.cuisineTypesAvailable=this.baseEntityAvailable("Gastro2CuisineType"),this.endowmentsAvailable=this.baseEntityAvailable("Gastro2Endowment"),this.eventSeriesAvailable=this.baseEntityAvailable("Gastro2EventSerie"),this.operationalFeaturesAvailable=this.baseEntityAvailable("Gastro2OperationalFeature"),this.organizationsAvailable=this.baseEntityAvailable("Gastro2Organization"),this.paymentOptionsAvailable=this.baseEntityAvailable("Gastro2PaymentOption"),this.productsAvailable=this.baseEntityAvailable("Gastro2Product"),this.guestGroupsAvailable=this.baseEntityAvailable("Gastro2GuestGroup")}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(u.uw))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-gastro2-addressbase-form-panel"]],features:[r.qOj],decls:72,vars:116,consts:[["title","imxtools.metainfo.modules_gastro2.gastronomy"],["translate",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"form__content-field-row"],[4,"ngIf"],["translate","",4,"ngIf"],["title","imxtools.metainfo.modules_acc.attributes",4,"ngIf"],["imxControl",""],["title","imxtools.metainfo.modules_acc.attributes"],[3,"formHandler","formGroup","fieldPrefix","extendedAttributes"],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0)(2,"h3",1),r._uU(3,"imxtools.metainfo.modules_gastro2.main"),r.qZA(),r.YNc(4,j0,1,0,"ng-container",2)(5,th,1,0,"ng-container",2),r.TgZ(6,"div",3),r.YNc(7,J1,1,0,"ng-container",2),r.qZA(),r.TgZ(8,"div",3),r.YNc(9,K0,1,0,"ng-container",2),r.qZA(),r.YNc(10,Q1,1,0,"ng-container",2)(11,Dh,1,0,"ng-container",2),r.TgZ(12,"div",3),r.YNc(13,$0,1,0,"ng-container",2)(14,q0,1,0,"ng-container",2),r.qZA(),r.TgZ(15,"div",3),r.YNc(16,X0,1,0,"ng-container",2)(17,eb,1,0,"ng-container",2),r.qZA(),r.TgZ(18,"div",3),r.YNc(19,tb,1,0,"ng-container",2)(20,wx,1,0,"ng-container",2),r.qZA(),r.TgZ(21,"div",3),r.YNc(22,nh,1,0,"ng-container",2)(23,tg,1,0,"ng-container",2),r.qZA(),r.TgZ(24,"div",3),r.YNc(25,Ih,1,0,"ng-container",2),r.qZA(),r.TgZ(26,"div",3),r.YNc(27,Dx,2,3,"ng-container",4),r.ALo(28,"async"),r.YNc(29,Ix,1,0,"ng-container",2),r.qZA(),r.YNc(30,ob,2,3,"ng-container",4),r.ALo(31,"async"),r.YNc(32,rb,2,0,"h3",5),r.ALo(33,"async"),r.ALo(34,"async"),r.ALo(35,"async"),r.TgZ(36,"div",3),r.YNc(37,Y1,1,0,"ng-container",2)(38,ab,1,0,"ng-container",2),r.qZA(),r.TgZ(39,"div",3),r.YNc(40,sb,1,0,"ng-container",2),r.qZA(),r.YNc(41,$_,2,3,"ng-container",4),r.ALo(42,"async"),r.YNc(43,Sx,2,3,"ng-container",4),r.ALo(44,"async"),r.YNc(45,lb,2,3,"ng-container",4),r.ALo(46,"async"),r.YNc(47,Fx,2,3,"ng-container",4),r.ALo(48,"async"),r.YNc(49,$1,2,3,"ng-container",4),r.ALo(50,"async"),r.YNc(51,X1,2,3,"ng-container",4),r.ALo(52,"async"),r.YNc(53,Rx,2,3,"ng-container",4),r.ALo(54,"async"),r.YNc(55,gf,2,0,"h3",5),r.ALo(56,"async"),r.ALo(57,"async"),r.TgZ(58,"div",3),r.YNc(59,rh,1,0,"ng-container",2)(60,Fu,1,0,"ng-container",2),r.qZA(),r.YNc(61,A_,2,3,"ng-container",4),r.ALo(62,"async"),r.YNc(63,ev,2,3,"ng-container",4),r.ALo(64,"async"),r.YNc(65,_b,2,3,"ng-container",4),r.ALo(66,"async"),r.qZA(),r.YNc(67,_u,2,4,"imx-accordion-panel",6),r.ALo(68,"async"),r.ALo(69,"async"),r.qZA(),r.YNc(70,nv,1,5,"ng-template",null,7,r.W1O)),2&re){const It=r.MAs(71);r.xp6(4),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(95,EC)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(96,Lu)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(97,sh)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(98,Fg)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(99,Fh)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(100,lh)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(101,ch)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(102,iv)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(103,kx)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(104,Nx)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(105,Lh)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(106,Ux)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(107,Rh)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(108,kh)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(109,vg)),r.xp6(2),r.Q6J("ngIf",r.lcZ(28,57,ze.guestGroupsAvailable)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(110,fb)),r.xp6(),r.Q6J("ngIf",r.lcZ(31,59,ze.ambienceAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(33,61,ze.formHandler.hasReadPermission("Gastro2Addressbase:seatsIndoor"))||r.lcZ(34,63,ze.formHandler.hasReadPermission("Gastro2Addressbase:seatsOutdoor"))||r.lcZ(35,65,ze.formHandler.hasReadPermission("Gastro2Addressbase:seatsInformation"))),r.xp6(5),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(111,w_)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(112,ov)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(113,gb)),r.xp6(),r.Q6J("ngIf",r.lcZ(42,67,ze.endowmentsAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(44,69,ze.businessTypesAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(46,71,ze.operationalFeaturesAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(48,73,ze.paymentOptionsAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(50,75,ze.cuisineTypesAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(52,77,ze.cookingStyleAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(54,79,ze.cuisineCharacteristicsAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(56,81,ze.formHandler.hasReadPermission("Gastro2Addressbase:awards"))||r.lcZ(57,83,ze.formHandler.hasReadPermission("Gastro2Addressbase:starClassification"))),r.xp6(4),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(114,Bx)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(115,rv)),r.xp6(),r.Q6J("ngIf",r.lcZ(62,85,ze.productsAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(64,87,ze.organizationsAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(66,89,ze.eventSeriesAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(68,91,ze.extendedAttributesAvailable)&&r.lcZ(69,93,ze.formHandler.hasReadPermission("Gastro2Addressbase:attributeDefinitions")))}},dependencies:[gr.E,Ft.A,e.O5,e.tP,s.JL,s.sg,et.Pi,Js.Z,Ms.U,e.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}"],changeDetection:0})}return v})();function hb(v,Ne){1&v&&r.GkF(0)}function xb(v,Ne){1&v&&r.GkF(0)}function vb(v,Ne){1&v&&r.GkF(0)}const hf=()=>({$implicit:"attributes"});function Lg(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"h3",1),r._uU(2,"entity.GastronomyAddressbase.attributes"),r.qZA(),r.TgZ(3,"div",2)(4,"div",3)(5,"div",2),r.YNc(6,vb,1,0,"ng-container",4),r.qZA()()(),r.BQk()),2&v){r.oxw();const F=r.MAs(16);r.xp6(6),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,hf))}}function Hx(v,Ne){1&v&&r.GkF(0)}function ng(v,Ne){1&v&&r.GkF(0)}function Nh(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",7),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById("metainfos:modules_gastronomy:"+F))("control",re.moduleDataFormGroup.get(F))("form",re.formHandler.formGroup.get("metainfos"))("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}const Gx=()=>({$implicit:"fromPrice"}),Rg=()=>({$implicit:"toPrice"}),Jx=()=>({$implicit:"menuAvailable"}),Qx=()=>({$implicit:"breakfastDescription"});let av=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(F,re){super(F,re),this.entitiesMgr=F,this.dialog=re,this.attributesAvailable=(0,wn.of)(!1),this.businessTypesAvailable=(0,wn.of)(!1)}ngOnInit(){this.attributesAvailable=this.baseEntityAvailable("GastronomyAttribute"),this.businessTypesAvailable=this.baseEntityAvailable("GastronomyBusinessType")}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(u.uw))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-gastronomy-addressbase-form-panel"]],features:[r.qOj],decls:17,vars:15,consts:[["title","imxtools.metainfo.modules_gastronomy.gastronomy"],["translate",""],[1,"form__content-row"],[1,"form__content-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],["imxControl",""],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0)(2,"h3",1),r._uU(3,"entity.GastronomyAddressbase.prices.entityName"),r.qZA(),r.TgZ(4,"div",2)(5,"div",3)(6,"div",2),r.YNc(7,hb,1,0,"ng-container",4)(8,xb,1,0,"ng-container",4),r.qZA()()(),r.YNc(9,Lg,7,3,"ng-container",5),r.ALo(10,"async"),r.TgZ(11,"div",2)(12,"div",3),r.YNc(13,Hx,1,0,"ng-container",4),r.qZA()(),r.YNc(14,ng,1,0,"ng-container",4),r.qZA()(),r.YNc(15,Nh,1,5,"ng-template",null,6,r.W1O)),2&re){const It=r.MAs(16);r.xp6(7),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(11,Gx)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(12,Rg)),r.xp6(),r.Q6J("ngIf",r.lcZ(10,9,ze.attributesAvailable)),r.xp6(4),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(13,Jx)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(14,Qx))}},dependencies:[Ft.A,e.O5,e.tP,et.Pi,Js.Z,Ms.U,e.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__content-row[_ngcontent-%COMP%] > .imx-form-control[_ngcontent-%COMP%]:not(:last-child){margin-right:10px}"],changeDetection:0})}return v})();function sv(v,Ne){1&v&&r.GkF(0)}function Vx(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",6),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById("metainfos:modules_gastronomy_restaurant:"+F))("control",re.moduleDataFormGroup.get(F))("form",re.formHandler.formGroup.get("metainfos"))("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}const bb=()=>({$implicit:"cuisineTypes"});let Cb=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(F,re){super(F,re),this.entitiesMgr=F,this.dialog=re}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(u.uw))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-gastronomy-restaurant-addressbase-form-panel"]],features:[r.qOj],decls:9,vars:3,consts:[["title","imxtools.metainfo.modules_gastronomy.gastronomy"],["translate",""],[1,"form__content-row"],[1,"form__content-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["imxControl",""],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0)(2,"h3",1),r._uU(3,"imxtools.metainfo.modules_gastronomy_restaurant.restaurant"),r.qZA(),r.TgZ(4,"div",2)(5,"div",3),r.YNc(6,sv,1,0,"ng-container",4),r.qZA()()()(),r.YNc(7,Vx,1,5,"ng-template",null,5,r.W1O)),2&re){const It=r.MAs(8);r.xp6(6),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(2,bb))}},dependencies:[Ft.A,e.tP,et.Pi,Js.Z,Ms.U],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}"],changeDetection:0})}return v})();function kg(v,Ne){1&v&&r.GkF(0)}function lv(v,Ne){1&v&&r.GkF(0)}function cv(v,Ne){1&v&&r.GkF(0)}function yb(v,Ne){1&v&&r.GkF(0)}function Ob(v,Ne){1&v&&r.GkF(0)}function dv(v,Ne){if(1&v&&(r._UZ(0,"imx-base-input",8),r.ALo(1,"readI18n")),2&v){const F=Ne.model;r.Q6J("label",Ne.label)("disableControl",!0)("ngModel",r.lcZ(1,3,F))}}const mv=v=>({model:v,label:"entity.IbeDeskline3PriceTemplate.externalId"}),uv=v=>({model:v,label:"entity.IbeDeskline3PriceTemplate.name"}),AC=v=>({model:v,label:"entity.IbeDeskline3PriceTemplate.validFrom"}),Pb=v=>({model:v,label:"entity.IbeDeskline3PriceTemplate.isBestPrice"}),Uh=v=>({model:v,label:"entity.IbeDeskline3PriceTemplate.defaultMealCode"});let Bh=(()=>{class v{constructor(F){this.data=F,this.pricePeriodsTable=[],this.basePricesTable=[],this.preparePricePeriodsTable(),this.prepareBasePricesTable()}preparePricePeriodsTable(){this.pricePeriodsTable.push({accessor:"start",sortable:!0,columnTitle:"entity.IbeDeskline3Period.start"},{accessor:"end",sortable:!0,columnTitle:"entity.IbeDeskline3Period.end"})}prepareBasePricesTable(){this.basePricesTable.push({accessor:"price",sortable:!0,columnTitle:"entity.IbeDeskline3BasePrice.price"},{accessor:"occupancyFrom",sortable:!0,columnTitle:"entity.IbeDeskline3BasePrice.occupancyFrom"},{accessor:"occupancyTo",sortable:!0,columnTitle:"entity.IbeDeskline3BasePrice.occupancyTo"},{accessor:"additionalBed",columnTitle:"entity.IbeDeskline3BasePrice.additionalBed"})}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(u.WI))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["ng-component"]],decls:16,vars:30,consts:[[3,"heading","dialogType","submitButtonLabel","cancelButtonLabel"],[1,"dialog-form"],[1,"dialog-form-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"form__readonly_table"],[3,"label"],[3,"columns","data"],["readOnlyInput",""],[3,"label","disableControl","ngModel"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-dialog",0)(1,"div",1)(2,"div",2),r.YNc(3,kg,1,0,"ng-container",3)(4,lv,1,0,"ng-container",3)(5,cv,1,0,"ng-container",3)(6,yb,1,0,"ng-container",3)(7,Ob,1,0,"ng-container",3),r.TgZ(8,"div",4),r._UZ(9,"imx-base-input-label",5)(10,"imx-table",6),r.qZA(),r.TgZ(11,"div",4),r._UZ(12,"imx-base-input-label",5)(13,"imx-table",6),r.qZA()()()(),r.YNc(14,dv,2,5,"ng-template",null,7,r.W1O)),2&re){const It=r.MAs(15);r.Q6J("heading","entity.IbeDeskline3PriceTemplate.entityName")("dialogType","confirm")("submitButtonLabel",void 0)("cancelButtonLabel","imxplatform.dialog.common-close"),r.xp6(3),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.VKq(20,mv,ze.data.priceTemplateRow.externalId)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.VKq(22,uv,ze.data.priceTemplateRow.name)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.VKq(24,AC,ze.data.priceTemplateRow.validFrom)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.VKq(26,Pb,ze.data.priceTemplateRow.isBestPrice)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.VKq(28,Uh,ze.data.priceTemplateRow.defaultMealCode)),r.xp6(2),r.Q6J("label","entity.IbeDeskline3PriceTemplate.periods"),r.xp6(),r.Q6J("columns",ze.pricePeriodsTable)("data",ze.data.priceTemplateRow.periods),r.xp6(2),r.Q6J("label","entity.IbeDeskline3PriceTemplate.basePrices"),r.xp6(),r.Q6J("columns",ze.basePricesTable)("data",ze.data.priceTemplateRow.basePrices)}},dependencies:[Mc.H,sl.u,Wi.a,$d.a,e.tP,s.JJ,s.On,Fa.j],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__readonly_table[_ngcontent-%COMP%]{border:1px solid #e6e9ef;padding:10px 20px;margin-bottom:10px}"]})}return v})();var pv=a(18718);let Yx=(()=>{class v{constructor(){this.urlImagesTable=[],this.destroy$=new nn.xQ}ngOnInit(){this.formHandler.formLanguage.getEditLanguageAsObservable().pipe((0,rn.R)(this.destroy$)).subscribe(F=>{this.prepareUrlImagesTable(F.name)})}onUrlImageClick(F){window.open(F.url,"","width=800,height=600,top=200,left="+(screen.width-window.innerWidth))}prepareUrlImagesTable(F){this.urlImagesTable=[],this.urlImagesTable.push({accessor:"externalId",sortable:!0,columnTitle:"entity.IbeUrlImage.externalId"},{accessor:"i18nName",sortable:!0,columnTitle:"entity.IbeUrlImage.i18nName"},{accessor:"imageType.i18nName",sortable:!0,columnTitle:"entity.IbeUrlImage.imageType"},{accessor:"sortingValue",sortable:!0,columnTitle:"entity.IbeUrlImage.sortingValue"},{accessor:"fromDate",columnTitle:"entity.IbeUrlImage.fromDate"},{accessor:"toDate",columnTitle:"entity.IbeUrlImage.toDate"},{accessor:"annually",columnTitle:"entity.IbeUrlImage.annually"},{accessor:"copyright",columnTitle:"entity.IbeUrlImage.copyright"},{accessor:"license.i18nName",columnTitle:"entity.IbeUrlImage.license"})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(re){return new(re||v)};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-ibe-url-images"]],inputs:{ibeUrlImages:"ibeUrlImages",formHandler:"formHandler",label:"label"},decls:3,vars:5,consts:[[1,"form__readonly_table"],[3,"label"],["maxHeight","330px",3,"columns","data","i18nLanguage","rowSelection","rowClick"]],template:function(re,ze){1&re&&(r.TgZ(0,"div",0),r._UZ(1,"imx-base-input-label",1),r.TgZ(2,"imx-table",2),r.NdJ("rowClick",function(vo){return ze.onUrlImageClick(vo)}),r.qZA()()),2&re&&(r.xp6(),r.Q6J("label",ze.label),r.xp6(),r.Q6J("columns",ze.urlImagesTable)("data",ze.ibeUrlImages)("i18nLanguage",ze.formHandler.formLanguage.getEditLanguage())("rowSelection",!0))},dependencies:[sl.u,$d.a],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__readonly_table[_ngcontent-%COMP%]{border:1px solid #e6e9ef;padding:10px 20px;margin-bottom:10px}"]})}return v})();const Mb=()=>[Vs.G,Mc.H,sl.u,gc.Z,$d.a,e.tP,s.JJ,s.On,Yx,Fa.j,et.X$];function Tb(v,Ne){1&v&&r.GkF(0)}function Eb(v,Ne){1&v&&r.GkF(0)}function N(v,Ne){1&v&&r.GkF(0)}function Lt(v,Ne){1&v&&r.GkF(0)}function M(v,Ne){1&v&&r.GkF(0)}function pe(v,Ne){1&v&&r.GkF(0)}function Ze(v,Ne){1&v&&r.GkF(0)}function xn(v,Ne){1&v&&r.GkF(0)}function Si(v,Ne){1&v&&r.GkF(0)}function Ga(v,Ne){1&v&&r.GkF(0)}function xs(v,Ne){1&v&&r.GkF(0)}function vs(v,Ne){1&v&&r.GkF(0)}function bl(v,Ne){1&v&&r.GkF(0)}function Ll(v,Ne){1&v&&r.GkF(0)}function Tc(v,Ne){1&v&&r.GkF(0)}function xc(v,Ne){1&v&&r.GkF(0)}function fu(v,Ne){1&v&&r.GkF(0)}function Nd(v,Ne){1&v&&r.GkF(0)}function gu(v,Ne){1&v&&r.GkF(0)}function pp(v,Ne){1&v&&r.GkF(0)}function Mp(v,Ne){1&v&&r.GkF(0)}function _p(v,Ne){1&v&&r.GkF(0)}function Ng(v,Ne){1&v&&r.GkF(0)}function Ab(v,Ne){1&v&&r.GkF(0)}function Zh(v,Ne){1&v&&r.GkF(0)}function _v(v,Ne){if(1&v&&(r.TgZ(0,"imx-base-checkbox",11),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v){const re=Ne.label;r.Q6J("ngModel",Ne.model)("disableControl",!0)("small",!0),r.xp6(),r.hij("",r.lcZ(2,4,re)," ")}}function Hh(v,Ne){if(1&v&&(r._UZ(0,"imx-base-input",12),r.ALo(1,"readI18n")),2&v){const F=Ne.model;r.Q6J("label",Ne.label)("disableControl",!0)("ngModel",r.lcZ(1,3,F))}}function Gh(v,Ne){if(1&v&&r._UZ(0,"imx-base-read-only-i18n-input",13),2&v){const F=Ne.model,re=Ne.label,ze=r.oxw(2);r.Q6J("label",re)("ngModel",F)("i18nLanguage",ze.formHandler.formLanguage.getEditLanguageAsObservable())}}function dh(v,Ne){if(1&v&&r._UZ(0,"imx-base-read-only-i18n-input",14),2&v){const F=Ne.model,re=Ne.label,ze=r.oxw(2);r.Q6J("label",re)("ngModel",F)("textArea",!0)("i18nLanguage",ze.formHandler.formLanguage.getEditLanguageAsObservable())}}const Jh=v=>({model:v,label:"entity.IbeDeskline3Service.bookable"}),Qh=v=>({model:v,label:"entity.IbeDeskline3Service.onDemand"}),Vh=v=>({model:v,label:"entity.IbeDeskline3Service.externalId"}),Yh=v=>({model:v,label:"entity.IbeDeskline3Service.serviceType"}),Wh=v=>({model:v,label:"entity.IbeDeskline3Service.productType"}),zh=v=>({model:v,label:"entity.IbeDeskline3Service.sortingValue"}),wC=v=>({model:v,label:"entity.IbeDeskline3Service.i18nName"}),DC=v=>({model:v,label:"entity.IbeDeskline3Service.shortDescription"}),IC=v=>({model:v,label:"entity.IbeDeskline3Service.longDescription"}),SC=v=>({model:v,label:"entity.IbeDeskline3Service.serviceClassification"}),wb=v=>({model:v,label:"entity.IbeDeskline3Service.serviceClassificationName"}),LC=v=>({model:v,label:"entity.IbeDeskline3Service.priceInclVT"}),RC=v=>({model:v,label:"entity.IbeDeskline3Service.priceFromTo"}),kC=v=>({model:v,label:"entity.IbeDeskline3Service.priceRule"}),fv=v=>({model:v,label:"entity.IbeDeskline3Service.priceNights"}),Ug=v=>({model:v,label:"entity.IbeDeskline3Service.priceStandardMealCode"}),OO=v=>({model:v,label:"entity.IbeDeskline3Service.rooms"}),PO=v=>({model:v,label:"entity.IbeDeskline3Service.bedrooms"}),Db=v=>({model:v,label:"entity.IbeDeskline3Service.size"}),Bg=v=>({model:v,label:"entity.IbeDeskline3Occupancy.standard"}),gv=v=>({model:v,label:"entity.IbeDeskline3Occupancy.min"}),NC=v=>({model:v,label:"entity.IbeDeskline3Occupancy.max"});function Ib(v,Ne){if(1&v){const F=r.EpF();r.YNc(0,Tb,1,0,"ng-container",0)(1,Eb,1,0,"ng-container",0),r.TgZ(2,"div",1),r.YNc(3,N,1,0,"ng-container",0)(4,Lt,1,0,"ng-container",0)(5,M,1,0,"ng-container",0)(6,pe,1,0,"ng-container",0),r.qZA(),r.YNc(7,Ze,1,0,"ng-container",0)(8,xn,1,0,"ng-container",0)(9,Si,1,0,"ng-container",0),r.TgZ(10,"div",1),r.YNc(11,Ga,1,0,"ng-container",0)(12,xs,1,0,"ng-container",0),r.qZA(),r.TgZ(13,"div",1),r.YNc(14,vs,1,0,"ng-container",0)(15,bl,1,0,"ng-container",0)(16,Ll,1,0,"ng-container",0)(17,Tc,1,0,"ng-container",0)(18,xc,1,0,"ng-container",0),r.qZA(),r.TgZ(19,"div",1),r.YNc(20,fu,1,0,"ng-container",0)(21,Nd,1,0,"ng-container",0)(22,gu,1,0,"ng-container",0),r.qZA(),r._UZ(23,"imx-base-input-label",2),r.TgZ(24,"div",1),r.YNc(25,pp,1,0,"ng-container",0)(26,Mp,1,0,"ng-container",0)(27,_p,1,0,"ng-container",0),r.qZA(),r._UZ(28,"imx-base-input-label",2),r.TgZ(29,"div",1),r.YNc(30,Ng,1,0,"ng-container",0)(31,Ab,1,0,"ng-container",0)(32,Zh,1,0,"ng-container",0),r.qZA(),r._UZ(33,"imx-ibe-url-images",3),r.TgZ(34,"div",4),r._UZ(35,"imx-base-input-label",2)(36,"imx-table",5),r.qZA(),r.TgZ(37,"div",4),r._UZ(38,"imx-base-input-label",2),r.TgZ(39,"imx-table",6),r.NdJ("rowClick",function(ze){r.CHM(F);const It=r.oxw();return r.KtG(It.onPriceTemplateClick(ze))}),r.qZA()(),r.YNc(40,_v,3,6,"ng-template",null,7,r.W1O)(42,Hh,2,5,"ng-template",null,8,r.W1O)(44,Gh,1,3,"ng-template",null,9,r.W1O)(46,dh,1,4,"ng-template",null,10,r.W1O)}if(2&v){const F=r.MAs(41),re=r.MAs(43),ze=r.MAs(45),It=r.MAs(47),vo=r.oxw();r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.VKq(63,Jh,vo.service.bookable)),r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.VKq(65,Qh,vo.service.onDemand)),r.xp6(2),r.Q6J("ngTemplateOutlet",re)("ngTemplateOutletContext",r.VKq(67,Vh,vo.service.externalId)),r.xp6(),r.Q6J("ngTemplateOutlet",ze)("ngTemplateOutletContext",r.VKq(69,Yh,vo.service.serviceType.i18nName)),r.xp6(),r.Q6J("ngTemplateOutlet",re)("ngTemplateOutletContext",r.VKq(71,Wh,vo.service.productType)),r.xp6(),r.Q6J("ngTemplateOutlet",re)("ngTemplateOutletContext",r.VKq(73,zh,vo.service.sortingValue)),r.xp6(),r.Q6J("ngTemplateOutlet",ze)("ngTemplateOutletContext",r.VKq(75,wC,vo.service.i18nName)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.VKq(77,DC,vo.service.shortDescription)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.VKq(79,IC,vo.service.longDescription)),r.xp6(2),r.Q6J("ngTemplateOutlet",re)("ngTemplateOutletContext",r.VKq(81,SC,vo.service.serviceClassification)),r.xp6(),r.Q6J("ngTemplateOutlet",re)("ngTemplateOutletContext",r.VKq(83,wb,vo.service.serviceClassificationName)),r.xp6(2),r.Q6J("ngTemplateOutlet",re)("ngTemplateOutletContext",r.VKq(85,LC,vo.service.priceInclVT)),r.xp6(),r.Q6J("ngTemplateOutlet",re)("ngTemplateOutletContext",r.VKq(87,RC,vo.service.priceFromTo)),r.xp6(),r.Q6J("ngTemplateOutlet",re)("ngTemplateOutletContext",r.VKq(89,kC,vo.service.priceRule)),r.xp6(),r.Q6J("ngTemplateOutlet",re)("ngTemplateOutletContext",r.VKq(91,fv,vo.service.priceNights)),r.xp6(),r.Q6J("ngTemplateOutlet",re)("ngTemplateOutletContext",r.VKq(93,Ug,vo.service.priceStandardMealCode)),r.xp6(2),r.Q6J("ngTemplateOutlet",re)("ngTemplateOutletContext",r.VKq(95,OO,vo.service.rooms)),r.xp6(),r.Q6J("ngTemplateOutlet",re)("ngTemplateOutletContext",r.VKq(97,PO,vo.service.bedrooms)),r.xp6(),r.Q6J("ngTemplateOutlet",re)("ngTemplateOutletContext",r.VKq(99,Db,vo.service.size)),r.xp6(),r.Q6J("label","entity.IbeDeskline3Service.occupancyAdults"),r.xp6(2),r.Q6J("ngTemplateOutlet",re)("ngTemplateOutletContext",r.VKq(101,Bg,vo.service.occupancyAdults.standard)),r.xp6(),r.Q6J("ngTemplateOutlet",re)("ngTemplateOutletContext",r.VKq(103,gv,vo.service.occupancyAdults.min)),r.xp6(),r.Q6J("ngTemplateOutlet",re)("ngTemplateOutletContext",r.VKq(105,NC,vo.service.occupancyAdults.max)),r.xp6(),r.Q6J("label","entity.IbeDeskline3Service.occupancyBeds"),r.xp6(2),r.Q6J("ngTemplateOutlet",re)("ngTemplateOutletContext",r.VKq(107,Bg,vo.service.occupancyBeds.standard)),r.xp6(),r.Q6J("ngTemplateOutlet",re)("ngTemplateOutletContext",r.VKq(109,gv,vo.service.occupancyBeds.min)),r.xp6(),r.Q6J("ngTemplateOutlet",re)("ngTemplateOutletContext",r.VKq(111,NC,vo.service.occupancyBeds.max)),r.xp6(),r.Q6J("ibeUrlImages",vo.service.urlImages)("formHandler",vo.formHandler)("label","entity.IbeDeskline3Service.urlImages"),r.xp6(2),r.Q6J("label","entity.IbeDeskline3Service.facilities"),r.xp6(),r.Q6J("columns",vo.facilitiesTable)("data",vo.service.facilities)("i18nLanguage",vo.formHandler.formLanguage.getEditLanguage()),r.xp6(2),r.Q6J("label","entity.IbeDeskline3Service.priceTemplates"),r.xp6(),r.Q6J("columns",vo.priceTemplatesTable)("data",vo.service.priceTemplates)("rowSelection",!0)}}function UC(v,Ne){1&v&&r._UZ(0,"imx-loading-detail")}let QM=(()=>{class v{constructor(F){this.dialog=F,this.facilitiesTable=[],this.priceTemplatesTable=[]}ngOnInit(){this.prepareFacilitiesTable(),this.preparePriceTemplatesTable()}onPriceTemplateClick(F){return this.dialog.open(Bh,{...R.DialogDefaultSizes.FORM_BIG,data:{priceTemplateRow:F}})}prepareFacilitiesTable(){this.facilitiesTable=[],this.facilitiesTable.push({accessor:"externalId",sortable:!0,columnTitle:"entity.IbeServiceFacility.externalId",tooltipAccessor:"externalId"},{accessor:"i18nName",sortable:!0,columnTitle:"entity.IbeServiceFacility.i18nName",tooltipAccessor:"i18nName"},{accessor:"value",columnTitle:"entity.IbeServiceFacility.value"},{accessor:"valueType",columnTitle:"entity.IbeServiceFacility.valueType"})}preparePriceTemplatesTable(){this.priceTemplatesTable=[],this.priceTemplatesTable.push({accessor:"externalId",sortable:!0,columnTitle:"entity.IbeDeskline3PriceTemplate.externalId"},{accessor:"name",sortable:!0,columnTitle:"entity.IbeDeskline3PriceTemplate.name"},{accessor:"validFrom",columnTitle:"entity.IbeDeskline3PriceTemplate.validFrom"},{accessor:"isBestPrice",columnTitle:"entity.IbeDeskline3PriceTemplate.isBestPrice"},{accessor:"defaultMealCode",columnTitle:"entity.IbeDeskline3PriceTemplate.defaultMealCode"})}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(u.uw))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-ibe-deskline3-service-panel"]],inputs:{service:"service",formHandler:"formHandler"},decls:4,vars:0,consts:[[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"form__content-field-row"],[3,"label"],[3,"ibeUrlImages","formHandler","label"],[1,"form__readonly_table"],["maxHeight","330px",3,"columns","data","i18nLanguage"],["maxHeight","330px",3,"columns","data","rowSelection","rowClick"],["readOnlyCheckbox",""],["readOnlyInput",""],["readOnlyI18n",""],["readOnlyI18nTextArea",""],[3,"ngModel","disableControl","small"],[3,"label","disableControl","ngModel"],[3,"label","ngModel","i18nLanguage"],[3,"label","ngModel","textArea","i18nLanguage"]],template:function(re,ze){1&re&&(r.YNc(0,Ib,48,113)(1,UC,1,0),r.EqZ(2,0,Mb,null,1),r.BYR(0,-1))},dependencies:[pv.k],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__readonly_table[_ngcontent-%COMP%]{border:1px solid #e6e9ef;padding:10px 20px;margin-bottom:10px}"],changeDetection:0})}return v})();function MO(v,Ne){1&v&&r.GkF(0)}function BC(v,Ne){1&v&&r.GkF(0)}function ZC(v,Ne){1&v&&r.GkF(0)}function HC(v,Ne){1&v&&r.GkF(0)}function fp(v,Ne){1&v&&r.GkF(0)}function Sb(v,Ne){1&v&&r.GkF(0)}function GC(v,Ne){1&v&&r.GkF(0)}function JC(v,Ne){1&v&&r.GkF(0)}function Fb(v,Ne){1&v&&r.GkF(0)}function QC(v,Ne){1&v&&r.GkF(0)}function Lb(v,Ne){1&v&&r.GkF(0)}function VC(v,Ne){1&v&&r.GkF(0)}function jh(v,Ne){1&v&&r.GkF(0)}function TO(v,Ne){1&v&&r.GkF(0)}function EO(v,Ne){1&v&&r.GkF(0)}function YC(v,Ne){1&v&&r.GkF(0)}const AO=v=>({model:v,label:"entity.IbeDeskline3AccAddressbase.active"}),VM=v=>({model:v,label:"entity.IbeDeskline3AccAddressbase.availabilityCalendarEnabled"}),Rb=v=>({model:v,label:"entity.IbeDeskline3AccAddressbase.stars"}),kb=v=>({model:v,label:"entity.IbeDeskline3AccAddressbase.starsName"}),hv=v=>({model:v,label:"entity.IbeDeskline3AccAddressbase.databaseCode"}),Nb=v=>({model:v,label:"entity.IbeDeskline3AccAddressbase.districtId"}),Vf=v=>({model:v,label:"entity.IbeDeskline3AccAddressbase.dataOwner"}),wO=v=>({model:v,label:"entity.IbeDeskline3AccAddressbase.priority"}),zC=v=>({model:v,label:"entity.IbeDeskline3AccAddressbase.conditions"}),ig=v=>({model:v,label:"entity.IbeDeskline3AccAddressbase.arrivalVoucher"}),Yf=v=>({model:v,label:"entity.IbeDeskline3AccAddressbase.deepLink"}),q_=v=>({model:v,label:"entity.IbeDeskline3AccAddressbase.location"}),jC=v=>({model:v,label:"entity.IbeDeskline3CheckInOutTimes.checkInFrom"}),KC=v=>({model:v,label:"entity.IbeDeskline3CheckInOutTimes.checkInTo"}),DO=v=>({model:v,label:"entity.IbeDeskline3CheckInOutTimes.checkOutFrom"}),IO=v=>({model:v,label:"entity.IbeDeskline3CheckInOutTimes.checkOutTo"});function SO(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,MO,1,0,"ng-container",6)(2,BC,1,0,"ng-container",6),r.TgZ(3,"div",7),r.YNc(4,ZC,1,0,"ng-container",6)(5,HC,1,0,"ng-container",6),r.qZA(),r.TgZ(6,"div",7),r.YNc(7,fp,1,0,"ng-container",6)(8,Sb,1,0,"ng-container",6)(9,GC,1,0,"ng-container",6)(10,JC,1,0,"ng-container",6),r.qZA(),r.YNc(11,Fb,1,0,"ng-container",6)(12,QC,1,0,"ng-container",6)(13,Lb,1,0,"ng-container",6)(14,VC,1,0,"ng-container",6),r._UZ(15,"imx-base-input-label",8),r.TgZ(16,"div",7),r.YNc(17,jh,1,0,"ng-container",6)(18,TO,1,0,"ng-container",6)(19,EO,1,0,"ng-container",6)(20,YC,1,0,"ng-container",6),r.qZA(),r.TgZ(21,"div",9),r._UZ(22,"imx-base-input-label",8)(23,"imx-table",10),r.qZA(),r.TgZ(24,"div",9),r._UZ(25,"imx-base-input-label",8)(26,"imx-table",10),r.qZA(),r.TgZ(27,"div",9),r._UZ(28,"imx-base-input-label",8)(29,"imx-table",10),r.qZA(),r.TgZ(30,"div",9),r._UZ(31,"imx-base-input-label",8)(32,"imx-table",10),r.qZA(),r.BQk()),2&v){const F=r.oxw(),re=r.MAs(5),ze=r.MAs(7),It=r.MAs(9);r.xp6(),r.Q6J("ngTemplateOutlet",re)("ngTemplateOutletContext",r.VKq(45,AO,F.data.active)),r.xp6(),r.Q6J("ngTemplateOutlet",re)("ngTemplateOutletContext",r.VKq(47,VM,F.data.availabilityCalendarEnabled)),r.xp6(2),r.Q6J("ngTemplateOutlet",ze)("ngTemplateOutletContext",r.VKq(49,Rb,F.data.stars)),r.xp6(),r.Q6J("ngTemplateOutlet",ze)("ngTemplateOutletContext",r.VKq(51,kb,F.data.starsName)),r.xp6(2),r.Q6J("ngTemplateOutlet",ze)("ngTemplateOutletContext",r.VKq(53,hv,F.data.databaseCode)),r.xp6(),r.Q6J("ngTemplateOutlet",ze)("ngTemplateOutletContext",r.VKq(55,Nb,F.data.districtId)),r.xp6(),r.Q6J("ngTemplateOutlet",ze)("ngTemplateOutletContext",r.VKq(57,Vf,F.data.dataOwner)),r.xp6(),r.Q6J("ngTemplateOutlet",ze)("ngTemplateOutletContext",r.VKq(59,wO,F.data.priority)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.VKq(61,zC,F.data.conditions)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.VKq(63,ig,F.data.arrivalVoucher)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.VKq(65,Yf,F.data.deepLink)),r.xp6(),r.Q6J("ngTemplateOutlet",ze)("ngTemplateOutletContext",r.VKq(67,q_,null==F.data.location?null:F.data.location.i18nName)),r.xp6(),r.Q6J("label","entity.IbeDeskline3AccAddressbase.checkInOutTimes"),r.xp6(2),r.Q6J("ngTemplateOutlet",ze)("ngTemplateOutletContext",r.VKq(69,jC,null==F.data.checkInOutTimes?null:F.data.checkInOutTimes.checkInFrom)),r.xp6(),r.Q6J("ngTemplateOutlet",ze)("ngTemplateOutletContext",r.VKq(71,KC,null==F.data.checkInOutTimes?null:F.data.checkInOutTimes.checkInTo)),r.xp6(),r.Q6J("ngTemplateOutlet",ze)("ngTemplateOutletContext",r.VKq(73,DO,null==F.data.checkInOutTimes?null:F.data.checkInOutTimes.checkOutFrom)),r.xp6(),r.Q6J("ngTemplateOutlet",ze)("ngTemplateOutletContext",r.VKq(75,IO,null==F.data.checkInOutTimes?null:F.data.checkInOutTimes.checkOutTo)),r.xp6(2),r.Q6J("label","entity.IbeDeskline3AccAddressbase.classifications"),r.xp6(),r.Q6J("columns",F.classificationsTable)("data",F.data.classifications),r.xp6(2),r.Q6J("label","entity.IbeDeskline3AccAddressbase.marketingGroups"),r.xp6(),r.Q6J("columns",F.marketingGroupsTable)("data",F.data.marketingGroups),r.xp6(2),r.Q6J("label","entity.IbeDeskline3AccAddressbase.holidayThemes"),r.xp6(),r.Q6J("columns",F.holidayThemesTable)("data",F.data.holidayThemes),r.xp6(2),r.Q6J("label","entity.IbeDeskline3AccAddressbase.generalTermsConditions"),r.xp6(),r.Q6J("columns",F.generalTermsConditionsTable)("data",F.data.generalTermsConditions)}}function FO(v,Ne){if(1&v&&(r.TgZ(0,"imx-accordion-panel",11),r.ALo(1,"readI18n"),r._UZ(2,"imx-ibe-deskline3-service-panel",12),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("titleDescription",r.xi3(1,3,F.i18nName,re.formHandler.formLanguage.getEditLanguage().name)),r.xp6(2),r.Q6J("service",F)("formHandler",re.formHandler)}}function Ub(v,Ne){if(1&v&&(r.TgZ(0,"imx-base-checkbox",13),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v){const re=Ne.label;r.Q6J("ngModel",Ne.model)("disableControl",!0)("small",!0),r.xp6(),r.Oqu(r.lcZ(2,4,re))}}function Wx(v,Ne){if(1&v&&(r._UZ(0,"imx-base-input",14),r.ALo(1,"readI18n")),2&v){const F=Ne.model;r.Q6J("label",Ne.label)("disableControl",!0)("ngModel",r.lcZ(1,3,F))}}function LO(v,Ne){if(1&v&&r._UZ(0,"imx-base-read-only-i18n-input",15),2&v){const F=Ne.model,re=Ne.label,ze=r.oxw();r.Q6J("label",re)("ngModel",F)("i18nLanguage",ze.formHandler.formLanguage.getEditLanguageAsObservable())}}let $C=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(F){super(F),this.entitiesMgr=F,this.classificationsTable=[],this.marketingGroupsTable=[],this.holidayThemesTable=[],this.generalTermsConditionsTable=[],this.prepareClassificationsTable(),this.prepareMarketingGroupsTable(),this.prepareHolidayThemesTable(),this.prepareGeneralTermsConditionsTable()}ngOnInit(){const F=this.moduleDataFormGroup.get("ibeDeskline3AccAddressbase");if(!F)throw new Error("no FormControl configured with id ibeDeskline3AccAddressbase");this.data=F.value}prepareClassificationsTable(){this.classificationsTable.push({accessor:"name",sortable:!0,columnTitle:"entity.IbeDeskline3Classification.name"},{accessor:"externalId",sortable:!0,columnTitle:"entity.IbeDeskline3Classification.externalId"})}prepareMarketingGroupsTable(){this.marketingGroupsTable.push({accessor:"externalId",columnTitle:"entity.IbeDeskline3MarketingGroup.externalId"})}prepareHolidayThemesTable(){this.holidayThemesTable.push({accessor:"externalId",columnTitle:"entity.IbeDeskline3HolidayTheme.externalId"})}prepareGeneralTermsConditionsTable(){this.generalTermsConditionsTable.push({accessor:"i18nName",sortable:!0,columnTitle:"entity.IbeDeskline3GeneralTermsConditions.value",tooltipAccessor:"i18nName"})}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-ibe-deskline3-acc-addressbase-form-panel"]],features:[r.qOj],decls:10,vars:2,consts:[["title","entity.IbeDeskline3AccAddressbase.entityName"],[4,"ngIf"],["title","entity.IbeDeskline3Service.entityName",3,"titleDescription",4,"ngFor","ngForOf"],["readOnlyCheckbox",""],["readOnlyInput",""],["readOnlyI18n",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"form__content-field-row"],[3,"label"],[1,"form__readonly_table"],[3,"columns","data"],["title","entity.IbeDeskline3Service.entityName",3,"titleDescription"],[3,"service","formHandler"],[3,"ngModel","disableControl","small"],[3,"label","disableControl","ngModel"],[3,"label","ngModel","i18nLanguage"]],template:function(re,ze){1&re&&(r.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0),r.YNc(2,SO,33,77,"ng-container",1),r.qZA(),r.YNc(3,FO,3,6,"imx-accordion-panel",2),r.qZA(),r.YNc(4,Ub,3,6,"ng-template",null,3,r.W1O)(6,Wx,2,5,"ng-template",null,4,r.W1O)(8,LO,1,3,"ng-template",null,5,r.W1O)),2&re&&(r.xp6(2),r.Q6J("ngIf",ze.data),r.xp6(),r.Q6J("ngForOf",null==ze.data?null:ze.data.services))},dependencies:[Vs.G,Mc.H,sl.u,gc.Z,$d.a,e.sg,e.O5,e.tP,s.JJ,s.On,Js.Z,Ms.U,QM,Fa.j,et.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__readonly_table[_ngcontent-%COMP%]{border:1px solid #e6e9ef;padding:10px 20px;margin-bottom:10px}"],changeDetection:0})}return v})();function RO(v,Ne){1&v&&(r.TgZ(0,"p",8),r._uU(1,"imxplatform.common.no-records"),r.qZA())}function kO(v,Ne){1&v&&r._UZ(0,"tr",18)}function qC(v,Ne){1&v&&r._UZ(0,"tr",19)}function XC(v,Ne){1&v&&(r.TgZ(0,"th",20),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.IbeDeskline3HolidayTheme.externalId")))}function xv(v,Ne){if(1&v&&(r.TgZ(0,"td",21),r._uU(1),r.qZA()),2&v){const F=Ne.$implicit;r.xp6(),r.hij(" ",F.controls.externalId.value," ")}}function NO(v,Ne){1&v&&(r.TgZ(0,"th",22),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.IbeDeskline3HolidayTheme.i18nName")))}function ey(v,Ne){if(1&v&&(r.TgZ(0,"td",23),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit;r.Q6J("formGroup",F),r.xp6(),r.hij(" ",r.lcZ(2,2,F.controls.i18nName.value)," ")}}function ty(v,Ne){if(1&v&&(r.TgZ(0,"table",9),r.YNc(1,kO,1,0,"tr",10)(2,qC,1,0,"tr",11),r.ynx(3,12),r.YNc(4,XC,3,3,"th",13)(5,xv,2,1,"td",14),r.BQk(),r.ynx(6,15),r.YNc(7,NO,3,3,"th",16)(8,ey,3,4,"td",17),r.BQk(),r.qZA()),2&v){const F=r.oxw();r.Q6J("dataSource",F.holidayThemesDataSource),r.xp6(),r.Q6J("matHeaderRowDef",F.holidayThemesColumns),r.xp6(),r.Q6J("matRowDefColumns",F.holidayThemesColumns)}}function UO(v,Ne){1&v&&r._UZ(0,"tr",18)}function BO(v,Ne){1&v&&r._UZ(0,"tr",19)}function ZO(v,Ne){1&v&&(r.TgZ(0,"th",20),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.IbeDeskline3HolidayTheme.externalId")))}function HO(v,Ne){if(1&v&&(r.TgZ(0,"td",21),r._uU(1),r.qZA()),2&v){const F=Ne.$implicit;r.xp6(),r.hij(" ",F.controls.externalId.value," ")}}function GO(v,Ne){if(1&v&&(r.TgZ(0,"table",9),r.YNc(1,UO,1,0,"tr",10)(2,BO,1,0,"tr",11),r.ynx(3,12),r.YNc(4,ZO,3,3,"th",13)(5,HO,2,1,"td",14),r.BQk(),r.qZA()),2&v){const F=r.oxw();r.Q6J("dataSource",F.assignedProductsDataSource),r.xp6(),r.Q6J("matHeaderRowDef",F.assignedProductsColumns),r.xp6(),r.Q6J("matRowDefColumns",F.assignedProductsColumns)}}function JO(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",24),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById("metainfos:modules_ibe_deskline3_house_package:"+F))("control",re.moduleDataFormGroup.get(F))("form",re.formHandler.formGroup.get("metainfos"))("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}let QO=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(F,re,ze,It){super(F,re),this.entitiesMgr=F,this.dialog=re,this.translateService=ze,this.changeDetectorRef=It,this.modulePath="metainfos:modules_ibe_deskline3_house_package"}ngOnInit(){this._loadHolidayThemeTableData(),this._loadAssignedProductsTableData()}_loadHolidayThemeTableData(){this.moduleDataFormGroup.get("holidayThemes")&&(this.holidayThemesDataSource=this.prepareTable(this.moduleDataFormGroup.get("holidayThemes"),F=>this.holidayThemesDataSource=F),this.holidayThemesColumns=["externalId","i18nName"])}_loadAssignedProductsTableData(){this.moduleDataFormGroup.get("assignedProducts")&&(this.assignedProductsDataSource=this.prepareTable(this.moduleDataFormGroup.get("assignedProducts"),F=>this.assignedProductsDataSource=F),this.assignedProductsColumns=["externalId"])}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(u.uw),r.Y36(et.sK),r.Y36(r.sBO))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-ibe-deskline3-house-package-form-panel"]],features:[r.qOj],decls:18,vars:5,consts:[["title","imxtools.metainfo.modules_ibe_deskline3_house_package.main",3,"formGroup"],["noRecord",""],["translate",""],[1,"form__content-row"],[1,"form__content-group"],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],["imxControl",""],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","externalId"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","i18nName"],["mat-header-cell","","class","imx-hide-sm",4,"matHeaderCellDef"],["mat-cell","","class","txt-ellipsis",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","",1,"imx-hide-sm"],["mat-cell","",1,"txt-ellipsis",3,"formGroup"],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0),r.YNc(2,RO,2,0,"ng-template",null,1,r.W1O),r.TgZ(4,"h3",2),r._uU(5,"entity.IbeDeskline3HolidayTheme.entityName"),r.qZA(),r.TgZ(6,"div",3)(7,"div",4)(8,"div",5),r.YNc(9,ty,9,3,"table",6),r.qZA()()(),r.TgZ(10,"h3",2),r._uU(11,"entity.IbeDeskline3AssignedProduct.entityName"),r.qZA(),r.TgZ(12,"div",3)(13,"div",4)(14,"div",5),r.YNc(15,GO,6,3,"table",6),r.qZA()()()()(),r.YNc(16,JO,1,5,"ng-template",null,7,r.W1O)),2&re){const It=r.MAs(3);r.xp6(),r.Q6J("formGroup",ze.moduleDataFormGroup),r.xp6(8),r.Q6J("ngIf",ze.holidayThemesDataSource&&ze.holidayThemesDataSource.data.length>0)("ngIfElse",It),r.xp6(6),r.Q6J("ngIf",ze.assignedProductsDataSource&&ze.assignedProductsDataSource.data.length>0)("ngIfElse",It)}},dependencies:[Ft.A,e.O5,s.JL,ue.BZ,ue.fO,ue.as,ue.w1,ue.Dz,ue.nj,ue.ge,ue.ev,ue.XQ,ue.Gk,s.sg,et.Pi,Js.Z,Ms.U,Fa.j,et.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:10px}"],changeDetection:0})}return v})();var VO=a(45438);function ny(v,Ne){1&v&&(r.TgZ(0,"p",8),r._uU(1,"imxplatform.common.no-records"),r.qZA())}function YO(v,Ne){1&v&&r._UZ(0,"tr",20)}function vv(v,Ne){1&v&&r._UZ(0,"tr",21)}function WO(v,Ne){if(1&v&&(r.TgZ(0,"th",22),r._uU(1),r.qZA()),2&v){const F=r.oxw(3);r.xp6(),r.Oqu(F.formHandler.getFormFieldLabel(F.modulePath+":openingHours:dateFrom"))}}function zx(v,Ne){if(1&v&&(r.TgZ(0,"td",23),r._UZ(1,"imx-form-control",24),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(3);r.Q6J("formGroup",F),r.xp6(),r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById(re.modulePath+":openingHours:dateFrom"))("control",F.controls.dateFrom)("form",re.formHandler.formGroup.get("metainfos"))("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}function iy(v,Ne){if(1&v&&(r.TgZ(0,"th",22),r._uU(1),r.qZA()),2&v){const F=r.oxw(3);r.xp6(),r.Oqu(F.formHandler.getFormFieldLabel(F.modulePath+":openingHours:dateTo"))}}function oy(v,Ne){if(1&v&&(r.TgZ(0,"td",23),r._UZ(1,"imx-form-control",24),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(3);r.Q6J("formGroup",F),r.xp6(),r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById(re.modulePath+":openingHours:dateTo"))("control",F.controls.dateTo)("form",re.formHandler.formGroup.get("metainfos"))("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}function Bb(v,Ne){if(1&v&&(r.TgZ(0,"th",22),r._uU(1),r.qZA()),2&v){const F=r.oxw(3);r.xp6(),r.Oqu(F.formHandler.getFormFieldLabel(F.modulePath+":openingHours:text"))}}function ry(v,Ne){if(1&v&&(r.TgZ(0,"td",23),r._UZ(1,"imx-form-control",24),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(3);r.Q6J("formGroup",F),r.xp6(),r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById(re.modulePath+":openingHours:text"))("control",F.controls.text)("form",re.formHandler.formGroup.get("metainfos"))("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}function zO(v,Ne){1&v&&r._UZ(0,"th",25)}function jO(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"a",28),r.NdJ("click",function(){r.CHM(F);const ze=r.oxw().$implicit,It=r.oxw(3);return r.KtG(It.removeDeskline3OpeningHoursRow(It.deskline3OpeningHoursCollectionDataSource.filteredData.indexOf(ze)))}),r.qZA()}}function Zb(v,Ne){if(1&v&&(r.TgZ(0,"td",26),r.YNc(1,jO,1,0,"a",27),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(3);r.Q6J("formGroup",F),r.xp6(),r.Q6J("hasFieldWritePermission",re.modulePath+":openingHours")("hasFieldWritePermissionFormHandler",re.formHandler)}}function KO(v,Ne){if(1&v&&(r.TgZ(0,"table",9),r.YNc(1,YO,1,0,"tr",10)(2,vv,1,0,"tr",11),r.ynx(3,12),r.YNc(4,WO,2,1,"th",13)(5,zx,2,6,"td",14),r.BQk(),r.ynx(6,15),r.YNc(7,iy,2,1,"th",13)(8,oy,2,6,"td",14),r.BQk(),r.ynx(9,16),r.YNc(10,Bb,2,1,"th",13)(11,ry,2,6,"td",14),r.BQk(),r.ynx(12,17),r.YNc(13,zO,1,0,"th",18)(14,Zb,2,3,"td",19),r.BQk(),r.qZA()),2&v){const F=r.oxw(2);r.Q6J("dataSource",F.deskline3OpeningHoursCollectionDataSource),r.xp6(),r.Q6J("matHeaderRowDef",F.deskline3OpeningHoursCollectionColumns),r.xp6(),r.Q6J("matRowDefColumns",F.deskline3OpeningHoursCollectionColumns)}}function ay(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"button",29),r.NdJ("click",function(){r.CHM(F);const ze=r.oxw(2);return r.KtG(ze.addNewDeskline3OpeningHoursRow())}),r.ALo(1,"async"),r._uU(2),r.ALo(3,"translate"),r.qZA()}if(2&v){const F=r.oxw(2);r.Q6J("disabled",!r.lcZ(1,2,F.formHandler.hasSavePermission())),r.xp6(2),r.hij(" ",r.lcZ(3,4,"imxtools.metainfo.modules_ibe_deskline3_infrastructure_base.main.add-deskline3-opening-hours")," ")}}function $O(v,Ne){if(1&v&&(r.TgZ(0,"div",1)(1,"div",2)(2,"h3",3),r._uU(3,"imxtools.metainfo.modules_ibe_deskline3_infrastructure_base.main.deskline3-opening-hours"),r.qZA(),r.YNc(4,ny,2,0,"ng-template",null,4,r.W1O),r.TgZ(6,"div",5),r.YNc(7,KO,15,3,"table",6),r.qZA(),r.YNc(8,ay,4,6,"button",7),r.qZA()()),2&v){const F=r.MAs(5),re=r.oxw();r.xp6(7),r.Q6J("ngIf",re.deskline3OpeningHoursCollectionDataSource&&re.deskline3OpeningHoursCollectionDataSource.data.length>0)("ngIfElse",F),r.xp6(),r.Q6J("hasFieldWritePermission",re.modulePath+":openingHours")("hasFieldWritePermissionFormHandler",re.formHandler)}}let sy=(()=>{class v extends R.AbstractCoreDataObjectFormPanelComponent{ngOnInit(){this.moduleDataFormGroup.get("openingHours")&&(this.deskline3OpeningHoursCollectionDataSource=this.prepareTable(this.moduleDataFormGroup.get("openingHours"),F=>this.deskline3OpeningHoursCollectionDataSource=F),this.deskline3OpeningHoursCollectionColumns=this.determineTableColumns("openingHours"))}determineTableColumns(F){const ze=this.formHandler.formConfiguration.findFormFieldById(this.modulePath+":"+F).children.filter(It=>It.id!==R.ARRAY_ID_FIELD&&It.id!==R.ARRAY_ENTITY_FIELD).map(It=>It.id);return ze.push("removeColumn"),ze}addNewDeskline3OpeningHoursRow(){this.formHandler.addNewCollectionRow(this.modulePath+":openingHours",!0,this.moduleDataFormGroup.get("openingHours"))}removeDeskline3OpeningHoursRow(F){const re=this.moduleDataFormGroup.get("openingHours");re.removeAt(F),re.markAsDirty()}static#e=this.\u0275fac=(()=>{let F;return function(ze){return(F||(F=r.n5z(v)))(ze||v)}})();static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-edit-ibe-deskline3-simple-opening-hours"]],inputs:{modulePath:"modulePath",moduleClassName:"moduleClassName",moduleDataFormGroup:"moduleDataFormGroup",moduleId:"moduleId"},features:[r.qOj],decls:2,vars:3,consts:[["class","form__content-row",4,"ngIf"],[1,"form__content-row"],[1,"form__content-group"],["translate",""],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],["class","imx-button prio2",3,"disabled","click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","dateFrom"],["mat-header-cell","","translate","",4,"matHeaderCellDef"],["mat-cell","",3,"formGroup",4,"matCellDef"],["matColumnDef","dateTo"],["matColumnDef","text"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","","translate",""],["mat-cell","",3,"formGroup"],[3,"field","control","form","formHandler","config"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],["class","icon icon-trash imx-icon-middle imx-icon-clickable",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"],[1,"imx-button","prio2",3,"disabled","click"]],template:function(re,ze){1&re&&(r.YNc(0,$O,9,4,"div",0),r.ALo(1,"async")),2&re&&r.Q6J("ngIf",r.lcZ(1,1,ze.formHandler.hasReadPermission(ze.moduleClassName+":openingHours")))},dependencies:[Ft.A,nl.X,hl.F,e.O5,s.JL,ue.BZ,ue.fO,ue.as,ue.w1,ue.Dz,ue.nj,ue.ge,ue.ev,ue.XQ,ue.Gk,s.sg,et.Pi,e.Ov,et.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__readonly_table[_ngcontent-%COMP%]{border:1px solid #e6e9ef;padding:10px 20px;margin-bottom:10px}.form__content-panel[_ngcontent-%COMP%]{color:#000;margin-bottom:30px;position:relative}.form__content-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.form__content-group[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]{margin-top:15px}.mat-mdc-column-dateFrom[_ngcontent-%COMP%], .mat-mdc-column-dateTo[_ngcontent-%COMP%]{width:120px;vertical-align:top}"]})}return v})();function Hb(v,Ne){1&v&&r.GkF(0)}const qO=()=>({$implicit:"topics1"});function XO(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,Hb,1,0,"ng-container",5),r.BQk()),2&v){r.oxw();const F=r.MAs(17);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,qO))}}function Gb(v,Ne){1&v&&r.GkF(0)}const eP=()=>({$implicit:"topics2"});function bv(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,Gb,1,0,"ng-container",5),r.BQk()),2&v){r.oxw();const F=r.MAs(17);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,eP))}}function Cv(v,Ne){1&v&&r.GkF(0)}function Jb(v,Ne){1&v&&r.GkF(0)}const ly=()=>({$implicit:"holidayThemes"});function tP(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"h3",8),r._uU(2,"entity.AbstractIbeDeskline3HolidayTheme"),r.qZA(),r.TgZ(3,"div",3)(4,"div",4),r.YNc(5,Jb,1,0,"ng-container",5),r.qZA()(),r.BQk()),2&v){r.oxw();const F=r.MAs(17);r.xp6(5),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,ly))}}function nP(v,Ne){1&v&&r.GkF(0)}function iP(v,Ne){1&v&&r.GkF(0)}function yv(v,Ne){1&v&&r.GkF(0)}const Ov=()=>({$implicit:"fromPrice"}),Qb=()=>({$implicit:"toPrice"});function cy(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"h3",8),r._uU(2,"imxtools.metainfo.modules_ibe_deskline3_infrastructure_base.main.prices"),r.qZA(),r.TgZ(3,"div",3)(4,"div",4)(5,"div",3),r.YNc(6,iP,1,0,"ng-container",5)(7,yv,1,0,"ng-container",5),r.qZA()()(),r.BQk()),2&v){r.oxw();const F=r.MAs(17);r.xp6(6),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(4,Ov)),r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(5,Qb))}}function oP(v,Ne){1&v&&r.GkF(0)}function rP(v,Ne){1&v&&r.GkF(0)}const dy=()=>({$implicit:"seatsInside"}),Vb=()=>({$implicit:"seatsOutside"});function Yb(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"h3",8),r._uU(2,"imxtools.metainfo.modules_ibe_deskline3_infrastructure_base.main.seats"),r.qZA(),r.TgZ(3,"div",3)(4,"div",4)(5,"div",3),r.YNc(6,oP,1,0,"ng-container",5)(7,rP,1,0,"ng-container",5),r.qZA()()(),r.BQk()),2&v){r.oxw();const F=r.MAs(17);r.xp6(6),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(4,dy)),r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(5,Vb))}}function mh(v,Ne){if(1&v&&(r.TgZ(0,"imx-accordion-panel",0),r._UZ(1,"imx-opening-hours-information-form-panel",9),r.qZA()),2&v){const F=r.oxw();r.s9C("title",F.openingHoursPanelHeaderKey),r.xp6(),r.Q6J("formHandler",F.formHandler)("openingHoursInformationRowFormGroup",F.getOpeningHoursInformationFormGroup())("modulePath",F.getModulePath())("permissionPathPrefix",F.moduleClassName+":")("tileDesc",F.getTitleDesc())}}function aP(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",10),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById(re.getModulePath()+":"+F))("control",re.moduleDataFormGroup.get(F))("form",re.formHandler.formGroup.get("metainfos"))("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}const sP=()=>({$implicit:"topPoi"}),Kh=()=>({$implicit:"priceInformation"});let Zg=(()=>{class v extends R.AbstractCoreDataObjectFormPanelComponent{constructor(F,re,ze){super(F,ze),this.entitiesMgr=F,this.translationService=re,this.dialog=ze,this.topics1BaseEntityNameAvailable=(0,wn.of)(!1),this.topics2BaseEntityNameAvailable=(0,wn.of)(!1),this.holidayThemesEntityNameAvailable=(0,wn.of)(!1)}ngOnInit(){this.topics1BaseEntityNameAvailable=this.baseEntityAvailable(this.topics1BaseEntityName),this.topics2BaseEntityNameAvailable=this.baseEntityAvailable(this.topics2BaseEntityName),this.holidayThemesEntityNameAvailable=this.baseEntityAvailable(this.holidayThemesEntityName)}getTitleDesc(){return this.translationService.instant("imxtools.metainfo.modules_ibe_deskline3_infrastructure_base.main.edit-opening-hours")}getOpeningHoursInformationFormGroup(){return this.moduleDataFormGroup.get("openingHoursInformations")}hasOpeningHoursInformationFormGroup(){const F=this.moduleDataFormGroup.get("openingHoursInformations").controls;return!(F&&0===Object.keys(F).length&&Object.getPrototypeOf(F)===Object.prototype)}getModulePath(){return"metainfos:"+this.moduleKey}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(et.sK),r.Y36(u.uw))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-ibe-deskline3-infrastructure-addressbase-base-form-panel"]],inputs:{moduleDataFormGroup:"moduleDataFormGroup",moduleId:"moduleId",moduleKey:"moduleKey",moduleClassName:"moduleClassName",mainPanelHeaderKey:"mainPanelHeaderKey",openingHoursPanelHeaderKey:"openingHoursPanelHeaderKey",topics1BaseEntityName:"topics1BaseEntityName",topics2BaseEntityName:"topics2BaseEntityName",holidayThemesEntityName:"holidayThemesEntityName"},features:[r.qOj],decls:18,vars:24,consts:[[3,"title"],[3,"modulePath","moduleClassName","moduleId","formHandler","moduleDataFormGroup"],[4,"ngIf"],[1,"form__content-row"],[1,"form__content-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"title",4,"ngIf"],["imxControl",""],["translate",""],[3,"formHandler","openingHoursInformationRowFormGroup","modulePath","permissionPathPrefix","tileDesc"],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0),r._UZ(2,"imx-edit-ibe-deskline3-simple-opening-hours",1),r.YNc(3,XO,2,3,"ng-container",2),r.ALo(4,"async"),r.YNc(5,bv,2,3,"ng-container",2),r.ALo(6,"async"),r.TgZ(7,"div",3)(8,"div",4),r.YNc(9,Cv,1,0,"ng-container",5),r.qZA()(),r.YNc(10,tP,6,3,"ng-container",2),r.ALo(11,"async"),r.YNc(12,nP,1,0,"ng-container",5)(13,cy,8,6,"ng-container",2)(14,Yb,8,6,"ng-container",2),r.qZA(),r.YNc(15,mh,2,6,"imx-accordion-panel",6),r.qZA(),r.YNc(16,aP,1,5,"ng-template",null,7,r.W1O)),2&re){const It=r.MAs(17);r.xp6(),r.s9C("title",ze.mainPanelHeaderKey),r.xp6(),r.Q6J("modulePath",ze.getModulePath())("moduleClassName",ze.moduleClassName)("moduleId",ze.moduleId)("formHandler",ze.formHandler)("moduleDataFormGroup",ze.moduleDataFormGroup),r.xp6(),r.Q6J("ngIf",r.lcZ(4,16,ze.topics1BaseEntityNameAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(6,18,ze.topics2BaseEntityNameAvailable)),r.xp6(4),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(22,sP)),r.xp6(),r.Q6J("ngIf",r.lcZ(11,20,ze.holidayThemesEntityNameAvailable)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(23,Kh)),r.xp6(),r.Q6J("ngIf",ze.formHandler.formConfiguration.findFormFieldById(ze.getModulePath()+":fromPrice")&&ze.formHandler.formConfiguration.findFormFieldById(ze.getModulePath()+":toPrice")),r.xp6(),r.Q6J("ngIf",ze.formHandler.formConfiguration.findFormFieldById(ze.getModulePath()+":seatsInside")&&ze.formHandler.formConfiguration.findFormFieldById(ze.getModulePath()+":seatsOutside")),r.xp6(),r.Q6J("ngIf",ze.hasOpeningHoursInformationFormGroup())}},dependencies:[Ft.A,e.O5,e.tP,et.Pi,Js.Z,Ms.U,VO.R7,sy,e.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__content-row[_ngcontent-%COMP%]{margin:0 -5px}.form__content-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin:0 5px}"],changeDetection:0})}return v})(),Wb=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(){super(...arguments),this.topics1BaseEntityName="IbeDeskline3SportAndLeisureInfrastructureTopic1",this.topics2BaseEntityName="IbeDeskline3SportAndLeisureInfrastructureTopic2",this.holidayThemesEntityName="IbeDeskline3InfrastructureHolidayTheme"}static#e=this.\u0275fac=(()=>{let F;return function(ze){return(F||(F=r.n5z(v)))(ze||v)}})();static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-ibe-deskline3-sport-and-leisure-infrastructure-addressbase-form-panel"]],features:[r.qOj],decls:1,vars:10,consts:[[3,"moduleId","moduleKey","moduleClassName","formHandler","moduleDataFormGroup","mainPanelHeaderKey","openingHoursPanelHeaderKey","topics1BaseEntityName","topics2BaseEntityName","holidayThemesEntityName"]],template:function(re,ze){1&re&&r._UZ(0,"imx-ibe-deskline3-infrastructure-addressbase-base-form-panel",0),2&re&&r.Q6J("moduleId",ze.moduleId)("moduleKey",ze.moduleKey)("moduleClassName",ze.moduleClassName)("formHandler",ze.formHandler)("moduleDataFormGroup",ze.moduleDataFormGroup)("mainPanelHeaderKey","imxtools.metainfo.modules_ibe_deskline3_infrastructure_base.main.header")("openingHoursPanelHeaderKey","imxtools.metainfo.modules_ibe_deskline3_infrastructure_base.main.opening-hours")("topics1BaseEntityName",ze.topics1BaseEntityName)("topics2BaseEntityName",ze.topics2BaseEntityName)("holidayThemesEntityName",ze.holidayThemesEntityName)},dependencies:[Zg],encapsulation:2,changeDetection:0})}return v})(),YM=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(){super(...arguments),this.topics1BaseEntityName="IbeDeskline3ArtAndCultureInfrastructureTopic1",this.topics2BaseEntityName="IbeDeskline3ArtAndCultureInfrastructureTopic2",this.holidayThemesEntityName="IbeDeskline3InfrastructureHolidayTheme"}static#e=this.\u0275fac=(()=>{let F;return function(ze){return(F||(F=r.n5z(v)))(ze||v)}})();static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-ibe-deskline3-art-and-culture-infrastructure-addressbase-form-panel"]],features:[r.qOj],decls:1,vars:10,consts:[[3,"moduleId","moduleKey","moduleClassName","formHandler","moduleDataFormGroup","mainPanelHeaderKey","openingHoursPanelHeaderKey","topics1BaseEntityName","topics2BaseEntityName","holidayThemesEntityName"]],template:function(re,ze){1&re&&r._UZ(0,"imx-ibe-deskline3-infrastructure-addressbase-base-form-panel",0),2&re&&r.Q6J("moduleId",ze.moduleId)("moduleKey",ze.moduleKey)("moduleClassName",ze.moduleClassName)("formHandler",ze.formHandler)("moduleDataFormGroup",ze.moduleDataFormGroup)("mainPanelHeaderKey","imxtools.metainfo.modules_ibe_deskline3_infrastructure_base.main.header")("openingHoursPanelHeaderKey","imxtools.metainfo.modules_ibe_deskline3_infrastructure_base.main.opening-hours")("topics1BaseEntityName",ze.topics1BaseEntityName)("topics2BaseEntityName",ze.topics2BaseEntityName)("holidayThemesEntityName",ze.holidayThemesEntityName)},dependencies:[Zg],encapsulation:2,changeDetection:0})}return v})(),my=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(){super(...arguments),this.topics1BaseEntityName="IbeDeskline3FoodAndBeverageInfrastructureTopic1",this.topics2BaseEntityName="IbeDeskline3FoodAndBeverageInfrastructureTopic2",this.holidayThemesEntityName="IbeDeskline3InfrastructureHolidayTheme"}static#e=this.\u0275fac=(()=>{let F;return function(ze){return(F||(F=r.n5z(v)))(ze||v)}})();static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-ibe-deskline3-food-and-beverage-infrastructure-addressbase-form-panel"]],features:[r.qOj],decls:1,vars:10,consts:[[3,"moduleId","moduleKey","moduleClassName","formHandler","moduleDataFormGroup","mainPanelHeaderKey","openingHoursPanelHeaderKey","topics1BaseEntityName","topics2BaseEntityName","holidayThemesEntityName"]],template:function(re,ze){1&re&&r._UZ(0,"imx-ibe-deskline3-infrastructure-addressbase-base-form-panel",0),2&re&&r.Q6J("moduleId",ze.moduleId)("moduleKey",ze.moduleKey)("moduleClassName",ze.moduleClassName)("formHandler",ze.formHandler)("moduleDataFormGroup",ze.moduleDataFormGroup)("mainPanelHeaderKey","imxtools.metainfo.modules_ibe_deskline3_infrastructure_base.main.header")("openingHoursPanelHeaderKey","imxtools.metainfo.modules_ibe_deskline3_infrastructure_base.main.opening-hours")("topics1BaseEntityName",ze.topics1BaseEntityName)("topics2BaseEntityName",ze.topics2BaseEntityName)("holidayThemesEntityName",ze.holidayThemesEntityName)},dependencies:[Zg],encapsulation:2,changeDetection:0})}return v})(),uy=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(){super(...arguments),this.topics1BaseEntityName="IbeDeskline3InfrastructureTopic1",this.topics2BaseEntityName="IbeDeskline3InfrastructureTopic2",this.holidayThemesEntityName="IbeDeskline3InfrastructureHolidayTheme"}static#e=this.\u0275fac=(()=>{let F;return function(ze){return(F||(F=r.n5z(v)))(ze||v)}})();static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-ibe-deskline3-infrastructure-addressbase-form-panel"]],features:[r.qOj],decls:1,vars:10,consts:[[3,"moduleId","moduleKey","moduleClassName","formHandler","moduleDataFormGroup","mainPanelHeaderKey","openingHoursPanelHeaderKey","topics1BaseEntityName","topics2BaseEntityName","holidayThemesEntityName"]],template:function(re,ze){1&re&&r._UZ(0,"imx-ibe-deskline3-infrastructure-addressbase-base-form-panel",0),2&re&&r.Q6J("moduleId",ze.moduleId)("moduleKey",ze.moduleKey)("moduleClassName",ze.moduleClassName)("formHandler",ze.formHandler)("moduleDataFormGroup",ze.moduleDataFormGroup)("mainPanelHeaderKey","imxtools.metainfo.modules_ibe_deskline3_infrastructure_base.main.header")("openingHoursPanelHeaderKey","imxtools.metainfo.modules_ibe_deskline3_infrastructure_base.main.opening-hours")("topics1BaseEntityName",ze.topics1BaseEntityName)("topics2BaseEntityName",ze.topics2BaseEntityName)("holidayThemesEntityName",ze.holidayThemesEntityName)},dependencies:[Zg],encapsulation:2,changeDetection:0})}return v})(),WM=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(){super(...arguments),this.topics1BaseEntityName="IbeDeskline3MobilityAndTrafficInfrastructureTopic1",this.topics2BaseEntityName="IbeDeskline3MobilityAndTrafficInfrastructureTopic2",this.holidayThemesEntityName="IbeDeskline3InfrastructureHolidayTheme"}static#e=this.\u0275fac=(()=>{let F;return function(ze){return(F||(F=r.n5z(v)))(ze||v)}})();static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-ibe-deskline3-mobility-and-traffic-infrastructure-addressbase-form-panel"]],features:[r.qOj],decls:1,vars:10,consts:[[3,"moduleId","moduleKey","moduleClassName","formHandler","moduleDataFormGroup","mainPanelHeaderKey","openingHoursPanelHeaderKey","topics1BaseEntityName","topics2BaseEntityName","holidayThemesEntityName"]],template:function(re,ze){1&re&&r._UZ(0,"imx-ibe-deskline3-infrastructure-addressbase-base-form-panel",0),2&re&&r.Q6J("moduleId",ze.moduleId)("moduleKey",ze.moduleKey)("moduleClassName",ze.moduleClassName)("formHandler",ze.formHandler)("moduleDataFormGroup",ze.moduleDataFormGroup)("mainPanelHeaderKey","imxtools.metainfo.modules_ibe_deskline3_infrastructure_base.main.header")("openingHoursPanelHeaderKey","imxtools.metainfo.modules_ibe_deskline3_infrastructure_base.main.opening-hours")("topics1BaseEntityName",ze.topics1BaseEntityName)("topics2BaseEntityName",ze.topics2BaseEntityName)("holidayThemesEntityName",ze.holidayThemesEntityName)},dependencies:[Zg],encapsulation:2,changeDetection:0})}return v})(),$h=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(){super(...arguments),this.topics1BaseEntityName="IbeDeskline3PoiInfrastructureTopic1",this.topics2BaseEntityName="IbeDeskline3PoiInfrastructureTopic2",this.holidayThemesEntityName="IbeDeskline3InfrastructureHolidayTheme"}static#e=this.\u0275fac=(()=>{let F;return function(ze){return(F||(F=r.n5z(v)))(ze||v)}})();static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-ibe-deskline3-poi-infrastructure-addressbase-form-panel"]],features:[r.qOj],decls:1,vars:10,consts:[[3,"moduleId","moduleKey","moduleClassName","formHandler","moduleDataFormGroup","mainPanelHeaderKey","openingHoursPanelHeaderKey","topics1BaseEntityName","topics2BaseEntityName","holidayThemesEntityName"]],template:function(re,ze){1&re&&r._UZ(0,"imx-ibe-deskline3-infrastructure-addressbase-base-form-panel",0),2&re&&r.Q6J("moduleId",ze.moduleId)("moduleKey",ze.moduleKey)("moduleClassName",ze.moduleClassName)("formHandler",ze.formHandler)("moduleDataFormGroup",ze.moduleDataFormGroup)("mainPanelHeaderKey","imxtools.metainfo.modules_ibe_deskline3_infrastructure_base.main.header")("openingHoursPanelHeaderKey","imxtools.metainfo.modules_ibe_deskline3_infrastructure_base.main.opening-hours")("topics1BaseEntityName",ze.topics1BaseEntityName)("topics2BaseEntityName",ze.topics2BaseEntityName)("holidayThemesEntityName",ze.holidayThemesEntityName)},dependencies:[Zg],encapsulation:2,changeDetection:0})}return v})(),lP=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(){super(...arguments),this.topics1BaseEntityName="IbeDeskline3RouteAndTourInfrastructureTopic1",this.topics2BaseEntityName="IbeDeskline3RouteAndTourInfrastructureTopic2",this.holidayThemesEntityName="IbeDeskline3InfrastructureHolidayTheme"}static#e=this.\u0275fac=(()=>{let F;return function(ze){return(F||(F=r.n5z(v)))(ze||v)}})();static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-ibe-deskline3-route-and-tour-infrastructure-addressbase-form-panel"]],features:[r.qOj],decls:1,vars:10,consts:[[3,"moduleId","moduleKey","moduleClassName","formHandler","moduleDataFormGroup","mainPanelHeaderKey","openingHoursPanelHeaderKey","topics1BaseEntityName","topics2BaseEntityName","holidayThemesEntityName"]],template:function(re,ze){1&re&&r._UZ(0,"imx-ibe-deskline3-infrastructure-addressbase-base-form-panel",0),2&re&&r.Q6J("moduleId",ze.moduleId)("moduleKey",ze.moduleKey)("moduleClassName",ze.moduleClassName)("formHandler",ze.formHandler)("moduleDataFormGroup",ze.moduleDataFormGroup)("mainPanelHeaderKey","imxtools.metainfo.modules_ibe_deskline3_infrastructure_base.main.header")("openingHoursPanelHeaderKey","imxtools.metainfo.modules_ibe_deskline3_infrastructure_base.main.opening-hours")("topics1BaseEntityName",ze.topics1BaseEntityName)("topics2BaseEntityName",ze.topics2BaseEntityName)("holidayThemesEntityName",ze.holidayThemesEntityName)},dependencies:[Zg],encapsulation:2,changeDetection:0})}return v})(),cP=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(){super(...arguments),this.topics1BaseEntityName="IbeDeskline3WellnessAndHealthInfrastructureTopic1",this.topics2BaseEntityName="IbeDeskline3WellnessAndHealthInfrastructureTopic2",this.holidayThemesEntityName="IbeDeskline3InfrastructureHolidayTheme"}static#e=this.\u0275fac=(()=>{let F;return function(ze){return(F||(F=r.n5z(v)))(ze||v)}})();static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-ibe-deskline3-wellness-and-health-infrastructure-addressbase-form-panel"]],features:[r.qOj],decls:1,vars:10,consts:[[3,"moduleId","moduleKey","moduleClassName","formHandler","moduleDataFormGroup","mainPanelHeaderKey","openingHoursPanelHeaderKey","topics1BaseEntityName","topics2BaseEntityName","holidayThemesEntityName"]],template:function(re,ze){1&re&&r._UZ(0,"imx-ibe-deskline3-infrastructure-addressbase-base-form-panel",0),2&re&&r.Q6J("moduleId",ze.moduleId)("moduleKey",ze.moduleKey)("moduleClassName",ze.moduleClassName)("formHandler",ze.formHandler)("moduleDataFormGroup",ze.moduleDataFormGroup)("mainPanelHeaderKey","imxtools.metainfo.modules_ibe_deskline3_infrastructure_base.main.header")("openingHoursPanelHeaderKey","imxtools.metainfo.modules_ibe_deskline3_infrastructure_base.main.opening-hours")("topics1BaseEntityName",ze.topics1BaseEntityName)("topics2BaseEntityName",ze.topics2BaseEntityName)("holidayThemesEntityName",ze.holidayThemesEntityName)},dependencies:[Zg],encapsulation:2,changeDetection:0})}return v})();function dP(v,Ne){1&v&&r.GkF(0)}function qh(v,Ne){1&v&&r.GkF(0)}function mP(v,Ne){1&v&&r.GkF(0)}function Pv(v,Ne){1&v&&r.GkF(0)}function Mv(v,Ne){1&v&&r.GkF(0)}function D_(v,Ne){1&v&&r.GkF(0)}function py(v,Ne){1&v&&r.GkF(0)}function _y(v,Ne){1&v&&r.GkF(0)}function uP(v,Ne){if(1&v&&(r.TgZ(0,"imx-base-checkbox",10),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v){const re=Ne.label;r.Q6J("ngModel",Ne.model)("disableControl",!0)("small",!0),r.xp6(),r.Oqu(r.lcZ(2,4,re))}}function fy(v,Ne){if(1&v&&(r._UZ(0,"imx-base-input",11),r.ALo(1,"readI18n")),2&v){const F=Ne.model;r.Q6J("label",Ne.label)("disableControl",!0)("ngModel",r.lcZ(1,3,F))}}function gy(v,Ne){if(1&v&&r._UZ(0,"imx-base-read-only-i18n-input",12),2&v){const F=Ne.model,re=Ne.label,ze=r.oxw();r.Q6J("label",re)("ngModel",F)("i18nLanguage",ze.formHandler.formLanguage.getEditLanguageAsObservable())}}function hy(v,Ne){if(1&v&&r._UZ(0,"imx-base-read-only-i18n-input",13),2&v){const F=Ne.model,re=Ne.label,ze=r.oxw();r.Q6J("label",re)("ngModel",F)("textArea",!0)("i18nLanguage",ze.formHandler.formLanguage.getEditLanguageAsObservable())}}const xy=v=>({model:v,label:"entity.IbeAccService.bookable"}),pP=v=>({model:v,label:"entity.IbeAccService.onDemand"}),_P=v=>({model:v,label:"entity.IbeAccService.externalId"}),fP=v=>({model:v,label:"entity.IbeAccService.serviceType"}),jx=v=>({model:v,label:"entity.IbeAccService.i18nName"}),gP=v=>({model:v,label:"entity.IbeAccService.shortDescription"}),hP=v=>({model:v,label:"entity.IbeAccService.longDescription"}),xP=v=>({model:v,label:"entity.IbeAccService.serviceClassification"});let Tv=(()=>{class v{constructor(){this.featureGroupsTable=[]}ngOnInit(){this.prepareFeatureGroupsTable()}prepareFeatureGroupsTable(){this.featureGroupsTable=[],this.featureGroupsTable.push({accessor:"externalId",columnTitle:"entity.IbeTomasAddressbaseFeatureGroup.externalId"},{accessor:"i18nName",columnTitle:"entity.IbeTomasAddressbaseFeatureGroup.i18nName"},{accessor:"supportDescriptions",columnTitle:"entity.IbeTomasAddressbaseFeatureGroup.supportDescriptions"},{accessor:"supportNumbers",columnTitle:"entity.IbeTomasAddressbaseFeatureGroup.supportNumbers"},{accessor:"numberLabel",columnTitle:"entity.IbeTomasAddressbaseFeatureGroup.numberLabel"},{accessor:"features",columnTitle:"entity.IbeTomasAddressbaseFeatureGroup.features",customDisplayFn:this.displayFeaturesOfFeatureGroups})}displayFeaturesOfFeatureGroups(F){return F?F.length+"":""}static#e=this.\u0275fac=function(re){return new(re||v)};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-ibe-acc-service-panel"]],inputs:{service:"service",formHandler:"formHandler"},decls:21,vars:39,consts:[[1,"form__content-field-row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ibeUrlImages","formHandler","label"],[1,"form__readonly_table"],[3,"label"],["maxHeight","330px",3,"columns","data","i18nLanguage"],["readOnlyCheckbox",""],["readOnlyInput",""],["readOnlyI18n",""],["readOnlyI18nTextArea",""],[3,"ngModel","disableControl","small"],[3,"label","disableControl","ngModel"],[3,"label","ngModel","i18nLanguage"],[3,"label","ngModel","textArea","i18nLanguage"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"div",0),r.YNc(1,dP,1,0,"ng-container",1)(2,qh,1,0,"ng-container",1)(3,mP,1,0,"ng-container",1)(4,Pv,1,0,"ng-container",1),r.qZA(),r.YNc(5,Mv,1,0,"ng-container",1)(6,D_,1,0,"ng-container",1)(7,py,1,0,"ng-container",1)(8,_y,1,0,"ng-container",1),r._UZ(9,"imx-ibe-url-images",2),r.TgZ(10,"div",3),r._UZ(11,"imx-base-input-label",4)(12,"imx-table",5),r.qZA(),r.YNc(13,uP,3,6,"ng-template",null,6,r.W1O)(15,fy,2,5,"ng-template",null,7,r.W1O)(17,gy,1,3,"ng-template",null,8,r.W1O)(19,hy,1,4,"ng-template",null,9,r.W1O)),2&re){const It=r.MAs(14),vo=r.MAs(16),Os=r.MAs(18),xd=r.MAs(20);r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.VKq(23,xy,ze.service.bookable)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.VKq(25,pP,ze.service.onDemand)),r.xp6(),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.VKq(27,_P,ze.service.externalId)),r.xp6(),r.Q6J("ngTemplateOutlet",Os)("ngTemplateOutletContext",r.VKq(29,fP,ze.service.serviceType.i18nName)),r.xp6(),r.Q6J("ngTemplateOutlet",Os)("ngTemplateOutletContext",r.VKq(31,jx,ze.service.i18nName)),r.xp6(),r.Q6J("ngTemplateOutlet",xd)("ngTemplateOutletContext",r.VKq(33,gP,ze.service.shortDescription)),r.xp6(),r.Q6J("ngTemplateOutlet",xd)("ngTemplateOutletContext",r.VKq(35,hP,ze.service.longDescription)),r.xp6(),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.VKq(37,xP,ze.service.serviceClassification)),r.xp6(),r.Q6J("ibeUrlImages",ze.service.urlImages)("formHandler",ze.formHandler)("label","entity.IbeAccService.urlImages"),r.xp6(2),r.Q6J("label","entity.IbeAccService.featureGroups"),r.xp6(),r.Q6J("columns",ze.featureGroupsTable)("data",ze.service.featureGroups)("i18nLanguage",ze.formHandler.formLanguage.getEditLanguage())}},dependencies:[Vs.G,Mc.H,sl.u,gc.Z,$d.a,e.tP,s.JJ,s.On,Yx,Fa.j,et.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__readonly_table[_ngcontent-%COMP%]{border:1px solid #e6e9ef;padding:10px 20px;margin-bottom:10px}"]})}return v})();function vy(v,Ne){1&v&&r.GkF(0)}function by(v,Ne){1&v&&r.GkF(0)}function zb(v,Ne){if(1&v&&(r.TgZ(0,"div",9),r._UZ(1,"imx-base-input-label",10)(2,"imx-table",11),r.qZA()),2&v){const F=r.oxw(2);r.xp6(),r.Q6J("label","entity.IbeTomasAccAddressbase.descriptions"),r.xp6(),r.Q6J("columns",F.descriptionsTable)("i18nLanguage",F.formHandler.formLanguage.getEditLanguage())("data",F.data.descriptions)}}const vP=v=>({model:v,label:"entity.IbeTomasAccAddressbase.bookable",permId:"bookable"}),Kx=v=>({model:v,label:"entity.IbeTomasAccAddressbase.basePrice",permId:"basePrice"});function $x(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"div",6),r.YNc(2,vy,1,0,"ng-container",7)(3,by,1,0,"ng-container",7),r.qZA(),r.YNc(4,zb,3,4,"div",8),r.ALo(5,"async"),r.BQk()),2&v){const F=r.oxw(),re=r.MAs(8),ze=r.MAs(10);r.xp6(2),r.Q6J("ngTemplateOutlet",re)("ngTemplateOutletContext",r.VKq(7,vP,F.data.bookable)),r.xp6(),r.Q6J("ngTemplateOutlet",ze)("ngTemplateOutletContext",r.VKq(9,Kx,F.data.basePrice)),r.xp6(),r.Q6J("ngIf",r.lcZ(5,5,F.formHandler.hasReadPermission("IbeTomasAccAddressbase:descriptions")))}}function bP(v,Ne){if(1&v&&(r.TgZ(0,"imx-accordion-panel",13),r.ALo(1,"readI18n"),r._UZ(2,"imx-ibe-acc-service-panel",14),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.Q6J("titleDescription",r.xi3(1,3,F.i18nName,re.formHandler.formLanguage.getEditLanguage().name)),r.xp6(2),r.Q6J("service",F)("formHandler",re.formHandler)}}function CP(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,bP,3,6,"imx-accordion-panel",12),r.BQk()),2&v){const F=r.oxw();r.xp6(),r.Q6J("ngForOf",null==F.data?null:F.data.services)}}function yP(v,Ne){1&v&&r.GkF(0)}function Cy(v,Ne){1&v&&r.GkF(0)}function yy(v,Ne){1&v&&r.GkF(0)}function Oy(v,Ne){1&v&&r.GkF(0)}function OP(v,Ne){1&v&&r.GkF(0)}const Py=v=>({model:v,label:"entity.IbeTomasAddressbaseFeatureGroup.externalId",permId:"featureGroups.externalId"}),PP=v=>({model:v,label:"entity.IbeTomasAddressbaseFeatureGroup.i18nName",permId:"featureGroups.i18nName"}),zM=v=>({model:v,label:"entity.IbeTomasAddressbaseFeatureGroup.supportDescriptions",permId:"featureGroups.supportDescriptions"}),KM=v=>({model:v,label:"entity.IbeTomasAddressbaseFeatureGroup.supportNumbers",permId:"featureGroups.supportNumbers"}),My=v=>({model:v,label:"entity.IbeTomasAddressbaseFeatureGroup.numberLabel",permId:"featureGroups.numberLabel"});function Ev(v,Ne){if(1&v&&(r.TgZ(0,"div",17)(1,"div",6),r.YNc(2,yP,1,0,"ng-container",7)(3,Cy,1,0,"ng-container",7),r.qZA(),r.TgZ(4,"div",6),r.YNc(5,yy,1,0,"ng-container",7)(6,Oy,1,0,"ng-container",7)(7,OP,1,0,"ng-container",7),r.qZA(),r._UZ(8,"imx-table",11),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2),ze=r.MAs(10),It=r.MAs(12),vo=r.MAs(8);r.xp6(2),r.Q6J("ngTemplateOutlet",ze)("ngTemplateOutletContext",r.VKq(13,Py,F.externalId)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.VKq(15,PP,F.i18nName)),r.xp6(2),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.VKq(17,zM,F.supportDescriptions)),r.xp6(),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.VKq(19,KM,F.supportNumbers)),r.xp6(),r.Q6J("ngTemplateOutlet",ze)("ngTemplateOutletContext",r.VKq(21,My,F.numberLabel)),r.xp6(),r.Q6J("columns",re.featuresTable)("i18nLanguage",re.formHandler.formLanguage.getEditLanguage())("data",F.features)}}function TP(v,Ne){if(1&v&&(r.TgZ(0,"imx-accordion-panel",15),r.YNc(1,Ev,9,23,"div",16),r.qZA()),2&v){const F=r.oxw();r.xp6(),r.Q6J("ngForOf",null==F.data?null:F.data.featureGroups)}}function EP(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"imx-base-checkbox",18),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.BQk()),2&v){const F=r.oxw(),re=F.model,ze=F.label;r.xp6(),r.Q6J("ngModel",re)("disableControl",!0)("small",!0),r.xp6(),r.Oqu(r.lcZ(3,4,ze))}}function Ty(v,Ne){if(1&v&&(r.YNc(0,EP,4,6,"ng-container",1),r.ALo(1,"async")),2&v){const F=Ne.permId,re=r.oxw();r.Q6J("ngIf",r.lcZ(1,1,re.formHandler.hasReadPermission("IbeTomasAccAddressbase:"+F)))}}function qx(v,Ne){if(1&v&&(r.ynx(0),r._UZ(1,"imx-base-input",19),r.ALo(2,"readI18n"),r.BQk()),2&v){const F=r.oxw(),re=F.label,ze=F.model;r.xp6(),r.Q6J("label",re)("disableControl",!0)("ngModel",r.lcZ(2,3,ze))}}function AP(v,Ne){if(1&v&&(r.YNc(0,qx,3,5,"ng-container",1),r.ALo(1,"async")),2&v){const F=Ne.permId,re=r.oxw();r.Q6J("ngIf",r.lcZ(1,1,re.formHandler.hasReadPermission("IbeTomasAccAddressbase:"+F)))}}function wP(v,Ne){if(1&v&&(r.ynx(0),r._UZ(1,"imx-base-read-only-i18n-input",20),r.BQk()),2&v){const F=r.oxw(),re=F.label,ze=F.model,It=r.oxw();r.xp6(),r.Q6J("label",re)("ngModel",ze)("i18nLanguage",It.formHandler.formLanguage.getEditLanguageAsObservable())}}function DP(v,Ne){if(1&v&&(r.YNc(0,wP,2,3,"ng-container",1),r.ALo(1,"async")),2&v){const F=Ne.permId,re=r.oxw();r.Q6J("ngIf",r.lcZ(1,1,re.formHandler.hasReadPermission("IbeTomasAccAddressbase:"+F)))}}let IP=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(){super(...arguments),this.descriptionsTable=[],this.featuresTable=[]}ngOnInit(){const F=this.moduleDataFormGroup.get("ibeTomasAccAddressbase");if(!F)throw new Error("no FormControl configured with id ibeTomasAccAddressbase");this.data=F.value,this.prepareDescriptionsTable(),this.prepareFeatureGroupsTable()}prepareDescriptionsTable(){this.descriptionsTable.push({accessor:"descriptionType.externalId",columnTitle:"entity.IbeTomasDescriptionType.externalId"},{accessor:"descriptionType.i18nName",sortable:!0,columnTitle:"entity.IbeTomasDescriptionType.i18nName"},{accessor:"description",columnTitle:"entity.IbeTomasDescription.description"},{accessor:"descriptionPlainText",columnTitle:"entity.IbeTomasDescription.descriptionPlainText"})}prepareFeatureGroupsTable(){this.featuresTable.push({accessor:"featureDefinition.externalId",sortable:!0,columnTitle:"entity.IbeTomasFeatureDefinition.externalId"},{accessor:"featureDefinition.i18nName",sortable:!0,columnTitle:"entity.IbeTomasFeatureDefinition.i18nName"},{accessor:"description",sortable:!0,columnTitle:"entity.IbeTomasFeature.description"},{accessor:"numberValue",sortable:!0,columnTitle:"entity.IbeTomasFeature.numberValue"})}static#e=this.\u0275fac=(()=>{let F;return function(ze){return(F||(F=r.n5z(v)))(ze||v)}})();static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-ibe-tomas-acc-addressbase-form-panel"]],features:[r.qOj],decls:13,vars:7,consts:[["title","entity.IbeTomasAccAddressbase.entityName"],[4,"ngIf"],["title","entity.IbeTomasAccAddressbase.featureGroups",4,"ngIf"],["readOnlyCheckbox",""],["readOnlyInput",""],["readOnlyI18n",""],[1,"form__content-field-row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","form__readonly_table",4,"ngIf"],[1,"form__readonly_table"],[3,"label"],["maxHeight","330px",3,"columns","i18nLanguage","data"],["title","entity.IbeTomasAccAddressbase.services",3,"titleDescription",4,"ngFor","ngForOf"],["title","entity.IbeTomasAccAddressbase.services",3,"titleDescription"],[3,"service","formHandler"],["title","entity.IbeTomasAccAddressbase.featureGroups"],["class","featureGroup",4,"ngFor","ngForOf"],[1,"featureGroup"],[3,"ngModel","disableControl","small"],[3,"label","disableControl","ngModel"],[3,"label","ngModel","i18nLanguage"]],template:function(re,ze){1&re&&(r.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0),r.YNc(2,$x,6,11,"ng-container",1),r.qZA(),r.YNc(3,CP,2,1,"ng-container",1),r.ALo(4,"async"),r.YNc(5,TP,2,1,"imx-accordion-panel",2),r.ALo(6,"async"),r.qZA(),r.YNc(7,Ty,2,3,"ng-template",null,3,r.W1O)(9,AP,2,3,"ng-template",null,4,r.W1O)(11,DP,2,3,"ng-template",null,5,r.W1O)),2&re&&(r.xp6(2),r.Q6J("ngIf",ze.data),r.xp6(),r.Q6J("ngIf",r.lcZ(4,3,ze.formHandler.hasReadPermission("IbeTomasAccAddressbase:services"))),r.xp6(2),r.Q6J("ngIf",r.lcZ(6,5,ze.formHandler.hasReadPermission("IbeTomasAccAddressbase:services"))))},dependencies:[Vs.G,Mc.H,sl.u,gc.Z,$d.a,e.sg,e.O5,e.tP,s.JJ,s.On,Js.Z,Ms.U,Tv,Fa.j,e.Ov,et.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.featureGroup[_ngcontent-%COMP%]{border-bottom:1px solid #e6e9ef;margin-bottom:10px}"],changeDetection:0})}return v})();var SP=a(97564),Ey=a(22201);function Ay(v,Ne){1&v&&r.GkF(0)}const FP=()=>({$implicit:"suitabilities"});function Av(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,Ay,1,0,"ng-container",3),r.BQk()),2&v){r.oxw();const F=r.MAs(37);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,FP))}}function Hg(v,Ne){1&v&&r.GkF(0)}const LP=()=>({$implicit:"additionalFeatures"});function jb(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,Hg,1,0,"ng-container",3),r.BQk()),2&v){r.oxw();const F=r.MAs(37);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,LP))}}function RP(v,Ne){1&v&&r.GkF(0)}function wy(v,Ne){1&v&&r.GkF(0)}function kP(v,Ne){1&v&&r.GkF(0)}const Dy=()=>({$implicit:"region"});function NP(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"div",7),r.YNc(2,kP,1,0,"ng-container",3),r.qZA(),r.BQk()),2&v){r.oxw();const F=r.MAs(37);r.xp6(2),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,Dy))}}function Kb(v,Ne){1&v&&r.GkF(0)}const UP=()=>({$implicit:"types"});function Iy(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"div",2),r.YNc(2,Kb,1,0,"ng-container",3),r.qZA(),r.BQk()),2&v){r.oxw();const F=r.MAs(37);r.xp6(2),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,UP))}}function Sy(v,Ne){1&v&&r.GkF(0)}function BP(v,Ne){1&v&&r.GkF(0)}function ZP(v,Ne){1&v&&r.GkF(0)}function HP(v,Ne){1&v&&r.GkF(0)}function $b(v,Ne){1&v&&r.GkF(0)}function GP(v,Ne){1&v&&r.GkF(0)}function Fy(v,Ne){1&v&&r.GkF(0)}function JP(v,Ne){1&v&&r.GkF(0)}function QP(v,Ne){1&v&&r.GkF(0)}const VP=()=>({$implicit:"approachLocation"}),YP=()=>({$implicit:"approachAltitude"}),WP=()=>({$implicit:"approachWalkingTime"});function zP(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"h3",4),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.TgZ(4,"div",2),r.YNc(5,Fy,1,0,"ng-container",3)(6,JP,1,0,"ng-container",3)(7,QP,1,0,"ng-container",3),r.qZA(),r.BQk()),2&v){r.oxw();const F=r.MAs(37);r.xp6(2),r.hij("",r.lcZ(3,7,"imxtools.metainfo.modules_lodge.access")," "),r.xp6(3),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(9,VP)),r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(10,YP)),r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(11,WP))}}function jP(v,Ne){1&v&&r.GkF(0)}function KP(v,Ne){1&v&&r.GkF(0)}function Ly(v,Ne){1&v&&r.GkF(0)}function Ry(v,Ne){1&v&&r.GkF(0)}function $P(v,Ne){1&v&&r.GkF(0)}function qP(v,Ne){1&v&&r.GkF(0)}function ky(v,Ne){1&v&&r.GkF(0)}const XP=()=>({$implicit:"arrivalByTrain"}),eM=()=>({$implicit:"arrivalByBus"}),qb=()=>({$implicit:"arrivalByCar"}),Ny=()=>({$implicit:"parking"});function Xb(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"h3",4),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.TgZ(4,"div",2),r.YNc(5,Ry,1,0,"ng-container",3)(6,$P,1,0,"ng-container",3),r.qZA(),r.TgZ(7,"div",2),r.YNc(8,qP,1,0,"ng-container",3)(9,ky,1,0,"ng-container",3),r.qZA(),r.BQk()),2&v){r.oxw();const F=r.MAs(37);r.xp6(2),r.hij("",r.lcZ(3,9,"imxtools.metainfo.modules_lodge.arrival")," "),r.xp6(3),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(11,XP)),r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(12,eM)),r.xp6(2),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(13,qb)),r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(14,Ny))}}function eC(v,Ne){1&v&&r.GkF(0)}function tM(v,Ne){1&v&&r.GkF(0)}const Uy=()=>({$implicit:"contactLodgeWart"}),By=()=>({$implicit:"contactLodgeHost"});function Zy(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"h3",4),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.TgZ(4,"div",2),r.YNc(5,eC,1,0,"ng-container",3)(6,tM,1,0,"ng-container",3),r.qZA(),r.BQk()),2&v){r.oxw();const F=r.MAs(37);r.xp6(2),r.hij("",r.lcZ(3,5,"imxtools.metainfo.modules_lodge.contact")," "),r.xp6(3),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(7,Uy)),r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(8,By))}}function Hy(v,Ne){1&v&&r.GkF(0)}function nM(v,Ne){1&v&&(r.TgZ(0,"p",18),r._uU(1,"imxplatform.common.no-records"),r.qZA())}function Gy(v,Ne){1&v&&r._UZ(0,"tr",31)}function Jy(v,Ne){1&v&&r._UZ(0,"tr",32)}function tC(v,Ne){1&v&&(r.TgZ(0,"th",33),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.Addressbase.id")))}function wv(v,Ne){if(1&v&&(r.TgZ(0,"td",34)(1,"span"),r._uU(2),r.qZA()()),2&v){const F=Ne.$implicit;r.xp6(2),r.Oqu(F.controls.rowEntity.value.id)}}function nC(v,Ne){1&v&&(r.TgZ(0,"th",35),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.Addressbase.title")))}function Qy(v,Ne){if(1&v&&(r.TgZ(0,"td",36)(1,"span"),r._uU(2),r.ALo(3,"readI18n"),r.qZA()()),2&v){const F=Ne.$implicit;r.xp6(2),r.Oqu(r.lcZ(3,1,F.controls.rowEntity.value.title))}}function Vy(v,Ne){1&v&&r._UZ(0,"th",37)}function Yy(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"a",40),r.NdJ("click",function(){r.CHM(F);const ze=r.oxw().$implicit,It=r.oxw(4);return r.KtG(It.formHandler.removeLineFromCollection("tours",It.tourCollectionDataSource.filteredData.indexOf(ze),It.moduleDataFormGroup))}),r.qZA()}}function Wy(v,Ne){if(1&v&&(r.TgZ(0,"td",38),r.YNc(1,Yy,1,0,"a",39),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(4);r.Q6J("formGroup",F),r.xp6(),r.Q6J("hasFieldWritePermission","tours")("hasFieldWritePermissionFormHandler",re.formHandler)}}function zy(v,Ne){if(1&v&&(r.TgZ(0,"table",19),r.YNc(1,Gy,1,0,"tr",20)(2,Jy,1,0,"tr",21),r.ynx(3,22),r.YNc(4,tC,3,3,"th",23)(5,wv,3,1,"td",24),r.BQk(),r.ynx(6,25),r.YNc(7,nC,3,3,"th",26)(8,Qy,4,3,"td",27),r.BQk(),r.ynx(9,28),r.YNc(10,Vy,1,0,"th",29)(11,Wy,2,3,"td",30),r.BQk(),r.qZA()),2&v){const F=r.oxw(3);r.Q6J("dataSource",F.tourCollectionDataSource),r.xp6(),r.Q6J("matHeaderRowDef",F.tourCollectionColumns),r.xp6(),r.Q6J("matRowDefColumns",F.tourCollectionColumns)}}function jy(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"div",9)(1,"div",10)(2,"h3",4),r._uU(3,"imxtools.metainfo.modules_lodge.assigned-tours"),r.qZA(),r.YNc(4,nM,2,0,"ng-template",null,11,r.W1O),r.TgZ(6,"div",12),r.YNc(7,zy,12,3,"table",13),r.qZA(),r.TgZ(8,"div",14),r._UZ(9,"imx-base-autocomplete",15,16),r.TgZ(11,"button",17),r.NdJ("click",function(){r.CHM(F);const ze=r.MAs(10);return r.oxw(2).addTour(ze.getSelectedId()),r.KtG(ze.writeValue(void 0))}),r._uU(12),r.ALo(13,"translate"),r.qZA()()()()}if(2&v){const F=r.MAs(5),re=r.MAs(10),ze=r.oxw(2);r.xp6(7),r.Q6J("ngIf",ze.tourCollectionDataSource&&ze.tourCollectionDataSource.data.length>0)("ngIfElse",F),r.xp6(2),r.Q6J("autocompleteService",ze.addressbaseAutocompleteService)("autocompleteFilter",ze.addressbaseAutocompleteFilter)("label","imxtools.metainfo.modules_lodge.add-tours"),r.xp6(2),r.Q6J("disabled",!re.getSelectedId()),r.xp6(),r.hij(" ",r.lcZ(13,7,"imxplatform.common.add")," ")}}const Ky=()=>({$implicit:"tourInformation"});function iM(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"h3",4),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.TgZ(4,"div",2),r.YNc(5,Hy,1,0,"ng-container",3),r.qZA(),r.YNc(6,jy,14,9,"div",8),r.ALo(7,"async"),r.BQk()),2&v){const F=r.oxw(),re=r.MAs(37);r.xp6(2),r.hij("",r.lcZ(3,4,"imxtools.metainfo.modules_lodge.tours")," "),r.xp6(3),r.Q6J("ngTemplateOutlet",re)("ngTemplateOutletContext",r.DdM(8,Ky)),r.xp6(),r.Q6J("ngIf",r.lcZ(7,6,F.formHandler.hasReadPermission("LodgeAddressbase:tours")))}}function Dv(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",41),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById("metainfos:modules_lodge:"+F))("control",re.moduleDataFormGroup.get(F))("form",re.formHandler.formGroup.get("metainfos"))("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}const Xx=()=>({$implicit:"altitude"}),oM=()=>({$implicit:"pathInformation"}),rM=()=>({$implicit:"surroundingInformation"}),aM=()=>({$implicit:"winterRoom"}),Iv=()=>({$implicit:"emergencyRoom"}),iC=()=>({$implicit:"beds"}),oC=()=>({$implicit:"dormitories"}),$y=()=>({$implicit:"makeshiftBeds"}),rC=()=>["LodgeAddressbase:approachLocation","LodgeAddressbase:approachAltitude","LodgeAddressbase:approachWalkingTime"],aC=()=>({$implicit:"utmNorth"}),sM=()=>({$implicit:"utmEast"}),lM=()=>({$implicit:"referenceMeridian"}),cM=()=>["LodgeAddressbase:arrivalByTrain","LodgeAddressbase:arrivalByBus","LodgeAddressbase:arrivalByCar","LodgeAddressbase:parking"],dM=()=>["LodgeAddressbase:contactLodgeWart","LodgeAddressbase:contactLodgeHost"],qy=()=>["LodgeAddressbase:tourInformation","LodgeAddressbase:tours"];let sC=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(F,re,ze,It,vo){super(F,re),this.entitiesMgr=F,this.dialog=re,this.addressbaseAutocompleteService=ze,this.imxToolsDataAccessService=It,this.changeDetectorRef=vo,this.addressbaseAutocompleteFilter={productlineIds:gd.$C.toString()},this.lodgeRegionAvailable=(0,wn.of)(!1),this.lodgeTypesAvailable=(0,wn.of)(!1),this.lodgeSuitabilitiesAvailable=(0,wn.of)(!1),this.lodgeAdditionalFeaturesAvailable=(0,wn.of)(!1)}ngOnInit(){super.ngOnInit(),this.moduleDataFormGroup.get("tours")&&(this.tourCollectionDataSource=this.prepareTable(this.moduleDataFormGroup.get("tours"),F=>this.tourCollectionDataSource=F),this.tourCollectionColumns=["tourId","title","removeColumn"]),this.lodgeRegionAvailable=this.baseEntityAvailable("LodgeRegion"),this.lodgeTypesAvailable=this.baseEntityAvailable("LodgeType"),this.lodgeSuitabilitiesAvailable=this.baseEntityAvailable("LodgeSuitability"),this.lodgeAdditionalFeaturesAvailable=this.baseEntityAvailable("LodgeAdditionalFeature")}addTour(F){this.imxToolsDataAccessService.getAddressbaseById(F).subscribe(re=>{const ze=this.formHandler.addNewCollectionRow("metainfos:modules_lodge:tours",!0,this.moduleDataFormGroup.get("tours")),It={id:re.id,title:Ji(re.title)};ze.controls[R.ARRAY_ENTITY_FIELD].setValue(It),this.changeDetectorRef.markForCheck()})}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(u.uw),r.Y36(Ce.s),r.Y36(dt.N),r.Y36(r.sBO))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-lodge-addressbase-form-panel"]],features:[r.qOj],decls:38,vars:63,consts:[["title","imxtools.metainfo.modules_lodge.main"],[4,"ngIf"],[1,"form__content-field-row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["translate",""],[4,"hasAnyFieldReadPermission","hasAnyFieldReadPermissionFormHandler"],["imxControl",""],[1,"filter__date-field"],["class","form__content-row",4,"ngIf"],[1,"form__content-row"],[1,"form__content-group"],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[1,"form__content-field-row","autocomplete-row"],[3,"autocompleteService","autocompleteFilter","label"],["tourAutocompleteControl",""],[1,"imx-button","prio2","addButton",3,"disabled","click"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","tourId"],["mat-header-cell","","class","id-column",4,"matHeaderCellDef"],["mat-cell","","class","id-column",4,"matCellDef"],["matColumnDef","title"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","",1,"id-column"],["mat-cell","",1,"id-column"],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],["class","icon icon-trash imx-icon-middle imx-icon-clickable",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0),r.YNc(2,Av,2,3,"ng-container",1),r.ALo(3,"async"),r.YNc(4,jb,2,3,"ng-container",1),r.ALo(5,"async"),r.TgZ(6,"div",2),r.YNc(7,RP,1,0,"ng-container",3)(8,wy,1,0,"ng-container",3),r.qZA(),r.YNc(9,NP,3,3,"ng-container",1),r.ALo(10,"async"),r.YNc(11,Iy,3,3,"ng-container",1),r.ALo(12,"async"),r.TgZ(13,"div",2),r.YNc(14,Sy,1,0,"ng-container",3),r.qZA(),r.TgZ(15,"h3",4),r._uU(16),r.ALo(17,"translate"),r.qZA(),r.TgZ(18,"div",2),r.YNc(19,BP,1,0,"ng-container",3)(20,ZP,1,0,"ng-container",3),r.qZA(),r.TgZ(21,"div",2),r.YNc(22,HP,1,0,"ng-container",3)(23,$b,1,0,"ng-container",3)(24,GP,1,0,"ng-container",3),r.qZA(),r.YNc(25,zP,8,12,"ng-container",5),r.TgZ(26,"h3",4),r._uU(27),r.ALo(28,"translate"),r.qZA(),r.TgZ(29,"div",2),r.YNc(30,jP,1,0,"ng-container",3)(31,KP,1,0,"ng-container",3)(32,Ly,1,0,"ng-container",3),r.qZA(),r.YNc(33,Xb,10,15,"ng-container",5)(34,Zy,7,9,"ng-container",5)(35,iM,8,9,"ng-container",5),r.qZA()(),r.YNc(36,Dv,1,5,"ng-template",null,6,r.W1O)),2&re){const It=r.MAs(37);r.xp6(2),r.Q6J("ngIf",r.lcZ(3,36,ze.lodgeSuitabilitiesAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(5,38,ze.lodgeAdditionalFeaturesAvailable)),r.xp6(3),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(48,Xx)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(49,oM)),r.xp6(),r.Q6J("ngIf",r.lcZ(10,40,ze.lodgeRegionAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(12,42,ze.lodgeTypesAvailable)),r.xp6(3),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(50,rM)),r.xp6(2),r.hij("",r.lcZ(17,44,"imxtools.metainfo.modules_lodge.accommodation")," "),r.xp6(3),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(51,aM)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(52,Iv)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(53,iC)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(54,oC)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(55,$y)),r.xp6(),r.Q6J("hasAnyFieldReadPermission",r.DdM(56,rC))("hasAnyFieldReadPermissionFormHandler",ze.formHandler),r.xp6(2),r.hij("",r.lcZ(28,46,"imxtools.metainfo.modules_lodge.geoinformation")," "),r.xp6(3),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(57,aC)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(58,sM)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(59,lM)),r.xp6(),r.Q6J("hasAnyFieldReadPermission",r.DdM(60,cM))("hasAnyFieldReadPermissionFormHandler",ze.formHandler),r.xp6(),r.Q6J("hasAnyFieldReadPermission",r.DdM(61,dM))("hasAnyFieldReadPermissionFormHandler",ze.formHandler),r.xp6(),r.Q6J("hasAnyFieldReadPermission",r.DdM(62,qy))("hasAnyFieldReadPermissionFormHandler",ze.formHandler)}},dependencies:[SP.h,Ft.A,Ey.l,nl.X,hl.F,e.O5,e.tP,s.JL,ue.BZ,ue.fO,ue.as,ue.w1,ue.Dz,ue.nj,ue.ge,ue.ev,ue.XQ,ue.Gk,s.sg,et.Pi,Js.Z,Ms.U,Fa.j,e.Ov,et.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.autocomplete-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.autocomplete-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}"],changeDetection:0})}return v})();function mM(v,Ne){1&v&&r.GkF(0)}function Xy(v,Ne){1&v&&r.GkF(0)}function eO(v,Ne){1&v&&r.GkF(0)}function uM(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",4),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById("metainfos:modules_occupancy:"+F))("control",re.moduleDataFormGroup.get(F))("form",re.formHandler.formGroup.get("metainfos"))("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}const tO=()=>({$implicit:"sensorFusionStrategy"}),nO=()=>({$implicit:"sensors"}),iO=()=>({$implicit:"autoGenerateAnnouncement"});let oO=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(F,re){super(F,re),this.entitiesMgr=F,this.dialog=re,this.modulePath="metainfos:modules_occupancy"}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(u.uw))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-occupancy-addressbase-form-panel"]],features:[r.qOj],decls:10,vars:9,consts:[["title","imxtools.metainfo.modules_occupancy.main"],[1,"form__content-field-row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["occupancyAddressbase",""],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0)(2,"div",1),r.YNc(3,mM,1,0,"ng-container",2),r.qZA(),r.TgZ(4,"div",1),r.YNc(5,Xy,1,0,"ng-container",2),r.qZA(),r.TgZ(6,"div",1),r.YNc(7,eO,1,0,"ng-container",2),r.qZA()()(),r.YNc(8,uM,1,5,"ng-template",null,3,r.W1O)),2&re){const It=r.MAs(9);r.xp6(3),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(6,tO)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(7,nO)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(8,iO))}},dependencies:[Ft.A,e.tP,Js.Z,Ms.U],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}@media (min-width: 1401px){.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:50%;flex-grow:0}}@media (min-width: 901px) and (max-width: 1400px){.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:75%;flex-grow:0}}"],changeDetection:0})}return v})();function rO(v,Ne){1&v&&(r.TgZ(0,"p",4),r._uU(1,"imxplatform.common.no-records"),r.qZA())}function pM(v,Ne){1&v&&r._UZ(0,"tr",15)}function lC(v,Ne){1&v&&r._UZ(0,"tr",16)}function _M(v,Ne){if(1&v&&(r.TgZ(0,"th",17),r._uU(1),r.qZA()),2&v){const F=r.oxw(2);r.xp6(),r.Oqu(F.formHandler.getFormFieldLabel("metainfos:modules_price_list:priceLists:priceItems:priceValues:type"))}}function fM(v,Ne){if(1&v&&(r.TgZ(0,"td",18)(1,"span"),r._uU(2),r.ALo(3,"readI18n"),r.qZA()()),2&v){const F=Ne.$implicit;r.xp6(2),r.Oqu(r.lcZ(3,1,F.controls.type.value.i18nName))}}function A(v,Ne){if(1&v&&(r.TgZ(0,"th",17),r._uU(1),r.qZA()),2&v){const F=r.oxw(2);r.xp6(),r.Oqu(F.formHandler.getFormFieldLabel("metainfos:modules_price_list:priceLists:priceItems:priceValues:value"))}}function Gt(v,Ne){if(1&v&&(r.TgZ(0,"td",18),r._UZ(1,"imx-form-control",19),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById("metainfos:modules_price_list:priceLists:priceItems:priceValues:value"))("control",F.controls.value)("form",re.formGroup)("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}function f(v,Ne){1&v&&r._UZ(0,"th",20)}function L(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"a",23),r.NdJ("click",function(){r.CHM(F);const ze=r.oxw().$implicit,It=r.oxw(2);return r.KtG(It.typeRemoved.emit(ze.controls.type.value.id))}),r.qZA()}}function V(v,Ne){if(1&v&&(r.TgZ(0,"td",21),r.YNc(1,L,1,0,"a",22),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.Q6J("formGroup",F),r.xp6(),r.Q6J("hasFieldWritePermission","metainfos:modules_price_list:priceLists:priceItems")("hasFieldWritePermissionFormHandler",re.formHandler)}}function Xe(v,Ne){if(1&v&&(r.TgZ(0,"table",5),r.YNc(1,pM,1,0,"tr",6)(2,lC,1,0,"tr",7),r.ynx(3,8),r.YNc(4,_M,2,1,"th",9)(5,fM,4,3,"td",10),r.BQk(),r.ynx(6,11),r.YNc(7,A,2,1,"th",9)(8,Gt,2,5,"td",10),r.BQk(),r.ynx(9,12),r.YNc(10,f,1,0,"th",13)(11,V,2,3,"td",14),r.BQk(),r.qZA()),2&v){const F=r.oxw();r.Q6J("dataSource",F.dataSource),r.xp6(),r.Q6J("matHeaderRowDef",F.displayedColumns),r.xp6(),r.Q6J("matRowDefColumns",F.displayedColumns)}}let An=(()=>{class v{constructor(F,re){this.dataObjectAutocompleteRegistry=F,this.translateService=re,this.typeRemoved=new r.vpe,this.typeAdded=new r.vpe,this.selectValueOptionsMap=new Map,this.selectableTypeOptions=[],this.addControl=new s.p4,this.addField=new R.Select("addControl","",{initialValue:-1,placeholder:"imxtools.metainfo.modules_price_list.add-price"}),this.destroy$=new nn.xQ}ngOnInit(){this.registerAddButton()}ngOnChanges(F){this.prepareColumns(),this.preparePriceValueTable(),this.selectableTypeOptions=this.notAssignedTypes.map(re=>({label:re.i18nName,value:re.id?re.id:-1,sortingValue:re.sortingValue?re.sortingValue:0})).sort((re,ze)=>re.sortingValue-ze.sortingValue)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}registerAddButton(){this.addControl.setValue(R.SELECT_PLACEHOLDER_VALUE),this.addControl.valueChanges.pipe((0,rn.R)(this.destroy$),(0,yl.h)(F=>void 0!==F&&F!==R.SELECT_PLACEHOLDER_VALUE)).subscribe(F=>{this.typeAdded.emit(F),this.addControl.setValue(R.SELECT_PLACEHOLDER_VALUE)})}preparePriceValueTable(){const F=this.formGroup.get("priceValues");if(!F)throw new Error("Price values: cannot prepareTable for undefined formArray");const re=new ue.by(F.controls);re.data.sort((ze,It)=>ze.get("type").value.sortingValue-It.get("type").value.sortingValue),re.data=re.data.filter(ze=>this.filterAttributes(ze)),this.dataSource=re}filterAttributes(F){const re=F.get("type").value.id;return this.assignedTypes.some(ze=>ze.id===re)}prepareColumns(){this.displayedColumns=["type"],this.displayedColumns.push("value"),this.displayedColumns.push("removeColumn")}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.CoreDataObjectAutocompleteRegistry),r.Y36(et.sK))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-edit-price-values-table"]],inputs:{formHandler:"formHandler",formGroup:"formGroup",assignedTypes:"assignedTypes",notAssignedTypes:"notAssignedTypes"},outputs:{typeRemoved:"typeRemoved",typeAdded:"typeAdded"},features:[r.TTD],decls:6,vars:8,consts:[["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[1,"imx-button-select",3,"disableControl","field","control","form","formHandler","optionProvider"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","type"],["mat-header-cell","","translate","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","","translate",""],["mat-cell",""],[3,"field","control","form","formHandler","config"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],["class","icon icon-trash imx-icon-middle imx-icon-clickable",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"div"),r.YNc(1,rO,2,0,"ng-template",null,0,r.W1O),r.TgZ(3,"div",1),r.YNc(4,Xe,12,3,"table",2),r.qZA(),r._UZ(5,"imx-select",3),r.qZA()),2&re){const It=r.MAs(2);r.xp6(4),r.Q6J("ngIf",ze.dataSource&&ze.dataSource.data.length>0)("ngIfElse",It),r.xp6(),r.Q6J("disableControl",0===ze.selectableTypeOptions.length)("field",ze.addField)("control",ze.addControl)("form",ze.formGroup)("formHandler",ze.formHandler)("optionProvider",ze.selectableTypeOptions)}},dependencies:[Ft.A,no.H,nl.X,hl.F,e.O5,s.JL,ue.BZ,ue.fO,ue.as,ue.w1,ue.Dz,ue.nj,ue.ge,ue.ev,ue.XQ,ue.Gk,s.sg,et.Pi,Fa.j],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}.date[_ngcontent-%COMP%]{max-width:130px}"],changeDetection:0})}return v})();function Qo(v,Ne){1&v&&(r.ynx(0),r.TgZ(1,"p",2),r._uU(2,"imxplatform.common.no-records"),r.qZA(),r.BQk())}let Dr=(()=>{class v{constructor(F){this.entitiesMgr=F,this.assignedPriceValueTypes=[],this.notAssignedPriceValueTypes=[],this.allPriceValueTypes=[],this.destroy$=new nn.xQ}ngOnInit(){this.priceValueTypes.pipe((0,rn.R)(this.destroy$)).subscribe(F=>{this.allPriceValueTypes=F,this.formGroup.get("priceValues").controls.forEach(re=>{if(re.get("type")&&re.get("type").value){const ze=re.get("type"),It=F.find(vo=>vo.id===ze.value.id);It&&ze.setValue(It)}}),this.buildGroups()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}get types(){return this.allPriceValueTypes.sort((F,re)=>F.id-re.id)}buildGroups(){this.assignedPriceValueTypes=[],this.notAssignedPriceValueTypes=[];const F=this.getAssignedTypes();this.allPriceValueTypes.forEach(re=>{F.some(ze=>ze.id===re.id)?this.assignedPriceValueTypes.push(re):this.notAssignedPriceValueTypes.push(re)})}getAssignedTypes(){return this.formGroup.get("priceValues").controls.map(F=>{if(F.get("type")&&F.get("type").value)return F.get("type").value})}removePriceValue(F){const re=this.formGroup.get("priceValues").controls.findIndex(ze=>ze.get("type").value.id===F);re>-1&&this.formGroup.get("priceValues").removeAt(re),this.formGroup.get("priceValues").markAsDirty(),this.buildGroups()}addPriceValue(F){const re=this.formHandler.addNewCollectionRow("metainfos:modules_price_list:priceLists:priceItems:priceValues",!1);re.controls.type.setValue({id:F}),re.controls.value.setValue(0),this.entitiesMgr.getEntityWithIdOfType("PriceValueType",F).subscribe(ze=>{re.controls.type.setValue(ze),this.formGroup.get("priceValues").push(re),this.formGroup.get("priceValues").markAsDirty(),this.buildGroups()})}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-edit-price-values"]],inputs:{formHandler:"formHandler",formGroup:"formGroup",priceValueTypes:"priceValueTypes",moduleId:"moduleId"},decls:3,vars:5,consts:[[4,"ngIf"],[3,"formHandler","formGroup","assignedTypes","notAssignedTypes","typeRemoved","typeAdded"],["translate","",1,"txt-grey","txt-md-sm","no-records"]],template:function(re,ze){1&re&&(r.YNc(0,Qo,3,0,"ng-container",0),r.ynx(1),r.TgZ(2,"imx-edit-price-values-table",1),r.NdJ("typeRemoved",function(vo){return ze.removePriceValue(vo)})("typeAdded",function(vo){return ze.addPriceValue(vo)}),r.qZA(),r.BQk()),2&re&&(r.Q6J("ngIf",0===ze.types.length),r.xp6(2),r.Q6J("formHandler",ze.formHandler)("formGroup",ze.formGroup)("assignedTypes",ze.assignedPriceValueTypes)("notAssignedTypes",ze.notAssignedPriceValueTypes))},dependencies:[e.O5,s.JL,s.sg,et.Pi,An],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}h4[_ngcontent-%COMP%]{padding-top:15px}"]})}return v})();function es(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"label",8),r._uU(2,"entity.PriceItem.priceValues"),r.qZA(),r._UZ(3,"imx-edit-price-values",9)(4,"br"),r.BQk()),2&v){const F=r.oxw();r.xp6(3),r.Q6J("formHandler",F.data.formHandler)("formGroup",F.data.formRow)("priceValueTypes",F.priceValueTypes)}}function Al(v,Ne){1&v&&r.GkF(0)}function Rl(v,Ne){1&v&&r.GkF(0)}function $l(v,Ne){1&v&&r.GkF(0)}function kl(v,Ne){1&v&&r.GkF(0)}function Jl(v,Ne){1&v&&r.GkF(0)}function od(v,Ne){1&v&&r.GkF(0)}function dm(v,Ne){1&v&&r.GkF(0)}function Ku(v,Ne){1&v&&r.GkF(0)}function Xh(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",10),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.data.arrayField.getChildField(F))("control",re.data.formRow.get(F))("form",re.data.formRow)("formHandler",re.data.formHandler)("config",re.data.formHandler.formConfiguration)}}const ex=()=>({$implicit:"priceItemCategory"}),cC=()=>({$implicit:"categoryDescription"}),aO=()=>({$implicit:"currency"}),gM=()=>({$implicit:"ageFrom"}),hM=()=>({$implicit:"ageTo"}),xM=()=>({$implicit:"amountPeopleFrom"}),vM=()=>({$implicit:"amountPeopleTo"}),qM=()=>({$implicit:"description"});let XM=(()=>{class v{constructor(F,re){this.data=F,this.entitiesMgr=re,this.priceValueTypesAvailable=(0,wn.of)(!1)}ngOnInit(){this.priceValueTypes=this.entitiesMgr.getAllEntitiesOfType("PriceValueType").pipe((0,Je.U)(F=>F.items.map(re=>re))),this.priceValueTypesAvailable=this.priceValueTypes.pipe((0,wo.w)(F=>(0,wn.of)(F.length>0)))}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(u.WI),r.Y36(Te.qB))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["ng-component"]],decls:18,vars:33,consts:[["icon","icon-pencil--squares","dialogType","form",3,"heading","submitButtonDisabled"],["form-header","",3,"formHandler"],["id","price-item-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["imxFormControl",""],["translate",""],[3,"formHandler","formGroup","priceValueTypes"],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-dialog",0),r.ALo(1,"async"),r._UZ(2,"imx-language-switch-button",1),r.TgZ(3,"form",2)(4,"div",3)(5,"div",4),r.YNc(6,es,5,3,"ng-container",5),r.ALo(7,"async"),r.YNc(8,Al,1,0,"ng-container",6)(9,Rl,1,0,"ng-container",6)(10,$l,1,0,"ng-container",6)(11,kl,1,0,"ng-container",6)(12,Jl,1,0,"ng-container",6)(13,od,1,0,"ng-container",6)(14,dm,1,0,"ng-container",6)(15,Ku,1,0,"ng-container",6),r.qZA()()()(),r.YNc(16,Xh,1,5,"ng-template",null,7,r.W1O)),2&re){const It=r.MAs(17);r.Q6J("heading",ze.data.title)("submitButtonDisabled",ze.data.formRow.invalid||ze.data.formRow.pristine||!r.lcZ(1,21,ze.data.formHandler.hasSavePermission())),r.xp6(2),r.Q6J("formHandler",ze.data.formHandler),r.xp6(),r.Q6J("formGroup",ze.data.formHandler.formGroup),r.xp6(3),r.Q6J("ngIf",r.lcZ(7,23,ze.priceValueTypesAvailable)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(25,ex)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(26,cC)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(27,aO)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(28,gM)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(29,hM)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(30,xM)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(31,vM)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(32,qM))}},dependencies:[Wi.a,Ft.A,da.H,e.O5,e.tP,s._Y,s.JL,s.sg,et.Pi,Dr,e.Ov]})}return v})();var eT=a(27553),tT=a(47928);function W2(v,Ne){1&v&&r.GkF(0)}function bM(v,Ne){1&v&&r.GkF(0)}function CM(v,Ne){1&v&&r.GkF(0)}function nT(v,Ne){1&v&&r.GkF(0)}function yM(v,Ne){1&v&&r.GkF(0)}function z2(v,Ne){1&v&&r.GkF(0)}function j2(v,Ne){1&v&&(r.TgZ(0,"p",12),r._uU(1,"imxplatform.common.no-records"),r.qZA())}function OM(v,Ne){1&v&&r._UZ(0,"tr",25)}function K2(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"tr",26),r.NdJ("click",function(){const It=r.CHM(F).$implicit,vo=r.oxw(2);return r.KtG(vo.editPriceItem(It))}),r.qZA()}}function iT(v,Ne){1&v&&(r.TgZ(0,"th",27),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.PriceItem.category")))}function e1(v,Ne){if(1&v&&(r.TgZ(0,"td",28),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.lcZ(2,1,re.getPriceCategoryLabel(F.controls.priceItemCategory.value))," ")}}function oT(v,Ne){1&v&&(r.TgZ(0,"th",27),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.PriceItem.categoryDescription")))}function $2(v,Ne){if(1&v&&(r.TgZ(0,"td",29),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit;r.xp6(),r.hij(" ",r.lcZ(2,1,F.controls.categoryDescription.value)," ")}}function mw(v,Ne){1&v&&(r.TgZ(0,"th",27),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.PriceItem.priceValues")))}function PM(v,Ne){if(1&v&&(r.TgZ(0,"span",31)(1,"strong"),r._uU(2),r.ALo(3,"readI18n"),r.qZA(),r._uU(4),r.ALo(5,"readI18n"),r._UZ(6,"br"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw().$implicit,ze=r.oxw(2);r.xp6(2),r.hij("",r.lcZ(3,3,null==F.type?null:F.type.i18nName),":"),r.xp6(2),r.AsE(" ",F.value," ",r.lcZ(5,5,ze.getCurrencyLabel(re.controls.currency.value)),"")}}function MM(v,Ne){if(1&v&&(r.TgZ(0,"td",29),r.YNc(1,PM,7,7,"span",30),r.qZA()),2&v){const F=Ne.$implicit;r.xp6(),r.Q6J("ngForOf",F.controls.priceValues.value)}}function q2(v,Ne){1&v&&r._UZ(0,"th",32)}function rT(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"imx-action-menu-item",36),r.NdJ("click",function(){r.CHM(F);const ze=r.oxw().$implicit,It=r.oxw(2);return r.KtG(It.data.formHandler.removeLineFromCollection("priceItems",It.priceItemsDataSource.filteredData.indexOf(ze),It.data.formRow))}),r._uU(1," imxplatform.common-entity.list.remove "),r.qZA()}2&v&&r.Q6J("icon","icon-trash")}function aT(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"td",33)(1,"imx-dropup-button")(2,"imx-action-menu")(3,"imx-action-menu-item",34),r.NdJ("click",function(){const It=r.CHM(F).$implicit,vo=r.oxw(2);return r.KtG(vo.editPriceItem(It))}),r._uU(4," imxplatform.common-entity.list.details "),r.qZA(),r.YNc(5,rT,2,1,"imx-action-menu-item",35),r.qZA()()()}if(2&v){const F=Ne.$implicit,re=r.oxw(2);r.Q6J("formGroup",F),r.xp6(3),r.Q6J("icon","icon-magnifier"),r.xp6(2),r.Q6J("hasSavePermission",re.data.formHandler)}}function X2(v,Ne){if(1&v&&(r.TgZ(0,"table",13),r.YNc(1,OM,1,0,"tr",14)(2,K2,1,0,"tr",15),r.ynx(3,16),r.YNc(4,iT,3,3,"th",17)(5,e1,3,3,"td",18),r.BQk(),r.ynx(6,19),r.YNc(7,oT,3,3,"th",17)(8,$2,3,3,"td",20),r.BQk(),r.ynx(9,21),r.YNc(10,mw,3,3,"th",17)(11,MM,2,1,"td",20),r.BQk(),r.ynx(12,22),r.YNc(13,q2,1,0,"th",23)(14,aT,6,3,"td",24),r.BQk(),r.qZA()),2&v){const F=r.oxw();r.Q6J("dataSource",F.priceItemsDataSource),r.xp6(),r.Q6J("matHeaderRowDef",F.priceItemsColumns),r.xp6(),r.Q6J("matRowDefColumns",F.priceItemsColumns)}}function sT(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",37),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.data.arrayField.getChildField(F))("control",re.data.formRow.get(F))("form",re.data.formRow)("formHandler",re.data.formHandler)("config",re.data.formHandler.formConfiguration)}}const lT=()=>({$implicit:"i18nName"}),eE=()=>({$implicit:"validFrom"}),sO=()=>({$implicit:"validUntil"}),cT=()=>({$implicit:"annually"}),TM=()=>({$implicit:"description"}),dT=()=>({$implicit:"attributes"});let mT=(()=>{class v{constructor(F,re,ze,It,vo){this.dialog=F,this.changeDetectorRef=re,this.priceItemCategoryProviderService=ze,this.currencyOptionProviderService=It,this.data=vo,this.priceItemsColumns=[],this.priceItemsDataSource=new ue.by(this.data.formRow.get("priceItems").controls),this.priceItemsColumns.push("priceItemCategory","categoryDescription","priceValues","actionColumn"),this.priceItemCategoryProviderService.getOptions(void 0,void 0).subscribe(Os=>this.priceItemCategoryOptions=Os),this.currencyOptionProviderService.getOptions(void 0,void 0).subscribe(Os=>this.currencyOptions=Os)}getPriceCategoryLabel(F){return F>0&&this.priceItemCategoryOptions?this.priceItemCategoryOptions.find(re=>re.value===F).label:""}getCurrencyLabel(F){return F>0&&this.currencyOptions?this.currencyOptions.find(re=>re.value===F).label:""}editPriceItem(F){if(F){const re=F.value;this.openPriceItemDialog(F).afterClosed().subscribe(It=>{It?this.changeDetectorRef.markForCheck():F.reset(re,{onlySelf:!0})})}}createPriceItem(){const F=this.data.formHandler.addNewCollectionRow("metainfos:modules_price_list:priceLists:priceItems",!1);F.markAsPristine({onlySelf:!0}),this.openPriceItemDialog(F).afterClosed().subscribe(ze=>{ze&&(this.data.formRow.get("priceItems").push(F),this.data.formRow.get("priceItems").markAsDirty(),this.priceItemsDataSource=new ue.by(this.data.formRow.get("priceItems").controls),this.changeDetectorRef.markForCheck())})}openPriceItemDialog(F){return this.dialog.open(XM,{...R.DialogDefaultSizes.FORM_BIG,data:{title:"entity.PriceDefinition.priceItems",arrayField:this.data.formHandler.formConfiguration.findArrayFieldById("metainfos:modules_price_list:priceLists:priceItems"),formRow:F,formHandler:this.data.formHandler}})}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(u.uw),r.Y36(r.sBO),r.Y36(tT.K),r.Y36(eT.V),r.Y36(u.WI))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["ng-component"]],decls:25,vars:32,consts:[["icon","icon-pencil--squares","dialogType","form",3,"heading","submitButtonDisabled"],["form-header","",3,"formHandler"],["id","price-list-edit",3,"formGroup"],[1,"dialog-form"],[1,"dialog-form-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["translate",""],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[1,"imx-button","prio2",3,"disabled","click"],["imxFormControl",""],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","clickable",3,"click",4,"matRowDef","matRowDefColumns"],["matColumnDef","priceItemCategory"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","categoryDescription"],["mat-cell","","class","txt-ellipsis",4,"matCellDef"],["matColumnDef","priceValues"],["matColumnDef","actionColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row","",1,"clickable",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-cell","",1,"txt-ellipsis"],["class","txt-md-sm",4,"ngFor","ngForOf"],[1,"txt-md-sm"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],[3,"icon","click"],["additionalStyle","delete",3,"icon","click",4,"hasSavePermission"],["additionalStyle","delete",3,"icon","click"],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-dialog",0),r.ALo(1,"async"),r._UZ(2,"imx-language-switch-button",1),r.TgZ(3,"form",2)(4,"div",3)(5,"div",4),r.YNc(6,W2,1,0,"ng-container",5)(7,bM,1,0,"ng-container",5)(8,CM,1,0,"ng-container",5)(9,nT,1,0,"ng-container",5)(10,yM,1,0,"ng-container",5)(11,z2,1,0,"ng-container",5),r.qZA(),r.TgZ(12,"div",4)(13,"h3",6),r._uU(14,"entity.PriceDefinition.priceItems"),r.qZA(),r.YNc(15,j2,2,0,"ng-template",null,7,r.W1O),r.TgZ(17,"div",8),r.YNc(18,X2,15,3,"table",9),r.qZA(),r.TgZ(19,"button",10),r.NdJ("click",function(){return ze.createPriceItem()}),r.ALo(20,"async"),r._uU(21),r.ALo(22,"translate"),r.qZA()()()()(),r.YNc(23,sT,1,5,"ng-template",null,11,r.W1O)),2&re){const It=r.MAs(16),vo=r.MAs(24);r.Q6J("heading",ze.data.title)("submitButtonDisabled",ze.data.formRow.invalid||!r.lcZ(1,20,ze.data.formHandler.hasSavePermission())),r.xp6(2),r.Q6J("formHandler",ze.data.formHandler),r.xp6(),r.Q6J("formGroup",ze.data.formHandler.formGroup),r.xp6(3),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(26,lT)),r.xp6(),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(27,eE)),r.xp6(),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(28,sO)),r.xp6(),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(29,cT)),r.xp6(),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(30,TM)),r.xp6(),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(31,dT)),r.xp6(7),r.Q6J("ngIf",ze.priceItemsDataSource&&ze.priceItemsDataSource.data.length>0)("ngIfElse",It),r.xp6(),r.Q6J("disabled",!r.lcZ(20,22,ze.data.formHandler.hasSavePermission())),r.xp6(2),r.hij(" ",r.lcZ(22,24,"imxtools.metainfo.modules_price_list.create-price-item")," ")}},dependencies:[Wi.a,Ft.A,da.H,Fr.R,e.sg,e.O5,e.tP,s._Y,s.JL,ue.BZ,ue.fO,ue.as,ue.w1,ue.Dz,ue.nj,ue.ge,ue.ev,ue.XQ,ue.Gk,s.sg,et.Pi,en.p,qn.z,hi.t,Fa.j,e.Ov,et.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}h3[_ngcontent-%COMP%]{margin-bottom:5px}"]})}return v})();function uT(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"imx-accordion-panel",9),r._UZ(2,"imx-edit-extended-attributes",10)(3,"br"),r.qZA(),r.BQk()),2&v){const F=r.oxw();r.xp6(2),r.Q6J("formHandler",F.formHandler)("formGroup",F.moduleDataFormGroup)("fieldPrefix","metainfos:modules_price_list")("extendedAttributes",F.extendedAttributes)}}function pT(v,Ne){1&v&&r.GkF(0)}function tE(v,Ne){1&v&&r.GkF(0)}function nE(v,Ne){1&v&&(r.TgZ(0,"p",11),r._uU(1,"imxplatform.common.no-records"),r.qZA())}function iE(v,Ne){1&v&&r._UZ(0,"tr",27)}function oE(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"tr",28),r.NdJ("click",function(){const It=r.CHM(F).$implicit,vo=r.oxw(2);return r.KtG(vo.editPriceList(It))}),r.qZA()}}function _T(v,Ne){1&v&&(r.TgZ(0,"th",29),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.PriceList.name")))}function uw(v,Ne){if(1&v&&(r.TgZ(0,"td",30),r._uU(1),r.ALo(2,"readI18n"),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",r.xi3(2,1,F.controls.i18nName.value,re.formEditLanguage.name)," ")}}function fT(v,Ne){1&v&&(r.TgZ(0,"th",31),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.PriceDefinition.description")))}function rE(v,Ne){if(1&v&&(r._UZ(0,"td",32),r.ALo(1,"stripTags"),r.ALo(2,"readI18n")),2&v){const F=Ne.$implicit,re=r.oxw(2);r.Q6J("innerHTML",r.lcZ(1,1,r.xi3(2,3,F.controls.description.value,re.formEditLanguage.name)),r.oJD)}}function aE(v,Ne){1&v&&(r.TgZ(0,"th",29),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.PriceList.validFrom")))}function pw(v,Ne){if(1&v&&(r.TgZ(0,"td",30),r._uU(1),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",re.renderDateColumn(F.controls.validFrom)," ")}}function sE(v,Ne){1&v&&(r.TgZ(0,"th",29),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.PriceList.validUntil")))}function gT(v,Ne){if(1&v&&(r.TgZ(0,"td",30),r._uU(1),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.hij(" ",re.renderDateColumn(F.controls.validUntil)," ")}}function lO(v,Ne){1&v&&(r.TgZ(0,"th",29),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.PriceList.annually")))}function _w(v,Ne){if(1&v&&(r.TgZ(0,"td",30)(1,"span"),r._uU(2),r.ALo(3,"translate"),r.qZA()()),2&v){const F=Ne.$implicit;r.xp6(2),r.Oqu(r.lcZ(3,1,F.controls.annually.value?"imxplatform.common.yes":"imxplatform.common.no"))}}function fw(v,Ne){1&v&&r._UZ(0,"th",33)}function lE(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"imx-action-menu-item",37),r.NdJ("click",function(){r.CHM(F);const ze=r.oxw().$implicit,It=r.oxw(2);return r.KtG(It.formHandler.removeLineFromCollection("priceLists",It.priceListCollectionDataSource.filteredData.indexOf(ze),It.moduleDataFormGroup))}),r._uU(1," imxplatform.common-entity.list.remove "),r.qZA()}2&v&&r.Q6J("icon","icon-trash")}function hT(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"td",34)(1,"imx-dropup-button")(2,"imx-action-menu")(3,"imx-action-menu-item",35),r.NdJ("click",function(){const It=r.CHM(F).$implicit,vo=r.oxw(2);return r.KtG(vo.editPriceList(It))}),r._uU(4," imxplatform.common-entity.list.details "),r.qZA(),r.YNc(5,lE,2,1,"imx-action-menu-item",36),r.qZA()()()}if(2&v){const F=Ne.$implicit,re=r.oxw(2);r.Q6J("formGroup",F),r.xp6(3),r.Q6J("icon","icon-magnifier"),r.xp6(2),r.Q6J("hasSavePermission",re.formHandler)}}function xT(v,Ne){if(1&v&&(r.TgZ(0,"table",12),r.YNc(1,iE,1,0,"tr",13)(2,oE,1,0,"tr",14),r.ynx(3,15),r.YNc(4,_T,3,3,"th",16)(5,uw,3,4,"td",17),r.BQk(),r.ynx(6,18),r.YNc(7,fT,3,3,"th",19)(8,rE,3,6,"td",20),r.BQk(),r.ynx(9,21),r.YNc(10,aE,3,3,"th",16)(11,pw,2,1,"td",17),r.BQk(),r.ynx(12,22),r.YNc(13,sE,3,3,"th",16)(14,gT,2,1,"td",17),r.BQk(),r.ynx(15,23),r.YNc(16,lO,3,3,"th",16)(17,_w,4,3,"td",17),r.BQk(),r.ynx(18,24),r.YNc(19,fw,1,0,"th",25)(20,hT,6,3,"td",26),r.BQk(),r.qZA()),2&v){const F=r.oxw();r.Q6J("dataSource",F.priceListCollectionDataSource),r.xp6(),r.Q6J("matHeaderRowDef",F.priceListCollectionColumns),r.xp6(),r.Q6J("matRowDefColumns",F.priceListCollectionColumns)}}function vT(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",38),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById("metainfos:modules_price_list:"+F))("control",re.moduleDataFormGroup.get(F))("form",re.formHandler.formGroup.get("metainfos"))("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}const bT=()=>({$implicit:"paymentOptions"}),CT=()=>({$implicit:"paymentInformation"});let yT=(()=>{class v extends R.AbstractExtendedAttributeAwareFormPanelComponent{constructor(F,re,ze,It,vo){super(F,re),this.entitiesMgr=F,this.dialog=re,this.changeDetectorRef=ze,this.formatterService=It,this.translateService=vo,this.modulePath="metainfos:modules_price_list"}ngOnInit(){super.ngOnInit(),this.moduleDataFormGroup.get("priceLists")&&(this.priceListCollectionDataSource=this.prepareTable(this.moduleDataFormGroup.get("priceLists"),F=>this.priceListCollectionDataSource=F,(F,re)=>(0,R.compareI18n)(F.controls.i18nName.value,re.controls.i18nName.value,this.translateService.currentLang)),this.priceListCollectionColumns=["i18nName","description","validFrom","validUntil","annually","actionColumn"])}editPriceList(F){if(F){const re=F.value;this.openPriceListDialog(F).afterClosed().subscribe(It=>{It?this.changeDetectorRef.markForCheck():F.reset(re,{onlySelf:!0})})}}createPriceList(){const F=this.formHandler.addNewCollectionRow(this.modulePath+":priceLists",!1);this.openPriceListDialog(F).afterClosed().subscribe(ze=>{ze&&(this.moduleDataFormGroup.get("priceLists").push(F),this.moduleDataFormGroup.get("priceLists").markAsDirty(),this.priceListCollectionDataSource=new ue.by(this.moduleDataFormGroup.get("priceLists").controls),this.changeDetectorRef.markForCheck())})}renderDateColumn(F){return F.value?this.formatterService.formatDate(F.value):""}openPriceListDialog(F){return this.dialog.open(mT,{...R.DialogDefaultSizes.FORM_BIG,data:{title:"entity.PriceList.entityName",arrayField:this.formHandler.formConfiguration.findArrayFieldById(this.modulePath+":priceLists"),formRow:F,formHandler:this.formHandler,moduleDataFormGroup:this.moduleDataFormGroup}})}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(u.uw),r.Y36(r.sBO),r.Y36(R.FormatterService),r.Y36(et.sK))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-price-list-addressbase-form-panel"]],features:[r.qOj],decls:21,vars:21,consts:[[4,"ngIf"],["title","entity.PriceListAddressbase.paymentOptions"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["title","entity.PriceListAddressbase.priceLists"],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[1,"imx-button","prio2",3,"disabled","click"],["imxControl",""],["title","entity.PriceListAddressbase.attributeDefinitions"],[3,"formHandler","formGroup","fieldPrefix","extendedAttributes"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","clickable",3,"click",4,"matRowDef","matRowDefColumns"],["matColumnDef","i18nName"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","description"],["mat-header-cell","","class","imx-hide-sm",4,"matHeaderCellDef"],["mat-cell","","class","txt-ellipsis",3,"innerHTML",4,"matCellDef"],["matColumnDef","validFrom"],["matColumnDef","validUntil"],["matColumnDef","annually"],["matColumnDef","actionColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row","",1,"clickable",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","",1,"imx-hide-sm"],["mat-cell","",1,"txt-ellipsis",3,"innerHTML"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],[3,"icon","click"],["additionalStyle","delete",3,"icon","click",4,"hasSavePermission"],["additionalStyle","delete",3,"icon","click"],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-accordion"),r.YNc(1,uT,4,4,"ng-container",0),r.ALo(2,"async"),r.ALo(3,"async"),r.qZA(),r.TgZ(4,"imx-accordion")(5,"imx-accordion-panel",1),r.YNc(6,pT,1,0,"ng-container",2)(7,tE,1,0,"ng-container",2),r.qZA()(),r.TgZ(8,"imx-accordion")(9,"imx-accordion-panel",3),r.YNc(10,nE,2,0,"ng-template",null,4,r.W1O),r.TgZ(12,"div",5),r.YNc(13,xT,21,3,"table",6),r.qZA(),r.TgZ(14,"button",7),r.NdJ("click",function(){return ze.createPriceList()}),r.ALo(15,"async"),r.ALo(16,"async"),r._uU(17),r.ALo(18,"translate"),r.qZA()()(),r.YNc(19,vT,1,5,"ng-template",null,8,r.W1O)),2&re){const It=r.MAs(11),vo=r.MAs(20);r.xp6(),r.Q6J("ngIf",r.lcZ(2,9,ze.extendedAttributesAvailable)&&r.lcZ(3,11,ze.formHandler.hasReadPermission("PriceListAddressbase:attributeDefinitions"))),r.xp6(5),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(19,bT)),r.xp6(),r.Q6J("ngTemplateOutlet",vo)("ngTemplateOutletContext",r.DdM(20,CT)),r.xp6(6),r.Q6J("ngIf",ze.priceListCollectionDataSource&&ze.priceListCollectionDataSource.data.length>0)("ngIfElse",It),r.xp6(),r.Q6J("disabled",!r.lcZ(15,13,ze.formHandler.hasSavePermission())||!r.lcZ(16,15,ze.formHandler.hasSavePermission())),r.xp6(3),r.hij(" ",r.lcZ(18,17,"imxtools.metainfo.modules_price_list.create-price-list")," ")}},dependencies:[gr.E,Ft.A,Fr.R,e.O5,e.tP,s.JL,ue.BZ,ue.fO,ue.as,ue.w1,ue.Dz,ue.nj,ue.ge,ue.ev,ue.XQ,ue.Gk,s.sg,et.Pi,Js.Z,Ms.U,en.p,qn.z,hi.t,Fa.j,xu.p,e.Ov,et.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}"],changeDetection:0})}return v})();function OT(v,Ne){1&v&&r.GkF(0)}function PT(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",4),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById("metainfos:modules_qr_announcement:"+F))("control",re.moduleDataFormGroup.get(F))("form",re.formHandler.formGroup.get("metainfos"))("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}const MT=()=>({$implicit:"pin"});let TT=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(F,re){super(F,re),this.entitiesMgr=F,this.dialog=re,this.modulePath="metainfos:modules_qr_announcement"}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(u.uw))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-qr-announcement-addressbase-form-panel"]],features:[r.qOj],decls:6,vars:3,consts:[["title","imxtools.metainfo.modules_qr_announcement.main"],[1,"form__content-field-row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["qrAnnouncementAddressbase",""],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0)(2,"div",1),r.YNc(3,OT,1,0,"ng-container",2),r.qZA()()(),r.YNc(4,PT,1,5,"ng-template",null,3,r.W1O)),2&re){const It=r.MAs(5);r.xp6(3),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(2,MT))}},dependencies:[Ft.A,e.tP,Js.Z,Ms.U],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}"],changeDetection:0})}return v})();function dC(v,Ne){1&v&&r.GkF(0)}function ET(v,Ne){1&v&&r.GkF(0)}function AT(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"h3",1),r._uU(2,"imxtools.metainfo.modules_particular_condition.main.attributes"),r.qZA(),r._UZ(3,"imx-edit-extended-attributes",6)(4,"br"),r.BQk()),2&v){const F=r.oxw();r.xp6(3),r.Q6J("formHandler",F.formHandler)("formGroup",F.moduleDataFormGroup)("fieldPrefix","metainfos:modules_particular_condition")("extendedAttributes",F.extendedAttributes)}}function wT(v,Ne){1&v&&r.GkF(0)}function DT(v,Ne){1&v&&r.GkF(0)}function IT(v,Ne){1&v&&r.GkF(0)}function ST(v,Ne){1&v&&r.GkF(0)}function cE(v,Ne){1&v&&r.GkF(0)}function gw(v,Ne){1&v&&r.GkF(0)}function hw(v,Ne){1&v&&r.GkF(0)}function FT(v,Ne){1&v&&r.GkF(0)}function LT(v,Ne){1&v&&r.GkF(0)}function RT(v,Ne){1&v&&r.GkF(0)}function dE(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",7),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("ngClass","modules_particular_condition-"+F)("field",re.formHandler.formConfiguration.findFormFieldById("metainfos:modules_particular_condition:"+F))("control",re.moduleDataFormGroup.get(F))("form",re.formHandler.formGroup.get("metainfos"))("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}const kT=()=>({$implicit:"dateFrom"}),mC=()=>({$implicit:"dateTo"}),NT=()=>({$implicit:"generalInformationTitle"}),mE=()=>({$implicit:"generalInformation"}),uE=()=>({$implicit:"openingHours"}),X_=()=>({$implicit:"openingHoursLink"}),Sv=()=>({$implicit:"reservation"}),pE=()=>({$implicit:"reservationLink"}),_E=()=>({$implicit:"visitorInformation"}),xw=()=>({$implicit:"waitingTime"}),vw=()=>({$implicit:"preventiveMeasures"}),uC=()=>({$implicit:"securityMeasures"});let fE=(()=>{class v extends R.AbstractExtendedAttributeAwareFormPanelComponent{constructor(F,re){super(F,re),this.entitiesMgr=F,this.dialog=re}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(u.uw))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-particular-condition-addressbase-form-panel"]],features:[r.qOj],decls:24,vars:41,consts:[["title","imxtools.metainfo.modules_particular_condition.main.header"],["translate",""],[1,"imx-particular-condition-validity"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],["imxControl",""],[3,"formHandler","formGroup","fieldPrefix","extendedAttributes"],[3,"ngClass","field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0)(2,"h3",1),r._uU(3,"imxtools.metainfo.modules_particular_condition.main.validity"),r.qZA(),r.TgZ(4,"div",2),r.YNc(5,dC,1,0,"ng-container",3)(6,ET,1,0,"ng-container",3),r.qZA(),r.YNc(7,AT,5,4,"ng-container",4),r.ALo(8,"async"),r.ALo(9,"async"),r.TgZ(10,"h3",1),r._uU(11,"imxtools.metainfo.modules_particular_condition.main.information"),r.qZA(),r.YNc(12,wT,1,0,"ng-container",3)(13,DT,1,0,"ng-container",3)(14,IT,1,0,"ng-container",3)(15,ST,1,0,"ng-container",3)(16,cE,1,0,"ng-container",3)(17,gw,1,0,"ng-container",3)(18,hw,1,0,"ng-container",3)(19,FT,1,0,"ng-container",3)(20,LT,1,0,"ng-container",3)(21,RT,1,0,"ng-container",3),r.qZA()(),r.YNc(22,dE,1,6,"ng-template",null,5,r.W1O)),2&re){const It=r.MAs(23);r.xp6(5),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(29,kT)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(30,mC)),r.xp6(),r.Q6J("ngIf",r.lcZ(8,25,ze.extendedAttributesAvailable)&&r.lcZ(9,27,ze.formHandler.hasReadPermission("ParticularConditionAddressbase:attributeDefinitions"))),r.xp6(5),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(31,NT)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(32,mE)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(33,uE)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(34,X_)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(35,Sv)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(36,pE)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(37,_E)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(38,xw)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(39,vw)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(40,uC))}},dependencies:[gr.E,Ft.A,e.mk,e.O5,e.tP,s.JL,s.sg,et.Pi,Js.Z,Ms.U,e.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.imx-particular-condition-validity[_ngcontent-%COMP%]{display:flex;justify-content:flex-start}.modules_particular_condition-dateFrom[_ngcontent-%COMP%]{margin-right:15px}"],changeDetection:0})}return v})();function EM(v,Ne){1&v&&r.GkF(0)}function gE(v,Ne){1&v&&r.GkF(0)}function UT(v,Ne){1&v&&r.GkF(0)}function hE(v,Ne){1&v&&r.GkF(0)}function xE(v,Ne){1&v&&r.GkF(0)}function vE(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",5),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById("metainfos:modules_rating:"+F))("control",re.moduleDataFormGroup.get(F))("form",re.formHandler.formGroup.get("metainfos"))("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}const AM=()=>({$implicit:"system"}),BT=()=>({$implicit:"averageRating"}),bE=()=>({$implicit:"ratingCount"}),cO=()=>({$implicit:"externalId"}),wM=()=>({$implicit:"recommendationRate"});let bw=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(F,re){super(F,re),this.entitiesMgr=F,this.dialog=re,this.modulePath="metainfos:modules_rating"}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(u.uw))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-rating-addressbase-form-panel"]],features:[r.qOj],decls:12,vars:15,consts:[["title","imxtools.metainfo.modules_rating.main"],[1,"form__content-field-row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"form__content-field-row-50"],["ratingAddressbase",""],[3,"field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0)(2,"div",1),r.YNc(3,EM,1,0,"ng-container",2)(4,gE,1,0,"ng-container",2),r.qZA(),r.TgZ(5,"div",1),r.YNc(6,UT,1,0,"ng-container",2)(7,hE,1,0,"ng-container",2),r.qZA(),r.TgZ(8,"div",3),r.YNc(9,xE,1,0,"ng-container",2),r.qZA()()(),r.YNc(10,vE,1,5,"ng-template",null,4,r.W1O)),2&re){const It=r.MAs(11);r.xp6(3),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(10,AM)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(11,BT)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(12,bE)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(13,cO)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(14,wM))}},dependencies:[Ft.A,e.tP,Js.Z,Ms.U],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__content-field-row-50[_ngcontent-%COMP%]{max-width:50%}"],changeDetection:0})}return v})();var ZT=a(17301);function CE(v,Ne){1&v&&r.GkF(0)}function HT(v,Ne){1&v&&r.GkF(0)}function Fv(v,Ne){1&v&&r.GkF(0)}function yE(v,Ne){1&v&&r.GkF(0)}function GT(v,Ne){1&v&&r.GkF(0)}function DM(v,Ne){1&v&&r.GkF(0)}function Cw(v,Ne){1&v&&r.GkF(0)}function OE(v,Ne){1&v&&r.GkF(0)}function PE(v,Ne){1&v&&r.GkF(0)}function ME(v,Ne){1&v&&r.GkF(0)}function JT(v,Ne){1&v&&r.GkF(0)}function QT(v,Ne){1&v&&r.GkF(0)}function TE(v,Ne){1&v&&r.GkF(0)}function VT(v,Ne){1&v&&r.GkF(0)}function YT(v,Ne){1&v&&r.GkF(0)}function EE(v,Ne){1&v&&r.GkF(0)}function AE(v,Ne){1&v&&r.GkF(0)}function WT(v,Ne){1&v&&r.GkF(0)}function wE(v,Ne){1&v&&r.GkF(0)}const zT=()=>({$implicit:"categories"});function jT(v,Ne){if(1&v&&(r.TgZ(0,"imx-accordion-panel",8),r.YNc(1,wE,1,0,"ng-container",1),r.qZA()),2&v){r.oxw();const F=r.MAs(27);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,zT))}}function KT(v,Ne){1&v&&r.GkF(0)}function $T(v,Ne){1&v&&(r.TgZ(0,"p",15),r._uU(1,"imxplatform.common.no-records"),r.qZA())}function DE(v,Ne){1&v&&r._UZ(0,"tr",25)}function IE(v,Ne){1&v&&r._UZ(0,"tr",26)}function yw(v,Ne){1&v&&(r.TgZ(0,"th",27),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v&&(r.xp6(),r.Oqu(r.lcZ(2,1,"entity.RegiondoOffer.pdfLink")))}function qT(v,Ne){if(1&v&&(r.TgZ(0,"td",28),r._UZ(1,"imx-form-control",29),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(3);r.xp6(),r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById(re.modulePath+":infoPdfs:infoPdf"))("control",F.controls.infoPdf)("form",re.moduleDataFormGroup)("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}function Ow(v,Ne){1&v&&r._UZ(0,"th",30)}function Pw(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"a",34),r.NdJ("click",function(){r.CHM(F);const ze=r.oxw(2).$implicit,It=r.oxw(3);return r.KtG(It.formHandler.removeLineFromCollection("infoPdfs",It.infoPdfsDataSource.filteredData.indexOf(ze),It.moduleDataFormGroup))}),r.qZA()}}function Mw(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,Pw,1,0,"a",33),r.BQk()),2&v){const F=r.oxw(4);r.xp6(),r.Q6J("hasFieldWritePermission",F.modulePath+":infoPdfs")("hasFieldWritePermissionFormHandler",F.formHandler)}}function Tw(v,Ne){if(1&v&&(r.TgZ(0,"td",31),r.YNc(1,Mw,2,2,"ng-container",32),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(3);r.Q6J("formGroup",F),r.xp6(),r.Q6J("ngIf",re.formHandler.hasSavePermission())}}function Ew(v,Ne){if(1&v&&(r.TgZ(0,"table",16),r.YNc(1,DE,1,0,"tr",17)(2,IE,1,0,"tr",18),r.ynx(3,19),r.YNc(4,yw,3,3,"th",20)(5,qT,2,5,"td",21),r.BQk(),r.ynx(6,22),r.YNc(7,Ow,1,0,"th",23)(8,Tw,2,2,"td",24),r.BQk(),r.qZA()),2&v){const F=r.oxw(2);r.Q6J("dataSource",F.infoPdfsDataSource),r.xp6(),r.Q6J("matHeaderRowDef",F.displayedColumns),r.xp6(),r.Q6J("matRowDefColumns",F.displayedColumns)}}function Aw(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"imx-accordion-panel",9)(1,"div",10)(2,"div"),r.YNc(3,$T,2,0,"ng-template",null,11,r.W1O),r.TgZ(5,"div",12),r.YNc(6,Ew,9,3,"table",13),r.qZA(),r.TgZ(7,"button",14),r.NdJ("click",function(){r.CHM(F);const ze=r.oxw();return r.KtG(ze.addNewInfoPdf())}),r.ALo(8,"async"),r.ALo(9,"async"),r._uU(10),r.ALo(11,"translate"),r.qZA()()()()}if(2&v){const F=r.MAs(4),re=r.oxw();r.xp6(6),r.Q6J("ngIf",re.infoPdfsDataSource&&re.infoPdfsDataSource.data.length>0)("ngIfElse",F),r.xp6(),r.Q6J("disabled",!r.lcZ(8,4,re.formHandler.hasEditPermission("RegiondoOffer:infoPdfs"))||!r.lcZ(9,6,re.formHandler.hasSavePermission())),r.xp6(3),r.hij(" ",r.lcZ(11,8,"imxtools.metainfo.modules_regiondo_offer.add-infopdf")," ")}}function ww(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",35),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("ngClass","modules_regiondo_offer-"+F)("field",re.formHandler.formConfiguration.findFormFieldById("metainfos:modules_regiondo_offer:"+F))("control",re.moduleDataFormGroup.get(F))("form",re.formHandler.formGroup.get("metainfos"))("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}const Dw=()=>({$implicit:"skuDataProduct"}),XT=()=>({$implicit:"productId"}),SE=()=>({$implicit:"location"}),Iw=()=>({$implicit:"provider"}),e2=()=>({$implicit:"importantInfo"}),FE=()=>({$implicit:"bookingNoticePeriod"}),LE=()=>({$implicit:"durationType"}),RE=()=>({$implicit:"durationValues"}),Sw=()=>({$implicit:"asGift"}),dO=()=>({$implicit:"appointmentTypes"}),kE=()=>({$implicit:"productSupplierId"}),pC=()=>({$implicit:"faqNotIncluded"}),mO=()=>({$implicit:"faqParticipants"}),NE=()=>({$implicit:"faqCustomerRequirements"}),UE=()=>({$implicit:"faqOtherInfo"}),BE=()=>({$implicit:"faqSpectators"}),ZE=()=>({$implicit:"parkingOptionsComment"}),HE=()=>({$implicit:"publicTransportComment"}),GE=()=>({$implicit:"languages"});let JE=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(F,re){super(F,re),this.entitiesMgr=F,this.dialog=re,this.modulePath="metainfos:modules_regiondo_offer",this.displayedColumns=["infoPdfColumn","removeColumn"]}ngOnInit(){this.infoPdfsDataSource=this.prepareTable(this.moduleDataFormGroup.get("infoPdfs"),F=>this.infoPdfsDataSource=F)}addNewInfoPdf(){this.formHandler.addNewCollectionRow(this.modulePath+":infoPdfs",!0,this.moduleDataFormGroup.get("infoPdfs"))}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(u.uw))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-regiondo-offer-form-panel"]],inputs:{displayedColumns:"displayedColumns"},features:[r.qOj],decls:28,vars:61,consts:[["title","imxtools.metainfo.modules_regiondo_offer.common"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["title","imxtools.metainfo.modules_regiondo_offer.faqs"],["title","imxtools.metainfo.modules_regiondo_offer.arrival"],["title","imxtools.metainfo.modules_regiondo_offer.categories",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],["title","imxtools.metainfo.modules_regiondo_offer.languages"],["title","imxtools.metainfo.modules_regiondo_offer.infopdfs",4,"hasFieldReadPermission","hasFieldReadPermissionFormHandler"],["imxControl",""],["title","imxtools.metainfo.modules_regiondo_offer.categories"],["title","imxtools.metainfo.modules_regiondo_offer.infopdfs"],[1,"form__content-row"],["noInfoPdfRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[1,"imx-button","prio2",3,"disabled","click"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","infoPdfColumn"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","txt-ellipsis",4,"matCellDef"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell",""],["mat-cell","",1,"txt-ellipsis"],[3,"field","control","form","formHandler","config"],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],[4,"ngIf"],["class","icon icon-trash imx-icon-middle imx-icon-clickable",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"],[3,"ngClass","field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0),r.YNc(2,CE,1,0,"ng-container",1)(3,HT,1,0,"ng-container",1)(4,Fv,1,0,"ng-container",1)(5,yE,1,0,"ng-container",1)(6,GT,1,0,"ng-container",1)(7,DM,1,0,"ng-container",1)(8,Cw,1,0,"ng-container",1)(9,OE,1,0,"ng-container",1)(10,PE,1,0,"ng-container",1)(11,ME,1,0,"ng-container",1)(12,JT,1,0,"ng-container",1),r.qZA(),r.TgZ(13,"imx-accordion-panel",2),r.YNc(14,QT,1,0,"ng-container",1)(15,TE,1,0,"ng-container",1)(16,VT,1,0,"ng-container",1)(17,YT,1,0,"ng-container",1)(18,EE,1,0,"ng-container",1),r.qZA(),r.TgZ(19,"imx-accordion-panel",3),r.YNc(20,AE,1,0,"ng-container",1)(21,WT,1,0,"ng-container",1),r.qZA(),r.YNc(22,jT,2,3,"imx-accordion-panel",4),r.TgZ(23,"imx-accordion-panel",5),r.YNc(24,KT,1,0,"ng-container",1),r.qZA(),r.YNc(25,Aw,12,10,"imx-accordion-panel",6),r.qZA(),r.YNc(26,ww,1,6,"ng-template",null,7,r.W1O)),2&re){const It=r.MAs(27);r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(42,Dw)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(43,XT)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(44,SE)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(45,Iw)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(46,e2)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(47,FE)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(48,LE)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(49,RE)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(50,Sw)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(51,dO)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(52,kE)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(53,pC)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(54,mO)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(55,NE)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(56,UE)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(57,BE)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(58,ZE)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(59,HE)),r.xp6(),r.Q6J("hasFieldReadPermission",ze.modulePath+":categories")("hasFieldReadPermissionFormHandler",ze.formHandler),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(60,GE)),r.xp6(),r.Q6J("hasFieldReadPermission",ze.modulePath+":infoPdfs")("hasFieldReadPermissionFormHandler",ze.formHandler)}},dependencies:[Ft.A,ZT.j,nl.X,hl.F,e.mk,e.O5,e.tP,s.JL,ue.BZ,ue.fO,ue.as,ue.w1,ue.Dz,ue.nj,ue.ge,ue.ev,ue.XQ,ue.Gk,s.sg,et.Pi,Js.Z,Ms.U,e.Ov,et.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}"],changeDetection:0})}return v})();function t2(v,Ne){1&v&&r.GkF(0)}function QE(v,Ne){1&v&&r.GkF(0)}function VE(v,Ne){1&v&&r.GkF(0)}function YE(v,Ne){1&v&&r.GkF(0)}function WE(v,Ne){1&v&&r.GkF(0)}function zE(v,Ne){1&v&&r.GkF(0)}const jE=()=>({$implicit:"partner"});function KE(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,zE,1,0,"ng-container",3),r.BQk()),2&v){r.oxw();const F=r.MAs(29);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,jE))}}function $E(v,Ne){1&v&&r.GkF(0)}function qE(v,Ne){1&v&&r.GkF(0)}function XE(v,Ne){1&v&&r.GkF(0)}function eA(v,Ne){1&v&&r.GkF(0)}function tA(v,Ne){1&v&&r.GkF(0)}function nA(v,Ne){1&v&&r.GkF(0)}function n2(v,Ne){1&v&&r.GkF(0)}function IM(v,Ne){1&v&&r.GkF(0)}function iA(v,Ne){1&v&&r.GkF(0)}function oA(v,Ne){if(1&v&&(r.ynx(0),r._UZ(1,"imx-base-input-label",13),r.ALo(2,"readI18n"),r._UZ(3,"imx-checkbox-select",14),r.BQk()),2&v){const F=Ne.$implicit,re=r.oxw(3);r.xp6(),r.s9C("label",r.lcZ(2,8,F.i18nName)),r.xp6(2),r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById("metainfos:modules_rfa:categories"))("control",re.moduleDataFormGroup.get("categories"))("form",re.moduleDataFormGroup)("formHandler",re.formHandler)("optionProvider",F.categories)("rowLayout",!0)("showLine",!0)}}function o2(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,oA,4,10,"ng-container",12),r.BQk()),2&v){const F=r.oxw(2);r.xp6(),r.Q6J("ngForOf",F.groupedCategories)}}function rA(v,Ne){if(1&v&&(r.TgZ(0,"imx-accordion-panel",11),r.YNc(1,o2,2,1,"ng-container",4),r.qZA()),2&v){const F=r.oxw();r.xp6(),r.Q6J("ngIf",F.categoriesAvailable)}}function r2(v,Ne){if(1&v&&(r.ynx(0),r._UZ(1,"imx-base-input-label",13),r.ALo(2,"readI18n"),r._UZ(3,"imx-checkbox-select",14),r.BQk()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.s9C("label",r.lcZ(2,8,F.i18nName)),r.xp6(2),r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById("metainfos:modules_rfa:criteria"))("control",re.moduleDataFormGroup.get("criteria"))("form",re.moduleDataFormGroup)("formHandler",re.formHandler)("optionProvider",F.criteria)("rowLayout",!0)("showLine",!0)}}function Fw(v,Ne){if(1&v&&(r.TgZ(0,"imx-accordion-panel",15),r.YNc(1,r2,4,10,"ng-container",12),r.qZA()),2&v){const F=r.oxw();r.xp6(),r.Q6J("ngForOf",F.groupedCriteria)}}function aA(v,Ne){if(1&v&&(r.ynx(0),r._UZ(1,"imx-base-input-label",13),r.ALo(2,"readI18n"),r._UZ(3,"imx-checkbox-select",14),r.BQk()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.s9C("label",r.lcZ(2,8,F.i18nName)),r.xp6(2),r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById("metainfos:modules_rfa:stages"))("control",re.moduleDataFormGroup.get("stages"))("form",re.moduleDataFormGroup)("formHandler",re.formHandler)("optionProvider",F.stages)("rowLayout",!0)("showLine",!0)}}function a2(v,Ne){if(1&v&&(r.TgZ(0,"imx-accordion-panel",16),r.YNc(1,aA,4,10,"ng-container",12),r.qZA()),2&v){const F=r.oxw();r.xp6(),r.Q6J("ngForOf",F.groupedStages)}}function s2(v,Ne){if(1&v&&r._UZ(0,"imx-form-control",17),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("ngClass","modules_rfa-"+F)("field",re.formHandler.formConfiguration.findFormFieldById("metainfos:modules_rfa:"+F))("control",re.moduleDataFormGroup.get(F))("form",re.formHandler.formGroup.get("metainfos"))("formHandler",re.formHandler)("config",re.formHandler.formConfiguration)}}const sA=()=>({$implicit:"classificationFromDate"}),l2=()=>({$implicit:"classificationToDate"}),lA=()=>({$implicit:"taskNumber"}),SM=()=>({$implicit:"validityChecked"}),c2=()=>({$implicit:"information"}),FM=()=>({$implicit:"guestGroupMobilityText"}),LM=()=>({$implicit:"guestGroupHearingText"}),cA=()=>({$implicit:"guestGroupVisualText"}),Lw=()=>({$implicit:"guestGroupCognitiveText"}),d2=()=>({$implicit:"urlWalking"}),dA=()=>({$implicit:"urlWheelchair"}),Rw=()=>({$implicit:"urlDeaf"}),m2=()=>({$implicit:"urlMental"}),u2=()=>({$implicit:"urlVisual"});let t1=(()=>{class v extends R.AbstractMetainfoFormPanelComponent{constructor(F,re,ze){super(F,re),this.entitiesMgr=F,this.dialog=re,this.readI18nPipe=ze,this.criteriaAvailable=(0,wn.of)(!1),this.categoriesAvailable=(0,wn.of)(!1),this.stagesAvailable=(0,wn.of)(!1),this.partnerAvailable=(0,wn.of)(!1),this.groupedCategories=[],this.groupedCriteria=[],this.groupedStages=[],this.defaultAttributeGroup={id:0,i18nName:void 0}}ngOnInit(){super.ngOnInit(),this.criteriaAvailable=this.baseEntityAvailable("RfaCriterion"),this.categoriesAvailable=this.baseEntityAvailable("RfaCategory"),this.stagesAvailable=this.baseEntityAvailable("RfaStage"),this.partnerAvailable=this.baseEntityAvailable("RfaPartner"),this.categoriesAvailable&&this._loadCategories(),this.criteriaAvailable&&this._loadCriteria(),this.stagesAvailable&&this._loadStages()}_loadCategories(){this.entitiesMgr.getAllEntitiesOfType("RfaCategory").pipe((0,bs.q)(1)).subscribe(F=>{this.groupedCategories=this._groupCategories(F.items).sort((re,ze)=>re.id-ze.id)})}_groupCategories(F){const re=[];return F.forEach(ze=>{const It=this._createRfaCategoryOption(ze);let{attributeGroup:vo}=ze;null===vo&&(vo=this.defaultAttributeGroup);const Os=re.findIndex(xd=>xd.id===vo.id);-1===Os?re.push({...vo,categories:[It]}):re[Os].categories.push(It)}),re}_createRfaCategoryOption(F){const{i18nName:re,id:ze}=F;return{label:this.readI18nPipe.transform(re),value:ze}}_loadCriteria(){this.entitiesMgr.getAllEntitiesOfType("RfaCriterion").pipe((0,bs.q)(1)).subscribe(F=>{this.groupedCriteria=this._groupRfaCriterions(F.items).sort((re,ze)=>re.id-ze.id)})}_groupRfaCriterions(F){const re=[];return F.forEach(ze=>{const It=this._createRfaCriterionOption(ze);let{attributeGroup:vo}=ze;null===vo&&(vo=this.defaultAttributeGroup);const Os=re.findIndex(xd=>xd.id===vo.id);-1===Os?re.push({...vo,criteria:[It]}):re[Os].criteria.push(It)}),re}_createRfaCriterionOption(F){const{i18nName:re,id:ze}=F;return{label:this.readI18nPipe.transform(re),value:ze}}_loadStages(){this.entitiesMgr.getAllEntitiesOfType("RfaStage").pipe((0,bs.q)(1)).subscribe(F=>{this.groupedStages=this._groupRfaStages(F.items).sort((re,ze)=>re.id-ze.id)})}_groupRfaStages(F){const re=[];return F.forEach(ze=>{const It=this._createRfaStageOption(ze);let{attributeGroup:vo}=ze;null===vo&&(vo=this.defaultAttributeGroup);const Os=re.findIndex(xd=>xd.id===vo.id);-1===Os?re.push({...vo,stages:[It]}):re[Os].stages.push(It)}),re}_createRfaStageOption(F){const{i18nName:re,id:ze}=F;return{label:this.readI18nPipe.transform(re),value:ze}}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(u.uw),r.Y36(R.ReadI18nPipe))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-rfa-addressbase-form-panel"]],features:[r.qOj],decls:30,vars:52,consts:[["title","imxtools.metainfo.modules_rfa.main.header"],["translate",""],[1,"imx-rfa-validity"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],["title","imxtools.metainfo.modules_rfa.main.information"],["title","imxtools.metainfo.modules_rfa.links.header"],["title","imxtools.metainfo.modules_rfa.categories",4,"ngIf"],["title","imxtools.metainfo.modules_rfa.criteria",4,"ngIf"],["title","imxtools.metainfo.modules_rfa.stages",4,"ngIf"],["imxControl",""],["title","imxtools.metainfo.modules_rfa.categories"],[4,"ngFor","ngForOf"],[3,"label"],[3,"field","control","form","formHandler","optionProvider","rowLayout","showLine"],["title","imxtools.metainfo.modules_rfa.criteria"],["title","imxtools.metainfo.modules_rfa.stages"],[3,"ngClass","field","control","form","formHandler","config"]],template:function(re,ze){if(1&re&&(r.TgZ(0,"imx-accordion")(1,"imx-accordion-panel",0)(2,"h3",1),r._uU(3,"imxtools.metainfo.modules_rfa.main.validity"),r.qZA(),r.TgZ(4,"div",2),r.YNc(5,t2,1,0,"ng-container",3)(6,QE,1,0,"ng-container",3),r.qZA(),r.YNc(7,VE,1,0,"ng-container",3)(8,YE,1,0,"ng-container",3)(9,WE,1,0,"ng-container",3)(10,KE,2,3,"ng-container",4),r.qZA(),r.TgZ(11,"imx-accordion-panel",5),r.YNc(12,$E,1,0,"ng-container",3)(13,qE,1,0,"ng-container",3)(14,XE,1,0,"ng-container",3)(15,eA,1,0,"ng-container",3),r.qZA(),r.TgZ(16,"imx-accordion-panel",6),r.YNc(17,tA,1,0,"ng-container",3)(18,nA,1,0,"ng-container",3)(19,n2,1,0,"ng-container",3)(20,IM,1,0,"ng-container",3)(21,iA,1,0,"ng-container",3),r.qZA(),r.YNc(22,rA,2,1,"imx-accordion-panel",7),r.ALo(23,"async"),r.YNc(24,Fw,2,1,"imx-accordion-panel",8),r.ALo(25,"async"),r.YNc(26,a2,2,1,"imx-accordion-panel",9),r.ALo(27,"async"),r.qZA(),r.YNc(28,s2,1,6,"ng-template",null,10,r.W1O)),2&re){const It=r.MAs(29);r.xp6(5),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(38,sA)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(39,l2)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(40,lA)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(41,SM)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(42,c2)),r.xp6(),r.Q6J("ngIf",ze.partnerAvailable),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(43,FM)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(44,LM)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(45,cA)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(46,Lw)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(47,d2)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(48,dA)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(49,Rw)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(50,m2)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(51,u2)),r.xp6(),r.Q6J("ngIf",r.lcZ(23,32,ze.categoriesAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(25,34,ze.criteriaAvailable)),r.xp6(2),r.Q6J("ngIf",r.lcZ(27,36,ze.stagesAvailable))}},dependencies:[sl.u,Ec.r,Ft.A,e.mk,e.sg,e.O5,e.tP,et.Pi,Js.Z,Ms.U,Fa.j,e.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.imx-rfa-validity[_ngcontent-%COMP%]{display:flex;justify-content:flex-start}"],changeDetection:0})}return v})(),n1=(()=>{class v{static#e=this.\u0275fac=function(re){return new(re||v)};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-tour-addressbase-input"]],inputs:{formHandler:"formHandler",moduleDataFormGroup:"moduleDataFormGroup",fieldKey:"fieldKey"},decls:1,vars:5,consts:[[3,"field","control","form","formHandler","config"]],template:function(re,ze){1&re&&r._UZ(0,"imx-form-control",0),2&re&&r.Q6J("field",ze.formHandler.formConfiguration.findFormFieldById("metainfos:modules_tour:"+ze.fieldKey))("control",ze.moduleDataFormGroup.get(ze.fieldKey))("form",ze.formHandler.formGroup.get("metainfos"))("formHandler",ze.formHandler)("config",ze.formHandler.formConfiguration)},dependencies:[Ft.A]})}return v})();function p2(v,Ne){1&v&&r.GkF(0)}function uO(v,Ne){1&v&&r.GkF(0)}function mA(v,Ne){1&v&&r.GkF(0)}function uA(v,Ne){1&v&&r.GkF(0)}function kw(v,Ne){1&v&&r.GkF(0)}const _2=()=>({$implicit:"condition"});function pA(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,kw,1,0,"ng-container",0),r.BQk()),2&v){r.oxw();const F=r.MAs(16);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,_2))}}function _A(v,Ne){1&v&&r.GkF(0)}const f2=()=>({$implicit:"difficulty"});function fA(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,_A,1,0,"ng-container",0),r.BQk()),2&v){r.oxw();const F=r.MAs(16);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,f2))}}function gA(v,Ne){1&v&&r.GkF(0)}const pO=()=>({$implicit:"landscape"});function hA(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,gA,1,0,"ng-container",0),r.BQk()),2&v){r.oxw();const F=r.MAs(16);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,pO))}}function Nw(v,Ne){1&v&&r.GkF(0)}const Uw=()=>({$implicit:"qualityOfExperience"});function xA(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,Nw,1,0,"ng-container",0),r.BQk()),2&v){r.oxw();const F=r.MAs(16);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,Uw))}}function RM(v,Ne){1&v&&r.GkF(0)}const g2=()=>({$implicit:"communityRating"});function tx(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,RM,1,0,"ng-container",0),r.BQk()),2&v){r.oxw();const F=r.MAs(16);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,g2))}}function h2(v,Ne){1&v&&r.GkF(0)}const vA=()=>({$implicit:"communityRatingCount"});function x2(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,h2,1,0,"ng-container",0),r.BQk()),2&v){r.oxw();const F=r.MAs(16);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,vA))}}function v2(v,Ne){1&v&&r.GkF(0)}const bA=()=>({$implicit:"qualityLevel"});function kM(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,v2,1,0,"ng-container",0),r.BQk()),2&v){r.oxw();const F=r.MAs(16);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,bA))}}function Bw(v,Ne){1&v&&r.GkF(0)}const CA=()=>({$implicit:"technique"});function b2(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,Bw,1,0,"ng-container",0),r.BQk()),2&v){r.oxw();const F=r.MAs(16);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,CA))}}function yA(v,Ne){if(1&v&&r._UZ(0,"imx-tour-addressbase-input",5),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("moduleDataFormGroup",re.moduleDataFormGroup)("formHandler",re.formHandler)("fieldKey",F)}}const OA=()=>({$implicit:"additionalInformation"}),Zw=()=>({$implicit:"tip"}),Hw=()=>({$implicit:"literature"}),C2=()=>({$implicit:"maps"}),Gw=()=>["TourAddressbase:condition"],Jw=()=>["TourAddressbase:difficulty"],Qw=()=>["TourAddressbase:landscape"],Vw=()=>["TourAddressbase:qualityOfExperience"],Yw=()=>["TourAddressbase:communityRating"],PA=()=>["TourAddressbase:communityRatingCount"],_O=()=>["TourAddressbase:qualityLevel"],MA=()=>["TourAddressbase:technique"];let TA=(()=>{class v{static#e=this.\u0275fac=function(re){return new(re||v)};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-tour-addressbase-additional-information"]],inputs:{formHandler:"formHandler",moduleDataFormGroup:"moduleDataFormGroup"},decls:17,vars:36,consts:[[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"form__content-group"],[1,"form__content-field-row"],[4,"hasAnyFieldReadPermission","hasAnyFieldReadPermissionFormHandler"],["tourAddressBaseInput",""],[3,"moduleDataFormGroup","formHandler","fieldKey"]],template:function(re,ze){if(1&re&&(r.YNc(0,p2,1,0,"ng-container",0)(1,uO,1,0,"ng-container",0)(2,mA,1,0,"ng-container",0)(3,uA,1,0,"ng-container",0),r.TgZ(4,"div",1)(5,"div",2),r.YNc(6,pA,2,3,"ng-container",3)(7,fA,2,3,"ng-container",3)(8,hA,2,3,"ng-container",3)(9,xA,2,3,"ng-container",3),r.qZA(),r.TgZ(10,"div",2),r.YNc(11,tx,2,3,"ng-container",3)(12,x2,2,3,"ng-container",3)(13,kM,2,3,"ng-container",3)(14,b2,2,3,"ng-container",3),r.qZA()(),r.YNc(15,yA,1,3,"ng-template",null,4,r.W1O)),2&re){const It=r.MAs(16);r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(24,OA)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(25,Zw)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(26,Hw)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(27,C2)),r.xp6(3),r.Q6J("hasAnyFieldReadPermission",r.DdM(28,Gw))("hasAnyFieldReadPermissionFormHandler",ze.formHandler),r.xp6(),r.Q6J("hasAnyFieldReadPermission",r.DdM(29,Jw))("hasAnyFieldReadPermissionFormHandler",ze.formHandler),r.xp6(),r.Q6J("hasAnyFieldReadPermission",r.DdM(30,Qw))("hasAnyFieldReadPermissionFormHandler",ze.formHandler),r.xp6(),r.Q6J("hasAnyFieldReadPermission",r.DdM(31,Vw))("hasAnyFieldReadPermissionFormHandler",ze.formHandler),r.xp6(2),r.Q6J("hasAnyFieldReadPermission",r.DdM(32,Yw))("hasAnyFieldReadPermissionFormHandler",ze.formHandler),r.xp6(),r.Q6J("hasAnyFieldReadPermission",r.DdM(33,PA))("hasAnyFieldReadPermissionFormHandler",ze.formHandler),r.xp6(),r.Q6J("hasAnyFieldReadPermission",r.DdM(34,_O))("hasAnyFieldReadPermissionFormHandler",ze.formHandler),r.xp6(),r.Q6J("hasAnyFieldReadPermission",r.DdM(35,MA))("hasAnyFieldReadPermissionFormHandler",ze.formHandler)}},dependencies:[Ey.l,e.tP,n1],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}"]})}return v})();var y2=a(1931);function o1(v,Ne){1&v&&r.GkF(0)}function O2(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"h3",8),r._uU(2,"entity.TourCategory.entityName"),r.qZA(),r._UZ(3,"imx-tree-shuffle",9),r.BQk()),2&v){const F=r.oxw();r.xp6(3),r.Q6J("treeOptionProvider",F.allTourCategories)("displayNodeFn",F.displayFnForTourCategoryNode)("sortNodesFn",F.sortFnForTourCategoryNode)("sortRootNodesFn",F.sortFnForTourCategoryNode)("control",F.moduleDataFormGroup.get("categories"))("formHandler",F.formHandler)("field",F.formHandler.formConfiguration.findFormFieldById("metainfos:modules_tour:categories"))}}function NM(v,Ne){if(1&v&&(r.ynx(0),r._UZ(1,"imx-base-input-label",11),r.ALo(2,"readI18n"),r._UZ(3,"imx-checkbox-select",12),r.BQk()),2&v){const F=Ne.$implicit,re=r.oxw(2);r.xp6(),r.s9C("label",r.lcZ(2,7,F.i18nName)),r.xp6(2),r.Q6J("field",re.formHandler.formConfiguration.findFormFieldById("metainfos:modules_tour:difficulties"))("control",re.moduleDataFormGroup.get("difficulties"))("form",re.moduleDataFormGroup)("formHandler",re.formHandler)("optionProvider",F.difficulties)("rowLayout",!0)}}function UM(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"h3",8),r._uU(2,"entity.TourDifficulty.entityName"),r.qZA(),r.YNc(3,NM,4,9,"ng-container",10),r.BQk()),2&v){const F=r.oxw();r.xp6(3),r.Q6J("ngForOf",F.groupedDifficulties)}}function EA(v,Ne){1&v&&r.GkF(0)}function BM(v,Ne){1&v&&r.GkF(0)}function ZM(v,Ne){1&v&&r.GkF(0)}const fO=()=>({$implicit:"trackTypes"});function Ww(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,ZM,1,0,"ng-container",0),r.BQk()),2&v){r.oxw();const F=r.MAs(32);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,fO))}}function zw(v,Ne){1&v&&r.GkF(0)}function jw(v,Ne){1&v&&r.GkF(0)}function AA(v,Ne){1&v&&r.GkF(0)}function wA(v,Ne){1&v&&r.GkF(0)}function Kw(v,Ne){1&v&&r.GkF(0)}function Up(v,Ne){1&v&&r.GkF(0)}function _C(v,Ne){1&v&&r.GkF(0)}function gO(v,Ne){1&v&&r.GkF(0)}function hO(v,Ne){1&v&&r.GkF(0)}function P2(v,Ne){1&v&&r.GkF(0)}function $w(v,Ne){if(1&v){const F=r.EpF();r.ynx(0),r.TgZ(1,"imx-base-upload",13),r.NdJ("uploadComplete",function(ze){r.CHM(F);const It=r.oxw(2);return r.KtG(It.processKmlComplete(ze))}),r.ALo(2,"async"),r.ALo(3,"async"),r.ALo(4,"async"),r.qZA(),r.BQk()}if(2&v){const F=r.oxw(2);r.xp6(),r.Q6J("type","extractGeometry")("headerText","imxplatform.common-entity.edit.panels.geo.read-kml-gpx")("allowedFileTypes",".gpx,.kml")("allowMultipleFiles",!1)("autoUpload",!0)("disabled",!r.lcZ(2,7,F.formHandler.hasEditPermission("geoInfo.coordinates"))||!r.lcZ(3,9,F.formHandler.hasEditPermission("TourAddressbase:geometry"))||!r.lcZ(4,11,F.formHandler.hasSavePermission()))("showFileSelectButton",!0)}}function DA(v,Ne){if(1&v){const F=r.EpF();r.ynx(0),r.TgZ(1,"imx-base-upload",13),r.NdJ("uploadComplete",function(ze){r.CHM(F);const It=r.oxw(2);return r.KtG(It.uploadComplete(ze))}),r.ALo(2,"async"),r.ALo(3,"async"),r.qZA(),r.BQk()}if(2&v){const F=r.oxw(2);r.xp6(),r.Q6J("type","extractTourCoords")("headerText","GPX/KML Einlesen")("allowedFileTypes",".gpx,.kml")("allowMultipleFiles",!1)("autoUpload",!0)("disabled",!r.lcZ(2,7,F.formHandler.hasEditPermission("TourAddressbase:geometry"))||!r.lcZ(3,9,F.formHandler.hasSavePermission()))("showFileSelectButton",!0)}}function qw(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,$w,5,13,"ng-container",1)(2,DA,4,11,"ng-container",1),r.BQk()),2&v){const F=r.oxw();r.xp6(),r.Q6J("ngIf",F.geospatialEnabled),r.xp6(),r.Q6J("ngIf",!F.geospatialEnabled)}}function Xw(v,Ne){1&v&&r.GkF(0)}function HM(v,Ne){1&v&&r.GkF(0)}function IA(v,Ne){1&v&&r.GkF(0)}function M2(v,Ne){1&v&&r.GkF(0)}const T2=()=>({$implicit:"routeType"});function E2(v,Ne){if(1&v&&(r.ynx(0),r.YNc(1,M2,1,0,"ng-container",0),r.BQk()),2&v){r.oxw();const F=r.MAs(32);r.xp6(),r.Q6J("ngTemplateOutlet",F)("ngTemplateOutletContext",r.DdM(2,T2))}}function A2(v,Ne){if(1&v&&r._UZ(0,"imx-tour-addressbase-input",14),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("moduleDataFormGroup",re.moduleDataFormGroup)("formHandler",re.formHandler)("fieldKey",F)}}const SA=()=>({$implicit:"tourcondition"}),FA=()=>({$implicit:"months"}),w2=()=>({$implicit:"attributes"}),LA=()=>({$implicit:"duration"}),D2=()=>({$implicit:"length"}),xO=()=>({$implicit:"maxAltitude"}),fC=()=>({$implicit:"minAltitude"}),Lv=()=>({$implicit:"durationDownhill"}),I2=()=>({$implicit:"durationDays"}),eD=()=>({$implicit:"ascent"}),tD=()=>({$implicit:"descent"}),nD=()=>({$implicit:"profile"}),RA=()=>({$implicit:"geometry"}),kA=()=>({$implicit:"expositions"}),iD=()=>({$implicit:"riskPotential"}),S2=()=>({$implicit:"stages"});let F2=(()=>{class v{constructor(F,re,ze,It,vo){this.entitiesMgr=F,this.readI18nPipe=re,this.configurationProvider=ze,this.geometryFormatterService=It,this.runtimeContextService=vo,this.geospatialEnabled=!1,this.routeEditorEnabled=!1,this.isAdminUser=!1,this.allTourCategories=[],this.groupedDifficulties=[],this.trackTypesAvailable$=(0,wn.of)(!1),this.geospatialEnabled=this.configurationProvider.getBooleanFromSnapshot(R.ImxPlatformConfigParameter.IMXPLATFORM_GEOSPATIAL_ENABLED),this.routeEditorEnabled=this.configurationProvider.getBooleanFromSnapshot(R.ImxPlatformConfigParameter.IMXPLATFORM_ROUTE_EDITOR_ENABLED)}ngOnInit(){this._loadAllTourCategories(),this._loadTourDifficulties(),this.isAdminUser=(0,R.userIsSuperUser)(this.runtimeContextService.getLoginUser().loginname),this.geospatialEnabled&&this.moduleDataFormGroup.controls.geometry.disable({emitEvent:!1}),this.routeEditorEnabled&&(this.moduleDataFormGroup.get("geometry").disable({onlySelf:!0,emitEvent:!1}),this.formHandler.formConfiguration.findFormFieldById("metainfos:modules_tour:geometry").hint="Werte aus dem Toureneditor/Import"),this.trackTypesAvailable$=this.entitiesMgr.getAllEntitiesOfType("TourTrackType").pipe((0,bs.q)(1),(0,wo.w)(F=>(0,wn.of)(F?.items.length>0)))}_loadAllTourCategories(){this.entitiesMgr.getAllEntitiesOfType("TourCategory").subscribe(F=>{const re=F.items.filter(ze=>null==ze.parent);this.allTourCategories=re})}displayFnForTourCategoryNode(F){return F?F.i18nName:null}sortFnForTourCategoryNode(F,re,ze){return(0,R.compareI18n)(F.i18nName,re.i18nName,ze)}_loadTourDifficulties(){this.entitiesMgr.getAllEntitiesOfType("TourDifficulty").pipe((0,bs.q)(1)).subscribe(F=>{this.groupedDifficulties=this._groupTourDifficulties(F.items)})}_groupTourDifficulties(F){const re=[];return F.forEach(ze=>{const It=this._createTourDifficultyOption(ze);if(It){const{attributeGroup:vo}=ze,Os=vo?vo.id:null,xd=re.findIndex(yO=>yO.id===Os);-1===xd?re.push({...vo,difficulties:[It]}):re[xd].difficulties.push(It)}}),re}_createTourDifficultyOption(F){const{i18nName:re,id:ze}=F;return ze&&re?{label:this._createTourDifficultyOptionLabel(F),value:ze}:null}_createTourDifficultyOptionLabel(F){const{i18nName:re,attributeGroup:ze}=F;if(!re)return"";const It=ze&&ze.i18nName?this.readI18nPipe.transform(ze.i18nName):"";return this.readI18nPipe.transform(re).replace(It,"").trim()}uploadComplete(F){F&&!(F instanceof x_.UA)&&(F[0].exception||this.moduleDataFormGroup&&(this.moduleDataFormGroup.controls.geometry.setValue(F[0].processResult),this.moduleDataFormGroup.controls.geometry.markAsDirty()))}processKmlComplete(F){if(F&&!(F instanceof x_.UA)&&1===F.length){const re=F[0].processResult.Coordinates.geoCoords,ze=F[0].processResult.Coordinates.geoCenter;this.formHandler.formGroup.get("geoInfo.coordinates.longitude").setValue(ze.coordinates[0].toString().replace(".",",")),this.formHandler.formGroup.get("geoInfo.coordinates.latitude").setValue(ze.coordinates[1].toString().replace(".",",")),this.formHandler.formGroup.get("geoInfo.coordinates.geoCoords").setValue(re),this.formHandler.formGroup.get("geoInfo.coordinates.geoCoords").markAsDirty(),this.moduleDataFormGroup&&(this.moduleDataFormGroup.controls.geometry.setValue(this.geometryFormatterService.formatGeometryForTourObject(re.coordinates)),this.moduleDataFormGroup.controls.geometry.markAsDirty())}}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(Te.qB),r.Y36(R.ReadI18nPipe),r.Y36(R.ConfigurationProvider),r.Y36(R.GeometryFormatterService),r.Y36(Te.Ze))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-tour-addressbase-details"]],inputs:{formHandler:"formHandler",moduleDataFormGroup:"moduleDataFormGroup"},decls:33,vars:60,consts:[[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],[1,"form__content-row"],[1,"form__content-group"],[1,"form__content-field-row","anchor"],[1,"form__content-field-row","four-columns"],[1,"three-quarter"],["tourAddressBaseInput",""],["translate",""],[3,"treeOptionProvider","displayNodeFn","sortNodesFn","sortRootNodesFn","control","formHandler","field"],[4,"ngFor","ngForOf"],[3,"label"],[3,"field","control","form","formHandler","optionProvider","rowLayout"],[3,"type","headerText","allowedFileTypes","allowMultipleFiles","autoUpload","disabled","showFileSelectButton","uploadComplete"],[3,"moduleDataFormGroup","formHandler","fieldKey"]],template:function(re,ze){if(1&re&&(r.YNc(0,o1,1,0,"ng-container",0)(1,O2,4,7,"ng-container",1),r.ALo(2,"async"),r.YNc(3,UM,4,1,"ng-container",1),r.ALo(4,"async"),r.YNc(5,EA,1,0,"ng-container",0)(6,BM,1,0,"ng-container",0)(7,Ww,2,3,"ng-container",1),r.ALo(8,"async"),r.TgZ(9,"div",2)(10,"div",3)(11,"div",4),r.YNc(12,zw,1,0,"ng-container",0)(13,jw,1,0,"ng-container",0)(14,AA,1,0,"ng-container",0)(15,wA,1,0,"ng-container",0),r.qZA(),r.TgZ(16,"div",5),r.YNc(17,Kw,1,0,"ng-container",0)(18,Up,1,0,"ng-container",0),r.qZA(),r.TgZ(19,"div",5),r.YNc(20,_C,1,0,"ng-container",0)(21,gO,1,0,"ng-container",0)(22,hO,1,0,"ng-container",0),r.qZA(),r.TgZ(23,"div",5)(24,"div",6),r.YNc(25,P2,1,0,"ng-container",0),r.qZA(),r.YNc(26,qw,3,2,"ng-container",1),r.qZA()()(),r.YNc(27,Xw,1,0,"ng-container",0)(28,HM,1,0,"ng-container",0)(29,IA,1,0,"ng-container",0)(30,E2,2,3,"ng-container",1)(31,A2,1,3,"ng-template",null,7,r.W1O)),2&re){const It=r.MAs(32);r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(44,SA)),r.xp6(),r.Q6J("ngIf",r.lcZ(2,38,ze.formHandler.hasReadPermission("TourAddressbase:categories"))),r.xp6(2),r.Q6J("ngIf",r.lcZ(4,40,ze.formHandler.hasReadPermission("TourAddressbase:difficulties"))),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(45,FA)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(46,w2)),r.xp6(),r.Q6J("ngIf",r.lcZ(8,42,ze.trackTypesAvailable$)),r.xp6(4),r.uIk("data-scroll-id","module-modules_tour-detail"),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(47,LA)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(48,D2)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(49,xO)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(50,fC)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(51,Lv)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(52,I2)),r.xp6(2),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(53,eD)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(54,tD)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(55,nD)),r.xp6(3),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(56,RA)),r.xp6(),r.Q6J("ngIf",!ze.routeEditorEnabled),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(57,kA)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(58,iD)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(59,S2)),r.xp6(),r.Q6J("ngIf",ze.isAdminUser)}},dependencies:[sl.u,tf.B,Ec.r,y2.D,e.sg,e.O5,e.tP,et.Pi,n1,Fa.j,e.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.four-columns[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex-basis:25%}.form__content-row[_ngcontent-%COMP%] > .form__content-group[_ngcontent-%COMP%]{border:0!important;padding:10px 5px!important}@media (min-width: 1401px){.four-columns[_ngcontent-%COMP%] > .three-quarter[_ngcontent-%COMP%]{flex-basis:75%}}@media (max-width: 1400px){.four-columns[_ngcontent-%COMP%] > .three-quarter[_ngcontent-%COMP%]{flex-basis:50%}}  .form__content-field-row>imx-base-upload>.upload-wrapper{min-width:unset}  .file-choose-row>.button>label{white-space:nowrap}"]})}return v})();function oD(v,Ne){1&v&&r.GkF(0)}function GM(v,Ne){1&v&&r.GkF(0)}function rD(v,Ne){1&v&&r.GkF(0)}function aD(v,Ne){if(1&v&&r._UZ(0,"imx-tour-addressbase-input",2),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("moduleDataFormGroup",re.moduleDataFormGroup)("formHandler",re.formHandler)("fieldKey",F)}}const sD=()=>({$implicit:"gettingThere"}),NA=()=>({$implicit:"parking"}),lD=()=>({$implicit:"publicTransit"});let UA=(()=>{class v{static#e=this.\u0275fac=function(re){return new(re||v)};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-tour-addressbase-getting-there"]],inputs:{formHandler:"formHandler",moduleDataFormGroup:"moduleDataFormGroup"},decls:5,vars:9,consts:[[4,"ngTemplateOutlet","ngTemplateOutletContext"],["tourAddressBaseInput",""],[3,"moduleDataFormGroup","formHandler","fieldKey"]],template:function(re,ze){if(1&re&&r.YNc(0,oD,1,0,"ng-container",0)(1,GM,1,0,"ng-container",0)(2,rD,1,0,"ng-container",0)(3,aD,1,3,"ng-template",null,1,r.W1O),2&re){const It=r.MAs(4);r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(6,sD)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(7,NA)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(8,lD))}},dependencies:[e.tP,n1],encapsulation:2})}return v})();var BA=a(48802);const cD=["locationAutocompleteControl"];function L2(v,Ne){1&v&&r.GkF(0)}function ZA(v,Ne){1&v&&r.GkF(0)}function dD(v,Ne){1&v&&r.GkF(0)}function HA(v,Ne){1&v&&r.GkF(0)}function R2(v,Ne){1&v&&r.GkF(0)}function mD(v,Ne){1&v&&r.GkF(0)}function GA(v,Ne){1&v&&r.GkF(0)}function JA(v,Ne){1&v&&r.GkF(0)}function uD(v,Ne){1&v&&(r.TgZ(0,"p",13),r._uU(1,"imxplatform.common.no-records"),r.qZA())}function QA(v,Ne){1&v&&r._UZ(0,"tr",28)}function pD(v,Ne){1&v&&r._UZ(0,"tr",29)}function k2(v,Ne){1&v&&(r.TgZ(0,"th",30),r._uU(1,"ID"),r.qZA())}function VA(v,Ne){if(1&v&&(r.TgZ(0,"td",31)(1,"span"),r._uU(2),r.qZA()()),2&v){const F=Ne.$implicit;r.xp6(2),r.Oqu(F.controls.rowEntity.value.id)}}function YA(v,Ne){1&v&&(r.TgZ(0,"th",32),r._uU(1,"Bezeichnung"),r.qZA())}function N2(v,Ne){if(1&v&&(r.TgZ(0,"td",33)(1,"span"),r._uU(2),r.ALo(3,"readI18n"),r.qZA()()),2&v){const F=Ne.$implicit;r.xp6(2),r.Oqu(r.lcZ(3,1,F.controls.rowEntity.value.name))}}function U2(v,Ne){1&v&&(r.TgZ(0,"th",32),r._uU(1,"Alias 1"),r.qZA())}function WA(v,Ne){if(1&v&&(r.TgZ(0,"td",33)(1,"span"),r._uU(2),r.qZA()()),2&v){const F=Ne.$implicit;r.xp6(2),r.Oqu(F.controls.rowEntity.value.alias1)}}function B2(v,Ne){1&v&&(r.TgZ(0,"th",32),r._uU(1,"Alias 2"),r.qZA())}function Z2(v,Ne){if(1&v&&(r.TgZ(0,"td",33)(1,"span"),r._uU(2),r.qZA()()),2&v){const F=Ne.$implicit;r.xp6(2),r.Oqu(F.controls.rowEntity.value.alias2)}}function _D(v,Ne){1&v&&r._UZ(0,"th",34)}function zA(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"a",37),r.NdJ("click",function(){r.CHM(F);const ze=r.oxw().$implicit,It=r.oxw(3);return r.KtG(It.formHandler.removeLineFromCollection("locations",It.locationCollectionDataSource.filteredData.indexOf(ze),It.moduleDataFormGroup))}),r.qZA()}}function vO(v,Ne){if(1&v&&(r.TgZ(0,"td",35),r.YNc(1,zA,1,0,"a",36),r.qZA()),2&v){const F=Ne.$implicit,re=r.oxw(3);r.Q6J("formGroup",F),r.xp6(),r.Q6J("hasFieldWritePermission","metainfos:modules_tour:locations")("hasFieldWritePermissionFormHandler",re.formHandler)}}function H2(v,Ne){if(1&v&&(r.TgZ(0,"table",14),r.YNc(1,QA,1,0,"tr",15)(2,pD,1,0,"tr",16),r.ynx(3,17),r.YNc(4,k2,2,0,"th",18)(5,VA,3,1,"td",19),r.BQk(),r.ynx(6,20),r.YNc(7,YA,2,0,"th",21)(8,N2,4,3,"td",22),r.BQk(),r.ynx(9,23),r.YNc(10,U2,2,0,"th",21)(11,WA,3,1,"td",22),r.BQk(),r.ynx(12,24),r.YNc(13,B2,2,0,"th",21)(14,Z2,3,1,"td",22),r.BQk(),r.ynx(15,25),r.YNc(16,_D,1,0,"th",26)(17,vO,2,3,"td",27),r.BQk(),r.qZA()),2&v){const F=r.oxw(2);r.Q6J("dataSource",F.locationCollectionDataSource),r.xp6(),r.Q6J("matHeaderRowDef",F.locationCollectionColumns),r.xp6(),r.Q6J("matRowDefColumns",F.locationCollectionColumns)}}function G2(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"div",3)(1,"div",4)(2,"h3",5),r._uU(3,"entity.TourAddressbase.locations"),r.qZA(),r.YNc(4,uD,2,0,"ng-template",null,6,r.W1O),r.TgZ(6,"div",7),r.YNc(7,H2,18,3,"table",8),r.qZA(),r.TgZ(8,"div",9),r._UZ(9,"imx-location-autocomplete",10,11),r.ALo(11,"async"),r.ALo(12,"async"),r.TgZ(13,"button",12),r.NdJ("click",function(){r.CHM(F);const ze=r.oxw();return r.KtG(ze.addLocationRow())}),r.ALo(14,"async"),r.ALo(15,"async"),r._uU(16),r.ALo(17,"translate"),r.qZA()()()()}if(2&v){const F=r.MAs(5),re=r.oxw();r.xp6(7),r.Q6J("ngIf",re.locationCollectionDataSource&&re.locationCollectionDataSource.data.length>0)("ngIfElse",F),r.xp6(2),r.Q6J("disableControl",!r.lcZ(11,5,re.formHandler.hasEditPermission("TourAddressbase:locations"))||!r.lcZ(12,7,re.formHandler.hasSavePermission())),r.xp6(4),r.Q6J("disabled",!r.lcZ(14,9,re.formHandler.hasEditPermission("TourAddressbase:locations"))||!r.lcZ(15,11,re.formHandler.hasSavePermission())),r.xp6(3),r.hij(" ",r.lcZ(17,13,"imxplatform.common.add")," ")}}function jA(v,Ne){if(1&v&&r._UZ(0,"imx-tour-addressbase-input",38),2&v){const F=Ne.$implicit,re=r.oxw();r.Q6J("moduleDataFormGroup",re.moduleDataFormGroup)("formHandler",re.formHandler)("fieldKey",F)}}const KA=()=>({$implicit:"directions"}),bO=()=>({$implicit:"startingPointDescr"}),$A=()=>({$implicit:"destination"}),qA=()=>({$implicit:"safetyGuidelines"}),J2=()=>({$implicit:"equipment"}),fD=()=>({$implicit:"trackSignage"}),XA=()=>({$implicit:"objective"}),gD=()=>({$implicit:"routeNumber"});let ew=(()=>{class v{constructor(F,re){this.entitiesMgr=F,this.changeDetectorRef=re}ngOnInit(){this.moduleDataFormGroup.get("locations")&&(this._prepareLocationsTable(),this._loadAdditionalLocationProperties())}_prepareLocationsTable(){this._createLocationCollectionDataSource(),this._createLocationCollectionColumns()}_createLocationCollectionDataSource(){this.locationCollectionDataSource=this.prepareTable(this.moduleDataFormGroup.get("locations"),F=>this.locationCollectionDataSource=F)}_createLocationCollectionColumns(){this.locationCollectionColumns=["locationId","name","alias1","alias2","removeColumn"]}_loadAdditionalLocationProperties(){const F=this.moduleDataFormGroup.get("locations");F&&F.controls&&F.controls.forEach(re=>{const ze=re.get(R.ARRAY_ENTITY_FIELD),It=ze&&ze.value&&ze.value.id;ze&&It&&this.entitiesMgr.getEntityWithIdOfType("Location",It).subscribe(vo=>{ze.setValue(vo)})})}addLocationRow(){this._addLocationRowToFormModel(),this._clearLocationInputField()}_addLocationRowToFormModel(){if(this.locationAutocompleteControl){const F=this.locationAutocompleteControl.getSelectedId();F&&this.entitiesMgr.getEntityWithIdOfType("Location",F).subscribe(re=>{const ze=this.formHandler.addNewCollectionRow("metainfos:modules_tour:locations",!0,this.moduleDataFormGroup.get("locations"));ze.controls[R.ARRAY_ENTITY_FIELD].setValue(re),ze.controls[R.ARRAY_ID_FIELD].setValue(F),this.changeDetectorRef.markForCheck()})}}_clearLocationInputField(){this.locationAutocompleteControl&&this.locationAutocompleteControl.writeValue(void 0)}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(r.sBO))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-tour-addressbase-main"]],viewQuery:function(re,ze){if(1&re&&r.Gf(cD,5),2&re){let It;r.iGM(It=r.CRH())&&(ze.locationAutocompleteControl=It.first)}},inputs:{formHandler:"formHandler",moduleDataFormGroup:"moduleDataFormGroup",prepareTable:"prepareTable"},decls:12,vars:27,consts:[[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","form__content-row",4,"ngIf"],["tourAddressBaseInput",""],[1,"form__content-row"],[1,"form__content-group"],["translate",""],["noRecord",""],[1,"form__table"],["mat-table","",3,"dataSource",4,"ngIf","ngIfElse"],[1,"form__content-field-row"],["label","Ort w\xe4hlen",3,"disableControl"],["locationAutocompleteControl",""],[1,"imx-button","prio2",3,"disabled","click"],["translate","",1,"txt-grey","txt-md-sm","no-records"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","locationId"],["mat-header-cell","","class","id-column",4,"matHeaderCellDef"],["mat-cell","","class","id-column",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias1"],["matColumnDef","alias2"],["matColumnDef","removeColumn"],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",3,"formGroup",4,"matCellDef"],["mat-header-row",""],["mat-row",""],["mat-header-cell","",1,"id-column"],["mat-cell","",1,"id-column"],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","",1,"action-column"],["mat-cell","",1,"action-column",3,"formGroup"],["class","icon icon-trash imx-icon-middle imx-icon-clickable",3,"click",4,"hasFieldWritePermission","hasFieldWritePermissionFormHandler"],[1,"icon","icon-trash","imx-icon-middle","imx-icon-clickable",3,"click"],[3,"moduleDataFormGroup","formHandler","fieldKey"]],template:function(re,ze){if(1&re&&(r.YNc(0,L2,1,0,"ng-container",0)(1,ZA,1,0,"ng-container",0)(2,dD,1,0,"ng-container",0)(3,HA,1,0,"ng-container",0)(4,R2,1,0,"ng-container",0)(5,mD,1,0,"ng-container",0)(6,GA,1,0,"ng-container",0)(7,JA,1,0,"ng-container",0)(8,G2,18,15,"div",1),r.ALo(9,"async"),r.YNc(10,jA,1,3,"ng-template",null,2,r.W1O)),2&re){const It=r.MAs(11);r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(19,KA)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(20,bO)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(21,$A)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(22,qA)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(23,J2)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(24,fD)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(25,XA)),r.xp6(),r.Q6J("ngTemplateOutlet",It)("ngTemplateOutletContext",r.DdM(26,gD)),r.xp6(),r.Q6J("ngIf",r.lcZ(9,17,ze.formHandler.hasReadPermission("TourAddressbase:locations")))}},dependencies:[BA.d,nl.X,hl.F,e.O5,e.tP,s.JL,ue.BZ,ue.fO,ue.as,ue.w1,ue.Dz,ue.nj,ue.ge,ue.ev,ue.XQ,ue.Gk,s.sg,et.Pi,n1,Fa.j,e.Ov,et.X$],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}.form__table[_ngcontent-%COMP%]{margin-bottom:10px}.form__table   [_nghost-%COMP%]     .p-scrollpanel-content{padding:0 0 18px;width:100%}.form__table[_ngcontent-%COMP%]   .mat-mdc-table[_ngcontent-%COMP%]{background:inherit;color:#0a2663;width:100%;table-layout:fixed}.form__table[_ngcontent-%COMP%]   .mat-mdc-table.sticky[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{position:sticky;top:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}.form__table[_ngcontent-%COMP%]   .mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:#e6e9ef;transition-property:background;transition-duration:.2s;transition-timing-function:linear}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{background-color:#eefafa;border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:0 5px;min-height:30px;text-overflow:ellipsis;overflow:hidden;color:#898989;font-weight:500;font-size:12px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-right:1px dashed #ced4e0;border-bottom:1px solid #ced4e0;border-collapse:collapse;padding:5px;min-height:48px;color:inherit}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-form-control[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   .imx-select[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]   imx-i18n-multi-input[_ngcontent-%COMP%]{min-width:100%;margin:0}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-child{border-right:none}.form__table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:5px}.form__table[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:10px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.icon-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.icon-column[_ngcontent-%COMP%]{width:50px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.id-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.id-column[_ngcontent-%COMP%]{width:70px}.form__table[_ngcontent-%COMP%]   .mat-mdc-header-cell.action-column[_ngcontent-%COMP%], .form__table[_ngcontent-%COMP%]   .mat-mdc-cell.action-column[_ngcontent-%COMP%]{width:35px}[_nghost-%COMP%]   imx-location-autocomplete[_ngcontent-%COMP%]{margin-top:10px}"]})}return v})();function hD(v,Ne){if(1&v&&(r.TgZ(0,"imx-accordion-panel",5),r._UZ(1,"imx-tour-addressbase-main",6),r.qZA()),2&v){const F=r.oxw();r.xp6(),r.Q6J("formHandler",F.formHandler)("moduleDataFormGroup",F.moduleDataFormGroup)("prepareTable",F.prepareTable)}}function xD(v,Ne){if(1&v&&(r.TgZ(0,"imx-accordion-panel",7),r._UZ(1,"imx-tour-addressbase-details",8),r.qZA()),2&v){const F=r.oxw();r.xp6(),r.Q6J("formHandler",F.formHandler)("moduleDataFormGroup",F.moduleDataFormGroup)}}function tw(v,Ne){if(1&v&&(r.TgZ(0,"imx-accordion-panel",9),r._UZ(1,"imx-tour-addressbase-getting-there",8),r.qZA()),2&v){const F=r.oxw();r.xp6(),r.Q6J("formHandler",F.formHandler)("moduleDataFormGroup",F.moduleDataFormGroup)}}function nw(v,Ne){if(1&v&&(r.TgZ(0,"imx-accordion-panel",10),r._UZ(1,"imx-tour-addressbase-additional-information",8),r.qZA()),2&v){const F=r.oxw();r.xp6(),r.Q6J("formHandler",F.formHandler)("moduleDataFormGroup",F.moduleDataFormGroup)}}function iw(v,Ne){if(1&v&&(r.TgZ(0,"imx-accordion-panel",11),r._UZ(1,"imx-edit-extended-attributes",12),r.qZA()),2&v){const F=r.oxw();r.xp6(),r.Q6J("formHandler",F.formHandler)("formGroup",F.moduleDataFormGroup)("fieldPrefix","metainfos:modules_tour")("extendedAttributes",F.extendedAttributes)("permissionIdPrefix","TourAddressbase")}}let vD=(()=>{class v extends R.AbstractExtendedAttributeAwareFormPanelComponent{constructor(F,re){super(F,re),this.entitiesMgr=F,this.dialog=re,this.prepareTable=this.prepareTable.bind(this)}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(R.ImxEntitiesMgrService),r.Y36(u.uw))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-tour-addressbase-form-panel"]],hostAttrs:[1,"imx-tour-addressbase-form-panel"],features:[r.qOj],decls:50,vars:93,consts:[["title","imxtools.metainfo.modules_tour.main",4,"ngIf"],["title","imxtools.metainfo.modules_tour.details",4,"ngIf"],["title","imxtools.metainfo.modules_tour.gettingThere",4,"ngIf"],["title","imxtools.metainfo.modules_tour.additionalInformation",4,"ngIf"],["title","imxtools.metainfo.modules_tour.attributes",4,"ngIf"],["title","imxtools.metainfo.modules_tour.main"],[3,"formHandler","moduleDataFormGroup","prepareTable"],["title","imxtools.metainfo.modules_tour.details"],[3,"formHandler","moduleDataFormGroup"],["title","imxtools.metainfo.modules_tour.gettingThere"],["title","imxtools.metainfo.modules_tour.additionalInformation"],["title","imxtools.metainfo.modules_tour.attributes"],[3,"formHandler","formGroup","fieldPrefix","extendedAttributes","permissionIdPrefix"]],template:function(re,ze){1&re&&(r.TgZ(0,"imx-accordion"),r.YNc(1,hD,2,3,"imx-accordion-panel",0),r.ALo(2,"async"),r.ALo(3,"async"),r.ALo(4,"async"),r.ALo(5,"async"),r.ALo(6,"async"),r.ALo(7,"async"),r.ALo(8,"async"),r.ALo(9,"async"),r.YNc(10,xD,2,2,"imx-accordion-panel",1),r.ALo(11,"async"),r.ALo(12,"async"),r.ALo(13,"async"),r.ALo(14,"async"),r.ALo(15,"async"),r.ALo(16,"async"),r.ALo(17,"async"),r.ALo(18,"async"),r.ALo(19,"async"),r.ALo(20,"async"),r.ALo(21,"async"),r.ALo(22,"async"),r.ALo(23,"async"),r.ALo(24,"async"),r.ALo(25,"async"),r.ALo(26,"async"),r.ALo(27,"async"),r.ALo(28,"async"),r.ALo(29,"async"),r.YNc(30,tw,2,2,"imx-accordion-panel",2),r.ALo(31,"async"),r.ALo(32,"async"),r.ALo(33,"async"),r.YNc(34,nw,2,2,"imx-accordion-panel",3),r.ALo(35,"async"),r.ALo(36,"async"),r.ALo(37,"async"),r.ALo(38,"async"),r.ALo(39,"async"),r.ALo(40,"async"),r.ALo(41,"async"),r.ALo(42,"async"),r.ALo(43,"async"),r.ALo(44,"async"),r.ALo(45,"async"),r.ALo(46,"async"),r.YNc(47,iw,2,5,"imx-accordion-panel",4),r.ALo(48,"async"),r.ALo(49,"async"),r.qZA()),2&re&&(r.xp6(),r.Q6J("ngIf",r.lcZ(2,5,ze.formHandler.hasReadPermission("TourAddressbase:directions"))||r.lcZ(3,7,ze.formHandler.hasReadPermission("TourAddressbase:startingPointDescr"))||r.lcZ(4,9,ze.formHandler.hasReadPermission("TourAddressbase:destination"))||r.lcZ(5,11,ze.formHandler.hasReadPermission("TourAddressbase:objective"))||r.lcZ(6,13,ze.formHandler.hasReadPermission("TourAddressbase:routeNumber"))||r.lcZ(7,15,ze.formHandler.hasReadPermission("TourAddressbase:safetyGuidelines"))||r.lcZ(8,17,ze.formHandler.hasReadPermission("TourAddressbase:equipment"))||r.lcZ(9,19,ze.formHandler.hasReadPermission("TourAddressbase:locations"))),r.xp6(9),r.Q6J("ngIf",r.lcZ(11,21,ze.formHandler.hasReadPermission("TourAddressbase:categories"))||r.lcZ(12,23,ze.formHandler.hasReadPermission("TourAddressbase:condition"))||r.lcZ(13,25,ze.formHandler.hasReadPermission("TourAddressbase:difficulties"))||r.lcZ(14,27,ze.formHandler.hasReadPermission("TourAddressbase:months"))||r.lcZ(15,29,ze.formHandler.hasReadPermission("TourAddressbase:attributes"))||r.lcZ(16,31,ze.formHandler.hasReadPermission("TourAddressbase:trackTypes"))||r.lcZ(17,33,ze.formHandler.hasReadPermission("TourAddressbase:duration"))||r.lcZ(18,35,ze.formHandler.hasReadPermission("TourAddressbase:length"))||r.lcZ(19,37,ze.formHandler.hasReadPermission("TourAddressbase:maxAltitude"))||r.lcZ(20,39,ze.formHandler.hasReadPermission("TourAddressbase:minAltitude"))||r.lcZ(21,41,ze.formHandler.hasReadPermission("TourAddressbase:ascent"))||r.lcZ(22,43,ze.formHandler.hasReadPermission("TourAddressbase:descent"))||r.lcZ(23,45,ze.formHandler.hasReadPermission("TourAddressbase:profile"))||r.lcZ(24,47,ze.formHandler.hasReadPermission("TourAddressbase:geometry"))||r.lcZ(25,49,ze.formHandler.hasReadPermission("TourAddressbase:expositions"))||r.lcZ(26,51,ze.formHandler.hasReadPermission("TourAddressbase:riskPotential"))||r.lcZ(27,53,ze.formHandler.hasReadPermission("TourAddressbase:durationDownhill"))||r.lcZ(28,55,ze.formHandler.hasReadPermission("TourAddressbase:durationDays"))||r.lcZ(29,57,ze.formHandler.hasReadPermission("TourAddressbase:stages"))),r.xp6(20),r.Q6J("ngIf",r.lcZ(31,59,ze.formHandler.hasReadPermission("TourAddressbase:gettingThere"))||r.lcZ(32,61,ze.formHandler.hasReadPermission("TourAddressbase:parking"))||r.lcZ(33,63,ze.formHandler.hasReadPermission("TourAddressbase:publicTransit"))),r.xp6(4),r.Q6J("ngIf",r.lcZ(35,65,ze.formHandler.hasReadPermission("TourAddressbase:additionalInformation"))||r.lcZ(36,67,ze.formHandler.hasReadPermission("TourAddressbase:tip"))||r.lcZ(37,69,ze.formHandler.hasReadPermission("TourAddressbase:literature"))||r.lcZ(38,71,ze.formHandler.hasReadPermission("TourAddressbase:maps"))||r.lcZ(39,73,ze.formHandler.hasReadPermission("TourAddressbase:condition"))||r.lcZ(40,75,ze.formHandler.hasReadPermission("TourAddressbase:difficulty"))||r.lcZ(41,77,ze.formHandler.hasReadPermission("TourAddressbase:landscape"))||r.lcZ(42,79,ze.formHandler.hasReadPermission("TourAddressbase:qualityOfExperience"))||r.lcZ(43,81,ze.formHandler.hasReadPermission("TourAddressbase:communityRating"))||r.lcZ(44,83,ze.formHandler.hasReadPermission("TourAddressbase:communityRatingCount"))||r.lcZ(45,85,ze.formHandler.hasReadPermission("TourAddressbase:qualityLevel"))||r.lcZ(46,87,ze.formHandler.hasReadPermission("TourAddressbase:technique"))),r.xp6(13),r.Q6J("ngIf",r.lcZ(48,89,ze.extendedAttributesAvailable)&&r.lcZ(49,91,ze.formHandler.hasReadPermission("TourAddressbase:attributeDefinitions"))))},dependencies:[gr.E,e.O5,s.JL,s.sg,Js.Z,Ms.U,TA,F2,UA,ew,e.Ov],styles:[".no-records[_ngcontent-%COMP%]{text-align:center}.imx-button-select.no-margin[_ngcontent-%COMP%]{margin-bottom:0}  imx-form-control,   imx-autocomplete,   imx-i18n-multi-input,   imx-multi-input,   imx-base-read-only,   imx-checkbox-select{display:block;margin-bottom:10px}  imx-form-control>imx-i18n-multi-input{margin-bottom:0}.form__content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]{font-size:14px;background-color:#eefafa;width:100%;border:1px solid #e6e9ef;margin-bottom:10px;margin-right:10px;padding:10px 20px}.form__content-row[_ngcontent-%COMP%]   .form__content-group[_ngcontent-%COMP%]:last-of-type{margin-right:unset}.form__content-field-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.imx-button){width:100%;margin-left:10px}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:empty{width:unset;margin:unset}.form__content-field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-left:unset}.form__content-field-row[_ngcontent-%COMP%]   .imx-button[_ngcontent-%COMP%]{height:30px;margin-top:auto}.form__content-field-row[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{flex-basis:120px}.form__content-field-row[_ngcontent-%COMP%]   .addButton[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:3px}"],changeDetection:0})}return v})(),bD=(()=>{class v{constructor(){this.metainfoFormPanelMappings=new Map,this.metainfoFormPanelMappings.set("modules_acc",k),this.metainfoFormPanelMappings.set("modules_acc_services",Ju),this.metainfoFormPanelMappings.set("modules_acc_apartment",yu),this.metainfoFormPanelMappings.set("modules_acc_hostel",Im),this.metainfoFormPanelMappings.set("modules_acc_camping",oc),this.metainfoFormPanelMappings.set("modules_certification",L_),this.metainfoFormPanelMappings.set("modules_tour",vD),this.metainfoFormPanelMappings.set("modules_gastronomy",av),this.metainfoFormPanelMappings.set("modules_gastronomy_restaurant",Cb),this.metainfoFormPanelMappings.set("modules_gastro2",Zx),this.metainfoFormPanelMappings.set("modules_lodge",sC),this.metainfoFormPanelMappings.set("modules_convention_center",zt),this.metainfoFormPanelMappings.set("modules_convention_hotel",n0),this.metainfoFormPanelMappings.set("modules_convention_city",lx),this.metainfoFormPanelMappings.set("modules_convention_location",G1),this.metainfoFormPanelMappings.set("modules_convention_green_meeting",a1),this.metainfoFormPanelMappings.set("modules_beach",h_),this.metainfoFormPanelMappings.set("modules_particular_condition",fE),this.metainfoFormPanelMappings.set("modules_rating",bw),this.metainfoFormPanelMappings.set("modules_occupancy",oO),this.metainfoFormPanelMappings.set("modules_qr_announcement",TT),this.metainfoFormPanelMappings.set("modules_rfa",t1),this.metainfoFormPanelMappings.set("modules_price_list",yT),this.metainfoFormPanelMappings.set("modules_ibe_deskline3_acc",$C),this.metainfoFormPanelMappings.set("modules_ibe_tomas_acc",IP),this.metainfoFormPanelMappings.set("modules_ibe_deskline3_food_beverage",my),this.metainfoFormPanelMappings.set("modules_ibe_deskline3_route_tour",lP),this.metainfoFormPanelMappings.set("modules_ibe_deskline3_sport_leisure",Wb),this.metainfoFormPanelMappings.set("modules_ibe_deskline3_wellness_health",cP),this.metainfoFormPanelMappings.set("modules_ibe_deskline3_art_culture",YM),this.metainfoFormPanelMappings.set("modules_ibe_deskline3_poi",$h),this.metainfoFormPanelMappings.set("modules_ibe_deskline3_mobility_traffic",WM),this.metainfoFormPanelMappings.set("modules_ibe_deskline3_infra",uy),this.metainfoFormPanelMappings.set("modules_ibe_deskline3_house_package",QO),this.metainfoFormPanelMappings.set("modules_regiondo_offer",JE)}getMetainfoFormPanelMappings(){return this.metainfoFormPanelMappings}static#e=this.\u0275fac=function(re){return new(re||v)};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})(),CD=(()=>{class v{constructor(){this.metainfoFilterPanelMappings=new Map,this.metainfoFilterPanelMappings.set("modules_acc",ki),this.metainfoFilterPanelMappings.set("modules_tour",ss),this.metainfoFilterPanelMappings.set("modules_certification",Ti)}getMetainfoFilterPanelMappings(){return this.metainfoFilterPanelMappings}static#e=this.\u0275fac=function(re){return new(re||v)};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})();var JM=a(86374);let ow=(()=>{class v extends Te.aP{constructor(F){super(F,"InputFieldType")}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(Te.fx))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})(),yD=(()=>{class v extends Te.aP{constructor(F){super(F,"LocationDefinition")}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(Te.fx))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})();var OD=a(29989),Q2=a(73832);let PD=(()=>{class v extends R.AbstractClientSideBackgroundAction{constructor(F,re,ze,It,vo){super(F,re,ze,It,vo),this.dialog=F,this.dataAccess=re,this.entityStateDao=ze,this.userMessageService=It,this.backgroundActionService=vo,this.logger=(0,R.getLogger)("OfferImportAction",ot.H.name)}getOrder(){return this.ACTION_ORDER_IMPORT}doExecute(F){return new Dt.y(re=>{this.dialog.open(R.ImportDialogComponent,{maxWidth:450,data:{i18n:"imxtools.offer.list.action.import.confirm",title:F.title,ids:Array.of(F.id)}}).afterClosed().subscribe(It=>{if(It){const vo=this.createActionCall("Offer",F);this.logger.info("Trigger import for offer: "+JSON.stringify(vo)),this.executeInBackground({entityIds:[F.id],ids:1,operation:this.dataAccess.callAction(vo)}),re.next(!0)}})})}executeBatch(F){return new Dt.y(re=>{this.dialog.open(R.ImportDialogComponent,{maxWidth:450,data:{batch:!0,i18n:"imxtools.offer.list.action.import.confirm-batch",count:F.length,ids:F}}).afterClosed().subscribe(It=>{if(It){const vo=this.createActionCallForBatch("Offer",F);this.logger.info("Trigger import for offer: "+JSON.stringify(vo)),this.executeInBackground({entityIds:F,ids:F.length,operation:this.dataAccess.callAction(vo)}),re.next(!0)}})})}getEntityType(){return"Offer"}getBatchWarningKey(){return"imxtools.offer.list.action.import.batch-warning"}getSuccessKey(){return"imxtools.offer.list.action.import.successful"}getActionKey(){return"offer-action-import"}getIcon(){return"icon-inbox"}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService),r.LFG(R.BackgroundActionService))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})(),aw=(()=>{class v{constructor(F){this.dataAccessService=F}search(F,re,ze,It){return this.dataAccessService.getOffers({latitude:F.toString(),longitude:re.toString(),searchDistance:ze.toString()},{paging:{pageSize:It,pageIdx:0},sortFields:["GEO_DISTANCE-ASC"]})}getEntityType(){return R.CoreEntityDef.OFFER_ENTITY.type}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(dt.N))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})();var MD=a(57729);let d=(()=>{class v extends R.AbstractSetStateAction{constructor(F,re,ze,It,vo){super(F,re,ze,It,vo),this.dialog=F,this.dataAccess=re,this.imxEntitiesMgrService=ze,this.entityStateDao=It,this.userMessageService=vo}doExecute(F){return super.doExecute(F)}executeBatch(F,re){return super.executeBatch(F,re)}getActionKey(){return"offer-action-set_state"}getEntityType(){return"Offer"}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.ImxEntitiesMgrService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})(),_=(()=>{class v{constructor(F,re){this.data=F,this.addressbaseAutocompleteService=re,this.configuration=F,this.dialogForm=new s.nJ({oAddressbaseId:new s.p4("")})}getDialogResult(){return this.dialogForm.get("oAddressbaseId").value}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(u.WI),r.Y36(Ce.s))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["ng-component"]],decls:4,vars:3,consts:[["heading","imxtools.addressbase.list.action.switch-addressbase.header","icon","icon-home","submitButtonLabel","imxtools.addressbase.list.action.switch-addressbase.button",3,"getSubmitResult"],[1,"dialog-form"],["novalidate","",3,"formGroup"],["name","oAddressbase","formControlName","oAddressbaseId",3,"autocompleteService"]],template:function(re,ze){1&re&&(r.TgZ(0,"imx-dialog",0)(1,"div",1)(2,"form",2),r._UZ(3,"imx-base-autocomplete",3),r.qZA()()()),2&re&&(r.Q6J("getSubmitResult",ze.getDialogResult.bind(ze)),r.xp6(2),r.Q6J("formGroup",ze.dialogForm),r.xp6(),r.Q6J("autocompleteService",ze.addressbaseAutocompleteService))},dependencies:[SP.h,Wi.a,s._Y,s.JJ,s.JL,s.sg,s.u],encapsulation:2})}return v})();const C="Offer";let D=(()=>{class v extends R.AbstractAction{constructor(F,re,ze,It){super(F,re,ze,It),this.dialog=F,this.dataAccess=re,this.entityStateDao=ze,this.userMessageService=It,this.logger=(0,R.getLogger)("OfferSwitchAddressbaseAction",ot.H.name)}getOrder(){return this.ACTION_ORDER_CONVERT}doExecute(F){return new Dt.y(re=>{this.dialog.open(_,{maxWidth:670,maxHeight:235,data:{}}).afterClosed().subscribe(It=>{if(void 0!==It){const vo=this.createActionCall(C,F,{addressbaseId:It});this.logger.info("Assign addressbase to offer: "+JSON.stringify(vo)),this.dataAccess.callAction(vo).subscribe(Os=>{this.showSuccessMessageForSingleAction(Os),re.next(!0)})}})})}executeBatch(F){return new Dt.y(re=>{this.dialog.open(_,{maxWidth:670,maxHeight:235,data:{}}).afterClosed().subscribe(It=>{if(void 0!==It){const vo=this.createActionCallForBatch(C,F,{addressbaseId:It});this.logger.info("Assign addressbase to offer: "+JSON.stringify(vo)),this.dataAccess.callAction(vo).subscribe(Os=>{this.validateBatchResult(F,Os),this.showSuccessMessage(Os),re.next(!0)})}})})}getBatchWarningKey(){return"imxtools.offer.list.action.switch-addressbase.batch-warning"}getSuccessKey(){return"imxtools.offer.list.action.switch-addressbase.successful"}getActionKey(){return"offer-action-switch_addressbase"}getIcon(){return"icon-link"}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})(),z=(()=>{class v extends Te.aP{constructor(F){super(F,"PaymentOption")}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(Te.fx))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})(),ce=(()=>{class v extends Te.aP{constructor(F){super(F,"PrioLevel")}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(Te.fx))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})();var je=a(65320),_t=a(27996);let Ut=(()=>{class v extends R.ServerSideFilteringIdCachingDataSourceService{constructor(F,re){super(F),this.securityContextHolder=F,this.toolsService=re}fetchAllIds(F,re,ze){const It=this.extractSortFields(re,ze);return this.toolsService.getAddressbaseIds(F,{paging:"ONE_PAGE",sortFields:[It]})}fetchResults(F){return this.toolsService.getAddressbases(F,{paging:{pageIdx:0,pageSize:1e3}})}toIdFilter(F){return{id:F.join(",")}}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(Te.q3),r.LFG(dt.N))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})();var Yn=a(31475);let Ri=(()=>{class v extends R.ServerSideFilteringIdCachingDataSourceService{constructor(F,re){super(F),this.securityContextHolder=F,this.toolsService=re}fetchAllIds(F,re,ze){const It=this.extractSortFields(re,ze);return this.toolsService.getOfferIds(F,{paging:"ONE_PAGE",sortFields:[It]})}fetchResults(F){return this.toolsService.getOffers(F,{paging:{pageIdx:0,pageSize:1e3}})}toIdFilter(F){return{id:F.join(",")}}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(Te.q3),r.LFG(dt.N))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})();var so=a(99879);let Zo=(()=>{class v{getNavigationItems(){return qo}static#e=this.\u0275fac=function(re){return new(re||v)};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})();const qo=[{name:"object_management",labelKey:"imxplatform.navigation.object-mgmt",icon:"icon-layers",open:!0,order:20,children:[{name:"object_management:searchAddressbase",labelKey:"imxplatform.navigation.addressbases",icon:"icon-stem",routerLink:"/addressbases",order:2,permissions:[so.i.F_ADDRESSBASE_READ_ALL,so.i.F_ADDRESSBASE_READ_OWN_CLIENT,so.i.F_ADDRESSBASE_READ_OWN_USER]},{name:"object_management:searchOffer",labelKey:"imxplatform.navigation.offers",icon:"icon-tag",routerLink:"/offers",order:4,permissions:[so.i.F_OFFER_READ_ALL,so.i.F_OFFER_READ_OWN_CLIENT,so.i.F_OFFER_READ_OWN_USER]}]},{name:"data-quality",labelKey:"imxplatform.navigation.data-quality",icon:"icon-quality ",order:45,children:[{name:"object_management:duplicateAddressPois",labelKey:"imxplatform.navigation.addressbaseDuplicates",icon:"icon-duplicate_stem",routerLink:"/addressbaseDuplicates",order:3,permissions:[Te.uo.F_ADDRESSPOI_DUPLICATES]}]}];let Er=(()=>{class v{constructor(F){this.configurationProvider=F}getNavigationItems(){if(void 0===this.hasTourModule){const F=this.configurationProvider.getStringFromSnapshot($o.s.IMXTOOLS_MODULES,"");this.hasTourModule=F.split(",").findIndex(re=>"modules_tour"===re)>-1}return this.hasTourModule?aa:[]}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(Te.Pc))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})();const aa=[{name:"object_management",labelKey:"imxplatform.navigation.object-mgmt",icon:"icon-layers",open:!0,order:20,children:[{name:"object_management:searchTours",labelKey:"imxplatform.navigation.tours",icon:"icon-map_tour",routerLink:"/tours",order:3,permissions:[so.i.F_ADDRESSBASE_READ_ALL,so.i.F_ADDRESSBASE_READ_OWN_CLIENT,so.i.F_ADDRESSBASE_READ_OWN_USER]}]}];var Qa=a(97859),Zs=a(38777),ta=a(44636),dc=a(6996),rd=a(94480);function hd(v,Ne){if(1&v&&(r.ynx(0),r._uU(1),r.ALo(2,"translate"),r.BQk()),2&v){const F=r.oxw().dataObject;r.xp6(),r.AsE("/ ",r.lcZ(2,2,"entity.CoreDataObject.importIdentifier"),": ",F.importIdentifier," ")}}function I_(v,Ne){if(1&v&&(r.TgZ(0,"p",10),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v){const F=r.oxw().dataObject;r.xp6(),r.AsE(" ",r.lcZ(2,2,"entity.ExternalDataProvider.entityName"),": ",F.importInfos[0].externalDataProvider.name," ")}}function CO(v,Ne){if(1&v&&(r.TgZ(0,"span",10),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v){const F=r.oxw(2);r.xp6(),r.AsE(" ",r.lcZ(2,2,"imxplatform.duplicate.list.content.address"),": ",F.renderAddressString(F.duplicateItem.contact1.address),"")}}function sw(v,Ne){if(1&v&&(r.TgZ(0,"span"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v){const F=r.oxw().dataObject,re=r.oxw();r.xp6(),r.AsE("",r.lcZ(2,2,"imxplatform.duplicate.list.content.phone"),": ",re.normalizePhone(null==F||null==F.contact1||null==F.contact1.address?null:F.contact1.address.phone1),"")}}function lw(v,Ne){if(1&v&&(r.TgZ(0,"span"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&v){const F=r.oxw().dataObject;r.xp6(),r.AsE("",r.lcZ(2,2,"entity.Addressbase.contact1.address.email"),": ",null==F||null==F.contact1||null==F.contact1.address?null:F.contact1.address.email,"")}}function AD(v,Ne){if(1&v&&(r.TgZ(0,"span"),r._uU(1),r.ALo(2,"translate"),r.ALo(3,"readI18n"),r.qZA()),2&v){const F=r.oxw().dataObject;r.xp6(),r.AsE("",r.lcZ(2,2,"entity.Addressbase.contact1.address.homepage"),": ",r.lcZ(3,4,null==F||null==F.contact1||null==F.contact1.address?null:F.contact1.address.homepage),"")}}function wD(v,Ne){if(1&v){const F=r.EpF();r.TgZ(0,"a",4),r.NdJ("click",function(){const It=r.CHM(F).dataObject,vo=r.oxw();return r.KtG(vo.contextNavigationService.navigateToCoreEntityContextual(["../addressbases/edit",It.id]))})("mouseenter",function(ze){r.CHM(F);const It=r.MAs(4);return r.KtG(It.show(ze))})("mouseleave",function(){r.CHM(F);const ze=r.MAs(4);return r.KtG(ze.hide())}),r._uU(1),r.ALo(2,"readI18n"),r.TgZ(3,"imx-tooltip-extended",5,6),r._UZ(5,"span",7),r.ALo(6,"readI18n"),r.ALo(7,"translate"),r.qZA()(),r.TgZ(8,"p",8),r._uU(9),r.qZA(),r.TgZ(10,"div",9)(11,"p",10)(12,"span"),r._uU(13),r.YNc(14,hd,3,4,"ng-container",11),r.qZA()(),r.YNc(15,I_,3,4,"p",12),r.TgZ(16,"p",10),r._uU(17),r.ALo(18,"translate"),r.TgZ(19,"span"),r._uU(20),r.qZA()(),r.TgZ(21,"p",10),r._uU(22),r.ALo(23,"translate"),r.TgZ(24,"span"),r._uU(25),r.qZA(),r.TgZ(26,"span"),r._uU(27),r.qZA()(),r.TgZ(28,"p",10),r.YNc(29,CO,3,4,"span",12),r.qZA(),r.TgZ(30,"p",10),r.YNc(31,sw,3,4,"span",11),r.qZA(),r._UZ(32,"p",10),r.TgZ(33,"p",10),r.YNc(34,lw,3,4,"span",11),r.qZA(),r.TgZ(35,"p",10),r.YNc(36,AD,4,6,"span",11),r.qZA()()}if(2&v){const F=Ne.dataObject,re=r.oxw();r.xp6(),r.hij(" ",r.lcZ(2,19,F.title)," "),r.xp6(2),r.Q6J("offset",300),r.xp6(2),r.Q6J("innerHTML",null!=F&&F.longDescription?r.lcZ(6,21,null==F?null:F.longDescription):r.lcZ(7,23,"imxplatform.duplicate.list.content.no-long-desc"),r.oJD),r.xp6(4),r.AsE("",null==F||null==F.contact1||null==F.contact1.address?null:F.contact1.address.zipcode," ",null==F||null==F.contact1||null==F.contact1.address?null:F.contact1.address.city,""),r.xp6(4),r.hij(" ID: ",F.id," "),r.xp6(),r.Q6J("ngIf",F.importIdentifier),r.xp6(),r.Q6J("ngIf",F.importInfos&&F.importInfos.length>0&&F.importInfos.length>0),r.xp6(2),r.hij(" ",r.lcZ(18,25,"entity.CoreDataObject.client"),": "),r.xp6(2),r.Tol("client clientId_"+F.client.id),r.xp6(),r.Oqu(F.client.name),r.xp6(2),r.hij("",r.lcZ(23,27,"imxplatform.common-entity.edit.panels.geo.coordinates"),": "),r.xp6(3),r.hij("L",null==F||null==F.geoInfo||null==F.geoInfo.coordinates?null:F.geoInfo.coordinates.longitude,""),r.xp6(2),r.hij(" B ",null==F||null==F.geoInfo||null==F.geoInfo.coordinates?null:F.geoInfo.coordinates.latitude,""),r.xp6(2),r.Q6J("ngIf",""!==re.duplicateItem.normalizedAddress),r.xp6(2),r.Q6J("ngIf",null==F||null==F.contact1||null==F.contact1.address?null:F.contact1.address.phone1),r.xp6(3),r.Q6J("ngIf",null==F||null==F.contact1||null==F.contact1.address?null:F.contact1.address.email),r.xp6(2),r.Q6J("ngIf",null==F||null==F.contact1||null==F.contact1.address?null:F.contact1.address.homepage)}}function DD(v,Ne){if(1&v&&r._UZ(0,"imx-duplicates-right-slot-addressbase",13),2&v){const F=Ne.dataObject,re=r.oxw();r.Q6J("dataObject",F)("extendedDataObject",re.fullAddressbase$)}}function ID(v,Ne){if(1&v&&(r.ynx(0),r.TgZ(1,"p",14),r._uU(2),r.ALo(3,"translate"),r.TgZ(4,"span"),r._uU(5),r.ALo(6,"productline"),r.qZA()(),r.BQk()),2&v){const F=Ne.ngIf;r.xp6(2),r.AsE("",r.lcZ(3,3,"imxtools.addressbase.list.produclines")," (",F.length,"): "),r.xp6(3),r.Oqu(r.lcZ(6,5,F))}}function SD(v,Ne){if(1&v&&(r.YNc(0,ID,7,7,"ng-container",11),r.ALo(1,"productlineFilter")),2&v){const F=Ne.dataObject;r.Q6J("ngIf",r.xi3(1,1,null==F?null:F.metainfos,!0))}}let FD=(()=>{class v{constructor(F,re){this.dataAccessService=F,this.runtimeContextService=re,this.contextNavigationService=(0,r.f3M)(R.ContextNavigationService)}ngOnInit(){this.fullAddressbase$=this.dataAccessService.getAddressbaseById(this.duplicateItem.id)}renderAddressString(F){return[F.streetNo?F.street+" "+F.streetNo:F.street,F.city?F.zipcode+" "+F.city:F.zipcode,F.country].filter(vo=>""!==vo&&null!=vo).join(", ")}normalizeNormalizedAddress(F){return(0,R.normalizeAddressForDuplicates)(F)}normalizePhone(F){return(0,R.normalizePhoneForDuplicates)(F)}static#e=this.\u0275fac=function(re){return new(re||v)(r.Y36(dt.N),r.Y36(Te.Ze))};static#t=this.\u0275cmp=r.Xpm({type:v,selectors:[["imx-duplicates-content-addressbase"]],hostAttrs:[1,"imx-duplicates-content-addressbase"],inputs:{duplicateItem:"duplicateItem"},decls:7,vars:6,consts:[[3,"dataObject","memoCount","ibeAssignmentCount","leftSlotTemplate","rightSlotTemplate","bottomSlotTemplate"],["addressbaseDuplicateLeftSlotTemplate",""],["addressbaseDuplicateRightSlotTemplate",""],["addressbaseDuplicateBottomSlotTemplate",""],[1,"txt-bg","txt-grey",3,"click","mouseenter","mouseleave"],[3,"offset"],["longDescriptionTooltip",""],[1,"txt-sm",3,"innerHTML"],[1,"txt-grey","txt-md-sm"],[1,"txt-sm","margin-top"],[1,"txt-grey"],[4,"ngIf"],["class","txt-grey",4,"ngIf"],[3,"dataObject","extendedDataObject"],[1,"txt-sm-md","txt-grey"]],template:function(re,ze){if(1&re&&(r._UZ(0,"imx-list-row",0),r.YNc(1,wD,37,29,"ng-template",null,1,r.W1O)(3,DD,1,2,"ng-template",null,2,r.W1O)(5,SD,2,4,"ng-template",null,3,r.W1O)),2&re){const It=r.MAs(2),vo=r.MAs(4),Os=r.MAs(6);r.Q6J("dataObject",ze.duplicateItem)("memoCount",0)("ibeAssignmentCount",0)("leftSlotTemplate",It)("rightSlotTemplate",vo)("bottomSlotTemplate",Os)}},dependencies:[Qa.Y,hl.F,e.O5,Zs.j,ta.S,Fa.j,dc.D,rd.w,et.X$],styles:["\n\n\n\n\n\n\n\n\n\n\n\n[_nghost-%COMP%]{flex:100%}.foreign[_ngcontent-%COMP%]{font-weight:700;color:#0a2663}  .list__row .list__content-wrapper .list__column.image-column img{object-fit:cover!important}@media (min-width: 901px){  .list__row .list__content-wrapper .list__column.image-column img{height:65px!important}}@media (max-width: 900px){  .list__row .list__content-wrapper .list__column.image-column img{height:50px!important}}"]})}return v})();var cw=a(21893),dw=a(81538),TD=a(19969);let LD=(()=>{class v extends R.AbstractDeleteAction{constructor(F,re,ze,It,vo){super(F,re,ze,It,vo)}getConfirmBatchTitleKey(){return"imxplatform.announcement.list.action.delete.confirm-batch"}getConfirmTitleKey(){return"imxplatform.announcement.list.action.delete.confirm"}getEntityType(){return"Announcement"}getActionKey(){return"announcement-action-delete"}getIcon(){return"icon-trash"}static#e=this.\u0275fac=function(re){return new(re||v)(r.LFG(u.uw),r.LFG(R.ImxPlatformDataAccessService),r.LFG(R.EntityStateDao),r.LFG(R.UserMessageService),r.LFG(R.BackgroundActionService))};static#t=this.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac})}return v})();const RD=[new R.ConfigurationDefinitionPartFormConfiguration("Addressbase",[new R.Input("text","configKey","imxplatform.configuration-definition-part.configKey"),new R.AutocompleteField("configValue","entity.Addressbase.entityName",{autocompleteService:Ce.s,useAnyNameHolder:!1,extractor:v=>{if(!v)return;const Ne=v.configValue;return Ne?Ne.id:void 0},insertor:(v,Ne)=>{v&&Ne&&(Ne.configValue.id=v)}})])];var UD=a(34554);let BD=(()=>{class v{static forRoot(){return{ngModule:v,providers:[{provide:Hn.g,useClass:R.DataObjectMediumInitializerService},{provide:MD.o,useClass:R.DataObjectMediumInitializerService},Yt.D6]}}static#e=this.\u0275fac=function(re){return new(re||v)};static#t=this.\u0275mod=r.oAB({type:v});static#n=this.\u0275inj=r.cJS({providers:[{provide:Te.gk,useClass:Zo,multi:!0},{provide:Te.gk,useClass:Er,multi:!0},{provide:Yt.qX,useValue:Yt._N},{provide:je.M,useClass:Ut},yt.jn,{provide:yt.SX,useValue:yt._1},{provide:Yn.Y,useClass:Ri},Un.ru,{provide:Un.KX,useValue:Un.Uo},Q2.MJ,{provide:Q2.Xc,useValue:Q2.Kq},{provide:_t.H,useClass:_t.g},dw.Bq,{provide:dw.DS,useValue:dw.gK},cw.IA,{provide:cw.wc,useValue:cw.fG},{provide:TD.l,useClass:TD.y},{provide:Te.vN,useClass:ce,multi:!0},{provide:Te.vN,useClass:z,multi:!0},{provide:Te.vN,useClass:ow,multi:!0},{provide:Te.vN,useClass:Do,multi:!0},{provide:Te.vN,useClass:Hi,multi:!0},{provide:Te.vN,useClass:yD,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:Vt.j,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:Z,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:Pt,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:Oe,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:ye,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:ve,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:ft,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:Rn,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:ti,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:Xt,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:vn,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:Ui,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:hr,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:vt,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:_o,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:si,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:wi,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:rt,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:Ie,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:_i,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:yn,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:ln,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:He,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:ni,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:tn,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:LD,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:OD.j,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:PD,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:d,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:D,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:$e,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:Ve,multi:!0},{provide:R.IMXPLATFORM_ACTIONS,useClass:co,multi:!0},{provide:R.IMXPLATFORM_MODULE_FIELDS_DEFINITION,useValue:gd.Re,multi:!0},{provide:R.IMXPLATFORM_METAINFO_FORMPANEL_PROVIDER,useClass:bD,multi:!0},{provide:R.IMXPLATFORM_METAINFO_FILTERPANEL_PROVIDER,useClass:CD,multi:!0},{provide:R.IMXPLATFORM_MODULE_BASE_ENTITY_CONFIG,useValue:Ql,multi:!0},{provide:R.IMXPLATFORM_MODULE_BASE_ENTITY_CONFIG,useValue:Ho,multi:!0},{provide:R.IMXPLATFORM_MODULE_BASE_ENTITY_CONFIG,useValue:mc,multi:!0},{provide:R.IMXPLATFORM_MODULE_BASE_ENTITY_CONFIG,useValue:os,multi:!0},{provide:R.IMXPLATFORM_MODULE_BASE_ENTITY_CONFIG,useValue:ps,multi:!0},{provide:R.IMXPLATFORM_MODULE_BASE_ENTITY_CONFIG,useValue:Ps,multi:!0},{provide:R.IMXPLATFORM_MODULE_BASE_ENTITY_CONFIG,useValue:Ka,multi:!0},{provide:R.IMXPLATFORM_MODULE_BASE_ENTITY_CONFIG,useValue:Ba,multi:!0},{provide:R.IMXPLATFORM_MODULE_BASE_ENTITY_CONFIG,useValue:vc,multi:!0},{provide:R.IMXPLATFORM_MODULE_BASE_ENTITY_CONFIG,useValue:$s,multi:!0},{provide:R.IMXPLATFORM_MODULE_BASE_ENTITY_CONFIG,useValue:js,multi:!0},{provide:R.IMXPLATFORM_MODULE_BASE_ENTITY_CONFIG,useValue:bc,multi:!0},{provide:R.IMXPLATFORM_MODULE_BASE_ENTITY_CONFIG,useValue:ql,multi:!0},{provide:R.IMXPLATFORM_MODULE_BASE_ENTITY_CONFIG,useValue:Gs,multi:!0},{provide:R.IMXPLATFORM_MODULE_BASE_ENTITY_CONFIG,useValue:Dl,multi:!0},{provide:R.IMXPLATFORM_MODULE_BASE_ENTITY_CONFIG,useValue:Yr,multi:!0},{provide:R.IMXPLATFORM_MODULE_BASE_ENTITY_CONFIG,useValue:_a,multi:!0},{provide:R.IMXPLATFORM_MODULE_BASE_ENTITY_CONFIG,useValue:ya,multi:!0},{provide:R.IMXPLATFORM_MODULE_BASE_ENTITY_CONFIG,useValue:Pl,multi:!0},{provide:R.IMXPLATFORM_MODULE_BASE_ENTITY_CONFIG,useValue:jl,multi:!0},{provide:R.IMXPLATFORM_MODULE_BASE_ENTITY_CONFIG,useValue:Ml,multi:!0},{provide:R.IMXPLATFORM_MODULE_BASE_ENTITY_CONFIG,useValue:rc,multi:!0},{provide:R.IMXPLATFORM_MODULE_BASE_ENTITY_CONFIG,useValue:Kr,multi:!0},{provide:R.IMXPLATFORM_MODULE_BASE_ENTITY_CONFIG,useValue:rl,multi:!0},{provide:R.EntityIconService,useClass:yr,multi:!1},{provide:R.IMXPLATFORM_CORE_DATA_OBJECT_AUTO_COMPLETE_SERVICE,useClass:Ce.s,multi:!0},{provide:R.IMXPLATFORM_CORE_DATA_OBJECT_AUTO_COMPLETE_SERVICE,useClass:tt,multi:!0},{provide:R.IMXPLATFORM_ENTITY_PERMISSION_SERVICE,useClass:Fn.B,multi:!0},{provide:R.IMXPLATFORM_ENTITY_PERMISSION_SERVICE,useClass:Bt.B,multi:!0},{provide:R.IMXPLATFORM_DISTANCE_SEARCH_SERVICES,useClass:mo,multi:!0},{provide:R.IMXPLATFORM_DISTANCE_SEARCH_SERVICES,useClass:aw,multi:!0},{provide:R.IMXPLATFORM_CONFIGURATION_DEFINITION_PART_CONFIG,useValue:RD,multi:!0},{provide:R.IMX_SLOT_PROVIDERS,useClass:JM.Am,multi:!0},{provide:JM.Pg,useValue:lt.V,multi:!1},{provide:JM.iz,useValue:R.EditTitlesComponent,multi:!1},{provide:JM.qd,useValue:FD,multi:!1},{provide:dt.C,useValue:xi,multi:!0},{provide:dt.C,useValue:Ra,multi:!0},{provide:dt.C,useValue:oi,multi:!0},{provide:ht,useClass:Qt}],imports:[R.SharedImxPlatformModule,e.ez,n._t,s.u5,i.Bb,t.ot,p.vV,c.p9,x.FA,u.Is,m.t,b.To,I.N6,H.Ps,O.c,P.ie,o.XK,o.Ng,G.TU,B.Cv,ae.Cq,J.Fk,o.si,q.LD,j.SJ,K.KP,Y.rP,ne.ZX,ee.JX,$.T5,ue.p0,ge.g0,Ke.AV,at.dp,s.UX,l.Bz,et.aw,me._8,Se._,We.U$,Ue.O,Et.N,UD.xT,Le.ki]})}return v})()},95435:(gt,X,a)=>{"use strict";a.d(X,{$:()=>c.$,vK:()=>o.v,dK:()=>m,CC:()=>u.CC,V8:()=>x.V});var e=a(68484),n=a(96814),s=a(17700),l=a(16007),i=a(34554),t=a(71365),p=a(19212),c=a(94622),o=a(38314),x=a(27711),u=a(65065);let m=(()=>{class b{static#e=this.\u0275fac=function(O){return new(O||b)};static#t=this.\u0275mod=p.oAB({type:b});static#n=this.\u0275inj=p.cJS({imports:[n.ez,s.Is,i.xT,t.aw,e.eL,l.Cv]})}return b})()},29774:(gt,X,a)=>{"use strict";a.d(X,{z:()=>b});var e=a(19212),n=a(96814),s=a(50308),l=a(71365);function i(I,H){1&I&&e.GkF(0)}function t(I,H){if(1&I){const O=e.EpF();e.TgZ(0,"a",3),e.NdJ("click",function(){e.CHM(O);const G=e.oxw();return e.KtG(G.iconClicked.emit())}),e.YNc(1,i,1,0,"ng-container",4),e.qZA()}if(2&I){e.oxw();const O=e.MAs(4);e.xp6(),e.Q6J("ngTemplateOutlet",O)}}function p(I,H){1&I&&e.GkF(0)}function c(I,H){if(1&I&&e.YNc(0,p,1,0,"ng-container",4),2&I){e.oxw();const O=e.MAs(4);e.Q6J("ngTemplateOutlet",O)}}const o=I=>({"mode-enabled":I}),x=(I,H)=>({"mode-enabled":I,disabled:H}),u=I=>({disabled:I});function m(I,H){if(1&I&&(e.TgZ(0,"div",5)(1,"div",6),e._UZ(2,"imx-icon",7),e.qZA(),e.TgZ(3,"span",8),e._uU(4),e.qZA()()),2&I){const O=e.oxw();e.xp6(),e.Q6J("ngClass",e.VKq(6,o,O.highlighted)),e.xp6(),e.s9C("icon",O.icon),e.Q6J("isClickable",!O.disabled)("ngClass",e.WLB(8,x,O.highlighted,O.disabled)),e.xp6(),e.Q6J("ngClass",e.VKq(11,u,O.disabled)),e.xp6(),e.Oqu(O.label)}}let b=(()=>{class I{constructor(){this.disabled=!1,this.iconClicked=new e.vpe}static#e=this.\u0275fac=function(P){return new(P||I)};static#t=this.\u0275cmp=e.Xpm({type:I,selectors:[["imx-editor-icon"]],inputs:{icon:"icon",label:"label",disabled:"disabled",highlighted:"highlighted"},outputs:{iconClicked:"iconClicked"},decls:5,vars:2,consts:[["target","_blank",3,"click",4,"ngIf","ngIfElse"],["readonly",""],["icontemplate",""],["target","_blank",3,"click"],[4,"ngTemplateOutlet"],[1,"editor-icon"],[1,"inner-icon",3,"ngClass"],["size","xlarge",1,"inner-icon",3,"icon","isClickable","ngClass"],["translate","",3,"ngClass"]],template:function(P,G){if(1&P&&e.YNc(0,t,2,1,"a",0)(1,c,1,1,"ng-template",null,1,e.W1O)(3,m,5,13,"ng-template",null,2,e.W1O),2&P){const B=e.MAs(2);e.Q6J("ngIf",!G.disabled)("ngIfElse",B)}},dependencies:[n.mk,n.O5,n.tP,s.o,l.Pi],styles:["[_nghost-%COMP%]{display:flex;justify-content:center}.editor-icon[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:column;width:50px;margin:0 7px}.editor-icon[_ngcontent-%COMP%]   .inner-icon[_ngcontent-%COMP%]{width:40px;height:40px;padding:4px 0 0 2px}.editor-icon[_ngcontent-%COMP%]   .inner-icon.mode-enabled[_ngcontent-%COMP%]{background-color:#0a2663;color:#fff}.editor-icon[_ngcontent-%COMP%]   .inner-icon[_ngcontent-%COMP%]   imx-icon.mode-enabled[_ngcontent-%COMP%]     span{color:#fff}.editor-icon[_ngcontent-%COMP%]   .inner-icon[_ngcontent-%COMP%]   imx-icon.disabled[_ngcontent-%COMP%]     span{color:#9da8c1}.editor-icon[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;font:400 14px/16px GT Walsheim,Arial,sans-serif;text-align:center;margin-top:2px;font-size:12px;line-height:14px}.editor-icon[_ngcontent-%COMP%]   span.disabled[_ngcontent-%COMP%]{color:#9da8c1}"]})}return I})()},23357:(gt,X,a)=>{"use strict";a.d(X,{q:()=>O});var e=a(19212),n=a(15624),l=a(49193),i=a(74815),t=a(66141),p=a(96124),c=a(48516),o=a(65065),x=a(38314),u=a(96814),m=a(56356),b=a(71365);function I(P,G){if(1&P){const B=e.EpF();e.ynx(0),e.TgZ(1,"div",2),e.NdJ("visible",function(){e.CHM(B);const J=e.oxw();return e.KtG(J.setVisible())}),e._UZ(2,"div",3),e.qZA(),e.BQk()}}function H(P,G){1&P&&(e.TgZ(0,"div",4)(1,"span",5),e._uU(2,"maptoolkit.components.mtk-map.loading"),e.qZA()())}let O=(()=>{class P{constructor(B,ae,J){this.zone=B,this.mapHelperService=ae,this.maptoolkitApiLoaderService=J,this.mapDisabled=!1,this.hideMainMarker=!1,this.positionChanged=new e.vpe,this.zoomChanged=new e.vpe,this.mtkMap=void 0,this.aroundMeMarker=[],this.mapReady=(0,l.of)(!1)}ngOnInit(){const B=(0,i.F)(1e3);let ae=!1;this.mapReady=B.pipe((0,t.o)(J=>!ae&&J<10),(0,p.U)(function(J){return void 0!==window.MTK&&(ae=!0,!0)}))}setVisible(){this.initMTKMap("map")}ngOnDestroy(){MTK&&(MTK.maps.map=void 0)}initMTKMap(B){MTK.init({apiKey:"infomax"}).createMap(B,{map:{mapType:o.aH,location:{center:[this.longitude,this.latitude],zoom:this.zoom?this.zoom:o.pY,maxZoom:o.rm,minZoom:o.yQ,cooperativeGestures:!0},controls:[[new n.NavigationControl({showCompass:!1}),"bottom-left"],[new MTK.Map3DControl,"bottom-left"],[new n.ScaleControl({}),"bottom-right"],[new MTK.StyleControl(this.mapHelperService.getMapStyleControlDef()),"bottom-right"]]}},ae=>{this.mtkMap=ae,this.hideMainMarker||this.createMainMarker(),this.drawGeoObject()})}createMainMarker(){!this.positioningMarker&&this.mtkMap&&(this.positioningMarker=(new MTK.Marker).setLngLat([this.longitude,this.latitude]).setDraggable(!this.mapDisabled).setImage(o.Rk).addTo(this.mtkMap),this.registerEventListenerOnMainMarker())}drawGeoObject(){if(this.mtkMap&&this.geoObject&&this.geoObject.coordinates)if(console.log("GeoObject - nr of waypoints: ",this.geoObject.coordinates.length),"MultiPolygon"===this.geoObject.type||"Polygon"===this.geoObject.type){const B=(new MTK.Polygon).setLngLats(this.geoObject.coordinates);B.addTo(this.mtkMap),B.lngLats&&B.lngLats.length>0&&this.mtkMap.gl.fitBounds(B.getBounds(),{padding:100}),B.multiLngLats&&B.multiLngLats.length>0&&this.mtkMap.gl.fitBounds(B.getBounds(),{padding:100}),this.geoObjectLayer=B}else if("LineString"===this.geoObject.type||"MultiLineString"===this.geoObject.type){const B=new MTK.Polyline({iconImage:"direction-arrow",iconSize:.7,iconSpacing:150,color:o.i3,width:6}).setLngLats(this.geoObject.coordinates);B.addTo(this.mtkMap),B.lngLats.length>0&&this.mtkMap.gl.fitBounds(B.getBounds(),{padding:100}),this.geoObjectLayer=B}else console.warn("GeoObject: unknown geo type "+this.geoObject.type)}ngOnChanges(B){B.longitude&&this.moveMarker(void 0,this.longitude),B.latitude&&this.moveMarker(this.latitude,void 0),B.zoom&&this.mtkMap&&this.zoom&&this.mtkMap.gl.zoomTo(this.mapZoom),B.mapDisabled&&this.positioningMarker&&this.positioningMarker.setDraggable(!this.mapDisabled),B.geoObject&&(this.geoObjectLayer&&this.geoObjectLayer.remove(),this.drawGeoObject()),B.aroundMeItems&&(this.aroundMeMarker.forEach(ae=>ae.remove()),this.aroundMeMarker=this.mapHelperService.mapItemsToMarkerClustered(this.mtkMap,this.aroundMeItems)),B.hideMainMarker&&(this.hideMainMarker?this.positioningMarker&&(this.positioningMarker.remove(),this.positioningMarker=void 0):this.createMainMarker())}get mapZoom(){return this.zoom&&Number.isInteger(this.zoom)?this.zoom:o.pY}set mapZoom(B){this.zoomChanged.emit(B)}registerEventListenerOnMainMarker(){this.positioningMarker.on("dragend",()=>{this.zone.run(()=>{const B=this.positioningMarker.lngLat;this.positionChanged.emit([B[1],B[0]])})})}moveMarker(B,ae){let J=B,q=ae;this.positioningMarker&&(void 0===B&&(J=this.positioningMarker.lngLat[1]),void 0===ae&&(q=this.positioningMarker.lngLat[0]),this.positioningMarker.setLngLat([q,J]),this.mtkMap.gl.jumpTo({center:[q,J]}))}static#e=this.\u0275fac=function(ae){return new(ae||P)(e.Y36(e.R0b),e.Y36(c.K),e.Y36(x.v))};static#t=this.\u0275cmp=e.Xpm({type:P,selectors:[["imx-mtk-map"]],inputs:{mapDisabled:"mapDisabled",longitude:"longitude",latitude:"latitude",geoObject:"geoObject",zoom:"zoom",aroundMeItems:"aroundMeItems",hideMainMarker:"hideMainMarker"},outputs:{positionChanged:"positionChanged",zoomChanged:"zoomChanged"},features:[e.TTD],decls:5,vars:6,consts:[[4,"ngIf","ngIfElse"],["nomap",""],["imx-observe-visibility","",3,"visible"],["id","map",1,"map"],[1,"nomap"],["translate",""]],template:function(ae,J){if(1&ae&&(e.YNc(0,I,3,0,"ng-container",0),e.ALo(1,"async"),e.ALo(2,"async"),e.YNc(3,H,3,0,"ng-template",null,1,e.W1O)),2&ae){const q=e.MAs(4);e.Q6J("ngIf",e.lcZ(1,2,e.lcZ(2,4,J.maptoolkitApiLoaderService.loadApi$)&&J.mapReady))("ngIfElse",q)}},dependencies:[u.O5,m.n,b.Pi,u.Ov],styles:['@import"https://static.maptoolkit.net/mtk/v10.1.4/mtk.css";@import"https://static.maptoolkit.net/api/v10.1.4/editor-gui.css";@import"https://static.maptoolkit.net/mtk/v10.1.4/elevationprofile.css";.map[_ngcontent-%COMP%]{height:450px;z-index:1}.map.editor[_ngcontent-%COMP%]{width:800px;height:600px}.nomap[_ngcontent-%COMP%]{height:80px}.nomap[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{margin-left:200px;margin-top:20px}  .maplibregl-map{overflow:visible}  .maplibregl-popup .maplibregl-popup-content{background-color:#0a2663cc;color:#fff}  .mtk-control-styles .mtk-control-styles-groups{width:200px}']})}return P})()},27711:(gt,X,a)=>{"use strict";a.d(X,{V:()=>ct,F:()=>yi});var e=a(15624),n=a(72079),s=a(19352);class l{}var i=a(48516),t=a(65065),p=a(19212),c=a(94622),o=a(45125);let u=(()=>{class ni{constructor(){this.historyChangeExecuted$=new o.X(!1),this.historyStack=[],this.currentIndex=0}clear(){this.historyStack=[],this.currentIndex=0}pushHistoryItem(bn){this.historyStack.splice(this.currentIndex+1),this.historyStack.push(bn),this.currentIndex=this.historyStack.length-1}undoAvailable(){return this.currentIndex>0}redoAvailable(){return this.currentIndex<this.historyStack.length-1}undo(){this.undoAvailable()&&this.executeUndo(this.currentIndex-1)}redo(){this.redoAvailable()&&this.executeRedo(this.currentIndex+1)}executeUndo(bn){const vt=this.historyStack[bn];this.historyChangeExecuted$.next(!0),vt.undoFn(vt.data),this.currentIndex=bn}executeRedo(bn){const vt=this.historyStack[bn];this.historyChangeExecuted$.next(!0),vt.redoFn(vt.data),this.currentIndex=bn}static#e=this.\u0275fac=function(vt){return new(vt||ni)};static#t=this.\u0275prov=p.Yz7({token:ni,factory:ni.\u0275fac,providedIn:"root"})}return ni})();var m=a(22939),b=a(71365),I=a(71088),H=a(96814),O=a(51793),P=a(16007);let G=(()=>{class ni{constructor(bn){this.mapObjectService=bn,this.elevationDivId="elevation-profile",this.showProfile=!1}ngOnChanges(bn){(bn.editor||bn.map)&&this.editor&&this.map&&(this.initProfile(),this.profile.addTo(this.elevationDivId).setMap(this.map),this.mapObjectService.routeUpdated$.subscribe(vt=>{vt&&vt.polyline&&(vt.polyline.lngLats.length>1?(this.showProfile=!0,this.profile.setPolyline(vt.polyline,(nn,rn)=>{nn?(console.log("xxx wrong polyline?",nn),this.mapObjectService.updateRouteMetaInfo(void 0,void 0)):rn?this.mapObjectService.updateRouteMetaInfo(rn.elevation[0],rn.geometry):console.warn("xxx still no data available?")})):(this.showProfile=!1,this.mapObjectService.updateRouteMetaInfo(void 0,void 0)))}))}ngOnInit(){this.initProfile()}initProfile(){this.profile||(this.profile=new MTK.ElevationProfile({unit:"km",distance_unit_compact:!1,controlWidth:400,surface:{labels:{asphalt:"Asphalt",paved:"Gepflastert",unpaved:"Schotterweg",natural:"Naturweg",alpine:"Alpin",other:"Sonstiges"}}}))}static#e=this.\u0275fac=function(vt){return new(vt||ni)(p.Y36(c.$))};static#t=this.\u0275cmp=p.Xpm({type:ni,selectors:[["imx-elevation-profile"]],inputs:{map:"map",editor:"editor"},features:[p.TTD],decls:1,vars:2,consts:[[3,"id","hidden"]],template:function(vt,nn){1&vt&&p._UZ(0,"div",0),2&vt&&(p.s9C("id",nn.elevationDivId),p.Q6J("hidden",!nn.showProfile))},styles:['@import"https://static.maptoolkit.net/mtk/v10.1.4/elevationprofile.css";']})}return ni})();var B=a(29774),ae=a(36681),J=a(68484);function q(ni,sn){}const j=ni=>({"editor-menu__overlay--hidden":ni});function Y(ni,sn){if(1&ni){const bn=p.EpF();p.TgZ(0,"div",5),p.NdJ("click",function(){p.CHM(bn);const nn=p.oxw();return p.KtG(nn.close())}),p.Hsn(1),p.qZA()}if(2&ni){const bn=p.oxw();p.Q6J("ngClass",p.VKq(1,j,!bn.showContentInOverlay))}}function K(ni,sn){1&ni&&(p.ynx(0),p.Hsn(1,1),p.BQk())}const ne=[[["","overlay",""]],[["","body",""]]],ee=ni=>({"editor-menu--hidden":ni}),$=["[overlay]","[body]"];let ue=(()=>{class ni extends ae.t{registerMutationObserver(){}getDefaultOffsetX(){return 0}getDefaultOffsetY(){return 0}getConnectedPosition(){return{originX:"end",originY:"top",overlayX:"start",overlayY:"top"}}static#e=this.\u0275fac=(()=>{let bn;return function(nn){return(bn||(bn=p.n5z(ni)))(nn||ni)}})();static#t=this.\u0275cmp=p.Xpm({type:ni,selectors:[["imx-editor-menu"]],contentQueries:function(vt,nn,rn){if(1&vt&&p.Suo(rn,O.F,7),2&vt){let ii;p.iGM(ii=p.CRH())&&(nn.triggerLabel=ii.first)}},inputs:{showContentInOverlay:"showContentInOverlay"},features:[p.qOj],ngContentSelectors:$,decls:5,vars:5,consts:[[1,"editor-menu",3,"ngClass","click"],["trigger",""],[3,"cdkPortalOutlet"],["cdk-portal",""],[4,"ngIf"],[1,"editor-menu__overlay",3,"ngClass","click"]],template:function(vt,nn){1&vt&&(p.F$t(ne),p.TgZ(0,"div",0,1),p.NdJ("click",function(ii){return nn.toggle(ii)}),p.YNc(2,q,0,0,"ng-template",2),p.qZA(),p.YNc(3,Y,2,3,"ng-template",3)(4,K,2,0,"ng-container",4)),2&vt&&(p.Q6J("ngClass",p.VKq(3,ee,!nn.showContentInOverlay)),p.xp6(2),p.Q6J("cdkPortalOutlet",nn.triggerLabel),p.xp6(2),p.Q6J("ngIf",!nn.showContentInOverlay))},dependencies:[H.mk,H.O5,J.Pl,J.bH],styles:["[_nghost-%COMP%]{display:flex;justify-content:center}.editor-menu[_ngcontent-%COMP%]{justify-content:center;width:100%}.editor-menu[_ngcontent-%COMP%]:not(.editor-menu--hidden){display:flex}.editor-menu.editor-menu--hidden[_ngcontent-%COMP%]{display:none}.editor-menu__overlay[_ngcontent-%COMP%]{background-color:#fff;display:flex;padding:15px;margin-top:-15px}.editor-menu__overlay.editor-menu__overlay--hidden[_ngcontent-%COMP%]{display:none}"]})}return ni})();const ge=ni=>({"routedata--row":ni});let Ke=(()=>{class ni{parseInt(bn){return parseInt(bn,10)}static#e=this.\u0275fac=function(vt){return new(vt||ni)};static#t=this.\u0275cmp=p.Xpm({type:ni,selectors:[["imx-editor-table"]],inputs:{isRow:"isRow",duration:"duration",distance:"distance",ascent:"ascent",descent:"descent"},decls:30,vars:11,consts:[[1,"routedata",3,"ngClass"],[1,"box"],[1,"value"],["translate","",1,"label"]],template:function(vt,nn){1&vt&&(p.TgZ(0,"div",0)(1,"div",1)(2,"div")(3,"span",2),p._uU(4),p.qZA()(),p.TgZ(5,"div")(6,"span",3),p._uU(7,"maptoolkit.components.route-editor.route-data.distance"),p.qZA()()(),p.TgZ(8,"div",1)(9,"div")(10,"span",2),p._uU(11),p.qZA()(),p.TgZ(12,"div")(13,"span",3),p._uU(14,"maptoolkit.components.route-editor.route-data.ascent"),p.qZA()()(),p.TgZ(15,"div",1)(16,"div")(17,"span",2),p._uU(18),p.qZA()(),p.TgZ(19,"div")(20,"span",3),p._uU(21,"maptoolkit.components.route-editor.route-data.descent"),p.qZA()()(),p.TgZ(22,"div",1)(23,"div")(24,"span",2),p._uU(25),p.ALo(26,"date"),p.qZA()(),p.TgZ(27,"div")(28,"span",3),p._uU(29,"maptoolkit.components.route-editor.route-data.duration"),p.qZA()()()()),2&vt&&(p.Q6J("ngClass",p.VKq(9,ge,nn.isRow)),p.xp6(4),p.Oqu(nn.distance),p.xp6(7),p.Oqu(nn.ascent),p.xp6(7),p.Oqu(nn.descent),p.xp6(7),p.Oqu(p.Dn7(26,5,1e3*nn.parseInt(nn.duration)*60,"HH:mm","UTC")+" h"))},dependencies:[H.mk,b.Pi,H.uU],styles:[".routedata[_ngcontent-%COMP%]{border:solid #ced4e0;margin-bottom:20px;-moz-column-gap:-1px;column-gap:-1px;row-gap:-1px}.routedata[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]{border:solid #ced4e0;padding:5px;text-align:center}.routedata[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{font-size:16px;line-height:22px;color:#0a2663}.routedata[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-size:14px;line-height:20px;color:#505c77}.routedata[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:first-of-type{margin-top:20px}.routedata[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:last-of-type{margin-top:10px}.routedata.routedata--row[_ngcontent-%COMP%]{border:solid #ced4e0;display:inline-flex;flex-direction:row;justify-content:flex-start;border-width:1px 0 0 1px}.routedata.routedata--row[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]{border-width:0 1px 1px 0;height:85px;width:85px}.routedata[_ngcontent-%COMP%]:not(.routedata--row){align-items:center;border-width:0 1px 1px 0;display:flex;flex-direction:column;justify-content:flex-start}.routedata[_ngcontent-%COMP%]:not(.routedata--row)   .box[_ngcontent-%COMP%]{border-width:1px 0 0 1px;width:100%}"]})}return ni})();function at(ni,sn){1&ni&&(p.TgZ(0,"h2",28),p._uU(1,"maptoolkit.components.route-editor.change-route-type"),p.qZA())}function Le(ni,sn){1&ni&&(p.TgZ(0,"div",5)(1,"picture",29),p._UZ(2,"img",30),p.qZA()())}function R(ni,sn){1&ni&&p.GkF(0)}function Te(ni,sn){1&ni&&p.GkF(0)}const me=()=>({$implicit:!0});function Se(ni,sn){if(1&ni&&p.YNc(0,R,1,0,"ng-container",31)(1,Te,1,0,"ng-container",13),2&ni){p.oxw();const bn=p.MAs(36),vt=p.MAs(38);p.Q6J("ngTemplateOutlet",bn)("ngTemplateOutletContext",p.DdM(3,me)),p.xp6(),p.Q6J("ngTemplateOutlet",vt)}}function Ue(ni,sn){1&ni&&p.GkF(0,12)}function We(ni,sn){1&ni&&p.GkF(0,14)}function et(ni,sn){1&ni&&(p.TgZ(0,"h2",28),p._uU(1,"maptoolkit.components.route-editor.toolbar-scnd"),p.qZA())}function Et(ni,sn){if(1&ni&&p._UZ(0,"imx-editor-icon",32),2&ni){const bn=p.oxw();p.Q6J("icon","more")("label","maptoolkit.components.route-editor.other-fns")("disabled",bn.rerouteActive||!bn.hasMoreThanOneWaypoint())}}function lt(ni,sn){1&ni&&p.GkF(0)}function Vt(ni,sn){1&ni&&p.GkF(0)}function r(ni,sn){1&ni&&p.GkF(0)}function Z(ni,sn){1&ni&&p.GkF(0)}function Pt(ni,sn){1&ni&&(p.ynx(0),p._UZ(1,"mat-progress-bar",33),p.BQk())}function Oe(ni,sn){if(1&ni){const bn=p.EpF();p.TgZ(0,"imx-editor-icon",34),p.NdJ("click",function(){p.CHM(bn);const nn=p.oxw();return p.KtG(nn.toggleMultiDeleteMode())}),p.qZA()}if(2&ni){const bn=p.oxw();p.Q6J("icon","additional")("label","maptoolkit.components.route-editor.remove-waypoints")("disabled",bn.rerouteActive||!bn.hasMoreThanOneWaypoint())("highlighted",bn.multiDeleteMode)}}function ye(ni,sn){1&ni&&(p.TgZ(0,"h2",28),p._uU(1,"maptoolkit.components.route-editor.route-data.header"),p.qZA())}function ve(ni,sn){if(1&ni){const bn=p.EpF();p.TgZ(0,"imx-editor-icon",6),p.NdJ("iconClicked",function(){p.CHM(bn);const nn=p.oxw(2);return p.KtG(nn.setRouteType(nn.routeTypeEnum.FOOT))}),p.qZA()}if(2&ni){const bn=p.oxw().$implicit,vt=p.oxw();p.Q6J("icon","map_walking")("label","maptoolkit.components.route-editor.type-foot")("highlighted",bn||vt.routeType===vt.routeTypeEnum.FOOT)("disabled",vt.rerouteActive)}}function ft(ni,sn){if(1&ni){const bn=p.EpF();p.TgZ(0,"imx-editor-icon",6),p.NdJ("iconClicked",function(){p.CHM(bn);const nn=p.oxw(2);return p.KtG(nn.setRouteType(nn.routeTypeEnum.BIKE))}),p.qZA()}if(2&ni){const bn=p.oxw().$implicit,vt=p.oxw();p.Q6J("icon","map_bicycle")("label","maptoolkit.components.route-editor.type-bike")("highlighted",bn||vt.routeType===vt.routeTypeEnum.BIKE)("disabled",vt.rerouteActive)}}function Dt(ni,sn){if(1&ni){const bn=p.EpF();p.TgZ(0,"imx-editor-icon",6),p.NdJ("iconClicked",function(){p.CHM(bn);const nn=p.oxw(2);return p.KtG(nn.setRouteType(nn.routeTypeEnum.CAR))}),p.qZA()}if(2&ni){const bn=p.oxw().$implicit,vt=p.oxw();p.Q6J("icon","map_car")("label","maptoolkit.components.route-editor.type-car")("highlighted",bn||vt.routeType===vt.routeTypeEnum.CAR)("disabled",vt.rerouteActive)}}function Rn(ni,sn){if(1&ni&&p.YNc(0,ve,1,4,"imx-editor-icon",35)(1,ft,1,4,"imx-editor-icon",35)(2,Dt,1,4,"imx-editor-icon",35),2&ni){const bn=sn.$implicit,vt=p.oxw();p.Q6J("ngIf",!bn||vt.routeType===vt.routeTypeEnum.FOOT),p.xp6(),p.Q6J("ngIf",!bn||vt.routeType===vt.routeTypeEnum.BIKE),p.xp6(),p.Q6J("ngIf",!bn||vt.routeType===vt.routeTypeEnum.CAR)}}function ti(ni,sn){if(1&ni&&p._UZ(0,"imx-editor-icon",37),2&ni){const bn=p.oxw(2);p.Q6J("icon","map_magnet")("label","maptoolkit.components.route-editor.along-ways")("highlighted",!1)("disabled",bn.rerouteActive)}}function Xt(ni,sn){if(1&ni&&p.YNc(0,ti,1,4,"imx-editor-icon",36),2&ni){const bn=p.oxw();p.Q6J("ngIf",bn.drawingMode===bn.drawingModeEnum.FREE)}}function Je(ni,sn){if(1&ni){const bn=p.EpF();p.TgZ(0,"imx-editor-icon",38),p.NdJ("iconClicked",function(){p.CHM(bn);const nn=p.oxw();return p.KtG(nn.undo())}),p.qZA(),p.TgZ(1,"imx-editor-icon",38),p.NdJ("iconClicked",function(){p.CHM(bn);const nn=p.oxw();return p.KtG(nn.redo())}),p.qZA(),p.TgZ(2,"imx-editor-icon",38),p.NdJ("iconClicked",function(){p.CHM(bn);const nn=p.oxw();return p.KtG(nn.reverseRoute())}),p.qZA(),p.TgZ(3,"imx-editor-icon",38),p.NdJ("iconClicked",function(){p.CHM(bn);const nn=p.oxw();return p.KtG(nn.removeRoute())}),p.qZA()}if(2&ni){const bn=p.oxw();p.Q6J("icon","undo")("label","maptoolkit.components.route-editor.undo-btn")("disabled",bn.rerouteActive||!bn.editorHistoryService.undoAvailable()),p.xp6(),p.Q6J("icon","map_redo")("label","maptoolkit.components.route-editor.redo-btn")("disabled",bn.rerouteActive||!bn.editorHistoryService.redoAvailable()),p.xp6(),p.Q6J("icon","map_invert")("label","maptoolkit.components.route-editor.reverse-route")("disabled",bn.rerouteActive||bn.isRouteEmpty()||!bn.reverseEnabled),p.xp6(),p.Q6J("icon","trash")("label","maptoolkit.components.route-editor.remove-route")("disabled",bn.rerouteActive||!bn.hasMoreThanOneWaypoint())}}const dt=ni=>({"sidebar--open":ni}),Ie=()=>({$implicit:!1}),ot=ni=>({"profile--hidden":ni});var ct=function(ni){return ni.FREE="free",ni.FOOT="foot",ni.BIKE="bike",ni.CAR="car",ni}(ct||{}),tn=function(ni){return ni.FREE="free",ni.MAGNET="magnet",ni}(tn||{});let yi=(()=>{class ni{constructor(bn,vt,nn,rn,ii,Oo){this.mapRouteService=bn,this.editorHistoryService=vt,this.mapHelperService=nn,this.matSnackBar=rn,this.translateService=ii,this.breakpointObserver=Oo,this.drawingModeEnum=tn,this.routeTypeEnum=ct,this.mapDisabled=!1,this.recalculateOnInit=!1,this.mtkMap=void 0,this.mtkEditor=void 0,this.multiDeleteMode=!1,this.reverseEnabled=!1,this.rerouteActive=!1,this.isSideBarOpen=!0,this.aroundMeMarker=[],this.waypointsChangedByHistoryCall=!1,this.destroy$=new n.xQ}ngOnInit(){if(this.editorHistoryService.clear(),this.editorHistoryService.historyChangeExecuted$.pipe((0,s.R)(this.destroy$)).subscribe(bn=>this.waypointsChangedByHistoryCall=bn),this.breakpointObserver.isMatched("(max-width: 900px)")&&this.toggleSideBar(),void 0!==this.existingRouteType)switch(this.existingRouteType){case"foot":this.routeType=ct.FOOT;break;case"bike":this.routeType=ct.BIKE;break;case"car":this.routeType=ct.CAR;break;default:this.routeType=ct.FREE}else this.routeType=ct.FREE;this.drawingMode=this.routeType===ct.FREE?tn.FREE:tn.MAGNET,this.mapRouteService.setRouteType(this.routeType)}ngAfterViewInit(){this.initMTKMap("editormap")}ngOnDestroy(){MTK.maps.editormap=void 0,this.destroy$.next(),this.destroy$.complete()}toggleSideBar(){this.isSideBarOpen=!this.isSideBarOpen,window.setTimeout(()=>window.dispatchEvent(new Event("resize")),0)}setDrawingMode(bn){this.drawingMode!==bn&&(this.drawingMode=bn,this.setRouteType(bn===tn.FREE?ct.FREE:ct.FOOT)),this.cancelMultiDeleteMode()}setRouteType(bn){this.routeType!==bn&&(this.routeType=bn,this.mtkEditor.routeType=bn===ct.FREE?"":bn,bn!==ct.FREE&&(this.drawingMode=tn.MAGNET),this.recalculateRoute(this.routeType),this.mapRouteService.setRouteType(this.routeType)),this.cancelMultiDeleteMode()}toggleMultiDeleteMode(){this.multiDeleteMode=!this.multiDeleteMode,this.multiDeleteMode?this.deleteSelection(()=>{this.cancelMultiDeleteMode()}):this.cancelMultiDeleteMode()}cancelMultiDeleteMode(){this.multiDeleteMode=!1,this.mtkMap.cancelSelectBox()}undo(){this.editorHistoryService.undo()}redo(){this.editorHistoryService.redo()}reverseRoute(){this.reverseEnabled=!1,this.mtkEditor.reverseWaypoints(()=>{this.reverseEnabled=!0})}removeRoute(){this.mtkEditor.removeRoute(void 0)}debugWayPoints(){console.log("xxxx waypoints",this.mtkEditor._waypoints)}isRouteEmpty(){return void 0===this.mapRouteService.getRoute().multiLineString}hasMoreThanOneWaypoint(){return!!this.mtkEditor&&this.mapRouteService.getRoute().nrOfWayPoints>0}getRouteDistance(){return MTK.Utils.formatDistance(this.mapRouteService.getRoute().distance)}getRouteAscent(){const bn=MTK.Utils.formatAscent(this.mapRouteService.getRoute().ascent);return bn.substring(0,bn.lastIndexOf(" "))}getRouteDuration(){return this.mapRouteService.getRoute().duration+" Min"}getRouteDescent(){const bn=MTK.Utils.formatDescent(this.mapRouteService.getRoute().descent);return bn.substring(0,bn.lastIndexOf(" "))}reroute(){this.recalculateRoute(this.routeType)}getEditedRouteResult(){const bn=new l;bn.resultGeoJson=this.mtkEditor.getPolyline().toGeoJSON();const vt=this.mapRouteService.getRoute().multiLineString;return vt&&vt.coordinates[0].length>0?(bn.routeType=this.routeType,bn.fullCoordinates=vt.coordinates[0],bn.distance=this.mapRouteService.getRoute().distance,bn.ascent=this.mapRouteService.getRoute().ascent,bn.descent=this.mapRouteService.getRoute().descent,bn.duration=this.mapRouteService.getRoute().duration,vt.coordinates[0][0].length>2?(bn.maxAltitude=Math.max(...vt.coordinates[0].map(nn=>nn[2])),bn.minAltitude=Math.min(...vt.coordinates[0].map(nn=>nn[2]))):(bn.maxAltitude=void 0,bn.minAltitude=void 0)):(bn.routeType=void 0,bn.fullCoordinates=[],bn.distance=void 0,bn.ascent=void 0,bn.descent=void 0,bn.maxAltitude=void 0,bn.minAltitude=void 0),bn}initMTKMap(bn){MTK.init({apiKey:"infomax"}).createMap(bn,{map:{mapType:t.aH,location:{center:[this.longitude,this.latitude],zoom:t.pY,maxZoom:t.rm,minZoom:t.yQ,cooperativeGestures:!0},controls:[[new MTK.StyleControl(this.mapHelperService.getMapStyleControlDef()),"top-right"],[new e.ScaleControl({}),"top-right"],[new e.NavigationControl({showCompass:!1}),"top-right"],[new MTK.Map3DControl,"top-right"]]}},vt=>{this.mtkMap=vt;const nn=new MTK.EditorInterface({editor:{routeType:this.routeType}});if(nn.addTo(vt),this.mtkEditor=nn.editor,this.mtkMap.gl.zoomTo(this.mapZoom),this.mapRouteService.setEditor(this.mtkEditor),this.geoObject&&("LineString"===this.geoObject.type||"MultiLineString"===this.geoObject.type)&&this.geoObject.coordinates&&this.geoObject.coordinates.length>0){const rn={type:"FeatureCollection",features:[{type:"Feature",geometry:{coordinates:this.geoObject.coordinates,type:this.geoObject.type},properties:void 0}]};this.mtkEditor.routeType=this.routeType===ct.FREE?"":this.routeType,this.mtkEditor.loadGeoJSON(rn,()=>{this.recalculateOnInit&&this.routeType!==ct.FREE&&this.recalculateRoute(this.routeType)})}else this.mtkMap.gl.zoomTo(14),this.updateHistory(),this.reverseEnabled=!1;MTK.event.addListener(this.mtkEditor,"update",rn=>{this.updateHistory()})})}ngOnChanges(bn){bn.mapDisabled&&this.positioningMarker&&this.positioningMarker.setDraggable(!this.mapDisabled),bn.aroundMeItems&&(this.aroundMeMarker.forEach(vt=>vt.remove()),this.aroundMeMarker=this.mapHelperService.mapItemsToMarkerClustered(this.mtkMap,this.aroundMeItems))}get mapZoom(){return void 0!==this.zoom?this.zoom:t.pY}deleteSelection(bn){this.mtkMap.waitForSelectBox(vt=>{const nn=this.mtkEditor.getWaypoints(),rn=nn.filter((ii,Oo)=>{const no=MTK.Utils.containsPoint(vt,ii.lngLat),Li=nn[Oo+1];return no&&Li&&!Li.upload&&delete Li.lngLats,!no});rn.length!==nn.length?rn.length?this.mtkEditor.setWaypoints(rn,bn):this.mtkEditor.removeRoute(bn):bn()})}recalculateRoute(bn){if(this.mtkEditor.getWaypoints().length>0){this.matSnackBar.open(this.translateService.instant("maptoolkit.components.route-editor.reroute-msg"),"",{duration:3e3,panelClass:"blue-snackbar",verticalPosition:"bottom"}),this.rerouteActive=!0;const vt=this.mtkEditor.getWaypoints().map(nn=>(nn.routeType=bn===ct.FREE?"":bn,nn._doReroute=!0,nn.time=0,nn));this.mtkEditor.setWaypoints(vt,()=>{this.rerouteActive=!1,this.reverseEnabled=!0,this.matSnackBar.open(this.translateService.instant("maptoolkit.components.route-editor.reroute-done"),"",{duration:2e3,panelClass:"blue-snackbar",verticalPosition:"bottom"})})}}updateHistory(){if(this.waypointsChangedByHistoryCall)this.waypointsChangedByHistoryCall=!1;else{const bn=[];for(const vt of this.mtkEditor.getWaypoints())bn.push({lngLat:vt.lngLat,lngLats:vt.lngLats,routeType:vt.routeType,time:vt.time});this.editorHistoryService.pushHistoryItem({actionName:"waypoints",undoFn:this.undoAndRedo.bind(this),redoFn:this.undoAndRedo.bind(this),data:{waypoints:bn,routeType:this.routeType,drawingMode:this.drawingMode}})}}undoAndRedo(bn){this.mtkEditor.setWaypoints(bn.waypoints),this.routeType=bn.routeType,this.drawingMode=bn.drawingMode}static#e=this.\u0275fac=function(vt){return new(vt||ni)(p.Y36(c.$),p.Y36(u),p.Y36(i.K),p.Y36(m.ux),p.Y36(b.sK),p.Y36(I.Yg))};static#t=this.\u0275cmp=p.Xpm({type:ni,selectors:[["imx-route-editor"]],inputs:{mapDisabled:"mapDisabled",longitude:"longitude",latitude:"latitude",geoObject:"geoObject",existingRouteType:"existingRouteType",recalculateOnInit:"recalculateOnInit",zoom:"zoom",aroundMeItems:"aroundMeItems"},features:[p.TTD],decls:41,vars:34,consts:[[1,"wrapper"],[1,"sidebar",3,"ngClass"],[1,"toolbar"],["class","route-editor__header txt-default","translate","",4,"ngIf"],["class","toolbar-row",4,"ngIf"],[1,"toolbar-row"],[3,"icon","label","highlighted","disabled","iconClicked"],[1,"spacer"],[3,"showContentInOverlay"],["imx-dropup-trigger",""],["overlay","",4,"ngTemplateOutlet","ngTemplateOutletContext"],["body","",4,"ngTemplateOutlet","ngTemplateOutletContext"],["overlay",""],[4,"ngTemplateOutlet"],["body",""],[4,"ngIf"],["removePoints",""],[1,"footer"],[3,"isRow","duration","distance","ascent","descent"],[1,"profile",3,"ngClass"],["id","imx-elevation-profile",3,"map","editor"],[1,"sidebar__opener",3,"click"],[1,"sidebar__opener__icon","icon-chevron-leftBold"],[1,"editor-wrapper"],["id","editormap",1,"editor"],["motionIcons",""],["magnetIcon",""],["additionalIcons",""],["translate","",1,"route-editor__header","txt-default"],[1,"toolbar__icon"],["alt","","src","assets/infomax.svg"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"icon","label","disabled"],["mode","indeterminate",1,"actions-running"],[3,"icon","label","disabled","highlighted","click"],[3,"icon","label","highlighted","disabled","iconClicked",4,"ngIf"],[3,"icon","label","highlighted","disabled",4,"ngIf"],[3,"icon","label","highlighted","disabled"],[3,"icon","label","disabled","iconClicked"]],template:function(vt,nn){if(1&vt&&(p.TgZ(0,"div",0)(1,"div",1)(2,"div",2),p.YNc(3,at,2,0,"h2",3)(4,Le,3,0,"div",4),p.TgZ(5,"div",5)(6,"imx-editor-icon",6),p.NdJ("iconClicked",function(){return nn.setDrawingMode(nn.drawingModeEnum.FREE)}),p.qZA(),p._UZ(7,"div",7),p.TgZ(8,"imx-editor-menu",8),p.YNc(9,Se,2,4,"ng-template",9)(10,Ue,1,0,"ng-container",10)(11,We,1,0,"ng-container",11),p.qZA()(),p.YNc(12,et,2,0,"h2",3),p.TgZ(13,"div",5)(14,"imx-editor-menu",8),p.YNc(15,Et,1,3,"ng-template",9),p.ynx(16,12),p.YNc(17,lt,1,0,"ng-container",13)(18,Vt,1,0,"ng-container",13),p.BQk(),p.ynx(19,14),p.YNc(20,r,1,0,"ng-container",13)(21,Z,1,0,"ng-container",13),p.BQk(),p.qZA()(),p._UZ(22,"div",5),p.YNc(23,Pt,2,0,"ng-container",15)(24,Oe,1,4,"ng-template",null,16,p.W1O),p.qZA(),p.TgZ(26,"div",17),p.YNc(27,ye,2,0,"h2",3),p._UZ(28,"imx-editor-table",18),p.TgZ(29,"div",19),p._UZ(30,"imx-elevation-profile",20),p.qZA()(),p.TgZ(31,"div",21),p.NdJ("click",function(){return nn.toggleSideBar()}),p._UZ(32,"span",22),p.qZA()(),p.TgZ(33,"div",23),p._UZ(34,"div",24),p.qZA()(),p.YNc(35,Rn,3,3,"ng-template",null,25,p.W1O)(37,Xt,1,1,"ng-template",null,26,p.W1O)(39,Je,4,12,"ng-template",null,27,p.W1O)),2&vt){const rn=p.MAs(25),ii=p.MAs(36),Oo=p.MAs(40);p.xp6(),p.Q6J("ngClass",p.VKq(28,dt,nn.isSideBarOpen)),p.xp6(2),p.Q6J("ngIf",nn.isSideBarOpen),p.xp6(),p.Q6J("ngIf",!nn.isSideBarOpen),p.xp6(2),p.Q6J("icon","map_pen")("label","maptoolkit.components.route-editor.type-free")("highlighted",nn.drawingMode===nn.drawingModeEnum.FREE)("disabled",nn.rerouteActive),p.xp6(2),p.Q6J("showContentInOverlay",!nn.isSideBarOpen),p.xp6(2),p.Q6J("ngTemplateOutlet",ii)("ngTemplateOutletContext",p.DdM(30,Ie)),p.xp6(),p.Q6J("ngTemplateOutlet",ii)("ngTemplateOutletContext",p.DdM(31,Ie)),p.xp6(),p.Q6J("ngIf",nn.isSideBarOpen),p.xp6(2),p.Q6J("showContentInOverlay",!nn.isSideBarOpen),p.xp6(3),p.Q6J("ngTemplateOutlet",rn),p.xp6(),p.Q6J("ngTemplateOutlet",Oo),p.xp6(2),p.Q6J("ngTemplateOutlet",rn),p.xp6(),p.Q6J("ngTemplateOutlet",Oo),p.xp6(2),p.Q6J("ngIf",nn.waypointsChangedByHistoryCall||nn.rerouteActive),p.xp6(4),p.Q6J("ngIf",nn.isSideBarOpen),p.xp6(),p.Q6J("isRow",nn.isSideBarOpen)("duration",nn.getRouteDuration())("distance",nn.getRouteDistance())("ascent",nn.getRouteAscent())("descent",nn.getRouteDescent()),p.xp6(),p.Q6J("ngClass",p.VKq(32,ot,!nn.isSideBarOpen)),p.xp6(),p.Q6J("map",nn.mtkMap)("editor",nn.mtkEditor)}},dependencies:[H.mk,H.O5,H.tP,O.F,b.Pi,P.pW,G,B.z,ue,Ke],styles:['@import"https://static.maptoolkit.net/mtk/v10.1.4/mtk.css";@import"https://static.maptoolkit.net/api/v10.1.4/editor-gui.css";@import"https://static.maptoolkit.net/mtk/v10.1.4/elevationprofile.css";.wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;height:100vh;overflow:hidden}.wrapper[_ngcontent-%COMP%]   .sidebar[_ngcontent-%COMP%]{width:445px;display:flex;flex-direction:column;justify-content:space-between;position:relative}.wrapper[_ngcontent-%COMP%]   .sidebar[_ngcontent-%COMP%]   .toolbar[_ngcontent-%COMP%]{background-color:#eefafa;padding-top:40px}.wrapper[_ngcontent-%COMP%]   .sidebar[_ngcontent-%COMP%]   .toolbar[_ngcontent-%COMP%]   .toolbar-row[_ngcontent-%COMP%]{margin-bottom:35px;display:flex;justify-content:flex-start}.wrapper[_ngcontent-%COMP%]   .sidebar[_ngcontent-%COMP%]   .toolbar[_ngcontent-%COMP%]   .toolbar-row[_ngcontent-%COMP%]   .spacer[_ngcontent-%COMP%]{width:40px}.wrapper[_ngcontent-%COMP%]   .sidebar.sidebar--open[_ngcontent-%COMP%]{width:445px}.wrapper[_ngcontent-%COMP%]   .sidebar[_ngcontent-%COMP%]:not(.sidebar--open){width:125px}.wrapper[_ngcontent-%COMP%]   .editor-wrapper[_ngcontent-%COMP%]{flex-grow:1;min-height:100vh}.wrapper[_ngcontent-%COMP%]   .editor-wrapper[_ngcontent-%COMP%]   .editor[_ngcontent-%COMP%]{min-height:100vh}.toolbar[_ngcontent-%COMP%]{transition:padding-left .5s ease,padding-right .5s ease}.sidebar[_ngcontent-%COMP%]:not(.sidebar--open)   .toolbar[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.sidebar.sidebar--open[_ngcontent-%COMP%]   .toolbar[_ngcontent-%COMP%]{padding-left:30px;padding-right:30px;padding-bottom:0}.route-editor__header[_ngcontent-%COMP%]{margin:0 0 15px}.toolbar__icon[_ngcontent-%COMP%]{aspect-ratio:34/31;margin:0 auto;width:31px}.sidebar[_ngcontent-%COMP%]:not(.sidebar--open)   .toolbar-row[_ngcontent-%COMP%]{flex-direction:column;row-gap:35px}.sidebar[_ngcontent-%COMP%]:not(.sidebar--open)   .toolbar-row[_ngcontent-%COMP%]   .spacer[_ngcontent-%COMP%]{display:none}.sidebar.sidebar--open[_ngcontent-%COMP%]   .toolbar-row[_ngcontent-%COMP%]{flex-direction:row;margin-bottom:40px}.sidebar__opener[_ngcontent-%COMP%]{background-color:#fff;border-bottom-right-radius:10px;border-top-right-radius:10px;box-shadow:4px 4px 4px #00000040;cursor:pointer;padding:20px 5px 20px 2px;position:absolute;right:0;top:50%;transform:translate(100%) translateY(-50%);z-index:1}.sidebar__opener[_ngcontent-%COMP%]   .sidebar__opener__icon[_ngcontent-%COMP%]{color:#0a2663;font-size:20px}.sidebar[_ngcontent-%COMP%]:not(.sidebar--open)   .sidebar__opener[_ngcontent-%COMP%]   .sidebar__opener__icon[_ngcontent-%COMP%]{display:inline-block;transform:rotate(180deg)}.sidebar[_ngcontent-%COMP%]:not(.sidebar--open)   .footer[_ngcontent-%COMP%]{padding:0 20px}.sidebar.sidebar--open[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]{padding:0 30px}.footer[_ngcontent-%COMP%]   .profile[_ngcontent-%COMP%]{height:150px;margin-bottom:20px}.footer[_ngcontent-%COMP%]   .profile.profile--hidden[_ngcontent-%COMP%]{opacity:0;overflow:hidden;width:70px}.footer[_ngcontent-%COMP%]   .profile[_ngcontent-%COMP%]   imx-elevation-profile[_ngcontent-%COMP%]{display:block;margin-right:-5.1948051948%;width:104.1948051948%}.actions-running[_ngcontent-%COMP%]{margin-left:-30px;margin-right:-30px;width:calc(100% + 60px)}  .maplibregl-map{overflow:visible}  .maplibregl-popup .maplibregl-popup-content{background-color:#0a2663cc;color:#fff}  .mtk-control-styles .mtk-control-styles-groups{width:200px}[_nghost-%COMP%]     .maplibregl-ctrl-top-left{display:none}']})}return ni})()},48516:(gt,X,a)=>{"use strict";a.d(X,{K:()=>l});var e=a(21473),n=a(65065),s=a(19212);let l=(()=>{class i{constructor(p){this.configurationProvider=p}getMapStyleControlDef(){const p=this.configurationProvider.getBooleanFromSnapshot(e.x3.IMXPLATFORM_MTK_MAP_SHOW_SATELLITE_MAP,!1),c=n.JH;return p&&c.maptypes.push(n.y4),c}mapItemsToMarkerClustered(p,c){const o=[];if(c.length>0){const x=new MTK.CollectionLayer(MTK.Marker,{cluster:!0,spiderfy:!0,zOrder:"source",clusterCircleLayer:{paint:{"circle-color":n.i3}},clusterTextLayer:{paint:{"text-color":"#ffffff"}}});x.addTo(p),c.forEach(u=>{if(void 0!==u.latitude&&void 0!==u.longitude){const m=u.latitude,b=u.longitude,I=(new MTK.Marker).setLngLat([b,m]).setDraggable(!1).setImage(n.xN).on("click",()=>{p.openPopup({anchor:"top-left",offset:[0,-15],lngLat:[b,m],html:u.popupHtml})}).addTo(x);o.push(I)}})}return o}mapItemsToMarker(p,c){const o=[];return c.forEach(x=>{if(void 0!==x.latitude&&void 0!==x.longitude){const u=x.latitude,m=x.longitude,b=(new MTK.Marker).setLngLat([m,u]).setDraggable(!1).setImage(n.xN).on("click",()=>{p.openPopup({anchor:"top-left",offset:[0,-15],lngLat:[m,u],html:x.popupHtml})}).addTo(p);o.push(b)}}),o}static#e=this.\u0275fac=function(c){return new(c||i)(s.LFG(e.Pc))};static#t=this.\u0275prov=s.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})()},94622:(gt,X,a)=>{"use strict";a.d(X,{$:()=>s});var e=a(45125),n=a(19212);let s=(()=>{class i{constructor(){this.routeUpdated$=new e.X(void 0),this.route=new l}setEditor(p){this.editor=p,MTK.event.addListener(this.editor,"update",()=>{this.updateMtkRoute()})}getRoute(){return this.route}resetRoute(){this.route=new l,this.routeUpdated$.next(this.route)}updateMtkRoute(){this.route.polyline=this.editor.getPolyline(),this.route.nrOfWayPoints=this.editor.getWaypoints().length,this.routeUpdated$.next(this.route)}updateRouteMetaInfo(p,c){this.route.initialized=!0,p?(this.route.distance=p.distance,this.route.ascent=p.ascent,this.route.descent=p.descent,this.route.multiLineString=c,this.calculateDuration()):(this.route.distance=0,this.route.ascent=0,this.route.descent=0,this.route.multiLineString=void 0,this.calculateDuration())}setRouteType(p){this.route.routeType=p}calculateDuration(){const p=this.editor.getWaypoints().map(c=>c.time).reduce((c,o)=>(c||0)+(o||0),0);this.route.duration=Math.round(p/1e3/60)}static#e=this.\u0275fac=function(c){return new(c||i)};static#t=this.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();class l{constructor(){this.initialized=!1,this.ascent=0,this.descent=0,this.distance=0,this.duration=0}}},38314:(gt,X,a)=>{"use strict";a.d(X,{v:()=>c});var e=a(54699),n=a(96776),s=a(96124),l=a(19212);let c=(()=>{class o{constructor(){this.apiLoadad=!1,this.editorApiLoaded=!1,this.loadApi$=new e.y(u=>{this.apiLoadad||(this.loadScript("https://static.maptoolkit.net/mtk/v10.1.8/mtk.js"),this.apiLoadad=!0),u.next(!0)}),this.loadEditorApi$=new e.y(u=>{this.editorApiLoaded||(this.loadScript("https://static.maptoolkit.net/api/v10.1.4/editor-gui.js"),this.loadScript("https://static.maptoolkit.net/mtk/v10.1.4/elevationprofile.js"),this.editorApiLoaded=!0),u.next(!0)}).pipe((0,n.b)(1e3),(0,s.U)(u=>!0))}loadScript(u){const m=document.createElement("script");m.src=u,m.type="text/javascript",m.async=!0,document.getElementsByTagName("head")[0].appendChild(m)}static#e=this.\u0275fac=function(m){return new(m||o)};static#t=this.\u0275prov=l.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})()},65065:(gt,X,a)=>{"use strict";a.d(X,{CC:()=>e,JH:()=>o,Rk:()=>s,aH:()=>i,i3:()=>n,pY:()=>c,rm:()=>p,xN:()=>l,y4:()=>x,yQ:()=>t});const e="https://www.printmaps.net/de#content=",n="#0a2663",s={id:"mapmarker_imxdeepBlue",anchor:"bottom",size:.8},l={id:"mapmarker_grey",anchor:"bottom",size:.6},i="toursprung-terrain",t=2,p=18,c=12,o={maptypes:[{id:"terrain",image:"https://static.maptoolkit.net/images/styles/toursprung-terrain.png",value:"toursprung-terrain"},{id:"winter",image:"https://static.maptoolkit.net/images/styles/toursprung-terrainwinter.png",value:"toursprung-terrainwinter"}],layers:[]},x={id:"satellite",image:"https://static.maptoolkit.net/images/styles/toursprung-orthophoto.png",value:"toursprung-orthophoto"}},63989:(gt,X,a)=>{"use strict";a.d(X,{U:()=>c});var e=a(19212),n=a(96814),s=a(3305),l=a(71365);function i(o,x){if(1&o&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&o){const u=e.oxw();e.xp6(),e.Oqu(u.titleDescription)}}function t(o,x){if(1&o&&e._UZ(0,"span"),2&o){const u=e.oxw();e.Gre("",u.icon," marker")}}const p=["*"];let c=(()=>{class o{constructor(){this.expanded=!1,this.opened=new e.vpe,this.panelOpenState=!1}static#e=this.\u0275fac=function(m){return new(m||o)};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["imx-accordion-panel"]],inputs:{title:"title",titleDescription:"titleDescription",icon:"icon",expanded:"expanded"},outputs:{opened:"opened"},ngContentSelectors:p,decls:13,vars:9,consts:[["hideToggle","true",3,"title","expanded","opened","closed"],[1,"open-close"],[1,"icon-plus",3,"hidden"],[1,"icon-minus",3,"hidden"],[1,"title"],["translate",""],[1,"description","txt-ellipsis"],[4,"ngIf"],[3,"class",4,"ngIf"]],template:function(m,b){1&m&&(e.F$t(),e.TgZ(0,"mat-expansion-panel",0),e.NdJ("opened",function(){return b.panelOpenState=!0,b.opened.emit(!0)})("closed",function(){return b.panelOpenState=!1}),e.ALo(1,"translate"),e.TgZ(2,"mat-expansion-panel-header")(3,"div",1),e._UZ(4,"span",2)(5,"span",3),e.qZA(),e.TgZ(6,"div",4)(7,"h3",5),e._uU(8),e.qZA()(),e.TgZ(9,"div",6),e.YNc(10,i,2,1,"span",7)(11,t,1,3,"span",8),e.qZA()(),e.Hsn(12),e.qZA()),2&m&&(e.Q6J("title",e.lcZ(1,7,b.title))("expanded",b.expanded),e.xp6(4),e.Q6J("hidden",b.panelOpenState),e.xp6(),e.Q6J("hidden",!b.panelOpenState),e.xp6(3),e.Oqu(b.title),e.xp6(2),e.Q6J("ngIf",b.titleDescription),e.xp6(),e.Q6J("ngIf",b.icon))},dependencies:[n.O5,s.ib,s.yz,l.Pi,l.X$],styles:[".mat-expansion-panel[_ngcontent-%COMP%]{background-color:#eefafa;border-bottom:1px solid #e6e9ef;border-radius:0!important}.mat-expansion-panel[_ngcontent-%COMP%]:not([class*=mat-elevation-z]){box-shadow:none}.mat-expansion-panel[_ngcontent-%COMP%]:not(.mat-expanded){overflow:visible}  .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-content{overflow:hidden}.mat-expansion-panel[_ngcontent-%COMP%]     .mat-expansion-panel-header.mat-expanded{border-bottom:1px solid #ced4e0;box-shadow:none;margin-bottom:10px}.mat-expansion-panel[_ngcontent-%COMP%]     .mat-expansion-panel-header{background-color:#eefafa;display:flex;height:48px!important;padding:8px 16px 0}.mat-expansion-panel[_ngcontent-%COMP%]     .mat-expansion-panel-header:hover{background-color:#e6e9ef}.mat-expansion-panel[_ngcontent-%COMP%]     .mat-expansion-panel-header .open-close{width:30px;font-size:18px}.mat-expansion-panel[_ngcontent-%COMP%]     .mat-expansion-panel-header .title{max-width:70%;min-width:33%}.mat-expansion-panel[_ngcontent-%COMP%]     .mat-expansion-panel-header .description{color:#898989a6;font-size:14px;flex:1 1 auto;width:0}.mat-expansion-panel[_ngcontent-%COMP%]     .mat-expansion-panel-header .marker{margin-left:10px}"]})}return o})()},25913:(gt,X,a)=>{"use strict";a.d(X,{Z:()=>l});var e=a(19212),n=a(3305);const s=["*"];let l=(()=>{class i{static#e=this.\u0275fac=function(c){return new(c||i)};static#t=this.\u0275cmp=e.Xpm({type:i,selectors:[["imx-accordion"]],ngContentSelectors:s,decls:2,vars:0,template:function(c,o){1&c&&(e.F$t(),e.TgZ(0,"mat-accordion"),e.Hsn(1),e.qZA())},dependencies:[n.pp],encapsulation:2})}return i})()},6128:(gt,X,a)=>{"use strict";a.d(X,{z:()=>l});var e=a(19212),n=a(71365);const s=["*"];let l=(()=>{class i{constructor(){this.styleClass="imx-action-menu-item",this.actionClicked=new e.vpe}ngOnInit(){this.additionalStyle&&(this.styleClass=this.styleClass+" "+this.additionalStyle)}itemClicked(){this.actionClicked.emit()}static#e=this.\u0275fac=function(c){return new(c||i)};static#t=this.\u0275cmp=e.Xpm({type:i,selectors:[["imx-action-menu-item"]],hostVars:2,hostBindings:function(c,o){2&c&&e.Tol(o.styleClass)},inputs:{icon:"icon",additionalStyle:"additionalStyle"},outputs:{actionClicked:"actionClicked"},ngContentSelectors:s,decls:5,vars:3,consts:[[1,"menu-action-item",3,"click"],[1,"wrapper"],["translate","",1,"label"]],template:function(c,o){1&c&&(e.F$t(),e.TgZ(0,"div",0),e.NdJ("click",function(){return o.itemClicked()}),e.TgZ(1,"span",1),e._UZ(2,"span"),e.qZA(),e.TgZ(3,"span",2),e.Hsn(4),e.qZA()()),2&c&&(e.xp6(2),e.Gre("",o.icon," icon"))},dependencies:[n.Pi],styles:[".imx-action-menu-item.delete[_nghost-%COMP%]   .menu-action-item[_ngcontent-%COMP%]{color:#96172e}.imx-action-menu-item[_nghost-%COMP%]   .menu-action-item[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:20px;cursor:pointer}.imx-action-menu-item[_nghost-%COMP%]   .menu-action-item[_ngcontent-%COMP%]:hover{color:#0a2663}.imx-action-menu-item[_nghost-%COMP%]   .menu-action-item[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{padding:0 5px 0 20px;font-size:14px;line-height:18px;text-align:left;min-width:100px;white-space:nowrap}.imx-action-menu-item[_nghost-%COMP%]   .menu-action-item[_ngcontent-%COMP%]   .wrapper[_ngcontent-%COMP%]{background-color:#eefafa;text-align:center;vertical-align:middle;min-width:60px;line-height:40px}.imx-action-menu-item[_nghost-%COMP%]   .menu-action-item[_ngcontent-%COMP%]   .wrapper[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:18px}"],changeDetection:0})}return i})()},74961:(gt,X,a)=>{"use strict";a.d(X,{p:()=>H});var e=a(19212),n=a(72079),s=a(19352),l=a(6128),i=a(36681),t=a(96814),p=a(67338);const c=["scrollPanelWrapper"];function o(O,P){1&O&&e._UZ(0,"div",6)}function x(O,P){1&O&&e._UZ(0,"div",7)}function u(O,P){1&O&&e._UZ(0,"div",8)}function m(O,P){1&O&&e._UZ(0,"div",9)}const b=()=>({width:"100%",background:"white"}),I=["*"];let H=(()=>{class O{constructor(G){this.parentDropupButton=G,this.maxHeight=void 0,this.itemClicked=new e.vpe,this.destroy$=new n.xQ,this.destroyMenuItemListeners$=new n.xQ}ngAfterViewInit(){this.registerClickListeners(),this.menuItems.changes.pipe((0,s.R)(this.destroy$)).subscribe(this.registerClickListeners.bind(this)),this.calcScrollBarHeight()}calcScrollBarHeight(){this.scrollPanelWrapper&&this.maxHeight&&(this.scrollPanelWrapper.nativeElement.style.maxHeight=this.maxHeight+"px",this.scrollPanelWrapper.nativeElement.style.display="flex")}ngOnDestroy(){this.destroyMenuItemListeners$.next(),this.destroyMenuItemListeners$.complete(),this.destroy$.next(),this.destroy$.complete()}get position(){return this._position?this._position:this.parentDropupButton?this.parentDropupButton.position:"left"}set position(G){this._position=G}registerClickListeners(){this.destroyMenuItemListeners$.next(),this.menuItems.forEach(G=>{G.actionClicked.pipe((0,s.R)(this.destroyMenuItemListeners$)).subscribe(()=>{this.itemClicked.next(),this.parentDropupButton&&this.parentDropupButton.close()})})}static#e=this.\u0275fac=function(B){return new(B||O)(e.Y36(i.t,9))};static#t=this.\u0275cmp=e.Xpm({type:O,selectors:[["imx-action-menu"]],contentQueries:function(B,ae,J){if(1&B&&e.Suo(J,l.z,4),2&B){let q;e.iGM(q=e.CRH())&&(ae.menuItems=q)}},viewQuery:function(B,ae){if(1&B&&e.Gf(c,7,e.SBq),2&B){let J;e.iGM(J=e.CRH())&&(ae.scrollPanelWrapper=J.first)}},inputs:{_position:"_position",maxHeight:"maxHeight"},outputs:{itemClicked:"itemClicked"},ngContentSelectors:I,decls:8,vars:7,consts:[[1,"action-menu"],["scrollPanelWrapper",""],["class","triangle-right",4,"ngIf"],["class","triangle-left",4,"ngIf"],["class","triangle-up",4,"ngIf"],["class","triangle-down",4,"ngIf"],[1,"triangle-right"],[1,"triangle-left"],[1,"triangle-up"],[1,"triangle-down"]],template:function(B,ae){1&B&&(e.F$t(),e.TgZ(0,"div",0)(1,"p-scrollPanel",null,1),e.Hsn(3),e.qZA(),e.YNc(4,o,1,0,"div",2)(5,x,1,0,"div",3)(6,u,1,0,"div",4)(7,m,1,0,"div",5),e.qZA()),2&B&&(e.xp6(),e.Akn(e.DdM(6,b)),e.xp6(3),e.Q6J("ngIf","left"===ae.position),e.xp6(),e.Q6J("ngIf","right"===ae.position),e.xp6(),e.Q6J("ngIf","below"===ae.position),e.xp6(),e.Q6J("ngIf","above"===ae.position))},dependencies:[t.O5,p.P],styles:[".action-menu[_ngcontent-%COMP%]{background:#fff;box-shadow:0 0 5px #0003;display:flex;flex-direction:column;position:relative}.action-menu[_ngcontent-%COMP%]   .triangle-left[_ngcontent-%COMP%], .action-menu[_ngcontent-%COMP%]   .triangle-right[_ngcontent-%COMP%], .action-menu[_ngcontent-%COMP%]   .triangle-up[_ngcontent-%COMP%], .action-menu[_ngcontent-%COMP%]   .triangle-down[_ngcontent-%COMP%]{position:absolute}.action-menu[_ngcontent-%COMP%]   .triangle-left[_ngcontent-%COMP%]{left:-12px;top:0}.action-menu[_ngcontent-%COMP%]   .triangle-right[_ngcontent-%COMP%]{right:-12px;top:0;border-left-color:#fff}.action-menu[_ngcontent-%COMP%]   .triangle-up[_ngcontent-%COMP%]{left:20px;top:-12px}.action-menu[_ngcontent-%COMP%]   .triangle-down[_ngcontent-%COMP%]{left:20px;bottom:-12px}[_nghost-%COMP%]     .p-scrollpanel .p-scrollpanel-content{height:100%;padding-bottom:0}"],changeDetection:0})}return O})()},36681:(gt,X,a)=>{"use strict";a.d(X,{t:()=>I});var e=a(69594),n=a(68484),s=a(51793),l=a(19212),i=a(96814);const t=["trigger"];function p(H,O){}function c(H,O){if(1&H&&l.YNc(0,p,0,0,"ng-template",5),2&H){const P=l.oxw();l.Q6J("cdkPortalOutlet",P.triggerLabel)}}const o=H=>({disabled:H});function x(H,O){if(1&H&&(l.TgZ(0,"span",6),l._UZ(1,"i",7),l.qZA()),2&H){const P=l.oxw();l.Q6J("ngClass",l.VKq(1,o,P.disabled))}}function u(H,O){1&H&&l.Hsn(0)}const m=["*"];let I=(()=>{class H{constructor(P){this.overlay=P,this.position="left",this.halign="center",this.overlayRef=null,this.shifted=!1}toggle(P){if(this.overlayRef)this.close();else{const G=new e.X_;G.positionStrategy=this.overlay.position().flexibleConnectedTo(this.buttonRef).withPositions([this.getConnectedPosition()]).withDefaultOffsetX(this.offsetX||this.getDefaultOffsetX()).withDefaultOffsetY(this.offsetY||this.getDefaultOffsetY()),G.hasBackdrop=!0,G.backdropClass="",G.scrollStrategy=this.overlay.scrollStrategies.close({threshold:20}),this.overlayRef=this.overlay.create(G),this.registerMutationObserver(this.overlayRef),this.overlayRef.attach(this.templatePortal),this.overlayRef.backdropClick().subscribe(()=>{this.overlayRef&&this.overlayRef.detach()}),this.overlayRef.detachments().subscribe(()=>{this.close()}),P.stopPropagation()}}registerMutationObserver(P){new MutationObserver(G=>{!1===this.shifted&&this.handleMutation(G)&&(this.shifted=!0)}).observe(this.overlayRef.hostElement,{attributes:!0,childList:!0,characterData:!0})}handleMutation(P){return P.forEach(G=>{if("0px"===G.target.style.top)return G.target.firstChild.style.top=window.innerHeight-G.target.firstChild.clientHeight+"px",!0}),!1}close(){this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}getConnectedPosition(){switch(this.position){case"right":return{originX:"end",originY:"center",overlayX:"start",overlayY:"top"};case"above":return{originX:this.halign,originY:"top",overlayX:this.halign,overlayY:"bottom"};case"below":return{originX:this.halign,originY:"bottom",overlayX:this.halign,overlayY:"top"};default:return{originX:"start",originY:"center",overlayX:"end",overlayY:"top"}}}getDefaultOffsetX(){switch(this.position){case"above":case"below":return 0;case"right":return 12;default:return-12}}getDefaultOffsetY(){switch(this.position){case"right":case"above":case"left":default:return-12;case"below":return 12}}static#e=this.\u0275fac=function(G){return new(G||H)(l.Y36(e.aV))};static#t=this.\u0275cmp=l.Xpm({type:H,selectors:[["imx-dropup-button"]],contentQueries:function(G,B,ae){if(1&G&&l.Suo(ae,s.F,7),2&G){let J;l.iGM(J=l.CRH())&&(B.triggerLabel=J.first)}},viewQuery:function(G,B){if(1&G&&(l.Gf(n.bH,7),l.Gf(t,7)),2&G){let ae;l.iGM(ae=l.CRH())&&(B.templatePortal=ae.first),l.iGM(ae=l.CRH())&&(B.buttonRef=ae.first)}},inputs:{offsetX:"offsetX",offsetY:"offsetY",position:"position",halign:"halign",disabled:"disabled"},ngContentSelectors:m,decls:6,vars:2,consts:[[1,"action-menu",3,"click"],["trigger",""],[4,"ngIf","ngIfElse"],["defaultTrigger",""],["cdk-portal",""],[3,"cdkPortalOutlet"],[1,"action-menu__button",3,"ngClass"],[1,"icon-more1","imx-icon-middle"]],template:function(G,B){if(1&G&&(l.F$t(),l.TgZ(0,"div",0,1),l.NdJ("click",function(J){return B.toggle(J)}),l.YNc(2,c,1,1,null,2)(3,x,2,3,"ng-template",null,3,l.W1O),l.qZA(),l.YNc(5,u,1,0,"ng-template",4)),2&G){const ae=l.MAs(4);l.xp6(2),l.Q6J("ngIf",B.triggerLabel)("ngIfElse",ae)}},dependencies:[i.mk,i.O5,n.Pl,n.bH],styles:[".list__row-action[_nghost-%COMP%], .list__row-action   [_nghost-%COMP%], .form__list-row-action[_nghost-%COMP%], .form__list-row-action   [_nghost-%COMP%]{margin:0 0 5px;flex:1;width:100%}.list__row-action[_nghost-%COMP%]:last-child, .list__row-action   [_nghost-%COMP%]:last-child, .form__list-row-action[_nghost-%COMP%]:last-child, .form__list-row-action   [_nghost-%COMP%]:last-child{margin:0}.list__row-action[_nghost-%COMP%]   .action-menu[_ngcontent-%COMP%], .list__row-action   [_nghost-%COMP%]   .action-menu[_ngcontent-%COMP%], .form__list-row-action[_nghost-%COMP%]   .action-menu[_ngcontent-%COMP%], .form__list-row-action   [_nghost-%COMP%]   .action-menu[_ngcontent-%COMP%]{width:100%;height:100%}.list__row-action[_nghost-%COMP%]   .action-menu[_ngcontent-%COMP%]   .action-menu__button[_ngcontent-%COMP%], .list__row-action   [_nghost-%COMP%]   .action-menu[_ngcontent-%COMP%]   .action-menu__button[_ngcontent-%COMP%], .form__list-row-action[_nghost-%COMP%]   .action-menu[_ngcontent-%COMP%]   .action-menu__button[_ngcontent-%COMP%], .form__list-row-action   [_nghost-%COMP%]   .action-menu[_ngcontent-%COMP%]   .action-menu__button[_ngcontent-%COMP%]{color:#fff;position:relative;width:100%;height:100%}.list__row-action[_nghost-%COMP%]   .action-menu[_ngcontent-%COMP%]   .action-menu__button[_ngcontent-%COMP%] > i[_ngcontent-%COMP%], .list__row-action   [_nghost-%COMP%]   .action-menu[_ngcontent-%COMP%]   .action-menu__button[_ngcontent-%COMP%] > i[_ngcontent-%COMP%], .form__list-row-action[_nghost-%COMP%]   .action-menu[_ngcontent-%COMP%]   .action-menu__button[_ngcontent-%COMP%] > i[_ngcontent-%COMP%], .form__list-row-action   [_nghost-%COMP%]   .action-menu[_ngcontent-%COMP%]   .action-menu__button[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.action-menu[_ngcontent-%COMP%]{display:block;position:relative}.action-menu[_ngcontent-%COMP%]   .action-menu__button[_ngcontent-%COMP%]{display:inline-block;cursor:pointer}.action-menu[_ngcontent-%COMP%]   .action-menu__button.disabled[_ngcontent-%COMP%]{background-color:#e6e9ef;cursor:default}"]})}return H})()},15788:(gt,X,a)=>{"use strict";a.d(X,{B:()=>n});var e=a(19212);let n=(()=>{class s{constructor(i){this.viewContainerRef=i}ngOnChanges(i){i.component&&this._createDynamicComponent(),i.componentParams&&this._updateDynamicComponentParams()}_createDynamicComponent(){this.viewContainerRef.clear();const i=this.viewContainerRef.createComponent(this.component);this.dynamicComponentInstance=i.instance}_updateDynamicComponentParams(){this.dynamicComponentInstance&&this.dynamicComponentInstance.updateDynamicComponent(this.componentParams)}static#e=this.\u0275fac=function(t){return new(t||s)(e.Y36(e.s_b))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["imx-dynamic-component"]],inputs:{component:"component",componentParams:"componentParams"},features:[e.TTD],decls:0,vars:0,template:function(t,p){},encapsulation:2})}return s})()},53807:(gt,X,a)=>{"use strict";a.d(X,{g:()=>l});var e=a(19212),n=a(71365);const s=["*"];let l=(()=>{class i{static#e=this.\u0275fac=function(c){return new(c||i)};static#t=this.\u0275cmp=e.Xpm({type:i,selectors:[["imx-eyecatcher"]],inputs:{text:"text",icon:"icon"},ngContentSelectors:s,decls:6,vars:2,consts:[[1,"eyecatcher__center"],[3,"className"],["translate",""]],template:function(c,o){1&c&&(e.F$t(),e.TgZ(0,"div")(1,"div",0),e._UZ(2,"div",1),e.TgZ(3,"h1",2),e._uU(4),e.qZA()(),e.Hsn(5),e.qZA()),2&c&&(e.xp6(2),e.Q6J("className","imx-icon-big "+o.icon),e.xp6(2),e.Oqu(o.text))},dependencies:[n.Pi],styles:["[_nghost-%COMP%] > div[_ngcontent-%COMP%]{margin:25px 0 15px;position:relative}[_nghost-%COMP%]  .list__header-wrapper{padding:5px 0!important}[_nghost-%COMP%]  imx-grid>.grid>imx-grid-element>[class*=grid-element-]{vertical-align:middle}.eyecatcher__center[_ngcontent-%COMP%]{display:flex;justify-content:center;opacity:.2;pointer-events:none;position:absolute;top:50%;transform:translateY(-50%);width:100%}.eyecatcher__center[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:first-child{font-size:38px;margin-right:20px;vertical-align:middle}.eyecatcher__center[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:first-child:before{vertical-align:middle}.eyecatcher__center[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font:600 40px/50px Noe Display,Arial,sans-serif;color:#0a2663;text-transform:uppercase}"]})}return i})()},12:(gt,X,a)=>{"use strict";a.d(X,{V:()=>i});var e=a(19212),n=a(96814);const s=(t,p,c,o,x,u,m,b)=>[t,p,c,o,x,u,m,b],l=["*"];let i=(()=>{class t{static#e=this.\u0275fac=function(o){return new(o||t)};static#t=this.\u0275cmp=e.Xpm({type:t,selectors:[["imx-grid-element"]],inputs:{lg_w:"lg_w",md_w:"md_w",sm_w:"sm_w",ty_w:"ty_w",lg_o:"lg_o",md_o:"md_o",sm_o:"sm_o",ty_o:"ty_o"},ngContentSelectors:l,decls:2,vars:10,consts:[[3,"ngClass"]],template:function(o,x){1&o&&(e.F$t(),e.TgZ(0,"div",0),e.Hsn(1),e.qZA()),2&o&&e.Q6J("ngClass",e.qlk(1,s,x.lg_w?"grid-element-lg-"+x.lg_w:"",x.md_w?"grid-element-md-"+x.md_w:"",x.sm_w?"grid-element-sm-"+x.sm_w:"",x.ty_w?"grid-element-ty-"+x.ty_w:"",x.lg_o?"grid-offset-lg-"+x.lg_o:"",x.md_o?"grid-offset-md-"+x.md_o:"",x.sm_o?"grid-offset-sm-"+x.sm_o:"",x.ty_o?"grid-offset-ty-"+x.ty_o:""))},dependencies:[n.mk],styles:["[class*=grid-element-][_ngcontent-%COMP%]{display:inline-block;vertical-align:top;box-sizing:border-box}[class*=grid-element-lg-][_ngcontent-%COMP%]{margin-right:10px}[class*=grid-element-lg-][_ngcontent-%COMP%]:not([class*=grid-offset-lg-]), [class*=grid-element-lg-].grid-offset-lg-0[_ngcontent-%COMP%]{margin-left:10px}.grid-element-lg-1[_ngcontent-%COMP%]{width:calc(8.3333333333% - 10px - 10px - .01%)}[class*=grid-element-lg-].grid-offset-lg-1[_ngcontent-%COMP%]{margin-left:calc(8.3333333333% + 10px)}[class*=grid-element-lg-].grid-offset-lg-n1[_ngcontent-%COMP%]{margin-left:calc(-8.3333333333% + 10px)}.grid-element-lg-2[_ngcontent-%COMP%]{width:calc(16.6666666667% - 10px - 10px - .01%)}[class*=grid-element-lg-].grid-offset-lg-2[_ngcontent-%COMP%]{margin-left:calc(16.6666666667% + 10px)}[class*=grid-element-lg-].grid-offset-lg-n2[_ngcontent-%COMP%]{margin-left:calc(-16.6666666667% + 10px)}.grid-element-lg-3[_ngcontent-%COMP%]{width:calc(24.99% - 20px)}[class*=grid-element-lg-].grid-offset-lg-3[_ngcontent-%COMP%]{margin-left:calc(25% + 10px)}[class*=grid-element-lg-].grid-offset-lg-n3[_ngcontent-%COMP%]{margin-left:calc(-25% + 10px)}.grid-element-lg-4[_ngcontent-%COMP%]{width:calc(33.3333333333% - 10px - 10px - .01%)}[class*=grid-element-lg-].grid-offset-lg-4[_ngcontent-%COMP%]{margin-left:calc(33.3333333333% + 10px)}[class*=grid-element-lg-].grid-offset-lg-n4[_ngcontent-%COMP%]{margin-left:calc(-33.3333333333% + 10px)}.grid-element-lg-5[_ngcontent-%COMP%]{width:calc(41.6666666667% - 10px - 10px - .01%)}[class*=grid-element-lg-].grid-offset-lg-5[_ngcontent-%COMP%]{margin-left:calc(41.6666666667% + 10px)}[class*=grid-element-lg-].grid-offset-lg-n5[_ngcontent-%COMP%]{margin-left:calc(-41.6666666667% + 10px)}.grid-element-lg-6[_ngcontent-%COMP%]{width:calc(49.99% - 20px)}[class*=grid-element-lg-].grid-offset-lg-6[_ngcontent-%COMP%]{margin-left:calc(50% + 10px)}[class*=grid-element-lg-].grid-offset-lg-n6[_ngcontent-%COMP%]{margin-left:calc(-50% + 10px)}.grid-element-lg-7[_ngcontent-%COMP%]{width:calc(58.3333333333% - 10px - 10px - .01%)}[class*=grid-element-lg-].grid-offset-lg-7[_ngcontent-%COMP%]{margin-left:calc(58.3333333333% + 10px)}[class*=grid-element-lg-].grid-offset-lg-n7[_ngcontent-%COMP%]{margin-left:calc(-58.3333333333% + 10px)}.grid-element-lg-8[_ngcontent-%COMP%]{width:calc(66.6666666667% - 10px - 10px - .01%)}[class*=grid-element-lg-].grid-offset-lg-8[_ngcontent-%COMP%]{margin-left:calc(66.6666666667% + 10px)}[class*=grid-element-lg-].grid-offset-lg-n8[_ngcontent-%COMP%]{margin-left:calc(-66.6666666667% + 10px)}.grid-element-lg-9[_ngcontent-%COMP%]{width:calc(74.99% - 20px)}[class*=grid-element-lg-].grid-offset-lg-9[_ngcontent-%COMP%]{margin-left:calc(75% + 10px)}[class*=grid-element-lg-].grid-offset-lg-n9[_ngcontent-%COMP%]{margin-left:calc(-75% + 10px)}.grid-element-lg-10[_ngcontent-%COMP%]{width:calc(83.3333333333% - 10px - 10px - .01%)}[class*=grid-element-lg-].grid-offset-lg-10[_ngcontent-%COMP%]{margin-left:calc(83.3333333333% + 10px)}[class*=grid-element-lg-].grid-offset-lg-n10[_ngcontent-%COMP%]{margin-left:calc(-83.3333333333% + 10px)}.grid-element-lg-11[_ngcontent-%COMP%]{width:calc(91.6666666667% - 10px - 10px - .01%)}[class*=grid-element-lg-].grid-offset-lg-11[_ngcontent-%COMP%]{margin-left:calc(91.6666666667% + 10px)}[class*=grid-element-lg-].grid-offset-lg-n11[_ngcontent-%COMP%]{margin-left:calc(-91.6666666667% + 10px)}.grid-element-lg-12[_ngcontent-%COMP%]{width:calc(99.99% - 20px)}[class*=grid-element-lg-].grid-offset-lg-12[_ngcontent-%COMP%]{margin-left:calc(100% + 10px)}[class*=grid-element-lg-].grid-offset-lg-n12[_ngcontent-%COMP%]{margin-left:calc(-100% + 10px)}","@media (max-width: 1400px) and (min-width: 901px){[class*=grid-element-md-][_ngcontent-%COMP%]{margin-right:10px}[class*=grid-element-md-][_ngcontent-%COMP%]:not([class*=grid-offset-md-]), [class*=grid-element-md-].grid-offset-md-0[_ngcontent-%COMP%]{margin-left:10px}.grid-element-md-1[_ngcontent-%COMP%]{width:calc(8.3333333333% - 10px - 10px - .01%)}[class*=grid-element-md-].grid-offset-md-1[_ngcontent-%COMP%]{margin-left:calc(8.3333333333% + 10px)}[class*=grid-element-md-].grid-offset-md-n1[_ngcontent-%COMP%]{margin-left:calc(-8.3333333333% + 10px)}.grid-element-md-2[_ngcontent-%COMP%]{width:calc(16.6666666667% - 10px - 10px - .01%)}[class*=grid-element-md-].grid-offset-md-2[_ngcontent-%COMP%]{margin-left:calc(16.6666666667% + 10px)}[class*=grid-element-md-].grid-offset-md-n2[_ngcontent-%COMP%]{margin-left:calc(-16.6666666667% + 10px)}.grid-element-md-3[_ngcontent-%COMP%]{width:calc(24.99% - 20px)}[class*=grid-element-md-].grid-offset-md-3[_ngcontent-%COMP%]{margin-left:calc(25% + 10px)}[class*=grid-element-md-].grid-offset-md-n3[_ngcontent-%COMP%]{margin-left:calc(-25% + 10px)}.grid-element-md-4[_ngcontent-%COMP%]{width:calc(33.3333333333% - 10px - 10px - .01%)}[class*=grid-element-md-].grid-offset-md-4[_ngcontent-%COMP%]{margin-left:calc(33.3333333333% + 10px)}[class*=grid-element-md-].grid-offset-md-n4[_ngcontent-%COMP%]{margin-left:calc(-33.3333333333% + 10px)}.grid-element-md-5[_ngcontent-%COMP%]{width:calc(41.6666666667% - 10px - 10px - .01%)}[class*=grid-element-md-].grid-offset-md-5[_ngcontent-%COMP%]{margin-left:calc(41.6666666667% + 10px)}[class*=grid-element-md-].grid-offset-md-n5[_ngcontent-%COMP%]{margin-left:calc(-41.6666666667% + 10px)}.grid-element-md-6[_ngcontent-%COMP%]{width:calc(49.99% - 20px)}[class*=grid-element-md-].grid-offset-md-6[_ngcontent-%COMP%]{margin-left:calc(50% + 10px)}[class*=grid-element-md-].grid-offset-md-n6[_ngcontent-%COMP%]{margin-left:calc(-50% + 10px)}.grid-element-md-7[_ngcontent-%COMP%]{width:calc(58.3333333333% - 10px - 10px - .01%)}[class*=grid-element-md-].grid-offset-md-7[_ngcontent-%COMP%]{margin-left:calc(58.3333333333% + 10px)}[class*=grid-element-md-].grid-offset-md-n7[_ngcontent-%COMP%]{margin-left:calc(-58.3333333333% + 10px)}.grid-element-md-8[_ngcontent-%COMP%]{width:calc(66.6666666667% - 10px - 10px - .01%)}[class*=grid-element-md-].grid-offset-md-8[_ngcontent-%COMP%]{margin-left:calc(66.6666666667% + 10px)}[class*=grid-element-md-].grid-offset-md-n8[_ngcontent-%COMP%]{margin-left:calc(-66.6666666667% + 10px)}.grid-element-md-9[_ngcontent-%COMP%]{width:calc(74.99% - 20px)}[class*=grid-element-md-].grid-offset-md-9[_ngcontent-%COMP%]{margin-left:calc(75% + 10px)}[class*=grid-element-md-].grid-offset-md-n9[_ngcontent-%COMP%]{margin-left:calc(-75% + 10px)}.grid-element-md-10[_ngcontent-%COMP%]{width:calc(83.3333333333% - 10px - 10px - .01%)}[class*=grid-element-md-].grid-offset-md-10[_ngcontent-%COMP%]{margin-left:calc(83.3333333333% + 10px)}[class*=grid-element-md-].grid-offset-md-n10[_ngcontent-%COMP%]{margin-left:calc(-83.3333333333% + 10px)}.grid-element-md-11[_ngcontent-%COMP%]{width:calc(91.6666666667% - 10px - 10px - .01%)}[class*=grid-element-md-].grid-offset-md-11[_ngcontent-%COMP%]{margin-left:calc(91.6666666667% + 10px)}[class*=grid-element-md-].grid-offset-md-n11[_ngcontent-%COMP%]{margin-left:calc(-91.6666666667% + 10px)}.grid-element-md-12[_ngcontent-%COMP%]{width:calc(99.99% - 20px)}[class*=grid-element-md-].grid-offset-md-12[_ngcontent-%COMP%]{margin-left:calc(100% + 10px)}[class*=grid-element-md-].grid-offset-md-n12[_ngcontent-%COMP%]{margin-left:calc(-100% + 10px)}}","@media (max-width: 900px) and (min-width: 551px){[class*=grid-element-sm-][_ngcontent-%COMP%]{margin-right:10px}[class*=grid-element-sm-][_ngcontent-%COMP%]:not([class*=grid-offset-sm-]), [class*=grid-element-sm-].grid-offset-sm-0[_ngcontent-%COMP%]{margin-left:10px}.grid-element-sm-1[_ngcontent-%COMP%]{width:calc(8.3333333333% - 10px - 10px - .01%)}[class*=grid-element-sm-].grid-offset-sm-1[_ngcontent-%COMP%]{margin-left:calc(8.3333333333% + 10px)}[class*=grid-element-sm-].grid-offset-sm-n1[_ngcontent-%COMP%]{margin-left:calc(-8.3333333333% + 10px)}.grid-element-sm-2[_ngcontent-%COMP%]{width:calc(16.6666666667% - 10px - 10px - .01%)}[class*=grid-element-sm-].grid-offset-sm-2[_ngcontent-%COMP%]{margin-left:calc(16.6666666667% + 10px)}[class*=grid-element-sm-].grid-offset-sm-n2[_ngcontent-%COMP%]{margin-left:calc(-16.6666666667% + 10px)}.grid-element-sm-3[_ngcontent-%COMP%]{width:calc(24.99% - 20px)}[class*=grid-element-sm-].grid-offset-sm-3[_ngcontent-%COMP%]{margin-left:calc(25% + 10px)}[class*=grid-element-sm-].grid-offset-sm-n3[_ngcontent-%COMP%]{margin-left:calc(-25% + 10px)}.grid-element-sm-4[_ngcontent-%COMP%]{width:calc(33.3333333333% - 10px - 10px - .01%)}[class*=grid-element-sm-].grid-offset-sm-4[_ngcontent-%COMP%]{margin-left:calc(33.3333333333% + 10px)}[class*=grid-element-sm-].grid-offset-sm-n4[_ngcontent-%COMP%]{margin-left:calc(-33.3333333333% + 10px)}.grid-element-sm-5[_ngcontent-%COMP%]{width:calc(41.6666666667% - 10px - 10px - .01%)}[class*=grid-element-sm-].grid-offset-sm-5[_ngcontent-%COMP%]{margin-left:calc(41.6666666667% + 10px)}[class*=grid-element-sm-].grid-offset-sm-n5[_ngcontent-%COMP%]{margin-left:calc(-41.6666666667% + 10px)}.grid-element-sm-6[_ngcontent-%COMP%]{width:calc(49.99% - 20px)}[class*=grid-element-sm-].grid-offset-sm-6[_ngcontent-%COMP%]{margin-left:calc(50% + 10px)}[class*=grid-element-sm-].grid-offset-sm-n6[_ngcontent-%COMP%]{margin-left:calc(-50% + 10px)}.grid-element-sm-7[_ngcontent-%COMP%]{width:calc(58.3333333333% - 10px - 10px - .01%)}[class*=grid-element-sm-].grid-offset-sm-7[_ngcontent-%COMP%]{margin-left:calc(58.3333333333% + 10px)}[class*=grid-element-sm-].grid-offset-sm-n7[_ngcontent-%COMP%]{margin-left:calc(-58.3333333333% + 10px)}.grid-element-sm-8[_ngcontent-%COMP%]{width:calc(66.6666666667% - 10px - 10px - .01%)}[class*=grid-element-sm-].grid-offset-sm-8[_ngcontent-%COMP%]{margin-left:calc(66.6666666667% + 10px)}[class*=grid-element-sm-].grid-offset-sm-n8[_ngcontent-%COMP%]{margin-left:calc(-66.6666666667% + 10px)}.grid-element-sm-9[_ngcontent-%COMP%]{width:calc(74.99% - 20px)}[class*=grid-element-sm-].grid-offset-sm-9[_ngcontent-%COMP%]{margin-left:calc(75% + 10px)}[class*=grid-element-sm-].grid-offset-sm-n9[_ngcontent-%COMP%]{margin-left:calc(-75% + 10px)}.grid-element-sm-10[_ngcontent-%COMP%]{width:calc(83.3333333333% - 10px - 10px - .01%)}[class*=grid-element-sm-].grid-offset-sm-10[_ngcontent-%COMP%]{margin-left:calc(83.3333333333% + 10px)}[class*=grid-element-sm-].grid-offset-sm-n10[_ngcontent-%COMP%]{margin-left:calc(-83.3333333333% + 10px)}.grid-element-sm-11[_ngcontent-%COMP%]{width:calc(91.6666666667% - 10px - 10px - .01%)}[class*=grid-element-sm-].grid-offset-sm-11[_ngcontent-%COMP%]{margin-left:calc(91.6666666667% + 10px)}[class*=grid-element-sm-].grid-offset-sm-n11[_ngcontent-%COMP%]{margin-left:calc(-91.6666666667% + 10px)}.grid-element-sm-12[_ngcontent-%COMP%]{width:calc(99.99% - 20px)}[class*=grid-element-sm-].grid-offset-sm-12[_ngcontent-%COMP%]{margin-left:calc(100% + 10px)}[class*=grid-element-sm-].grid-offset-sm-n12[_ngcontent-%COMP%]{margin-left:calc(-100% + 10px)}}","@media (max-width: 550px){[class*=grid-element-ty-][_ngcontent-%COMP%]{margin-right:2px}[class*=grid-element-ty-][_ngcontent-%COMP%]:not([class*=grid-offset-ty-]), [class*=grid-element-ty-].grid-offset-ty-0[_ngcontent-%COMP%]{margin-left:2px}.grid-element-ty-1[_ngcontent-%COMP%]{width:calc(8.3333333333% - 2px - 2px - .01%)}[class*=grid-element-ty-].grid-offset-ty-1[_ngcontent-%COMP%]{margin-left:calc(8.3333333333% + 2px)}[class*=grid-element-ty-].grid-offset-ty-n1[_ngcontent-%COMP%]{margin-left:calc(-8.3333333333% + 2px)}.grid-element-ty-2[_ngcontent-%COMP%]{width:calc(16.6666666667% - 2px - 2px - .01%)}[class*=grid-element-ty-].grid-offset-ty-2[_ngcontent-%COMP%]{margin-left:calc(16.6666666667% + 2px)}[class*=grid-element-ty-].grid-offset-ty-n2[_ngcontent-%COMP%]{margin-left:calc(-16.6666666667% + 2px)}.grid-element-ty-3[_ngcontent-%COMP%]{width:calc(24.99% - 4px)}[class*=grid-element-ty-].grid-offset-ty-3[_ngcontent-%COMP%]{margin-left:calc(25% + 2px)}[class*=grid-element-ty-].grid-offset-ty-n3[_ngcontent-%COMP%]{margin-left:calc(-25% + 2px)}.grid-element-ty-4[_ngcontent-%COMP%]{width:calc(33.3333333333% - 2px - 2px - .01%)}[class*=grid-element-ty-].grid-offset-ty-4[_ngcontent-%COMP%]{margin-left:calc(33.3333333333% + 2px)}[class*=grid-element-ty-].grid-offset-ty-n4[_ngcontent-%COMP%]{margin-left:calc(-33.3333333333% + 2px)}.grid-element-ty-5[_ngcontent-%COMP%]{width:calc(41.6666666667% - 2px - 2px - .01%)}[class*=grid-element-ty-].grid-offset-ty-5[_ngcontent-%COMP%]{margin-left:calc(41.6666666667% + 2px)}[class*=grid-element-ty-].grid-offset-ty-n5[_ngcontent-%COMP%]{margin-left:calc(-41.6666666667% + 2px)}.grid-element-ty-6[_ngcontent-%COMP%]{width:calc(49.99% - 4px)}[class*=grid-element-ty-].grid-offset-ty-6[_ngcontent-%COMP%]{margin-left:calc(50% + 2px)}[class*=grid-element-ty-].grid-offset-ty-n6[_ngcontent-%COMP%]{margin-left:calc(-50% + 2px)}.grid-element-ty-7[_ngcontent-%COMP%]{width:calc(58.3333333333% - 2px - 2px - .01%)}[class*=grid-element-ty-].grid-offset-ty-7[_ngcontent-%COMP%]{margin-left:calc(58.3333333333% + 2px)}[class*=grid-element-ty-].grid-offset-ty-n7[_ngcontent-%COMP%]{margin-left:calc(-58.3333333333% + 2px)}.grid-element-ty-8[_ngcontent-%COMP%]{width:calc(66.6666666667% - 2px - 2px - .01%)}[class*=grid-element-ty-].grid-offset-ty-8[_ngcontent-%COMP%]{margin-left:calc(66.6666666667% + 2px)}[class*=grid-element-ty-].grid-offset-ty-n8[_ngcontent-%COMP%]{margin-left:calc(-66.6666666667% + 2px)}.grid-element-ty-9[_ngcontent-%COMP%]{width:calc(74.99% - 4px)}[class*=grid-element-ty-].grid-offset-ty-9[_ngcontent-%COMP%]{margin-left:calc(75% + 2px)}[class*=grid-element-ty-].grid-offset-ty-n9[_ngcontent-%COMP%]{margin-left:calc(-75% + 2px)}.grid-element-ty-10[_ngcontent-%COMP%]{width:calc(83.3333333333% - 2px - 2px - .01%)}[class*=grid-element-ty-].grid-offset-ty-10[_ngcontent-%COMP%]{margin-left:calc(83.3333333333% + 2px)}[class*=grid-element-ty-].grid-offset-ty-n10[_ngcontent-%COMP%]{margin-left:calc(-83.3333333333% + 2px)}.grid-element-ty-11[_ngcontent-%COMP%]{width:calc(91.6666666667% - 2px - 2px - .01%)}[class*=grid-element-ty-].grid-offset-ty-11[_ngcontent-%COMP%]{margin-left:calc(91.6666666667% + 2px)}[class*=grid-element-ty-].grid-offset-ty-n11[_ngcontent-%COMP%]{margin-left:calc(-91.6666666667% + 2px)}.grid-element-ty-12[_ngcontent-%COMP%]{width:calc(99.99% - 4px)}[class*=grid-element-ty-].grid-offset-ty-12[_ngcontent-%COMP%]{margin-left:calc(100% + 2px)}[class*=grid-element-ty-].grid-offset-ty-n12[_ngcontent-%COMP%]{margin-left:calc(-100% + 2px)}}"]})}return t})()},37012:(gt,X,a)=>{"use strict";a.d(X,{M:()=>s});var e=a(19212);const n=["*"];let s=(()=>{class l{static#e=this.\u0275fac=function(p){return new(p||l)};static#t=this.\u0275cmp=e.Xpm({type:l,selectors:[["imx-grid"]],ngContentSelectors:n,decls:2,vars:0,consts:[[1,"grid"]],template:function(p,c){1&p&&(e.F$t(),e.TgZ(0,"div",0),e.Hsn(1),e.qZA())},styles:[".grid[_ngcontent-%COMP%]{margin:0 auto;clear:both;display:block}@media (min-width: 1401px){.grid[_ngcontent-%COMP%]{max-width:1680px;width:84.4444444444%}}@media (max-width: 1400px) and (min-width: 901px){.grid[_ngcontent-%COMP%]{max-width:1680px;width:84.4444444444%}}@media (max-width: 900px) and (min-width: 551px){.grid[_ngcontent-%COMP%]{max-width:1680px;width:84.4444444444%}}@media (max-width: 550px){.grid[_ngcontent-%COMP%]{max-width:550px;width:95.5555555556%}}@media (min-width: 1401px){.v-el-1[_ngcontent-%COMP%]{margin-bottom:120px}}@media (min-width: 901px) and (max-width: 1400px){.v-el-1[_ngcontent-%COMP%]{margin-bottom:110px}}@media (max-width: 900px){.v-el-1[_ngcontent-%COMP%]{margin-bottom:80px}}@media (min-width: 1401px){.v-el-2[_ngcontent-%COMP%]{margin-bottom:50px}}@media (min-width: 901px) and (max-width: 1400px){.v-el-2[_ngcontent-%COMP%]{margin-bottom:40px}}@media (max-width: 900px){.v-el-2[_ngcontent-%COMP%]{margin-bottom:20px}}"]})}return l})()},61058:(gt,X,a)=>{"use strict";a.d(X,{P:()=>l});var e=a(50308),n=a(19212),s=a(96814);let l=(()=>{class i extends e.o{static#e=this.iconSizeToCssClassMap={xlarge:"xlarge",large:"large",middle:"middle",small:"small"};get cssClass(){return["icon-container",this.sizeCssClass].join(" ")}get sizeCssClass(){return i.iconSizeToCssClassMap[this.size]}static#t=this.\u0275fac=(()=>{let p;return function(o){return(p||(p=n.n5z(i)))(o||i)}})();static#n=this.\u0275cmp=n.Xpm({type:i,selectors:[["imx-icon-with-circular-background"]],features:[n.qOj],decls:2,vars:4,consts:[[3,"ngClass"],[3,"icon","size","isClickable"]],template:function(c,o){1&c&&(n.TgZ(0,"div",0),n._UZ(1,"imx-icon",1),n.qZA()),2&c&&(n.Q6J("ngClass",o.cssClass),n.xp6(),n.Q6J("icon",o.icon)("size",o.size)("isClickable",o.isClickable))},dependencies:[s.mk,e.o],styles:[".icon-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;background-color:#e6e9ef;color:#0a2663;margin:0 auto}.icon-container.large[_ngcontent-%COMP%]{width:45px;height:45px}.icon-container.middle[_ngcontent-%COMP%]{width:36px;height:36px}.icon-container.small[_ngcontent-%COMP%]{width:20px;height:20px}"]})}return i})()},50308:(gt,X,a)=>{"use strict";a.d(X,{o:()=>l});var e=a(19212),n=a(96814);function s(i,t){if(1&i&&e._UZ(0,"span",1),2&i){const p=e.oxw();e.Q6J("ngClass",p.cssClass)}}let l=(()=>{class i{constructor(){this.size="middle",this.isClickable=!1}static#e=this.iconSizeToCssClassMap={xlarge:"imx-icon-very-big",large:"imx-icon-big",middle:"imx-icon-middle",small:"imx-icon-small"};get cssClass(){return[this.iconSrcCssClass,this.iconSizeCssClass,this.clickableIconCssClass].join(" ")}get iconSrcCssClass(){return"icon-"+this.icon}get iconSizeCssClass(){return i.iconSizeToCssClassMap[this.size]}get clickableIconCssClass(){return this.isClickable?"imx-icon-clickable":""}static#t=this.\u0275fac=function(c){return new(c||i)};static#n=this.\u0275cmp=e.Xpm({type:i,selectors:[["imx-icon"]],inputs:{icon:"icon",size:"size",isClickable:"isClickable"},decls:1,vars:1,consts:[[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(c,o){1&c&&e.YNc(0,s,1,1,"span",0),2&c&&e.Q6J("ngIf",o.icon)},dependencies:[n.mk,n.O5],encapsulation:2})}return i})()},55387:(gt,X,a)=>{"use strict";a.d(X,{N:()=>x});var e=a(19212),n=a(22941),s=a(96814);function l(u,m){1&u&&e.GkF(0)}function i(u,m){if(1&u&&(e.TgZ(0,"a",3),e.YNc(1,l,1,0,"ng-container",4),e.qZA()),2&u){const b=e.oxw(),I=e.MAs(3);e.Q6J("href",b.href,e.LSH)("target",b.target),e.xp6(),e.Q6J("ngTemplateOutlet",I)}}function t(u,m){1&u&&e.GkF(0)}function p(u,m){if(1&u){const b=e.EpF();e.TgZ(0,"a",5),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.onClick())}),e.YNc(1,t,1,0,"ng-container",4),e.qZA()}if(2&u){const b=e.oxw(),I=e.MAs(3);e.Q6J("routerLink",b.href)("target",b.target),e.xp6(),e.Q6J("ngTemplateOutlet",I)}}function c(u,m){1&u&&e.Hsn(0)}const o=["*"];let x=(()=>{class u{set link(b){this.builtLink=this._buildLink(b)}constructor(b){this.router=b,this.isExternal=!1,this.isExternalLink=!1}ngOnInit(){this.isExternalLink=this.isExternal||this._isExternalLink()}get href(){return this.linkWithQueryParams}get linkWithQueryParams(){if(!this.queryParams)return this.builtLink||"";const b=this._joinQueryParams(this.queryParams);return`${this.builtLink}?${b}`}get target(){return this.isExternalLink?"_blank":"_self"}onClick(){this.isExternalLink||this.router.navigateByUrl(this.linkWithQueryParams)}_buildLink(b){return"string"==typeof b?b:b.join("/")}_joinQueryParams(b){return Object.keys(b).map(I=>`${I}=${b[I]}`).join("&")}_isExternalLink(){return!!this.builtLink&&(this.builtLink.includes("http://")||this.builtLink.includes("https://"))}static#e=this.\u0275fac=function(I){return new(I||u)(e.Y36(n.F0))};static#t=this.\u0275cmp=e.Xpm({type:u,selectors:[["imx-link"]],inputs:{link:"link",queryParams:"queryParams",isExternal:"isExternal"},ngContentSelectors:o,decls:4,vars:2,consts:[[3,"href","target",4,"ngIf"],[3,"routerLink","target","click",4,"ngIf"],["linkContent",""],[3,"href","target"],[4,"ngTemplateOutlet"],[3,"routerLink","target","click"]],template:function(I,H){1&I&&(e.F$t(),e.YNc(0,i,2,3,"a",0)(1,p,2,3,"a",1)(2,c,1,0,"ng-template",null,2,e.W1O)),2&I&&(e.Q6J("ngIf",H.isExternalLink),e.xp6(),e.Q6J("ngIf",!H.isExternalLink))},dependencies:[s.O5,s.tP],styles:["a[_ngcontent-%COMP%]{color:#3e3e3e;text-decoration:none}"]})}return u})()},18718:(gt,X,a)=>{"use strict";a.d(X,{k:()=>l});var e=a(19212),n=a(16007),s=a(71365);let l=(()=>{class i{static#e=this.\u0275fac=function(c){return new(c||i)};static#t=this.\u0275cmp=e.Xpm({type:i,selectors:[["imx-loading-detail"]],decls:3,vars:0,consts:[["translate","",1,"loading-detail__text","txt-md"],["mode","indeterminate"]],template:function(c,o){1&c&&(e.TgZ(0,"small",0),e._uU(1,"imxplatform.common.loading-detail"),e.qZA(),e._UZ(2,"mat-progress-bar",1))},dependencies:[n.pW,s.Pi],styles:[".loading-detail__text[_ngcontent-%COMP%]{color:#0a2663;display:block}.loading-detail__text[_ngcontent-%COMP%]:not(:last-child){margin-bottom:10px}"]})}return i})()},44840:(gt,X,a)=>{"use strict";a.d(X,{C:()=>o});var e=a(19212),n=a(21476),s=a(36681),l=a(96814),i=a(51793),t=a(71365);function p(x,u){if(1&x&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",8),e._uU(4),e.qZA()(),e._UZ(5,"span",9)),2&x){const m=e.oxw();e.xp6(),e.hij("",e.lcZ(2,2,"imxplatform.paginator.results-per-page")," "),e.xp6(3),e.hij("(",m.pageSize,")")}}function c(x,u){if(1&x){const m=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){const H=e.CHM(m).$implicit,O=e.oxw();return e.KtG(O.selectSize(H))}),e._uU(1),e.qZA()}if(2&x){const m=u.$implicit;e.xp6(),e.Oqu(m)}}let o=(()=>{class x{constructor(){this.page=new e.vpe}selectSize(m){const b=new n.kl;b.pageIndex=this.pageIndex,b.pageSize=m,this.page.emit(b),this.dropupButton&&this.dropupButton.close()}static#e=this.\u0275fac=function(b){return new(b||x)};static#t=this.\u0275cmp=e.Xpm({type:x,selectors:[["imx-paginator-page-size"]],viewQuery:function(b,I){if(1&b&&e.Gf(s.t,7),2&b){let H;e.iGM(H=e.CRH())&&(I.dropupButton=H.first)}},inputs:{sizes:"sizes",pageIndex:"pageIndex",pageSize:"pageSize"},outputs:{page:"page"},decls:8,vars:1,consts:[[1,"paginator__page-size-wrapper"],[1,"paginator__page-size-button"],["position","above"],["dropupButton",""],["imx-dropup-trigger",""],[1,"paginator__page-size-menu"],["class","page-size-label",3,"click",4,"ngFor","ngForOf"],[1,"triangle-down"],[1,"page-size"],[1,"icon-chevron-down"],[1,"page-size-label",3,"click"]],template:function(b,I){1&b&&(e.TgZ(0,"div",0)(1,"div",1)(2,"imx-dropup-button",2,3),e.YNc(4,p,6,4,"ng-template",4),e.TgZ(5,"div",5),e.YNc(6,c,2,1,"div",6),e._UZ(7,"div",7),e.qZA()()()()),2&b&&(e.xp6(6),e.Q6J("ngForOf",I.sizes))},dependencies:[l.sg,s.t,i.F,t.X$],styles:[".paginator__page-size-wrapper[_ngcontent-%COMP%]{position:relative}.paginator__page-size-button[_ngcontent-%COMP%]{height:50px;cursor:pointer;color:#000;font-size:14px;padding-left:10px;border-left:1px solid #e6e9ef;display:flex;flex-direction:row;justify-content:flex-end;align-items:center}.paginator__page-size-button[_ngcontent-%COMP%]   .page-size[_ngcontent-%COMP%]{color:#3e3e3e}.paginator__page-size-button[_ngcontent-%COMP%]   .icon-chevron-down[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}@media (max-width: 1400px){.paginator__page-size-button[_ngcontent-%COMP%]{font-size:12px}}.paginator__page-size-menu[_ngcontent-%COMP%]{color:#0a2663;width:64px;box-shadow:0 0 5px #0003;background-color:#eefafa;cursor:pointer;transform:translateY(-14px)}.paginator__page-size-menu[_ngcontent-%COMP%]   .page-size-label[_ngcontent-%COMP%]{line-height:34px;text-align:center}.paginator__page-size-menu[_ngcontent-%COMP%]   .page-size-label[_ngcontent-%COMP%]:hover{background-color:#fff}.paginator__page-size-menu[_ngcontent-%COMP%]   .triangle-down[_ngcontent-%COMP%]{position:absolute;right:20px;bottom:-12px;z-index:2}"],changeDetection:0})}return x})()},17299:(gt,X,a)=>{"use strict";a.d(X,{J:()=>c});var e=a(19212),n=a(21476),s=a(96814),l=a(71365);function i(o,x){if(1&o){const u=e.EpF();e.TgZ(0,"input",11),e.NdJ("change",function(){e.CHM(u);const b=e.oxw(2);return e.KtG(b.jumpToPage(b.pageIndex))}),e.qZA()}if(2&o){const u=e.oxw(2);e.Q6J("value",u.pageIndex)}}function t(o,x){if(1&o){const u=e.EpF();e.TgZ(0,"div",12),e.NdJ("click",function(){e.CHM(u);const b=e.oxw().$implicit,I=e.oxw();return e.KtG(I.jumpToPage(b))}),e._uU(1),e.qZA()}if(2&o){const u=e.oxw().$implicit;e.xp6(),e.Oqu(u)}}function p(o,x){if(1&o&&(e.ynx(0),e.YNc(1,i,1,1,"input",9)(2,t,2,1,"ng-template",null,10,e.W1O),e.BQk()),2&o){const u=x.$implicit,m=e.MAs(3),b=e.oxw();e.xp6(),e.Q6J("ngIf",u===b.pageIndex)("ngIfElse",m)}}let c=(()=>{class o{constructor(){this.page=new e.vpe}ngOnChanges(u){this.maxPage=this.buildMaxPage(),this.pageLinksIndices=this.buildPageLinkIndices()}jumpToNextPage(){this.pageIndex+1<=this.maxPage&&this.gotoPage(this.pageIndex+1,this.pageSize)}jumpToPrevPage(){this.pageIndex-1>=1&&this.gotoPage(this.pageIndex-1,this.pageSize)}jumpToPage(u){u<=this.maxPage&&this.gotoPage(u,this.pageSize)}jumpToLastPage(){this.jumpToPage(this.maxPage)}jumpToFirstPage(){this.jumpToPage(1)}buildMaxPage(){return Math.ceil(this.length/this.pageSize)}buildPageLinkIndices(u=!1){const m=Math.floor(this.pageLinks/2);let b=this.pageIndex-m,I=this.pageIndex+m;if(b<=0){const O=Math.abs(b)+1;b+=O,I+=O}if(I>this.maxPage){const O=I-this.maxPage;b-=O,I-=O}I=I>this.maxPage?this.maxPage:I,b=b<1?1:b;const H=[];for(let O=b;O<=I;O++)H.push(O);return H}gotoPage(u,m){const b=new n.kl;b.pageIndex=u,b.pageSize=m,this.page.emit(b)}static#e=this.\u0275fac=function(m){return new(m||o)};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["imx-paginator"]],inputs:{length:"length",pageIndex:"pageIndex",pageSize:"pageSize",pageLinks:"pageLinks"},outputs:{page:"page"},features:[e.TTD],decls:14,vars:8,consts:[[1,"paginator__wrapper"],[1,"paginator__first-page",3,"click"],[1,"paginator__link-previous",3,"click"],[1,"icon-arrow-leftBold"],[4,"ngFor","ngForOf"],[1,"paginator__link-next",3,"click"],[1,"icon-arrow-rightBold"],[1,"paginator__last-page",3,"click"],[1,"paginator__max-page-label"],["class","paginator__page-input",3,"value","change",4,"ngIf","ngIfElse"],["number",""],[1,"paginator__page-input",3,"value","change"],[1,"paginator_page-number",3,"click"]],template:function(m,b){1&m&&(e.TgZ(0,"div",0)(1,"div",1),e.NdJ("click",function(){return b.jumpToFirstPage()}),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",2),e.NdJ("click",function(){return b.jumpToPrevPage()}),e._UZ(5,"span",3),e.qZA(),e.YNc(6,p,4,2,"ng-container",4),e.TgZ(7,"div",5),e.NdJ("click",function(){return b.jumpToNextPage()}),e._UZ(8,"span",6),e.qZA(),e.TgZ(9,"div",7),e.NdJ("click",function(){return b.jumpToLastPage()}),e._uU(10),e.ALo(11,"translate"),e.TgZ(12,"span",8),e._uU(13),e.qZA()()()),2&m&&(e.xp6(2),e.Oqu(e.lcZ(3,4,"imxplatform.paginator.first-page")),e.xp6(4),e.Q6J("ngForOf",b.pageLinksIndices),e.xp6(4),e.Oqu(e.lcZ(11,6,"imxplatform.paginator.last-page")),e.xp6(3),e.hij(" (",b.maxPage,")"))},dependencies:[s.sg,s.O5,l.X$],styles:[".paginator__wrapper[_ngcontent-%COMP%]{padding:0 0 0 10px;color:#0a2663;font-size:12px;display:flex;flex-direction:row;align-items:center;justify-content:center}.paginator__wrapper[_ngcontent-%COMP%]   .icon-arrow-right[_ngcontent-%COMP%], .paginator__wrapper[_ngcontent-%COMP%]   .icon-arrow-left[_ngcontent-%COMP%]{font-size:14px}.paginator__current-page[_ngcontent-%COMP%]{font-size:14px;color:#fff;padding:4px;background-color:#0a2663;height:24px;min-width:30px;text-align:center}.paginator_page-number[_ngcontent-%COMP%]{padding:10px 12px;cursor:pointer}@media (max-width: 1400px){.paginator_page-number[_ngcontent-%COMP%]{padding:10px 8px}}.paginator__first-page[_ngcontent-%COMP%], .paginator__last-page[_ngcontent-%COMP%]{cursor:pointer;padding:10px}@media (max-width: 900px){.paginator__first-page[_ngcontent-%COMP%], .paginator__last-page[_ngcontent-%COMP%]{display:none}}.paginator__link-previous[_ngcontent-%COMP%], .paginator__link-next[_ngcontent-%COMP%]{cursor:pointer;padding:10px 14px}@media (max-width: 900px){.paginator__link-previous[_ngcontent-%COMP%], .paginator__link-next[_ngcontent-%COMP%]{padding:10px 8px}}.paginator__max-page-label[_ngcontent-%COMP%]{color:#0a2663;font-size:10px}.paginator__page-input[_ngcontent-%COMP%]{width:40px;height:36px;background-color:#fff;text-align:center;border:1px solid #ced4e0;border-radius:5px;font-size:14px}@media (max-width: 1400px){.paginator__page-input[_ngcontent-%COMP%]{width:30px}}.paginator_page-number[_ngcontent-%COMP%]:hover, .paginator__link-previous[_ngcontent-%COMP%]:hover, .paginator__link-next[_ngcontent-%COMP%]:hover{background-color:#fff}"],changeDetection:0})}return o})()},5393:(gt,X,a)=>{"use strict";a.d(X,{J:()=>s});var e=a(19212),n=a(71365);let s=(()=>{class l{constructor(){this.export=new e.vpe}static#e=this.\u0275fac=function(p){return new(p||l)};static#t=this.\u0275cmp=e.Xpm({type:l,selectors:[["imx-statistics-button"]],outputs:{export:"export"},decls:4,vars:3,consts:[[1,"imx-button","default","with-icon",3,"click"],[1,"icon","icon-pie-chart"]],template:function(p,c){1&p&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return c.export.emit()}),e._UZ(1,"i",1),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&p&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"imxplatform.common.export"),"\n"))},dependencies:[n.X$],encapsulation:2})}return l})()},38777:(gt,X,a)=>{"use strict";a.d(X,{j:()=>t});var e=a(19212),n=a(71365),s=a(88454);const l=["poverlay"],i=["*"];let t=(()=>{class p{constructor(o){this.translateService=o,this.offset=250,this.whiteBg=!1,this.large=!1}getStyleClass(){const o=[];return this.whiteBg&&o.push("p-overlayPanel--whiteBg"),this.large&&o.push("p-overlayPanel--large"),o.join(" ")}show(o){null==this.poverlay.target&&this.poverlay.show(o)}hide(){null==this.poverlay.target||this.poverlay.hide()}static#e=this.\u0275fac=function(x){return new(x||p)(e.Y36(n.sK))};static#t=this.\u0275cmp=e.Xpm({type:p,selectors:[["imx-tooltip-extended"]],viewQuery:function(x,u){if(1&x&&e.Gf(l,5),2&x){let m;e.iGM(m=e.CRH())&&(u.poverlay=m.first)}},inputs:{offset:"offset",whiteBg:"whiteBg",large:"large"},ngContentSelectors:i,decls:3,vars:4,consts:[["appendTo","body",3,"styleClass","dismissable","showTransitionOptions","hideTransitionOptions"],["poverlay",""]],template:function(x,u){1&x&&(e.F$t(),e.TgZ(0,"p-overlayPanel",0,1),e.Hsn(2),e.qZA()),2&x&&e.Q6J("styleClass",u.getStyleClass())("dismissable",!0)("showTransitionOptions",u.offset+"ms ease-out")("hideTransitionOptions",u.offset+"ms ease-in")},dependencies:[s.T],encapsulation:2})}return p})()},35475:(gt,X,a)=>{"use strict";a.d(X,{K:()=>p});var e=a(91226),n=a(19212),s=a(71365),l=a(92596),i=a(96814);const t=["*"];let p=(()=>{class c{constructor(x){this.translateService=x,this.tooltipPosition="below",this.offset=0}ngOnChanges(x){x.tooltipText&&(this.translatedTooltipText$=this.tooltipText?this.translateService.get(this.tooltipText):e.E)}static#e=this.\u0275fac=function(u){return new(u||c)(n.Y36(s.sK))};static#t=this.\u0275cmp=n.Xpm({type:c,selectors:[["imx-tooltip"]],inputs:{tooltipText:"tooltipText",tooltipPosition:"tooltipPosition",offset:"offset"},features:[n.TTD],ngContentSelectors:t,decls:3,vars:5,consts:[["matTooltipClass","imx-tooltip",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"]],template:function(u,m){1&u&&(n.F$t(),n.TgZ(0,"div",0),n.ALo(1,"async"),n.Hsn(2),n.qZA()),2&u&&n.Q6J("matTooltip",n.lcZ(1,3,m.translatedTooltipText$))("matTooltipPosition",m.tooltipPosition)("matTooltipShowDelay",m.offset)},dependencies:[l.gM,i.Ov],styles:["div[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}"]})}return c})()},51793:(gt,X,a)=>{"use strict";a.d(X,{F:()=>s});var e=a(68484),n=a(19212);let s=(()=>{class l extends e.ig{static#e=this.\u0275fac=(()=>{let t;return function(c){return(t||(t=n.n5z(l)))(c||l)}})();static#t=this.\u0275dir=n.lG2({type:l,selectors:[["","imx-dropup-trigger",""]],features:[n.qOj]})}return l})()},56356:(gt,X,a)=>{"use strict";a.d(X,{n:()=>t});var e=a(15861),n=a(19212),s=a(72079),l=a(96776),i=a(97734);let t=(()=>{class p{constructor(o){this.element=o,this.debounceTime=0,this.visible=new n.vpe,this.subject$=new s.xQ}ngOnInit(){this.createObserver()}ngAfterViewInit(){this.startObservingElements()}ngOnDestroy(){this.observer&&(this.observer.disconnect(),this.observer=void 0),this.subject$.complete()}createObserver(){this.observer=new IntersectionObserver((u,m)=>{u.forEach(b=>{(u=>u.isIntersecting||u.intersectionRatio>0)(b)&&this.subject$.next({entry:b,observer:m})})},{rootMargin:"0px"})}startObservingElements(){var o=this;this.observer&&(this.observer.observe(this.element.nativeElement),this.subject$.pipe((0,l.b)(this.debounceTime),(0,i.h)(Boolean)).subscribe(function(){var x=(0,e.Z)(function*({entry:u,observer:m}){const b=u.target;o.visible.emit(b),m.unobserve(b)});return function(u){return x.apply(this,arguments)}}()))}static#e=this.\u0275fac=function(x){return new(x||p)(n.Y36(n.SBq))};static#t=this.\u0275dir=n.lG2({type:p,selectors:[["","imx-observe-visibility",""]],inputs:{debounceTime:"debounceTime"},outputs:{visible:"visible"}})}return p})()},34554:(gt,X,a)=>{"use strict";a.d(X,{xT:()=>u});var e=a(96814),n=a(56223),s=a(68484),l=a(92596),i=a(3305),t=a(16007),p=a(71365),c=a(88454),o=a(67338),x=a(19212);let u=(()=>{class m{static#e=this.\u0275fac=function(H){return new(H||m)};static#t=this.\u0275mod=x.oAB({type:m});static#n=this.\u0275inj=x.cJS({imports:[e.ez,n.u5,i.To,l.AV,t.Cv,c.y,s.eL,o._,p.aw]})}return m})()},3579:(gt,X,a)=>{"use strict";a.d(X,{aU:()=>ki,fN:()=>ni,$l:()=>xi,Ph:()=>qr,ZM:()=>wo,yh:()=>In,f4:()=>et});var e=a(19212),n=a(8367);let l=(()=>{class oi{constructor(){this.bootstrap$=new n.t(1)}get appBootstrapped$(){return this.bootstrap$.asObservable()}bootstrap(){this.bootstrap$.next(!0),this.bootstrap$.complete()}}return oi.\u0275fac=function(Ti){return new(Ti||oi)},oi.\u0275prov=e.Yz7({token:oi,factory:oi.\u0275fac,providedIn:"root"}),oi})();function i(oi,Vi){return oi===Vi}let c=(()=>{class oi{static set(Ti){this._value=Ti}static pop(){const Ti=this._value;return this._value={},Ti}}return oi._value={},oi})();const o=new e.OlP("INITIAL_STATE_TOKEN",{providedIn:"root",factory:()=>c.pop()}),x=new e.OlP("\u0275NGXS_STATE_FACTORY"),u=new e.OlP("\u0275NGXS_STATE_CONTEXT_FACTORY");var m=a(96814),b=a(54699),I=a(72079),H=a(45125),O=a(49193),P=a(77504),G=a(16222),B=a(91226),ae=a(5253),J=a(95363),q=a(97734),j=a(96124),Y=a(49185),K=a(51418),ne=a(47279),ee=a(61250),$=a(6735);function ue(oi,Vi){return Vi?Ti=>Ti.pipe(ue((Hi,Do)=>(0,ae.D)(oi(Hi,Do)).pipe((0,j.U)(($o,yr)=>Vi(Hi,$o,Do,yr))))):Ti=>Ti.lift(new ge(oi))}class ge{constructor(Vi){this.project=Vi}call(Vi,Ti){return Ti.subscribe(new Ke(Vi,this.project))}}class Ke extends ne.L{constructor(Vi,Ti){super(Vi),this.project=Ti,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(Vi){this.hasSubscription||this.tryNext(Vi)}tryNext(Vi){let Ti;const Hi=this.index++;try{Ti=this.project(Vi,Hi)}catch(Do){return void this.destination.error(Do)}this.hasSubscription=!0,this._innerSub(Ti,Vi,Hi)}_innerSub(Vi,Ti,Hi){const Do=new ee.d(this,Ti,Hi),$o=this.destination;$o.add(Do);const yr=(0,$.D)(this,Vi,void 0,void 0,Do);yr!==Do&&$o.add(yr)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(Vi,Ti,Hi,Do,$o){this.destination.next(Ti)}notifyError(Vi){this.destination.error(Vi)}notifyComplete(Vi){this.destination.remove(Vi),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}var at=a(96743),Le=a(7428),R=a(62413),Te=a(19352),me=a(32068),Se=a(17927),Ue=a(53075),We=a(94760);function et(oi){return oi.constructor&&oi.constructor.type?oi.constructor.type:oi.type}const lt=(oi,Vi,Ti)=>{oi=Object.assign({},oi);const Hi=Vi.split("."),Do=Hi.length-1;return Hi.reduce(($o,yr,Vr)=>($o[yr]=Vr===Do?Ti:Array.isArray($o[yr])?$o[yr].slice():Object.assign({},$o[yr]),$o&&$o[yr]),oi),oi},Vt=(oi,Vi)=>Vi.split(".").reduce((Ti,Hi)=>Ti&&Ti[Hi],oi),r=oi=>oi&&"object"==typeof oi&&!Array.isArray(oi),Z=(oi,...Vi)=>{if(!Vi.length)return oi;const Ti=Vi.shift();if(r(oi)&&r(Ti))for(const Hi in Ti)r(Ti[Hi])?(oi[Hi]||Object.assign(oi,{[Hi]:{}}),Z(oi[Hi],Ti[Hi])):Object.assign(oi,{[Hi]:Ti[Hi]});return Z(oi,...Vi)};let Ie=(()=>{class oi{constructor(Ti,Hi){this._ngZone=Ti,this._platformId=Hi}enter(Ti){return(0,m.PM)(this._platformId)?this.runInsideAngular(Ti):this.runOutsideAngular(Ti)}leave(Ti){return this.runInsideAngular(Ti)}runInsideAngular(Ti){return e.R0b.isInAngularZone()?Ti():this._ngZone.run(Ti)}runOutsideAngular(Ti){return e.R0b.isInAngularZone()?this._ngZone.runOutsideAngular(Ti):Ti()}}return oi.\u0275fac=function(Ti){return new(Ti||oi)(e.LFG(e.R0b),e.LFG(e.Lbi))},oi.\u0275prov=e.Yz7({token:oi,factory:oi.\u0275fac,providedIn:"root"}),oi})();const ct=new e.OlP("ROOT_OPTIONS"),tn=new e.OlP("ROOT_STATE_TOKEN"),yi=new e.OlP("FEATURE_STATE_TOKEN"),ni=new e.OlP("NGXS_PLUGINS"),sn="NGXS_META",bn="NGXS_OPTIONS_META",vt="NGXS_SELECTOR_META";let nn=(()=>{class oi{constructor(){this.defaultsState={},this.selectorOptions={injectContainerState:!0,suppressErrors:!0},this.compatibility={strictContentSecurityPolicy:!1},this.executionStrategy=Ie}}return oi.\u0275fac=function(Ti){return new(Ti||oi)},oi.\u0275prov=e.Yz7({token:oi,factory:function(Ti){let Hi=null;return Ti?Hi=new Ti:(Do=e.LFG(ct),Hi=Z(new oi,Do)),Hi;var Do},providedIn:"root"}),oi})();class rn{constructor(Vi,Ti,Hi){this.previousValue=Vi,this.currentValue=Ti,this.firstChange=Hi}}let ii=(()=>{class oi{enter(Ti){return Ti()}leave(Ti){return Ti()}}return oi.\u0275fac=function(Ti){return new(Ti||oi)},oi.\u0275prov=e.Yz7({token:oi,factory:oi.\u0275fac,providedIn:"root"}),oi})();const Oo=new e.OlP("USER_PROVIDED_NGXS_EXECUTION_STRATEGY"),no=new e.OlP("NGXS_EXECUTION_STRATEGY",{providedIn:"root",factory:()=>{const oi=(0,e.f3M)(e.gxx),Vi=oi.get(Oo);return oi.get(Vi||(typeof e.dqk.Zone<"u"?Ie:ii))}});function Li(oi){if(!oi.hasOwnProperty(sn)){const Vi={name:null,actions:{},defaults:{},path:null,makeRootSelector:Ti=>Ti.getStateGetter(Vi.name),children:[]};Object.defineProperty(oi,sn,{value:Vi})}return ji(oi)}function ji(oi){return oi[sn]}function yn(oi,Vi){return Vi&&Vi.compatibility&&Vi.compatibility.strictContentSecurityPolicy?function En(oi){const Vi=oi.slice();return Ti=>Vi.reduce((Hi,Do)=>Hi&&Hi[Do],Ti)}(oi):function co(oi){const Vi=oi;let Ti="store."+Vi[0],Hi=0;const Do=Vi.length;let $o=Ti;for(;++Hi<Do;)$o=$o+" && "+(Ti=Ti+"."+Vi[Hi]);return new Function("store","return "+$o+";")}(oi)}function tt(...oi){return function Fn(oi,Vi,Ti=li){const Hi=function si(oi){return oi.reduce((Vi,Ti)=>(Vi[et(Ti)]=!0,Vi),{})}(oi),Do=Vi&&function oo(oi){return oi.reduce((Vi,Ti)=>(Vi[Ti]=!0,Vi),{})}(Vi);return function($o){return $o.pipe(function yt(oi,Vi){return(0,q.h)(Ti=>{const Hi=et(Ti.action);return oi[Hi]&&(!Vi||Vi[Ti.status])})}(Hi,Do),Ti())}}(oi,["DISPATCHED"])}function li(){return(0,j.U)(oi=>oi.action)}function _o(oi){return Vi=>new b.y(Ti=>Vi.subscribe({next(Hi){oi.leave(()=>Ti.next(Hi))},error(Hi){oi.leave(()=>Ti.error(Hi))},complete(){oi.leave(()=>Ti.complete())}}))}let Hn=(()=>{class oi{constructor(Ti){this._executionStrategy=Ti}enter(Ti){return this._executionStrategy.enter(Ti)}leave(Ti){return this._executionStrategy.leave(Ti)}}return oi.\u0275fac=function(Ti){return new(Ti||oi)(e.LFG(no))},oi.\u0275prov=e.Yz7({token:oi,factory:oi.\u0275fac,providedIn:"root"}),oi})();function mo(oi){const Vi=[];let Ti=!1;return function(...Do){if(Ti)Vi.unshift(Do);else{for(Ti=!0,oi(...Do);Vi.length>0;){const $o=Vi.pop();$o&&oi(...$o)}Ti=!1}}}class vn extends I.xQ{constructor(){super(...arguments),this._orderedNext=mo(Vi=>super.next(Vi))}next(Vi){this._orderedNext(Vi)}}class Ji extends H.X{constructor(Vi){super(Vi),this._orderedNext=mo(Ti=>super.next(Ti)),this._currentValue=Vi}getValue(){return this._currentValue}next(Vi){this._currentValue=Vi,this._orderedNext(Vi)}}let wn=(()=>{class oi extends vn{ngOnDestroy(){this.complete()}}return oi.\u0275fac=(()=>{let Vi;return function(Hi){return(Vi||(Vi=e.n5z(oi)))(Hi||oi)}})(),oi.\u0275prov=e.Yz7({token:oi,factory:oi.\u0275fac,providedIn:"root"}),oi})();const Kn=oi=>(...Vi)=>oi.shift()(...Vi,(...Hi)=>Kn(oi)(...Hi));let Wi=(()=>{class oi{constructor(Ti){this._injector=Ti,this._errorHandler=null}reportErrorSafely(Ti){null===this._errorHandler&&(this._errorHandler=this._injector.get(e.qLn));try{this._errorHandler.handleError(Ti)}catch{}}}return oi.\u0275fac=function(Ti){return new(Ti||oi)(e.LFG(e.zs3))},oi.\u0275prov=e.Yz7({token:oi,factory:oi.\u0275fac,providedIn:"root"}),oi})(),Ft=(()=>{class oi extends Ji{constructor(){super({})}ngOnDestroy(){this.complete()}}return oi.\u0275fac=function(Ti){return new(Ti||oi)},oi.\u0275prov=e.Yz7({token:oi,factory:oi.\u0275fac,providedIn:"root"}),oi})(),Oi=(()=>{class oi{constructor(Ti,Hi){this._parentManager=Ti,this._pluginHandlers=Hi,this.plugins=[],this.registerHandlers()}get rootPlugins(){return this._parentManager&&this._parentManager.plugins||this.plugins}registerHandlers(){const Ti=this.getPluginHandlers();this.rootPlugins.push(...Ti)}getPluginHandlers(){return(this._pluginHandlers||[]).map(Hi=>Hi.handle?Hi.handle.bind(Hi):Hi)}}return oi.\u0275fac=function(Ti){return new(Ti||oi)(e.LFG(oi,12),e.LFG(ni,8))},oi.\u0275prov=e.Yz7({token:oi,factory:oi.\u0275fac}),oi})(),On=(()=>{class oi extends I.xQ{}return oi.\u0275fac=(()=>{let Vi;return function(Hi){return(Vi||(Vi=e.n5z(oi)))(Hi||oi)}})(),oi.\u0275prov=e.Yz7({token:oi,factory:oi.\u0275fac,providedIn:"root"}),oi})(),_n=(()=>{class oi{constructor(Ti,Hi,Do,$o,yr,Vr){this._actions=Ti,this._actionResults=Hi,this._pluginManager=Do,this._stateStream=$o,this._ngxsExecutionStrategy=yr,this._internalErrorReporter=Vr}dispatch(Ti){return this._ngxsExecutionStrategy.enter(()=>this.dispatchByEvents(Ti)).pipe(function Vn(oi,Vi){return Ti=>{let Hi=!1;return Ti.subscribe({error:Do=>{Vi.enter(()=>Promise.resolve().then(()=>{Hi||Vi.leave(()=>oi.reportErrorSafely(Do))}))}}),new b.y(Do=>(Hi=!0,Ti.pipe(_o(Vi)).subscribe(Do)))}}(this._internalErrorReporter,this._ngxsExecutionStrategy))}dispatchByEvents(Ti){return Array.isArray(Ti)?0===Ti.length?(0,O.of)(this._stateStream.getValue()):(0,P.D)(Ti.map(Hi=>this.dispatchSingle(Hi))):this.dispatchSingle(Ti)}dispatchSingle(Ti){const Hi=this._stateStream.getValue();return Kn([...this._pluginManager.plugins,($o,yr)=>{$o!==Hi&&this._stateStream.next($o);const Vr=this.getActionResultStream(yr);return Vr.subscribe(da=>this._actions.next(da)),this._actions.next({action:yr,status:"DISPATCHED"}),this.createDispatchObservable(Vr)}])(Hi,Ti).pipe((0,Y.d)())}getActionResultStream(Ti){return this._actionResults.pipe((0,q.h)(Hi=>Hi.action===Ti&&"DISPATCHED"!==Hi.status),(0,K.q)(1),(0,Y.d)())}createDispatchObservable(Ti){return Ti.pipe(ue(Hi=>{switch(Hi.status){case"SUCCESSFUL":return(0,O.of)(this._stateStream.getValue());case"ERRORED":return(0,G._)(Hi.error);default:return B.E}})).pipe((0,Y.d)())}}return oi.\u0275fac=function(Ti){return new(Ti||oi)(e.LFG(wn),e.LFG(On),e.LFG(Oi),e.LFG(Ft),e.LFG(Hn),e.LFG(Wi))},oi.\u0275prov=e.Yz7({token:oi,factory:oi.\u0275fac,providedIn:"root"}),oi})(),Dn=(()=>{class oi{constructor(Ti,Hi,Do){this._stateStream=Ti,this._dispatcher=Hi,this._config=Do}getRootStateOperations(){return{getState:()=>this._stateStream.getValue(),setState:Hi=>this._stateStream.next(Hi),dispatch:Hi=>this._dispatcher.dispatch(Hi)}}setStateToTheCurrentWithNew(Ti){const Hi=this.getRootStateOperations(),Do=Hi.getState();Hi.setState(Object.assign(Object.assign({},Do),Ti.defaults))}}return oi.\u0275fac=function(Ti){return new(Ti||oi)(e.LFG(Ft),e.LFG(_n),e.LFG(nn))},oi.\u0275prov=e.Yz7({token:oi,factory:oi.\u0275fac,providedIn:"root"}),oi})(),Fi=(()=>{class oi{constructor(Ti){this._internalStateOperations=Ti}createStateContext(Ti){const Hi=this._internalStateOperations.getRootStateOperations();function Do(da){return Vt(da,Ti.path)}function $o(da,Za){const ma=lt(da,Ti.path,Za);return Hi.setState(ma),ma}function yr(da,Za){return $o(da,Za(Do(da)))}return{getState:()=>Do(Hi.getState()),patchState(da){const Za=Hi.getState(),ma=function kn(oi){return Vi=>{const Ti=Object.assign({},Vi);for(const Hi in oi)Ti[Hi]=oi[Hi];return Ti}}(da);return yr(Za,ma)},setState(da){const Za=Hi.getState();return function Vr(da){return"function"==typeof da}(da)?yr(Za,da):$o(Za,da)},dispatch:da=>Hi.dispatch(da)}}}return oi.\u0275fac=function(Ti){return new(Ti||oi)(e.LFG(Dn))},oi.\u0275prov=e.Yz7({token:oi,factory:oi.\u0275fac,providedIn:"root"}),oi})();new RegExp("^[a-zA-Z0-9_]+$");class Bn{static get type(){return"@@INIT"}}class Bi{constructor(Vi){this.addedStates=Vi}static get type(){return"@@UPDATE_STATE"}}new e.OlP("NGXS_DEVELOPMENT_OPTIONS",{providedIn:"root",factory:()=>({warnOnUnhandledActions:!0})});let bt=(()=>{class oi{constructor(Ti,Hi,Do,$o,yr,Vr,da){this._injector=Ti,this._config=Hi,this._parentFactory=Do,this._actions=$o,this._actionResults=yr,this._stateContextFactory=Vr,this._initialState=da,this._actionsSubscription=null,this._states=[],this._statesByName={},this._statePaths={},this.getRuntimeSelectorContext=function p(oi,Vi=i){let Ti=null,Hi=null;function Do(){return function t(oi,Vi,Ti){if(null===Vi||null===Ti||Vi.length!==Ti.length)return!1;const Hi=Vi.length;for(let Do=0;Do<Hi;Do++)if(!oi(Vi[Do],Ti[Do]))return!1;return!0}(Vi,Ti,arguments)||(Hi=oi.apply(null,arguments)),Ti=arguments,Hi}return Do.reset=function(){Ti=null,Hi=null},Do}(()=>{const Za=this;function ma(Yi){const jo=Za.statePaths[Yi];return jo?yn(jo.split("."),Za._config):null}return this._parentFactory?this._parentFactory.getRuntimeSelectorContext():{getStateGetter(Yi){let jo=ma(Yi);return jo||((...Cn)=>(jo||(jo=ma(Yi)),jo?jo(...Cn):void 0))},getSelectorOptions:Yi=>Object.assign(Object.assign({},Za._config.selectorOptions),Yi||{})}})}get states(){return this._parentFactory?this._parentFactory.states:this._states}get statesByName(){return this._parentFactory?this._parentFactory.statesByName:this._statesByName}get statePaths(){return this._parentFactory?this._parentFactory.statePaths:this._statePaths}static cloneDefaults(Ti){let Hi={};return Hi=Array.isArray(Ti)?Ti.slice():function Ve(oi){return"object"==typeof oi&&null!==oi||"function"==typeof oi}(Ti)?Object.assign({},Ti):void 0===Ti?{}:Ti,Hi}ngOnDestroy(){var Ti;null===(Ti=this._actionsSubscription)||void 0===Ti||Ti.unsubscribe()}add(Ti){const{newStates:Hi}=this.addToStatesMap(Ti);if(!Hi.length)return[];const Do=function ln(oi){const Vi=Ti=>oi.find(Do=>Do===Ti)[sn].name;return oi.reduce((Ti,Hi)=>{const{name:Do,children:$o}=Hi[sn];return Ti[Do]=($o||[]).map(Vi),Ti},{})}(Hi),$o=function $e(oi){const Vi=[],Ti={},Hi=(Do,$o=[])=>{Array.isArray($o)||($o=[]),$o.push(Do),Ti[Do]=!0,oi[Do].forEach(yr=>{Ti[yr]||Hi(yr,$o.slice(0))}),Vi.indexOf(Do)<0&&Vi.push(Do)};return Object.keys(oi).forEach(Do=>Hi(Do)),Vi.reverse()}(Do),yr=function rt(oi,Vi={}){const Ti=(Hi,Do)=>{for(const $o in Hi)if(Hi.hasOwnProperty($o)&&Hi[$o].indexOf(Do)>=0){const yr=Ti(Hi,$o);return null!==yr?`${yr}.${$o}`:$o}return null};for(const Hi in oi)if(oi.hasOwnProperty(Hi)){const Do=Ti(oi,Hi);Vi[Hi]=Do?`${Do}.${Hi}`:Hi}return Vi}(Do),Vr=function He(oi){return oi.reduce((Vi,Ti)=>(Vi[Ti[sn].name]=Ti,Vi),{})}(Hi),da=[];for(const Za of $o){const ma=Vr[Za],Wa=yr[Za],Yi=ma[sn];this.addRuntimeInfoToMeta(Yi,Wa);const jo={name:Za,path:Wa,isInitialised:!1,actions:Yi.actions,instance:this._injector.get(ma),defaults:oi.cloneDefaults(Yi.defaults)};this.hasBeenMountedAndBootstrapped(Za,Wa)||da.push(jo),this.states.push(jo)}return da}addAndReturnDefaults(Ti){const Do=this.add(Ti||[]);return{defaults:Do.reduce((yr,Vr)=>lt(yr,Vr.path,Vr.defaults),{}),states:Do}}connectActionHandlers(){if(this._parentFactory||null!==this._actionsSubscription)return;const Ti=new I.xQ;this._actionsSubscription=this._actions.pipe((0,q.h)(Hi=>"DISPATCHED"===Hi.status),(0,at.zg)(Hi=>{Ti.next(Hi);const Do=Hi.action;return this.invokeActions(Ti,Do).pipe((0,j.U)(()=>({action:Do,status:"SUCCESSFUL"})),(0,Le.d)({action:Do,status:"CANCELED"}),(0,R.K)($o=>(0,O.of)({action:Do,status:"ERRORED",error:$o})))})).subscribe(Hi=>this._actionResults.next(Hi))}invokeActions(Ti,Hi){const Do=et(Hi),$o=[];let yr=!1;for(const Vr of this.states){const da=Vr.actions[Do];if(da)for(const Za of da){const ma=this._stateContextFactory.createStateContext(Vr);try{let Wa=Vr.instance[Za.fn](ma,Hi);Wa instanceof Promise&&(Wa=(0,ae.D)(Wa)),(0,J.b)(Wa)?(Wa=Wa.pipe((0,at.zg)(Yi=>Yi instanceof Promise?(0,ae.D)(Yi):(0,J.b)(Yi)?Yi:(0,O.of)(Yi)),(0,Le.d)({})),Za.options.cancelUncompleted&&(Wa=Wa.pipe((0,Te.R)(Ti.pipe(tt(Hi)))))):Wa=(0,O.of)({}).pipe((0,Y.d)()),$o.push(Wa)}catch(Wa){$o.push((0,G._)(Wa))}yr=!0}}return $o.length||$o.push((0,O.of)({})),(0,P.D)($o)}addToStatesMap(Ti){const Hi=[],Do=this.statesByName;for(const $o of Ti){const yr=ji($o).name;!Do[yr]&&(Hi.push($o),Do[yr]=$o)}return{newStates:Hi}}addRuntimeInfoToMeta(Ti,Hi){this.statePaths[Ti.name]=Hi,Ti.path=Hi}hasBeenMountedAndBootstrapped(Ti,Hi){const Do=void 0!==Vt(this._initialState,Hi);return this.statesByName[Ti]&&Do}}return oi.\u0275fac=function(Ti){return new(Ti||oi)(e.LFG(e.zs3),e.LFG(nn),e.LFG(oi,12),e.LFG(wn),e.LFG(On),e.LFG(Fi),e.LFG(o,8))},oi.\u0275prov=e.Yz7({token:oi,factory:oi.\u0275fac}),oi})();function hr(oi){const Vi=function _i(oi){return oi[vt]}(oi)||ji(oi);return Vi&&Vi.makeRootSelector||(()=>oi)}let In=(()=>{class oi{constructor(Ti,Hi,Do,$o,yr,Vr){this._stateStream=Ti,this._internalStateOperations=Hi,this._config=Do,this._internalExecutionStrategy=$o,this._stateFactory=yr,this._selectableStateStream=this._stateStream.pipe(_o(this._internalExecutionStrategy),(0,Y.d)({bufferSize:1,refCount:!0})),this.initStateStream(Vr)}dispatch(Ti){return this._internalStateOperations.getRootStateOperations().dispatch(Ti)}select(Ti){const Hi=this.getStoreBoundSelectorFn(Ti);return this._selectableStateStream.pipe((0,j.U)(Hi),(0,R.K)(Do=>{const{suppressErrors:$o}=this._config.selectorOptions;return Do instanceof TypeError&&$o?(0,O.of)(void 0):(0,G._)(Do)}),(0,me.x)(),_o(this._internalExecutionStrategy))}selectOnce(Ti){return this.select(Ti).pipe((0,K.q)(1))}selectSnapshot(Ti){return this.getStoreBoundSelectorFn(Ti)(this._stateStream.getValue())}subscribe(Ti){return this._selectableStateStream.pipe(_o(this._internalExecutionStrategy)).subscribe(Ti)}snapshot(){return this._internalStateOperations.getRootStateOperations().getState()}reset(Ti){return this._internalStateOperations.getRootStateOperations().setState(Ti)}getStoreBoundSelectorFn(Ti){return hr(Ti)(this._stateFactory.getRuntimeSelectorContext())}initStateStream(Ti){const Hi=this._stateStream.value;if(!Hi||0===Object.keys(Hi).length){const yr=Object.keys(this._config.defaultsState).length>0?Object.assign(Object.assign({},this._config.defaultsState),Ti):Ti;this._stateStream.next(yr)}}}return oi.\u0275fac=function(Ti){return new(Ti||oi)(e.LFG(Ft),e.LFG(Dn),e.LFG(nn),e.LFG(Hn),e.LFG(bt),e.LFG(o,8))},oi.\u0275prov=e.Yz7({token:oi,factory:oi.\u0275fac,providedIn:"root"}),oi})(),Wr=(()=>{class oi{constructor(Ti,Hi){oi.store=Ti,oi.config=Hi}ngOnDestroy(){oi.store=null,oi.config=null}}return oi.store=null,oi.config=null,oi.\u0275fac=function(Ti){return new(Ti||oi)(e.LFG(In),e.LFG(nn))},oi.\u0275prov=e.Yz7({token:oi,factory:oi.\u0275fac,providedIn:"root"}),oi})(),qi=(()=>{class oi{constructor(Ti,Hi,Do,$o,yr){this._store=Ti,this._internalErrorReporter=Hi,this._internalStateOperations=Do,this._stateContextFactory=$o,this._bootstrapper=yr,this._destroy$=new I.xQ}ngOnDestroy(){this._destroy$.next()}ngxsBootstrap(Ti,Hi){this._internalStateOperations.getRootStateOperations().dispatch(Ti).pipe((0,q.h)(()=>!!Hi),(0,Se.b)(()=>this._invokeInitOnStates(Hi.states)),(0,at.zg)(()=>this._bootstrapper.appBootstrapped$),(0,q.h)(Do=>!!Do),(0,R.K)(Do=>(this._internalErrorReporter.reportErrorSafely(Do),B.E)),(0,Te.R)(this._destroy$)).subscribe(()=>this._invokeBootstrapOnStates(Hi.states))}_invokeInitOnStates(Ti){for(const Hi of Ti){const Do=Hi.instance;Do.ngxsOnChanges&&this._store.select($o=>Vt($o,Hi.path)).pipe((0,Ue.O)(void 0),(0,We.G)(),(0,Te.R)(this._destroy$)).subscribe(([$o,yr])=>{const Vr=new rn($o,yr,!Hi.isInitialised);Do.ngxsOnChanges(Vr)}),Do.ngxsOnInit&&Do.ngxsOnInit(this._getStateContext(Hi)),Hi.isInitialised=!0}}_invokeBootstrapOnStates(Ti){for(const Hi of Ti){const Do=Hi.instance;Do.ngxsAfterBootstrap&&Do.ngxsAfterBootstrap(this._getStateContext(Hi))}}_getStateContext(Ti){return this._stateContextFactory.createStateContext(Ti)}}return oi.\u0275fac=function(Ti){return new(Ti||oi)(e.LFG(In),e.LFG(Wi),e.LFG(Dn),e.LFG(Fi),e.LFG(l))},oi.\u0275prov=e.Yz7({token:oi,factory:oi.\u0275fac,providedIn:"root"}),oi})(),wi=(()=>{class oi{constructor(Ti,Hi,Do,$o,yr=[],Vr){const da=Ti.addAndReturnDefaults(yr);Hi.setStateToTheCurrentWithNew(da),Ti.connectActionHandlers(),Vr.ngxsBootstrap(new Bn,da)}}return oi.\u0275fac=function(Ti){return new(Ti||oi)(e.LFG(bt),e.LFG(Dn),e.LFG(In),e.LFG(Wr),e.LFG(tn,8),e.LFG(qi))},oi.\u0275mod=e.oAB({type:oi}),oi.\u0275inj=e.cJS({}),oi})(),zo=(()=>{class oi{constructor(Ti,Hi,Do,$o=[],yr){const Vr=oi.flattenStates($o),da=Do.addAndReturnDefaults(Vr);da.states.length&&(Hi.setStateToTheCurrentWithNew(da),yr.ngxsBootstrap(new Bi(da.defaults),da))}static flattenStates(Ti=[]){return Ti.reduce((Hi,Do)=>Hi.concat(Do),[])}}return oi.\u0275fac=function(Ti){return new(Ti||oi)(e.LFG(In),e.LFG(Dn),e.LFG(bt),e.LFG(yi,8),e.LFG(qi))},oi.\u0275mod=e.oAB({type:oi}),oi.\u0275inj=e.cJS({}),oi})(),xi=(()=>{class oi{static forRoot(Ti=[],Hi={}){return{ngModule:wi,providers:[bt,Oi,...Ti,...oi.ngxsTokenProviders(Ti,Hi)]}}static forFeature(Ti=[]){return{ngModule:zo,providers:[bt,Oi,...Ti,{provide:yi,multi:!0,useValue:Ti}]}}static ngxsTokenProviders(Ti,Hi){return[{provide:Oo,useValue:Hi.executionStrategy},{provide:tn,useValue:Ti},{provide:ct,useValue:Hi},{provide:e.tb,useFactory:oi.appBootstrapListenerFactory,multi:!0,deps:[l]},{provide:u,useExisting:Fi},{provide:x,useExisting:bt}]}static appBootstrapListenerFactory(Ti){return()=>Ti.bootstrap()}}return oi.\u0275fac=function(Ti){return new(Ti||oi)},oi.\u0275mod=e.oAB({type:oi}),oi.\u0275inj=e.cJS({}),oi})();function ki(oi,Vi){return(Ti,Hi)=>{const Do=Li(Ti.constructor);Array.isArray(oi)||(oi=[oi]);for(const $o of oi){const yr=$o.type;Do.actions[yr]||(Do.actions[yr]=[]),Do.actions[yr].push({fn:Hi,options:Vi||{},type:yr})}}}function wo(oi){return Hi=>{const Do=Hi,$o=Li(Do),yr=Object.getPrototypeOf(Do),Vr=function Vi(Hi){return Object.assign(Object.assign({},Hi[bn]||{}),oi)}(yr);(function Ti(Hi){const{meta:Do,inheritedStateClass:$o,optionsWithInheritance:yr}=Hi,{children:Vr,defaults:da,name:Za}=yr,ma="string"==typeof Za?Za:Za&&Za.getName()||null;if($o.hasOwnProperty(sn)){const Wa=$o[sn]||{};Do.actions=Object.assign(Object.assign({},Do.actions),Wa.actions)}Do.children=Vr,Do.defaults=da,Do.name=ma})({meta:$o,inheritedStateClass:yr,optionsWithInheritance:Vr}),Do[bn]=Vr}}const Ei=36;function qr(oi,...Vi){return function(Ti,Hi){const Do=Hi.toString(),$o=`__${Do}__selector`,yr=function Cr(oi,Vi,Ti=[]){return Vi=Vi||function vr(oi){const Vi=oi.length-1;return oi.charCodeAt(Vi)===Ei?oi.slice(0,Vi):oi}(oi),"string"==typeof Vi?yn(Ti.length?[Vi,...Ti]:Vi.split("."),Wr.config):Vi}(Do,oi,Vi);Object.defineProperties(Ti,{[$o]:{writable:!0,enumerable:!1,configurable:!0},[Do]:{enumerable:!0,configurable:!0,get(){return this[$o]||(this[$o]=function ho(oi){return Wr.store||function Xt(){throw new Error("You have forgotten to import the NGXS module!")}(),Wr.store.select(oi)}(yr))}}})}}},68940:(gt,X,a)=>{"use strict";a.d(X,{IM:()=>ft,IX:()=>ti,sm:()=>Y});var e=a(19212),n=a(96814);function s(Xt,Je){if(1&Xt&&e._UZ(0,"div",3),2&Xt){const dt=Je.index,Ie=e.oxw();e.Q6J("ngStyle",Ie.gridRenderer.getGridColumnStyle(dt))}}function l(Xt,Je){if(1&Xt&&e._UZ(0,"div",4),2&Xt){const dt=Je.index,Ie=e.oxw();e.Q6J("ngStyle",Ie.gridRenderer.getGridRowStyle(dt))}}const i=["*"];function t(Xt,Je){if(1&Xt){const dt=e.EpF();e.TgZ(0,"div",8),e.NdJ("mousedown",function(ot){e.CHM(dt);const ct=e.oxw();return e.KtG(ct.resize.dragStartDelay(ot))})("touchstart",function(ot){e.CHM(dt);const ct=e.oxw();return e.KtG(ct.resize.dragStartDelay(ot))}),e.qZA()}}function p(Xt,Je){if(1&Xt){const dt=e.EpF();e.TgZ(0,"div",9),e.NdJ("mousedown",function(ot){e.CHM(dt);const ct=e.oxw();return e.KtG(ct.resize.dragStartDelay(ot))})("touchstart",function(ot){e.CHM(dt);const ct=e.oxw();return e.KtG(ct.resize.dragStartDelay(ot))}),e.qZA()}}function c(Xt,Je){if(1&Xt){const dt=e.EpF();e.TgZ(0,"div",10),e.NdJ("mousedown",function(ot){e.CHM(dt);const ct=e.oxw();return e.KtG(ct.resize.dragStartDelay(ot))})("touchstart",function(ot){e.CHM(dt);const ct=e.oxw();return e.KtG(ct.resize.dragStartDelay(ot))}),e.qZA()}}function o(Xt,Je){if(1&Xt){const dt=e.EpF();e.TgZ(0,"div",11),e.NdJ("mousedown",function(ot){e.CHM(dt);const ct=e.oxw();return e.KtG(ct.resize.dragStartDelay(ot))})("touchstart",function(ot){e.CHM(dt);const ct=e.oxw();return e.KtG(ct.resize.dragStartDelay(ot))}),e.qZA()}}function x(Xt,Je){if(1&Xt){const dt=e.EpF();e.TgZ(0,"div",12),e.NdJ("mousedown",function(ot){e.CHM(dt);const ct=e.oxw();return e.KtG(ct.resize.dragStartDelay(ot))})("touchstart",function(ot){e.CHM(dt);const ct=e.oxw();return e.KtG(ct.resize.dragStartDelay(ot))}),e.qZA()}}function u(Xt,Je){if(1&Xt){const dt=e.EpF();e.TgZ(0,"div",13),e.NdJ("mousedown",function(ot){e.CHM(dt);const ct=e.oxw();return e.KtG(ct.resize.dragStartDelay(ot))})("touchstart",function(ot){e.CHM(dt);const ct=e.oxw();return e.KtG(ct.resize.dragStartDelay(ot))}),e.qZA()}}function m(Xt,Je){if(1&Xt){const dt=e.EpF();e.TgZ(0,"div",14),e.NdJ("mousedown",function(ot){e.CHM(dt);const ct=e.oxw();return e.KtG(ct.resize.dragStartDelay(ot))})("touchstart",function(ot){e.CHM(dt);const ct=e.oxw();return e.KtG(ct.resize.dragStartDelay(ot))}),e.qZA()}}function b(Xt,Je){if(1&Xt){const dt=e.EpF();e.TgZ(0,"div",15),e.NdJ("mousedown",function(ot){e.CHM(dt);const ct=e.oxw();return e.KtG(ct.resize.dragStartDelay(ot))})("touchstart",function(ot){e.CHM(dt);const ct=e.oxw();return e.KtG(ct.resize.dragStartDelay(ot))}),e.qZA()}}var I=function(Xt){return Xt.Fit="fit",Xt.ScrollVertical="scrollVertical",Xt.ScrollHorizontal="scrollHorizontal",Xt.Fixed="fixed",Xt.VerticalFixed="verticalFixed",Xt.HorizontalFixed="horizontalFixed",Xt}(I||{}),H=function(Xt){return Xt.Always="always",Xt.OnDragAndResize="onDrag&Resize",Xt.None="none",Xt}(H||{}),O=function(Xt){return Xt.None="none",Xt.CompactUp="compactUp",Xt.CompactLeft="compactLeft",Xt.CompactUpAndLeft="compactUp&Left",Xt.CompactLeftAndUp="compactLeft&Up",Xt.CompactRight="compactRight",Xt.CompactUpAndRight="compactUp&Right",Xt.CompactRightAndUp="compactRight&Up",Xt.CompactDown="compactDown",Xt.CompactDownAndLeft="compactDown&Left",Xt.CompactLeftAndDown="compactLeft&Down",Xt.CompactDownAndRight="compactDown&Right",Xt.CompactRightAndDown="compactRight&Down",Xt}(O||{}),P=function(Xt){return Xt.LTR="ltr",Xt.RTL="rtl",Xt}(P||{});class G{constructor(Je){this.gridster=Je}destroy(){delete this.gridster}checkCompact(){this.gridster.$options.compactType!==O.None&&(this.gridster.$options.compactType===O.CompactUp?this.checkCompactMovement("y",-1):this.gridster.$options.compactType===O.CompactLeft?this.checkCompactMovement("x",-1):this.gridster.$options.compactType===O.CompactUpAndLeft?(this.checkCompactMovement("y",-1),this.checkCompactMovement("x",-1)):this.gridster.$options.compactType===O.CompactLeftAndUp?(this.checkCompactMovement("x",-1),this.checkCompactMovement("y",-1)):this.gridster.$options.compactType===O.CompactRight?this.checkCompactMovement("x",1):this.gridster.$options.compactType===O.CompactUpAndRight?(this.checkCompactMovement("y",-1),this.checkCompactMovement("x",1)):this.gridster.$options.compactType===O.CompactRightAndUp?(this.checkCompactMovement("x",1),this.checkCompactMovement("y",-1)):this.gridster.$options.compactType===O.CompactDown?this.checkCompactMovement("y",1):this.gridster.$options.compactType===O.CompactDownAndLeft?(this.checkCompactMovement("y",1),this.checkCompactMovement("x",-1)):this.gridster.$options.compactType===O.CompactDownAndRight?(this.checkCompactMovement("y",1),this.checkCompactMovement("x",1)):this.gridster.$options.compactType===O.CompactLeftAndDown?(this.checkCompactMovement("x",-1),this.checkCompactMovement("y",1)):this.gridster.$options.compactType===O.CompactRightAndDown&&(this.checkCompactMovement("x",1),this.checkCompactMovement("y",1)))}checkCompactItem(Je){this.gridster.$options.compactType!==O.None&&(this.gridster.$options.compactType===O.CompactUp?this.moveTillCollision(Je,"y",-1):this.gridster.$options.compactType===O.CompactLeft?this.moveTillCollision(Je,"x",-1):this.gridster.$options.compactType===O.CompactUpAndLeft?(this.moveTillCollision(Je,"y",-1),this.moveTillCollision(Je,"x",-1)):this.gridster.$options.compactType===O.CompactLeftAndUp?(this.moveTillCollision(Je,"x",-1),this.moveTillCollision(Je,"y",-1)):this.gridster.$options.compactType===O.CompactUpAndRight?(this.moveTillCollision(Je,"y",-1),this.moveTillCollision(Je,"x",1)):this.gridster.$options.compactType===O.CompactDown?this.moveTillCollision(Je,"y",1):this.gridster.$options.compactType===O.CompactDownAndLeft?(this.moveTillCollision(Je,"y",1),this.moveTillCollision(Je,"x",-1)):this.gridster.$options.compactType===O.CompactLeftAndDown?(this.moveTillCollision(Je,"x",-1),this.moveTillCollision(Je,"y",1)):this.gridster.$options.compactType===O.CompactDownAndRight?(this.moveTillCollision(Je,"y",1),this.moveTillCollision(Je,"x",1)):this.gridster.$options.compactType===O.CompactRightAndDown&&(this.moveTillCollision(Je,"x",1),this.moveTillCollision(Je,"y",1)))}checkCompactMovement(Je,dt){let Ie=!1;this.gridster.grid.forEach(ot=>{!1!==ot.$item.compactEnabled&&this.moveTillCollision(ot.$item,Je,dt)&&(Ie=!0,ot.item[Je]=ot.$item[Je],ot.itemChanged())}),Ie&&this.checkCompact()}moveTillCollision(Je,dt,Ie){return Je[dt]+=Ie,this.gridster.checkCollision(Je)?(Je[dt]-=Ie,!1):(this.moveTillCollision(Je,dt,Ie),!0)}}const B={gridType:I.Fit,scale:1,fixedColWidth:250,fixedRowHeight:250,keepFixedHeightInMobile:!1,keepFixedWidthInMobile:!1,setGridSize:!1,compactType:O.None,mobileBreakpoint:640,allowMultiLayer:!1,defaultLayerIndex:0,maxLayerIndex:2,baseLayerIndex:1,minCols:1,maxCols:100,minRows:1,maxRows:100,defaultItemCols:1,defaultItemRows:1,maxItemCols:50,maxItemRows:50,minItemCols:1,minItemRows:1,minItemArea:1,maxItemArea:2500,rowHeightRatio:1,margin:10,outerMargin:!0,outerMarginTop:null,outerMarginRight:null,outerMarginBottom:null,outerMarginLeft:null,useTransformPositioning:!0,scrollSensitivity:10,scrollSpeed:20,initCallback:void 0,destroyCallback:void 0,gridSizeChangedCallback:void 0,itemChangeCallback:void 0,itemResizeCallback:void 0,itemInitCallback:void 0,itemRemovedCallback:void 0,itemValidateCallback:void 0,enableEmptyCellClick:!1,enableEmptyCellContextMenu:!1,enableEmptyCellDrop:!1,enableEmptyCellDrag:!1,enableOccupiedCellDrop:!1,emptyCellClickCallback:void 0,emptyCellContextMenuCallback:void 0,emptyCellDropCallback:void 0,emptyCellDragCallback:void 0,emptyCellDragMaxCols:50,emptyCellDragMaxRows:50,ignoreMarginInRow:!1,draggable:{delayStart:0,enabled:!1,ignoreContentClass:"gridster-item-content",ignoreContent:!1,dragHandleClass:"drag-handler",stop:void 0,start:void 0,dropOverItems:!1,dropOverItemsCallback:void 0},resizable:{delayStart:0,enabled:!1,handles:{s:!0,e:!0,n:!0,w:!0,se:!0,ne:!0,sw:!0,nw:!0},stop:void 0,start:void 0},swap:!0,swapWhileDragging:!1,pushItems:!1,disablePushOnDrag:!1,disablePushOnResize:!1,pushDirections:{north:!0,east:!0,south:!0,west:!0},pushResizeItems:!1,displayGrid:H.OnDragAndResize,disableWindowResize:!1,disableWarnings:!1,scrollToNewItems:!1,disableScrollHorizontal:!1,disableScrollVertical:!1,disableAutoPositionOnConflict:!1,dirType:P.LTR};class ae{static merge(Je,dt,Ie){for(const ot in dt)void 0!==dt[ot]&&Ie.hasOwnProperty(ot)&&(Je[ot]="object"==typeof dt[ot]?ae.merge(Je[ot],dt[ot],Ie[ot]):dt[ot]);return Je}static debounce(Je,dt){let Ie;return function(){const ot=this,ct=arguments;clearTimeout(Ie),Ie=setTimeout(()=>{Ie=void 0,Je.apply(ot,ct)},dt)}}static checkTouchEvent(Je){void 0===Je.clientX&&Je.touches&&(Je.touches&&Je.touches.length?(Je.clientX=Je.touches[0].clientX,Je.clientY=Je.touches[0].clientY):Je.changedTouches&&Je.changedTouches.length&&(Je.clientX=Je.changedTouches[0].clientX,Je.clientY=Je.changedTouches[0].clientY))}static checkContentClassForEvent(Je,dt){if(Je.$options.draggable.ignoreContent){if(!ae.checkDragHandleClass(dt.target,dt.currentTarget,Je.$options.draggable.dragHandleClass,Je.$options.draggable.ignoreContentClass))return!0}else if(ae.checkContentClass(dt.target,dt.currentTarget,Je.$options.draggable.ignoreContentClass))return!0;return!1}static checkContentClassForEmptyCellClickEvent(Je,dt){return ae.checkContentClass(dt.target,dt.currentTarget,Je.$options.draggable.ignoreContentClass)||ae.checkContentClass(dt.target,dt.currentTarget,Je.$options.draggable.dragHandleClass)}static checkDragHandleClass(Je,dt,Ie,ot){if(!Je||Je===dt)return!1;if(Je.hasAttribute("class")){const ct=Je.getAttribute("class").split(" ");if(ct.indexOf(Ie)>-1)return!0;if(ct.indexOf(ot)>-1)return!1}return ae.checkDragHandleClass(Je.parentNode,dt,Ie,ot)}static checkContentClass(Je,dt,Ie){return!(!Je||Je===dt)&&(!!(Je.hasAttribute("class")&&Je.getAttribute("class").split(" ").indexOf(Ie)>-1)||ae.checkContentClass(Je.parentNode,dt,Ie))}static compareItems(Je,dt){return Je.y>dt.y?-1:Je.y<dt.y?1:Je.x>dt.x?-1:1}}class J{constructor(Je){this.gridster=Je}destroy(){delete this.initialItem,delete this.gridster.movingItem,this.gridster.previewStyle&&this.gridster.previewStyle(),delete this.gridster,this.emptyCellExit&&(this.emptyCellExit(),this.emptyCellExit=null)}updateOptions(){this.gridster.$options.enableEmptyCellClick&&!this.emptyCellClick&&this.gridster.options.emptyCellClickCallback?(this.emptyCellClick=this.gridster.renderer.listen(this.gridster.el,"click",this.emptyCellClickCb.bind(this)),this.emptyCellClickTouch=this.gridster.renderer.listen(this.gridster.el,"touchend",this.emptyCellClickCb.bind(this))):!this.gridster.$options.enableEmptyCellClick&&this.emptyCellClick&&this.emptyCellClickTouch&&(this.emptyCellClick(),this.emptyCellClickTouch(),this.emptyCellClick=null,this.emptyCellClickTouch=null),this.gridster.$options.enableEmptyCellContextMenu&&!this.emptyCellContextMenu&&this.gridster.options.emptyCellContextMenuCallback?this.emptyCellContextMenu=this.gridster.renderer.listen(this.gridster.el,"contextmenu",this.emptyCellContextMenuCb.bind(this)):!this.gridster.$options.enableEmptyCellContextMenu&&this.emptyCellContextMenu&&(this.emptyCellContextMenu(),this.emptyCellContextMenu=null),this.gridster.$options.enableEmptyCellDrop&&!this.emptyCellDrop&&this.gridster.options.emptyCellDropCallback?(this.emptyCellDrop=this.gridster.renderer.listen(this.gridster.el,"drop",this.emptyCellDragDrop.bind(this)),this.gridster.zone.runOutsideAngular(()=>{this.emptyCellMove=this.gridster.renderer.listen(this.gridster.el,"dragover",this.emptyCellDragOver.bind(this))}),this.emptyCellExit=this.gridster.renderer.listen("document","dragend",()=>{this.gridster.movingItem=null,this.gridster.previewStyle()})):!this.gridster.$options.enableEmptyCellDrop&&this.emptyCellDrop&&this.emptyCellMove&&this.emptyCellExit&&(this.emptyCellDrop(),this.emptyCellMove(),this.emptyCellExit(),this.emptyCellMove=null,this.emptyCellDrop=null,this.emptyCellExit=null),this.gridster.$options.enableEmptyCellDrag&&!this.emptyCellDrag&&this.gridster.options.emptyCellDragCallback?(this.emptyCellDrag=this.gridster.renderer.listen(this.gridster.el,"mousedown",this.emptyCellMouseDown.bind(this)),this.emptyCellDragTouch=this.gridster.renderer.listen(this.gridster.el,"touchstart",this.emptyCellMouseDown.bind(this))):!this.gridster.$options.enableEmptyCellDrag&&this.emptyCellDrag&&this.emptyCellDragTouch&&(this.emptyCellDrag(),this.emptyCellDragTouch(),this.emptyCellDrag=null,this.emptyCellDragTouch=null)}emptyCellClickCb(Je){if(!this.gridster||this.gridster.movingItem||ae.checkContentClassForEmptyCellClickEvent(this.gridster,Je))return;const dt=this.getValidItemFromEvent(Je);dt&&(this.gridster.options.emptyCellClickCallback&&this.gridster.options.emptyCellClickCallback(Je,dt),this.gridster.cdRef.markForCheck())}emptyCellContextMenuCb(Je){if(this.gridster.movingItem||ae.checkContentClassForEmptyCellClickEvent(this.gridster,Je))return;Je.preventDefault(),Je.stopPropagation();const dt=this.getValidItemFromEvent(Je);dt&&(this.gridster.options.emptyCellContextMenuCallback&&this.gridster.options.emptyCellContextMenuCallback(Je,dt),this.gridster.cdRef.markForCheck())}emptyCellDragDrop(Je){const dt=this.getValidItemFromEvent(Je);dt&&(this.gridster.options.emptyCellDropCallback&&this.gridster.options.emptyCellDropCallback(Je,dt),this.gridster.cdRef.markForCheck())}emptyCellDragOver(Je){Je.preventDefault(),Je.stopPropagation();const dt=this.getValidItemFromEvent(Je);dt?(Je.dataTransfer&&(Je.dataTransfer.dropEffect="move"),this.gridster.movingItem=dt):(Je.dataTransfer&&(Je.dataTransfer.dropEffect="none"),this.gridster.movingItem=null),this.gridster.previewStyle()}emptyCellMouseDown(Je){if(ae.checkContentClassForEmptyCellClickEvent(this.gridster,Je))return;Je.preventDefault(),Je.stopPropagation();const dt=this.getValidItemFromEvent(Je);!dt||1!==Je.buttons||(this.initialItem=dt,this.gridster.movingItem=dt,this.gridster.previewStyle(),this.gridster.zone.runOutsideAngular(()=>{this.emptyCellMMove=this.gridster.renderer.listen("window","mousemove",this.emptyCellMouseMove.bind(this)),this.emptyCellMMoveTouch=this.gridster.renderer.listen("window","touchmove",this.emptyCellMouseMove.bind(this))}),this.emptyCellUp=this.gridster.renderer.listen("window","mouseup",this.emptyCellMouseUp.bind(this)),this.emptyCellUpTouch=this.gridster.renderer.listen("window","touchend",this.emptyCellMouseUp.bind(this)))}emptyCellMouseMove(Je){Je.preventDefault(),Je.stopPropagation();const dt=this.getValidItemFromEvent(Je,this.initialItem);dt&&(this.gridster.movingItem=dt,this.gridster.previewStyle())}emptyCellMouseUp(Je){this.emptyCellMMove(),this.emptyCellMMoveTouch(),this.emptyCellUp(),this.emptyCellUpTouch();const dt=this.getValidItemFromEvent(Je,this.initialItem);dt&&(this.gridster.movingItem=dt),this.gridster.options.emptyCellDragCallback&&this.gridster.movingItem&&this.gridster.options.emptyCellDragCallback(Je,this.gridster.movingItem),setTimeout(()=>{this.initialItem=null,this.gridster&&(this.gridster.movingItem=null,this.gridster.previewStyle())}),this.gridster.cdRef.markForCheck()}getPixelsX(Je,dt){const Ie=this.gridster.options.scale;return Ie?(Je.clientX-dt.left)/Ie+this.gridster.el.scrollLeft-this.gridster.gridRenderer.getLeftMargin():Je.clientX+this.gridster.el.scrollLeft-dt.left-this.gridster.gridRenderer.getLeftMargin()}getPixelsY(Je,dt){const Ie=this.gridster.options.scale;return Ie?(Je.clientY-dt.top)/Ie+this.gridster.el.scrollTop-this.gridster.gridRenderer.getTopMargin():Je.clientY+this.gridster.el.scrollTop-dt.top-this.gridster.gridRenderer.getTopMargin()}getValidItemFromEvent(Je,dt){Je.preventDefault(),Je.stopPropagation(),ae.checkTouchEvent(Je);const Ie=this.gridster.el.getBoundingClientRect(),ot=this.getPixelsX(Je,Ie),ct=this.getPixelsY(Je,Ie),tn={x:this.gridster.pixelsToPositionX(ot,Math.floor,!0),y:this.gridster.pixelsToPositionY(ct,Math.floor,!0),cols:this.gridster.$options.defaultItemCols,rows:this.gridster.$options.defaultItemRows};if(dt&&(tn.cols=Math.min(Math.abs(dt.x-tn.x)+1,this.gridster.$options.emptyCellDragMaxCols),tn.rows=Math.min(Math.abs(dt.y-tn.y)+1,this.gridster.$options.emptyCellDragMaxRows),dt.x<tn.x?tn.x=dt.x:dt.x-tn.x>this.gridster.$options.emptyCellDragMaxCols-1&&(tn.x=this.gridster.movingItem?this.gridster.movingItem.x:0),dt.y<tn.y?tn.y=dt.y:dt.y-tn.y>this.gridster.$options.emptyCellDragMaxRows-1&&(tn.y=this.gridster.movingItem?this.gridster.movingItem.y:0)),this.gridster.$options.enableOccupiedCellDrop||!this.gridster.checkCollision(tn))return tn}}class q{constructor(Je){this.gridster=Je}destroy(){delete this.gridster}updateItem(Je,dt,Ie){if(this.gridster.mobile)this.clearCellPosition(Ie,Je),Ie.setStyle(Je,"height",this.gridster.$options.keepFixedHeightInMobile?(dt.rows-1)*this.gridster.$options.margin+dt.rows*this.gridster.$options.fixedRowHeight+"px":dt.rows*this.gridster.curWidth/dt.cols+"px"),Ie.setStyle(Je,"width",this.gridster.$options.keepFixedWidthInMobile?this.gridster.$options.fixedColWidth+"px":""),Ie.setStyle(Je,"margin-bottom",this.gridster.$options.margin+"px"),Ie.setStyle(Je,P.LTR?"margin-right":"margin-left","");else{const ot=Math.round(this.gridster.curColWidth*dt.x),ct=Math.round(this.gridster.curRowHeight*dt.y),tn=this.gridster.curColWidth*dt.cols-this.gridster.$options.margin,yi=this.gridster.curRowHeight*dt.rows-this.gridster.$options.margin;this.setCellPosition(Ie,Je,ot,ct),Ie.setStyle(Je,"width",tn+"px"),Ie.setStyle(Je,"height",yi+"px");let ni=null,sn=null;this.gridster.$options.outerMargin&&(this.gridster.rows===dt.rows+dt.y&&(ni=null!==this.gridster.$options.outerMarginBottom?this.gridster.$options.outerMarginBottom+"px":this.gridster.$options.margin+"px"),this.gridster.columns===dt.cols+dt.x&&(sn=null!==this.gridster.$options.outerMarginBottom?this.gridster.$options.outerMarginRight+"px":this.gridster.$options.margin+"px")),Ie.setStyle(Je,"margin-bottom",ni),Ie.setStyle(Je,P.LTR?"margin-right":"margin-left",sn)}}updateGridster(){let Je="",dt="",Ie="",ot="";if(this.gridster.$options.gridType===I.Fit)Je=I.Fit,dt=I.ScrollVertical,Ie=I.ScrollHorizontal,ot=I.Fixed;else if(this.gridster.$options.gridType===I.ScrollVertical)this.gridster.curRowHeight=this.gridster.curColWidth*this.gridster.$options.rowHeightRatio,Je=I.ScrollVertical,dt=I.Fit,Ie=I.ScrollHorizontal,ot=I.Fixed;else if(this.gridster.$options.gridType===I.ScrollHorizontal){const ct=this.gridster.$options.rowHeightRatio;this.gridster.curColWidth=this.gridster.curRowHeight*(ct>=1?ct:ct+1),Je=I.ScrollHorizontal,dt=I.Fit,Ie=I.ScrollVertical,ot=I.Fixed}else this.gridster.$options.gridType===I.Fixed?(this.gridster.curColWidth=this.gridster.$options.fixedColWidth+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),this.gridster.curRowHeight=this.gridster.$options.fixedRowHeight+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),Je=I.Fixed,dt=I.Fit,Ie=I.ScrollVertical,ot=I.ScrollHorizontal):this.gridster.$options.gridType===I.VerticalFixed?(this.gridster.curRowHeight=this.gridster.$options.fixedRowHeight+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),Je=I.ScrollVertical,dt=I.Fit,Ie=I.ScrollHorizontal,ot=I.Fixed):this.gridster.$options.gridType===I.HorizontalFixed&&(this.gridster.curColWidth=this.gridster.$options.fixedColWidth+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),Je=I.ScrollHorizontal,dt=I.Fit,Ie=I.ScrollVertical,ot=I.Fixed);this.gridster.mobile||this.gridster.$options.setGridSize&&this.gridster.$options.gridType!==I.Fit?this.gridster.renderer.removeClass(this.gridster.el,Je):this.gridster.renderer.addClass(this.gridster.el,Je),this.gridster.renderer.removeClass(this.gridster.el,dt),this.gridster.renderer.removeClass(this.gridster.el,Ie),this.gridster.renderer.removeClass(this.gridster.el,ot)}getGridColumnStyle(Je){return Object.assign(Object.assign({},this.getLeftPosition(this.gridster.curColWidth*Je)),{width:this.gridster.curColWidth-this.gridster.$options.margin+"px",height:this.gridster.gridRows.length*this.gridster.curRowHeight-this.gridster.$options.margin+"px"})}getGridRowStyle(Je){return Object.assign(Object.assign({},this.getTopPosition(this.gridster.curRowHeight*Je)),{width:this.gridster.gridColumns.length*this.gridster.curColWidth-this.gridster.$options.margin+"px",height:this.gridster.curRowHeight-this.gridster.$options.margin+"px"})}getLeftPosition(Je){const dt=this.gridster.$options.dirType===P.RTL?-Je:Je;return this.gridster.$options.useTransformPositioning?{transform:"translateX("+dt+"px)"}:{left:this.getLeftMargin()+dt+"px"}}getTopPosition(Je){return this.gridster.$options.useTransformPositioning?{transform:"translateY("+Je+"px)"}:{top:this.getTopMargin()+Je+"px"}}clearCellPosition(Je,dt){this.gridster.$options.useTransformPositioning?Je.setStyle(dt,"transform",""):(Je.setStyle(dt,"top",""),Je.setStyle(dt,"left",""))}setCellPosition(Je,dt,Ie,ot){const ct=this.gridster.$options.dirType===P.RTL?-Ie:Ie;this.gridster.$options.useTransformPositioning?Je.setStyle(dt,"transform","translate3d("+ct+"px, "+ot+"px, 0)"):(Je.setStyle(dt,"left",this.getLeftMargin()+ct+"px"),Je.setStyle(dt,"top",this.getTopMargin()+ot+"px"))}getLeftMargin(){return this.gridster.$options.outerMargin?null!==this.gridster.$options.outerMarginLeft?this.gridster.$options.outerMarginLeft:this.gridster.$options.margin:0}getTopMargin(){return this.gridster.$options.outerMargin?null!==this.gridster.$options.outerMarginTop?this.gridster.$options.outerMarginTop:this.gridster.$options.margin:0}}let ne,ee,j=(()=>{class Xt{constructor(dt,Ie){this.renderer=Ie,this.el=dt.nativeElement}ngOnInit(){this.sub=this.previewStyle$.subscribe(dt=>this.previewStyle(dt))}ngOnDestroy(){this.sub.unsubscribe(),delete this.el}previewStyle(dt){dt?(this.renderer.setStyle(this.el,"display","block"),this.gridRenderer.updateItem(this.el,dt,this.renderer)):this.renderer.setStyle(this.el,"display","")}}return Xt.\u0275fac=function(dt){return new(dt||Xt)(e.Y36(e.SBq),e.Y36(e.Qsj))},Xt.\u0275cmp=e.Xpm({type:Xt,selectors:[["gridster-preview"]],inputs:{previewStyle$:"previewStyle$",gridRenderer:"gridRenderer"},decls:0,vars:0,template:function(dt,Ie){},styles:["gridster-preview{position:absolute;display:none;background:rgba(0,0,0,.15)}\n"],encapsulation:2}),Xt})(),Y=(()=>{class Xt{constructor(dt,Ie,ot,ct){this.renderer=Ie,this.cdRef=ot,this.zone=ct,this.columns=0,this.rows=0,this.gridColumns=[],this.gridRows=[],this.previewStyle$=new e.vpe,this.el=dt.nativeElement,this.$options=JSON.parse(JSON.stringify(B)),this.calculateLayoutDebounce=ae.debounce(this.calculateLayout.bind(this),0),this.mobile=!1,this.curWidth=0,this.curHeight=0,this.grid=[],this.curColWidth=0,this.curRowHeight=0,this.dragInProgress=!1,this.emptyCell=new J(this),this.compact=new G(this),this.gridRenderer=new q(this)}static checkCollisionTwoItemsForSwaping(dt,Ie){return dt.x+(1===dt.cols?0:1)<Ie.x+Ie.cols&&dt.x+dt.cols>Ie.x+(1===Ie.cols?0:1)&&dt.y+(1===dt.rows?0:1)<Ie.y+Ie.rows&&dt.y+dt.rows>Ie.y+(1===Ie.rows?0:1)}checkCollisionTwoItems(dt,Ie){if(!(dt.x<Ie.x+Ie.cols&&dt.x+dt.cols>Ie.x&&dt.y<Ie.y+Ie.rows&&dt.y+dt.rows>Ie.y))return!1;if(!this.$options.allowMultiLayer)return!0;const ct=this.$options.defaultLayerIndex;return(void 0===dt.layerIndex?ct:dt.layerIndex)===(void 0===Ie.layerIndex?ct:Ie.layerIndex)}ngOnInit(){this.options.initCallback&&this.options.initCallback(this)}ngOnChanges(dt){dt.options&&(this.setOptions(),this.options.api={optionsChanged:this.optionsChanged.bind(this),resize:this.onResize.bind(this),getNextPossiblePosition:this.getNextPossiblePosition.bind(this),getFirstPossiblePosition:this.getFirstPossiblePosition.bind(this),getLastPossiblePosition:this.getLastPossiblePosition.bind(this),getItemComponent:Ie=>this.getItemComponent(Ie)},this.columns=this.$options.minCols,this.rows=this.$options.minRows,this.setGridSize(),this.calculateLayout())}resize(){let dt,Ie;"fit"!==this.$options.gridType||this.mobile?(Ie=this.el.clientWidth,dt=this.el.clientHeight):(Ie=this.el.offsetWidth,dt=this.el.offsetHeight),(Ie!==this.curWidth||dt!==this.curHeight)&&this.checkIfToResize()&&this.onResize()}setOptions(){this.$options=ae.merge(this.$options,this.options,this.$options),this.$options.disableWindowResize||this.windowResize?this.$options.disableWindowResize&&this.windowResize&&(this.windowResize(),this.windowResize=null):this.windowResize=this.renderer.listen("window","resize",this.onResize.bind(this)),this.emptyCell.updateOptions()}optionsChanged(){this.setOptions();let Ie,dt=this.grid.length-1;for(;dt>=0;dt--)Ie=this.grid[dt],Ie.updateOptions();this.calculateLayout()}ngOnDestroy(){this.previewStyle$.complete(),this.windowResize&&this.windowResize(),this.options&&this.options.destroyCallback&&this.options.destroyCallback(this),this.options&&this.options.api&&(this.options.api.resize=void 0,this.options.api.optionsChanged=void 0,this.options.api.getNextPossiblePosition=void 0,this.options.api=void 0),this.emptyCell.destroy(),delete this.emptyCell,this.compact.destroy(),delete this.compact}onResize(){this.el.clientWidth&&(this.options.setGridSize&&(this.renderer.setStyle(this.el,"width",""),this.renderer.setStyle(this.el,"height","")),this.setGridSize(),this.calculateLayout())}checkIfToResize(){const dt=this.el.clientWidth,Ie=this.el.offsetWidth,ot=this.el.scrollWidth,ct=this.el.clientHeight,tn=this.el.offsetHeight,yi=this.el.scrollHeight;return!(dt<Ie&&yi>tn&&yi-tn<Ie-dt||ct<tn&&ot>Ie&&ot-Ie<tn-ct)}setGridSize(){const dt=this.el;let Ie,ot;this.$options.setGridSize||this.$options.gridType===I.Fit&&!this.mobile?(Ie=dt.offsetWidth,ot=dt.offsetHeight):(Ie=dt.clientWidth,ot=dt.clientHeight),this.curWidth=Ie,this.curHeight=ot}setGridDimensions(){this.setGridSize(),!this.mobile&&this.$options.mobileBreakpoint>this.curWidth?(this.mobile=!this.mobile,this.renderer.addClass(this.el,"mobile")):this.mobile&&this.$options.mobileBreakpoint<this.curWidth&&(this.mobile=!this.mobile,this.renderer.removeClass(this.el,"mobile"));let ct,dt=this.$options.minRows,Ie=this.$options.minCols,ot=this.grid.length-1;for(;ot>=0;ot--)ct=this.grid[ot],ct.notPlaced||(dt=Math.max(dt,ct.$item.y+ct.$item.rows),Ie=Math.max(Ie,ct.$item.x+ct.$item.cols));(this.columns!==Ie||this.rows!==dt)&&(this.columns=Ie,this.rows=dt,this.options.gridSizeChangedCallback&&this.options.gridSizeChangedCallback(this))}calculateLayout(){if(this.compact&&this.compact.checkCompact(),this.setGridDimensions(),this.$options.outerMargin){let ot=-this.$options.margin;null!==this.$options.outerMarginLeft?(ot+=this.$options.outerMarginLeft,this.renderer.setStyle(this.el,"padding-left",this.$options.outerMarginLeft+"px")):(ot+=this.$options.margin,this.renderer.setStyle(this.el,"padding-left",this.$options.margin+"px")),null!==this.$options.outerMarginRight?(ot+=this.$options.outerMarginRight,this.renderer.setStyle(this.el,"padding-right",this.$options.outerMarginRight+"px")):(ot+=this.$options.margin,this.renderer.setStyle(this.el,"padding-right",this.$options.margin+"px")),this.curColWidth=(this.curWidth-ot)/this.columns;let ct=-this.$options.margin;null!==this.$options.outerMarginTop?(ct+=this.$options.outerMarginTop,this.renderer.setStyle(this.el,"padding-top",this.$options.outerMarginTop+"px")):(ct+=this.$options.margin,this.renderer.setStyle(this.el,"padding-top",this.$options.margin+"px")),null!==this.$options.outerMarginBottom?(ct+=this.$options.outerMarginBottom,this.renderer.setStyle(this.el,"padding-bottom",this.$options.outerMarginBottom+"px")):(ct+=this.$options.margin,this.renderer.setStyle(this.el,"padding-bottom",this.$options.margin+"px")),this.curRowHeight=(this.curHeight-ct)/this.rows*this.$options.rowHeightRatio}else this.curColWidth=(this.curWidth+this.$options.margin)/this.columns,this.curRowHeight=(this.curHeight+this.$options.margin)/this.rows*this.$options.rowHeightRatio,this.renderer.setStyle(this.el,"padding-left","0px"),this.renderer.setStyle(this.el,"padding-right","0px"),this.renderer.setStyle(this.el,"padding-top","0px"),this.renderer.setStyle(this.el,"padding-bottom","0px");this.gridRenderer.updateGridster(),this.$options.setGridSize?(this.renderer.addClass(this.el,"gridSize"),this.mobile||(this.renderer.setStyle(this.el,"width",this.columns*this.curColWidth+this.$options.margin+"px"),this.renderer.setStyle(this.el,"height",this.rows*this.curRowHeight+this.$options.margin+"px"))):(this.renderer.removeClass(this.el,"gridSize"),this.renderer.setStyle(this.el,"width",""),this.renderer.setStyle(this.el,"height","")),this.updateGrid();let Ie,dt=this.grid.length-1;for(;dt>=0;dt--)Ie=this.grid[dt],Ie.setSize(),Ie.drag.toggle(),Ie.resize.toggle();setTimeout(this.resize.bind(this),100)}updateGrid(){"always"!==this.$options.displayGrid||this.mobile?"onDrag&Resize"===this.$options.displayGrid&&this.dragInProgress?this.renderer.addClass(this.el,"display-grid"):("none"===this.$options.displayGrid||!this.dragInProgress||this.mobile)&&this.renderer.removeClass(this.el,"display-grid"):this.renderer.addClass(this.el,"display-grid"),this.setGridDimensions(),this.gridColumns.length=Xt.getNewArrayLength(this.columns,this.curWidth,this.curColWidth),this.gridRows.length=Xt.getNewArrayLength(this.rows,this.curHeight,this.curRowHeight),this.cdRef.markForCheck()}addItem(dt){void 0===dt.$item.cols&&(dt.$item.cols=this.$options.defaultItemCols,dt.item.cols=dt.$item.cols,dt.itemChanged()),void 0===dt.$item.rows&&(dt.$item.rows=this.$options.defaultItemRows,dt.item.rows=dt.$item.rows,dt.itemChanged()),-1===dt.$item.x||-1===dt.$item.y?this.autoPositionItem(dt):this.checkCollision(dt.$item)&&(this.$options.disableWarnings||(dt.notPlaced=!0,console.warn("Can't be placed in the bounds of the dashboard, trying to auto position!/n"+JSON.stringify(dt.item,["cols","rows","x","y"]))),this.$options.disableAutoPositionOnConflict?dt.notPlaced=!0:this.autoPositionItem(dt)),this.grid.push(dt),this.calculateLayoutDebounce()}removeItem(dt){this.grid.splice(this.grid.indexOf(dt),1),this.calculateLayoutDebounce(),this.options.itemRemovedCallback&&this.options.itemRemovedCallback(dt.item,dt)}checkCollision(dt){let Ie=!1;if(this.options.itemValidateCallback&&(Ie=!this.options.itemValidateCallback(dt)),!Ie&&this.checkGridCollision(dt)&&(Ie=!0),!Ie){const ot=this.findItemWithItem(dt);ot&&(Ie=ot)}return Ie}checkGridCollision(dt){const ii=dt.cols*dt.rows;return!(dt.y>-1&&dt.x>-1&&dt.cols+dt.x<=this.$options.maxCols&&dt.rows+dt.y<=this.$options.maxRows&&dt.cols<=(void 0===dt.maxItemCols?this.$options.maxItemCols:dt.maxItemCols)&&dt.cols>=(void 0===dt.minItemCols?this.$options.minItemCols:dt.minItemCols)&&dt.rows<=(void 0===dt.maxItemRows?this.$options.maxItemRows:dt.maxItemRows)&&dt.rows>=(void 0===dt.minItemRows?this.$options.minItemRows:dt.minItemRows)&&(void 0===dt.minItemArea?this.$options.minItemArea:dt.minItemArea)<=ii&&(void 0===dt.maxItemArea?this.$options.maxItemArea:dt.maxItemArea)>=ii)}findItemWithItem(dt){let ot,Ie=0;for(;Ie<this.grid.length;Ie++)if(ot=this.grid[Ie],ot.$item!==dt&&this.checkCollisionTwoItems(ot.$item,dt))return ot;return!1}findItemsWithItem(dt){const Ie=[];let ct,ot=0;for(;ot<this.grid.length;ot++)ct=this.grid[ot],ct.$item!==dt&&this.checkCollisionTwoItems(ct.$item,dt)&&Ie.push(ct);return Ie}autoPositionItem(dt){this.getNextPossiblePosition(dt.$item)?(dt.notPlaced=!1,dt.item.x=dt.$item.x,dt.item.y=dt.$item.y,dt.itemChanged()):(dt.notPlaced=!0,this.$options.disableWarnings||console.warn("Can't be placed in the bounds of the dashboard!/n"+JSON.stringify(dt.item,["cols","rows","x","y"])))}getNextPossiblePosition(dt,Ie={}){-1===dt.cols&&(dt.cols=this.$options.defaultItemCols),-1===dt.rows&&(dt.rows=this.$options.defaultItemRows),this.setGridDimensions();let ct,ot=Ie.y||0;for(;ot<this.rows;ot++)for(dt.y=ot,ct=Ie.x||0;ct<this.columns;ct++)if(dt.x=ct,!this.checkCollision(dt))return!0;const tn=this.$options.maxRows>=this.rows+dt.rows;return this.rows<=this.columns&&tn||!(this.$options.maxCols>=this.columns+dt.cols)?!!tn&&(dt.y=this.rows,dt.x=0,!0):(dt.x=this.columns,dt.y=0,!0)}getFirstPossiblePosition(dt){const Ie=Object.assign({},dt);return this.getNextPossiblePosition(Ie),Ie}getLastPossiblePosition(dt){let Ie={y:0,x:0};Ie=this.grid.reduce((ct,tn)=>{const yi={y:tn.$item.y+tn.$item.rows-1,x:tn.$item.x+tn.$item.cols-1};return 1===ae.compareItems(ct,yi)?yi:ct},Ie);const ot=Object.assign({},dt);return this.getNextPossiblePosition(ot,Ie),ot}pixelsToPositionX(dt,Ie,ot){const ct=Ie(dt/this.curColWidth);return ot?ct:Math.max(ct,0)}pixelsToPositionY(dt,Ie,ot){const ct=Ie(dt/this.curRowHeight);return ot?ct:Math.max(ct,0)}positionXToPixels(dt){return dt*this.curColWidth}positionYToPixels(dt){return dt*this.curRowHeight}getItemComponent(dt){return this.grid.find(Ie=>Ie.item===dt)}checkCollisionForSwaping(dt){let Ie=!1;if(this.options.itemValidateCallback&&(Ie=!this.options.itemValidateCallback(dt)),!Ie&&this.checkGridCollision(dt)&&(Ie=!0),!Ie){const ot=this.findItemWithItemForSwapping(dt);ot&&(Ie=ot)}return Ie}findItemWithItemForSwapping(dt){let ot,Ie=this.grid.length-1;for(;Ie>-1;Ie--)if(ot=this.grid[Ie],ot.$item!==dt&&Xt.checkCollisionTwoItemsForSwaping(ot.$item,dt))return ot;return!1}previewStyle(dt=!1){this.movingItem?(this.compact&&dt&&this.compact.checkCompactItem(this.movingItem),this.previewStyle$.next(this.movingItem)):this.previewStyle$.next()}static getNewArrayLength(dt,Ie,ot){const ct=Math.max(dt,Math.floor(Ie/ot));return ct<0?0:Number.isFinite(ct)?Math.floor(ct):0}}return Xt.\u0275fac=function(dt){return new(dt||Xt)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(e.R0b))},Xt.\u0275cmp=e.Xpm({type:Xt,selectors:[["gridster"]],inputs:{options:"options"},features:[e.TTD],ngContentSelectors:i,decls:4,vars:4,consts:[["class","gridster-column",3,"ngStyle",4,"ngFor","ngForOf"],["class","gridster-row",3,"ngStyle",4,"ngFor","ngForOf"],[1,"gridster-preview",3,"gridRenderer","previewStyle$"],[1,"gridster-column",3,"ngStyle"],[1,"gridster-row",3,"ngStyle"]],template:function(dt,Ie){1&dt&&(e.F$t(),e.YNc(0,s,1,1,"div",0)(1,l,1,1,"div",1),e.Hsn(2),e._UZ(3,"gridster-preview",2)),2&dt&&(e.Q6J("ngForOf",Ie.gridColumns),e.xp6(),e.Q6J("ngForOf",Ie.gridRows),e.xp6(2),e.Q6J("gridRenderer",Ie.gridRenderer)("previewStyle$",Ie.previewStyle$))},dependencies:[j,n.sg,n.PC],styles:["gridster{position:relative;box-sizing:border-box;background:grey;width:100%;height:100%;-webkit-user-select:none;user-select:none;display:block}gridster.fit{overflow-x:hidden;overflow-y:hidden}gridster.scrollVertical{overflow-x:hidden;overflow-y:auto}gridster.scrollHorizontal{overflow-x:auto;overflow-y:hidden}gridster.fixed{overflow:auto}gridster.mobile{overflow-x:hidden;overflow-y:auto}gridster.mobile gridster-item{position:relative}gridster.gridSize{height:initial;width:initial}gridster.gridSize.fit{height:100%;width:100%}gridster .gridster-column,gridster .gridster-row{position:absolute;display:none;transition:.3s;box-sizing:border-box}gridster.display-grid .gridster-column,gridster.display-grid .gridster-row{display:block}gridster .gridster-column{border-left:1px solid white;border-right:1px solid white}gridster .gridster-row{border-top:1px solid white;border-bottom:1px solid white}\n"],encapsulation:2}),Xt})();class K{constructor(Je){this.iteration=0,this.pushedItems=[],this.pushedItemsTemp=[],this.pushedItemsTempPath=[],this.pushedItemsPath=[],this.gridsterItem=Je,this.gridster=Je.gridster,this.tryPattern={fromEast:[this.tryWest,this.trySouth,this.tryNorth,this.tryEast],fromWest:[this.tryEast,this.trySouth,this.tryNorth,this.tryWest],fromNorth:[this.trySouth,this.tryEast,this.tryWest,this.tryNorth],fromSouth:[this.tryNorth,this.tryEast,this.tryWest,this.trySouth]},this.fromSouth="fromSouth",this.fromNorth="fromNorth",this.fromEast="fromEast",this.fromWest="fromWest"}destroy(){delete this.gridster,delete this.gridsterItem}pushItems(Je,dt){if(this.gridster.$options.pushItems&&!dt){this.pushedItemsOrder=[],this.iteration=0;const Ie=this.push(this.gridsterItem,Je);return Ie||this.restoreTempItems(),this.pushedItemsOrder=[],this.pushedItemsTemp=[],this.pushedItemsTempPath=[],Ie}return!1}restoreTempItems(){let Je=this.pushedItemsTemp.length-1;for(;Je>-1;Je--)this.removeFromTempPushed(this.pushedItemsTemp[Je])}restoreItems(){let Je=0;const dt=this.pushedItems.length;let Ie;for(;Je<dt;Je++)Ie=this.pushedItems[Je],Ie.$item.x=Ie.item.x||0,Ie.$item.y=Ie.item.y||0,Ie.setSize();this.pushedItems=[],this.pushedItemsPath=[]}setPushedItems(){let Je=0;const dt=this.pushedItems.length;let Ie;for(;Je<dt;Je++)Ie=this.pushedItems[Je],Ie.checkItemChanges(Ie.$item,Ie.item);this.pushedItems=[],this.pushedItemsPath=[]}checkPushBack(){let Je=this.pushedItems.length-1,dt=!1;for(;Je>-1;Je--)this.checkPushedItem(this.pushedItems[Je],Je)&&(dt=!0);dt&&this.checkPushBack()}push(Je,dt){if(this.iteration>100)return console.warn("max iteration reached"),!1;if(this.gridster.checkGridCollision(Je.$item)||""===dt)return!1;const Ie=this.gridster.findItemsWithItem(Je.$item),ot=dt===this.fromNorth||dt===this.fromWest;Ie.sort((sn,bn)=>ot?bn.$item.y-sn.$item.y||bn.$item.x-sn.$item.x:sn.$item.y-bn.$item.y||sn.$item.x-bn.$item.x);let tn,ct=0,yi=!0;const ni=[];for(;ct<Ie.length;ct++){if(tn=Ie[ct],tn===this.gridsterItem)continue;if(!tn.canBeDragged()){yi=!1;break}const sn=this.pushedItemsTemp.indexOf(tn);if(sn>-1&&this.pushedItemsTempPath[sn].length>10){yi=!1;break}if(this.tryPattern[dt][0].call(this,tn,Je))this.pushedItemsOrder.push(tn),ni.push(tn);else if(this.tryPattern[dt][1].call(this,tn,Je))this.pushedItemsOrder.push(tn),ni.push(tn);else if(this.tryPattern[dt][2].call(this,tn,Je))this.pushedItemsOrder.push(tn),ni.push(tn);else{if(!this.tryPattern[dt][3].call(this,tn,Je)){yi=!1;break}this.pushedItemsOrder.push(tn),ni.push(tn)}}if(!yi&&(ct=this.pushedItemsOrder.lastIndexOf(ni[0]),ct>-1)){let sn=this.pushedItemsOrder.length-1;for(;sn>=ct;sn--)tn=this.pushedItemsOrder[sn],this.pushedItemsOrder.pop(),this.removeFromTempPushed(tn),this.removeFromPushedItem(tn)}return this.iteration++,yi}trySouth(Je,dt){return!!this.gridster.$options.pushDirections.south&&(this.addToTempPushed(Je),Je.$item.y=dt.$item.y+dt.$item.rows,this.push(Je,this.fromNorth)?(Je.setSize(),this.addToPushed(Je),!0):(this.removeFromTempPushed(Je),!1))}tryNorth(Je,dt){return!!this.gridster.$options.pushDirections.north&&(this.addToTempPushed(Je),Je.$item.y=dt.$item.y-Je.$item.rows,this.push(Je,this.fromSouth)?(Je.setSize(),this.addToPushed(Je),!0):(this.removeFromTempPushed(Je),!1))}tryEast(Je,dt){return!!this.gridster.$options.pushDirections.east&&(this.addToTempPushed(Je),Je.$item.x=dt.$item.x+dt.$item.cols,this.push(Je,this.fromWest)?(Je.setSize(),this.addToPushed(Je),!0):(this.removeFromTempPushed(Je),!1))}tryWest(Je,dt){return!!this.gridster.$options.pushDirections.west&&(this.addToTempPushed(Je),Je.$item.x=dt.$item.x-Je.$item.cols,this.push(Je,this.fromEast)?(Je.setSize(),this.addToPushed(Je),!0):(this.removeFromTempPushed(Je),!1))}addToTempPushed(Je){let dt=this.pushedItemsTemp.indexOf(Je);-1===dt&&(dt=this.pushedItemsTemp.push(Je)-1,this.pushedItemsTempPath[dt]=[]),this.pushedItemsTempPath[dt].push({x:Je.$item.x,y:Je.$item.y})}removeFromTempPushed(Je){const dt=this.pushedItemsTemp.indexOf(Je),Ie=this.pushedItemsTempPath[dt].pop();Ie&&(Je.$item.x=Ie.x,Je.$item.y=Ie.y,Je.setSize(),this.pushedItemsTempPath[dt].length||(this.pushedItemsTemp.splice(dt,1),this.pushedItemsTempPath.splice(dt,1)))}addToPushed(Je){if(this.pushedItems.indexOf(Je)<0)this.pushedItems.push(Je),this.pushedItemsPath.push([{x:Je.item.x||0,y:Je.item.y||0},{x:Je.$item.x,y:Je.$item.y}]);else{const dt=this.pushedItems.indexOf(Je);this.pushedItemsPath[dt].push({x:Je.$item.x,y:Je.$item.y})}}removeFromPushed(Je){Je>-1&&(this.pushedItems.splice(Je,1),this.pushedItemsPath.splice(Je,1))}removeFromPushedItem(Je){const dt=this.pushedItems.indexOf(Je);dt>-1&&(this.pushedItemsPath[dt].pop(),this.pushedItemsPath.length||(this.pushedItems.splice(dt,1),this.pushedItemsPath.splice(dt,1)))}checkPushedItem(Je,dt){const Ie=this.pushedItemsPath[dt];let ct,tn,yi,ot=Ie.length-2,ni=!1;for(;ot>-1;ot--)ct=Ie[ot],tn=Je.$item.x,yi=Je.$item.y,Je.$item.x=ct.x,Je.$item.y=ct.y,this.gridster.findItemWithItem(Je.$item)?(Je.$item.x=tn,Je.$item.y=yi):(Je.setSize(),Ie.splice(ot+1,Ie.length-ot-1),ni=!0);return Ie.length<2&&this.removeFromPushed(dt),ni}}const $=50;let ue,ge,Ke,at,Le,R,Te;function me(Xt,Je,dt,Ie,ot,ct,tn,yi,ni,sn){ne=Xt.$options.scrollSensitivity,ee=Xt.$options.scrollSpeed,ue=Xt.el,ge=ni,Ke=sn;const bn=ue.offsetWidth,nn=ue.scrollLeft,rn=ue.scrollTop,ii=dt-rn;if(!Xt.$options.disableScrollVertical)if(tn.clientY<ct.clientY&&ue.offsetHeight+rn-dt-ot<ne){if(Z(),ge&&Ke&&!Ke.s||Te)return;Te=Se(1,yi,tn)}else if(tn.clientY>ct.clientY&&rn>0&&ii<ne){if(r(),ge&&Ke&&!Ke.n||R)return;R=Se(-1,yi,tn)}else tn.clientY!==ct.clientY&&Et();const Li=Je-nn;if(!Xt.$options.disableScrollHorizontal)if(tn.clientX<ct.clientX&&nn+bn-Je-Ie<=ne){if(Vt(),ge&&Ke&&!Ke.e||at)return;at=Ue(1,yi,tn)}else if(tn.clientX>ct.clientX&&nn>0&&Li<ne){if(lt(),ge&&Ke&&!Ke.w||Le)return;Le=Ue(-1,yi,tn)}else tn.clientX!==ct.clientX&&et()}function Se(Xt,Je,dt){let Ie=dt.clientY;return setInterval(()=>{(!ue||-1===Xt&&ue.scrollTop-ee<0)&&Et(),ue.scrollTop+=Xt*ee,Ie+=Xt*ee,Je({clientX:dt.clientX,clientY:Ie})},$)}function Ue(Xt,Je,dt){let Ie=dt.clientX;return setInterval(()=>{(!ue||-1===Xt&&ue.scrollLeft-ee<0)&&et(),ue.scrollLeft+=Xt*ee,Ie+=Xt*ee,Je({clientX:Ie,clientY:dt.clientY})},$)}function We(){et(),Et(),ue=null}function et(){lt(),Vt()}function Et(){Z(),r()}function lt(){at&&(clearInterval(at),at=0)}function Vt(){Le&&(clearInterval(Le),Le=0)}function r(){Te&&(clearInterval(Te),Te=0)}function Z(){R&&(clearInterval(R),R=0)}class Pt{constructor(Je){this.gridsterItem=Je,this.gridster=Je.gridster}destroy(){delete this.gridster,delete this.gridsterItem,delete this.swapedItem}swapItems(){this.gridster.$options.swap&&(this.checkSwapBack(),this.checkSwap(this.gridsterItem))}checkSwapBack(){if(this.swapedItem){const Je=this.swapedItem.$item.x,dt=this.swapedItem.$item.y;this.swapedItem.$item.x=this.swapedItem.item.x||0,this.swapedItem.$item.y=this.swapedItem.item.y||0,this.gridster.checkCollision(this.swapedItem.$item)?(this.swapedItem.$item.x=Je,this.swapedItem.$item.y=dt):(this.swapedItem.setSize(),this.gridsterItem.$item.x=this.gridsterItem.item.x||0,this.gridsterItem.$item.y=this.gridsterItem.item.y||0,this.swapedItem=void 0)}}restoreSwapItem(){this.swapedItem&&(this.swapedItem.$item.x=this.swapedItem.item.x||0,this.swapedItem.$item.y=this.swapedItem.item.y||0,this.swapedItem.setSize(),this.swapedItem=void 0)}setSwapItem(){this.swapedItem&&(this.swapedItem.checkItemChanges(this.swapedItem.$item,this.swapedItem.item),this.swapedItem=void 0)}checkSwap(Je){let dt;if(dt=this.gridster.$options.swapWhileDragging?this.gridster.checkCollisionForSwaping(Je.$item):this.gridster.checkCollision(Je.$item),dt&&!0!==dt&&dt.canBeDragged()){const Ie=dt,ot=Ie.$item.x,ct=Ie.$item.y,tn=Je.$item.x,yi=Je.$item.y,ni=tn-ot,sn=yi-ct;Ie.$item.x=Je.item.x-ni,Ie.$item.y=Je.item.y-sn,Je.$item.x=Ie.item.x+ni,Je.$item.y=Ie.item.y+sn,this.gridster.checkCollision(Ie.$item)||this.gridster.checkCollision(Je.$item)?(Je.$item.x=tn,Je.$item.y=yi,Ie.$item.x=ot,Ie.$item.y=ct):(Ie.setSize(),this.swapedItem=Ie,this.gridster.$options.swapWhileDragging&&(this.gridsterItem.checkItemChanges(this.gridsterItem.$item,this.gridsterItem.item),this.setSwapItem()))}}}class Oe{constructor(Je,dt,Ie){this.zone=Ie,this.collision=!1,this.gridsterItem=Je,this.gridster=dt,this.lastMouse={clientX:0,clientY:0},this.path=[]}destroy(){this.gridster.previewStyle&&this.gridster.previewStyle(!0),delete this.gridsterItem,delete this.gridster,delete this.collision,this.mousedown&&(this.mousedown(),this.touchstart())}dragStart(Je){Je.which&&1!==Je.which||(this.gridster.options.draggable&&this.gridster.options.draggable.start&&this.gridster.options.draggable.start(this.gridsterItem.item,this.gridsterItem,Je),Je.stopPropagation(),Je.preventDefault(),this.dragFunction=this.dragMove.bind(this),this.dragStopFunction=this.dragStop.bind(this),this.zone.runOutsideAngular(()=>{this.mousemove=this.gridsterItem.renderer.listen("document","mousemove",this.dragFunction),this.touchmove=this.gridster.renderer.listen(this.gridster.el,"touchmove",this.dragFunction)}),this.mouseup=this.gridsterItem.renderer.listen("document","mouseup",this.dragStopFunction),this.mouseleave=this.gridsterItem.renderer.listen("document","mouseleave",this.dragStopFunction),this.cancelOnBlur=this.gridsterItem.renderer.listen("window","blur",this.dragStopFunction),this.touchend=this.gridsterItem.renderer.listen("document","touchend",this.dragStopFunction),this.touchcancel=this.gridsterItem.renderer.listen("document","touchcancel",this.dragStopFunction),this.gridsterItem.renderer.addClass(this.gridsterItem.el,"gridster-item-moving"),this.margin=this.gridster.$options.margin,this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,this.left=this.gridsterItem.left-this.margin,this.top=this.gridsterItem.top-this.margin,this.originalClientX=Je.clientX,this.originalClientY=Je.clientY,this.width=this.gridsterItem.width,this.height=this.gridsterItem.height,this.diffLeft=this.gridster.$options.dirType===P.RTL?Je.clientX-this.gridster.el.scrollWidth+this.gridsterItem.left:Je.clientX+this.offsetLeft-this.margin-this.left,this.diffTop=Je.clientY+this.offsetTop-this.margin-this.top,this.gridster.movingItem=this.gridsterItem.$item,this.gridster.previewStyle(!0),this.push=new K(this.gridsterItem),this.swap=new Pt(this.gridsterItem),this.gridster.dragInProgress=!0,this.gridster.updateGrid(),this.path.push({x:this.gridsterItem.item.x||0,y:this.gridsterItem.item.y||0}))}dragMove(Je){Je.stopPropagation(),Je.preventDefault(),ae.checkTouchEvent(Je),this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,me(this.gridster,this.left,this.top,this.width,this.height,Je,this.lastMouse,this.calculateItemPositionFromMousePosition.bind(this)),this.calculateItemPositionFromMousePosition(Je)}calculateItemPositionFromMousePosition(Je){this.gridster.options.scale?this.calculateItemPositionWithScale(Je,this.gridster.options.scale):this.calculateItemPositionWithoutScale(Je),this.calculateItemPosition(),this.lastMouse.clientX=Je.clientX,this.lastMouse.clientY=Je.clientY,this.zone.run(()=>{this.gridster.updateGrid()})}calculateItemPositionWithScale(Je,dt){this.left=this.gridster.$options.dirType===P.RTL?this.gridster.el.scrollWidth-this.originalClientX+(Je.clientX-this.originalClientX)/dt+this.diffLeft:this.originalClientX+(Je.clientX-this.originalClientX)/dt+this.offsetLeft-this.diffLeft,this.top=this.originalClientY+(Je.clientY-this.originalClientY)/dt+this.offsetTop-this.diffTop}calculateItemPositionWithoutScale(Je){this.left=this.gridster.$options.dirType===P.RTL?this.gridster.el.scrollWidth-Je.clientX+this.diffLeft:Je.clientX+this.offsetLeft-this.diffLeft,this.top=Je.clientY+this.offsetTop-this.diffTop}dragStop(Je){Je.stopPropagation(),Je.preventDefault(),We(),this.cancelOnBlur(),this.mousemove(),this.mouseup(),this.mouseleave(),this.touchmove(),this.touchend(),this.touchcancel(),this.gridsterItem.renderer.removeClass(this.gridsterItem.el,"gridster-item-moving"),this.gridster.dragInProgress=!1,this.gridster.updateGrid(),this.path=[],this.gridster.options.draggable&&this.gridster.options.draggable.stop?Promise.resolve(this.gridster.options.draggable.stop(this.gridsterItem.item,this.gridsterItem,Je)).then(this.makeDrag.bind(this),this.cancelDrag.bind(this)):this.makeDrag(),setTimeout(()=>{this.gridster&&(this.gridster.movingItem=null,this.gridster.previewStyle(!0))})}cancelDrag(){this.gridsterItem.$item.x=this.gridsterItem.item.x||0,this.gridsterItem.$item.y=this.gridsterItem.item.y||0,this.gridsterItem.setSize(),this.push&&this.push.restoreItems(),this.swap&&this.swap.restoreSwapItem(),this.push&&(this.push.destroy(),delete this.push),this.swap&&(this.swap.destroy(),delete this.swap)}makeDrag(){this.gridster.$options.draggable.dropOverItems&&this.gridster.options.draggable&&this.gridster.options.draggable.dropOverItemsCallback&&this.collision&&!0!==this.collision&&this.collision.$item&&this.gridster.options.draggable.dropOverItemsCallback(this.gridsterItem.item,this.collision.item,this.gridster),this.collision=!1,this.gridsterItem.setSize(),this.gridsterItem.checkItemChanges(this.gridsterItem.$item,this.gridsterItem.item),this.push&&this.push.setPushedItems(),this.swap&&this.swap.setSwapItem(),this.push&&(this.push.destroy(),delete this.push),this.swap&&(this.swap.destroy(),delete this.swap)}calculateItemPosition(){if(this.gridster.movingItem=this.gridsterItem.$item,this.positionX=this.gridster.pixelsToPositionX(this.left,Math.round),this.positionY=this.gridster.pixelsToPositionY(this.top,Math.round),this.positionXBackup=this.gridsterItem.$item.x,this.positionYBackup=this.gridsterItem.$item.y,this.gridsterItem.$item.x=this.positionX,this.gridster.checkGridCollision(this.gridsterItem.$item)&&(this.gridsterItem.$item.x=this.positionXBackup),this.gridsterItem.$item.y=this.positionY,this.gridster.checkGridCollision(this.gridsterItem.$item)&&(this.gridsterItem.$item.y=this.positionYBackup),this.gridster.gridRenderer.setCellPosition(this.gridsterItem.renderer,this.gridsterItem.el,this.left,this.top),this.positionXBackup!==this.gridsterItem.$item.x||this.positionYBackup!==this.gridsterItem.$item.y){const Je=this.path[this.path.length-1];let dt="";Je.x<this.gridsterItem.$item.x?dt=this.push.fromWest:Je.x>this.gridsterItem.$item.x?dt=this.push.fromEast:Je.y<this.gridsterItem.$item.y?dt=this.push.fromNorth:Je.y>this.gridsterItem.$item.y&&(dt=this.push.fromSouth),this.push.pushItems(dt,this.gridster.$options.disablePushOnDrag),this.swap.swapItems(),this.collision=this.gridster.checkCollision(this.gridsterItem.$item),this.collision?(this.gridsterItem.$item.x=this.positionXBackup,this.gridsterItem.$item.y=this.positionYBackup,this.gridster.$options.draggable.dropOverItems&&!0!==this.collision&&this.collision.$item&&(this.gridster.movingItem=null)):this.path.push({x:this.gridsterItem.$item.x,y:this.gridsterItem.$item.y}),this.push.checkPushBack()}this.gridster.previewStyle(!0)}toggle(){const Je=this.gridsterItem.canBeDragged();!this.enabled&&Je?(this.enabled=!this.enabled,this.dragStartFunction=this.dragStartDelay.bind(this),this.mousedown=this.gridsterItem.renderer.listen(this.gridsterItem.el,"mousedown",this.dragStartFunction),this.touchstart=this.gridsterItem.renderer.listen(this.gridsterItem.el,"touchstart",this.dragStartFunction)):this.enabled&&!Je&&(this.enabled=!this.enabled,this.mousedown(),this.touchstart())}dragStartDelay(Je){if(Je.target.hasAttribute("class")&&Je.target.getAttribute("class").split(" ").indexOf("gridster-item-resizable-handler")>-1||ae.checkContentClassForEvent(this.gridster,Je))return;if(ae.checkTouchEvent(Je),!this.gridster.$options.draggable.delayStart)return void this.dragStart(Je);const dt=setTimeout(()=>{this.dragStart(Je),bn()},this.gridster.$options.draggable.delayStart),Ie=this.gridsterItem.renderer.listen("document","mouseup",bn),ot=this.gridsterItem.renderer.listen("document","mouseleave",bn),ct=this.gridsterItem.renderer.listen("window","blur",bn),tn=this.gridsterItem.renderer.listen("document","touchmove",function sn(vt){ae.checkTouchEvent(vt),(Math.abs(vt.clientX-Je.clientX)>9||Math.abs(vt.clientY-Je.clientY)>9)&&bn()}),yi=this.gridsterItem.renderer.listen("document","touchend",bn),ni=this.gridsterItem.renderer.listen("document","touchcancel",bn);function bn(){clearTimeout(dt),ct(),Ie(),ot(),tn(),yi(),ni()}}}class ye{constructor(Je){this.pushedItems=[],this.pushedItemsPath=[],this.gridsterItem=Je,this.gridster=Je.gridster,this.tryPattern={fromEast:this.tryWest,fromWest:this.tryEast,fromNorth:this.trySouth,fromSouth:this.tryNorth},this.fromSouth="fromSouth",this.fromNorth="fromNorth",this.fromEast="fromEast",this.fromWest="fromWest"}destroy(){delete this.gridster,delete this.gridsterItem}pushItems(Je){return!!this.gridster.$options.pushResizeItems&&this.push(this.gridsterItem,Je)}restoreItems(){let Je=0;const dt=this.pushedItems.length;let Ie;for(;Je<dt;Je++)Ie=this.pushedItems[Je],Ie.$item.x=Ie.item.x||0,Ie.$item.y=Ie.item.y||0,Ie.$item.cols=Ie.item.cols||1,Ie.$item.row=Ie.item.row||1,Ie.setSize();this.pushedItems=[],this.pushedItemsPath=[]}setPushedItems(){let Je=0;const dt=this.pushedItems.length;let Ie;for(;Je<dt;Je++)Ie=this.pushedItems[Je],Ie.checkItemChanges(Ie.$item,Ie.item);this.pushedItems=[],this.pushedItemsPath=[]}checkPushBack(){let Je=this.pushedItems.length-1,dt=!1;for(;Je>-1;Je--)this.checkPushedItem(this.pushedItems[Je],Je)&&(dt=!0);dt&&this.checkPushBack()}push(Je,dt){const Ie=this.gridster.checkCollision(Je.$item);if(Ie&&!0!==Ie&&Ie!==this.gridsterItem&&Ie.canBeResized()){if(this.tryPattern[dt].call(this,Ie,Je,dt))return!0}else if(!1===Ie)return!0;return!1}trySouth(Je,dt,Ie){const ot=Je.$item.y,ct=Je.$item.rows;return Je.$item.y=dt.$item.y+dt.$item.rows,Je.$item.rows=ct+ot-Je.$item.y,this.gridster.checkCollisionTwoItems(Je.$item,dt.$item)||this.gridster.checkGridCollision(Je.$item)?(Je.$item.y=ot,Je.$item.rows=ct,!1):(Je.setSize(),this.addToPushed(Je),this.push(dt,Ie),!0)}tryNorth(Je,dt,Ie){const ot=Je.$item.rows;return Je.$item.rows=dt.$item.y-Je.$item.y,this.gridster.checkCollisionTwoItems(Je.$item,dt.$item)||this.gridster.checkGridCollision(Je.$item)?(Je.$item.rows=ot,!1):(Je.setSize(),this.addToPushed(Je),this.push(dt,Ie),!0)}tryEast(Je,dt,Ie){const ot=Je.$item.x,ct=Je.$item.cols;return Je.$item.x=dt.$item.x+dt.$item.cols,Je.$item.cols=ct+ot-Je.$item.x,this.gridster.checkCollisionTwoItems(Je.$item,dt.$item)||this.gridster.checkGridCollision(Je.$item)?(Je.$item.x=ot,Je.$item.cols=ct,!1):(Je.setSize(),this.addToPushed(Je),this.push(dt,Ie),!0)}tryWest(Je,dt,Ie){const ot=Je.$item.cols;return Je.$item.cols=dt.$item.x-Je.$item.x,this.gridster.checkCollisionTwoItems(Je.$item,dt.$item)||this.gridster.checkGridCollision(Je.$item)?(Je.$item.cols=ot,!1):(Je.setSize(),this.addToPushed(Je),this.push(dt,Ie),!0)}addToPushed(Je){if(this.pushedItems.indexOf(Je)<0)this.pushedItems.push(Je),this.pushedItemsPath.push([{x:Je.item.x||0,y:Je.item.y||0,cols:Je.item.cols||0,rows:Je.item.rows||0},{x:Je.$item.x,y:Je.$item.y,cols:Je.$item.cols,rows:Je.$item.rows}]);else{const dt=this.pushedItems.indexOf(Je);this.pushedItemsPath[dt].push({x:Je.$item.x,y:Je.$item.y,cols:Je.$item.cols,rows:Je.$item.rows})}}removeFromPushed(Je){Je>-1&&(this.pushedItems.splice(Je,1),this.pushedItemsPath.splice(Je,1))}checkPushedItem(Je,dt){const Ie=this.pushedItemsPath[dt];let ct,tn,yi,ni,sn,ot=Ie.length-2;for(;ot>-1;ot--)ct=Ie[ot],tn=Je.$item.x,yi=Je.$item.y,ni=Je.$item.cols,sn=Je.$item.rows,Je.$item.x=ct.x,Je.$item.y=ct.y,Je.$item.cols=ct.cols,Je.$item.rows=ct.rows,this.gridster.findItemWithItem(Je.$item)?(Je.$item.x=tn,Je.$item.y=yi,Je.$item.cols=ni,Je.$item.rows=sn):(Je.setSize(),Ie.splice(ot+1,Ie.length-1-ot));return Ie.length<2&&(this.removeFromPushed(dt),!0)}}class ve{constructor(Je,dt,Ie){this.zone=Ie,this.gridsterItem=Je,this.gridster=dt,this.lastMouse={clientX:0,clientY:0},this.itemBackup=[0,0,0,0],this.resizeEventScrollType={w:!1,e:!1,n:!1,s:!1}}destroy(){this.gridster.previewStyle&&this.gridster.previewStyle(),delete this.gridsterItem,delete this.gridster}dragStart(Je){var dt,Ie,ot;Je.which&&1!==Je.which||(this.gridster.options.resizable&&this.gridster.options.resizable.start&&this.gridster.options.resizable.start(this.gridsterItem.item,this.gridsterItem,Je),Je.stopPropagation(),Je.preventDefault(),this.dragFunction=this.dragMove.bind(this),this.dragStopFunction=this.dragStop.bind(this),this.zone.runOutsideAngular(()=>{this.mousemove=this.gridsterItem.renderer.listen("document","mousemove",this.dragFunction),this.touchmove=this.gridster.renderer.listen(this.gridster.el,"touchmove",this.dragFunction)}),this.mouseup=this.gridsterItem.renderer.listen("document","mouseup",this.dragStopFunction),this.mouseleave=this.gridsterItem.renderer.listen("document","mouseleave",this.dragStopFunction),this.cancelOnBlur=this.gridsterItem.renderer.listen("window","blur",this.dragStopFunction),this.touchend=this.gridsterItem.renderer.listen("document","touchend",this.dragStopFunction),this.touchcancel=this.gridsterItem.renderer.listen("document","touchcancel",this.dragStopFunction),this.gridsterItem.renderer.addClass(this.gridsterItem.el,"gridster-item-resizing"),this.lastMouse.clientX=Je.clientX,this.lastMouse.clientY=Je.clientY,this.left=this.gridsterItem.left,this.top=this.gridsterItem.top,this.originalClientX=Je.clientX,this.originalClientY=Je.clientY,this.width=this.gridsterItem.width,this.height=this.gridsterItem.height,this.bottom=this.gridsterItem.top+this.gridsterItem.height,this.right=this.gridsterItem.left+this.gridsterItem.width,this.margin=this.gridster.$options.margin,this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,this.diffLeft=Je.clientX+this.offsetLeft-this.left,this.diffRight=Je.clientX+this.offsetLeft-this.right,this.diffTop=Je.clientY+this.offsetTop-this.top,this.diffBottom=Je.clientY+this.offsetTop-this.bottom,this.minHeight=this.gridster.positionYToPixels(this.gridsterItem.$item.minItemRows||this.gridster.$options.minItemRows)-this.margin,this.minWidth=this.gridster.positionXToPixels(this.gridsterItem.$item.minItemCols||this.gridster.$options.minItemCols)-this.margin,this.gridster.movingItem=this.gridsterItem.$item,this.gridster.previewStyle(),this.push=new K(this.gridsterItem),this.pushResize=new ye(this.gridsterItem),this.gridster.dragInProgress=!0,this.gridster.updateGrid(),null!==(dt=Je.target)&&void 0!==dt&&dt.hasAttribute("class")&&Je.target.getAttribute("class").split(" ").indexOf("handle-n")>-1?(this.resizeEventScrollType.n=!0,this.directionFunction=this.handleN):null!==(Ie=Je.target)&&void 0!==Ie&&Ie.hasAttribute("class")&&Je.target.getAttribute("class").split(" ").indexOf("handle-w")>-1?this.gridster.$options.dirType===P.RTL?(this.resizeEventScrollType.e=!0,this.directionFunction=this.handleE):(this.resizeEventScrollType.w=!0,this.directionFunction=this.handleW):null!==(ot=Je.target)&&void 0!==ot&&ot.hasAttribute("class")&&Je.target.getAttribute("class").split(" ").indexOf("handle-s")>-1?(this.resizeEventScrollType.s=!0,this.directionFunction=this.handleS):Je.target.hasAttribute("class")&&Je.target.getAttribute("class").split(" ").indexOf("handle-e")>-1?this.gridster.$options.dirType===P.RTL?(this.resizeEventScrollType.w=!0,this.directionFunction=this.handleW):(this.resizeEventScrollType.e=!0,this.directionFunction=this.handleE):Je.target.hasAttribute("class")&&Je.target.getAttribute("class").split(" ").indexOf("handle-nw")>-1?this.gridster.$options.dirType===P.RTL?(this.resizeEventScrollType.n=!0,this.resizeEventScrollType.e=!0,this.directionFunction=this.handleNE):(this.resizeEventScrollType.n=!0,this.resizeEventScrollType.w=!0,this.directionFunction=this.handleNW):Je.target.hasAttribute("class")&&Je.target.getAttribute("class").split(" ").indexOf("handle-ne")>-1?this.gridster.$options.dirType===P.RTL?(this.resizeEventScrollType.n=!0,this.resizeEventScrollType.w=!0,this.directionFunction=this.handleNW):(this.resizeEventScrollType.n=!0,this.resizeEventScrollType.e=!0,this.directionFunction=this.handleNE):Je.target.hasAttribute("class")&&Je.target.getAttribute("class").split(" ").indexOf("handle-sw")>-1?this.gridster.$options.dirType===P.RTL?(this.resizeEventScrollType.s=!0,this.resizeEventScrollType.e=!0,this.directionFunction=this.handleSE):(this.resizeEventScrollType.s=!0,this.resizeEventScrollType.w=!0,this.directionFunction=this.handleSW):Je.target.hasAttribute("class")&&Je.target.getAttribute("class").split(" ").indexOf("handle-se")>-1&&(this.gridster.$options.dirType===P.RTL?(this.resizeEventScrollType.s=!0,this.resizeEventScrollType.w=!0,this.directionFunction=this.handleSW):(this.resizeEventScrollType.s=!0,this.resizeEventScrollType.e=!0,this.directionFunction=this.handleSE)))}dragMove(Je){Je.stopPropagation(),Je.preventDefault(),ae.checkTouchEvent(Je),this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,me(this.gridster,this.left,this.top,this.width,this.height,Je,this.lastMouse,this.directionFunction.bind(this),!0,this.resizeEventScrollType);const dt=this.gridster.options.scale||1;this.directionFunction({clientX:this.originalClientX+(Je.clientX-this.originalClientX)/dt,clientY:this.originalClientY+(Je.clientY-this.originalClientY)/dt}),this.lastMouse.clientX=Je.clientX,this.lastMouse.clientY=Je.clientY,this.zone.run(()=>{this.gridster.updateGrid()})}dragStop(Je){Je.stopPropagation(),Je.preventDefault(),We(),this.mousemove(),this.mouseup(),this.mouseleave(),this.cancelOnBlur(),this.touchmove(),this.touchend(),this.touchcancel(),this.gridster.dragInProgress=!1,this.gridster.updateGrid(),this.gridster.options.resizable&&this.gridster.options.resizable.stop?Promise.resolve(this.gridster.options.resizable.stop(this.gridsterItem.item,this.gridsterItem,Je)).then(this.makeResize.bind(this),this.cancelResize.bind(this)):this.makeResize(),setTimeout(()=>{this.gridsterItem.renderer.removeClass(this.gridsterItem.el,"gridster-item-resizing"),this.gridster&&(this.gridster.movingItem=null,this.gridster.previewStyle())})}cancelResize(){this.gridsterItem.$item.cols=this.gridsterItem.item.cols||1,this.gridsterItem.$item.rows=this.gridsterItem.item.rows||1,this.gridsterItem.$item.x=this.gridsterItem.item.x||0,this.gridsterItem.$item.y=this.gridsterItem.item.y||0,this.gridsterItem.setSize(),this.push.restoreItems(),this.pushResize.restoreItems(),this.push.destroy(),delete this.push,this.pushResize.destroy(),delete this.pushResize}makeResize(){this.gridsterItem.setSize(),this.gridsterItem.checkItemChanges(this.gridsterItem.$item,this.gridsterItem.item),this.push.setPushedItems(),this.pushResize.setPushedItems(),this.push.destroy(),delete this.push,this.pushResize.destroy(),delete this.pushResize}handleN(Je){if(this.top=Je.clientY+this.offsetTop-this.diffTop,this.height=this.bottom-this.top,this.minHeight>this.height&&(this.height=this.minHeight,this.top=this.bottom-this.minHeight),this.newPosition=this.gridster.pixelsToPositionY(this.top+this.margin,Math.floor),this.gridsterItem.$item.y!==this.newPosition){if(this.itemBackup[1]=this.gridsterItem.$item.y,this.itemBackup[3]=this.gridsterItem.$item.rows,this.gridsterItem.$item.rows+=this.gridsterItem.$item.y-this.newPosition,this.gridsterItem.$item.y=this.newPosition,this.pushResize.pushItems(this.pushResize.fromSouth),this.push.pushItems(this.push.fromSouth,this.gridster.$options.disablePushOnResize),this.gridster.checkCollision(this.gridsterItem.$item))return this.gridsterItem.$item.y=this.itemBackup[1],this.gridsterItem.$item.rows=this.itemBackup[3],this.setItemTop(this.gridster.positionYToPixels(this.gridsterItem.$item.y)),void this.setItemHeight(this.gridster.positionYToPixels(this.gridsterItem.$item.rows)-this.margin);this.gridster.previewStyle(),this.pushResize.checkPushBack(),this.push.checkPushBack()}this.setItemTop(this.top),this.setItemHeight(this.height)}handleW(Je){if(this.left=(this.gridster.$options.dirType===P.RTL?this.originalClientX+(this.originalClientX-Je.clientX):Je.clientX)+this.offsetLeft-this.diffLeft,this.width=this.right-this.left,this.minWidth>this.width&&(this.width=this.minWidth,this.left=this.right-this.minWidth),this.newPosition=this.gridster.pixelsToPositionX(this.left+this.margin,Math.floor),this.gridsterItem.$item.x!==this.newPosition){if(this.itemBackup[0]=this.gridsterItem.$item.x,this.itemBackup[2]=this.gridsterItem.$item.cols,this.gridsterItem.$item.cols+=this.gridsterItem.$item.x-this.newPosition,this.gridsterItem.$item.x=this.newPosition,this.pushResize.pushItems(this.pushResize.fromEast),this.push.pushItems(this.push.fromEast,this.gridster.$options.disablePushOnResize),this.gridster.checkCollision(this.gridsterItem.$item))return this.gridsterItem.$item.x=this.itemBackup[0],this.gridsterItem.$item.cols=this.itemBackup[2],this.setItemLeft(this.gridster.positionXToPixels(this.gridsterItem.$item.x)),void this.setItemWidth(this.gridster.positionXToPixels(this.gridsterItem.$item.cols)-this.margin);this.gridster.previewStyle(),this.pushResize.checkPushBack(),this.push.checkPushBack()}this.setItemLeft(this.left),this.setItemWidth(this.width)}handleS(Je){if(this.height=Je.clientY+this.offsetTop-this.diffBottom-this.top,this.minHeight>this.height&&(this.height=this.minHeight),this.bottom=this.top+this.height,this.newPosition=this.gridster.pixelsToPositionY(this.bottom,Math.ceil),this.gridsterItem.$item.y+this.gridsterItem.$item.rows!==this.newPosition){if(this.itemBackup[3]=this.gridsterItem.$item.rows,this.gridsterItem.$item.rows=this.newPosition-this.gridsterItem.$item.y,this.pushResize.pushItems(this.pushResize.fromNorth),this.push.pushItems(this.push.fromNorth,this.gridster.$options.disablePushOnResize),this.gridster.checkCollision(this.gridsterItem.$item))return this.gridsterItem.$item.rows=this.itemBackup[3],void this.setItemHeight(this.gridster.positionYToPixels(this.gridsterItem.$item.rows)-this.margin);this.gridster.previewStyle(),this.pushResize.checkPushBack(),this.push.checkPushBack()}this.setItemHeight(this.height)}handleE(Je){if(this.width=(this.gridster.$options.dirType===P.RTL?this.originalClientX+(this.originalClientX-Je.clientX):Je.clientX)+this.offsetLeft-this.diffRight-this.left,this.minWidth>this.width&&(this.width=this.minWidth),this.right=this.left+this.width,this.newPosition=this.gridster.pixelsToPositionX(this.right,Math.ceil),this.gridsterItem.$item.x+this.gridsterItem.$item.cols!==this.newPosition){if(this.itemBackup[2]=this.gridsterItem.$item.cols,this.gridsterItem.$item.cols=this.newPosition-this.gridsterItem.$item.x,this.pushResize.pushItems(this.pushResize.fromWest),this.push.pushItems(this.push.fromWest,this.gridster.$options.disablePushOnResize),this.gridster.checkCollision(this.gridsterItem.$item))return this.gridsterItem.$item.cols=this.itemBackup[2],void this.setItemWidth(this.gridster.positionXToPixels(this.gridsterItem.$item.cols)-this.margin);this.gridster.previewStyle(),this.pushResize.checkPushBack(),this.push.checkPushBack()}this.setItemWidth(this.width)}handleNW(Je){this.handleN(Je),this.handleW(Je)}handleNE(Je){this.handleN(Je),this.handleE(Je)}handleSW(Je){this.handleS(Je),this.handleW(Je)}handleSE(Je){this.handleS(Je),this.handleE(Je)}toggle(){this.resizeEnabled=this.gridsterItem.canBeResized()}dragStartDelay(Je){if(ae.checkTouchEvent(Je),!this.gridster.$options.resizable.delayStart)return void this.dragStart(Je);const dt=setTimeout(()=>{this.dragStart(Je),bn()},this.gridster.$options.resizable.delayStart),Ie=this.gridsterItem.renderer.listen("document","mouseup",bn),ot=this.gridsterItem.renderer.listen("document","mouseleave",bn),ct=this.gridsterItem.renderer.listen("window","blur",bn),tn=this.gridsterItem.renderer.listen("document","touchmove",function sn(vt){ae.checkTouchEvent(vt),(Math.abs(vt.clientX-Je.clientX)>9||Math.abs(vt.clientY-Je.clientY)>9)&&bn()}),yi=this.gridsterItem.renderer.listen("document","touchend",bn),ni=this.gridsterItem.renderer.listen("document","touchcancel",bn);function bn(){clearTimeout(dt),ct(),Ie(),ot(),tn(),yi(),ni()}}setItemTop(Je){this.gridster.gridRenderer.setCellPosition(this.gridsterItem.renderer,this.gridsterItem.el,this.left,Je)}setItemLeft(Je){this.gridster.gridRenderer.setCellPosition(this.gridsterItem.renderer,this.gridsterItem.el,Je,this.top)}setItemHeight(Je){this.gridsterItem.renderer.setStyle(this.gridsterItem.el,"height",Je+"px")}setItemWidth(Je){this.gridsterItem.renderer.setStyle(this.gridsterItem.el,"width",Je+"px")}}let ft=(()=>{class Xt{constructor(dt,Ie,ot,ct){this.renderer=ot,this.zone=ct,this.itemInit=new e.vpe,this.itemChange=new e.vpe,this.itemResize=new e.vpe,this.el=dt.nativeElement,this.$item={cols:-1,rows:-1,x:-1,y:-1},this.gridster=Ie,this.drag=new Oe(this,Ie,this.zone),this.resize=new ve(this,Ie,this.zone)}get zIndex(){return this.getLayerIndex()+this.gridster.$options.baseLayerIndex}ngOnInit(){this.gridster.addItem(this)}ngOnChanges(dt){dt.item&&(this.updateOptions(),this.init||this.gridster.calculateLayoutDebounce()),dt.item&&dt.item.previousValue&&this.setSize()}updateOptions(){this.$item=ae.merge(this.$item,this.item,{cols:void 0,rows:void 0,x:void 0,y:void 0,layerIndex:void 0,dragEnabled:void 0,resizeEnabled:void 0,compactEnabled:void 0,maxItemRows:void 0,minItemRows:void 0,maxItemCols:void 0,minItemCols:void 0,maxItemArea:void 0,minItemArea:void 0})}ngOnDestroy(){this.gridster.removeItem(this),delete this.gridster,this.drag.destroy(),delete this.drag,this.resize.destroy(),delete this.resize}setSize(){this.renderer.setStyle(this.el,"display",this.notPlaced?"":"block"),this.gridster.gridRenderer.updateItem(this.el,this.$item,this.renderer),this.updateItemSize()}updateItemSize(){const Ie=this.$item.x*this.gridster.curColWidth,ot=this.$item.cols*this.gridster.curColWidth-this.gridster.$options.margin,ct=this.$item.rows*this.gridster.curRowHeight-this.gridster.$options.margin;this.top=this.$item.y*this.gridster.curRowHeight,this.left=Ie,!this.init&&ot>0&&ct>0&&(this.init=!0,this.item.initCallback&&this.item.initCallback(this.item,this),this.gridster.options.itemInitCallback&&this.gridster.options.itemInitCallback(this.item,this),this.itemInit.next({item:this.item,itemComponent:this}),this.gridster.$options.scrollToNewItems&&this.el.scrollIntoView(!1)),(ot!==this.width||ct!==this.height)&&(this.width=ot,this.height=ct,this.gridster.options.itemResizeCallback&&this.gridster.options.itemResizeCallback(this.item,this),this.itemResize.next({item:this.item,itemComponent:this}))}itemChanged(){this.gridster.options.itemChangeCallback&&this.gridster.options.itemChangeCallback(this.item,this),this.itemChange.next({item:this.item,itemComponent:this})}checkItemChanges(dt,Ie){dt.rows===Ie.rows&&dt.cols===Ie.cols&&dt.x===Ie.x&&dt.y===Ie.y||(this.gridster.checkCollision(this.$item)?(this.$item.x=Ie.x||0,this.$item.y=Ie.y||0,this.$item.cols=Ie.cols||1,this.$item.rows=Ie.rows||1,this.setSize()):(this.item.cols=this.$item.cols,this.item.rows=this.$item.rows,this.item.x=this.$item.x,this.item.y=this.$item.y,this.gridster.calculateLayoutDebounce(),this.itemChanged()))}canBeDragged(){const dt=this.gridster.$options.draggable.enabled;return!this.gridster.mobile&&dt&&(void 0===this.$item.dragEnabled?dt:this.$item.dragEnabled)}canBeResized(){const dt=this.gridster.$options.resizable.enabled;return!this.gridster.mobile&&dt&&(void 0===this.$item.resizeEnabled?dt:this.$item.resizeEnabled)}bringToFront(dt){if(dt&&dt<=0)return;const Ie=this.getLayerIndex(),ot=this.gridster.$options.maxLayerIndex;if(Ie<ot){const ct=dt?Ie+dt:ot;this.item.layerIndex=this.$item.layerIndex=ct>ot?ot:ct}}sendToBack(dt){if(dt&&dt<=0)return;const Ie=this.getLayerIndex();if(Ie>0){const ot=dt?Ie-dt:0;this.item.layerIndex=this.$item.layerIndex=ot<0?0:ot}}getLayerIndex(){return void 0!==this.item.layerIndex?this.item.layerIndex:void 0!==this.gridster.$options.defaultLayerIndex?this.gridster.$options.defaultLayerIndex:0}}return Xt.\u0275fac=function(dt){return new(dt||Xt)(e.Y36(e.SBq),e.Y36(Y),e.Y36(e.Qsj),e.Y36(e.R0b))},Xt.\u0275cmp=e.Xpm({type:Xt,selectors:[["gridster-item"]],hostVars:2,hostBindings:function(dt,Ie){2&dt&&e.Udp("z-index",Ie.zIndex)},inputs:{item:"item"},outputs:{itemInit:"itemInit",itemChange:"itemChange",itemResize:"itemResize"},features:[e.TTD],ngContentSelectors:i,decls:9,vars:8,consts:[["class","gridster-item-resizable-handler handle-s",3,"mousedown","touchstart",4,"ngIf"],["class","gridster-item-resizable-handler handle-e",3,"mousedown","touchstart",4,"ngIf"],["class","gridster-item-resizable-handler handle-n",3,"mousedown","touchstart",4,"ngIf"],["class","gridster-item-resizable-handler handle-w",3,"mousedown","touchstart",4,"ngIf"],["class","gridster-item-resizable-handler handle-se",3,"mousedown","touchstart",4,"ngIf"],["class","gridster-item-resizable-handler handle-ne",3,"mousedown","touchstart",4,"ngIf"],["class","gridster-item-resizable-handler handle-sw",3,"mousedown","touchstart",4,"ngIf"],["class","gridster-item-resizable-handler handle-nw",3,"mousedown","touchstart",4,"ngIf"],[1,"gridster-item-resizable-handler","handle-s",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-e",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-n",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-w",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-se",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-ne",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-sw",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-nw",3,"mousedown","touchstart"]],template:function(dt,Ie){1&dt&&(e.F$t(),e.Hsn(0),e.YNc(1,t,1,0,"div",0)(2,p,1,0,"div",1)(3,c,1,0,"div",2)(4,o,1,0,"div",3)(5,x,1,0,"div",4)(6,u,1,0,"div",5)(7,m,1,0,"div",6)(8,b,1,0,"div",7)),2&dt&&(e.xp6(),e.Q6J("ngIf",Ie.gridster.$options.resizable.handles.s&&Ie.resize.resizeEnabled),e.xp6(),e.Q6J("ngIf",Ie.gridster.$options.resizable.handles.e&&Ie.resize.resizeEnabled),e.xp6(),e.Q6J("ngIf",Ie.gridster.$options.resizable.handles.n&&Ie.resize.resizeEnabled),e.xp6(),e.Q6J("ngIf",Ie.gridster.$options.resizable.handles.w&&Ie.resize.resizeEnabled),e.xp6(),e.Q6J("ngIf",Ie.gridster.$options.resizable.handles.se&&Ie.resize.resizeEnabled),e.xp6(),e.Q6J("ngIf",Ie.gridster.$options.resizable.handles.ne&&Ie.resize.resizeEnabled),e.xp6(),e.Q6J("ngIf",Ie.gridster.$options.resizable.handles.sw&&Ie.resize.resizeEnabled),e.xp6(),e.Q6J("ngIf",Ie.gridster.$options.resizable.handles.nw&&Ie.resize.resizeEnabled))},dependencies:[n.O5],styles:["gridster-item{box-sizing:border-box;z-index:1;position:absolute;overflow:hidden;transition:.3s;display:none;background:white;-webkit-user-select:text;user-select:text}gridster-item.gridster-item-moving{cursor:move}gridster-item.gridster-item-resizing,gridster-item.gridster-item-moving{transition:0s;z-index:2;box-shadow:0 0 5px 5px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}.gridster-item-resizable-handler{position:absolute;z-index:2}.gridster-item-resizable-handler.handle-n{cursor:ns-resize;height:10px;right:0;top:0;left:0}.gridster-item-resizable-handler.handle-e{cursor:ew-resize;width:10px;bottom:0;right:0;top:0}.gridster-item-resizable-handler.handle-s{cursor:ns-resize;height:10px;right:0;bottom:0;left:0}.gridster-item-resizable-handler.handle-w{cursor:ew-resize;width:10px;left:0;top:0;bottom:0}.gridster-item-resizable-handler.handle-ne{cursor:ne-resize;width:10px;height:10px;right:0;top:0}.gridster-item-resizable-handler.handle-nw{cursor:nw-resize;width:10px;height:10px;left:0;top:0}.gridster-item-resizable-handler.handle-se{cursor:se-resize;width:0;height:0;right:0;bottom:0;border-style:solid;border-width:0 0 10px 10px;border-color:transparent}.gridster-item-resizable-handler.handle-sw{cursor:sw-resize;width:10px;height:10px;left:0;bottom:0}gridster-item:hover .gridster-item-resizable-handler.handle-se{border-color:transparent transparent #ccc}\n"],encapsulation:2}),Xt})(),ti=(()=>{class Xt{}return Xt.\u0275fac=function(dt){return new(dt||Xt)},Xt.\u0275mod=e.oAB({type:Xt}),Xt.\u0275inj=e.cJS({imports:[[n.ez]]}),Xt})()},18042:function(gt,X,a){var e;gt.exports=(e=a(10012),a(85506),a(92873),a(12066),a(13270),function(){var n=e,l=n.lib.BlockCipher,i=n.algo,t=[],p=[],c=[],o=[],x=[],u=[],m=[],b=[],I=[],H=[];!function(){for(var G=[],B=0;B<256;B++)G[B]=B<128?B<<1:B<<1^283;var ae=0,J=0;for(B=0;B<256;B++){var q=J^J<<1^J<<2^J<<3^J<<4;t[ae]=q=q>>>8^255&q^99,p[q]=ae;var ne,j=G[ae],Y=G[j],K=G[Y];c[ae]=(ne=257*G[q]^16843008*q)<<24|ne>>>8,o[ae]=ne<<16|ne>>>16,x[ae]=ne<<8|ne>>>24,u[ae]=ne,m[q]=(ne=16843009*K^65537*Y^257*j^16843008*ae)<<24|ne>>>8,b[q]=ne<<16|ne>>>16,I[q]=ne<<8|ne>>>24,H[q]=ne,ae?(ae=j^G[G[G[K^j]]],J^=G[G[J]]):ae=J=1}}();var O=[0,1,2,4,8,16,32,64,128,27,54],P=i.AES=l.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var B=this._keyPriorReset=this._key,ae=B.words,J=B.sigBytes/4,j=4*((this._nRounds=J+6)+1),Y=this._keySchedule=[],K=0;K<j;K++)K<J?Y[K]=ae[K]:(G=Y[K-1],K%J?J>6&&K%J==4&&(G=t[G>>>24]<<24|t[G>>>16&255]<<16|t[G>>>8&255]<<8|t[255&G]):(G=t[(G=G<<8|G>>>24)>>>24]<<24|t[G>>>16&255]<<16|t[G>>>8&255]<<8|t[255&G],G^=O[K/J|0]<<24),Y[K]=Y[K-J]^G);for(var ne=this._invKeySchedule=[],ee=0;ee<j;ee++){if(K=j-ee,ee%4)var G=Y[K];else G=Y[K-4];ne[ee]=ee<4||K<=4?G:m[t[G>>>24]]^b[t[G>>>16&255]]^I[t[G>>>8&255]]^H[t[255&G]]}}},encryptBlock:function(G,B){this._doCryptBlock(G,B,this._keySchedule,c,o,x,u,t)},decryptBlock:function(G,B){var ae=G[B+1];G[B+1]=G[B+3],G[B+3]=ae,this._doCryptBlock(G,B,this._invKeySchedule,m,b,I,H,p),ae=G[B+1],G[B+1]=G[B+3],G[B+3]=ae},_doCryptBlock:function(G,B,ae,J,q,j,Y,K){for(var ne=this._nRounds,ee=G[B]^ae[0],$=G[B+1]^ae[1],ue=G[B+2]^ae[2],ge=G[B+3]^ae[3],Ke=4,at=1;at<ne;at++){var Le=J[ee>>>24]^q[$>>>16&255]^j[ue>>>8&255]^Y[255&ge]^ae[Ke++],R=J[$>>>24]^q[ue>>>16&255]^j[ge>>>8&255]^Y[255&ee]^ae[Ke++],Te=J[ue>>>24]^q[ge>>>16&255]^j[ee>>>8&255]^Y[255&$]^ae[Ke++],me=J[ge>>>24]^q[ee>>>16&255]^j[$>>>8&255]^Y[255&ue]^ae[Ke++];ee=Le,$=R,ue=Te,ge=me}Le=(K[ee>>>24]<<24|K[$>>>16&255]<<16|K[ue>>>8&255]<<8|K[255&ge])^ae[Ke++],R=(K[$>>>24]<<24|K[ue>>>16&255]<<16|K[ge>>>8&255]<<8|K[255&ee])^ae[Ke++],Te=(K[ue>>>24]<<24|K[ge>>>16&255]<<16|K[ee>>>8&255]<<8|K[255&$])^ae[Ke++],me=(K[ge>>>24]<<24|K[ee>>>16&255]<<16|K[$>>>8&255]<<8|K[255&ue])^ae[Ke++],G[B]=Le,G[B+1]=R,G[B+2]=Te,G[B+3]=me},keySize:8});n.AES=l._createHelper(P)}(),e.AES)},13270:function(gt,X,a){var s,l,i,t,p,c,x,m,b,H,O,P,B,J,j,Y,ne,ee,e;gt.exports=(e=a(10012),a(12066),void(e.lib.Cipher||(s=e,l=s.lib,i=l.Base,t=l.WordArray,p=l.BufferedBlockAlgorithm,c=s.enc,x=c.Base64,m=s.algo.EvpKDF,b=l.Cipher=p.extend({cfg:i.extend(),createEncryptor:function($,ue){return this.create(this._ENC_XFORM_MODE,$,ue)},createDecryptor:function($,ue){return this.create(this._DEC_XFORM_MODE,$,ue)},init:function($,ue,ge){this.cfg=this.cfg.extend(ge),this._xformMode=$,this._key=ue,this.reset()},reset:function(){p.reset.call(this),this._doReset()},process:function($){return this._append($),this._process()},finalize:function($){return $&&this._append($),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function $(ue){return"string"==typeof ue?ee:Y}return function(ue){return{encrypt:function(ge,Ke,at){return $(Ke).encrypt(ue,ge,Ke,at)},decrypt:function(ge,Ke,at){return $(Ke).decrypt(ue,ge,Ke,at)}}}}()}),l.StreamCipher=b.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),H=s.mode={},O=l.BlockCipherMode=i.extend({createEncryptor:function($,ue){return this.Encryptor.create($,ue)},createDecryptor:function($,ue){return this.Decryptor.create($,ue)},init:function($,ue){this._cipher=$,this._iv=ue}}),P=H.CBC=function(){var $=O.extend();function ue(ge,Ke,at){var Le,R=this._iv;R?(Le=R,this._iv=undefined):Le=this._prevBlock;for(var Te=0;Te<at;Te++)ge[Ke+Te]^=Le[Te]}return $.Encryptor=$.extend({processBlock:function(ge,Ke){var at=this._cipher,Le=at.blockSize;ue.call(this,ge,Ke,Le),at.encryptBlock(ge,Ke),this._prevBlock=ge.slice(Ke,Ke+Le)}}),$.Decryptor=$.extend({processBlock:function(ge,Ke){var at=this._cipher,Le=at.blockSize,R=ge.slice(Ke,Ke+Le);at.decryptBlock(ge,Ke),ue.call(this,ge,Ke,Le),this._prevBlock=R}}),$}(),B=(s.pad={}).Pkcs7={pad:function($,ue){for(var ge=4*ue,Ke=ge-$.sigBytes%ge,at=Ke<<24|Ke<<16|Ke<<8|Ke,Le=[],R=0;R<Ke;R+=4)Le.push(at);var Te=t.create(Le,Ke);$.concat(Te)},unpad:function($){$.sigBytes-=255&$.words[$.sigBytes-1>>>2]}},l.BlockCipher=b.extend({cfg:b.cfg.extend({mode:P,padding:B}),reset:function(){var $;b.reset.call(this);var ue=this.cfg,ge=ue.iv,Ke=ue.mode;this._xformMode==this._ENC_XFORM_MODE?$=Ke.createEncryptor:($=Ke.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==$?this._mode.init(this,ge&&ge.words):(this._mode=$.call(Ke,this,ge&&ge.words),this._mode.__creator=$)},_doProcessBlock:function($,ue){this._mode.processBlock($,ue)},_doFinalize:function(){var $,ue=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(ue.pad(this._data,this.blockSize),$=this._process(!0)):($=this._process(!0),ue.unpad($)),$},blockSize:4}),J=l.CipherParams=i.extend({init:function($){this.mixIn($)},toString:function($){return($||this.formatter).stringify(this)}}),j=(s.format={}).OpenSSL={stringify:function($){var ge=$.ciphertext,Ke=$.salt;return(Ke?t.create([1398893684,1701076831]).concat(Ke).concat(ge):ge).toString(x)},parse:function($){var ue,ge=x.parse($),Ke=ge.words;return 1398893684==Ke[0]&&1701076831==Ke[1]&&(ue=t.create(Ke.slice(2,4)),Ke.splice(0,4),ge.sigBytes-=16),J.create({ciphertext:ge,salt:ue})}},Y=l.SerializableCipher=i.extend({cfg:i.extend({format:j}),encrypt:function($,ue,ge,Ke){Ke=this.cfg.extend(Ke);var at=$.createEncryptor(ge,Ke),Le=at.finalize(ue),R=at.cfg;return J.create({ciphertext:Le,key:ge,iv:R.iv,algorithm:$,mode:R.mode,padding:R.padding,blockSize:$.blockSize,formatter:Ke.format})},decrypt:function($,ue,ge,Ke){return Ke=this.cfg.extend(Ke),ue=this._parse(ue,Ke.format),$.createDecryptor(ge,Ke).finalize(ue.ciphertext)},_parse:function($,ue){return"string"==typeof $?ue.parse($,this):$}}),ne=(s.kdf={}).OpenSSL={execute:function($,ue,ge,Ke){Ke||(Ke=t.random(8));var at=m.create({keySize:ue+ge}).compute($,Ke),Le=t.create(at.words.slice(ue),4*ge);return at.sigBytes=4*ue,J.create({key:at,iv:Le,salt:Ke})}},ee=l.PasswordBasedCipher=Y.extend({cfg:Y.cfg.extend({kdf:ne}),encrypt:function($,ue,ge,Ke){var at=(Ke=this.cfg.extend(Ke)).kdf.execute(ge,$.keySize,$.ivSize);Ke.iv=at.iv;var Le=Y.encrypt.call(this,$,ue,at.key,Ke);return Le.mixIn(at),Le},decrypt:function($,ue,ge,Ke){Ke=this.cfg.extend(Ke),ue=this._parse(ue,Ke.format);var at=Ke.kdf.execute(ge,$.keySize,$.ivSize,ue.salt);return Ke.iv=at.iv,Y.decrypt.call(this,$,ue,at.key,Ke)}}))))},10012:function(gt,X,a){var e;gt.exports=(e=e||function(n,s){var l;if(typeof window<"u"&&window.crypto&&(l=window.crypto),typeof self<"u"&&self.crypto&&(l=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(l=globalThis.crypto),!l&&typeof window<"u"&&window.msCrypto&&(l=window.msCrypto),!l&&typeof global<"u"&&global.crypto&&(l=global.crypto),!l)try{l=a(42480)}catch{}var i=function(){if(l){if("function"==typeof l.getRandomValues)try{return l.getRandomValues(new Uint32Array(1))[0]}catch{}if("function"==typeof l.randomBytes)try{return l.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},t=Object.create||function(){function G(){}return function(B){var ae;return G.prototype=B,ae=new G,G.prototype=null,ae}}(),p={},c=p.lib={},o=c.Base=function(){return{extend:function(G){var B=t(this);return G&&B.mixIn(G),(!B.hasOwnProperty("init")||this.init===B.init)&&(B.init=function(){B.$super.init.apply(this,arguments)}),B.init.prototype=B,B.$super=this,B},create:function(){var G=this.extend();return G.init.apply(G,arguments),G},init:function(){},mixIn:function(G){for(var B in G)G.hasOwnProperty(B)&&(this[B]=G[B]);G.hasOwnProperty("toString")&&(this.toString=G.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),x=c.WordArray=o.extend({init:function(G,B){G=this.words=G||[],this.sigBytes=null!=B?B:4*G.length},toString:function(G){return(G||m).stringify(this)},concat:function(G){var B=this.words,ae=G.words,J=this.sigBytes,q=G.sigBytes;if(this.clamp(),J%4)for(var j=0;j<q;j++)B[J+j>>>2]|=(ae[j>>>2]>>>24-j%4*8&255)<<24-(J+j)%4*8;else for(var K=0;K<q;K+=4)B[J+K>>>2]=ae[K>>>2];return this.sigBytes+=q,this},clamp:function(){var G=this.words,B=this.sigBytes;G[B>>>2]&=4294967295<<32-B%4*8,G.length=n.ceil(B/4)},clone:function(){var G=o.clone.call(this);return G.words=this.words.slice(0),G},random:function(G){for(var B=[],ae=0;ae<G;ae+=4)B.push(i());return new x.init(B,G)}}),u=p.enc={},m=u.Hex={stringify:function(G){for(var B=G.words,ae=G.sigBytes,J=[],q=0;q<ae;q++){var j=B[q>>>2]>>>24-q%4*8&255;J.push((j>>>4).toString(16)),J.push((15&j).toString(16))}return J.join("")},parse:function(G){for(var B=G.length,ae=[],J=0;J<B;J+=2)ae[J>>>3]|=parseInt(G.substr(J,2),16)<<24-J%8*4;return new x.init(ae,B/2)}},b=u.Latin1={stringify:function(G){for(var B=G.words,ae=G.sigBytes,J=[],q=0;q<ae;q++)J.push(String.fromCharCode(B[q>>>2]>>>24-q%4*8&255));return J.join("")},parse:function(G){for(var B=G.length,ae=[],J=0;J<B;J++)ae[J>>>2]|=(255&G.charCodeAt(J))<<24-J%4*8;return new x.init(ae,B)}},I=u.Utf8={stringify:function(G){try{return decodeURIComponent(escape(b.stringify(G)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(G){return b.parse(unescape(encodeURIComponent(G)))}},H=c.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new x.init,this._nDataBytes=0},_append:function(G){"string"==typeof G&&(G=I.parse(G)),this._data.concat(G),this._nDataBytes+=G.sigBytes},_process:function(G){var B,ae=this._data,J=ae.words,q=ae.sigBytes,j=this.blockSize,K=q/(4*j),ne=(K=G?n.ceil(K):n.max((0|K)-this._minBufferSize,0))*j,ee=n.min(4*ne,q);if(ne){for(var $=0;$<ne;$+=j)this._doProcessBlock(J,$);B=J.splice(0,ne),ae.sigBytes-=ee}return new x.init(B,ee)},clone:function(){var G=o.clone.call(this);return G._data=this._data.clone(),G},_minBufferSize:0}),P=(c.Hasher=H.extend({cfg:o.extend(),init:function(G){this.cfg=this.cfg.extend(G),this.reset()},reset:function(){H.reset.call(this),this._doReset()},update:function(G){return this._append(G),this._process(),this},finalize:function(G){return G&&this._append(G),this._doFinalize()},blockSize:16,_createHelper:function(G){return function(B,ae){return new G.init(ae).finalize(B)}},_createHmacHelper:function(G){return function(B,ae){return new P.HMAC.init(G,ae).finalize(B)}}}),p.algo={});return p}(Math),e)},85506:function(gt,X,a){var e,l;gt.exports=(e=a(10012),l=e.lib.WordArray,e.enc.Base64={stringify:function(c){var o=c.words,x=c.sigBytes,u=this._map;c.clamp();for(var m=[],b=0;b<x;b+=3)for(var P=(o[b>>>2]>>>24-b%4*8&255)<<16|(o[b+1>>>2]>>>24-(b+1)%4*8&255)<<8|o[b+2>>>2]>>>24-(b+2)%4*8&255,G=0;G<4&&b+.75*G<x;G++)m.push(u.charAt(P>>>6*(3-G)&63));var B=u.charAt(64);if(B)for(;m.length%4;)m.push(B);return m.join("")},parse:function(c){var o=c.length,x=this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var m=0;m<x.length;m++)u[x.charCodeAt(m)]=m}var b=x.charAt(64);if(b){var I=c.indexOf(b);-1!==I&&(o=I)}return function p(c,o,x){for(var u=[],m=0,b=0;b<o;b++)if(b%4){var I=x[c.charCodeAt(b-1)]<<b%4*2,H=x[c.charCodeAt(b)]>>>6-b%4*2;u[m>>>2]|=(I|H)<<24-m%4*8,m++}return l.create(u,m)}(c,o,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},e.enc.Base64)},57523:function(gt,X,a){var e,l;gt.exports=(e=a(10012),l=e.lib.WordArray,e.enc.Base64url={stringify:function(c,o=!0){var x=c.words,u=c.sigBytes,m=o?this._safe_map:this._map;c.clamp();for(var b=[],I=0;I<u;I+=3)for(var G=(x[I>>>2]>>>24-I%4*8&255)<<16|(x[I+1>>>2]>>>24-(I+1)%4*8&255)<<8|x[I+2>>>2]>>>24-(I+2)%4*8&255,B=0;B<4&&I+.75*B<u;B++)b.push(m.charAt(G>>>6*(3-B)&63));var ae=m.charAt(64);if(ae)for(;b.length%4;)b.push(ae);return b.join("")},parse:function(c,o=!0){var x=c.length,u=o?this._safe_map:this._map,m=this._reverseMap;if(!m){m=this._reverseMap=[];for(var b=0;b<u.length;b++)m[u.charCodeAt(b)]=b}var I=u.charAt(64);if(I){var H=c.indexOf(I);-1!==H&&(x=H)}return function p(c,o,x){for(var u=[],m=0,b=0;b<o;b++)if(b%4){var I=x[c.charCodeAt(b-1)]<<b%4*2,H=x[c.charCodeAt(b)]>>>6-b%4*2;u[m>>>2]|=(I|H)<<24-m%4*8,m++}return l.create(u,m)}(c,x,m)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},e.enc.Base64url)},22406:function(gt,X,a){gt.exports=a(10012).enc.Hex},72454:function(gt,X,a){var e;gt.exports=(e=a(10012),function(){var l=e.lib.WordArray,i=e.enc;function p(c){return c<<8&4278255360|c>>>8&16711935}i.Utf16=i.Utf16BE={stringify:function(c){for(var o=c.words,x=c.sigBytes,u=[],m=0;m<x;m+=2)u.push(String.fromCharCode(o[m>>>2]>>>16-m%4*8&65535));return u.join("")},parse:function(c){for(var o=c.length,x=[],u=0;u<o;u++)x[u>>>1]|=c.charCodeAt(u)<<16-u%2*16;return l.create(x,2*o)}},i.Utf16LE={stringify:function(c){for(var o=c.words,x=c.sigBytes,u=[],m=0;m<x;m+=2){var b=p(o[m>>>2]>>>16-m%4*8&65535);u.push(String.fromCharCode(b))}return u.join("")},parse:function(c){for(var o=c.length,x=[],u=0;u<o;u++)x[u>>>1]|=p(c.charCodeAt(u)<<16-u%2*16);return l.create(x,2*o)}}}(),e.enc.Utf16)},75569:function(gt,X,a){gt.exports=a(10012).enc.Utf8},12066:function(gt,X,a){var n,s,l,i,t,c,e;gt.exports=(e=a(10012),a(84446),a(990),i=(s=(n=e).lib).WordArray,c=(t=n.algo).EvpKDF=(l=s.Base).extend({cfg:l.extend({keySize:4,hasher:t.MD5,iterations:1}),init:function(o){this.cfg=this.cfg.extend(o)},compute:function(o,x){for(var u,m=this.cfg,b=m.hasher.create(),I=i.create(),H=I.words,O=m.keySize,P=m.iterations;H.length<O;){u&&b.update(u),u=b.update(o).finalize(x),b.reset();for(var G=1;G<P;G++)u=b.finalize(u),b.reset();I.concat(u)}return I.sigBytes=4*O,I}}),n.EvpKDF=function(o,x,u){return c.create(u).compute(o,x)},e.EvpKDF)},12826:function(gt,X,a){var e,i,p;gt.exports=(e=a(10012),a(13270),i=e.lib.CipherParams,p=e.enc.Hex,e.format.Hex={stringify:function(x){return x.ciphertext.toString(p)},parse:function(x){var u=p.parse(x);return i.create({ciphertext:u})}},e.format.Hex)},94116:function(gt,X,a){var e;gt.exports=(e=a(10012),a(32078),a(990),e.HmacSHA256)},990:function(gt,X,a){var e,t;gt.exports=(e=a(10012),t=e.enc.Utf8,void(e.algo.HMAC=e.lib.Base.extend({init:function(o,x){o=this._hasher=new o.init,"string"==typeof x&&(x=t.parse(x));var u=o.blockSize,m=4*u;x.sigBytes>m&&(x=o.finalize(x)),x.clamp();for(var b=this._oKey=x.clone(),I=this._iKey=x.clone(),H=b.words,O=I.words,P=0;P<u;P++)H[P]^=1549556828,O[P]^=909522486;b.sigBytes=I.sigBytes=m,this.reset()},reset:function(){var o=this._hasher;o.reset(),o.update(this._iKey)},update:function(o){return this._hasher.update(o),this},finalize:function(o){var x=this._hasher,u=x.finalize(o);return x.reset(),x.finalize(this._oKey.clone().concat(u))}})))},77874:function(gt,X,a){var e;gt.exports=(e=a(10012),a(31802),a(74037),a(72454),a(85506),a(57523),a(92873),a(84446),a(32078),a(69811),a(24870),a(72913),a(26545),a(35558),a(990),a(53538),a(12066),a(13270),a(25228),a(43392),a(53584),a(42015),a(35594),a(77237),a(88501),a(14004),a(53297),a(42738),a(12826),a(18042),a(75769),a(41195),a(24969),a(77848),e)},74037:function(gt,X,a){var e;gt.exports=(e=a(10012),function(){if("function"==typeof ArrayBuffer){var l=e.lib.WordArray,i=l.init,t=l.init=function(p){if(p instanceof ArrayBuffer&&(p=new Uint8Array(p)),(p instanceof Int8Array||typeof Uint8ClampedArray<"u"&&p instanceof Uint8ClampedArray||p instanceof Int16Array||p instanceof Uint16Array||p instanceof Int32Array||p instanceof Uint32Array||p instanceof Float32Array||p instanceof Float64Array)&&(p=new Uint8Array(p.buffer,p.byteOffset,p.byteLength)),p instanceof Uint8Array){for(var c=p.byteLength,o=[],x=0;x<c;x++)o[x>>>2]|=p[x]<<24-x%4*8;i.call(this,o,c)}else i.apply(this,arguments)};t.prototype=l}}(),e.lib.WordArray)},92873:function(gt,X,a){var e;gt.exports=(e=a(10012),function(n){var s=e,l=s.lib,i=l.WordArray,t=l.Hasher,p=s.algo,c=[];!function(){for(var I=0;I<64;I++)c[I]=4294967296*n.abs(n.sin(I+1))|0}();var o=p.MD5=t.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(I,H){for(var O=0;O<16;O++){var P=H+O,G=I[P];I[P]=16711935&(G<<8|G>>>24)|4278255360&(G<<24|G>>>8)}var B=this._hash.words,ae=I[H+0],J=I[H+1],q=I[H+2],j=I[H+3],Y=I[H+4],K=I[H+5],ne=I[H+6],ee=I[H+7],$=I[H+8],ue=I[H+9],ge=I[H+10],Ke=I[H+11],at=I[H+12],Le=I[H+13],R=I[H+14],Te=I[H+15],me=B[0],Se=B[1],Ue=B[2],We=B[3];me=x(me,Se,Ue,We,ae,7,c[0]),We=x(We,me,Se,Ue,J,12,c[1]),Ue=x(Ue,We,me,Se,q,17,c[2]),Se=x(Se,Ue,We,me,j,22,c[3]),me=x(me,Se,Ue,We,Y,7,c[4]),We=x(We,me,Se,Ue,K,12,c[5]),Ue=x(Ue,We,me,Se,ne,17,c[6]),Se=x(Se,Ue,We,me,ee,22,c[7]),me=x(me,Se,Ue,We,$,7,c[8]),We=x(We,me,Se,Ue,ue,12,c[9]),Ue=x(Ue,We,me,Se,ge,17,c[10]),Se=x(Se,Ue,We,me,Ke,22,c[11]),me=x(me,Se,Ue,We,at,7,c[12]),We=x(We,me,Se,Ue,Le,12,c[13]),Ue=x(Ue,We,me,Se,R,17,c[14]),me=u(me,Se=x(Se,Ue,We,me,Te,22,c[15]),Ue,We,J,5,c[16]),We=u(We,me,Se,Ue,ne,9,c[17]),Ue=u(Ue,We,me,Se,Ke,14,c[18]),Se=u(Se,Ue,We,me,ae,20,c[19]),me=u(me,Se,Ue,We,K,5,c[20]),We=u(We,me,Se,Ue,ge,9,c[21]),Ue=u(Ue,We,me,Se,Te,14,c[22]),Se=u(Se,Ue,We,me,Y,20,c[23]),me=u(me,Se,Ue,We,ue,5,c[24]),We=u(We,me,Se,Ue,R,9,c[25]),Ue=u(Ue,We,me,Se,j,14,c[26]),Se=u(Se,Ue,We,me,$,20,c[27]),me=u(me,Se,Ue,We,Le,5,c[28]),We=u(We,me,Se,Ue,q,9,c[29]),Ue=u(Ue,We,me,Se,ee,14,c[30]),me=m(me,Se=u(Se,Ue,We,me,at,20,c[31]),Ue,We,K,4,c[32]),We=m(We,me,Se,Ue,$,11,c[33]),Ue=m(Ue,We,me,Se,Ke,16,c[34]),Se=m(Se,Ue,We,me,R,23,c[35]),me=m(me,Se,Ue,We,J,4,c[36]),We=m(We,me,Se,Ue,Y,11,c[37]),Ue=m(Ue,We,me,Se,ee,16,c[38]),Se=m(Se,Ue,We,me,ge,23,c[39]),me=m(me,Se,Ue,We,Le,4,c[40]),We=m(We,me,Se,Ue,ae,11,c[41]),Ue=m(Ue,We,me,Se,j,16,c[42]),Se=m(Se,Ue,We,me,ne,23,c[43]),me=m(me,Se,Ue,We,ue,4,c[44]),We=m(We,me,Se,Ue,at,11,c[45]),Ue=m(Ue,We,me,Se,Te,16,c[46]),me=b(me,Se=m(Se,Ue,We,me,q,23,c[47]),Ue,We,ae,6,c[48]),We=b(We,me,Se,Ue,ee,10,c[49]),Ue=b(Ue,We,me,Se,R,15,c[50]),Se=b(Se,Ue,We,me,K,21,c[51]),me=b(me,Se,Ue,We,at,6,c[52]),We=b(We,me,Se,Ue,j,10,c[53]),Ue=b(Ue,We,me,Se,ge,15,c[54]),Se=b(Se,Ue,We,me,J,21,c[55]),me=b(me,Se,Ue,We,$,6,c[56]),We=b(We,me,Se,Ue,Te,10,c[57]),Ue=b(Ue,We,me,Se,ne,15,c[58]),Se=b(Se,Ue,We,me,Le,21,c[59]),me=b(me,Se,Ue,We,Y,6,c[60]),We=b(We,me,Se,Ue,Ke,10,c[61]),Ue=b(Ue,We,me,Se,q,15,c[62]),Se=b(Se,Ue,We,me,ue,21,c[63]),B[0]=B[0]+me|0,B[1]=B[1]+Se|0,B[2]=B[2]+Ue|0,B[3]=B[3]+We|0},_doFinalize:function(){var I=this._data,H=I.words,O=8*this._nDataBytes,P=8*I.sigBytes;H[P>>>5]|=128<<24-P%32;var G=n.floor(O/4294967296),B=O;H[15+(P+64>>>9<<4)]=16711935&(G<<8|G>>>24)|4278255360&(G<<24|G>>>8),H[14+(P+64>>>9<<4)]=16711935&(B<<8|B>>>24)|4278255360&(B<<24|B>>>8),I.sigBytes=4*(H.length+1),this._process();for(var ae=this._hash,J=ae.words,q=0;q<4;q++){var j=J[q];J[q]=16711935&(j<<8|j>>>24)|4278255360&(j<<24|j>>>8)}return ae},clone:function(){var I=t.clone.call(this);return I._hash=this._hash.clone(),I}});function x(I,H,O,P,G,B,ae){var J=I+(H&O|~H&P)+G+ae;return(J<<B|J>>>32-B)+H}function u(I,H,O,P,G,B,ae){var J=I+(H&P|O&~P)+G+ae;return(J<<B|J>>>32-B)+H}function m(I,H,O,P,G,B,ae){var J=I+(H^O^P)+G+ae;return(J<<B|J>>>32-B)+H}function b(I,H,O,P,G,B,ae){var J=I+(O^(H|~P))+G+ae;return(J<<B|J>>>32-B)+H}s.MD5=t._createHelper(o),s.HmacMD5=t._createHmacHelper(o)}(Math),e.MD5)},25228:function(gt,X,a){var e;gt.exports=(e=a(10012),a(13270),e.mode.CFB=function(){var n=e.lib.BlockCipherMode.extend();function s(l,i,t,p){var c,o=this._iv;o?(c=o.slice(0),this._iv=void 0):c=this._prevBlock,p.encryptBlock(c,0);for(var x=0;x<t;x++)l[i+x]^=c[x]}return n.Encryptor=n.extend({processBlock:function(l,i){var t=this._cipher,p=t.blockSize;s.call(this,l,i,p,t),this._prevBlock=l.slice(i,i+p)}}),n.Decryptor=n.extend({processBlock:function(l,i){var t=this._cipher,p=t.blockSize,c=l.slice(i,i+p);s.call(this,l,i,p,t),this._prevBlock=c}}),n}(),e.mode.CFB)},53584:function(gt,X,a){var e;gt.exports=(e=a(10012),a(13270),e.mode.CTRGladman=function(){var n=e.lib.BlockCipherMode.extend();function s(t){if(255==(t>>24&255)){var p=t>>16&255,c=t>>8&255,o=255&t;255===p?(p=0,255===c?(c=0,255===o?o=0:++o):++c):++p,t=0,t+=p<<16,t+=c<<8,t+=o}else t+=1<<24;return t}var i=n.Encryptor=n.extend({processBlock:function(t,p){var c=this._cipher,o=c.blockSize,x=this._iv,u=this._counter;x&&(u=this._counter=x.slice(0),this._iv=void 0),function l(t){return 0===(t[0]=s(t[0]))&&(t[1]=s(t[1])),t}(u);var m=u.slice(0);c.encryptBlock(m,0);for(var b=0;b<o;b++)t[p+b]^=m[b]}});return n.Decryptor=i,n}(),e.mode.CTRGladman)},43392:function(gt,X,a){var n,s,e;gt.exports=(e=a(10012),a(13270),e.mode.CTR=(s=(n=e.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(l,i){var t=this._cipher,p=t.blockSize,c=this._iv,o=this._counter;c&&(o=this._counter=c.slice(0),this._iv=void 0);var x=o.slice(0);t.encryptBlock(x,0),o[p-1]=o[p-1]+1|0;for(var u=0;u<p;u++)l[i+u]^=x[u]}}),n.Decryptor=s,n),e.mode.CTR)},35594:function(gt,X,a){var n,e;gt.exports=(e=a(10012),a(13270),e.mode.ECB=((n=e.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(s,l){this._cipher.encryptBlock(s,l)}}),n.Decryptor=n.extend({processBlock:function(s,l){this._cipher.decryptBlock(s,l)}}),n),e.mode.ECB)},42015:function(gt,X,a){var n,s,e;gt.exports=(e=a(10012),a(13270),e.mode.OFB=(s=(n=e.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(l,i){var t=this._cipher,p=t.blockSize,c=this._iv,o=this._keystream;c&&(o=this._keystream=c.slice(0),this._iv=void 0),t.encryptBlock(o,0);for(var x=0;x<p;x++)l[i+x]^=o[x]}}),n.Decryptor=s,n),e.mode.OFB)},77237:function(gt,X,a){var e;gt.exports=(e=a(10012),a(13270),e.pad.AnsiX923={pad:function(n,s){var l=n.sigBytes,i=4*s,t=i-l%i,p=l+t-1;n.clamp(),n.words[p>>>2]|=t<<24-p%4*8,n.sigBytes+=t},unpad:function(n){n.sigBytes-=255&n.words[n.sigBytes-1>>>2]}},e.pad.Ansix923)},88501:function(gt,X,a){var e;gt.exports=(e=a(10012),a(13270),e.pad.Iso10126={pad:function(n,s){var l=4*s,i=l-n.sigBytes%l;n.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(n){n.sigBytes-=255&n.words[n.sigBytes-1>>>2]}},e.pad.Iso10126)},14004:function(gt,X,a){var e;gt.exports=(e=a(10012),a(13270),e.pad.Iso97971={pad:function(n,s){n.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(n,s)},unpad:function(n){e.pad.ZeroPadding.unpad(n),n.sigBytes--}},e.pad.Iso97971)},42738:function(gt,X,a){var e;gt.exports=(e=a(10012),a(13270),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding)},53297:function(gt,X,a){var e;gt.exports=(e=a(10012),a(13270),e.pad.ZeroPadding={pad:function(n,s){var l=4*s;n.clamp(),n.sigBytes+=l-(n.sigBytes%l||l)},unpad:function(n){var s=n.words,l=n.sigBytes-1;for(l=n.sigBytes-1;l>=0;l--)if(s[l>>>2]>>>24-l%4*8&255){n.sigBytes=l+1;break}}},e.pad.ZeroPadding)},53538:function(gt,X,a){var n,s,l,i,t,c,o,e;gt.exports=(e=a(10012),a(84446),a(990),i=(s=(n=e).lib).WordArray,c=(t=n.algo).HMAC,o=t.PBKDF2=(l=s.Base).extend({cfg:l.extend({keySize:4,hasher:t.SHA1,iterations:1}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,u){for(var m=this.cfg,b=c.create(m.hasher,x),I=i.create(),H=i.create([1]),O=I.words,P=H.words,G=m.keySize,B=m.iterations;O.length<G;){var ae=b.update(u).finalize(H);b.reset();for(var J=ae.words,q=J.length,j=ae,Y=1;Y<B;Y++){j=b.finalize(j),b.reset();for(var K=j.words,ne=0;ne<q;ne++)J[ne]^=K[ne]}I.concat(ae),P[0]++}return I.sigBytes=4*G,I}}),n.PBKDF2=function(x,u,m){return o.create(m).compute(x,u)},e.PBKDF2)},77848:function(gt,X,a){var e;gt.exports=(e=a(10012),a(85506),a(92873),a(12066),a(13270),function(){var n=e,l=n.lib.StreamCipher,t=[],p=[],c=[],o=n.algo.RabbitLegacy=l.extend({_doReset:function(){var u=this._key.words,m=this.cfg.iv,b=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],I=this._C=[u[2]<<16|u[2]>>>16,4294901760&u[0]|65535&u[1],u[3]<<16|u[3]>>>16,4294901760&u[1]|65535&u[2],u[0]<<16|u[0]>>>16,4294901760&u[2]|65535&u[3],u[1]<<16|u[1]>>>16,4294901760&u[3]|65535&u[0]];this._b=0;for(var H=0;H<4;H++)x.call(this);for(H=0;H<8;H++)I[H]^=b[H+4&7];if(m){var O=m.words,P=O[0],G=O[1],B=16711935&(P<<8|P>>>24)|4278255360&(P<<24|P>>>8),ae=16711935&(G<<8|G>>>24)|4278255360&(G<<24|G>>>8),J=B>>>16|4294901760&ae,q=ae<<16|65535&B;for(I[0]^=B,I[1]^=J,I[2]^=ae,I[3]^=q,I[4]^=B,I[5]^=J,I[6]^=ae,I[7]^=q,H=0;H<4;H++)x.call(this)}},_doProcessBlock:function(u,m){var b=this._X;x.call(this),t[0]=b[0]^b[5]>>>16^b[3]<<16,t[1]=b[2]^b[7]>>>16^b[5]<<16,t[2]=b[4]^b[1]>>>16^b[7]<<16,t[3]=b[6]^b[3]>>>16^b[1]<<16;for(var I=0;I<4;I++)t[I]=16711935&(t[I]<<8|t[I]>>>24)|4278255360&(t[I]<<24|t[I]>>>8),u[m+I]^=t[I]},blockSize:4,ivSize:2});function x(){for(var u=this._X,m=this._C,b=0;b<8;b++)p[b]=m[b];for(m[0]=m[0]+1295307597+this._b|0,m[1]=m[1]+3545052371+(m[0]>>>0<p[0]>>>0?1:0)|0,m[2]=m[2]+886263092+(m[1]>>>0<p[1]>>>0?1:0)|0,m[3]=m[3]+1295307597+(m[2]>>>0<p[2]>>>0?1:0)|0,m[4]=m[4]+3545052371+(m[3]>>>0<p[3]>>>0?1:0)|0,m[5]=m[5]+886263092+(m[4]>>>0<p[4]>>>0?1:0)|0,m[6]=m[6]+1295307597+(m[5]>>>0<p[5]>>>0?1:0)|0,m[7]=m[7]+3545052371+(m[6]>>>0<p[6]>>>0?1:0)|0,this._b=m[7]>>>0<p[7]>>>0?1:0,b=0;b<8;b++){var I=u[b]+m[b],H=65535&I,O=I>>>16;c[b]=((H*H>>>17)+H*O>>>15)+O*O^((4294901760&I)*I|0)+((65535&I)*I|0)}u[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,u[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,u[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,u[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,u[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,u[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,u[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,u[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}n.RabbitLegacy=l._createHelper(o)}(),e.RabbitLegacy)},24969:function(gt,X,a){var e;gt.exports=(e=a(10012),a(85506),a(92873),a(12066),a(13270),function(){var n=e,l=n.lib.StreamCipher,t=[],p=[],c=[],o=n.algo.Rabbit=l.extend({_doReset:function(){for(var u=this._key.words,m=this.cfg.iv,b=0;b<4;b++)u[b]=16711935&(u[b]<<8|u[b]>>>24)|4278255360&(u[b]<<24|u[b]>>>8);var I=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],H=this._C=[u[2]<<16|u[2]>>>16,4294901760&u[0]|65535&u[1],u[3]<<16|u[3]>>>16,4294901760&u[1]|65535&u[2],u[0]<<16|u[0]>>>16,4294901760&u[2]|65535&u[3],u[1]<<16|u[1]>>>16,4294901760&u[3]|65535&u[0]];for(this._b=0,b=0;b<4;b++)x.call(this);for(b=0;b<8;b++)H[b]^=I[b+4&7];if(m){var O=m.words,P=O[0],G=O[1],B=16711935&(P<<8|P>>>24)|4278255360&(P<<24|P>>>8),ae=16711935&(G<<8|G>>>24)|4278255360&(G<<24|G>>>8),J=B>>>16|4294901760&ae,q=ae<<16|65535&B;for(H[0]^=B,H[1]^=J,H[2]^=ae,H[3]^=q,H[4]^=B,H[5]^=J,H[6]^=ae,H[7]^=q,b=0;b<4;b++)x.call(this)}},_doProcessBlock:function(u,m){var b=this._X;x.call(this),t[0]=b[0]^b[5]>>>16^b[3]<<16,t[1]=b[2]^b[7]>>>16^b[5]<<16,t[2]=b[4]^b[1]>>>16^b[7]<<16,t[3]=b[6]^b[3]>>>16^b[1]<<16;for(var I=0;I<4;I++)t[I]=16711935&(t[I]<<8|t[I]>>>24)|4278255360&(t[I]<<24|t[I]>>>8),u[m+I]^=t[I]},blockSize:4,ivSize:2});function x(){for(var u=this._X,m=this._C,b=0;b<8;b++)p[b]=m[b];for(m[0]=m[0]+1295307597+this._b|0,m[1]=m[1]+3545052371+(m[0]>>>0<p[0]>>>0?1:0)|0,m[2]=m[2]+886263092+(m[1]>>>0<p[1]>>>0?1:0)|0,m[3]=m[3]+1295307597+(m[2]>>>0<p[2]>>>0?1:0)|0,m[4]=m[4]+3545052371+(m[3]>>>0<p[3]>>>0?1:0)|0,m[5]=m[5]+886263092+(m[4]>>>0<p[4]>>>0?1:0)|0,m[6]=m[6]+1295307597+(m[5]>>>0<p[5]>>>0?1:0)|0,m[7]=m[7]+3545052371+(m[6]>>>0<p[6]>>>0?1:0)|0,this._b=m[7]>>>0<p[7]>>>0?1:0,b=0;b<8;b++){var I=u[b]+m[b],H=65535&I,O=I>>>16;c[b]=((H*H>>>17)+H*O>>>15)+O*O^((4294901760&I)*I|0)+((65535&I)*I|0)}u[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,u[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,u[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,u[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,u[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,u[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,u[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,u[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}n.Rabbit=l._createHelper(o)}(),e.Rabbit)},41195:function(gt,X,a){var e;gt.exports=(e=a(10012),a(85506),a(92873),a(12066),a(13270),function(){var n=e,l=n.lib.StreamCipher,i=n.algo,t=i.RC4=l.extend({_doReset:function(){for(var o=this._key,x=o.words,u=o.sigBytes,m=this._S=[],b=0;b<256;b++)m[b]=b;b=0;for(var I=0;b<256;b++){var H=b%u,P=m[b];m[b]=m[I=(I+m[b]+(x[H>>>2]>>>24-H%4*8&255))%256],m[I]=P}this._i=this._j=0},_doProcessBlock:function(o,x){o[x]^=p.call(this)},keySize:8,ivSize:0});function p(){for(var o=this._S,x=this._i,u=this._j,m=0,b=0;b<4;b++){var I=o[x=(x+1)%256];o[x]=o[u=(u+o[x])%256],o[u]=I,m|=o[(o[x]+o[u])%256]<<24-8*b}return this._i=x,this._j=u,m}n.RC4=l._createHelper(t);var c=i.RC4Drop=t.extend({cfg:t.cfg.extend({drop:192}),_doReset:function(){t._doReset.call(this);for(var o=this.cfg.drop;o>0;o--)p.call(this)}});n.RC4Drop=l._createHelper(c)}(),e.RC4)},35558:function(gt,X,a){var e;gt.exports=(e=a(10012),function(n){var s=e,l=s.lib,i=l.WordArray,t=l.Hasher,p=s.algo,c=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),o=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),x=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),m=i.create([0,1518500249,1859775393,2400959708,2840853838]),b=i.create([1352829926,1548603684,1836072691,2053994217,0]),I=p.RIPEMD160=t.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(J,q){for(var j=0;j<16;j++){var Y=q+j,K=J[Y];J[Y]=16711935&(K<<8|K>>>24)|4278255360&(K<<24|K>>>8)}var Le,R,Te,me,Se,Ue,We,et,Et,lt,Vt,ne=this._hash.words,ee=m.words,$=b.words,ue=c.words,ge=o.words,Ke=x.words,at=u.words;for(Ue=Le=ne[0],We=R=ne[1],et=Te=ne[2],Et=me=ne[3],lt=Se=ne[4],j=0;j<80;j+=1)Vt=Le+J[q+ue[j]]|0,Vt+=j<16?H(R,Te,me)+ee[0]:j<32?O(R,Te,me)+ee[1]:j<48?P(R,Te,me)+ee[2]:j<64?G(R,Te,me)+ee[3]:B(R,Te,me)+ee[4],Vt=(Vt=ae(Vt|=0,Ke[j]))+Se|0,Le=Se,Se=me,me=ae(Te,10),Te=R,R=Vt,Vt=Ue+J[q+ge[j]]|0,Vt+=j<16?B(We,et,Et)+$[0]:j<32?G(We,et,Et)+$[1]:j<48?P(We,et,Et)+$[2]:j<64?O(We,et,Et)+$[3]:H(We,et,Et)+$[4],Vt=(Vt=ae(Vt|=0,at[j]))+lt|0,Ue=lt,lt=Et,Et=ae(et,10),et=We,We=Vt;Vt=ne[1]+Te+Et|0,ne[1]=ne[2]+me+lt|0,ne[2]=ne[3]+Se+Ue|0,ne[3]=ne[4]+Le+We|0,ne[4]=ne[0]+R+et|0,ne[0]=Vt},_doFinalize:function(){var J=this._data,q=J.words,j=8*this._nDataBytes,Y=8*J.sigBytes;q[Y>>>5]|=128<<24-Y%32,q[14+(Y+64>>>9<<4)]=16711935&(j<<8|j>>>24)|4278255360&(j<<24|j>>>8),J.sigBytes=4*(q.length+1),this._process();for(var K=this._hash,ne=K.words,ee=0;ee<5;ee++){var $=ne[ee];ne[ee]=16711935&($<<8|$>>>24)|4278255360&($<<24|$>>>8)}return K},clone:function(){var J=t.clone.call(this);return J._hash=this._hash.clone(),J}});function H(J,q,j){return J^q^j}function O(J,q,j){return J&q|~J&j}function P(J,q,j){return(J|~q)^j}function G(J,q,j){return J&j|q&~j}function B(J,q,j){return J^(q|~j)}function ae(J,q){return J<<q|J>>>32-q}s.RIPEMD160=t._createHelper(I),s.HmacRIPEMD160=t._createHmacHelper(I)}(Math),e.RIPEMD160)},84446:function(gt,X,a){var n,s,l,i,p,c,e;gt.exports=(e=a(10012),l=(s=(n=e).lib).WordArray,p=[],c=n.algo.SHA1=(i=s.Hasher).extend({_doReset:function(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(o,x){for(var u=this._hash.words,m=u[0],b=u[1],I=u[2],H=u[3],O=u[4],P=0;P<80;P++){if(P<16)p[P]=0|o[x+P];else{var G=p[P-3]^p[P-8]^p[P-14]^p[P-16];p[P]=G<<1|G>>>31}var B=(m<<5|m>>>27)+O+p[P];B+=P<20?1518500249+(b&I|~b&H):P<40?1859775393+(b^I^H):P<60?(b&I|b&H|I&H)-1894007588:(b^I^H)-899497514,O=H,H=I,I=b<<30|b>>>2,b=m,m=B}u[0]=u[0]+m|0,u[1]=u[1]+b|0,u[2]=u[2]+I|0,u[3]=u[3]+H|0,u[4]=u[4]+O|0},_doFinalize:function(){var o=this._data,x=o.words,u=8*this._nDataBytes,m=8*o.sigBytes;return x[m>>>5]|=128<<24-m%32,x[14+(m+64>>>9<<4)]=Math.floor(u/4294967296),x[15+(m+64>>>9<<4)]=u,o.sigBytes=4*x.length,this._process(),this._hash},clone:function(){var o=i.clone.call(this);return o._hash=this._hash.clone(),o}}),n.SHA1=i._createHelper(c),n.HmacSHA1=i._createHmacHelper(c),e.SHA1)},69811:function(gt,X,a){var n,l,i,t,p,e;gt.exports=(e=a(10012),a(32078),l=(n=e).lib.WordArray,p=(i=n.algo).SHA224=(t=i.SHA256).extend({_doReset:function(){this._hash=new l.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=t._doFinalize.call(this);return c.sigBytes-=4,c}}),n.SHA224=t._createHelper(p),n.HmacSHA224=t._createHmacHelper(p),e.SHA224)},32078:function(gt,X,a){var e;gt.exports=(e=a(10012),function(n){var s=e,l=s.lib,i=l.WordArray,t=l.Hasher,p=s.algo,c=[],o=[];!function(){function m(O){for(var P=n.sqrt(O),G=2;G<=P;G++)if(!(O%G))return!1;return!0}function b(O){return 4294967296*(O-(0|O))|0}for(var I=2,H=0;H<64;)m(I)&&(H<8&&(c[H]=b(n.pow(I,.5))),o[H]=b(n.pow(I,1/3)),H++),I++}();var x=[],u=p.SHA256=t.extend({_doReset:function(){this._hash=new i.init(c.slice(0))},_doProcessBlock:function(m,b){for(var I=this._hash.words,H=I[0],O=I[1],P=I[2],G=I[3],B=I[4],ae=I[5],J=I[6],q=I[7],j=0;j<64;j++){if(j<16)x[j]=0|m[b+j];else{var Y=x[j-15],ne=x[j-2];x[j]=((Y<<25|Y>>>7)^(Y<<14|Y>>>18)^Y>>>3)+x[j-7]+((ne<<15|ne>>>17)^(ne<<13|ne>>>19)^ne>>>10)+x[j-16]}var ue=H&O^H&P^O&P,at=q+((B<<26|B>>>6)^(B<<21|B>>>11)^(B<<7|B>>>25))+(B&ae^~B&J)+o[j]+x[j];q=J,J=ae,ae=B,B=G+at|0,G=P,P=O,O=H,H=at+(((H<<30|H>>>2)^(H<<19|H>>>13)^(H<<10|H>>>22))+ue)|0}I[0]=I[0]+H|0,I[1]=I[1]+O|0,I[2]=I[2]+P|0,I[3]=I[3]+G|0,I[4]=I[4]+B|0,I[5]=I[5]+ae|0,I[6]=I[6]+J|0,I[7]=I[7]+q|0},_doFinalize:function(){var m=this._data,b=m.words,I=8*this._nDataBytes,H=8*m.sigBytes;return b[H>>>5]|=128<<24-H%32,b[14+(H+64>>>9<<4)]=n.floor(I/4294967296),b[15+(H+64>>>9<<4)]=I,m.sigBytes=4*b.length,this._process(),this._hash},clone:function(){var m=t.clone.call(this);return m._hash=this._hash.clone(),m}});s.SHA256=t._createHelper(u),s.HmacSHA256=t._createHmacHelper(u)}(Math),e.SHA256)},26545:function(gt,X,a){var e;gt.exports=(e=a(10012),a(31802),function(n){var s=e,l=s.lib,i=l.WordArray,t=l.Hasher,c=s.x64.Word,o=s.algo,x=[],u=[],m=[];!function(){for(var H=1,O=0,P=0;P<24;P++){x[H+5*O]=(P+1)*(P+2)/2%64;var B=(2*H+3*O)%5;H=O%5,O=B}for(H=0;H<5;H++)for(O=0;O<5;O++)u[H+5*O]=O+(2*H+3*O)%5*5;for(var ae=1,J=0;J<24;J++){for(var q=0,j=0,Y=0;Y<7;Y++){if(1&ae){var K=(1<<Y)-1;K<32?j^=1<<K:q^=1<<K-32}128&ae?ae=ae<<1^113:ae<<=1}m[J]=c.create(q,j)}}();var b=[];!function(){for(var H=0;H<25;H++)b[H]=c.create()}();var I=o.SHA3=t.extend({cfg:t.cfg.extend({outputLength:512}),_doReset:function(){for(var H=this._state=[],O=0;O<25;O++)H[O]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(H,O){for(var P=this._state,G=this.blockSize/2,B=0;B<G;B++){var ae=H[O+2*B],J=H[O+2*B+1];ae=16711935&(ae<<8|ae>>>24)|4278255360&(ae<<24|ae>>>8),(q=P[B]).high^=J=16711935&(J<<8|J>>>24)|4278255360&(J<<24|J>>>8),q.low^=ae}for(var j=0;j<24;j++){for(var Y=0;Y<5;Y++){for(var K=0,ne=0,ee=0;ee<5;ee++)K^=(q=P[Y+5*ee]).high,ne^=q.low;var $=b[Y];$.high=K,$.low=ne}for(Y=0;Y<5;Y++){var ue=b[(Y+4)%5],ge=b[(Y+1)%5],Ke=ge.high,at=ge.low;for(K=ue.high^(Ke<<1|at>>>31),ne=ue.low^(at<<1|Ke>>>31),ee=0;ee<5;ee++)(q=P[Y+5*ee]).high^=K,q.low^=ne}for(var Le=1;Le<25;Le++){var R=(q=P[Le]).high,Te=q.low,me=x[Le];me<32?(K=R<<me|Te>>>32-me,ne=Te<<me|R>>>32-me):(K=Te<<me-32|R>>>64-me,ne=R<<me-32|Te>>>64-me);var Se=b[u[Le]];Se.high=K,Se.low=ne}var Ue=b[0],We=P[0];for(Ue.high=We.high,Ue.low=We.low,Y=0;Y<5;Y++)for(ee=0;ee<5;ee++){var et=b[Le=Y+5*ee],Et=b[(Y+1)%5+5*ee],lt=b[(Y+2)%5+5*ee];(q=P[Le]).high=et.high^~Et.high&lt.high,q.low=et.low^~Et.low&lt.low}var q,Vt=m[j];(q=P[0]).high^=Vt.high,q.low^=Vt.low}},_doFinalize:function(){var H=this._data,O=H.words,G=8*H.sigBytes,B=32*this.blockSize;O[G>>>5]|=1<<24-G%32,O[(n.ceil((G+1)/B)*B>>>5)-1]|=128,H.sigBytes=4*O.length,this._process();for(var ae=this._state,J=this.cfg.outputLength/8,q=J/8,j=[],Y=0;Y<q;Y++){var K=ae[Y],ne=K.high,ee=K.low;ne=16711935&(ne<<8|ne>>>24)|4278255360&(ne<<24|ne>>>8),j.push(ee=16711935&(ee<<8|ee>>>24)|4278255360&(ee<<24|ee>>>8)),j.push(ne)}return new i.init(j,J)},clone:function(){for(var H=t.clone.call(this),O=H._state=this._state.slice(0),P=0;P<25;P++)O[P]=O[P].clone();return H}});s.SHA3=t._createHelper(I),s.HmacSHA3=t._createHmacHelper(I)}(Math),e.SHA3)},72913:function(gt,X,a){var n,s,l,i,t,p,c,e;gt.exports=(e=a(10012),a(31802),a(24870),l=(s=(n=e).x64).Word,i=s.WordArray,c=(t=n.algo).SHA384=(p=t.SHA512).extend({_doReset:function(){this._hash=new i.init([new l.init(3418070365,3238371032),new l.init(1654270250,914150663),new l.init(2438529370,812702999),new l.init(355462360,4144912697),new l.init(1731405415,4290775857),new l.init(2394180231,1750603025),new l.init(3675008525,1694076839),new l.init(1203062813,3204075428)])},_doFinalize:function(){var o=p._doFinalize.call(this);return o.sigBytes-=16,o}}),n.SHA384=p._createHelper(c),n.HmacSHA384=p._createHmacHelper(c),e.SHA384)},24870:function(gt,X,a){var e;gt.exports=(e=a(10012),a(31802),function(){var n=e,l=n.lib.Hasher,i=n.x64,t=i.Word,p=i.WordArray,c=n.algo;function o(){return t.create.apply(t,arguments)}var x=[o(1116352408,3609767458),o(1899447441,602891725),o(3049323471,3964484399),o(3921009573,2173295548),o(961987163,4081628472),o(1508970993,3053834265),o(2453635748,2937671579),o(2870763221,3664609560),o(3624381080,2734883394),o(310598401,1164996542),o(607225278,1323610764),o(1426881987,3590304994),o(1925078388,4068182383),o(2162078206,991336113),o(2614888103,633803317),o(3248222580,3479774868),o(3835390401,2666613458),o(4022224774,944711139),o(264347078,2341262773),o(604807628,2007800933),o(770255983,1495990901),o(1249150122,1856431235),o(1555081692,3175218132),o(1996064986,2198950837),o(2554220882,3999719339),o(2821834349,766784016),o(2952996808,2566594879),o(3210313671,3203337956),o(3336571891,1034457026),o(3584528711,2466948901),o(113926993,3758326383),o(338241895,168717936),o(666307205,1188179964),o(773529912,1546045734),o(1294757372,1522805485),o(1396182291,2643833823),o(1695183700,2343527390),o(1986661051,1014477480),o(2177026350,1206759142),o(2456956037,344077627),o(2730485921,1290863460),o(2820302411,3158454273),o(3259730800,3505952657),o(3345764771,106217008),o(3516065817,3606008344),o(3600352804,1432725776),o(4094571909,1467031594),o(275423344,851169720),o(430227734,3100823752),o(506948616,1363258195),o(659060556,3750685593),o(883997877,3785050280),o(958139571,3318307427),o(1322822218,3812723403),o(1537002063,2003034995),o(1747873779,3602036899),o(1955562222,1575990012),o(2024104815,1125592928),o(2227730452,2716904306),o(2361852424,442776044),o(2428436474,593698344),o(2756734187,3733110249),o(3204031479,2999351573),o(3329325298,3815920427),o(3391569614,3928383900),o(3515267271,566280711),o(3940187606,3454069534),o(4118630271,4000239992),o(116418474,1914138554),o(174292421,2731055270),o(289380356,3203993006),o(460393269,320620315),o(685471733,587496836),o(852142971,1086792851),o(1017036298,365543100),o(1126000580,2618297676),o(1288033470,3409855158),o(1501505948,4234509866),o(1607167915,987167468),o(1816402316,1246189591)],u=[];!function(){for(var b=0;b<80;b++)u[b]=o()}();var m=c.SHA512=l.extend({_doReset:function(){this._hash=new p.init([new t.init(1779033703,4089235720),new t.init(3144134277,2227873595),new t.init(1013904242,4271175723),new t.init(2773480762,1595750129),new t.init(1359893119,2917565137),new t.init(2600822924,725511199),new t.init(528734635,4215389547),new t.init(1541459225,327033209)])},_doProcessBlock:function(b,I){for(var H=this._hash.words,O=H[0],P=H[1],G=H[2],B=H[3],ae=H[4],J=H[5],q=H[6],j=H[7],Y=O.high,K=O.low,ne=P.high,ee=P.low,$=G.high,ue=G.low,ge=B.high,Ke=B.low,at=ae.high,Le=ae.low,R=J.high,Te=J.low,me=q.high,Se=q.low,Ue=j.high,We=j.low,et=Y,Et=K,lt=ne,Vt=ee,r=$,Z=ue,Pt=ge,Oe=Ke,ye=at,ve=Le,ft=R,Dt=Te,Rn=me,ti=Se,Xt=Ue,Je=We,dt=0;dt<80;dt++){var Ie,ot,ct=u[dt];if(dt<16)ot=ct.high=0|b[I+2*dt],Ie=ct.low=0|b[I+2*dt+1];else{var tn=u[dt-15],yi=tn.high,ni=tn.low,bn=(ni>>>1|yi<<31)^(ni>>>8|yi<<24)^(ni>>>7|yi<<25),vt=u[dt-2],nn=vt.high,rn=vt.low,Oo=(rn>>>19|nn<<13)^(rn<<3|nn>>>29)^(rn>>>6|nn<<26),no=u[dt-7],Ii=u[dt-16],En=Ii.low;ct.high=ot=(ot=(ot=((yi>>>1|ni<<31)^(yi>>>8|ni<<24)^yi>>>7)+no.high+((Ie=bn+no.low)>>>0<bn>>>0?1:0))+((nn>>>19|rn<<13)^(nn<<3|rn>>>29)^nn>>>6)+((Ie+=Oo)>>>0<Oo>>>0?1:0))+Ii.high+((Ie+=En)>>>0<En>>>0?1:0),ct.low=Ie}var Un,co=ye&ft^~ye&Rn,yn=ve&Dt^~ve&ti,ln=et&lt^et&r^lt&r,$e=(Et>>>28|et<<4)^(Et<<30|et>>>2)^(Et<<25|et>>>7),tt=x[dt],Qt=tt.low,Yt=Xt+((ye>>>14|ve<<18)^(ye>>>18|ve<<14)^(ye<<23|ve>>>9))+((Un=Je+((ve>>>14|ye<<18)^(ve>>>18|ye<<14)^(ve<<23|ye>>>9)))>>>0<Je>>>0?1:0),Fn=$e+(Et&Vt^Et&Z^Vt&Z);Xt=Rn,Je=ti,Rn=ft,ti=Dt,ft=ye,Dt=ve,ye=Pt+(Yt=(Yt=(Yt=Yt+co+((Un+=yn)>>>0<yn>>>0?1:0))+tt.high+((Un+=Qt)>>>0<Qt>>>0?1:0))+ot+((Un+=Ie)>>>0<Ie>>>0?1:0))+((ve=Oe+Un|0)>>>0<Oe>>>0?1:0)|0,Pt=r,Oe=Z,r=lt,Z=Vt,lt=et,Vt=Et,et=Yt+(((et>>>28|Et<<4)^(et<<30|Et>>>2)^(et<<25|Et>>>7))+ln+(Fn>>>0<$e>>>0?1:0))+((Et=Un+Fn|0)>>>0<Un>>>0?1:0)|0}K=O.low=K+Et,O.high=Y+et+(K>>>0<Et>>>0?1:0),ee=P.low=ee+Vt,P.high=ne+lt+(ee>>>0<Vt>>>0?1:0),ue=G.low=ue+Z,G.high=$+r+(ue>>>0<Z>>>0?1:0),Ke=B.low=Ke+Oe,B.high=ge+Pt+(Ke>>>0<Oe>>>0?1:0),Le=ae.low=Le+ve,ae.high=at+ye+(Le>>>0<ve>>>0?1:0),Te=J.low=Te+Dt,J.high=R+ft+(Te>>>0<Dt>>>0?1:0),Se=q.low=Se+ti,q.high=me+Rn+(Se>>>0<ti>>>0?1:0),We=j.low=We+Je,j.high=Ue+Xt+(We>>>0<Je>>>0?1:0)},_doFinalize:function(){var b=this._data,I=b.words,H=8*this._nDataBytes,O=8*b.sigBytes;return I[O>>>5]|=128<<24-O%32,I[30+(O+128>>>10<<5)]=Math.floor(H/4294967296),I[31+(O+128>>>10<<5)]=H,b.sigBytes=4*I.length,this._process(),this._hash.toX32()},clone:function(){var b=l.clone.call(this);return b._hash=this._hash.clone(),b},blockSize:32});n.SHA512=l._createHelper(m),n.HmacSHA512=l._createHmacHelper(m)}(),e.SHA512)},75769:function(gt,X,a){var e;gt.exports=(e=a(10012),a(85506),a(92873),a(12066),a(13270),function(){var n=e,s=n.lib,l=s.WordArray,i=s.BlockCipher,t=n.algo,p=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],o=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],x=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],m=t.DES=i.extend({_doReset:function(){for(var P=this._key.words,G=[],B=0;B<56;B++){var ae=p[B]-1;G[B]=P[ae>>>5]>>>31-ae%32&1}for(var J=this._subKeys=[],q=0;q<16;q++){var j=J[q]=[],Y=o[q];for(B=0;B<24;B++)j[B/6|0]|=G[(c[B]-1+Y)%28]<<31-B%6,j[4+(B/6|0)]|=G[28+(c[B+24]-1+Y)%28]<<31-B%6;for(j[0]=j[0]<<1|j[0]>>>31,B=1;B<7;B++)j[B]=j[B]>>>4*(B-1)+3;j[7]=j[7]<<5|j[7]>>>27}var K=this._invSubKeys=[];for(B=0;B<16;B++)K[B]=J[15-B]},encryptBlock:function(O,P){this._doCryptBlock(O,P,this._subKeys)},decryptBlock:function(O,P){this._doCryptBlock(O,P,this._invSubKeys)},_doCryptBlock:function(O,P,G){this._lBlock=O[P],this._rBlock=O[P+1],b.call(this,4,252645135),b.call(this,16,65535),I.call(this,2,858993459),I.call(this,8,16711935),b.call(this,1,1431655765);for(var B=0;B<16;B++){for(var ae=G[B],J=this._lBlock,q=this._rBlock,j=0,Y=0;Y<8;Y++)j|=x[Y][((q^ae[Y])&u[Y])>>>0];this._lBlock=q,this._rBlock=J^j}var K=this._lBlock;this._lBlock=this._rBlock,this._rBlock=K,b.call(this,1,1431655765),I.call(this,8,16711935),I.call(this,2,858993459),b.call(this,16,65535),b.call(this,4,252645135),O[P]=this._lBlock,O[P+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function b(O,P){var G=(this._lBlock>>>O^this._rBlock)&P;this._rBlock^=G,this._lBlock^=G<<O}function I(O,P){var G=(this._rBlock>>>O^this._lBlock)&P;this._lBlock^=G,this._rBlock^=G<<O}n.DES=i._createHelper(m);var H=t.TripleDES=i.extend({_doReset:function(){var P=this._key.words;if(2!==P.length&&4!==P.length&&P.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var G=P.slice(0,2),B=P.length<4?P.slice(0,2):P.slice(2,4),ae=P.length<6?P.slice(0,2):P.slice(4,6);this._des1=m.createEncryptor(l.create(G)),this._des2=m.createEncryptor(l.create(B)),this._des3=m.createEncryptor(l.create(ae))},encryptBlock:function(O,P){this._des1.encryptBlock(O,P),this._des2.decryptBlock(O,P),this._des3.encryptBlock(O,P)},decryptBlock:function(O,P){this._des3.decryptBlock(O,P),this._des2.encryptBlock(O,P),this._des1.decryptBlock(O,P)},keySize:6,ivSize:2,blockSize:2});n.TripleDES=i._createHelper(H)}(),e.TripleDES)},31802:function(gt,X,a){var l,i,t,p,e;gt.exports=(e=a(10012),i=(l=e.lib).Base,t=l.WordArray,(p=e.x64={}).Word=i.extend({init:function(x,u){this.high=x,this.low=u}}),p.WordArray=i.extend({init:function(x,u){x=this.words=x||[],this.sigBytes=null!=u?u:8*x.length},toX32:function(){for(var x=this.words,u=x.length,m=[],b=0;b<u;b++){var I=x[b];m.push(I.high),m.push(I.low)}return t.create(m,this.sigBytes)},clone:function(){for(var x=i.clone.call(this),u=x.words=this.words.slice(0),m=u.length,b=0;b<m;b++)u[b]=u[b].clone();return x}}),e)},52973:gt=>{"use strict";var X=function(P){return function a(O){return!!O&&"object"==typeof O}(P)&&!function e(O){var P=Object.prototype.toString.call(O);return"[object RegExp]"===P||"[object Date]"===P||function l(O){return O.$$typeof===s}(O)}(P)},s="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function t(O,P){return!1!==P.clone&&P.isMergeableObject(O)?I(function i(O){return Array.isArray(O)?[]:{}}(O),O,P):O}function p(O,P,G){return O.concat(P).map(function(B){return t(B,G)})}function x(O){return Object.keys(O).concat(function o(O){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(O).filter(function(P){return Object.propertyIsEnumerable.call(O,P)}):[]}(O))}function u(O,P){try{return P in O}catch{return!1}}function I(O,P,G){(G=G||{}).arrayMerge=G.arrayMerge||p,G.isMergeableObject=G.isMergeableObject||X,G.cloneUnlessOtherwiseSpecified=t;var B=Array.isArray(P);return B===Array.isArray(O)?B?G.arrayMerge(O,P,G):function b(O,P,G){var B={};return G.isMergeableObject(O)&&x(O).forEach(function(ae){B[ae]=t(O[ae],G)}),x(P).forEach(function(ae){(function m(O,P){return u(O,P)&&!(Object.hasOwnProperty.call(O,P)&&Object.propertyIsEnumerable.call(O,P))})(O,ae)||(B[ae]=u(O,ae)&&G.isMergeableObject(P[ae])?function c(O,P){if(!P.customMerge)return I;var G=P.customMerge(O);return"function"==typeof G?G:I}(ae,G)(O[ae],P[ae],G):t(P[ae],G))}),B}(O,P,G):t(P,G)}I.all=function(P,G){if(!Array.isArray(P))throw new Error("first argument should be an array");return P.reduce(function(B,ae){return I(B,ae,G)},{})},gt.exports=I},87206:gt=>{"use strict";var X={single_source_shortest_paths:function(a,e,n){var s={},l={};l[e]=0;var t,p,c,o,x,m,i=X.PriorityQueue.make();for(i.push(e,0);!i.empty();)for(c in o=(t=i.pop()).cost,x=a[p=t.value]||{})x.hasOwnProperty(c)&&(m=o+x[c],(typeof l[c]>"u"||l[c]>m)&&(l[c]=m,i.push(c,m),s[c]=p));if(typeof n<"u"&&typeof l[n]>"u"){var H=["Could not find a path from ",e," to ",n,"."].join("");throw new Error(H)}return s},extract_shortest_path_from_predecessor_list:function(a,e){for(var n=[],s=e;s;)n.push(s),s=a[s];return n.reverse(),n},find_path:function(a,e,n){var s=X.single_source_shortest_paths(a,e,n);return X.extract_shortest_path_from_predecessor_list(s,n)},PriorityQueue:{make:function(a){var s,e=X.PriorityQueue,n={};for(s in a=a||{},e)e.hasOwnProperty(s)&&(n[s]=e[s]);return n.queue=[],n.sorter=a.sorter||e.default_sorter,n},default_sorter:function(a,e){return a.cost-e.cost},push:function(a,e){this.queue.push({value:a,cost:e}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};gt.exports=X},76119:gt=>{"use strict";gt.exports=function(a){for(var e=[],n=a.length,s=0;s<n;s++){var l=a.charCodeAt(s);if(l>=55296&&l<=56319&&n>s+1){var i=a.charCodeAt(s+1);i>=56320&&i<=57343&&(l=1024*(l-55296)+i-56320+65536,s+=1)}l<128?e.push(l):l<2048?(e.push(l>>6|192),e.push(63&l|128)):l<55296||l>=57344&&l<65536?(e.push(l>>12|224),e.push(l>>6&63|128),e.push(63&l|128)):l>=65536&&l<=1114111?(e.push(l>>18|240),e.push(l>>12&63|128),e.push(l>>6&63|128),e.push(63&l|128)):e.push(239,191,189)}return new Uint8Array(e).buffer}},15646:(gt,X,a)=>{gt=a.nmd(gt);var n="__lodash_hash_undefined__",s=9007199254740991,l="[object Arguments]",t="[object Boolean]",p="[object Date]",o="[object Function]",x="[object GeneratorFunction]",u="[object Map]",m="[object Number]",b="[object Object]",I="[object Promise]",H="[object RegExp]",O="[object Set]",P="[object String]",G="[object Symbol]",B="[object WeakMap]",ae="[object ArrayBuffer]",J="[object DataView]",q="[object Float32Array]",j="[object Float64Array]",Y="[object Int8Array]",K="[object Int16Array]",ne="[object Int32Array]",ee="[object Uint8Array]",$="[object Uint8ClampedArray]",ue="[object Uint16Array]",ge="[object Uint32Array]",at=/\w*$/,Le=/^\[object .+?Constructor\]$/,R=/^(?:0|[1-9]\d*)$/,Te={};Te[l]=Te["[object Array]"]=Te[ae]=Te[J]=Te[t]=Te[p]=Te[q]=Te[j]=Te[Y]=Te[K]=Te[ne]=Te[u]=Te[m]=Te[b]=Te[H]=Te[O]=Te[P]=Te[G]=Te[ee]=Te[$]=Te[ue]=Te[ge]=!0,Te["[object Error]"]=Te[o]=Te[B]=!1;var me="object"==typeof global&&global&&global.Object===Object&&global,Se="object"==typeof self&&self&&self.Object===Object&&self,Ue=me||Se||Function("return this")(),We=X&&!X.nodeType&&X,et=We&&gt&&!gt.nodeType&&gt,Et=et&&et.exports===We;function lt(Tn,Qi){return Tn.set(Qi[0],Qi[1]),Tn}function Vt(Tn,Qi){return Tn.add(Qi),Tn}function Pt(Tn,Qi,To,sr){var oi=-1,Vi=Tn?Tn.length:0;for(sr&&Vi&&(To=Tn[++oi]);++oi<Vi;)To=Qi(To,Tn[oi],oi,Tn);return To}function ve(Tn){var Qi=!1;if(null!=Tn&&"function"!=typeof Tn.toString)try{Qi=!!(Tn+"")}catch{}return Qi}function ft(Tn){var Qi=-1,To=Array(Tn.size);return Tn.forEach(function(sr,oi){To[++Qi]=[oi,sr]}),To}function Dt(Tn,Qi){return function(To){return Tn(Qi(To))}}function Rn(Tn){var Qi=-1,To=Array(Tn.size);return Tn.forEach(function(sr){To[++Qi]=sr}),To}var Tn,ti=Array.prototype,Xt=Function.prototype,Je=Object.prototype,dt=Ue["__core-js_shared__"],Ie=(Tn=/[^.]+$/.exec(dt&&dt.keys&&dt.keys.IE_PROTO||""))?"Symbol(src)_1."+Tn:"",ot=Xt.toString,ct=Je.hasOwnProperty,tn=Je.toString,yi=RegExp("^"+ot.call(ct).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ni=Et?Ue.Buffer:void 0,sn=Ue.Symbol,bn=Ue.Uint8Array,vt=Dt(Object.getPrototypeOf,Object),nn=Object.create,rn=Je.propertyIsEnumerable,ii=ti.splice,Oo=Object.getOwnPropertySymbols,no=ni?ni.isBuffer:void 0,Li=Dt(Object.keys,Object),ji=wi(Ue,"DataView"),Ii=wi(Ue,"Map"),_i=wi(Ue,"Promise"),En=wi(Ue,"Set"),co=wi(Ue,"WeakMap"),yn=wi(Object,"create"),ln=Ra(ji),He=Ra(Ii),rt=Ra(_i),$e=Ra(En),Ve=Ra(co),Ce=sn?sn.prototype:void 0,tt=Ce?Ce.valueOf:void 0;function ht(Tn){var Qi=-1,To=Tn?Tn.length:0;for(this.clear();++Qi<To;){var sr=Tn[Qi];this.set(sr[0],sr[1])}}function Bt(Tn){var Qi=-1,To=Tn?Tn.length:0;for(this.clear();++Qi<To;){var sr=Tn[Qi];this.set(sr[0],sr[1])}}function mo(Tn){var Qi=-1,To=Tn?Tn.length:0;for(this.clear();++Qi<To;){var sr=Tn[Qi];this.set(sr[0],sr[1])}}function Vn(Tn){this.__data__=new Bt(Tn)}function Dn(Tn,Qi,To){var sr=Tn[Qi];(!ct.call(Tn,Qi)||!Hs(sr,To)||void 0===To&&!(Qi in Tn))&&(Tn[Qi]=To)}function Wt(Tn,Qi){for(var To=Tn.length;To--;)if(Hs(Tn[To][0],Qi))return To;return-1}function Fi(Tn,Qi,To,sr,oi,Vi,Ti){var Hi;if(sr&&(Hi=Vi?sr(Tn,oi,Vi,Ti):sr(Tn)),void 0!==Hi)return Hi;if(!Ds(Tn))return Tn;var Do=ms(Tn);if(Do){if(Hi=function ki(Tn){var Qi=Tn.length,To=Tn.constructor(Qi);return Qi&&"string"==typeof Tn[0]&&ct.call(Tn,"index")&&(To.index=Tn.index,To.input=Tn.input),To}(Tn),!Qi)return function _r(Tn,Qi){var To=-1,sr=Tn.length;for(Qi||(Qi=Array(sr));++To<sr;)Qi[To]=Tn[To];return Qi}(Tn,Hi)}else{var $o=xi(Tn),yr=$o==o||$o==x;if(Vs(Tn))return function Bi(Tn,Qi){if(Qi)return Tn.slice();var To=new Tn.constructor(Tn.length);return Tn.copy(To),To}(Tn,Qi);if($o==b||$o==l||yr&&!Vi){if(ve(Tn))return Vi?Tn:{};if(Hi=function wo(Tn){return"function"!=typeof Tn.constructor||qr(Tn)?{}:function ui(Tn){return Ds(Tn)?nn(Tn):{}}(vt(Tn))}(yr?{}:Tn),!Qi)return function In(Tn,Qi){return hr(Tn,zo(Tn),Qi)}(Tn,function kn(Tn,Qi){return Tn&&hr(Qi,ka(Qi),Tn)}(Hi,Tn))}else{if(!Te[$o])return Vi?Tn:{};Hi=function Ei(Tn,Qi,To,sr){var oi=Tn.constructor;switch(Qi){case ae:return $n(Tn);case t:case p:return new oi(+Tn);case J:return function Ui(Tn,Qi){var To=Qi?$n(Tn.buffer):Tn.buffer;return new Tn.constructor(To,Tn.byteOffset,Tn.byteLength)}(Tn,sr);case q:case j:case Y:case K:case ne:case ee:case $:case ue:case ge:return function eo(Tn,Qi){var To=Qi?$n(Tn.buffer):Tn.buffer;return new Tn.constructor(To,Tn.byteOffset,Tn.length)}(Tn,sr);case u:return function Xo(Tn,Qi,To){return Pt(Qi?To(ft(Tn),!0):ft(Tn),lt,new Tn.constructor)}(Tn,sr,To);case m:case P:return new oi(Tn);case H:return function bt(Tn){var Qi=new Tn.constructor(Tn.source,at.exec(Tn));return Qi.lastIndex=Tn.lastIndex,Qi}(Tn);case O:return function an(Tn,Qi,To){return Pt(Qi?To(Rn(Tn),!0):Rn(Tn),Vt,new Tn.constructor)}(Tn,sr,To);case G:return function Wn(Tn){return tt?Object(tt.call(Tn)):{}}(Tn)}}(Tn,$o,Fi,Qi)}}Ti||(Ti=new Vn);var Vr=Ti.get(Tn);if(Vr)return Vr;if(Ti.set(Tn,Hi),!Do)var da=To?function Wr(Tn){return function Fo(Tn,Qi,To){var sr=Qi(Tn);return ms(Tn)?sr:function Z(Tn,Qi){for(var To=-1,sr=Qi.length,oi=Tn.length;++To<sr;)Tn[oi+To]=Qi[To];return Tn}(sr,To(Tn))}(Tn,ka,zo)}(Tn):ka(Tn);return function r(Tn,Qi){for(var To=-1,sr=Tn?Tn.length:0;++To<sr&&!1!==Qi(Tn[To],To,Tn););}(da||Tn,function(Za,ma){da&&(Za=Tn[ma=Za]),Dn(Hi,ma,Fi(Za,Qi,To,sr,ma,Tn,Ti))}),Hi}function $n(Tn){var Qi=new Tn.constructor(Tn.byteLength);return new bn(Qi).set(new bn(Tn)),Qi}function hr(Tn,Qi,To,sr){To||(To={});for(var oi=-1,Vi=Qi.length;++oi<Vi;){var Ti=Qi[oi],Hi=sr?sr(To[Ti],Tn[Ti],Ti,To,Tn):void 0;Dn(To,Ti,void 0===Hi?Tn[Ti]:Hi)}return To}function qi(Tn,Qi){var To=Tn.__data__;return function Cr(Tn){var Qi=typeof Tn;return"string"==Qi||"number"==Qi||"symbol"==Qi||"boolean"==Qi?"__proto__"!==Tn:null===Tn}(Qi)?To["string"==typeof Qi?"string":"hash"]:To.map}function wi(Tn,Qi){var To=function ye(Tn,Qi){return Tn?.[Qi]}(Tn,Qi);return function Jn(Tn){return!(!Ds(Tn)||function vr(Tn){return!!Ie&&Ie in Tn}(Tn))&&(ls(Tn)||ve(Tn)?yi:Le).test(Ra(Tn))}(To)?To:void 0}ht.prototype.clear=function Qt(){this.__data__=yn?yn(null):{}},ht.prototype.delete=function Un(Tn){return this.has(Tn)&&delete this.__data__[Tn]},ht.prototype.get=function Yt(Tn){var Qi=this.__data__;if(yn){var To=Qi[Tn];return To===n?void 0:To}return ct.call(Qi,Tn)?Qi[Tn]:void 0},ht.prototype.has=function Fn(Tn){var Qi=this.__data__;return yn?void 0!==Qi[Tn]:ct.call(Qi,Tn)},ht.prototype.set=function yt(Tn,Qi){return this.__data__[Tn]=yn&&void 0===Qi?n:Qi,this},Bt.prototype.clear=function li(){this.__data__=[]},Bt.prototype.delete=function si(Tn){var Qi=this.__data__,To=Wt(Qi,Tn);return!(To<0||(To==Qi.length-1?Qi.pop():ii.call(Qi,To,1),0))},Bt.prototype.get=function oo(Tn){var Qi=this.__data__,To=Wt(Qi,Tn);return To<0?void 0:Qi[To][1]},Bt.prototype.has=function _o(Tn){return Wt(this.__data__,Tn)>-1},Bt.prototype.set=function Hn(Tn,Qi){var To=this.__data__,sr=Wt(To,Tn);return sr<0?To.push([Tn,Qi]):To[sr][1]=Qi,this},mo.prototype.clear=function vn(){this.__data__={hash:new ht,map:new(Ii||Bt),string:new ht}},mo.prototype.delete=function Ji(Tn){return qi(this,Tn).delete(Tn)},mo.prototype.get=function wn(Tn){return qi(this,Tn).get(Tn)},mo.prototype.has=function po(Tn){return qi(this,Tn).has(Tn)},mo.prototype.set=function Kn(Tn,Qi){return qi(this,Tn).set(Tn,Qi),this},Vn.prototype.clear=function Wi(){this.__data__=new Bt},Vn.prototype.delete=function Ft(Tn){return this.__data__.delete(Tn)},Vn.prototype.get=function Oi(Tn){return this.__data__.get(Tn)},Vn.prototype.has=function On(Tn){return this.__data__.has(Tn)},Vn.prototype.set=function _n(Tn,Qi){var To=this.__data__;if(To instanceof Bt){var sr=To.__data__;if(!Ii||sr.length<199)return sr.push([Tn,Qi]),this;To=this.__data__=new mo(sr)}return To.set(Tn,Qi),this};var zo=Oo?Dt(Oo,Object):function hs(){return[]},xi=function At(Tn){return tn.call(Tn)};function ho(Tn,Qi){return!!(Qi=Qi??s)&&("number"==typeof Tn||R.test(Tn))&&Tn>-1&&Tn%1==0&&Tn<Qi}function qr(Tn){var Qi=Tn&&Tn.constructor;return Tn===("function"==typeof Qi&&Qi.prototype||Je)}function Ra(Tn){if(null!=Tn){try{return ot.call(Tn)}catch{}try{return Tn+""}catch{}}return""}function Hs(Tn,Qi){return Tn===Qi||Tn!=Tn&&Qi!=Qi}(ji&&xi(new ji(new ArrayBuffer(1)))!=J||Ii&&xi(new Ii)!=u||_i&&xi(_i.resolve())!=I||En&&xi(new En)!=O||co&&xi(new co)!=B)&&(xi=function(Tn){var Qi=tn.call(Tn),To=Qi==b?Tn.constructor:void 0,sr=To?Ra(To):void 0;if(sr)switch(sr){case ln:return J;case He:return u;case rt:return I;case $e:return O;case Ve:return B}return Qi});var ms=Array.isArray;function ja(Tn){return null!=Tn&&function Fa(Tn){return"number"==typeof Tn&&Tn>-1&&Tn%1==0&&Tn<=s}(Tn.length)&&!ls(Tn)}var Vs=no||function Ua(){return!1};function ls(Tn){var Qi=Ds(Tn)?tn.call(Tn):"";return Qi==o||Qi==x}function Ds(Tn){var Qi=typeof Tn;return!!Tn&&("object"==Qi||"function"==Qi)}function ka(Tn){return ja(Tn)?function st(Tn,Qi){var To=ms(Tn)||function Cs(Tn){return function el(Tn){return function dl(Tn){return!!Tn&&"object"==typeof Tn}(Tn)&&ja(Tn)}(Tn)&&ct.call(Tn,"callee")&&(!rn.call(Tn,"callee")||tn.call(Tn)==l)}(Tn)?function Oe(Tn,Qi){for(var To=-1,sr=Array(Tn);++To<Tn;)sr[To]=Qi(To);return sr}(Tn.length,String):[],sr=To.length,oi=!!sr;for(var Vi in Tn)(Qi||ct.call(Tn,Vi))&&(!oi||"length"!=Vi&&!ho(Vi,sr))&&To.push(Vi);return To}(Tn):function Bn(Tn){if(!qr(Tn))return Li(Tn);var Qi=[];for(var To in Object(Tn))ct.call(Tn,To)&&"constructor"!=To&&Qi.push(To);return Qi}(Tn)}gt.exports=function ss(Tn){return Fi(Tn,!0,!0)}},11786:(gt,X,a)=>{gt=a.nmd(gt);var s="__lodash_hash_undefined__",l=1,i=2,t=1/0,p=9007199254740991,x="[object Arguments]",u="[object Array]",m="[object Boolean]",b="[object Date]",I="[object Error]",H="[object Function]",O="[object GeneratorFunction]",P="[object Map]",G="[object Number]",B="[object Object]",ae="[object Promise]",J="[object RegExp]",q="[object Set]",j="[object String]",Y="[object Symbol]",K="[object WeakMap]",ne="[object ArrayBuffer]",ee="[object DataView]",Se=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ue=/^\w*$/,We=/^\./,et=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,lt=/^\s+|\s+$/g,Vt=/\\(\\)?/g,r=/^[-+]0x[0-9a-f]+$/i,Z=/^0b[01]+$/i,Pt=/^\[object .+?Constructor\]$/,Oe=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,ve={};ve["[object Float32Array]"]=ve["[object Float64Array]"]=ve["[object Int8Array]"]=ve["[object Int16Array]"]=ve["[object Int32Array]"]=ve["[object Uint8Array]"]=ve["[object Uint8ClampedArray]"]=ve["[object Uint16Array]"]=ve["[object Uint32Array]"]=!0,ve[x]=ve[u]=ve[ne]=ve[m]=ve[ee]=ve[b]=ve[I]=ve[H]=ve[P]=ve[G]=ve[B]=ve[J]=ve[q]=ve[j]=ve[K]=!1;var ft=parseInt,Dt="object"==typeof global&&global&&global.Object===Object&&global,Rn="object"==typeof self&&self&&self.Object===Object&&self,ti=Dt||Rn||Function("return this")(),Xt=X&&!X.nodeType&&X,Je=Xt&&gt&&!gt.nodeType&&gt,Ie=Je&&Je.exports===Xt&&Dt.process,ot=function(){try{return Ie&&Ie.binding("util")}catch{}}(),ct=ot&&ot.isTypedArray;function tn(Pi,xo){for(var lr=-1,Ir=Pi?Pi.length:0;++lr<Ir;)if(xo(Pi[lr],lr,Pi))return!0;return!1}function nn(Pi){var xo=!1;if(null!=Pi&&"function"!=typeof Pi.toString)try{xo=!!(Pi+"")}catch{}return xo}function rn(Pi){var xo=-1,lr=Array(Pi.size);return Pi.forEach(function(Ir,Da){lr[++xo]=[Da,Ir]}),lr}function Oo(Pi){var xo=-1,lr=Array(Pi.size);return Pi.forEach(function(Ir){lr[++xo]=Ir}),lr}var Pi,no=Array.prototype,Li=Function.prototype,ji=Object.prototype,Ii=ti["__core-js_shared__"],_i=(Pi=/[^.]+$/.exec(Ii&&Ii.keys&&Ii.keys.IE_PROTO||""))?"Symbol(src)_1."+Pi:"",En=Li.toString,co=ji.hasOwnProperty,yn=ji.toString,ln=RegExp("^"+En.call(co).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=ti.Symbol,rt=ti.Uint8Array,$e=ji.propertyIsEnumerable,Ve=no.splice,Ce=function ii(Pi,xo){return function(lr){return Pi(xo(lr))}}(Object.keys,Object),tt=Math.max,ht=Vs(ti,"DataView"),Qt=Vs(ti,"Map"),Un=Vs(ti,"Promise"),Yt=Vs(ti,"Set"),Fn=Vs(ti,"WeakMap"),yt=Vs(Object,"create"),Bt=oi(ht),li=oi(Qt),si=oi(Un),oo=oi(Yt),_o=oi(Fn),Hn=He?He.prototype:void 0,mo=Hn?Hn.valueOf:void 0,vn=Hn?Hn.toString:void 0;function Ji(Pi){var xo=-1,lr=Pi?Pi.length:0;for(this.clear();++xo<lr;){var Ir=Pi[xo];this.set(Ir[0],Ir[1])}}function Ft(Pi){var xo=-1,lr=Pi?Pi.length:0;for(this.clear();++xo<lr;){var Ir=Pi[xo];this.set(Ir[0],Ir[1])}}function Wt(Pi){var xo=-1,lr=Pi?Pi.length:0;for(this.clear();++xo<lr;){var Ir=Pi[xo];this.set(Ir[0],Ir[1])}}function Jn(Pi){var xo=-1,lr=Pi?Pi.length:0;for(this.__data__=new Wt;++xo<lr;)this.add(Pi[xo])}function $n(Pi){this.__data__=new Ft(Pi)}function _r(Pi,xo){for(var lr=Pi.length;lr--;)if(Do(Pi[lr][0],xo))return lr;return-1}function hr(Pi,xo){for(var lr=0,Ir=(xo=dl(xo,Pi)?[xo]:Ra(xo)).length;null!=Pi&&lr<Ir;)Pi=Pi[sr(xo[lr++])];return lr&&lr==Ir?Pi:void 0}function Wr(Pi,xo){return null!=Pi&&xo in Object(Pi)}function qi(Pi,xo,lr,Ir,Da){return Pi===xo||(null==Pi||null==xo||!Wa(Pi)&&!Yi(xo)?Pi!=Pi&&xo!=xo:function wi(Pi,xo,lr,Ir,Da,ia){var as=yr(Pi),Is=yr(xo),ba=u,Ss=u;as||(ba=(ba=ls(Pi))==x?B:ba),Is||(Ss=(Ss=ls(xo))==x?B:Ss);var Ca=ba==B&&!nn(Pi),Ia=Ss==B&&!nn(xo),wa=ba==Ss;if(wa&&!Ca)return ia||(ia=new $n),as||Cn(Pi)?Hs(Pi,xo,lr,Ir,Da,ia):function Cs(Pi,xo,lr,Ir,Da,ia,as){switch(lr){case ee:if(Pi.byteLength!=xo.byteLength||Pi.byteOffset!=xo.byteOffset)return!1;Pi=Pi.buffer,xo=xo.buffer;case ne:return!(Pi.byteLength!=xo.byteLength||!Ir(new rt(Pi),new rt(xo)));case m:case b:case G:return Do(+Pi,+xo);case I:return Pi.name==xo.name&&Pi.message==xo.message;case J:case j:return Pi==xo+"";case P:var Is=rn;case q:if(Is||(Is=Oo),Pi.size!=xo.size&&!(ia&i))return!1;var Ss=as.get(Pi);if(Ss)return Ss==xo;ia|=l,as.set(Pi,xo);var Ca=Hs(Is(Pi),Is(xo),Ir,Da,ia,as);return as.delete(Pi),Ca;case Y:if(mo)return mo.call(Pi)==mo.call(xo)}return!1}(Pi,xo,ba,lr,Ir,Da,ia);if(!(Da&i)){var Va=Ca&&co.call(Pi,"__wrapped__"),zn=Ia&&co.call(xo,"__wrapped__");if(Va||zn){var di=Va?Pi.value():Pi,cn=zn?xo.value():xo;return ia||(ia=new $n),lr(di,cn,Ir,Da,ia)}}return!!wa&&(ia||(ia=new $n),function ms(Pi,xo,lr,Ir,Da,ia){var as=Da&i,Is=cs(Pi),ba=Is.length;if(ba!=cs(xo).length&&!as)return!1;for(var Ia=ba;Ia--;){var wa=Is[Ia];if(!(as?wa in xo:co.call(xo,wa)))return!1}var Va=ia.get(Pi);if(Va&&ia.get(xo))return Va==xo;var zn=!0;ia.set(Pi,xo),ia.set(xo,Pi);for(var di=as;++Ia<ba;){var cn=Pi[wa=Is[Ia]],Zi=xo[wa];if(Ir)var Eo=as?Ir(Zi,cn,wa,xo,Pi,ia):Ir(cn,Zi,wa,Pi,xo,ia);if(!(void 0===Eo?cn===Zi||lr(cn,Zi,Ir,Da,ia):Eo)){zn=!1;break}di||(di="constructor"==wa)}if(zn&&!di){var oa=Pi.constructor,Nr=xo.constructor;oa!=Nr&&"constructor"in Pi&&"constructor"in xo&&!("function"==typeof oa&&oa instanceof oa&&"function"==typeof Nr&&Nr instanceof Nr)&&(zn=!1)}return ia.delete(Pi),ia.delete(xo),zn}(Pi,xo,lr,Ir,Da,ia))}(Pi,xo,qi,lr,Ir,Da))}function wo(Pi){return"function"==typeof Pi?Pi:null==Pi?ys:"object"==typeof Pi?yr(Pi)?function Cr(Pi,xo){return dl(Pi)&&Tn(xo)?Qi(sr(Pi),xo):function(lr){var Ir=function Qr(Pi,xo,lr){var Ir=null==Pi?void 0:hr(Pi,xo);return void 0===Ir?lr:Ir}(lr,Pi);return void 0===Ir&&Ir===xo?function Aa(Pi,xo){return null!=Pi&&function Fa(Pi,xo,lr){for(var Ir,Da=-1,as=(xo=dl(xo,Pi)?[xo]:Ra(xo)).length;++Da<as;){var ia=sr(xo[Da]);if(!(Ir=null!=Pi&&lr(Pi,ia)))break;Pi=Pi[ia]}return Ir||!!(as=Pi?Pi.length:0)&&ma(as)&&Ds(ia,as)&&(yr(Pi)||$o(Pi))}(Pi,xo,Wr)}(lr,Pi):qi(xo,Ir,void 0,l|i)}}(Pi[0],Pi[1]):function ho(Pi){var xo=function el(Pi){for(var xo=cs(Pi),lr=xo.length;lr--;){var Ir=xo[lr],Da=Pi[Ir];xo[lr]=[Ir,Da,Tn(Da)]}return xo}(Pi);return 1==xo.length&&xo[0][2]?Qi(xo[0][0],xo[0][1]):function(lr){return lr===Pi||function zo(Pi,xo,lr,Ir){var Da=lr.length,ia=Da,as=!Ir;if(null==Pi)return!ia;for(Pi=Object(Pi);Da--;){var Is=lr[Da];if(as&&Is[2]?Is[1]!==Pi[Is[0]]:!(Is[0]in Pi))return!1}for(;++Da<ia;){var ba=(Is=lr[Da])[0],Ss=Pi[ba],Ca=Is[1];if(as&&Is[2]){if(void 0===Ss&&!(ba in Pi))return!1}else{var Ia=new $n;if(Ir)var wa=Ir(Ss,Ca,ba,Pi,xo,Ia);if(!(void 0===wa?qi(Ca,Ss,Ir,l|i,Ia):wa))return!1}}return!0}(lr,Pi,xo)}}(Pi):function zr(Pi){return dl(Pi)?function ni(Pi){return function(xo){return xo?.[Pi]}}(sr(Pi)):function vr(Pi){return function(xo){return hr(xo,Pi)}}(Pi)}(Pi)}function Ra(Pi){return yr(Pi)?Pi:To(Pi)}function Hs(Pi,xo,lr,Ir,Da,ia){var as=Da&i,Is=Pi.length,ba=xo.length;if(Is!=ba&&!(as&&ba>Is))return!1;var Ss=ia.get(Pi);if(Ss&&ia.get(xo))return Ss==xo;var Ca=-1,Ia=!0,wa=Da&l?new Jn:void 0;for(ia.set(Pi,xo),ia.set(xo,Pi);++Ca<Is;){var Va=Pi[Ca],zn=xo[Ca];if(Ir)var di=as?Ir(zn,Va,Ca,xo,Pi,ia):Ir(Va,zn,Ca,Pi,xo,ia);if(void 0!==di){if(di)continue;Ia=!1;break}if(wa){if(!tn(xo,function(cn,Zi){if(!wa.has(Zi)&&(Va===cn||lr(Va,cn,Ir,Da,ia)))return wa.add(Zi)})){Ia=!1;break}}else if(Va!==zn&&!lr(Va,zn,Ir,Da,ia)){Ia=!1;break}}return ia.delete(Pi),ia.delete(xo),Ia}function ja(Pi,xo){var lr=Pi.__data__;return function ka(Pi){var xo=typeof Pi;return"string"==xo||"number"==xo||"symbol"==xo||"boolean"==xo?"__proto__"!==Pi:null===Pi}(xo)?lr["string"==typeof xo?"string":"hash"]:lr.map}function Vs(Pi,xo){var lr=function vt(Pi,xo){return Pi?.[xo]}(Pi,xo);return function xi(Pi){return!(!Wa(Pi)||function hs(Pi){return!!_i&&_i in Pi}(Pi))&&(Za(Pi)||nn(Pi)?ln:Pt).test(oi(Pi))}(lr)?lr:void 0}Ji.prototype.clear=function wn(){this.__data__=yt?yt(null):{}},Ji.prototype.delete=function po(Pi){return this.has(Pi)&&delete this.__data__[Pi]},Ji.prototype.get=function Kn(Pi){var xo=this.__data__;if(yt){var lr=xo[Pi];return lr===s?void 0:lr}return co.call(xo,Pi)?xo[Pi]:void 0},Ji.prototype.has=function Vn(Pi){var xo=this.__data__;return yt?void 0!==xo[Pi]:co.call(xo,Pi)},Ji.prototype.set=function Wi(Pi,xo){return this.__data__[Pi]=yt&&void 0===xo?s:xo,this},Ft.prototype.clear=function Oi(){this.__data__=[]},Ft.prototype.delete=function On(Pi){var xo=this.__data__,lr=_r(xo,Pi);return!(lr<0||(lr==xo.length-1?xo.pop():Ve.call(xo,lr,1),0))},Ft.prototype.get=function _n(Pi){var xo=this.__data__,lr=_r(xo,Pi);return lr<0?void 0:xo[lr][1]},Ft.prototype.has=function st(Pi){return _r(this.__data__,Pi)>-1},Ft.prototype.set=function Dn(Pi,xo){var lr=this.__data__,Ir=_r(lr,Pi);return Ir<0?lr.push([Pi,xo]):lr[Ir][1]=xo,this},Wt.prototype.clear=function kn(){this.__data__={hash:new Ji,map:new(Qt||Ft),string:new Ji}},Wt.prototype.delete=function Fi(Pi){return ja(this,Pi).delete(Pi)},Wt.prototype.get=function ui(Pi){return ja(this,Pi).get(Pi)},Wt.prototype.has=function Fo(Pi){return ja(this,Pi).has(Pi)},Wt.prototype.set=function At(Pi,xo){return ja(this,Pi).set(Pi,xo),this},Jn.prototype.add=Jn.prototype.push=function Bn(Pi){return this.__data__.set(Pi,s),this},Jn.prototype.has=function Bi(Pi){return this.__data__.has(Pi)},$n.prototype.clear=function Ui(){this.__data__=new Ft},$n.prototype.delete=function Xo(Pi){return this.__data__.delete(Pi)},$n.prototype.get=function bt(Pi){return this.__data__.get(Pi)},$n.prototype.has=function an(Pi){return this.__data__.has(Pi)},$n.prototype.set=function Wn(Pi,xo){var lr=this.__data__;if(lr instanceof Ft){var Ir=lr.__data__;if(!Qt||Ir.length<199)return Ir.push([Pi,xo]),this;lr=this.__data__=new Wt(Ir)}return lr.set(Pi,xo),this};var ls=function In(Pi){return yn.call(Pi)};function Ds(Pi,xo){return!!(xo=xo??p)&&("number"==typeof Pi||ye.test(Pi))&&Pi>-1&&Pi%1==0&&Pi<xo}function dl(Pi,xo){if(yr(Pi))return!1;var lr=typeof Pi;return!("number"!=lr&&"symbol"!=lr&&"boolean"!=lr&&null!=Pi&&!jo(Pi))||Ue.test(Pi)||!Se.test(Pi)||null!=xo&&Pi in Object(xo)}function Tn(Pi){return Pi==Pi&&!Wa(Pi)}function Qi(Pi,xo){return function(lr){return null!=lr&&lr[Pi]===xo&&(void 0!==xo||Pi in Object(lr))}}(ht&&ls(new ht(new ArrayBuffer(1)))!=ee||Qt&&ls(new Qt)!=P||Un&&ls(Un.resolve())!=ae||Yt&&ls(new Yt)!=q||Fn&&ls(new Fn)!=K)&&(ls=function(Pi){var xo=yn.call(Pi),lr=xo==B?Pi.constructor:void 0,Ir=lr?oi(lr):void 0;if(Ir)switch(Ir){case Bt:return ee;case li:return P;case si:return ae;case oo:return q;case _o:return K}return xo});var To=Hi(function(Pi){Pi=function kr(Pi){return null==Pi?"":function qr(Pi){if("string"==typeof Pi)return Pi;if(jo(Pi))return vn?vn.call(Pi):"";var xo=Pi+"";return"0"==xo&&1/Pi==-t?"-0":xo}(Pi)}(Pi);var xo=[];return We.test(Pi)&&xo.push(""),Pi.replace(et,function(lr,Ir,Da,ia){xo.push(Da?ia.replace(Vt,"$1"):Ir||lr)}),xo});function sr(Pi){if("string"==typeof Pi||jo(Pi))return Pi;var xo=Pi+"";return"0"==xo&&1/Pi==-t?"-0":xo}function oi(Pi){if(null!=Pi){try{return En.call(Pi)}catch{}try{return Pi+""}catch{}}return""}var Ti=function ss(Pi){return function(xo,lr,Ir){var Da=Object(xo);if(!Vr(xo)){var ia=wo(lr);xo=cs(xo),lr=function(Is){return ia(Da[Is],Is,Da)}}var as=Pi(xo,lr,Ir);return as>-1?Da[ia?xo[as]:as]:void 0}}(function Vi(Pi,xo,lr){var Ir=Pi?Pi.length:0;if(!Ir)return-1;var Da=null==lr?0:function fo(Pi){var xo=function uo(Pi){return Pi?(Pi=function Jo(Pi){if("number"==typeof Pi)return Pi;if(jo(Pi))return NaN;if(Wa(Pi)){var xo="function"==typeof Pi.valueOf?Pi.valueOf():Pi;Pi=Wa(xo)?xo+"":xo}if("string"!=typeof Pi)return 0===Pi?Pi:+Pi;Pi=Pi.replace(lt,"");var lr=Z.test(Pi);return lr||Oe.test(Pi)?ft(Pi.slice(2),lr?2:8):r.test(Pi)?NaN:+Pi}(Pi),Pi===t||Pi===-t?17976931348623157e292*(Pi<0?-1:1):Pi==Pi?Pi:0):0===Pi?Pi:0}(Pi),lr=xo%1;return xo==xo?lr?xo-lr:xo:0}(lr);return Da<0&&(Da=tt(Ir+Da,0)),function yi(Pi,xo,lr,Ir){for(var Da=Pi.length,ia=lr+(Ir?1:-1);Ir?ia--:++ia<Da;)if(xo(Pi[ia],ia,Pi))return ia;return-1}(Pi,wo(xo),Da)});function Hi(Pi,xo){if("function"!=typeof Pi||xo&&"function"!=typeof xo)throw new TypeError("Expected a function");var lr=function(){var Ir=arguments,Da=xo?xo.apply(this,Ir):Ir[0],ia=lr.cache;if(ia.has(Da))return ia.get(Da);var as=Pi.apply(this,Ir);return lr.cache=ia.set(Da,as),as};return lr.cache=new(Hi.Cache||Wt),lr}function Do(Pi,xo){return Pi===xo||Pi!=Pi&&xo!=xo}function $o(Pi){return function da(Pi){return Yi(Pi)&&Vr(Pi)}(Pi)&&co.call(Pi,"callee")&&(!$e.call(Pi,"callee")||yn.call(Pi)==x)}Hi.Cache=Wt;var yr=Array.isArray;function Vr(Pi){return null!=Pi&&ma(Pi.length)&&!Za(Pi)}function Za(Pi){var xo=Wa(Pi)?yn.call(Pi):"";return xo==H||xo==O}function ma(Pi){return"number"==typeof Pi&&Pi>-1&&Pi%1==0&&Pi<=p}function Wa(Pi){var xo=typeof Pi;return!!Pi&&("object"==xo||"function"==xo)}function Yi(Pi){return!!Pi&&"object"==typeof Pi}function jo(Pi){return"symbol"==typeof Pi||Yi(Pi)&&yn.call(Pi)==Y}var Cn=ct?function bn(Pi){return function(xo){return Pi(xo)}}(ct):function ki(Pi){return Yi(Pi)&&ma(Pi.length)&&!!ve[yn.call(Pi)]};function cs(Pi){return Vr(Pi)?function eo(Pi,xo){var lr=yr(Pi)||$o(Pi)?function sn(Pi,xo){for(var lr=-1,Ir=Array(Pi);++lr<Pi;)Ir[lr]=xo(lr);return Ir}(Pi.length,String):[],Ir=lr.length,Da=!!Ir;for(var ia in Pi)(xo||co.call(Pi,ia))&&(!Da||"length"!=ia&&!Ds(ia,Ir))&&lr.push(ia);return lr}(Pi):function Ei(Pi){if(!function Ua(Pi){var xo=Pi&&Pi.constructor;return Pi===("function"==typeof xo&&xo.prototype||ji)}(Pi))return Ce(Pi);var xo=[];for(var lr in Object(Pi))co.call(Pi,lr)&&"constructor"!=lr&&xo.push(lr);return xo}(Pi)}function ys(Pi){return Pi}gt.exports=Ti},12650:(gt,X,a)=>{gt=a.nmd(gt);var n="__lodash_hash_undefined__",s=1,l=2,i=9007199254740991,t="[object Arguments]",p="[object Array]",c="[object AsyncFunction]",o="[object Boolean]",x="[object Date]",u="[object Error]",m="[object Function]",b="[object GeneratorFunction]",I="[object Map]",H="[object Number]",O="[object Null]",P="[object Object]",G="[object Promise]",B="[object Proxy]",ae="[object RegExp]",J="[object Set]",q="[object String]",Y="[object Undefined]",K="[object WeakMap]",ne="[object ArrayBuffer]",ee="[object DataView]",Ue=/^\[object .+?Constructor\]$/,We=/^(?:0|[1-9]\d*)$/,et={};et["[object Float32Array]"]=et["[object Float64Array]"]=et["[object Int8Array]"]=et["[object Int16Array]"]=et["[object Int32Array]"]=et["[object Uint8Array]"]=et["[object Uint8ClampedArray]"]=et["[object Uint16Array]"]=et["[object Uint32Array]"]=!0,et[t]=et[p]=et[ne]=et[o]=et[ee]=et[x]=et[u]=et[m]=et[I]=et[H]=et[P]=et[ae]=et[J]=et[q]=et[K]=!1;var Et="object"==typeof global&&global&&global.Object===Object&&global,lt="object"==typeof self&&self&&self.Object===Object&&self,Vt=Et||lt||Function("return this")(),r=X&&!X.nodeType&&X,Z=r&&gt&&!gt.nodeType&&gt,Pt=Z&&Z.exports===r,Oe=Pt&&Et.process,ye=function(){try{return Oe&&Oe.binding&&Oe.binding("util")}catch{}}(),ve=ye&&ye.isTypedArray;function Rn(Tn,Qi){for(var To=-1,sr=null==Tn?0:Tn.length;++To<sr;)if(Qi(Tn[To],To,Tn))return!0;return!1}function Je(Tn,Qi){return Tn.has(Qi)}function Ie(Tn){var Qi=-1,To=Array(Tn.size);return Tn.forEach(function(sr,oi){To[++Qi]=[oi,sr]}),To}function ct(Tn){var Qi=-1,To=Array(Tn.size);return Tn.forEach(function(sr){To[++Qi]=sr}),To}var Tn,tn=Array.prototype,ni=Object.prototype,sn=Vt["__core-js_shared__"],bn=Function.prototype.toString,vt=ni.hasOwnProperty,nn=(Tn=/[^.]+$/.exec(sn&&sn.keys&&sn.keys.IE_PROTO||""))?"Symbol(src)_1."+Tn:"",rn=ni.toString,ii=RegExp("^"+bn.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Oo=Pt?Vt.Buffer:void 0,no=Vt.Symbol,Li=Vt.Uint8Array,ji=ni.propertyIsEnumerable,Ii=tn.splice,_i=no?no.toStringTag:void 0,En=Object.getOwnPropertySymbols,co=Oo?Oo.isBuffer:void 0,yn=function ot(Tn,Qi){return function(To){return Tn(Qi(To))}}(Object.keys,Object),ln=zo(Vt,"DataView"),He=zo(Vt,"Map"),rt=zo(Vt,"Promise"),$e=zo(Vt,"Set"),Ve=zo(Vt,"WeakMap"),Ce=zo(Object,"create"),tt=Ra(ln),ht=Ra(He),Qt=Ra(rt),Un=Ra($e),Yt=Ra(Ve),Fn=no?no.prototype:void 0,yt=Fn?Fn.valueOf:void 0;function Bt(Tn){var Qi=-1,To=null==Tn?0:Tn.length;for(this.clear();++Qi<To;){var sr=Tn[Qi];this.set(sr[0],sr[1])}}function mo(Tn){var Qi=-1,To=null==Tn?0:Tn.length;for(this.clear();++Qi<To;){var sr=Tn[Qi];this.set(sr[0],sr[1])}}function Vn(Tn){var Qi=-1,To=null==Tn?0:Tn.length;for(this.clear();++Qi<To;){var sr=Tn[Qi];this.set(sr[0],sr[1])}}function st(Tn){var Qi=-1,To=null==Tn?0:Tn.length;for(this.__data__=new Vn;++Qi<To;)this.add(Tn[Qi])}function kn(Tn){var Qi=this.__data__=new mo(Tn);this.size=Qi.size}function Bi(Tn,Qi){for(var To=Tn.length;To--;)if(ss(Tn[To][0],Qi))return To;return-1}function Ui(Tn){return null==Tn?void 0===Tn?Y:O:_i&&_i in Object(Tn)?function xi(Tn){var Qi=vt.call(Tn,_i),To=Tn[_i];try{Tn[_i]=void 0;var sr=!0}catch{}var oi=rn.call(Tn);return sr&&(Qi?Tn[_i]=To:delete Tn[_i]),oi}(Tn):function qr(Tn){return rn.call(Tn)}(Tn)}function Xo(Tn){return Ds(Tn)&&Ui(Tn)==t}function bt(Tn,Qi,To,sr,oi){return Tn===Qi||(null==Tn||null==Qi||!Ds(Tn)&&!Ds(Qi)?Tn!=Tn&&Qi!=Qi:function an(Tn,Qi,To,sr,oi,Vi){var Ti=Cs(Tn),Hi=Cs(Qi),Do=Ti?p:wo(Tn),$o=Hi?p:wo(Qi),yr=(Do=Do==t?P:Do)==P,Vr=($o=$o==t?P:$o)==P,da=Do==$o;if(da&&ja(Tn)){if(!ja(Qi))return!1;Ti=!0,yr=!1}if(da&&!yr)return Vi||(Vi=new kn),Ti||dl(Tn)?hr(Tn,Qi,To,sr,oi,Vi):function In(Tn,Qi,To,sr,oi,Vi,Ti){switch(To){case ee:if(Tn.byteLength!=Qi.byteLength||Tn.byteOffset!=Qi.byteOffset)return!1;Tn=Tn.buffer,Qi=Qi.buffer;case ne:return!(Tn.byteLength!=Qi.byteLength||!Vi(new Li(Tn),new Li(Qi)));case o:case x:case H:return ss(+Tn,+Qi);case u:return Tn.name==Qi.name&&Tn.message==Qi.message;case ae:case q:return Tn==Qi+"";case I:var Hi=Ie;case J:if(Hi||(Hi=ct),Tn.size!=Qi.size&&!(sr&s))return!1;var $o=Ti.get(Tn);if($o)return $o==Qi;sr|=l,Ti.set(Tn,Qi);var yr=hr(Hi(Tn),Hi(Qi),sr,oi,Vi,Ti);return Ti.delete(Tn),yr;case"[object Symbol]":if(yt)return yt.call(Tn)==yt.call(Qi)}return!1}(Tn,Qi,Do,To,sr,oi,Vi);if(!(To&s)){var Za=yr&&vt.call(Tn,"__wrapped__"),ma=Vr&&vt.call(Qi,"__wrapped__");if(Za||ma){var Wa=Za?Tn.value():Tn,Yi=ma?Qi.value():Qi;return Vi||(Vi=new kn),oi(Wa,Yi,To,sr,Vi)}}return!!da&&(Vi||(Vi=new kn),function Wr(Tn,Qi,To,sr,oi,Vi){var Ti=To&s,Hi=qi(Tn),Do=Hi.length;if(Do!=qi(Qi).length&&!Ti)return!1;for(var Vr=Do;Vr--;){var da=Hi[Vr];if(!(Ti?da in Qi:vt.call(Qi,da)))return!1}var Za=Vi.get(Tn);if(Za&&Vi.get(Qi))return Za==Qi;var ma=!0;Vi.set(Tn,Qi),Vi.set(Qi,Tn);for(var Wa=Ti;++Vr<Do;){var Yi=Tn[da=Hi[Vr]],jo=Qi[da];if(sr)var Cn=Ti?sr(jo,Yi,da,Qi,Tn,Vi):sr(Yi,jo,da,Tn,Qi,Vi);if(!(void 0===Cn?Yi===jo||oi(Yi,jo,To,sr,Vi):Cn)){ma=!1;break}Wa||(Wa="constructor"==da)}if(ma&&!Wa){var uo=Tn.constructor,fo=Qi.constructor;uo!=fo&&"constructor"in Tn&&"constructor"in Qi&&!("function"==typeof uo&&uo instanceof uo&&"function"==typeof fo&&fo instanceof fo)&&(ma=!1)}return Vi.delete(Tn),Vi.delete(Qi),ma}(Tn,Qi,To,sr,oi,Vi))}(Tn,Qi,To,sr,bt,oi))}function hr(Tn,Qi,To,sr,oi,Vi){var Ti=To&s,Hi=Tn.length,Do=Qi.length;if(Hi!=Do&&!(Ti&&Do>Hi))return!1;var $o=Vi.get(Tn);if($o&&Vi.get(Qi))return $o==Qi;var yr=-1,Vr=!0,da=To&l?new st:void 0;for(Vi.set(Tn,Qi),Vi.set(Qi,Tn);++yr<Hi;){var Za=Tn[yr],ma=Qi[yr];if(sr)var Wa=Ti?sr(ma,Za,yr,Qi,Tn,Vi):sr(Za,ma,yr,Tn,Qi,Vi);if(void 0!==Wa){if(Wa)continue;Vr=!1;break}if(da){if(!Rn(Qi,function(Yi,jo){if(!Je(da,jo)&&(Za===Yi||oi(Za,Yi,To,sr,Vi)))return da.push(jo)})){Vr=!1;break}}else if(Za!==ma&&!oi(Za,ma,To,sr,Vi)){Vr=!1;break}}return Vi.delete(Tn),Vi.delete(Qi),Vr}function qi(Tn){return function $n(Tn,Qi,To){var sr=Qi(Tn);return Cs(Tn)?sr:function Dt(Tn,Qi){for(var To=-1,sr=Qi.length,oi=Tn.length;++To<sr;)Tn[oi+To]=Qi[To];return Tn}(sr,To(Tn))}(Tn,ka,ki)}function wi(Tn,Qi){var To=Tn.__data__;return function ho(Tn){var Qi=typeof Tn;return"string"==Qi||"number"==Qi||"symbol"==Qi||"boolean"==Qi?"__proto__"!==Tn:null===Tn}(Qi)?To["string"==typeof Qi?"string":"hash"]:To.map}function zo(Tn,Qi){var To=function dt(Tn,Qi){return Tn?.[Qi]}(Tn,Qi);return function Wn(Tn){return!(!Fa(Tn)||function Cr(Tn){return!!nn&&nn in Tn}(Tn))&&(Vs(Tn)?ii:Ue).test(Ra(Tn))}(To)?To:void 0}Bt.prototype.clear=function li(){this.__data__=Ce?Ce(null):{},this.size=0},Bt.prototype.delete=function si(Tn){var Qi=this.has(Tn)&&delete this.__data__[Tn];return this.size-=Qi?1:0,Qi},Bt.prototype.get=function oo(Tn){var Qi=this.__data__;if(Ce){var To=Qi[Tn];return To===n?void 0:To}return vt.call(Qi,Tn)?Qi[Tn]:void 0},Bt.prototype.has=function _o(Tn){var Qi=this.__data__;return Ce?void 0!==Qi[Tn]:vt.call(Qi,Tn)},Bt.prototype.set=function Hn(Tn,Qi){var To=this.__data__;return this.size+=this.has(Tn)?0:1,To[Tn]=Ce&&void 0===Qi?n:Qi,this},mo.prototype.clear=function vn(){this.__data__=[],this.size=0},mo.prototype.delete=function Ji(Tn){var Qi=this.__data__,To=Bi(Qi,Tn);return!(To<0||(To==Qi.length-1?Qi.pop():Ii.call(Qi,To,1),--this.size,0))},mo.prototype.get=function wn(Tn){var Qi=this.__data__,To=Bi(Qi,Tn);return To<0?void 0:Qi[To][1]},mo.prototype.has=function po(Tn){return Bi(this.__data__,Tn)>-1},mo.prototype.set=function Kn(Tn,Qi){var To=this.__data__,sr=Bi(To,Tn);return sr<0?(++this.size,To.push([Tn,Qi])):To[sr][1]=Qi,this},Vn.prototype.clear=function Wi(){this.size=0,this.__data__={hash:new Bt,map:new(He||mo),string:new Bt}},Vn.prototype.delete=function Ft(Tn){var Qi=wi(this,Tn).delete(Tn);return this.size-=Qi?1:0,Qi},Vn.prototype.get=function Oi(Tn){return wi(this,Tn).get(Tn)},Vn.prototype.has=function On(Tn){return wi(this,Tn).has(Tn)},Vn.prototype.set=function _n(Tn,Qi){var To=wi(this,Tn),sr=To.size;return To.set(Tn,Qi),this.size+=To.size==sr?0:1,this},st.prototype.add=st.prototype.push=function Dn(Tn){return this.__data__.set(Tn,n),this},st.prototype.has=function Wt(Tn){return this.__data__.has(Tn)},kn.prototype.clear=function Fi(){this.__data__=new mo,this.size=0},kn.prototype.delete=function ui(Tn){var Qi=this.__data__,To=Qi.delete(Tn);return this.size=Qi.size,To},kn.prototype.get=function Fo(Tn){return this.__data__.get(Tn)},kn.prototype.has=function At(Tn){return this.__data__.has(Tn)},kn.prototype.set=function Jn(Tn,Qi){var To=this.__data__;if(To instanceof mo){var sr=To.__data__;if(!He||sr.length<199)return sr.push([Tn,Qi]),this.size=++To.size,this;To=this.__data__=new Vn(sr)}return To.set(Tn,Qi),this.size=To.size,this};var ki=En?function(Tn){return null==Tn?[]:(Tn=Object(Tn),function ft(Tn,Qi){for(var To=-1,sr=null==Tn?0:Tn.length,oi=0,Vi=[];++To<sr;){var Ti=Tn[To];Qi(Ti,To,Tn)&&(Vi[oi++]=Ti)}return Vi}(En(Tn),function(Qi){return ji.call(Tn,Qi)}))}:function hs(){return[]},wo=Ui;function Ei(Tn,Qi){return!!(Qi=Qi??i)&&("number"==typeof Tn||We.test(Tn))&&Tn>-1&&Tn%1==0&&Tn<Qi}function Ra(Tn){if(null!=Tn){try{return bn.call(Tn)}catch{}try{return Tn+""}catch{}}return""}function ss(Tn,Qi){return Tn===Qi||Tn!=Tn&&Qi!=Qi}(ln&&wo(new ln(new ArrayBuffer(1)))!=ee||He&&wo(new He)!=I||rt&&wo(rt.resolve())!=G||$e&&wo(new $e)!=J||Ve&&wo(new Ve)!=K)&&(wo=function(Tn){var Qi=Ui(Tn),To=Qi==P?Tn.constructor:void 0,sr=To?Ra(To):"";if(sr)switch(sr){case tt:return ee;case ht:return I;case Qt:return G;case Un:return J;case Yt:return K}return Qi});var Hs=Xo(function(){return arguments}())?Xo:function(Tn){return Ds(Tn)&&vt.call(Tn,"callee")&&!ji.call(Tn,"callee")},Cs=Array.isArray,ja=co||function Ua(){return!1};function Vs(Tn){if(!Fa(Tn))return!1;var Qi=Ui(Tn);return Qi==m||Qi==b||Qi==c||Qi==B}function ls(Tn){return"number"==typeof Tn&&Tn>-1&&Tn%1==0&&Tn<=i}function Fa(Tn){var Qi=typeof Tn;return null!=Tn&&("object"==Qi||"function"==Qi)}function Ds(Tn){return null!=Tn&&"object"==typeof Tn}var dl=ve?function Xt(Tn){return function(Qi){return Tn(Qi)}}(ve):function eo(Tn){return Ds(Tn)&&ls(Tn.length)&&!!et[Ui(Tn)]};function ka(Tn){return function ms(Tn){return null!=Tn&&ls(Tn.length)&&!Vs(Tn)}(Tn)?function Bn(Tn,Qi){var To=Cs(Tn),sr=!To&&Hs(Tn),oi=!To&&!sr&&ja(Tn),Vi=!To&&!sr&&!oi&&dl(Tn),Ti=To||sr||oi||Vi,Hi=Ti?function ti(Tn,Qi){for(var To=-1,sr=Array(Tn);++To<Tn;)sr[To]=Qi(To);return sr}(Tn.length,String):[],Do=Hi.length;for(var $o in Tn)(Qi||vt.call(Tn,$o))&&(!Ti||!("length"==$o||oi&&("offset"==$o||"parent"==$o)||Vi&&("buffer"==$o||"byteLength"==$o||"byteOffset"==$o)||Ei($o,Do)))&&Hi.push($o);return Hi}(Tn):function _r(Tn){if(!function vr(Tn){var Qi=Tn&&Tn.constructor;return Tn===("function"==typeof Qi&&Qi.prototype||ni)}(Tn))return yn(Tn);var Qi=[];for(var To in Object(Tn))vt.call(Tn,To)&&"constructor"!=To&&Qi.push(To);return Qi}(Tn)}gt.exports=function el(Tn,Qi){return bt(Tn,Qi)}},28251:(gt,X,a)=>{const n=a(28310),s=a(86208),l=a(26422),i=a(77772);function t(p,c,o,x,u){const m=[].slice.call(arguments,1),b=m.length,I="function"==typeof m[b-1];if(!I&&!n())throw new Error("Callback required as last argument");if(!I){if(b<1)throw new Error("Too few arguments provided");return 1===b?(o=c,c=x=void 0):2===b&&!c.getContext&&(x=o,o=c,c=void 0),new Promise(function(H,O){try{const P=s.create(o,x);H(p(P,c,x))}catch(P){O(P)}})}if(b<2)throw new Error("Too few arguments provided");2===b?(u=o,o=c,c=x=void 0):3===b&&(c.getContext&&typeof u>"u"?(u=x,x=void 0):(u=x,x=o,o=c,c=void 0));try{const H=s.create(o,x);u(null,p(H,c,x))}catch(H){u(H)}}X.rT=t.bind(null,l.render),X.hz=t.bind(null,l.renderToDataURL),X.toString=t.bind(null,function(p,c,o){return i.render(p,o)})},28310:gt=>{gt.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},65281:(gt,X,a)=>{const e=a(82562).getSymbolSize;X.getRowColCoords=function(s){if(1===s)return[];const l=Math.floor(s/7)+2,i=e(s),t=145===i?26:2*Math.ceil((i-13)/(2*l-2)),p=[i-7];for(let c=1;c<l-1;c++)p[c]=p[c-1]-t;return p.push(6),p.reverse()},X.getPositions=function(s){const l=[],i=X.getRowColCoords(s),t=i.length;for(let p=0;p<t;p++)for(let c=0;c<t;c++)0===p&&0===c||0===p&&c===t-1||p===t-1&&0===c||l.push([i[p],i[c]]);return l}},30120:(gt,X,a)=>{const e=a(71239),n=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function s(l){this.mode=e.ALPHANUMERIC,this.data=l}s.getBitsLength=function(i){return 11*Math.floor(i/2)+i%2*6},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(i){let t;for(t=0;t+2<=this.data.length;t+=2){let p=45*n.indexOf(this.data[t]);p+=n.indexOf(this.data[t+1]),i.put(p,11)}this.data.length%2&&i.put(n.indexOf(this.data[t]),6)},gt.exports=s},16509:gt=>{function X(){this.buffer=[],this.length=0}X.prototype={get:function(a){const e=Math.floor(a/8);return 1==(this.buffer[e]>>>7-a%8&1)},put:function(a,e){for(let n=0;n<e;n++)this.putBit(1==(a>>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(a){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),a&&(this.buffer[e]|=128>>>this.length%8),this.length++}},gt.exports=X},25147:gt=>{function X(a){if(!a||a<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=a,this.data=new Uint8Array(a*a),this.reservedBit=new Uint8Array(a*a)}X.prototype.set=function(a,e,n,s){const l=a*this.size+e;this.data[l]=n,s&&(this.reservedBit[l]=!0)},X.prototype.get=function(a,e){return this.data[a*this.size+e]},X.prototype.xor=function(a,e,n){this.data[a*this.size+e]^=n},X.prototype.isReserved=function(a,e){return this.reservedBit[a*this.size+e]},gt.exports=X},277:(gt,X,a)=>{const e=a(76119),n=a(71239);function s(l){this.mode=n.BYTE,"string"==typeof l&&(l=e(l)),this.data=new Uint8Array(l)}s.getBitsLength=function(i){return 8*i},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(l){for(let i=0,t=this.data.length;i<t;i++)l.put(this.data[i],8)},gt.exports=s},87191:(gt,X,a)=>{const e=a(84505),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],s=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];X.getBlocksCount=function(i,t){switch(t){case e.L:return n[4*(i-1)+0];case e.M:return n[4*(i-1)+1];case e.Q:return n[4*(i-1)+2];case e.H:return n[4*(i-1)+3];default:return}},X.getTotalCodewordsCount=function(i,t){switch(t){case e.L:return s[4*(i-1)+0];case e.M:return s[4*(i-1)+1];case e.Q:return s[4*(i-1)+2];case e.H:return s[4*(i-1)+3];default:return}}},84505:(gt,X)=>{X.L={bit:1},X.M={bit:0},X.Q={bit:3},X.H={bit:2},X.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},X.from=function(n,s){if(X.isValid(n))return n;try{return function a(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return X.L;case"m":case"medium":return X.M;case"q":case"quartile":return X.Q;case"h":case"high":return X.H;default:throw new Error("Unknown EC Level: "+e)}}(n)}catch{return s}}},95232:(gt,X,a)=>{const e=a(82562).getSymbolSize;X.getPositions=function(l){const i=e(l);return[[0,0],[i-7,0],[0,i-7]]}},58508:(gt,X,a)=>{const e=a(82562),l=e.getBCHDigit(1335);X.getEncodedBits=function(t,p){const c=t.bit<<3|p;let o=c<<10;for(;e.getBCHDigit(o)-l>=0;)o^=1335<<e.getBCHDigit(o)-l;return 21522^(c<<10|o)}},61674:(gt,X)=>{const a=new Uint8Array(512),e=new Uint8Array(256);(function(){let s=1;for(let l=0;l<255;l++)a[l]=s,e[s]=l,s<<=1,256&s&&(s^=285);for(let l=255;l<512;l++)a[l]=a[l-255]})(),X.log=function(s){if(s<1)throw new Error("log("+s+")");return e[s]},X.exp=function(s){return a[s]},X.mul=function(s,l){return 0===s||0===l?0:a[e[s]+e[l]]}},59995:(gt,X,a)=>{const e=a(71239),n=a(82562);function s(l){this.mode=e.KANJI,this.data=l}s.getBitsLength=function(i){return 13*i},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(l){let i;for(i=0;i<this.data.length;i++){let t=n.toSJIS(this.data[i]);if(t>=33088&&t<=40956)t-=33088;else{if(!(t>=57408&&t<=60351))throw new Error("Invalid SJIS character: "+this.data[i]+"\nMake sure your charset is UTF-8");t-=49472}t=192*(t>>>8&255)+(255&t),l.put(t,13)}},gt.exports=s},19023:(gt,X)=>{X.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function e(n,s,l){switch(n){case X.Patterns.PATTERN000:return(s+l)%2==0;case X.Patterns.PATTERN001:return s%2==0;case X.Patterns.PATTERN010:return l%3==0;case X.Patterns.PATTERN011:return(s+l)%3==0;case X.Patterns.PATTERN100:return(Math.floor(s/2)+Math.floor(l/3))%2==0;case X.Patterns.PATTERN101:return s*l%2+s*l%3==0;case X.Patterns.PATTERN110:return(s*l%2+s*l%3)%2==0;case X.Patterns.PATTERN111:return(s*l%3+(s+l)%2)%2==0;default:throw new Error("bad maskPattern:"+n)}}X.isValid=function(s){return null!=s&&""!==s&&!isNaN(s)&&s>=0&&s<=7},X.from=function(s){return X.isValid(s)?parseInt(s,10):void 0},X.getPenaltyN1=function(s){const l=s.size;let i=0,t=0,p=0,c=null,o=null;for(let x=0;x<l;x++){t=p=0,c=o=null;for(let u=0;u<l;u++){let m=s.get(x,u);m===c?t++:(t>=5&&(i+=t-5+3),c=m,t=1),m=s.get(u,x),m===o?p++:(p>=5&&(i+=p-5+3),o=m,p=1)}t>=5&&(i+=t-5+3),p>=5&&(i+=p-5+3)}return i},X.getPenaltyN2=function(s){const l=s.size;let i=0;for(let t=0;t<l-1;t++)for(let p=0;p<l-1;p++){const c=s.get(t,p)+s.get(t,p+1)+s.get(t+1,p)+s.get(t+1,p+1);(4===c||0===c)&&i++}return 3*i},X.getPenaltyN3=function(s){const l=s.size;let i=0,t=0,p=0;for(let c=0;c<l;c++){t=p=0;for(let o=0;o<l;o++)t=t<<1&2047|s.get(c,o),o>=10&&(1488===t||93===t)&&i++,p=p<<1&2047|s.get(o,c),o>=10&&(1488===p||93===p)&&i++}return 40*i},X.getPenaltyN4=function(s){let l=0;const i=s.data.length;for(let p=0;p<i;p++)l+=s.data[p];return 10*Math.abs(Math.ceil(100*l/i/5)-10)},X.applyMask=function(s,l){const i=l.size;for(let t=0;t<i;t++)for(let p=0;p<i;p++)l.isReserved(p,t)||l.xor(p,t,e(s,p,t))},X.getBestMask=function(s,l){const i=Object.keys(X.Patterns).length;let t=0,p=1/0;for(let c=0;c<i;c++){l(c),X.applyMask(c,s);const o=X.getPenaltyN1(s)+X.getPenaltyN2(s)+X.getPenaltyN3(s)+X.getPenaltyN4(s);X.applyMask(c,s),o<p&&(p=o,t=c)}return t}},71239:(gt,X,a)=>{const e=a(16161),n=a(42427);X.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},X.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},X.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},X.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},X.MIXED={bit:-1},X.getCharCountIndicator=function(i,t){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!e.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?i.ccBits[0]:t<27?i.ccBits[1]:i.ccBits[2]},X.getBestModeForData=function(i){return n.testNumeric(i)?X.NUMERIC:n.testAlphanumeric(i)?X.ALPHANUMERIC:n.testKanji(i)?X.KANJI:X.BYTE},X.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},X.isValid=function(i){return i&&i.bit&&i.ccBits},X.from=function(i,t){if(X.isValid(i))return i;try{return function s(l){if("string"!=typeof l)throw new Error("Param is not a string");switch(l.toLowerCase()){case"numeric":return X.NUMERIC;case"alphanumeric":return X.ALPHANUMERIC;case"kanji":return X.KANJI;case"byte":return X.BYTE;default:throw new Error("Unknown mode: "+l)}}(i)}catch{return t}}},8722:(gt,X,a)=>{const e=a(71239);function n(s){this.mode=e.NUMERIC,this.data=s.toString()}n.getBitsLength=function(l){return 10*Math.floor(l/3)+(l%3?l%3*3+1:0)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(l){let i,t,p;for(i=0;i+3<=this.data.length;i+=3)t=this.data.substr(i,3),p=parseInt(t,10),l.put(p,10);const c=this.data.length-i;c>0&&(t=this.data.substr(i),p=parseInt(t,10),l.put(p,3*c+1))},gt.exports=n},22376:(gt,X,a)=>{const e=a(61674);X.mul=function(s,l){const i=new Uint8Array(s.length+l.length-1);for(let t=0;t<s.length;t++)for(let p=0;p<l.length;p++)i[t+p]^=e.mul(s[t],l[p]);return i},X.mod=function(s,l){let i=new Uint8Array(s);for(;i.length-l.length>=0;){const t=i[0];for(let c=0;c<l.length;c++)i[c]^=e.mul(l[c],t);let p=0;for(;p<i.length&&0===i[p];)p++;i=i.slice(p)}return i},X.generateECPolynomial=function(s){let l=new Uint8Array([1]);for(let i=0;i<s;i++)l=X.mul(l,new Uint8Array([1,e.exp(i)]));return l}},86208:(gt,X,a)=>{const e=a(82562),n=a(84505),s=a(16509),l=a(25147),i=a(65281),t=a(95232),p=a(19023),c=a(87191),o=a(91297),x=a(9467),u=a(58508),m=a(71239),b=a(51799);function G(j,Y,K){const ne=j.size,ee=u.getEncodedBits(Y,K);let $,ue;for($=0;$<15;$++)ue=1==(ee>>$&1),j.set($<6?$:$<8?$+1:ne-15+$,8,ue,!0),j.set(8,$<8?ne-$-1:$<9?15-$-1+1:15-$-1,ue,!0);j.set(ne-8,8,1,!0)}function q(j,Y,K,ne){let ee;if(Array.isArray(j))ee=b.fromArray(j);else{if("string"!=typeof j)throw new Error("Invalid data");{let at=Y;if(!at){const Le=b.rawSplit(j);at=x.getBestVersionForData(Le,K)}ee=b.fromString(j,at||40)}}const $=x.getBestVersionForData(ee,K);if(!$)throw new Error("The amount of data is too big to be stored in a QR Code");if(Y){if(Y<$)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+$+".\n")}else Y=$;const ue=function ae(j,Y,K){const ne=new s;K.forEach(function(Ke){ne.put(Ke.mode.bit,4),ne.put(Ke.getLength(),m.getCharCountIndicator(Ke.mode,j)),Ke.write(ne)});const ue=8*(e.getSymbolTotalCodewords(j)-c.getTotalCodewordsCount(j,Y));for(ne.getLengthInBits()+4<=ue&&ne.put(0,4);ne.getLengthInBits()%8!=0;)ne.putBit(0);const ge=(ue-ne.getLengthInBits())/8;for(let Ke=0;Ke<ge;Ke++)ne.put(Ke%2?17:236,8);return function J(j,Y,K){const ne=e.getSymbolTotalCodewords(Y),$=ne-c.getTotalCodewordsCount(Y,K),ue=c.getBlocksCount(Y,K),Ke=ue-ne%ue,at=Math.floor(ne/ue),Le=Math.floor($/ue),R=Le+1,Te=at-Le,me=new o(Te);let Se=0;const Ue=new Array(ue),We=new Array(ue);let et=0;const Et=new Uint8Array(j.buffer);for(let Pt=0;Pt<ue;Pt++){const Oe=Pt<Ke?Le:R;Ue[Pt]=Et.slice(Se,Se+Oe),We[Pt]=me.encode(Ue[Pt]),Se+=Oe,et=Math.max(et,Oe)}const lt=new Uint8Array(ne);let r,Z,Vt=0;for(r=0;r<et;r++)for(Z=0;Z<ue;Z++)r<Ue[Z].length&&(lt[Vt++]=Ue[Z][r]);for(r=0;r<Te;r++)for(Z=0;Z<ue;Z++)lt[Vt++]=We[Z][r];return lt}(ne,j,Y)}(Y,K,ee),ge=e.getSymbolSize(Y),Ke=new l(ge);return function I(j,Y){const K=j.size,ne=t.getPositions(Y);for(let ee=0;ee<ne.length;ee++){const $=ne[ee][0],ue=ne[ee][1];for(let ge=-1;ge<=7;ge++)if(!($+ge<=-1||K<=$+ge))for(let Ke=-1;Ke<=7;Ke++)ue+Ke<=-1||K<=ue+Ke||j.set($+ge,ue+Ke,ge>=0&&ge<=6&&(0===Ke||6===Ke)||Ke>=0&&Ke<=6&&(0===ge||6===ge)||ge>=2&&ge<=4&&Ke>=2&&Ke<=4,!0)}}(Ke,Y),function H(j){const Y=j.size;for(let K=8;K<Y-8;K++){const ne=K%2==0;j.set(K,6,ne,!0),j.set(6,K,ne,!0)}}(Ke),function O(j,Y){const K=i.getPositions(Y);for(let ne=0;ne<K.length;ne++){const ee=K[ne][0],$=K[ne][1];for(let ue=-2;ue<=2;ue++)for(let ge=-2;ge<=2;ge++)j.set(ee+ue,$+ge,-2===ue||2===ue||-2===ge||2===ge||0===ue&&0===ge,!0)}}(Ke,Y),G(Ke,K,0),Y>=7&&function P(j,Y){const K=j.size,ne=x.getEncodedBits(Y);let ee,$,ue;for(let ge=0;ge<18;ge++)ee=Math.floor(ge/3),$=ge%3+K-8-3,ue=1==(ne>>ge&1),j.set(ee,$,ue,!0),j.set($,ee,ue,!0)}(Ke,Y),function B(j,Y){const K=j.size;let ne=-1,ee=K-1,$=7,ue=0;for(let ge=K-1;ge>0;ge-=2)for(6===ge&&ge--;;){for(let Ke=0;Ke<2;Ke++)if(!j.isReserved(ee,ge-Ke)){let at=!1;ue<Y.length&&(at=1==(Y[ue]>>>$&1)),j.set(ee,ge-Ke,at),$--,-1===$&&(ue++,$=7)}if(ee+=ne,ee<0||K<=ee){ee-=ne,ne=-ne;break}}}(Ke,ue),isNaN(ne)&&(ne=p.getBestMask(Ke,G.bind(null,Ke,K))),p.applyMask(ne,Ke),G(Ke,K,ne),{modules:Ke,version:Y,errorCorrectionLevel:K,maskPattern:ne,segments:ee}}X.create=function(Y,K){if(typeof Y>"u"||""===Y)throw new Error("No input text");let ee,$,ne=n.M;return typeof K<"u"&&(ne=n.from(K.errorCorrectionLevel,n.M),ee=x.from(K.version),$=p.from(K.maskPattern),K.toSJISFunc&&e.setToSJISFunction(K.toSJISFunc)),q(Y,ee,ne,$)}},91297:(gt,X,a)=>{const e=a(22376);function n(s){this.genPoly=void 0,this.degree=s,this.degree&&this.initialize(this.degree)}n.prototype.initialize=function(l){this.degree=l,this.genPoly=e.generateECPolynomial(this.degree)},n.prototype.encode=function(l){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(l.length+this.degree);i.set(l);const t=e.mod(i,this.genPoly),p=this.degree-t.length;if(p>0){const c=new Uint8Array(this.degree);return c.set(t,p),c}return t},gt.exports=n},42427:(gt,X)=>{const a="[0-9]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const s="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+")(?:.|[\r\n]))+";X.KANJI=new RegExp(n,"g"),X.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),X.BYTE=new RegExp(s,"g"),X.NUMERIC=new RegExp(a,"g"),X.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const l=new RegExp("^"+n+"$"),i=new RegExp("^"+a+"$"),t=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");X.testKanji=function(c){return l.test(c)},X.testNumeric=function(c){return i.test(c)},X.testAlphanumeric=function(c){return t.test(c)}},51799:(gt,X,a)=>{const e=a(71239),n=a(8722),s=a(30120),l=a(277),i=a(59995),t=a(42427),p=a(82562),c=a(87206);function o(P){return unescape(encodeURIComponent(P)).length}function x(P,G,B){const ae=[];let J;for(;null!==(J=P.exec(B));)ae.push({data:J[0],index:J.index,mode:G,length:J[0].length});return ae}function u(P){const G=x(t.NUMERIC,e.NUMERIC,P),B=x(t.ALPHANUMERIC,e.ALPHANUMERIC,P);let ae,J;return p.isKanjiModeEnabled()?(ae=x(t.BYTE,e.BYTE,P),J=x(t.KANJI,e.KANJI,P)):(ae=x(t.BYTE_KANJI,e.BYTE,P),J=[]),G.concat(B,ae,J).sort(function(j,Y){return j.index-Y.index}).map(function(j){return{data:j.data,mode:j.mode,length:j.length}})}function m(P,G){switch(G){case e.NUMERIC:return n.getBitsLength(P);case e.ALPHANUMERIC:return s.getBitsLength(P);case e.KANJI:return i.getBitsLength(P);case e.BYTE:return l.getBitsLength(P)}}function O(P,G){let B;const ae=e.getBestModeForData(P);if(B=e.from(G,ae),B!==e.BYTE&&B.bit<ae.bit)throw new Error('"'+P+'" cannot be encoded with mode '+e.toString(B)+".\n Suggested mode is: "+e.toString(ae));switch(B===e.KANJI&&!p.isKanjiModeEnabled()&&(B=e.BYTE),B){case e.NUMERIC:return new n(P);case e.ALPHANUMERIC:return new s(P);case e.KANJI:return new i(P);case e.BYTE:return new l(P)}}X.fromArray=function(G){return G.reduce(function(B,ae){return"string"==typeof ae?B.push(O(ae,null)):ae.data&&B.push(O(ae.data,ae.mode)),B},[])},X.fromString=function(G,B){const J=function I(P){const G=[];for(let B=0;B<P.length;B++){const ae=P[B];switch(ae.mode){case e.NUMERIC:G.push([ae,{data:ae.data,mode:e.ALPHANUMERIC,length:ae.length},{data:ae.data,mode:e.BYTE,length:ae.length}]);break;case e.ALPHANUMERIC:G.push([ae,{data:ae.data,mode:e.BYTE,length:ae.length}]);break;case e.KANJI:G.push([ae,{data:ae.data,mode:e.BYTE,length:o(ae.data)}]);break;case e.BYTE:G.push([{data:ae.data,mode:e.BYTE,length:o(ae.data)}])}}return G}(u(G,p.isKanjiModeEnabled())),q=function H(P,G){const B={},ae={start:{}};let J=["start"];for(let q=0;q<P.length;q++){const j=P[q],Y=[];for(let K=0;K<j.length;K++){const ne=j[K],ee=""+q+K;Y.push(ee),B[ee]={node:ne,lastCount:0},ae[ee]={};for(let $=0;$<J.length;$++){const ue=J[$];B[ue]&&B[ue].node.mode===ne.mode?(ae[ue][ee]=m(B[ue].lastCount+ne.length,ne.mode)-m(B[ue].lastCount,ne.mode),B[ue].lastCount+=ne.length):(B[ue]&&(B[ue].lastCount=ne.length),ae[ue][ee]=m(ne.length,ne.mode)+4+e.getCharCountIndicator(ne.mode,G))}}J=Y}for(let q=0;q<J.length;q++)ae[J[q]].end=0;return{map:ae,table:B}}(J,B),j=c.find_path(q.map,"start","end"),Y=[];for(let K=1;K<j.length-1;K++)Y.push(q.table[j[K]].node);return X.fromArray(function b(P){return P.reduce(function(G,B){const ae=G.length-1>=0?G[G.length-1]:null;return ae&&ae.mode===B.mode?(G[G.length-1].data+=B.data,G):(G.push(B),G)},[])}(Y))},X.rawSplit=function(G){return X.fromArray(u(G,p.isKanjiModeEnabled()))}},82562:(gt,X)=>{let a;const e=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];X.getSymbolSize=function(s){if(!s)throw new Error('"version" cannot be null or undefined');if(s<1||s>40)throw new Error('"version" should be in range from 1 to 40');return 4*s+17},X.getSymbolTotalCodewords=function(s){return e[s]},X.getBCHDigit=function(n){let s=0;for(;0!==n;)s++,n>>>=1;return s},X.setToSJISFunction=function(s){if("function"!=typeof s)throw new Error('"toSJISFunc" is not a valid function.');a=s},X.isKanjiModeEnabled=function(){return typeof a<"u"},X.toSJIS=function(s){return a(s)}},16161:(gt,X)=>{X.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},9467:(gt,X,a)=>{const e=a(82562),n=a(87191),s=a(84505),l=a(71239),i=a(16161),p=e.getBCHDigit(7973);function o(m,b){return l.getCharCountIndicator(m,b)+4}function x(m,b){let I=0;return m.forEach(function(H){const O=o(H.mode,b);I+=O+H.getBitsLength()}),I}X.from=function(b,I){return i.isValid(b)?parseInt(b,10):I},X.getCapacity=function(b,I,H){if(!i.isValid(b))throw new Error("Invalid QR Code version");typeof H>"u"&&(H=l.BYTE);const G=8*(e.getSymbolTotalCodewords(b)-n.getTotalCodewordsCount(b,I));if(H===l.MIXED)return G;const B=G-o(H,b);switch(H){case l.NUMERIC:return Math.floor(B/10*3);case l.ALPHANUMERIC:return Math.floor(B/11*2);case l.KANJI:return Math.floor(B/13);default:return Math.floor(B/8)}},X.getBestVersionForData=function(b,I){let H;const O=s.from(I,s.M);if(Array.isArray(b)){if(b.length>1)return function u(m,b){for(let I=1;I<=40;I++)if(x(m,I)<=X.getCapacity(I,b,l.MIXED))return I}(b,O);if(0===b.length)return 1;H=b[0]}else H=b;return function c(m,b,I){for(let H=1;H<=40;H++)if(b<=X.getCapacity(H,I,m))return H}(H.mode,H.getLength(),O)},X.getEncodedBits=function(b){if(!i.isValid(b)||b<7)throw new Error("Invalid QR Code version");let I=b<<12;for(;e.getBCHDigit(I)-p>=0;)I^=7973<<e.getBCHDigit(I)-p;return b<<12|I}},26422:(gt,X,a)=>{const e=a(11101);X.render=function(i,t,p){let c=p,o=t;typeof c>"u"&&(!t||!t.getContext)&&(c=t,t=void 0),t||(o=function s(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),c=e.getOptions(c);const x=e.getImageWidth(i.modules.size,c),u=o.getContext("2d"),m=u.createImageData(x,x);return e.qrToImageData(m.data,i,c),function n(l,i,t){l.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=t,i.width=t,i.style.height=t+"px",i.style.width=t+"px"}(u,o,x),u.putImageData(m,0,0),o},X.renderToDataURL=function(i,t,p){let c=p;return typeof c>"u"&&(!t||!t.getContext)&&(c=t,t=void 0),c||(c={}),X.render(i,t,c).toDataURL(c.type||"image/png",(c.rendererOpts||{}).quality)}},77772:(gt,X,a)=>{const e=a(11101);function n(i,t){const p=i.a/255,c=t+'="'+i.hex+'"';return p<1?c+" "+t+'-opacity="'+p.toFixed(2).slice(1)+'"':c}function s(i,t,p){let c=i+t;return typeof p<"u"&&(c+=" "+p),c}X.render=function(t,p,c){const o=e.getOptions(p),x=t.modules.size,u=t.modules.data,m=x+2*o.margin,b=o.color.light.a?"<path "+n(o.color.light,"fill")+' d="M0 0h'+m+"v"+m+'H0z"/>':"",I="<path "+n(o.color.dark,"stroke")+' d="'+function l(i,t,p){let c="",o=0,x=!1,u=0;for(let m=0;m<i.length;m++){const b=Math.floor(m%t),I=Math.floor(m/t);!b&&!x&&(x=!0),i[m]?(u++,m>0&&b>0&&i[m-1]||(c+=x?s("M",b+p,.5+I+p):s("m",o,0),o=0,x=!1),b+1<t&&i[m+1]||(c+=s("h",u),u=0)):o++}return c}(u,x,o.margin)+'"/>',P='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+'viewBox="0 0 '+m+" "+m+'" shape-rendering="crispEdges">'+b+I+"</svg>\n";return"function"==typeof c&&c(null,P),P}},11101:(gt,X)=>{function a(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let n=e.slice().replace("#","").split("");if(n.length<3||5===n.length||n.length>8)throw new Error("Invalid hex color: "+e);(3===n.length||4===n.length)&&(n=Array.prototype.concat.apply([],n.map(function(l){return[l,l]}))),6===n.length&&n.push("F","F");const s=parseInt(n.join(""),16);return{r:s>>24&255,g:s>>16&255,b:s>>8&255,a:255&s,hex:"#"+n.slice(0,6).join("")}}X.getOptions=function(n){n||(n={}),n.color||(n.color={});const l=n.width&&n.width>=21?n.width:void 0;return{width:l,scale:l?4:n.scale||4,margin:typeof n.margin>"u"||null===n.margin||n.margin<0?4:n.margin,color:{dark:a(n.color.dark||"#000000ff"),light:a(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},X.getScale=function(n,s){return s.width&&s.width>=n+2*s.margin?s.width/(n+2*s.margin):s.scale},X.getImageWidth=function(n,s){const l=X.getScale(n,s);return Math.floor((n+2*s.margin)*l)},X.qrToImageData=function(n,s,l){const i=s.modules.size,t=s.modules.data,p=X.getScale(i,l),c=Math.floor((i+2*l.margin)*p),o=l.margin*p,x=[l.color.light,l.color.dark];for(let u=0;u<c;u++)for(let m=0;m<c;m++){let b=4*(u*c+m),I=l.color.light;u>=o&&m>=o&&u<c-o&&m<c-o&&(I=x[t[Math.floor((u-o)/p)*i+Math.floor((m-o)/p)]?1:0]),n[b++]=I.r,n[b++]=I.g,n[b++]=I.b,n[b]=I.a}}},45125:(gt,X,a)=>{"use strict";a.d(X,{X:()=>s});var e=a(72079),n=a(6229);class s extends e.xQ{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){const t=super._subscribe(i);return t&&!t.closed&&i.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new n.N;return this._value}next(i){super.next(this._value=i)}}},61250:(gt,X,a)=>{"use strict";a.d(X,{d:()=>n});var e=a(40254);class n extends e.L{constructor(l,i,t){super(),this.parent=l,this.outerValue=i,this.outerIndex=t,this.index=0}_next(l){this.parent.notifyNext(this.outerValue,l,this.outerIndex,this.index++,this)}_error(l){this.parent.notifyError(l,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},56979:(gt,X,a)=>{"use strict";a.d(X,{P:()=>i});var e=a(91226),n=a(49193),s=a(16222);class i{constructor(p,c,o){this.kind=p,this.value=c,this.error=o,this.hasValue="N"===p}observe(p){switch(this.kind){case"N":return p.next&&p.next(this.value);case"E":return p.error&&p.error(this.error);case"C":return p.complete&&p.complete()}}do(p,c,o){switch(this.kind){case"N":return p&&p(this.value);case"E":return c&&c(this.error);case"C":return o&&o()}}accept(p,c,o){return p&&"function"==typeof p.next?this.observe(p):this.do(p,c,o)}toObservable(){switch(this.kind){case"N":return(0,n.of)(this.value);case"E":return(0,s._)(this.error);case"C":return(0,e.c)()}throw new Error("unexpected notification kind value")}static createNext(p){return typeof p<"u"?new i("N",p):i.undefinedValueNotification}static createError(p){return new i("E",void 0,p)}static createComplete(){return i.completeNotification}}i.completeNotification=new i("C"),i.undefinedValueNotification=new i("N",void 0)},54699:(gt,X,a)=>{"use strict";a.d(X,{y:()=>o});var e=a(40254),s=a(55297),l=a(17308),t=a(92677),p=a(54813),c=a(97213);let o=(()=>{class u{constructor(b){this._isScalar=!1,b&&(this._subscribe=b)}lift(b){const I=new u;return I.source=this,I.operator=b,I}subscribe(b,I,H){const{operator:O}=this,P=function i(u,m,b){if(u){if(u instanceof e.L)return u;if(u[s.b])return u[s.b]()}return u||m||b?new e.L(u,m,b):new e.L(l.c)}(b,I,H);if(P.add(O?O.call(P,this.source):this.source||c.config.useDeprecatedSynchronousErrorHandling&&!P.syncErrorThrowable?this._subscribe(P):this._trySubscribe(P)),c.config.useDeprecatedSynchronousErrorHandling&&P.syncErrorThrowable&&(P.syncErrorThrowable=!1,P.syncErrorThrown))throw P.syncErrorValue;return P}_trySubscribe(b){try{return this._subscribe(b)}catch(I){c.config.useDeprecatedSynchronousErrorHandling&&(b.syncErrorThrown=!0,b.syncErrorValue=I),function n(u){for(;u;){const{closed:m,destination:b,isStopped:I}=u;if(m||I)return!1;u=b&&b instanceof e.L?b:null}return!0}(b)?b.error(I):console.warn(I)}}forEach(b,I){return new(I=x(I))((H,O)=>{let P;P=this.subscribe(G=>{try{b(G)}catch(B){O(B),P&&P.unsubscribe()}},O,H)})}_subscribe(b){const{source:I}=this;return I&&I.subscribe(b)}[t.L](){return this}pipe(...b){return 0===b.length?this:(0,p.U)(b)(this)}toPromise(b){return new(b=x(b))((I,H)=>{let O;this.subscribe(P=>O=P,P=>H(P),()=>I(O))})}}return u.create=m=>new u(m),u})();function x(u){if(u||(u=c.config.Promise||Promise),!u)throw new Error("no Promise impl found");return u}},17308:(gt,X,a)=>{"use strict";a.d(X,{c:()=>s});var e=a(97213),n=a(13510);const s={closed:!0,next(l){},error(l){if(e.config.useDeprecatedSynchronousErrorHandling)throw l;(0,n.z)(l)},complete(){}}},47279:(gt,X,a)=>{"use strict";a.d(X,{L:()=>n});var e=a(40254);class n extends e.L{notifyNext(l,i,t,p,c){this.destination.next(i)}notifyError(l,i){this.destination.error(l)}notifyComplete(l){this.destination.complete()}}},8367:(gt,X,a)=>{"use strict";a.d(X,{t:()=>O});var e=a(72079),n=a(61618),l=a(91781);const t=new class i extends l.v{}(class s extends n.o{constructor(B,ae){super(B,ae),this.scheduler=B,this.work=ae}schedule(B,ae=0){return ae>0?super.schedule(B,ae):(this.delay=ae,this.state=B,this.scheduler.flush(this),this)}execute(B,ae){return ae>0||this.closed?super.execute(B,ae):this._execute(B,ae)}requestAsyncId(B,ae,J=0){return null!==J&&J>0||null===J&&this.delay>0?super.requestAsyncId(B,ae,J):B.flush(this)}});var p=a(7902),c=a(40254),o=a(56979);class m extends c.L{constructor(B,ae,J=0){super(B),this.scheduler=ae,this.delay=J}static dispatch(B){const{notification:ae,destination:J}=B;ae.observe(J),this.unsubscribe()}scheduleMessage(B){this.destination.add(this.scheduler.schedule(m.dispatch,this.delay,new b(B,this.destination)))}_next(B){this.scheduleMessage(o.P.createNext(B))}_error(B){this.scheduleMessage(o.P.createError(B)),this.unsubscribe()}_complete(){this.scheduleMessage(o.P.createComplete()),this.unsubscribe()}}class b{constructor(B,ae){this.notification=B,this.destination=ae}}var I=a(6229),H=a(79806);class O extends e.xQ{constructor(B=Number.POSITIVE_INFINITY,ae=Number.POSITIVE_INFINITY,J){super(),this.scheduler=J,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=B<1?1:B,this._windowTime=ae<1?1:ae,ae===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(B){const ae=this._events;ae.push(B),ae.length>this._bufferSize&&ae.shift(),super.next(B)}nextTimeWindow(B){this._events.push(new P(this._getNow(),B)),this._trimBufferThenGetEvents(),super.next(B)}_subscribe(B){const ae=this._infiniteTimeWindow,J=ae?this._events:this._trimBufferThenGetEvents(),q=this.scheduler,j=J.length;let Y;if(this.closed)throw new I.N;if(this.isStopped||this.hasError?Y=p.w.EMPTY:(this.observers.push(B),Y=new H.W(this,B)),q&&B.add(B=new m(B,q)),ae)for(let K=0;K<j&&!B.closed;K++)B.next(J[K]);else for(let K=0;K<j&&!B.closed;K++)B.next(J[K].value);return this.hasError?B.error(this.thrownError):this.isStopped&&B.complete(),Y}_getNow(){return(this.scheduler||t).now()}_trimBufferThenGetEvents(){const B=this._getNow(),ae=this._bufferSize,J=this._windowTime,q=this._events,j=q.length;let Y=0;for(;Y<j&&!(B-q[Y].time<J);)Y++;return j>ae&&(Y=Math.max(Y,j-ae)),Y>0&&q.splice(0,Y),q}}class P{constructor(B,ae){this.time=B,this.value=ae}}},72079:(gt,X,a)=>{"use strict";a.d(X,{Yc:()=>p,xQ:()=>c});var e=a(54699),n=a(40254),s=a(7902),l=a(6229),i=a(79806),t=a(55297);class p extends n.L{constructor(u){super(u),this.destination=u}}let c=(()=>{class x extends e.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[t.b](){return new p(this)}lift(m){const b=new o(this,this);return b.operator=m,b}next(m){if(this.closed)throw new l.N;if(!this.isStopped){const{observers:b}=this,I=b.length,H=b.slice();for(let O=0;O<I;O++)H[O].next(m)}}error(m){if(this.closed)throw new l.N;this.hasError=!0,this.thrownError=m,this.isStopped=!0;const{observers:b}=this,I=b.length,H=b.slice();for(let O=0;O<I;O++)H[O].error(m);this.observers.length=0}complete(){if(this.closed)throw new l.N;this.isStopped=!0;const{observers:m}=this,b=m.length,I=m.slice();for(let H=0;H<b;H++)I[H].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(m){if(this.closed)throw new l.N;return super._trySubscribe(m)}_subscribe(m){if(this.closed)throw new l.N;return this.hasError?(m.error(this.thrownError),s.w.EMPTY):this.isStopped?(m.complete(),s.w.EMPTY):(this.observers.push(m),new i.W(this,m))}asObservable(){const m=new e.y;return m.source=this,m}}return x.create=(u,m)=>new o(u,m),x})();class o extends c{constructor(u,m){super(),this.destination=u,this.source=m}next(u){const{destination:m}=this;m&&m.next&&m.next(u)}error(u){const{destination:m}=this;m&&m.error&&this.destination.error(u)}complete(){const{destination:u}=this;u&&u.complete&&this.destination.complete()}_subscribe(u){const{source:m}=this;return m?this.source.subscribe(u):s.w.EMPTY}}},79806:(gt,X,a)=>{"use strict";a.d(X,{W:()=>n});var e=a(7902);class n extends e.w{constructor(l,i){super(),this.subject=l,this.subscriber=i,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const l=this.subject,i=l.observers;if(this.subject=null,!i||0===i.length||l.isStopped||l.closed)return;const t=i.indexOf(this.subscriber);-1!==t&&i.splice(t,1)}}},40254:(gt,X,a)=>{"use strict";a.d(X,{L:()=>p});var e=a(38594),n=a(17308),s=a(7902),l=a(55297),i=a(97213),t=a(13510);class p extends s.w{constructor(x,u,m){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=n.c;break;case 1:if(!x){this.destination=n.c;break}if("object"==typeof x){x instanceof p?(this.syncErrorThrowable=x.syncErrorThrowable,this.destination=x,x.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,x));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,x,u,m)}}[l.b](){return this}static create(x,u,m){const b=new p(x,u,m);return b.syncErrorThrowable=!1,b}next(x){this.isStopped||this._next(x)}error(x){this.isStopped||(this.isStopped=!0,this._error(x))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(x){this.destination.next(x)}_error(x){this.destination.error(x),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:x}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=x,this}}class c extends p{constructor(x,u,m,b){super(),this._parentSubscriber=x;let I,H=this;(0,e.m)(u)?I=u:u&&(I=u.next,m=u.error,b=u.complete,u!==n.c&&(H=Object.create(u),(0,e.m)(H.unsubscribe)&&this.add(H.unsubscribe.bind(H)),H.unsubscribe=this.unsubscribe.bind(this))),this._context=H,this._next=I,this._error=m,this._complete=b}next(x){if(!this.isStopped&&this._next){const{_parentSubscriber:u}=this;i.config.useDeprecatedSynchronousErrorHandling&&u.syncErrorThrowable?this.__tryOrSetError(u,this._next,x)&&this.unsubscribe():this.__tryOrUnsub(this._next,x)}}error(x){if(!this.isStopped){const{_parentSubscriber:u}=this,{useDeprecatedSynchronousErrorHandling:m}=i.config;if(this._error)m&&u.syncErrorThrowable?(this.__tryOrSetError(u,this._error,x),this.unsubscribe()):(this.__tryOrUnsub(this._error,x),this.unsubscribe());else if(u.syncErrorThrowable)m?(u.syncErrorValue=x,u.syncErrorThrown=!0):(0,t.z)(x),this.unsubscribe();else{if(this.unsubscribe(),m)throw x;(0,t.z)(x)}}}complete(){if(!this.isStopped){const{_parentSubscriber:x}=this;if(this._complete){const u=()=>this._complete.call(this._context);i.config.useDeprecatedSynchronousErrorHandling&&x.syncErrorThrowable?(this.__tryOrSetError(x,u),this.unsubscribe()):(this.__tryOrUnsub(u),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(x,u){try{x.call(this._context,u)}catch(m){if(this.unsubscribe(),i.config.useDeprecatedSynchronousErrorHandling)throw m;(0,t.z)(m)}}__tryOrSetError(x,u,m){if(!i.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{u.call(this._context,m)}catch(b){return i.config.useDeprecatedSynchronousErrorHandling?(x.syncErrorValue=b,x.syncErrorThrown=!0,!0):((0,t.z)(b),!0)}return!1}_unsubscribe(){const{_parentSubscriber:x}=this;this._context=null,this._parentSubscriber=null,x.unsubscribe()}}},7902:(gt,X,a)=>{"use strict";a.d(X,{w:()=>t});var e=a(11280),n=a(37755),s=a(38594);const i=(()=>{function c(o){return Error.call(this),this.message=o?`${o.length} errors occurred during unsubscription:\n${o.map((x,u)=>`${u+1}) ${x.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=o,this}return c.prototype=Object.create(Error.prototype),c})();class t{constructor(o){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,o&&(this._unsubscribe=o)}unsubscribe(){let o;if(this.closed)return;let{_parentOrParents:x,_unsubscribe:u,_subscriptions:m}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,x instanceof t)x.remove(this);else if(null!==x)for(let b=0;b<x.length;++b)x[b].remove(this);if((0,s.m)(u))try{u.call(this)}catch(b){o=b instanceof i?p(b.errors):[b]}if((0,e.k)(m)){let b=-1,I=m.length;for(;++b<I;){const H=m[b];if((0,n.K)(H))try{H.unsubscribe()}catch(O){o=o||[],O instanceof i?o=o.concat(p(O.errors)):o.push(O)}}}if(o)throw new i(o)}add(o){let x=o;if(!o)return t.EMPTY;switch(typeof o){case"function":x=new t(o);case"object":if(x===this||x.closed||"function"!=typeof x.unsubscribe)return x;if(this.closed)return x.unsubscribe(),x;if(!(x instanceof t)){const b=x;x=new t,x._subscriptions=[b]}break;default:throw new Error("unrecognized teardown "+o+" added to Subscription.")}let{_parentOrParents:u}=x;if(null===u)x._parentOrParents=this;else if(u instanceof t){if(u===this)return x;x._parentOrParents=[u,this]}else{if(-1!==u.indexOf(this))return x;u.push(this)}const m=this._subscriptions;return null===m?this._subscriptions=[x]:m.push(x),x}remove(o){const x=this._subscriptions;if(x){const u=x.indexOf(o);-1!==u&&x.splice(u,1)}}}var c;function p(c){return c.reduce((o,x)=>o.concat(x instanceof i?x.errors:x),[])}t.EMPTY=((c=new t).closed=!0,c)},97213:(gt,X,a)=>{"use strict";a.d(X,{config:()=>n});let e=!1;const n={Promise:void 0,set useDeprecatedSynchronousErrorHandling(s){if(s){const l=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+l.stack)}else e&&console.log("RxJS: Back to a better error behavior. Thank you. <3");e=s},get useDeprecatedSynchronousErrorHandling(){return e}}},44247:(gt,X,a)=>{"use strict";a.d(X,{N:()=>t,c:()=>i});var e=a(72079),n=a(54699),s=a(7902),l=a(82851);class i extends n.y{constructor(u,m){super(),this.source=u,this.subjectFactory=m,this._refCount=0,this._isComplete=!1}_subscribe(u){return this.getSubject().subscribe(u)}getSubject(){const u=this._subject;return(!u||u.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let u=this._connection;return u||(this._isComplete=!1,u=this._connection=new s.w,u.add(this.source.subscribe(new p(this.getSubject(),this))),u.closed&&(this._connection=null,u=s.w.EMPTY)),u}refCount(){return(0,l.x)()(this)}}const t=(()=>{const x=i.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:x._subscribe},_isComplete:{value:x._isComplete,writable:!0},getSubject:{value:x.getSubject},connect:{value:x.connect},refCount:{value:x.refCount}}})();class p extends e.Yc{constructor(u,m){super(u),this.connectable=m}_error(u){this._unsubscribe(),super._error(u)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const u=this.connectable;if(u){this.connectable=null;const m=u._connection;u._refCount=0,u._subject=null,u._connection=null,m&&m.unsubscribe()}}}},23291:(gt,X,a)=>{"use strict";a.d(X,{aj:()=>p});var e=a(99759),n=a(11280),s=a(47279),l=a(6735),i=a(12594);const t={};function p(...x){let u=null,m=null;return(0,e.K)(x[x.length-1])&&(m=x.pop()),"function"==typeof x[x.length-1]&&(u=x.pop()),1===x.length&&(0,n.k)(x[0])&&(x=x[0]),(0,i.n)(x,m).lift(new c(u))}class c{constructor(u){this.resultSelector=u}call(u,m){return m.subscribe(new o(u,this.resultSelector))}}class o extends s.L{constructor(u,m){super(u),this.resultSelector=m,this.active=0,this.values=[],this.observables=[]}_next(u){this.values.push(t),this.observables.push(u)}_complete(){const u=this.observables,m=u.length;if(0===m)this.destination.complete();else{this.active=m,this.toRespond=m;for(let b=0;b<m;b++){const I=u[b];this.add((0,l.D)(this,I,I,b))}}}notifyComplete(u){0==(this.active-=1)&&this.destination.complete()}notifyNext(u,m,b,I,H){const O=this.values,G=this.toRespond?O[b]===t?--this.toRespond:this.toRespond:0;O[b]=m,0===G&&(this.resultSelector?this._tryResultSelector(O):this.destination.next(O.slice()))}_tryResultSelector(u){let m;try{m=this.resultSelector.apply(this,u)}catch(b){return void this.destination.error(b)}this.destination.next(m)}}},93990:(gt,X,a)=>{"use strict";a.d(X,{z:()=>l});var e=a(49193),n=a(87449);function l(...i){return function s(){return(0,n.J)(1)}()((0,e.of)(...i))}},24917:(gt,X,a)=>{"use strict";a.d(X,{P:()=>l});var e=a(54699),n=a(5253),s=a(91226);function l(i){return new e.y(t=>{let p;try{p=i()}catch(o){return void t.error(o)}return(p?(0,n.D)(p):(0,s.c)()).subscribe(t)})}},91226:(gt,X,a)=>{"use strict";a.d(X,{E:()=>n,c:()=>s});var e=a(54699);const n=new e.y(i=>i.complete());function s(i){return i?function l(i){return new e.y(t=>i.schedule(()=>t.complete()))}(i):n}},77504:(gt,X,a)=>{"use strict";a.d(X,{D:()=>t});var e=a(54699),n=a(11280),s=a(96124),l=a(37755),i=a(5253);function t(...c){if(1===c.length){const o=c[0];if((0,n.k)(o))return p(o,null);if((0,l.K)(o)&&Object.getPrototypeOf(o)===Object.prototype){const x=Object.keys(o);return p(x.map(u=>o[u]),x)}}if("function"==typeof c[c.length-1]){const o=c.pop();return p(c=1===c.length&&(0,n.k)(c[0])?c[0]:c,null).pipe((0,s.U)(x=>o(...x)))}return p(c,null)}function p(c,o){return new e.y(x=>{const u=c.length;if(0===u)return void x.complete();const m=new Array(u);let b=0,I=0;for(let H=0;H<u;H++){const O=(0,i.D)(c[H]);let P=!1;x.add(O.subscribe({next:G=>{P||(P=!0,I++),m[H]=G},error:G=>x.error(G),complete:()=>{b++,(b===u||!P)&&(I===u&&x.next(o?o.reduce((G,B,ae)=>(G[B]=m[ae],G),{}):m),x.complete())}}))}})}},5253:(gt,X,a)=>{"use strict";a.d(X,{D:()=>H});var e=a(54699),n=a(74372),s=a(7902),l=a(92677),p=a(65513),c=a(96258),u=a(36007),m=a(9990);function H(O,P){return P?function I(O,P){if(null!=O){if(function x(O){return O&&"function"==typeof O[l.L]}(O))return function i(O,P){return new e.y(G=>{const B=new s.w;return B.add(P.schedule(()=>{const ae=O[l.L]();B.add(ae.subscribe({next(J){B.add(P.schedule(()=>G.next(J)))},error(J){B.add(P.schedule(()=>G.error(J)))},complete(){B.add(P.schedule(()=>G.complete()))}}))})),B})}(O,P);if((0,u.t)(O))return function t(O,P){return new e.y(G=>{const B=new s.w;return B.add(P.schedule(()=>O.then(ae=>{B.add(P.schedule(()=>{G.next(ae),B.add(P.schedule(()=>G.complete()))}))},ae=>{B.add(P.schedule(()=>G.error(ae)))}))),B})}(O,P);if((0,m.z)(O))return(0,p.r)(O,P);if(function b(O){return O&&"function"==typeof O[c.hZ]}(O)||"string"==typeof O)return function o(O,P){if(!O)throw new Error("Iterable cannot be null");return new e.y(G=>{const B=new s.w;let ae;return B.add(()=>{ae&&"function"==typeof ae.return&&ae.return()}),B.add(P.schedule(()=>{ae=O[c.hZ](),B.add(P.schedule(function(){if(G.closed)return;let J,q;try{const j=ae.next();J=j.value,q=j.done}catch(j){return void G.error(j)}q?G.complete():(G.next(J),this.schedule())}))})),B})}(O,P)}throw new TypeError((null!==O&&typeof O||O)+" is not observable")}(O,P):O instanceof e.y?O:new e.y((0,n.s)(O))}},12594:(gt,X,a)=>{"use strict";a.d(X,{n:()=>l});var e=a(54699),n=a(44947),s=a(65513);function l(i,t){return t?(0,s.r)(i,t):new e.y((0,n.V)(i))}},49016:(gt,X,a)=>{"use strict";a.d(X,{R:()=>t});var e=a(54699),n=a(11280),s=a(38594),l=a(96124);function t(u,m,b,I){return(0,s.m)(b)&&(I=b,b=void 0),I?t(u,m,b).pipe((0,l.U)(H=>(0,n.k)(H)?I(...H):I(H))):new e.y(H=>{p(u,m,function O(P){H.next(arguments.length>1?Array.prototype.slice.call(arguments):P)},H,b)})}function p(u,m,b,I,H){let O;if(function x(u){return u&&"function"==typeof u.addEventListener&&"function"==typeof u.removeEventListener}(u)){const P=u;u.addEventListener(m,b,H),O=()=>P.removeEventListener(m,b,H)}else if(function o(u){return u&&"function"==typeof u.on&&"function"==typeof u.off}(u)){const P=u;u.on(m,b),O=()=>P.off(m,b)}else if(function c(u){return u&&"function"==typeof u.addListener&&"function"==typeof u.removeListener}(u)){const P=u;u.addListener(m,b),O=()=>P.removeListener(m,b)}else{if(!u||!u.length)throw new TypeError("Invalid event target");for(let P=0,G=u.length;P<G;P++)p(u[P],m,b,I,H)}I.add(O)}},74815:(gt,X,a)=>{"use strict";a.d(X,{F:()=>l});var e=a(54699),n=a(40435),s=a(66745);function l(t=0,p=n.P){return(!(0,s.k)(t)||t<0)&&(t=0),(!p||"function"!=typeof p.schedule)&&(p=n.P),new e.y(c=>(c.add(p.schedule(i,t,{subscriber:c,counter:0,period:t})),c))}function i(t){const{subscriber:p,counter:c,period:o}=t;p.next(c),this.schedule({subscriber:p,counter:c+1,period:o},o)}},47354:(gt,X,a)=>{"use strict";a.d(X,{T:()=>i});var e=a(54699),n=a(99759),s=a(87449),l=a(12594);function i(...t){let p=Number.POSITIVE_INFINITY,c=null,o=t[t.length-1];return(0,n.K)(o)?(c=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(p=t.pop())):"number"==typeof o&&(p=t.pop()),null===c&&1===t.length&&t[0]instanceof e.y?t[0]:(0,s.J)(p)((0,l.n)(t,c))}},49193:(gt,X,a)=>{"use strict";a.d(X,{of:()=>l});var e=a(99759),n=a(12594),s=a(65513);function l(...i){let t=i[i.length-1];return(0,e.K)(t)?(i.pop(),(0,s.r)(i,t)):(0,n.n)(i)}},16222:(gt,X,a)=>{"use strict";a.d(X,{_:()=>n});var e=a(54699);function n(l,i){return new e.y(i?t=>i.schedule(s,0,{error:l,subscriber:t}):t=>t.error(l))}function s({error:l,subscriber:i}){i.error(l)}},71928:(gt,X,a)=>{"use strict";a.d(X,{H:()=>i});var e=a(54699),n=a(40435),s=a(66745),l=a(99759);function i(p=0,c,o){let x=-1;return(0,s.k)(c)?x=Number(c)<1?1:Number(c):(0,l.K)(c)&&(o=c),(0,l.K)(o)||(o=n.P),new e.y(u=>{const m=(0,s.k)(p)?p:+p-o.now();return o.schedule(t,m,{index:0,period:x,subscriber:u})})}function t(p){const{index:c,period:o,subscriber:x}=p;if(x.next(c),!x.closed){if(-1===o)return x.complete();p.index=c+1,this.schedule(p,o)}}},23433:(gt,X,a)=>{"use strict";a.d(X,{e:()=>c});var e=a(40435),n=a(47279),s=a(6735);class i{constructor(x){this.durationSelector=x}call(x,u){return u.subscribe(new t(x,this.durationSelector))}}class t extends n.L{constructor(x,u){super(x),this.durationSelector=u,this.hasValue=!1}_next(x){if(this.value=x,this.hasValue=!0,!this.throttled){let u;try{const{durationSelector:b}=this;u=b(x)}catch(b){return this.destination.error(b)}const m=(0,s.D)(this,u);!m||m.closed?this.clearThrottle():this.add(this.throttled=m)}}clearThrottle(){const{value:x,hasValue:u,throttled:m}=this;m&&(this.remove(m),this.throttled=null,m.unsubscribe()),u&&(this.value=null,this.hasValue=!1,this.destination.next(x))}notifyNext(x,u,m,b){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var p=a(71928);function c(o,x=e.P){return function l(o){return function(u){return u.lift(new i(o))}}(()=>(0,p.H)(o,x))}},62413:(gt,X,a)=>{"use strict";a.d(X,{K:()=>l});var e=a(47279),n=a(61250),s=a(6735);function l(p){return function(o){const x=new i(p),u=o.lift(x);return x.caught=u}}class i{constructor(c){this.selector=c}call(c,o){return o.subscribe(new t(c,this.selector,this.caught))}}class t extends e.L{constructor(c,o,x){super(c),this.selector=o,this.caught=x}error(c){if(!this.isStopped){let o;try{o=this.selector(c,this.caught)}catch(m){return void super.error(m)}this._unsubscribeAndRecycle();const x=new n.d(this,void 0,void 0);this.add(x);const u=(0,s.D)(this,o,void 0,void 0,x);u!==x&&this.add(u)}}}},59724:(gt,X,a)=>{"use strict";a.d(X,{b:()=>n});var e=a(96743);function n(s,l){return(0,e.zg)(s,l,1)}},96776:(gt,X,a)=>{"use strict";a.d(X,{b:()=>s});var e=a(40254),n=a(40435);function s(p,c=n.P){return o=>o.lift(new l(p,c))}class l{constructor(c,o){this.dueTime=c,this.scheduler=o}call(c,o){return o.subscribe(new i(c,this.dueTime,this.scheduler))}}class i extends e.L{constructor(c,o,x){super(c),this.dueTime=o,this.scheduler=x,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(c){this.clearDebounce(),this.lastValue=c,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(t,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:c}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(c)}}clearDebounce(){const c=this.debouncedSubscription;null!==c&&(this.remove(c),c.unsubscribe(),this.debouncedSubscription=null)}}function t(p){p.debouncedNext()}},7428:(gt,X,a)=>{"use strict";a.d(X,{d:()=>n});var e=a(40254);function n(i=null){return t=>t.lift(new s(i))}class s{constructor(t){this.defaultValue=t}call(t,p){return p.subscribe(new l(t,this.defaultValue))}}class l extends e.L{constructor(t,p){super(t),this.defaultValue=p,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},29384:(gt,X,a)=>{"use strict";a.d(X,{g:()=>i});var e=a(40435),s=a(40254),l=a(56979);function i(o,x=e.P){const m=function n(o){return o instanceof Date&&!isNaN(+o)}(o)?+o-x.now():Math.abs(o);return b=>b.lift(new t(m,x))}class t{constructor(x,u){this.delay=x,this.scheduler=u}call(x,u){return u.subscribe(new p(x,this.delay,this.scheduler))}}class p extends s.L{constructor(x,u,m){super(x),this.delay=u,this.scheduler=m,this.queue=[],this.active=!1,this.errored=!1}static dispatch(x){const u=x.source,m=u.queue,b=x.scheduler,I=x.destination;for(;m.length>0&&m[0].time-b.now()<=0;)m.shift().notification.observe(I);if(m.length>0){const H=Math.max(0,m[0].time-b.now());this.schedule(x,H)}else this.unsubscribe(),u.active=!1}_schedule(x){this.active=!0,this.destination.add(x.schedule(p.dispatch,this.delay,{source:this,destination:this.destination,scheduler:x}))}scheduleNotification(x){if(!0===this.errored)return;const u=this.scheduler,m=new c(u.now()+this.delay,x);this.queue.push(m),!1===this.active&&this._schedule(u)}_next(x){this.scheduleNotification(l.P.createNext(x))}_error(x){this.errored=!0,this.queue=[],this.destination.error(x),this.unsubscribe()}_complete(){this.scheduleNotification(l.P.createComplete()),this.unsubscribe()}}class c{constructor(x,u){this.time=x,this.notification=u}}},32068:(gt,X,a)=>{"use strict";a.d(X,{x:()=>n});var e=a(40254);function n(i,t){return p=>p.lift(new s(i,t))}class s{constructor(t,p){this.compare=t,this.keySelector=p}call(t,p){return p.subscribe(new l(t,this.compare,this.keySelector))}}class l extends e.L{constructor(t,p,c){super(t),this.keySelector=c,this.hasKey=!1,"function"==typeof p&&(this.compare=p)}compare(t,p){return t===p}_next(t){let p;try{const{keySelector:o}=this;p=o?o(t):t}catch(o){return this.destination.error(o)}let c=!1;if(this.hasKey)try{const{compare:o}=this;c=o(this.key,p)}catch(o){return this.destination.error(o)}else this.hasKey=!0;c||(this.key=p,this.destination.next(t))}}},97734:(gt,X,a)=>{"use strict";a.d(X,{h:()=>n});var e=a(40254);function n(i,t){return function(c){return c.lift(new s(i,t))}}class s{constructor(t,p){this.predicate=t,this.thisArg=p}call(t,p){return p.subscribe(new l(t,this.predicate,this.thisArg))}}class l extends e.L{constructor(t,p,c){super(t),this.predicate=p,this.thisArg=c,this.count=0}_next(t){let p;try{p=this.predicate.call(this.thisArg,t,this.count++)}catch(c){return void this.destination.error(c)}p&&this.destination.next(t)}}},11541:(gt,X,a)=>{"use strict";a.d(X,{x:()=>s});var e=a(40254),n=a(7902);function s(t){return p=>p.lift(new l(t))}class l{constructor(p){this.callback=p}call(p,c){return c.subscribe(new i(p,this.callback))}}class i extends e.L{constructor(p,c){super(p),this.add(new n.w(c))}}},88419:(gt,X,a)=>{"use strict";a.d(X,{P:()=>p});var e=a(79319),n=a(97734),s=a(51418),l=a(7428),i=a(38698),t=a(60158);function p(c,o){const x=arguments.length>=2;return u=>u.pipe(c?(0,n.h)((m,b)=>c(m,b,u)):t.y,(0,s.q)(1),x?(0,l.d)(o):(0,i.T)(()=>new e.K))}},96124:(gt,X,a)=>{"use strict";a.d(X,{U:()=>n});var e=a(40254);function n(i,t){return function(c){if("function"!=typeof i)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return c.lift(new s(i,t))}}class s{constructor(t,p){this.project=t,this.thisArg=p}call(t,p){return p.subscribe(new l(t,this.project,this.thisArg))}}class l extends e.L{constructor(t,p,c){super(t),this.project=p,this.count=0,this.thisArg=c||this}_next(t){let p;try{p=this.project.call(this.thisArg,t,this.count++)}catch(c){return void this.destination.error(c)}this.destination.next(p)}}},64014:(gt,X,a)=>{"use strict";a.d(X,{h:()=>n});var e=a(40254);function n(i){return t=>t.lift(new s(i))}class s{constructor(t){this.value=t}call(t,p){return p.subscribe(new l(t,this.value))}}class l extends e.L{constructor(t,p){super(t),this.value=p}_next(t){this.destination.next(this.value)}}},87449:(gt,X,a)=>{"use strict";a.d(X,{J:()=>s});var e=a(96743),n=a(60158);function s(l=Number.POSITIVE_INFINITY){return(0,e.zg)(n.y,l)}},96743:(gt,X,a)=>{"use strict";a.d(X,{zg:()=>t});var e=a(6735),n=a(47279),s=a(61250),l=a(96124),i=a(5253);function t(o,x,u=Number.POSITIVE_INFINITY){return"function"==typeof x?m=>m.pipe(t((b,I)=>(0,i.D)(o(b,I)).pipe((0,l.U)((H,O)=>x(b,H,I,O))),u)):("number"==typeof x&&(u=x),m=>m.lift(new p(o,u)))}class p{constructor(x,u=Number.POSITIVE_INFINITY){this.project=x,this.concurrent=u}call(x,u){return u.subscribe(new c(x,this.project,this.concurrent))}}class c extends n.L{constructor(x,u,m=Number.POSITIVE_INFINITY){super(x),this.project=u,this.concurrent=m,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(x){this.active<this.concurrent?this._tryNext(x):this.buffer.push(x)}_tryNext(x){let u;const m=this.index++;try{u=this.project(x,m)}catch(b){return void this.destination.error(b)}this.active++,this._innerSub(u,x,m)}_innerSub(x,u,m){const b=new s.d(this,u,m),I=this.destination;I.add(b);const H=(0,e.D)(this,x,void 0,void 0,b);H!==b&&I.add(H)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(x,u,m,b,I){this.destination.next(u)}notifyComplete(x){const u=this.buffer;this.remove(x),this.active--,u.length>0?this._next(u.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},38370:(gt,X,a)=>{"use strict";a.d(X,{O:()=>n});var e=a(44247);function n(l,i){return function(p){let c;if(c="function"==typeof l?l:function(){return l},"function"==typeof i)return p.lift(new s(c,i));const o=Object.create(p,e.N);return o.source=p,o.subjectFactory=c,o}}class s{constructor(i,t){this.subjectFactory=i,this.selector=t}call(i,t){const{selector:p}=this,c=this.subjectFactory(),o=p(c).subscribe(i);return o.add(t.subscribe(c)),o}}},94760:(gt,X,a)=>{"use strict";a.d(X,{G:()=>n});var e=a(40254);function n(){return i=>i.lift(new s)}class s{call(t,p){return p.subscribe(new l(t))}}class l extends e.L{constructor(t){super(t),this.hasPrev=!1}_next(t){let p;this.hasPrev?p=[this.prev,t]:this.hasPrev=!0,this.prev=t,p&&this.destination.next(p)}}},94973:(gt,X,a)=>{"use strict";a.d(X,{C:()=>i});var e=a(72079),n=a(7902);class s extends e.xQ{constructor(){super(...arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}_subscribe(p){return this.hasError?(p.error(this.thrownError),n.w.EMPTY):this.hasCompleted&&this.hasNext?(p.next(this.value),p.complete(),n.w.EMPTY):super._subscribe(p)}next(p){this.hasCompleted||(this.value=p,this.hasNext=!0)}error(p){this.hasCompleted||super.error(p)}complete(){this.hasCompleted=!0,this.hasNext&&super.next(this.value),super.complete()}}var l=a(38370);function i(){return t=>(0,l.O)(new s)(t)}},82851:(gt,X,a)=>{"use strict";a.d(X,{x:()=>n});var e=a(40254);function n(){return function(t){return t.lift(new s(t))}}class s{constructor(t){this.connectable=t}call(t,p){const{connectable:c}=this;c._refCount++;const o=new l(t,c),x=p.subscribe(o);return o.closed||(o.connection=c.connect()),x}}class l extends e.L{constructor(t,p){super(t),this.connectable=p}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const p=t._refCount;if(p<=0)return void(this.connection=null);if(t._refCount=p-1,p>1)return void(this.connection=null);const{connection:c}=this,o=t._connection;this.connection=null,o&&(!c||o===c)&&o.unsubscribe()}}},44003:(gt,X,a)=>{"use strict";a.d(X,{R:()=>n});var e=a(40254);function n(i,t){let p=!1;return arguments.length>=2&&(p=!0),function(o){return o.lift(new s(i,t,p))}}class s{constructor(t,p,c=!1){this.accumulator=t,this.seed=p,this.hasSeed=c}call(t,p){return p.subscribe(new l(t,this.accumulator,this.seed,this.hasSeed))}}class l extends e.L{constructor(t,p,c,o){super(t),this.accumulator=p,this._seed=c,this.hasSeed=o,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const p=this.index++;let c;try{c=this.accumulator(this.seed,t,p)}catch(o){this.destination.error(o)}this.seed=c,this.destination.next(c)}}},86657:(gt,X,a)=>{"use strict";a.d(X,{B:()=>i});var e=a(38370),n=a(82851),s=a(72079);function l(){return new s.xQ}function i(){return t=>(0,n.x)()((0,e.O)(l)(t))}},49185:(gt,X,a)=>{"use strict";a.d(X,{d:()=>n});var e=a(8367);function n(l,i,t){let p;return p=l&&"object"==typeof l?l:{bufferSize:l,windowTime:i,refCount:!1,scheduler:t},c=>c.lift(function s({bufferSize:l=Number.POSITIVE_INFINITY,windowTime:i=Number.POSITIVE_INFINITY,refCount:t,scheduler:p}){let c,x,o=0,u=!1,m=!1;return function(I){o++,(!c||u)&&(u=!1,c=new e.t(l,i,p),x=I.subscribe({next(O){c.next(O)},error(O){u=!0,c.error(O)},complete(){m=!0,x=void 0,c.complete()}}));const H=c.subscribe(this);this.add(()=>{o--,H.unsubscribe(),x&&!m&&t&&0===o&&(x.unsubscribe(),x=void 0,c=void 0)})}}(p))}},24521:(gt,X,a)=>{"use strict";a.d(X,{T:()=>n});var e=a(40254);function n(i){return t=>t.lift(new s(i))}class s{constructor(t){this.total=t}call(t,p){return p.subscribe(new l(t,this.total))}}class l extends e.L{constructor(t,p){super(t),this.total=p,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}},53075:(gt,X,a)=>{"use strict";a.d(X,{O:()=>s});var e=a(93990),n=a(99759);function s(...l){const i=l[l.length-1];return(0,n.K)(i)?(l.pop(),t=>(0,e.z)(l,t,i)):t=>(0,e.z)(l,t)}},75222:(gt,X,a)=>{"use strict";a.d(X,{w:()=>t});var e=a(47279),n=a(61250),s=a(6735),l=a(96124),i=a(5253);function t(o,x){return"function"==typeof x?u=>u.pipe(t((m,b)=>(0,i.D)(o(m,b)).pipe((0,l.U)((I,H)=>x(m,I,b,H))))):u=>u.lift(new p(o))}class p{constructor(x){this.project=x}call(x,u){return u.subscribe(new c(x,this.project))}}class c extends e.L{constructor(x,u){super(x),this.project=u,this.index=0}_next(x){let u;const m=this.index++;try{u=this.project(x,m)}catch(b){return void this.destination.error(b)}this._innerSub(u,x,m)}_innerSub(x,u,m){const b=this.innerSubscription;b&&b.unsubscribe();const I=new n.d(this,u,m),H=this.destination;H.add(I),this.innerSubscription=(0,s.D)(this,x,void 0,void 0,I),this.innerSubscription!==I&&H.add(this.innerSubscription)}_complete(){const{innerSubscription:x}=this;(!x||x.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(x){this.destination.remove(x),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(x,u,m,b,I){this.destination.next(u)}}},51418:(gt,X,a)=>{"use strict";a.d(X,{q:()=>l});var e=a(40254),n=a(96310),s=a(91226);function l(p){return c=>0===p?(0,s.c)():c.lift(new i(p))}class i{constructor(c){if(this.total=c,this.total<0)throw new n.W}call(c,o){return o.subscribe(new t(c,this.total))}}class t extends e.L{constructor(c,o){super(c),this.total=o,this.count=0}_next(c){const o=this.total,x=++this.count;x<=o&&(this.destination.next(c),x===o&&(this.destination.complete(),this.unsubscribe()))}}},74599:(gt,X,a)=>{"use strict";a.d(X,{h:()=>l});var e=a(40254),n=a(96310),s=a(91226);function l(p){return function(o){return 0===p?(0,s.c)():o.lift(new i(p))}}class i{constructor(c){if(this.total=c,this.total<0)throw new n.W}call(c,o){return o.subscribe(new t(c,this.total))}}class t extends e.L{constructor(c,o){super(c),this.total=o,this.ring=new Array,this.count=0}_next(c){const o=this.ring,x=this.total,u=this.count++;o.length<x?o.push(c):o[u%x]=c}_complete(){const c=this.destination;let o=this.count;if(o>0){const x=this.count>=this.total?this.total:this.count,u=this.ring;for(let m=0;m<x;m++){const b=o++%x;c.next(u[b])}}c.complete()}}},19352:(gt,X,a)=>{"use strict";a.d(X,{R:()=>s});var e=a(47279),n=a(6735);function s(t){return p=>p.lift(new l(t))}class l{constructor(p){this.notifier=p}call(p,c){const o=new i(p),x=(0,n.D)(o,this.notifier);return x&&!o.seenValue?(o.add(x),c.subscribe(o)):o}}class i extends e.L{constructor(p){super(p),this.seenValue=!1}notifyNext(p,c,o,x,u){this.seenValue=!0,this.complete()}notifyComplete(){}}},66141:(gt,X,a)=>{"use strict";a.d(X,{o:()=>n});var e=a(40254);function n(i,t=!1){return p=>p.lift(new s(i,t))}class s{constructor(t,p){this.predicate=t,this.inclusive=p}call(t,p){return p.subscribe(new l(t,this.predicate,this.inclusive))}}class l extends e.L{constructor(t,p,c){super(t),this.predicate=p,this.inclusive=c,this.index=0}_next(t){const p=this.destination;let c;try{c=this.predicate(t,this.index++)}catch(o){return void p.error(o)}this.nextOrComplete(t,c)}nextOrComplete(t,p){const c=this.destination;p?c.next(t):(this.inclusive&&c.next(t),c.complete())}}},17927:(gt,X,a)=>{"use strict";a.d(X,{b:()=>l});var e=a(40254),n=a(29918),s=a(38594);function l(p,c,o){return function(u){return u.lift(new i(p,c,o))}}class i{constructor(c,o,x){this.nextOrObserver=c,this.error=o,this.complete=x}call(c,o){return o.subscribe(new t(c,this.nextOrObserver,this.error,this.complete))}}class t extends e.L{constructor(c,o,x,u){super(c),this._tapNext=n.Z,this._tapError=n.Z,this._tapComplete=n.Z,this._tapError=x||n.Z,this._tapComplete=u||n.Z,(0,s.m)(o)?(this._context=this,this._tapNext=o):o&&(this._context=o,this._tapNext=o.next||n.Z,this._tapError=o.error||n.Z,this._tapComplete=o.complete||n.Z)}_next(c){try{this._tapNext.call(this._context,c)}catch(o){return void this.destination.error(o)}this.destination.next(c)}_error(c){try{this._tapError.call(this._context,c)}catch(o){return void this.destination.error(o)}this.destination.error(c)}_complete(){try{this._tapComplete.call(this._context)}catch(c){return void this.destination.error(c)}return this.destination.complete()}}},38698:(gt,X,a)=>{"use strict";a.d(X,{T:()=>s});var e=a(79319),n=a(40254);function s(p=t){return c=>c.lift(new l(p))}class l{constructor(c){this.errorFactory=c}call(c,o){return o.subscribe(new i(c,this.errorFactory))}}class i extends n.L{constructor(c,o){super(c),this.errorFactory=o,this.hasValue=!1}_next(c){this.hasValue=!0,this.destination.next(c)}_complete(){if(this.hasValue)return this.destination.complete();{let c;try{c=this.errorFactory()}catch(o){c=o}this.destination.error(c)}}}function t(){return new e.K}},65513:(gt,X,a)=>{"use strict";a.d(X,{r:()=>s});var e=a(54699),n=a(7902);function s(l,i){return new e.y(t=>{const p=new n.w;let c=0;return p.add(i.schedule(function(){c!==l.length?(t.next(l[c++]),t.closed||p.add(this.schedule())):t.complete()})),p})}},61618:(gt,X,a)=>{"use strict";a.d(X,{o:()=>s});var e=a(7902);class n extends e.w{constructor(i,t){super()}schedule(i,t=0){return this}}class s extends n{constructor(i,t){super(i,t),this.scheduler=i,this.work=t,this.pending=!1}schedule(i,t=0){if(this.closed)return this;this.state=i;const p=this.id,c=this.scheduler;return null!=p&&(this.id=this.recycleAsyncId(c,p,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(c,this.id,t),this}requestAsyncId(i,t,p=0){return setInterval(i.flush.bind(i,this),p)}recycleAsyncId(i,t,p=0){if(null!==p&&this.delay===p&&!1===this.pending)return t;clearInterval(t)}execute(i,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const p=this._execute(i,t);if(p)return p;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(i,t){let c,p=!1;try{this.work(i)}catch(o){p=!0,c=!!o&&o||new Error(o)}if(p)return this.unsubscribe(),c}_unsubscribe(){const i=this.id,t=this.scheduler,p=t.actions,c=p.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==c&&p.splice(c,1),null!=i&&(this.id=this.recycleAsyncId(t,i,null)),this.delay=null}}},91781:(gt,X,a)=>{"use strict";a.d(X,{v:()=>n});let e=(()=>{class s{constructor(i,t=s.now){this.SchedulerAction=i,this.now=t}schedule(i,t=0,p){return new this.SchedulerAction(this,i).schedule(p,t)}}return s.now=()=>Date.now(),s})();class n extends e{constructor(l,i=e.now){super(l,()=>n.delegate&&n.delegate!==this?n.delegate.now():i()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(l,i=0,t){return n.delegate&&n.delegate!==this?n.delegate.schedule(l,i,t):super.schedule(l,i,t)}flush(l){const{actions:i}=this;if(this.active)return void i.push(l);let t;this.active=!0;do{if(t=l.execute(l.state,l.delay))break}while(l=i.shift());if(this.active=!1,t){for(;l=i.shift();)l.unsubscribe();throw t}}}},73944:(gt,X,a)=>{"use strict";a.d(X,{r:()=>i});var e=a(61618),s=a(91781);const i=new class l extends s.v{flush(p){this.active=!0,this.scheduled=void 0;const{actions:c}=this;let o,x=-1,u=c.length;p=p||c.shift();do{if(o=p.execute(p.state,p.delay))break}while(++x<u&&(p=c.shift()));if(this.active=!1,o){for(;++x<u&&(p=c.shift());)p.unsubscribe();throw o}}}(class n extends e.o{constructor(p,c){super(p,c),this.scheduler=p,this.work=c}requestAsyncId(p,c,o=0){return null!==o&&o>0?super.requestAsyncId(p,c,o):(p.actions.push(this),p.scheduled||(p.scheduled=requestAnimationFrame(()=>p.flush(null))))}recycleAsyncId(p,c,o=0){if(null!==o&&o>0||null===o&&this.delay>0)return super.recycleAsyncId(p,c,o);0===p.actions.length&&(cancelAnimationFrame(c),p.scheduled=void 0)}})},40435:(gt,X,a)=>{"use strict";a.d(X,{P:()=>s});var e=a(61618);const s=new(a(91781).v)(e.o)},96258:(gt,X,a)=>{"use strict";a.d(X,{hZ:()=>n});const n=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},92677:(gt,X,a)=>{"use strict";a.d(X,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},55297:(gt,X,a)=>{"use strict";a.d(X,{b:()=>e});const e="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},96310:(gt,X,a)=>{"use strict";a.d(X,{W:()=>n});const n=(()=>{function s(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return s.prototype=Object.create(Error.prototype),s})()},79319:(gt,X,a)=>{"use strict";a.d(X,{K:()=>n});const n=(()=>{function s(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return s.prototype=Object.create(Error.prototype),s})()},6229:(gt,X,a)=>{"use strict";a.d(X,{N:()=>n});const n=(()=>{function s(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return s.prototype=Object.create(Error.prototype),s})()},13510:(gt,X,a)=>{"use strict";function e(n){setTimeout(()=>{throw n},0)}a.d(X,{z:()=>e})},60158:(gt,X,a)=>{"use strict";function e(n){return n}a.d(X,{y:()=>e})},11280:(gt,X,a)=>{"use strict";a.d(X,{k:()=>e});const e=Array.isArray||(n=>n&&"number"==typeof n.length)},9990:(gt,X,a)=>{"use strict";a.d(X,{z:()=>e});const e=n=>n&&"number"==typeof n.length&&"function"!=typeof n},38594:(gt,X,a)=>{"use strict";function e(n){return"function"==typeof n}a.d(X,{m:()=>e})},66745:(gt,X,a)=>{"use strict";a.d(X,{k:()=>n});var e=a(11280);function n(s){return!(0,e.k)(s)&&s-parseFloat(s)+1>=0}},37755:(gt,X,a)=>{"use strict";function e(n){return null!==n&&"object"==typeof n}a.d(X,{K:()=>e})},95363:(gt,X,a)=>{"use strict";a.d(X,{b:()=>n});var e=a(54699);function n(s){return!!s&&(s instanceof e.y||"function"==typeof s.lift&&"function"==typeof s.subscribe)}},36007:(gt,X,a)=>{"use strict";function e(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}a.d(X,{t:()=>e})},99759:(gt,X,a)=>{"use strict";function e(n){return n&&"function"==typeof n.schedule}a.d(X,{K:()=>e})},29918:(gt,X,a)=>{"use strict";function e(){}a.d(X,{Z:()=>e})},54813:(gt,X,a)=>{"use strict";a.d(X,{U:()=>s,z:()=>n});var e=a(60158);function n(...l){return s(l)}function s(l){return 0===l.length?e.y:1===l.length?l[0]:function(t){return l.reduce((p,c)=>c(p),t)}}},74372:(gt,X,a)=>{"use strict";a.d(X,{s:()=>u});var e=a(44947),n=a(13510),l=a(96258),t=a(92677),c=a(9990),o=a(36007),x=a(37755);const u=m=>{if(m&&"function"==typeof m[t.L])return(m=>b=>{const I=m[t.L]();if("function"!=typeof I.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return I.subscribe(b)})(m);if((0,c.z)(m))return(0,e.V)(m);if((0,o.t)(m))return(m=>b=>(m.then(I=>{b.closed||(b.next(I),b.complete())},I=>b.error(I)).then(null,n.z),b))(m);if(m&&"function"==typeof m[l.hZ])return(m=>b=>{const I=m[l.hZ]();for(;;){const H=I.next();if(H.done){b.complete();break}if(b.next(H.value),b.closed)break}return"function"==typeof I.return&&b.add(()=>{I.return&&I.return()}),b})(m);{const I=`You provided ${(0,x.K)(m)?"an invalid object":`'${m}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(I)}}},44947:(gt,X,a)=>{"use strict";a.d(X,{V:()=>e});const e=n=>s=>{for(let l=0,i=n.length;l<i&&!s.closed;l++)s.next(n[l]);s.complete()}},6735:(gt,X,a)=>{"use strict";a.d(X,{D:()=>l});var e=a(61250),n=a(74372),s=a(54699);function l(i,t,p,c,o=new e.d(i,p,c)){if(!o.closed)return t instanceof s.y?t.subscribe(o):(0,n.s)(t)(o)}},56567:gt=>{function X(s){return s&&s.length?" "+s.map(function(l){return l[0]+'="'+l[1]+'"'}).join(" "):""}gt.exports.attr=X,gt.exports.tagClose=function a(s,l){return"<"+s+X(l)+"/>"},gt.exports.tag=function e(s,l,i){return"<"+s+X(i)+">"+l+"</"+s+">"},gt.exports.encode=function n(s){return(null===s?"":s.toString()).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}},50579:(gt,X,a)=>{var e=a(56567),n=e.tag,s=e.encode;function l(Y,K){return function(ne){if(!ne.properties||!u.valid(ne.geometry))return"";var ee=u.any(ne.geometry);if(!ee)return"";var $="",ue="";if(Y.simplestyle){var ge=function J(Y){var K="";return Y["marker-symbol"]&&(K=K+"ms"+Y["marker-symbol"]),Y["marker-color"]&&(K=K+"mc"+Y["marker-color"].replace("#","")),Y["marker-size"]&&(K=K+"ms"+Y["marker-size"]),Y.stroke&&(K=K+"s"+Y.stroke.replace("#","")),Y["stroke-width"]&&(K=K+"sw"+Y["stroke-width"].toString().replace(".","")),Y["stroke-opacity"]&&(K=K+"mo"+Y["stroke-opacity"].toString().replace(".","")),Y.fill&&(K=K+"f"+Y.fill.replace("#","")),Y["fill-opacity"]&&(K=K+"fo"+Y["fill-opacity"].toString().replace(".","")),K}(ne.properties);ge&&(u.isPoint(ne.geometry)&&function H(Y){return!!(Y["marker-size"]||Y["marker-symbol"]||Y["marker-color"])}(ne.properties)?(-1===K.indexOf(ge)&&($=function O(Y,K){return n("Style",n("IconStyle",n("Icon",n("href",function P(Y){var K=Y["marker-size"]||"medium",ne=Y["marker-symbol"]?"-"+Y["marker-symbol"]:"",ee=(Y["marker-color"]||"7e7e7e").replace("#","");return"https://api.tiles.mapbox.com/v3/marker/pin-"+K.charAt(0)+ne+"+"+ee+".png"}(Y))))+function G(Y){return n("hotSpot","",[["xunits","fraction"],["yunits","fraction"],["x",.5],["y",.5]])}(),[["id",K]])}(ne.properties,ge),K.push(ge)),ue=n("styleUrl","#"+ge)):(u.isPolygon(ne.geometry)||u.isLine(ne.geometry))&&function B(Y){for(var K in Y)if({stroke:!0,"stroke-opacity":!0,"stroke-width":!0,fill:!0,"fill-opacity":!0}[K])return!0}(ne.properties)&&(-1===K.indexOf(ge)&&($=function ae(Y,K){var ne=n("LineStyle",[n("color",q(Y.stroke,Y["stroke-opacity"])||"ff555555")+n("width",void 0===Y["stroke-width"]?2:Y["stroke-width"])]),ee="";return(Y.fill||Y["fill-opacity"])&&(ee=n("PolyStyle",[n("color",q(Y.fill,Y["fill-opacity"])||"88555555")])),n("Style",ne+ee,[["id",K]])}(ne.properties,ge),K.push(ge)),ue=n("styleUrl","#"+ge)))}return $+n("Placemark",function c(Y,K){return Y[K.name]?n("name",s(Y[K.name])):""}(ne.properties,Y)+function o(Y,K){return Y[K.description]?n("description",s(Y[K.description])):""}(ne.properties,Y)+function b(Y){return n("ExtendedData",function j(Y){var K=[];for(var ne in Y)K.push([ne,Y[ne]]);return K}(Y).map(I).join(""))}(ne.properties)+function x(Y,K){return Y[K.timestamp]?n("TimeStamp",n("when",s(Y[K.timestamp]))):""}(ne.properties,Y)+ee+ue)}}gt.exports=function(K,ne){return'<?xml version="1.0" encoding="UTF-8"?>'+n("kml",n("Document",function t(Y){return void 0!==Y.documentName?n("name",Y.documentName):""}(ne=ne||{documentName:void 0,documentDescription:void 0,name:"name",description:"description",simplestyle:!1,timestamp:"timestamp"})+function p(Y){return void 0!==Y.documentDescription?n("description",Y.documentDescription):""}(ne)+function i(Y,K){if(!Y.type)return"";var ne=[];switch(Y.type){case"FeatureCollection":return Y.features?Y.features.map(l(K,ne)).join(""):"";case"Feature":return l(K,ne)(Y);default:return l(K,ne)({type:"Feature",geometry:Y,properties:{}})}}(K,ne)),[["xmlns","http://www.opengis.net/kml/2.2"]])};var u={Point:function(Y){return n("Point",n("coordinates",Y.coordinates.join(",")))},LineString:function(Y){return n("LineString",n("coordinates",m(Y.coordinates)))},Polygon:function(Y){if(!Y.coordinates.length)return"";var K=Y.coordinates[0],ne=Y.coordinates.slice(1),ee=n("outerBoundaryIs",n("LinearRing",n("coordinates",m(K)))),$=ne.map(function(ue){return n("innerBoundaryIs",n("LinearRing",n("coordinates",m(ue))))}).join("");return n("Polygon",ee+$)},MultiPoint:function(Y){return Y.coordinates.length?n("MultiGeometry",Y.coordinates.map(function(K){return u.Point({coordinates:K})}).join("")):""},MultiPolygon:function(Y){return Y.coordinates.length?n("MultiGeometry",Y.coordinates.map(function(K){return u.Polygon({coordinates:K})}).join("")):""},MultiLineString:function(Y){return Y.coordinates.length?n("MultiGeometry",Y.coordinates.map(function(K){return u.LineString({coordinates:K})}).join("")):""},GeometryCollection:function(Y){return n("MultiGeometry",Y.geometries.map(u.any).join(""))},valid:function(Y){return Y&&Y.type&&(Y.coordinates||"GeometryCollection"===Y.type&&Y.geometries&&Y.geometries.every(u.valid))},any:function(Y){return u[Y.type]?u[Y.type](Y):""},isPoint:function(Y){return"Point"===Y.type||"MultiPoint"===Y.type},isPolygon:function(Y){return"Polygon"===Y.type||"MultiPolygon"===Y.type},isLine:function(Y){return"LineString"===Y.type||"MultiLineString"===Y.type}};function m(Y){return Y.map(function(K){return K.join(",")}).join(" ")}function I(Y){return n("Data",n("value",s(Y[1])),[["name",s(Y[0])]])}function q(Y,K){if("string"!=typeof Y)return"";if(3===(Y=Y.replace("#","").toLowerCase()).length)Y=Y[0]+Y[0]+Y[1]+Y[1]+Y[2]+Y[2];else if(6!==Y.length)return"";var ne=Y[0]+Y[1],ee=Y[2]+Y[3],$=Y[4]+Y[5],ue="ff";return"number"==typeof K&&K>=0&&K<=1&&((ue=(255*K).toString(16)).indexOf(".")>-1&&(ue=ue.substr(0,ue.indexOf("."))),ue.length<2&&(ue="0"+ue)),ue+$+ee+ne}},42480:()=>{},82102:(gt,X,a)=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});const e=a(97582);(0,e.__exportStar)(a(60012),X),(0,e.__exportStar)(a(56197),X)},60012:(gt,X)=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0})},56197:(gt,X,a)=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.ImgProxyUrlBuilder=void 0;const e=a(97582),n=(0,e.__importStar)(a(85506)),s=(0,e.__importStar)(a(22406)),l=(0,e.__importStar)(a(75569)),i=(0,e.__importDefault)(a(94116)),t=(0,e.__importDefault)(a(74037)),p={type:"fill"},c={type:"ce"};X.ImgProxyUrlBuilder=class o{constructor(I,H){this.source=I,this.config=H,this.processingOptions={}}resize(I){var H,O;const P=Object.assign(Object.assign({},p),I);return this.processingOptions.rs=`${P.type}:${null!==(H=P.width)&&void 0!==H?H:""}:${null!==(O=P.height)&&void 0!==O?O:""}`,this.processingOptions.g?this:this.gravity(c)}gravity(I){return"fp"===I.type&&.5===I.x_offset&&.5===I.y_offset?this.gravity(c):(this.processingOptions.g=`${I.type}${I.x_offset?":"+I.x_offset:""}${I.y_offset?":"+I.y_offset:""}`,this)}buster(I){return this.processingOptions.cb=I,this}build(){const I=[];Object.entries(this.processingOptions).forEach(([P,G])=>{I.push(`${P}:${G}`)});const H="/"+I.join("/")+"/"+m(x(this.source)),O=u(this.config.salt,H,this.config.key);return`${this.config.baseUrl}${O}${H}`}};const x=b=>btoa(encodeURIComponent(b).replace(/%([0-9A-F]{2})/g,function(I,H){return String.fromCharCode(parseInt(H,16))})),u=(b,I,H)=>{const O=s.parse(b),P=s.parse(H),G=l.parse(I),B=(0,i.default)(O.concat(G),P);return m(n.stringify(t.default.create(B.words,8)))},m=b=>b.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},15624:function(gt){gt.exports=function(){"use strict";var X,a,e;function n(l,i){if(X)if(a){var t="var sharedChunk = {}; ("+X+")(sharedChunk); ("+a+")(sharedChunk);",p={};X(p),e=i(p),typeof window<"u"&&(e.workerUrl=window.URL.createObjectURL(new Blob([t],{type:"text/javascript"})))}else a=i;else X=i}return n(0,function(l){function i(y){return y&&y.__esModule&&Object.prototype.hasOwnProperty.call(y,"default")?y.default:y}var t=p;function p(y,g){this.x=y,this.y=g}p.prototype={clone:function(){return new p(this.x,this.y)},add:function(y){return this.clone()._add(y)},sub:function(y){return this.clone()._sub(y)},multByPoint:function(y){return this.clone()._multByPoint(y)},divByPoint:function(y){return this.clone()._divByPoint(y)},mult:function(y){return this.clone()._mult(y)},div:function(y){return this.clone()._div(y)},rotate:function(y){return this.clone()._rotate(y)},rotateAround:function(y,g){return this.clone()._rotateAround(y,g)},matMult:function(y){return this.clone()._matMult(y)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(y){return this.x===y.x&&this.y===y.y},dist:function(y){return Math.sqrt(this.distSqr(y))},distSqr:function(y){var g=y.x-this.x,T=y.y-this.y;return g*g+T*T},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(y){return Math.atan2(this.y-y.y,this.x-y.x)},angleWith:function(y){return this.angleWithSep(y.x,y.y)},angleWithSep:function(y,g){return Math.atan2(this.x*g-this.y*y,this.x*y+this.y*g)},_matMult:function(y){var g=y[2]*this.x+y[3]*this.y;return this.x=y[0]*this.x+y[1]*this.y,this.y=g,this},_add:function(y){return this.x+=y.x,this.y+=y.y,this},_sub:function(y){return this.x-=y.x,this.y-=y.y,this},_mult:function(y){return this.x*=y,this.y*=y,this},_div:function(y){return this.x/=y,this.y/=y,this},_multByPoint:function(y){return this.x*=y.x,this.y*=y.y,this},_divByPoint:function(y){return this.x/=y.x,this.y/=y.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var y=this.y;return this.y=this.x,this.x=-y,this},_rotate:function(y){var g=Math.cos(y),T=Math.sin(y),W=T*this.x+g*this.y;return this.x=g*this.x-T*this.y,this.y=W,this},_rotateAround:function(y,g){var T=Math.cos(y),W=Math.sin(y),le=g.y+W*(this.x-g.x)+T*(this.y-g.y);return this.x=g.x+T*(this.x-g.x)-W*(this.y-g.y),this.y=le,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},p.convert=function(y){return y instanceof p?y:Array.isArray(y)?new p(y[0],y[1]):y};var c=i(t),o=x;function x(y,g,T,W){this.cx=3*y,this.bx=3*(T-y)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*g,this.by=3*(W-g)-this.cy,this.ay=1-this.cy-this.by,this.p1x=y,this.p1y=g,this.p2x=T,this.p2y=W}x.prototype={sampleCurveX:function(y){return((this.ax*y+this.bx)*y+this.cx)*y},sampleCurveY:function(y){return((this.ay*y+this.by)*y+this.cy)*y},sampleCurveDerivativeX:function(y){return(3*this.ax*y+2*this.bx)*y+this.cx},solveCurveX:function(y,g){if(void 0===g&&(g=1e-6),y<0)return 0;if(y>1)return 1;for(var T=y,W=0;W<8;W++){var le=this.sampleCurveX(T)-y;if(Math.abs(le)<g)return T;var De=this.sampleCurveDerivativeX(T);if(Math.abs(De)<1e-6)break;T-=le/De}var ke=0,Ot=1;for(T=y,W=0;W<20&&(le=this.sampleCurveX(T),!(Math.abs(le-y)<g));W++)y>le?ke=T:Ot=T,T=.5*(Ot-ke)+ke;return T},solve:function(y,g){return this.sampleCurveY(this.solveCurveX(y,g))}};var u=i(o);function m(y,g,T,W){const le=new u(y,g,T,W);return function(De){return le.solve(De)}}const b=m(.25,.1,.25,1);function I(y,g,T){return Math.min(T,Math.max(g,y))}function H(y,g,T){const W=T-g,le=((y-g)%W+W)%W+g;return le===g?T:le}function O(y,...g){for(const T of g)for(const W in T)y[W]=T[W];return y}let P=1;function G(y,g,T){const W={};for(const le in y)W[le]=g.call(T||this,y[le],le,y);return W}function B(y,g,T){const W={};for(const le in y)g.call(T||this,y[le],le,y)&&(W[le]=y[le]);return W}function ae(y){return Array.isArray(y)?y.map(ae):"object"==typeof y&&y?G(y,ae):y}const J={};function q(y){J[y]||(typeof console<"u"&&console.warn(y),J[y]=!0)}function j(y,g,T){return(T.y-y.y)*(g.x-y.x)>(g.y-y.y)*(T.x-y.x)}function Y(y){let g=0;for(let T,W,le=0,De=y.length,ke=De-1;le<De;ke=le++)T=y[le],W=y[ke],g+=(W.x-T.x)*(T.y+W.y);return g}function K(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}let ne=null;function ee(y){if(null==ne){const g=y.navigator?y.navigator.userAgent:null;ne=!!y.safari||!(!g||!(/\b(iPad|iPhone|iPod)\b/.test(g)||g.match("Safari")&&!g.match("Chrome")))}return ne}function $(y){return typeof ImageBitmap<"u"&&y instanceof ImageBitmap}const ue="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let ge,Ke;const at={now:typeof performance<"u"&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),frame(y){const g=requestAnimationFrame(y);return{cancel:()=>cancelAnimationFrame(g)}},getImageData(y,g=0){return this.getImageCanvasContext(y).getImageData(-g,-g,y.width+2*g,y.height+2*g)},getImageCanvasContext(y){const g=window.document.createElement("canvas"),T=g.getContext("2d",{willReadFrequently:!0});if(!T)throw new Error("failed to create canvas 2d context");return g.width=y.width,g.height=y.height,T.drawImage(y,0,0,y.width,y.height),T},resolveURL:y=>(ge||(ge=document.createElement("a")),ge.href=y,ge.href),hardwareConcurrency:typeof navigator<"u"&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(null==Ke&&(Ke=matchMedia("(prefers-reduced-motion: reduce)")),Ke.matches)}},Le={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};class R extends Error{constructor(g,T,W,le){super(`AJAXError: ${T} (${g}): ${W}`),this.status=g,this.statusText=T,this.url=W,this.body=le}}const Te=K()?()=>self.worker&&self.worker.referrer:()=>("blob:"===window.location.protocol?window.parent:window).location.href,me=y=>Le.REGISTERED_PROTOCOLS[y.substring(0,y.indexOf("://"))];function Se(y,g){const T=new AbortController,W=new Request(y.url,{method:y.method||"GET",body:y.body,credentials:y.credentials,headers:y.headers,cache:y.cache,referrer:Te(),signal:T.signal});let le=!1,De=!1;return"json"===y.type&&W.headers.set("Accept","application/json"),De||fetch(W).then(ke=>{return ke.ok?(Ot=ke,void("arrayBuffer"===y.type||"image"===y.type?Ot.arrayBuffer():"json"===y.type?Ot.json():Ot.text()).then(Nt=>{De||(le=!0,g(null,Nt,Ot.headers.get("Cache-Control"),Ot.headers.get("Expires")))}).catch(Nt=>{De||g(new Error(Nt.message))})):ke.blob().then(Ot=>g(new R(ke.status,ke.statusText,y.url,Ot)));var Ot}).catch(ke=>{20!==ke.code&&g(new Error(ke.message))}),{cancel:()=>{De=!0,le||T.abort()}}}const Ue=function(y,g){if(/:\/\//.test(y.url)&&!/^https?:|^file:/.test(y.url)){if(K()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",y,g);if(!K())return(me(y.url)||Se)(y,g)}if(!(/^file:/.test(T=y.url)||/^file:/.test(Te())&&!/^\w+:/.test(T))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return Se(y,g);if(K()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",y,g,void 0,!0)}var T;return function(W,le){const De=new XMLHttpRequest;De.open(W.method||"GET",W.url,!0),"arrayBuffer"!==W.type&&"image"!==W.type||(De.responseType="arraybuffer");for(const ke in W.headers)De.setRequestHeader(ke,W.headers[ke]);return"json"===W.type&&(De.responseType="text",De.setRequestHeader("Accept","application/json")),De.withCredentials="include"===W.credentials,De.onerror=()=>{le(new Error(De.statusText))},De.onload=()=>{if((De.status>=200&&De.status<300||0===De.status)&&null!==De.response){let ke=De.response;if("json"===W.type)try{ke=JSON.parse(De.response)}catch(Ot){return le(Ot)}le(null,ke,De.getResponseHeader("Cache-Control"),De.getResponseHeader("Expires"))}else{const ke=new Blob([De.response],{type:De.getResponseHeader("Content-Type")});le(new R(De.status,De.statusText,W.url,ke))}},De.send(W.body),{cancel:()=>De.abort()}}(y,g)},We=function(y,g){return Ue(O(y,{type:"arrayBuffer"}),g)};function et(y){if(!y||y.indexOf("://")<=0||0===y.indexOf("data:image/")||0===y.indexOf("blob:"))return!0;const g=new URL(y),T=window.location;return g.protocol===T.protocol&&g.host===T.host}function Et(y,g,T){T[y]&&-1!==T[y].indexOf(g)||(T[y]=T[y]||[],T[y].push(g))}function lt(y,g,T){if(T&&T[y]){const W=T[y].indexOf(g);-1!==W&&T[y].splice(W,1)}}class Vt{constructor(g,T={}){O(this,T),this.type=g}}class r extends Vt{constructor(g,T={}){super("error",O({error:g},T))}}class Z{on(g,T){return this._listeners=this._listeners||{},Et(g,T,this._listeners),this}off(g,T){return lt(g,T,this._listeners),lt(g,T,this._oneTimeListeners),this}once(g,T){return T?(this._oneTimeListeners=this._oneTimeListeners||{},Et(g,T,this._oneTimeListeners),this):new Promise(W=>this.once(g,W))}fire(g,T){"string"==typeof g&&(g=new Vt(g,T||{}));const W=g.type;if(this.listens(W)){g.target=this;const le=this._listeners&&this._listeners[W]?this._listeners[W].slice():[];for(const Ot of le)Ot.call(this,g);const De=this._oneTimeListeners&&this._oneTimeListeners[W]?this._oneTimeListeners[W].slice():[];for(const Ot of De)lt(W,Ot,this._oneTimeListeners),Ot.call(this,g);const ke=this._eventedParent;ke&&(O(g,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),ke.fire(g))}else g instanceof r&&console.error(g.error);return this}listens(g){return this._listeners&&this._listeners[g]&&this._listeners[g].length>0||this._oneTimeListeners&&this._oneTimeListeners[g]&&this._oneTimeListeners[g].length>0||this._eventedParent&&this._eventedParent.listens(g)}setEventedParent(g,T){return this._eventedParent=g,this._eventedParentData=T,this}}var Pt={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};const Oe=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function ye(y,g){const T={};for(const W in y)"ref"!==W&&(T[W]=y[W]);return Oe.forEach(W=>{W in g&&(T[W]=g[W])}),T}function ve(y,g){if(Array.isArray(y)){if(!Array.isArray(g)||y.length!==g.length)return!1;for(let T=0;T<y.length;T++)if(!ve(y[T],g[T]))return!1;return!0}if("object"==typeof y&&null!==y&&null!==g){if("object"!=typeof g||Object.keys(y).length!==Object.keys(g).length)return!1;for(const T in y)if(!ve(y[T],g[T]))return!1;return!0}return y===g}const ft={setStyle:"setStyle",addLayer:"addLayer",removeLayer:"removeLayer",setPaintProperty:"setPaintProperty",setLayoutProperty:"setLayoutProperty",setFilter:"setFilter",addSource:"addSource",removeSource:"removeSource",setGeoJSONSourceData:"setGeoJSONSourceData",setLayerZoomRange:"setLayerZoomRange",setLayerProperty:"setLayerProperty",setCenter:"setCenter",setZoom:"setZoom",setBearing:"setBearing",setPitch:"setPitch",setSprite:"setSprite",setGlyphs:"setGlyphs",setTransition:"setTransition",setLight:"setLight"};function Dt(y,g,T){T.push({command:ft.addSource,args:[y,g[y]]})}function Rn(y,g,T){g.push({command:ft.removeSource,args:[y]}),T[y]=!0}function ti(y,g,T,W){Rn(y,T,W),Dt(y,g,T)}function Xt(y,g,T){let W;for(W in y[T])if(Object.prototype.hasOwnProperty.call(y[T],W)&&"data"!==W&&!ve(y[T][W],g[T][W]))return!1;for(W in g[T])if(Object.prototype.hasOwnProperty.call(g[T],W)&&"data"!==W&&!ve(y[T][W],g[T][W]))return!1;return!0}function Je(y,g,T,W,le,De){let ke;for(ke in g=g||{},y=y||{})Object.prototype.hasOwnProperty.call(y,ke)&&(ve(y[ke],g[ke])||T.push({command:De,args:[W,ke,g[ke],le]}));for(ke in g)Object.prototype.hasOwnProperty.call(g,ke)&&!Object.prototype.hasOwnProperty.call(y,ke)&&(ve(y[ke],g[ke])||T.push({command:De,args:[W,ke,g[ke],le]}))}function dt(y){return y.id}function Ie(y,g){return y[g.id]=g,y}class ot{constructor(g,T,W,le){this.message=(g?`${g}: `:"")+W,le&&(this.identifier=le),null!=T&&T.__line__&&(this.line=T.__line__)}}function ct(y,...g){for(const T of g)for(const W in T)y[W]=T[W];return y}class tn extends Error{constructor(g,T){super(T),this.message=T,this.key=g}}class yi{constructor(g,T=[]){this.parent=g,this.bindings={};for(const[W,le]of T)this.bindings[W]=le}concat(g){return new yi(this,g)}get(g){if(this.bindings[g])return this.bindings[g];if(this.parent)return this.parent.get(g);throw new Error(`${g} not found in scope.`)}has(g){return!!this.bindings[g]||!!this.parent&&this.parent.has(g)}}const ni={kind:"null"},sn={kind:"number"},bn={kind:"string"},vt={kind:"boolean"},nn={kind:"color"},rn={kind:"object"},ii={kind:"value"},Oo={kind:"collator"},no={kind:"formatted"},Li={kind:"padding"},ji={kind:"resolvedImage"},Ii={kind:"variableAnchorOffsetCollection"};function _i(y,g){return{kind:"array",itemType:y,N:g}}function En(y){if("array"===y.kind){const g=En(y.itemType);return"number"==typeof y.N?`array<${g}, ${y.N}>`:"value"===y.itemType.kind?"array":`array<${g}>`}return y.kind}const co=[ni,sn,bn,vt,nn,no,rn,_i(ii),Li,ji,Ii];function yn(y,g){if("error"===g.kind)return null;if("array"===y.kind){if("array"===g.kind&&(0===g.N&&"value"===g.itemType.kind||!yn(y.itemType,g.itemType))&&("number"!=typeof y.N||y.N===g.N))return null}else{if(y.kind===g.kind)return null;if("value"===y.kind)for(const T of co)if(!yn(T,g))return null}return`Expected ${En(y)} but found ${En(g)} instead.`}function ln(y,g){return g.some(T=>T.kind===y.kind)}function He(y,g){return g.some(T=>"null"===T?null===y:"array"===T?Array.isArray(y):"object"===T?y&&!Array.isArray(y)&&"object"==typeof y:T===typeof y)}function rt(y,g){return"array"===y.kind&&"array"===g.kind?y.itemType.kind===g.itemType.kind&&"number"==typeof y.N:y.kind===g.kind}const Ce=4/29,tt=6/29,ht=3*tt*tt,Qt=tt*tt*tt,Un=Math.PI/180,Yt=180/Math.PI;function Fn(y){return(y%=360)<0&&(y+=360),y}function yt([y,g,T,W]){let le,De;const ke=li((.2225045*(y=Bt(y))+.7168786*(g=Bt(g))+.0606169*(T=Bt(T)))/1);y===g&&g===T?le=De=ke:(le=li((.4360747*y+.3850649*g+.1430804*T)/.96422),De=li((.0139322*y+.0971045*g+.7141733*T)/.82521));const Ot=116*ke-16;return[Ot<0?0:Ot,500*(le-ke),200*(ke-De),W]}function Bt(y){return y<=.04045?y/12.92:Math.pow((y+.055)/1.055,2.4)}function li(y){return y>Qt?Math.pow(y,1/3):y/ht+Ce}function si([y,g,T,W]){let le=(y+16)/116,De=isNaN(g)?le:le+g/500,ke=isNaN(T)?le:le-T/200;return le=1*_o(le),De=.96422*_o(De),ke=.82521*_o(ke),[oo(3.1338561*De-1.6168667*le-.4906146*ke),oo(-.9787684*De+1.9161415*le+.033454*ke),oo(.0719453*De-.2289914*le+1.4052427*ke),W]}function oo(y){return(y=y<=.00304?12.92*y:1.055*Math.pow(y,1/2.4)-.055)<0?0:y>1?1:y}function _o(y){return y>tt?y*y*y:ht*(y-Ce)}function Hn(y){return parseInt(y.padEnd(2,y),16)/255}function mo(y,g){return vn(g?y/100:y,0,1)}function vn(y,g,T){return Math.min(Math.max(g,y),T)}function Ji(y){return!y.some(Number.isNaN)}const wn={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};class po{constructor(g,T,W,le=1,De=!0){this.r=g,this.g=T,this.b=W,this.a=le,De||(this.r*=le,this.g*=le,this.b*=le,le||this.overwriteGetter("rgb",[g,T,W,le]))}static parse(g){if(g instanceof po)return g;if("string"!=typeof g)return;const T=function(W){if("transparent"===(W=W.toLowerCase().trim()))return[0,0,0,0];const le=wn[W];if(le){const[ke,Ot,Nt]=le;return[ke/255,Ot/255,Nt/255,1]}if(W.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(W)){const ke=W.length<6?1:2;let Ot=1;return[Hn(W.slice(Ot,Ot+=ke)),Hn(W.slice(Ot,Ot+=ke)),Hn(W.slice(Ot,Ot+=ke)),Hn(W.slice(Ot,Ot+ke)||"ff")]}if(W.startsWith("rgb")){const ke=W.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(ke){const[Ot,Nt,gn,Xn,ci,pi,Di,Ni,lo,yo,So,Ko]=ke,Uo=[Xn||" ",Di||" ",yo].join("");if("  "===Uo||"  /"===Uo||",,"===Uo||",,,"===Uo){const Yo=[gn,pi,lo].join(""),fr="%%%"===Yo?100:""===Yo?255:0;if(fr){const Ur=[vn(+Nt/fr,0,1),vn(+ci/fr,0,1),vn(+Ni/fr,0,1),So?mo(+So,Ko):1];if(Ji(Ur))return Ur}}return}}const De=W.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(De){const[ke,Ot,Nt,gn,Xn,ci,pi,Di,Ni]=De,lo=[Nt||" ",Xn||" ",pi].join("");if("  "===lo||"  /"===lo||",,"===lo||",,,"===lo){const yo=[+Ot,vn(+gn,0,100),vn(+ci,0,100),Di?mo(+Di,Ni):1];if(Ji(yo))return function([So,Ko,Uo,Yo]){function fr(Ur){const sa=(Ur+So/30)%12,Ya=Ko*Math.min(Uo,1-Uo);return Uo-Ya*Math.max(-1,Math.min(sa-3,9-sa,1))}return So=Fn(So),Ko/=100,Uo/=100,[fr(0),fr(8),fr(4),Yo]}(yo)}}}(g);return T?new po(...T,!1):void 0}get rgb(){const{r:g,g:T,b:W,a:le}=this,De=le||1/0;return this.overwriteGetter("rgb",[g/De,T/De,W/De,le])}get hcl(){return this.overwriteGetter("hcl",function(g){const[T,W,le,De]=yt(g),ke=Math.sqrt(W*W+le*le);return[Math.round(1e4*ke)?Fn(Math.atan2(le,W)*Yt):NaN,ke,T,De]}(this.rgb))}get lab(){return this.overwriteGetter("lab",yt(this.rgb))}overwriteGetter(g,T){return Object.defineProperty(this,g,{value:T}),T}toString(){const[g,T,W,le]=this.rgb;return`rgba(${[g,T,W].map(De=>Math.round(255*De)).join(",")},${le})`}}po.black=new po(0,0,0,1),po.white=new po(1,1,1,1),po.transparent=new po(0,0,0,0),po.red=new po(1,0,0,1);class Kn{constructor(g,T,W){this.sensitivity=g?T?"variant":"case":T?"accent":"base",this.locale=W,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(g,T){return this.collator.compare(g,T)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Vn{constructor(g,T,W,le,De){this.text=g,this.image=T,this.scale=W,this.fontStack=le,this.textColor=De}}class Wi{constructor(g){this.sections=g}static fromString(g){return new Wi([new Vn(g,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some(g=>0!==g.text.length||g.image&&0!==g.image.name.length)}static factory(g){return g instanceof Wi?g:Wi.fromString(g)}toString(){return 0===this.sections.length?"":this.sections.map(g=>g.text).join("")}}class Ft{constructor(g){this.values=g.slice()}static parse(g){if(g instanceof Ft)return g;if("number"==typeof g)return new Ft([g,g,g,g]);if(Array.isArray(g)&&!(g.length<1||g.length>4)){for(const T of g)if("number"!=typeof T)return;switch(g.length){case 1:g=[g[0],g[0],g[0],g[0]];break;case 2:g=[g[0],g[1],g[0],g[1]];break;case 3:g=[g[0],g[1],g[2],g[1]]}return new Ft(g)}}toString(){return JSON.stringify(this.values)}}const Oi=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class On{constructor(g){this.values=g.slice()}static parse(g){if(g instanceof On)return g;if(Array.isArray(g)&&!(g.length<1)&&g.length%2==0){for(let T=0;T<g.length;T+=2){const W=g[T],le=g[T+1];if("string"!=typeof W||!Oi.has(W)||!Array.isArray(le)||2!==le.length||"number"!=typeof le[0]||"number"!=typeof le[1])return}return new On(g)}}toString(){return JSON.stringify(this.values)}}class _n{constructor(g){this.name=g.name,this.available=g.available}toString(){return this.name}static fromString(g){return g?new _n({name:g,available:!1}):null}}function st(y,g,T,W){return"number"==typeof y&&y>=0&&y<=255&&"number"==typeof g&&g>=0&&g<=255&&"number"==typeof T&&T>=0&&T<=255?void 0===W||"number"==typeof W&&W>=0&&W<=1?null:`Invalid rgba value [${[y,g,T,W].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${("number"==typeof W?[y,g,T,W]:[y,g,T]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Dn(y){if(null===y||"string"==typeof y||"boolean"==typeof y||"number"==typeof y||y instanceof po||y instanceof Kn||y instanceof Wi||y instanceof Ft||y instanceof On||y instanceof _n)return!0;if(Array.isArray(y)){for(const g of y)if(!Dn(g))return!1;return!0}if("object"==typeof y){for(const g in y)if(!Dn(y[g]))return!1;return!0}return!1}function Wt(y){if(null===y)return ni;if("string"==typeof y)return bn;if("boolean"==typeof y)return vt;if("number"==typeof y)return sn;if(y instanceof po)return nn;if(y instanceof Kn)return Oo;if(y instanceof Wi)return no;if(y instanceof Ft)return Li;if(y instanceof On)return Ii;if(y instanceof _n)return ji;if(Array.isArray(y)){const g=y.length;let T;for(const W of y){const le=Wt(W);if(T){if(T===le)continue;T=ii;break}T=le}return _i(T||ii,g)}return rn}function kn(y){const g=typeof y;return null===y?"":"string"===g||"number"===g||"boolean"===g?String(y):y instanceof po||y instanceof Wi||y instanceof Ft||y instanceof On||y instanceof _n?y.toString():JSON.stringify(y)}class Fi{constructor(g,T){this.type=g,this.value=T}static parse(g,T){if(2!==g.length)return T.error(`'literal' expression requires exactly one argument, but found ${g.length-1} instead.`);if(!Dn(g[1]))return T.error("invalid value");const W=g[1];let le=Wt(W);const De=T.expectedType;return"array"!==le.kind||0!==le.N||!De||"array"!==De.kind||"number"==typeof De.N&&0!==De.N||(le=De),new Fi(le,W)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class ui{constructor(g){this.name="ExpressionEvaluationError",this.message=g}toJSON(){return this.message}}const Fo={string:bn,number:sn,boolean:vt,object:rn};class At{constructor(g,T){this.type=g,this.args=T}static parse(g,T){if(g.length<2)return T.error("Expected at least one argument.");let W,le=1;const De=g[0];if("array"===De){let Ot,Nt;if(g.length>2){const gn=g[1];if("string"!=typeof gn||!(gn in Fo)||"object"===gn)return T.error('The item type argument of "array" must be one of string, number, boolean',1);Ot=Fo[gn],le++}else Ot=ii;if(g.length>3){if(null!==g[2]&&("number"!=typeof g[2]||g[2]<0||g[2]!==Math.floor(g[2])))return T.error('The length argument to "array" must be a positive integer literal',2);Nt=g[2],le++}W=_i(Ot,Nt)}else{if(!Fo[De])throw new Error(`Types doesn't contain name = ${De}`);W=Fo[De]}const ke=[];for(;le<g.length;le++){const Ot=T.parse(g[le],le,ii);if(!Ot)return null;ke.push(Ot)}return new At(W,ke)}evaluate(g){for(let T=0;T<this.args.length;T++){const W=this.args[T].evaluate(g);if(!yn(this.type,Wt(W)))return W;if(T===this.args.length-1)throw new ui(`Expected value to be of type ${En(this.type)}, but found ${En(Wt(W))} instead.`)}throw new Error}eachChild(g){this.args.forEach(g)}outputDefined(){return this.args.every(g=>g.outputDefined())}}const Jn={"to-boolean":vt,"to-color":nn,"to-number":sn,"to-string":bn};class Bn{constructor(g,T){this.type=g,this.args=T}static parse(g,T){if(g.length<2)return T.error("Expected at least one argument.");const W=g[0];if(!Jn[W])throw new Error(`Can't parse ${W} as it is not part of the known types`);if(("to-boolean"===W||"to-string"===W)&&2!==g.length)return T.error("Expected one argument.");const le=Jn[W],De=[];for(let ke=1;ke<g.length;ke++){const Ot=T.parse(g[ke],ke,ii);if(!Ot)return null;De.push(Ot)}return new Bn(le,De)}evaluate(g){switch(this.type.kind){case"boolean":return!!this.args[0].evaluate(g);case"color":{let T,W;for(const le of this.args){if(T=le.evaluate(g),W=null,T instanceof po)return T;if("string"==typeof T){const De=g.parseColor(T);if(De)return De}else if(Array.isArray(T)&&(W=T.length<3||T.length>4?`Invalid rbga value ${JSON.stringify(T)}: expected an array containing either three or four numeric values.`:st(T[0],T[1],T[2],T[3]),!W))return new po(T[0]/255,T[1]/255,T[2]/255,T[3])}throw new ui(W||`Could not parse color from value '${"string"==typeof T?T:JSON.stringify(T)}'`)}case"padding":{let T;for(const W of this.args){T=W.evaluate(g);const le=Ft.parse(T);if(le)return le}throw new ui(`Could not parse padding from value '${"string"==typeof T?T:JSON.stringify(T)}'`)}case"variableAnchorOffsetCollection":{let T;for(const W of this.args){T=W.evaluate(g);const le=On.parse(T);if(le)return le}throw new ui(`Could not parse variableAnchorOffsetCollection from value '${"string"==typeof T?T:JSON.stringify(T)}'`)}case"number":{let T=null;for(const W of this.args){if(T=W.evaluate(g),null===T)return 0;const le=Number(T);if(!isNaN(le))return le}throw new ui(`Could not convert ${JSON.stringify(T)} to number.`)}case"formatted":return Wi.fromString(kn(this.args[0].evaluate(g)));case"resolvedImage":return _n.fromString(kn(this.args[0].evaluate(g)));default:return kn(this.args[0].evaluate(g))}}eachChild(g){this.args.forEach(g)}outputDefined(){return this.args.every(g=>g.outputDefined())}}const Bi=["Unknown","Point","LineString","Polygon"];class $n{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?Bi[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(g){let T=this._parseColorCache[g];return T||(T=this._parseColorCache[g]=po.parse(g)),T}}class Ui{constructor(g,T,W=[],le,De=new yi,ke=[]){this.registry=g,this.path=W,this.key=W.map(Ot=>`[${Ot}]`).join(""),this.scope=De,this.errors=ke,this.expectedType=le,this._isConstant=T}parse(g,T,W,le,De={}){return T?this.concat(T,W,le)._parse(g,De):this._parse(g,De)}_parse(g,T){function W(le,De,ke){return"assert"===ke?new At(De,[le]):"coerce"===ke?new Bn(De,[le]):le}if(null!==g&&"string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g||(g=["literal",g]),Array.isArray(g)){if(0===g.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const le=g[0];if("string"!=typeof le)return this.error(`Expression name must be a string, but found ${typeof le} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const De=this.registry[le];if(De){let ke=De.parse(g,this);if(!ke)return null;if(this.expectedType){const Ot=this.expectedType,Nt=ke.type;if("string"!==Ot.kind&&"number"!==Ot.kind&&"boolean"!==Ot.kind&&"object"!==Ot.kind&&"array"!==Ot.kind||"value"!==Nt.kind)if("color"!==Ot.kind&&"formatted"!==Ot.kind&&"resolvedImage"!==Ot.kind||"value"!==Nt.kind&&"string"!==Nt.kind)if("padding"!==Ot.kind||"value"!==Nt.kind&&"number"!==Nt.kind&&"array"!==Nt.kind)if("variableAnchorOffsetCollection"!==Ot.kind||"value"!==Nt.kind&&"array"!==Nt.kind){if(this.checkSubtype(Ot,Nt))return null}else ke=W(ke,Ot,T.typeAnnotation||"coerce");else ke=W(ke,Ot,T.typeAnnotation||"coerce");else ke=W(ke,Ot,T.typeAnnotation||"coerce");else ke=W(ke,Ot,T.typeAnnotation||"assert")}if(!(ke instanceof Fi)&&"resolvedImage"!==ke.type.kind&&this._isConstant(ke)){const Ot=new $n;try{ke=new Fi(ke.type,ke.evaluate(Ot))}catch(Nt){return this.error(Nt.message),null}}return ke}return this.error(`Unknown expression "${le}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(void 0===g?"'undefined' value invalid. Use null instead.":"object"==typeof g?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof g} instead.`)}concat(g,T,W){const le="number"==typeof g?this.path.concat(g):this.path,De=W?this.scope.concat(W):this.scope;return new Ui(this.registry,this._isConstant,le,T||null,De,this.errors)}error(g,...T){const W=`${this.key}${T.map(le=>`[${le}]`).join("")}`;this.errors.push(new tn(W,g))}checkSubtype(g,T){const W=yn(g,T);return W&&this.error(W),W}}class Xo{constructor(g,T,W){this.type=Oo,this.locale=W,this.caseSensitive=g,this.diacriticSensitive=T}static parse(g,T){if(2!==g.length)return T.error("Expected one argument.");const W=g[1];if("object"!=typeof W||Array.isArray(W))return T.error("Collator options argument must be an object.");const le=T.parse(void 0!==W["case-sensitive"]&&W["case-sensitive"],1,vt);if(!le)return null;const De=T.parse(void 0!==W["diacritic-sensitive"]&&W["diacritic-sensitive"],1,vt);if(!De)return null;let ke=null;return W.locale&&(ke=T.parse(W.locale,1,bn),!ke)?null:new Xo(le,De,ke)}evaluate(g){return new Kn(this.caseSensitive.evaluate(g),this.diacriticSensitive.evaluate(g),this.locale?this.locale.evaluate(g):null)}eachChild(g){g(this.caseSensitive),g(this.diacriticSensitive),this.locale&&g(this.locale)}outputDefined(){return!1}}const bt=8192;function an(y,g){y[0]=Math.min(y[0],g[0]),y[1]=Math.min(y[1],g[1]),y[2]=Math.max(y[2],g[0]),y[3]=Math.max(y[3],g[1])}function Wn(y,g){return!(y[0]<=g[0]||y[2]>=g[2]||y[1]<=g[1]||y[3]>=g[3])}function eo(y,g){const T=(180+y[0])/360,W=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+y[1]*Math.PI/360)))/360,le=Math.pow(2,g.z);return[Math.round(T*le*bt),Math.round(W*le*bt)]}function _r(y,g,T){const W=y[0]-g[0],le=y[1]-g[1],De=y[0]-T[0],ke=y[1]-T[1];return W*ke-De*le==0&&W*De<=0&&le*ke<=0}function hr(y,g){let T=!1;for(let ke=0,Ot=g.length;ke<Ot;ke++){const Nt=g[ke];for(let gn=0,Xn=Nt.length;gn<Xn-1;gn++){if(_r(y,Nt[gn],Nt[gn+1]))return!1;(le=Nt[gn])[1]>(W=y)[1]!=(De=Nt[gn+1])[1]>W[1]&&W[0]<(De[0]-le[0])*(W[1]-le[1])/(De[1]-le[1])+le[0]&&(T=!T)}}var W,le,De;return T}function In(y,g){for(let T=0;T<g.length;T++)if(hr(y,g[T]))return!0;return!1}function Wr(y,g,T,W){const le=W[0]-T[0],De=W[1]-T[1],ke=(y[0]-T[0])*De-le*(y[1]-T[1]),Ot=(g[0]-T[0])*De-le*(g[1]-T[1]);return ke>0&&Ot<0||ke<0&&Ot>0}function qi(y,g,T){for(const gn of T)for(let Xn=0;Xn<gn.length-1;++Xn)if((Ot=[(ke=gn[Xn+1])[0]-(De=gn[Xn])[0],ke[1]-De[1]])[0]*(Nt=[(le=g)[0]-(W=y)[0],le[1]-W[1]])[1]-Ot[1]*Nt[0]!=0&&Wr(W,le,De,ke)&&Wr(De,ke,W,le))return!0;var W,le,De,ke,Ot,Nt;return!1}function wi(y,g){for(let T=0;T<y.length;++T)if(!hr(y[T],g))return!1;for(let T=0;T<y.length-1;++T)if(qi(y[T],y[T+1],g))return!1;return!0}function zo(y,g){for(let T=0;T<g.length;T++)if(wi(y,g[T]))return!0;return!1}function xi(y,g,T){const W=[];for(let le=0;le<y.length;le++){const De=[];for(let ke=0;ke<y[le].length;ke++){const Ot=eo(y[le][ke],T);an(g,Ot),De.push(Ot)}W.push(De)}return W}function ki(y,g,T){const W=[];for(let le=0;le<y.length;le++){const De=xi(y[le],g,T);W.push(De)}return W}function wo(y,g,T,W){if(y[0]<T[0]||y[0]>T[2]){const le=.5*W;let De=y[0]-T[0]>le?-W:T[0]-y[0]>le?W:0;0===De&&(De=y[0]-T[2]>le?-W:T[2]-y[0]>le?W:0),y[0]+=De}an(g,y)}function Ei(y,g,T,W){const le=Math.pow(2,W.z)*bt,De=[W.x*bt,W.y*bt],ke=[];for(const Ot of y)for(const Nt of Ot){const gn=[Nt.x+De[0],Nt.y+De[1]];wo(gn,g,T,le),ke.push(gn)}return ke}function ho(y,g,T,W){const le=Math.pow(2,W.z)*bt,De=[W.x*bt,W.y*bt],ke=[];for(const Nt of y){const gn=[];for(const Xn of Nt){const ci=[Xn.x+De[0],Xn.y+De[1]];an(g,ci),gn.push(ci)}ke.push(gn)}if(g[2]-g[0]<=le/2){(Ot=g)[0]=Ot[1]=1/0,Ot[2]=Ot[3]=-1/0;for(const Nt of ke)for(const gn of Nt)wo(gn,g,T,le)}var Ot;return ke}class Cr{constructor(g,T){this.type=vt,this.geojson=g,this.geometries=T}static parse(g,T){if(2!==g.length)return T.error(`'within' expression requires exactly one argument, but found ${g.length-1} instead.`);if(Dn(g[1])){const W=g[1];if("FeatureCollection"===W.type)for(let le=0;le<W.features.length;++le){const De=W.features[le].geometry.type;if("Polygon"===De||"MultiPolygon"===De)return new Cr(W,W.features[le].geometry)}else if("Feature"===W.type){const le=W.geometry.type;if("Polygon"===le||"MultiPolygon"===le)return new Cr(W,W.geometry)}else if("Polygon"===W.type||"MultiPolygon"===W.type)return new Cr(W,W)}return T.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(g){if(null!=g.geometry()&&null!=g.canonicalID()){if("Point"===g.geometryType())return function(T,W){const le=[1/0,1/0,-1/0,-1/0],De=[1/0,1/0,-1/0,-1/0],ke=T.canonicalID();if("Polygon"===W.type){const Ot=xi(W.coordinates,De,ke),Nt=Ei(T.geometry(),le,De,ke);if(!Wn(le,De))return!1;for(const gn of Nt)if(!hr(gn,Ot))return!1}if("MultiPolygon"===W.type){const Ot=ki(W.coordinates,De,ke),Nt=Ei(T.geometry(),le,De,ke);if(!Wn(le,De))return!1;for(const gn of Nt)if(!In(gn,Ot))return!1}return!0}(g,this.geometries);if("LineString"===g.geometryType())return function(T,W){const le=[1/0,1/0,-1/0,-1/0],De=[1/0,1/0,-1/0,-1/0],ke=T.canonicalID();if("Polygon"===W.type){const Ot=xi(W.coordinates,De,ke),Nt=ho(T.geometry(),le,De,ke);if(!Wn(le,De))return!1;for(const gn of Nt)if(!wi(gn,Ot))return!1}if("MultiPolygon"===W.type){const Ot=ki(W.coordinates,De,ke),Nt=ho(T.geometry(),le,De,ke);if(!Wn(le,De))return!1;for(const gn of Nt)if(!zo(gn,Ot))return!1}return!0}(g,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}class vr{constructor(g,T){this.type=T.type,this.name=g,this.boundExpression=T}static parse(g,T){if(2!==g.length||"string"!=typeof g[1])return T.error("'var' expression requires exactly one string literal argument.");const W=g[1];return T.scope.has(W)?new vr(W,T.scope.get(W)):T.error(`Unknown variable "${W}". Make sure "${W}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(g){return this.boundExpression.evaluate(g)}eachChild(){}outputDefined(){return!1}}class qr{constructor(g,T,W,le){this.name=g,this.type=T,this._evaluate=W,this.args=le}evaluate(g){return this._evaluate(g,this.args)}eachChild(g){this.args.forEach(g)}outputDefined(){return!1}static parse(g,T){const W=g[0],le=qr.definitions[W];if(!le)return T.error(`Unknown expression "${W}". If you wanted a literal array, use ["literal", [...]].`,0);const De=Array.isArray(le)?le[0]:le.type,ke=Array.isArray(le)?[[le[1],le[2]]]:le.overloads,Ot=ke.filter(([gn])=>!Array.isArray(gn)||gn.length===g.length-1);let Nt=null;for(const[gn,Xn]of Ot){Nt=new Ui(T.registry,Ra,T.path,null,T.scope);const ci=[];let pi=!1;for(let Di=1;Di<g.length;Di++){const Ni=g[Di],lo=Array.isArray(gn)?gn[Di-1]:gn.type,yo=Nt.parse(Ni,1+ci.length,lo);if(!yo){pi=!0;break}ci.push(yo)}if(!pi)if(Array.isArray(gn)&&gn.length!==ci.length)Nt.error(`Expected ${gn.length} arguments, but found ${ci.length} instead.`);else{for(let Di=0;Di<ci.length;Di++){const Ni=Array.isArray(gn)?gn[Di]:gn.type,lo=ci[Di];Nt.concat(Di+1).checkSubtype(Ni,lo.type)}if(0===Nt.errors.length)return new qr(W,De,Xn,ci)}}if(1===Ot.length)T.errors.push(...Nt.errors);else{const gn=(Ot.length?Ot:ke).map(([ci])=>{return pi=ci,Array.isArray(pi)?`(${pi.map(En).join(", ")})`:`(${En(pi.type)}...)`;var pi}).join(" | "),Xn=[];for(let ci=1;ci<g.length;ci++){const pi=T.parse(g[ci],1+Xn.length);if(!pi)return null;Xn.push(En(pi.type))}T.error(`Expected arguments of type ${gn}, but found (${Xn.join(", ")}) instead.`)}return null}static register(g,T){qr.definitions=T;for(const W in T)g[W]=qr}}function Ra(y){if(y instanceof vr)return Ra(y.boundExpression);if(y instanceof qr&&"error"===y.name||y instanceof Xo||y instanceof Cr)return!1;const g=y instanceof Bn||y instanceof At;let T=!0;return y.eachChild(W=>{T=g?T&&Ra(W):T&&W instanceof Fi}),!!T&&ss(y)&&Cs(y,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function ss(y){if(y instanceof qr&&("get"===y.name&&1===y.args.length||"feature-state"===y.name||"has"===y.name&&1===y.args.length||"properties"===y.name||"geometry-type"===y.name||"id"===y.name||/^filter-/.test(y.name))||y instanceof Cr)return!1;let g=!0;return y.eachChild(T=>{g&&!ss(T)&&(g=!1)}),g}function Hs(y){if(y instanceof qr&&"feature-state"===y.name)return!1;let g=!0;return y.eachChild(T=>{g&&!Hs(T)&&(g=!1)}),g}function Cs(y,g){if(y instanceof qr&&g.indexOf(y.name)>=0)return!1;let T=!0;return y.eachChild(W=>{T&&!Cs(W,g)&&(T=!1)}),T}function ms(y,g){const T=y.length-1;let W,le,De=0,ke=T,Ot=0;for(;De<=ke;)if(Ot=Math.floor((De+ke)/2),W=y[Ot],le=y[Ot+1],W<=g){if(Ot===T||g<le)return Ot;De=Ot+1}else{if(!(W>g))throw new ui("Input is not a number.");ke=Ot-1}return 0}class ja{constructor(g,T,W){this.type=g,this.input=T,this.labels=[],this.outputs=[];for(const[le,De]of W)this.labels.push(le),this.outputs.push(De)}static parse(g,T){if(g.length-1<4)return T.error(`Expected at least 4 arguments, but found only ${g.length-1}.`);if((g.length-1)%2!=0)return T.error("Expected an even number of arguments.");const W=T.parse(g[1],1,sn);if(!W)return null;const le=[];let De=null;T.expectedType&&"value"!==T.expectedType.kind&&(De=T.expectedType);for(let ke=1;ke<g.length;ke+=2){const Ot=1===ke?-1/0:g[ke],Nt=g[ke+1],gn=ke,Xn=ke+1;if("number"!=typeof Ot)return T.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',gn);if(le.length&&le[le.length-1][0]>=Ot)return T.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',gn);const ci=T.parse(Nt,Xn,De);if(!ci)return null;De=De||ci.type,le.push([Ot,ci])}return new ja(De,W,le)}evaluate(g){const T=this.labels,W=this.outputs;if(1===T.length)return W[0].evaluate(g);const le=this.input.evaluate(g);if(le<=T[0])return W[0].evaluate(g);const De=T.length;return le>=T[De-1]?W[De-1].evaluate(g):W[ms(T,le)].evaluate(g)}eachChild(g){g(this.input);for(const T of this.outputs)g(T)}outputDefined(){return this.outputs.every(g=>g.outputDefined())}}function el(y,g,T){return y+T*(g-y)}function Vs(y,g,T){return y.map((W,le)=>el(W,g[le],T))}const ls={number:el,color:function(y,g,T,W="rgb"){switch(W){case"rgb":{const[le,De,ke,Ot]=Vs(y.rgb,g.rgb,T);return new po(le,De,ke,Ot,!1)}case"hcl":{const[le,De,ke,Ot]=y.hcl,[Nt,gn,Xn,ci]=g.hcl;let pi,Di;if(isNaN(le)||isNaN(Nt))isNaN(le)?isNaN(Nt)?pi=NaN:(pi=Nt,1!==ke&&0!==ke||(Di=gn)):(pi=le,1!==Xn&&0!==Xn||(Di=De));else{let Ko=Nt-le;Nt>le&&Ko>180?Ko-=360:Nt<le&&le-Nt>180&&(Ko+=360),pi=le+T*Ko}const[Ni,lo,yo,So]=function([Ko,Uo,Yo,fr]){return Ko=isNaN(Ko)?0:Ko*Un,si([Yo,Math.cos(Ko)*Uo,Math.sin(Ko)*Uo,fr])}([pi,Di??el(De,gn,T),el(ke,Xn,T),el(Ot,ci,T)]);return new po(Ni,lo,yo,So,!1)}case"lab":{const[le,De,ke,Ot]=si(Vs(y.lab,g.lab,T));return new po(le,De,ke,Ot,!1)}}},array:Vs,padding:function(y,g,T){return new Ft(Vs(y.values,g.values,T))},variableAnchorOffsetCollection:function(y,g,T){const W=y.values,le=g.values;if(W.length!==le.length)throw new ui(`Cannot interpolate values of different length. from: ${y.toString()}, to: ${g.toString()}`);const De=[];for(let ke=0;ke<W.length;ke+=2){if(W[ke]!==le[ke])throw new ui(`Cannot interpolate values containing mismatched anchors. from[${ke}]: ${W[ke]}, to[${ke}]: ${le[ke]}`);De.push(W[ke]);const[Ot,Nt]=W[ke+1],[gn,Xn]=le[ke+1];De.push([el(Ot,gn,T),el(Nt,Xn,T)])}return new On(De)}};class Fa{constructor(g,T,W,le,De){this.type=g,this.operator=T,this.interpolation=W,this.input=le,this.labels=[],this.outputs=[];for(const[ke,Ot]of De)this.labels.push(ke),this.outputs.push(Ot)}static interpolationFactor(g,T,W,le){let De=0;if("exponential"===g.name)De=Ds(T,g.base,W,le);else if("linear"===g.name)De=Ds(T,1,W,le);else if("cubic-bezier"===g.name){const ke=g.controlPoints;De=new u(ke[0],ke[1],ke[2],ke[3]).solve(Ds(T,1,W,le))}return De}static parse(g,T){let[W,le,De,...ke]=g;if(!Array.isArray(le)||0===le.length)return T.error("Expected an interpolation type expression.",1);if("linear"===le[0])le={name:"linear"};else if("exponential"===le[0]){const gn=le[1];if("number"!=typeof gn)return T.error("Exponential interpolation requires a numeric base.",1,1);le={name:"exponential",base:gn}}else{if("cubic-bezier"!==le[0])return T.error(`Unknown interpolation type ${String(le[0])}`,1,0);{const gn=le.slice(1);if(4!==gn.length||gn.some(Xn=>"number"!=typeof Xn||Xn<0||Xn>1))return T.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);le={name:"cubic-bezier",controlPoints:gn}}}if(g.length-1<4)return T.error(`Expected at least 4 arguments, but found only ${g.length-1}.`);if((g.length-1)%2!=0)return T.error("Expected an even number of arguments.");if(De=T.parse(De,2,sn),!De)return null;const Ot=[];let Nt=null;"interpolate-hcl"===W||"interpolate-lab"===W?Nt=nn:T.expectedType&&"value"!==T.expectedType.kind&&(Nt=T.expectedType);for(let gn=0;gn<ke.length;gn+=2){const Xn=ke[gn],ci=ke[gn+1],pi=gn+3,Di=gn+4;if("number"!=typeof Xn)return T.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',pi);if(Ot.length&&Ot[Ot.length-1][0]>=Xn)return T.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',pi);const Ni=T.parse(ci,Di,Nt);if(!Ni)return null;Nt=Nt||Ni.type,Ot.push([Xn,Ni])}return rt(Nt,sn)||rt(Nt,nn)||rt(Nt,Li)||rt(Nt,Ii)||rt(Nt,_i(sn))?new Fa(Nt,W,le,De,Ot):T.error(`Type ${En(Nt)} is not interpolatable.`)}evaluate(g){const T=this.labels,W=this.outputs;if(1===T.length)return W[0].evaluate(g);const le=this.input.evaluate(g);if(le<=T[0])return W[0].evaluate(g);const De=T.length;if(le>=T[De-1])return W[De-1].evaluate(g);const ke=ms(T,le),Ot=Fa.interpolationFactor(this.interpolation,le,T[ke],T[ke+1]),Nt=W[ke].evaluate(g),gn=W[ke+1].evaluate(g);switch(this.operator){case"interpolate":return ls[this.type.kind](Nt,gn,Ot);case"interpolate-hcl":return ls.color(Nt,gn,Ot,"hcl");case"interpolate-lab":return ls.color(Nt,gn,Ot,"lab")}}eachChild(g){g(this.input);for(const T of this.outputs)g(T)}outputDefined(){return this.outputs.every(g=>g.outputDefined())}}function Ds(y,g,T,W){const le=W-T,De=y-T;return 0===le?0:1===g?De/le:(Math.pow(g,De)-1)/(Math.pow(g,le)-1)}class dl{constructor(g,T){this.type=g,this.args=T}static parse(g,T){if(g.length<2)return T.error("Expectected at least one argument.");let W=null;const le=T.expectedType;le&&"value"!==le.kind&&(W=le);const De=[];for(const Ot of g.slice(1)){const Nt=T.parse(Ot,1+De.length,W,void 0,{typeAnnotation:"omit"});if(!Nt)return null;W=W||Nt.type,De.push(Nt)}if(!W)throw new Error("No output type");const ke=le&&De.some(Ot=>yn(le,Ot.type));return new dl(ke?ii:W,De)}evaluate(g){let T,W=null,le=0;for(const De of this.args)if(le++,W=De.evaluate(g),W&&W instanceof _n&&!W.available&&(T||(T=W.name),W=null,le===this.args.length&&(W=T)),null!==W)break;return W}eachChild(g){this.args.forEach(g)}outputDefined(){return this.args.every(g=>g.outputDefined())}}class ka{constructor(g,T){this.type=T.type,this.bindings=[].concat(g),this.result=T}evaluate(g){return this.result.evaluate(g)}eachChild(g){for(const T of this.bindings)g(T[1]);g(this.result)}static parse(g,T){if(g.length<4)return T.error(`Expected at least 3 arguments, but found ${g.length-1} instead.`);const W=[];for(let De=1;De<g.length-1;De+=2){const ke=g[De];if("string"!=typeof ke)return T.error(`Expected string, but found ${typeof ke} instead.`,De);if(/[^a-zA-Z0-9_]/.test(ke))return T.error("Variable names must contain only alphanumeric characters or '_'.",De);const Ot=T.parse(g[De+1],De+1);if(!Ot)return null;W.push([ke,Ot])}const le=T.parse(g[g.length-1],g.length-1,T.expectedType,W);return le?new ka(W,le):null}outputDefined(){return this.result.outputDefined()}}class hs{constructor(g,T,W){this.type=g,this.index=T,this.input=W}static parse(g,T){if(3!==g.length)return T.error(`Expected 2 arguments, but found ${g.length-1} instead.`);const W=T.parse(g[1],1,sn),le=T.parse(g[2],2,_i(T.expectedType||ii));return W&&le?new hs(le.type.itemType,W,le):null}evaluate(g){const T=this.index.evaluate(g),W=this.input.evaluate(g);if(T<0)throw new ui(`Array index out of bounds: ${T} < 0.`);if(T>=W.length)throw new ui(`Array index out of bounds: ${T} > ${W.length-1}.`);if(T!==Math.floor(T))throw new ui(`Array index must be an integer, but found ${T} instead.`);return W[T]}eachChild(g){g(this.index),g(this.input)}outputDefined(){return!1}}class Ua{constructor(g,T){this.type=vt,this.needle=g,this.haystack=T}static parse(g,T){if(3!==g.length)return T.error(`Expected 2 arguments, but found ${g.length-1} instead.`);const W=T.parse(g[1],1,ii),le=T.parse(g[2],2,ii);return W&&le?ln(W.type,[vt,bn,sn,ni,ii])?new Ua(W,le):T.error(`Expected first argument to be of type boolean, string, number or null, but found ${En(W.type)} instead`):null}evaluate(g){const T=this.needle.evaluate(g),W=this.haystack.evaluate(g);if(!W)return!1;if(!He(T,["boolean","string","number","null"]))throw new ui(`Expected first argument to be of type boolean, string, number or null, but found ${En(Wt(T))} instead.`);if(!He(W,["string","array"]))throw new ui(`Expected second argument to be of type array or string, but found ${En(Wt(W))} instead.`);return W.indexOf(T)>=0}eachChild(g){g(this.needle),g(this.haystack)}outputDefined(){return!0}}class Tn{constructor(g,T,W){this.type=sn,this.needle=g,this.haystack=T,this.fromIndex=W}static parse(g,T){if(g.length<=2||g.length>=5)return T.error(`Expected 3 or 4 arguments, but found ${g.length-1} instead.`);const W=T.parse(g[1],1,ii),le=T.parse(g[2],2,ii);if(!W||!le)return null;if(!ln(W.type,[vt,bn,sn,ni,ii]))return T.error(`Expected first argument to be of type boolean, string, number or null, but found ${En(W.type)} instead`);if(4===g.length){const De=T.parse(g[3],3,sn);return De?new Tn(W,le,De):null}return new Tn(W,le)}evaluate(g){const T=this.needle.evaluate(g),W=this.haystack.evaluate(g);if(!He(T,["boolean","string","number","null"]))throw new ui(`Expected first argument to be of type boolean, string, number or null, but found ${En(Wt(T))} instead.`);if(!He(W,["string","array"]))throw new ui(`Expected second argument to be of type array or string, but found ${En(Wt(W))} instead.`);if(this.fromIndex){const le=this.fromIndex.evaluate(g);return W.indexOf(T,le)}return W.indexOf(T)}eachChild(g){g(this.needle),g(this.haystack),this.fromIndex&&g(this.fromIndex)}outputDefined(){return!1}}class Qi{constructor(g,T,W,le,De,ke){this.inputType=g,this.type=T,this.input=W,this.cases=le,this.outputs=De,this.otherwise=ke}static parse(g,T){if(g.length<5)return T.error(`Expected at least 4 arguments, but found only ${g.length-1}.`);if(g.length%2!=1)return T.error("Expected an even number of arguments.");let W,le;T.expectedType&&"value"!==T.expectedType.kind&&(le=T.expectedType);const De={},ke=[];for(let gn=2;gn<g.length-1;gn+=2){let Xn=g[gn];const ci=g[gn+1];Array.isArray(Xn)||(Xn=[Xn]);const pi=T.concat(gn);if(0===Xn.length)return pi.error("Expected at least one branch label.");for(const Ni of Xn){if("number"!=typeof Ni&&"string"!=typeof Ni)return pi.error("Branch labels must be numbers or strings.");if("number"==typeof Ni&&Math.abs(Ni)>Number.MAX_SAFE_INTEGER)return pi.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof Ni&&Math.floor(Ni)!==Ni)return pi.error("Numeric branch labels must be integer values.");if(W){if(pi.checkSubtype(W,Wt(Ni)))return null}else W=Wt(Ni);if(void 0!==De[String(Ni)])return pi.error("Branch labels must be unique.");De[String(Ni)]=ke.length}const Di=T.parse(ci,gn,le);if(!Di)return null;le=le||Di.type,ke.push(Di)}const Ot=T.parse(g[1],1,ii);if(!Ot)return null;const Nt=T.parse(g[g.length-1],g.length-1,le);return Nt?"value"!==Ot.type.kind&&T.concat(1).checkSubtype(W,Ot.type)?null:new Qi(W,le,Ot,De,ke,Nt):null}evaluate(g){const T=this.input.evaluate(g);return(Wt(T)===this.inputType&&this.outputs[this.cases[T]]||this.otherwise).evaluate(g)}eachChild(g){g(this.input),this.outputs.forEach(g),g(this.otherwise)}outputDefined(){return this.outputs.every(g=>g.outputDefined())&&this.otherwise.outputDefined()}}class To{constructor(g,T,W){this.type=g,this.branches=T,this.otherwise=W}static parse(g,T){if(g.length<4)return T.error(`Expected at least 3 arguments, but found only ${g.length-1}.`);if(g.length%2!=0)return T.error("Expected an odd number of arguments.");let W;T.expectedType&&"value"!==T.expectedType.kind&&(W=T.expectedType);const le=[];for(let ke=1;ke<g.length-1;ke+=2){const Ot=T.parse(g[ke],ke,vt);if(!Ot)return null;const Nt=T.parse(g[ke+1],ke+1,W);if(!Nt)return null;le.push([Ot,Nt]),W=W||Nt.type}const De=T.parse(g[g.length-1],g.length-1,W);if(!De)return null;if(!W)throw new Error("Can't infer output type");return new To(W,le,De)}evaluate(g){for(const[T,W]of this.branches)if(T.evaluate(g))return W.evaluate(g);return this.otherwise.evaluate(g)}eachChild(g){for(const[T,W]of this.branches)g(T),g(W);g(this.otherwise)}outputDefined(){return this.branches.every(([g,T])=>T.outputDefined())&&this.otherwise.outputDefined()}}class sr{constructor(g,T,W,le){this.type=g,this.input=T,this.beginIndex=W,this.endIndex=le}static parse(g,T){if(g.length<=2||g.length>=5)return T.error(`Expected 3 or 4 arguments, but found ${g.length-1} instead.`);const W=T.parse(g[1],1,ii),le=T.parse(g[2],2,sn);if(!W||!le)return null;if(!ln(W.type,[_i(ii),bn,ii]))return T.error(`Expected first argument to be of type array or string, but found ${En(W.type)} instead`);if(4===g.length){const De=T.parse(g[3],3,sn);return De?new sr(W.type,W,le,De):null}return new sr(W.type,W,le)}evaluate(g){const T=this.input.evaluate(g),W=this.beginIndex.evaluate(g);if(!He(T,["string","array"]))throw new ui(`Expected first argument to be of type array or string, but found ${En(Wt(T))} instead.`);if(this.endIndex){const le=this.endIndex.evaluate(g);return T.slice(W,le)}return T.slice(W)}eachChild(g){g(this.input),g(this.beginIndex),this.endIndex&&g(this.endIndex)}outputDefined(){return!1}}function oi(y,g){return"=="===y||"!="===y?"boolean"===g.kind||"string"===g.kind||"number"===g.kind||"null"===g.kind||"value"===g.kind:"string"===g.kind||"number"===g.kind||"value"===g.kind}function Vi(y,g,T,W){return 0===W.compare(g,T)}function Ti(y,g,T){const W="=="!==y&&"!="!==y;return class ED{constructor(De,ke,Ot){this.type=vt,this.lhs=De,this.rhs=ke,this.collator=Ot,this.hasUntypedArgument="value"===De.type.kind||"value"===ke.type.kind}static parse(De,ke){if(3!==De.length&&4!==De.length)return ke.error("Expected two or three arguments.");const Ot=De[0];let Nt=ke.parse(De[1],1,ii);if(!Nt)return null;if(!oi(Ot,Nt.type))return ke.concat(1).error(`"${Ot}" comparisons are not supported for type '${En(Nt.type)}'.`);let gn=ke.parse(De[2],2,ii);if(!gn)return null;if(!oi(Ot,gn.type))return ke.concat(2).error(`"${Ot}" comparisons are not supported for type '${En(gn.type)}'.`);if(Nt.type.kind!==gn.type.kind&&"value"!==Nt.type.kind&&"value"!==gn.type.kind)return ke.error(`Cannot compare types '${En(Nt.type)}' and '${En(gn.type)}'.`);W&&("value"===Nt.type.kind&&"value"!==gn.type.kind?Nt=new At(gn.type,[Nt]):"value"!==Nt.type.kind&&"value"===gn.type.kind&&(gn=new At(Nt.type,[gn])));let Xn=null;if(4===De.length){if("string"!==Nt.type.kind&&"string"!==gn.type.kind&&"value"!==Nt.type.kind&&"value"!==gn.type.kind)return ke.error("Cannot use collator to compare non-string types.");if(Xn=ke.parse(De[3],3,Oo),!Xn)return null}return new ED(Nt,gn,Xn)}evaluate(De){const ke=this.lhs.evaluate(De),Ot=this.rhs.evaluate(De);if(W&&this.hasUntypedArgument){const Nt=Wt(ke),gn=Wt(Ot);if(Nt.kind!==gn.kind||"string"!==Nt.kind&&"number"!==Nt.kind)throw new ui(`Expected arguments for "${y}" to be (string, string) or (number, number), but found (${Nt.kind}, ${gn.kind}) instead.`)}if(this.collator&&!W&&this.hasUntypedArgument){const Nt=Wt(ke),gn=Wt(Ot);if("string"!==Nt.kind||"string"!==gn.kind)return g(De,ke,Ot)}return this.collator?T(De,ke,Ot,this.collator.evaluate(De)):g(De,ke,Ot)}eachChild(De){De(this.lhs),De(this.rhs),this.collator&&De(this.collator)}outputDefined(){return!0}}}const Hi=Ti("==",function(y,g,T){return g===T},Vi),Do=Ti("!=",function(y,g,T){return g!==T},function(y,g,T,W){return!Vi(0,g,T,W)}),$o=Ti("<",function(y,g,T){return g<T},function(y,g,T,W){return W.compare(g,T)<0}),yr=Ti(">",function(y,g,T){return g>T},function(y,g,T,W){return W.compare(g,T)>0}),Vr=Ti("<=",function(y,g,T){return g<=T},function(y,g,T,W){return W.compare(g,T)<=0}),da=Ti(">=",function(y,g,T){return g>=T},function(y,g,T,W){return W.compare(g,T)>=0});class Za{constructor(g,T,W,le,De){this.type=bn,this.number=g,this.locale=T,this.currency=W,this.minFractionDigits=le,this.maxFractionDigits=De}static parse(g,T){if(3!==g.length)return T.error("Expected two arguments.");const W=T.parse(g[1],1,sn);if(!W)return null;const le=g[2];if("object"!=typeof le||Array.isArray(le))return T.error("NumberFormat options argument must be an object.");let De=null;if(le.locale&&(De=T.parse(le.locale,1,bn),!De))return null;let ke=null;if(le.currency&&(ke=T.parse(le.currency,1,bn),!ke))return null;let Ot=null;if(le["min-fraction-digits"]&&(Ot=T.parse(le["min-fraction-digits"],1,sn),!Ot))return null;let Nt=null;return le["max-fraction-digits"]&&(Nt=T.parse(le["max-fraction-digits"],1,sn),!Nt)?null:new Za(W,De,ke,Ot,Nt)}evaluate(g){return new Intl.NumberFormat(this.locale?this.locale.evaluate(g):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(g):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(g):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(g):void 0}).format(this.number.evaluate(g))}eachChild(g){g(this.number),this.locale&&g(this.locale),this.currency&&g(this.currency),this.minFractionDigits&&g(this.minFractionDigits),this.maxFractionDigits&&g(this.maxFractionDigits)}outputDefined(){return!1}}class ma{constructor(g){this.type=no,this.sections=g}static parse(g,T){if(g.length<2)return T.error("Expected at least one argument.");const W=g[1];if(!Array.isArray(W)&&"object"==typeof W)return T.error("First argument must be an image or text section.");const le=[];let De=!1;for(let ke=1;ke<=g.length-1;++ke){const Ot=g[ke];if(De&&"object"==typeof Ot&&!Array.isArray(Ot)){De=!1;let Nt=null;if(Ot["font-scale"]&&(Nt=T.parse(Ot["font-scale"],1,sn),!Nt))return null;let gn=null;if(Ot["text-font"]&&(gn=T.parse(Ot["text-font"],1,_i(bn)),!gn))return null;let Xn=null;if(Ot["text-color"]&&(Xn=T.parse(Ot["text-color"],1,nn),!Xn))return null;const ci=le[le.length-1];ci.scale=Nt,ci.font=gn,ci.textColor=Xn}else{const Nt=T.parse(g[ke],1,ii);if(!Nt)return null;const gn=Nt.type.kind;if("string"!==gn&&"value"!==gn&&"null"!==gn&&"resolvedImage"!==gn)return T.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");De=!0,le.push({content:Nt,scale:null,font:null,textColor:null})}}return new ma(le)}evaluate(g){return new Wi(this.sections.map(T=>{const W=T.content.evaluate(g);return Wt(W)===ji?new Vn("",W,null,null,null):new Vn(kn(W),null,T.scale?T.scale.evaluate(g):null,T.font?T.font.evaluate(g).join(","):null,T.textColor?T.textColor.evaluate(g):null)}))}eachChild(g){for(const T of this.sections)g(T.content),T.scale&&g(T.scale),T.font&&g(T.font),T.textColor&&g(T.textColor)}outputDefined(){return!1}}class Wa{constructor(g){this.type=ji,this.input=g}static parse(g,T){if(2!==g.length)return T.error("Expected two arguments.");const W=T.parse(g[1],1,bn);return W?new Wa(W):T.error("No image name provided.")}evaluate(g){const T=this.input.evaluate(g),W=_n.fromString(T);return W&&g.availableImages&&(W.available=g.availableImages.indexOf(T)>-1),W}eachChild(g){g(this.input)}outputDefined(){return!1}}class Yi{constructor(g){this.type=sn,this.input=g}static parse(g,T){if(2!==g.length)return T.error(`Expected 1 argument, but found ${g.length-1} instead.`);const W=T.parse(g[1],1);return W?"array"!==W.type.kind&&"string"!==W.type.kind&&"value"!==W.type.kind?T.error(`Expected argument of type string or array, but found ${En(W.type)} instead.`):new Yi(W):null}evaluate(g){const T=this.input.evaluate(g);if("string"==typeof T||Array.isArray(T))return T.length;throw new ui(`Expected value to be of type string or array, but found ${En(Wt(T))} instead.`)}eachChild(g){g(this.input)}outputDefined(){return!1}}const jo={"==":Hi,"!=":Do,">":yr,"<":$o,">=":da,"<=":Vr,array:At,at:hs,boolean:At,case:To,coalesce:dl,collator:Xo,format:ma,image:Wa,in:Ua,"index-of":Tn,interpolate:Fa,"interpolate-hcl":Fa,"interpolate-lab":Fa,length:Yi,let:ka,literal:Fi,match:Qi,number:At,"number-format":Za,object:At,slice:sr,step:ja,string:At,"to-boolean":Bn,"to-color":Bn,"to-number":Bn,"to-string":Bn,var:vr,within:Cr};function Cn(y,[g,T,W,le]){g=g.evaluate(y),T=T.evaluate(y),W=W.evaluate(y);const De=le?le.evaluate(y):1,ke=st(g,T,W,De);if(ke)throw new ui(ke);return new po(g/255,T/255,W/255,De,!1)}function uo(y,g){return y in g}function fo(y,g){const T=g[y];return void 0===T?null:T}function Jo(y){return{type:y}}function kr(y){return{result:"success",value:y}}function Qr(y){return{result:"error",value:y}}function Aa(y){return"data-driven"===y["property-type"]||"cross-faded-data-driven"===y["property-type"]}function cs(y){return!!y.expression&&y.expression.parameters.indexOf("zoom")>-1}function ys(y){return!!y.expression&&y.expression.interpolated}function zr(y){return y instanceof Number?"number":y instanceof String?"string":y instanceof Boolean?"boolean":Array.isArray(y)?"array":null===y?"null":typeof y}function Pi(y){return"object"==typeof y&&null!==y&&!Array.isArray(y)}function xo(y){return y}function lr(y,g){const T="color"===g.type,W=y.stops&&"object"==typeof y.stops[0][0],le=W||!(W||void 0!==y.property),De=y.type||(ys(g)?"exponential":"interval");if(T||"padding"===g.type){const Xn=T?po.parse:Ft.parse;(y=ct({},y)).stops&&(y.stops=y.stops.map(ci=>[ci[0],Xn(ci[1])])),y.default=Xn(y.default?y.default:g.default)}if(y.colorSpace&&"rgb"!==(ke=y.colorSpace)&&"hcl"!==ke&&"lab"!==ke)throw new Error(`Unknown color space: "${y.colorSpace}"`);var ke;let Ot,Nt,gn;if("exponential"===De)Ot=as;else if("interval"===De)Ot=ia;else if("categorical"===De){Ot=Da,Nt=Object.create(null);for(const Xn of y.stops)Nt[Xn[0]]=Xn[1];gn=typeof y.stops[0][0]}else{if("identity"!==De)throw new Error(`Unknown function type "${De}"`);Ot=Is}if(W){const Xn={},ci=[];for(let Ni=0;Ni<y.stops.length;Ni++){const lo=y.stops[Ni],yo=lo[0].zoom;void 0===Xn[yo]&&(Xn[yo]={zoom:yo,type:y.type,property:y.property,default:y.default,stops:[]},ci.push(yo)),Xn[yo].stops.push([lo[0].value,lo[1]])}const pi=[];for(const Ni of ci)pi.push([Xn[Ni].zoom,lr(Xn[Ni],g)]);const Di={name:"linear"};return{kind:"composite",interpolationType:Di,interpolationFactor:Fa.interpolationFactor.bind(void 0,Di),zoomStops:pi.map(Ni=>Ni[0]),evaluate:({zoom:Ni},lo)=>as({stops:pi,base:y.base},g,Ni).evaluate(Ni,lo)}}if(le){const Xn="exponential"===De?{name:"exponential",base:void 0!==y.base?y.base:1}:null;return{kind:"camera",interpolationType:Xn,interpolationFactor:Fa.interpolationFactor.bind(void 0,Xn),zoomStops:y.stops.map(ci=>ci[0]),evaluate:({zoom:ci})=>Ot(y,g,ci,Nt,gn)}}return{kind:"source",evaluate(Xn,ci){const pi=ci&&ci.properties?ci.properties[y.property]:void 0;return void 0===pi?Ir(y.default,g.default):Ot(y,g,pi,Nt,gn)}}}function Ir(y,g,T){return void 0!==y?y:void 0!==g?g:void 0!==T?T:void 0}function Da(y,g,T,W,le){return Ir(typeof T===le?W[T]:void 0,y.default,g.default)}function ia(y,g,T){if("number"!==zr(T))return Ir(y.default,g.default);const W=y.stops.length;if(1===W||T<=y.stops[0][0])return y.stops[0][1];if(T>=y.stops[W-1][0])return y.stops[W-1][1];const le=ms(y.stops.map(De=>De[0]),T);return y.stops[le][1]}function as(y,g,T){const W=void 0!==y.base?y.base:1;if("number"!==zr(T))return Ir(y.default,g.default);const le=y.stops.length;if(1===le||T<=y.stops[0][0])return y.stops[0][1];if(T>=y.stops[le-1][0])return y.stops[le-1][1];const De=ms(y.stops.map(Xn=>Xn[0]),T),ke=function(Xn,ci,pi,Di){const Ni=Di-pi,lo=Xn-pi;return 0===Ni?0:1===ci?lo/Ni:(Math.pow(ci,lo)-1)/(Math.pow(ci,Ni)-1)}(T,W,y.stops[De][0],y.stops[De+1][0]),Ot=y.stops[De][1],Nt=y.stops[De+1][1],gn=ls[g.type]||xo;return"function"==typeof Ot.evaluate?{evaluate(...Xn){const ci=Ot.evaluate.apply(void 0,Xn),pi=Nt.evaluate.apply(void 0,Xn);if(void 0!==ci&&void 0!==pi)return gn(ci,pi,ke,y.colorSpace)}}:gn(Ot,Nt,ke,y.colorSpace)}function Is(y,g,T){switch(g.type){case"color":T=po.parse(T);break;case"formatted":T=Wi.fromString(T.toString());break;case"resolvedImage":T=_n.fromString(T.toString());break;case"padding":T=Ft.parse(T);break;default:zr(T)===g.type||"enum"===g.type&&g.values[T]||(T=void 0)}return Ir(T,y.default,g.default)}qr.register(jo,{error:[{kind:"error"},[bn],(y,[g])=>{throw new ui(g.evaluate(y))}],typeof:[bn,[ii],(y,[g])=>En(Wt(g.evaluate(y)))],"to-rgba":[_i(sn,4),[nn],(y,[g])=>{const[T,W,le,De]=g.evaluate(y).rgb;return[255*T,255*W,255*le,De]}],rgb:[nn,[sn,sn,sn],Cn],rgba:[nn,[sn,sn,sn,sn],Cn],has:{type:vt,overloads:[[[bn],(y,[g])=>uo(g.evaluate(y),y.properties())],[[bn,rn],(y,[g,T])=>uo(g.evaluate(y),T.evaluate(y))]]},get:{type:ii,overloads:[[[bn],(y,[g])=>fo(g.evaluate(y),y.properties())],[[bn,rn],(y,[g,T])=>fo(g.evaluate(y),T.evaluate(y))]]},"feature-state":[ii,[bn],(y,[g])=>fo(g.evaluate(y),y.featureState||{})],properties:[rn,[],y=>y.properties()],"geometry-type":[bn,[],y=>y.geometryType()],id:[ii,[],y=>y.id()],zoom:[sn,[],y=>y.globals.zoom],"heatmap-density":[sn,[],y=>y.globals.heatmapDensity||0],"line-progress":[sn,[],y=>y.globals.lineProgress||0],accumulated:[ii,[],y=>void 0===y.globals.accumulated?null:y.globals.accumulated],"+":[sn,Jo(sn),(y,g)=>{let T=0;for(const W of g)T+=W.evaluate(y);return T}],"*":[sn,Jo(sn),(y,g)=>{let T=1;for(const W of g)T*=W.evaluate(y);return T}],"-":{type:sn,overloads:[[[sn,sn],(y,[g,T])=>g.evaluate(y)-T.evaluate(y)],[[sn],(y,[g])=>-g.evaluate(y)]]},"/":[sn,[sn,sn],(y,[g,T])=>g.evaluate(y)/T.evaluate(y)],"%":[sn,[sn,sn],(y,[g,T])=>g.evaluate(y)%T.evaluate(y)],ln2:[sn,[],()=>Math.LN2],pi:[sn,[],()=>Math.PI],e:[sn,[],()=>Math.E],"^":[sn,[sn,sn],(y,[g,T])=>Math.pow(g.evaluate(y),T.evaluate(y))],sqrt:[sn,[sn],(y,[g])=>Math.sqrt(g.evaluate(y))],log10:[sn,[sn],(y,[g])=>Math.log(g.evaluate(y))/Math.LN10],ln:[sn,[sn],(y,[g])=>Math.log(g.evaluate(y))],log2:[sn,[sn],(y,[g])=>Math.log(g.evaluate(y))/Math.LN2],sin:[sn,[sn],(y,[g])=>Math.sin(g.evaluate(y))],cos:[sn,[sn],(y,[g])=>Math.cos(g.evaluate(y))],tan:[sn,[sn],(y,[g])=>Math.tan(g.evaluate(y))],asin:[sn,[sn],(y,[g])=>Math.asin(g.evaluate(y))],acos:[sn,[sn],(y,[g])=>Math.acos(g.evaluate(y))],atan:[sn,[sn],(y,[g])=>Math.atan(g.evaluate(y))],min:[sn,Jo(sn),(y,g)=>Math.min(...g.map(T=>T.evaluate(y)))],max:[sn,Jo(sn),(y,g)=>Math.max(...g.map(T=>T.evaluate(y)))],abs:[sn,[sn],(y,[g])=>Math.abs(g.evaluate(y))],round:[sn,[sn],(y,[g])=>{const T=g.evaluate(y);return T<0?-Math.round(-T):Math.round(T)}],floor:[sn,[sn],(y,[g])=>Math.floor(g.evaluate(y))],ceil:[sn,[sn],(y,[g])=>Math.ceil(g.evaluate(y))],"filter-==":[vt,[bn,ii],(y,[g,T])=>y.properties()[g.value]===T.value],"filter-id-==":[vt,[ii],(y,[g])=>y.id()===g.value],"filter-type-==":[vt,[bn],(y,[g])=>y.geometryType()===g.value],"filter-<":[vt,[bn,ii],(y,[g,T])=>{const W=y.properties()[g.value],le=T.value;return typeof W==typeof le&&W<le}],"filter-id-<":[vt,[ii],(y,[g])=>{const T=y.id(),W=g.value;return typeof T==typeof W&&T<W}],"filter->":[vt,[bn,ii],(y,[g,T])=>{const W=y.properties()[g.value],le=T.value;return typeof W==typeof le&&W>le}],"filter-id->":[vt,[ii],(y,[g])=>{const T=y.id(),W=g.value;return typeof T==typeof W&&T>W}],"filter-<=":[vt,[bn,ii],(y,[g,T])=>{const W=y.properties()[g.value],le=T.value;return typeof W==typeof le&&W<=le}],"filter-id-<=":[vt,[ii],(y,[g])=>{const T=y.id(),W=g.value;return typeof T==typeof W&&T<=W}],"filter->=":[vt,[bn,ii],(y,[g,T])=>{const W=y.properties()[g.value],le=T.value;return typeof W==typeof le&&W>=le}],"filter-id->=":[vt,[ii],(y,[g])=>{const T=y.id(),W=g.value;return typeof T==typeof W&&T>=W}],"filter-has":[vt,[ii],(y,[g])=>g.value in y.properties()],"filter-has-id":[vt,[],y=>null!==y.id()&&void 0!==y.id()],"filter-type-in":[vt,[_i(bn)],(y,[g])=>g.value.indexOf(y.geometryType())>=0],"filter-id-in":[vt,[_i(ii)],(y,[g])=>g.value.indexOf(y.id())>=0],"filter-in-small":[vt,[bn,_i(ii)],(y,[g,T])=>T.value.indexOf(y.properties()[g.value])>=0],"filter-in-large":[vt,[bn,_i(ii)],(y,[g,T])=>function(W,le,De,ke){for(;De<=ke;){const Ot=De+ke>>1;if(le[Ot]===W)return!0;le[Ot]>W?ke=Ot-1:De=Ot+1}return!1}(y.properties()[g.value],T.value,0,T.value.length-1)],all:{type:vt,overloads:[[[vt,vt],(y,[g,T])=>g.evaluate(y)&&T.evaluate(y)],[Jo(vt),(y,g)=>{for(const T of g)if(!T.evaluate(y))return!1;return!0}]]},any:{type:vt,overloads:[[[vt,vt],(y,[g,T])=>g.evaluate(y)||T.evaluate(y)],[Jo(vt),(y,g)=>{for(const T of g)if(T.evaluate(y))return!0;return!1}]]},"!":[vt,[vt],(y,[g])=>!g.evaluate(y)],"is-supported-script":[vt,[bn],(y,[g])=>{const T=y.globals&&y.globals.isSupportedScript;return!T||T(g.evaluate(y))}],upcase:[bn,[bn],(y,[g])=>g.evaluate(y).toUpperCase()],downcase:[bn,[bn],(y,[g])=>g.evaluate(y).toLowerCase()],concat:[bn,Jo(ii),(y,g)=>g.map(T=>kn(T.evaluate(y))).join("")],"resolved-locale":[bn,[Oo],(y,[g])=>g.evaluate(y).resolvedLocale()]});class ba{constructor(g,T){var W;this.expression=g,this._warningHistory={},this._evaluator=new $n,this._defaultValue=T?"color"===(W=T).type&&Pi(W.default)?new po(0,0,0,0):"color"===W.type?po.parse(W.default)||null:"padding"===W.type?Ft.parse(W.default)||null:"variableAnchorOffsetCollection"===W.type?On.parse(W.default)||null:void 0===W.default?null:W.default:null,this._enumValues=T&&"enum"===T.type?T.values:null}evaluateWithoutErrorHandling(g,T,W,le,De,ke){return this._evaluator.globals=g,this._evaluator.feature=T,this._evaluator.featureState=W,this._evaluator.canonical=le,this._evaluator.availableImages=De||null,this._evaluator.formattedSection=ke,this.expression.evaluate(this._evaluator)}evaluate(g,T,W,le,De,ke){this._evaluator.globals=g,this._evaluator.feature=T||null,this._evaluator.featureState=W||null,this._evaluator.canonical=le,this._evaluator.availableImages=De||null,this._evaluator.formattedSection=ke||null;try{const Ot=this.expression.evaluate(this._evaluator);if(null==Ot||"number"==typeof Ot&&Ot!=Ot)return this._defaultValue;if(this._enumValues&&!(Ot in this._enumValues))throw new ui(`Expected value to be one of ${Object.keys(this._enumValues).map(Nt=>JSON.stringify(Nt)).join(", ")}, but found ${JSON.stringify(Ot)} instead.`);return Ot}catch(Ot){return this._warningHistory[Ot.message]||(this._warningHistory[Ot.message]=!0,typeof console<"u"&&console.warn(Ot.message)),this._defaultValue}}}function Ss(y){return Array.isArray(y)&&y.length>0&&"string"==typeof y[0]&&y[0]in jo}function Ca(y,g){const T=new Ui(jo,Ra,[],g?function(le){const De={color:nn,string:bn,number:sn,enum:bn,boolean:vt,formatted:no,padding:Li,resolvedImage:ji,variableAnchorOffsetCollection:Ii};return"array"===le.type?_i(De[le.value]||ii,le.length):De[le.type]}(g):void 0),W=T.parse(y,void 0,void 0,void 0,g&&"string"===g.type?{typeAnnotation:"coerce"}:void 0);return W?kr(new ba(W,g)):Qr(T.errors)}class Ia{constructor(g,T){this.kind=g,this._styleExpression=T,this.isStateDependent="constant"!==g&&!Hs(T.expression)}evaluateWithoutErrorHandling(g,T,W,le,De,ke){return this._styleExpression.evaluateWithoutErrorHandling(g,T,W,le,De,ke)}evaluate(g,T,W,le,De,ke){return this._styleExpression.evaluate(g,T,W,le,De,ke)}}class wa{constructor(g,T,W,le){this.kind=g,this.zoomStops=W,this._styleExpression=T,this.isStateDependent="camera"!==g&&!Hs(T.expression),this.interpolationType=le}evaluateWithoutErrorHandling(g,T,W,le,De,ke){return this._styleExpression.evaluateWithoutErrorHandling(g,T,W,le,De,ke)}evaluate(g,T,W,le,De,ke){return this._styleExpression.evaluate(g,T,W,le,De,ke)}interpolationFactor(g,T,W){return this.interpolationType?Fa.interpolationFactor(this.interpolationType,g,T,W):0}}function Va(y,g){const T=Ca(y,g);if("error"===T.result)return T;const W=T.value.expression,le=ss(W);if(!le&&!Aa(g))return Qr([new tn("","data expressions not supported")]);const De=Cs(W,["zoom"]);if(!De&&!cs(g))return Qr([new tn("","zoom expressions not supported")]);const ke=di(W);return ke||De?ke instanceof tn?Qr([ke]):ke instanceof Fa&&!ys(g)?Qr([new tn("",'"interpolate" expressions cannot be used with this property')]):kr(ke?new wa(le?"camera":"composite",T.value,ke.labels,ke instanceof Fa?ke.interpolation:void 0):new Ia(le?"constant":"source",T.value)):Qr([new tn("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class zn{constructor(g,T){this._parameters=g,this._specification=T,ct(this,lr(this._parameters,this._specification))}static deserialize(g){return new zn(g._parameters,g._specification)}static serialize(g){return{_parameters:g._parameters,_specification:g._specification}}}function di(y){let g=null;if(y instanceof ka)g=di(y.result);else if(y instanceof dl){for(const T of y.args)if(g=di(T),g)break}else(y instanceof ja||y instanceof Fa)&&y.input instanceof qr&&"zoom"===y.input.name&&(g=y);return g instanceof tn||y.eachChild(T=>{const W=di(T);W instanceof tn?g=W:!g&&W?g=new tn("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):g&&W&&g!==W&&(g=new tn("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),g}function cn(y){if(!0===y||!1===y)return!0;if(!Array.isArray(y)||0===y.length)return!1;switch(y[0]){case"has":return y.length>=2&&"$id"!==y[1]&&"$type"!==y[1];case"in":return y.length>=3&&("string"!=typeof y[1]||Array.isArray(y[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==y.length||Array.isArray(y[1])||Array.isArray(y[2]);case"any":case"all":for(const g of y.slice(1))if(!cn(g)&&"boolean"!=typeof g)return!1;return!0;default:return!0}}const Zi={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Eo(y){if(null==y)return{filter:()=>!0,needGeometry:!1};cn(y)||(y=Rs(y));const g=Ca(y,Zi);if("error"===g.result)throw new Error(g.value.map(T=>`${T.key}: ${T.message}`).join(", "));return{filter:(T,W,le)=>g.value.evaluate(T,W,{},le),needGeometry:Nr(y)}}function oa(y,g){return y<g?-1:y>g?1:0}function Nr(y){if(!Array.isArray(y))return!1;if("within"===y[0])return!0;for(let g=1;g<y.length;g++)if(Nr(y[g]))return!0;return!1}function Rs(y){if(!y)return!0;const g=y[0];return y.length<=1?"any"!==g:"=="===g?Zr(y[1],y[2],"=="):"!="===g?Cl(Zr(y[1],y[2],"==")):"<"===g||">"===g||"<="===g||">="===g?Zr(y[1],y[2],g):"any"===g?(T=y.slice(1),["any"].concat(T.map(Rs))):"all"===g?["all"].concat(y.slice(1).map(Rs)):"none"===g?["all"].concat(y.slice(1).map(Rs).map(Cl)):"in"===g?Na(y[1],y.slice(2)):"!in"===g?Cl(Na(y[1],y.slice(2))):"has"===g?ol(y[1]):"!has"===g?Cl(ol(y[1])):"within"!==g||y;var T}function Zr(y,g,T){switch(y){case"$type":return[`filter-type-${T}`,g];case"$id":return[`filter-id-${T}`,g];default:return[`filter-${T}`,y,g]}}function Na(y,g){if(0===g.length)return!1;switch(y){case"$type":return["filter-type-in",["literal",g]];case"$id":return["filter-id-in",["literal",g]];default:return g.length>200&&!g.some(T=>typeof T!=typeof g[0])?["filter-in-large",y,["literal",g.sort(oa)]]:["filter-in-small",y,["literal",g]]}}function ol(y){switch(y){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",y]}}function Cl(y){return["!",y]}function Ql(y){const g=typeof y;if("number"===g||"boolean"===g||"string"===g||null==y)return JSON.stringify(y);if(Array.isArray(y)){let le="[";for(const De of y)le+=`${Ql(De)},`;return`${le}]`}const T=Object.keys(y).sort();let W="{";for(let le=0;le<T.length;le++)W+=`${JSON.stringify(T[le])}:${Ql(y[T[le]])},`;return`${W}}`}function Ho(y){let g="";for(const T of Oe)g+=`/${Ql(y[T])}`;return g}function mc(y){const g=y.value;return g?[new ot(y.key,g,"constants have been deprecated as of v8")]:[]}function os(y){return y instanceof Number||y instanceof String||y instanceof Boolean?y.valueOf():y}function ps(y){if(Array.isArray(y))return y.map(ps);if(y instanceof Object&&!(y instanceof Number||y instanceof String||y instanceof Boolean)){const g={};for(const T in y)g[T]=ps(y[T]);return g}return os(y)}function Ps(y){const g=y.key,T=y.value,W=y.valueSpec||{},le=y.objectElementValidators||{},De=y.style,ke=y.styleSpec,Ot=y.validateSpec;let Nt=[];const gn=zr(T);if("object"!==gn)return[new ot(g,T,`object expected, ${gn} found`)];for(const Xn in T){const ci=Xn.split(".")[0],pi=W[ci]||W["*"];let Di;if(le[ci])Di=le[ci];else if(W[ci])Di=Ot;else if(le["*"])Di=le["*"];else{if(!W["*"]){Nt.push(new ot(g,T[Xn],`unknown property "${Xn}"`));continue}Di=Ot}Nt=Nt.concat(Di({key:(g&&`${g}.`)+Xn,value:T[Xn],valueSpec:pi,style:De,styleSpec:ke,object:T,objectKey:Xn,validateSpec:Ot},T))}for(const Xn in W)le[Xn]||W[Xn].required&&void 0===W[Xn].default&&void 0===T[Xn]&&Nt.push(new ot(g,T,`missing required property "${Xn}"`));return Nt}function Ba(y){const g=y.value,T=y.valueSpec,W=y.style,le=y.styleSpec,De=y.key,ke=y.arrayElementValidator||y.validateSpec;if("array"!==zr(g))return[new ot(De,g,`array expected, ${zr(g)} found`)];if(T.length&&g.length!==T.length)return[new ot(De,g,`array length ${T.length} expected, length ${g.length} found`)];if(T["min-length"]&&g.length<T["min-length"])return[new ot(De,g,`array length at least ${T["min-length"]} expected, length ${g.length} found`)];let Ot={type:T.value,values:T.values};le.$version<7&&(Ot.function=T.function),"object"===zr(T.value)&&(Ot=T.value);let Nt=[];for(let gn=0;gn<g.length;gn++)Nt=Nt.concat(ke({array:g,arrayIndex:gn,value:g[gn],valueSpec:Ot,validateSpec:y.validateSpec,style:W,styleSpec:le,key:`${De}[${gn}]`}));return Nt}function Ka(y){const g=y.key,T=y.value,W=y.valueSpec;let le=zr(T);return"number"===le&&T!=T&&(le="NaN"),"number"!==le?[new ot(g,T,`number expected, ${le} found`)]:"minimum"in W&&T<W.minimum?[new ot(g,T,`${T} is less than the minimum value ${W.minimum}`)]:"maximum"in W&&T>W.maximum?[new ot(g,T,`${T} is greater than the maximum value ${W.maximum}`)]:[]}function vc(y){const g=y.valueSpec,T=os(y.value.type);let W,le,De,ke={};const Ot="categorical"!==T&&void 0===y.value.property,Nt=!Ot,gn="array"===zr(y.value.stops)&&"array"===zr(y.value.stops[0])&&"object"===zr(y.value.stops[0][0]),Xn=Ps({key:y.key,value:y.value,valueSpec:y.styleSpec.function,validateSpec:y.validateSpec,style:y.style,styleSpec:y.styleSpec,objectElementValidators:{stops:function(Di){if("identity"===T)return[new ot(Di.key,Di.value,'identity function may not have a "stops" property')];let Ni=[];const lo=Di.value;return Ni=Ni.concat(Ba({key:Di.key,value:lo,valueSpec:Di.valueSpec,validateSpec:Di.validateSpec,style:Di.style,styleSpec:Di.styleSpec,arrayElementValidator:ci})),"array"===zr(lo)&&0===lo.length&&Ni.push(new ot(Di.key,lo,"array must have at least one stop")),Ni},default:function(Di){return Di.validateSpec({key:Di.key,value:Di.value,valueSpec:g,validateSpec:Di.validateSpec,style:Di.style,styleSpec:Di.styleSpec})}}});return"identity"===T&&Ot&&Xn.push(new ot(y.key,y.value,'missing required property "property"')),"identity"===T||y.value.stops||Xn.push(new ot(y.key,y.value,'missing required property "stops"')),"exponential"===T&&y.valueSpec.expression&&!ys(y.valueSpec)&&Xn.push(new ot(y.key,y.value,"exponential functions not supported")),y.styleSpec.$version>=8&&(Nt&&!Aa(y.valueSpec)?Xn.push(new ot(y.key,y.value,"property functions not supported")):Ot&&!cs(y.valueSpec)&&Xn.push(new ot(y.key,y.value,"zoom functions not supported"))),"categorical"!==T&&!gn||void 0!==y.value.property||Xn.push(new ot(y.key,y.value,'"property" property is required')),Xn;function ci(Di){let Ni=[];const lo=Di.value,yo=Di.key;if("array"!==zr(lo))return[new ot(yo,lo,`array expected, ${zr(lo)} found`)];if(2!==lo.length)return[new ot(yo,lo,`array length 2 expected, length ${lo.length} found`)];if(gn){if("object"!==zr(lo[0]))return[new ot(yo,lo,`object expected, ${zr(lo[0])} found`)];if(void 0===lo[0].zoom)return[new ot(yo,lo,"object stop key must have zoom")];if(void 0===lo[0].value)return[new ot(yo,lo,"object stop key must have value")];if(De&&De>os(lo[0].zoom))return[new ot(yo,lo[0].zoom,"stop zoom values must appear in ascending order")];os(lo[0].zoom)!==De&&(De=os(lo[0].zoom),le=void 0,ke={}),Ni=Ni.concat(Ps({key:`${yo}[0]`,value:lo[0],valueSpec:{zoom:{}},validateSpec:Di.validateSpec,style:Di.style,styleSpec:Di.styleSpec,objectElementValidators:{zoom:Ka,value:pi}}))}else Ni=Ni.concat(pi({key:`${yo}[0]`,value:lo[0],valueSpec:{},validateSpec:Di.validateSpec,style:Di.style,styleSpec:Di.styleSpec},lo));return Ss(ps(lo[1]))?Ni.concat([new ot(`${yo}[1]`,lo[1],"expressions are not allowed in function stops.")]):Ni.concat(Di.validateSpec({key:`${yo}[1]`,value:lo[1],valueSpec:g,validateSpec:Di.validateSpec,style:Di.style,styleSpec:Di.styleSpec}))}function pi(Di,Ni){const lo=zr(Di.value),yo=os(Di.value),So=null!==Di.value?Di.value:Ni;if(W){if(lo!==W)return[new ot(Di.key,So,`${lo} stop domain type must match previous stop domain type ${W}`)]}else W=lo;if("number"!==lo&&"string"!==lo&&"boolean"!==lo)return[new ot(Di.key,So,"stop domain value must be a number, string, or boolean")];if("number"!==lo&&"categorical"!==T){let Ko=`number expected, ${lo} found`;return Aa(g)&&void 0===T&&(Ko+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new ot(Di.key,So,Ko)]}return"categorical"!==T||"number"!==lo||isFinite(yo)&&Math.floor(yo)===yo?"categorical"!==T&&"number"===lo&&void 0!==le&&yo<le?[new ot(Di.key,So,"stop domain values must appear in ascending order")]:(le=yo,"categorical"===T&&yo in ke?[new ot(Di.key,So,"stop domain values must be unique")]:(ke[yo]=!0,[])):[new ot(Di.key,So,`integer expected, found ${yo}`)]}}function $s(y){const g=("property"===y.expressionContext?Va:Ca)(ps(y.value),y.valueSpec);if("error"===g.result)return g.value.map(W=>new ot(`${y.key}${W.key}`,y.value,W.message));const T=g.value.expression||g.value._styleExpression.expression;if("property"===y.expressionContext&&"text-font"===y.propertyKey&&!T.outputDefined())return[new ot(y.key,y.value,`Invalid data expression for "${y.propertyKey}". Output values must be contained as literals within the expression.`)];if("property"===y.expressionContext&&"layout"===y.propertyType&&!Hs(T))return[new ot(y.key,y.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===y.expressionContext&&!Hs(T))return[new ot(y.key,y.value,'"feature-state" data expressions are not supported with filters.')];if(y.expressionContext&&0===y.expressionContext.indexOf("cluster")){if(!Cs(T,["zoom","feature-state"]))return[new ot(y.key,y.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===y.expressionContext&&!ss(T))return[new ot(y.key,y.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function js(y){const g=y.key,T=y.value,W=y.valueSpec,le=[];return Array.isArray(W.values)?-1===W.values.indexOf(os(T))&&le.push(new ot(g,T,`expected one of [${W.values.join(", ")}], ${JSON.stringify(T)} found`)):-1===Object.keys(W.values).indexOf(os(T))&&le.push(new ot(g,T,`expected one of [${Object.keys(W.values).join(", ")}], ${JSON.stringify(T)} found`)),le}function bc(y){return cn(ps(y.value))?$s(ct({},y,{expressionContext:"filter",valueSpec:{value:"boolean"}})):ql(y)}function ql(y){const g=y.value,T=y.key;if("array"!==zr(g))return[new ot(T,g,`array expected, ${zr(g)} found`)];const W=y.styleSpec;let le,De=[];if(g.length<1)return[new ot(T,g,"filter array must have at least 1 element")];switch(De=De.concat(js({key:`${T}[0]`,value:g[0],valueSpec:W.filter_operator,style:y.style,styleSpec:y.styleSpec})),os(g[0])){case"<":case"<=":case">":case">=":g.length>=2&&"$type"===os(g[1])&&De.push(new ot(T,g,`"$type" cannot be use with operator "${g[0]}"`));case"==":case"!=":3!==g.length&&De.push(new ot(T,g,`filter array for operator "${g[0]}" must have 3 elements`));case"in":case"!in":g.length>=2&&(le=zr(g[1]),"string"!==le&&De.push(new ot(`${T}[1]`,g[1],`string expected, ${le} found`)));for(let ke=2;ke<g.length;ke++)le=zr(g[ke]),"$type"===os(g[1])?De=De.concat(js({key:`${T}[${ke}]`,value:g[ke],valueSpec:W.geometry_type,style:y.style,styleSpec:y.styleSpec})):"string"!==le&&"number"!==le&&"boolean"!==le&&De.push(new ot(`${T}[${ke}]`,g[ke],`string, number, or boolean expected, ${le} found`));break;case"any":case"all":case"none":for(let ke=1;ke<g.length;ke++)De=De.concat(ql({key:`${T}[${ke}]`,value:g[ke],style:y.style,styleSpec:y.styleSpec}));break;case"has":case"!has":le=zr(g[1]),2!==g.length?De.push(new ot(T,g,`filter array for "${g[0]}" operator must have 2 elements`)):"string"!==le&&De.push(new ot(`${T}[1]`,g[1],`string expected, ${le} found`));break;case"within":le=zr(g[1]),2!==g.length?De.push(new ot(T,g,`filter array for "${g[0]}" operator must have 2 elements`)):"object"!==le&&De.push(new ot(`${T}[1]`,g[1],`object expected, ${le} found`))}return De}function Gs(y,g){const T=y.key,W=y.validateSpec,le=y.style,De=y.styleSpec,ke=y.value,Ot=y.objectKey,Nt=De[`${g}_${y.layerType}`];if(!Nt)return[];const gn=Ot.match(/^(.*)-transition$/);if("paint"===g&&gn&&Nt[gn[1]]&&Nt[gn[1]].transition)return W({key:T,value:ke,valueSpec:De.transition,style:le,styleSpec:De});const Xn=y.valueSpec||Nt[Ot];if(!Xn)return[new ot(T,ke,`unknown property "${Ot}"`)];let ci;if("string"===zr(ke)&&Aa(Xn)&&!Xn.tokens&&(ci=/^{([^}]+)}$/.exec(ke)))return[new ot(T,ke,`"${Ot}" does not support interpolation syntax\nUse an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(ci[1])} }\`.`)];const pi=[];return"symbol"===y.layerType&&("text-field"===Ot&&le&&!le.glyphs&&pi.push(new ot(T,ke,'use of "text-field" requires a style "glyphs" property')),"text-font"===Ot&&Pi(ps(ke))&&"identity"===os(ke.type)&&pi.push(new ot(T,ke,'"text-font" does not support identity functions'))),pi.concat(W({key:y.key,value:ke,valueSpec:Xn,style:le,styleSpec:De,expressionContext:"property",propertyType:g,propertyKey:Ot}))}function Dl(y){return Gs(y,"paint")}function Yr(y){return Gs(y,"layout")}function _a(y){let g=[];const T=y.value,W=y.key,le=y.style,De=y.styleSpec;T.type||T.ref||g.push(new ot(W,T,'either "type" or "ref" is required'));let ke=os(T.type);const Ot=os(T.ref);if(T.id){const Nt=os(T.id);for(let gn=0;gn<y.arrayIndex;gn++){const Xn=le.layers[gn];os(Xn.id)===Nt&&g.push(new ot(W,T.id,`duplicate layer id "${T.id}", previously used at line ${Xn.id.__line__}`))}}if("ref"in T){let Nt;["type","source","source-layer","filter","layout"].forEach(gn=>{gn in T&&g.push(new ot(W,T[gn],`"${gn}" is prohibited for ref layers`))}),le.layers.forEach(gn=>{os(gn.id)===Ot&&(Nt=gn)}),Nt?Nt.ref?g.push(new ot(W,T.ref,"ref cannot reference another ref layer")):ke=os(Nt.type):g.push(new ot(W,T.ref,`ref layer "${Ot}" not found`))}else if("background"!==ke)if(T.source){const Nt=le.sources&&le.sources[T.source],gn=Nt&&os(Nt.type);Nt?"vector"===gn&&"raster"===ke?g.push(new ot(W,T.source,`layer "${T.id}" requires a raster source`)):"raster-dem"!==gn&&"hillshade"===ke?g.push(new ot(W,T.source,`layer "${T.id}" requires a raster-dem source`)):"raster"===gn&&"raster"!==ke?g.push(new ot(W,T.source,`layer "${T.id}" requires a vector source`)):"vector"!==gn||T["source-layer"]?"raster-dem"===gn&&"hillshade"!==ke?g.push(new ot(W,T.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==ke||!T.paint||!T.paint["line-gradient"]||"geojson"===gn&&Nt.lineMetrics||g.push(new ot(W,T,`layer "${T.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):g.push(new ot(W,T,`layer "${T.id}" must specify a "source-layer"`)):g.push(new ot(W,T.source,`source "${T.source}" not found`))}else g.push(new ot(W,T,'missing required property "source"'));return g=g.concat(Ps({key:W,value:T,valueSpec:De.layer,style:y.style,styleSpec:y.styleSpec,validateSpec:y.validateSpec,objectElementValidators:{"*":()=>[],type:()=>y.validateSpec({key:`${W}.type`,value:T.type,valueSpec:De.layer.type,style:y.style,styleSpec:y.styleSpec,validateSpec:y.validateSpec,object:T,objectKey:"type"}),filter:bc,layout:Nt=>Ps({layer:T,key:Nt.key,value:Nt.value,style:Nt.style,styleSpec:Nt.styleSpec,validateSpec:Nt.validateSpec,objectElementValidators:{"*":gn=>Yr(ct({layerType:ke},gn))}}),paint:Nt=>Ps({layer:T,key:Nt.key,value:Nt.value,style:Nt.style,styleSpec:Nt.styleSpec,validateSpec:Nt.validateSpec,objectElementValidators:{"*":gn=>Dl(ct({layerType:ke},gn))}})}})),g}function ts(y){const g=y.value,T=y.key,W=zr(g);return"string"!==W?[new ot(T,g,`string expected, ${W} found`)]:[]}const rl={promoteId:function({key:y,value:g}){if("string"===zr(g))return ts({key:y,value:g});{const T=[];for(const W in g)T.push(...ts({key:`${y}.${W}`,value:g[W]}));return T}}};function ya(y){const g=y.value,T=y.key,W=y.styleSpec,le=y.style,De=y.validateSpec;if(!g.type)return[new ot(T,g,'"type" is required')];const ke=os(g.type);let Ot;switch(ke){case"vector":case"raster":return Ot=Ps({key:T,value:g,valueSpec:W[`source_${ke.replace("-","_")}`],style:y.style,styleSpec:W,objectElementValidators:rl,validateSpec:De}),Ot;case"raster-dem":return Ot=function(Nt){var gn;const Xn=null!==(gn=Nt.sourceName)&&void 0!==gn?gn:"",ci=Nt.value,pi=Nt.styleSpec,Di=pi.source_raster_dem,Ni=Nt.style;let lo=[];const yo=zr(ci);if(void 0===ci)return lo;if("object"!==yo)return lo.push(new ot("source_raster_dem",ci,`object expected, ${yo} found`)),lo;const So="custom"===os(ci.encoding),Ko=["redFactor","greenFactor","blueFactor","baseShift"],Uo=Nt.value.encoding?`"${Nt.value.encoding}"`:"Default";for(const Yo in ci)!So&&Ko.includes(Yo)?lo.push(new ot(Yo,ci[Yo],`In "${Xn}": "${Yo}" is only valid when "encoding" is set to "custom". ${Uo} encoding found`)):Di[Yo]?lo=lo.concat(Nt.validateSpec({key:Yo,value:ci[Yo],valueSpec:Di[Yo],validateSpec:Nt.validateSpec,style:Ni,styleSpec:pi})):lo.push(new ot(Yo,ci[Yo],`unknown property "${Yo}"`));return lo}({sourceName:T,value:g,style:y.style,styleSpec:W,validateSpec:De}),Ot;case"geojson":if(Ot=Ps({key:T,value:g,valueSpec:W.source_geojson,style:le,styleSpec:W,validateSpec:De,objectElementValidators:rl}),g.cluster)for(const Nt in g.clusterProperties){const[gn,Xn]=g.clusterProperties[Nt],ci="string"==typeof gn?[gn,["accumulated"],["get",Nt]]:gn;Ot.push(...$s({key:`${T}.${Nt}.map`,value:Xn,validateSpec:De,expressionContext:"cluster-map"})),Ot.push(...$s({key:`${T}.${Nt}.reduce`,value:ci,validateSpec:De,expressionContext:"cluster-reduce"}))}return Ot;case"video":return Ps({key:T,value:g,valueSpec:W.source_video,style:le,validateSpec:De,styleSpec:W});case"image":return Ps({key:T,value:g,valueSpec:W.source_image,style:le,validateSpec:De,styleSpec:W});case"canvas":return[new ot(T,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return js({key:`${T}.type`,value:g.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:le,validateSpec:De,styleSpec:W})}}function Pl(y){const g=y.value,T=y.styleSpec,W=T.light,le=y.style;let De=[];const ke=zr(g);if(void 0===g)return De;if("object"!==ke)return De=De.concat([new ot("light",g,`object expected, ${ke} found`)]),De;for(const Ot in g){const Nt=Ot.match(/^(.*)-transition$/);De=De.concat(Nt&&W[Nt[1]]&&W[Nt[1]].transition?y.validateSpec({key:Ot,value:g[Ot],valueSpec:T.transition,validateSpec:y.validateSpec,style:le,styleSpec:T}):W[Ot]?y.validateSpec({key:Ot,value:g[Ot],valueSpec:W[Ot],validateSpec:y.validateSpec,style:le,styleSpec:T}):[new ot(Ot,g[Ot],`unknown property "${Ot}"`)])}return De}function jl(y){const g=y.value,T=y.styleSpec,W=T.terrain,le=y.style;let De=[];const ke=zr(g);if(void 0===g)return De;if("object"!==ke)return De=De.concat([new ot("terrain",g,`object expected, ${ke} found`)]),De;for(const Ot in g)De=De.concat(W[Ot]?y.validateSpec({key:Ot,value:g[Ot],valueSpec:W[Ot],validateSpec:y.validateSpec,style:le,styleSpec:T}):[new ot(Ot,g[Ot],`unknown property "${Ot}"`)]);return De}function Ml(y){let g=[];const T=y.value,W=y.key;if(Array.isArray(T)){const le=[],De=[];for(const ke in T)T[ke].id&&le.includes(T[ke].id)&&g.push(new ot(W,T,`all the sprites' ids must be unique, but ${T[ke].id} is duplicated`)),le.push(T[ke].id),T[ke].url&&De.includes(T[ke].url)&&g.push(new ot(W,T,`all the sprites' URLs must be unique, but ${T[ke].url} is duplicated`)),De.push(T[ke].url),g=g.concat(Ps({key:`${W}[${ke}]`,value:T[ke],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:y.validateSpec}));return g}return ts({key:W,value:T})}const rc={"*":()=>[],array:Ba,boolean:function(y){const g=y.value,T=y.key,W=zr(g);return"boolean"!==W?[new ot(T,g,`boolean expected, ${W} found`)]:[]},number:Ka,color:function(y){const g=y.key,T=y.value,W=zr(T);return"string"!==W?[new ot(g,T,`color expected, ${W} found`)]:po.parse(String(T))?[]:[new ot(g,T,`color expected, "${T}" found`)]},constants:mc,enum:js,filter:bc,function:vc,layer:_a,object:Ps,source:ya,light:Pl,terrain:jl,string:ts,formatted:function(y){return 0===ts(y).length?[]:$s(y)},resolvedImage:function(y){return 0===ts(y).length?[]:$s(y)},padding:function(y){const g=y.key,T=y.value;if("array"===zr(T)){if(T.length<1||T.length>4)return[new ot(g,T,`padding requires 1 to 4 values; ${T.length} values found`)];const W={type:"number"};let le=[];for(let De=0;De<T.length;De++)le=le.concat(y.validateSpec({key:`${g}[${De}]`,value:T[De],validateSpec:y.validateSpec,valueSpec:W}));return le}return Ka({key:g,value:T,valueSpec:{}})},variableAnchorOffsetCollection:function(y){const g=y.key,T=y.value,W=zr(T),le=y.styleSpec;if("array"!==W||T.length<1||T.length%2!=0)return[new ot(g,T,"variableAnchorOffsetCollection requires a non-empty array of even length")];let De=[];for(let ke=0;ke<T.length;ke+=2)De=De.concat(js({key:`${g}[${ke}]`,value:T[ke],valueSpec:le.layout_symbol["text-anchor"]})),De=De.concat(Ba({key:`${g}[${ke+1}]`,value:T[ke+1],valueSpec:{length:2,value:"number"},validateSpec:y.validateSpec,style:y.style,styleSpec:le}));return De},sprite:Ml};function Kr(y){const g=y.value,T=y.valueSpec,W=y.styleSpec;return y.validateSpec=Kr,T.expression&&Pi(os(g))?vc(y):T.expression&&Ss(ps(g))?$s(y):T.type&&rc[T.type]?rc[T.type](y):Ps(ct({},y,{valueSpec:T.type?W[T.type]:T}))}function la(y){const g=y.value,T=y.key,W=ts(y);return W.length||(-1===g.indexOf("{fontstack}")&&W.push(new ot(T,g,'"glyphs" url must include a "{fontstack}" token')),-1===g.indexOf("{range}")&&W.push(new ot(T,g,'"glyphs" url must include a "{range}" token'))),W}function ks(y,g=Pt){let T=[];return T=T.concat(Kr({key:"",value:y,valueSpec:g.$root,styleSpec:g,style:y,validateSpec:Kr,objectElementValidators:{glyphs:la,"*":()=>[]}})),y.constants&&(T=T.concat(mc({key:"constants",value:y.constants,style:y,styleSpec:g,validateSpec:Kr}))),ds(T)}function Ta(y){return function(g){return y({...g,validateSpec:Kr})}}function ds(y){return[].concat(y).sort((g,T)=>g.line-T.line)}function bs(y){return function(...g){return ds(y.apply(this,g))}}ks.source=bs(Ta(ya)),ks.sprite=bs(Ta(Ml)),ks.glyphs=bs(Ta(la)),ks.light=bs(Ta(Pl)),ks.terrain=bs(Ta(jl)),ks.layer=bs(Ta(_a)),ks.filter=bs(Ta(bc)),ks.paintProperty=bs(Ta(Dl)),ks.layoutProperty=bs(Ta(Yr));const sl=ks,Ec=sl.light,gr=sl.paintProperty,Js=sl.layoutProperty;function Ms(y,g){let T=!1;if(g&&g.length)for(const W of g)y.fire(new r(new Error(W.message))),T=!0;return T}class Bs{constructor(g,T,W){const le=this.cells=[];if(g instanceof ArrayBuffer){this.arrayBuffer=g;const ke=new Int32Array(this.arrayBuffer);g=ke[0],this.d=(T=ke[1])+2*(W=ke[2]);for(let Nt=0;Nt<this.d*this.d;Nt++){const gn=ke[3+Nt],Xn=ke[3+Nt+1];le.push(gn===Xn?null:ke.subarray(gn,Xn))}const Ot=ke[3+le.length+1];this.keys=ke.subarray(ke[3+le.length],Ot),this.bboxes=ke.subarray(Ot),this.insert=this._insertReadonly}else{this.d=T+2*W;for(let ke=0;ke<this.d*this.d;ke++)le.push([]);this.keys=[],this.bboxes=[]}this.n=T,this.extent=g,this.padding=W,this.scale=T/g,this.uid=0;const De=W/T*g;this.min=-De,this.max=g+De}insert(g,T,W,le,De){this._forEachCell(T,W,le,De,this._insertCell,this.uid++,void 0,void 0),this.keys.push(g),this.bboxes.push(T),this.bboxes.push(W),this.bboxes.push(le),this.bboxes.push(De)}_insertReadonly(){throw new Error("Cannot insert into a GridIndex created from an ArrayBuffer.")}_insertCell(g,T,W,le,De,ke){this.cells[De].push(ke)}query(g,T,W,le,De){const ke=this.min,Ot=this.max;if(g<=ke&&T<=ke&&Ot<=W&&Ot<=le&&!De)return Array.prototype.slice.call(this.keys);{const Nt=[];return this._forEachCell(g,T,W,le,this._queryCell,Nt,{},De),Nt}}_queryCell(g,T,W,le,De,ke,Ot,Nt){const gn=this.cells[De];if(null!==gn){const Xn=this.keys,ci=this.bboxes;for(let pi=0;pi<gn.length;pi++){const Di=gn[pi];if(void 0===Ot[Di]){const Ni=4*Di;(Nt?Nt(ci[Ni+0],ci[Ni+1],ci[Ni+2],ci[Ni+3]):g<=ci[Ni+2]&&T<=ci[Ni+3]&&W>=ci[Ni+0]&&le>=ci[Ni+1])?(Ot[Di]=!0,ke.push(Xn[Di])):Ot[Di]=!1}}}}_forEachCell(g,T,W,le,De,ke,Ot,Nt){const gn=this._convertToCellCoord(g),Xn=this._convertToCellCoord(T),ci=this._convertToCellCoord(W),pi=this._convertToCellCoord(le);for(let Di=gn;Di<=ci;Di++)for(let Ni=Xn;Ni<=pi;Ni++){const lo=this.d*Ni+Di;if((!Nt||Nt(this._convertFromCellCoord(Di),this._convertFromCellCoord(Ni),this._convertFromCellCoord(Di+1),this._convertFromCellCoord(Ni+1)))&&De.call(this,g,T,W,le,lo,ke,Ot,Nt))return}}_convertFromCellCoord(g){return(g-this.padding)/this.scale}_convertToCellCoord(g){return Math.max(0,Math.min(this.d-1,Math.floor(g*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;const g=this.cells,T=3+this.cells.length+1+1;let W=0;for(let ke=0;ke<this.cells.length;ke++)W+=this.cells[ke].length;const le=new Int32Array(T+W+this.keys.length+this.bboxes.length);le[0]=this.extent,le[1]=this.n,le[2]=this.padding;let De=T;for(let ke=0;ke<g.length;ke++){const Ot=g[ke];le[3+ke]=De,le.set(Ot,De),De+=Ot.length}return le[3+g.length]=De,le.set(this.keys,De),De+=this.keys.length,le[3+g.length+1]=De,le.set(this.bboxes,De),De+=this.bboxes.length,le.buffer}static serialize(g,T){const W=g.toArrayBuffer();return T&&T.push(W),{buffer:W}}static deserialize(g){return new Bs(g.buffer)}}const yl={};function Fr(y,g,T={}){if(yl[y])throw new Error(`${y} is already registered.`);Object.defineProperty(g,"_classRegistryKey",{value:y,writeable:!1}),yl[y]={klass:g,omit:T.omit||[],shallow:T.shallow||[]}}Fr("Object",Object),Fr("TransferableGridIndex",Bs),Fr("Color",po),Fr("Error",Error),Fr("AJAXError",R),Fr("ResolvedImage",_n),Fr("StylePropertyFunction",zn),Fr("StyleExpression",ba,{omit:["_evaluator"]}),Fr("ZoomDependentExpression",wa),Fr("ZoomConstantExpression",Ia),Fr("CompoundExpression",qr,{omit:["_evaluate"]});for(const y in jo)jo[y]._classRegistryKey||Fr(`Expression_${y}`,jo[y]);function nl(y){return y&&typeof ArrayBuffer<"u"&&(y instanceof ArrayBuffer||y.constructor&&"ArrayBuffer"===y.constructor.name)}function hl(y,g){if(null==y||"boolean"==typeof y||"number"==typeof y||"string"==typeof y||y instanceof Boolean||y instanceof Number||y instanceof String||y instanceof Date||y instanceof RegExp||y instanceof Blob)return y;if(nl(y)||$(y))return g&&g.push(y),y;if(ArrayBuffer.isView(y)){const T=y;return g&&g.push(T.buffer),T}if(y instanceof ImageData)return g&&g.push(y.data.buffer),y;if(Array.isArray(y)){const T=[];for(const W of y)T.push(hl(W,g));return T}if("object"==typeof y){const T=y.constructor,W=T._classRegistryKey;if(!W)throw new Error("can't serialize object of unregistered class");if(!yl[W])throw new Error(`${W} is not registered.`);const le=T.serialize?T.serialize(y,g):{};if(T.serialize){if(g&&le===g[g.length-1])throw new Error("statically serialized object won't survive transfer of $name property")}else{for(const De in y){if(!y.hasOwnProperty(De)||yl[W].omit.indexOf(De)>=0)continue;const ke=y[De];le[De]=yl[W].shallow.indexOf(De)>=0?ke:hl(ke,g)}y instanceof Error&&(le.message=y.message)}if(le.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==W&&(le.$name=W),le}throw new Error("can't serialize object of type "+typeof y)}function Cc(y){if(null==y||"boolean"==typeof y||"number"==typeof y||"string"==typeof y||y instanceof Boolean||y instanceof Number||y instanceof String||y instanceof Date||y instanceof RegExp||y instanceof Blob||nl(y)||$(y)||ArrayBuffer.isView(y)||y instanceof ImageData)return y;if(Array.isArray(y))return y.map(Cc);if("object"==typeof y){const g=y.$name||"Object";if(!yl[g])throw new Error(`can't deserialize unregistered class ${g}`);const{klass:T}=yl[g];if(!T)throw new Error(`can't deserialize unregistered class ${g}`);if(T.deserialize)return T.deserialize(y);const W=Object.create(T.prototype);for(const le of Object.keys(y)){if("$name"===le)continue;const De=y[le];W[le]=yl[g].shallow.indexOf(le)>=0?De:Cc(De)}return W}throw new Error("can't deserialize object of type "+typeof y)}class Zt{constructor(){this.first=!0}update(g,T){const W=Math.floor(g);return this.first?(this.first=!1,this.lastIntegerZoom=W,this.lastIntegerZoomTime=0,this.lastZoom=g,this.lastFloorZoom=W,!0):(this.lastFloorZoom>W?(this.lastIntegerZoom=W+1,this.lastIntegerZoomTime=T):this.lastFloorZoom<W&&(this.lastIntegerZoom=W,this.lastIntegerZoomTime=T),g!==this.lastZoom&&(this.lastZoom=g,this.lastFloorZoom=W,!0))}}const ri={"Latin-1 Supplement":y=>y>=128&&y<=255,Arabic:y=>y>=1536&&y<=1791,"Arabic Supplement":y=>y>=1872&&y<=1919,"Arabic Extended-A":y=>y>=2208&&y<=2303,"Hangul Jamo":y=>y>=4352&&y<=4607,"Unified Canadian Aboriginal Syllabics":y=>y>=5120&&y<=5759,Khmer:y=>y>=6016&&y<=6143,"Unified Canadian Aboriginal Syllabics Extended":y=>y>=6320&&y<=6399,"General Punctuation":y=>y>=8192&&y<=8303,"Letterlike Symbols":y=>y>=8448&&y<=8527,"Number Forms":y=>y>=8528&&y<=8591,"Miscellaneous Technical":y=>y>=8960&&y<=9215,"Control Pictures":y=>y>=9216&&y<=9279,"Optical Character Recognition":y=>y>=9280&&y<=9311,"Enclosed Alphanumerics":y=>y>=9312&&y<=9471,"Geometric Shapes":y=>y>=9632&&y<=9727,"Miscellaneous Symbols":y=>y>=9728&&y<=9983,"Miscellaneous Symbols and Arrows":y=>y>=11008&&y<=11263,"CJK Radicals Supplement":y=>y>=11904&&y<=12031,"Kangxi Radicals":y=>y>=12032&&y<=12255,"Ideographic Description Characters":y=>y>=12272&&y<=12287,"CJK Symbols and Punctuation":y=>y>=12288&&y<=12351,Hiragana:y=>y>=12352&&y<=12447,Katakana:y=>y>=12448&&y<=12543,Bopomofo:y=>y>=12544&&y<=12591,"Hangul Compatibility Jamo":y=>y>=12592&&y<=12687,Kanbun:y=>y>=12688&&y<=12703,"Bopomofo Extended":y=>y>=12704&&y<=12735,"CJK Strokes":y=>y>=12736&&y<=12783,"Katakana Phonetic Extensions":y=>y>=12784&&y<=12799,"Enclosed CJK Letters and Months":y=>y>=12800&&y<=13055,"CJK Compatibility":y=>y>=13056&&y<=13311,"CJK Unified Ideographs Extension A":y=>y>=13312&&y<=19903,"Yijing Hexagram Symbols":y=>y>=19904&&y<=19967,"CJK Unified Ideographs":y=>y>=19968&&y<=40959,"Yi Syllables":y=>y>=40960&&y<=42127,"Yi Radicals":y=>y>=42128&&y<=42191,"Hangul Jamo Extended-A":y=>y>=43360&&y<=43391,"Hangul Syllables":y=>y>=44032&&y<=55215,"Hangul Jamo Extended-B":y=>y>=55216&&y<=55295,"Private Use Area":y=>y>=57344&&y<=63743,"CJK Compatibility Ideographs":y=>y>=63744&&y<=64255,"Arabic Presentation Forms-A":y=>y>=64336&&y<=65023,"Vertical Forms":y=>y>=65040&&y<=65055,"CJK Compatibility Forms":y=>y>=65072&&y<=65103,"Small Form Variants":y=>y>=65104&&y<=65135,"Arabic Presentation Forms-B":y=>y>=65136&&y<=65279,"Halfwidth and Fullwidth Forms":y=>y>=65280&&y<=65519};function Mn(y){for(const g of y)if(pr(g.charCodeAt(0)))return!0;return!1}function mi(y){for(const g of y)if(!Mo(g.charCodeAt(0)))return!1;return!0}function Mo(y){return!(ri.Arabic(y)||ri["Arabic Supplement"](y)||ri["Arabic Extended-A"](y)||ri["Arabic Presentation Forms-A"](y)||ri["Arabic Presentation Forms-B"](y))}function pr(y){return!(746!==y&&747!==y&&(y<4352||!(ri["Bopomofo Extended"](y)||ri.Bopomofo(y)||ri["CJK Compatibility Forms"](y)&&!(y>=65097&&y<=65103)||ri["CJK Compatibility Ideographs"](y)||ri["CJK Compatibility"](y)||ri["CJK Radicals Supplement"](y)||ri["CJK Strokes"](y)||!(!ri["CJK Symbols and Punctuation"](y)||y>=12296&&y<=12305||y>=12308&&y<=12319||12336===y)||ri["CJK Unified Ideographs Extension A"](y)||ri["CJK Unified Ideographs"](y)||ri["Enclosed CJK Letters and Months"](y)||ri["Hangul Compatibility Jamo"](y)||ri["Hangul Jamo Extended-A"](y)||ri["Hangul Jamo Extended-B"](y)||ri["Hangul Jamo"](y)||ri["Hangul Syllables"](y)||ri.Hiragana(y)||ri["Ideographic Description Characters"](y)||ri.Kanbun(y)||ri["Kangxi Radicals"](y)||ri["Katakana Phonetic Extensions"](y)||ri.Katakana(y)&&12540!==y||!(!ri["Halfwidth and Fullwidth Forms"](y)||65288===y||65289===y||65293===y||y>=65306&&y<=65310||65339===y||65341===y||65343===y||y>=65371&&y<=65503||65507===y||y>=65512&&y<=65519)||!(!ri["Small Form Variants"](y)||y>=65112&&y<=65118||y>=65123&&y<=65126)||ri["Unified Canadian Aboriginal Syllabics"](y)||ri["Unified Canadian Aboriginal Syllabics Extended"](y)||ri["Vertical Forms"](y)||ri["Yijing Hexagram Symbols"](y)||ri["Yi Syllables"](y)||ri["Yi Radicals"](y))))}function Pr(y){return!(pr(y)||(g=y,ri["Latin-1 Supplement"](g)&&(167===g||169===g||174===g||177===g||188===g||189===g||190===g||215===g||247===g)||ri["General Punctuation"](g)&&(8214===g||8224===g||8225===g||8240===g||8241===g||8251===g||8252===g||8258===g||8263===g||8264===g||8265===g||8273===g)||ri["Letterlike Symbols"](g)||ri["Number Forms"](g)||ri["Miscellaneous Technical"](g)&&(g>=8960&&g<=8967||g>=8972&&g<=8991||g>=8996&&g<=9e3||9003===g||g>=9085&&g<=9114||g>=9150&&g<=9165||9167===g||g>=9169&&g<=9179||g>=9186&&g<=9215)||ri["Control Pictures"](g)&&9251!==g||ri["Optical Character Recognition"](g)||ri["Enclosed Alphanumerics"](g)||ri["Geometric Shapes"](g)||ri["Miscellaneous Symbols"](g)&&!(g>=9754&&g<=9759)||ri["Miscellaneous Symbols and Arrows"](g)&&(g>=11026&&g<=11055||g>=11088&&g<=11097||g>=11192&&g<=11243)||ri["CJK Symbols and Punctuation"](g)||ri.Katakana(g)||ri["Private Use Area"](g)||ri["CJK Compatibility Forms"](g)||ri["Small Form Variants"](g)||ri["Halfwidth and Fullwidth Forms"](g)||8734===g||8756===g||8757===g||g>=9984&&g<=10087||g>=10102&&g<=10131||65532===g||65533===g));var g}function xa(y){return y>=1424&&y<=2303||ri["Arabic Presentation Forms-A"](y)||ri["Arabic Presentation Forms-B"](y)}function tl(y,g){return!(!g&&xa(y)||y>=2304&&y<=3583||y>=3840&&y<=4255||ri.Khmer(y))}function Ls(y){for(const g of y)if(xa(g.charCodeAt(0)))return!0;return!1}const Ts="deferred",_s="loading",ul="loaded";let qs=null,Ks="unavailable",pl=null;const nc=function(y){y&&"string"==typeof y&&y.indexOf("NetworkError")>-1&&(Ks="error"),qs&&qs(y)};function Mi(){or.fire(new Vt("pluginStateChange",{pluginStatus:Ks,pluginURL:pl}))}const or=new Z,Ki=function(){return Ks},Ao=function(){if(Ks!==Ts||!pl)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Ks=_s,Mi(),pl&&We({url:pl},y=>{y?nc(y):(Ks=ul,Mi())})},Go={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>Ks===ul||null!=Go.applyArabicShaping,isLoading:()=>Ks===_s,setState(y){if(!K())throw new Error("Cannot set the state of the rtl-text-plugin when not in the web-worker context");Ks=y.pluginStatus,pl=y.pluginURL},isParsed(){if(!K())throw new Error("rtl-text-plugin is only parsed on the worker-threads");return null!=Go.applyArabicShaping&&null!=Go.processBidirectionalText&&null!=Go.processStyledBidirectionalText},getPluginURL(){if(!K())throw new Error("rtl-text-plugin url can only be queried from the worker threads");return pl}};class dr{constructor(g,T){this.zoom=g,T?(this.now=T.now,this.fadeDuration=T.fadeDuration,this.zoomHistory=T.zoomHistory,this.transition=T.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Zt,this.transition={})}isSupportedScript(g){return function(T,W){for(const le of T)if(!tl(le.charCodeAt(0),W))return!1;return!0}(g,Go.isLoaded())}crossFadingFactor(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){const g=this.zoom,T=g-Math.floor(g),W=this.crossFadingFactor();return g>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:T+(1-T)*W}:{fromScale:.5,toScale:1,t:1-(1-W)*T}}}class pn{constructor(g,T){this.property=g,this.value=T,this.expression=function(W,le){if(Pi(W))return new zn(W,le);if(Ss(W)){const De=Va(W,le);if("error"===De.result)throw new Error(De.value.map(ke=>`${ke.key}: ${ke.message}`).join(", "));return De.value}{let De=W;return"color"===le.type&&"string"==typeof W?De=po.parse(W):"padding"!==le.type||"number"!=typeof W&&!Array.isArray(W)?"variableAnchorOffsetCollection"===le.type&&Array.isArray(W)&&(De=On.parse(W)):De=Ft.parse(W),{kind:"constant",evaluate:()=>De}}}(void 0===T?g.specification.default:T,g.specification)}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}possiblyEvaluate(g,T,W){return this.property.possiblyEvaluate(this,g,T,W)}}class bo{constructor(g){this.property=g,this.value=new pn(g,void 0)}transitioned(g,T){return new Sn(this.property,this.value,T,O({},g.transition,this.transition),g.now)}untransitioned(){return new Sn(this.property,this.value,null,{},0)}}class nt{constructor(g){this._properties=g,this._values=Object.create(g.defaultTransitionablePropertyValues)}getValue(g){return ae(this._values[g].value.value)}setValue(g,T){Object.prototype.hasOwnProperty.call(this._values,g)||(this._values[g]=new bo(this._values[g].property)),this._values[g].value=new pn(this._values[g].property,null===T?void 0:ae(T))}getTransition(g){return ae(this._values[g].transition)}setTransition(g,T){Object.prototype.hasOwnProperty.call(this._values,g)||(this._values[g]=new bo(this._values[g].property)),this._values[g].transition=ae(T)||void 0}serialize(){const g={};for(const T of Object.keys(this._values)){const W=this.getValue(T);void 0!==W&&(g[T]=W);const le=this.getTransition(T);void 0!==le&&(g[`${T}-transition`]=le)}return g}transitioned(g,T){const W=new fi(this._properties);for(const le of Object.keys(this._values))W._values[le]=this._values[le].transitioned(g,T._values[le]);return W}untransitioned(){const g=new fi(this._properties);for(const T of Object.keys(this._values))g._values[T]=this._values[T].untransitioned();return g}}class Sn{constructor(g,T,W,le,De){this.property=g,this.value=T,this.begin=De+le.delay||0,this.end=this.begin+le.duration||0,g.specification.transition&&(le.delay||le.duration)&&(this.prior=W)}possiblyEvaluate(g,T,W){const le=g.now||0,De=this.value.possiblyEvaluate(g,T,W),ke=this.prior;if(ke){if(le>this.end)return this.prior=null,De;if(this.value.isDataDriven())return this.prior=null,De;if(le<this.begin)return ke.possiblyEvaluate(g,T,W);{const Ot=(le-this.begin)/(this.end-this.begin);return this.property.interpolate(ke.possiblyEvaluate(g,T,W),De,function(Nt){if(Nt<=0)return 0;if(Nt>=1)return 1;const gn=Nt*Nt,Xn=gn*Nt;return 4*(Nt<.5?Xn:3*(Nt-gn)+Xn-.75)}(Ot))}}return De}}class fi{constructor(g){this._properties=g,this._values=Object.create(g.defaultTransitioningPropertyValues)}possiblyEvaluate(g,T,W){const le=new Ar(this._properties);for(const De of Object.keys(this._values))le._values[De]=this._values[De].possiblyEvaluate(g,T,W);return le}hasTransition(){for(const g of Object.keys(this._values))if(this._values[g].prior)return!0;return!1}}class $i{constructor(g){this._properties=g,this._values=Object.create(g.defaultPropertyValues)}hasValue(g){return void 0!==this._values[g].value}getValue(g){return ae(this._values[g].value)}setValue(g,T){this._values[g]=new pn(this._values[g].property,null===T?void 0:ae(T))}serialize(){const g={};for(const T of Object.keys(this._values)){const W=this.getValue(T);void 0!==W&&(g[T]=W)}return g}possiblyEvaluate(g,T,W){const le=new Ar(this._properties);for(const De of Object.keys(this._values))le._values[De]=this._values[De].possiblyEvaluate(g,T,W);return le}}class No{constructor(g,T,W){this.property=g,this.value=T,this.parameters=W}isConstant(){return"constant"===this.value.kind}constantOr(g){return"constant"===this.value.kind?this.value.value:g}evaluate(g,T,W,le){return this.property.evaluate(this.value,this.parameters,g,T,W,le)}}class Ar{constructor(g){this._properties=g,this._values=Object.create(g.defaultPossiblyEvaluatedValues)}get(g){return this._values[g]}}class xr{constructor(g){this.specification=g}possiblyEvaluate(g,T){if(g.isDataDriven())throw new Error("Value should not be data driven");return g.expression.evaluate(T)}interpolate(g,T,W){const le=ls[this.specification.type];return le?le(g,T,W):g}}class Sr{constructor(g,T){this.specification=g,this.overrides=T}possiblyEvaluate(g,T,W,le){return new No(this,"constant"===g.expression.kind||"camera"===g.expression.kind?{kind:"constant",value:g.expression.evaluate(T,null,{},W,le)}:g.expression,T)}interpolate(g,T,W){if("constant"!==g.value.kind||"constant"!==T.value.kind)return g;if(void 0===g.value.value||void 0===T.value.value)return new No(this,{kind:"constant",value:void 0},g.parameters);const le=ls[this.specification.type];if(le){const De=le(g.value.value,T.value.value,W);return new No(this,{kind:"constant",value:De},g.parameters)}return g}evaluate(g,T,W,le,De,ke){return"constant"===g.kind?g.value:g.evaluate(T,W,le,De,ke)}}class ns extends Sr{possiblyEvaluate(g,T,W,le){if(void 0===g.value)return new No(this,{kind:"constant",value:void 0},T);if("constant"===g.expression.kind){const De=g.expression.evaluate(T,null,{},W,le),ke="resolvedImage"===g.property.specification.type&&"string"!=typeof De?De.name:De,Ot=this._calculate(ke,ke,ke,T);return new No(this,{kind:"constant",value:Ot},T)}if("camera"===g.expression.kind){const De=this._calculate(g.expression.evaluate({zoom:T.zoom-1}),g.expression.evaluate({zoom:T.zoom}),g.expression.evaluate({zoom:T.zoom+1}),T);return new No(this,{kind:"constant",value:De},T)}return new No(this,g.expression,T)}evaluate(g,T,W,le,De,ke){if("source"===g.kind){const Ot=g.evaluate(T,W,le,De,ke);return this._calculate(Ot,Ot,Ot,T)}return"composite"===g.kind?this._calculate(g.evaluate({zoom:Math.floor(T.zoom)-1},W,le),g.evaluate({zoom:Math.floor(T.zoom)},W,le),g.evaluate({zoom:Math.floor(T.zoom)+1},W,le),T):g.value}_calculate(g,T,W,le){return le.zoom>le.zoomHistory.lastIntegerZoom?{from:g,to:T}:{from:W,to:T}}interpolate(g){return g}}class Tl{constructor(g){this.specification=g}possiblyEvaluate(g,T,W,le){if(void 0!==g.value){if("constant"===g.expression.kind){const De=g.expression.evaluate(T,null,{},W,le);return this._calculate(De,De,De,T)}return this._calculate(g.expression.evaluate(new dr(Math.floor(T.zoom-1),T)),g.expression.evaluate(new dr(Math.floor(T.zoom),T)),g.expression.evaluate(new dr(Math.floor(T.zoom+1),T)),T)}}_calculate(g,T,W,le){return le.zoom>le.zoomHistory.lastIntegerZoom?{from:g,to:T}:{from:W,to:T}}interpolate(g){return g}}class Fs{constructor(g){this.specification=g}possiblyEvaluate(g,T,W,le){return!!g.expression.evaluate(T,null,{},W,le)}interpolate(){return!1}}class il{constructor(g){this.properties=g,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(const T in g){const W=g[T];W.specification.overridable&&this.overridableProperties.push(T);const le=this.defaultPropertyValues[T]=new pn(W,void 0),De=this.defaultTransitionablePropertyValues[T]=new bo(W);this.defaultTransitioningPropertyValues[T]=De.untransitioned(),this.defaultPossiblyEvaluatedValues[T]=le.possiblyEvaluate({})}}}Fr("DataDrivenProperty",Sr),Fr("DataConstantProperty",xr),Fr("CrossFadedDataDrivenProperty",ns),Fr("CrossFadedProperty",Tl),Fr("ColorRampProperty",Fs);const ac="-transition";class Nl extends Z{constructor(g,T){if(super(),this.id=g.id,this.type=g.type,this._featureFilter={filter:()=>!0,needGeometry:!1},"custom"!==g.type&&(this.metadata=g.metadata,this.minzoom=g.minzoom,this.maxzoom=g.maxzoom,"background"!==g.type&&(this.source=g.source,this.sourceLayer=g["source-layer"],this.filter=g.filter),T.layout&&(this._unevaluatedLayout=new $i(T.layout)),T.paint)){this._transitionablePaint=new nt(T.paint);for(const W in g.paint)this.setPaintProperty(W,g.paint[W],{validate:!1});for(const W in g.layout)this.setLayoutProperty(W,g.layout[W],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Ar(T.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(g){return"visibility"===g?this.visibility:this._unevaluatedLayout.getValue(g)}setLayoutProperty(g,T,W={}){null!=T&&this._validate(Js,`layers.${this.id}.layout.${g}`,g,T,W)||("visibility"!==g?this._unevaluatedLayout.setValue(g,T):this.visibility=T)}getPaintProperty(g){return g.endsWith(ac)?this._transitionablePaint.getTransition(g.slice(0,-11)):this._transitionablePaint.getValue(g)}setPaintProperty(g,T,W={}){if(null!=T&&this._validate(gr,`layers.${this.id}.paint.${g}`,g,T,W))return!1;if(g.endsWith(ac))return this._transitionablePaint.setTransition(g.slice(0,-11),T||void 0),!1;{const le=this._transitionablePaint._values[g],De="cross-faded-data-driven"===le.property.specification["property-type"],ke=le.value.isDataDriven(),Ot=le.value;this._transitionablePaint.setValue(g,T),this._handleSpecialPaintPropertyUpdate(g);const Nt=this._transitionablePaint._values[g].value;return Nt.isDataDriven()||ke||De||this._handleOverridablePaintPropertyUpdate(g,Ot,Nt)}}_handleSpecialPaintPropertyUpdate(g){}_handleOverridablePaintPropertyUpdate(g,T,W){return!1}isHidden(g){return!!(this.minzoom&&g<this.minzoom)||!!(this.maxzoom&&g>=this.maxzoom)||"none"===this.visibility}updateTransitions(g){this._transitioningPaint=this._transitionablePaint.transitioned(g,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(g,T){g.getCrossfadeParameters&&(this._crossfadeParameters=g.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(g,void 0,T)),this.paint=this._transitioningPaint.possiblyEvaluate(g,void 0,T)}serialize(){const g={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(g.layout=g.layout||{},g.layout.visibility=this.visibility),B(g,(T,W)=>!(void 0===T||"layout"===W&&!Object.keys(T).length||"paint"===W&&!Object.keys(T).length))}_validate(g,T,W,le,De={}){return(!De||!1!==De.validate)&&Ms(this,g.call(sl,{key:T,layerType:this.type,objectKey:W,value:le,styleSpec:Pt,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(const g in this.paint._values){const T=this.paint.get(g);if(T instanceof No&&Aa(T.property.specification)&&("source"===T.value.kind||"composite"===T.value.kind)&&T.value.isStateDependent)return!0}return!1}}const em={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class Kl{constructor(g,T){this._structArray=g,this._pos1=T*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class xl{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(g,T){return g._trim(),T&&(g.isTransferred=!0,T.push(g.arrayBuffer)),{length:g.length,arrayBuffer:g.arrayBuffer}}static deserialize(g){const T=Object.create(this.prototype);return T.arrayBuffer=g.arrayBuffer,T.length=g.length,T.capacity=g.arrayBuffer.byteLength/T.bytesPerElement,T._refreshViews(),T}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(g){this.reserve(g),this.length=g}reserve(g){if(g>this.capacity){this.capacity=Math.max(g,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const T=this.uint8;this._refreshViews(),T&&this.uint8.set(T)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function ll(y,g=1){let T=0,W=0;return{members:y.map(le=>{const De=em[le.type].BYTES_PER_ELEMENT,ke=T=tm(T,Math.max(g,De)),Ot=le.components||1;return W=Math.max(W,De),T+=De*Ot,{name:le.name,type:le.type,components:Ot,offset:ke}}),size:tm(T,Math.max(W,g)),alignment:g}}function tm(y,g){return Math.ceil(y/g)*g}class Nc extends xl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(g,T){const W=this.length;return this.resize(W+1),this.emplace(W,g,T)}emplace(g,T,W){const le=2*g;return this.int16[le+0]=T,this.int16[le+1]=W,g}}Nc.prototype.bytesPerElement=4,Fr("StructArrayLayout2i4",Nc);class Dd extends xl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(g,T,W){const le=this.length;return this.resize(le+1),this.emplace(le,g,T,W)}emplace(g,T,W,le){const De=3*g;return this.int16[De+0]=T,this.int16[De+1]=W,this.int16[De+2]=le,g}}Dd.prototype.bytesPerElement=6,Fr("StructArrayLayout3i6",Dd);class _c extends xl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(g,T,W,le){const De=this.length;return this.resize(De+1),this.emplace(De,g,T,W,le)}emplace(g,T,W,le,De){const ke=4*g;return this.int16[ke+0]=T,this.int16[ke+1]=W,this.int16[ke+2]=le,this.int16[ke+3]=De,g}}_c.prototype.bytesPerElement=8,Fr("StructArrayLayout4i8",_c);class wc extends xl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(g,T,W,le,De,ke){const Ot=this.length;return this.resize(Ot+1),this.emplace(Ot,g,T,W,le,De,ke)}emplace(g,T,W,le,De,ke,Ot){const Nt=6*g;return this.int16[Nt+0]=T,this.int16[Nt+1]=W,this.int16[Nt+2]=le,this.int16[Nt+3]=De,this.int16[Nt+4]=ke,this.int16[Nt+5]=Ot,g}}wc.prototype.bytesPerElement=12,Fr("StructArrayLayout2i4i12",wc);class nm extends xl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(g,T,W,le,De,ke){const Ot=this.length;return this.resize(Ot+1),this.emplace(Ot,g,T,W,le,De,ke)}emplace(g,T,W,le,De,ke,Ot){const Nt=4*g,gn=8*g;return this.int16[Nt+0]=T,this.int16[Nt+1]=W,this.uint8[gn+4]=le,this.uint8[gn+5]=De,this.uint8[gn+6]=ke,this.uint8[gn+7]=Ot,g}}nm.prototype.bytesPerElement=8,Fr("StructArrayLayout2i4ub8",nm);class Id extends xl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(g,T){const W=this.length;return this.resize(W+1),this.emplace(W,g,T)}emplace(g,T,W){const le=2*g;return this.float32[le+0]=T,this.float32[le+1]=W,g}}Id.prototype.bytesPerElement=8,Fr("StructArrayLayout2f8",Id);class Ns extends xl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(g,T,W,le,De,ke,Ot,Nt,gn,Xn){const ci=this.length;return this.resize(ci+1),this.emplace(ci,g,T,W,le,De,ke,Ot,Nt,gn,Xn)}emplace(g,T,W,le,De,ke,Ot,Nt,gn,Xn,ci){const pi=10*g;return this.uint16[pi+0]=T,this.uint16[pi+1]=W,this.uint16[pi+2]=le,this.uint16[pi+3]=De,this.uint16[pi+4]=ke,this.uint16[pi+5]=Ot,this.uint16[pi+6]=Nt,this.uint16[pi+7]=gn,this.uint16[pi+8]=Xn,this.uint16[pi+9]=ci,g}}Ns.prototype.bytesPerElement=20,Fr("StructArrayLayout10ui20",Ns);class Uc extends xl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(g,T,W,le,De,ke,Ot,Nt,gn,Xn,ci,pi){const Di=this.length;return this.resize(Di+1),this.emplace(Di,g,T,W,le,De,ke,Ot,Nt,gn,Xn,ci,pi)}emplace(g,T,W,le,De,ke,Ot,Nt,gn,Xn,ci,pi,Di){const Ni=12*g;return this.int16[Ni+0]=T,this.int16[Ni+1]=W,this.int16[Ni+2]=le,this.int16[Ni+3]=De,this.uint16[Ni+4]=ke,this.uint16[Ni+5]=Ot,this.uint16[Ni+6]=Nt,this.uint16[Ni+7]=gn,this.int16[Ni+8]=Xn,this.int16[Ni+9]=ci,this.int16[Ni+10]=pi,this.int16[Ni+11]=Di,g}}Uc.prototype.bytesPerElement=24,Fr("StructArrayLayout4i4ui4i24",Uc);class dn extends xl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(g,T,W){const le=this.length;return this.resize(le+1),this.emplace(le,g,T,W)}emplace(g,T,W,le){const De=3*g;return this.float32[De+0]=T,this.float32[De+1]=W,this.float32[De+2]=le,g}}dn.prototype.bytesPerElement=12,Fr("StructArrayLayout3f12",dn);class Mr extends xl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(g){const T=this.length;return this.resize(T+1),this.emplace(T,g)}emplace(g,T){return this.uint32[1*g+0]=T,g}}Mr.prototype.bytesPerElement=4,Fr("StructArrayLayout1ul4",Mr);class mn extends xl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(g,T,W,le,De,ke,Ot,Nt,gn){const Xn=this.length;return this.resize(Xn+1),this.emplace(Xn,g,T,W,le,De,ke,Ot,Nt,gn)}emplace(g,T,W,le,De,ke,Ot,Nt,gn,Xn){const ci=10*g,pi=5*g;return this.int16[ci+0]=T,this.int16[ci+1]=W,this.int16[ci+2]=le,this.int16[ci+3]=De,this.int16[ci+4]=ke,this.int16[ci+5]=Ot,this.uint32[pi+3]=Nt,this.uint16[ci+8]=gn,this.uint16[ci+9]=Xn,g}}mn.prototype.bytesPerElement=20,Fr("StructArrayLayout6i1ul2ui20",mn);class Nn extends xl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(g,T,W,le,De,ke){const Ot=this.length;return this.resize(Ot+1),this.emplace(Ot,g,T,W,le,De,ke)}emplace(g,T,W,le,De,ke,Ot){const Nt=6*g;return this.int16[Nt+0]=T,this.int16[Nt+1]=W,this.int16[Nt+2]=le,this.int16[Nt+3]=De,this.int16[Nt+4]=ke,this.int16[Nt+5]=Ot,g}}Nn.prototype.bytesPerElement=12,Fr("StructArrayLayout2i2i2i12",Nn);class Ci extends xl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(g,T,W,le,De){const ke=this.length;return this.resize(ke+1),this.emplace(ke,g,T,W,le,De)}emplace(g,T,W,le,De,ke){const Ot=4*g,Nt=8*g;return this.float32[Ot+0]=T,this.float32[Ot+1]=W,this.float32[Ot+2]=le,this.int16[Nt+6]=De,this.int16[Nt+7]=ke,g}}Ci.prototype.bytesPerElement=16,Fr("StructArrayLayout2f1f2i16",Ci);class Io extends xl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(g,T,W,le){const De=this.length;return this.resize(De+1),this.emplace(De,g,T,W,le)}emplace(g,T,W,le,De){const ke=12*g,Ot=3*g;return this.uint8[ke+0]=T,this.uint8[ke+1]=W,this.float32[Ot+1]=le,this.float32[Ot+2]=De,g}}Io.prototype.bytesPerElement=12,Fr("StructArrayLayout2ub2f12",Io);class cr extends xl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(g,T,W){const le=this.length;return this.resize(le+1),this.emplace(le,g,T,W)}emplace(g,T,W,le){const De=3*g;return this.uint16[De+0]=T,this.uint16[De+1]=W,this.uint16[De+2]=le,g}}cr.prototype.bytesPerElement=6,Fr("StructArrayLayout3ui6",cr);class ra extends xl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(g,T,W,le,De,ke,Ot,Nt,gn,Xn,ci,pi,Di,Ni,lo,yo,So){const Ko=this.length;return this.resize(Ko+1),this.emplace(Ko,g,T,W,le,De,ke,Ot,Nt,gn,Xn,ci,pi,Di,Ni,lo,yo,So)}emplace(g,T,W,le,De,ke,Ot,Nt,gn,Xn,ci,pi,Di,Ni,lo,yo,So,Ko){const Uo=24*g,Yo=12*g,fr=48*g;return this.int16[Uo+0]=T,this.int16[Uo+1]=W,this.uint16[Uo+2]=le,this.uint16[Uo+3]=De,this.uint32[Yo+2]=ke,this.uint32[Yo+3]=Ot,this.uint32[Yo+4]=Nt,this.uint16[Uo+10]=gn,this.uint16[Uo+11]=Xn,this.uint16[Uo+12]=ci,this.float32[Yo+7]=pi,this.float32[Yo+8]=Di,this.uint8[fr+36]=Ni,this.uint8[fr+37]=lo,this.uint8[fr+38]=yo,this.uint32[Yo+10]=So,this.int16[Uo+22]=Ko,g}}ra.prototype.bytesPerElement=48,Fr("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",ra);class $a extends xl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(g,T,W,le,De,ke,Ot,Nt,gn,Xn,ci,pi,Di,Ni,lo,yo,So,Ko,Uo,Yo,fr,Ur,sa,Ya,ua,ca,pa,Xa){const Ma=this.length;return this.resize(Ma+1),this.emplace(Ma,g,T,W,le,De,ke,Ot,Nt,gn,Xn,ci,pi,Di,Ni,lo,yo,So,Ko,Uo,Yo,fr,Ur,sa,Ya,ua,ca,pa,Xa)}emplace(g,T,W,le,De,ke,Ot,Nt,gn,Xn,ci,pi,Di,Ni,lo,yo,So,Ko,Uo,Yo,fr,Ur,sa,Ya,ua,ca,pa,Xa,Ma){const ea=32*g,rs=16*g;return this.int16[ea+0]=T,this.int16[ea+1]=W,this.int16[ea+2]=le,this.int16[ea+3]=De,this.int16[ea+4]=ke,this.int16[ea+5]=Ot,this.int16[ea+6]=Nt,this.int16[ea+7]=gn,this.uint16[ea+8]=Xn,this.uint16[ea+9]=ci,this.uint16[ea+10]=pi,this.uint16[ea+11]=Di,this.uint16[ea+12]=Ni,this.uint16[ea+13]=lo,this.uint16[ea+14]=yo,this.uint16[ea+15]=So,this.uint16[ea+16]=Ko,this.uint16[ea+17]=Uo,this.uint16[ea+18]=Yo,this.uint16[ea+19]=fr,this.uint16[ea+20]=Ur,this.uint16[ea+21]=sa,this.uint16[ea+22]=Ya,this.uint32[rs+12]=ua,this.float32[rs+13]=ca,this.float32[rs+14]=pa,this.uint16[ea+30]=Xa,this.uint16[ea+31]=Ma,g}}$a.prototype.bytesPerElement=64,Fr("StructArrayLayout8i15ui1ul2f2ui64",$a);class xe extends xl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(g){const T=this.length;return this.resize(T+1),this.emplace(T,g)}emplace(g,T){return this.float32[1*g+0]=T,g}}xe.prototype.bytesPerElement=4,Fr("StructArrayLayout1f4",xe);class h extends xl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(g,T,W){const le=this.length;return this.resize(le+1),this.emplace(le,g,T,W)}emplace(g,T,W,le){const De=3*g;return this.uint16[6*g+0]=T,this.float32[De+1]=W,this.float32[De+2]=le,g}}h.prototype.bytesPerElement=12,Fr("StructArrayLayout1ui2f12",h);class k extends xl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(g,T,W){const le=this.length;return this.resize(le+1),this.emplace(le,g,T,W)}emplace(g,T,W,le){const De=4*g;return this.uint32[2*g+0]=T,this.uint16[De+2]=W,this.uint16[De+3]=le,g}}k.prototype.bytesPerElement=8,Fr("StructArrayLayout1ul2ui8",k);class se extends xl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(g,T){const W=this.length;return this.resize(W+1),this.emplace(W,g,T)}emplace(g,T,W){const le=2*g;return this.uint16[le+0]=T,this.uint16[le+1]=W,g}}se.prototype.bytesPerElement=4,Fr("StructArrayLayout2ui4",se);class de extends xl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(g){const T=this.length;return this.resize(T+1),this.emplace(T,g)}emplace(g,T){return this.uint16[1*g+0]=T,g}}de.prototype.bytesPerElement=2,Fr("StructArrayLayout1ui2",de);class Ae extends xl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(g,T,W,le){const De=this.length;return this.resize(De+1),this.emplace(De,g,T,W,le)}emplace(g,T,W,le,De){const ke=4*g;return this.float32[ke+0]=T,this.float32[ke+1]=W,this.float32[ke+2]=le,this.float32[ke+3]=De,g}}Ae.prototype.bytesPerElement=16,Fr("StructArrayLayout4f16",Ae);class Ct extends Kl{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new c(this.anchorPointX,this.anchorPointY)}}Ct.prototype.size=20;class wt extends mn{get(g){return new Ct(this,g)}}Fr("CollisionBoxArray",wt);class Mt extends Kl{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(g){this._structArray.uint8[this._pos1+37]=g}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(g){this._structArray.uint8[this._pos1+38]=g}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(g){this._structArray.uint32[this._pos4+10]=g}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}Mt.prototype.size=48;class fn extends ra{get(g){return new Mt(this,g)}}Fr("PlacedSymbolArray",fn);class Qn extends Kl{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(g){this._structArray.uint32[this._pos4+12]=g}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}}Qn.prototype.size=64;class ei extends $a{get(g){return new Qn(this,g)}}Fr("SymbolInstanceArray",ei);class bi extends xe{getoffsetX(g){return this.float32[1*g+0]}}Fr("GlyphOffsetArray",bi);class zi extends Dd{getx(g){return this.int16[3*g+0]}gety(g){return this.int16[3*g+1]}gettileUnitDistanceFromAnchor(g){return this.int16[3*g+2]}}Fr("SymbolLineVertexArray",zi);class Be extends Kl{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}}Be.prototype.size=12;class pt extends h{get(g){return new Be(this,g)}}Fr("TextAnchorOffsetArray",pt);class Ye extends Kl{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}Ye.prototype.size=8;class ut extends k{get(g){return new Ye(this,g)}}Fr("FeatureIndexArray",ut);class Kt extends Nc{}class en extends Nc{}class qn extends Nc{}class hi extends wc{}class gi extends nm{}class ko extends Id{}class Wo extends Ns{}class tr extends Uc{}class br extends dn{}class fa extends Mr{}class ga extends Nn{}class $r extends Io{}class Rr extends cr{}class Xr extends se{}const Es=ll([{name:"a_pos",components:2,type:"Int16"}],4),{members:Ys}=Es;class qa{constructor(g=[]){this.segments=g}prepareSegment(g,T,W,le){let De=this.segments[this.segments.length-1];return g>qa.MAX_VERTEX_ARRAY_LENGTH&&q(`Max vertices per segment is ${qa.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${g}`),(!De||De.vertexLength+g>qa.MAX_VERTEX_ARRAY_LENGTH||De.sortKey!==le)&&(De={vertexOffset:T.length,primitiveOffset:W.length,vertexLength:0,primitiveLength:0},void 0!==le&&(De.sortKey=le),this.segments.push(De)),De}get(){return this.segments}destroy(){for(const g of this.segments)for(const T in g.vaos)g.vaos[T].destroy()}static simpleSegment(g,T,W,le){return new qa([{vertexOffset:g,primitiveOffset:T,vertexLength:W,primitiveLength:le,vaos:{},sortKey:0}])}}function Qs(y,g){return 256*(y=I(Math.floor(y),0,255))+I(Math.floor(g),0,255)}qa.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Fr("SegmentVector",qa);const ic=ll([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]);var wl={exports:{}},Wc=function(y,g){var T,W,le,De,ke,Ot,Nt,gn;for(W=y.length-(T=3&y.length),le=g,ke=3432918353,Ot=461845907,gn=0;gn<W;)Nt=255&y.charCodeAt(gn)|(255&y.charCodeAt(++gn))<<8|(255&y.charCodeAt(++gn))<<16|(255&y.charCodeAt(++gn))<<24,++gn,le=27492+(65535&(De=5*(65535&(le=(le^=Nt=(65535&(Nt=(Nt=(65535&Nt)*ke+(((Nt>>>16)*ke&65535)<<16)&4294967295)<<15|Nt>>>17))*Ot+(((Nt>>>16)*Ot&65535)<<16)&4294967295)<<13|le>>>19))+((5*(le>>>16)&65535)<<16)&4294967295))+((58964+(De>>>16)&65535)<<16);switch(Nt=0,T){case 3:Nt^=(255&y.charCodeAt(gn+2))<<16;case 2:Nt^=(255&y.charCodeAt(gn+1))<<8;case 1:le^=Nt=(65535&(Nt=(Nt=(65535&(Nt^=255&y.charCodeAt(gn)))*ke+(((Nt>>>16)*ke&65535)<<16)&4294967295)<<15|Nt>>>17))*Ot+(((Nt>>>16)*Ot&65535)<<16)&4294967295}return le^=y.length,le=2246822507*(65535&(le^=le>>>16))+((2246822507*(le>>>16)&65535)<<16)&4294967295,le=3266489909*(65535&(le^=le>>>13))+((3266489909*(le>>>16)&65535)<<16)&4294967295,(le^=le>>>16)>>>0},im=function(y,g){for(var T,W=y.length,le=g^W,De=0;W>=4;)T=1540483477*(65535&(T=255&y.charCodeAt(De)|(255&y.charCodeAt(++De))<<8|(255&y.charCodeAt(++De))<<16|(255&y.charCodeAt(++De))<<24))+((1540483477*(T>>>16)&65535)<<16),le=1540483477*(65535&le)+((1540483477*(le>>>16)&65535)<<16)^(T=1540483477*(65535&(T^=T>>>24))+((1540483477*(T>>>16)&65535)<<16)),W-=4,++De;switch(W){case 3:le^=(255&y.charCodeAt(De+2))<<16;case 2:le^=(255&y.charCodeAt(De+1))<<8;case 1:le=1540483477*(65535&(le^=255&y.charCodeAt(De)))+((1540483477*(le>>>16)&65535)<<16)}return le=1540483477*(65535&(le^=le>>>13))+((1540483477*(le>>>16)&65535)<<16),(le^=le>>>15)>>>0};wl.exports=Wc,wl.exports.murmur3=Wc,wl.exports.murmur2=im;var Vl=i(wl.exports);class zc{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(g,T,W,le){this.ids.push(Il(g)),this.positions.push(T,W,le)}getPositions(g){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");const T=Il(g);let W=0,le=this.ids.length-1;for(;W<le;){const ke=W+le>>1;this.ids[ke]>=T?le=ke:W=ke+1}const De=[];for(;this.ids[W]===T;)De.push({index:this.positions[3*W],start:this.positions[3*W+1],end:this.positions[3*W+2]}),W++;return De}static serialize(g,T){const W=new Float64Array(g.ids),le=new Uint32Array(g.positions);return Bc(W,le,0,W.length-1),T&&T.push(W.buffer,le.buffer),{ids:W,positions:le}}static deserialize(g){const T=new zc;return T.ids=g.ids,T.positions=g.positions,T.indexed=!0,T}}function Il(y){const g=+y;return!isNaN(g)&&g<=Number.MAX_SAFE_INTEGER?g:Vl(String(y))}function Bc(y,g,T,W){for(;T<W;){const le=y[T+W>>1];let De=T-1,ke=W+1;for(;;){do{De++}while(y[De]<le);do{ke--}while(y[ke]>le);if(De>=ke)break;Ac(y,De,ke),Ac(g,3*De,3*ke),Ac(g,3*De+1,3*ke+1),Ac(g,3*De+2,3*ke+2)}ke-T<W-ke?(Bc(y,g,T,ke),T=ke+1):(Bc(y,g,ke+1,W),W=ke)}}function Ac(y,g,T){const W=y[g];y[g]=y[T],y[T]=W}Fr("FeaturePositionMap",zc);class Xl{constructor(g,T){this.gl=g.gl,this.location=T}}class uc extends Xl{constructor(g,T){super(g,T),this.current=0}set(g){this.current!==g&&(this.current=g,this.gl.uniform1f(this.location,g))}}class Oc extends Xl{constructor(g,T){super(g,T),this.current=[0,0,0,0]}set(g){g[0]===this.current[0]&&g[1]===this.current[1]&&g[2]===this.current[2]&&g[3]===this.current[3]||(this.current=g,this.gl.uniform4f(this.location,g[0],g[1],g[2],g[3]))}}class jc extends Xl{constructor(g,T){super(g,T),this.current=po.transparent}set(g){g.r===this.current.r&&g.g===this.current.g&&g.b===this.current.b&&g.a===this.current.a||(this.current=g,this.gl.uniform4f(this.location,g.r,g.g,g.b,g.a))}}const pc=new Float32Array(16);function Ul(y){return[Qs(255*y.r,255*y.g),Qs(255*y.b,255*y.a)]}class Xc{constructor(g,T,W){this.value=g,this.uniformNames=T.map(le=>`u_${le}`),this.type=W}setUniform(g,T,W){g.set(W.constantOr(this.value))}getBinding(g,T,W){return"color"===this.type?new jc(g,T):new uc(g,T)}}class ec{constructor(g,T){this.uniformNames=T.map(W=>`u_${W}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(g,T){this.pixelRatioFrom=T.pixelRatio,this.pixelRatioTo=g.pixelRatio,this.patternFrom=T.tlbr,this.patternTo=g.tlbr}setUniform(g,T,W,le){const De="u_pattern_to"===le?this.patternTo:"u_pattern_from"===le?this.patternFrom:"u_pixel_ratio_to"===le?this.pixelRatioTo:"u_pixel_ratio_from"===le?this.pixelRatioFrom:null;De&&g.set(De)}getBinding(g,T,W){return"u_pattern"===W.substr(0,9)?new Oc(g,T):new uc(g,T)}}class vd{constructor(g,T,W,le){this.expression=g,this.type=W,this.maxValue=0,this.paintVertexAttributes=T.map(De=>({name:`a_${De}`,type:"Float32",components:"color"===W?2:1,offset:0})),this.paintVertexArray=new le}populatePaintArray(g,T,W,le,De){const ke=this.paintVertexArray.length,Ot=this.expression.evaluate(new dr(0),T,{},le,[],De);this.paintVertexArray.resize(g),this._setPaintValue(ke,g,Ot)}updatePaintArray(g,T,W,le){const De=this.expression.evaluate({zoom:0},W,le);this._setPaintValue(g,T,De)}_setPaintValue(g,T,W){if("color"===this.type){const le=Ul(W);for(let De=g;De<T;De++)this.paintVertexArray.emplace(De,le[0],le[1])}else{for(let le=g;le<T;le++)this.paintVertexArray.emplace(le,W);this.maxValue=Math.max(this.maxValue,Math.abs(W))}}upload(g){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=g.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class bd{constructor(g,T,W,le,De,ke){this.expression=g,this.uniformNames=T.map(Ot=>`u_${Ot}_t`),this.type=W,this.useIntegerZoom=le,this.zoom=De,this.maxValue=0,this.paintVertexAttributes=T.map(Ot=>({name:`a_${Ot}`,type:"Float32",components:"color"===W?4:2,offset:0})),this.paintVertexArray=new ke}populatePaintArray(g,T,W,le,De){const ke=this.expression.evaluate(new dr(this.zoom),T,{},le,[],De),Ot=this.expression.evaluate(new dr(this.zoom+1),T,{},le,[],De),Nt=this.paintVertexArray.length;this.paintVertexArray.resize(g),this._setPaintValue(Nt,g,ke,Ot)}updatePaintArray(g,T,W,le){const De=this.expression.evaluate({zoom:this.zoom},W,le),ke=this.expression.evaluate({zoom:this.zoom+1},W,le);this._setPaintValue(g,T,De,ke)}_setPaintValue(g,T,W,le){if("color"===this.type){const De=Ul(W),ke=Ul(le);for(let Ot=g;Ot<T;Ot++)this.paintVertexArray.emplace(Ot,De[0],De[1],ke[0],ke[1])}else{for(let De=g;De<T;De++)this.paintVertexArray.emplace(De,W,le);this.maxValue=Math.max(this.maxValue,Math.abs(W),Math.abs(le))}}upload(g){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=g.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}setUniform(g,T){const W=this.useIntegerZoom?Math.floor(T.zoom):T.zoom,le=I(this.expression.interpolationFactor(W,this.zoom,this.zoom+1),0,1);g.set(le)}getBinding(g,T,W){return new uc(g,T)}}class Sd{constructor(g,T,W,le,De,ke){this.expression=g,this.type=T,this.useIntegerZoom=W,this.zoom=le,this.layerId=ke,this.zoomInPaintVertexArray=new De,this.zoomOutPaintVertexArray=new De}populatePaintArray(g,T,W){const le=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(g),this.zoomOutPaintVertexArray.resize(g),this._setPaintValues(le,g,T.patterns&&T.patterns[this.layerId],W)}updatePaintArray(g,T,W,le,De){this._setPaintValues(g,T,W.patterns&&W.patterns[this.layerId],De)}_setPaintValues(g,T,W,le){if(!le||!W)return;const{min:De,mid:ke,max:Ot}=W,Nt=le[De],gn=le[ke],Xn=le[Ot];if(Nt&&gn&&Xn)for(let ci=g;ci<T;ci++)this.zoomInPaintVertexArray.emplace(ci,gn.tl[0],gn.tl[1],gn.br[0],gn.br[1],Nt.tl[0],Nt.tl[1],Nt.br[0],Nt.br[1],gn.pixelRatio,Nt.pixelRatio),this.zoomOutPaintVertexArray.emplace(ci,gn.tl[0],gn.tl[1],gn.br[0],gn.br[1],Xn.tl[0],Xn.tl[1],Xn.br[0],Xn.br[1],gn.pixelRatio,Xn.pixelRatio)}upload(g){this.zoomInPaintVertexArray&&this.zoomInPaintVertexArray.arrayBuffer&&this.zoomOutPaintVertexArray&&this.zoomOutPaintVertexArray.arrayBuffer&&(this.zoomInPaintVertexBuffer=g.createVertexBuffer(this.zoomInPaintVertexArray,ic.members,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=g.createVertexBuffer(this.zoomOutPaintVertexArray,ic.members,this.expression.isStateDependent))}destroy(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()}}class Ru{constructor(g,T,W){this.binders={},this._buffers=[];const le=[];for(const De in g.paint._values){if(!W(De))continue;const ke=g.paint.get(De);if(!(ke instanceof No&&Aa(ke.property.specification)))continue;const Ot=hu(De,g.type),Nt=ke.value,gn=ke.property.specification.type,Xn=ke.property.useIntegerZoom,ci=ke.property.specification["property-type"],pi="cross-faded"===ci||"cross-faded-data-driven"===ci;if("constant"===Nt.kind)this.binders[De]=pi?new ec(Nt.value,Ot):new Xc(Nt.value,Ot,gn),le.push(`/u_${De}`);else if("source"===Nt.kind||pi){const Di=Fd(De,gn,"source");this.binders[De]=pi?new Sd(Nt,gn,Xn,T,Di,g.id):new vd(Nt,Ot,gn,Di),le.push(`/a_${De}`)}else{const Di=Fd(De,gn,"composite");this.binders[De]=new bd(Nt,Ot,gn,Xn,T,Di),le.push(`/z_${De}`)}}this.cacheKey=le.sort().join("")}getMaxValue(g){const T=this.binders[g];return T instanceof vd||T instanceof bd?T.maxValue:0}populatePaintArrays(g,T,W,le,De){for(const ke in this.binders){const Ot=this.binders[ke];(Ot instanceof vd||Ot instanceof bd||Ot instanceof Sd)&&Ot.populatePaintArray(g,T,W,le,De)}}setConstantPatternPositions(g,T){for(const W in this.binders){const le=this.binders[W];le instanceof ec&&le.setConstantPatternPositions(g,T)}}updatePaintArrays(g,T,W,le,De){let ke=!1;for(const Ot in g){const Nt=T.getPositions(Ot);for(const gn of Nt){const Xn=W.feature(gn.index);for(const ci in this.binders){const pi=this.binders[ci];if((pi instanceof vd||pi instanceof bd||pi instanceof Sd)&&!0===pi.expression.isStateDependent){const Di=le.paint.get(ci);pi.expression=Di.value,pi.updatePaintArray(gn.start,gn.end,Xn,g[Ot],De),ke=!0}}}}return ke}defines(){const g=[];for(const T in this.binders){const W=this.binders[T];(W instanceof Xc||W instanceof ec)&&g.push(...W.uniformNames.map(le=>`#define HAS_UNIFORM_${le}`))}return g}getBinderAttributes(){const g=[];for(const T in this.binders){const W=this.binders[T];if(W instanceof vd||W instanceof bd)for(let le=0;le<W.paintVertexAttributes.length;le++)g.push(W.paintVertexAttributes[le].name);else if(W instanceof Sd)for(let le=0;le<ic.members.length;le++)g.push(ic.members[le].name)}return g}getBinderUniforms(){const g=[];for(const T in this.binders){const W=this.binders[T];if(W instanceof Xc||W instanceof ec||W instanceof bd)for(const le of W.uniformNames)g.push(le)}return g}getPaintVertexBuffers(){return this._buffers}getUniforms(g,T){const W=[];for(const le in this.binders){const De=this.binders[le];if(De instanceof Xc||De instanceof ec||De instanceof bd)for(const ke of De.uniformNames)if(T[ke]){const Ot=De.getBinding(g,T[ke],ke);W.push({name:ke,property:le,binding:Ot})}}return W}setUniforms(g,T,W,le){for(const{name:De,property:ke,binding:Ot}of T)this.binders[ke].setUniform(Ot,le,W.get(ke),De)}updatePaintBuffers(g){this._buffers=[];for(const T in this.binders){const W=this.binders[T];if(g&&W instanceof Sd){const le=2===g.fromScale?W.zoomInPaintVertexBuffer:W.zoomOutPaintVertexBuffer;le&&this._buffers.push(le)}else(W instanceof vd||W instanceof bd)&&W.paintVertexBuffer&&this._buffers.push(W.paintVertexBuffer)}}upload(g){for(const T in this.binders){const W=this.binders[T];(W instanceof vd||W instanceof bd||W instanceof Sd)&&W.upload(g)}this.updatePaintBuffers()}destroy(){for(const g in this.binders){const T=this.binders[g];(T instanceof vd||T instanceof bd||T instanceof Sd)&&T.destroy()}}}class mm{constructor(g,T,W=(()=>!0)){this.programConfigurations={};for(const le of g)this.programConfigurations[le.id]=new Ru(le,T,W);this.needsUpload=!1,this._featureMap=new zc,this._bufferOffset=0}populatePaintArrays(g,T,W,le,De,ke){for(const Ot in this.programConfigurations)this.programConfigurations[Ot].populatePaintArrays(g,T,le,De,ke);void 0!==T.id&&this._featureMap.add(T.id,W,this._bufferOffset,g),this._bufferOffset=g,this.needsUpload=!0}updatePaintArrays(g,T,W,le){for(const De of W)this.needsUpload=this.programConfigurations[De.id].updatePaintArrays(g,this._featureMap,T,De,le)||this.needsUpload}get(g){return this.programConfigurations[g]}upload(g){if(this.needsUpload){for(const T in this.programConfigurations)this.programConfigurations[T].upload(g);this.needsUpload=!1}}destroy(){for(const g in this.programConfigurations)this.programConfigurations[g].destroy()}}function hu(y,g){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[y]||[y.replace(`${g}-`,"").replace(/-/g,"_")]}function Fd(y,g,T){const le={"line-pattern":{source:Wo,composite:Wo},"fill-pattern":{source:Wo,composite:Wo},"fill-extrusion-pattern":{source:Wo,composite:Wo}}[y];return le&&le[T]||{color:{source:Id,composite:Ae},number:{source:xe,composite:Id}}[g][T]}Fr("ConstantBinder",Xc),Fr("CrossFadedConstantBinder",ec),Fr("SourceExpressionBinder",vd),Fr("CrossFadedCompositeBinder",Sd),Fr("CompositeExpressionBinder",bd),Fr("ProgramConfiguration",Ru,{omit:["_buffers"]}),Fr("ProgramConfigurationSet",mm);const tc=8192,Km=Math.pow(2,14)-1,um=-Km-1;function ad(y){const g=tc/y.extent,T=y.loadGeometry();for(let W=0;W<T.length;W++){const le=T[W];for(let De=0;De<le.length;De++){const ke=le[De],Ot=Math.round(ke.x*g),Nt=Math.round(ke.y*g);ke.x=I(Ot,um,Km),ke.y=I(Nt,um,Km),(Ot<ke.x||Ot>ke.x+1||Nt<ke.y||Nt>ke.y+1)&&q("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return T}function Zc(y,g){return{type:y.type,id:y.id,properties:y.properties,geometry:g?ad(y):[]}}function Cd(y,g,T,W,le){y.emplaceBack(2*g+(W+1)/2,2*T+(le+1)/2)}class Rm{constructor(g){this.zoom=g.zoom,this.overscaling=g.overscaling,this.layers=g.layers,this.layerIds=this.layers.map(T=>T.id),this.index=g.index,this.hasPattern=!1,this.layoutVertexArray=new en,this.indexArray=new Rr,this.segments=new qa,this.programConfigurations=new mm(g.layers,g.zoom),this.stateDependentLayerIds=this.layers.filter(T=>T.isStateDependent()).map(T=>T.id)}populate(g,T,W){const le=this.layers[0],De=[];let ke=null,Ot=!1;"circle"===le.type&&(ke=le.layout.get("circle-sort-key"),Ot=!ke.isConstant());for(const{feature:Nt,id:gn,index:Xn,sourceLayerIndex:ci}of g){const pi=this.layers[0]._featureFilter.needGeometry,Di=Zc(Nt,pi);if(!this.layers[0]._featureFilter.filter(new dr(this.zoom),Di,W))continue;const Ni=Ot?ke.evaluate(Di,{},W):void 0,lo={id:gn,properties:Nt.properties,type:Nt.type,sourceLayerIndex:ci,index:Xn,geometry:pi?Di.geometry:ad(Nt),patterns:{},sortKey:Ni};De.push(lo)}Ot&&De.sort((Nt,gn)=>Nt.sortKey-gn.sortKey);for(const Nt of De){const{geometry:gn,index:Xn,sourceLayerIndex:ci}=Nt,pi=g[Xn].feature;this.addFeature(Nt,gn,Xn,W),T.featureIndex.insert(pi,gn,Xn,ci,this.index)}}update(g,T,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(g,T,this.stateDependentLayers,W)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(g){this.uploaded||(this.layoutVertexBuffer=g.createVertexBuffer(this.layoutVertexArray,Ys),this.indexBuffer=g.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(g),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(g,T,W,le){for(const De of T)for(const ke of De){const Ot=ke.x,Nt=ke.y;if(Ot<0||Ot>=tc||Nt<0||Nt>=tc)continue;const gn=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,g.sortKey),Xn=gn.vertexLength;Cd(this.layoutVertexArray,Ot,Nt,-1,-1),Cd(this.layoutVertexArray,Ot,Nt,1,-1),Cd(this.layoutVertexArray,Ot,Nt,1,1),Cd(this.layoutVertexArray,Ot,Nt,-1,1),this.indexArray.emplaceBack(Xn,Xn+1,Xn+2),this.indexArray.emplaceBack(Xn,Xn+3,Xn+2),gn.vertexLength+=4,gn.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,g,W,{},le)}}function om(y,g){for(let T=0;T<y.length;T++)if(Kd(g,y[T]))return!0;for(let T=0;T<g.length;T++)if(Kd(y,g[T]))return!0;return!!Ud(y,g)}function pm(y,g,T){return!!Kd(y,g)||!!Nm(g,y,T)}function Ld(y,g){if(1===y.length)return $u(g,y[0]);for(let T=0;T<g.length;T++){const W=g[T];for(let le=0;le<W.length;le++)if(Kd(y,W[le]))return!0}for(let T=0;T<y.length;T++)if($u(g,y[T]))return!0;for(let T=0;T<g.length;T++)if(Ud(y,g[T]))return!0;return!1}function jd(y,g,T){if(y.length>1){if(Ud(y,g))return!0;for(let W=0;W<g.length;W++)if(Nm(g[W],y,T))return!0}for(let W=0;W<y.length;W++)if(Nm(y[W],g,T))return!0;return!1}function Ud(y,g){if(0===y.length||0===g.length)return!1;for(let T=0;T<y.length-1;T++){const W=y[T],le=y[T+1];for(let De=0;De<g.length-1;De++)if(km(W,le,g[De],g[De+1]))return!0}return!1}function km(y,g,T,W){return j(y,T,W)!==j(g,T,W)&&j(y,g,T)!==j(y,g,W)}function Nm(y,g,T){const W=T*T;if(1===g.length)return y.distSqr(g[0])<W;for(let le=1;le<g.length;le++)if(xu(y,g[le-1],g[le])<W)return!0;return!1}function xu(y,g,T){const W=g.distSqr(T);if(0===W)return y.distSqr(g);const le=((y.x-g.x)*(T.x-g.x)+(y.y-g.y)*(T.y-g.y))/W;return y.distSqr(le<0?g:le>1?T:T.sub(g)._mult(le)._add(g))}function $u(y,g){let T,W,le,De=!1;for(let ke=0;ke<y.length;ke++){T=y[ke];for(let Ot=0,Nt=T.length-1;Ot<T.length;Nt=Ot++)W=T[Ot],le=T[Nt],W.y>g.y!=le.y>g.y&&g.x<(le.x-W.x)*(g.y-W.y)/(le.y-W.y)+W.x&&(De=!De)}return De}function Kd(y,g){let T=!1;for(let W=0,le=y.length-1;W<y.length;le=W++){const De=y[W],ke=y[le];De.y>g.y!=ke.y>g.y&&g.x<(ke.x-De.x)*(g.y-De.y)/(ke.y-De.y)+De.x&&(T=!T)}return T}function $m(y,g,T){const W=T[0],le=T[2];if(y.x<W.x&&g.x<W.x||y.x>le.x&&g.x>le.x||y.y<W.y&&g.y<W.y||y.y>le.y&&g.y>le.y)return!1;const De=j(y,g,T[0]);return De!==j(y,g,T[1])||De!==j(y,g,T[2])||De!==j(y,g,T[3])}function ed(y,g,T){const W=g.paint.get(y).value;return"constant"===W.kind?W.value:T.programConfigurations.get(g.id).getMaxValue(y)}function ku(y){return Math.sqrt(y[0]*y[0]+y[1]*y[1])}function _m(y,g,T,W,le){if(!g[0]&&!g[1])return y;const De=c.convert(g)._mult(le);"viewport"===T&&De._rotate(-W);const ke=[];for(let Ot=0;Ot<y.length;Ot++)ke.push(y[Ot].sub(De));return ke}let qm,Xm;Fr("CircleBucket",Rm,{omit:["layers"]});var Um={get paint(){return Xm=Xm||new il({"circle-radius":new Sr(Pt.paint_circle["circle-radius"]),"circle-color":new Sr(Pt.paint_circle["circle-color"]),"circle-blur":new Sr(Pt.paint_circle["circle-blur"]),"circle-opacity":new Sr(Pt.paint_circle["circle-opacity"]),"circle-translate":new xr(Pt.paint_circle["circle-translate"]),"circle-translate-anchor":new xr(Pt.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new xr(Pt.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new xr(Pt.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Sr(Pt.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Sr(Pt.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Sr(Pt.paint_circle["circle-stroke-opacity"])})},get layout(){return qm=qm||new il({"circle-sort-key":new Sr(Pt.layout_circle["circle-sort-key"])})}},sd=1e-6,Kc=typeof Float32Array<"u"?Float32Array:Array;function fm(y){return y[0]=1,y[1]=0,y[2]=0,y[3]=0,y[4]=0,y[5]=1,y[6]=0,y[7]=0,y[8]=0,y[9]=0,y[10]=1,y[11]=0,y[12]=0,y[13]=0,y[14]=0,y[15]=1,y}function Nu(y,g,T){var W=g[0],le=g[1],De=g[2],ke=g[3],Ot=g[4],Nt=g[5],gn=g[6],Xn=g[7],ci=g[8],pi=g[9],Di=g[10],Ni=g[11],lo=g[12],yo=g[13],So=g[14],Ko=g[15],Uo=T[0],Yo=T[1],fr=T[2],Ur=T[3];return y[0]=Uo*W+Yo*Ot+fr*ci+Ur*lo,y[1]=Uo*le+Yo*Nt+fr*pi+Ur*yo,y[2]=Uo*De+Yo*gn+fr*Di+Ur*So,y[3]=Uo*ke+Yo*Xn+fr*Ni+Ur*Ko,y[4]=(Uo=T[4])*W+(Yo=T[5])*Ot+(fr=T[6])*ci+(Ur=T[7])*lo,y[5]=Uo*le+Yo*Nt+fr*pi+Ur*yo,y[6]=Uo*De+Yo*gn+fr*Di+Ur*So,y[7]=Uo*ke+Yo*Xn+fr*Ni+Ur*Ko,y[8]=(Uo=T[8])*W+(Yo=T[9])*Ot+(fr=T[10])*ci+(Ur=T[11])*lo,y[9]=Uo*le+Yo*Nt+fr*pi+Ur*yo,y[10]=Uo*De+Yo*gn+fr*Di+Ur*So,y[11]=Uo*ke+Yo*Xn+fr*Ni+Ur*Ko,y[12]=(Uo=T[12])*W+(Yo=T[13])*Ot+(fr=T[14])*ci+(Ur=T[15])*lo,y[13]=Uo*le+Yo*Nt+fr*pi+Ur*yo,y[14]=Uo*De+Yo*gn+fr*Di+Ur*So,y[15]=Uo*ke+Yo*Xn+fr*Ni+Ur*Ko,y}Math.hypot||(Math.hypot=function(){for(var y=0,g=arguments.length;g--;)y+=arguments[g]*arguments[g];return Math.sqrt(y)});var yd,gm=Nu;function vu(y,g,T){var W=g[0],le=g[1],De=g[2],ke=g[3];return y[0]=T[0]*W+T[4]*le+T[8]*De+T[12]*ke,y[1]=T[1]*W+T[5]*le+T[9]*De+T[13]*ke,y[2]=T[2]*W+T[6]*le+T[10]*De+T[14]*ke,y[3]=T[3]*W+T[7]*le+T[11]*De+T[15]*ke,y}yd=new Kc(4),Kc!=Float32Array&&(yd[0]=0,yd[1]=0,yd[2]=0,yd[3]=0);class bu extends Nl{constructor(g){super(g,Um)}createBucket(g){return new Rm(g)}queryRadius(g){const T=g;return ed("circle-radius",this,T)+ed("circle-stroke-width",this,T)+ku(this.paint.get("circle-translate"))}queryIntersectsFeature(g,T,W,le,De,ke,Ot,Nt){const gn=_m(g,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),ke.angle,Ot),Xn=this.paint.get("circle-radius").evaluate(T,W)+this.paint.get("circle-stroke-width").evaluate(T,W),ci="map"===this.paint.get("circle-pitch-alignment"),pi=ci?gn:(lo=Nt,gn.map(yo=>Od(yo,lo))),Di=ci?Xn*Ot:Xn;var lo;for(const Ni of le)for(const lo of Ni){const yo=ci?lo:Od(lo,Nt);let So=Di;const Ko=vu([],[lo.x,lo.y,0,1],Nt);if("viewport"===this.paint.get("circle-pitch-scale")&&"map"===this.paint.get("circle-pitch-alignment")?So*=Ko[3]/ke.cameraToCenterDistance:"map"===this.paint.get("circle-pitch-scale")&&"viewport"===this.paint.get("circle-pitch-alignment")&&(So*=ke.cameraToCenterDistance/Ko[3]),pm(pi,yo,So))return!0}return!1}}function Od(y,g){const T=vu([],[y.x,y.y,0,1],g);return new c(T[0]/T[3],T[1]/T[3])}class Uu extends Rm{}let qu;Fr("HeatmapBucket",Uu,{omit:["layers"]});var Bm={get paint(){return qu=qu||new il({"heatmap-radius":new Sr(Pt.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Sr(Pt.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new xr(Pt.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Fs(Pt.paint_heatmap["heatmap-color"]),"heatmap-opacity":new xr(Pt.paint_heatmap["heatmap-opacity"])})}};function Am(y,{width:g,height:T},W,le){if(le){if(le instanceof Uint8ClampedArray)le=new Uint8Array(le.buffer);else if(le.length!==g*T*W)throw new RangeError(`mismatched image size. expected: ${le.length} but got: ${g*T*W}`)}else le=new Uint8Array(g*T*W);return y.width=g,y.height=T,y.data=le,y}function hm(y,{width:g,height:T},W){if(g===y.width&&T===y.height)return;const le=Am({},{width:g,height:T},W);fc(y,le,{x:0,y:0},{x:0,y:0},{width:Math.min(y.width,g),height:Math.min(y.height,T)},W),y.width=g,y.height=T,y.data=le.data}function fc(y,g,T,W,le,De){if(0===le.width||0===le.height)return g;if(le.width>y.width||le.height>y.height||T.x>y.width-le.width||T.y>y.height-le.height)throw new RangeError("out of range source coordinates for image copy");if(le.width>g.width||le.height>g.height||W.x>g.width-le.width||W.y>g.height-le.height)throw new RangeError("out of range destination coordinates for image copy");const ke=y.data,Ot=g.data;if(ke===Ot)throw new Error("srcData equals dstData, so image is already copied");for(let Nt=0;Nt<le.height;Nt++){const gn=((T.y+Nt)*y.width+T.x)*De,Xn=((W.y+Nt)*g.width+W.x)*De;for(let ci=0;ci<le.width*De;ci++)Ot[Xn+ci]=ke[gn+ci]}return g}class Zm{constructor(g,T){Am(this,g,1,T)}resize(g){hm(this,g,1)}clone(){return new Zm({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(g,T,W,le,De){fc(g,T,W,le,De,1)}}class ld{constructor(g,T){Am(this,g,4,T)}resize(g){hm(this,g,4)}replace(g,T){T?this.data.set(g):this.data=g instanceof Uint8ClampedArray?new Uint8Array(g.buffer):g}clone(){return new ld({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(g,T,W,le,De){fc(g,T,W,le,De,4)}}function eu(y){const g={},T=y.resolution||256,W=y.clips?y.clips.length:1,le=y.image||new ld({width:T,height:W});if(Math.log(T)/Math.LN2%1!=0)throw new Error(`width is not a power of 2 - ${T}`);const De=(ke,Ot,Nt)=>{g[y.evaluationKey]=Nt;const gn=y.expression.evaluate(g);le.data[ke+Ot+0]=Math.floor(255*gn.r/gn.a),le.data[ke+Ot+1]=Math.floor(255*gn.g/gn.a),le.data[ke+Ot+2]=Math.floor(255*gn.b/gn.a),le.data[ke+Ot+3]=Math.floor(255*gn.a)};if(y.clips)for(let ke=0,Ot=0;ke<W;++ke,Ot+=4*T)for(let Nt=0,gn=0;Nt<T;Nt++,gn+=4){const Xn=Nt/(T-1),{start:ci,end:pi}=y.clips[ke];De(Ot,gn,ci*(1-Xn)+pi*Xn)}else for(let ke=0,Ot=0;ke<T;ke++,Ot+=4)De(0,Ot,ke/(T-1));return le}Fr("AlphaImage",Zm),Fr("RGBAImage",ld);class Tp extends Nl{createBucket(g){return new Uu(g)}constructor(g){super(g,Bm),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(g){"heatmap-color"===g&&this._updateColorRamp()}_updateColorRamp(){this.colorRamp=eu({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)}queryRadius(){return 0}queryIntersectsFeature(){return!1}hasOffscreenPass(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility}}let Bu;var Zu={get paint(){return Bu=Bu||new il({"hillshade-illumination-direction":new xr(Pt.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new xr(Pt.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new xr(Pt.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new xr(Pt.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new xr(Pt.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new xr(Pt.paint_hillshade["hillshade-accent-color"])})}};class Hm extends Nl{constructor(g){super(g,Zu)}hasOffscreenPass(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility}}const Cu=ll([{name:"a_pos",components:2,type:"Int16"}],4),{members:yu}=Cu;var Xu={exports:{}};function wm(y,g,T){T=T||2;var W,le,De,ke,Ot,Nt,gn,Xn=g&&g.length,ci=Xn?g[0]*T:y.length,pi=Bd(y,0,ci,T,!0),Di=[];if(!pi||pi.next===pi.prev)return Di;if(Xn&&(pi=function(lo,yo,So,Ko){var Uo,Yo,fr,Ur=[];for(Uo=0,Yo=yo.length;Uo<Yo;Uo++)(fr=Bd(lo,yo[Uo]*Ko,Uo<Yo-1?yo[Uo+1]*Ko:lo.length,Ko,!1))===fr.next&&(fr.steiner=!0),Ur.push(ur(fr));for(Ur.sort(Qe),Uo=0;Uo<Ur.length;Uo++)So=Ht(Ur[Uo],So);return So}(y,g,pi,T)),y.length>80*T){W=De=y[0],le=ke=y[1];for(var Ni=T;Ni<ci;Ni+=T)(Ot=y[Ni])<W&&(W=Ot),(Nt=y[Ni+1])<le&&(le=Nt),Ot>De&&(De=Ot),Nt>ke&&(ke=Nt);gn=0!==(gn=Math.max(De-W,ke-le))?32767/gn:0}return Pd(pi,Di,T,W,le,gn,0),Di}function Bd(y,g,T,W,le){var De,ke;if(le===Dm(y,g,T,W)>0)for(De=g;De<T;De+=W)ke=$c(De,y[De],y[De+1],ke);else for(De=T-W;De>=g;De-=W)ke=$c(De,y[De],y[De+1],ke);return ke&&Ja(ke,ke.next)&&(ud(ke),ke=ke.next),ke}function xm(y,g){if(!y)return y;g||(g=y);var T,W=y;do{if(T=!1,W.steiner||!Ja(W,W.next)&&0!==Pa(W.prev,W,W.next))W=W.next;else{if(ud(W),(W=g=W.prev)===W.next)break;T=!0}}while(T||W!==g);return g}function Pd(y,g,T,W,le,De,ke){if(y){!ke&&De&&function(Xn,ci,pi,Di){var Ni=Xn;do{0===Ni.z&&(Ni.z=Lo(Ni.x,Ni.y,ci,pi,Di)),Ni.prevZ=Ni.prev,Ni.nextZ=Ni.next,Ni=Ni.next}while(Ni!==Xn);Ni.prevZ.nextZ=null,Ni.prevZ=null,function(lo){var yo,So,Ko,Uo,Yo,fr,Ur,sa,Ya=1;do{for(So=lo,lo=null,Yo=null,fr=0;So;){for(fr++,Ko=So,Ur=0,yo=0;yo<Ya&&(Ur++,Ko=Ko.nextZ);yo++);for(sa=Ya;Ur>0||sa>0&&Ko;)0!==Ur&&(0===sa||!Ko||So.z<=Ko.z)?(Uo=So,So=So.nextZ,Ur--):(Uo=Ko,Ko=Ko.nextZ,sa--),Yo?Yo.nextZ=Uo:lo=Uo,Uo.prevZ=Yo,Yo=Uo;So=Ko}Yo.nextZ=null,Ya*=2}while(fr>1)}(Ni)}(y,W,le,De);for(var Ot,Nt,gn=y;y.prev!==y.next;)if(Ot=y.prev,Nt=y.next,De?Jt(y,W,le,De):kt(y))g.push(Ot.i/T|0),g.push(y.i/T|0),g.push(Nt.i/T|0),ud(y),y=Nt.next,gn=Nt.next;else if((y=Nt)===gn){ke?1===ke?Pd(y=he(xm(y),g,T),g,T,W,le,De,2):2===ke&&Re(y,g,T,W,le,De):Pd(xm(y),g,T,W,le,De,1);break}}}function kt(y){var g=y.prev,T=y,W=y.next;if(Pa(g,T,W)>=0)return!1;for(var le=g.x,De=T.x,ke=W.x,Ot=g.y,Nt=T.y,gn=W.y,Xn=le<De?le<ke?le:ke:De<ke?De:ke,ci=Ot<Nt?Ot<gn?Ot:gn:Nt<gn?Nt:gn,pi=le>De?le>ke?le:ke:De>ke?De:ke,Di=Ot>Nt?Ot>gn?Ot:gn:Nt>gn?Nt:gn,Ni=W.next;Ni!==g;){if(Ni.x>=Xn&&Ni.x<=pi&&Ni.y>=ci&&Ni.y<=Di&&rr(le,Ot,De,Nt,ke,gn,Ni.x,Ni.y)&&Pa(Ni.prev,Ni,Ni.next)>=0)return!1;Ni=Ni.next}return!0}function Jt(y,g,T,W){var le=y.prev,De=y,ke=y.next;if(Pa(le,De,ke)>=0)return!1;for(var Ot=le.x,Nt=De.x,gn=ke.x,Xn=le.y,ci=De.y,pi=ke.y,Di=Ot<Nt?Ot<gn?Ot:gn:Nt<gn?Nt:gn,Ni=Xn<ci?Xn<pi?Xn:pi:ci<pi?ci:pi,lo=Ot>Nt?Ot>gn?Ot:gn:Nt>gn?Nt:gn,yo=Xn>ci?Xn>pi?Xn:pi:ci>pi?ci:pi,So=Lo(Di,Ni,g,T,W),Ko=Lo(lo,yo,g,T,W),Uo=y.prevZ,Yo=y.nextZ;Uo&&Uo.z>=So&&Yo&&Yo.z<=Ko;){if(Uo.x>=Di&&Uo.x<=lo&&Uo.y>=Ni&&Uo.y<=yo&&Uo!==le&&Uo!==ke&&rr(Ot,Xn,Nt,ci,gn,pi,Uo.x,Uo.y)&&Pa(Uo.prev,Uo,Uo.next)>=0||(Uo=Uo.prevZ,Yo.x>=Di&&Yo.x<=lo&&Yo.y>=Ni&&Yo.y<=yo&&Yo!==le&&Yo!==ke&&rr(Ot,Xn,Nt,ci,gn,pi,Yo.x,Yo.y)&&Pa(Yo.prev,Yo,Yo.next)>=0))return!1;Yo=Yo.nextZ}for(;Uo&&Uo.z>=So;){if(Uo.x>=Di&&Uo.x<=lo&&Uo.y>=Ni&&Uo.y<=yo&&Uo!==le&&Uo!==ke&&rr(Ot,Xn,Nt,ci,gn,pi,Uo.x,Uo.y)&&Pa(Uo.prev,Uo,Uo.next)>=0)return!1;Uo=Uo.prevZ}for(;Yo&&Yo.z<=Ko;){if(Yo.x>=Di&&Yo.x<=lo&&Yo.y>=Ni&&Yo.y<=yo&&Yo!==le&&Yo!==ke&&rr(Ot,Xn,Nt,ci,gn,pi,Yo.x,Yo.y)&&Pa(Yo.prev,Yo,Yo.next)>=0)return!1;Yo=Yo.nextZ}return!0}function he(y,g,T){var W=y;do{var le=W.prev,De=W.next.next;!Ja(le,De)&&fs(le,W,W.next,De)&&Pc(le,De)&&Pc(De,le)&&(g.push(le.i/T|0),g.push(W.i/T|0),g.push(De.i/T|0),ud(W),ud(W.next),W=y=De),W=W.next}while(W!==y);return xm(W)}function Re(y,g,T,W,le,De){var ke=y;do{for(var Ot=ke.next.next;Ot!==ke.prev;){if(ke.i!==Ot.i&&Oa(ke,Ot)){var Nt=td(ke,Ot);return ke=xm(ke,ke.next),Nt=xm(Nt,Nt.next),Pd(ke,g,T,W,le,De,0),void Pd(Nt,g,T,W,le,De,0)}Ot=Ot.next}ke=ke.next}while(ke!==y)}function Qe(y,g){return y.x-g.x}function Ht(y,g){var T=function(le,De){var ke,Ot=De,Nt=le.x,gn=le.y,Xn=-1/0;do{if(gn<=Ot.y&&gn>=Ot.next.y&&Ot.next.y!==Ot.y){var ci=Ot.x+(gn-Ot.y)*(Ot.next.x-Ot.x)/(Ot.next.y-Ot.y);if(ci<=Nt&&ci>Xn&&(Xn=ci,ke=Ot.x<Ot.next.x?Ot:Ot.next,ci===Nt))return ke}Ot=Ot.next}while(Ot!==De);if(!ke)return null;var pi,Di=ke,Ni=ke.x,lo=ke.y,yo=1/0;Ot=ke;do{Nt>=Ot.x&&Ot.x>=Ni&&Nt!==Ot.x&&rr(gn<lo?Nt:Xn,gn,Ni,lo,gn<lo?Xn:Nt,gn,Ot.x,Ot.y)&&(pi=Math.abs(gn-Ot.y)/(Nt-Ot.x),Pc(Ot,le)&&(pi<yo||pi===yo&&(Ot.x>ke.x||Ot.x===ke.x&&qt(ke,Ot)))&&(ke=Ot,yo=pi)),Ot=Ot.next}while(Ot!==Di);return ke}(y,g);if(!T)return g;var W=td(T,y);return xm(W,W.next),xm(T,T.next)}function qt(y,g){return Pa(y.prev,y,g.prev)<0&&Pa(g.next,y,y.next)<0}function Lo(y,g,T,W,le){return(y=1431655765&((y=858993459&((y=252645135&((y=16711935&((y=(y-T)*le|0)|y<<8))|y<<4))|y<<2))|y<<1))|(g=1431655765&((g=858993459&((g=252645135&((g=16711935&((g=(g-W)*le|0)|g<<8))|g<<4))|g<<2))|g<<1))<<1}function ur(y){var g=y,T=y;do{(g.x<T.x||g.x===T.x&&g.y<T.y)&&(T=g),g=g.next}while(g!==y);return T}function rr(y,g,T,W,le,De,ke,Ot){return(le-ke)*(g-Ot)>=(y-ke)*(De-Ot)&&(y-ke)*(W-Ot)>=(T-ke)*(g-Ot)&&(T-ke)*(De-Ot)>=(le-ke)*(W-Ot)}function Oa(y,g){return y.next.i!==g.i&&y.prev.i!==g.i&&!function(T,W){var le=T;do{if(le.i!==T.i&&le.next.i!==T.i&&le.i!==W.i&&le.next.i!==W.i&&fs(le,le.next,T,W))return!0;le=le.next}while(le!==T);return!1}(y,g)&&(Pc(y,g)&&Pc(g,y)&&function(T,W){var le=T,De=!1,ke=(T.x+W.x)/2,Ot=(T.y+W.y)/2;do{le.y>Ot!=le.next.y>Ot&&le.next.y!==le.y&&ke<(le.next.x-le.x)*(Ot-le.y)/(le.next.y-le.y)+le.x&&(De=!De),le=le.next}while(le!==T);return De}(y,g)&&(Pa(y.prev,y,g.prev)||Pa(y,g.prev,g))||Ja(y,g)&&Pa(y.prev,y,y.next)>0&&Pa(g.prev,g,g.next)>0)}function Pa(y,g,T){return(g.y-y.y)*(T.x-g.x)-(g.x-y.x)*(T.y-g.y)}function Ja(y,g){return y.x===g.x&&y.y===g.y}function fs(y,g,T,W){var le=Ic(Pa(y,g,T)),De=Ic(Pa(y,g,W)),ke=Ic(Pa(T,W,y)),Ot=Ic(Pa(T,W,g));return le!==De&&ke!==Ot||!(0!==le||!El(y,T,g))||!(0!==De||!El(y,W,g))||!(0!==ke||!El(T,y,W))||!(0!==Ot||!El(T,g,W))}function El(y,g,T){return g.x<=Math.max(y.x,T.x)&&g.x>=Math.min(y.x,T.x)&&g.y<=Math.max(y.y,T.y)&&g.y>=Math.min(y.y,T.y)}function Ic(y){return y>0?1:y<0?-1:0}function Pc(y,g){return Pa(y.prev,y,y.next)<0?Pa(y,g,y.next)>=0&&Pa(y,y.prev,g)>=0:Pa(y,g,y.prev)<0||Pa(y,y.next,g)<0}function td(y,g){var T=new qc(y.i,y.x,y.y),W=new qc(g.i,g.x,g.y),le=y.next,De=g.prev;return y.next=g,g.prev=y,T.next=le,le.prev=T,W.next=T,T.prev=W,De.next=W,W.prev=De,W}function $c(y,g,T,W){var le=new qc(y,g,T);return W?(le.next=W.next,le.prev=W,W.next.prev=le,W.next=le):(le.prev=le,le.next=le),le}function ud(y){y.next.prev=y.prev,y.prev.next=y.next,y.prevZ&&(y.prevZ.nextZ=y.nextZ),y.nextZ&&(y.nextZ.prevZ=y.prevZ)}function qc(y,g,T){this.i=y,this.x=g,this.y=T,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Dm(y,g,T,W){for(var le=0,De=g,ke=T-W;De<T;De+=W)le+=(y[ke]-y[De])*(y[De+1]+y[ke+1]),ke=De;return le}Xu.exports=wm,Xu.exports.default=wm,wm.deviation=function(y,g,T,W){var le=g&&g.length,De=Math.abs(Dm(y,0,le?g[0]*T:y.length,T));if(le)for(var ke=0,Ot=g.length;ke<Ot;ke++)De-=Math.abs(Dm(y,g[ke]*T,ke<Ot-1?g[ke+1]*T:y.length,T));var Nt=0;for(ke=0;ke<W.length;ke+=3){var gn=W[ke]*T,Xn=W[ke+1]*T,ci=W[ke+2]*T;Nt+=Math.abs((y[gn]-y[ci])*(y[Xn+1]-y[gn+1])-(y[gn]-y[Xn])*(y[ci+1]-y[gn+1]))}return 0===De&&0===Nt?0:Math.abs((Nt-De)/De)},wm.flatten=function(y){for(var g=y[0][0].length,T={vertices:[],holes:[],dimensions:g},W=0,le=0;le<y.length;le++){for(var De=0;De<y[le].length;De++)for(var ke=0;ke<g;ke++)T.vertices.push(y[le][De][ke]);le>0&&T.holes.push(W+=y[le-1].length)}return T};var oc=i(Xu.exports);function Zd(y,g,T,W,le){Sc(y,g,T||0,W||y.length-1,le||Pm)}function Sc(y,g,T,W,le){for(;W>T;){if(W-T>600){var De=W-T+1,ke=g-T+1,Ot=Math.log(De),Nt=.5*Math.exp(2*Ot/3),gn=.5*Math.sqrt(Ot*Nt*(De-Nt)/De)*(ke-De/2<0?-1:1);Sc(y,g,Math.max(T,Math.floor(g-ke*Nt/De+gn)),Math.min(W,Math.floor(g+(De-ke)*Nt/De+gn)),le)}var Xn=y[g],ci=T,pi=W;for(Md(y,T,g),le(y[W],Xn)>0&&Md(y,T,W);ci<pi;){for(Md(y,ci,pi),ci++,pi--;le(y[ci],Xn)<0;)ci++;for(;le(y[pi],Xn)>0;)pi--}0===le(y[T],Xn)?Md(y,T,pi):Md(y,++pi,W),pi<=g&&(T=pi+1),g<=pi&&(W=pi-1)}}function Md(y,g,T){var W=y[g];y[g]=y[T],y[T]=W}function Pm(y,g){return y<g?-1:y>g?1:0}function Td(y,g){const T=y.length;if(T<=1)return[y];const W=[];let le,De;for(let ke=0;ke<T;ke++){const Ot=Y(y[ke]);0!==Ot&&(y[ke].area=Math.abs(Ot),void 0===De&&(De=Ot<0),De===Ot<0?(le&&W.push(le),le=[y[ke]]):le.push(y[ke]))}if(le&&W.push(le),g>1)for(let ke=0;ke<W.length;ke++)W[ke].length<=g||(Zd(W[ke],g,1,W[ke].length-1,Mm),W[ke]=W[ke].slice(0,g));return W}function Mm(y,g){return g.area-y.area}function Gm(y,g,T){const W=T.patternDependencies;let le=!1;for(const De of g){const ke=De.paint.get(`${y}-pattern`);ke.isConstant()||(le=!0);const Ot=ke.constantOr(null);Ot&&(le=!0,W[Ot.to]=!0,W[Ot.from]=!0)}return le}function Ou(y,g,T,W,le){const De=le.patternDependencies;for(const ke of g){const Ot=ke.paint.get(`${y}-pattern`).value;if("constant"!==Ot.kind){let Nt=Ot.evaluate({zoom:W-1},T,{},le.availableImages),gn=Ot.evaluate({zoom:W},T,{},le.availableImages),Xn=Ot.evaluate({zoom:W+1},T,{},le.availableImages);Nt=Nt&&Nt.name?Nt.name:Nt,gn=gn&&gn.name?gn.name:gn,Xn=Xn&&Xn.name?Xn.name:Xn,De[Nt]=!0,De[gn]=!0,De[Xn]=!0,T.patterns[ke.id]={min:Nt,mid:gn,max:Xn}}}return T}class Lc{constructor(g){this.zoom=g.zoom,this.overscaling=g.overscaling,this.layers=g.layers,this.layerIds=this.layers.map(T=>T.id),this.index=g.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new qn,this.indexArray=new Rr,this.indexArray2=new Xr,this.programConfigurations=new mm(g.layers,g.zoom),this.segments=new qa,this.segments2=new qa,this.stateDependentLayerIds=this.layers.filter(T=>T.isStateDependent()).map(T=>T.id)}populate(g,T,W){this.hasPattern=Gm("fill",this.layers,T);const le=this.layers[0].layout.get("fill-sort-key"),De=!le.isConstant(),ke=[];for(const{feature:Ot,id:Nt,index:gn,sourceLayerIndex:Xn}of g){const ci=this.layers[0]._featureFilter.needGeometry,pi=Zc(Ot,ci);if(!this.layers[0]._featureFilter.filter(new dr(this.zoom),pi,W))continue;const Di=De?le.evaluate(pi,{},W,T.availableImages):void 0,Ni={id:Nt,properties:Ot.properties,type:Ot.type,sourceLayerIndex:Xn,index:gn,geometry:ci?pi.geometry:ad(Ot),patterns:{},sortKey:Di};ke.push(Ni)}De&&ke.sort((Ot,Nt)=>Ot.sortKey-Nt.sortKey);for(const Ot of ke){const{geometry:Nt,index:gn,sourceLayerIndex:Xn}=Ot;if(this.hasPattern){const ci=Ou("fill",this.layers,Ot,this.zoom,T);this.patternFeatures.push(ci)}else this.addFeature(Ot,Nt,gn,W,{});T.featureIndex.insert(g[gn].feature,Nt,gn,Xn,this.index)}}update(g,T,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(g,T,this.stateDependentLayers,W)}addFeatures(g,T,W){for(const le of this.patternFeatures)this.addFeature(le,le.geometry,le.index,T,W)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(g){this.uploaded||(this.layoutVertexBuffer=g.createVertexBuffer(this.layoutVertexArray,yu),this.indexBuffer=g.createIndexBuffer(this.indexArray),this.indexBuffer2=g.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(g),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(g,T,W,le,De){for(const ke of Td(T,500)){let Ot=0;for(const Di of ke)Ot+=Di.length;const Nt=this.segments.prepareSegment(Ot,this.layoutVertexArray,this.indexArray),gn=Nt.vertexLength,Xn=[],ci=[];for(const Di of ke){if(0===Di.length)continue;Di!==ke[0]&&ci.push(Xn.length/2);const Ni=this.segments2.prepareSegment(Di.length,this.layoutVertexArray,this.indexArray2),lo=Ni.vertexLength;this.layoutVertexArray.emplaceBack(Di[0].x,Di[0].y),this.indexArray2.emplaceBack(lo+Di.length-1,lo),Xn.push(Di[0].x),Xn.push(Di[0].y);for(let yo=1;yo<Di.length;yo++)this.layoutVertexArray.emplaceBack(Di[yo].x,Di[yo].y),this.indexArray2.emplaceBack(lo+yo-1,lo+yo),Xn.push(Di[yo].x),Xn.push(Di[yo].y);Ni.vertexLength+=Di.length,Ni.primitiveLength+=Di.length}const pi=oc(Xn,ci);for(let Di=0;Di<pi.length;Di+=3)this.indexArray.emplaceBack(gn+pi[Di],gn+pi[Di+1],gn+pi[Di+2]);Nt.vertexLength+=Ot,Nt.primitiveLength+=pi.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,g,W,De,le)}}let Hc,Hd;Fr("FillBucket",Lc,{omit:["layers","patternFeatures"]});var Pu={get paint(){return Hd=Hd||new il({"fill-antialias":new xr(Pt.paint_fill["fill-antialias"]),"fill-opacity":new Sr(Pt.paint_fill["fill-opacity"]),"fill-color":new Sr(Pt.paint_fill["fill-color"]),"fill-outline-color":new Sr(Pt.paint_fill["fill-outline-color"]),"fill-translate":new xr(Pt.paint_fill["fill-translate"]),"fill-translate-anchor":new xr(Pt.paint_fill["fill-translate-anchor"]),"fill-pattern":new ns(Pt.paint_fill["fill-pattern"])})},get layout(){return Hc=Hc||new il({"fill-sort-key":new Sr(Pt.layout_fill["fill-sort-key"])})}};class tu extends Nl{constructor(g){super(g,Pu)}recalculate(g,T){super.recalculate(g,T);const W=this.paint._values["fill-outline-color"];"constant"===W.value.kind&&void 0===W.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(g){return new Lc(g)}queryRadius(){return ku(this.paint.get("fill-translate"))}queryIntersectsFeature(g,T,W,le,De,ke,Ot){return Ld(_m(g,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),ke.angle,Ot),le)}isTileClipped(){return!0}}const Jm=ll([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4),Mu=ll([{name:"a_centroid",components:2,type:"Int16"}],4),{members:Im}=Jm;var Mc={},gc=t,$d=Rd;function Rd(y,g,T,W,le){this.properties={},this.extent=T,this.type=0,this._pbf=y,this._geometry=-1,this._keys=W,this._values=le,y.readFields(nu,this,g)}function nu(y,g,T){1==y?g.id=T.readVarint():2==y?function(W,le){for(var De=W.readVarint()+W.pos;W.pos<De;){var ke=le._keys[W.readVarint()],Ot=le._values[W.readVarint()];le.properties[ke]=Ot}}(T,g):3==y?g.type=T.readVarint():4==y&&(g._geometry=T.pos)}function Gc(y){for(var g,T,W=0,le=0,De=y.length,ke=De-1;le<De;ke=le++)W+=((T=y[ke]).x-(g=y[le]).x)*(g.y+T.y);return W}Rd.types=["Unknown","Point","LineString","Polygon"],Rd.prototype.loadGeometry=function(){var y=this._pbf;y.pos=this._geometry;for(var g,T=y.readVarint()+y.pos,W=1,le=0,De=0,ke=0,Ot=[];y.pos<T;){if(le<=0){var Nt=y.readVarint();W=7&Nt,le=Nt>>3}if(le--,1===W||2===W)De+=y.readSVarint(),ke+=y.readSVarint(),1===W&&(g&&Ot.push(g),g=[]),g.push(new gc(De,ke));else{if(7!==W)throw new Error("unknown command "+W);g&&g.push(g[0].clone())}}return g&&Ot.push(g),Ot},Rd.prototype.bbox=function(){var y=this._pbf;y.pos=this._geometry;for(var g=y.readVarint()+y.pos,T=1,W=0,le=0,De=0,ke=1/0,Ot=-1/0,Nt=1/0,gn=-1/0;y.pos<g;){if(W<=0){var Xn=y.readVarint();T=7&Xn,W=Xn>>3}if(W--,1===T||2===T)(le+=y.readSVarint())<ke&&(ke=le),le>Ot&&(Ot=le),(De+=y.readSVarint())<Nt&&(Nt=De),De>gn&&(gn=De);else if(7!==T)throw new Error("unknown command "+T)}return[ke,Nt,Ot,gn]},Rd.prototype.toGeoJSON=function(y,g,T){var W,le,De=this.extent*Math.pow(2,T),ke=this.extent*y,Ot=this.extent*g,Nt=this.loadGeometry(),gn=Rd.types[this.type];function Xn(Di){for(var Ni=0;Ni<Di.length;Ni++){var lo=Di[Ni];Di[Ni]=[360*(lo.x+ke)/De-180,360/Math.PI*Math.atan(Math.exp((180-360*(lo.y+Ot)/De)*Math.PI/180))-90]}}switch(this.type){case 1:var ci=[];for(W=0;W<Nt.length;W++)ci[W]=Nt[W][0];Xn(Nt=ci);break;case 2:for(W=0;W<Nt.length;W++)Xn(Nt[W]);break;case 3:for(Nt=function(Di){var Ni=Di.length;if(Ni<=1)return[Di];for(var lo,yo,So=[],Ko=0;Ko<Ni;Ko++){var Uo=Gc(Di[Ko]);0!==Uo&&(void 0===yo&&(yo=Uo<0),yo===Uo<0?(lo&&So.push(lo),lo=[Di[Ko]]):lo.push(Di[Ko]))}return lo&&So.push(lo),So}(Nt),W=0;W<Nt.length;W++)for(le=0;le<Nt[W].length;le++)Xn(Nt[W][le])}1===Nt.length?Nt=Nt[0]:gn="Multi"+gn;var pi={type:"Feature",geometry:{type:gn,coordinates:Nt},properties:this.properties};return"id"in this&&(pi.id=this.id),pi};var sc=$d,pd=rm;function rm(y,g){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=y,this._keys=[],this._values=[],this._features=[],y.readFields(Gd,this,g),this.length=this._features.length}function Gd(y,g,T){15===y?g.version=T.readVarint():1===y?g.name=T.readString():5===y?g.extent=T.readVarint():2===y?g._features.push(T.pos):3===y?g._keys.push(T.readString()):4===y&&g._values.push(function(W){for(var le=null,De=W.readVarint()+W.pos;W.pos<De;){var ke=W.readVarint()>>3;le=1===ke?W.readString():2===ke?W.readFloat():3===ke?W.readDouble():4===ke?W.readVarint64():5===ke?W.readVarint():6===ke?W.readSVarint():7===ke?W.readBoolean():null}return le}(T))}rm.prototype.feature=function(y){if(y<0||y>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[y];var g=this._pbf.readVarint()+this._pbf.pos;return new sc(this._pbf,g,this.extent,this._keys,this._values)};var vm=pd;function Us(y,g,T){if(3===y){var W=new vm(T,T.readVarint()+T.pos);W.length&&(g[W.name]=W)}}Mc.VectorTile=function(y,g){this.layers=y.readFields(Us,{},g)},Mc.VectorTileFeature=$d,Mc.VectorTileLayer=pd;const Tu=Mc.VectorTileFeature.types,Hu=Math.pow(2,13);function Gu(y,g,T,W,le,De,ke,Ot){y.emplaceBack(g,T,2*Math.floor(W*Hu)+ke,le*Hu*2,De*Hu*2,Math.round(Ot))}class gp{constructor(g){this.zoom=g.zoom,this.overscaling=g.overscaling,this.layers=g.layers,this.layerIds=this.layers.map(T=>T.id),this.index=g.index,this.hasPattern=!1,this.layoutVertexArray=new hi,this.centroidVertexArray=new Kt,this.indexArray=new Rr,this.programConfigurations=new mm(g.layers,g.zoom),this.segments=new qa,this.stateDependentLayerIds=this.layers.filter(T=>T.isStateDependent()).map(T=>T.id)}populate(g,T,W){this.features=[],this.hasPattern=Gm("fill-extrusion",this.layers,T);for(const{feature:le,id:De,index:ke,sourceLayerIndex:Ot}of g){const Nt=this.layers[0]._featureFilter.needGeometry,gn=Zc(le,Nt);if(!this.layers[0]._featureFilter.filter(new dr(this.zoom),gn,W))continue;const Xn={id:De,sourceLayerIndex:Ot,index:ke,geometry:Nt?gn.geometry:ad(le),properties:le.properties,type:le.type,patterns:{}};this.hasPattern?this.features.push(Ou("fill-extrusion",this.layers,Xn,this.zoom,T)):this.addFeature(Xn,Xn.geometry,ke,W,{}),T.featureIndex.insert(le,Xn.geometry,ke,Ot,this.index,!0)}}addFeatures(g,T,W){for(const le of this.features){const{geometry:De}=le;this.addFeature(le,De,le.index,T,W)}}update(g,T,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(g,T,this.stateDependentLayers,W)}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.centroidVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(g){this.uploaded||(this.layoutVertexBuffer=g.createVertexBuffer(this.layoutVertexArray,Im),this.centroidVertexBuffer=g.createVertexBuffer(this.centroidVertexArray,Mu.members,!0),this.indexBuffer=g.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(g),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(g,T,W,le,De){const ke={x:0,y:0,vertexCount:0};for(const Ot of Td(T,500)){let Nt=0;for(const Ni of Ot)Nt+=Ni.length;let gn=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(const Ni of Ot){if(0===Ni.length||((y=Ni).every(g=>g.x<0)||y.every(g=>g.x>tc)||y.every(g=>g.y<0)||y.every(g=>g.y>tc)))continue;let lo=0;for(let yo=0;yo<Ni.length;yo++){const So=Ni[yo];if(yo>=1){const Ko=Ni[yo-1];if(!Ep(So,Ko)){gn.vertexLength+4>qa.MAX_VERTEX_ARRAY_LENGTH&&(gn=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));const Uo=So.sub(Ko)._perp()._unit(),Yo=Ko.dist(So);lo+Yo>32768&&(lo=0),Gu(this.layoutVertexArray,So.x,So.y,Uo.x,Uo.y,0,0,lo),Gu(this.layoutVertexArray,So.x,So.y,Uo.x,Uo.y,0,1,lo),ke.x+=2*So.x,ke.y+=2*So.y,ke.vertexCount+=2,lo+=Yo,Gu(this.layoutVertexArray,Ko.x,Ko.y,Uo.x,Uo.y,0,0,lo),Gu(this.layoutVertexArray,Ko.x,Ko.y,Uo.x,Uo.y,0,1,lo),ke.x+=2*Ko.x,ke.y+=2*Ko.y,ke.vertexCount+=2;const fr=gn.vertexLength;this.indexArray.emplaceBack(fr,fr+2,fr+1),this.indexArray.emplaceBack(fr+1,fr+2,fr+3),gn.vertexLength+=4,gn.primitiveLength+=2}}}}if(gn.vertexLength+Nt>qa.MAX_VERTEX_ARRAY_LENGTH&&(gn=this.segments.prepareSegment(Nt,this.layoutVertexArray,this.indexArray)),"Polygon"!==Tu[g.type])continue;const Xn=[],ci=[],pi=gn.vertexLength;for(const Ni of Ot)if(0!==Ni.length){Ni!==Ot[0]&&ci.push(Xn.length/2);for(let lo=0;lo<Ni.length;lo++){const yo=Ni[lo];Gu(this.layoutVertexArray,yo.x,yo.y,0,0,1,1,0),ke.x+=yo.x,ke.y+=yo.y,ke.vertexCount+=1,Xn.push(yo.x),Xn.push(yo.y)}}const Di=oc(Xn,ci);for(let Ni=0;Ni<Di.length;Ni+=3)this.indexArray.emplaceBack(pi+Di[Ni],pi+Di[Ni+2],pi+Di[Ni+1]);gn.primitiveLength+=Di.length/3,gn.vertexLength+=Nt}var y;for(let Ot=0;Ot<ke.vertexCount;Ot++)this.centroidVertexArray.emplaceBack(Math.floor(ke.x/ke.vertexCount),Math.floor(ke.y/ke.vertexCount));this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,g,W,De,le)}}function Ep(y,g){return y.x===g.x&&(y.x<0||y.x>tc)||y.y===g.y&&(y.y<0||y.y>tc)}let Fe;Fr("FillExtrusionBucket",gp,{omit:["layers","features"]});var Pe={get paint(){return Fe=Fe||new il({"fill-extrusion-opacity":new xr(Pt["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Sr(Pt["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new xr(Pt["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new xr(Pt["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new ns(Pt["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Sr(Pt["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Sr(Pt["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new xr(Pt["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})}};class St extends Nl{constructor(g){super(g,Pe)}createBucket(g){return new gp(g)}queryRadius(){return ku(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(g,T,W,le,De,ke,Ot,Nt){const gn=_m(g,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),ke.angle,Ot),Xn=this.paint.get("fill-extrusion-height").evaluate(T,W),ci=this.paint.get("fill-extrusion-base").evaluate(T,W),pi=function(Ni,lo,yo,So){const Ko=[];for(const Uo of Ni){const Yo=[Uo.x,Uo.y,0,1];vu(Yo,Yo,lo),Ko.push(new c(Yo[0]/Yo[3],Yo[1]/Yo[3]))}return Ko}(gn,Nt),Di=function(Ni,lo,yo,So){const Ko=[],Uo=[],Yo=So[8]*lo,fr=So[9]*lo,Ur=So[10]*lo,sa=So[11]*lo,Ya=So[8]*yo,ua=So[9]*yo,ca=So[10]*yo,pa=So[11]*yo;for(const Xa of Ni){const Ma=[],ea=[];for(const rs of Xa){const Sa=rs.x,ml=rs.y,nd=So[0]*Sa+So[4]*ml+So[12],cd=So[1]*Sa+So[5]*ml+So[13],sm=So[2]*Sa+So[6]*ml+So[14],ju=So[3]*Sa+So[7]*ml+So[15],su=sm+Ur,qd=ju+sa,Xd=nd+Ya,Em=cd+ua,Eu=sm+ca,lu=ju+pa,Vd=new c((nd+Yo)/qd,(cd+fr)/qd);Vd.z=su/qd,Ma.push(Vd);const Ad=new c(Xd/lu,Em/lu);Ad.z=Eu/lu,ea.push(Ad)}Ko.push(Ma),Uo.push(ea)}return[Ko,Uo]}(le,ci,Xn,Nt);return function(Ni,lo,yo){let So=1/0;Ld(yo,lo)&&(So=vi(yo,lo[0]));for(let Ko=0;Ko<lo.length;Ko++){const Uo=lo[Ko],Yo=Ni[Ko];for(let fr=0;fr<Uo.length-1;fr++){const Ur=Uo[fr],sa=[Ur,Uo[fr+1],Yo[fr+1],Yo[fr],Ur];om(yo,sa)&&(So=Math.min(So,vi(yo,sa)))}}return So!==1/0&&So}(Di[0],Di[1],pi)}}function un(y,g){return y.x*g.x+y.y*g.y}function vi(y,g){if(1===y.length){let T=0;const W=g[T++];let le;for(;!le||W.equals(le);)if(le=g[T++],!le)return 1/0;for(;T<g.length;T++){const De=g[T],ke=y[0],Ot=le.sub(W),Nt=De.sub(W),gn=ke.sub(W),Xn=un(Ot,Ot),ci=un(Ot,Nt),pi=un(Nt,Nt),Di=un(gn,Ot),Ni=un(gn,Nt),lo=Xn*pi-ci*ci,yo=(pi*Di-ci*Ni)/lo,So=(Xn*Ni-ci*Di)/lo,Ko=W.z*(1-yo-So)+le.z*yo+De.z*So;if(isFinite(Ko))return Ko}return 1/0}{let T=1/0;for(const W of g)T=Math.min(T,W.z);return T}}const qe=ll([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4),{members:Xi}=qe,xt=ll([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]),{members:jt}=xt,jn=Mc.VectorTileFeature.types,ro=Math.cos(Math.PI/180*37.5),Bo=Math.pow(2,14)/.5;class jr{constructor(g){this.zoom=g.zoom,this.overscaling=g.overscaling,this.layers=g.layers,this.layerIds=this.layers.map(T=>T.id),this.index=g.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(T=>{this.gradients[T.id]={}}),this.layoutVertexArray=new gi,this.layoutVertexArray2=new ko,this.indexArray=new Rr,this.programConfigurations=new mm(g.layers,g.zoom),this.segments=new qa,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(T=>T.isStateDependent()).map(T=>T.id)}populate(g,T,W){this.hasPattern=Gm("line",this.layers,T);const le=this.layers[0].layout.get("line-sort-key"),De=!le.isConstant(),ke=[];for(const{feature:Ot,id:Nt,index:gn,sourceLayerIndex:Xn}of g){const ci=this.layers[0]._featureFilter.needGeometry,pi=Zc(Ot,ci);if(!this.layers[0]._featureFilter.filter(new dr(this.zoom),pi,W))continue;const Di=De?le.evaluate(pi,{},W):void 0,Ni={id:Nt,properties:Ot.properties,type:Ot.type,sourceLayerIndex:Xn,index:gn,geometry:ci?pi.geometry:ad(Ot),patterns:{},sortKey:Di};ke.push(Ni)}De&&ke.sort((Ot,Nt)=>Ot.sortKey-Nt.sortKey);for(const Ot of ke){const{geometry:Nt,index:gn,sourceLayerIndex:Xn}=Ot;if(this.hasPattern){const ci=Ou("line",this.layers,Ot,this.zoom,T);this.patternFeatures.push(ci)}else this.addFeature(Ot,Nt,gn,W,{});T.featureIndex.insert(g[gn].feature,Nt,gn,Xn,this.index)}}update(g,T,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(g,T,this.stateDependentLayers,W)}addFeatures(g,T,W){for(const le of this.patternFeatures)this.addFeature(le,le.geometry,le.index,T,W)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(g){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=g.createVertexBuffer(this.layoutVertexArray2,jt)),this.layoutVertexBuffer=g.createVertexBuffer(this.layoutVertexArray,Xi),this.indexBuffer=g.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(g),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(g){if(g.properties&&Object.prototype.hasOwnProperty.call(g.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(g.properties,"mapbox_clip_end"))return{start:+g.properties.mapbox_clip_start,end:+g.properties.mapbox_clip_end}}addFeature(g,T,W,le,De){const ke=this.layers[0].layout,Ot=ke.get("line-join").evaluate(g,{}),Nt=ke.get("line-cap"),gn=ke.get("line-miter-limit"),Xn=ke.get("line-round-limit");this.lineClips=this.lineFeatureClips(g);for(const ci of T)this.addLine(ci,g,Ot,Nt,gn,Xn);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,g,W,De,le)}addLine(g,T,W,le,De,ke){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let So=0;So<g.length-1;So++)this.totalDistance+=g[So].dist(g[So+1]);this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}const Ot="Polygon"===jn[T.type];let Nt=g.length;for(;Nt>=2&&g[Nt-1].equals(g[Nt-2]);)Nt--;let gn=0;for(;gn<Nt-1&&g[gn].equals(g[gn+1]);)gn++;if(Nt<(Ot?3:2))return;"bevel"===W&&(De=1.05);const Xn=this.overscaling<=16?15*tc/(512*this.overscaling):0,ci=this.segments.prepareSegment(10*Nt,this.layoutVertexArray,this.indexArray);let pi,Di,Ni,lo,yo;this.e1=this.e2=-1,Ot&&(pi=g[Nt-2],yo=g[gn].sub(pi)._unit()._perp());for(let So=gn;So<Nt;So++){if(Ni=So===Nt-1?Ot?g[gn+1]:void 0:g[So+1],Ni&&g[So].equals(Ni))continue;yo&&(lo=yo),pi&&(Di=pi),pi=g[So],yo=Ni?Ni.sub(pi)._unit()._perp():lo,lo=lo||yo;let Ko=lo.add(yo);0===Ko.x&&0===Ko.y||Ko._unit();const Uo=lo.x*yo.x+lo.y*yo.y,Yo=Ko.x*yo.x+Ko.y*yo.y,fr=0!==Yo?1/Yo:1/0,Ur=2*Math.sqrt(2-2*Yo),sa=Yo<ro&&Di&&Ni,Ya=lo.x*yo.y-lo.y*yo.x>0;if(sa&&So>gn){const pa=pi.dist(Di);if(pa>2*Xn){const Xa=pi.sub(pi.sub(Di)._mult(Xn/pa)._round());this.updateDistance(Di,Xa),this.addCurrentVertex(Xa,lo,0,0,ci),Di=Xa}}const ua=Di&&Ni;let ca=ua?W:Ot?"butt":le;if(ua&&"round"===ca&&(fr<ke?ca="miter":fr<=2&&(ca="fakeround")),"miter"===ca&&fr>De&&(ca="bevel"),"bevel"===ca&&(fr>2&&(ca="flipbevel"),fr<De&&(ca="miter")),Di&&this.updateDistance(Di,pi),"miter"===ca)Ko._mult(fr),this.addCurrentVertex(pi,Ko,0,0,ci);else if("flipbevel"===ca){if(fr>100)Ko=yo.mult(-1);else{const pa=fr*lo.add(yo).mag()/lo.sub(yo).mag();Ko._perp()._mult(pa*(Ya?-1:1))}this.addCurrentVertex(pi,Ko,0,0,ci),this.addCurrentVertex(pi,Ko.mult(-1),0,0,ci)}else if("bevel"===ca||"fakeround"===ca){const pa=-Math.sqrt(fr*fr-1),Xa=Ya?pa:0,Ma=Ya?0:pa;if(Di&&this.addCurrentVertex(pi,lo,Xa,Ma,ci),"fakeround"===ca){const ea=Math.round(180*Ur/Math.PI/20);for(let rs=1;rs<ea;rs++){let Sa=rs/ea;if(.5!==Sa){const nd=Sa-.5;Sa+=Sa*nd*(Sa-1)*((1.0904+Uo*(Uo*(3.55645-1.43519*Uo)-3.2452))*nd*nd+(.848013+Uo*(.215638*Uo-1.06021)))}const ml=yo.sub(lo)._mult(Sa)._add(lo)._unit()._mult(Ya?-1:1);this.addHalfVertex(pi,ml.x,ml.y,!1,Ya,0,ci)}}Ni&&this.addCurrentVertex(pi,yo,-Xa,-Ma,ci)}else if("butt"===ca)this.addCurrentVertex(pi,Ko,0,0,ci);else if("square"===ca){const pa=Di?1:-1;this.addCurrentVertex(pi,Ko,pa,pa,ci)}else"round"===ca&&(Di&&(this.addCurrentVertex(pi,lo,0,0,ci),this.addCurrentVertex(pi,lo,1,1,ci,!0)),Ni&&(this.addCurrentVertex(pi,yo,-1,-1,ci,!0),this.addCurrentVertex(pi,yo,0,0,ci)));if(sa&&So<Nt-1){const pa=pi.dist(Ni);if(pa>2*Xn){const Xa=pi.add(Ni.sub(pi)._mult(Xn/pa)._round());this.updateDistance(pi,Xa),this.addCurrentVertex(Xa,yo,0,0,ci),pi=Xa}}}}addCurrentVertex(g,T,W,le,De,ke=!1){const Ot=T.y*le-T.x,Nt=-T.y-T.x*le;this.addHalfVertex(g,T.x+T.y*W,T.y-T.x*W,ke,!1,W,De),this.addHalfVertex(g,Ot,Nt,ke,!0,-le,De),this.distance>Bo/2&&0===this.totalDistance&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(g,T,W,le,De,ke))}addHalfVertex({x:g,y:T},W,le,De,ke,Ot,Nt){const gn=.5*(this.lineClips?this.scaledDistance*(Bo-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((g<<1)+(De?1:0),(T<<1)+(ke?1:0),Math.round(63*W)+128,Math.round(63*le)+128,1+(0===Ot?0:Ot<0?-1:1)|(63&gn)<<2,gn>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);const Xn=Nt.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Xn),Nt.primitiveLength++),ke?this.e2=Xn:this.e1=Xn}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(g,T){this.distance+=g.dist(T),this.updateScaledDistance()}}let Hr,al;Fr("LineBucket",jr,{omit:["layers","patternFeatures"]});var Jd={get paint(){return al=al||new il({"line-opacity":new Sr(Pt.paint_line["line-opacity"]),"line-color":new Sr(Pt.paint_line["line-color"]),"line-translate":new xr(Pt.paint_line["line-translate"]),"line-translate-anchor":new xr(Pt.paint_line["line-translate-anchor"]),"line-width":new Sr(Pt.paint_line["line-width"]),"line-gap-width":new Sr(Pt.paint_line["line-gap-width"]),"line-offset":new Sr(Pt.paint_line["line-offset"]),"line-blur":new Sr(Pt.paint_line["line-blur"]),"line-dasharray":new Tl(Pt.paint_line["line-dasharray"]),"line-pattern":new ns(Pt.paint_line["line-pattern"]),"line-gradient":new Fs(Pt.paint_line["line-gradient"])})},get layout(){return Hr=Hr||new il({"line-cap":new xr(Pt.layout_line["line-cap"]),"line-join":new Sr(Pt.layout_line["line-join"]),"line-miter-limit":new xr(Pt.layout_line["line-miter-limit"]),"line-round-limit":new xr(Pt.layout_line["line-round-limit"]),"line-sort-key":new Sr(Pt.layout_line["line-sort-key"])})}};class Qd extends Sr{possiblyEvaluate(g,T){return T=new dr(Math.floor(T.zoom),{now:T.now,fadeDuration:T.fadeDuration,zoomHistory:T.zoomHistory,transition:T.transition}),super.possiblyEvaluate(g,T)}evaluate(g,T,W,le){return T=O({},T,{zoom:Math.floor(T.zoom)}),super.evaluate(g,T,W,le)}}let op;class f_ extends Nl{constructor(g){super(g,Jd),this.gradientVersion=0,op||(op=new Qd(Jd.paint.properties["line-width"].specification),op.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(g){if("line-gradient"===g){const T=this.gradientExpression();this.stepInterpolant=!(void 0===T._styleExpression)&&T._styleExpression.expression instanceof ja,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(g,T){super.recalculate(g,T),this.paint._values["line-floorwidth"]=op.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,g)}createBucket(g){return new jr(g)}queryRadius(g){const T=g,W=rp(ed("line-width",this,T),ed("line-gap-width",this,T)),le=ed("line-offset",this,T);return W/2+Math.abs(le)+ku(this.paint.get("line-translate"))}queryIntersectsFeature(g,T,W,le,De,ke,Ot){const Nt=_m(g,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),ke.angle,Ot),gn=Ot/2*rp(this.paint.get("line-width").evaluate(T,W),this.paint.get("line-gap-width").evaluate(T,W)),Xn=this.paint.get("line-offset").evaluate(T,W);return Xn&&(le=function(ci,pi){const Di=[];for(let Ni=0;Ni<ci.length;Ni++){const lo=ci[Ni],yo=[];for(let So=0;So<lo.length;So++){const Ko=lo[So-1],Uo=lo[So],Yo=lo[So+1],fr=0===So?new c(0,0):Uo.sub(Ko)._unit()._perp(),Ur=So===lo.length-1?new c(0,0):Yo.sub(Uo)._unit()._perp(),sa=fr._add(Ur)._unit(),Ya=sa.x*Ur.x+sa.y*Ur.y;0!==Ya&&sa._mult(1/Ya),yo.push(sa._mult(pi)._add(Uo))}Di.push(yo)}return Di}(le,Xn*Ot)),function(ci,pi,Di){for(let Ni=0;Ni<pi.length;Ni++){const lo=pi[Ni];if(ci.length>=3)for(let yo=0;yo<lo.length;yo++)if(Kd(ci,lo[yo]))return!0;if(jd(ci,lo,Di))return!0}return!1}(Nt,le,gn)}isTileClipped(){return!0}}function rp(y,g){return g>0?g+2*y:y}const Ap=ll([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),iu=ll([{name:"a_projected_pos",components:3,type:"Float32"}],4);ll([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);const Qu=ll([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}]);ll([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);const Wp=ll([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),S_=ll([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function zp(y,g,T){return y.sections.forEach(W=>{W.text=function(le,De,ke){const Ot=De.layout.get("text-transform").evaluate(ke,{});return"uppercase"===Ot?le=le.toLocaleUpperCase():"lowercase"===Ot&&(le=le.toLocaleLowerCase()),Go.applyArabicShaping&&(le=Go.applyArabicShaping(le)),le}(W.text,g,T)}),y}ll([{name:"triangle",components:3,type:"Uint16"}]),ll([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),ll([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"}]),ll([{type:"Float32",name:"offsetX"}]),ll([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),ll([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);const ap={"!":"\ufe15","#":"\uff03",$:"\uff04","%":"\uff05","&":"\uff06","(":"\ufe35",")":"\ufe36","*":"\uff0a","+":"\uff0b",",":"\ufe10","-":"\ufe32",".":"\u30fb","/":"\uff0f",":":"\ufe13",";":"\ufe14","<":"\ufe3f","=":"\uff1d",">":"\ufe40","?":"\ufe16","@":"\uff20","[":"\ufe47","\\":"\uff3c","]":"\ufe48","^":"\uff3e",_:"\ufe33","`":"\uff40","{":"\ufe37","|":"\u2015","}":"\ufe38","~":"\uff5e","\xa2":"\uffe0","\xa3":"\uffe1","\xa5":"\uffe5","\xa6":"\uffe4","\xac":"\uffe2","\xaf":"\uffe3","\u2013":"\ufe32","\u2014":"\ufe31","\u2018":"\ufe43","\u2019":"\ufe44","\u201c":"\ufe41","\u201d":"\ufe42","\u2026":"\ufe19","\u2027":"\u30fb","\u20a9":"\uffe6","\u3001":"\ufe11","\u3002":"\ufe12","\u3008":"\ufe3f","\u3009":"\ufe40","\u300a":"\ufe3d","\u300b":"\ufe3e","\u300c":"\ufe41","\u300d":"\ufe42","\u300e":"\ufe43","\u300f":"\ufe44","\u3010":"\ufe3b","\u3011":"\ufe3c","\u3014":"\ufe39","\u3015":"\ufe3a","\u3016":"\ufe17","\u3017":"\ufe18","\uff01":"\ufe15","\uff08":"\ufe35","\uff09":"\ufe36","\uff0c":"\ufe10","\uff0d":"\ufe32","\uff0e":"\u30fb","\uff1a":"\ufe13","\uff1b":"\ufe14","\uff1c":"\ufe3f","\uff1e":"\ufe40","\uff1f":"\ufe16","\uff3b":"\ufe47","\uff3d":"\ufe48","\uff3f":"\ufe33","\uff5b":"\ufe37","\uff5c":"\u2015","\uff5d":"\ufe38","\uff5f":"\ufe35","\uff60":"\ufe36","\uff61":"\ufe12","\uff62":"\ufe41","\uff63":"\ufe42"};var Rc=24,F_=lc,jp=function(y,g,T,W,le){var De,ke,Ot=8*le-W-1,Nt=(1<<Ot)-1,gn=Nt>>1,Xn=-7,ci=T?le-1:0,pi=T?-1:1,Di=y[g+ci];for(ci+=pi,De=Di&(1<<-Xn)-1,Di>>=-Xn,Xn+=Ot;Xn>0;De=256*De+y[g+ci],ci+=pi,Xn-=8);for(ke=De&(1<<-Xn)-1,De>>=-Xn,Xn+=W;Xn>0;ke=256*ke+y[g+ci],ci+=pi,Xn-=8);if(0===De)De=1-gn;else{if(De===Nt)return ke?NaN:1/0*(Di?-1:1);ke+=Math.pow(2,W),De-=gn}return(Di?-1:1)*ke*Math.pow(2,De-W)},Kp=function(y,g,T,W,le,De){var ke,Ot,Nt,gn=8*De-le-1,Xn=(1<<gn)-1,ci=Xn>>1,pi=23===le?Math.pow(2,-24)-Math.pow(2,-77):0,Di=W?0:De-1,Ni=W?1:-1,lo=g<0||0===g&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===1/0?(Ot=isNaN(g)?1:0,ke=Xn):(ke=Math.floor(Math.log(g)/Math.LN2),g*(Nt=Math.pow(2,-ke))<1&&(ke--,Nt*=2),(g+=ke+ci>=1?pi/Nt:pi*Math.pow(2,1-ci))*Nt>=2&&(ke++,Nt/=2),ke+ci>=Xn?(Ot=0,ke=Xn):ke+ci>=1?(Ot=(g*Nt-1)*Math.pow(2,le),ke+=ci):(Ot=g*Math.pow(2,ci-1)*Math.pow(2,le),ke=0));le>=8;y[T+Di]=255&Ot,Di+=Ni,Ot/=256,le-=8);for(ke=ke<<le|Ot,gn+=le;gn>0;y[T+Di]=255&ke,Di+=Ni,ke/=256,gn-=8);y[T+Di-Ni]|=128*lo};function lc(y){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(y)?y:new Uint8Array(y||0),this.pos=0,this.type=0,this.length=this.buf.length}lc.Varint=0,lc.Fixed64=1,lc.Bytes=2,lc.Fixed32=5;var $p=4294967296,Bp=1/$p,g_=typeof TextDecoder>"u"?null:new TextDecoder("utf8");function ep(y){return y.type===lc.Bytes?y.readVarint()+y.pos:y.pos+1}function h_(y,g,T){var W=g<=16383?1:g<=2097151?2:g<=268435455?3:Math.floor(Math.log(g)/(7*Math.LN2));T.realloc(W);for(var le=T.pos-1;le>=y;le--)T.buf[le+W]=T.buf[le]}function ef(y,g){for(var T=0;T<y.length;T++)g.writeVarint(y[T])}function qp(y,g){for(var T=0;T<y.length;T++)g.writeSVarint(y[T])}function L_(y,g){for(var T=0;T<y.length;T++)g.writeFloat(y[T])}function x_(y,g){for(var T=0;T<y.length;T++)g.writeDouble(y[T])}function tf(y,g){for(var T=0;T<y.length;T++)g.writeBoolean(y[T])}function wp(y,g){for(var T=0;T<y.length;T++)g.writeFixed32(y[T])}function _d(y,g){for(var T=0;T<y.length;T++)g.writeSFixed32(y[T])}function Jc(y,g){for(var T=0;T<y.length;T++)g.writeFixed64(y[T])}function v_(y,g){for(var T=0;T<y.length;T++)g.writeSFixed64(y[T])}function ou(y,g){return(y[g]|y[g+1]<<8|y[g+2]<<16)+16777216*y[g+3]}function Yu(y,g,T){y[T]=g,y[T+1]=g>>>8,y[T+2]=g>>>16,y[T+3]=g>>>24}function b_(y,g){return(y[g]|y[g+1]<<8|y[g+2]<<16)+(y[g+3]<<24)}lc.prototype={destroy:function(){this.buf=null},readFields:function(y,g,T){for(T=T||this.length;this.pos<T;){var W=this.readVarint(),le=W>>3,De=this.pos;this.type=7&W,y(le,g,this),this.pos===De&&this.skip(W)}return g},readMessage:function(y,g){return this.readFields(y,g,this.readVarint()+this.pos)},readFixed32:function(){var y=ou(this.buf,this.pos);return this.pos+=4,y},readSFixed32:function(){var y=b_(this.buf,this.pos);return this.pos+=4,y},readFixed64:function(){var y=ou(this.buf,this.pos)+ou(this.buf,this.pos+4)*$p;return this.pos+=8,y},readSFixed64:function(){var y=ou(this.buf,this.pos)+b_(this.buf,this.pos+4)*$p;return this.pos+=8,y},readFloat:function(){var y=jp(this.buf,this.pos,!0,23,4);return this.pos+=4,y},readDouble:function(){var y=jp(this.buf,this.pos,!0,52,8);return this.pos+=8,y},readVarint:function(y){var g,T,W=this.buf;return g=127&(T=W[this.pos++]),T<128?g:(g|=(127&(T=W[this.pos++]))<<7,T<128?g:(g|=(127&(T=W[this.pos++]))<<14,T<128?g:(g|=(127&(T=W[this.pos++]))<<21,T<128?g:function(le,De,ke){var Ot,Nt,gn=ke.buf;if(Ot=(112&(Nt=gn[ke.pos++]))>>4,Nt<128||(Ot|=(127&(Nt=gn[ke.pos++]))<<3,Nt<128)||(Ot|=(127&(Nt=gn[ke.pos++]))<<10,Nt<128)||(Ot|=(127&(Nt=gn[ke.pos++]))<<17,Nt<128)||(Ot|=(127&(Nt=gn[ke.pos++]))<<24,Nt<128)||(Ot|=(1&(Nt=gn[ke.pos++]))<<31,Nt<128))return function Vu(y,g,T){return T?4294967296*g+(y>>>0):4294967296*(g>>>0)+(y>>>0)}(le,Ot,De);throw new Error("Expected varint not more than 10 bytes")}(g|=(15&(T=W[this.pos]))<<28,y,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var y=this.readVarint();return y%2==1?(y+1)/-2:y/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var y=this.readVarint()+this.pos,g=this.pos;return this.pos=y,y-g>=12&&g_?g_.decode(this.buf.subarray(g,y)):function(T,W,le){for(var De="",ke=W;ke<le;){var Ot,Nt,gn,Xn=T[ke],ci=null,pi=Xn>239?4:Xn>223?3:Xn>191?2:1;if(ke+pi>le)break;1===pi?Xn<128&&(ci=Xn):2===pi?128==(192&(Ot=T[ke+1]))&&(ci=(31&Xn)<<6|63&Ot)<=127&&(ci=null):3===pi?(Nt=T[ke+2],128==(192&(Ot=T[ke+1]))&&128==(192&Nt)&&((ci=(15&Xn)<<12|(63&Ot)<<6|63&Nt)<=2047||ci>=55296&&ci<=57343)&&(ci=null)):4===pi&&(Nt=T[ke+2],gn=T[ke+3],128==(192&(Ot=T[ke+1]))&&128==(192&Nt)&&128==(192&gn)&&((ci=(15&Xn)<<18|(63&Ot)<<12|(63&Nt)<<6|63&gn)<=65535||ci>=1114112)&&(ci=null)),null===ci?(ci=65533,pi=1):ci>65535&&(ci-=65536,De+=String.fromCharCode(ci>>>10&1023|55296),ci=56320|1023&ci),De+=String.fromCharCode(ci),ke+=pi}return De}(this.buf,g,y)},readBytes:function(){var y=this.readVarint()+this.pos,g=this.buf.subarray(this.pos,y);return this.pos=y,g},readPackedVarint:function(y,g){if(this.type!==lc.Bytes)return y.push(this.readVarint(g));var T=ep(this);for(y=y||[];this.pos<T;)y.push(this.readVarint(g));return y},readPackedSVarint:function(y){if(this.type!==lc.Bytes)return y.push(this.readSVarint());var g=ep(this);for(y=y||[];this.pos<g;)y.push(this.readSVarint());return y},readPackedBoolean:function(y){if(this.type!==lc.Bytes)return y.push(this.readBoolean());var g=ep(this);for(y=y||[];this.pos<g;)y.push(this.readBoolean());return y},readPackedFloat:function(y){if(this.type!==lc.Bytes)return y.push(this.readFloat());var g=ep(this);for(y=y||[];this.pos<g;)y.push(this.readFloat());return y},readPackedDouble:function(y){if(this.type!==lc.Bytes)return y.push(this.readDouble());var g=ep(this);for(y=y||[];this.pos<g;)y.push(this.readDouble());return y},readPackedFixed32:function(y){if(this.type!==lc.Bytes)return y.push(this.readFixed32());var g=ep(this);for(y=y||[];this.pos<g;)y.push(this.readFixed32());return y},readPackedSFixed32:function(y){if(this.type!==lc.Bytes)return y.push(this.readSFixed32());var g=ep(this);for(y=y||[];this.pos<g;)y.push(this.readSFixed32());return y},readPackedFixed64:function(y){if(this.type!==lc.Bytes)return y.push(this.readFixed64());var g=ep(this);for(y=y||[];this.pos<g;)y.push(this.readFixed64());return y},readPackedSFixed64:function(y){if(this.type!==lc.Bytes)return y.push(this.readSFixed64());var g=ep(this);for(y=y||[];this.pos<g;)y.push(this.readSFixed64());return y},skip:function(y){var g=7&y;if(g===lc.Varint)for(;this.buf[this.pos++]>127;);else if(g===lc.Bytes)this.pos=this.readVarint()+this.pos;else if(g===lc.Fixed32)this.pos+=4;else{if(g!==lc.Fixed64)throw new Error("Unimplemented type: "+g);this.pos+=8}},writeTag:function(y,g){this.writeVarint(y<<3|g)},realloc:function(y){for(var g=this.length||16;g<this.pos+y;)g*=2;if(g!==this.length){var T=new Uint8Array(g);T.set(this.buf),this.buf=T,this.length=g}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(y){this.realloc(4),Yu(this.buf,y,this.pos),this.pos+=4},writeSFixed32:function(y){this.realloc(4),Yu(this.buf,y,this.pos),this.pos+=4},writeFixed64:function(y){this.realloc(8),Yu(this.buf,-1&y,this.pos),Yu(this.buf,Math.floor(y*Bp),this.pos+4),this.pos+=8},writeSFixed64:function(y){this.realloc(8),Yu(this.buf,-1&y,this.pos),Yu(this.buf,Math.floor(y*Bp),this.pos+4),this.pos+=8},writeVarint:function(y){(y=+y||0)>268435455||y<0?function(g,T){var W,le,De,Ot;if(g>=0?(W=g%4294967296|0,le=g/4294967296|0):(le=~(-g/4294967296),4294967295^(W=~(-g%4294967296))?W=W+1|0:(W=0,le=le+1|0)),g>=0x10000000000000000||g<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");T.realloc(10),De=W,(Ot=T).buf[Ot.pos++]=127&De|128,De>>>=7,Ot.buf[Ot.pos++]=127&De|128,De>>>=7,Ot.buf[Ot.pos++]=127&De|128,De>>>=7,Ot.buf[Ot.pos++]=127&De|128,Ot.buf[Ot.pos]=127&(De>>>=7),function(De,ke){var Ot=(7&De)<<4;ke.buf[ke.pos++]|=Ot|((De>>>=3)?128:0),De&&(ke.buf[ke.pos++]=127&De|((De>>>=7)?128:0),De&&(ke.buf[ke.pos++]=127&De|((De>>>=7)?128:0),De&&(ke.buf[ke.pos++]=127&De|((De>>>=7)?128:0),De&&(ke.buf[ke.pos++]=127&De|((De>>>=7)?128:0),De&&(ke.buf[ke.pos++]=127&De)))))}(le,T)}(y,this):(this.realloc(4),this.buf[this.pos++]=127&y|(y>127?128:0),y<=127||(this.buf[this.pos++]=127&(y>>>=7)|(y>127?128:0),y<=127||(this.buf[this.pos++]=127&(y>>>=7)|(y>127?128:0),y<=127||(this.buf[this.pos++]=y>>>7&127))))},writeSVarint:function(y){this.writeVarint(y<0?2*-y-1:2*y)},writeBoolean:function(y){this.writeVarint(!!y)},writeString:function(y){y=String(y),this.realloc(4*y.length),this.pos++;var g=this.pos;this.pos=function(W,le,De){for(var ke,Ot,Nt=0;Nt<le.length;Nt++){if((ke=le.charCodeAt(Nt))>55295&&ke<57344){if(!Ot){ke>56319||Nt+1===le.length?(W[De++]=239,W[De++]=191,W[De++]=189):Ot=ke;continue}if(ke<56320){W[De++]=239,W[De++]=191,W[De++]=189,Ot=ke;continue}ke=Ot-55296<<10|ke-56320|65536,Ot=null}else Ot&&(W[De++]=239,W[De++]=191,W[De++]=189,Ot=null);ke<128?W[De++]=ke:(ke<2048?W[De++]=ke>>6|192:(ke<65536?W[De++]=ke>>12|224:(W[De++]=ke>>18|240,W[De++]=ke>>12&63|128),W[De++]=ke>>6&63|128),W[De++]=63&ke|128)}return De}(this.buf,y,this.pos);var T=this.pos-g;T>=128&&h_(g,T,this),this.pos=g-1,this.writeVarint(T),this.pos+=T},writeFloat:function(y){this.realloc(4),Kp(this.buf,y,this.pos,!0,23,4),this.pos+=4},writeDouble:function(y){this.realloc(8),Kp(this.buf,y,this.pos,!0,52,8),this.pos+=8},writeBytes:function(y){var g=y.length;this.writeVarint(g),this.realloc(g);for(var T=0;T<g;T++)this.buf[this.pos++]=y[T]},writeRawMessage:function(y,g){this.pos++;var T=this.pos;y(g,this);var W=this.pos-T;W>=128&&h_(T,W,this),this.pos=T-1,this.writeVarint(W),this.pos+=W},writeMessage:function(y,g,T){this.writeTag(y,lc.Bytes),this.writeRawMessage(g,T)},writePackedVarint:function(y,g){g.length&&this.writeMessage(y,ef,g)},writePackedSVarint:function(y,g){g.length&&this.writeMessage(y,qp,g)},writePackedBoolean:function(y,g){g.length&&this.writeMessage(y,tf,g)},writePackedFloat:function(y,g){g.length&&this.writeMessage(y,L_,g)},writePackedDouble:function(y,g){g.length&&this.writeMessage(y,x_,g)},writePackedFixed32:function(y,g){g.length&&this.writeMessage(y,wp,g)},writePackedSFixed32:function(y,g){g.length&&this.writeMessage(y,_d,g)},writePackedFixed64:function(y,g){g.length&&this.writeMessage(y,Jc,g)},writePackedSFixed64:function(y,g){g.length&&this.writeMessage(y,v_,g)},writeBytesField:function(y,g){this.writeTag(y,lc.Bytes),this.writeBytes(g)},writeFixed32Field:function(y,g){this.writeTag(y,lc.Fixed32),this.writeFixed32(g)},writeSFixed32Field:function(y,g){this.writeTag(y,lc.Fixed32),this.writeSFixed32(g)},writeFixed64Field:function(y,g){this.writeTag(y,lc.Fixed64),this.writeFixed64(g)},writeSFixed64Field:function(y,g){this.writeTag(y,lc.Fixed64),this.writeSFixed64(g)},writeVarintField:function(y,g){this.writeTag(y,lc.Varint),this.writeVarint(g)},writeSVarintField:function(y,g){this.writeTag(y,lc.Varint),this.writeSVarint(g)},writeStringField:function(y,g){this.writeTag(y,lc.Bytes),this.writeString(g)},writeFloatField:function(y,g){this.writeTag(y,lc.Fixed32),this.writeFloat(g)},writeDoubleField:function(y,g){this.writeTag(y,lc.Fixed64),this.writeDouble(g)},writeBooleanField:function(y,g){this.writeVarintField(y,!!g)}};var hp=i(F_);const Xp=3;function e_(y,g,T){1===y&&T.readMessage(ru,g)}function ru(y,g,T){if(3===y){const{id:W,bitmap:le,width:De,height:ke,left:Ot,top:Nt,advance:gn}=T.readMessage(Zp,{});g.push({id:W,bitmap:new Zm({width:De+2*Xp,height:ke+2*Xp},le),metrics:{width:De,height:ke,left:Ot,top:Nt,advance:gn}})}}function Zp(y,g,T){1===y?g.id=T.readVarint():2===y?g.bitmap=T.readBytes():3===y?g.width=T.readVarint():4===y?g.height=T.readVarint():5===y?g.left=T.readSVarint():6===y?g.top=T.readSVarint():7===y&&(g.advance=T.readVarint())}const Qm=Xp;function Dp(y){let g=0,T=0;for(const ke of y)g+=ke.w*ke.h,T=Math.max(T,ke.w);y.sort((ke,Ot)=>Ot.h-ke.h);const W=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(g/.95)),T),h:1/0}];let le=0,De=0;for(const ke of y)for(let Ot=W.length-1;Ot>=0;Ot--){const Nt=W[Ot];if(!(ke.w>Nt.w||ke.h>Nt.h)){if(ke.x=Nt.x,ke.y=Nt.y,De=Math.max(De,ke.y+ke.h),le=Math.max(le,ke.x+ke.w),ke.w===Nt.w&&ke.h===Nt.h){const gn=W.pop();Ot<W.length&&(W[Ot]=gn)}else ke.h===Nt.h?(Nt.x+=ke.w,Nt.w-=ke.w):ke.w===Nt.w?(Nt.y+=ke.h,Nt.h-=ke.h):(W.push({x:Nt.x+ke.w,y:Nt.y,w:Nt.w-ke.w,h:ke.h}),Nt.y+=ke.h,Nt.h-=ke.h);break}}return{w:le,h:De,fill:g/(le*De)||0}}const bm=1;class t_{constructor(g,{pixelRatio:T,version:W,stretchX:le,stretchY:De,content:ke}){this.paddedRect=g,this.pixelRatio=T,this.stretchX=le,this.stretchY=De,this.content=ke,this.version=W}get tl(){return[this.paddedRect.x+bm,this.paddedRect.y+bm]}get br(){return[this.paddedRect.x+this.paddedRect.w-bm,this.paddedRect.y+this.paddedRect.h-bm]}get tlbr(){return this.tl.concat(this.br)}get displaySize(){return[(this.paddedRect.w-2*bm)/this.pixelRatio,(this.paddedRect.h-2*bm)/this.pixelRatio]}}class n_{constructor(g,T){const W={},le={};this.haveRenderCallbacks=[];const De=[];this.addImages(g,W,De),this.addImages(T,le,De);const{w:ke,h:Ot}=Dp(De),Nt=new ld({width:ke||1,height:Ot||1});for(const gn in g){const Xn=g[gn],ci=W[gn].paddedRect;ld.copy(Xn.data,Nt,{x:0,y:0},{x:ci.x+bm,y:ci.y+bm},Xn.data)}for(const gn in T){const Xn=T[gn],ci=le[gn].paddedRect,pi=ci.x+bm,Di=ci.y+bm,Ni=Xn.data.width,lo=Xn.data.height;ld.copy(Xn.data,Nt,{x:0,y:0},{x:pi,y:Di},Xn.data),ld.copy(Xn.data,Nt,{x:0,y:lo-1},{x:pi,y:Di-1},{width:Ni,height:1}),ld.copy(Xn.data,Nt,{x:0,y:0},{x:pi,y:Di+lo},{width:Ni,height:1}),ld.copy(Xn.data,Nt,{x:Ni-1,y:0},{x:pi-1,y:Di},{width:1,height:lo}),ld.copy(Xn.data,Nt,{x:0,y:0},{x:pi+Ni,y:Di},{width:1,height:lo})}this.image=Nt,this.iconPositions=W,this.patternPositions=le}addImages(g,T,W){for(const le in g){const De=g[le],ke={x:0,y:0,w:De.data.width+2*bm,h:De.data.height+2*bm};W.push(ke),T[le]=new t_(ke,De),De.hasRenderCallback&&this.haveRenderCallbacks.push(le)}}patchUpdatedImages(g,T){g.dispatchRenderCallbacks(this.haveRenderCallbacks);for(const W in g.updatedImages)this.patchUpdatedImage(this.iconPositions[W],g.getImage(W),T),this.patchUpdatedImage(this.patternPositions[W],g.getImage(W),T)}patchUpdatedImage(g,T,W){if(!g||!T||g.version===T.version)return;g.version=T.version;const[le,De]=g.tl;W.update(T.data,void 0,{x:le,y:De})}}var xp;Fr("ImagePosition",t_),Fr("ImageAtlas",n_),l.WritingMode=void 0,(xp=l.WritingMode||(l.WritingMode={}))[xp.none=0]="none",xp[xp.horizontal=1]="horizontal",xp[xp.vertical=2]="vertical",xp[xp.horizontalOnly=3]="horizontalOnly";const Ip=-17;class U{constructor(){this.scale=1,this.fontStack="",this.imageName=null}static forText(g,T){const W=new U;return W.scale=g||1,W.fontStack=T,W}static forImage(g){const T=new U;return T.imageName=g,T}}class S{constructor(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null}static fromFeature(g,T){const W=new S;for(let le=0;le<g.sections.length;le++){const De=g.sections[le];De.image?W.addImageSection(De):W.addTextSection(De,T)}return W}length(){return this.text.length}getSection(g){return this.sections[this.sectionIndex[g]]}getSectionIndex(g){return this.sectionIndex[g]}getCharCode(g){return this.text.charCodeAt(g)}verticalizePunctuation(){this.text=function(g){let T="";for(let W=0;W<g.length;W++){const le=g.charCodeAt(W+1)||null,De=g.charCodeAt(W-1)||null;T+=le&&Pr(le)&&!ap[g[W+1]]||De&&Pr(De)&&!ap[g[W-1]]||!ap[g[W]]?g[W]:ap[g[W]]}return T}(this.text)}trim(){let g=0;for(let W=0;W<this.text.length&&Q[this.text.charCodeAt(W)];W++)g++;let T=this.text.length;for(let W=this.text.length-1;W>=0&&W>=g&&Q[this.text.charCodeAt(W)];W--)T--;this.text=this.text.substring(g,T),this.sectionIndex=this.sectionIndex.slice(g,T)}substring(g,T){const W=new S;return W.text=this.text.substring(g,T),W.sectionIndex=this.sectionIndex.slice(g,T),W.sections=this.sections,W}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((g,T)=>Math.max(g,this.sections[T].scale),0)}addTextSection(g,T){this.text+=g.text,this.sections.push(U.forText(g.scale,g.fontStack||T));const W=this.sections.length-1;for(let le=0;le<g.text.length;++le)this.sectionIndex.push(W)}addImageSection(g){const T=g.image?g.image.name:"";if(0===T.length)return void q("Can't add FormattedSection with an empty image.");const W=this.getNextImageSectionCharCode();W?(this.text+=String.fromCharCode(W),this.sections.push(U.forImage(T)),this.sectionIndex.push(this.sections.length-1)):q("Reached maximum number of images 6401")}getNextImageSectionCharCode(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function w(y,g,T,W,le,De,ke,Ot,Nt,gn,Xn,ci,pi,Di,Ni,lo){const yo=S.fromFeature(y,le);let So;ci===l.WritingMode.vertical&&yo.verticalizePunctuation();const{processBidirectionalText:Ko,processStyledBidirectionalText:Uo}=Go;if(Ko&&1===yo.sections.length){So=[];const Ur=Ko(yo.toString(),ai(yo,gn,De,g,W,Di,Ni));for(const sa of Ur){const Ya=new S;Ya.text=sa,Ya.sections=yo.sections;for(let ua=0;ua<sa.length;ua++)Ya.sectionIndex.push(0);So.push(Ya)}}else if(Uo){So=[];const Ur=Uo(yo.text,yo.sectionIndex,ai(yo,gn,De,g,W,Di,Ni));for(const sa of Ur){const Ya=new S;Ya.text=sa[0],Ya.sectionIndex=sa[1],Ya.sections=yo.sections,So.push(Ya)}}else So=function(Ur,sa){const Ya=[],ua=Ur.text;let ca=0;for(const pa of sa)Ya.push(Ur.substring(ca,pa)),ca=pa;return ca<ua.length&&Ya.push(Ur.substring(ca,ua.length)),Ya}(yo,ai(yo,gn,De,g,W,Di,Ni));const Yo=[],fr={positionedLines:Yo,text:yo.toString(),top:Xn[1],bottom:Xn[1],left:Xn[0],right:Xn[0],writingMode:ci,iconsInText:!1,verticalizable:!1};return function(Ur,sa,Ya,ua,ca,pa,Xa,Ma,ea,rs,Sa,ml){let nd=0,cd=Ip,sm=0,ju=0;const su="right"===Ma?1:"left"===Ma?0:.5;let qd=0;for(const Vd of ca){Vd.trim();const Ad=Vd.getMaxScale(),fd=(Ad-1)*Rc,Om={positionedGlyphs:[],lineOffset:0};Ur.positionedLines[qd]=Om;const cu=Om.positionedGlyphs;let du=0;if(!Vd.length()){cd+=pa,++qd;continue}for(let Wm=0;Wm<Vd.length();Wm++){const Sl=Vd.getSection(Wm),np=Vd.getSectionIndex(Wm),lm=Vd.getCharCode(Wm);let Sm=0,yp=null,Op=null,cp=null,Jp=Rc;const dp=!(ea===l.WritingMode.horizontal||!Sa&&!pr(lm)||Sa&&(Q[lm]||(Xd=lm,ri.Arabic(Xd)||ri["Arabic Supplement"](Xd)||ri["Arabic Extended-A"](Xd)||ri["Arabic Presentation Forms-A"](Xd)||ri["Arabic Presentation Forms-B"](Xd))));if(Sl.imageName){const ip=ua[Sl.imageName];if(!ip)continue;cp=Sl.imageName,Ur.iconsInText=Ur.iconsInText||!0,Op=ip.paddedRect;const Au=ip.displaySize;Sl.scale=Sl.scale*Rc/ml,yp={width:Au[0],height:Au[1],left:bm,top:-Qm,advance:dp?Au[1]:Au[0]},Sm=fd+(Rc-Au[1]*Sl.scale),Jp=yp.advance;const Lp=dp?Au[0]*Sl.scale-Rc*Ad:Au[1]*Sl.scale-Rc*Ad;Lp>0&&Lp>du&&(du=Lp)}else{const ip=Ya[Sl.fontStack],Au=ip&&ip[lm];if(Au&&Au.rect)Op=Au.rect,yp=Au.metrics;else{const Lp=sa[Sl.fontStack],d_=Lp&&Lp[lm];if(!d_)continue;yp=d_.metrics}Sm=(Ad-Sl.scale)*Rc}dp?(Ur.verticalizable=!0,cu.push({glyph:lm,imageName:cp,x:nd,y:cd+Sm,vertical:dp,scale:Sl.scale,fontStack:Sl.fontStack,sectionIndex:np,metrics:yp,rect:Op}),nd+=Jp*Sl.scale+rs):(cu.push({glyph:lm,imageName:cp,x:nd,y:cd+Sm,vertical:dp,scale:Sl.scale,fontStack:Sl.fontStack,sectionIndex:np,metrics:yp,rect:Op}),nd+=yp.advance*Sl.scale+rs)}0!==cu.length&&(sm=Math.max(nd-rs,sm),ao(cu,0,cu.length-1,su,du)),nd=0;const wd=pa*Ad+du;Om.lineOffset=Math.max(du,fd),cd+=wd,ju=Math.max(wd,ju),++qd}var Xd;const Em=cd-Ip,{horizontalAlign:Eu,verticalAlign:lu}=Ai(Xa);(function(Vd,Ad,fd,Om,cu,du,wd,Wm,Sl){const np=(Ad-fd)*cu;let lm=0;lm=du!==wd?-Wm*Om-Ip:(-Om*Sl+.5)*wd;for(const Sm of Vd)for(const yp of Sm.positionedGlyphs)yp.x+=np,yp.y+=lm})(Ur.positionedLines,su,Eu,lu,sm,ju,pa,Em,ca.length),Ur.top+=-lu*Em,Ur.bottom=Ur.top+Em,Ur.left+=-Eu*sm,Ur.right=Ur.left+sm}(fr,g,T,W,So,ke,Ot,Nt,ci,gn,pi,lo),!function(Ur){for(const sa of Ur)if(0!==sa.positionedGlyphs.length)return!1;return!0}(Yo)&&fr}const Q={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},oe={10:!0,32:!0,38:!0,40:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0};function fe(y,g,T,W,le,De){if(g.imageName){const ke=W[g.imageName];return ke?ke.displaySize[0]*g.scale*Rc/De+le:0}{const ke=T[g.fontStack],Ot=ke&&ke[y];return Ot?Ot.metrics.advance*g.scale+le:0}}function Ee(y,g,T,W){const le=Math.pow(y-g,2);return W?y<g?le/2:2*le:le+Math.abs(T)*T}function it(y,g,T){let W=0;return 10===y&&(W-=1e4),T&&(W+=150),40!==y&&65288!==y||(W+=50),41!==g&&65289!==g||(W+=50),W}function mt(y,g,T,W,le,De){let ke=null,Ot=Ee(g,T,le,De);for(const Nt of W){const gn=Ee(g-Nt.x,T,le,De)+Nt.badness;gn<=Ot&&(ke=Nt,Ot=gn)}return{index:y,x:g,priorBreak:ke,badness:Ot}}function $t(y){return y?$t(y.priorBreak).concat(y.index):[]}function ai(y,g,T,W,le,De,ke){if("point"!==De)return[];if(!y)return[];const Ot=[],Nt=function(pi,Di,Ni,lo,yo,So){let Ko=0;for(let Uo=0;Uo<pi.length();Uo++){const Yo=pi.getSection(Uo);Ko+=fe(pi.getCharCode(Uo),Yo,lo,yo,Di,So)}return Ko/Math.max(1,Math.ceil(Ko/Ni))}(y,g,T,W,le,ke),gn=y.text.indexOf("\u200b")>=0;let Xn=0;for(let pi=0;pi<y.length();pi++){const Di=y.getSection(pi),Ni=y.getCharCode(pi);if(Q[Ni]||(Xn+=fe(Ni,Di,W,le,g,ke)),pi<y.length()-1){const lo=!((ci=Ni)<11904||!(ri["Bopomofo Extended"](ci)||ri.Bopomofo(ci)||ri["CJK Compatibility Forms"](ci)||ri["CJK Compatibility Ideographs"](ci)||ri["CJK Compatibility"](ci)||ri["CJK Radicals Supplement"](ci)||ri["CJK Strokes"](ci)||ri["CJK Symbols and Punctuation"](ci)||ri["CJK Unified Ideographs Extension A"](ci)||ri["CJK Unified Ideographs"](ci)||ri["Enclosed CJK Letters and Months"](ci)||ri["Halfwidth and Fullwidth Forms"](ci)||ri.Hiragana(ci)||ri["Ideographic Description Characters"](ci)||ri["Kangxi Radicals"](ci)||ri["Katakana Phonetic Extensions"](ci)||ri.Katakana(ci)||ri["Vertical Forms"](ci)||ri["Yi Radicals"](ci)||ri["Yi Syllables"](ci)));(oe[Ni]||lo||Di.imageName)&&Ot.push(mt(pi+1,Xn,Nt,Ot,it(Ni,y.getCharCode(pi+1),lo&&gn),!1))}}var ci;return $t(mt(y.length(),Xn,Nt,Ot,0,!0))}function Ai(y){let g=.5,T=.5;switch(y){case"right":case"top-right":case"bottom-right":g=1;break;case"left":case"top-left":case"bottom-left":g=0}switch(y){case"bottom":case"bottom-right":case"bottom-left":T=1;break;case"top":case"top-right":case"top-left":T=0}return{horizontalAlign:g,verticalAlign:T}}function ao(y,g,T,W,le){if(!W&&!le)return;const De=y[T],ke=(y[T].x+De.metrics.advance*De.scale)*W;for(let Ot=g;Ot<=T;Ot++)y[Ot].x-=ke,y[Ot].y+=le}function go(y,g,T){const{horizontalAlign:W,verticalAlign:le}=Ai(T),De=g[0]-y.displaySize[0]*W,ke=g[1]-y.displaySize[1]*le;return{image:y,top:ke,bottom:ke+y.displaySize[1],left:De,right:De+y.displaySize[0]}}function Co(y,g,T,W,le,De){const ke=y.image;let Ot;if(ke.content){const yo=ke.content,So=ke.pixelRatio||1;Ot=[yo[0]/So,yo[1]/So,ke.displaySize[0]-yo[2]/So,ke.displaySize[1]-yo[3]/So]}const Nt=g.left*De,gn=g.right*De;let Xn,ci,pi,Di;"width"===T||"both"===T?(Di=le[0]+Nt-W[3],ci=le[0]+gn+W[1]):(Di=le[0]+(Nt+gn-ke.displaySize[0])/2,ci=Di+ke.displaySize[0]);const Ni=g.top*De,lo=g.bottom*De;return"height"===T||"both"===T?(Xn=le[1]+Ni-W[0],pi=le[1]+lo+W[2]):(Xn=le[1]+(Ni+lo-ke.displaySize[1])/2,pi=Xn+ke.displaySize[1]),{image:ke,top:Xn,right:ci,bottom:pi,left:Di,collisionPadding:Ot}}const Vo=255,nr=128,mr=Vo*nr;function Br(y,g){const{expression:T}=g;if("constant"===T.kind)return{kind:"constant",layoutSize:T.evaluate(new dr(y+1))};if("source"===T.kind)return{kind:"source"};{const{zoomStops:W,interpolationType:le}=T;let De=0;for(;De<W.length&&W[De]<=y;)De++;De=Math.max(0,De-1);let ke=De;for(;ke<W.length&&W[ke]<y+1;)ke++;ke=Math.min(W.length-1,ke);const Ot=W[De],Nt=W[ke];return"composite"===T.kind?{kind:"composite",minZoom:Ot,maxZoom:Nt,interpolationType:le}:{kind:"camera",minZoom:Ot,maxZoom:Nt,minSize:T.evaluate(new dr(Ot)),maxSize:T.evaluate(new dr(Nt)),interpolationType:le}}}function wr(y,g,T){let W="never";const le=y.get(g);return le?W=le:y.get(T)&&(W="always"),W}const Jr=Mc.VectorTileFeature.types,ir=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function na(y,g,T,W,le,De,ke,Ot,Nt,gn,Xn,ci,pi){const Di=Ot?Math.min(mr,Math.round(Ot[0])):0,Ni=Ot?Math.min(mr,Math.round(Ot[1])):0;y.emplaceBack(g,T,Math.round(32*W),Math.round(32*le),De,ke,(Di<<1)+(Nt?1:0),Ni,16*gn,16*Xn,256*ci,256*pi)}function Ea(y,g,T){y.emplaceBack(g.x,g.y,T),y.emplaceBack(g.x,g.y,T),y.emplaceBack(g.x,g.y,T),y.emplaceBack(g.x,g.y,T)}function gs(y){for(const g of y.sections)if(Ls(g.text))return!0;return!1}class Gr{constructor(g){this.layoutVertexArray=new tr,this.indexArray=new Rr,this.programConfigurations=g,this.segments=new qa,this.dynamicLayoutVertexArray=new br,this.opacityVertexArray=new fa,this.hasVisibleVertices=!1,this.placedSymbolArray=new fn}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length}upload(g,T,W,le){this.isEmpty()||(W&&(this.layoutVertexBuffer=g.createVertexBuffer(this.layoutVertexArray,Ap.members),this.indexBuffer=g.createIndexBuffer(this.indexArray,T),this.dynamicLayoutVertexBuffer=g.createVertexBuffer(this.dynamicLayoutVertexArray,iu.members,!0),this.opacityVertexBuffer=g.createVertexBuffer(this.opacityVertexArray,ir,!0),this.opacityVertexBuffer.itemSize=1),(W||le)&&this.programConfigurations.upload(g))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())}}Fr("SymbolBuffers",Gr);class Bl{constructor(g,T,W){this.layoutVertexArray=new g,this.layoutAttributes=T,this.indexArray=new W,this.segments=new qa,this.collisionVertexArray=new $r}upload(g){this.layoutVertexBuffer=g.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=g.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=g.createVertexBuffer(this.collisionVertexArray,Qu.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())}}Fr("CollisionBuffers",Bl);class Yl{constructor(g){this.collisionBoxArray=g.collisionBoxArray,this.zoom=g.zoom,this.overscaling=g.overscaling,this.layers=g.layers,this.layerIds=this.layers.map(ke=>ke.id),this.index=g.index,this.pixelRatio=g.pixelRatio,this.sourceLayerIndex=g.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=fm([]),this.placementViewportMatrix=fm([]);const T=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Br(this.zoom,T["text-size"]),this.iconSizeData=Br(this.zoom,T["icon-size"]);const W=this.layers[0].layout,le=W.get("symbol-sort-key"),De=W.get("symbol-z-order");this.canOverlap="never"!==wr(W,"text-overlap","text-allow-overlap")||"never"!==wr(W,"icon-overlap","icon-allow-overlap")||W.get("text-ignore-placement")||W.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==De&&!le.isConstant(),this.sortFeaturesByY=("viewport-y"===De||"auto"===De&&!this.sortFeaturesByKey)&&this.canOverlap,"point"===W.get("symbol-placement")&&(this.writingModes=W.get("text-writing-mode").map(ke=>l.WritingMode[ke])),this.stateDependentLayerIds=this.layers.filter(ke=>ke.isStateDependent()).map(ke=>ke.id),this.sourceID=g.sourceID}createArrays(){this.text=new Gr(new mm(this.layers,this.zoom,g=>/^text/.test(g))),this.icon=new Gr(new mm(this.layers,this.zoom,g=>/^icon/.test(g))),this.glyphOffsetArray=new bi,this.lineVertexArray=new zi,this.symbolInstances=new ei,this.textAnchorOffsets=new pt}calculateGlyphDependencies(g,T,W,le,De){for(let ke=0;ke<g.length;ke++)if(T[g.charCodeAt(ke)]=!0,(W||le)&&De){const Ot=ap[g.charAt(ke)];Ot&&(T[Ot.charCodeAt(0)]=!0)}}populate(g,T,W){const le=this.layers[0],De=le.layout,ke=De.get("text-font"),Ot=De.get("text-field"),Nt=De.get("icon-image"),gn=("constant"!==Ot.value.kind||Ot.value.value instanceof Wi&&!Ot.value.value.isEmpty()||Ot.value.value.toString().length>0)&&("constant"!==ke.value.kind||ke.value.value.length>0),Xn="constant"!==Nt.value.kind||!!Nt.value.value||Object.keys(Nt.parameters).length>0,ci=De.get("symbol-sort-key");if(this.features=[],!gn&&!Xn)return;const pi=T.iconDependencies,Di=T.glyphDependencies,Ni=T.availableImages,lo=new dr(this.zoom);for(const{feature:yo,id:So,index:Ko,sourceLayerIndex:Uo}of g){const Yo=le._featureFilter.needGeometry,fr=Zc(yo,Yo);if(!le._featureFilter.filter(lo,fr,W))continue;let Ur,sa;if(Yo||(fr.geometry=ad(yo)),gn){const ua=le.getValueAndResolveTokens("text-field",fr,W,Ni),ca=Wi.factory(ua);gs(ca)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===Ki()||this.hasRTLText&&Go.isParsed())&&(Ur=zp(ca,le,fr))}if(Xn){const ua=le.getValueAndResolveTokens("icon-image",fr,W,Ni);sa=ua instanceof _n?ua:_n.fromString(ua)}if(!Ur&&!sa)continue;const Ya=this.sortFeaturesByKey?ci.evaluate(fr,{},W):void 0;if(this.features.push({id:So,text:Ur,icon:sa,index:Ko,sourceLayerIndex:Uo,geometry:fr.geometry,properties:yo.properties,type:Jr[yo.type],sortKey:Ya}),sa&&(pi[sa.name]=!0),Ur){const ua=ke.evaluate(fr,{},W).join(","),ca="viewport"!==De.get("text-rotation-alignment")&&"point"!==De.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(l.WritingMode.vertical)>=0;for(const pa of Ur.sections)if(pa.image)pi[pa.image.name]=!0;else{const Xa=Mn(Ur.toString()),Ma=pa.fontStack||ua,ea=Di[Ma]=Di[Ma]||{};this.calculateGlyphDependencies(pa.text,ea,ca,this.allowVerticalPlacement,Xa)}}}"line"===De.get("symbol-placement")&&(this.features=function(yo){const So={},Ko={},Uo=[];let Yo=0;function fr(ua){Uo.push(yo[ua]),Yo++}function Ur(ua,ca,pa){const Xa=Ko[ua];return delete Ko[ua],Ko[ca]=Xa,Uo[Xa].geometry[0].pop(),Uo[Xa].geometry[0]=Uo[Xa].geometry[0].concat(pa[0]),Xa}function sa(ua,ca,pa){const Xa=So[ca];return delete So[ca],So[ua]=Xa,Uo[Xa].geometry[0].shift(),Uo[Xa].geometry[0]=pa[0].concat(Uo[Xa].geometry[0]),Xa}function Ya(ua,ca,pa){const Xa=pa?ca[0][ca[0].length-1]:ca[0][0];return`${ua}:${Xa.x}:${Xa.y}`}for(let ua=0;ua<yo.length;ua++){const ca=yo[ua],pa=ca.geometry,Xa=ca.text?ca.text.toString():null;if(!Xa){fr(ua);continue}const Ma=Ya(Xa,pa),ea=Ya(Xa,pa,!0);if(Ma in Ko&&ea in So&&Ko[Ma]!==So[ea]){const rs=sa(Ma,ea,pa),Sa=Ur(Ma,ea,Uo[rs].geometry);delete So[Ma],delete Ko[ea],Ko[Ya(Xa,Uo[Sa].geometry,!0)]=Sa,Uo[rs].geometry=null}else Ma in Ko?Ur(Ma,ea,pa):ea in So?sa(Ma,ea,pa):(fr(ua),So[Ma]=Yo-1,Ko[ea]=Yo-1)}return Uo.filter(ua=>ua.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((yo,So)=>yo.sortKey-So.sortKey)}update(g,T,W){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(g,T,this.layers,W),this.icon.programConfigurations.updatePaintArrays(g,T,this.layers,W))}isEmpty(){return 0===this.symbolInstances.length&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(g){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(g),this.iconCollisionBox.upload(g)),this.text.upload(g,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(g,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(g,T){const W=this.lineVertexArray.length;if(void 0!==g.segment){let le=g.dist(T[g.segment+1]),De=g.dist(T[g.segment]);const ke={};for(let Ot=g.segment+1;Ot<T.length;Ot++)ke[Ot]={x:T[Ot].x,y:T[Ot].y,tileUnitDistanceFromAnchor:le},Ot<T.length-1&&(le+=T[Ot+1].dist(T[Ot]));for(let Ot=g.segment||0;Ot>=0;Ot--)ke[Ot]={x:T[Ot].x,y:T[Ot].y,tileUnitDistanceFromAnchor:De},Ot>0&&(De+=T[Ot-1].dist(T[Ot]));for(let Ot=0;Ot<T.length;Ot++){const Nt=ke[Ot];this.lineVertexArray.emplaceBack(Nt.x,Nt.y,Nt.tileUnitDistanceFromAnchor)}}return{lineStartIndex:W,lineLength:this.lineVertexArray.length-W}}addSymbols(g,T,W,le,De,ke,Ot,Nt,gn,Xn,ci,pi){const Di=g.indexArray,Ni=g.layoutVertexArray,lo=g.segments.prepareSegment(4*T.length,Ni,Di,this.canOverlap?ke.sortKey:void 0),yo=this.glyphOffsetArray.length,So=lo.vertexLength,Ko=this.allowVerticalPlacement&&Ot===l.WritingMode.vertical?Math.PI/2:0,Uo=ke.text&&ke.text.sections;for(let Yo=0;Yo<T.length;Yo++){const{tl:fr,tr:Ur,bl:sa,br:Ya,tex:ua,pixelOffsetTL:ca,pixelOffsetBR:pa,minFontScaleX:Xa,minFontScaleY:Ma,glyphOffset:ea,isSDF:rs,sectionIndex:Sa}=T[Yo],ml=lo.vertexLength,nd=ea[1];na(Ni,Nt.x,Nt.y,fr.x,nd+fr.y,ua.x,ua.y,W,rs,ca.x,ca.y,Xa,Ma),na(Ni,Nt.x,Nt.y,Ur.x,nd+Ur.y,ua.x+ua.w,ua.y,W,rs,pa.x,ca.y,Xa,Ma),na(Ni,Nt.x,Nt.y,sa.x,nd+sa.y,ua.x,ua.y+ua.h,W,rs,ca.x,pa.y,Xa,Ma),na(Ni,Nt.x,Nt.y,Ya.x,nd+Ya.y,ua.x+ua.w,ua.y+ua.h,W,rs,pa.x,pa.y,Xa,Ma),Ea(g.dynamicLayoutVertexArray,Nt,Ko),Di.emplaceBack(ml,ml+1,ml+2),Di.emplaceBack(ml+1,ml+2,ml+3),lo.vertexLength+=4,lo.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(ea[0]),Yo!==T.length-1&&Sa===T[Yo+1].sectionIndex||g.programConfigurations.populatePaintArrays(Ni.length,ke,ke.index,{},pi,Uo&&Uo[Sa])}g.placedSymbolArray.emplaceBack(Nt.x,Nt.y,yo,this.glyphOffsetArray.length-yo,So,gn,Xn,Nt.segment,W?W[0]:0,W?W[1]:0,le[0],le[1],Ot,0,!1,0,ci)}_addCollisionDebugVertex(g,T,W,le,De,ke){return T.emplaceBack(0,0),g.emplaceBack(W.x,W.y,le,De,Math.round(ke.x),Math.round(ke.y))}addCollisionDebugVertices(g,T,W,le,De,ke,Ot){const Nt=De.segments.prepareSegment(4,De.layoutVertexArray,De.indexArray),gn=Nt.vertexLength,Xn=De.layoutVertexArray,ci=De.collisionVertexArray,pi=Ot.anchorX,Di=Ot.anchorY;this._addCollisionDebugVertex(Xn,ci,ke,pi,Di,new c(g,T)),this._addCollisionDebugVertex(Xn,ci,ke,pi,Di,new c(W,T)),this._addCollisionDebugVertex(Xn,ci,ke,pi,Di,new c(W,le)),this._addCollisionDebugVertex(Xn,ci,ke,pi,Di,new c(g,le)),Nt.vertexLength+=4;const Ni=De.indexArray;Ni.emplaceBack(gn,gn+1),Ni.emplaceBack(gn+1,gn+2),Ni.emplaceBack(gn+2,gn+3),Ni.emplaceBack(gn+3,gn),Nt.primitiveLength+=4}addDebugCollisionBoxes(g,T,W,le){for(let De=g;De<T;De++){const ke=this.collisionBoxArray.get(De);this.addCollisionDebugVertices(ke.x1,ke.y1,ke.x2,ke.y2,le?this.textCollisionBox:this.iconCollisionBox,ke.anchorPoint,W)}}generateCollisionDebugBuffers(){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new Bl(ga,Wp.members,Xr),this.iconCollisionBox=new Bl(ga,Wp.members,Xr);for(let g=0;g<this.symbolInstances.length;g++){const T=this.symbolInstances.get(g);this.addDebugCollisionBoxes(T.textBoxStartIndex,T.textBoxEndIndex,T,!0),this.addDebugCollisionBoxes(T.verticalTextBoxStartIndex,T.verticalTextBoxEndIndex,T,!0),this.addDebugCollisionBoxes(T.iconBoxStartIndex,T.iconBoxEndIndex,T,!1),this.addDebugCollisionBoxes(T.verticalIconBoxStartIndex,T.verticalIconBoxEndIndex,T,!1)}}_deserializeCollisionBoxesForSymbol(g,T,W,le,De,ke,Ot,Nt,gn){const Xn={};for(let ci=T;ci<W;ci++){const pi=g.get(ci);Xn.textBox={x1:pi.x1,y1:pi.y1,x2:pi.x2,y2:pi.y2,anchorPointX:pi.anchorPointX,anchorPointY:pi.anchorPointY},Xn.textFeatureIndex=pi.featureIndex;break}for(let ci=le;ci<De;ci++){const pi=g.get(ci);Xn.verticalTextBox={x1:pi.x1,y1:pi.y1,x2:pi.x2,y2:pi.y2,anchorPointX:pi.anchorPointX,anchorPointY:pi.anchorPointY},Xn.verticalTextFeatureIndex=pi.featureIndex;break}for(let ci=ke;ci<Ot;ci++){const pi=g.get(ci);Xn.iconBox={x1:pi.x1,y1:pi.y1,x2:pi.x2,y2:pi.y2,anchorPointX:pi.anchorPointX,anchorPointY:pi.anchorPointY},Xn.iconFeatureIndex=pi.featureIndex;break}for(let ci=Nt;ci<gn;ci++){const pi=g.get(ci);Xn.verticalIconBox={x1:pi.x1,y1:pi.y1,x2:pi.x2,y2:pi.y2,anchorPointX:pi.anchorPointX,anchorPointY:pi.anchorPointY},Xn.verticalIconFeatureIndex=pi.featureIndex;break}return Xn}deserializeCollisionBoxes(g){this.collisionArrays=[];for(let T=0;T<this.symbolInstances.length;T++){const W=this.symbolInstances.get(T);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(g,W.textBoxStartIndex,W.textBoxEndIndex,W.verticalTextBoxStartIndex,W.verticalTextBoxEndIndex,W.iconBoxStartIndex,W.iconBoxEndIndex,W.verticalIconBoxStartIndex,W.verticalIconBoxEndIndex))}}hasTextData(){return this.text.segments.get().length>0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(g,T){const W=g.placedSymbolArray.get(T),le=W.vertexStartIndex+4*W.numGlyphs;for(let De=W.vertexStartIndex;De<le;De+=4)g.indexArray.emplaceBack(De,De+1,De+2),g.indexArray.emplaceBack(De+1,De+2,De+3)}getSortedSymbolIndexes(g){if(this.sortedAngle===g&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;const T=Math.sin(g),W=Math.cos(g),le=[],De=[],ke=[];for(let Ot=0;Ot<this.symbolInstances.length;++Ot){ke.push(Ot);const Nt=this.symbolInstances.get(Ot);le.push(0|Math.round(T*Nt.anchorX+W*Nt.anchorY)),De.push(Nt.featureIndex)}return ke.sort((Ot,Nt)=>le[Ot]-le[Nt]||De[Nt]-De[Ot]),ke}addToSortKeyRanges(g,T){const W=this.sortKeyRanges[this.sortKeyRanges.length-1];W&&W.sortKey===T?W.symbolInstanceEnd=g+1:this.sortKeyRanges.push({sortKey:T,symbolInstanceStart:g,symbolInstanceEnd:g+1})}sortFeatures(g){if(this.sortFeaturesByY&&this.sortedAngle!==g&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(g),this.sortedAngle=g,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(const T of this.symbolInstanceIndexes){const W=this.symbolInstances.get(T);this.featureSortOrder.push(W.featureIndex),[W.rightJustifiedTextSymbolIndex,W.centerJustifiedTextSymbolIndex,W.leftJustifiedTextSymbolIndex].forEach((le,De,ke)=>{le>=0&&ke.indexOf(le)===De&&this.addIndicesForPlacedSymbol(this.text,le)}),W.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,W.verticalPlacedTextSymbolIndex),W.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,W.placedIconSymbolIndex),W.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,W.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}let us,kd;Fr("SymbolBucket",Yl,{omit:["layers","collisionBoxArray","features","compareText"]}),Yl.MAX_GLYPHS=65535,Yl.addDynamicAttributes=Ea;var Cm={get paint(){return kd=kd||new il({"icon-opacity":new Sr(Pt.paint_symbol["icon-opacity"]),"icon-color":new Sr(Pt.paint_symbol["icon-color"]),"icon-halo-color":new Sr(Pt.paint_symbol["icon-halo-color"]),"icon-halo-width":new Sr(Pt.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Sr(Pt.paint_symbol["icon-halo-blur"]),"icon-translate":new xr(Pt.paint_symbol["icon-translate"]),"icon-translate-anchor":new xr(Pt.paint_symbol["icon-translate-anchor"]),"text-opacity":new Sr(Pt.paint_symbol["text-opacity"]),"text-color":new Sr(Pt.paint_symbol["text-color"],{runtimeType:nn,getOverride:y=>y.textColor,hasOverride:y=>!!y.textColor}),"text-halo-color":new Sr(Pt.paint_symbol["text-halo-color"]),"text-halo-width":new Sr(Pt.paint_symbol["text-halo-width"]),"text-halo-blur":new Sr(Pt.paint_symbol["text-halo-blur"]),"text-translate":new xr(Pt.paint_symbol["text-translate"]),"text-translate-anchor":new xr(Pt.paint_symbol["text-translate-anchor"])})},get layout(){return us=us||new il({"symbol-placement":new xr(Pt.layout_symbol["symbol-placement"]),"symbol-spacing":new xr(Pt.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new xr(Pt.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Sr(Pt.layout_symbol["symbol-sort-key"]),"symbol-z-order":new xr(Pt.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new xr(Pt.layout_symbol["icon-allow-overlap"]),"icon-overlap":new xr(Pt.layout_symbol["icon-overlap"]),"icon-ignore-placement":new xr(Pt.layout_symbol["icon-ignore-placement"]),"icon-optional":new xr(Pt.layout_symbol["icon-optional"]),"icon-rotation-alignment":new xr(Pt.layout_symbol["icon-rotation-alignment"]),"icon-size":new Sr(Pt.layout_symbol["icon-size"]),"icon-text-fit":new xr(Pt.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new xr(Pt.layout_symbol["icon-text-fit-padding"]),"icon-image":new Sr(Pt.layout_symbol["icon-image"]),"icon-rotate":new Sr(Pt.layout_symbol["icon-rotate"]),"icon-padding":new Sr(Pt.layout_symbol["icon-padding"]),"icon-keep-upright":new xr(Pt.layout_symbol["icon-keep-upright"]),"icon-offset":new Sr(Pt.layout_symbol["icon-offset"]),"icon-anchor":new Sr(Pt.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new xr(Pt.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new xr(Pt.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new xr(Pt.layout_symbol["text-rotation-alignment"]),"text-field":new Sr(Pt.layout_symbol["text-field"]),"text-font":new Sr(Pt.layout_symbol["text-font"]),"text-size":new Sr(Pt.layout_symbol["text-size"]),"text-max-width":new Sr(Pt.layout_symbol["text-max-width"]),"text-line-height":new xr(Pt.layout_symbol["text-line-height"]),"text-letter-spacing":new Sr(Pt.layout_symbol["text-letter-spacing"]),"text-justify":new Sr(Pt.layout_symbol["text-justify"]),"text-radial-offset":new Sr(Pt.layout_symbol["text-radial-offset"]),"text-variable-anchor":new xr(Pt.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new Sr(Pt.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new Sr(Pt.layout_symbol["text-anchor"]),"text-max-angle":new xr(Pt.layout_symbol["text-max-angle"]),"text-writing-mode":new xr(Pt.layout_symbol["text-writing-mode"]),"text-rotate":new Sr(Pt.layout_symbol["text-rotate"]),"text-padding":new xr(Pt.layout_symbol["text-padding"]),"text-keep-upright":new xr(Pt.layout_symbol["text-keep-upright"]),"text-transform":new Sr(Pt.layout_symbol["text-transform"]),"text-offset":new Sr(Pt.layout_symbol["text-offset"]),"text-allow-overlap":new xr(Pt.layout_symbol["text-allow-overlap"]),"text-overlap":new xr(Pt.layout_symbol["text-overlap"]),"text-ignore-placement":new xr(Pt.layout_symbol["text-ignore-placement"]),"text-optional":new xr(Pt.layout_symbol["text-optional"])})}};class _l{constructor(g){if(void 0===g.property.overrides)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=g.property.overrides?g.property.overrides.runtimeType:ni,this.defaultValue=g}evaluate(g){if(g.formattedSection){const T=this.defaultValue.property.overrides;if(T&&T.hasOverride(g.formattedSection))return T.getOverride(g.formattedSection)}return g.feature&&g.featureState?this.defaultValue.evaluate(g.feature,g.featureState):this.defaultValue.property.specification.default}eachChild(g){this.defaultValue.isConstant()||g(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}Fr("FormatSectionOverride",_l,{omit:["defaultValue"]});class Ws extends Nl{constructor(g){super(g,Cm)}recalculate(g,T){if(super.recalculate(g,T),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]="map"===this.layout.get("text-rotation-alignment")?"map":"viewport"),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){const W=this.layout.get("text-writing-mode");if(W){const le=[];for(const De of W)le.indexOf(De)<0&&le.push(De);this.layout._values["text-writing-mode"]=le}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(g,T,W,le){const De=this.layout.get(g).evaluate(T,{},W,le),ke=this._unevaluatedLayout._values[g];return ke.isDataDriven()||Ss(ke.value)||!De?De:(Ot=T.properties,De.replace(/{([^{}]+)}/g,(gn,Xn)=>Xn in Ot?String(Ot[Xn]):""));var Ot}createBucket(g){return new Yl(g)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(const g of Cm.paint.overridableProperties){if(!Ws.hasPaintOverride(this.layout,g))continue;const T=this.paint.get(g),W=new _l(T),le=new ba(W,T.property.specification);let De=null;De="constant"===T.value.kind||"source"===T.value.kind?new Ia("source",le):new wa("composite",le,T.value.zoomStops),this.paint._values[g]=new No(T.property,De,T.parameters)}}_handleOverridablePaintPropertyUpdate(g,T,W){return!(!this.layout||T.isDataDriven()||W.isDataDriven())&&Ws.hasPaintOverride(this.layout,g)}static hasPaintOverride(g,T){const W=g.get("text-field"),le=Cm.paint.properties[T];let De=!1;const ke=Ot=>{for(const Nt of Ot)if(le.overrides&&le.overrides.hasOverride(Nt))return void(De=!0)};if("constant"===W.value.kind&&W.value.value instanceof Wi)ke(W.value.value.sections);else if("source"===W.value.kind){const Ot=gn=>{De||(gn instanceof Fi&&Wt(gn.value)===no?ke(gn.value.sections):gn instanceof ma?ke(gn.sections):gn.eachChild(Ot))},Nt=W.value;Nt._styleExpression&&Ot(Nt._styleExpression.expression)}return De}}let Qc;var Wu={get paint(){return Qc=Qc||new il({"background-color":new xr(Pt.paint_background["background-color"]),"background-pattern":new Tl(Pt.paint_background["background-pattern"]),"background-opacity":new xr(Pt.paint_background["background-opacity"])})}};class Sp extends Nl{constructor(g){super(g,Wu)}}let tp;var sp={get paint(){return tp=tp||new il({"raster-opacity":new xr(Pt.paint_raster["raster-opacity"]),"raster-hue-rotate":new xr(Pt.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new xr(Pt.paint_raster["raster-brightness-min"]),"raster-brightness-max":new xr(Pt.paint_raster["raster-brightness-max"]),"raster-saturation":new xr(Pt.paint_raster["raster-saturation"]),"raster-contrast":new xr(Pt.paint_raster["raster-contrast"]),"raster-resampling":new xr(Pt.paint_raster["raster-resampling"]),"raster-fade-duration":new xr(Pt.paint_raster["raster-fade-duration"])})}};class zu extends Nl{constructor(g){super(g,sp)}}class Hp extends Nl{constructor(g){super(g,{}),this.onAdd=T=>{this.implementation.onAdd&&this.implementation.onAdd(T,T.painter.context.gl)},this.onRemove=T=>{this.implementation.onRemove&&this.implementation.onRemove(T,T.painter.context.gl)},this.implementation=g}is3D(){return"3d"===this.implementation.renderingMode}hasOffscreenPass(){return void 0!==this.implementation.prerender}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw new Error("Custom layers cannot be serialized")}}class i_{constructor(g){this._callback=g,this._triggered=!1,typeof MessageChannel<"u"&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._callback()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._callback()},0))}remove(){delete this._channel,this._callback=()=>{}}}const Fp=6371008.8;class Vm{constructor(g,T){if(isNaN(g)||isNaN(T))throw new Error(`Invalid LngLat object: (${g}, ${T})`);if(this.lng=+g,this.lat=+T,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Vm(H(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(g){const T=Math.PI/180,W=this.lat*T,le=g.lat*T,De=Math.sin(W)*Math.sin(le)+Math.cos(W)*Math.cos(le)*Math.cos((g.lng-this.lng)*T);return Fp*Math.acos(Math.min(De,1))}static convert(g){if(g instanceof Vm)return g;if(Array.isArray(g)&&(2===g.length||3===g.length))return new Vm(Number(g[0]),Number(g[1]));if(!Array.isArray(g)&&"object"==typeof g&&null!==g)return new Vm(Number("lng"in g?g.lng:g.lon),Number(g.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}}const o_=2*Math.PI*Fp;function C_(y){return o_*Math.cos(y*Math.PI/180)}function xf(y){return(180+y)/360}function vf(y){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+y*Math.PI/360)))/360}function bf(y,g){return y/C_(g)}function y_(y){return 360/Math.PI*Math.atan(Math.exp((180-360*y)*Math.PI/180))-90}class Gp{constructor(g,T,W=0){this.x=+g,this.y=+T,this.z=+W}static fromLngLat(g,T=0){const W=Vm.convert(g);return new Gp(xf(W.lng),vf(W.lat),bf(T,W.lat))}toLngLat(){return new Vm(360*this.x-180,y_(this.y))}toAltitude(){return this.z*C_(y_(this.y))}meterInMercatorCoordinateUnits(){return 1/o_*(g=y_(this.y),1/Math.cos(g*Math.PI/180));var g}}function Cf(y,g,T){var W=2*Math.PI*6378137/256/Math.pow(2,T);return[y*W-2*Math.PI*6378137/2,g*W-2*Math.PI*6378137/2]}class nf{constructor(g,T,W){if(g<0||g>25||W<0||W>=Math.pow(2,g)||T<0||T>=Math.pow(2,g))throw new Error(`x=${T}, y=${W}, z=${g} outside of bounds. 0<=x<${Math.pow(2,g)}, 0<=y<${Math.pow(2,g)} 0<=z<=25 `);this.z=g,this.x=T,this.y=W,this.key=O_(0,g,g,T,W)}equals(g){return this.z===g.z&&this.x===g.x&&this.y===g.y}url(g,T,W){const le=(ke=this.y,Ot=this.z,Nt=Cf(256*(De=this.x),256*(ke=Math.pow(2,Ot)-ke-1),Ot),gn=Cf(256*(De+1),256*(ke+1),Ot),Nt[0]+","+Nt[1]+","+gn[0]+","+gn[1]);var De,ke,Ot,Nt,gn;const Xn=function(ci,pi,Di){let Ni,lo="";for(let yo=ci;yo>0;yo--)Ni=1<<yo-1,lo+=(pi&Ni?1:0)+(Di&Ni?2:0);return lo}(this.z,this.x,this.y);return g[(this.x+this.y)%g.length].replace(/{prefix}/g,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String("tms"===W?Math.pow(2,this.z)-this.y-1:this.y)).replace(/{ratio}/g,T>1?"@2x":"").replace(/{quadkey}/g,Xn).replace(/{bbox-epsg-3857}/g,le)}isChildOf(g){const T=this.z-g.z;return T>0&&g.x===this.x>>T&&g.y===this.y>>T}getTilePoint(g){const T=Math.pow(2,this.z);return new c((g.x*T-this.x)*tc,(g.y*T-this.y)*tc)}toString(){return`${this.z}/${this.x}/${this.y}`}}class r_{constructor(g,T){this.wrap=g,this.canonical=T,this.key=O_(g,T.z,T.z,T.x,T.y)}}class au{constructor(g,T,W,le,De){if(g<W)throw new Error(`overscaledZ should be >= z; overscaledZ = ${g}; z = ${W}`);this.overscaledZ=g,this.wrap=T,this.canonical=new nf(W,+le,+De),this.key=O_(T,g,W,le,De)}clone(){return new au(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(g){return this.overscaledZ===g.overscaledZ&&this.wrap===g.wrap&&this.canonical.equals(g.canonical)}scaledTo(g){if(g>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${g}; overscaledZ = ${this.overscaledZ}`);const T=this.canonical.z-g;return g>this.canonical.z?new au(g,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new au(g,this.wrap,g,this.canonical.x>>T,this.canonical.y>>T)}calculateScaledKey(g,T){if(g>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${g}; overscaledZ = ${this.overscaledZ}`);const W=this.canonical.z-g;return g>this.canonical.z?O_(this.wrap*+T,g,this.canonical.z,this.canonical.x,this.canonical.y):O_(this.wrap*+T,g,g,this.canonical.x>>W,this.canonical.y>>W)}isChildOf(g){if(g.wrap!==this.wrap)return!1;const T=this.canonical.z-g.canonical.z;return 0===g.overscaledZ||g.overscaledZ<this.overscaledZ&&g.canonical.x===this.canonical.x>>T&&g.canonical.y===this.canonical.y>>T}children(g){if(this.overscaledZ>=g)return[new au(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const T=this.canonical.z+1,W=2*this.canonical.x,le=2*this.canonical.y;return[new au(T,this.wrap,T,W,le),new au(T,this.wrap,T,W+1,le),new au(T,this.wrap,T,W,le+1),new au(T,this.wrap,T,W+1,le+1)]}isLessThan(g){return this.wrap<g.wrap||!(this.wrap>g.wrap)&&(this.overscaledZ<g.overscaledZ||!(this.overscaledZ>g.overscaledZ)&&(this.canonical.x<g.canonical.x||!(this.canonical.x>g.canonical.x)&&this.canonical.y<g.canonical.y))}wrapped(){return new au(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}unwrapTo(g){return new au(this.overscaledZ,g,this.canonical.z,this.canonical.x,this.canonical.y)}overscaleFactor(){return Math.pow(2,this.overscaledZ-this.canonical.z)}toUnwrapped(){return new r_(this.wrap,this.canonical)}toString(){return`${this.overscaledZ}/${this.canonical.x}/${this.canonical.y}`}getTilePoint(g){return this.canonical.getTilePoint(new Gp(g.x-this.wrap,g.y))}}function O_(y,g,T,W,le){(y*=2)<0&&(y=-1*y-1);const De=1<<T;return(De*De*y+De*le+W).toString(36)+T.toString(36)+g.toString(36)}Fr("CanonicalTileID",nf),Fr("OverscaledTileID",au,{omit:["posMatrix"]});class R_{constructor(g,T,W,le=1,De=1,ke=1,Ot=0){if(this.uid=g,T.height!==T.width)throw new RangeError("DEM tiles must be square");if(W&&!["mapbox","terrarium","custom"].includes(W))return void q(`"${W}" is not a valid encoding type. Valid types include "mapbox", "terrarium" and "custom".`);this.stride=T.height;const Nt=this.dim=T.height-2;switch(this.data=new Uint32Array(T.data.buffer),W){case"terrarium":this.redFactor=256,this.greenFactor=1,this.blueFactor=1/256,this.baseShift=32768;break;case"custom":this.redFactor=le,this.greenFactor=De,this.blueFactor=ke,this.baseShift=Ot;break;default:this.redFactor=6553.6,this.greenFactor=25.6,this.blueFactor=.1,this.baseShift=1e4}for(let gn=0;gn<Nt;gn++)this.data[this._idx(-1,gn)]=this.data[this._idx(0,gn)],this.data[this._idx(Nt,gn)]=this.data[this._idx(Nt-1,gn)],this.data[this._idx(gn,-1)]=this.data[this._idx(gn,0)],this.data[this._idx(gn,Nt)]=this.data[this._idx(gn,Nt-1)];this.data[this._idx(-1,-1)]=this.data[this._idx(0,0)],this.data[this._idx(Nt,-1)]=this.data[this._idx(Nt-1,0)],this.data[this._idx(-1,Nt)]=this.data[this._idx(0,Nt-1)],this.data[this._idx(Nt,Nt)]=this.data[this._idx(Nt-1,Nt-1)],this.min=Number.MAX_SAFE_INTEGER,this.max=Number.MIN_SAFE_INTEGER;for(let gn=0;gn<Nt;gn++)for(let Xn=0;Xn<Nt;Xn++){const ci=this.get(gn,Xn);ci>this.max&&(this.max=ci),ci<this.min&&(this.min=ci)}}get(g,T){const W=new Uint8Array(this.data.buffer),le=4*this._idx(g,T);return this.unpack(W[le],W[le+1],W[le+2])}getUnpackVector(){return[this.redFactor,this.greenFactor,this.blueFactor,this.baseShift]}_idx(g,T){if(g<-1||g>=this.dim+1||T<-1||T>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(T+1)*this.stride+(g+1)}unpack(g,T,W){return g*this.redFactor+T*this.greenFactor+W*this.blueFactor-this.baseShift}getPixels(){return new ld({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(g,T,W){if(this.dim!==g.dim)throw new Error("dem dimension mismatch");let le=T*this.dim,De=T*this.dim+this.dim,ke=W*this.dim,Ot=W*this.dim+this.dim;switch(T){case-1:le=De-1;break;case 1:De=le+1}switch(W){case-1:ke=Ot-1;break;case 1:Ot=ke+1}const Nt=-T*this.dim,gn=-W*this.dim;for(let Xn=ke;Xn<Ot;Xn++)for(let ci=le;ci<De;ci++)this.data[this._idx(ci,Xn)]=g.data[this._idx(ci+Nt,Xn+gn)]}}Fr("DEMData",R_);class Ym{constructor(g){this._stringToNumber={},this._numberToString=[];for(let T=0;T<g.length;T++){const W=g[T];this._stringToNumber[W]=T,this._numberToString[T]=W}}encode(g){return this._stringToNumber[g]}decode(g){if(g>=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${g} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[g]}}class k_{constructor(g,T,W,le,De){this.type="Feature",this._vectorTileFeature=g,g._z=T,g._x=W,g._y=le,this.properties=g.properties,this.id=De}get geometry(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(g){this._geometry=g}toJSON(){const g={geometry:this.geometry};for(const T in this)"_geometry"!==T&&"_vectorTileFeature"!==T&&(g[T]=this[T]);return g}}class N_{constructor(g,T){this.tileID=g,this.x=g.canonical.x,this.y=g.canonical.y,this.z=g.canonical.z,this.grid=new Bs(tc,16,0),this.grid3D=new Bs(tc,16,0),this.featureIndexArray=new ut,this.promoteId=T}insert(g,T,W,le,De,ke){const Ot=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(W,le,De);const Nt=ke?this.grid3D:this.grid;for(let gn=0;gn<T.length;gn++){const Xn=T[gn],ci=[1/0,1/0,-1/0,-1/0];for(let pi=0;pi<Xn.length;pi++){const Di=Xn[pi];ci[0]=Math.min(ci[0],Di.x),ci[1]=Math.min(ci[1],Di.y),ci[2]=Math.max(ci[2],Di.x),ci[3]=Math.max(ci[3],Di.y)}ci[0]<tc&&ci[1]<tc&&ci[2]>=0&&ci[3]>=0&&Nt.insert(Ot,ci[0],ci[1],ci[2],ci[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new Mc.VectorTile(new hp(this.rawTileData)).layers,this.sourceLayerCoder=new Ym(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(g,T,W,le){this.loadVTLayers();const De=g.params||{},ke=tc/g.tileSize/g.scale,Ot=Eo(De.filter),Nt=g.queryGeometry,gn=g.queryPadding*ke,Xn=Tm(Nt),ci=this.grid.query(Xn.minX-gn,Xn.minY-gn,Xn.maxX+gn,Xn.maxY+gn),pi=Tm(g.cameraQueryGeometry),Di=this.grid3D.query(pi.minX-gn,pi.minY-gn,pi.maxX+gn,pi.maxY+gn,(yo,So,Ko,Uo)=>function(Yo,fr,Ur,sa,Ya){for(const ca of Yo)if(fr<=ca.x&&Ur<=ca.y&&sa>=ca.x&&Ya>=ca.y)return!0;const ua=[new c(fr,Ur),new c(fr,Ya),new c(sa,Ya),new c(sa,Ur)];if(Yo.length>2)for(const ca of ua)if(Kd(Yo,ca))return!0;for(let ca=0;ca<Yo.length-1;ca++)if($m(Yo[ca],Yo[ca+1],ua))return!0;return!1}(g.cameraQueryGeometry,yo-gn,So-gn,Ko+gn,Uo+gn));for(const yo of Di)ci.push(yo);ci.sort(P_);const Ni={};let lo;for(let yo=0;yo<ci.length;yo++){const So=ci[yo];if(So===lo)continue;lo=So;const Ko=this.featureIndexArray.get(So);let Uo=null;this.loadMatchingFeature(Ni,Ko.bucketIndex,Ko.sourceLayerIndex,Ko.featureIndex,Ot,De.layers,De.availableImages,T,W,le,(Yo,fr,Ur)=>(Uo||(Uo=ad(Yo)),fr.queryIntersectsFeature(Nt,Yo,Ur,Uo,this.z,g.transform,ke,g.pixelPosMatrix)))}return Ni}loadMatchingFeature(g,T,W,le,De,ke,Ot,Nt,gn,Xn,ci){const pi=this.bucketLayerIDs[T];if(ke&&!function(yo,So){for(let Ko=0;Ko<yo.length;Ko++)if(So.indexOf(yo[Ko])>=0)return!0;return!1}(ke,pi))return;const Di=this.sourceLayerCoder.decode(W),Ni=this.vtLayers[Di].feature(le);if(De.needGeometry){const yo=Zc(Ni,!0);if(!De.filter(new dr(this.tileID.overscaledZ),yo,this.tileID.canonical))return}else if(!De.filter(new dr(this.tileID.overscaledZ),Ni))return;const lo=this.getId(Ni,Di);for(let yo=0;yo<pi.length;yo++){const So=pi[yo];if(ke&&ke.indexOf(So)<0)continue;const Ko=Nt[So];if(!Ko)continue;let Uo={};lo&&Xn&&(Uo=Xn.getState(Ko.sourceLayer||"_geojsonTileLayer",lo));const Yo=O({},gn[So]);Yo.paint=U_(Yo.paint,Ko.paint,Ni,Uo,Ot),Yo.layout=U_(Yo.layout,Ko.layout,Ni,Uo,Ot);const fr=!ci||ci(Ni,Ko,Uo);if(!fr)continue;const Ur=new k_(Ni,this.z,this.x,this.y,lo);Ur.layer=Yo;let sa=g[So];void 0===sa&&(sa=g[So]=[]),sa.push({featureIndex:le,feature:Ur,intersectionZ:fr})}}lookupSymbolFeatures(g,T,W,le,De,ke,Ot,Nt){const gn={};this.loadVTLayers();const Xn=Eo(De);for(const ci of g)this.loadMatchingFeature(gn,W,le,ci,Xn,ke,Ot,Nt,T);return gn}hasLayer(g){for(const T of this.bucketLayerIDs)for(const W of T)if(g===W)return!0;return!1}getId(g,T){let W=g.id;return this.promoteId&&(W=g.properties["string"==typeof this.promoteId?this.promoteId:this.promoteId[T]],"boolean"==typeof W&&(W=Number(W))),W}}function U_(y,g,T,W,le){return G(y,(De,ke)=>{const Ot=g instanceof Ar?g.get(ke):null;return Ot&&Ot.evaluate?Ot.evaluate(T,W,le):Ot})}function Tm(y){let g=1/0,T=1/0,W=-1/0,le=-1/0;for(const De of y)g=Math.min(g,De.x),T=Math.min(T,De.y),W=Math.max(W,De.x),le=Math.max(le,De.y);return{minX:g,minY:T,maxX:W,maxY:le}}function P_(y,g){return g-y}function rf(y,g,T,W,le){const De=[];for(let ke=0;ke<y.length;ke++){const Ot=y[ke];let Nt;for(let gn=0;gn<Ot.length-1;gn++){let Xn=Ot[gn],ci=Ot[gn+1];Xn.x<g&&ci.x<g||(Xn.x<g?Xn=new c(g,Xn.y+(g-Xn.x)/(ci.x-Xn.x)*(ci.y-Xn.y))._round():ci.x<g&&(ci=new c(g,Xn.y+(g-Xn.x)/(ci.x-Xn.x)*(ci.y-Xn.y))._round()),Xn.y<T&&ci.y<T||(Xn.y<T?Xn=new c(Xn.x+(T-Xn.y)/(ci.y-Xn.y)*(ci.x-Xn.x),T)._round():ci.y<T&&(ci=new c(Xn.x+(T-Xn.y)/(ci.y-Xn.y)*(ci.x-Xn.x),T)._round()),Xn.x>=W&&ci.x>=W||(Xn.x>=W?Xn=new c(W,Xn.y+(W-Xn.x)/(ci.x-Xn.x)*(ci.y-Xn.y))._round():ci.x>=W&&(ci=new c(W,Xn.y+(W-Xn.x)/(ci.x-Xn.x)*(ci.y-Xn.y))._round()),Xn.y>=le&&ci.y>=le||(Xn.y>=le?Xn=new c(Xn.x+(le-Xn.y)/(ci.y-Xn.y)*(ci.x-Xn.x),le)._round():ci.y>=le&&(ci=new c(Xn.x+(le-Xn.y)/(ci.y-Xn.y)*(ci.x-Xn.x),le)._round()),Nt&&Xn.equals(Nt[Nt.length-1])||(Nt=[Xn],De.push(Nt)),Nt.push(ci)))))}}return De}Fr("FeatureIndex",N_,{omit:["rawTileData","sourceLayerCoder"]});class vp extends c{constructor(g,T,W,le){super(g,T),this.angle=W,void 0!==le&&(this.segment=le)}clone(){return new vp(this.x,this.y,this.angle,this.segment)}}function yf(y,g,T,W,le){if(void 0===g.segment||0===T)return!0;let De=g,ke=g.segment+1,Ot=0;for(;Ot>-T/2;){if(ke--,ke<0)return!1;Ot-=y[ke].dist(De),De=y[ke]}Ot+=y[ke].dist(y[ke+1]),ke++;const Nt=[];let gn=0;for(;Ot<T/2;){const Xn=y[ke],ci=y[ke+1];if(!ci)return!1;let pi=y[ke-1].angleTo(Xn)-Xn.angleTo(ci);for(pi=Math.abs((pi+3*Math.PI)%(2*Math.PI)-Math.PI),Nt.push({distance:Ot,angleDelta:pi}),gn+=pi;Ot-Nt[0].distance>W;)gn-=Nt.shift().angleDelta;if(gn>le)return!1;ke++,Ot+=Xn.dist(ci)}return!0}function af(y){let g=0;for(let T=0;T<y.length-1;T++)g+=y[T].dist(y[T+1]);return g}function Of(y,g,T){return y?.6*g*T:0}function B_(y,g){return Math.max(y?y.right-y.left:0,g?g.right-g.left:0)}function sf(y,g,T,W,le,De){const ke=Of(T,le,De),Ot=B_(T,W)*De;let Nt=0;const gn=af(y)/2;for(let Xn=0;Xn<y.length-1;Xn++){const ci=y[Xn],pi=y[Xn+1],Di=ci.dist(pi);if(Nt+Di>gn){const Ni=(gn-Nt)/Di,lo=ls.number(ci.x,pi.x,Ni),yo=ls.number(ci.y,pi.y,Ni),So=new vp(lo,yo,pi.angleTo(ci),Xn);return So._round(),!ke||yf(y,So,Ot,ke,g)?So:void 0}Nt+=Di}}function Pf(y,g,T,W,le,De,ke,Ot,Nt){const gn=Of(W,De,ke),Xn=B_(W,le),ci=Xn*ke,pi=0===y[0].x||y[0].x===Nt||0===y[0].y||y[0].y===Nt;return g-ci<g/4&&(g=ci+g/4),Mf(y,pi?g/2*Ot%g:(Xn/2+2*De)*ke*Ot%g,g,gn,T,ci,pi,!1,Nt)}function Mf(y,g,T,W,le,De,ke,Ot,Nt){const gn=De/2,Xn=af(y);let ci=0,pi=g-T,Di=[];for(let Ni=0;Ni<y.length-1;Ni++){const lo=y[Ni],yo=y[Ni+1],So=lo.dist(yo),Ko=yo.angleTo(lo);for(;pi+T<ci+So;){pi+=T;const Uo=(pi-ci)/So,Yo=ls.number(lo.x,yo.x,Uo),fr=ls.number(lo.y,yo.y,Uo);if(Yo>=0&&Yo<Nt&&fr>=0&&fr<Nt&&pi-gn>=0&&pi+gn<=Xn){const Ur=new vp(Yo,fr,Ko,Ni);Ur._round(),W&&!yf(y,Ur,De,W,le)||Di.push(Ur)}}ci+=So}return Ot||Di.length||ke||(Di=Mf(y,ci/2,T,W,le,De,ke,!0,Nt)),Di}Fr("Anchor",vp);const a_=bm;function Z_(y,g,T,W){const le=[],De=y.image,ke=De.pixelRatio,Ot=De.paddedRect.w-2*a_,Nt=De.paddedRect.h-2*a_,gn=y.right-y.left,Xn=y.bottom-y.top,ci=De.stretchX||[[0,Ot]],pi=De.stretchY||[[0,Nt]],Di=(pa,Xa)=>pa+Xa[1]-Xa[0],Ni=ci.reduce(Di,0),lo=pi.reduce(Di,0),yo=Ot-Ni,So=Nt-lo;let Ko=0,Uo=Ni,Yo=0,fr=lo,Ur=0,sa=yo,Ya=0,ua=So;if(De.content&&W){const pa=De.content;Ko=s_(ci,0,pa[0]),Yo=s_(pi,0,pa[1]),Uo=s_(ci,pa[0],pa[2]),fr=s_(pi,pa[1],pa[3]),Ur=pa[0]-Ko,Ya=pa[1]-Yo,sa=pa[2]-pa[0]-Uo,ua=pa[3]-pa[1]-fr}const ca=(pa,Xa,Ma,ea)=>{const rs=bp(pa.stretch-Ko,Uo,gn,y.left),Sa=lp(pa.fixed-Ur,sa,pa.stretch,Ni),ml=bp(Xa.stretch-Yo,fr,Xn,y.top),nd=lp(Xa.fixed-Ya,ua,Xa.stretch,lo),cd=bp(Ma.stretch-Ko,Uo,gn,y.left),sm=lp(Ma.fixed-Ur,sa,Ma.stretch,Ni),ju=bp(ea.stretch-Yo,fr,Xn,y.top),su=lp(ea.fixed-Ya,ua,ea.stretch,lo),qd=new c(rs,ml),Xd=new c(cd,ml),Em=new c(cd,ju),Eu=new c(rs,ju),lu=new c(Sa/ke,nd/ke),Vd=new c(sm/ke,su/ke),Ad=g*Math.PI/180;if(Ad){const cu=Math.sin(Ad),du=Math.cos(Ad),wd=[du,-cu,cu,du];qd._matMult(wd),Xd._matMult(wd),Eu._matMult(wd),Em._matMult(wd)}const fd=pa.stretch+pa.fixed,Om=Xa.stretch+Xa.fixed;return{tl:qd,tr:Xd,bl:Eu,br:Em,tex:{x:De.paddedRect.x+a_+fd,y:De.paddedRect.y+a_+Om,w:Ma.stretch+Ma.fixed-fd,h:ea.stretch+ea.fixed-Om},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:lu,pixelOffsetBR:Vd,minFontScaleX:sa/ke/gn,minFontScaleY:ua/ke/Xn,isSDF:T}};if(W&&(De.stretchX||De.stretchY)){const pa=lf(ci,yo,Ni),Xa=lf(pi,So,lo);for(let Ma=0;Ma<pa.length-1;Ma++){const ea=pa[Ma],rs=pa[Ma+1];for(let Sa=0;Sa<Xa.length-1;Sa++)le.push(ca(ea,Xa[Sa],rs,Xa[Sa+1]))}}else le.push(ca({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:Ot+1},{fixed:0,stretch:Nt+1}));return le}function s_(y,g,T){let W=0;for(const le of y)W+=Math.max(g,Math.min(T,le[1]))-Math.max(g,Math.min(T,le[0]));return W}function lf(y,g,T){const W=[{fixed:-a_,stretch:0}];for(const[le,De]of y){const ke=W[W.length-1];W.push({fixed:le-ke.stretch,stretch:ke.stretch}),W.push({fixed:le-ke.stretch,stretch:ke.stretch+(De-le)})}return W.push({fixed:g+a_,stretch:T}),W}function bp(y,g,T,W){return y/g*T+W}function lp(y,g,T,W){return y-g*T/W}class M_{constructor(g,T,W,le,De,ke,Ot,Nt,gn,Xn){if(this.boxStartIndex=g.length,gn){let ci=ke.top,pi=ke.bottom;const Di=ke.collisionPadding;Di&&(ci-=Di[1],pi+=Di[3]);let Ni=pi-ci;Ni>0&&(Ni=Math.max(10,Ni),this.circleDiameter=Ni)}else{let ci=ke.top*Ot-Nt[0],pi=ke.bottom*Ot+Nt[2],Di=ke.left*Ot-Nt[3],Ni=ke.right*Ot+Nt[1];const lo=ke.collisionPadding;if(lo&&(Di-=lo[0]*Ot,ci-=lo[1]*Ot,Ni+=lo[2]*Ot,pi+=lo[3]*Ot),Xn){const yo=new c(Di,ci),So=new c(Ni,ci),Ko=new c(Di,pi),Uo=new c(Ni,pi),Yo=Xn*Math.PI/180;yo._rotate(Yo),So._rotate(Yo),Ko._rotate(Yo),Uo._rotate(Yo),Di=Math.min(yo.x,So.x,Ko.x,Uo.x),Ni=Math.max(yo.x,So.x,Ko.x,Uo.x),ci=Math.min(yo.y,So.y,Ko.y,Uo.y),pi=Math.max(yo.y,So.y,Ko.y,Uo.y)}g.emplaceBack(T.x,T.y,Di,ci,Ni,pi,W,le,De)}this.boxEndIndex=g.length}}class cf{constructor(g=[],T=H_){if(this.data=g,this.length=this.data.length,this.compare=T,this.length>0)for(let W=(this.length>>1)-1;W>=0;W--)this._down(W)}push(g){this.data.push(g),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;const g=this.data[0],T=this.data.pop();return this.length--,this.length>0&&(this.data[0]=T,this._down(0)),g}peek(){return this.data[0]}_up(g){const{data:T,compare:W}=this,le=T[g];for(;g>0;){const De=g-1>>1,ke=T[De];if(W(le,ke)>=0)break;T[g]=ke,g=De}T[g]=le}_down(g){const{data:T,compare:W}=this,le=this.length>>1,De=T[g];for(;g<le;){let ke=1+(g<<1),Ot=T[ke];const Nt=ke+1;if(Nt<this.length&&W(T[Nt],Ot)<0&&(ke=Nt,Ot=T[Nt]),W(Ot,De)>=0)break;T[g]=Ot,g=ke}T[g]=De}}function H_(y,g){return y<g?-1:y>g?1:0}function Wf(y,g=1,T=!1){let W=1/0,le=1/0,De=-1/0,ke=-1/0;const Ot=y[0];for(let Di=0;Di<Ot.length;Di++){const Ni=Ot[Di];(!Di||Ni.x<W)&&(W=Ni.x),(!Di||Ni.y<le)&&(le=Ni.y),(!Di||Ni.x>De)&&(De=Ni.x),(!Di||Ni.y>ke)&&(ke=Ni.y)}const Nt=Math.min(De-W,ke-le);let gn=Nt/2;const Xn=new cf([],Tf);if(0===Nt)return new c(W,le);for(let Di=W;Di<De;Di+=Nt)for(let Ni=le;Ni<ke;Ni+=Nt)Xn.push(new l_(Di+gn,Ni+gn,gn,y));let ci=function(Di){let Ni=0,lo=0,yo=0;const So=Di[0];for(let Ko=0,Uo=So.length,Yo=Uo-1;Ko<Uo;Yo=Ko++){const fr=So[Ko],Ur=So[Yo],sa=fr.x*Ur.y-Ur.x*fr.y;lo+=(fr.x+Ur.x)*sa,yo+=(fr.y+Ur.y)*sa,Ni+=3*sa}return new l_(lo/Ni,yo/Ni,0,Di)}(y),pi=Xn.length;for(;Xn.length;){const Di=Xn.pop();(Di.d>ci.d||!ci.d)&&(ci=Di,T&&console.log("found best %d after %d probes",Math.round(1e4*Di.d)/1e4,pi)),Di.max-ci.d<=g||(gn=Di.h/2,Xn.push(new l_(Di.p.x-gn,Di.p.y-gn,gn,y)),Xn.push(new l_(Di.p.x+gn,Di.p.y-gn,gn,y)),Xn.push(new l_(Di.p.x-gn,Di.p.y+gn,gn,y)),Xn.push(new l_(Di.p.x+gn,Di.p.y+gn,gn,y)),pi+=4)}return T&&(console.log(`num probes: ${pi}`),console.log(`best distance: ${ci.d}`)),ci.p}function Tf(y,g){return g.max-y.max}function l_(y,g,T,W){this.p=new c(y,g),this.h=T,this.d=function(le,De){let ke=!1,Ot=1/0;for(let Nt=0;Nt<De.length;Nt++){const gn=De[Nt];for(let Xn=0,ci=gn.length,pi=ci-1;Xn<ci;pi=Xn++){const Di=gn[Xn],Ni=gn[pi];Di.y>le.y!=Ni.y>le.y&&le.x<(Ni.x-Di.x)*(le.y-Di.y)/(Ni.y-Di.y)+Di.x&&(ke=!ke),Ot=Math.min(Ot,xu(le,Di,Ni))}}return(ke?1:-1)*Math.sqrt(Ot)}(this.p,W),this.max=this.d+this.h*Math.SQRT2}var ym;l.TextAnchorEnum=void 0,(ym=l.TextAnchorEnum||(l.TextAnchorEnum={}))[ym.center=1]="center",ym[ym.left=2]="left",ym[ym.right=3]="right",ym[ym.top=4]="top",ym[ym.bottom=5]="bottom",ym[ym["top-left"]=6]="top-left",ym[ym["top-right"]=7]="top-right",ym[ym["bottom-left"]=8]="bottom-left",ym[ym["bottom-right"]=9]="bottom-right";const Cp=7,G_=Number.POSITIVE_INFINITY;function c_(y,g){return g[1]!==G_?function(T,W,le){let De=0,ke=0;switch(W=Math.abs(W),le=Math.abs(le),T){case"top-right":case"top-left":case"top":ke=le-Cp;break;case"bottom-right":case"bottom-left":case"bottom":ke=-le+Cp}switch(T){case"top-right":case"bottom-right":case"right":De=-W;break;case"top-left":case"bottom-left":case"left":De=W}return[De,ke]}(y,g[0],g[1]):function(T,W){let le=0,De=0;W<0&&(W=0);const ke=W/Math.SQRT2;switch(T){case"top-right":case"top-left":De=ke-Cp;break;case"bottom-right":case"bottom-left":De=-ke+Cp;break;case"bottom":De=-W+Cp;break;case"top":De=W-Cp}switch(T){case"top-right":case"bottom-right":le=-ke;break;case"top-left":case"bottom-left":le=ke;break;case"left":le=W;break;case"right":le=-W}return[le,De]}(y,g[0])}function be(y,g,T){var W;const le=y.layout,De=null===(W=le.get("text-variable-anchor-offset"))||void 0===W?void 0:W.evaluate(g,{},T);if(De){const Ot=De.values,Nt=[];for(let gn=0;gn<Ot.length;gn+=2){const Xn=Nt[gn]=Ot[gn],ci=Ot[gn+1].map(pi=>pi*Rc);Xn.startsWith("top")?ci[1]-=Cp:Xn.startsWith("bottom")&&(ci[1]+=Cp),Nt[gn+1]=ci}return new On(Nt)}const ke=le.get("text-variable-anchor");if(ke){let Ot;Ot=void 0!==y._unevaluatedLayout.getValue("text-radial-offset")?[le.get("text-radial-offset").evaluate(g,{},T)*Rc,G_]:le.get("text-offset").evaluate(g,{},T).map(gn=>gn*Rc);const Nt=[];for(const gn of ke)Nt.push(gn,c_(gn,Ot));return new On(Nt)}return null}function we(y){switch(y){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function ie(y,g,T,W,le,De,ke,Ot,Nt,gn,Xn){let ci=De.textMaxSize.evaluate(g,{});void 0===ci&&(ci=ke);const pi=y.layers[0].layout,Di=pi.get("icon-offset").evaluate(g,{},Xn),Ni=Rt(T.horizontal),lo=ke/24,yo=y.tilePixelRatio*lo,So=y.tilePixelRatio*ci/24,Ko=y.tilePixelRatio*Ot,Uo=y.tilePixelRatio*pi.get("symbol-spacing"),Yo=pi.get("text-padding")*y.tilePixelRatio,fr=function(ea,rs,Sa,ml=1){const nd=ea.get("icon-padding").evaluate(rs,{},Sa),cd=nd&&nd.values;return[cd[0]*ml,cd[1]*ml,cd[2]*ml,cd[3]*ml]}(pi,g,Xn,y.tilePixelRatio),Ur=pi.get("text-max-angle")/180*Math.PI,sa="viewport"!==pi.get("text-rotation-alignment")&&"point"!==pi.get("symbol-placement"),Ya="map"===pi.get("icon-rotation-alignment")&&"point"!==pi.get("symbol-placement"),ua=pi.get("symbol-placement"),ca=Uo/2,pa=pi.get("icon-text-fit");let Xa;W&&"none"!==pa&&(y.allowVerticalPlacement&&T.vertical&&(Xa=Co(W,T.vertical,pa,pi.get("icon-text-fit-padding"),Di,lo)),Ni&&(W=Co(W,Ni,pa,pi.get("icon-text-fit-padding"),Di,lo)));const Ma=(ea,rs)=>{rs.x<0||rs.x>=tc||rs.y<0||rs.y>=tc||function(Sa,ml,nd,cd,sm,ju,su,qd,Xd,Em,Eu,lu,Vd,Ad,fd,Om,cu,du,wd,Wm,Sl,np,lm,Sm,yp){const Op=Sa.addToLineVertexArray(ml,nd);let cp,Jp,dp,ip,Au=0,Lp=0,d_=0,zf=0,df=-1,jf=-1;const wu={};let Kf=Vl("");if(Sa.allowVerticalPlacement&&cd.vertical){const zm=qd.layout.get("text-rotate").evaluate(Sl,{},Sm)+90;dp=new M_(Xd,ml,Em,Eu,lu,cd.vertical,Vd,Ad,fd,zm),su&&(ip=new M_(Xd,ml,Em,Eu,lu,su,cu,du,fd,zm))}if(sm){const zm=qd.layout.get("icon-rotate").evaluate(Sl,{}),Du="none"!==qd.layout.get("icon-text-fit"),Qp=Z_(sm,zm,lm,Du),mu=su?Z_(su,zm,lm,Du):void 0;Jp=new M_(Xd,ml,Em,Eu,lu,sm,cu,du,!1,zm),Au=4*Qp.length;const Vp=Sa.iconSizeData;let mp=null;"source"===Vp.kind?(mp=[nr*qd.layout.get("icon-size").evaluate(Sl,{})],mp[0]>mr&&q(`${Sa.layerIds[0]}: Value for "icon-size" is >= ${Vo}. Reduce your "icon-size".`)):"composite"===Vp.kind&&(mp=[nr*np.compositeIconSizes[0].evaluate(Sl,{},Sm),nr*np.compositeIconSizes[1].evaluate(Sl,{},Sm)],(mp[0]>mr||mp[1]>mr)&&q(`${Sa.layerIds[0]}: Value for "icon-size" is >= ${Vo}. Reduce your "icon-size".`)),Sa.addSymbols(Sa.icon,Qp,mp,Wm,wd,Sl,l.WritingMode.none,ml,Op.lineStartIndex,Op.lineLength,-1,Sm),df=Sa.icon.placedSymbolArray.length-1,mu&&(Lp=4*mu.length,Sa.addSymbols(Sa.icon,mu,mp,Wm,wd,Sl,l.WritingMode.vertical,ml,Op.lineStartIndex,Op.lineLength,-1,Sm),jf=Sa.icon.placedSymbolArray.length-1)}const og=Object.keys(cd.horizontal);for(const zm of og){const Du=cd.horizontal[zm];if(!cp){Kf=Vl(Du.text);const mu=qd.layout.get("text-rotate").evaluate(Sl,{},Sm);cp=new M_(Xd,ml,Em,Eu,lu,Du,Vd,Ad,fd,mu)}const Qp=1===Du.positionedLines.length;if(d_+=Ge(Sa,ml,Du,ju,qd,fd,Sl,Om,Op,cd.vertical?l.WritingMode.horizontal:l.WritingMode.horizontalOnly,Qp?og:[zm],wu,df,np,Sm),Qp)break}cd.vertical&&(zf+=Ge(Sa,ml,cd.vertical,ju,qd,fd,Sl,Om,Op,l.WritingMode.vertical,["vertical"],wu,jf,np,Sm));const Ef=cp?cp.boxStartIndex:Sa.collisionBoxArray.length,Af=cp?cp.boxEndIndex:Sa.collisionBoxArray.length,wf=dp?dp.boxStartIndex:Sa.collisionBoxArray.length,rg=dp?dp.boxEndIndex:Sa.collisionBoxArray.length,bg=Jp?Jp.boxStartIndex:Sa.collisionBoxArray.length,Cg=Jp?Jp.boxEndIndex:Sa.collisionBoxArray.length,ag=ip?ip.boxStartIndex:Sa.collisionBoxArray.length,yg=ip?ip.boxEndIndex:Sa.collisionBoxArray.length;let Pp=-1;const m_=(zm,Du)=>zm&&zm.circleDiameter?Math.max(zm.circleDiameter,Du):Du;Pp=m_(cp,Pp),Pp=m_(dp,Pp),Pp=m_(Jp,Pp),Pp=m_(ip,Pp);const Df=Pp>-1?1:0;Df&&(Pp*=yp/Rc),Sa.glyphOffsetArray.length>=Yl.MAX_GLYPHS&&q("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==Sl.sortKey&&Sa.addToSortKeyRanges(Sa.symbolInstances.length,Sl.sortKey);const Gg=be(qd,Sl,Sm),[Jg,If]=function(zm,Du){const Qp=zm.length,mu=Du?.values;if(mu?.length>0)for(let Vp=0;Vp<mu.length;Vp+=2){const mp=mu[Vp+1];zm.emplaceBack(l.TextAnchorEnum[mu[Vp]],mp[0],mp[1])}return[Qp,zm.length]}(Sa.textAnchorOffsets,Gg);Sa.symbolInstances.emplaceBack(ml.x,ml.y,wu.right>=0?wu.right:-1,wu.center>=0?wu.center:-1,wu.left>=0?wu.left:-1,wu.vertical||-1,df,jf,Kf,Ef,Af,wf,rg,bg,Cg,ag,yg,Em,d_,zf,Au,Lp,Df,0,Vd,Pp,Jg,If)}(y,rs,ea,T,W,le,Xa,y.layers[0],y.collisionBoxArray,g.index,g.sourceLayerIndex,y.index,yo,[Yo,Yo,Yo,Yo],sa,Nt,Ko,fr,Ya,Di,g,De,gn,Xn,ke)};if("line"===ua)for(const ea of rf(g.geometry,0,0,tc,tc)){const rs=Pf(ea,Uo,Ur,T.vertical||Ni,W,24,So,y.overscaling,tc);for(const Sa of rs)Ni&&Zn(y,Ni.text,ca,Sa)||Ma(ea,Sa)}else if("line-center"===ua){for(const ea of g.geometry)if(ea.length>1){const rs=sf(ea,Ur,T.vertical||Ni,W,24,So);rs&&Ma(ea,rs)}}else if("Polygon"===g.type)for(const ea of Td(g.geometry,0)){const rs=Wf(ea,16);Ma(ea[0],new vp(rs.x,rs.y,0))}else if("LineString"===g.type)for(const ea of g.geometry)Ma(ea,new vp(ea[0].x,ea[0].y,0));else if("Point"===g.type)for(const ea of g.geometry)for(const rs of ea)Ma([rs],new vp(rs.x,rs.y,0))}function Ge(y,g,T,W,le,De,ke,Ot,Nt,gn,Xn,ci,pi,Di,Ni){const lo=function(Ko,Uo,Yo,fr,Ur,sa,Ya,ua){const ca=fr.layout.get("text-rotate").evaluate(sa,{})*Math.PI/180,pa=[];for(const Xa of Uo.positionedLines)for(const Ma of Xa.positionedGlyphs){if(!Ma.rect)continue;const ea=Ma.rect||{};let rs=Qm+1,Sa=!0,ml=1,nd=0;const cd=(Ur||ua)&&Ma.vertical,sm=Ma.metrics.advance*Ma.scale/2;if(ua&&Uo.verticalizable&&(nd=Xa.lineOffset/2-(Ma.imageName?-(Rc-Ma.metrics.width*Ma.scale)/2:(Ma.scale-1)*Rc)),Ma.imageName){const wd=Ya[Ma.imageName];Sa=wd.sdf,ml=wd.pixelRatio,rs=bm/ml}const ju=Ur?[Ma.x+sm,Ma.y]:[0,0];let su=Ur?[0,0]:[Ma.x+sm+Yo[0],Ma.y+Yo[1]-nd],qd=[0,0];cd&&(qd=su,su=[0,0]);const Xd=(Ma.metrics.left-rs)*Ma.scale-sm+su[0],Em=(-Ma.metrics.top-rs)*Ma.scale+su[1],Eu=Xd+ea.w*Ma.scale/ml,lu=Em+ea.h*Ma.scale/ml,Vd=new c(Xd,Em),Ad=new c(Eu,Em),fd=new c(Xd,lu),Om=new c(Eu,lu);if(cd){const wd=new c(-sm,sm-Ip),Wm=-Math.PI/2,Sl=Rc/2-sm,np=new c(5-Ip-Sl,-(Ma.imageName?Sl:0)),lm=new c(...qd);Vd._rotateAround(Wm,wd)._add(np)._add(lm),Ad._rotateAround(Wm,wd)._add(np)._add(lm),fd._rotateAround(Wm,wd)._add(np)._add(lm),Om._rotateAround(Wm,wd)._add(np)._add(lm)}if(ca){const wd=Math.sin(ca),Wm=Math.cos(ca),Sl=[Wm,-wd,wd,Wm];Vd._matMult(Sl),Ad._matMult(Sl),fd._matMult(Sl),Om._matMult(Sl)}const cu=new c(0,0),du=new c(0,0);pa.push({tl:Vd,tr:Ad,bl:fd,br:Om,tex:ea,writingMode:Uo.writingMode,glyphOffset:ju,sectionIndex:Ma.sectionIndex,isSDF:Sa,pixelOffsetTL:cu,pixelOffsetBR:du,minFontScaleX:0,minFontScaleY:0})}return pa}(0,T,Ot,le,De,ke,W,y.allowVerticalPlacement),yo=y.textSizeData;let So=null;"source"===yo.kind?(So=[nr*le.layout.get("text-size").evaluate(ke,{})],So[0]>mr&&q(`${y.layerIds[0]}: Value for "text-size" is >= ${Vo}. Reduce your "text-size".`)):"composite"===yo.kind&&(So=[nr*Di.compositeTextSizes[0].evaluate(ke,{},Ni),nr*Di.compositeTextSizes[1].evaluate(ke,{},Ni)],(So[0]>mr||So[1]>mr)&&q(`${y.layerIds[0]}: Value for "text-size" is >= ${Vo}. Reduce your "text-size".`)),y.addSymbols(y.text,lo,So,Ot,De,ke,gn,g,Nt.lineStartIndex,Nt.lineLength,pi,Ni);for(const Ko of Xn)ci[Ko]=y.text.placedSymbolArray.length-1;return 4*lo.length}function Rt(y){for(const g in y)return y[g];return null}function Zn(y,g,T,W){const le=y.compareText;if(g in le){const De=le[g];for(let ke=De.length-1;ke>=0;ke--)if(W.dist(De[ke])<T)return!0}else le[g]=[];return le[g].push(W),!1}const io=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class Ro{static from(g){if(!(g instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[T,W]=new Uint8Array(g,0,2);if(219!==T)throw new Error("Data does not appear to be in a KDBush format.");const le=W>>4;if(1!==le)throw new Error(`Got v${le} data when expected v1.`);const De=io[15&W];if(!De)throw new Error("Unrecognized array type.");const[ke]=new Uint16Array(g,2,1),[Ot]=new Uint32Array(g,4,1);return new Ro(Ot,ke,De,g)}constructor(g,T=64,W=Float64Array,le){if(isNaN(g)||g<0)throw new Error(`Unpexpected numItems value: ${g}.`);this.numItems=+g,this.nodeSize=Math.min(Math.max(+T,2),65535),this.ArrayType=W,this.IndexArrayType=g<65536?Uint16Array:Uint32Array;const De=io.indexOf(this.ArrayType),ke=2*g*this.ArrayType.BYTES_PER_ELEMENT,Ot=g*this.IndexArrayType.BYTES_PER_ELEMENT,Nt=(8-Ot%8)%8;if(De<0)throw new Error(`Unexpected typed array class: ${W}.`);le&&le instanceof ArrayBuffer?(this.data=le,this.ids=new this.IndexArrayType(this.data,8,g),this.coords=new this.ArrayType(this.data,8+Ot+Nt,2*g),this._pos=2*g,this._finished=!0):(this.data=new ArrayBuffer(8+ke+Ot+Nt),this.ids=new this.IndexArrayType(this.data,8,g),this.coords=new this.ArrayType(this.data,8+Ot+Nt,2*g),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+De]),new Uint16Array(this.data,2,1)[0]=T,new Uint32Array(this.data,4,1)[0]=g)}add(g,T){const W=this._pos>>1;return this.ids[W]=W,this.coords[this._pos++]=g,this.coords[this._pos++]=T,W}finish(){const g=this._pos>>1;if(g!==this.numItems)throw new Error(`Added ${g} items when expected ${this.numItems}.`);return ar(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(g,T,W,le){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:De,coords:ke,nodeSize:Ot}=this,Nt=[0,De.length-1,0],gn=[];for(;Nt.length;){const Xn=Nt.pop()||0,ci=Nt.pop()||0,pi=Nt.pop()||0;if(ci-pi<=Ot){for(let yo=pi;yo<=ci;yo++){const So=ke[2*yo],Ko=ke[2*yo+1];So>=g&&So<=W&&Ko>=T&&Ko<=le&&gn.push(De[yo])}continue}const Di=pi+ci>>1,Ni=ke[2*Di],lo=ke[2*Di+1];Ni>=g&&Ni<=W&&lo>=T&&lo<=le&&gn.push(De[Di]),(0===Xn?g<=Ni:T<=lo)&&(Nt.push(pi),Nt.push(Di-1),Nt.push(1-Xn)),(0===Xn?W>=Ni:le>=lo)&&(Nt.push(Di+1),Nt.push(ci),Nt.push(1-Xn))}return gn}within(g,T,W){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:le,coords:De,nodeSize:ke}=this,Ot=[0,le.length-1,0],Nt=[],gn=W*W;for(;Ot.length;){const Xn=Ot.pop()||0,ci=Ot.pop()||0,pi=Ot.pop()||0;if(ci-pi<=ke){for(let yo=pi;yo<=ci;yo++)Ol(De[2*yo],De[2*yo+1],g,T)<=gn&&Nt.push(le[yo]);continue}const Di=pi+ci>>1,Ni=De[2*Di],lo=De[2*Di+1];Ol(Ni,lo,g,T)<=gn&&Nt.push(le[Di]),(0===Xn?g-W<=Ni:T-W<=lo)&&(Ot.push(pi),Ot.push(Di-1),Ot.push(1-Xn)),(0===Xn?g+W>=Ni:T+W>=lo)&&(Ot.push(Di+1),Ot.push(ci),Ot.push(1-Xn))}return Nt}}function ar(y,g,T,W,le,De){if(le-W<=T)return;const ke=W+le>>1;Or(y,g,ke,W,le,De),ar(y,g,T,W,ke-1,1-De),ar(y,g,T,ke+1,le,1-De)}function Or(y,g,T,W,le,De){for(;le>W;){if(le-W>600){const gn=le-W+1,Xn=T-W+1,ci=Math.log(gn),pi=.5*Math.exp(2*ci/3),Di=.5*Math.sqrt(ci*pi*(gn-pi)/gn)*(Xn-gn/2<0?-1:1);Or(y,g,T,Math.max(W,Math.floor(T-Xn*pi/gn+Di)),Math.min(le,Math.floor(T+(gn-Xn)*pi/gn+Di)),De)}const ke=g[2*T+De];let Ot=W,Nt=le;for(La(y,g,W,T),g[2*le+De]>ke&&La(y,g,W,le);Ot<Nt;){for(La(y,g,Ot,Nt),Ot++,Nt--;g[2*Ot+De]<ke;)Ot++;for(;g[2*Nt+De]>ke;)Nt--}g[2*W+De]===ke?La(y,g,W,Nt):(Nt++,La(y,g,Nt,le)),Nt<=T&&(W=Nt+1),T<=Nt&&(le=Nt-1)}}function La(y,g,T,W){za(y,T,W),za(g,2*T,2*W),za(g,2*T+1,2*W+1)}function za(y,g,T){const W=y[g];y[g]=y[T],y[T]=W}function Ol(y,g,T,W){const le=y-T,De=g-W;return le*le+De*De}var fl;l.PerformanceMarkers=void 0,(fl=l.PerformanceMarkers||(l.PerformanceMarkers={})).create="create",fl.load="load",fl.fullLoad="fullLoad";let As=null,Xs=[];const kc=1e3/60,Vc="loadTime",Ed="fullLoadTime",am={mark(y){performance.mark(y)},frame(y){const g=y;null!=As&&Xs.push(g-As),As=g},clearMetrics(){As=null,Xs=[],performance.clearMeasures(Vc),performance.clearMeasures(Ed);for(const y in l.PerformanceMarkers)performance.clearMarks(l.PerformanceMarkers[y])},getPerformanceMetrics(){performance.measure(Vc,l.PerformanceMarkers.create,l.PerformanceMarkers.load),performance.measure(Ed,l.PerformanceMarkers.create,l.PerformanceMarkers.fullLoad);const y=performance.getEntriesByName(Vc)[0].duration,g=performance.getEntriesByName(Ed)[0].duration,T=Xs.length,W=1/(Xs.reduce((De,ke)=>De+ke,0)/T/1e3),le=Xs.filter(De=>De>kc).reduce((De,ke)=>De+(ke-kc)/kc,0);return{loadTime:y,fullLoadTime:g,fps:W,percentDroppedFrames:le/(T+le)*100,totalFrames:T}}};l.AJAXError=R,l.ARRAY_TYPE=Kc,l.Actor=class{constructor(y,g,T){this.receive=W=>{const le=W.data,De=le.id;if(De&&(!le.targetMapId||this.mapId===le.targetMapId))if("<cancel>"===le.type){delete this.tasks[De];const ke=this.cancelCallbacks[De];delete this.cancelCallbacks[De],ke&&ke()}else K()||le.mustQueue?(this.tasks[De]=le,this.taskQueue.push(De),this.invoker.trigger()):this.processTask(De,le)},this.process=()=>{if(!this.taskQueue.length)return;const W=this.taskQueue.shift(),le=this.tasks[W];delete this.tasks[W],this.taskQueue.length&&this.invoker.trigger(),le&&this.processTask(W,le)},this.target=y,this.parent=g,this.mapId=T,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},this.invoker=new i_(this.process),this.target.addEventListener("message",this.receive,!1),this.globalScope=K()?y:window}send(y,g,T,W,le=!1){const De=Math.round(1e18*Math.random()).toString(36).substring(0,10);T&&(this.callbacks[De]=T);const ke=ee(this.globalScope)?void 0:[];return this.target.postMessage({id:De,type:y,hasCallback:!!T,targetMapId:W,mustQueue:le,sourceMapId:this.mapId,data:hl(g,ke)},ke),{cancel:()=>{T&&delete this.callbacks[De],this.target.postMessage({id:De,type:"<cancel>",targetMapId:W,sourceMapId:this.mapId})}}}processTask(y,g){if("<response>"===g.type){const T=this.callbacks[y];delete this.callbacks[y],T&&(g.error?T(Cc(g.error)):T(null,Cc(g.data)))}else{let T=!1;const W=ee(this.globalScope)?void 0:[],le=g.hasCallback?(Ot,Nt)=>{T=!0,delete this.cancelCallbacks[y],this.target.postMessage({id:y,type:"<response>",sourceMapId:this.mapId,error:Ot?hl(Ot):null,data:hl(Nt,W)},W)}:Ot=>{T=!0};let De=null;const ke=Cc(g.data);if(this.parent[g.type])De=this.parent[g.type](g.sourceMapId,ke,le);else if(this.parent.getWorkerSource){const Ot=g.type.split(".");De=this.parent.getWorkerSource(g.sourceMapId,Ot[0],ke.source)[Ot[1]](ke,le)}else le(new Error(`Could not find function ${g.type}`));!T&&De&&De.cancel&&(this.cancelCallbacks[y]=De.cancel)}}remove(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)}},l.AlphaImage=Zm,l.CanonicalTileID=nf,l.CollisionBoxArray=wt,l.CollisionCircleLayoutArray=class extends Ci{},l.Color=po,l.DEMData=R_,l.DataConstantProperty=xr,l.DictionaryCoder=Ym,l.EXTENT=tc,l.ErrorEvent=r,l.EvaluationParameters=dr,l.Event=Vt,l.Evented=Z,l.FeatureIndex=N_,l.FillBucket=Lc,l.FillExtrusionBucket=gp,l.GeoJSONFeature=k_,l.ImageAtlas=n_,l.ImagePosition=t_,l.KDBush=Ro,l.LineBucket=jr,l.LineStripIndexArray=class extends de{},l.LngLat=Vm,l.MercatorCoordinate=Gp,l.ONE_EM=Rc,l.OverscaledTileID=au,l.PerformanceUtils=am,l.Point=c,l.Pos3dArray=class extends Dd{},l.PosArray=Kt,l.Properties=il,l.Protobuf=hp,l.QuadTriangleArray=class extends cr{},l.RGBAImage=ld,l.RasterBoundsArray=class extends _c{},l.RequestPerformance=class{constructor(y){this._marks={start:[y.url,"start"].join("#"),end:[y.url,"end"].join("#"),measure:y.url.toString()},performance.mark(this._marks.start)}finish(){performance.mark(this._marks.end);let y=performance.getEntriesByName(this._marks.measure);return 0===y.length&&(performance.measure(this._marks.measure,this._marks.start,this._marks.end),y=performance.getEntriesByName(this._marks.measure),performance.clearMarks(this._marks.start),performance.clearMarks(this._marks.end),performance.clearMeasures(this._marks.measure)),y}},l.SegmentVector=qa,l.SymbolBucket=Yl,l.Transitionable=nt,l.TriangleIndexArray=Rr,l.Uniform1f=uc,l.Uniform1i=class extends Xl{constructor(y,g){super(y,g),this.current=0}set(y){this.current!==y&&(this.current=y,this.gl.uniform1i(this.location,y))}},l.Uniform2f=class extends Xl{constructor(y,g){super(y,g),this.current=[0,0]}set(y){y[0]===this.current[0]&&y[1]===this.current[1]||(this.current=y,this.gl.uniform2f(this.location,y[0],y[1]))}},l.Uniform3f=class extends Xl{constructor(y,g){super(y,g),this.current=[0,0,0]}set(y){y[0]===this.current[0]&&y[1]===this.current[1]&&y[2]===this.current[2]||(this.current=y,this.gl.uniform3f(this.location,y[0],y[1],y[2]))}},l.Uniform4f=Oc,l.UniformColor=jc,l.UniformMatrix4f=class extends Xl{constructor(y,g){super(y,g),this.current=pc}set(y){if(y[12]!==this.current[12]||y[0]!==this.current[0])return this.current=y,void this.gl.uniformMatrix4fv(this.location,!1,y);for(let g=1;g<16;g++)if(y[g]!==this.current[g]){this.current=y,this.gl.uniformMatrix4fv(this.location,!1,y);break}}},l.UnwrappedTileID=r_,l.ValidationError=ot,l.ZoomHistory=Zt,l.addDynamicAttributes=Ea,l.arrayBufferToImage=function(y,g){const T=new Image;T.onload=()=>{g(null,T),URL.revokeObjectURL(T.src),T.onload=null,window.requestAnimationFrame(()=>{T.src=ue})},T.onerror=()=>g(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const W=new Blob([new Uint8Array(y)],{type:"image/png"});T.src=y.byteLength?URL.createObjectURL(W):ue},l.arrayBufferToImageBitmap=function(y,g){const T=new Blob([new Uint8Array(y)],{type:"image/png"});createImageBitmap(T).then(W=>{g(null,W)}).catch(W=>{g(new Error(`Could not load image because of ${W.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})},l.asyncAll=function(y,g,T){if(!y.length)return T(null,[]);let W=y.length;const le=new Array(y.length);let De=null;y.forEach((ke,Ot)=>{g(ke,(Nt,gn)=>{Nt&&(De=Nt),le[Ot]=gn,0==--W&&T(De,le)})})},l.bezier=m,l.browser=at,l.clamp=I,l.clipLine=rf,l.clone=function(y){var g=new Kc(16);return g[0]=y[0],g[1]=y[1],g[2]=y[2],g[3]=y[3],g[4]=y[4],g[5]=y[5],g[6]=y[6],g[7]=y[7],g[8]=y[8],g[9]=y[9],g[10]=y[10],g[11]=y[11],g[12]=y[12],g[13]=y[13],g[14]=y[14],g[15]=y[15],g},l.clone$1=ae,l.collisionCircleLayout=S_,l.config=Le,l.copy=function(y,g){return y[0]=g[0],y[1]=g[1],y[2]=g[2],y[3]=g[3],y[4]=g[4],y[5]=g[5],y[6]=g[6],y[7]=g[7],y[8]=g[8],y[9]=g[9],y[10]=g[10],y[11]=g[11],y[12]=g[12],y[13]=g[13],y[14]=g[14],y[15]=g[15],y},l.create=function(){var y=new Kc(16);return Kc!=Float32Array&&(y[1]=0,y[2]=0,y[3]=0,y[4]=0,y[6]=0,y[7]=0,y[8]=0,y[9]=0,y[11]=0,y[12]=0,y[13]=0,y[14]=0),y[0]=1,y[5]=1,y[10]=1,y[15]=1,y},l.createExpression=Ca,l.createFilter=Eo,l.createLayout=ll,l.createStyleLayer=function(y){if("custom"===y.type)return new Hp(y);switch(y.type){case"background":return new Sp(y);case"circle":return new bu(y);case"fill":return new tu(y);case"fill-extrusion":return new St(y);case"heatmap":return new Tp(y);case"hillshade":return new Hm(y);case"line":return new f_(y);case"raster":return new zu(y);case"symbol":return new Ws(y)}},l.deepEqual=function y(g,T){if(Array.isArray(g)){if(!Array.isArray(T)||g.length!==T.length)return!1;for(let W=0;W<g.length;W++)if(!y(g[W],T[W]))return!1;return!0}if("object"==typeof g&&null!==g&&null!==T){if("object"!=typeof T||Object.keys(g).length!==Object.keys(T).length)return!1;for(const W in g)if(!y(g[W],T[W]))return!1;return!0}return g===T},l.defaultEasing=b,l.derefLayers=function(y){y=y.slice();const g=Object.create(null);for(let T=0;T<y.length;T++)g[y[T].id]=y[T];for(let T=0;T<y.length;T++)"ref"in y[T]&&(y[T]=ye(y[T],g[y[T].ref]));return y},l.diffStyles=function(y,g){if(!y)return[{command:ft.setStyle,args:[g]}];let T=[];try{if(!ve(y.version,g.version))return[{command:ft.setStyle,args:[g]}];ve(y.center,g.center)||T.push({command:ft.setCenter,args:[g.center]}),ve(y.zoom,g.zoom)||T.push({command:ft.setZoom,args:[g.zoom]}),ve(y.bearing,g.bearing)||T.push({command:ft.setBearing,args:[g.bearing]}),ve(y.pitch,g.pitch)||T.push({command:ft.setPitch,args:[g.pitch]}),ve(y.sprite,g.sprite)||T.push({command:ft.setSprite,args:[g.sprite]}),ve(y.glyphs,g.glyphs)||T.push({command:ft.setGlyphs,args:[g.glyphs]}),ve(y.transition,g.transition)||T.push({command:ft.setTransition,args:[g.transition]}),ve(y.light,g.light)||T.push({command:ft.setLight,args:[g.light]});const W={},le=[];!function(ke,Ot,Nt,gn){let Xn;for(Xn in Ot=Ot||{},ke=ke||{})Object.prototype.hasOwnProperty.call(ke,Xn)&&(Object.prototype.hasOwnProperty.call(Ot,Xn)||Rn(Xn,Nt,gn));for(Xn in Ot)Object.prototype.hasOwnProperty.call(Ot,Xn)&&(Object.prototype.hasOwnProperty.call(ke,Xn)?ve(ke[Xn],Ot[Xn])||("geojson"===ke[Xn].type&&"geojson"===Ot[Xn].type&&Xt(ke,Ot,Xn)?Nt.push({command:ft.setGeoJSONSourceData,args:[Xn,Ot[Xn].data]}):ti(Xn,Ot,Nt,gn)):Dt(Xn,Ot,Nt))}(y.sources,g.sources,le,W);const De=[];y.layers&&y.layers.forEach(ke=>{W[ke.source]?T.push({command:ft.removeLayer,args:[ke.id]}):De.push(ke)}),T=T.concat(le),function(ke,Ot,Nt){Ot=Ot||[];const gn=(ke=ke||[]).map(dt),Xn=Ot.map(dt),ci=ke.reduce(Ie,{}),pi=Ot.reduce(Ie,{}),Di=gn.slice(),Ni=Object.create(null);let lo,yo,So,Ko,Uo,Yo,fr;for(lo=0,yo=0;lo<gn.length;lo++)So=gn[lo],Object.prototype.hasOwnProperty.call(pi,So)?yo++:(Nt.push({command:ft.removeLayer,args:[So]}),Di.splice(Di.indexOf(So,yo),1));for(lo=0,yo=0;lo<Xn.length;lo++)So=Xn[Xn.length-1-lo],Di[Di.length-1-lo]!==So&&(Object.prototype.hasOwnProperty.call(ci,So)?(Nt.push({command:ft.removeLayer,args:[So]}),Di.splice(Di.lastIndexOf(So,Di.length-yo),1)):yo++,Yo=Di[Di.length-lo],Nt.push({command:ft.addLayer,args:[pi[So],Yo]}),Di.splice(Di.length-lo,0,So),Ni[So]=!0);for(lo=0;lo<Xn.length;lo++)if(So=Xn[lo],Ko=ci[So],Uo=pi[So],!Ni[So]&&!ve(Ko,Uo))if(ve(Ko.source,Uo.source)&&ve(Ko["source-layer"],Uo["source-layer"])&&ve(Ko.type,Uo.type)){for(fr in Je(Ko.layout,Uo.layout,Nt,So,null,ft.setLayoutProperty),Je(Ko.paint,Uo.paint,Nt,So,null,ft.setPaintProperty),ve(Ko.filter,Uo.filter)||Nt.push({command:ft.setFilter,args:[So,Uo.filter]}),ve(Ko.minzoom,Uo.minzoom)&&ve(Ko.maxzoom,Uo.maxzoom)||Nt.push({command:ft.setLayerZoomRange,args:[So,Uo.minzoom,Uo.maxzoom]}),Ko)Object.prototype.hasOwnProperty.call(Ko,fr)&&"layout"!==fr&&"paint"!==fr&&"filter"!==fr&&"metadata"!==fr&&"minzoom"!==fr&&"maxzoom"!==fr&&(0===fr.indexOf("paint.")?Je(Ko[fr],Uo[fr],Nt,So,fr.slice(6),ft.setPaintProperty):ve(Ko[fr],Uo[fr])||Nt.push({command:ft.setLayerProperty,args:[So,fr,Uo[fr]]}));for(fr in Uo)Object.prototype.hasOwnProperty.call(Uo,fr)&&!Object.prototype.hasOwnProperty.call(Ko,fr)&&"layout"!==fr&&"paint"!==fr&&"filter"!==fr&&"metadata"!==fr&&"minzoom"!==fr&&"maxzoom"!==fr&&(0===fr.indexOf("paint.")?Je(Ko[fr],Uo[fr],Nt,So,fr.slice(6),ft.setPaintProperty):ve(Ko[fr],Uo[fr])||Nt.push({command:ft.setLayerProperty,args:[So,fr,Uo[fr]]}))}else Nt.push({command:ft.removeLayer,args:[So]}),Yo=Di[Di.lastIndexOf(So)+1],Nt.push({command:ft.addLayer,args:[Uo,Yo]})}(De,g.layers,T)}catch(W){console.warn("Unable to compute style diff:",W),T=[{command:ft.setStyle,args:[g]}]}return T},l.dot=function(y,g){return y[0]*g[0]+y[1]*g[1]+y[2]*g[2]+y[3]*g[3]},l.earthRadius=Fp,l.emitValidationErrors=Ms,l.emptyStyle=function(){const y={},g=Pt.$version;for(const T in Pt.$root){const W=Pt.$root[T];if(W.required){let le=null;le="version"===T?g:"array"===W.type?[]:{},null!=le&&(y[T]=le)}}return y},l.equals=function(y,g){var T=y[0],W=y[1],le=y[2],De=y[3],ke=y[4],Ot=y[5],Nt=y[6],gn=y[7],Xn=y[8],ci=y[9],pi=y[10],Di=y[11],Ni=y[12],lo=y[13],yo=y[14],So=y[15],Ko=g[0],Uo=g[1],Yo=g[2],fr=g[3],Ur=g[4],sa=g[5],Ya=g[6],ua=g[7],ca=g[8],pa=g[9],Xa=g[10],Ma=g[11],ea=g[12],rs=g[13],Sa=g[14],ml=g[15];return Math.abs(T-Ko)<=sd*Math.max(1,Math.abs(T),Math.abs(Ko))&&Math.abs(W-Uo)<=sd*Math.max(1,Math.abs(W),Math.abs(Uo))&&Math.abs(le-Yo)<=sd*Math.max(1,Math.abs(le),Math.abs(Yo))&&Math.abs(De-fr)<=sd*Math.max(1,Math.abs(De),Math.abs(fr))&&Math.abs(ke-Ur)<=sd*Math.max(1,Math.abs(ke),Math.abs(Ur))&&Math.abs(Ot-sa)<=sd*Math.max(1,Math.abs(Ot),Math.abs(sa))&&Math.abs(Nt-Ya)<=sd*Math.max(1,Math.abs(Nt),Math.abs(Ya))&&Math.abs(gn-ua)<=sd*Math.max(1,Math.abs(gn),Math.abs(ua))&&Math.abs(Xn-ca)<=sd*Math.max(1,Math.abs(Xn),Math.abs(ca))&&Math.abs(ci-pa)<=sd*Math.max(1,Math.abs(ci),Math.abs(pa))&&Math.abs(pi-Xa)<=sd*Math.max(1,Math.abs(pi),Math.abs(Xa))&&Math.abs(Di-Ma)<=sd*Math.max(1,Math.abs(Di),Math.abs(Ma))&&Math.abs(Ni-ea)<=sd*Math.max(1,Math.abs(Ni),Math.abs(ea))&&Math.abs(lo-rs)<=sd*Math.max(1,Math.abs(lo),Math.abs(rs))&&Math.abs(yo-Sa)<=sd*Math.max(1,Math.abs(yo),Math.abs(Sa))&&Math.abs(So-ml)<=sd*Math.max(1,Math.abs(So),Math.abs(ml))},l.evaluateSizeForFeature=function(y,{uSize:g,uSizeT:T},{lowerSize:W,upperSize:le}){return"source"===y.kind?W/nr:"composite"===y.kind?ls.number(W/nr,le/nr,T):g},l.evaluateSizeForZoom=function(y,g){let T=0,W=0;if("constant"===y.kind)W=y.layoutSize;else if("source"!==y.kind){const{interpolationType:le,minZoom:De,maxZoom:ke}=y,Ot=le?I(Fa.interpolationFactor(le,g,De,ke),0,1):0;"camera"===y.kind?W=ls.number(y.minSize,y.maxSize,Ot):T=Ot}return{uSizeT:T,uSize:W}},l.evented=or,l.extend=O,l.filterObject=B,l.findLineIntersection=function(y,g,T,W){const le=g.y-y.y,De=g.x-y.x,ke=W.y-T.y,Ot=W.x-T.x,Nt=ke*De-Ot*le;if(0===Nt)return null;const gn=(Ot*(y.y-T.y)-ke*(y.x-T.x))/Nt;return new c(y.x+gn*De,y.y+gn*le)},l.fromScaling=function(y,g){return y[0]=g[0],y[1]=0,y[2]=0,y[3]=0,y[4]=0,y[5]=g[1],y[6]=0,y[7]=0,y[8]=0,y[9]=0,y[10]=g[2],y[11]=0,y[12]=0,y[13]=0,y[14]=0,y[15]=1,y},l.getAnchorAlignment=Ai,l.getAnchorJustification=we,l.getArrayBuffer=We,l.getDefaultExportFromCjs=i,l.getJSON=function(y,g){return Ue(O(y,{type:"json"}),g)},l.getOverlapMode=wr,l.getProtocolAction=me,l.getRTLTextPluginStatus=Ki,l.getReferrer=Te,l.getVideo=function(y,g){const T=window.document.createElement("video");T.muted=!0,T.onloadstart=function(){g(null,T)};for(let W=0;W<y.length;W++){const le=window.document.createElement("source");et(y[W])||(T.crossOrigin="Anonymous"),le.src=y[W],T.appendChild(le)}return{cancel:()=>{}}},l.groupByLayout=function(y,g){const T={};for(let le=0;le<y.length;le++){const De=g&&g[y[le].id]||Ho(y[le]);g&&(g[y[le].id]=De);let ke=T[De];ke||(ke=T[De]=[]),ke.push(y[le])}const W=[];for(const le in T)W.push(T[le]);return W},l.identity=fm,l.interpolate=ls,l.invert=function(y,g){var T=g[0],W=g[1],le=g[2],De=g[3],ke=g[4],Ot=g[5],Nt=g[6],gn=g[7],Xn=g[8],ci=g[9],pi=g[10],Di=g[11],Ni=g[12],lo=g[13],yo=g[14],So=g[15],Ko=T*Ot-W*ke,Uo=T*Nt-le*ke,Yo=T*gn-De*ke,fr=W*Nt-le*Ot,Ur=W*gn-De*Ot,sa=le*gn-De*Nt,Ya=Xn*lo-ci*Ni,ua=Xn*yo-pi*Ni,ca=Xn*So-Di*Ni,pa=ci*yo-pi*lo,Xa=ci*So-Di*lo,Ma=pi*So-Di*yo,ea=Ko*Ma-Uo*Xa+Yo*pa+fr*ca-Ur*ua+sa*Ya;return ea?(y[0]=(Ot*Ma-Nt*Xa+gn*pa)*(ea=1/ea),y[1]=(le*Xa-W*Ma-De*pa)*ea,y[2]=(lo*sa-yo*Ur+So*fr)*ea,y[3]=(pi*Ur-ci*sa-Di*fr)*ea,y[4]=(Nt*ca-ke*Ma-gn*ua)*ea,y[5]=(T*Ma-le*ca+De*ua)*ea,y[6]=(yo*Yo-Ni*sa-So*Uo)*ea,y[7]=(Xn*sa-pi*Yo+Di*Uo)*ea,y[8]=(ke*Xa-Ot*ca+gn*Ya)*ea,y[9]=(W*ca-T*Xa-De*Ya)*ea,y[10]=(Ni*Ur-lo*Yo+So*Ko)*ea,y[11]=(ci*Yo-Xn*Ur-Di*Ko)*ea,y[12]=(Ot*ua-ke*pa-Nt*Ya)*ea,y[13]=(T*pa-W*ua+le*Ya)*ea,y[14]=(lo*Uo-Ni*fr-yo*Ko)*ea,y[15]=(Xn*fr-ci*Uo+pi*Ko)*ea,y):null},l.isImageBitmap=$,l.isSafari=ee,l.isWorker=K,l.keysDifference=function(y,g){const T=[];for(const W in y)W in g||T.push(W);return T},l.lazyLoadRTLTextPlugin=function(){Go.isLoading()||Go.isLoaded()||"deferred"!==Ki()||Ao()},l.makeRequest=Ue,l.mapObject=G,l.mercatorXfromLng=xf,l.mercatorYfromLat=vf,l.mercatorZfromAltitude=bf,l.mul=gm,l.mul$1=function(y,g,T){return y[0]=g[0]*T[0],y[1]=g[1]*T[1],y[2]=g[2]*T[2],y[3]=g[3]*T[3],y},l.multiply=Nu,l.nextPowerOfTwo=function(y){return y<=1?1:Math.pow(2,Math.ceil(Math.log(y)/Math.LN2))},l.operations=ft,l.ortho=function(y,g,T,W,le,De,ke){var Ot=1/(g-T),Nt=1/(W-le),gn=1/(De-ke);return y[0]=-2*Ot,y[1]=0,y[2]=0,y[3]=0,y[4]=0,y[5]=-2*Nt,y[6]=0,y[7]=0,y[8]=0,y[9]=0,y[10]=2*gn,y[11]=0,y[12]=(g+T)*Ot,y[13]=(le+W)*Nt,y[14]=(ke+De)*gn,y[15]=1,y},l.parseCacheControl=function(y){const g={};if(y.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(T,W,le,De)=>{const ke=le||De;return g[W]=!ke||ke.toLowerCase(),""}),g["max-age"]){const T=parseInt(g["max-age"],10);isNaN(T)?delete g["max-age"]:g["max-age"]=T}return g},l.parseGlyphPbf=function(y){return new hp(y).readFields(e_,[])},l.pbf=F_,l.performSymbolLayout=function(y){y.bucket.createArrays(),y.bucket.tilePixelRatio=tc/(512*y.bucket.overscaling),y.bucket.compareText={},y.bucket.iconsNeedLinear=!1;const g=y.bucket.layers[0],T=g.layout,W=g._unevaluatedLayout._values,le={layoutIconSize:W["icon-size"].possiblyEvaluate(new dr(y.bucket.zoom+1),y.canonical),layoutTextSize:W["text-size"].possiblyEvaluate(new dr(y.bucket.zoom+1),y.canonical),textMaxSize:W["text-size"].possiblyEvaluate(new dr(18))};if("composite"===y.bucket.textSizeData.kind){const{minZoom:gn,maxZoom:Xn}=y.bucket.textSizeData;le.compositeTextSizes=[W["text-size"].possiblyEvaluate(new dr(gn),y.canonical),W["text-size"].possiblyEvaluate(new dr(Xn),y.canonical)]}if("composite"===y.bucket.iconSizeData.kind){const{minZoom:gn,maxZoom:Xn}=y.bucket.iconSizeData;le.compositeIconSizes=[W["icon-size"].possiblyEvaluate(new dr(gn),y.canonical),W["icon-size"].possiblyEvaluate(new dr(Xn),y.canonical)]}const De=T.get("text-line-height")*Rc,ke="viewport"!==T.get("text-rotation-alignment")&&"point"!==T.get("symbol-placement"),Ot=T.get("text-keep-upright"),Nt=T.get("text-size");for(const gn of y.bucket.features){const Xn=T.get("text-font").evaluate(gn,{},y.canonical).join(","),ci=Nt.evaluate(gn,{},y.canonical),pi=le.layoutTextSize.evaluate(gn,{},y.canonical),Di=le.layoutIconSize.evaluate(gn,{},y.canonical),Ni={horizontal:{},vertical:void 0},lo=gn.text;let yo,So=[0,0];if(lo){const Yo=lo.toString(),fr=T.get("text-letter-spacing").evaluate(gn,{},y.canonical)*Rc,Ur=mi(Yo)?fr:0,sa=T.get("text-anchor").evaluate(gn,{},y.canonical),Ya=be(g,gn,y.canonical);if(!Ya){const Ma=T.get("text-radial-offset").evaluate(gn,{},y.canonical);So=Ma?c_(sa,[Ma*Rc,G_]):T.get("text-offset").evaluate(gn,{},y.canonical).map(ea=>ea*Rc)}let ua=ke?"center":T.get("text-justify").evaluate(gn,{},y.canonical);const ca=T.get("symbol-placement"),pa="point"===ca?T.get("text-max-width").evaluate(gn,{},y.canonical)*Rc:0,Xa=()=>{y.bucket.allowVerticalPlacement&&Mn(Yo)&&(Ni.vertical=w(lo,y.glyphMap,y.glyphPositions,y.imagePositions,Xn,pa,De,sa,"left",Ur,So,l.WritingMode.vertical,!0,ca,pi,ci))};if(!ke&&Ya){const Ma=new Set;if("auto"===ua)for(let rs=0;rs<Ya.values.length;rs+=2)Ma.add(we(Ya.values[rs]));else Ma.add(ua);let ea=!1;for(const rs of Ma)if(!Ni.horizontal[rs])if(ea)Ni.horizontal[rs]=Ni.horizontal[0];else{const Sa=w(lo,y.glyphMap,y.glyphPositions,y.imagePositions,Xn,pa,De,"center",rs,Ur,So,l.WritingMode.horizontal,!1,ca,pi,ci);Sa&&(Ni.horizontal[rs]=Sa,ea=1===Sa.positionedLines.length)}Xa()}else{"auto"===ua&&(ua=we(sa));const Ma=w(lo,y.glyphMap,y.glyphPositions,y.imagePositions,Xn,pa,De,sa,ua,Ur,So,l.WritingMode.horizontal,!1,ca,pi,ci);Ma&&(Ni.horizontal[ua]=Ma),Xa(),Mn(Yo)&&ke&&Ot&&(Ni.vertical=w(lo,y.glyphMap,y.glyphPositions,y.imagePositions,Xn,pa,De,sa,ua,Ur,So,l.WritingMode.vertical,!1,ca,pi,ci))}}let Ko=!1;if(gn.icon&&gn.icon.name){const Yo=y.imageMap[gn.icon.name];Yo&&(yo=go(y.imagePositions[gn.icon.name],T.get("icon-offset").evaluate(gn,{},y.canonical),T.get("icon-anchor").evaluate(gn,{},y.canonical)),Ko=!!Yo.sdf,void 0===y.bucket.sdfIcons?y.bucket.sdfIcons=Ko:y.bucket.sdfIcons!==Ko&&q("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(Yo.pixelRatio!==y.bucket.pixelRatio||0!==T.get("icon-rotate").constantOr(1))&&(y.bucket.iconsNeedLinear=!0))}const Uo=Rt(Ni.horizontal)||Ni.vertical;y.bucket.iconsInText=!!Uo&&Uo.iconsInText,(Uo||yo)&&ie(y.bucket,gn,Ni,yo,y.imageMap,le,pi,Di,So,Ko,y.canonical)}y.showCollisionBoxes&&y.bucket.generateCollisionDebugBuffers()},l.perspective=function(y,g,T,W,le){var De,ke=1/Math.tan(g/2);return y[0]=ke/T,y[1]=0,y[2]=0,y[3]=0,y[4]=0,y[5]=ke,y[6]=0,y[7]=0,y[8]=0,y[9]=0,y[11]=-1,y[12]=0,y[13]=0,y[15]=0,null!=le&&le!==1/0?(y[10]=(le+W)*(De=1/(W-le)),y[14]=2*le*W*De):(y[10]=-1,y[14]=-2*W),y},l.pick=function(y,g){const T={};for(let W=0;W<g.length;W++){const le=g[W];le in y&&(T[le]=y[le])}return T},l.plugin=Go,l.pointGeometry=t,l.polygonIntersectsPolygon=om,l.potpack=Dp,l.register=Fr,l.registerForPluginStateChange=function(y){return y({pluginStatus:Ks,pluginURL:pl}),or.on("pluginStateChange",y),y},l.renderColorRamp=eu,l.rotateX=function(y,g,T){var W=Math.sin(T),le=Math.cos(T),De=g[4],ke=g[5],Ot=g[6],Nt=g[7],gn=g[8],Xn=g[9],ci=g[10],pi=g[11];return g!==y&&(y[0]=g[0],y[1]=g[1],y[2]=g[2],y[3]=g[3],y[12]=g[12],y[13]=g[13],y[14]=g[14],y[15]=g[15]),y[4]=De*le+gn*W,y[5]=ke*le+Xn*W,y[6]=Ot*le+ci*W,y[7]=Nt*le+pi*W,y[8]=gn*le-De*W,y[9]=Xn*le-ke*W,y[10]=ci*le-Ot*W,y[11]=pi*le-Nt*W,y},l.rotateZ=function(y,g,T){var W=Math.sin(T),le=Math.cos(T),De=g[0],ke=g[1],Ot=g[2],Nt=g[3],gn=g[4],Xn=g[5],ci=g[6],pi=g[7];return g!==y&&(y[8]=g[8],y[9]=g[9],y[10]=g[10],y[11]=g[11],y[12]=g[12],y[13]=g[13],y[14]=g[14],y[15]=g[15]),y[0]=De*le+gn*W,y[1]=ke*le+Xn*W,y[2]=Ot*le+ci*W,y[3]=Nt*le+pi*W,y[4]=gn*le-De*W,y[5]=Xn*le-ke*W,y[6]=ci*le-Ot*W,y[7]=pi*le-Nt*W,y},l.sameOrigin=et,l.scale=function(y,g,T){var W=T[0],le=T[1],De=T[2];return y[0]=g[0]*W,y[1]=g[1]*W,y[2]=g[2]*W,y[3]=g[3]*W,y[4]=g[4]*le,y[5]=g[5]*le,y[6]=g[6]*le,y[7]=g[7]*le,y[8]=g[8]*De,y[9]=g[9]*De,y[10]=g[10]*De,y[11]=g[11]*De,y[12]=g[12],y[13]=g[13],y[14]=g[14],y[15]=g[15],y},l.setRTLTextPlugin=function(y,g,T=!1){if(Ks===Ts||Ks===_s||Ks===ul)throw new Error("setRTLTextPlugin cannot be called multiple times.");pl=at.resolveURL(y),Ks=Ts,qs=g,Mi(),T||Ao()},l.sphericalToCartesian=function([y,g,T]){return g+=90,g*=Math.PI/180,T*=Math.PI/180,{x:y*Math.cos(g)*Math.sin(T),y:y*Math.sin(g)*Math.sin(T),z:y*Math.cos(T)}},l.toEvaluationFeature=Zc,l.transformMat4=vu,l.translate=function(y,g,T){var W,le,De,ke,Ot,Nt,gn,Xn,ci,pi,Di,Ni,lo=T[0],yo=T[1],So=T[2];return g===y?(y[12]=g[0]*lo+g[4]*yo+g[8]*So+g[12],y[13]=g[1]*lo+g[5]*yo+g[9]*So+g[13],y[14]=g[2]*lo+g[6]*yo+g[10]*So+g[14],y[15]=g[3]*lo+g[7]*yo+g[11]*So+g[15]):(le=g[1],De=g[2],ke=g[3],Ot=g[4],Nt=g[5],gn=g[6],Xn=g[7],ci=g[8],pi=g[9],Di=g[10],Ni=g[11],y[0]=W=g[0],y[1]=le,y[2]=De,y[3]=ke,y[4]=Ot,y[5]=Nt,y[6]=gn,y[7]=Xn,y[8]=ci,y[9]=pi,y[10]=Di,y[11]=Ni,y[12]=W*lo+Ot*yo+ci*So+g[12],y[13]=le*lo+Nt*yo+pi*So+g[13],y[14]=De*lo+gn*yo+Di*So+g[14],y[15]=ke*lo+Xn*yo+Ni*So+g[15]),y},l.triggerPluginCompletionEvent=nc,l.unicodeBlockLookup=ri,l.uniqueId=function(){return P++},l.v8Spec=Pt,l.validateCustomStyleLayer=function(y){const g=[],T=y.id;return void 0===T&&g.push({message:`layers.${T}: missing required property "id"`}),void 0===y.render&&g.push({message:`layers.${T}: missing required method "render"`}),y.renderingMode&&"2d"!==y.renderingMode&&"3d"!==y.renderingMode&&g.push({message:`layers.${T}: property "renderingMode" must be either "2d" or "3d"`}),g},l.validateLight=Ec,l.validateStyle=sl,l.vectorTile=Mc,l.warnOnce=q,l.wrap=H}),n(0,function(l){class i{constructor(He){this.keyCache={},He&&this.replace(He)}replace(He){this._layerConfigs={},this._layers={},this.update(He,[])}update(He,rt){for(const Ve of He){this._layerConfigs[Ve.id]=Ve;const Ce=this._layers[Ve.id]=l.createStyleLayer(Ve);Ce._featureFilter=l.createFilter(Ce.filter),this.keyCache[Ve.id]&&delete this.keyCache[Ve.id]}for(const Ve of rt)delete this.keyCache[Ve],delete this._layerConfigs[Ve],delete this._layers[Ve];this.familiesBySource={};const $e=l.groupByLayout(Object.values(this._layerConfigs),this.keyCache);for(const Ve of $e){const Ce=Ve.map(Fn=>this._layers[Fn.id]),tt=Ce[0];if("none"===tt.visibility)continue;const ht=tt.source||"";let Qt=this.familiesBySource[ht];Qt||(Qt=this.familiesBySource[ht]={});const Un=tt.sourceLayer||"_geojsonTileLayer";let Yt=Qt[Un];Yt||(Yt=Qt[Un]=[]),Yt.push(Ce)}}}class t{constructor(He){const rt={},$e=[];for(const ht in He){const Qt=He[ht],Un=rt[ht]={};for(const Yt in Qt){const Fn=Qt[+Yt];if(!Fn||0===Fn.bitmap.width||0===Fn.bitmap.height)continue;const yt={x:0,y:0,w:Fn.bitmap.width+2,h:Fn.bitmap.height+2};$e.push(yt),Un[Yt]={rect:yt,metrics:Fn.metrics}}}const{w:Ve,h:Ce}=l.potpack($e),tt=new l.AlphaImage({width:Ve||1,height:Ce||1});for(const ht in He){const Qt=He[ht];for(const Un in Qt){const Yt=Qt[+Un];if(!Yt||0===Yt.bitmap.width||0===Yt.bitmap.height)continue;const Fn=rt[ht][Un].rect;l.AlphaImage.copy(Yt.bitmap,tt,{x:0,y:0},{x:Fn.x+1,y:Fn.y+1},Yt.bitmap)}}this.image=tt,this.positions=rt}}l.register("GlyphAtlas",t);class p{constructor(He){this.tileID=new l.OverscaledTileID(He.tileID.overscaledZ,He.tileID.wrap,He.tileID.canonical.z,He.tileID.canonical.x,He.tileID.canonical.y),this.uid=He.uid,this.zoom=He.zoom,this.pixelRatio=He.pixelRatio,this.tileSize=He.tileSize,this.source=He.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=He.showCollisionBoxes,this.collectResourceTiming=!!He.collectResourceTiming,this.returnDependencies=!!He.returnDependencies,this.promoteId=He.promoteId,this.inFlightDependencies=[],this.dependencySentinel=-1}parse(He,rt,$e,Ve,Ce){this.status="parsing",this.data=He,this.collisionBoxArray=new l.CollisionBoxArray;const tt=new l.DictionaryCoder(Object.keys(He.layers).sort()),ht=new l.FeatureIndex(this.tileID,this.promoteId);ht.bucketLayerIDs=[];const Qt={},Un={featureIndex:ht,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:$e},Yt=rt.familiesBySource[this.source];for(const vn in Yt){const Ji=He.layers[vn];if(!Ji)continue;1===Ji.version&&l.warnOnce(`Vector tile source "${this.source}" layer "${vn}" does not use vector tile spec v2 and therefore may have some rendering errors.`);const wn=tt.encode(vn),po=[];for(let Kn=0;Kn<Ji.length;Kn++){const Vn=Ji.feature(Kn),Wi=ht.getId(Vn,vn);po.push({feature:Vn,id:Wi,index:Kn,sourceLayerIndex:wn})}for(const Kn of Yt[vn]){const Vn=Kn[0];Vn.source!==this.source&&l.warnOnce(`layer.source = ${Vn.source} does not equal this.source = ${this.source}`),Vn.minzoom&&this.zoom<Math.floor(Vn.minzoom)||Vn.maxzoom&&this.zoom>=Vn.maxzoom||"none"!==Vn.visibility&&(c(Kn,this.zoom,$e),(Qt[Vn.id]=Vn.createBucket({index:ht.bucketLayerIDs.length,layers:Kn,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:wn,sourceID:this.source})).populate(po,Un,this.tileID.canonical),ht.bucketLayerIDs.push(Kn.map(Wi=>Wi.id)))}}let Fn,yt,Bt,li;const si=l.mapObject(Un.glyphDependencies,vn=>Object.keys(vn).map(Number));this.inFlightDependencies.forEach(vn=>vn?.cancel()),this.inFlightDependencies=[];const oo=++this.dependencySentinel;Object.keys(si).length?this.inFlightDependencies.push(Ve.send("getGlyphs",{uid:this.uid,stacks:si,source:this.source,tileID:this.tileID,type:"glyphs"},(vn,Ji)=>{oo===this.dependencySentinel&&(Fn||(Fn=vn,yt=Ji,mo.call(this)))})):yt={};const _o=Object.keys(Un.iconDependencies);_o.length?this.inFlightDependencies.push(Ve.send("getImages",{icons:_o,source:this.source,tileID:this.tileID,type:"icons"},(vn,Ji)=>{oo===this.dependencySentinel&&(Fn||(Fn=vn,Bt=Ji,mo.call(this)))})):Bt={};const Hn=Object.keys(Un.patternDependencies);function mo(){if(Fn)return Ce(Fn);if(yt&&Bt&&li){const vn=new t(yt),Ji=new l.ImageAtlas(Bt,li);for(const wn in Qt){const po=Qt[wn];po instanceof l.SymbolBucket?(c(po.layers,this.zoom,$e),l.performSymbolLayout({bucket:po,glyphMap:yt,glyphPositions:vn.positions,imageMap:Bt,imagePositions:Ji.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):po.hasPattern&&(po instanceof l.LineBucket||po instanceof l.FillBucket||po instanceof l.FillExtrusionBucket)&&(c(po.layers,this.zoom,$e),po.addFeatures(Un,this.tileID.canonical,Ji.patternPositions))}this.status="done",Ce(null,{buckets:Object.values(Qt).filter(wn=>!wn.isEmpty()),featureIndex:ht,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:vn.image,imageAtlas:Ji,glyphMap:this.returnDependencies?yt:null,iconMap:this.returnDependencies?Bt:null,glyphPositions:this.returnDependencies?vn.positions:null})}}Hn.length?this.inFlightDependencies.push(Ve.send("getImages",{icons:Hn,source:this.source,tileID:this.tileID,type:"patterns"},(vn,Ji)=>{oo===this.dependencySentinel&&(Fn||(Fn=vn,li=Ji,mo.call(this)))})):li={},mo.call(this)}}function c(ln,He,rt){const $e=new l.EvaluationParameters(He);for(const Ve of ln)Ve.recalculate($e,rt)}function o(ln,He){const rt=l.getArrayBuffer(ln.request,($e,Ve,Ce,tt)=>{if($e)He($e);else if(Ve)try{const ht=new l.vectorTile.VectorTile(new l.Protobuf(Ve));He(null,{vectorTile:ht,rawData:Ve,cacheControl:Ce,expires:tt})}catch(ht){const Qt=new Uint8Array(Ve);let Un=`Unable to parse the tile at ${ln.request.url}, `;Un+=31===Qt[0]&&139===Qt[1]?"please make sure the data is not gzipped and that you have configured the relevant header in the server":`got error: ${ht.messge}`,He(new Error(Un))}});return()=>{rt.cancel(),He()}}class x{constructor(He,rt,$e,Ve){this.actor=He,this.layerIndex=rt,this.availableImages=$e,this.loadVectorData=Ve||o,this.fetching={},this.loading={},this.loaded={}}loadTile(He,rt){const $e=He.uid;this.loading||(this.loading={});const Ve=!!(He&&He.request&&He.request.collectResourceTiming)&&new l.RequestPerformance(He.request),Ce=this.loading[$e]=new p(He);Ce.abort=this.loadVectorData(He,(tt,ht)=>{if(delete this.loading[$e],tt||!ht)return Ce.status="done",this.loaded[$e]=Ce,rt(tt);const Qt=ht.rawData,Un={};ht.expires&&(Un.expires=ht.expires),ht.cacheControl&&(Un.cacheControl=ht.cacheControl);const Yt={};if(Ve){const Fn=Ve.finish();Fn&&(Yt.resourceTiming=JSON.parse(JSON.stringify(Fn)))}Ce.vectorTile=ht.vectorTile,Ce.parse(ht.vectorTile,this.layerIndex,this.availableImages,this.actor,(Fn,yt)=>{if(delete this.fetching[$e],Fn||!yt)return rt(Fn);rt(null,l.extend({rawTileData:Qt.slice(0)},yt,Un,Yt))}),this.loaded=this.loaded||{},this.loaded[$e]=Ce,this.fetching[$e]={rawTileData:Qt,cacheControl:Un,resourceTiming:Yt}})}reloadTile(He,rt){const $e=this.loaded,Ve=He.uid;if($e&&$e[Ve]){const Ce=$e[Ve];Ce.showCollisionBoxes=He.showCollisionBoxes,"parsing"===Ce.status?Ce.parse(Ce.vectorTile,this.layerIndex,this.availableImages,this.actor,(tt,ht)=>{if(tt||!ht)return rt(tt,ht);let Qt;if(this.fetching[Ve]){const{rawTileData:Un,cacheControl:Yt,resourceTiming:Fn}=this.fetching[Ve];delete this.fetching[Ve],Qt=l.extend({rawTileData:Un.slice(0)},ht,Yt,Fn)}else Qt=ht;rt(null,Qt)}):"done"===Ce.status&&(Ce.vectorTile?Ce.parse(Ce.vectorTile,this.layerIndex,this.availableImages,this.actor,rt):rt())}}abortTile(He,rt){const $e=this.loading,Ve=He.uid;$e&&$e[Ve]&&$e[Ve].abort&&($e[Ve].abort(),delete $e[Ve]),rt()}removeTile(He,rt){const $e=this.loaded,Ve=He.uid;$e&&$e[Ve]&&delete $e[Ve],rt()}}class u{constructor(){this.loaded={}}loadTile(He,rt){const{uid:$e,encoding:Ve,rawImageData:Ce,redFactor:tt,greenFactor:ht,blueFactor:Qt,baseShift:Un}=He,Yt=l.isImageBitmap(Ce)?this.getImageData(Ce):Ce,Fn=new l.DEMData($e,Yt,Ve,tt,ht,Qt,Un);this.loaded=this.loaded||{},this.loaded[$e]=Fn,rt(null,Fn)}getImageData(He){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(He.width,He.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d",{willReadFrequently:!0})),this.offscreenCanvas.width=He.width,this.offscreenCanvas.height=He.height,this.offscreenCanvasContext.drawImage(He,0,0,He.width,He.height);const rt=this.offscreenCanvasContext.getImageData(-1,-1,He.width+2,He.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new l.RGBAImage({width:rt.width,height:rt.height},rt.data)}removeTile(He){const rt=this.loaded,$e=He.uid;rt&&rt[$e]&&delete rt[$e]}}function m(ln,He){if(0!==ln.length){b(ln[0],He);for(var rt=1;rt<ln.length;rt++)b(ln[rt],!He)}}function b(ln,He){for(var rt=0,$e=0,Ve=0,Ce=ln.length,tt=Ce-1;Ve<Ce;tt=Ve++){var ht=(ln[Ve][0]-ln[tt][0])*(ln[tt][1]+ln[Ve][1]),Qt=rt+ht;$e+=Math.abs(rt)>=Math.abs(ht)?rt-Qt+ht:ht-Qt+rt,rt=Qt}rt+$e>=0!=!!He&&ln.reverse()}var I=l.getDefaultExportFromCjs(function ln(He,rt){var $e,Ve=He&&He.type;if("FeatureCollection"===Ve)for($e=0;$e<He.features.length;$e++)ln(He.features[$e],rt);else if("GeometryCollection"===Ve)for($e=0;$e<He.geometries.length;$e++)ln(He.geometries[$e],rt);else if("Feature"===Ve)ln(He.geometry,rt);else if("Polygon"===Ve)m(He.coordinates,rt);else if("MultiPolygon"===Ve)for($e=0;$e<He.coordinates.length;$e++)m(He.coordinates[$e],rt);return He});const H=l.vectorTile.VectorTileFeature.prototype.toGeoJSON;var O={exports:{}},P=l.pointGeometry,G=l.vectorTile.VectorTileFeature,B=ae;function ae(ln,He){this.options=He||{},this.features=ln,this.length=ln.length}function J(ln,He){this.id="number"==typeof ln.id?ln.id:void 0,this.type=ln.type,this.rawGeometry=1===ln.type?[ln.geometry]:ln.geometry,this.properties=ln.tags,this.extent=He||4096}ae.prototype.feature=function(ln){return new J(this.features[ln],this.options.extent)},J.prototype.loadGeometry=function(){var ln=this.rawGeometry;this.geometry=[];for(var He=0;He<ln.length;He++){for(var rt=ln[He],$e=[],Ve=0;Ve<rt.length;Ve++)$e.push(new P(rt[Ve][0],rt[Ve][1]));this.geometry.push($e)}return this.geometry},J.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var ln=this.geometry,He=1/0,rt=-1/0,$e=1/0,Ve=-1/0,Ce=0;Ce<ln.length;Ce++)for(var tt=ln[Ce],ht=0;ht<tt.length;ht++){var Qt=tt[ht];He=Math.min(He,Qt.x),rt=Math.max(rt,Qt.x),$e=Math.min($e,Qt.y),Ve=Math.max(Ve,Qt.y)}return[He,$e,rt,Ve]},J.prototype.toGeoJSON=G.prototype.toGeoJSON;var q=l.pbf,j=B;function Y(ln){var He=new q;return function(rt,$e){for(var Ve in rt.layers)$e.writeMessage(3,K,rt.layers[Ve])}(ln,He),He.finish()}function K(ln,He){var rt;He.writeVarintField(15,ln.version||1),He.writeStringField(1,ln.name||""),He.writeVarintField(5,ln.extent||4096);var $e={keys:[],values:[],keycache:{},valuecache:{}};for(rt=0;rt<ln.length;rt++)$e.feature=ln.feature(rt),He.writeMessage(2,ne,$e);var Ve=$e.keys;for(rt=0;rt<Ve.length;rt++)He.writeStringField(3,Ve[rt]);var Ce=$e.values;for(rt=0;rt<Ce.length;rt++)He.writeMessage(4,Ke,Ce[rt])}function ne(ln,He){var rt=ln.feature;void 0!==rt.id&&He.writeVarintField(1,rt.id),He.writeMessage(2,ee,ln),He.writeVarintField(3,rt.type),He.writeMessage(4,ge,rt)}function ee(ln,He){var rt=ln.feature,$e=ln.keys,Ve=ln.values,Ce=ln.keycache,tt=ln.valuecache;for(var ht in rt.properties){var Qt=rt.properties[ht],Un=Ce[ht];if(null!==Qt){void 0===Un&&($e.push(ht),Ce[ht]=Un=$e.length-1),He.writeVarint(Un);var Yt=typeof Qt;"string"!==Yt&&"boolean"!==Yt&&"number"!==Yt&&(Qt=JSON.stringify(Qt));var Fn=Yt+":"+Qt,yt=tt[Fn];void 0===yt&&(Ve.push(Qt),tt[Fn]=yt=Ve.length-1),He.writeVarint(yt)}}}function $(ln,He){return(He<<3)+(7&ln)}function ue(ln){return ln<<1^ln>>31}function ge(ln,He){for(var rt=ln.loadGeometry(),$e=ln.type,Ve=0,Ce=0,tt=rt.length,ht=0;ht<tt;ht++){var Qt=rt[ht],Un=1;1===$e&&(Un=Qt.length),He.writeVarint($(1,Un));for(var Yt=3===$e?Qt.length-1:Qt.length,Fn=0;Fn<Yt;Fn++){1===Fn&&1!==$e&&He.writeVarint($(2,Yt-1));var yt=Qt[Fn].x-Ve,Bt=Qt[Fn].y-Ce;He.writeVarint(ue(yt)),He.writeVarint(ue(Bt)),Ve+=yt,Ce+=Bt}3===$e&&He.writeVarint($(7,1))}}function Ke(ln,He){var rt=typeof ln;"string"===rt?He.writeStringField(1,ln):"boolean"===rt?He.writeBooleanField(7,ln):"number"===rt&&(ln%1!=0?He.writeDoubleField(3,ln):ln<0?He.writeSVarintField(6,ln):He.writeVarintField(5,ln))}O.exports=Y,O.exports.fromVectorTileJs=Y,O.exports.fromGeojsonVt=function(ln,He){He=He||{};var rt={};for(var $e in ln)rt[$e]=new j(ln[$e].features,He),rt[$e].name=$e,rt[$e].version=He.version,rt[$e].extent=He.extent;return Y({layers:rt})},O.exports.GeoJSONWrapper=j;var at=l.getDefaultExportFromCjs(O.exports);const Le={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:ln=>ln},R=Math.fround||(Te=new Float32Array(1),ln=>(Te[0]=+ln,Te[0]));var Te;const me=3,Se=5,Ue=6;class We{constructor(He){this.options=Object.assign(Object.create(Le),He),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(He){const{log:rt,minZoom:$e,maxZoom:Ve}=this.options;rt&&console.time("total time");const Ce=`prepare ${He.length} points`;rt&&console.time(Ce),this.points=He;const tt=[];for(let Qt=0;Qt<He.length;Qt++){const Un=He[Qt];if(!Un.geometry)continue;const[Yt,Fn]=Un.geometry.coordinates,yt=R(lt(Yt)),Bt=R(Vt(Fn));tt.push(yt,Bt,1/0,Qt,-1,1),this.options.reduce&&tt.push(0)}let ht=this.trees[Ve+1]=this._createTree(tt);rt&&console.timeEnd(Ce);for(let Qt=Ve;Qt>=$e;Qt--){const Un=+Date.now();ht=this.trees[Qt]=this._createTree(this._cluster(ht,Qt)),rt&&console.log("z%d: %d clusters in %dms",Qt,ht.numItems,+Date.now()-Un)}return rt&&console.timeEnd("total time"),this}getClusters(He,rt){let $e=((He[0]+180)%360+360)%360-180;const Ve=Math.max(-90,Math.min(90,He[1]));let Ce=180===He[2]?180:((He[2]+180)%360+360)%360-180;const tt=Math.max(-90,Math.min(90,He[3]));if(He[2]-He[0]>=360)$e=-180,Ce=180;else if($e>Ce){const Fn=this.getClusters([$e,Ve,180,tt],rt),yt=this.getClusters([-180,Ve,Ce,tt],rt);return Fn.concat(yt)}const ht=this.trees[this._limitZoom(rt)],Qt=ht.range(lt($e),Vt(tt),lt(Ce),Vt(Ve)),Un=ht.data,Yt=[];for(const Fn of Qt){const yt=this.stride*Fn;Yt.push(Un[yt+Se]>1?et(Un,yt,this.clusterProps):this.points[Un[yt+me]])}return Yt}getChildren(He){const rt=this._getOriginId(He),$e=this._getOriginZoom(He),Ve="No cluster with the specified id.",Ce=this.trees[$e];if(!Ce)throw new Error(Ve);const tt=Ce.data;if(rt*this.stride>=tt.length)throw new Error(Ve);const ht=this.options.radius/(this.options.extent*Math.pow(2,$e-1)),Qt=Ce.within(tt[rt*this.stride],tt[rt*this.stride+1],ht),Un=[];for(const Yt of Qt){const Fn=Yt*this.stride;tt[Fn+4]===He&&Un.push(tt[Fn+Se]>1?et(tt,Fn,this.clusterProps):this.points[tt[Fn+me]])}if(0===Un.length)throw new Error(Ve);return Un}getLeaves(He,rt,$e){const Ve=[];return this._appendLeaves(Ve,He,rt=rt||10,$e=$e||0,0),Ve}getTile(He,rt,$e){const Ve=this.trees[this._limitZoom(He)],Ce=Math.pow(2,He),{extent:tt,radius:ht}=this.options,Qt=ht/tt,Un=($e-Qt)/Ce,Yt=($e+1+Qt)/Ce,Fn={features:[]};return this._addTileFeatures(Ve.range((rt-Qt)/Ce,Un,(rt+1+Qt)/Ce,Yt),Ve.data,rt,$e,Ce,Fn),0===rt&&this._addTileFeatures(Ve.range(1-Qt/Ce,Un,1,Yt),Ve.data,Ce,$e,Ce,Fn),rt===Ce-1&&this._addTileFeatures(Ve.range(0,Un,Qt/Ce,Yt),Ve.data,-1,$e,Ce,Fn),Fn.features.length?Fn:null}getClusterExpansionZoom(He){let rt=this._getOriginZoom(He)-1;for(;rt<=this.options.maxZoom;){const $e=this.getChildren(He);if(rt++,1!==$e.length)break;He=$e[0].properties.cluster_id}return rt}_appendLeaves(He,rt,$e,Ve,Ce){const tt=this.getChildren(rt);for(const ht of tt){const Qt=ht.properties;if(Qt&&Qt.cluster?Ce+Qt.point_count<=Ve?Ce+=Qt.point_count:Ce=this._appendLeaves(He,Qt.cluster_id,$e,Ve,Ce):Ce<Ve?Ce++:He.push(ht),He.length===$e)break}return Ce}_createTree(He){const rt=new l.KDBush(He.length/this.stride|0,this.options.nodeSize,Float32Array);for(let $e=0;$e<He.length;$e+=this.stride)rt.add(He[$e],He[$e+1]);return rt.finish(),rt.data=He,rt}_addTileFeatures(He,rt,$e,Ve,Ce,tt){for(const ht of He){const Qt=ht*this.stride,Un=rt[Qt+Se]>1;let Yt,Fn,yt;if(Un)Yt=Et(rt,Qt,this.clusterProps),Fn=rt[Qt],yt=rt[Qt+1];else{const si=this.points[rt[Qt+me]];Yt=si.properties;const[oo,_o]=si.geometry.coordinates;Fn=lt(oo),yt=Vt(_o)}const Bt={type:1,geometry:[[Math.round(this.options.extent*(Fn*Ce-$e)),Math.round(this.options.extent*(yt*Ce-Ve))]],tags:Yt};let li;li=Un||this.options.generateId?rt[Qt+me]:this.points[rt[Qt+me]].id,void 0!==li&&(Bt.id=li),tt.features.push(Bt)}}_limitZoom(He){return Math.max(this.options.minZoom,Math.min(Math.floor(+He),this.options.maxZoom+1))}_cluster(He,rt){const{radius:$e,extent:Ve,reduce:Ce,minPoints:tt}=this.options,ht=$e/(Ve*Math.pow(2,rt)),Qt=He.data,Un=[],Yt=this.stride;for(let Fn=0;Fn<Qt.length;Fn+=Yt){if(Qt[Fn+2]<=rt)continue;Qt[Fn+2]=rt;const yt=Qt[Fn],Bt=Qt[Fn+1],li=He.within(Qt[Fn],Qt[Fn+1],ht),si=Qt[Fn+Se];let oo=si;for(const _o of li){const Hn=_o*Yt;Qt[Hn+2]>rt&&(oo+=Qt[Hn+Se])}if(oo>si&&oo>=tt){let _o,Hn=yt*si,mo=Bt*si,vn=-1;const Ji=((Fn/Yt|0)<<5)+(rt+1)+this.points.length;for(const wn of li){const po=wn*Yt;if(Qt[po+2]<=rt)continue;Qt[po+2]=rt;const Kn=Qt[po+Se];Hn+=Qt[po]*Kn,mo+=Qt[po+1]*Kn,Qt[po+4]=Ji,Ce&&(_o||(_o=this._map(Qt,Fn,!0),vn=this.clusterProps.length,this.clusterProps.push(_o)),Ce(_o,this._map(Qt,po)))}Qt[Fn+4]=Ji,Un.push(Hn/oo,mo/oo,1/0,Ji,-1,oo),Ce&&Un.push(vn)}else{for(let _o=0;_o<Yt;_o++)Un.push(Qt[Fn+_o]);if(oo>1)for(const _o of li){const Hn=_o*Yt;if(!(Qt[Hn+2]<=rt)){Qt[Hn+2]=rt;for(let mo=0;mo<Yt;mo++)Un.push(Qt[Hn+mo])}}}}return Un}_getOriginId(He){return He-this.points.length>>5}_getOriginZoom(He){return(He-this.points.length)%32}_map(He,rt,$e){if(He[rt+Se]>1){const tt=this.clusterProps[He[rt+Ue]];return $e?Object.assign({},tt):tt}const Ve=this.points[He[rt+me]].properties,Ce=this.options.map(Ve);return $e&&Ce===Ve?Object.assign({},Ce):Ce}}function et(ln,He,rt){return{type:"Feature",id:ln[He+me],properties:Et(ln,He,rt),geometry:{type:"Point",coordinates:[($e=ln[He],360*($e-.5)),r(ln[He+1])]}};var $e}function Et(ln,He,rt){const $e=ln[He+Se],Ve=$e>=1e4?`${Math.round($e/1e3)}k`:$e>=1e3?Math.round($e/100)/10+"k":$e,Ce=ln[He+Ue],tt=-1===Ce?{}:Object.assign({},rt[Ce]);return Object.assign(tt,{cluster:!0,cluster_id:ln[He+me],point_count:$e,point_count_abbreviated:Ve})}function lt(ln){return ln/360+.5}function Vt(ln){const He=Math.sin(ln*Math.PI/180),rt=.5-.25*Math.log((1+He)/(1-He))/Math.PI;return rt<0?0:rt>1?1:rt}function r(ln){const He=(180-360*ln)*Math.PI/180;return 360*Math.atan(Math.exp(He))/Math.PI-90}function Z(ln,He,rt,$e){for(var Ve,Ce=$e,tt=rt-He>>1,ht=rt-He,Qt=ln[He],Un=ln[He+1],Yt=ln[rt],Fn=ln[rt+1],yt=He+3;yt<rt;yt+=3){var Bt=Pt(ln[yt],ln[yt+1],Qt,Un,Yt,Fn);if(Bt>Ce)Ve=yt,Ce=Bt;else if(Bt===Ce){var li=Math.abs(yt-tt);li<ht&&(Ve=yt,ht=li)}}Ce>$e&&(Ve-He>3&&Z(ln,He,Ve,$e),ln[Ve+2]=Ce,rt-Ve>3&&Z(ln,Ve,rt,$e))}function Pt(ln,He,rt,$e,Ve,Ce){var tt=Ve-rt,ht=Ce-$e;if(0!==tt||0!==ht){var Qt=((ln-rt)*tt+(He-$e)*ht)/(tt*tt+ht*ht);Qt>1?(rt=Ve,$e=Ce):Qt>0&&(rt+=tt*Qt,$e+=ht*Qt)}return(tt=ln-rt)*tt+(ht=He-$e)*ht}function Oe(ln,He,rt,$e){var Ve={id:void 0===ln?null:ln,type:He,geometry:rt,tags:$e,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(Ce){var tt=Ce.geometry,ht=Ce.type;if("Point"===ht||"MultiPoint"===ht||"LineString"===ht)ye(Ce,tt);else if("Polygon"===ht||"MultiLineString"===ht)for(var Qt=0;Qt<tt.length;Qt++)ye(Ce,tt[Qt]);else if("MultiPolygon"===ht)for(Qt=0;Qt<tt.length;Qt++)for(var Un=0;Un<tt[Qt].length;Un++)ye(Ce,tt[Qt][Un])}(Ve),Ve}function ye(ln,He){for(var rt=0;rt<He.length;rt+=3)ln.minX=Math.min(ln.minX,He[rt]),ln.minY=Math.min(ln.minY,He[rt+1]),ln.maxX=Math.max(ln.maxX,He[rt]),ln.maxY=Math.max(ln.maxY,He[rt+1])}function ve(ln,He,rt,$e){if(He.geometry){var Ve=He.geometry.coordinates,Ce=He.geometry.type,tt=Math.pow(rt.tolerance/((1<<rt.maxZoom)*rt.extent),2),ht=[],Qt=He.id;if(rt.promoteId?Qt=He.properties[rt.promoteId]:rt.generateId&&(Qt=$e||0),"Point"===Ce)ft(Ve,ht);else if("MultiPoint"===Ce)for(var Un=0;Un<Ve.length;Un++)ft(Ve[Un],ht);else if("LineString"===Ce)Dt(Ve,ht,tt,!1);else if("MultiLineString"===Ce){if(rt.lineMetrics){for(Un=0;Un<Ve.length;Un++)Dt(Ve[Un],ht=[],tt,!1),ln.push(Oe(Qt,"LineString",ht,He.properties));return}Rn(Ve,ht,tt,!1)}else if("Polygon"===Ce)Rn(Ve,ht,tt,!0);else{if("MultiPolygon"!==Ce){if("GeometryCollection"===Ce){for(Un=0;Un<He.geometry.geometries.length;Un++)ve(ln,{id:Qt,geometry:He.geometry.geometries[Un],properties:He.properties},rt,$e);return}throw new Error("Input data is not a valid GeoJSON object.")}for(Un=0;Un<Ve.length;Un++){var Yt=[];Rn(Ve[Un],Yt,tt,!0),ht.push(Yt)}}ln.push(Oe(Qt,Ce,ht,He.properties))}}function ft(ln,He){He.push(ti(ln[0])),He.push(Xt(ln[1])),He.push(0)}function Dt(ln,He,rt,$e){for(var Ve,Ce,tt=0,ht=0;ht<ln.length;ht++){var Qt=ti(ln[ht][0]),Un=Xt(ln[ht][1]);He.push(Qt),He.push(Un),He.push(0),ht>0&&(tt+=$e?(Ve*Un-Qt*Ce)/2:Math.sqrt(Math.pow(Qt-Ve,2)+Math.pow(Un-Ce,2))),Ve=Qt,Ce=Un}var Yt=He.length-3;He[2]=1,Z(He,0,Yt,rt),He[Yt+2]=1,He.size=Math.abs(tt),He.start=0,He.end=He.size}function Rn(ln,He,rt,$e){for(var Ve=0;Ve<ln.length;Ve++){var Ce=[];Dt(ln[Ve],Ce,rt,$e),He.push(Ce)}}function ti(ln){return ln/360+.5}function Xt(ln){var He=Math.sin(ln*Math.PI/180),rt=.5-.25*Math.log((1+He)/(1-He))/Math.PI;return rt<0?0:rt>1?1:rt}function Je(ln,He,rt,$e,Ve,Ce,tt,ht){if($e/=He,Ce>=(rt/=He)&&tt<$e)return ln;if(tt<rt||Ce>=$e)return null;for(var Qt=[],Un=0;Un<ln.length;Un++){var Yt=ln[Un],Fn=Yt.geometry,yt=Yt.type,Bt=0===Ve?Yt.minX:Yt.minY,li=0===Ve?Yt.maxX:Yt.maxY;if(Bt>=rt&&li<$e)Qt.push(Yt);else if(!(li<rt||Bt>=$e)){var si=[];if("Point"===yt||"MultiPoint"===yt)dt(Fn,si,rt,$e,Ve);else if("LineString"===yt)Ie(Fn,si,rt,$e,Ve,!1,ht.lineMetrics);else if("MultiLineString"===yt)ct(Fn,si,rt,$e,Ve,!1);else if("Polygon"===yt)ct(Fn,si,rt,$e,Ve,!0);else if("MultiPolygon"===yt)for(var oo=0;oo<Fn.length;oo++){var _o=[];ct(Fn[oo],_o,rt,$e,Ve,!0),_o.length&&si.push(_o)}if(si.length){if(ht.lineMetrics&&"LineString"===yt){for(oo=0;oo<si.length;oo++)Qt.push(Oe(Yt.id,yt,si[oo],Yt.tags));continue}"LineString"!==yt&&"MultiLineString"!==yt||(1===si.length?(yt="LineString",si=si[0]):yt="MultiLineString"),"Point"!==yt&&"MultiPoint"!==yt||(yt=3===si.length?"Point":"MultiPoint"),Qt.push(Oe(Yt.id,yt,si,Yt.tags))}}}return Qt.length?Qt:null}function dt(ln,He,rt,$e,Ve){for(var Ce=0;Ce<ln.length;Ce+=3){var tt=ln[Ce+Ve];tt>=rt&&tt<=$e&&(He.push(ln[Ce]),He.push(ln[Ce+1]),He.push(ln[Ce+2]))}}function Ie(ln,He,rt,$e,Ve,Ce,tt){for(var ht,Qt,Un=ot(ln),Yt=0===Ve?yi:ni,Fn=ln.start,yt=0;yt<ln.length-3;yt+=3){var Bt=ln[yt],li=ln[yt+1],si=ln[yt+2],oo=ln[yt+3],_o=ln[yt+4],Hn=0===Ve?Bt:li,mo=0===Ve?oo:_o,vn=!1;tt&&(ht=Math.sqrt(Math.pow(Bt-oo,2)+Math.pow(li-_o,2))),Hn<rt?mo>rt&&(Qt=Yt(Un,Bt,li,oo,_o,rt),tt&&(Un.start=Fn+ht*Qt)):Hn>$e?mo<$e&&(Qt=Yt(Un,Bt,li,oo,_o,$e),tt&&(Un.start=Fn+ht*Qt)):tn(Un,Bt,li,si),mo<rt&&Hn>=rt&&(Qt=Yt(Un,Bt,li,oo,_o,rt),vn=!0),mo>$e&&Hn<=$e&&(Qt=Yt(Un,Bt,li,oo,_o,$e),vn=!0),!Ce&&vn&&(tt&&(Un.end=Fn+ht*Qt),He.push(Un),Un=ot(ln)),tt&&(Fn+=ht)}var Ji=ln.length-3;Bt=ln[Ji],li=ln[Ji+1],si=ln[Ji+2],(Hn=0===Ve?Bt:li)>=rt&&Hn<=$e&&tn(Un,Bt,li,si),Ji=Un.length-3,Ce&&Ji>=3&&(Un[Ji]!==Un[0]||Un[Ji+1]!==Un[1])&&tn(Un,Un[0],Un[1],Un[2]),Un.length&&He.push(Un)}function ot(ln){var He=[];return He.size=ln.size,He.start=ln.start,He.end=ln.end,He}function ct(ln,He,rt,$e,Ve,Ce){for(var tt=0;tt<ln.length;tt++)Ie(ln[tt],He,rt,$e,Ve,Ce,!1)}function tn(ln,He,rt,$e){ln.push(He),ln.push(rt),ln.push($e)}function yi(ln,He,rt,$e,Ve,Ce){var tt=(Ce-He)/($e-He);return ln.push(Ce),ln.push(rt+(Ve-rt)*tt),ln.push(1),tt}function ni(ln,He,rt,$e,Ve,Ce){var tt=(Ce-rt)/(Ve-rt);return ln.push(He+($e-He)*tt),ln.push(Ce),ln.push(1),tt}function sn(ln,He){for(var rt=[],$e=0;$e<ln.length;$e++){var Ve,Ce=ln[$e],tt=Ce.type;if("Point"===tt||"MultiPoint"===tt||"LineString"===tt)Ve=bn(Ce.geometry,He);else if("MultiLineString"===tt||"Polygon"===tt){Ve=[];for(var ht=0;ht<Ce.geometry.length;ht++)Ve.push(bn(Ce.geometry[ht],He))}else if("MultiPolygon"===tt)for(Ve=[],ht=0;ht<Ce.geometry.length;ht++){for(var Qt=[],Un=0;Un<Ce.geometry[ht].length;Un++)Qt.push(bn(Ce.geometry[ht][Un],He));Ve.push(Qt)}rt.push(Oe(Ce.id,tt,Ve,Ce.tags))}return rt}function bn(ln,He){var rt=[];rt.size=ln.size,void 0!==ln.start&&(rt.start=ln.start,rt.end=ln.end);for(var $e=0;$e<ln.length;$e+=3)rt.push(ln[$e]+He,ln[$e+1],ln[$e+2]);return rt}function vt(ln,He){if(ln.transformed)return ln;var rt,$e,Ve,Ce=1<<ln.z,tt=ln.x,ht=ln.y;for(rt=0;rt<ln.features.length;rt++){var Qt=ln.features[rt],Un=Qt.geometry,Yt=Qt.type;if(Qt.geometry=[],1===Yt)for($e=0;$e<Un.length;$e+=2)Qt.geometry.push(nn(Un[$e],Un[$e+1],He,Ce,tt,ht));else for($e=0;$e<Un.length;$e++){var Fn=[];for(Ve=0;Ve<Un[$e].length;Ve+=2)Fn.push(nn(Un[$e][Ve],Un[$e][Ve+1],He,Ce,tt,ht));Qt.geometry.push(Fn)}}return ln.transformed=!0,ln}function nn(ln,He,rt,$e,Ve,Ce){return[Math.round(rt*(ln*$e-Ve)),Math.round(rt*(He*$e-Ce))]}function rn(ln,He,rt,$e,Ve){for(var Ce=He===Ve.maxZoom?0:Ve.tolerance/((1<<He)*Ve.extent),tt={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:rt,y:$e,z:He,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},ht=0;ht<ln.length;ht++){tt.numFeatures++,ii(tt,ln[ht],Ce,Ve);var Qt=ln[ht].minX,Un=ln[ht].minY,Yt=ln[ht].maxX,Fn=ln[ht].maxY;Qt<tt.minX&&(tt.minX=Qt),Un<tt.minY&&(tt.minY=Un),Yt>tt.maxX&&(tt.maxX=Yt),Fn>tt.maxY&&(tt.maxY=Fn)}return tt}function ii(ln,He,rt,$e){var Ve=He.geometry,Ce=He.type,tt=[];if("Point"===Ce||"MultiPoint"===Ce)for(var ht=0;ht<Ve.length;ht+=3)tt.push(Ve[ht]),tt.push(Ve[ht+1]),ln.numPoints++,ln.numSimplified++;else if("LineString"===Ce)Oo(tt,Ve,ln,rt,!1,!1);else if("MultiLineString"===Ce||"Polygon"===Ce)for(ht=0;ht<Ve.length;ht++)Oo(tt,Ve[ht],ln,rt,"Polygon"===Ce,0===ht);else if("MultiPolygon"===Ce)for(var Qt=0;Qt<Ve.length;Qt++){var Un=Ve[Qt];for(ht=0;ht<Un.length;ht++)Oo(tt,Un[ht],ln,rt,!0,0===ht)}if(tt.length){var Yt=He.tags||null;if("LineString"===Ce&&$e.lineMetrics){for(var Fn in Yt={},He.tags)Yt[Fn]=He.tags[Fn];Yt.mapbox_clip_start=Ve.start/Ve.size,Yt.mapbox_clip_end=Ve.end/Ve.size}var yt={geometry:tt,type:"Polygon"===Ce||"MultiPolygon"===Ce?3:"LineString"===Ce||"MultiLineString"===Ce?2:1,tags:Yt};null!==He.id&&(yt.id=He.id),ln.features.push(yt)}}function Oo(ln,He,rt,$e,Ve,Ce){var tt=$e*$e;if($e>0&&He.size<(Ve?tt:$e))rt.numPoints+=He.length/3;else{for(var ht=[],Qt=0;Qt<He.length;Qt+=3)(0===$e||He[Qt+2]>tt)&&(rt.numSimplified++,ht.push(He[Qt]),ht.push(He[Qt+1])),rt.numPoints++;Ve&&function(Un,Yt){for(var Fn=0,yt=0,Bt=Un.length,li=Bt-2;yt<Bt;li=yt,yt+=2)Fn+=(Un[yt]-Un[li])*(Un[yt+1]+Un[li+1]);if(Fn>0===Yt)for(yt=0,Bt=Un.length;yt<Bt/2;yt+=2){var si=Un[yt],oo=Un[yt+1];Un[yt]=Un[Bt-2-yt],Un[yt+1]=Un[Bt-1-yt],Un[Bt-2-yt]=si,Un[Bt-1-yt]=oo}}(ht,Ce),ln.push(ht)}}function no(ln,He){var rt=(He=this.options=function(Ve,Ce){for(var tt in Ce)Ve[tt]=Ce[tt];return Ve}(Object.create(this.options),He)).debug;if(rt&&console.time("preprocess data"),He.maxZoom<0||He.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(He.promoteId&&He.generateId)throw new Error("promoteId and generateId cannot be used together.");var Ve,Ce,tt,ht,Qt,Un,$e=function(Ve,Ce){var tt=[];if("FeatureCollection"===Ve.type)for(var ht=0;ht<Ve.features.length;ht++)ve(tt,Ve.features[ht],Ce,ht);else ve(tt,"Feature"===Ve.type?Ve:{geometry:Ve},Ce);return tt}(ln,He);this.tiles={},this.tileCoords=[],rt&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",He.indexMaxZoom,He.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),ht=Ve=$e,Qt=Je(Ve,1,-1-(tt=(Ce=He).buffer/Ce.extent),tt,0,-1,2,Ce),Un=Je(Ve,1,1-tt,2+tt,0,-1,2,Ce),(Qt||Un)&&(ht=Je(Ve,1,-tt,1+tt,0,-1,2,Ce)||[],Qt&&(ht=sn(Qt,1).concat(ht)),Un&&(ht=ht.concat(sn(Un,-1)))),($e=ht).length&&this.splitTile($e,0,0,0),rt&&($e.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function Li(ln,He,rt){return 32*((1<<ln)*rt+He)+ln}function ji(ln,He){return He?ln.properties[He]:ln.id}function Ii(ln,He){if(null==ln)return!0;if("Feature"===ln.type)return null!=ji(ln,He);if("FeatureCollection"===ln.type){const rt=new Set;for(const $e of ln.features){const Ve=ji($e,He);if(null==Ve||rt.has(Ve))return!1;rt.add(Ve)}return!0}return!1}function _i(ln,He){const rt=new Map;if(null!=ln)if("Feature"===ln.type)rt.set(ji(ln,He),ln);else for(const $e of ln.features)rt.set(ji($e,He),$e);return rt}function En(ln,He){const rt=ln.tileID.canonical;if(!this._geoJSONIndex)return He(null,null);const $e=this._geoJSONIndex.getTile(rt.z,rt.x,rt.y);if(!$e)return He(null,null);const Ve=new class{constructor(tt){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=l.EXTENT,this.length=tt.length,this._features=tt}feature(tt){return new class{constructor(ht){this._feature=ht,this.extent=l.EXTENT,this.type=ht.type,this.properties=ht.tags,"id"in ht&&!isNaN(ht.id)&&(this.id=parseInt(ht.id,10))}loadGeometry(){if(1===this._feature.type){const ht=[];for(const Qt of this._feature.geometry)ht.push([new l.Point(Qt[0],Qt[1])]);return ht}{const ht=[];for(const Qt of this._feature.geometry){const Un=[];for(const Yt of Qt)Un.push(new l.Point(Yt[0],Yt[1]));ht.push(Un)}return ht}}toGeoJSON(ht,Qt,Un){return H.call(this,ht,Qt,Un)}}(this._features[tt])}}($e.features);let Ce=at(Ve);0===Ce.byteOffset&&Ce.byteLength===Ce.buffer.byteLength||(Ce=new Uint8Array(Ce)),He(null,{vectorTile:Ve,rawData:Ce.buffer})}no.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},no.prototype.splitTile=function(ln,He,rt,$e,Ve,Ce,tt){for(var ht=[ln,He,rt,$e],Qt=this.options,Un=Qt.debug;ht.length;){$e=ht.pop(),rt=ht.pop(),He=ht.pop(),ln=ht.pop();var Yt=1<<He,Fn=Li(He,rt,$e),yt=this.tiles[Fn];if(!yt&&(Un>1&&console.time("creation"),yt=this.tiles[Fn]=rn(ln,He,rt,$e,Qt),this.tileCoords.push({z:He,x:rt,y:$e}),Un)){Un>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",He,rt,$e,yt.numFeatures,yt.numPoints,yt.numSimplified),console.timeEnd("creation"));var Bt="z"+He;this.stats[Bt]=(this.stats[Bt]||0)+1,this.total++}if(yt.source=ln,Ve){if(He===Qt.maxZoom||He===Ve)continue;var li=1<<Ve-He;if(rt!==Math.floor(Ce/li)||$e!==Math.floor(tt/li))continue}else if(He===Qt.indexMaxZoom||yt.numPoints<=Qt.indexMaxPoints)continue;if(yt.source=null,0!==ln.length){Un>1&&console.time("clipping");var si,oo,_o,Hn,mo,vn,Ji=.5*Qt.buffer/Qt.extent,wn=.5-Ji,po=.5+Ji,Kn=1+Ji;si=oo=_o=Hn=null,mo=Je(ln,Yt,rt-Ji,rt+po,0,yt.minX,yt.maxX,Qt),vn=Je(ln,Yt,rt+wn,rt+Kn,0,yt.minX,yt.maxX,Qt),ln=null,mo&&(si=Je(mo,Yt,$e-Ji,$e+po,1,yt.minY,yt.maxY,Qt),oo=Je(mo,Yt,$e+wn,$e+Kn,1,yt.minY,yt.maxY,Qt),mo=null),vn&&(_o=Je(vn,Yt,$e-Ji,$e+po,1,yt.minY,yt.maxY,Qt),Hn=Je(vn,Yt,$e+wn,$e+Kn,1,yt.minY,yt.maxY,Qt),vn=null),Un>1&&console.timeEnd("clipping"),ht.push(si||[],He+1,2*rt,2*$e),ht.push(oo||[],He+1,2*rt,2*$e+1),ht.push(_o||[],He+1,2*rt+1,2*$e),ht.push(Hn||[],He+1,2*rt+1,2*$e+1)}}},no.prototype.getTile=function(ln,He,rt){var $e=this.options,Ve=$e.extent,Ce=$e.debug;if(ln<0||ln>24)return null;var tt=1<<ln,ht=Li(ln,He=(He%tt+tt)%tt,rt);if(this.tiles[ht])return vt(this.tiles[ht],Ve);Ce>1&&console.log("drilling down to z%d-%d-%d",ln,He,rt);for(var Qt,Un=ln,Yt=He,Fn=rt;!Qt&&Un>0;)Un--,Yt=Math.floor(Yt/2),Fn=Math.floor(Fn/2),Qt=this.tiles[Li(Un,Yt,Fn)];return Qt&&Qt.source?(Ce>1&&console.log("found parent tile z%d-%d-%d",Un,Yt,Fn),Ce>1&&console.time("drilling down"),this.splitTile(Qt.source,Un,Yt,Fn,ln,He,rt),Ce>1&&console.timeEnd("drilling down"),this.tiles[ht]?vt(this.tiles[ht],Ve):null):null};class co extends x{constructor(He,rt,$e,Ve){super(He,rt,$e,En),this._dataUpdateable=new Map,this.loadGeoJSON=(Ce,tt)=>{const{promoteId:ht}=Ce;if(Ce.request)return l.getJSON(Ce.request,(Qt,Un,Yt,Fn)=>{this._dataUpdateable=Ii(Un,ht)?_i(Un,ht):void 0,tt(Qt,Un,Yt,Fn)});if("string"==typeof Ce.data)try{const Qt=JSON.parse(Ce.data);this._dataUpdateable=Ii(Qt,ht)?_i(Qt,ht):void 0,tt(null,Qt)}catch{tt(new Error(`Input data given to '${Ce.source}' is not a valid GeoJSON object.`))}else Ce.dataDiff?this._dataUpdateable?(function(Qt,Un,Yt){var Fn,yt,Bt,li;if(Un.removeAll&&Qt.clear(),Un.remove)for(const si of Un.remove)Qt.delete(si);if(Un.add)for(const si of Un.add){const oo=ji(si,Yt);null!=oo&&Qt.set(oo,si)}if(Un.update)for(const si of Un.update){let oo=Qt.get(si.id);if(null==oo)continue;const _o=!si.removeAllProperties&&((null===(Fn=si.removeProperties)||void 0===Fn?void 0:Fn.length)>0||(null===(yt=si.addOrUpdateProperties)||void 0===yt?void 0:yt.length)>0);if((si.newGeometry||si.removeAllProperties||_o)&&(oo={...oo},Qt.set(si.id,oo),_o&&(oo.properties={...oo.properties})),si.newGeometry&&(oo.geometry=si.newGeometry),si.removeAllProperties)oo.properties={};else if((null===(Bt=si.removeProperties)||void 0===Bt?void 0:Bt.length)>0)for(const Hn of si.removeProperties)Object.prototype.hasOwnProperty.call(oo.properties,Hn)&&delete oo.properties[Hn];if((null===(li=si.addOrUpdateProperties)||void 0===li?void 0:li.length)>0)for(const{key:Hn,value:mo}of si.addOrUpdateProperties)oo.properties[Hn]=mo}}(this._dataUpdateable,Ce.dataDiff,ht),tt(null,{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())})):tt(new Error(`Cannot update existing geojson data in ${Ce.source}`)):tt(new Error(`Input data given to '${Ce.source}' is not a valid GeoJSON object.`));return{cancel:()=>{}}},Ve&&(this.loadGeoJSON=Ve)}loadData(He,rt){var $e;null===($e=this._pendingRequest)||void 0===$e||$e.cancel(),this._pendingCallback&&this._pendingCallback(null,{abandoned:!0});const Ve=!!(He&&He.request&&He.request.collectResourceTiming)&&new l.RequestPerformance(He.request);this._pendingCallback=rt,this._pendingRequest=this.loadGeoJSON(He,(Ce,tt)=>{if(delete this._pendingCallback,delete this._pendingRequest,Ce||!tt)return rt(Ce);if("object"!=typeof tt)return rt(new Error(`Input data given to '${He.source}' is not a valid GeoJSON object.`));{I(tt,!0);try{if(He.filter){const Qt=l.createExpression(He.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===Qt.result)throw new Error(Qt.value.map(Yt=>`${Yt.key}: ${Yt.message}`).join(", "));tt={type:"FeatureCollection",features:tt.features.filter(Yt=>Qt.value.evaluate({zoom:0},Yt))}}this._geoJSONIndex=He.cluster?new We(function({superclusterOptions:Qt,clusterProperties:Un}){if(!Un||!Qt)return Qt;const Yt={},Fn={},yt={accumulated:null,zoom:0},Bt={properties:null},li=Object.keys(Un);for(const si of li){const[oo,_o]=Un[si],Hn=l.createExpression(_o),mo=l.createExpression("string"==typeof oo?[oo,["accumulated"],["get",si]]:oo);Yt[si]=Hn.value,Fn[si]=mo.value}return Qt.map=si=>{Bt.properties=si;const oo={};for(const _o of li)oo[_o]=Yt[_o].evaluate(yt,Bt);return oo},Qt.reduce=(si,oo)=>{Bt.properties=oo;for(const _o of li)yt.accumulated=si[_o],si[_o]=Fn[_o].evaluate(yt,Bt)},Qt}(He)).load(tt.features):new no(Qt=tt,He.geojsonVtOptions)}catch(Qt){return rt(Qt)}this.loaded={};const ht={};if(Ve){const Qt=Ve.finish();Qt&&(ht.resourceTiming={},ht.resourceTiming[He.source]=JSON.parse(JSON.stringify(Qt)))}rt(null,ht)}var Qt})}reloadTile(He,rt){const $e=this.loaded;return $e&&$e[He.uid]?super.reloadTile(He,rt):this.loadTile(He,rt)}removeSource(He,rt){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),rt()}getClusterExpansionZoom(He,rt){try{rt(null,this._geoJSONIndex.getClusterExpansionZoom(He.clusterId))}catch($e){rt($e)}}getClusterChildren(He,rt){try{rt(null,this._geoJSONIndex.getChildren(He.clusterId))}catch($e){rt($e)}}getClusterLeaves(He,rt){try{rt(null,this._geoJSONIndex.getLeaves(He.clusterId,He.limit,He.offset))}catch($e){rt($e)}}}class yn{constructor(He){this.self=He,this.actor=new l.Actor(He,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:x,geojson:co},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=(rt,$e)=>{if(this.workerSourceTypes[rt])throw new Error(`Worker source with name "${rt}" already registered.`);this.workerSourceTypes[rt]=$e},this.self.registerRTLTextPlugin=rt=>{if(l.plugin.isParsed())throw new Error("RTL text plugin already registered.");l.plugin.applyArabicShaping=rt.applyArabicShaping,l.plugin.processBidirectionalText=rt.processBidirectionalText,l.plugin.processStyledBidirectionalText=rt.processStyledBidirectionalText}}setReferrer(He,rt){this.referrer=rt}setImages(He,rt,$e){this.availableImages[He]=rt;for(const Ve in this.workerSources[He]){const Ce=this.workerSources[He][Ve];for(const tt in Ce)Ce[tt].availableImages=rt}$e()}setLayers(He,rt,$e){this.getLayerIndex(He).replace(rt),$e()}updateLayers(He,rt,$e){this.getLayerIndex(He).update(rt.layers,rt.removedIds),$e()}loadTile(He,rt,$e){this.getWorkerSource(He,rt.type,rt.source).loadTile(rt,$e)}loadDEMTile(He,rt,$e){this.getDEMWorkerSource(He,rt.source).loadTile(rt,$e)}reloadTile(He,rt,$e){this.getWorkerSource(He,rt.type,rt.source).reloadTile(rt,$e)}abortTile(He,rt,$e){this.getWorkerSource(He,rt.type,rt.source).abortTile(rt,$e)}removeTile(He,rt,$e){this.getWorkerSource(He,rt.type,rt.source).removeTile(rt,$e)}removeDEMTile(He,rt){this.getDEMWorkerSource(He,rt.source).removeTile(rt)}removeSource(He,rt,$e){if(!this.workerSources[He]||!this.workerSources[He][rt.type]||!this.workerSources[He][rt.type][rt.source])return;const Ve=this.workerSources[He][rt.type][rt.source];delete this.workerSources[He][rt.type][rt.source],void 0!==Ve.removeSource?Ve.removeSource(rt,$e):$e()}loadWorkerSource(He,rt,$e){try{this.self.importScripts(rt.url),$e()}catch(Ve){$e(Ve.toString())}}syncRTLPluginState(He,rt,$e){try{l.plugin.setState(rt);const Ve=l.plugin.getPluginURL();if(l.plugin.isLoaded()&&!l.plugin.isParsed()&&null!=Ve){this.self.importScripts(Ve);const Ce=l.plugin.isParsed();$e(Ce?void 0:new Error(`RTL Text Plugin failed to import scripts from ${Ve}`),Ce)}}catch(Ve){$e(Ve.toString())}}getAvailableImages(He){let rt=this.availableImages[He];return rt||(rt=[]),rt}getLayerIndex(He){let rt=this.layerIndexes[He];return rt||(rt=this.layerIndexes[He]=new i),rt}getWorkerSource(He,rt,$e){return this.workerSources[He]||(this.workerSources[He]={}),this.workerSources[He][rt]||(this.workerSources[He][rt]={}),this.workerSources[He][rt][$e]||(this.workerSources[He][rt][$e]=new this.workerSourceTypes[rt]({send:(Ce,tt,ht)=>{this.actor.send(Ce,tt,ht,He)}},this.getLayerIndex(He),this.getAvailableImages(He))),this.workerSources[He][rt][$e]}getDEMWorkerSource(He,rt){return this.demWorkerSources[He]||(this.demWorkerSources[He]={}),this.demWorkerSources[He][rt]||(this.demWorkerSources[He][rt]=new u),this.demWorkerSources[He][rt]}}return l.isWorker()&&(self.worker=new yn(self)),yn}),n(0,function(l){var i="3.4.0";class t{static testProp(h){if(!t.docStyle)return h[0];for(let k=0;k<h.length;k++)if(h[k]in t.docStyle)return h[k];return h[0]}static create(h,k,se){const de=window.document.createElement(h);return void 0!==k&&(de.className=k),se&&se.appendChild(de),de}static createNS(h,k){return window.document.createElementNS(h,k)}static disableDrag(){t.docStyle&&t.selectProp&&(t.userSelect=t.docStyle[t.selectProp],t.docStyle[t.selectProp]="none")}static enableDrag(){t.docStyle&&t.selectProp&&(t.docStyle[t.selectProp]=t.userSelect)}static setTransform(h,k){h.style[t.transformProp]=k}static addEventListener(h,k,se,de={}){h.addEventListener(k,se,"passive"in de?de:de.capture)}static removeEventListener(h,k,se,de={}){h.removeEventListener(k,se,"passive"in de?de:de.capture)}static suppressClickInternal(h){h.preventDefault(),h.stopPropagation(),window.removeEventListener("click",t.suppressClickInternal,!0)}static suppressClick(){window.addEventListener("click",t.suppressClickInternal,!0),window.setTimeout(()=>{window.removeEventListener("click",t.suppressClickInternal,!0)},0)}static mousePos(h,k){const se=h.getBoundingClientRect();return new l.Point(k.clientX-se.left-h.clientLeft,k.clientY-se.top-h.clientTop)}static touchPos(h,k){const se=h.getBoundingClientRect(),de=[];for(let Ae=0;Ae<k.length;Ae++)de.push(new l.Point(k[Ae].clientX-se.left-h.clientLeft,k[Ae].clientY-se.top-h.clientTop));return de}static mouseButton(h){return h.button}static remove(h){h.parentNode&&h.parentNode.removeChild(h)}}t.docStyle=typeof window<"u"&&window.document&&window.document.documentElement.style,t.selectProp=t.testProp(["userSelect","MozUserSelect","WebkitUserSelect","msUserSelect"]),t.transformProp=t.testProp(["transform","WebkitTransform"]);const p={supported:!1,testSupport:function(xe){!x&&o&&(u?m(xe):c=xe)}};let c,o,x=!1,u=!1;function m(xe){const h=xe.createTexture();xe.bindTexture(xe.TEXTURE_2D,h);try{if(xe.texImage2D(xe.TEXTURE_2D,0,xe.RGBA,xe.RGBA,xe.UNSIGNED_BYTE,o),xe.isContextLost())return;p.supported=!0}catch{}xe.deleteTexture(h),x=!0}var b,I,xe;typeof document<"u"&&(o=document.createElement("img"),o.onload=function(){c&&m(c),c=null,u=!0},o.onerror=function(){x=!0,c=null},o.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="),function(xe){let h,k,se,de;xe.resetRequestQueue=()=>{h=[],k=0,se=0,de={}},xe.addThrottleControl=fn=>{const Qn=se++;return de[Qn]=fn,Qn},xe.removeThrottleControl=fn=>{delete de[fn],wt()},xe.getImage=(fn,Qn,ei=!0)=>{p.supported&&(fn.headers||(fn.headers={}),fn.headers.accept="image/webp,*/*");const bi={requestParameters:fn,supportImageRefresh:ei,callback:Qn,cancelled:!1,completed:!1,cancel:()=>{bi.completed||bi.cancelled||(bi.cancelled=!0,bi.innerRequest&&(bi.innerRequest.cancel(),k--),wt())}};return h.push(bi),wt(),bi};const Ae=fn=>{const{requestParameters:Qn,supportImageRefresh:ei,callback:bi}=fn;return l.extend(Qn,{type:"image"}),(!1!==ei||l.isWorker()||l.getProtocolAction(Qn.url)||Qn.headers&&!Object.keys(Qn.headers).reduce((zi,Be)=>zi&&"accept"===Be,!0)?l.makeRequest:Mt)(Qn,(zi,Be,pt,Ye)=>{Ct(fn,bi,zi,Be,pt,Ye)})},Ct=(fn,Qn,ei,bi,zi,Be)=>{var pt,Ye;ei?Qn(ei):bi instanceof HTMLImageElement||l.isImageBitmap(bi)?Qn(null,bi):bi&&(pt=bi,Ye=(pt,Ye)=>{null!=pt?Qn(pt):null!=Ye&&Qn(null,Ye,{cacheControl:zi,expires:Be})},"function"==typeof createImageBitmap?l.arrayBufferToImageBitmap(pt,Ye):l.arrayBufferToImage(pt,Ye)),fn.cancelled||(fn.completed=!0,k--,wt())},wt=()=>{const fn=(()=>{const Qn=Object.keys(de);let ei=!1;if(Qn.length>0)for(const bi of Qn)if(ei=de[bi](),ei)break;return ei})()?l.config.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:l.config.MAX_PARALLEL_IMAGE_REQUESTS;for(let Qn=k;Qn<fn&&h.length>0;Qn++){const ei=h.shift();if(ei.cancelled){Qn--;continue}const bi=Ae(ei);k++,ei.innerRequest=bi}},Mt=(fn,Qn)=>{const ei=new Image,bi=fn.url;let zi=!1;const Be=fn.credentials;return Be&&"include"===Be?ei.crossOrigin="use-credentials":(Be&&"same-origin"===Be||!l.sameOrigin(bi))&&(ei.crossOrigin="anonymous"),ei.fetchPriority="high",ei.onload=()=>{Qn(null,ei),ei.onerror=ei.onload=null},ei.onerror=()=>{zi||Qn(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.")),ei.onerror=ei.onload=null},ei.src=bi,{cancel:()=>{zi=!0,ei.src=""}}}}(b||(b={})),b.resetRequestQueue(),(xe=I||(I={})).Glyphs="Glyphs",xe.Image="Image",xe.Source="Source",xe.SpriteImage="SpriteImage",xe.SpriteJSON="SpriteJSON",xe.Style="Style",xe.Tile="Tile",xe.Unknown="Unknown";class H{constructor(h){this._transformRequestFn=h}transformRequest(h,k){return this._transformRequestFn&&this._transformRequestFn(h,k)||{url:h}}normalizeSpriteURL(h,k,se){const de=function(Ae){const Ct=Ae.match(O);if(!Ct)throw new Error(`Unable to parse URL "${Ae}"`);return{protocol:Ct[1],authority:Ct[2],path:Ct[3]||"/",params:Ct[4]?Ct[4].split("&"):[]}}(h);return de.path+=`${k}${se}`,function(Ae){const Ct=Ae.params.length?`?${Ae.params.join("&")}`:"";return`${Ae.protocol}://${Ae.authority}${Ae.path}${Ct}`}(de)}setTransformRequest(h){this._transformRequestFn=h}}const O=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function P(xe){var h=new l.ARRAY_TYPE(3);return h[0]=xe[0],h[1]=xe[1],h[2]=xe[2],h}var G,B=function(xe,h,k){return xe[0]=h[0]-k[0],xe[1]=h[1]-k[1],xe[2]=h[2]-k[2],xe};G=new l.ARRAY_TYPE(3),l.ARRAY_TYPE!=Float32Array&&(G[0]=0,G[1]=0,G[2]=0);var ae=function(xe){var h=xe[0],k=xe[1];return h*h+k*k};function J(xe){const h=[];if("string"==typeof xe)h.push({id:"default",url:xe});else if(xe&&xe.length>0){const k=[];for(const{id:se,url:de}of xe){const Ae=`${se}${de}`;-1===k.indexOf(Ae)&&(k.push(Ae),h.push({id:se,url:de}))}}return h}function q(xe,h,k,se,de){if(se)return void xe(se);if(de!==Object.values(h).length||de!==Object.values(k).length)return;const Ae={};for(const Ct in h){Ae[Ct]={};const wt=l.browser.getImageCanvasContext(k[Ct]),Mt=h[Ct];for(const fn in Mt){const{width:Qn,height:ei,x:bi,y:zi,sdf:Be,pixelRatio:pt,stretchX:Ye,stretchY:ut,content:Kt}=Mt[fn];Ae[Ct][fn]={data:null,pixelRatio:pt,sdf:Be,stretchX:Ye,stretchY:ut,content:Kt,spriteData:{width:Qn,height:ei,x:bi,y:zi,context:wt}}}}xe(null,Ae)}!function(){var xe=new l.ARRAY_TYPE(2);l.ARRAY_TYPE!=Float32Array&&(xe[0]=0,xe[1]=0)}();class j{constructor(h,k,se,de){this.context=h,this.format=se,this.texture=h.gl.createTexture(),this.update(k,de)}update(h,k,se){const{width:de,height:Ae}=h,Ct=!(this.size&&this.size[0]===de&&this.size[1]===Ae||se),{context:wt}=this,{gl:Mt}=wt;if(this.useMipmap=!(!k||!k.useMipmap),Mt.bindTexture(Mt.TEXTURE_2D,this.texture),wt.pixelStoreUnpackFlipY.set(!1),wt.pixelStoreUnpack.set(1),wt.pixelStoreUnpackPremultiplyAlpha.set(this.format===Mt.RGBA&&(!k||!1!==k.premultiply)),Ct)this.size=[de,Ae],h instanceof HTMLImageElement||h instanceof HTMLCanvasElement||h instanceof HTMLVideoElement||h instanceof ImageData||l.isImageBitmap(h)?Mt.texImage2D(Mt.TEXTURE_2D,0,this.format,this.format,Mt.UNSIGNED_BYTE,h):Mt.texImage2D(Mt.TEXTURE_2D,0,this.format,de,Ae,0,this.format,Mt.UNSIGNED_BYTE,h.data);else{const{x:fn,y:Qn}=se||{x:0,y:0};h instanceof HTMLImageElement||h instanceof HTMLCanvasElement||h instanceof HTMLVideoElement||h instanceof ImageData||l.isImageBitmap(h)?Mt.texSubImage2D(Mt.TEXTURE_2D,0,fn,Qn,Mt.RGBA,Mt.UNSIGNED_BYTE,h):Mt.texSubImage2D(Mt.TEXTURE_2D,0,fn,Qn,de,Ae,Mt.RGBA,Mt.UNSIGNED_BYTE,h.data)}this.useMipmap&&this.isSizePowerOfTwo()&&Mt.generateMipmap(Mt.TEXTURE_2D)}bind(h,k,se){const{context:de}=this,{gl:Ae}=de;Ae.bindTexture(Ae.TEXTURE_2D,this.texture),se!==Ae.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(se=Ae.LINEAR),h!==this.filter&&(Ae.texParameteri(Ae.TEXTURE_2D,Ae.TEXTURE_MAG_FILTER,h),Ae.texParameteri(Ae.TEXTURE_2D,Ae.TEXTURE_MIN_FILTER,se||h),this.filter=h),k!==this.wrap&&(Ae.texParameteri(Ae.TEXTURE_2D,Ae.TEXTURE_WRAP_S,k),Ae.texParameteri(Ae.TEXTURE_2D,Ae.TEXTURE_WRAP_T,k),this.wrap=k)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){const{gl:h}=this.context;h.deleteTexture(this.texture),this.texture=null}}function Y(xe){const{userImage:h}=xe;return!!(h&&h.render&&h.render())&&(xe.data.replace(new Uint8Array(h.data.buffer)),!0)}class K extends l.Evented{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new l.RGBAImage({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(h){if(this.loaded!==h&&(this.loaded=h,h)){for(const{ids:k,callback:se}of this.requestors)this._notify(k,se);this.requestors=[]}}getImage(h){const k=this.images[h];if(k&&!k.data&&k.spriteData){const se=k.spriteData;k.data=new l.RGBAImage({width:se.width,height:se.height},se.context.getImageData(se.x,se.y,se.width,se.height).data),k.spriteData=null}return k}addImage(h,k){if(this.images[h])throw new Error(`Image id ${h} already exist, use updateImage instead`);this._validate(h,k)&&(this.images[h]=k)}_validate(h,k){let se=!0;const de=k.data||k.spriteData;return this._validateStretch(k.stretchX,de&&de.width)||(this.fire(new l.ErrorEvent(new Error(`Image "${h}" has invalid "stretchX" value`))),se=!1),this._validateStretch(k.stretchY,de&&de.height)||(this.fire(new l.ErrorEvent(new Error(`Image "${h}" has invalid "stretchY" value`))),se=!1),this._validateContent(k.content,k)||(this.fire(new l.ErrorEvent(new Error(`Image "${h}" has invalid "content" value`))),se=!1),se}_validateStretch(h,k){if(!h)return!0;let se=0;for(const de of h){if(de[0]<se||de[1]<de[0]||k<de[1])return!1;se=de[1]}return!0}_validateContent(h,k){if(!h)return!0;if(4!==h.length)return!1;const se=k.spriteData,de=se&&se.width||k.data.width,Ae=se&&se.height||k.data.height;return!(h[0]<0||de<h[0]||h[1]<0||Ae<h[1]||h[2]<0||de<h[2]||h[3]<0||Ae<h[3]||h[2]<h[0]||h[3]<h[1])}updateImage(h,k,se=!0){const de=this.getImage(h);if(se&&(de.data.width!==k.data.width||de.data.height!==k.data.height))throw new Error(`size mismatch between old image (${de.data.width}x${de.data.height}) and new image (${k.data.width}x${k.data.height}).`);k.version=de.version+1,this.images[h]=k,this.updatedImages[h]=!0}removeImage(h){const k=this.images[h];delete this.images[h],delete this.patterns[h],k.userImage&&k.userImage.onRemove&&k.userImage.onRemove()}listImages(){return Object.keys(this.images)}getImages(h,k){let se=!0;if(!this.isLoaded())for(const de of h)this.images[de]||(se=!1);this.isLoaded()||se?this._notify(h,k):this.requestors.push({ids:h,callback:k})}_notify(h,k){const se={};for(const de of h){let Ae=this.getImage(de);Ae||(this.fire(new l.Event("styleimagemissing",{id:de})),Ae=this.getImage(de)),Ae?se[de]={data:Ae.data.clone(),pixelRatio:Ae.pixelRatio,sdf:Ae.sdf,version:Ae.version,stretchX:Ae.stretchX,stretchY:Ae.stretchY,content:Ae.content,hasRenderCallback:!(!Ae.userImage||!Ae.userImage.render)}:l.warnOnce(`Image "${de}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}k(null,se)}getPixelSize(){const{width:h,height:k}=this.atlasImage;return{width:h,height:k}}getPattern(h){const k=this.patterns[h],se=this.getImage(h);if(!se)return null;if(k&&k.position.version===se.version)return k.position;if(k)k.position.version=se.version;else{const de={w:se.data.width+2,h:se.data.height+2,x:0,y:0},Ae=new l.ImagePosition(de,se);this.patterns[h]={bin:de,position:Ae}}return this._updatePatternAtlas(),this.patterns[h].position}bind(h){const k=h.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new j(h,this.atlasImage,k.RGBA),this.atlasTexture.bind(k.LINEAR,k.CLAMP_TO_EDGE)}_updatePatternAtlas(){const h=[];for(const Ae in this.patterns)h.push(this.patterns[Ae].bin);const{w:k,h:se}=l.potpack(h),de=this.atlasImage;de.resize({width:k||1,height:se||1});for(const Ae in this.patterns){const{bin:Ct}=this.patterns[Ae],wt=Ct.x+1,Mt=Ct.y+1,fn=this.getImage(Ae).data,Qn=fn.width,ei=fn.height;l.RGBAImage.copy(fn,de,{x:0,y:0},{x:wt,y:Mt},{width:Qn,height:ei}),l.RGBAImage.copy(fn,de,{x:0,y:ei-1},{x:wt,y:Mt-1},{width:Qn,height:1}),l.RGBAImage.copy(fn,de,{x:0,y:0},{x:wt,y:Mt+ei},{width:Qn,height:1}),l.RGBAImage.copy(fn,de,{x:Qn-1,y:0},{x:wt-1,y:Mt},{width:1,height:ei}),l.RGBAImage.copy(fn,de,{x:0,y:0},{x:wt+Qn,y:Mt},{width:1,height:ei})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(h){for(const k of h){if(this.callbackDispatchedThisFrame[k])continue;this.callbackDispatchedThisFrame[k]=!0;const se=this.getImage(k);se||l.warnOnce(`Image with ID: "${k}" was not found`),Y(se)&&this.updateImage(k,se)}}}const ne=1e20;function ee(xe,h,k,se,de,Ae,Ct,wt,Mt){for(let fn=h;fn<h+se;fn++)$(xe,k*Ae+fn,Ae,de,Ct,wt,Mt);for(let fn=k;fn<k+de;fn++)$(xe,fn*Ae+h,1,se,Ct,wt,Mt)}function $(xe,h,k,se,de,Ae,Ct){Ae[0]=0,Ct[0]=-ne,Ct[1]=ne,de[0]=xe[h];for(let wt=1,Mt=0,fn=0;wt<se;wt++){de[wt]=xe[h+wt*k];const Qn=wt*wt;do{const ei=Ae[Mt];fn=(de[wt]-de[ei]+Qn-ei*ei)/(wt-ei)/2}while(fn<=Ct[Mt]&&--Mt>-1);Mt++,Ae[Mt]=wt,Ct[Mt]=fn,Ct[Mt+1]=ne}for(let wt=0,Mt=0;wt<se;wt++){for(;Ct[Mt+1]<wt;)Mt++;const fn=Ae[Mt],Qn=wt-fn;xe[h+wt*k]=de[fn]+Qn*Qn}}class ue{constructor(h,k){this.requestManager=h,this.localIdeographFontFamily=k,this.entries={}}setURL(h){this.url=h}getGlyphs(h,k){const se=[];for(const de in h)for(const Ae of h[de])se.push({stack:de,id:Ae});l.asyncAll(se,({stack:de,id:Ae},Ct)=>{let wt=this.entries[de];wt||(wt=this.entries[de]={glyphs:{},requests:{},ranges:{}});let Mt=wt.glyphs[Ae];if(void 0!==Mt)return void Ct(null,{stack:de,id:Ae,glyph:Mt});if(Mt=this._tinySDF(wt,de,Ae),Mt)return wt.glyphs[Ae]=Mt,void Ct(null,{stack:de,id:Ae,glyph:Mt});const fn=Math.floor(Ae/256);if(256*fn>65535)return void Ct(new Error("glyphs > 65535 not supported"));if(wt.ranges[fn])return void Ct(null,{stack:de,id:Ae,glyph:Mt});if(!this.url)return void Ct(new Error("glyphsUrl is not set"));let Qn=wt.requests[fn];Qn||(Qn=wt.requests[fn]=[],ue.loadGlyphRange(de,fn,this.url,this.requestManager,(ei,bi)=>{if(bi){for(const zi in bi)this._doesCharSupportLocalGlyph(+zi)||(wt.glyphs[+zi]=bi[+zi]);wt.ranges[fn]=!0}for(const zi of Qn)zi(ei,bi);delete wt.requests[fn]})),Qn.push((ei,bi)=>{ei?Ct(ei):bi&&Ct(null,{stack:de,id:Ae,glyph:bi[Ae]||null})})},(de,Ae)=>{if(de)k(de);else if(Ae){const Ct={};for(const{stack:wt,id:Mt,glyph:fn}of Ae)(Ct[wt]||(Ct[wt]={}))[Mt]=fn&&{id:fn.id,bitmap:fn.bitmap.clone(),metrics:fn.metrics};k(null,Ct)}})}_doesCharSupportLocalGlyph(h){return!!this.localIdeographFontFamily&&(l.unicodeBlockLookup["CJK Unified Ideographs"](h)||l.unicodeBlockLookup["Hangul Syllables"](h)||l.unicodeBlockLookup.Hiragana(h)||l.unicodeBlockLookup.Katakana(h))}_tinySDF(h,k,se){const de=this.localIdeographFontFamily;if(!de||!this._doesCharSupportLocalGlyph(se))return;let Ae=h.tinySDF;if(!Ae){let wt="400";/bold/i.test(k)?wt="900":/medium/i.test(k)?wt="500":/light/i.test(k)&&(wt="200"),Ae=h.tinySDF=new ue.TinySDF({fontSize:24,buffer:3,radius:8,cutoff:.25,fontFamily:de,fontWeight:wt})}const Ct=Ae.draw(String.fromCharCode(se));return{id:se,bitmap:new l.AlphaImage({width:Ct.width||30,height:Ct.height||30},Ct.data),metrics:{width:Ct.glyphWidth||24,height:Ct.glyphHeight||24,left:Ct.glyphLeft||0,top:Ct.glyphTop-27||-8,advance:Ct.glyphAdvance||24}}}}ue.loadGlyphRange=function(xe,h,k,se,de){const Ae=256*h,Ct=Ae+255,wt=se.transformRequest(k.replace("{fontstack}",xe).replace("{range}",`${Ae}-${Ct}`),I.Glyphs);l.getArrayBuffer(wt,(Mt,fn)=>{if(Mt)de(Mt);else if(fn){const Qn={};for(const ei of l.parseGlyphPbf(fn))Qn[ei.id]=ei;de(null,Qn)}})},ue.TinySDF=class{constructor({fontSize:xe=24,buffer:h=3,radius:k=8,cutoff:se=.25,fontFamily:de="sans-serif",fontWeight:Ae="normal",fontStyle:Ct="normal"}={}){this.buffer=h,this.cutoff=se,this.radius=k;const wt=this.size=xe+4*h,Mt=this._createCanvas(wt),fn=this.ctx=Mt.getContext("2d",{willReadFrequently:!0});fn.font=`${Ct} ${Ae} ${xe}px ${de}`,fn.textBaseline="alphabetic",fn.textAlign="left",fn.fillStyle="black",this.gridOuter=new Float64Array(wt*wt),this.gridInner=new Float64Array(wt*wt),this.f=new Float64Array(wt),this.z=new Float64Array(wt+1),this.v=new Uint16Array(wt)}_createCanvas(xe){const h=document.createElement("canvas");return h.width=h.height=xe,h}draw(xe){const{width:h,actualBoundingBoxAscent:k,actualBoundingBoxDescent:se,actualBoundingBoxLeft:de,actualBoundingBoxRight:Ae}=this.ctx.measureText(xe),Ct=Math.ceil(k),wt=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(Ae-de))),Mt=Math.min(this.size-this.buffer,Ct+Math.ceil(se)),fn=wt+2*this.buffer,Qn=Mt+2*this.buffer,ei=Math.max(fn*Qn,0),bi=new Uint8ClampedArray(ei),zi={data:bi,width:fn,height:Qn,glyphWidth:wt,glyphHeight:Mt,glyphTop:Ct,glyphLeft:0,glyphAdvance:h};if(0===wt||0===Mt)return zi;const{ctx:Be,buffer:pt,gridInner:Ye,gridOuter:ut}=this;Be.clearRect(pt,pt,wt,Mt),Be.fillText(xe,pt,pt+Ct);const Kt=Be.getImageData(pt,pt,wt,Mt);ut.fill(ne,0,ei),Ye.fill(0,0,ei);for(let en=0;en<Mt;en++)for(let qn=0;qn<wt;qn++){const hi=Kt.data[4*(en*wt+qn)+3]/255;if(0===hi)continue;const gi=(en+pt)*fn+qn+pt;if(1===hi)ut[gi]=0,Ye[gi]=ne;else{const ko=.5-hi;ut[gi]=ko>0?ko*ko:0,Ye[gi]=ko<0?ko*ko:0}}ee(ut,0,0,fn,Qn,fn,this.f,this.v,this.z),ee(Ye,pt,pt,wt,Mt,fn,this.f,this.v,this.z);for(let en=0;en<ei;en++){const qn=Math.sqrt(ut[en])-Math.sqrt(Ye[en]);bi[en]=Math.round(255-255*(qn/this.radius+this.cutoff))}return zi}};class ge{constructor(){this.specification=l.v8Spec.light.position}possiblyEvaluate(h,k){return l.sphericalToCartesian(h.expression.evaluate(k))}interpolate(h,k,se){return{x:l.interpolate.number(h.x,k.x,se),y:l.interpolate.number(h.y,k.y,se),z:l.interpolate.number(h.z,k.z,se)}}}let Ke,at;class Le extends l.Evented{constructor(h){super(),Ke=Ke||new l.Properties({anchor:new l.DataConstantProperty(l.v8Spec.light.anchor),position:new ge,color:new l.DataConstantProperty(l.v8Spec.light.color),intensity:new l.DataConstantProperty(l.v8Spec.light.intensity)}),this._transitionable=new l.Transitionable(Ke),this.setLight(h),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}setLight(h,k={}){if(!this._validate(l.validateLight,h,k))for(const se in h){const de=h[se];se.endsWith("-transition")?this._transitionable.setTransition(se.slice(0,-11),de):this._transitionable.setValue(se,de)}}updateTransitions(h){this._transitioning=this._transitionable.transitioned(h,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(h){this.properties=this._transitioning.possiblyEvaluate(h)}_validate(h,k,se){return(!se||!1!==se.validate)&&l.emitValidationErrors(this,h.call(l.validateStyle,l.extend({value:k,style:{glyphs:!0,sprite:!0},styleSpec:l.v8Spec})))}}class R{constructor(h,k){this.width=h,this.height=k,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}}getDash(h,k){const se=h.join(",")+String(k);return this.dashEntry[se]||(this.dashEntry[se]=this.addDash(h,k)),this.dashEntry[se]}getDashRanges(h,k,se){const de=[];let Ae=h.length%2==1?-h[h.length-1]*se:0,Ct=h[0]*se,wt=!0;de.push({left:Ae,right:Ct,isDash:wt,zeroLength:0===h[0]});let Mt=h[0];for(let fn=1;fn<h.length;fn++){wt=!wt;const Qn=h[fn];Ae=Mt*se,Mt+=Qn,Ct=Mt*se,de.push({left:Ae,right:Ct,isDash:wt,zeroLength:0===Qn})}return de}addRoundDash(h,k,se){const de=k/2;for(let Ae=-se;Ae<=se;Ae++){const Ct=this.width*(this.nextRow+se+Ae);let wt=0,Mt=h[wt];for(let fn=0;fn<this.width;fn++){fn/Mt.right>1&&(Mt=h[++wt]);const Qn=Math.abs(fn-Mt.left),ei=Math.abs(fn-Mt.right),bi=Math.min(Qn,ei);let zi;const Be=Ae/se*(de+1);if(Mt.isDash){const pt=de-Math.abs(Be);zi=Math.sqrt(bi*bi+pt*pt)}else zi=de-Math.sqrt(bi*bi+Be*Be);this.data[Ct+fn]=Math.max(0,Math.min(255,zi+128))}}}addRegularDash(h){for(let wt=h.length-1;wt>=0;--wt){const Mt=h[wt],fn=h[wt+1];Mt.zeroLength?h.splice(wt,1):fn&&fn.isDash===Mt.isDash&&(fn.left=Mt.left,h.splice(wt,1))}const k=h[0],se=h[h.length-1];k.isDash===se.isDash&&(k.left=se.left-this.width,se.right=k.right+this.width);const de=this.width*this.nextRow;let Ae=0,Ct=h[Ae];for(let wt=0;wt<this.width;wt++){wt/Ct.right>1&&(Ct=h[++Ae]);const Mt=Math.abs(wt-Ct.left),fn=Math.abs(wt-Ct.right),Qn=Math.min(Mt,fn);this.data[de+wt]=Math.max(0,Math.min(255,(Ct.isDash?Qn:-Qn)+128))}}addDash(h,k){const se=k?7:0,de=2*se+1;if(this.nextRow+de>this.height)return l.warnOnce("LineAtlas out of space"),null;let Ae=0;for(let wt=0;wt<h.length;wt++)Ae+=h[wt];if(0!==Ae){const wt=this.width/Ae,Mt=this.getDashRanges(h,this.width,wt);k?this.addRoundDash(Mt,wt,se):this.addRegularDash(Mt)}const Ct={y:(this.nextRow+se+.5)/this.height,height:2*se/this.height,width:Ae};return this.nextRow+=de,this.dirty=!0,Ct}bind(h){const k=h.gl;this.texture?(k.bindTexture(k.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,k.texSubImage2D(k.TEXTURE_2D,0,0,0,this.width,this.height,k.ALPHA,k.UNSIGNED_BYTE,this.data))):(this.texture=k.createTexture(),k.bindTexture(k.TEXTURE_2D,this.texture),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.REPEAT),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.REPEAT),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.LINEAR),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.LINEAR),k.texImage2D(k.TEXTURE_2D,0,k.ALPHA,this.width,this.height,0,k.ALPHA,k.UNSIGNED_BYTE,this.data))}}class Te{constructor(h,k,se){this.workerPool=h,this.actors=[],this.currentActor=0,this.id=se;const de=this.workerPool.acquire(se);for(let Ae=0;Ae<de.length;Ae++){const Ct=new Te.Actor(de[Ae],k,se);Ct.name=`Worker ${Ae}`,this.actors.push(Ct)}if(!this.actors.length)throw new Error("No actors found")}broadcast(h,k,se){l.asyncAll(this.actors,(de,Ae)=>{de.send(h,k,Ae)},se=se||function(){})}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(h=!0){this.actors.forEach(k=>{k.remove()}),this.actors=[],h&&this.workerPool.release(this.id)}}function me(xe,h,k){const se=function(de,Ae){if(de)return k(de);if(Ae){const Ct=l.pick(l.extend(Ae,xe),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);Ae.vector_layers&&(Ct.vectorLayers=Ae.vector_layers,Ct.vectorLayerIds=Ct.vectorLayers.map(wt=>wt.id)),k(null,Ct)}};return xe.url?l.getJSON(h.transformRequest(xe.url,I.Source),se):l.browser.frame(()=>se(null,xe))}Te.Actor=l.Actor;class Se{constructor(h,k){h&&(k?this.setSouthWest(h).setNorthEast(k):Array.isArray(h)&&(4===h.length?this.setSouthWest([h[0],h[1]]).setNorthEast([h[2],h[3]]):this.setSouthWest(h[0]).setNorthEast(h[1])))}setNorthEast(h){return this._ne=h instanceof l.LngLat?new l.LngLat(h.lng,h.lat):l.LngLat.convert(h),this}setSouthWest(h){return this._sw=h instanceof l.LngLat?new l.LngLat(h.lng,h.lat):l.LngLat.convert(h),this}extend(h){const k=this._sw,se=this._ne;let de,Ae;if(h instanceof l.LngLat)de=h,Ae=h;else{if(!(h instanceof Se))return Array.isArray(h)?4===h.length||h.every(Array.isArray)?this.extend(Se.convert(h)):this.extend(l.LngLat.convert(h)):h&&("lng"in h||"lon"in h)&&"lat"in h?this.extend(l.LngLat.convert(h)):this;if(de=h._sw,Ae=h._ne,!de||!Ae)return this}return k||se?(k.lng=Math.min(de.lng,k.lng),k.lat=Math.min(de.lat,k.lat),se.lng=Math.max(Ae.lng,se.lng),se.lat=Math.max(Ae.lat,se.lat)):(this._sw=new l.LngLat(de.lng,de.lat),this._ne=new l.LngLat(Ae.lng,Ae.lat)),this}getCenter(){return new l.LngLat((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new l.LngLat(this.getWest(),this.getNorth())}getSouthEast(){return new l.LngLat(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(h){const{lng:k,lat:se}=l.LngLat.convert(h);let de=this._sw.lng<=k&&k<=this._ne.lng;return this._sw.lng>this._ne.lng&&(de=this._sw.lng>=k&&k>=this._ne.lng),this._sw.lat<=se&&se<=this._ne.lat&&de}static convert(h){return h instanceof Se?h:h&&new Se(h)}static fromLngLat(h,k=0){const se=360*k/40075017,de=se/Math.cos(Math.PI/180*h.lat);return new Se(new l.LngLat(h.lng-de,h.lat-se),new l.LngLat(h.lng+de,h.lat+se))}}class Ue{constructor(h,k,se){this.bounds=Se.convert(this.validateBounds(h)),this.minzoom=k||0,this.maxzoom=se||24}validateBounds(h){return Array.isArray(h)&&4===h.length?[Math.max(-180,h[0]),Math.max(-90,h[1]),Math.min(180,h[2]),Math.min(90,h[3])]:[-180,-90,180,90]}contains(h){const k=Math.pow(2,h.z),se=Math.floor(l.mercatorXfromLng(this.bounds.getWest())*k),de=Math.floor(l.mercatorYfromLat(this.bounds.getNorth())*k),Ae=Math.ceil(l.mercatorXfromLng(this.bounds.getEast())*k),Ct=Math.ceil(l.mercatorYfromLat(this.bounds.getSouth())*k);return h.x>=se&&h.x<Ae&&h.y>=de&&h.y<Ct}}class We extends l.Evented{constructor(h,k,se,de){if(super(),this.load=()=>{this._loaded=!1,this.fire(new l.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=me(this._options,this.map._requestManager,(Ae,Ct)=>{this._tileJSONRequest=null,this._loaded=!0,this.map.style.sourceCaches[this.id].clearTiles(),Ae?this.fire(new l.ErrorEvent(Ae)):Ct&&(l.extend(this,Ct),Ct.bounds&&(this.tileBounds=new Ue(Ct.bounds,this.minzoom,this.maxzoom)),this.fire(new l.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new l.Event("data",{dataType:"source",sourceDataType:"content"})))})},this.serialize=()=>l.extend({},this._options),this.id=h,this.dispatcher=se,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,l.extend(this,l.pick(k,["url","scheme","tileSize","promoteId"])),this._options=l.extend({type:"vector"},k),this._collectResourceTiming=k.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(de)}loaded(){return this._loaded}hasTile(h){return!this.tileBounds||this.tileBounds.contains(h.canonical)}onAdd(h){this.map=h,this.load()}setSourceProperty(h){this._tileJSONRequest&&this._tileJSONRequest.cancel(),h(),this.load()}setTiles(h){return this.setSourceProperty(()=>{this._options.tiles=h}),this}setUrl(h){return this.setSourceProperty(()=>{this.url=h,this._options.url=h}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}loadTile(h,k){const se=h.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),de={request:this.map._requestManager.transformRequest(se,I.Tile),uid:h.uid,tileID:h.tileID,zoom:h.tileID.overscaledZ,tileSize:this.tileSize*h.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};function Ae(Ct,wt){return delete h.request,h.aborted?k(null):Ct&&404!==Ct.status?k(Ct):(wt&&wt.resourceTiming&&(h.resourceTiming=wt.resourceTiming),this.map._refreshExpiredTiles&&wt&&h.setExpiryData(wt),h.loadVectorData(wt,this.map.painter),k(null),void(h.reloadCallback&&(this.loadTile(h,h.reloadCallback),h.reloadCallback=null)))}de.request.collectResourceTiming=this._collectResourceTiming,h.actor&&"expired"!==h.state?"loading"===h.state?h.reloadCallback=k:h.request=h.actor.send("reloadTile",de,Ae.bind(this)):(h.actor=this.dispatcher.getActor(),h.request=h.actor.send("loadTile",de,Ae.bind(this)))}abortTile(h){h.request&&(h.request.cancel(),delete h.request),h.actor&&h.actor.send("abortTile",{uid:h.uid,type:this.type,source:this.id},void 0)}unloadTile(h){h.unloadVectorData(),h.actor&&h.actor.send("removeTile",{uid:h.uid,type:this.type,source:this.id},void 0)}hasTransition(){return!1}}class et extends l.Evented{constructor(h,k,se,de){super(),this.id=h,this.dispatcher=se,this.setEventedParent(de),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=l.extend({type:"raster"},k),l.extend(this,l.pick(k,["url","scheme","tileSize"]))}load(){this._loaded=!1,this.fire(new l.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=me(this._options,this.map._requestManager,(h,k)=>{this._tileJSONRequest=null,this._loaded=!0,h?this.fire(new l.ErrorEvent(h)):k&&(l.extend(this,k),k.bounds&&(this.tileBounds=new Ue(k.bounds,this.minzoom,this.maxzoom)),this.fire(new l.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new l.Event("data",{dataType:"source",sourceDataType:"content"})))})}loaded(){return this._loaded}onAdd(h){this.map=h,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}serialize(){return l.extend({},this._options)}hasTile(h){return!this.tileBounds||this.tileBounds.contains(h.canonical)}loadTile(h,k){const se=h.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);h.request=b.getImage(this.map._requestManager.transformRequest(se,I.Tile),(de,Ae,Ct)=>{if(delete h.request,h.aborted)h.state="unloaded",k(null);else if(de)h.state="errored",k(de);else if(Ae){this.map._refreshExpiredTiles&&Ct&&h.setExpiryData(Ct);const wt=this.map.painter.context,Mt=wt.gl;h.texture=this.map.painter.getTileTexture(Ae.width),h.texture?h.texture.update(Ae,{useMipmap:!0}):(h.texture=new j(wt,Ae,Mt.RGBA,{useMipmap:!0}),h.texture.bind(Mt.LINEAR,Mt.CLAMP_TO_EDGE,Mt.LINEAR_MIPMAP_NEAREST),wt.extTextureFilterAnisotropic&&Mt.texParameterf(Mt.TEXTURE_2D,wt.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,wt.extTextureFilterAnisotropicMax)),h.state="loaded",k(null)}},this.map._refreshExpiredTiles)}abortTile(h,k){h.request&&(h.request.cancel(),delete h.request),k()}unloadTile(h,k){h.texture&&this.map.painter.saveTileTexture(h.texture),k()}hasTransition(){return!1}}class Et extends et{constructor(h,k,se,de){super(h,k,se,de),this.type="raster-dem",this.maxzoom=22,this._options=l.extend({type:"raster-dem"},k),this.encoding=k.encoding||"mapbox",this.redFactor=k.redFactor,this.greenFactor=k.greenFactor,this.blueFactor=k.blueFactor,this.baseShift=k.baseShift}loadTile(h,k){const se=h.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);function de(Ae,Ct){Ae&&(h.state="errored",k(Ae)),Ct&&(h.dem=Ct,h.needsHillshadePrepare=!0,h.needsTerrainPrepare=!0,h.state="loaded",k(null))}h.request=b.getImage(this.map._requestManager.transformRequest(se,I.Tile),function(Ae,Ct){if(delete h.request,h.aborted)h.state="unloaded",k(null);else if(Ae)h.state="errored",k(Ae);else if(Ct){this.map._refreshExpiredTiles&&h.setExpiryData(Ct),delete Ct.cacheControl,delete Ct.expires;const wt=l.isImageBitmap(Ct)&&(null==at&&(at=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof createImageBitmap),at)?Ct:l.browser.getImageData(Ct,1),Mt={uid:h.uid,coord:h.tileID,source:this.id,rawImageData:wt,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};h.actor&&"expired"!==h.state||(h.actor=this.dispatcher.getActor(),h.actor.send("loadDEMTile",Mt,de.bind(this)))}}.bind(this),this.map._refreshExpiredTiles),h.neighboringTiles=this._getNeighboringTiles(h.tileID)}_getNeighboringTiles(h){const k=h.canonical,se=Math.pow(2,k.z),de=(k.x-1+se)%se,Ae=0===k.x?h.wrap-1:h.wrap,Ct=(k.x+1+se)%se,wt=k.x+1===se?h.wrap+1:h.wrap,Mt={};return Mt[new l.OverscaledTileID(h.overscaledZ,Ae,k.z,de,k.y).key]={backfilled:!1},Mt[new l.OverscaledTileID(h.overscaledZ,wt,k.z,Ct,k.y).key]={backfilled:!1},k.y>0&&(Mt[new l.OverscaledTileID(h.overscaledZ,Ae,k.z,de,k.y-1).key]={backfilled:!1},Mt[new l.OverscaledTileID(h.overscaledZ,h.wrap,k.z,k.x,k.y-1).key]={backfilled:!1},Mt[new l.OverscaledTileID(h.overscaledZ,wt,k.z,Ct,k.y-1).key]={backfilled:!1}),k.y+1<se&&(Mt[new l.OverscaledTileID(h.overscaledZ,Ae,k.z,de,k.y+1).key]={backfilled:!1},Mt[new l.OverscaledTileID(h.overscaledZ,h.wrap,k.z,k.x,k.y+1).key]={backfilled:!1},Mt[new l.OverscaledTileID(h.overscaledZ,wt,k.z,Ct,k.y+1).key]={backfilled:!1}),Mt}unloadTile(h){h.demTexture&&this.map.painter.saveTileTexture(h.demTexture),h.fbo&&(h.fbo.destroy(),delete h.fbo),h.dem&&delete h.dem,delete h.neighboringTiles,h.state="unloaded",h.actor&&h.actor.send("removeDEMTile",{uid:h.uid,source:this.id})}}class lt extends l.Evented{constructor(h,k,se,de){super(),this.load=()=>{this._updateWorkerData()},this.serialize=()=>l.extend({},this._options,{type:this.type,data:this._data}),this.id=h,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._pendingLoads=0,this.actor=se.getActor(),this.setEventedParent(de),this._data=k.data,this._options=l.extend({},k),this._collectResourceTiming=k.collectResourceTiming,void 0!==k.maxzoom&&(this.maxzoom=k.maxzoom),k.type&&(this.type=k.type),k.attribution&&(this.attribution=k.attribution),this.promoteId=k.promoteId;const Ae=l.EXTENT/this.tileSize;this.workerOptions=l.extend({source:this.id,cluster:k.cluster||!1,geojsonVtOptions:{buffer:(void 0!==k.buffer?k.buffer:128)*Ae,tolerance:(void 0!==k.tolerance?k.tolerance:.375)*Ae,extent:l.EXTENT,maxZoom:this.maxzoom,lineMetrics:k.lineMetrics||!1,generateId:k.generateId||!1},superclusterOptions:{maxZoom:void 0!==k.clusterMaxZoom?k.clusterMaxZoom:this.maxzoom-1,minPoints:Math.max(2,k.clusterMinPoints||2),extent:l.EXTENT,radius:(k.clusterRadius||50)*Ae,log:!1,generateId:k.generateId||!1},clusterProperties:k.clusterProperties,filter:k.filter},k.workerOptions),"string"==typeof this.promoteId&&(this.workerOptions.promoteId=this.promoteId)}onAdd(h){this.map=h,this.load()}setData(h){return this._data=h,this._updateWorkerData(),this}updateData(h){return this._updateWorkerData(h),this}setClusterOptions(h){return this.workerOptions.cluster=h.cluster,h&&(void 0!==h.clusterRadius&&(this.workerOptions.superclusterOptions.radius=h.clusterRadius),void 0!==h.clusterMaxZoom&&(this.workerOptions.superclusterOptions.maxZoom=h.clusterMaxZoom)),this._updateWorkerData(),this}getClusterExpansionZoom(h,k){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:h,source:this.id},k),this}getClusterChildren(h,k){return this.actor.send("geojson.getClusterChildren",{clusterId:h,source:this.id},k),this}getClusterLeaves(h,k,se,de){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:h,limit:k,offset:se},de),this}_updateWorkerData(h){const k=l.extend({},this.workerOptions);h?k.dataDiff=h:"string"==typeof this._data?(k.request=this.map._requestManager.transformRequest(l.browser.resolveURL(this._data),I.Source),k.request.collectResourceTiming=this._collectResourceTiming):k.data=JSON.stringify(this._data),this._pendingLoads++,this.fire(new l.Event("dataloading",{dataType:"source"})),this.actor.send(`${this.type}.loadData`,k,(se,de)=>{if(this._pendingLoads--,this._removed||de&&de.abandoned)return void this.fire(new l.Event("dataabort",{dataType:"source"}));let Ae=null;if(de&&de.resourceTiming&&de.resourceTiming[this.id]&&(Ae=de.resourceTiming[this.id].slice(0)),se)return void this.fire(new l.ErrorEvent(se));const Ct={dataType:"source"};this._collectResourceTiming&&Ae&&Ae.length>0&&l.extend(Ct,{resourceTiming:Ae}),this.fire(new l.Event("data",{...Ct,sourceDataType:"metadata"})),this.fire(new l.Event("data",{...Ct,sourceDataType:"content"}))})}loaded(){return 0===this._pendingLoads}loadTile(h,k){const se=h.actor?"reloadTile":"loadTile";h.actor=this.actor;const de={type:this.type,uid:h.uid,tileID:h.tileID,zoom:h.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};h.request=this.actor.send(se,de,(Ae,Ct)=>(delete h.request,h.unloadVectorData(),h.aborted?k(null):Ae?k(Ae):(h.loadVectorData(Ct,this.map.painter,"reloadTile"===se),k(null))))}abortTile(h){h.request&&(h.request.cancel(),delete h.request),h.aborted=!0}unloadTile(h){h.unloadVectorData(),this.actor.send("removeTile",{uid:h.uid,type:this.type,source:this.id})}onRemove(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})}hasTransition(){return!1}}var Vt=l.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class r extends l.Evented{constructor(h,k,se,de){super(),this.load=(Ae,Ct)=>{this._loaded=!1,this.fire(new l.Event("dataloading",{dataType:"source"})),this.url=this.options.url,this._request=b.getImage(this.map._requestManager.transformRequest(this.url,I.Image),(wt,Mt)=>{this._request=null,this._loaded=!0,wt?this.fire(new l.ErrorEvent(wt)):Mt&&(this.image=Mt,Ae&&(this.coordinates=Ae),Ct&&Ct(),this._finishLoading())})},this.prepare=()=>{if(0===Object.keys(this.tiles).length||!this.image)return;const Ae=this.map.painter.context,Ct=Ae.gl;this.boundsBuffer||(this.boundsBuffer=Ae.createVertexBuffer(this._boundsArray,Vt.members)),this.boundsSegments||(this.boundsSegments=l.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new j(Ae,this.image,Ct.RGBA),this.texture.bind(Ct.LINEAR,Ct.CLAMP_TO_EDGE));let wt=!1;for(const Mt in this.tiles){const fn=this.tiles[Mt];"loaded"!==fn.state&&(fn.state="loaded",fn.texture=this.texture,wt=!0)}wt&&this.fire(new l.Event("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))},this.serialize=()=>({type:"image",url:this.options.url,coordinates:this.coordinates}),this.id=h,this.dispatcher=se,this.coordinates=k.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(de),this.options=k}loaded(){return this._loaded}updateImage(h){return h.url?(this._request&&(this._request.cancel(),this._request=null),this.options.url=h.url,this.load(h.coordinates,()=>{this.texture=null}),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new l.Event("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(h){this.map=h,this.load()}onRemove(){this._request&&(this._request.cancel(),this._request=null)}setCoordinates(h){this.coordinates=h;const k=h.map(l.MercatorCoordinate.fromLngLat);this.tileID=function(de){let Ae=1/0,Ct=1/0,wt=-1/0,Mt=-1/0;for(const bi of de)Ae=Math.min(Ae,bi.x),Ct=Math.min(Ct,bi.y),wt=Math.max(wt,bi.x),Mt=Math.max(Mt,bi.y);const fn=Math.max(wt-Ae,Mt-Ct),Qn=Math.max(0,Math.floor(-Math.log(fn)/Math.LN2)),ei=Math.pow(2,Qn);return new l.CanonicalTileID(Qn,Math.floor((Ae+wt)/2*ei),Math.floor((Ct+Mt)/2*ei))}(k),this.minzoom=this.maxzoom=this.tileID.z;const se=k.map(de=>this.tileID.getTilePoint(de)._round());return this._boundsArray=new l.RasterBoundsArray,this._boundsArray.emplaceBack(se[0].x,se[0].y,0,0),this._boundsArray.emplaceBack(se[1].x,se[1].y,l.EXTENT,0),this._boundsArray.emplaceBack(se[3].x,se[3].y,0,l.EXTENT),this._boundsArray.emplaceBack(se[2].x,se[2].y,l.EXTENT,l.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new l.Event("data",{dataType:"source",sourceDataType:"content"})),this}loadTile(h,k){this.tileID&&this.tileID.equals(h.tileID.canonical)?(this.tiles[String(h.tileID.wrap)]=h,h.buckets={},k(null)):(h.state="errored",k(null))}hasTransition(){return!1}}class Z extends r{constructor(h,k,se,de){super(h,k,se,de),this.load=()=>{this._loaded=!1;const Ae=this.options;this.urls=[];for(const Ct of Ae.urls)this.urls.push(this.map._requestManager.transformRequest(Ct,I.Source).url);l.getVideo(this.urls,(Ct,wt)=>{this._loaded=!0,Ct?this.fire(new l.ErrorEvent(Ct)):wt&&(this.video=wt,this.video.loop=!0,this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading())})},this.prepare=()=>{if(0===Object.keys(this.tiles).length||this.video.readyState<2)return;const Ae=this.map.painter.context,Ct=Ae.gl;this.boundsBuffer||(this.boundsBuffer=Ae.createVertexBuffer(this._boundsArray,Vt.members)),this.boundsSegments||(this.boundsSegments=l.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(Ct.LINEAR,Ct.CLAMP_TO_EDGE),Ct.texSubImage2D(Ct.TEXTURE_2D,0,0,0,Ct.RGBA,Ct.UNSIGNED_BYTE,this.video)):(this.texture=new j(Ae,this.video,Ct.RGBA),this.texture.bind(Ct.LINEAR,Ct.CLAMP_TO_EDGE));let wt=!1;for(const Mt in this.tiles){const fn=this.tiles[Mt];"loaded"!==fn.state&&(fn.state="loaded",fn.texture=this.texture,wt=!0)}wt&&this.fire(new l.Event("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))},this.serialize=()=>({type:"video",urls:this.urls,coordinates:this.coordinates}),this.roundZoom=!0,this.type="video",this.options=k}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(h){if(this.video){const k=this.video.seekable;h<k.start(0)||h>k.end(0)?this.fire(new l.ErrorEvent(new l.ValidationError(`sources.${this.id}`,null,`Playback for this video can be set only between the ${k.start(0)} and ${k.end(0)}-second mark.`))):this.video.currentTime=h}}getVideo(){return this.video}onAdd(h){this.map||(this.map=h,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}hasTransition(){return this.video&&!this.video.paused}}class Pt extends r{constructor(h,k,se,de){super(h,k,se,de),this.load=()=>{this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new l.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},this.prepare=()=>{let Ae=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,Ae=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,Ae=!0),this._hasInvalidDimensions()||0===Object.keys(this.tiles).length)return;const Ct=this.map.painter.context,wt=Ct.gl;this.boundsBuffer||(this.boundsBuffer=Ct.createVertexBuffer(this._boundsArray,Vt.members)),this.boundsSegments||(this.boundsSegments=l.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(Ae||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new j(Ct,this.canvas,wt.RGBA,{premultiply:!0});let Mt=!1;for(const fn in this.tiles){const Qn=this.tiles[fn];"loaded"!==Qn.state&&(Qn.state="loaded",Qn.texture=this.texture,Mt=!0)}Mt&&this.fire(new l.Event("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))},this.serialize=()=>({type:"canvas",coordinates:this.coordinates}),k.coordinates?Array.isArray(k.coordinates)&&4===k.coordinates.length&&!k.coordinates.some(Ae=>!Array.isArray(Ae)||2!==Ae.length||Ae.some(Ct=>"number"!=typeof Ct))||this.fire(new l.ErrorEvent(new l.ValidationError(`sources.${h}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new l.ErrorEvent(new l.ValidationError(`sources.${h}`,null,'missing required property "coordinates"'))),k.animate&&"boolean"!=typeof k.animate&&this.fire(new l.ErrorEvent(new l.ValidationError(`sources.${h}`,null,'optional "animate" property must be a boolean value'))),k.canvas?"string"==typeof k.canvas||k.canvas instanceof HTMLCanvasElement||this.fire(new l.ErrorEvent(new l.ValidationError(`sources.${h}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new l.ErrorEvent(new l.ValidationError(`sources.${h}`,null,'missing required property "canvas"'))),this.options=k,this.animate=void 0===k.animate||k.animate}getCanvas(){return this.canvas}onAdd(h){this.map=h,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const h of[this.canvas.width,this.canvas.height])if(isNaN(h)||h<=0)return!0;return!1}}const Oe={},ye=xe=>{switch(xe){case"geojson":return lt;case"image":return r;case"raster":return et;case"raster-dem":return Et;case"vector":return We;case"video":return Z;case"canvas":return Pt}return Oe[xe]};function ve(xe,h){const k=l.create();return l.translate(k,k,[1,1,0]),l.scale(k,k,[.5*xe.width,.5*xe.height,1]),l.multiply(k,k,xe.calculatePosMatrix(h.toUnwrapped()))}function ft(xe,h,k,se,de,Ae){const Ct=function(ei,bi,zi){if(ei)for(const Be of ei){const pt=bi[Be];if(pt&&pt.source===zi&&"fill-extrusion"===pt.type)return!0}else for(const Be in bi){const pt=bi[Be];if(pt.source===zi&&"fill-extrusion"===pt.type)return!0}return!1}(de&&de.layers,h,xe.id),wt=Ae.maxPitchScaleFactor(),Mt=xe.tilesIn(se,wt,Ct);Mt.sort(Dt);const fn=[];for(const ei of Mt)fn.push({wrappedTileID:ei.tileID.wrapped().key,queryResults:ei.tile.queryRenderedFeatures(h,k,xe._state,ei.queryGeometry,ei.cameraQueryGeometry,ei.scale,de,Ae,wt,ve(xe.transform,ei.tileID))});const Qn=function(ei){const bi={},zi={};for(const Be of ei){const pt=Be.queryResults,Ye=Be.wrappedTileID,ut=zi[Ye]=zi[Ye]||{};for(const Kt in pt){const en=pt[Kt],qn=ut[Kt]=ut[Kt]||{},hi=bi[Kt]=bi[Kt]||[];for(const gi of en)qn[gi.featureIndex]||(qn[gi.featureIndex]=!0,hi.push(gi))}}return bi}(fn);for(const ei in Qn)Qn[ei].forEach(bi=>{const zi=bi.feature,Be=xe.getFeatureState(zi.layer["source-layer"],zi.id);zi.source=zi.layer.source,zi.layer["source-layer"]&&(zi.sourceLayer=zi.layer["source-layer"]),zi.state=Be});return Qn}function Dt(xe,h){const k=xe.tileID,se=h.tileID;return k.overscaledZ-se.overscaledZ||k.canonical.y-se.canonical.y||k.wrap-se.wrap||k.canonical.x-se.canonical.x}class Rn{constructor(h,k){this.timeAdded=0,this.fadeEndTime=0,this.tileID=h,this.uid=l.uniqueId(),this.uses=0,this.tileSize=k,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttCoords={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(h){const k=h+this.timeAdded;k<this.fadeEndTime||(this.fadeEndTime=k)}wasRequested(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state}clearTextures(h){this.demTexture&&h.saveTileTexture(this.demTexture),this.demTexture=null}loadVectorData(h,k,se){if(this.hasData()&&this.unloadVectorData(),this.state="loaded",h){h.featureIndex&&(this.latestFeatureIndex=h.featureIndex,h.rawTileData?(this.latestRawTileData=h.rawTileData,this.latestFeatureIndex.rawTileData=h.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=h.collisionBoxArray,this.buckets=function(de,Ae){const Ct={};if(!Ae)return Ct;for(const wt of de){const Mt=wt.layerIds.map(fn=>Ae.getLayer(fn)).filter(Boolean);if(0!==Mt.length){wt.layers=Mt,wt.stateDependentLayerIds&&(wt.stateDependentLayers=wt.stateDependentLayerIds.map(fn=>Mt.filter(Qn=>Qn.id===fn)[0]));for(const fn of Mt)Ct[fn.id]=wt}}return Ct}(h.buckets,k.style),this.hasSymbolBuckets=!1;for(const de in this.buckets){const Ae=this.buckets[de];if(Ae instanceof l.SymbolBucket){if(this.hasSymbolBuckets=!0,!se)break;Ae.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const de in this.buckets){const Ae=this.buckets[de];if(Ae instanceof l.SymbolBucket&&Ae.hasRTLText){this.hasRTLText=!0,l.lazyLoadRTLTextPlugin();break}}this.queryPadding=0;for(const de in this.buckets){const Ae=this.buckets[de];this.queryPadding=Math.max(this.queryPadding,k.style.getLayer(de).queryRadius(Ae))}h.imageAtlas&&(this.imageAtlas=h.imageAtlas),h.glyphAtlasImage&&(this.glyphAtlasImage=h.glyphAtlasImage)}else this.collisionBoxArray=new l.CollisionBoxArray}unloadVectorData(){for(const h in this.buckets)this.buckets[h].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"}getBucket(h){return this.buckets[h.id]}upload(h){for(const se in this.buckets){const de=this.buckets[se];de.uploadPending()&&de.upload(h)}const k=h.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new j(h,this.imageAtlas.image,k.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new j(h,this.glyphAtlasImage,k.ALPHA),this.glyphAtlasImage=null)}prepare(h){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(h,this.imageAtlasTexture)}queryRenderedFeatures(h,k,se,de,Ae,Ct,wt,Mt,fn,Qn){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:de,cameraQueryGeometry:Ae,scale:Ct,tileSize:this.tileSize,pixelPosMatrix:Qn,transform:Mt,params:wt,queryPadding:this.queryPadding*fn},h,k,se):{}}querySourceFeatures(h,k){const se=this.latestFeatureIndex;if(!se||!se.rawTileData)return;const de=se.loadVTLayers(),Ae=k&&k.sourceLayer?k.sourceLayer:"",Ct=de._geojsonTileLayer||de[Ae];if(!Ct)return;const wt=l.createFilter(k&&k.filter),{z:Mt,x:fn,y:Qn}=this.tileID.canonical,ei={z:Mt,x:fn,y:Qn};for(let bi=0;bi<Ct.length;bi++){const zi=Ct.feature(bi);if(wt.needGeometry){const Ye=l.toEvaluationFeature(zi,!0);if(!wt.filter(new l.EvaluationParameters(this.tileID.overscaledZ),Ye,this.tileID.canonical))continue}else if(!wt.filter(new l.EvaluationParameters(this.tileID.overscaledZ),zi))continue;const Be=se.getId(zi,Ae),pt=new l.GeoJSONFeature(zi,Mt,fn,Qn,Be);pt.tile=ei,h.push(pt)}}hasData(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state}patternsLoaded(){return this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length}setExpiryData(h){const k=this.expirationTime;if(h.cacheControl){const se=l.parseCacheControl(h.cacheControl);se["max-age"]&&(this.expirationTime=Date.now()+1e3*se["max-age"])}else h.expires&&(this.expirationTime=new Date(h.expires).getTime());if(this.expirationTime){const se=Date.now();let de=!1;if(this.expirationTime>se)de=!1;else if(k)if(this.expirationTime<k)de=!0;else{const Ae=this.expirationTime-k;Ae?this.expirationTime=se+Math.max(Ae,3e4):de=!0}else de=!0;de?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}}getExpiryTimeout(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)}setFeatureState(h,k){if(!this.latestFeatureIndex||!this.latestFeatureIndex.rawTileData||0===Object.keys(h).length)return;const se=this.latestFeatureIndex.loadVTLayers();for(const de in this.buckets){if(!k.style.hasLayer(de))continue;const Ae=this.buckets[de],Ct=Ae.layers[0].sourceLayer||"_geojsonTileLayer",wt=se[Ct],Mt=h[Ct];if(!wt||!Mt||0===Object.keys(Mt).length)continue;Ae.update(Mt,wt,this.imageAtlas&&this.imageAtlas.patternPositions||{});const fn=k&&k.style&&k.style.getLayer(de);fn&&(this.queryPadding=Math.max(this.queryPadding,fn.queryRadius(Ae)))}}holdingForFade(){return void 0!==this.symbolFadeHoldUntil}symbolFadeFinished(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<l.browser.now()}clearFadeHold(){this.symbolFadeHoldUntil=void 0}setHoldDuration(h){this.symbolFadeHoldUntil=l.browser.now()+h}setDependencies(h,k){const se={};for(const de of k)se[de]=!0;this.dependencies[h]=se}hasDependency(h,k){for(const se of h){const de=this.dependencies[se];if(de)for(const Ae of k)if(de[Ae])return!0}return!1}}class ti{constructor(h,k){this.max=h,this.onRemove=k,this.reset()}reset(){for(const h in this.data)for(const k of this.data[h])k.timeout&&clearTimeout(k.timeout),this.onRemove(k.value);return this.data={},this.order=[],this}add(h,k,se){const de=h.wrapped().key;void 0===this.data[de]&&(this.data[de]=[]);const Ae={value:k,timeout:void 0};if(void 0!==se&&(Ae.timeout=setTimeout(()=>{this.remove(h,Ae)},se)),this.data[de].push(Ae),this.order.push(de),this.order.length>this.max){const Ct=this._getAndRemoveByKey(this.order[0]);Ct&&this.onRemove(Ct)}return this}has(h){return h.wrapped().key in this.data}getAndRemove(h){return this.has(h)?this._getAndRemoveByKey(h.wrapped().key):null}_getAndRemoveByKey(h){const k=this.data[h].shift();return k.timeout&&clearTimeout(k.timeout),0===this.data[h].length&&delete this.data[h],this.order.splice(this.order.indexOf(h),1),k.value}getByKey(h){const k=this.data[h];return k?k[0].value:null}get(h){return this.has(h)?this.data[h.wrapped().key][0].value:null}remove(h,k){if(!this.has(h))return this;const se=h.wrapped().key,de=void 0===k?0:this.data[se].indexOf(k),Ae=this.data[se][de];return this.data[se].splice(de,1),Ae.timeout&&clearTimeout(Ae.timeout),0===this.data[se].length&&delete this.data[se],this.onRemove(Ae.value),this.order.splice(this.order.indexOf(se),1),this}setMaxSize(h){for(this.max=h;this.order.length>this.max;){const k=this._getAndRemoveByKey(this.order[0]);k&&this.onRemove(k)}return this}filter(h){const k=[];for(const se in this.data)for(const de of this.data[se])h(de.value)||k.push(de);for(const se of k)this.remove(se.value.tileID,se)}}class Xt{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(h,k,se){const de=String(k);if(this.stateChanges[h]=this.stateChanges[h]||{},this.stateChanges[h][de]=this.stateChanges[h][de]||{},l.extend(this.stateChanges[h][de],se),null===this.deletedStates[h]){this.deletedStates[h]={};for(const Ae in this.state[h])Ae!==de&&(this.deletedStates[h][Ae]=null)}else if(this.deletedStates[h]&&null===this.deletedStates[h][de]){this.deletedStates[h][de]={};for(const Ae in this.state[h][de])se[Ae]||(this.deletedStates[h][de][Ae]=null)}else for(const Ae in se)this.deletedStates[h]&&this.deletedStates[h][de]&&null===this.deletedStates[h][de][Ae]&&delete this.deletedStates[h][de][Ae]}removeFeatureState(h,k,se){if(null===this.deletedStates[h])return;const de=String(k);if(this.deletedStates[h]=this.deletedStates[h]||{},se&&void 0!==k)null!==this.deletedStates[h][de]&&(this.deletedStates[h][de]=this.deletedStates[h][de]||{},this.deletedStates[h][de][se]=null);else if(void 0!==k)if(this.stateChanges[h]&&this.stateChanges[h][de])for(se in this.deletedStates[h][de]={},this.stateChanges[h][de])this.deletedStates[h][de][se]=null;else this.deletedStates[h][de]=null;else this.deletedStates[h]=null}getState(h,k){const se=String(k),de=l.extend({},(this.state[h]||{})[se],(this.stateChanges[h]||{})[se]);if(null===this.deletedStates[h])return{};if(this.deletedStates[h]){const Ae=this.deletedStates[h][k];if(null===Ae)return{};for(const Ct in Ae)delete de[Ct]}return de}initializeTileState(h,k){h.setFeatureState(this.state,k)}coalesceChanges(h,k){const se={};for(const de in this.stateChanges){this.state[de]=this.state[de]||{};const Ae={};for(const Ct in this.stateChanges[de])this.state[de][Ct]||(this.state[de][Ct]={}),l.extend(this.state[de][Ct],this.stateChanges[de][Ct]),Ae[Ct]=this.state[de][Ct];se[de]=Ae}for(const de in this.deletedStates){this.state[de]=this.state[de]||{};const Ae={};if(null===this.deletedStates[de])for(const Ct in this.state[de])Ae[Ct]={},this.state[de][Ct]={};else for(const Ct in this.deletedStates[de]){if(null===this.deletedStates[de][Ct])this.state[de][Ct]={};else for(const wt of Object.keys(this.deletedStates[de][Ct]))delete this.state[de][Ct][wt];Ae[Ct]=this.state[de][Ct]}se[de]=se[de]||{},l.extend(se[de],Ae)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(se).length)for(const de in h)h[de].setFeatureState(se,k)}}class Je extends l.Evented{constructor(h,k,se){super(),this.id=h,this.dispatcher=se,this.on("data",de=>{"source"===de.dataType&&"metadata"===de.sourceDataType&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&"source"===de.dataType&&"content"===de.sourceDataType&&(this.reload(),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=((de,Ae,Ct,wt)=>{const Mt=new(ye(Ae.type))(de,Ae,Ct,wt);if(Mt.id!==de)throw new Error(`Expected Source id to be ${de} instead of ${Mt.id}`);return Mt})(h,k,se,this),this._tiles={},this._cache=new ti(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new Xt,this._didEmitContent=!1,this._updated=!1}onAdd(h){this.map=h,this._maxTileCacheSize=h?h._maxTileCacheSize:null,this._maxTileCacheZoomLevels=h?h._maxTileCacheZoomLevels:null,this._source&&this._source.onAdd&&this._source.onAdd(h)}onRemove(h){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(h)}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if(!(void 0===this.used&&void 0===this.usedForTerrain||this.used||this.usedForTerrain))return!0;if(!this._updated)return!1;for(const h in this._tiles){const k=this._tiles[h];if("loaded"!==k.state&&"errored"!==k.state)return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;const h=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,h&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(h,k){return this._source.loadTile(h,k)}_unloadTile(h){if(this._source.unloadTile)return this._source.unloadTile(h,()=>{})}_abortTile(h){this._source.abortTile&&this._source.abortTile(h,()=>{}),this._source.fire(new l.Event("dataabort",{tile:h,coord:h.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(h){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(const k in this._tiles){const se=this._tiles[k];se.upload(h),se.prepare(this.map.style.imageManager)}}getIds(){return Object.values(this._tiles).map(h=>h.tileID).sort(dt).map(h=>h.key)}getRenderableIds(h){const k=[];for(const se in this._tiles)this._isIdRenderable(se,h)&&k.push(this._tiles[se]);return h?k.sort((se,de)=>{const Ae=se.tileID,Ct=de.tileID,wt=new l.Point(Ae.canonical.x,Ae.canonical.y)._rotate(this.transform.angle),Mt=new l.Point(Ct.canonical.x,Ct.canonical.y)._rotate(this.transform.angle);return Ae.overscaledZ-Ct.overscaledZ||Mt.y-wt.y||Mt.x-wt.x}).map(se=>se.tileID.key):k.map(se=>se.tileID).sort(dt).map(se=>se.key)}hasRenderableParent(h){const k=this.findLoadedParent(h,0);return!!k&&this._isIdRenderable(k.tileID.key)}_isIdRenderable(h,k){return this._tiles[h]&&this._tiles[h].hasData()&&!this._coveredTiles[h]&&(k||!this._tiles[h].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(const h in this._tiles)"errored"!==this._tiles[h].state&&this._reloadTile(h,"reloading")}}_reloadTile(h,k){const se=this._tiles[h];se&&("loading"!==se.state&&(se.state=k),this._loadTile(se,this._tileLoaded.bind(this,se,h,k)))}_tileLoaded(h,k,se,de){if(de)return h.state="errored",void(404!==de.status?this._source.fire(new l.ErrorEvent(de,{tile:h})):this.update(this.transform,this.terrain));h.timeAdded=l.browser.now(),"expired"===se&&(h.refreshedUponExpiration=!0),this._setTileReloadTimer(k,h),"raster-dem"===this.getSource().type&&h.dem&&this._backfillDEM(h),this._state.initializeTileState(h,this.map?this.map.painter:null),h.aborted||this._source.fire(new l.Event("data",{dataType:"source",tile:h,coord:h.tileID}))}_backfillDEM(h){const k=this.getRenderableIds();for(let de=0;de<k.length;de++){const Ae=k[de];if(h.neighboringTiles&&h.neighboringTiles[Ae]){const Ct=this.getTileByID(Ae);se(h,Ct),se(Ct,h)}}function se(de,Ae){de.needsHillshadePrepare=!0,de.needsTerrainPrepare=!0;let Ct=Ae.tileID.canonical.x-de.tileID.canonical.x;const wt=Ae.tileID.canonical.y-de.tileID.canonical.y,Mt=Math.pow(2,de.tileID.canonical.z),fn=Ae.tileID.key;0===Ct&&0===wt||Math.abs(wt)>1||(Math.abs(Ct)>1&&(1===Math.abs(Ct+Mt)?Ct+=Mt:1===Math.abs(Ct-Mt)&&(Ct-=Mt)),Ae.dem&&de.dem&&(de.dem.backfillBorder(Ae.dem,Ct,wt),de.neighboringTiles&&de.neighboringTiles[fn]&&(de.neighboringTiles[fn].backfilled=!0)))}}getTile(h){return this.getTileByID(h.key)}getTileByID(h){return this._tiles[h]}_retainLoadedChildren(h,k,se,de){for(const Ae in this._tiles){let Ct=this._tiles[Ae];if(de[Ae]||!Ct.hasData()||Ct.tileID.overscaledZ<=k||Ct.tileID.overscaledZ>se)continue;let wt=Ct.tileID;for(;Ct&&Ct.tileID.overscaledZ>k+1;){const fn=Ct.tileID.scaledTo(Ct.tileID.overscaledZ-1);Ct=this._tiles[fn.key],Ct&&Ct.hasData()&&(wt=fn)}let Mt=wt;for(;Mt.overscaledZ>k;)if(Mt=Mt.scaledTo(Mt.overscaledZ-1),h[Mt.key]){de[wt.key]=wt;break}}}findLoadedParent(h,k){if(h.key in this._loadedParentTiles){const se=this._loadedParentTiles[h.key];return se&&se.tileID.overscaledZ>=k?se:null}for(let se=h.overscaledZ-1;se>=k;se--){const de=h.scaledTo(se),Ae=this._getLoadedTile(de);if(Ae)return Ae}}_getLoadedTile(h){const k=this._tiles[h.key];return k&&k.hasData()?k:this._cache.getByKey(h.wrapped().key)}updateCacheSize(h){const k=Math.ceil(h.width/this._source.tileSize)+1,se=Math.ceil(h.height/this._source.tileSize)+1,de=Math.floor(k*se*(null===this._maxTileCacheZoomLevels?l.config.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),Ae="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,de):de;this._cache.setMaxSize(Ae)}handleWrapJump(h){const k=Math.round((h-(void 0===this._prevLng?h:this._prevLng))/360);if(this._prevLng=h,k){const se={};for(const de in this._tiles){const Ae=this._tiles[de];Ae.tileID=Ae.tileID.unwrapTo(Ae.tileID.wrap+k),se[Ae.tileID.key]=Ae}this._tiles=se;for(const de in this._timers)clearTimeout(this._timers[de]),delete this._timers[de];for(const de in this._tiles)this._setTileReloadTimer(de,this._tiles[de])}}update(h,k){if(this.transform=h,this.terrain=k,!this._sourceLoaded||this._paused)return;let se;this.updateCacheSize(h),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?se=h.getVisibleUnwrappedCoordinates(this._source.tileID).map(Qn=>new l.OverscaledTileID(Qn.canonical.z,Qn.wrap,Qn.canonical.z,Qn.canonical.x,Qn.canonical.y)):(se=h.coveringTiles({tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:k}),this._source.hasTile&&(se=se.filter(Qn=>this._source.hasTile(Qn)))):se=[];const de=h.coveringZoomLevel(this._source),Ae=Math.max(de-Je.maxOverzooming,this._source.minzoom),Ct=Math.max(de+Je.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){const Qn={};for(const ei of se)if(ei.canonical.z>this._source.minzoom){const bi=ei.scaledTo(ei.canonical.z-1);Qn[bi.key]=bi;const zi=ei.scaledTo(Math.max(this._source.minzoom,Math.min(ei.canonical.z,5)));Qn[zi.key]=zi}se=se.concat(Object.values(Qn))}const wt=0===se.length&&!this._updated&&this._didEmitContent;this._updated=!0,wt&&this.fire(new l.Event("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));const Mt=this._updateRetainedTiles(se,de);if(Ie(this._source.type)){const Qn={},ei={},bi=Object.keys(Mt),zi=l.browser.now();for(const Be of bi){const pt=Mt[Be],Ye=this._tiles[Be];if(!Ye||0!==Ye.fadeEndTime&&Ye.fadeEndTime<=zi)continue;const ut=this.findLoadedParent(pt,Ae);ut&&(this._addTile(ut.tileID),Qn[ut.tileID.key]=ut.tileID),ei[Be]=pt}this._retainLoadedChildren(ei,de,Ct,Mt);for(const Be in Qn)Mt[Be]||(this._coveredTiles[Be]=!0,Mt[Be]=Qn[Be]);if(k){const Be={},pt={};for(const Ye of se)this._tiles[Ye.key].hasData()?Be[Ye.key]=Ye:pt[Ye.key]=Ye;for(const Ye in pt){const ut=pt[Ye].children(this._source.maxzoom);this._tiles[ut[0].key]&&this._tiles[ut[1].key]&&this._tiles[ut[2].key]&&this._tiles[ut[3].key]&&(Be[ut[0].key]=Mt[ut[0].key]=ut[0],Be[ut[1].key]=Mt[ut[1].key]=ut[1],Be[ut[2].key]=Mt[ut[2].key]=ut[2],Be[ut[3].key]=Mt[ut[3].key]=ut[3],delete pt[Ye])}for(const Ye in pt){const ut=this.findLoadedParent(pt[Ye],this._source.minzoom);if(ut){Be[ut.tileID.key]=Mt[ut.tileID.key]=ut.tileID;for(const Kt in Be)Be[Kt].isChildOf(ut.tileID)&&delete Be[Kt]}}for(const Ye in this._tiles)Be[Ye]||(this._coveredTiles[Ye]=!0)}}for(const Qn in Mt)this._tiles[Qn].clearFadeHold();const fn=l.keysDifference(this._tiles,Mt);for(const Qn of fn){const ei=this._tiles[Qn];ei.hasSymbolBuckets&&!ei.holdingForFade()?ei.setHoldDuration(this.map._fadeDuration):ei.hasSymbolBuckets&&!ei.symbolFadeFinished()||this._removeTile(Qn)}this._updateLoadedParentTileCache()}releaseSymbolFadeTiles(){for(const h in this._tiles)this._tiles[h].holdingForFade()&&this._removeTile(h)}_updateRetainedTiles(h,k){const se={},de={},Ae=Math.max(k-Je.maxOverzooming,this._source.minzoom),Ct=Math.max(k+Je.maxUnderzooming,this._source.minzoom),wt={};for(const Mt of h){const fn=this._addTile(Mt);se[Mt.key]=Mt,fn.hasData()||k<this._source.maxzoom&&(wt[Mt.key]=Mt)}this._retainLoadedChildren(wt,k,Ct,se);for(const Mt of h){let fn=this._tiles[Mt.key];if(fn.hasData())continue;if(k+1>this._source.maxzoom){const ei=Mt.children(this._source.maxzoom)[0],bi=this.getTile(ei);if(bi&&bi.hasData()){se[ei.key]=ei;continue}}else{const ei=Mt.children(this._source.maxzoom);if(se[ei[0].key]&&se[ei[1].key]&&se[ei[2].key]&&se[ei[3].key])continue}let Qn=fn.wasRequested();for(let ei=Mt.overscaledZ-1;ei>=Ae;--ei){const bi=Mt.scaledTo(ei);if(de[bi.key])break;if(de[bi.key]=!0,fn=this.getTile(bi),!fn&&Qn&&(fn=this._addTile(bi)),fn){const zi=fn.hasData();if((Qn||zi)&&(se[bi.key]=bi),Qn=fn.wasRequested(),zi)break}}}return se}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(const h in this._tiles){const k=[];let se,de=this._tiles[h].tileID;for(;de.overscaledZ>0;){if(de.key in this._loadedParentTiles){se=this._loadedParentTiles[de.key];break}k.push(de.key);const Ae=de.scaledTo(de.overscaledZ-1);if(se=this._getLoadedTile(Ae),se)break;de=Ae}for(const Ae of k)this._loadedParentTiles[Ae]=se}}_addTile(h){let k=this._tiles[h.key];if(k)return k;k=this._cache.getAndRemove(h),k&&(this._setTileReloadTimer(h.key,k),k.tileID=h,this._state.initializeTileState(k,this.map?this.map.painter:null),this._cacheTimers[h.key]&&(clearTimeout(this._cacheTimers[h.key]),delete this._cacheTimers[h.key],this._setTileReloadTimer(h.key,k)));const se=k;return k||(k=new Rn(h,this._source.tileSize*h.overscaleFactor()),this._loadTile(k,this._tileLoaded.bind(this,k,h.key,k.state))),k.uses++,this._tiles[h.key]=k,se||this._source.fire(new l.Event("dataloading",{tile:k,coord:k.tileID,dataType:"source"})),k}_setTileReloadTimer(h,k){h in this._timers&&(clearTimeout(this._timers[h]),delete this._timers[h]);const se=k.getExpiryTimeout();se&&(this._timers[h]=setTimeout(()=>{this._reloadTile(h,"expired"),delete this._timers[h]},se))}_removeTile(h){const k=this._tiles[h];k&&(k.uses--,delete this._tiles[h],this._timers[h]&&(clearTimeout(this._timers[h]),delete this._timers[h]),k.uses>0||(k.hasData()&&"reloading"!==k.state?this._cache.add(k.tileID,k,k.getExpiryTimeout()):(k.aborted=!0,this._abortTile(k),this._unloadTile(k))))}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(const h in this._tiles)this._removeTile(h);this._cache.reset()}tilesIn(h,k,se){const de=[],Ae=this.transform;if(!Ae)return de;const Ct=se?Ae.getCameraQueryGeometry(h):h,wt=h.map(Be=>Ae.pointCoordinate(Be,this.terrain)),Mt=Ct.map(Be=>Ae.pointCoordinate(Be,this.terrain)),fn=this.getIds();let Qn=1/0,ei=1/0,bi=-1/0,zi=-1/0;for(const Be of Mt)Qn=Math.min(Qn,Be.x),ei=Math.min(ei,Be.y),bi=Math.max(bi,Be.x),zi=Math.max(zi,Be.y);for(let Be=0;Be<fn.length;Be++){const pt=this._tiles[fn[Be]];if(pt.holdingForFade())continue;const Ye=pt.tileID,ut=Math.pow(2,Ae.zoom-pt.tileID.overscaledZ),Kt=k*pt.queryPadding*l.EXTENT/pt.tileSize/ut,en=[Ye.getTilePoint(new l.MercatorCoordinate(Qn,ei)),Ye.getTilePoint(new l.MercatorCoordinate(bi,zi))];if(en[0].x-Kt<l.EXTENT&&en[0].y-Kt<l.EXTENT&&en[1].x+Kt>=0&&en[1].y+Kt>=0){const qn=wt.map(gi=>Ye.getTilePoint(gi)),hi=Mt.map(gi=>Ye.getTilePoint(gi));de.push({tile:pt,tileID:Ye,queryGeometry:qn,cameraQueryGeometry:hi,scale:ut})}}return de}getVisibleCoordinates(h){const k=this.getRenderableIds(h).map(se=>this._tiles[se].tileID);for(const se of k)se.posMatrix=this.transform.calculatePosMatrix(se.toUnwrapped());return k}hasTransition(){if(this._source.hasTransition())return!0;if(Ie(this._source.type)){const h=l.browser.now();for(const k in this._tiles)if(this._tiles[k].fadeEndTime>=h)return!0}return!1}setFeatureState(h,k,se){this._state.updateState(h=h||"_geojsonTileLayer",k,se)}removeFeatureState(h,k,se){this._state.removeFeatureState(h=h||"_geojsonTileLayer",k,se)}getFeatureState(h,k){return this._state.getState(h=h||"_geojsonTileLayer",k)}setDependencies(h,k,se){const de=this._tiles[h];de&&de.setDependencies(k,se)}reloadTilesForDependencies(h,k){for(const se in this._tiles)this._tiles[se].hasDependency(h,k)&&this._reloadTile(se,"reloading");this._cache.filter(se=>!se.hasDependency(h,k))}}function dt(xe,h){const k=Math.abs(2*xe.wrap)-+(xe.wrap<0),se=Math.abs(2*h.wrap)-+(h.wrap<0);return xe.overscaledZ-h.overscaledZ||se-k||h.canonical.y-xe.canonical.y||h.canonical.x-xe.canonical.x}function Ie(xe){return"raster"===xe||"image"===xe||"video"===xe}Je.maxOverzooming=10,Je.maxUnderzooming=3;const ot="mapboxgl_preloaded_worker_pool";class ct{constructor(){this.active={}}acquire(h){if(!this.workers)for(this.workers=[];this.workers.length<ct.workerCount;)this.workers.push(new Worker(l.config.WORKER_URL));return this.active[h]=!0,this.workers.slice()}release(h){delete this.active[h],0===this.numActive()&&(this.workers.forEach(k=>{k.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[ot]}numActive(){return Object.keys(this.active).length}}const tn=Math.floor(l.browser.hardwareConcurrency/2);let yi;function ni(){return yi||(yi=new ct),yi}ct.workerCount=l.isSafari(globalThis)?Math.max(Math.min(tn,3),1):1;class sn{constructor(h,k){this.reset(h,k)}reset(h,k){this.points=h||[],this._distances=[0];for(let se=1;se<this.points.length;se++)this._distances[se]=this._distances[se-1]+this.points[se].dist(this.points[se-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(k||0,.5*this.length),this.paddedLength=this.length-2*this.padding}lerp(h){if(1===this.points.length)return this.points[0];h=l.clamp(h,0,1);let k=1,se=this._distances[k];const de=h*this.paddedLength+this.padding;for(;se<de&&k<this._distances.length;)se=this._distances[++k];const Ae=k-1,Ct=this._distances[Ae],wt=se-Ct,Mt=wt>0?(de-Ct)/wt:0;return this.points[Ae].mult(1-Mt).add(this.points[k].mult(Mt))}}function bn(xe,h){let k=!0;return"always"===xe||"never"!==xe&&"never"!==h||(k=!1),k}class vt{constructor(h,k,se){const de=this.boxCells=[],Ae=this.circleCells=[];this.xCellCount=Math.ceil(h/se),this.yCellCount=Math.ceil(k/se);for(let Ct=0;Ct<this.xCellCount*this.yCellCount;Ct++)de.push([]),Ae.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=h,this.height=k,this.xScale=this.xCellCount/h,this.yScale=this.yCellCount/k,this.boxUid=0,this.circleUid=0}keysLength(){return this.boxKeys.length+this.circleKeys.length}insert(h,k,se,de,Ae){this._forEachCell(k,se,de,Ae,this._insertBoxCell,this.boxUid++),this.boxKeys.push(h),this.bboxes.push(k),this.bboxes.push(se),this.bboxes.push(de),this.bboxes.push(Ae)}insertCircle(h,k,se,de){this._forEachCell(k-de,se-de,k+de,se+de,this._insertCircleCell,this.circleUid++),this.circleKeys.push(h),this.circles.push(k),this.circles.push(se),this.circles.push(de)}_insertBoxCell(h,k,se,de,Ae,Ct){this.boxCells[Ae].push(Ct)}_insertCircleCell(h,k,se,de,Ae,Ct){this.circleCells[Ae].push(Ct)}_query(h,k,se,de,Ae,Ct,wt){if(se<0||h>this.width||de<0||k>this.height)return[];const Mt=[];if(h<=0&&k<=0&&this.width<=se&&this.height<=de){if(Ae)return[{key:null,x1:h,y1:k,x2:se,y2:de}];for(let fn=0;fn<this.boxKeys.length;fn++)Mt.push({key:this.boxKeys[fn],x1:this.bboxes[4*fn],y1:this.bboxes[4*fn+1],x2:this.bboxes[4*fn+2],y2:this.bboxes[4*fn+3]});for(let fn=0;fn<this.circleKeys.length;fn++){const Qn=this.circles[3*fn],ei=this.circles[3*fn+1],bi=this.circles[3*fn+2];Mt.push({key:this.circleKeys[fn],x1:Qn-bi,y1:ei-bi,x2:Qn+bi,y2:ei+bi})}}else this._forEachCell(h,k,se,de,this._queryCell,Mt,{hitTest:Ae,overlapMode:Ct,seenUids:{box:{},circle:{}}},wt);return Mt}query(h,k,se,de){return this._query(h,k,se,de,!1,null)}hitTest(h,k,se,de,Ae,Ct){return this._query(h,k,se,de,!0,Ae,Ct).length>0}hitTestCircle(h,k,se,de,Ae){const Ct=h-se,wt=h+se,Mt=k-se,fn=k+se;if(wt<0||Ct>this.width||fn<0||Mt>this.height)return!1;const Qn=[];return this._forEachCell(Ct,Mt,wt,fn,this._queryCellCircle,Qn,{hitTest:!0,overlapMode:de,circle:{x:h,y:k,radius:se},seenUids:{box:{},circle:{}}},Ae),Qn.length>0}_queryCell(h,k,se,de,Ae,Ct,wt,Mt){const{seenUids:fn,hitTest:Qn,overlapMode:ei}=wt,bi=this.boxCells[Ae];if(null!==bi){const Be=this.bboxes;for(const pt of bi)if(!fn.box[pt]){fn.box[pt]=!0;const Ye=4*pt,ut=this.boxKeys[pt];if(h<=Be[Ye+2]&&k<=Be[Ye+3]&&se>=Be[Ye+0]&&de>=Be[Ye+1]&&(!Mt||Mt(ut))&&(!Qn||!bn(ei,ut.overlapMode))&&(Ct.push({key:ut,x1:Be[Ye],y1:Be[Ye+1],x2:Be[Ye+2],y2:Be[Ye+3]}),Qn))return!0}}const zi=this.circleCells[Ae];if(null!==zi){const Be=this.circles;for(const pt of zi)if(!fn.circle[pt]){fn.circle[pt]=!0;const Ye=3*pt,ut=this.circleKeys[pt];if(this._circleAndRectCollide(Be[Ye],Be[Ye+1],Be[Ye+2],h,k,se,de)&&(!Mt||Mt(ut))&&(!Qn||!bn(ei,ut.overlapMode))){const Kt=Be[Ye],en=Be[Ye+1],qn=Be[Ye+2];if(Ct.push({key:ut,x1:Kt-qn,y1:en-qn,x2:Kt+qn,y2:en+qn}),Qn)return!0}}}return!1}_queryCellCircle(h,k,se,de,Ae,Ct,wt,Mt){const{circle:fn,seenUids:Qn,overlapMode:ei}=wt,bi=this.boxCells[Ae];if(null!==bi){const Be=this.bboxes;for(const pt of bi)if(!Qn.box[pt]){Qn.box[pt]=!0;const Ye=4*pt,ut=this.boxKeys[pt];if(this._circleAndRectCollide(fn.x,fn.y,fn.radius,Be[Ye+0],Be[Ye+1],Be[Ye+2],Be[Ye+3])&&(!Mt||Mt(ut))&&!bn(ei,ut.overlapMode))return Ct.push(!0),!0}}const zi=this.circleCells[Ae];if(null!==zi){const Be=this.circles;for(const pt of zi)if(!Qn.circle[pt]){Qn.circle[pt]=!0;const Ye=3*pt,ut=this.circleKeys[pt];if(this._circlesCollide(Be[Ye],Be[Ye+1],Be[Ye+2],fn.x,fn.y,fn.radius)&&(!Mt||Mt(ut))&&!bn(ei,ut.overlapMode))return Ct.push(!0),!0}}}_forEachCell(h,k,se,de,Ae,Ct,wt,Mt){const fn=this._convertToXCellCoord(h),Qn=this._convertToYCellCoord(k),ei=this._convertToXCellCoord(se),bi=this._convertToYCellCoord(de);for(let zi=fn;zi<=ei;zi++)for(let Be=Qn;Be<=bi;Be++)if(Ae.call(this,h,k,se,de,this.xCellCount*Be+zi,Ct,wt,Mt))return}_convertToXCellCoord(h){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(h*this.xScale)))}_convertToYCellCoord(h){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(h*this.yScale)))}_circlesCollide(h,k,se,de,Ae,Ct){const wt=de-h,Mt=Ae-k,fn=se+Ct;return fn*fn>wt*wt+Mt*Mt}_circleAndRectCollide(h,k,se,de,Ae,Ct,wt){const Mt=(Ct-de)/2,fn=Math.abs(h-(de+Mt));if(fn>Mt+se)return!1;const Qn=(wt-Ae)/2,ei=Math.abs(k-(Ae+Qn));if(ei>Qn+se)return!1;if(fn<=Mt||ei<=Qn)return!0;const bi=fn-Mt,zi=ei-Qn;return bi*bi+zi*zi<=se*se}}function nn(xe,h,k,se,de){const Ae=l.create();return h?(l.scale(Ae,Ae,[1/de,1/de,1]),k||l.rotateZ(Ae,Ae,se.angle)):l.multiply(Ae,se.labelPlaneMatrix,xe),Ae}function rn(xe,h,k,se,de){if(h){const Ae=l.clone(xe);return l.scale(Ae,Ae,[de,de,1]),k||l.rotateZ(Ae,Ae,-se.angle),Ae}return se.glCoordMatrix}function ii(xe,h,k){let se;k?(se=[xe.x,xe.y,k(xe.x,xe.y),1],l.transformMat4(se,se,h)):(se=[xe.x,xe.y,0,1],Ve(se,se,h));const de=se[3];return{point:new l.Point(se[0]/de,se[1]/de),signedDistanceFromCamera:de}}function Oo(xe,h){return.5+xe/h*.5}function no(xe,h){const k=xe[0]/xe[3],se=xe[1]/xe[3];return k>=-h[0]&&k<=h[0]&&se>=-h[1]&&se<=h[1]}function Li(xe,h,k,se,de,Ae,Ct,wt,Mt,fn){const Qn=se?xe.textSizeData:xe.iconSizeData,ei=l.evaluateSizeForZoom(Qn,k.transform.zoom),bi=[256/k.width*2+1,256/k.height*2+1],zi=se?xe.text.dynamicLayoutVertexArray:xe.icon.dynamicLayoutVertexArray;zi.clear();const Be=xe.lineVertexArray,pt=se?xe.text.placedSymbolArray:xe.icon.placedSymbolArray,Ye=k.transform.width/k.transform.height;let ut=!1;for(let Kt=0;Kt<pt.length;Kt++){const en=pt.get(Kt);if(en.hidden||en.writingMode===l.WritingMode.vertical&&!ut){$e(en.numGlyphs,zi);continue}let qn;if(ut=!1,fn?(qn=[en.anchorX,en.anchorY,fn(en.anchorX,en.anchorY),1],l.transformMat4(qn,qn,h)):(qn=[en.anchorX,en.anchorY,0,1],Ve(qn,qn,h)),!no(qn,bi)){$e(en.numGlyphs,zi);continue}const hi=Oo(k.transform.cameraToCenterDistance,qn[3]),gi=l.evaluateSizeForFeature(Qn,ei,en),ko=Ct?gi/hi:gi*hi,Wo=new l.Point(en.anchorX,en.anchorY),tr=ii(Wo,de,fn).point,br={projections:{},offsets:{}},fa=_i(en,ko,!1,wt,h,de,Ae,xe.glyphOffsetArray,Be,zi,tr,Wo,br,Ye,Mt,fn);ut=fa.useVertical,(fa.notEnoughRoom||ut||fa.needsFlipping&&_i(en,ko,!0,wt,h,de,Ae,xe.glyphOffsetArray,Be,zi,tr,Wo,br,Ye,Mt,fn).notEnoughRoom)&&$e(en.numGlyphs,zi)}se?xe.text.dynamicLayoutVertexBuffer.updateData(zi):xe.icon.dynamicLayoutVertexBuffer.updateData(zi)}function ji(xe,h,k,se,de,Ae,Ct,wt,Mt,fn,Qn,ei,bi){const zi=wt.glyphStartIndex+wt.numGlyphs,Be=wt.lineStartIndex,pt=wt.lineStartIndex+wt.lineLength,Ye=h.getoffsetX(wt.glyphStartIndex),ut=h.getoffsetX(zi-1),Kt=He(xe*Ye,k,se,de,Ae,Ct,wt.segment,Be,pt,Mt,fn,Qn,ei,bi);if(!Kt)return null;const en=He(xe*ut,k,se,de,Ae,Ct,wt.segment,Be,pt,Mt,fn,Qn,ei,bi);return en?{first:Kt,last:en}:null}function Ii(xe,h,k,se){return xe===l.WritingMode.horizontal&&Math.abs(k.y-h.y)>Math.abs(k.x-h.x)*se?{useVertical:!0}:(xe===l.WritingMode.vertical?h.y<k.y:h.x>k.x)?{needsFlipping:!0}:null}function _i(xe,h,k,se,de,Ae,Ct,wt,Mt,fn,Qn,ei,bi,zi,Be,pt){const Ye=h/24,ut=xe.lineOffsetX*Ye,Kt=xe.lineOffsetY*Ye;let en;if(xe.numGlyphs>1){const qn=xe.glyphStartIndex+xe.numGlyphs,hi=xe.lineStartIndex,gi=xe.lineStartIndex+xe.lineLength,ko=ji(Ye,wt,ut,Kt,k,Qn,ei,xe,Mt,Ae,bi,Be,pt);if(!ko)return{notEnoughRoom:!0};const Wo=ii(ko.first.point,Ct,pt).point,tr=ii(ko.last.point,Ct,pt).point;if(se&&!k){const br=Ii(xe.writingMode,Wo,tr,zi);if(br)return br}en=[ko.first];for(let br=xe.glyphStartIndex+1;br<qn-1;br++)en.push(He(Ye*wt.getoffsetX(br),ut,Kt,k,Qn,ei,xe.segment,hi,gi,Mt,Ae,bi,Be,pt));en.push(ko.last)}else{if(se&&!k){const hi=ii(ei,de,pt).point,gi=xe.lineStartIndex+xe.segment+1,ko=new l.Point(Mt.getx(gi),Mt.gety(gi)),Wo=ii(ko,de,pt),tr=Wo.signedDistanceFromCamera>0?Wo.point:En(ei,ko,hi,1,de,pt),br=Ii(xe.writingMode,hi,tr,zi);if(br)return br}const qn=He(Ye*wt.getoffsetX(xe.glyphStartIndex),ut,Kt,k,Qn,ei,xe.segment,xe.lineStartIndex,xe.lineStartIndex+xe.lineLength,Mt,Ae,bi,Be,pt);if(!qn)return{notEnoughRoom:!0};en=[qn]}for(const qn of en)l.addDynamicAttributes(fn,qn.point,qn.angle);return{}}function En(xe,h,k,se,de,Ae){const Ct=ii(xe.add(xe.sub(h)._unit()),de,Ae).point,wt=k.sub(Ct);return k.add(wt._mult(se/wt.mag()))}function co(xe,h){const{projectionCache:k,lineVertexArray:se,labelPlaneMatrix:de,tileAnchorPoint:Ae,distanceFromAnchor:Ct,getElevation:wt,previousVertex:Mt,direction:fn,absOffsetX:Qn}=h;if(k.projections[xe])return k.projections[xe];const ei=new l.Point(se.getx(xe),se.gety(xe)),bi=ii(ei,de,wt);if(bi.signedDistanceFromCamera>0)return k.projections[xe]=bi.point,bi.point;const zi=xe-fn;return En(0===Ct?Ae:new l.Point(se.getx(zi),se.gety(zi)),ei,Mt,Qn-Ct+1,de,wt)}function yn(xe,h,k){return xe._unit()._perp()._mult(h*k)}function ln(xe,h,k,se,de,Ae,Ct,wt){const{projectionCache:Mt,direction:fn}=wt;if(Mt.offsets[xe])return Mt.offsets[xe];const Qn=k.add(h);if(xe+fn<se||xe+fn>=de)return Mt.offsets[xe]=Qn,Qn;const ei=co(xe+fn,wt),bi=yn(ei.sub(k),Ct,fn),zi=k.add(bi),Be=ei.add(bi);return Mt.offsets[xe]=l.findLineIntersection(Ae,Qn,zi,Be)||Qn,Mt.offsets[xe]}function He(xe,h,k,se,de,Ae,Ct,wt,Mt,fn,Qn,ei,bi,zi){const Be=se?xe-h:xe+h;let pt=Be>0?1:-1,Ye=0;se&&(pt*=-1,Ye=Math.PI),pt<0&&(Ye+=Math.PI);let ut,Kt,en=pt>0?wt+Ct:wt+Ct+1,qn=de,hi=de,gi=0,ko=0;const Wo=Math.abs(Be),tr=[];let br;for(;gi+ko<=Wo;){if(en+=pt,en<wt||en>=Mt)return null;gi+=ko,hi=qn,Kt=ut;const $r={projectionCache:ei,lineVertexArray:fn,labelPlaneMatrix:Qn,tileAnchorPoint:Ae,distanceFromAnchor:gi,getElevation:zi,previousVertex:hi,direction:pt,absOffsetX:Wo};if(qn=co(en,$r),0===k)tr.push(hi),br=qn.sub(hi);else{let Rr;const Xr=qn.sub(hi);Rr=0===Xr.mag()?yn(co(en+pt,$r).sub(qn),k,pt):yn(Xr,k,pt),Kt||(Kt=hi.add(Rr)),ut=ln(en,Rr,qn,wt,Mt,Kt,k,$r),tr.push(Kt),br=ut.sub(Kt)}ko=br.mag()}const fa=br._mult((Wo-gi)/ko)._add(Kt||hi),ga=Ye+Math.atan2(qn.y-hi.y,qn.x-hi.x);return tr.push(fa),{point:fa,angle:bi?ga:0,path:tr}}const rt=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function $e(xe,h){for(let k=0;k<xe;k++){const se=h.length;h.resize(se+4),h.float32.set(rt,3*se)}}function Ve(xe,h,k){const se=h[0],de=h[1];return xe[0]=k[0]*se+k[4]*de+k[12],xe[1]=k[1]*se+k[5]*de+k[13],xe[3]=k[3]*se+k[7]*de+k[15],xe}const Ce=100;class tt{constructor(h,k=new vt(h.width+200,h.height+200,25),se=new vt(h.width+200,h.height+200,25)){this.transform=h,this.grid=k,this.ignoredGrid=se,this.pitchfactor=Math.cos(h._pitch)*h.cameraToCenterDistance,this.screenRightBoundary=h.width+Ce,this.screenBottomBoundary=h.height+Ce,this.gridRightBoundary=h.width+200,this.gridBottomBoundary=h.height+200,this.perspectiveRatioCutoff=.6}placeCollisionBox(h,k,se,de,Ae,Ct){const wt=this.projectAndGetPerspectiveRatio(de,h.anchorPointX,h.anchorPointY,Ct),Mt=se*wt.perspectiveRatio,fn=h.x1*Mt+wt.point.x,Qn=h.y1*Mt+wt.point.y,ei=h.x2*Mt+wt.point.x,bi=h.y2*Mt+wt.point.y;return!this.isInsideGrid(fn,Qn,ei,bi)||"always"!==k&&this.grid.hitTest(fn,Qn,ei,bi,k,Ae)||wt.perspectiveRatio<this.perspectiveRatioCutoff?{box:[],offscreen:!1}:{box:[fn,Qn,ei,bi],offscreen:this.isOffscreen(fn,Qn,ei,bi)}}placeCollisionCircles(h,k,se,de,Ae,Ct,wt,Mt,fn,Qn,ei,bi,zi,Be){const pt=[],Ye=new l.Point(k.anchorX,k.anchorY),ut=ii(Ye,Ct,Be),Kt=Oo(this.transform.cameraToCenterDistance,ut.signedDistanceFromCamera),en=(Qn?Ae/Kt:Ae*Kt)/l.ONE_EM,qn=ii(Ye,wt,Be).point,hi=ji(en,de,k.lineOffsetX*en,k.lineOffsetY*en,!1,qn,Ye,k,se,wt,{projections:{},offsets:{}},!1,Be);let gi=!1,ko=!1,Wo=!0;if(hi){const tr=.5*bi*Kt+zi,br=new l.Point(-100,-100),fa=new l.Point(this.screenRightBoundary,this.screenBottomBoundary),ga=new sn,$r=hi.first,Rr=hi.last;let Xr=[];for(let qa=$r.path.length-1;qa>=1;qa--)Xr.push($r.path[qa]);for(let qa=1;qa<Rr.path.length;qa++)Xr.push(Rr.path[qa]);const Es=2.5*tr;if(Mt){const qa=Xr.map(Qs=>ii(Qs,Mt,Be));Xr=qa.some(Qs=>Qs.signedDistanceFromCamera<=0)?[]:qa.map(Qs=>Qs.point)}let Ys=[];if(Xr.length>0){const qa=Xr[0].clone(),Qs=Xr[0].clone();for(let ic=1;ic<Xr.length;ic++)qa.x=Math.min(qa.x,Xr[ic].x),qa.y=Math.min(qa.y,Xr[ic].y),Qs.x=Math.max(Qs.x,Xr[ic].x),Qs.y=Math.max(Qs.y,Xr[ic].y);Ys=qa.x>=br.x&&Qs.x<=fa.x&&qa.y>=br.y&&Qs.y<=fa.y?[Xr]:Qs.x<br.x||qa.x>fa.x||Qs.y<br.y||qa.y>fa.y?[]:l.clipLine([Xr],br.x,br.y,fa.x,fa.y)}for(const qa of Ys){ga.reset(qa,.25*tr);let Qs=0;Qs=ga.length<=.5*tr?1:Math.ceil(ga.paddedLength/Es)+1;for(let ic=0;ic<Qs;ic++){const wl=ic/Math.max(Qs-1,1),md=ga.lerp(wl),Dc=md.x+Ce,yc=md.y+Ce;pt.push(Dc,yc,tr,0);const Wc=Dc-tr,im=yc-tr,Vl=Dc+tr,zc=yc+tr;if(Wo=Wo&&this.isOffscreen(Wc,im,Vl,zc),ko=ko||this.isInsideGrid(Wc,im,Vl,zc),"always"!==h&&this.grid.hitTestCircle(Dc,yc,tr,h,ei)&&(gi=!0,!fn))return{circles:[],offscreen:!1,collisionDetected:gi}}}}return{circles:!fn&&gi||!ko||Kt<this.perspectiveRatioCutoff?[]:pt,offscreen:Wo,collisionDetected:gi}}queryRenderedSymbols(h){if(0===h.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};const k=[];let se=1/0,de=1/0,Ae=-1/0,Ct=-1/0;for(const Qn of h){const ei=new l.Point(Qn.x+Ce,Qn.y+Ce);se=Math.min(se,ei.x),de=Math.min(de,ei.y),Ae=Math.max(Ae,ei.x),Ct=Math.max(Ct,ei.y),k.push(ei)}const wt=this.grid.query(se,de,Ae,Ct).concat(this.ignoredGrid.query(se,de,Ae,Ct)),Mt={},fn={};for(const Qn of wt){const ei=Qn.key;if(void 0===Mt[ei.bucketInstanceId]&&(Mt[ei.bucketInstanceId]={}),Mt[ei.bucketInstanceId][ei.featureIndex])continue;const bi=[new l.Point(Qn.x1,Qn.y1),new l.Point(Qn.x2,Qn.y1),new l.Point(Qn.x2,Qn.y2),new l.Point(Qn.x1,Qn.y2)];l.polygonIntersectsPolygon(k,bi)&&(Mt[ei.bucketInstanceId][ei.featureIndex]=!0,void 0===fn[ei.bucketInstanceId]&&(fn[ei.bucketInstanceId]=[]),fn[ei.bucketInstanceId].push(ei.featureIndex))}return fn}insertCollisionBox(h,k,se,de,Ae,Ct){(se?this.ignoredGrid:this.grid).insert({bucketInstanceId:de,featureIndex:Ae,collisionGroupID:Ct,overlapMode:k},h[0],h[1],h[2],h[3])}insertCollisionCircles(h,k,se,de,Ae,Ct){const wt=se?this.ignoredGrid:this.grid,Mt={bucketInstanceId:de,featureIndex:Ae,collisionGroupID:Ct,overlapMode:k};for(let fn=0;fn<h.length;fn+=4)wt.insertCircle(Mt,h[fn],h[fn+1],h[fn+2])}projectAndGetPerspectiveRatio(h,k,se,de){let Ae;return de?(Ae=[k,se,de(k,se),1],l.transformMat4(Ae,Ae,h)):(Ae=[k,se,0,1],Ve(Ae,Ae,h)),{point:new l.Point((Ae[0]/Ae[3]+1)/2*this.transform.width+Ce,(-Ae[1]/Ae[3]+1)/2*this.transform.height+Ce),perspectiveRatio:.5+this.transform.cameraToCenterDistance/Ae[3]*.5}}isOffscreen(h,k,se,de){return se<Ce||h>=this.screenRightBoundary||de<Ce||k>this.screenBottomBoundary}isInsideGrid(h,k,se,de){return se>=0&&h<this.gridRightBoundary&&de>=0&&k<this.gridBottomBoundary}getViewportMatrix(){const h=l.identity([]);return l.translate(h,h,[-100,-100,0]),h}}function ht(xe,h,k){return h*(l.EXTENT/(xe.tileSize*Math.pow(2,k-xe.tileID.overscaledZ)))}class Qt{constructor(h,k,se,de){this.opacity=h?Math.max(0,Math.min(1,h.opacity+(h.placed?k:-k))):de&&se?1:0,this.placed=se}isHidden(){return 0===this.opacity&&!this.placed}}class Un{constructor(h,k,se,de,Ae){this.text=new Qt(h?h.text:null,k,se,Ae),this.icon=new Qt(h?h.icon:null,k,de,Ae)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class Yt{constructor(h,k,se){this.text=h,this.icon=k,this.skipFade=se}}class Fn{constructor(){this.invProjMatrix=l.create(),this.viewportMatrix=l.create(),this.circles=[]}}class yt{constructor(h,k,se,de,Ae){this.bucketInstanceId=h,this.featureIndex=k,this.sourceLayerIndex=se,this.bucketIndex=de,this.tileID=Ae}}class Bt{constructor(h){this.crossSourceCollisions=h,this.maxGroupID=0,this.collisionGroups={}}get(h){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[h]){const k=++this.maxGroupID;this.collisionGroups[h]={ID:k,predicate:se=>se.collisionGroupID===k}}return this.collisionGroups[h]}}function li(xe,h,k,se,de){const{horizontalAlign:Ae,verticalAlign:Ct}=l.getAnchorAlignment(xe);return new l.Point(-(Ae-.5)*h+se[0]*de,-(Ct-.5)*k+se[1]*de)}function si(xe,h,k,se,de,Ae){const{x1:Ct,x2:wt,y1:Mt,y2:fn,anchorPointX:Qn,anchorPointY:ei}=xe,bi=new l.Point(h,k);return se&&bi._rotate(de?Ae:-Ae),{x1:Ct+bi.x,y1:Mt+bi.y,x2:wt+bi.x,y2:fn+bi.y,anchorPointX:Qn,anchorPointY:ei}}class oo{constructor(h,k,se,de,Ae){this.transform=h.clone(),this.terrain=k,this.collisionIndex=new tt(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=se,this.retainedQueryData={},this.collisionGroups=new Bt(de),this.collisionCircleArrays={},this.prevPlacement=Ae,Ae&&(Ae.prevPlacement=void 0),this.placedOrientations={}}getBucketParts(h,k,se,de){const Ae=se.getBucket(k),Ct=se.latestFeatureIndex;if(!Ae||!Ct||k.id!==Ae.layerIds[0])return;const wt=se.collisionBoxArray,Mt=Ae.layers[0].layout,fn=Math.pow(2,this.transform.zoom-se.tileID.overscaledZ),Qn=se.tileSize/l.EXTENT,ei=this.transform.calculatePosMatrix(se.tileID.toUnwrapped()),bi="map"===Mt.get("text-pitch-alignment"),zi="map"===Mt.get("text-rotation-alignment"),Be=ht(se,1,this.transform.zoom),pt=nn(ei,bi,zi,this.transform,Be);let Ye=null;if(bi){const Kt=rn(ei,bi,zi,this.transform,Be);Ye=l.multiply([],this.transform.labelPlaneMatrix,Kt)}this.retainedQueryData[Ae.bucketInstanceId]=new yt(Ae.bucketInstanceId,Ct,Ae.sourceLayerIndex,Ae.index,se.tileID);const ut={bucket:Ae,layout:Mt,posMatrix:ei,textLabelPlaneMatrix:pt,labelToScreenMatrix:Ye,scale:fn,textPixelRatio:Qn,holdingForFade:se.holdingForFade(),collisionBoxArray:wt,partiallyEvaluatedTextSize:l.evaluateSizeForZoom(Ae.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(Ae.sourceID)};if(de)for(const Kt of Ae.sortKeyRanges){const{sortKey:en,symbolInstanceStart:qn,symbolInstanceEnd:hi}=Kt;h.push({sortKey:en,symbolInstanceStart:qn,symbolInstanceEnd:hi,parameters:ut})}else h.push({symbolInstanceStart:0,symbolInstanceEnd:Ae.symbolInstances.length,parameters:ut})}attemptAnchorPlacement(h,k,se,de,Ae,Ct,wt,Mt,fn,Qn,ei,bi,zi,Be,pt,Ye){const ut=l.TextAnchorEnum[h.textAnchor],Kt=[h.textOffset0,h.textOffset1],en=li(ut,se,de,Kt,Ae),qn=this.collisionIndex.placeCollisionBox(si(k,en.x,en.y,Ct,wt,this.transform.angle),ei,Mt,fn,Qn.predicate,Ye);if((!pt||0!==this.collisionIndex.placeCollisionBox(si(pt,en.x,en.y,Ct,wt,this.transform.angle),ei,Mt,fn,Qn.predicate,Ye).box.length)&&qn.box.length>0){let hi;if(this.prevPlacement&&this.prevPlacement.variableOffsets[bi.crossTileID]&&this.prevPlacement.placements[bi.crossTileID]&&this.prevPlacement.placements[bi.crossTileID].text&&(hi=this.prevPlacement.variableOffsets[bi.crossTileID].anchor),0===bi.crossTileID)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[bi.crossTileID]={textOffset:Kt,width:se,height:de,anchor:ut,textBoxScale:Ae,prevAnchor:hi},this.markUsedJustification(zi,ut,bi,Be),zi.allowVerticalPlacement&&(this.markUsedOrientation(zi,Be,bi),this.placedOrientations[bi.crossTileID]=Be),{shift:en,placedGlyphBoxes:qn}}}placeLayerBucketPart(h,k,se){const{bucket:de,layout:Ae,posMatrix:Ct,textLabelPlaneMatrix:wt,labelToScreenMatrix:Mt,textPixelRatio:fn,holdingForFade:Qn,collisionBoxArray:ei,partiallyEvaluatedTextSize:bi,collisionGroup:zi}=h.parameters,Be=Ae.get("text-optional"),pt=Ae.get("icon-optional"),Ye=l.getOverlapMode(Ae,"text-overlap","text-allow-overlap"),ut="always"===Ye,Kt=l.getOverlapMode(Ae,"icon-overlap","icon-allow-overlap"),en="always"===Kt,qn="map"===Ae.get("text-rotation-alignment"),hi="map"===Ae.get("text-pitch-alignment"),gi="none"!==Ae.get("icon-text-fit"),ko="viewport-y"===Ae.get("symbol-z-order"),Wo=ut&&(en||!de.hasIconData()||pt),tr=en&&(ut||!de.hasTextData()||Be);!de.collisionArrays&&ei&&de.deserializeCollisionBoxes(ei);const br=this.retainedQueryData[de.bucketInstanceId].tileID,fa=this.terrain?($r,Rr)=>this.terrain.getElevation(br,$r,Rr):null,ga=($r,Rr)=>{var Xr,Es;if(k[$r.crossTileID])return;if(Qn)return void(this.placements[$r.crossTileID]=new Yt(!1,!1,!1));let Ys=!1,qa=!1,Qs=!0,ic=null,wl={box:null,offscreen:null},md={box:null,offscreen:null},Dc=null,yc=null,Wc=null,im=0,Vl=0,zc=0;Rr.textFeatureIndex?im=Rr.textFeatureIndex:$r.useRuntimeCollisionCircles&&(im=$r.featureIndex),Rr.verticalTextFeatureIndex&&(Vl=Rr.verticalTextFeatureIndex);const Il=Rr.textBox;if(Il){const Xl=pc=>{let Ul=l.WritingMode.horizontal;if(de.allowVerticalPlacement&&!pc&&this.prevPlacement){const Xc=this.prevPlacement.placedOrientations[$r.crossTileID];Xc&&(this.placedOrientations[$r.crossTileID]=Xc,Ul=Xc,this.markUsedOrientation(de,Ul,$r))}return Ul},uc=(pc,Ul)=>{if(de.allowVerticalPlacement&&$r.numVerticalGlyphVertices>0&&Rr.verticalTextBox){for(const Xc of de.writingModes)if(Xc===l.WritingMode.vertical?(wl=Ul(),md=wl):wl=pc(),wl&&wl.box&&wl.box.length)break}else wl=pc()},Oc=$r.textAnchorOffsetStartIndex,jc=$r.textAnchorOffsetEndIndex;if(jc===Oc){const pc=(Ul,Xc)=>{const ec=this.collisionIndex.placeCollisionBox(Ul,Ye,fn,Ct,zi.predicate,fa);return ec&&ec.box&&ec.box.length&&(this.markUsedOrientation(de,Xc,$r),this.placedOrientations[$r.crossTileID]=Xc),ec};uc(()=>pc(Il,l.WritingMode.horizontal),()=>{const Ul=Rr.verticalTextBox;return de.allowVerticalPlacement&&$r.numVerticalGlyphVertices>0&&Ul?pc(Ul,l.WritingMode.vertical):{box:null,offscreen:null}}),Xl(wl&&wl.box&&wl.box.length)}else{let pc=l.TextAnchorEnum[null===(Es=null===(Xr=this.prevPlacement)||void 0===Xr?void 0:Xr.variableOffsets[$r.crossTileID])||void 0===Es?void 0:Es.anchor];const Ul=(ec,vd,bd)=>{const Sd=ec.x2-ec.x1,Ru=ec.y2-ec.y1,mm=$r.textBoxScale,hu=gi&&"never"===Kt?vd:null;let Fd={box:[],offscreen:!1},tc="never"===Ye?1:2,Km="never";pc&&tc++;for(let um=0;um<tc;um++){for(let ad=Oc;ad<jc;ad++){const Zc=de.textAnchorOffsets.get(ad);if(pc&&Zc.textAnchor!==pc)continue;const Cd=this.attemptAnchorPlacement(Zc,ec,Sd,Ru,mm,qn,hi,fn,Ct,zi,Km,$r,de,bd,hu,fa);if(Cd&&(Fd=Cd.placedGlyphBoxes,Fd&&Fd.box&&Fd.box.length))return Ys=!0,ic=Cd.shift,Fd}pc?pc=null:Km=Ye}return Fd};uc(()=>Ul(Il,Rr.iconBox,l.WritingMode.horizontal),()=>{const ec=Rr.verticalTextBox;return de.allowVerticalPlacement&&!(wl&&wl.box&&wl.box.length)&&$r.numVerticalGlyphVertices>0&&ec?Ul(ec,Rr.verticalIconBox,l.WritingMode.vertical):{box:null,offscreen:null}}),wl&&(Ys=wl.box,Qs=wl.offscreen);const Xc=Xl(wl&&wl.box);if(!Ys&&this.prevPlacement){const ec=this.prevPlacement.variableOffsets[$r.crossTileID];ec&&(this.variableOffsets[$r.crossTileID]=ec,this.markUsedJustification(de,ec.anchor,$r,Xc))}}}if(Dc=wl,Ys=Dc&&Dc.box&&Dc.box.length>0,Qs=Dc&&Dc.offscreen,$r.useRuntimeCollisionCircles){const Xl=de.text.placedSymbolArray.get($r.centerJustifiedTextSymbolIndex),uc=l.evaluateSizeForFeature(de.textSizeData,bi,Xl),Oc=Ae.get("text-padding");yc=this.collisionIndex.placeCollisionCircles(Ye,Xl,de.lineVertexArray,de.glyphOffsetArray,uc,Ct,wt,Mt,se,hi,zi.predicate,$r.collisionCircleDiameter,Oc,fa),yc.circles.length&&yc.collisionDetected&&!se&&l.warnOnce("Collisions detected, but collision boxes are not shown"),Ys=ut||yc.circles.length>0&&!yc.collisionDetected,Qs=Qs&&yc.offscreen}if(Rr.iconFeatureIndex&&(zc=Rr.iconFeatureIndex),Rr.iconBox){const Xl=uc=>{const Oc=gi&&ic?si(uc,ic.x,ic.y,qn,hi,this.transform.angle):uc;return this.collisionIndex.placeCollisionBox(Oc,Kt,fn,Ct,zi.predicate,fa)};md&&md.box&&md.box.length&&Rr.verticalIconBox?(Wc=Xl(Rr.verticalIconBox),qa=Wc.box.length>0):(Wc=Xl(Rr.iconBox),qa=Wc.box.length>0),Qs=Qs&&Wc.offscreen}const Bc=Be||0===$r.numHorizontalGlyphVertices&&0===$r.numVerticalGlyphVertices,Ac=pt||0===$r.numIconVertices;if(Bc||Ac?Ac?Bc||(qa=qa&&Ys):Ys=qa&&Ys:qa=Ys=qa&&Ys,Ys&&Dc&&Dc.box&&this.collisionIndex.insertCollisionBox(Dc.box,Ye,Ae.get("text-ignore-placement"),de.bucketInstanceId,md&&md.box&&Vl?Vl:im,zi.ID),qa&&Wc&&this.collisionIndex.insertCollisionBox(Wc.box,Kt,Ae.get("icon-ignore-placement"),de.bucketInstanceId,zc,zi.ID),yc&&(Ys&&this.collisionIndex.insertCollisionCircles(yc.circles,Ye,Ae.get("text-ignore-placement"),de.bucketInstanceId,im,zi.ID),se)){const Xl=de.bucketInstanceId;let uc=this.collisionCircleArrays[Xl];void 0===uc&&(uc=this.collisionCircleArrays[Xl]=new Fn);for(let Oc=0;Oc<yc.circles.length;Oc+=4)uc.circles.push(yc.circles[Oc+0]),uc.circles.push(yc.circles[Oc+1]),uc.circles.push(yc.circles[Oc+2]),uc.circles.push(yc.collisionDetected?1:0)}if(0===$r.crossTileID)throw new Error("symbolInstance.crossTileID can't be 0");if(0===de.bucketInstanceId)throw new Error("bucket.bucketInstanceId can't be 0");this.placements[$r.crossTileID]=new Yt(Ys||Wo,qa||tr,Qs||de.justReloaded),k[$r.crossTileID]=!0};if(ko){if(0!==h.symbolInstanceStart)throw new Error("bucket.bucketInstanceId should be 0");const $r=de.getSortedSymbolIndexes(this.transform.angle);for(let Rr=$r.length-1;Rr>=0;--Rr){const Xr=$r[Rr];ga(de.symbolInstances.get(Xr),de.collisionArrays[Xr])}}else for(let $r=h.symbolInstanceStart;$r<h.symbolInstanceEnd;$r++)ga(de.symbolInstances.get($r),de.collisionArrays[$r]);if(se&&de.bucketInstanceId in this.collisionCircleArrays){const $r=this.collisionCircleArrays[de.bucketInstanceId];l.invert($r.invProjMatrix,Ct),$r.viewportMatrix=this.collisionIndex.getViewportMatrix()}de.justReloaded=!1}markUsedJustification(h,k,se,de){let Ae;Ae=de===l.WritingMode.vertical?se.verticalPlacedTextSymbolIndex:{left:se.leftJustifiedTextSymbolIndex,center:se.centerJustifiedTextSymbolIndex,right:se.rightJustifiedTextSymbolIndex}[l.getAnchorJustification(k)];const Ct=[se.leftJustifiedTextSymbolIndex,se.centerJustifiedTextSymbolIndex,se.rightJustifiedTextSymbolIndex,se.verticalPlacedTextSymbolIndex];for(const wt of Ct)wt>=0&&(h.text.placedSymbolArray.get(wt).crossTileID=Ae>=0&&wt!==Ae?0:se.crossTileID)}markUsedOrientation(h,k,se){const de=k===l.WritingMode.horizontal||k===l.WritingMode.horizontalOnly?k:0,Ae=k===l.WritingMode.vertical?k:0,Ct=[se.leftJustifiedTextSymbolIndex,se.centerJustifiedTextSymbolIndex,se.rightJustifiedTextSymbolIndex];for(const wt of Ct)h.text.placedSymbolArray.get(wt).placedOrientation=de;se.verticalPlacedTextSymbolIndex&&(h.text.placedSymbolArray.get(se.verticalPlacedTextSymbolIndex).placedOrientation=Ae)}commit(h){this.commitTime=h,this.zoomAtLastRecencyCheck=this.transform.zoom;const k=this.prevPlacement;let se=!1;this.prevZoomAdjustment=k?k.zoomAdjustment(this.transform.zoom):0;const de=k?k.symbolFadeChange(h):1,Ae=k?k.opacities:{},Ct=k?k.variableOffsets:{},wt=k?k.placedOrientations:{};for(const Mt in this.placements){const fn=this.placements[Mt],Qn=Ae[Mt];Qn?(this.opacities[Mt]=new Un(Qn,de,fn.text,fn.icon),se=se||fn.text!==Qn.text.placed||fn.icon!==Qn.icon.placed):(this.opacities[Mt]=new Un(null,de,fn.text,fn.icon,fn.skipFade),se=se||fn.text||fn.icon)}for(const Mt in Ae){const fn=Ae[Mt];if(!this.opacities[Mt]){const Qn=new Un(fn,de,!1,!1);Qn.isHidden()||(this.opacities[Mt]=Qn,se=se||fn.text.placed||fn.icon.placed)}}for(const Mt in Ct)this.variableOffsets[Mt]||!this.opacities[Mt]||this.opacities[Mt].isHidden()||(this.variableOffsets[Mt]=Ct[Mt]);for(const Mt in wt)this.placedOrientations[Mt]||!this.opacities[Mt]||this.opacities[Mt].isHidden()||(this.placedOrientations[Mt]=wt[Mt]);if(k&&void 0===k.lastPlacementChangeTime)throw new Error("Last placement time for previous placement is not defined");se?this.lastPlacementChangeTime=h:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=k?k.lastPlacementChangeTime:h)}updateLayerOpacities(h,k){const se={};for(const de of k){const Ae=de.getBucket(h);Ae&&de.latestFeatureIndex&&h.id===Ae.layerIds[0]&&this.updateBucketOpacities(Ae,se,de.collisionBoxArray)}}updateBucketOpacities(h,k,se){h.hasTextData()&&(h.text.opacityVertexArray.clear(),h.text.hasVisibleVertices=!1),h.hasIconData()&&(h.icon.opacityVertexArray.clear(),h.icon.hasVisibleVertices=!1),h.hasIconCollisionBoxData()&&h.iconCollisionBox.collisionVertexArray.clear(),h.hasTextCollisionBoxData()&&h.textCollisionBox.collisionVertexArray.clear();const de=h.layers[0],Ae=de.layout,Ct=new Un(null,0,!1,!1,!0),wt=Ae.get("text-allow-overlap"),Mt=Ae.get("icon-allow-overlap"),fn=de._unevaluatedLayout.hasValue("text-variable-anchor")||de._unevaluatedLayout.hasValue("text-variable-anchor-offset"),Qn="map"===Ae.get("text-rotation-alignment"),ei="map"===Ae.get("text-pitch-alignment"),bi="none"!==Ae.get("icon-text-fit"),zi=new Un(null,0,wt&&(Mt||!h.hasIconData()||Ae.get("icon-optional")),Mt&&(wt||!h.hasTextData()||Ae.get("text-optional")),!0);!h.collisionArrays&&se&&(h.hasIconCollisionBoxData()||h.hasTextCollisionBoxData())&&h.deserializeCollisionBoxes(se);const Be=(pt,Ye,ut)=>{for(let Kt=0;Kt<Ye/4;Kt++)pt.opacityVertexArray.emplaceBack(ut);pt.hasVisibleVertices=pt.hasVisibleVertices||ut!==Wi};for(let pt=0;pt<h.symbolInstances.length;pt++){const Ye=h.symbolInstances.get(pt),{numHorizontalGlyphVertices:ut,numVerticalGlyphVertices:Kt,crossTileID:en}=Ye;let qn=this.opacities[en];k[en]?qn=Ct:qn||(qn=zi,this.opacities[en]=qn),k[en]=!0;const hi=Ye.numIconVertices>0,gi=this.placedOrientations[Ye.crossTileID],ko=gi===l.WritingMode.vertical,Wo=gi===l.WritingMode.horizontal||gi===l.WritingMode.horizontalOnly;if(ut>0||Kt>0){const tr=Vn(qn.text);Be(h.text,ut,ko?Wi:tr),Be(h.text,Kt,Wo?Wi:tr);const br=qn.text.isHidden();[Ye.rightJustifiedTextSymbolIndex,Ye.centerJustifiedTextSymbolIndex,Ye.leftJustifiedTextSymbolIndex].forEach($r=>{$r>=0&&(h.text.placedSymbolArray.get($r).hidden=br||ko?1:0)}),Ye.verticalPlacedTextSymbolIndex>=0&&(h.text.placedSymbolArray.get(Ye.verticalPlacedTextSymbolIndex).hidden=br||Wo?1:0);const fa=this.variableOffsets[Ye.crossTileID];fa&&this.markUsedJustification(h,fa.anchor,Ye,gi);const ga=this.placedOrientations[Ye.crossTileID];ga&&(this.markUsedJustification(h,"left",Ye,ga),this.markUsedOrientation(h,ga,Ye))}if(hi){const tr=Vn(qn.icon),br=!(bi&&Ye.verticalPlacedIconSymbolIndex&&ko);Ye.placedIconSymbolIndex>=0&&(Be(h.icon,Ye.numIconVertices,br?tr:Wi),h.icon.placedSymbolArray.get(Ye.placedIconSymbolIndex).hidden=qn.icon.isHidden()),Ye.verticalPlacedIconSymbolIndex>=0&&(Be(h.icon,Ye.numVerticalIconVertices,br?Wi:tr),h.icon.placedSymbolArray.get(Ye.verticalPlacedIconSymbolIndex).hidden=qn.icon.isHidden())}if(h.hasIconCollisionBoxData()||h.hasTextCollisionBoxData()){const tr=h.collisionArrays[pt];if(tr){let br=new l.Point(0,0);if(tr.textBox||tr.verticalTextBox){let ga=!0;if(fn){const $r=this.variableOffsets[en];$r?(br=li($r.anchor,$r.width,$r.height,$r.textOffset,$r.textBoxScale),Qn&&br._rotate(ei?this.transform.angle:-this.transform.angle)):ga=!1}tr.textBox&&_o(h.textCollisionBox.collisionVertexArray,qn.text.placed,!ga||ko,br.x,br.y),tr.verticalTextBox&&_o(h.textCollisionBox.collisionVertexArray,qn.text.placed,!ga||Wo,br.x,br.y)}const fa=!(Wo||!tr.verticalIconBox);tr.iconBox&&_o(h.iconCollisionBox.collisionVertexArray,qn.icon.placed,fa,bi?br.x:0,bi?br.y:0),tr.verticalIconBox&&_o(h.iconCollisionBox.collisionVertexArray,qn.icon.placed,!fa,bi?br.x:0,bi?br.y:0)}}}if(h.sortFeatures(this.transform.angle),this.retainedQueryData[h.bucketInstanceId]&&(this.retainedQueryData[h.bucketInstanceId].featureSortOrder=h.featureSortOrder),h.hasTextData()&&h.text.opacityVertexBuffer&&h.text.opacityVertexBuffer.updateData(h.text.opacityVertexArray),h.hasIconData()&&h.icon.opacityVertexBuffer&&h.icon.opacityVertexBuffer.updateData(h.icon.opacityVertexArray),h.hasIconCollisionBoxData()&&h.iconCollisionBox.collisionVertexBuffer&&h.iconCollisionBox.collisionVertexBuffer.updateData(h.iconCollisionBox.collisionVertexArray),h.hasTextCollisionBoxData()&&h.textCollisionBox.collisionVertexBuffer&&h.textCollisionBox.collisionVertexBuffer.updateData(h.textCollisionBox.collisionVertexArray),h.text.opacityVertexArray.length!==h.text.layoutVertexArray.length/4)throw new Error(`bucket.text.opacityVertexArray.length (= ${h.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${h.text.layoutVertexArray.length}) / 4`);if(h.icon.opacityVertexArray.length!==h.icon.layoutVertexArray.length/4)throw new Error(`bucket.icon.opacityVertexArray.length (= ${h.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${h.icon.layoutVertexArray.length}) / 4`);if(h.bucketInstanceId in this.collisionCircleArrays){const pt=this.collisionCircleArrays[h.bucketInstanceId];h.placementInvProjMatrix=pt.invProjMatrix,h.placementViewportMatrix=pt.viewportMatrix,h.collisionCircleArray=pt.circles,delete this.collisionCircleArrays[h.bucketInstanceId]}}symbolFadeChange(h){return 0===this.fadeDuration?1:(h-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(h){return Math.max(0,(this.transform.zoom-h)/1.5)}hasTransitions(h){return this.stale||h-this.lastPlacementChangeTime<this.fadeDuration}stillRecent(h,k){const se=this.zoomAtLastRecencyCheck===k?1-this.zoomAdjustment(k):1;return this.zoomAtLastRecencyCheck=k,this.commitTime+this.fadeDuration*se>h}setStale(){this.stale=!0}}function _o(xe,h,k,se,de){xe.emplaceBack(h?1:0,k?1:0,se||0,de||0),xe.emplaceBack(h?1:0,k?1:0,se||0,de||0),xe.emplaceBack(h?1:0,k?1:0,se||0,de||0),xe.emplaceBack(h?1:0,k?1:0,se||0,de||0)}const Hn=Math.pow(2,25),mo=Math.pow(2,24),vn=Math.pow(2,17),Ji=Math.pow(2,16),wn=Math.pow(2,9),po=Math.pow(2,8),Kn=Math.pow(2,1);function Vn(xe){if(0===xe.opacity&&!xe.placed)return 0;if(1===xe.opacity&&xe.placed)return 4294967295;const h=xe.placed?1:0,k=Math.floor(127*xe.opacity);return k*Hn+h*mo+k*vn+h*Ji+k*wn+h*po+k*Kn+h}const Wi=0;class Ft{constructor(h){this._sortAcrossTiles="viewport-y"!==h.layout.get("symbol-z-order")&&!h.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(h,k,se,de,Ae){const Ct=this._bucketParts;for(;this._currentTileIndex<h.length;)if(k.getBucketParts(Ct,de,h[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,Ae())return!0;for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,Ct.sort((wt,Mt)=>wt.sortKey-Mt.sortKey));this._currentPartIndex<Ct.length;)if(k.placeLayerBucketPart(Ct[this._currentPartIndex],this._seenCrossTileIDs,se),this._currentPartIndex++,Ae())return!0;return!1}}class Oi{constructor(h,k,se,de,Ae,Ct,wt,Mt){this.placement=new oo(h,k,Ct,wt,Mt),this._currentPlacementIndex=se.length-1,this._forceFullPlacement=de,this._showCollisionBoxes=Ae,this._done=!1}isDone(){return this._done}continuePlacement(h,k,se){const de=l.browser.now(),Ae=()=>!this._forceFullPlacement&&l.browser.now()-de>2;for(;this._currentPlacementIndex>=0;){const Ct=k[h[this._currentPlacementIndex]],wt=this.placement.collisionIndex.transform.zoom;if("symbol"===Ct.type&&(!Ct.minzoom||Ct.minzoom<=wt)&&(!Ct.maxzoom||Ct.maxzoom>wt)){if(this._inProgressLayer||(this._inProgressLayer=new Ft(Ct)),this._inProgressLayer.continuePlacement(se[Ct.source],this.placement,this._showCollisionBoxes,Ct,Ae))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(h){return this.placement.commit(h),this.placement}}const On=512/l.EXTENT/2;class _n{constructor(h,k,se){this.tileID=h,this.bucketInstanceId=se,this._symbolsByKey={};const de=new Map;for(let Ae=0;Ae<k.length;Ae++){const Ct=k.get(Ae),wt=Ct.key,Mt=de.get(wt);Mt?Mt.push(Ct):de.set(wt,[Ct])}for(const[Ae,Ct]of de){const wt={positions:Ct.map(Mt=>({x:Math.floor(Mt.anchorX*On),y:Math.floor(Mt.anchorY*On)})),crossTileIDs:Ct.map(Mt=>Mt.crossTileID)};if(wt.positions.length>128){const Mt=new l.KDBush(wt.positions.length,16,Uint16Array);for(const{x:fn,y:Qn}of wt.positions)Mt.add(fn,Qn);Mt.finish(),delete wt.positions,wt.index=Mt}this._symbolsByKey[Ae]=wt}}getScaledCoordinates(h,k){const{x:se,y:de,z:Ae}=this.tileID.canonical,{x:Ct,y:wt,z:Mt}=k.canonical,fn=On/Math.pow(2,Mt-Ae),Qn=(wt*l.EXTENT+h.anchorY)*fn,ei=de*l.EXTENT*On;return{x:Math.floor((Ct*l.EXTENT+h.anchorX)*fn-se*l.EXTENT*On),y:Math.floor(Qn-ei)}}findMatches(h,k,se){const de=this.tileID.canonical.z<k.canonical.z?1:Math.pow(2,this.tileID.canonical.z-k.canonical.z);for(let Ae=0;Ae<h.length;Ae++){const Ct=h.get(Ae);if(Ct.crossTileID)continue;const wt=this._symbolsByKey[Ct.key];if(!wt)continue;const Mt=this.getScaledCoordinates(Ct,k);if(wt.index){const fn=wt.index.range(Mt.x-de,Mt.y-de,Mt.x+de,Mt.y+de).sort();for(const Qn of fn){const ei=wt.crossTileIDs[Qn];if(!se[ei]){se[ei]=!0,Ct.crossTileID=ei;break}}}else if(wt.positions)for(let fn=0;fn<wt.positions.length;fn++){const Qn=wt.positions[fn],ei=wt.crossTileIDs[fn];if(Math.abs(Qn.x-Mt.x)<=de&&Math.abs(Qn.y-Mt.y)<=de&&!se[ei]){se[ei]=!0,Ct.crossTileID=ei;break}}}}getCrossTileIDsLists(){return Object.values(this._symbolsByKey).map(({crossTileIDs:h})=>h)}}class st{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class Dn{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(h){const k=Math.round((h-this.lng)/360);if(0!==k)for(const se in this.indexes){const de=this.indexes[se],Ae={};for(const Ct in de){const wt=de[Ct];wt.tileID=wt.tileID.unwrapTo(wt.tileID.wrap+k),Ae[wt.tileID.key]=wt}this.indexes[se]=Ae}this.lng=h}addBucket(h,k,se){if(this.indexes[h.overscaledZ]&&this.indexes[h.overscaledZ][h.key]){if(this.indexes[h.overscaledZ][h.key].bucketInstanceId===k.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(h.overscaledZ,this.indexes[h.overscaledZ][h.key])}for(let Ae=0;Ae<k.symbolInstances.length;Ae++)k.symbolInstances.get(Ae).crossTileID=0;this.usedCrossTileIDs[h.overscaledZ]||(this.usedCrossTileIDs[h.overscaledZ]={});const de=this.usedCrossTileIDs[h.overscaledZ];for(const Ae in this.indexes){const Ct=this.indexes[Ae];if(Number(Ae)>h.overscaledZ)for(const wt in Ct){const Mt=Ct[wt];Mt.tileID.isChildOf(h)&&Mt.findMatches(k.symbolInstances,h,de)}else{const wt=Ct[h.scaledTo(Number(Ae)).key];wt&&wt.findMatches(k.symbolInstances,h,de)}}for(let Ae=0;Ae<k.symbolInstances.length;Ae++){const Ct=k.symbolInstances.get(Ae);Ct.crossTileID||(Ct.crossTileID=se.generate(),de[Ct.crossTileID]=!0)}return void 0===this.indexes[h.overscaledZ]&&(this.indexes[h.overscaledZ]={}),this.indexes[h.overscaledZ][h.key]=new _n(h,k.symbolInstances,k.bucketInstanceId),!0}removeBucketCrossTileIDs(h,k){for(const se of k.getCrossTileIDsLists())for(const de of se)delete this.usedCrossTileIDs[h][de]}removeStaleBuckets(h){let k=!1;for(const se in this.indexes){const de=this.indexes[se];for(const Ae in de)h[de[Ae].bucketInstanceId]||(this.removeBucketCrossTileIDs(se,de[Ae]),delete de[Ae],k=!0)}return k}}class Wt{constructor(){this.layerIndexes={},this.crossTileIDs=new st,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}}addLayer(h,k,se){let de=this.layerIndexes[h.id];void 0===de&&(de=this.layerIndexes[h.id]=new Dn);let Ae=!1;const Ct={};de.handleWrapJump(se);for(const wt of k){const Mt=wt.getBucket(h);Mt&&h.id===Mt.layerIds[0]&&(Mt.bucketInstanceId||(Mt.bucketInstanceId=++this.maxBucketInstanceId),de.addBucket(wt.tileID,Mt,this.crossTileIDs)&&(Ae=!0),Ct[Mt.bucketInstanceId]=!0)}return de.removeStaleBuckets(Ct)&&(Ae=!0),Ae}pruneUnusedLayers(h){const k={};h.forEach(se=>{k[se]=!0});for(const se in this.layerIndexes)k[se]||delete this.layerIndexes[se]}}const kn=(xe,h)=>l.emitValidationErrors(xe,h&&h.filter(k=>"source.canvas"!==k.identifier)),Fi=l.pick(l.operations,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData","setGlyphs","setSprite"]),ui=l.pick(l.operations,["setCenter","setZoom","setBearing","setPitch"]),Fo=l.emptyStyle();class At extends l.Evented{constructor(h,k={}){super(),this.map=h,this.dispatcher=new Te(ni(),this,h._getMapId()),this.imageManager=new K,this.imageManager.setEventedParent(this),this.glyphManager=new ue(h._requestManager,k.localIdeographFontFamily),this.lineAtlas=new R(256,512),this.crossTileSymbolIndex=new Wt,this._spritesImagesIds={},this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new l.ZoomHistory,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("setReferrer",l.getReferrer());const se=this;this._rtlTextPluginCallback=At.registerForPluginStateChange(de=>{se.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:de.pluginStatus,pluginURL:de.pluginURL},(Ae,Ct)=>{if(l.triggerPluginCompletionEvent(Ae),Ct&&Ct.every(wt=>wt))for(const wt in se.sourceCaches){const Mt=se.sourceCaches[wt].getSource().type;"vector"!==Mt&&"geojson"!==Mt||se.sourceCaches[wt].reload()}})}),this.on("data",de=>{if("source"!==de.dataType||"metadata"!==de.sourceDataType)return;const Ae=this.sourceCaches[de.sourceId];if(!Ae)return;const Ct=Ae.getSource();if(Ct&&Ct.vectorLayerIds)for(const wt in this._layers){const Mt=this._layers[wt];Mt.source===Ct.id&&this._validateLayer(Mt)}})}loadURL(h,k={},se){this.fire(new l.Event("dataloading",{dataType:"style"})),k.validate="boolean"!=typeof k.validate||k.validate;const de=this.map._requestManager.transformRequest(h,I.Style);this._request=l.getJSON(de,(Ae,Ct)=>{this._request=null,Ae?this.fire(new l.ErrorEvent(Ae)):Ct&&this._load(Ct,k,se)})}loadJSON(h,k={},se){this.fire(new l.Event("dataloading",{dataType:"style"})),this._request=l.browser.frame(()=>{this._request=null,k.validate=!1!==k.validate,this._load(h,k,se)})}loadEmpty(){this.fire(new l.Event("dataloading",{dataType:"style"})),this._load(Fo,{validate:!1})}_load(h,k,se){var de;const Ae=k.transformStyle?k.transformStyle(se,h):h;if(!k.validate||!kn(this,l.validateStyle(Ae))){this._loaded=!0,this.stylesheet=Ae;for(const Ct in Ae.sources)this.addSource(Ct,Ae.sources[Ct],{validate:!1});Ae.sprite?this._loadSprite(Ae.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(Ae.glyphs),this._createLayers(),this.light=new Le(this.stylesheet.light),this.map.setTerrain(null!==(de=this.stylesheet.terrain)&&void 0!==de?de:null),this.fire(new l.Event("data",{dataType:"style"})),this.fire(new l.Event("style.load"))}}_createLayers(){const h=l.derefLayers(this.stylesheet.layers);this.dispatcher.broadcast("setLayers",h),this._order=h.map(k=>k.id),this._layers={},this._serializedLayers=null;for(const k of h){const se=l.createStyleLayer(k);se.setEventedParent(this,{layer:{id:k.id}}),this._layers[k.id]=se}}_loadSprite(h,k=!1,se=void 0){this.imageManager.setLoaded(!1),this._spriteRequest=function(de,Ae,Ct,wt){const Mt=J(de),fn=Mt.length,Qn=Ct>1?"@2x":"",ei={},bi={},zi={};for(const{id:Be,url:pt}of Mt){const Ye=Ae.transformRequest(Ae.normalizeSpriteURL(pt,Qn,".json"),I.SpriteJSON),ut=`${Be}_${Ye.url}`;ei[ut]=l.getJSON(Ye,(qn,hi)=>{delete ei[ut],bi[Be]=hi,q(wt,bi,zi,qn,fn)});const Kt=Ae.transformRequest(Ae.normalizeSpriteURL(pt,Qn,".png"),I.SpriteImage),en=`${Be}_${Kt.url}`;ei[en]=b.getImage(Kt,(qn,hi)=>{delete ei[en],zi[Be]=hi,q(wt,bi,zi,qn,fn)})}return{cancel(){for(const Be of Object.values(ei))Be.cancel()}}}(h,this.map._requestManager,this.map.getPixelRatio(),(de,Ae)=>{if(this._spriteRequest=null,de)this.fire(new l.ErrorEvent(de));else if(Ae)for(const Ct in Ae){this._spritesImagesIds[Ct]=[];const wt=this._spritesImagesIds[Ct]?this._spritesImagesIds[Ct].filter(Mt=>!(Mt in Ae)):[];for(const Mt of wt)this.imageManager.removeImage(Mt),this._changedImages[Mt]=!0;for(const Mt in Ae[Ct]){const fn="default"===Ct?Mt:`${Ct}:${Mt}`;this._spritesImagesIds[Ct].push(fn),fn in this.imageManager.images?this.imageManager.updateImage(fn,Ae[Ct][Mt],!1):this.imageManager.addImage(fn,Ae[Ct][Mt]),k&&(this._changedImages[fn]=!0)}}this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),k&&(this._changed=!0),this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new l.Event("data",{dataType:"style"})),se&&se(de)})}_unloadSprite(){for(const h of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(h),this._changedImages[h]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new l.Event("data",{dataType:"style"}))}_validateLayer(h){const k=this.sourceCaches[h.source];if(!k)return;const se=h.sourceLayer;if(!se)return;const de=k.getSource();("geojson"===de.type||de.vectorLayerIds&&-1===de.vectorLayerIds.indexOf(se))&&this.fire(new l.ErrorEvent(new Error(`Source layer "${se}" does not exist on source "${de.id}" as specified by style layer "${h.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(const h in this.sourceCaches)if(!this.sourceCaches[h].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeByIds(h){const k=this._serializedAllLayers();if(!h||0===h.length)return Object.values(k);const se=[];for(const de of h)k[de]&&se.push(k[de]);return se}_serializedAllLayers(){let h=this._serializedLayers;if(h)return h;h=this._serializedLayers={};const k=Object.keys(this._layers);for(const se of k){const de=this._layers[se];"custom"!==de.type&&(h[se]=de.serialize())}return h}hasTransitions(){if(this.light&&this.light.hasTransition())return!0;for(const h in this.sourceCaches)if(this.sourceCaches[h].hasTransition())return!0;for(const h in this._layers)if(this._layers[h].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading.")}update(h){if(!this._loaded)return;const k=this._changed;if(this._changed){const de=Object.keys(this._updatedLayers),Ae=Object.keys(this._removedLayers);(de.length||Ae.length)&&this._updateWorkerLayers(de,Ae);for(const Ct in this._updatedSources){const wt=this._updatedSources[Ct];if("reload"===wt)this._reloadSource(Ct);else{if("clear"!==wt)throw new Error(`Invalid action ${wt}`);this._clearSource(Ct)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(const Ct in this._updatedPaintProps)this._layers[Ct].updateTransitions(h);this.light.updateTransitions(h),this._resetUpdates()}const se={};for(const de in this.sourceCaches){const Ae=this.sourceCaches[de];se[de]=Ae.used,Ae.used=!1}for(const de of this._order){const Ae=this._layers[de];Ae.recalculate(h,this._availableImages),!Ae.isHidden(h.zoom)&&Ae.source&&(this.sourceCaches[Ae.source].used=!0)}for(const de in se){const Ae=this.sourceCaches[de];se[de]!==Ae.used&&Ae.fire(new l.Event("data",{sourceDataType:"visibility",dataType:"source",sourceId:de}))}this.light.recalculate(h),this.z=h.zoom,k&&this.fire(new l.Event("data",{dataType:"style"}))}_updateTilesForChangedImages(){const h=Object.keys(this._changedImages);if(h.length){for(const k in this.sourceCaches)this.sourceCaches[k].reloadTilesForDependencies(["icons","patterns"],h);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(const h in this.sourceCaches)this.sourceCaches[h].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(h,k){this.dispatcher.broadcast("updateLayers",{layers:this._serializeByIds(h),removedIds:k})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(h,k={}){this._checkLoaded();const se=this.serialize();if(h=k.transformStyle?k.transformStyle(se,h):h,kn(this,l.validateStyle(h)))return!1;(h=l.clone$1(h)).layers=l.derefLayers(h.layers);const de=l.diffStyles(se,h).filter(Ct=>!(Ct.command in ui));if(0===de.length)return!1;const Ae=de.filter(Ct=>!(Ct.command in Fi));if(Ae.length>0)throw new Error(`Unimplemented: ${Ae.map(Ct=>Ct.command).join(", ")}.`);for(const Ct of de)"setTransition"!==Ct.command&&this[Ct.command].apply(this,Ct.args);return this.stylesheet=h,!0}addImage(h,k){if(this.getImage(h))return this.fire(new l.ErrorEvent(new Error(`An image named "${h}" already exists.`)));this.imageManager.addImage(h,k),this._afterImageUpdated(h)}updateImage(h,k){this.imageManager.updateImage(h,k)}getImage(h){return this.imageManager.getImage(h)}removeImage(h){if(!this.getImage(h))return this.fire(new l.ErrorEvent(new Error(`An image named "${h}" does not exist.`)));this.imageManager.removeImage(h),this._afterImageUpdated(h)}_afterImageUpdated(h){this._availableImages=this.imageManager.listImages(),this._changedImages[h]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new l.Event("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(h,k,se={}){if(this._checkLoaded(),void 0!==this.sourceCaches[h])throw new Error(`Source "${h}" already exists.`);if(!k.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(k).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(k.type)>=0&&this._validate(l.validateStyle.source,`sources.${h}`,k,null,se))return;this.map&&this.map._collectResourceTiming&&(k.collectResourceTiming=!0);const de=this.sourceCaches[h]=new Je(h,k,this.dispatcher);de.style=this,de.setEventedParent(this,()=>({isSourceLoaded:de.loaded(),source:de.serialize(),sourceId:h})),de.onAdd(this.map),this._changed=!0}removeSource(h){if(this._checkLoaded(),void 0===this.sourceCaches[h])throw new Error("There is no source with this ID");for(const se in this._layers)if(this._layers[se].source===h)return this.fire(new l.ErrorEvent(new Error(`Source "${h}" cannot be removed while layer "${se}" is using it.`)));const k=this.sourceCaches[h];delete this.sourceCaches[h],delete this._updatedSources[h],k.fire(new l.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:h})),k.setEventedParent(null),k.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(h,k){if(this._checkLoaded(),void 0===this.sourceCaches[h])throw new Error(`There is no source with this ID=${h}`);const se=this.sourceCaches[h].getSource();if("geojson"!==se.type)throw new Error(`geojsonSource.type is ${se.type}, which is !== 'geojson`);se.setData(k),this._changed=!0}getSource(h){return this.sourceCaches[h]&&this.sourceCaches[h].getSource()}addLayer(h,k,se={}){this._checkLoaded();const de=h.id;if(this.getLayer(de))return void this.fire(new l.ErrorEvent(new Error(`Layer "${de}" already exists on this map.`)));let Ae;if("custom"===h.type){if(kn(this,l.validateCustomStyleLayer(h)))return;Ae=l.createStyleLayer(h)}else{if("source"in h&&"object"==typeof h.source&&(this.addSource(de,h.source),h=l.clone$1(h),h=l.extend(h,{source:de})),this._validate(l.validateStyle.layer,`layers.${de}`,h,{arrayIndex:-1},se))return;Ae=l.createStyleLayer(h),this._validateLayer(Ae),Ae.setEventedParent(this,{layer:{id:de}})}const Ct=k?this._order.indexOf(k):this._order.length;if(k&&-1===Ct)this.fire(new l.ErrorEvent(new Error(`Cannot add layer "${de}" before non-existing layer "${k}".`)));else{if(this._order.splice(Ct,0,de),this._layerOrderChanged=!0,this._layers[de]=Ae,this._removedLayers[de]&&Ae.source&&"custom"!==Ae.type){const wt=this._removedLayers[de];delete this._removedLayers[de],wt.type!==Ae.type?this._updatedSources[Ae.source]="clear":(this._updatedSources[Ae.source]="reload",this.sourceCaches[Ae.source].pause())}this._updateLayer(Ae),Ae.onAdd&&Ae.onAdd(this.map)}}moveLayer(h,k){if(this._checkLoaded(),this._changed=!0,!this._layers[h])return void this.fire(new l.ErrorEvent(new Error(`The layer '${h}' does not exist in the map's style and cannot be moved.`)));if(h===k)return;const se=this._order.indexOf(h);this._order.splice(se,1);const de=k?this._order.indexOf(k):this._order.length;k&&-1===de?this.fire(new l.ErrorEvent(new Error(`Cannot move layer "${h}" before non-existing layer "${k}".`))):(this._order.splice(de,0,h),this._layerOrderChanged=!0)}removeLayer(h){this._checkLoaded();const k=this._layers[h];if(!k)return void this.fire(new l.ErrorEvent(new Error(`Cannot remove non-existing layer "${h}".`)));k.setEventedParent(null);const se=this._order.indexOf(h);this._order.splice(se,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[h]=k,delete this._layers[h],this._serializedLayers&&delete this._serializedLayers[h],delete this._updatedLayers[h],delete this._updatedPaintProps[h],k.onRemove&&k.onRemove(this.map)}getLayer(h){return this._layers[h]}hasLayer(h){return h in this._layers}setLayerZoomRange(h,k,se){this._checkLoaded();const de=this.getLayer(h);de?de.minzoom===k&&de.maxzoom===se||(null!=k&&(de.minzoom=k),null!=se&&(de.maxzoom=se),this._updateLayer(de)):this.fire(new l.ErrorEvent(new Error(`Cannot set the zoom range of non-existing layer "${h}".`)))}setFilter(h,k,se={}){this._checkLoaded();const de=this.getLayer(h);if(de){if(!l.deepEqual(de.filter,k))return null==k?(de.filter=void 0,void this._updateLayer(de)):void(this._validate(l.validateStyle.filter,`layers.${de.id}.filter`,k,null,se)||(de.filter=l.clone$1(k),this._updateLayer(de)))}else this.fire(new l.ErrorEvent(new Error(`Cannot filter non-existing layer "${h}".`)))}getFilter(h){return l.clone$1(this.getLayer(h).filter)}setLayoutProperty(h,k,se,de={}){this._checkLoaded();const Ae=this.getLayer(h);Ae?l.deepEqual(Ae.getLayoutProperty(k),se)||(Ae.setLayoutProperty(k,se,de),this._updateLayer(Ae)):this.fire(new l.ErrorEvent(new Error(`Cannot style non-existing layer "${h}".`)))}getLayoutProperty(h,k){const se=this.getLayer(h);if(se)return se.getLayoutProperty(k);this.fire(new l.ErrorEvent(new Error(`Cannot get style of non-existing layer "${h}".`)))}setPaintProperty(h,k,se,de={}){this._checkLoaded();const Ae=this.getLayer(h);Ae?l.deepEqual(Ae.getPaintProperty(k),se)||(Ae.setPaintProperty(k,se,de)&&this._updateLayer(Ae),this._changed=!0,this._updatedPaintProps[h]=!0):this.fire(new l.ErrorEvent(new Error(`Cannot style non-existing layer "${h}".`)))}getPaintProperty(h,k){return this.getLayer(h).getPaintProperty(k)}setFeatureState(h,k){this._checkLoaded();const se=h.source,de=h.sourceLayer,Ae=this.sourceCaches[se];if(void 0===Ae)return void this.fire(new l.ErrorEvent(new Error(`The source '${se}' does not exist in the map's style.`)));const Ct=Ae.getSource().type;"geojson"===Ct&&de?this.fire(new l.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==Ct||de?(void 0===h.id&&this.fire(new l.ErrorEvent(new Error("The feature id parameter must be provided."))),Ae.setFeatureState(de,h.id,k)):this.fire(new l.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}removeFeatureState(h,k){this._checkLoaded();const se=h.source,de=this.sourceCaches[se];if(void 0===de)return void this.fire(new l.ErrorEvent(new Error(`The source '${se}' does not exist in the map's style.`)));const Ae=de.getSource().type,Ct="vector"===Ae?h.sourceLayer:void 0;"vector"!==Ae||Ct?k&&"string"!=typeof h.id&&"number"!=typeof h.id?this.fire(new l.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):de.removeFeatureState(Ct,h.id,k):this.fire(new l.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}getFeatureState(h){this._checkLoaded();const k=h.source,se=h.sourceLayer,de=this.sourceCaches[k];if(void 0!==de)return"vector"!==de.getSource().type||se?(void 0===h.id&&this.fire(new l.ErrorEvent(new Error("The feature id parameter must be provided."))),de.getFeatureState(se,h.id)):void this.fire(new l.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));this.fire(new l.ErrorEvent(new Error(`The source '${k}' does not exist in the map's style.`)))}getTransition(){return l.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){if(!this._loaded)return;const h=l.mapObject(this.sourceCaches,de=>de.serialize()),k=this._serializeByIds(this._order),se=this.stylesheet;return l.filterObject({version:se.version,name:se.name,metadata:se.metadata,light:se.light,center:se.center,zoom:se.zoom,bearing:se.bearing,pitch:se.pitch,sprite:se.sprite,glyphs:se.glyphs,transition:se.transition,sources:h,layers:k},de=>void 0!==de)}_updateLayer(h){this._updatedLayers[h.id]=!0,h.source&&!this._updatedSources[h.source]&&"raster"!==this.sourceCaches[h.source].getSource().type&&(this._updatedSources[h.source]="reload",this.sourceCaches[h.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(h){const k=Ct=>"fill-extrusion"===this._layers[Ct].type,se={},de=[];for(let Ct=this._order.length-1;Ct>=0;Ct--){const wt=this._order[Ct];if(k(wt)){se[wt]=Ct;for(const Mt of h){const fn=Mt[wt];if(fn)for(const Qn of fn)de.push(Qn)}}}de.sort((Ct,wt)=>wt.intersectionZ-Ct.intersectionZ);const Ae=[];for(let Ct=this._order.length-1;Ct>=0;Ct--){const wt=this._order[Ct];if(k(wt))for(let Mt=de.length-1;Mt>=0;Mt--){const fn=de[Mt].feature;if(se[fn.layer.id]<Ct)break;Ae.push(fn),de.pop()}else for(const Mt of h){const fn=Mt[wt];if(fn)for(const Qn of fn)Ae.push(Qn.feature)}}return Ae}queryRenderedFeatures(h,k,se){k&&k.filter&&this._validate(l.validateStyle.filter,"queryRenderedFeatures.filter",k.filter,null,k);const de={};if(k&&k.layers){if(!Array.isArray(k.layers))return this.fire(new l.ErrorEvent(new Error("parameters.layers must be an Array."))),[];for(const wt of k.layers){const Mt=this._layers[wt];if(!Mt)return this.fire(new l.ErrorEvent(new Error(`The layer '${wt}' does not exist in the map's style and cannot be queried for features.`))),[];de[Mt.source]=!0}}const Ae=[];k.availableImages=this._availableImages;const Ct=this._serializedAllLayers();for(const wt in this.sourceCaches)k.layers&&!de[wt]||Ae.push(ft(this.sourceCaches[wt],this._layers,Ct,h,k,se));return this.placement&&Ae.push(function(wt,Mt,fn,Qn,ei,bi,zi){const Be={},pt=bi.queryRenderedSymbols(Qn),Ye=[];for(const ut of Object.keys(pt).map(Number))Ye.push(zi[ut]);Ye.sort(Dt);for(const ut of Ye){const Kt=ut.featureIndex.lookupSymbolFeatures(pt[ut.bucketInstanceId],Mt,ut.bucketIndex,ut.sourceLayerIndex,ei.filter,ei.layers,ei.availableImages,wt);for(const en in Kt){const qn=Be[en]=Be[en]||[],hi=Kt[en];hi.sort((gi,ko)=>{const Wo=ut.featureSortOrder;if(Wo){const tr=Wo.indexOf(gi.featureIndex);return Wo.indexOf(ko.featureIndex)-tr}return ko.featureIndex-gi.featureIndex});for(const gi of hi)qn.push(gi)}}for(const ut in Be)Be[ut].forEach(Kt=>{const en=Kt.feature,qn=fn[wt[ut].source].getFeatureState(en.layer["source-layer"],en.id);en.source=en.layer.source,en.layer["source-layer"]&&(en.sourceLayer=en.layer["source-layer"]),en.state=qn});return Be}(this._layers,Ct,this.sourceCaches,h,k,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(Ae)}querySourceFeatures(h,k){k&&k.filter&&this._validate(l.validateStyle.filter,"querySourceFeatures.filter",k.filter,null,k);const se=this.sourceCaches[h];return se?function(de,Ae){const Ct=de.getRenderableIds().map(fn=>de.getTileByID(fn)),wt=[],Mt={};for(let fn=0;fn<Ct.length;fn++){const Qn=Ct[fn],ei=Qn.tileID.canonical.key;Mt[ei]||(Mt[ei]=!0,Qn.querySourceFeatures(wt,Ae))}return wt}(se,k):[]}addSourceType(h,k,se){return ye(h)?se(new Error(`A source type called "${h}" already exists.`)):(Oe[h]=k,k.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:h,url:k.workerSourceURL},se):se(null,null))}getLight(){return this.light.getLight()}setLight(h,k={}){this._checkLoaded();const se=this.light.getLight();let de=!1;for(const Ct in h)if(!l.deepEqual(h[Ct],se[Ct])){de=!0;break}if(!de)return;const Ae={now:l.browser.now(),transition:l.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(h,k),this.light.updateTransitions(Ae)}_validate(h,k,se,de,Ae={}){return(!Ae||!1!==Ae.validate)&&kn(this,h.call(l.validateStyle,l.extend({key:k,style:this.serialize(),value:se,styleSpec:l.v8Spec},de)))}_remove(h=!0){this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),l.evented.off("pluginStateChange",this._rtlTextPluginCallback);for(const k in this._layers)this._layers[k].setEventedParent(null);for(const k in this.sourceCaches){const se=this.sourceCaches[k];se.setEventedParent(null),se.onRemove(this.map)}this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove(h)}_clearSource(h){this.sourceCaches[h].clearTiles()}_reloadSource(h){this.sourceCaches[h].resume(),this.sourceCaches[h].reload()}_updateSources(h){for(const k in this.sourceCaches)this.sourceCaches[k].update(h,this.map.terrain)}_generateCollisionBoxes(){for(const h in this.sourceCaches)this._reloadSource(h)}_updatePlacement(h,k,se,de,Ae=!1){let Ct=!1,wt=!1;const Mt={};for(const fn of this._order){const Qn=this._layers[fn];if("symbol"!==Qn.type)continue;if(!Mt[Qn.source]){const bi=this.sourceCaches[Qn.source];Mt[Qn.source]=bi.getRenderableIds(!0).map(zi=>bi.getTileByID(zi)).sort((zi,Be)=>Be.tileID.overscaledZ-zi.tileID.overscaledZ||(zi.tileID.isLessThan(Be.tileID)?-1:1))}const ei=this.crossTileSymbolIndex.addLayer(Qn,Mt[Qn.source],h.center.lng);Ct=Ct||ei}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((Ae=Ae||this._layerOrderChanged||0===se)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(l.browser.now(),h.zoom))&&(this.pauseablePlacement=new Oi(h,this.map.terrain,this._order,Ae,k,se,de,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,Mt),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(l.browser.now()),wt=!0),Ct&&this.pauseablePlacement.placement.setStale()),wt||Ct)for(const fn of this._order){const Qn=this._layers[fn];"symbol"===Qn.type&&this.placement.updateLayerOpacities(Qn,Mt[Qn.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(l.browser.now())}_releaseSymbolFadeTiles(){for(const h in this.sourceCaches)this.sourceCaches[h].releaseSymbolFadeTiles()}getImages(h,k,se){this.imageManager.getImages(k.icons,se),this._updateTilesForChangedImages();const de=this.sourceCaches[k.source];de&&de.setDependencies(k.tileID.key,k.type,k.icons)}getGlyphs(h,k,se){this.glyphManager.getGlyphs(k.stacks,se);const de=this.sourceCaches[k.source];de&&de.setDependencies(k.tileID.key,k.type,[""])}getResource(h,k,se){return l.makeRequest(k,se)}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(h,k={}){this._checkLoaded(),h&&this._validate(l.validateStyle.glyphs,"glyphs",h,null,k)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=h,this.glyphManager.entries={},this.glyphManager.setURL(h))}addSprite(h,k,se={},de){this._checkLoaded();const Ae=[{id:h,url:k}],Ct=[...J(this.stylesheet.sprite),...Ae];this._validate(l.validateStyle.sprite,"sprite",Ct,null,se)||(this.stylesheet.sprite=Ct,this._loadSprite(Ae,!0,de))}removeSprite(h){this._checkLoaded();const k=J(this.stylesheet.sprite);if(k.find(se=>se.id===h)){if(this._spritesImagesIds[h])for(const se of this._spritesImagesIds[h])this.imageManager.removeImage(se),this._changedImages[se]=!0;k.splice(k.findIndex(se=>se.id===h),1),this.stylesheet.sprite=k.length>0?k:void 0,delete this._spritesImagesIds[h],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new l.Event("data",{dataType:"style"}))}else this.fire(new l.ErrorEvent(new Error(`Sprite "${h}" doesn't exists on this map.`)))}getSprite(){return J(this.stylesheet.sprite)}setSprite(h,k={},se){this._checkLoaded(),h&&this._validate(l.validateStyle.sprite,"sprite",h,null,k)||(this.stylesheet.sprite=h,h?this._loadSprite(h,!0,se):(this._unloadSprite(),se&&se(null)))}}At.registerForPluginStateChange=l.registerForPluginStateChange;var Jn=l.createLayout([{name:"a_pos",type:"Int16",components:2}]),Bn="attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_depth;void main() {float extent=8192.0;float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/extent;gl_Position=u_matrix*vec4(a_pos3d.xy,get_elevation(a_pos3d.xy)-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}";const Bi={prelude:$n("#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\n","#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}\n#ifdef TERRAIN3D\nuniform sampler2D u_terrain;uniform float u_terrain_dim;uniform mat4 u_terrain_matrix;uniform vec4 u_terrain_unpack;uniform float u_terrain_exaggeration;uniform highp sampler2D u_depth;\n#endif\nconst highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitShifts=vec4(1.)/bitSh;highp float unpack(highp vec4 color) {return dot(color,bitShifts);}highp float depthOpacity(vec3 frag) {\n#ifdef TERRAIN3D\nhighp float d=unpack(texture2D(u_depth,frag.xy*0.5+0.5))+0.0001-frag.z;return 1.0-max(0.0,min(1.0,-d*500.0));\n#else\nreturn 1.0;\n#endif\n}float calculate_visibility(vec4 pos) {\n#ifdef TERRAIN3D\nvec3 frag=pos.xyz/pos.w;highp float d=depthOpacity(frag);if (d > 0.95) return 1.0;return (d+depthOpacity(frag+vec3(0.0,0.01,0.0)))/2.0;\n#else\nreturn 1.0;\n#endif\n}float ele(vec2 pos) {\n#ifdef TERRAIN3D\nvec4 rgb=(texture2D(u_terrain,pos)*255.0)*u_terrain_unpack;return rgb.r+rgb.g+rgb.b-u_terrain_unpack.a;\n#else\nreturn 0.0;\n#endif\n}float get_elevation(vec2 pos) {\n#ifdef TERRAIN3D\nvec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=fract(coord);vec2 c=(floor(coord)+0.5)/(u_terrain_dim+2.0);float d=1.0/(u_terrain_dim+2.0);float tl=ele(c);float tr=ele(c+vec2(d,0.0));float bl=ele(c+vec2(0.0,d));float br=ele(c+vec2(d,d));float elevation=mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);return elevation*u_terrain_exaggeration;\n#else\nreturn 0.0;\n#endif\n}"),background:$n("uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),backgroundPattern:$n("uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),circle:$n("varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);float ele=get_elevation(circle_center);v_visibility=calculate_visibility(u_matrix*vec4(circle_center,ele,1.0));if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,ele,1);} else {gl_Position=u_matrix*vec4(circle_center,ele,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}"),clippingMask:$n("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:$n("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}"),heatmapTexture:$n("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:$n("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,get_elevation(a_pos),1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:$n("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd  =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz  /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:$n("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,get_elevation(a_pos),1);}"),fill:$n("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}"),fillOutline:$n("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),fillOutlinePattern:$n("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),fillPattern:$n("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}"),fillExtrusion:$n("varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;\n#ifdef TERRAIN3D\nattribute vec2 a_centroid;\n#endif\nvarying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;\n#ifdef TERRAIN3D\nfloat height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);\n#else\nfloat height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;\n#endif\nbase=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}"),fillExtrusionPattern:$n("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;\n#ifdef TERRAIN3D\nattribute vec2 a_centroid;\n#endif\nvarying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;\n#ifdef TERRAIN3D\nfloat height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);\n#else\nfloat height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;\n#endif\nbase=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}"),hillshadePrepare:$n("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:$n("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),line:$n("uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_width2=vec2(outset,inset);}"),lineGradient:$n("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_width2=vec2(outset,inset);}"),linePattern:$n("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}"),lineSDF:$n("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"),raster:$n("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),symbolIcon:$n("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,ele,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),ele,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,ele,1.0);float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),z,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));}"),symbolSDF:$n("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float inner_edge=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);inner_edge=inner_edge+gamma*gamma_scale;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(inner_edge-gamma_scaled,inner_edge+gamma_scaled,dist);if (u_is_halo) {lowp float halo_edge=(6.0-halo_width/fontScale)/SDF_PX;alpha=min(smoothstep(halo_edge-gamma_scaled,halo_edge+gamma_scaled,dist),1.0-alpha);}gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,ele,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),ele,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,ele,1.0);float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),z,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}"),symbolTextAndIcon:$n("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,ele,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),ele,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,ele,1.0);float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),z,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}"),terrain:$n("uniform sampler2D u_texture;varying vec2 v_texture_pos;void main() {gl_FragColor=texture2D(u_texture,v_texture_pos);}",Bn),terrainDepth:$n("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}",Bn),terrainCoords:$n("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}",Bn)};function $n(xe,h){const k=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,se=h.match(/attribute ([\w]+) ([\w]+)/g),de=xe.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Ae=h.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Ct=Ae?Ae.concat(de):de,wt={};return{fragmentSource:xe=xe.replace(k,(Mt,fn,Qn,ei,bi)=>(wt[bi]=!0,"define"===fn?`\n#ifndef HAS_UNIFORM_u_${bi}\nvarying ${Qn} ${ei} ${bi};\n#else\nuniform ${Qn} ${ei} u_${bi};\n#endif\n`:`\n#ifdef HAS_UNIFORM_u_${bi}\n    ${Qn} ${ei} ${bi} = u_${bi};\n#endif\n`)),vertexSource:h=h.replace(k,(Mt,fn,Qn,ei,bi)=>{const zi="float"===ei?"vec2":"vec4",Be=bi.match(/color/)?"color":zi;return wt[bi]?"define"===fn?`\n#ifndef HAS_UNIFORM_u_${bi}\nuniform lowp float u_${bi}_t;\nattribute ${Qn} ${zi} a_${bi};\nvarying ${Qn} ${ei} ${bi};\n#else\nuniform ${Qn} ${ei} u_${bi};\n#endif\n`:"vec4"===Be?`\n#ifndef HAS_UNIFORM_u_${bi}\n    ${bi} = a_${bi};\n#else\n    ${Qn} ${ei} ${bi} = u_${bi};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${bi}\n    ${bi} = unpack_mix_${Be}(a_${bi}, u_${bi}_t);\n#else\n    ${Qn} ${ei} ${bi} = u_${bi};\n#endif\n`:"define"===fn?`\n#ifndef HAS_UNIFORM_u_${bi}\nuniform lowp float u_${bi}_t;\nattribute ${Qn} ${zi} a_${bi};\n#else\nuniform ${Qn} ${ei} u_${bi};\n#endif\n`:"vec4"===Be?`\n#ifndef HAS_UNIFORM_u_${bi}\n    ${Qn} ${ei} ${bi} = a_${bi};\n#else\n    ${Qn} ${ei} ${bi} = u_${bi};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${bi}\n    ${Qn} ${ei} ${bi} = unpack_mix_${Be}(a_${bi}, u_${bi}_t);\n#else\n    ${Qn} ${ei} ${bi} = u_${bi};\n#endif\n`}),staticAttributes:se,staticUniforms:Ct}}class Ui{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(h,k,se,de,Ae,Ct,wt,Mt,fn){this.context=h;let Qn=this.boundPaintVertexBuffers.length!==de.length;for(let ei=0;!Qn&&ei<de.length;ei++)this.boundPaintVertexBuffers[ei]!==de[ei]&&(Qn=!0);!this.vao||this.boundProgram!==k||this.boundLayoutVertexBuffer!==se||Qn||this.boundIndexBuffer!==Ae||this.boundVertexOffset!==Ct||this.boundDynamicVertexBuffer!==wt||this.boundDynamicVertexBuffer2!==Mt||this.boundDynamicVertexBuffer3!==fn?this.freshBind(k,se,de,Ae,Ct,wt,Mt,fn):(h.bindVertexArray.set(this.vao),wt&&wt.bind(),Ae&&Ae.dynamicDraw&&Ae.bind(),Mt&&Mt.bind(),fn&&fn.bind())}freshBind(h,k,se,de,Ae,Ct,wt,Mt){const fn=h.numAttributes,Qn=this.context,ei=Qn.gl;this.vao&&this.destroy(),this.vao=Qn.createVertexArray(),Qn.bindVertexArray.set(this.vao),this.boundProgram=h,this.boundLayoutVertexBuffer=k,this.boundPaintVertexBuffers=se,this.boundIndexBuffer=de,this.boundVertexOffset=Ae,this.boundDynamicVertexBuffer=Ct,this.boundDynamicVertexBuffer2=wt,this.boundDynamicVertexBuffer3=Mt,k.enableAttributes(ei,h);for(const bi of se)bi.enableAttributes(ei,h);Ct&&Ct.enableAttributes(ei,h),wt&&wt.enableAttributes(ei,h),Mt&&Mt.enableAttributes(ei,h),k.bind(),k.setVertexAttribPointers(ei,h,Ae);for(const bi of se)bi.bind(),bi.setVertexAttribPointers(ei,h,Ae);Ct&&(Ct.bind(),Ct.setVertexAttribPointers(ei,h,Ae)),de&&de.bind(),wt&&(wt.bind(),wt.setVertexAttribPointers(ei,h,Ae)),Mt&&(Mt.bind(),Mt.setVertexAttribPointers(ei,h,Ae)),Qn.currentNumAttributes=fn}destroy(){this.vao&&(this.context.deleteVertexArray(this.vao),this.vao=null)}}function Xo(xe){const h=[];for(let k=0;k<xe.length;k++){if(null===xe[k])continue;const se=xe[k].split(" ");h.push(se.pop())}return h}class bt{constructor(h,k,se,de,Ae,Ct){const wt=h.gl;this.program=wt.createProgram();const Mt=Xo(k.staticAttributes),fn=se?se.getBinderAttributes():[],Qn=Mt.concat(fn),ei=Bi.prelude.staticUniforms?Xo(Bi.prelude.staticUniforms):[],bi=k.staticUniforms?Xo(k.staticUniforms):[],zi=se?se.getBinderUniforms():[],Be=ei.concat(bi).concat(zi),pt=[];for(const gi of Be)pt.indexOf(gi)<0&&pt.push(gi);const Ye=se?se.defines():[];Ae&&Ye.push("#define OVERDRAW_INSPECTOR;"),Ct&&Ye.push("#define TERRAIN3D;");const ut=Ye.concat(Bi.prelude.fragmentSource,k.fragmentSource).join("\n"),Kt=Ye.concat(Bi.prelude.vertexSource,k.vertexSource).join("\n"),en=wt.createShader(wt.FRAGMENT_SHADER);if(wt.isContextLost())return void(this.failedToCreate=!0);if(wt.shaderSource(en,ut),wt.compileShader(en),!wt.getShaderParameter(en,wt.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${wt.getShaderInfoLog(en)}`);wt.attachShader(this.program,en);const qn=wt.createShader(wt.VERTEX_SHADER);if(wt.isContextLost())return void(this.failedToCreate=!0);if(wt.shaderSource(qn,Kt),wt.compileShader(qn),!wt.getShaderParameter(qn,wt.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${wt.getShaderInfoLog(qn)}`);wt.attachShader(this.program,qn),this.attributes={};const hi={};this.numAttributes=Qn.length;for(let gi=0;gi<this.numAttributes;gi++)Qn[gi]&&(wt.bindAttribLocation(this.program,gi,Qn[gi]),this.attributes[Qn[gi]]=gi);if(wt.linkProgram(this.program),!wt.getProgramParameter(this.program,wt.LINK_STATUS))throw new Error(`Program failed to link: ${wt.getProgramInfoLog(this.program)}`);wt.deleteShader(qn),wt.deleteShader(en);for(let gi=0;gi<pt.length;gi++){const ko=pt[gi];if(ko&&!hi[ko]){const Wo=wt.getUniformLocation(this.program,ko);Wo&&(hi[ko]=Wo)}}var gi,ko;this.fixedUniforms=de(h,hi),this.terrainUniforms={u_depth:new l.Uniform1i(gi=h,(ko=hi).u_depth),u_terrain:new l.Uniform1i(gi,ko.u_terrain),u_terrain_dim:new l.Uniform1f(gi,ko.u_terrain_dim),u_terrain_matrix:new l.UniformMatrix4f(gi,ko.u_terrain_matrix),u_terrain_unpack:new l.Uniform4f(gi,ko.u_terrain_unpack),u_terrain_exaggeration:new l.Uniform1f(gi,ko.u_terrain_exaggeration)},this.binderUniforms=se?se.getUniforms(h,hi):[]}draw(h,k,se,de,Ae,Ct,wt,Mt,fn,Qn,ei,bi,zi,Be,pt,Ye,ut,Kt){const en=h.gl;if(this.failedToCreate)return;if(h.program.set(this.program),h.setDepthMode(se),h.setStencilMode(de),h.setColorMode(Ae),h.setCullFace(Ct),Mt){h.activeTexture.set(en.TEXTURE2),en.bindTexture(en.TEXTURE_2D,Mt.depthTexture),h.activeTexture.set(en.TEXTURE3),en.bindTexture(en.TEXTURE_2D,Mt.texture);for(const hi in this.terrainUniforms)this.terrainUniforms[hi].set(Mt[hi])}for(const hi in this.fixedUniforms)this.fixedUniforms[hi].set(wt[hi]);pt&&pt.setUniforms(h,this.binderUniforms,zi,{zoom:Be});let qn=0;switch(k){case en.LINES:qn=2;break;case en.TRIANGLES:qn=3;break;case en.LINE_STRIP:qn=1}for(const hi of bi.get()){const gi=hi.vaos||(hi.vaos={});(gi[fn]||(gi[fn]=new Ui)).bind(h,this,Qn,pt?pt.getPaintVertexBuffers():[],ei,hi.vertexOffset,Ye,ut,Kt),en.drawElements(k,hi.primitiveLength*qn,en.UNSIGNED_SHORT,hi.primitiveOffset*qn*2)}}}function an(xe,h,k){const se=1/ht(k,1,h.transform.tileZoom),de=Math.pow(2,k.tileID.overscaledZ),Ae=k.tileSize*Math.pow(2,h.transform.tileZoom)/de,Ct=Ae*(k.tileID.canonical.x+k.tileID.wrap*de),wt=Ae*k.tileID.canonical.y;return{u_image:0,u_texsize:k.imageAtlasTexture.size,u_scale:[se,xe.fromScale,xe.toScale],u_fade:xe.t,u_pixel_coord_upper:[Ct>>16,wt>>16],u_pixel_coord_lower:[65535&Ct,65535&wt]}}const Wn=(xe,h,k,se)=>{const de=h.style.light,Ae=de.properties.get("position"),Ct=[Ae.x,Ae.y,Ae.z],wt=(fn=new l.ARRAY_TYPE(9),l.ARRAY_TYPE!=Float32Array&&(fn[1]=0,fn[2]=0,fn[3]=0,fn[5]=0,fn[6]=0,fn[7]=0),fn[0]=1,fn[4]=1,fn[8]=1,fn);var fn;"viewport"===de.properties.get("anchor")&&function(fn,Qn){var ei=Math.sin(Qn),bi=Math.cos(Qn);fn[0]=bi,fn[1]=ei,fn[2]=0,fn[3]=-ei,fn[4]=bi,fn[5]=0,fn[6]=0,fn[7]=0,fn[8]=1}(wt,-h.transform.angle),function(fn,Qn,ei){var bi=Qn[0],zi=Qn[1],Be=Qn[2];fn[0]=bi*ei[0]+zi*ei[3]+Be*ei[6],fn[1]=bi*ei[1]+zi*ei[4]+Be*ei[7],fn[2]=bi*ei[2]+zi*ei[5]+Be*ei[8]}(Ct,Ct,wt);const Mt=de.properties.get("color");return{u_matrix:xe,u_lightpos:Ct,u_lightintensity:de.properties.get("intensity"),u_lightcolor:[Mt.r,Mt.g,Mt.b],u_vertical_gradient:+k,u_opacity:se}},eo=(xe,h,k,se,de,Ae,Ct)=>l.extend(Wn(xe,h,k,se),an(Ae,h,Ct),{u_height_factor:-Math.pow(2,de.overscaledZ)/Ct.tileSize/8}),_r=xe=>({u_matrix:xe}),hr=(xe,h,k,se)=>l.extend(_r(xe),an(k,h,se)),In=(xe,h)=>({u_matrix:xe,u_world:h}),Wr=(xe,h,k,se,de)=>l.extend(hr(xe,h,k,se),{u_world:de}),qi=(xe,h,k,se)=>{const de=xe.transform;let Ae,Ct;if("map"===se.paint.get("circle-pitch-alignment")){const wt=ht(k,1,de.zoom);Ae=!0,Ct=[wt,wt]}else Ae=!1,Ct=de.pixelsToGLUnits;return{u_camera_to_center_distance:de.cameraToCenterDistance,u_scale_with_map:+("map"===se.paint.get("circle-pitch-scale")),u_matrix:xe.translatePosMatrix(h.posMatrix,k,se.paint.get("circle-translate"),se.paint.get("circle-translate-anchor")),u_pitch_with_map:+Ae,u_device_pixel_ratio:xe.pixelRatio,u_extrude_scale:Ct}},wi=(xe,h,k)=>{const se=ht(k,1,h.zoom),de=Math.pow(2,h.zoom-k.tileID.overscaledZ),Ae=k.tileID.overscaleFactor();return{u_matrix:xe,u_camera_to_center_distance:h.cameraToCenterDistance,u_pixels_to_tile_units:se,u_extrude_scale:[h.pixelsToGLUnits[0]/(se*de),h.pixelsToGLUnits[1]/(se*de)],u_overscale_factor:Ae}},zo=(xe,h,k=1)=>({u_matrix:xe,u_color:h,u_overlay:0,u_overlay_scale:k}),xi=xe=>({u_matrix:xe}),ki=(xe,h,k,se)=>({u_matrix:xe,u_extrude_scale:ht(h,1,k),u_intensity:se});function wo(xe,h){const k=Math.pow(2,h.canonical.z),se=h.canonical.y;return[new l.MercatorCoordinate(0,se/k).toLngLat().lat,new l.MercatorCoordinate(0,(se+1)/k).toLngLat().lat]}const Ei=(xe,h,k,se)=>{const de=xe.transform;return{u_matrix:Ra(xe,h,k,se),u_ratio:1/ht(h,1,de.zoom),u_device_pixel_ratio:xe.pixelRatio,u_units_to_pixels:[1/de.pixelsToGLUnits[0],1/de.pixelsToGLUnits[1]]}},ho=(xe,h,k,se,de)=>l.extend(Ei(xe,h,k,de),{u_image:0,u_image_height:se}),Cr=(xe,h,k,se,de)=>{const Ae=xe.transform,Ct=qr(h,Ae);return{u_matrix:Ra(xe,h,k,de),u_texsize:h.imageAtlasTexture.size,u_ratio:1/ht(h,1,Ae.zoom),u_device_pixel_ratio:xe.pixelRatio,u_image:0,u_scale:[Ct,se.fromScale,se.toScale],u_fade:se.t,u_units_to_pixels:[1/Ae.pixelsToGLUnits[0],1/Ae.pixelsToGLUnits[1]]}},vr=(xe,h,k,se,de,Ae)=>{const Ct=xe.lineAtlas,wt=qr(h,xe.transform),Mt="round"===k.layout.get("line-cap"),fn=Ct.getDash(se.from,Mt),Qn=Ct.getDash(se.to,Mt),ei=fn.width*de.fromScale,bi=Qn.width*de.toScale;return l.extend(Ei(xe,h,k,Ae),{u_patternscale_a:[wt/ei,-fn.height/2],u_patternscale_b:[wt/bi,-Qn.height/2],u_sdfgamma:Ct.width/(256*Math.min(ei,bi)*xe.pixelRatio)/2,u_image:0,u_tex_y_a:fn.y,u_tex_y_b:Qn.y,u_mix:de.t})};function qr(xe,h){return 1/ht(xe,1,h.tileZoom)}function Ra(xe,h,k,se){return xe.translatePosMatrix(se?se.posMatrix:h.tileID.posMatrix,h,k.paint.get("line-translate"),k.paint.get("line-translate-anchor"))}const ss=(xe,h,k,se,de)=>{return{u_matrix:xe,u_tl_parent:h,u_scale_parent:k,u_buffer_scale:1,u_fade_t:se.mix,u_opacity:se.opacity*de.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:de.paint.get("raster-brightness-min"),u_brightness_high:de.paint.get("raster-brightness-max"),u_saturation_factor:(Ct=de.paint.get("raster-saturation"),Ct>0?1-1/(1.001-Ct):-Ct),u_contrast_factor:(Ae=de.paint.get("raster-contrast"),Ae>0?1/(1-Ae):1+Ae),u_spin_weights:Hs(de.paint.get("raster-hue-rotate"))};var Ae,Ct};function Hs(xe){xe*=Math.PI/180;const h=Math.sin(xe),k=Math.cos(xe);return[(2*k+1)/3,(-Math.sqrt(3)*h-k+1)/3,(Math.sqrt(3)*h-k+1)/3]}const Cs=(xe,h,k,se,de,Ae,Ct,wt,Mt,fn)=>{const Qn=de.transform;return{u_is_size_zoom_constant:+("constant"===xe||"source"===xe),u_is_size_feature_constant:+("constant"===xe||"camera"===xe),u_size_t:h?h.uSizeT:0,u_size:h?h.uSize:0,u_camera_to_center_distance:Qn.cameraToCenterDistance,u_pitch:Qn.pitch/360*2*Math.PI,u_rotate_symbol:+k,u_aspect_ratio:Qn.width/Qn.height,u_fade_change:de.options.fadeDuration?de.symbolFadeChange:1,u_matrix:Ae,u_label_plane_matrix:Ct,u_coord_matrix:wt,u_is_text:+Mt,u_pitch_with_map:+se,u_texsize:fn,u_texture:0}},ms=(xe,h,k,se,de,Ae,Ct,wt,Mt,fn,Qn)=>{const ei=de.transform;return l.extend(Cs(xe,h,k,se,de,Ae,Ct,wt,Mt,fn),{u_gamma_scale:se?Math.cos(ei._pitch)*ei.cameraToCenterDistance:1,u_device_pixel_ratio:de.pixelRatio,u_is_halo:+Qn})},ja=(xe,h,k,se,de,Ae,Ct,wt,Mt,fn)=>l.extend(ms(xe,h,k,se,de,Ae,Ct,wt,!0,Mt,!0),{u_texsize_icon:fn,u_texture_icon:1}),el=(xe,h,k)=>({u_matrix:xe,u_opacity:h,u_color:k}),Vs=(xe,h,k,se,de,Ae)=>l.extend(function(Ct,wt,Mt,fn){const Qn=Mt.imageManager.getPattern(Ct.from.toString()),ei=Mt.imageManager.getPattern(Ct.to.toString()),{width:bi,height:zi}=Mt.imageManager.getPixelSize(),Be=Math.pow(2,fn.tileID.overscaledZ),pt=fn.tileSize*Math.pow(2,Mt.transform.tileZoom)/Be,Ye=pt*(fn.tileID.canonical.x+fn.tileID.wrap*Be),ut=pt*fn.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:Qn.tl,u_pattern_br_a:Qn.br,u_pattern_tl_b:ei.tl,u_pattern_br_b:ei.br,u_texsize:[bi,zi],u_mix:wt.t,u_pattern_size_a:Qn.displaySize,u_pattern_size_b:ei.displaySize,u_scale_a:wt.fromScale,u_scale_b:wt.toScale,u_tile_units_to_pixels:1/ht(fn,1,Mt.transform.tileZoom),u_pixel_coord_upper:[Ye>>16,ut>>16],u_pixel_coord_lower:[65535&Ye,65535&ut]}}(se,Ae,k,de),{u_matrix:xe,u_opacity:h}),ls={fillExtrusion:(xe,h)=>({u_matrix:new l.UniformMatrix4f(xe,h.u_matrix),u_lightpos:new l.Uniform3f(xe,h.u_lightpos),u_lightintensity:new l.Uniform1f(xe,h.u_lightintensity),u_lightcolor:new l.Uniform3f(xe,h.u_lightcolor),u_vertical_gradient:new l.Uniform1f(xe,h.u_vertical_gradient),u_opacity:new l.Uniform1f(xe,h.u_opacity)}),fillExtrusionPattern:(xe,h)=>({u_matrix:new l.UniformMatrix4f(xe,h.u_matrix),u_lightpos:new l.Uniform3f(xe,h.u_lightpos),u_lightintensity:new l.Uniform1f(xe,h.u_lightintensity),u_lightcolor:new l.Uniform3f(xe,h.u_lightcolor),u_vertical_gradient:new l.Uniform1f(xe,h.u_vertical_gradient),u_height_factor:new l.Uniform1f(xe,h.u_height_factor),u_image:new l.Uniform1i(xe,h.u_image),u_texsize:new l.Uniform2f(xe,h.u_texsize),u_pixel_coord_upper:new l.Uniform2f(xe,h.u_pixel_coord_upper),u_pixel_coord_lower:new l.Uniform2f(xe,h.u_pixel_coord_lower),u_scale:new l.Uniform3f(xe,h.u_scale),u_fade:new l.Uniform1f(xe,h.u_fade),u_opacity:new l.Uniform1f(xe,h.u_opacity)}),fill:(xe,h)=>({u_matrix:new l.UniformMatrix4f(xe,h.u_matrix)}),fillPattern:(xe,h)=>({u_matrix:new l.UniformMatrix4f(xe,h.u_matrix),u_image:new l.Uniform1i(xe,h.u_image),u_texsize:new l.Uniform2f(xe,h.u_texsize),u_pixel_coord_upper:new l.Uniform2f(xe,h.u_pixel_coord_upper),u_pixel_coord_lower:new l.Uniform2f(xe,h.u_pixel_coord_lower),u_scale:new l.Uniform3f(xe,h.u_scale),u_fade:new l.Uniform1f(xe,h.u_fade)}),fillOutline:(xe,h)=>({u_matrix:new l.UniformMatrix4f(xe,h.u_matrix),u_world:new l.Uniform2f(xe,h.u_world)}),fillOutlinePattern:(xe,h)=>({u_matrix:new l.UniformMatrix4f(xe,h.u_matrix),u_world:new l.Uniform2f(xe,h.u_world),u_image:new l.Uniform1i(xe,h.u_image),u_texsize:new l.Uniform2f(xe,h.u_texsize),u_pixel_coord_upper:new l.Uniform2f(xe,h.u_pixel_coord_upper),u_pixel_coord_lower:new l.Uniform2f(xe,h.u_pixel_coord_lower),u_scale:new l.Uniform3f(xe,h.u_scale),u_fade:new l.Uniform1f(xe,h.u_fade)}),circle:(xe,h)=>({u_camera_to_center_distance:new l.Uniform1f(xe,h.u_camera_to_center_distance),u_scale_with_map:new l.Uniform1i(xe,h.u_scale_with_map),u_pitch_with_map:new l.Uniform1i(xe,h.u_pitch_with_map),u_extrude_scale:new l.Uniform2f(xe,h.u_extrude_scale),u_device_pixel_ratio:new l.Uniform1f(xe,h.u_device_pixel_ratio),u_matrix:new l.UniformMatrix4f(xe,h.u_matrix)}),collisionBox:(xe,h)=>({u_matrix:new l.UniformMatrix4f(xe,h.u_matrix),u_camera_to_center_distance:new l.Uniform1f(xe,h.u_camera_to_center_distance),u_pixels_to_tile_units:new l.Uniform1f(xe,h.u_pixels_to_tile_units),u_extrude_scale:new l.Uniform2f(xe,h.u_extrude_scale),u_overscale_factor:new l.Uniform1f(xe,h.u_overscale_factor)}),collisionCircle:(xe,h)=>({u_matrix:new l.UniformMatrix4f(xe,h.u_matrix),u_inv_matrix:new l.UniformMatrix4f(xe,h.u_inv_matrix),u_camera_to_center_distance:new l.Uniform1f(xe,h.u_camera_to_center_distance),u_viewport_size:new l.Uniform2f(xe,h.u_viewport_size)}),debug:(xe,h)=>({u_color:new l.UniformColor(xe,h.u_color),u_matrix:new l.UniformMatrix4f(xe,h.u_matrix),u_overlay:new l.Uniform1i(xe,h.u_overlay),u_overlay_scale:new l.Uniform1f(xe,h.u_overlay_scale)}),clippingMask:(xe,h)=>({u_matrix:new l.UniformMatrix4f(xe,h.u_matrix)}),heatmap:(xe,h)=>({u_extrude_scale:new l.Uniform1f(xe,h.u_extrude_scale),u_intensity:new l.Uniform1f(xe,h.u_intensity),u_matrix:new l.UniformMatrix4f(xe,h.u_matrix)}),heatmapTexture:(xe,h)=>({u_matrix:new l.UniformMatrix4f(xe,h.u_matrix),u_world:new l.Uniform2f(xe,h.u_world),u_image:new l.Uniform1i(xe,h.u_image),u_color_ramp:new l.Uniform1i(xe,h.u_color_ramp),u_opacity:new l.Uniform1f(xe,h.u_opacity)}),hillshade:(xe,h)=>({u_matrix:new l.UniformMatrix4f(xe,h.u_matrix),u_image:new l.Uniform1i(xe,h.u_image),u_latrange:new l.Uniform2f(xe,h.u_latrange),u_light:new l.Uniform2f(xe,h.u_light),u_shadow:new l.UniformColor(xe,h.u_shadow),u_highlight:new l.UniformColor(xe,h.u_highlight),u_accent:new l.UniformColor(xe,h.u_accent)}),hillshadePrepare:(xe,h)=>({u_matrix:new l.UniformMatrix4f(xe,h.u_matrix),u_image:new l.Uniform1i(xe,h.u_image),u_dimension:new l.Uniform2f(xe,h.u_dimension),u_zoom:new l.Uniform1f(xe,h.u_zoom),u_unpack:new l.Uniform4f(xe,h.u_unpack)}),line:(xe,h)=>({u_matrix:new l.UniformMatrix4f(xe,h.u_matrix),u_ratio:new l.Uniform1f(xe,h.u_ratio),u_device_pixel_ratio:new l.Uniform1f(xe,h.u_device_pixel_ratio),u_units_to_pixels:new l.Uniform2f(xe,h.u_units_to_pixels)}),lineGradient:(xe,h)=>({u_matrix:new l.UniformMatrix4f(xe,h.u_matrix),u_ratio:new l.Uniform1f(xe,h.u_ratio),u_device_pixel_ratio:new l.Uniform1f(xe,h.u_device_pixel_ratio),u_units_to_pixels:new l.Uniform2f(xe,h.u_units_to_pixels),u_image:new l.Uniform1i(xe,h.u_image),u_image_height:new l.Uniform1f(xe,h.u_image_height)}),linePattern:(xe,h)=>({u_matrix:new l.UniformMatrix4f(xe,h.u_matrix),u_texsize:new l.Uniform2f(xe,h.u_texsize),u_ratio:new l.Uniform1f(xe,h.u_ratio),u_device_pixel_ratio:new l.Uniform1f(xe,h.u_device_pixel_ratio),u_image:new l.Uniform1i(xe,h.u_image),u_units_to_pixels:new l.Uniform2f(xe,h.u_units_to_pixels),u_scale:new l.Uniform3f(xe,h.u_scale),u_fade:new l.Uniform1f(xe,h.u_fade)}),lineSDF:(xe,h)=>({u_matrix:new l.UniformMatrix4f(xe,h.u_matrix),u_ratio:new l.Uniform1f(xe,h.u_ratio),u_device_pixel_ratio:new l.Uniform1f(xe,h.u_device_pixel_ratio),u_units_to_pixels:new l.Uniform2f(xe,h.u_units_to_pixels),u_patternscale_a:new l.Uniform2f(xe,h.u_patternscale_a),u_patternscale_b:new l.Uniform2f(xe,h.u_patternscale_b),u_sdfgamma:new l.Uniform1f(xe,h.u_sdfgamma),u_image:new l.Uniform1i(xe,h.u_image),u_tex_y_a:new l.Uniform1f(xe,h.u_tex_y_a),u_tex_y_b:new l.Uniform1f(xe,h.u_tex_y_b),u_mix:new l.Uniform1f(xe,h.u_mix)}),raster:(xe,h)=>({u_matrix:new l.UniformMatrix4f(xe,h.u_matrix),u_tl_parent:new l.Uniform2f(xe,h.u_tl_parent),u_scale_parent:new l.Uniform1f(xe,h.u_scale_parent),u_buffer_scale:new l.Uniform1f(xe,h.u_buffer_scale),u_fade_t:new l.Uniform1f(xe,h.u_fade_t),u_opacity:new l.Uniform1f(xe,h.u_opacity),u_image0:new l.Uniform1i(xe,h.u_image0),u_image1:new l.Uniform1i(xe,h.u_image1),u_brightness_low:new l.Uniform1f(xe,h.u_brightness_low),u_brightness_high:new l.Uniform1f(xe,h.u_brightness_high),u_saturation_factor:new l.Uniform1f(xe,h.u_saturation_factor),u_contrast_factor:new l.Uniform1f(xe,h.u_contrast_factor),u_spin_weights:new l.Uniform3f(xe,h.u_spin_weights)}),symbolIcon:(xe,h)=>({u_is_size_zoom_constant:new l.Uniform1i(xe,h.u_is_size_zoom_constant),u_is_size_feature_constant:new l.Uniform1i(xe,h.u_is_size_feature_constant),u_size_t:new l.Uniform1f(xe,h.u_size_t),u_size:new l.Uniform1f(xe,h.u_size),u_camera_to_center_distance:new l.Uniform1f(xe,h.u_camera_to_center_distance),u_pitch:new l.Uniform1f(xe,h.u_pitch),u_rotate_symbol:new l.Uniform1i(xe,h.u_rotate_symbol),u_aspect_ratio:new l.Uniform1f(xe,h.u_aspect_ratio),u_fade_change:new l.Uniform1f(xe,h.u_fade_change),u_matrix:new l.UniformMatrix4f(xe,h.u_matrix),u_label_plane_matrix:new l.UniformMatrix4f(xe,h.u_label_plane_matrix),u_coord_matrix:new l.UniformMatrix4f(xe,h.u_coord_matrix),u_is_text:new l.Uniform1i(xe,h.u_is_text),u_pitch_with_map:new l.Uniform1i(xe,h.u_pitch_with_map),u_texsize:new l.Uniform2f(xe,h.u_texsize),u_texture:new l.Uniform1i(xe,h.u_texture)}),symbolSDF:(xe,h)=>({u_is_size_zoom_constant:new l.Uniform1i(xe,h.u_is_size_zoom_constant),u_is_size_feature_constant:new l.Uniform1i(xe,h.u_is_size_feature_constant),u_size_t:new l.Uniform1f(xe,h.u_size_t),u_size:new l.Uniform1f(xe,h.u_size),u_camera_to_center_distance:new l.Uniform1f(xe,h.u_camera_to_center_distance),u_pitch:new l.Uniform1f(xe,h.u_pitch),u_rotate_symbol:new l.Uniform1i(xe,h.u_rotate_symbol),u_aspect_ratio:new l.Uniform1f(xe,h.u_aspect_ratio),u_fade_change:new l.Uniform1f(xe,h.u_fade_change),u_matrix:new l.UniformMatrix4f(xe,h.u_matrix),u_label_plane_matrix:new l.UniformMatrix4f(xe,h.u_label_plane_matrix),u_coord_matrix:new l.UniformMatrix4f(xe,h.u_coord_matrix),u_is_text:new l.Uniform1i(xe,h.u_is_text),u_pitch_with_map:new l.Uniform1i(xe,h.u_pitch_with_map),u_texsize:new l.Uniform2f(xe,h.u_texsize),u_texture:new l.Uniform1i(xe,h.u_texture),u_gamma_scale:new l.Uniform1f(xe,h.u_gamma_scale),u_device_pixel_ratio:new l.Uniform1f(xe,h.u_device_pixel_ratio),u_is_halo:new l.Uniform1i(xe,h.u_is_halo)}),symbolTextAndIcon:(xe,h)=>({u_is_size_zoom_constant:new l.Uniform1i(xe,h.u_is_size_zoom_constant),u_is_size_feature_constant:new l.Uniform1i(xe,h.u_is_size_feature_constant),u_size_t:new l.Uniform1f(xe,h.u_size_t),u_size:new l.Uniform1f(xe,h.u_size),u_camera_to_center_distance:new l.Uniform1f(xe,h.u_camera_to_center_distance),u_pitch:new l.Uniform1f(xe,h.u_pitch),u_rotate_symbol:new l.Uniform1i(xe,h.u_rotate_symbol),u_aspect_ratio:new l.Uniform1f(xe,h.u_aspect_ratio),u_fade_change:new l.Uniform1f(xe,h.u_fade_change),u_matrix:new l.UniformMatrix4f(xe,h.u_matrix),u_label_plane_matrix:new l.UniformMatrix4f(xe,h.u_label_plane_matrix),u_coord_matrix:new l.UniformMatrix4f(xe,h.u_coord_matrix),u_is_text:new l.Uniform1i(xe,h.u_is_text),u_pitch_with_map:new l.Uniform1i(xe,h.u_pitch_with_map),u_texsize:new l.Uniform2f(xe,h.u_texsize),u_texsize_icon:new l.Uniform2f(xe,h.u_texsize_icon),u_texture:new l.Uniform1i(xe,h.u_texture),u_texture_icon:new l.Uniform1i(xe,h.u_texture_icon),u_gamma_scale:new l.Uniform1f(xe,h.u_gamma_scale),u_device_pixel_ratio:new l.Uniform1f(xe,h.u_device_pixel_ratio),u_is_halo:new l.Uniform1i(xe,h.u_is_halo)}),background:(xe,h)=>({u_matrix:new l.UniformMatrix4f(xe,h.u_matrix),u_opacity:new l.Uniform1f(xe,h.u_opacity),u_color:new l.UniformColor(xe,h.u_color)}),backgroundPattern:(xe,h)=>({u_matrix:new l.UniformMatrix4f(xe,h.u_matrix),u_opacity:new l.Uniform1f(xe,h.u_opacity),u_image:new l.Uniform1i(xe,h.u_image),u_pattern_tl_a:new l.Uniform2f(xe,h.u_pattern_tl_a),u_pattern_br_a:new l.Uniform2f(xe,h.u_pattern_br_a),u_pattern_tl_b:new l.Uniform2f(xe,h.u_pattern_tl_b),u_pattern_br_b:new l.Uniform2f(xe,h.u_pattern_br_b),u_texsize:new l.Uniform2f(xe,h.u_texsize),u_mix:new l.Uniform1f(xe,h.u_mix),u_pattern_size_a:new l.Uniform2f(xe,h.u_pattern_size_a),u_pattern_size_b:new l.Uniform2f(xe,h.u_pattern_size_b),u_scale_a:new l.Uniform1f(xe,h.u_scale_a),u_scale_b:new l.Uniform1f(xe,h.u_scale_b),u_pixel_coord_upper:new l.Uniform2f(xe,h.u_pixel_coord_upper),u_pixel_coord_lower:new l.Uniform2f(xe,h.u_pixel_coord_lower),u_tile_units_to_pixels:new l.Uniform1f(xe,h.u_tile_units_to_pixels)}),terrain:(xe,h)=>({u_matrix:new l.UniformMatrix4f(xe,h.u_matrix),u_texture:new l.Uniform1i(xe,h.u_texture),u_ele_delta:new l.Uniform1f(xe,h.u_ele_delta)}),terrainDepth:(xe,h)=>({u_matrix:new l.UniformMatrix4f(xe,h.u_matrix),u_ele_delta:new l.Uniform1f(xe,h.u_ele_delta)}),terrainCoords:(xe,h)=>({u_matrix:new l.UniformMatrix4f(xe,h.u_matrix),u_texture:new l.Uniform1i(xe,h.u_texture),u_terrain_coords_id:new l.Uniform1f(xe,h.u_terrain_coords_id),u_ele_delta:new l.Uniform1f(xe,h.u_ele_delta)})};class Fa{constructor(h,k,se){this.context=h;const de=h.gl;this.buffer=de.createBuffer(),this.dynamicDraw=!!se,this.context.unbindVAO(),h.bindElementBuffer.set(this.buffer),de.bufferData(de.ELEMENT_ARRAY_BUFFER,k.arrayBuffer,this.dynamicDraw?de.DYNAMIC_DRAW:de.STATIC_DRAW),this.dynamicDraw||delete k.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(h){const k=this.context.gl;if(!this.dynamicDraw)throw new Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),k.bufferSubData(k.ELEMENT_ARRAY_BUFFER,0,h.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}const Ds={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class dl{constructor(h,k,se,de){this.length=k.length,this.attributes=se,this.itemSize=k.bytesPerElement,this.dynamicDraw=de,this.context=h;const Ae=h.gl;this.buffer=Ae.createBuffer(),h.bindVertexBuffer.set(this.buffer),Ae.bufferData(Ae.ARRAY_BUFFER,k.arrayBuffer,this.dynamicDraw?Ae.DYNAMIC_DRAW:Ae.STATIC_DRAW),this.dynamicDraw||delete k.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(h){if(h.length!==this.length)throw new Error(`Length of new data is ${h.length}, which doesn't match current length of ${this.length}`);const k=this.context.gl;this.bind(),k.bufferSubData(k.ARRAY_BUFFER,0,h.arrayBuffer)}enableAttributes(h,k){for(let se=0;se<this.attributes.length;se++){const de=k.attributes[this.attributes[se].name];void 0!==de&&h.enableVertexAttribArray(de)}}setVertexAttribPointers(h,k,se){for(let de=0;de<this.attributes.length;de++){const Ae=this.attributes[de],Ct=k.attributes[Ae.name];void 0!==Ct&&h.vertexAttribPointer(Ct,Ae.components,h[Ds[Ae.type]],!1,this.itemSize,Ae.offset+this.itemSize*(se||0))}}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}const ka=new WeakMap;function hs(xe){if(ka.has(xe))return ka.get(xe);{const h=xe.getParameter(xe.VERSION).startsWith("WebGL 2.0");return ka.set(xe,h),h}}class Ua{constructor(h){this.gl=h.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(h){}getDefault(){return this.default}setDefault(){this.set(this.default)}}class Tn extends Ua{getDefault(){return l.Color.transparent}set(h){const k=this.current;(h.r!==k.r||h.g!==k.g||h.b!==k.b||h.a!==k.a||this.dirty)&&(this.gl.clearColor(h.r,h.g,h.b,h.a),this.current=h,this.dirty=!1)}}class Qi extends Ua{getDefault(){return 1}set(h){(h!==this.current||this.dirty)&&(this.gl.clearDepth(h),this.current=h,this.dirty=!1)}}class To extends Ua{getDefault(){return 0}set(h){(h!==this.current||this.dirty)&&(this.gl.clearStencil(h),this.current=h,this.dirty=!1)}}class sr extends Ua{getDefault(){return[!0,!0,!0,!0]}set(h){const k=this.current;(h[0]!==k[0]||h[1]!==k[1]||h[2]!==k[2]||h[3]!==k[3]||this.dirty)&&(this.gl.colorMask(h[0],h[1],h[2],h[3]),this.current=h,this.dirty=!1)}}class oi extends Ua{getDefault(){return!0}set(h){(h!==this.current||this.dirty)&&(this.gl.depthMask(h),this.current=h,this.dirty=!1)}}class Vi extends Ua{getDefault(){return 255}set(h){(h!==this.current||this.dirty)&&(this.gl.stencilMask(h),this.current=h,this.dirty=!1)}}class Ti extends Ua{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(h){const k=this.current;(h.func!==k.func||h.ref!==k.ref||h.mask!==k.mask||this.dirty)&&(this.gl.stencilFunc(h.func,h.ref,h.mask),this.current=h,this.dirty=!1)}}class Hi extends Ua{getDefault(){const h=this.gl;return[h.KEEP,h.KEEP,h.KEEP]}set(h){const k=this.current;(h[0]!==k[0]||h[1]!==k[1]||h[2]!==k[2]||this.dirty)&&(this.gl.stencilOp(h[0],h[1],h[2]),this.current=h,this.dirty=!1)}}class Do extends Ua{getDefault(){return!1}set(h){if(h===this.current&&!this.dirty)return;const k=this.gl;h?k.enable(k.STENCIL_TEST):k.disable(k.STENCIL_TEST),this.current=h,this.dirty=!1}}class $o extends Ua{getDefault(){return[0,1]}set(h){const k=this.current;(h[0]!==k[0]||h[1]!==k[1]||this.dirty)&&(this.gl.depthRange(h[0],h[1]),this.current=h,this.dirty=!1)}}class yr extends Ua{getDefault(){return!1}set(h){if(h===this.current&&!this.dirty)return;const k=this.gl;h?k.enable(k.DEPTH_TEST):k.disable(k.DEPTH_TEST),this.current=h,this.dirty=!1}}class Vr extends Ua{getDefault(){return this.gl.LESS}set(h){(h!==this.current||this.dirty)&&(this.gl.depthFunc(h),this.current=h,this.dirty=!1)}}class da extends Ua{getDefault(){return!1}set(h){if(h===this.current&&!this.dirty)return;const k=this.gl;h?k.enable(k.BLEND):k.disable(k.BLEND),this.current=h,this.dirty=!1}}class Za extends Ua{getDefault(){const h=this.gl;return[h.ONE,h.ZERO]}set(h){const k=this.current;(h[0]!==k[0]||h[1]!==k[1]||this.dirty)&&(this.gl.blendFunc(h[0],h[1]),this.current=h,this.dirty=!1)}}class ma extends Ua{getDefault(){return l.Color.transparent}set(h){const k=this.current;(h.r!==k.r||h.g!==k.g||h.b!==k.b||h.a!==k.a||this.dirty)&&(this.gl.blendColor(h.r,h.g,h.b,h.a),this.current=h,this.dirty=!1)}}class Wa extends Ua{getDefault(){return this.gl.FUNC_ADD}set(h){(h!==this.current||this.dirty)&&(this.gl.blendEquation(h),this.current=h,this.dirty=!1)}}class Yi extends Ua{getDefault(){return!1}set(h){if(h===this.current&&!this.dirty)return;const k=this.gl;h?k.enable(k.CULL_FACE):k.disable(k.CULL_FACE),this.current=h,this.dirty=!1}}class jo extends Ua{getDefault(){return this.gl.BACK}set(h){(h!==this.current||this.dirty)&&(this.gl.cullFace(h),this.current=h,this.dirty=!1)}}class Cn extends Ua{getDefault(){return this.gl.CCW}set(h){(h!==this.current||this.dirty)&&(this.gl.frontFace(h),this.current=h,this.dirty=!1)}}class uo extends Ua{getDefault(){return null}set(h){(h!==this.current||this.dirty)&&(this.gl.useProgram(h),this.current=h,this.dirty=!1)}}class fo extends Ua{getDefault(){return this.gl.TEXTURE0}set(h){(h!==this.current||this.dirty)&&(this.gl.activeTexture(h),this.current=h,this.dirty=!1)}}class Jo extends Ua{getDefault(){const h=this.gl;return[0,0,h.drawingBufferWidth,h.drawingBufferHeight]}set(h){const k=this.current;(h[0]!==k[0]||h[1]!==k[1]||h[2]!==k[2]||h[3]!==k[3]||this.dirty)&&(this.gl.viewport(h[0],h[1],h[2],h[3]),this.current=h,this.dirty=!1)}}class kr extends Ua{getDefault(){return null}set(h){if(h===this.current&&!this.dirty)return;const k=this.gl;k.bindFramebuffer(k.FRAMEBUFFER,h),this.current=h,this.dirty=!1}}class Qr extends Ua{getDefault(){return null}set(h){if(h===this.current&&!this.dirty)return;const k=this.gl;k.bindRenderbuffer(k.RENDERBUFFER,h),this.current=h,this.dirty=!1}}class Aa extends Ua{getDefault(){return null}set(h){if(h===this.current&&!this.dirty)return;const k=this.gl;k.bindTexture(k.TEXTURE_2D,h),this.current=h,this.dirty=!1}}class cs extends Ua{getDefault(){return null}set(h){if(h===this.current&&!this.dirty)return;const k=this.gl;k.bindBuffer(k.ARRAY_BUFFER,h),this.current=h,this.dirty=!1}}class ys extends Ua{getDefault(){return null}set(h){const k=this.gl;k.bindBuffer(k.ELEMENT_ARRAY_BUFFER,h),this.current=h,this.dirty=!1}}class zr extends Ua{getDefault(){return null}set(h){var k;if(h===this.current&&!this.dirty)return;const se=this.gl;hs(se)?se.bindVertexArray(h):null===(k=se.getExtension("OES_vertex_array_object"))||void 0===k||k.bindVertexArrayOES(h),this.current=h,this.dirty=!1}}class Pi extends Ua{getDefault(){return 4}set(h){if(h===this.current&&!this.dirty)return;const k=this.gl;k.pixelStorei(k.UNPACK_ALIGNMENT,h),this.current=h,this.dirty=!1}}class xo extends Ua{getDefault(){return!1}set(h){if(h===this.current&&!this.dirty)return;const k=this.gl;k.pixelStorei(k.UNPACK_PREMULTIPLY_ALPHA_WEBGL,h),this.current=h,this.dirty=!1}}class lr extends Ua{getDefault(){return!1}set(h){if(h===this.current&&!this.dirty)return;const k=this.gl;k.pixelStorei(k.UNPACK_FLIP_Y_WEBGL,h),this.current=h,this.dirty=!1}}class Ir extends Ua{constructor(h,k){super(h),this.context=h,this.parent=k}getDefault(){return null}}class Da extends Ir{setDirty(){this.dirty=!0}set(h){if(h===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const k=this.gl;k.framebufferTexture2D(k.FRAMEBUFFER,k.COLOR_ATTACHMENT0,k.TEXTURE_2D,h,0),this.current=h,this.dirty=!1}}class ia extends Ir{set(h){if(h===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const k=this.gl;k.framebufferRenderbuffer(k.FRAMEBUFFER,k.DEPTH_ATTACHMENT,k.RENDERBUFFER,h),this.current=h,this.dirty=!1}}class as extends Ir{set(h){if(h===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const k=this.gl;k.framebufferRenderbuffer(k.FRAMEBUFFER,k.DEPTH_STENCIL_ATTACHMENT,k.RENDERBUFFER,h),this.current=h,this.dirty=!1}}class Is{constructor(h,k,se,de,Ae){this.context=h,this.width=k,this.height=se;const Ct=h.gl,wt=this.framebuffer=Ct.createFramebuffer();if(this.colorAttachment=new Da(h,wt),de)this.depthAttachment=Ae?new as(h,wt):new ia(h,wt);else if(Ae)throw new Error("Stencil cannot be setted without depth");if(Ct.checkFramebufferStatus(Ct.FRAMEBUFFER)!==Ct.FRAMEBUFFER_COMPLETE)throw new Error("Framebuffer is not complete")}destroy(){const h=this.context.gl,k=this.colorAttachment.get();if(k&&h.deleteTexture(k),this.depthAttachment){const se=this.depthAttachment.get();se&&h.deleteRenderbuffer(se)}h.deleteFramebuffer(this.framebuffer)}}class ba{constructor(h,k,se){this.blendFunction=h,this.blendColor=k,this.mask=se}}ba.Replace=[1,0],ba.disabled=new ba(ba.Replace,l.Color.transparent,[!1,!1,!1,!1]),ba.unblended=new ba(ba.Replace,l.Color.transparent,[!0,!0,!0,!0]),ba.alphaBlended=new ba([1,771],l.Color.transparent,[!0,!0,!0,!0]);class Ss{constructor(h){var k,se;if(this.gl=h,this.clearColor=new Tn(this),this.clearDepth=new Qi(this),this.clearStencil=new To(this),this.colorMask=new sr(this),this.depthMask=new oi(this),this.stencilMask=new Vi(this),this.stencilFunc=new Ti(this),this.stencilOp=new Hi(this),this.stencilTest=new Do(this),this.depthRange=new $o(this),this.depthTest=new yr(this),this.depthFunc=new Vr(this),this.blend=new da(this),this.blendFunc=new Za(this),this.blendColor=new ma(this),this.blendEquation=new Wa(this),this.cullFace=new Yi(this),this.cullFaceSide=new jo(this),this.frontFace=new Cn(this),this.program=new uo(this),this.activeTexture=new fo(this),this.viewport=new Jo(this),this.bindFramebuffer=new kr(this),this.bindRenderbuffer=new Qr(this),this.bindTexture=new Aa(this),this.bindVertexBuffer=new cs(this),this.bindElementBuffer=new ys(this),this.bindVertexArray=new zr(this),this.pixelStoreUnpack=new Pi(this),this.pixelStoreUnpackPremultiplyAlpha=new xo(this),this.pixelStoreUnpackFlipY=new lr(this),this.extTextureFilterAnisotropic=h.getExtension("EXT_texture_filter_anisotropic")||h.getExtension("MOZ_EXT_texture_filter_anisotropic")||h.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=h.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.maxTextureSize=h.getParameter(h.MAX_TEXTURE_SIZE),hs(h)){this.HALF_FLOAT=h.HALF_FLOAT;const de=h.getExtension("EXT_color_buffer_half_float");this.RGBA16F=null!==(k=h.RGBA16F)&&void 0!==k?k:de?.RGBA16F_EXT,this.RGB16F=null!==(se=h.RGB16F)&&void 0!==se?se:de?.RGB16F_EXT,h.getExtension("EXT_color_buffer_float")}else{h.getExtension("EXT_color_buffer_half_float"),h.getExtension("OES_texture_half_float_linear");const de=h.getExtension("OES_texture_half_float");this.HALF_FLOAT=de?.HALF_FLOAT_OES}}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.bindVertexArray.dirty=!0,this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0}createIndexBuffer(h,k){return new Fa(this,h,k)}createVertexBuffer(h,k,se){return new dl(this,h,k,se)}createRenderbuffer(h,k,se){const de=this.gl,Ae=de.createRenderbuffer();return this.bindRenderbuffer.set(Ae),de.renderbufferStorage(de.RENDERBUFFER,h,k,se),this.bindRenderbuffer.set(null),Ae}createFramebuffer(h,k,se,de){return new Is(this,h,k,se,de)}clear({color:h,depth:k,stencil:se}){const de=this.gl;let Ae=0;h&&(Ae|=de.COLOR_BUFFER_BIT,this.clearColor.set(h),this.colorMask.set([!0,!0,!0,!0])),void 0!==k&&(Ae|=de.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(k),this.depthMask.set(!0)),void 0!==se&&(Ae|=de.STENCIL_BUFFER_BIT,this.clearStencil.set(se),this.stencilMask.set(255)),de.clear(Ae)}setCullFace(h){!1===h.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(h.mode),this.frontFace.set(h.frontFace))}setDepthMode(h){h.func!==this.gl.ALWAYS||h.mask?(this.depthTest.set(!0),this.depthFunc.set(h.func),this.depthMask.set(h.mask),this.depthRange.set(h.range)):this.depthTest.set(!1)}setStencilMode(h){h.test.func!==this.gl.ALWAYS||h.mask?(this.stencilTest.set(!0),this.stencilMask.set(h.mask),this.stencilOp.set([h.fail,h.depthFail,h.pass]),this.stencilFunc.set({func:h.test.func,ref:h.ref,mask:h.test.mask})):this.stencilTest.set(!1)}setColorMode(h){l.deepEqual(h.blendFunction,ba.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(h.blendFunction),this.blendColor.set(h.blendColor)),this.colorMask.set(h.mask)}createVertexArray(){var h;return hs(this.gl)?this.gl.createVertexArray():null===(h=this.gl.getExtension("OES_vertex_array_object"))||void 0===h?void 0:h.createVertexArrayOES()}deleteVertexArray(h){var k;return hs(this.gl)?this.gl.deleteVertexArray(h):null===(k=this.gl.getExtension("OES_vertex_array_object"))||void 0===k?void 0:k.deleteVertexArrayOES(h)}unbindVAO(){this.bindVertexArray.set(null)}}class Ca{constructor(h,k,se){this.func=h,this.mask=k,this.range=se}}Ca.ReadOnly=!1,Ca.ReadWrite=!0,Ca.disabled=new Ca(519,Ca.ReadOnly,[0,1]);class wa{constructor(h,k,se,de,Ae,Ct){this.test=h,this.ref=k,this.mask=se,this.fail=de,this.depthFail=Ae,this.pass=Ct}}wa.disabled=new wa({func:519,mask:0},0,0,7680,7680,7680);class Va{constructor(h,k,se){this.enable=h,this.mode=k,this.frontFace=se}}let zn;function di(xe,h,k,se,de,Ae,Ct){const wt=xe.context,Mt=wt.gl,fn=xe.useProgram("collisionBox"),Qn=[];let ei=0,bi=0;for(let en=0;en<se.length;en++){const qn=se[en],hi=h.getTile(qn),gi=hi.getBucket(k);if(!gi)continue;let ko=qn.posMatrix;0===de[0]&&0===de[1]||(ko=xe.translatePosMatrix(qn.posMatrix,hi,de,Ae));const Wo=Ct?gi.textCollisionBox:gi.iconCollisionBox,tr=gi.collisionCircleArray;if(tr.length>0){const br=l.create(),fa=ko;l.mul(br,gi.placementInvProjMatrix,xe.transform.glCoordMatrix),l.mul(br,br,gi.placementViewportMatrix),Qn.push({circleArray:tr,circleOffset:bi,transform:fa,invTransform:br,coord:qn}),ei+=tr.length/4,bi=ei}Wo&&fn.draw(wt,Mt.LINES,Ca.disabled,wa.disabled,xe.colorModeForRenderPass(),Va.disabled,wi(ko,xe.transform,hi),xe.style.map.terrain&&xe.style.map.terrain.getTerrainData(qn),k.id,Wo.layoutVertexBuffer,Wo.indexBuffer,Wo.segments,null,xe.transform.zoom,null,null,Wo.collisionVertexBuffer)}if(!Ct||!Qn.length)return;const zi=xe.useProgram("collisionCircle"),Be=new l.CollisionCircleLayoutArray;Be.resize(4*ei),Be._trim();let pt=0;for(const en of Qn)for(let qn=0;qn<en.circleArray.length/4;qn++){const hi=4*qn,gi=en.circleArray[hi+0],ko=en.circleArray[hi+1],Wo=en.circleArray[hi+2],tr=en.circleArray[hi+3];Be.emplace(pt++,gi,ko,Wo,tr,0),Be.emplace(pt++,gi,ko,Wo,tr,1),Be.emplace(pt++,gi,ko,Wo,tr,2),Be.emplace(pt++,gi,ko,Wo,tr,3)}(!zn||zn.length<2*ei)&&(zn=function(en){const qn=2*en,hi=new l.QuadTriangleArray;hi.resize(qn),hi._trim();for(let gi=0;gi<qn;gi++){const ko=6*gi;hi.uint16[ko+0]=4*gi+0,hi.uint16[ko+1]=4*gi+1,hi.uint16[ko+2]=4*gi+2,hi.uint16[ko+3]=4*gi+2,hi.uint16[ko+4]=4*gi+3,hi.uint16[ko+5]=4*gi+0}return hi}(ei));const Ye=wt.createIndexBuffer(zn,!0),ut=wt.createVertexBuffer(Be,l.collisionCircleLayout.members,!0);for(const en of Qn){const qn={u_matrix:en.transform,u_inv_matrix:en.invTransform,u_camera_to_center_distance:(Kt=xe.transform).cameraToCenterDistance,u_viewport_size:[Kt.width,Kt.height]};zi.draw(wt,Mt.TRIANGLES,Ca.disabled,wa.disabled,xe.colorModeForRenderPass(),Va.disabled,qn,xe.style.map.terrain&&xe.style.map.terrain.getTerrainData(en.coord),k.id,ut,Ye,l.SegmentVector.simpleSegment(0,2*en.circleOffset,en.circleArray.length,en.circleArray.length/2),null,xe.transform.zoom,null,null,null)}var Kt;ut.destroy(),Ye.destroy()}Va.disabled=new Va(!1,1029,2305),Va.backCCW=new Va(!0,1029,2305);const cn=l.identity(new Float32Array(16));function Zi(xe,h,k,se,de,Ae){const{horizontalAlign:Ct,verticalAlign:wt}=l.getAnchorAlignment(xe);return new l.Point((-(Ct-.5)*h/de+se[0])*Ae,(-(wt-.5)*k/de+se[1])*Ae)}function Eo(xe,h,k,se,de,Ae,Ct,wt,Mt,fn,Qn){const ei=xe.text.placedSymbolArray,bi=xe.text.dynamicLayoutVertexArray,zi=xe.icon.dynamicLayoutVertexArray,Be={};bi.clear();for(let pt=0;pt<ei.length;pt++){const Ye=ei.get(pt),ut=Ye.hidden||!Ye.crossTileID||xe.allowVerticalPlacement&&!Ye.placedOrientation?null:se[Ye.crossTileID];if(ut){const Kt=new l.Point(Ye.anchorX,Ye.anchorY),en=ii(Kt,k?Ct:Ae,Qn),qn=Oo(de.cameraToCenterDistance,en.signedDistanceFromCamera);let hi=l.evaluateSizeForFeature(xe.textSizeData,Mt,Ye)*qn/l.ONE_EM;k&&(hi*=xe.tilePixelRatio/wt);const{width:gi,height:ko,anchor:Wo,textOffset:tr,textBoxScale:br}=ut,fa=Zi(Wo,gi,ko,tr,br,hi),ga=k?ii(Kt.add(fa),Ae,Qn).point:en.point.add(h?fa.rotate(-de.angle):fa),$r=xe.allowVerticalPlacement&&Ye.placedOrientation===l.WritingMode.vertical?Math.PI/2:0;for(let Rr=0;Rr<Ye.numGlyphs;Rr++)l.addDynamicAttributes(bi,ga,$r);fn&&Ye.associatedIconIndex>=0&&(Be[Ye.associatedIconIndex]={shiftedAnchor:ga,angle:$r})}else $e(Ye.numGlyphs,bi)}if(fn){zi.clear();const pt=xe.icon.placedSymbolArray;for(let Ye=0;Ye<pt.length;Ye++){const ut=pt.get(Ye);if(ut.hidden)$e(ut.numGlyphs,zi);else{const Kt=Be[Ye];if(Kt)for(let en=0;en<ut.numGlyphs;en++)l.addDynamicAttributes(zi,Kt.shiftedAnchor,Kt.angle);else $e(ut.numGlyphs,zi)}}xe.icon.dynamicLayoutVertexBuffer.updateData(zi)}xe.text.dynamicLayoutVertexBuffer.updateData(bi)}function oa(xe,h,k){return k.iconsInText&&h?"symbolTextAndIcon":xe?"symbolSDF":"symbolIcon"}function Nr(xe,h,k,se,de,Ae,Ct,wt,Mt,fn,Qn,ei){const bi=xe.context,zi=bi.gl,Be=xe.transform,pt="map"===wt,Ye="map"===Mt,ut="viewport"!==wt&&"point"!==k.layout.get("symbol-placement"),Kt=pt&&!Ye&&!ut,en=!k.layout.get("symbol-sort-key").isConstant();let qn=!1;const hi=xe.depthModeForSublayer(0,Ca.ReadOnly),gi=k._unevaluatedLayout.hasValue("text-variable-anchor")||k._unevaluatedLayout.hasValue("text-variable-anchor-offset"),ko=[];for(const Wo of se){const tr=h.getTile(Wo),br=tr.getBucket(k);if(!br)continue;const fa=de?br.text:br.icon;if(!fa||!fa.segments.get().length||!fa.hasVisibleVertices)continue;const ga=fa.programConfigurations.get(k.id),$r=de||br.sdfIcons,Rr=de?br.textSizeData:br.iconSizeData,Xr=Ye||0!==Be.pitch,Es=xe.useProgram(oa($r,de,br),ga),Ys=l.evaluateSizeForZoom(Rr,Be.zoom),qa=xe.style.map.terrain&&xe.style.map.terrain.getTerrainData(Wo);let Qs,ic,wl,md,Dc=[0,0],yc=null;if(de)ic=tr.glyphAtlasTexture,wl=zi.LINEAR,Qs=tr.glyphAtlasTexture.size,br.iconsInText&&(Dc=tr.imageAtlasTexture.size,yc=tr.imageAtlasTexture,md=Xr||xe.options.rotating||xe.options.zooming||"composite"===Rr.kind||"camera"===Rr.kind?zi.LINEAR:zi.NEAREST);else{const pc=1!==k.layout.get("icon-size").constantOr(0)||br.iconsNeedLinear;ic=tr.imageAtlasTexture,wl=$r||xe.options.rotating||xe.options.zooming||pc||Xr?zi.LINEAR:zi.NEAREST,Qs=tr.imageAtlasTexture.size}const Wc=ht(tr,1,xe.transform.zoom),im=nn(Wo.posMatrix,Ye,pt,xe.transform,Wc),Vl=rn(Wo.posMatrix,Ye,pt,xe.transform,Wc),zc=gi&&br.hasTextData(),Il="none"!==k.layout.get("icon-text-fit")&&zc&&br.hasIconData();if(ut){const pc=xe.style.map.terrain?(Xc,ec)=>xe.style.map.terrain.getElevation(Wo,Xc,ec):null,Ul="map"===k.layout.get("text-rotation-alignment");Li(br,Wo.posMatrix,xe,de,im,Vl,Ye,fn,Ul,pc)}const Bc=xe.translatePosMatrix(Wo.posMatrix,tr,Ae,Ct),Ac=ut||de&&gi||Il?cn:im,Xl=xe.translatePosMatrix(Vl,tr,Ae,Ct,!0),uc=$r&&0!==k.paint.get(de?"text-halo-width":"icon-halo-width").constantOr(1);let Oc;Oc=$r?br.iconsInText?ja(Rr.kind,Ys,Kt,Ye,xe,Bc,Ac,Xl,Qs,Dc):ms(Rr.kind,Ys,Kt,Ye,xe,Bc,Ac,Xl,de,Qs,!0):Cs(Rr.kind,Ys,Kt,Ye,xe,Bc,Ac,Xl,de,Qs);const jc={program:Es,buffers:fa,uniformValues:Oc,atlasTexture:ic,atlasTextureIcon:yc,atlasInterpolation:wl,atlasInterpolationIcon:md,isSDF:$r,hasHalo:uc};if(en&&br.canOverlap){qn=!0;const pc=fa.segments.get();for(const Ul of pc)ko.push({segments:new l.SegmentVector([Ul]),sortKey:Ul.sortKey,state:jc,terrainData:qa})}else ko.push({segments:fa.segments,sortKey:0,state:jc,terrainData:qa})}qn&&ko.sort((Wo,tr)=>Wo.sortKey-tr.sortKey);for(const Wo of ko){const tr=Wo.state;if(bi.activeTexture.set(zi.TEXTURE0),tr.atlasTexture.bind(tr.atlasInterpolation,zi.CLAMP_TO_EDGE),tr.atlasTextureIcon&&(bi.activeTexture.set(zi.TEXTURE1),tr.atlasTextureIcon&&tr.atlasTextureIcon.bind(tr.atlasInterpolationIcon,zi.CLAMP_TO_EDGE)),tr.isSDF){const br=tr.uniformValues;tr.hasHalo&&(br.u_is_halo=1,Rs(tr.buffers,Wo.segments,k,xe,tr.program,hi,Qn,ei,br,Wo.terrainData)),br.u_is_halo=0}Rs(tr.buffers,Wo.segments,k,xe,tr.program,hi,Qn,ei,tr.uniformValues,Wo.terrainData)}}function Rs(xe,h,k,se,de,Ae,Ct,wt,Mt,fn){const Qn=se.context;de.draw(Qn,Qn.gl.TRIANGLES,Ae,Ct,wt,Va.disabled,Mt,fn,k.id,xe.layoutVertexBuffer,xe.indexBuffer,h,k.paint,se.transform.zoom,xe.programConfigurations.get(k.id),xe.dynamicLayoutVertexBuffer,xe.opacityVertexBuffer)}function Zr(xe,h,k,se,de){if(!k||!se||!se.imageAtlas)return;const Ae=se.imageAtlas.patternPositions;let Ct=Ae[k.to.toString()],wt=Ae[k.from.toString()];if(!Ct||!wt){const Mt=de.getPaintProperty(h);Ct=Ae[Mt],wt=Ae[Mt]}Ct&&wt&&xe.setConstantPatternPositions(Ct,wt)}function Na(xe,h,k,se,de,Ae,Ct){const wt=xe.context.gl,Mt="fill-pattern",fn=k.paint.get(Mt),Qn=fn&&fn.constantOr(1),ei=k.getCrossfadeParameters();let bi,zi,Be,pt,Ye;Ct?(zi=Qn&&!k.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",bi=wt.LINES):(zi=Qn?"fillPattern":"fill",bi=wt.TRIANGLES);const ut=fn.constantOr(null);for(const Kt of se){const en=h.getTile(Kt);if(Qn&&!en.patternsLoaded())continue;const qn=en.getBucket(k);if(!qn)continue;const hi=qn.programConfigurations.get(k.id),gi=xe.useProgram(zi,hi),ko=xe.style.map.terrain&&xe.style.map.terrain.getTerrainData(Kt);Qn&&(xe.context.activeTexture.set(wt.TEXTURE0),en.imageAtlasTexture.bind(wt.LINEAR,wt.CLAMP_TO_EDGE),hi.updatePaintBuffers(ei)),Zr(hi,Mt,ut,en,k);const Wo=ko?Kt:null,tr=xe.translatePosMatrix(Wo?Wo.posMatrix:Kt.posMatrix,en,k.paint.get("fill-translate"),k.paint.get("fill-translate-anchor"));if(Ct){pt=qn.indexBuffer2,Ye=qn.segments2;const br=[wt.drawingBufferWidth,wt.drawingBufferHeight];Be="fillOutlinePattern"===zi&&Qn?Wr(tr,xe,ei,en,br):In(tr,br)}else pt=qn.indexBuffer,Ye=qn.segments,Be=Qn?hr(tr,xe,ei,en):_r(tr);gi.draw(xe.context,bi,de,xe.stencilModeForClipping(Kt),Ae,Va.disabled,Be,ko,k.id,qn.layoutVertexBuffer,pt,Ye,k.paint,xe.transform.zoom,hi)}}function ol(xe,h,k,se,de,Ae,Ct){const wt=xe.context,Mt=wt.gl,fn="fill-extrusion-pattern",Qn=k.paint.get(fn),ei=Qn.constantOr(1),bi=k.getCrossfadeParameters(),zi=k.paint.get("fill-extrusion-opacity"),Be=Qn.constantOr(null);for(const pt of se){const Ye=h.getTile(pt),ut=Ye.getBucket(k);if(!ut)continue;const Kt=xe.style.map.terrain&&xe.style.map.terrain.getTerrainData(pt),en=ut.programConfigurations.get(k.id),qn=xe.useProgram(ei?"fillExtrusionPattern":"fillExtrusion",en);ei&&(xe.context.activeTexture.set(Mt.TEXTURE0),Ye.imageAtlasTexture.bind(Mt.LINEAR,Mt.CLAMP_TO_EDGE),en.updatePaintBuffers(bi)),Zr(en,fn,Be,Ye,k);const hi=xe.translatePosMatrix(pt.posMatrix,Ye,k.paint.get("fill-extrusion-translate"),k.paint.get("fill-extrusion-translate-anchor")),gi=k.paint.get("fill-extrusion-vertical-gradient"),ko=ei?eo(hi,xe,gi,zi,pt,bi,Ye):Wn(hi,xe,gi,zi);qn.draw(wt,wt.gl.TRIANGLES,de,Ae,Ct,Va.backCCW,ko,Kt,k.id,ut.layoutVertexBuffer,ut.indexBuffer,ut.segments,k.paint,xe.transform.zoom,en,xe.style.map.terrain&&ut.centroidVertexBuffer)}}function Cl(xe,h,k,se,de,Ae,Ct){const wt=xe.context,Mt=wt.gl,fn=k.fbo;if(!fn)return;const Qn=xe.useProgram("hillshade"),ei=xe.style.map.terrain&&xe.style.map.terrain.getTerrainData(h);wt.activeTexture.set(Mt.TEXTURE0),Mt.bindTexture(Mt.TEXTURE_2D,fn.colorAttachment.get()),Qn.draw(wt,Mt.TRIANGLES,de,Ae,Ct,Va.disabled,((bi,zi,Be,pt)=>{const Ye=Be.paint.get("hillshade-shadow-color"),ut=Be.paint.get("hillshade-highlight-color"),Kt=Be.paint.get("hillshade-accent-color");let en=Be.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===Be.paint.get("hillshade-illumination-anchor")&&(en-=bi.transform.angle);const qn=!bi.options.moving;return{u_matrix:pt?pt.posMatrix:bi.transform.calculatePosMatrix(zi.tileID.toUnwrapped(),qn),u_image:0,u_latrange:wo(0,zi.tileID),u_light:[Be.paint.get("hillshade-exaggeration"),en],u_shadow:Ye,u_highlight:ut,u_accent:Kt}})(xe,k,se,ei?h:null),ei,se.id,xe.rasterBoundsBuffer,xe.quadTriangleIndexBuffer,xe.rasterBoundsSegments)}function Ql(xe,h,k,se,de,Ae){const Ct=xe.context,wt=Ct.gl,Mt=h.dem;if(Mt&&Mt.data){const fn=Mt.dim,Qn=Mt.stride,ei=Mt.getPixels();if(Ct.activeTexture.set(wt.TEXTURE1),Ct.pixelStoreUnpackPremultiplyAlpha.set(!1),h.demTexture=h.demTexture||xe.getTileTexture(Qn),h.demTexture){const zi=h.demTexture;zi.update(ei,{premultiply:!1}),zi.bind(wt.NEAREST,wt.CLAMP_TO_EDGE)}else h.demTexture=new j(Ct,ei,wt.RGBA,{premultiply:!1}),h.demTexture.bind(wt.NEAREST,wt.CLAMP_TO_EDGE);Ct.activeTexture.set(wt.TEXTURE0);let bi=h.fbo;if(!bi){const zi=new j(Ct,{width:fn,height:fn,data:null},wt.RGBA);zi.bind(wt.LINEAR,wt.CLAMP_TO_EDGE),bi=h.fbo=Ct.createFramebuffer(fn,fn,!0,!1),bi.colorAttachment.set(zi.texture)}Ct.bindFramebuffer.set(bi.framebuffer),Ct.viewport.set([0,0,fn,fn]),xe.useProgram("hillshadePrepare").draw(Ct,wt.TRIANGLES,se,de,Ae,Va.disabled,((zi,Be)=>{const pt=Be.stride,Ye=l.create();return l.ortho(Ye,0,l.EXTENT,-l.EXTENT,0,0,1),l.translate(Ye,Ye,[0,-l.EXTENT,0]),{u_matrix:Ye,u_image:1,u_dimension:[pt,pt],u_zoom:zi.overscaledZ,u_unpack:Be.getUnpackVector()}})(h.tileID,Mt),null,k.id,xe.rasterBoundsBuffer,xe.quadTriangleIndexBuffer,xe.rasterBoundsSegments),h.needsHillshadePrepare=!1}}function Ho(xe,h,k,se,de,Ae){const Ct=se.paint.get("raster-fade-duration");if(!Ae&&Ct>0){const wt=l.browser.now(),Mt=(wt-xe.timeAdded)/Ct,fn=h?(wt-h.timeAdded)/Ct:-1,Qn=k.getSource(),ei=de.coveringZoomLevel({tileSize:Qn.tileSize,roundZoom:Qn.roundZoom}),bi=!h||Math.abs(h.tileID.overscaledZ-ei)>Math.abs(xe.tileID.overscaledZ-ei),zi=bi&&xe.refreshedUponExpiration?1:l.clamp(bi?Mt:1-fn,0,1);return xe.refreshedUponExpiration&&Mt>=1&&(xe.refreshedUponExpiration=!1),h?{opacity:1,mix:1-zi}:{opacity:zi,mix:0}}return{opacity:1,mix:0}}const mc=new l.Color(1,0,0,1),os=new l.Color(0,1,0,1),ps=new l.Color(0,0,1,1),Ps=new l.Color(1,0,1,1),Ba=new l.Color(0,1,1,1);function Ka(xe,h,k,se){$s(xe,0,h+k/2,xe.transform.width,k,se)}function vc(xe,h,k,se){$s(xe,h-k/2,0,k,xe.transform.height,se)}function $s(xe,h,k,se,de,Ae){const Ct=xe.context,wt=Ct.gl;wt.enable(wt.SCISSOR_TEST),wt.scissor(h*xe.pixelRatio,k*xe.pixelRatio,se*xe.pixelRatio,de*xe.pixelRatio),Ct.clear({color:Ae}),wt.disable(wt.SCISSOR_TEST)}function js(xe,h,k){const se=xe.context,de=se.gl,Ae=k.posMatrix,Ct=xe.useProgram("debug"),wt=Ca.disabled,Mt=wa.disabled,fn=xe.colorModeForRenderPass(),ei=xe.style.map.terrain&&xe.style.map.terrain.getTerrainData(k);se.activeTexture.set(de.TEXTURE0);const bi=h.getTileByID(k.key).latestRawTileData,zi=Math.floor((bi&&bi.byteLength||0)/1024),Be=h.getTile(k).tileSize,pt=512/Math.min(Be,512)*(k.overscaledZ/xe.transform.zoom)*.5;let Ye=k.canonical.toString();k.overscaledZ!==k.canonical.z&&(Ye+=` => ${k.overscaledZ}`),function(ut,Kt){ut.initDebugOverlayCanvas();const en=ut.debugOverlayCanvas,qn=ut.context.gl,hi=ut.debugOverlayCanvas.getContext("2d");hi.clearRect(0,0,en.width,en.height),hi.shadowColor="white",hi.shadowBlur=2,hi.lineWidth=1.5,hi.strokeStyle="white",hi.textBaseline="top",hi.font="bold 36px Open Sans, sans-serif",hi.fillText(Kt,5,5),hi.strokeText(Kt,5,5),ut.debugOverlayTexture.update(en),ut.debugOverlayTexture.bind(qn.LINEAR,qn.CLAMP_TO_EDGE)}(xe,`${Ye} ${zi}kB`),Ct.draw(se,de.TRIANGLES,wt,Mt,ba.alphaBlended,Va.disabled,zo(Ae,l.Color.transparent,pt),null,"$debug",xe.debugBuffer,xe.quadTriangleIndexBuffer,xe.debugSegments),Ct.draw(se,de.LINE_STRIP,wt,Mt,fn,Va.disabled,zo(Ae,l.Color.red),ei,"$debug",xe.debugBuffer,xe.tileBorderIndexBuffer,xe.debugSegments)}function bc(xe,h,k){const se=xe.context,de=se.gl,Ae=xe.colorModeForRenderPass(),Ct=new Ca(de.LEQUAL,Ca.ReadWrite,xe.depthRangeFor3D),wt=xe.useProgram("terrain"),Mt=h.getTerrainMesh();se.bindFramebuffer.set(null),se.viewport.set([0,0,xe.width,xe.height]);for(const fn of k){const Qn=xe.renderToTexture.getTexture(fn),ei=h.getTerrainData(fn.tileID);se.activeTexture.set(de.TEXTURE0),de.bindTexture(de.TEXTURE_2D,Qn.texture);const bi={u_matrix:xe.transform.calculatePosMatrix(fn.tileID.toUnwrapped()),u_texture:0,u_ele_delta:h.getMeshFrameDelta(xe.transform.zoom)};wt.draw(se,de.TRIANGLES,Ct,wa.disabled,Ae,Va.backCCW,bi,ei,"terrain",Mt.vertexBuffer,Mt.indexBuffer,Mt.segments)}}class ql{constructor(h,k){this.context=new Ss(h),this.transform=k,this._tileTextures={},this.terrainFacilitator={dirty:!0,matrix:l.create(),renderTime:0},this.setup(),this.numSublayers=Je.maxUnderzooming+Je.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Wt}resize(h,k,se){if(this.width=Math.floor(h*se),this.height=Math.floor(k*se),this.pixelRatio=se,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const de of this.style._order)this.style._layers[de].resize()}setup(){const h=this.context,k=new l.PosArray;k.emplaceBack(0,0),k.emplaceBack(l.EXTENT,0),k.emplaceBack(0,l.EXTENT),k.emplaceBack(l.EXTENT,l.EXTENT),this.tileExtentBuffer=h.createVertexBuffer(k,Jn.members),this.tileExtentSegments=l.SegmentVector.simpleSegment(0,0,4,2);const se=new l.PosArray;se.emplaceBack(0,0),se.emplaceBack(l.EXTENT,0),se.emplaceBack(0,l.EXTENT),se.emplaceBack(l.EXTENT,l.EXTENT),this.debugBuffer=h.createVertexBuffer(se,Jn.members),this.debugSegments=l.SegmentVector.simpleSegment(0,0,4,5);const de=new l.RasterBoundsArray;de.emplaceBack(0,0,0,0),de.emplaceBack(l.EXTENT,0,l.EXTENT,0),de.emplaceBack(0,l.EXTENT,0,l.EXTENT),de.emplaceBack(l.EXTENT,l.EXTENT,l.EXTENT,l.EXTENT),this.rasterBoundsBuffer=h.createVertexBuffer(de,Vt.members),this.rasterBoundsSegments=l.SegmentVector.simpleSegment(0,0,4,2);const Ae=new l.PosArray;Ae.emplaceBack(0,0),Ae.emplaceBack(1,0),Ae.emplaceBack(0,1),Ae.emplaceBack(1,1),this.viewportBuffer=h.createVertexBuffer(Ae,Jn.members),this.viewportSegments=l.SegmentVector.simpleSegment(0,0,4,2);const Ct=new l.LineStripIndexArray;Ct.emplaceBack(0),Ct.emplaceBack(1),Ct.emplaceBack(3),Ct.emplaceBack(2),Ct.emplaceBack(0),this.tileBorderIndexBuffer=h.createIndexBuffer(Ct);const wt=new l.TriangleIndexArray;wt.emplaceBack(0,1,2),wt.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=h.createIndexBuffer(wt);const Mt=this.context.gl;this.stencilClearMode=new wa({func:Mt.ALWAYS,mask:0},0,255,Mt.ZERO,Mt.ZERO,Mt.ZERO)}clearStencil(){const h=this.context,k=h.gl;this.nextStencilID=1,this.currentStencilSource=void 0;const se=l.create();l.ortho(se,0,this.width,this.height,0,0,1),l.scale(se,se,[k.drawingBufferWidth,k.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(h,k.TRIANGLES,Ca.disabled,this.stencilClearMode,ba.disabled,Va.disabled,xi(se),null,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(h,k){if(this.currentStencilSource===h.source||!h.isTileClipped()||!k||!k.length)return;this.currentStencilSource=h.source;const se=this.context,de=se.gl;this.nextStencilID+k.length>256&&this.clearStencil(),se.setColorMode(ba.disabled),se.setDepthMode(Ca.disabled);const Ae=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(const Ct of k){const wt=this._tileClippingMaskIDs[Ct.key]=this.nextStencilID++,Mt=this.style.map.terrain&&this.style.map.terrain.getTerrainData(Ct);Ae.draw(se,de.TRIANGLES,Ca.disabled,new wa({func:de.ALWAYS,mask:0},wt,255,de.KEEP,de.KEEP,de.REPLACE),ba.disabled,Va.disabled,xi(Ct.posMatrix),Mt,"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();const h=this.nextStencilID++,k=this.context.gl;return new wa({func:k.NOTEQUAL,mask:255},h,255,k.KEEP,k.KEEP,k.REPLACE)}stencilModeForClipping(h){const k=this.context.gl;return new wa({func:k.EQUAL,mask:255},this._tileClippingMaskIDs[h.key],0,k.KEEP,k.KEEP,k.REPLACE)}stencilConfigForOverlap(h){const k=this.context.gl,se=h.sort((Ct,wt)=>wt.overscaledZ-Ct.overscaledZ),de=se[se.length-1].overscaledZ,Ae=se[0].overscaledZ-de+1;if(Ae>1){this.currentStencilSource=void 0,this.nextStencilID+Ae>256&&this.clearStencil();const Ct={};for(let wt=0;wt<Ae;wt++)Ct[wt+de]=new wa({func:k.GEQUAL,mask:255},wt+this.nextStencilID,255,k.KEEP,k.KEEP,k.REPLACE);return this.nextStencilID+=Ae,[Ct,se]}return[{[de]:wa.disabled},se]}colorModeForRenderPass(){const h=this.context.gl;return this._showOverdrawInspector?new ba([h.CONSTANT_COLOR,h.ONE],new l.Color(.125,.125,.125,0),[!0,!0,!0,!0]):"opaque"===this.renderPass?ba.unblended:ba.alphaBlended}depthModeForSublayer(h,k,se){if(!this.opaquePassEnabledForLayer())return Ca.disabled;const de=1-((1+this.currentLayer)*this.numSublayers+h)*this.depthEpsilon;return new Ca(se||this.context.gl.LEQUAL,k,[de,de])}opaquePassEnabledForLayer(){return this.currentLayer<this.opaquePassCutoff}render(h,k){this.style=h,this.options=k,this.lineAtlas=h.lineAtlas,this.imageManager=h.imageManager,this.glyphManager=h.glyphManager,this.symbolFadeChange=h.placement.symbolFadeChange(l.browser.now()),this.imageManager.beginFrame();const se=this.style._order,de=this.style.sourceCaches,Ae={},Ct={},wt={};for(const Mt in de){const fn=de[Mt];fn.used&&fn.prepare(this.context),Ae[Mt]=fn.getVisibleCoordinates(),Ct[Mt]=Ae[Mt].slice().reverse(),wt[Mt]=fn.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(let Mt=0;Mt<se.length;Mt++)if(this.style._layers[se[Mt]].is3D()){this.opaquePassCutoff=Mt;break}if(this.renderToTexture){this.renderToTexture.prepareForRender(this.style,this.transform.zoom),this.opaquePassCutoff=0;const Mt=this.style.map.terrain.sourceCache.tilesAfterTime(this.terrainFacilitator.renderTime);(this.terrainFacilitator.dirty||!l.equals(this.terrainFacilitator.matrix,this.transform.projMatrix)||Mt.length)&&(l.copy(this.terrainFacilitator.matrix,this.transform.projMatrix),this.terrainFacilitator.renderTime=Date.now(),this.terrainFacilitator.dirty=!1,function(fn,Qn){const ei=fn.context,bi=ei.gl,zi=ba.unblended,Be=new Ca(bi.LEQUAL,Ca.ReadWrite,[0,1]),pt=Qn.getTerrainMesh(),Ye=Qn.sourceCache.getRenderableTiles(),ut=fn.useProgram("terrainDepth");ei.bindFramebuffer.set(Qn.getFramebuffer("depth").framebuffer),ei.viewport.set([0,0,fn.width/devicePixelRatio,fn.height/devicePixelRatio]),ei.clear({color:l.Color.transparent,depth:1});for(const Kt of Ye){const en=Qn.getTerrainData(Kt.tileID),qn={u_matrix:fn.transform.calculatePosMatrix(Kt.tileID.toUnwrapped()),u_ele_delta:Qn.getMeshFrameDelta(fn.transform.zoom)};ut.draw(ei,bi.TRIANGLES,Be,wa.disabled,zi,Va.backCCW,qn,en,"terrain",pt.vertexBuffer,pt.indexBuffer,pt.segments)}ei.bindFramebuffer.set(null),ei.viewport.set([0,0,fn.width,fn.height])}(this,this.style.map.terrain),function(fn,Qn){const ei=fn.context,bi=ei.gl,zi=ba.unblended,Be=new Ca(bi.LEQUAL,Ca.ReadWrite,[0,1]),pt=Qn.getTerrainMesh(),Ye=Qn.getCoordsTexture(),ut=Qn.sourceCache.getRenderableTiles(),Kt=fn.useProgram("terrainCoords");ei.bindFramebuffer.set(Qn.getFramebuffer("coords").framebuffer),ei.viewport.set([0,0,fn.width/devicePixelRatio,fn.height/devicePixelRatio]),ei.clear({color:l.Color.transparent,depth:1}),Qn.coordsIndex=[];for(const en of ut){const qn=Qn.getTerrainData(en.tileID);ei.activeTexture.set(bi.TEXTURE0),bi.bindTexture(bi.TEXTURE_2D,Ye.texture);const hi={u_matrix:fn.transform.calculatePosMatrix(en.tileID.toUnwrapped()),u_terrain_coords_id:(255-Qn.coordsIndex.length)/255,u_texture:0,u_ele_delta:Qn.getMeshFrameDelta(fn.transform.zoom)};Kt.draw(ei,bi.TRIANGLES,Be,wa.disabled,zi,Va.backCCW,hi,qn,"terrain",pt.vertexBuffer,pt.indexBuffer,pt.segments),Qn.coordsIndex.push(en.tileID.key)}ei.bindFramebuffer.set(null),ei.viewport.set([0,0,fn.width,fn.height])}(this,this.style.map.terrain))}this.renderPass="offscreen";for(const Mt of se){const fn=this.style._layers[Mt];if(!fn.hasOffscreenPass()||fn.isHidden(this.transform.zoom))continue;const Qn=Ct[fn.source];("custom"===fn.type||Qn.length)&&this.renderLayer(this,de[fn.source],fn,Qn)}if(this.context.bindFramebuffer.set(null),this.context.clear({color:k.showOverdrawInspector?l.Color.black:l.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=k.showOverdrawInspector,this.depthRangeFor3D=[0,1-(h._order.length+2)*this.numSublayers*this.depthEpsilon],!this.renderToTexture)for(this.renderPass="opaque",this.currentLayer=se.length-1;this.currentLayer>=0;this.currentLayer--){const Mt=this.style._layers[se[this.currentLayer]],fn=de[Mt.source],Qn=Ae[Mt.source];this._renderTileClippingMasks(Mt,Qn),this.renderLayer(this,fn,Mt,Qn)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer<se.length;this.currentLayer++){const Mt=this.style._layers[se[this.currentLayer]],fn=de[Mt.source];if(this.renderToTexture&&this.renderToTexture.renderLayer(Mt))continue;const Qn=("symbol"===Mt.type?wt:Ct)[Mt.source];this._renderTileClippingMasks(Mt,Ae[Mt.source]),this.renderLayer(this,fn,Mt,Qn)}if(this.options.showTileBoundaries){const Mt=function(fn,Qn){let ei=null;const bi=Object.values(fn._layers).flatMap(Ye=>Ye.source&&!Ye.isHidden(Qn)?[fn.sourceCaches[Ye.source]]:[]),zi=bi.filter(Ye=>"vector"===Ye.getSource().type),Be=bi.filter(Ye=>"vector"!==Ye.getSource().type),pt=Ye=>{(!ei||ei.getSource().maxzoom<Ye.getSource().maxzoom)&&(ei=Ye)};return zi.forEach(Ye=>pt(Ye)),ei||Be.forEach(Ye=>pt(Ye)),ei}(this.style,this.transform.zoom);Mt&&function(fn,Qn,ei){for(let bi=0;bi<ei.length;bi++)js(fn,Qn,ei[bi])}(this,Mt,Mt.getVisibleCoordinates())}this.options.showPadding&&function(Mt){const fn=Mt.transform.padding;Ka(Mt,Mt.transform.height-(fn.top||0),3,mc),Ka(Mt,fn.bottom||0,3,os),vc(Mt,fn.left||0,3,ps),vc(Mt,Mt.transform.width-(fn.right||0),3,Ps);const Qn=Mt.transform.centerPoint;var ei,bi,zi,Be;$s(ei=Mt,(bi=Qn.x)-1,(zi=Mt.transform.height-Qn.y)-10,2,20,Be=Ba),$s(ei,bi-10,zi-1,20,2,Be)}(this),this.context.setDefault()}renderLayer(h,k,se,de){if(!se.isHidden(this.transform.zoom)&&("background"===se.type||"custom"===se.type||(de||[]).length))switch(this.id=se.id,se.type){case"symbol":!function(Ae,Ct,wt,Mt,fn){if("translucent"!==Ae.renderPass)return;const Qn=wa.disabled,ei=Ae.colorModeForRenderPass();(wt._unevaluatedLayout.hasValue("text-variable-anchor")||wt._unevaluatedLayout.hasValue("text-variable-anchor-offset"))&&function(bi,zi,Be,pt,Ye,ut,Kt){const en=zi.transform,qn="map"===Ye,hi="map"===ut;for(const gi of bi){const ko=pt.getTile(gi),Wo=ko.getBucket(Be);if(!Wo||!Wo.text||!Wo.text.segments.get().length)continue;const tr=l.evaluateSizeForZoom(Wo.textSizeData,en.zoom),br=ht(ko,1,zi.transform.zoom),fa=nn(gi.posMatrix,hi,qn,zi.transform,br),ga="none"!==Be.layout.get("icon-text-fit")&&Wo.hasIconData();if(tr){const $r=Math.pow(2,en.zoom-ko.tileID.overscaledZ);Eo(Wo,qn,hi,Kt,en,fa,gi.posMatrix,$r,tr,ga,zi.style.map.terrain?(Rr,Xr)=>zi.style.map.terrain.getElevation(gi,Rr,Xr):null)}}}(Mt,Ae,wt,Ct,wt.layout.get("text-rotation-alignment"),wt.layout.get("text-pitch-alignment"),fn),0!==wt.paint.get("icon-opacity").constantOr(1)&&Nr(Ae,Ct,wt,Mt,!1,wt.paint.get("icon-translate"),wt.paint.get("icon-translate-anchor"),wt.layout.get("icon-rotation-alignment"),wt.layout.get("icon-pitch-alignment"),wt.layout.get("icon-keep-upright"),Qn,ei),0!==wt.paint.get("text-opacity").constantOr(1)&&Nr(Ae,Ct,wt,Mt,!0,wt.paint.get("text-translate"),wt.paint.get("text-translate-anchor"),wt.layout.get("text-rotation-alignment"),wt.layout.get("text-pitch-alignment"),wt.layout.get("text-keep-upright"),Qn,ei),Ct.map.showCollisionBoxes&&(di(Ae,Ct,wt,Mt,wt.paint.get("text-translate"),wt.paint.get("text-translate-anchor"),!0),di(Ae,Ct,wt,Mt,wt.paint.get("icon-translate"),wt.paint.get("icon-translate-anchor"),!1))}(h,k,se,de,this.style.placement.variableOffsets);break;case"circle":!function(Ae,Ct,wt,Mt){if("translucent"!==Ae.renderPass)return;const fn=wt.paint.get("circle-opacity"),Qn=wt.paint.get("circle-stroke-width"),ei=wt.paint.get("circle-stroke-opacity"),bi=!wt.layout.get("circle-sort-key").isConstant();if(0===fn.constantOr(1)&&(0===Qn.constantOr(1)||0===ei.constantOr(1)))return;const zi=Ae.context,Be=zi.gl,pt=Ae.depthModeForSublayer(0,Ca.ReadOnly),Ye=wa.disabled,ut=Ae.colorModeForRenderPass(),Kt=[];for(let en=0;en<Mt.length;en++){const qn=Mt[en],hi=Ct.getTile(qn),gi=hi.getBucket(wt);if(!gi)continue;const ko=gi.programConfigurations.get(wt.id),Wo=Ae.useProgram("circle",ko),tr=gi.layoutVertexBuffer,br=gi.indexBuffer,fa=Ae.style.map.terrain&&Ae.style.map.terrain.getTerrainData(qn),ga={programConfiguration:ko,program:Wo,layoutVertexBuffer:tr,indexBuffer:br,uniformValues:qi(Ae,qn,hi,wt),terrainData:fa};if(bi){const $r=gi.segments.get();for(const Rr of $r)Kt.push({segments:new l.SegmentVector([Rr]),sortKey:Rr.sortKey,state:ga})}else Kt.push({segments:gi.segments,sortKey:0,state:ga})}bi&&Kt.sort((en,qn)=>en.sortKey-qn.sortKey);for(const en of Kt){const{programConfiguration:qn,program:hi,layoutVertexBuffer:gi,indexBuffer:ko,uniformValues:Wo,terrainData:tr}=en.state;hi.draw(zi,Be.TRIANGLES,pt,Ye,ut,Va.disabled,Wo,tr,wt.id,gi,ko,en.segments,wt.paint,Ae.transform.zoom,qn)}}(h,k,se,de);break;case"heatmap":!function(Ae,Ct,wt,Mt){if(0!==wt.paint.get("heatmap-opacity"))if("offscreen"===Ae.renderPass){const fn=Ae.context,Qn=fn.gl,ei=wa.disabled,bi=new ba([Qn.ONE,Qn.ONE],l.Color.transparent,[!0,!0,!0,!0]);(function(zi,Be,pt){const Ye=zi.gl;zi.activeTexture.set(Ye.TEXTURE1),zi.viewport.set([0,0,Be.width/4,Be.height/4]);let ut=pt.heatmapFbo;if(ut)Ye.bindTexture(Ye.TEXTURE_2D,ut.colorAttachment.get()),zi.bindFramebuffer.set(ut.framebuffer);else{const Kt=Ye.createTexture();Ye.bindTexture(Ye.TEXTURE_2D,Kt),Ye.texParameteri(Ye.TEXTURE_2D,Ye.TEXTURE_WRAP_S,Ye.CLAMP_TO_EDGE),Ye.texParameteri(Ye.TEXTURE_2D,Ye.TEXTURE_WRAP_T,Ye.CLAMP_TO_EDGE),Ye.texParameteri(Ye.TEXTURE_2D,Ye.TEXTURE_MIN_FILTER,Ye.LINEAR),Ye.texParameteri(Ye.TEXTURE_2D,Ye.TEXTURE_MAG_FILTER,Ye.LINEAR),ut=pt.heatmapFbo=zi.createFramebuffer(Be.width/4,Be.height/4,!1,!1),function(en,qn,hi,gi){var ko,Wo;const tr=en.gl,br=null!==(ko=en.HALF_FLOAT)&&void 0!==ko?ko:tr.UNSIGNED_BYTE,fa=null!==(Wo=en.RGBA16F)&&void 0!==Wo?Wo:tr.RGBA;tr.texImage2D(tr.TEXTURE_2D,0,fa,qn.width/4,qn.height/4,0,tr.RGBA,br,null),gi.colorAttachment.set(hi)}(zi,Be,Kt,ut)}})(fn,Ae,wt),fn.clear({color:l.Color.transparent});for(let zi=0;zi<Mt.length;zi++){const Be=Mt[zi];if(Ct.hasRenderableParent(Be))continue;const pt=Ct.getTile(Be),Ye=pt.getBucket(wt);if(!Ye)continue;const ut=Ye.programConfigurations.get(wt.id),Kt=Ae.useProgram("heatmap",ut),{zoom:en}=Ae.transform;Kt.draw(fn,Qn.TRIANGLES,Ca.disabled,ei,bi,Va.disabled,ki(Be.posMatrix,pt,en,wt.paint.get("heatmap-intensity")),null,wt.id,Ye.layoutVertexBuffer,Ye.indexBuffer,Ye.segments,wt.paint,Ae.transform.zoom,ut)}fn.viewport.set([0,0,Ae.width,Ae.height])}else"translucent"===Ae.renderPass&&(Ae.context.setColorMode(Ae.colorModeForRenderPass()),function(fn,Qn){const ei=fn.context,bi=ei.gl,zi=Qn.heatmapFbo;if(!zi)return;ei.activeTexture.set(bi.TEXTURE0),bi.bindTexture(bi.TEXTURE_2D,zi.colorAttachment.get()),ei.activeTexture.set(bi.TEXTURE1);let Be=Qn.colorRampTexture;Be||(Be=Qn.colorRampTexture=new j(ei,Qn.colorRamp,bi.RGBA)),Be.bind(bi.LINEAR,bi.CLAMP_TO_EDGE),fn.useProgram("heatmapTexture").draw(ei,bi.TRIANGLES,Ca.disabled,wa.disabled,fn.colorModeForRenderPass(),Va.disabled,((pt,Ye,ut,Kt)=>{const en=l.create();l.ortho(en,0,pt.width,pt.height,0,0,1);const qn=pt.context.gl;return{u_matrix:en,u_world:[qn.drawingBufferWidth,qn.drawingBufferHeight],u_image:0,u_color_ramp:1,u_opacity:Ye.paint.get("heatmap-opacity")}})(fn,Qn),null,Qn.id,fn.viewportBuffer,fn.quadTriangleIndexBuffer,fn.viewportSegments,Qn.paint,fn.transform.zoom)}(Ae,wt))}(h,k,se,de);break;case"line":!function(Ae,Ct,wt,Mt){if("translucent"!==Ae.renderPass)return;const fn=wt.paint.get("line-opacity"),Qn=wt.paint.get("line-width");if(0===fn.constantOr(1)||0===Qn.constantOr(1))return;const ei=Ae.depthModeForSublayer(0,Ca.ReadOnly),bi=Ae.colorModeForRenderPass(),zi=wt.paint.get("line-dasharray"),Be=wt.paint.get("line-pattern"),pt=Be.constantOr(1),Ye=wt.paint.get("line-gradient"),ut=wt.getCrossfadeParameters(),Kt=pt?"linePattern":zi?"lineSDF":Ye?"lineGradient":"line",en=Ae.context,qn=en.gl;let hi=!0;for(const gi of Mt){const ko=Ct.getTile(gi);if(pt&&!ko.patternsLoaded())continue;const Wo=ko.getBucket(wt);if(!Wo)continue;const tr=Wo.programConfigurations.get(wt.id),br=Ae.context.program.get(),fa=Ae.useProgram(Kt,tr),ga=hi||fa.program!==br,$r=Ae.style.map.terrain&&Ae.style.map.terrain.getTerrainData(gi),Rr=Be.constantOr(null);if(Rr&&ko.imageAtlas){const Ys=ko.imageAtlas,qa=Ys.patternPositions[Rr.to.toString()],Qs=Ys.patternPositions[Rr.from.toString()];qa&&Qs&&tr.setConstantPatternPositions(qa,Qs)}const Xr=$r?gi:null,Es=pt?Cr(Ae,ko,wt,ut,Xr):zi?vr(Ae,ko,wt,zi,ut,Xr):Ye?ho(Ae,ko,wt,Wo.lineClipsArray.length,Xr):Ei(Ae,ko,wt,Xr);if(pt)en.activeTexture.set(qn.TEXTURE0),ko.imageAtlasTexture.bind(qn.LINEAR,qn.CLAMP_TO_EDGE),tr.updatePaintBuffers(ut);else if(zi&&(ga||Ae.lineAtlas.dirty))en.activeTexture.set(qn.TEXTURE0),Ae.lineAtlas.bind(en);else if(Ye){const Ys=Wo.gradients[wt.id];let qa=Ys.texture;if(wt.gradientVersion!==Ys.version){let Qs=256;if(wt.stepInterpolant){const ic=Ct.getSource().maxzoom,wl=gi.canonical.z===ic?Math.ceil(1<<Ae.transform.maxZoom-gi.canonical.z):1;Qs=l.clamp(l.nextPowerOfTwo(Wo.maxLineLength/l.EXTENT*1024*wl),256,en.maxTextureSize)}Ys.gradient=l.renderColorRamp({expression:wt.gradientExpression(),evaluationKey:"lineProgress",resolution:Qs,image:Ys.gradient||void 0,clips:Wo.lineClipsArray}),Ys.texture?Ys.texture.update(Ys.gradient):Ys.texture=new j(en,Ys.gradient,qn.RGBA),Ys.version=wt.gradientVersion,qa=Ys.texture}en.activeTexture.set(qn.TEXTURE0),qa.bind(wt.stepInterpolant?qn.NEAREST:qn.LINEAR,qn.CLAMP_TO_EDGE)}fa.draw(en,qn.TRIANGLES,ei,Ae.stencilModeForClipping(gi),bi,Va.disabled,Es,$r,wt.id,Wo.layoutVertexBuffer,Wo.indexBuffer,Wo.segments,wt.paint,Ae.transform.zoom,tr,Wo.layoutVertexBuffer2),hi=!1}}(h,k,se,de);break;case"fill":!function(Ae,Ct,wt,Mt){const fn=wt.paint.get("fill-color"),Qn=wt.paint.get("fill-opacity");if(0===Qn.constantOr(1))return;const ei=Ae.colorModeForRenderPass(),bi=wt.paint.get("fill-pattern"),zi=Ae.opaquePassEnabledForLayer()&&!bi.constantOr(1)&&1===fn.constantOr(l.Color.transparent).a&&1===Qn.constantOr(0)?"opaque":"translucent";if(Ae.renderPass===zi){const Be=Ae.depthModeForSublayer(1,"opaque"===Ae.renderPass?Ca.ReadWrite:Ca.ReadOnly);Na(Ae,Ct,wt,Mt,Be,ei,!1)}if("translucent"===Ae.renderPass&&wt.paint.get("fill-antialias")){const Be=Ae.depthModeForSublayer(wt.getPaintProperty("fill-outline-color")?2:0,Ca.ReadOnly);Na(Ae,Ct,wt,Mt,Be,ei,!0)}}(h,k,se,de);break;case"fill-extrusion":!function(Ae,Ct,wt,Mt){const fn=wt.paint.get("fill-extrusion-opacity");if(0!==fn&&"translucent"===Ae.renderPass){const Qn=new Ca(Ae.context.gl.LEQUAL,Ca.ReadWrite,Ae.depthRangeFor3D);if(1!==fn||wt.paint.get("fill-extrusion-pattern").constantOr(1))ol(Ae,Ct,wt,Mt,Qn,wa.disabled,ba.disabled),ol(Ae,Ct,wt,Mt,Qn,Ae.stencilModeFor3D(),Ae.colorModeForRenderPass());else{const ei=Ae.colorModeForRenderPass();ol(Ae,Ct,wt,Mt,Qn,wa.disabled,ei)}}}(h,k,se,de);break;case"hillshade":!function(Ae,Ct,wt,Mt){if("offscreen"!==Ae.renderPass&&"translucent"!==Ae.renderPass)return;const fn=Ae.context,Qn=Ae.depthModeForSublayer(0,Ca.ReadOnly),ei=Ae.colorModeForRenderPass(),[bi,zi]="translucent"===Ae.renderPass?Ae.stencilConfigForOverlap(Mt):[{},Mt];for(const Be of zi){const pt=Ct.getTile(Be);void 0!==pt.needsHillshadePrepare&&pt.needsHillshadePrepare&&"offscreen"===Ae.renderPass?Ql(Ae,pt,wt,Qn,wa.disabled,ei):"translucent"===Ae.renderPass&&Cl(Ae,Be,pt,wt,Qn,bi[Be.overscaledZ],ei)}fn.viewport.set([0,0,Ae.width,Ae.height])}(h,k,se,de);break;case"raster":!function(Ae,Ct,wt,Mt){if("translucent"!==Ae.renderPass||0===wt.paint.get("raster-opacity")||!Mt.length)return;const fn=Ae.context,Qn=fn.gl,ei=Ct.getSource(),bi=Ae.useProgram("raster"),zi=Ae.colorModeForRenderPass(),[Be,pt]=ei instanceof r?[{},Mt]:Ae.stencilConfigForOverlap(Mt),Ye=pt[pt.length-1].overscaledZ,ut=!Ae.options.moving;for(const Kt of pt){const en=Ae.depthModeForSublayer(Kt.overscaledZ-Ye,1===wt.paint.get("raster-opacity")?Ca.ReadWrite:Ca.ReadOnly,Qn.LESS),qn=Ct.getTile(Kt);qn.registerFadeDuration(wt.paint.get("raster-fade-duration"));const hi=Ct.findLoadedParent(Kt,0),gi=Ho(qn,hi,Ct,wt,Ae.transform,Ae.style.map.terrain);let ko,Wo;const tr="nearest"===wt.paint.get("raster-resampling")?Qn.NEAREST:Qn.LINEAR;fn.activeTexture.set(Qn.TEXTURE0),qn.texture.bind(tr,Qn.CLAMP_TO_EDGE,Qn.LINEAR_MIPMAP_NEAREST),fn.activeTexture.set(Qn.TEXTURE1),hi?(hi.texture.bind(tr,Qn.CLAMP_TO_EDGE,Qn.LINEAR_MIPMAP_NEAREST),ko=Math.pow(2,hi.tileID.overscaledZ-qn.tileID.overscaledZ),Wo=[qn.tileID.canonical.x*ko%1,qn.tileID.canonical.y*ko%1]):qn.texture.bind(tr,Qn.CLAMP_TO_EDGE,Qn.LINEAR_MIPMAP_NEAREST);const br=Ae.style.map.terrain&&Ae.style.map.terrain.getTerrainData(Kt),fa=br?Kt:null,ga=fa?fa.posMatrix:Ae.transform.calculatePosMatrix(Kt.toUnwrapped(),ut),$r=ss(ga,Wo||[0,0],ko||1,gi,wt);ei instanceof r?bi.draw(fn,Qn.TRIANGLES,en,wa.disabled,zi,Va.disabled,$r,br,wt.id,ei.boundsBuffer,Ae.quadTriangleIndexBuffer,ei.boundsSegments):bi.draw(fn,Qn.TRIANGLES,en,Be[Kt.overscaledZ],zi,Va.disabled,$r,br,wt.id,Ae.rasterBoundsBuffer,Ae.quadTriangleIndexBuffer,Ae.rasterBoundsSegments)}}(h,k,se,de);break;case"background":!function(Ae,Ct,wt,Mt){const fn=wt.paint.get("background-color"),Qn=wt.paint.get("background-opacity");if(0===Qn)return;const ei=Ae.context,bi=ei.gl,zi=Ae.transform,Be=zi.tileSize,pt=wt.paint.get("background-pattern");if(Ae.isPatternMissing(pt))return;const Ye=!pt&&1===fn.a&&1===Qn&&Ae.opaquePassEnabledForLayer()?"opaque":"translucent";if(Ae.renderPass!==Ye)return;const ut=wa.disabled,Kt=Ae.depthModeForSublayer(0,"opaque"===Ye?Ca.ReadWrite:Ca.ReadOnly),en=Ae.colorModeForRenderPass(),qn=Ae.useProgram(pt?"backgroundPattern":"background"),hi=Mt||zi.coveringTiles({tileSize:Be,terrain:Ae.style.map.terrain});pt&&(ei.activeTexture.set(bi.TEXTURE0),Ae.imageManager.bind(Ae.context));const gi=wt.getCrossfadeParameters();for(const ko of hi){const Wo=Mt?ko.posMatrix:Ae.transform.calculatePosMatrix(ko.toUnwrapped()),tr=pt?Vs(Wo,Qn,Ae,pt,{tileID:ko,tileSize:Be},gi):el(Wo,Qn,fn),br=Ae.style.map.terrain&&Ae.style.map.terrain.getTerrainData(ko);qn.draw(ei,bi.TRIANGLES,Kt,ut,en,Va.disabled,tr,br,wt.id,Ae.tileExtentBuffer,Ae.quadTriangleIndexBuffer,Ae.tileExtentSegments)}}(h,0,se,de);break;case"custom":!function(Ae,Ct,wt){const Mt=Ae.context,fn=wt.implementation;if("offscreen"===Ae.renderPass){const Qn=fn.prerender;Qn&&(Ae.setCustomLayerDefaults(),Mt.setColorMode(Ae.colorModeForRenderPass()),Qn.call(fn,Mt.gl,Ae.transform.customLayerMatrix()),Mt.setDirty(),Ae.setBaseState())}else if("translucent"===Ae.renderPass){Ae.setCustomLayerDefaults(),Mt.setColorMode(Ae.colorModeForRenderPass()),Mt.setStencilMode(wa.disabled);const Qn="3d"===fn.renderingMode?new Ca(Ae.context.gl.LEQUAL,Ca.ReadWrite,Ae.depthRangeFor3D):Ae.depthModeForSublayer(0,Ca.ReadOnly);Mt.setDepthMode(Qn),fn.render(Mt.gl,Ae.transform.customLayerMatrix()),Mt.setDirty(),Ae.setBaseState(),Mt.bindFramebuffer.set(null)}}(h,0,se)}}translatePosMatrix(h,k,se,de,Ae){if(!se[0]&&!se[1])return h;const Ct=Ae?"map"===de?this.transform.angle:0:"viewport"===de?-this.transform.angle:0;if(Ct){const fn=Math.sin(Ct),Qn=Math.cos(Ct);se=[se[0]*Qn-se[1]*fn,se[0]*fn+se[1]*Qn]}const wt=[Ae?se[0]:ht(k,se[0],this.transform.zoom),Ae?se[1]:ht(k,se[1],this.transform.zoom),0],Mt=new Float32Array(16);return l.translate(Mt,h,wt),Mt}saveTileTexture(h){const k=this._tileTextures[h.size[0]];k?k.push(h):this._tileTextures[h.size[0]]=[h]}getTileTexture(h){const k=this._tileTextures[h];return k&&k.length>0?k.pop():null}isPatternMissing(h){if(!h)return!1;if(!h.from||!h.to)return!0;const k=this.imageManager.getPattern(h.from.toString()),se=this.imageManager.getPattern(h.to.toString());return!k||!se}useProgram(h,k){this.cache=this.cache||{};const se=h+(k?k.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"")+(this.style.map.terrain?"/terrain":"");return this.cache[se]||(this.cache[se]=new bt(this.context,Bi[h],k,ls[h],this._showOverdrawInspector,this.style.map.terrain)),this.cache[se]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const h=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(h.FUNC_ADD)}initDebugOverlayCanvas(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new j(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){const{drawingBufferWidth:h,drawingBufferHeight:k}=this.context.gl;return this.width!==h||this.height!==k}}class Gs{constructor(h,k){this.points=h,this.planes=k}static fromInvProjectionMatrix(h,k,se){const de=Math.pow(2,se),Ae=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(wt=>{const Mt=1/(wt=l.transformMat4([],wt,h))[3]/k*de;return l.mul$1(wt,wt,[Mt,Mt,1/wt[3],Mt])}),Ct=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(wt=>{const Mt=function(bi,zi){var Be=zi[0],pt=zi[1],Ye=zi[2],ut=Be*Be+pt*pt+Ye*Ye;return ut>0&&(ut=1/Math.sqrt(ut)),bi[0]=zi[0]*ut,bi[1]=zi[1]*ut,bi[2]=zi[2]*ut,bi}([],(bi=[],zi=B([],Ae[wt[0]],Ae[wt[1]]),Be=B([],Ae[wt[2]],Ae[wt[1]]),pt=zi[0],Kt=Be[0],bi[0]=(Ye=zi[1])*(qn=Be[2])-(ut=zi[2])*(en=Be[1]),bi[1]=ut*Kt-pt*qn,bi[2]=pt*en-Ye*Kt,bi)),fn=-((Qn=Mt)[0]*(ei=Ae[wt[1]])[0]+Qn[1]*ei[1]+Qn[2]*ei[2]);var bi,zi,Be,pt,Ye,ut,Kt,en,qn,Qn,ei;return Mt.concat(fn)});return new Gs(Ae,Ct)}}class Dl{constructor(h,k){var se,de,Ae;this.min=h,this.max=k,this.center=function(se,de,Ae){return se[0]=.5*de[0],se[1]=.5*de[1],se[2]=.5*de[2],se}([],((se=[])[0]=(de=this.min)[0]+(Ae=this.max)[0],se[1]=de[1]+Ae[1],se[2]=de[2]+Ae[2],se))}quadrant(h){const k=[h%2==0,h<2],se=P(this.min),de=P(this.max);for(let Ae=0;Ae<k.length;Ae++)se[Ae]=k[Ae]?this.min[Ae]:this.center[Ae],de[Ae]=k[Ae]?this.center[Ae]:this.max[Ae];return de[2]=this.max[2],new Dl(se,de)}distanceX(h){return Math.max(Math.min(this.max[0],h[0]),this.min[0])-h[0]}distanceY(h){return Math.max(Math.min(this.max[1],h[1]),this.min[1])-h[1]}intersects(h){const k=[[this.min[0],this.min[1],this.min[2],1],[this.max[0],this.min[1],this.min[2],1],[this.max[0],this.max[1],this.min[2],1],[this.min[0],this.max[1],this.min[2],1],[this.min[0],this.min[1],this.max[2],1],[this.max[0],this.min[1],this.max[2],1],[this.max[0],this.max[1],this.max[2],1],[this.min[0],this.max[1],this.max[2],1]];let se=!0;for(let de=0;de<h.planes.length;de++){const Ae=h.planes[de];let Ct=0;for(let wt=0;wt<k.length;wt++)l.dot(Ae,k[wt])>=0&&Ct++;if(0===Ct)return 0;Ct!==k.length&&(se=!1)}if(se)return 2;for(let de=0;de<3;de++){let Ae=Number.MAX_VALUE,Ct=-Number.MAX_VALUE;for(let wt=0;wt<h.points.length;wt++){const Mt=h.points[wt][de]-this.min[de];Ae=Math.min(Ae,Mt),Ct=Math.max(Ct,Mt)}if(Ct<0||Ae>this.max[de]-this.min[de])return 0}return 1}}class Yr{constructor(h=0,k=0,se=0,de=0){if(isNaN(h)||h<0||isNaN(k)||k<0||isNaN(se)||se<0||isNaN(de)||de<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=h,this.bottom=k,this.left=se,this.right=de}interpolate(h,k,se){return null!=k.top&&null!=h.top&&(this.top=l.interpolate.number(h.top,k.top,se)),null!=k.bottom&&null!=h.bottom&&(this.bottom=l.interpolate.number(h.bottom,k.bottom,se)),null!=k.left&&null!=h.left&&(this.left=l.interpolate.number(h.left,k.left,se)),null!=k.right&&null!=h.right&&(this.right=l.interpolate.number(h.right,k.right,se)),this}getCenter(h,k){const se=l.clamp((this.left+h-this.right)/2,0,h),de=l.clamp((this.top+k-this.bottom)/2,0,k);return new l.Point(se,de)}equals(h){return this.top===h.top&&this.bottom===h.bottom&&this.left===h.left&&this.right===h.right}clone(){return new Yr(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}class _a{constructor(h,k,se,de,Ae){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===Ae||!!Ae,this._minZoom=h||0,this._maxZoom=k||22,this._minPitch=se??0,this._maxPitch=de??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new l.LngLat(0,0),this._elevation=0,this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Yr,this._posMatrixCache={},this._alignedPosMatrixCache={},this._minEleveationForCurrentTile=0}clone(){const h=new _a(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return h.apply(this),h}apply(h){this.tileSize=h.tileSize,this.latRange=h.latRange,this.width=h.width,this.height=h.height,this._center=h._center,this._elevation=h._elevation,this._minEleveationForCurrentTile=h._minEleveationForCurrentTile,this.zoom=h.zoom,this.angle=h.angle,this._fov=h._fov,this._pitch=h._pitch,this._unmodified=h._unmodified,this._edgeInsets=h._edgeInsets.clone(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(h){this._minZoom!==h&&(this._minZoom=h,this.zoom=Math.max(this.zoom,h))}get maxZoom(){return this._maxZoom}set maxZoom(h){this._maxZoom!==h&&(this._maxZoom=h,this.zoom=Math.min(this.zoom,h))}get minPitch(){return this._minPitch}set minPitch(h){this._minPitch!==h&&(this._minPitch=h,this.pitch=Math.max(this.pitch,h))}get maxPitch(){return this._maxPitch}set maxPitch(h){this._maxPitch!==h&&(this._maxPitch=h,this.pitch=Math.min(this.pitch,h))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(h){void 0===h?h=!0:null===h&&(h=!1),this._renderWorldCopies=h}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new l.Point(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(h){const k=-l.wrap(h,-180,180)*Math.PI/180;var se;this.angle!==k&&(this._unmodified=!1,this.angle=k,this._calcMatrices(),this.rotationMatrix=(se=new l.ARRAY_TYPE(4),l.ARRAY_TYPE!=Float32Array&&(se[1]=0,se[2]=0),se[0]=1,se[3]=1,se),function(se,de,Ae){var Ct=de[0],wt=de[1],Mt=de[2],fn=de[3],Qn=Math.sin(Ae),ei=Math.cos(Ae);se[0]=Ct*ei+Mt*Qn,se[1]=wt*ei+fn*Qn,se[2]=Ct*-Qn+Mt*ei,se[3]=wt*-Qn+fn*ei}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(h){const k=l.clamp(h,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==k&&(this._unmodified=!1,this._pitch=k,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(h){h=Math.max(.01,Math.min(60,h)),this._fov!==h&&(this._unmodified=!1,this._fov=h/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(h){const k=Math.min(Math.max(h,this.minZoom),this.maxZoom);this._zoom!==k&&(this._unmodified=!1,this._zoom=k,this.tileZoom=Math.max(0,Math.floor(k)),this.scale=this.zoomScale(k),this._constrain(),this._calcMatrices())}get center(){return this._center}set center(h){h.lat===this._center.lat&&h.lng===this._center.lng||(this._unmodified=!1,this._center=h,this._constrain(),this._calcMatrices())}get elevation(){return this._elevation}set elevation(h){h!==this._elevation&&(this._elevation=h,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(h){this._edgeInsets.equals(h)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,h,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(h){return this._edgeInsets.equals(h)}interpolatePadding(h,k,se){this._unmodified=!1,this._edgeInsets.interpolate(h,k,se),this._constrain(),this._calcMatrices()}coveringZoomLevel(h){const k=(h.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/h.tileSize));return Math.max(0,k)}getVisibleUnwrappedCoordinates(h){const k=[new l.UnwrappedTileID(0,h)];if(this._renderWorldCopies){const se=this.pointCoordinate(new l.Point(0,0)),de=this.pointCoordinate(new l.Point(this.width,0)),Ae=this.pointCoordinate(new l.Point(this.width,this.height)),Ct=this.pointCoordinate(new l.Point(0,this.height)),wt=Math.floor(Math.min(se.x,de.x,Ae.x,Ct.x)),Mt=Math.floor(Math.max(se.x,de.x,Ae.x,Ct.x)),fn=1;for(let Qn=wt-fn;Qn<=Mt+fn;Qn++)0!==Qn&&k.push(new l.UnwrappedTileID(Qn,h))}return k}coveringTiles(h){var k,se;let de=this.coveringZoomLevel(h);const Ae=de;if(void 0!==h.minzoom&&de<h.minzoom)return[];void 0!==h.maxzoom&&de>h.maxzoom&&(de=h.maxzoom);const Ct=this.pointCoordinate(this.getCameraPoint()),wt=l.MercatorCoordinate.fromLngLat(this.center),Mt=Math.pow(2,de),fn=[Mt*Ct.x,Mt*Ct.y,0],Qn=[Mt*wt.x,Mt*wt.y,0],ei=Gs.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,de);let bi=h.minzoom||0;!h.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(bi=de);const zi=h.terrain?2/Math.min(this.tileSize,h.tileSize)*this.tileSize:3,Be=en=>({aabb:new Dl([en*Mt,0,0],[(en+1)*Mt,Mt,0]),zoom:0,x:0,y:0,wrap:en,fullyVisible:!1}),pt=[],Ye=[],ut=de,Kt=h.reparseOverscaled?Ae:de;if(this._renderWorldCopies)for(let en=1;en<=3;en++)pt.push(Be(-en)),pt.push(Be(en));for(pt.push(Be(0));pt.length>0;){const en=pt.pop(),qn=en.x,hi=en.y;let gi=en.fullyVisible;if(!gi){const fa=en.aabb.intersects(ei);if(0===fa)continue;gi=2===fa}const ko=h.terrain?fn:Qn,Wo=en.aabb.distanceX(ko),tr=en.aabb.distanceY(ko),br=Math.max(Math.abs(Wo),Math.abs(tr));if(en.zoom===ut||br>zi+(1<<ut-en.zoom)-2&&en.zoom>=bi){const fa=ut-en.zoom,ga=fn[0]-.5-(qn<<fa),$r=fn[1]-.5-(hi<<fa);Ye.push({tileID:new l.OverscaledTileID(en.zoom===ut?Kt:en.zoom,en.wrap,en.zoom,qn,hi),distanceSq:ae([Qn[0]-.5-qn,Qn[1]-.5-hi]),tileDistanceToCamera:Math.sqrt(ga*ga+$r*$r)})}else for(let fa=0;fa<4;fa++){const ga=(qn<<1)+fa%2,$r=(hi<<1)+(fa>>1),Rr=en.zoom+1;let Xr=en.aabb.quadrant(fa);if(h.terrain){const Es=new l.OverscaledTileID(Rr,en.wrap,Rr,ga,$r),Ys=h.terrain.getMinMaxElevation(Es),qa=null!==(k=Ys.minElevation)&&void 0!==k?k:this.elevation,Qs=null!==(se=Ys.maxElevation)&&void 0!==se?se:this.elevation;Xr=new Dl([Xr.min[0],Xr.min[1],qa],[Xr.max[0],Xr.max[1],Qs])}pt.push({aabb:Xr,zoom:Rr,x:ga,y:$r,wrap:en.wrap,fullyVisible:gi})}}return Ye.sort((en,qn)=>en.distanceSq-qn.distanceSq).map(en=>en.tileID)}resize(h,k){this.width=h,this.height=k,this.pixelsToGLUnits=[2/h,-2/k],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(h){return Math.pow(2,h)}scaleZoom(h){return Math.log(h)/Math.LN2}project(h){const k=l.clamp(h.lat,-this.maxValidLatitude,this.maxValidLatitude);return new l.Point(l.mercatorXfromLng(h.lng)*this.worldSize,l.mercatorYfromLat(k)*this.worldSize)}unproject(h){return new l.MercatorCoordinate(h.x/this.worldSize,h.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}getCameraPosition(){return{lngLat:this.pointLocation(this.getCameraPoint()),altitude:Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter+this.elevation}}recalculateZoom(h){const k=this.pointLocation(this.centerPoint,h),se=h.getElevationForLngLatZoom(k,this.tileZoom);if(!(this.elevation-se))return;const de=this.getCameraPosition(),Ae=l.MercatorCoordinate.fromLngLat(de.lngLat,de.altitude),Ct=l.MercatorCoordinate.fromLngLat(k,se),wt=Ae.x-Ct.x,Mt=Ae.y-Ct.y,fn=Ae.z-Ct.z,Qn=Math.sqrt(wt*wt+Mt*Mt+fn*fn),ei=this.scaleZoom(this.cameraToCenterDistance/Qn/this.tileSize);this._elevation=se,this._center=k,this.zoom=ei}setLocationAtPoint(h,k){const se=this.pointCoordinate(k),de=this.pointCoordinate(this.centerPoint),Ae=this.locationCoordinate(h),Ct=new l.MercatorCoordinate(Ae.x-(se.x-de.x),Ae.y-(se.y-de.y));this.center=this.coordinateLocation(Ct),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(h,k){return k?this.coordinatePoint(this.locationCoordinate(h),k.getElevationForLngLatZoom(h,this.tileZoom),this.pixelMatrix3D):this.coordinatePoint(this.locationCoordinate(h))}pointLocation(h,k){return this.coordinateLocation(this.pointCoordinate(h,k))}locationCoordinate(h){return l.MercatorCoordinate.fromLngLat(h)}coordinateLocation(h){return h&&h.toLngLat()}pointCoordinate(h,k){if(k){const bi=k.pointCoordinate(h);if(null!=bi)return bi}const se=[h.x,h.y,0,1],de=[h.x,h.y,1,1];l.transformMat4(se,se,this.pixelMatrixInverse),l.transformMat4(de,de,this.pixelMatrixInverse);const Ae=se[3],Ct=de[3],wt=se[1]/Ae,Mt=de[1]/Ct,fn=se[2]/Ae,Qn=de[2]/Ct,ei=fn===Qn?0:(0-fn)/(Qn-fn);return new l.MercatorCoordinate(l.interpolate.number(se[0]/Ae,de[0]/Ct,ei)/this.worldSize,l.interpolate.number(wt,Mt,ei)/this.worldSize)}coordinatePoint(h,k=0,se=this.pixelMatrix){const de=[h.x*this.worldSize,h.y*this.worldSize,k,1];return l.transformMat4(de,de,se),new l.Point(de[0]/de[3],de[1]/de[3])}getBounds(){const h=Math.max(0,this.height/2-this.getHorizon());return(new Se).extend(this.pointLocation(new l.Point(0,h))).extend(this.pointLocation(new l.Point(this.width,h))).extend(this.pointLocation(new l.Point(this.width,this.height))).extend(this.pointLocation(new l.Point(0,this.height)))}getMaxBounds(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new Se([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}getHorizon(){return Math.tan(Math.PI/2-this._pitch)*this.cameraToCenterDistance*.85}setMaxBounds(h){h?(this.lngRange=[h.getWest(),h.getEast()],this.latRange=[h.getSouth(),h.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])}calculatePosMatrix(h,k=!1){const se=h.key,de=k?this._alignedPosMatrixCache:this._posMatrixCache;if(de[se])return de[se];const Ae=h.canonical,Ct=this.worldSize/this.zoomScale(Ae.z),wt=Ae.x+Math.pow(2,Ae.z)*h.wrap,Mt=l.identity(new Float64Array(16));return l.translate(Mt,Mt,[wt*Ct,Ae.y*Ct,0]),l.scale(Mt,Mt,[Ct/l.EXTENT,Ct/l.EXTENT,1]),l.multiply(Mt,k?this.alignedProjMatrix:this.projMatrix,Mt),de[se]=new Float32Array(Mt),de[se]}customLayerMatrix(){return this.mercatorMatrix.slice()}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;let h,k,se,de,Ae=-90,Ct=90,wt=-180,Mt=180;const fn=this.size,Qn=this._unmodified;if(this.latRange){const zi=this.latRange;Ae=l.mercatorYfromLat(zi[1])*this.worldSize,Ct=l.mercatorYfromLat(zi[0])*this.worldSize,h=Ct-Ae<fn.y?fn.y/(Ct-Ae):0}if(this.lngRange){const zi=this.lngRange;wt=l.wrap(l.mercatorXfromLng(zi[0])*this.worldSize,0,this.worldSize),Mt=l.wrap(l.mercatorXfromLng(zi[1])*this.worldSize,0,this.worldSize),Mt<wt&&(Mt+=this.worldSize),k=Mt-wt<fn.x?fn.x/(Mt-wt):0}const ei=this.point,bi=Math.max(k||0,h||0);if(bi)return this.center=this.unproject(new l.Point(k?(Mt+wt)/2:ei.x,h?(Ct+Ae)/2:ei.y)),this.zoom+=this.scaleZoom(bi),this._unmodified=Qn,void(this._constraining=!1);if(this.latRange){const zi=ei.y,Be=fn.y/2;zi-Be<Ae&&(de=Ae+Be),zi+Be>Ct&&(de=Ct-Be)}if(this.lngRange){const zi=(wt+Mt)/2,Be=l.wrap(ei.x,zi-this.worldSize/2,zi+this.worldSize/2),pt=fn.x/2;Be-pt<wt&&(se=wt+pt),Be+pt>Mt&&(se=Mt-pt)}void 0===se&&void 0===de||(this.center=this.unproject(new l.Point(void 0!==se?se:ei.x,void 0!==de?de:ei.y)).wrap()),this._unmodified=Qn,this._constraining=!1}_calcMatrices(){if(!this.height)return;const h=this.centerOffset,k=this.point.x,se=this.point.y;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height,this._pixelPerMeter=l.mercatorZfromAltitude(1,this.center.lat)*this.worldSize;let de=l.identity(new Float64Array(16));l.scale(de,de,[this.width/2,-this.height/2,1]),l.translate(de,de,[1,-1,0]),this.labelPlaneMatrix=de,de=l.identity(new Float64Array(16)),l.scale(de,de,[1,-1,1]),l.translate(de,de,[-1,-1,0]),l.scale(de,de,[2/this.width,2/this.height,1]),this.glCoordMatrix=de;const Ae=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),Ct=Math.min(this.elevation,this._minEleveationForCurrentTile),wt=Ae-Ct*this._pixelPerMeter/Math.cos(this._pitch),Mt=Ct<0?wt:Ae,fn=Math.PI/2+this._pitch,Qn=this._fov*(.5+h.y/this.height),ei=Math.sin(Qn)*Mt/Math.sin(l.clamp(Math.PI-fn-Qn,.01,Math.PI-.01)),bi=this.getHorizon(),zi=2*Math.atan(bi/this.cameraToCenterDistance)*(.5+h.y/(2*bi)),Be=Math.sin(zi)*Mt/Math.sin(l.clamp(Math.PI-fn-zi,.01,Math.PI-.01)),pt=Math.min(ei,Be),Ye=1.01*(Math.cos(Math.PI/2-this._pitch)*pt+Mt),ut=this.height/50;de=new Float64Array(16),l.perspective(de,this._fov,this.width/this.height,ut,Ye),de[8]=2*-h.x/this.width,de[9]=2*h.y/this.height,l.scale(de,de,[1,-1,1]),l.translate(de,de,[0,0,-this.cameraToCenterDistance]),l.rotateX(de,de,this._pitch),l.rotateZ(de,de,this.angle),l.translate(de,de,[-k,-se,0]),this.mercatorMatrix=l.scale([],de,[this.worldSize,this.worldSize,this.worldSize]),l.scale(de,de,[1,1,this._pixelPerMeter]),this.pixelMatrix=l.multiply(new Float64Array(16),this.labelPlaneMatrix,de),l.translate(de,de,[0,0,-this.elevation]),this.projMatrix=de,this.invProjMatrix=l.invert([],de),this.pixelMatrix3D=l.multiply(new Float64Array(16),this.labelPlaneMatrix,de);const Kt=this.width%2/2,en=this.height%2/2,qn=Math.cos(this.angle),hi=Math.sin(this.angle),gi=k-Math.round(k)+qn*Kt+hi*en,ko=se-Math.round(se)+qn*en+hi*Kt,Wo=new Float64Array(de);if(l.translate(Wo,Wo,[gi>.5?gi-1:gi,ko>.5?ko-1:ko,0]),this.alignedProjMatrix=Wo,de=l.invert(new Float64Array(16),this.pixelMatrix),!de)throw new Error("failed to invert matrix");this.pixelMatrixInverse=de,this._posMatrixCache={},this._alignedPosMatrixCache={}}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;const h=this.pointCoordinate(new l.Point(0,0)),k=[h.x*this.worldSize,h.y*this.worldSize,0,1];return l.transformMat4(k,k,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){const h=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new l.Point(0,h))}getCameraQueryGeometry(h){const k=this.getCameraPoint();if(1===h.length)return[h[0],k];{let se=k.x,de=k.y,Ae=k.x,Ct=k.y;for(const wt of h)se=Math.min(se,wt.x),de=Math.min(de,wt.y),Ae=Math.max(Ae,wt.x),Ct=Math.max(Ct,wt.y);return[new l.Point(se,de),new l.Point(Ae,de),new l.Point(Ae,Ct),new l.Point(se,Ct),new l.Point(se,de)]}}}function ts(xe,h){let k,se=!1,de=null,Ae=null;const Ct=()=>{de=null,se&&(xe.apply(Ae,k),de=setTimeout(Ct,h),se=!1)};return(...wt)=>(se=!0,Ae=this,k=wt,de||Ct(),de)}class rl{constructor(h){this._getCurrentHash=()=>{const k=window.location.hash.replace("#","");if(this._hashName){let se;return k.split("&").map(de=>de.split("=")).forEach(de=>{de[0]===this._hashName&&(se=de)}),(se&&se[1]||"").split("/")}return k.split("/")},this._onHashChange=()=>{const k=this._getCurrentHash();if(k.length>=3&&!k.some(se=>isNaN(se))){const se=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(k[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+k[2],+k[1]],zoom:+k[0],bearing:se,pitch:+(k[4]||0)}),!0}return!1},this._updateHashUnthrottled=()=>{const k=window.location.href.replace(/(#.+)?$/,this.getHashString());try{window.history.replaceState(window.history.state,null,k)}catch{}},this._updateHash=ts(this._updateHashUnthrottled,300),this._hashName=h&&encodeURIComponent(h)}addTo(h){return this._map=h,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),delete this._map,this}getHashString(h){const k=this._map.getCenter(),se=Math.round(100*this._map.getZoom())/100,de=Math.ceil((se*Math.LN2+Math.log(512/360/.5))/Math.LN10),Ae=Math.pow(10,de),Ct=Math.round(k.lng*Ae)/Ae,wt=Math.round(k.lat*Ae)/Ae,Mt=this._map.getBearing(),fn=this._map.getPitch();let Qn="";if(Qn+=h?`/${Ct}/${wt}/${se}`:`${se}/${wt}/${Ct}`,(Mt||fn)&&(Qn+="/"+Math.round(10*Mt)/10),fn&&(Qn+=`/${Math.round(fn)}`),this._hashName){const ei=this._hashName;let bi=!1;const zi=window.location.hash.slice(1).split("&").map(Be=>{const pt=Be.split("=")[0];return pt===ei?(bi=!0,`${pt}=${Qn}`):Be}).filter(Be=>Be);return bi||zi.push(`${ei}=${Qn}`),`#${zi.join("&")}`}return`#${Qn}`}}const ya={linearity:.3,easing:l.bezier(0,0,.3,1)},Pl=l.extend({deceleration:2500,maxSpeed:1400},ya),jl=l.extend({deceleration:20,maxSpeed:1400},ya),Ml=l.extend({deceleration:1e3,maxSpeed:360},ya),rc=l.extend({deceleration:1e3,maxSpeed:90},ya);class Kr{constructor(h){this._map=h,this.clear()}clear(){this._inertiaBuffer=[]}record(h){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:l.browser.now(),settings:h})}_drainInertiaBuffer(){const h=this._inertiaBuffer,k=l.browser.now();for(;h.length>0&&k-h[0].time>160;)h.shift()}_onMoveEnd(h){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;const k={zoom:0,bearing:0,pitch:0,pan:new l.Point(0,0),pinchAround:void 0,around:void 0};for(const{settings:Ae}of this._inertiaBuffer)k.zoom+=Ae.zoomDelta||0,k.bearing+=Ae.bearingDelta||0,k.pitch+=Ae.pitchDelta||0,Ae.panDelta&&k.pan._add(Ae.panDelta),Ae.around&&(k.around=Ae.around),Ae.pinchAround&&(k.pinchAround=Ae.pinchAround);const se=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,de={};if(k.pan.mag()){const Ae=ks(k.pan.mag(),se,l.extend({},Pl,h||{}));de.offset=k.pan.mult(Ae.amount/k.pan.mag()),de.center=this._map.transform.center,la(de,Ae)}if(k.zoom){const Ae=ks(k.zoom,se,jl);de.zoom=this._map.transform.zoom+Ae.amount,la(de,Ae)}if(k.bearing){const Ae=ks(k.bearing,se,Ml);de.bearing=this._map.transform.bearing+l.clamp(Ae.amount,-179,179),la(de,Ae)}if(k.pitch){const Ae=ks(k.pitch,se,rc);de.pitch=this._map.transform.pitch+Ae.amount,la(de,Ae)}if(de.zoom||de.bearing){const Ae=void 0===k.pinchAround?k.around:k.pinchAround;de.around=Ae?this._map.unproject(Ae):this._map.getCenter()}return this.clear(),l.extend(de,{noMoveStart:!0})}}function la(xe,h){(!xe.duration||xe.duration<h.duration)&&(xe.duration=h.duration,xe.easing=h.easing)}function ks(xe,h,k){const{maxSpeed:se,linearity:de,deceleration:Ae}=k,Ct=l.clamp(xe*de/(h/1e3),-se,se),wt=Math.abs(Ct)/(Ae*de);return{easing:k.easing,duration:1e3*wt,amount:Ct*(wt/2)}}class Ta extends l.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(h,k,se,de={}){const Ae=t.mousePos(k.getCanvasContainer(),se),Ct=k.unproject(Ae);super(h,l.extend({point:Ae,lngLat:Ct,originalEvent:se},de)),this._defaultPrevented=!1,this.target=k}}class ds extends l.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(h,k,se){const de="touchend"===h?se.changedTouches:se.touches,Ae=t.touchPos(k.getCanvasContainer(),de),Ct=Ae.map(Mt=>k.unproject(Mt)),wt=Ae.reduce((Mt,fn,Qn,ei)=>Mt.add(fn.div(ei.length)),new l.Point(0,0));super(h,{points:Ae,point:wt,lngLats:Ct,lngLat:k.unproject(wt),originalEvent:se}),this._defaultPrevented=!1}}class bs extends l.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(h,k,se){super(h,{originalEvent:se}),this._defaultPrevented=!1}}class sl{constructor(h,k){this._map=h,this._clickTolerance=k.clickTolerance}reset(){delete this._mousedownPos}wheel(h){return this._firePreventable(new bs(h.type,this._map,h))}mousedown(h,k){return this._mousedownPos=k,this._firePreventable(new Ta(h.type,this._map,h))}mouseup(h){this._map.fire(new Ta(h.type,this._map,h))}click(h,k){this._mousedownPos&&this._mousedownPos.dist(k)>=this._clickTolerance||this._map.fire(new Ta(h.type,this._map,h))}dblclick(h){return this._firePreventable(new Ta(h.type,this._map,h))}mouseover(h){this._map.fire(new Ta(h.type,this._map,h))}mouseout(h){this._map.fire(new Ta(h.type,this._map,h))}touchstart(h){return this._firePreventable(new ds(h.type,this._map,h))}touchmove(h){this._map.fire(new ds(h.type,this._map,h))}touchend(h){this._map.fire(new ds(h.type,this._map,h))}touchcancel(h){this._map.fire(new ds(h.type,this._map,h))}_firePreventable(h){if(this._map.fire(h),h.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class Ec{constructor(h){this._map=h}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(h){this._map.fire(new Ta(h.type,this._map,h))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Ta("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(h){this._delayContextMenu?this._contextMenuEvent=h:this._ignoreContextMenu||this._map.fire(new Ta(h.type,this._map,h)),this._map.listens("contextmenu")&&h.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class gr{constructor(h){this._map=h}get transform(){return this._map._requestedCameraState||this._map.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(h){return this.transform.pointLocation(l.Point.convert(h),this._map.terrain)}}class Js{constructor(h,k){this._map=h,this._tr=new gr(h),this._el=h.getCanvasContainer(),this._container=h.getContainer(),this._clickTolerance=k.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(h,k){this.isEnabled()&&h.shiftKey&&0===h.button&&(t.disableDrag(),this._startPos=this._lastPos=k,this._active=!0)}mousemoveWindow(h,k){if(!this._active)return;const se=k;if(this._lastPos.equals(se)||!this._box&&se.dist(this._startPos)<this._clickTolerance)return;const de=this._startPos;this._lastPos=se,this._box||(this._box=t.create("div","maplibregl-boxzoom",this._container),this._container.classList.add("maplibregl-crosshair"),this._fireEvent("boxzoomstart",h));const Ae=Math.min(de.x,se.x),Ct=Math.max(de.x,se.x),wt=Math.min(de.y,se.y),Mt=Math.max(de.y,se.y);t.setTransform(this._box,`translate(${Ae}px,${wt}px)`),this._box.style.width=Ct-Ae+"px",this._box.style.height=Mt-wt+"px"}mouseupWindow(h,k){if(!this._active||0!==h.button)return;const se=this._startPos,de=k;if(this.reset(),t.suppressClick(),se.x!==de.x||se.y!==de.y)return this._map.fire(new l.Event("boxzoomend",{originalEvent:h})),{cameraAnimation:Ae=>Ae.fitScreenCoordinates(se,de,this._tr.bearing,{linear:!0})};this._fireEvent("boxzoomcancel",h)}keydown(h){this._active&&27===h.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",h))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(t.remove(this._box),this._box=null),t.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(h,k){return this._map.fire(new l.Event(h,{originalEvent:k}))}}function Ms(xe,h){if(xe.length!==h.length)throw new Error(`The number of touches and points are not equal - touches ${xe.length}, points ${h.length}`);const k={};for(let se=0;se<xe.length;se++)k[xe[se].identifier]=h[se];return k}class Bs{constructor(h){this.reset(),this.numTouches=h.numTouches}reset(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1}touchstart(h,k,se){(this.centroid||se.length>this.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=h.timeStamp),se.length===this.numTouches&&(this.centroid=function(de){const Ae=new l.Point(0,0);for(const Ct of de)Ae._add(Ct);return Ae.div(de.length)}(k),this.touches=Ms(se,k)))}touchmove(h,k,se){if(this.aborted||!this.centroid)return;const de=Ms(se,k);for(const Ae in this.touches){const Ct=de[Ae];(!Ct||Ct.dist(this.touches[Ae])>30)&&(this.aborted=!0)}}touchend(h,k,se){if((!this.centroid||h.timeStamp-this.startTime>500)&&(this.aborted=!0),0===se.length){const de=!this.aborted&&this.centroid;if(this.reset(),de)return de}}}class yl{constructor(h){this.singleTap=new Bs(h),this.numTaps=h.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(h,k,se){this.singleTap.touchstart(h,k,se)}touchmove(h,k,se){this.singleTap.touchmove(h,k,se)}touchend(h,k,se){const de=this.singleTap.touchend(h,k,se);if(de){const Ae=h.timeStamp-this.lastTime<500,Ct=!this.lastTap||this.lastTap.dist(de)<30;if(Ae&&Ct||this.reset(),this.count++,this.lastTime=h.timeStamp,this.lastTap=de,this.count===this.numTaps)return this.reset(),de}}}class Fr{constructor(h){this._tr=new gr(h),this._zoomIn=new yl({numTouches:1,numTaps:2}),this._zoomOut=new yl({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(h,k,se){this._zoomIn.touchstart(h,k,se),this._zoomOut.touchstart(h,k,se)}touchmove(h,k,se){this._zoomIn.touchmove(h,k,se),this._zoomOut.touchmove(h,k,se)}touchend(h,k,se){const de=this._zoomIn.touchend(h,k,se),Ae=this._zoomOut.touchend(h,k,se),Ct=this._tr;return de?(this._active=!0,h.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:wt=>wt.easeTo({duration:300,zoom:Ct.zoom+1,around:Ct.unproject(de)},{originalEvent:h})}):Ae?(this._active=!0,h.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:wt=>wt.easeTo({duration:300,zoom:Ct.zoom-1,around:Ct.unproject(Ae)},{originalEvent:h})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class nl{constructor(h){this._enabled=!!h.enable,this._moveStateManager=h.moveStateManager,this._clickTolerance=h.clickTolerance||1,this._moveFunction=h.move,this._activateOnStart=!!h.activateOnStart,h.assignEvents(this),this.reset()}reset(h){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(h)}_move(...h){const k=this._moveFunction(...h);if(k.bearingDelta||k.pitchDelta||k.around||k.panDelta)return this._active=!0,k}dragStart(h,k){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(h)&&(this._moveStateManager.startMove(h),this._lastPoint=k.length?k[0]:k,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(h,k){if(!this.isEnabled())return;const se=this._lastPoint;if(!se)return;if(h.preventDefault(),!this._moveStateManager.isValidMoveEvent(h))return void this.reset(h);const de=k.length?k[0]:k;return!this._moved&&de.dist(se)<this._clickTolerance?void 0:(this._moved=!0,this._lastPoint=de,this._move(se,de))}dragEnd(h){this.isEnabled()&&this._lastPoint&&this._moveStateManager.isValidEndEvent(h)&&(this._moved&&t.suppressClick(),this.reset(h))}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}getClickTolerance(){return this._clickTolerance}}const hl={0:1,2:2};class Cc{constructor(h){this._correctEvent=h.checkCorrectEvent}startMove(h){const k=t.mouseButton(h);this._eventButton=k}endMove(h){delete this._eventButton}isValidStartEvent(h){return this._correctEvent(h)}isValidMoveEvent(h){return!function(k,se){const de=hl[se];return void 0===k.buttons||(k.buttons&de)!==de}(h,this._eventButton)}isValidEndEvent(h){return t.mouseButton(h)===this._eventButton}}class Zt{constructor(){this._firstTouch=void 0}_isOneFingerTouch(h){return 1===h.targetTouches.length}_isSameTouchEvent(h){return h.targetTouches[0].identifier===this._firstTouch}startMove(h){this._firstTouch=h.targetTouches[0].identifier}endMove(h){delete this._firstTouch}isValidStartEvent(h){return this._isOneFingerTouch(h)}isValidMoveEvent(h){return this._isOneFingerTouch(h)&&this._isSameTouchEvent(h)}isValidEndEvent(h){return this._isOneFingerTouch(h)&&this._isSameTouchEvent(h)}}const ri=xe=>{xe.mousedown=xe.dragStart,xe.mousemoveWindow=xe.dragMove,xe.mouseup=xe.dragEnd,xe.contextmenu=function(h){h.preventDefault()}},Mn=({enable:xe,clickTolerance:h,bearingDegreesPerPixelMoved:k=.8})=>{const se=new Cc({checkCorrectEvent:de=>0===t.mouseButton(de)&&de.ctrlKey||2===t.mouseButton(de)});return new nl({clickTolerance:h,move:(de,Ae)=>({bearingDelta:(Ae.x-de.x)*k}),moveStateManager:se,enable:xe,assignEvents:ri})},mi=({enable:xe,clickTolerance:h,pitchDegreesPerPixelMoved:k=-.5})=>{const se=new Cc({checkCorrectEvent:de=>0===t.mouseButton(de)&&de.ctrlKey||2===t.mouseButton(de)});return new nl({clickTolerance:h,move:(de,Ae)=>({pitchDelta:(Ae.y-de.y)*k}),moveStateManager:se,enable:xe,assignEvents:ri})};class Mo{constructor(h,k){this._minTouches=h.cooperativeGestures?2:1,this._clickTolerance=h.clickTolerance||1,this._map=k,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new l.Point(0,0),setTimeout(()=>{this._cancelCooperativeMessage=!1},200)}touchstart(h,k,se){return this._calculateTransform(h,k,se)}touchmove(h,k,se){if(this._map._cooperativeGestures&&(2===this._minTouches&&se.length<2&&!this._cancelCooperativeMessage?this._map._onCooperativeGesture(h,!1,se.length):this._cancelCooperativeMessage||(this._cancelCooperativeMessage=!0)),this._active&&!(se.length<this._minTouches))return h.preventDefault(),this._calculateTransform(h,k,se)}touchend(h,k,se){this._calculateTransform(h,k,se),this._active&&se.length<this._minTouches&&this.reset()}touchcancel(){this.reset()}_calculateTransform(h,k,se){se.length>0&&(this._active=!0);const de=Ms(se,k),Ae=new l.Point(0,0),Ct=new l.Point(0,0);let wt=0;for(const fn in de){const Qn=de[fn],ei=this._touches[fn];ei&&(Ae._add(Qn),Ct._add(Qn.sub(ei)),wt++,de[fn]=Qn)}if(this._touches=de,wt<this._minTouches||!Ct.mag())return;const Mt=Ct.div(wt);return this._sum._add(Mt),this._sum.mag()<this._clickTolerance?void 0:{around:Ae.div(wt),panDelta:Mt}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class pr{constructor(){this.reset()}reset(){this._active=!1,delete this._firstTwoTouches}touchstart(h,k,se){this._firstTwoTouches||se.length<2||(this._firstTwoTouches=[se[0].identifier,se[1].identifier],this._start([k[0],k[1]]))}touchmove(h,k,se){if(!this._firstTwoTouches)return;h.preventDefault();const[de,Ae]=this._firstTwoTouches,Ct=Pr(se,k,de),wt=Pr(se,k,Ae);if(!Ct||!wt)return;const Mt=this._aroundCenter?null:Ct.add(wt).div(2);return this._move([Ct,wt],Mt,h)}touchend(h,k,se){if(!this._firstTwoTouches)return;const[de,Ae]=this._firstTwoTouches,Ct=Pr(se,k,de),wt=Pr(se,k,Ae);Ct&&wt||(this._active&&t.suppressClick(),this.reset())}touchcancel(){this.reset()}enable(h){this._enabled=!0,this._aroundCenter=!!h&&"center"===h.around}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}function Pr(xe,h,k){for(let se=0;se<xe.length;se++)if(xe[se].identifier===k)return h[se]}function xa(xe,h){return Math.log(xe/h)/Math.LN2}class tl extends pr{reset(){super.reset(),delete this._distance,delete this._startDistance}_start(h){this._startDistance=this._distance=h[0].dist(h[1])}_move(h,k){const se=this._distance;if(this._distance=h[0].dist(h[1]),this._active||!(Math.abs(xa(this._distance,this._startDistance))<.1))return this._active=!0,{zoomDelta:xa(this._distance,se),pinchAround:k}}}function Ls(xe,h){return 180*xe.angleWith(h)/Math.PI}class Ts extends pr{reset(){super.reset(),delete this._minDiameter,delete this._startVector,delete this._vector}_start(h){this._startVector=this._vector=h[0].sub(h[1]),this._minDiameter=h[0].dist(h[1])}_move(h,k){const se=this._vector;if(this._vector=h[0].sub(h[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:Ls(this._vector,se),pinchAround:k}}_isBelowThreshold(h){this._minDiameter=Math.min(this._minDiameter,h.mag());const k=25/(Math.PI*this._minDiameter)*360,se=Ls(h,this._startVector);return Math.abs(se)<k}}function _s(xe){return Math.abs(xe.y)>Math.abs(xe.x)}class ul extends pr{constructor(h){super(),this._map=h}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(h,k,se){super.touchstart(h,k,se),this._currentTouchCount=se.length}_start(h){this._lastPoints=h,_s(h[0].sub(h[1]))&&(this._valid=!1)}_move(h,k,se){if(this._map._cooperativeGestures&&this._currentTouchCount<3)return;const de=h[0].sub(this._lastPoints[0]),Ae=h[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(de,Ae,se.timeStamp),this._valid?(this._lastPoints=h,this._active=!0,{pitchDelta:(de.y+Ae.y)/2*-.5}):void 0}gestureBeginsVertically(h,k,se){if(void 0!==this._valid)return this._valid;const de=h.mag()>=2,Ae=k.mag()>=2;if(!de&&!Ae)return;if(!de||!Ae)return void 0===this._firstMove&&(this._firstMove=se),se-this._firstMove<100&&void 0;const Ct=h.y>0==k.y>0;return _s(h)&&_s(k)&&Ct}}const qs={panStep:100,bearingStep:15,pitchStep:10};class Ks{constructor(h){this._tr=new gr(h);const k=qs;this._panStep=k.panStep,this._bearingStep=k.bearingStep,this._pitchStep=k.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(h){if(h.altKey||h.ctrlKey||h.metaKey)return;let k=0,se=0,de=0,Ae=0,Ct=0;switch(h.keyCode){case 61:case 107:case 171:case 187:k=1;break;case 189:case 109:case 173:k=-1;break;case 37:h.shiftKey?se=-1:(h.preventDefault(),Ae=-1);break;case 39:h.shiftKey?se=1:(h.preventDefault(),Ae=1);break;case 38:h.shiftKey?de=1:(h.preventDefault(),Ct=-1);break;case 40:h.shiftKey?de=-1:(h.preventDefault(),Ct=1);break;default:return}return this._rotationDisabled&&(se=0,de=0),{cameraAnimation:wt=>{const Mt=this._tr;wt.easeTo({duration:300,easeId:"keyboardHandler",easing:pl,zoom:k?Math.round(Mt.zoom)+k*(h.shiftKey?2:1):Mt.zoom,bearing:Mt.bearing+se*this._bearingStep,pitch:Mt.pitch+de*this._pitchStep,offset:[-Ae*this._panStep,-Ct*this._panStep],center:Mt.center},{originalEvent:h})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function pl(xe){return xe*(2-xe)}const nc=4.000244140625;class Mi{constructor(h,k){this._onTimeout=se=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(se)},this._map=h,this._tr=new gr(h),this._el=h.getCanvasContainer(),this._triggerRenderFrame=k,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(h){this._defaultZoomRate=h}setWheelZoomRate(h){this._wheelZoomRate=h}isEnabled(){return!!this._enabled}isActive(){return!!this._active||void 0!==this._finishTimeout}isZooming(){return!!this._zooming}enable(h){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!h&&"center"===h.around)}disable(){this.isEnabled()&&(this._enabled=!1)}wheel(h){if(!this.isEnabled())return;if(this._map._cooperativeGestures){if(!h[this._map._metaKey])return;h.preventDefault()}let k=h.deltaMode===WheelEvent.DOM_DELTA_LINE?40*h.deltaY:h.deltaY;const se=l.browser.now(),de=se-(this._lastWheelEventTime||0);this._lastWheelEventTime=se,0!==k&&k%nc==0?this._type="wheel":0!==k&&Math.abs(k)<4?this._type="trackpad":de>400?(this._type=null,this._lastValue=k,this._timeout=setTimeout(this._onTimeout,40,h)):this._type||(this._type=Math.abs(de*k)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,k+=this._lastValue)),h.shiftKey&&k&&(k/=4),this._type&&(this._lastWheelEvent=h,this._delta-=k,this._active||this._start(h)),h.preventDefault()}_start(h){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);const k=t.mousePos(this._el,h),se=this._tr;this._around=l.LngLat.convert(this._aroundCenter?se.center:se.unproject(k)),this._aroundPoint=se.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;const h=this._tr.transform;if(0!==this._delta){const wt="wheel"===this._type&&Math.abs(this._delta)>nc?this._wheelZoomRate:this._defaultZoomRate;let Mt=2/(1+Math.exp(-Math.abs(this._delta*wt)));this._delta<0&&0!==Mt&&(Mt=1/Mt);const fn="number"==typeof this._targetZoom?h.zoomScale(this._targetZoom):h.scale;this._targetZoom=Math.min(h.maxZoom,Math.max(h.minZoom,h.scaleZoom(fn*Mt))),"wheel"===this._type&&(this._startZoom=h.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}const k="number"==typeof this._targetZoom?this._targetZoom:h.zoom,se=this._startZoom,de=this._easing;let Ae,Ct=!1;if("wheel"===this._type&&se&&de){const wt=Math.min((l.browser.now()-this._lastWheelEventTime)/200,1),Mt=de(wt);Ae=l.interpolate.number(se,k,Mt),wt<1?this._frameId||(this._frameId=!0):Ct=!0}else Ae=k,Ct=!0;return this._active=!0,Ct&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Ct,zoomDelta:Ae-h.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(h){let k=l.defaultEasing;if(this._prevEase){const se=this._prevEase,de=(l.browser.now()-se.start)/se.duration,Ae=se.easing(de+.01)-se.easing(de),Ct=.27/Math.sqrt(Ae*Ae+1e-4)*.01,wt=Math.sqrt(.0729-Ct*Ct);k=l.bezier(Ct,wt,.25,1)}return this._prevEase={start:l.browser.now(),duration:h,easing:k},k}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class or{constructor(h,k){this._clickZoom=h,this._tapZoom=k}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class Ki{constructor(h){this._tr=new gr(h),this.reset()}reset(){this._active=!1}dblclick(h,k){return h.preventDefault(),{cameraAnimation:se=>{se.easeTo({duration:300,zoom:this._tr.zoom+(h.shiftKey?-1:1),around:this._tr.unproject(k)},{originalEvent:h})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Ao{constructor(){this._tap=new yl({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(h,k,se){if(!this._swipePoint)if(this._tapTime){const de=k[0],Ae=h.timeStamp-this._tapTime<500,Ct=this._tapPoint.dist(de)<30;Ae&&Ct?se.length>0&&(this._swipePoint=de,this._swipeTouch=se[0].identifier):this.reset()}else this._tap.touchstart(h,k,se)}touchmove(h,k,se){if(this._tapTime){if(this._swipePoint){if(se[0].identifier!==this._swipeTouch)return;const de=k[0],Ae=de.y-this._swipePoint.y;return this._swipePoint=de,h.preventDefault(),this._active=!0,{zoomDelta:Ae/128}}}else this._tap.touchmove(h,k,se)}touchend(h,k,se){if(this._tapTime)this._swipePoint&&0===se.length&&this.reset();else{const de=this._tap.touchend(h,k,se);de&&(this._tapTime=h.timeStamp,this._tapPoint=de)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Go{constructor(h,k,se){this._el=h,this._mousePan=k,this._touchPan=se}enable(h){this._inertiaOptions=h||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class dr{constructor(h,k,se){this._pitchWithRotate=h.pitchWithRotate,this._mouseRotate=k,this._mousePitch=se}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class pn{constructor(h,k,se,de){this._el=h,this._touchZoom=k,this._touchRotate=se,this._tapDragZoom=de,this._rotationDisabled=!1,this._enabled=!0}enable(h){this._touchZoom.enable(h),this._rotationDisabled||this._touchRotate.enable(h),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}const bo=xe=>xe.zoom||xe.drag||xe.pitch||xe.rotate;class nt extends l.Event{}function Sn(xe){return xe.panDelta&&xe.panDelta.mag()||xe.zoomDelta||xe.bearingDelta||xe.pitchDelta}class fi{constructor(h,k){this.handleWindowEvent=de=>{this.handleEvent(de,`${de.type}Window`)},this.handleEvent=(de,Ae)=>{if("blur"===de.type)return void this.stop(!0);this._updatingCamera=!0;const Ct="renderFrame"===de.type?void 0:de,wt={needsRenderFrame:!1},Mt={},fn={},Qn=de.touches,ei=Qn?this._getMapTouches(Qn):void 0,bi=ei?t.touchPos(this._el,ei):t.mousePos(this._el,de);for(const{handlerName:pt,handler:Ye,allowed:ut}of this._handlers){if(!Ye.isEnabled())continue;let Kt;this._blockedByActive(fn,ut,pt)?Ye.reset():Ye[Ae||de.type]&&(Kt=Ye[Ae||de.type](de,bi,ei),this.mergeHandlerResult(wt,Mt,Kt,pt,Ct),Kt&&Kt.needsRenderFrame&&this._triggerRenderFrame()),(Kt||Ye.isActive())&&(fn[pt]=Ye)}const zi={};for(const pt in this._previousActiveHandlers)fn[pt]||(zi[pt]=Ct);this._previousActiveHandlers=fn,(Object.keys(zi).length||Sn(wt))&&(this._changes.push([wt,Mt,zi]),this._triggerRenderFrame()),(Object.keys(fn).length||Sn(wt))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:Be}=wt;Be&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],Be(this._map))},this._map=h,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Kr(h),this._bearingSnap=k.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(k);const se=this._el;this._listeners=[[se,"touchstart",{passive:!0}],[se,"touchmove",{passive:!1}],[se,"touchend",void 0],[se,"touchcancel",void 0],[se,"mousedown",void 0],[se,"mousemove",void 0],[se,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[se,"mouseover",void 0],[se,"mouseout",void 0],[se,"dblclick",void 0],[se,"click",void 0],[se,"keydown",{capture:!1}],[se,"keyup",void 0],[se,"wheel",{passive:!1}],[se,"contextmenu",void 0],[window,"blur",void 0]];for(const[de,Ae,Ct]of this._listeners)t.addEventListener(de,Ae,de===document?this.handleWindowEvent:this.handleEvent,Ct)}destroy(){for(const[h,k,se]of this._listeners)t.removeEventListener(h,k,h===document?this.handleWindowEvent:this.handleEvent,se)}_addDefaultHandlers(h){const k=this._map,se=k.getCanvasContainer();this._add("mapEvent",new sl(k,h));const de=k.boxZoom=new Js(k,h);this._add("boxZoom",de),h.interactive&&h.boxZoom&&de.enable();const Ae=new Fr(k),Ct=new Ki(k);k.doubleClickZoom=new or(Ct,Ae),this._add("tapZoom",Ae),this._add("clickZoom",Ct),h.interactive&&h.doubleClickZoom&&k.doubleClickZoom.enable();const wt=new Ao;this._add("tapDragZoom",wt);const Mt=k.touchPitch=new ul(k);this._add("touchPitch",Mt),h.interactive&&h.touchPitch&&k.touchPitch.enable(h.touchPitch);const fn=Mn(h),Qn=mi(h);k.dragRotate=new dr(h,fn,Qn),this._add("mouseRotate",fn,["mousePitch"]),this._add("mousePitch",Qn,["mouseRotate"]),h.interactive&&h.dragRotate&&k.dragRotate.enable();const ei=(({enable:ut,clickTolerance:Kt})=>{const en=new Cc({checkCorrectEvent:qn=>0===t.mouseButton(qn)&&!qn.ctrlKey});return new nl({clickTolerance:Kt,move:(qn,hi)=>({around:hi,panDelta:hi.sub(qn)}),activateOnStart:!0,moveStateManager:en,enable:ut,assignEvents:ri})})(h),bi=new Mo(h,k);k.dragPan=new Go(se,ei,bi),this._add("mousePan",ei),this._add("touchPan",bi,["touchZoom","touchRotate"]),h.interactive&&h.dragPan&&k.dragPan.enable(h.dragPan);const zi=new Ts,Be=new tl;k.touchZoomRotate=new pn(se,Be,zi,wt),this._add("touchRotate",zi,["touchPan","touchZoom"]),this._add("touchZoom",Be,["touchPan","touchRotate"]),h.interactive&&h.touchZoomRotate&&k.touchZoomRotate.enable(h.touchZoomRotate);const pt=k.scrollZoom=new Mi(k,()=>this._triggerRenderFrame());this._add("scrollZoom",pt,["mousePan"]),h.interactive&&h.scrollZoom&&k.scrollZoom.enable(h.scrollZoom);const Ye=k.keyboard=new Ks(k);this._add("keyboard",Ye),h.interactive&&h.keyboard&&k.keyboard.enable(),this._add("blockableMapEvent",new Ec(k))}_add(h,k,se){this._handlers.push({handlerName:h,handler:k,allowed:se}),this._handlersById[h]=k}stop(h){if(!this._updatingCamera){for(const{handler:k}of this._handlers)k.reset();this._inertia.clear(),this._fireEvents({},{},h),this._changes=[]}}isActive(){for(const{handler:h}of this._handlers)if(h.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!bo(this._eventsInProgress)||this.isZooming()}_blockedByActive(h,k,se){for(const de in h)if(de!==se&&(!k||k.indexOf(de)<0))return!0;return!1}_getMapTouches(h){const k=[];for(const se of h)this._el.contains(se.target)&&k.push(se);return k}mergeHandlerResult(h,k,se,de,Ae){if(!se)return;l.extend(h,se);const Ct={handlerName:de,originalEvent:se.originalEvent||Ae};void 0!==se.zoomDelta&&(k.zoom=Ct),void 0!==se.panDelta&&(k.drag=Ct),void 0!==se.pitchDelta&&(k.pitch=Ct),void 0!==se.bearingDelta&&(k.rotate=Ct)}_applyChanges(){const h={},k={},se={};for(const[de,Ae,Ct]of this._changes)de.panDelta&&(h.panDelta=(h.panDelta||new l.Point(0,0))._add(de.panDelta)),de.zoomDelta&&(h.zoomDelta=(h.zoomDelta||0)+de.zoomDelta),de.bearingDelta&&(h.bearingDelta=(h.bearingDelta||0)+de.bearingDelta),de.pitchDelta&&(h.pitchDelta=(h.pitchDelta||0)+de.pitchDelta),void 0!==de.around&&(h.around=de.around),void 0!==de.pinchAround&&(h.pinchAround=de.pinchAround),de.noInertia&&(h.noInertia=de.noInertia),l.extend(k,Ae),l.extend(se,Ct);this._updateMapTransform(h,k,se),this._changes=[]}_updateMapTransform(h,k,se){const de=this._map,Ae=de._getTransformForUpdate(),Ct=de.terrain;if(!(Sn(h)||Ct&&this._terrainMovement))return this._fireEvents(k,se,!0);let{panDelta:wt,zoomDelta:Mt,bearingDelta:fn,pitchDelta:Qn,around:ei,pinchAround:bi}=h;void 0!==bi&&(ei=bi),de._stop(!0),ei=ei||de.transform.centerPoint;const zi=Ae.pointLocation(wt?ei.sub(wt):ei);fn&&(Ae.bearing+=fn),Qn&&(Ae.pitch+=Qn),Mt&&(Ae.zoom+=Mt),Ct?this._terrainMovement||!k.drag&&!k.zoom?k.drag&&this._terrainMovement?Ae.center=Ae.pointLocation(Ae.centerPoint.sub(wt)):Ae.setLocationAtPoint(zi,ei):(this._terrainMovement=!0,this._map._elevationFreeze=!0,Ae.setLocationAtPoint(zi,ei),this._map.once("moveend",()=>{this._map._elevationFreeze=!1,this._terrainMovement=!1,Ae.recalculateZoom(de.terrain)})):Ae.setLocationAtPoint(zi,ei),de._applyUpdatedTransform(Ae),this._map._update(),h.noInertia||this._inertia.record(h),this._fireEvents(k,se,!0)}_fireEvents(h,k,se){const de=bo(this._eventsInProgress),Ae=bo(h),Ct={};for(const Qn in h){const{originalEvent:ei}=h[Qn];this._eventsInProgress[Qn]||(Ct[`${Qn}start`]=ei),this._eventsInProgress[Qn]=h[Qn]}!de&&Ae&&this._fireEvent("movestart",Ae.originalEvent);for(const Qn in Ct)this._fireEvent(Qn,Ct[Qn]);Ae&&this._fireEvent("move",Ae.originalEvent);for(const Qn in h){const{originalEvent:ei}=h[Qn];this._fireEvent(Qn,ei)}const wt={};let Mt;for(const Qn in this._eventsInProgress){const{handlerName:ei,originalEvent:bi}=this._eventsInProgress[Qn];this._handlersById[ei].isActive()||(delete this._eventsInProgress[Qn],Mt=k[ei]||bi,wt[`${Qn}end`]=Mt)}for(const Qn in wt)this._fireEvent(Qn,wt[Qn]);const fn=bo(this._eventsInProgress);if(se&&(de||Ae)&&!fn){this._updatingCamera=!0;const Qn=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),ei=bi=>0!==bi&&-this._bearingSnap<bi&&bi<this._bearingSnap;!Qn||!Qn.essential&&l.browser.prefersReducedMotion?(this._map.fire(new l.Event("moveend",{originalEvent:Mt})),ei(this._map.getBearing())&&this._map.resetNorth()):(ei(Qn.bearing||this._map.getBearing())&&(Qn.bearing=0),Qn.freezeElevation=!0,this._map.easeTo(Qn,{originalEvent:Mt})),this._updatingCamera=!1}}_fireEvent(h,k){this._map.fire(new l.Event(h,k?{originalEvent:k}:{}))}_requestFrame(){return this._map.triggerRepaint(),this._map._renderTaskQueue.add(h=>{delete this._frameId,this.handleEvent(new nt("renderFrame",{timeStamp:h})),this._applyChanges()})}_triggerRenderFrame(){void 0===this._frameId&&(this._frameId=this._requestFrame())}}class $i extends l.Evented{constructor(h,k){super(),this._renderFrameCallback=()=>{const se=Math.min((l.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(se)),se<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this._moving=!1,this._zooming=!1,this.transform=h,this._bearingSnap=k.bearingSnap,this.on("moveend",()=>{delete this._requestedCameraState})}getCenter(){return new l.LngLat(this.transform.center.lng,this.transform.center.lat)}setCenter(h,k){return this.jumpTo({center:h},k)}panBy(h,k,se){return h=l.Point.convert(h).mult(-1),this.panTo(this.transform.center,l.extend({offset:h},k),se)}panTo(h,k,se){return this.easeTo(l.extend({center:h},k),se)}getZoom(){return this.transform.zoom}setZoom(h,k){return this.jumpTo({zoom:h},k),this}zoomTo(h,k,se){return this.easeTo(l.extend({zoom:h},k),se)}zoomIn(h,k){return this.zoomTo(this.getZoom()+1,h,k),this}zoomOut(h,k){return this.zoomTo(this.getZoom()-1,h,k),this}getBearing(){return this.transform.bearing}setBearing(h,k){return this.jumpTo({bearing:h},k),this}getPadding(){return this.transform.padding}setPadding(h,k){return this.jumpTo({padding:h},k),this}rotateTo(h,k,se){return this.easeTo(l.extend({bearing:h},k),se)}resetNorth(h,k){return this.rotateTo(0,l.extend({duration:1e3},h),k),this}resetNorthPitch(h,k){return this.easeTo(l.extend({bearing:0,pitch:0,duration:1e3},h),k),this}snapToNorth(h,k){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(h,k):this}getPitch(){return this.transform.pitch}setPitch(h,k){return this.jumpTo({pitch:h},k),this}cameraForBounds(h,k){h=Se.convert(h);const se=k&&k.bearing||0;return this._cameraForBoxAndBearing(h.getNorthWest(),h.getSouthEast(),se,k)}_cameraForBoxAndBearing(h,k,se,de){const Ae={top:0,bottom:0,right:0,left:0};if("number"==typeof(de=l.extend({padding:Ae,offset:[0,0],maxZoom:this.transform.maxZoom},de)).padding){const hi=de.padding;de.padding={top:hi,bottom:hi,right:hi,left:hi}}de.padding=l.extend(Ae,de.padding);const Ct=this.transform,wt=Ct.padding,Mt=Ct.project(l.LngLat.convert(h)),fn=Ct.project(l.LngLat.convert(k)),Qn=Mt.rotate(-se*Math.PI/180),ei=fn.rotate(-se*Math.PI/180),bi=new l.Point(Math.max(Qn.x,ei.x),Math.max(Qn.y,ei.y)),zi=new l.Point(Math.min(Qn.x,ei.x),Math.min(Qn.y,ei.y)),Be=bi.sub(zi),pt=(Ct.width-(wt.left+wt.right+de.padding.left+de.padding.right))/Be.x,Ye=(Ct.height-(wt.top+wt.bottom+de.padding.top+de.padding.bottom))/Be.y;if(Ye<0||pt<0)return void l.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.");const ut=Math.min(Ct.scaleZoom(Ct.scale*Math.min(pt,Ye)),de.maxZoom),Kt=l.Point.convert(de.offset),en=new l.Point((de.padding.left-de.padding.right)/2,(de.padding.top-de.padding.bottom)/2).rotate(se*Math.PI/180),qn=Kt.add(en).mult(Ct.scale/Ct.zoomScale(ut));return{center:Ct.unproject(Mt.add(fn).div(2).sub(qn)),zoom:ut,bearing:se}}fitBounds(h,k,se){return this._fitInternal(this.cameraForBounds(h,k),k,se)}fitScreenCoordinates(h,k,se,de,Ae){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(l.Point.convert(h)),this.transform.pointLocation(l.Point.convert(k)),se,de),de,Ae)}_fitInternal(h,k,se){return h?(delete(k=l.extend(h,k)).padding,k.linear?this.easeTo(k,se):this.flyTo(k,se)):this}jumpTo(h,k){this.stop();const se=this._getTransformForUpdate();let de=!1,Ae=!1,Ct=!1;return"zoom"in h&&se.zoom!==+h.zoom&&(de=!0,se.zoom=+h.zoom),void 0!==h.center&&(se.center=l.LngLat.convert(h.center)),"bearing"in h&&se.bearing!==+h.bearing&&(Ae=!0,se.bearing=+h.bearing),"pitch"in h&&se.pitch!==+h.pitch&&(Ct=!0,se.pitch=+h.pitch),null==h.padding||se.isPaddingEqual(h.padding)||(se.padding=h.padding),this._applyUpdatedTransform(se),this.fire(new l.Event("movestart",k)).fire(new l.Event("move",k)),de&&this.fire(new l.Event("zoomstart",k)).fire(new l.Event("zoom",k)).fire(new l.Event("zoomend",k)),Ae&&this.fire(new l.Event("rotatestart",k)).fire(new l.Event("rotate",k)).fire(new l.Event("rotateend",k)),Ct&&this.fire(new l.Event("pitchstart",k)).fire(new l.Event("pitch",k)).fire(new l.Event("pitchend",k)),this.fire(new l.Event("moveend",k))}calculateCameraOptionsFromTo(h,k,se,de=0){const Ae=l.MercatorCoordinate.fromLngLat(h,k),Ct=l.MercatorCoordinate.fromLngLat(se,de),wt=Ct.x-Ae.x,Mt=Ct.y-Ae.y,fn=Ct.z-Ae.z,Qn=Math.hypot(wt,Mt,fn);if(0===Qn)throw new Error("Can't calculate camera options with same From and To");const ei=Math.hypot(wt,Mt),bi=this.transform.scaleZoom(this.transform.cameraToCenterDistance/Qn/this.transform.tileSize),zi=180*Math.atan2(wt,-Mt)/Math.PI;let Be=180*Math.acos(ei/Qn)/Math.PI;return Be=fn<0?90-Be:90+Be,{center:Ct.toLngLat(),zoom:bi,pitch:Be,bearing:zi}}easeTo(h,k){this._stop(!1,h.easeId),(!1===(h=l.extend({offset:[0,0],duration:500,easing:l.defaultEasing},h)).animate||!h.essential&&l.browser.prefersReducedMotion)&&(h.duration=0);const se=this._getTransformForUpdate(),de=this.getZoom(),Ae=this.getBearing(),Ct=this.getPitch(),wt=this.getPadding(),Mt="zoom"in h?+h.zoom:de,fn="bearing"in h?this._normalizeBearing(h.bearing,Ae):Ae,Qn="pitch"in h?+h.pitch:Ct,ei="padding"in h?h.padding:se.padding,bi=l.Point.convert(h.offset);let zi=se.centerPoint.add(bi);const Be=se.pointLocation(zi),pt=l.LngLat.convert(h.center||Be);this._normalizeCenter(pt);const Ye=se.project(Be),ut=se.project(pt).sub(Ye),Kt=se.zoomScale(Mt-de);let en,qn;h.around&&(en=l.LngLat.convert(h.around),qn=se.locationPoint(en));const hi={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=this._zooming||Mt!==de,this._rotating=this._rotating||Ae!==fn,this._pitching=this._pitching||Qn!==Ct,this._padding=!se.isPaddingEqual(ei),this._easeId=h.easeId,this._prepareEase(k,h.noMoveStart,hi),this.terrain&&this._prepareElevation(pt),this._ease(gi=>{if(this._zooming&&(se.zoom=l.interpolate.number(de,Mt,gi)),this._rotating&&(se.bearing=l.interpolate.number(Ae,fn,gi)),this._pitching&&(se.pitch=l.interpolate.number(Ct,Qn,gi)),this._padding&&(se.interpolatePadding(wt,ei,gi),zi=se.centerPoint.add(bi)),this.terrain&&!h.freezeElevation&&this._updateElevation(gi),en)se.setLocationAtPoint(en,qn);else{const ko=se.zoomScale(se.zoom-de),Wo=Mt>de?Math.min(2,Kt):Math.max(.5,Kt),tr=Math.pow(Wo,1-gi),br=se.unproject(Ye.add(ut.mult(gi*tr)).mult(ko));se.setLocationAtPoint(se.renderWorldCopies?br.wrap():br,zi)}this._applyUpdatedTransform(se),this._fireMoveEvents(k)},gi=>{this.terrain&&this._finalizeElevation(),this._afterEase(k,gi)},h),this}_prepareEase(h,k,se={}){this._moving=!0,k||se.moving||this.fire(new l.Event("movestart",h)),this._zooming&&!se.zooming&&this.fire(new l.Event("zoomstart",h)),this._rotating&&!se.rotating&&this.fire(new l.Event("rotatestart",h)),this._pitching&&!se.pitching&&this.fire(new l.Event("pitchstart",h))}_prepareElevation(h){this._elevationCenter=h,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLatZoom(h,this.transform.tileZoom),this._elevationFreeze=!0}_updateElevation(h){this.transform._minEleveationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);const k=this.terrain.getElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);if(h<1&&k!==this._elevationTarget){const se=this._elevationTarget-this._elevationStart;this._elevationStart+=h*(se-(k-(se*h+this._elevationStart))/(1-h)),this._elevationTarget=k}this.transform.elevation=l.interpolate.number(this._elevationStart,this._elevationTarget,h)}_finalizeElevation(){this._elevationFreeze=!1,this.transform.recalculateZoom(this.terrain)}_getTransformForUpdate(){return this.transformCameraUpdate?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_applyUpdatedTransform(h){if(!this.transformCameraUpdate)return;const k=h.clone(),{center:se,zoom:de,pitch:Ae,bearing:Ct,elevation:wt}=this.transformCameraUpdate(k);se&&(k.center=se),void 0!==de&&(k.zoom=de),void 0!==Ae&&(k.pitch=Ae),void 0!==Ct&&(k.bearing=Ct),void 0!==wt&&(k.elevation=wt),this.transform.apply(k)}_fireMoveEvents(h){this.fire(new l.Event("move",h)),this._zooming&&this.fire(new l.Event("zoom",h)),this._rotating&&this.fire(new l.Event("rotate",h)),this._pitching&&this.fire(new l.Event("pitch",h))}_afterEase(h,k){if(this._easeId&&k&&this._easeId===k)return;delete this._easeId;const se=this._zooming,de=this._rotating,Ae=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,se&&this.fire(new l.Event("zoomend",h)),de&&this.fire(new l.Event("rotateend",h)),Ae&&this.fire(new l.Event("pitchend",h)),this.fire(new l.Event("moveend",h))}flyTo(h,k){if(!h.essential&&l.browser.prefersReducedMotion){const Xr=l.pick(h,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Xr,k)}this.stop(),h=l.extend({offset:[0,0],speed:1.2,curve:1.42,easing:l.defaultEasing},h);const se=this._getTransformForUpdate(),de=this.getZoom(),Ae=this.getBearing(),Ct=this.getPitch(),wt=this.getPadding(),Mt="zoom"in h?l.clamp(+h.zoom,se.minZoom,se.maxZoom):de,fn="bearing"in h?this._normalizeBearing(h.bearing,Ae):Ae,Qn="pitch"in h?+h.pitch:Ct,ei="padding"in h?h.padding:se.padding,bi=se.zoomScale(Mt-de),zi=l.Point.convert(h.offset);let Be=se.centerPoint.add(zi);const pt=se.pointLocation(Be),Ye=l.LngLat.convert(h.center||pt);this._normalizeCenter(Ye);const ut=se.project(pt),Kt=se.project(Ye).sub(ut);let en=h.curve;const qn=Math.max(se.width,se.height),hi=qn/bi,gi=Kt.mag();if("minZoom"in h){const Xr=l.clamp(Math.min(h.minZoom,de,Mt),se.minZoom,se.maxZoom),Es=qn/se.zoomScale(Xr-de);en=Math.sqrt(Es/gi*2)}const ko=en*en;function Wo(Xr){const Es=(hi*hi-qn*qn+(Xr?-1:1)*ko*ko*gi*gi)/(2*(Xr?hi:qn)*ko*gi);return Math.log(Math.sqrt(Es*Es+1)-Es)}function tr(Xr){return(Math.exp(Xr)-Math.exp(-Xr))/2}function br(Xr){return(Math.exp(Xr)+Math.exp(-Xr))/2}const fa=Wo(!1);let ga=function(Xr){return br(fa)/br(fa+en*Xr)},$r=function(Xr){return qn*((br(fa)*(tr(Es=fa+en*Xr)/br(Es))-tr(fa))/ko)/gi;var Es},Rr=(Wo(!0)-fa)/en;if(Math.abs(gi)<1e-6||!isFinite(Rr)){if(Math.abs(qn-hi)<1e-6)return this.easeTo(h,k);const Xr=hi<qn?-1:1;Rr=Math.abs(Math.log(hi/qn))/en,$r=function(){return 0},ga=function(Es){return Math.exp(Xr*en*Es)}}return h.duration="duration"in h?+h.duration:1e3*Rr/("screenSpeed"in h?+h.screenSpeed/en:+h.speed),h.maxDuration&&h.duration>h.maxDuration&&(h.duration=0),this._zooming=!0,this._rotating=Ae!==fn,this._pitching=Qn!==Ct,this._padding=!se.isPaddingEqual(ei),this._prepareEase(k,!1),this.terrain&&this._prepareElevation(Ye),this._ease(Xr=>{const Es=Xr*Rr,Ys=1/ga(Es);se.zoom=1===Xr?Mt:de+se.scaleZoom(Ys),this._rotating&&(se.bearing=l.interpolate.number(Ae,fn,Xr)),this._pitching&&(se.pitch=l.interpolate.number(Ct,Qn,Xr)),this._padding&&(se.interpolatePadding(wt,ei,Xr),Be=se.centerPoint.add(zi)),this.terrain&&!h.freezeElevation&&this._updateElevation(Xr);const qa=1===Xr?Ye:se.unproject(ut.add(Kt.mult($r(Es))).mult(Ys));se.setLocationAtPoint(se.renderWorldCopies?qa.wrap():qa,Be),this._applyUpdatedTransform(se),this._fireMoveEvents(k)},()=>{this.terrain&&this._finalizeElevation(),this._afterEase(k)},h),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(h,k){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){const se=this._onEaseEnd;delete this._onEaseEnd,se.call(this,k)}if(!h){const se=this.handlers;se&&se.stop(!1)}return this}_ease(h,k,se){!1===se.animate||0===se.duration?(h(1),k()):(this._easeStart=l.browser.now(),this._easeOptions=se,this._onEaseFrame=h,this._onEaseEnd=k,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(h,k){h=l.wrap(h,-180,180);const se=Math.abs(h-k);return Math.abs(h-360-k)<se&&(h-=360),Math.abs(h+360-k)<se&&(h+=360),h}_normalizeCenter(h){const k=this.transform;if(!k.renderWorldCopies||k.lngRange)return;const se=h.lng-k.center.lng;h.lng+=se>180?-360:se<-180?360:0}queryTerrainElevation(h){return this.terrain?this.terrain.getElevationForLngLatZoom(l.LngLat.convert(h),this.transform.tileZoom)-this.transform.elevation:null}}class No{constructor(h={}){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=k=>{!k||"metadata"!==k.sourceDataType&&"visibility"!==k.sourceDataType&&"style"!==k.dataType&&"terrain"!==k.type||this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?!1===this._compact?this._container.setAttribute("open",""):this._container.classList.contains("maplibregl-compact")||this._container.classList.contains("maplibregl-attrib-empty")||(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=h}getDefaultPosition(){return"bottom-right"}onAdd(h){return this._map=h,this._compact=this.options&&this.options.compact,this._container=t.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=t.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=t.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){t.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(h,k){const se=this._map._getUIString(`AttributionControl.${k}`);h.title=se,h.setAttribute("aria-label",se)}_updateAttributions(){if(!this._map.style)return;let h=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?h=h.concat(this.options.customAttribution.map(de=>"string"!=typeof de?"":de)):"string"==typeof this.options.customAttribution&&h.push(this.options.customAttribution)),this._map.style.stylesheet){const de=this._map.style.stylesheet;this.styleOwner=de.owner,this.styleId=de.id}const k=this._map.style.sourceCaches;for(const de in k){const Ae=k[de];if(Ae.used||Ae.usedForTerrain){const Ct=Ae.getSource();Ct.attribution&&h.indexOf(Ct.attribution)<0&&h.push(Ct.attribution)}}h=h.filter(de=>String(de).trim()),h.sort((de,Ae)=>de.length-Ae.length),h=h.filter((de,Ae)=>{for(let Ct=Ae+1;Ct<h.length;Ct++)if(h[Ct].indexOf(de)>=0)return!1;return!0});const se=h.join(" | ");se!==this._attribHTML&&(this._attribHTML=se,h.length?(this._innerContainer.innerHTML=se,this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}}class Ar{constructor(h={}){this._updateCompact=()=>{const k=this._container.children;if(k.length){const se=k[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?!1!==this._compact&&se.classList.add("maplibregl-compact"):se.classList.remove("maplibregl-compact")}},this.options=h}getDefaultPosition(){return"bottom-left"}onAdd(h){this._map=h,this._compact=this.options&&this.options.compact,this._container=t.create("div","maplibregl-ctrl");const k=t.create("a","maplibregl-ctrl-logo");return k.target="_blank",k.rel="noopener nofollow",k.href="https://maplibre.org/",k.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),k.setAttribute("rel","noopener nofollow"),this._container.appendChild(k),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){t.remove(this._container),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}}class xr{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(h){const k=++this._id;return this._queue.push({callback:h,id:k,cancelled:!1}),k}remove(h){const k=this._currentlyRunning,se=k?this._queue.concat(k):this._queue;for(const de of se)if(de.id===h)return void(de.cancelled=!0)}run(h=0){if(this._currentlyRunning)throw new Error("Attempting to run(), but is already running.");const k=this._currentlyRunning=this._queue;this._queue=[];for(const se of k)if(!se.cancelled&&(se.callback(h),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}const Sr={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm","TerrainControl.enableTerrain":"Enable terrain","TerrainControl.disableTerrain":"Disable terrain"};var ns=l.createLayout([{name:"a_pos3d",type:"Int16",components:3}]);class Tl extends l.Evented{constructor(h){super(),this.sourceCache=h,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.deltaZoom=1,h.usedForTerrain=!0,h.tileSize=this.tileSize*2**this.deltaZoom}destruct(){this.sourceCache.usedForTerrain=!1,this.sourceCache.tileSize=null}update(h,k){this.sourceCache.update(h,k),this._renderableTilesKeys=[];const se={};for(const de of h.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:k}))se[de.key]=!0,this._renderableTilesKeys.push(de.key),this._tiles[de.key]||(de.posMatrix=new Float64Array(16),l.ortho(de.posMatrix,0,l.EXTENT,0,l.EXTENT,0,1),this._tiles[de.key]=new Rn(de,this.tileSize));for(const de in this._tiles)se[de]||delete this._tiles[de]}freeRtt(h){for(const k in this._tiles){const se=this._tiles[k];(!h||se.tileID.equals(h)||se.tileID.isChildOf(h)||h.isChildOf(se.tileID))&&(se.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map(h=>this.getTileByID(h))}getTileByID(h){return this._tiles[h]}getTerrainCoords(h){const k={};for(const se of this._renderableTilesKeys){const de=this._tiles[se].tileID;if(de.canonical.equals(h.canonical)){const Ae=h.clone();Ae.posMatrix=new Float64Array(16),l.ortho(Ae.posMatrix,0,l.EXTENT,0,l.EXTENT,0,1),k[se]=Ae}else if(de.canonical.isChildOf(h.canonical)){const Ae=h.clone();Ae.posMatrix=new Float64Array(16);const Ct=de.canonical.z-h.canonical.z,wt=de.canonical.x-(de.canonical.x>>Ct<<Ct),Mt=de.canonical.y-(de.canonical.y>>Ct<<Ct),fn=l.EXTENT>>Ct;l.ortho(Ae.posMatrix,0,fn,0,fn,0,1),l.translate(Ae.posMatrix,Ae.posMatrix,[-wt*fn,-Mt*fn,0]),k[se]=Ae}else if(h.canonical.isChildOf(de.canonical)){const Ae=h.clone();Ae.posMatrix=new Float64Array(16);const Ct=h.canonical.z-de.canonical.z,wt=h.canonical.x-(h.canonical.x>>Ct<<Ct),Mt=h.canonical.y-(h.canonical.y>>Ct<<Ct),fn=l.EXTENT>>Ct;l.ortho(Ae.posMatrix,0,l.EXTENT,0,l.EXTENT,0,1),l.translate(Ae.posMatrix,Ae.posMatrix,[wt*fn,Mt*fn,0]),l.scale(Ae.posMatrix,Ae.posMatrix,[1/2**Ct,1/2**Ct,0]),k[se]=Ae}}return k}getSourceTile(h,k){const se=this.sourceCache._source;let de=h.overscaledZ-this.deltaZoom;if(de>se.maxzoom&&(de=se.maxzoom),de<se.minzoom)return null;this._sourceTileCache[h.key]||(this._sourceTileCache[h.key]=h.scaledTo(de).key);let Ae=this.sourceCache.getTileByID(this._sourceTileCache[h.key]);if((!Ae||!Ae.dem)&&k)for(;de>=se.minzoom&&(!Ae||!Ae.dem);)Ae=this.sourceCache.getTileByID(h.scaledTo(de--).key);return Ae}tilesAfterTime(h=Date.now()){return Object.values(this._tiles).filter(k=>k.timeAdded>=h)}}class Fs{constructor(h,k,se){this.painter=h,this.sourceCache=new Tl(k),this.options=se,this.exaggeration="number"==typeof se.exaggeration?se.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}getDEMElevation(h,k,se,de=l.EXTENT){var Ae;if(!(k>=0&&k<de&&se>=0&&se<de))return 0;const Ct=this.getTerrainData(h),wt=null===(Ae=Ct.tile)||void 0===Ae?void 0:Ae.dem;if(!wt)return 0;const Mt=((Be=[])[0]=(Ye=Ct.u_terrain_matrix)[0]*(ut=(pt=[k/de*l.EXTENT,se/de*l.EXTENT])[0])+Ye[4]*(Kt=pt[1])+Ye[12],Be[1]=Ye[1]*ut+Ye[5]*Kt+Ye[13],Be),fn=[Mt[0]*wt.dim,Mt[1]*wt.dim],Qn=Math.floor(fn[0]),ei=Math.floor(fn[1]),bi=fn[0]-Qn,zi=fn[1]-ei;var Be,pt,Ye,ut,Kt;return wt.get(Qn,ei)*(1-bi)*(1-zi)+wt.get(Qn+1,ei)*bi*(1-zi)+wt.get(Qn,ei+1)*(1-bi)*zi+wt.get(Qn+1,ei+1)*bi*zi}getElevationForLngLatZoom(h,k){const{tileID:se,mercatorX:de,mercatorY:Ae}=this._getOverscaledTileIDFromLngLatZoom(h,k);return this.getElevation(se,de%l.EXTENT,Ae%l.EXTENT,l.EXTENT)}getElevation(h,k,se,de=l.EXTENT){return this.getDEMElevation(h,k,se,de)*this.exaggeration}getTerrainData(h){if(!this._emptyDemTexture){const de=this.painter.context,Ae=new l.RGBAImage({width:1,height:1},new Uint8Array(4));this._emptyDepthTexture=new j(de,Ae,de.gl.RGBA,{premultiply:!1}),this._emptyDemUnpack=[0,0,0,0],this._emptyDemTexture=new j(de,new l.RGBAImage({width:1,height:1}),de.gl.RGBA,{premultiply:!1}),this._emptyDemTexture.bind(de.gl.NEAREST,de.gl.CLAMP_TO_EDGE),this._emptyDemMatrix=l.identity([])}const k=this.sourceCache.getSourceTile(h,!0);if(k&&k.dem&&(!k.demTexture||k.needsTerrainPrepare)){const de=this.painter.context;k.demTexture=this.painter.getTileTexture(k.dem.stride),k.demTexture?k.demTexture.update(k.dem.getPixels(),{premultiply:!1}):k.demTexture=new j(de,k.dem.getPixels(),de.gl.RGBA,{premultiply:!1}),k.demTexture.bind(de.gl.NEAREST,de.gl.CLAMP_TO_EDGE),k.needsTerrainPrepare=!1}const se=k&&k+k.tileID.key+h.key;if(se&&!this._demMatrixCache[se]){const de=this.sourceCache.sourceCache._source.maxzoom;let Ae=h.canonical.z-k.tileID.canonical.z;h.overscaledZ>h.canonical.z&&(h.canonical.z>=de?Ae=h.canonical.z-de:l.warnOnce("cannot calculate elevation if elevation maxzoom > source.maxzoom"));const Ct=h.canonical.x-(h.canonical.x>>Ae<<Ae),wt=h.canonical.y-(h.canonical.y>>Ae<<Ae),Mt=l.fromScaling(new Float64Array(16),[1/(l.EXTENT<<Ae),1/(l.EXTENT<<Ae),0]);l.translate(Mt,Mt,[Ct*l.EXTENT,wt*l.EXTENT,0]),this._demMatrixCache[h.key]={matrix:Mt,coord:h}}return{u_depth:2,u_terrain:3,u_terrain_dim:k&&k.dem&&k.dem.dim||1,u_terrain_matrix:se?this._demMatrixCache[h.key].matrix:this._emptyDemMatrix,u_terrain_unpack:k&&k.dem&&k.dem.getUnpackVector()||this._emptyDemUnpack,u_terrain_exaggeration:this.exaggeration,texture:(k&&k.demTexture||this._emptyDemTexture).texture,depthTexture:(this._fboDepthTexture||this._emptyDepthTexture).texture,tile:k}}getFramebuffer(h){const k=this.painter,se=k.width/devicePixelRatio,de=k.height/devicePixelRatio;return!this._fbo||this._fbo.width===se&&this._fbo.height===de||(this._fbo.destroy(),this._fboCoordsTexture.destroy(),this._fboDepthTexture.destroy(),delete this._fbo,delete this._fboDepthTexture,delete this._fboCoordsTexture),this._fboCoordsTexture||(this._fboCoordsTexture=new j(k.context,{width:se,height:de,data:null},k.context.gl.RGBA,{premultiply:!1}),this._fboCoordsTexture.bind(k.context.gl.NEAREST,k.context.gl.CLAMP_TO_EDGE)),this._fboDepthTexture||(this._fboDepthTexture=new j(k.context,{width:se,height:de,data:null},k.context.gl.RGBA,{premultiply:!1}),this._fboDepthTexture.bind(k.context.gl.NEAREST,k.context.gl.CLAMP_TO_EDGE)),this._fbo||(this._fbo=k.context.createFramebuffer(se,de,!0,!1),this._fbo.depthAttachment.set(k.context.createRenderbuffer(k.context.gl.DEPTH_COMPONENT16,se,de))),this._fbo.colorAttachment.set("coords"===h?this._fboCoordsTexture.texture:this._fboDepthTexture.texture),this._fbo}getCoordsTexture(){const h=this.painter.context;if(this._coordsTexture)return this._coordsTexture;const k=new Uint8Array(this._coordsTextureSize*this._coordsTextureSize*4);for(let Ae=0,Ct=0;Ae<this._coordsTextureSize;Ae++)for(let wt=0;wt<this._coordsTextureSize;wt++,Ct+=4)k[Ct+0]=255&wt,k[Ct+1]=255&Ae,k[Ct+2]=wt>>8<<4|Ae>>8,k[Ct+3]=0;const se=new l.RGBAImage({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(k.buffer)),de=new j(h,se,h.gl.RGBA,{premultiply:!1});return de.bind(h.gl.NEAREST,h.gl.CLAMP_TO_EDGE),this._coordsTexture=de,de}pointCoordinate(h){const k=new Uint8Array(4),se=this.painter.context,de=se.gl;se.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),de.readPixels(h.x,this.painter.height/devicePixelRatio-h.y-1,1,1,de.RGBA,de.UNSIGNED_BYTE,k),se.bindFramebuffer.set(null);const Ae=k[0]+(k[2]>>4<<8),Ct=k[1]+((15&k[2])<<8),wt=this.coordsIndex[255-k[3]],Mt=wt&&this.sourceCache.getTileByID(wt);if(!Mt)return null;const fn=this._coordsTextureSize,Qn=(1<<Mt.tileID.canonical.z)*fn;return new l.MercatorCoordinate((Mt.tileID.canonical.x*fn+Ae)/Qn,(Mt.tileID.canonical.y*fn+Ct)/Qn,this.getElevation(Mt.tileID,Ae,Ct,fn))}getTerrainMesh(){if(this._mesh)return this._mesh;const h=this.painter.context,k=new l.Pos3dArray,se=new l.TriangleIndexArray,de=this.meshSize,Ae=l.EXTENT/de,Ct=de*de;for(let ei=0;ei<=de;ei++)for(let bi=0;bi<=de;bi++)k.emplaceBack(bi*Ae,ei*Ae,0);for(let ei=0;ei<Ct;ei+=de+1)for(let bi=0;bi<de;bi++)se.emplaceBack(bi+ei,de+bi+ei+1,de+bi+ei+2),se.emplaceBack(bi+ei,de+bi+ei+2,bi+ei+1);const wt=k.length,Mt=wt+2*(de+1);for(const ei of[0,1])for(let bi=0;bi<=de;bi++)for(const zi of[0,1])k.emplaceBack(bi*Ae,ei*l.EXTENT,zi);for(let ei=0;ei<2*de;ei+=2)se.emplaceBack(Mt+ei,Mt+ei+1,Mt+ei+3),se.emplaceBack(Mt+ei,Mt+ei+3,Mt+ei+2),se.emplaceBack(wt+ei,wt+ei+3,wt+ei+1),se.emplaceBack(wt+ei,wt+ei+2,wt+ei+3);const fn=k.length,Qn=fn+2*(de+1);for(const ei of[0,1])for(let bi=0;bi<=de;bi++)for(const zi of[0,1])k.emplaceBack(ei*l.EXTENT,bi*Ae,zi);for(let ei=0;ei<2*de;ei+=2)se.emplaceBack(fn+ei,fn+ei+1,fn+ei+3),se.emplaceBack(fn+ei,fn+ei+3,fn+ei+2),se.emplaceBack(Qn+ei,Qn+ei+3,Qn+ei+1),se.emplaceBack(Qn+ei,Qn+ei+2,Qn+ei+3);return this._mesh={indexBuffer:h.createIndexBuffer(se),vertexBuffer:h.createVertexBuffer(k,ns.members),segments:l.SegmentVector.simpleSegment(0,0,k.length,se.length)},this._mesh}getMeshFrameDelta(h){return 2*Math.PI*l.earthRadius/Math.pow(2,h)/5}getMinTileElevationForLngLatZoom(h,k){var se;const{tileID:de}=this._getOverscaledTileIDFromLngLatZoom(h,k);return null!==(se=this.getMinMaxElevation(de).minElevation)&&void 0!==se?se:0}getMinMaxElevation(h){const k=this.getTerrainData(h).tile,se={minElevation:null,maxElevation:null};return k&&k.dem&&(se.minElevation=k.dem.min*this.exaggeration,se.maxElevation=k.dem.max*this.exaggeration),se}_getOverscaledTileIDFromLngLatZoom(h,k){const se=l.MercatorCoordinate.fromLngLat(h.wrap()),de=(1<<k)*l.EXTENT,Ae=se.x*de,Ct=se.y*de,wt=Math.floor(Ae/l.EXTENT),Mt=Math.floor(Ct/l.EXTENT);return{tileID:new l.OverscaledTileID(k,0,k,wt,Mt),mercatorX:Ae,mercatorY:Ct}}}class il{constructor(h,k,se){this._context=h,this._size=k,this._tileSize=se,this._objects=[],this._recentlyUsed=[],this._stamp=0}destruct(){for(const h of this._objects)h.texture.destroy(),h.fbo.destroy()}_createObject(h){const k=this._context.createFramebuffer(this._tileSize,this._tileSize,!0,!0),se=new j(this._context,{width:this._tileSize,height:this._tileSize,data:null},this._context.gl.RGBA);return se.bind(this._context.gl.LINEAR,this._context.gl.CLAMP_TO_EDGE),k.depthAttachment.set(this._context.createRenderbuffer(this._context.gl.DEPTH_STENCIL,this._tileSize,this._tileSize)),k.colorAttachment.set(se.texture),{id:h,fbo:k,texture:se,stamp:-1,inUse:!1}}getObjectForId(h){return this._objects[h]}useObject(h){h.inUse=!0,this._recentlyUsed=this._recentlyUsed.filter(k=>h.id!==k),this._recentlyUsed.push(h.id)}stampObject(h){h.stamp=++this._stamp}getOrCreateFreeObject(){for(const k of this._recentlyUsed)if(!this._objects[k].inUse)return this._objects[k];if(this._objects.length>=this._size)throw new Error("No free RenderPool available, call freeAllObjects() required!");const h=this._createObject(this._objects.length);return this._objects.push(h),h}freeObject(h){h.inUse=!1}freeAllObjects(){for(const h of this._objects)this.freeObject(h)}isFull(){return!(this._objects.length<this._size)&&!1===this._objects.some(h=>!h.inUse)}}const ac={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0};class Nl{constructor(h,k){this.painter=h,this.terrain=k,this.pool=new il(h.context,30,k.sourceCache.tileSize*k.qualityFactor)}destruct(){this.pool.destruct()}getTexture(h){return this.pool.getObjectForId(h.rtt[this._stacks.length-1].id).texture}prepareForRender(h,k){this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.sourceCache.getRenderableTiles(),this._renderableLayerIds=h._order.filter(se=>!h._layers[se].isHidden(k)),this._coordsDescendingInv={};for(const se in h.sourceCaches){this._coordsDescendingInv[se]={};const de=h.sourceCaches[se].getVisibleCoordinates();for(const Ae of de){const Ct=this.terrain.sourceCache.getTerrainCoords(Ae);for(const wt in Ct)this._coordsDescendingInv[se][wt]||(this._coordsDescendingInv[se][wt]=[]),this._coordsDescendingInv[se][wt].push(Ct[wt])}}this._coordsDescendingInvStr={};for(const se of h._order){const de=h._layers[se],Ae=de.source;if(ac[de.type]&&!this._coordsDescendingInvStr[Ae]){this._coordsDescendingInvStr[Ae]={};for(const Ct in this._coordsDescendingInv[Ae])this._coordsDescendingInvStr[Ae][Ct]=this._coordsDescendingInv[Ae][Ct].map(wt=>wt.key).sort().join()}}for(const se of this._renderableTiles)for(const de in this._coordsDescendingInvStr){const Ae=this._coordsDescendingInvStr[de][se.tileID.key];Ae&&Ae!==se.rttCoords[de]&&(se.rtt=[])}}renderLayer(h){if(h.isHidden(this.painter.transform.zoom))return!1;const k=h.type,se=this.painter,de=this._renderableLayerIds[this._renderableLayerIds.length-1]===h.id;if(ac[k]&&(this._prevType&&ac[this._prevType]||this._stacks.push([]),this._prevType=k,this._stacks[this._stacks.length-1].push(h.id),!de))return!0;if(ac[this._prevType]||ac[k]&&de){this._prevType=k;const Ae=this._stacks.length-1,Ct=this._stacks[Ae]||[];for(const wt of this._renderableTiles){if(this.pool.isFull()&&(bc(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(wt),wt.rtt[Ae]){const fn=this.pool.getObjectForId(wt.rtt[Ae].id);if(fn.stamp===wt.rtt[Ae].stamp){this.pool.useObject(fn);continue}}const Mt=this.pool.getOrCreateFreeObject();this.pool.useObject(Mt),this.pool.stampObject(Mt),wt.rtt[Ae]={id:Mt.id,stamp:Mt.stamp},se.context.bindFramebuffer.set(Mt.fbo.framebuffer),se.context.clear({color:l.Color.transparent,stencil:0}),se.currentStencilSource=void 0;for(let fn=0;fn<Ct.length;fn++){const Qn=se.style._layers[Ct[fn]],ei=Qn.source?this._coordsDescendingInv[Qn.source][wt.tileID.key]:[wt.tileID];se.context.viewport.set([0,0,Mt.fbo.width,Mt.fbo.height]),se._renderTileClippingMasks(Qn,ei),se.renderLayer(se,se.style.sourceCaches[Qn.source],Qn,ei),Qn.source&&(wt.rttCoords[Qn.source]=this._coordsDescendingInvStr[Qn.source][wt.tileID.key])}}return bc(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects(),ac[k]}return!1}}const em=i,Kl={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:void 0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,maplibreLogo:!1,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,maxTileCacheZoomLevels:l.config.MAX_TILE_CACHE_ZOOM_LEVELS,localIdeographFontFamily:"sans-serif",transformRequest:null,transformCameraUpdate:null,fadeDuration:300,crossSourceCollisions:!0,validateStyle:!0,maxCanvasSize:[4096,4096]},xl=xe=>{xe.touchstart=xe.dragStart,xe.touchmoveWindow=xe.dragMove,xe.touchend=xe.dragEnd},ll={showCompass:!0,showZoom:!0,visualizePitch:!1};class tm{constructor(h,k,se=!1){this.mousedown=Ct=>{this.startMouse(l.extend({},Ct,{ctrlKey:!0,preventDefault:()=>Ct.preventDefault()}),t.mousePos(this.element,Ct)),t.addEventListener(window,"mousemove",this.mousemove),t.addEventListener(window,"mouseup",this.mouseup)},this.mousemove=Ct=>{this.moveMouse(Ct,t.mousePos(this.element,Ct))},this.mouseup=Ct=>{this.mouseRotate.dragEnd(Ct),this.mousePitch&&this.mousePitch.dragEnd(Ct),this.offTemp()},this.touchstart=Ct=>{1!==Ct.targetTouches.length?this.reset():(this._startPos=this._lastPos=t.touchPos(this.element,Ct.targetTouches)[0],this.startTouch(Ct,this._startPos),t.addEventListener(window,"touchmove",this.touchmove,{passive:!1}),t.addEventListener(window,"touchend",this.touchend))},this.touchmove=Ct=>{1!==Ct.targetTouches.length?this.reset():(this._lastPos=t.touchPos(this.element,Ct.targetTouches)[0],this.moveTouch(Ct,this._lastPos))},this.touchend=Ct=>{0===Ct.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),delete this._startPos,delete this._lastPos,this.offTemp()},this.reset=()=>{this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),this.touchRotate.reset(),this.touchPitch&&this.touchPitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10;const de=h.dragRotate._mouseRotate.getClickTolerance(),Ae=h.dragRotate._mousePitch.getClickTolerance();this.element=k,this.mouseRotate=Mn({clickTolerance:de,enable:!0}),this.touchRotate=(({enable:Ct,clickTolerance:wt,bearingDegreesPerPixelMoved:Mt=.8})=>{const fn=new Zt;return new nl({clickTolerance:wt,move:(Qn,ei)=>({bearingDelta:(ei.x-Qn.x)*Mt}),moveStateManager:fn,enable:Ct,assignEvents:xl})})({clickTolerance:de,enable:!0}),this.map=h,se&&(this.mousePitch=mi({clickTolerance:Ae,enable:!0}),this.touchPitch=(({enable:Ct,clickTolerance:wt,pitchDegreesPerPixelMoved:Mt=-.5})=>{const fn=new Zt;return new nl({clickTolerance:wt,move:(Qn,ei)=>({pitchDelta:(ei.y-Qn.y)*Mt}),moveStateManager:fn,enable:Ct,assignEvents:xl})})({clickTolerance:Ae,enable:!0})),t.addEventListener(k,"mousedown",this.mousedown),t.addEventListener(k,"touchstart",this.touchstart,{passive:!1}),t.addEventListener(k,"touchcancel",this.reset)}startMouse(h,k){this.mouseRotate.dragStart(h,k),this.mousePitch&&this.mousePitch.dragStart(h,k),t.disableDrag()}startTouch(h,k){this.touchRotate.dragStart(h,k),this.touchPitch&&this.touchPitch.dragStart(h,k),t.disableDrag()}moveMouse(h,k){const se=this.map,{bearingDelta:de}=this.mouseRotate.dragMove(h,k)||{};if(de&&se.setBearing(se.getBearing()+de),this.mousePitch){const{pitchDelta:Ae}=this.mousePitch.dragMove(h,k)||{};Ae&&se.setPitch(se.getPitch()+Ae)}}moveTouch(h,k){const se=this.map,{bearingDelta:de}=this.touchRotate.dragMove(h,k)||{};if(de&&se.setBearing(se.getBearing()+de),this.touchPitch){const{pitchDelta:Ae}=this.touchPitch.dragMove(h,k)||{};Ae&&se.setPitch(se.getPitch()+Ae)}}off(){const h=this.element;t.removeEventListener(h,"mousedown",this.mousedown),t.removeEventListener(h,"touchstart",this.touchstart,{passive:!1}),t.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),t.removeEventListener(window,"touchend",this.touchend),t.removeEventListener(h,"touchcancel",this.reset),this.offTemp()}offTemp(){t.enableDrag(),t.removeEventListener(window,"mousemove",this.mousemove),t.removeEventListener(window,"mouseup",this.mouseup),t.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),t.removeEventListener(window,"touchend",this.touchend)}}let Nc;function Dd(xe,h,k){if(xe=new l.LngLat(xe.lng,xe.lat),h){const se=new l.LngLat(xe.lng-360,xe.lat),de=new l.LngLat(xe.lng+360,xe.lat),Ae=k.locationPoint(xe).distSqr(h);k.locationPoint(se).distSqr(h)<Ae?xe=se:k.locationPoint(de).distSqr(h)<Ae&&(xe=de)}for(;Math.abs(xe.lng-k.center.lng)>180;){const se=k.locationPoint(xe);if(se.x>=0&&se.y>=0&&se.x<=k.width&&se.y<=k.height)break;xe.lng>k.center.lng?xe.lng-=360:xe.lng+=360}return xe}const _c={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function wc(xe,h,k){const se=xe.classList;for(const de in _c)se.remove(`maplibregl-${k}-anchor-${de}`);se.add(`maplibregl-${k}-anchor-${h}`)}class nm extends l.Evented{constructor(h){if(super(),this._onKeyPress=k=>{const se=k.code,de=k.charCode||k.keyCode;"Space"!==se&&"Enter"!==se&&32!==de&&13!==de||this.togglePopup()},this._onMapClick=k=>{const se=k.originalEvent.target,de=this._element;this._popup&&(se===de||de.contains(se))&&this.togglePopup()},this._update=k=>{if(!this._map)return;const se=this._map.loaded()&&!this._map.isMoving();("terrain"===k?.type||"render"===k?.type&&!se)&&this._map.once("render",this._update),this._map.transform.renderWorldCopies&&(this._lngLat=Dd(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset);let de="";"viewport"===this._rotationAlignment||"auto"===this._rotationAlignment?de=`rotateZ(${this._rotation}deg)`:"map"===this._rotationAlignment&&(de=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let Ae="";"viewport"===this._pitchAlignment||"auto"===this._pitchAlignment?Ae="rotateX(0deg)":"map"===this._pitchAlignment&&(Ae=`rotateX(${this._map.getPitch()}deg)`),k&&"moveend"!==k.type||(this._pos=this._pos.round()),t.setTransform(this._element,`${_c[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${Ae} ${de}`),this._map.terrain&&!this._opacityTimeout&&(this._opacityTimeout=setTimeout(()=>{const Ct=this._map.unproject(this._pos),wt=40075016.686*Math.abs(Math.cos(this._lngLat.lat*Math.PI/180))/Math.pow(2,this._map.transform.tileZoom+8);this._element.style.opacity=Ct.distanceTo(this._lngLat)>20*wt?"0.2":"1.0",this._opacityTimeout=null},100))},this._onMove=k=>{if(!this._isDragging){const se=this._clickTolerance||this._map._clickTolerance;this._isDragging=k.point.dist(this._pointerdownPos)>=se}this._isDragging&&(this._pos=k.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new l.Event("dragstart"))),this.fire(new l.Event("drag")))},this._onUp=()=>{this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new l.Event("dragend")),this._state="inactive"},this._addDragHandler=k=>{this._element.contains(k.originalEvent.target)&&(k.preventDefault(),this._positionDelta=k.point.sub(this._pos).add(this._offset),this._pointerdownPos=k.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},this._anchor=h&&h.anchor||"center",this._color=h&&h.color||"#3FB1CE",this._scale=h&&h.scale||1,this._draggable=h&&h.draggable||!1,this._clickTolerance=h&&h.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=h&&h.rotation||0,this._rotationAlignment=h&&h.rotationAlignment||"auto",this._pitchAlignment=h&&h.pitchAlignment&&"auto"!==h.pitchAlignment?h.pitchAlignment:this._rotationAlignment,h&&h.element)this._element=h.element,this._offset=l.Point.convert(h&&h.offset||[0,0]);else{this._defaultMarker=!0,this._element=t.create("div"),this._element.setAttribute("aria-label","Map marker");const k=t.createNS("http://www.w3.org/2000/svg","svg"),se=41,de=27;k.setAttributeNS(null,"display","block"),k.setAttributeNS(null,"height",`${se}px`),k.setAttributeNS(null,"width",`${de}px`),k.setAttributeNS(null,"viewBox",`0 0 ${de} ${se}`);const Ae=t.createNS("http://www.w3.org/2000/svg","g");Ae.setAttributeNS(null,"stroke","none"),Ae.setAttributeNS(null,"stroke-width","1"),Ae.setAttributeNS(null,"fill","none"),Ae.setAttributeNS(null,"fill-rule","evenodd");const Ct=t.createNS("http://www.w3.org/2000/svg","g");Ct.setAttributeNS(null,"fill-rule","nonzero");const wt=t.createNS("http://www.w3.org/2000/svg","g");wt.setAttributeNS(null,"transform","translate(3.0, 29.0)"),wt.setAttributeNS(null,"fill","#000000");const Mt=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];for(const ut of Mt){const Kt=t.createNS("http://www.w3.org/2000/svg","ellipse");Kt.setAttributeNS(null,"opacity","0.04"),Kt.setAttributeNS(null,"cx","10.5"),Kt.setAttributeNS(null,"cy","5.80029008"),Kt.setAttributeNS(null,"rx",ut.rx),Kt.setAttributeNS(null,"ry",ut.ry),wt.appendChild(Kt)}const fn=t.createNS("http://www.w3.org/2000/svg","g");fn.setAttributeNS(null,"fill",this._color);const Qn=t.createNS("http://www.w3.org/2000/svg","path");Qn.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),fn.appendChild(Qn);const ei=t.createNS("http://www.w3.org/2000/svg","g");ei.setAttributeNS(null,"opacity","0.25"),ei.setAttributeNS(null,"fill","#000000");const bi=t.createNS("http://www.w3.org/2000/svg","path");bi.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),ei.appendChild(bi);const zi=t.createNS("http://www.w3.org/2000/svg","g");zi.setAttributeNS(null,"transform","translate(6.0, 7.0)"),zi.setAttributeNS(null,"fill","#FFFFFF");const Be=t.createNS("http://www.w3.org/2000/svg","g");Be.setAttributeNS(null,"transform","translate(8.0, 8.0)");const pt=t.createNS("http://www.w3.org/2000/svg","circle");pt.setAttributeNS(null,"fill","#000000"),pt.setAttributeNS(null,"opacity","0.25"),pt.setAttributeNS(null,"cx","5.5"),pt.setAttributeNS(null,"cy","5.5"),pt.setAttributeNS(null,"r","5.4999962");const Ye=t.createNS("http://www.w3.org/2000/svg","circle");Ye.setAttributeNS(null,"fill","#FFFFFF"),Ye.setAttributeNS(null,"cx","5.5"),Ye.setAttributeNS(null,"cy","5.5"),Ye.setAttributeNS(null,"r","5.4999962"),Be.appendChild(pt),Be.appendChild(Ye),Ct.appendChild(wt),Ct.appendChild(fn),Ct.appendChild(ei),Ct.appendChild(zi),Ct.appendChild(Be),k.appendChild(Ct),k.setAttributeNS(null,"height",se*this._scale+"px"),k.setAttributeNS(null,"width",de*this._scale+"px"),this._element.appendChild(k),this._offset=l.Point.convert(h&&h.offset||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",k=>{k.preventDefault()}),this._element.addEventListener("mousedown",k=>{k.preventDefault()}),wc(this._element,this._anchor,"marker"),h&&h.className)for(const k of h.className.split(" "))this._element.classList.add(k);this._popup=null}addTo(h){return this.remove(),this._map=h,h.getCanvasContainer().appendChild(this._element),h.on("move",this._update),h.on("moveend",this._update),h.on("terrain",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),t.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(h){return this._lngLat=l.LngLat.convert(h),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(h){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),h){if(!("offset"in h.options)){const de=Math.abs(13.5)/Math.SQRT2;h.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[de,-1*(24.6+de)],"bottom-right":[-de,-1*(24.6+de)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=h,this._lngLat&&this._popup.setLngLat(this._lngLat),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this}getPopup(){return this._popup}togglePopup(){const h=this._popup;return h?(h.isOpen()?h.remove():h.addTo(this._map),this):this}getOffset(){return this._offset}setOffset(h){return this._offset=l.Point.convert(h),this._update(),this}addClassName(h){this._element.classList.add(h)}removeClassName(h){this._element.classList.remove(h)}toggleClassName(h){return this._element.classList.toggle(h)}setDraggable(h){return this._draggable=!!h,this._map&&(h?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(h){return this._rotation=h||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(h){return this._rotationAlignment=h||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(h){return this._pitchAlignment=h&&"auto"!==h?h:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}}const Id={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0};let Ns=0,Uc=!1;const dn={maxWidth:100,unit:"metric"};function Mr(xe,h,k){const se=k&&k.maxWidth||100,de=xe._container.clientHeight/2,Ae=xe.unproject([0,de]),Ct=xe.unproject([se,de]),wt=Ae.distanceTo(Ct);if(k&&"imperial"===k.unit){const Mt=3.2808*wt;Mt>5280?mn(h,se,Mt/5280,xe._getUIString("ScaleControl.Miles")):mn(h,se,Mt,xe._getUIString("ScaleControl.Feet"))}else k&&"nautical"===k.unit?mn(h,se,wt/1852,xe._getUIString("ScaleControl.NauticalMiles")):wt>=1e3?mn(h,se,wt/1e3,xe._getUIString("ScaleControl.Kilometers")):mn(h,se,wt,xe._getUIString("ScaleControl.Meters"))}function mn(xe,h,k,se){const de=function(Ae){const Ct=Math.pow(10,`${Math.floor(Ae)}`.length-1);let wt=Ae/Ct;return wt=wt>=10?10:wt>=5?5:wt>=3?3:wt>=2?2:wt>=1?1:function(Mt){const fn=Math.pow(10,Math.ceil(-Math.log(Mt)/Math.LN10));return Math.round(Mt*fn)/fn}(wt),Ct*wt}(k);xe.style.width=h*(de/k)+"px",xe.innerHTML=`${de}&nbsp;${se}`}const Nn={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},Ci=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function Io(xe){if(xe){if("number"==typeof xe){const h=Math.round(Math.abs(xe)/Math.SQRT2);return{center:new l.Point(0,0),top:new l.Point(0,xe),"top-left":new l.Point(h,h),"top-right":new l.Point(-h,h),bottom:new l.Point(0,-xe),"bottom-left":new l.Point(h,-h),"bottom-right":new l.Point(-h,-h),left:new l.Point(xe,0),right:new l.Point(-xe,0)}}if(xe instanceof l.Point||Array.isArray(xe)){const h=l.Point.convert(xe);return{center:h,top:h,"top-left":h,"top-right":h,bottom:h,"bottom-left":h,"bottom-right":h,left:h,right:h}}return{center:l.Point.convert(xe.center||[0,0]),top:l.Point.convert(xe.top||[0,0]),"top-left":l.Point.convert(xe["top-left"]||[0,0]),"top-right":l.Point.convert(xe["top-right"]||[0,0]),bottom:l.Point.convert(xe.bottom||[0,0]),"bottom-left":l.Point.convert(xe["bottom-left"]||[0,0]),"bottom-right":l.Point.convert(xe["bottom-right"]||[0,0]),left:l.Point.convert(xe.left||[0,0]),right:l.Point.convert(xe.right||[0,0])}}return Io(new l.Point(0,0))}const cr={extend:(xe,...h)=>l.extend(xe,...h),run(xe){xe()},logToElement(xe,h=!1,k="log"){const se=window.document.getElementById(k);se&&(h&&(se.innerHTML=""),se.innerHTML+=`<br>${xe}`)}},ra=i;class $a{static get version(){return ra}static get workerCount(){return ct.workerCount}static set workerCount(h){ct.workerCount=h}static get maxParallelImageRequests(){return l.config.MAX_PARALLEL_IMAGE_REQUESTS}static set maxParallelImageRequests(h){l.config.MAX_PARALLEL_IMAGE_REQUESTS=h}static get workerUrl(){return l.config.WORKER_URL}static set workerUrl(h){l.config.WORKER_URL=h}static addProtocol(h,k){l.config.REGISTERED_PROTOCOLS[h]=k}static removeProtocol(h){delete l.config.REGISTERED_PROTOCOLS[h]}}return $a.Map=class extends $i{constructor(xe){if(l.PerformanceUtils.mark(l.PerformanceMarkers.create),null!=(xe=l.extend({},Kl,xe)).minZoom&&null!=xe.maxZoom&&xe.minZoom>xe.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=xe.minPitch&&null!=xe.maxPitch&&xe.minPitch>xe.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=xe.minPitch&&xe.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=xe.maxPitch&&xe.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(super(new _a(xe.minZoom,xe.maxZoom,xe.minPitch,xe.maxPitch,xe.renderWorldCopies),{bearingSnap:xe.bearingSnap}),this._cooperativeGesturesOnWheel=h=>{this._onCooperativeGesture(h,h[this._metaKey],1)},this._contextLost=h=>{h.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new l.Event("webglcontextlost",{originalEvent:h}))},this._contextRestored=h=>{this._setupPainter(),this.resize(),this._update(),this.fire(new l.Event("webglcontextrestored",{originalEvent:h}))},this._onMapScroll=h=>{if(h.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()},this._interactive=xe.interactive,this._cooperativeGestures=xe.cooperativeGestures,this._metaKey=0===navigator.platform.indexOf("Mac")?"metaKey":"ctrlKey",this._maxTileCacheSize=xe.maxTileCacheSize,this._maxTileCacheZoomLevels=xe.maxTileCacheZoomLevels,this._failIfMajorPerformanceCaveat=xe.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=xe.preserveDrawingBuffer,this._antialias=xe.antialias,this._trackResize=xe.trackResize,this._bearingSnap=xe.bearingSnap,this._refreshExpiredTiles=xe.refreshExpiredTiles,this._fadeDuration=xe.fadeDuration,this._crossSourceCollisions=xe.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=xe.collectResourceTiming,this._renderTaskQueue=new xr,this._controls=[],this._mapId=l.uniqueId(),this._locale=l.extend({},Sr,xe.locale),this._clickTolerance=xe.clickTolerance,this._overridePixelRatio=xe.pixelRatio,this._maxCanvasSize=xe.maxCanvasSize,this.transformCameraUpdate=xe.transformCameraUpdate,this._imageQueueHandle=b.addThrottleControl(()=>this.isMoving()),this._requestManager=new H(xe.transformRequest),"string"==typeof xe.container){if(this._container=document.getElementById(xe.container),!this._container)throw new Error(`Container '${xe.container}' not found.`)}else{if(!(xe.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=xe.container}if(xe.maxBounds&&this.setMaxBounds(xe.maxBounds),this._setupContainer(),this._setupPainter(),this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),this.on("terrain",()=>{this.painter.terrainFacilitator.dirty=!0,this._update(!0)}),this.once("idle",()=>{this._idleTriggered=!0}),typeof window<"u"){addEventListener("online",this._onWindowOnline,!1);let h=!1;const k=ts(se=>{this._trackResize&&!this._removed&&this.resize(se)._update()},50);this._resizeObserver=new ResizeObserver(se=>{h?k(se):h=!0}),this._resizeObserver.observe(this._container)}this.handlers=new fi(this,xe),this._cooperativeGestures&&this._setupCooperativeGestures(),this._hash=xe.hash&&new rl("string"==typeof xe.hash&&xe.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:xe.center,zoom:xe.zoom,bearing:xe.bearing,pitch:xe.pitch}),xe.bounds&&(this.resize(),this.fitBounds(xe.bounds,l.extend({},xe.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=xe.localIdeographFontFamily,this._validateStyle=xe.validateStyle,xe.style&&this.setStyle(xe.style,{localIdeographFontFamily:xe.localIdeographFontFamily}),xe.attributionControl&&this.addControl(new No({customAttribution:xe.customAttribution})),xe.maplibreLogo&&this.addControl(new Ar,xe.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",h=>{this._update("style"===h.dataType),this.fire(new l.Event(`${h.dataType}data`,h))}),this.on("dataloading",h=>{this.fire(new l.Event(`${h.dataType}dataloading`,h))}),this.on("dataabort",h=>{this.fire(new l.Event("sourcedataabort",h))})}_getMapId(){return this._mapId}addControl(xe,h){if(void 0===h&&(h=xe.getDefaultPosition?xe.getDefaultPosition():"top-right"),!xe||!xe.onAdd)return this.fire(new l.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const k=xe.onAdd(this);this._controls.push(xe);const se=this._controlPositions[h];return-1!==h.indexOf("bottom")?se.insertBefore(k,se.firstChild):se.appendChild(k),this}removeControl(xe){if(!xe||!xe.onRemove)return this.fire(new l.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const h=this._controls.indexOf(xe);return h>-1&&this._controls.splice(h,1),xe.onRemove(this),this}hasControl(xe){return this._controls.indexOf(xe)>-1}calculateCameraOptionsFromTo(xe,h,k,se){return null==se&&this.terrain&&(se=this.terrain.getElevationForLngLatZoom(k,this.transform.tileZoom)),super.calculateCameraOptionsFromTo(xe,h,k,se)}resize(xe){var h;const k=this._containerDimensions(),se=k[0],de=k[1],Ae=this._getClampedPixelRatio(se,de);if(this._resizeCanvas(se,de,Ae),this.painter.resize(se,de,Ae),this.painter.overLimit()){const wt=this.painter.context.gl;this._maxCanvasSize=[wt.drawingBufferWidth,wt.drawingBufferHeight];const Mt=this._getClampedPixelRatio(se,de);this._resizeCanvas(se,de,Mt),this.painter.resize(se,de,Mt)}this.transform.resize(se,de),null===(h=this._requestedCameraState)||void 0===h||h.resize(se,de);const Ct=!this._moving;return Ct&&(this.stop(),this.fire(new l.Event("movestart",xe)).fire(new l.Event("move",xe))),this.fire(new l.Event("resize",xe)),Ct&&this.fire(new l.Event("moveend",xe)),this}_getClampedPixelRatio(xe,h){const{0:k,1:se}=this._maxCanvasSize,de=this.getPixelRatio(),Ae=xe*de,Ct=h*de;return Math.min(Ae>k?k/Ae:1,Ct>se?se/Ct:1)*de}getPixelRatio(){var xe;return null!==(xe=this._overridePixelRatio)&&void 0!==xe?xe:devicePixelRatio}setPixelRatio(xe){this._overridePixelRatio=xe,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(xe){return this.transform.setMaxBounds(Se.convert(xe)),this._update()}setMinZoom(xe){if((xe=xe??-2)>=-2&&xe<=this.transform.maxZoom)return this.transform.minZoom=xe,this._update(),this.getZoom()<xe&&this.setZoom(xe),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(){return this.transform.minZoom}setMaxZoom(xe){if((xe=xe??22)>=this.transform.minZoom)return this.transform.maxZoom=xe,this._update(),this.getZoom()>xe&&this.setZoom(xe),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(xe){if((xe=xe??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(xe>=0&&xe<=this.transform.maxPitch)return this.transform.minPitch=xe,this._update(),this.getPitch()<xe&&this.setPitch(xe),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this.transform.minPitch}setMaxPitch(xe){if((xe=xe??60)>85)throw new Error("maxPitch must be less than or equal to 85");if(xe>=this.transform.minPitch)return this.transform.maxPitch=xe,this._update(),this.getPitch()>xe&&this.setPitch(xe),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(xe){return this.transform.renderWorldCopies=xe,this._update()}getCooperativeGestures(){return this._cooperativeGestures}setCooperativeGestures(xe){return this._cooperativeGestures=xe,this._cooperativeGestures?this._setupCooperativeGestures():this._destroyCooperativeGestures(),this}project(xe){return this.transform.locationPoint(l.LngLat.convert(xe),this.style&&this.terrain)}unproject(xe){return this.transform.pointLocation(l.Point.convert(xe),this.terrain)}isMoving(){var xe;return this._moving||(null===(xe=this.handlers)||void 0===xe?void 0:xe.isMoving())}isZooming(){var xe;return this._zooming||(null===(xe=this.handlers)||void 0===xe?void 0:xe.isZooming())}isRotating(){var xe;return this._rotating||(null===(xe=this.handlers)||void 0===xe?void 0:xe.isRotating())}_createDelegatedListener(xe,h,k){if("mouseenter"===xe||"mouseover"===xe){let se=!1;return{layer:h,listener:k,delegates:{mousemove:Ae=>{const Ct=this.getLayer(h)?this.queryRenderedFeatures(Ae.point,{layers:[h]}):[];Ct.length?se||(se=!0,k.call(this,new Ta(xe,this,Ae.originalEvent,{features:Ct}))):se=!1},mouseout:()=>{se=!1}}}}if("mouseleave"===xe||"mouseout"===xe){let se=!1;return{layer:h,listener:k,delegates:{mousemove:Ct=>{(this.getLayer(h)?this.queryRenderedFeatures(Ct.point,{layers:[h]}):[]).length?se=!0:se&&(se=!1,k.call(this,new Ta(xe,this,Ct.originalEvent)))},mouseout:Ct=>{se&&(se=!1,k.call(this,new Ta(xe,this,Ct.originalEvent)))}}}}{const se=de=>{const Ae=this.getLayer(h)?this.queryRenderedFeatures(de.point,{layers:[h]}):[];Ae.length&&(de.features=Ae,k.call(this,de),delete de.features)};return{layer:h,listener:k,delegates:{[xe]:se}}}}on(xe,h,k){if(void 0===k)return super.on(xe,h);const se=this._createDelegatedListener(xe,h,k);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[xe]=this._delegatedListeners[xe]||[],this._delegatedListeners[xe].push(se);for(const de in se.delegates)this.on(de,se.delegates[de]);return this}once(xe,h,k){if(void 0===k)return super.once(xe,h);const se=this._createDelegatedListener(xe,h,k);for(const de in se.delegates)this.once(de,se.delegates[de]);return this}off(xe,h,k){return void 0===k?super.off(xe,h):(this._delegatedListeners&&this._delegatedListeners[xe]&&(se=>{const de=this._delegatedListeners[xe];for(let Ae=0;Ae<de.length;Ae++){const Ct=de[Ae];if(Ct.layer===h&&Ct.listener===k){for(const wt in Ct.delegates)this.off(wt,Ct.delegates[wt]);return de.splice(Ae,1),this}}})(),this)}queryRenderedFeatures(xe,h){if(!this.style)return[];let k;const se=xe instanceof l.Point||Array.isArray(xe),de=se?xe:[[0,0],[this.transform.width,this.transform.height]];if(h=h||(se?{}:xe)||{},de instanceof l.Point||"number"==typeof de[0])k=[l.Point.convert(de)];else{const Ae=l.Point.convert(de[0]),Ct=l.Point.convert(de[1]);k=[Ae,new l.Point(Ct.x,Ae.y),Ct,new l.Point(Ae.x,Ct.y),Ae]}return this.style.queryRenderedFeatures(k,h,this.transform)}querySourceFeatures(xe,h){return this.style.querySourceFeatures(xe,h)}setStyle(xe,h){return!1!==(h=l.extend({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},h)).diff&&h.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&xe?(this._diffStyle(xe,h),this):(this._localIdeographFontFamily=h.localIdeographFontFamily,this._updateStyle(xe,h))}setTransformRequest(xe){return this._requestManager.setTransformRequest(xe),this}_getUIString(xe){const h=this._locale[xe];if(null==h)throw new Error(`Missing UI string '${xe}'`);return h}_updateStyle(xe,h){if(h.transformStyle&&this.style&&!this.style._loaded)return void this.style.once("style.load",()=>this._updateStyle(xe,h));const k=this.style&&h.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!xe)),xe?(this.style=new At(this,h||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof xe?this.style.loadURL(xe,h,k):this.style.loadJSON(xe,h,k),this):(delete this.style,this)}_lazyInitEmptyStyle(){this.style||(this.style=new At(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(xe,h){if("string"==typeof xe){const k=this._requestManager.transformRequest(xe,I.Style);l.getJSON(k,(se,de)=>{se?this.fire(new l.ErrorEvent(se)):de&&this._updateDiff(de,h)})}else"object"==typeof xe&&this._updateDiff(xe,h)}_updateDiff(xe,h){try{this.style.setState(xe,h)&&this._update(!0)}catch(k){l.warnOnce(`Unable to perform style diff: ${k.message||k.error||k}.  Rebuilding the style from scratch.`),this._updateStyle(xe,h)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():l.warnOnce("There is no style added to the map.")}addSource(xe,h){return this._lazyInitEmptyStyle(),this.style.addSource(xe,h),this._update(!0)}isSourceLoaded(xe){const h=this.style&&this.style.sourceCaches[xe];if(void 0!==h)return h.loaded();this.fire(new l.ErrorEvent(new Error(`There is no source with ID '${xe}'`)))}setTerrain(xe){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),xe){const h=this.style.sourceCaches[xe.source];if(!h)throw new Error(`cannot load terrain, because there exists no source with ID: ${xe.source}`);for(const k in this.style._layers){const se=this.style._layers[k];"hillshade"===se.type&&se.source===xe.source&&l.warnOnce("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain=new Fs(this.painter,h,xe),this.painter.renderToTexture=new Nl(this.painter,this.terrain),this.transform._minEleveationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._terrainDataCallback=k=>{"style"===k.dataType?this.terrain.sourceCache.freeRtt():"source"===k.dataType&&k.tile&&(k.sourceId!==xe.source||this._elevationFreeze||(this.transform._minEleveationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this.terrain.sourceCache.freeRtt(k.tile.tileID))},this.style.on("data",this._terrainDataCallback)}else this.terrain&&this.terrain.sourceCache.destruct(),this.terrain=null,this.painter.renderToTexture&&this.painter.renderToTexture.destruct(),this.painter.renderToTexture=null,this.transform._minEleveationForCurrentTile=0,this.transform.elevation=0;return this.fire(new l.Event("terrain",{terrain:xe})),this}getTerrain(){var xe,h;return null!==(h=null===(xe=this.terrain)||void 0===xe?void 0:xe.options)&&void 0!==h?h:null}areTilesLoaded(){const xe=this.style&&this.style.sourceCaches;for(const h in xe){const k=xe[h]._tiles;for(const se in k){const de=k[se];if("loaded"!==de.state&&"errored"!==de.state)return!1}}return!0}addSourceType(xe,h,k){return this._lazyInitEmptyStyle(),this.style.addSourceType(xe,h,k)}removeSource(xe){return this.style.removeSource(xe),this._update(!0)}getSource(xe){return this.style.getSource(xe)}addImage(xe,h,k={}){const{pixelRatio:se=1,sdf:de=!1,stretchX:Ae,stretchY:Ct,content:wt}=k;if(this._lazyInitEmptyStyle(),!(h instanceof HTMLImageElement||l.isImageBitmap(h))){if(void 0===h.width||void 0===h.height)return this.fire(new l.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{const{width:Mt,height:fn,data:Qn}=h,ei=h;return this.style.addImage(xe,{data:new l.RGBAImage({width:Mt,height:fn},new Uint8Array(Qn)),pixelRatio:se,stretchX:Ae,stretchY:Ct,content:wt,sdf:de,version:0,userImage:ei}),ei.onAdd&&ei.onAdd(this,xe),this}}{const{width:Mt,height:fn,data:Qn}=l.browser.getImageData(h);this.style.addImage(xe,{data:new l.RGBAImage({width:Mt,height:fn},Qn),pixelRatio:se,stretchX:Ae,stretchY:Ct,content:wt,sdf:de,version:0})}}updateImage(xe,h){const k=this.style.getImage(xe);if(!k)return this.fire(new l.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const se=h instanceof HTMLImageElement||l.isImageBitmap(h)?l.browser.getImageData(h):h,{width:de,height:Ae,data:Ct}=se;if(void 0===de||void 0===Ae)return this.fire(new l.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(de!==k.data.width||Ae!==k.data.height)return this.fire(new l.ErrorEvent(new Error("The width and height of the updated image must be that same as the previous version of the image")));const wt=!(h instanceof HTMLImageElement||l.isImageBitmap(h));return k.data.replace(Ct,wt),this.style.updateImage(xe,k),this}getImage(xe){return this.style.getImage(xe)}hasImage(xe){return xe?!!this.style.getImage(xe):(this.fire(new l.ErrorEvent(new Error("Missing required image id"))),!1)}removeImage(xe){this.style.removeImage(xe)}loadImage(xe,h){b.getImage(this._requestManager.transformRequest(xe,I.Image),h)}listImages(){return this.style.listImages()}addLayer(xe,h){return this._lazyInitEmptyStyle(),this.style.addLayer(xe,h),this._update(!0)}moveLayer(xe,h){return this.style.moveLayer(xe,h),this._update(!0)}removeLayer(xe){return this.style.removeLayer(xe),this._update(!0)}getLayer(xe){return this.style.getLayer(xe)}setLayerZoomRange(xe,h,k){return this.style.setLayerZoomRange(xe,h,k),this._update(!0)}setFilter(xe,h,k={}){return this.style.setFilter(xe,h,k),this._update(!0)}getFilter(xe){return this.style.getFilter(xe)}setPaintProperty(xe,h,k,se={}){return this.style.setPaintProperty(xe,h,k,se),this._update(!0)}getPaintProperty(xe,h){return this.style.getPaintProperty(xe,h)}setLayoutProperty(xe,h,k,se={}){return this.style.setLayoutProperty(xe,h,k,se),this._update(!0)}getLayoutProperty(xe,h){return this.style.getLayoutProperty(xe,h)}setGlyphs(xe,h={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(xe,h),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(xe,h,k={}){return this._lazyInitEmptyStyle(),this.style.addSprite(xe,h,k,se=>{se||this._update(!0)}),this}removeSprite(xe){return this._lazyInitEmptyStyle(),this.style.removeSprite(xe),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(xe,h={}){return this._lazyInitEmptyStyle(),this.style.setSprite(xe,h,k=>{k||this._update(!0)}),this}setLight(xe,h={}){return this._lazyInitEmptyStyle(),this.style.setLight(xe,h),this._update(!0)}getLight(){return this.style.getLight()}setFeatureState(xe,h){return this.style.setFeatureState(xe,h),this._update()}removeFeatureState(xe,h){return this.style.removeFeatureState(xe,h),this._update()}getFeatureState(xe){return this.style.getFeatureState(xe)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let xe=0,h=0;return this._container&&(xe=this._container.clientWidth||400,h=this._container.clientHeight||300),[xe,h]}_setupContainer(){const xe=this._container;xe.classList.add("maplibregl-map");const h=this._canvasContainer=t.create("div","maplibregl-canvas-container",xe);this._interactive&&h.classList.add("maplibregl-interactive"),this._canvas=t.create("canvas","maplibregl-canvas",h),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map"),this._canvas.setAttribute("role","region");const k=this._containerDimensions(),se=this._getClampedPixelRatio(k[0],k[1]);this._resizeCanvas(k[0],k[1],se);const de=this._controlContainer=t.create("div","maplibregl-control-container",xe),Ae=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(Ct=>{Ae[Ct]=t.create("div",`maplibregl-ctrl-${Ct} `,de)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_setupCooperativeGestures(){this._cooperativeGesturesScreen=t.create("div","maplibregl-cooperative-gesture-screen",this._container);let xe="boolean"!=typeof this._cooperativeGestures&&this._cooperativeGestures.windowsHelpText?this._cooperativeGestures.windowsHelpText:"Use Ctrl + scroll to zoom the map";0===navigator.platform.indexOf("Mac")&&(xe="boolean"!=typeof this._cooperativeGestures&&this._cooperativeGestures.macHelpText?this._cooperativeGestures.macHelpText:"Use \u2318 + scroll to zoom the map"),this._cooperativeGesturesScreen.innerHTML=`\n            <div class="maplibregl-desktop-message">${xe}</div>\n            <div class="maplibregl-mobile-message">${"boolean"!=typeof this._cooperativeGestures&&this._cooperativeGestures.mobileHelpText?this._cooperativeGestures.mobileHelpText:"Use two fingers to move the map"}</div>\n        `,this._cooperativeGesturesScreen.setAttribute("aria-hidden","true"),this._canvasContainer.addEventListener("wheel",this._cooperativeGesturesOnWheel,!1),this._canvasContainer.classList.add("maplibregl-cooperative-gestures")}_destroyCooperativeGestures(){t.remove(this._cooperativeGesturesScreen),this._canvasContainer.removeEventListener("wheel",this._cooperativeGesturesOnWheel,!1),this._canvasContainer.classList.remove("maplibregl-cooperative-gestures")}_resizeCanvas(xe,h,k){this._canvas.width=Math.floor(k*xe),this._canvas.height=Math.floor(k*h),this._canvas.style.width=`${xe}px`,this._canvas.style.height=`${h}px`}_setupPainter(){const xe={alpha:!0,stencil:!0,depth:!0,failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1};let h=null;this._canvas.addEventListener("webglcontextcreationerror",se=>{h={requestedAttributes:xe},se&&(h.statusMessage=se.statusMessage,h.type=se.type)},{once:!0});const k=this._canvas.getContext("webgl2",xe)||this._canvas.getContext("webgl",xe);if(!k){const se="Failed to initialize WebGL";throw h?(h.message=se,new Error(JSON.stringify(h))):new Error(se)}this.painter=new ql(k,this.transform),p.testSupport(k)}_onCooperativeGesture(xe,h,k){return!h&&k<2&&(this._cooperativeGesturesScreen.classList.add("maplibregl-show"),setTimeout(()=>{this._cooperativeGesturesScreen.classList.remove("maplibregl-show")},100)),!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(xe){return this.style&&this.style._loaded?(this._styleDirty=this._styleDirty||xe,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(xe){return this._update(),this._renderTaskQueue.add(xe)}_cancelRenderFrame(xe){this._renderTaskQueue.remove(xe)}_render(xe){const h=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(xe),this._removed)return;let k=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;const de=this.transform.zoom,Ae=l.browser.now();this.style.zoomHistory.update(de,Ae);const Ct=new l.EvaluationParameters(de,{now:Ae,fadeDuration:h,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),wt=Ct.crossFadingFactor();1===wt&&wt===this._crossFadingFactor||(k=!0,this._crossFadingFactor=wt),this.style.update(Ct)}this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.sourceCache.update(this.transform,this.terrain),this.transform._minEleveationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._elevationFreeze||(this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))):(this.transform._minEleveationForCurrentTile=0,this.transform.elevation=0),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,h,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:h,showPadding:this.showPadding}),this.fire(new l.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,l.PerformanceUtils.mark(l.PerformanceMarkers.load),this.fire(new l.Event("load"))),this.style&&(this.style.hasTransitions()||k)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();const se=this._sourcesDirty||this._styleDirty||this._placementDirty;return se||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new l.Event("idle")),!this._loaded||this._fullyLoaded||se||(this._fullyLoaded=!0,l.PerformanceUtils.mark(l.PerformanceMarkers.fullLoad)),this}redraw(){return this.style&&(this._frame&&(this._frame.cancel(),this._frame=null),this._render(0)),this}remove(){var xe;this._hash&&this._hash.remove();for(const k of this._controls)k.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),typeof window<"u"&&removeEventListener("online",this._onWindowOnline,!1),b.removeThrottleControl(this._imageQueueHandle),null===(xe=this._resizeObserver)||void 0===xe||xe.disconnect();const h=this.painter.context.gl.getExtension("WEBGL_lose_context");h&&h.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),t.remove(this._canvasContainer),t.remove(this._controlContainer),this._cooperativeGestures&&this._destroyCooperativeGestures(),this._container.classList.remove("maplibregl-map"),l.PerformanceUtils.clearMetrics(),this._removed=!0,this.fire(new l.Event("remove"))}triggerRepaint(){this.style&&!this._frame&&(this._frame=l.browser.frame(xe=>{l.PerformanceUtils.frame(xe),this._frame=null,this._render(xe)}))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(xe){this._showTileBoundaries!==xe&&(this._showTileBoundaries=xe,this._update())}get showPadding(){return!!this._showPadding}set showPadding(xe){this._showPadding!==xe&&(this._showPadding=xe,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(xe){this._showCollisionBoxes!==xe&&(this._showCollisionBoxes=xe,xe?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(xe){this._showOverdrawInspector!==xe&&(this._showOverdrawInspector=xe,this._update())}get repaint(){return!!this._repaint}set repaint(xe){this._repaint!==xe&&(this._repaint=xe,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(xe){this._vertices=xe,this._update()}get version(){return em}getCameraTargetElevation(){return this.transform.elevation}},$a.NavigationControl=class{constructor(xe){this._updateZoomButtons=()=>{const h=this._map.getZoom(),k=h===this._map.getMaxZoom(),se=h===this._map.getMinZoom();this._zoomInButton.disabled=k,this._zoomOutButton.disabled=se,this._zoomInButton.setAttribute("aria-disabled",k.toString()),this._zoomOutButton.setAttribute("aria-disabled",se.toString())},this._rotateCompassArrow=()=>{const h=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._compassIcon.style.transform=h},this._setButtonTitle=(h,k)=>{const se=this._map._getUIString(`NavigationControl.${k}`);h.title=se,h.setAttribute("aria-label",se)},this.options=l.extend({},ll,xe),this._container=t.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",h=>h.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",h=>this._map.zoomIn({},{originalEvent:h})),t.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",h=>this._map.zoomOut({},{originalEvent:h})),t.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",h=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:h}):this._map.resetNorth({},{originalEvent:h})}),this._compassIcon=t.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(xe){return this._map=xe,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new tm(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){t.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(xe,h){const k=t.create("button",xe,this._container);return k.type="button",k.addEventListener("click",h),k}},$a.GeolocateControl=class extends l.Evented{constructor(xe){super(),this._onSuccess=h=>{if(this._map){if(this._isOutOfMapMaxBounds(h))return this._setErrorState(),this.fire(new l.Event("outofmaxbounds",h)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=h,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(h),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(h),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new l.Event("geolocate",h)),this._finish()}},this._updateCamera=h=>{const k=new l.LngLat(h.coords.longitude,h.coords.latitude),se=h.coords.accuracy,de=this._map.getBearing(),Ae=l.extend({bearing:de},this.options.fitBoundsOptions),Ct=Se.fromLngLat(k,se);this._map.fitBounds(Ct,Ae,{geolocateSource:!0})},this._updateMarker=h=>{if(h){const k=new l.LngLat(h.coords.longitude,h.coords.latitude);this._accuracyCircleMarker.setLngLat(k).addTo(this._map),this._userLocationDotMarker.setLngLat(k).addTo(this._map),this._accuracy=h.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onZoom=()=>{this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},this._onError=h=>{if(this._map){if(this.options.trackUserLocation)if(1===h.code){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const k=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=k,this._geolocateButton.setAttribute("aria-label",k),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===h.code&&Uc)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new l.Event("error",h)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._setupUI=h=>{if(this._map){if(this._container.addEventListener("contextmenu",k=>k.preventDefault()),this._geolocateButton=t.create("button","maplibregl-ctrl-geolocate",this._container),t.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",!1===h){l.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");const k=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=k,this._geolocateButton.setAttribute("aria-label",k)}else{const k=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=k,this._geolocateButton.setAttribute("aria-label",k)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=t.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new nm({element:this._dotElement}),this._circleElement=t.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new nm({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",k=>{k.geolocateSource||"ACTIVE_LOCK"!==this._watchState||k.originalEvent&&"resize"===k.originalEvent.type||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new l.Event("trackuserlocationend")))})}},this.options=l.extend({},Id,xe)}onAdd(xe){return this._map=xe,this._container=t.create("div","maplibregl-ctrl maplibregl-ctrl-group"),function(h,k=!1){void 0===Nc||k?void 0!==window.navigator.permissions?window.navigator.permissions.query({name:"geolocation"}).then(se=>{Nc="denied"!==se.state,h(Nc)}).catch(()=>{Nc=!!window.navigator.geolocation,h(Nc)}):(Nc=!!window.navigator.geolocation,h(Nc)):h(Nc)}(this._setupUI),this._container}onRemove(){void 0!==this._geolocationWatchID&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),t.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Ns=0,Uc=!1}_isOutOfMapMaxBounds(xe){const h=this._map.getMaxBounds(),k=xe.coords;return h&&(k.longitude<h.getWest()||k.longitude>h.getEast()||k.latitude<h.getSouth()||k.latitude>h.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadius(){const xe=this._map.getBounds(),h=xe.getSouthEast(),k=xe.getNorthEast(),se=h.distanceTo(k),de=Math.ceil(this._accuracy/(se/this._map._container.clientHeight)*2);this._circleElement.style.width=`${de}px`,this._circleElement.style.height=`${de}px`}trigger(){if(!this._setup)return l.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new l.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Ns--,Uc=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new l.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new l.Event("trackuserlocationstart"));break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){let xe;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Ns++,Ns>1?(xe={maximumAge:6e5,timeout:0},Uc=!0):(xe=this.options.positionOptions,Uc=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,xe)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},$a.AttributionControl=No,$a.LogoControl=Ar,$a.ScaleControl=class{constructor(xe){this._onMove=()=>{Mr(this._map,this._container,this.options)},this.setUnit=h=>{this.options.unit=h,Mr(this._map,this._container,this.options)},this.options=l.extend({},dn,xe)}getDefaultPosition(){return"bottom-left"}onAdd(xe){return this._map=xe,this._container=t.create("div","maplibregl-ctrl maplibregl-ctrl-scale",xe.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){t.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}},$a.FullscreenControl=class extends l.Evented{constructor(xe={}){super(),this._onFullscreenChange=()=>{(window.document.fullscreenElement||window.document.mozFullScreenElement||window.document.webkitFullscreenElement||window.document.msFullscreenElement)===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,xe&&xe.container&&(xe.container instanceof HTMLElement?this._container=xe.container:l.warnOnce("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(xe){return this._map=xe,this._container||(this._container=this._map.getContainer()),this._controlContainer=t.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){t.remove(this._controlContainer),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){const xe=this._fullscreenButton=t.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);t.create("span","maplibregl-ctrl-icon",xe).setAttribute("aria-hidden","true"),xe.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){const xe=this._getTitle();this._fullscreenButton.setAttribute("aria-label",xe),this._fullscreenButton.title=xe}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new l.Event("fullscreenstart")),this._map._cooperativeGestures&&(this._prevCooperativeGestures=this._map._cooperativeGestures,this._map.setCooperativeGestures())):(this.fire(new l.Event("fullscreenend")),this._prevCooperativeGestures&&(this._map.setCooperativeGestures(this._prevCooperativeGestures),delete this._prevCooperativeGestures))}_exitFullscreen(){window.document.exitFullscreen?window.document.exitFullscreen():window.document.mozCancelFullScreen?window.document.mozCancelFullScreen():window.document.msExitFullscreen?window.document.msExitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},$a.TerrainControl=class{constructor(xe){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.disableTerrain")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.enableTerrain"))},this.options=xe}onAdd(xe){return this._map=xe,this._container=t.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=t.create("button","maplibregl-ctrl-terrain",this._container),t.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){t.remove(this._container),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},$a.Popup=class extends l.Evented{constructor(xe){super(),this.remove=()=>(this._content&&t.remove(this._content),this._container&&(t.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new l.Event("close")),this),this._onMouseUp=h=>{this._update(h.point)},this._onMouseMove=h=>{this._update(h.point)},this._onDrag=h=>{this._update(h.point)},this._update=h=>{if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(!this._container){if(this._container=t.create("div","maplibregl-popup",this._map.getContainer()),this._tip=t.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(const Ct of this.options.className.split(" "))this._container.classList.add(Ct);this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}if(this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Dd(this._lngLat,this._pos,this._map.transform)),this._trackPointer&&!h)return;const k=this._pos=this._trackPointer&&h?h:this._map.project(this._lngLat);let se=this.options.anchor;const de=Io(this.options.offset);if(!se){const Ct=this._container.offsetWidth,wt=this._container.offsetHeight;let Mt;Mt=k.y+de.bottom.y<wt?["top"]:k.y>this._map.transform.height-wt?["bottom"]:[],k.x<Ct/2?Mt.push("left"):k.x>this._map.transform.width-Ct/2&&Mt.push("right"),se=0===Mt.length?"bottom":Mt.join("-")}const Ae=k.add(de[se]).round();t.setTransform(this._container,`${_c[se]} translate(${Ae.x}px,${Ae.y}px)`),wc(this._container,se,"popup")},this._onClose=()=>{this.remove()},this.options=l.extend(Object.create(Nn),xe)}addTo(xe){return this._map&&this.remove(),this._map=xe,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new l.Event("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(xe){return this._lngLat=l.LngLat.convert(xe),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(xe){return this.setDOMContent(document.createTextNode(xe))}setHTML(xe){const h=document.createDocumentFragment(),k=document.createElement("body");let se;for(k.innerHTML=xe;se=k.firstChild,se;)h.appendChild(se);return this.setDOMContent(h)}getMaxWidth(){var xe;return null===(xe=this._container)||void 0===xe?void 0:xe.style.maxWidth}setMaxWidth(xe){return this.options.maxWidth=xe,this._update(),this}setDOMContent(xe){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=t.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(xe),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(xe){this._container&&this._container.classList.add(xe)}removeClassName(xe){this._container&&this._container.classList.remove(xe)}setOffset(xe){return this.options.offset=xe,this._update(),this}toggleClassName(xe){if(this._container)return this._container.classList.toggle(xe)}_createCloseButton(){this.options.closeButton&&(this._closeButton=t.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="&#215;",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const xe=this._container.querySelector(Ci);xe&&xe.focus()}},$a.Marker=nm,$a.Style=At,$a.LngLat=l.LngLat,$a.LngLatBounds=Se,$a.Point=l.Point,$a.MercatorCoordinate=l.MercatorCoordinate,$a.Evented=l.Evented,$a.AJAXError=l.AJAXError,$a.config=l.config,$a.CanvasSource=Pt,$a.GeoJSONSource=lt,$a.ImageSource=r,$a.RasterDEMTileSource=Et,$a.RasterTileSource=et,$a.VectorTileSource=We,$a.VideoSource=Z,$a.setRTLTextPlugin=l.setRTLTextPlugin,$a.getRTLTextPluginStatus=l.getRTLTextPluginStatus,$a.prewarm=function(){ni().acquire(ot)},$a.clearPrewarmedResources=function(){const xe=yi;xe&&(xe.isPreloaded()&&1===xe.numActive()?(xe.release(ot),yi=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},cr.extend($a,{isSafari:l.isSafari,getPerformanceMetrics:l.PerformanceUtils.getPerformanceMetrics}),$a}),e}()},86825:(gt,X,a)=>{"use strict";a.d(X,{F4:()=>o,IO:()=>I,SB:()=>c,X$:()=>s,ZE:()=>K,ZN:()=>Y,_7:()=>b,eR:()=>x,jt:()=>l,k1:()=>ne,l3:()=>n,mo:()=>e,oB:()=>p,oQ:()=>u,pV:()=>m,ru:()=>i,vP:()=>t});var e=function(ee){return ee[ee.State=0]="State",ee[ee.Transition=1]="Transition",ee[ee.Sequence=2]="Sequence",ee[ee.Group=3]="Group",ee[ee.Animate=4]="Animate",ee[ee.Keyframes=5]="Keyframes",ee[ee.Style=6]="Style",ee[ee.Trigger=7]="Trigger",ee[ee.Reference=8]="Reference",ee[ee.AnimateChild=9]="AnimateChild",ee[ee.AnimateRef=10]="AnimateRef",ee[ee.Query=11]="Query",ee[ee.Stagger=12]="Stagger",ee}(e||{});const n="*";function s(ee,$){return{type:e.Trigger,name:ee,definitions:$,options:{}}}function l(ee,$=null){return{type:e.Animate,styles:$,timings:ee}}function i(ee,$=null){return{type:e.Group,steps:ee,options:$}}function t(ee,$=null){return{type:e.Sequence,steps:ee,options:$}}function p(ee){return{type:e.Style,styles:ee,offset:null}}function c(ee,$,ue){return{type:e.State,name:ee,styles:$,options:ue}}function o(ee){return{type:e.Keyframes,steps:ee}}function x(ee,$,ue=null){return{type:e.Transition,expr:ee,animation:$,options:ue}}function u(ee,$=null){return{type:e.Reference,animation:ee,options:$}}function m(ee=null){return{type:e.AnimateChild,options:ee}}function b(ee,$=null){return{type:e.AnimateRef,animation:ee,options:$}}function I(ee,$,ue=null){return{type:e.Query,selector:ee,animation:$,options:ue}}class Y{constructor($=0,ue=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=$+ue}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach($=>$()),this._onDoneFns=[])}onStart($){this._originalOnStartFns.push($),this._onStartFns.push($)}onDone($){this._originalOnDoneFns.push($),this._onDoneFns.push($)}onDestroy($){this._onDestroyFns.push($)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach($=>$()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach($=>$()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition($){this._position=this.totalTime?$*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback($){const ue="start"==$?this._onStartFns:this._onDoneFns;ue.forEach(ge=>ge()),ue.length=0}}class K{constructor($){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=$;let ue=0,ge=0,Ke=0;const at=this.players.length;0==at?queueMicrotask(()=>this._onFinish()):this.players.forEach(Le=>{Le.onDone(()=>{++ue==at&&this._onFinish()}),Le.onDestroy(()=>{++ge==at&&this._onDestroy()}),Le.onStart(()=>{++Ke==at&&this._onStart()})}),this.totalTime=this.players.reduce((Le,R)=>Math.max(Le,R.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach($=>$()),this._onDoneFns=[])}init(){this.players.forEach($=>$.init())}onStart($){this._onStartFns.push($)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach($=>$()),this._onStartFns=[])}onDone($){this._onDoneFns.push($)}onDestroy($){this._onDestroyFns.push($)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach($=>$.play())}pause(){this.players.forEach($=>$.pause())}restart(){this.players.forEach($=>$.restart())}finish(){this._onFinish(),this.players.forEach($=>$.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach($=>$.destroy()),this._onDestroyFns.forEach($=>$()),this._onDestroyFns=[])}reset(){this.players.forEach($=>$.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition($){const ue=$*this.totalTime;this.players.forEach(ge=>{const Ke=ge.totalTime?Math.min(1,ue/ge.totalTime):1;ge.setPosition(Ke)})}getPosition(){const $=this.players.reduce((ue,ge)=>null===ue||ge.totalTime>ue.totalTime?ge:ue,null);return null!=$?$.getPosition():0}beforeDestroy(){this.players.forEach($=>{$.beforeDestroy&&$.beforeDestroy()})}triggerCallback($){const ue="start"==$?this._onStartFns:this._onDoneFns;ue.forEach(ge=>ge()),ue.length=0}}const ne="!"},4300:(gt,X,a)=>{"use strict";a.d(X,{$s:()=>$,Em:()=>Le,Kd:()=>rn,X6:()=>dt,Zf:()=>J,iD:()=>q,ic:()=>Te,kH:()=>Ii,mK:()=>ft,qV:()=>ve,qm:()=>ln,rt:()=>He,s1:()=>at,tE:()=>ji,yG:()=>Ie});var e=a(96814),n=a(19212),s=a(62831),l=a(72079),i=a(7902),t=a(45125),p=a(49193),c=a(36028),o=a(17927),x=a(96776),u=a(97734),m=a(96124),b=a(51418),I=a(24521),H=a(32068),O=a(19352),P=a(17131),G=a(42495),B=a(71088);const ae=" ";function J(rt,$e,Ve){const Ce=j(rt,$e);Ve=Ve.trim(),!Ce.some(tt=>tt.trim()===Ve)&&(Ce.push(Ve),rt.setAttribute($e,Ce.join(ae)))}function q(rt,$e,Ve){const Ce=j(rt,$e);Ve=Ve.trim();const tt=Ce.filter(ht=>ht!==Ve);tt.length?rt.setAttribute($e,tt.join(ae)):rt.removeAttribute($e)}function j(rt,$e){return rt.getAttribute($e)?.match(/\S+/g)??[]}const K="cdk-describedby-message",ne="cdk-describedby-host";let ee=0,$=(()=>{class rt{constructor(Ve,Ce){this._platform=Ce,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+ee++,this._document=Ve,this._id=(0,n.f3M)(n.AFp)+"-"+ee++}describe(Ve,Ce,tt){if(!this._canBeDescribed(Ve,Ce))return;const ht=ue(Ce,tt);"string"!=typeof Ce?(ge(Ce,this._id),this._messageRegistry.set(ht,{messageElement:Ce,referenceCount:0})):this._messageRegistry.has(ht)||this._createMessageElement(Ce,tt),this._isElementDescribedByMessage(Ve,ht)||this._addMessageReference(Ve,ht)}removeDescription(Ve,Ce,tt){if(!Ce||!this._isElementNode(Ve))return;const ht=ue(Ce,tt);if(this._isElementDescribedByMessage(Ve,ht)&&this._removeMessageReference(Ve,ht),"string"==typeof Ce){const Qt=this._messageRegistry.get(ht);Qt&&0===Qt.referenceCount&&this._deleteMessageElement(ht)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const Ve=this._document.querySelectorAll(`[${ne}="${this._id}"]`);for(let Ce=0;Ce<Ve.length;Ce++)this._removeCdkDescribedByReferenceIds(Ve[Ce]),Ve[Ce].removeAttribute(ne);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(Ve,Ce){const tt=this._document.createElement("div");ge(tt,this._id),tt.textContent=Ve,Ce&&tt.setAttribute("role",Ce),this._createMessagesContainer(),this._messagesContainer.appendChild(tt),this._messageRegistry.set(ue(Ve,Ce),{messageElement:tt,referenceCount:0})}_deleteMessageElement(Ve){this._messageRegistry.get(Ve)?.messageElement?.remove(),this._messageRegistry.delete(Ve)}_createMessagesContainer(){if(this._messagesContainer)return;const Ve="cdk-describedby-message-container",Ce=this._document.querySelectorAll(`.${Ve}[platform="server"]`);for(let ht=0;ht<Ce.length;ht++)Ce[ht].remove();const tt=this._document.createElement("div");tt.style.visibility="hidden",tt.classList.add(Ve),tt.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&tt.setAttribute("platform","server"),this._document.body.appendChild(tt),this._messagesContainer=tt}_removeCdkDescribedByReferenceIds(Ve){const Ce=j(Ve,"aria-describedby").filter(tt=>0!=tt.indexOf(K));Ve.setAttribute("aria-describedby",Ce.join(" "))}_addMessageReference(Ve,Ce){const tt=this._messageRegistry.get(Ce);J(Ve,"aria-describedby",tt.messageElement.id),Ve.setAttribute(ne,this._id),tt.referenceCount++}_removeMessageReference(Ve,Ce){const tt=this._messageRegistry.get(Ce);tt.referenceCount--,q(Ve,"aria-describedby",tt.messageElement.id),Ve.removeAttribute(ne)}_isElementDescribedByMessage(Ve,Ce){const tt=j(Ve,"aria-describedby"),ht=this._messageRegistry.get(Ce),Qt=ht&&ht.messageElement.id;return!!Qt&&-1!=tt.indexOf(Qt)}_canBeDescribed(Ve,Ce){if(!this._isElementNode(Ve))return!1;if(Ce&&"object"==typeof Ce)return!0;const tt=null==Ce?"":`${Ce}`.trim(),ht=Ve.getAttribute("aria-label");return!(!tt||ht&&ht.trim()===tt)}_isElementNode(Ve){return Ve.nodeType===this._document.ELEMENT_NODE}static#e=this.\u0275fac=function(Ce){return new(Ce||rt)(n.LFG(e.K0),n.LFG(s.t4))};static#t=this.\u0275prov=n.Yz7({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})();function ue(rt,$e){return"string"==typeof rt?`${$e||""}/${rt}`:rt}function ge(rt,$e){rt.id||(rt.id=`${K}-${$e}-${ee++}`)}class Ke{constructor($e){this._items=$e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new l.xQ,this._typeaheadSubscription=i.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=Ve=>Ve.disabled,this._pressedLetters=[],this.tabOut=new l.xQ,this.change=new l.xQ,$e instanceof n.n_E&&(this._itemChangesSubscription=$e.changes.subscribe(Ve=>{if(this._activeItem){const tt=Ve.toArray().indexOf(this._activeItem);tt>-1&&tt!==this._activeItemIndex&&(this._activeItemIndex=tt)}}))}skipPredicate($e){return this._skipPredicateFn=$e,this}withWrap($e=!0){return this._wrap=$e,this}withVerticalOrientation($e=!0){return this._vertical=$e,this}withHorizontalOrientation($e){return this._horizontal=$e,this}withAllowedModifierKeys($e){return this._allowedModifierKeys=$e,this}withTypeAhead($e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,o.b)(Ve=>this._pressedLetters.push(Ve)),(0,x.b)($e),(0,u.h)(()=>this._pressedLetters.length>0),(0,m.U)(()=>this._pressedLetters.join(""))).subscribe(Ve=>{const Ce=this._getItemsArray();for(let tt=1;tt<Ce.length+1;tt++){const ht=(this._activeItemIndex+tt)%Ce.length,Qt=Ce[ht];if(!this._skipPredicateFn(Qt)&&0===Qt.getLabel().toUpperCase().trim().indexOf(Ve)){this.setActiveItem(ht);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd($e=!0){return this._homeAndEnd=$e,this}withPageUpDown($e=!0,Ve=10){return this._pageUpAndDown={enabled:$e,delta:Ve},this}setActiveItem($e){const Ve=this._activeItem;this.updateActiveItem($e),this._activeItem!==Ve&&this.change.next(this._activeItemIndex)}onKeydown($e){const Ve=$e.keyCode,tt=["altKey","ctrlKey","metaKey","shiftKey"].every(ht=>!$e[ht]||this._allowedModifierKeys.indexOf(ht)>-1);switch(Ve){case c.Mf:return void this.tabOut.next();case c.JH:if(this._vertical&&tt){this.setNextItemActive();break}return;case c.LH:if(this._vertical&&tt){this.setPreviousItemActive();break}return;case c.SV:if(this._horizontal&&tt){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case c.oh:if(this._horizontal&&tt){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case c.Sd:if(this._homeAndEnd&&tt){this.setFirstItemActive();break}return;case c.uR:if(this._homeAndEnd&&tt){this.setLastItemActive();break}return;case c.Ku:if(this._pageUpAndDown.enabled&&tt){const ht=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(ht>0?ht:0,1);break}return;case c.VM:if(this._pageUpAndDown.enabled&&tt){const ht=this._activeItemIndex+this._pageUpAndDown.delta,Qt=this._getItemsArray().length;this._setActiveItemByIndex(ht<Qt?ht:Qt-1,-1);break}return;default:return void((tt||(0,c.Vb)($e,"shiftKey"))&&($e.key&&1===$e.key.length?this._letterKeyStream.next($e.key.toLocaleUpperCase()):(Ve>=c.A&&Ve<=c.Z||Ve>=c.xE&&Ve<=c.aO)&&this._letterKeyStream.next(String.fromCharCode(Ve))))}this._pressedLetters=[],$e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem($e){const Ve=this._getItemsArray(),Ce="number"==typeof $e?$e:Ve.indexOf($e);this._activeItem=Ve[Ce]??null,this._activeItemIndex=Ce}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta($e){this._wrap?this._setActiveInWrapMode($e):this._setActiveInDefaultMode($e)}_setActiveInWrapMode($e){const Ve=this._getItemsArray();for(let Ce=1;Ce<=Ve.length;Ce++){const tt=(this._activeItemIndex+$e*Ce+Ve.length)%Ve.length;if(!this._skipPredicateFn(Ve[tt]))return void this.setActiveItem(tt)}}_setActiveInDefaultMode($e){this._setActiveItemByIndex(this._activeItemIndex+$e,$e)}_setActiveItemByIndex($e,Ve){const Ce=this._getItemsArray();if(Ce[$e]){for(;this._skipPredicateFn(Ce[$e]);)if(!Ce[$e+=Ve])return;this.setActiveItem($e)}}_getItemsArray(){return this._items instanceof n.n_E?this._items.toArray():this._items}}class at extends Ke{setActiveItem($e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem($e),this.activeItem&&this.activeItem.setActiveStyles()}}class Le extends Ke{constructor(){super(...arguments),this._origin="program"}setFocusOrigin($e){return this._origin=$e,this}setActiveItem($e){super.setActiveItem($e),this.activeItem&&this.activeItem.focus(this._origin)}}let Te=(()=>{class rt{constructor(Ve){this._platform=Ve}isDisabled(Ve){return Ve.hasAttribute("disabled")}isVisible(Ve){return function Se(rt){return!!(rt.offsetWidth||rt.offsetHeight||"function"==typeof rt.getClientRects&&rt.getClientRects().length)}(Ve)&&"visible"===getComputedStyle(Ve).visibility}isTabbable(Ve){if(!this._platform.isBrowser)return!1;const Ce=function me(rt){try{return rt.frameElement}catch{return null}}(function Oe(rt){return rt.ownerDocument&&rt.ownerDocument.defaultView||window}(Ve));if(Ce&&(-1===r(Ce)||!this.isVisible(Ce)))return!1;let tt=Ve.nodeName.toLowerCase(),ht=r(Ve);return Ve.hasAttribute("contenteditable")?-1!==ht:!("iframe"===tt||"object"===tt||this._platform.WEBKIT&&this._platform.IOS&&!function Z(rt){let $e=rt.nodeName.toLowerCase(),Ve="input"===$e&&rt.type;return"text"===Ve||"password"===Ve||"select"===$e||"textarea"===$e}(Ve))&&("audio"===tt?!!Ve.hasAttribute("controls")&&-1!==ht:"video"===tt?-1!==ht&&(null!==ht||this._platform.FIREFOX||Ve.hasAttribute("controls")):Ve.tabIndex>=0)}isFocusable(Ve,Ce){return function Pt(rt){return!function We(rt){return function Et(rt){return"input"==rt.nodeName.toLowerCase()}(rt)&&"hidden"==rt.type}(rt)&&(function Ue(rt){let $e=rt.nodeName.toLowerCase();return"input"===$e||"select"===$e||"button"===$e||"textarea"===$e}(rt)||function et(rt){return function lt(rt){return"a"==rt.nodeName.toLowerCase()}(rt)&&rt.hasAttribute("href")}(rt)||rt.hasAttribute("contenteditable")||Vt(rt))}(Ve)&&!this.isDisabled(Ve)&&(Ce?.ignoreVisibility||this.isVisible(Ve))}static#e=this.\u0275fac=function(Ce){return new(Ce||rt)(n.LFG(s.t4))};static#t=this.\u0275prov=n.Yz7({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})();function Vt(rt){if(!rt.hasAttribute("tabindex")||void 0===rt.tabIndex)return!1;let $e=rt.getAttribute("tabindex");return!(!$e||isNaN(parseInt($e,10)))}function r(rt){if(!Vt(rt))return null;const $e=parseInt(rt.getAttribute("tabindex")||"",10);return isNaN($e)?-1:$e}class ye{get enabled(){return this._enabled}set enabled($e){this._enabled=$e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex($e,this._startAnchor),this._toggleAnchorTabIndex($e,this._endAnchor))}constructor($e,Ve,Ce,tt,ht=!1){this._element=$e,this._checker=Ve,this._ngZone=Ce,this._document=tt,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,ht||this.attachAnchors()}destroy(){const $e=this._startAnchor,Ve=this._endAnchor;$e&&($e.removeEventListener("focus",this.startAnchorListener),$e.remove()),Ve&&(Ve.removeEventListener("focus",this.endAnchorListener),Ve.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady($e){return new Promise(Ve=>{this._executeOnStable(()=>Ve(this.focusInitialElement($e)))})}focusFirstTabbableElementWhenReady($e){return new Promise(Ve=>{this._executeOnStable(()=>Ve(this.focusFirstTabbableElement($e)))})}focusLastTabbableElementWhenReady($e){return new Promise(Ve=>{this._executeOnStable(()=>Ve(this.focusLastTabbableElement($e)))})}_getRegionBoundary($e){const Ve=this._element.querySelectorAll(`[cdk-focus-region-${$e}], [cdkFocusRegion${$e}], [cdk-focus-${$e}]`);return"start"==$e?Ve.length?Ve[0]:this._getFirstTabbableElement(this._element):Ve.length?Ve[Ve.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement($e){const Ve=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Ve){if(!this._checker.isFocusable(Ve)){const Ce=this._getFirstTabbableElement(Ve);return Ce?.focus($e),!!Ce}return Ve.focus($e),!0}return this.focusFirstTabbableElement($e)}focusFirstTabbableElement($e){const Ve=this._getRegionBoundary("start");return Ve&&Ve.focus($e),!!Ve}focusLastTabbableElement($e){const Ve=this._getRegionBoundary("end");return Ve&&Ve.focus($e),!!Ve}hasAttached(){return this._hasAttached}_getFirstTabbableElement($e){if(this._checker.isFocusable($e)&&this._checker.isTabbable($e))return $e;const Ve=$e.children;for(let Ce=0;Ce<Ve.length;Ce++){const tt=Ve[Ce].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(Ve[Ce]):null;if(tt)return tt}return null}_getLastTabbableElement($e){if(this._checker.isFocusable($e)&&this._checker.isTabbable($e))return $e;const Ve=$e.children;for(let Ce=Ve.length-1;Ce>=0;Ce--){const tt=Ve[Ce].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Ve[Ce]):null;if(tt)return tt}return null}_createAnchor(){const $e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,$e),$e.classList.add("cdk-visually-hidden"),$e.classList.add("cdk-focus-trap-anchor"),$e.setAttribute("aria-hidden","true"),$e}_toggleAnchorTabIndex($e,Ve){$e?Ve.setAttribute("tabindex","0"):Ve.removeAttribute("tabindex")}toggleAnchors($e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex($e,this._startAnchor),this._toggleAnchorTabIndex($e,this._endAnchor))}_executeOnStable($e){this._ngZone.isStable?$e():this._ngZone.onStable.pipe((0,b.q)(1)).subscribe($e)}}let ve=(()=>{class rt{constructor(Ve,Ce,tt){this._checker=Ve,this._ngZone=Ce,this._document=tt}create(Ve,Ce=!1){return new ye(Ve,this._checker,this._ngZone,this._document,Ce)}static#e=this.\u0275fac=function(Ce){return new(Ce||rt)(n.LFG(Te),n.LFG(n.R0b),n.LFG(e.K0))};static#t=this.\u0275prov=n.Yz7({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})(),ft=(()=>{class rt{get enabled(){return this.focusTrap?.enabled||!1}set enabled(Ve){this.focusTrap&&(this.focusTrap.enabled=Ve)}constructor(Ve,Ce,tt){this._elementRef=Ve,this._focusTrapFactory=Ce,this._previouslyFocusedElement=null,(0,n.f3M)(s.t4).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(Ve){const Ce=Ve.autoCapture;Ce&&!Ce.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,s.ht)(),this.focusTrap?.focusInitialElementWhenReady()}static#e=this.\u0275fac=function(Ce){return new(Ce||rt)(n.Y36(n.SBq),n.Y36(ve),n.Y36(e.K0))};static#t=this.\u0275dir=n.lG2({type:rt,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[n.lbL.HasDecoratorInputTransform,"cdkTrapFocus","enabled",n.VuI],autoCapture:[n.lbL.HasDecoratorInputTransform,"cdkTrapFocusAutoCapture","autoCapture",n.VuI]},exportAs:["cdkTrapFocus"],standalone:!0,features:[n.Xq5,n.TTD]})}return rt})();function dt(rt){return 0===rt.buttons||0===rt.detail}function Ie(rt){const $e=rt.touches&&rt.touches[0]||rt.changedTouches&&rt.changedTouches[0];return!(!$e||-1!==$e.identifier||null!=$e.radiusX&&1!==$e.radiusX||null!=$e.radiusY&&1!==$e.radiusY)}const ot=new n.OlP("cdk-input-modality-detector-options"),ct={ignoreKeys:[c.zL,c.jx,c.b2,c.MW,c.JU]},yi=(0,s.i$)({passive:!0,capture:!0});let ni=(()=>{class rt{get mostRecentModality(){return this._modality.value}constructor(Ve,Ce,tt,ht){this._platform=Ve,this._mostRecentTarget=null,this._modality=new t.X(null),this._lastTouchMs=0,this._onKeydown=Qt=>{this._options?.ignoreKeys?.some(Un=>Un===Qt.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,s.sA)(Qt))},this._onMousedown=Qt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(dt(Qt)?"keyboard":"mouse"),this._mostRecentTarget=(0,s.sA)(Qt))},this._onTouchstart=Qt=>{Ie(Qt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,s.sA)(Qt))},this._options={...ct,...ht},this.modalityDetected=this._modality.pipe((0,I.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,H.x)()),Ve.isBrowser&&Ce.runOutsideAngular(()=>{tt.addEventListener("keydown",this._onKeydown,yi),tt.addEventListener("mousedown",this._onMousedown,yi),tt.addEventListener("touchstart",this._onTouchstart,yi)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,yi),document.removeEventListener("mousedown",this._onMousedown,yi),document.removeEventListener("touchstart",this._onTouchstart,yi))}static#e=this.\u0275fac=function(Ce){return new(Ce||rt)(n.LFG(s.t4),n.LFG(n.R0b),n.LFG(e.K0),n.LFG(ot,8))};static#t=this.\u0275prov=n.Yz7({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})();const sn=new n.OlP("liveAnnouncerElement",{providedIn:"root",factory:function bn(){return null}}),vt=new n.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let nn=0,rn=(()=>{class rt{constructor(Ve,Ce,tt,ht){this._ngZone=Ce,this._defaultOptions=ht,this._document=tt,this._liveElement=Ve||this._createLiveElement()}announce(Ve,...Ce){const tt=this._defaultOptions;let ht,Qt;return 1===Ce.length&&"number"==typeof Ce[0]?Qt=Ce[0]:[ht,Qt]=Ce,this.clear(),clearTimeout(this._previousTimeout),ht||(ht=tt&&tt.politeness?tt.politeness:"polite"),null==Qt&&tt&&(Qt=tt.duration),this._liveElement.setAttribute("aria-live",ht),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Un=>this._currentResolve=Un)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=Ve,"number"==typeof Qt&&(this._previousTimeout=setTimeout(()=>this.clear(),Qt)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const Ve="cdk-live-announcer-element",Ce=this._document.getElementsByClassName(Ve),tt=this._document.createElement("div");for(let ht=0;ht<Ce.length;ht++)Ce[ht].remove();return tt.classList.add(Ve),tt.classList.add("cdk-visually-hidden"),tt.setAttribute("aria-atomic","true"),tt.setAttribute("aria-live","polite"),tt.id="cdk-live-announcer-"+nn++,this._document.body.appendChild(tt),tt}_exposeAnnouncerToModals(Ve){const Ce=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let tt=0;tt<Ce.length;tt++){const ht=Ce[tt],Qt=ht.getAttribute("aria-owns");Qt?-1===Qt.indexOf(Ve)&&ht.setAttribute("aria-owns",Qt+" "+Ve):ht.setAttribute("aria-owns",Ve)}}static#e=this.\u0275fac=function(Ce){return new(Ce||rt)(n.LFG(sn,8),n.LFG(n.R0b),n.LFG(e.K0),n.LFG(vt,8))};static#t=this.\u0275prov=n.Yz7({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})();var Oo=function(rt){return rt[rt.IMMEDIATE=0]="IMMEDIATE",rt[rt.EVENTUAL=1]="EVENTUAL",rt}(Oo||{});const no=new n.OlP("cdk-focus-monitor-default-options"),Li=(0,s.i$)({passive:!0,capture:!0});let ji=(()=>{class rt{constructor(Ve,Ce,tt,ht,Qt){this._ngZone=Ve,this._platform=Ce,this._inputModalityDetector=tt,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new l.xQ,this._rootNodeFocusAndBlurListener=Un=>{for(let Fn=(0,s.sA)(Un);Fn;Fn=Fn.parentElement)"focus"===Un.type?this._onFocus(Un,Fn):this._onBlur(Un,Fn)},this._document=ht,this._detectionMode=Qt?.detectionMode||Oo.IMMEDIATE}monitor(Ve,Ce=!1){const tt=(0,G.fI)(Ve);if(!this._platform.isBrowser||1!==tt.nodeType)return(0,p.of)();const ht=(0,s.kV)(tt)||this._getDocument(),Qt=this._elementInfo.get(tt);if(Qt)return Ce&&(Qt.checkChildren=!0),Qt.subject;const Un={checkChildren:Ce,subject:new l.xQ,rootNode:ht};return this._elementInfo.set(tt,Un),this._registerGlobalListeners(Un),Un.subject}stopMonitoring(Ve){const Ce=(0,G.fI)(Ve),tt=this._elementInfo.get(Ce);tt&&(tt.subject.complete(),this._setClasses(Ce),this._elementInfo.delete(Ce),this._removeGlobalListeners(tt))}focusVia(Ve,Ce,tt){const ht=(0,G.fI)(Ve);ht===this._getDocument().activeElement?this._getClosestElementsInfo(ht).forEach(([Un,Yt])=>this._originChanged(Un,Ce,Yt)):(this._setOrigin(Ce),"function"==typeof ht.focus&&ht.focus(tt))}ngOnDestroy(){this._elementInfo.forEach((Ve,Ce)=>this.stopMonitoring(Ce))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(Ve){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Ve)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Ve&&this._isLastInteractionFromInputLabel(Ve)?"mouse":"program"}_shouldBeAttributedToTouch(Ve){return this._detectionMode===Oo.EVENTUAL||!!Ve?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(Ve,Ce){Ve.classList.toggle("cdk-focused",!!Ce),Ve.classList.toggle("cdk-touch-focused","touch"===Ce),Ve.classList.toggle("cdk-keyboard-focused","keyboard"===Ce),Ve.classList.toggle("cdk-mouse-focused","mouse"===Ce),Ve.classList.toggle("cdk-program-focused","program"===Ce)}_setOrigin(Ve,Ce=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Ve,this._originFromTouchInteraction="touch"===Ve&&Ce,this._detectionMode===Oo.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Ve,Ce){const tt=this._elementInfo.get(Ce),ht=(0,s.sA)(Ve);!tt||!tt.checkChildren&&Ce!==ht||this._originChanged(Ce,this._getFocusOrigin(ht),tt)}_onBlur(Ve,Ce){const tt=this._elementInfo.get(Ce);!tt||tt.checkChildren&&Ve.relatedTarget instanceof Node&&Ce.contains(Ve.relatedTarget)||(this._setClasses(Ce),this._emitOrigin(tt,null))}_emitOrigin(Ve,Ce){Ve.subject.observers.length&&this._ngZone.run(()=>Ve.subject.next(Ce))}_registerGlobalListeners(Ve){if(!this._platform.isBrowser)return;const Ce=Ve.rootNode,tt=this._rootNodeFocusListenerCount.get(Ce)||0;tt||this._ngZone.runOutsideAngular(()=>{Ce.addEventListener("focus",this._rootNodeFocusAndBlurListener,Li),Ce.addEventListener("blur",this._rootNodeFocusAndBlurListener,Li)}),this._rootNodeFocusListenerCount.set(Ce,tt+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,O.R)(this._stopInputModalityDetector)).subscribe(ht=>{this._setOrigin(ht,!0)}))}_removeGlobalListeners(Ve){const Ce=Ve.rootNode;if(this._rootNodeFocusListenerCount.has(Ce)){const tt=this._rootNodeFocusListenerCount.get(Ce);tt>1?this._rootNodeFocusListenerCount.set(Ce,tt-1):(Ce.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Li),Ce.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Li),this._rootNodeFocusListenerCount.delete(Ce))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Ve,Ce,tt){this._setClasses(Ve,Ce),this._emitOrigin(tt,Ce),this._lastFocusOrigin=Ce}_getClosestElementsInfo(Ve){const Ce=[];return this._elementInfo.forEach((tt,ht)=>{(ht===Ve||tt.checkChildren&&ht.contains(Ve))&&Ce.push([ht,tt])}),Ce}_isLastInteractionFromInputLabel(Ve){const{_mostRecentTarget:Ce,mostRecentModality:tt}=this._inputModalityDetector;if("mouse"!==tt||!Ce||Ce===Ve||"INPUT"!==Ve.nodeName&&"TEXTAREA"!==Ve.nodeName||Ve.disabled)return!1;const ht=Ve.labels;if(ht)for(let Qt=0;Qt<ht.length;Qt++)if(ht[Qt].contains(Ce))return!0;return!1}static#e=this.\u0275fac=function(Ce){return new(Ce||rt)(n.LFG(n.R0b),n.LFG(s.t4),n.LFG(ni),n.LFG(e.K0,8),n.LFG(no,8))};static#t=this.\u0275prov=n.Yz7({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})(),Ii=(()=>{class rt{constructor(Ve,Ce){this._elementRef=Ve,this._focusMonitor=Ce,this._focusOrigin=null,this.cdkFocusChange=new n.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const Ve=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(Ve,1===Ve.nodeType&&Ve.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Ce=>{this._focusOrigin=Ce,this.cdkFocusChange.emit(Ce)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#e=this.\u0275fac=function(Ce){return new(Ce||rt)(n.Y36(n.SBq),n.Y36(ji))};static#t=this.\u0275dir=n.lG2({type:rt,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0})}return rt})();var _i=function(rt){return rt[rt.NONE=0]="NONE",rt[rt.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",rt[rt.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",rt}(_i||{});const En="cdk-high-contrast-black-on-white",co="cdk-high-contrast-white-on-black",yn="cdk-high-contrast-active";let ln=(()=>{class rt{constructor(Ve,Ce){this._platform=Ve,this._document=Ce,this._breakpointSubscription=(0,n.f3M)(B.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return _i.NONE;const Ve=this._document.createElement("div");Ve.style.backgroundColor="rgb(1,2,3)",Ve.style.position="absolute",this._document.body.appendChild(Ve);const Ce=this._document.defaultView||window,tt=Ce&&Ce.getComputedStyle?Ce.getComputedStyle(Ve):null,ht=(tt&&tt.backgroundColor||"").replace(/ /g,"");switch(Ve.remove(),ht){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return _i.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return _i.BLACK_ON_WHITE}return _i.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const Ve=this._document.body.classList;Ve.remove(yn,En,co),this._hasCheckedHighContrastMode=!0;const Ce=this.getHighContrastMode();Ce===_i.BLACK_ON_WHITE?Ve.add(yn,En):Ce===_i.WHITE_ON_BLACK&&Ve.add(yn,co)}}static#e=this.\u0275fac=function(Ce){return new(Ce||rt)(n.LFG(s.t4),n.LFG(e.K0))};static#t=this.\u0275prov=n.Yz7({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})(),He=(()=>{class rt{constructor(Ve){Ve._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(Ce){return new(Ce||rt)(n.LFG(ln))};static#t=this.\u0275mod=n.oAB({type:rt});static#n=this.\u0275inj=n.cJS({imports:[P.Q8]})}return rt})()},49388:(gt,X,a)=>{"use strict";a.d(X,{Is:()=>p,vT:()=>o});var e=a(19212),n=a(96814);const s=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function l(){return(0,e.f3M)(n.K0)}}),i=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let p=(()=>{class x{constructor(m){this.value="ltr",this.change=new e.vpe,m&&(this.value=function t(x){const u=x?.toLowerCase()||"";return"auto"===u&&typeof navigator<"u"&&navigator?.language?i.test(navigator.language)?"rtl":"ltr":"rtl"===u?"rtl":"ltr"}((m.body?m.body.dir:null)||(m.documentElement?m.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(b){return new(b||x)(e.LFG(s,8))};static#t=this.\u0275prov=e.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"})}return x})(),o=(()=>{class x{static#e=this.\u0275fac=function(b){return new(b||x)};static#t=this.\u0275mod=e.oAB({type:x});static#n=this.\u0275inj=e.cJS({})}return x})()},42495:(gt,X,a)=>{"use strict";a.d(X,{Eq:()=>i,HM:()=>t,Ig:()=>n,du:()=>c,fI:()=>p,su:()=>s,t6:()=>l});var e=a(19212);function n(o){return null!=o&&"false"!=`${o}`}function s(o,x=0){return l(o)?Number(o):x}function l(o){return!isNaN(parseFloat(o))&&!isNaN(Number(o))}function i(o){return Array.isArray(o)?o:[o]}function t(o){return null==o?"":"string"==typeof o?o:`${o}px`}function p(o){return o instanceof e.SBq?o.nativeElement:o}function c(o,x=/\s+/){const u=[];if(null!=o){const m=Array.isArray(o)?o:`${o}`.split(x);for(const b of m){const I=`${b}`.trim();I&&u.push(I)}}return u}},78337:(gt,X,a)=>{"use strict";a.d(X,{A8:()=>b,Ov:()=>u,Z9:()=>i,dS:()=>p,eX:()=>x,k:()=>c,o2:()=>l,yy:()=>o});var e=a(44247),n=a(72079),s=a(19212);class l{}function i(I){return I&&"function"==typeof I.connect&&!(I instanceof e.c)}var p=function(I){return I[I.REPLACED=0]="REPLACED",I[I.INSERTED=1]="INSERTED",I[I.MOVED=2]="MOVED",I[I.REMOVED=3]="REMOVED",I}(p||{});const c=new s.OlP("_ViewRepeater");class o{applyChanges(H,O,P,G,B){H.forEachOperation((ae,J,q)=>{let j,Y;if(null==ae.previousIndex){const K=P(ae,J,q);j=O.createEmbeddedView(K.templateRef,K.context,K.index),Y=p.INSERTED}else null==q?(O.remove(J),Y=p.REMOVED):(j=O.get(J),O.move(j,q),Y=p.MOVED);B&&B({context:j?.context,operation:Y,record:ae})})}detach(){}}class x{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(H,O,P,G,B){H.forEachOperation((ae,J,q)=>{let j,Y;null==ae.previousIndex?(j=this._insertView(()=>P(ae,J,q),q,O,G(ae)),Y=j?p.INSERTED:p.REPLACED):null==q?(this._detachAndCacheView(J,O),Y=p.REMOVED):(j=this._moveView(J,q,O,G(ae)),Y=p.MOVED),B&&B({context:j?.context,operation:Y,record:ae})})}detach(){for(const H of this._viewCache)H.destroy();this._viewCache=[]}_insertView(H,O,P,G){const B=this._insertViewFromCache(O,P);if(B)return void(B.context.$implicit=G);const ae=H();return P.createEmbeddedView(ae.templateRef,ae.context,ae.index)}_detachAndCacheView(H,O){const P=O.detach(H);this._maybeCacheView(P,O)}_moveView(H,O,P,G){const B=P.get(H);return P.move(B,O),B.context.$implicit=G,B}_maybeCacheView(H,O){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(H);else{const P=O.indexOf(H);-1===P?H.destroy():O.remove(P)}}_insertViewFromCache(H,O){const P=this._viewCache.pop();return P&&O.insert(P,H),P||null}}class u{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(H=!1,O,P=!0,G){this._multiple=H,this._emitChanges=P,this.compareWith=G,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new n.xQ,O&&O.length&&(H?O.forEach(B=>this._markSelected(B)):this._markSelected(O[0]),this._selectedToEmit.length=0)}select(...H){this._verifyValueAssignment(H),H.forEach(P=>this._markSelected(P));const O=this._hasQueuedChanges();return this._emitChangeEvent(),O}deselect(...H){this._verifyValueAssignment(H),H.forEach(P=>this._unmarkSelected(P));const O=this._hasQueuedChanges();return this._emitChangeEvent(),O}setSelection(...H){this._verifyValueAssignment(H);const O=this.selected,P=new Set(H);H.forEach(B=>this._markSelected(B)),O.filter(B=>!P.has(this._getConcreteValue(B,P))).forEach(B=>this._unmarkSelected(B));const G=this._hasQueuedChanges();return this._emitChangeEvent(),G}toggle(H){return this.isSelected(H)?this.deselect(H):this.select(H)}clear(H=!0){this._unmarkAll();const O=this._hasQueuedChanges();return H&&this._emitChangeEvent(),O}isSelected(H){return this._selection.has(this._getConcreteValue(H))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(H){this._multiple&&this.selected&&this._selected.sort(H)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(H){H=this._getConcreteValue(H),this.isSelected(H)||(this._multiple||this._unmarkAll(),this.isSelected(H)||this._selection.add(H),this._emitChanges&&this._selectedToEmit.push(H))}_unmarkSelected(H){H=this._getConcreteValue(H),this.isSelected(H)&&(this._selection.delete(H),this._emitChanges&&this._deselectedToEmit.push(H))}_unmarkAll(){this.isEmpty()||this._selection.forEach(H=>this._unmarkSelected(H))}_verifyValueAssignment(H){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(H,O){if(this.compareWith){O=O??this._selection;for(let P of O)if(this.compareWith(H,P))return P;return H}return H}}let b=(()=>{class I{constructor(){this._listeners=[]}notify(O,P){for(let G of this._listeners)G(O,P)}listen(O){return this._listeners.push(O),()=>{this._listeners=this._listeners.filter(P=>O!==P)}}ngOnDestroy(){this._listeners=[]}static#e=this.\u0275fac=function(P){return new(P||I)};static#t=this.\u0275prov=s.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})()},34423:(gt,X,a)=>{"use strict";a.d(X,{Bh:()=>rn,Zt:()=>En,_t:()=>$e});var e=a(19212),n=a(96814),s=a(39505),l=a(62831),i=a(42495),t=a(4300),p=a(72079),c=a(7902),o=a(74815),x=a(73944),u=a(54699),m=a(47354),b=a(19352),I=a(96124),H=a(51418),O=a(53075),P=a(17927),G=a(75222),B=a(49388);function ae(Ve,Ce,tt){for(let ht in Ce)if(Ce.hasOwnProperty(ht)){const Qt=Ce[ht];Qt?Ve.setProperty(ht,Qt,tt?.has(ht)?"important":""):Ve.removeProperty(ht)}return Ve}function J(Ve,Ce){const tt=Ce?"":"none";ae(Ve.style,{"touch-action":Ce?"":"none","-webkit-user-drag":Ce?"":"none","-webkit-tap-highlight-color":Ce?"":"transparent","user-select":tt,"-ms-user-select":tt,"-webkit-user-select":tt,"-moz-user-select":tt})}function q(Ve,Ce,tt){ae(Ve.style,{position:Ce?"":"fixed",top:Ce?"":"0",opacity:Ce?"":"0",left:Ce?"":"-999em"},tt)}function j(Ve,Ce){return Ce&&"none"!=Ce?Ve+" "+Ce:Ve}function Y(Ve){const Ce=Ve.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(Ve)*Ce}function ne(Ve,Ce){return Ve.getPropertyValue(Ce).split(",").map(ht=>ht.trim())}function ee(Ve){const Ce=Ve.getBoundingClientRect();return{top:Ce.top,right:Ce.right,bottom:Ce.bottom,left:Ce.left,width:Ce.width,height:Ce.height,x:Ce.x,y:Ce.y}}function $(Ve,Ce,tt){const{top:ht,bottom:Qt,left:Un,right:Yt}=Ve;return tt>=ht&&tt<=Qt&&Ce>=Un&&Ce<=Yt}function ue(Ve,Ce,tt){Ve.top+=Ce,Ve.bottom=Ve.top+Ve.height,Ve.left+=tt,Ve.right=Ve.left+Ve.width}function ge(Ve,Ce,tt,ht){const{top:Qt,right:Un,bottom:Yt,left:Fn,width:yt,height:Bt}=Ve,li=yt*Ce,si=Bt*Ce;return ht>Qt-si&&ht<Yt+si&&tt>Fn-li&&tt<Un+li}class Ke{constructor(Ce){this._document=Ce,this.positions=new Map}clear(){this.positions.clear()}cache(Ce){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),Ce.forEach(tt=>{this.positions.set(tt,{scrollPosition:{top:tt.scrollTop,left:tt.scrollLeft},clientRect:ee(tt)})})}handleScroll(Ce){const tt=(0,l.sA)(Ce),ht=this.positions.get(tt);if(!ht)return null;const Qt=ht.scrollPosition;let Un,Yt;if(tt===this._document){const Bt=this.getViewportScrollPosition();Un=Bt.top,Yt=Bt.left}else Un=tt.scrollTop,Yt=tt.scrollLeft;const Fn=Qt.top-Un,yt=Qt.left-Yt;return this.positions.forEach((Bt,li)=>{Bt.clientRect&&tt!==li&&tt.contains(li)&&ue(Bt.clientRect,Fn,yt)}),Qt.top=Un,Qt.left=Yt,{top:Fn,left:yt}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function at(Ve){const Ce=Ve.cloneNode(!0),tt=Ce.querySelectorAll("[id]"),ht=Ve.nodeName.toLowerCase();Ce.removeAttribute("id");for(let Qt=0;Qt<tt.length;Qt++)tt[Qt].removeAttribute("id");return"canvas"===ht?me(Ve,Ce):("input"===ht||"select"===ht||"textarea"===ht)&&Te(Ve,Ce),Le("canvas",Ve,Ce,me),Le("input, textarea, select",Ve,Ce,Te),Ce}function Le(Ve,Ce,tt,ht){const Qt=Ce.querySelectorAll(Ve);if(Qt.length){const Un=tt.querySelectorAll(Ve);for(let Yt=0;Yt<Qt.length;Yt++)ht(Qt[Yt],Un[Yt])}}let R=0;function Te(Ve,Ce){"file"!==Ce.type&&(Ce.value=Ve.value),"radio"===Ce.type&&Ce.name&&(Ce.name=`mat-clone-${Ce.name}-${R++}`)}function me(Ve,Ce){const tt=Ce.getContext("2d");if(tt)try{tt.drawImage(Ve,0,0)}catch{}}const Se=(0,l.i$)({passive:!0}),Ue=(0,l.i$)({passive:!1}),et=new Set(["position"]);class Et{get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(Ce){Ce!==this._disabled&&(this._disabled=Ce,this._toggleNativeDragInteractions(),this._handles.forEach(tt=>J(tt,Ce)))}constructor(Ce,tt,ht,Qt,Un,Yt){this._config=tt,this._document=ht,this._ngZone=Qt,this._viewportRuler=Un,this._dragDropRegistry=Yt,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new p.xQ,this._pointerMoveSubscription=c.w.EMPTY,this._pointerUpSubscription=c.w.EMPTY,this._scrollSubscription=c.w.EMPTY,this._resizeSubscription=c.w.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new p.xQ,this.started=new p.xQ,this.released=new p.xQ,this.ended=new p.xQ,this.entered=new p.xQ,this.exited=new p.xQ,this.dropped=new p.xQ,this.moved=this._moveEvents,this._pointerDown=Fn=>{if(this.beforeStarted.next(),this._handles.length){const yt=this._getTargetHandle(Fn);yt&&!this._disabledHandles.has(yt)&&!this.disabled&&this._initializeDragSequence(yt,Fn)}else this.disabled||this._initializeDragSequence(this._rootElement,Fn)},this._pointerMove=Fn=>{const yt=this._getPointerPositionOnPage(Fn);if(!this._hasStartedDragging){if(Math.abs(yt.x-this._pickupPositionOnPage.x)+Math.abs(yt.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const _o=Date.now()>=this._dragStartTime+this._getDragStartDelay(Fn),Hn=this._dropContainer;if(!_o)return void this._endDragSequence(Fn);(!Hn||!Hn.isDragging()&&!Hn.isReceiving())&&(Fn.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(Fn)))}return}Fn.preventDefault();const Bt=this._getConstrainedPointerPosition(yt);if(this._hasMoved=!0,this._lastKnownPointerPosition=yt,this._updatePointerDirectionDelta(Bt),this._dropContainer)this._updateActiveDropContainer(Bt,yt);else{const li=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,si=this._activeTransform;si.x=Bt.x-li.x+this._passiveTransform.x,si.y=Bt.y-li.y+this._passiveTransform.y,this._applyRootElementTransform(si.x,si.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:Bt,event:Fn,distance:this._getDragDistance(Bt),delta:this._pointerDirectionDelta})})},this._pointerUp=Fn=>{this._endDragSequence(Fn)},this._nativeDragStart=Fn=>{if(this._handles.length){const yt=this._getTargetHandle(Fn);yt&&!this._disabledHandles.has(yt)&&!this.disabled&&Fn.preventDefault()}else this.disabled||Fn.preventDefault()},this.withRootElement(Ce).withParent(tt.parentDragRef||null),this._parentPositions=new Ke(ht),Yt.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(Ce){this._handles=Ce.map(ht=>(0,i.fI)(ht)),this._handles.forEach(ht=>J(ht,this.disabled)),this._toggleNativeDragInteractions();const tt=new Set;return this._disabledHandles.forEach(ht=>{this._handles.indexOf(ht)>-1&&tt.add(ht)}),this._disabledHandles=tt,this}withPreviewTemplate(Ce){return this._previewTemplate=Ce,this}withPlaceholderTemplate(Ce){return this._placeholderTemplate=Ce,this}withRootElement(Ce){const tt=(0,i.fI)(Ce);return tt!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{tt.addEventListener("mousedown",this._pointerDown,Ue),tt.addEventListener("touchstart",this._pointerDown,Se),tt.addEventListener("dragstart",this._nativeDragStart,Ue)}),this._initialTransform=void 0,this._rootElement=tt),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(Ce){return this._boundaryElement=Ce?(0,i.fI)(Ce):null,this._resizeSubscription.unsubscribe(),Ce&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(Ce){return this._parentDragRef=Ce,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(Ce){!this._disabledHandles.has(Ce)&&this._handles.indexOf(Ce)>-1&&(this._disabledHandles.add(Ce),J(Ce,!0))}enableHandle(Ce){this._disabledHandles.has(Ce)&&(this._disabledHandles.delete(Ce),J(Ce,this.disabled))}withDirection(Ce){return this._direction=Ce,this}_withDropContainer(Ce){this._dropContainer=Ce}getFreeDragPosition(){const Ce=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:Ce.x,y:Ce.y}}setFreeDragPosition(Ce){return this._activeTransform={x:0,y:0},this._passiveTransform.x=Ce.x,this._passiveTransform.y=Ce.y,this._dropContainer||this._applyRootElementTransform(Ce.x,Ce.y),this}withPreviewContainer(Ce){return this._previewContainer=Ce,this}_sortFromLastPointerPosition(){const Ce=this._lastKnownPointerPosition;Ce&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(Ce),Ce)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(Ce){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:Ce}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(Ce),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const tt=this._getPointerPositionOnPage(Ce);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(tt),dropPoint:tt,event:Ce})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(Ce){r(Ce)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const tt=this._dropContainer;if(tt){const ht=this._rootElement,Qt=ht.parentNode,Un=this._placeholder=this._createPlaceholderElement(),Yt=this._anchor=this._anchor||this._document.createComment(""),Fn=this._getShadowRoot();Qt.insertBefore(Yt,ht),this._initialTransform=ht.style.transform||"",this._preview=this._createPreviewElement(),q(ht,!1,et),this._document.body.appendChild(Qt.replaceChild(Un,ht)),this._getPreviewInsertionPoint(Qt,Fn).appendChild(this._preview),this.started.next({source:this,event:Ce}),tt.start(),this._initialContainer=tt,this._initialIndex=tt.getItemIndex(this)}else this.started.next({source:this,event:Ce}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(tt?tt.getScrollableParents():[])}_initializeDragSequence(Ce,tt){this._parentDragRef&&tt.stopPropagation();const ht=this.isDragging(),Qt=r(tt),Un=!Qt&&0!==tt.button,Yt=this._rootElement,Fn=(0,l.sA)(tt),yt=!Qt&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),Bt=Qt?(0,t.yG)(tt):(0,t.X6)(tt);if(Fn&&Fn.draggable&&"mousedown"===tt.type&&tt.preventDefault(),ht||Un||yt||Bt)return;if(this._handles.length){const oo=Yt.style;this._rootElementTapHighlight=oo.webkitTapHighlightColor||"",oo.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(oo=>this._updateOnScroll(oo)),this._boundaryElement&&(this._boundaryRect=ee(this._boundaryElement));const li=this._previewTemplate;this._pickupPositionInElement=li&&li.template&&!li.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,Ce,tt);const si=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(tt);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:si.x,y:si.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,tt)}_cleanupDragArtifacts(Ce){q(this._rootElement,!0,et),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const tt=this._dropContainer,ht=tt.getItemIndex(this),Qt=this._getPointerPositionOnPage(Ce),Un=this._getDragDistance(Qt),Yt=tt._isOverContainer(Qt.x,Qt.y);this.ended.next({source:this,distance:Un,dropPoint:Qt,event:Ce}),this.dropped.next({item:this,currentIndex:ht,previousIndex:this._initialIndex,container:tt,previousContainer:this._initialContainer,isPointerOverContainer:Yt,distance:Un,dropPoint:Qt,event:Ce}),tt.drop(this,ht,this._initialIndex,this._initialContainer,Yt,Un,Qt,Ce),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:Ce,y:tt},{x:ht,y:Qt}){let Un=this._initialContainer._getSiblingContainerFromPosition(this,Ce,tt);!Un&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(Ce,tt)&&(Un=this._initialContainer),Un&&Un!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=Un,this._dropContainer.enter(this,Ce,tt,Un===this._initialContainer&&Un.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:Un,currentIndex:Un.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(ht,Qt),this._dropContainer._sortItem(this,Ce,tt,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(Ce,tt):this._applyPreviewTransform(Ce-this._pickupPositionInElement.x,tt-this._pickupPositionInElement.y))}_createPreviewElement(){const Ce=this._previewTemplate,tt=this.previewClass,ht=Ce?Ce.template:null;let Qt;if(ht&&Ce){const Un=Ce.matchSize?this._initialDomRect:null,Yt=Ce.viewContainer.createEmbeddedView(ht,Ce.context);Yt.detectChanges(),Qt=Z(Yt,this._document),this._previewRef=Yt,Ce.matchSize?Pt(Qt,Un):Qt.style.transform=lt(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else Qt=at(this._rootElement),Pt(Qt,this._initialDomRect),this._initialTransform&&(Qt.style.transform=this._initialTransform);return ae(Qt.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},et),J(Qt,!1),Qt.classList.add("cdk-drag-preview"),Qt.setAttribute("dir",this._direction),tt&&(Array.isArray(tt)?tt.forEach(Un=>Qt.classList.add(Un)):Qt.classList.add(tt)),Qt}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const Ce=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(Ce.left,Ce.top);const tt=function K(Ve){const Ce=getComputedStyle(Ve),tt=ne(Ce,"transition-property"),ht=tt.find(Fn=>"transform"===Fn||"all"===Fn);if(!ht)return 0;const Qt=tt.indexOf(ht),Un=ne(Ce,"transition-duration"),Yt=ne(Ce,"transition-delay");return Y(Un[Qt])+Y(Yt[Qt])}(this._preview);return 0===tt?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(ht=>{const Qt=Yt=>{(!Yt||(0,l.sA)(Yt)===this._preview&&"transform"===Yt.propertyName)&&(this._preview?.removeEventListener("transitionend",Qt),ht(),clearTimeout(Un))},Un=setTimeout(Qt,1.5*tt);this._preview.addEventListener("transitionend",Qt)}))}_createPlaceholderElement(){const Ce=this._placeholderTemplate,tt=Ce?Ce.template:null;let ht;return tt?(this._placeholderRef=Ce.viewContainer.createEmbeddedView(tt,Ce.context),this._placeholderRef.detectChanges(),ht=Z(this._placeholderRef,this._document)):ht=at(this._rootElement),ht.style.pointerEvents="none",ht.classList.add("cdk-drag-placeholder"),ht}_getPointerPositionInElement(Ce,tt,ht){const Qt=tt===this._rootElement?null:tt,Un=Qt?Qt.getBoundingClientRect():Ce,Yt=r(ht)?ht.targetTouches[0]:ht,Fn=this._getViewportScrollPosition();return{x:Un.left-Ce.left+(Yt.pageX-Un.left-Fn.left),y:Un.top-Ce.top+(Yt.pageY-Un.top-Fn.top)}}_getPointerPositionOnPage(Ce){const tt=this._getViewportScrollPosition(),ht=r(Ce)?Ce.touches[0]||Ce.changedTouches[0]||{pageX:0,pageY:0}:Ce,Qt=ht.pageX-tt.left,Un=ht.pageY-tt.top;if(this._ownerSVGElement){const Yt=this._ownerSVGElement.getScreenCTM();if(Yt){const Fn=this._ownerSVGElement.createSVGPoint();return Fn.x=Qt,Fn.y=Un,Fn.matrixTransform(Yt.inverse())}}return{x:Qt,y:Un}}_getConstrainedPointerPosition(Ce){const tt=this._dropContainer?this._dropContainer.lockAxis:null;let{x:ht,y:Qt}=this.constrainPosition?this.constrainPosition(Ce,this,this._initialDomRect,this._pickupPositionInElement):Ce;if("x"===this.lockAxis||"x"===tt?Qt=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):("y"===this.lockAxis||"y"===tt)&&(ht=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){const{x:Un,y:Yt}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,Fn=this._boundaryRect,{width:yt,height:Bt}=this._getPreviewRect(),li=Fn.top+Yt,si=Fn.bottom-(Bt-Yt);ht=Vt(ht,Fn.left+Un,Fn.right-(yt-Un)),Qt=Vt(Qt,li,si)}return{x:ht,y:Qt}}_updatePointerDirectionDelta(Ce){const{x:tt,y:ht}=Ce,Qt=this._pointerDirectionDelta,Un=this._pointerPositionAtLastDirectionChange,Yt=Math.abs(tt-Un.x),Fn=Math.abs(ht-Un.y);return Yt>this._config.pointerDirectionChangeThreshold&&(Qt.x=tt>Un.x?1:-1,Un.x=tt),Fn>this._config.pointerDirectionChangeThreshold&&(Qt.y=ht>Un.y?1:-1,Un.y=ht),Qt}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const Ce=this._handles.length>0||!this.isDragging();Ce!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=Ce,J(this._rootElement,Ce))}_removeRootElementListeners(Ce){Ce.removeEventListener("mousedown",this._pointerDown,Ue),Ce.removeEventListener("touchstart",this._pointerDown,Se),Ce.removeEventListener("dragstart",this._nativeDragStart,Ue)}_applyRootElementTransform(Ce,tt){const ht=lt(Ce,tt),Qt=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=Qt.transform&&"none"!=Qt.transform?Qt.transform:""),Qt.transform=j(ht,this._initialTransform)}_applyPreviewTransform(Ce,tt){const ht=this._previewTemplate?.template?void 0:this._initialTransform,Qt=lt(Ce,tt);this._preview.style.transform=j(Qt,ht)}_getDragDistance(Ce){const tt=this._pickupPositionOnPage;return tt?{x:Ce.x-tt.x,y:Ce.y-tt.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:Ce,y:tt}=this._passiveTransform;if(0===Ce&&0===tt||this.isDragging()||!this._boundaryElement)return;const ht=this._rootElement.getBoundingClientRect(),Qt=this._boundaryElement.getBoundingClientRect();if(0===Qt.width&&0===Qt.height||0===ht.width&&0===ht.height)return;const Un=Qt.left-ht.left,Yt=ht.right-Qt.right,Fn=Qt.top-ht.top,yt=ht.bottom-Qt.bottom;Qt.width>ht.width?(Un>0&&(Ce+=Un),Yt>0&&(Ce-=Yt)):Ce=0,Qt.height>ht.height?(Fn>0&&(tt+=Fn),yt>0&&(tt-=yt)):tt=0,(Ce!==this._passiveTransform.x||tt!==this._passiveTransform.y)&&this.setFreeDragPosition({y:tt,x:Ce})}_getDragStartDelay(Ce){const tt=this.dragStartDelay;return"number"==typeof tt?tt:r(Ce)?tt.touch:tt?tt.mouse:0}_updateOnScroll(Ce){const tt=this._parentPositions.handleScroll(Ce);if(tt){const ht=(0,l.sA)(Ce);this._boundaryRect&&ht!==this._boundaryElement&&ht.contains(this._boundaryElement)&&ue(this._boundaryRect,tt.top,tt.left),this._pickupPositionOnPage.x+=tt.left,this._pickupPositionOnPage.y+=tt.top,this._dropContainer||(this._activeTransform.x-=tt.left,this._activeTransform.y-=tt.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,l.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(Ce,tt){const ht=this._previewContainer||"global";if("parent"===ht)return Ce;if("global"===ht){const Qt=this._document;return tt||Qt.fullscreenElement||Qt.webkitFullscreenElement||Qt.mozFullScreenElement||Qt.msFullscreenElement||Qt.body}return(0,i.fI)(ht)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_getTargetHandle(Ce){return this._handles.find(tt=>Ce.target&&(Ce.target===tt||tt.contains(Ce.target)))}}function lt(Ve,Ce){return`translate3d(${Math.round(Ve)}px, ${Math.round(Ce)}px, 0)`}function Vt(Ve,Ce,tt){return Math.max(Ce,Math.min(tt,Ve))}function r(Ve){return"t"===Ve.type[0]}function Z(Ve,Ce){const tt=Ve.rootNodes;if(1===tt.length&&tt[0].nodeType===Ce.ELEMENT_NODE)return tt[0];const ht=Ce.createElement("div");return tt.forEach(Qt=>ht.appendChild(Qt)),ht}function Pt(Ve,Ce){Ve.style.width=`${Ce.width}px`,Ve.style.height=`${Ce.height}px`,Ve.style.transform=lt(Ce.left,Ce.top)}function ft(Ve,Ce){return Math.max(0,Math.min(Ce,Ve))}class Dt{constructor(Ce,tt){this._element=Ce,this._dragDropRegistry=tt,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(Ce){this.withItems(Ce)}sort(Ce,tt,ht,Qt){const Un=this._itemPositions,Yt=this._getItemIndexFromPointerPosition(Ce,tt,ht,Qt);if(-1===Yt&&Un.length>0)return null;const Fn="horizontal"===this.orientation,yt=Un.findIndex(vn=>vn.drag===Ce),Bt=Un[Yt],si=Bt.clientRect,oo=yt>Yt?1:-1,_o=this._getItemOffsetPx(Un[yt].clientRect,si,oo),Hn=this._getSiblingOffsetPx(yt,Un,oo),mo=Un.slice();return function Oe(Ve,Ce,tt){const ht=ft(Ce,Ve.length-1),Qt=ft(tt,Ve.length-1);if(ht===Qt)return;const Un=Ve[ht],Yt=Qt<ht?-1:1;for(let Fn=ht;Fn!==Qt;Fn+=Yt)Ve[Fn]=Ve[Fn+Yt];Ve[Qt]=Un}(Un,yt,Yt),Un.forEach((vn,Ji)=>{if(mo[Ji]===vn)return;const wn=vn.drag===Ce,po=wn?_o:Hn,Kn=wn?Ce.getPlaceholderElement():vn.drag.getRootElement();vn.offset+=po,Fn?(Kn.style.transform=j(`translate3d(${Math.round(vn.offset)}px, 0, 0)`,vn.initialTransform),ue(vn.clientRect,0,po)):(Kn.style.transform=j(`translate3d(0, ${Math.round(vn.offset)}px, 0)`,vn.initialTransform),ue(vn.clientRect,po,0))}),this._previousSwap.overlaps=$(si,tt,ht),this._previousSwap.drag=Bt.drag,this._previousSwap.delta=Fn?Qt.x:Qt.y,{previousIndex:yt,currentIndex:Yt}}enter(Ce,tt,ht,Qt){const Un=null==Qt||Qt<0?this._getItemIndexFromPointerPosition(Ce,tt,ht):Qt,Yt=this._activeDraggables,Fn=Yt.indexOf(Ce),yt=Ce.getPlaceholderElement();let Bt=Yt[Un];if(Bt===Ce&&(Bt=Yt[Un+1]),!Bt&&(null==Un||-1===Un||Un<Yt.length-1)&&this._shouldEnterAsFirstChild(tt,ht)&&(Bt=Yt[0]),Fn>-1&&Yt.splice(Fn,1),Bt&&!this._dragDropRegistry.isDragging(Bt)){const li=Bt.getRootElement();li.parentElement.insertBefore(yt,li),Yt.splice(Un,0,Ce)}else(0,i.fI)(this._element).appendChild(yt),Yt.push(Ce);yt.style.transform="",this._cacheItemPositions()}withItems(Ce){this._activeDraggables=Ce.slice(),this._cacheItemPositions()}withSortPredicate(Ce){this._sortPredicate=Ce}reset(){this._activeDraggables.forEach(Ce=>{const tt=Ce.getRootElement();if(tt){const ht=this._itemPositions.find(Qt=>Qt.drag===Ce)?.initialTransform;tt.style.transform=ht||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(Ce){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(ht=>ht.drag===Ce)}updateOnScroll(Ce,tt){this._itemPositions.forEach(({clientRect:ht})=>{ue(ht,Ce,tt)}),this._itemPositions.forEach(({drag:ht})=>{this._dragDropRegistry.isDragging(ht)&&ht._sortFromLastPointerPosition()})}_cacheItemPositions(){const Ce="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(tt=>{const ht=tt.getVisibleElement();return{drag:tt,offset:0,initialTransform:ht.style.transform||"",clientRect:ee(ht)}}).sort((tt,ht)=>Ce?tt.clientRect.left-ht.clientRect.left:tt.clientRect.top-ht.clientRect.top)}_getItemOffsetPx(Ce,tt,ht){const Qt="horizontal"===this.orientation;let Un=Qt?tt.left-Ce.left:tt.top-Ce.top;return-1===ht&&(Un+=Qt?tt.width-Ce.width:tt.height-Ce.height),Un}_getSiblingOffsetPx(Ce,tt,ht){const Qt="horizontal"===this.orientation,Un=tt[Ce].clientRect,Yt=tt[Ce+-1*ht];let Fn=Un[Qt?"width":"height"]*ht;if(Yt){const yt=Qt?"left":"top",Bt=Qt?"right":"bottom";-1===ht?Fn-=Yt.clientRect[yt]-Un[Bt]:Fn+=Un[yt]-Yt.clientRect[Bt]}return Fn}_shouldEnterAsFirstChild(Ce,tt){if(!this._activeDraggables.length)return!1;const ht=this._itemPositions,Qt="horizontal"===this.orientation;if(ht[0].drag!==this._activeDraggables[0]){const Yt=ht[ht.length-1].clientRect;return Qt?Ce>=Yt.right:tt>=Yt.bottom}{const Yt=ht[0].clientRect;return Qt?Ce<=Yt.left:tt<=Yt.top}}_getItemIndexFromPointerPosition(Ce,tt,ht,Qt){const Un="horizontal"===this.orientation,Yt=this._itemPositions.findIndex(({drag:Fn,clientRect:yt})=>Fn!==Ce&&((!Qt||Fn!==this._previousSwap.drag||!this._previousSwap.overlaps||(Un?Qt.x:Qt.y)!==this._previousSwap.delta)&&(Un?tt>=Math.floor(yt.left)&&tt<Math.floor(yt.right):ht>=Math.floor(yt.top)&&ht<Math.floor(yt.bottom))));return-1!==Yt&&this._sortPredicate(Yt,Ce)?Yt:-1}}var Xt=function(Ve){return Ve[Ve.NONE=0]="NONE",Ve[Ve.UP=1]="UP",Ve[Ve.DOWN=2]="DOWN",Ve}(Xt||{}),Je=function(Ve){return Ve[Ve.NONE=0]="NONE",Ve[Ve.LEFT=1]="LEFT",Ve[Ve.RIGHT=2]="RIGHT",Ve}(Je||{});class dt{constructor(Ce,tt,ht,Qt,Un){this._dragDropRegistry=tt,this._ngZone=Qt,this._viewportRuler=Un,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new p.xQ,this.entered=new p.xQ,this.exited=new p.xQ,this.dropped=new p.xQ,this.sorted=new p.xQ,this.receivingStarted=new p.xQ,this.receivingStopped=new p.xQ,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=c.w.EMPTY,this._verticalScrollDirection=Xt.NONE,this._horizontalScrollDirection=Je.NONE,this._stopScrollTimers=new p.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,o.F)(0,x.r).pipe((0,b.R)(this._stopScrollTimers)).subscribe(()=>{const Yt=this._scrollNode,Fn=this.autoScrollStep;this._verticalScrollDirection===Xt.UP?Yt.scrollBy(0,-Fn):this._verticalScrollDirection===Xt.DOWN&&Yt.scrollBy(0,Fn),this._horizontalScrollDirection===Je.LEFT?Yt.scrollBy(-Fn,0):this._horizontalScrollDirection===Je.RIGHT&&Yt.scrollBy(Fn,0)})},this.element=(0,i.fI)(Ce),this._document=ht,this.withScrollableParents([this.element]),tt.registerDropContainer(this),this._parentPositions=new Ke(ht),this._sortStrategy=new Dt(this.element,tt),this._sortStrategy.withSortPredicate((Yt,Fn)=>this.sortPredicate(Yt,Fn,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(Ce,tt,ht,Qt){this._draggingStarted(),null==Qt&&this.sortingDisabled&&(Qt=this._draggables.indexOf(Ce)),this._sortStrategy.enter(Ce,tt,ht,Qt),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:Ce,container:this,currentIndex:this.getItemIndex(Ce)})}exit(Ce){this._reset(),this.exited.next({item:Ce,container:this})}drop(Ce,tt,ht,Qt,Un,Yt,Fn,yt={}){this._reset(),this.dropped.next({item:Ce,currentIndex:tt,previousIndex:ht,container:this,previousContainer:Qt,isPointerOverContainer:Un,distance:Yt,dropPoint:Fn,event:yt})}withItems(Ce){const tt=this._draggables;return this._draggables=Ce,Ce.forEach(ht=>ht._withDropContainer(this)),this.isDragging()&&(tt.filter(Qt=>Qt.isDragging()).every(Qt=>-1===Ce.indexOf(Qt))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(Ce){return this._sortStrategy.direction=Ce,this}connectedTo(Ce){return this._siblings=Ce.slice(),this}withOrientation(Ce){return this._sortStrategy.orientation=Ce,this}withScrollableParents(Ce){const tt=(0,i.fI)(this.element);return this._scrollableElements=-1===Ce.indexOf(tt)?[tt,...Ce]:Ce.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(Ce){return this._isDragging?this._sortStrategy.getItemIndex(Ce):this._draggables.indexOf(Ce)}isReceiving(){return this._activeSiblings.size>0}_sortItem(Ce,tt,ht,Qt){if(this.sortingDisabled||!this._domRect||!ge(this._domRect,.05,tt,ht))return;const Un=this._sortStrategy.sort(Ce,tt,ht,Qt);Un&&this.sorted.next({previousIndex:Un.previousIndex,currentIndex:Un.currentIndex,container:this,item:Ce})}_startScrollingIfNecessary(Ce,tt){if(this.autoScrollDisabled)return;let ht,Qt=Xt.NONE,Un=Je.NONE;if(this._parentPositions.positions.forEach((Yt,Fn)=>{Fn===this._document||!Yt.clientRect||ht||ge(Yt.clientRect,.05,Ce,tt)&&([Qt,Un]=function ct(Ve,Ce,tt,ht,Qt){const Un=Ie(Ce,Qt),Yt=ot(Ce,ht);let Fn=Xt.NONE,yt=Je.NONE;if(Un){const Bt=Ve.scrollTop;Un===Xt.UP?Bt>0&&(Fn=Xt.UP):Ve.scrollHeight-Bt>Ve.clientHeight&&(Fn=Xt.DOWN)}if(Yt){const Bt=Ve.scrollLeft;"rtl"===tt?Yt===Je.RIGHT?Bt<0&&(yt=Je.RIGHT):Ve.scrollWidth+Bt>Ve.clientWidth&&(yt=Je.LEFT):Yt===Je.LEFT?Bt>0&&(yt=Je.LEFT):Ve.scrollWidth-Bt>Ve.clientWidth&&(yt=Je.RIGHT)}return[Fn,yt]}(Fn,Yt.clientRect,this._sortStrategy.direction,Ce,tt),(Qt||Un)&&(ht=Fn))}),!Qt&&!Un){const{width:Yt,height:Fn}=this._viewportRuler.getViewportSize(),yt={width:Yt,height:Fn,top:0,right:Yt,bottom:Fn,left:0};Qt=Ie(yt,tt),Un=ot(yt,Ce),ht=window}ht&&(Qt!==this._verticalScrollDirection||Un!==this._horizontalScrollDirection||ht!==this._scrollNode)&&(this._verticalScrollDirection=Qt,this._horizontalScrollDirection=Un,this._scrollNode=ht,(Qt||Un)&&ht?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const Ce=(0,i.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=Ce.msScrollSnapType||Ce.scrollSnapType||"",Ce.scrollSnapType=Ce.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const Ce=(0,i.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(Ce).clientRect}_reset(){this._isDragging=!1;const Ce=(0,i.fI)(this.element).style;Ce.scrollSnapType=Ce.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(tt=>tt._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(Ce,tt){return null!=this._domRect&&$(this._domRect,Ce,tt)}_getSiblingContainerFromPosition(Ce,tt,ht){return this._siblings.find(Qt=>Qt._canReceive(Ce,tt,ht))}_canReceive(Ce,tt,ht){if(!this._domRect||!$(this._domRect,tt,ht)||!this.enterPredicate(Ce,this))return!1;const Qt=this._getShadowRoot().elementFromPoint(tt,ht);if(!Qt)return!1;const Un=(0,i.fI)(this.element);return Qt===Un||Un.contains(Qt)}_startReceiving(Ce,tt){const ht=this._activeSiblings;!ht.has(Ce)&&tt.every(Qt=>this.enterPredicate(Qt,this)||this._draggables.indexOf(Qt)>-1)&&(ht.add(Ce),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:Ce,receiver:this,items:tt}))}_stopReceiving(Ce){this._activeSiblings.delete(Ce),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:Ce,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(Ce=>{if(this.isDragging()){const tt=this._parentPositions.handleScroll(Ce);tt&&this._sortStrategy.updateOnScroll(tt.top,tt.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const Ce=(0,l.kV)((0,i.fI)(this.element));this._cachedShadowRoot=Ce||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const Ce=this._sortStrategy.getActiveItemsSnapshot().filter(tt=>tt.isDragging());this._siblings.forEach(tt=>tt._startReceiving(this,Ce))}}function Ie(Ve,Ce){const{top:tt,bottom:ht,height:Qt}=Ve,Un=.05*Qt;return Ce>=tt-Un&&Ce<=tt+Un?Xt.UP:Ce>=ht-Un&&Ce<=ht+Un?Xt.DOWN:Xt.NONE}function ot(Ve,Ce){const{left:tt,right:ht,width:Qt}=Ve,Un=.05*Qt;return Ce>=tt-Un&&Ce<=tt+Un?Je.LEFT:Ce>=ht-Un&&Ce<=ht+Un?Je.RIGHT:Je.NONE}const tn=(0,l.i$)({passive:!1,capture:!0});let yi=(()=>{class Ve{constructor(tt,ht){this._ngZone=tt,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=Qt=>Qt.isDragging(),this.pointerMove=new p.xQ,this.pointerUp=new p.xQ,this.scroll=new p.xQ,this._preventDefaultWhileDragging=Qt=>{this._activeDragInstances.length>0&&Qt.preventDefault()},this._persistentTouchmoveListener=Qt=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&Qt.preventDefault(),this.pointerMove.next(Qt))},this._document=ht}registerDropContainer(tt){this._dropInstances.has(tt)||this._dropInstances.add(tt)}registerDragItem(tt){this._dragInstances.add(tt),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,tn)})}removeDropContainer(tt){this._dropInstances.delete(tt)}removeDragItem(tt){this._dragInstances.delete(tt),this.stopDragging(tt),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,tn)}startDragging(tt,ht){if(!(this._activeDragInstances.indexOf(tt)>-1)&&(this._activeDragInstances.push(tt),1===this._activeDragInstances.length)){const Qt=ht.type.startsWith("touch");this._globalListeners.set(Qt?"touchend":"mouseup",{handler:Un=>this.pointerUp.next(Un),options:!0}).set("scroll",{handler:Un=>this.scroll.next(Un),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:tn}),Qt||this._globalListeners.set("mousemove",{handler:Un=>this.pointerMove.next(Un),options:tn}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((Un,Yt)=>{this._document.addEventListener(Yt,Un.handler,Un.options)})})}}stopDragging(tt){const ht=this._activeDragInstances.indexOf(tt);ht>-1&&(this._activeDragInstances.splice(ht,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(tt){return this._activeDragInstances.indexOf(tt)>-1}scrolled(tt){const ht=[this.scroll];return tt&&tt!==this._document&&ht.push(new u.y(Qt=>this._ngZone.runOutsideAngular(()=>{const Yt=Fn=>{this._activeDragInstances.length&&Qt.next(Fn)};return tt.addEventListener("scroll",Yt,!0),()=>{tt.removeEventListener("scroll",Yt,!0)}}))),(0,m.T)(...ht)}ngOnDestroy(){this._dragInstances.forEach(tt=>this.removeDragItem(tt)),this._dropInstances.forEach(tt=>this.removeDropContainer(tt)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((tt,ht)=>{this._document.removeEventListener(ht,tt.handler,tt.options)}),this._globalListeners.clear()}static#e=this.\u0275fac=function(ht){return new(ht||Ve)(e.LFG(e.R0b),e.LFG(n.K0))};static#t=this.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"})}return Ve})();const ni={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let sn=(()=>{class Ve{constructor(tt,ht,Qt,Un){this._document=tt,this._ngZone=ht,this._viewportRuler=Qt,this._dragDropRegistry=Un}createDrag(tt,ht=ni){return new Et(tt,ht,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(tt){return new dt(tt,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static#e=this.\u0275fac=function(ht){return new(ht||Ve)(e.LFG(n.K0),e.LFG(e.R0b),e.LFG(s.rL),e.LFG(yi))};static#t=this.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"})}return Ve})();const bn=new e.OlP("CDK_DRAG_PARENT"),nn=new e.OlP("CdkDragHandle");let rn=(()=>{class Ve{get disabled(){return this._disabled}set disabled(tt){this._disabled=tt,this._stateChanges.next(this)}constructor(tt,ht){this.element=tt,this._stateChanges=new p.xQ,this._disabled=!1,this._parentDrag=ht}ngOnDestroy(){this._stateChanges.complete()}static#e=this.\u0275fac=function(ht){return new(ht||Ve)(e.Y36(e.SBq),e.Y36(bn,12))};static#t=this.\u0275dir=e.lG2({type:Ve,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:[e.lbL.HasDecoratorInputTransform,"cdkDragHandleDisabled","disabled",e.VuI]},standalone:!0,features:[e._Bn([{provide:nn,useExisting:Ve}]),e.Xq5]})}return Ve})();const ii=new e.OlP("CdkDragPlaceholder"),no=new e.OlP("CdkDragPreview"),ji=new e.OlP("CDK_DRAG_CONFIG"),_i=new e.OlP("CdkDropList");let En=(()=>{class Ve{static#e=this._dragInstances=[];get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(tt){this._disabled=tt,this._dragRef.disabled=this._disabled}constructor(tt,ht,Qt,Un,Yt,Fn,yt,Bt,li,si,oo){this.element=tt,this.dropContainer=ht,this._ngZone=Un,this._viewContainerRef=Yt,this._dir=yt,this._changeDetectorRef=li,this._selfHandle=si,this._parentDrag=oo,this._destroyed=new p.xQ,this.started=new e.vpe,this.released=new e.vpe,this.ended=new e.vpe,this.entered=new e.vpe,this.exited=new e.vpe,this.dropped=new e.vpe,this.moved=new u.y(_o=>{const Hn=this._dragRef.moved.pipe((0,I.U)(mo=>({source:this,pointerPosition:mo.pointerPosition,event:mo.event,delta:mo.delta,distance:mo.distance}))).subscribe(_o);return()=>{Hn.unsubscribe()}}),this._dragRef=Bt.createDrag(tt,{dragStartThreshold:Fn&&null!=Fn.dragStartThreshold?Fn.dragStartThreshold:5,pointerDirectionChangeThreshold:Fn&&null!=Fn.pointerDirectionChangeThreshold?Fn.pointerDirectionChangeThreshold:5,zIndex:Fn?.zIndex}),this._dragRef.data=this,Ve._dragInstances.push(this),Fn&&this._assignDefaults(Fn),ht&&(this._dragRef._withDropContainer(ht._dropListRef),ht.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(tt){this._dragRef.setFreeDragPosition(tt)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,H.q)(1),(0,b.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(tt){const ht=tt.rootElementSelector,Qt=tt.freeDragPosition;ht&&!ht.firstChange&&this._updateRootElement(),Qt&&!Qt.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const tt=Ve._dragInstances.indexOf(this);tt>-1&&Ve._dragInstances.splice(tt,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const tt=this.element.nativeElement;let ht=tt;this.rootElementSelector&&(ht=void 0!==tt.closest?tt.closest(this.rootElementSelector):tt.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(ht||tt)}_getBoundaryElement(){const tt=this.boundaryElement;return tt?"string"==typeof tt?this.element.nativeElement.closest(tt):(0,i.fI)(tt):null}_syncInputs(tt){tt.beforeStarted.subscribe(()=>{if(!tt.isDragging()){const ht=this._dir,Qt=this.dragStartDelay,Un=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,Yt=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;tt.disabled=this.disabled,tt.lockAxis=this.lockAxis,tt.dragStartDelay="object"==typeof Qt&&Qt?Qt:(0,i.su)(Qt),tt.constrainPosition=this.constrainPosition,tt.previewClass=this.previewClass,tt.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(Un).withPreviewTemplate(Yt).withPreviewContainer(this.previewContainer||"global"),ht&&tt.withDirection(ht.value)}}),tt.beforeStarted.pipe((0,H.q)(1)).subscribe(()=>{if(this._parentDrag)return void tt.withParent(this._parentDrag._dragRef);let ht=this.element.nativeElement.parentElement;for(;ht;){if(ht.classList.contains("cdk-drag")){tt.withParent(Ve._dragInstances.find(Qt=>Qt.element.nativeElement===ht)?._dragRef||null);break}ht=ht.parentElement}})}_handleEvents(tt){tt.started.subscribe(ht=>{this.started.emit({source:this,event:ht.event}),this._changeDetectorRef.markForCheck()}),tt.released.subscribe(ht=>{this.released.emit({source:this,event:ht.event})}),tt.ended.subscribe(ht=>{this.ended.emit({source:this,distance:ht.distance,dropPoint:ht.dropPoint,event:ht.event}),this._changeDetectorRef.markForCheck()}),tt.entered.subscribe(ht=>{this.entered.emit({container:ht.container.data,item:this,currentIndex:ht.currentIndex})}),tt.exited.subscribe(ht=>{this.exited.emit({container:ht.container.data,item:this})}),tt.dropped.subscribe(ht=>{this.dropped.emit({previousIndex:ht.previousIndex,currentIndex:ht.currentIndex,previousContainer:ht.previousContainer.data,container:ht.container.data,isPointerOverContainer:ht.isPointerOverContainer,item:this,distance:ht.distance,dropPoint:ht.dropPoint,event:ht.event})})}_assignDefaults(tt){const{lockAxis:ht,dragStartDelay:Qt,constrainPosition:Un,previewClass:Yt,boundaryElement:Fn,draggingDisabled:yt,rootElementSelector:Bt,previewContainer:li}=tt;this.disabled=yt??!1,this.dragStartDelay=Qt||0,ht&&(this.lockAxis=ht),Un&&(this.constrainPosition=Un),Yt&&(this.previewClass=Yt),Fn&&(this.boundaryElement=Fn),Bt&&(this.rootElementSelector=Bt),li&&(this.previewContainer=li)}_setupHandlesListener(){this._handles.changes.pipe((0,O.O)(this._handles),(0,P.b)(tt=>{const ht=tt.filter(Qt=>Qt._parentDrag===this).map(Qt=>Qt.element);this._selfHandle&&this.rootElementSelector&&ht.push(this.element),this._dragRef.withHandles(ht)}),(0,G.w)(tt=>(0,m.T)(...tt.map(ht=>ht._stateChanges.pipe((0,O.O)(ht))))),(0,b.R)(this._destroyed)).subscribe(tt=>{const ht=this._dragRef,Qt=tt.element.nativeElement;tt.disabled?ht.disableHandle(Qt):ht.enableHandle(Qt)})}static#t=this.\u0275fac=function(ht){return new(ht||Ve)(e.Y36(e.SBq),e.Y36(_i,12),e.Y36(n.K0),e.Y36(e.R0b),e.Y36(e.s_b),e.Y36(ji,8),e.Y36(B.Is,8),e.Y36(sn),e.Y36(e.sBO),e.Y36(nn,10),e.Y36(bn,12))};static#n=this.\u0275dir=e.lG2({type:Ve,selectors:[["","cdkDrag",""]],contentQueries:function(ht,Qt,Un){if(1&ht&&(e.Suo(Un,no,5),e.Suo(Un,ii,5),e.Suo(Un,nn,5)),2&ht){let Yt;e.iGM(Yt=e.CRH())&&(Qt._previewTemplate=Yt.first),e.iGM(Yt=e.CRH())&&(Qt._placeholderTemplate=Yt.first),e.iGM(Yt=e.CRH())&&(Qt._handles=Yt)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(ht,Qt){2&ht&&e.ekj("cdk-drag-disabled",Qt.disabled)("cdk-drag-dragging",Qt._dragRef.isDragging())},inputs:{data:[e.lbL.None,"cdkDragData","data"],lockAxis:[e.lbL.None,"cdkDragLockAxis","lockAxis"],rootElementSelector:[e.lbL.None,"cdkDragRootElement","rootElementSelector"],boundaryElement:[e.lbL.None,"cdkDragBoundary","boundaryElement"],dragStartDelay:[e.lbL.None,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[e.lbL.None,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[e.lbL.HasDecoratorInputTransform,"cdkDragDisabled","disabled",e.VuI],constrainPosition:[e.lbL.None,"cdkDragConstrainPosition","constrainPosition"],previewClass:[e.lbL.None,"cdkDragPreviewClass","previewClass"],previewContainer:[e.lbL.None,"cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[e._Bn([{provide:bn,useExisting:Ve}]),e.Xq5,e.TTD]})}return Ve})(),$e=(()=>{class Ve{static#e=this.\u0275fac=function(ht){return new(ht||Ve)};static#t=this.\u0275mod=e.oAB({type:Ve});static#n=this.\u0275inj=e.cJS({providers:[sn],imports:[s.ZD]})}return Ve})()},36028:(gt,X,a)=>{"use strict";a.d(X,{A:()=>We,JH:()=>ae,JU:()=>t,K5:()=>i,Ku:()=>b,LH:()=>G,L_:()=>m,MW:()=>vt,Mf:()=>s,SV:()=>B,Sd:()=>O,VM:()=>I,Vb:()=>$n,Z:()=>bn,aO:()=>R,b2:()=>Bi,hY:()=>u,jx:()=>p,oh:()=>P,uR:()=>H,xE:()=>K,zL:()=>c});const s=9,i=13,t=16,p=17,c=18,u=27,m=32,b=33,I=34,H=35,O=36,P=37,G=38,B=39,ae=40,K=48,R=57,We=65,bn=90,vt=91,Bi=224;function $n(Ui,...Xo){return Xo.length?Xo.some(bt=>Ui[bt]):Ui.altKey||Ui.shiftKey||Ui.ctrlKey||Ui.metaKey}},71088:(gt,X,a)=>{"use strict";a.d(X,{Yg:()=>ae,u3:()=>q,vx:()=>P});var e=a(19212),n=a(42495),s=a(72079),l=a(23291),i=a(93990),t=a(54699),p=a(51418),c=a(24521),o=a(96776),x=a(96124),u=a(53075),m=a(19352),b=a(62831);const H=new Set;let O,P=(()=>{class j{constructor(K,ne){this._platform=K,this._nonce=ne,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):B}matchMedia(K){return(this._platform.WEBKIT||this._platform.BLINK)&&function G(j,Y){if(!H.has(j))try{O||(O=document.createElement("style"),Y&&(O.nonce=Y),O.setAttribute("type","text/css"),document.head.appendChild(O)),O.sheet&&(O.sheet.insertRule(`@media ${j} {body{ }}`,0),H.add(j))}catch(K){console.error(K)}}(K,this._nonce),this._matchMedia(K)}static#e=this.\u0275fac=function(ne){return new(ne||j)(e.LFG(b.t4),e.LFG(e.Ojb,8))};static#t=this.\u0275prov=e.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"})}return j})();function B(j){return{matches:"all"===j||""===j,media:j,addListener:()=>{},removeListener:()=>{}}}let ae=(()=>{class j{constructor(K,ne){this._mediaMatcher=K,this._zone=ne,this._queries=new Map,this._destroySubject=new s.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(K){return J((0,n.Eq)(K)).some(ee=>this._registerQuery(ee).mql.matches)}observe(K){const ee=J((0,n.Eq)(K)).map(ue=>this._registerQuery(ue).observable);let $=(0,l.aj)(ee);return $=(0,i.z)($.pipe((0,p.q)(1)),$.pipe((0,c.T)(1),(0,o.b)(0))),$.pipe((0,x.U)(ue=>{const ge={matches:!1,breakpoints:{}};return ue.forEach(({matches:Ke,query:at})=>{ge.matches=ge.matches||Ke,ge.breakpoints[at]=Ke}),ge}))}_registerQuery(K){if(this._queries.has(K))return this._queries.get(K);const ne=this._mediaMatcher.matchMedia(K),$={observable:new t.y(ue=>{const ge=Ke=>this._zone.run(()=>ue.next(Ke));return ne.addListener(ge),()=>{ne.removeListener(ge)}}).pipe((0,u.O)(ne),(0,x.U)(({matches:ue})=>({query:K,matches:ue})),(0,m.R)(this._destroySubject)),mql:ne};return this._queries.set(K,$),$}static#e=this.\u0275fac=function(ne){return new(ne||j)(e.LFG(P),e.LFG(e.R0b))};static#t=this.\u0275prov=e.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"})}return j})();function J(j){return j.map(Y=>Y.split(",")).reduce((Y,K)=>Y.concat(K)).map(Y=>Y.trim())}const q={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},17131:(gt,X,a)=>{"use strict";a.d(X,{Q8:()=>o,wD:()=>c});var e=a(42495),n=a(19212),s=a(54699),l=a(72079),i=a(96776);let t=(()=>{class x{create(m){return typeof MutationObserver>"u"?null:new MutationObserver(m)}static#e=this.\u0275fac=function(b){return new(b||x)};static#t=this.\u0275prov=n.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"})}return x})(),p=(()=>{class x{constructor(m){this._mutationObserverFactory=m,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((m,b)=>this._cleanupObserver(b))}observe(m){const b=(0,e.fI)(m);return new s.y(I=>{const O=this._observeElement(b).subscribe(I);return()=>{O.unsubscribe(),this._unobserveElement(b)}})}_observeElement(m){if(this._observedElements.has(m))this._observedElements.get(m).count++;else{const b=new l.xQ,I=this._mutationObserverFactory.create(H=>b.next(H));I&&I.observe(m,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(m,{observer:I,stream:b,count:1})}return this._observedElements.get(m).stream}_unobserveElement(m){this._observedElements.has(m)&&(this._observedElements.get(m).count--,this._observedElements.get(m).count||this._cleanupObserver(m))}_cleanupObserver(m){if(this._observedElements.has(m)){const{observer:b,stream:I}=this._observedElements.get(m);b&&b.disconnect(),I.complete(),this._observedElements.delete(m)}}static#e=this.\u0275fac=function(b){return new(b||x)(n.LFG(t))};static#t=this.\u0275prov=n.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"})}return x})(),c=(()=>{class x{get disabled(){return this._disabled}set disabled(m){this._disabled=m,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(m){this._debounce=(0,e.su)(m),this._subscribe()}constructor(m,b,I){this._contentObserver=m,this._elementRef=b,this._ngZone=I,this.event=new n.vpe,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const m=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?m.pipe((0,i.b)(this.debounce)):m).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(b){return new(b||x)(n.Y36(p),n.Y36(n.SBq),n.Y36(n.R0b))};static#t=this.\u0275dir=n.lG2({type:x,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[n.lbL.HasDecoratorInputTransform,"cdkObserveContentDisabled","disabled",n.VuI],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[n.Xq5]})}return x})(),o=(()=>{class x{static#e=this.\u0275fac=function(b){return new(b||x)};static#t=this.\u0275mod=n.oAB({type:x});static#n=this.\u0275inj=n.cJS({providers:[t]})}return x})()},69594:(gt,X,a)=>{"use strict";a.d(X,{Iu:()=>Te,U8:()=>Je,X_:()=>K,Xj:()=>R,_G:()=>Ue,aV:()=>ye,pI:()=>Rn,uw:()=>Y,xu:()=>Dt});var e=a(39505),n=a(96814),s=a(19212),l=a(42495),i=a(62831),t=a(97734),p=a(51418),c=a(19352),o=a(66141),x=a(49388),u=a(68484),m=a(72079),b=a(7902),I=a(47354),H=a(36028);const O=(0,i.Mq)();class P{constructor(ot,ct){this._viewportRuler=ot,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=ct}attach(){}enable(){if(this._canBeEnabled()){const ot=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=ot.style.left||"",this._previousHTMLStyles.top=ot.style.top||"",ot.style.left=(0,l.HM)(-this._previousScrollPosition.left),ot.style.top=(0,l.HM)(-this._previousScrollPosition.top),ot.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const ot=this._document.documentElement,tn=ot.style,yi=this._document.body.style,ni=tn.scrollBehavior||"",sn=yi.scrollBehavior||"";this._isEnabled=!1,tn.left=this._previousHTMLStyles.left,tn.top=this._previousHTMLStyles.top,ot.classList.remove("cdk-global-scrollblock"),O&&(tn.scrollBehavior=yi.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),O&&(tn.scrollBehavior=ni,yi.scrollBehavior=sn)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const ct=this._document.body,tn=this._viewportRuler.getViewportSize();return ct.scrollHeight>tn.height||ct.scrollWidth>tn.width}}class B{constructor(ot,ct,tn,yi){this._scrollDispatcher=ot,this._ngZone=ct,this._viewportRuler=tn,this._config=yi,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(ot){this._overlayRef=ot}enable(){if(this._scrollSubscription)return;const ot=this._scrollDispatcher.scrolled(0).pipe((0,t.h)(ct=>!ct||!this._overlayRef.overlayElement.contains(ct.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=ot.subscribe(()=>{const ct=this._viewportRuler.getViewportScrollPosition().top;Math.abs(ct-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=ot.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ae{enable(){}disable(){}attach(){}}function J(Ie,ot){return ot.some(ct=>Ie.bottom<ct.top||Ie.top>ct.bottom||Ie.right<ct.left||Ie.left>ct.right)}function q(Ie,ot){return ot.some(ct=>Ie.top<ct.top||Ie.bottom>ct.bottom||Ie.left<ct.left||Ie.right>ct.right)}class j{constructor(ot,ct,tn,yi){this._scrollDispatcher=ot,this._viewportRuler=ct,this._ngZone=tn,this._config=yi,this._scrollSubscription=null}attach(ot){this._overlayRef=ot}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const ct=this._overlayRef.overlayElement.getBoundingClientRect(),{width:tn,height:yi}=this._viewportRuler.getViewportSize();J(ct,[{width:tn,height:yi,bottom:yi,right:tn,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Y=(()=>{class Ie{constructor(ct,tn,yi,ni){this._scrollDispatcher=ct,this._viewportRuler=tn,this._ngZone=yi,this.noop=()=>new ae,this.close=sn=>new B(this._scrollDispatcher,this._ngZone,this._viewportRuler,sn),this.block=()=>new P(this._viewportRuler,this._document),this.reposition=sn=>new j(this._scrollDispatcher,this._viewportRuler,this._ngZone,sn),this._document=ni}static#e=this.\u0275fac=function(tn){return new(tn||Ie)(s.LFG(e.mF),s.LFG(e.rL),s.LFG(s.R0b),s.LFG(n.K0))};static#t=this.\u0275prov=s.Yz7({token:Ie,factory:Ie.\u0275fac,providedIn:"root"})}return Ie})();class K{constructor(ot){if(this.scrollStrategy=new ae,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,ot){const ct=Object.keys(ot);for(const tn of ct)void 0!==ot[tn]&&(this[tn]=ot[tn])}}}class ${constructor(ot,ct){this.connectionPair=ot,this.scrollableViewProperties=ct}}let Ke=(()=>{class Ie{constructor(ct){this._attachedOverlays=[],this._document=ct}ngOnDestroy(){this.detach()}add(ct){this.remove(ct),this._attachedOverlays.push(ct)}remove(ct){const tn=this._attachedOverlays.indexOf(ct);tn>-1&&this._attachedOverlays.splice(tn,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(tn){return new(tn||Ie)(s.LFG(n.K0))};static#t=this.\u0275prov=s.Yz7({token:Ie,factory:Ie.\u0275fac,providedIn:"root"})}return Ie})(),at=(()=>{class Ie extends Ke{constructor(ct,tn){super(ct),this._ngZone=tn,this._keydownListener=yi=>{const ni=this._attachedOverlays;for(let sn=ni.length-1;sn>-1;sn--)if(ni[sn]._keydownEvents.observers.length>0){const bn=ni[sn]._keydownEvents;this._ngZone?this._ngZone.run(()=>bn.next(yi)):bn.next(yi);break}}}add(ct){super.add(ct),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#e=this.\u0275fac=function(tn){return new(tn||Ie)(s.LFG(n.K0),s.LFG(s.R0b,8))};static#t=this.\u0275prov=s.Yz7({token:Ie,factory:Ie.\u0275fac,providedIn:"root"})}return Ie})(),Le=(()=>{class Ie extends Ke{constructor(ct,tn,yi){super(ct),this._platform=tn,this._ngZone=yi,this._cursorStyleIsSet=!1,this._pointerDownListener=ni=>{this._pointerDownEventTarget=(0,i.sA)(ni)},this._clickListener=ni=>{const sn=(0,i.sA)(ni),bn="click"===ni.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:sn;this._pointerDownEventTarget=null;const vt=this._attachedOverlays.slice();for(let nn=vt.length-1;nn>-1;nn--){const rn=vt[nn];if(rn._outsidePointerEvents.observers.length<1||!rn.hasAttached())continue;if(rn.overlayElement.contains(sn)||rn.overlayElement.contains(bn))break;const ii=rn._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>ii.next(ni)):ii.next(ni)}}}add(ct){if(super.add(ct),!this._isAttached){const tn=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(tn)):this._addEventListeners(tn),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=tn.style.cursor,tn.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const ct=this._document.body;ct.removeEventListener("pointerdown",this._pointerDownListener,!0),ct.removeEventListener("click",this._clickListener,!0),ct.removeEventListener("auxclick",this._clickListener,!0),ct.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(ct.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(ct){ct.addEventListener("pointerdown",this._pointerDownListener,!0),ct.addEventListener("click",this._clickListener,!0),ct.addEventListener("auxclick",this._clickListener,!0),ct.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(tn){return new(tn||Ie)(s.LFG(n.K0),s.LFG(i.t4),s.LFG(s.R0b,8))};static#t=this.\u0275prov=s.Yz7({token:Ie,factory:Ie.\u0275fac,providedIn:"root"})}return Ie})(),R=(()=>{class Ie{constructor(ct,tn){this._platform=tn,this._document=ct}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ct="cdk-overlay-container";if(this._platform.isBrowser||(0,i.Oy)()){const yi=this._document.querySelectorAll(`.${ct}[platform="server"], .${ct}[platform="test"]`);for(let ni=0;ni<yi.length;ni++)yi[ni].remove()}const tn=this._document.createElement("div");tn.classList.add(ct),(0,i.Oy)()?tn.setAttribute("platform","test"):this._platform.isBrowser||tn.setAttribute("platform","server"),this._document.body.appendChild(tn),this._containerElement=tn}static#e=this.\u0275fac=function(tn){return new(tn||Ie)(s.LFG(n.K0),s.LFG(i.t4))};static#t=this.\u0275prov=s.Yz7({token:Ie,factory:Ie.\u0275fac,providedIn:"root"})}return Ie})();class Te{constructor(ot,ct,tn,yi,ni,sn,bn,vt,nn,rn=!1){this._portalOutlet=ot,this._host=ct,this._pane=tn,this._config=yi,this._ngZone=ni,this._keyboardDispatcher=sn,this._document=bn,this._location=vt,this._outsideClickDispatcher=nn,this._animationsDisabled=rn,this._backdropElement=null,this._backdropClick=new m.xQ,this._attachments=new m.xQ,this._detachments=new m.xQ,this._locationChanges=b.w.EMPTY,this._backdropClickHandler=ii=>this._backdropClick.next(ii),this._backdropTransitionendHandler=ii=>{this._disposeBackdrop(ii.target)},this._keydownEvents=new m.xQ,this._outsidePointerEvents=new m.xQ,yi.scrollStrategy&&(this._scrollStrategy=yi.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=yi.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(ot){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const ct=this._portalOutlet.attach(ot);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,p.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof ct?.onDestroy&&ct.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),ct}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const ot=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),ot}dispose(){const ot=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,ot&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(ot){ot!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=ot,this.hasAttached()&&(ot.attach(this),this.updatePosition()))}updateSize(ot){this._config={...this._config,...ot},this._updateElementSize()}setDirection(ot){this._config={...this._config,direction:ot},this._updateElementDirection()}addPanelClass(ot){this._pane&&this._toggleClasses(this._pane,ot,!0)}removePanelClass(ot){this._pane&&this._toggleClasses(this._pane,ot,!1)}getDirection(){const ot=this._config.direction;return ot?"string"==typeof ot?ot:ot.value:"ltr"}updateScrollStrategy(ot){ot!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=ot,this.hasAttached()&&(ot.attach(this),ot.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const ot=this._pane.style;ot.width=(0,l.HM)(this._config.width),ot.height=(0,l.HM)(this._config.height),ot.minWidth=(0,l.HM)(this._config.minWidth),ot.minHeight=(0,l.HM)(this._config.minHeight),ot.maxWidth=(0,l.HM)(this._config.maxWidth),ot.maxHeight=(0,l.HM)(this._config.maxHeight)}_togglePointerEvents(ot){this._pane.style.pointerEvents=ot?"":"none"}_attachBackdrop(){const ot="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(ot)})}):this._backdropElement.classList.add(ot)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const ot=this._backdropElement;if(ot){if(this._animationsDisabled)return void this._disposeBackdrop(ot);ot.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{ot.addEventListener("transitionend",this._backdropTransitionendHandler)}),ot.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(ot)},500))}}_toggleClasses(ot,ct,tn){const yi=(0,l.Eq)(ct||[]).filter(ni=>!!ni);yi.length&&(tn?ot.classList.add(...yi):ot.classList.remove(...yi))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const ot=this._ngZone.onStable.pipe((0,c.R)((0,I.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),ot.unsubscribe())})})}_disposeScrollStrategy(){const ot=this._scrollStrategy;ot&&(ot.disable(),ot.detach&&ot.detach())}_disposeBackdrop(ot){ot&&(ot.removeEventListener("click",this._backdropClickHandler),ot.removeEventListener("transitionend",this._backdropTransitionendHandler),ot.remove(),this._backdropElement===ot&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const me="cdk-overlay-connected-position-bounding-box",Se=/([A-Za-z%]+)$/;class Ue{get positions(){return this._preferredPositions}constructor(ot,ct,tn,yi,ni){this._viewportRuler=ct,this._document=tn,this._platform=yi,this._overlayContainer=ni,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new m.xQ,this._resizeSubscription=b.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(ot)}attach(ot){this._validatePositions(),ot.hostElement.classList.add(me),this._overlayRef=ot,this._boundingBox=ot.hostElement,this._pane=ot.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ot=this._originRect,ct=this._overlayRect,tn=this._viewportRect,yi=this._containerRect,ni=[];let sn;for(let bn of this._preferredPositions){let vt=this._getOriginPoint(ot,yi,bn),nn=this._getOverlayPoint(vt,ct,bn),rn=this._getOverlayFit(nn,ct,tn,bn);if(rn.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(bn,vt);this._canFitWithFlexibleDimensions(rn,nn,tn)?ni.push({position:bn,origin:vt,overlayRect:ct,boundingBoxRect:this._calculateBoundingBoxRect(vt,bn)}):(!sn||sn.overlayFit.visibleArea<rn.visibleArea)&&(sn={overlayFit:rn,overlayPoint:nn,originPoint:vt,position:bn,overlayRect:ct})}if(ni.length){let bn=null,vt=-1;for(const nn of ni){const rn=nn.boundingBoxRect.width*nn.boundingBoxRect.height*(nn.position.weight||1);rn>vt&&(vt=rn,bn=nn)}return this._isPushed=!1,void this._applyPosition(bn.position,bn.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(sn.position,sn.originPoint);this._applyPosition(sn.position,sn.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&We(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(me),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const ot=this._lastPosition;if(ot){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ct=this._getOriginPoint(this._originRect,this._containerRect,ot);this._applyPosition(ot,ct)}else this.apply()}withScrollableContainers(ot){return this._scrollables=ot,this}withPositions(ot){return this._preferredPositions=ot,-1===ot.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(ot){return this._viewportMargin=ot,this}withFlexibleDimensions(ot=!0){return this._hasFlexibleDimensions=ot,this}withGrowAfterOpen(ot=!0){return this._growAfterOpen=ot,this}withPush(ot=!0){return this._canPush=ot,this}withLockedPosition(ot=!0){return this._positionLocked=ot,this}setOrigin(ot){return this._origin=ot,this}withDefaultOffsetX(ot){return this._offsetX=ot,this}withDefaultOffsetY(ot){return this._offsetY=ot,this}withTransformOriginOn(ot){return this._transformOriginSelector=ot,this}_getOriginPoint(ot,ct,tn){let yi,ni;if("center"==tn.originX)yi=ot.left+ot.width/2;else{const sn=this._isRtl()?ot.right:ot.left,bn=this._isRtl()?ot.left:ot.right;yi="start"==tn.originX?sn:bn}return ct.left<0&&(yi-=ct.left),ni="center"==tn.originY?ot.top+ot.height/2:"top"==tn.originY?ot.top:ot.bottom,ct.top<0&&(ni-=ct.top),{x:yi,y:ni}}_getOverlayPoint(ot,ct,tn){let yi,ni;return yi="center"==tn.overlayX?-ct.width/2:"start"===tn.overlayX?this._isRtl()?-ct.width:0:this._isRtl()?0:-ct.width,ni="center"==tn.overlayY?-ct.height/2:"top"==tn.overlayY?0:-ct.height,{x:ot.x+yi,y:ot.y+ni}}_getOverlayFit(ot,ct,tn,yi){const ni=Et(ct);let{x:sn,y:bn}=ot,vt=this._getOffset(yi,"x"),nn=this._getOffset(yi,"y");vt&&(sn+=vt),nn&&(bn+=nn);let Oo=0-bn,no=bn+ni.height-tn.height,Li=this._subtractOverflows(ni.width,0-sn,sn+ni.width-tn.width),ji=this._subtractOverflows(ni.height,Oo,no),Ii=Li*ji;return{visibleArea:Ii,isCompletelyWithinViewport:ni.width*ni.height===Ii,fitsInViewportVertically:ji===ni.height,fitsInViewportHorizontally:Li==ni.width}}_canFitWithFlexibleDimensions(ot,ct,tn){if(this._hasFlexibleDimensions){const yi=tn.bottom-ct.y,ni=tn.right-ct.x,sn=et(this._overlayRef.getConfig().minHeight),bn=et(this._overlayRef.getConfig().minWidth);return(ot.fitsInViewportVertically||null!=sn&&sn<=yi)&&(ot.fitsInViewportHorizontally||null!=bn&&bn<=ni)}return!1}_pushOverlayOnScreen(ot,ct,tn){if(this._previousPushAmount&&this._positionLocked)return{x:ot.x+this._previousPushAmount.x,y:ot.y+this._previousPushAmount.y};const yi=Et(ct),ni=this._viewportRect,sn=Math.max(ot.x+yi.width-ni.width,0),bn=Math.max(ot.y+yi.height-ni.height,0),vt=Math.max(ni.top-tn.top-ot.y,0),nn=Math.max(ni.left-tn.left-ot.x,0);let rn=0,ii=0;return rn=yi.width<=ni.width?nn||-sn:ot.x<this._viewportMargin?ni.left-tn.left-ot.x:0,ii=yi.height<=ni.height?vt||-bn:ot.y<this._viewportMargin?ni.top-tn.top-ot.y:0,this._previousPushAmount={x:rn,y:ii},{x:ot.x+rn,y:ot.y+ii}}_applyPosition(ot,ct){if(this._setTransformOrigin(ot),this._setOverlayElementStyles(ct,ot),this._setBoundingBoxStyles(ct,ot),ot.panelClass&&this._addPanelClasses(ot.panelClass),this._lastPosition=ot,this._positionChanges.observers.length){const tn=this._getScrollVisibility(),yi=new $(ot,tn);this._positionChanges.next(yi)}this._isInitialRender=!1}_setTransformOrigin(ot){if(!this._transformOriginSelector)return;const ct=this._boundingBox.querySelectorAll(this._transformOriginSelector);let tn,yi=ot.overlayY;tn="center"===ot.overlayX?"center":this._isRtl()?"start"===ot.overlayX?"right":"left":"start"===ot.overlayX?"left":"right";for(let ni=0;ni<ct.length;ni++)ct[ni].style.transformOrigin=`${tn} ${yi}`}_calculateBoundingBoxRect(ot,ct){const tn=this._viewportRect,yi=this._isRtl();let ni,sn,bn,rn,ii,Oo;if("top"===ct.overlayY)sn=ot.y,ni=tn.height-sn+this._viewportMargin;else if("bottom"===ct.overlayY)bn=tn.height-ot.y+2*this._viewportMargin,ni=tn.height-bn+this._viewportMargin;else{const no=Math.min(tn.bottom-ot.y+tn.top,ot.y),Li=this._lastBoundingBoxSize.height;ni=2*no,sn=ot.y-no,ni>Li&&!this._isInitialRender&&!this._growAfterOpen&&(sn=ot.y-Li/2)}if("end"===ct.overlayX&&!yi||"start"===ct.overlayX&&yi)Oo=tn.width-ot.x+this._viewportMargin,rn=ot.x-this._viewportMargin;else if("start"===ct.overlayX&&!yi||"end"===ct.overlayX&&yi)ii=ot.x,rn=tn.right-ot.x;else{const no=Math.min(tn.right-ot.x+tn.left,ot.x),Li=this._lastBoundingBoxSize.width;rn=2*no,ii=ot.x-no,rn>Li&&!this._isInitialRender&&!this._growAfterOpen&&(ii=ot.x-Li/2)}return{top:sn,left:ii,bottom:bn,right:Oo,width:rn,height:ni}}_setBoundingBoxStyles(ot,ct){const tn=this._calculateBoundingBoxRect(ot,ct);!this._isInitialRender&&!this._growAfterOpen&&(tn.height=Math.min(tn.height,this._lastBoundingBoxSize.height),tn.width=Math.min(tn.width,this._lastBoundingBoxSize.width));const yi={};if(this._hasExactPosition())yi.top=yi.left="0",yi.bottom=yi.right=yi.maxHeight=yi.maxWidth="",yi.width=yi.height="100%";else{const ni=this._overlayRef.getConfig().maxHeight,sn=this._overlayRef.getConfig().maxWidth;yi.height=(0,l.HM)(tn.height),yi.top=(0,l.HM)(tn.top),yi.bottom=(0,l.HM)(tn.bottom),yi.width=(0,l.HM)(tn.width),yi.left=(0,l.HM)(tn.left),yi.right=(0,l.HM)(tn.right),yi.alignItems="center"===ct.overlayX?"center":"end"===ct.overlayX?"flex-end":"flex-start",yi.justifyContent="center"===ct.overlayY?"center":"bottom"===ct.overlayY?"flex-end":"flex-start",ni&&(yi.maxHeight=(0,l.HM)(ni)),sn&&(yi.maxWidth=(0,l.HM)(sn))}this._lastBoundingBoxSize=tn,We(this._boundingBox.style,yi)}_resetBoundingBoxStyles(){We(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){We(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(ot,ct){const tn={},yi=this._hasExactPosition(),ni=this._hasFlexibleDimensions,sn=this._overlayRef.getConfig();if(yi){const rn=this._viewportRuler.getViewportScrollPosition();We(tn,this._getExactOverlayY(ct,ot,rn)),We(tn,this._getExactOverlayX(ct,ot,rn))}else tn.position="static";let bn="",vt=this._getOffset(ct,"x"),nn=this._getOffset(ct,"y");vt&&(bn+=`translateX(${vt}px) `),nn&&(bn+=`translateY(${nn}px)`),tn.transform=bn.trim(),sn.maxHeight&&(yi?tn.maxHeight=(0,l.HM)(sn.maxHeight):ni&&(tn.maxHeight="")),sn.maxWidth&&(yi?tn.maxWidth=(0,l.HM)(sn.maxWidth):ni&&(tn.maxWidth="")),We(this._pane.style,tn)}_getExactOverlayY(ot,ct,tn){let yi={top:"",bottom:""},ni=this._getOverlayPoint(ct,this._overlayRect,ot);return this._isPushed&&(ni=this._pushOverlayOnScreen(ni,this._overlayRect,tn)),"bottom"===ot.overlayY?yi.bottom=this._document.documentElement.clientHeight-(ni.y+this._overlayRect.height)+"px":yi.top=(0,l.HM)(ni.y),yi}_getExactOverlayX(ot,ct,tn){let sn,yi={left:"",right:""},ni=this._getOverlayPoint(ct,this._overlayRect,ot);return this._isPushed&&(ni=this._pushOverlayOnScreen(ni,this._overlayRect,tn)),sn=this._isRtl()?"end"===ot.overlayX?"left":"right":"end"===ot.overlayX?"right":"left","right"===sn?yi.right=this._document.documentElement.clientWidth-(ni.x+this._overlayRect.width)+"px":yi.left=(0,l.HM)(ni.x),yi}_getScrollVisibility(){const ot=this._getOriginRect(),ct=this._pane.getBoundingClientRect(),tn=this._scrollables.map(yi=>yi.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:q(ot,tn),isOriginOutsideView:J(ot,tn),isOverlayClipped:q(ct,tn),isOverlayOutsideView:J(ct,tn)}}_subtractOverflows(ot,...ct){return ct.reduce((tn,yi)=>tn-Math.max(yi,0),ot)}_getNarrowedViewportRect(){const ot=this._document.documentElement.clientWidth,ct=this._document.documentElement.clientHeight,tn=this._viewportRuler.getViewportScrollPosition();return{top:tn.top+this._viewportMargin,left:tn.left+this._viewportMargin,right:tn.left+ot-this._viewportMargin,bottom:tn.top+ct-this._viewportMargin,width:ot-2*this._viewportMargin,height:ct-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(ot,ct){return"x"===ct?null==ot.offsetX?this._offsetX:ot.offsetX:null==ot.offsetY?this._offsetY:ot.offsetY}_validatePositions(){}_addPanelClasses(ot){this._pane&&(0,l.Eq)(ot).forEach(ct=>{""!==ct&&-1===this._appliedPanelClasses.indexOf(ct)&&(this._appliedPanelClasses.push(ct),this._pane.classList.add(ct))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(ot=>{this._pane.classList.remove(ot)}),this._appliedPanelClasses=[])}_getOriginRect(){const ot=this._origin;if(ot instanceof s.SBq)return ot.nativeElement.getBoundingClientRect();if(ot instanceof Element)return ot.getBoundingClientRect();const ct=ot.width||0,tn=ot.height||0;return{top:ot.y,bottom:ot.y+tn,left:ot.x,right:ot.x+ct,height:tn,width:ct}}}function We(Ie,ot){for(let ct in ot)ot.hasOwnProperty(ct)&&(Ie[ct]=ot[ct]);return Ie}function et(Ie){if("number"!=typeof Ie&&null!=Ie){const[ot,ct]=Ie.split(Se);return ct&&"px"!==ct?null:parseFloat(ot)}return Ie||null}function Et(Ie){return{top:Math.floor(Ie.top),right:Math.floor(Ie.right),bottom:Math.floor(Ie.bottom),left:Math.floor(Ie.left),width:Math.floor(Ie.width),height:Math.floor(Ie.height)}}const r="cdk-global-overlay-wrapper";class Z{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(ot){const ct=ot.getConfig();this._overlayRef=ot,this._width&&!ct.width&&ot.updateSize({width:this._width}),this._height&&!ct.height&&ot.updateSize({height:this._height}),ot.hostElement.classList.add(r),this._isDisposed=!1}top(ot=""){return this._bottomOffset="",this._topOffset=ot,this._alignItems="flex-start",this}left(ot=""){return this._xOffset=ot,this._xPosition="left",this}bottom(ot=""){return this._topOffset="",this._bottomOffset=ot,this._alignItems="flex-end",this}right(ot=""){return this._xOffset=ot,this._xPosition="right",this}start(ot=""){return this._xOffset=ot,this._xPosition="start",this}end(ot=""){return this._xOffset=ot,this._xPosition="end",this}width(ot=""){return this._overlayRef?this._overlayRef.updateSize({width:ot}):this._width=ot,this}height(ot=""){return this._overlayRef?this._overlayRef.updateSize({height:ot}):this._height=ot,this}centerHorizontally(ot=""){return this.left(ot),this._xPosition="center",this}centerVertically(ot=""){return this.top(ot),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const ot=this._overlayRef.overlayElement.style,ct=this._overlayRef.hostElement.style,tn=this._overlayRef.getConfig(),{width:yi,height:ni,maxWidth:sn,maxHeight:bn}=tn,vt=!("100%"!==yi&&"100vw"!==yi||sn&&"100%"!==sn&&"100vw"!==sn),nn=!("100%"!==ni&&"100vh"!==ni||bn&&"100%"!==bn&&"100vh"!==bn),rn=this._xPosition,ii=this._xOffset,Oo="rtl"===this._overlayRef.getConfig().direction;let no="",Li="",ji="";vt?ji="flex-start":"center"===rn?(ji="center",Oo?Li=ii:no=ii):Oo?"left"===rn||"end"===rn?(ji="flex-end",no=ii):("right"===rn||"start"===rn)&&(ji="flex-start",Li=ii):"left"===rn||"start"===rn?(ji="flex-start",no=ii):("right"===rn||"end"===rn)&&(ji="flex-end",Li=ii),ot.position=this._cssPosition,ot.marginLeft=vt?"0":no,ot.marginTop=nn?"0":this._topOffset,ot.marginBottom=this._bottomOffset,ot.marginRight=vt?"0":Li,ct.justifyContent=ji,ct.alignItems=nn?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const ot=this._overlayRef.overlayElement.style,ct=this._overlayRef.hostElement,tn=ct.style;ct.classList.remove(r),tn.justifyContent=tn.alignItems=ot.marginTop=ot.marginBottom=ot.marginLeft=ot.marginRight=ot.position="",this._overlayRef=null,this._isDisposed=!0}}let Pt=(()=>{class Ie{constructor(ct,tn,yi,ni){this._viewportRuler=ct,this._document=tn,this._platform=yi,this._overlayContainer=ni}global(){return new Z}flexibleConnectedTo(ct){return new Ue(ct,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(tn){return new(tn||Ie)(s.LFG(e.rL),s.LFG(n.K0),s.LFG(i.t4),s.LFG(R))};static#t=this.\u0275prov=s.Yz7({token:Ie,factory:Ie.\u0275fac,providedIn:"root"})}return Ie})(),Oe=0,ye=(()=>{class Ie{constructor(ct,tn,yi,ni,sn,bn,vt,nn,rn,ii,Oo,no){this.scrollStrategies=ct,this._overlayContainer=tn,this._componentFactoryResolver=yi,this._positionBuilder=ni,this._keyboardDispatcher=sn,this._injector=bn,this._ngZone=vt,this._document=nn,this._directionality=rn,this._location=ii,this._outsideClickDispatcher=Oo,this._animationsModuleType=no}create(ct){const tn=this._createHostElement(),yi=this._createPaneElement(tn),ni=this._createPortalOutlet(yi),sn=new K(ct);return sn.direction=sn.direction||this._directionality.value,new Te(ni,tn,yi,sn,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(ct){const tn=this._document.createElement("div");return tn.id="cdk-overlay-"+Oe++,tn.classList.add("cdk-overlay-pane"),ct.appendChild(tn),tn}_createHostElement(){const ct=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ct),ct}_createPortalOutlet(ct){return this._appRef||(this._appRef=this._injector.get(s.z2F)),new u.u0(ct,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(tn){return new(tn||Ie)(s.LFG(Y),s.LFG(R),s.LFG(s._Vd),s.LFG(Pt),s.LFG(at),s.LFG(s.zs3),s.LFG(s.R0b),s.LFG(n.K0),s.LFG(x.Is),s.LFG(n.Ye),s.LFG(Le),s.LFG(s.QbO,8))};static#t=this.\u0275prov=s.Yz7({token:Ie,factory:Ie.\u0275fac,providedIn:"root"})}return Ie})();const ve=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],ft=new s.OlP("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const Ie=(0,s.f3M)(ye);return()=>Ie.scrollStrategies.reposition()}});let Dt=(()=>{class Ie{constructor(ct){this.elementRef=ct}static#e=this.\u0275fac=function(tn){return new(tn||Ie)(s.Y36(s.SBq))};static#t=this.\u0275dir=s.lG2({type:Ie,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return Ie})(),Rn=(()=>{class Ie{get offsetX(){return this._offsetX}set offsetX(ct){this._offsetX=ct,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(ct){this._offsetY=ct,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(ct){this._disposeOnNavigation=ct}constructor(ct,tn,yi,ni,sn){this._overlay=ct,this._dir=sn,this._backdropSubscription=b.w.EMPTY,this._attachSubscription=b.w.EMPTY,this._detachSubscription=b.w.EMPTY,this._positionSubscription=b.w.EMPTY,this._disposeOnNavigation=!1,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new s.vpe,this.positionChange=new s.vpe,this.attach=new s.vpe,this.detach=new s.vpe,this.overlayKeydown=new s.vpe,this.overlayOutsideClick=new s.vpe,this._templatePortal=new u.UE(tn,yi),this._scrollStrategyFactory=ni,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(ct){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),ct.origin&&this.open&&this._position.apply()),ct.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=ve);const ct=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=ct.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=ct.detachments().subscribe(()=>this.detach.emit()),ct.keydownEvents().subscribe(tn=>{this.overlayKeydown.next(tn),tn.keyCode===H.hY&&!this.disableClose&&!(0,H.Vb)(tn)&&(tn.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(tn=>{this.overlayOutsideClick.next(tn)})}_buildConfig(){const ct=this._position=this.positionStrategy||this._createPositionStrategy(),tn=new K({direction:this._dir,positionStrategy:ct,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(tn.width=this.width),(this.height||0===this.height)&&(tn.height=this.height),(this.minWidth||0===this.minWidth)&&(tn.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(tn.minHeight=this.minHeight),this.backdropClass&&(tn.backdropClass=this.backdropClass),this.panelClass&&(tn.panelClass=this.panelClass),tn}_updatePositionStrategy(ct){const tn=this.positions.map(yi=>({originX:yi.originX,originY:yi.originY,overlayX:yi.overlayX,overlayY:yi.overlayY,offsetX:yi.offsetX||this.offsetX,offsetY:yi.offsetY||this.offsetY,panelClass:yi.panelClass||void 0}));return ct.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(tn).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const ct=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(ct),ct}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Dt?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(ct=>{this.backdropClick.emit(ct)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,o.o)(()=>this.positionChange.observers.length>0)).subscribe(ct=>{this.positionChange.emit(ct),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static#e=this.\u0275fac=function(tn){return new(tn||Ie)(s.Y36(ye),s.Y36(s.Rgc),s.Y36(s.s_b),s.Y36(ft),s.Y36(x.Is,8))};static#t=this.\u0275dir=s.lG2({type:Ie,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[s.lbL.None,"cdkConnectedOverlayOrigin","origin"],positions:[s.lbL.None,"cdkConnectedOverlayPositions","positions"],positionStrategy:[s.lbL.None,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[s.lbL.None,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[s.lbL.None,"cdkConnectedOverlayOffsetY","offsetY"],width:[s.lbL.None,"cdkConnectedOverlayWidth","width"],height:[s.lbL.None,"cdkConnectedOverlayHeight","height"],minWidth:[s.lbL.None,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[s.lbL.None,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[s.lbL.None,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[s.lbL.None,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[s.lbL.None,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[s.lbL.None,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[s.lbL.None,"cdkConnectedOverlayOpen","open"],disableClose:[s.lbL.None,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[s.lbL.None,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[s.lbL.HasDecoratorInputTransform,"cdkConnectedOverlayHasBackdrop","hasBackdrop",s.VuI],lockPosition:[s.lbL.HasDecoratorInputTransform,"cdkConnectedOverlayLockPosition","lockPosition",s.VuI],flexibleDimensions:[s.lbL.HasDecoratorInputTransform,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",s.VuI],growAfterOpen:[s.lbL.HasDecoratorInputTransform,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",s.VuI],push:[s.lbL.HasDecoratorInputTransform,"cdkConnectedOverlayPush","push",s.VuI],disposeOnNavigation:[s.lbL.HasDecoratorInputTransform,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",s.VuI]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[s.Xq5,s.TTD]})}return Ie})();const Xt={provide:ft,deps:[ye],useFactory:function ti(Ie){return()=>Ie.scrollStrategies.reposition()}};let Je=(()=>{class Ie{static#e=this.\u0275fac=function(tn){return new(tn||Ie)};static#t=this.\u0275mod=s.oAB({type:Ie});static#n=this.\u0275inj=s.cJS({providers:[ye,Xt],imports:[x.vT,u.eL,e.Cl,e.Cl]})}return Ie})()},62831:(gt,X,a)=>{"use strict";a.d(X,{EJ:()=>m,Mq:()=>H,Oy:()=>q,_i:()=>O,ht:()=>ae,i$:()=>u,kV:()=>B,qK:()=>c,sA:()=>J,t4:()=>l,ud:()=>i});var e=a(19212),n=a(96814);let s;try{s=typeof Intl<"u"&&Intl.v8BreakIterator}catch{s=!1}let t,l=(()=>{class j{constructor(K){this._platformId=K,this.isBrowser=this._platformId?(0,n.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!s)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static#e=this.\u0275fac=function(ne){return new(ne||j)(e.LFG(e.Lbi))};static#t=this.\u0275prov=e.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"})}return j})(),i=(()=>{class j{static#e=this.\u0275fac=function(ne){return new(ne||j)};static#t=this.\u0275mod=e.oAB({type:j});static#n=this.\u0275inj=e.cJS({})}return j})();const p=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function c(){if(t)return t;if("object"!=typeof document||!document)return t=new Set(p),t;let j=document.createElement("input");return t=new Set(p.filter(Y=>(j.setAttribute("type",Y),j.type===Y))),t}let o;function u(j){return function x(){if(null==o&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>o=!0}))}finally{o=o||!1}return o}()?j:!!j.capture}var m=function(j){return j[j.NORMAL=0]="NORMAL",j[j.NEGATED=1]="NEGATED",j[j.INVERTED=2]="INVERTED",j}(m||{});let b,I,P;function H(){if(null==I){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return I=!1,I;if("scrollBehavior"in document.documentElement.style)I=!0;else{const j=Element.prototype.scrollTo;I=!!j&&!/\{\s*\[native code\]\s*\}/.test(j.toString())}}return I}function O(){if("object"!=typeof document||!document)return m.NORMAL;if(null==b){const j=document.createElement("div"),Y=j.style;j.dir="rtl",Y.width="1px",Y.overflow="auto",Y.visibility="hidden",Y.pointerEvents="none",Y.position="absolute";const K=document.createElement("div"),ne=K.style;ne.width="2px",ne.height="1px",j.appendChild(K),document.body.appendChild(j),b=m.NORMAL,0===j.scrollLeft&&(j.scrollLeft=1,b=0===j.scrollLeft?m.NEGATED:m.INVERTED),j.remove()}return b}function B(j){if(function G(){if(null==P){const j=typeof document<"u"?document.head:null;P=!(!j||!j.createShadowRoot&&!j.attachShadow)}return P}()){const Y=j.getRootNode?j.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&Y instanceof ShadowRoot)return Y}return null}function ae(){let j=typeof document<"u"&&document?document.activeElement:null;for(;j&&j.shadowRoot;){const Y=j.shadowRoot.activeElement;if(Y===j)break;j=Y}return j}function J(j){return j.composedPath?j.composedPath()[0]:j.target}function q(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},68484:(gt,X,a)=>{"use strict";a.d(X,{C5:()=>x,Pl:()=>B,UE:()=>u,bH:()=>G,eL:()=>J,en:()=>b,ig:()=>P,u0:()=>H});var e=a(19212),n=a(96814);class o{attach(Y){return this._attachedHost=Y,Y.attach(this)}detach(){let Y=this._attachedHost;null!=Y&&(this._attachedHost=null,Y.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Y){this._attachedHost=Y}}class x extends o{constructor(Y,K,ne,ee,$){super(),this.component=Y,this.viewContainerRef=K,this.injector=ne,this.componentFactoryResolver=ee,this.projectableNodes=$}}class u extends o{constructor(Y,K,ne,ee){super(),this.templateRef=Y,this.viewContainerRef=K,this.context=ne,this.injector=ee}get origin(){return this.templateRef.elementRef}attach(Y,K=this.context){return this.context=K,super.attach(Y)}detach(){return this.context=void 0,super.detach()}}class m extends o{constructor(Y){super(),this.element=Y instanceof e.SBq?Y.nativeElement:Y}}class b{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Y){return Y instanceof x?(this._attachedPortal=Y,this.attachComponentPortal(Y)):Y instanceof u?(this._attachedPortal=Y,this.attachTemplatePortal(Y)):this.attachDomPortal&&Y instanceof m?(this._attachedPortal=Y,this.attachDomPortal(Y)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(Y){this._disposeFn=Y}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class H extends b{constructor(Y,K,ne,ee,$){super(),this.outletElement=Y,this._componentFactoryResolver=K,this._appRef=ne,this._defaultInjector=ee,this.attachDomPortal=ue=>{const ge=ue.element,Ke=this._document.createComment("dom-portal");ge.parentNode.insertBefore(Ke,ge),this.outletElement.appendChild(ge),this._attachedPortal=ue,super.setDisposeFn(()=>{Ke.parentNode&&Ke.parentNode.replaceChild(ge,Ke)})},this._document=$}attachComponentPortal(Y){const ne=(Y.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Y.component);let ee;return Y.viewContainerRef?(ee=Y.viewContainerRef.createComponent(ne,Y.viewContainerRef.length,Y.injector||Y.viewContainerRef.injector,Y.projectableNodes||void 0),this.setDisposeFn(()=>ee.destroy())):(ee=ne.create(Y.injector||this._defaultInjector||e.zs3.NULL),this._appRef.attachView(ee.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(ee.hostView),ee.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(ee)),this._attachedPortal=Y,ee}attachTemplatePortal(Y){let K=Y.viewContainerRef,ne=K.createEmbeddedView(Y.templateRef,Y.context,{injector:Y.injector});return ne.rootNodes.forEach(ee=>this.outletElement.appendChild(ee)),ne.detectChanges(),this.setDisposeFn(()=>{let ee=K.indexOf(ne);-1!==ee&&K.remove(ee)}),this._attachedPortal=Y,ne}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Y){return Y.hostView.rootNodes[0]}}let P=(()=>{class j extends u{constructor(K,ne){super(K,ne)}static#e=this.\u0275fac=function(ne){return new(ne||j)(e.Y36(e.Rgc),e.Y36(e.s_b))};static#t=this.\u0275dir=e.lG2({type:j,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],standalone:!0,features:[e.qOj]})}return j})(),G=(()=>{class j extends P{static#e=this.\u0275fac=(()=>{let K;return function(ee){return(K||(K=e.n5z(j)))(ee||j)}})();static#t=this.\u0275dir=e.lG2({type:j,selectors:[["","cdk-portal",""],["","portal",""]],exportAs:["cdkPortal"],standalone:!0,features:[e._Bn([{provide:P,useExisting:j}]),e.qOj]})}return j})(),B=(()=>{class j extends b{constructor(K,ne,ee){super(),this._componentFactoryResolver=K,this._viewContainerRef=ne,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=$=>{const ue=$.element,ge=this._document.createComment("dom-portal");$.setAttachedHost(this),ue.parentNode.insertBefore(ge,ue),this._getRootNode().appendChild(ue),this._attachedPortal=$,super.setDisposeFn(()=>{ge.parentNode&&ge.parentNode.replaceChild(ue,ge)})},this._document=ee}get portal(){return this._attachedPortal}set portal(K){this.hasAttached()&&!K&&!this._isInitialized||(this.hasAttached()&&super.detach(),K&&super.attach(K),this._attachedPortal=K||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(K){K.setAttachedHost(this);const ne=null!=K.viewContainerRef?K.viewContainerRef:this._viewContainerRef,$=(K.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(K.component),ue=ne.createComponent($,ne.length,K.injector||ne.injector,K.projectableNodes||void 0);return ne!==this._viewContainerRef&&this._getRootNode().appendChild(ue.hostView.rootNodes[0]),super.setDisposeFn(()=>ue.destroy()),this._attachedPortal=K,this._attachedRef=ue,this.attached.emit(ue),ue}attachTemplatePortal(K){K.setAttachedHost(this);const ne=this._viewContainerRef.createEmbeddedView(K.templateRef,K.context,{injector:K.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=K,this._attachedRef=ne,this.attached.emit(ne),ne}_getRootNode(){const K=this._viewContainerRef.element.nativeElement;return K.nodeType===K.ELEMENT_NODE?K:K.parentNode}static#e=this.\u0275fac=function(ne){return new(ne||j)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(n.K0))};static#t=this.\u0275dir=e.lG2({type:j,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[e.lbL.None,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[e.qOj]})}return j})(),J=(()=>{class j{static#e=this.\u0275fac=function(ne){return new(ne||j)};static#t=this.\u0275mod=e.oAB({type:j});static#n=this.\u0275inj=e.cJS({})}return j})()},39505:(gt,X,a)=>{"use strict";a.d(X,{PQ:()=>Le,ZD:()=>Z,mF:()=>at,Cl:()=>Pt,rL:()=>Te});var e=a(42495),n=a(19212),s=a(72079),l=a(49193),i=a(54699),t=a(49016);a(73944);let c=1;const o=Promise.resolve(),x={};function u(Oe){return Oe in x&&(delete x[Oe],!0)}const m={setImmediate(Oe){const ye=c++;return x[ye]=!0,o.then(()=>u(ye)&&Oe()),ye},clearImmediate(Oe){u(Oe)}};var I=a(61618),O=a(91781);new class P extends O.v{flush(ye){this.active=!0,this.scheduled=void 0;const{actions:ve}=this;let ft,Dt=-1,Rn=ve.length;ye=ye||ve.shift();do{if(ft=ye.execute(ye.state,ye.delay))break}while(++Dt<Rn&&(ye=ve.shift()));if(this.active=!1,ft){for(;++Dt<Rn&&(ye=ve.shift());)ye.unsubscribe();throw ft}}}(class H extends I.o{constructor(ye,ve){super(ye,ve),this.scheduler=ye,this.work=ve}requestAsyncId(ye,ve,ft=0){return null!==ft&&ft>0?super.requestAsyncId(ye,ve,ft):(ye.actions.push(this),ye.scheduled||(ye.scheduled=m.setImmediate(ye.flush.bind(ye,null))))}recycleAsyncId(ye,ve,ft=0){if(null!==ft&&ft>0||null===ft&&this.delay>0)return super.recycleAsyncId(ye,ve,ft);0===ye.actions.length&&(m.clearImmediate(ve),ye.scheduled=void 0)}});var B=a(23433),ae=a(97734),J=a(19352),q=a(62831),j=a(96814),Y=a(49388);let at=(()=>{class Oe{constructor(ve,ft,Dt){this._ngZone=ve,this._platform=ft,this._scrolled=new s.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Dt}register(ve){this.scrollContainers.has(ve)||this.scrollContainers.set(ve,ve.elementScrolled().subscribe(()=>this._scrolled.next(ve)))}deregister(ve){const ft=this.scrollContainers.get(ve);ft&&(ft.unsubscribe(),this.scrollContainers.delete(ve))}scrolled(ve=20){return this._platform.isBrowser?new i.y(ft=>{this._globalSubscription||this._addGlobalListener();const Dt=ve>0?this._scrolled.pipe((0,B.e)(ve)).subscribe(ft):this._scrolled.subscribe(ft);return this._scrolledCount++,()=>{Dt.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,l.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ve,ft)=>this.deregister(ft)),this._scrolled.complete()}ancestorScrolled(ve,ft){const Dt=this.getAncestorScrollContainers(ve);return this.scrolled(ft).pipe((0,ae.h)(Rn=>!Rn||Dt.indexOf(Rn)>-1))}getAncestorScrollContainers(ve){const ft=[];return this.scrollContainers.forEach((Dt,Rn)=>{this._scrollableContainsElement(Rn,ve)&&ft.push(Rn)}),ft}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ve,ft){let Dt=(0,e.fI)(ft),Rn=ve.getElementRef().nativeElement;do{if(Dt==Rn)return!0}while(Dt=Dt.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ve=this._getWindow();return(0,t.R)(ve.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(ft){return new(ft||Oe)(n.LFG(n.R0b),n.LFG(q.t4),n.LFG(j.K0,8))};static#t=this.\u0275prov=n.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"})}return Oe})(),Le=(()=>{class Oe{constructor(ve,ft,Dt,Rn){this.elementRef=ve,this.scrollDispatcher=ft,this.ngZone=Dt,this.dir=Rn,this._destroyed=new s.xQ,this._elementScrolled=new i.y(ti=>this.ngZone.runOutsideAngular(()=>(0,t.R)(this.elementRef.nativeElement,"scroll").pipe((0,J.R)(this._destroyed)).subscribe(ti)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(ve){const ft=this.elementRef.nativeElement,Dt=this.dir&&"rtl"==this.dir.value;null==ve.left&&(ve.left=Dt?ve.end:ve.start),null==ve.right&&(ve.right=Dt?ve.start:ve.end),null!=ve.bottom&&(ve.top=ft.scrollHeight-ft.clientHeight-ve.bottom),Dt&&(0,q._i)()!=q.EJ.NORMAL?(null!=ve.left&&(ve.right=ft.scrollWidth-ft.clientWidth-ve.left),(0,q._i)()==q.EJ.INVERTED?ve.left=ve.right:(0,q._i)()==q.EJ.NEGATED&&(ve.left=ve.right?-ve.right:ve.right)):null!=ve.right&&(ve.left=ft.scrollWidth-ft.clientWidth-ve.right),this._applyScrollToOptions(ve)}_applyScrollToOptions(ve){const ft=this.elementRef.nativeElement;(0,q.Mq)()?ft.scrollTo(ve):(null!=ve.top&&(ft.scrollTop=ve.top),null!=ve.left&&(ft.scrollLeft=ve.left))}measureScrollOffset(ve){const ft="left",Rn=this.elementRef.nativeElement;if("top"==ve)return Rn.scrollTop;if("bottom"==ve)return Rn.scrollHeight-Rn.clientHeight-Rn.scrollTop;const ti=this.dir&&"rtl"==this.dir.value;return"start"==ve?ve=ti?"right":ft:"end"==ve&&(ve=ti?ft:"right"),ti&&(0,q._i)()==q.EJ.INVERTED?ve==ft?Rn.scrollWidth-Rn.clientWidth-Rn.scrollLeft:Rn.scrollLeft:ti&&(0,q._i)()==q.EJ.NEGATED?ve==ft?Rn.scrollLeft+Rn.scrollWidth-Rn.clientWidth:-Rn.scrollLeft:ve==ft?Rn.scrollLeft:Rn.scrollWidth-Rn.clientWidth-Rn.scrollLeft}static#e=this.\u0275fac=function(ft){return new(ft||Oe)(n.Y36(n.SBq),n.Y36(at),n.Y36(n.R0b),n.Y36(Y.Is,8))};static#t=this.\u0275dir=n.lG2({type:Oe,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}return Oe})(),Te=(()=>{class Oe{constructor(ve,ft,Dt){this._platform=ve,this._change=new s.xQ,this._changeListener=Rn=>{this._change.next(Rn)},this._document=Dt,ft.runOutsideAngular(()=>{if(ve.isBrowser){const Rn=this._getWindow();Rn.addEventListener("resize",this._changeListener),Rn.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ve=this._getWindow();ve.removeEventListener("resize",this._changeListener),ve.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ve={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ve}getViewportRect(){const ve=this.getViewportScrollPosition(),{width:ft,height:Dt}=this.getViewportSize();return{top:ve.top,left:ve.left,bottom:ve.top+Dt,right:ve.left+ft,height:Dt,width:ft}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ve=this._document,ft=this._getWindow(),Dt=ve.documentElement,Rn=Dt.getBoundingClientRect();return{top:-Rn.top||ve.body.scrollTop||ft.scrollY||Dt.scrollTop||0,left:-Rn.left||ve.body.scrollLeft||ft.scrollX||Dt.scrollLeft||0}}change(ve=20){return ve>0?this._change.pipe((0,B.e)(ve)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ve=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ve.innerWidth,height:ve.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(ft){return new(ft||Oe)(n.LFG(q.t4),n.LFG(n.R0b),n.LFG(j.K0,8))};static#t=this.\u0275prov=n.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"})}return Oe})(),Z=(()=>{class Oe{static#e=this.\u0275fac=function(ft){return new(ft||Oe)};static#t=this.\u0275mod=n.oAB({type:Oe});static#n=this.\u0275inj=n.cJS({})}return Oe})(),Pt=(()=>{class Oe{static#e=this.\u0275fac=function(ft){return new(ft||Oe)};static#t=this.\u0275mod=n.oAB({type:Oe});static#n=this.\u0275inj=n.cJS({imports:[Y.vT,Z,Y.vT,Z]})}return Oe})()},41894:(gt,X,a)=>{"use strict";a.d(X,{HI:()=>I,Hs:()=>Y,Ud:()=>ge,VY:()=>b,XJ:()=>ue,Xx:()=>ee,_0:()=>j,cu:()=>H,nZ:()=>at,rO:()=>P});var e=a(78337),n=a(95363),s=a(72079),l=a(45125),i=a(49193),t=a(51418),p=a(97734),c=a(19352),o=a(19212),x=a(49388);class u{constructor(){this.expansionModel=new e.Ov(!0)}toggle(R){this.expansionModel.toggle(this._trackByValue(R))}expand(R){this.expansionModel.select(this._trackByValue(R))}collapse(R){this.expansionModel.deselect(this._trackByValue(R))}isExpanded(R){return this.expansionModel.isSelected(this._trackByValue(R))}toggleDescendants(R){this.expansionModel.isSelected(this._trackByValue(R))?this.collapseDescendants(R):this.expandDescendants(R)}collapseAll(){this.expansionModel.clear()}expandDescendants(R){let Te=[R];Te.push(...this.getDescendants(R)),this.expansionModel.select(...Te.map(me=>this._trackByValue(me)))}collapseDescendants(R){let Te=[R];Te.push(...this.getDescendants(R)),this.expansionModel.deselect(...Te.map(me=>this._trackByValue(me)))}_trackByValue(R){return this.trackBy?this.trackBy(R):R}}class b extends u{constructor(R,Te){super(),this.getChildren=R,this.options=Te,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const R=this.dataNodes.reduce((Te,me)=>[...Te,...this.getDescendants(me),me],[]);this.expansionModel.select(...R.map(Te=>this._trackByValue(Te)))}getDescendants(R){const Te=[];return this._getDescendants(Te,R),Te.splice(1)}_getDescendants(R,Te){R.push(Te);const me=this.getChildren(Te);Array.isArray(me)?me.forEach(Se=>this._getDescendants(R,Se)):(0,n.b)(me)&&me.pipe((0,t.q)(1),(0,p.h)(Boolean)).subscribe(Se=>{for(const Ue of Se)this._getDescendants(R,Ue)})}}const I=new o.OlP("CDK_TREE_NODE_OUTLET_NODE");let H=(()=>{class Le{constructor(Te,me){this.viewContainer=Te,this._node=me}static#e=this.\u0275fac=function(me){return new(me||Le)(o.Y36(o.s_b),o.Y36(I,8))};static#t=this.\u0275dir=o.lG2({type:Le,selectors:[["","cdkTreeNodeOutlet",""]],standalone:!0})}return Le})();class O{constructor(R){this.$implicit=R}}let P=(()=>{class Le{constructor(Te){this.template=Te}static#e=this.\u0275fac=function(me){return new(me||Le)(o.Y36(o.Rgc))};static#t=this.\u0275dir=o.lG2({type:Le,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:[o.lbL.None,"cdkTreeNodeDefWhen","when"]},standalone:!0})}return Le})(),j=(()=>{class Le{get dataSource(){return this._dataSource}set dataSource(Te){this._dataSource!==Te&&this._switchDataSource(Te)}constructor(Te,me){this._differs=Te,this._changeDetectorRef=me,this._onDestroy=new s.xQ,this._levels=new Map,this.viewChange=new l.X({start:0,end:Number.MAX_VALUE})}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),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)}ngAfterContentChecked(){const Te=this._nodeDefs.filter(me=>!me.when);this._defaultNodeDef=Te[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(Te){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),Te||this._nodeOutlet.viewContainer.clear(),this._dataSource=Te,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let Te;(0,e.Z9)(this._dataSource)?Te=this._dataSource.connect(this):(0,n.b)(this._dataSource)?Te=this._dataSource:Array.isArray(this._dataSource)&&(Te=(0,i.of)(this._dataSource)),Te&&(this._dataSubscription=Te.pipe((0,c.R)(this._onDestroy)).subscribe(me=>this.renderNodeChanges(me)))}renderNodeChanges(Te,me=this._dataDiffer,Se=this._nodeOutlet.viewContainer,Ue){const We=me.diff(Te);We&&(We.forEachOperation((et,Et,lt)=>{if(null==et.previousIndex)this.insertNode(Te[lt],lt,Se,Ue);else if(null==lt)Se.remove(Et),this._levels.delete(et.item);else{const Vt=Se.get(Et);Se.move(Vt,lt)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(Te,me){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(Ue=>Ue.when&&Ue.when(me,Te))||this._defaultNodeDef}insertNode(Te,me,Se,Ue){const We=this._getNodeDef(Te,me),et=new O(Te);et.level=this.treeControl.getLevel?this.treeControl.getLevel(Te):typeof Ue<"u"&&this._levels.has(Ue)?this._levels.get(Ue)+1:0,this._levels.set(Te,et.level),(Se||this._nodeOutlet.viewContainer).createEmbeddedView(We.template,et,me),Y.mostRecentTreeNode&&(Y.mostRecentTreeNode.data=Te)}static#e=this.\u0275fac=function(me){return new(me||Le)(o.Y36(o.ZZ4),o.Y36(o.sBO))};static#t=this.\u0275cmp=o.Xpm({type:Le,selectors:[["cdk-tree"]],contentQueries:function(me,Se,Ue){if(1&me&&o.Suo(Ue,P,5),2&me){let We;o.iGM(We=o.CRH())&&(Se._nodeDefs=We)}},viewQuery:function(me,Se){if(1&me&&o.Gf(H,7),2&me){let Ue;o.iGM(Ue=o.CRH())&&(Se._nodeOutlet=Ue.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],standalone:!0,features:[o.jDz],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(me,Se){1&me&&o.GkF(0,0)},dependencies:[H],encapsulation:2})}return Le})(),Y=(()=>{class Le{get role(){return"treeitem"}set role(Te){this._elementRef.nativeElement.setAttribute("role",Te)}static#e=this.mostRecentTreeNode=null;get data(){return this._data}set data(Te){Te!==this._data&&(this._data=Te,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}constructor(Te,me){this._elementRef=Te,this._tree=me,this._destroyed=new s.xQ,this._dataChanges=new s.xQ,Le.mostRecentTreeNode=this,this.role="treeitem"}ngOnInit(){this._parentNodeAriaLevel=function K(Le){let R=Le.parentElement;for(;R&&!ne(R);)R=R.parentElement;return R?R.classList.contains("cdk-nested-tree-node")?(0,o.Cb_)(R.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){Le.mostRecentTreeNode===this&&(Le.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}static#t=this.\u0275fac=function(me){return new(me||Le)(o.Y36(o.SBq),o.Y36(j))};static#n=this.\u0275dir=o.lG2({type:Le,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(me,Se){2&me&&o.uIk("aria-expanded",Se.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"],standalone:!0})}return Le})();function ne(Le){const R=Le.classList;return!(!R?.contains("cdk-nested-tree-node")&&!R?.contains("cdk-tree"))}let ee=(()=>{class Le extends Y{constructor(Te,me,Se){super(Te,me),this._differs=Se}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const Te=this._tree.treeControl.getChildren(this.data);Array.isArray(Te)?this.updateChildrenNodes(Te):(0,n.b)(Te)&&Te.pipe((0,c.R)(this._destroyed)).subscribe(me=>this.updateChildrenNodes(me)),this.nodeOutlet.changes.pipe((0,c.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(Te){const me=this._getNodeOutlet();Te&&(this._children=Te),me&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,me.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const Te=this._getNodeOutlet();Te&&(Te.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const Te=this.nodeOutlet;return Te&&Te.find(me=>!me._node||me._node===this)}static#e=this.\u0275fac=function(me){return new(me||Le)(o.Y36(o.SBq),o.Y36(j),o.Y36(o.ZZ4))};static#t=this.\u0275dir=o.lG2({type:Le,selectors:[["cdk-nested-tree-node"]],contentQueries:function(me,Se,Ue){if(1&me&&o.Suo(Ue,H,5),2&me){let We;o.iGM(We=o.CRH())&&(Se.nodeOutlet=We)}},hostAttrs:[1,"cdk-nested-tree-node"],exportAs:["cdkNestedTreeNode"],standalone:!0,features:[o._Bn([{provide:Y,useExisting:Le},{provide:I,useExisting:Le}]),o.qOj]})}return Le})();const $=/([A-Za-z%]+)$/;let ue=(()=>{class Le{get level(){return this._level}set level(Te){this._setLevelInput(Te)}get indent(){return this._indent}set indent(Te){this._setIndentInput(Te)}constructor(Te,me,Se,Ue){this._treeNode=Te,this._tree=me,this._element=Se,this._dir=Ue,this._destroyed=new s.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),Ue&&Ue.change.pipe((0,c.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),Te._dataChanges.subscribe(()=>this._setPadding())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const Te=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,me=null==this._level?Te:this._level;return"number"==typeof me?`${me*this._indent}${this.indentUnits}`:null}_setPadding(Te=!1){const me=this._paddingIndent();if(me!==this._currentPadding||Te){const Se=this._element.nativeElement,Ue=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",We="paddingLeft"===Ue?"paddingRight":"paddingLeft";Se.style[Ue]=me||"",Se.style[We]="",this._currentPadding=me}}_setLevelInput(Te){this._level=isNaN(Te)?null:Te,this._setPadding()}_setIndentInput(Te){let me=Te,Se="px";if("string"==typeof Te){const Ue=Te.split($);me=Ue[0],Se=Ue[1]||Se}this.indentUnits=Se,this._indent=(0,o.Cb_)(me),this._setPadding()}static#e=this.\u0275fac=function(me){return new(me||Le)(o.Y36(Y),o.Y36(j),o.Y36(o.SBq),o.Y36(x.Is,8))};static#t=this.\u0275dir=o.lG2({type:Le,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:[o.lbL.HasDecoratorInputTransform,"cdkTreeNodePadding","level",o.Cb_],indent:[o.lbL.None,"cdkTreeNodePaddingIndent","indent"]},standalone:!0,features:[o.Xq5]})}return Le})(),ge=(()=>{class Le{constructor(Te,me){this._tree=Te,this._treeNode=me,this.recursive=!1}_toggle(Te){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),Te.stopPropagation()}static#e=this.\u0275fac=function(me){return new(me||Le)(o.Y36(j),o.Y36(Y))};static#t=this.\u0275dir=o.lG2({type:Le,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(me,Se){1&me&&o.NdJ("click",function(We){return Se._toggle(We)})},inputs:{recursive:[o.lbL.HasDecoratorInputTransform,"cdkTreeNodeToggleRecursive","recursive",o.VuI]},standalone:!0,features:[o.Xq5]})}return Le})(),at=(()=>{class Le{static#e=this.\u0275fac=function(me){return new(me||Le)};static#t=this.\u0275mod=o.oAB({type:Le});static#n=this.\u0275inj=o.cJS({})}return Le})()},96814:(gt,X,a)=>{"use strict";a.d(X,{Do:()=>O,EM:()=>Wa,HT:()=>l,JF:()=>uo,JJ:()=>hs,K0:()=>t,Mx:()=>st,NF:()=>yr,Nd:()=>dl,O5:()=>Bi,Ov:()=>Cr,PC:()=>qi,PM:()=>Vr,RF:()=>an,S$:()=>b,Ts:()=>Fa,V_:()=>c,Ye:()=>P,b0:()=>H,bD:()=>Ti,ez:()=>Vi,lw:()=>p,mk:()=>kn,mr:()=>I,n9:()=>Wn,q:()=>s,qS:()=>_n,sg:()=>At,tP:()=>wi,uU:()=>ja,w_:()=>i});var e=a(19212);let n=null;function s(){return n}function l(Zt){n??=Zt}class i{}const t=new e.OlP("");let p=(()=>{class Zt{historyGo(Mn){throw new Error("")}static#e=this.\u0275fac=function(mi){return new(mi||Zt)};static#t=this.\u0275prov=e.Yz7({token:Zt,factory:()=>(0,e.f3M)(o),providedIn:"platform"})}return Zt})();const c=new e.OlP("");let o=(()=>{class Zt extends p{constructor(){super(),this._doc=(0,e.f3M)(t),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return s().getBaseHref(this._doc)}onPopState(Mn){const mi=s().getGlobalEventTarget(this._doc,"window");return mi.addEventListener("popstate",Mn,!1),()=>mi.removeEventListener("popstate",Mn)}onHashChange(Mn){const mi=s().getGlobalEventTarget(this._doc,"window");return mi.addEventListener("hashchange",Mn,!1),()=>mi.removeEventListener("hashchange",Mn)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(Mn){this._location.pathname=Mn}pushState(Mn,mi,Mo){this._history.pushState(Mn,mi,Mo)}replaceState(Mn,mi,Mo){this._history.replaceState(Mn,mi,Mo)}forward(){this._history.forward()}back(){this._history.back()}historyGo(Mn=0){this._history.go(Mn)}getState(){return this._history.state}static#e=this.\u0275fac=function(mi){return new(mi||Zt)};static#t=this.\u0275prov=e.Yz7({token:Zt,factory:()=>new Zt,providedIn:"platform"})}return Zt})();function x(Zt,ri){if(0==Zt.length)return ri;if(0==ri.length)return Zt;let Mn=0;return Zt.endsWith("/")&&Mn++,ri.startsWith("/")&&Mn++,2==Mn?Zt+ri.substring(1):1==Mn?Zt+ri:Zt+"/"+ri}function u(Zt){const ri=Zt.match(/#|\?|$/),Mn=ri&&ri.index||Zt.length;return Zt.slice(0,Mn-("/"===Zt[Mn-1]?1:0))+Zt.slice(Mn)}function m(Zt){return Zt&&"?"!==Zt[0]?"?"+Zt:Zt}let b=(()=>{class Zt{historyGo(Mn){throw new Error("")}static#e=this.\u0275fac=function(mi){return new(mi||Zt)};static#t=this.\u0275prov=e.Yz7({token:Zt,factory:()=>(0,e.f3M)(H),providedIn:"root"})}return Zt})();const I=new e.OlP("");let H=(()=>{class Zt extends b{constructor(Mn,mi){super(),this._platformLocation=Mn,this._removeListenerFns=[],this._baseHref=mi??this._platformLocation.getBaseHrefFromDOM()??(0,e.f3M)(t).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Mn){this._removeListenerFns.push(this._platformLocation.onPopState(Mn),this._platformLocation.onHashChange(Mn))}getBaseHref(){return this._baseHref}prepareExternalUrl(Mn){return x(this._baseHref,Mn)}path(Mn=!1){const mi=this._platformLocation.pathname+m(this._platformLocation.search),Mo=this._platformLocation.hash;return Mo&&Mn?`${mi}${Mo}`:mi}pushState(Mn,mi,Mo,pr){const Pr=this.prepareExternalUrl(Mo+m(pr));this._platformLocation.pushState(Mn,mi,Pr)}replaceState(Mn,mi,Mo,pr){const Pr=this.prepareExternalUrl(Mo+m(pr));this._platformLocation.replaceState(Mn,mi,Pr)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Mn=0){this._platformLocation.historyGo?.(Mn)}static#e=this.\u0275fac=function(mi){return new(mi||Zt)(e.LFG(p),e.LFG(I,8))};static#t=this.\u0275prov=e.Yz7({token:Zt,factory:Zt.\u0275fac,providedIn:"root"})}return Zt})(),O=(()=>{class Zt extends b{constructor(Mn,mi){super(),this._platformLocation=Mn,this._baseHref="",this._removeListenerFns=[],null!=mi&&(this._baseHref=mi)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Mn){this._removeListenerFns.push(this._platformLocation.onPopState(Mn),this._platformLocation.onHashChange(Mn))}getBaseHref(){return this._baseHref}path(Mn=!1){const mi=this._platformLocation.hash??"#";return mi.length>0?mi.substring(1):mi}prepareExternalUrl(Mn){const mi=x(this._baseHref,Mn);return mi.length>0?"#"+mi:mi}pushState(Mn,mi,Mo,pr){let Pr=this.prepareExternalUrl(Mo+m(pr));0==Pr.length&&(Pr=this._platformLocation.pathname),this._platformLocation.pushState(Mn,mi,Pr)}replaceState(Mn,mi,Mo,pr){let Pr=this.prepareExternalUrl(Mo+m(pr));0==Pr.length&&(Pr=this._platformLocation.pathname),this._platformLocation.replaceState(Mn,mi,Pr)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Mn=0){this._platformLocation.historyGo?.(Mn)}static#e=this.\u0275fac=function(mi){return new(mi||Zt)(e.LFG(p),e.LFG(I,8))};static#t=this.\u0275prov=e.Yz7({token:Zt,factory:Zt.\u0275fac})}return Zt})(),P=(()=>{class Zt{constructor(Mn){this._subject=new e.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=Mn;const mi=this._locationStrategy.getBaseHref();this._basePath=function J(Zt){if(new RegExp("^(https?:)?//").test(Zt)){const[,Mn]=Zt.split(/\/\/[^\/]+/);return Mn}return Zt}(u(ae(mi))),this._locationStrategy.onPopState(Mo=>{this._subject.emit({url:this.path(!0),pop:!0,state:Mo.state,type:Mo.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(Mn=!1){return this.normalize(this._locationStrategy.path(Mn))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(Mn,mi=""){return this.path()==this.normalize(Mn+m(mi))}normalize(Mn){return Zt.stripTrailingSlash(function B(Zt,ri){if(!Zt||!ri.startsWith(Zt))return ri;const Mn=ri.substring(Zt.length);return""===Mn||["/",";","?","#"].includes(Mn[0])?Mn:ri}(this._basePath,ae(Mn)))}prepareExternalUrl(Mn){return Mn&&"/"!==Mn[0]&&(Mn="/"+Mn),this._locationStrategy.prepareExternalUrl(Mn)}go(Mn,mi="",Mo=null){this._locationStrategy.pushState(Mo,"",Mn,mi),this._notifyUrlChangeListeners(this.prepareExternalUrl(Mn+m(mi)),Mo)}replaceState(Mn,mi="",Mo=null){this._locationStrategy.replaceState(Mo,"",Mn,mi),this._notifyUrlChangeListeners(this.prepareExternalUrl(Mn+m(mi)),Mo)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(Mn=0){this._locationStrategy.historyGo?.(Mn)}onUrlChange(Mn){return this._urlChangeListeners.push(Mn),this._urlChangeSubscription??=this.subscribe(mi=>{this._notifyUrlChangeListeners(mi.url,mi.state)}),()=>{const mi=this._urlChangeListeners.indexOf(Mn);this._urlChangeListeners.splice(mi,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(Mn="",mi){this._urlChangeListeners.forEach(Mo=>Mo(Mn,mi))}subscribe(Mn,mi,Mo){return this._subject.subscribe({next:Mn,error:mi,complete:Mo})}static#e=this.normalizeQueryParams=m;static#t=this.joinWithSlash=x;static#n=this.stripTrailingSlash=u;static#i=this.\u0275fac=function(mi){return new(mi||Zt)(e.LFG(b))};static#o=this.\u0275prov=e.Yz7({token:Zt,factory:()=>function G(){return new P((0,e.LFG)(b))}(),providedIn:"root"})}return Zt})();function ae(Zt){return Zt.replace(/\/index.html$/,"")}var j=function(Zt){return Zt[Zt.Decimal=0]="Decimal",Zt[Zt.Percent=1]="Percent",Zt[Zt.Currency=2]="Currency",Zt[Zt.Scientific=3]="Scientific",Zt}(j||{}),K=function(Zt){return Zt[Zt.Format=0]="Format",Zt[Zt.Standalone=1]="Standalone",Zt}(K||{}),ne=function(Zt){return Zt[Zt.Narrow=0]="Narrow",Zt[Zt.Abbreviated=1]="Abbreviated",Zt[Zt.Wide=2]="Wide",Zt[Zt.Short=3]="Short",Zt}(ne||{}),ee=function(Zt){return Zt[Zt.Short=0]="Short",Zt[Zt.Medium=1]="Medium",Zt[Zt.Long=2]="Long",Zt[Zt.Full=3]="Full",Zt}(ee||{}),$=function(Zt){return Zt[Zt.Decimal=0]="Decimal",Zt[Zt.Group=1]="Group",Zt[Zt.List=2]="List",Zt[Zt.PercentSign=3]="PercentSign",Zt[Zt.PlusSign=4]="PlusSign",Zt[Zt.MinusSign=5]="MinusSign",Zt[Zt.Exponential=6]="Exponential",Zt[Zt.SuperscriptingExponent=7]="SuperscriptingExponent",Zt[Zt.PerMille=8]="PerMille",Zt[Zt.Infinity=9]="Infinity",Zt[Zt.NaN=10]="NaN",Zt[Zt.TimeSeparator=11]="TimeSeparator",Zt[Zt.CurrencyDecimal=12]="CurrencyDecimal",Zt[Zt.CurrencyGroup=13]="CurrencyGroup",Zt}($||{});function Se(Zt,ri){return Dt((0,e.cg1)(Zt)[e.wAp.DateFormat],ri)}function Ue(Zt,ri){return Dt((0,e.cg1)(Zt)[e.wAp.TimeFormat],ri)}function We(Zt,ri){return Dt((0,e.cg1)(Zt)[e.wAp.DateTimeFormat],ri)}function et(Zt,ri){const Mn=(0,e.cg1)(Zt),mi=Mn[e.wAp.NumberSymbols][ri];if(typeof mi>"u"){if(ri===$.CurrencyDecimal)return Mn[e.wAp.NumberSymbols][$.Decimal];if(ri===$.CurrencyGroup)return Mn[e.wAp.NumberSymbols][$.Group]}return mi}function Oe(Zt){if(!Zt[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Zt[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Dt(Zt,ri){for(let Mn=ri;Mn>-1;Mn--)if(typeof Zt[Mn]<"u")return Zt[Mn];throw new Error("Locale data API: locale data undefined")}function Rn(Zt){const[ri,Mn]=Zt.split(":");return{hours:+ri,minutes:+Mn}}const dt=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ie={},ot=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var ct=function(Zt){return Zt[Zt.Short=0]="Short",Zt[Zt.ShortGMT=1]="ShortGMT",Zt[Zt.Long=2]="Long",Zt[Zt.Extended=3]="Extended",Zt}(ct||{}),tn=function(Zt){return Zt[Zt.FullYear=0]="FullYear",Zt[Zt.Month=1]="Month",Zt[Zt.Date=2]="Date",Zt[Zt.Hours=3]="Hours",Zt[Zt.Minutes=4]="Minutes",Zt[Zt.Seconds=5]="Seconds",Zt[Zt.FractionalSeconds=6]="FractionalSeconds",Zt[Zt.Day=7]="Day",Zt}(tn||{}),yi=function(Zt){return Zt[Zt.DayPeriods=0]="DayPeriods",Zt[Zt.Days=1]="Days",Zt[Zt.Months=2]="Months",Zt[Zt.Eras=3]="Eras",Zt}(yi||{});function ni(Zt,ri,Mn,mi){let Mo=function tt(Zt){if(Qt(Zt))return Zt;if("number"==typeof Zt&&!isNaN(Zt))return new Date(Zt);if("string"==typeof Zt){if(Zt=Zt.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Zt)){const[Mo,pr=1,Pr=1]=Zt.split("-").map(xa=>+xa);return sn(Mo,pr-1,Pr)}const Mn=parseFloat(Zt);if(!isNaN(Zt-Mn))return new Date(Mn);let mi;if(mi=Zt.match(dt))return function ht(Zt){const ri=new Date(0);let Mn=0,mi=0;const Mo=Zt[8]?ri.setUTCFullYear:ri.setFullYear,pr=Zt[8]?ri.setUTCHours:ri.setHours;Zt[9]&&(Mn=Number(Zt[9]+Zt[10]),mi=Number(Zt[9]+Zt[11])),Mo.call(ri,Number(Zt[1]),Number(Zt[2])-1,Number(Zt[3]));const Pr=Number(Zt[4]||0)-Mn,xa=Number(Zt[5]||0)-mi,tl=Number(Zt[6]||0),Ls=Math.floor(1e3*parseFloat("0."+(Zt[7]||0)));return pr.call(ri,Pr,xa,tl,Ls),ri}(mi)}const ri=new Date(Zt);if(!Qt(ri))throw new Error(`Unable to convert "${Zt}" into a date`);return ri}(Zt);ri=bn(Mn,ri)||ri;let xa,Pr=[];for(;ri;){if(xa=ot.exec(ri),!xa){Pr.push(ri);break}{Pr=Pr.concat(xa.slice(1));const Ts=Pr.pop();if(!Ts)break;ri=Ts}}let tl=Mo.getTimezoneOffset();mi&&(tl=$e(mi,tl),Mo=function Ce(Zt,ri,Mn){const mi=Mn?-1:1,Mo=Zt.getTimezoneOffset();return function Ve(Zt,ri){return(Zt=new Date(Zt.getTime())).setMinutes(Zt.getMinutes()+ri),Zt}(Zt,mi*($e(ri,Mo)-Mo))}(Mo,mi,!0));let Ls="";return Pr.forEach(Ts=>{const _s=function rt(Zt){if(He[Zt])return He[Zt];let ri;switch(Zt){case"G":case"GG":case"GGG":ri=no(yi.Eras,ne.Abbreviated);break;case"GGGG":ri=no(yi.Eras,ne.Wide);break;case"GGGGG":ri=no(yi.Eras,ne.Narrow);break;case"y":ri=ii(tn.FullYear,1,0,!1,!0);break;case"yy":ri=ii(tn.FullYear,2,0,!0,!0);break;case"yyy":ri=ii(tn.FullYear,3,0,!1,!0);break;case"yyyy":ri=ii(tn.FullYear,4,0,!1,!0);break;case"Y":ri=ln(1);break;case"YY":ri=ln(2,!0);break;case"YYY":ri=ln(3);break;case"YYYY":ri=ln(4);break;case"M":case"L":ri=ii(tn.Month,1,1);break;case"MM":case"LL":ri=ii(tn.Month,2,1);break;case"MMM":ri=no(yi.Months,ne.Abbreviated);break;case"MMMM":ri=no(yi.Months,ne.Wide);break;case"MMMMM":ri=no(yi.Months,ne.Narrow);break;case"LLL":ri=no(yi.Months,ne.Abbreviated,K.Standalone);break;case"LLLL":ri=no(yi.Months,ne.Wide,K.Standalone);break;case"LLLLL":ri=no(yi.Months,ne.Narrow,K.Standalone);break;case"w":ri=yn(1);break;case"ww":ri=yn(2);break;case"W":ri=yn(1,!0);break;case"d":ri=ii(tn.Date,1);break;case"dd":ri=ii(tn.Date,2);break;case"c":case"cc":ri=ii(tn.Day,1);break;case"ccc":ri=no(yi.Days,ne.Abbreviated,K.Standalone);break;case"cccc":ri=no(yi.Days,ne.Wide,K.Standalone);break;case"ccccc":ri=no(yi.Days,ne.Narrow,K.Standalone);break;case"cccccc":ri=no(yi.Days,ne.Short,K.Standalone);break;case"E":case"EE":case"EEE":ri=no(yi.Days,ne.Abbreviated);break;case"EEEE":ri=no(yi.Days,ne.Wide);break;case"EEEEE":ri=no(yi.Days,ne.Narrow);break;case"EEEEEE":ri=no(yi.Days,ne.Short);break;case"a":case"aa":case"aaa":ri=no(yi.DayPeriods,ne.Abbreviated);break;case"aaaa":ri=no(yi.DayPeriods,ne.Wide);break;case"aaaaa":ri=no(yi.DayPeriods,ne.Narrow);break;case"b":case"bb":case"bbb":ri=no(yi.DayPeriods,ne.Abbreviated,K.Standalone,!0);break;case"bbbb":ri=no(yi.DayPeriods,ne.Wide,K.Standalone,!0);break;case"bbbbb":ri=no(yi.DayPeriods,ne.Narrow,K.Standalone,!0);break;case"B":case"BB":case"BBB":ri=no(yi.DayPeriods,ne.Abbreviated,K.Format,!0);break;case"BBBB":ri=no(yi.DayPeriods,ne.Wide,K.Format,!0);break;case"BBBBB":ri=no(yi.DayPeriods,ne.Narrow,K.Format,!0);break;case"h":ri=ii(tn.Hours,1,-12);break;case"hh":ri=ii(tn.Hours,2,-12);break;case"H":ri=ii(tn.Hours,1);break;case"HH":ri=ii(tn.Hours,2);break;case"m":ri=ii(tn.Minutes,1);break;case"mm":ri=ii(tn.Minutes,2);break;case"s":ri=ii(tn.Seconds,1);break;case"ss":ri=ii(tn.Seconds,2);break;case"S":ri=ii(tn.FractionalSeconds,1);break;case"SS":ri=ii(tn.FractionalSeconds,2);break;case"SSS":ri=ii(tn.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ri=ji(ct.Short);break;case"ZZZZZ":ri=ji(ct.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ri=ji(ct.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ri=ji(ct.Long);break;default:return null}return He[Zt]=ri,ri}(Ts);Ls+=_s?_s(Mo,Mn,tl):"''"===Ts?"'":Ts.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Ls}function sn(Zt,ri,Mn){const mi=new Date(0);return mi.setFullYear(Zt,ri,Mn),mi.setHours(0,0,0),mi}function bn(Zt,ri){const Mn=function ge(Zt){return(0,e.cg1)(Zt)[e.wAp.LocaleId]}(Zt);if(Ie[Mn]??={},Ie[Mn][ri])return Ie[Mn][ri];let mi="";switch(ri){case"shortDate":mi=Se(Zt,ee.Short);break;case"mediumDate":mi=Se(Zt,ee.Medium);break;case"longDate":mi=Se(Zt,ee.Long);break;case"fullDate":mi=Se(Zt,ee.Full);break;case"shortTime":mi=Ue(Zt,ee.Short);break;case"mediumTime":mi=Ue(Zt,ee.Medium);break;case"longTime":mi=Ue(Zt,ee.Long);break;case"fullTime":mi=Ue(Zt,ee.Full);break;case"short":const Mo=bn(Zt,"shortTime"),pr=bn(Zt,"shortDate");mi=vt(We(Zt,ee.Short),[Mo,pr]);break;case"medium":const Pr=bn(Zt,"mediumTime"),xa=bn(Zt,"mediumDate");mi=vt(We(Zt,ee.Medium),[Pr,xa]);break;case"long":const tl=bn(Zt,"longTime"),Ls=bn(Zt,"longDate");mi=vt(We(Zt,ee.Long),[tl,Ls]);break;case"full":const Ts=bn(Zt,"fullTime"),_s=bn(Zt,"fullDate");mi=vt(We(Zt,ee.Full),[Ts,_s])}return mi&&(Ie[Mn][ri]=mi),mi}function vt(Zt,ri){return ri&&(Zt=Zt.replace(/\{([^}]+)}/g,function(Mn,mi){return null!=ri&&mi in ri?ri[mi]:Mn})),Zt}function nn(Zt,ri,Mn="-",mi,Mo){let pr="";(Zt<0||Mo&&Zt<=0)&&(Mo?Zt=1-Zt:(Zt=-Zt,pr=Mn));let Pr=String(Zt);for(;Pr.length<ri;)Pr="0"+Pr;return mi&&(Pr=Pr.slice(Pr.length-ri)),pr+Pr}function ii(Zt,ri,Mn=0,mi=!1,Mo=!1){return function(pr,Pr){let xa=function Oo(Zt,ri){switch(Zt){case tn.FullYear:return ri.getFullYear();case tn.Month:return ri.getMonth();case tn.Date:return ri.getDate();case tn.Hours:return ri.getHours();case tn.Minutes:return ri.getMinutes();case tn.Seconds:return ri.getSeconds();case tn.FractionalSeconds:return ri.getMilliseconds();case tn.Day:return ri.getDay();default:throw new Error(`Unknown DateType value "${Zt}".`)}}(Zt,pr);if((Mn>0||xa>-Mn)&&(xa+=Mn),Zt===tn.Hours)0===xa&&-12===Mn&&(xa=12);else if(Zt===tn.FractionalSeconds)return function rn(Zt,ri){return nn(Zt,3).substring(0,ri)}(xa,ri);const tl=et(Pr,$.MinusSign);return nn(xa,ri,tl,mi,Mo)}}function no(Zt,ri,Mn=K.Format,mi=!1){return function(Mo,pr){return function Li(Zt,ri,Mn,mi,Mo,pr){switch(Mn){case yi.Months:return function Le(Zt,ri,Mn){const mi=(0,e.cg1)(Zt),pr=Dt([mi[e.wAp.MonthsFormat],mi[e.wAp.MonthsStandalone]],ri);return Dt(pr,Mn)}(ri,Mo,mi)[Zt.getMonth()];case yi.Days:return function at(Zt,ri,Mn){const mi=(0,e.cg1)(Zt),pr=Dt([mi[e.wAp.DaysFormat],mi[e.wAp.DaysStandalone]],ri);return Dt(pr,Mn)}(ri,Mo,mi)[Zt.getDay()];case yi.DayPeriods:const Pr=Zt.getHours(),xa=Zt.getMinutes();if(pr){const Ls=function ye(Zt){const ri=(0,e.cg1)(Zt);return Oe(ri),(ri[e.wAp.ExtraData][2]||[]).map(mi=>"string"==typeof mi?Rn(mi):[Rn(mi[0]),Rn(mi[1])])}(ri),Ts=function ve(Zt,ri,Mn){const mi=(0,e.cg1)(Zt);Oe(mi);const pr=Dt([mi[e.wAp.ExtraData][0],mi[e.wAp.ExtraData][1]],ri)||[];return Dt(pr,Mn)||[]}(ri,Mo,mi),_s=Ls.findIndex(ul=>{if(Array.isArray(ul)){const[qs,Ks]=ul,pl=Pr>=qs.hours&&xa>=qs.minutes,nc=Pr<Ks.hours||Pr===Ks.hours&&xa<Ks.minutes;if(qs.hours<Ks.hours){if(pl&&nc)return!0}else if(pl||nc)return!0}else if(ul.hours===Pr&&ul.minutes===xa)return!0;return!1});if(-1!==_s)return Ts[_s]}return function Ke(Zt,ri,Mn){const mi=(0,e.cg1)(Zt),pr=Dt([mi[e.wAp.DayPeriodsFormat],mi[e.wAp.DayPeriodsStandalone]],ri);return Dt(pr,Mn)}(ri,Mo,mi)[Pr<12?0:1];case yi.Eras:return function R(Zt,ri){return Dt((0,e.cg1)(Zt)[e.wAp.Eras],ri)}(ri,mi)[Zt.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${Mn}`)}}(Mo,pr,Zt,ri,Mn,mi)}}function ji(Zt){return function(ri,Mn,mi){const Mo=-1*mi,pr=et(Mn,$.MinusSign),Pr=Mo>0?Math.floor(Mo/60):Math.ceil(Mo/60);switch(Zt){case ct.Short:return(Mo>=0?"+":"")+nn(Pr,2,pr)+nn(Math.abs(Mo%60),2,pr);case ct.ShortGMT:return"GMT"+(Mo>=0?"+":"")+nn(Pr,1,pr);case ct.Long:return"GMT"+(Mo>=0?"+":"")+nn(Pr,2,pr)+":"+nn(Math.abs(Mo%60),2,pr);case ct.Extended:return 0===mi?"Z":(Mo>=0?"+":"")+nn(Pr,2,pr)+":"+nn(Math.abs(Mo%60),2,pr);default:throw new Error(`Unknown zone width "${Zt}"`)}}}const Ii=0,_i=4;function co(Zt){const ri=Zt.getDay(),Mn=0===ri?-3:_i-ri;return sn(Zt.getFullYear(),Zt.getMonth(),Zt.getDate()+Mn)}function yn(Zt,ri=!1){return function(Mn,mi){let Mo;if(ri){const pr=new Date(Mn.getFullYear(),Mn.getMonth(),1).getDay()-1,Pr=Mn.getDate();Mo=1+Math.floor((Pr+pr)/7)}else{const pr=co(Mn),Pr=function En(Zt){const ri=sn(Zt,Ii,1).getDay();return sn(Zt,0,1+(ri<=_i?_i:_i+7)-ri)}(pr.getFullYear()),xa=pr.getTime()-Pr.getTime();Mo=1+Math.round(xa/6048e5)}return nn(Mo,Zt,et(mi,$.MinusSign))}}function ln(Zt,ri=!1){return function(Mn,mi){return nn(co(Mn).getFullYear(),Zt,et(mi,$.MinusSign),ri)}}const He={};function $e(Zt,ri){Zt=Zt.replace(/:/g,"");const Mn=Date.parse("Jan 01, 1970 00:00:00 "+Zt)/6e4;return isNaN(Mn)?ri:Mn}function Qt(Zt){return Zt instanceof Date&&!isNaN(Zt.valueOf())}const Un=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Wi(Zt){const ri=parseInt(Zt);if(isNaN(ri))throw new Error("Invalid integer literal when parsing "+Zt);return ri}function _n(Zt,ri,Mn){return(0,e.dwT)(Zt,ri,Mn)}function st(Zt,ri){ri=encodeURIComponent(ri);for(const Mn of Zt.split(";")){const mi=Mn.indexOf("="),[Mo,pr]=-1==mi?[Mn,""]:[Mn.slice(0,mi),Mn.slice(mi+1)];if(Mo.trim()===ri)return decodeURIComponent(pr)}return null}const Dn=/\s+/,Wt=[];let kn=(()=>{class Zt{constructor(Mn,mi){this._ngEl=Mn,this._renderer=mi,this.initialClasses=Wt,this.stateMap=new Map}set klass(Mn){this.initialClasses=null!=Mn?Mn.trim().split(Dn):Wt}set ngClass(Mn){this.rawClass="string"==typeof Mn?Mn.trim().split(Dn):Mn}ngDoCheck(){for(const mi of this.initialClasses)this._updateState(mi,!0);const Mn=this.rawClass;if(Array.isArray(Mn)||Mn instanceof Set)for(const mi of Mn)this._updateState(mi,!0);else if(null!=Mn)for(const mi of Object.keys(Mn))this._updateState(mi,!!Mn[mi]);this._applyStateDiff()}_updateState(Mn,mi){const Mo=this.stateMap.get(Mn);void 0!==Mo?(Mo.enabled!==mi&&(Mo.changed=!0,Mo.enabled=mi),Mo.touched=!0):this.stateMap.set(Mn,{enabled:mi,changed:!0,touched:!0})}_applyStateDiff(){for(const Mn of this.stateMap){const mi=Mn[0],Mo=Mn[1];Mo.changed?(this._toggleClass(mi,Mo.enabled),Mo.changed=!1):Mo.touched||(Mo.enabled&&this._toggleClass(mi,!1),this.stateMap.delete(mi)),Mo.touched=!1}}_toggleClass(Mn,mi){(Mn=Mn.trim()).length>0&&Mn.split(Dn).forEach(Mo=>{mi?this._renderer.addClass(this._ngEl.nativeElement,Mo):this._renderer.removeClass(this._ngEl.nativeElement,Mo)})}static#e=this.\u0275fac=function(mi){return new(mi||Zt)(e.Y36(e.SBq),e.Y36(e.Qsj))};static#t=this.\u0275dir=e.lG2({type:Zt,selectors:[["","ngClass",""]],inputs:{klass:[e.lbL.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}return Zt})();class Fo{constructor(ri,Mn,mi,Mo){this.$implicit=ri,this.ngForOf=Mn,this.index=mi,this.count=Mo}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let At=(()=>{class Zt{set ngForOf(Mn){this._ngForOf=Mn,this._ngForOfDirty=!0}set ngForTrackBy(Mn){this._trackByFn=Mn}get ngForTrackBy(){return this._trackByFn}constructor(Mn,mi,Mo){this._viewContainer=Mn,this._template=mi,this._differs=Mo,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(Mn){Mn&&(this._template=Mn)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Mn=this._ngForOf;!this._differ&&Mn&&(this._differ=this._differs.find(Mn).create(this.ngForTrackBy))}if(this._differ){const Mn=this._differ.diff(this._ngForOf);Mn&&this._applyChanges(Mn)}}_applyChanges(Mn){const mi=this._viewContainer;Mn.forEachOperation((Mo,pr,Pr)=>{if(null==Mo.previousIndex)mi.createEmbeddedView(this._template,new Fo(Mo.item,this._ngForOf,-1,-1),null===Pr?void 0:Pr);else if(null==Pr)mi.remove(null===pr?void 0:pr);else if(null!==pr){const xa=mi.get(pr);mi.move(xa,Pr),Jn(xa,Mo)}});for(let Mo=0,pr=mi.length;Mo<pr;Mo++){const xa=mi.get(Mo).context;xa.index=Mo,xa.count=pr,xa.ngForOf=this._ngForOf}Mn.forEachIdentityChange(Mo=>{Jn(mi.get(Mo.currentIndex),Mo)})}static ngTemplateContextGuard(Mn,mi){return!0}static#e=this.\u0275fac=function(mi){return new(mi||Zt)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))};static#t=this.\u0275dir=e.lG2({type:Zt,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return Zt})();function Jn(Zt,ri){Zt.context.$implicit=ri.item}let Bi=(()=>{class Zt{constructor(Mn,mi){this._viewContainer=Mn,this._context=new $n,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=mi}set ngIf(Mn){this._context.$implicit=this._context.ngIf=Mn,this._updateView()}set ngIfThen(Mn){Ui("ngIfThen",Mn),this._thenTemplateRef=Mn,this._thenViewRef=null,this._updateView()}set ngIfElse(Mn){Ui("ngIfElse",Mn),this._elseTemplateRef=Mn,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(Mn,mi){return!0}static#e=this.\u0275fac=function(mi){return new(mi||Zt)(e.Y36(e.s_b),e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:Zt,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return Zt})();class $n{constructor(){this.$implicit=null,this.ngIf=null}}function Ui(Zt,ri){if(ri&&!ri.createEmbeddedView)throw new Error(`${Zt} must be a TemplateRef, but received '${(0,e.AaK)(ri)}'.`)}class bt{constructor(ri,Mn){this._viewContainerRef=ri,this._templateRef=Mn,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(ri){ri&&!this._created?this.create():!ri&&this._created&&this.destroy()}}let an=(()=>{class Zt{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Mn){this._ngSwitch=Mn,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Mn){this._defaultViews.push(Mn)}_matchCase(Mn){const mi=Mn===this._ngSwitch;return this._lastCasesMatched||=mi,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),mi}_updateDefaultCases(Mn){if(this._defaultViews.length>0&&Mn!==this._defaultUsed){this._defaultUsed=Mn;for(const mi of this._defaultViews)mi.enforceState(Mn)}}static#e=this.\u0275fac=function(mi){return new(mi||Zt)};static#t=this.\u0275dir=e.lG2({type:Zt,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return Zt})(),Wn=(()=>{class Zt{constructor(Mn,mi,Mo){this.ngSwitch=Mo,Mo._addCase(),this._view=new bt(Mn,mi)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(mi){return new(mi||Zt)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(an,9))};static#t=this.\u0275dir=e.lG2({type:Zt,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return Zt})(),qi=(()=>{class Zt{constructor(Mn,mi,Mo){this._ngEl=Mn,this._differs=mi,this._renderer=Mo,this._ngStyle=null,this._differ=null}set ngStyle(Mn){this._ngStyle=Mn,!this._differ&&Mn&&(this._differ=this._differs.find(Mn).create())}ngDoCheck(){if(this._differ){const Mn=this._differ.diff(this._ngStyle);Mn&&this._applyChanges(Mn)}}_setStyle(Mn,mi){const[Mo,pr]=Mn.split("."),Pr=-1===Mo.indexOf("-")?void 0:e.JOm.DashCase;null!=mi?this._renderer.setStyle(this._ngEl.nativeElement,Mo,pr?`${mi}${pr}`:mi,Pr):this._renderer.removeStyle(this._ngEl.nativeElement,Mo,Pr)}_applyChanges(Mn){Mn.forEachRemovedItem(mi=>this._setStyle(mi.key,null)),Mn.forEachAddedItem(mi=>this._setStyle(mi.key,mi.currentValue)),Mn.forEachChangedItem(mi=>this._setStyle(mi.key,mi.currentValue))}static#e=this.\u0275fac=function(mi){return new(mi||Zt)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))};static#t=this.\u0275dir=e.lG2({type:Zt,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return Zt})(),wi=(()=>{class Zt{constructor(Mn){this._viewContainerRef=Mn,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(Mn){if(this._shouldRecreateView(Mn)){const mi=this._viewContainerRef;if(this._viewRef&&mi.remove(mi.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const Mo=this._createContextForwardProxy();this._viewRef=mi.createEmbeddedView(this.ngTemplateOutlet,Mo,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(Mn){return!!Mn.ngTemplateOutlet||!!Mn.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(Mn,mi,Mo)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,mi,Mo),get:(Mn,mi,Mo)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,mi,Mo)}})}static#e=this.\u0275fac=function(mi){return new(mi||Zt)(e.Y36(e.s_b))};static#t=this.\u0275dir=e.lG2({type:Zt,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[e.TTD]})}return Zt})();function xi(Zt,ri){return new e.vHH(2100,!1)}class ki{createSubscription(ri,Mn){return(0,e.rg0)(()=>ri.subscribe({next:Mn,error:mi=>{throw mi}}))}dispose(ri){(0,e.rg0)(()=>ri.unsubscribe())}}class wo{createSubscription(ri,Mn){return ri.then(Mn,mi=>{throw mi})}dispose(ri){}}const Ei=new wo,ho=new ki;let Cr=(()=>{class Zt{constructor(Mn){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=Mn}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(Mn){return this._obj?Mn!==this._obj?(this._dispose(),this.transform(Mn)):this._latestValue:(Mn&&this._subscribe(Mn),this._latestValue)}_subscribe(Mn){this._obj=Mn,this._strategy=this._selectStrategy(Mn),this._subscription=this._strategy.createSubscription(Mn,mi=>this._updateLatestValue(Mn,mi))}_selectStrategy(Mn){if((0,e.QGY)(Mn))return Ei;if((0,e.F4k)(Mn))return ho;throw xi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Mn,mi){Mn===this._obj&&(this._latestValue=mi,this._ref.markForCheck())}static#e=this.\u0275fac=function(mi){return new(mi||Zt)(e.Y36(e.sBO,16))};static#t=this.\u0275pipe=e.Yjl({name:"async",type:Zt,pure:!1,standalone:!0})}return Zt})();const Cs=new e.OlP(""),ms=new e.OlP("");let ja=(()=>{class Zt{constructor(Mn,mi,Mo){this.locale=Mn,this.defaultTimezone=mi,this.defaultOptions=Mo}transform(Mn,mi,Mo,pr){if(null==Mn||""===Mn||Mn!=Mn)return null;try{return ni(Mn,mi??this.defaultOptions?.dateFormat??"mediumDate",pr||this.locale,Mo??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Pr){throw xi()}}static#e=this.\u0275fac=function(mi){return new(mi||Zt)(e.Y36(e.soG,16),e.Y36(Cs,24),e.Y36(ms,24))};static#t=this.\u0275pipe=e.Yjl({name:"date",type:Zt,pure:!0,standalone:!0})}return Zt})(),Fa=(()=>{class Zt{transform(Mn){return JSON.stringify(Mn,null,2)}static#e=this.\u0275fac=function(mi){return new(mi||Zt)};static#t=this.\u0275pipe=e.Yjl({name:"json",type:Zt,pure:!1,standalone:!0})}return Zt})(),dl=(()=>{class Zt{constructor(Mn){this.differs=Mn,this.keyValues=[],this.compareFn=ka}transform(Mn,mi=ka){if(!Mn||!(Mn instanceof Map)&&"object"!=typeof Mn)return null;this.differ??=this.differs.find(Mn).create();const Mo=this.differ.diff(Mn),pr=mi!==this.compareFn;return Mo&&(this.keyValues=[],Mo.forEachItem(Pr=>{this.keyValues.push(function Ds(Zt,ri){return{key:Zt,value:ri}}(Pr.key,Pr.currentValue))})),(Mo||pr)&&(this.keyValues.sort(mi),this.compareFn=mi),this.keyValues}static#e=this.\u0275fac=function(mi){return new(mi||Zt)(e.Y36(e.aQg,16))};static#t=this.\u0275pipe=e.Yjl({name:"keyvalue",type:Zt,pure:!1,standalone:!0})}return Zt})();function ka(Zt,ri){const Mn=Zt.key,mi=ri.key;if(Mn===mi)return 0;if(void 0===Mn)return 1;if(void 0===mi)return-1;if(null===Mn)return 1;if(null===mi)return-1;if("string"==typeof Mn&&"string"==typeof mi)return Mn<mi?-1:1;if("number"==typeof Mn&&"number"==typeof mi)return Mn-mi;if("boolean"==typeof Mn&&"boolean"==typeof mi)return Mn<mi?-1:1;const Mo=String(Mn),pr=String(mi);return Mo==pr?0:Mo<pr?-1:1}let hs=(()=>{class Zt{constructor(Mn){this._locale=Mn}transform(Mn,mi,Mo){if(!function Qi(Zt){return!(null==Zt||""===Zt||Zt!=Zt)}(Mn))return null;Mo||=this._locale;try{return function Ji(Zt,ri,Mn){return function Hn(Zt,ri,Mn,mi,Mo,pr,Pr=!1){let xa="",tl=!1;if(isFinite(Zt)){let Ls=function Kn(Zt){let mi,Mo,pr,Pr,xa,ri=Math.abs(Zt)+"",Mn=0;for((Mo=ri.indexOf("."))>-1&&(ri=ri.replace(".","")),(pr=ri.search(/e/i))>0?(Mo<0&&(Mo=pr),Mo+=+ri.slice(pr+1),ri=ri.substring(0,pr)):Mo<0&&(Mo=ri.length),pr=0;"0"===ri.charAt(pr);pr++);if(pr===(xa=ri.length))mi=[0],Mo=1;else{for(xa--;"0"===ri.charAt(xa);)xa--;for(Mo-=pr,mi=[],Pr=0;pr<=xa;pr++,Pr++)mi[Pr]=Number(ri.charAt(pr))}return Mo>22&&(mi=mi.splice(0,21),Mn=Mo-1,Mo=1),{digits:mi,exponent:Mn,integerLen:Mo}}(Zt);Pr&&(Ls=function po(Zt){if(0===Zt.digits[0])return Zt;const ri=Zt.digits.length-Zt.integerLen;return Zt.exponent?Zt.exponent+=2:(0===ri?Zt.digits.push(0,0):1===ri&&Zt.digits.push(0),Zt.integerLen+=2),Zt}(Ls));let Ts=ri.minInt,_s=ri.minFrac,ul=ri.maxFrac;if(pr){const or=pr.match(Un);if(null===or)throw new Error(`${pr} is not a valid digit info`);const Ki=or[1],Ao=or[3],Go=or[5];null!=Ki&&(Ts=Wi(Ki)),null!=Ao&&(_s=Wi(Ao)),null!=Go?ul=Wi(Go):null!=Ao&&_s>ul&&(ul=_s)}!function Vn(Zt,ri,Mn){if(ri>Mn)throw new Error(`The minimum number of digits after fraction (${ri}) is higher than the maximum (${Mn}).`);let mi=Zt.digits,Mo=mi.length-Zt.integerLen;const pr=Math.min(Math.max(ri,Mo),Mn);let Pr=pr+Zt.integerLen,xa=mi[Pr];if(Pr>0){mi.splice(Math.max(Zt.integerLen,Pr));for(let _s=Pr;_s<mi.length;_s++)mi[_s]=0}else{Mo=Math.max(0,Mo),Zt.integerLen=1,mi.length=Math.max(1,Pr=pr+1),mi[0]=0;for(let _s=1;_s<Pr;_s++)mi[_s]=0}if(xa>=5)if(Pr-1<0){for(let _s=0;_s>Pr;_s--)mi.unshift(0),Zt.integerLen++;mi.unshift(1),Zt.integerLen++}else mi[Pr-1]++;for(;Mo<Math.max(0,pr);Mo++)mi.push(0);let tl=0!==pr;const Ls=ri+Zt.integerLen,Ts=mi.reduceRight(function(_s,ul,qs,Ks){return Ks[qs]=(ul+=_s)<10?ul:ul-10,tl&&(0===Ks[qs]&&qs>=Ls?Ks.pop():tl=!1),ul>=10?1:0},0);Ts&&(mi.unshift(Ts),Zt.integerLen++)}(Ls,_s,ul);let qs=Ls.digits,Ks=Ls.integerLen;const pl=Ls.exponent;let nc=[];for(tl=qs.every(or=>!or);Ks<Ts;Ks++)qs.unshift(0);for(;Ks<0;Ks++)qs.unshift(0);Ks>0?nc=qs.splice(Ks,qs.length):(nc=qs,qs=[0]);const Mi=[];for(qs.length>=ri.lgSize&&Mi.unshift(qs.splice(-ri.lgSize,qs.length).join(""));qs.length>ri.gSize;)Mi.unshift(qs.splice(-ri.gSize,qs.length).join(""));qs.length&&Mi.unshift(qs.join("")),xa=Mi.join(et(Mn,mi)),nc.length&&(xa+=et(Mn,Mo)+nc.join("")),pl&&(xa+=et(Mn,$.Exponential)+"+"+pl)}else xa=et(Mn,$.Infinity);return xa=Zt<0&&!tl?ri.negPre+xa+ri.negSuf:ri.posPre+xa+ri.posSuf,xa}(Zt,function wn(Zt,ri="-"){const Mn={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},mi=Zt.split(";"),Mo=mi[0],pr=mi[1],Pr=-1!==Mo.indexOf(".")?Mo.split("."):[Mo.substring(0,Mo.lastIndexOf("0")+1),Mo.substring(Mo.lastIndexOf("0")+1)],xa=Pr[0],tl=Pr[1]||"";Mn.posPre=xa.substring(0,xa.indexOf("#"));for(let Ts=0;Ts<tl.length;Ts++){const _s=tl.charAt(Ts);"0"===_s?Mn.minFrac=Mn.maxFrac=Ts+1:"#"===_s?Mn.maxFrac=Ts+1:Mn.posSuf+=_s}const Ls=xa.split(",");if(Mn.gSize=Ls[1]?Ls[1].length:0,Mn.lgSize=Ls[2]||Ls[1]?(Ls[2]||Ls[1]).length:0,pr){const Ts=Mo.length-Mn.posPre.length-Mn.posSuf.length,_s=pr.indexOf("#");Mn.negPre=pr.substring(0,_s).replace(/'/g,""),Mn.negSuf=pr.slice(_s+Ts).replace(/'/g,"")}else Mn.negPre=ri+Mn.posPre,Mn.negSuf=Mn.posSuf;return Mn}(function Et(Zt,ri){return(0,e.cg1)(Zt)[e.wAp.NumberFormats][ri]}(ri,j.Decimal),et(ri,$.MinusSign)),ri,$.Group,$.Decimal,Mn)}(function To(Zt){if("string"==typeof Zt&&!isNaN(Number(Zt)-parseFloat(Zt)))return Number(Zt);if("number"!=typeof Zt)throw new Error(`${Zt} is not a number`);return Zt}(Mn),Mo,mi)}catch(pr){throw xi()}}static#e=this.\u0275fac=function(mi){return new(mi||Zt)(e.Y36(e.soG,16))};static#t=this.\u0275pipe=e.Yjl({name:"number",type:Zt,pure:!0,standalone:!0})}return Zt})();let Vi=(()=>{class Zt{static#e=this.\u0275fac=function(mi){return new(mi||Zt)};static#t=this.\u0275mod=e.oAB({type:Zt});static#n=this.\u0275inj=e.cJS({})}return Zt})();const Ti="browser",Hi="server";function yr(Zt){return Zt===Ti}function Vr(Zt){return Zt===Hi}let Wa=(()=>{class Zt{static#e=this.\u0275prov=(0,e.Yz7)({token:Zt,providedIn:"root",factory:()=>yr((0,e.f3M)(e.Lbi))?new Yi((0,e.f3M)(t),window):new Cn})}return Zt})();class Yi{constructor(ri,Mn){this.document=ri,this.window=Mn,this.offset=()=>[0,0]}setOffset(ri){this.offset=Array.isArray(ri)?()=>ri:ri}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(ri){this.window.scrollTo(ri[0],ri[1])}scrollToAnchor(ri){const Mn=function jo(Zt,ri){const Mn=Zt.getElementById(ri)||Zt.getElementsByName(ri)[0];if(Mn)return Mn;if("function"==typeof Zt.createTreeWalker&&Zt.body&&"function"==typeof Zt.body.attachShadow){const mi=Zt.createTreeWalker(Zt.body,NodeFilter.SHOW_ELEMENT);let Mo=mi.currentNode;for(;Mo;){const pr=Mo.shadowRoot;if(pr){const Pr=pr.getElementById(ri)||pr.querySelector(`[name="${ri}"]`);if(Pr)return Pr}Mo=mi.nextNode()}}return null}(this.document,ri);Mn&&(this.scrollToElement(Mn),Mn.focus())}setHistoryScrollRestoration(ri){this.window.history.scrollRestoration=ri}scrollToElement(ri){const Mn=ri.getBoundingClientRect(),mi=Mn.left+this.window.pageXOffset,Mo=Mn.top+this.window.pageYOffset,pr=this.offset();this.window.scrollTo(mi-pr[0],Mo-pr[1])}}class Cn{setOffset(ri){}getScrollPosition(){return[0,0]}scrollToPosition(ri){}scrollToAnchor(ri){}setHistoryScrollRestoration(ri){}}class uo{}},69862:(gt,X,a)=>{"use strict";a.d(X,{JF:()=>li,TP:()=>ve,UA:()=>Te,WM:()=>I,dt:()=>Ke,eN:()=>Ue}),a(15861);var n=a(19212),s=a(49193),l=a(54699),i=a(5253),t=a(59724),p=a(97734),c=a(96124),o=a(11541),x=a(75222),u=a(96814);class m{}class b{}class I{constructor(st){this.normalizedNames=new Map,this.lazyUpdate=null,st?"string"==typeof st?this.lazyInit=()=>{this.headers=new Map,st.split("\n").forEach(Dn=>{const Wt=Dn.indexOf(":");if(Wt>0){const kn=Dn.slice(0,Wt),Fi=kn.toLowerCase(),ui=Dn.slice(Wt+1).trim();this.maybeSetNormalizedName(kn,Fi),this.headers.has(Fi)?this.headers.get(Fi).push(ui):this.headers.set(Fi,[ui])}})}:typeof Headers<"u"&&st instanceof Headers?(this.headers=new Map,st.forEach((Dn,Wt)=>{this.setHeaderEntries(Wt,Dn)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(st).forEach(([Dn,Wt])=>{this.setHeaderEntries(Dn,Wt)})}:this.headers=new Map}has(st){return this.init(),this.headers.has(st.toLowerCase())}get(st){this.init();const Dn=this.headers.get(st.toLowerCase());return Dn&&Dn.length>0?Dn[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(st){return this.init(),this.headers.get(st.toLowerCase())||null}append(st,Dn){return this.clone({name:st,value:Dn,op:"a"})}set(st,Dn){return this.clone({name:st,value:Dn,op:"s"})}delete(st,Dn){return this.clone({name:st,value:Dn,op:"d"})}maybeSetNormalizedName(st,Dn){this.normalizedNames.has(Dn)||this.normalizedNames.set(Dn,st)}init(){this.lazyInit&&(this.lazyInit instanceof I?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(st=>this.applyUpdate(st)),this.lazyUpdate=null))}copyFrom(st){st.init(),Array.from(st.headers.keys()).forEach(Dn=>{this.headers.set(Dn,st.headers.get(Dn)),this.normalizedNames.set(Dn,st.normalizedNames.get(Dn))})}clone(st){const Dn=new I;return Dn.lazyInit=this.lazyInit&&this.lazyInit instanceof I?this.lazyInit:this,Dn.lazyUpdate=(this.lazyUpdate||[]).concat([st]),Dn}applyUpdate(st){const Dn=st.name.toLowerCase();switch(st.op){case"a":case"s":let Wt=st.value;if("string"==typeof Wt&&(Wt=[Wt]),0===Wt.length)return;this.maybeSetNormalizedName(st.name,Dn);const kn=("a"===st.op?this.headers.get(Dn):void 0)||[];kn.push(...Wt),this.headers.set(Dn,kn);break;case"d":const Fi=st.value;if(Fi){let ui=this.headers.get(Dn);if(!ui)return;ui=ui.filter(Fo=>-1===Fi.indexOf(Fo)),0===ui.length?(this.headers.delete(Dn),this.normalizedNames.delete(Dn)):this.headers.set(Dn,ui)}else this.headers.delete(Dn),this.normalizedNames.delete(Dn)}}setHeaderEntries(st,Dn){const Wt=(Array.isArray(Dn)?Dn:[Dn]).map(Fi=>Fi.toString()),kn=st.toLowerCase();this.headers.set(kn,Wt),this.maybeSetNormalizedName(st,kn)}forEach(st){this.init(),Array.from(this.normalizedNames.keys()).forEach(Dn=>st(this.normalizedNames.get(Dn),this.headers.get(Dn)))}}class O{encodeKey(st){return ae(st)}encodeValue(st){return ae(st)}decodeKey(st){return decodeURIComponent(st)}decodeValue(st){return decodeURIComponent(st)}}const G=/%(\d[a-f0-9])/gi,B={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ae(_n){return encodeURIComponent(_n).replace(G,(st,Dn)=>B[Dn]??st)}function J(_n){return`${_n}`}class q{constructor(st={}){if(this.updates=null,this.cloneFrom=null,this.encoder=st.encoder||new O,st.fromString){if(st.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function P(_n,st){const Dn=new Map;return _n.length>0&&_n.replace(/^\?/,"").split("&").forEach(kn=>{const Fi=kn.indexOf("="),[ui,Fo]=-1==Fi?[st.decodeKey(kn),""]:[st.decodeKey(kn.slice(0,Fi)),st.decodeValue(kn.slice(Fi+1))],At=Dn.get(ui)||[];At.push(Fo),Dn.set(ui,At)}),Dn}(st.fromString,this.encoder)}else st.fromObject?(this.map=new Map,Object.keys(st.fromObject).forEach(Dn=>{const Wt=st.fromObject[Dn],kn=Array.isArray(Wt)?Wt.map(J):[J(Wt)];this.map.set(Dn,kn)})):this.map=null}has(st){return this.init(),this.map.has(st)}get(st){this.init();const Dn=this.map.get(st);return Dn?Dn[0]:null}getAll(st){return this.init(),this.map.get(st)||null}keys(){return this.init(),Array.from(this.map.keys())}append(st,Dn){return this.clone({param:st,value:Dn,op:"a"})}appendAll(st){const Dn=[];return Object.keys(st).forEach(Wt=>{const kn=st[Wt];Array.isArray(kn)?kn.forEach(Fi=>{Dn.push({param:Wt,value:Fi,op:"a"})}):Dn.push({param:Wt,value:kn,op:"a"})}),this.clone(Dn)}set(st,Dn){return this.clone({param:st,value:Dn,op:"s"})}delete(st,Dn){return this.clone({param:st,value:Dn,op:"d"})}toString(){return this.init(),this.keys().map(st=>{const Dn=this.encoder.encodeKey(st);return this.map.get(st).map(Wt=>Dn+"="+this.encoder.encodeValue(Wt)).join("&")}).filter(st=>""!==st).join("&")}clone(st){const Dn=new q({encoder:this.encoder});return Dn.cloneFrom=this.cloneFrom||this,Dn.updates=(this.updates||[]).concat(st),Dn}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(st=>this.map.set(st,this.cloneFrom.map.get(st))),this.updates.forEach(st=>{switch(st.op){case"a":case"s":const Dn=("a"===st.op?this.map.get(st.param):void 0)||[];Dn.push(J(st.value)),this.map.set(st.param,Dn);break;case"d":if(void 0===st.value){this.map.delete(st.param);break}{let Wt=this.map.get(st.param)||[];const kn=Wt.indexOf(J(st.value));-1!==kn&&Wt.splice(kn,1),Wt.length>0?this.map.set(st.param,Wt):this.map.delete(st.param)}}}),this.cloneFrom=this.updates=null)}}class Y{constructor(){this.map=new Map}set(st,Dn){return this.map.set(st,Dn),this}get(st){return this.map.has(st)||this.map.set(st,st.defaultValue()),this.map.get(st)}delete(st){return this.map.delete(st),this}has(st){return this.map.has(st)}keys(){return this.map.keys()}}function ne(_n){return typeof ArrayBuffer<"u"&&_n instanceof ArrayBuffer}function ee(_n){return typeof Blob<"u"&&_n instanceof Blob}function $(_n){return typeof FormData<"u"&&_n instanceof FormData}class ge{constructor(st,Dn,Wt,kn){let Fi;if(this.url=Dn,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=st.toUpperCase(),function K(_n){switch(_n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||kn?(this.body=void 0!==Wt?Wt:null,Fi=kn):Fi=Wt,Fi&&(this.reportProgress=!!Fi.reportProgress,this.withCredentials=!!Fi.withCredentials,Fi.responseType&&(this.responseType=Fi.responseType),Fi.headers&&(this.headers=Fi.headers),Fi.context&&(this.context=Fi.context),Fi.params&&(this.params=Fi.params),this.transferCache=Fi.transferCache),this.headers??=new I,this.context??=new Y,this.params){const ui=this.params.toString();if(0===ui.length)this.urlWithParams=Dn;else{const Fo=Dn.indexOf("?");this.urlWithParams=Dn+(-1===Fo?"?":Fo<Dn.length-1?"&":"")+ui}}else this.params=new q,this.urlWithParams=Dn}serializeBody(){return null===this.body?null:ne(this.body)||ee(this.body)||$(this.body)||function ue(_n){return typeof URLSearchParams<"u"&&_n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof q?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||$(this.body)?null:ee(this.body)?this.body.type||null:ne(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof q?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(st={}){const Dn=st.method||this.method,Wt=st.url||this.url,kn=st.responseType||this.responseType,Fi=void 0!==st.body?st.body:this.body,ui=void 0!==st.withCredentials?st.withCredentials:this.withCredentials,Fo=void 0!==st.reportProgress?st.reportProgress:this.reportProgress;let At=st.headers||this.headers,Jn=st.params||this.params;const Bn=st.context??this.context;return void 0!==st.setHeaders&&(At=Object.keys(st.setHeaders).reduce((Bi,$n)=>Bi.set($n,st.setHeaders[$n]),At)),st.setParams&&(Jn=Object.keys(st.setParams).reduce((Bi,$n)=>Bi.set($n,st.setParams[$n]),Jn)),new ge(Dn,Wt,Fi,{params:Jn,headers:At,context:Bn,reportProgress:Fo,responseType:kn,withCredentials:ui})}}var Ke=function(_n){return _n[_n.Sent=0]="Sent",_n[_n.UploadProgress=1]="UploadProgress",_n[_n.ResponseHeader=2]="ResponseHeader",_n[_n.DownloadProgress=3]="DownloadProgress",_n[_n.Response=4]="Response",_n[_n.User=5]="User",_n}(Ke||{});class at{constructor(st,Dn=me.Ok,Wt="OK"){this.headers=st.headers||new I,this.status=void 0!==st.status?st.status:Dn,this.statusText=st.statusText||Wt,this.url=st.url||null,this.ok=this.status>=200&&this.status<300}}class Le extends at{constructor(st={}){super(st),this.type=Ke.ResponseHeader}clone(st={}){return new Le({headers:st.headers||this.headers,status:void 0!==st.status?st.status:this.status,statusText:st.statusText||this.statusText,url:st.url||this.url||void 0})}}class R extends at{constructor(st={}){super(st),this.type=Ke.Response,this.body=void 0!==st.body?st.body:null}clone(st={}){return new R({body:void 0!==st.body?st.body:this.body,headers:st.headers||this.headers,status:void 0!==st.status?st.status:this.status,statusText:st.statusText||this.statusText,url:st.url||this.url||void 0})}}class Te extends at{constructor(st){super(st,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${st.url||"(unknown url)"}`:`Http failure response for ${st.url||"(unknown url)"}: ${st.status} ${st.statusText}`,this.error=st.error||null}}var me=function(_n){return _n[_n.Continue=100]="Continue",_n[_n.SwitchingProtocols=101]="SwitchingProtocols",_n[_n.Processing=102]="Processing",_n[_n.EarlyHints=103]="EarlyHints",_n[_n.Ok=200]="Ok",_n[_n.Created=201]="Created",_n[_n.Accepted=202]="Accepted",_n[_n.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",_n[_n.NoContent=204]="NoContent",_n[_n.ResetContent=205]="ResetContent",_n[_n.PartialContent=206]="PartialContent",_n[_n.MultiStatus=207]="MultiStatus",_n[_n.AlreadyReported=208]="AlreadyReported",_n[_n.ImUsed=226]="ImUsed",_n[_n.MultipleChoices=300]="MultipleChoices",_n[_n.MovedPermanently=301]="MovedPermanently",_n[_n.Found=302]="Found",_n[_n.SeeOther=303]="SeeOther",_n[_n.NotModified=304]="NotModified",_n[_n.UseProxy=305]="UseProxy",_n[_n.Unused=306]="Unused",_n[_n.TemporaryRedirect=307]="TemporaryRedirect",_n[_n.PermanentRedirect=308]="PermanentRedirect",_n[_n.BadRequest=400]="BadRequest",_n[_n.Unauthorized=401]="Unauthorized",_n[_n.PaymentRequired=402]="PaymentRequired",_n[_n.Forbidden=403]="Forbidden",_n[_n.NotFound=404]="NotFound",_n[_n.MethodNotAllowed=405]="MethodNotAllowed",_n[_n.NotAcceptable=406]="NotAcceptable",_n[_n.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",_n[_n.RequestTimeout=408]="RequestTimeout",_n[_n.Conflict=409]="Conflict",_n[_n.Gone=410]="Gone",_n[_n.LengthRequired=411]="LengthRequired",_n[_n.PreconditionFailed=412]="PreconditionFailed",_n[_n.PayloadTooLarge=413]="PayloadTooLarge",_n[_n.UriTooLong=414]="UriTooLong",_n[_n.UnsupportedMediaType=415]="UnsupportedMediaType",_n[_n.RangeNotSatisfiable=416]="RangeNotSatisfiable",_n[_n.ExpectationFailed=417]="ExpectationFailed",_n[_n.ImATeapot=418]="ImATeapot",_n[_n.MisdirectedRequest=421]="MisdirectedRequest",_n[_n.UnprocessableEntity=422]="UnprocessableEntity",_n[_n.Locked=423]="Locked",_n[_n.FailedDependency=424]="FailedDependency",_n[_n.TooEarly=425]="TooEarly",_n[_n.UpgradeRequired=426]="UpgradeRequired",_n[_n.PreconditionRequired=428]="PreconditionRequired",_n[_n.TooManyRequests=429]="TooManyRequests",_n[_n.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",_n[_n.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",_n[_n.InternalServerError=500]="InternalServerError",_n[_n.NotImplemented=501]="NotImplemented",_n[_n.BadGateway=502]="BadGateway",_n[_n.ServiceUnavailable=503]="ServiceUnavailable",_n[_n.GatewayTimeout=504]="GatewayTimeout",_n[_n.HttpVersionNotSupported=505]="HttpVersionNotSupported",_n[_n.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",_n[_n.InsufficientStorage=507]="InsufficientStorage",_n[_n.LoopDetected=508]="LoopDetected",_n[_n.NotExtended=510]="NotExtended",_n[_n.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",_n}(me||{});function Se(_n,st){return{body:st,headers:_n.headers,context:_n.context,observe:_n.observe,params:_n.params,reportProgress:_n.reportProgress,responseType:_n.responseType,withCredentials:_n.withCredentials,transferCache:_n.transferCache}}let Ue=(()=>{class _n{constructor(Dn){this.handler=Dn}request(Dn,Wt,kn={}){let Fi;if(Dn instanceof ge)Fi=Dn;else{let At,Jn;At=kn.headers instanceof I?kn.headers:new I(kn.headers),kn.params&&(Jn=kn.params instanceof q?kn.params:new q({fromObject:kn.params})),Fi=new ge(Dn,Wt,void 0!==kn.body?kn.body:null,{headers:At,context:kn.context,params:Jn,reportProgress:kn.reportProgress,responseType:kn.responseType||"json",withCredentials:kn.withCredentials,transferCache:kn.transferCache})}const ui=(0,s.of)(Fi).pipe((0,t.b)(At=>this.handler.handle(At)));if(Dn instanceof ge||"events"===kn.observe)return ui;const Fo=ui.pipe((0,p.h)(At=>At instanceof R));switch(kn.observe||"body"){case"body":switch(Fi.responseType){case"arraybuffer":return Fo.pipe((0,c.U)(At=>{if(null!==At.body&&!(At.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return At.body}));case"blob":return Fo.pipe((0,c.U)(At=>{if(null!==At.body&&!(At.body instanceof Blob))throw new Error("Response is not a Blob.");return At.body}));case"text":return Fo.pipe((0,c.U)(At=>{if(null!==At.body&&"string"!=typeof At.body)throw new Error("Response is not a string.");return At.body}));default:return Fo.pipe((0,c.U)(At=>At.body))}case"response":return Fo;default:throw new Error(`Unreachable: unhandled observe type ${kn.observe}}`)}}delete(Dn,Wt={}){return this.request("DELETE",Dn,Wt)}get(Dn,Wt={}){return this.request("GET",Dn,Wt)}head(Dn,Wt={}){return this.request("HEAD",Dn,Wt)}jsonp(Dn,Wt){return this.request("JSONP",Dn,{params:(new q).append(Wt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Dn,Wt={}){return this.request("OPTIONS",Dn,Wt)}patch(Dn,Wt,kn={}){return this.request("PATCH",Dn,Se(kn,Wt))}post(Dn,Wt,kn={}){return this.request("POST",Dn,Se(kn,Wt))}put(Dn,Wt,kn={}){return this.request("PUT",Dn,Se(kn,Wt))}static#e=this.\u0275fac=function(Wt){return new(Wt||_n)(n.LFG(m))};static#t=this.\u0275prov=n.Yz7({token:_n,factory:_n.\u0275fac})}return _n})();function Pt(_n,st){return st(_n)}function Oe(_n,st){return(Dn,Wt)=>st.intercept(Dn,{handle:kn=>_n(kn,Wt)})}const ve=new n.OlP(""),ft=new n.OlP(""),Dt=new n.OlP(""),Rn=new n.OlP("");function ti(){let _n=null;return(st,Dn)=>{null===_n&&(_n=((0,n.f3M)(ve,{optional:!0})??[]).reduceRight(Oe,Pt));const Wt=(0,n.f3M)(n.I6F),kn=Wt.add();return _n(st,Dn).pipe((0,o.x)(()=>Wt.remove(kn)))}}let dt=(()=>{class _n extends m{constructor(Dn,Wt){super(),this.backend=Dn,this.injector=Wt,this.chain=null,this.pendingTasks=(0,n.f3M)(n.I6F);const kn=(0,n.f3M)(Rn,{optional:!0});this.backend=kn??Dn}handle(Dn){if(null===this.chain){const kn=Array.from(new Set([...this.injector.get(ft),...this.injector.get(Dt,[])]));this.chain=kn.reduceRight((Fi,ui)=>function ye(_n,st,Dn){return(Wt,kn)=>(0,n.r_H)(Dn,()=>st(Wt,Fi=>_n(Fi,kn)))}(Fi,ui,this.injector),Pt)}const Wt=this.pendingTasks.add();return this.chain(Dn,kn=>this.backend.handle(kn)).pipe((0,o.x)(()=>this.pendingTasks.remove(Wt)))}static#e=this.\u0275fac=function(Wt){return new(Wt||_n)(n.LFG(b),n.LFG(n.lqb))};static#t=this.\u0275prov=n.Yz7({token:_n,factory:_n.\u0275fac})}return _n})();const ii=/^\)\]\}',?\n/;let no=(()=>{class _n{constructor(Dn){this.xhrFactory=Dn}handle(Dn){if("JSONP"===Dn.method)throw new n.vHH(-2800,!1);const Wt=this.xhrFactory;return(Wt.\u0275loadImpl?(0,i.D)(Wt.\u0275loadImpl()):(0,s.of)(null)).pipe((0,x.w)(()=>new l.y(Fi=>{const ui=Wt.build();if(ui.open(Dn.method,Dn.urlWithParams),Dn.withCredentials&&(ui.withCredentials=!0),Dn.headers.forEach((bt,an)=>ui.setRequestHeader(bt,an.join(","))),Dn.headers.has("Accept")||ui.setRequestHeader("Accept","application/json, text/plain, */*"),!Dn.headers.has("Content-Type")){const bt=Dn.detectContentTypeHeader();null!==bt&&ui.setRequestHeader("Content-Type",bt)}if(Dn.responseType){const bt=Dn.responseType.toLowerCase();ui.responseType="json"!==bt?bt:"text"}const Fo=Dn.serializeBody();let At=null;const Jn=()=>{if(null!==At)return At;const bt=ui.statusText||"OK",an=new I(ui.getAllResponseHeaders()),Wn=function Oo(_n){return"responseURL"in _n&&_n.responseURL?_n.responseURL:/^X-Request-URL:/m.test(_n.getAllResponseHeaders())?_n.getResponseHeader("X-Request-URL"):null}(ui)||Dn.url;return At=new Le({headers:an,status:ui.status,statusText:bt,url:Wn}),At},Bn=()=>{let{headers:bt,status:an,statusText:Wn,url:eo}=Jn(),_r=null;an!==me.NoContent&&(_r=typeof ui.response>"u"?ui.responseText:ui.response),0===an&&(an=_r?me.Ok:0);let hr=an>=200&&an<300;if("json"===Dn.responseType&&"string"==typeof _r){const In=_r;_r=_r.replace(ii,"");try{_r=""!==_r?JSON.parse(_r):null}catch(Wr){_r=In,hr&&(hr=!1,_r={error:Wr,text:_r})}}hr?(Fi.next(new R({body:_r,headers:bt,status:an,statusText:Wn,url:eo||void 0})),Fi.complete()):Fi.error(new Te({error:_r,headers:bt,status:an,statusText:Wn,url:eo||void 0}))},Bi=bt=>{const{url:an}=Jn(),Wn=new Te({error:bt,status:ui.status||0,statusText:ui.statusText||"Unknown Error",url:an||void 0});Fi.error(Wn)};let $n=!1;const Ui=bt=>{$n||(Fi.next(Jn()),$n=!0);let an={type:Ke.DownloadProgress,loaded:bt.loaded};bt.lengthComputable&&(an.total=bt.total),"text"===Dn.responseType&&ui.responseText&&(an.partialText=ui.responseText),Fi.next(an)},Xo=bt=>{let an={type:Ke.UploadProgress,loaded:bt.loaded};bt.lengthComputable&&(an.total=bt.total),Fi.next(an)};return ui.addEventListener("load",Bn),ui.addEventListener("error",Bi),ui.addEventListener("timeout",Bi),ui.addEventListener("abort",Bi),Dn.reportProgress&&(ui.addEventListener("progress",Ui),null!==Fo&&ui.upload&&ui.upload.addEventListener("progress",Xo)),ui.send(Fo),Fi.next({type:Ke.Sent}),()=>{ui.removeEventListener("error",Bi),ui.removeEventListener("abort",Bi),ui.removeEventListener("load",Bn),ui.removeEventListener("timeout",Bi),Dn.reportProgress&&(ui.removeEventListener("progress",Ui),null!==Fo&&ui.upload&&ui.upload.removeEventListener("progress",Xo)),ui.readyState!==ui.DONE&&ui.abort()}})))}static#e=this.\u0275fac=function(Wt){return new(Wt||_n)(n.LFG(u.JF))};static#t=this.\u0275prov=n.Yz7({token:_n,factory:_n.\u0275fac})}return _n})();const Li=new n.OlP(""),Ii=new n.OlP("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),En=new n.OlP("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class co{}let yn=(()=>{class _n{constructor(Dn,Wt,kn){this.doc=Dn,this.platform=Wt,this.cookieName=kn,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Dn=this.doc.cookie||"";return Dn!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,u.Mx)(Dn,this.cookieName),this.lastCookieString=Dn),this.lastToken}static#e=this.\u0275fac=function(Wt){return new(Wt||_n)(n.LFG(u.K0),n.LFG(n.Lbi),n.LFG(Ii))};static#t=this.\u0275prov=n.Yz7({token:_n,factory:_n.\u0275fac})}return _n})();function ln(_n,st){const Dn=_n.url.toLowerCase();if(!(0,n.f3M)(Li)||"GET"===_n.method||"HEAD"===_n.method||Dn.startsWith("http://")||Dn.startsWith("https://"))return st(_n);const Wt=(0,n.f3M)(co).getToken(),kn=(0,n.f3M)(En);return null!=Wt&&!_n.headers.has(kn)&&(_n=_n.clone({headers:_n.headers.set(kn,Wt)})),st(_n)}var rt=function(_n){return _n[_n.Interceptors=0]="Interceptors",_n[_n.LegacyInterceptors=1]="LegacyInterceptors",_n[_n.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",_n[_n.NoXsrfProtection=3]="NoXsrfProtection",_n[_n.JsonpSupport=4]="JsonpSupport",_n[_n.RequestsMadeViaParent=5]="RequestsMadeViaParent",_n[_n.Fetch=6]="Fetch",_n}(rt||{});function Ve(..._n){const st=[Ue,no,dt,{provide:m,useExisting:dt},{provide:b,useExisting:no},{provide:ft,useValue:ln,multi:!0},{provide:Li,useValue:!0},{provide:co,useClass:yn}];for(const Dn of _n)st.push(...Dn.\u0275providers);return(0,n.MR2)(st)}const tt=new n.OlP("");function ht(){return function $e(_n,st){return{\u0275kind:_n,\u0275providers:st}}(rt.LegacyInterceptors,[{provide:tt,useFactory:ti},{provide:ft,useExisting:tt,multi:!0}])}let li=(()=>{class _n{static#e=this.\u0275fac=function(Wt){return new(Wt||_n)};static#t=this.\u0275mod=n.oAB({type:_n});static#n=this.\u0275inj=n.cJS({providers:[Ve(ht())]})}return _n})()},33247:(gt,X,a)=>{"use strict";a.d(X,{Z:()=>s});const e=void 0,s=["de",[["AM","PM"],e,e],e,[["S","M","D","M","D","F","S"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["S","M","D","M","D","F","S"],["So","Mo","Di","Mi","Do","Fr","Sa"],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan.","Feb.","M\xe4rz","Apr.","Mai","Juni","Juli","Aug.","Sept.","Okt.","Nov.","Dez."],["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["v. Chr.","n. Chr."],e,e],1,[6,0],["dd.MM.yy","dd.MM.y","d. MMMM y","EEEE, d. MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",e,"{1} 'um' {0}",e],[",",".",";","%","+","-","E","\xb7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","Euro",{ATS:["\xf6S"],AUD:["AU$","$"],BGM:["BGK"],BGO:["BGJ"],BYN:[e,"\u0440."],CUC:[e,"Cub$"],DEM:["DM"],FKP:[e,"Fl\xa3"],GHS:[e,"\u20b5"],GNF:[e,"F.G."],KMF:[e,"FC"],PHP:[e,"\u20b1"],RON:[e,"L"],RUR:[e,"\u0440."],RWF:[e,"F.Rw"],SYP:[],THB:["\u0e3f"],TWD:["NT$"],XXX:[],ZMW:[e,"K"]},"ltr",function n(l){const t=Math.floor(Math.abs(l)),p=l.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===p?1:5}]},55384:(gt,X,a)=>{"use strict";a.d(X,{Z:()=>s});const e=void 0,s=["en",[["a","p"],["AM","PM"],e],[["AM","PM"],e,e],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],e,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],e,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",e,"{1} 'at' {0}",e],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function n(l){const t=Math.floor(Math.abs(l)),p=l.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===p?1:5}]},19212:(gt,X,a)=>{"use strict";function n(d,_){return Object.is(d,_)}a.d(X,{QbO:()=>Ip,tb:()=>LM,AFp:()=>Dp,ip1:()=>c2,hGG:()=>wA,z2F:()=>t1,Ojb:()=>U,sBO:()=>y1,Sil:()=>LE,_Vd:()=>V_,EJc:()=>hA,Xts:()=>Ju,SBq:()=>zt,lqb:()=>iu,qLn:()=>j_,vpe:()=>ff,gxx:()=>Fe,tBr:()=>tu,XFs:()=>$n,OlP:()=>In,zs3:()=>Jc,ZZ4:()=>ws,aQg:()=>vl,soG:()=>pO,YKP:()=>oT,h0i:()=>e1,R0b:()=>pu,FiY:()=>Jm,Lbi:()=>n_,g9A:()=>t_,n_E:()=>Dv,Qsj:()=>Gn,FYo:()=>hn,JOm:()=>C_,q3G:()=>wu,tp0:()=>Im,Rgc:()=>Xx,dDg:()=>sA,eoX:()=>l2,DyG:()=>Oa,q4F:()=>SE,GfV:()=>XT,s_b:()=>Sh,ifc:()=>Ti,T8G:()=>D1,VuI:()=>nw,Flj:()=>va,MMx:()=>aT,Lck:()=>$2,eFA:()=>x2,cEC:()=>O1,G48:()=>OA,Gpc:()=>no,f3M:()=>ka,X6Q:()=>yA,$WT:()=>zn,MR2:()=>un,Cb_:()=>iw,_c5:()=>AA,qFp:()=>aw,r_H:()=>$p,tdS:()=>gl,rg0:()=>Zl,Q0Y:()=>Df,c2e:()=>e2,zSh:()=>Qd,wAp:()=>$h,I6F:()=>dO,vHH:()=>Xt,lri:()=>a2,rWj:()=>s2,JZr:()=>ti,EiD:()=>zf,mCW:()=>Ad,qzn:()=>ml,JVY:()=>cd,pB0:()=>qd,eBb:()=>ju,L6k:()=>sm,LAX:()=>su,cg1:()=>Wb,kuF:()=>Je,kL8:()=>my,dqk:()=>eo,Z0I:()=>kn,eJc:()=>ou,QGY:()=>qb,F4k:()=>Ny,dwT:()=>Zg,RDi:()=>Zp,AaK:()=>nn,z3N:()=>Sa,qOj:()=>Px,lbL:()=>$o,Xq5:()=>Z1,TTD:()=>Ao,_Bn:()=>iT,jDz:()=>sT,xp6:()=>yh,uIk:()=>_v,Tol:()=>zC,Gre:()=>ty,ekj:()=>Nb,um2:()=>ry,Suo:()=>nO,EqZ:()=>Yx,t2F:()=>pv,hDV:()=>pe,BYR:()=>vs,Xpm:()=>Da,lG2:()=>Ss,Yz7:()=>_n,cJS:()=>Dn,oAB:()=>Is,Yjl:()=>Ca,Y36:()=>eg,_UZ:()=>Jb,GkF:()=>Qb,BQk:()=>Ov,ynx:()=>yv,qZA:()=>Cv,TgZ:()=>bv,EpF:()=>dy,n5z:()=>ld,Ikx:()=>Vb,LFG:()=>Ds,$8M:()=>Zu,$Z:()=>te,NdJ:()=>Xb,CRH:()=>rO,kcU:()=>Xl,O4$:()=>Bc,oxw:()=>Hy,ALo:()=>ST,lcZ:()=>FT,xi3:()=>LT,Dn7:()=>RT,G7q:()=>kT,Hsn:()=>Jy,F$t:()=>Gy,Q6J:()=>Rb,s9C:()=>tC,MGl:()=>wv,hYB:()=>nC,DdM:()=>hT,VKq:()=>xT,WLB:()=>vT,kEZ:()=>bT,l5B:()=>CT,qbA:()=>yT,HTZ:()=>OT,Hh0:()=>PT,qlk:()=>MT,rFY:()=>TT,iGM:()=>oO,MAs:()=>lC,wJu:()=>sy,SjG:()=>ay,x6l:()=>Zb,KtG:()=>ei,evT:()=>oe,Jf7:()=>Q,CHM:()=>Qn,oJD:()=>Kf,uOi:()=>Af,LSH:()=>Ef,P3R:()=>ag,B6R:()=>lT,Akn:()=>Vf,Udp:()=>hv,WFA:()=>eC,d8E:()=>Yb,YNc:()=>Sg,W1O:()=>NT,_uU:()=>dm,Oqu:()=>cC,hij:()=>aO,AsE:()=>gM,lnq:()=>hM,HOy:()=>xM,xDo:()=>vM,Gf:()=>iO}),a(15861);let s=null,l=!1,i=1;const t=Symbol("SIGNAL");function p(d){const _=s;return s=d,_}const u={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function m(d){if(l)throw new Error("");if(null===s)return;s.consumerOnSignalRead(d);const _=s.nextProducerIndex++;K(s),_<s.producerNode.length&&s.producerNode[_]!==d&&Y(s)&&j(s.producerNode[_],s.producerIndexOfThis[_]),s.producerNode[_]!==d&&(s.producerNode[_]=d,s.producerIndexOfThis[_]=Y(s)?q(d,s,_):0),s.producerLastReadVersion[_]=d.version}function I(d){if((!Y(d)||d.dirty)&&(d.dirty||d.lastCleanEpoch!==i)){if(!d.producerMustRecompute(d)&&!ae(d))return d.dirty=!1,void(d.lastCleanEpoch=i);d.producerRecomputeValue(d),d.dirty=!1,d.lastCleanEpoch=i}}function H(d){if(void 0===d.liveConsumerNode)return;const _=l;l=!0;try{for(const C of d.liveConsumerNode)C.dirty||P(C)}finally{l=_}}function O(){return!1!==s?.consumerAllowSignalWrites}function P(d){d.dirty=!0,H(d),d.consumerMarkedDirty?.(d)}function G(d){return d&&(d.nextProducerIndex=0),p(d)}function B(d,_){if(p(_),d&&void 0!==d.producerNode&&void 0!==d.producerIndexOfThis&&void 0!==d.producerLastReadVersion){if(Y(d))for(let C=d.nextProducerIndex;C<d.producerNode.length;C++)j(d.producerNode[C],d.producerIndexOfThis[C]);for(;d.producerNode.length>d.nextProducerIndex;)d.producerNode.pop(),d.producerLastReadVersion.pop(),d.producerIndexOfThis.pop()}}function ae(d){K(d);for(let _=0;_<d.producerNode.length;_++){const C=d.producerNode[_],D=d.producerLastReadVersion[_];if(D!==C.version||(I(C),D!==C.version))return!0}return!1}function J(d){if(K(d),Y(d))for(let _=0;_<d.producerNode.length;_++)j(d.producerNode[_],d.producerIndexOfThis[_]);d.producerNode.length=d.producerLastReadVersion.length=d.producerIndexOfThis.length=0,d.liveConsumerNode&&(d.liveConsumerNode.length=d.liveConsumerIndexOfThis.length=0)}function q(d,_,C){if(ne(d),K(d),0===d.liveConsumerNode.length)for(let D=0;D<d.producerNode.length;D++)d.producerIndexOfThis[D]=q(d.producerNode[D],d,D);return d.liveConsumerIndexOfThis.push(C),d.liveConsumerNode.push(_)-1}function j(d,_){if(ne(d),K(d),1===d.liveConsumerNode.length)for(let D=0;D<d.producerNode.length;D++)j(d.producerNode[D],d.producerIndexOfThis[D]);const C=d.liveConsumerNode.length-1;if(d.liveConsumerNode[_]=d.liveConsumerNode[C],d.liveConsumerIndexOfThis[_]=d.liveConsumerIndexOfThis[C],d.liveConsumerNode.length--,d.liveConsumerIndexOfThis.length--,_<d.liveConsumerNode.length){const D=d.liveConsumerIndexOfThis[_],z=d.liveConsumerNode[_];K(z),z.producerIndexOfThis[D]=_}}function Y(d){return d.consumerIsAlwaysLive||(d?.liveConsumerNode?.length??0)>0}function K(d){d.producerNode??=[],d.producerIndexOfThis??=[],d.producerLastReadVersion??=[]}function ne(d){d.liveConsumerNode??=[],d.liveConsumerIndexOfThis??=[]}const $=Symbol("UNSET"),ue=Symbol("COMPUTING"),ge=Symbol("ERRORED"),Ke={...u,value:$,dirty:!0,error:null,equal:n,producerMustRecompute:d=>d.value===$||d.value===ue,producerRecomputeValue(d){if(d.value===ue)throw new Error("Detected cycle in computations.");const _=d.value;d.value=ue;const C=G(d);let D;try{D=d.computation()}catch(z){D=ge,d.error=z}finally{B(d,C)}_!==$&&_!==ge&&D!==ge&&d.equal(_,D)?d.value=_:(d.value=D,d.version++)}};let Le=function at(){throw new Error};function R(){Le()}let me=null;function et(d,_){O()||R(),d.equal(d.value,_)||(d.value=_,function Vt(d){d.version++,function b(){i++}(),H(d),me?.()}(d))}const lt={...u,equal:n,value:void 0};const Z=()=>{},Pt={...u,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:d=>{null!==d.schedule&&d.schedule(d.ref)},hasRun:!1,cleanupFn:Z};var ye=a(72079),ve=a(7902),ft=a(45125),Dt=a(96124);const ti="https://g.co/ng/security#xss";class Xt extends Error{constructor(_,C){super(Je(_,C)),this.code=_}}function Je(d,_){return`NG0${Math.abs(d)}${_?": "+_:""}`}function bn(d){for(let _ in d)if(d[_]===bn)return _;throw Error("Could not find renamed property on target object.")}function vt(d,_){for(const C in _)_.hasOwnProperty(C)&&!d.hasOwnProperty(C)&&(d[C]=_[C])}function nn(d){if("string"==typeof d)return d;if(Array.isArray(d))return"["+d.map(nn).join(", ")+"]";if(null==d)return""+d;if(d.overriddenName)return`${d.overriddenName}`;if(d.name)return`${d.name}`;const _=d.toString();if(null==_)return""+_;const C=_.indexOf("\n");return-1===C?_:_.substring(0,C)}function rn(d,_){return null==d||""===d?null===_?"":_:null==_||""===_?d:d+" "+_}const Oo=bn({__forward_ref__:bn});function no(d){return d.__forward_ref__=no,d.toString=function(){return nn(this())},d}function Li(d){return ji(d)?d():d}function ji(d){return"function"==typeof d&&d.hasOwnProperty(Oo)&&d.__forward_ref__===no}function Ii(d){return d&&!!d.\u0275providers}const _i=bn({\u0275cmp:bn}),En=bn({\u0275dir:bn}),co=bn({\u0275pipe:bn}),yn=bn({\u0275mod:bn}),ln=bn({\u0275fac:bn}),He=bn({__NG_ELEMENT_ID__:bn}),rt=bn({__NG_ENV_ID__:bn});function $e(d){return"string"==typeof d?d:null==d?"":String(d)}function Yt(d,_){throw new Xt(-201,!1)}function Vn(d,_,C,D){throw new Error(`ASSERTION ERROR: ${d}`+(null==D?"":` [Expected=> ${C} ${D} ${_} <=Actual]`))}function _n(d){return{token:d.token,providedIn:d.providedIn||null,factory:d.factory,value:void 0}}function Dn(d){return{providers:d.providers||[],imports:d.imports||[]}}function Wt(d){return Fi(d,At)||Fi(d,Bn)}function kn(d){return null!==Wt(d)}function Fi(d,_){return d.hasOwnProperty(_)?d[_]:null}function Fo(d){return d&&(d.hasOwnProperty(Jn)||d.hasOwnProperty(Bi))?d[Jn]:null}const At=bn({\u0275prov:bn}),Jn=bn({\u0275inj:bn}),Bn=bn({ngInjectableDef:bn}),Bi=bn({ngInjectorDef:bn});var $n=function(d){return d[d.Default=0]="Default",d[d.Host=1]="Host",d[d.Self=2]="Self",d[d.SkipSelf=4]="SkipSelf",d[d.Optional=8]="Optional",d}($n||{});let Ui;function Xo(){return Ui}function bt(d){const _=Ui;return Ui=d,_}function an(d,_,C){const D=Wt(d);return D&&"root"==D.providedIn?void 0===D.value?D.value=D.factory():D.value:C&$n.Optional?null:void 0!==_?_:void Yt()}const eo=globalThis;class In{constructor(_,C){this._desc=_,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof C?this.__NG_ELEMENT_ID__=C:void 0!==C&&(this.\u0275prov=_n({token:this,providedIn:C.providedIn||"root",factory:C.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const qr={},Ra="__NG_DI_FLAG__",ss="ngTempTokenPath",Cs=/\n/gm,ja="__source";let el;function ls(d){const _=el;return el=d,_}function Fa(d,_=$n.Default){if(void 0===el)throw new Xt(-203,!1);return null===el?an(d,void 0,_):el.get(d,_&$n.Optional?null:void 0,_)}function Ds(d,_=$n.Default){return(Xo()||Fa)(Li(d),_)}function ka(d,_=$n.Default){return Ds(d,hs(_))}function hs(d){return typeof d>"u"||"number"==typeof d?d:0|(d.optional&&8)|(d.host&&1)|(d.self&&2)|(d.skipSelf&&4)}function Ua(d){const _=[];for(let C=0;C<d.length;C++){const D=Li(d[C]);if(Array.isArray(D)){if(0===D.length)throw new Xt(900,!1);let z,ce=$n.Default;for(let je=0;je<D.length;je++){const _t=D[je],Ut=Qi(_t);"number"==typeof Ut?-1===Ut?z=_t.token:ce|=Ut:z=_t}_.push(Ds(z,ce))}else _.push(Ds(D))}return _}function Tn(d,_){return d[Ra]=_,d.prototype[Ra]=_,d}function Qi(d){return d[Ra]}function oi(d){return{toString:d}.toString()}var Vi=function(d){return d[d.OnPush=0]="OnPush",d[d.Default=1]="Default",d}(Vi||{}),Ti=function(d){return d[d.Emulated=0]="Emulated",d[d.None=2]="None",d[d.ShadowDom=3]="ShadowDom",d}(Ti||{});const Hi={},Do=[];var $o=function(d){return d[d.None=0]="None",d[d.SignalBased=1]="SignalBased",d[d.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",d}($o||{});function yr(d,_,C){let D=d.length;for(;;){const z=d.indexOf(_,C);if(-1===z)return z;if(0===z||d.charCodeAt(z-1)<=32){const ce=_.length;if(z+ce===D||d.charCodeAt(z+ce)<=32)return z}C=z+1}}function Vr(d,_,C){let D=0;for(;D<C.length;){const z=C[D];if("number"==typeof z){if(0!==z)break;D++;const ce=C[D++],je=C[D++],_t=C[D++];d.setAttribute(_,je,_t,ce)}else{const ce=z,je=C[++D];Za(ce)?d.setProperty(_,ce,je):d.setAttribute(_,ce,je),D++}}return D}function da(d){return 3===d||4===d||6===d}function Za(d){return 64===d.charCodeAt(0)}function ma(d,_){if(null!==_&&0!==_.length)if(null===d||0===d.length)d=_.slice();else{let C=-1;for(let D=0;D<_.length;D++){const z=_[D];"number"==typeof z?C=z:0===C||Wa(d,C,z,null,-1===C||2===C?_[++D]:null)}}return d}function Wa(d,_,C,D,z){let ce=0,je=d.length;if(-1===_)je=-1;else for(;ce<d.length;){const _t=d[ce++];if("number"==typeof _t){if(_t===_){je=-1;break}if(_t>_){je=ce-1;break}}}for(;ce<d.length;){const _t=d[ce];if("number"==typeof _t)break;if(_t===C){if(null===D)return void(null!==z&&(d[ce+1]=z));if(D===d[ce+1])return void(d[ce+2]=z)}ce++,null!==D&&ce++,null!==z&&ce++}-1!==je&&(d.splice(je,0,_),ce=je+1),d.splice(ce++,0,C),null!==D&&d.splice(ce++,0,D),null!==z&&d.splice(ce++,0,z)}const Yi="ng-template";function jo(d,_,C){let D=0,z=!0;for(;D<d.length;){let ce=d[D++];if("string"==typeof ce&&z){const je=d[D++];if(C&&"class"===ce&&-1!==yr(je.toLowerCase(),_,0))return!0}else{if(1===ce){for(;D<d.length&&"string"==typeof(ce=d[D++]);)if(ce.toLowerCase()===_)return!0;return!1}"number"==typeof ce&&(z=!1)}}return!1}function Cn(d){return 4===d.type&&d.value!==Yi}function uo(d,_,C){return _===(4!==d.type||C?d.value:Yi)}function fo(d,_,C){let D=4;const z=d.attrs||[],ce=function cs(d){for(let _=0;_<d.length;_++)if(da(d[_]))return _;return d.length}(z);let je=!1;for(let _t=0;_t<_.length;_t++){const Ut=_[_t];if("number"!=typeof Ut){if(!je)if(4&D){if(D=2|1&D,""!==Ut&&!uo(d,Ut,C)||""===Ut&&1===_.length){if(Jo(D))return!1;je=!0}}else{const Yn=8&D?Ut:_[++_t];if(8&D&&null!==d.attrs){if(!jo(d.attrs,Yn,C)){if(Jo(D))return!1;je=!0}continue}const so=kr(8&D?"class":Ut,z,Cn(d),C);if(-1===so){if(Jo(D))return!1;je=!0;continue}if(""!==Yn){let Zo;Zo=so>ce?"":z[so+1].toLowerCase();const qo=8&D?Zo:null;if(qo&&-1!==yr(qo,Yn,0)||2&D&&Yn!==Zo){if(Jo(D))return!1;je=!0}}}}else{if(!je&&!Jo(D)&&!Jo(Ut))return!1;if(je&&Jo(Ut))continue;je=!1,D=Ut|1&D}}return Jo(D)||je}function Jo(d){return 0==(1&d)}function kr(d,_,C,D){if(null===_)return-1;let z=0;if(D||!C){let ce=!1;for(;z<_.length;){const je=_[z];if(je===d)return z;if(3===je||6===je)ce=!0;else{if(1===je||2===je){let _t=_[++z];for(;"string"==typeof _t;)_t=_[++z];continue}if(4===je)break;if(0===je){z+=4;continue}}z+=ce?1:2}return-1}return function ys(d,_){let C=d.indexOf(4);if(C>-1)for(C++;C<d.length;){const D=d[C];if("number"==typeof D)return-1;if(D===_)return C;C++}return-1}(_,d)}function Qr(d,_,C=!1){for(let D=0;D<_.length;D++)if(fo(d,_[D],C))return!0;return!1}function zr(d,_){e:for(let C=0;C<_.length;C++){const D=_[C];if(d.length===D.length){for(let z=0;z<d.length;z++)if(d[z]!==D[z])continue e;return!0}}return!1}function Pi(d,_){return d?":not("+_.trim()+")":_}function xo(d){let _=d[0],C=1,D=2,z="",ce=!1;for(;C<d.length;){let je=d[C];if("string"==typeof je)if(2&D){const _t=d[++C];z+="["+je+(_t.length>0?'="'+_t+'"':"")+"]"}else 8&D?z+="."+je:4&D&&(z+=" "+je);else""!==z&&!Jo(je)&&(_+=Pi(ce,z),z=""),D=je,ce=ce||!Jo(D);C++}return""!==z&&(_+=Pi(ce,z)),_}function Da(d){return oi(()=>{const _=cn(d),C={..._,decls:d.decls,vars:d.vars,template:d.template,consts:d.consts||null,ngContentSelectors:d.ngContentSelectors,onPush:d.changeDetection===Vi.OnPush,directiveDefs:null,pipeDefs:null,dependencies:_.standalone&&d.dependencies||null,getStandaloneInjector:null,signals:d.signals??!1,data:d.data||{},encapsulation:d.encapsulation||Ti.Emulated,styles:d.styles||Do,_:null,schemas:d.schemas||null,tView:null,id:""};Zi(C);const D=d.dependencies;return C.directiveDefs=Eo(D,!1),C.pipeDefs=Eo(D,!0),C.id=function Nr(d){let _=0;const C=[d.selectors,d.ngContentSelectors,d.hostVars,d.hostAttrs,d.consts,d.vars,d.decls,d.encapsulation,d.standalone,d.signals,d.exportAs,JSON.stringify(d.inputs),JSON.stringify(d.outputs),Object.getOwnPropertyNames(d.type.prototype),!!d.contentQueries,!!d.viewQuery].join("|");for(const z of C)_=Math.imul(31,_)+z.charCodeAt(0)<<0;return _+=2147483648,"c"+_}(C),C})}function ia(d){return Ia(d)||wa(d)}function as(d){return null!==d}function Is(d){return oi(()=>({type:d.type,bootstrap:d.bootstrap||Do,declarations:d.declarations||Do,imports:d.imports||Do,exports:d.exports||Do,transitiveCompileScopes:null,schemas:d.schemas||null,id:d.id||null}))}function ba(d,_){if(null==d)return Hi;const C={};for(const D in d)if(d.hasOwnProperty(D)){const z=d[D];let ce,je,_t=$o.None;Array.isArray(z)?(_t=z[0],ce=z[1],je=z[2]??ce):(ce=z,je=z),_?(C[ce]=_t!==$o.None?[D,_t]:D,_[ce]=je):C[ce]=D}return C}function Ss(d){return oi(()=>{const _=cn(d);return Zi(_),_})}function Ca(d){return{type:d.type,name:d.name,factory:null,pure:!1!==d.pure,standalone:!0===d.standalone,onDestroy:d.type.prototype.ngOnDestroy||null}}function Ia(d){return d[_i]||null}function wa(d){return d[En]||null}function Va(d){return d[co]||null}function zn(d){const _=Ia(d)||wa(d)||Va(d);return null!==_&&_.standalone}function di(d,_){const C=d[yn]||null;if(!C&&!0===_)throw new Error(`Type ${nn(d)} does not have '\u0275mod' property.`);return C}function cn(d){const _={};return{type:d.type,providersResolver:null,factory:null,hostBindings:d.hostBindings||null,hostVars:d.hostVars||0,hostAttrs:d.hostAttrs||null,contentQueries:d.contentQueries||null,declaredInputs:_,inputTransforms:null,inputConfig:d.inputs||Hi,exportAs:d.exportAs||null,standalone:!0===d.standalone,signals:!0===d.signals,selectors:d.selectors||Do,viewQuery:d.viewQuery||null,features:d.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ba(d.inputs,_),outputs:ba(d.outputs),debugInfo:null}}function Zi(d){d.features?.forEach(_=>_(d))}function Eo(d,_){if(!d)return null;const C=_?Va:ia;return()=>("function"==typeof d?d():d).map(D=>C(D)).filter(as)}const Rs=0,Zr=1,Na=2,ol=3,Cl=4,Ql=5,Ho=6,mc=7,os=8,ps=9,Ps=10,Ba=11,Ka=12,vc=13,$s=14,js=15,bc=16,ql=17,Gs=18,Dl=19,Yr=20,_a=21,ts=22,rl=23,ya=25,Pl=1,Ml=7,Kr=9,la=10;var ks=function(d){return d[d.None=0]="None",d[d.HasTransplantedViews=2]="HasTransplantedViews",d}(ks||{});function Ta(d){return Array.isArray(d)&&"object"==typeof d[Pl]}function ds(d){return Array.isArray(d)&&!0===d[Pl]}function bs(d){return 0!=(4&d.flags)}function sl(d){return d.componentOffset>-1}function Ec(d){return 1==(1&d.flags)}function gr(d){return!!d.template}function Js(d){return 0!=(512&d[Na])}function yl(d){return 256==(256&d[Na])}function Mi(d,_){return d.hasOwnProperty(ln)?d[ln]:null}class or{constructor(_,C,D){this.previousValue=_,this.currentValue=C,this.firstChange=D}isFirstChange(){return this.firstChange}}function Ki(d,_,C,D){null!==_?_.applyValueToInputSignal(_,D):d[C]=D}function Ao(){return Go}function Go(d){return d.type.prototype.ngOnChanges&&(d.setInput=pn),dr}function dr(){const d=nt(this),_=d?.current;if(_){const C=d.previous;if(C===Hi)d.previous=_;else for(let D in _)C[D]=_[D];d.current=null,this.ngOnChanges(_)}}function pn(d,_,C,D,z){const ce=this.declaredInputs[D],je=nt(d)||function Sn(d,_){return d[bo]=_}(d,{previous:Hi,current:null}),_t=je.current||(je.current={}),Ut=je.previous,Yn=Ut[ce];_t[ce]=new or(Yn&&Yn.currentValue,C,Ut===Hi),Ki(d,_,z,C)}Ao.ngInherit=!0;const bo="__ngSimpleChanges__";function nt(d){return d[bo]||null}const No=function(d,_,C){},Ar="svg";let Sr=!1;function Fs(d){for(;Array.isArray(d);)d=d[Rs];return d}function ac(d,_){return Fs(_[d])}function Nl(d,_){return Fs(_[d.index])}function Kl(d,_){return d.data[_]}function xl(d,_){return d[_]}function ll(d,_){const C=_[d];return Ta(C)?C:C[Rs]}function Nc(d){return 128==(128&d[Na])}function _c(d,_){return null==_?null:d[_]}function wc(d){d[ql]=0}function nm(d){1024&d[Na]||(d[Na]|=1024,Nc(d)&&dn(d))}function Id(d,_){for(;d>0;)_=_[$s],d--;return _}function Ns(d){return 9216&d[Na]||d[rl]?.dirty}function Uc(d){Ns(d)?dn(d):64&d[Na]&&(function ns(){return Sr}()?(d[Na]|=1024,dn(d)):d[Ps].changeDetectionScheduler?.notify())}function dn(d){d[Ps].changeDetectionScheduler?.notify();let _=Nn(d);for(;null!==_&&!(8192&_[Na])&&(_[Na]|=8192,Nc(_));)_=Nn(_)}function Mr(d,_){if(256==(256&d[Na]))throw new Xt(911,!1);null===d[_a]&&(d[_a]=[]),d[_a].push(_)}function mn(d,_){if(null===d[_a])return;const C=d[_a].indexOf(_);-1!==C&&d[_a].splice(C,1)}function Nn(d){const _=d[ol];return ds(_)?_[ol]:_}const Ci={lFrame:md(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function h(){return Ci.bindingsEnabled}function k(){return null!==Ci.skipHydrationRootTNode}function Mt(){return Ci.lFrame.lView}function fn(){return Ci.lFrame.tView}function Qn(d){return Ci.lFrame.contextLView=d,d[os]}function ei(d){return Ci.lFrame.contextLView=null,d}function bi(){let d=zi();for(;null!==d&&64===d.type;)d=d.parent;return d}function zi(){return Ci.lFrame.currentTNode}function pt(d,_){const C=Ci.lFrame;C.currentTNode=d,C.isParent=_}function Ye(){return Ci.lFrame.isParent}function ut(){Ci.lFrame.isParent=!1}function hi(){const d=Ci.lFrame;let _=d.bindingRootIndex;return-1===_&&(_=d.bindingRootIndex=d.tView.bindingStartIndex),_}function gi(){return Ci.lFrame.bindingIndex}function Wo(){return Ci.lFrame.bindingIndex++}function tr(d){const _=Ci.lFrame,C=_.bindingIndex;return _.bindingIndex=_.bindingIndex+d,C}function ga(d,_){const C=Ci.lFrame;C.bindingIndex=C.bindingRootIndex=d,Rr(_)}function Rr(d){Ci.lFrame.currentDirectiveIndex=d}function Xr(d){const _=Ci.lFrame.currentDirectiveIndex;return-1===_?null:d[_]}function Es(){return Ci.lFrame.currentQueryIndex}function Ys(d){Ci.lFrame.currentQueryIndex=d}function qa(d){const _=d[Zr];return 2===_.type?_.declTNode:1===_.type?d[Ql]:null}function Qs(d,_,C){if(C&$n.SkipSelf){let z=_,ce=d;for(;!(z=z.parent,null!==z||C&$n.Host||(z=qa(ce),null===z||(ce=ce[$s],10&z.type))););if(null===z)return!1;_=z,d=ce}const D=Ci.lFrame=wl();return D.currentTNode=_,D.lView=d,!0}function ic(d){const _=wl(),C=d[Zr];Ci.lFrame=_,_.currentTNode=C.firstChild,_.lView=d,_.tView=C,_.contextLView=d,_.bindingIndex=C.bindingStartIndex,_.inI18n=!1}function wl(){const d=Ci.lFrame,_=null===d?null:d.child;return null===_?md(d):_}function md(d){const _={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:d,child:null,inI18n:!1};return null!==d&&(d.child=_),_}function Dc(){const d=Ci.lFrame;return Ci.lFrame=d.parent,d.currentTNode=null,d.lView=null,d}const yc=Dc;function Wc(){const d=Dc();d.isParent=!0,d.tView=null,d.selectedIndex=-1,d.contextLView=null,d.elementDepthCount=0,d.currentDirectiveIndex=-1,d.currentNamespace=null,d.bindingRootIndex=-1,d.bindingIndex=-1,d.currentQueryIndex=0}function Vl(){return Ci.lFrame.selectedIndex}function zc(d){Ci.lFrame.selectedIndex=d}function Il(){const d=Ci.lFrame;return Kl(d.tView,d.selectedIndex)}function Bc(){Ci.lFrame.currentNamespace=Ar}function Xl(){!function uc(){Ci.lFrame.currentNamespace=null}()}let jc=!0;function pc(){return jc}function Ul(d){jc=d}function ec(d,_){for(let C=_.directiveStart,D=_.directiveEnd;C<D;C++){const ce=d.data[C].type.prototype,{ngAfterContentInit:je,ngAfterContentChecked:_t,ngAfterViewInit:Ut,ngAfterViewChecked:Yn,ngOnDestroy:Ri}=ce;je&&(d.contentHooks??=[]).push(-C,je),_t&&((d.contentHooks??=[]).push(C,_t),(d.contentCheckHooks??=[]).push(C,_t)),Ut&&(d.viewHooks??=[]).push(-C,Ut),Yn&&((d.viewHooks??=[]).push(C,Yn),(d.viewCheckHooks??=[]).push(C,Yn)),null!=Ri&&(d.destroyHooks??=[]).push(C,Ri)}}function vd(d,_,C){Ru(d,_,3,C)}function bd(d,_,C,D){(3&d[Na])===C&&Ru(d,_,C,D)}function Sd(d,_){let C=d[Na];(3&C)===_&&(C&=16383,C+=1,d[Na]=C)}function Ru(d,_,C,D){const ce=D??-1,je=_.length-1;let _t=0;for(let Ut=void 0!==D?65535&d[ql]:0;Ut<je;Ut++)if("number"==typeof _[Ut+1]){if(_t=_[Ut],null!=D&&_t>=D)break}else _[Ut]<0&&(d[ql]+=65536),(_t<ce||-1==ce)&&(hu(d,C,_,Ut),d[ql]=(4294901760&d[ql])+Ut+2),Ut++}function mm(d,_){No(4,d,_);const C=p(null);try{_.call(d)}finally{p(C),No(5,d,_)}}function hu(d,_,C,D){const z=C[D]<0,ce=C[D+1],_t=d[z?-C[D]:C[D]];z?d[Na]>>14<d[ql]>>16&&(3&d[Na])===_&&(d[Na]+=16384,mm(_t,ce)):mm(_t,ce)}const Fd=-1;class tc{constructor(_,C,D){this.factory=_,this.resolving=!1,this.canSeeViewProviders=C,this.injectImpl=D}}function pm(d){return d!==Fd}function Ld(d){return 32767&d}function Ud(d,_){let C=function jd(d){return d>>16}(d),D=_;for(;C>0;)D=D[$s],C--;return D}let km=!0;function Nm(d){const _=km;return km=d,_}const $u=255,Kd=5;let $m=0;const ed={};function _m(d,_){const C=Xm(d,_);if(-1!==C)return C;const D=_[Zr];D.firstCreatePass&&(d.injectorIndex=_.length,qm(D.data,d),qm(_,null),qm(D.blueprint,null));const z=Um(d,_),ce=d.injectorIndex;if(pm(z)){const je=Ld(z),_t=Ud(z,_),Ut=_t[Zr].data;for(let Yn=0;Yn<8;Yn++)_[ce+Yn]=_t[je+Yn]|Ut[je+Yn]}return _[ce+8]=z,ce}function qm(d,_){d.push(0,0,0,0,0,0,0,0,_)}function Xm(d,_){return-1===d.injectorIndex||d.parent&&d.parent.injectorIndex===d.injectorIndex||null===_[d.injectorIndex+8]?-1:d.injectorIndex}function Um(d,_){if(d.parent&&-1!==d.parent.injectorIndex)return d.parent.injectorIndex;let C=0,D=null,z=_;for(;null!==z;){if(D=Bu(z),null===D)return Fd;if(C++,z=z[$s],-1!==D.injectorIndex)return D.injectorIndex|C<<16}return Fd}function sd(d,_,C){!function ku(d,_,C){let D;"string"==typeof C?D=C.charCodeAt(0)||0:C.hasOwnProperty(He)&&(D=C[He]),null==D&&(D=C[He]=$m++);const z=D&$u;_.data[d+(z>>Kd)]|=1<<z}(d,_,C)}function fm(d,_,C){if(C&$n.Optional||void 0!==d)return d;Yt()}function Nu(d,_,C,D){if(C&$n.Optional&&void 0===D&&(D=null),!(C&($n.Self|$n.Host))){const z=d[ps],ce=bt(void 0);try{return z?z.get(_,D,C&$n.Optional):an(_,D,C&$n.Optional)}finally{bt(ce)}}return fm(D,0,C)}function yd(d,_,C,D=$n.Default,z){if(null!==d){if(2048&_[Na]&&!(D&$n.Self)){const je=function Tp(d,_,C,D,z){let ce=d,je=_;for(;null!==ce&&null!==je&&2048&je[Na]&&!(512&je[Na]);){const _t=gm(ce,je,C,D|$n.Self,ed);if(_t!==ed)return _t;let Ut=ce.parent;if(!Ut){const Yn=je[Yr];if(Yn){const Ri=Yn.get(C,ed,D);if(Ri!==ed)return Ri}Ut=Bu(je),je=je[$s]}ce=Ut}return z}(d,_,C,D,ed);if(je!==ed)return je}const ce=gm(d,_,C,D,ed);if(ce!==ed)return ce}return Nu(_,C,D,z)}function gm(d,_,C,D,z){const ce=function Uu(d){if("string"==typeof d)return d.charCodeAt(0)||0;const _=d.hasOwnProperty(He)?d[He]:void 0;return"number"==typeof _?_>=0?_&$u:Zm:_}(C);if("function"==typeof ce){if(!Qs(_,d,D))return D&$n.Host?fm(z,0,D):Nu(_,C,D,z);try{let je;if(je=ce(D),null!=je||D&$n.Optional)return je;Yt()}finally{yc()}}else if("number"==typeof ce){let je=null,_t=Xm(d,_),Ut=Fd,Yn=D&$n.Host?_[js][Ql]:null;for((-1===_t||D&$n.SkipSelf)&&(Ut=-1===_t?Um(d,_):_[_t+8],Ut!==Fd&&Bm(D,!1)?(je=_[Zr],_t=Ld(Ut),_=Ud(Ut,_)):_t=-1);-1!==_t;){const Ri=_[Zr];if(qu(ce,_t,Ri.data)){const so=vu(_t,_,C,je,D,Yn);if(so!==ed)return so}Ut=_[_t+8],Ut!==Fd&&Bm(D,_[Zr].data[_t+8]===Yn)&&qu(ce,_t,_)?(je=Ri,_t=Ld(Ut),_=Ud(Ut,_)):_t=-1}}return z}function vu(d,_,C,D,z,ce){const je=_[Zr],_t=je.data[d+8],Ri=bu(_t,je,C,null==D?sl(_t)&&km:D!=je&&0!=(3&_t.type),z&$n.Host&&ce===_t);return null!==Ri?Od(_,je,Ri,_t):ed}function bu(d,_,C,D,z){const ce=d.providerIndexes,je=_.data,_t=1048575&ce,Ut=d.directiveStart,Ri=ce>>20,Zo=z?_t+Ri:d.directiveEnd;for(let qo=D?_t:_t+Ri;qo<Zo;qo++){const Er=je[qo];if(qo<Ut&&C===Er||qo>=Ut&&Er.type===C)return qo}if(z){const qo=je[Ut];if(qo&&gr(qo)&&qo.type===C)return Ut}return null}function Od(d,_,C,D){let z=d[C];const ce=_.data;if(function Km(d){return d instanceof tc}(z)){const je=z;je.resolving&&function ht(d,_){const C=_?`. Dependency path: ${_.join(" > ")} > ${d}`:"";throw new Xt(-200,`Circular dependency in DI detected for ${d}${C}`)}(function Ve(d){return"function"==typeof d?d.name||d.toString():"object"==typeof d&&null!=d&&"function"==typeof d.type?d.type.name||d.type.toString():$e(d)}(ce[C]));const _t=Nm(je.canSeeViewProviders);je.resolving=!0;const Yn=je.injectImpl?bt(je.injectImpl):null;Qs(d,D,$n.Default);try{z=d[C]=je.factory(void 0,ce,d,D),_.firstCreatePass&&C>=D.directiveStart&&function Xc(d,_,C){const{ngOnChanges:D,ngOnInit:z,ngDoCheck:ce}=_.type.prototype;if(D){const je=Go(_);(C.preOrderHooks??=[]).push(d,je),(C.preOrderCheckHooks??=[]).push(d,je)}z&&(C.preOrderHooks??=[]).push(0-d,z),ce&&((C.preOrderHooks??=[]).push(d,ce),(C.preOrderCheckHooks??=[]).push(d,ce))}(C,ce[C],_)}finally{null!==Yn&&bt(Yn),Nm(_t),je.resolving=!1,yc()}}return z}function qu(d,_,C){return!!(C[_+(d>>Kd)]&1<<d)}function Bm(d,_){return!(d&$n.Self||d&$n.Host&&_)}class fc{constructor(_,C){this._tNode=_,this._lView=C}get(_,C,D){return yd(this._tNode,this._lView,_,hs(D),C)}}function Zm(){return new fc(bi(),Mt())}function ld(d){return oi(()=>{const _=d.prototype.constructor,C=_[ln]||eu(_),D=Object.prototype;let z=Object.getPrototypeOf(d.prototype).constructor;for(;z&&z!==D;){const ce=z[ln]||eu(z);if(ce&&ce!==C)return ce;z=Object.getPrototypeOf(z)}return ce=>new ce})}function eu(d){return ji(d)?()=>{const _=eu(Li(d));return _&&_()}:Mi(d)}function Bu(d){const _=d[Zr],C=_.type;return 2===C?_.declTNode:1===C?d[Ql]:null}function Zu(d){return function Kc(d,_){if("class"===_)return d.classes;if("style"===_)return d.styles;const C=d.attrs;if(C){const D=C.length;let z=0;for(;z<D;){const ce=C[z];if(da(ce))break;if(0===ce)z+=2;else if("number"==typeof ce)for(z++;z<D&&"string"==typeof C[z];)z++;else{if(ce===_)return C[z+1];z+=2}}}return null}(bi(),d)}const Cu="__parameters__";function Bd(d,_,C){return oi(()=>{const D=function wm(d){return function(...C){if(d){const D=d(...C);for(const z in D)this[z]=D[z]}}}(_);function z(...ce){if(this instanceof z)return D.apply(this,ce),this;const je=new z(...ce);return _t.annotation=je,_t;function _t(Ut,Yn,Ri){const so=Ut.hasOwnProperty(Cu)?Ut[Cu]:Object.defineProperty(Ut,Cu,{value:[]})[Cu];for(;so.length<=Ri;)so.push(null);return(so[Ri]=so[Ri]||[]).push(je),Ut}}return C&&(z.prototype=Object.create(C.prototype)),z.prototype.ngMetadataName=d,z.annotationCls=z,z})}const Oa=Function;function El(d,_){d.forEach(C=>Array.isArray(C)?El(C,_):_(C))}function Ic(d,_,C){_>=d.length?d.push(C):d.splice(_,0,C)}function Pc(d,_){return _>=d.length-1?d.pop():d.splice(_,1)[0]}function $c(d,_,C){const D=d.length-C;for(;_<D;)d[_]=d[_+C],_++;for(;C--;)d.pop()}function qc(d,_,C,D){let z=d.length;if(z==_)d.push(C,D);else if(1===z)d.push(D,d[0]),d[0]=C;else{for(z--,d.push(d[z-1],d[z]);z>_;)d[z]=d[z-2],z--;d[_]=C,d[_+1]=D}}function oc(d,_,C){let D=Sc(d,_);return D>=0?d[1|D]=C:(D=~D,qc(d,D,_,C)),D}function Zd(d,_){const C=Sc(d,_);if(C>=0)return d[1|C]}function Sc(d,_){return function Pm(d,_,C){let D=0,z=d.length>>C;for(;z!==D;){const ce=D+(z-D>>1),je=d[ce<<C];if(_===je)return ce<<C;je>_?z=ce:D=ce+1}return~(z<<C)}(d,_,1)}const tu=Tn(Bd("Inject",d=>({token:d})),-1),Jm=Tn(Bd("Optional"),8),Im=Tn(Bd("SkipSelf"),4),Ju=new In(""),Fe=new In("",-1),Pe=new In("");class St{get(_,C=qr){if(C===qr){const D=new Error(`NullInjectorError: No provider for ${nn(_)}!`);throw D.name="NullInjectorError",D}return C}}function un(d){return{\u0275providers:d}}function vi(...d){return{\u0275providers:qe(0,d),\u0275fromNgModule:!0}}function qe(d,..._){const C=[],D=new Set;let z;const ce=je=>{C.push(je)};return El(_,je=>{const _t=je;xt(_t,ce,[],D)&&(z||=[],z.push(_t))}),void 0!==z&&Xi(z,ce),C}function Xi(d,_){for(let C=0;C<d.length;C++){const{ngModule:D,providers:z}=d[C];jn(z,ce=>{_(ce,D)})}}function xt(d,_,C,D){if(!(d=Li(d)))return!1;let z=null,ce=Fo(d);const je=!ce&&Ia(d);if(ce||je){if(je&&!je.standalone)return!1;z=d}else{const Ut=d.ngModule;if(ce=Fo(Ut),!ce)return!1;z=Ut}const _t=D.has(z);if(je){if(_t)return!1;if(D.add(z),je.dependencies){const Ut="function"==typeof je.dependencies?je.dependencies():je.dependencies;for(const Yn of Ut)xt(Yn,_,C,D)}}else{if(!ce)return!1;{if(null!=ce.imports&&!_t){let Yn;D.add(z);try{El(ce.imports,Ri=>{xt(Ri,_,C,D)&&(Yn||=[],Yn.push(Ri))})}finally{}void 0!==Yn&&Xi(Yn,_)}if(!_t){const Yn=Mi(z)||(()=>new z);_({provide:z,useFactory:Yn,deps:Do},z),_({provide:Pe,useValue:z,multi:!0},z),_({provide:Ju,useValue:()=>Ds(z),multi:!0},z)}const Ut=ce.providers;if(null!=Ut&&!_t){const Yn=d;jn(Ut,Ri=>{_(Ri,Yn)})}}}return z!==d&&void 0!==d.providers}function jn(d,_){for(let C of d)Ii(C)&&(C=C.\u0275providers),Array.isArray(C)?jn(C,_):_(C)}const ro=bn({provide:String,useValue:bn});function Bo(d){return null!==d&&"object"==typeof d&&ro in d}function al(d){return"function"==typeof d}const Qd=new In(""),op={},f_={};let rp;function Ap(){return void 0===rp&&(rp=new St),rp}class iu{}class Qu extends iu{get destroyed(){return this._destroyed}constructor(_,C,D,z){super(),this.parent=C,this.source=D,this.scopes=z,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,lc(_,je=>this.processProvider(je)),this.records.set(Fe,Rc(void 0,this)),z.has("environment")&&this.records.set(iu,Rc(void 0,this));const ce=this.records.get(Qd);null!=ce&&"string"==typeof ce.value&&this.scopes.add(ce.value),this.injectorDefTypes=new Set(this.get(Pe,Do,$n.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const C of this._ngOnDestroyHooks)C.ngOnDestroy();const _=this._onDestroyHooks;this._onDestroyHooks=[];for(const C of _)C()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(_){return this.assertNotDestroyed(),this._onDestroyHooks.push(_),()=>this.removeOnDestroy(_)}runInContext(_){this.assertNotDestroyed();const C=ls(this),D=bt(void 0);try{return _()}finally{ls(C),bt(D)}}get(_,C=qr,D=$n.Default){if(this.assertNotDestroyed(),_.hasOwnProperty(rt))return _[rt](this);D=hs(D);const ce=ls(this),je=bt(void 0);try{if(!(D&$n.SkipSelf)){let Ut=this.records.get(_);if(void 0===Ut){const Yn=function Kp(d){return"function"==typeof d||"object"==typeof d&&d instanceof In}(_)&&Wt(_);Ut=Yn&&this.injectableDefInScope(Yn)?Rc(Wp(_),op):null,this.records.set(_,Ut)}if(null!=Ut)return this.hydrate(_,Ut)}return(D&$n.Self?Ap():this.parent).get(_,C=D&$n.Optional&&C===qr?null:C)}catch(_t){if("NullInjectorError"===_t.name){if((_t[ss]=_t[ss]||[]).unshift(nn(_)),ce)throw _t;return function To(d,_,C,D){const z=d[ss];throw _[ja]&&z.unshift(_[ja]),d.message=function sr(d,_,C,D=null){d=d&&"\n"===d.charAt(0)&&"\u0275"==d.charAt(1)?d.slice(2):d;let z=nn(_);if(Array.isArray(_))z=_.map(nn).join(" -> ");else if("object"==typeof _){let ce=[];for(let je in _)if(_.hasOwnProperty(je)){let _t=_[je];ce.push(je+":"+("string"==typeof _t?JSON.stringify(_t):nn(_t)))}z=`{${ce.join(", ")}}`}return`${C}${D?"("+D+")":""}[${z}]: ${d.replace(Cs,"\n  ")}`}("\n"+d.message,z,C,D),d.ngTokenPath=z,d[ss]=null,d}(_t,_,"R3InjectorError",this.source)}throw _t}finally{bt(je),ls(ce)}}resolveInjectorInitializers(){const _=ls(this),C=bt(void 0);try{const z=this.get(Ju,Do,$n.Self);for(const ce of z)ce()}finally{ls(_),bt(C)}}toString(){const _=[],C=this.records;for(const D of C.keys())_.push(nn(D));return`R3Injector[${_.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Xt(205,!1)}processProvider(_){let C=al(_=Li(_))?_:Li(_&&_.provide);const D=function zp(d){return Bo(d)?Rc(void 0,d.useValue):Rc(ap(d),op)}(_);if(!al(_)&&!0===_.multi){let z=this.records.get(C);z||(z=Rc(void 0,op,!0),z.factory=()=>Ua(z.multi),this.records.set(C,z)),C=_,z.multi.push(_)}this.records.set(C,D)}hydrate(_,C){return C.value===op&&(C.value=f_,C.value=C.factory()),"object"==typeof C.value&&C.value&&function jp(d){return null!==d&&"object"==typeof d&&"function"==typeof d.ngOnDestroy}(C.value)&&this._ngOnDestroyHooks.add(C.value),C.value}injectableDefInScope(_){if(!_.providedIn)return!1;const C=Li(_.providedIn);return"string"==typeof C?"any"===C||this.scopes.has(C):this.injectorDefTypes.has(C)}removeOnDestroy(_){const C=this._onDestroyHooks.indexOf(_);-1!==C&&this._onDestroyHooks.splice(C,1)}}function Wp(d){const _=Wt(d),C=null!==_?_.factory:Mi(d);if(null!==C)return C;if(d instanceof In)throw new Xt(204,!1);if(d instanceof Function)return function S_(d){if(d.length>0)throw new Xt(204,!1);const C=function ui(d){return d&&(d[At]||d[Bn])||null}(d);return null!==C?()=>C.factory(d):()=>new d}(d);throw new Xt(204,!1)}function ap(d,_,C){let D;if(al(d)){const z=Li(d);return Mi(z)||Wp(z)}if(Bo(d))D=()=>Li(d.useValue);else if(function Hr(d){return!(!d||!d.useFactory)}(d))D=()=>d.useFactory(...Ua(d.deps||[]));else if(function jr(d){return!(!d||!d.useExisting)}(d))D=()=>Ds(Li(d.useExisting));else{const z=Li(d&&(d.useClass||d.provide));if(!function F_(d){return!!d.deps}(d))return Mi(z)||Wp(z);D=()=>new z(...Ua(d.deps))}return D}function Rc(d,_,C=!1){return{factory:d,value:_,multi:C?[]:void 0}}function lc(d,_){for(const C of d)Array.isArray(C)?lc(C,_):C&&Ii(C)?lc(C.\u0275providers,_):_(C)}function $p(d,_){d instanceof Qu&&d.assertNotDestroyed();const D=ls(d),z=bt(void 0);try{return _()}finally{ls(D),bt(z)}}function Bp(d){if(!Xo()&&!function Vs(){return el}())throw new Xt(-203,!1)}function wp(d,_=null,C=null,D){const z=_d(d,_,C,D);return z.resolveInjectorInitializers(),z}function _d(d,_=null,C=null,D,z=new Set){const ce=[C||Do,vi(d)];return D=D||("object"==typeof d?void 0:nn(d)),new Qu(ce,_||Ap(),D||null,z)}let ru,Jc=(()=>{class d{static#e=this.THROW_IF_NOT_FOUND=qr;static#t=this.NULL=new St;static create(C,D){if(Array.isArray(C))return wp({name:""},D,C,"");{const z=C.name??"";return wp({name:z},C.parent,C.providers,z)}}static#n=this.\u0275prov=_n({token:d,providedIn:"any",factory:()=>Ds(Fe)});static#i=this.__NG_ELEMENT_ID__=-1}return d})();function ou(d){return!!di(d)}function Zp(d){ru=d}function Qm(){if(void 0!==ru)return ru;if(typeof document<"u")return document;throw new Xt(210,!1)}const Dp=new In("",{providedIn:"root",factory:()=>bm}),bm="ng",t_=new In(""),n_=new In("",{providedIn:"platform",factory:()=>"unknown"}),Ip=new In(""),U=new In("",{providedIn:"root",factory:()=>Qm().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function Q(d){return d.ownerDocument.defaultView}function oe(d){return d.ownerDocument}function it(d){return d instanceof Function?d():d}function mt(d){return"browser"===(d??ka(Jc)).get(n_)}function Sp(d){Vn("Must never be called in production mode");const C=function Qc(d){Vn("Must never be called in production mode");const C=d[js][os];return C&&C.constructor?Ia(C.constructor):null}(d)?.type?.name;return C?` (used in the '${C}' component template)`:""}function Vm(d){return 128==(128&d.flags)}var C_=function(d){return d[d.Important=1]="Important",d[d.DashCase=2]="DashCase",d}(C_||{});const xf=/^>|^->|<!--|-->|--!>|<!-$/g,vf=/(<|>)/g,bf="\u200b$1\u200b";const Gp=new Map;let Cf=0;const U_="__ngContext__";function Tm(d,_){Ta(_)?(d[U_]=_[Dl],function r_(d){Gp.set(d[Dl],d)}(_)):d[U_]=_}let Z_;function s_(d,_){return Z_(d,_)}function bp(d,_,C,D,z){if(null!=D){let ce,je=!1;ds(D)?ce=D:Ta(D)&&(je=!0,D=D[Rs]);const _t=Fs(D);0===d&&null!==C?null==z?ar(_,C,_t):Ro(_,C,_t,z||null,!0):1===d&&null!==C?Ro(_,C,_t,z||null,!0):2===d?function W(d,_,C){const D=Ol(d,_);D&&function La(d,_,C,D){d.removeChild(_,C,D)}(d,D,_,C)}(_,_t,je):3===d&&_.destroyNode(_t),null!=ce&&function gn(d,_,C,D,z){const ce=C[Ml];ce!==Fs(C)&&bp(_,d,D,ce,z);for(let _t=la;_t<C.length;_t++){const Ut=C[_t];ke(Ut[Zr],Ut,d,_,D,ce)}}(_,d,ce,C,z)}}function cf(d,_){return d.createComment(function y_(d){return d.replace(xf,_=>_.replace(vf,bf))}(_))}function H_(d,_,C){return d.createElement(_,C)}function l_(d,_){ke(d,_,_[Ba],2,null,null)}function c_(d,_){const C=d[Kr],D=C.indexOf(_);C.splice(D,1)}function be(d,_){if(d.length<=la)return;const C=la+_,D=d[C];if(D){const z=D[bc];null!==z&&z!==d&&c_(z,D),_>0&&(d[C-1][Cl]=D[Cl]);const ce=Pc(d,la+_);!function Wf(d,_){l_(d,_),_[Rs]=null,_[Ql]=null}(D[Zr],D);const je=ce[Gs];null!==je&&je.detachView(ce[Zr]),D[ol]=null,D[Cl]=null,D[Na]&=-129}return D}function we(d,_){if(!(256&_[Na])){const C=_[Ba];C.destroyNode&&ke(d,_,C,3,null,null),function ym(d){let _=d[Ka];if(!_)return ie(d[Zr],d);for(;_;){let C=null;if(Ta(_))C=_[Ka];else{const D=_[la];D&&(C=D)}if(!C){for(;_&&!_[Cl]&&_!==d;)Ta(_)&&ie(_[Zr],_),_=_[ol];null===_&&(_=d),Ta(_)&&ie(_[Zr],_),C=_&&_[Cl]}_=C}}(_)}}function ie(d,_){if(!(256&_[Na])){_[Na]&=-129,_[Na]|=256,_[rl]&&J(_[rl]),function Rt(d,_){let C;if(null!=d&&null!=(C=d.destroyHooks))for(let D=0;D<C.length;D+=2){const z=_[C[D]];if(!(z instanceof tc)){const ce=C[D+1];if(Array.isArray(ce))for(let je=0;je<ce.length;je+=2){const _t=z[ce[je]],Ut=ce[je+1];No(4,_t,Ut);try{Ut.call(_t)}finally{No(5,_t,Ut)}}else{No(4,z,ce);try{ce.call(z)}finally{No(5,z,ce)}}}}}(d,_),function Ge(d,_){const C=d.cleanup,D=_[mc];if(null!==C)for(let ce=0;ce<C.length-1;ce+=2)if("string"==typeof C[ce]){const je=C[ce+3];je>=0?D[je]():D[-je].unsubscribe(),ce+=2}else C[ce].call(D[C[ce+1]]);null!==D&&(_[mc]=null);const z=_[_a];if(null!==z){_[_a]=null;for(let ce=0;ce<z.length;ce++)(0,z[ce])()}}(d,_),1===_[Zr].type&&_[Ba].destroy();const C=_[bc];if(null!==C&&ds(_[ol])){C!==_[ol]&&c_(C,_);const D=_[Gs];null!==D&&D.detachView(d)}!function O_(d){Gp.delete(d[Dl])}(_)}}function Zn(d,_,C){return function io(d,_,C){let D=_;for(;null!==D&&40&D.type;)D=(_=D).parent;if(null===D)return C[Rs];{const{componentOffset:z}=D;if(z>-1){const{encapsulation:ce}=d.data[D.directiveStart+z];if(ce===Ti.None||ce===Ti.Emulated)return null}return Nl(D,C)}}(d,_.parent,C)}function Ro(d,_,C,D,z){d.insertBefore(_,C,D,z)}function ar(d,_,C){d.appendChild(_,C)}function Or(d,_,C,D,z){null!==D?Ro(d,_,C,D,z):ar(d,_,C)}function Ol(d,_){return d.parentNode(_)}function As(d,_,C){return kc(d,_,C)}let Vc,Ni,fr,kc=function Xs(d,_,C){return 40&d.type?Nl(d,C):null};function am(d,_,C,D){const z=Zn(d,D,_),ce=_[Ba],_t=As(D.parent||_[Ql],D,_);if(null!=z)if(Array.isArray(C))for(let Ut=0;Ut<C.length;Ut++)Or(ce,z,C[Ut],_t,!1);else Or(ce,z,C,_t,!1);void 0!==Vc&&Vc(ce,D,_,C,z)}function y(d,_){if(null!==_){const C=_.type;if(3&C)return Nl(_,d);if(4&C)return T(-1,d[_.index]);if(8&C){const D=_.child;if(null!==D)return y(d,D);{const z=d[_.index];return ds(z)?T(-1,z):Fs(z)}}if(32&C)return s_(_,d)()||Fs(d[_.index]);{const D=g(d,_);return null!==D?Array.isArray(D)?D[0]:y(Nn(d[js]),D):y(d,_.next)}}return null}function g(d,_){return null!==_?d[js][Ql].projection[_.projection]:null}function T(d,_){const C=la+d+1;if(C<_.length){const D=_[C],z=D[Zr].firstChild;if(null!==z)return y(D,z)}return _[Ml]}function De(d,_,C,D,z,ce,je){for(;null!=C;){const _t=D[C.index],Ut=C.type;if(je&&0===_&&(_t&&Tm(Fs(_t),D),C.flags|=2),32!=(32&C.flags))if(8&Ut)De(d,_,C.child,D,z,ce,!1),bp(_,d,z,_t,ce);else if(32&Ut){const Yn=s_(C,D);let Ri;for(;Ri=Yn();)bp(_,d,z,Ri,ce);bp(_,d,z,_t,ce)}else 16&Ut?Nt(d,_,D,C,z,ce):bp(_,d,z,_t,ce);C=je?C.projectionNext:C.next}}function ke(d,_,C,D,z,ce){De(C,D,d.firstChild,_,z,ce,!1)}function Nt(d,_,C,D,z,ce){const je=C[js],Ut=je[Ql].projection[D.projection];if(Array.isArray(Ut))for(let Yn=0;Yn<Ut.length;Yn++)bp(_,d,z,Ut[Yn],ce);else{let Yn=Ut;const Ri=je[ol];Vm(D)&&(Yn.flags|=128),De(d,_,Yn,Ri,z,ce,!0)}}function pi(d,_,C){""===C?d.removeAttribute(_,"class"):d.setAttribute(_,"class",C)}function Di(d,_,C){const{mergedAttrs:D,classes:z,styles:ce}=C;null!==D&&Vr(d,_,D),null!==z&&pi(d,_,z),null!==ce&&function ci(d,_,C){d.setAttribute(_,"style",C)}(d,_,ce)}function yo(d){return function lo(){if(void 0===Ni&&(Ni=null,eo.trustedTypes))try{Ni=eo.trustedTypes.createPolicy("angular",{createHTML:d=>d,createScript:d=>d,createScriptURL:d=>d})}catch{}return Ni}()?.createHTML(d)||d}function Ur(){if(void 0===fr&&(fr=null,eo.trustedTypes))try{fr=eo.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:d=>d,createScript:d=>d,createScriptURL:d=>d})}catch{}return fr}function sa(d){return Ur()?.createHTML(d)||d}function ua(d){return Ur()?.createScriptURL(d)||d}class ca{constructor(_){this.changingThisBreaksApplicationSecurity=_}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ti})`}}class pa extends ca{getTypeName(){return"HTML"}}class Xa extends ca{getTypeName(){return"Style"}}class Ma extends ca{getTypeName(){return"Script"}}class ea extends ca{getTypeName(){return"URL"}}class rs extends ca{getTypeName(){return"ResourceURL"}}function Sa(d){return d instanceof ca?d.changingThisBreaksApplicationSecurity:d}function ml(d,_){const C=function nd(d){return d instanceof ca&&d.getTypeName()||null}(d);if(null!=C&&C!==_){if("ResourceURL"===C&&"URL"===_)return!0;throw new Error(`Required a safe ${_}, got a ${C} (see ${ti})`)}return C===_}function cd(d){return new pa(d)}function sm(d){return new Xa(d)}function ju(d){return new Ma(d)}function su(d){return new ea(d)}function qd(d){return new rs(d)}class Em{constructor(_){this.inertDocumentHelper=_}getInertBodyElement(_){_="<body><remove></remove>"+_;try{const C=(new window.DOMParser).parseFromString(yo(_),"text/html").body;return null===C?this.inertDocumentHelper.getInertBodyElement(_):(C.removeChild(C.firstChild),C)}catch{return null}}}class Eu{constructor(_){this.defaultDoc=_,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(_){const C=this.inertDocument.createElement("template");return C.innerHTML=yo(_),C}}const Vd=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ad(d){return(d=String(d)).match(Vd)?d:"unsafe:"+d}function fd(d){const _={};for(const C of d.split(","))_[C]=!0;return _}function Om(...d){const _={};for(const C of d)for(const D in C)C.hasOwnProperty(D)&&(_[D]=!0);return _}const cu=fd("area,br,col,hr,img,wbr"),du=fd("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),wd=fd("rp,rt"),lm=Om(cu,Om(du,fd("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Om(wd,fd("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Om(wd,du)),Sm=fd("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),cp=Om(Sm,fd("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),fd("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Jp=fd("script,style,template");class dp{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(_){let C=_.firstChild,D=!0;for(;C;)if(C.nodeType===Node.ELEMENT_NODE?D=this.startElement(C):C.nodeType===Node.TEXT_NODE?this.chars(C.nodeValue):this.sanitizedSomething=!0,D&&C.firstChild)C=C.firstChild;else for(;C;){C.nodeType===Node.ELEMENT_NODE&&this.endElement(C);let z=this.checkClobberedElement(C,C.nextSibling);if(z){C=z;break}C=this.checkClobberedElement(C,C.parentNode)}return this.buf.join("")}startElement(_){const C=_.nodeName.toLowerCase();if(!lm.hasOwnProperty(C))return this.sanitizedSomething=!0,!Jp.hasOwnProperty(C);this.buf.push("<"),this.buf.push(C);const D=_.attributes;for(let z=0;z<D.length;z++){const ce=D.item(z),je=ce.name,_t=je.toLowerCase();if(!cp.hasOwnProperty(_t)){this.sanitizedSomething=!0;continue}let Ut=ce.value;Sm[_t]&&(Ut=Ad(Ut)),this.buf.push(" ",je,'="',Lp(Ut),'"')}return this.buf.push(">"),!0}endElement(_){const C=_.nodeName.toLowerCase();lm.hasOwnProperty(C)&&!cu.hasOwnProperty(C)&&(this.buf.push("</"),this.buf.push(C),this.buf.push(">"))}chars(_){this.buf.push(Lp(_))}checkClobberedElement(_,C){if(C&&(_.compareDocumentPosition(C)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${_.outerHTML}`);return C}}const ip=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Au=/([^\#-~ |!])/g;function Lp(d){return d.replace(/&/g,"&amp;").replace(ip,function(_){return"&#"+(1024*(_.charCodeAt(0)-55296)+(_.charCodeAt(1)-56320)+65536)+";"}).replace(Au,function(_){return"&#"+_.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let d_;function zf(d,_){let C=null;try{d_=d_||function Xd(d){const _=new Eu(d);return function lu(){try{return!!(new window.DOMParser).parseFromString(yo(""),"text/html")}catch{return!1}}()?new Em(_):_}(d);let D=_?String(_):"";C=d_.getInertBodyElement(D);let z=5,ce=D;do{if(0===z)throw new Error("Failed to sanitize html because the input is unstable");z--,D=ce,ce=C.innerHTML,C=d_.getInertBodyElement(D)}while(D!==ce);return yo((new dp).sanitizeChildren(df(C)||C))}finally{if(C){const D=df(C)||C;for(;D.firstChild;)D.removeChild(D.firstChild)}}}function df(d){return"content"in d&&function jf(d){return d.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===d.nodeName}(d)?d.content:null}var wu=function(d){return d[d.NONE=0]="NONE",d[d.HTML=1]="HTML",d[d.STYLE=2]="STYLE",d[d.SCRIPT=3]="SCRIPT",d[d.URL=4]="URL",d[d.RESOURCE_URL=5]="RESOURCE_URL",d}(wu||{});function Kf(d){const _=m_();return _?sa(_.sanitize(wu.HTML,d)||""):ml(d,"HTML")?sa(Sa(d)):zf(Qm(),$e(d))}function Ef(d){const _=m_();return _?_.sanitize(wu.URL,d)||"":ml(d,"URL")?Sa(d):Ad($e(d))}function Af(d){const _=m_();if(_)return ua(_.sanitize(wu.RESOURCE_URL,d)||"");if(ml(d,"ResourceURL"))return ua(Sa(d));throw new Xt(904,!1)}function ag(d,_,C){return function Cg(d,_){return"src"===_&&("embed"===d||"frame"===d||"iframe"===d||"media"===d||"script"===d)||"href"===_&&("base"===d||"link"===d)?Af:Ef}(_,C)(d)}function m_(){const d=Mt();return d&&d[Ps].sanitizer}class Df{}let Mg=()=>null;function Xf(d,_,C=!1){return Mg(d,_,C)}class xh{}class Nf{}class Ag{resolveComponentFactory(_){throw function Uf(d){const _=Error(`No component factory found for ${nn(d)}.`);return _.ngComponent=d,_}(_)}}let V_=(()=>{class d{static#e=this.NULL=new Ag}return d})();function Bf(){return Tt(bi(),Mt())}function Tt(d,_){return new zt(Nl(d,_))}let zt=(()=>{class d{constructor(C){this.nativeElement=C}static#e=this.__NG_ELEMENT_ID__=Bf}return d})();function on(d){return d instanceof zt?d.nativeElement:d}class hn{}let Gn=(()=>{class d{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function Gi(){const d=Mt(),C=ll(bi().index,d);return(Ta(C)?C:d)[Ba]}()}return d})(),Po=(()=>{class d{static#e=this.\u0275prov=_n({token:d,providedIn:"root",factory:()=>null})}return d})();const er={};function va(d,_){const C=function ee(d){const _=Object.create(Ke);_.computation=d;const C=()=>{if(I(_),m(_),_.value===ge)throw _.error;return _.value};return C[t]=_,C}(d);return _?.equal&&(C[t].equal=_.equal),C}function gl(d,_){const C=function Se(d){const _=Object.create(lt);_.value=d;const C=()=>(m(_),_.value);return C[t]=_,C}(d),D=C[t];return _?.equal&&(D.equal=_.equal),C.set=z=>et(D,z),C.update=z=>function Et(d,_){O()||R(),et(d,_(d.value))}(D,z),C.asReadonly=Fl.bind(C),C}function Fl(){const d=this[t];if(void 0===d.readonlyFn){const _=()=>this();_[t]=d,d.readonlyFn=_}return d.readonlyFn}function Zl(d){const _=p(null);try{return d()}finally{p(_)}}function Yc(d){return!!jm(d)&&(Array.isArray(d)||!(d instanceof Map)&&Symbol.iterator in d)}function jm(d){return null!==d&&("function"==typeof d||"object"==typeof d)}class up{constructor(){}supports(_){return Yc(_)}create(_){return new u_(_)}}const T_=(d,_)=>_;class u_{constructor(_){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=_||T_}forEachItem(_){let C;for(C=this._itHead;null!==C;C=C._next)_(C)}forEachOperation(_){let C=this._itHead,D=this._removalsHead,z=0,ce=null;for(;C||D;){const je=!D||C&&C.currentIndex<Zf(D,z,ce)?C:D,_t=Zf(je,z,ce),Ut=je.currentIndex;if(je===D)z--,D=D._nextRemoved;else if(C=C._next,null==je.previousIndex)z++;else{ce||(ce=[]);const Yn=_t-z,Ri=Ut-z;if(Yn!=Ri){for(let Zo=0;Zo<Yn;Zo++){const qo=Zo<ce.length?ce[Zo]:ce[Zo]=0,Er=qo+Zo;Ri<=Er&&Er<Yn&&(ce[Zo]=qo+1)}ce[je.previousIndex]=Ri-Yn}}_t!==Ut&&_(je,_t,Ut)}}forEachPreviousItem(_){let C;for(C=this._previousItHead;null!==C;C=C._nextPrevious)_(C)}forEachAddedItem(_){let C;for(C=this._additionsHead;null!==C;C=C._nextAdded)_(C)}forEachMovedItem(_){let C;for(C=this._movesHead;null!==C;C=C._nextMoved)_(C)}forEachRemovedItem(_){let C;for(C=this._removalsHead;null!==C;C=C._nextRemoved)_(C)}forEachIdentityChange(_){let C;for(C=this._identityChangesHead;null!==C;C=C._nextIdentityChange)_(C)}diff(_){if(null==_&&(_=[]),!Yc(_))throw new Xt(900,!1);return this.check(_)?this:null}onDestroy(){}check(_){this._reset();let z,ce,je,C=this._itHead,D=!1;if(Array.isArray(_)){this.length=_.length;for(let _t=0;_t<this.length;_t++)ce=_[_t],je=this._trackByFn(_t,ce),null!==C&&Object.is(C.trackById,je)?(D&&(C=this._verifyReinsertion(C,ce,je,_t)),Object.is(C.item,ce)||this._addIdentityChange(C,ce)):(C=this._mismatch(C,ce,je,_t),D=!0),C=C._next}else z=0,function cm(d,_){if(Array.isArray(d))for(let C=0;C<d.length;C++)_(d[C]);else{const C=d[Symbol.iterator]();let D;for(;!(D=C.next()).done;)_(D.value)}}(_,_t=>{je=this._trackByFn(z,_t),null!==C&&Object.is(C.trackById,je)?(D&&(C=this._verifyReinsertion(C,_t,je,z)),Object.is(C.item,_t)||this._addIdentityChange(C,_t)):(C=this._mismatch(C,_t,je,z),D=!0),C=C._next,z++}),this.length=z;return this._truncate(C),this.collection=_,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let _;for(_=this._previousItHead=this._itHead;null!==_;_=_._next)_._nextPrevious=_._next;for(_=this._additionsHead;null!==_;_=_._nextAdded)_.previousIndex=_.currentIndex;for(this._additionsHead=this._additionsTail=null,_=this._movesHead;null!==_;_=_._nextMoved)_.previousIndex=_.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(_,C,D,z){let ce;return null===_?ce=this._itTail:(ce=_._prev,this._remove(_)),null!==(_=null===this._unlinkedRecords?null:this._unlinkedRecords.get(D,null))?(Object.is(_.item,C)||this._addIdentityChange(_,C),this._reinsertAfter(_,ce,z)):null!==(_=null===this._linkedRecords?null:this._linkedRecords.get(D,z))?(Object.is(_.item,C)||this._addIdentityChange(_,C),this._moveAfter(_,ce,z)):_=this._addAfter(new kp(C,D),ce,z),_}_verifyReinsertion(_,C,D,z){let ce=null===this._unlinkedRecords?null:this._unlinkedRecords.get(D,null);return null!==ce?_=this._reinsertAfter(ce,_._prev,z):_.currentIndex!=z&&(_.currentIndex=z,this._addToMoves(_,z)),_}_truncate(_){for(;null!==_;){const C=_._next;this._addToRemovals(this._unlink(_)),_=C}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(_,C,D){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(_);const z=_._prevRemoved,ce=_._nextRemoved;return null===z?this._removalsHead=ce:z._nextRemoved=ce,null===ce?this._removalsTail=z:ce._prevRemoved=z,this._insertAfter(_,C,D),this._addToMoves(_,D),_}_moveAfter(_,C,D){return this._unlink(_),this._insertAfter(_,C,D),this._addToMoves(_,D),_}_addAfter(_,C,D){return this._insertAfter(_,C,D),this._additionsTail=null===this._additionsTail?this._additionsHead=_:this._additionsTail._nextAdded=_,_}_insertAfter(_,C,D){const z=null===C?this._itHead:C._next;return _._next=z,_._prev=C,null===z?this._itTail=_:z._prev=_,null===C?this._itHead=_:C._next=_,null===this._linkedRecords&&(this._linkedRecords=new Wd),this._linkedRecords.put(_),_.currentIndex=D,_}_remove(_){return this._addToRemovals(this._unlink(_))}_unlink(_){null!==this._linkedRecords&&this._linkedRecords.remove(_);const C=_._prev,D=_._next;return null===C?this._itHead=D:C._next=D,null===D?this._itTail=C:D._prev=C,_}_addToMoves(_,C){return _.previousIndex===C||(this._movesTail=null===this._movesTail?this._movesHead=_:this._movesTail._nextMoved=_),_}_addToRemovals(_){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Wd),this._unlinkedRecords.put(_),_.currentIndex=null,_._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=_,_._prevRemoved=null):(_._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=_),_}_addIdentityChange(_,C){return _.item=C,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=_:this._identityChangesTail._nextIdentityChange=_,_}}class kp{constructor(_,C){this.item=_,this.trackById=C,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class p_{constructor(){this._head=null,this._tail=null}add(_){null===this._head?(this._head=this._tail=_,_._nextDup=null,_._prevDup=null):(this._tail._nextDup=_,_._prevDup=this._tail,_._nextDup=null,this._tail=_)}get(_,C){let D;for(D=this._head;null!==D;D=D._nextDup)if((null===C||C<=D.currentIndex)&&Object.is(D.trackById,_))return D;return null}remove(_){const C=_._prevDup,D=_._nextDup;return null===C?this._head=D:C._nextDup=D,null===D?this._tail=C:D._prevDup=C,null===this._head}}class Wd{constructor(){this.map=new Map}put(_){const C=_.trackById;let D=this.map.get(C);D||(D=new p_,this.map.set(C,D)),D.add(_)}get(_,C){const z=this.map.get(_);return z?z.get(_,C):null}remove(_){const C=_.trackById;return this.map.get(C).remove(_)&&this.map.delete(C),_}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Zf(d,_,C){const D=d.previousIndex;if(null===D)return D;let z=0;return C&&D<C.length&&(z=C[D]),D+_+z}class Hf{constructor(){}supports(_){return _ instanceof Map||jm(_)}create(){return new Yp}}class Yp{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(_){let C;for(C=this._mapHead;null!==C;C=C._next)_(C)}forEachPreviousItem(_){let C;for(C=this._previousMapHead;null!==C;C=C._nextPrevious)_(C)}forEachChangedItem(_){let C;for(C=this._changesHead;null!==C;C=C._nextChanged)_(C)}forEachAddedItem(_){let C;for(C=this._additionsHead;null!==C;C=C._nextAdded)_(C)}forEachRemovedItem(_){let C;for(C=this._removalsHead;null!==C;C=C._nextRemoved)_(C)}diff(_){if(_){if(!(_ instanceof Map||jm(_)))throw new Xt(900,!1)}else _=new Map;return this.check(_)?this:null}onDestroy(){}check(_){this._reset();let C=this._mapHead;if(this._appendAfter=null,this._forEach(_,(D,z)=>{if(C&&C.key===z)this._maybeAddToChanges(C,D),this._appendAfter=C,C=C._next;else{const ce=this._getOrCreateRecordForKey(z,D);C=this._insertBeforeOrAppend(C,ce)}}),C){C._prev&&(C._prev._next=null),this._removalsHead=C;for(let D=C;null!==D;D=D._nextRemoved)D===this._mapHead&&(this._mapHead=null),this._records.delete(D.key),D._nextRemoved=D._next,D.previousValue=D.currentValue,D.currentValue=null,D._prev=null,D._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(_,C){if(_){const D=_._prev;return C._next=_,C._prev=D,_._prev=C,D&&(D._next=C),_===this._mapHead&&(this._mapHead=C),this._appendAfter=_,_}return this._appendAfter?(this._appendAfter._next=C,C._prev=this._appendAfter):this._mapHead=C,this._appendAfter=C,null}_getOrCreateRecordForKey(_,C){if(this._records.has(_)){const z=this._records.get(_);this._maybeAddToChanges(z,C);const ce=z._prev,je=z._next;return ce&&(ce._next=je),je&&(je._prev=ce),z._next=null,z._prev=null,z}const D=new Lr(_);return this._records.set(_,D),D.currentValue=C,this._addToAdditions(D),D}_reset(){if(this.isDirty){let _;for(this._previousMapHead=this._mapHead,_=this._previousMapHead;null!==_;_=_._next)_._nextPrevious=_._next;for(_=this._changesHead;null!==_;_=_._nextChanged)_.previousValue=_.currentValue;for(_=this._additionsHead;null!=_;_=_._nextAdded)_.previousValue=_.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(_,C){Object.is(C,_.currentValue)||(_.previousValue=_.currentValue,_.currentValue=C,this._addToChanges(_))}_addToAdditions(_){null===this._additionsHead?this._additionsHead=this._additionsTail=_:(this._additionsTail._nextAdded=_,this._additionsTail=_)}_addToChanges(_){null===this._changesHead?this._changesHead=this._changesTail=_:(this._changesTail._nextChanged=_,this._changesTail=_)}_forEach(_,C){_ instanceof Map?_.forEach(C):Object.keys(_).forEach(D=>C(_[D],D))}}class Lr{constructor(_){this.key=_,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Ha(){return new ws([new up])}let ws=(()=>{class d{static#e=this.\u0275prov=_n({token:d,providedIn:"root",factory:Ha});constructor(C){this.factories=C}static create(C,D){if(null!=D){const z=D.factories.slice();C=C.concat(z)}return new d(C)}static extend(C){return{provide:d,useFactory:D=>d.create(C,D||Ha()),deps:[[d,new Im,new Jm]]}}find(C){const D=this.factories.find(z=>z.supports(C));if(null!=D)return D;throw new Xt(901,!1)}}return d})();function Wl(){return new vl([new Hf])}let vl=(()=>{class d{static#e=this.\u0275prov=_n({token:d,providedIn:"root",factory:Wl});constructor(C){this.factories=C}static create(C,D){if(D){const z=D.factories.slice();C=C.concat(z)}return new d(C)}static extend(C){return{provide:d,useFactory:D=>d.create(C,D||Wl()),deps:[[d,new Im,new Jm]]}}find(C){const D=this.factories.find(z=>z.supports(C));if(D)return D;throw new Xt(901,!1)}}return d})();function dd(d,_,C,D,z=!1){for(;null!==C;){const ce=_[C.index];null!==ce&&D.push(Fs(ce)),ds(ce)&&Fc(ce,D);const je=C.type;if(8&je)dd(d,_,C.child,D);else if(32&je){const _t=s_(C,_);let Ut;for(;Ut=_t();)D.push(Ut)}else if(16&je){const _t=g(_,C);if(Array.isArray(_t))D.push(..._t);else{const Ut=Nn(_[js]);dd(Ut[Zr],Ut,_t,D,!0)}}C=z?C.projectionNext:C.next}return D}function Fc(d,_){for(let C=la;C<d.length;C++){const D=d[C],z=D[Zr].firstChild;null!==z&&dd(D[Zr],D,z,_)}d[Ml]!==d[Rs]&&_.push(d[Ml])}let Hl=[];const E_={...u,consumerIsAlwaysLive:!0,consumerMarkedDirty:d=>{dn(d.lView)},consumerOnSignalRead(){this.lView[rl]=this}};function uf(d){return pf(d[Ka])}function z_(d){return pf(d[Cl])}function pf(d){for(;null!==d&&!ds(d);)d=d[Cl];return d}function pg(d){return d.ngOriginalError}class j_{constructor(){this._console=console}handleError(_){const C=this._findOriginalError(_);this._console.error("ERROR",_),C&&this._console.error("ORIGINAL ERROR",C)}_findOriginalError(_){let C=_&&pg(_);for(;C&&pg(C);)C=pg(C);return C||null}}const Yg=new In("",{providedIn:"root",factory:()=>ka(j_).handleError.bind(void 0)}),Wg=new In("",{providedIn:"root",factory:()=>!1}),zl={};function yh(d=1){Oh(fn(),Mt(),Vl()+d,!1)}function Oh(d,_,C,D){if(!D)if(3==(3&_[Na])){const ce=d.preOrderCheckHooks;null!==ce&&vd(_,ce,C)}else{const ce=d.preOrderHooks;null!==ce&&bd(_,ce,0,C)}zc(C)}function eg(d,_=$n.Default){const C=Mt();return null===C?Ds(d,_):yd(bi(),C,Li(d),_)}function te(){throw new Error("invalid")}function Pn(d,_,C,D,z,ce){const je=p(null);try{let _t=null;z&$o.SignalBased&&(_t=_[D][t]),null!==_t&&void 0!==_t.transformFn&&(ce=_t.transformFn(ce)),z&$o.HasDecoratorInputTransform&&(ce=d.inputTransforms[D].call(_,ce)),null!==d.setInput?d.setInput(_,_t,ce,C,D):Ki(_,_t,D,ce)}finally{p(je)}}function _e(d,_,C,D,z,ce,je,_t,Ut,Yn,Ri){const so=_.blueprint.slice();return so[Rs]=z,so[Na]=204|D,(null!==Yn||d&&2048&d[Na])&&(so[Na]|=2048),wc(so),so[ol]=so[$s]=d,so[os]=C,so[Ps]=je||d&&d[Ps],so[Ba]=_t||d&&d[Ba],so[ps]=Ut||d&&d[ps]||null,so[Ql]=ce,so[Dl]=function nf(){return Cf++}(),so[Ho]=Ri,so[Yr]=Yn,so[js]=2==_.type?d[js]:so,so}function Me(d,_,C,D,z){let ce=d.data[_];if(null===ce)ce=function Ln(d,_,C,D,z){const ce=zi(),je=Ye(),Ut=d.data[_]=function Rv(d,_,C,D,z,ce){let je=_?_.injectorIndex:-1,_t=0;return k()&&(_t|=128),{type:C,index:D,insertBeforeIndex:null,injectorIndex:je,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:_t,providerIndexes:0,value:z,attrs:ce,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:_,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,je?ce:ce&&ce.parent,C,_,D,z);return null===d.firstChild&&(d.firstChild=Ut),null!==ce&&(je?null==ce.child&&null!==Ut.parent&&(ce.child=Ut):null===ce.next&&(ce.next=Ut,Ut.prev=ce)),Ut}(d,_,C,D,z),function br(){return Ci.lFrame.inI18n}()&&(ce.flags|=32);else if(64&ce.type){ce.type=C,ce.value=D,ce.attrs=z;const je=function Be(){const d=Ci.lFrame,_=d.currentTNode;return d.isParent?_:_.parent}();ce.injectorIndex=null===je?-1:je.injectorIndex}return pt(ce,!0),ce}function to(d,_,C,D){if(0===C)return-1;const z=_.length;for(let ce=0;ce<C;ce++)_.push(D),d.blueprint.push(D),d.data.push(null);return z}function ha(d,_,C,D,z){const ce=Vl(),je=2&D;try{zc(-1),je&&_.length>ya&&Oh(d,_,ya,!1),No(je?2:0,z),C(D,z)}finally{zc(ce),No(je?3:1,z)}}function zs(d,_,C){if(bs(_)){const D=p(null);try{const ce=_.directiveEnd;for(let je=_.directiveStart;je<ce;je++){const _t=d.data[je];_t.contentQueries&&_t.contentQueries(1,C[je],je)}}finally{p(D)}}}function cc(d,_,C){h()&&(function Hv(d,_,C,D){const z=C.directiveStart,ce=C.directiveEnd;sl(C)&&function zv(d,_,C){const D=Nl(_,d),z=id(C);let je=16;C.signals?je=4096:C.onPush&&(je=64);const _t=Ph(d,_e(d,z,null,je,D,_,null,d[Ps].rendererFactory.createRenderer(D,C),null,null,null));d[_.index]=_t}(_,C,d.data[z+C.componentOffset]),d.firstCreatePass||_m(C,_),Tm(D,_);const je=C.initialInputs;for(let _t=z;_t<ce;_t++){const Ut=d.data[_t],Yn=Od(_,d,_t,C);Tm(Yn,_),null!==je&&jv(0,_t-z,Yn,Ut,0,je),gr(Ut)&&(ll(C.index,_)[os]=Od(_,d,_t,C))}}(d,_,C,Nl(C,_)),64==(64&C.flags)&&m1(d,_,C))}function Gl(d,_,C=Nl){const D=_.localNames;if(null!==D){let z=_.index+1;for(let ce=0;ce<D.length;ce+=2){const je=D[ce+1],_t=-1===je?C(_,d):d[je];d[z++]=_t}}}function id(d){const _=d.tView;return null===_||_.incompleteFirstPass?d.tView=zd(1,null,d.template,d.decls,d.vars,d.directiveDefs,d.pipeDefs,d.viewQuery,d.schemas,d.consts,d.id):_}function zd(d,_,C,D,z,ce,je,_t,Ut,Yn,Ri){const so=ya+D,Zo=so+z,qo=function Fm(d,_){const C=[];for(let D=0;D<_;D++)C.push(D<d?null:zl);return C}(so,Zo),Er="function"==typeof Yn?Yn():Yn;return qo[Zr]={type:d,blueprint:qo,template:C,queries:null,viewQuery:_t,declTNode:_,data:qo.slice().fill(null,so),bindingStartIndex:so,expandoStartIndex:Zo,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof ce?ce():ce,pipeRegistry:"function"==typeof je?je():je,firstChild:null,schemas:Ut,consts:Er,incompleteFirstPass:!1,ssrId:Ri}}let Su=()=>null;function s1(d,_,C,D,z){for(let ce in _){if(!_.hasOwnProperty(ce))continue;const je=_[ce];if(void 0===je)continue;D??={};let _t,Ut=$o.None;Array.isArray(je)?(_t=je[0],Ut=je[1]):_t=je;let Yn=ce;if(null!==z){if(!z.hasOwnProperty(ce))continue;Yn=z[ce]}0===d?l1(D,C,Yn,_t,Ut):l1(D,C,Yn,_t)}return D}function l1(d,_,C,D,z){let ce;d.hasOwnProperty(C)?(ce=d[C]).push(_,D):ce=d[C]=[_,D],void 0!==z&&ce.push(z)}function __(d,_,C,D,z,ce,je,_t){const Ut=Nl(_,C);let Ri,Yn=_.inputs;!_t&&null!=Yn&&(Ri=Yn[D])?(gx(d,C,Ri,D,z),sl(_)&&function Nv(d,_){const C=ll(_,d);16&C[Na]||(C[Na]|=64)}(C,_.index)):3&_.type&&(D=function kv(d){return"class"===d?"className":"for"===d?"htmlFor":"formaction"===d?"formAction":"innerHtml"===d?"innerHTML":"readonly"===d?"readOnly":"tabindex"===d?"tabIndex":d}(D),z=null!=je?je(z,_.value||"",D):z,ce.setProperty(Ut,D,z))}function ux(d,_,C,D){if(h()){const z=null===D?null:{"":-1},ce=function Jv(d,_){const C=d.directiveRegistry;let D=null,z=null;if(C)for(let ce=0;ce<C.length;ce++){const je=C[ce];if(Qr(_,je.selectors,!1))if(D||(D=[]),gr(je))if(null!==je.findHostDirectiveDefs){const _t=[];z=z||new Map,je.findHostDirectiveDefs(je,_t,z),D.unshift(..._t,je),px(d,_,_t.length)}else D.unshift(je),px(d,_,0);else z=z||new Map,je.findHostDirectiveDefs?.(je,D,z),D.push(je)}return null===D?null:[D,z]}(d,C);let je,_t;null===ce?je=_t=null:[je,_t]=ce,null!==je&&d1(d,_,C,je,z,_t),z&&function Qv(d,_,C){if(_){const D=d.localNames=[];for(let z=0;z<_.length;z+=2){const ce=C[_[z+1]];if(null==ce)throw new Xt(-301,!1);D.push(_[z],ce)}}}(C,D,z)}C.mergedAttrs=ma(C.mergedAttrs,C.attrs)}function d1(d,_,C,D,z,ce){for(let Yn=0;Yn<D.length;Yn++)sd(_m(C,_),d,D[Yn].type);!function Yv(d,_,C){d.flags|=1,d.directiveStart=_,d.directiveEnd=_+C,d.providerIndexes=_}(C,d.data.length,D.length);for(let Yn=0;Yn<D.length;Yn++){const Ri=D[Yn];Ri.providersResolver&&Ri.providersResolver(Ri)}let je=!1,_t=!1,Ut=to(d,_,D.length,null);for(let Yn=0;Yn<D.length;Yn++){const Ri=D[Yn];C.mergedAttrs=ma(C.mergedAttrs,Ri.hostAttrs),Wv(d,C,_,Ut,Ri),Vv(Ut,Ri,z),null!==Ri.contentQueries&&(C.flags|=4),(null!==Ri.hostBindings||null!==Ri.hostAttrs||0!==Ri.hostVars)&&(C.flags|=64);const so=Ri.type.prototype;!je&&(so.ngOnChanges||so.ngOnInit||so.ngDoCheck)&&((d.preOrderHooks??=[]).push(C.index),je=!0),!_t&&(so.ngOnChanges||so.ngDoCheck)&&((d.preOrderCheckHooks??=[]).push(C.index),_t=!0),Ut++}!function mx(d,_,C){const z=_.directiveEnd,ce=d.data,je=_.attrs,_t=[];let Ut=null,Yn=null;for(let Ri=_.directiveStart;Ri<z;Ri++){const so=ce[Ri],Zo=C?C.get(so):null,Er=Zo?Zo.outputs:null;Ut=s1(0,so.inputs,Ri,Ut,Zo?Zo.inputs:null),Yn=s1(1,so.outputs,Ri,Yn,Er);const aa=null===Ut||null===je||Cn(_)?null:Kv(Ut,Ri,je);_t.push(aa)}null!==Ut&&(Ut.hasOwnProperty("class")&&(_.flags|=8),Ut.hasOwnProperty("style")&&(_.flags|=16)),_.initialInputs=_t,_.inputs=Ut,_.outputs=Yn}(d,C,ce)}function m1(d,_,C){const D=C.directiveStart,z=C.directiveEnd,ce=C.index,je=function $r(){return Ci.lFrame.currentDirectiveIndex}();try{zc(ce);for(let _t=D;_t<z;_t++){const Ut=d.data[_t],Yn=_[_t];Rr(_t),(null!==Ut.hostBindings||0!==Ut.hostVars||null!==Ut.hostAttrs)&&Gv(Ut,Yn)}}finally{zc(-1),Rr(je)}}function Gv(d,_){null!==d.hostBindings&&d.hostBindings(1,_)}function px(d,_,C){_.componentOffset=C,(d.components??=[]).push(_.index)}function Vv(d,_,C){if(C){if(_.exportAs)for(let D=0;D<_.exportAs.length;D++)C[_.exportAs[D]]=d;gr(_)&&(C[""]=d)}}function Wv(d,_,C,D,z){d.data[D]=z;const ce=z.factory||(z.factory=Mi(z.type)),je=new tc(ce,gr(z),eg);d.blueprint[D]=je,C[D]=je,function Bv(d,_,C,D,z){const ce=z.hostBindings;if(ce){let je=d.hostBindingOpCodes;null===je&&(je=d.hostBindingOpCodes=[]);const _t=~_.index;(function Zv(d){let _=d.length;for(;_>0;){const C=d[--_];if("number"==typeof C&&C<0)return C}return 0})(je)!=_t&&je.push(_t),je.push(C,D,ce)}}(d,_,D,to(d,C,z.hostVars,zl),z)}function _f(d,_,C,D,z,ce){const je=Nl(d,_);!function _x(d,_,C,D,z,ce,je){if(null==ce)d.removeAttribute(_,z,C);else{const _t=null==je?$e(ce):je(ce,D||"",z);d.setAttribute(_,z,_t,C)}}(_[Ba],je,ce,d.value,C,D,z)}function jv(d,_,C,D,z,ce){const je=ce[_];if(null!==je)for(let _t=0;_t<je.length;)Pn(D,C,je[_t++],je[_t++],je[_t++],je[_t++])}function Kv(d,_,C){let D=null,z=0;for(;z<C.length;){const ce=C[z];if(0!==ce)if(5!==ce){if("number"==typeof ce)break;if(d.hasOwnProperty(ce)){null===D&&(D=[]);const je=d[ce];for(let _t=0;_t<je.length;_t+=3)if(je[_t]===_){D.push(ce,je[_t+1],je[_t+2],C[z+1]);break}}z+=2}else z+=2;else z+=4}return D}function u1(d,_,C,D){return[d,!0,0,_,null,D,null,C,null,null]}function p1(d,_){const C=d.contentQueries;if(null!==C){const D=p(null);try{for(let z=0;z<C.length;z+=2){const je=C[z+1];if(-1!==je){const _t=d.data[je];Ys(C[z]),_t.contentQueries(2,_[je],je)}}}finally{p(D)}}}function Ph(d,_){return d[Ka]?d[vc][Cl]=_:d[Ka]=_,d[vc]=_,_}function fx(d,_,C){Ys(0);const D=p(null);try{_(d,C)}finally{p(D)}}function _1(d){return d[mc]||(d[mc]=[])}function f1(d){return d.cleanup||(d.cleanup=[])}function g1(d,_,C){return(null===d||gr(d))&&(C=function il(d){for(;Array.isArray(d);){if("object"==typeof d[Pl])return d;d=d[Rs]}return null}(C[_.index])),C[Ba]}function Mh(d,_){const C=d[ps],D=C?C.get(j_,null):null;D&&D.handleError(_)}function gx(d,_,C,D,z){for(let ce=0;ce<C.length;){const je=C[ce++],_t=C[ce++],Ut=C[ce++];Pn(d.data[je],_[je],D,_t,Ut,z)}}function Qf(d,_,C){const D=ac(_,d);!function M_(d,_,C){d.setValue(_,C)}(d[Ba],D,C)}function x1(d,_,C,D){const z=_[Na];if(256==(256&z))return;_[Ps].inlineEffectRunner?.flush(),ic(_);let je=null,_t=null;(function qv(d){return 2!==d.type})(d)&&(_t=function uu(d){return d[rl]??function Y_(d){const _=Hl.pop()??Object.create(E_);return _.lView=d,_}(d)}(_),je=G(_t));try{wc(_),function ko(d){return Ci.lFrame.bindingIndex=d}(d.bindingStartIndex),null!==C&&ha(d,_,C,2,D);const Ut=3==(3&z);if(Ut){const so=d.preOrderCheckHooks;null!==so&&vd(_,so,null)}else{const so=d.preOrderHooks;null!==so&&bd(_,so,0,null),Sd(_,0)}if(function Xv(d){for(let _=uf(d);null!==_;_=z_(_)){if(!(_[Na]&ks.HasTransplantedViews))continue;const C=_[Kr];for(let D=0;D<C.length;D++){nm(C[D])}}}(_),v1(_,0),null!==d.contentQueries&&p1(d,_),Ut){const so=d.contentCheckHooks;null!==so&&vd(_,so)}else{const so=d.contentHooks;null!==so&&bd(_,so,1),Sd(_,1)}!function E(d,_){const C=d.hostBindingOpCodes;if(null!==C)try{for(let D=0;D<C.length;D++){const z=C[D];if(z<0)zc(~z);else{const ce=z,je=C[++D],_t=C[++D];ga(je,ce),_t(2,_[ce])}}}finally{zc(-1)}}(d,_);const Yn=d.components;null!==Yn&&C1(_,Yn,0);const Ri=d.viewQuery;if(null!==Ri&&fx(2,Ri,D),Ut){const so=d.viewCheckHooks;null!==so&&vd(_,so)}else{const so=d.viewHooks;null!==so&&bd(_,so,2),Sd(_,2)}if(!0===d.firstUpdatePass&&(d.firstUpdatePass=!1),_[ts]){for(const so of _[ts])so();_[ts]=null}_[Na]&=-73}catch(Ut){throw dn(_),Ut}finally{null!==_t&&(B(_t,je),function W_(d){d.lView[rl]!==d&&(d.lView=null,Hl.push(d))}(_t)),Wc()}}function v1(d,_){for(let C=uf(d);null!==C;C=z_(C))for(let D=la;D<C.length;D++)b1(C[D],_)}function e0(d,_,C){b1(ll(_,d),C)}function b1(d,_){Nc(d)&&xx(d,_)}function xx(d,_){const D=d[Zr],z=d[Na],ce=d[rl];let je=!!(0===_&&16&z);if(je||=!!(64&z&&0===_),je||=!!(1024&z),je||=!(!ce?.dirty||!ae(ce)),ce&&(ce.dirty=!1),d[Na]&=-9217,je)x1(D,d,D.template,d[os]);else if(8192&z){v1(d,1);const _t=D.components;null!==_t&&C1(d,_t,1)}}function C1(d,_,C){for(let D=0;D<_.length;D++)e0(d,_[D],C)}function Kg(d){for(d[Ps].changeDetectionScheduler?.notify();d;){d[Na]|=64;const _=Nn(d);if(Js(d)&&!_)return d;d=_}return null}class $g{get rootNodes(){const _=this._lView,C=_[Zr];return dd(C,_,C.firstChild,[])}constructor(_,C,D=!0){this._lView=_,this._cdRefInjectingView=C,this.notifyErrorHandler=D,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[os]}set context(_){this._lView[os]=_}get destroyed(){return 256==(256&this._lView[Na])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const _=this._lView[ol];if(ds(_)){const C=_[8],D=C?C.indexOf(this):-1;D>-1&&(be(_,D),Pc(C,D))}this._attachedToViewContainer=!1}we(this._lView[Zr],this._lView)}onDestroy(_){Mr(this._lView,_)}markForCheck(){Kg(this._cdRefInjectingView||this._lView)}detach(){this._lView[Na]&=-129}reattach(){Uc(this._lView),this._lView[Na]|=128}detectChanges(){this._lView[Na]|=1024,function hx(d,_=!0){const C=d[Ps],D=C.rendererFactory;D.begin?.();try{!function $v(d){xx(d,0);let _=0;for(;Ns(d);){if(100===_)throw new Xt(103,!1);_++,xx(d,1)}}(d)}catch(ce){throw _&&Mh(d,ce),ce}finally{D.end?.(),C.inlineEffectRunner?.flush()}}(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Xt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,l_(this._lView[Zr],this._lView)}attachToAppRef(_){if(this._attachedToViewContainer)throw new Xt(902,!1);this._appRef=_,Uc(this._lView)}}let y1=(()=>{class d{static#e=this.__NG_ELEMENT_ID__=t0}return d})();function t0(d){return function n0(d,_,C){if(sl(d)&&!C){const D=ll(d.index,_);return new $g(D,D)}return 47&d.type?new $g(_[js],_):null}(bi(),Mt(),16==(16&d))}let Th=(()=>{class d{static#e=this.__NG_ELEMENT_ID__=s0;static#t=this.__NG_ENV_ID__=C=>C}return d})();class a0 extends Th{constructor(_){super(),this._lView=_}onDestroy(_){return Mr(this._lView,_),()=>mn(this._lView,_)}}function s0(){return new a0(Mt())}const l0=new In("",{providedIn:"root",factory:()=>ka(c0)});let c0=(()=>{class d{static#e=this.\u0275prov=_n({token:d,providedIn:"root",factory:()=>new d0})}return d})();class d0{constructor(){this.hasQueuedFlush=!1,this.queuedEffectCount=0,this.queues=new Map}scheduleEffect(_){this.enqueue(_),this.hasQueuedFlush||(queueMicrotask(()=>this.flush()),this.hasQueuedFlush=!1)}enqueue(_){const C=_.creationZone;this.queues.has(C)||this.queues.set(C,new Set);const D=this.queues.get(C);D.has(_)||(this.queuedEffectCount++,D.add(_))}flush(){for(;this.queuedEffectCount>0;)for(const[_,C]of this.queues)null===_?this.flushQueue(C):_.run(()=>this.flushQueue(C))}flushQueue(_){for(const C of _)_.delete(C),this.queuedEffectCount--,C.run()}}class m0{constructor(_,C,D,z,ce,je){this.scheduler=_,this.effectFn=C,this.creationZone=D,this.injector=ce,this.watcher=function r(d,_,C){const D=Object.create(Pt);C&&(D.consumerAllowSignalWrites=!0),D.fn=d,D.schedule=_;const z=Ut=>{D.cleanupFn=Ut};return D.ref={notify:()=>P(D),run:()=>{if(null===D.fn)return;if(function o(){return l}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(D.dirty=!1,D.hasRun&&!ae(D))return;D.hasRun=!0;const Ut=G(D);try{D.cleanupFn(),D.cleanupFn=Z,D.fn(z)}finally{B(D,Ut)}},cleanup:()=>D.cleanupFn(),destroy:()=>function je(Ut){(function ce(Ut){return null===Ut.fn&&null===Ut.schedule})(Ut)||(J(Ut),Ut.cleanupFn(),Ut.fn=null,Ut.schedule=null,Ut.cleanupFn=Z)}(D),[t]:D},D.ref}(_t=>this.runEffect(_t),()=>this.schedule(),je),this.unregisterOnDestroy=z?.onDestroy(()=>this.destroy())}runEffect(_){try{this.effectFn(_)}catch(C){this.injector.get(j_,null,{optional:!0})?.handleError(C)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}function O1(d,_){!_?.injector&&Bp();const C=_?.injector??ka(Jc),D=!0!==_?.manualCleanup?C.get(Th):null,z=new m0(C.get(l0),d,typeof Zone>"u"?null:Zone.current,D,C,_?.allowSignalWrites??!1),ce=C.get(y1,null,{optional:!0});return ce&&8&ce._lView[Na]?(ce._lView[ts]??=[]).push(z.watcher.notify):z.watcher.notify(),z}const u0=new Set;function _g(d){u0.has(d)||(u0.add(d),performance?.mark?.("mark_feature_usage",{detail:{feature:d}}))}function bx(d){return _=>{setTimeout(d,void 0,_)}}const ff=class vx extends ye.xQ{constructor(_=!1){super(),this.__isAsync=_}emit(_){super.next(_)}subscribe(_,C,D){let z=_,ce=C||(()=>null),je=D;if(_&&"object"==typeof _){const Ut=_;z=Ut.next?.bind(Ut),ce=Ut.error?.bind(Ut),je=Ut.complete?.bind(Ut)}this.__isAsync&&(ce=bx(ce),z&&(z=bx(z)),je&&(je=bx(je)));const _t=super.subscribe({next:z,error:ce,complete:je});return _ instanceof ve.w&&_.add(_t),_t}};function P1(...d){}class pu{constructor({enableLongStackTrace:_=!1,shouldCoalesceEventChangeDetection:C=!1,shouldCoalesceRunChangeDetection:D=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ff(!1),this.onMicrotaskEmpty=new ff(!1),this.onStable=new ff(!1),this.onError=new ff(!1),typeof Zone>"u")throw new Xt(908,!1);Zone.assertZonePatched();const z=this;z._nesting=0,z._outer=z._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(z._inner=z._inner.fork(new Zone.TaskTrackingZoneSpec)),_&&Zone.longStackTraceZoneSpec&&(z._inner=z._inner.fork(Zone.longStackTraceZoneSpec)),z.shouldCoalesceEventChangeDetection=!D&&C,z.shouldCoalesceRunChangeDetection=D,z.lastRequestAnimationFrameId=-1,z.nativeRequestAnimationFrame=function p0(){const d="function"==typeof eo.requestAnimationFrame;let _=eo[d?"requestAnimationFrame":"setTimeout"],C=eo[d?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&_&&C){const D=_[Zone.__symbol__("OriginalDelegate")];D&&(_=D);const z=C[Zone.__symbol__("OriginalDelegate")];z&&(C=z)}return{nativeRequestAnimationFrame:_,nativeCancelAnimationFrame:C}}().nativeRequestAnimationFrame,function g0(d){const _=()=>{!function f0(d){d.isCheckStableRunning||-1!==d.lastRequestAnimationFrameId||(d.lastRequestAnimationFrameId=d.nativeRequestAnimationFrame.call(eo,()=>{d.fakeTopEventTask||(d.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{d.lastRequestAnimationFrameId=-1,yx(d),d.isCheckStableRunning=!0,Cx(d),d.isCheckStableRunning=!1},void 0,()=>{},()=>{})),d.fakeTopEventTask.invoke()}),yx(d))}(d)};d._inner=d._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(C,D,z,ce,je,_t)=>{if(function h0(d){return!(!Array.isArray(d)||1!==d.length)&&!0===d[0].data?.__ignore_ng_zone__}(_t))return C.invokeTask(z,ce,je,_t);try{return M1(d),C.invokeTask(z,ce,je,_t)}finally{(d.shouldCoalesceEventChangeDetection&&"eventTask"===ce.type||d.shouldCoalesceRunChangeDetection)&&_(),T1(d)}},onInvoke:(C,D,z,ce,je,_t,Ut)=>{try{return M1(d),C.invoke(z,ce,je,_t,Ut)}finally{d.shouldCoalesceRunChangeDetection&&_(),T1(d)}},onHasTask:(C,D,z,ce)=>{C.hasTask(z,ce),D===z&&("microTask"==ce.change?(d._hasPendingMicrotasks=ce.microTask,yx(d),Cx(d)):"macroTask"==ce.change&&(d.hasPendingMacrotasks=ce.macroTask))},onHandleError:(C,D,z,ce)=>(C.handleError(z,ce),d.runOutsideAngular(()=>d.onError.emit(ce)),!1)})}(z)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!pu.isInAngularZone())throw new Xt(909,!1)}static assertNotInAngularZone(){if(pu.isInAngularZone())throw new Xt(909,!1)}run(_,C,D){return this._inner.run(_,C,D)}runTask(_,C,D,z){const ce=this._inner,je=ce.scheduleEventTask("NgZoneEvent: "+z,_,_0,P1,P1);try{return ce.runTask(je,C,D)}finally{ce.cancelTask(je)}}runGuarded(_,C,D){return this._inner.runGuarded(_,C,D)}runOutsideAngular(_){return this._outer.run(_)}}const _0={};function Cx(d){if(0==d._nesting&&!d.hasPendingMicrotasks&&!d.isStable)try{d._nesting++,d.onMicrotaskEmpty.emit(null)}finally{if(d._nesting--,!d.hasPendingMicrotasks)try{d.runOutsideAngular(()=>d.onStable.emit(null))}finally{d.isStable=!0}}}function yx(d){d.hasPendingMicrotasks=!!(d._hasPendingMicrotasks||(d.shouldCoalesceEventChangeDetection||d.shouldCoalesceRunChangeDetection)&&-1!==d.lastRequestAnimationFrameId)}function M1(d){d._nesting++,d.isStable&&(d.isStable=!1,d.onUnstable.emit(null))}function T1(d){d._nesting--,Cx(d)}class E1{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ff,this.onMicrotaskEmpty=new ff,this.onStable=new ff,this.onError=new ff}run(_,C,D){return _.apply(C,D)}runGuarded(_,C,D){return _.apply(C,D)}runOutsideAngular(_){return _()}runTask(_,C,D,z){return _.apply(C,D)}}var fg=function(d){return d[d.EarlyRead=0]="EarlyRead",d[d.Write=1]="Write",d[d.MixedReadWrite=2]="MixedReadWrite",d[d.Read=3]="Read",d}(fg||{});const A1={destroy(){}};function w1(d,_){const C=_?.injector??ka(Jc);mt(C)&&C.get(qg).internalCallbacks.push(d)}function D1(d,_){!_&&Bp();const C=_?.injector??ka(Jc);if(!mt(C))return A1;_g("NgAfterNextRender");const D=C.get(qg),z=D.handler??=new S1,ce=_?.phase??fg.MixedReadWrite,je=()=>{z.unregister(Ut),_t()},_t=C.get(Th).onDestroy(je),Ut=new I1(C,ce,()=>{je(),d()});return z.register(Ut),{destroy:je}}class I1{constructor(_,C,D){this.phase=C,this.callbackFn=D,this.zone=_.get(pu),this.errorHandler=_.get(j_,null,{optional:!0})}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(_){this.errorHandler?.handleError(_)}}}class S1{constructor(){this.executingCallbacks=!1,this.buckets={[fg.EarlyRead]:new Set,[fg.Write]:new Set,[fg.MixedReadWrite]:new Set,[fg.Read]:new Set},this.deferredCallbacks=new Set}register(_){(this.executingCallbacks?this.deferredCallbacks:this.buckets[_.phase]).add(_)}unregister(_){this.buckets[_.phase].delete(_),this.deferredCallbacks.delete(_)}execute(){let _=!1;this.executingCallbacks=!0;for(const C of Object.values(this.buckets))for(const D of C)_=!0,D.invoke();this.executingCallbacks=!1;for(const C of this.deferredCallbacks)this.buckets[C.phase].add(C);return this.deferredCallbacks.clear(),_}destroy(){for(const _ of Object.values(this.buckets))_.clear();this.deferredCallbacks.clear()}}let qg=(()=>{class d{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){const C=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const z of C)z();return!!this.handler?.execute()||C.length>0}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=_n({token:d,providedIn:"root",factory:()=>new d})}return d})();function b0(d,_){const C=ll(_,d),D=C[Zr];!function C0(d,_){for(let C=_.length;C<d.blueprint.length;C++)_.push(d.blueprint[C])}(D,C);const z=C[Rs];null!==z&&null===C[Ho]&&(C[Ho]=Xf(z,C[ps])),Ox(D,C,C[os])}function Ox(d,_,C){ic(_);try{const D=d.viewQuery;null!==D&&fx(1,D,C);const z=d.template;null!==z&&ha(d,_,z,1,C),d.firstCreatePass&&(d.firstCreatePass=!1),d.staticContentQueries&&p1(d,_),d.staticViewQueries&&fx(2,d.viewQuery,C);const ce=d.components;null!==ce&&function y0(d,_){for(let C=0;C<_.length;C++)b0(d,_[C])}(_,ce)}catch(D){throw d.firstCreatePass&&(d.incompleteFirstPass=!0,d.firstCreatePass=!1),D}finally{_[Na]&=-5,Wc()}}function Eh(d,_,C){let D=C?d.styles:null,z=C?d.classes:null,ce=0;if(null!==_)for(let je=0;je<_.length;je++){const _t=_[je];"number"==typeof _t?ce=_t:1==ce?z=rn(z,_t):2==ce&&(D=rn(D,_t+": "+_[++je]+";"))}C?d.styles=D:d.stylesWithoutHost=D,C?d.classes=z:d.classesWithoutHost=z}class F1 extends V_{constructor(_){super(),this.ngModule=_}resolveComponentFactory(_){const C=Ia(_);return new Xg(C,this.ngModule)}}function L1(d){const _=[];for(const C in d){if(!d.hasOwnProperty(C))continue;const D=d[C];void 0!==D&&_.push({propName:Array.isArray(D)?D[0]:D,templateName:C})}return _}class P0{constructor(_,C){this.injector=_,this.parentInjector=C}get(_,C,D){D=hs(D);const z=this.injector.get(_,er,D);return z!==er||C===er?z:this.parentInjector.get(_,C,D)}}class Xg extends Nf{get inputs(){const _=this.componentDef,C=_.inputTransforms,D=L1(_.inputs);if(null!==C)for(const z of D)C.hasOwnProperty(z.propName)&&(z.transform=C[z.propName]);return D}get outputs(){return L1(this.componentDef.outputs)}constructor(_,C){super(),this.componentDef=_,this.ngModule=C,this.componentType=_.type,this.selector=function lr(d){return d.map(xo).join(",")}(_.selectors),this.ngContentSelectors=_.ngContentSelectors?_.ngContentSelectors:[],this.isBoundToModule=!!C}create(_,C,D,z){let ce=(z=z||this.ngModule)instanceof iu?z:z?.injector;ce&&null!==this.componentDef.getStandaloneInjector&&(ce=this.componentDef.getStandaloneInjector(ce)||ce);const je=ce?new P0(_,ce):_,_t=je.get(hn,null);if(null===_t)throw new Xt(407,!1);const so={rendererFactory:_t,sanitizer:je.get(Po,null),inlineEffectRunner:null,afterRenderEventManager:je.get(qg,null),changeDetectionScheduler:je.get(Df,null)},Zo=_t.createRenderer(null,this.componentDef),qo=this.componentDef.selectors[0][0]||"div",Er=D?function Lm(d,_,C,D){const ce=D.get(Wg,!1)||C===Ti.ShadowDom,je=d.selectRootElement(_,ce);return function Iu(d){Su(d)}(je),je}(Zo,D,this.componentDef.encapsulation,je):H_(Zo,qo,function O0(d){const _=d.toLowerCase();return"svg"===_?Ar:"math"===_?"math":null}(qo));let aa=512;this.componentDef.signals?aa|=4096:this.componentDef.onPush||(aa|=16);let Qa=null;null!==Er&&(Qa=Xf(Er,je,!0));const Zs=zd(0,null,null,1,0,null,null,null,null,null,null),ta=_e(null,Zs,null,aa,null,null,so,Zo,je,null,Qa);let dc,rd;ic(ta);try{const hd=this.componentDef;let I_,CO=null;hd.findHostDirectiveDefs?(I_=[],CO=new Map,hd.findHostDirectiveDefs(hd,I_,CO),I_.push(hd)):I_=[hd];const sw=function M0(d,_){const C=d[Zr],D=ya;return d[D]=_,Me(C,D,2,"#host",null)}(ta,Er),lw=function T0(d,_,C,D,z,ce,je){const _t=z[Zr];!function E0(d,_,C,D){for(const z of d)_.mergedAttrs=ma(_.mergedAttrs,z.hostAttrs);null!==_.mergedAttrs&&(Eh(_,_.mergedAttrs,!0),null!==C&&Di(D,C,_))}(D,d,_,je);let Ut=null;null!==_&&(Ut=Xf(_,z[ps]));const Yn=ce.rendererFactory.createRenderer(_,C);let Ri=16;C.signals?Ri=4096:C.onPush&&(Ri=64);const so=_e(z,id(C),null,Ri,z[d.index],d,ce,Yn,null,null,Ut);return _t.firstCreatePass&&px(_t,d,D.length-1),Ph(z,so),z[d.index]=so}(sw,Er,hd,I_,ta,so,Zo);rd=Kl(Zs,ya),Er&&function w0(d,_,C,D){if(D)Vr(d,C,["ng-version","17.1.2"]);else{const{attrs:z,classes:ce}=function Ir(d){const _=[],C=[];let D=1,z=2;for(;D<d.length;){let ce=d[D];if("string"==typeof ce)2===z?""!==ce&&_.push(ce,d[++D]):8===z&&C.push(ce);else{if(!Jo(z))break;z=ce}D++}return{attrs:_,classes:C}}(_.selectors[0]);z&&Vr(d,C,z),ce&&ce.length>0&&pi(d,C,ce.join(" "))}}(Zo,hd,Er,D),void 0!==C&&function D0(d,_,C){const D=d.projection=[];for(let z=0;z<_.length;z++){const ce=C[z];D.push(null!=ce?Array.from(ce):null)}}(rd,this.ngContentSelectors,C),dc=function A0(d,_,C,D,z,ce){const je=bi(),_t=z[Zr],Ut=Nl(je,z);d1(_t,z,je,C,null,D);for(let Ri=0;Ri<C.length;Ri++)Tm(Od(z,_t,je.directiveStart+Ri,je),z);m1(_t,z,je),Ut&&Tm(Ut,z);const Yn=Od(z,_t,je.directiveStart+je.componentOffset,je);if(d[os]=z[os]=Yn,null!==ce)for(const Ri of ce)Ri(Yn,_);return zs(_t,je,d),Yn}(lw,hd,I_,CO,ta,[I0]),Ox(Zs,ta,null)}finally{Wc()}return new R1(this.componentType,dc,Tt(rd,ta),ta,rd)}}class R1 extends xh{constructor(_,C,D,z,ce){super(),this.location=D,this._rootLView=z,this._tNode=ce,this.previousInputValues=null,this.instance=C,this.hostView=this.changeDetectorRef=new $g(z,void 0,!1),this.componentType=_}setInput(_,C){const D=this._tNode.inputs;let z;if(null!==D&&(z=D[_])){if(this.previousInputValues??=new Map,this.previousInputValues.has(_)&&Object.is(this.previousInputValues.get(_),C))return;const ce=this._rootLView;gx(ce[Zr],ce,z,_,C),this.previousInputValues.set(_,C),Kg(ll(this._tNode.index,ce))}}get injector(){return new fc(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(_){this.hostView.onDestroy(_)}}function I0(){const d=bi();ec(Mt()[Zr],d)}function Px(d){let _=function k1(d){return Object.getPrototypeOf(d.prototype).constructor}(d.type),C=!0;const D=[d];for(;_;){let z;if(gr(d))z=_.\u0275cmp||_.\u0275dir;else{if(_.\u0275cmp)throw new Xt(903,!1);z=_.\u0275dir}if(z){if(C){D.push(z);const je=d;je.inputs=Ah(d.inputs),je.inputTransforms=Ah(d.inputTransforms),je.declaredInputs=Ah(d.declaredInputs),je.outputs=Ah(d.outputs);const _t=z.hostBindings;_t&&k0(d,_t);const Ut=z.viewQuery,Yn=z.contentQueries;if(Ut&&L0(d,Ut),Yn&&R0(d,Yn),S0(d,z),vt(d.outputs,z.outputs),gr(z)&&z.data.animation){const Ri=d.data;Ri.animation=(Ri.animation||[]).concat(z.data.animation)}}const ce=z.features;if(ce)for(let je=0;je<ce.length;je++){const _t=ce[je];_t&&_t.ngInherit&&_t(d),_t===Px&&(C=!1)}}_=Object.getPrototypeOf(_)}!function F0(d){let _=0,C=null;for(let D=d.length-1;D>=0;D--){const z=d[D];z.hostVars=_+=z.hostVars,z.hostAttrs=ma(z.hostAttrs,C=ma(C,z.hostAttrs))}}(D)}function S0(d,_){for(const C in _.inputs){if(!_.inputs.hasOwnProperty(C)||d.inputs.hasOwnProperty(C))continue;const D=_.inputs[C];if(void 0!==D&&(d.inputs[C]=D,d.declaredInputs[C]=_.declaredInputs[C],null!==_.inputTransforms)){const z=Array.isArray(D)?D[0]:D;if(!_.inputTransforms.hasOwnProperty(z))continue;d.inputTransforms??={},d.inputTransforms[z]=_.inputTransforms[z]}}}function Ah(d){return d===Hi?{}:d===Do?[]:d}function L0(d,_){const C=d.viewQuery;d.viewQuery=C?(D,z)=>{_(D,z),C(D,z)}:_}function R0(d,_){const C=d.contentQueries;d.contentQueries=C?(D,z,ce)=>{_(D,z,ce),C(D,z,ce)}:_}function k0(d,_){const C=d.hostBindings;d.hostBindings=C?(D,z)=>{_(D,z),C(D,z)}:_}function Z1(d){const _=d.inputConfig,C={};for(const D in _)if(_.hasOwnProperty(D)){const z=_[D];Array.isArray(z)&&z[3]&&(C[D]=z[3])}d.inputTransforms=C}let Y1=()=>null;function gg(d,_){return Y1(d,_)}function ih(d,_,C,D){const z=_.tView,_t=_e(d,z,C,4096&d[Na]?4096:16,null,_,null,null,null,D?.injector??null,D?.dehydratedView??null);_t[bc]=d[_.index];const Yn=d[Gs];return null!==Yn&&(_t[Gs]=Yn.createEmbeddedView(z)),Ox(z,_t,C),_t}function $_(d,_){const C=la+_;if(C<d.length)return d[C]}function hg(d,_){return!_||null===_.firstChild||Vm(d)}function oh(d,_,C,D=!0){const z=_[Zr];if(function Cp(d,_,C,D){const z=la+D,ce=C.length;D>0&&(C[z-1][Cl]=_),D<ce-la?(_[Cl]=C[z],Ic(C,la+D,_)):(C.push(_),_[Cl]=null),_[ol]=C;const je=_[bc];null!==je&&C!==je&&function G_(d,_){const C=d[Kr];_[js]!==_[ol][ol][js]&&(d[Na]|=ks.HasTransplantedViews),null===C?d[Kr]=[_]:C.push(_)}(je,_);const _t=_[Gs];null!==_t&&_t.insertView(d),Uc(_),_[Na]|=128}(z,_,d,C),D){const je=T(C,d),_t=_[Ba],Ut=Ol(_t,d[Ml]);null!==Ut&&function Tf(d,_,C,D,z,ce){D[Rs]=z,D[Ql]=_,ke(d,D,C,1,z,ce)}(z,d[Ql],_t,_,Ut,je)}const ce=_[Ho];null!==ce&&null!==ce.firstChild&&(ce.firstChild=null)}function Sx(d,_){const C=be(d,_);return void 0!==C&&we(C[Zr],C),C}let Sh=(()=>{class d{static#e=this.__NG_ELEMENT_ID__=W1}return d})();function W1(){return K1(bi(),Mt())}const lb=Sh,z1=class extends lb{constructor(_,C,D){super(),this._lContainer=_,this._hostTNode=C,this._hostLView=D}get element(){return Tt(this._hostTNode,this._hostLView)}get injector(){return new fc(this._hostTNode,this._hostLView)}get parentInjector(){const _=Um(this._hostTNode,this._hostLView);if(pm(_)){const C=Ud(_,this._hostLView),D=Ld(_);return new fc(C[Zr].data[D+8],C)}return new fc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(_){const C=j1(this._lContainer);return null!==C&&C[_]||null}get length(){return this._lContainer.length-la}createEmbeddedView(_,C,D){let z,ce;"number"==typeof D?z=D:null!=D&&(z=D.index,ce=D.injector);const je=gg(this._lContainer,_.ssrId),_t=_.createEmbeddedViewImpl(C||{},ce,je);return this.insertImpl(_t,z,hg(this._hostTNode,je)),_t}createComponent(_,C,D,z,ce){const je=_&&!function Pa(d){return"function"==typeof d}(_);let _t;if(je)_t=C;else{const Er=C||{};_t=Er.index,D=Er.injector,z=Er.projectableNodes,ce=Er.environmentInjector||Er.ngModuleRef}const Ut=je?_:new Xg(Ia(_)),Yn=D||this.parentInjector;if(!ce&&null==Ut.ngModule){const aa=(je?Yn:this.parentInjector).get(iu,null);aa&&(ce=aa)}const Ri=Ia(Ut.componentType??{}),so=gg(this._lContainer,Ri?.id??null),qo=Ut.create(Yn,z,so?.firstChild??null,ce);return this.insertImpl(qo.hostView,_t,hg(this._hostTNode,so)),qo}insert(_,C){return this.insertImpl(_,C,!0)}insertImpl(_,C,D){const z=_._lView;if(function Dd(d){return ds(d[ol])}(z)){const _t=this.indexOf(_);if(-1!==_t)this.detach(_t);else{const Ut=z[ol],Yn=new z1(Ut,Ut[Ql],Ut[ol]);Yn.detach(Yn.indexOf(_))}}const ce=this._adjustIndex(C),je=this._lContainer;return oh(je,z,ce,D),_.attachToViewContainerRef(),Ic(Fx(je),ce,_),_}move(_,C){return this.insert(_,C)}indexOf(_){const C=j1(this._lContainer);return null!==C?C.indexOf(_):-1}remove(_){const C=this._adjustIndex(_,-1),D=be(this._lContainer,C);D&&(Pc(Fx(this._lContainer),C),we(D[Zr],D))}detach(_){const C=this._adjustIndex(_,-1),D=be(this._lContainer,C);return D&&null!=Pc(Fx(this._lContainer),C)?new $g(D):null}_adjustIndex(_,C=0){return _??this.length+C}};function j1(d){return d[8]}function Fx(d){return d[8]||(d[8]=[])}function K1(d,_){let C;const D=_[d.index];return ds(D)?C=D:(C=u1(D,_,null,d),_[d.index]=C,Ph(_,C)),$1(C,_,d,D),new z1(C,d,_)}let $1=function X1(d,_,C,D){if(d[Ml])return;let z;z=8&C.type?Fs(D):function cb(d,_){const C=d[Ba],D=C.createComment(""),z=Nl(_,d);return Ro(C,Ol(C,z),D,function fl(d,_){return d.nextSibling(_)}(C,z),!1),D}(_,C),d[Ml]=z},Lx=()=>!1;function q1(d,_,C){return Lx(d,_,C)}function gf(d,_,C){return d[_]=C}function rh(d,_){return d[_]}function Fu(d,_,C){return!Object.is(d[_],C)&&(d[_]=C,!0)}function xg(d,_,C,D){const z=Fu(d,_,C);return Fu(d,_+1,D)||z}function ah(d,_,C,D,z){const ce=xg(d,_,C,D);return Fu(d,_+2,z)||ce}function A_(d,_,C,D,z,ce){const je=xg(d,_,C,D);return xg(d,_+2,z,ce)||je}function Sg(d,_,C,D,z,ce,je,_t){const Ut=Mt(),Yn=fn(),Ri=d+ya,so=Yn.firstCreatePass?function ub(d,_,C,D,z,ce,je,_t,Ut){const Yn=_.consts,Ri=Me(_,d,4,je||null,_c(Yn,_t));ux(_,C,Ri,_c(Yn,Ut)),ec(_,Ri);const so=Ri.tView=zd(2,Ri,D,z,ce,_.directiveRegistry,_.pipeRegistry,null,_.schemas,Yn,null);return null!==_.queries&&(_.queries.template(_,Ri),so.queries=_.queries.embeddedTView(Ri)),Ri}(Ri,Yn,Ut,_,C,D,z,ce,je):Yn.data[Ri];pt(so,!1);const Zo=ev(Yn,Ut,so,d);pc()&&am(Yn,Ut,Zo,so),Tm(Zo,Ut);const qo=u1(Zo,Ut,Zo,so);return Ut[Ri]=qo,Ph(Ut,qo),q1(qo,so,Ut),Ec(so)&&cc(Yn,Ut,so),null!=je&&Gl(Ut,so,_t),Sg}let ev=function tv(d,_,C,D){return Ul(!0),_[Ba].createComment("")};var _u=function(d){return d[d.NOT_STARTED=0]="NOT_STARTED",d[d.IN_PROGRESS=1]="IN_PROGRESS",d[d.COMPLETE=2]="COMPLETE",d[d.FAILED=3]="FAILED",d}(_u||{});const nv=0,EC=1;var Lu=function(d){return d[d.Placeholder=0]="Placeholder",d[d.Loading=1]="Loading",d[d.Complete=2]="Complete",d[d.Error=3]="Error",d}(Lu||{}),sh=function(d){return d[d.Initial=-1]="Initial",d}(sh||{});const Fg=0,Fh=1,lh=2,ch=3,iv=4,kx=5;var Nx=function(d){return d[d.Manual=0]="Manual",d[d.Playthrough=1]="Playthrough",d}(Nx||{});function Lh(d,_,C){const D=1===d?kx:iv;null===_[D]&&(_[D]=[]),_[D].push(C)}function Ux(d,_){const C=1===d?kx:iv,D=_[C];if(null!==D){for(const z of D)z();_[C]=null}}function Rh(d){Ux(1,d),Ux(0,d)}function kh(d){return d+1}function vg(d,_){return d[kh(_.index)]}function w_(d,_){const C=kh(_.index);return d.data[C]}function Bx(d,_){return _===Lu.Placeholder?d.placeholderBlockConfig?.[nv]??null:_===Lu.Loading?d.loadingBlockConfig?.[nv]??null:null}function rv(d){return d.loadingBlockConfig?.[EC]??null}function Zx(d,_){if(!d||0===d.length)return _;const C=new Set(d);for(const D of _)C.add(D);return d.length===C.size?d:Array.from(C)}const ng=new WeakMap;let Rg=null,Jx=0;class Qx{constructor(){this.callbacks=new Set,this.listener=()=>{for(const _ of this.callbacks)_()}}}function Vx(d,_,C){const D=C.get(pu);let z=ng.get(d);return Rg=Rg||D.runOutsideAngular(()=>new IntersectionObserver(ce=>{for(const je of ce)je.isIntersecting&&ng.has(je.target)&&D.run(ng.get(je.target).listener)})),z||(z=new Qx,D.runOutsideAngular(()=>Rg.observe(d)),ng.set(d,z),Jx++),z.callbacks.add(_),()=>{ng.has(d)&&(z.callbacks.delete(_),0===z.callbacks.size&&(Rg?.unobserve(d),ng.delete(d),Jx--),0===Jx&&(Rg?.disconnect(),Rg=null))}}function mv(d,_,C){const z=C[ps].get(uv);return z.add(d,_),()=>z.remove(_)}let uv=(()=>{class d{constructor(){this.executingCallbacks=!1,this.timeoutId=null,this.invokeTimerAt=null,this.current=[],this.deferred=[]}add(C,D){this.addToQueue(this.executingCallbacks?this.deferred:this.current,Date.now()+C,D),this.scheduleTimer()}remove(C){const{current:D,deferred:z}=this;-1===this.removeFromQueue(D,C)&&this.removeFromQueue(z,C),0===D.length&&0===z.length&&this.clearTimeout()}addToQueue(C,D,z){let ce=C.length;for(let je=0;je<C.length;je+=2)if(C[je]>D){ce=je;break}qc(C,ce,D,z)}removeFromQueue(C,D){let z=-1;for(let ce=0;ce<C.length;ce+=2)if(C[ce+1]===D){z=ce;break}return z>-1&&$c(C,z,2),z}scheduleTimer(){const C=()=>{this.clearTimeout(),this.executingCallbacks=!0;const z=[...this.current],ce=Date.now();for(let _t=0;_t<z.length;_t+=2){const Yn=z[_t+1];if(!(z[_t]<=ce))break;Yn()}let je=-1;for(let _t=0;_t<this.current.length&&this.current[_t]<=ce;_t+=2)je=_t+1;if(je>=0&&$c(this.current,0,je+1),this.executingCallbacks=!1,this.deferred.length>0){for(let _t=0;_t<this.deferred.length;_t+=2)this.addToQueue(this.current,this.deferred[_t],this.deferred[_t+1]);this.deferred.length=0}this.scheduleTimer()};if(this.current.length>0){const z=Date.now(),ce=this.current[0];if(null===this.timeoutId||this.invokeTimerAt&&this.invokeTimerAt-ce>16){this.clearTimeout();const je=Math.max(ce-z,16);this.invokeTimerAt=ce,this.timeoutId=setTimeout(C,je)}}}clearTimeout(){null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}ngOnDestroy(){this.clearTimeout(),this.current.length=0,this.deferred.length=0}static#e=this.\u0275prov=_n({token:d,providedIn:"root",factory:()=>new d})}return d})();const Pb=new In("");let Bh=null;function pv(d,_,C,D){const z=d.consts;null!=C&&(_.placeholderBlockConfig=_c(z,C)),null!=D&&(_.loadingBlockConfig=_c(z,D)),null===Bh&&(Bh=Nd)}function Yx(d,_,C,D,z,ce,je,_t,Ut){const Yn=Mt(),Ri=fn(),so=d+ya;if(Sg(d,null,0,0),Ri.firstCreatePass){_g("NgDefer");const Qa={primaryTmplIndex:_,loadingTmplIndex:D??null,placeholderTmplIndex:z??null,errorTmplIndex:ce??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:C??null,loadingState:_u.NOT_STARTED,loadingPromise:null};Ut?.(Ri,Qa,_t,je),function ov(d,_,C){const D=kh(_);d.data[D]=C}(Ri,so,Qa)}const Zo=bi();q1(Yn[so],Zo,Yn);const Er=[null,sh.Initial,null,null,null,null];!function fb(d,_,C){d[kh(_)]=C}(Yn,so,Er);const aa=()=>Rh(Er);Lh(0,Er,()=>mn(Yn,aa)),Mr(Yn,aa)}function pe(d){!function Ll(d){const _=Mt(),C=bi();Ng(_,C);const D=d(()=>Zh(_,C),_);Lh(0,vg(_,C),D)}(function dv(d){return(_,C)=>mv(d,_,C)}(d))}function vs(d,_){const C=Mt(),D=bi();Ng(C,D),function kg(d,_,C,D,z,ce,je){const _t=d[ps];w1(function Ut(){if(yl(d))return;const Yn=vg(d,_),Ri=Yn[Fh];if(Ri!==sh.Initial&&Ri!==Lu.Placeholder)return;const so=function bb(d,_,C){return null==C?d:C>=0?Id(C,d):d[_.index][la]??null}(d,_,D);if(!so)return void w1(Ut,{injector:_t});if(yl(so))return;const Zo=function Cb(d,_){return ac(ya+_,d)}(so,C),qo=z(Zo,()=>{d!==so&&mn(so,qo),ce()},_t);d!==so&&Mr(so,qo),Lh(je,Yn,qo)},{injector:_t})}(C,D,d,_,Vx,()=>Zh(C,D),0)}function xc(d,_,C,D=!1){const z=C[ol],ce=z[Zr];if(yl(z))return;const je=vg(z,_);if(pp(je[Fh],d)&&pp(je[Fg]??-1,d)){const Ut=w_(ce,_),Ri=D||null===rv(Ut)&&null===Bx(Ut,Lu.Loading)&&!Bx(Ut,Lu.Placeholder)?fu:Bh;try{Ri(d,je,C,_,z)}catch(so){Mh(z,so)}}}function fu(d,_,C,D,z){const ce=function gb(d,_,C){const z=w_(_[Zr],C);switch(d){case Lu.Complete:return z.primaryTmplIndex;case Lu.Loading:return z.loadingTmplIndex;case Lu.Error:return z.errorTmplIndex;case Lu.Placeholder:return z.placeholderTmplIndex;default:return null}}(d,z,D);if(null!==ce){_[Fh]=d;const Ut=Kl(z[Zr],ce+ya),Yn=0;Sx(C,Yn);const Ri=gg(C,Ut.tView.ssrId),so=ih(z,Ut,null,{dehydratedView:Ri});oh(C,so,Yn,hg(Ut,Ri)),Kg(so)}}function Nd(d,_,C,D,z){const ce=Date.now(),_t=w_(z[Zr],D);if(null===_[lh]||_[lh]<=ce){_[lh]=null;const Ut=rv(_t),Yn=null!==_[ch];if(d!==Lu.Loading||null===Ut||Yn){d>Lu.Loading&&Yn&&(_[ch](),_[ch]=null,_[Fg]=null),fu(d,_,C,D,z);const Ri=Bx(_t,d);null!==Ri&&(_[lh]=ce+Ri,gu(Ri,_,D,C,z))}else{_[Fg]=d;const Ri=gu(Ut,_,D,C,z);_[ch]=Ri}}else _[Fg]=d}function gu(d,_,C,D,z){return mv(d,()=>{const je=_[Fg];_[lh]=null,_[Fg]=null,null!==je&&xc(je,C,D)},z)}function pp(d,_){return d<_}function Ng(d,_){xc(Lu.Placeholder,_,d[_.index])}function Ab(d,_,C){d.loadingPromise.then(()=>{d.loadingState===_u.COMPLETE?xc(Lu.Complete,_,C):d.loadingState===_u.FAILED&&xc(Lu.Error,_,C)})}function Zh(d,_){const C=d[Zr],D=d[_.index];if(!function Uh(d){return d.get(Pb,null,{optional:!0})?.behavior!==Nx.Manual&&mt(d)}(d[ps]))return;const ce=vg(d,_),je=w_(C,_);switch(Rh(ce),je.loadingState){case _u.NOT_STARTED:xc(Lu.Loading,_,D),function _p(d,_,C){const z=_[Zr];if(d.loadingState!==_u.NOT_STARTED)return;const ce=vg(_,C),je=function hb(d,_){return Kl(d,_.primaryTmplIndex+ya)}(z,d);d.loadingState=_u.IN_PROGRESS,Ux(1,ce);let _t=d.dependencyResolverFn;d.loadingPromise=_t?Promise.allSettled(_t()).then(Ut=>{let Yn=!1;const Ri=[],so=[];for(const Zo of Ut){if("fulfilled"!==Zo.status){Yn=!0;break}{const qo=Zo.value,Er=Ia(qo)||wa(qo);if(Er)Ri.push(Er);else{const aa=Va(qo);aa&&so.push(aa)}}}if(d.loadingPromise=null,Yn){if(d.loadingState=_u.FAILED,null===d.errorTmplIndex){Sp(_);const qo=new Xt(750,!1);Mh(_,qo)}}else{d.loadingState=_u.COMPLETE;const Zo=je.tView;Ri.length>0&&(Zo.directiveRegistry=Zx(Zo.directiveRegistry,Ri)),so.length>0&&(Zo.pipeRegistry=Zx(Zo.pipeRegistry,so))}}):Promise.resolve().then(()=>{d.loadingPromise=null,d.loadingState=_u.COMPLETE})}(je,d,_),je.loadingState===_u.IN_PROGRESS&&Ab(je,_,D);break;case _u.IN_PROGRESS:xc(Lu.Loading,_,D),Ab(je,_,D);break;case _u.COMPLETE:xc(Lu.Complete,_,D);break;case _u.FAILED:xc(Lu.Error,_,D)}}function _v(d,_,C,D){const z=Mt();return Fu(z,Wo(),_)&&(fn(),_f(Il(),z,d,_,C,D)),_v}function Gh(d,_,C,D){return Fu(d,Wo(),C)?_+$e(C)+D:zl}function dh(d,_,C,D,z,ce){const _t=xg(d,gi(),C,z);return tr(2),_t?_+$e(C)+D+$e(z)+ce:zl}function fv(d,_){return d<<17|_<<2}function Ug(d){return d>>17&32767}function Db(d){return 2|d}function Bg(d){return(131068&d)>>2}function gv(d,_){return-131069&d|_<<2}function Ib(d){return 1|d}function ZC(d,_,C,D){const z=d[C+1],ce=null===_;let je=D?Ug(z):Bg(z),_t=!1;for(;0!==je&&(!1===_t||ce);){const Yn=d[je+1];HC(d[je],_)&&(_t=!0,d[je+1]=D?Ib(Yn):Db(Yn)),je=D?Ug(Yn):Bg(Yn)}_t&&(d[C+1]=D?Db(z):Ib(z))}function HC(d,_){return null===d||null==_||(Array.isArray(d)?d[1]:d)===_||!(!Array.isArray(d)||"string"!=typeof _)&&Sc(d,_)>=0}const fp={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Sb(d){return d.substring(fp.key,fp.keyEnd)}function GC(d){return d.substring(fp.value,fp.valueEnd)}function Fb(d,_){const C=fp.textEnd;return C===_?-1:(_=fp.keyEnd=function TO(d,_,C){for(;_<C&&d.charCodeAt(_)>32;)_++;return _}(d,fp.key=_,C),jh(d,_,C))}function Lb(d,_){const C=fp.textEnd;let D=fp.key=jh(d,_,C);return C===D?-1:(D=fp.keyEnd=function EO(d,_,C){let D;for(;_<C&&(45===(D=d.charCodeAt(_))||95===D||(-33&D)>=65&&(-33&D)<=90||D>=48&&D<=57);)_++;return _}(d,D,C),D=YC(d,D,C),D=fp.value=jh(d,D,C),D=fp.valueEnd=function AO(d,_,C){let D=-1,z=-1,ce=-1,je=_,_t=je;for(;je<C;){const Ut=d.charCodeAt(je++);if(59===Ut)return _t;34===Ut||39===Ut?_t=je=WC(d,Ut,je,C):_===je-4&&85===ce&&82===z&&76===D&&40===Ut?_t=je=WC(d,41,je,C):Ut>32&&(_t=je),ce=z,z=D,D=-33&Ut}return _t}(d,D,C),YC(d,D,C))}function VC(d){fp.key=0,fp.keyEnd=0,fp.value=0,fp.valueEnd=0,fp.textEnd=d.length}function jh(d,_,C){for(;_<C&&d.charCodeAt(_)<=32;)_++;return _}function YC(d,_,C,D){return(_=jh(d,_,C))<C&&_++,_}function WC(d,_,C,D){let z=-1,ce=C;for(;ce<D;){const je=d.charCodeAt(ce++);if(je==_&&92!==z)return ce;z=92==je&&92===z?0:je}throw new Error}function Rb(d,_,C){const D=Mt();return Fu(D,Wo(),_)&&__(fn(),Il(),D,d,_,D[Ba],C,!1),Rb}function kb(d,_,C,D,z){const je=z?"class":"style";gx(d,C,_.inputs[je],je,D)}function hv(d,_,C){return Yf(d,_,C,!1),hv}function Nb(d,_){return Yf(d,_,null,!0),Nb}function Vf(d){q_($C,wO,d,!1)}function wO(d,_){for(let C=function QC(d){return VC(d),Lb(d,jh(d,0,fp.textEnd))}(_);C>=0;C=Lb(_,C))$C(d,Sb(_),GC(_))}function zC(d){q_(RO,ig,d,!0)}function ig(d,_){for(let C=function JC(d){return VC(d),Fb(d,jh(d,0,fp.textEnd))}(_);C>=0;C=Fb(_,C))oc(d,Sb(_),!0)}function Yf(d,_,C,D){const z=Mt(),ce=fn(),je=tr(2);ce.firstUpdatePass&&KC(ce,d,je,D),_!==zl&&Fu(z,je,_)&&qC(ce,ce.data[Vl()],z,z[Ba],d,z[je+1]=function NO(d,_){return null==d||""===d||("string"==typeof _?d+=_:"object"==typeof d&&(d=nn(Sa(d)))),d}(_,C),D,je)}function q_(d,_,C,D){const z=fn(),ce=tr(2);z.firstUpdatePass&&KC(z,null,ce,D);const je=Mt();if(C!==zl&&Fu(je,ce,C)){const _t=z.data[Vl()];if(ey(_t,D)&&!jC(z,ce)){let Ut=D?_t.classesWithoutHost:_t.stylesWithoutHost;null!==Ut&&(C=rn(Ut,C||"")),kb(z,_t,je,C,D)}else!function kO(d,_,C,D,z,ce,je,_t){z===zl&&(z=Do);let Ut=0,Yn=0,Ri=0<z.length?z[0]:null,so=0<ce.length?ce[0]:null;for(;null!==Ri||null!==so;){const Zo=Ut<z.length?z[Ut+1]:void 0,qo=Yn<ce.length?ce[Yn+1]:void 0;let aa,Er=null;Ri===so?(Ut+=2,Yn+=2,Zo!==qo&&(Er=so,aa=qo)):null===so||null!==Ri&&Ri<so?(Ut+=2,Er=Ri):(Yn+=2,Er=so,aa=qo),null!==Er&&qC(d,_,C,D,Er,aa,je,_t),Ri=Ut<z.length?z[Ut]:null,so=Yn<ce.length?ce[Yn]:null}}(z,_t,je,je[Ba],je[ce+1],je[ce+1]=function LO(d,_,C){if(null==C||""===C)return Do;const D=[],z=Sa(C);if(Array.isArray(z))for(let ce=0;ce<z.length;ce++)d(D,z[ce],!0);else if("object"==typeof z)for(const ce in z)z.hasOwnProperty(ce)&&d(D,ce,z[ce]);else"string"==typeof z&&_(D,z);return D}(d,_,C),D,ce)}}function jC(d,_){return _>=d.expandoStartIndex}function KC(d,_,C,D){const z=d.data;if(null===z[C+1]){const ce=z[Vl()],je=jC(d,C);ey(ce,D)&&null===_&&!je&&(_=!1),_=function DO(d,_,C,D){const z=Xr(d);let ce=D?_.residualClasses:_.residualStyles;if(null===z)0===(D?_.classBindings:_.styleBindings)&&(C=Wx(C=Ub(null,d,_,C,D),_.attrs,D),ce=null);else{const je=_.directiveStylingLast;if(-1===je||d[je]!==z)if(C=Ub(z,d,_,C,D),null===ce){let Ut=function IO(d,_,C){const D=C?_.classBindings:_.styleBindings;if(0!==Bg(D))return d[Ug(D)]}(d,_,D);void 0!==Ut&&Array.isArray(Ut)&&(Ut=Ub(null,d,_,Ut[1],D),Ut=Wx(Ut,_.attrs,D),function SO(d,_,C,D){d[Ug(C?_.classBindings:_.styleBindings)]=D}(d,_,D,Ut))}else ce=function FO(d,_,C){let D;const z=_.directiveEnd;for(let ce=1+_.directiveStylingLast;ce<z;ce++)D=Wx(D,d[ce].hostAttrs,C);return Wx(D,_.attrs,C)}(d,_,D)}return void 0!==ce&&(D?_.residualClasses=ce:_.residualStyles=ce),C}(z,ce,_,D),function MO(d,_,C,D,z,ce){let je=ce?_.classBindings:_.styleBindings,_t=Ug(je),Ut=Bg(je);d[D]=C;let Ri,Yn=!1;if(Array.isArray(C)?(Ri=C[1],(null===Ri||Sc(C,Ri)>0)&&(Yn=!0)):Ri=C,z)if(0!==Ut){const Zo=Ug(d[_t+1]);d[D+1]=fv(Zo,_t),0!==Zo&&(d[Zo+1]=gv(d[Zo+1],D)),d[_t+1]=function PO(d,_){return 131071&d|_<<17}(d[_t+1],D)}else d[D+1]=fv(_t,0),0!==_t&&(d[_t+1]=gv(d[_t+1],D)),_t=D;else d[D+1]=fv(Ut,0),0===_t?_t=D:d[Ut+1]=gv(d[Ut+1],D),Ut=D;Yn&&(d[D+1]=Db(d[D+1])),ZC(d,Ri,D,!0),ZC(d,Ri,D,!1),function BC(d,_,C,D,z){const ce=z?d.residualClasses:d.residualStyles;null!=ce&&"string"==typeof _&&Sc(ce,_)>=0&&(C[D+1]=Ib(C[D+1]))}(_,Ri,d,D,ce),je=fv(_t,Ut),ce?_.classBindings=je:_.styleBindings=je}(z,ce,_,C,je,D)}}function Ub(d,_,C,D,z){let ce=null;const je=C.directiveEnd;let _t=C.directiveStylingLast;for(-1===_t?_t=C.directiveStart:_t++;_t<je&&(ce=_[_t],D=Wx(D,ce.hostAttrs,z),ce!==d);)_t++;return null!==d&&(C.directiveStylingLast=_t),D}function Wx(d,_,C){const D=C?1:2;let z=-1;if(null!==_)for(let ce=0;ce<_.length;ce++){const je=_[ce];"number"==typeof je?z=je:z===D&&(Array.isArray(d)||(d=void 0===d?[]:["",d]),oc(d,je,!!C||_[++ce]))}return void 0===d?null:d}function $C(d,_,C){oc(d,_,Sa(C))}function RO(d,_,C){const D=String(_);""!==D&&!D.includes(" ")&&oc(d,D,C)}function qC(d,_,C,D,z,ce,je,_t){if(!(3&_.type))return;const Ut=d.data,Yn=Ut[_t+1],Ri=function NC(d){return 1==(1&d)}(Yn)?XC(Ut,_,C,z,Bg(Yn),je):void 0;xv(Ri)||(xv(ce)||function OO(d){return 2==(2&d)}(Yn)&&(ce=XC(Ut,null,C,z,_t,je)),function Xn(d,_,C,D,z){if(_)z?d.addClass(C,D):d.removeClass(C,D);else{let ce=-1===D.indexOf("-")?void 0:C_.DashCase;null==z?d.removeStyle(C,D,ce):("string"==typeof z&&z.endsWith("!important")&&(z=z.slice(0,-10),ce|=C_.Important),d.setStyle(C,D,z,ce))}}(D,je,ac(Vl(),C),z,ce))}function XC(d,_,C,D,z,ce){const je=null===_;let _t;for(;z>0;){const Ut=d[z],Yn=Array.isArray(Ut),Ri=Yn?Ut[1]:Ut,so=null===Ri;let Zo=C[z+1];Zo===zl&&(Zo=so?Do:void 0);let qo=so?Zd(Zo,D):Ri===D?Zo:void 0;if(Yn&&!xv(qo)&&(qo=Zd(Ut,D)),xv(qo)&&(_t=qo,je))return _t;const Er=d[z+1];z=je?Ug(Er):Bg(Er)}if(null!==_){let Ut=ce?_.residualClasses:_.residualStyles;null!=Ut&&(_t=Zd(Ut,D))}return _t}function xv(d){return void 0!==d}function ey(d,_){return 0!=(d.flags&(_?8:16))}function ty(d,_,C){q_(oc,ig,Gh(Mt(),d,_,C),!0)}class YO{destroy(_){}updateValue(_,C){}swap(_,C){const D=Math.min(_,C),z=Math.max(_,C),ce=this.detach(z);if(z-D>1){const je=this.detach(D);this.attach(D,ce),this.attach(z,je)}else this.attach(D,ce)}move(_,C){this.attach(C,this.detach(_))}}function vv(d,_,C,D,z){return d===C&&Object.is(_,D)?1:Object.is(z(d,_),z(C,D))?-1:0}function zx(d,_,C,D){return!(void 0===_||!_.has(D)||(d.attach(C,_.get(D)),_.delete(D),0))}function iy(d,_,C,D,z){if(zx(d,_,D,C(D,z)))d.updateValue(D,z);else{const ce=d.create(D,z);d.attach(D,ce)}}function oy(d,_,C,D){const z=new Set;for(let ce=_;ce<=C;ce++)z.add(D(ce,d.at(ce)));return z}class Bb{constructor(){this.kvMap=new Map,this._vMap=void 0}has(_){return this.kvMap.has(_)}delete(_){if(!this.has(_))return!1;const C=this.kvMap.get(_);return void 0!==this._vMap&&this._vMap.has(C)?(this.kvMap.set(_,this._vMap.get(C)),this._vMap.delete(C)):this.kvMap.delete(_),!0}get(_){return this.kvMap.get(_)}set(_,C){if(this.kvMap.has(_)){let D=this.kvMap.get(_);void 0===this._vMap&&(this._vMap=new Map);const z=this._vMap;for(;z.has(D);)D=z.get(D);z.set(D,C)}else this.kvMap.set(_,C)}forEach(_){for(let[C,D]of this.kvMap)if(_(D,C),void 0!==this._vMap){const z=this._vMap;for(;z.has(D);)D=z.get(D),_(D,C)}}}function ry(d,_,C){_g("NgControlFlow");const D=Mt(),z=Wo(),ce=Hb(D,ya+d);if(Fu(D,z,_)){const _t=p(null);try{if(Sx(ce,0),-1!==_){const Ut=Gb(D[Zr],ya+_),Yn=gg(ce,Ut.tView.ssrId);oh(ce,ih(D,Ut,C,{dehydratedView:Yn}),0,hg(Ut,Yn))}}finally{p(_t)}}else{const _t=$_(ce,0);void 0!==_t&&(_t[os]=C)}}class zO{constructor(_,C,D){this.lContainer=_,this.$implicit=C,this.$index=D}get $count(){return this.lContainer.length-la}}function Zb(d,_){return _}class KO{constructor(_,C,D){this.hasEmptyBlock=_,this.trackByFn=C,this.liveCollection=D}}function ay(d,_,C,D,z,ce,je,_t,Ut,Yn,Ri,so,Zo){_g("NgControlFlow");const qo=void 0!==Ut,Er=Mt(),aa=_t?je.bind(Er[js][os]):je,Qa=new KO(qo,aa);Er[ya+d]=Qa,Sg(d+1,_,C,D,z,ce),qo&&Sg(d+2,Ut,Yn,Ri,so,Zo)}class $O extends YO{constructor(_,C,D){super(),this.lContainer=_,this.hostLView=C,this.templateTNode=D,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-la}at(_){return this.getLView(_)[os].$implicit}attach(_,C){const D=C[Ho];this.needsIndexUpdate||=_!==this.length,oh(this.lContainer,C,_,hg(this.templateTNode,D))}detach(_){return this.needsIndexUpdate||=_!==this.length-1,function qO(d,_){return be(d,_)}(this.lContainer,_)}create(_,C){const D=gg(this.lContainer,this.templateTNode.tView.ssrId);return ih(this.hostLView,this.templateTNode,new zO(this.lContainer,C,_),{dehydratedView:D})}destroy(_){we(_[Zr],_)}updateValue(_,C){this.getLView(_)[os].$implicit=C}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let _=0;_<this.length;_++)this.getLView(_)[os].$index=_}getLView(_){return function XO(d,_){return $_(d,_)}(this.lContainer,_)}}function sy(d){const _=p(null),C=Vl();try{const D=Mt(),z=D[Zr],ce=D[C];if(void 0===ce.liveCollection){const _t=C+1,Ut=Hb(D,_t),Yn=Gb(z,_t);ce.liveCollection=new $O(Ut,D,Yn)}else ce.liveCollection.reset();const je=ce.liveCollection;if(function WO(d,_,C){let D,z,ce=0,je=d.length-1;if(Array.isArray(_)){let _t=_.length-1;for(;ce<=je&&ce<=_t;){const Ut=d.at(ce),Yn=_[ce],Ri=vv(ce,Ut,ce,Yn,C);if(0!==Ri){Ri<0&&d.updateValue(ce,Yn),ce++;continue}const so=d.at(je),Zo=_[_t],qo=vv(je,so,_t,Zo,C);if(0!==qo){qo<0&&d.updateValue(je,Zo),je--,_t--;continue}const Er=C(ce,Ut),aa=C(je,so),Qa=C(ce,Yn);if(Object.is(Qa,aa)){const Zs=C(_t,Zo);Object.is(Zs,Er)?(d.swap(ce,je),d.updateValue(je,Zo),_t--,je--):d.move(je,ce),d.updateValue(ce,Yn),ce++}else if(D??=new Bb,z??=oy(d,ce,je,C),zx(d,D,ce,Qa))d.updateValue(ce,Yn),ce++,je++;else if(z.has(Qa))D.set(Er,d.detach(ce)),je--;else{const Zs=d.create(ce,_[ce]);d.attach(ce,Zs),ce++,je++}}for(;ce<=_t;)iy(d,D,C,ce,_[ce]),ce++}else if(null!=_){const _t=_[Symbol.iterator]();let Ut=_t.next();for(;!Ut.done&&ce<=je;){const Yn=d.at(ce),Ri=Ut.value,so=vv(ce,Yn,ce,Ri,C);if(0!==so)so<0&&d.updateValue(ce,Ri),ce++,Ut=_t.next();else{D??=new Bb,z??=oy(d,ce,je,C);const Zo=C(ce,Ri);if(zx(d,D,ce,Zo))d.updateValue(ce,Ri),ce++,je++,Ut=_t.next();else if(z.has(Zo)){const qo=C(ce,Yn);D.set(qo,d.detach(ce)),je--}else d.attach(ce,d.create(ce,Ri)),ce++,je++,Ut=_t.next()}}for(;!Ut.done;)iy(d,D,C,d.length,Ut.value),Ut=_t.next()}for(;ce<=je;)d.destroy(d.detach(je--));D?.forEach(_t=>{d.destroy(_t)})}(je,d,ce.trackByFn),je.updateIndexes(),ce.hasEmptyBlock){const _t=Wo(),Ut=0===je.length;if(Fu(D,_t,Ut)){const Yn=C+2,Ri=Hb(D,Yn);if(Ut){const so=Gb(z,Yn),Zo=gg(Ri,so.tView.ssrId);oh(Ri,ih(D,so,void 0,{dehydratedView:Zo}),0,hg(so,Zo))}else Sx(Ri,0)}}}finally{p(_)}}function Hb(d,_){return d[_]}function Gb(d,_){return Kl(d,_)}function bv(d,_,C,D){const z=Mt(),ce=fn(),je=ya+d,_t=z[Ba],Ut=ce.firstCreatePass?function eP(d,_,C,D,z,ce){const je=_.consts,Ut=Me(_,d,2,D,_c(je,z));return ux(_,C,Ut,_c(je,ce)),null!==Ut.attrs&&Eh(Ut,Ut.attrs,!1),null!==Ut.mergedAttrs&&Eh(Ut,Ut.mergedAttrs,!0),null!==_.queries&&_.queries.elementStart(_,Ut),Ut}(je,ce,z,_,C,D):ce.data[je],Yn=ly(ce,z,Ut,_t,_,d);z[je]=Yn;const Ri=Ec(Ut);return pt(Ut,!0),Di(_t,Yn,Ut),32!=(32&Ut.flags)&&pc()&&am(ce,z,Yn,Ut),0===function ra(){return Ci.lFrame.elementDepthCount}()&&Tm(Yn,z),function $a(){Ci.lFrame.elementDepthCount++}(),Ri&&(cc(ce,z,Ut),zs(ce,Ut,z)),null!==D&&Gl(z,Ut),bv}function Cv(){let d=bi();Ye()?ut():(d=d.parent,pt(d,!1));const _=d;(function se(d){return Ci.skipHydrationRootTNode===d})(_)&&function wt(){Ci.skipHydrationRootTNode=null}(),function xe(){Ci.lFrame.elementDepthCount--}();const C=fn();return C.firstCreatePass&&(ec(C,d),bs(d)&&C.queries.elementEnd(d)),null!=_.classesWithoutHost&&function Zc(d){return 0!=(8&d.flags)}(_)&&kb(C,_,Mt(),_.classesWithoutHost,!0),null!=_.stylesWithoutHost&&function Cd(d){return 0!=(16&d.flags)}(_)&&kb(C,_,Mt(),_.stylesWithoutHost,!1),Cv}function Jb(d,_,C,D){return bv(d,_,C,D),Cv(),Jb}let ly=(d,_,C,D,z,ce)=>(Ul(!0),H_(D,z,function Oc(){return Ci.lFrame.currentNamespace}()));function yv(d,_,C){const D=Mt(),z=fn(),ce=d+ya,je=z.firstCreatePass?function iP(d,_,C,D,z){const ce=_.consts,je=_c(ce,D),_t=Me(_,d,8,"ng-container",je);return null!==je&&Eh(_t,je,!0),ux(_,C,_t,_c(ce,z)),null!==_.queries&&_.queries.elementStart(_,_t),_t}(ce,z,D,_,C):z.data[ce];pt(je,!0);const _t=cy(z,D,je,d);return D[ce]=_t,pc()&&am(z,D,_t,je),Tm(_t,D),Ec(je)&&(cc(z,D,je),zs(z,je,D)),null!=C&&Gl(D,je),yv}function Ov(){let d=bi();const _=fn();return Ye()?ut():(d=d.parent,pt(d,!1)),_.firstCreatePass&&(ec(_,d),bs(d)&&_.queries.elementEnd(d)),Ov}function Qb(d,_,C){return yv(d,_,C),Ov(),Qb}let cy=(d,_,C,D)=>(Ul(!0),cf(_[Ba],""));function dy(){return Mt()}function Vb(d,_,C){const D=Mt();return Fu(D,Wo(),_)&&__(fn(),Il(),D,d,_,D[Ba],C,!0),Vb}function Yb(d,_,C){const D=Mt();if(Fu(D,Wo(),_)){const ce=fn(),je=Il();__(ce,je,D,d,_,g1(Xr(ce.data),je,D),C,!0)}return Yb}const mh=void 0;var sP=["en",[["a","p"],["AM","PM"],mh],[["AM","PM"],mh,mh],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],mh,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],mh,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",mh,"{1} 'at' {0}",mh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function aP(d){const C=Math.floor(Math.abs(d)),D=d.toString().replace(/^[^.]*\.?/,"").length;return 1===C&&0===D?1:5}];let Kh={};function Zg(d,_,C){"string"!=typeof _&&(C=_,_=d[$h.LocaleId]),_=_.toLowerCase().replace(/_/g,"-"),Kh[_]=d,C&&(Kh[_][$h.ExtraData]=C)}function Wb(d){const _=function lP(d){return d.toLowerCase().replace(/_/g,"-")}(d);let C=uy(_);if(C)return C;const D=_.split("-")[0];if(C=uy(D),C)return C;if("en"===D)return sP;throw new Xt(701,!1)}function my(d){return Wb(d)[$h.PluralCase]}function uy(d){return d in Kh||(Kh[d]=eo.ng&&eo.ng.common&&eo.ng.common.locales&&eo.ng.common.locales[d]),Kh[d]}var $h=function(d){return d[d.LocaleId=0]="LocaleId",d[d.DayPeriodsFormat=1]="DayPeriodsFormat",d[d.DayPeriodsStandalone=2]="DayPeriodsStandalone",d[d.DaysFormat=3]="DaysFormat",d[d.DaysStandalone=4]="DaysStandalone",d[d.MonthsFormat=5]="MonthsFormat",d[d.MonthsStandalone=6]="MonthsStandalone",d[d.Eras=7]="Eras",d[d.FirstDayOfWeek=8]="FirstDayOfWeek",d[d.WeekendRange=9]="WeekendRange",d[d.DateFormat=10]="DateFormat",d[d.TimeFormat=11]="TimeFormat",d[d.DateTimeFormat=12]="DateTimeFormat",d[d.NumberSymbols=13]="NumberSymbols",d[d.NumberFormats=14]="NumberFormats",d[d.CurrencyCode=15]="CurrencyCode",d[d.CurrencySymbol=16]="CurrencySymbol",d[d.CurrencyName=17]="CurrencyName",d[d.Currencies=18]="Currencies",d[d.Directionality=19]="Directionality",d[d.PluralCase=20]="PluralCase",d[d.ExtraData=21]="ExtraData",d}($h||{});const qh="en-US";let py=qh;function _y(d){(function Kn(d,_){null==d&&Vn(_,d,null,"!=")})(d,"Expected localeId to be defined"),"string"==typeof d&&(py=d.toLowerCase().replace(/_/g,"-"))}function qb(d){return!!d&&"function"==typeof d.then}function Ny(d){return!!d&&"function"==typeof d.subscribe}function Xb(d,_,C,D){const z=Mt(),ce=fn(),je=bi();return Uy(ce,z,z[Ba],je,d,_,D),Xb}function eC(d,_){const C=bi(),D=Mt(),z=fn();return Uy(z,D,g1(Xr(z.data),C,D),C,d,_),eC}function Uy(d,_,C,D,z,ce,je){const _t=Ec(D),Yn=d.firstCreatePass&&f1(d),Ri=_[os],so=_1(_);let Zo=!0;if(3&D.type||je){const aa=Nl(D,_),Qa=je?je(aa):aa,Zs=so.length,ta=je?rd=>je(Fs(rd[D.index])):D.index;let dc=null;if(!je&&_t&&(dc=function tM(d,_,C,D){const z=d.cleanup;if(null!=z)for(let ce=0;ce<z.length-1;ce+=2){const je=z[ce];if(je===C&&z[ce+1]===D){const _t=_[mc],Ut=z[ce+2];return _t.length>Ut?_t[Ut]:null}"string"==typeof je&&(ce+=2)}return null}(d,_,z,D.index)),null!==dc)(dc.__ngLastListenerFn__||dc).__ngNextListenerFn__=ce,dc.__ngLastListenerFn__=ce,Zo=!1;else{ce=Zy(D,_,Ri,ce,!1);const rd=C.listen(Qa,z,ce);so.push(ce,rd),Yn&&Yn.push(z,ta,Zs,Zs+1)}}else ce=Zy(D,_,Ri,ce,!1);const qo=D.outputs;let Er;if(Zo&&null!==qo&&(Er=qo[z])){const aa=Er.length;if(aa)for(let Qa=0;Qa<aa;Qa+=2){const hd=_[Er[Qa]][Er[Qa+1]].subscribe(ce),I_=so.length;so.push(ce,hd),Yn&&Yn.push(z,D.index,I_,-(I_+1))}}}function By(d,_,C,D){try{return No(6,_,C),!1!==C(D)}catch(z){return Mh(d,z),!1}finally{No(7,_,C)}}function Zy(d,_,C,D,z){return function ce(je){if(je===Function)return D;Kg(d.componentOffset>-1?ll(d.index,_):_);let Ut=By(_,C,D,je),Yn=ce.__ngNextListenerFn__;for(;Yn;)Ut=By(_,C,Yn,je)&&Ut,Yn=Yn.__ngNextListenerFn__;return z&&!1===Ut&&je.preventDefault(),Ut}}function Hy(d=1){return function im(d){return(Ci.lFrame.contextLView=Id(d,Ci.lFrame.contextLView))[os]}(d)}function nM(d,_){let C=null;const D=function Aa(d){const _=d.attrs;if(null!=_){const C=_.indexOf(5);if(!(1&C))return _[C+1]}return null}(d);for(let z=0;z<_.length;z++){const ce=_[z];if("*"!==ce){if(null===D?Qr(d,ce,!0):zr(D,ce))return z}else C=z}return C}function Gy(d){const _=Mt()[js][Ql];if(!_.projection){const D=_.projection=function td(d,_){const C=[];for(let D=0;D<d;D++)C.push(_);return C}(d?d.length:1,null),z=D.slice();let ce=_.child;for(;null!==ce;){const je=d?nM(ce,d):0;null!==je&&(z[je]?z[je].projectionNext=ce:D[je]=ce,z[je]=ce),ce=ce.next}}}function Jy(d,_=0,C){const D=Mt(),z=fn(),ce=Me(z,ya+d,16,null,C||null);null===ce.projection&&(ce.projection=_),ut(),(!D[Ho]||k())&&32!=(32&ce.flags)&&function Ot(d,_,C){Nt(_[Ba],0,_,C,Zn(d,C,_),As(C.parent||_[Ql],C,_))}(z,D,ce)}function tC(d,_,C){return wv(d,"",_,"",C),tC}function wv(d,_,C,D,z){const ce=Mt(),je=Gh(ce,_,C,D);return je!==zl&&__(fn(),Il(),ce,d,je,ce[Ba],z,!1),wv}function nC(d,_,C,D,z,ce,je){const _t=Mt(),Ut=dh(_t,_,C,D,z,ce);return Ut!==zl&&__(fn(),Il(),_t,d,Ut,_t[Ba],je,!1),nC}function iM(){return this._results[Symbol.iterator]()}class Dv{static#e=Symbol.iterator;get changes(){return this._changes??=new ff}constructor(_=!1){this._emitDistinctChangesOnly=_,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const C=Dv.prototype;C[Symbol.iterator]||(C[Symbol.iterator]=iM)}get(_){return this._results[_]}map(_){return this._results.map(_)}filter(_){return this._results.filter(_)}find(_){return this._results.find(_)}reduce(_,C){return this._results.reduce(_,C)}forEach(_){this._results.forEach(_)}some(_){return this._results.some(_)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(_,C){this.dirty=!1;const D=function fs(d){return d.flat(Number.POSITIVE_INFINITY)}(_);(this._changesDetected=!function Ja(d,_,C){if(d.length!==_.length)return!1;for(let D=0;D<d.length;D++){let z=d[D],ce=_[D];if(C&&(z=C(z),ce=C(ce)),ce!==z)return!1}return!0}(this._results,D,C))&&(this._results=D,this.length=D.length,this.last=D[this.length-1],this.first=D[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}}let Xx=(()=>{class d{static#e=this.__NG_ELEMENT_ID__=aM}return d})();const oM=Xx,rM=class extends oM{constructor(_,C,D){super(),this._declarationLView=_,this._declarationTContainer=C,this.elementRef=D}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(_,C){return this.createEmbeddedViewImpl(_,C)}createEmbeddedViewImpl(_,C,D){const z=ih(this._declarationLView,this._declarationTContainer,_,{injector:C,dehydratedView:D});return new $g(z)}};function aM(){return Iv(bi(),Mt())}function Iv(d,_){return 4&d.type?new rM(_,d,Tt(d,_)):null}class iC{constructor(_){this.queryList=_,this.matches=null}clone(){return new iC(this.queryList)}setDirty(){this.queryList.setDirty()}}class oC{constructor(_=[]){this.queries=_}createEmbeddedView(_){const C=_.queries;if(null!==C){const D=null!==_.contentQueries?_.contentQueries[0]:C.length,z=[];for(let ce=0;ce<D;ce++){const je=C.getByIndex(ce);z.push(this.queries[je.indexInDeclarationView].clone())}return new oC(z)}return null}insertView(_){this.dirtyQueriesWithMatches(_)}detachView(_){this.dirtyQueriesWithMatches(_)}dirtyQueriesWithMatches(_){for(let C=0;C<this.queries.length;C++)null!==tO(_,C).matches&&this.queries[C].setDirty()}}class $y{constructor(_,C,D=null){this.predicate=_,this.flags=C,this.read=D}}class rC{constructor(_=[]){this.queries=_}elementStart(_,C){for(let D=0;D<this.queries.length;D++)this.queries[D].elementStart(_,C)}elementEnd(_){for(let C=0;C<this.queries.length;C++)this.queries[C].elementEnd(_)}embeddedTView(_){let C=null;for(let D=0;D<this.length;D++){const z=null!==C?C.length:0,ce=this.getByIndex(D).embeddedTView(_,z);ce&&(ce.indexInDeclarationView=D,null!==C?C.push(ce):C=[ce])}return null!==C?new rC(C):null}template(_,C){for(let D=0;D<this.queries.length;D++)this.queries[D].template(_,C)}getByIndex(_){return this.queries[_]}get length(){return this.queries.length}track(_){this.queries.push(_)}}class aC{constructor(_,C=-1){this.metadata=_,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=C}elementStart(_,C){this.isApplyingToNode(C)&&this.matchTNode(_,C)}elementEnd(_){this._declarationNodeIndex===_.index&&(this._appliesToNextNode=!1)}template(_,C){this.elementStart(_,C)}embeddedTView(_,C){return this.isApplyingToNode(_)?(this.crossesNgTemplate=!0,this.addMatch(-_.index,C),new aC(this.metadata)):null}isApplyingToNode(_){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const C=this._declarationNodeIndex;let D=_.parent;for(;null!==D&&8&D.type&&D.index!==C;)D=D.parent;return C===(null!==D?D.index:-1)}return this._appliesToNextNode}matchTNode(_,C){const D=this.metadata.predicate;if(Array.isArray(D))for(let z=0;z<D.length;z++){const ce=D[z];this.matchTNodeWithReadOption(_,C,sM(C,ce)),this.matchTNodeWithReadOption(_,C,bu(C,_,ce,!1,!1))}else D===Xx?4&C.type&&this.matchTNodeWithReadOption(_,C,-1):this.matchTNodeWithReadOption(_,C,bu(C,_,D,!1,!1))}matchTNodeWithReadOption(_,C,D){if(null!==D){const z=this.metadata.read;if(null!==z)if(z===zt||z===Sh||z===Xx&&4&C.type)this.addMatch(C.index,-2);else{const ce=bu(C,_,z,!1,!1);null!==ce&&this.addMatch(C.index,ce)}else this.addMatch(C.index,D)}}addMatch(_,C){null===this.matches?this.matches=[_,C]:this.matches.push(_,C)}}function sM(d,_){const C=d.localNames;if(null!==C)for(let D=0;D<C.length;D+=2)if(C[D]===_)return C[D+1];return null}function cM(d,_,C,D){return-1===C?function lM(d,_){return 11&d.type?Tt(d,_):4&d.type?Iv(d,_):null}(_,d):-2===C?function dM(d,_,C){return C===zt?Tt(_,d):C===Xx?Iv(_,d):C===Sh?K1(_,d):void 0}(d,_,D):Od(d,d[Zr],C,_)}function qy(d,_,C,D){const z=_[Gs].queries[D];if(null===z.matches){const ce=d.data,je=C.matches,_t=[];for(let Ut=0;Ut<je.length;Ut+=2){const Yn=je[Ut];_t.push(Yn<0?null:cM(_,ce[Yn],je[Ut+1],C.metadata.read))}z.matches=_t}return z.matches}function sC(d,_,C,D){const z=d.queries.getByIndex(C),ce=z.matches;if(null!==ce){const je=qy(d,_,z,C);for(let _t=0;_t<ce.length;_t+=2){const Ut=ce[_t];if(Ut>0)D.push(je[_t/2]);else{const Yn=ce[_t+1],Ri=_[-Ut];for(let so=la;so<Ri.length;so++){const Zo=Ri[so];Zo[bc]===Zo[ol]&&sC(Zo[Zr],Zo,Yn,D)}if(null!==Ri[Kr]){const so=Ri[Kr];for(let Zo=0;Zo<so.length;Zo++){const qo=so[Zo];sC(qo[Zr],qo,Yn,D)}}}}}return D}function Xy(d,_,C){const D=new Dv(4==(4&C));(function Dg(d,_,C,D){const z=_1(_);z.push(C),d.firstCreatePass&&f1(d).push(D,z.length-1)})(d,_,D,D.destroy),null===_[Gs]&&(_[Gs]=new oC),_[Gs].queries.push(new iC(D))}function eO(d,_,C){null===d.queries&&(d.queries=new rC),d.queries.track(new aC(_,C))}function tO(d,_){return d.queries.getByIndex(_)}function nO(d,_,C,D){const z=fn();if(z.firstCreatePass){const ce=bi();eO(z,new $y(_,C,D),ce.index),function uM(d,_){const C=d.contentQueries||(d.contentQueries=[]);_!==(C.length?C[C.length-1]:-1)&&C.push(d.queries.length-1,_)}(z,d),2==(2&C)&&(z.staticContentQueries=!0)}Xy(z,Mt(),C)}function iO(d,_,C){const D=fn();D.firstCreatePass&&(eO(D,new $y(d,_,C),-1),2==(2&_)&&(D.staticViewQueries=!0)),Xy(D,Mt(),_)}function oO(d){const _=Mt(),C=fn(),D=Es();Ys(D+1);const z=tO(C,D);if(d.dirty&&function tm(d){return 4==(4&d[Na])}(_)===(2==(2&z.metadata.flags))){if(null===z.matches)d.reset([]);else{const ce=z.crossesNgTemplate?sC(C,_,D,[]):qy(C,_,z,D);d.reset(ce,on),d.notifyOnChanges()}return!0}return!1}function rO(){return function mM(d,_){return d[Gs].queries[_].queryList}(Mt(),Es())}function lC(d){return xl(function Kt(){return Ci.lFrame.contextLView}(),ya+d)}function dm(d,_=""){const C=Mt(),D=fn(),z=d+ya,ce=D.firstCreatePass?Me(D,z,1,_,null):D.data[z],je=Ku(D,C,ce,_,d);C[z]=je,pc()&&am(D,C,je,ce),pt(ce,!1)}let Ku=(d,_,C,D,z)=>(Ul(!0),function lp(d,_){return d.createText(_)}(_[Ba],D));function cC(d){return aO("",d,""),cC}function aO(d,_,C){const D=Mt(),z=Gh(D,d,_,C);return z!==zl&&Qf(D,Vl(),z),aO}function gM(d,_,C,D,z){const ce=Mt(),je=dh(ce,d,_,C,D,z);return je!==zl&&Qf(ce,Vl(),je),gM}function hM(d,_,C,D,z,ce,je){const _t=Mt(),Ut=function Jh(d,_,C,D,z,ce,je,_t){const Yn=ah(d,gi(),C,z,je);return tr(3),Yn?_+$e(C)+D+$e(z)+ce+$e(je)+_t:zl}(_t,d,_,C,D,z,ce,je);return Ut!==zl&&Qf(_t,Vl(),Ut),hM}function xM(d,_,C,D,z,ce,je,_t,Ut){const Yn=Mt(),Ri=function Qh(d,_,C,D,z,ce,je,_t,Ut,Yn){const so=A_(d,gi(),C,z,je,Ut);return tr(4),so?_+$e(C)+D+$e(z)+ce+$e(je)+_t+$e(Ut)+Yn:zl}(Yn,d,_,C,D,z,ce,je,_t,Ut);return Ri!==zl&&Qf(Yn,Vl(),Ri),xM}function vM(d,_,C,D,z,ce,je,_t,Ut,Yn,Ri){const so=Mt(),Zo=function Vh(d,_,C,D,z,ce,je,_t,Ut,Yn,Ri,so){const Zo=gi();let qo=A_(d,Zo,C,z,je,Ut);return qo=Fu(d,Zo+4,Ri)||qo,tr(5),qo?_+$e(C)+D+$e(z)+ce+$e(je)+_t+$e(Ut)+Yn+$e(Ri)+so:zl}(so,d,_,C,D,z,ce,je,_t,Ut,Yn,Ri);return Zo!==zl&&Qf(so,Vl(),Zo),vM}function bM(d,_,C,D,z){if(d=Li(d),Array.isArray(d))for(let ce=0;ce<d.length;ce++)bM(d[ce],_,C,D,z);else{const ce=fn(),je=Mt(),_t=bi();let Ut=al(d)?d:Li(d.provide);const Yn=ap(d),Ri=1048575&_t.providerIndexes,so=_t.directiveStart,Zo=_t.providerIndexes>>20;if(al(d)||!d.multi){const qo=new tc(Yn,z,eg),Er=yM(Ut,_,z?Ri:Ri+Zo,so);-1===Er?(sd(_m(_t,je),ce,Ut),CM(ce,d,_.length),_.push(Ut),_t.directiveStart++,_t.directiveEnd++,z&&(_t.providerIndexes+=1048576),C.push(qo),je.push(qo)):(C[Er]=qo,je[Er]=qo)}else{const qo=yM(Ut,_,Ri+Zo,so),Er=yM(Ut,_,Ri,Ri+Zo),Qa=Er>=0&&C[Er];if(z&&!Qa||!z&&!(qo>=0&&C[qo])){sd(_m(_t,je),ce,Ut);const Zs=function K2(d,_,C,D,z){const ce=new tc(d,C,eg);return ce.multi=[],ce.index=_,ce.componentProviders=0,nT(ce,z,D&&!C),ce}(z?j2:z2,C.length,z,D,Yn);!z&&Qa&&(C[Er].providerFactory=Zs),CM(ce,d,_.length,0),_.push(Ut),_t.directiveStart++,_t.directiveEnd++,z&&(_t.providerIndexes+=1048576),C.push(Zs),je.push(Zs)}else CM(ce,d,qo>-1?qo:Er,nT(C[z?Er:qo],Yn,!z&&D));!z&&D&&Qa&&C[Er].componentProviders++}}}function CM(d,_,C,D){const z=al(_),ce=function Jd(d){return!!d.useClass}(_);if(z||ce){const Ut=(ce?Li(_.useClass):_).prototype.ngOnDestroy;if(Ut){const Yn=d.destroyHooks||(d.destroyHooks=[]);if(!z&&_.multi){const Ri=Yn.indexOf(C);-1===Ri?Yn.push(C,[D,Ut]):Yn[Ri+1].push(D,Ut)}else Yn.push(C,Ut)}}}function nT(d,_,C){return C&&d.componentProviders++,d.multi.push(_)-1}function yM(d,_,C,D){for(let z=C;z<D;z++)if(_[z]===d)return z;return-1}function z2(d,_,C,D){return OM(this.multi,[])}function j2(d,_,C,D){const z=this.multi;let ce;if(this.providerFactory){const je=this.providerFactory.componentProviders,_t=Od(C,C[Zr],this.providerFactory.index,D);ce=_t.slice(0,je),OM(z,ce);for(let Ut=je;Ut<_t.length;Ut++)ce.push(_t[Ut])}else ce=[],OM(z,ce);return ce}function OM(d,_){for(let C=0;C<d.length;C++)_.push((0,d[C])());return _}function iT(d,_=[]){return C=>{C.providersResolver=(D,z)=>function W2(d,_,C){const D=fn();if(D.firstCreatePass){const z=gr(d);bM(C,D.data,D.blueprint,z,!0),bM(_,D.data,D.blueprint,z,!1)}}(D,z?z(d):d,_)}}class e1{}class oT{}function $2(d,_){return new PM(d,_??null,[])}class PM extends e1{constructor(_,C,D){super(),this._parent=C,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new F1(this);const z=di(_);this._bootstrapComponents=it(z.bootstrap),this._r3Injector=_d(_,C,[{provide:e1,useValue:this},{provide:V_,useValue:this.componentFactoryResolver},...D],nn(_),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(_)}get injector(){return this._r3Injector}destroy(){const _=this._r3Injector;!_.destroyed&&_.destroy(),this.destroyCbs.forEach(C=>C()),this.destroyCbs=null}onDestroy(_){this.destroyCbs.push(_)}}class MM extends oT{constructor(_){super(),this.moduleType=_}create(_){return new PM(this.moduleType,_,[])}}class rT extends e1{constructor(_){super(),this.componentFactoryResolver=new F1(this),this.instance=null;const C=new Qu([..._.providers,{provide:e1,useValue:this},{provide:V_,useValue:this.componentFactoryResolver}],_.parent||Ap(),_.debugName,new Set(["environment"]));this.injector=C,_.runEnvironmentInitializers&&C.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(_){this.injector.onDestroy(_)}}function aT(d,_,C=null){return new rT({providers:d,parent:_,debugName:C,runEnvironmentInitializers:!0}).injector}let X2=(()=>{class d{constructor(C){this._injector=C,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(C){if(!C.standalone)return null;if(!this.cachedInjectors.has(C)){const D=qe(0,C.type),z=D.length>0?aT([D],this._injector,`Standalone[${C.type.name}]`):null;this.cachedInjectors.set(C,z)}return this.cachedInjectors.get(C)}ngOnDestroy(){try{for(const C of this.cachedInjectors.values())null!==C&&C.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=_n({token:d,providedIn:"environment",factory:()=>new d(Ds(iu))})}return d})();function sT(d){_g("NgStandalone"),d.getStandaloneInjector=_=>_.get(X2).getOrCreateStandaloneInjector(d)}function lT(d,_,C){const D=d.\u0275cmp;D.directiveDefs=Eo(_,!1),D.pipeDefs=Eo(C,!0)}function hT(d,_,C){const D=hi()+d,z=Mt();return z[D]===zl?gf(z,D,C?_.call(C):_()):rh(z,D)}function xT(d,_,C,D){return ET(Mt(),hi(),d,_,C,D)}function vT(d,_,C,D,z){return AT(Mt(),hi(),d,_,C,D,z)}function bT(d,_,C,D,z,ce){return wT(Mt(),hi(),d,_,C,D,z,ce)}function CT(d,_,C,D,z,ce,je){return function DT(d,_,C,D,z,ce,je,_t,Ut){const Yn=_+C;return A_(d,Yn,z,ce,je,_t)?gf(d,Yn+4,Ut?D.call(Ut,z,ce,je,_t):D(z,ce,je,_t)):dC(d,Yn+4)}(Mt(),hi(),d,_,C,D,z,ce,je)}function yT(d,_,C,D,z,ce,je,_t){const Ut=hi()+d,Yn=Mt(),Ri=A_(Yn,Ut,C,D,z,ce);return Fu(Yn,Ut+4,je)||Ri?gf(Yn,Ut+5,_t?_.call(_t,C,D,z,ce,je):_(C,D,z,ce,je)):rh(Yn,Ut+5)}function OT(d,_,C,D,z,ce,je,_t,Ut){const Yn=hi()+d,Ri=Mt(),so=A_(Ri,Yn,C,D,z,ce);return xg(Ri,Yn+4,je,_t)||so?gf(Ri,Yn+6,Ut?_.call(Ut,C,D,z,ce,je,_t):_(C,D,z,ce,je,_t)):rh(Ri,Yn+6)}function PT(d,_,C,D,z,ce,je,_t,Ut,Yn){const Ri=hi()+d,so=Mt();let Zo=A_(so,Ri,C,D,z,ce);return ah(so,Ri+4,je,_t,Ut)||Zo?gf(so,Ri+7,Yn?_.call(Yn,C,D,z,ce,je,_t,Ut):_(C,D,z,ce,je,_t,Ut)):rh(so,Ri+7)}function MT(d,_,C,D,z,ce,je,_t,Ut,Yn,Ri){const so=hi()+d,Zo=Mt(),qo=A_(Zo,so,C,D,z,ce);return A_(Zo,so+4,je,_t,Ut,Yn)||qo?gf(Zo,so+8,Ri?_.call(Ri,C,D,z,ce,je,_t,Ut,Yn):_(C,D,z,ce,je,_t,Ut,Yn)):rh(Zo,so+8)}function TT(d,_,C,D){return IT(Mt(),hi(),d,_,C,D)}function dC(d,_){const C=d[_];return C===zl?void 0:C}function ET(d,_,C,D,z,ce){const je=_+C;return Fu(d,je,z)?gf(d,je+1,ce?D.call(ce,z):D(z)):dC(d,je+1)}function AT(d,_,C,D,z,ce,je){const _t=_+C;return xg(d,_t,z,ce)?gf(d,_t+2,je?D.call(je,z,ce):D(z,ce)):dC(d,_t+2)}function wT(d,_,C,D,z,ce,je,_t){const Ut=_+C;return ah(d,Ut,z,ce,je)?gf(d,Ut+3,_t?D.call(_t,z,ce,je):D(z,ce,je)):dC(d,Ut+3)}function IT(d,_,C,D,z,ce){let je=_+C,_t=!1;for(let Ut=0;Ut<z.length;Ut++)Fu(d,je++,z[Ut])&&(_t=!0);return _t?gf(d,je,D.apply(ce,z)):dC(d,je)}function ST(d,_){const C=fn();let D;const z=d+ya;C.firstCreatePass?(D=function cE(d,_){if(_)for(let C=_.length-1;C>=0;C--){const D=_[C];if(d===D.name)return D}}(_,C.pipeRegistry),C.data[z]=D,D.onDestroy&&(C.destroyHooks??=[]).push(z,D.onDestroy)):D=C.data[z];const ce=D.factory||(D.factory=Mi(D.type)),_t=bt(eg);try{const Ut=Nm(!1),Yn=ce();return Nm(Ut),function pM(d,_,C,D){C>=d.data.length&&(d.data[C]=null,d.blueprint[C]=null),_[C]=D}(C,Mt(),z,Yn),Yn}finally{bt(_t)}}function FT(d,_,C){const D=d+ya,z=Mt(),ce=xl(z,D);return mC(z,D)?ET(z,hi(),_,ce.transform,C,ce):ce.transform(C)}function LT(d,_,C,D){const z=d+ya,ce=Mt(),je=xl(ce,z);return mC(ce,z)?AT(ce,hi(),_,je.transform,C,D,je):je.transform(C,D)}function RT(d,_,C,D,z){const ce=d+ya,je=Mt(),_t=xl(je,ce);return mC(je,ce)?wT(je,hi(),_,_t.transform,C,D,z,_t):_t.transform(C,D,z)}function kT(d,_,C){const D=d+ya,z=Mt(),ce=xl(z,D);return mC(z,D)?IT(z,hi(),_,ce.transform,C,ce):ce.transform.apply(ce,C)}function mC(d,_){return d[Zr].data[_].pure}function NT(d,_){return Iv(d,_)}class XT{constructor(_){this.full=_;const C=_.split(".");this.major=C[0],this.minor=C[1],this.patch=C.slice(2).join(".")}}const SE=new XT("17.1.2");let e2=(()=>{class d{log(C){console.log(C)}warn(C){console.warn(C)}static#e=this.\u0275fac=function(D){return new(D||d)};static#t=this.\u0275prov=_n({token:d,factory:d.\u0275fac,providedIn:"platform"})}return d})();class FE{constructor(_,C){this.ngModuleFactory=_,this.componentFactories=C}}let LE=(()=>{class d{compileModuleSync(C){return new MM(C)}compileModuleAsync(C){return Promise.resolve(this.compileModuleSync(C))}compileModuleAndAllComponentsSync(C){const D=this.compileModuleSync(C),ce=it(di(C).declarations).reduce((je,_t)=>{const Ut=Ia(_t);return Ut&&je.push(new Xg(Ut)),je},[]);return new FE(D,ce)}compileModuleAndAllComponentsAsync(C){return Promise.resolve(this.compileModuleAndAllComponentsSync(C))}clearCache(){}clearCacheFor(C){}getModuleId(C){}static#e=this.\u0275fac=function(D){return new(D||d)};static#t=this.\u0275prov=_n({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})(),dO=(()=>{class d{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ft.X(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const C=this.taskId++;return this.pendingTasks.add(C),C}remove(C){this.pendingTasks.delete(C),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(D){return new(D||d)};static#t=this.\u0275prov=_n({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})();const a2=new In(""),s2=new In("");let SM,sA=(()=>{class d{constructor(C,D,z){this._ngZone=C,this.registry=D,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,SM||(function lA(d){SM=d}(z),z.addToWindow(D)),this._watchAngularEvents(),C.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{pu.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let C=this._callbacks.pop();clearTimeout(C.timeoutId),C.doneCb()}});else{let C=this.getPendingTasks();this._callbacks=this._callbacks.filter(D=>!D.updateCb||!D.updateCb(C)||(clearTimeout(D.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(C=>({source:C.source,creationLocation:C.creationLocation,data:C.data})):[]}addCallback(C,D,z){let ce=-1;D&&D>0&&(ce=setTimeout(()=>{this._callbacks=this._callbacks.filter(je=>je.timeoutId!==ce),C()},D)),this._callbacks.push({doneCb:C,timeoutId:ce,updateCb:z})}whenStable(C,D,z){if(z&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(C,D,z),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(C){this.registry.registerApplication(C,this)}unregisterApplication(C){this.registry.unregisterApplication(C)}findProviders(C,D,z){return[]}static#e=this.\u0275fac=function(D){return new(D||d)(Ds(pu),Ds(l2),Ds(s2))};static#t=this.\u0275prov=_n({token:d,factory:d.\u0275fac})}return d})(),l2=(()=>{class d{constructor(){this._applications=new Map}registerApplication(C,D){this._applications.set(C,D)}unregisterApplication(C){this._applications.delete(C)}unregisterAllApplications(){this._applications.clear()}getTestability(C){return this._applications.get(C)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(C,D=!0){return SM?.findTestabilityInTree(this,C,D)??null}static#e=this.\u0275fac=function(D){return new(D||d)};static#t=this.\u0275prov=_n({token:d,factory:d.\u0275fac,providedIn:"platform"})}return d})();const c2=new In("");let FM=(()=>{class d{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((C,D)=>{this.resolve=C,this.reject=D}),this.appInits=ka(c2,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const C=[];for(const z of this.appInits){const ce=z();if(qb(ce))C.push(ce);else if(Ny(ce)){const je=new Promise((_t,Ut)=>{ce.subscribe({complete:_t,error:Ut})});C.push(je)}}const D=()=>{this.done=!0,this.resolve()};Promise.all(C).then(()=>{D()}).catch(z=>{this.reject(z)}),0===C.length&&D(),this.initialized=!0}static#e=this.\u0275fac=function(D){return new(D||d)};static#t=this.\u0275prov=_n({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})();const LM=new In("");function u2(d,_){return Array.isArray(_)?_.reduce(u2,d):{...d,..._}}let t1=(()=>{class d{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=ka(Yg),this.afterRenderEffectManager=ka(qg),this.componentTypes=[],this.components=[],this.isStable=ka(dO).hasPendingTasks.pipe((0,Dt.U)(C=>!C)),this._injector=ka(iu)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(C,D){const z=C instanceof Nf;if(!this._injector.get(FM).done)throw!z&&zn(C),new Xt(405,!1);let je;je=z?C:this._injector.get(V_).resolveComponentFactory(C),this.componentTypes.push(je.componentType);const _t=function dA(d){return d.isBoundToModule}(je)?void 0:this._injector.get(e1),Yn=je.create(Jc.NULL,[],D||je.selector,_t),Ri=Yn.location.nativeElement,so=Yn.injector.get(a2,null);return so?.registerApplication(Ri),Yn.onDestroy(()=>{this.detachView(Yn.hostView),n1(this.components,Yn),so?.unregisterApplication(Ri)}),this._loadComponent(Yn),Yn}tick(){if(this._runningTick)throw new Xt(101,!1);try{this._runningTick=!0;for(let C of this._views)C.detectChanges()}catch(C){this.internalErrorHandler(C)}finally{try{this.afterRenderEffectManager.execute()}catch(C){this.internalErrorHandler(C)}this._runningTick=!1}}attachView(C){const D=C;this._views.push(D),D.attachToAppRef(this)}detachView(C){const D=C;n1(this._views,D),D.detachFromAppRef()}_loadComponent(C){this.attachView(C.hostView),this.tick(),this.components.push(C);const D=this._injector.get(LM,[]);[...this._bootstrapListeners,...D].forEach(z=>z(C))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(C=>C()),this._views.slice().forEach(C=>C.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(C){return this._destroyListeners.push(C),()=>n1(this._destroyListeners,C)}destroy(){if(this._destroyed)throw new Xt(406,!1);const C=this._injector;C.destroy&&!C.destroyed&&C.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(D){return new(D||d)};static#t=this.\u0275prov=_n({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})();function n1(d,_){const C=d.indexOf(_);C>-1&&d.splice(C,1)}let uA=(()=>{class d{constructor(){this.zone=ka(pu),this.applicationRef=ka(t1)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(D){return new(D||d)};static#t=this.\u0275prov=_n({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})();function pA(){const d=ka(pu),_=ka(j_);return C=>d.runOutsideAngular(()=>_.handleError(C))}let fA=(()=>{class d{constructor(){this.subscription=new ve.w,this.initialized=!1,this.zone=ka(pu),this.pendingTasks=ka(dO)}initialize(){if(this.initialized)return;this.initialized=!0;let C=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(C=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{pu.assertNotInAngularZone(),queueMicrotask(()=>{null!==C&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(C),C=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{pu.assertInAngularZone(),C??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(D){return new(D||d)};static#t=this.\u0275prov=_n({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})();const pO=new In("",{providedIn:"root",factory:()=>ka(pO,$n.Optional|$n.SkipSelf)||function gA(){return typeof $localize<"u"&&$localize.locale||qh}()}),hA=new In("",{providedIn:"root",factory:()=>"USD"}),RM=new In("");let g2=(()=>{class d{constructor(C){this._injector=C,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(C,D){const z=function x0(d="zone.js",_){return"noop"===d?new E1:"zone.js"===d?new pu(_):d}(D?.ngZone,function f2(d){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:d?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:d?.runCoalescing??!1}}({eventCoalescing:D?.ngZoneEventCoalescing,runCoalescing:D?.ngZoneRunCoalescing}));return z.run(()=>{const ce=function q2(d,_,C){return new PM(d,_,C)}(C.moduleType,this.injector,function _2(d){return[{provide:pu,useFactory:d},{provide:Ju,multi:!0,useFactory:()=>{const _=ka(uA,{optional:!0});return()=>_.initialize()}},{provide:Ju,multi:!0,useFactory:()=>{const _=ka(fA);return()=>{_.initialize()}}},{provide:Yg,useFactory:pA}]}(()=>z)),je=ce.injector.get(j_,null);return z.runOutsideAngular(()=>{const _t=z.onError.subscribe({next:Ut=>{je.handleError(Ut)}});ce.onDestroy(()=>{n1(this._modules,ce),_t.unsubscribe()})}),function m2(d,_,C){try{const D=C();return qb(D)?D.catch(z=>{throw _.runOutsideAngular(()=>d.handleError(z)),z}):D}catch(D){throw _.runOutsideAngular(()=>d.handleError(D)),D}}(je,z,()=>{const _t=ce.injector.get(FM);return _t.runInitializers(),_t.donePromise.then(()=>(_y(ce.injector.get(pO,qh)||qh),this._moduleDoBootstrap(ce),ce))})})}bootstrapModule(C,D=[]){const z=u2({},D);return function cA(d,_,C){const D=new MM(C);return Promise.resolve(D)}(0,0,C).then(ce=>this.bootstrapModuleFactory(ce,z))}_moduleDoBootstrap(C){const D=C.injector.get(t1);if(C._bootstrapComponents.length>0)C._bootstrapComponents.forEach(z=>D.bootstrap(z));else{if(!C.instance.ngDoBootstrap)throw new Xt(-403,!1);C.instance.ngDoBootstrap(D)}this._modules.push(C)}onDestroy(C){this._destroyListeners.push(C)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Xt(404,!1);this._modules.slice().forEach(D=>D.destroy()),this._destroyListeners.forEach(D=>D());const C=this._injector.get(RM,null);C&&(C.forEach(D=>D()),C.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(D){return new(D||d)(Ds(Jc))};static#t=this.\u0275prov=_n({token:d,factory:d.\u0275fac,providedIn:"platform"})}return d})(),tx=null;const h2=new In("");function x2(d,_,C=[]){const D=`Platform: ${_}`,z=new In(D);return(ce=[])=>{let je=kM();if(!je||je.injector.get(h2,!1)){const _t=[...C,...ce,{provide:z,useValue:!0}];d?d(_t):function vA(d){if(tx&&!tx.get(h2,!1))throw new Xt(400,!1);(function d2(){!function Te(d){Le=d}(()=>{throw new Xt(600,!1)})})(),tx=d;const _=d.get(g2);(function b2(d){d.get(t_,null)?.forEach(C=>C())})(d)}(function v2(d=[],_){return Jc.create({name:_,providers:[{provide:Qd,useValue:"platform"},{provide:RM,useValue:new Set([()=>tx=null])},...d]})}(_t,D))}return function bA(d){const _=kM();if(!_)throw new Xt(401,!1);return _}()}}function kM(){return tx?.get(g2)??null}function yA(){return!1}function OA(){}const AA=x2(null,"core",[]);let wA=(()=>{class d{constructor(C){}static#e=this.\u0275fac=function(D){return new(D||d)(Ds(t1))};static#t=this.\u0275mod=Is({type:d});static#n=this.\u0275inj=Dn({})}return d})();function nw(d){return"boolean"==typeof d?d:null!=d&&"false"!==d}function iw(d,_=NaN){return isNaN(parseFloat(d))||isNaN(Number(d))?_:Number(d)}function aw(d){const _=Ia(d);if(!_)return null;const C=new Xg(_);return{get selector(){return C.selector},get type(){return C.componentType},get inputs(){return C.inputs},get outputs(){return C.outputs},get ngContentSelectors(){return C.ngContentSelectors},get isStandalone(){return _.standalone},get isSignal(){return _.signals}}}},56223:(gt,X,a)=>{"use strict";a.d(X,{CE:()=>Fa,Cf:()=>P,F:()=>Bn,Fj:()=>I,JJ:()=>ti,JL:()=>Xt,JU:()=>c,NI:()=>Ui,Oe:()=>Da,On:()=>zo,Q7:()=>Cn,QS:()=>Ca,UX:()=>Va,Zs:()=>uo,_Y:()=>xi,a5:()=>ve,c5:()=>zr,gN:()=>ye,kI:()=>ae,nJ:()=>Qt,oH:()=>Cs,p4:()=>Xo,sg:()=>ja,u:()=>ka,u5:()=>wa,uA:()=>an,vC:()=>ia,wV:()=>wo,x0:()=>Vs});var e=a(19212),n=a(96814),s=a(5253),l=a(77504),i=a(96124);let t=(()=>{class zn{constructor(cn,Zi){this._renderer=cn,this._elementRef=Zi,this.onChange=Eo=>{},this.onTouched=()=>{}}setProperty(cn,Zi){this._renderer.setProperty(this._elementRef.nativeElement,cn,Zi)}registerOnTouched(cn){this.onTouched=cn}registerOnChange(cn){this.onChange=cn}setDisabledState(cn){this.setProperty("disabled",cn)}static#e=this.\u0275fac=function(Zi){return new(Zi||zn)(e.Y36(e.Qsj),e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:zn})}return zn})(),p=(()=>{class zn extends t{static#e=this.\u0275fac=(()=>{let cn;return function(Eo){return(cn||(cn=e.n5z(zn)))(Eo||zn)}})();static#t=this.\u0275dir=e.lG2({type:zn,features:[e.qOj]})}return zn})();const c=new e.OlP(""),u={provide:c,useExisting:(0,e.Gpc)(()=>I),multi:!0},b=new e.OlP("");let I=(()=>{class zn extends t{constructor(cn,Zi,Eo){super(cn,Zi),this._compositionMode=Eo,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function m(){const zn=(0,n.q)()?(0,n.q)().getUserAgent():"";return/android (\d+)/.test(zn.toLowerCase())}())}writeValue(cn){this.setProperty("value",cn??"")}_handleInput(cn){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(cn)}_compositionStart(){this._composing=!0}_compositionEnd(cn){this._composing=!1,this._compositionMode&&this.onChange(cn)}static#e=this.\u0275fac=function(Zi){return new(Zi||zn)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(b,8))};static#t=this.\u0275dir=e.lG2({type:zn,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(Zi,Eo){1&Zi&&e.NdJ("input",function(Nr){return Eo._handleInput(Nr.target.value)})("blur",function(){return Eo.onTouched()})("compositionstart",function(){return Eo._compositionStart()})("compositionend",function(Nr){return Eo._compositionEnd(Nr.target.value)})},features:[e._Bn([u]),e.qOj]})}return zn})();function H(zn){return null==zn||("string"==typeof zn||Array.isArray(zn))&&0===zn.length}function O(zn){return null!=zn&&"number"==typeof zn.length}const P=new e.OlP(""),G=new e.OlP(""),B=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ae{static min(di){return function J(zn){return di=>{if(H(di.value)||H(zn))return null;const cn=parseFloat(di.value);return!isNaN(cn)&&cn<zn?{min:{min:zn,actual:di.value}}:null}}(di)}static max(di){return function q(zn){return di=>{if(H(di.value)||H(zn))return null;const cn=parseFloat(di.value);return!isNaN(cn)&&cn>zn?{max:{max:zn,actual:di.value}}:null}}(di)}static required(di){return j(di)}static requiredTrue(di){return Y(di)}static email(di){return function K(zn){return H(zn.value)||B.test(zn.value)?null:{email:!0}}(di)}static minLength(di){return function ne(zn){return di=>H(di.value)||!O(di.value)?null:di.value.length<zn?{minlength:{requiredLength:zn,actualLength:di.value.length}}:null}(di)}static maxLength(di){return function ee(zn){return di=>O(di.value)&&di.value.length>zn?{maxlength:{requiredLength:zn,actualLength:di.value.length}}:null}(di)}static pattern(di){return $(di)}static nullValidator(di){return null}static compose(di){return me(di)}static composeAsync(di){return Ue(di)}}function j(zn){return H(zn.value)?{required:!0}:null}function Y(zn){return!0===zn.value?null:{required:!0}}function $(zn){if(!zn)return ue;let di,cn;return"string"==typeof zn?(cn="","^"!==zn.charAt(0)&&(cn+="^"),cn+=zn,"$"!==zn.charAt(zn.length-1)&&(cn+="$"),di=new RegExp(cn)):(cn=zn.toString(),di=zn),Zi=>{if(H(Zi.value))return null;const Eo=Zi.value;return di.test(Eo)?null:{pattern:{requiredPattern:cn,actualValue:Eo}}}}function ue(zn){return null}function ge(zn){return null!=zn}function Ke(zn){return(0,e.QGY)(zn)?(0,s.D)(zn):zn}function at(zn){let di={};return zn.forEach(cn=>{di=null!=cn?{...di,...cn}:di}),0===Object.keys(di).length?null:di}function Le(zn,di){return di.map(cn=>cn(zn))}function Te(zn){return zn.map(di=>function R(zn){return!zn.validate}(di)?di:cn=>di.validate(cn))}function me(zn){if(!zn)return null;const di=zn.filter(ge);return 0==di.length?null:function(cn){return at(Le(cn,di))}}function Se(zn){return null!=zn?me(Te(zn)):null}function Ue(zn){if(!zn)return null;const di=zn.filter(ge);return 0==di.length?null:function(cn){const Zi=Le(cn,di).map(Ke);return(0,l.D)(Zi).pipe((0,i.U)(at))}}function We(zn){return null!=zn?Ue(Te(zn)):null}function et(zn,di){return null===zn?[di]:Array.isArray(zn)?[...zn,di]:[zn,di]}function Et(zn){return zn._rawValidators}function lt(zn){return zn._rawAsyncValidators}function Vt(zn){return zn?Array.isArray(zn)?zn:[zn]:[]}function r(zn,di){return Array.isArray(zn)?zn.includes(di):zn===di}function Z(zn,di){const cn=Vt(di);return Vt(zn).forEach(Eo=>{r(cn,Eo)||cn.push(Eo)}),cn}function Pt(zn,di){return Vt(di).filter(cn=>!r(zn,cn))}class Oe{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(di){this._rawValidators=di||[],this._composedValidatorFn=Se(this._rawValidators)}_setAsyncValidators(di){this._rawAsyncValidators=di||[],this._composedAsyncValidatorFn=We(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(di){this._onDestroyCallbacks.push(di)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(di=>di()),this._onDestroyCallbacks=[]}reset(di=void 0){this.control&&this.control.reset(di)}hasError(di,cn){return!!this.control&&this.control.hasError(di,cn)}getError(di,cn){return this.control?this.control.getError(di,cn):null}}class ye extends Oe{get formDirective(){return null}get path(){return null}}class ve extends Oe{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class ft{constructor(di){this._cd=di}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let ti=(()=>{class zn extends ft{constructor(cn){super(cn)}static#e=this.\u0275fac=function(Zi){return new(Zi||zn)(e.Y36(ve,2))};static#t=this.\u0275dir=e.lG2({type:zn,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Zi,Eo){2&Zi&&e.ekj("ng-untouched",Eo.isUntouched)("ng-touched",Eo.isTouched)("ng-pristine",Eo.isPristine)("ng-dirty",Eo.isDirty)("ng-valid",Eo.isValid)("ng-invalid",Eo.isInvalid)("ng-pending",Eo.isPending)},features:[e.qOj]})}return zn})(),Xt=(()=>{class zn extends ft{constructor(cn){super(cn)}static#e=this.\u0275fac=function(Zi){return new(Zi||zn)(e.Y36(ye,10))};static#t=this.\u0275dir=e.lG2({type:zn,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Zi,Eo){2&Zi&&e.ekj("ng-untouched",Eo.isUntouched)("ng-touched",Eo.isTouched)("ng-pristine",Eo.isPristine)("ng-dirty",Eo.isDirty)("ng-valid",Eo.isValid)("ng-invalid",Eo.isInvalid)("ng-pending",Eo.isPending)("ng-submitted",Eo.isSubmitted)},features:[e.qOj]})}return zn})();const ji="VALID",Ii="INVALID",_i="PENDING",En="DISABLED";function co(zn){return(rt(zn)?zn.validators:zn)||null}function ln(zn,di){return(rt(di)?di.asyncValidators:zn)||null}function rt(zn){return null!=zn&&!Array.isArray(zn)&&"object"==typeof zn}function $e(zn,di,cn){const Zi=zn.controls;if(!(di?Object.keys(Zi):Zi).length)throw new e.vHH(1e3,"");if(!Zi[cn])throw new e.vHH(1001,"")}function Ve(zn,di,cn){zn._forEachChild((Zi,Eo)=>{if(void 0===cn[Eo])throw new e.vHH(1002,"")})}class Ce{constructor(di,cn){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(di),this._assignAsyncValidators(cn)}get validator(){return this._composedValidatorFn}set validator(di){this._rawValidators=this._composedValidatorFn=di}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(di){this._rawAsyncValidators=this._composedAsyncValidatorFn=di}get parent(){return this._parent}get valid(){return this.status===ji}get invalid(){return this.status===Ii}get pending(){return this.status==_i}get disabled(){return this.status===En}get enabled(){return this.status!==En}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(di){this._assignValidators(di)}setAsyncValidators(di){this._assignAsyncValidators(di)}addValidators(di){this.setValidators(Z(di,this._rawValidators))}addAsyncValidators(di){this.setAsyncValidators(Z(di,this._rawAsyncValidators))}removeValidators(di){this.setValidators(Pt(di,this._rawValidators))}removeAsyncValidators(di){this.setAsyncValidators(Pt(di,this._rawAsyncValidators))}hasValidator(di){return r(this._rawValidators,di)}hasAsyncValidator(di){return r(this._rawAsyncValidators,di)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(di={}){this.touched=!0,this._parent&&!di.onlySelf&&this._parent.markAsTouched(di)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(di=>di.markAllAsTouched())}markAsUntouched(di={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(cn=>{cn.markAsUntouched({onlySelf:!0})}),this._parent&&!di.onlySelf&&this._parent._updateTouched(di)}markAsDirty(di={}){this.pristine=!1,this._parent&&!di.onlySelf&&this._parent.markAsDirty(di)}markAsPristine(di={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(cn=>{cn.markAsPristine({onlySelf:!0})}),this._parent&&!di.onlySelf&&this._parent._updatePristine(di)}markAsPending(di={}){this.status=_i,!1!==di.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!di.onlySelf&&this._parent.markAsPending(di)}disable(di={}){const cn=this._parentMarkedDirty(di.onlySelf);this.status=En,this.errors=null,this._forEachChild(Zi=>{Zi.disable({...di,onlySelf:!0})}),this._updateValue(),!1!==di.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...di,skipPristineCheck:cn}),this._onDisabledChange.forEach(Zi=>Zi(!0))}enable(di={}){const cn=this._parentMarkedDirty(di.onlySelf);this.status=ji,this._forEachChild(Zi=>{Zi.enable({...di,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:di.emitEvent}),this._updateAncestors({...di,skipPristineCheck:cn}),this._onDisabledChange.forEach(Zi=>Zi(!1))}_updateAncestors(di){this._parent&&!di.onlySelf&&(this._parent.updateValueAndValidity(di),di.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(di){this._parent=di}getRawValue(){return this.value}updateValueAndValidity(di={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ji||this.status===_i)&&this._runAsyncValidator(di.emitEvent)),!1!==di.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!di.onlySelf&&this._parent.updateValueAndValidity(di)}_updateTreeValidity(di={emitEvent:!0}){this._forEachChild(cn=>cn._updateTreeValidity(di)),this.updateValueAndValidity({onlySelf:!0,emitEvent:di.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?En:ji}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(di){if(this.asyncValidator){this.status=_i,this._hasOwnPendingAsyncValidator=!0;const cn=Ke(this.asyncValidator(this));this._asyncValidationSubscription=cn.subscribe(Zi=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Zi,{emitEvent:di})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(di,cn={}){this.errors=di,this._updateControlsErrors(!1!==cn.emitEvent)}get(di){let cn=di;return null==cn||(Array.isArray(cn)||(cn=cn.split(".")),0===cn.length)?null:cn.reduce((Zi,Eo)=>Zi&&Zi._find(Eo),this)}getError(di,cn){const Zi=cn?this.get(cn):this;return Zi&&Zi.errors?Zi.errors[di]:null}hasError(di,cn){return!!this.getError(di,cn)}get root(){let di=this;for(;di._parent;)di=di._parent;return di}_updateControlsErrors(di){this.status=this._calculateStatus(),di&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(di)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?En:this.errors?Ii:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(_i)?_i:this._anyControlsHaveStatus(Ii)?Ii:ji}_anyControlsHaveStatus(di){return this._anyControls(cn=>cn.status===di)}_anyControlsDirty(){return this._anyControls(di=>di.dirty)}_anyControlsTouched(){return this._anyControls(di=>di.touched)}_updatePristine(di={}){this.pristine=!this._anyControlsDirty(),this._parent&&!di.onlySelf&&this._parent._updatePristine(di)}_updateTouched(di={}){this.touched=this._anyControlsTouched(),this._parent&&!di.onlySelf&&this._parent._updateTouched(di)}_registerOnCollectionChange(di){this._onCollectionChange=di}_setUpdateStrategy(di){rt(di)&&null!=di.updateOn&&(this._updateOn=di.updateOn)}_parentMarkedDirty(di){return!di&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(di){return null}_assignValidators(di){this._rawValidators=Array.isArray(di)?di.slice():di,this._composedValidatorFn=function yn(zn){return Array.isArray(zn)?Se(zn):zn||null}(this._rawValidators)}_assignAsyncValidators(di){this._rawAsyncValidators=Array.isArray(di)?di.slice():di,this._composedAsyncValidatorFn=function He(zn){return Array.isArray(zn)?We(zn):zn||null}(this._rawAsyncValidators)}}class tt extends Ce{constructor(di,cn,Zi){super(co(cn),ln(Zi,cn)),this.controls=di,this._initObservables(),this._setUpdateStrategy(cn),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(di,cn){return this.controls[di]?this.controls[di]:(this.controls[di]=cn,cn.setParent(this),cn._registerOnCollectionChange(this._onCollectionChange),cn)}addControl(di,cn,Zi={}){this.registerControl(di,cn),this.updateValueAndValidity({emitEvent:Zi.emitEvent}),this._onCollectionChange()}removeControl(di,cn={}){this.controls[di]&&this.controls[di]._registerOnCollectionChange(()=>{}),delete this.controls[di],this.updateValueAndValidity({emitEvent:cn.emitEvent}),this._onCollectionChange()}setControl(di,cn,Zi={}){this.controls[di]&&this.controls[di]._registerOnCollectionChange(()=>{}),delete this.controls[di],cn&&this.registerControl(di,cn),this.updateValueAndValidity({emitEvent:Zi.emitEvent}),this._onCollectionChange()}contains(di){return this.controls.hasOwnProperty(di)&&this.controls[di].enabled}setValue(di,cn={}){Ve(this,0,di),Object.keys(di).forEach(Zi=>{$e(this,!0,Zi),this.controls[Zi].setValue(di[Zi],{onlySelf:!0,emitEvent:cn.emitEvent})}),this.updateValueAndValidity(cn)}patchValue(di,cn={}){null!=di&&(Object.keys(di).forEach(Zi=>{const Eo=this.controls[Zi];Eo&&Eo.patchValue(di[Zi],{onlySelf:!0,emitEvent:cn.emitEvent})}),this.updateValueAndValidity(cn))}reset(di={},cn={}){this._forEachChild((Zi,Eo)=>{Zi.reset(di?di[Eo]:null,{onlySelf:!0,emitEvent:cn.emitEvent})}),this._updatePristine(cn),this._updateTouched(cn),this.updateValueAndValidity(cn)}getRawValue(){return this._reduceChildren({},(di,cn,Zi)=>(di[Zi]=cn.getRawValue(),di))}_syncPendingControls(){let di=this._reduceChildren(!1,(cn,Zi)=>!!Zi._syncPendingControls()||cn);return di&&this.updateValueAndValidity({onlySelf:!0}),di}_forEachChild(di){Object.keys(this.controls).forEach(cn=>{const Zi=this.controls[cn];Zi&&di(Zi,cn)})}_setUpControls(){this._forEachChild(di=>{di.setParent(this),di._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(di){for(const[cn,Zi]of Object.entries(this.controls))if(this.contains(cn)&&di(Zi))return!0;return!1}_reduceValue(){return this._reduceChildren({},(cn,Zi,Eo)=>((Zi.enabled||this.disabled)&&(cn[Eo]=Zi.value),cn))}_reduceChildren(di,cn){let Zi=di;return this._forEachChild((Eo,oa)=>{Zi=cn(Zi,Eo,oa)}),Zi}_allControlsDisabled(){for(const di of Object.keys(this.controls))if(this.controls[di].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(di){return this.controls.hasOwnProperty(di)?this.controls[di]:null}}const Qt=tt;class Yt extends tt{}const yt=new e.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>Bt}),Bt="always";function li(zn,di){return[...di.path,zn]}function si(zn,di,cn=Bt){mo(zn,di),di.valueAccessor.writeValue(zn.value),(zn.disabled||"always"===cn)&&di.valueAccessor.setDisabledState?.(zn.disabled),function Ji(zn,di){di.valueAccessor.registerOnChange(cn=>{zn._pendingValue=cn,zn._pendingChange=!0,zn._pendingDirty=!0,"change"===zn.updateOn&&po(zn,di)})}(zn,di),function Kn(zn,di){const cn=(Zi,Eo)=>{di.valueAccessor.writeValue(Zi),Eo&&di.viewToModelUpdate(Zi)};zn.registerOnChange(cn),di._registerOnDestroy(()=>{zn._unregisterOnChange(cn)})}(zn,di),function wn(zn,di){di.valueAccessor.registerOnTouched(()=>{zn._pendingTouched=!0,"blur"===zn.updateOn&&zn._pendingChange&&po(zn,di),"submit"!==zn.updateOn&&zn.markAsTouched()})}(zn,di),function Hn(zn,di){if(di.valueAccessor.setDisabledState){const cn=Zi=>{di.valueAccessor.setDisabledState(Zi)};zn.registerOnDisabledChange(cn),di._registerOnDestroy(()=>{zn._unregisterOnDisabledChange(cn)})}}(zn,di)}function oo(zn,di,cn=!0){const Zi=()=>{};di.valueAccessor&&(di.valueAccessor.registerOnChange(Zi),di.valueAccessor.registerOnTouched(Zi)),vn(zn,di),zn&&(di._invokeOnDestroyCallbacks(),zn._registerOnCollectionChange(()=>{}))}function _o(zn,di){zn.forEach(cn=>{cn.registerOnValidatorChange&&cn.registerOnValidatorChange(di)})}function mo(zn,di){const cn=Et(zn);null!==di.validator?zn.setValidators(et(cn,di.validator)):"function"==typeof cn&&zn.setValidators([cn]);const Zi=lt(zn);null!==di.asyncValidator?zn.setAsyncValidators(et(Zi,di.asyncValidator)):"function"==typeof Zi&&zn.setAsyncValidators([Zi]);const Eo=()=>zn.updateValueAndValidity();_o(di._rawValidators,Eo),_o(di._rawAsyncValidators,Eo)}function vn(zn,di){let cn=!1;if(null!==zn){if(null!==di.validator){const Eo=Et(zn);if(Array.isArray(Eo)&&Eo.length>0){const oa=Eo.filter(Nr=>Nr!==di.validator);oa.length!==Eo.length&&(cn=!0,zn.setValidators(oa))}}if(null!==di.asyncValidator){const Eo=lt(zn);if(Array.isArray(Eo)&&Eo.length>0){const oa=Eo.filter(Nr=>Nr!==di.asyncValidator);oa.length!==Eo.length&&(cn=!0,zn.setAsyncValidators(oa))}}}const Zi=()=>{};return _o(di._rawValidators,Zi),_o(di._rawAsyncValidators,Zi),cn}function po(zn,di){zn._pendingDirty&&zn.markAsDirty(),zn.setValue(zn._pendingValue,{emitModelToViewChange:!1}),di.viewToModelUpdate(zn._pendingValue),zn._pendingChange=!1}function Vn(zn,di){mo(zn,di)}function Dn(zn,di){if(!zn.hasOwnProperty("model"))return!1;const cn=zn.model;return!!cn.isFirstChange()||!Object.is(di,cn.currentValue)}function kn(zn,di){zn._syncPendingControls(),di.forEach(cn=>{const Zi=cn.control;"submit"===Zi.updateOn&&Zi._pendingChange&&(cn.viewToModelUpdate(Zi._pendingValue),Zi._pendingChange=!1)})}function Fi(zn,di){if(!di)return null;let cn,Zi,Eo;return Array.isArray(di),di.forEach(oa=>{oa.constructor===I?cn=oa:function Wt(zn){return Object.getPrototypeOf(zn.constructor)===p}(oa)?Zi=oa:Eo=oa}),Eo||Zi||cn||null}const At={provide:ye,useExisting:(0,e.Gpc)(()=>Bn)},Jn=Promise.resolve();let Bn=(()=>{class zn extends ye{constructor(cn,Zi,Eo){super(),this.callSetDisabledState=Eo,this.submitted=!1,this._directives=new Set,this.ngSubmit=new e.vpe,this.form=new tt({},Se(cn),We(Zi))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(cn){Jn.then(()=>{const Zi=this._findContainer(cn.path);cn.control=Zi.registerControl(cn.name,cn.control),si(cn.control,cn,this.callSetDisabledState),cn.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(cn)})}getControl(cn){return this.form.get(cn.path)}removeControl(cn){Jn.then(()=>{const Zi=this._findContainer(cn.path);Zi&&Zi.removeControl(cn.name),this._directives.delete(cn)})}addFormGroup(cn){Jn.then(()=>{const Zi=this._findContainer(cn.path),Eo=new tt({});Vn(Eo,cn),Zi.registerControl(cn.name,Eo),Eo.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(cn){Jn.then(()=>{const Zi=this._findContainer(cn.path);Zi&&Zi.removeControl(cn.name)})}getFormGroup(cn){return this.form.get(cn.path)}updateModel(cn,Zi){Jn.then(()=>{this.form.get(cn.path).setValue(Zi)})}setValue(cn){this.control.setValue(cn)}onSubmit(cn){return this.submitted=!0,kn(this.form,this._directives),this.ngSubmit.emit(cn),"dialog"===cn?.target?.method}onReset(){this.resetForm()}resetForm(cn=void 0){this.form.reset(cn),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(cn){return cn.pop(),cn.length?this.form.get(cn):this.form}static#e=this.\u0275fac=function(Zi){return new(Zi||zn)(e.Y36(P,10),e.Y36(G,10),e.Y36(yt,8))};static#t=this.\u0275dir=e.lG2({type:zn,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Zi,Eo){1&Zi&&e.NdJ("submit",function(Nr){return Eo.onSubmit(Nr)})("reset",function(){return Eo.onReset()})},inputs:{options:[e.lbL.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([At]),e.qOj]})}return zn})();function Bi(zn,di){const cn=zn.indexOf(di);cn>-1&&zn.splice(cn,1)}function $n(zn){return"object"==typeof zn&&null!==zn&&2===Object.keys(zn).length&&"value"in zn&&"disabled"in zn}const Ui=class extends Ce{constructor(di=null,cn,Zi){super(co(cn),ln(Zi,cn)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(di),this._setUpdateStrategy(cn),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),rt(cn)&&(cn.nonNullable||cn.initialValueIsDefault)&&(this.defaultValue=$n(di)?di.value:di)}setValue(di,cn={}){this.value=this._pendingValue=di,this._onChange.length&&!1!==cn.emitModelToViewChange&&this._onChange.forEach(Zi=>Zi(this.value,!1!==cn.emitViewToModelChange)),this.updateValueAndValidity(cn)}patchValue(di,cn={}){this.setValue(di,cn)}reset(di=this.defaultValue,cn={}){this._applyFormState(di),this.markAsPristine(cn),this.markAsUntouched(cn),this.setValue(this.value,cn),this._pendingChange=!1}_updateValue(){}_anyControls(di){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(di){this._onChange.push(di)}_unregisterOnChange(di){Bi(this._onChange,di)}registerOnDisabledChange(di){this._onDisabledChange.push(di)}_unregisterOnDisabledChange(di){Bi(this._onDisabledChange,di)}_forEachChild(di){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(di){$n(di)?(this.value=this._pendingValue=di.value,di.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=di}},Xo=Ui;let an=(()=>{class zn extends ye{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return li(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static#e=this.\u0275fac=(()=>{let cn;return function(Eo){return(cn||(cn=e.n5z(zn)))(Eo||zn)}})();static#t=this.\u0275dir=e.lG2({type:zn,features:[e.qOj]})}return zn})();const qi={provide:ve,useExisting:(0,e.Gpc)(()=>zo)},wi=Promise.resolve();let zo=(()=>{class zn extends ve{constructor(cn,Zi,Eo,oa,Nr,Rs){super(),this._changeDetectorRef=Nr,this.callSetDisabledState=Rs,this.control=new Ui,this._registered=!1,this.name="",this.update=new e.vpe,this._parent=cn,this._setValidators(Zi),this._setAsyncValidators(Eo),this.valueAccessor=Fi(0,oa)}ngOnChanges(cn){if(this._checkForErrors(),!this._registered||"name"in cn){if(this._registered&&(this._checkName(),this.formDirective)){const Zi=cn.name.previousValue;this.formDirective.removeControl({name:Zi,path:this._getPath(Zi)})}this._setUpControl()}"isDisabled"in cn&&this._updateDisabled(cn),Dn(cn,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(cn){this.viewModel=cn,this.update.emit(cn)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){si(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(cn){wi.then(()=>{this.control.setValue(cn,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(cn){const Zi=cn.isDisabled.currentValue,Eo=0!==Zi&&(0,e.VuI)(Zi);wi.then(()=>{Eo&&!this.control.disabled?this.control.disable():!Eo&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(cn){return this._parent?li(cn,this._parent):[cn]}static#e=this.\u0275fac=function(Zi){return new(Zi||zn)(e.Y36(ye,9),e.Y36(P,10),e.Y36(G,10),e.Y36(c,10),e.Y36(e.sBO,8),e.Y36(yt,8))};static#t=this.\u0275dir=e.lG2({type:zn,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[e.lbL.None,"disabled","isDisabled"],model:[e.lbL.None,"ngModel","model"],options:[e.lbL.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e._Bn([qi]),e.qOj,e.TTD]})}return zn})(),xi=(()=>{class zn{static#e=this.\u0275fac=function(Zi){return new(Zi||zn)};static#t=this.\u0275dir=e.lG2({type:zn,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return zn})();const ki={provide:c,useExisting:(0,e.Gpc)(()=>wo),multi:!0};let wo=(()=>{class zn extends p{writeValue(cn){this.setProperty("value",cn??"")}registerOnChange(cn){this.onChange=Zi=>{cn(""==Zi?null:parseFloat(Zi))}}static#e=this.\u0275fac=(()=>{let cn;return function(Eo){return(cn||(cn=e.n5z(zn)))(Eo||zn)}})();static#t=this.\u0275dir=e.lG2({type:zn,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Zi,Eo){1&Zi&&e.NdJ("input",function(Nr){return Eo.onChange(Nr.target.value)})("blur",function(){return Eo.onTouched()})},features:[e._Bn([ki]),e.qOj]})}return zn})();const ss=new e.OlP(""),Hs={provide:ve,useExisting:(0,e.Gpc)(()=>Cs)};let Cs=(()=>{class zn extends ve{set isDisabled(cn){}static#e=this._ngModelWarningSentOnce=!1;constructor(cn,Zi,Eo,oa,Nr){super(),this._ngModelWarningConfig=oa,this.callSetDisabledState=Nr,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(cn),this._setAsyncValidators(Zi),this.valueAccessor=Fi(0,Eo)}ngOnChanges(cn){if(this._isControlChanged(cn)){const Zi=cn.form.previousValue;Zi&&oo(Zi,this,!1),si(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Dn(cn,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&oo(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(cn){this.viewModel=cn,this.update.emit(cn)}_isControlChanged(cn){return cn.hasOwnProperty("form")}static#t=this.\u0275fac=function(Zi){return new(Zi||zn)(e.Y36(P,10),e.Y36(G,10),e.Y36(c,10),e.Y36(ss,8),e.Y36(yt,8))};static#n=this.\u0275dir=e.lG2({type:zn,selectors:[["","formControl",""]],inputs:{form:[e.lbL.None,"formControl","form"],isDisabled:[e.lbL.None,"disabled","isDisabled"],model:[e.lbL.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([Hs]),e.qOj,e.TTD]})}return zn})();const ms={provide:ye,useExisting:(0,e.Gpc)(()=>ja)};let ja=(()=>{class zn extends ye{constructor(cn,Zi,Eo){super(),this.callSetDisabledState=Eo,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(cn),this._setAsyncValidators(Zi)}ngOnChanges(cn){this._checkFormPresent(),cn.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(vn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(cn){const Zi=this.form.get(cn.path);return si(Zi,cn,this.callSetDisabledState),Zi.updateValueAndValidity({emitEvent:!1}),this.directives.push(cn),Zi}getControl(cn){return this.form.get(cn.path)}removeControl(cn){oo(cn.control||null,cn,!1),function ui(zn,di){const cn=zn.indexOf(di);cn>-1&&zn.splice(cn,1)}(this.directives,cn)}addFormGroup(cn){this._setUpFormContainer(cn)}removeFormGroup(cn){this._cleanUpFormContainer(cn)}getFormGroup(cn){return this.form.get(cn.path)}addFormArray(cn){this._setUpFormContainer(cn)}removeFormArray(cn){this._cleanUpFormContainer(cn)}getFormArray(cn){return this.form.get(cn.path)}updateModel(cn,Zi){this.form.get(cn.path).setValue(Zi)}onSubmit(cn){return this.submitted=!0,kn(this.form,this.directives),this.ngSubmit.emit(cn),"dialog"===cn?.target?.method}onReset(){this.resetForm()}resetForm(cn=void 0){this.form.reset(cn),this.submitted=!1}_updateDomValue(){this.directives.forEach(cn=>{const Zi=cn.control,Eo=this.form.get(cn.path);Zi!==Eo&&(oo(Zi||null,cn),(zn=>zn instanceof Ui)(Eo)&&(si(Eo,cn,this.callSetDisabledState),cn.control=Eo))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(cn){const Zi=this.form.get(cn.path);Vn(Zi,cn),Zi.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(cn){if(this.form){const Zi=this.form.get(cn.path);Zi&&function Wi(zn,di){return vn(zn,di)}(Zi,cn)&&Zi.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){mo(this.form,this),this._oldForm&&vn(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(Zi){return new(Zi||zn)(e.Y36(P,10),e.Y36(G,10),e.Y36(yt,8))};static#t=this.\u0275dir=e.lG2({type:zn,selectors:[["","formGroup",""]],hostBindings:function(Zi,Eo){1&Zi&&e.NdJ("submit",function(Nr){return Eo.onSubmit(Nr)})("reset",function(){return Eo.onReset()})},inputs:{form:[e.lbL.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([ms]),e.qOj,e.TTD]})}return zn})();const el={provide:ye,useExisting:(0,e.Gpc)(()=>Vs)};let Vs=(()=>{class zn extends an{constructor(cn,Zi,Eo){super(),this.name=null,this._parent=cn,this._setValidators(Zi),this._setAsyncValidators(Eo)}_checkParentType(){Ds(this._parent)}static#e=this.\u0275fac=function(Zi){return new(Zi||zn)(e.Y36(ye,13),e.Y36(P,10),e.Y36(G,10))};static#t=this.\u0275dir=e.lG2({type:zn,selectors:[["","formGroupName",""]],inputs:{name:[e.lbL.None,"formGroupName","name"]},features:[e._Bn([el]),e.qOj]})}return zn})();const ls={provide:ye,useExisting:(0,e.Gpc)(()=>Fa)};let Fa=(()=>{class zn extends ye{constructor(cn,Zi,Eo){super(),this.name=null,this._parent=cn,this._setValidators(Zi),this._setAsyncValidators(Eo)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return li(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Ds(this._parent)}static#e=this.\u0275fac=function(Zi){return new(Zi||zn)(e.Y36(ye,13),e.Y36(P,10),e.Y36(G,10))};static#t=this.\u0275dir=e.lG2({type:zn,selectors:[["","formArrayName",""]],inputs:{name:[e.lbL.None,"formArrayName","name"]},features:[e._Bn([ls]),e.qOj]})}return zn})();function Ds(zn){return!(zn instanceof Vs||zn instanceof ja||zn instanceof Fa)}const dl={provide:ve,useExisting:(0,e.Gpc)(()=>ka)};let ka=(()=>{class zn extends ve{set isDisabled(cn){}static#e=this._ngModelWarningSentOnce=!1;constructor(cn,Zi,Eo,oa,Nr){super(),this._ngModelWarningConfig=Nr,this._added=!1,this.name=null,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=cn,this._setValidators(Zi),this._setAsyncValidators(Eo),this.valueAccessor=Fi(0,oa)}ngOnChanges(cn){this._added||this._setUpControl(),Dn(cn,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(cn){this.viewModel=cn,this.update.emit(cn)}get path(){return li(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(Zi){return new(Zi||zn)(e.Y36(ye,13),e.Y36(P,10),e.Y36(G,10),e.Y36(c,10),e.Y36(ss,8))};static#n=this.\u0275dir=e.lG2({type:zn,selectors:[["","formControlName",""]],inputs:{name:[e.lbL.None,"formControlName","name"],isDisabled:[e.lbL.None,"disabled","isDisabled"],model:[e.lbL.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([dl]),e.qOj,e.TTD]})}return zn})(),Vr=(()=>{class zn{constructor(){this._validator=ue}ngOnChanges(cn){if(this.inputName in cn){const Zi=this.normalizeInput(cn[this.inputName].currentValue);this._enabled=this.enabled(Zi),this._validator=this._enabled?this.createValidator(Zi):ue,this._onChange&&this._onChange()}}validate(cn){return this._validator(cn)}registerOnValidatorChange(cn){this._onChange=cn}enabled(cn){return null!=cn}static#e=this.\u0275fac=function(Zi){return new(Zi||zn)};static#t=this.\u0275dir=e.lG2({type:zn,features:[e.TTD]})}return zn})();const Yi={provide:P,useExisting:(0,e.Gpc)(()=>Cn),multi:!0},jo={provide:P,useExisting:(0,e.Gpc)(()=>uo),multi:!0};let Cn=(()=>{class zn extends Vr{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e.VuI,this.createValidator=cn=>j}enabled(cn){return cn}static#e=this.\u0275fac=(()=>{let cn;return function(Eo){return(cn||(cn=e.n5z(zn)))(Eo||zn)}})();static#t=this.\u0275dir=e.lG2({type:zn,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Zi,Eo){2&Zi&&e.uIk("required",Eo._enabled?"":null)},inputs:{required:"required"},features:[e._Bn([Yi]),e.qOj]})}return zn})(),uo=(()=>{class zn extends Cn{constructor(){super(...arguments),this.createValidator=cn=>Y}static#e=this.\u0275fac=(()=>{let cn;return function(Eo){return(cn||(cn=e.n5z(zn)))(Eo||zn)}})();static#t=this.\u0275dir=e.lG2({type:zn,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Zi,Eo){2&Zi&&e.uIk("required",Eo._enabled?"":null)},features:[e._Bn([jo]),e.qOj]})}return zn})();const ys={provide:P,useExisting:(0,e.Gpc)(()=>zr),multi:!0};let zr=(()=>{class zn extends Vr{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=cn=>cn,this.createValidator=cn=>$(cn)}static#e=this.\u0275fac=(()=>{let cn;return function(Eo){return(cn||(cn=e.n5z(zn)))(Eo||zn)}})();static#t=this.\u0275dir=e.lG2({type:zn,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(Zi,Eo){2&Zi&&e.uIk("pattern",Eo._enabled?Eo.pattern:null)},inputs:{pattern:"pattern"},features:[e._Bn([ys]),e.qOj]})}return zn})(),Ir=(()=>{class zn{static#e=this.\u0275fac=function(Zi){return new(Zi||zn)};static#t=this.\u0275mod=e.oAB({type:zn});static#n=this.\u0275inj=e.cJS({})}return zn})();class Da extends Ce{constructor(di,cn,Zi){super(co(cn),ln(Zi,cn)),this.controls=di,this._initObservables(),this._setUpdateStrategy(cn),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(di){return this.controls[this._adjustIndex(di)]}push(di,cn={}){this.controls.push(di),this._registerControl(di),this.updateValueAndValidity({emitEvent:cn.emitEvent}),this._onCollectionChange()}insert(di,cn,Zi={}){this.controls.splice(di,0,cn),this._registerControl(cn),this.updateValueAndValidity({emitEvent:Zi.emitEvent})}removeAt(di,cn={}){let Zi=this._adjustIndex(di);Zi<0&&(Zi=0),this.controls[Zi]&&this.controls[Zi]._registerOnCollectionChange(()=>{}),this.controls.splice(Zi,1),this.updateValueAndValidity({emitEvent:cn.emitEvent})}setControl(di,cn,Zi={}){let Eo=this._adjustIndex(di);Eo<0&&(Eo=0),this.controls[Eo]&&this.controls[Eo]._registerOnCollectionChange(()=>{}),this.controls.splice(Eo,1),cn&&(this.controls.splice(Eo,0,cn),this._registerControl(cn)),this.updateValueAndValidity({emitEvent:Zi.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(di,cn={}){Ve(this,0,di),di.forEach((Zi,Eo)=>{$e(this,!1,Eo),this.at(Eo).setValue(Zi,{onlySelf:!0,emitEvent:cn.emitEvent})}),this.updateValueAndValidity(cn)}patchValue(di,cn={}){null!=di&&(di.forEach((Zi,Eo)=>{this.at(Eo)&&this.at(Eo).patchValue(Zi,{onlySelf:!0,emitEvent:cn.emitEvent})}),this.updateValueAndValidity(cn))}reset(di=[],cn={}){this._forEachChild((Zi,Eo)=>{Zi.reset(di[Eo],{onlySelf:!0,emitEvent:cn.emitEvent})}),this._updatePristine(cn),this._updateTouched(cn),this.updateValueAndValidity(cn)}getRawValue(){return this.controls.map(di=>di.getRawValue())}clear(di={}){this.controls.length<1||(this._forEachChild(cn=>cn._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:di.emitEvent}))}_adjustIndex(di){return di<0?di+this.length:di}_syncPendingControls(){let di=this.controls.reduce((cn,Zi)=>!!Zi._syncPendingControls()||cn,!1);return di&&this.updateValueAndValidity({onlySelf:!0}),di}_forEachChild(di){this.controls.forEach((cn,Zi)=>{di(cn,Zi)})}_updateValue(){this.value=this.controls.filter(di=>di.enabled||this.disabled).map(di=>di.value)}_anyControls(di){return this.controls.some(cn=>cn.enabled&&di(cn))}_setUpControls(){this._forEachChild(di=>this._registerControl(di))}_allControlsDisabled(){for(const di of this.controls)if(di.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(di){di.setParent(this),di._registerOnCollectionChange(this._onCollectionChange)}_find(di){return this.at(di)??null}}const ia=Da;function Is(zn){return!!zn&&(void 0!==zn.asyncValidators||void 0!==zn.validators||void 0!==zn.updateOn)}let ba=(()=>{class zn{constructor(){this.useNonNullable=!1}get nonNullable(){const cn=new zn;return cn.useNonNullable=!0,cn}group(cn,Zi=null){const Eo=this._reduceControls(cn);let oa={};return Is(Zi)?oa=Zi:null!==Zi&&(oa.validators=Zi.validator,oa.asyncValidators=Zi.asyncValidator),new tt(Eo,oa)}record(cn,Zi=null){const Eo=this._reduceControls(cn);return new Yt(Eo,Zi)}control(cn,Zi,Eo){let oa={};return this.useNonNullable?(Is(Zi)?oa=Zi:(oa.validators=Zi,oa.asyncValidators=Eo),new Ui(cn,{...oa,nonNullable:!0})):new Ui(cn,Zi,Eo)}array(cn,Zi,Eo){const oa=cn.map(Nr=>this._createControl(Nr));return new Da(oa,Zi,Eo)}_reduceControls(cn){const Zi={};return Object.keys(cn).forEach(Eo=>{Zi[Eo]=this._createControl(cn[Eo])}),Zi}_createControl(cn){return cn instanceof Ui||cn instanceof Ce?cn:Array.isArray(cn)?this.control(cn[0],cn.length>1?cn[1]:null,cn.length>2?cn[2]:null):this.control(cn)}static#e=this.\u0275fac=function(Zi){return new(Zi||zn)};static#t=this.\u0275prov=e.Yz7({token:zn,factory:zn.\u0275fac,providedIn:"root"})}return zn})(),Ca=(()=>{class zn extends ba{group(cn,Zi=null){return super.group(cn,Zi)}control(cn,Zi,Eo){return super.control(cn,Zi,Eo)}array(cn,Zi,Eo){return super.array(cn,Zi,Eo)}static#e=this.\u0275fac=(()=>{let cn;return function(Eo){return(cn||(cn=e.n5z(zn)))(Eo||zn)}})();static#t=this.\u0275prov=e.Yz7({token:zn,factory:zn.\u0275fac,providedIn:"root"})}return zn})(),wa=(()=>{class zn{static withConfig(cn){return{ngModule:zn,providers:[{provide:yt,useValue:cn.callSetDisabledState??Bt}]}}static#e=this.\u0275fac=function(Zi){return new(Zi||zn)};static#t=this.\u0275mod=e.oAB({type:zn});static#n=this.\u0275inj=e.cJS({imports:[Ir]})}return zn})(),Va=(()=>{class zn{static withConfig(cn){return{ngModule:zn,providers:[{provide:ss,useValue:cn.warnOnNgModelWithFormControl??"always"},{provide:yt,useValue:cn.callSetDisabledState??Bt}]}}static#e=this.\u0275fac=function(Zi){return new(Zi||zn)};static#t=this.\u0275mod=e.oAB({type:zn});static#n=this.\u0275inj=e.cJS({imports:[Ir]})}return zn})()},24630:(gt,X,a)=>{"use strict";a.d(X,{Bb:()=>r,XC:()=>me,ZL:()=>Vt});var e=a(19212),n=a(23680),s=a(96814),l=a(39505),i=a(69594),t=a(4300),p=a(42495),c=a(62831),o=a(86825),x=a(7902),u=a(72079),m=a(24917),b=a(47354),I=a(49193),H=a(49016),O=a(36028),P=a(68484),G=a(56223),B=a(64170),ae=a(53075),J=a(75222),q=a(51418),j=a(97734),Y=a(96124),K=a(17927),ne=a(29384),ee=a(49388);const $=["panel"];function ue(Z,Pt){if(1&Z){const Oe=e.EpF();e.TgZ(0,"div",0,1),e.NdJ("@panelAnimation.done",function(ve){e.CHM(Oe);const ft=e.oxw();return e.KtG(ft._animationDone.next(ve))}),e.Hsn(2),e.qZA()}if(2&Z){const Oe=Pt.id,ye=e.oxw();e.Q6J("id",ye.id)("ngClass",ye._classList)("@panelAnimation",ye.isOpen?"visible":"hidden"),e.uIk("aria-label",ye.ariaLabel||null)("aria-labelledby",ye._getPanelAriaLabelledby(Oe))}}const ge=["*"],Ke=(0,o.X$)("panelAnimation",[(0,o.SB)("void, hidden",(0,o.oB)({opacity:0,transform:"scaleY(0.8)"})),(0,o.eR)(":enter, hidden => visible",[(0,o.ru)([(0,o.jt)("0.03s linear",(0,o.oB)({opacity:1})),(0,o.jt)("0.12s cubic-bezier(0, 0, 0.2, 1)",(0,o.oB)({transform:"scaleY(1)"}))])]),(0,o.eR)(":leave, visible => hidden",[(0,o.jt)("0.075s linear",(0,o.oB)({opacity:0}))])]);let at=0;class Le{constructor(Pt,Oe){this.source=Pt,this.option=Oe}}const R=new e.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function Te(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let me=(()=>{class Z{get isOpen(){return this._isOpen&&this.showPanel}_setColor(Oe){this._color=Oe,this._setThemeClasses(this._classList)}set classList(Oe){this._classList=Oe&&Oe.length?(0,p.du)(Oe).reduce((ye,ve)=>(ye[ve]=!0,ye),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(Oe){this._hideSingleSelectionIndicator=Oe,this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const Oe of this.options)Oe._changeDetectorRef.markForCheck()}constructor(Oe,ye,ve,ft){this._changeDetectorRef=Oe,this._elementRef=ye,this._defaults=ve,this._activeOptionChanges=x.w.EMPTY,this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._animationDone=new e.vpe,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new e.vpe,this.opened=new e.vpe,this.closed=new e.vpe,this.optionActivated=new e.vpe,this._classList={},this.id="mat-autocomplete-"+at++,this.inertGroups=ft?.SAFARI||!1,this.autoActiveFirstOption=!!ve.autoActiveFirstOption,this.autoSelectActiveOption=!!ve.autoSelectActiveOption,this.requireSelection=!!ve.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new t.s1(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(Oe=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[Oe]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(Oe){this.panel&&(this.panel.nativeElement.scrollTop=Oe)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(Oe){const ye=new Le(this,Oe);this.optionSelected.emit(ye)}_getPanelAriaLabelledby(Oe){return this.ariaLabel?null:this.ariaLabelledby?(Oe?Oe+" ":"")+this.ariaLabelledby:Oe}_setVisibilityClasses(Oe){Oe[this._visibleClass]=this.showPanel,Oe[this._hiddenClass]=!this.showPanel}_setThemeClasses(Oe){Oe["mat-primary"]="primary"===this._color,Oe["mat-warn"]="warn"===this._color,Oe["mat-accent"]="accent"===this._color}_skipPredicate(){return!1}static#e=this.\u0275fac=function(ye){return new(ye||Z)(e.Y36(e.sBO),e.Y36(e.SBq),e.Y36(R),e.Y36(c.t4))};static#t=this.\u0275cmp=e.Xpm({type:Z,selectors:[["mat-autocomplete"]],contentQueries:function(ye,ve,ft){if(1&ye&&(e.Suo(ft,n.ey,5),e.Suo(ft,n.K7,5)),2&ye){let Dt;e.iGM(Dt=e.CRH())&&(ve.options=Dt),e.iGM(Dt=e.CRH())&&(ve.optionGroups=Dt)}},viewQuery:function(ye,ve){if(1&ye&&(e.Gf(e.Rgc,7),e.Gf($,5)),2&ye){let ft;e.iGM(ft=e.CRH())&&(ve.template=ft.first),e.iGM(ft=e.CRH())&&(ve.panel=ft.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[e.lbL.None,"aria-label","ariaLabel"],ariaLabelledby:[e.lbL.None,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[e.lbL.HasDecoratorInputTransform,"autoActiveFirstOption","autoActiveFirstOption",e.VuI],autoSelectActiveOption:[e.lbL.HasDecoratorInputTransform,"autoSelectActiveOption","autoSelectActiveOption",e.VuI],requireSelection:[e.lbL.HasDecoratorInputTransform,"requireSelection","requireSelection",e.VuI],panelWidth:"panelWidth",disableRipple:[e.lbL.HasDecoratorInputTransform,"disableRipple","disableRipple",e.VuI],classList:[e.lbL.None,"class","classList"],hideSingleSelectionIndicator:[e.lbL.HasDecoratorInputTransform,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",e.VuI]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],standalone:!0,features:[e._Bn([{provide:n.HF,useExisting:Z}]),e.Xq5,e.jDz],ngContentSelectors:ge,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(ye,ve){1&ye&&(e.F$t(),e.YNc(0,ue,3,5,"ng-template"))},dependencies:[s.mk],styles:["div.mat-mdc-autocomplete-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-autocomplete-background-color)}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[Ke]},changeDetection:0})}return Z})();const Ue={provide:G.JU,useExisting:(0,e.Gpc)(()=>Vt),multi:!0},et=new e.OlP("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{const Z=(0,e.f3M)(i.aV);return()=>Z.scrollStrategies.reposition()}}),lt={provide:et,deps:[i.aV],useFactory:function Et(Z){return()=>Z.scrollStrategies.reposition()}};let Vt=(()=>{class Z{constructor(Oe,ye,ve,ft,Dt,Rn,ti,Xt,Je,dt,Ie){this._element=Oe,this._overlay=ye,this._viewContainerRef=ve,this._zone=ft,this._changeDetectorRef=Dt,this._dir=ti,this._formField=Xt,this._document=Je,this._viewportRuler=dt,this._defaults=Ie,this._componentDestroyed=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=x.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new u.xQ,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._aboveClass="mat-mdc-autocomplete-panel-above",this._overlayAttached=!1,this.optionSelections=(0,m.P)(()=>{const ot=this.autocomplete?this.autocomplete.options:null;return ot?ot.changes.pipe((0,ae.O)(ot),(0,J.w)(()=>(0,b.T)(...ot.map(ct=>ct.onSelectionChange)))):this._zone.onStable.pipe((0,q.q)(1),(0,J.w)(()=>this.optionSelections))}),this._handlePanelKeydown=ot=>{(ot.keyCode===O.hY&&!(0,O.Vb)(ot)||ot.keyCode===O.LH&&(0,O.Vb)(ot,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),ot.stopPropagation(),ot.preventDefault())},this._trackedModal=null,this._scrollStrategy=Rn}ngAfterViewInit(){const Oe=this._getWindow();typeof Oe<"u"&&this._zone.runOutsideAngular(()=>Oe.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(Oe){Oe.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const Oe=this._getWindow();typeof Oe<"u"&&Oe.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel(),this._trackedModal&&(0,t.Zf)(this._trackedModal,"aria-owns",this.autocomplete.id)}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal)&&(0,t.iD)(this._trackedModal,"aria-owns",this.autocomplete.id)}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,b.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,j.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,j.h)(()=>this._overlayAttached)):(0,I.of)()).pipe((0,Y.U)(Oe=>Oe instanceof n.rN?Oe:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,b.T)((0,H.R)(this._document,"click"),(0,H.R)(this._document,"auxclick"),(0,H.R)(this._document,"touchend")).pipe((0,j.h)(Oe=>{const ye=(0,c.sA)(Oe),ve=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,ft=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&ye!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!ve||!ve.contains(ye))&&(!ft||!ft.contains(ye))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(ye)}))}writeValue(Oe){Promise.resolve(null).then(()=>this._assignOptionValue(Oe))}registerOnChange(Oe){this._onChange=Oe}registerOnTouched(Oe){this._onTouched=Oe}setDisabledState(Oe){this._element.nativeElement.disabled=Oe}_handleKeydown(Oe){const ye=Oe.keyCode,ve=(0,O.Vb)(Oe);if(ye===O.hY&&!ve&&Oe.preventDefault(),this.activeOption&&ye===O.K5&&this.panelOpen&&!ve)this.activeOption._selectViaInteraction(),this._resetActiveItem(),Oe.preventDefault();else if(this.autocomplete){const ft=this.autocomplete._keyManager.activeItem,Dt=ye===O.LH||ye===O.JH;ye===O.Mf||Dt&&!ve&&this.panelOpen?this.autocomplete._keyManager.onKeydown(Oe):Dt&&this._canOpen()&&this.openPanel(),(Dt||this.autocomplete._keyManager.activeItem!==ft)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(Oe){let ye=Oe.target,ve=ye.value;if("number"===ye.type&&(ve=""==ve?null:parseFloat(ve)),this._previousValue!==ve){if(this._previousValue=ve,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(ve),ve){if(this.panelOpen&&!this.autocomplete.requireSelection){const ft=this.autocomplete.options?.find(Dt=>Dt.selected);ft&&ve!==(this.autocomplete.displayWith?.(ft)??ft.value)&&ft.deselect(!1)}}else this._clearPreviousSelectedOption(null,!1);this._canOpen()&&this._document.activeElement===Oe.target&&this.openPanel()}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(Oe=!1){this._formField&&"auto"===this._formField.floatLabel&&(Oe?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const Oe=this._zone.onStable.pipe((0,q.q)(1)),ye=this.autocomplete.options.changes.pipe((0,K.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,ne.g)(0));return(0,b.T)(Oe,ye).pipe((0,J.w)(()=>(this._zone.run(()=>{const ve=this.panelOpen;this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),ve!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,q.q)(1)).subscribe(ve=>this._setValueAndClose(ve))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(Oe){const ye=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(Oe):Oe;null==Oe&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(ye??"")}_updateNativeInputValue(Oe){this._formField?this._formField._control.value=Oe:this._element.nativeElement.value=Oe,this._previousValue=Oe}_setValueAndClose(Oe){const ye=this.autocomplete,ve=Oe?Oe.source:this._pendingAutoselectedOption;ve?(this._clearPreviousSelectedOption(ve),this._assignOptionValue(ve.value),this._onChange(ve.value),ye._emitSelectEvent(ve),this._element.nativeElement.focus()):ye.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),ye._animationDone?ye._animationDone.pipe((0,q.q)(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(Oe,ye){this.autocomplete?.options?.forEach(ve=>{ve!==Oe&&ve.selected&&ve.deselect(ye)})}_attachOverlay(){let Oe=this._overlayRef;Oe?(this._positionStrategy.setOrigin(this._getConnectedElement()),Oe.updateSize({width:this._getPanelWidth()})):(this._portal=new P.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),Oe=this._overlay.create(this._getOverlayConfig()),this._overlayRef=Oe,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Oe&&Oe.updateSize({width:this._getPanelWidth()})})),Oe&&!Oe.hasAttached()&&(Oe.attach(this._portal),this._valueOnAttach=this._element.nativeElement.value,this._closingActionsSubscription=this._subscribeToClosingActions());const ye=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&ye!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const Oe=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=Oe.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=Oe.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new i.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const Oe=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(Oe),this._positionStrategy=Oe,Oe}_setStrategyPositions(Oe){const ye=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],ve=this._aboveClass,ft=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:ve},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:ve}];let Dt;Dt="above"===this.position?ft:"below"===this.position?ye:[...ye,...ft],Oe.withPositions(Dt)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const Oe=this.autocomplete;if(Oe.autoActiveFirstOption){let ye=-1;for(let ve=0;ve<Oe.options.length;ve++)if(!Oe.options.get(ve).disabled){ye=ve;break}Oe._keyManager.setActiveItem(ye)}else Oe._keyManager.setActiveItem(-1)}_canOpen(){const Oe=this._element.nativeElement;return!Oe.readOnly&&!Oe.disabled&&!this.autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(Oe){const ye=this.autocomplete,ve=(0,n.CB)(Oe,ye.options,ye.optionGroups);if(0===Oe&&1===ve)ye._setScrollTop(0);else if(ye.panel){const ft=ye.options.toArray()[Oe];if(ft){const Dt=ft._getHostElement(),Rn=(0,n.jH)(Dt.offsetTop,Dt.offsetHeight,ye._getScrollTop(),ye.panel.nativeElement.offsetHeight);ye._setScrollTop(Rn)}}}_applyModalPanelOwnership(){const Oe=this._element.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!Oe)return;const ye=this.autocomplete.id;this._trackedModal&&(0,t.iD)(this._trackedModal,"aria-owns",ye),(0,t.Zf)(Oe,"aria-owns",ye),this._trackedModal=Oe}_clearFromModal(){this._trackedModal&&((0,t.iD)(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static#e=this.\u0275fac=function(ye){return new(ye||Z)(e.Y36(e.SBq),e.Y36(i.aV),e.Y36(e.s_b),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(et),e.Y36(ee.Is,8),e.Y36(B.G_,9),e.Y36(s.K0,8),e.Y36(l.rL),e.Y36(R,8))};static#t=this.\u0275dir=e.lG2({type:Z,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(ye,ve){1&ye&&e.NdJ("focusin",function(){return ve._handleFocus()})("blur",function(){return ve._onTouched()})("input",function(Dt){return ve._handleInput(Dt)})("keydown",function(Dt){return ve._handleKeydown(Dt)})("click",function(){return ve._handleClick()}),2&ye&&e.uIk("autocomplete",ve.autocompleteAttribute)("role",ve.autocompleteDisabled?null:"combobox")("aria-autocomplete",ve.autocompleteDisabled?null:"list")("aria-activedescendant",ve.panelOpen&&ve.activeOption?ve.activeOption.id:null)("aria-expanded",ve.autocompleteDisabled?null:ve.panelOpen.toString())("aria-controls",ve.autocompleteDisabled||!ve.panelOpen||null==ve.autocomplete?null:ve.autocomplete.id)("aria-haspopup",ve.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[e.lbL.None,"matAutocomplete","autocomplete"],position:[e.lbL.None,"matAutocompletePosition","position"],connectedTo:[e.lbL.None,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[e.lbL.None,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[e.lbL.HasDecoratorInputTransform,"matAutocompleteDisabled","autocompleteDisabled",e.VuI]},exportAs:["matAutocompleteTrigger"],standalone:!0,features:[e._Bn([Ue]),e.Xq5,e.TTD]})}return Z})(),r=(()=>{class Z{static#e=this.\u0275fac=function(ye){return new(ye||Z)};static#t=this.\u0275mod=e.oAB({type:Z});static#n=this.\u0275inj=e.cJS({providers:[lt],imports:[i.U8,n.Ng,n.BQ,s.ez,l.ZD,n.Ng,n.BQ]})}return Z})()},49488:(gt,X,a)=>{"use strict";a.d(X,{vV:()=>H}),a(4300),a(78337);var s=a(19212),i=(a(56223),a(23680));let H=(()=>{class O{static#e=this.\u0275fac=function(B){return new(B||O)};static#t=this.\u0275mod=s.oAB({type:O});static#n=this.\u0275inj=s.cJS({imports:[i.BQ,i.si,i.BQ]})}return O})()},32296:(gt,X,a)=>{"use strict";a.d(X,{RK:()=>Ke,lW:()=>q,ot:()=>Le});var e=a(62831),n=a(19212),s=a(4300),l=a(23680);const i=["mat-button",""],t=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],p=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],b=["mat-icon-button",""],I=["*"],O=new n.OlP("MAT_BUTTON_CONFIG"),G=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}];let B=(()=>{class R{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(me){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,me)}get disableRipple(){return this._disableRipple}set disableRipple(me){this._disableRipple=me,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(me){this._disabled=me,this._updateRippleDisabled()}constructor(me,Se,Ue,We){this._elementRef=me,this._platform=Se,this._ngZone=Ue,this._animationMode=We,this._focusMonitor=(0,n.f3M)(s.tE),this._rippleLoader=(0,n.f3M)(l.Fq),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;const et=(0,n.f3M)(O,{optional:!0}),Et=me.nativeElement,lt=Et.classList;this.disabledInteractive=et?.disabledInteractive??!1,this._rippleLoader?.configureRipple(Et,{className:"mat-mdc-button-ripple"});for(const{attribute:Vt,mdcClasses:r}of G)Et.hasAttribute(Vt)&&lt.add(...r)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(me="program",Se){me?this._focusMonitor.focusVia(this._elementRef.nativeElement,me,Se):this._elementRef.nativeElement.focus(Se)}_getAriaDisabled(){return null!=this.ariaDisabled?this.ariaDisabled:!(!this.disabled||!this.disabledInteractive)||null}_getDisabledAttribute(){return!(this.disabledInteractive||!this.disabled)||null}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static#e=this.\u0275fac=function(Se){n.$Z()};static#t=this.\u0275dir=n.lG2({type:R,inputs:{color:"color",disableRipple:[n.lbL.HasDecoratorInputTransform,"disableRipple","disableRipple",n.VuI],disabled:[n.lbL.HasDecoratorInputTransform,"disabled","disabled",n.VuI],ariaDisabled:[n.lbL.HasDecoratorInputTransform,"aria-disabled","ariaDisabled",n.VuI],disabledInteractive:[n.lbL.HasDecoratorInputTransform,"disabledInteractive","disabledInteractive",n.VuI]},features:[n.Xq5]})}return R})(),q=(()=>{class R extends B{constructor(me,Se,Ue,We){super(me,Se,Ue,We)}static#e=this.\u0275fac=function(Se){return new(Se||R)(n.Y36(n.SBq),n.Y36(e.t4),n.Y36(n.R0b),n.Y36(n.QbO,8))};static#t=this.\u0275cmp=n.Xpm({type:R,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(Se,Ue){2&Se&&(n.uIk("disabled",Ue._getDisabledAttribute())("aria-disabled",Ue._getAriaDisabled()),n.Tol(Ue.color?"mat-"+Ue.color:""),n.ekj("mat-mdc-button-disabled",Ue.disabled)("mat-mdc-button-disabled-interactive",Ue.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===Ue._animationMode)("mat-unthemed",!Ue.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[n.qOj,n.jDz],attrs:i,ngContentSelectors:p,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Se,Ue){1&Se&&(n.F$t(t),n._UZ(0,"span",0),n.Hsn(1),n.TgZ(2,"span",1),n.Hsn(3,1),n.qZA(),n.Hsn(4,2),n._UZ(5,"span",2)(6,"span",3)),2&Se&&n.ekj("mdc-button__ripple",!Ue._isFab)("mdc-fab__ripple",Ue._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return R})(),Ke=(()=>{class R extends B{constructor(me,Se,Ue,We){super(me,Se,Ue,We),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#e=this.\u0275fac=function(Se){return new(Se||R)(n.Y36(n.SBq),n.Y36(e.t4),n.Y36(n.R0b),n.Y36(n.QbO,8))};static#t=this.\u0275cmp=n.Xpm({type:R,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(Se,Ue){2&Se&&(n.uIk("disabled",Ue._getDisabledAttribute())("aria-disabled",Ue._getAriaDisabled()),n.Tol(Ue.color?"mat-"+Ue.color:""),n.ekj("mat-mdc-button-disabled",Ue.disabled)("mat-mdc-button-disabled-interactive",Ue.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===Ue._animationMode)("mat-unthemed",!Ue.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[n.qOj,n.jDz],attrs:b,ngContentSelectors:I,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Se,Ue){1&Se&&(n.F$t(),n._UZ(0,"span",0),n.Hsn(1),n._UZ(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;border-radius:50%;flex-shrink:0;text-align:center;font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return R})(),Le=(()=>{class R{static#e=this.\u0275fac=function(Se){return new(Se||R)};static#t=this.\u0275mod=n.oAB({type:R});static#n=this.\u0275inj=n.cJS({imports:[l.BQ,l.si,l.BQ]})}return R})()},75986:(gt,X,a)=>{"use strict";a.d(X,{oG:()=>I,p9:()=>G});var e=a(19212),n=a(56223),s=a(23680);const l=["input"],i=["label"],t=["*"],p=new e.OlP("mat-checkbox-default-options",{providedIn:"root",factory:c});function c(){return{color:"accent",clickAction:"check-indeterminate"}}var o=function(B){return B[B.Init=0]="Init",B[B.Checked=1]="Checked",B[B.Unchecked=2]="Unchecked",B[B.Indeterminate=3]="Indeterminate",B}(o||{});const x={provide:n.JU,useExisting:(0,e.Gpc)(()=>I),multi:!0};class u{}let m=0;const b=c();let I=(()=>{class B{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(J){const q=new u;return q.source=this,q.checked=J,q}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(J,q,j,Y,K,ne){this._elementRef=J,this._changeDetectorRef=q,this._ngZone=j,this._animationMode=K,this._options=ne,this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new e.vpe,this.indeterminateChange=new e.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=o.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||b,this.color=this._options.color||b.color,this.tabIndex=parseInt(Y)||0,this.id=this._uniqueId="mat-mdc-checkbox-"+ ++m}ngOnChanges(J){J.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(J){J!=this.checked&&(this._checked=J,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(J){J!==this.disabled&&(this._disabled=J,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(J){const q=J!=this._indeterminate;this._indeterminate=J,q&&(this._transitionCheckState(this._indeterminate?o.Indeterminate:this.checked?o.Checked:o.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(J){this.checked=!!J}registerOnChange(J){this._controlValueAccessorChangeFn=J}registerOnTouched(J){this._onTouched=J}setDisabledState(J){this.disabled=J}validate(J){return this.required&&!0!==J.value?{required:!0}:null}registerOnValidatorChange(J){this._validatorChangeFn=J}_transitionCheckState(J){let q=this._currentCheckState,j=this._getAnimationTargetElement();if(q!==J&&j&&(this._currentAnimationClass&&j.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(q,J),this._currentCheckState=J,this._currentAnimationClass.length>0)){j.classList.add(this._currentAnimationClass);const Y=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{j.classList.remove(Y)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const J=this._options?.clickAction;this.disabled||"noop"===J?!this.disabled&&"noop"===J&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==J&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?o.Checked:o.Unchecked),this._emitChangeEvent())}_onInteractionEvent(J){J.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(J,q){if("NoopAnimations"===this._animationMode)return"";switch(J){case o.Init:if(q===o.Checked)return this._animationClasses.uncheckedToChecked;if(q==o.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case o.Unchecked:return q===o.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case o.Checked:return q===o.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case o.Indeterminate:return q===o.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(J){const q=this._inputElement;q&&(q.nativeElement.indeterminate=J)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(J){J.target&&this._labelElement.nativeElement.contains(J.target)&&J.stopPropagation()}static#e=this.\u0275fac=function(q){return new(q||B)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(e.R0b),e.$8M("tabindex"),e.Y36(e.QbO,8),e.Y36(p,8))};static#t=this.\u0275cmp=e.Xpm({type:B,selectors:[["mat-checkbox"]],viewQuery:function(q,j){if(1&q&&(e.Gf(l,5),e.Gf(i,5),e.Gf(s.wG,5)),2&q){let Y;e.iGM(Y=e.CRH())&&(j._inputElement=Y.first),e.iGM(Y=e.CRH())&&(j._labelElement=Y.first),e.iGM(Y=e.CRH())&&(j.ripple=Y.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(q,j){2&q&&(e.Ikx("id",j.id),e.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),e.Tol(j.color?"mat-"+j.color:"mat-accent"),e.ekj("_mat-animation-noopable","NoopAnimations"===j._animationMode)("mdc-checkbox--disabled",j.disabled)("mat-mdc-checkbox-disabled",j.disabled)("mat-mdc-checkbox-checked",j.checked))},inputs:{ariaLabel:[e.lbL.None,"aria-label","ariaLabel"],ariaLabelledby:[e.lbL.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[e.lbL.None,"aria-describedby","ariaDescribedby"],id:"id",required:[e.lbL.HasDecoratorInputTransform,"required","required",e.VuI],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[e.lbL.HasDecoratorInputTransform,"disableRipple","disableRipple",e.VuI],tabIndex:[e.lbL.HasDecoratorInputTransform,"tabIndex","tabIndex",J=>null==J?void 0:(0,e.Cb_)(J)],color:"color",checked:[e.lbL.HasDecoratorInputTransform,"checked","checked",e.VuI],disabled:[e.lbL.HasDecoratorInputTransform,"disabled","disabled",e.VuI],indeterminate:[e.lbL.HasDecoratorInputTransform,"indeterminate","indeterminate",e.VuI]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[e._Bn([x,{provide:n.Cf,useExisting:B,multi:!0}]),e.Xq5,e.TTD,e.jDz],ngContentSelectors:t,decls:15,vars:19,consts:[["mat-internal-form-field","",3,"labelPosition","click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","indeterminate","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"],["label",""]],template:function(q,j){if(1&q&&(e.F$t(),e.TgZ(0,"div",0),e.NdJ("click",function(K){return j._preventBubblingFromLabel(K)}),e.TgZ(1,"div",1,2)(3,"div",3),e.NdJ("click",function(){return j._onTouchTargetClick()}),e.qZA(),e.TgZ(4,"input",4,5),e.NdJ("blur",function(){return j._onBlur()})("click",function(){return j._onInputClick()})("change",function(K){return j._onInteractionEvent(K)}),e.qZA(),e._UZ(6,"div",6),e.TgZ(7,"div",7),e.O4$(),e.TgZ(8,"svg",8),e._UZ(9,"path",9),e.qZA(),e.kcU(),e._UZ(10,"div",10),e.qZA(),e._UZ(11,"div",11),e.qZA(),e.TgZ(12,"label",12,13),e.Hsn(14),e.qZA()()),2&q){const Y=e.MAs(2);e.Q6J("labelPosition",j.labelPosition),e.xp6(4),e.ekj("mdc-checkbox--selected",j.checked),e.Q6J("checked",j.checked)("indeterminate",j.indeterminate)("disabled",j.disabled)("id",j.inputId)("required",j.required)("tabIndex",j.disabled?-1:j.tabIndex),e.uIk("aria-label",j.ariaLabel||null)("aria-labelledby",j.ariaLabelledby)("aria-describedby",j.ariaDescribedby)("aria-checked",j.indeterminate?"mixed":null)("name",j.name)("value",j.value),e.xp6(7),e.Q6J("matRippleTrigger",Y)("matRippleDisabled",j.disableRipple||j.disabled)("matRippleCentered",!0),e.xp6(),e.Q6J("for",j.inputId)}},dependencies:[s.wG,s.fq],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}@keyframes mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}}@keyframes mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}}.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:focus:not(:checked):not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return B})(),G=(()=>{class B{static#e=this.\u0275fac=function(q){return new(q||B)};static#t=this.\u0275mod=e.oAB({type:B});static#n=this.\u0275inj=e.cJS({imports:[I,s.BQ,s.BQ]})}return B})()},23680:(gt,X,a)=>{"use strict";a.d(X,{yN:()=>q,mZ:()=>j,_A:()=>We,rD:()=>ve,sG:()=>et,Ad:()=>Se,K7:()=>ji,HF:()=>no,Y2:()=>vt,BQ:()=>ne,X2:()=>ft,uc:()=>ti,XK:()=>Pt,Nv:()=>Ii,ey:()=>co,Ng:()=>He,rN:()=>En,us:()=>Oo,wG:()=>nn,Fq:()=>Qt,si:()=>rn,LF:()=>Vt,IR:()=>sn,DH:()=>Xt,hu:()=>ye,ZT:()=>R,fq:()=>Un,CB:()=>yn,jH:()=>ln,dB:()=>me});var e=a(19212),n=a(4300),s=a(49388),i=a(96814),t=a(62831),p=a(42495),c=a(54699),o=a(72079),x=a(36028);const u=["*",[["mat-option"],["ng-container"]]],m=["*","mat-option, ng-container"],b=["text"];function I(Yt,Fn){if(1&Yt&&e._UZ(0,"mat-pseudo-checkbox",6),2&Yt){const yt=e.oxw();e.Q6J("disabled",yt.disabled)("state",yt.selected?"checked":"unchecked")}}function H(Yt,Fn){if(1&Yt&&e._UZ(0,"mat-pseudo-checkbox",7),2&Yt){const yt=e.oxw();e.Q6J("disabled",yt.disabled)}}function O(Yt,Fn){if(1&Yt&&(e.TgZ(0,"span",8),e._uU(1),e.qZA()),2&Yt){const yt=e.oxw();e.xp6(),e.hij("(",yt.group.label,")")}}const P=[[["mat-icon"]],"*"],G=["mat-icon","*"],B=["mat-internal-form-field",""],ae=["*"];let q=(()=>{class Yt{static#e=this.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)";static#t=this.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)";static#n=this.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)";static#i=this.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)"}return Yt})(),j=(()=>{class Yt{static#e=this.COMPLEX="375ms";static#t=this.ENTERING="225ms";static#n=this.EXITING="195ms"}return Yt})();const K=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function Y(){return!0}});let ne=(()=>{class Yt{constructor(yt,Bt,li){this._sanityChecks=Bt,this._document=li,this._hasDoneGlobalChecks=!1,yt._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(yt){return!(0,t.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[yt])}static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)(e.LFG(n.qm),e.LFG(K,8),e.LFG(i.K0))};static#t=this.\u0275mod=e.oAB({type:Yt});static#n=this.\u0275inj=e.cJS({imports:[s.vT,s.vT]})}return Yt})();class R{constructor(Fn,yt,Bt,li,si){this._defaultMatcher=Fn,this.ngControl=yt,this._parentFormGroup=Bt,this._parentForm=li,this._stateChanges=si,this.errorState=!1}updateErrorState(){const Fn=this.errorState,yt=this._parentFormGroup||this._parentForm,Bt=this.matcher||this._defaultMatcher,li=this.ngControl?this.ngControl.control:null,si=Bt?.isErrorState(li,yt)??!1;si!==Fn&&(this.errorState=si,this._stateChanges.next())}}function me(Yt){return class extends Yt{constructor(...Fn){super(...Fn),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new c.y(yt=>{this._isInitialized?this._notifySubscriber(yt):this._pendingSubscribers.push(yt)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Fn){Fn.next(),Fn.complete()}}}const Se=new e.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Ue(){return(0,e.f3M)(e.soG)}});class We{constructor(){this._localeChanges=new o.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(Fn){return this.isDateInstance(Fn)&&this.isValid(Fn)?Fn:null}deserialize(Fn){return null==Fn||this.isDateInstance(Fn)&&this.isValid(Fn)?Fn:this.invalid()}setLocale(Fn){this.locale=Fn,this._localeChanges.next()}compareDate(Fn,yt){return this.getYear(Fn)-this.getYear(yt)||this.getMonth(Fn)-this.getMonth(yt)||this.getDate(Fn)-this.getDate(yt)}sameDate(Fn,yt){if(Fn&&yt){let Bt=this.isValid(Fn),li=this.isValid(yt);return Bt&&li?!this.compareDate(Fn,yt):Bt==li}return Fn==yt}clampDate(Fn,yt,Bt){return yt&&this.compareDate(Fn,yt)<0?yt:Bt&&this.compareDate(Fn,Bt)>0?Bt:Fn}}const et=new e.OlP("mat-date-formats"),Et=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function lt(Yt,Fn){const yt=Array(Yt);for(let Bt=0;Bt<Yt;Bt++)yt[Bt]=Fn(Bt);return yt}let Vt=(()=>{class Yt extends We{constructor(yt){super(),this.useUtcForDisplay=!1,this._matDateLocale=(0,e.f3M)(Se,{optional:!0}),void 0!==yt&&(this._matDateLocale=yt),super.setLocale(this._matDateLocale)}getYear(yt){return yt.getFullYear()}getMonth(yt){return yt.getMonth()}getDate(yt){return yt.getDate()}getDayOfWeek(yt){return yt.getDay()}getMonthNames(yt){const Bt=new Intl.DateTimeFormat(this.locale,{month:yt,timeZone:"utc"});return lt(12,li=>this._format(Bt,new Date(2017,li,1)))}getDateNames(){const yt=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return lt(31,Bt=>this._format(yt,new Date(2017,0,Bt+1)))}getDayOfWeekNames(yt){const Bt=new Intl.DateTimeFormat(this.locale,{weekday:yt,timeZone:"utc"});return lt(7,li=>this._format(Bt,new Date(2017,0,li+1)))}getYearName(yt){const Bt=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Bt,yt)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(yt){return this.getDate(this._createDateWithOverflow(this.getYear(yt),this.getMonth(yt)+1,0))}clone(yt){return new Date(yt.getTime())}createDate(yt,Bt,li){let si=this._createDateWithOverflow(yt,Bt,li);return si.getMonth(),si}today(){return new Date}parse(yt,Bt){return"number"==typeof yt?new Date(yt):yt?new Date(Date.parse(yt)):null}format(yt,Bt){if(!this.isValid(yt))throw Error("NativeDateAdapter: Cannot format invalid date.");const li=new Intl.DateTimeFormat(this.locale,{...Bt,timeZone:"utc"});return this._format(li,yt)}addCalendarYears(yt,Bt){return this.addCalendarMonths(yt,12*Bt)}addCalendarMonths(yt,Bt){let li=this._createDateWithOverflow(this.getYear(yt),this.getMonth(yt)+Bt,this.getDate(yt));return this.getMonth(li)!=((this.getMonth(yt)+Bt)%12+12)%12&&(li=this._createDateWithOverflow(this.getYear(li),this.getMonth(li),0)),li}addCalendarDays(yt,Bt){return this._createDateWithOverflow(this.getYear(yt),this.getMonth(yt),this.getDate(yt)+Bt)}toIso8601(yt){return[yt.getUTCFullYear(),this._2digit(yt.getUTCMonth()+1),this._2digit(yt.getUTCDate())].join("-")}deserialize(yt){if("string"==typeof yt){if(!yt)return null;if(Et.test(yt)){let Bt=new Date(yt);if(this.isValid(Bt))return Bt}}return super.deserialize(yt)}isDateInstance(yt){return yt instanceof Date}isValid(yt){return!isNaN(yt.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(yt,Bt,li){const si=new Date;return si.setFullYear(yt,Bt,li),si.setHours(0,0,0,0),si}_2digit(yt){return("00"+yt).slice(-2)}_format(yt,Bt){const li=new Date;return li.setUTCFullYear(Bt.getFullYear(),Bt.getMonth(),Bt.getDate()),li.setUTCHours(Bt.getHours(),Bt.getMinutes(),Bt.getSeconds(),Bt.getMilliseconds()),yt.format(li)}static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)(e.LFG(Se,8))};static#t=this.\u0275prov=e.Yz7({token:Yt,factory:Yt.\u0275fac})}return Yt})();const r={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Pt=(()=>{class Yt{static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)};static#t=this.\u0275mod=e.oAB({type:Yt});static#n=this.\u0275inj=e.cJS({providers:[Oe()]})}return Yt})();function Oe(Yt=r){return[{provide:We,useClass:Vt},{provide:et,useValue:Yt}]}let ye=(()=>{class Yt{isErrorState(yt,Bt){return!!(yt&&yt.invalid&&(yt.dirty||Bt&&Bt.submitted))}static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)};static#t=this.\u0275prov=e.Yz7({token:Yt,factory:Yt.\u0275fac})}return Yt})(),ve=(()=>{class Yt{isErrorState(yt,Bt){return!!(yt&&yt.invalid&&(yt.touched||Bt&&Bt.submitted))}static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)};static#t=this.\u0275prov=e.Yz7({token:Yt,factory:Yt.\u0275fac,providedIn:"root"})}return Yt})(),ft=(()=>{class Yt{static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)};static#t=this.\u0275dir=e.lG2({type:Yt,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"],standalone:!0})}return Yt})(),ti=(()=>{class Yt{static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)};static#t=this.\u0275mod=e.oAB({type:Yt});static#n=this.\u0275inj=e.cJS({imports:[ne,ne]})}return Yt})();var Xt=function(Yt){return Yt[Yt.FADING_IN=0]="FADING_IN",Yt[Yt.VISIBLE=1]="VISIBLE",Yt[Yt.FADING_OUT=2]="FADING_OUT",Yt[Yt.HIDDEN=3]="HIDDEN",Yt}(Xt||{});class Je{constructor(Fn,yt,Bt,li=!1){this._renderer=Fn,this.element=yt,this.config=Bt,this._animationForciblyDisabledThroughCss=li,this.state=Xt.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const dt=(0,t.i$)({passive:!0,capture:!0});class Ie{constructor(){this._events=new Map,this._delegateEventHandler=Fn=>{const yt=(0,t.sA)(Fn);yt&&this._events.get(Fn.type)?.forEach((Bt,li)=>{(li===yt||li.contains(yt))&&Bt.forEach(si=>si.handleEvent(Fn))})}}addHandler(Fn,yt,Bt,li){const si=this._events.get(yt);if(si){const oo=si.get(Bt);oo?oo.add(li):si.set(Bt,new Set([li]))}else this._events.set(yt,new Map([[Bt,new Set([li])]])),Fn.runOutsideAngular(()=>{document.addEventListener(yt,this._delegateEventHandler,dt)})}removeHandler(Fn,yt,Bt){const li=this._events.get(Fn);if(!li)return;const si=li.get(yt);si&&(si.delete(Bt),0===si.size&&li.delete(yt),0===li.size&&(this._events.delete(Fn),document.removeEventListener(Fn,this._delegateEventHandler,dt)))}}const ot={enterDuration:225,exitDuration:150},tn=(0,t.i$)({passive:!0,capture:!0}),yi=["mousedown","touchstart"],ni=["mouseup","mouseleave","touchend","touchcancel"];class sn{static#e=this._eventManager=new Ie;constructor(Fn,yt,Bt,li){this._target=Fn,this._ngZone=yt,this._platform=li,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,li.isBrowser&&(this._containerElement=(0,p.fI)(Bt))}fadeInRipple(Fn,yt,Bt={}){const li=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),si={...ot,...Bt.animation};Bt.centered&&(Fn=li.left+li.width/2,yt=li.top+li.height/2);const oo=Bt.radius||function bn(Yt,Fn,yt){const Bt=Math.max(Math.abs(Yt-yt.left),Math.abs(Yt-yt.right)),li=Math.max(Math.abs(Fn-yt.top),Math.abs(Fn-yt.bottom));return Math.sqrt(Bt*Bt+li*li)}(Fn,yt,li),_o=Fn-li.left,Hn=yt-li.top,mo=si.enterDuration,vn=document.createElement("div");vn.classList.add("mat-ripple-element"),vn.style.left=_o-oo+"px",vn.style.top=Hn-oo+"px",vn.style.height=2*oo+"px",vn.style.width=2*oo+"px",null!=Bt.color&&(vn.style.backgroundColor=Bt.color),vn.style.transitionDuration=`${mo}ms`,this._containerElement.appendChild(vn);const Ji=window.getComputedStyle(vn),po=Ji.transitionDuration,Kn="none"===Ji.transitionProperty||"0s"===po||"0s, 0s"===po||0===li.width&&0===li.height,Vn=new Je(this,vn,Bt,Kn);vn.style.transform="scale3d(1, 1, 1)",Vn.state=Xt.FADING_IN,Bt.persistent||(this._mostRecentTransientRipple=Vn);let Wi=null;return!Kn&&(mo||si.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Ft=()=>this._finishRippleTransition(Vn),Oi=()=>this._destroyRipple(Vn);vn.addEventListener("transitionend",Ft),vn.addEventListener("transitioncancel",Oi),Wi={onTransitionEnd:Ft,onTransitionCancel:Oi}}),this._activeRipples.set(Vn,Wi),(Kn||!mo)&&this._finishRippleTransition(Vn),Vn}fadeOutRipple(Fn){if(Fn.state===Xt.FADING_OUT||Fn.state===Xt.HIDDEN)return;const yt=Fn.element,Bt={...ot,...Fn.config.animation};yt.style.transitionDuration=`${Bt.exitDuration}ms`,yt.style.opacity="0",Fn.state=Xt.FADING_OUT,(Fn._animationForciblyDisabledThroughCss||!Bt.exitDuration)&&this._finishRippleTransition(Fn)}fadeOutAll(){this._getActiveRipples().forEach(Fn=>Fn.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(Fn=>{Fn.config.persistent||Fn.fadeOut()})}setupTriggerEvents(Fn){const yt=(0,p.fI)(Fn);!this._platform.isBrowser||!yt||yt===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=yt,yi.forEach(Bt=>{sn._eventManager.addHandler(this._ngZone,Bt,yt,this)}))}handleEvent(Fn){"mousedown"===Fn.type?this._onMousedown(Fn):"touchstart"===Fn.type?this._onTouchStart(Fn):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{ni.forEach(yt=>{this._triggerElement.addEventListener(yt,this,tn)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(Fn){Fn.state===Xt.FADING_IN?this._startFadeOutTransition(Fn):Fn.state===Xt.FADING_OUT&&this._destroyRipple(Fn)}_startFadeOutTransition(Fn){const yt=Fn===this._mostRecentTransientRipple,{persistent:Bt}=Fn.config;Fn.state=Xt.VISIBLE,!Bt&&(!yt||!this._isPointerDown)&&Fn.fadeOut()}_destroyRipple(Fn){const yt=this._activeRipples.get(Fn)??null;this._activeRipples.delete(Fn),this._activeRipples.size||(this._containerRect=null),Fn===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),Fn.state=Xt.HIDDEN,null!==yt&&(Fn.element.removeEventListener("transitionend",yt.onTransitionEnd),Fn.element.removeEventListener("transitioncancel",yt.onTransitionCancel)),Fn.element.remove()}_onMousedown(Fn){const yt=(0,n.X6)(Fn),Bt=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!yt&&!Bt&&(this._isPointerDown=!0,this.fadeInRipple(Fn.clientX,Fn.clientY,this._target.rippleConfig))}_onTouchStart(Fn){if(!this._target.rippleDisabled&&!(0,n.yG)(Fn)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const yt=Fn.changedTouches;if(yt)for(let Bt=0;Bt<yt.length;Bt++)this.fadeInRipple(yt[Bt].clientX,yt[Bt].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(Fn=>{!Fn.config.persistent&&(Fn.state===Xt.VISIBLE||Fn.config.terminateOnPointerUp&&Fn.state===Xt.FADING_IN)&&Fn.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const Fn=this._triggerElement;Fn&&(yi.forEach(yt=>sn._eventManager.removeHandler(yt,Fn,this)),this._pointerUpEventsRegistered&&ni.forEach(yt=>Fn.removeEventListener(yt,this,tn)))}}const vt=new e.OlP("mat-ripple-global-options");let nn=(()=>{class Yt{get disabled(){return this._disabled}set disabled(yt){yt&&this.fadeOutAllNonPersistent(),this._disabled=yt,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(yt){this._trigger=yt,this._setupTriggerEventsIfEnabled()}constructor(yt,Bt,li,si,oo){this._elementRef=yt,this._animationMode=oo,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=si||{},this._rippleRenderer=new sn(this,Bt,yt,li)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(yt,Bt=0,li){return"number"==typeof yt?this._rippleRenderer.fadeInRipple(yt,Bt,{...this.rippleConfig,...li}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...yt})}static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(t.t4),e.Y36(vt,8),e.Y36(e.QbO,8))};static#t=this.\u0275dir=e.lG2({type:Yt,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Bt,li){2&Bt&&e.ekj("mat-ripple-unbounded",li.unbounded)},inputs:{color:[e.lbL.None,"matRippleColor","color"],unbounded:[e.lbL.None,"matRippleUnbounded","unbounded"],centered:[e.lbL.None,"matRippleCentered","centered"],radius:[e.lbL.None,"matRippleRadius","radius"],animation:[e.lbL.None,"matRippleAnimation","animation"],disabled:[e.lbL.None,"matRippleDisabled","disabled"],trigger:[e.lbL.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}return Yt})(),rn=(()=>{class Yt{static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)};static#t=this.\u0275mod=e.oAB({type:Yt});static#n=this.\u0275inj=e.cJS({imports:[ne,ne]})}return Yt})(),ii=(()=>{class Yt{constructor(yt){this._animationMode=yt,this.state="unchecked",this.disabled=!1,this.appearance="full"}static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)(e.Y36(e.QbO,8))};static#t=this.\u0275cmp=e.Xpm({type:Yt,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(Bt,li){2&Bt&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===li.state)("mat-pseudo-checkbox-checked","checked"===li.state)("mat-pseudo-checkbox-disabled",li.disabled)("mat-pseudo-checkbox-minimal","minimal"===li.appearance)("mat-pseudo-checkbox-full","full"===li.appearance)("_mat-animation-noopable","NoopAnimations"===li._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[e.jDz],decls:0,vars:0,template:function(Bt,li){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}return Yt})(),Oo=(()=>{class Yt{static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)};static#t=this.\u0275mod=e.oAB({type:Yt});static#n=this.\u0275inj=e.cJS({imports:[ne]})}return Yt})();const no=new e.OlP("MAT_OPTION_PARENT_COMPONENT");let Li=0;const ji=new e.OlP("MatOptgroup");let Ii=(()=>{class Yt{constructor(yt){this.disabled=!1,this._labelId="mat-optgroup-label-"+Li++,this._inert=yt?.inertGroups??!1}static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)(e.Y36(no,8))};static#t=this.\u0275cmp=e.Xpm({type:Yt,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(Bt,li){2&Bt&&e.uIk("role",li._inert?null:"group")("aria-disabled",li._inert?null:li.disabled.toString())("aria-labelledby",li._inert?null:li._labelId)},inputs:{label:"label",disabled:[e.lbL.HasDecoratorInputTransform,"disabled","disabled",e.VuI]},exportAs:["matOptgroup"],standalone:!0,features:[e._Bn([{provide:ji,useExisting:Yt}]),e.Xq5,e.jDz],ngContentSelectors:m,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(Bt,li){1&Bt&&(e.F$t(u),e.TgZ(0,"span",0)(1,"span",1),e._uU(2),e.Hsn(3),e.qZA()(),e.Hsn(4,1)),2&Bt&&(e.ekj("mdc-list-item--disabled",li.disabled),e.Q6J("id",li._labelId),e.xp6(2),e.hij("",li.label," "))},styles:[".mat-mdc-optgroup{color:var(--mat-optgroup-label-text-color);font-family:var(--mat-optgroup-label-text-font);line-height:var(--mat-optgroup-label-text-line-height);font-size:var(--mat-optgroup-label-text-size);letter-spacing:var(--mat-optgroup-label-text-tracking);font-weight:var(--mat-optgroup-label-text-weight)}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;min-height:48px}.mat-mdc-optgroup-label:focus{outline:none}[dir=rtl] .mat-mdc-optgroup-label,.mat-mdc-optgroup-label[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal}"],encapsulation:2,changeDetection:0})}return Yt})(),_i=0;class En{constructor(Fn,yt=!1){this.source=Fn,this.isUserInput=yt}}let co=(()=>{class Yt{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(yt){this._disabled=yt}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(yt,Bt,li,si){this._element=yt,this._changeDetectorRef=Bt,this._parent=li,this.group=si,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+_i++,this.onSelectionChange=new e.vpe,this._stateChanges=new o.xQ}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(yt=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),yt&&this._emitSelectionChangeEvent())}deselect(yt=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),yt&&this._emitSelectionChangeEvent())}focus(yt,Bt){const li=this._getHostElement();"function"==typeof li.focus&&li.focus(Bt)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(yt){(yt.keyCode===x.K5||yt.keyCode===x.L_)&&!(0,x.Vb)(yt)&&(this._selectViaInteraction(),yt.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const yt=this.viewValue;yt!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=yt)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(yt=!1){this.onSelectionChange.emit(new En(this,yt))}static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(no,8),e.Y36(ji,8))};static#t=this.\u0275cmp=e.Xpm({type:Yt,selectors:[["mat-option"]],viewQuery:function(Bt,li){if(1&Bt&&e.Gf(b,7),2&Bt){let si;e.iGM(si=e.CRH())&&(li._text=si.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(Bt,li){1&Bt&&e.NdJ("click",function(){return li._selectViaInteraction()})("keydown",function(oo){return li._handleKeydown(oo)}),2&Bt&&(e.Ikx("id",li.id),e.uIk("aria-selected",li.selected)("aria-disabled",li.disabled.toString()),e.ekj("mdc-list-item--selected",li.selected)("mat-mdc-option-multiple",li.multiple)("mat-mdc-option-active",li.active)("mdc-list-item--disabled",li.disabled))},inputs:{value:"value",id:"id",disabled:[e.lbL.HasDecoratorInputTransform,"disabled","disabled",e.VuI]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[e.Xq5,e.jDz],ngContentSelectors:G,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled"],["class","cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(Bt,li){1&Bt&&(e.F$t(P),e.YNc(0,I,1,2,"mat-pseudo-checkbox",0),e.Hsn(1),e.TgZ(2,"span",1,2),e.Hsn(4,1),e.qZA(),e.YNc(5,H,1,1,"mat-pseudo-checkbox",3)(6,O,2,1,"span",4),e._UZ(7,"div",5)),2&Bt&&(e.um2(0,li.multiple?0:-1),e.xp6(5),e.um2(5,li.multiple||!li.selected||li.hideSingleSelectionIndicator?-1:5),e.xp6(),e.um2(6,li.group&&li.group._inert?6:-1),e.xp6(),e.Q6J("matRippleTrigger",li._getHostElement())("matRippleDisabled",li.disabled||li.disableRipple))},dependencies:[ii,nn],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return Yt})();function yn(Yt,Fn,yt){if(yt.length){let Bt=Fn.toArray(),li=yt.toArray(),si=0;for(let oo=0;oo<Yt+1;oo++)Bt[oo].group&&Bt[oo].group===li[si]&&si++;return si}return 0}function ln(Yt,Fn,yt,Bt){return Yt<yt?Yt:Yt+Fn>yt+Bt?Math.max(0,Yt-Bt+Fn):yt}let He=(()=>{class Yt{static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)};static#t=this.\u0275mod=e.oAB({type:Yt});static#n=this.\u0275inj=e.cJS({imports:[rn,ne,Oo]})}return Yt})();const rt={capture:!0},$e=["focus","click","mouseenter","touchstart"],Ve="mat-ripple-loader-uninitialized",Ce="mat-ripple-loader-class-name",tt="mat-ripple-loader-centered",ht="mat-ripple-loader-disabled";let Qt=(()=>{class Yt{constructor(){this._document=(0,e.f3M)(i.K0,{optional:!0}),this._animationMode=(0,e.f3M)(e.QbO,{optional:!0}),this._globalRippleOptions=(0,e.f3M)(vt,{optional:!0}),this._platform=(0,e.f3M)(t.t4),this._ngZone=(0,e.f3M)(e.R0b),this._hosts=new Map,this._onInteraction=yt=>{if(!(yt.target instanceof HTMLElement))return;const li=yt.target.closest(`[${Ve}]`);li&&this._createRipple(li)},this._ngZone.runOutsideAngular(()=>{for(const yt of $e)this._document?.addEventListener(yt,this._onInteraction,rt)})}ngOnDestroy(){const yt=this._hosts.keys();for(const Bt of yt)this.destroyRipple(Bt);for(const Bt of $e)this._document?.removeEventListener(Bt,this._onInteraction,rt)}configureRipple(yt,Bt){yt.setAttribute(Ve,""),(Bt.className||!yt.hasAttribute(Ce))&&yt.setAttribute(Ce,Bt.className||""),Bt.centered&&yt.setAttribute(tt,""),Bt.disabled&&yt.setAttribute(ht,"")}getRipple(yt){return this._hosts.get(yt)||this._createRipple(yt)}setDisabled(yt,Bt){const li=this._hosts.get(yt);li?li.disabled=Bt:Bt?yt.setAttribute(ht,""):yt.removeAttribute(ht)}_createRipple(yt){if(!this._document)return;const Bt=this._hosts.get(yt);if(Bt)return Bt;yt.querySelector(".mat-ripple")?.remove();const li=this._document.createElement("span");li.classList.add("mat-ripple",yt.getAttribute(Ce)),yt.append(li);const si=new nn(new e.SBq(li),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return si._isInitialized=!0,si.trigger=yt,si.centered=yt.hasAttribute(tt),si.disabled=yt.hasAttribute(ht),this.attachRipple(yt,si),si}attachRipple(yt,Bt){yt.removeAttribute(Ve),this._hosts.set(yt,Bt)}destroyRipple(yt){const Bt=this._hosts.get(yt);Bt&&(Bt.ngOnDestroy(),this._hosts.delete(yt))}static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)};static#t=this.\u0275prov=e.Yz7({token:Yt,factory:Yt.\u0275fac,providedIn:"root"})}return Yt})(),Un=(()=>{class Yt{static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)};static#t=this.\u0275cmp=e.Xpm({type:Yt,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(Bt,li){2&Bt&&e.ekj("mdc-form-field--align-end","before"===li.labelPosition)},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[e.jDz],attrs:B,ngContentSelectors:ae,decls:1,vars:0,template:function(Bt,li){1&Bt&&(e.F$t(),e.Hsn(0))},styles:[".mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-form-field{font-family:var(--mdc-form-field-label-text-font);line-height:var(--mdc-form-field-label-text-line-height);font-size:var(--mdc-form-field-label-text-size);font-weight:var(--mdc-form-field-label-text-weight);letter-spacing:var(--mdc-form-field-label-text-tracking);color:var(--mdc-form-field-label-text-color)}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0})}return Yt})()},38034:(gt,X,a)=>{"use strict";a.d(X,{FA:()=>Fi,Mq:()=>Fn,hl:()=>_o});var e=a(4300),n=a(69594),s=a(68484),l=a(96814),i=a(19212),t=a(32296),p=a(39505),c=a(23680),o=a(72079),x=a(7902),u=a(47354),m=a(49193),b=a(36028),I=a(49388),H=a(62831),O=a(51418),P=a(53075),G=a(97734),B=a(42495),ae=a(86825),J=a(56223),q=a(64170),j=a(2032);const Y=["mat-calendar-body",""];function K(ui,Fo){if(1&ui&&(i.TgZ(0,"tr",0)(1,"td",2),i._uU(2),i.qZA()()),2&ui){const At=i.oxw();i.xp6(),i.Udp("padding-top",At._cellPadding)("padding-bottom",At._cellPadding),i.uIk("colspan",At.numCols),i.xp6(),i.hij(" ",At.label," ")}}function ne(ui,Fo){if(1&ui&&(i.TgZ(0,"td",2),i._uU(1),i.qZA()),2&ui){const At=i.oxw(2);i.Udp("padding-top",At._cellPadding)("padding-bottom",At._cellPadding),i.uIk("colspan",At._firstRowOffset),i.xp6(),i.hij(" ",At._firstRowOffset>=At.labelMinRequiredCells?At.label:""," ")}}function ee(ui,Fo){if(1&ui){const At=i.EpF();i.TgZ(0,"td",5)(1,"button",6),i.NdJ("click",function(Bn){const $n=i.CHM(At).$implicit,Ui=i.oxw(2);return i.KtG(Ui._cellClicked($n,Bn))})("focus",function(Bn){const $n=i.CHM(At).$implicit,Ui=i.oxw(2);return i.KtG(Ui._emitActiveDateChange($n,Bn))}),i.TgZ(2,"span",7),i._uU(3),i.qZA(),i._UZ(4,"span",8),i.qZA()()}if(2&ui){const At=Fo.$implicit,Jn=Fo.$index,Bn=i.oxw().$index,Bi=i.oxw();i.Udp("width",Bi._cellWidth)("padding-top",Bi._cellPadding)("padding-bottom",Bi._cellPadding),i.uIk("data-mat-row",Bn)("data-mat-col",Jn),i.xp6(),i.ekj("mat-calendar-body-disabled",!At.enabled)("mat-calendar-body-active",Bi._isActiveCell(Bn,Jn))("mat-calendar-body-range-start",Bi._isRangeStart(At.compareValue))("mat-calendar-body-range-end",Bi._isRangeEnd(At.compareValue))("mat-calendar-body-in-range",Bi._isInRange(At.compareValue))("mat-calendar-body-comparison-bridge-start",Bi._isComparisonBridgeStart(At.compareValue,Bn,Jn))("mat-calendar-body-comparison-bridge-end",Bi._isComparisonBridgeEnd(At.compareValue,Bn,Jn))("mat-calendar-body-comparison-start",Bi._isComparisonStart(At.compareValue))("mat-calendar-body-comparison-end",Bi._isComparisonEnd(At.compareValue))("mat-calendar-body-in-comparison-range",Bi._isInComparisonRange(At.compareValue))("mat-calendar-body-preview-start",Bi._isPreviewStart(At.compareValue))("mat-calendar-body-preview-end",Bi._isPreviewEnd(At.compareValue))("mat-calendar-body-in-preview",Bi._isInPreview(At.compareValue)),i.Q6J("ngClass",At.cssClasses)("tabindex",Bi._isActiveCell(Bn,Jn)?0:-1),i.uIk("aria-label",At.ariaLabel)("aria-disabled",!At.enabled||null)("aria-pressed",Bi._isSelected(At.compareValue))("aria-current",Bi.todayValue===At.compareValue?"date":null)("aria-describedby",Bi._getDescribedby(At.compareValue)),i.xp6(),i.ekj("mat-calendar-body-selected",Bi._isSelected(At.compareValue))("mat-calendar-body-comparison-identical",Bi._isComparisonIdentical(At.compareValue))("mat-calendar-body-today",Bi.todayValue===At.compareValue),i.xp6(),i.hij(" ",At.displayValue," ")}}function $(ui,Fo){if(1&ui&&(i.TgZ(0,"tr",3),i.YNc(1,ne,2,6,"td",4),i.SjG(2,ee,5,48,"td",9,i.x6l),i.qZA()),2&ui){const At=Fo.$implicit,Jn=Fo.$index,Bn=i.oxw();i.xp6(),i.um2(1,0===Jn&&Bn._firstRowOffset?1:-1),i.xp6(),i.wJu(At)}}function ue(ui,Fo){if(1&ui&&(i.TgZ(0,"th",4)(1,"span",5),i._uU(2),i.qZA(),i.TgZ(3,"span",6),i._uU(4),i.qZA()()),2&ui){const At=Fo.$implicit;i.xp6(2),i.Oqu(At.long),i.xp6(2),i.Oqu(At.narrow)}}const ge=["*"];function Ke(ui,Fo){}function at(ui,Fo){if(1&ui){const At=i.EpF();i.TgZ(0,"mat-month-view",2),i.NdJ("activeDateChange",function(Bn){i.CHM(At);const Bi=i.oxw();return i.KtG(Bi.activeDate=Bn)})("_userSelection",function(Bn){i.CHM(At);const Bi=i.oxw();return i.KtG(Bi._dateSelected(Bn))})("dragStarted",function(Bn){i.CHM(At);const Bi=i.oxw();return i.KtG(Bi._dragStarted(Bn))})("dragEnded",function(Bn){i.CHM(At);const Bi=i.oxw();return i.KtG(Bi._dragEnded(Bn))}),i.qZA()}if(2&ui){const At=i.oxw();i.Q6J("activeDate",At.activeDate)("selected",At.selected)("dateFilter",At.dateFilter)("maxDate",At.maxDate)("minDate",At.minDate)("dateClass",At.dateClass)("comparisonStart",At.comparisonStart)("comparisonEnd",At.comparisonEnd)("startDateAccessibleName",At.startDateAccessibleName)("endDateAccessibleName",At.endDateAccessibleName)("activeDrag",At._activeDrag)}}function Le(ui,Fo){if(1&ui){const At=i.EpF();i.TgZ(0,"mat-year-view",3),i.NdJ("activeDateChange",function(Bn){i.CHM(At);const Bi=i.oxw();return i.KtG(Bi.activeDate=Bn)})("monthSelected",function(Bn){i.CHM(At);const Bi=i.oxw();return i.KtG(Bi._monthSelectedInYearView(Bn))})("selectedChange",function(Bn){i.CHM(At);const Bi=i.oxw();return i.KtG(Bi._goToDateInView(Bn,"month"))}),i.qZA()}if(2&ui){const At=i.oxw();i.Q6J("activeDate",At.activeDate)("selected",At.selected)("dateFilter",At.dateFilter)("maxDate",At.maxDate)("minDate",At.minDate)("dateClass",At.dateClass)}}function R(ui,Fo){if(1&ui){const At=i.EpF();i.TgZ(0,"mat-multi-year-view",4),i.NdJ("activeDateChange",function(Bn){i.CHM(At);const Bi=i.oxw();return i.KtG(Bi.activeDate=Bn)})("yearSelected",function(Bn){i.CHM(At);const Bi=i.oxw();return i.KtG(Bi._yearSelectedInMultiYearView(Bn))})("selectedChange",function(Bn){i.CHM(At);const Bi=i.oxw();return i.KtG(Bi._goToDateInView(Bn,"year"))}),i.qZA()}if(2&ui){const At=i.oxw();i.Q6J("activeDate",At.activeDate)("selected",At.selected)("dateFilter",At.dateFilter)("maxDate",At.maxDate)("minDate",At.minDate)("dateClass",At.dateClass)}}function Te(ui,Fo){}const me=["button"];function Se(ui,Fo){1&ui&&(i.O4$(),i.TgZ(0,"svg",3),i._UZ(1,"path",4),i.qZA())}const Ue=[[["","matDatepickerToggleIcon",""]]],We=["[matDatepickerToggleIcon]"];let r=(()=>{class ui{constructor(){this.changes=new o.xQ,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(At,Jn){return`${At} \u2013 ${Jn}`}formatYearRangeLabel(At,Jn){return`${At} to ${Jn}`}static#e=this.\u0275fac=function(Jn){return new(Jn||ui)};static#t=this.\u0275prov=i.Yz7({token:ui,factory:ui.\u0275fac,providedIn:"root"})}return ui})();class Z{constructor(Fo,At,Jn,Bn,Bi={},$n=Fo,Ui){this.value=Fo,this.displayValue=At,this.ariaLabel=Jn,this.enabled=Bn,this.cssClasses=Bi,this.compareValue=$n,this.rawValue=Ui}}let Pt=1;const Oe=(0,H.i$)({passive:!1,capture:!0}),ye=(0,H.i$)({passive:!0,capture:!0}),ve=(0,H.i$)({passive:!0});let ft=(()=>{class ui{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(At,Jn){this._elementRef=At,this._ngZone=Jn,this._platform=(0,i.f3M)(H.t4),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new i.vpe,this.previewChange=new i.vpe,this.activeDateChange=new i.vpe,this.dragStarted=new i.vpe,this.dragEnded=new i.vpe,this._didDragSinceMouseDown=!1,this._enterHandler=Bn=>{if(this._skipNextFocus&&"focus"===Bn.type)this._skipNextFocus=!1;else if(Bn.target&&this.isRange){const Bi=this._getCellFromElement(Bn.target);Bi&&this._ngZone.run(()=>this.previewChange.emit({value:Bi.enabled?Bi:null,event:Bn}))}},this._touchmoveHandler=Bn=>{if(!this.isRange)return;const Bi=dt(Bn),$n=Bi?this._getCellFromElement(Bi):null;Bi!==Bn.target&&(this._didDragSinceMouseDown=!0),Rn(Bn.target)&&Bn.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:$n?.enabled?$n:null,event:Bn}))},this._leaveHandler=Bn=>{null!==this.previewEnd&&this.isRange&&("blur"!==Bn.type&&(this._didDragSinceMouseDown=!0),Bn.target&&this._getCellFromElement(Bn.target)&&(!Bn.relatedTarget||!this._getCellFromElement(Bn.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:Bn})))},this._mousedownHandler=Bn=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const Bi=Bn.target&&this._getCellFromElement(Bn.target);!Bi||!this._isInRange(Bi.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:Bi.rawValue,event:Bn})})},this._mouseupHandler=Bn=>{if(!this.isRange)return;const Bi=Rn(Bn.target);Bi?Bi.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{const $n=this._getCellFromElement(Bi);this.dragEnded.emit({value:$n?.rawValue??null,event:Bn})}):this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:Bn})})},this._touchendHandler=Bn=>{const Bi=dt(Bn);Bi&&this._mouseupHandler({target:Bi})},this._id="mat-calendar-body-"+Pt++,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,Jn.runOutsideAngular(()=>{const Bn=At.nativeElement;Bn.addEventListener("touchmove",this._touchmoveHandler,Oe),Bn.addEventListener("mouseenter",this._enterHandler,ye),Bn.addEventListener("focus",this._enterHandler,ye),Bn.addEventListener("mouseleave",this._leaveHandler,ye),Bn.addEventListener("blur",this._leaveHandler,ye),Bn.addEventListener("mousedown",this._mousedownHandler,ve),Bn.addEventListener("touchstart",this._mousedownHandler,ve),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(At,Jn){this._didDragSinceMouseDown||At.enabled&&this.selectedValueChange.emit({value:At.value,event:Jn})}_emitActiveDateChange(At,Jn){At.enabled&&this.activeDateChange.emit({value:At.value,event:Jn})}_isSelected(At){return this.startValue===At||this.endValue===At}ngOnChanges(At){const Jn=At.numCols,{rows:Bn,numCols:Bi}=this;(At.rows||Jn)&&(this._firstRowOffset=Bn&&Bn.length&&Bn[0].length?Bi-Bn[0].length:0),(At.cellAspectRatio||Jn||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Bi+"%"),(Jn||!this._cellWidth)&&(this._cellWidth=100/Bi+"%")}ngOnDestroy(){const At=this._elementRef.nativeElement;At.removeEventListener("touchmove",this._touchmoveHandler,Oe),At.removeEventListener("mouseenter",this._enterHandler,ye),At.removeEventListener("focus",this._enterHandler,ye),At.removeEventListener("mouseleave",this._leaveHandler,ye),At.removeEventListener("blur",this._leaveHandler,ye),At.removeEventListener("mousedown",this._mousedownHandler,ve),At.removeEventListener("touchstart",this._mousedownHandler,ve),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(At,Jn){let Bn=At*this.numCols+Jn;return At&&(Bn-=this._firstRowOffset),Bn==this.activeCell}_focusActiveCell(At=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,O.q)(1)).subscribe(()=>{setTimeout(()=>{const Jn=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Jn&&(At||(this._skipNextFocus=!0),Jn.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(At){return ti(At,this.startValue,this.endValue)}_isRangeEnd(At){return Xt(At,this.startValue,this.endValue)}_isInRange(At){return Je(At,this.startValue,this.endValue,this.isRange)}_isComparisonStart(At){return ti(At,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(At,Jn,Bn){if(!this._isComparisonStart(At)||this._isRangeStart(At)||!this._isInRange(At))return!1;let Bi=this.rows[Jn][Bn-1];if(!Bi){const $n=this.rows[Jn-1];Bi=$n&&$n[$n.length-1]}return Bi&&!this._isRangeEnd(Bi.compareValue)}_isComparisonBridgeEnd(At,Jn,Bn){if(!this._isComparisonEnd(At)||this._isRangeEnd(At)||!this._isInRange(At))return!1;let Bi=this.rows[Jn][Bn+1];if(!Bi){const $n=this.rows[Jn+1];Bi=$n&&$n[0]}return Bi&&!this._isRangeStart(Bi.compareValue)}_isComparisonEnd(At){return Xt(At,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(At){return Je(At,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(At){return this.comparisonStart===this.comparisonEnd&&At===this.comparisonStart}_isPreviewStart(At){return ti(At,this.previewStart,this.previewEnd)}_isPreviewEnd(At){return Xt(At,this.previewStart,this.previewEnd)}_isInPreview(At){return Je(At,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(At){return this.isRange?this.startValue===At&&this.endValue===At?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===At?this._startDateLabelId:this.endValue===At?this._endDateLabelId:null:null}_getCellFromElement(At){const Jn=Rn(At);if(Jn){const Bn=Jn.getAttribute("data-mat-row"),Bi=Jn.getAttribute("data-mat-col");if(Bn&&Bi)return this.rows[parseInt(Bn)][parseInt(Bi)]}return null}static#e=this.\u0275fac=function(Jn){return new(Jn||ui)(i.Y36(i.SBq),i.Y36(i.R0b))};static#t=this.\u0275cmp=i.Xpm({type:ui,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],standalone:!0,features:[i.TTD,i.jDz],attrs:Y,decls:7,vars:5,consts:[["aria-hidden","true"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"]],template:function(Jn,Bn){1&Jn&&(i.YNc(0,K,3,6,"tr",0),i.SjG(1,$,4,1,"tr",3,i.x6l),i.TgZ(3,"label",1),i._uU(4),i.qZA(),i.TgZ(5,"label",1),i._uU(6),i.qZA()),2&Jn&&(i.um2(0,Bn._firstRowOffset<Bn.labelMinRequiredCells?0:-1),i.xp6(),i.wJu(Bn.rows),i.xp6(2),i.Q6J("id",Bn._startDateLabelId),i.xp6(),i.hij(" ",Bn.startDateAccessibleName,"\n"),i.xp6(),i.Q6J("id",Bn._endDateLabelId),i.xp6(),i.hij(" ",Bn.endDateAccessibleName,"\n"))},dependencies:[l.mk],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-outline-color)}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%;font-size:var(--mat-datepicker-calendar-body-label-text-size);font-weight:var(--mat-datepicker-calendar-body-label-text-weight);color:var(--mat-datepicker-calendar-body-label-text-color)}.mat-calendar-body-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;display:block;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview{color:var(--mat-datepicker-calendar-date-preview-state-outline-color)}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color);border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color);color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color)}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color)}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color)}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}'],encapsulation:2,changeDetection:0})}return ui})();function Dt(ui){return"TD"===ui?.nodeName}function Rn(ui){let Fo;return Dt(ui)?Fo=ui:Dt(ui.parentNode)?Fo=ui.parentNode:Dt(ui.parentNode?.parentNode)&&(Fo=ui.parentNode.parentNode),null!=Fo?.getAttribute("data-mat-row")?Fo:null}function ti(ui,Fo,At){return null!==At&&Fo!==At&&ui<At&&ui===Fo}function Xt(ui,Fo,At){return null!==Fo&&Fo!==At&&ui>=Fo&&ui===At}function Je(ui,Fo,At,Jn){return Jn&&null!==Fo&&null!==At&&Fo!==At&&ui>=Fo&&ui<=At}function dt(ui){const Fo=ui.changedTouches[0];return document.elementFromPoint(Fo.clientX,Fo.clientY)}class Ie{constructor(Fo,At){this.start=Fo,this.end=At}}let ot=(()=>{class ui{constructor(At,Jn){this.selection=At,this._adapter=Jn,this._selectionChanged=new o.xQ,this.selectionChanged=this._selectionChanged,this.selection=At}updateSelection(At,Jn){const Bn=this.selection;this.selection=At,this._selectionChanged.next({selection:At,source:Jn,oldValue:Bn})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(At){return this._adapter.isDateInstance(At)&&this._adapter.isValid(At)}static#e=this.\u0275fac=function(Jn){i.$Z()};static#t=this.\u0275prov=i.Yz7({token:ui,factory:ui.\u0275fac})}return ui})(),ct=(()=>{class ui extends ot{constructor(At){super(null,At)}add(At){super.updateSelection(At,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const At=new ui(this._adapter);return At.updateSelection(this.selection,this),At}static#e=this.\u0275fac=function(Jn){return new(Jn||ui)(i.LFG(c._A))};static#t=this.\u0275prov=i.Yz7({token:ui,factory:ui.\u0275fac})}return ui})();const ni={provide:ot,deps:[[new i.FiY,new i.tp0,ot],c._A],useFactory:function yi(ui,Fo){return ui||new ct(Fo)}},vt=new i.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let no=(()=>{class ui{get activeDate(){return this._activeDate}set activeDate(At){const Jn=this._activeDate,Bn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(At))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Bn,this.minDate,this.maxDate),this._hasSameMonthAndYear(Jn,this._activeDate)||this._init()}get selected(){return this._selected}set selected(At){this._selected=At instanceof Ie?At:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(At)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(At){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(At))}get maxDate(){return this._maxDate}set maxDate(At){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(At))}constructor(At,Jn,Bn,Bi,$n){this._changeDetectorRef=At,this._dateFormats=Jn,this._dateAdapter=Bn,this._dir=Bi,this._rangeStrategy=$n,this._rerenderSubscription=x.w.EMPTY,this.activeDrag=null,this.selectedChange=new i.vpe,this._userSelection=new i.vpe,this.dragStarted=new i.vpe,this.dragEnded=new i.vpe,this.activeDateChange=new i.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,P.O)(null)).subscribe(()=>this._init())}ngOnChanges(At){const Jn=At.comparisonStart||At.comparisonEnd;Jn&&!Jn.firstChange&&this._setRanges(this.selected),At.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(At){const Jn=At.value,Bn=this._getDateFromDayOfMonth(Jn);let Bi,$n;this._selected instanceof Ie?(Bi=this._getDateInCurrentMonth(this._selected.start),$n=this._getDateInCurrentMonth(this._selected.end)):Bi=$n=this._getDateInCurrentMonth(this._selected),(Bi!==Jn||$n!==Jn)&&this.selectedChange.emit(Bn),this._userSelection.emit({value:Bn,event:At.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(At){const Bn=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(At.value),this._dateAdapter.compareDate(Bn,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(At){const Jn=this._activeDate,Bn=this._isRtl();switch(At.keyCode){case b.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Bn?1:-1);break;case b.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Bn?-1:1);break;case b.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case b.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case b.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case b.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case b.Ku:this.activeDate=At.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case b.VM:this.activeDate=At.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case b.K5:case b.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&At.preventDefault());case b.hY:return void(null!=this._previewEnd&&!(0,b.Vb)(At)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:At}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:At})),At.preventDefault(),At.stopPropagation()));default:return}this._dateAdapter.compareDate(Jn,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),At.preventDefault()}_handleCalendarBodyKeyup(At){(At.keyCode===b.L_||At.keyCode===b.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:At}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let At=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(At)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(At){this._matCalendarBody._focusActiveCell(At)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:At,value:Jn}){if(this._rangeStrategy){const Bn=Jn?Jn.rawValue:null,Bi=this._rangeStrategy.createPreview(Bn,this.selected,At);if(this._previewStart=this._getCellCompareValue(Bi.start),this._previewEnd=this._getCellCompareValue(Bi.end),this.activeDrag&&Bn){const $n=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,Bn,At);$n&&(this._previewStart=this._getCellCompareValue($n.start),this._previewEnd=this._getCellCompareValue($n.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(At){if(this.activeDrag)if(At.value){const Jn=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,At.value,At.event);this.dragEnded.emit({value:Jn??null,event:At.event})}else this.dragEnded.emit({value:null,event:At.event})}_getDateFromDayOfMonth(At){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),At)}_initWeekdays(){const At=this._dateAdapter.getFirstDayOfWeek(),Jn=this._dateAdapter.getDayOfWeekNames("narrow");let Bi=this._dateAdapter.getDayOfWeekNames("long").map(($n,Ui)=>({long:$n,narrow:Jn[Ui]}));this._weekdays=Bi.slice(At).concat(Bi.slice(0,At))}_createWeekCells(){const At=this._dateAdapter.getNumDaysInMonth(this.activeDate),Jn=this._dateAdapter.getDateNames();this._weeks=[[]];for(let Bn=0,Bi=this._firstWeekOffset;Bn<At;Bn++,Bi++){7==Bi&&(this._weeks.push([]),Bi=0);const $n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),Bn+1),Ui=this._shouldEnableDate($n),Xo=this._dateAdapter.format($n,this._dateFormats.display.dateA11yLabel),bt=this.dateClass?this.dateClass($n,"month"):void 0;this._weeks[this._weeks.length-1].push(new Z(Bn+1,Jn[Bn],Xo,Ui,bt,this._getCellCompareValue($n),$n))}}_shouldEnableDate(At){return!!At&&(!this.minDate||this._dateAdapter.compareDate(At,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(At,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(At))}_getDateInCurrentMonth(At){return At&&this._hasSameMonthAndYear(At,this.activeDate)?this._dateAdapter.getDate(At):null}_hasSameMonthAndYear(At,Jn){return!(!At||!Jn||this._dateAdapter.getMonth(At)!=this._dateAdapter.getMonth(Jn)||this._dateAdapter.getYear(At)!=this._dateAdapter.getYear(Jn))}_getCellCompareValue(At){if(At){const Jn=this._dateAdapter.getYear(At),Bn=this._dateAdapter.getMonth(At),Bi=this._dateAdapter.getDate(At);return new Date(Jn,Bn,Bi).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(At){At instanceof Ie?(this._rangeStart=this._getCellCompareValue(At.start),this._rangeEnd=this._getCellCompareValue(At.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(At),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(At){return!this.dateFilter||this.dateFilter(At)}_clearPreview(){this._previewStart=this._previewEnd=null}static#e=this.\u0275fac=function(Jn){return new(Jn||ui)(i.Y36(i.sBO),i.Y36(c.sG,8),i.Y36(c._A,8),i.Y36(I.Is,8),i.Y36(vt,8))};static#t=this.\u0275cmp=i.Xpm({type:ui,selectors:[["mat-month-view"]],viewQuery:function(Jn,Bn){if(1&Jn&&i.Gf(ft,5),2&Jn){let Bi;i.iGM(Bi=i.CRH())&&(Bn._matCalendarBody=Bi.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],standalone:!0,features:[i.TTD,i.jDz],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName","selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(Jn,Bn){1&Jn&&(i.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),i.SjG(3,ue,5,2,"th",4,i.x6l),i.qZA(),i.TgZ(5,"tr"),i._UZ(6,"th",2),i.qZA()(),i.TgZ(7,"tbody",3),i.NdJ("selectedValueChange",function($n){return Bn._dateSelected($n)})("activeDateChange",function($n){return Bn._updateActiveDate($n)})("previewChange",function($n){return Bn._previewChanged($n)})("dragStarted",function($n){return Bn.dragStarted.emit($n)})("dragEnded",function($n){return Bn._dragEnded($n)})("keyup",function($n){return Bn._handleCalendarBodyKeyup($n)})("keydown",function($n){return Bn._handleCalendarBodyKeydown($n)}),i.qZA()()),2&Jn&&(i.xp6(3),i.wJu(Bn._weekdays),i.xp6(4),i.Q6J("label",Bn._monthLabel)("rows",Bn._weeks)("todayValue",Bn._todayDate)("startValue",Bn._rangeStart)("endValue",Bn._rangeEnd)("comparisonStart",Bn._comparisonRangeStart)("comparisonEnd",Bn._comparisonRangeEnd)("previewStart",Bn._previewStart)("previewEnd",Bn._previewEnd)("isRange",Bn._isRange)("labelMinRequiredCells",3)("activeCell",Bn._dateAdapter.getDate(Bn.activeDate)-1)("startDateAccessibleName",Bn.startDateAccessibleName)("endDateAccessibleName",Bn.endDateAccessibleName))},dependencies:[ft],encapsulation:2,changeDetection:0})}return ui})();const Li=24;let Ii=(()=>{class ui{get activeDate(){return this._activeDate}set activeDate(At){let Jn=this._activeDate;const Bn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(At))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Bn,this.minDate,this.maxDate),_i(this._dateAdapter,Jn,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(At){this._selected=At instanceof Ie?At:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(At)),this._setSelectedYear(At)}get minDate(){return this._minDate}set minDate(At){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(At))}get maxDate(){return this._maxDate}set maxDate(At){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(At))}constructor(At,Jn,Bn){this._changeDetectorRef=At,this._dateAdapter=Jn,this._dir=Bn,this._rerenderSubscription=x.w.EMPTY,this.selectedChange=new i.vpe,this.yearSelected=new i.vpe,this.activeDateChange=new i.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,P.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Jn=this._dateAdapter.getYear(this._activeDate)-En(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let Bn=0,Bi=[];Bn<Li;Bn++)Bi.push(Jn+Bn),4==Bi.length&&(this._years.push(Bi.map($n=>this._createCellForYear($n))),Bi=[]);this._changeDetectorRef.markForCheck()}_yearSelected(At){const Jn=At.value,Bn=this._dateAdapter.createDate(Jn,0,1),Bi=this._getDateFromYear(Jn);this.yearSelected.emit(Bn),this.selectedChange.emit(Bi)}_updateActiveDate(At){const Bn=this._activeDate;this.activeDate=this._getDateFromYear(At.value),this._dateAdapter.compareDate(Bn,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(At){const Jn=this._activeDate,Bn=this._isRtl();switch(At.keyCode){case b.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Bn?1:-1);break;case b.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Bn?-1:1);break;case b.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case b.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case b.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-En(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case b.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Li-En(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case b.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,At.altKey?10*-Li:-Li);break;case b.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,At.altKey?10*Li:Li);break;case b.K5:case b.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Jn,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),At.preventDefault()}_handleCalendarBodyKeyup(At){(At.keyCode===b.L_||At.keyCode===b.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:At}),this._selectionKeyPressed=!1)}_getActiveCell(){return En(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(At){const Jn=this._dateAdapter.getMonth(this.activeDate),Bn=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(At,Jn,1));return this._dateAdapter.createDate(At,Jn,Math.min(this._dateAdapter.getDate(this.activeDate),Bn))}_createCellForYear(At){const Jn=this._dateAdapter.createDate(At,0,1),Bn=this._dateAdapter.getYearName(Jn),Bi=this.dateClass?this.dateClass(Jn,"multi-year"):void 0;return new Z(At,Bn,Bn,this._shouldEnableYear(At),Bi)}_shouldEnableYear(At){if(null==At||this.maxDate&&At>this._dateAdapter.getYear(this.maxDate)||this.minDate&&At<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let Bn=this._dateAdapter.createDate(At,0,1);this._dateAdapter.getYear(Bn)==At;Bn=this._dateAdapter.addCalendarDays(Bn,1))if(this.dateFilter(Bn))return!0;return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(At){if(this._selectedYear=null,At instanceof Ie){const Jn=At.start||At.end;Jn&&(this._selectedYear=this._dateAdapter.getYear(Jn))}else At&&(this._selectedYear=this._dateAdapter.getYear(At))}static#e=this.\u0275fac=function(Jn){return new(Jn||ui)(i.Y36(i.sBO),i.Y36(c._A,8),i.Y36(I.Is,8))};static#t=this.\u0275cmp=i.Xpm({type:ui,selectors:[["mat-multi-year-view"]],viewQuery:function(Jn,Bn){if(1&Jn&&i.Gf(ft,5),2&Jn){let Bi;i.iGM(Bi=i.CRH())&&(Bn._matCalendarBody=Bi.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],standalone:!0,features:[i.jDz],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(Jn,Bn){1&Jn&&(i.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),i._UZ(3,"th",2),i.qZA()(),i.TgZ(4,"tbody",3),i.NdJ("selectedValueChange",function($n){return Bn._yearSelected($n)})("activeDateChange",function($n){return Bn._updateActiveDate($n)})("keyup",function($n){return Bn._handleCalendarBodyKeyup($n)})("keydown",function($n){return Bn._handleCalendarBodyKeydown($n)}),i.qZA()()),2&Jn&&(i.xp6(4),i.Q6J("rows",Bn._years)("todayValue",Bn._todayYear)("startValue",Bn._selectedYear)("endValue",Bn._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",Bn._getActiveCell()))},dependencies:[ft],encapsulation:2,changeDetection:0})}return ui})();function _i(ui,Fo,At,Jn,Bn){const Bi=ui.getYear(Fo),$n=ui.getYear(At),Ui=co(ui,Jn,Bn);return Math.floor((Bi-Ui)/Li)===Math.floor(($n-Ui)/Li)}function En(ui,Fo,At,Jn){return function yn(ui,Fo){return(ui%Fo+Fo)%Fo}(ui.getYear(Fo)-co(ui,At,Jn),Li)}function co(ui,Fo,At){let Jn=0;return At?Jn=ui.getYear(At)-Li+1:Fo&&(Jn=ui.getYear(Fo)),Jn}let ln=(()=>{class ui{get activeDate(){return this._activeDate}set activeDate(At){let Jn=this._activeDate;const Bn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(At))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Bn,this.minDate,this.maxDate),this._dateAdapter.getYear(Jn)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(At){this._selected=At instanceof Ie?At:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(At)),this._setSelectedMonth(At)}get minDate(){return this._minDate}set minDate(At){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(At))}get maxDate(){return this._maxDate}set maxDate(At){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(At))}constructor(At,Jn,Bn,Bi){this._changeDetectorRef=At,this._dateFormats=Jn,this._dateAdapter=Bn,this._dir=Bi,this._rerenderSubscription=x.w.EMPTY,this.selectedChange=new i.vpe,this.monthSelected=new i.vpe,this.activeDateChange=new i.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,P.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(At){const Jn=At.value,Bn=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Jn,1);this.monthSelected.emit(Bn);const Bi=this._getDateFromMonth(Jn);this.selectedChange.emit(Bi)}_updateActiveDate(At){const Bn=this._activeDate;this.activeDate=this._getDateFromMonth(At.value),this._dateAdapter.compareDate(Bn,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(At){const Jn=this._activeDate,Bn=this._isRtl();switch(At.keyCode){case b.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Bn?1:-1);break;case b.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Bn?-1:1);break;case b.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case b.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case b.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case b.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case b.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,At.altKey?-10:-1);break;case b.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,At.altKey?10:1);break;case b.K5:case b.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Jn,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),At.preventDefault()}_handleCalendarBodyKeyup(At){(At.keyCode===b.L_||At.keyCode===b.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:At}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let At=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Jn=>Jn.map(Bn=>this._createCellForMonth(Bn,At[Bn]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(At){return At&&this._dateAdapter.getYear(At)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(At):null}_getDateFromMonth(At){const Jn=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),At,1),Bn=this._dateAdapter.getNumDaysInMonth(Jn);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),At,Math.min(this._dateAdapter.getDate(this.activeDate),Bn))}_createCellForMonth(At,Jn){const Bn=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),At,1),Bi=this._dateAdapter.format(Bn,this._dateFormats.display.monthYearA11yLabel),$n=this.dateClass?this.dateClass(Bn,"year"):void 0;return new Z(At,Jn.toLocaleUpperCase(),Bi,this._shouldEnableMonth(At),$n)}_shouldEnableMonth(At){const Jn=this._dateAdapter.getYear(this.activeDate);if(null==At||this._isYearAndMonthAfterMaxDate(Jn,At)||this._isYearAndMonthBeforeMinDate(Jn,At))return!1;if(!this.dateFilter)return!0;for(let Bi=this._dateAdapter.createDate(Jn,At,1);this._dateAdapter.getMonth(Bi)==At;Bi=this._dateAdapter.addCalendarDays(Bi,1))if(this.dateFilter(Bi))return!0;return!1}_isYearAndMonthAfterMaxDate(At,Jn){if(this.maxDate){const Bn=this._dateAdapter.getYear(this.maxDate),Bi=this._dateAdapter.getMonth(this.maxDate);return At>Bn||At===Bn&&Jn>Bi}return!1}_isYearAndMonthBeforeMinDate(At,Jn){if(this.minDate){const Bn=this._dateAdapter.getYear(this.minDate),Bi=this._dateAdapter.getMonth(this.minDate);return At<Bn||At===Bn&&Jn<Bi}return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(At){this._selectedMonth=At instanceof Ie?this._getMonthInCurrentYear(At.start)||this._getMonthInCurrentYear(At.end):this._getMonthInCurrentYear(At)}static#e=this.\u0275fac=function(Jn){return new(Jn||ui)(i.Y36(i.sBO),i.Y36(c.sG,8),i.Y36(c._A,8),i.Y36(I.Is,8))};static#t=this.\u0275cmp=i.Xpm({type:ui,selectors:[["mat-year-view"]],viewQuery:function(Jn,Bn){if(1&Jn&&i.Gf(ft,5),2&Jn){let Bi;i.iGM(Bi=i.CRH())&&(Bn._matCalendarBody=Bi.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],standalone:!0,features:[i.jDz],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(Jn,Bn){1&Jn&&(i.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),i._UZ(3,"th",2),i.qZA()(),i.TgZ(4,"tbody",3),i.NdJ("selectedValueChange",function($n){return Bn._monthSelected($n)})("activeDateChange",function($n){return Bn._updateActiveDate($n)})("keyup",function($n){return Bn._handleCalendarBodyKeyup($n)})("keydown",function($n){return Bn._handleCalendarBodyKeydown($n)}),i.qZA()()),2&Jn&&(i.xp6(4),i.Q6J("label",Bn._yearLabel)("rows",Bn._months)("todayValue",Bn._todayMonth)("startValue",Bn._selectedMonth)("endValue",Bn._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",Bn._dateAdapter.getMonth(Bn.activeDate)))},dependencies:[ft],encapsulation:2,changeDetection:0})}return ui})(),He=1,rt=(()=>{class ui{constructor(At,Jn,Bn,Bi,$n){this._intl=At,this.calendar=Jn,this._dateAdapter=Bn,this._dateFormats=Bi,this._id="mat-calendar-header-"+He++,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>$n.markForCheck())}get periodButtonText(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-Li)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:Li)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(At,Jn){return"month"==this.calendar.currentView?this._dateAdapter.getYear(At)==this._dateAdapter.getYear(Jn)&&this._dateAdapter.getMonth(At)==this._dateAdapter.getMonth(Jn):"year"==this.calendar.currentView?this._dateAdapter.getYear(At)==this._dateAdapter.getYear(Jn):_i(this._dateAdapter,At,Jn,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const Jn=this._dateAdapter.getYear(this.calendar.activeDate)-En(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),Bn=Jn+Li-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(Jn,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(Bn,0,1))]}static#e=this.\u0275fac=function(Jn){return new(Jn||ui)(i.Y36(r),i.Y36((0,i.Gpc)(()=>$e)),i.Y36(c._A,8),i.Y36(c.sG,8),i.Y36(i.sBO))};static#t=this.\u0275cmp=i.Xpm({type:ui,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],standalone:!0,features:[i.jDz],ngContentSelectors:ge,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"],[1,"mat-calendar-hidden-label",3,"id"]],template:function(Jn,Bn){1&Jn&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1)(2,"button",2),i.NdJ("click",function(){return Bn.currentPeriodClicked()}),i.TgZ(3,"span",3),i._uU(4),i.qZA(),i.O4$(),i.TgZ(5,"svg",4),i._UZ(6,"polygon",5),i.qZA()(),i.kcU(),i._UZ(7,"div",6),i.Hsn(8),i.TgZ(9,"button",7),i.NdJ("click",function(){return Bn.previousClicked()}),i.qZA(),i.TgZ(10,"button",8),i.NdJ("click",function(){return Bn.nextClicked()}),i.qZA()()(),i.TgZ(11,"label",9),i._uU(12),i.qZA()),2&Jn&&(i.xp6(2),i.uIk("aria-label",Bn.periodButtonLabel)("aria-describedby",Bn._periodButtonLabelId),i.xp6(2),i.Oqu(Bn.periodButtonText),i.xp6(),i.ekj("mat-calendar-invert","month"!==Bn.calendar.currentView),i.xp6(4),i.Q6J("disabled",!Bn.previousEnabled()),i.uIk("aria-label",Bn.prevButtonLabel),i.xp6(),i.Q6J("disabled",!Bn.nextEnabled()),i.uIk("aria-label",Bn.nextButtonLabel),i.xp6(),i.Q6J("id",Bn._periodButtonLabelId),i.xp6(),i.Oqu(Bn.periodButtonDescription))},dependencies:[t.lW,t.RK],encapsulation:2,changeDetection:0})}return ui})(),$e=(()=>{class ui{get startAt(){return this._startAt}set startAt(At){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(At))}get selected(){return this._selected}set selected(At){this._selected=At instanceof Ie?At:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(At))}get minDate(){return this._minDate}set minDate(At){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(At))}get maxDate(){return this._maxDate}set maxDate(At){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(At))}get activeDate(){return this._clampedActiveDate}set activeDate(At){this._clampedActiveDate=this._dateAdapter.clampDate(At,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(At){const Jn=this._currentView!==At?At:null;this._currentView=At,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Jn&&this.viewChanged.emit(Jn)}constructor(At,Jn,Bn,Bi){this._dateAdapter=Jn,this._dateFormats=Bn,this._changeDetectorRef=Bi,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new i.vpe,this.yearSelected=new i.vpe,this.monthSelected=new i.vpe,this.viewChanged=new i.vpe(!0),this._userSelection=new i.vpe,this._userDragDrop=new i.vpe,this._activeDrag=null,this.stateChanges=new o.xQ,this._intlChanges=At.changes.subscribe(()=>{Bi.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new s.C5(this.headerComponent||rt),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(At){const Jn=At.minDate&&!this._dateAdapter.sameDate(At.minDate.previousValue,At.minDate.currentValue)?At.minDate:void 0,Bn=At.maxDate&&!this._dateAdapter.sameDate(At.maxDate.previousValue,At.maxDate.currentValue)?At.maxDate:void 0,Bi=Jn||Bn||At.dateFilter;if(Bi&&!Bi.firstChange){const $n=this._getCurrentViewComponent();$n&&(this._changeDetectorRef.detectChanges(),$n._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(At){const Jn=At.value;(this.selected instanceof Ie||Jn&&!this._dateAdapter.sameDate(Jn,this.selected))&&this.selectedChange.emit(Jn),this._userSelection.emit(At)}_yearSelectedInMultiYearView(At){this.yearSelected.emit(At)}_monthSelectedInYearView(At){this.monthSelected.emit(At)}_goToDateInView(At,Jn){this.activeDate=At,this.currentView=Jn}_dragStarted(At){this._activeDrag=At}_dragEnded(At){this._activeDrag&&(At.value&&this._userDragDrop.emit(At),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static#e=this.\u0275fac=function(Jn){return new(Jn||ui)(i.Y36(r),i.Y36(c._A,8),i.Y36(c.sG,8),i.Y36(i.sBO))};static#t=this.\u0275cmp=i.Xpm({type:ui,selectors:[["mat-calendar"]],viewQuery:function(Jn,Bn){if(1&Jn&&(i.Gf(no,5),i.Gf(ln,5),i.Gf(Ii,5)),2&Jn){let Bi;i.iGM(Bi=i.CRH())&&(Bn.monthView=Bi.first),i.iGM(Bi=i.CRH())&&(Bn.yearView=Bi.first),i.iGM(Bi=i.CRH())&&(Bn.multiYearView=Bi.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],standalone:!0,features:[i._Bn([ni]),i.TTD,i.jDz],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(Jn,Bn){if(1&Jn&&(i.YNc(0,Ke,0,0,"ng-template",0),i.TgZ(1,"div",1),i.YNc(2,at,1,11)(3,Le,1,6)(4,R,1,6),i.qZA()),2&Jn){let Bi;i.Q6J("cdkPortalOutlet",Bn._calendarHeaderPortal),i.xp6(2),i.um2(2,"month"===(Bi=Bn.currentView)?2:"year"===Bi?3:"multi-year"===Bi?4:-1)}},dependencies:[s.Pl,e.kH,no,ln,Ii],styles:['.mat-calendar{display:block;font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size);font-weight:var(--mat-datepicker-calendar-period-button-text-weight)}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color)}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color)}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color);font-size:var(--mat-datepicker-calendar-header-text-size);font-weight:var(--mat-datepicker-calendar-header-text-weight)}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}.mat-calendar-hidden-label{display:none}'],encapsulation:2,changeDetection:0})}return ui})();const Ve={transformPanel:(0,ae.X$)("transformPanel",[(0,ae.eR)("void => enter-dropdown",(0,ae.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ae.F4)([(0,ae.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,ae.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,ae.eR)("void => enter-dialog",(0,ae.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,ae.F4)([(0,ae.oB)({opacity:0,transform:"scale(0.7)"}),(0,ae.oB)({transform:"none",opacity:1})]))),(0,ae.eR)("* => void",(0,ae.jt)("100ms linear",(0,ae.oB)({opacity:0})))]),fadeInCalendar:(0,ae.X$)("fadeInCalendar",[(0,ae.SB)("void",(0,ae.oB)({opacity:0})),(0,ae.SB)("enter",(0,ae.oB)({opacity:1})),(0,ae.eR)("void => *",(0,ae.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Ce=0;const tt=new i.OlP("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{const ui=(0,i.f3M)(n.aV);return()=>ui.scrollStrategies.reposition()}}),Qt={provide:tt,deps:[n.aV],useFactory:function ht(ui){return()=>ui.scrollStrategies.reposition()}};let Un=(()=>{class ui{constructor(At,Jn,Bn,Bi,$n,Ui){this._elementRef=At,this._changeDetectorRef=Jn,this._globalModel=Bn,this._dateAdapter=Bi,this._rangeSelectionStrategy=$n,this._subscriptions=new x.w,this._animationDone=new o.xQ,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=Ui.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(At){const Jn=this._model.selection,Bn=At.value,Bi=Jn instanceof Ie;if(Bi&&this._rangeSelectionStrategy){const $n=this._rangeSelectionStrategy.selectionFinished(Bn,Jn,At.event);this._model.updateSelection($n,this)}else Bn&&(Bi||!this._dateAdapter.sameDate(Bn,Jn))&&this._model.add(Bn);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(At){this._model.updateSelection(At.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(At){this._isAnimating="start"===At.phaseName,this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(At,Jn){this._model=At?this._globalModel.clone():this._globalModel,this._actionsPortal=At,Jn&&this._changeDetectorRef.detectChanges()}static#e=this.\u0275fac=function(Jn){return new(Jn||ui)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(ot),i.Y36(c._A),i.Y36(vt,8),i.Y36(r))};static#t=this.\u0275cmp=i.Xpm({type:ui,selectors:[["mat-datepicker-content"]],viewQuery:function(Jn,Bn){if(1&Jn&&i.Gf($e,5),2&Jn){let Bi;i.iGM(Bi=i.CRH())&&(Bn._calendar=Bi.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:5,hostBindings:function(Jn,Bn){1&Jn&&i.WFA("@transformPanel.start",function($n){return Bn._handleAnimationEvent($n)})("@transformPanel.done",function($n){return Bn._handleAnimationEvent($n)}),2&Jn&&(i.d8E("@transformPanel",Bn._animationState),i.Tol(Bn.color?"mat-"+Bn.color:""),i.ekj("mat-datepicker-content-touch",Bn.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],standalone:!0,features:[i.jDz],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(Jn,Bn){if(1&Jn&&(i.TgZ(0,"div",0)(1,"mat-calendar",1),i.NdJ("yearSelected",function($n){return Bn.datepicker._selectYear($n)})("monthSelected",function($n){return Bn.datepicker._selectMonth($n)})("viewChanged",function($n){return Bn.datepicker._viewChanged($n)})("_userSelection",function($n){return Bn._handleUserSelection($n)})("_userDragDrop",function($n){return Bn._handleUserDragDrop($n)}),i.qZA(),i.YNc(2,Te,0,0,"ng-template",2),i.TgZ(3,"button",3),i.NdJ("focus",function(){return Bn._closeButtonFocused=!0})("blur",function(){return Bn._closeButtonFocused=!1})("click",function(){return Bn.datepicker.close()}),i._uU(4),i.qZA()()),2&Jn){let Bi;i.ekj("mat-datepicker-content-container-with-custom-header",Bn.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",Bn._actionsPortal),i.uIk("aria-modal",!0)("aria-labelledby",null!==(Bi=Bn._dialogLabelId)&&void 0!==Bi?Bi:void 0),i.xp6(),i.Q6J("id",Bn.datepicker.id)("ngClass",Bn.datepicker.panelClass)("startAt",Bn.datepicker.startAt)("startView",Bn.datepicker.startView)("minDate",Bn.datepicker._getMinDate())("maxDate",Bn.datepicker._getMaxDate())("dateFilter",Bn.datepicker._getDateFilter())("headerComponent",Bn.datepicker.calendarHeaderComponent)("selected",Bn._getSelected())("dateClass",Bn.datepicker.dateClass)("comparisonStart",Bn.comparisonStart)("comparisonEnd",Bn.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",Bn.startDateAccessibleName)("endDateAccessibleName",Bn.endDateAccessibleName),i.xp6(),i.Q6J("cdkPortalOutlet",Bn._actionsPortal),i.xp6(),i.ekj("cdk-visually-hidden",!Bn._closeButtonFocused),i.Q6J("color",Bn.color||"primary"),i.xp6(),i.Oqu(Bn._closeButtonText)}},dependencies:[e.mK,$e,l.mk,s.Pl,t.lW],styles:[".mat-datepicker-content{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color);color:var(--mat-datepicker-calendar-container-text-color)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{box-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[Ve.transformPanel,Ve.fadeInCalendar]},changeDetection:0})}return ui})(),Yt=(()=>{class ui{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(At){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(At))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(At){this._color=At}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(At){At!==this._disabled&&(this._disabled=At,this.stateChanges.next(void 0))}get panelClass(){return this._panelClass}set panelClass(At){this._panelClass=(0,B.du)(At)}get opened(){return this._opened}set opened(At){At?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(At,Jn,Bn,Bi,$n,Ui,Xo){this._overlay=At,this._ngZone=Jn,this._viewContainerRef=Bn,this._dateAdapter=$n,this._dir=Ui,this._model=Xo,this._inputStateChanges=x.w.EMPTY,this._document=(0,i.f3M)(l.K0),this.startView="month",this.touchUi=!1,this.xPosition="start",this.yPosition="below",this.restoreFocus=!0,this.yearSelected=new i.vpe,this.monthSelected=new i.vpe,this.viewChanged=new i.vpe(!0),this.openedStream=new i.vpe,this.closedStream=new i.vpe,this._opened=!1,this.id="mat-datepicker-"+Ce++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new o.xQ,this._scrollStrategy=Bi}ngOnChanges(At){const Jn=At.xPosition||At.yPosition;if(Jn&&!Jn.firstChange&&this._overlayRef){const Bn=this._overlayRef.getConfig().positionStrategy;Bn instanceof n._G&&(this._setConnectedPositions(Bn),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(At){this._model.add(At)}_selectYear(At){this.yearSelected.emit(At)}_selectMonth(At){this.monthSelected.emit(At)}_viewChanged(At){this.viewChanged.emit(At)}registerInput(At){return this._inputStateChanges.unsubscribe(),this.datepickerInput=At,this._inputStateChanges=At.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(At){this._actionsPortal=At,this._componentRef?.instance._assignActions(At,!0)}removeActions(At){At===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this._focusedElementBeforeOpen=(0,H.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;const At=this.restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,Jn=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:Bn,location:Bi}=this._componentRef;Bn._startExitAnimation(),Bn._animationDone.pipe((0,O.q)(1)).subscribe(()=>{const $n=this._document.activeElement;At&&(!$n||$n===this._document.activeElement||Bi.nativeElement.contains($n))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}At?setTimeout(Jn):Jn()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(At){At.datepicker=this,At.color=this.color,At._dialogLabelId=this.datepickerInput.getOverlayLabelId(),At._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const At=this.touchUi,Jn=new s.C5(Un,this._viewContainerRef),Bn=this._overlayRef=this._overlay.create(new n.X_({positionStrategy:At?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[At?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:At?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(At?"dialog":"popup")}));this._getCloseStream(Bn).subscribe(Bi=>{Bi&&Bi.preventDefault(),this.close()}),Bn.keydownEvents().subscribe(Bi=>{const $n=Bi.keyCode;($n===b.LH||$n===b.JH||$n===b.oh||$n===b.SV||$n===b.Ku||$n===b.VM)&&Bi.preventDefault()}),this._componentRef=Bn.attach(Jn),this._forwardContentValues(this._componentRef.instance),At||this._ngZone.onStable.pipe((0,O.q)(1)).subscribe(()=>Bn.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const At=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(At)}_setConnectedPositions(At){const Jn="end"===this.xPosition?"end":"start",Bn="start"===Jn?"end":"start",Bi="above"===this.yPosition?"bottom":"top",$n="top"===Bi?"bottom":"top";return At.withPositions([{originX:Jn,originY:$n,overlayX:Jn,overlayY:Bi},{originX:Jn,originY:Bi,overlayX:Jn,overlayY:$n},{originX:Bn,originY:$n,overlayX:Bn,overlayY:Bi},{originX:Bn,originY:Bi,overlayX:Bn,overlayY:$n}])}_getCloseStream(At){const Jn=["ctrlKey","shiftKey","metaKey"];return(0,u.T)(At.backdropClick(),At.detachments(),At.keydownEvents().pipe((0,G.h)(Bn=>Bn.keyCode===b.hY&&!(0,b.Vb)(Bn)||this.datepickerInput&&(0,b.Vb)(Bn,"altKey")&&Bn.keyCode===b.LH&&Jn.every(Bi=>!(0,b.Vb)(Bn,Bi)))))}static#e=this.\u0275fac=function(Jn){return new(Jn||ui)(i.Y36(n.aV),i.Y36(i.R0b),i.Y36(i.s_b),i.Y36(tt),i.Y36(c._A,8),i.Y36(I.Is,8),i.Y36(ot))};static#t=this.\u0275dir=i.lG2({type:ui,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[i.lbL.HasDecoratorInputTransform,"touchUi","touchUi",i.VuI],disabled:[i.lbL.HasDecoratorInputTransform,"disabled","disabled",i.VuI],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[i.lbL.HasDecoratorInputTransform,"restoreFocus","restoreFocus",i.VuI],dateClass:"dateClass",panelClass:"panelClass",opened:[i.lbL.HasDecoratorInputTransform,"opened","opened",i.VuI]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[i.Xq5,i.TTD]})}return ui})(),Fn=(()=>{class ui extends Yt{static#e=this.\u0275fac=(()=>{let At;return function(Bn){return(At||(At=i.n5z(ui)))(Bn||ui)}})();static#t=this.\u0275cmp=i.Xpm({type:ui,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],standalone:!0,features:[i._Bn([ni,{provide:Yt,useExisting:ui}]),i.qOj,i.jDz],decls:0,vars:0,template:function(Jn,Bn){},encapsulation:2,changeDetection:0})}return ui})();class yt{constructor(Fo,At){this.target=Fo,this.targetElement=At,this.value=this.target.value}}let Bt=(()=>{class ui{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(At){this._assignValueProgrammatically(At)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(At){const Jn=At,Bn=this._elementRef.nativeElement;this._disabled!==Jn&&(this._disabled=Jn,this.stateChanges.next(void 0)),Jn&&this._isInitialized&&Bn.blur&&Bn.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(At){this._model=At,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Jn=>{if(this._shouldHandleChangeEvent(Jn)){const Bn=this._getValueFromModel(Jn.selection);this._lastValueValid=this._isValidValue(Bn),this._cvaOnChange(Bn),this._onTouched(),this._formatValue(Bn),this.dateInput.emit(new yt(this,this._elementRef.nativeElement)),this.dateChange.emit(new yt(this,this._elementRef.nativeElement))}})}constructor(At,Jn,Bn){this._elementRef=At,this._dateAdapter=Jn,this._dateFormats=Bn,this.dateChange=new i.vpe,this.dateInput=new i.vpe,this.stateChanges=new o.xQ,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=x.w.EMPTY,this._localeSubscription=x.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Bi=>{const $n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Bi.value));return!$n||this._matchesFilter($n)?null:{matDatepickerFilter:!0}},this._minValidator=Bi=>{const $n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Bi.value)),Ui=this._getMinDate();return!Ui||!$n||this._dateAdapter.compareDate(Ui,$n)<=0?null:{matDatepickerMin:{min:Ui,actual:$n}}},this._maxValidator=Bi=>{const $n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Bi.value)),Ui=this._getMaxDate();return!Ui||!$n||this._dateAdapter.compareDate(Ui,$n)>=0?null:{matDatepickerMax:{max:Ui,actual:$n}}},this._lastValueValid=!1,this._localeSubscription=Jn.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(At){(function li(ui,Fo){const At=Object.keys(ui);for(let Jn of At){const{previousValue:Bn,currentValue:Bi}=ui[Jn];if(!Fo.isDateInstance(Bn)||!Fo.isDateInstance(Bi))return!0;if(!Fo.sameDate(Bn,Bi))return!0}return!1})(At,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(At){this._validatorOnChange=At}validate(At){return this._validator?this._validator(At):null}writeValue(At){this._assignValueProgrammatically(At)}registerOnChange(At){this._cvaOnChange=At}registerOnTouched(At){this._onTouched=At}setDisabledState(At){this.disabled=At}_onKeydown(At){(0,b.Vb)(At,"altKey")&&At.keyCode===b.JH&&["ctrlKey","shiftKey","metaKey"].every(Bi=>!(0,b.Vb)(At,Bi))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),At.preventDefault())}_onInput(At){const Jn=this._lastValueValid;let Bn=this._dateAdapter.parse(At,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(Bn),Bn=this._dateAdapter.getValidDateOrNull(Bn);const Bi=!this._dateAdapter.sameDate(Bn,this.value);!Bn||Bi?this._cvaOnChange(Bn):(At&&!this.value&&this._cvaOnChange(Bn),Jn!==this._lastValueValid&&this._validatorOnChange()),Bi&&(this._assignValue(Bn),this.dateInput.emit(new yt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new yt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(At){this._elementRef.nativeElement.value=null!=At?this._dateAdapter.format(At,this._dateFormats.display.dateInput):""}_assignValue(At){this._model?(this._assignValueToModel(At),this._pendingValue=null):this._pendingValue=At}_isValidValue(At){return!At||this._dateAdapter.isValid(At)}_parentDisabled(){return!1}_assignValueProgrammatically(At){At=this._dateAdapter.deserialize(At),this._lastValueValid=this._isValidValue(At),At=this._dateAdapter.getValidDateOrNull(At),this._assignValue(At),this._formatValue(At)}_matchesFilter(At){const Jn=this._getDateFilter();return!Jn||Jn(At)}static#e=this.\u0275fac=function(Jn){return new(Jn||ui)(i.Y36(i.SBq),i.Y36(c._A,8),i.Y36(c.sG,8))};static#t=this.\u0275dir=i.lG2({type:ui,inputs:{value:"value",disabled:[i.lbL.HasDecoratorInputTransform,"disabled","disabled",i.VuI]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[i.Xq5,i.TTD]})}return ui})();const si={provide:J.JU,useExisting:(0,i.Gpc)(()=>_o),multi:!0},oo={provide:J.Cf,useExisting:(0,i.Gpc)(()=>_o),multi:!0};let _o=(()=>{class ui extends Bt{set matDatepicker(At){At&&(this._datepicker=At,this._closedSubscription=At.closedStream.subscribe(()=>this._onTouched()),this._registerModel(At.registerInput(this)))}get min(){return this._min}set min(At){const Jn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(At));this._dateAdapter.sameDate(Jn,this._min)||(this._min=Jn,this._validatorOnChange())}get max(){return this._max}set max(At){const Jn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(At));this._dateAdapter.sameDate(Jn,this._max)||(this._max=Jn,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(At){const Jn=this._matchesFilter(this.value);this._dateFilter=At,this._matchesFilter(this.value)!==Jn&&this._validatorOnChange()}constructor(At,Jn,Bn,Bi){super(At,Jn,Bn),this._formField=Bi,this._closedSubscription=x.w.EMPTY,this._validator=J.kI.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(At){return At}_assignValueToModel(At){this._model&&this._model.updateSelection(At,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(At){return At.source!==this}static#e=this.\u0275fac=function(Jn){return new(Jn||ui)(i.Y36(i.SBq),i.Y36(c._A,8),i.Y36(c.sG,8),i.Y36(q.G_,8))};static#t=this.\u0275dir=i.lG2({type:ui,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(Jn,Bn){1&Jn&&i.NdJ("input",function($n){return Bn._onInput($n.target.value)})("change",function(){return Bn._onChange()})("blur",function(){return Bn._onBlur()})("keydown",function($n){return Bn._onKeydown($n)}),2&Jn&&(i.Ikx("disabled",Bn.disabled),i.uIk("aria-haspopup",Bn._datepicker?"dialog":null)("aria-owns",(null==Bn._datepicker?null:Bn._datepicker.opened)&&Bn._datepicker.id||null)("min",Bn.min?Bn._dateAdapter.toIso8601(Bn.min):null)("max",Bn.max?Bn._dateAdapter.toIso8601(Bn.max):null)("data-mat-calendar",Bn._datepicker?Bn._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[i.lbL.None,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],standalone:!0,features:[i._Bn([si,oo,{provide:j.Jk,useExisting:ui}]),i.qOj]})}return ui})(),Hn=(()=>{class ui{static#e=this.\u0275fac=function(Jn){return new(Jn||ui)};static#t=this.\u0275dir=i.lG2({type:ui,selectors:[["","matDatepickerToggleIcon",""]],standalone:!0})}return ui})(),mo=(()=>{class ui{get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(At){this._disabled=At}constructor(At,Jn,Bn){this._intl=At,this._changeDetectorRef=Jn,this._stateChanges=x.w.EMPTY;const Bi=Number(Bn);this.tabIndex=Bi||0===Bi?Bi:null}ngOnChanges(At){At.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(At){this.datepicker&&!this.disabled&&(this.datepicker.open(),At.stopPropagation())}_watchStateChanges(){const At=this.datepicker?this.datepicker.stateChanges:(0,m.of)(),Jn=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,m.of)(),Bn=this.datepicker?(0,u.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,m.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,u.T)(this._intl.changes,At,Jn,Bn).subscribe(()=>this._changeDetectorRef.markForCheck())}static#e=this.\u0275fac=function(Jn){return new(Jn||ui)(i.Y36(r),i.Y36(i.sBO),i.$8M("tabindex"))};static#t=this.\u0275cmp=i.Xpm({type:ui,selectors:[["mat-datepicker-toggle"]],contentQueries:function(Jn,Bn,Bi){if(1&Jn&&i.Suo(Bi,Hn,5),2&Jn){let $n;i.iGM($n=i.CRH())&&(Bn._customIcon=$n.first)}},viewQuery:function(Jn,Bn){if(1&Jn&&i.Gf(me,5),2&Jn){let Bi;i.iGM(Bi=i.CRH())&&(Bn._button=Bi.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(Jn,Bn){1&Jn&&i.NdJ("click",function($n){return Bn._open($n)}),2&Jn&&(i.uIk("tabindex",null)("data-mat-calendar",Bn.datepicker?Bn.datepicker.id:null),i.ekj("mat-datepicker-toggle-active",Bn.datepicker&&Bn.datepicker.opened)("mat-accent",Bn.datepicker&&"accent"===Bn.datepicker.color)("mat-warn",Bn.datepicker&&"warn"===Bn.datepicker.color))},inputs:{datepicker:[i.lbL.None,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[i.lbL.None,"aria-label","ariaLabel"],disabled:[i.lbL.HasDecoratorInputTransform,"disabled","disabled",i.VuI],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],standalone:!0,features:[i.Xq5,i.TTD,i.jDz],ngContentSelectors:We,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(Jn,Bn){1&Jn&&(i.F$t(Ue),i.TgZ(0,"button",0,1),i.YNc(2,Se,2,0,":svg:svg",2),i.Hsn(3),i.qZA()),2&Jn&&(i.Q6J("disabled",Bn.disabled)("disableRipple",Bn.disableRipple),i.uIk("aria-haspopup",Bn.datepicker?"dialog":null)("aria-label",Bn.ariaLabel||Bn._intl.openCalendarLabel)("tabindex",Bn.disabled?-1:Bn.tabIndex),i.xp6(2),i.um2(2,Bn._customIcon?-1:2))},dependencies:[t.RK],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color)}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color)}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0})}return ui})(),Fi=(()=>{class ui{static#e=this.\u0275fac=function(Jn){return new(Jn||ui)};static#t=this.\u0275mod=i.oAB({type:ui});static#n=this.\u0275inj=i.cJS({providers:[r,Qt],imports:[l.ez,t.ot,n.U8,e.rt,s.eL,c.BQ,Un,mo,rt,p.ZD]})}return ui})()},17700:(gt,X,a)=>{"use strict";a.d(X,{WI:()=>Pt,Bq:()=>Oe,RB:()=>ye,uw:()=>Rn,H8:()=>Ie,xY:()=>dt,Is:()=>tn,so:()=>r,uh:()=>Je});var e=a(69594),n=a(96814),s=a(19212),l=a(4300),i=a(62831),t=a(68484),p=a(36028),c=a(72079),o=a(24917),x=a(49193),u=a(49388),m=a(53075);function b(sn,bn){}class I{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let O=(()=>{class sn extends t.en{constructor(vt,nn,rn,ii,Oo,no,Li,ji){super(),this._elementRef=vt,this._focusTrapFactory=nn,this._config=ii,this._interactivityChecker=Oo,this._ngZone=no,this._overlayRef=Li,this._focusMonitor=ji,this._platform=(0,s.f3M)(i.t4),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=(0,s.f3M)(s.sBO),this.attachDomPortal=Ii=>{this._portalOutlet.hasAttached();const _i=this._portalOutlet.attachDomPortal(Ii);return this._contentAttached(),_i},this._document=rn,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(vt){this._ariaLabelledByQueue.push(vt),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(vt){const nn=this._ariaLabelledByQueue.indexOf(vt);nn>-1&&(this._ariaLabelledByQueue.splice(nn,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(vt){this._portalOutlet.hasAttached();const nn=this._portalOutlet.attachComponentPortal(vt);return this._contentAttached(),nn}attachTemplatePortal(vt){this._portalOutlet.hasAttached();const nn=this._portalOutlet.attachTemplatePortal(vt);return this._contentAttached(),nn}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(vt,nn){this._interactivityChecker.isFocusable(vt)||(vt.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const rn=()=>{vt.removeEventListener("blur",rn),vt.removeEventListener("mousedown",rn),vt.removeAttribute("tabindex")};vt.addEventListener("blur",rn),vt.addEventListener("mousedown",rn)})),vt.focus(nn)}_focusByCssSelector(vt,nn){let rn=this._elementRef.nativeElement.querySelector(vt);rn&&this._forceFocus(rn,nn)}_trapFocus(){const vt=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||vt.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElementWhenReady().then(nn=>{nn||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const vt=this._config.restoreFocus;let nn=null;if("string"==typeof vt?nn=this._document.querySelector(vt):"boolean"==typeof vt?nn=vt?this._elementFocusedBeforeDialogWasOpened:null:vt&&(nn=vt),this._config.restoreFocus&&nn&&"function"==typeof nn.focus){const rn=(0,i.ht)(),ii=this._elementRef.nativeElement;(!rn||rn===this._document.body||rn===ii||ii.contains(rn))&&(this._focusMonitor?(this._focusMonitor.focusVia(nn,this._closeInteractionType),this._closeInteractionType=null):nn.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const vt=this._elementRef.nativeElement,nn=(0,i.ht)();return vt===nn||vt.contains(nn)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,i.ht)()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#e=this.\u0275fac=function(nn){return new(nn||sn)(s.Y36(s.SBq),s.Y36(l.qV),s.Y36(n.K0,8),s.Y36(I),s.Y36(l.ic),s.Y36(s.R0b),s.Y36(e.Iu),s.Y36(l.tE))};static#t=this.\u0275cmp=s.Xpm({type:sn,selectors:[["cdk-dialog-container"]],viewQuery:function(nn,rn){if(1&nn&&s.Gf(t.Pl,7),2&nn){let ii;s.iGM(ii=s.CRH())&&(rn._portalOutlet=ii.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(nn,rn){2&nn&&s.uIk("id",rn._config.id||null)("role",rn._config.role)("aria-modal",rn._config.ariaModal)("aria-labelledby",rn._config.ariaLabel?null:rn._ariaLabelledByQueue[0])("aria-label",rn._config.ariaLabel)("aria-describedby",rn._config.ariaDescribedBy||null)},standalone:!0,features:[s.qOj,s.jDz],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(nn,rn){1&nn&&s.YNc(0,b,0,0,"ng-template",0)},dependencies:[t.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return sn})();class P{constructor(bn,vt){this.overlayRef=bn,this.config=vt,this.closed=new c.xQ,this.disableClose=vt.disableClose,this.backdropClick=bn.backdropClick(),this.keydownEvents=bn.keydownEvents(),this.outsidePointerEvents=bn.outsidePointerEvents(),this.id=vt.id,this.keydownEvents.subscribe(nn=>{nn.keyCode===p.hY&&!this.disableClose&&!(0,p.Vb)(nn)&&(nn.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=bn.detachments().subscribe(()=>{!1!==vt.closeOnOverlayDetachments&&this.close()})}close(bn,vt){if(this.containerInstance){const nn=this.closed;this.containerInstance._closeInteractionType=vt?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),nn.next(bn),nn.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(bn="",vt=""){return this.overlayRef.updateSize({width:bn,height:vt}),this}addPanelClass(bn){return this.overlayRef.addPanelClass(bn),this}removePanelClass(bn){return this.overlayRef.removePanelClass(bn),this}}const G=new s.OlP("DialogScrollStrategy",{providedIn:"root",factory:()=>{const sn=(0,s.f3M)(e.aV);return()=>sn.scrollStrategies.block()}}),B=new s.OlP("DialogData"),ae=new s.OlP("DefaultDialogConfig");let j=0,Y=(()=>{class sn{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(vt,nn,rn,ii,Oo,no){this._overlay=vt,this._injector=nn,this._defaultOptions=rn,this._parentDialog=ii,this._overlayContainer=Oo,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new c.xQ,this._afterOpenedAtThisLevel=new c.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,o.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,m.O)(void 0))),this._scrollStrategy=no}open(vt,nn){(nn={...this._defaultOptions||new I,...nn}).id=nn.id||"cdk-dialog-"+j++,nn.id&&this.getDialogById(nn.id);const ii=this._getOverlayConfig(nn),Oo=this._overlay.create(ii),no=new P(Oo,nn),Li=this._attachContainer(Oo,no,nn);return no.containerInstance=Li,this._attachDialogContent(vt,no,Li,nn),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(no),no.closed.subscribe(()=>this._removeOpenDialog(no,!0)),this.afterOpened.next(no),no}closeAll(){K(this.openDialogs,vt=>vt.close())}getDialogById(vt){return this.openDialogs.find(nn=>nn.id===vt)}ngOnDestroy(){K(this._openDialogsAtThisLevel,vt=>{!1===vt.config.closeOnDestroy&&this._removeOpenDialog(vt,!1)}),K(this._openDialogsAtThisLevel,vt=>vt.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(vt){const nn=new e.X_({positionStrategy:vt.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:vt.scrollStrategy||this._scrollStrategy(),panelClass:vt.panelClass,hasBackdrop:vt.hasBackdrop,direction:vt.direction,minWidth:vt.minWidth,minHeight:vt.minHeight,maxWidth:vt.maxWidth,maxHeight:vt.maxHeight,width:vt.width,height:vt.height,disposeOnNavigation:vt.closeOnNavigation});return vt.backdropClass&&(nn.backdropClass=vt.backdropClass),nn}_attachContainer(vt,nn,rn){const ii=rn.injector||rn.viewContainerRef?.injector,Oo=[{provide:I,useValue:rn},{provide:P,useValue:nn},{provide:e.Iu,useValue:vt}];let no;rn.container?"function"==typeof rn.container?no=rn.container:(no=rn.container.type,Oo.push(...rn.container.providers(rn))):no=O;const Li=new t.C5(no,rn.viewContainerRef,s.zs3.create({parent:ii||this._injector,providers:Oo}),rn.componentFactoryResolver);return vt.attach(Li).instance}_attachDialogContent(vt,nn,rn,ii){if(vt instanceof s.Rgc){const Oo=this._createInjector(ii,nn,rn,void 0);let no={$implicit:ii.data,dialogRef:nn};ii.templateContext&&(no={...no,..."function"==typeof ii.templateContext?ii.templateContext():ii.templateContext}),rn.attachTemplatePortal(new t.UE(vt,null,no,Oo))}else{const Oo=this._createInjector(ii,nn,rn,this._injector),no=rn.attachComponentPortal(new t.C5(vt,ii.viewContainerRef,Oo,ii.componentFactoryResolver));nn.componentRef=no,nn.componentInstance=no.instance}}_createInjector(vt,nn,rn,ii){const Oo=vt.injector||vt.viewContainerRef?.injector,no=[{provide:B,useValue:vt.data},{provide:P,useValue:nn}];return vt.providers&&("function"==typeof vt.providers?no.push(...vt.providers(nn,vt,rn)):no.push(...vt.providers)),vt.direction&&(!Oo||!Oo.get(u.Is,null,{optional:!0}))&&no.push({provide:u.Is,useValue:{value:vt.direction,change:(0,x.of)()}}),s.zs3.create({parent:Oo||ii,providers:no})}_removeOpenDialog(vt,nn){const rn=this.openDialogs.indexOf(vt);rn>-1&&(this.openDialogs.splice(rn,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((ii,Oo)=>{ii?Oo.setAttribute("aria-hidden",ii):Oo.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),nn&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const vt=this._overlayContainer.getContainerElement();if(vt.parentElement){const nn=vt.parentElement.children;for(let rn=nn.length-1;rn>-1;rn--){const ii=nn[rn];ii!==vt&&"SCRIPT"!==ii.nodeName&&"STYLE"!==ii.nodeName&&!ii.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(ii,ii.getAttribute("aria-hidden")),ii.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const vt=this._parentDialog;return vt?vt._getAfterAllClosed():this._afterAllClosedAtThisLevel}static#e=this.\u0275fac=function(nn){return new(nn||sn)(s.LFG(e.aV),s.LFG(s.zs3),s.LFG(ae,8),s.LFG(sn,12),s.LFG(e.Xj),s.LFG(G))};static#t=this.\u0275prov=s.Yz7({token:sn,factory:sn.\u0275fac,providedIn:"root"})}return sn})();function K(sn,bn){let vt=sn.length;for(;vt--;)bn(sn[vt])}let ne=(()=>{class sn{static#e=this.\u0275fac=function(nn){return new(nn||sn)};static#t=this.\u0275mod=s.oAB({type:sn});static#n=this.\u0275inj=s.cJS({providers:[Y],imports:[e.U8,t.eL,l.rt,t.eL]})}return sn})();var ee=a(42495),$=a(47354),ue=a(97734),ge=a(51418),Ke=a(23680);function Le(sn,bn){}a(86825);class R{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const Te="mdc-dialog--open",me="mdc-dialog--opening",Se="mdc-dialog--closing";let et=(()=>{class sn extends O{constructor(vt,nn,rn,ii,Oo,no,Li,ji,Ii){super(vt,nn,rn,ii,Oo,no,Li,Ii),this._animationMode=ji,this._animationStateChanged=new s.vpe,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?lt(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?lt(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Et,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(me,Te)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Te),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(Te),this._animationsEnabled?(this._hostElement.style.setProperty(Et,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Se)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(me,Se)}_waitForAnimationToComplete(vt,nn){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(nn,vt)}_requestAnimationFrame(vt){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(vt):vt()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(vt){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:vt})}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}attachComponentPortal(vt){const nn=super.attachComponentPortal(vt);return nn.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),nn}static#e=this.\u0275fac=function(nn){return new(nn||sn)(s.Y36(s.SBq),s.Y36(l.qV),s.Y36(n.K0,8),s.Y36(R),s.Y36(l.ic),s.Y36(s.R0b),s.Y36(e.Iu),s.Y36(s.QbO,8),s.Y36(l.tE))};static#t=this.\u0275cmp=s.Xpm({type:sn,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(nn,rn){2&nn&&(s.Ikx("id",rn._config.id),s.uIk("aria-modal",rn._config.ariaModal)("role",rn._config.role)("aria-labelledby",rn._config.ariaLabel?null:rn._ariaLabelledByQueue[0])("aria-label",rn._config.ariaLabel)("aria-describedby",rn._config.ariaDescribedBy||null),s.ekj("_mat-animation-noopable",!rn._animationsEnabled))},standalone:!0,features:[s.qOj,s.jDz],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(nn,rn){1&nn&&(s.TgZ(0,"div",0)(1,"div",1),s.YNc(2,Le,0,0,"ng-template",2),s.qZA()())},dependencies:[t.Pl],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0;transform:scale(0.8)}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--closing .mdc-dialog__surface{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{opacity:1}.mdc-dialog--open .mdc-dialog__surface{transform:none}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{width:100%;height:100%}.mat-mdc-dialog-component-host{display:contents}.mat-mdc-dialog-container{--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition:opacity linear var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container .mdc-dialog__surface{transition:transform var(--mat-dialog-transition-duration, 0ms) 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container,.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__surface{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2})}return sn})();const Et="--mat-dialog-transition-duration";function lt(sn){return null==sn?null:"number"==typeof sn?sn:sn.endsWith("ms")?(0,ee.su)(sn.substring(0,sn.length-2)):sn.endsWith("s")?1e3*(0,ee.su)(sn.substring(0,sn.length-1)):"0"===sn?0:null}var Vt=function(sn){return sn[sn.OPEN=0]="OPEN",sn[sn.CLOSING=1]="CLOSING",sn[sn.CLOSED=2]="CLOSED",sn}(Vt||{});class r{constructor(bn,vt,nn){this._ref=bn,this._containerInstance=nn,this._afterOpened=new c.xQ,this._beforeClosed=new c.xQ,this._state=Vt.OPEN,this.disableClose=vt.disableClose,this.id=bn.id,nn._animationStateChanged.pipe((0,ue.h)(rn=>"opened"===rn.state),(0,ge.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),nn._animationStateChanged.pipe((0,ue.h)(rn=>"closed"===rn.state),(0,ge.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),bn.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,$.T)(this.backdropClick(),this.keydownEvents().pipe((0,ue.h)(rn=>rn.keyCode===p.hY&&!this.disableClose&&!(0,p.Vb)(rn)))).subscribe(rn=>{this.disableClose||(rn.preventDefault(),function Z(sn,bn,vt){return sn._closeInteractionType=bn,sn.close(vt)}(this,"keydown"===rn.type?"keyboard":"mouse"))})}close(bn){this._result=bn,this._containerInstance._animationStateChanged.pipe((0,ue.h)(vt=>"closing"===vt.state),(0,ge.q)(1)).subscribe(vt=>{this._beforeClosed.next(bn),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),vt.totalTime+100)}),this._state=Vt.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(bn){let vt=this._ref.config.positionStrategy;return bn&&(bn.left||bn.right)?bn.left?vt.left(bn.left):vt.right(bn.right):vt.centerHorizontally(),bn&&(bn.top||bn.bottom)?bn.top?vt.top(bn.top):vt.bottom(bn.bottom):vt.centerVertically(),this._ref.updatePosition(),this}updateSize(bn="",vt=""){return this._ref.updateSize(bn,vt),this}addPanelClass(bn){return this._ref.addPanelClass(bn),this}removePanelClass(bn){return this._ref.removePanelClass(bn),this}getState(){return this._state}_finishDialogClose(){this._state=Vt.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const Pt=new s.OlP("MatMdcDialogData"),Oe=new s.OlP("mat-mdc-dialog-default-options"),ye=new s.OlP("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const sn=(0,s.f3M)(e.aV);return()=>sn.scrollStrategies.block()}});let Dt=0,Rn=(()=>{class sn{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const vt=this._parentDialog;return vt?vt._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(vt,nn,rn,ii,Oo,no,Li,ji){this._overlay=vt,this._defaultOptions=ii,this._scrollStrategy=Oo,this._parentDialog=no,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new c.xQ,this._afterOpenedAtThisLevel=new c.xQ,this.dialogConfigClass=R,this.afterAllClosed=(0,o.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,m.O)(void 0))),this._dialog=nn.get(Y),this._dialogRefConstructor=r,this._dialogContainerType=et,this._dialogDataToken=Pt}open(vt,nn){let rn;(nn={...this._defaultOptions||new R,...nn}).id=nn.id||"mat-mdc-dialog-"+Dt++,nn.scrollStrategy=nn.scrollStrategy||this._scrollStrategy();const ii=this._dialog.open(vt,{...nn,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:nn},{provide:I,useValue:nn}]},templateContext:()=>({dialogRef:rn}),providers:(Oo,no,Li)=>(rn=new this._dialogRefConstructor(Oo,nn,Li),rn.updatePosition(nn?.position),[{provide:this._dialogContainerType,useValue:Li},{provide:this._dialogDataToken,useValue:no.data},{provide:this._dialogRefConstructor,useValue:rn}])});return rn.componentRef=ii.componentRef,rn.componentInstance=ii.componentInstance,this.openDialogs.push(rn),this.afterOpened.next(rn),rn.afterClosed().subscribe(()=>{const Oo=this.openDialogs.indexOf(rn);Oo>-1&&(this.openDialogs.splice(Oo,1),this.openDialogs.length||this._getAfterAllClosed().next())}),rn}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(vt){return this.openDialogs.find(nn=>nn.id===vt)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(vt){let nn=vt.length;for(;nn--;)vt[nn].close()}static#e=this.\u0275fac=function(nn){return new(nn||sn)(s.LFG(e.aV),s.LFG(s.zs3),s.LFG(n.Ye,8),s.LFG(Oe,8),s.LFG(ye),s.LFG(sn,12),s.LFG(e.Xj),s.LFG(s.QbO,8))};static#t=this.\u0275prov=s.Yz7({token:sn,factory:sn.\u0275fac,providedIn:"root"})}return sn})(),ti=0,Je=(()=>{class sn{constructor(vt,nn,rn){this._dialogRef=vt,this._elementRef=nn,this._dialog=rn,this.id="mat-mdc-dialog-title-"+ti++}ngOnInit(){this._dialogRef||(this._dialogRef=function ot(sn,bn){let vt=sn.nativeElement.parentElement;for(;vt&&!vt.classList.contains("mat-mdc-dialog-container");)vt=vt.parentElement;return vt?bn.find(nn=>nn.id===vt.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)})}ngOnDestroy(){const vt=this._dialogRef?._containerInstance;vt&&Promise.resolve().then(()=>{vt._removeAriaLabelledBy?.(this.id)})}static#e=this.\u0275fac=function(nn){return new(nn||sn)(s.Y36(r,8),s.Y36(s.SBq),s.Y36(Rn))};static#t=this.\u0275dir=s.lG2({type:sn,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(nn,rn){2&nn&&s.Ikx("id",rn.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0})}return sn})(),dt=(()=>{class sn{static#e=this.\u0275fac=function(nn){return new(nn||sn)};static#t=this.\u0275dir=s.lG2({type:sn,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0})}return sn})(),Ie=(()=>{class sn{constructor(){this.align="start"}static#e=this.\u0275fac=function(nn){return new(nn||sn)};static#t=this.\u0275dir=s.lG2({type:sn,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(nn,rn){2&nn&&s.ekj("mat-mdc-dialog-actions-align-center","center"===rn.align)("mat-mdc-dialog-actions-align-end","end"===rn.align)},inputs:{align:"align"},standalone:!0})}return sn})();let tn=(()=>{class sn{static#e=this.\u0275fac=function(nn){return new(nn||sn)};static#t=this.\u0275mod=s.oAB({type:sn});static#n=this.\u0275inj=s.cJS({providers:[Rn],imports:[ne,e.U8,t.eL,Ke.BQ,Ke.BQ]})}return sn})()},26385:(gt,X,a)=>{"use strict";a.d(X,{t:()=>l});var e=a(19212),n=a(23680);let l=(()=>{class i{static#e=this.\u0275fac=function(c){return new(c||i)};static#t=this.\u0275mod=e.oAB({type:i});static#n=this.\u0275inj=e.cJS({imports:[n.BQ,n.BQ]})}return i})()},3305:(gt,X,a)=>{"use strict";a.d(X,{pp:()=>lt,To:()=>Vt,ib:()=>Se,u4:()=>et,yz:()=>We,yK:()=>Et});var e=a(19212),n=a(78337),s=a(72079),l=a(7902);let i=0;const t=new e.OlP("CdkAccordion");let p=(()=>{class r{constructor(){this._stateChanges=new s.xQ,this._openCloseAllActions=new s.xQ,this.id="cdk-accordion-"+i++,this.multi=!1}openAll(){this.multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(Pt){this._stateChanges.next(Pt)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}static#e=this.\u0275fac=function(Oe){return new(Oe||r)};static#t=this.\u0275dir=e.lG2({type:r,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[e.lbL.HasDecoratorInputTransform,"multi","multi",e.VuI]},exportAs:["cdkAccordion"],standalone:!0,features:[e._Bn([{provide:t,useExisting:r}]),e.Xq5,e.TTD]})}return r})(),c=0,o=(()=>{class r{get expanded(){return this._expanded}set expanded(Pt){this._expanded!==Pt&&(this._expanded=Pt,this.expandedChange.emit(Pt),Pt?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}constructor(Pt,Oe,ye){this.accordion=Pt,this._changeDetectorRef=Oe,this._expansionDispatcher=ye,this._openCloseAllSubscription=l.w.EMPTY,this.closed=new e.vpe,this.opened=new e.vpe,this.destroyed=new e.vpe,this.expandedChange=new e.vpe,this.id="cdk-accordion-child-"+c++,this._expanded=!1,this.disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=ye.listen((ve,ft)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===ft&&this.id!==ve&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(Pt=>{this.disabled||(this.expanded=Pt)})}static#e=this.\u0275fac=function(Oe){return new(Oe||r)(e.Y36(t,12),e.Y36(e.sBO),e.Y36(n.A8))};static#t=this.\u0275dir=e.lG2({type:r,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[e.lbL.HasDecoratorInputTransform,"expanded","expanded",e.VuI],disabled:[e.lbL.HasDecoratorInputTransform,"disabled","disabled",e.VuI]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],standalone:!0,features:[e._Bn([{provide:t,useValue:void 0}]),e.Xq5]})}return r})(),x=(()=>{class r{static#e=this.\u0275fac=function(Oe){return new(Oe||r)};static#t=this.\u0275mod=e.oAB({type:r});static#n=this.\u0275inj=e.cJS({})}return r})();var u=a(68484),m=a(23680),b=a(4300),I=a(32068),H=a(53075),O=a(97734),P=a(51418),G=a(36028),B=a(91226),ae=a(47354),J=a(86825),q=a(96814);const j=["body"];function Y(r,Z){}const K=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],ne=["mat-expansion-panel-header","*","mat-action-row"];function ee(r,Z){if(1&r&&e._UZ(0,"span",2),2&r){const Pt=e.oxw();e.Q6J("@indicatorRotate",Pt._getExpandedState())}}const $=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],ue=["mat-panel-title","mat-panel-description","*"],ge=new e.OlP("MAT_ACCORDION"),Ke="225ms cubic-bezier(0.4,0.0,0.2,1)",at={indicatorRotate:(0,J.X$)("indicatorRotate",[(0,J.SB)("collapsed, void",(0,J.oB)({transform:"rotate(0deg)"})),(0,J.SB)("expanded",(0,J.oB)({transform:"rotate(180deg)"})),(0,J.eR)("expanded <=> collapsed, void => collapsed",(0,J.jt)(Ke))]),bodyExpansion:(0,J.X$)("bodyExpansion",[(0,J.SB)("collapsed, void",(0,J.oB)({height:"0px",visibility:"hidden"})),(0,J.SB)("expanded",(0,J.oB)({height:"*",visibility:""})),(0,J.eR)("expanded <=> collapsed, void => collapsed",(0,J.jt)(Ke))])},Le=new e.OlP("MAT_EXPANSION_PANEL");let R=(()=>{class r{constructor(Pt,Oe){this._template=Pt,this._expansionPanel=Oe}static#e=this.\u0275fac=function(Oe){return new(Oe||r)(e.Y36(e.Rgc),e.Y36(Le,8))};static#t=this.\u0275dir=e.lG2({type:r,selectors:[["ng-template","matExpansionPanelContent",""]],standalone:!0})}return r})(),Te=0;const me=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Se=(()=>{class r extends o{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(Pt){this._hideToggle=Pt}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(Pt){this._togglePosition=Pt}constructor(Pt,Oe,ye,ve,ft,Dt,Rn){super(Pt,Oe,ye),this._viewContainerRef=ve,this._animationMode=Dt,this._hideToggle=!1,this.afterExpand=new e.vpe,this.afterCollapse=new e.vpe,this._inputChanges=new s.xQ,this._headerId="mat-expansion-panel-header-"+Te++,this._bodyAnimationDone=new s.xQ,this.accordion=Pt,this._document=ft,this._bodyAnimationDone.pipe((0,I.x)((ti,Xt)=>ti.fromState===Xt.fromState&&ti.toState===Xt.toState)).subscribe(ti=>{"void"!==ti.fromState&&("expanded"===ti.toState?this.afterExpand.emit():"collapsed"===ti.toState&&this.afterCollapse.emit())}),Rn&&(this.hideToggle=Rn.hideToggle)}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,H.O)(null),(0,O.h)(()=>this.expanded&&!this._portal),(0,P.q)(1)).subscribe(()=>{this._portal=new u.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(Pt){this._inputChanges.next(Pt)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const Pt=this._document.activeElement,Oe=this._body.nativeElement;return Pt===Oe||Oe.contains(Pt)}return!1}static#e=this.\u0275fac=function(Oe){return new(Oe||r)(e.Y36(ge,12),e.Y36(e.sBO),e.Y36(n.A8),e.Y36(e.s_b),e.Y36(q.K0),e.Y36(e.QbO,8),e.Y36(me,8))};static#t=this.\u0275cmp=e.Xpm({type:r,selectors:[["mat-expansion-panel"]],contentQueries:function(Oe,ye,ve){if(1&Oe&&e.Suo(ve,R,5),2&Oe){let ft;e.iGM(ft=e.CRH())&&(ye._lazyContent=ft.first)}},viewQuery:function(Oe,ye){if(1&Oe&&e.Gf(j,5),2&Oe){let ve;e.iGM(ve=e.CRH())&&(ye._body=ve.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(Oe,ye){2&Oe&&e.ekj("mat-expanded",ye.expanded)("_mat-animation-noopable","NoopAnimations"===ye._animationMode)("mat-expansion-panel-spacing",ye._hasSpacing())},inputs:{hideToggle:[e.lbL.HasDecoratorInputTransform,"hideToggle","hideToggle",e.VuI],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],standalone:!0,features:[e._Bn([{provide:ge,useValue:void 0},{provide:Le,useExisting:r}]),e.Xq5,e.qOj,e.TTD,e.jDz],ngContentSelectors:ne,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(Oe,ye){1&Oe&&(e.F$t(K),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(ft){return ye._bodyAnimationDone.next(ft)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,Y,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&Oe&&(e.xp6(),e.Q6J("@bodyExpansion",ye._getExpandedState())("id",ye.id),e.uIk("aria-labelledby",ye._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",ye._portal))},dependencies:[u.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color)}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[at.bodyExpansion]},changeDetection:0})}return r})(),We=(()=>{class r{constructor(Pt,Oe,ye,ve,ft,Dt,Rn){this.panel=Pt,this._element=Oe,this._focusMonitor=ye,this._changeDetectorRef=ve,this._animationMode=Dt,this._parentChangeSubscription=l.w.EMPTY,this.tabIndex=0;const ti=Pt.accordion?Pt.accordion._stateChanges.pipe((0,O.h)(Xt=>!(!Xt.hideToggle&&!Xt.togglePosition))):B.E;this.tabIndex=parseInt(Rn||"")||0,this._parentChangeSubscription=(0,ae.T)(Pt.opened,Pt.closed,ti,Pt._inputChanges.pipe((0,O.h)(Xt=>!!(Xt.hideToggle||Xt.disabled||Xt.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),Pt.closed.pipe((0,O.h)(()=>Pt._containsFocus())).subscribe(()=>ye.focusVia(Oe,"program")),ft&&(this.expandedHeight=ft.expandedHeight,this.collapsedHeight=ft.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const Pt=this._isExpanded();return Pt&&this.expandedHeight?this.expandedHeight:!Pt&&this.collapsedHeight?this.collapsedHeight:null}_keydown(Pt){switch(Pt.keyCode){case G.L_:case G.K5:(0,G.Vb)(Pt)||(Pt.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(Pt))}}focus(Pt,Oe){Pt?this._focusMonitor.focusVia(this._element,Pt,Oe):this._element.nativeElement.focus(Oe)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(Pt=>{Pt&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}static#e=this.\u0275fac=function(Oe){return new(Oe||r)(e.Y36(Se,1),e.Y36(e.SBq),e.Y36(b.tE),e.Y36(e.sBO),e.Y36(me,8),e.Y36(e.QbO,8),e.$8M("tabindex"))};static#t=this.\u0275cmp=e.Xpm({type:r,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(Oe,ye){1&Oe&&e.NdJ("click",function(){return ye._toggle()})("keydown",function(ft){return ye._keydown(ft)}),2&Oe&&(e.uIk("id",ye.panel._headerId)("tabindex",ye.disabled?-1:ye.tabIndex)("aria-controls",ye._getPanelId())("aria-expanded",ye._isExpanded())("aria-disabled",ye.panel.disabled),e.Udp("height",ye._getHeaderHeight()),e.ekj("mat-expanded",ye._isExpanded())("mat-expansion-toggle-indicator-after","after"===ye._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===ye._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===ye._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[e.lbL.HasDecoratorInputTransform,"tabIndex","tabIndex",Pt=>null==Pt?0:(0,e.Cb_)(Pt)]},standalone:!0,features:[e.Xq5,e.jDz],ngContentSelectors:ue,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator"],[1,"mat-expansion-indicator"]],template:function(Oe,ye){1&Oe&&(e.F$t($),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,ee,1,1,"span",1)),2&Oe&&(e.ekj("mat-content-hide-toggle",!ye._showToggle()),e.xp6(4),e.um2(4,ye._showToggle()?4:-1))},styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color)}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[at.indicatorRotate]},changeDetection:0})}return r})(),et=(()=>{class r{static#e=this.\u0275fac=function(Oe){return new(Oe||r)};static#t=this.\u0275dir=e.lG2({type:r,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"],standalone:!0})}return r})(),Et=(()=>{class r{static#e=this.\u0275fac=function(Oe){return new(Oe||r)};static#t=this.\u0275dir=e.lG2({type:r,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"],standalone:!0})}return r})(),lt=(()=>{class r extends p{constructor(){super(...arguments),this._ownHeaders=new e.n_E,this.hideToggle=!1,this.displayMode="default",this.togglePosition="after"}ngAfterContentInit(){this._headers.changes.pipe((0,H.O)(this._headers)).subscribe(Pt=>{this._ownHeaders.reset(Pt.filter(Oe=>Oe.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new b.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(Pt){this._keyManager.onKeydown(Pt)}_handleHeaderFocus(Pt){this._keyManager.updateActiveItem(Pt)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}static#e=this.\u0275fac=(()=>{let Pt;return function(ye){return(Pt||(Pt=e.n5z(r)))(ye||r)}})();static#t=this.\u0275dir=e.lG2({type:r,selectors:[["mat-accordion"]],contentQueries:function(Oe,ye,ve){if(1&Oe&&e.Suo(ve,We,5),2&Oe){let ft;e.iGM(ft=e.CRH())&&(ye._headers=ft)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(Oe,ye){2&Oe&&e.ekj("mat-accordion-multi",ye.multi)},inputs:{hideToggle:[e.lbL.HasDecoratorInputTransform,"hideToggle","hideToggle",e.VuI],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],standalone:!0,features:[e._Bn([{provide:ge,useExisting:r}]),e.Xq5,e.qOj]})}return r})(),Vt=(()=>{class r{static#e=this.\u0275fac=function(Oe){return new(Oe||r)};static#t=this.\u0275mod=e.oAB({type:r});static#n=this.\u0275inj=e.cJS({imports:[m.BQ,x,u.eL]})}return r})()},64170:(gt,X,a)=>{"use strict";a.d(X,{G_:()=>nn,TO:()=>Oe,KE:()=>Ii,Eo:()=>ni,lN:()=>_i,bx:()=>ve,hX:()=>r});var e=a(19212),n=a(49388),s=a(62831),l=a(7902),i=a(72079),t=a(47354),p=a(19352),c=a(54699),o=a(97734),x=a(49185);class m{constructor(co){this._box=co,this._destroyed=new i.xQ,this._resizeSubject=new i.xQ,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(yn=>this._resizeSubject.next(yn)))}observe(co){return this._elementObservables.has(co)||this._elementObservables.set(co,new c.y(yn=>{const ln=this._resizeSubject.subscribe(yn);return this._resizeObserver?.observe(co,{box:this._box}),()=>{this._resizeObserver?.unobserve(co),ln.unsubscribe(),this._elementObservables.delete(co)}}).pipe((0,o.h)(yn=>yn.some(ln=>ln.target===co)),(0,x.d)({bufferSize:1,refCount:!0}),(0,p.R)(this._destroyed))),this._elementObservables.get(co)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let b=(()=>{class En{constructor(){this._observers=new Map,this._ngZone=(0,e.f3M)(e.R0b)}ngOnDestroy(){for(const[,yn]of this._observers)yn.destroy();this._observers.clear()}observe(yn,ln){const He=ln?.box||"content-box";return this._observers.has(He)||this._observers.set(He,new m(He)),this._observers.get(He).observe(yn)}static#e=this.\u0275fac=function(ln){return new(ln||En)};static#t=this.\u0275prov=e.Yz7({token:En,factory:En.\u0275fac,providedIn:"root"})}return En})();var I=a(42495),H=a(86825),O=a(96814),P=a(17131),G=a(23680);const B=["notch"],ae=["matFormFieldNotchedOutline",""],J=["*"],q=["textField"],j=["iconPrefixContainer"],Y=["textPrefixContainer"];function K(En,co){1&En&&e._UZ(0,"span",16)}function ne(En,co){if(1&En&&(e.TgZ(0,"label",14),e.Hsn(1,1),e.YNc(2,K,1,0,"span",15),e.qZA()),2&En){const yn=e.oxw(2);e.Q6J("floating",yn._shouldLabelFloat())("monitorResize",yn._hasOutline())("id",yn._labelId),e.uIk("for",yn._control.id),e.xp6(2),e.um2(2,!yn.hideRequiredMarker&&yn._control.required?2:-1)}}function ee(En,co){if(1&En&&e.YNc(0,ne,3,5,"label",14),2&En){const yn=e.oxw();e.um2(0,yn._hasFloatingLabel()?0:-1)}}function $(En,co){1&En&&e._UZ(0,"div",17)}function ue(En,co){}function ge(En,co){if(1&En&&e.YNc(0,ue,0,0,"ng-template",9),2&En){e.oxw(2);const yn=e.MAs(1);e.Q6J("ngTemplateOutlet",yn)}}function Ke(En,co){if(1&En&&(e.TgZ(0,"div",5),e.YNc(1,ge,1,1,null,9),e.qZA()),2&En){const yn=e.oxw();e.Q6J("matFormFieldNotchedOutlineOpen",yn._shouldLabelFloat()),e.xp6(),e.um2(1,yn._forceDisplayInfixLabel()?-1:1)}}function at(En,co){1&En&&(e.TgZ(0,"div",18,19),e.Hsn(2,2),e.qZA())}function Le(En,co){1&En&&(e.TgZ(0,"div",20,21),e.Hsn(2,3),e.qZA())}function R(En,co){}function Te(En,co){if(1&En&&e.YNc(0,R,0,0,"ng-template",9),2&En){e.oxw();const yn=e.MAs(1);e.Q6J("ngTemplateOutlet",yn)}}function me(En,co){1&En&&(e.TgZ(0,"div",22),e.Hsn(1,4),e.qZA())}function Se(En,co){1&En&&(e.TgZ(0,"div",23),e.Hsn(1,5),e.qZA())}function Ue(En,co){1&En&&e._UZ(0,"div",12)}function We(En,co){if(1&En&&(e.TgZ(0,"div",24),e.Hsn(1,6),e.qZA()),2&En){const yn=e.oxw();e.Q6J("@transitionMessages",yn._subscriptAnimationState)}}function et(En,co){if(1&En&&(e.TgZ(0,"mat-hint",26),e._uU(1),e.qZA()),2&En){const yn=e.oxw(2);e.Q6J("id",yn._hintLabelId),e.xp6(),e.Oqu(yn.hintLabel)}}function Et(En,co){if(1&En&&(e.TgZ(0,"div",25),e.YNc(1,et,2,2,"mat-hint",26),e.Hsn(2,7),e._UZ(3,"div",27),e.Hsn(4,8),e.qZA()),2&En){const yn=e.oxw();e.Q6J("@transitionMessages",yn._subscriptAnimationState),e.xp6(),e.um2(1,yn.hintLabel?1:-1)}}const lt=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Vt=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let r=(()=>{class En{static#e=this.\u0275fac=function(ln){return new(ln||En)};static#t=this.\u0275dir=e.lG2({type:En,selectors:[["mat-label"]],standalone:!0})}return En})(),Z=0;const Pt=new e.OlP("MatError");let Oe=(()=>{class En{constructor(yn,ln){this.id="mat-mdc-error-"+Z++,yn||ln.nativeElement.setAttribute("aria-live","polite")}static#e=this.\u0275fac=function(ln){return new(ln||En)(e.$8M("aria-live"),e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:En,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(ln,He){2&ln&&e.Ikx("id",He.id)},inputs:{id:"id"},standalone:!0,features:[e._Bn([{provide:Pt,useExisting:En}])]})}return En})(),ye=0,ve=(()=>{class En{constructor(){this.align="start",this.id="mat-mdc-hint-"+ye++}static#e=this.\u0275fac=function(ln){return new(ln||En)};static#t=this.\u0275dir=e.lG2({type:En,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(ln,He){2&ln&&(e.Ikx("id",He.id),e.uIk("align",null),e.ekj("mat-mdc-form-field-hint-end","end"===He.align))},inputs:{align:"align",id:"id"},standalone:!0})}return En})();const ft=new e.OlP("MatPrefix"),Rn=new e.OlP("MatSuffix"),Xt=new e.OlP("FloatingLabelParent");let Je=(()=>{class En{get floating(){return this._floating}set floating(yn){this._floating=yn,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(yn){this._monitorResize=yn,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(yn){this._elementRef=yn,this._floating=!1,this._monitorResize=!1,this._resizeObserver=(0,e.f3M)(b),this._ngZone=(0,e.f3M)(e.R0b),this._parent=(0,e.f3M)(Xt),this._resizeSubscription=new l.w}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function dt(En){if(null!==En.offsetParent)return En.scrollWidth;const yn=En.cloneNode(!0);yn.style.setProperty("position","absolute"),yn.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(yn);const ln=yn.scrollWidth;return yn.remove(),ln}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static#e=this.\u0275fac=function(ln){return new(ln||En)(e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:En,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(ln,He){2&ln&&e.ekj("mdc-floating-label--float-above",He.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0})}return En})();const Ie="mdc-line-ripple--active",ot="mdc-line-ripple--deactivating";let ct=(()=>{class En{constructor(yn,ln){this._elementRef=yn,this._handleTransitionEnd=He=>{const rt=this._elementRef.nativeElement.classList,$e=rt.contains(ot);"opacity"===He.propertyName&&$e&&rt.remove(Ie,ot)},ln.runOutsideAngular(()=>{yn.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const yn=this._elementRef.nativeElement.classList;yn.remove(ot),yn.add(Ie)}deactivate(){this._elementRef.nativeElement.classList.add(ot)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static#e=this.\u0275fac=function(ln){return new(ln||En)(e.Y36(e.SBq),e.Y36(e.R0b))};static#t=this.\u0275dir=e.lG2({type:En,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0})}return En})(),tn=(()=>{class En{constructor(yn,ln){this._elementRef=yn,this._ngZone=ln,this.open=!1}ngAfterViewInit(){const yn=this._elementRef.nativeElement.querySelector(".mdc-floating-label");yn?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(yn.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>yn.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(yn){this._notch.nativeElement.style.width=this.open&&yn?`calc(${yn}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static#e=this.\u0275fac=function(ln){return new(ln||En)(e.Y36(e.SBq),e.Y36(e.R0b))};static#t=this.\u0275cmp=e.Xpm({type:En,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(ln,He){if(1&ln&&e.Gf(B,5),2&ln){let rt;e.iGM(rt=e.CRH())&&(He._notch=rt.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(ln,He){2&ln&&e.ekj("mdc-notched-outline--notched",He.open)},inputs:{open:[e.lbL.None,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[e.jDz],attrs:ae,ngContentSelectors:J,decls:5,vars:0,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],["notch",""],[1,"mdc-notched-outline__trailing"]],template:function(ln,He){1&ln&&(e.F$t(),e._UZ(0,"div",0),e.TgZ(1,"div",1,2),e.Hsn(3),e.qZA(),e._UZ(4,"div",3))},encapsulation:2,changeDetection:0})}return En})();const yi={transitionMessages:(0,H.X$)("transitionMessages",[(0,H.SB)("enter",(0,H.oB)({opacity:1,transform:"translateY(0%)"})),(0,H.eR)("void => enter",[(0,H.oB)({opacity:0,transform:"translateY(-5px)"}),(0,H.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ni=(()=>{class En{static#e=this.\u0275fac=function(ln){return new(ln||En)};static#t=this.\u0275dir=e.lG2({type:En})}return En})();const nn=new e.OlP("MatFormField"),rn=new e.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS");let ii=0,Ii=(()=>{class En{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(yn){this._hideRequiredMarker=(0,I.Ig)(yn)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(yn){yn!==this._floatLabel&&(this._floatLabel=yn,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(yn){const ln=this._appearance;this._appearance=yn||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==ln&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(yn){this._subscriptSizing=yn||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(yn){this._hintLabel=yn,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(yn){this._explicitFormFieldControl=yn}constructor(yn,ln,He,rt,$e,Ve,Ce,tt){this._elementRef=yn,this._changeDetectorRef=ln,this._ngZone=He,this._dir=rt,this._platform=$e,this._defaults=Ve,this._animationMode=Ce,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+ii++,this._hintLabelId="mat-mdc-hint-"+ii++,this._subscriptAnimationState="",this._destroyed=new i.xQ,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,Ve&&(Ve.appearance&&(this.appearance=Ve.appearance),this._hideRequiredMarker=!!Ve?.hideRequiredMarker,Ve.color&&(this.color=Ve.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const yn=this._control;yn.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${yn.controlType}`),yn.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),yn.ngControl&&yn.ngControl.valueChanges&&yn.ngControl.valueChanges.pipe((0,p.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(yn=>!yn._isText),this._hasTextPrefix=!!this._prefixChildren.find(yn=>yn._isText),this._hasIconSuffix=!!this._suffixChildren.find(yn=>!yn._isText),this._hasTextSuffix=!!this._suffixChildren.find(yn=>yn._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,t.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,p.R)(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe((0,p.R)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(yn){const ln=this._control?this._control.ngControl:null;return ln&&ln[yn]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let yn=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&yn.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const ln=this._hintChildren?this._hintChildren.find(rt=>"start"===rt.align):null,He=this._hintChildren?this._hintChildren.find(rt=>"end"===rt.align):null;ln?yn.push(ln.id):this._hintLabel&&yn.push(this._hintLabelId),He&&yn.push(He.id)}else this._errorChildren&&yn.push(...this._errorChildren.map(ln=>ln.id));this._control.setDescribedByIds(yn)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const yn=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(yn.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const ln=this._iconPrefixContainer?.nativeElement,He=this._textPrefixContainer?.nativeElement,rt=ln?.getBoundingClientRect().width??0,$e=He?.getBoundingClientRect().width??0;yn.style.transform=`var(\n        --mat-mdc-form-field-label-transform,\n        translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${rt+$e}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n    )`}_isAttachedToDom(){const yn=this._elementRef.nativeElement;if(yn.getRootNode){const ln=yn.getRootNode();return ln&&ln!==yn}return document.documentElement.contains(yn)}static#e=this.\u0275fac=function(ln){return new(ln||En)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(n.Is),e.Y36(s.t4),e.Y36(rn,8),e.Y36(e.QbO,8),e.Y36(O.K0))};static#t=this.\u0275cmp=e.Xpm({type:En,selectors:[["mat-form-field"]],contentQueries:function(ln,He,rt){if(1&ln&&(e.Suo(rt,r,5),e.Suo(rt,r,7),e.Suo(rt,ni,5),e.Suo(rt,ft,5),e.Suo(rt,Rn,5),e.Suo(rt,Pt,5),e.Suo(rt,ve,5)),2&ln){let $e;e.iGM($e=e.CRH())&&(He._labelChildNonStatic=$e.first),e.iGM($e=e.CRH())&&(He._labelChildStatic=$e.first),e.iGM($e=e.CRH())&&(He._formFieldControl=$e.first),e.iGM($e=e.CRH())&&(He._prefixChildren=$e),e.iGM($e=e.CRH())&&(He._suffixChildren=$e),e.iGM($e=e.CRH())&&(He._errorChildren=$e),e.iGM($e=e.CRH())&&(He._hintChildren=$e)}},viewQuery:function(ln,He){if(1&ln&&(e.Gf(q,5),e.Gf(j,5),e.Gf(Y,5),e.Gf(Je,5),e.Gf(tn,5),e.Gf(ct,5)),2&ln){let rt;e.iGM(rt=e.CRH())&&(He._textField=rt.first),e.iGM(rt=e.CRH())&&(He._iconPrefixContainer=rt.first),e.iGM(rt=e.CRH())&&(He._textPrefixContainer=rt.first),e.iGM(rt=e.CRH())&&(He._floatingLabel=rt.first),e.iGM(rt=e.CRH())&&(He._notchedOutline=rt.first),e.iGM(rt=e.CRH())&&(He._lineRipple=rt.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(ln,He){2&ln&&e.ekj("mat-mdc-form-field-label-always-float",He._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",He._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",He._hasIconSuffix)("mat-form-field-invalid",He._control.errorState)("mat-form-field-disabled",He._control.disabled)("mat-form-field-autofilled",He._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===He._animationMode)("mat-form-field-appearance-fill","fill"==He.appearance)("mat-form-field-appearance-outline","outline"==He.appearance)("mat-form-field-hide-placeholder",He._hasFloatingLabel()&&!He._shouldLabelFloat())("mat-focused",He._control.focused)("mat-primary","accent"!==He.color&&"warn"!==He.color)("mat-accent","accent"===He.color)("mat-warn","warn"===He.color)("ng-untouched",He._shouldForward("untouched"))("ng-touched",He._shouldForward("touched"))("ng-pristine",He._shouldForward("pristine"))("ng-dirty",He._shouldForward("dirty"))("ng-valid",He._shouldForward("valid"))("ng-invalid",He._shouldForward("invalid"))("ng-pending",He._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[e._Bn([{provide:nn,useExisting:En},{provide:Xt,useExisting:En}]),e.jDz],ngContentSelectors:Vt,decls:18,vars:21,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],["class","mat-mdc-form-field-icon-prefix"],["class","mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],["class","mat-mdc-form-field-text-suffix"],["class","mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(ln,He){if(1&ln&&(e.F$t(lt),e.YNc(0,ee,1,1,"ng-template",null,0,e.W1O),e.TgZ(2,"div",1,2),e.NdJ("click",function($e){return He._control.onContainerClick($e)}),e.YNc(4,$,1,0,"div",3),e.TgZ(5,"div",4),e.YNc(6,Ke,2,2,"div",5)(7,at,3,0,"div",6)(8,Le,3,0,"div",7),e.TgZ(9,"div",8),e.YNc(10,Te,1,1,null,9),e.Hsn(11),e.qZA(),e.YNc(12,me,2,0,"div",10)(13,Se,2,0,"div",11),e.qZA(),e.YNc(14,Ue,1,0,"div",12),e.qZA(),e.TgZ(15,"div",13),e.YNc(16,We,2,1)(17,Et,5,2),e.qZA()),2&ln){let rt;e.xp6(2),e.ekj("mdc-text-field--filled",!He._hasOutline())("mdc-text-field--outlined",He._hasOutline())("mdc-text-field--no-label",!He._hasFloatingLabel())("mdc-text-field--disabled",He._control.disabled)("mdc-text-field--invalid",He._control.errorState),e.xp6(2),e.um2(4,He._hasOutline()||He._control.disabled?-1:4),e.xp6(2),e.um2(6,He._hasOutline()?6:-1),e.xp6(),e.um2(7,He._hasIconPrefix?7:-1),e.xp6(),e.um2(8,He._hasTextPrefix?8:-1),e.xp6(2),e.um2(10,!He._hasOutline()||He._forceDisplayInfixLabel()?10:-1),e.xp6(2),e.um2(12,He._hasTextSuffix?12:-1),e.xp6(),e.um2(13,He._hasIconSuffix?13:-1),e.xp6(),e.um2(14,He._hasOutline()?-1:14),e.xp6(),e.ekj("mat-mdc-form-field-subscript-dynamic-size","dynamic"===He.subscriptSizing),e.xp6(),e.um2(16,"error"===(rt=He._getDisplayedMessages())?16:"hint"===rt?17:-1)}},dependencies:[Je,tn,O.tP,ct,ve],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 96px/0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px*2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-hover-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-hover-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-hover-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-hover-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(.75*var(--mdc-outlined-text-field-label-text-size))}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mdc-outlined-text-field-label-text-size)}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color)}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font);line-height:var(--mat-form-field-subscript-text-line-height);font-size:var(--mat-form-field-subscript-text-size);letter-spacing:var(--mat-form-field-subscript-text-tracking);font-weight:var(--mat-form-field-subscript-text-weight)}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color)}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity)}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color)}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color)}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color)}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color)}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[yi.transitionMessages]},changeDetection:0})}return En})(),_i=(()=>{class En{static#e=this.\u0275fac=function(ln){return new(ln||En)};static#t=this.\u0275mod=e.oAB({type:En});static#n=this.\u0275inj=e.cJS({imports:[G.BQ,O.ez,P.Q8,G.BQ]})}return En})()},73176:(gt,X,a)=>{"use strict";a.d(X,{N6:()=>Y});var e=a(19212),n=a(23680);let Y=(()=>{class ne{static#e=this.\u0275fac=function(ue){return new(ue||ne)};static#t=this.\u0275mod=e.oAB({type:ne});static#n=this.\u0275inj=e.cJS({imports:[n.uc,n.BQ,n.uc,n.BQ]})}return ne})()},30617:(gt,X,a)=>{"use strict";a.d(X,{Hw:()=>Se,Ps:()=>Ue});var e=a(19212),n=a(23680),s=a(96814),l=a(49193),i=a(16222),t=a(77504),p=a(7902),c=a(17927),o=a(96124),x=a(62413),u=a(11541),m=a(86657),b=a(51418),I=a(69862),H=a(6593);const O=["*"];let P;function B(We){return function G(){if(void 0===P&&(P=null,typeof window<"u")){const We=window;void 0!==We.trustedTypes&&(P=We.trustedTypes.createPolicy("angular#components",{createHTML:et=>et}))}return P}()?.createHTML(We)||We}function ae(We){return Error(`Unable to find icon with the name "${We}"`)}function q(We){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${We}".`)}function j(We){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${We}".`)}class Y{constructor(et,Et,lt){this.url=et,this.svgText=Et,this.options=lt}}let K=(()=>{class We{constructor(Et,lt,Vt,r){this._httpClient=Et,this._sanitizer=lt,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=Vt}addSvgIcon(Et,lt,Vt){return this.addSvgIconInNamespace("",Et,lt,Vt)}addSvgIconLiteral(Et,lt,Vt){return this.addSvgIconLiteralInNamespace("",Et,lt,Vt)}addSvgIconInNamespace(Et,lt,Vt,r){return this._addSvgIconConfig(Et,lt,new Y(Vt,null,r))}addSvgIconResolver(Et){return this._resolvers.push(Et),this}addSvgIconLiteralInNamespace(Et,lt,Vt,r){const Z=this._sanitizer.sanitize(e.q3G.HTML,Vt);if(!Z)throw j(Vt);const Pt=B(Z);return this._addSvgIconConfig(Et,lt,new Y("",Pt,r))}addSvgIconSet(Et,lt){return this.addSvgIconSetInNamespace("",Et,lt)}addSvgIconSetLiteral(Et,lt){return this.addSvgIconSetLiteralInNamespace("",Et,lt)}addSvgIconSetInNamespace(Et,lt,Vt){return this._addSvgIconSetConfig(Et,new Y(lt,null,Vt))}addSvgIconSetLiteralInNamespace(Et,lt,Vt){const r=this._sanitizer.sanitize(e.q3G.HTML,lt);if(!r)throw j(lt);const Z=B(r);return this._addSvgIconSetConfig(Et,new Y("",Z,Vt))}registerFontClassAlias(Et,lt=Et){return this._fontCssClassesByAlias.set(Et,lt),this}classNameForFontAlias(Et){return this._fontCssClassesByAlias.get(Et)||Et}setDefaultFontSetClass(...Et){return this._defaultFontSetClass=Et,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Et){const lt=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,Et);if(!lt)throw q(Et);const Vt=this._cachedIconsByUrl.get(lt);return Vt?(0,l.of)($(Vt)):this._loadSvgIconFromConfig(new Y(Et,null)).pipe((0,c.b)(r=>this._cachedIconsByUrl.set(lt,r)),(0,o.U)(r=>$(r)))}getNamedSvgIcon(Et,lt=""){const Vt=ue(lt,Et);let r=this._svgIconConfigs.get(Vt);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(lt,Et),r)return this._svgIconConfigs.set(Vt,r),this._getSvgFromConfig(r);const Z=this._iconSetConfigs.get(lt);return Z?this._getSvgFromIconSetConfigs(Et,Z):(0,i._)(ae(Vt))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Et){return Et.svgText?(0,l.of)($(this._svgElementFromConfig(Et))):this._loadSvgIconFromConfig(Et).pipe((0,o.U)(lt=>$(lt)))}_getSvgFromIconSetConfigs(Et,lt){const Vt=this._extractIconWithNameFromAnySet(Et,lt);if(Vt)return(0,l.of)(Vt);const r=lt.filter(Z=>!Z.svgText).map(Z=>this._loadSvgIconSetFromConfig(Z).pipe((0,x.K)(Pt=>{const ye=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,Z.url)} failed: ${Pt.message}`;return this._errorHandler.handleError(new Error(ye)),(0,l.of)(null)})));return(0,t.D)(r).pipe((0,o.U)(()=>{const Z=this._extractIconWithNameFromAnySet(Et,lt);if(!Z)throw ae(Et);return Z}))}_extractIconWithNameFromAnySet(Et,lt){for(let Vt=lt.length-1;Vt>=0;Vt--){const r=lt[Vt];if(r.svgText&&r.svgText.toString().indexOf(Et)>-1){const Z=this._svgElementFromConfig(r),Pt=this._extractSvgIconFromSet(Z,Et,r.options);if(Pt)return Pt}}return null}_loadSvgIconFromConfig(Et){return this._fetchIcon(Et).pipe((0,c.b)(lt=>Et.svgText=lt),(0,o.U)(()=>this._svgElementFromConfig(Et)))}_loadSvgIconSetFromConfig(Et){return Et.svgText?(0,l.of)(null):this._fetchIcon(Et).pipe((0,c.b)(lt=>Et.svgText=lt))}_extractSvgIconFromSet(Et,lt,Vt){const r=Et.querySelector(`[id="${lt}"]`);if(!r)return null;const Z=r.cloneNode(!0);if(Z.removeAttribute("id"),"svg"===Z.nodeName.toLowerCase())return this._setSvgAttributes(Z,Vt);if("symbol"===Z.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Z),Vt);const Pt=this._svgElementFromString(B("<svg></svg>"));return Pt.appendChild(Z),this._setSvgAttributes(Pt,Vt)}_svgElementFromString(Et){const lt=this._document.createElement("DIV");lt.innerHTML=Et;const Vt=lt.querySelector("svg");if(!Vt)throw Error("<svg> tag not found");return Vt}_toSvgElement(Et){const lt=this._svgElementFromString(B("<svg></svg>")),Vt=Et.attributes;for(let r=0;r<Vt.length;r++){const{name:Z,value:Pt}=Vt[r];"id"!==Z&&lt.setAttribute(Z,Pt)}for(let r=0;r<Et.childNodes.length;r++)Et.childNodes[r].nodeType===this._document.ELEMENT_NODE&&lt.appendChild(Et.childNodes[r].cloneNode(!0));return lt}_setSvgAttributes(Et,lt){return Et.setAttribute("fit",""),Et.setAttribute("height","100%"),Et.setAttribute("width","100%"),Et.setAttribute("preserveAspectRatio","xMidYMid meet"),Et.setAttribute("focusable","false"),lt&&lt.viewBox&&Et.setAttribute("viewBox",lt.viewBox),Et}_fetchIcon(Et){const{url:lt,options:Vt}=Et,r=Vt?.withCredentials??!1;if(!this._httpClient)throw function J(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==lt)throw Error(`Cannot fetch icon from URL "${lt}".`);const Z=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,lt);if(!Z)throw q(lt);const Pt=this._inProgressUrlFetches.get(Z);if(Pt)return Pt;const Oe=this._httpClient.get(Z,{responseType:"text",withCredentials:r}).pipe((0,o.U)(ye=>B(ye)),(0,u.x)(()=>this._inProgressUrlFetches.delete(Z)),(0,m.B)());return this._inProgressUrlFetches.set(Z,Oe),Oe}_addSvgIconConfig(Et,lt,Vt){return this._svgIconConfigs.set(ue(Et,lt),Vt),this}_addSvgIconSetConfig(Et,lt){const Vt=this._iconSetConfigs.get(Et);return Vt?Vt.push(lt):this._iconSetConfigs.set(Et,[lt]),this}_svgElementFromConfig(Et){if(!Et.svgElement){const lt=this._svgElementFromString(Et.svgText);this._setSvgAttributes(lt,Et.options),Et.svgElement=lt}return Et.svgElement}_getIconConfigFromResolvers(Et,lt){for(let Vt=0;Vt<this._resolvers.length;Vt++){const r=this._resolvers[Vt](lt,Et);if(r)return ge(r)?new Y(r.url,null,r.options):new Y(r,null)}}static#e=this.\u0275fac=function(lt){return new(lt||We)(e.LFG(I.eN,8),e.LFG(H.H7),e.LFG(s.K0,8),e.LFG(e.qLn))};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})();function $(We){return We.cloneNode(!0)}function ue(We,et){return We+":"+et}function ge(We){return!(!We.url||!We.options)}const Ke=new e.OlP("MAT_ICON_DEFAULT_OPTIONS"),at=new e.OlP("mat-icon-location",{providedIn:"root",factory:function Le(){const We=(0,e.f3M)(s.K0),et=We?We.location:null;return{getPathname:()=>et?et.pathname+et.search:""}}}),R=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Te=R.map(We=>`[${We}]`).join(", "),me=/^url\(['"]?#(.*?)['"]?\)$/;let Se=(()=>{class We{get color(){return this._color||this._defaultColor}set color(Et){this._color=Et}get svgIcon(){return this._svgIcon}set svgIcon(Et){Et!==this._svgIcon&&(Et?this._updateSvgIcon(Et):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Et)}get fontSet(){return this._fontSet}set fontSet(Et){const lt=this._cleanupFontValue(Et);lt!==this._fontSet&&(this._fontSet=lt,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Et){const lt=this._cleanupFontValue(Et);lt!==this._fontIcon&&(this._fontIcon=lt,this._updateFontIconClasses())}constructor(Et,lt,Vt,r,Z,Pt){this._elementRef=Et,this._iconRegistry=lt,this._location=r,this._errorHandler=Z,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=p.w.EMPTY,Pt&&(Pt.color&&(this.color=this._defaultColor=Pt.color),Pt.fontSet&&(this.fontSet=Pt.fontSet)),Vt||Et.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(Et){if(!Et)return["",""];const lt=Et.split(":");switch(lt.length){case 1:return["",lt[0]];case 2:return lt;default:throw Error(`Invalid icon name: "${Et}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Et=this._elementsWithExternalReferences;if(Et&&Et.size){const lt=this._location.getPathname();lt!==this._previousPath&&(this._previousPath=lt,this._prependPathToReferences(lt))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Et){this._clearSvgElement();const lt=this._location.getPathname();this._previousPath=lt,this._cacheChildrenWithExternalReferences(Et),this._prependPathToReferences(lt),this._elementRef.nativeElement.appendChild(Et)}_clearSvgElement(){const Et=this._elementRef.nativeElement;let lt=Et.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();lt--;){const Vt=Et.childNodes[lt];(1!==Vt.nodeType||"svg"===Vt.nodeName.toLowerCase())&&Vt.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Et=this._elementRef.nativeElement,lt=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Vt=>Vt.length>0);this._previousFontSetClass.forEach(Vt=>Et.classList.remove(Vt)),lt.forEach(Vt=>Et.classList.add(Vt)),this._previousFontSetClass=lt,this.fontIcon!==this._previousFontIconClass&&!lt.includes("mat-ligature-font")&&(this._previousFontIconClass&&Et.classList.remove(this._previousFontIconClass),this.fontIcon&&Et.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Et){return"string"==typeof Et?Et.trim().split(" ")[0]:Et}_prependPathToReferences(Et){const lt=this._elementsWithExternalReferences;lt&&lt.forEach((Vt,r)=>{Vt.forEach(Z=>{r.setAttribute(Z.name,`url('${Et}#${Z.value}')`)})})}_cacheChildrenWithExternalReferences(Et){const lt=Et.querySelectorAll(Te),Vt=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r<lt.length;r++)R.forEach(Z=>{const Pt=lt[r],Oe=Pt.getAttribute(Z),ye=Oe?Oe.match(me):null;if(ye){let ve=Vt.get(Pt);ve||(ve=[],Vt.set(Pt,ve)),ve.push({name:Z,value:ye[1]})}})}_updateSvgIcon(Et){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Et){const[lt,Vt]=this._splitIconName(Et);lt&&(this._svgNamespace=lt),Vt&&(this._svgName=Vt),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Vt,lt).pipe((0,b.q)(1)).subscribe(r=>this._setSvgElement(r),r=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${lt}:${Vt}! ${r.message}`))})}}static#e=this.\u0275fac=function(lt){return new(lt||We)(e.Y36(e.SBq),e.Y36(K),e.$8M("aria-hidden"),e.Y36(at),e.Y36(e.qLn),e.Y36(Ke,8))};static#t=this.\u0275cmp=e.Xpm({type:We,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(lt,Vt){2&lt&&(e.uIk("data-mat-icon-type",Vt._usingFontIcon()?"font":"svg")("data-mat-icon-name",Vt._svgName||Vt.fontIcon)("data-mat-icon-namespace",Vt._svgNamespace||Vt.fontSet)("fontIcon",Vt._usingFontIcon()?Vt.fontIcon:null),e.Tol(Vt.color?"mat-"+Vt.color:""),e.ekj("mat-icon-inline",Vt.inline)("mat-icon-no-color","primary"!==Vt.color&&"accent"!==Vt.color&&"warn"!==Vt.color))},inputs:{color:"color",inline:[e.lbL.HasDecoratorInputTransform,"inline","inline",e.VuI],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[e.Xq5,e.jDz],ngContentSelectors:O,decls:1,vars:0,template:function(lt,Vt){1&lt&&(e.F$t(),e.Hsn(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}return We})(),Ue=(()=>{class We{static#e=this.\u0275fac=function(lt){return new(lt||We)};static#t=this.\u0275mod=e.oAB({type:We});static#n=this.\u0275inj=e.cJS({imports:[n.BQ,n.BQ]})}return We})()},2032:(gt,X,a)=>{"use strict";a.d(X,{Jk:()=>H,Nt:()=>G,c:()=>B});var e=a(42495),n=a(62831),s=a(19212),l=a(91226),i=a(72079);const t=(0,n.i$)({passive:!0});let p=(()=>{class ae{constructor(q,j){this._platform=q,this._ngZone=j,this._monitoredElements=new Map}monitor(q){if(!this._platform.isBrowser)return l.E;const j=(0,e.fI)(q),Y=this._monitoredElements.get(j);if(Y)return Y.subject;const K=new i.xQ,ne="cdk-text-field-autofilled",ee=$=>{"cdk-text-field-autofill-start"!==$.animationName||j.classList.contains(ne)?"cdk-text-field-autofill-end"===$.animationName&&j.classList.contains(ne)&&(j.classList.remove(ne),this._ngZone.run(()=>K.next({target:$.target,isAutofilled:!1}))):(j.classList.add(ne),this._ngZone.run(()=>K.next({target:$.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{j.addEventListener("animationstart",ee,t),j.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(j,{subject:K,unlisten:()=>{j.removeEventListener("animationstart",ee,t)}}),K}stopMonitoring(q){const j=(0,e.fI)(q),Y=this._monitoredElements.get(j);Y&&(Y.unlisten(),Y.subject.complete(),j.classList.remove("cdk-text-field-autofill-monitored"),j.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(j))}ngOnDestroy(){this._monitoredElements.forEach((q,j)=>this.stopMonitoring(j))}static#e=this.\u0275fac=function(j){return new(j||ae)(s.LFG(n.t4),s.LFG(s.R0b))};static#t=this.\u0275prov=s.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"})}return ae})(),x=(()=>{class ae{static#e=this.\u0275fac=function(j){return new(j||ae)};static#t=this.\u0275mod=s.oAB({type:ae});static#n=this.\u0275inj=s.cJS({})}return ae})();var u=a(56223),m=a(23680),b=a(64170);const H=new s.OlP("MAT_INPUT_VALUE_ACCESSOR"),O=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let P=0,G=(()=>{class ae{get disabled(){return this._disabled}set disabled(q){this._disabled=(0,e.Ig)(q),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(q){this._id=q||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(u.kI.required)??!1}set required(q){this._required=(0,e.Ig)(q)}get type(){return this._type}set type(q){this._type=q||"text",this._validateType(),!this._isTextarea&&(0,n.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(q){this._errorStateTracker.matcher=q}get value(){return this._inputValueAccessor.value}set value(q){q!==this.value&&(this._inputValueAccessor.value=q,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(q){this._readonly=(0,e.Ig)(q)}get errorState(){return this._errorStateTracker.errorState}set errorState(q){this._errorStateTracker.errorState=q}constructor(q,j,Y,K,ne,ee,$,ue,ge,Ke){this._elementRef=q,this._platform=j,this.ngControl=Y,this._autofillMonitor=ue,this._formField=Ke,this._uid="mat-input-"+P++,this.focused=!1,this.stateChanges=new i.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(R=>(0,n.qK)().has(R)),this._iOSKeyupListener=R=>{const Te=R.target;!Te.value&&0===Te.selectionStart&&0===Te.selectionEnd&&(Te.setSelectionRange(1,1),Te.setSelectionRange(0,0))};const at=this._elementRef.nativeElement,Le=at.nodeName.toLowerCase();this._inputValueAccessor=$||at,this._previousNativeValue=this.value,this.id=this.id,j.IOS&&ge.runOutsideAngular(()=>{q.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new m.ZT(ee,Y,ne,K,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===Le,this._isTextarea="textarea"===Le,this._isInFormField=!!Ke,this._isNativeSelect&&(this.controlType=at.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(q=>{this.autofilled=q.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(q){this._elementRef.nativeElement.focus(q)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(q){q!==this.focused&&(this.focused=q,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const q=this._elementRef.nativeElement.value;this._previousNativeValue!==q&&(this._previousNativeValue=q,this.stateChanges.next())}_dirtyCheckPlaceholder(){const q=this._getPlaceholder();if(q!==this._previousPlaceholder){const j=this._elementRef.nativeElement;this._previousPlaceholder=q,q?j.setAttribute("placeholder",q):j.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){O.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let q=this._elementRef.nativeElement.validity;return q&&q.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const q=this._elementRef.nativeElement,j=q.options[0];return this.focused||q.multiple||!this.empty||!!(q.selectedIndex>-1&&j&&j.label)}return this.focused||!this.empty}setDescribedByIds(q){q.length?this._elementRef.nativeElement.setAttribute("aria-describedby",q.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const q=this._elementRef.nativeElement;return this._isNativeSelect&&(q.multiple||q.size>1)}static#e=this.\u0275fac=function(j){return new(j||ae)(s.Y36(s.SBq),s.Y36(n.t4),s.Y36(u.a5,10),s.Y36(u.F,8),s.Y36(u.sg,8),s.Y36(m.rD),s.Y36(H,10),s.Y36(p),s.Y36(s.R0b),s.Y36(b.G_,8))};static#t=this.\u0275dir=s.lG2({type:ae,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(j,Y){1&j&&s.NdJ("focus",function(){return Y._focusChanged(!0)})("blur",function(){return Y._focusChanged(!1)})("input",function(){return Y._onInput()}),2&j&&(s.Ikx("id",Y.id)("disabled",Y.disabled)("required",Y.required),s.uIk("name",Y.name||null)("readonly",Y.readonly&&!Y._isNativeSelect||null)("aria-invalid",Y.empty&&Y.required?null:Y.errorState)("aria-required",Y.required)("id",Y.id),s.ekj("mat-input-server",Y._isServer)("mat-mdc-form-field-textarea-control",Y._isInFormField&&Y._isTextarea)("mat-mdc-form-field-input-control",Y._isInFormField)("mdc-text-field__input",Y._isInFormField)("mat-mdc-native-select-inline",Y._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[s.lbL.None,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[s._Bn([{provide:b.Eo,useExisting:ae}]),s.TTD]})}return ae})(),B=(()=>{class ae{static#e=this.\u0275fac=function(j){return new(j||ae)};static#t=this.\u0275mod=s.oAB({type:ae});static#n=this.\u0275inj=s.cJS({imports:[m.BQ,b.lN,b.lN,x,m.BQ]})}return ae})()},59038:(gt,X,a)=>{"use strict";a.d(X,{Tg:()=>ti,Ub:()=>yi,i$:()=>Rn,ie:()=>ni,vS:()=>Je});var e=a(19212),n=a(42495),s=a(62831),l=a(23680),i=a(7902),t=a(47354),p=a(72079),c=a(17131),o=a(96814),x=a(26385),u=a(4300),m=a(78337),b=a(36028),I=a(56223),H=a(19352);const O=["*"],P='@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-list-divider::after{content:"";display:block;border-bottom-width:1px;border-bottom-style:solid}}.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item__wrapper{display:block}.mdc-list-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer}.mdc-list-item:focus{outline:none}.mdc-list-item.mdc-list-item--with-one-line{height:48px}.mdc-list-item.mdc-list-item--with-two-lines{height:64px}.mdc-list-item.mdc-list-item--with-three-lines{height:88px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--disabled,.mdc-list-item.mdc-list-item--non-interactive{cursor:auto}.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px double rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected:focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected:focus::before{border-color:CanvasText}}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__content[for]{pointer-events:none}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item__overline-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start,.mdc-list-item--with-leading-avatar .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-avatar .mdc-list-item__start{border-radius:50%}.mdc-list-item--with-leading-icon.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--with-leading-icon .mdc-list-item__start[dir=rtl]{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-thumbnail.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-thumbnail.mdc-list-item,.mdc-list-item--with-leading-thumbnail.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-thumbnail .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-thumbnail .mdc-list-item__start,.mdc-list-item--with-leading-thumbnail .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-image.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-image.mdc-list-item,.mdc-list-item--with-leading-image.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-image .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-image .mdc-list-item__start,.mdc-list-item--with-leading-image .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-video.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-video.mdc-list-item,.mdc-list-item--with-leading-video.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-video .mdc-list-item__start{margin-left:0;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-video .mdc-list-item__start,.mdc-list-item--with-leading-video .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-checkbox.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-radio.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-radio.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-radio .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-radio .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-switch.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-switch.mdc-list-item,.mdc-list-item--with-leading-switch.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-switch .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-switch .mdc-list-item__start,.mdc-list-item--with-leading-switch .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item,.mdc-list-item--with-trailing-icon.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-icon .mdc-list-item__end,.mdc-list-item--with-trailing-icon .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item,.mdc-list-item--with-trailing-meta.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-trailing-meta .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-caption-font-family);font-size:var(--mdc-typography-caption-font-size);line-height:var(--mdc-typography-caption-line-height);font-weight:var(--mdc-typography-caption-font-weight);letter-spacing:var(--mdc-typography-caption-letter-spacing);text-decoration:var(--mdc-typography-caption-text-decoration);text-transform:var(--mdc-typography-caption-text-transform)}.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-radio.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-radio .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-radio .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-switch.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-switch.mdc-list-item,.mdc-list-item--with-trailing-switch.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-switch .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-switch .mdc-list-item__end,.mdc-list-item--with-trailing-switch .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-switch.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item{padding-left:16px;padding-right:16px}[dir=rtl] .mdc-list-item,.mdc-list-item[dir=rtl]{padding-left:16px;padding-right:16px}.mdc-list-group .mdc-deprecated-list{padding:0}.mdc-list-group__subheader{margin:calc((3rem - 1.5rem)/2) 16px}.mdc-list-divider{padding:0;background-clip:content-box}.mdc-list-divider.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset{padding-left:16px;padding-right:auto}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset,.mdc-list-divider.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:16px}.mdc-list-divider.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset{padding-left:auto;padding-right:16px}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset,.mdc-list-divider.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset[dir=rtl]{padding-left:16px;padding-right:auto}.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset{padding-left:0px;padding-right:auto}[dir=rtl] .mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:0px}[dir=rtl] .mdc-list-divider,.mdc-list-divider[dir=rtl]{padding:0}.mdc-list-item{background-color:var(--mdc-list-list-item-container-color)}.mdc-list-item.mdc-list-item--selected{background-color:var(--mdc-list-list-item-selected-container-color)}.mdc-list-item--with-one-line{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-one-line.mdc-list-item--with-leading-avatar,.mdc-list-item--with-one-line.mdc-list-item--with-leading-icon,.mdc-list-item--with-one-line.mdc-list-item--with-leading-thumbnail,.mdc-list-item--with-one-line.mdc-list-item--with-leading-checkbox,.mdc-list-item--with-one-line.mdc-list-item--with-leading-radio,.mdc-list-item--with-one-line.mdc-list-item--with-leading-switch{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-one-line.mdc-list-item--with-leading-image,.mdc-list-item--with-one-line.mdc-list-item--with-leading-video{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-two-lines{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-two-lines.mdc-list-item--with-leading-avatar,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-icon,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-thumbnail,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-checkbox,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-radio,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-switch,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-image,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-video{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-three-lines{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mdc-list-list-item-one-line-container-height)}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mdc-list-list-item-two-line-container-height)}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mdc-list-list-item-three-line-container-height)}.mdc-list-item__primary-text{color:var(--mdc-list-list-item-label-text-color)}.mdc-list-item__primary-text{font-family:var(--mdc-list-list-item-label-text-font);line-height:var(--mdc-list-list-item-label-text-line-height);font-size:var(--mdc-list-list-item-label-text-size);font-weight:var(--mdc-list-list-item-label-text-weight);letter-spacing:var(--mdc-list-list-item-label-text-tracking)}.mdc-list-item__secondary-text{color:var(--mdc-list-list-item-supporting-text-color)}.mdc-list-item__secondary-text{font-family:var(--mdc-list-list-item-supporting-text-font);line-height:var(--mdc-list-list-item-supporting-text-line-height);font-size:var(--mdc-list-list-item-supporting-text-size);font-weight:var(--mdc-list-list-item-supporting-text-weight);letter-spacing:var(--mdc-list-list-item-supporting-text-tracking)}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-leading-icon-color)}.mdc-list-item--with-leading-icon .mdc-list-item__start{width:var(--mdc-list-list-item-leading-icon-size);height:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start>i{font-size:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start .mdc-list-item__icon{font-size:var(--mdc-list-list-item-leading-icon-size);width:var(--mdc-list-list-item-leading-icon-size);height:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start .mdc-list-item__icon,.mdc-list-item--with-leading-icon .mdc-list-item__start .mdc-list-item__icon>.materialdesignWizIconSvgsSvgIcon{display:block}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mdc-list-list-item-leading-avatar-size);height:var(--mdc-list-list-item-leading-avatar-size)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-supporting-text-color)}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mdc-list-list-item-trailing-supporting-text-font);line-height:var(--mdc-list-list-item-trailing-supporting-text-line-height);font-size:var(--mdc-list-list-item-trailing-supporting-text-size);font-weight:var(--mdc-list-list-item-trailing-supporting-text-weight);letter-spacing:var(--mdc-list-list-item-trailing-supporting-text-tracking)}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-icon-color)}.mdc-list-item--with-trailing-icon .mdc-list-item__end{width:var(--mdc-list-list-item-trailing-icon-size);height:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end>i{font-size:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end .mdc-list-item__icon{font-size:var(--mdc-list-list-item-trailing-icon-size);width:var(--mdc-list-list-item-trailing-icon-size);height:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end .mdc-list-item__icon,.mdc-list-item--with-trailing-icon .mdc-list-item__end .mdc-list-item__icon>.materialdesignWizIconSvgsSvgIcon{display:block}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-selected-trailing-icon-color)}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text,.mdc-list-item--disabled .mdc-list-item__overline-text{opacity:var(--mdc-list-list-item-disabled-label-text-opacity)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-disabled-leading-icon-color)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{opacity:var(--mdc-list-list-item-disabled-leading-icon-opacity)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-disabled-trailing-icon-color)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{opacity:var(--mdc-list-list-item-disabled-trailing-icon-opacity)}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mdc-list-list-item-hover-label-text-color)}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mdc-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mdc-list-list-item-hover-trailing-icon-color)}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mdc-list-list-item-focus-label-text-color)}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mdc-list-list-item-disabled-label-text-color)}.mdc-list-item:hover::before{background-color:var(--mdc-list-list-item-hover-state-layer-color);opacity:var(--mdc-list-list-item-hover-state-layer-opacity)}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mdc-list-list-item-disabled-state-layer-color);opacity:var(--mdc-list-list-item-disabled-state-layer-opacity)}.mdc-list-item:focus::before{background-color:var(--mdc-list-list-item-focus-state-layer-color);opacity:var(--mdc-list-list-item-focus-state-layer-opacity)}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mdc-list-list-item-disabled-label-text-opacity)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mdc-list-list-item-leading-avatar-shape);background-color:var(--mdc-list-list-item-leading-avatar-color)}.cdk-high-contrast-active a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none}.mat-mdc-list-item>.mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-mdc-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}',G=["unscopedContent"],B=["text"],ae=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],J=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];function q(sn,bn){1&sn&&e.Hsn(0,4)}function j(sn,bn){if(1&sn&&(e.TgZ(0,"div",10),e._UZ(1,"input",11),e.TgZ(2,"div",12),e.O4$(),e.TgZ(3,"svg",13),e._UZ(4,"path",14),e.qZA(),e.kcU(),e._UZ(5,"div",15),e.qZA()()),2&sn){const vt=e.oxw();e.ekj("mdc-checkbox--disabled",vt.disabled),e.xp6(),e.Q6J("checked",vt.selected)("disabled",vt.disabled)}}function Y(sn,bn){if(1&sn&&(e.TgZ(0,"div",16),e._UZ(1,"input",17),e.TgZ(2,"div",18),e._UZ(3,"div",19)(4,"div",20),e.qZA()()),2&sn){const vt=e.oxw();e.ekj("mdc-radio--disabled",vt.disabled),e.xp6(),e.Q6J("checked",vt.selected)("disabled",vt.disabled)}}function K(sn,bn){}function ne(sn,bn){if(1&sn&&(e.TgZ(0,"span",21),e.YNc(1,K,0,0,"ng-template",4),e.qZA()),2&sn){e.oxw();const vt=e.MAs(3);e.xp6(),e.Q6J("ngTemplateOutlet",vt)}}function ee(sn,bn){}function $(sn,bn){if(1&sn&&(e.TgZ(0,"span",22),e.YNc(1,ee,0,0,"ng-template",4),e.qZA()),2&sn){e.oxw();const vt=e.MAs(5);e.xp6(),e.Q6J("ngTemplateOutlet",vt)}}function ue(sn,bn){}function ge(sn,bn){if(1&sn&&e.YNc(0,ue,0,0,"ng-template",4),2&sn){e.oxw();const vt=e.MAs(1);e.Q6J("ngTemplateOutlet",vt)}}function Ke(sn,bn){}function at(sn,bn){if(1&sn&&(e.TgZ(0,"span",23),e.YNc(1,Ke,0,0,"ng-template",4),e.qZA()),2&sn){e.oxw();const vt=e.MAs(3);e.xp6(),e.Q6J("ngTemplateOutlet",vt)}}function Le(sn,bn){}function R(sn,bn){if(1&sn&&(e.TgZ(0,"span",23),e.YNc(1,Le,0,0,"ng-template",4),e.qZA()),2&sn){e.oxw();const vt=e.MAs(5);e.xp6(),e.Q6J("ngTemplateOutlet",vt)}}function Te(sn,bn){}function me(sn,bn){if(1&sn&&e.YNc(0,Te,0,0,"ng-template",4),2&sn){e.oxw();const vt=e.MAs(1);e.Q6J("ngTemplateOutlet",vt)}}const Se=[[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["mat-divider"]],[["","matListItemAvatar",""],["","matListItemIcon",""]]],Ue=["[matListItemTitle]","[matListItemLine]","*","mat-divider","[matListItemAvatar],[matListItemIcon]"],We=new e.OlP("ListOption");let et=(()=>{class sn{constructor(vt){this._elementRef=vt}static#e=this.\u0275fac=function(nn){return new(nn||sn)(e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:sn,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"],standalone:!0})}return sn})(),Et=(()=>{class sn{constructor(vt){this._elementRef=vt}static#e=this.\u0275fac=function(nn){return new(nn||sn)(e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:sn,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"],standalone:!0})}return sn})(),lt=(()=>{class sn{static#e=this.\u0275fac=function(nn){return new(nn||sn)};static#t=this.\u0275dir=e.lG2({type:sn,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"],standalone:!0})}return sn})(),Vt=(()=>{class sn{constructor(vt){this._listOption=vt}_isAlignedAtStart(){return!this._listOption||"after"===this._listOption?._getTogglePosition()}static#e=this.\u0275fac=function(nn){return new(nn||sn)(e.Y36(We,8))};static#t=this.\u0275dir=e.lG2({type:sn,hostVars:4,hostBindings:function(nn,rn){2&nn&&e.ekj("mdc-list-item__start",rn._isAlignedAtStart())("mdc-list-item__end",!rn._isAlignedAtStart())},standalone:!0})}return sn})(),r=(()=>{class sn extends Vt{static#e=this.\u0275fac=(()=>{let vt;return function(rn){return(vt||(vt=e.n5z(sn)))(rn||sn)}})();static#t=this.\u0275dir=e.lG2({type:sn,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],standalone:!0,features:[e.qOj]})}return sn})(),Z=(()=>{class sn extends Vt{static#e=this.\u0275fac=(()=>{let vt;return function(rn){return(vt||(vt=e.n5z(sn)))(rn||sn)}})();static#t=this.\u0275dir=e.lG2({type:sn,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],standalone:!0,features:[e.qOj]})}return sn})();const Pt=new e.OlP("MAT_LIST_CONFIG");let Oe=(()=>{class sn{constructor(){this._isNonInteractive=!0,this._disableRipple=!1,this._disabled=!1,this._defaultOptions=(0,e.f3M)(Pt,{optional:!0})}get disableRipple(){return this._disableRipple}set disableRipple(vt){this._disableRipple=(0,n.Ig)(vt)}get disabled(){return this._disabled}set disabled(vt){this._disabled=(0,n.Ig)(vt)}static#e=this.\u0275fac=function(nn){return new(nn||sn)};static#t=this.\u0275dir=e.lG2({type:sn,hostVars:1,hostBindings:function(nn,rn){2&nn&&e.uIk("aria-disabled",rn.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},standalone:!0})}return sn})(),ye=(()=>{class sn{set lines(vt){this._explicitLines=(0,n.su)(vt,null),this._updateItemLines(!1)}get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(vt){this._disableRipple=(0,n.Ig)(vt)}get disabled(){return this._disabled||!!this._listBase?.disabled}set disabled(vt){this._disabled=(0,n.Ig)(vt)}get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(vt,nn,rn,ii,Oo,no){this._elementRef=vt,this._ngZone=nn,this._listBase=rn,this._platform=ii,this._explicitLines=null,this._disableRipple=!1,this._disabled=!1,this._subscriptions=new i.w,this._rippleRenderer=null,this._hasUnscopedTextContent=!1,this.rippleConfig=Oo||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement="button"===this._hostElement.nodeName.toLowerCase(),this._noopAnimations="NoopAnimations"===no,rn&&!rn._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),null!==this._rippleRenderer&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!(!this._avatars.length&&!this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new l.IR(this,this._ngZone,this._hostElement,this._platform),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add((0,t.T)(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(vt){if(!this._lines||!this._titles||!this._unscopedContent)return;vt&&this._checkDomForUnscopedTextContent();const nn=this._explicitLines??this._inferLinesFromContent(),rn=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",nn<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",nn<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",2===nn),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",3===nn),this._hasUnscopedTextContent){const ii=0===this._titles.length&&1===nn;rn.classList.toggle("mdc-list-item__primary-text",ii),rn.classList.toggle("mdc-list-item__secondary-text",!ii)}else rn.classList.remove("mdc-list-item__primary-text"),rn.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let vt=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(vt+=1),vt}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(vt=>vt.nodeType!==vt.COMMENT_NODE).some(vt=>!(!vt.textContent||!vt.textContent.trim()))}static#e=this.\u0275fac=function(nn){return new(nn||sn)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(Oe,8),e.Y36(s.t4),e.Y36(l.Y2,8),e.Y36(e.QbO,8))};static#t=this.\u0275dir=e.lG2({type:sn,contentQueries:function(nn,rn,ii){if(1&nn&&(e.Suo(ii,r,4),e.Suo(ii,Z,4)),2&nn){let Oo;e.iGM(Oo=e.CRH())&&(rn._avatars=Oo),e.iGM(Oo=e.CRH())&&(rn._icons=Oo)}},hostVars:4,hostBindings:function(nn,rn){2&nn&&(e.uIk("aria-disabled",rn.disabled)("disabled",rn._isButtonElement&&rn.disabled||null),e.ekj("mdc-list-item--disabled",rn.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"},standalone:!0})}return sn})(),Rn=(()=>{class sn extends Oe{static#e=this.\u0275fac=(()=>{let vt;return function(rn){return(vt||(vt=e.n5z(sn)))(rn||sn)}})();static#t=this.\u0275cmp=e.Xpm({type:sn,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],standalone:!0,features:[e._Bn([{provide:Oe,useExisting:sn}]),e.qOj,e.jDz],ngContentSelectors:O,decls:1,vars:0,template:function(nn,rn){1&nn&&(e.F$t(),e.Hsn(0))},styles:[P],encapsulation:2,changeDetection:0})}return sn})(),ti=(()=>{class sn extends ye{get activated(){return this._activated}set activated(vt){this._activated=(0,n.Ig)(vt)}constructor(vt,nn,rn,ii,Oo,no){super(vt,nn,rn,ii,Oo,no),this._activated=!1}_getAriaCurrent(){return"A"===this._hostElement.nodeName&&this._activated?"page":null}static#e=this.\u0275fac=function(nn){return new(nn||sn)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(Oe,8),e.Y36(s.t4),e.Y36(l.Y2,8),e.Y36(e.QbO,8))};static#t=this.\u0275cmp=e.Xpm({type:sn,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(nn,rn,ii){if(1&nn&&(e.Suo(ii,Et,5),e.Suo(ii,et,5),e.Suo(ii,lt,5)),2&nn){let Oo;e.iGM(Oo=e.CRH())&&(rn._lines=Oo),e.iGM(Oo=e.CRH())&&(rn._titles=Oo),e.iGM(Oo=e.CRH())&&(rn._meta=Oo)}},viewQuery:function(nn,rn){if(1&nn&&(e.Gf(G,5),e.Gf(B,5)),2&nn){let ii;e.iGM(ii=e.CRH())&&(rn._unscopedContent=ii.first),e.iGM(ii=e.CRH())&&(rn._itemText=ii.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:11,hostBindings:function(nn,rn){2&nn&&(e.uIk("aria-current",rn._getAriaCurrent()),e.ekj("mdc-list-item--activated",rn.activated)("mdc-list-item--with-leading-avatar",0!==rn._avatars.length)("mdc-list-item--with-leading-icon",0!==rn._icons.length)("mdc-list-item--with-trailing-meta",0!==rn._meta.length)("_mat-animation-noopable",rn._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],standalone:!0,features:[e.qOj,e.jDz],ngContentSelectors:J,decls:10,vars:0,consts:[[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],["unscopedContent",""],[1,"mat-mdc-focus-indicator"]],template:function(nn,rn){1&nn&&(e.F$t(ae),e.Hsn(0),e.TgZ(1,"span",0),e.Hsn(2,1),e.Hsn(3,2),e.TgZ(4,"span",1,2),e.NdJ("cdkObserveContent",function(){return rn._updateItemLines(!0)}),e.Hsn(6,3),e.qZA()(),e.Hsn(7,4),e.Hsn(8,5),e._UZ(9,"div",3))},dependencies:[c.wD],encapsulation:2,changeDetection:0})}return sn})();const Xt=new e.OlP("SelectionList");let Je=(()=>{class sn extends ye{get checkboxPosition(){return this.togglePosition}set checkboxPosition(vt){this.togglePosition=vt}get color(){return this._color||this._selectionList.color}set color(vt){this._color=vt}get value(){return this._value}set value(vt){this.selected&&vt!==this.value&&this._inputsInitialized&&(this.selected=!1),this._value=vt}get selected(){return this._selectionList.selectedOptions.isSelected(this)}set selected(vt){const nn=(0,n.Ig)(vt);nn!==this._selected&&(this._setSelected(nn),(nn||this._selectionList.multiple)&&this._selectionList._reportValueChange())}constructor(vt,nn,rn,ii,Oo,no,Li){super(vt,nn,rn,ii,no,Li),this._selectionList=rn,this._changeDetectorRef=Oo,this.selectedChange=new e.vpe,this.togglePosition="after",this._selected=!1,this._inputsInitialized=!1}ngOnInit(){const vt=this._selectionList;vt._value&&vt._value.some(rn=>vt.compareWith(this._value,rn))&&this._setSelected(!0);const nn=this._selected;Promise.resolve().then(()=>{(this._selected||nn)&&(this.selected=!0,this._changeDetectorRef.markForCheck())}),this._inputsInitialized=!0}ngOnDestroy(){super.ngOnDestroy(),this.selected&&Promise.resolve().then(()=>{this.selected=!1})}toggle(){this.selected=!this.selected}focus(){this._hostElement.focus()}getLabel(){return(this._titles?.get(0)?._elementRef.nativeElement||this._unscopedContent?.nativeElement)?.textContent||""}_hasCheckboxAt(vt){return this._selectionList.multiple&&this._getTogglePosition()===vt}_hasRadioAt(vt){return!this._selectionList.multiple&&this._getTogglePosition()===vt&&!this._selectionList.hideSingleSelectionIndicator}_hasIconsOrAvatarsAt(vt){return this._hasProjected("icons",vt)||this._hasProjected("avatars",vt)}_hasProjected(vt,nn){return this._getTogglePosition()!==nn&&("avatars"===vt?0!==this._avatars.length:0!==this._icons.length)}_handleBlur(){this._selectionList._onTouched()}_getTogglePosition(){return this.togglePosition||"after"}_setSelected(vt){return vt!==this._selected&&(this._selected=vt,vt?this._selectionList.selectedOptions.select(this):this._selectionList.selectedOptions.deselect(this),this.selectedChange.emit(vt),this._changeDetectorRef.markForCheck(),!0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_toggleOnInteraction(){this.disabled||(this._selectionList.multiple?(this.selected=!this.selected,this._selectionList._emitChangeEvent([this])):this.selected||(this.selected=!0,this._selectionList._emitChangeEvent([this])))}_setTabindex(vt){this._hostElement.setAttribute("tabindex",vt+"")}static#e=this.\u0275fac=function(nn){return new(nn||sn)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(Xt),e.Y36(s.t4),e.Y36(e.sBO),e.Y36(l.Y2,8),e.Y36(e.QbO,8))};static#t=this.\u0275cmp=e.Xpm({type:sn,selectors:[["mat-list-option"]],contentQueries:function(nn,rn,ii){if(1&nn&&(e.Suo(ii,Et,5),e.Suo(ii,et,5)),2&nn){let Oo;e.iGM(Oo=e.CRH())&&(rn._lines=Oo),e.iGM(Oo=e.CRH())&&(rn._titles=Oo)}},viewQuery:function(nn,rn){if(1&nn&&e.Gf(G,5),2&nn){let ii;e.iGM(ii=e.CRH())&&(rn._unscopedContent=ii.first)}},hostAttrs:["role","option",1,"mat-mdc-list-item","mat-mdc-list-option","mdc-list-item"],hostVars:25,hostBindings:function(nn,rn){1&nn&&e.NdJ("blur",function(){return rn._handleBlur()})("click",function(){return rn._toggleOnInteraction()}),2&nn&&(e.uIk("aria-selected",rn.selected),e.ekj("mdc-list-item--selected",rn.selected&&!rn._selectionList.multiple&&rn._selectionList.hideSingleSelectionIndicator)("mdc-list-item--with-leading-avatar",rn._hasProjected("avatars","before"))("mdc-list-item--with-leading-icon",rn._hasProjected("icons","before"))("mdc-list-item--with-trailing-icon",rn._hasProjected("icons","after"))("mat-mdc-list-option-with-trailing-avatar",rn._hasProjected("avatars","after"))("mdc-list-item--with-leading-checkbox",rn._hasCheckboxAt("before"))("mdc-list-item--with-trailing-checkbox",rn._hasCheckboxAt("after"))("mdc-list-item--with-leading-radio",rn._hasRadioAt("before"))("mdc-list-item--with-trailing-radio",rn._hasRadioAt("after"))("mat-accent","primary"!==rn.color&&"warn"!==rn.color)("mat-warn","warn"===rn.color)("_mat-animation-noopable",rn._noopAnimations))},inputs:{togglePosition:"togglePosition",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],standalone:!0,features:[e._Bn([{provide:ye,useExisting:sn},{provide:We,useExisting:sn}]),e.qOj,e.jDz],ngContentSelectors:Ue,decls:20,vars:4,consts:[["icons",""],["checkbox",""],["radio",""],["class","mdc-list-item__start mat-mdc-list-option-checkbox-before"],[3,"ngTemplateOutlet"],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],["unscopedContent",""],["class","mdc-list-item__end"],[1,"mat-mdc-focus-indicator"],[1,"mdc-checkbox"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","disabled"],[1,"mdc-checkbox__background"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],[1,"mdc-radio"],["type","radio",1,"mdc-radio__native-control",3,"checked","disabled"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],[1,"mdc-list-item__start","mat-mdc-list-option-checkbox-before"],[1,"mdc-list-item__start","mat-mdc-list-option-radio-before"],[1,"mdc-list-item__end"]],template:function(nn,rn){1&nn&&(e.F$t(Se),e.YNc(0,q,1,0,"ng-template",null,0,e.W1O)(2,j,6,4,"ng-template",null,1,e.W1O)(4,Y,5,4,"ng-template",null,2,e.W1O)(6,ne,2,1,"span",3)(7,$,2,1)(8,ge,1,1,null,4),e.TgZ(9,"span",5),e.Hsn(10),e.Hsn(11,1),e.TgZ(12,"span",6,7),e.NdJ("cdkObserveContent",function(){return rn._updateItemLines(!0)}),e.Hsn(14,2),e.qZA()(),e.YNc(15,at,2,1,"span",8)(16,R,2,1)(17,me,1,1,null,4),e.Hsn(18,3),e._UZ(19,"div",9)),2&nn&&(e.xp6(6),e.um2(6,rn._hasCheckboxAt("before")?6:rn._hasRadioAt("before")?7:-1),e.xp6(2),e.um2(8,rn._hasIconsOrAvatarsAt("before")?8:-1),e.xp6(7),e.um2(15,rn._hasCheckboxAt("after")?15:rn._hasRadioAt("after")?16:-1),e.xp6(2),e.um2(17,rn._hasIconsOrAvatarsAt("after")?17:-1))},dependencies:[o.tP,c.wD],styles:['.mat-mdc-list-option-with-trailing-avatar.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mat-mdc-list-option-with-trailing-avatar.mdc-list-item,.mat-mdc-list-option-with-trailing-avatar.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mat-mdc-list-option-with-trailing-avatar .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mat-mdc-list-option-with-trailing-avatar .mdc-list-item__end,.mat-mdc-list-option-with-trailing-avatar .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mat-mdc-list-option-with-trailing-avatar .mdc-list-item__end{width:40px;height:40px}.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mat-mdc-list-option-with-trailing-avatar .mdc-list-item__end{border-radius:50%}.mat-mdc-list-option .mdc-touch-target-wrapper{display:inline}.mat-mdc-list-option .mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mat-mdc-list-option .mdc-checkbox[hidden]{display:none}.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mat-mdc-list-option .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mat-mdc-list-option .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mat-mdc-list-option .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mat-mdc-list-option .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-list-option .mdc-checkbox__mixedmark{margin:0 1px}}.mat-mdc-list-option .mdc-checkbox--disabled{cursor:default;pointer-events:none}.mat-mdc-list-option .mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color}.mat-mdc-list-option .mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0}.mdc-checkbox--upgraded .mat-mdc-list-option .mdc-checkbox__checkmark{opacity:1}.mat-mdc-list-option .mdc-checkbox__checkmark-path{stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mat-mdc-list-option .mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mat-mdc-list-option .mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mat-mdc-list-option .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mat-mdc-list-option .mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mat-mdc-list-option .mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size, 48px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mat-mdc-list-option .mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);width:var(--mdc-checkbox-state-layer-size, 48px);height:var(--mdc-checkbox-state-layer-size, 48px)}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{opacity:1}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mat-mdc-list-option .mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0}.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mat-mdc-list-option .mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mat-mdc-list-option .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mat-mdc-list-option .mdc-radio[hidden]{display:none}.mat-mdc-list-option .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-list-option .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:""}.mat-mdc-list-option .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%}.mat-mdc-list-option .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%}.mat-mdc-list-option .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mat-mdc-list-option .mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mat-mdc-list-option .mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mat-mdc-list-option .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mat-mdc-list-option .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mat-mdc-list-option .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mat-mdc-list-option .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mat-mdc-list-option .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mat-mdc-list-option .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mat-mdc-list-option .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mat-mdc-list-option .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mat-mdc-list-option .mdc-radio--disabled{cursor:default;pointer-events:none}.mat-mdc-list-option .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5)}.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background,.mat-mdc-list-option [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mat-mdc-list-option .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}@media all and (-ms-high-contrast: none){.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox .mdc-checkbox__focus-ring{display:none}}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox__background{transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox__mixedmark{transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__background::before{transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__native-control:focus+.mdc-radio__background::before{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option .mdc-checkbox{padding:calc((40px - 18px) / 2);padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);margin:calc((40px - 40px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:rgba(0, 0, 0, 0.38);border-color:var(--mdc-checkbox-disabled-unselected-icon-color, rgba(0, 0, 0, 0.38));background-color:transparent}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:rgba(0, 0, 0, 0.38);background-color:var(--mdc-checkbox-disabled-selected-icon-color, rgba(0, 0, 0, 0.38))}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:#fff;color:var(--mdc-checkbox-selected-checkmark-color, "#fff")}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:#fff;border-color:var(--mdc-checkbox-selected-checkmark-color, "#fff")}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:#fff;color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:#fff;border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:#f44336;border-color:var(--mdc-checkbox-selected-icon-color, #f44336);background-color:#f44336;background-color:var(--mdc-checkbox-selected-icon-color, #f44336)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:#f44336;border-color:var(--mdc-checkbox-selected-icon-color, #f44336);background-color:#f44336;background-color:var(--mdc-checkbox-selected-icon-color, #f44336)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:#f44336;border-color:var(--mdc-checkbox-selected-icon-color, #f44336);background-color:#f44336;background-color:var(--mdc-checkbox-selected-icon-color, #f44336)}100%{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-list-option .mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mat-mdc-list-option .mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mat-mdc-list-option .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:#212121;border-color:var(--mdc-checkbox-unselected-hover-icon-color, #212121);background-color:transparent}.mat-mdc-list-option .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:#f44336;border-color:var(--mdc-checkbox-selected-hover-icon-color, #f44336);background-color:#f44336;background-color:var(--mdc-checkbox-selected-hover-icon-color, #f44336)}@keyframes mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336{0%{border-color:#212121;border-color:var(--mdc-checkbox-unselected-hover-icon-color, #212121);background-color:transparent}50%{border-color:#f44336;border-color:var(--mdc-checkbox-selected-hover-icon-color, #f44336);background-color:#f44336;background-color:var(--mdc-checkbox-selected-hover-icon-color, #f44336)}}@keyframes mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336{0%,80%{border-color:#f44336;border-color:var(--mdc-checkbox-selected-hover-icon-color, #f44336);background-color:#f44336;background-color:var(--mdc-checkbox-selected-hover-icon-color, #f44336)}100%{border-color:#212121;border-color:var(--mdc-checkbox-unselected-hover-icon-color, #212121);background-color:transparent}}.mat-mdc-list-option .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336}.mat-mdc-list-option .mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336}.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:#212121;border-color:var(--mdc-checkbox-unselected-focus-icon-color, #212121);background-color:transparent}.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:#f44336;border-color:var(--mdc-checkbox-selected-focus-icon-color, #f44336);background-color:#f44336;background-color:var(--mdc-checkbox-selected-focus-icon-color, #f44336)}@keyframes mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336{0%{border-color:#212121;border-color:var(--mdc-checkbox-unselected-focus-icon-color, #212121);background-color:transparent}50%{border-color:#f44336;border-color:var(--mdc-checkbox-selected-focus-icon-color, #f44336);background-color:#f44336;background-color:var(--mdc-checkbox-selected-focus-icon-color, #f44336)}}@keyframes mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336{0%,80%{border-color:#f44336;border-color:var(--mdc-checkbox-selected-focus-icon-color, #f44336);background-color:#f44336;background-color:var(--mdc-checkbox-selected-focus-icon-color, #f44336)}100%{border-color:#212121;border-color:var(--mdc-checkbox-unselected-focus-icon-color, #212121);background-color:transparent}}.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336}.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336}.mat-mdc-list-option .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-list-option .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:#f44336;border-color:var(--mdc-checkbox-selected-pressed-icon-color, #f44336);background-color:#f44336;background-color:var(--mdc-checkbox-selected-pressed-icon-color, #f44336)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:#f44336;border-color:var(--mdc-checkbox-selected-pressed-icon-color, #f44336);background-color:#f44336;background-color:var(--mdc-checkbox-selected-pressed-icon-color, #f44336)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:#f44336;border-color:var(--mdc-checkbox-selected-pressed-icon-color, #f44336);background-color:#f44336;background-color:var(--mdc-checkbox-selected-pressed-icon-color, #f44336)}100%{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-list-option .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mat-mdc-list-option .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__ripple::before,.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__ripple::after{background-color:black;background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, black)}.mat-mdc-list-option .mdc-checkbox:hover .mdc-checkbox__ripple::before,.mat-mdc-list-option .mdc-checkbox.mdc-ripple-surface--hover .mdc-checkbox__ripple::before{opacity:0.04;opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity, 0.04)}.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__ripple::before,.mat-mdc-list-option .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__ripple::before{transition-duration:75ms;opacity:0.16;opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity, 0.16)}.mat-mdc-list-option .mdc-checkbox:not(.mdc-ripple-upgraded) .mdc-checkbox__ripple::after{transition:opacity 150ms linear}.mat-mdc-list-option .mdc-checkbox:not(.mdc-ripple-upgraded):active .mdc-checkbox__ripple::after{transition-duration:75ms;opacity:0.16;opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity, 0.16)}.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity, 0.16)}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__ripple::before{background-color:black;background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, black)}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__ripple::after{background-color:black;background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, black)}.mat-mdc-list-option .mdc-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::before,.mat-mdc-list-option .mdc-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::after{background-color:#f44336;background-color:var(--mdc-checkbox-selected-hover-state-layer-color, #f44336)}.mat-mdc-list-option .mdc-checkbox.mdc-checkbox--selected:hover .mdc-checkbox__ripple::before,.mat-mdc-list-option .mdc-checkbox.mdc-checkbox--selected.mdc-ripple-surface--hover .mdc-checkbox__ripple::before{opacity:0.04;opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity, 0.04)}.mat-mdc-list-option .mdc-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded--background-focused .mdc-checkbox__ripple::before,.mat-mdc-list-option .mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):focus .mdc-checkbox__ripple::before{transition-duration:75ms;opacity:0.16;opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity, 0.16)}.mat-mdc-list-option .mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded) .mdc-checkbox__ripple::after{transition:opacity 150ms linear}.mat-mdc-list-option .mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):active .mdc-checkbox__ripple::after{transition-duration:75ms;opacity:0.16;opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity, 0.16)}.mat-mdc-list-option .mdc-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity, 0.16)}.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::before,.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::after{background-color:#f44336;background-color:var(--mdc-checkbox-selected-hover-state-layer-color, #f44336)}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__background{top:calc((40px - 18px) / 2);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);left:calc((40px - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2)}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control{top:calc((40px - 40px) / 2);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);right:calc((40px - 40px) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);left:calc((40px - 40px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);width:40px;width:var(--mdc-checkbox-state-layer-size, 40px);height:40px;height:var(--mdc-checkbox-state-layer-size, 40px)}.mat-mdc-list-option .mdc-radio{padding:calc((40px - 20px) / 2);padding:calc((var(--mdc-radio-state-layer-size, 40px) - 20px) / 2)}.mat-mdc-list-option .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-list-option .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:#000;border-color:var(--mdc-radio-disabled-selected-icon-color, #000)}.mat-mdc-list-option .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-list-option .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:#000;border-color:var(--mdc-radio-disabled-selected-icon-color, #000)}.mat-mdc-list-option .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-list-option .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:0.38;opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-list-option .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-list-option .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:0.38;opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-list-option .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-list-option .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:#000;border-color:var(--mdc-radio-disabled-unselected-icon-color, #000)}.mat-mdc-list-option .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-list-option .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:0.38;opacity:var(--mdc-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-list-option .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-list-option .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:#f44336;border-color:var(--mdc-radio-selected-focus-icon-color, #f44336)}.mat-mdc-list-option .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-list-option .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:#f44336;border-color:var(--mdc-radio-selected-focus-icon-color, #f44336)}.mat-mdc-list-option .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:#f44336;border-color:var(--mdc-radio-selected-hover-icon-color, #f44336)}.mat-mdc-list-option .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:#f44336;border-color:var(--mdc-radio-selected-hover-icon-color, #f44336)}.mat-mdc-list-option .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:#f44336;border-color:var(--mdc-radio-selected-icon-color, #f44336)}.mat-mdc-list-option .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:#f44336;border-color:var(--mdc-radio-selected-icon-color, #f44336)}.mat-mdc-list-option .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:#f44336;border-color:var(--mdc-radio-selected-pressed-icon-color, #f44336)}.mat-mdc-list-option .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:#f44336;border-color:var(--mdc-radio-selected-pressed-icon-color, #f44336)}.mat-mdc-list-option .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:#212121;border-color:var(--mdc-radio-unselected-hover-icon-color, #212121)}.mat-mdc-list-option .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-radio-unselected-icon-color, rgba(0, 0, 0, 0.54))}.mat-mdc-list-option .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-radio-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54))}.mat-mdc-list-option .mdc-radio .mdc-radio__background::before{top:calc(-1 * (40px - 20px) / 2);top:calc(-1 * (var(--mdc-radio-state-layer-size, 40px) - 20px) / 2);left:calc(-1 * (40px - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size, 40px) - 20px) / 2);width:40px;width:var(--mdc-radio-state-layer-size, 40px);height:40px;height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-list-option .mdc-radio .mdc-radio__native-control{top:calc((40px - 40px) / 2);top:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);right:calc((40px - 40px) / 2);right:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);left:calc((40px - 40px) / 2);left:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);width:40px;width:var(--mdc-radio-state-layer-size, 40px);height:40px;height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-list-option .mdc-checkbox__native-control,.mat-mdc-list-option .mdc-radio__native-control{display:none}.cdk-high-contrast-active .mat-mdc-list-option.mdc-list-item--selected::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active .mat-mdc-list-option.mdc-list-item--selected [dir=rtl]::after{right:auto;left:16px}'],encapsulation:2,changeDetection:0})}return sn})();const ct={provide:I.JU,useExisting:(0,e.Gpc)(()=>yi),multi:!0};class tn{constructor(bn,vt){this.source=bn,this.options=vt}}let yi=(()=>{class sn extends Oe{get multiple(){return this._multiple}set multiple(vt){const nn=(0,n.Ig)(vt);nn!==this._multiple&&(this._multiple=nn,this.selectedOptions=new m.Ov(this._multiple,this.selectedOptions.selected))}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(vt){this._hideSingleSelectionIndicator=(0,n.Ig)(vt)}constructor(vt,nn){super(),this._element=vt,this._ngZone=nn,this._initialized=!1,this._destroyed=new p.xQ,this._onChange=rn=>{},this.selectionChange=new e.vpe,this.color="accent",this.compareWith=(rn,ii)=>rn===ii,this._multiple=!0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this.selectedOptions=new m.Ov(this._multiple),this._onTouched=()=>{},this._selectionListDisabled=!1,this._handleFocusout=()=>{setTimeout(()=>{this._containsFocus()||this._resetActiveOption()})},this._handleFocusin=rn=>{if(this.disabled)return;const ii=this._items.toArray().findIndex(Oo=>Oo._elementRef.nativeElement.contains(rn.target));ii>-1?this._setActiveOption(ii):this._resetActiveOption()},this._isNonInteractive=!1}ngAfterViewInit(){this._initialized=!0,this._setupRovingTabindex(),this._ngZone.runOutsideAngular(()=>{this._element.nativeElement.addEventListener("focusin",this._handleFocusin),this._element.nativeElement.addEventListener("focusout",this._handleFocusout)}),this._value&&this._setOptionsFromValues(this._value),this._watchForSelectionChange()}ngOnChanges(vt){const nn=vt.disabled,rn=vt.disableRipple,ii=vt.hideSingleSelectionIndicator;(rn&&!rn.firstChange||nn&&!nn.firstChange||ii&&!ii.firstChange)&&this._markOptionsForCheck()}ngOnDestroy(){this._keyManager?.destroy(),this._element.nativeElement.removeEventListener("focusin",this._handleFocusin),this._element.nativeElement.removeEventListener("focusout",this._handleFocusout),this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}focus(vt){this._element.nativeElement.focus(vt)}selectAll(){return this._setAllOptionsSelected(!0)}deselectAll(){return this._setAllOptionsSelected(!1)}_reportValueChange(){if(this.options&&!this._isDestroyed){const vt=this._getSelectedOptionValues();this._onChange(vt),this._value=vt}}_emitChangeEvent(vt){this.selectionChange.emit(new tn(this,vt))}writeValue(vt){this._value=vt,this.options&&this._setOptionsFromValues(vt||[])}setDisabledState(vt){this.disabled=vt}get disabled(){return this._selectionListDisabled}set disabled(vt){this._selectionListDisabled=(0,n.Ig)(vt),this._selectionListDisabled&&this._keyManager?.setActiveItem(-1)}registerOnChange(vt){this._onChange=vt}registerOnTouched(vt){this._onTouched=vt}_watchForSelectionChange(){this.selectedOptions.changed.pipe((0,H.R)(this._destroyed)).subscribe(vt=>{for(let nn of vt.added)nn.selected=!0;for(let nn of vt.removed)nn.selected=!1;this._containsFocus()||this._resetActiveOption()})}_setOptionsFromValues(vt){this.options.forEach(nn=>nn._setSelected(!1)),vt.forEach(nn=>{const rn=this.options.find(ii=>!ii.selected&&this.compareWith(ii.value,nn));rn&&rn._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(vt=>vt.selected).map(vt=>vt.value)}_markOptionsForCheck(){this.options&&this.options.forEach(vt=>vt._markForCheck())}_setAllOptionsSelected(vt,nn){const rn=[];return this.options.forEach(ii=>{(!nn||!ii.disabled)&&ii._setSelected(vt)&&rn.push(ii)}),rn.length&&this._reportValueChange(),rn}get options(){return this._items}_handleKeydown(vt){const nn=this._keyManager.activeItem;if(vt.keyCode!==b.K5&&vt.keyCode!==b.L_||this._keyManager.isTyping()||!nn||nn.disabled)if(vt.keyCode===b.A&&this.multiple&&!this._keyManager.isTyping()&&(0,b.Vb)(vt,"ctrlKey")){const rn=this.options.some(ii=>!ii.disabled&&!ii.selected);vt.preventDefault(),this._emitChangeEvent(this._setAllOptionsSelected(rn,!0))}else this._keyManager.onKeydown(vt);else vt.preventDefault(),nn._toggleOnInteraction()}_setupRovingTabindex(){this._keyManager=new u.Em(this._items).withHomeAndEnd().withTypeAhead().withWrap().skipPredicate(()=>this.disabled),this._resetActiveOption(),this._keyManager.change.subscribe(vt=>this._setActiveOption(vt)),this._items.changes.pipe((0,H.R)(this._destroyed)).subscribe(()=>{const vt=this._keyManager.activeItem;(!vt||!this._items.toArray().indexOf(vt))&&this._resetActiveOption()})}_setActiveOption(vt){this._items.forEach((nn,rn)=>nn._setTabindex(rn===vt?0:-1)),this._keyManager.updateActiveItem(vt)}_resetActiveOption(){if(this.disabled)return void this._setActiveOption(-1);const vt=this._items.find(nn=>nn.selected&&!nn.disabled)||this._items.first;this._setActiveOption(vt?this._items.toArray().indexOf(vt):-1)}_containsFocus(){const vt=(0,s.ht)();return vt&&this._element.nativeElement.contains(vt)}static#e=this.\u0275fac=function(nn){return new(nn||sn)(e.Y36(e.SBq),e.Y36(e.R0b))};static#t=this.\u0275cmp=e.Xpm({type:sn,selectors:[["mat-selection-list"]],contentQueries:function(nn,rn,ii){if(1&nn&&e.Suo(ii,Je,5),2&nn){let Oo;e.iGM(Oo=e.CRH())&&(rn._items=Oo)}},hostAttrs:["role","listbox",1,"mat-mdc-selection-list","mat-mdc-list-base","mdc-list"],hostVars:1,hostBindings:function(nn,rn){1&nn&&e.NdJ("keydown",function(Oo){return rn._handleKeydown(Oo)}),2&nn&&e.uIk("aria-multiselectable",rn.multiple)},inputs:{color:"color",compareWith:"compareWith",multiple:"multiple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator",disabled:"disabled"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],standalone:!0,features:[e._Bn([ct,{provide:Oe,useExisting:sn},{provide:Xt,useExisting:sn}]),e.qOj,e.TTD,e.jDz],ngContentSelectors:O,decls:1,vars:0,template:function(nn,rn){1&nn&&(e.F$t(),e.Hsn(0))},styles:[P],encapsulation:2,changeDetection:0})}return sn})(),ni=(()=>{class sn{static#e=this.\u0275fac=function(nn){return new(nn||sn)};static#t=this.\u0275mod=e.oAB({type:sn});static#n=this.\u0275inj=e.cJS({imports:[c.Q8,o.ez,l.BQ,l.si,l.us,x.t]})}return sn})()},21476:(gt,X,a)=>{"use strict";a.d(X,{TU:()=>j,kl:()=>G,ye:()=>I});var e=a(19212),n=a(72079),s=a(32296),l=a(98525),i=a(92596),t=a(64170),p=a(23680);function c(Y,K){if(1&Y&&(e.TgZ(0,"mat-option",18),e._uU(1),e.qZA()),2&Y){const ne=K.$implicit;e.Q6J("value",ne),e.xp6(),e.hij(" ",ne," ")}}function o(Y,K){if(1&Y){const ne=e.EpF();e.TgZ(0,"mat-form-field",16)(1,"mat-select",17),e.NdJ("selectionChange",function($){e.CHM(ne);const ue=e.oxw(2);return e.KtG(ue._changePageSize($.value))}),e.SjG(2,c,2,2,"mat-option",18,e.x6l),e.qZA()()}if(2&Y){const ne=e.oxw(2);e.Q6J("appearance",ne._formFieldAppearance)("color",ne.color),e.xp6(),e.Q6J("value",ne.pageSize)("disabled",ne.disabled)("aria-labelledby",ne._pageSizeLabelId)("panelClass",ne.selectConfig.panelClass||"")("disableOptionCentering",ne.selectConfig.disableOptionCentering),e.xp6(),e.wJu(ne._displayedPageSizeOptions)}}function x(Y,K){if(1&Y&&(e.TgZ(0,"div",19),e._uU(1),e.qZA()),2&Y){const ne=e.oxw(2);e.xp6(),e.Oqu(ne.pageSize)}}function u(Y,K){if(1&Y&&(e.TgZ(0,"div",12)(1,"div",13),e._uU(2),e.qZA(),e.YNc(3,o,4,7,"mat-form-field",14)(4,x,2,1,"div",15),e.qZA()),2&Y){const ne=e.oxw();e.xp6(),e.uIk("id",ne._pageSizeLabelId),e.xp6(),e.hij(" ",ne._intl.itemsPerPageLabel," "),e.xp6(),e.um2(3,ne._displayedPageSizeOptions.length>1?3:-1),e.xp6(),e.um2(4,ne._displayedPageSizeOptions.length<=1?4:-1)}}function m(Y,K){if(1&Y){const ne=e.EpF();e.TgZ(0,"button",20),e.NdJ("click",function(){e.CHM(ne);const $=e.oxw();return e.KtG($.firstPage())}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",21),e.qZA()()}if(2&Y){const ne=e.oxw();e.Q6J("matTooltip",ne._intl.firstPageLabel)("matTooltipDisabled",ne._previousButtonsDisabled())("matTooltipPosition","above")("disabled",ne._previousButtonsDisabled()),e.uIk("aria-label",ne._intl.firstPageLabel)}}function b(Y,K){if(1&Y){const ne=e.EpF();e.O4$(),e.kcU(),e.TgZ(0,"button",22),e.NdJ("click",function(){e.CHM(ne);const $=e.oxw();return e.KtG($.lastPage())}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",23),e.qZA()()}if(2&Y){const ne=e.oxw();e.Q6J("matTooltip",ne._intl.lastPageLabel)("matTooltipDisabled",ne._nextButtonsDisabled())("matTooltipPosition","above")("disabled",ne._nextButtonsDisabled()),e.uIk("aria-label",ne._intl.lastPageLabel)}}let I=(()=>{class Y{constructor(){this.changes=new n.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(ne,ee,$)=>{if(0==$||0==ee)return`0 of ${$}`;const ue=ne*ee;return`${ue+1} \u2013 ${ue<($=Math.max($,0))?Math.min(ue+ee,$):ue+ee} of ${$}`}}static#e=this.\u0275fac=function(ee){return new(ee||Y)};static#t=this.\u0275prov=e.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"})}return Y})();const O={provide:I,deps:[[new e.FiY,new e.tp0,I]],useFactory:function H(Y){return Y||new I}};class G{}const B=new e.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),ae=(0,p.dB)(class{});let J=0,q=(()=>{class Y extends ae{get pageIndex(){return this._pageIndex}set pageIndex(ne){this._pageIndex=Math.max(ne||0,0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(ne){this._length=ne||0,this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(ne){this._pageSize=Math.max(ne||0,0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(ne){this._pageSizeOptions=(ne||[]).map(ee=>(0,e.Cb_)(ee,0)),this._updateDisplayedPageSizeOptions()}constructor(ne,ee,$){if(super(),this._intl=ne,this._changeDetectorRef=ee,this._pageSizeLabelId="mat-paginator-page-size-label-"+J++,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this.hidePageSize=!1,this.showFirstLastButtons=!1,this.selectConfig={},this.disabled=!1,this.page=new e.vpe,this._intlChanges=ne.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),$){const{pageSize:ue,pageSizeOptions:ge,hidePageSize:Ke,showFirstLastButtons:at}=$;null!=ue&&(this._pageSize=ue),null!=ge&&(this._pageSizeOptions=ge),null!=Ke&&(this.hidePageSize=Ke),null!=at&&(this.showFirstLastButtons=at)}this._formFieldAppearance=$?.formFieldAppearance||"outline"}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const ne=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(ne)}previousPage(){if(!this.hasPreviousPage())return;const ne=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(ne)}firstPage(){if(!this.hasPreviousPage())return;const ne=this.pageIndex;this.pageIndex=0,this._emitPageEvent(ne)}lastPage(){if(!this.hasNextPage())return;const ne=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(ne)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const ne=this.getNumberOfPages()-1;return this.pageIndex<ne&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(ne){const $=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/ne)||0,this.pageSize=ne,this._emitPageEvent($)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((ne,ee)=>ne-ee),this._changeDetectorRef.markForCheck())}_emitPageEvent(ne){this.page.emit({previousPageIndex:ne,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}static#e=this.\u0275fac=function(ee){return new(ee||Y)(e.Y36(I),e.Y36(e.sBO),e.Y36(B,8))};static#t=this.\u0275cmp=e.Xpm({type:Y,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[e.lbL.HasDecoratorInputTransform,"pageIndex","pageIndex",e.Cb_],length:[e.lbL.HasDecoratorInputTransform,"length","length",e.Cb_],pageSize:[e.lbL.HasDecoratorInputTransform,"pageSize","pageSize",e.Cb_],pageSizeOptions:"pageSizeOptions",hidePageSize:[e.lbL.HasDecoratorInputTransform,"hidePageSize","hidePageSize",e.VuI],showFirstLastButtons:[e.lbL.HasDecoratorInputTransform,"showFirstLastButtons","showFirstLastButtons",e.VuI],selectConfig:"selectConfig",disabled:[e.lbL.HasDecoratorInputTransform,"disabled","disabled",e.VuI]},outputs:{page:"page"},exportAs:["matPaginator"],standalone:!0,features:[e.Xq5,e.qOj,e.jDz],decls:14,vars:14,consts:[[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],["class","mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-page-size-label"],["class","mat-mdc-paginator-page-size-select",3,"appearance","color"],["class","mat-mdc-paginator-page-size-value"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],["hideSingleSelectionIndicator","",3,"value","disabled","aria-labelledby","panelClass","disableOptionCentering","selectionChange"],[3,"value"],[1,"mat-mdc-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(ee,$){1&ee&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,u,5,4,"div",2),e.TgZ(3,"div",3)(4,"div",4),e._uU(5),e.qZA(),e.YNc(6,m,3,5,"button",5),e.TgZ(7,"button",6),e.NdJ("click",function(){return $.previousPage()}),e.O4$(),e.TgZ(8,"svg",7),e._UZ(9,"path",8),e.qZA()(),e.kcU(),e.TgZ(10,"button",9),e.NdJ("click",function(){return $.nextPage()}),e.O4$(),e.TgZ(11,"svg",7),e._UZ(12,"path",10),e.qZA()(),e.YNc(13,b,3,5,"button",11),e.qZA()()()),2&ee&&(e.xp6(2),e.um2(2,$.hidePageSize?-1:2),e.xp6(3),e.hij(" ",$._intl.getRangeLabel($.pageIndex,$.pageSize,$.length)," "),e.xp6(),e.um2(6,$.showFirstLastButtons?6:-1),e.xp6(),e.Q6J("matTooltip",$._intl.previousPageLabel)("matTooltipDisabled",$._previousButtonsDisabled())("matTooltipPosition","above")("disabled",$._previousButtonsDisabled()),e.uIk("aria-label",$._intl.previousPageLabel),e.xp6(3),e.Q6J("matTooltip",$._intl.nextPageLabel)("matTooltipDisabled",$._nextButtonsDisabled())("matTooltipPosition","above")("disabled",$._nextButtonsDisabled()),e.uIk("aria-label",$._intl.nextPageLabel),e.xp6(3),e.um2(13,$.showFirstLastButtons?13:-1))},dependencies:[t.KE,l.gD,p.ey,s.RK,i.gM],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color);background-color:var(--mat-paginator-container-background-color);font-family:var(--mat-paginator-container-text-font);line-height:var(--mat-paginator-container-text-line-height);font-size:var(--mat-paginator-container-text-size);font-weight:var(--mat-paginator-container-text-weight);letter-spacing:var(--mat-paginator-container-text-tracking)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size)}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color)}.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color)}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return Y})(),j=(()=>{class Y{static#e=this.\u0275fac=function(ee){return new(ee||Y)};static#t=this.\u0275mod=e.oAB({type:Y});static#n=this.\u0275inj=e.cJS({providers:[O],imports:[s.ot,l.LD,i.AV,q]})}return Y})()},16007:(gt,X,a)=>{"use strict";a.d(X,{Cv:()=>o,pW:()=>p});var e=a(19212),s=(a(96814),a(23680));const l=new e.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let p=(()=>{class x{constructor(m,b,I,H,O){this._elementRef=m,this._ngZone=b,this._changeDetectorRef=I,this._animationMode=H,this._isNoopAnimation=!1,this._defaultColor="primary",this._value=0,this._bufferValue=0,this.animationEnd=new e.vpe,this._mode="determinate",this._transitionendHandler=P=>{0===this.animationEnd.observers.length||!P.target||!P.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation="NoopAnimations"===H,O&&(O.color&&(this.color=this._defaultColor=O.color),this.mode=O.mode||this.mode)}get color(){return this._color||this._defaultColor}set color(m){this._color=m}get value(){return this._value}set value(m){this._value=c(m||0),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(m){this._bufferValue=c(m||0),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(m){this._mode=m,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}static#e=this.\u0275fac=function(b){return new(b||x)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.QbO,8),e.Y36(l,8))};static#t=this.\u0275cmp=e.Xpm({type:x,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:10,hostBindings:function(b,I){2&b&&(e.uIk("aria-valuenow",I._isIndeterminate()?null:I.value)("mode",I.mode),e.Tol("mat-"+I.color),e.ekj("_mat-animation-noopable",I._isNoopAnimation)("mdc-linear-progress--animation-ready",!I._isNoopAnimation)("mdc-linear-progress--indeterminate",I._isIndeterminate()))},inputs:{color:"color",value:[e.lbL.HasDecoratorInputTransform,"value","value",e.Cb_],bufferValue:[e.lbL.HasDecoratorInputTransform,"bufferValue","bufferValue",e.Cb_],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],standalone:!0,features:[e.Xq5,e.jDz],decls:7,vars:4,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(b,I){1&b&&(e.TgZ(0,"div",0),e._UZ(1,"div",1)(2,"div",2),e.qZA(),e.TgZ(3,"div",3),e._UZ(4,"span",4),e.qZA(),e.TgZ(5,"div",5),e._UZ(6,"span",4),e.qZA()),2&b&&(e.xp6(),e.Udp("flex-basis",I._getBufferBarFlexBasis()),e.xp6(2),e.Udp("transform",I._getPrimaryBarTransform()))},styles:["@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half))}100%{transform:translateX(var(--mdc-linear-progress-primary-full))}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-primary-full-neg))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter-neg))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full-neg))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height) * -2.5))}}.mdc-linear-progress__bar-inner{border-color:var(--mdc-linear-progress-active-indicator-color)}.mdc-linear-progress__buffer-dots{background-color:var(--mdc-linear-progress-track-color)}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-color:rgba(0,0,0,0);background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(244, 67, 54, 0.25)'/%3E%3C/svg%3E\")}}.mdc-linear-progress__buffer-bar{background-color:var(--mdc-linear-progress-track-color)}.mdc-linear-progress{height:max(var(--mdc-linear-progress-track-height), var(--mdc-linear-progress-active-indicator-height))}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress{height:4px}}.mdc-linear-progress__bar{height:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__bar-inner{border-top-width:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__buffer{height:var(--mdc-linear-progress-track-height)}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-size:10px var(--mdc-linear-progress-track-height)}}.mdc-linear-progress__buffer{border-radius:var(--mdc-linear-progress-track-shape)}.mat-mdc-progress-bar{display:block;text-align:left;--mdc-linear-progress-primary-half: 83.67142%;--mdc-linear-progress-primary-full: 200.611057%;--mdc-linear-progress-secondary-quarter: 37.651913%;--mdc-linear-progress-secondary-half: 84.386165%;--mdc-linear-progress-secondary-full: 160.277782%;--mdc-linear-progress-primary-half-neg: -83.67142%;--mdc-linear-progress-primary-full-neg: -200.611057%;--mdc-linear-progress-secondary-quarter-neg: -37.651913%;--mdc-linear-progress-secondary-half-neg: -84.386165%;--mdc-linear-progress-secondary-full-neg: -160.277782%}[dir=rtl] .mat-mdc-progress-bar{text-align:right}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}"],encapsulation:2,changeDetection:0})}return x})();function c(x,u=0,m=100){return Math.max(u,Math.min(m,x))}let o=(()=>{class x{static#e=this.\u0275fac=function(b){return new(b||x)};static#t=this.\u0275mod=e.oAB({type:x});static#n=this.\u0275inj=e.cJS({imports:[s.BQ]})}return x})()},55940:(gt,X,a)=>{"use strict";a.d(X,{Cq:()=>m,Ou:()=>x});var e=a(19212),n=a(96814),s=a(23680);const l=["determinateSpinner"];function i(b,I){if(1&b&&(e.O4$(),e.TgZ(0,"svg",11),e._UZ(1,"circle",12),e.qZA()),2&b){const H=e.oxw();e.uIk("viewBox",H._viewBox()),e.xp6(),e.Udp("stroke-dasharray",H._strokeCircumference(),"px")("stroke-dashoffset",H._strokeCircumference()/2,"px")("stroke-width",H._circleStrokeWidth(),"%"),e.uIk("r",H._circleRadius())}}const t=new e.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function p(){return{diameter:c}}}),c=100;let x=(()=>{class b{get color(){return this._color||this._defaultColor}set color(H){this._color=H}constructor(H,O,P){this._elementRef=H,this._defaultColor="primary",this._value=0,this._diameter=c,this._noopAnimations="NoopAnimations"===O&&!!P&&!P._forceAnimations,this.mode="mat-spinner"===H.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",P&&(P.color&&(this.color=this._defaultColor=P.color),P.diameter&&(this.diameter=P.diameter),P.strokeWidth&&(this.strokeWidth=P.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(H){this._value=Math.max(0,Math.min(100,H||0))}get diameter(){return this._diameter}set diameter(H){this._diameter=H||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(H){this._strokeWidth=H||0}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const H=2*this._circleRadius()+this.strokeWidth;return`0 0 ${H} ${H}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static#e=this.\u0275fac=function(O){return new(O||b)(e.Y36(e.SBq),e.Y36(e.QbO,8),e.Y36(t))};static#t=this.\u0275cmp=e.Xpm({type:b,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(O,P){if(1&O&&e.Gf(l,5),2&O){let G;e.iGM(G=e.CRH())&&(P._determinateCircle=G.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(O,P){2&O&&(e.uIk("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===P.mode?P.value:null)("mode",P.mode),e.Tol("mat-"+P.color),e.Udp("width",P.diameter,"px")("height",P.diameter,"px")("--mdc-circular-progress-size",P.diameter+"px")("--mdc-circular-progress-active-indicator-width",P.diameter+"px"),e.ekj("_mat-animation-noopable",P._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===P.mode))},inputs:{color:"color",mode:"mode",value:[e.lbL.HasDecoratorInputTransform,"value","value",e.Cb_],diameter:[e.lbL.HasDecoratorInputTransform,"diameter","diameter",e.Cb_],strokeWidth:[e.lbL.HasDecoratorInputTransform,"strokeWidth","strokeWidth",e.Cb_]},exportAs:["matProgressSpinner"],standalone:!0,features:[e.Xq5,e.jDz],decls:14,vars:11,consts:[["circle",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["determinateSpinner",""],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(O,P){if(1&O&&(e.YNc(0,i,2,8,"ng-template",null,0,e.W1O),e.TgZ(2,"div",1,2),e.O4$(),e.TgZ(4,"svg",3),e._UZ(5,"circle",4),e.qZA()(),e.kcU(),e.TgZ(6,"div",5)(7,"div",6)(8,"div",7),e.GkF(9,8),e.qZA(),e.TgZ(10,"div",9),e.GkF(11,8),e.qZA(),e.TgZ(12,"div",10),e.GkF(13,8),e.qZA()()()),2&O){const G=e.MAs(1);e.xp6(4),e.uIk("viewBox",P._viewBox()),e.xp6(),e.Udp("stroke-dasharray",P._strokeCircumference(),"px")("stroke-dashoffset",P._strokeDashOffset(),"px")("stroke-width",P._circleStrokeWidth(),"%"),e.uIk("r",P._circleRadius()),e.xp6(4),e.Q6J("ngTemplateOutlet",G),e.xp6(2),e.Q6J("ngTemplateOutlet",G),e.xp6(2),e.Q6J("ngTemplateOutlet",G)}},dependencies:[n.tP],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0})}return b})(),m=(()=>{class b{static#e=this.\u0275fac=function(O){return new(O||b)};static#t=this.\u0275mod=e.oAB({type:b});static#n=this.\u0275inj=e.cJS({imports:[n.ez,s.BQ]})}return b})()},87466:(gt,X,a)=>{"use strict";a.d(X,{Fk:()=>G,U0:()=>P,VQ:()=>O});var e=a(19212),n=a(23680),s=a(4300),l=a(78337),i=a(56223),t=a(96814);const p=["input"],c=["formField"],o=["*"];let x=0;class u{constructor(ae,J){this.source=ae,this.value=J}}const m={provide:i.JU,useExisting:(0,e.Gpc)(()=>O),multi:!0},b=new e.OlP("MatRadioGroup"),I=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function H(){return{color:"accent"}}});let O=(()=>{class B{get name(){return this._name}set name(J){this._name=J,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(J){this._labelPosition="before"===J?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(J){this._value!==J&&(this._value=J,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(J){this._selected=J,this.value=J?J.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(J){this._disabled=J,this._markRadiosForCheck()}get required(){return this._required}set required(J){this._required=J,this._markRadiosForCheck()}constructor(J){this._changeDetector=J,this._value=null,this._name="mat-radio-group-"+x++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new e.vpe}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(J=>J===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(J=>{J.name=this.name,J._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(q=>{q.checked=this.value===q.value,q.checked&&(this._selected=q)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new u(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(J=>J._markForCheck())}writeValue(J){this.value=J,this._changeDetector.markForCheck()}registerOnChange(J){this._controlValueAccessorChangeFn=J}registerOnTouched(J){this.onTouched=J}setDisabledState(J){this.disabled=J,this._changeDetector.markForCheck()}static#e=this.\u0275fac=function(q){return new(q||B)(e.Y36(e.sBO))};static#t=this.\u0275dir=e.lG2({type:B,selectors:[["mat-radio-group"]],contentQueries:function(q,j,Y){if(1&q&&e.Suo(Y,P,5),2&q){let K;e.iGM(K=e.CRH())&&(j._radios=K)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[e.lbL.HasDecoratorInputTransform,"disabled","disabled",e.VuI],required:[e.lbL.HasDecoratorInputTransform,"required","required",e.VuI]},outputs:{change:"change"},exportAs:["matRadioGroup"],standalone:!0,features:[e._Bn([m,{provide:b,useExisting:B}]),e.Xq5]})}return B})(),P=(()=>{class B{get checked(){return this._checked}set checked(J){this._checked!==J&&(this._checked=J,J&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!J&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),J&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(J){this._value!==J&&(this._value=J,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===J),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(J){this._labelPosition=J}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(J){this._setDisabled(J)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(J){this._required=J}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(J){this._color=J}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(J,q,j,Y,K,ne,ee,$){this._elementRef=q,this._changeDetector=j,this._focusMonitor=Y,this._radioDispatcher=K,this._providerOverride=ee,this._uniqueId="mat-radio-"+ ++x,this.id=this._uniqueId,this.disableRipple=!1,this.tabIndex=0,this.change=new e.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=J,this._noopAnimations="NoopAnimations"===ne,$&&(this.tabIndex=(0,e.Cb_)($,0))}focus(J,q){q?this._focusMonitor.focusVia(this._inputElement,q,J):this._inputElement.nativeElement.focus(J)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((J,q)=>{J!==this.id&&q===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(J=>{!J&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new u(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(J){J.stopPropagation()}_onInputInteraction(J){if(J.stopPropagation(),!this.checked&&!this.disabled){const q=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),q&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(J){this._onInputInteraction(J),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(J){this._disabled!==J&&(this._disabled=J,this._changeDetector.markForCheck())}_updateTabIndex(){const J=this.radioGroup;let q;if(q=J&&J.selected&&!this.disabled?J.selected===this?this.tabIndex:-1:this.tabIndex,q!==this._previousTabIndex){const j=this._inputElement?.nativeElement;j&&(j.setAttribute("tabindex",q+""),this._previousTabIndex=q)}}static#e=this.\u0275fac=function(q){return new(q||B)(e.Y36(b,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(s.tE),e.Y36(l.A8),e.Y36(e.QbO,8),e.Y36(I,8),e.$8M("tabindex"))};static#t=this.\u0275cmp=e.Xpm({type:B,selectors:[["mat-radio-button"]],viewQuery:function(q,j){if(1&q&&(e.Gf(p,5),e.Gf(c,7,e.SBq)),2&q){let Y;e.iGM(Y=e.CRH())&&(j._inputElement=Y.first),e.iGM(Y=e.CRH())&&(j._rippleTrigger=Y.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(q,j){1&q&&e.NdJ("focus",function(){return j._inputElement.nativeElement.focus()}),2&q&&(e.uIk("id",j.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.ekj("mat-primary","primary"===j.color)("mat-accent","accent"===j.color)("mat-warn","warn"===j.color)("mat-mdc-radio-checked",j.checked)("_mat-animation-noopable",j._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[e.lbL.None,"aria-label","ariaLabel"],ariaLabelledby:[e.lbL.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[e.lbL.None,"aria-describedby","ariaDescribedby"],disableRipple:[e.lbL.HasDecoratorInputTransform,"disableRipple","disableRipple",e.VuI],tabIndex:[e.lbL.HasDecoratorInputTransform,"tabIndex","tabIndex",J=>null==J?0:(0,e.Cb_)(J)],checked:[e.lbL.HasDecoratorInputTransform,"checked","checked",e.VuI],value:"value",labelPosition:"labelPosition",disabled:[e.lbL.HasDecoratorInputTransform,"disabled","disabled",e.VuI],required:[e.lbL.HasDecoratorInputTransform,"required","required",e.VuI],color:"color"},outputs:{change:"change"},exportAs:["matRadioButton"],standalone:!0,features:[e.Xq5,e.jDz],ngContentSelectors:o,decls:13,vars:16,consts:[["mat-internal-form-field","",3,"labelPosition"],["formField",""],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"id","checked","disabled","required","change"],["input",""],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(q,j){1&q&&(e.F$t(),e.TgZ(0,"div",0,1)(2,"div",2)(3,"div",3),e.NdJ("click",function(K){return j._onTouchTargetClick(K)}),e.qZA(),e.TgZ(4,"input",4,5),e.NdJ("change",function(K){return j._onInputInteraction(K)}),e.qZA(),e.TgZ(6,"div",6),e._UZ(7,"div",7)(8,"div",8),e.qZA(),e.TgZ(9,"div",9),e._UZ(10,"div",10),e.qZA()(),e.TgZ(11,"label",11),e.Hsn(12),e.qZA()()),2&q&&(e.Q6J("labelPosition",j.labelPosition),e.xp6(2),e.ekj("mdc-radio--disabled",j.disabled),e.xp6(2),e.Q6J("id",j.inputId)("checked",j.checked)("disabled",j.disabled)("required",j.required),e.uIk("name",j.name)("value",j.value)("aria-label",j.ariaLabel)("aria-labelledby",j.ariaLabelledby)("aria-describedby",j.ariaDescribedby),e.xp6(5),e.Q6J("matRippleTrigger",j._rippleTrigger.nativeElement)("matRippleDisabled",j._isRippleDisabled())("matRippleCentered",!0),e.xp6(2),e.Q6J("for",j.inputId))},dependencies:[n.wG,n.fq],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);right:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);left:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0})}return B})(),G=(()=>{class B{static#e=this.\u0275fac=function(q){return new(q||B)};static#t=this.\u0275mod=e.oAB({type:B});static#n=this.\u0275inj=e.cJS({imports:[n.BQ,t.ez,n.si,P,n.BQ]})}return B})()},98525:(gt,X,a)=>{"use strict";a.d(X,{LD:()=>Z,gD:()=>Vt});var e=a(69594),n=a(96814),s=a(19212),l=a(23680),i=a(64170),t=a(39505),p=a(4300),c=a(49388),o=a(78337),x=a(36028),u=a(56223),m=a(72079),b=a(24917),I=a(47354),H=a(53075),O=a(75222),P=a(51418),G=a(97734),B=a(96124),ae=a(32068),J=a(19352),q=a(86825);const j=["trigger"],Y=["panel"];function K(Pt,Oe){if(1&Pt&&(s.TgZ(0,"span",9),s._uU(1),s.qZA()),2&Pt){const ye=s.oxw();s.xp6(),s.Oqu(ye.placeholder)}}function ne(Pt,Oe){1&Pt&&s.Hsn(0)}function ee(Pt,Oe){if(1&Pt&&(s.TgZ(0,"span",11),s._uU(1),s.qZA()),2&Pt){const ye=s.oxw(2);s.xp6(),s.Oqu(ye.triggerValue)}}function $(Pt,Oe){if(1&Pt&&(s.TgZ(0,"span",10),s.YNc(1,ne,1,0)(2,ee,2,1),s.qZA()),2&Pt){const ye=s.oxw();s.xp6(),s.um2(1,ye.customTrigger?1:2)}}function ue(Pt,Oe){if(1&Pt){const ye=s.EpF();s.O4$(),s.kcU(),s.TgZ(0,"div",12,13),s.NdJ("@transformPanel.done",function(ft){s.CHM(ye);const Dt=s.oxw();return s.KtG(Dt._panelDoneAnimatingStream.next(ft.toState))})("keydown",function(ft){s.CHM(ye);const Dt=s.oxw();return s.KtG(Dt._handleKeydown(ft))}),s.Hsn(2,1),s.qZA()}if(2&Pt){const ye=s.oxw();s.Gre("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",ye._getPanelTheme(),""),s.Q6J("ngClass",ye.panelClass)("@transformPanel","showing"),s.uIk("id",ye.id+"-panel")("aria-multiselectable",ye.multiple)("aria-label",ye.ariaLabel||null)("aria-labelledby",ye._getPanelAriaLabelledby())}}const ge=[[["mat-select-trigger"]],"*"],Ke=["mat-select-trigger","*"],at={transformPanelWrap:(0,q.X$)("transformPanelWrap",[(0,q.eR)("* => void",(0,q.IO)("@transformPanel",[(0,q.pV)()],{optional:!0}))]),transformPanel:(0,q.X$)("transformPanel",[(0,q.SB)("void",(0,q.oB)({opacity:0,transform:"scale(1, 0.8)"})),(0,q.eR)("void => showing",(0,q.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,q.oB)({opacity:1,transform:"scale(1, 1)"}))),(0,q.eR)("* => void",(0,q.jt)("100ms linear",(0,q.oB)({opacity:0})))])};let me=0;const Se=new s.OlP("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{const Pt=(0,s.f3M)(e.aV);return()=>Pt.scrollStrategies.reposition()}}),We=new s.OlP("MAT_SELECT_CONFIG"),et={provide:Se,deps:[e.aV],useFactory:function Ue(Pt){return()=>Pt.scrollStrategies.reposition()}},Et=new s.OlP("MatSelectTrigger");class lt{constructor(Oe,ye){this.source=Oe,this.value=ye}}let Vt=(()=>{class Pt{_scrollOptionIntoView(ye){const ve=this.options.toArray()[ye];if(ve){const ft=this.panel.nativeElement,Dt=(0,l.CB)(ye,this.options,this.optionGroups),Rn=ve._getHostElement();ft.scrollTop=0===ye&&1===Dt?0:(0,l.jH)(Rn.offsetTop,Rn.offsetHeight,ft.scrollTop,ft.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(ye){return new lt(this,ye)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(ye){this._hideSingleSelectionIndicator=ye,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(ye){this._placeholder=ye,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(u.kI.required)??!1}set required(ye){this._required=ye,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(ye){this._multiple=ye}get compareWith(){return this._compareWith}set compareWith(ye){this._compareWith=ye,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(ye){this._assignValue(ye)&&this._onChange(ye)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(ye){this._errorStateTracker.matcher=ye}get id(){return this._id}set id(ye){this._id=ye||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(ye){this._errorStateTracker.errorState=ye}constructor(ye,ve,ft,Dt,Rn,ti,Xt,Je,dt,Ie,ot,ct,tn,yi){this._viewportRuler=ye,this._changeDetectorRef=ve,this._ngZone=ft,this._elementRef=Rn,this._dir=ti,this._parentFormField=dt,this.ngControl=Ie,this._liveAnnouncer=tn,this._defaultOptions=yi,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(ni,sn)=>ni===sn,this._uid="mat-select-"+me++,this._triggerAriaLabelledBy=null,this._destroy=new m.xQ,this.stateChanges=new m.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+me++,this._panelDoneAnimatingStream=new m.xQ,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this.optionSelectionChanges=(0,b.P)(()=>{const ni=this.options;return ni?ni.changes.pipe((0,H.O)(ni),(0,O.w)(()=>(0,I.T)(...ni.map(sn=>sn.onSelectionChange)))):this._ngZone.onStable.pipe((0,P.q)(1),(0,O.w)(()=>this.optionSelectionChanges))}),this.openedChange=new s.vpe,this._openedStream=this.openedChange.pipe((0,G.h)(ni=>ni),(0,B.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,G.h)(ni=>!ni),(0,B.U)(()=>{})),this.selectionChange=new s.vpe,this.valueChange=new s.vpe,this._trackedModal=null,this._skipPredicate=ni=>!this.panelOpen&&ni.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),null!=yi?.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=yi.typeaheadDebounceInterval),this._errorStateTracker=new l.ZT(Dt,Ie,Je,Xt,this.stateChanges),this._scrollStrategyFactory=ct,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(ot)||0,this.id=this.id}ngOnInit(){this._selectionModel=new o.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,ae.x)(),(0,J.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe((0,J.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,J.R)(this._destroy)).subscribe(ye=>{ye.added.forEach(ve=>ve.select()),ye.removed.forEach(ve=>ve.deselect())}),this.options.changes.pipe((0,H.O)(null),(0,J.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const ye=this._getTriggerAriaLabelledby(),ve=this.ngControl;if(ye!==this._triggerAriaLabelledBy){const ft=this._elementRef.nativeElement;this._triggerAriaLabelledBy=ye,ye?ft.setAttribute("aria-labelledby",ye):ft.removeAttribute("aria-labelledby")}ve&&(this._previousControl!==ve.control&&(void 0!==this._previousControl&&null!==ve.disabled&&ve.disabled!==this.disabled&&(this.disabled=ve.disabled),this._previousControl=ve.control),this.updateErrorState())}ngOnChanges(ye){(ye.disabled||ye.userAriaDescribedBy)&&this.stateChanges.next(),ye.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){const ye=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!ye)return;const ve=`${this.id}-panel`;this._trackedModal&&(0,p.iD)(this._trackedModal,"aria-owns",ve),(0,p.Zf)(ye,"aria-owns",ve),this._trackedModal=ye}_clearFromModal(){this._trackedModal&&((0,p.iD)(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(ye){this._assignValue(ye)}registerOnChange(ye){this._onChange=ye}registerOnTouched(ye){this._onTouched=ye}setDisabledState(ye){this.disabled=ye,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const ye=this._selectionModel.selected.map(ve=>ve.viewValue);return this._isRtl()&&ye.reverse(),ye.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(ye){this.disabled||(this.panelOpen?this._handleOpenKeydown(ye):this._handleClosedKeydown(ye))}_handleClosedKeydown(ye){const ve=ye.keyCode,ft=ve===x.JH||ve===x.LH||ve===x.oh||ve===x.SV,Dt=ve===x.K5||ve===x.L_,Rn=this._keyManager;if(!Rn.isTyping()&&Dt&&!(0,x.Vb)(ye)||(this.multiple||ye.altKey)&&ft)ye.preventDefault(),this.open();else if(!this.multiple){const ti=this.selected;Rn.onKeydown(ye);const Xt=this.selected;Xt&&ti!==Xt&&this._liveAnnouncer.announce(Xt.viewValue,1e4)}}_handleOpenKeydown(ye){const ve=this._keyManager,ft=ye.keyCode,Dt=ft===x.JH||ft===x.LH,Rn=ve.isTyping();if(Dt&&ye.altKey)ye.preventDefault(),this.close();else if(Rn||ft!==x.K5&&ft!==x.L_||!ve.activeItem||(0,x.Vb)(ye))if(!Rn&&this._multiple&&ft===x.A&&ye.ctrlKey){ye.preventDefault();const ti=this.options.some(Xt=>!Xt.disabled&&!Xt.selected);this.options.forEach(Xt=>{Xt.disabled||(ti?Xt.select():Xt.deselect())})}else{const ti=ve.activeItemIndex;ve.onKeydown(ye),this._multiple&&Dt&&ye.shiftKey&&ve.activeItem&&ve.activeItemIndex!==ti&&ve.activeItem._selectViaInteraction()}else ye.preventDefault(),ve.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,P.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(ye){if(this.options.forEach(ve=>ve.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&ye)Array.isArray(ye),ye.forEach(ve=>this._selectOptionByValue(ve)),this._sortValues();else{const ve=this._selectOptionByValue(ye);ve?this._keyManager.updateActiveItem(ve):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(ye){const ve=this.options.find(ft=>{if(this._selectionModel.isSelected(ft))return!1;try{return null!=ft.value&&this._compareWith(ft.value,ye)}catch{return!1}});return ve&&this._selectionModel.select(ve),ve}_assignValue(ye){return!!(ye!==this._value||this._multiple&&Array.isArray(ye))&&(this.options&&this._setSelectionByValue(ye),this._value=ye,!0)}_getOverlayWidth(ye){return"auto"===this.panelWidth?(ye instanceof e.xu?ye.elementRef:ye||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}_syncParentProperties(){if(this.options)for(const ye of this.options)ye._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new p.s1(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const ye=(0,I.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,J.R)(ye)).subscribe(ve=>{this._onSelect(ve.source,ve.isUserInput),ve.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,I.T)(...this.options.map(ve=>ve._stateChanges)).pipe((0,J.R)(ye)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(ye,ve){const ft=this._selectionModel.isSelected(ye);null!=ye.value||this._multiple?(ft!==ye.selected&&(ye.selected?this._selectionModel.select(ye):this._selectionModel.deselect(ye)),ve&&this._keyManager.setActiveItem(ye),this.multiple&&(this._sortValues(),ve&&this.focus())):(ye.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(ye.value)),ft!==this._selectionModel.isSelected(ye)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const ye=this.options.toArray();this._selectionModel.sort((ve,ft)=>this.sortComparator?this.sortComparator(ve,ft,ye):ye.indexOf(ve)-ye.indexOf(ft)),this.stateChanges.next()}}_propagateChanges(ye){let ve;ve=this.multiple?this.selected.map(ft=>ft.value):this.selected?this.selected.value:ye,this._value=ve,this.valueChange.emit(ve),this._onChange(ve),this.selectionChange.emit(this._getChangeEvent(ve)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let ye=-1;for(let ve=0;ve<this.options.length;ve++)if(!this.options.get(ve).disabled){ye=ve;break}this._keyManager.setActiveItem(ye)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(ye){this._elementRef.nativeElement.focus(ye)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const ye=this._parentFormField?.getLabelId();return this.ariaLabelledby?(ye?ye+" ":"")+this.ariaLabelledby:ye}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const ye=this._parentFormField?.getLabelId();let ve=(ye?ye+" ":"")+this._valueId;return this.ariaLabelledby&&(ve+=" "+this.ariaLabelledby),ve}_panelDoneAnimating(ye){this.openedChange.emit(ye)}setDescribedByIds(ye){ye.length?this._elementRef.nativeElement.setAttribute("aria-describedby",ye.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static#e=this.\u0275fac=function(ve){return new(ve||Pt)(s.Y36(t.rL),s.Y36(s.sBO),s.Y36(s.R0b),s.Y36(l.rD),s.Y36(s.SBq),s.Y36(c.Is,8),s.Y36(u.F,8),s.Y36(u.sg,8),s.Y36(i.G_,8),s.Y36(u.a5,10),s.$8M("tabindex"),s.Y36(Se),s.Y36(p.Kd),s.Y36(We,8))};static#t=this.\u0275cmp=s.Xpm({type:Pt,selectors:[["mat-select"]],contentQueries:function(ve,ft,Dt){if(1&ve&&(s.Suo(Dt,Et,5),s.Suo(Dt,l.ey,5),s.Suo(Dt,l.K7,5)),2&ve){let Rn;s.iGM(Rn=s.CRH())&&(ft.customTrigger=Rn.first),s.iGM(Rn=s.CRH())&&(ft.options=Rn),s.iGM(Rn=s.CRH())&&(ft.optionGroups=Rn)}},viewQuery:function(ve,ft){if(1&ve&&(s.Gf(j,5),s.Gf(Y,5),s.Gf(e.pI,5)),2&ve){let Dt;s.iGM(Dt=s.CRH())&&(ft.trigger=Dt.first),s.iGM(Dt=s.CRH())&&(ft.panel=Dt.first),s.iGM(Dt=s.CRH())&&(ft._overlayDir=Dt.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(ve,ft){1&ve&&s.NdJ("keydown",function(Rn){return ft._handleKeydown(Rn)})("focus",function(){return ft._onFocus()})("blur",function(){return ft._onBlur()}),2&ve&&(s.uIk("id",ft.id)("tabindex",ft.disabled?-1:ft.tabIndex)("aria-controls",ft.panelOpen?ft.id+"-panel":null)("aria-expanded",ft.panelOpen)("aria-label",ft.ariaLabel||null)("aria-required",ft.required.toString())("aria-disabled",ft.disabled.toString())("aria-invalid",ft.errorState)("aria-activedescendant",ft._getAriaActiveDescendant()),s.ekj("mat-mdc-select-disabled",ft.disabled)("mat-mdc-select-invalid",ft.errorState)("mat-mdc-select-required",ft.required)("mat-mdc-select-empty",ft.empty)("mat-mdc-select-multiple",ft.multiple))},inputs:{userAriaDescribedBy:[s.lbL.None,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[s.lbL.HasDecoratorInputTransform,"disabled","disabled",s.VuI],disableRipple:[s.lbL.HasDecoratorInputTransform,"disableRipple","disableRipple",s.VuI],tabIndex:[s.lbL.HasDecoratorInputTransform,"tabIndex","tabIndex",ye=>null==ye?0:(0,s.Cb_)(ye)],hideSingleSelectionIndicator:[s.lbL.HasDecoratorInputTransform,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",s.VuI],placeholder:"placeholder",required:[s.lbL.HasDecoratorInputTransform,"required","required",s.VuI],multiple:[s.lbL.HasDecoratorInputTransform,"multiple","multiple",s.VuI],disableOptionCentering:[s.lbL.HasDecoratorInputTransform,"disableOptionCentering","disableOptionCentering",s.VuI],compareWith:"compareWith",value:"value",ariaLabel:[s.lbL.None,"aria-label","ariaLabel"],ariaLabelledby:[s.lbL.None,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[s.lbL.HasDecoratorInputTransform,"typeaheadDebounceInterval","typeaheadDebounceInterval",s.Cb_],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[s._Bn([{provide:i.Eo,useExisting:Pt},{provide:l.HF,useExisting:Pt}]),s.Xq5,s.TTD,s.jDz],ngContentSelectors:Ke,decls:11,vars:8,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(ve,ft){if(1&ve&&(s.F$t(ge),s.TgZ(0,"div",0,1),s.NdJ("click",function(){return ft.open()}),s.TgZ(3,"div",2),s.YNc(4,K,2,1,"span",3)(5,$,3,1),s.qZA(),s.TgZ(6,"div",4)(7,"div",5),s.O4$(),s.TgZ(8,"svg",6),s._UZ(9,"path",7),s.qZA()()()(),s.YNc(10,ue,3,9,"ng-template",8),s.NdJ("backdropClick",function(){return ft.close()})("attach",function(){return ft._onAttached()})("detach",function(){return ft.close()})),2&ve){const Dt=s.MAs(1);s.xp6(3),s.uIk("id",ft._valueId),s.xp6(),s.um2(4,ft.empty?4:5),s.xp6(6),s.Q6J("cdkConnectedOverlayPanelClass",ft._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",ft._scrollStrategy)("cdkConnectedOverlayOrigin",ft._preferredOverlayOrigin||Dt)("cdkConnectedOverlayOpen",ft.panelOpen)("cdkConnectedOverlayPositions",ft._positions)("cdkConnectedOverlayWidth",ft._overlayWidth)}},dependencies:[e.xu,e.pI,n.mk],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[at.transformPanel]},changeDetection:0})}return Pt})(),Z=(()=>{class Pt{static#e=this.\u0275fac=function(ve){return new(ve||Pt)};static#t=this.\u0275mod=s.oAB({type:Pt});static#n=this.\u0275inj=s.cJS({providers:[et],imports:[n.ez,e.U8,l.Ng,l.BQ,t.ZD,i.lN,l.Ng,l.BQ]})}return Pt})()},32651:(gt,X,a)=>{"use strict";a.d(X,{JX:()=>lt,Rh:()=>Et,SJ:()=>r,TM:()=>Vt});var e=a(39505),n=a(19212),s=a(23680),l=a(4300),i=a(49388),t=a(42495),p=a(36028),c=a(62831),o=a(96814),x=a(72079),u=a(49016),m=a(47354),b=a(97734),I=a(96124),H=a(64014),O=a(19352),P=a(32068),G=a(51418),B=a(53075),ae=a(96776),J=a(86825);const q=["*"],j=["content"];function Y(Z,Pt){if(1&Z){const Oe=n.EpF();n.TgZ(0,"div",1),n.NdJ("click",function(){n.CHM(Oe);const ve=n.oxw();return n.KtG(ve._onBackdropClicked())}),n.qZA()}if(2&Z){const Oe=n.oxw();n.ekj("mat-drawer-shown",Oe._isShowingBackdrop())}}function K(Z,Pt){1&Z&&(n.TgZ(0,"mat-drawer-content"),n.Hsn(1,2),n.qZA())}const ne=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],ee=["mat-drawer","mat-drawer-content","*"];function $(Z,Pt){if(1&Z){const Oe=n.EpF();n.TgZ(0,"div",1),n.NdJ("click",function(){n.CHM(Oe);const ve=n.oxw();return n.KtG(ve._onBackdropClicked())}),n.qZA()}if(2&Z){const Oe=n.oxw();n.ekj("mat-drawer-shown",Oe._isShowingBackdrop())}}function ue(Z,Pt){1&Z&&(n.TgZ(0,"mat-sidenav-content"),n.Hsn(1,2),n.qZA())}const ge=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Ke=["mat-sidenav","mat-sidenav-content","*"],Le={transformDrawer:(0,J.X$)("transform",[(0,J.SB)("open, open-instant",(0,J.oB)({transform:"none",visibility:"visible"})),(0,J.SB)("void",(0,J.oB)({"box-shadow":"none",visibility:"hidden"})),(0,J.eR)("void => open-instant",(0,J.jt)("0ms")),(0,J.eR)("void <=> open, open-instant => void",(0,J.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Te=new n.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Se(){return!1}}),me=new n.OlP("MAT_DRAWER_CONTAINER");let Ue=(()=>{class Z extends e.PQ{constructor(Oe,ye,ve,ft,Dt){super(ve,ft,Dt),this._changeDetectorRef=Oe,this._container=ye}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}static#e=this.\u0275fac=function(ye){return new(ye||Z)(n.Y36(n.sBO),n.Y36((0,n.Gpc)(()=>et)),n.Y36(n.SBq),n.Y36(e.mF),n.Y36(n.R0b))};static#t=this.\u0275cmp=n.Xpm({type:Z,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(ye,ve){2&ye&&n.Udp("margin-left",ve._container._contentMargins.left,"px")("margin-right",ve._container._contentMargins.right,"px")},standalone:!0,features:[n._Bn([{provide:e.PQ,useExisting:Z}]),n.qOj,n.jDz],ngContentSelectors:q,decls:1,vars:0,template:function(ye,ve){1&ye&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0})}return Z})(),We=(()=>{class Z{get position(){return this._position}set position(Oe){(Oe="end"===Oe?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(Oe),this._position=Oe,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(Oe){this._mode=Oe,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(Oe){this._disableClose=(0,t.Ig)(Oe)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(Oe){("true"===Oe||"false"===Oe||null==Oe)&&(Oe=(0,t.Ig)(Oe)),this._autoFocus=Oe}get opened(){return this._opened}set opened(Oe){this.toggle((0,t.Ig)(Oe))}constructor(Oe,ye,ve,ft,Dt,Rn,ti,Xt){this._elementRef=Oe,this._focusTrapFactory=ye,this._focusMonitor=ve,this._platform=ft,this._ngZone=Dt,this._interactivityChecker=Rn,this._doc=ti,this._container=Xt,this._focusTrap=null,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new x.xQ,this._animationEnd=new x.xQ,this._animationState="void",this.openedChange=new n.vpe(!0),this._openedStream=this.openedChange.pipe((0,b.h)(Je=>Je),(0,I.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,b.h)(Je=>Je.fromState!==Je.toState&&0===Je.toState.indexOf("open")),(0,H.h)(void 0)),this._closedStream=this.openedChange.pipe((0,b.h)(Je=>!Je),(0,I.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,b.h)(Je=>Je.fromState!==Je.toState&&"void"===Je.toState),(0,H.h)(void 0)),this._destroyed=new x.xQ,this.onPositionChanged=new n.vpe,this._modeChanged=new x.xQ,this.openedChange.subscribe(Je=>{Je?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,u.R)(this._elementRef.nativeElement,"keydown").pipe((0,b.h)(Je=>Je.keyCode===p.hY&&!this.disableClose&&!(0,p.Vb)(Je)),(0,O.R)(this._destroyed)).subscribe(Je=>this._ngZone.run(()=>{this.close(),Je.stopPropagation(),Je.preventDefault()}))}),this._animationEnd.pipe((0,P.x)((Je,dt)=>Je.fromState===dt.fromState&&Je.toState===dt.toState)).subscribe(Je=>{const{fromState:dt,toState:Ie}=Je;(0===Ie.indexOf("open")&&"void"===dt||"void"===Ie&&0===dt.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(Oe,ye){this._interactivityChecker.isFocusable(Oe)||(Oe.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const ve=()=>{Oe.removeEventListener("blur",ve),Oe.removeEventListener("mousedown",ve),Oe.removeAttribute("tabindex")};Oe.addEventListener("blur",ve),Oe.addEventListener("mousedown",ve)})),Oe.focus(ye)}_focusByCssSelector(Oe,ye){let ve=this._elementRef.nativeElement.querySelector(Oe);ve&&this._forceFocus(ve,ye)}_takeFocus(){if(!this._focusTrap)return;const Oe=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(ye=>{!ye&&"function"==typeof this._elementRef.nativeElement.focus&&Oe.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(Oe){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,Oe):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const Oe=this._doc.activeElement;return!!Oe&&this._elementRef.nativeElement.contains(Oe)}ngAfterViewInit(){this._isAttached=!0,"end"===this._position&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap?.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(Oe){return this.toggle(!0,Oe)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(Oe=!this.opened,ye){Oe&&ye&&(this._openedVia=ye);const ve=this._setOpen(Oe,!Oe&&this._isFocusWithinDrawer(),this._openedVia||"program");return Oe||(this._openedVia=null),ve}_setOpen(Oe,ye,ve){return this._opened=Oe,Oe?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",ye&&this._restoreFocus(ve)),this._updateFocusTrapState(),new Promise(ft=>{this.openedChange.pipe((0,G.q)(1)).subscribe(Dt=>ft(Dt?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop)}_updatePositionInParent(Oe){if(!this._platform.isBrowser)return;const ye=this._elementRef.nativeElement,ve=ye.parentNode;"end"===Oe?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),ve.insertBefore(this._anchor,ye)),ve.appendChild(ye)):this._anchor&&this._anchor.parentNode.insertBefore(ye,this._anchor)}static#e=this.\u0275fac=function(ye){return new(ye||Z)(n.Y36(n.SBq),n.Y36(l.qV),n.Y36(l.tE),n.Y36(c.t4),n.Y36(n.R0b),n.Y36(l.ic),n.Y36(o.K0,8),n.Y36(me,8))};static#t=this.\u0275cmp=n.Xpm({type:Z,selectors:[["mat-drawer"]],viewQuery:function(ye,ve){if(1&ye&&n.Gf(j,5),2&ye){let ft;n.iGM(ft=n.CRH())&&(ve._content=ft.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(ye,ve){1&ye&&n.WFA("@transform.start",function(Dt){return ve._animationStarted.next(Dt)})("@transform.done",function(Dt){return ve._animationEnd.next(Dt)}),2&ye&&(n.uIk("align",null),n.d8E("@transform",ve._animationState),n.ekj("mat-drawer-end","end"===ve.position)("mat-drawer-over","over"===ve.mode)("mat-drawer-push","push"===ve.mode)("mat-drawer-side","side"===ve.mode)("mat-drawer-opened",ve.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],standalone:!0,features:[n.jDz],ngContentSelectors:q,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(ye,ve){1&ye&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA())},dependencies:[e.PQ],encapsulation:2,data:{animation:[Le.transformDrawer]},changeDetection:0})}return Z})(),et=(()=>{class Z{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(Oe){this._autosize=(0,t.Ig)(Oe)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(Oe){this._backdropOverride=null==Oe?null:(0,t.Ig)(Oe)}get scrollable(){return this._userContent||this._content}constructor(Oe,ye,ve,ft,Dt,Rn=!1,ti){this._dir=Oe,this._element=ye,this._ngZone=ve,this._changeDetectorRef=ft,this._animationMode=ti,this._drawers=new n.n_E,this.backdropClick=new n.vpe,this._destroyed=new x.xQ,this._doCheckSubject=new x.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new x.xQ,Oe&&Oe.change.pipe((0,O.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Dt.change().pipe((0,O.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=Rn}ngAfterContentInit(){this._allDrawers.changes.pipe((0,B.O)(this._allDrawers),(0,O.R)(this._destroyed)).subscribe(Oe=>{this._drawers.reset(Oe.filter(ye=>!ye._container||ye._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,B.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(Oe=>{this._watchDrawerToggle(Oe),this._watchDrawerPosition(Oe),this._watchDrawerMode(Oe)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,ae.b)(10),(0,O.R)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(Oe=>Oe.open())}close(){this._drawers.forEach(Oe=>Oe.close())}updateContentMargins(){let Oe=0,ye=0;if(this._left&&this._left.opened)if("side"==this._left.mode)Oe+=this._left._getWidth();else if("push"==this._left.mode){const ve=this._left._getWidth();Oe+=ve,ye-=ve}if(this._right&&this._right.opened)if("side"==this._right.mode)ye+=this._right._getWidth();else if("push"==this._right.mode){const ve=this._right._getWidth();ye+=ve,Oe-=ve}Oe=Oe||null,ye=ye||null,(Oe!==this._contentMargins.left||ye!==this._contentMargins.right)&&(this._contentMargins={left:Oe,right:ye},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(Oe){Oe._animationStarted.pipe((0,b.h)(ye=>ye.fromState!==ye.toState),(0,O.R)(this._drawers.changes)).subscribe(ye=>{"open-instant"!==ye.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==Oe.mode&&Oe.openedChange.pipe((0,O.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(Oe.opened))}_watchDrawerPosition(Oe){Oe&&Oe.onPositionChanged.pipe((0,O.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,G.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(Oe){Oe&&Oe._modeChanged.pipe((0,O.R)((0,m.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(Oe){const ye=this._element.nativeElement.classList,ve="mat-drawer-container-has-open";Oe?ye.add(ve):ye.remove(ve)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(Oe=>{"end"==Oe.position?this._end=Oe:this._start=Oe}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(Oe=>Oe&&!Oe.disableClose&&this._drawerHasBackdrop(Oe)).forEach(Oe=>Oe._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(Oe){return null!=Oe&&Oe.opened}_drawerHasBackdrop(Oe){return null==this._backdropOverride?!!Oe&&"side"!==Oe.mode:this._backdropOverride}static#e=this.\u0275fac=function(ye){return new(ye||Z)(n.Y36(i.Is,8),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(e.rL),n.Y36(Te),n.Y36(n.QbO,8))};static#t=this.\u0275cmp=n.Xpm({type:Z,selectors:[["mat-drawer-container"]],contentQueries:function(ye,ve,ft){if(1&ye&&(n.Suo(ft,Ue,5),n.Suo(ft,We,5)),2&ye){let Dt;n.iGM(Dt=n.CRH())&&(ve._content=Dt.first),n.iGM(Dt=n.CRH())&&(ve._allDrawers=Dt)}},viewQuery:function(ye,ve){if(1&ye&&n.Gf(Ue,5),2&ye){let ft;n.iGM(ft=n.CRH())&&(ve._userContent=ft.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(ye,ve){2&ye&&n.ekj("mat-drawer-container-explicit-backdrop",ve._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],standalone:!0,features:[n._Bn([{provide:me,useExisting:Z}]),n.jDz],ngContentSelectors:ee,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(ye,ve){1&ye&&(n.F$t(ne),n.YNc(0,Y,1,2,"div",0),n.Hsn(1),n.Hsn(2,1),n.YNc(3,K,2,0,"mat-drawer-content")),2&ye&&(n.um2(0,ve.hasBackdrop?0:-1),n.xp6(3),n.um2(3,ve._content?-1:3))},dependencies:[Ue],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);position:relative;z-index:4;color:var(--mat-sidenav-container-text-color);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}return Z})(),Et=(()=>{class Z extends Ue{constructor(Oe,ye,ve,ft,Dt){super(Oe,ye,ve,ft,Dt)}static#e=this.\u0275fac=function(ye){return new(ye||Z)(n.Y36(n.sBO),n.Y36((0,n.Gpc)(()=>Vt)),n.Y36(n.SBq),n.Y36(e.mF),n.Y36(n.R0b))};static#t=this.\u0275cmp=n.Xpm({type:Z,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(ye,ve){2&ye&&n.Udp("margin-left",ve._container._contentMargins.left,"px")("margin-right",ve._container._contentMargins.right,"px")},standalone:!0,features:[n._Bn([{provide:e.PQ,useExisting:Z}]),n.qOj,n.jDz],ngContentSelectors:q,decls:1,vars:0,template:function(ye,ve){1&ye&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0})}return Z})(),lt=(()=>{class Z extends We{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(Oe){this._fixedInViewport=(0,t.Ig)(Oe)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(Oe){this._fixedTopGap=(0,t.su)(Oe)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(Oe){this._fixedBottomGap=(0,t.su)(Oe)}static#e=this.\u0275fac=(()=>{let Oe;return function(ve){return(Oe||(Oe=n.n5z(Z)))(ve||Z)}})();static#t=this.\u0275cmp=n.Xpm({type:Z,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(ye,ve){2&ye&&(n.uIk("align",null),n.Udp("top",ve.fixedInViewport?ve.fixedTopGap:null,"px")("bottom",ve.fixedInViewport?ve.fixedBottomGap:null,"px"),n.ekj("mat-drawer-end","end"===ve.position)("mat-drawer-over","over"===ve.mode)("mat-drawer-push","push"===ve.mode)("mat-drawer-side","side"===ve.mode)("mat-drawer-opened",ve.opened)("mat-sidenav-fixed",ve.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],standalone:!0,features:[n.qOj,n.jDz],ngContentSelectors:q,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(ye,ve){1&ye&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA())},dependencies:[e.PQ],encapsulation:2,data:{animation:[Le.transformDrawer]},changeDetection:0})}return Z})(),Vt=(()=>{class Z extends et{constructor(){super(...arguments),this._allDrawers=void 0,this._content=void 0}static#e=this.\u0275fac=(()=>{let Oe;return function(ve){return(Oe||(Oe=n.n5z(Z)))(ve||Z)}})();static#t=this.\u0275cmp=n.Xpm({type:Z,selectors:[["mat-sidenav-container"]],contentQueries:function(ye,ve,ft){if(1&ye&&(n.Suo(ft,Et,5),n.Suo(ft,lt,5)),2&ye){let Dt;n.iGM(Dt=n.CRH())&&(ve._content=Dt.first),n.iGM(Dt=n.CRH())&&(ve._allDrawers=Dt)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(ye,ve){2&ye&&n.ekj("mat-drawer-container-explicit-backdrop",ve._backdropOverride)},exportAs:["matSidenavContainer"],standalone:!0,features:[n._Bn([{provide:me,useExisting:Z}]),n.qOj,n.jDz],ngContentSelectors:Ke,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(ye,ve){1&ye&&(n.F$t(ge),n.YNc(0,$,1,2,"div",0),n.Hsn(1),n.Hsn(2,1),n.YNc(3,ue,2,0,"mat-sidenav-content")),2&ye&&(n.um2(0,ve.hasBackdrop?0:-1),n.xp6(3),n.um2(3,ve._content?-1:3))},dependencies:[Et],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);position:relative;z-index:4;color:var(--mat-sidenav-container-text-color);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}return Z})(),r=(()=>{class Z{static#e=this.\u0275fac=function(ye){return new(ye||Z)};static#t=this.\u0275mod=n.oAB({type:Z});static#n=this.\u0275inj=n.cJS({imports:[s.BQ,e.ZD,e.ZD,s.BQ]})}return Z})()},82599:(gt,X,a)=>{"use strict";a.d(X,{Rr:()=>m,rP:()=>O});var e=a(19212),n=a(56223),s=a(4300),l=a(23680);const i=["switch"];function t(P,G){1&P&&(e.TgZ(0,"div",12),e.O4$(),e.TgZ(1,"svg",13),e._UZ(2,"path",14),e.qZA(),e.TgZ(3,"svg",15),e._UZ(4,"path",16),e.qZA()())}const p=["*"],c=new e.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),o={provide:n.JU,useExisting:(0,e.Gpc)(()=>m),multi:!0};class x{constructor(G,B){this.source=G,this.checked=B}}let u=0,m=(()=>{class P{_createChangeEvent(B){return new x(this,B)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(B){this._checked=B,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(B,ae,J,q,j,Y){this._elementRef=B,this._focusMonitor=ae,this._changeDetectorRef=J,this.defaults=j,this._onChange=K=>{},this._onTouched=()=>{},this._validatorOnChange=()=>{},this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.change=new e.vpe,this.toggleChange=new e.vpe,this.tabIndex=parseInt(q)||0,this.color=j.color||"accent",this._noopAnimations="NoopAnimations"===Y,this.id=this._uniqueId="mat-mdc-slide-toggle-"+ ++u,this.hideIcon=j.hideIcon??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(B=>{"keyboard"===B||"program"===B?(this._focused=!0,this._changeDetectorRef.markForCheck()):B||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(B){B.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(B){this.checked=!!B}registerOnChange(B){this._onChange=B}registerOnTouched(B){this._onTouched=B}validate(B){return this.required&&!0!==B.value?{required:!0}:null}registerOnValidatorChange(B){this._validatorOnChange=B}setDisabledState(B){this.disabled=B,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new x(this,this.checked)))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static#e=this.\u0275fac=function(ae){return new(ae||P)(e.Y36(e.SBq),e.Y36(s.tE),e.Y36(e.sBO),e.$8M("tabindex"),e.Y36(c),e.Y36(e.QbO,8))};static#t=this.\u0275cmp=e.Xpm({type:P,selectors:[["mat-slide-toggle"]],viewQuery:function(ae,J){if(1&ae&&e.Gf(i,5),2&ae){let q;e.iGM(q=e.CRH())&&(J._switchElement=q.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(ae,J){2&ae&&(e.Ikx("id",J.id),e.uIk("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),e.Tol(J.color?"mat-"+J.color:""),e.ekj("mat-mdc-slide-toggle-focused",J._focused)("mat-mdc-slide-toggle-checked",J.checked)("_mat-animation-noopable",J._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[e.lbL.None,"aria-label","ariaLabel"],ariaLabelledby:[e.lbL.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[e.lbL.None,"aria-describedby","ariaDescribedby"],required:[e.lbL.HasDecoratorInputTransform,"required","required",e.VuI],color:"color",disabled:[e.lbL.HasDecoratorInputTransform,"disabled","disabled",e.VuI],disableRipple:[e.lbL.HasDecoratorInputTransform,"disableRipple","disableRipple",e.VuI],tabIndex:[e.lbL.HasDecoratorInputTransform,"tabIndex","tabIndex",B=>null==B?0:(0,e.Cb_)(B)],checked:[e.lbL.HasDecoratorInputTransform,"checked","checked",e.VuI],hideIcon:[e.lbL.HasDecoratorInputTransform,"hideIcon","hideIcon",e.VuI]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[e._Bn([o,{provide:n.Cf,useExisting:P,multi:!0}]),e.Xq5,e.TTD,e.jDz],ngContentSelectors:p,decls:13,vars:24,consts:[["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"tabIndex","disabled","click"],["switch",""],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],["class","mdc-switch__icons"],[1,"mdc-label",3,"for","click"],[1,"mdc-switch__icons"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(ae,J){if(1&ae&&(e.F$t(),e.TgZ(0,"div",0)(1,"button",1,2),e.NdJ("click",function(){return J._handleClick()}),e._UZ(3,"div",3),e.TgZ(4,"div",4)(5,"div",5)(6,"div",6),e._UZ(7,"div",7),e.qZA(),e.TgZ(8,"div",8),e._UZ(9,"div",9),e.qZA(),e.YNc(10,t,5,0,"div",10),e.qZA()()(),e.TgZ(11,"label",11),e.NdJ("click",function(j){return j.stopPropagation()}),e.Hsn(12),e.qZA()()),2&ae){const q=e.MAs(2);e.Q6J("labelPosition",J.labelPosition),e.xp6(),e.ekj("mdc-switch--selected",J.checked)("mdc-switch--unselected",!J.checked)("mdc-switch--checked",J.checked)("mdc-switch--disabled",J.disabled),e.Q6J("tabIndex",J.disabled?-1:J.tabIndex)("disabled",J.disabled),e.uIk("id",J.buttonId)("name",J.name)("aria-label",J.ariaLabel)("aria-labelledby",J._getAriaLabelledBy())("aria-describedby",J.ariaDescribedby)("aria-required",J.required||null)("aria-checked",J.checked),e.xp6(8),e.Q6J("matRippleTrigger",q)("matRippleDisabled",J.disableRipple||J.disabled)("matRippleCentered",!0),e.xp6(),e.um2(10,J.hideIcon?-1:10),e.xp6(),e.Q6J("for",J.buttonId),e.uIk("id",J._labelId)}},dependencies:[l.wG,l.fq],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}.mdc-switch{width:var(--mdc-switch-track-width)}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color)}.mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color)}.mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation)}.mdc-switch .mdc-switch__focus-ring-wrapper,.mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height)}.mdc-switch:disabled .mdc-switch__handle::after{opacity:var(--mdc-switch-disabled-handle-opacity)}.mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape)}.mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width)}.mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width))}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size)}.mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size);width:var(--mdc-switch-state-layer-size)}.mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height)}.mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color)}.mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color)}.mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}'],encapsulation:2,changeDetection:0})}return P})(),O=(()=>{class P{static#e=this.\u0275fac=function(ae){return new(ae||P)};static#t=this.\u0275mod=e.oAB({type:P});static#n=this.\u0275inj=e.cJS({imports:[m,l.BQ,l.BQ]})}return P})()},92202:(gt,X,a)=>{"use strict";a.d(X,{$5:()=>ue,KP:()=>Ke,pH:()=>Y});var e=a(49388),n=a(62831),s=a(19212),l=a(23680),i=a(56223),t=a(72079);const p=["knob"],c=["valueIndicatorContainer"];function o(at,Le){if(1&at&&(s.TgZ(0,"div",4,5)(2,"div",6)(3,"span",7),s._uU(4),s.qZA()()()),2&at){const R=s.oxw();s.xp6(4),s.Oqu(R.valueIndicatorText)}}const x=["trackActive"];function u(at,Le){if(1&at&&s._UZ(0,"div"),2&at){const R=Le.$implicit,Te=Le.$index,me=s.oxw(3);s.Tol(0===R?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"),s.Udp("transform",me._calcTickMarkTransform(Te))}}function m(at,Le){if(1&at&&s.SjG(0,u,1,4,"div",9,s.x6l),2&at){const R=s.oxw(2);s.wJu(R._tickMarks)}}function b(at,Le){if(1&at&&(s.TgZ(0,"div",7,8),s.YNc(2,m,2,0),s.qZA()),2&at){const R=s.oxw();s.xp6(2),s.um2(2,R._cachedWidth?2:-1)}}function I(at,Le){if(1&at&&s._UZ(0,"mat-slider-visual-thumb",6),2&at){const R=s.oxw();s.Q6J("discrete",R.discrete)("thumbPosition",1)("valueIndicatorText",R.startValueIndicatorText)}}const H=["*"];var O=function(at){return at[at.START=1]="START",at[at.END=2]="END",at}(O||{}),P=function(at){return at[at.ACTIVE=0]="ACTIVE",at[at.INACTIVE=1]="INACTIVE",at}(P||{});const G=new s.OlP("_MatSlider"),B=new s.OlP("_MatSliderThumb"),ae=new s.OlP("_MatSliderRangeThumb"),J=new s.OlP("_MatSliderVisualThumb");let j=(()=>{class at{constructor(R,Te,me,Se){this._cdr=R,this._ngZone=Te,this._slider=Se,this._isHovered=!1,this._isActive=!1,this._isValueIndicatorVisible=!1,this._platform=(0,s.f3M)(n.t4),this._onPointerMove=Ue=>{if(this._sliderInput._isFocused)return;const We=this._hostElement.getBoundingClientRect(),et=this._slider._isCursorOnSliderThumb(Ue,We);this._isHovered=et,et?this._showHoverRipple():this._hideRipple(this._hoverRippleRef)},this._onMouseLeave=()=>{this._isHovered=!1,this._hideRipple(this._hoverRippleRef)},this._onFocus=()=>{this._hideRipple(this._hoverRippleRef),this._showFocusRipple(),this._hostElement.classList.add("mdc-slider__thumb--focused")},this._onBlur=()=>{this._isActive||this._hideRipple(this._focusRippleRef),this._isHovered&&this._showHoverRipple(),this._hostElement.classList.remove("mdc-slider__thumb--focused")},this._onDragStart=Ue=>{0===Ue.button&&(this._isActive=!0,this._showActiveRipple())},this._onDragEnd=()=>{this._isActive=!1,this._hideRipple(this._activeRippleRef),this._sliderInput._isFocused||this._hideRipple(this._focusRippleRef),this._platform.SAFARI&&this._showHoverRipple()},this._hostElement=me.nativeElement}ngAfterViewInit(){this._ripple.radius=24,this._sliderInput=this._slider._getInput(this.thumbPosition),this._sliderInputEl=this._sliderInput._hostElement;const R=this._sliderInputEl;this._ngZone.runOutsideAngular(()=>{R.addEventListener("pointermove",this._onPointerMove),R.addEventListener("pointerdown",this._onDragStart),R.addEventListener("pointerup",this._onDragEnd),R.addEventListener("pointerleave",this._onMouseLeave),R.addEventListener("focus",this._onFocus),R.addEventListener("blur",this._onBlur)})}ngOnDestroy(){const R=this._sliderInputEl;R&&(R.removeEventListener("pointermove",this._onPointerMove),R.removeEventListener("pointerdown",this._onDragStart),R.removeEventListener("pointerup",this._onDragEnd),R.removeEventListener("pointerleave",this._onMouseLeave),R.removeEventListener("focus",this._onFocus),R.removeEventListener("blur",this._onBlur))}_showHoverRipple(){this._isShowingRipple(this._hoverRippleRef)||(this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0}),this._hoverRippleRef?.element.classList.add("mat-mdc-slider-hover-ripple"))}_showFocusRipple(){this._isShowingRipple(this._focusRippleRef)||(this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},!0),this._focusRippleRef?.element.classList.add("mat-mdc-slider-focus-ripple"))}_showActiveRipple(){this._isShowingRipple(this._activeRippleRef)||(this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400}),this._activeRippleRef?.element.classList.add("mat-mdc-slider-active-ripple"))}_isShowingRipple(R){return R?.state===l.DH.FADING_IN||R?.state===l.DH.VISIBLE}_showRipple(R,Te){if(!this._slider.disabled&&(this._showValueIndicator(),this._slider._isRange&&this._slider._getThumb(this.thumbPosition===O.START?O.END:O.START)._showValueIndicator(),!this._slider._globalRippleOptions?.disabled||Te))return this._ripple.launch({animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:R,centered:!0,persistent:!0})}_hideRipple(R){if(R?.fadeOut(),this._isShowingAnyRipple())return;this._slider._isRange||this._hideValueIndicator();const Te=this._getSibling();Te._isShowingAnyRipple()||(this._hideValueIndicator(),Te._hideValueIndicator())}_showValueIndicator(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator")}_hideValueIndicator(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator")}_getSibling(){return this._slider._getThumb(this.thumbPosition===O.START?O.END:O.START)}_getValueIndicatorContainer(){return this._valueIndicatorContainer?.nativeElement}_getKnob(){return this._knob.nativeElement}_isShowingAnyRipple(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef)}static#e=this.\u0275fac=function(Te){return new(Te||at)(s.Y36(s.sBO),s.Y36(s.R0b),s.Y36(s.SBq),s.Y36(G))};static#t=this.\u0275cmp=s.Xpm({type:at,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(Te,me){if(1&Te&&(s.Gf(l.wG,5),s.Gf(p,5),s.Gf(c,5)),2&Te){let Se;s.iGM(Se=s.CRH())&&(me._ripple=Se.first),s.iGM(Se=s.CRH())&&(me._knob=Se.first),s.iGM(Se=s.CRH())&&(me._valueIndicatorContainer=Se.first)}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},standalone:!0,features:[s._Bn([{provide:J,useExisting:at}]),s.jDz],decls:4,vars:2,consts:[["class","mdc-slider__value-indicator-container"],[1,"mdc-slider__thumb-knob"],["knob",""],["matRipple","",1,"mat-mdc-focus-indicator",3,"matRippleDisabled"],[1,"mdc-slider__value-indicator-container"],["valueIndicatorContainer",""],[1,"mdc-slider__value-indicator"],[1,"mdc-slider__value-indicator-text"]],template:function(Te,me){1&Te&&(s.YNc(0,o,5,1,"div",0),s._UZ(1,"div",1,2)(3,"div",3)),2&Te&&(s.um2(0,me.discrete?0:-1),s.xp6(3),s.Q6J("matRippleDisabled",!0))},dependencies:[l.wG],styles:[".mat-mdc-slider-visual-thumb .mat-ripple{height:100%;width:100%}.mat-mdc-slider .mdc-slider__tick-marks{justify-content:start}.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--inactive{position:absolute;left:2px}"],encapsulation:2,changeDetection:0})}return at})(),Y=(()=>{class at{get disabled(){return this._disabled}set disabled(R){this._disabled=R;const Te=this._getInput(O.END),me=this._getInput(O.START);Te&&(Te.disabled=this._disabled),me&&(me.disabled=this._disabled)}get discrete(){return this._discrete}set discrete(R){this._discrete=R,this._updateValueIndicatorUIs()}get min(){return this._min}set min(R){const Te=isNaN(R)?this._min:R;this._min!==Te&&this._updateMin(Te)}_updateMin(R){const Te=this._min;this._min=R,this._isRange?this._updateMinRange({old:Te,new:R}):this._updateMinNonRange(R),this._onMinMaxOrStepChange()}_updateMinRange(R){const Te=this._getInput(O.END),me=this._getInput(O.START),Se=Te.value,Ue=me.value;me.min=R.new,Te.min=Math.max(R.new,me.value),me.max=Math.min(Te.max,Te.value),me._updateWidthInactive(),Te._updateWidthInactive(),R.new<R.old?this._onTranslateXChangeBySideEffect(Te,me):this._onTranslateXChangeBySideEffect(me,Te),Se!==Te.value&&this._onValueChange(Te),Ue!==me.value&&this._onValueChange(me)}_updateMinNonRange(R){const Te=this._getInput(O.END);if(Te){const me=Te.value;Te.min=R,Te._updateThumbUIByValue(),this._updateTrackUI(Te),me!==Te.value&&this._onValueChange(Te)}}get max(){return this._max}set max(R){const Te=isNaN(R)?this._max:R;this._max!==Te&&this._updateMax(Te)}_updateMax(R){const Te=this._max;this._max=R,this._isRange?this._updateMaxRange({old:Te,new:R}):this._updateMaxNonRange(R),this._onMinMaxOrStepChange()}_updateMaxRange(R){const Te=this._getInput(O.END),me=this._getInput(O.START),Se=Te.value,Ue=me.value;Te.max=R.new,me.max=Math.min(R.new,Te.value),Te.min=me.value,Te._updateWidthInactive(),me._updateWidthInactive(),R.new>R.old?this._onTranslateXChangeBySideEffect(me,Te):this._onTranslateXChangeBySideEffect(Te,me),Se!==Te.value&&this._onValueChange(Te),Ue!==me.value&&this._onValueChange(me)}_updateMaxNonRange(R){const Te=this._getInput(O.END);if(Te){const me=Te.value;Te.max=R,Te._updateThumbUIByValue(),this._updateTrackUI(Te),me!==Te.value&&this._onValueChange(Te)}}get step(){return this._step}set step(R){const Te=isNaN(R)?this._step:R;this._step!==Te&&this._updateStep(Te)}_updateStep(R){this._step=R,this._isRange?this._updateStepRange():this._updateStepNonRange(),this._onMinMaxOrStepChange()}_updateStepRange(){const R=this._getInput(O.END),Te=this._getInput(O.START),me=R.value,Se=Te.value,Ue=Te.value;R.min=this._min,Te.max=this._max,R.step=this._step,Te.step=this._step,this._platform.SAFARI&&(R.value=R.value,Te.value=Te.value),R.min=Math.max(this._min,Te.value),Te.max=Math.min(this._max,R.value),Te._updateWidthInactive(),R._updateWidthInactive(),R.value<Ue?this._onTranslateXChangeBySideEffect(Te,R):this._onTranslateXChangeBySideEffect(R,Te),me!==R.value&&this._onValueChange(R),Se!==Te.value&&this._onValueChange(Te)}_updateStepNonRange(){const R=this._getInput(O.END);if(R){const Te=R.value;R.step=this._step,this._platform.SAFARI&&(R.value=R.value),R._updateThumbUIByValue(),Te!==R.value&&this._onValueChange(R)}}constructor(R,Te,me,Se,Ue,We){this._ngZone=R,this._cdr=Te,this._elementRef=me,this._dir=Se,this._globalRippleOptions=Ue,this._disabled=!1,this._discrete=!1,this.showTickMarks=!1,this._min=0,this.disableRipple=!1,this._max=100,this._step=1,this.displayWith=et=>`${et}`,this._rippleRadius=24,this.startValueIndicatorText="",this.endValueIndicatorText="",this._isRange=!1,this._isRtl=!1,this._hasViewInitialized=!1,this._tickMarkTrackWidth=0,this._hasAnimation=!1,this._resizeTimer=null,this._platform=(0,s.f3M)(n.t4),this._knobRadius=8,this._thumbsOverlap=!1,this._noopAnimations="NoopAnimations"===We,this._dirChangeSubscription=this._dir.change.subscribe(()=>this._onDirChange()),this._isRtl="rtl"===this._dir.value}ngAfterViewInit(){this._platform.isBrowser&&this._updateDimensions();const R=this._getInput(O.END),Te=this._getInput(O.START);this._isRange=!!R&&!!Te,this._cdr.detectChanges();const me=this._getThumb(O.END);this._rippleRadius=me._ripple.radius,this._inputPadding=this._rippleRadius-this._knobRadius,this._isRange?this._initUIRange(R,Te):this._initUINonRange(R),this._updateTrackUI(R),this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._observeHostResize(),this._cdr.detectChanges()}_initUINonRange(R){R.initProps(),R.initUI(),this._updateValueIndicatorUI(R),this._hasViewInitialized=!0,R._updateThumbUIByValue()}_initUIRange(R,Te){R.initProps(),R.initUI(),Te.initProps(),Te.initUI(),R._updateMinMax(),Te._updateMinMax(),R._updateStaticStyles(),Te._updateStaticStyles(),this._updateValueIndicatorUIs(),this._hasViewInitialized=!0,R._updateThumbUIByValue(),Te._updateThumbUIByValue()}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._resizeObserver?.disconnect(),this._resizeObserver=null}_onDirChange(){this._isRtl="rtl"===this._dir.value,this._isRange?this._onDirChangeRange():this._onDirChangeNonRange(),this._updateTickMarkUI()}_onDirChangeRange(){const R=this._getInput(O.END),Te=this._getInput(O.START);R._setIsLeftThumb(),Te._setIsLeftThumb(),R.translateX=R._calcTranslateXByValue(),Te.translateX=Te._calcTranslateXByValue(),R._updateStaticStyles(),Te._updateStaticStyles(),R._updateWidthInactive(),Te._updateWidthInactive(),R._updateThumbUIByValue(),Te._updateThumbUIByValue()}_onDirChangeNonRange(){this._getInput(O.END)._updateThumbUIByValue()}_observeHostResize(){typeof ResizeObserver>"u"||!ResizeObserver||this._ngZone.runOutsideAngular(()=>{this._resizeObserver=new ResizeObserver(()=>{this._isActive()||(this._resizeTimer&&clearTimeout(this._resizeTimer),this._onResize())}),this._resizeObserver.observe(this._elementRef.nativeElement)})}_isActive(){return this._getThumb(O.START)._isActive||this._getThumb(O.END)._isActive}_getValue(R=O.END){const Te=this._getInput(R);return Te?Te.value:this.min}_skipUpdate(){return!(!this._getInput(O.START)?._skipUIUpdate&&!this._getInput(O.END)?._skipUIUpdate)}_updateDimensions(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth,this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left}_setTrackActiveStyles(R){const Te=this._trackActive.nativeElement.style;Te.left=R.left,Te.right=R.right,Te.transformOrigin=R.transformOrigin,Te.transform=R.transform}_calcTickMarkTransform(R){return`translateX(${R*(this._tickMarkTrackWidth/(this._tickMarks.length-1))}px`}_onTranslateXChange(R){this._hasViewInitialized&&(this._updateThumbUI(R),this._updateTrackUI(R),this._updateOverlappingThumbUI(R))}_onTranslateXChangeBySideEffect(R,Te){this._hasViewInitialized&&(R._updateThumbUIByValue(),Te._updateThumbUIByValue())}_onValueChange(R){this._hasViewInitialized&&(this._updateValueIndicatorUI(R),this._updateTickMarkUI(),this._cdr.detectChanges())}_onMinMaxOrStepChange(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck())}_onResize(){if(this._hasViewInitialized){if(this._updateDimensions(),this._isRange){const R=this._getInput(O.END),Te=this._getInput(O.START);R._updateThumbUIByValue(),Te._updateThumbUIByValue(),R._updateStaticStyles(),Te._updateStaticStyles(),R._updateMinMax(),Te._updateMinMax(),R._updateWidthInactive(),Te._updateWidthInactive()}else{const R=this._getInput(O.END);R&&R._updateThumbUIByValue()}this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.detectChanges()}}_areThumbsOverlapping(){const R=this._getInput(O.START),Te=this._getInput(O.END);return!(!R||!Te)&&Te.translateX-R.translateX<20}_updateOverlappingThumbClassNames(R){const Te=R.getSibling(),me=this._getThumb(R.thumbPosition);this._getThumb(Te.thumbPosition)._hostElement.classList.remove("mdc-slider__thumb--top"),me._hostElement.classList.toggle("mdc-slider__thumb--top",this._thumbsOverlap)}_updateOverlappingThumbUI(R){!this._isRange||this._skipUpdate()||this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames(R))}_updateThumbUI(R){this._skipUpdate()||(this._getThumb(R.thumbPosition===O.END?O.END:O.START)._hostElement.style.transform=`translateX(${R.translateX}px)`)}_updateValueIndicatorUI(R){if(this._skipUpdate())return;const Te=this.displayWith(R.value);if(this._hasViewInitialized?R._valuetext=Te:R._hostElement.setAttribute("aria-valuetext",Te),this.discrete){R.thumbPosition===O.START?this.startValueIndicatorText=Te:this.endValueIndicatorText=Te;const me=this._getThumb(R.thumbPosition);Te.length<3?me._hostElement.classList.add("mdc-slider__thumb--short-value"):me._hostElement.classList.remove("mdc-slider__thumb--short-value")}}_updateValueIndicatorUIs(){const R=this._getInput(O.END),Te=this._getInput(O.START);R&&this._updateValueIndicatorUI(R),Te&&this._updateValueIndicatorUI(Te)}_updateTickMarkTrackUI(){if(!this.showTickMarks||this._skipUpdate())return;const R=this._step&&this._step>0?this._step:1,me=(Math.floor(this.max/R)*R-this.min)/(this.max-this.min);this._tickMarkTrackWidth=this._cachedWidth*me-6}_updateTrackUI(R){this._skipUpdate()||(this._isRange?this._updateTrackUIRange(R):this._updateTrackUINonRange(R))}_updateTrackUIRange(R){const Te=R.getSibling();if(!Te||!this._cachedWidth)return;const me=Math.abs(Te.translateX-R.translateX)/this._cachedWidth;this._setTrackActiveStyles(R._isLeftThumb&&this._cachedWidth?{left:"auto",right:this._cachedWidth-Te.translateX+"px",transformOrigin:"right",transform:`scaleX(${me})`}:{left:`${Te.translateX}px`,right:"auto",transformOrigin:"left",transform:`scaleX(${me})`})}_updateTrackUINonRange(R){this._setTrackActiveStyles(this._isRtl?{left:"auto",right:"0px",transformOrigin:"right",transform:`scaleX(${1-R.fillPercentage})`}:{left:"0px",right:"auto",transformOrigin:"left",transform:`scaleX(${R.fillPercentage})`})}_updateTickMarkUI(){if(!this.showTickMarks||void 0===this.step||void 0===this.min||void 0===this.max)return;const R=this.step>0?this.step:1;this._isRange?this._updateTickMarkUIRange(R):this._updateTickMarkUINonRange(R),this._isRtl&&this._tickMarks.reverse()}_updateTickMarkUINonRange(R){const Te=this._getValue();let me=Math.max(Math.floor((Te-this.min)/R),0),Se=Math.max(Math.floor((this.max-Te)/R),0);this._isRtl?me++:Se++,this._tickMarks=Array(me).fill(P.ACTIVE).concat(Array(Se).fill(P.INACTIVE))}_updateTickMarkUIRange(R){const Te=this._getValue(),me=this._getValue(O.START),Se=Math.max(Math.floor((me-this.min)/R),0),Ue=Math.max(Math.floor((Te-me)/R)+1,0),We=Math.max(Math.floor((this.max-Te)/R),0);this._tickMarks=Array(Se).fill(P.INACTIVE).concat(Array(Ue).fill(P.ACTIVE),Array(We).fill(P.INACTIVE))}_getInput(R){return R===O.END&&this._input?this._input:this._inputs?.length?R===O.START?this._inputs.first:this._inputs.last:void 0}_getThumb(R){return R===O.END?this._thumbs?.last:this._thumbs?.first}_setTransition(R){this._hasAnimation=!this._platform.IOS&&R&&!this._noopAnimations,this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation)}_isCursorOnSliderThumb(R,Te){const me=Te.width/2,et=R.clientY-(Te.y+me);return Math.pow(R.clientX-(Te.x+me),2)+Math.pow(et,2)<Math.pow(me,2)}static#e=this.\u0275fac=function(Te){return new(Te||at)(s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(e.Is,8),s.Y36(l.Y2,8),s.Y36(s.QbO,8))};static#t=this.\u0275cmp=s.Xpm({type:at,selectors:[["mat-slider"]],contentQueries:function(Te,me,Se){if(1&Te&&(s.Suo(Se,B,5),s.Suo(Se,ae,4)),2&Te){let Ue;s.iGM(Ue=s.CRH())&&(me._input=Ue.first),s.iGM(Ue=s.CRH())&&(me._inputs=Ue)}},viewQuery:function(Te,me){if(1&Te&&(s.Gf(x,5),s.Gf(J,5)),2&Te){let Se;s.iGM(Se=s.CRH())&&(me._trackActive=Se.first),s.iGM(Se=s.CRH())&&(me._thumbs=Se)}},hostAttrs:[1,"mat-mdc-slider","mdc-slider"],hostVars:12,hostBindings:function(Te,me){2&Te&&(s.Tol("mat-"+(me.color||"primary")),s.ekj("mdc-slider--range",me._isRange)("mdc-slider--disabled",me.disabled)("mdc-slider--discrete",me.discrete)("mdc-slider--tick-marks",me.showTickMarks)("_mat-animation-noopable",me._noopAnimations))},inputs:{disabled:[s.lbL.HasDecoratorInputTransform,"disabled","disabled",s.VuI],discrete:[s.lbL.HasDecoratorInputTransform,"discrete","discrete",s.VuI],showTickMarks:[s.lbL.HasDecoratorInputTransform,"showTickMarks","showTickMarks",s.VuI],min:[s.lbL.HasDecoratorInputTransform,"min","min",s.Cb_],color:"color",disableRipple:[s.lbL.HasDecoratorInputTransform,"disableRipple","disableRipple",s.VuI],max:[s.lbL.HasDecoratorInputTransform,"max","max",s.Cb_],step:[s.lbL.HasDecoratorInputTransform,"step","step",s.Cb_],displayWith:"displayWith"},exportAs:["matSlider"],standalone:!0,features:[s._Bn([{provide:G,useExisting:at}]),s.Xq5,s.jDz],ngContentSelectors:H,decls:9,vars:5,consts:[[1,"mdc-slider__track"],[1,"mdc-slider__track--inactive"],[1,"mdc-slider__track--active"],[1,"mdc-slider__track--active_fill"],["trackActive",""],["class","mdc-slider__tick-marks"],[3,"discrete","thumbPosition","valueIndicatorText"],[1,"mdc-slider__tick-marks"],["tickMarkContainer",""],[3,"class","transform"]],template:function(Te,me){1&Te&&(s.F$t(),s.Hsn(0),s.TgZ(1,"div",0),s._UZ(2,"div",1),s.TgZ(3,"div",2),s._UZ(4,"div",3,4),s.qZA(),s.YNc(6,b,3,1,"div",5),s.qZA(),s.YNc(7,I,1,3,"mat-slider-visual-thumb",6),s._UZ(8,"mat-slider-visual-thumb",6)),2&Te&&(s.xp6(6),s.um2(6,me.showTickMarks?6:-1),s.xp6(),s.um2(7,me._isRange?7:-1),s.xp6(),s.Q6J("discrete",me.discrete)("thumbPosition",2)("valueIndicatorText",me.endValueIndicatorText))},dependencies:[j],styles:['.mdc-slider{cursor:pointer;height:48px;margin:0 24px;position:relative;touch-action:pan-y}.mdc-slider .mdc-slider__track{position:absolute;top:50%;transform:translateY(-50%);width:100%}.mdc-slider .mdc-slider__track--active,.mdc-slider .mdc-slider__track--inactive{display:flex;height:100%;position:absolute;width:100%}.mdc-slider .mdc-slider__track--active{overflow:hidden}.mdc-slider .mdc-slider__track--active_fill{border-top-style:solid;box-sizing:border-box;height:100%;width:100%;position:relative;-webkit-transform-origin:left;transform-origin:left}[dir=rtl] .mdc-slider .mdc-slider__track--active_fill,.mdc-slider .mdc-slider__track--active_fill[dir=rtl]{-webkit-transform-origin:right;transform-origin:right}.mdc-slider .mdc-slider__track--inactive{left:0;top:0}.mdc-slider .mdc-slider__track--inactive::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-slider .mdc-slider__track--inactive::before{border-color:CanvasText}}.mdc-slider .mdc-slider__value-indicator-container{bottom:44px;left:50%;left:var(--slider-value-indicator-container-left, 50%);pointer-events:none;position:absolute;right:var(--slider-value-indicator-container-right);transform:translateX(-50%);transform:var(--slider-value-indicator-container-transform, translateX(-50%))}.mdc-slider .mdc-slider__value-indicator{transition:transform 100ms 0ms cubic-bezier(0.4, 0, 1, 1);align-items:center;border-radius:4px;display:flex;height:32px;padding:0 12px;transform:scale(0);transform-origin:bottom}.mdc-slider .mdc-slider__value-indicator::before{border-left:6px solid rgba(0,0,0,0);border-right:6px solid rgba(0,0,0,0);border-top:6px solid;bottom:-5px;content:"";height:0;left:50%;left:var(--slider-value-indicator-caret-left, 50%);position:absolute;right:var(--slider-value-indicator-caret-right);transform:translateX(-50%);transform:var(--slider-value-indicator-caret-transform, translateX(-50%));width:0}.mdc-slider .mdc-slider__value-indicator::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-slider .mdc-slider__value-indicator::after{border-color:CanvasText}}.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator-container{pointer-events:auto}.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator{transition:transform 100ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale(1)}@media(prefers-reduced-motion){.mdc-slider .mdc-slider__value-indicator,.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator{transition:none}}.mdc-slider .mdc-slider__thumb{display:flex;left:-24px;outline:none;position:absolute;user-select:none;height:48px;width:48px}.mdc-slider .mdc-slider__thumb--top{z-index:1}.mdc-slider .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-style:solid;border-width:1px;box-sizing:content-box}.mdc-slider .mdc-slider__thumb-knob{box-sizing:border-box;left:50%;position:absolute;top:50%;transform:translate(-50%, -50%)}.mdc-slider .mdc-slider__tick-marks{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:space-between;padding:0 1px;position:absolute;width:100%}.mdc-slider--discrete .mdc-slider__thumb,.mdc-slider--discrete .mdc-slider__track--active_fill{transition:transform 80ms ease}@media(prefers-reduced-motion){.mdc-slider--discrete .mdc-slider__thumb,.mdc-slider--discrete .mdc-slider__track--active_fill{transition:none}}.mdc-slider--disabled{cursor:auto}.mdc-slider--disabled .mdc-slider__thumb{pointer-events:none}.mdc-slider__input{cursor:pointer;left:2px;margin:0;height:44px;opacity:0;pointer-events:none;position:absolute;top:2px;width:44px}.mat-mdc-slider{display:inline-block;box-sizing:border-box;outline:none;vertical-align:middle;margin-left:8px;margin-right:8px;width:auto;min-width:112px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-slider .mdc-slider__thumb-knob{background-color:var(--mdc-slider-handle-color);border-color:var(--mdc-slider-handle-color)}.mat-mdc-slider .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__thumb-knob{background-color:var(--mdc-slider-disabled-handle-color);border-color:var(--mdc-slider-disabled-handle-color)}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider.mdc-slider--disabled .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider.mdc-slider--disabled .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mat-mdc-slider .mdc-slider__thumb::before,.mat-mdc-slider .mdc-slider__thumb::after{background-color:var(--mdc-slider-handle-color)}.mat-mdc-slider .mdc-slider__thumb:hover::before,.mat-mdc-slider .mdc-slider__thumb.mdc-ripple-surface--hover::before{opacity:var(--mdc-ripple-hover-opacity)}.mat-mdc-slider .mdc-slider__thumb.mdc-ripple-upgraded--background-focused::before,.mat-mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:var(--mdc-ripple-focus-opacity)}.mat-mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mat-mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:var(--mdc-ripple-press-opacity)}.mat-mdc-slider .mdc-slider__thumb.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity)}.mat-mdc-slider .mdc-slider__track--active_fill{border-color:var(--mdc-slider-active-track-color)}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__track--active_fill{border-color:var(--mdc-slider-disabled-active-track-color)}.mat-mdc-slider .mdc-slider__track--inactive{background-color:var(--mdc-slider-inactive-track-color);opacity:.24}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__track--inactive{background-color:var(--mdc-slider-disabled-inactive-track-color);opacity:.24}.mat-mdc-slider .mdc-slider__tick-mark--active{background-color:var(--mdc-slider-with-tick-marks-active-container-color);opacity:var(--mdc-slider-with-tick-marks-active-container-opacity)}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__tick-mark--active{background-color:var(--mdc-slider-with-tick-marks-active-container-color);opacity:var(--mdc-slider-with-tick-marks-active-container-opacity)}.mat-mdc-slider .mdc-slider__tick-mark--inactive{background-color:var(--mdc-slider-with-tick-marks-inactive-container-color);opacity:var(--mdc-slider-with-tick-marks-inactive-container-opacity)}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__tick-mark--inactive{background-color:var(--mdc-slider-with-tick-marks-disabled-container-color);opacity:var(--mdc-slider-with-tick-marks-inactive-container-opacity)}.mat-mdc-slider .mdc-slider__value-indicator{background-color:var(--mdc-slider-label-container-color);opacity:1}.mat-mdc-slider .mdc-slider__value-indicator::before{border-top-color:var(--mdc-slider-label-container-color)}.mat-mdc-slider .mdc-slider__value-indicator{color:var(--mdc-slider-label-label-text-color)}.mat-mdc-slider .mdc-slider__track{height:var(--mdc-slider-inactive-track-height)}.mat-mdc-slider .mdc-slider__track--active{height:var(--mdc-slider-active-track-height);top:calc((var(--mdc-slider-inactive-track-height) - var(--mdc-slider-active-track-height)) / 2)}.mat-mdc-slider .mdc-slider__track--active_fill{border-top-width:var(--mdc-slider-active-track-height)}.mat-mdc-slider .mdc-slider__track--inactive{height:var(--mdc-slider-inactive-track-height)}.mat-mdc-slider .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-mark--inactive{height:var(--mdc-slider-with-tick-marks-container-size);width:var(--mdc-slider-with-tick-marks-container-size)}.mat-mdc-slider.mdc-slider--disabled{opacity:0.38}.mat-mdc-slider .mdc-slider__value-indicator-text{letter-spacing:var(--mdc-slider-label-label-text-tracking);font-size:var(--mdc-slider-label-label-text-size);font-family:var(--mdc-slider-label-label-text-font);font-weight:var(--mdc-slider-label-label-text-weight);line-height:var(--mdc-slider-label-label-text-line-height)}.mat-mdc-slider .mdc-slider__track--active{border-radius:var(--mdc-slider-active-track-shape)}.mat-mdc-slider .mdc-slider__track--inactive{border-radius:var(--mdc-slider-inactive-track-shape)}.mat-mdc-slider .mdc-slider__thumb-knob{border-radius:var(--mdc-slider-handle-shape);width:var(--mdc-slider-handle-width);height:var(--mdc-slider-handle-height);border-style:solid;border-width:calc(var(--mdc-slider-handle-height) / 2) calc(var(--mdc-slider-handle-width) / 2)}.mat-mdc-slider .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-mark--inactive{border-radius:var(--mdc-slider-with-tick-marks-container-shape)}.mat-mdc-slider .mdc-slider__thumb:hover .mdc-slider__thumb-knob{background-color:var(--mdc-slider-hover-handle-color);border-color:var(--mdc-slider-hover-handle-color)}.mat-mdc-slider .mdc-slider__thumb:hover .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb:hover .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb:hover .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mat-mdc-slider .mdc-slider__thumb--focused .mdc-slider__thumb-knob{background-color:var(--mdc-slider-focus-handle-color);border-color:var(--mdc-slider-focus-handle-color)}.mat-mdc-slider .mdc-slider__thumb--focused .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--focused .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--focused .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mat-mdc-slider .mdc-slider__thumb:not(:disabled):active .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb:not(:disabled):active .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb:not(:disabled):active .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mat-mdc-slider .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:var(--mdc-slider-with-overlap-handle-outline-color);border-width:var(--mdc-slider-with-overlap-handle-outline-width)}.mat-mdc-slider .mdc-slider__thumb-knob{box-shadow:var(--mdc-slider-handle-elevation)}.mat-mdc-slider .mdc-slider__input{box-sizing:content-box;pointer-events:auto}.mat-mdc-slider .mdc-slider__input.mat-mdc-slider-input-no-pointer-events{pointer-events:none}.mat-mdc-slider .mdc-slider__input.mat-slider__right-input{left:auto;right:0}.mat-mdc-slider .mdc-slider__thumb,.mat-mdc-slider .mdc-slider__track--active_fill{transition-duration:0ms}.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__thumb,.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__track--active_fill{transition-duration:80ms}.mat-mdc-slider.mdc-slider--discrete .mdc-slider__thumb,.mat-mdc-slider.mdc-slider--discrete .mdc-slider__track--active_fill{transition-duration:0ms}.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__thumb,.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__track--active_fill{transition-duration:80ms}.mat-mdc-slider .mdc-slider__track,.mat-mdc-slider .mdc-slider__thumb{pointer-events:none}.mat-mdc-slider .mdc-slider__value-indicator-container{transform:var(--mat-slider-value-indicator-container-transform)}.mat-mdc-slider .mdc-slider__value-indicator{width:var(--mat-slider-value-indicator-width);height:var(--mat-slider-value-indicator-height);padding:var(--mat-slider-value-indicator-padding);opacity:var(--mat-slider-value-indicator-opacity);border-radius:var(--mat-slider-value-indicator-border-radius)}.mat-mdc-slider .mdc-slider__value-indicator::before{display:var(--mat-slider-value-indicator-caret-display)}.mat-mdc-slider .mdc-slider__value-indicator-text{width:var(--mat-slider-value-indicator-width);transform:var(--mat-slider-value-indicator-text-transform)}.mat-mdc-slider .mat-ripple .mat-ripple-element{background-color:var(--mat-slider-ripple-color)}.mat-mdc-slider .mat-ripple .mat-mdc-slider-hover-ripple{background-color:var(--mat-slider-hover-state-layer-color)}.mat-mdc-slider .mat-ripple .mat-mdc-slider-focus-ripple,.mat-mdc-slider .mat-ripple .mat-mdc-slider-active-ripple{background-color:var(--mat-slider-focus-state-layer-color)}.mat-mdc-slider._mat-animation-noopable.mdc-slider--discrete .mdc-slider__thumb,.mat-mdc-slider._mat-animation-noopable.mdc-slider--discrete .mdc-slider__track--active_fill,.mat-mdc-slider._mat-animation-noopable .mdc-slider__value-indicator{transition:none}.mat-mdc-slider .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slider .mdc-slider__value-indicator{word-break:normal}.mat-mdc-slider .mdc-slider__value-indicator-text{text-align:center}.mdc-slider__thumb--focused .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return at})();const ee={provide:i.JU,useExisting:(0,s.Gpc)(()=>ue),multi:!0};let ue=(()=>{class at{get value(){return(0,s.Cb_)(this._hostElement.value,0)}set value(R){const Te=(R=isNaN(R)?0:R)+"";this._hasSetInitialValue?this._isActive||this._setValue(Te):this._initialValue=Te}_setValue(R){this._hostElement.value=R,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges(),this._slider._cdr.markForCheck()}get translateX(){return this._slider.min>=this._slider.max?(this._translateX=this._tickMarkOffset,this._translateX):(void 0===this._translateX&&(this._translateX=this._calcTranslateXByValue()),this._translateX)}set translateX(R){this._translateX=R}get min(){return(0,s.Cb_)(this._hostElement.min,0)}set min(R){this._hostElement.min=R+"",this._cdr.detectChanges()}get max(){return(0,s.Cb_)(this._hostElement.max,0)}set max(R){this._hostElement.max=R+"",this._cdr.detectChanges()}get step(){return(0,s.Cb_)(this._hostElement.step,0)}set step(R){this._hostElement.step=R+"",this._cdr.detectChanges()}get disabled(){return(0,s.VuI)(this._hostElement.disabled)}set disabled(R){this._hostElement.disabled=R,this._cdr.detectChanges(),this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled)}get percentage(){return this._slider.min>=this._slider.max?this._slider._isRtl?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min)}get fillPercentage(){return this._slider._cachedWidth?0===this._translateX?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl?1:0}_setIsFocused(R){this._isFocused=R}constructor(R,Te,me,Se){this._ngZone=R,this._elementRef=Te,this._cdr=me,this._slider=Se,this.valueChange=new s.vpe,this.dragStart=new s.vpe,this.dragEnd=new s.vpe,this.thumbPosition=O.END,this._knobRadius=8,this._tickMarkOffset=3,this._isActive=!1,this._isFocused=!1,this._hasSetInitialValue=!1,this._destroyed=new t.xQ,this._skipUIUpdate=!1,this._onTouchedFn=()=>{},this._isControlInitialized=!1,this._platform=(0,s.f3M)(n.t4),this._hostElement=Te.nativeElement,this._ngZone.runOutsideAngular(()=>{this._hostElement.addEventListener("pointerdown",this._onPointerDown.bind(this)),this._hostElement.addEventListener("pointermove",this._onPointerMove.bind(this)),this._hostElement.addEventListener("pointerup",this._onPointerUp.bind(this))})}ngOnDestroy(){this._hostElement.removeEventListener("pointerdown",this._onPointerDown),this._hostElement.removeEventListener("pointermove",this._onPointerMove),this._hostElement.removeEventListener("pointerup",this._onPointerUp),this._destroyed.next(),this._destroyed.complete(),this.dragStart.complete(),this.dragEnd.complete()}initProps(){this._updateWidthInactive(),this.disabled!==this._slider.disabled&&(this._slider.disabled=!0),this.step=this._slider.step,this.min=this._slider.min,this.max=this._slider.max,this._initValue()}initUI(){this._updateThumbUIByValue()}_initValue(){this._hasSetInitialValue=!0,void 0===this._initialValue?this.value=this._getDefaultValue():(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges())}_getDefaultValue(){return this.min}_onBlur(){this._setIsFocused(!1),this._onTouchedFn()}_onFocus(){this._setIsFocused(!0)}_onChange(){this.valueChange.emit(this.value),this._isActive&&this._updateThumbUIByValue({withAnimation:!0})}_onInput(){this._onChangeFn?.(this.value),(this._slider.step||!this._isActive)&&this._updateThumbUIByValue({withAnimation:!0}),this._slider._onValueChange(this)}_onNgControlValueChange(){(!this._isActive||!this._isFocused)&&(this._slider._onValueChange(this),this._updateThumbUIByValue()),this._slider.disabled=this._formControl.disabled}_onPointerDown(R){if(!this.disabled&&0===R.button){if(this._platform.IOS){const Te=this._slider._isCursorOnSliderThumb(R,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect());return this._isActive=Te,this._updateWidthActive(),void this._slider._updateDimensions()}this._isActive=!0,this._setIsFocused(!0),this._updateWidthActive(),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent(R,{withAnimation:!0}),this.disabled||(this._handleValueCorrection(R),this.dragStart.emit({source:this,parent:this._slider,value:this.value}))}}_handleValueCorrection(R){this._skipUIUpdate=!0,setTimeout(()=>{this._skipUIUpdate=!1,this._fixValue(R)},0)}_fixValue(R){const Te=R.clientX-this._slider._cachedLeft,me=this._slider._cachedWidth,Se=0===this._slider.step?1:this._slider.step,Ue=Math.floor((this._slider.max-this._slider.min)/Se),Et=Math.round((this._slider._isRtl?1-Te/me:Te/me)*Ue)/Ue*(this._slider.max-this._slider.min)+this._slider.min,lt=Math.round(Et/Se)*Se;if(lt===this.value)return this._slider._onValueChange(this),void(this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(R,{withAnimation:this._slider._hasAnimation}));this.value=lt,this.valueChange.emit(this.value),this._onChangeFn?.(this.value),this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(R,{withAnimation:this._slider._hasAnimation})}_onPointerMove(R){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(R)}_onPointerUp(){this._isActive&&(this._isActive=!1,this._platform.SAFARI&&this._setIsFocused(!1),this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(()=>this._updateWidthInactive(),this._platform.IOS?10:0))}_clamp(R){const Te=this._tickMarkOffset;return Math.max(Math.min(R,this._slider._cachedWidth-this._tickMarkOffset),Te)}_calcTranslateXByValue(){return this._slider._isRtl?(1-this.percentage)*(this._slider._cachedWidth-2*this._tickMarkOffset)+this._tickMarkOffset:this.percentage*(this._slider._cachedWidth-2*this._tickMarkOffset)+this._tickMarkOffset}_calcTranslateXByPointerEvent(R){return R.clientX-this._slider._cachedLeft}_updateWidthActive(){}_updateWidthInactive(){this._hostElement.style.padding=`0 ${this._slider._inputPadding}px`,this._hostElement.style.width=`calc(100% + ${this._slider._inputPadding-2*this._tickMarkOffset}px)`,this._hostElement.style.left=`-${this._slider._rippleRadius-this._tickMarkOffset}px`}_updateThumbUIByValue(R){this.translateX=this._clamp(this._calcTranslateXByValue()),this._updateThumbUI(R)}_updateThumbUIByPointerEvent(R,Te){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(R)),this._updateThumbUI(Te)}_updateThumbUI(R){this._slider._setTransition(!!R?.withAnimation),this._slider._onTranslateXChange(this)}writeValue(R){(this._isControlInitialized||null!==R)&&(this.value=R)}registerOnChange(R){this._onChangeFn=R,this._isControlInitialized=!0}registerOnTouched(R){this._onTouchedFn=R}setDisabledState(R){this.disabled=R}focus(){this._hostElement.focus()}blur(){this._hostElement.blur()}static#e=this.\u0275fac=function(Te){return new(Te||at)(s.Y36(s.R0b),s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(G))};static#t=this.\u0275dir=s.lG2({type:at,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-slider__input"],hostVars:1,hostBindings:function(Te,me){1&Te&&s.NdJ("change",function(){return me._onChange()})("input",function(){return me._onInput()})("blur",function(){return me._onBlur()})("focus",function(){return me._onFocus()}),2&Te&&s.uIk("aria-valuetext",me._valuetext)},inputs:{value:[s.lbL.HasDecoratorInputTransform,"value","value",s.Cb_]},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],standalone:!0,features:[s._Bn([ee,{provide:B,useExisting:at}]),s.Xq5]})}return at})(),Ke=(()=>{class at{static#e=this.\u0275fac=function(Te){return new(Te||at)};static#t=this.\u0275mod=s.oAB({type:at});static#n=this.\u0275inj=s.cJS({imports:[l.BQ,l.si]})}return at})()},22939:(gt,X,a)=>{"use strict";a.d(X,{OX:()=>P,ZX:()=>Ke,qD:()=>G,ux:()=>ue});var e=a(19212),n=a(32296),s=a(72079),l=a(96814),i=a(86825),t=a(68484),p=a(62831),c=a(4300),o=a(71088),x=a(69594),u=a(19352),m=a(23680);function b(at,Le){if(1&at){const R=e.EpF();e.TgZ(0,"div",1)(1,"button",2),e.NdJ("click",function(){e.CHM(R);const me=e.oxw();return e.KtG(me.action())}),e._uU(2),e.qZA()()}if(2&at){const R=e.oxw();e.xp6(2),e.hij(" ",R.data.action," ")}}const I=["label"];function H(at,Le){}const O=Math.pow(2,31)-1;class P{constructor(Le,R){this._overlayRef=R,this._afterDismissed=new s.xQ,this._afterOpened=new s.xQ,this._onAction=new s.xQ,this._dismissedByAction=!1,this.containerInstance=Le,Le._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(Le){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(Le,O))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const G=new e.OlP("MatSnackBarData");class B{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let ae=(()=>{class at{static#e=this.\u0275fac=function(Te){return new(Te||at)};static#t=this.\u0275dir=e.lG2({type:at,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0})}return at})(),J=(()=>{class at{static#e=this.\u0275fac=function(Te){return new(Te||at)};static#t=this.\u0275dir=e.lG2({type:at,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0})}return at})(),q=(()=>{class at{static#e=this.\u0275fac=function(Te){return new(Te||at)};static#t=this.\u0275dir=e.lG2({type:at,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0})}return at})(),j=(()=>{class at{constructor(R,Te){this.snackBarRef=R,this.data=Te}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static#e=this.\u0275fac=function(Te){return new(Te||at)(e.Y36(P),e.Y36(G))};static#t=this.\u0275cmp=e.Xpm({type:at,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[e.jDz],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(Te,me){1&Te&&(e.TgZ(0,"div",0),e._uU(1),e.qZA(),e.YNc(2,b,3,1,"div",1)),2&Te&&(e.xp6(),e.hij(" ",me.data.message,"\n"),e.xp6(),e.um2(2,me.hasAction?2:-1))},dependencies:[n.lW,ae,J,q],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}return at})();const Y={snackBarState:(0,i.X$)("state",[(0,i.SB)("void, hidden",(0,i.oB)({transform:"scale(0.8)",opacity:0})),(0,i.SB)("visible",(0,i.oB)({transform:"scale(1)",opacity:1})),(0,i.eR)("* => visible",(0,i.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,i.eR)("* => void, * => hidden",(0,i.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,i.oB)({opacity:0})))])};let K=0,ne=(()=>{class at extends t.en{constructor(R,Te,me,Se,Ue){super(),this._ngZone=R,this._elementRef=Te,this._changeDetectorRef=me,this._platform=Se,this.snackBarConfig=Ue,this._document=(0,e.f3M)(l.K0),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new s.xQ,this._onExit=new s.xQ,this._onEnter=new s.xQ,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+K++,this.attachDomPortal=We=>{this._assertNotAttached();const et=this._portalOutlet.attachDomPortal(We);return this._afterPortalAttached(),et},this._live="assertive"!==Ue.politeness||Ue.announcementMessage?"off"===Ue.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(R){this._assertNotAttached();const Te=this._portalOutlet.attachComponentPortal(R);return this._afterPortalAttached(),Te}attachTemplatePortal(R){this._assertNotAttached();const Te=this._portalOutlet.attachTemplatePortal(R);return this._afterPortalAttached(),Te}onAnimationEnd(R){const{fromState:Te,toState:me}=R;if(("void"===me&&"void"!==Te||"hidden"===me)&&this._completeExit(),"visible"===me){const Se=this._onEnter;this._ngZone.run(()=>{Se.next(),Se.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){const R=this._elementRef.nativeElement,Te=this.snackBarConfig.panelClass;Te&&(Array.isArray(Te)?Te.forEach(Ue=>R.classList.add(Ue)):R.classList.add(Te)),this._exposeToModals();const me=this._label.nativeElement,Se="mdc-snackbar__label";me.classList.toggle(Se,!me.querySelector(`.${Se}`))}_exposeToModals(){const R=this._liveElementId,Te=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let me=0;me<Te.length;me++){const Se=Te[me],Ue=Se.getAttribute("aria-owns");this._trackedModals.add(Se),Ue?-1===Ue.indexOf(R)&&Se.setAttribute("aria-owns",Ue+" "+R):Se.setAttribute("aria-owns",R)}}_clearFromModals(){this._trackedModals.forEach(R=>{const Te=R.getAttribute("aria-owns");if(Te){const me=Te.replace(this._liveElementId,"").trim();me.length>0?R.setAttribute("aria-owns",me):R.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const R=this._elementRef.nativeElement.querySelector("[aria-hidden]"),Te=this._elementRef.nativeElement.querySelector("[aria-live]");if(R&&Te){let me=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&R.contains(document.activeElement)&&(me=document.activeElement),R.removeAttribute("aria-hidden"),Te.appendChild(R),me?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static#e=this.\u0275fac=function(Te){return new(Te||at)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(p.t4),e.Y36(B))};static#t=this.\u0275cmp=e.Xpm({type:at,selectors:[["mat-snack-bar-container"]],viewQuery:function(Te,me){if(1&Te&&(e.Gf(t.Pl,7),e.Gf(I,7)),2&Te){let Se;e.iGM(Se=e.CRH())&&(me._portalOutlet=Se.first),e.iGM(Se=e.CRH())&&(me._label=Se.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(Te,me){1&Te&&e.WFA("@state.done",function(Ue){return me.onAnimationEnd(Ue)}),2&Te&&e.d8E("@state",me._animationState)},standalone:!0,features:[e.qOj,e.jDz],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(Te,me){1&Te&&(e.TgZ(0,"div",0)(1,"div",1,2)(3,"div",3),e.YNc(4,H,0,0,"ng-template",4),e.qZA(),e._UZ(5,"div"),e.qZA()()),2&Te&&(e.xp6(5),e.uIk("aria-live",me._live)("role",me._role)("id",me._liveElementId))},dependencies:[t.Pl],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape)}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size);font-family:var(--mdc-snackbar-supporting-text-font);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[Y.snackBarState]}})}return at})();const $=new e.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function ee(){return new B}});let ue=(()=>{class at{get _openedSnackBarRef(){const R=this._parentSnackBar;return R?R._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(R){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=R:this._snackBarRefAtThisLevel=R}constructor(R,Te,me,Se,Ue,We){this._overlay=R,this._live=Te,this._injector=me,this._breakpointObserver=Se,this._parentSnackBar=Ue,this._defaultConfig=We,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=j,this.snackBarContainerComponent=ne,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(R,Te){return this._attach(R,Te)}openFromTemplate(R,Te){return this._attach(R,Te)}open(R,Te="",me){const Se={...this._defaultConfig,...me};return Se.data={message:R,action:Te},Se.announcementMessage===R&&(Se.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,Se)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(R,Te){const Se=e.zs3.create({parent:Te&&Te.viewContainerRef&&Te.viewContainerRef.injector||this._injector,providers:[{provide:B,useValue:Te}]}),Ue=new t.C5(this.snackBarContainerComponent,Te.viewContainerRef,Se),We=R.attach(Ue);return We.instance.snackBarConfig=Te,We.instance}_attach(R,Te){const me={...new B,...this._defaultConfig,...Te},Se=this._createOverlay(me),Ue=this._attachSnackBarContainer(Se,me),We=new P(Ue,Se);if(R instanceof e.Rgc){const et=new t.UE(R,null,{$implicit:me.data,snackBarRef:We});We.instance=Ue.attachTemplatePortal(et)}else{const et=this._createInjector(me,We),Et=new t.C5(R,void 0,et),lt=Ue.attachComponentPortal(Et);We.instance=lt.instance}return this._breakpointObserver.observe(o.u3.HandsetPortrait).pipe((0,u.R)(Se.detachments())).subscribe(et=>{Se.overlayElement.classList.toggle(this.handsetCssClass,et.matches)}),me.announcementMessage&&Ue._onAnnounce.subscribe(()=>{this._live.announce(me.announcementMessage,me.politeness)}),this._animateSnackBar(We,me),this._openedSnackBarRef=We,this._openedSnackBarRef}_animateSnackBar(R,Te){R.afterDismissed().subscribe(()=>{this._openedSnackBarRef==R&&(this._openedSnackBarRef=null),Te.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{R.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):R.containerInstance.enter(),Te.duration&&Te.duration>0&&R.afterOpened().subscribe(()=>R._dismissAfter(Te.duration))}_createOverlay(R){const Te=new x.X_;Te.direction=R.direction;let me=this._overlay.position().global();const Se="rtl"===R.direction,Ue="left"===R.horizontalPosition||"start"===R.horizontalPosition&&!Se||"end"===R.horizontalPosition&&Se,We=!Ue&&"center"!==R.horizontalPosition;return Ue?me.left("0"):We?me.right("0"):me.centerHorizontally(),"top"===R.verticalPosition?me.top("0"):me.bottom("0"),Te.positionStrategy=me,this._overlay.create(Te)}_createInjector(R,Te){return e.zs3.create({parent:R&&R.viewContainerRef&&R.viewContainerRef.injector||this._injector,providers:[{provide:P,useValue:Te},{provide:G,useValue:R.data}]})}static#e=this.\u0275fac=function(Te){return new(Te||at)(e.LFG(x.aV),e.LFG(c.Kd),e.LFG(e.zs3),e.LFG(o.Yg),e.LFG(at,12),e.LFG($))};static#t=this.\u0275prov=e.Yz7({token:at,factory:at.\u0275fac,providedIn:"root"})}return at})(),Ke=(()=>{class at{static#e=this.\u0275fac=function(Te){return new(Te||at)};static#t=this.\u0275mod=e.oAB({type:at});static#n=this.\u0275inj=e.cJS({providers:[ue],imports:[x.U8,t.eL,n.ot,m.BQ,j,m.BQ]})}return at})()},13566:(gt,X,a)=>{"use strict";a.d(X,{JX:()=>K,YE:()=>P,nU:()=>Y});var e=a(19212),n=a(4300),s=a(36028),l=a(72079),i=a(47354),t=a(23680),p=a(86825);const c=["mat-sort-header",""];function o(ne,ee){if(1&ne){const $=e.EpF();e.TgZ(0,"div",3),e.NdJ("@arrowPosition.start",function(){e.CHM($);const ge=e.oxw();return e.KtG(ge._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){e.CHM($);const ge=e.oxw();return e.KtG(ge._disableViewStateAnimation=!1)}),e._UZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"div",6)(4,"div",7)(5,"div",8),e.qZA()()}if(2&ne){const $=e.oxw();e.Q6J("@arrowOpacity",$._getArrowViewState())("@arrowPosition",$._getArrowViewState())("@allowChildren",$._getArrowDirectionState()),e.xp6(2),e.Q6J("@indicator",$._getArrowDirectionState()),e.xp6(),e.Q6J("@leftPointer",$._getArrowDirectionState()),e.xp6(),e.Q6J("@rightPointer",$._getArrowDirectionState())}}const x=["*"],H=new e.OlP("MAT_SORT_DEFAULT_OPTIONS"),O=(0,t.dB)(class{});let P=(()=>{class ne extends O{get direction(){return this._direction}set direction($){this._direction=$}constructor($){super(),this._defaultOptions=$,this.sortables=new Map,this._stateChanges=new l.xQ,this.start="asc",this._direction="",this.disabled=!1,this.sortChange=new e.vpe}register($){this.sortables.set($.id,$)}deregister($){this.sortables.delete($.id)}sort($){this.active!=$.id?(this.active=$.id,this.direction=$.start?$.start:this.start):this.direction=this.getNextSortDirection($),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection($){if(!$)return"";let ge=function G(ne,ee){let $=["asc","desc"];return"desc"==ne&&$.reverse(),ee||$.push(""),$}($.start||this.start,$?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),Ke=ge.indexOf(this.direction)+1;return Ke>=ge.length&&(Ke=0),ge[Ke]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}static#e=this.\u0275fac=function(ue){return new(ue||ne)(e.Y36(H,8))};static#t=this.\u0275dir=e.lG2({type:ne,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[e.lbL.None,"matSortActive","active"],start:[e.lbL.None,"matSortStart","start"],direction:[e.lbL.None,"matSortDirection","direction"],disableClear:[e.lbL.HasDecoratorInputTransform,"matSortDisableClear","disableClear",e.VuI],disabled:[e.lbL.HasDecoratorInputTransform,"matSortDisabled","disabled",e.VuI]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],standalone:!0,features:[e.Xq5,e.qOj,e.TTD]})}return ne})();const B=t.mZ.ENTERING+" "+t.yN.STANDARD_CURVE,ae={indicator:(0,p.X$)("indicator",[(0,p.SB)("active-asc, asc",(0,p.oB)({transform:"translateY(0px)"})),(0,p.SB)("active-desc, desc",(0,p.oB)({transform:"translateY(10px)"})),(0,p.eR)("active-asc <=> active-desc",(0,p.jt)(B))]),leftPointer:(0,p.X$)("leftPointer",[(0,p.SB)("active-asc, asc",(0,p.oB)({transform:"rotate(-45deg)"})),(0,p.SB)("active-desc, desc",(0,p.oB)({transform:"rotate(45deg)"})),(0,p.eR)("active-asc <=> active-desc",(0,p.jt)(B))]),rightPointer:(0,p.X$)("rightPointer",[(0,p.SB)("active-asc, asc",(0,p.oB)({transform:"rotate(45deg)"})),(0,p.SB)("active-desc, desc",(0,p.oB)({transform:"rotate(-45deg)"})),(0,p.eR)("active-asc <=> active-desc",(0,p.jt)(B))]),arrowOpacity:(0,p.X$)("arrowOpacity",[(0,p.SB)("desc-to-active, asc-to-active, active",(0,p.oB)({opacity:1})),(0,p.SB)("desc-to-hint, asc-to-hint, hint",(0,p.oB)({opacity:.54})),(0,p.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,p.oB)({opacity:0})),(0,p.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,p.jt)("0ms")),(0,p.eR)("* <=> *",(0,p.jt)(B))]),arrowPosition:(0,p.X$)("arrowPosition",[(0,p.eR)("* => desc-to-hint, * => desc-to-active",(0,p.jt)(B,(0,p.F4)([(0,p.oB)({transform:"translateY(-25%)"}),(0,p.oB)({transform:"translateY(0)"})]))),(0,p.eR)("* => hint-to-desc, * => active-to-desc",(0,p.jt)(B,(0,p.F4)([(0,p.oB)({transform:"translateY(0)"}),(0,p.oB)({transform:"translateY(25%)"})]))),(0,p.eR)("* => asc-to-hint, * => asc-to-active",(0,p.jt)(B,(0,p.F4)([(0,p.oB)({transform:"translateY(25%)"}),(0,p.oB)({transform:"translateY(0)"})]))),(0,p.eR)("* => hint-to-asc, * => active-to-asc",(0,p.jt)(B,(0,p.F4)([(0,p.oB)({transform:"translateY(0)"}),(0,p.oB)({transform:"translateY(-25%)"})]))),(0,p.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,p.oB)({transform:"translateY(0)"})),(0,p.SB)("hint-to-desc, active-to-desc, desc",(0,p.oB)({transform:"translateY(-25%)"})),(0,p.SB)("hint-to-asc, active-to-asc, asc",(0,p.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,p.X$)("allowChildren",[(0,p.eR)("* <=> *",[(0,p.IO)("@*",(0,p.pV)(),{optional:!0})])])};let J=(()=>{class ne{constructor(){this.changes=new l.xQ}static#e=this.\u0275fac=function(ue){return new(ue||ne)};static#t=this.\u0275prov=e.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"})}return ne})();const j={provide:J,deps:[[new e.FiY,new e.tp0,J]],useFactory:function q(ne){return ne||new J}};let Y=(()=>{class ne{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription($){this._updateSortActionDescription($)}constructor($,ue,ge,Ke,at,Le,R,Te){this._intl=$,this._changeDetectorRef=ue,this._sort=ge,this._columnDef=Ke,this._focusMonitor=at,this._elementRef=Le,this._ariaDescriber=R,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this.disabled=!1,this._sortActionDescription="Sort",Te?.arrowPosition&&(this.arrowPosition=Te?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe($=>{const ue=!!$;ue!==this._showIndicatorHint&&(this._setIndicatorHintVisible(ue),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible($){this._isDisabled()&&$||(this._showIndicatorHint=$,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState($){this._viewState=$||{},this._disableViewStateAnimation&&(this._viewState={toState:$.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown($){!this._isDisabled()&&($.keyCode===s.L_||$.keyCode===s.K5)&&($.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const $=this._viewState.fromState;return($?`${$}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription($){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,$)),this._sortActionDescription=$}_handleStateChanges(){this._rerenderSubscription=(0,i.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}static#e=this.\u0275fac=function(ue){return new(ue||ne)(e.Y36(J),e.Y36(e.sBO),e.Y36(P,8),e.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),e.Y36(n.tE),e.Y36(e.SBq),e.Y36(n.$s,8),e.Y36(H,8))};static#t=this.\u0275cmp=e.Xpm({type:ne,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(ue,ge){1&ue&&e.NdJ("click",function(){return ge._handleClick()})("keydown",function(at){return ge._handleKeydown(at)})("mouseenter",function(){return ge._setIndicatorHintVisible(!0)})("mouseleave",function(){return ge._setIndicatorHintVisible(!1)}),2&ue&&(e.uIk("aria-sort",ge._getAriaSortAttribute()),e.ekj("mat-sort-header-disabled",ge._isDisabled()))},inputs:{id:[e.lbL.None,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[e.lbL.HasDecoratorInputTransform,"disabled","disabled",e.VuI],sortActionDescription:"sortActionDescription",disableClear:[e.lbL.HasDecoratorInputTransform,"disableClear","disableClear",e.VuI]},exportAs:["matSortHeader"],standalone:!0,features:[e.Xq5,e.jDz],attrs:c,ngContentSelectors:x,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(ue,ge){1&ue&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1),e.Hsn(2),e.qZA(),e.YNc(3,o,6,6,"div",2),e.qZA()),2&ue&&(e.ekj("mat-sort-header-sorted",ge._isSorted())("mat-sort-header-position-before","before"===ge.arrowPosition),e.uIk("tabindex",ge._isDisabled()?null:0)("role",ge._isDisabled()?null:"button"),e.xp6(3),e.um2(3,ge._renderArrow()?3:-1))},styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;color:var(--mat-sort-arrow-color);opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[ae.indicator,ae.leftPointer,ae.rightPointer,ae.arrowOpacity,ae.arrowPosition,ae.allowChildren]},changeDetection:0})}return ne})(),K=(()=>{class ne{static#e=this.\u0275fac=function(ue){return new(ue||ne)};static#t=this.\u0275mod=e.oAB({type:ne});static#n=this.\u0275inj=e.cJS({providers:[j],imports:[t.BQ]})}return ne})()},61545:(gt,X,a)=>{"use strict";a.d(X,{T5:()=>no});var e=a(68484),n=a(4300),s=a(49388),l=a(36028),i=a(19212),t=a(62831),p=a(72079),c=a(49193),o=a(53075),x=a(19352);function u(Li,ji){1&Li&&i.Hsn(0)}const m=["*"];let b=(()=>{class Li{constructor(Ii){this._elementRef=Ii}focus(){this._elementRef.nativeElement.focus()}static#e=this.\u0275fac=function(_i){return new(_i||Li)(i.Y36(i.SBq))};static#t=this.\u0275dir=i.lG2({type:Li,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"],standalone:!0})}return Li})(),I=(()=>{class Li{constructor(Ii){this.template=Ii}static#e=this.\u0275fac=function(_i){return new(_i||Li)(i.Y36(i.Rgc))};static#t=this.\u0275dir=i.lG2({type:Li,selectors:[["","cdkStepLabel",""]],standalone:!0})}return Li})(),H=0;const G=new i.OlP("STEPPER_GLOBAL_OPTIONS");let B=(()=>{class Li{get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(Ii){this._completedOverride=Ii}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(Ii){this._customError=Ii}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(Ii,_i){this._stepper=Ii,this.interacted=!1,this.interactedStream=new i.vpe,this.editable=!0,this.optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=_i||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError}static#e=this.\u0275fac=function(_i){return new(_i||Li)(i.Y36((0,i.Gpc)(()=>ae)),i.Y36(G,8))};static#t=this.\u0275cmp=i.Xpm({type:Li,selectors:[["cdk-step"]],contentQueries:function(_i,En,co){if(1&_i&&i.Suo(co,I,5),2&_i){let yn;i.iGM(yn=i.CRH())&&(En.stepLabel=yn.first)}},viewQuery:function(_i,En){if(1&_i&&i.Gf(i.Rgc,7),2&_i){let co;i.iGM(co=i.CRH())&&(En.content=co.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[i.lbL.None,"aria-label","ariaLabel"],ariaLabelledby:[i.lbL.None,"aria-labelledby","ariaLabelledby"],state:"state",editable:[i.lbL.HasDecoratorInputTransform,"editable","editable",i.VuI],optional:[i.lbL.HasDecoratorInputTransform,"optional","optional",i.VuI],completed:[i.lbL.HasDecoratorInputTransform,"completed","completed",i.VuI],hasError:[i.lbL.HasDecoratorInputTransform,"hasError","hasError",i.VuI]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],standalone:!0,features:[i.Xq5,i.TTD,i.jDz],ngContentSelectors:m,decls:1,vars:0,template:function(_i,En){1&_i&&(i.F$t(),i.YNc(0,u,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return Li})(),ae=(()=>{class Li{get selectedIndex(){return this._selectedIndex}set selectedIndex(Ii){this.steps&&this._steps?(this._isValidIndex(Ii),this.selected?._markAsInteracted(),this._selectedIndex!==Ii&&!this._anyControlsInvalidOrPending(Ii)&&(Ii>=this._selectedIndex||this.steps.toArray()[Ii].editable)&&this._updateSelectedItemIndex(Ii)):this._selectedIndex=Ii}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(Ii){this.selectedIndex=Ii&&this.steps?this.steps.toArray().indexOf(Ii):-1}get orientation(){return this._orientation}set orientation(Ii){this._orientation=Ii,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===Ii)}constructor(Ii,_i,En){this._dir=Ii,this._changeDetectorRef=_i,this._elementRef=En,this._destroyed=new p.xQ,this.steps=new i.n_E,this._sortedHeaders=new i.n_E,this.linear=!1,this._selectedIndex=0,this.selectionChange=new i.vpe,this.selectedIndexChange=new i.vpe,this._orientation="horizontal",this._groupId=H++}ngAfterContentInit(){this._steps.changes.pipe((0,o.O)(this._steps),(0,x.R)(this._destroyed)).subscribe(Ii=>{this.steps.reset(Ii.filter(_i=>_i._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,o.O)(this._stepHeader),(0,x.R)(this._destroyed)).subscribe(Ii=>{this._sortedHeaders.reset(Ii.toArray().sort((_i,En)=>_i._elementRef.nativeElement.compareDocumentPosition(En._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new n.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,c.of)()).pipe((0,o.O)(this._layoutDirection()),(0,x.R)(this._destroyed)).subscribe(Ii=>this._keyManager.withHorizontalOrientation(Ii)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(Ii=>Ii.reset()),this._stateChanged()}_getStepLabelId(Ii){return`cdk-step-label-${this._groupId}-${Ii}`}_getStepContentId(Ii){return`cdk-step-content-${this._groupId}-${Ii}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(Ii){const _i=Ii-this._selectedIndex;return _i<0?"rtl"===this._layoutDirection()?"next":"previous":_i>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(Ii,_i="number"){const En=this.steps.toArray()[Ii],co=this._isCurrentStep(Ii);return En._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(En,co):this._getGuidelineLogic(En,co,_i)}_getDefaultIndicatorLogic(Ii,_i){return Ii._showError()&&Ii.hasError&&!_i?"error":!Ii.completed||_i?"number":Ii.editable?"edit":"done"}_getGuidelineLogic(Ii,_i,En="number"){return Ii._showError()&&Ii.hasError&&!_i?"error":Ii.completed&&!_i?"done":Ii.completed&&_i?En:Ii.editable&&_i?"edit":En}_isCurrentStep(Ii){return this._selectedIndex===Ii}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(Ii){const _i=this.steps.toArray();this.selectionChange.emit({selectedIndex:Ii,previouslySelectedIndex:this._selectedIndex,selectedStep:_i[Ii],previouslySelectedStep:_i[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(Ii):this._keyManager.updateActiveItem(Ii),this._selectedIndex=Ii,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(Ii){const _i=(0,l.Vb)(Ii),En=Ii.keyCode,co=this._keyManager;null==co.activeItemIndex||_i||En!==l.L_&&En!==l.K5?co.setFocusOrigin("keyboard").onKeydown(Ii):(this.selectedIndex=co.activeItemIndex,Ii.preventDefault())}_anyControlsInvalidOrPending(Ii){return!!(this.linear&&Ii>=0)&&this.steps.toArray().slice(0,Ii).some(_i=>{const En=_i.stepControl;return(En?En.invalid||En.pending||!_i.interacted:!_i.completed)&&!_i.optional&&!_i._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const Ii=this._elementRef.nativeElement,_i=(0,t.ht)();return Ii===_i||Ii.contains(_i)}_isValidIndex(Ii){return Ii>-1&&(!this.steps||Ii<this.steps.length)}static#e=this.\u0275fac=function(_i){return new(_i||Li)(i.Y36(s.Is,8),i.Y36(i.sBO),i.Y36(i.SBq))};static#t=this.\u0275dir=i.lG2({type:Li,selectors:[["","cdkStepper",""]],contentQueries:function(_i,En,co){if(1&_i&&(i.Suo(co,B,5),i.Suo(co,b,5)),2&_i){let yn;i.iGM(yn=i.CRH())&&(En._steps=yn),i.iGM(yn=i.CRH())&&(En._stepHeader=yn)}},inputs:{linear:[i.lbL.HasDecoratorInputTransform,"linear","linear",i.VuI],selectedIndex:[i.lbL.HasDecoratorInputTransform,"selectedIndex","selectedIndex",i.Cb_],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"],standalone:!0,features:[i.Xq5]})}return Li})(),j=(()=>{class Li{static#e=this.\u0275fac=function(_i){return new(_i||Li)};static#t=this.\u0275mod=i.oAB({type:Li});static#n=this.\u0275inj=i.cJS({imports:[s.vT]})}return Li})();var Y=a(96814),K=a(23680),ne=a(30617),ee=a(7902),$=a(75222),ue=a(96124),ge=a(32068),Ke=a(86825);function at(Li,ji){if(1&Li&&i.GkF(0,2),2&Li){const Ii=i.oxw();i.Q6J("ngTemplateOutlet",Ii.iconOverrides[Ii.state])("ngTemplateOutletContext",Ii._getIconContext())}}function Le(Li,ji){if(1&Li&&(i.TgZ(0,"span",7),i._uU(1),i.qZA()),2&Li){const Ii=i.oxw(2);i.xp6(),i.Oqu(Ii._getDefaultTextForState(Ii.state))}}function R(Li,ji){if(1&Li&&(i.TgZ(0,"span",9),i._uU(1),i.qZA()),2&Li){const Ii=i.oxw(3);i.xp6(),i.Oqu(Ii._intl.completedLabel)}}function Te(Li,ji){if(1&Li&&(i.TgZ(0,"span",9),i._uU(1),i.qZA()),2&Li){const Ii=i.oxw(3);i.xp6(),i.Oqu(Ii._intl.editableLabel)}}function me(Li,ji){if(1&Li&&(i.YNc(0,R,2,1,"span",8)(1,Te,2,1),i.TgZ(2,"mat-icon",7),i._uU(3),i.qZA()),2&Li){const Ii=i.oxw(2);i.um2(0,"done"===Ii.state?0:"edit"===Ii.state?1:-1),i.xp6(3),i.Oqu(Ii._getDefaultTextForState(Ii.state))}}function Se(Li,ji){if(1&Li&&i.YNc(0,Le,2,1)(1,me,4,2),2&Li){const Ii=i.oxw();let _i;i.um2(0,"number"===(_i=Ii.state)?0:1)}}function Ue(Li,ji){1&Li&&(i.TgZ(0,"div",10),i.GkF(1,11),i.qZA()),2&Li&&(i.xp6(),i.Q6J("ngTemplateOutlet",ji.template))}function We(Li,ji){if(1&Li&&(i.TgZ(0,"div",10),i._uU(1),i.qZA()),2&Li){const Ii=i.oxw();i.xp6(),i.Oqu(Ii.label)}}function et(Li,ji){if(1&Li&&(i.TgZ(0,"div",12),i._uU(1),i.qZA()),2&Li){const Ii=i.oxw();i.xp6(),i.Oqu(Ii._intl.optionalLabel)}}function Et(Li,ji){if(1&Li&&(i.TgZ(0,"div",13),i._uU(1),i.qZA()),2&Li){const Ii=i.oxw();i.xp6(),i.Oqu(Ii.errorMessage)}}function lt(Li,ji){}function Vt(Li,ji){if(1&Li&&(i.Hsn(0),i.YNc(1,lt,0,0,"ng-template",0)),2&Li){const Ii=i.oxw();i.xp6(),i.Q6J("cdkPortalOutlet",Ii._portal)}}const r=["*"];function Z(Li,ji){1&Li&&i.Hsn(0)}function Pt(Li,ji){1&Li&&i._UZ(0,"div",6)}const Oe=(Li,ji)=>({step:Li,i:ji});function ye(Li,ji){if(1&Li&&(i.GkF(0,4),i.YNc(1,Pt,1,0,"div",5)),2&Li){const Ii=ji.$implicit,_i=ji.$index,En=ji.$count;i.oxw(2);const co=i.MAs(4);i.Q6J("ngTemplateOutlet",co)("ngTemplateOutletContext",i.WLB(3,Oe,Ii,_i)),i.xp6(),i.um2(1,_i!==En-1?1:-1)}}const ve=Li=>({animationDuration:Li}),ft=(Li,ji)=>({value:Li,params:ji});function Dt(Li,ji){if(1&Li){const Ii=i.EpF();i.TgZ(0,"div",7),i.NdJ("@horizontalStepTransition.done",function(En){i.CHM(Ii);const co=i.oxw(2);return i.KtG(co._animationDone.next(En))}),i.GkF(1,8),i.qZA()}if(2&Li){const Ii=ji.$implicit,_i=ji.$index,En=i.oxw(2);i.ekj("mat-horizontal-stepper-content-inactive",En.selectedIndex!==_i),i.Q6J("@horizontalStepTransition",i.WLB(8,ft,En._getAnimationDirection(_i),i.VKq(6,ve,En._getAnimationDuration())))("id",En._getStepContentId(_i)),i.uIk("aria-labelledby",En._getStepLabelId(_i)),i.xp6(),i.Q6J("ngTemplateOutlet",Ii.content)}}function Rn(Li,ji){if(1&Li&&(i.TgZ(0,"div",1)(1,"div",2),i.SjG(2,ye,2,6,null,null,i.x6l),i.qZA(),i.TgZ(4,"div",3),i.SjG(5,Dt,2,11,"div",9,i.x6l),i.qZA()()),2&Li){const Ii=i.oxw();i.xp6(2),i.wJu(Ii.steps),i.xp6(3),i.wJu(Ii.steps)}}function ti(Li,ji){if(1&Li){const Ii=i.EpF();i.TgZ(0,"div",10),i.GkF(1,4),i.TgZ(2,"div",11)(3,"div",12),i.NdJ("@verticalStepTransition.done",function(En){i.CHM(Ii);const co=i.oxw(2);return i.KtG(co._animationDone.next(En))}),i.TgZ(4,"div",13),i.GkF(5,8),i.qZA()()()()}if(2&Li){const Ii=ji.$implicit,_i=ji.$index,En=ji.$count,co=i.oxw(2),yn=i.MAs(4);i.xp6(),i.Q6J("ngTemplateOutlet",yn)("ngTemplateOutletContext",i.WLB(10,Oe,Ii,_i)),i.xp6(),i.ekj("mat-stepper-vertical-line",_i!==En-1),i.xp6(),i.ekj("mat-vertical-stepper-content-inactive",co.selectedIndex!==_i),i.Q6J("@verticalStepTransition",i.WLB(15,ft,co._getAnimationDirection(_i),i.VKq(13,ve,co._getAnimationDuration())))("id",co._getStepContentId(_i)),i.uIk("aria-labelledby",co._getStepLabelId(_i)),i.xp6(2),i.Q6J("ngTemplateOutlet",Ii.content)}}function Xt(Li,ji){if(1&Li&&i.SjG(0,ti,6,18,"div",14,i.x6l),2&Li){const Ii=i.oxw();i.wJu(Ii.steps)}}function Je(Li,ji){if(1&Li){const Ii=i.EpF();i.TgZ(0,"mat-step-header",15),i.NdJ("click",function(){const co=i.CHM(Ii).step;return i.KtG(co.select())})("keydown",function(En){i.CHM(Ii);const co=i.oxw();return i.KtG(co._onKeydown(En))}),i.qZA()}if(2&Li){const Ii=ji.step,_i=ji.i,En=i.oxw();i.ekj("mat-horizontal-stepper-header","horizontal"===En.orientation)("mat-vertical-stepper-header","vertical"===En.orientation),i.Q6J("tabIndex",En._getFocusIndex()===_i?0:-1)("id",En._getStepLabelId(_i))("index",_i)("state",En._getIndicatorType(_i,Ii.state))("label",Ii.stepLabel||Ii.label)("selected",En.selectedIndex===_i)("active",En._stepIsNavigable(_i,Ii))("optional",Ii.optional)("errorMessage",Ii.errorMessage)("iconOverrides",En._iconOverrides)("disableRipple",En.disableRipple||!En._stepIsNavigable(_i,Ii))("color",Ii.color||En.color),i.uIk("aria-posinset",_i+1)("aria-setsize",En.steps.length)("aria-controls",En._getStepContentId(_i))("aria-selected",En.selectedIndex==_i)("aria-label",Ii.ariaLabel||null)("aria-labelledby",!Ii.ariaLabel&&Ii.ariaLabelledby?Ii.ariaLabelledby:null)("aria-disabled",!En._stepIsNavigable(_i,Ii)||null)}}let dt=(()=>{class Li extends I{static#e=this.\u0275fac=(()=>{let Ii;return function(En){return(Ii||(Ii=i.n5z(Li)))(En||Li)}})();static#t=this.\u0275dir=i.lG2({type:Li,selectors:[["","matStepLabel",""]],standalone:!0,features:[i.qOj]})}return Li})(),Ie=(()=>{class Li{constructor(){this.changes=new p.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}static#e=this.\u0275fac=function(_i){return new(_i||Li)};static#t=this.\u0275prov=i.Yz7({token:Li,factory:Li.\u0275fac,providedIn:"root"})}return Li})();const ct={provide:Ie,deps:[[new i.FiY,new i.tp0,Ie]],useFactory:function ot(Li){return Li||new Ie}};let tn=(()=>{class Li extends b{constructor(Ii,_i,En,co){super(En),this._intl=Ii,this._focusMonitor=_i,this._intlSubscription=Ii.changes.subscribe(()=>co.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(Ii,_i){Ii?this._focusMonitor.focusVia(this._elementRef,Ii,_i):this._elementRef.nativeElement.focus(_i)}_stringLabel(){return this.label instanceof dt?null:this.label}_templateLabel(){return this.label instanceof dt?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(Ii){return"number"==Ii?`${this.index+1}`:"edit"==Ii?"create":"error"==Ii?"warning":Ii}static#e=this.\u0275fac=function(_i){return new(_i||Li)(i.Y36(Ie),i.Y36(n.tE),i.Y36(i.SBq),i.Y36(i.sBO))};static#t=this.\u0275cmp=i.Xpm({type:Li,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:2,hostBindings:function(_i,En){2&_i&&i.Tol("mat-"+(En.color||"primary"))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},standalone:!0,features:[i.qOj,i.jDz],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],["class","mat-step-text-label"],["class","mat-step-optional"],["class","mat-step-sub-label-error"],["aria-hidden","true"],["class","cdk-visually-hidden"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(_i,En){if(1&_i&&(i._UZ(0,"div",0),i.TgZ(1,"div")(2,"div",1),i.YNc(3,at,1,2,"ng-container",2)(4,Se,2,1),i.qZA()(),i.TgZ(5,"div",3),i.YNc(6,Ue,2,1,"div",4)(7,We,2,1)(8,et,2,1,"div",5)(9,Et,2,1,"div",6),i.qZA()),2&_i){let co;i.Q6J("matRippleTrigger",En._getHostElement())("matRippleDisabled",En.disableRipple),i.xp6(),i.Gre("mat-step-icon-state-",En.state," mat-step-icon"),i.ekj("mat-step-icon-selected",En.selected),i.xp6(2),i.um2(3,En.iconOverrides&&En.iconOverrides[En.state]?3:4),i.xp6(2),i.ekj("mat-step-label-active",En.active)("mat-step-label-selected",En.selected)("mat-step-label-error","error"==En.state),i.xp6(),i.um2(6,(co=En._templateLabel())?6:En._stringLabel()?7:-1,co),i.xp6(2),i.um2(8,En.optional&&"error"!=En.state?8:-1),i.xp6(),i.um2(9,"error"===En.state?9:-1)}},dependencies:[K.wG,Y.tP,ne.Hw],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color)}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color)}@media(hover: none){.mat-step-header:hover{background:none}}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color)}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color);background-color:var(--mat-stepper-header-icon-background-color)}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color);color:var(--mat-stepper-header-error-state-icon-foreground-color)}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font);font-size:var(--mat-stepper-header-label-text-size);font-weight:var(--mat-stepper-header-label-text-weight);color:var(--mat-stepper-header-label-text-color)}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color)}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color);font-size:var(--mat-stepper-header-error-state-label-text-size)}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size);font-weight:var(--mat-stepper-header-selected-state-label-text-weight)}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color);color:var(--mat-stepper-header-selected-state-icon-foreground-color)}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color);color:var(--mat-stepper-header-edit-state-icon-foreground-color)}'],encapsulation:2,changeDetection:0})}return Li})();const sn={horizontalStepTransition:(0,Ke.X$)("horizontalStepTransition",[(0,Ke.SB)("previous",(0,Ke.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,Ke.SB)("current",(0,Ke.oB)({transform:"none",visibility:"inherit"})),(0,Ke.SB)("next",(0,Ke.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,Ke.eR)("* => *",(0,Ke.ru)([(0,Ke.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),(0,Ke.IO)("@*",(0,Ke.pV)(),{optional:!0})]),{params:{animationDuration:"500ms"}})]),verticalStepTransition:(0,Ke.X$)("verticalStepTransition",[(0,Ke.SB)("previous",(0,Ke.oB)({height:"0px",visibility:"hidden"})),(0,Ke.SB)("next",(0,Ke.oB)({height:"0px",visibility:"hidden"})),(0,Ke.SB)("current",(0,Ke.oB)({height:"*",visibility:"inherit"})),(0,Ke.eR)("* <=> current",(0,Ke.ru)([(0,Ke.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),(0,Ke.IO)("@*",(0,Ke.pV)(),{optional:!0})]),{params:{animationDuration:"225ms"}})])};let bn=(()=>{class Li{constructor(Ii){this.templateRef=Ii}static#e=this.\u0275fac=function(_i){return new(_i||Li)(i.Y36(i.Rgc))};static#t=this.\u0275dir=i.lG2({type:Li,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[i.lbL.None,"matStepperIcon","name"]},standalone:!0})}return Li})(),vt=(()=>{class Li{constructor(Ii){this._template=Ii}static#e=this.\u0275fac=function(_i){return new(_i||Li)(i.Y36(i.Rgc))};static#t=this.\u0275dir=i.lG2({type:Li,selectors:[["ng-template","matStepContent",""]],standalone:!0})}return Li})(),nn=(()=>{class Li extends B{constructor(Ii,_i,En,co){super(Ii,co),this._errorStateMatcher=_i,this._viewContainerRef=En,this._isSelected=ee.w.EMPTY,this.stepLabel=void 0}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,$.w)(()=>this._stepper.selectionChange.pipe((0,ue.U)(Ii=>Ii.selectedStep===this),(0,o.O)(this._stepper.selected===this)))).subscribe(Ii=>{Ii&&this._lazyContent&&!this._portal&&(this._portal=new e.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(Ii,_i){return this._errorStateMatcher.isErrorState(Ii,_i)||!!(Ii&&Ii.invalid&&this.interacted)}static#e=this.\u0275fac=function(_i){return new(_i||Li)(i.Y36((0,i.Gpc)(()=>rn)),i.Y36(K.rD,4),i.Y36(i.s_b),i.Y36(G,8))};static#t=this.\u0275cmp=i.Xpm({type:Li,selectors:[["mat-step"]],contentQueries:function(_i,En,co){if(1&_i&&(i.Suo(co,dt,5),i.Suo(co,vt,5)),2&_i){let yn;i.iGM(yn=i.CRH())&&(En.stepLabel=yn.first),i.iGM(yn=i.CRH())&&(En._lazyContent=yn.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],standalone:!0,features:[i._Bn([{provide:K.rD,useExisting:Li},{provide:B,useExisting:Li}]),i.qOj,i.jDz],ngContentSelectors:r,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(_i,En){1&_i&&(i.F$t(),i.YNc(0,Vt,2,1,"ng-template"))},dependencies:[e.Pl],encapsulation:2,changeDetection:0})}return Li})(),rn=(()=>{class Li extends ae{get animationDuration(){return this._animationDuration}set animationDuration(Ii){this._animationDuration=/^\d+$/.test(Ii)?Ii+"ms":Ii}constructor(Ii,_i,En){super(Ii,_i,En),this._stepHeader=void 0,this._steps=void 0,this.steps=new i.n_E,this.animationDone=new i.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new p.xQ,this._animationDuration="",this._isServer=!(0,i.f3M)(t.t4).isBrowser;const co=En.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===co?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:Ii,templateRef:_i})=>this._iconOverrides[Ii]=_i),this.steps.changes.pipe((0,x.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,ge.x)((Ii,_i)=>Ii.fromState===_i.fromState&&Ii.toState===_i.toState),(0,x.R)(this._destroyed)).subscribe(Ii=>{"current"===Ii.toState&&this.animationDone.emit()})}_stepIsNavigable(Ii,_i){return _i.completed||this.selectedIndex===Ii||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}static#e=this.\u0275fac=function(_i){return new(_i||Li)(i.Y36(s.Is,8),i.Y36(i.sBO),i.Y36(i.SBq))};static#t=this.\u0275cmp=i.Xpm({type:Li,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(_i,En,co){if(1&_i&&(i.Suo(co,nn,5),i.Suo(co,bn,5)),2&_i){let yn;i.iGM(yn=i.CRH())&&(En._steps=yn),i.iGM(yn=i.CRH())&&(En._icons=yn)}},viewQuery:function(_i,En){if(1&_i&&i.Gf(tn,5),2&_i){let co;i.iGM(co=i.CRH())&&(En._stepHeader=co)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(_i,En){2&_i&&(i.uIk("aria-orientation",En.orientation),i.ekj("mat-stepper-horizontal","horizontal"===En.orientation)("mat-stepper-vertical","vertical"===En.orientation)("mat-stepper-label-position-end","horizontal"===En.orientation&&"end"==En.labelPosition)("mat-stepper-label-position-bottom","horizontal"===En.orientation&&"bottom"==En.labelPosition)("mat-stepper-header-position-bottom","bottom"===En.headerPosition))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],standalone:!0,features:[i._Bn([{provide:ae,useExisting:Li}]),i.qOj,i.jDz],ngContentSelectors:r,decls:5,vars:2,consts:[["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id","mat-horizontal-stepper-content-inactive"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],["class","mat-step"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(_i,En){if(1&_i&&(i.F$t(),i.YNc(0,Z,1,0)(1,Rn,7,0)(2,Xt,2,0)(3,Je,1,23,"ng-template",null,0,i.W1O)),2&_i){let co;i.um2(0,En._isServer?0:-1),i.xp6(),i.um2(1,"horizontal"===(co=En.orientation)?1:"vertical"===co?2:-1)}},dependencies:[Y.tP,tn],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font);background:var(--mat-stepper-container-color)}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color)}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color);top:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[sn.horizontalStepTransition,sn.verticalStepTransition]},changeDetection:0})}return Li})(),no=(()=>{class Li{static#e=this.\u0275fac=function(_i){return new(_i||Li)};static#t=this.\u0275mod=i.oAB({type:Li});static#n=this.\u0275inj=i.cJS({providers:[ct,K.rD],imports:[K.BQ,Y.ez,e.eL,j,ne.Ps,K.si,rn,tn,K.BQ]})}return Li})()},25313:(gt,X,a)=>{"use strict";a.d(X,{ev:()=>_o,Dz:()=>Fn,w1:()=>li,ge:()=>si,fO:()=>yt,XQ:()=>wn,as:()=>mo,Gk:()=>Kn,nj:()=>Ji,BZ:()=>Yt,by:()=>_n,p0:()=>Oi});var e=a(19212),n=a(49388),s=a(78337),l=a(62831),i=a(39505),t=a(96814),p=a(72079),c=a(5253),o=a(45125),x=a(95363),u=a(49193),m=a(19352),b=a(51418),I=a(42495);function H(st,Dn){1&st&&e.Hsn(0,2)}function O(st,Dn){1&st&&(e.TgZ(0,"thead",0),e.GkF(1,1),e.qZA(),e.TgZ(2,"tbody",0),e.GkF(3,2)(4,3),e.qZA(),e.TgZ(5,"tfoot",0),e.GkF(6,4),e.qZA())}function P(st,Dn){1&st&&e.GkF(0,1)(1,2)(2,3)(3,4)}const G=[[["caption"]],[["colgroup"],["col"]],"*"],B=["caption","colgroup, col","*"];function q(st){return class extends st{get sticky(){return this._sticky}set sticky(Dn){const Wt=this._sticky;this._sticky=(0,I.Ig)(Dn),this._hasStickyChanged=Wt!==this._sticky}hasStickyChanged(){const Dn=this._hasStickyChanged;return this._hasStickyChanged=!1,Dn}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...Dn){super(...Dn),this._sticky=!1,this._hasStickyChanged=!1}}}const j=new e.OlP("CDK_TABLE");let K=(()=>{class st{constructor(Wt){this.template=Wt}static#e=this.\u0275fac=function(kn){return new(kn||st)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:st,selectors:[["","cdkCellDef",""]],standalone:!0})}return st})(),ne=(()=>{class st{constructor(Wt){this.template=Wt}static#e=this.\u0275fac=function(kn){return new(kn||st)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:st,selectors:[["","cdkHeaderCellDef",""]],standalone:!0})}return st})(),ee=(()=>{class st{constructor(Wt){this.template=Wt}static#e=this.\u0275fac=function(kn){return new(kn||st)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:st,selectors:[["","cdkFooterCellDef",""]],standalone:!0})}return st})();class ${}const ue=q($);let ge=(()=>{class st extends ue{get name(){return this._name}set name(Wt){this._setNameInput(Wt)}get stickyEnd(){return this._stickyEnd}set stickyEnd(Wt){Wt!==this._stickyEnd&&(this._stickyEnd=Wt,this._hasStickyChanged=!0)}constructor(Wt){super(),this._table=Wt,this._stickyEnd=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(Wt){Wt&&(this._name=Wt,this.cssClassFriendlyName=Wt.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static#e=this.\u0275fac=function(kn){return new(kn||st)(e.Y36(j,8))};static#t=this.\u0275dir=e.lG2({type:st,selectors:[["","cdkColumnDef",""]],contentQueries:function(kn,Fi,ui){if(1&kn&&(e.Suo(ui,K,5),e.Suo(ui,ne,5),e.Suo(ui,ee,5)),2&kn){let Fo;e.iGM(Fo=e.CRH())&&(Fi.cell=Fo.first),e.iGM(Fo=e.CRH())&&(Fi.headerCell=Fo.first),e.iGM(Fo=e.CRH())&&(Fi.footerCell=Fo.first)}},inputs:{sticky:"sticky",name:[e.lbL.None,"cdkColumnDef","name"],stickyEnd:[e.lbL.HasDecoratorInputTransform,"stickyEnd","stickyEnd",e.VuI]},standalone:!0,features:[e._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:st}]),e.Xq5,e.qOj]})}return st})();class Ke{constructor(Dn,Wt){Wt.nativeElement.classList.add(...Dn._columnCssClassName)}}let at=(()=>{class st extends Ke{constructor(Wt,kn){super(Wt,kn)}static#e=this.\u0275fac=function(kn){return new(kn||st)(e.Y36(ge),e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:st,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],standalone:!0,features:[e.qOj]})}return st})(),R=(()=>{class st extends Ke{constructor(Wt,kn){super(Wt,kn);const Fi=Wt._table?._getCellRole();Fi&&kn.nativeElement.setAttribute("role",Fi)}static#e=this.\u0275fac=function(kn){return new(kn||st)(e.Y36(ge),e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:st,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[e.qOj]})}return st})();class Te{constructor(){this.tasks=[],this.endTasks=[]}}const me=new e.OlP("_COALESCED_STYLE_SCHEDULER");let Se=(()=>{class st{constructor(Wt){this._ngZone=Wt,this._currentSchedule=null,this._destroyed=new p.xQ}schedule(Wt){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(Wt)}scheduleEnd(Wt){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(Wt)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Te,this._getScheduleObservable().pipe((0,m.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const Wt=this._currentSchedule;this._currentSchedule=new Te;for(const kn of Wt.tasks)kn();for(const kn of Wt.endTasks)kn()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,c.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,b.q)(1))}static#e=this.\u0275fac=function(kn){return new(kn||st)(e.LFG(e.R0b))};static#t=this.\u0275prov=e.Yz7({token:st,factory:st.\u0275fac})}return st})(),We=(()=>{class st{constructor(Wt,kn){this.template=Wt,this._differs=kn}ngOnChanges(Wt){if(!this._columnsDiffer){const kn=Wt.columns&&Wt.columns.currentValue||[];this._columnsDiffer=this._differs.find(kn).create(),this._columnsDiffer.diff(kn)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(Wt){return this instanceof lt?Wt.headerCell.template:this instanceof Z?Wt.footerCell.template:Wt.cell.template}static#e=this.\u0275fac=function(kn){return new(kn||st)(e.Y36(e.Rgc),e.Y36(e.ZZ4))};static#t=this.\u0275dir=e.lG2({type:st,features:[e.TTD]})}return st})();class et extends We{}const Et=q(et);let lt=(()=>{class st extends Et{constructor(Wt,kn,Fi){super(Wt,kn),this._table=Fi}ngOnChanges(Wt){super.ngOnChanges(Wt)}static#e=this.\u0275fac=function(kn){return new(kn||st)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(j,8))};static#t=this.\u0275dir=e.lG2({type:st,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[e.lbL.None,"cdkHeaderRowDef","columns"],sticky:[e.lbL.None,"cdkHeaderRowDefSticky","sticky"]},standalone:!0,features:[e.qOj,e.TTD]})}return st})();class Vt extends We{}const r=q(Vt);let Z=(()=>{class st extends r{constructor(Wt,kn,Fi){super(Wt,kn),this._table=Fi}ngOnChanges(Wt){super.ngOnChanges(Wt)}static#e=this.\u0275fac=function(kn){return new(kn||st)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(j,8))};static#t=this.\u0275dir=e.lG2({type:st,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[e.lbL.None,"cdkFooterRowDef","columns"],sticky:[e.lbL.None,"cdkFooterRowDefSticky","sticky"]},standalone:!0,features:[e.qOj,e.TTD]})}return st})(),Pt=(()=>{class st extends We{constructor(Wt,kn,Fi){super(Wt,kn),this._table=Fi}static#e=this.\u0275fac=function(kn){return new(kn||st)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(j,8))};static#t=this.\u0275dir=e.lG2({type:st,selectors:[["","cdkRowDef",""]],inputs:{columns:[e.lbL.None,"cdkRowDefColumns","columns"],when:[e.lbL.None,"cdkRowDefWhen","when"]},standalone:!0,features:[e.qOj]})}return st})(),Oe=(()=>{class st{static#e=this.mostRecentCellOutlet=null;constructor(Wt){this._viewContainer=Wt,st.mostRecentCellOutlet=this}ngOnDestroy(){st.mostRecentCellOutlet===this&&(st.mostRecentCellOutlet=null)}static#t=this.\u0275fac=function(kn){return new(kn||st)(e.Y36(e.s_b))};static#n=this.\u0275dir=e.lG2({type:st,selectors:[["","cdkCellOutlet",""]],standalone:!0})}return st})(),ye=(()=>{class st{static#e=this.\u0275fac=function(kn){return new(kn||st)};static#t=this.\u0275cmp=e.Xpm({type:st,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],standalone:!0,features:[e.jDz],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(kn,Fi){1&kn&&e.GkF(0,0)},dependencies:[Oe],encapsulation:2})}return st})(),ft=(()=>{class st{static#e=this.\u0275fac=function(kn){return new(kn||st)};static#t=this.\u0275cmp=e.Xpm({type:st,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],standalone:!0,features:[e.jDz],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(kn,Fi){1&kn&&e.GkF(0,0)},dependencies:[Oe],encapsulation:2})}return st})(),Dt=(()=>{class st{constructor(Wt){this.templateRef=Wt,this._contentClassName="cdk-no-data-row"}static#e=this.\u0275fac=function(kn){return new(kn||st)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:st,selectors:[["ng-template","cdkNoDataRow",""]],standalone:!0})}return st})();const Rn=["top","bottom","left","right"];class ti{constructor(Dn,Wt,kn,Fi,ui=!0,Fo=!0,At){this._isNativeHtmlTable=Dn,this._stickCellCss=Wt,this.direction=kn,this._coalescedStyleScheduler=Fi,this._isBrowser=ui,this._needsPositionStickyOnElement=Fo,this._positionListener=At,this._cachedCellWidths=[],this._borderCellCss={top:`${Wt}-border-elem-top`,bottom:`${Wt}-border-elem-bottom`,left:`${Wt}-border-elem-left`,right:`${Wt}-border-elem-right`}}clearStickyPositioning(Dn,Wt){const kn=[];for(const Fi of Dn)if(Fi.nodeType===Fi.ELEMENT_NODE){kn.push(Fi);for(let ui=0;ui<Fi.children.length;ui++)kn.push(Fi.children[ui])}this._coalescedStyleScheduler.schedule(()=>{for(const Fi of kn)this._removeStickyStyle(Fi,Wt)})}updateStickyColumns(Dn,Wt,kn,Fi=!0){Dn.length&&this._isBrowser&&(Wt.some(ui=>ui)||kn.some(ui=>ui))?this._coalescedStyleScheduler.schedule(()=>{const ui=Dn[0],Fo=ui.children.length,At=this._getCellWidths(ui,Fi),Jn=this._getStickyStartColumnPositions(At,Wt),Bn=this._getStickyEndColumnPositions(At,kn),Bi=Wt.lastIndexOf(!0),$n=kn.indexOf(!0),Ui="rtl"===this.direction,Xo=Ui?"right":"left",bt=Ui?"left":"right";for(const an of Dn)for(let Wn=0;Wn<Fo;Wn++){const eo=an.children[Wn];Wt[Wn]&&this._addStickyStyle(eo,Xo,Jn[Wn],Wn===Bi),kn[Wn]&&this._addStickyStyle(eo,bt,Bn[Wn],Wn===$n)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Bi?[]:At.slice(0,Bi+1).map((an,Wn)=>Wt[Wn]?an:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===$n?[]:At.slice($n).map((an,Wn)=>kn[Wn+$n]?an:null).reverse()}))}):this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}))}stickRows(Dn,Wt,kn){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{const Fi="bottom"===kn?Dn.slice().reverse():Dn,ui="bottom"===kn?Wt.slice().reverse():Wt,Fo=[],At=[],Jn=[];for(let Bi=0,$n=0;Bi<Fi.length;Bi++){if(!ui[Bi])continue;Fo[Bi]=$n;const Ui=Fi[Bi];Jn[Bi]=this._isNativeHtmlTable?Array.from(Ui.children):[Ui];const Xo=Ui.getBoundingClientRect().height;$n+=Xo,At[Bi]=Xo}const Bn=ui.lastIndexOf(!0);for(let Bi=0;Bi<Fi.length;Bi++){if(!ui[Bi])continue;const $n=Fo[Bi],Ui=Bi===Bn;for(const Xo of Jn[Bi])this._addStickyStyle(Xo,kn,$n,Ui)}"top"===kn?this._positionListener?.stickyHeaderRowsUpdated({sizes:At,offsets:Fo,elements:Jn}):this._positionListener?.stickyFooterRowsUpdated({sizes:At,offsets:Fo,elements:Jn})})}updateStickyFooterContainer(Dn,Wt){this._isNativeHtmlTable&&this._coalescedStyleScheduler.schedule(()=>{const kn=Dn.querySelector("tfoot");Wt.some(Fi=>!Fi)?this._removeStickyStyle(kn,["bottom"]):this._addStickyStyle(kn,"bottom",0,!1)})}_removeStickyStyle(Dn,Wt){for(const Fi of Wt)Dn.style[Fi]="",Dn.classList.remove(this._borderCellCss[Fi]);Rn.some(Fi=>-1===Wt.indexOf(Fi)&&Dn.style[Fi])?Dn.style.zIndex=this._getCalculatedZIndex(Dn):(Dn.style.zIndex="",this._needsPositionStickyOnElement&&(Dn.style.position=""),Dn.classList.remove(this._stickCellCss))}_addStickyStyle(Dn,Wt,kn,Fi){Dn.classList.add(this._stickCellCss),Fi&&Dn.classList.add(this._borderCellCss[Wt]),Dn.style[Wt]=`${kn}px`,Dn.style.zIndex=this._getCalculatedZIndex(Dn),this._needsPositionStickyOnElement&&(Dn.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Dn){const Wt={top:100,bottom:10,left:1,right:1};let kn=0;for(const Fi of Rn)Dn.style[Fi]&&(kn+=Wt[Fi]);return kn?`${kn}`:""}_getCellWidths(Dn,Wt=!0){if(!Wt&&this._cachedCellWidths.length)return this._cachedCellWidths;const kn=[],Fi=Dn.children;for(let ui=0;ui<Fi.length;ui++)kn.push(Fi[ui].getBoundingClientRect().width);return this._cachedCellWidths=kn,kn}_getStickyStartColumnPositions(Dn,Wt){const kn=[];let Fi=0;for(let ui=0;ui<Dn.length;ui++)Wt[ui]&&(kn[ui]=Fi,Fi+=Dn[ui]);return kn}_getStickyEndColumnPositions(Dn,Wt){const kn=[];let Fi=0;for(let ui=Dn.length;ui>0;ui--)Wt[ui]&&(kn[ui]=Fi,Fi+=Dn[ui]);return kn}}const ni=new e.OlP("CDK_SPL");let bn=(()=>{class st{constructor(Wt,kn){this.viewContainer=Wt,this.elementRef=kn;const Fi=(0,e.f3M)(j);Fi._rowOutlet=this,Fi._outletAssigned()}static#e=this.\u0275fac=function(kn){return new(kn||st)(e.Y36(e.s_b),e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:st,selectors:[["","rowOutlet",""]],standalone:!0})}return st})(),vt=(()=>{class st{constructor(Wt,kn){this.viewContainer=Wt,this.elementRef=kn;const Fi=(0,e.f3M)(j);Fi._headerRowOutlet=this,Fi._outletAssigned()}static#e=this.\u0275fac=function(kn){return new(kn||st)(e.Y36(e.s_b),e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:st,selectors:[["","headerRowOutlet",""]],standalone:!0})}return st})(),nn=(()=>{class st{constructor(Wt,kn){this.viewContainer=Wt,this.elementRef=kn;const Fi=(0,e.f3M)(j);Fi._footerRowOutlet=this,Fi._outletAssigned()}static#e=this.\u0275fac=function(kn){return new(kn||st)(e.Y36(e.s_b),e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:st,selectors:[["","footerRowOutlet",""]],standalone:!0})}return st})(),rn=(()=>{class st{constructor(Wt,kn){this.viewContainer=Wt,this.elementRef=kn;const Fi=(0,e.f3M)(j);Fi._noDataRowOutlet=this,Fi._outletAssigned()}static#e=this.\u0275fac=function(kn){return new(kn||st)(e.Y36(e.s_b),e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:st,selectors:[["","noDataRowOutlet",""]],standalone:!0})}return st})(),no=(()=>{class st{_getCellRole(){if(void 0===this._cellRoleInternal){const Wt=this._elementRef.nativeElement.getAttribute("role"),kn="grid"===Wt||"treegrid"===Wt?"gridcell":"cell";this._cellRoleInternal=this._isNativeHtmlTable&&"cell"===kn?null:kn}return this._cellRoleInternal}get trackBy(){return this._trackByFn}set trackBy(Wt){this._trackByFn=Wt}get dataSource(){return this._dataSource}set dataSource(Wt){this._dataSource!==Wt&&this._switchDataSource(Wt)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(Wt){this._multiTemplateDataRows=Wt,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(Wt){this._fixedLayout=Wt,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(Wt,kn,Fi,ui,Fo,At,Jn,Bn,Bi,$n,Ui,Xo){this._differs=Wt,this._changeDetectorRef=kn,this._elementRef=Fi,this._dir=Fo,this._platform=Jn,this._viewRepeater=Bn,this._coalescedStyleScheduler=Bi,this._viewportRuler=$n,this._stickyPositioningListener=Ui,this._ngZone=Xo,this._onDestroy=new p.xQ,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._hasRendered=!1,this._cellRoleInternal=void 0,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new e.vpe,this.viewChange=new o.X({start:0,end:Number.MAX_VALUE}),ui||Fi.nativeElement.setAttribute("role","table"),this._document=At,this._isServer=!Jn.isBrowser,this._isNativeHtmlTable="TABLE"===Fi.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((Wt,kn)=>this.trackBy?this.trackBy(kn.dataIndex,kn.data):kn),this._viewportRuler.change().pipe((0,m.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._hasRendered&&this._render()}ngOnDestroy(){[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(Wt=>{Wt?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,s.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const Wt=this._dataDiffer.diff(this._renderRows);if(!Wt)return this._updateNoDataRow(),void this.contentChanged.next();const kn=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(Wt,kn,(Fi,ui,Fo)=>this._getEmbeddedViewArgs(Fi.item,Fo),Fi=>Fi.item.data,Fi=>{Fi.operation===s.dS.INSERTED&&Fi.context&&this._renderCellTemplateForItem(Fi.record.item.rowDef,Fi.context)}),this._updateRowIndexContext(),Wt.forEachIdentityChange(Fi=>{kn.get(Fi.currentIndex).context.$implicit=Fi.item.data}),this._updateNoDataRow(),this._ngZone&&e.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,b.q)(1),(0,m.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(Wt){this._customColumnDefs.add(Wt)}removeColumnDef(Wt){this._customColumnDefs.delete(Wt)}addRowDef(Wt){this._customRowDefs.add(Wt)}removeRowDef(Wt){this._customRowDefs.delete(Wt)}addHeaderRowDef(Wt){this._customHeaderRowDefs.add(Wt),this._headerRowDefChanged=!0}removeHeaderRowDef(Wt){this._customHeaderRowDefs.delete(Wt),this._headerRowDefChanged=!0}addFooterRowDef(Wt){this._customFooterRowDefs.add(Wt),this._footerRowDefChanged=!0}removeFooterRowDef(Wt){this._customFooterRowDefs.delete(Wt),this._footerRowDefChanged=!0}setNoDataRow(Wt){this._customNoDataRow=Wt}updateStickyHeaderRowStyles(){const Wt=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){const Fi=ji(this._headerRowOutlet,"thead");Fi&&(Fi.style.display=Wt.length?"":"none")}const kn=this._headerRowDefs.map(Fi=>Fi.sticky);this._stickyStyler.clearStickyPositioning(Wt,["top"]),this._stickyStyler.stickRows(Wt,kn,"top"),this._headerRowDefs.forEach(Fi=>Fi.resetStickyChanged())}updateStickyFooterRowStyles(){const Wt=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){const Fi=ji(this._footerRowOutlet,"tfoot");Fi&&(Fi.style.display=Wt.length?"":"none")}const kn=this._footerRowDefs.map(Fi=>Fi.sticky);this._stickyStyler.clearStickyPositioning(Wt,["bottom"]),this._stickyStyler.stickRows(Wt,kn,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,kn),this._footerRowDefs.forEach(Fi=>Fi.resetStickyChanged())}updateStickyColumnStyles(){const Wt=this._getRenderedRows(this._headerRowOutlet),kn=this._getRenderedRows(this._rowOutlet),Fi=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...Wt,...kn,...Fi],["left","right"]),this._stickyColumnStylesNeedReset=!1),Wt.forEach((ui,Fo)=>{this._addStickyColumnStyles([ui],this._headerRowDefs[Fo])}),this._rowDefs.forEach(ui=>{const Fo=[];for(let At=0;At<kn.length;At++)this._renderRows[At].rowDef===ui&&Fo.push(kn[At]);this._addStickyColumnStyles(Fo,ui)}),Fi.forEach((ui,Fo)=>{this._addStickyColumnStyles([ui],this._footerRowDefs[Fo])}),Array.from(this._columnDefsByName.values()).forEach(ui=>ui.resetStickyChanged())}_outletAssigned(){!this._hasRendered&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasRendered=!0,this._render())}_render(){this._cacheRowDefs(),this._cacheColumnDefs();const kn=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||kn,this._forceRecalculateCellWidths=kn,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){const Wt=[],kn=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let Fi=0;Fi<this._data.length;Fi++){let ui=this._data[Fi];const Fo=this._getRenderRowsForData(ui,Fi,kn.get(ui));this._cachedRenderRowsMap.has(ui)||this._cachedRenderRowsMap.set(ui,new WeakMap);for(let At=0;At<Fo.length;At++){let Jn=Fo[At];const Bn=this._cachedRenderRowsMap.get(Jn.data);Bn.has(Jn.rowDef)?Bn.get(Jn.rowDef).push(Jn):Bn.set(Jn.rowDef,[Jn]),Wt.push(Jn)}}return Wt}_getRenderRowsForData(Wt,kn,Fi){return this._getRowDefs(Wt,kn).map(Fo=>{const At=Fi&&Fi.has(Fo)?Fi.get(Fo):[];if(At.length){const Jn=At.shift();return Jn.dataIndex=kn,Jn}return{data:Wt,rowDef:Fo,dataIndex:kn}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Li(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(kn=>{this._columnDefsByName.has(kn.name),this._columnDefsByName.set(kn.name,kn)})}_cacheRowDefs(){this._headerRowDefs=Li(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Li(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Li(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const Wt=this._rowDefs.filter(kn=>!kn.when);this._defaultRowDef=Wt[0]}_renderUpdatedColumns(){const Wt=(Fo,At)=>Fo||!!At.getColumnsDiff(),kn=this._rowDefs.reduce(Wt,!1);kn&&this._forceRenderDataRows();const Fi=this._headerRowDefs.reduce(Wt,!1);Fi&&this._forceRenderHeaderRows();const ui=this._footerRowDefs.reduce(Wt,!1);return ui&&this._forceRenderFooterRows(),kn||Fi||ui}_switchDataSource(Wt){this._data=[],(0,s.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),Wt||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=Wt}_observeRenderChanges(){if(!this.dataSource)return;let Wt;(0,s.Z9)(this.dataSource)?Wt=this.dataSource.connect(this):(0,x.b)(this.dataSource)?Wt=this.dataSource:Array.isArray(this.dataSource)&&(Wt=(0,u.of)(this.dataSource)),this._renderChangeSubscription=Wt.pipe((0,m.R)(this._onDestroy)).subscribe(kn=>{this._data=kn||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((Wt,kn)=>this._renderRow(this._headerRowOutlet,Wt,kn)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((Wt,kn)=>this._renderRow(this._footerRowOutlet,Wt,kn)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(Wt,kn){const Fi=Array.from(kn.columns||[]).map(At=>this._columnDefsByName.get(At)),ui=Fi.map(At=>At.sticky),Fo=Fi.map(At=>At.stickyEnd);this._stickyStyler.updateStickyColumns(Wt,ui,Fo,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(Wt){const kn=[];for(let Fi=0;Fi<Wt.viewContainer.length;Fi++){const ui=Wt.viewContainer.get(Fi);kn.push(ui.rootNodes[0])}return kn}_getRowDefs(Wt,kn){if(1==this._rowDefs.length)return[this._rowDefs[0]];let Fi=[];if(this.multiTemplateDataRows)Fi=this._rowDefs.filter(ui=>!ui.when||ui.when(kn,Wt));else{let ui=this._rowDefs.find(Fo=>Fo.when&&Fo.when(kn,Wt))||this._defaultRowDef;ui&&Fi.push(ui)}return Fi}_getEmbeddedViewArgs(Wt,kn){return{templateRef:Wt.rowDef.template,context:{$implicit:Wt.data},index:kn}}_renderRow(Wt,kn,Fi,ui={}){const Fo=Wt.viewContainer.createEmbeddedView(kn.template,ui,Fi);return this._renderCellTemplateForItem(kn,ui),Fo}_renderCellTemplateForItem(Wt,kn){for(let Fi of this._getCellTemplates(Wt))Oe.mostRecentCellOutlet&&Oe.mostRecentCellOutlet._viewContainer.createEmbeddedView(Fi,kn);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const Wt=this._rowOutlet.viewContainer;for(let kn=0,Fi=Wt.length;kn<Fi;kn++){const Fo=Wt.get(kn).context;Fo.count=Fi,Fo.first=0===kn,Fo.last=kn===Fi-1,Fo.even=kn%2==0,Fo.odd=!Fo.even,this.multiTemplateDataRows?(Fo.dataIndex=this._renderRows[kn].dataIndex,Fo.renderIndex=kn):Fo.index=this._renderRows[kn].dataIndex}}_getCellTemplates(Wt){return Wt&&Wt.columns?Array.from(Wt.columns,kn=>{const Fi=this._columnDefsByName.get(kn);return Wt.extractCellTemplate(Fi)}):[]}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const Wt=(kn,Fi)=>kn||Fi.hasStickyChanged();this._headerRowDefs.reduce(Wt,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(Wt,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(Wt,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new ti(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,u.of)()).pipe((0,m.R)(this._onDestroy)).subscribe(kn=>{this._stickyStyler.direction=kn,this.updateStickyColumnStyles()})}_getOwnDefs(Wt){return Wt.filter(kn=>!kn._table||kn._table===this)}_updateNoDataRow(){const Wt=this._customNoDataRow||this._noDataRow;if(!Wt)return;const kn=0===this._rowOutlet.viewContainer.length;if(kn===this._isShowingNoDataRow)return;const Fi=this._noDataRowOutlet.viewContainer;if(kn){const ui=Fi.createEmbeddedView(Wt.templateRef),Fo=ui.rootNodes[0];1===ui.rootNodes.length&&Fo?.nodeType===this._document.ELEMENT_NODE&&(Fo.setAttribute("role","row"),Fo.classList.add(Wt._contentClassName))}else Fi.clear();this._isShowingNoDataRow=kn,this._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(kn){return new(kn||st)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(e.SBq),e.$8M("role"),e.Y36(n.Is,8),e.Y36(t.K0),e.Y36(l.t4),e.Y36(s.k),e.Y36(me),e.Y36(i.rL),e.Y36(ni,12),e.Y36(e.R0b,8))};static#t=this.\u0275cmp=e.Xpm({type:st,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(kn,Fi,ui){if(1&kn&&(e.Suo(ui,Dt,5),e.Suo(ui,ge,5),e.Suo(ui,Pt,5),e.Suo(ui,lt,5),e.Suo(ui,Z,5)),2&kn){let Fo;e.iGM(Fo=e.CRH())&&(Fi._noDataRow=Fo.first),e.iGM(Fo=e.CRH())&&(Fi._contentColumnDefs=Fo),e.iGM(Fo=e.CRH())&&(Fi._contentRowDefs=Fo),e.iGM(Fo=e.CRH())&&(Fi._contentHeaderRowDefs=Fo),e.iGM(Fo=e.CRH())&&(Fi._contentFooterRowDefs=Fo)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(kn,Fi){2&kn&&e.ekj("cdk-table-fixed-layout",Fi.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[e.lbL.HasDecoratorInputTransform,"multiTemplateDataRows","multiTemplateDataRows",e.VuI],fixedLayout:[e.lbL.HasDecoratorInputTransform,"fixedLayout","fixedLayout",e.VuI]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[e._Bn([{provide:j,useExisting:st},{provide:s.k,useClass:s.yy},{provide:me,useClass:Se},{provide:ni,useValue:null}]),e.Xq5,e.jDz],ngContentSelectors:B,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(kn,Fi){1&kn&&(e.F$t(G),e.Hsn(0),e.Hsn(1,1),e.YNc(2,H,1,0)(3,O,7,0)(4,P,4,0)),2&kn&&(e.xp6(2),e.um2(2,Fi._isServer?2:-1),e.xp6(),e.um2(3,Fi._isNativeHtmlTable?3:4))},dependencies:[vt,bn,rn,nn],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}return st})();function Li(st,Dn){return st.concat(Array.from(Dn))}function ji(st,Dn){const Wt=Dn.toUpperCase();let kn=st.viewContainer.element.nativeElement;for(;kn;){const Fi=1===kn.nodeType?kn.nodeName:null;if(Fi===Wt)return kn;if("TABLE"===Fi)break;kn=kn.parentNode}return null}let En=(()=>{class st{static#e=this.\u0275fac=function(kn){return new(kn||st)};static#t=this.\u0275mod=e.oAB({type:st});static#n=this.\u0275inj=e.cJS({imports:[i.Cl]})}return st})();var co=a(23680),yn=a(47354),ln=a(23291),He=a(96124);function rt(st,Dn){1&st&&e.Hsn(0,2)}function $e(st,Dn){1&st&&(e.TgZ(0,"thead",0),e.GkF(1,1),e.qZA(),e.TgZ(2,"tbody",2),e.GkF(3,3)(4,4),e.qZA(),e.TgZ(5,"tfoot",0),e.GkF(6,5),e.qZA())}function Ve(st,Dn){1&st&&e.GkF(0,1)(1,3)(2,4)(3,5)}const Ce=[[["caption"]],[["colgroup"],["col"]],"*"],tt=["caption","colgroup, col","*"];let Yt=(()=>{class st extends no{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}static#e=this.\u0275fac=(()=>{let Wt;return function(Fi){return(Wt||(Wt=e.n5z(st)))(Fi||st)}})();static#t=this.\u0275cmp=e.Xpm({type:st,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(kn,Fi){2&kn&&e.ekj("mdc-table-fixed-layout",Fi.fixedLayout)},exportAs:["matTable"],standalone:!0,features:[e._Bn([{provide:no,useExisting:st},{provide:j,useExisting:st},{provide:me,useClass:Se},{provide:s.k,useClass:s.yy},{provide:ni,useValue:null}]),e.qOj,e.jDz],ngContentSelectors:tt,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(kn,Fi){1&kn&&(e.F$t(Ce),e.Hsn(0),e.Hsn(1,1),e.YNc(2,rt,1,0)(3,$e,7,0)(4,Ve,4,0)),2&kn&&(e.xp6(2),e.um2(2,Fi._isServer?2:-1),e.xp6(),e.um2(3,Fi._isNativeHtmlTable?3:4))},dependencies:[vt,bn,rn,nn],styles:[".mat-mdc-table-sticky{position:sticky !important}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2})}return st})(),Fn=(()=>{class st extends K{static#e=this.\u0275fac=(()=>{let Wt;return function(Fi){return(Wt||(Wt=e.n5z(st)))(Fi||st)}})();static#t=this.\u0275dir=e.lG2({type:st,selectors:[["","matCellDef",""]],standalone:!0,features:[e._Bn([{provide:K,useExisting:st}]),e.qOj]})}return st})(),yt=(()=>{class st extends ne{static#e=this.\u0275fac=(()=>{let Wt;return function(Fi){return(Wt||(Wt=e.n5z(st)))(Fi||st)}})();static#t=this.\u0275dir=e.lG2({type:st,selectors:[["","matHeaderCellDef",""]],standalone:!0,features:[e._Bn([{provide:ne,useExisting:st}]),e.qOj]})}return st})(),li=(()=>{class st extends ge{get name(){return this._name}set name(Wt){this._setNameInput(Wt)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static#e=this.\u0275fac=(()=>{let Wt;return function(Fi){return(Wt||(Wt=e.n5z(st)))(Fi||st)}})();static#t=this.\u0275dir=e.lG2({type:st,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:[e.lbL.None,"matColumnDef","name"]},standalone:!0,features:[e._Bn([{provide:ge,useExisting:st},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:st}]),e.qOj]})}return st})(),si=(()=>{class st extends at{static#e=this.\u0275fac=(()=>{let Wt;return function(Fi){return(Wt||(Wt=e.n5z(st)))(Fi||st)}})();static#t=this.\u0275dir=e.lG2({type:st,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],standalone:!0,features:[e.qOj]})}return st})(),_o=(()=>{class st extends R{static#e=this.\u0275fac=(()=>{let Wt;return function(Fi){return(Wt||(Wt=e.n5z(st)))(Fi||st)}})();static#t=this.\u0275dir=e.lG2({type:st,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],standalone:!0,features:[e.qOj]})}return st})(),mo=(()=>{class st extends lt{static#e=this.\u0275fac=(()=>{let Wt;return function(Fi){return(Wt||(Wt=e.n5z(st)))(Fi||st)}})();static#t=this.\u0275dir=e.lG2({type:st,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[e.lbL.None,"matHeaderRowDef","columns"],sticky:[e.lbL.None,"matHeaderRowDefSticky","sticky"]},standalone:!0,features:[e._Bn([{provide:lt,useExisting:st}]),e.qOj]})}return st})(),Ji=(()=>{class st extends Pt{static#e=this.\u0275fac=(()=>{let Wt;return function(Fi){return(Wt||(Wt=e.n5z(st)))(Fi||st)}})();static#t=this.\u0275dir=e.lG2({type:st,selectors:[["","matRowDef",""]],inputs:{columns:[e.lbL.None,"matRowDefColumns","columns"],when:[e.lbL.None,"matRowDefWhen","when"]},standalone:!0,features:[e._Bn([{provide:Pt,useExisting:st}]),e.qOj]})}return st})(),wn=(()=>{class st extends ye{static#e=this.\u0275fac=(()=>{let Wt;return function(Fi){return(Wt||(Wt=e.n5z(st)))(Fi||st)}})();static#t=this.\u0275cmp=e.Xpm({type:st,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],standalone:!0,features:[e._Bn([{provide:ye,useExisting:st}]),e.qOj,e.jDz],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(kn,Fi){1&kn&&e.GkF(0,0)},dependencies:[Oe],encapsulation:2})}return st})(),Kn=(()=>{class st extends ft{static#e=this.\u0275fac=(()=>{let Wt;return function(Fi){return(Wt||(Wt=e.n5z(st)))(Fi||st)}})();static#t=this.\u0275cmp=e.Xpm({type:st,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],standalone:!0,features:[e._Bn([{provide:ft,useExisting:st}]),e.qOj,e.jDz],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(kn,Fi){1&kn&&e.GkF(0,0)},dependencies:[Oe],encapsulation:2})}return st})(),Oi=(()=>{class st{static#e=this.\u0275fac=function(kn){return new(kn||st)};static#t=this.\u0275mod=e.oAB({type:st});static#n=this.\u0275inj=e.cJS({imports:[co.BQ,En,co.BQ]})}return st})();class _n extends s.o2{get data(){return this._data.value}set data(Dn){Dn=Array.isArray(Dn)?Dn:[],this._data.next(Dn),this._renderChangesSubscription||this._filterData(Dn)}get filter(){return this._filter.value}set filter(Dn){this._filter.next(Dn),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Dn){this._sort=Dn,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Dn){this._paginator=Dn,this._updateChangeSubscription()}constructor(Dn=[]){super(),this._renderData=new o.X([]),this._filter=new o.X(""),this._internalPageChanges=new p.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(Wt,kn)=>{const Fi=Wt[kn];if((0,I.t6)(Fi)){const ui=Number(Fi);return ui<9007199254740991?ui:Fi}return Fi},this.sortData=(Wt,kn)=>{const Fi=kn.active,ui=kn.direction;return Fi&&""!=ui?Wt.sort((Fo,At)=>{let Jn=this.sortingDataAccessor(Fo,Fi),Bn=this.sortingDataAccessor(At,Fi);const Bi=typeof Jn,$n=typeof Bn;Bi!==$n&&("number"===Bi&&(Jn+=""),"number"===$n&&(Bn+=""));let Ui=0;return null!=Jn&&null!=Bn?Jn>Bn?Ui=1:Jn<Bn&&(Ui=-1):null!=Jn?Ui=1:null!=Bn&&(Ui=-1),Ui*("asc"==ui?1:-1)}):Wt},this.filterPredicate=(Wt,kn)=>{const Fi=Object.keys(Wt).reduce((Fo,At)=>Fo+Wt[At]+"\u25ec","").toLowerCase(),ui=kn.trim().toLowerCase();return-1!=Fi.indexOf(ui)},this._data=new o.X(Dn),this._updateChangeSubscription()}_updateChangeSubscription(){const Dn=this._sort?(0,yn.T)(this._sort.sortChange,this._sort.initialized):(0,u.of)(null),Wt=this._paginator?(0,yn.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,u.of)(null),Fi=(0,ln.aj)([this._data,this._filter]).pipe((0,He.U)(([At])=>this._filterData(At))),ui=(0,ln.aj)([Fi,Dn]).pipe((0,He.U)(([At])=>this._orderData(At))),Fo=(0,ln.aj)([ui,Wt]).pipe((0,He.U)(([At])=>this._pageData(At)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=Fo.subscribe(At=>this._renderData.next(At))}_filterData(Dn){return this.filteredData=null==this.filter||""===this.filter?Dn:Dn.filter(Wt=>this.filterPredicate(Wt,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Dn){return this.sort?this.sortData(Dn.slice(),this.sort):Dn}_pageData(Dn){if(!this.paginator)return Dn;const Wt=this.paginator.pageIndex*this.paginator.pageSize;return Dn.slice(Wt,Wt+this.paginator.pageSize)}_updatePaginator(Dn){Promise.resolve().then(()=>{const Wt=this.paginator;if(Wt&&(Wt.length=Dn,Wt.pageIndex>0)){const kn=Math.ceil(Wt.length/Wt.pageSize)-1||0,Fi=Math.min(Wt.pageIndex,kn);Fi!==Wt.pageIndex&&(Wt.pageIndex=Fi,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}},81274:(gt,X,a)=>{"use strict";a.d(X,{g0:()=>c});var e=a(19212),n=a(23680);let c=(()=>{class o{static#e=this.\u0275fac=function(m){return new(m||o)};static#t=this.\u0275mod=e.oAB({type:o});static#n=this.\u0275inj=e.cJS({imports:[n.BQ,n.BQ]})}return o})()},92596:(gt,X,a)=>{"use strict";a.d(X,{AV:()=>Te,gM:()=>at});var e=a(19352),n=a(51418),s=a(42495),l=a(36028),i=a(19212),t=a(96814),p=a(62831),c=a(4300),o=a(49388),x=a(69594),u=a(39505),m=a(68484),b=a(72079),H=(a(86825),a(23680));const O=["tooltip"],B=new i.OlP("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const me=(0,i.f3M)(x.aV);return()=>me.scrollStrategies.reposition({scrollThrottle:20})}}),J={provide:B,deps:[x.aV],useFactory:function ae(me){return()=>me.scrollStrategies.reposition({scrollThrottle:20})}},j=new i.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function q(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),K="tooltip-panel",ne=(0,p.i$)({passive:!0});let at=(()=>{class me{get position(){return this._position}set position(Ue){Ue!==this._position&&(this._position=Ue,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(Ue){this._positionAtOrigin=(0,s.Ig)(Ue),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(Ue){this._disabled=(0,s.Ig)(Ue),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(Ue){this._showDelay=(0,s.su)(Ue)}get hideDelay(){return this._hideDelay}set hideDelay(Ue){this._hideDelay=(0,s.su)(Ue),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(Ue){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=Ue?String(Ue).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(Ue){this._tooltipClass=Ue,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(Ue,We,et,Et,lt,Vt,r,Z,Pt,Oe,ye,ve){this._overlay=Ue,this._elementRef=We,this._scrollDispatcher=et,this._viewContainerRef=Et,this._ngZone=lt,this._platform=Vt,this._ariaDescriber=r,this._focusMonitor=Z,this._dir=Oe,this._defaultOptions=ye,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=Le,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new b.xQ,this._scrollStrategy=Pt,this._document=ve,ye&&(this._showDelay=ye.showDelay,this._hideDelay=ye.hideDelay,ye.position&&(this.position=ye.position),ye.positionAtOrigin&&(this.positionAtOrigin=ye.positionAtOrigin),ye.touchGestures&&(this.touchGestures=ye.touchGestures)),Oe.change.pipe((0,e.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,e.R)(this._destroyed)).subscribe(Ue=>{Ue?"keyboard"===Ue&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const Ue=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([We,et])=>{Ue.removeEventListener(We,et,ne)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(Ue,this.message,"tooltip"),this._focusMonitor.stopMonitoring(Ue)}show(Ue=this.showDelay,We){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const et=this._createOverlay(We);this._detach(),this._portal=this._portal||new m.C5(this._tooltipComponent,this._viewContainerRef);const Et=this._tooltipInstance=et.attach(this._portal).instance;Et._triggerElement=this._elementRef.nativeElement,Et._mouseLeaveHideDelay=this._hideDelay,Et.afterHidden().pipe((0,e.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),Et.show(Ue)}hide(Ue=this.hideDelay){const We=this._tooltipInstance;We&&(We.isVisible()?We.hide(Ue):(We._cancelPendingAnimations(),this._detach()))}toggle(Ue){this._isTooltipVisible()?this.hide():this.show(void 0,Ue)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(Ue){if(this._overlayRef){const Et=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!Ue)&&Et._origin instanceof i.SBq)return this._overlayRef;this._detach()}const We=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),et=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&Ue||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(We);return et.positionChanges.pipe((0,e.R)(this._destroyed)).subscribe(Et=>{this._updateCurrentPositionClass(Et.connectionPair),this._tooltipInstance&&Et.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:et,panelClass:`${this._cssClassPrefix}-${K}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,e.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,e.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,e.R)(this._destroyed)).subscribe(Et=>{this._isTooltipVisible()&&Et.keyCode===l.hY&&!(0,l.Vb)(Et)&&(Et.preventDefault(),Et.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(Ue){const We=Ue.getConfig().positionStrategy,et=this._getOrigin(),Et=this._getOverlayPosition();We.withPositions([this._addOffset({...et.main,...Et.main}),this._addOffset({...et.fallback,...Et.fallback})])}_addOffset(Ue){const et=!this._dir||"ltr"==this._dir.value;return"top"===Ue.originY?Ue.offsetY=-8:"bottom"===Ue.originY?Ue.offsetY=8:"start"===Ue.originX?Ue.offsetX=et?-8:8:"end"===Ue.originX&&(Ue.offsetX=et?8:-8),Ue}_getOrigin(){const Ue=!this._dir||"ltr"==this._dir.value,We=this.position;let et;"above"==We||"below"==We?et={originX:"center",originY:"above"==We?"top":"bottom"}:"before"==We||"left"==We&&Ue||"right"==We&&!Ue?et={originX:"start",originY:"center"}:("after"==We||"right"==We&&Ue||"left"==We&&!Ue)&&(et={originX:"end",originY:"center"});const{x:Et,y:lt}=this._invertPosition(et.originX,et.originY);return{main:et,fallback:{originX:Et,originY:lt}}}_getOverlayPosition(){const Ue=!this._dir||"ltr"==this._dir.value,We=this.position;let et;"above"==We?et={overlayX:"center",overlayY:"bottom"}:"below"==We?et={overlayX:"center",overlayY:"top"}:"before"==We||"left"==We&&Ue||"right"==We&&!Ue?et={overlayX:"end",overlayY:"center"}:("after"==We||"right"==We&&Ue||"left"==We&&!Ue)&&(et={overlayX:"start",overlayY:"center"});const{x:Et,y:lt}=this._invertPosition(et.overlayX,et.overlayY);return{main:et,fallback:{overlayX:Et,overlayY:lt}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,n.q)(1),(0,e.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(Ue){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=Ue,this._tooltipInstance._markForCheck())}_invertPosition(Ue,We){return"above"===this.position||"below"===this.position?"top"===We?We="bottom":"bottom"===We&&(We="top"):"end"===Ue?Ue="start":"start"===Ue&&(Ue="end"),{x:Ue,y:We}}_updateCurrentPositionClass(Ue){const{overlayY:We,originX:et,originY:Et}=Ue;let lt;if(lt="center"===We?this._dir&&"rtl"===this._dir.value?"end"===et?"left":"right":"start"===et?"left":"right":"bottom"===We&&"top"===Et?"above":"below",lt!==this._currentPosition){const Vt=this._overlayRef;if(Vt){const r=`${this._cssClassPrefix}-${K}-`;Vt.removePanelClass(r+this._currentPosition),Vt.addPanelClass(r+lt)}this._currentPosition=lt}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",Ue=>{let We;this._setupPointerExitEventsIfNeeded(),void 0!==Ue.x&&void 0!==Ue.y&&(We=Ue),this.show(void 0,We)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",Ue=>{const We=Ue.targetTouches?.[0],et=We?{x:We.clientX,y:We.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,et),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const Ue=[];if(this._platformSupportsMouseEvents())Ue.push(["mouseleave",We=>{const et=We.relatedTarget;(!et||!this._overlayRef?.overlayElement.contains(et))&&this.hide()}],["wheel",We=>this._wheelListener(We)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const We=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};Ue.push(["touchend",We],["touchcancel",We])}this._addListeners(Ue),this._passiveListeners.push(...Ue)}_addListeners(Ue){Ue.forEach(([We,et])=>{this._elementRef.nativeElement.addEventListener(We,et,ne)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Ue){if(this._isTooltipVisible()){const We=this._document.elementFromPoint(Ue.clientX,Ue.clientY),et=this._elementRef.nativeElement;We!==et&&!et.contains(We)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Ue=this.touchGestures;if("off"!==Ue){const We=this._elementRef.nativeElement,et=We.style;("on"===Ue||"INPUT"!==We.nodeName&&"TEXTAREA"!==We.nodeName)&&(et.userSelect=et.msUserSelect=et.webkitUserSelect=et.MozUserSelect="none"),("on"===Ue||!We.draggable)&&(et.webkitUserDrag="none"),et.touchAction="none",et.webkitTapHighlightColor="transparent"}}static#e=this.\u0275fac=function(We){return new(We||me)(i.Y36(x.aV),i.Y36(i.SBq),i.Y36(u.mF),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(p.t4),i.Y36(c.$s),i.Y36(c.tE),i.Y36(B),i.Y36(o.Is),i.Y36(j,8),i.Y36(t.K0))};static#t=this.\u0275dir=i.lG2({type:me,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(We,et){2&We&&i.ekj("mat-mdc-tooltip-disabled",et.disabled)},inputs:{position:[i.lbL.None,"matTooltipPosition","position"],positionAtOrigin:[i.lbL.None,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[i.lbL.None,"matTooltipDisabled","disabled"],showDelay:[i.lbL.None,"matTooltipShowDelay","showDelay"],hideDelay:[i.lbL.None,"matTooltipHideDelay","hideDelay"],touchGestures:[i.lbL.None,"matTooltipTouchGestures","touchGestures"],message:[i.lbL.None,"matTooltip","message"],tooltipClass:[i.lbL.None,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0})}return me})(),Le=(()=>{class me{constructor(Ue,We,et){this._changeDetectorRef=Ue,this._elementRef=We,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new b.xQ,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled="NoopAnimations"===et}show(Ue){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},Ue)}hide(Ue){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},Ue)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:Ue}){(!Ue||!this._triggerElement.contains(Ue))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const Ue=this._elementRef.nativeElement.getBoundingClientRect();return Ue.height>24&&Ue.width>=200}_handleAnimationEnd({animationName:Ue}){(Ue===this._showAnimation||Ue===this._hideAnimation)&&this._finalizeAnimation(Ue===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(Ue){Ue?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(Ue){const We=this._tooltip.nativeElement,et=this._showAnimation,Et=this._hideAnimation;if(We.classList.remove(Ue?Et:et),We.classList.add(Ue?et:Et),this._isVisible=Ue,Ue&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const lt=getComputedStyle(We);("0s"===lt.getPropertyValue("animation-duration")||"none"===lt.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}Ue&&this._onShow(),this._animationsDisabled&&(We.classList.add("_mat-animation-noopable"),this._finalizeAnimation(Ue))}static#e=this.\u0275fac=function(We){return new(We||me)(i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(i.QbO,8))};static#t=this.\u0275cmp=i.Xpm({type:me,selectors:[["mat-tooltip-component"]],viewQuery:function(We,et){if(1&We&&i.Gf(O,7),2&We){let Et;i.iGM(Et=i.CRH())&&(et._tooltip=Et.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(We,et){1&We&&i.NdJ("mouseleave",function(lt){return et._handleMouseLeave(lt)}),2&We&&i.Udp("zoom",et.isVisible()?1:null)},standalone:!0,features:[i.jDz],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(We,et){1&We&&(i.TgZ(0,"div",0,1),i.NdJ("animationend",function(lt){return et._handleAnimationEnd(lt)}),i.TgZ(2,"div",2),i._uU(3),i.qZA()()),2&We&&(i.ekj("mdc-tooltip--multiline",et._isMultiline),i.Q6J("ngClass",et.tooltipClass),i.xp6(3),i.Oqu(et.message))},dependencies:[t.mk],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - 2*8px);margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - 2*8px);align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return me})(),Te=(()=>{class me{static#e=this.\u0275fac=function(We){return new(We||me)};static#t=this.\u0275mod=i.oAB({type:me});static#n=this.\u0275inj=i.cJS({providers:[J],imports:[c.rt,t.ez,x.U8,H.BQ,H.BQ,u.ZD]})}return me})()},98445:(gt,X,a)=>{"use strict";a.d(X,{Ar:()=>m,GZ:()=>x,WX:()=>B,ah:()=>u,dp:()=>O,eu:()=>I,fQ:()=>o,gi:()=>b,uo:()=>c});var e=a(41894),n=a(19212),s=a(23680),l=a(78337),i=a(45125),t=a(47354),p=a(96124);let c=(()=>{class ae extends e.Hs{constructor(q,j,Y){super(q,j),this.disabled=!1,this.tabIndex=Number(Y)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}static#e=this.\u0275fac=function(j){return new(j||ae)(n.Y36(n.SBq),n.Y36(e._0),n.$8M("tabindex"))};static#t=this.\u0275dir=n.lG2({type:ae,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{disabled:[n.lbL.HasDecoratorInputTransform,"disabled","disabled",n.VuI],tabIndex:[n.lbL.HasDecoratorInputTransform,"tabIndex","tabIndex",q=>null==q?0:(0,n.Cb_)(q)]},exportAs:["matTreeNode"],standalone:!0,features:[n._Bn([{provide:e.Hs,useExisting:ae}]),n.Xq5,n.qOj]})}return ae})(),o=(()=>{class ae extends e.rO{static#e=this.\u0275fac=(()=>{let q;return function(Y){return(q||(q=n.n5z(ae)))(Y||ae)}})();static#t=this.\u0275dir=n.lG2({type:ae,selectors:[["","matTreeNodeDef",""]],inputs:{when:[n.lbL.None,"matTreeNodeDefWhen","when"],data:[n.lbL.None,"matTreeNode","data"]},standalone:!0,features:[n._Bn([{provide:e.rO,useExisting:ae}]),n.qOj]})}return ae})(),x=(()=>{class ae extends e.Xx{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(q){this._tabIndex=q??0}constructor(q,j,Y,K){super(q,j,Y),this.disabled=!1,this.tabIndex=Number(K)||0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}static#e=this.\u0275fac=function(j){return new(j||ae)(n.Y36(n.SBq),n.Y36(e._0),n.Y36(n.ZZ4),n.$8M("tabindex"))};static#t=this.\u0275dir=n.lG2({type:ae,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{node:[n.lbL.None,"matNestedTreeNode","node"],disabled:[n.lbL.HasDecoratorInputTransform,"disabled","disabled",n.VuI],tabIndex:"tabIndex"},exportAs:["matNestedTreeNode"],standalone:!0,features:[n._Bn([{provide:e.Xx,useExisting:ae},{provide:e.Hs,useExisting:ae},{provide:e.HI,useExisting:ae}]),n.Xq5,n.qOj]})}return ae})(),u=(()=>{class ae extends e.XJ{get level(){return this._level}set level(q){this._setLevelInput(q)}get indent(){return this._indent}set indent(q){this._setIndentInput(q)}static#e=this.\u0275fac=(()=>{let q;return function(Y){return(q||(q=n.n5z(ae)))(Y||ae)}})();static#t=this.\u0275dir=n.lG2({type:ae,selectors:[["","matTreeNodePadding",""]],inputs:{level:[n.lbL.HasDecoratorInputTransform,"matTreeNodePadding","level",n.Cb_],indent:[n.lbL.None,"matTreeNodePaddingIndent","indent"]},standalone:!0,features:[n._Bn([{provide:e.XJ,useExisting:ae}]),n.Xq5,n.qOj]})}return ae})(),m=(()=>{class ae{constructor(q,j){this.viewContainer=q,this._node=j}static#e=this.\u0275fac=function(j){return new(j||ae)(n.Y36(n.s_b),n.Y36(e.HI,8))};static#t=this.\u0275dir=n.lG2({type:ae,selectors:[["","matTreeNodeOutlet",""]],standalone:!0,features:[n._Bn([{provide:e.cu,useExisting:ae}])]})}return ae})(),b=(()=>{class ae extends e._0{constructor(){super(...arguments),this._nodeOutlet=void 0}static#e=this.\u0275fac=(()=>{let q;return function(Y){return(q||(q=n.n5z(ae)))(Y||ae)}})();static#t=this.\u0275cmp=n.Xpm({type:ae,selectors:[["mat-tree"]],viewQuery:function(j,Y){if(1&j&&n.Gf(m,7),2&j){let K;n.iGM(K=n.CRH())&&(Y._nodeOutlet=K.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],standalone:!0,features:[n._Bn([{provide:e._0,useExisting:ae}]),n.qOj,n.jDz],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(j,Y){1&j&&n.GkF(0,0)},dependencies:[m],styles:[".mat-tree{display:block;background-color:var(--mat-tree-container-background-color)}.mat-tree-node,.mat-nested-tree-node{color:var(--mat-tree-node-text-color);font-family:var(--mat-tree-node-text-font);font-size:var(--mat-tree-node-text-size);font-weight:var(--mat-tree-node-text-weight)}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word;min-height:var(--mat-tree-node-min-height)}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2})}return ae})(),I=(()=>{class ae extends e.Ud{static#e=this.\u0275fac=(()=>{let q;return function(Y){return(q||(q=n.n5z(ae)))(Y||ae)}})();static#t=this.\u0275dir=n.lG2({type:ae,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:[n.lbL.None,"matTreeNodeToggleRecursive","recursive"]},standalone:!0,features:[n._Bn([{provide:e.Ud,useExisting:ae}]),n.qOj]})}return ae})(),O=(()=>{class ae{static#e=this.\u0275fac=function(j){return new(j||ae)};static#t=this.\u0275mod=n.oAB({type:ae});static#n=this.\u0275inj=n.cJS({imports:[e.nZ,s.BQ,s.BQ]})}return ae})();class B extends l.o2{constructor(){super(...arguments),this._data=new i.X([])}get data(){return this._data.value}set data(J){this._data.next(J)}connect(J){return(0,t.T)(J.viewChange,this._data).pipe((0,p.U)(()=>this.data))}disconnect(){}}},6593:(gt,X,a)=>{"use strict";a.d(X,{Dx:()=>ti,H7:()=>ii,b2:()=>ft,q6:()=>Pt,se:()=>K});var e=a(19212),n=a(96814);class s extends n.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class l extends s{static makeCurrent(){(0,n.HT)(new l)}onAndCancel(rt,$e,Ve){return rt.addEventListener($e,Ve),()=>{rt.removeEventListener($e,Ve)}}dispatchEvent(rt,$e){rt.dispatchEvent($e)}remove(rt){rt.parentNode&&rt.parentNode.removeChild(rt)}createElement(rt,$e){return($e=$e||this.getDefaultDocument()).createElement(rt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(rt){return rt.nodeType===Node.ELEMENT_NODE}isShadowRoot(rt){return rt instanceof DocumentFragment}getGlobalEventTarget(rt,$e){return"window"===$e?window:"document"===$e?rt:"body"===$e?rt.body:null}getBaseHref(rt){const $e=function t(){return i=i||document.querySelector("base"),i?i.getAttribute("href"):null}();return null==$e?null:function p(He){return new URL(He,document.baseURI).pathname}($e)}resetBaseElement(){i=null}getUserAgent(){return window.navigator.userAgent}getCookie(rt){return(0,n.Mx)(document.cookie,rt)}}let i=null,o=(()=>{class He{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(Ve){return new(Ve||He)};static#t=this.\u0275prov=e.Yz7({token:He,factory:He.\u0275fac})}return He})();const x=new e.OlP("");let u=(()=>{class He{constructor($e,Ve){this._zone=Ve,this._eventNameToPlugin=new Map,$e.forEach(Ce=>{Ce.manager=this}),this._plugins=$e.slice().reverse()}addEventListener($e,Ve,Ce){return this._findPluginFor(Ve).addEventListener($e,Ve,Ce)}getZone(){return this._zone}_findPluginFor($e){let Ve=this._eventNameToPlugin.get($e);if(Ve)return Ve;if(Ve=this._plugins.find(tt=>tt.supports($e)),!Ve)throw new e.vHH(5101,!1);return this._eventNameToPlugin.set($e,Ve),Ve}static#e=this.\u0275fac=function(Ve){return new(Ve||He)(e.LFG(x),e.LFG(e.R0b))};static#t=this.\u0275prov=e.Yz7({token:He,factory:He.\u0275fac})}return He})();class m{constructor(rt){this._doc=rt}}const b="ng-app-id";let I=(()=>{class He{constructor($e,Ve,Ce,tt={}){this.doc=$e,this.appId=Ve,this.nonce=Ce,this.platformId=tt,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,n.PM)(tt),this.resetHostNodes()}addStyles($e){for(const Ve of $e)1===this.changeUsageCount(Ve,1)&&this.onStyleAdded(Ve)}removeStyles($e){for(const Ve of $e)this.changeUsageCount(Ve,-1)<=0&&this.onStyleRemoved(Ve)}ngOnDestroy(){const $e=this.styleNodesInDOM;$e&&($e.forEach(Ve=>Ve.remove()),$e.clear());for(const Ve of this.getAllStyles())this.onStyleRemoved(Ve);this.resetHostNodes()}addHost($e){this.hostNodes.add($e);for(const Ve of this.getAllStyles())this.addStyleToHost($e,Ve)}removeHost($e){this.hostNodes.delete($e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded($e){for(const Ve of this.hostNodes)this.addStyleToHost(Ve,$e)}onStyleRemoved($e){const Ve=this.styleRef;Ve.get($e)?.elements?.forEach(Ce=>Ce.remove()),Ve.delete($e)}collectServerRenderedStyles(){const $e=this.doc.head?.querySelectorAll(`style[${b}="${this.appId}"]`);if($e?.length){const Ve=new Map;return $e.forEach(Ce=>{null!=Ce.textContent&&Ve.set(Ce.textContent,Ce)}),Ve}return null}changeUsageCount($e,Ve){const Ce=this.styleRef;if(Ce.has($e)){const tt=Ce.get($e);return tt.usage+=Ve,tt.usage}return Ce.set($e,{usage:Ve,elements:[]}),Ve}getStyleElement($e,Ve){const Ce=this.styleNodesInDOM,tt=Ce?.get(Ve);if(tt?.parentNode===$e)return Ce.delete(Ve),tt.removeAttribute(b),tt;{const ht=this.doc.createElement("style");return this.nonce&&ht.setAttribute("nonce",this.nonce),ht.textContent=Ve,this.platformIsServer&&ht.setAttribute(b,this.appId),$e.appendChild(ht),ht}}addStyleToHost($e,Ve){const Ce=this.getStyleElement($e,Ve),tt=this.styleRef,ht=tt.get(Ve)?.elements;ht?ht.push(Ce):tt.set(Ve,{elements:[Ce],usage:1})}resetHostNodes(){const $e=this.hostNodes;$e.clear(),$e.add(this.doc.head)}static#e=this.\u0275fac=function(Ve){return new(Ve||He)(e.LFG(n.K0),e.LFG(e.AFp),e.LFG(e.Ojb,8),e.LFG(e.Lbi))};static#t=this.\u0275prov=e.Yz7({token:He,factory:He.\u0275fac})}return He})();const H={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},O=/%COMP%/g,P="%COMP%",G=`_nghost-${P}`,B=`_ngcontent-${P}`,J=new e.OlP("",{providedIn:"root",factory:()=>!0});function Y(He,rt){return rt.map($e=>$e.replace(O,He))}let K=(()=>{class He{constructor($e,Ve,Ce,tt,ht,Qt,Un,Yt=null){this.eventManager=$e,this.sharedStylesHost=Ve,this.appId=Ce,this.removeStylesOnCompDestroy=tt,this.doc=ht,this.platformId=Qt,this.ngZone=Un,this.nonce=Yt,this.rendererByCompId=new Map,this.platformIsServer=(0,n.PM)(Qt),this.defaultRenderer=new ne($e,ht,Un,this.platformIsServer)}createRenderer($e,Ve){if(!$e||!Ve)return this.defaultRenderer;this.platformIsServer&&Ve.encapsulation===e.ifc.ShadowDom&&(Ve={...Ve,encapsulation:e.ifc.Emulated});const Ce=this.getOrCreateRenderer($e,Ve);return Ce instanceof at?Ce.applyToHost($e):Ce instanceof Ke&&Ce.applyStyles(),Ce}getOrCreateRenderer($e,Ve){const Ce=this.rendererByCompId;let tt=Ce.get(Ve.id);if(!tt){const ht=this.doc,Qt=this.ngZone,Un=this.eventManager,Yt=this.sharedStylesHost,Fn=this.removeStylesOnCompDestroy,yt=this.platformIsServer;switch(Ve.encapsulation){case e.ifc.Emulated:tt=new at(Un,Yt,Ve,this.appId,Fn,ht,Qt,yt);break;case e.ifc.ShadowDom:return new ge(Un,Yt,$e,Ve,ht,Qt,this.nonce,yt);default:tt=new Ke(Un,Yt,Ve,Fn,ht,Qt,yt)}Ce.set(Ve.id,tt)}return tt}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(Ve){return new(Ve||He)(e.LFG(u),e.LFG(I),e.LFG(e.AFp),e.LFG(J),e.LFG(n.K0),e.LFG(e.Lbi),e.LFG(e.R0b),e.LFG(e.Ojb))};static#t=this.\u0275prov=e.Yz7({token:He,factory:He.\u0275fac})}return He})();class ne{constructor(rt,$e,Ve,Ce){this.eventManager=rt,this.doc=$e,this.ngZone=Ve,this.platformIsServer=Ce,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(rt,$e){return $e?this.doc.createElementNS(H[$e]||$e,rt):this.doc.createElement(rt)}createComment(rt){return this.doc.createComment(rt)}createText(rt){return this.doc.createTextNode(rt)}appendChild(rt,$e){(ue(rt)?rt.content:rt).appendChild($e)}insertBefore(rt,$e,Ve){rt&&(ue(rt)?rt.content:rt).insertBefore($e,Ve)}removeChild(rt,$e){rt&&rt.removeChild($e)}selectRootElement(rt,$e){let Ve="string"==typeof rt?this.doc.querySelector(rt):rt;if(!Ve)throw new e.vHH(-5104,!1);return $e||(Ve.textContent=""),Ve}parentNode(rt){return rt.parentNode}nextSibling(rt){return rt.nextSibling}setAttribute(rt,$e,Ve,Ce){if(Ce){$e=Ce+":"+$e;const tt=H[Ce];tt?rt.setAttributeNS(tt,$e,Ve):rt.setAttribute($e,Ve)}else rt.setAttribute($e,Ve)}removeAttribute(rt,$e,Ve){if(Ve){const Ce=H[Ve];Ce?rt.removeAttributeNS(Ce,$e):rt.removeAttribute(`${Ve}:${$e}`)}else rt.removeAttribute($e)}addClass(rt,$e){rt.classList.add($e)}removeClass(rt,$e){rt.classList.remove($e)}setStyle(rt,$e,Ve,Ce){Ce&(e.JOm.DashCase|e.JOm.Important)?rt.style.setProperty($e,Ve,Ce&e.JOm.Important?"important":""):rt.style[$e]=Ve}removeStyle(rt,$e,Ve){Ve&e.JOm.DashCase?rt.style.removeProperty($e):rt.style[$e]=""}setProperty(rt,$e,Ve){null!=rt&&(rt[$e]=Ve)}setValue(rt,$e){rt.nodeValue=$e}listen(rt,$e,Ve){if("string"==typeof rt&&!(rt=(0,n.q)().getGlobalEventTarget(this.doc,rt)))throw new Error(`Unsupported event target ${rt} for event ${$e}`);return this.eventManager.addEventListener(rt,$e,this.decoratePreventDefault(Ve))}decoratePreventDefault(rt){return $e=>{if("__ngUnwrap__"===$e)return rt;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>rt($e)):rt($e))&&$e.preventDefault()}}}function ue(He){return"TEMPLATE"===He.tagName&&void 0!==He.content}class ge extends ne{constructor(rt,$e,Ve,Ce,tt,ht,Qt,Un){super(rt,tt,ht,Un),this.sharedStylesHost=$e,this.hostEl=Ve,this.shadowRoot=Ve.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Yt=Y(Ce.id,Ce.styles);for(const Fn of Yt){const yt=document.createElement("style");Qt&&yt.setAttribute("nonce",Qt),yt.textContent=Fn,this.shadowRoot.appendChild(yt)}}nodeOrShadowRoot(rt){return rt===this.hostEl?this.shadowRoot:rt}appendChild(rt,$e){return super.appendChild(this.nodeOrShadowRoot(rt),$e)}insertBefore(rt,$e,Ve){return super.insertBefore(this.nodeOrShadowRoot(rt),$e,Ve)}removeChild(rt,$e){return super.removeChild(this.nodeOrShadowRoot(rt),$e)}parentNode(rt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(rt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Ke extends ne{constructor(rt,$e,Ve,Ce,tt,ht,Qt,Un){super(rt,tt,ht,Qt),this.sharedStylesHost=$e,this.removeStylesOnCompDestroy=Ce,this.styles=Un?Y(Un,Ve.styles):Ve.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class at extends Ke{constructor(rt,$e,Ve,Ce,tt,ht,Qt,Un){const Yt=Ce+"-"+Ve.id;super(rt,$e,Ve,tt,ht,Qt,Un,Yt),this.contentAttr=function q(He){return B.replace(O,He)}(Yt),this.hostAttr=function j(He){return G.replace(O,He)}(Yt)}applyToHost(rt){this.applyStyles(),this.setAttribute(rt,this.hostAttr,"")}createElement(rt,$e){const Ve=super.createElement(rt,$e);return super.setAttribute(Ve,this.contentAttr,""),Ve}}let Le=(()=>{class He extends m{constructor($e){super($e)}supports($e){return!0}addEventListener($e,Ve,Ce){return $e.addEventListener(Ve,Ce,!1),()=>this.removeEventListener($e,Ve,Ce)}removeEventListener($e,Ve,Ce){return $e.removeEventListener(Ve,Ce)}static#e=this.\u0275fac=function(Ve){return new(Ve||He)(e.LFG(n.K0))};static#t=this.\u0275prov=e.Yz7({token:He,factory:He.\u0275fac})}return He})();const R=["alt","control","meta","shift"],Te={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},me={alt:He=>He.altKey,control:He=>He.ctrlKey,meta:He=>He.metaKey,shift:He=>He.shiftKey};let Se=(()=>{class He extends m{constructor($e){super($e)}supports($e){return null!=He.parseEventName($e)}addEventListener($e,Ve,Ce){const tt=He.parseEventName(Ve),ht=He.eventCallback(tt.fullKey,Ce,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,n.q)().onAndCancel($e,tt.domEventName,ht))}static parseEventName($e){const Ve=$e.toLowerCase().split("."),Ce=Ve.shift();if(0===Ve.length||"keydown"!==Ce&&"keyup"!==Ce)return null;const tt=He._normalizeKey(Ve.pop());let ht="",Qt=Ve.indexOf("code");if(Qt>-1&&(Ve.splice(Qt,1),ht="code."),R.forEach(Yt=>{const Fn=Ve.indexOf(Yt);Fn>-1&&(Ve.splice(Fn,1),ht+=Yt+".")}),ht+=tt,0!=Ve.length||0===tt.length)return null;const Un={};return Un.domEventName=Ce,Un.fullKey=ht,Un}static matchEventFullKeyCode($e,Ve){let Ce=Te[$e.key]||$e.key,tt="";return Ve.indexOf("code.")>-1&&(Ce=$e.code,tt="code."),!(null==Ce||!Ce)&&(Ce=Ce.toLowerCase()," "===Ce?Ce="space":"."===Ce&&(Ce="dot"),R.forEach(ht=>{ht!==Ce&&(0,me[ht])($e)&&(tt+=ht+".")}),tt+=Ce,tt===Ve)}static eventCallback($e,Ve,Ce){return tt=>{He.matchEventFullKeyCode(tt,$e)&&Ce.runGuarded(()=>Ve(tt))}}static _normalizeKey($e){return"esc"===$e?"escape":$e}static#e=this.\u0275fac=function(Ve){return new(Ve||He)(e.LFG(n.K0))};static#t=this.\u0275prov=e.Yz7({token:He,factory:He.\u0275fac})}return He})();const Pt=(0,e.eFA)(e._c5,"browser",[{provide:e.Lbi,useValue:n.bD},{provide:e.g9A,useValue:function lt(){l.makeCurrent()},multi:!0},{provide:n.K0,useFactory:function r(){return(0,e.RDi)(document),document},deps:[]}]),Oe=new e.OlP(""),ye=[{provide:e.rWj,useClass:class c{addToWindow(rt){e.dqk.getAngularTestability=(Ve,Ce=!0)=>{const tt=rt.findTestabilityInTree(Ve,Ce);if(null==tt)throw new e.vHH(5103,!1);return tt},e.dqk.getAllAngularTestabilities=()=>rt.getAllTestabilities(),e.dqk.getAllAngularRootElements=()=>rt.getAllRootElements(),e.dqk.frameworkStabilizers||(e.dqk.frameworkStabilizers=[]),e.dqk.frameworkStabilizers.push(Ve=>{const Ce=e.dqk.getAllAngularTestabilities();let tt=Ce.length;const ht=function(){tt--,0==tt&&Ve()};Ce.forEach(Qt=>{Qt.whenStable(ht)})})}findTestabilityInTree(rt,$e,Ve){return null==$e?null:rt.getTestability($e)??(Ve?(0,n.q)().isShadowRoot($e)?this.findTestabilityInTree(rt,$e.host,!0):this.findTestabilityInTree(rt,$e.parentElement,!0):null)}},deps:[]},{provide:e.lri,useClass:e.dDg,deps:[e.R0b,e.eoX,e.rWj]},{provide:e.dDg,useClass:e.dDg,deps:[e.R0b,e.eoX,e.rWj]}],ve=[{provide:e.zSh,useValue:"root"},{provide:e.qLn,useFactory:function Vt(){return new e.qLn},deps:[]},{provide:x,useClass:Le,multi:!0,deps:[n.K0,e.R0b,e.Lbi]},{provide:x,useClass:Se,multi:!0,deps:[n.K0]},K,I,u,{provide:e.FYo,useExisting:K},{provide:n.JF,useClass:o,deps:[]},[]];let ft=(()=>{class He{constructor($e){}static withServerTransition($e){return{ngModule:He,providers:[{provide:e.AFp,useValue:$e.appId}]}}static#e=this.\u0275fac=function(Ve){return new(Ve||He)(e.LFG(Oe,12))};static#t=this.\u0275mod=e.oAB({type:He});static#n=this.\u0275inj=e.cJS({providers:[...ve,...ye],imports:[n.ez,e.hGG]})}return He})(),ti=(()=>{class He{constructor($e){this._doc=$e}getTitle(){return this._doc.title}setTitle($e){this._doc.title=$e||""}static#e=this.\u0275fac=function(Ve){return new(Ve||He)(e.LFG(n.K0))};static#t=this.\u0275prov=e.Yz7({token:He,factory:He.\u0275fac,providedIn:"root"})}return He})(),ii=(()=>{class He{static#e=this.\u0275fac=function(Ve){return new(Ve||He)};static#t=this.\u0275prov=e.Yz7({token:He,factory:function(Ve){let Ce=null;return Ce=Ve?new(Ve||He):e.LFG(Oo),Ce},providedIn:"root"})}return He})(),Oo=(()=>{class He extends ii{constructor($e){super(),this._doc=$e}sanitize($e,Ve){if(null==Ve)return null;switch($e){case e.q3G.NONE:return Ve;case e.q3G.HTML:return(0,e.qzn)(Ve,"HTML")?(0,e.z3N)(Ve):(0,e.EiD)(this._doc,String(Ve)).toString();case e.q3G.STYLE:return(0,e.qzn)(Ve,"Style")?(0,e.z3N)(Ve):Ve;case e.q3G.SCRIPT:if((0,e.qzn)(Ve,"Script"))return(0,e.z3N)(Ve);throw new e.vHH(5200,!1);case e.q3G.URL:return(0,e.qzn)(Ve,"URL")?(0,e.z3N)(Ve):(0,e.mCW)(String(Ve));case e.q3G.RESOURCE_URL:if((0,e.qzn)(Ve,"ResourceURL"))return(0,e.z3N)(Ve);throw new e.vHH(5201,!1);default:throw new e.vHH(5202,!1)}}bypassSecurityTrustHtml($e){return(0,e.JVY)($e)}bypassSecurityTrustStyle($e){return(0,e.L6k)($e)}bypassSecurityTrustScript($e){return(0,e.eBb)($e)}bypassSecurityTrustUrl($e){return(0,e.LAX)($e)}bypassSecurityTrustResourceUrl($e){return(0,e.pB0)($e)}static#e=this.\u0275fac=function(Ve){return new(Ve||He)(e.LFG(n.K0))};static#t=this.\u0275prov=e.Yz7({token:He,factory:He.\u0275fac,providedIn:"root"})}return He})()},22941:(gt,X,a)=>{"use strict";a.d(X,{gz:()=>ja,gk:()=>Bi,m2:()=>At,OD:()=>Fo,F0:()=>Sn,rH:()=>No,Od:()=>Ar,Bz:()=>xe,lC:()=>Ua});var e=a(19212),n=a(95363),s=a(5253),l=a(49193),i=a(45125),t=a(23291),p=a(79319),c=a(93990),o=a(24917),x=a(54813),u=a(16222),m=a(91226),b=a(44247),I=a(72079),H=a(7902),O=a(96814),P=a(96124),G=a(75222),B=a(51418),ae=a(53075),J=a(97734),q=a(96743),j=a(88419),Y=a(59724),K=a(17927),ne=a(62413),ee=a(44003),$=a(7428),ue=a(74599),ge=a(38698),Ke=a(60158),Le=a(64014),R=a(11541),Te=a(82851),me=a(19352),Se=a(87449),Ue=a(6593);const We="primary",et=Symbol("RouteTitle");class Et{constructor(pt){this.params=pt||{}}has(pt){return Object.prototype.hasOwnProperty.call(this.params,pt)}get(pt){if(this.has(pt)){const Ye=this.params[pt];return Array.isArray(Ye)?Ye[0]:Ye}return null}getAll(pt){if(this.has(pt)){const Ye=this.params[pt];return Array.isArray(Ye)?Ye:[Ye]}return[]}get keys(){return Object.keys(this.params)}}function lt(Be){return new Et(Be)}function Vt(Be,pt,Ye){const ut=Ye.path.split("/");if(ut.length>Be.length||"full"===Ye.pathMatch&&(pt.hasChildren()||ut.length<Be.length))return null;const Kt={};for(let en=0;en<ut.length;en++){const qn=ut[en],hi=Be[en];if(qn.startsWith(":"))Kt[qn.substring(1)]=hi;else if(qn!==hi.path)return null}return{consumed:Be.slice(0,ut.length),posParams:Kt}}function Z(Be,pt){const Ye=Be?Pt(Be):void 0,ut=pt?Pt(pt):void 0;if(!Ye||!ut||Ye.length!=ut.length)return!1;let Kt;for(let en=0;en<Ye.length;en++)if(Kt=Ye[en],!Oe(Be[Kt],pt[Kt]))return!1;return!0}function Pt(Be){return[...Object.keys(Be),...Object.getOwnPropertySymbols(Be)]}function Oe(Be,pt){if(Array.isArray(Be)&&Array.isArray(pt)){if(Be.length!==pt.length)return!1;const Ye=[...Be].sort(),ut=[...pt].sort();return Ye.every((Kt,en)=>ut[en]===Kt)}return Be===pt}function ye(Be){return Be.length>0?Be[Be.length-1]:null}function ve(Be){return(0,n.b)(Be)?Be:(0,e.QGY)(Be)?(0,s.D)(Promise.resolve(Be)):(0,l.of)(Be)}const ft={exact:function Xt(Be,pt,Ye){if(!sn(Be.segments,pt.segments)||!ot(Be.segments,pt.segments,Ye)||Be.numberOfChildren!==pt.numberOfChildren)return!1;for(const ut in pt.children)if(!Be.children[ut]||!Xt(Be.children[ut],pt.children[ut],Ye))return!1;return!0},subset:dt},Dt={exact:function ti(Be,pt){return Z(Be,pt)},subset:function Je(Be,pt){return Object.keys(pt).length<=Object.keys(Be).length&&Object.keys(pt).every(Ye=>Oe(Be[Ye],pt[Ye]))},ignored:()=>!0};function Rn(Be,pt,Ye){return ft[Ye.paths](Be.root,pt.root,Ye.matrixParams)&&Dt[Ye.queryParams](Be.queryParams,pt.queryParams)&&!("exact"===Ye.fragment&&Be.fragment!==pt.fragment)}function dt(Be,pt,Ye){return Ie(Be,pt,pt.segments,Ye)}function Ie(Be,pt,Ye,ut){if(Be.segments.length>Ye.length){const Kt=Be.segments.slice(0,Ye.length);return!(!sn(Kt,Ye)||pt.hasChildren()||!ot(Kt,Ye,ut))}if(Be.segments.length===Ye.length){if(!sn(Be.segments,Ye)||!ot(Be.segments,Ye,ut))return!1;for(const Kt in pt.children)if(!Be.children[Kt]||!dt(Be.children[Kt],pt.children[Kt],ut))return!1;return!0}{const Kt=Ye.slice(0,Be.segments.length),en=Ye.slice(Be.segments.length);return!!(sn(Be.segments,Kt)&&ot(Be.segments,Kt,ut)&&Be.children[We])&&Ie(Be.children[We],pt,en,ut)}}function ot(Be,pt,Ye){return pt.every((ut,Kt)=>Dt[Ye](Be[Kt].parameters,ut.parameters))}class ct{constructor(pt=new tn([],{}),Ye={},ut=null){this.root=pt,this.queryParams=Ye,this.fragment=ut}get queryParamMap(){return this._queryParamMap??=lt(this.queryParams),this._queryParamMap}toString(){return rn.serialize(this)}}class tn{constructor(pt,Ye){this.segments=pt,this.children=Ye,this.parent=null,Object.values(Ye).forEach(ut=>ut.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ii(this)}}class yi{constructor(pt,Ye){this.path=pt,this.parameters=Ye}get parameterMap(){return this._parameterMap??=lt(this.parameters),this._parameterMap}toString(){return co(this)}}function sn(Be,pt){return Be.length===pt.length&&Be.every((Ye,ut)=>Ye.path===pt[ut].path)}let vt=(()=>{class Be{static#e=this.\u0275fac=function(ut){return new(ut||Be)};static#t=this.\u0275prov=e.Yz7({token:Be,factory:()=>new nn,providedIn:"root"})}return Be})();class nn{parse(pt){const Ye=new Un(pt);return new ct(Ye.parseRootSegment(),Ye.parseQueryParams(),Ye.parseFragment())}serialize(pt){const Ye=`/${Oo(pt.root,!0)}`,ut=function ln(Be){const pt=Object.entries(Be).map(([Ye,ut])=>Array.isArray(ut)?ut.map(Kt=>`${Li(Ye)}=${Li(Kt)}`).join("&"):`${Li(Ye)}=${Li(ut)}`).filter(Ye=>Ye);return pt.length?`?${pt.join("&")}`:""}(pt.queryParams);return`${Ye}${ut}${"string"==typeof pt.fragment?`#${function ji(Be){return encodeURI(Be)}(pt.fragment)}`:""}`}}const rn=new nn;function ii(Be){return Be.segments.map(pt=>co(pt)).join("/")}function Oo(Be,pt){if(!Be.hasChildren())return ii(Be);if(pt){const Ye=Be.children[We]?Oo(Be.children[We],!1):"",ut=[];return Object.entries(Be.children).forEach(([Kt,en])=>{Kt!==We&&ut.push(`${Kt}:${Oo(en,!1)}`)}),ut.length>0?`${Ye}(${ut.join("//")})`:Ye}{const Ye=function bn(Be,pt){let Ye=[];return Object.entries(Be.children).forEach(([ut,Kt])=>{ut===We&&(Ye=Ye.concat(pt(Kt,ut)))}),Object.entries(Be.children).forEach(([ut,Kt])=>{ut!==We&&(Ye=Ye.concat(pt(Kt,ut)))}),Ye}(Be,(ut,Kt)=>Kt===We?[Oo(Be.children[We],!1)]:[`${Kt}:${Oo(ut,!1)}`]);return 1===Object.keys(Be.children).length&&null!=Be.children[We]?`${ii(Be)}/${Ye[0]}`:`${ii(Be)}/(${Ye.join("//")})`}}function no(Be){return encodeURIComponent(Be).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Li(Be){return no(Be).replace(/%3B/gi,";")}function Ii(Be){return no(Be).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function _i(Be){return decodeURIComponent(Be)}function En(Be){return _i(Be.replace(/\+/g,"%20"))}function co(Be){return`${Ii(Be.path)}${function yn(Be){return Object.entries(Be).map(([pt,Ye])=>`;${Ii(pt)}=${Ii(Ye)}`).join("")}(Be.parameters)}`}const He=/^[^\/()?;#]+/;function rt(Be){const pt=Be.match(He);return pt?pt[0]:""}const $e=/^[^\/()?;=#]+/,Ce=/^[^=?&#]+/,ht=/^[^&#]+/;class Un{constructor(pt){this.url=pt,this.remaining=pt}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new tn([],{}):new tn([],this.parseChildren())}parseQueryParams(){const pt={};if(this.consumeOptional("?"))do{this.parseQueryParam(pt)}while(this.consumeOptional("&"));return pt}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const pt=[];for(this.peekStartsWith("(")||pt.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),pt.push(this.parseSegment());let Ye={};this.peekStartsWith("/(")&&(this.capture("/"),Ye=this.parseParens(!0));let ut={};return this.peekStartsWith("(")&&(ut=this.parseParens(!1)),(pt.length>0||Object.keys(Ye).length>0)&&(ut[We]=new tn(pt,Ye)),ut}parseSegment(){const pt=rt(this.remaining);if(""===pt&&this.peekStartsWith(";"))throw new e.vHH(4009,!1);return this.capture(pt),new yi(_i(pt),this.parseMatrixParams())}parseMatrixParams(){const pt={};for(;this.consumeOptional(";");)this.parseParam(pt);return pt}parseParam(pt){const Ye=function Ve(Be){const pt=Be.match($e);return pt?pt[0]:""}(this.remaining);if(!Ye)return;this.capture(Ye);let ut="";if(this.consumeOptional("=")){const Kt=rt(this.remaining);Kt&&(ut=Kt,this.capture(ut))}pt[_i(Ye)]=_i(ut)}parseQueryParam(pt){const Ye=function tt(Be){const pt=Be.match(Ce);return pt?pt[0]:""}(this.remaining);if(!Ye)return;this.capture(Ye);let ut="";if(this.consumeOptional("=")){const qn=function Qt(Be){const pt=Be.match(ht);return pt?pt[0]:""}(this.remaining);qn&&(ut=qn,this.capture(ut))}const Kt=En(Ye),en=En(ut);if(pt.hasOwnProperty(Kt)){let qn=pt[Kt];Array.isArray(qn)||(qn=[qn],pt[Kt]=qn),qn.push(en)}else pt[Kt]=en}parseParens(pt){const Ye={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const ut=rt(this.remaining),Kt=this.remaining[ut.length];if("/"!==Kt&&")"!==Kt&&";"!==Kt)throw new e.vHH(4010,!1);let en;ut.indexOf(":")>-1?(en=ut.slice(0,ut.indexOf(":")),this.capture(en),this.capture(":")):pt&&(en=We);const qn=this.parseChildren();Ye[en]=1===Object.keys(qn).length?qn[We]:new tn([],qn),this.consumeOptional("//")}return Ye}peekStartsWith(pt){return this.remaining.startsWith(pt)}consumeOptional(pt){return!!this.peekStartsWith(pt)&&(this.remaining=this.remaining.substring(pt.length),!0)}capture(pt){if(!this.consumeOptional(pt))throw new e.vHH(4011,!1)}}function Yt(Be){return Be.segments.length>0?new tn([],{[We]:Be}):Be}function Fn(Be){const pt={};for(const[ut,Kt]of Object.entries(Be.children)){const en=Fn(Kt);if(ut===We&&0===en.segments.length&&en.hasChildren())for(const[qn,hi]of Object.entries(en.children))pt[qn]=hi;else(en.segments.length>0||en.hasChildren())&&(pt[ut]=en)}return function yt(Be){if(1===Be.numberOfChildren&&Be.children[We]){const pt=Be.children[We];return new tn(Be.segments.concat(pt.segments),pt.children)}return Be}(new tn(Be.segments,pt))}function Bt(Be){return Be instanceof ct}function si(Be){let pt;const Kt=Yt(function Ye(en){const qn={};for(const gi of en.children){const ko=Ye(gi);qn[gi.outlet]=ko}const hi=new tn(en.url,qn);return en===Be&&(pt=hi),hi}(Be.root));return pt??Kt}function oo(Be,pt,Ye,ut){let Kt=Be;for(;Kt.parent;)Kt=Kt.parent;if(0===pt.length)return mo(Kt,Kt,Kt,Ye,ut);const en=function wn(Be){if("string"==typeof Be[0]&&1===Be.length&&"/"===Be[0])return new Ji(!0,0,Be);let pt=0,Ye=!1;const ut=Be.reduce((Kt,en,qn)=>{if("object"==typeof en&&null!=en){if(en.outlets){const hi={};return Object.entries(en.outlets).forEach(([gi,ko])=>{hi[gi]="string"==typeof ko?ko.split("/"):ko}),[...Kt,{outlets:hi}]}if(en.segmentPath)return[...Kt,en.segmentPath]}return"string"!=typeof en?[...Kt,en]:0===qn?(en.split("/").forEach((hi,gi)=>{0==gi&&"."===hi||(0==gi&&""===hi?Ye=!0:".."===hi?pt++:""!=hi&&Kt.push(hi))}),Kt):[...Kt,en]},[]);return new Ji(Ye,pt,ut)}(pt);if(en.toRoot())return mo(Kt,Kt,new tn([],{}),Ye,ut);const qn=function Kn(Be,pt,Ye){if(Be.isAbsolute)return new po(pt,!0,0);if(!Ye)return new po(pt,!1,NaN);if(null===Ye.parent)return new po(Ye,!0,0);const ut=_o(Be.commands[0])?0:1;return function Vn(Be,pt,Ye){let ut=Be,Kt=pt,en=Ye;for(;en>Kt;){if(en-=Kt,ut=ut.parent,!ut)throw new e.vHH(4005,!1);Kt=ut.segments.length}return new po(ut,!1,Kt-en)}(Ye,Ye.segments.length-1+ut,Be.numberOfDoubleDots)}(en,Kt,Be),hi=qn.processChildren?Oi(qn.segmentGroup,qn.index,en.commands):Ft(qn.segmentGroup,qn.index,en.commands);return mo(Kt,qn.segmentGroup,hi,Ye,ut)}function _o(Be){return"object"==typeof Be&&null!=Be&&!Be.outlets&&!Be.segmentPath}function Hn(Be){return"object"==typeof Be&&null!=Be&&Be.outlets}function mo(Be,pt,Ye,ut,Kt){let qn,en={};ut&&Object.entries(ut).forEach(([gi,ko])=>{en[gi]=Array.isArray(ko)?ko.map(Wo=>`${Wo}`):`${ko}`}),qn=Be===pt?Ye:vn(Be,pt,Ye);const hi=Yt(Fn(qn));return new ct(hi,en,Kt)}function vn(Be,pt,Ye){const ut={};return Object.entries(Be.children).forEach(([Kt,en])=>{ut[Kt]=en===pt?Ye:vn(en,pt,Ye)}),new tn(Be.segments,ut)}class Ji{constructor(pt,Ye,ut){if(this.isAbsolute=pt,this.numberOfDoubleDots=Ye,this.commands=ut,pt&&ut.length>0&&_o(ut[0]))throw new e.vHH(4003,!1);const Kt=ut.find(Hn);if(Kt&&Kt!==ye(ut))throw new e.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class po{constructor(pt,Ye,ut){this.segmentGroup=pt,this.processChildren=Ye,this.index=ut}}function Ft(Be,pt,Ye){if(Be??=new tn([],{}),0===Be.segments.length&&Be.hasChildren())return Oi(Be,pt,Ye);const ut=function On(Be,pt,Ye){let ut=0,Kt=pt;const en={match:!1,pathIndex:0,commandIndex:0};for(;Kt<Be.segments.length;){if(ut>=Ye.length)return en;const qn=Be.segments[Kt],hi=Ye[ut];if(Hn(hi))break;const gi=`${hi}`,ko=ut<Ye.length-1?Ye[ut+1]:null;if(Kt>0&&void 0===gi)break;if(gi&&ko&&"object"==typeof ko&&void 0===ko.outlets){if(!Wt(gi,ko,qn))return en;ut+=2}else{if(!Wt(gi,{},qn))return en;ut++}Kt++}return{match:!0,pathIndex:Kt,commandIndex:ut}}(Be,pt,Ye),Kt=Ye.slice(ut.commandIndex);if(ut.match&&ut.pathIndex<Be.segments.length){const en=new tn(Be.segments.slice(0,ut.pathIndex),{});return en.children[We]=new tn(Be.segments.slice(ut.pathIndex),Be.children),Oi(en,0,Kt)}return ut.match&&0===Kt.length?new tn(Be.segments,{}):ut.match&&!Be.hasChildren()?_n(Be,pt,Ye):ut.match?Oi(Be,0,Kt):_n(Be,pt,Ye)}function Oi(Be,pt,Ye){if(0===Ye.length)return new tn(Be.segments,{});{const ut=function Wi(Be){return Hn(Be[0])?Be[0].outlets:{[We]:Be}}(Ye),Kt={};if(Object.keys(ut).some(en=>en!==We)&&Be.children[We]&&1===Be.numberOfChildren&&0===Be.children[We].segments.length){const en=Oi(Be.children[We],pt,Ye);return new tn(Be.segments,en.children)}return Object.entries(ut).forEach(([en,qn])=>{"string"==typeof qn&&(qn=[qn]),null!==qn&&(Kt[en]=Ft(Be.children[en],pt,qn))}),Object.entries(Be.children).forEach(([en,qn])=>{void 0===ut[en]&&(Kt[en]=qn)}),new tn(Be.segments,Kt)}}function _n(Be,pt,Ye){const ut=Be.segments.slice(0,pt);let Kt=0;for(;Kt<Ye.length;){const en=Ye[Kt];if(Hn(en)){const gi=st(en.outlets);return new tn(ut,gi)}if(0===Kt&&_o(Ye[0])){ut.push(new yi(Be.segments[pt].path,Dn(Ye[0]))),Kt++;continue}const qn=Hn(en)?en.outlets[We]:`${en}`,hi=Kt<Ye.length-1?Ye[Kt+1]:null;qn&&hi&&_o(hi)?(ut.push(new yi(qn,Dn(hi))),Kt+=2):(ut.push(new yi(qn,{})),Kt++)}return new tn(ut,{})}function st(Be){const pt={};return Object.entries(Be).forEach(([Ye,ut])=>{"string"==typeof ut&&(ut=[ut]),null!==ut&&(pt[Ye]=_n(new tn([],{}),0,ut))}),pt}function Dn(Be){const pt={};return Object.entries(Be).forEach(([Ye,ut])=>pt[Ye]=`${ut}`),pt}function Wt(Be,pt,Ye){return Be==Ye.path&&Z(pt,Ye.parameters)}const kn="imperative";var Fi=function(Be){return Be[Be.NavigationStart=0]="NavigationStart",Be[Be.NavigationEnd=1]="NavigationEnd",Be[Be.NavigationCancel=2]="NavigationCancel",Be[Be.NavigationError=3]="NavigationError",Be[Be.RoutesRecognized=4]="RoutesRecognized",Be[Be.ResolveStart=5]="ResolveStart",Be[Be.ResolveEnd=6]="ResolveEnd",Be[Be.GuardsCheckStart=7]="GuardsCheckStart",Be[Be.GuardsCheckEnd=8]="GuardsCheckEnd",Be[Be.RouteConfigLoadStart=9]="RouteConfigLoadStart",Be[Be.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",Be[Be.ChildActivationStart=11]="ChildActivationStart",Be[Be.ChildActivationEnd=12]="ChildActivationEnd",Be[Be.ActivationStart=13]="ActivationStart",Be[Be.ActivationEnd=14]="ActivationEnd",Be[Be.Scroll=15]="Scroll",Be[Be.NavigationSkipped=16]="NavigationSkipped",Be}(Fi||{});class ui{constructor(pt,Ye){this.id=pt,this.url=Ye}}class Fo extends ui{constructor(pt,Ye,ut="imperative",Kt=null){super(pt,Ye),this.type=Fi.NavigationStart,this.navigationTrigger=ut,this.restoredState=Kt}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class At extends ui{constructor(pt,Ye,ut){super(pt,Ye),this.urlAfterRedirects=ut,this.type=Fi.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Jn=function(Be){return Be[Be.Redirect=0]="Redirect",Be[Be.SupersededByNewNavigation=1]="SupersededByNewNavigation",Be[Be.NoDataFromResolver=2]="NoDataFromResolver",Be[Be.GuardRejected=3]="GuardRejected",Be}(Jn||{}),Bn=function(Be){return Be[Be.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",Be[Be.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",Be}(Bn||{});class Bi extends ui{constructor(pt,Ye,ut,Kt){super(pt,Ye),this.reason=ut,this.code=Kt,this.type=Fi.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class $n extends ui{constructor(pt,Ye,ut,Kt){super(pt,Ye),this.reason=ut,this.code=Kt,this.type=Fi.NavigationSkipped}}class Ui extends ui{constructor(pt,Ye,ut,Kt){super(pt,Ye),this.error=ut,this.target=Kt,this.type=Fi.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Xo extends ui{constructor(pt,Ye,ut,Kt){super(pt,Ye),this.urlAfterRedirects=ut,this.state=Kt,this.type=Fi.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bt extends ui{constructor(pt,Ye,ut,Kt){super(pt,Ye),this.urlAfterRedirects=ut,this.state=Kt,this.type=Fi.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class an extends ui{constructor(pt,Ye,ut,Kt,en){super(pt,Ye),this.urlAfterRedirects=ut,this.state=Kt,this.shouldActivate=en,this.type=Fi.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Wn extends ui{constructor(pt,Ye,ut,Kt){super(pt,Ye),this.urlAfterRedirects=ut,this.state=Kt,this.type=Fi.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class eo extends ui{constructor(pt,Ye,ut,Kt){super(pt,Ye),this.urlAfterRedirects=ut,this.state=Kt,this.type=Fi.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _r{constructor(pt){this.route=pt,this.type=Fi.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class hr{constructor(pt){this.route=pt,this.type=Fi.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class In{constructor(pt){this.snapshot=pt,this.type=Fi.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Wr{constructor(pt){this.snapshot=pt,this.type=Fi.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qi{constructor(pt){this.snapshot=pt,this.type=Fi.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wi{constructor(pt){this.snapshot=pt,this.type=Fi.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zo{constructor(pt,Ye,ut){this.routerEvent=pt,this.position=Ye,this.anchor=ut,this.type=Fi.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class xi{}class ki{constructor(pt){this.url=pt}}class Ei{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new ho,this.attachRef=null}}let ho=(()=>{class Be{constructor(){this.contexts=new Map}onChildOutletCreated(Ye,ut){const Kt=this.getOrCreateContext(Ye);Kt.outlet=ut,this.contexts.set(Ye,Kt)}onChildOutletDestroyed(Ye){const ut=this.getContext(Ye);ut&&(ut.outlet=null,ut.attachRef=null)}onOutletDeactivated(){const Ye=this.contexts;return this.contexts=new Map,Ye}onOutletReAttached(Ye){this.contexts=Ye}getOrCreateContext(Ye){let ut=this.getContext(Ye);return ut||(ut=new Ei,this.contexts.set(Ye,ut)),ut}getContext(Ye){return this.contexts.get(Ye)||null}static#e=this.\u0275fac=function(ut){return new(ut||Be)};static#t=this.\u0275prov=e.Yz7({token:Be,factory:Be.\u0275fac,providedIn:"root"})}return Be})();class Cr{constructor(pt){this._root=pt}get root(){return this._root.value}parent(pt){const Ye=this.pathFromRoot(pt);return Ye.length>1?Ye[Ye.length-2]:null}children(pt){const Ye=vr(pt,this._root);return Ye?Ye.children.map(ut=>ut.value):[]}firstChild(pt){const Ye=vr(pt,this._root);return Ye&&Ye.children.length>0?Ye.children[0].value:null}siblings(pt){const Ye=qr(pt,this._root);return Ye.length<2?[]:Ye[Ye.length-2].children.map(Kt=>Kt.value).filter(Kt=>Kt!==pt)}pathFromRoot(pt){return qr(pt,this._root).map(Ye=>Ye.value)}}function vr(Be,pt){if(Be===pt.value)return pt;for(const Ye of pt.children){const ut=vr(Be,Ye);if(ut)return ut}return null}function qr(Be,pt){if(Be===pt.value)return[pt];for(const Ye of pt.children){const ut=qr(Be,Ye);if(ut.length)return ut.unshift(pt),ut}return[]}class Ra{constructor(pt,Ye){this.value=pt,this.children=Ye}toString(){return`TreeNode(${this.value})`}}function ss(Be){const pt={};return Be&&Be.children.forEach(Ye=>pt[Ye.value.outlet]=Ye),pt}class Hs extends Cr{constructor(pt,Ye){super(pt),this.snapshot=Ye,Fa(this,pt)}toString(){return this.snapshot.toString()}}function Cs(Be){const pt=function ms(Be){const en=new Vs([],{},{},"",{},We,Be,null,{});return new ls("",new Ra(en,[]))}(Be),Ye=new i.X([new yi("",{})]),ut=new i.X({}),Kt=new i.X({}),en=new i.X({}),qn=new i.X(""),hi=new ja(Ye,ut,en,qn,Kt,We,Be,pt.root);return hi.snapshot=pt.root,new Hs(new Ra(hi,[]),pt)}class ja{constructor(pt,Ye,ut,Kt,en,qn,hi,gi){this.urlSubject=pt,this.paramsSubject=Ye,this.queryParamsSubject=ut,this.fragmentSubject=Kt,this.dataSubject=en,this.outlet=qn,this.component=hi,this._futureSnapshot=gi,this.title=this.dataSubject?.pipe((0,P.U)(ko=>ko[et]))??(0,l.of)(void 0),this.url=pt,this.params=Ye,this.queryParams=ut,this.fragment=Kt,this.data=en}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,P.U)(pt=>lt(pt))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,P.U)(pt=>lt(pt))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function el(Be,pt,Ye="emptyOnly"){let ut;const{routeConfig:Kt}=Be;return ut=null===pt||"always"!==Ye&&""!==Kt?.path&&(pt.component||pt.routeConfig?.loadComponent)?{params:{...Be.params},data:{...Be.data},resolve:{...Be.data,...Be._resolvedData??{}}}:{params:{...pt.params,...Be.params},data:{...pt.data,...Be.data},resolve:{...Be.data,...pt.data,...Kt?.data,...Be._resolvedData}},Kt&&hs(Kt)&&(ut.resolve[et]=Kt.title),ut}class Vs{get title(){return this.data?.[et]}constructor(pt,Ye,ut,Kt,en,qn,hi,gi,ko){this.url=pt,this.params=Ye,this.queryParams=ut,this.fragment=Kt,this.data=en,this.outlet=qn,this.component=hi,this.routeConfig=gi,this._resolve=ko}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=lt(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=lt(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(ut=>ut.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ls extends Cr{constructor(pt,Ye){super(Ye),this.url=pt,Fa(this,Ye)}toString(){return Ds(this._root)}}function Fa(Be,pt){pt.value._routerState=Be,pt.children.forEach(Ye=>Fa(Be,Ye))}function Ds(Be){const pt=Be.children.length>0?` { ${Be.children.map(Ds).join(", ")} } `:"";return`${Be.value}${pt}`}function dl(Be){if(Be.snapshot){const pt=Be.snapshot,Ye=Be._futureSnapshot;Be.snapshot=Ye,Z(pt.queryParams,Ye.queryParams)||Be.queryParamsSubject.next(Ye.queryParams),pt.fragment!==Ye.fragment&&Be.fragmentSubject.next(Ye.fragment),Z(pt.params,Ye.params)||Be.paramsSubject.next(Ye.params),function r(Be,pt){if(Be.length!==pt.length)return!1;for(let Ye=0;Ye<Be.length;++Ye)if(!Z(Be[Ye],pt[Ye]))return!1;return!0}(pt.url,Ye.url)||Be.urlSubject.next(Ye.url),Z(pt.data,Ye.data)||Be.dataSubject.next(Ye.data)}else Be.snapshot=Be._futureSnapshot,Be.dataSubject.next(Be._futureSnapshot.data)}function ka(Be,pt){const Ye=Z(Be.params,pt.params)&&function ni(Be,pt){return sn(Be,pt)&&Be.every((Ye,ut)=>Z(Ye.parameters,pt[ut].parameters))}(Be.url,pt.url);return Ye&&!(!Be.parent!=!pt.parent)&&(!Be.parent||ka(Be.parent,pt.parent))}function hs(Be){return"string"==typeof Be.title||null===Be.title}let Ua=(()=>{class Be{constructor(){this.activated=null,this._activatedRoute=null,this.name=We,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.attachEvents=new e.vpe,this.detachEvents=new e.vpe,this.parentContexts=(0,e.f3M)(ho),this.location=(0,e.f3M)(e.s_b),this.changeDetector=(0,e.f3M)(e.sBO),this.environmentInjector=(0,e.f3M)(e.lqb),this.inputBinder=(0,e.f3M)(Qi,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(Ye){if(Ye.name){const{firstChange:ut,previousValue:Kt}=Ye.name;if(ut)return;this.isTrackedInParentContexts(Kt)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Kt)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(Ye){return this.parentContexts.getContext(Ye)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const Ye=this.parentContexts.getContext(this.name);Ye?.route&&(Ye.attachRef?this.attach(Ye.attachRef,Ye.route):this.activateWith(Ye.route,Ye.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new e.vHH(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new e.vHH(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new e.vHH(4012,!1);this.location.detach();const Ye=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(Ye.instance),Ye}attach(Ye,ut){this.activated=Ye,this._activatedRoute=ut,this.location.insert(Ye.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(Ye.instance)}deactivate(){if(this.activated){const Ye=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(Ye)}}activateWith(Ye,ut){if(this.isActivated)throw new e.vHH(4013,!1);this._activatedRoute=Ye;const Kt=this.location,qn=Ye.snapshot.component,hi=this.parentContexts.getOrCreateContext(this.name).children,gi=new Tn(Ye,hi,Kt.injector);this.activated=Kt.createComponent(qn,{index:Kt.length,injector:gi,environmentInjector:ut??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(ut){return new(ut||Be)};static#t=this.\u0275dir=e.lG2({type:Be,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[e.TTD]})}return Be})();class Tn{constructor(pt,Ye,ut){this.route=pt,this.childContexts=Ye,this.parent=ut}get(pt,Ye){return pt===ja?this.route:pt===ho?this.childContexts:this.parent.get(pt,Ye)}}const Qi=new e.OlP("");let To=(()=>{class Be{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(Ye){this.unsubscribeFromRouteData(Ye),this.subscribeToRouteData(Ye)}unsubscribeFromRouteData(Ye){this.outletDataSubscriptions.get(Ye)?.unsubscribe(),this.outletDataSubscriptions.delete(Ye)}subscribeToRouteData(Ye){const{activatedRoute:ut}=Ye,Kt=(0,t.aj)([ut.queryParams,ut.params,ut.data]).pipe((0,G.w)(([en,qn,hi],gi)=>(hi={...en,...qn,...hi},0===gi?(0,l.of)(hi):Promise.resolve(hi)))).subscribe(en=>{if(!Ye.isActivated||!Ye.activatedComponentRef||Ye.activatedRoute!==ut||null===ut.component)return void this.unsubscribeFromRouteData(Ye);const qn=(0,e.qFp)(ut.component);if(qn)for(const{templateName:hi}of qn.inputs)Ye.activatedComponentRef.setInput(hi,en[hi]);else this.unsubscribeFromRouteData(Ye)});this.outletDataSubscriptions.set(Ye,Kt)}static#e=this.\u0275fac=function(ut){return new(ut||Be)};static#t=this.\u0275prov=e.Yz7({token:Be,factory:Be.\u0275fac})}return Be})();function oi(Be,pt,Ye){if(Ye&&Be.shouldReuseRoute(pt.value,Ye.value.snapshot)){const ut=Ye.value;ut._futureSnapshot=pt.value;const Kt=function Vi(Be,pt,Ye){return pt.children.map(ut=>{for(const Kt of Ye.children)if(Be.shouldReuseRoute(ut.value,Kt.value.snapshot))return oi(Be,ut,Kt);return oi(Be,ut)})}(Be,pt,Ye);return new Ra(ut,Kt)}{if(Be.shouldAttach(pt.value)){const en=Be.retrieve(pt.value);if(null!==en){const qn=en.route;return qn.value._futureSnapshot=pt.value,qn.children=pt.children.map(hi=>oi(Be,hi)),qn}}const ut=function Ti(Be){return new ja(new i.X(Be.url),new i.X(Be.params),new i.X(Be.queryParams),new i.X(Be.fragment),new i.X(Be.data),Be.outlet,Be.component,Be)}(pt.value),Kt=pt.children.map(en=>oi(Be,en));return new Ra(ut,Kt)}}const Hi="ngNavigationCancelingError";function Do(Be,pt){const{redirectTo:Ye,navigationBehaviorOptions:ut}=Bt(pt)?{redirectTo:pt,navigationBehaviorOptions:void 0}:pt,Kt=$o(!1,Jn.Redirect);return Kt.url=Ye,Kt.navigationBehaviorOptions=ut,Kt}function $o(Be,pt){const Ye=new Error(`NavigationCancelingError: ${Be||""}`);return Ye[Hi]=!0,Ye.cancellationCode=pt,Ye}function Vr(Be){return!!Be&&Be[Hi]}let da=(()=>{class Be{static#e=this.\u0275fac=function(ut){return new(ut||Be)};static#t=this.\u0275cmp=e.Xpm({type:Be,selectors:[["ng-component"]],standalone:!0,features:[e.jDz],decls:1,vars:0,template:function(ut,Kt){1&ut&&e._UZ(0,"router-outlet")},dependencies:[Ua],encapsulation:2})}return Be})();function kr(Be){const pt=Be.children&&Be.children.map(kr),Ye=pt?{...Be,children:pt}:{...Be};return!Ye.component&&!Ye.loadComponent&&(pt||Ye.loadChildren)&&Ye.outlet&&Ye.outlet!==We&&(Ye.component=da),Ye}function Qr(Be){return Be.outlet||We}function cs(Be){if(!Be)return null;if(Be.routeConfig?._injector)return Be.routeConfig._injector;for(let pt=Be.parent;pt;pt=pt.parent){const Ye=pt.routeConfig;if(Ye?._loadedInjector)return Ye._loadedInjector;if(Ye?._injector)return Ye._injector}return null}class Pi{constructor(pt,Ye,ut,Kt,en){this.routeReuseStrategy=pt,this.futureState=Ye,this.currState=ut,this.forwardEvent=Kt,this.inputBindingEnabled=en}activate(pt){const Ye=this.futureState._root,ut=this.currState?this.currState._root:null;this.deactivateChildRoutes(Ye,ut,pt),dl(this.futureState.root),this.activateChildRoutes(Ye,ut,pt)}deactivateChildRoutes(pt,Ye,ut){const Kt=ss(Ye);pt.children.forEach(en=>{const qn=en.value.outlet;this.deactivateRoutes(en,Kt[qn],ut),delete Kt[qn]}),Object.values(Kt).forEach(en=>{this.deactivateRouteAndItsChildren(en,ut)})}deactivateRoutes(pt,Ye,ut){const Kt=pt.value,en=Ye?Ye.value:null;if(Kt===en)if(Kt.component){const qn=ut.getContext(Kt.outlet);qn&&this.deactivateChildRoutes(pt,Ye,qn.children)}else this.deactivateChildRoutes(pt,Ye,ut);else en&&this.deactivateRouteAndItsChildren(Ye,ut)}deactivateRouteAndItsChildren(pt,Ye){pt.value.component&&this.routeReuseStrategy.shouldDetach(pt.value.snapshot)?this.detachAndStoreRouteSubtree(pt,Ye):this.deactivateRouteAndOutlet(pt,Ye)}detachAndStoreRouteSubtree(pt,Ye){const ut=Ye.getContext(pt.value.outlet),Kt=ut&&pt.value.component?ut.children:Ye,en=ss(pt);for(const qn of Object.values(en))this.deactivateRouteAndItsChildren(qn,Kt);if(ut&&ut.outlet){const qn=ut.outlet.detach(),hi=ut.children.onOutletDeactivated();this.routeReuseStrategy.store(pt.value.snapshot,{componentRef:qn,route:pt,contexts:hi})}}deactivateRouteAndOutlet(pt,Ye){const ut=Ye.getContext(pt.value.outlet),Kt=ut&&pt.value.component?ut.children:Ye,en=ss(pt);for(const qn of Object.values(en))this.deactivateRouteAndItsChildren(qn,Kt);ut&&(ut.outlet&&(ut.outlet.deactivate(),ut.children.onOutletDeactivated()),ut.attachRef=null,ut.route=null)}activateChildRoutes(pt,Ye,ut){const Kt=ss(Ye);pt.children.forEach(en=>{this.activateRoutes(en,Kt[en.value.outlet],ut),this.forwardEvent(new wi(en.value.snapshot))}),pt.children.length&&this.forwardEvent(new Wr(pt.value.snapshot))}activateRoutes(pt,Ye,ut){const Kt=pt.value,en=Ye?Ye.value:null;if(dl(Kt),Kt===en)if(Kt.component){const qn=ut.getOrCreateContext(Kt.outlet);this.activateChildRoutes(pt,Ye,qn.children)}else this.activateChildRoutes(pt,Ye,ut);else if(Kt.component){const qn=ut.getOrCreateContext(Kt.outlet);if(this.routeReuseStrategy.shouldAttach(Kt.snapshot)){const hi=this.routeReuseStrategy.retrieve(Kt.snapshot);this.routeReuseStrategy.store(Kt.snapshot,null),qn.children.onOutletReAttached(hi.contexts),qn.attachRef=hi.componentRef,qn.route=hi.route.value,qn.outlet&&qn.outlet.attach(hi.componentRef,hi.route.value),dl(hi.route.value),this.activateChildRoutes(pt,null,qn.children)}else{const hi=cs(Kt.snapshot);qn.attachRef=null,qn.route=Kt,qn.injector=hi,qn.outlet&&qn.outlet.activateWith(Kt,qn.injector),this.activateChildRoutes(pt,null,qn.children)}}else this.activateChildRoutes(pt,null,ut)}}class xo{constructor(pt){this.path=pt,this.route=this.path[this.path.length-1]}}class lr{constructor(pt,Ye){this.component=pt,this.route=Ye}}function Ir(Be,pt,Ye){const ut=Be._root;return as(ut,pt?pt._root:null,Ye,[ut.value])}function ia(Be,pt){const Ye=Symbol(),ut=pt.get(Be,Ye);return ut===Ye?"function"!=typeof Be||(0,e.Z0I)(Be)?pt.get(Be):Be:ut}function as(Be,pt,Ye,ut,Kt={canDeactivateChecks:[],canActivateChecks:[]}){const en=ss(pt);return Be.children.forEach(qn=>{(function Is(Be,pt,Ye,ut,Kt={canDeactivateChecks:[],canActivateChecks:[]}){const en=Be.value,qn=pt?pt.value:null,hi=Ye?Ye.getContext(Be.value.outlet):null;if(qn&&en.routeConfig===qn.routeConfig){const gi=function ba(Be,pt,Ye){if("function"==typeof Ye)return Ye(Be,pt);switch(Ye){case"pathParamsChange":return!sn(Be.url,pt.url);case"pathParamsOrQueryParamsChange":return!sn(Be.url,pt.url)||!Z(Be.queryParams,pt.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ka(Be,pt)||!Z(Be.queryParams,pt.queryParams);default:return!ka(Be,pt)}}(qn,en,en.routeConfig.runGuardsAndResolvers);gi?Kt.canActivateChecks.push(new xo(ut)):(en.data=qn.data,en._resolvedData=qn._resolvedData),as(Be,pt,en.component?hi?hi.children:null:Ye,ut,Kt),gi&&hi&&hi.outlet&&hi.outlet.isActivated&&Kt.canDeactivateChecks.push(new lr(hi.outlet.component,qn))}else qn&&Ss(pt,hi,Kt),Kt.canActivateChecks.push(new xo(ut)),as(Be,null,en.component?hi?hi.children:null:Ye,ut,Kt)})(qn,en[qn.value.outlet],Ye,ut.concat([qn.value]),Kt),delete en[qn.value.outlet]}),Object.entries(en).forEach(([qn,hi])=>Ss(hi,Ye.getContext(qn),Kt)),Kt}function Ss(Be,pt,Ye){const ut=ss(Be),Kt=Be.value;Object.entries(ut).forEach(([en,qn])=>{Ss(qn,Kt.component?pt?pt.children.getContext(en):null:pt,Ye)}),Ye.canDeactivateChecks.push(new lr(Kt.component&&pt&&pt.outlet&&pt.outlet.isActivated?pt.outlet.component:null,Kt))}function Ca(Be){return"function"==typeof Be}function Zi(Be){return Be instanceof p.K||"EmptyError"===Be?.name}const Eo=Symbol("INITIAL_VALUE");function oa(){return(0,G.w)(Be=>(0,t.aj)(Be.map(pt=>pt.pipe((0,B.q)(1),(0,ae.O)(Eo)))).pipe((0,P.U)(pt=>{for(const Ye of pt)if(!0!==Ye){if(Ye===Eo)return Eo;if(!1===Ye||Ye instanceof ct)return Ye}return!0}),(0,J.h)(pt=>pt!==Eo),(0,B.q)(1)))}function os(Be){return(0,x.z)((0,K.b)(pt=>{if(Bt(pt))throw Do(0,pt)}),(0,P.U)(pt=>!0===pt))}class Ps{constructor(pt){this.segmentGroup=pt||null}}class Ba extends Error{constructor(pt){super(),this.urlTree=pt}}function Ka(Be){return(0,u._)(new Ps(Be))}class bc{constructor(pt,Ye){this.urlSerializer=pt,this.urlTree=Ye}lineralizeSegments(pt,Ye){let ut=[],Kt=Ye.root;for(;;){if(ut=ut.concat(Kt.segments),0===Kt.numberOfChildren)return(0,l.of)(ut);if(Kt.numberOfChildren>1||!Kt.children[We])return(0,u._)(new e.vHH(4e3,!1));Kt=Kt.children[We]}}applyRedirectCommands(pt,Ye,ut){const Kt=this.applyRedirectCreateUrlTree(Ye,this.urlSerializer.parse(Ye),pt,ut);if(Ye.startsWith("/"))throw new Ba(Kt);return Kt}applyRedirectCreateUrlTree(pt,Ye,ut,Kt){const en=this.createSegmentGroup(pt,Ye.root,ut,Kt);return new ct(en,this.createQueryParams(Ye.queryParams,this.urlTree.queryParams),Ye.fragment)}createQueryParams(pt,Ye){const ut={};return Object.entries(pt).forEach(([Kt,en])=>{if("string"==typeof en&&en.startsWith(":")){const hi=en.substring(1);ut[Kt]=Ye[hi]}else ut[Kt]=en}),ut}createSegmentGroup(pt,Ye,ut,Kt){const en=this.createSegments(pt,Ye.segments,ut,Kt);let qn={};return Object.entries(Ye.children).forEach(([hi,gi])=>{qn[hi]=this.createSegmentGroup(pt,gi,ut,Kt)}),new tn(en,qn)}createSegments(pt,Ye,ut,Kt){return Ye.map(en=>en.path.startsWith(":")?this.findPosParam(pt,en,Kt):this.findOrReturn(en,ut))}findPosParam(pt,Ye,ut){const Kt=ut[Ye.path.substring(1)];if(!Kt)throw new e.vHH(4001,!1);return Kt}findOrReturn(pt,Ye){let ut=0;for(const Kt of Ye){if(Kt.path===pt.path)return Ye.splice(ut),Kt;ut++}return pt}}const ql={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Gs(Be,pt,Ye,ut,Kt){const en=Dl(Be,pt,Ye);return en.matched?(ut=function Za(Be,pt){return Be.providers&&!Be._injector&&(Be._injector=(0,e.MMx)(Be.providers,pt,`Route: ${Be.path}`)),Be._injector??pt}(pt,ut),function ps(Be,pt,Ye,ut){const Kt=pt.canMatch;if(!Kt||0===Kt.length)return(0,l.of)(!0);const en=Kt.map(qn=>{const hi=ia(qn,Be);return ve(function cn(Be){return Be&&Ca(Be.canMatch)}(hi)?hi.canMatch(pt,Ye):(0,e.r_H)(Be,()=>hi(pt,Ye)))});return(0,l.of)(en).pipe(oa(),os())}(ut,pt,Ye).pipe((0,P.U)(qn=>!0===qn?en:{...ql}))):(0,l.of)(en)}function Dl(Be,pt,Ye){if("**"===pt.path)return function Yr(Be){return{matched:!0,parameters:Be.length>0?ye(Be).parameters:{},consumedSegments:Be,remainingSegments:[],positionalParamSegments:{}}}(Ye);if(""===pt.path)return"full"===pt.pathMatch&&(Be.hasChildren()||Ye.length>0)?{...ql}:{matched:!0,consumedSegments:[],remainingSegments:Ye,parameters:{},positionalParamSegments:{}};const Kt=(pt.matcher||Vt)(Ye,Be,pt);if(!Kt)return{...ql};const en={};Object.entries(Kt.posParams??{}).forEach(([hi,gi])=>{en[hi]=gi.path});const qn=Kt.consumed.length>0?{...en,...Kt.consumed[Kt.consumed.length-1].parameters}:en;return{matched:!0,consumedSegments:Kt.consumed,remainingSegments:Ye.slice(Kt.consumed.length),parameters:qn,positionalParamSegments:Kt.posParams??{}}}function _a(Be,pt,Ye,ut){return Ye.length>0&&function ya(Be,pt,Ye){return Ye.some(ut=>jl(Be,pt,ut)&&Qr(ut)!==We)}(Be,Ye,ut)?{segmentGroup:new tn(pt,rl(ut,new tn(Ye,Be.children))),slicedSegments:[]}:0===Ye.length&&function Pl(Be,pt,Ye){return Ye.some(ut=>jl(Be,pt,ut))}(Be,Ye,ut)?{segmentGroup:new tn(Be.segments,ts(Be,Ye,ut,Be.children)),slicedSegments:Ye}:{segmentGroup:new tn(Be.segments,Be.children),slicedSegments:Ye}}function ts(Be,pt,Ye,ut){const Kt={};for(const en of Ye)if(jl(Be,pt,en)&&!ut[Qr(en)]){const qn=new tn([],{});Kt[Qr(en)]=qn}return{...ut,...Kt}}function rl(Be,pt){const Ye={};Ye[We]=pt;for(const ut of Be)if(""===ut.path&&Qr(ut)!==We){const Kt=new tn([],{});Ye[Qr(ut)]=Kt}return Ye}function jl(Be,pt,Ye){return(!(Be.hasChildren()||pt.length>0)||"full"!==Ye.pathMatch)&&""===Ye.path}class Kr{}class Ta{constructor(pt,Ye,ut,Kt,en,qn,hi){this.injector=pt,this.configLoader=Ye,this.rootComponentType=ut,this.config=Kt,this.urlTree=en,this.paramsInheritanceStrategy=qn,this.urlSerializer=hi,this.applyRedirects=new bc(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(pt){return new e.vHH(4002,`'${pt.segmentGroup}'`)}recognize(){const pt=_a(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(pt).pipe((0,P.U)(Ye=>{const ut=new Vs([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},We,this.rootComponentType,null,{}),Kt=new Ra(ut,Ye),en=new ls("",Kt),qn=function li(Be,pt,Ye=null,ut=null){return oo(si(Be),pt,Ye,ut)}(ut,[],this.urlTree.queryParams,this.urlTree.fragment);return qn.queryParams=this.urlTree.queryParams,en.url=this.urlSerializer.serialize(qn),this.inheritParamsAndData(en._root,null),{state:en,tree:qn}}))}match(pt){return this.processSegmentGroup(this.injector,this.config,pt,We).pipe((0,ne.K)(ut=>{if(ut instanceof Ba)return this.urlTree=ut.urlTree,this.match(ut.urlTree.root);throw ut instanceof Ps?this.noMatchError(ut):ut}))}inheritParamsAndData(pt,Ye){const ut=pt.value,Kt=el(ut,Ye,this.paramsInheritanceStrategy);ut.params=Object.freeze(Kt.params),ut.data=Object.freeze(Kt.data),pt.children.forEach(en=>this.inheritParamsAndData(en,ut))}processSegmentGroup(pt,Ye,ut,Kt){return 0===ut.segments.length&&ut.hasChildren()?this.processChildren(pt,Ye,ut):this.processSegment(pt,Ye,ut,ut.segments,Kt,!0).pipe((0,P.U)(en=>en instanceof Ra?[en]:[]))}processChildren(pt,Ye,ut){const Kt=[];for(const en of Object.keys(ut.children))"primary"===en?Kt.unshift(en):Kt.push(en);return(0,s.D)(Kt).pipe((0,Y.b)(en=>{const qn=ut.children[en],hi=function Aa(Be,pt){const Ye=Be.filter(ut=>Qr(ut)===pt);return Ye.push(...Be.filter(ut=>Qr(ut)!==pt)),Ye}(Ye,en);return this.processSegmentGroup(pt,hi,qn,en)}),(0,ee.R)((en,qn)=>(en.push(...qn),en)),(0,$.d)(null),function at(Be,pt){const Ye=arguments.length>=2;return ut=>ut.pipe(Be?(0,J.h)((Kt,en)=>Be(Kt,en,ut)):Ke.y,(0,ue.h)(1),Ye?(0,$.d)(pt):(0,ge.T)(()=>new p.K))}(),(0,q.zg)(en=>{if(null===en)return Ka(ut);const qn=sl(en);return function ds(Be){Be.sort((pt,Ye)=>pt.value.outlet===We?-1:Ye.value.outlet===We?1:pt.value.outlet.localeCompare(Ye.value.outlet))}(qn),(0,l.of)(qn)}))}processSegment(pt,Ye,ut,Kt,en,qn){return(0,s.D)(Ye).pipe((0,Y.b)(hi=>this.processSegmentAgainstRoute(hi._injector??pt,Ye,hi,ut,Kt,en,qn).pipe((0,ne.K)(gi=>{if(gi instanceof Ps)return(0,l.of)(null);throw gi}))),(0,j.P)(hi=>!!hi),(0,ne.K)(hi=>{if(Zi(hi))return function rc(Be,pt,Ye){return 0===pt.length&&!Be.children[Ye]}(ut,Kt,en)?(0,l.of)(new Kr):Ka(ut);throw hi}))}processSegmentAgainstRoute(pt,Ye,ut,Kt,en,qn,hi){return function Ml(Be,pt,Ye,ut){return!!(Qr(Be)===ut||ut!==We&&jl(pt,Ye,Be))&&Dl(pt,Be,Ye).matched}(ut,Kt,en,qn)?void 0===ut.redirectTo?this.matchSegmentAgainstRoute(pt,Kt,ut,en,qn):this.allowRedirects&&hi?this.expandSegmentAgainstRouteUsingRedirect(pt,Kt,Ye,ut,en,qn):Ka(Kt):Ka(Kt)}expandSegmentAgainstRouteUsingRedirect(pt,Ye,ut,Kt,en,qn){const{matched:hi,consumedSegments:gi,positionalParamSegments:ko,remainingSegments:Wo}=Dl(Ye,Kt,en);if(!hi)return Ka(Ye);Kt.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const tr=this.applyRedirects.applyRedirectCommands(gi,Kt.redirectTo,ko);return this.applyRedirects.lineralizeSegments(Kt,tr).pipe((0,q.zg)(br=>this.processSegment(pt,ut,Ye,br.concat(Wo),qn,!1)))}matchSegmentAgainstRoute(pt,Ye,ut,Kt,en){const qn=Gs(Ye,ut,Kt,pt);return"**"===ut.path&&(Ye.children={}),qn.pipe((0,G.w)(hi=>hi.matched?this.getChildConfig(pt=ut._injector??pt,ut,Kt).pipe((0,G.w)(({routes:gi})=>{const ko=ut._loadedInjector??pt,{consumedSegments:Wo,remainingSegments:tr,parameters:br}=hi,fa=new Vs(Wo,br,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function gr(Be){return Be.data||{}}(ut),Qr(ut),ut.component??ut._loadedComponent??null,ut,function Js(Be){return Be.resolve||{}}(ut)),{segmentGroup:ga,slicedSegments:$r}=_a(Ye,Wo,tr,gi);if(0===$r.length&&ga.hasChildren())return this.processChildren(ko,gi,ga).pipe((0,P.U)(Xr=>null===Xr?null:new Ra(fa,Xr)));if(0===gi.length&&0===$r.length)return(0,l.of)(new Ra(fa,[]));const Rr=Qr(ut)===en;return this.processSegment(ko,gi,ga,$r,Rr?We:en,!0).pipe((0,P.U)(Xr=>new Ra(fa,Xr instanceof Ra?[Xr]:[])))})):Ka(Ye)))}getChildConfig(pt,Ye,ut){return Ye.children?(0,l.of)({routes:Ye.children,injector:pt}):Ye.loadChildren?void 0!==Ye._loadedRoutes?(0,l.of)({routes:Ye._loadedRoutes,injector:Ye._loadedInjector}):function mc(Be,pt,Ye,ut){const Kt=pt.canLoad;if(void 0===Kt||0===Kt.length)return(0,l.of)(!0);const en=Kt.map(qn=>{const hi=ia(qn,Be);return ve(function wa(Be){return Be&&Ca(Be.canLoad)}(hi)?hi.canLoad(pt,Ye):(0,e.r_H)(Be,()=>hi(pt,Ye)))});return(0,l.of)(en).pipe(oa(),os())}(pt,Ye,ut).pipe((0,q.zg)(Kt=>Kt?this.configLoader.loadChildren(pt,Ye).pipe((0,K.b)(en=>{Ye._loadedRoutes=en.routes,Ye._loadedInjector=en.injector})):function js(Be){return(0,u._)($o(!1,Jn.GuardRejected))}())):(0,l.of)({routes:[],injector:pt})}}function bs(Be){const pt=Be.value.routeConfig;return pt&&""===pt.path}function sl(Be){const pt=[],Ye=new Set;for(const ut of Be){if(!bs(ut)){pt.push(ut);continue}const Kt=pt.find(en=>ut.value.routeConfig===en.value.routeConfig);void 0!==Kt?(Kt.children.push(...ut.children),Ye.add(Kt)):pt.push(ut)}for(const ut of Ye){const Kt=sl(ut.children);pt.push(new Ra(ut.value,Kt))}return pt.filter(ut=>!Ye.has(ut))}function yl(Be){const pt=Be.children.map(Ye=>yl(Ye)).flat();return[Be,...pt]}function Cc(Be){return(0,G.w)(pt=>{const Ye=Be(pt);return Ye?(0,s.D)(Ye).pipe((0,P.U)(()=>pt)):(0,l.of)(pt)})}let Zt=(()=>{class Be{buildTitle(Ye){let ut,Kt=Ye.root;for(;void 0!==Kt;)ut=this.getResolvedTitleForRoute(Kt)??ut,Kt=Kt.children.find(en=>en.outlet===We);return ut}getResolvedTitleForRoute(Ye){return Ye.data[et]}static#e=this.\u0275fac=function(ut){return new(ut||Be)};static#t=this.\u0275prov=e.Yz7({token:Be,factory:()=>(0,e.f3M)(ri),providedIn:"root"})}return Be})(),ri=(()=>{class Be extends Zt{constructor(Ye){super(),this.title=Ye}updateTitle(Ye){const ut=this.buildTitle(Ye);void 0!==ut&&this.title.setTitle(ut)}static#e=this.\u0275fac=function(ut){return new(ut||Be)(e.LFG(Ue.Dx))};static#t=this.\u0275prov=e.Yz7({token:Be,factory:Be.\u0275fac,providedIn:"root"})}return Be})();const Mn=new e.OlP("",{providedIn:"root",factory:()=>({})}),mi=new e.OlP("");let Mo=(()=>{class Be{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,e.f3M)(e.Sil)}loadComponent(Ye){if(this.componentLoaders.get(Ye))return this.componentLoaders.get(Ye);if(Ye._loadedComponent)return(0,l.of)(Ye._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(Ye);const ut=ve(Ye.loadComponent()).pipe((0,P.U)(xa),(0,K.b)(en=>{this.onLoadEndListener&&this.onLoadEndListener(Ye),Ye._loadedComponent=en}),(0,R.x)(()=>{this.componentLoaders.delete(Ye)})),Kt=new b.c(ut,()=>new I.xQ).pipe((0,Te.x)());return this.componentLoaders.set(Ye,Kt),Kt}loadChildren(Ye,ut){if(this.childrenLoaders.get(ut))return this.childrenLoaders.get(ut);if(ut._loadedRoutes)return(0,l.of)({routes:ut._loadedRoutes,injector:ut._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(ut);const en=function pr(Be,pt,Ye,ut){return ve(Be.loadChildren()).pipe((0,P.U)(xa),(0,q.zg)(Kt=>Kt instanceof e.YKP||Array.isArray(Kt)?(0,l.of)(Kt):(0,s.D)(pt.compileModuleAsync(Kt))),(0,P.U)(Kt=>{ut&&ut(Be);let en,qn,hi=!1;return Array.isArray(Kt)?(qn=Kt,!0):(en=Kt.create(Ye).injector,qn=en.get(mi,[],{optional:!0,self:!0}).flat()),{routes:qn.map(kr),injector:en}}))}(ut,this.compiler,Ye,this.onLoadEndListener).pipe((0,R.x)(()=>{this.childrenLoaders.delete(ut)})),qn=new b.c(en,()=>new I.xQ).pipe((0,Te.x)());return this.childrenLoaders.set(ut,qn),qn}static#e=this.\u0275fac=function(ut){return new(ut||Be)};static#t=this.\u0275prov=e.Yz7({token:Be,factory:Be.\u0275fac,providedIn:"root"})}return Be})();function xa(Be){return function Pr(Be){return Be&&"object"==typeof Be&&"default"in Be}(Be)?Be.default:Be}let tl=(()=>{class Be{static#e=this.\u0275fac=function(ut){return new(ut||Be)};static#t=this.\u0275prov=e.Yz7({token:Be,factory:()=>(0,e.f3M)(Ls),providedIn:"root"})}return Be})(),Ls=(()=>{class Be{shouldProcessUrl(Ye){return!0}extract(Ye){return Ye}merge(Ye,ut){return Ye}static#e=this.\u0275fac=function(ut){return new(ut||Be)};static#t=this.\u0275prov=e.Yz7({token:Be,factory:Be.\u0275fac,providedIn:"root"})}return Be})();const Ts=new e.OlP(""),_s=new e.OlP("");function ul(Be,pt,Ye){const ut=Be.get(_s),Kt=Be.get(O.K0);return Be.get(e.R0b).runOutsideAngular(()=>{if(!Kt.startViewTransition||ut.skipNextTransition)return ut.skipNextTransition=!1,Promise.resolve();let en;const qn=new Promise(ko=>{en=ko}),hi=Kt.startViewTransition(()=>(en(),function qs(Be){return new Promise(pt=>{(0,e.T8G)(pt,{injector:Be})})}(Be))),{onViewTransitionCreated:gi}=ut;return gi&&(0,e.r_H)(Be,()=>gi({transition:hi,from:pt,to:Ye})),qn})}let Ks=(()=>{class Be{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new I.xQ,this.transitionAbortSubject=new I.xQ,this.configLoader=(0,e.f3M)(Mo),this.environmentInjector=(0,e.f3M)(e.lqb),this.urlSerializer=(0,e.f3M)(vt),this.rootContexts=(0,e.f3M)(ho),this.location=(0,e.f3M)(O.Ye),this.inputBindingEnabled=null!==(0,e.f3M)(Qi,{optional:!0}),this.titleStrategy=(0,e.f3M)(Zt),this.options=(0,e.f3M)(Mn,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,e.f3M)(tl),this.createViewTransition=(0,e.f3M)(Ts,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,l.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=Kt=>this.events.next(new hr(Kt)),this.configLoader.onLoadStartListener=Kt=>this.events.next(new _r(Kt))}complete(){this.transitions?.complete()}handleNavigationRequest(Ye){const ut=++this.navigationId;this.transitions?.next({...this.transitions.value,...Ye,id:ut})}setupNavigations(Ye,ut,Kt){return this.transitions=new i.X({id:0,currentUrlTree:ut,currentRawUrl:ut,extractedUrl:this.urlHandlingStrategy.extract(ut),urlAfterRedirects:this.urlHandlingStrategy.extract(ut),rawUrl:ut,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:kn,restoredState:null,currentSnapshot:Kt.snapshot,targetSnapshot:null,currentRouterState:Kt,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,J.h)(en=>0!==en.id),(0,P.U)(en=>({...en,extractedUrl:this.urlHandlingStrategy.extract(en.rawUrl)})),(0,G.w)(en=>{this.currentTransition=en;let qn=!1,hi=!1;return(0,l.of)(en).pipe((0,K.b)(gi=>{this.currentNavigation={id:gi.id,initialUrl:gi.rawUrl,extractedUrl:gi.extractedUrl,trigger:gi.source,extras:gi.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,G.w)(gi=>{const ko=!Ye.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!ko&&"reload"!==(gi.extras.onSameUrlNavigation??Ye.onSameUrlNavigation)){const tr="";return this.events.next(new $n(gi.id,this.urlSerializer.serialize(gi.rawUrl),tr,Bn.IgnoredSameUrlNavigation)),gi.resolve(null),m.E}if(this.urlHandlingStrategy.shouldProcessUrl(gi.rawUrl))return(0,l.of)(gi).pipe((0,G.w)(tr=>{const br=this.transitions?.getValue();return this.events.next(new Fo(tr.id,this.urlSerializer.serialize(tr.extractedUrl),tr.source,tr.restoredState)),br!==this.transitions?.getValue()?m.E:Promise.resolve(tr)}),function Ms(Be,pt,Ye,ut,Kt,en){return(0,q.zg)(qn=>function la(Be,pt,Ye,ut,Kt,en,qn="emptyOnly"){return new Ta(Be,pt,Ye,ut,Kt,qn,en).recognize()}(Be,pt,Ye,ut,qn.extractedUrl,Kt,en).pipe((0,P.U)(({state:hi,tree:gi})=>({...qn,targetSnapshot:hi,urlAfterRedirects:gi}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,Ye.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,K.b)(tr=>{en.targetSnapshot=tr.targetSnapshot,en.urlAfterRedirects=tr.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:tr.urlAfterRedirects};const br=new Xo(tr.id,this.urlSerializer.serialize(tr.extractedUrl),this.urlSerializer.serialize(tr.urlAfterRedirects),tr.targetSnapshot);this.events.next(br)}));if(ko&&this.urlHandlingStrategy.shouldProcessUrl(gi.currentRawUrl)){const{id:tr,extractedUrl:br,source:fa,restoredState:ga,extras:$r}=gi,Rr=new Fo(tr,this.urlSerializer.serialize(br),fa,ga);this.events.next(Rr);const Xr=Cs(this.rootComponentType).snapshot;return this.currentTransition=en={...gi,targetSnapshot:Xr,urlAfterRedirects:br,extras:{...$r,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=br,(0,l.of)(en)}{const tr="";return this.events.next(new $n(gi.id,this.urlSerializer.serialize(gi.extractedUrl),tr,Bn.IgnoredByUrlHandlingStrategy)),gi.resolve(null),m.E}}),(0,K.b)(gi=>{const ko=new bt(gi.id,this.urlSerializer.serialize(gi.extractedUrl),this.urlSerializer.serialize(gi.urlAfterRedirects),gi.targetSnapshot);this.events.next(ko)}),(0,P.U)(gi=>(this.currentTransition=en={...gi,guards:Ir(gi.targetSnapshot,gi.currentSnapshot,this.rootContexts)},en)),function Nr(Be,pt){return(0,q.zg)(Ye=>{const{targetSnapshot:ut,currentSnapshot:Kt,guards:{canActivateChecks:en,canDeactivateChecks:qn}}=Ye;return 0===qn.length&&0===en.length?(0,l.of)({...Ye,guardsResult:!0}):function Rs(Be,pt,Ye,ut){return(0,s.D)(Be).pipe((0,q.zg)(Kt=>function Ho(Be,pt,Ye,ut,Kt){const en=pt&&pt.routeConfig?pt.routeConfig.canDeactivate:null;if(!en||0===en.length)return(0,l.of)(!0);const qn=en.map(hi=>{const gi=cs(pt)??Kt,ko=ia(hi,gi);return ve(function di(Be){return Be&&Ca(Be.canDeactivate)}(ko)?ko.canDeactivate(Be,pt,Ye,ut):(0,e.r_H)(gi,()=>ko(Be,pt,Ye,ut))).pipe((0,j.P)())});return(0,l.of)(qn).pipe(oa())}(Kt.component,Kt.route,Ye,pt,ut)),(0,j.P)(Kt=>!0!==Kt,!0))}(qn,ut,Kt,Be).pipe((0,q.zg)(hi=>hi&&function Ia(Be){return"boolean"==typeof Be}(hi)?function Zr(Be,pt,Ye,ut){return(0,s.D)(pt).pipe((0,Y.b)(Kt=>(0,c.z)(function ol(Be,pt){return null!==Be&&pt&&pt(new In(Be)),(0,l.of)(!0)}(Kt.route.parent,ut),function Na(Be,pt){return null!==Be&&pt&&pt(new qi(Be)),(0,l.of)(!0)}(Kt.route,ut),function Ql(Be,pt,Ye){const ut=pt[pt.length-1],en=pt.slice(0,pt.length-1).reverse().map(qn=>function Da(Be){const pt=Be.routeConfig?Be.routeConfig.canActivateChild:null;return pt&&0!==pt.length?{node:Be,guards:pt}:null}(qn)).filter(qn=>null!==qn).map(qn=>(0,o.P)(()=>{const hi=qn.guards.map(gi=>{const ko=cs(qn.node)??Ye,Wo=ia(gi,ko);return ve(function zn(Be){return Be&&Ca(Be.canActivateChild)}(Wo)?Wo.canActivateChild(ut,Be):(0,e.r_H)(ko,()=>Wo(ut,Be))).pipe((0,j.P)())});return(0,l.of)(hi).pipe(oa())}));return(0,l.of)(en).pipe(oa())}(Be,Kt.path,Ye),function Cl(Be,pt,Ye){const ut=pt.routeConfig?pt.routeConfig.canActivate:null;if(!ut||0===ut.length)return(0,l.of)(!0);const Kt=ut.map(en=>(0,o.P)(()=>{const qn=cs(pt)??Ye,hi=ia(en,qn);return ve(function Va(Be){return Be&&Ca(Be.canActivate)}(hi)?hi.canActivate(pt,Be):(0,e.r_H)(qn,()=>hi(pt,Be))).pipe((0,j.P)())}));return(0,l.of)(Kt).pipe(oa())}(Be,Kt.route,Ye))),(0,j.P)(Kt=>!0!==Kt,!0))}(ut,en,Be,pt):(0,l.of)(hi)),(0,P.U)(hi=>({...Ye,guardsResult:hi})))})}(this.environmentInjector,gi=>this.events.next(gi)),(0,K.b)(gi=>{if(en.guardsResult=gi.guardsResult,Bt(gi.guardsResult))throw Do(0,gi.guardsResult);const ko=new an(gi.id,this.urlSerializer.serialize(gi.extractedUrl),this.urlSerializer.serialize(gi.urlAfterRedirects),gi.targetSnapshot,!!gi.guardsResult);this.events.next(ko)}),(0,J.h)(gi=>!!gi.guardsResult||(this.cancelNavigationTransition(gi,"",Jn.GuardRejected),!1)),Cc(gi=>{if(gi.guards.canActivateChecks.length)return(0,l.of)(gi).pipe((0,K.b)(ko=>{const Wo=new Wn(ko.id,this.urlSerializer.serialize(ko.extractedUrl),this.urlSerializer.serialize(ko.urlAfterRedirects),ko.targetSnapshot);this.events.next(Wo)}),(0,G.w)(ko=>{let Wo=!1;return(0,l.of)(ko).pipe(function Bs(Be,pt){return(0,q.zg)(Ye=>{const{targetSnapshot:ut,guards:{canActivateChecks:Kt}}=Ye;if(!Kt.length)return(0,l.of)(Ye);const en=new Set(Kt.map(gi=>gi.route)),qn=new Set;for(const gi of en)if(!qn.has(gi))for(const ko of yl(gi))qn.add(ko);let hi=0;return(0,s.D)(qn).pipe((0,Y.b)(gi=>en.has(gi)?function Fr(Be,pt,Ye,ut){const Kt=Be.routeConfig,en=Be._resolve;return void 0!==Kt?.title&&!hs(Kt)&&(en[et]=Kt.title),function nl(Be,pt,Ye,ut){const Kt=Pt(Be);if(0===Kt.length)return(0,l.of)({});const en={};return(0,s.D)(Kt).pipe((0,q.zg)(qn=>function hl(Be,pt,Ye,ut){const Kt=cs(pt)??ut,en=ia(Be,Kt);return ve(en.resolve?en.resolve(pt,Ye):(0,e.r_H)(Kt,()=>en(pt,Ye)))}(Be[qn],pt,Ye,ut).pipe((0,j.P)(),(0,K.b)(hi=>{en[qn]=hi}))),(0,ue.h)(1),(0,Le.h)(en),(0,ne.K)(qn=>Zi(qn)?m.E:(0,u._)(qn)))}(en,Be,pt,ut).pipe((0,P.U)(qn=>(Be._resolvedData=qn,Be.data=el(Be,Be.parent,Ye).resolve,null)))}(gi,ut,Be,pt):(gi.data=el(gi,gi.parent,Be).resolve,(0,l.of)(void 0))),(0,K.b)(()=>hi++),(0,ue.h)(1),(0,q.zg)(gi=>hi===qn.size?(0,l.of)(Ye):m.E))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,K.b)({next:()=>Wo=!0,complete:()=>{Wo||this.cancelNavigationTransition(ko,"",Jn.NoDataFromResolver)}}))}),(0,K.b)(ko=>{const Wo=new eo(ko.id,this.urlSerializer.serialize(ko.extractedUrl),this.urlSerializer.serialize(ko.urlAfterRedirects),ko.targetSnapshot);this.events.next(Wo)}))}),Cc(gi=>{const ko=Wo=>{const tr=[];Wo.routeConfig?.loadComponent&&!Wo.routeConfig._loadedComponent&&tr.push(this.configLoader.loadComponent(Wo.routeConfig).pipe((0,K.b)(br=>{Wo.component=br}),(0,P.U)(()=>{})));for(const br of Wo.children)tr.push(...ko(br));return tr};return(0,t.aj)(ko(gi.targetSnapshot.root)).pipe((0,$.d)(null),(0,B.q)(1))}),Cc(()=>this.afterPreactivation()),(0,G.w)(()=>{const{currentSnapshot:gi,targetSnapshot:ko}=en,Wo=this.createViewTransition?.(this.environmentInjector,gi.root,ko.root);return Wo?(0,s.D)(Wo).pipe((0,P.U)(()=>en)):(0,l.of)(en)}),(0,P.U)(gi=>{const ko=function sr(Be,pt,Ye){const ut=oi(Be,pt._root,Ye?Ye._root:void 0);return new Hs(ut,pt)}(Ye.routeReuseStrategy,gi.targetSnapshot,gi.currentRouterState);return this.currentTransition=en={...gi,targetRouterState:ko},this.currentNavigation.targetRouterState=ko,en}),(0,K.b)(()=>{this.events.next(new xi)}),((Be,pt,Ye,ut)=>(0,P.U)(Kt=>(new Pi(pt,Kt.targetRouterState,Kt.currentRouterState,Ye,ut).activate(Be),Kt)))(this.rootContexts,Ye.routeReuseStrategy,gi=>this.events.next(gi),this.inputBindingEnabled),(0,B.q)(1),(0,K.b)({next:gi=>{qn=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new At(gi.id,this.urlSerializer.serialize(gi.extractedUrl),this.urlSerializer.serialize(gi.urlAfterRedirects))),this.titleStrategy?.updateTitle(gi.targetRouterState.snapshot),gi.resolve(!0)},complete:()=>{qn=!0}}),(0,me.R)(this.transitionAbortSubject.pipe((0,K.b)(gi=>{throw gi}))),(0,R.x)(()=>{!qn&&!hi&&this.cancelNavigationTransition(en,"",Jn.SupersededByNewNavigation),this.currentNavigation?.id===en.id&&(this.currentNavigation=null)}),(0,ne.K)(gi=>{if(hi=!0,Vr(gi))this.events.next(new Bi(en.id,this.urlSerializer.serialize(en.extractedUrl),gi.message,gi.cancellationCode)),function yr(Be){return Vr(Be)&&Bt(Be.url)}(gi)?this.events.next(new ki(gi.url)):en.resolve(!1);else{this.events.next(new Ui(en.id,this.urlSerializer.serialize(en.extractedUrl),gi,en.targetSnapshot??void 0));try{en.resolve(Ye.errorHandler(gi))}catch(ko){this.options.resolveNavigationPromiseOnError?en.resolve(!1):en.reject(ko)}}return m.E}))}))}cancelNavigationTransition(Ye,ut,Kt){const en=new Bi(Ye.id,this.urlSerializer.serialize(Ye.extractedUrl),ut,Kt);this.events.next(en),Ye.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static#e=this.\u0275fac=function(ut){return new(ut||Be)};static#t=this.\u0275prov=e.Yz7({token:Be,factory:Be.\u0275fac,providedIn:"root"})}return Be})();function pl(Be){return Be!==kn}let nc=(()=>{class Be{static#e=this.\u0275fac=function(ut){return new(ut||Be)};static#t=this.\u0275prov=e.Yz7({token:Be,factory:()=>(0,e.f3M)(or),providedIn:"root"})}return Be})();class Mi{shouldDetach(pt){return!1}store(pt,Ye){}shouldAttach(pt){return!1}retrieve(pt){return null}shouldReuseRoute(pt,Ye){return pt.routeConfig===Ye.routeConfig}}let or=(()=>{class Be extends Mi{static#e=this.\u0275fac=(()=>{let Ye;return function(Kt){return(Ye||(Ye=e.n5z(Be)))(Kt||Be)}})();static#t=this.\u0275prov=e.Yz7({token:Be,factory:Be.\u0275fac,providedIn:"root"})}return Be})(),Ki=(()=>{class Be{static#e=this.\u0275fac=function(ut){return new(ut||Be)};static#t=this.\u0275prov=e.Yz7({token:Be,factory:()=>(0,e.f3M)(Ao),providedIn:"root"})}return Be})(),Ao=(()=>{class Be extends Ki{constructor(){super(...arguments),this.location=(0,e.f3M)(O.Ye),this.urlSerializer=(0,e.f3M)(vt),this.options=(0,e.f3M)(Mn,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,e.f3M)(tl),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new ct,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Cs(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(Ye){return this.location.subscribe(ut=>{"popstate"===ut.type&&Ye(ut.url,ut.state)})}handleRouterEvent(Ye,ut){if(Ye instanceof Fo)this.stateMemento=this.createStateMemento();else if(Ye instanceof $n)this.rawUrlTree=ut.initialUrl;else if(Ye instanceof Xo){if("eager"===this.urlUpdateStrategy&&!ut.extras.skipLocationChange){const Kt=this.urlHandlingStrategy.merge(ut.finalUrl,ut.initialUrl);this.setBrowserUrl(Kt,ut)}}else Ye instanceof xi?(this.currentUrlTree=ut.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(ut.finalUrl,ut.initialUrl),this.routerState=ut.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ut.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ut))):Ye instanceof Bi&&(Ye.code===Jn.GuardRejected||Ye.code===Jn.NoDataFromResolver)?this.restoreHistory(ut):Ye instanceof Ui?this.restoreHistory(ut,!0):Ye instanceof At&&(this.lastSuccessfulId=Ye.id,this.currentPageId=this.browserPageId)}setBrowserUrl(Ye,ut){const Kt=this.urlSerializer.serialize(Ye);if(this.location.isCurrentPathEqualTo(Kt)||ut.extras.replaceUrl){const qn={...ut.extras.state,...this.generateNgRouterState(ut.id,this.browserPageId)};this.location.replaceState(Kt,"",qn)}else{const en={...ut.extras.state,...this.generateNgRouterState(ut.id,this.browserPageId+1)};this.location.go(Kt,"",en)}}restoreHistory(Ye,ut=!1){if("computed"===this.canceledNavigationResolution){const en=this.currentPageId-this.browserPageId;0!==en?this.location.historyGo(en):this.currentUrlTree===Ye.finalUrl&&0===en&&(this.resetState(Ye),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(ut&&this.resetState(Ye),this.resetUrlToCurrentUrlTree())}resetState(Ye){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,Ye.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(Ye,ut){return"computed"===this.canceledNavigationResolution?{navigationId:Ye,\u0275routerPageId:ut}:{navigationId:Ye}}static#e=this.\u0275fac=(()=>{let Ye;return function(Kt){return(Ye||(Ye=e.n5z(Be)))(Kt||Be)}})();static#t=this.\u0275prov=e.Yz7({token:Be,factory:Be.\u0275fac,providedIn:"root"})}return Be})();var Go=function(Be){return Be[Be.COMPLETE=0]="COMPLETE",Be[Be.FAILED=1]="FAILED",Be[Be.REDIRECTING=2]="REDIRECTING",Be}(Go||{});function dr(Be,pt){Be.events.pipe((0,J.h)(Ye=>Ye instanceof At||Ye instanceof Bi||Ye instanceof Ui||Ye instanceof $n),(0,P.U)(Ye=>Ye instanceof At||Ye instanceof $n?Go.COMPLETE:Ye instanceof Bi&&(Ye.code===Jn.Redirect||Ye.code===Jn.SupersededByNewNavigation)?Go.REDIRECTING:Go.FAILED),(0,J.h)(Ye=>Ye!==Go.REDIRECTING),(0,B.q)(1)).subscribe(()=>{pt()})}function pn(Be){throw Be}const bo={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},nt={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Sn=(()=>{class Be{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,e.f3M)(e.c2e),this.stateManager=(0,e.f3M)(Ki),this.options=(0,e.f3M)(Mn,{optional:!0})||{},this.pendingTasks=(0,e.f3M)(e.I6F),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,e.f3M)(Ks),this.urlSerializer=(0,e.f3M)(vt),this.location=(0,e.f3M)(O.Ye),this.urlHandlingStrategy=(0,e.f3M)(tl),this._events=new I.xQ,this.errorHandler=this.options.errorHandler||pn,this.navigated=!1,this.routeReuseStrategy=(0,e.f3M)(nc),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,e.f3M)(mi,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,e.f3M)(Qi,{optional:!0}),this.eventsSubscription=new H.w,this.isNgZoneEnabled=(0,e.f3M)(e.R0b)instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:Ye=>{this.console.warn(Ye)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const Ye=this.navigationTransitions.events.subscribe(ut=>{try{const Kt=this.navigationTransitions.currentTransition,en=this.navigationTransitions.currentNavigation;if(null!==Kt&&null!==en)if(this.stateManager.handleRouterEvent(ut,en),ut instanceof Bi&&ut.code!==Jn.Redirect&&ut.code!==Jn.SupersededByNewNavigation)this.navigated=!0;else if(ut instanceof At)this.navigated=!0;else if(ut instanceof ki){const qn=this.urlHandlingStrategy.merge(ut.url,Kt.currentRawUrl),hi={info:Kt.extras.info,skipLocationChange:Kt.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||pl(Kt.source)};this.scheduleNavigation(qn,kn,null,hi,{resolve:Kt.resolve,reject:Kt.reject,promise:Kt.promise})}(function $i(Be){return!(Be instanceof xi||Be instanceof ki)})(ut)&&this._events.next(ut)}catch(Kt){this.navigationTransitions.transitionAbortSubject.next(Kt)}});this.eventsSubscription.add(Ye)}resetRootComponentType(Ye){this.routerState.root.component=Ye,this.navigationTransitions.rootComponentType=Ye}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),kn,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((Ye,ut)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(Ye,"popstate",ut)},0)})}navigateToSyncWithBrowser(Ye,ut,Kt){const en={replaceUrl:!0},qn=Kt?.navigationId?Kt:null;if(Kt){const gi={...Kt};delete gi.navigationId,delete gi.\u0275routerPageId,0!==Object.keys(gi).length&&(en.state=gi)}const hi=this.parseUrl(Ye);this.scheduleNavigation(hi,ut,qn,en)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(Ye){this.config=Ye.map(kr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(Ye,ut={}){const{relativeTo:Kt,queryParams:en,fragment:qn,queryParamsHandling:hi,preserveFragment:gi}=ut,ko=gi?this.currentUrlTree.fragment:qn;let tr,Wo=null;switch(hi){case"merge":Wo={...this.currentUrlTree.queryParams,...en};break;case"preserve":Wo=this.currentUrlTree.queryParams;break;default:Wo=en||null}null!==Wo&&(Wo=this.removeEmptyProps(Wo));try{tr=si(Kt?Kt.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof Ye[0]||!Ye[0].startsWith("/"))&&(Ye=[]),tr=this.currentUrlTree.root}return oo(tr,Ye,Wo,ko??null)}navigateByUrl(Ye,ut={skipLocationChange:!1}){const Kt=Bt(Ye)?Ye:this.parseUrl(Ye),en=this.urlHandlingStrategy.merge(Kt,this.rawUrlTree);return this.scheduleNavigation(en,kn,null,ut)}navigate(Ye,ut={skipLocationChange:!1}){return function fi(Be){for(let pt=0;pt<Be.length;pt++)if(null==Be[pt])throw new e.vHH(4008,!1)}(Ye),this.navigateByUrl(this.createUrlTree(Ye,ut),ut)}serializeUrl(Ye){return this.urlSerializer.serialize(Ye)}parseUrl(Ye){try{return this.urlSerializer.parse(Ye)}catch{return this.urlSerializer.parse("/")}}isActive(Ye,ut){let Kt;if(Kt=!0===ut?{...bo}:!1===ut?{...nt}:ut,Bt(Ye))return Rn(this.currentUrlTree,Ye,Kt);const en=this.parseUrl(Ye);return Rn(this.currentUrlTree,en,Kt)}removeEmptyProps(Ye){return Object.entries(Ye).reduce((ut,[Kt,en])=>(null!=en&&(ut[Kt]=en),ut),{})}scheduleNavigation(Ye,ut,Kt,en,qn){if(this.disposed)return Promise.resolve(!1);let hi,gi,ko;qn?(hi=qn.resolve,gi=qn.reject,ko=qn.promise):ko=new Promise((tr,br)=>{hi=tr,gi=br});const Wo=this.pendingTasks.add();return dr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Wo))}),this.navigationTransitions.handleNavigationRequest({source:ut,restoredState:Kt,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:Ye,extras:en,resolve:hi,reject:gi,promise:ko,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),ko.catch(tr=>Promise.reject(tr))}static#e=this.\u0275fac=function(ut){return new(ut||Be)};static#t=this.\u0275prov=e.Yz7({token:Be,factory:Be.\u0275fac,providedIn:"root"})}return Be})(),No=(()=>{class Be{constructor(Ye,ut,Kt,en,qn,hi){this.router=Ye,this.route=ut,this.tabIndexAttribute=Kt,this.renderer=en,this.el=qn,this.locationStrategy=hi,this.href=null,this.commands=null,this.onChanges=new I.xQ,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const gi=qn.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===gi||"area"===gi,this.isAnchorElement?this.subscription=Ye.events.subscribe(ko=>{ko instanceof At&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(Ye){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",Ye)}ngOnChanges(Ye){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(Ye){null!=Ye?(this.commands=Array.isArray(Ye)?Ye:[Ye],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(Ye,ut,Kt,en,qn){const hi=this.urlTree;return!!(null===hi||this.isAnchorElement&&(0!==Ye||ut||Kt||en||qn||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(hi,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const Ye=this.urlTree;this.href=null!==Ye&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(Ye)):null;const ut=null===this.href?null:(0,e.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",ut)}applyAttributeValue(Ye,ut){const Kt=this.renderer,en=this.el.nativeElement;null!==ut?Kt.setAttribute(en,Ye,ut):Kt.removeAttribute(en,Ye)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(ut){return new(ut||Be)(e.Y36(Sn),e.Y36(ja),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(O.S$))};static#t=this.\u0275dir=e.lG2({type:Be,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(ut,Kt){1&ut&&e.NdJ("click",function(qn){return Kt.onClick(qn.button,qn.ctrlKey,qn.shiftKey,qn.altKey,qn.metaKey)}),2&ut&&e.uIk("target",Kt.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[e.lbL.HasDecoratorInputTransform,"preserveFragment","preserveFragment",e.VuI],skipLocationChange:[e.lbL.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",e.VuI],replaceUrl:[e.lbL.HasDecoratorInputTransform,"replaceUrl","replaceUrl",e.VuI],routerLink:"routerLink"},standalone:!0,features:[e.Xq5,e.TTD]})}return Be})(),Ar=(()=>{class Be{get isActive(){return this._isActive}constructor(Ye,ut,Kt,en,qn){this.router=Ye,this.element=ut,this.renderer=Kt,this.cdr=en,this.link=qn,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new e.vpe,this.routerEventsSubscription=Ye.events.subscribe(hi=>{hi instanceof At&&this.update()})}ngAfterContentInit(){(0,l.of)(this.links.changes,(0,l.of)(null)).pipe((0,Se.J)()).subscribe(Ye=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const Ye=[...this.links.toArray(),this.link].filter(ut=>!!ut).map(ut=>ut.onChanges);this.linkInputChangesSubscription=(0,s.D)(Ye).pipe((0,Se.J)()).subscribe(ut=>{this._isActive!==this.isLinkActive(this.router)(ut)&&this.update()})}set routerLinkActive(Ye){const ut=Array.isArray(Ye)?Ye:Ye.split(" ");this.classes=ut.filter(Kt=>!!Kt)}ngOnChanges(Ye){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const Ye=this.hasActiveLinks();this._isActive!==Ye&&(this._isActive=Ye,this.cdr.markForCheck(),this.classes.forEach(ut=>{Ye?this.renderer.addClass(this.element.nativeElement,ut):this.renderer.removeClass(this.element.nativeElement,ut)}),Ye&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(Ye))})}isLinkActive(Ye){const ut=function xr(Be){return!!Be.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return Kt=>{const en=Kt.urlTree;return!!en&&Ye.isActive(en,ut)}}hasActiveLinks(){const Ye=this.isLinkActive(this.router);return this.link&&Ye(this.link)||this.links.some(Ye)}static#e=this.\u0275fac=function(ut){return new(ut||Be)(e.Y36(Sn),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(No,8))};static#t=this.\u0275dir=e.lG2({type:Be,selectors:[["","routerLinkActive",""]],contentQueries:function(ut,Kt,en){if(1&ut&&e.Suo(en,No,5),2&ut){let qn;e.iGM(qn=e.CRH())&&(Kt.links=qn)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[e.TTD]})}return Be})();class Sr{}let Fs=(()=>{class Be{constructor(Ye,ut,Kt,en,qn){this.router=Ye,this.injector=Kt,this.preloadingStrategy=en,this.loader=qn}setUpPreloading(){this.subscription=this.router.events.pipe((0,J.h)(Ye=>Ye instanceof At),(0,Y.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(Ye,ut){const Kt=[];for(const en of ut){en.providers&&!en._injector&&(en._injector=(0,e.MMx)(en.providers,Ye,`Route: ${en.path}`));const qn=en._injector??Ye,hi=en._loadedInjector??qn;(en.loadChildren&&!en._loadedRoutes&&void 0===en.canLoad||en.loadComponent&&!en._loadedComponent)&&Kt.push(this.preloadConfig(qn,en)),(en.children||en._loadedRoutes)&&Kt.push(this.processRoutes(hi,en.children??en._loadedRoutes))}return(0,s.D)(Kt).pipe((0,Se.J)())}preloadConfig(Ye,ut){return this.preloadingStrategy.preload(ut,()=>{let Kt;Kt=ut.loadChildren&&void 0===ut.canLoad?this.loader.loadChildren(Ye,ut):(0,l.of)(null);const en=Kt.pipe((0,q.zg)(qn=>null===qn?(0,l.of)(void 0):(ut._loadedRoutes=qn.routes,ut._loadedInjector=qn.injector,this.processRoutes(qn.injector??Ye,qn.routes))));if(ut.loadComponent&&!ut._loadedComponent){const qn=this.loader.loadComponent(ut);return(0,s.D)([en,qn]).pipe((0,Se.J)())}return en})}static#e=this.\u0275fac=function(ut){return new(ut||Be)(e.LFG(Sn),e.LFG(e.Sil),e.LFG(e.lqb),e.LFG(Sr),e.LFG(Mo))};static#t=this.\u0275prov=e.Yz7({token:Be,factory:Be.\u0275fac,providedIn:"root"})}return Be})();const il=new e.OlP("");let ac=(()=>{class Be{constructor(Ye,ut,Kt,en,qn={}){this.urlSerializer=Ye,this.transitions=ut,this.viewportScroller=Kt,this.zone=en,this.options=qn,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},qn.scrollPositionRestoration||="disabled",qn.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(Ye=>{Ye instanceof Fo?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=Ye.navigationTrigger,this.restoredId=Ye.restoredState?Ye.restoredState.navigationId:0):Ye instanceof At?(this.lastId=Ye.id,this.scheduleScrollEvent(Ye,this.urlSerializer.parse(Ye.urlAfterRedirects).fragment)):Ye instanceof $n&&Ye.code===Bn.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(Ye,this.urlSerializer.parse(Ye.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(Ye=>{Ye instanceof zo&&(Ye.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(Ye.position):Ye.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(Ye.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(Ye,ut){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new zo(Ye,"popstate"===this.lastSource?this.store[this.restoredId]:null,ut))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(ut){e.$Z()};static#t=this.\u0275prov=e.Yz7({token:Be,factory:Be.\u0275fac})}return Be})();function Kl(Be,pt){return{\u0275kind:Be,\u0275providers:pt}}function Dd(){const Be=(0,e.f3M)(e.zs3);return pt=>{const Ye=Be.get(e.z2F);if(pt!==Ye.components[0])return;const ut=Be.get(Sn),Kt=Be.get(_c);1===Be.get(wc)&&ut.initialNavigation(),Be.get(Uc,null,e.XFs.Optional)?.setUpPreloading(),Be.get(il,null,e.XFs.Optional)?.init(),ut.resetRootComponentType(Ye.componentTypes[0]),Kt.closed||(Kt.next(),Kt.complete(),Kt.unsubscribe())}}const _c=new e.OlP("",{factory:()=>new I.xQ}),wc=new e.OlP("",{providedIn:"root",factory:()=>1}),Uc=new e.OlP("");function dn(Be){return Kl(0,[{provide:Uc,useExisting:Fs},{provide:Sr,useExisting:Be}])}function Io(Be){return Kl(9,[{provide:Ts,useValue:ul},{provide:_s,useValue:{skipNextTransition:!!Be?.skipInitialTransition,...Be}}])}const ra=new e.OlP("ROUTER_FORROOT_GUARD"),$a=[O.Ye,{provide:vt,useClass:nn},Sn,ho,{provide:ja,useFactory:function em(Be){return Be.routerState.root},deps:[Sn]},Mo,[]];let xe=(()=>{class Be{constructor(Ye){}static forRoot(Ye,ut){return{ngModule:Be,providers:[$a,[],{provide:mi,multi:!0,useValue:Ye},{provide:ra,useFactory:de,deps:[[Sn,new e.FiY,new e.tp0]]},{provide:Mn,useValue:ut||{}},ut?.useHash?{provide:O.S$,useClass:O.Do}:{provide:O.S$,useClass:O.b0},{provide:il,useFactory:()=>{const Be=(0,e.f3M)(O.EM),pt=(0,e.f3M)(e.R0b),Ye=(0,e.f3M)(Mn),ut=(0,e.f3M)(Ks),Kt=(0,e.f3M)(vt);return Ye.scrollOffset&&Be.setOffset(Ye.scrollOffset),new ac(Kt,ut,Be,pt,Ye)}},ut?.preloadingStrategy?dn(ut.preloadingStrategy).\u0275providers:[],ut?.initialNavigation?Ae(ut):[],ut?.bindToComponentInputs?Kl(8,[To,{provide:Qi,useExisting:To}]).\u0275providers:[],ut?.enableViewTransitions?Io().\u0275providers:[],[{provide:Ct,useFactory:Dd},{provide:e.tb,multi:!0,useExisting:Ct}]]}}static forChild(Ye){return{ngModule:Be,providers:[{provide:mi,multi:!0,useValue:Ye}]}}static#e=this.\u0275fac=function(ut){return new(ut||Be)(e.LFG(ra,8))};static#t=this.\u0275mod=e.oAB({type:Be});static#n=this.\u0275inj=e.cJS({})}return Be})();function de(Be){return"guarded"}function Ae(Be){return["disabled"===Be.initialNavigation?Kl(3,[{provide:e.ip1,multi:!0,useFactory:()=>{const pt=(0,e.f3M)(Sn);return()=>{pt.setUpLocationChangeListener()}}},{provide:wc,useValue:2}]).\u0275providers:[],"enabledBlocking"===Be.initialNavigation?Kl(2,[{provide:wc,useValue:0},{provide:e.ip1,multi:!0,deps:[e.zs3],useFactory:pt=>{const Ye=pt.get(O.V_,Promise.resolve());return()=>Ye.then(()=>new Promise(ut=>{const Kt=pt.get(Sn),en=pt.get(_c);dr(Kt,()=>{ut(!0)}),pt.get(Ks).afterPreactivation=()=>(ut(!0),en.closed?(0,l.of)(void 0):en),Kt.initialNavigation()}))}}]).\u0275providers:[]]}const Ct=new e.OlP("")},68727:(gt,X,a)=>{"use strict";a.d(X,{Wr:()=>R,yO:()=>ne});var e=a(19212),n=a(96814),s=a(24917),l=a(16222),i=a(49016),t=a(49193),p=a(93990),c=a(72079),o=a(54699),x=a(29918);const u=new o.y(x.Z);var b=a(47354),I=a(96124),H=a(97734),O=a(75222),P=a(38370),B=a(51418),ae=a(17927),J=a(29384);const q="Service workers are disabled or not supported by this browser";class Y{constructor(me){if(this.serviceWorker=me,me){const Ue=(0,i.R)(me,"controllerchange").pipe((0,I.U)(()=>me.controller)),We=(0,s.P)(()=>(0,t.of)(me.controller)),et=(0,p.z)(We,Ue);this.worker=et.pipe((0,H.h)(Z=>!!Z)),this.registration=this.worker.pipe((0,O.w)(()=>me.getRegistration()));const r=(0,i.R)(me,"message").pipe((0,I.U)(Z=>Z.data)).pipe((0,H.h)(Z=>Z&&Z.type)).pipe(function G(Te){return Te?(0,P.O)(()=>new c.xQ,Te):(0,P.O)(new c.xQ)}());r.connect(),this.events=r}else this.worker=this.events=this.registration=function j(Te){return(0,s.P)(()=>(0,l._)(new Error(Te)))}(q)}postMessage(me,Se){return this.worker.pipe((0,B.q)(1),(0,ae.b)(Ue=>{Ue.postMessage({action:me,...Se})})).toPromise().then(()=>{})}postMessageWithOperation(me,Se,Ue){const We=this.waitForOperationCompleted(Ue),et=this.postMessage(me,Se);return Promise.all([et,We]).then(([,Et])=>Et)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(me){let Se;return Se="string"==typeof me?Ue=>Ue.type===me:Ue=>me.includes(Ue.type),this.events.pipe((0,H.h)(Se))}nextEventOfType(me){return this.eventsOfType(me).pipe((0,B.q)(1))}waitForOperationCompleted(me){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,H.h)(Se=>Se.nonce===me),(0,B.q)(1),(0,I.U)(Se=>{if(void 0!==Se.result)return Se.result;throw new Error(Se.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let K=(()=>{class Te{get isEnabled(){return this.sw.isEnabled}constructor(Se){if(this.sw=Se,this.pushManager=null,this.subscriptionChanges=new c.xQ,!Se.isEnabled)return this.messages=u,this.notificationClicks=u,void(this.subscription=u);this.messages=this.sw.eventsOfType("PUSH").pipe((0,I.U)(We=>We.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,I.U)(We=>We.data)),this.pushManager=this.sw.registration.pipe((0,I.U)(We=>We.pushManager));const Ue=this.pushManager.pipe((0,O.w)(We=>We.getSubscription()));this.subscription=(0,b.T)(Ue,this.subscriptionChanges)}requestSubscription(Se){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(q));const Ue={userVisibleOnly:!0};let We=this.decodeBase64(Se.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),et=new Uint8Array(new ArrayBuffer(We.length));for(let Et=0;Et<We.length;Et++)et[Et]=We.charCodeAt(Et);return Ue.applicationServerKey=et,this.pushManager.pipe((0,O.w)(Et=>Et.subscribe(Ue)),(0,B.q)(1)).toPromise().then(Et=>(this.subscriptionChanges.next(Et),Et))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,B.q)(1),(0,O.w)(Ue=>{if(null===Ue)throw new Error("Not subscribed to push notifications.");return Ue.unsubscribe().then(We=>{if(!We)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(q))}decodeBase64(Se){return atob(Se)}static#e=this.\u0275fac=function(Ue){return new(Ue||Te)(e.LFG(Y))};static#t=this.\u0275prov=e.Yz7({token:Te,factory:Te.\u0275fac})}return Te})(),ne=(()=>{class Te{get isEnabled(){return this.sw.isEnabled}constructor(Se){if(this.sw=Se,!Se.isEnabled)return this.versionUpdates=u,void(this.unrecoverable=u);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(q));const Se=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:Se},Se)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(q));const Se=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:Se},Se)}static#e=this.\u0275fac=function(Ue){return new(Ue||Te)(e.LFG(Y))};static#t=this.\u0275prov=e.Yz7({token:Te,factory:Te.\u0275fac})}return Te})();const ee=new e.OlP("");function $(Te,me,Se,Ue){return()=>{if(!(0,n.NF)(Ue)||!("serviceWorker"in navigator)||!1===Se.enabled)return;let We;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof Se.registrationStrategy)We=Se.registrationStrategy();else{const[Et,...lt]=(Se.registrationStrategy||"registerWhenStable:30000").split(":");switch(Et){case"registerImmediately":We=(0,t.of)(null);break;case"registerWithDelay":We=ue(+lt[0]||0);break;case"registerWhenStable":We=lt[0]?(0,b.T)(ge(Te),ue(+lt[0])):ge(Te);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${Se.registrationStrategy}`)}}Te.get(e.R0b).runOutsideAngular(()=>We.pipe((0,B.q)(1)).subscribe(()=>navigator.serviceWorker.register(me,{scope:Se.scope}).catch(Et=>console.error("Service worker registration failed with:",Et))))}}function ue(Te){return(0,t.of)(null).pipe((0,J.g)(Te))}function ge(Te){return Te.get(e.z2F).isStable.pipe((0,H.h)(Se=>Se))}function Ke(Te,me){return new Y((0,n.NF)(me)&&!1!==Te.enabled?navigator.serviceWorker:void 0)}class at{}function Le(Te,me={}){return(0,e.MR2)([K,ne,{provide:ee,useValue:Te},{provide:at,useValue:me},{provide:Y,useFactory:Ke,deps:[at,e.Lbi]},{provide:e.ip1,useFactory:$,deps:[e.zs3,ee,at,e.Lbi],multi:!0}])}let R=(()=>{class Te{static register(Se,Ue={}){return{ngModule:Te,providers:[Le(Se,Ue)]}}static#e=this.\u0275fac=function(Ue){return new(Ue||Te)};static#t=this.\u0275mod=e.oAB({type:Te});static#n=this.\u0275inj=e.cJS({providers:[K,ne]})}return Te})()},8386:(gt,X,a)=>{"use strict";a.d(X,{ZM:()=>p,ki:()=>c});var e=a(19212),n=a(82102),s=a(96814);class i{constructor(x,u,m,b){this.imageProxyBase=x,this.signingKey=u,this.signingSalt=m,this.urlPrefixForLocalAssets=b}buildImgProxyUrl(x,u,m,b,I){const H=new n.ImgProxyUrlBuilder(this.prefixSourceIfNeeded(x),{baseUrl:this.imageProxyBase,key:this.signingKey,salt:this.signingSalt});let O,P;return[O,P]=u.split("x").map(G=>parseInt(G,10)),0==O&&(O=void 0),0==P&&(P=void 0),H.resize({width:O,height:P}),m&&m>=0&&m<=1&&b&&b>=0&&b<=1&&H.gravity({type:"fp",x_offset:m,y_offset:b}),I&&I.length>0&&H.buster(I),H.build()}prefixSourceIfNeeded(x){return!this.urlPrefixForLocalAssets||x.startsWith("http:")||x.startsWith("https:")?x:this.urlPrefixForLocalAssets+x}}let p=(()=>{class o{constructor(u){this.imageProxy=u}transform(u,m,b,I,H){return this.imageProxy.buildImgProxyUrl(u,m,b,I,H)}}return o.\u0275fac=function(u){return new(u||o)(e.Y36(i,16))},o.\u0275pipe=e.Yjl({name:"imgprx",type:o,pure:!0}),o})(),c=(()=>{class o{static forRoot(u){return{ngModule:o,providers:[{provide:i,useFactory:()=>new i(u.baseUrl,u.signingKey,u.signingSalt,u.urlPrefixForLocalAssets)}]}}}return o.\u0275fac=function(u){return new(u||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[s.ez]]}),o})()},75339:(gt,X,a)=>{"use strict";a.d(X,{j3:()=>Z,kJ:()=>p,ws:()=>J});var e=a(96814),n=a(19212);function s(Pt,Oe){if(null==Pt)throw new Error("Unexpected "+Pt+" value: "+Oe);return Pt}const t=new n.OlP("MATOMO_CONFIGURATION"),p=new n.OlP("INTERNAL_MATOMO_CONFIGURATION",{factory:()=>({disabled:!1,enableLinkTracking:!0,trackAppInitialLoad:!1,requireConsent:o.NONE,enableJSErrorTracking:!1,runOutsideAngularZone:!1,...s((0,n.f3M)(t,{optional:!0}),"No Matomo configuration found! Have you included Matomo module using NgxMatomoTrackerModule.forRoot() ?")})});var c=function(Pt){return Pt[Pt.AUTO=0]="AUTO",Pt[Pt.MANUAL=1]="MANUAL",Pt[Pt.AUTO_DEFERRED=2]="AUTO_DEFERRED",Pt}(c||{}),o=function(Pt){return Pt[Pt.NONE=0]="NONE",Pt[Pt.COOKIE=1]="COOKIE",Pt[Pt.TRACKING=2]="TRACKING",Pt}(o||{});function u(Pt){return null!=Pt.siteId&&null!=Pt.trackerUrl}function I(Pt){return Array.isArray(Pt.trackers)}function O(){window._paq=window._paq||[]}function P(Pt){const Oe=[...Pt];for(;Oe.length>0&&void 0===Oe[Oe.length-1];)Oe.pop();return Oe}let J=(()=>{class Pt{trackPageView(ye){this.push(["trackPageView",ye])}trackEvent(ye,ve,ft,Dt){this.push(["trackEvent",ye,ve,ft,Dt])}trackSiteSearch(ye,ve,ft){this.push(["trackSiteSearch",ye,ve,ft])}trackGoal(ye,ve){this.push(["trackGoal",ye,ve])}trackLink(ye,ve){this.push(["trackLink",ye,ve])}trackAllContentImpressions(){this.push(["trackAllContentImpressions"])}trackVisibleContentImpressions(ye,ve){this.push(["trackVisibleContentImpressions",ye,ve])}trackContentImpressionsWithinNode(ye){this.push(["trackContentImpressionsWithinNode",ye])}trackContentInteractionNode(ye,ve){this.push(["trackContentInteractionNode",ye,ve])}trackContentImpression(ye,ve,ft){this.push(["trackContentImpression",ye,ve,ft])}trackContentInteraction(ye,ve,ft,Dt){this.push(["trackContentInteraction",ye,ve,ft,Dt])}logAllContentBlocksOnPage(){this.push(["logAllContentBlocksOnPage"])}ping(){this.push(["ping"])}enableHeartBeatTimer(ye){this.push(["enableHeartBeatTimer",ye])}enableLinkTracking(ye=!1){this.push(["enableLinkTracking",ye])}disablePerformanceTracking(){this.push(["disablePerformanceTracking"])}enableCrossDomainLinking(){this.push(["enableCrossDomainLinking"])}setCrossDomainLinkingTimeout(ye){this.push(["setCrossDomainLinkingTimeout",ye])}getCrossDomainLinkingUrlParameter(){return this.get("getCrossDomainLinkingUrlParameter")}setDocumentTitle(ye){this.push(["setDocumentTitle",ye])}setDomains(ye){this.push(["setDomains",ye])}setCustomUrl(ye){this.push(["setCustomUrl",ye])}setReferrerUrl(ye){this.push(["setReferrerUrl",ye])}setSiteId(ye){this.push(["setSiteId",ye])}setApiUrl(ye){this.push(["setApiUrl",ye])}setTrackerUrl(ye){this.push(["setTrackerUrl",ye])}addTracker(ye,ve){this.push(["addTracker",ye,ve])}getMatomoUrl(){return this.get("getMatomoUrl")}getCurrentUrl(){return this.get("getCurrentUrl")}setDownloadClasses(ye){this.push(["setDownloadClasses",ye])}setDownloadExtensions(ye){this.push(["setDownloadExtensions",ye])}addDownloadExtensions(ye){this.push(["addDownloadExtensions",ye])}removeDownloadExtensions(ye){this.push(["removeDownloadExtensions",ye])}setIgnoreClasses(ye){this.push(["setIgnoreClasses",ye])}setLinkClasses(ye){this.push(["setLinkClasses",ye])}setLinkTrackingTimer(ye){this.push(["setLinkTrackingTimer",ye])}getLinkTrackingTimer(){return this.get("getLinkTrackingTimer")}discardHashTag(ye){this.push(["discardHashTag",ye])}setGenerationTimeMs(ye){this.push(["setGenerationTimeMs",ye])}setPagePerformanceTiming(ye,ve,ft,Dt,Rn,ti){let Xt;"object"==typeof ye&&ye?(Xt=ye.networkTimeInMs,ve=ye.serverTimeInMs,ft=ye.transferTimeInMs,Dt=ye.domProcessingTimeInMs,Rn=ye.domCompletionTimeInMs,ti=ye.onloadTimeInMs):Xt=ye,this.push(["setPagePerformanceTiming",Xt,ve,ft,Dt,Rn,ti])}getCustomPagePerformanceTiming(){return this.get("getCustomPagePerformanceTiming")}appendToTrackingUrl(ye){this.push(["appendToTrackingUrl",ye])}setDoNotTrack(ye){this.push(["setDoNotTrack",ye])}killFrame(){this.push(["killFrame"])}redirectFile(ye){this.push(["redirectFile",ye])}setHeartBeatTimer(ye,ve){this.push(["setHeartBeatTimer",ye,ve])}getVisitorId(){return this.get("getVisitorId")}setVisitorId(ye){this.push(["setVisitorId",ye])}getVisitorInfo(){return this.get("getVisitorInfo")}getAttributionInfo(){return this.get("getAttributionInfo")}getAttributionCampaignName(){return this.get("getAttributionCampaignName")}getAttributionCampaignKeyword(){return this.get("getAttributionCampaignKeyword")}getAttributionReferrerTimestamp(){return this.get("getAttributionReferrerTimestamp")}getAttributionReferrerUrl(){return this.get("getAttributionReferrerUrl")}getUserId(){return this.get("getUserId")}setUserId(ye){this.push(["setUserId",ye])}resetUserId(){this.push(["resetUserId"])}setCustomVariable(ye,ve,ft,Dt){this.push(["setCustomVariable",ye,ve,ft,Dt])}deleteCustomVariable(ye,ve){this.push(["deleteCustomVariable",ye,ve])}deleteCustomVariables(ye){this.push(["deleteCustomVariables",ye])}getCustomVariable(ye,ve){return this.pushFn(ft=>ft.getCustomVariable(ye,ve))}storeCustomVariablesInCookie(){this.push(["storeCustomVariablesInCookie"])}setCustomDimension(ye,ve){this.push(["setCustomDimension",ye,ve])}deleteCustomDimension(ye){this.push(["deleteCustomDimension",ye])}getCustomDimension(ye){return this.pushFn(ve=>ve.getCustomDimension(ye))}setCampaignNameKey(ye){this.push(["setCampaignNameKey",ye])}setCampaignKeywordKey(ye){this.push(["setCampaignKeywordKey",ye])}setConversionAttributionFirstReferrer(ye){this.push(["setConversionAttributionFirstReferrer",ye])}setEcommerceView(ye,ve,ft,Dt){!function G(Pt){return"object"==typeof Pt&&1===Object.keys(Pt).length&&null!=Pt.productCategory}(ye)?function B(Pt){return"object"==typeof Pt&&"productSKU"in Pt}(ye)?this.push(["setEcommerceView",ye.productSKU,ye.productName,ye.productCategory,ye.price]):this.push(["setEcommerceView",ye,ve,ft,Dt]):this.push(["setEcommerceView",!1,!1,ye.productCategory])}addEcommerceItem(ye,ve,ft,Dt,Rn){this.push("string"==typeof ye?["addEcommerceItem",ye,ve,ft,Dt,Rn]:["addEcommerceItem",ye.productSKU,ye.productName,ye.productCategory,ye.price,ye.quantity])}removeEcommerceItem(ye){this.push(["removeEcommerceItem",ye])}clearEcommerceCart(){this.push(["clearEcommerceCart"])}getEcommerceItems(){return this.get("getEcommerceItems")}trackEcommerceCartUpdate(ye){this.push(["trackEcommerceCartUpdate",ye])}trackEcommerceOrder(ye,ve,ft,Dt,Rn,ti){this.push(["trackEcommerceOrder",ye,ve,ft,Dt,Rn,ti])}requireConsent(){this.push(["requireConsent"])}setConsentGiven(){this.push(["setConsentGiven"])}rememberConsentGiven(ye){this.push(["rememberConsentGiven",ye])}forgetConsentGiven(){this.push(["forgetConsentGiven"])}hasRememberedConsent(){return this.get("hasRememberedConsent")}getRememberedConsent(){return this.get("getRememberedConsent")}isConsentRequired(){return this.get("isConsentRequired")}requireCookieConsent(){this.push(["requireCookieConsent"])}setCookieConsentGiven(){this.push(["setCookieConsentGiven"])}rememberCookieConsentGiven(ye){this.push(["rememberCookieConsentGiven",ye])}forgetCookieConsentGiven(){this.push(["forgetCookieConsentGiven"])}areCookiesEnabled(){return this.get("areCookiesEnabled")}optUserOut(){this.push(["optUserOut"])}forgetUserOptOut(){this.push(["forgetUserOptOut"])}isUserOptedOut(){return this.get("isUserOptedOut")}disableCookies(){this.push(["disableCookies"])}deleteCookies(){this.push(["deleteCookies"])}hasCookies(){return this.get("hasCookies")}setCookieNamePrefix(ye){this.push(["setCookieNamePrefix",ye])}setCookieDomain(ye){this.push(["setCookieDomain",ye])}setCookiePath(ye){this.push(["setCookiePath",ye])}setSecureCookie(ye){this.push(["setSecureCookie",ye])}setCookieSameSite(ye){this.push(["setCookieSameSite",ye])}setVisitorCookieTimeout(ye){this.push(["setVisitorCookieTimeout",ye])}setReferralCookieTimeout(ye){this.push(["setReferralCookieTimeout",ye])}setSessionCookieTimeout(ye){this.push(["setSessionCookieTimeout",ye])}addListener(ye){this.push(["addListener",ye])}setRequestMethod(ye){this.push(["setRequestMethod",ye])}setCustomRequestProcessing(ye){this.push(["setCustomRequestProcessing",ye])}setRequestContentType(ye){this.push(["setRequestContentType",ye])}disableQueueRequest(){this.push(["disableQueueRequest"])}setRequestQueueInterval(ye){this.push(["setRequestQueueInterval",ye])}disableAlwaysUseSendBeacon(){this.push(["disableAlwaysUseSendBeacon"])}alwaysUseSendBeacon(){this.push(["alwaysUseSendBeacon"])}enableJSErrorTracking(){this.push(["enableJSErrorTracking"])}enableFileTracking(){this.push(["enableFileTracking"])}get(ye){return this.pushFn(ve=>ve[ye]())}}return Pt.\u0275fac=function(ye){return new(ye||Pt)},Pt.\u0275prov=n.Yz7({token:Pt,factory:function(ye){let ve=null;return ve=ye?new ye:function ae(Pt,Oe,ye){return Pt.disabled||!(0,e.NF)(Oe)?new j:new q(ye,Pt)}(n.LFG(p),n.LFG(n.Lbi),n.LFG(n.R0b)),ve},providedIn:"root"}),Pt})();class q extends J{constructor(Oe,ye){super(),this.ngZone=Oe,this.config=ye,O()}pushFn(Oe){return new Promise(ye=>{this.push([function(){ye(Oe(this))}])})}push(Oe){this.config.runOutsideAngularZone?this.ngZone.runOutsideAngular(()=>{window._paq.push(P(Oe))}):window._paq.push(P(Oe))}}class j extends J{push(Oe){}pushFn(Oe){return Promise.reject("MatomoTracker is disabled")}}const Le=(Pt,Oe)=>{const ye=Oe.createElement("script");return ye.type="text/javascript",ye.defer=!0,ye.async=!0,ye.src=Pt,ye},R=new n.OlP("MATOMO_SCRIPT_FACTORY",{providedIn:"root",factory:()=>Le});function Se(Pt){return`${Pt}`}function Ue(Pt){return Pt.endsWith("/")?Pt:`${Pt}/`}function We(Pt,Oe){return null==Oe?Ue(Pt)+et:Pt+Oe}const et="matomo.php";class Vt{initialize(){}initializeTracker(Oe){}}let r=(()=>{class Pt{constructor(ye,ve,ft,Dt){this.config=ye,this.tracker=ve,this.scriptFactory=ft,this.document=Dt,this.initialized=!1,this.injected=!1,O()}init(){this.initialize()}initialize(){if(this.initialized)throw new Error("Matomo has already been initialized");this.runPreInitTasks(),function x(Pt){return null==Pt.mode||Pt.mode===c.AUTO}(this.config)&&this.injectMatomoScript(this.config),this.initialized=!0}initializeTracker(ye){this.injectMatomoScript(ye)}injectMatomoScript(ye){if(this.injected)throw new Error("Matomo trackers have already been initialized");if(function b(Pt){return u(Pt)||I(Pt)}(ye)){const{scriptUrl:ve}=ye,[ft,...Dt]=function H(Pt){return I(Pt)?Pt.trackers:[{trackerUrl:Pt.trackerUrl,siteId:Pt.siteId,trackerUrlSuffix:Pt.trackerUrlSuffix}]}(ye),Rn=ve??Ue(ft.trackerUrl)+"matomo.js";this.registerMainTracker(ft),this.registerAdditionalTrackers(Dt),this.injectDOMScript(Rn)}else if(function m(Pt){return null!=Pt.scriptUrl&&!u(Pt)}(ye)){const{scriptUrl:ve,trackers:ft}={trackers:[],...ye};this.registerAdditionalTrackers(ft),this.injectDOMScript(ve)}this.injected=!0}registerMainTracker(ye){const ve=We(ye.trackerUrl,ye.trackerUrlSuffix),ft=Se(ye.siteId);this.tracker.setTrackerUrl(ve),this.tracker.setSiteId(ft)}registerAdditionalTrackers(ye){ye.forEach(({trackerUrl:ve,siteId:ft,trackerUrlSuffix:Dt})=>{const Rn=We(ve,Dt),ti=Se(ft);this.tracker.addTracker(Rn,ti)})}injectDOMScript(ye){const ve=this.scriptFactory(ye,this.document),ft=s(this.document.getElementsByTagName("script")[0],"no existing script found");s(ft.parentNode,"no script's parent node found").insertBefore(ve,ft)}runPreInitTasks(){this.config.acceptDoNotTrack&&this.tracker.setDoNotTrack(!0),this.config.requireConsent===o.COOKIE?this.tracker.requireCookieConsent():this.config.requireConsent===o.TRACKING&&this.tracker.requireConsent(),this.config.enableJSErrorTracking&&this.tracker.enableJSErrorTracking(),this.config.trackAppInitialLoad&&this.tracker.trackPageView(),this.config.enableLinkTracking&&this.tracker.enableLinkTracking()}}return Pt.\u0275fac=function(ye){n.$Z()},Pt.\u0275prov=n.Yz7({token:Pt,factory:function(ye){let ve=null;return ve=ye?new ye:function lt(Pt,Oe,ye,ve,ft){return Pt.disabled||!(0,e.NF)(ft)?new Vt:new r(Pt,Oe,ye,ve)}(n.LFG(p),n.LFG(J),n.LFG(R),n.LFG(e.K0),n.LFG(n.Lbi)),ve},providedIn:"root"}),Pt})(),Z=(()=>{class Pt{constructor(ye,ve){this.initializer=ye,ve||this.initializer.initialize()}static forRoot(ye,ve){const ft=[{provide:t,useValue:ye}];return ve&&ft.push({provide:R,useValue:ve}),{ngModule:Pt,providers:ft}}}return Pt.\u0275fac=function(ye){return new(ye||Pt)(n.LFG(r),n.LFG(Pt,12))},Pt.\u0275mod=n.oAB({type:Pt}),Pt.\u0275inj=n.cJS({}),Pt})()},71365:(gt,X,a)=>{"use strict";a.d(X,{Pi:()=>ge,X$:()=>Ke,Zw:()=>m,aw:()=>at,k2:()=>q,sK:()=>ue});var e=a(19212),n=a(49193),s=a(95363),l=a(77504),i=a(93990),t=a(24917),p=a(51418),c=a(49185),o=a(96124),x=a(59724),u=a(75222);class m{}let b=(()=>{class Le extends m{getTranslation(Te){return(0,n.of)({})}}return Le.\u0275fac=(()=>{let R;return function(me){return(R||(R=e.n5z(Le)))(me||Le)}})(),Le.\u0275prov=e.Yz7({token:Le,factory:Le.\u0275fac}),Le})();class I{}let H=(()=>{class Le{handle(Te){return Te.key}}return Le.\u0275fac=function(Te){return new(Te||Le)},Le.\u0275prov=e.Yz7({token:Le,factory:Le.\u0275fac}),Le})();function O(Le,R){if(Le===R)return!0;if(null===Le||null===R)return!1;if(Le!=Le&&R!=R)return!0;let Se,Ue,We,Te=typeof Le;if(Te==typeof R&&"object"==Te){if(!Array.isArray(Le)){if(Array.isArray(R))return!1;for(Ue in We=Object.create(null),Le){if(!O(Le[Ue],R[Ue]))return!1;We[Ue]=!0}for(Ue in R)if(!(Ue in We)&&typeof R[Ue]<"u")return!1;return!0}if(!Array.isArray(R))return!1;if((Se=Le.length)==R.length){for(Ue=0;Ue<Se;Ue++)if(!O(Le[Ue],R[Ue]))return!1;return!0}}return!1}function P(Le){return typeof Le<"u"&&null!==Le}function G(Le){return Le&&"object"==typeof Le&&!Array.isArray(Le)}function B(Le,R){let Te=Object.assign({},Le);return G(Le)&&G(R)&&Object.keys(R).forEach(me=>{G(R[me])?me in Le?Te[me]=B(Le[me],R[me]):Object.assign(Te,{[me]:R[me]}):Object.assign(Te,{[me]:R[me]})}),Te}class ae{}let J=(()=>{class Le extends ae{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(Te,me){let Se;return Se="string"==typeof Te?this.interpolateString(Te,me):"function"==typeof Te?this.interpolateFunction(Te,me):Te,Se}getValue(Te,me){let Se="string"==typeof me?me.split("."):[me];me="";do{me+=Se.shift(),!P(Te)||!P(Te[me])||"object"!=typeof Te[me]&&Se.length?Se.length?me+=".":Te=void 0:(Te=Te[me],me="")}while(Se.length);return Te}interpolateFunction(Te,me){return Te(me)}interpolateString(Te,me){return me?Te.replace(this.templateMatcher,(Se,Ue)=>{let We=this.getValue(me,Ue);return P(We)?We:Se}):Te}}return Le.\u0275fac=(()=>{let R;return function(me){return(R||(R=e.n5z(Le)))(me||Le)}})(),Le.\u0275prov=e.Yz7({token:Le,factory:Le.\u0275fac}),Le})();class q{}let j=(()=>{class Le extends q{compile(Te,me){return Te}compileTranslations(Te,me){return Te}}return Le.\u0275fac=(()=>{let R;return function(me){return(R||(R=e.n5z(Le)))(me||Le)}})(),Le.\u0275prov=e.Yz7({token:Le,factory:Le.\u0275fac}),Le})();class Y{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new e.vpe,this.onLangChange=new e.vpe,this.onDefaultLangChange=new e.vpe}}const K=new e.OlP("USE_STORE"),ne=new e.OlP("USE_DEFAULT_LANG"),ee=new e.OlP("DEFAULT_LANGUAGE"),$=new e.OlP("USE_EXTEND");let ue=(()=>{class Le{constructor(Te,me,Se,Ue,We,et=!0,Et=!1,lt=!1,Vt){this.store=Te,this.currentLoader=me,this.compiler=Se,this.parser=Ue,this.missingTranslationHandler=We,this.useDefaultLang=et,this.isolate=Et,this.extend=lt,this.pending=!1,this._onTranslationChange=new e.vpe,this._onLangChange=new e.vpe,this._onDefaultLangChange=new e.vpe,this._langs=[],this._translations={},this._translationRequests={},Vt&&this.setDefaultLang(Vt)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(Te){this.isolate?this._defaultLang=Te:this.store.defaultLang=Te}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(Te){this.isolate?this._currentLang=Te:this.store.currentLang=Te}get langs(){return this.isolate?this._langs:this.store.langs}set langs(Te){this.isolate?this._langs=Te:this.store.langs=Te}get translations(){return this.isolate?this._translations:this.store.translations}set translations(Te){this.isolate?this._translations=Te:this.store.translations=Te}setDefaultLang(Te){if(Te===this.defaultLang)return;let me=this.retrieveTranslations(Te);typeof me<"u"?(null==this.defaultLang&&(this.defaultLang=Te),me.pipe((0,p.q)(1)).subscribe(Se=>{this.changeDefaultLang(Te)})):this.changeDefaultLang(Te)}getDefaultLang(){return this.defaultLang}use(Te){if(Te===this.currentLang)return(0,n.of)(this.translations[Te]);let me=this.retrieveTranslations(Te);return typeof me<"u"?(this.currentLang||(this.currentLang=Te),me.pipe((0,p.q)(1)).subscribe(Se=>{this.changeLang(Te)}),me):(this.changeLang(Te),(0,n.of)(this.translations[Te]))}retrieveTranslations(Te){let me;return(typeof this.translations[Te]>"u"||this.extend)&&(this._translationRequests[Te]=this._translationRequests[Te]||this.getTranslation(Te),me=this._translationRequests[Te]),me}getTranslation(Te){this.pending=!0;const me=this.currentLoader.getTranslation(Te).pipe((0,c.d)(1),(0,p.q)(1));return this.loadingTranslations=me.pipe((0,o.U)(Se=>this.compiler.compileTranslations(Se,Te)),(0,c.d)(1),(0,p.q)(1)),this.loadingTranslations.subscribe({next:Se=>{this.translations[Te]=this.extend&&this.translations[Te]?{...Se,...this.translations[Te]}:Se,this.updateLangs(),this.pending=!1},error:Se=>{this.pending=!1}}),me}setTranslation(Te,me,Se=!1){me=this.compiler.compileTranslations(me,Te),this.translations[Te]=(Se||this.extend)&&this.translations[Te]?B(this.translations[Te],me):me,this.updateLangs(),this.onTranslationChange.emit({lang:Te,translations:this.translations[Te]})}getLangs(){return this.langs}addLangs(Te){Te.forEach(me=>{-1===this.langs.indexOf(me)&&this.langs.push(me)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(Te,me,Se){let Ue;if(me instanceof Array){let We={},et=!1;for(let Et of me)We[Et]=this.getParsedResult(Te,Et,Se),(0,s.b)(We[Et])&&(et=!0);if(et){const Et=me.map(lt=>(0,s.b)(We[lt])?We[lt]:(0,n.of)(We[lt]));return(0,l.D)(Et).pipe((0,o.U)(lt=>{let Vt={};return lt.forEach((r,Z)=>{Vt[me[Z]]=r}),Vt}))}return We}if(Te&&(Ue=this.parser.interpolate(this.parser.getValue(Te,me),Se)),typeof Ue>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(Ue=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],me),Se)),typeof Ue>"u"){let We={key:me,translateService:this};typeof Se<"u"&&(We.interpolateParams=Se),Ue=this.missingTranslationHandler.handle(We)}return typeof Ue<"u"?Ue:me}get(Te,me){if(!P(Te)||!Te.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,x.b)(Se=>(Se=this.getParsedResult(Se,Te,me),(0,s.b)(Se)?Se:(0,n.of)(Se))));{let Se=this.getParsedResult(this.translations[this.currentLang],Te,me);return(0,s.b)(Se)?Se:(0,n.of)(Se)}}getStreamOnTranslationChange(Te,me){if(!P(Te)||!Te.length)throw new Error('Parameter "key" required');return(0,i.z)((0,t.P)(()=>this.get(Te,me)),this.onTranslationChange.pipe((0,u.w)(Se=>{const Ue=this.getParsedResult(Se.translations,Te,me);return"function"==typeof Ue.subscribe?Ue:(0,n.of)(Ue)})))}stream(Te,me){if(!P(Te)||!Te.length)throw new Error('Parameter "key" required');return(0,i.z)((0,t.P)(()=>this.get(Te,me)),this.onLangChange.pipe((0,u.w)(Se=>{const Ue=this.getParsedResult(Se.translations,Te,me);return(0,s.b)(Ue)?Ue:(0,n.of)(Ue)})))}instant(Te,me){if(!P(Te)||!Te.length)throw new Error('Parameter "key" required');let Se=this.getParsedResult(this.translations[this.currentLang],Te,me);if((0,s.b)(Se)){if(Te instanceof Array){let Ue={};return Te.forEach((We,et)=>{Ue[Te[et]]=Te[et]}),Ue}return Te}return Se}set(Te,me,Se=this.currentLang){this.translations[Se][Te]=this.compiler.compile(me,Se),this.updateLangs(),this.onTranslationChange.emit({lang:Se,translations:this.translations[Se]})}changeLang(Te){this.currentLang=Te,this.onLangChange.emit({lang:Te,translations:this.translations[Te]}),null==this.defaultLang&&this.changeDefaultLang(Te)}changeDefaultLang(Te){this.defaultLang=Te,this.onDefaultLangChange.emit({lang:Te,translations:this.translations[Te]})}reloadLang(Te){return this.resetLang(Te),this.getTranslation(Te)}resetLang(Te){this._translationRequests[Te]=void 0,this.translations[Te]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let Te=window.navigator.languages?window.navigator.languages[0]:null;return Te=Te||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof Te>"u"?void 0:(-1!==Te.indexOf("-")&&(Te=Te.split("-")[0]),-1!==Te.indexOf("_")&&(Te=Te.split("_")[0]),Te)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let Te=window.navigator.languages?window.navigator.languages[0]:null;return Te=Te||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,Te}}return Le.\u0275fac=function(Te){return new(Te||Le)(e.LFG(Y),e.LFG(m),e.LFG(q),e.LFG(ae),e.LFG(I),e.LFG(ne),e.LFG(K),e.LFG($),e.LFG(ee))},Le.\u0275prov=e.Yz7({token:Le,factory:Le.\u0275fac}),Le})(),ge=(()=>{class Le{constructor(Te,me,Se){this.translateService=Te,this.element=me,this._ref=Se,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(Ue=>{Ue.lang===this.translateService.currentLang&&this.checkNodes(!0,Ue.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(Ue=>{this.checkNodes(!0,Ue.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(Ue=>{this.checkNodes(!0)}))}set translate(Te){Te&&(this.key=Te,this.checkNodes())}set translateParams(Te){O(this.currentParams,Te)||(this.currentParams=Te,this.checkNodes(!0))}ngAfterViewChecked(){this.checkNodes()}checkNodes(Te=!1,me){let Se=this.element.nativeElement.childNodes;Se.length||(this.setContent(this.element.nativeElement,this.key),Se=this.element.nativeElement.childNodes);for(let Ue=0;Ue<Se.length;++Ue){let We=Se[Ue];if(3===We.nodeType){let et;if(Te&&(We.lastKey=null),P(We.lookupKey))et=We.lookupKey;else if(this.key)et=this.key;else{let Et=this.getContent(We),lt=Et.trim();lt.length&&(We.lookupKey=lt,Et!==We.currentValue?(et=lt,We.originalContent=Et||We.originalContent):We.originalContent?et=We.originalContent.trim():Et!==We.currentValue&&(et=lt,We.originalContent=Et||We.originalContent))}this.updateValue(et,We,me)}}}updateValue(Te,me,Se){if(Te){if(me.lastKey===Te&&this.lastParams===this.currentParams)return;this.lastParams=this.currentParams;let Ue=We=>{We!==Te&&(me.lastKey=Te),me.originalContent||(me.originalContent=this.getContent(me)),me.currentValue=P(We)?We:me.originalContent||Te,this.setContent(me,this.key?me.currentValue:me.originalContent.replace(Te,me.currentValue)),this._ref.markForCheck()};if(P(Se)){let We=this.translateService.getParsedResult(Se,Te,this.currentParams);(0,s.b)(We)?We.subscribe({next:Ue}):Ue(We)}else this.translateService.get(Te,this.currentParams).subscribe(Ue)}}getContent(Te){return P(Te.textContent)?Te.textContent:Te.data}setContent(Te,me){P(Te.textContent)?Te.textContent=me:Te.data=me}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}}return Le.\u0275fac=function(Te){return new(Te||Le)(e.Y36(ue),e.Y36(e.SBq),e.Y36(e.sBO))},Le.\u0275dir=e.lG2({type:Le,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}}),Le})(),Ke=(()=>{class Le{constructor(Te,me){this.translate=Te,this._ref=me,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(Te,me,Se){let Ue=We=>{this.value=void 0!==We?We:Te,this.lastKey=Te,this._ref.markForCheck()};if(Se){let We=this.translate.getParsedResult(Se,Te,me);(0,s.b)(We.subscribe)?We.subscribe(Ue):Ue(We)}this.translate.get(Te,me).subscribe(Ue)}transform(Te,...me){if(!Te||!Te.length)return Te;if(O(Te,this.lastKey)&&O(me,this.lastParams))return this.value;let Se;if(P(me[0])&&me.length)if("string"==typeof me[0]&&me[0].length){let Ue=me[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{Se=JSON.parse(Ue)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${me[0]}`)}}else"object"==typeof me[0]&&!Array.isArray(me[0])&&(Se=me[0]);return this.lastKey=Te,this.lastParams=me,this.updateValue(Te,Se),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(Ue=>{this.lastKey&&Ue.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(Te,Se,Ue.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(Ue=>{this.lastKey&&(this.lastKey=null,this.updateValue(Te,Se,Ue.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(Te,Se))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return Le.\u0275fac=function(Te){return new(Te||Le)(e.Y36(ue,16),e.Y36(e.sBO,16))},Le.\u0275pipe=e.Yjl({name:"translate",type:Le,pure:!1}),Le.\u0275prov=e.Yz7({token:Le,factory:Le.\u0275fac}),Le})(),at=(()=>{class Le{static forRoot(Te={}){return{ngModule:Le,providers:[Te.loader||{provide:m,useClass:b},Te.compiler||{provide:q,useClass:j},Te.parser||{provide:ae,useClass:J},Te.missingTranslationHandler||{provide:I,useClass:H},Y,{provide:K,useValue:Te.isolate},{provide:ne,useValue:Te.useDefaultLang},{provide:$,useValue:Te.extend},{provide:ee,useValue:Te.defaultLanguage},ue]}}static forChild(Te={}){return{ngModule:Le,providers:[Te.loader||{provide:m,useClass:b},Te.compiler||{provide:q,useClass:j},Te.parser||{provide:ae,useClass:J},Te.missingTranslationHandler||{provide:I,useClass:H},{provide:K,useValue:Te.isolate},{provide:ne,useValue:Te.useDefaultLang},{provide:$,useValue:Te.extend},{provide:ee,useValue:Te.defaultLanguage},ue]}}}return Le.\u0275fac=function(Te){return new(Te||Le)},Le.\u0275mod=e.oAB({type:Le}),Le.\u0275inj=e.cJS({}),Le})()},70033:(gt,X,a)=>{"use strict";function e(Fe){return Fe&&Fe.Math==Math?Fe:void 0}a.d(X,{v$:()=>Im,S1:()=>Ou});const n="object"==typeof globalThis&&e(globalThis)||"object"==typeof window&&e(window)||"object"==typeof self&&e(self)||"object"==typeof global&&e(global)||function(){return this}()||{};function s(){return n}function l(Fe,Pe,St){const un=St||n,vi=un.__SENTRY__=un.__SENTRY__||{};return vi[Fe]||(vi[Fe]=Pe())}const i="production",t=Object.prototype.toString;function p(Fe){switch(t.call(Fe)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return q(Fe,Error)}}function c(Fe,Pe){return t.call(Fe)===`[object ${Pe}]`}function o(Fe){return c(Fe,"ErrorEvent")}function x(Fe){return c(Fe,"DOMError")}function m(Fe){return c(Fe,"String")}function b(Fe){return"object"==typeof Fe&&null!==Fe&&"__sentry_template_string__"in Fe&&"__sentry_template_values__"in Fe}function I(Fe){return null===Fe||b(Fe)||"object"!=typeof Fe&&"function"!=typeof Fe}function H(Fe){return c(Fe,"Object")}function O(Fe){return typeof Event<"u"&&q(Fe,Event)}function B(Fe){return!(!Fe||!Fe.then||"function"!=typeof Fe.then)}function q(Fe,Pe){try{return Fe instanceof Pe}catch{return!1}}function j(Fe){return!("object"!=typeof Fe||null===Fe||!Fe.__isVue&&!Fe._isVue)}const Y=s(),K=80;function ne(Fe,Pe={}){if(!Fe)return"<unknown>";try{let St=Fe;const un=5,vi=[];let qe=0,Xi=0;const xt=" > ",jt=xt.length;let jn;const ro=Array.isArray(Pe)?Pe:Pe.keyAttrs,Bo=!Array.isArray(Pe)&&Pe.maxStringLength||K;for(;St&&qe++<un&&(jn=ee(St,ro),!("html"===jn||qe>1&&Xi+vi.length*jt+jn.length>=Bo));)vi.push(jn),Xi+=jn.length,St=St.parentNode;return vi.reverse().join(xt)}catch{return"<unknown>"}}function ee(Fe,Pe){const St=Fe,un=[];let vi,qe,Xi,xt,jt;if(!St||!St.tagName)return"";if(Y.HTMLElement&&St instanceof HTMLElement&&St.dataset&&St.dataset.sentryComponent)return St.dataset.sentryComponent;un.push(St.tagName.toLowerCase());const jn=Pe&&Pe.length?Pe.filter(Bo=>St.getAttribute(Bo)).map(Bo=>[Bo,St.getAttribute(Bo)]):null;if(jn&&jn.length)jn.forEach(Bo=>{un.push(`[${Bo[0]}="${Bo[1]}"]`)});else if(St.id&&un.push(`#${St.id}`),vi=St.className,vi&&m(vi))for(qe=vi.split(/\s+/),jt=0;jt<qe.length;jt++)un.push(`.${qe[jt]}`);const ro=["aria-label","type","name","title","alt"];for(jt=0;jt<ro.length;jt++)Xi=ro[jt],xt=St.getAttribute(Xi),xt&&un.push(`[${Xi}="${xt}"]`);return un.join("")}const Ke=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Le=["debug","info","warn","error","log","assert","trace"],R={};function Te(Fe){if(!("console"in n))return Fe();const Pe=n.console,St={},un=Object.keys(R);un.forEach(vi=>{const qe=R[vi];St[vi]=Pe[vi],Pe[vi]=qe});try{return Fe()}finally{un.forEach(vi=>{Pe[vi]=St[vi]})}}const Se=function me(){let Fe=!1;const Pe={enable:()=>{Fe=!0},disable:()=>{Fe=!1},isEnabled:()=>Fe};return Le.forEach(Ke?St=>{Pe[St]=(...un)=>{Fe&&Te(()=>{n.console[St](`Sentry Logger [${St}]:`,...un)})}}:St=>{Pe[St]=()=>{}}),Pe}();function Ue(Fe,Pe=0){return"string"!=typeof Fe||0===Pe||Fe.length<=Pe?Fe:`${Fe.slice(0,Pe)}...`}function et(Fe,Pe){if(!Array.isArray(Fe))return"";const St=[];for(let un=0;un<Fe.length;un++){const vi=Fe[un];try{j(vi)?St.push("[VueViewModel]"):St.push(String(vi))}catch{St.push("[value cannot be serialized]")}}return St.join(Pe)}function lt(Fe,Pe=[],St=!1){return Pe.some(un=>function Et(Fe,Pe,St=!1){return!!m(Fe)&&(function G(Fe){return c(Fe,"RegExp")}(Pe)?Pe.test(Fe):!!m(Pe)&&(St?Fe===Pe:Fe.includes(Pe)))}(Fe,un,St))}function Vt(Fe,Pe,St){if(!(Pe in Fe))return;const un=Fe[Pe],vi=St(un);"function"==typeof vi&&Z(vi,un),Fe[Pe]=vi}function r(Fe,Pe,St){try{Object.defineProperty(Fe,Pe,{value:St,writable:!0,configurable:!0})}catch{Ke&&Se.log(`Failed to add non-enumerable property "${Pe}" to object`,Fe)}}function Z(Fe,Pe){try{Fe.prototype=Pe.prototype=Pe.prototype||{},r(Fe,"__sentry_original__",Pe)}catch{}}function Pt(Fe){return Fe.__sentry_original__}function ye(Fe){if(p(Fe))return{message:Fe.message,name:Fe.name,stack:Fe.stack,...ft(Fe)};if(O(Fe)){const Pe={type:Fe.type,target:ve(Fe.target),currentTarget:ve(Fe.currentTarget),...ft(Fe)};return typeof CustomEvent<"u"&&q(Fe,CustomEvent)&&(Pe.detail=Fe.detail),Pe}return Fe}function ve(Fe){try{return function P(Fe){return typeof Element<"u"&&q(Fe,Element)}(Fe)?ne(Fe):Object.prototype.toString.call(Fe)}catch{return"<unknown>"}}function ft(Fe){if("object"==typeof Fe&&null!==Fe){const Pe={};for(const St in Fe)Object.prototype.hasOwnProperty.call(Fe,St)&&(Pe[St]=Fe[St]);return Pe}return{}}function Rn(Fe){return ti(Fe,new Map)}function ti(Fe,Pe){if(function Xt(Fe){if(!H(Fe))return!1;try{const Pe=Object.getPrototypeOf(Fe).constructor.name;return!Pe||"Object"===Pe}catch{return!0}}(Fe)){const St=Pe.get(Fe);if(void 0!==St)return St;const un={};Pe.set(Fe,un);for(const vi of Object.keys(Fe))typeof Fe[vi]<"u"&&(un[vi]=ti(Fe[vi],Pe));return un}if(Array.isArray(Fe)){const St=Pe.get(Fe);if(void 0!==St)return St;const un=[];return Pe.set(Fe,un),Fe.forEach(vi=>{un.push(ti(vi,Pe))}),un}return Fe}function dt(){const Pe=n.crypto||n.msCrypto;let St=()=>16*Math.random();try{if(Pe&&Pe.randomUUID)return Pe.randomUUID().replace(/-/g,"");Pe&&Pe.getRandomValues&&(St=()=>{const un=new Uint8Array(1);return Pe.getRandomValues(un),un[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,un=>(un^(15&St())>>un/4).toString(16))}function Ie(Fe){return Fe.exception&&Fe.exception.values?Fe.exception.values[0]:void 0}function ot(Fe){const{message:Pe,event_id:St}=Fe;if(Pe)return Pe;const un=Ie(Fe);return un?un.type&&un.value?`${un.type}: ${un.value}`:un.type||un.value||St||"<unknown>":St||"<unknown>"}function ct(Fe,Pe,St){const un=Fe.exception=Fe.exception||{},vi=un.values=un.values||[],qe=vi[0]=vi[0]||{};qe.value||(qe.value=Pe||""),qe.type||(qe.type=St||"Error")}function tn(Fe,Pe){const St=Ie(Fe);if(!St)return;const vi=St.mechanism;if(St.mechanism={type:"generic",handled:!0,...vi,...Pe},Pe&&"data"in Pe){const qe={...vi&&vi.data,...Pe.data};St.mechanism.data=qe}}function bn(Fe){if(Fe&&Fe.__sentry_captured__)return!0;try{r(Fe,"__sentry_captured__",!0)}catch{}return!1}function vt(Fe){return Array.isArray(Fe)?Fe:[Fe]}const nn=1e3;function rn(){return Date.now()/nn}const Oo=function ii(){const{performance:Fe}=n;if(!Fe||!Fe.now)return rn;const Pe=Date.now()-Fe.now(),St=null==Fe.timeOrigin?Pe:Fe.timeOrigin;return()=>(St+Fe.now())/nn}();let Li;(()=>{const{performance:Fe}=n;if(!Fe||!Fe.now)return void(Li="none");const Pe=36e5,St=Fe.now(),un=Date.now(),vi=Fe.timeOrigin?Math.abs(Fe.timeOrigin+St-un):Pe,qe=vi<Pe,Xi=Fe.timing&&Fe.timing.navigationStart,jt="number"==typeof Xi?Math.abs(Xi+St-un):Pe;Li=qe||jt<Pe?vi<=jt?"timeOrigin":"navigationStart":"dateNow"})();const Ii=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var _i,Fe;function En(Fe){return new yn(Pe=>{Pe(Fe)})}function co(Fe){return new yn((Pe,St)=>{St(Fe)})}(Fe=_i||(_i={}))[Fe.PENDING=0]="PENDING",Fe[Fe.RESOLVED=1]="RESOLVED",Fe[Fe.REJECTED=2]="REJECTED";class yn{constructor(Pe){yn.prototype.__init.call(this),yn.prototype.__init2.call(this),yn.prototype.__init3.call(this),yn.prototype.__init4.call(this),this._state=_i.PENDING,this._handlers=[];try{Pe(this._resolve,this._reject)}catch(St){this._reject(St)}}then(Pe,St){return new yn((un,vi)=>{this._handlers.push([!1,qe=>{if(Pe)try{un(Pe(qe))}catch(Xi){vi(Xi)}else un(qe)},qe=>{if(St)try{un(St(qe))}catch(Xi){vi(Xi)}else vi(qe)}]),this._executeHandlers()})}catch(Pe){return this.then(St=>St,Pe)}finally(Pe){return new yn((St,un)=>{let vi,qe;return this.then(Xi=>{qe=!1,vi=Xi,Pe&&Pe()},Xi=>{qe=!0,vi=Xi,Pe&&Pe()}).then(()=>{qe?un(vi):St(vi)})})}__init(){this._resolve=Pe=>{this._setResult(_i.RESOLVED,Pe)}}__init2(){this._reject=Pe=>{this._setResult(_i.REJECTED,Pe)}}__init3(){this._setResult=(Pe,St)=>{if(this._state===_i.PENDING){if(B(St))return void St.then(this._resolve,this._reject);this._state=Pe,this._value=St,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===_i.PENDING)return;const Pe=this._handlers.slice();this._handlers=[],Pe.forEach(St=>{St[0]||(this._state===_i.RESOLVED&&St[1](this._value),this._state===_i.REJECTED&&St[2](this._value),St[0]=!0)})}}}function ln(){return l("globalEventProcessors",()=>[])}function He(Fe){ln().push(Fe)}function rt(Fe,Pe,St,un=0){return new yn((vi,qe)=>{const Xi=Fe[un];if(null===Pe||"function"!=typeof Xi)vi(Pe);else{const xt=Xi({...Pe},St);Ii&&Xi.id&&null===xt&&Se.log(`Event processor "${Xi.id}" dropped event`),B(xt)?xt.then(jt=>rt(Fe,jt,St,un+1).then(vi)).then(null,qe):rt(Fe,xt,St,un+1).then(vi).then(null,qe)}})}function $e(Fe){const Pe=Oo(),St={sid:dt(),init:!0,timestamp:Pe,started:Pe,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function tt(Fe){return Rn({sid:`${Fe.sid}`,init:Fe.init,started:new Date(1e3*Fe.started).toISOString(),timestamp:new Date(1e3*Fe.timestamp).toISOString(),status:Fe.status,errors:Fe.errors,did:"number"==typeof Fe.did||"string"==typeof Fe.did?`${Fe.did}`:void 0,duration:Fe.duration,abnormal_mechanism:Fe.abnormal_mechanism,attrs:{release:Fe.release,environment:Fe.environment,ip_address:Fe.ipAddress,user_agent:Fe.userAgent}})}(St)};return Fe&&Ve(St,Fe),St}function Ve(Fe,Pe={}){if(Pe.user&&(!Fe.ipAddress&&Pe.user.ip_address&&(Fe.ipAddress=Pe.user.ip_address),!Fe.did&&!Pe.did&&(Fe.did=Pe.user.id||Pe.user.email||Pe.user.username)),Fe.timestamp=Pe.timestamp||Oo(),Pe.abnormal_mechanism&&(Fe.abnormal_mechanism=Pe.abnormal_mechanism),Pe.ignoreDuration&&(Fe.ignoreDuration=Pe.ignoreDuration),Pe.sid&&(Fe.sid=32===Pe.sid.length?Pe.sid:dt()),void 0!==Pe.init&&(Fe.init=Pe.init),!Fe.did&&Pe.did&&(Fe.did=`${Pe.did}`),"number"==typeof Pe.started&&(Fe.started=Pe.started),Fe.ignoreDuration)Fe.duration=void 0;else if("number"==typeof Pe.duration)Fe.duration=Pe.duration;else{const St=Fe.timestamp-Fe.started;Fe.duration=St>=0?St:0}Pe.release&&(Fe.release=Pe.release),Pe.environment&&(Fe.environment=Pe.environment),!Fe.ipAddress&&Pe.ipAddress&&(Fe.ipAddress=Pe.ipAddress),!Fe.userAgent&&Pe.userAgent&&(Fe.userAgent=Pe.userAgent),"number"==typeof Pe.errors&&(Fe.errors=Pe.errors),Pe.status&&(Fe.status=Pe.status)}function Ce(Fe,Pe){let St={};Pe?St={status:Pe}:"ok"===Fe.status&&(St={status:"exited"}),Ve(Fe,St)}function ht(Fe){return Fe.transaction}const Un=1;function Yt(Fe){const{spanId:Pe,traceId:St}=Fe.spanContext(),{data:un,op:vi,parent_span_id:qe,status:Xi,tags:xt,origin:jt}=li(Fe);return Rn({data:un,op:vi,parent_span_id:qe,span_id:Pe,status:Xi,tags:xt,trace_id:St,origin:jt})}function li(Fe){return function si(Fe){return"function"==typeof Fe.getSpanJSON}(Fe)?Fe.getSpanJSON():"function"==typeof Fe.toJSON?Fe.toJSON():{}}function _o(Fe,Pe,St){const un=Pe.getOptions(),{publicKey:vi}=Pe.getDsn()||{},{segment:qe}=St&&St.getUser()||{},Xi=Rn({environment:un.environment||i,release:un.release,user_segment:qe,public_key:vi,trace_id:Fe});return Pe.emit&&Pe.emit("createDsc",Xi),Xi}function Hn(Fe){const Pe=Jo();if(!Pe)return{};const St=_o(li(Fe).trace_id||"",Pe,Qr()),un=ht(Fe);if(!un)return St;const vi=un&&un._frozenDynamicSamplingContext;if(vi)return vi;const{sampleRate:qe,source:Xi}=un.metadata;null!=qe&&(St.sample_rate=`${qe}`);const xt=li(un);return Xi&&"url"!==Xi&&(St.transaction=xt.description),St.sampled=String(function oo(Fe){const{traceFlags:Pe}=Fe.spanContext();return!!(Pe&Un)}(un)),Pe.emit&&Pe.emit("createDsc",St),St}function mo(Fe,Pe){const{fingerprint:St,span:un,breadcrumbs:vi,sdkProcessingMetadata:qe}=Pe;(function wn(Fe,Pe){const{extra:St,tags:un,user:vi,contexts:qe,level:Xi,transactionName:xt}=Pe,jt=Rn(St);jt&&Object.keys(jt).length&&(Fe.extra={...jt,...Fe.extra});const jn=Rn(un);jn&&Object.keys(jn).length&&(Fe.tags={...jn,...Fe.tags});const ro=Rn(vi);ro&&Object.keys(ro).length&&(Fe.user={...ro,...Fe.user});const Bo=Rn(qe);Bo&&Object.keys(Bo).length&&(Fe.contexts={...Bo,...Fe.contexts}),Xi&&(Fe.level=Xi),xt&&(Fe.transaction=xt)})(Fe,Pe),un&&function Vn(Fe,Pe){Fe.contexts={trace:Yt(Pe),...Fe.contexts};const St=ht(Pe);if(St){Fe.sdkProcessingMetadata={dynamicSamplingContext:Hn(Pe),...Fe.sdkProcessingMetadata};const un=li(St).description;un&&(Fe.tags={transaction:un,...Fe.tags})}}(Fe,un),function Wi(Fe,Pe){Fe.fingerprint=Fe.fingerprint?vt(Fe.fingerprint):[],Pe&&(Fe.fingerprint=Fe.fingerprint.concat(Pe)),Fe.fingerprint&&!Fe.fingerprint.length&&delete Fe.fingerprint}(Fe,St),function po(Fe,Pe){const St=[...Fe.breadcrumbs||[],...Pe];Fe.breadcrumbs=St.length?St:void 0}(Fe,vi),function Kn(Fe,Pe){Fe.sdkProcessingMetadata={...Fe.sdkProcessingMetadata,...Pe}}(Fe,qe)}function vn(Fe,Pe){const{extra:St,tags:un,user:vi,contexts:qe,level:Xi,sdkProcessingMetadata:xt,breadcrumbs:jt,fingerprint:jn,eventProcessors:ro,attachments:Bo,propagationContext:jr,transactionName:Hr,span:al}=Pe;Ji(Fe,"extra",St),Ji(Fe,"tags",un),Ji(Fe,"user",vi),Ji(Fe,"contexts",qe),Ji(Fe,"sdkProcessingMetadata",xt),Xi&&(Fe.level=Xi),Hr&&(Fe.transactionName=Hr),al&&(Fe.span=al),jt.length&&(Fe.breadcrumbs=[...Fe.breadcrumbs,...jt]),jn.length&&(Fe.fingerprint=[...Fe.fingerprint,...jn]),ro.length&&(Fe.eventProcessors=[...Fe.eventProcessors,...ro]),Bo.length&&(Fe.attachments=[...Fe.attachments,...Bo]),Fe.propagationContext={...Fe.propagationContext,...jr}}function Ji(Fe,Pe,St){if(St&&Object.keys(St).length){Fe[Pe]={...Fe[Pe]};for(const un in St)Object.prototype.hasOwnProperty.call(St,un)&&(Fe[Pe][un]=St[un])}}let Oi;class On{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Dn()}static clone(Pe){return Pe?Pe.clone():new On}clone(){const Pe=new On;return Pe._breadcrumbs=[...this._breadcrumbs],Pe._tags={...this._tags},Pe._extra={...this._extra},Pe._contexts={...this._contexts},Pe._user=this._user,Pe._level=this._level,Pe._span=this._span,Pe._session=this._session,Pe._transactionName=this._transactionName,Pe._fingerprint=this._fingerprint,Pe._eventProcessors=[...this._eventProcessors],Pe._requestSession=this._requestSession,Pe._attachments=[...this._attachments],Pe._sdkProcessingMetadata={...this._sdkProcessingMetadata},Pe._propagationContext={...this._propagationContext},Pe._client=this._client,Pe}setClient(Pe){this._client=Pe}getClient(){return this._client}addScopeListener(Pe){this._scopeListeners.push(Pe)}addEventProcessor(Pe){return this._eventProcessors.push(Pe),this}setUser(Pe){return this._user=Pe||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&Ve(this._session,{user:Pe}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(Pe){return this._requestSession=Pe,this}setTags(Pe){return this._tags={...this._tags,...Pe},this._notifyScopeListeners(),this}setTag(Pe,St){return this._tags={...this._tags,[Pe]:St},this._notifyScopeListeners(),this}setExtras(Pe){return this._extra={...this._extra,...Pe},this._notifyScopeListeners(),this}setExtra(Pe,St){return this._extra={...this._extra,[Pe]:St},this._notifyScopeListeners(),this}setFingerprint(Pe){return this._fingerprint=Pe,this._notifyScopeListeners(),this}setLevel(Pe){return this._level=Pe,this._notifyScopeListeners(),this}setTransactionName(Pe){return this._transactionName=Pe,this._notifyScopeListeners(),this}setContext(Pe,St){return null===St?delete this._contexts[Pe]:this._contexts[Pe]=St,this._notifyScopeListeners(),this}setSpan(Pe){return this._span=Pe,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const Pe=this._span;return Pe&&Pe.transaction}setSession(Pe){return Pe?this._session=Pe:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(Pe){if(!Pe)return this;const St="function"==typeof Pe?Pe(this):Pe;if(St instanceof On){const un=St.getScopeData();this._tags={...this._tags,...un.tags},this._extra={...this._extra,...un.extra},this._contexts={...this._contexts,...un.contexts},un.user&&Object.keys(un.user).length&&(this._user=un.user),un.level&&(this._level=un.level),un.fingerprint.length&&(this._fingerprint=un.fingerprint),St.getRequestSession()&&(this._requestSession=St.getRequestSession()),un.propagationContext&&(this._propagationContext=un.propagationContext)}else if(H(St)){const un=Pe;this._tags={...this._tags,...un.tags},this._extra={...this._extra,...un.extra},this._contexts={...this._contexts,...un.contexts},un.user&&(this._user=un.user),un.level&&(this._level=un.level),un.fingerprint&&(this._fingerprint=un.fingerprint),un.requestSession&&(this._requestSession=un.requestSession),un.propagationContext&&(this._propagationContext=un.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Dn(),this}addBreadcrumb(Pe,St){const un="number"==typeof St?St:100;if(un<=0)return this;const vi={timestamp:rn(),...Pe},qe=this._breadcrumbs;return qe.push(vi),this._breadcrumbs=qe.length>un?qe.slice(-un):qe,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(Pe){return this._attachments.push(Pe),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:Pe,_attachments:St,_contexts:un,_tags:vi,_extra:qe,_user:Xi,_level:xt,_fingerprint:jt,_eventProcessors:jn,_propagationContext:ro,_sdkProcessingMetadata:Bo,_transactionName:jr,_span:Hr}=this;return{breadcrumbs:Pe,attachments:St,contexts:un,tags:vi,extra:qe,user:Xi,level:xt,fingerprint:jt||[],eventProcessors:jn,propagationContext:ro,sdkProcessingMetadata:Bo,transactionName:jr,span:Hr}}applyToEvent(Pe,St={},un=[]){return mo(Pe,this.getScopeData()),rt([...un,...ln(),...this._eventProcessors],Pe,St)}setSDKProcessingMetadata(Pe){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...Pe},this}setPropagationContext(Pe){return this._propagationContext=Pe,this}getPropagationContext(){return this._propagationContext}captureException(Pe,St){const un=St&&St.event_id?St.event_id:dt();if(!this._client)return Se.warn("No client configured on scope - will not capture exception!"),un;const vi=new Error("Sentry syntheticException");return this._client.captureException(Pe,{originalException:Pe,syntheticException:vi,...St,event_id:un},this),un}captureMessage(Pe,St,un){const vi=un&&un.event_id?un.event_id:dt();if(!this._client)return Se.warn("No client configured on scope - will not capture message!"),vi;const qe=new Error(Pe);return this._client.captureMessage(Pe,St,{originalException:Pe,syntheticException:qe,...un,event_id:vi},this),vi}captureEvent(Pe,St){const un=St&&St.event_id?St.event_id:dt();return this._client?(this._client.captureEvent(Pe,{...St,event_id:un},this),un):(Se.warn("No client configured on scope - will not capture event!"),un)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(Pe=>{Pe(this)}),this._notifyingListeners=!1)}}function Dn(){return{traceId:dt(),spanId:dt().substring(16)}}const Wt="7.106.1",kn=parseFloat(Wt),Fi=100;class ui{constructor(Pe,St,un,vi=kn){let qe,Xi;this._version=vi,St?qe=St:(qe=new On,qe.setClient(Pe)),un?Xi=un:(Xi=new On,Xi.setClient(Pe)),this._stack=[{scope:qe}],Pe&&this.bindClient(Pe),this._isolationScope=Xi}isOlderThan(Pe){return this._version<Pe}bindClient(Pe){const St=this.getStackTop();St.client=Pe,St.scope.setClient(Pe),Pe&&Pe.setupIntegrations&&Pe.setupIntegrations()}pushScope(){const Pe=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:Pe}),Pe}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(Pe){const St=this.pushScope();let un;try{un=Pe(St)}catch(vi){throw this.popScope(),vi}return B(un)?un.then(vi=>(this.popScope(),vi),vi=>{throw this.popScope(),vi}):(this.popScope(),un)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(Pe,St){const un=this._lastEventId=St&&St.event_id?St.event_id:dt(),vi=new Error("Sentry syntheticException");return this.getScope().captureException(Pe,{originalException:Pe,syntheticException:vi,...St,event_id:un}),un}captureMessage(Pe,St,un){const vi=this._lastEventId=un&&un.event_id?un.event_id:dt(),qe=new Error(Pe);return this.getScope().captureMessage(Pe,St,{originalException:Pe,syntheticException:qe,...un,event_id:vi}),vi}captureEvent(Pe,St){const un=St&&St.event_id?St.event_id:dt();return Pe.type||(this._lastEventId=un),this.getScope().captureEvent(Pe,{...St,event_id:un}),un}lastEventId(){return this._lastEventId}addBreadcrumb(Pe,St){const{scope:un,client:vi}=this.getStackTop();if(!vi)return;const{beforeBreadcrumb:qe=null,maxBreadcrumbs:Xi=Fi}=vi.getOptions&&vi.getOptions()||{};if(Xi<=0)return;const jt={timestamp:rn(),...Pe},jn=qe?Te(()=>qe(jt,St)):jt;null!==jn&&(vi.emit&&vi.emit("beforeAddBreadcrumb",jn,St),un.addBreadcrumb(jn,Xi))}setUser(Pe){this.getScope().setUser(Pe),this.getIsolationScope().setUser(Pe)}setTags(Pe){this.getScope().setTags(Pe),this.getIsolationScope().setTags(Pe)}setExtras(Pe){this.getScope().setExtras(Pe),this.getIsolationScope().setExtras(Pe)}setTag(Pe,St){this.getScope().setTag(Pe,St),this.getIsolationScope().setTag(Pe,St)}setExtra(Pe,St){this.getScope().setExtra(Pe,St),this.getIsolationScope().setExtra(Pe,St)}setContext(Pe,St){this.getScope().setContext(Pe,St),this.getIsolationScope().setContext(Pe,St)}configureScope(Pe){const{scope:St,client:un}=this.getStackTop();un&&Pe(St)}run(Pe){const St=At(this);try{Pe(this)}finally{At(St)}}getIntegration(Pe){const St=this.getClient();if(!St)return null;try{return St.getIntegration(Pe)}catch{return Ii&&Se.warn(`Cannot retrieve integration ${Pe.id} from the current Hub`),null}}startTransaction(Pe,St){const un=this._callExtensionMethod("startTransaction",Pe,St);return Ii&&!un&&(this.getClient()?Se.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):Se.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),un}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(Pe=!1){if(Pe)return this.endSession();this._sendSessionUpdate()}endSession(){const St=this.getStackTop().scope,un=St.getSession();un&&Ce(un),this._sendSessionUpdate(),St.setSession()}startSession(Pe){const{scope:St,client:un}=this.getStackTop(),{release:vi,environment:qe=i}=un&&un.getOptions()||{},{userAgent:Xi}=n.navigator||{},xt=$e({release:vi,environment:qe,user:St.getUser(),...Xi&&{userAgent:Xi},...Pe}),jt=St.getSession&&St.getSession();return jt&&"ok"===jt.status&&Ve(jt,{status:"exited"}),this.endSession(),St.setSession(xt),xt}shouldSendDefaultPii(){const Pe=this.getClient(),St=Pe&&Pe.getOptions();return!(!St||!St.sendDefaultPii)}_sendSessionUpdate(){const{scope:Pe,client:St}=this.getStackTop(),un=Pe.getSession();un&&St&&St.captureSession&&St.captureSession(un)}_callExtensionMethod(Pe,...St){const vi=Fo().__SENTRY__;if(vi&&vi.extensions&&"function"==typeof vi.extensions[Pe])return vi.extensions[Pe].apply(this,St);Ii&&Se.warn(`Extension method ${Pe} couldn't be found, doing nothing.`)}}function Fo(){return n.__SENTRY__=n.__SENTRY__||{extensions:{},hub:void 0},n}function At(Fe){const Pe=Fo(),St=an(Pe);return Wn(Pe,Fe),St}function Jn(){const Fe=Fo();if(Fe.__SENTRY__&&Fe.__SENTRY__.acs){const Pe=Fe.__SENTRY__.acs.getCurrentHub();if(Pe)return Pe}return function Bi(Fe=Fo()){return(!function bt(Fe){return!!(Fe&&Fe.__SENTRY__&&Fe.__SENTRY__.hub)}(Fe)||an(Fe).isOlderThan(kn))&&Wn(Fe,new ui),an(Fe)}(Fe)}function Bn(){return Jn().getIsolationScope()}function an(Fe){return l("hub",()=>new ui,Fe)}function Wn(Fe,Pe){return!!Fe&&((Fe.__SENTRY__=Fe.__SENTRY__||{}).hub=Pe,!0)}const _r=50,hr=/\(error: (.*)\)/,In=/captureMessage|captureException/;function Wr(...Fe){const Pe=Fe.sort((St,un)=>St[0]-un[0]).map(St=>St[1]);return(St,un=0)=>{const vi=[],qe=St.split("\n");for(let Xi=un;Xi<qe.length;Xi++){const xt=qe[Xi];if(xt.length>1024)continue;const jt=hr.test(xt)?xt.replace(hr,"$1"):xt;if(!jt.match(/\S*Error: /)){for(const jn of Pe){const ro=jn(jt);if(ro){vi.push(ro);break}}if(vi.length>=_r)break}}return function wi(Fe){if(!Fe.length)return[];const Pe=Array.from(Fe);return/sentryWrapped/.test(Pe[Pe.length-1].function||"")&&Pe.pop(),Pe.reverse(),In.test(Pe[Pe.length-1].function||"")&&(Pe.pop(),In.test(Pe[Pe.length-1].function||"")&&Pe.pop()),Pe.slice(0,_r).map(St=>({...St,filename:St.filename||Pe[Pe.length-1].filename,function:St.function||"?"}))}(vi)}}function qi(Fe){return Array.isArray(Fe)?Wr(...Fe):Fe}const zo="<anonymous>";function xi(Fe){try{return Fe&&"function"==typeof Fe&&Fe.name||zo}catch{return zo}}function wo(Fe,Pe=100,St=1/0){try{return ho("",Fe,Pe,St)}catch(un){return{ERROR:`**non-serializable** (${un})`}}}function Ei(Fe,Pe=3,St=102400){const un=wo(Fe,Pe);return function Ra(Fe){return function qr(Fe){return~-encodeURI(Fe).split(/%..|./).length}(JSON.stringify(Fe))}(un)>St?Ei(Fe,Pe-1,St):un}function ho(Fe,Pe,St=1/0,un=1/0,vi=function eo(){const Fe="function"==typeof WeakSet,Pe=Fe?new WeakSet:[];return[function St(vi){if(Fe)return!!Pe.has(vi)||(Pe.add(vi),!1);for(let qe=0;qe<Pe.length;qe++)if(Pe[qe]===vi)return!0;return Pe.push(vi),!1},function un(vi){if(Fe)Pe.delete(vi);else for(let qe=0;qe<Pe.length;qe++)if(Pe[qe]===vi){Pe.splice(qe,1);break}}]}()){const[qe,Xi]=vi;if(null==Pe||["number","boolean","string"].includes(typeof Pe)&&!function J(Fe){return"number"==typeof Fe&&Fe!=Fe}(Pe))return Pe;const xt=function Cr(Fe,Pe){try{if("domain"===Fe&&Pe&&"object"==typeof Pe&&Pe._events)return"[Domain]";if("domainEmitter"===Fe)return"[DomainEmitter]";if(typeof global<"u"&&Pe===global)return"[Global]";if(typeof window<"u"&&Pe===window)return"[Window]";if(typeof document<"u"&&Pe===document)return"[Document]";if(j(Pe))return"[VueViewModel]";if(function ae(Fe){return H(Fe)&&"nativeEvent"in Fe&&"preventDefault"in Fe&&"stopPropagation"in Fe}(Pe))return"[SyntheticEvent]";if("number"==typeof Pe&&Pe!=Pe)return"[NaN]";if("function"==typeof Pe)return`[Function: ${xi(Pe)}]`;if("symbol"==typeof Pe)return`[${String(Pe)}]`;if("bigint"==typeof Pe)return`[BigInt: ${String(Pe)}]`;const St=function vr(Fe){const Pe=Object.getPrototypeOf(Fe);return Pe?Pe.constructor.name:"null prototype"}(Pe);return/^HTML(\w*)Element$/.test(St)?`[HTMLElement: ${St}]`:`[object ${St}]`}catch(St){return`**non-serializable** (${St})`}}(Fe,Pe);if(!xt.startsWith("[object "))return xt;if(Pe.__sentry_skip_normalization__)return Pe;const jt="number"==typeof Pe.__sentry_override_normalization_depth__?Pe.__sentry_override_normalization_depth__:St;if(0===jt)return xt.replace("object ","");if(qe(Pe))return"[Circular ~]";const jn=Pe;if(jn&&"function"==typeof jn.toJSON)try{return ho("",jn.toJSON(),jt-1,un,vi)}catch{}const ro=Array.isArray(Pe)?[]:{};let Bo=0;const jr=ye(Pe);for(const Hr in jr)if(Object.prototype.hasOwnProperty.call(jr,Hr)){if(Bo>=un){ro[Hr]="[MaxProperties ~]";break}ro[Hr]=ho(Hr,jr[Hr],jt-1,un,vi),Bo++}return Xi(Pe),ro}const ms=new WeakMap;const ka=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Ua(Fe,Pe){return Jn().captureException(Fe,function Ds(Fe){if(Fe)return function dl(Fe){return Fe instanceof On||"function"==typeof Fe}(Fe)||function hs(Fe){return Object.keys(Fe).some(Pe=>ka.includes(Pe))}(Fe)?{captureContext:Fe}:Fe}(Pe))}function Qi(Fe,Pe){return Jn().captureEvent(Fe,Pe)}function sr(Fe,Pe){Jn().addBreadcrumb(Fe,Pe)}function Jo(){return Jn().getClient()}function Qr(){return Jn().getScope()}function Aa(Fe){const Pe=Jo(),St=Bn(),un=Qr(),{release:vi,environment:qe=i}=Pe&&Pe.getOptions()||{},{userAgent:Xi}=n.navigator||{},xt=$e({release:vi,environment:qe,user:un.getUser()||St.getUser(),...Xi&&{userAgent:Xi},...Fe}),jt=St.getSession();return jt&&"ok"===jt.status&&Ve(jt,{status:"exited"}),cs(),St.setSession(xt),un.setSession(xt),xt}function cs(){const Fe=Bn(),Pe=Qr(),St=Pe.getSession()||Fe.getSession();St&&Ce(St),ys(),Fe.setSession(),Pe.setSession()}function ys(){const Fe=Bn(),Pe=Qr(),St=Jo(),un=Pe.getSession()||Fe.getSession();un&&St&&St.captureSession&&St.captureSession(un)}function zr(Fe=!1){Fe?cs():ys()}const Pi=[];function lr(Fe){const Pe=Fe.defaultIntegrations||[],St=Fe.integrations;let un;Pe.forEach(Xi=>{Xi.isDefaultInstance=!0}),un=Array.isArray(St)?[...Pe,...St]:"function"==typeof St?vt(St(Pe)):Pe;const vi=function xo(Fe){const Pe={};return Fe.forEach(St=>{const{name:un}=St,vi=Pe[un];vi&&!vi.isDefaultInstance&&St.isDefaultInstance||(Pe[un]=St)}),Object.keys(Pe).map(St=>Pe[St])}(un),qe=function Is(Fe,Pe){for(let St=0;St<Fe.length;St++)if(!0===Pe(Fe[St]))return St;return-1}(vi,Xi=>"Debug"===Xi.name);if(-1!==qe){const[Xi]=vi.splice(qe,1);vi.push(Xi)}return vi}function Da(Fe,Pe){for(const St of Pe)St&&St.afterAllSetup&&St.afterAllSetup(Fe)}function ia(Fe,Pe,St){if(St[Pe.name])Ii&&Se.log(`Integration skipped because it was already installed: ${Pe.name}`);else{if(St[Pe.name]=Pe,-1===Pi.indexOf(Pe.name)&&(Pe.setupOnce(He,Jn),Pi.push(Pe.name)),Pe.setup&&"function"==typeof Pe.setup&&Pe.setup(Fe),Fe.on&&"function"==typeof Pe.preprocessEvent){const un=Pe.preprocessEvent.bind(Pe);Fe.on("preprocessEvent",(vi,qe)=>un(vi,qe,Fe))}if(Fe.addEventProcessor&&"function"==typeof Pe.processEvent){const un=Pe.processEvent.bind(Pe),vi=Object.assign((qe,Xi)=>un(qe,Xi,Fe),{id:Pe.name});Fe.addEventProcessor(vi)}Ii&&Se.log(`Integration installed: ${Pe.name}`)}}function ba(Fe,Pe){return Object.assign(function(...un){return Pe(...un)},{id:Fe})}const Ca=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Ia=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],wa="InboundFilters",zn=(Fe={})=>({name:wa,setupOnce(){},processEvent(Pe,St,un){const vi=un.getOptions(),qe=function cn(Fe={},Pe={}){return{allowUrls:[...Fe.allowUrls||[],...Pe.allowUrls||[]],denyUrls:[...Fe.denyUrls||[],...Pe.denyUrls||[]],ignoreErrors:[...Fe.ignoreErrors||[],...Pe.ignoreErrors||[],...Fe.disableErrorDefaults?[]:Ca],ignoreTransactions:[...Fe.ignoreTransactions||[],...Pe.ignoreTransactions||[],...Fe.disableTransactionDefaults?[]:Ia],ignoreInternal:void 0===Fe.ignoreInternal||Fe.ignoreInternal}}(Fe,vi);return function Zi(Fe,Pe){return Pe.ignoreInternal&&function Na(Fe){try{return"SentryError"===Fe.exception.values[0].type}catch{}return!1}(Fe)?(Ii&&Se.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${ot(Fe)}`),!0):function Eo(Fe,Pe){return!(Fe.type||!Pe||!Pe.length)&&function Zr(Fe){const Pe=[];let St;Fe.message&&Pe.push(Fe.message);try{St=Fe.exception.values[Fe.exception.values.length-1]}catch{}return St&&St.value&&(Pe.push(St.value),St.type&&Pe.push(`${St.type}: ${St.value}`)),Ii&&0===Pe.length&&Se.error(`Could not extract message for event ${ot(Fe)}`),Pe}(Fe).some(St=>lt(St,Pe))}(Fe,Pe.ignoreErrors)?(Ii&&Se.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${ot(Fe)}`),!0):function oa(Fe,Pe){if("transaction"!==Fe.type||!Pe||!Pe.length)return!1;const St=Fe.transaction;return!!St&&lt(St,Pe)}(Fe,Pe.ignoreTransactions)?(Ii&&Se.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${ot(Fe)}`),!0):function Nr(Fe,Pe){if(!Pe||!Pe.length)return!1;const St=Cl(Fe);return!!St&&lt(St,Pe)}(Fe,Pe.denyUrls)?(Ii&&Se.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${ot(Fe)}.\nUrl: ${Cl(Fe)}`),!0):!function Rs(Fe,Pe){if(!Pe||!Pe.length)return!0;const St=Cl(Fe);return!St||lt(St,Pe)}(Fe,Pe.allowUrls)&&(Ii&&Se.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${ot(Fe)}.\nUrl: ${Cl(Fe)}`),!0)}(Pe,qe)?null:Pe}});function Cl(Fe){try{let Pe;try{Pe=Fe.exception.values[0].stacktrace.frames}catch{}return Pe?function ol(Fe=[]){for(let Pe=Fe.length-1;Pe>=0;Pe--){const St=Fe[Pe];if(St&&"<anonymous>"!==St.filename&&"[native code]"!==St.filename)return St.filename||null}return null}(Pe):null}catch{return Ii&&Se.error(`Cannot extract url for event ${ot(Fe)}`),null}}let Ql;ba(wa,zn);const Ho="FunctionToString",mc=new WeakMap,ps=()=>({name:Ho,setupOnce(){Ql=Function.prototype.toString;try{Function.prototype.toString=function(...Fe){const Pe=Pt(this),St=mc.has(Jo())&&void 0!==Pe?Pe:this;return Ql.apply(St,Fe)}}catch{}},setup(Fe){mc.set(Fe,!0)}});ba(Ho,ps);const $s=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function bc(Fe,Pe=!1){const{host:St,path:un,pass:vi,port:qe,projectId:Xi,protocol:xt,publicKey:jt}=Fe;return`${xt}://${jt}${Pe&&vi?`:${vi}`:""}@${St}${qe?`:${qe}`:""}/${un&&`${un}/`}${Xi}`}function Gs(Fe){return{protocol:Fe.protocol,publicKey:Fe.publicKey||"",pass:Fe.pass||"",host:Fe.host,port:Fe.port||"",path:Fe.path||"",projectId:Fe.projectId}}function Yr(Fe){const Pe="string"==typeof Fe?function ql(Fe){const Pe=$s.exec(Fe);if(!Pe)return void Te(()=>{console.error(`Invalid Sentry Dsn: ${Fe}`)});const[St,un,vi="",qe,Xi="",xt]=Pe.slice(1);let jt="",jn=xt;const ro=jn.split("/");if(ro.length>1&&(jt=ro.slice(0,-1).join("/"),jn=ro.pop()),jn){const Bo=jn.match(/^\d+/);Bo&&(jn=Bo[0])}return Gs({host:qe,pass:vi,path:jt,projectId:jn,port:Xi,protocol:St,publicKey:un})}(Fe):Gs(Fe);if(Pe&&function Dl(Fe){if(!Ke)return!0;const{port:Pe,projectId:St,protocol:un}=Fe;return!(["protocol","publicKey","host","projectId"].find(Xi=>!Fe[Xi]&&(Se.error(`Invalid Sentry Dsn: ${Xi} missing`),!0))||(St.match(/^\d+$/)?function js(Fe){return"http"===Fe||"https"===Fe}(un)?Pe&&isNaN(parseInt(Pe,10))&&(Se.error(`Invalid Sentry Dsn: Invalid port ${Pe}`),1):(Se.error(`Invalid Sentry Dsn: Invalid protocol ${un}`),1):(Se.error(`Invalid Sentry Dsn: Invalid projectId ${St}`),1)))}(Pe))return Pe}const _a="7";function ts(Fe){return`${Fe.protocol?`${Fe.protocol}:`:""}//${Fe.host}${Fe.port?`:${Fe.port}`:""}${Fe.path?`/${Fe.path}`:""}/api/`}function Pl(Fe,Pe={}){const un="string"!=typeof Pe&&Pe._metadata?Pe._metadata.sdk:void 0;return("string"==typeof Pe?Pe:Pe.tunnel)||`${function rl(Fe){return`${ts(Fe)}${Fe.projectId}/envelope/`}(Fe)}?${function ya(Fe,Pe){return function Oe(Fe){return Object.keys(Fe).map(Pe=>`${encodeURIComponent(Pe)}=${encodeURIComponent(Fe[Pe])}`).join("&")}({sentry_key:Fe.publicKey,sentry_version:_a,...Pe&&{sentry_client:`${Pe.name}/${Pe.version}`}})}(Fe,un)}`}const Ml=s();function ks(){if(!("fetch"in Ml))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Ta(Fe){return Fe&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(Fe.toString())}const Ec=s(),Js={},Ms={};function Bs(Fe,Pe){Js[Fe]=Js[Fe]||[],Js[Fe].push(Pe)}function Fr(Fe,Pe){Ms[Fe]||(Pe(),Ms[Fe]=!0)}function nl(Fe,Pe){const St=Fe&&Js[Fe];if(St)for(const un of St)try{un(Pe)}catch(vi){Ke&&Se.error(`Error while triggering instrumentation handler.\nType: ${Fe}\nName: ${xi(un)}\nError:`,vi)}}const hl=n;let Cc;function Zt(Fe){const Pe="history";Bs(Pe,Fe),Fr(Pe,ri)}function ri(){if(!function gr(){const Fe=Ec.chrome;return!(Fe&&Fe.app&&Fe.app.runtime||!("history"in Ec)||!Ec.history.pushState||!Ec.history.replaceState)}())return;const Fe=hl.onpopstate;function Pe(St){return function(...un){const vi=un.length>2?un[2]:void 0;if(vi){const qe=Cc,Xi=String(vi);Cc=Xi,nl("history",{from:qe,to:Xi})}return St.apply(this,un)}}hl.onpopstate=function(...St){const un=hl.location.href,vi=Cc;if(Cc=un,nl("history",{from:vi,to:un}),Fe)try{return Fe.apply(this,St)}catch{}},Vt(hl.history,"pushState",Pe),Vt(hl.history,"replaceState",Pe)}function Mn(Fe,Pe=[]){return[Fe,Pe]}function mi(Fe,Pe){const[St,un]=Fe;return[St,[...un,Pe]]}function Mo(Fe,Pe){const St=Fe[1];for(const un of St)if(Pe(un,un[0].type))return!0;return!1}function Pr(Fe,Pe){return(Pe||new TextEncoder).encode(Fe)}function xa(Fe,Pe){const[St,un]=Fe;let vi=JSON.stringify(St);function qe(Xi){"string"==typeof vi?vi="string"==typeof Xi?vi+Xi:[Pr(vi,Pe),Xi]:vi.push("string"==typeof Xi?Pr(Xi,Pe):Xi)}for(const Xi of un){const[xt,jt]=Xi;if(qe(`\n${JSON.stringify(xt)}\n`),"string"==typeof jt||jt instanceof Uint8Array)qe(jt);else{let jn;try{jn=JSON.stringify(jt)}catch{jn=JSON.stringify(wo(jt))}qe(jn)}}return"string"==typeof vi?vi:function tl(Fe){const Pe=Fe.reduce((vi,qe)=>vi+qe.length,0),St=new Uint8Array(Pe);let un=0;for(const vi of Fe)St.set(vi,un),un+=vi.length;return St}(vi)}function Ts(Fe,Pe){const St="string"==typeof Fe.data?Pr(Fe.data,Pe):Fe.data;return[Rn({type:"attachment",length:St.length,filename:Fe.filename,content_type:Fe.contentType,attachment_type:Fe.attachmentType}),St]}const _s={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"unknown"};function ul(Fe){return _s[Fe]}function qs(Fe){if(!Fe||!Fe.sdk)return;const{name:Pe,version:St}=Fe.sdk;return{name:Pe,version:St}}class pl extends Error{constructor(Pe,St="warn"){super(Pe),this.message=Pe,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=St}}const nt="Not capturing exception because it's already been captured.";class Sn{constructor(Pe){if(this._options=Pe,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],Pe.dsn?this._dsn=Yr(Pe.dsn):Ii&&Se.warn("No DSN provided, client will not send events."),this._dsn){const St=Pl(this._dsn,Pe);this._transport=Pe.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...Pe.transportOptions,url:St})}}captureException(Pe,St,un){if(bn(Pe))return void(Ii&&Se.log(nt));let vi=St&&St.event_id;return this._process(this.eventFromException(Pe,St).then(qe=>this._captureEvent(qe,St,un)).then(qe=>{vi=qe})),vi}captureMessage(Pe,St,un,vi){let qe=un&&un.event_id;const Xi=b(Pe)?Pe:String(Pe),xt=I(Pe)?this.eventFromMessage(Xi,St,un):this.eventFromException(Pe,un);return this._process(xt.then(jt=>this._captureEvent(jt,un,vi)).then(jt=>{qe=jt})),qe}captureEvent(Pe,St,un){if(St&&St.originalException&&bn(St.originalException))return void(Ii&&Se.log(nt));let vi=St&&St.event_id;return this._process(this._captureEvent(Pe,St,(Pe.sdkProcessingMetadata||{}).capturedSpanScope||un).then(xt=>{vi=xt})),vi}captureSession(Pe){"string"!=typeof Pe.release?Ii&&Se.warn("Discarded session because of missing or non-string release"):(this.sendSession(Pe),Ve(Pe,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(Pe){const St=this._transport;return St?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(Pe).then(un=>St.flush(Pe).then(vi=>un&&vi))):En(!0)}close(Pe){return this.flush(Pe).then(St=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),St))}getEventProcessors(){return this._eventProcessors}addEventProcessor(Pe){this._eventProcessors.push(Pe)}setupIntegrations(Pe){(Pe&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(Pe){return this.getIntegrationByName(Pe)}getIntegrationByName(Pe){return this._integrations[Pe]}getIntegration(Pe){try{return this._integrations[Pe.id]||null}catch{return Ii&&Se.warn(`Cannot retrieve integration ${Pe.id} from the current Client`),null}}addIntegration(Pe){const St=this._integrations[Pe.name];ia(this,Pe,this._integrations),St||Da(this,[Pe])}sendEvent(Pe,St={}){this.emit("beforeSendEvent",Pe,St);let un=function or(Fe,Pe,St,un){const vi=qs(St),qe=Fe.type&&"replay_event"!==Fe.type?Fe.type:"event";!function nc(Fe,Pe){Pe&&(Fe.sdk=Fe.sdk||{},Fe.sdk.name=Fe.sdk.name||Pe.name,Fe.sdk.version=Fe.sdk.version||Pe.version,Fe.sdk.integrations=[...Fe.sdk.integrations||[],...Pe.integrations||[]],Fe.sdk.packages=[...Fe.sdk.packages||[],...Pe.packages||[]])}(Fe,St&&St.sdk);const Xi=function Ks(Fe,Pe,St,un){const vi=Fe.sdkProcessingMetadata&&Fe.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:Fe.event_id,sent_at:(new Date).toISOString(),...Pe&&{sdk:Pe},...!!St&&un&&{dsn:bc(un)},...vi&&{trace:Rn({...vi})}}}(Fe,vi,un,Pe);return delete Fe.sdkProcessingMetadata,Mn(Xi,[[{type:qe},Fe]])}(Pe,this._dsn,this._options._metadata,this._options.tunnel);for(const qe of St.attachments||[])un=mi(un,Ts(qe,this._options.transportOptions&&this._options.transportOptions.textEncoder));const vi=this._sendEnvelope(un);vi&&vi.then(qe=>this.emit("afterSendEvent",Pe,qe),null)}sendSession(Pe){const St=function Mi(Fe,Pe,St,un){const vi=qs(St);return Mn({sent_at:(new Date).toISOString(),...vi&&{sdk:vi},...!!un&&Pe&&{dsn:bc(Pe)}},["aggregates"in Fe?[{type:"sessions"},Fe]:[{type:"session"},Fe.toJSON()]])}(Pe,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(St)}recordDroppedEvent(Pe,St,un){if(this._options.sendClientReports){const vi=`${Pe}:${St}`;Ii&&Se.log(`Adding outcome: "${vi}"`),this._outcomes[vi]=this._outcomes[vi]+1||1}}captureAggregateMetrics(Pe){Ii&&Se.log(`Flushing aggregated metrics, number of metrics: ${Pe.length}`);const St=function pn(Fe,Pe,St,un){const vi={sent_at:(new Date).toISOString()};St&&St.sdk&&(vi.sdk={name:St.sdk.name,version:St.sdk.version}),un&&Pe&&(vi.dsn=bc(Pe));const qe=function bo(Fe){const Pe=function Go(Fe){let Pe="";for(const St of Fe){const un=Object.entries(St.tags),vi=un.length>0?`|#${un.map(([qe,Xi])=>`${qe}:${Xi}`).join(",")}`:"";Pe+=`${St.name}@${St.unit}:${St.metric}|${St.metricType}${vi}|T${St.timestamp}\n`}return Pe}(Fe);return[{type:"statsd",length:Pe.length},Pe]}(Fe);return Mn(vi,[qe])}(Pe,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(St)}on(Pe,St){this._hooks[Pe]||(this._hooks[Pe]=[]),this._hooks[Pe].push(St)}emit(Pe,...St){this._hooks[Pe]&&this._hooks[Pe].forEach(un=>un(...St))}_setupIntegrations(){const{integrations:Pe}=this._options;this._integrations=function Ir(Fe,Pe){const St={};return Pe.forEach(un=>{un&&ia(Fe,un,St)}),St}(this,Pe),Da(this,Pe),this._integrationsInitialized=!0}_updateSessionFromEvent(Pe,St){let un=!1,vi=!1;const qe=St.exception&&St.exception.values;if(qe){vi=!0;for(const jt of qe){const jn=jt.mechanism;if(jn&&!1===jn.handled){un=!0;break}}}const Xi="ok"===Pe.status;(Xi&&0===Pe.errors||Xi&&un)&&(Ve(Pe,{...un&&{status:"crashed"},errors:Pe.errors||Number(vi||un)}),this.captureSession(Pe))}_isClientDoneProcessing(Pe){return new yn(St=>{let un=0;const qe=setInterval(()=>{0==this._numProcessing?(clearInterval(qe),St(!0)):(un+=1,Pe&&un>=Pe&&(clearInterval(qe),St(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(Pe,St,un,vi=Bn()){const qe=this.getOptions(),Xi=Object.keys(this._integrations);return!St.integrations&&Xi.length>0&&(St.integrations=Xi),this.emit("preprocessEvent",Pe,St),function Hs(Fe,Pe,St,un,vi,qe){const{normalizeDepth:Xi=3,normalizeMaxBreadth:xt=1e3}=Fe,jt={...Pe,event_id:Pe.event_id||St.event_id||dt(),timestamp:Pe.timestamp||rn()},jn=St.integrations||Fe.integrations.map(Qd=>Qd.name);(function Cs(Fe,Pe){const{environment:St,release:un,dist:vi,maxValueLength:qe=250}=Pe;"environment"in Fe||(Fe.environment="environment"in Pe?St:i),void 0===Fe.release&&void 0!==un&&(Fe.release=un),void 0===Fe.dist&&void 0!==vi&&(Fe.dist=vi),Fe.message&&(Fe.message=Ue(Fe.message,qe));const Xi=Fe.exception&&Fe.exception.values&&Fe.exception.values[0];Xi&&Xi.value&&(Xi.value=Ue(Xi.value,qe));const xt=Fe.request;xt&&xt.url&&(xt.url=Ue(xt.url,qe))})(jt,Fe),function Vs(Fe,Pe){Pe.length>0&&(Fe.sdk=Fe.sdk||{},Fe.sdk.integrations=[...Fe.sdk.integrations||[],...Pe])}(jt,jn),void 0===Pe.type&&function ja(Fe,Pe){const St=n._sentryDebugIds;if(!St)return;let un;const vi=ms.get(Pe);vi?un=vi:(un=new Map,ms.set(Pe,un));const qe=Object.keys(St).reduce((Xi,xt)=>{let jt;const jn=un.get(xt);jn?jt=jn:(jt=Pe(xt),un.set(xt,jt));for(let ro=jt.length-1;ro>=0;ro--){const Bo=jt[ro];if(Bo.filename){Xi[Bo.filename]=St[xt];break}}return Xi},{});try{Fe.exception.values.forEach(Xi=>{Xi.stacktrace.frames.forEach(xt=>{xt.filename&&(xt.debug_id=qe[xt.filename])})})}catch{}}(jt,Fe.stackParser);const ro=function Fa(Fe,Pe){if(!Pe)return Fe;const St=Fe?Fe.clone():new On;return St.update(Pe),St}(un,St.captureContext);St.mechanism&&tn(jt,St.mechanism);const Bo=vi&&vi.getEventProcessors?vi.getEventProcessors():[],jr=function _n(){return Oi||(Oi=new On),Oi}().getScopeData();qe&&vn(jr,qe.getScopeData()),ro&&vn(jr,ro.getScopeData());const Hr=[...St.attachments||[],...jr.attachments];return Hr.length&&(St.attachments=Hr),mo(jt,jr),rt([...Bo,...ln(),...jr.eventProcessors],jt,St).then(Qd=>(Qd&&function el(Fe){const Pe={};try{Fe.exception.values.forEach(un=>{un.stacktrace.frames.forEach(vi=>{vi.debug_id&&(vi.abs_path?Pe[vi.abs_path]=vi.debug_id:vi.filename&&(Pe[vi.filename]=vi.debug_id),delete vi.debug_id)})})}catch{}if(0===Object.keys(Pe).length)return;Fe.debug_meta=Fe.debug_meta||{},Fe.debug_meta.images=Fe.debug_meta.images||[];const St=Fe.debug_meta.images;Object.keys(Pe).forEach(un=>{St.push({type:"sourcemap",code_file:un,debug_id:Pe[un]})})}(Qd),"number"==typeof Xi&&Xi>0?function ls(Fe,Pe,St){if(!Fe)return null;const un={...Fe,...Fe.breadcrumbs&&{breadcrumbs:Fe.breadcrumbs.map(vi=>({...vi,...vi.data&&{data:wo(vi.data,Pe,St)}}))},...Fe.user&&{user:wo(Fe.user,Pe,St)},...Fe.contexts&&{contexts:wo(Fe.contexts,Pe,St)},...Fe.extra&&{extra:wo(Fe.extra,Pe,St)}};return Fe.contexts&&Fe.contexts.trace&&un.contexts&&(un.contexts.trace=Fe.contexts.trace,Fe.contexts.trace.data&&(un.contexts.trace.data=wo(Fe.contexts.trace.data,Pe,St))),Fe.spans&&(un.spans=Fe.spans.map(vi=>{const qe=li(vi).data;return qe&&(vi.data=wo(qe,Pe,St)),vi})),un}(Qd,Xi,xt):Qd))}(qe,Pe,St,un,this,vi).then(xt=>{if(null===xt)return xt;const jt={...vi.getPropagationContext(),...un?un.getPropagationContext():void 0};if((!xt.contexts||!xt.contexts.trace)&&jt){const{traceId:ro,spanId:Bo,parentSpanId:jr,dsc:Hr}=jt;xt.contexts={trace:{trace_id:ro,span_id:Bo,parent_span_id:jr},...xt.contexts};const al=Hr||_o(ro,this,un);xt.sdkProcessingMetadata={dynamicSamplingContext:al,...xt.sdkProcessingMetadata}}return xt})}_captureEvent(Pe,St={},un){return this._processEvent(Pe,St,un).then(vi=>vi.event_id,vi=>{if(Ii){const qe=vi;"log"===qe.logLevel?Se.log(qe.message):Se.warn(qe)}})}_processEvent(Pe,St,un){const vi=this.getOptions(),{sampleRate:qe}=vi,Xi=Ar(Pe),xt=No(Pe),jt=Pe.type||"error",jn=`before send for type \`${jt}\``;if(xt&&"number"==typeof qe&&Math.random()>qe)return this.recordDroppedEvent("sample_rate","error",Pe),co(new pl(`Discarding event because it's not included in the random sample (sampling rate = ${qe})`,"log"));const ro="replay_event"===jt?"replay":jt;return this._prepareEvent(Pe,St,un,(Pe.sdkProcessingMetadata||{}).capturedSpanIsolationScope).then(Hr=>{if(null===Hr)throw this.recordDroppedEvent("event_processor",ro,Pe),new pl("An event processor returned `null`, will not send event.","log");if(St.data&&!0===St.data.__sentry__)return Hr;const Jd=function $i(Fe,Pe,St){const{beforeSend:un,beforeSendTransaction:vi}=Fe;return No(Pe)&&un?un(Pe,St):Ar(Pe)&&vi?vi(Pe,St):Pe}(vi,Hr,St);return function fi(Fe,Pe){const St=`${Pe} must return \`null\` or a valid event.`;if(B(Fe))return Fe.then(un=>{if(!H(un)&&null!==un)throw new pl(St);return un},un=>{throw new pl(`${Pe} rejected with ${un}`)});if(!H(Fe)&&null!==Fe)throw new pl(St);return Fe}(Jd,jn)}).then(Hr=>{if(null===Hr)throw this.recordDroppedEvent("before_send",ro,Pe),new pl(`${jn} returned \`null\`, will not send event.`,"log");const al=un&&un.getSession();!Xi&&al&&this._updateSessionFromEvent(al,Hr);const Jd=Hr.transaction_info;if(Xi&&Jd&&Hr.transaction!==Pe.transaction){const Qd="custom";Hr.transaction_info={...Jd,source:Qd}}return this.sendEvent(Hr,St),Hr}).then(null,Hr=>{throw Hr instanceof pl?Hr:(this.captureException(Hr,{data:{__sentry__:!0},originalException:Hr}),new pl(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${Hr}`))})}_process(Pe){this._numProcessing++,Pe.then(St=>(this._numProcessing--,St),St=>(this._numProcessing--,St))}_sendEnvelope(Pe){if(this.emit("beforeEnvelope",Pe),this._isEnabled()&&this._transport)return this._transport.send(Pe).then(null,St=>{Ii&&Se.error("Error while sending event:",St)});Ii&&Se.error("Transport disabled")}_clearOutcomes(){const Pe=this._outcomes;return this._outcomes={},Object.keys(Pe).map(St=>{const[un,vi]=St.split(":");return{reason:un,category:vi,quantity:Pe[St]}})}}function No(Fe){return void 0===Fe.type}function Ar(Fe){return"transaction"===Fe.type}function Sr(Fe,Pe,St=[Pe],un="npm"){const vi=Fe._metadata||{};vi.sdk||(vi.sdk={name:`sentry.javascript.${Pe}`,packages:St.map(qe=>({name:`${un}:@sentry/${qe}`,version:Wt})),version:Wt}),Fe._metadata=vi}const il=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function ac(Fe,Pe){const St=Kl(Fe,Pe),un={type:Pe&&Pe.name,value:tm(Pe)};return St.length&&(un.stacktrace={frames:St}),void 0===un.type&&""===un.value&&(un.value="Unrecoverable error caught"),un}function em(Fe,Pe){return{exception:{values:[ac(Fe,Pe)]}}}function Kl(Fe,Pe){const St=Pe.stacktrace||Pe.stack||"",un=function ll(Fe){if(Fe){if("number"==typeof Fe.framesToPop)return Fe.framesToPop;if(xl.test(Fe.message))return 1}return 0}(Pe);try{return Fe(St,un)}catch{}return[]}const xl=/Minified React error #\d+;/i;function tm(Fe){const Pe=Fe&&Fe.message;return Pe?Pe.error&&"string"==typeof Pe.error.message?Pe.error.message:Pe:"No error message"}function _c(Fe,Pe,St,un,vi){let qe;if(o(Pe)&&Pe.error)return em(Fe,Pe.error);if(x(Pe)||function u(Fe){return c(Fe,"DOMException")}(Pe)){const Xi=Pe;if("stack"in Pe)qe=em(Fe,Pe);else{const xt=Xi.name||(x(Xi)?"DOMError":"DOMException"),jt=Xi.message?`${xt}: ${Xi.message}`:xt;qe=wc(Fe,jt,St,un),ct(qe,jt)}return"code"in Xi&&(qe.tags={...qe.tags,"DOMException.code":`${Xi.code}`}),qe}return p(Pe)?em(Fe,Pe):H(Pe)||O(Pe)?(qe=function Nl(Fe,Pe,St,un){const vi=Jo(),qe=vi&&vi.getOptions().normalizeDepth,Xi={exception:{values:[{type:O(Pe)?Pe.constructor.name:un?"UnhandledRejection":"Error",value:nm(Pe,{isUnhandledRejection:un})}]},extra:{__serialized__:Ei(Pe,qe)}};if(St){const xt=Kl(Fe,St);xt.length&&(Xi.exception.values[0].stacktrace={frames:xt})}return Xi}(Fe,Pe,St,vi),tn(qe,{synthetic:!0}),qe):(qe=wc(Fe,Pe,St,un),ct(qe,`${Pe}`,void 0),tn(qe,{synthetic:!0}),qe)}function wc(Fe,Pe,St,un){const vi={};if(un&&St){const qe=Kl(Fe,St);qe.length&&(vi.exception={values:[{value:Pe,stacktrace:{frames:qe}}]})}if(b(Pe)){const{__sentry_template_string__:qe,__sentry_template_values__:Xi}=Pe;return vi.logentry={message:qe,params:Xi},vi}return vi.message=Pe,vi}function nm(Fe,{isUnhandledRejection:Pe}){const St=function Dt(Fe,Pe=40){const St=Object.keys(ye(Fe));if(St.sort(),!St.length)return"[object has no keys]";if(St[0].length>=Pe)return Ue(St[0],Pe);for(let un=St.length;un>0;un--){const vi=St.slice(0,un).join(", ");if(!(vi.length>Pe))return un===St.length?vi:Ue(vi,Pe)}return""}(Fe),un=Pe?"promise rejection":"exception";return o(Fe)?`Event \`ErrorEvent\` captured as ${un} with message \`${Fe.message}\``:O(Fe)?`Event \`${function Id(Fe){try{const Pe=Object.getPrototypeOf(Fe);return Pe?Pe.constructor.name:void 0}catch{}}(Fe)}\` (type=${Fe.type}) captured as ${un}`:`Object captured as ${un} with keys: ${St}`}const Ns=n;let Uc=0;function dn(){return Uc>0}function mn(Fe,Pe={},St){if("function"!=typeof Fe)return Fe;try{const vi=Fe.__sentry_wrapped__;if(vi)return vi;if(Pt(Fe))return Fe}catch{return Fe}const un=function(){const vi=Array.prototype.slice.call(arguments);try{St&&"function"==typeof St&&St.apply(this,arguments);const qe=vi.map(Xi=>mn(Xi,Pe));return Fe.apply(this,qe)}catch(qe){throw function Mr(){Uc++,setTimeout(()=>{Uc--})}(),function yr(...Fe){const Pe=Jn();if(2===Fe.length){const[St,un]=Fe;return Pe.withScope(St?()=>(Pe.getStackTop().scope=St,un(St)):un)}return Pe.withScope(Fe[0])}(Xi=>{Xi.addEventProcessor(xt=>(Pe.mechanism&&(ct(xt,void 0,void 0),tn(xt,Pe.mechanism)),xt.extra={...xt.extra,arguments:vi},xt)),Ua(qe)}),qe}};try{for(const vi in Fe)Object.prototype.hasOwnProperty.call(Fe,vi)&&(un[vi]=Fe[vi])}catch{}Z(un,Fe),r(Fe,"__sentry_wrapped__",un);try{Object.getOwnPropertyDescriptor(un,"name").configurable&&Object.defineProperty(un,"name",{get:()=>Fe.name})}catch{}return un}class Io extends Sn{constructor(Pe){Sr(Pe,"browser",["browser"],Ns.SENTRY_SDK_SOURCE||"npm"),super(Pe),Pe.sendClientReports&&Ns.document&&Ns.document.addEventListener("visibilitychange",()=>{"hidden"===Ns.document.visibilityState&&this._flushOutcomes()})}eventFromException(Pe,St){return function Nc(Fe,Pe,St,un){const qe=_c(Fe,Pe,St&&St.syntheticException||void 0,un);return tn(qe),qe.level="error",St&&St.event_id&&(qe.event_id=St.event_id),En(qe)}(this._options.stackParser,Pe,St,this._options.attachStacktrace)}eventFromMessage(Pe,St="info",un){return function Dd(Fe,Pe,St="info",un,vi){const Xi=wc(Fe,Pe,un&&un.syntheticException||void 0,vi);return Xi.level=St,un&&un.event_id&&(Xi.event_id=un.event_id),En(Xi)}(this._options.stackParser,Pe,St,un,this._options.attachStacktrace)}captureUserFeedback(Pe){if(!this._isEnabled())return void(il&&Se.warn("SDK not enabled, will not capture user feedback."));const St=function Nn(Fe,{metadata:Pe,tunnel:St,dsn:un}){const vi={event_id:Fe.event_id,sent_at:(new Date).toISOString(),...Pe&&Pe.sdk&&{sdk:{name:Pe.sdk.name,version:Pe.sdk.version}},...!!St&&!!un&&{dsn:bc(un)}},qe=function Ci(Fe){return[{type:"user_report"},Fe]}(Fe);return Mn(vi,[qe])}(Pe,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(St)}_prepareEvent(Pe,St,un){return Pe.platform=Pe.platform||"javascript",super._prepareEvent(Pe,St,un)}_flushOutcomes(){const Pe=this._clearOutcomes();if(0===Pe.length)return void(il&&Se.log("No outcomes to send"));if(!this._dsn)return void(il&&Se.log("No dsn provided, will not send outcomes"));il&&Se.log("Sending outcomes:",Pe);const St=function Fs(Fe,Pe,St){return Mn(Pe?{dsn:Pe}:{},[[{type:"client_report"},{timestamp:St||rn(),discarded_events:Fe}]])}(Pe,this._options.tunnel&&bc(this._dsn));this._sendEnvelope(St)}}function ra(){"console"in n&&Le.forEach(function(Fe){Fe in n.console&&Vt(n.console,Fe,function(Pe){return R[Fe]=Pe,function(...St){nl("console",{args:St,level:Fe});const vi=R[Fe];vi&&vi.apply(n.console,St)}})})}const $a=n,xe=1e3;let h,k,se;function Ae(){if(!$a.document)return;const Fe=nl.bind(null,"dom"),Pe=Mt(Fe,!0);$a.document.addEventListener("click",Pe,!1),$a.document.addEventListener("keypress",Pe,!1),["EventTarget","Node"].forEach(St=>{const un=$a[St]&&$a[St].prototype;!un||!un.hasOwnProperty||!un.hasOwnProperty("addEventListener")||(Vt(un,"addEventListener",function(vi){return function(qe,Xi,xt){if("click"===qe||"keypress"==qe)try{const jt=this,jn=jt.__sentry_instrumentation_handlers__=jt.__sentry_instrumentation_handlers__||{},ro=jn[qe]=jn[qe]||{refCount:0};if(!ro.handler){const Bo=Mt(Fe);ro.handler=Bo,vi.call(this,qe,Bo,xt)}ro.refCount++}catch{}return vi.call(this,qe,Xi,xt)}}),Vt(un,"removeEventListener",function(vi){return function(qe,Xi,xt){if("click"===qe||"keypress"==qe)try{const jt=this,jn=jt.__sentry_instrumentation_handlers__||{},ro=jn[qe];ro&&(ro.refCount--,ro.refCount<=0&&(vi.call(this,qe,ro.handler,xt),ro.handler=void 0,delete jn[qe]),0===Object.keys(jn).length&&delete jt.__sentry_instrumentation_handlers__)}catch{}return vi.call(this,qe,Xi,xt)}}))})}function Mt(Fe,Pe=!1){return St=>{if(!St||St._sentryCaptured)return;const un=function fn(Fe){try{return Fe.target}catch{return null}}(St);if(function wt(Fe,Pe){return!("keypress"!==Fe||Pe&&Pe.tagName&&("INPUT"===Pe.tagName||"TEXTAREA"===Pe.tagName||Pe.isContentEditable))}(St.type,un))return;r(St,"_sentryCaptured",!0),un&&!un._sentryId&&r(un,"_sentryId",dt());const vi="keypress"===St.type?"input":St.type;(function Ct(Fe){if(Fe.type!==k)return!1;try{if(!Fe.target||Fe.target._sentryId!==se)return!1}catch{}return!0})(St)||(Fe({event:St,name:vi,global:Pe}),k=St.type,se=un?un._sentryId:void 0),clearTimeout(h),h=$a.setTimeout(()=>{se=void 0,k=void 0},xe)}}const Qn=n,ei="__sentry_xhr_v3__";function zi(){if(!Qn.XMLHttpRequest)return;const Fe=XMLHttpRequest.prototype;Vt(Fe,"open",function(Pe){return function(...St){const un=Date.now(),vi=m(St[0])?St[0].toUpperCase():void 0,qe=function Be(Fe){if(m(Fe))return Fe;try{return Fe.toString()}catch{}}(St[1]);if(!vi||!qe)return Pe.apply(this,St);this[ei]={method:vi,url:qe,request_headers:{}},"POST"===vi&&qe.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const Xi=()=>{const xt=this[ei];if(xt&&4===this.readyState){try{xt.status_code=this.status}catch{}nl("xhr",{args:[vi,qe],endTimestamp:Date.now(),startTimestamp:un,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?Vt(this,"onreadystatechange",function(xt){return function(...jt){return Xi(),xt.apply(this,jt)}}):this.addEventListener("readystatechange",Xi),Vt(this,"setRequestHeader",function(xt){return function(...jt){const[jn,ro]=jt,Bo=this[ei];return Bo&&m(jn)&&m(ro)&&(Bo.request_headers[jn.toLowerCase()]=ro),xt.apply(this,jt)}}),Pe.apply(this,St)}}),Vt(Fe,"send",function(Pe){return function(...St){const un=this[ei];return un?(void 0!==St[0]&&(un.body=St[0]),nl("xhr",{args:[un.method,un.url],startTimestamp:Date.now(),xhr:this}),Pe.apply(this,St)):Pe.apply(this,St)}})}function Ye(){(function ds(){if("string"==typeof EdgeRuntime)return!0;if(!ks())return!1;if(Ta(Ml.fetch))return!0;let Fe=!1;const Pe=Ml.document;if(Pe&&"function"==typeof Pe.createElement)try{const St=Pe.createElement("iframe");St.hidden=!0,Pe.head.appendChild(St),St.contentWindow&&St.contentWindow.fetch&&(Fe=Ta(St.contentWindow.fetch)),Pe.head.removeChild(St)}catch(St){Ke&&Se.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",St)}return Fe})()&&Vt(n,"fetch",function(Fe){return function(...Pe){const{method:St,url:un}=function en(Fe){if(0===Fe.length)return{method:"GET",url:""};if(2===Fe.length){const[St,un]=Fe;return{url:Kt(St),method:ut(un,"method")?String(un.method).toUpperCase():"GET"}}const Pe=Fe[0];return{url:Kt(Pe),method:ut(Pe,"method")?String(Pe.method).toUpperCase():"GET"}}(Pe),vi={args:Pe,fetchData:{method:St,url:un},startTimestamp:Date.now()};return nl("fetch",{...vi}),Fe.apply(n,Pe).then(qe=>(nl("fetch",{...vi,endTimestamp:Date.now(),response:qe}),qe),qe=>{throw nl("fetch",{...vi,endTimestamp:Date.now(),error:qe}),qe})}})}function ut(Fe,Pe){return!!Fe&&"object"==typeof Fe&&!!Fe[Pe]}function Kt(Fe){return"string"==typeof Fe?Fe:Fe?ut(Fe,"url")?Fe.url:Fe.toString?Fe.toString():"":""}const qn=["fatal","error","warning","log","info","debug"];function gi(Fe){return"warn"===Fe?"warning":qn.includes(Fe)?Fe:"log"}function ko(Fe){if(!Fe)return{};const Pe=Fe.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!Pe)return{};const St=Pe[6]||"",un=Pe[8]||"";return{host:Pe[4],path:Pe[5],protocol:Pe[2],search:St,hash:un,relative:Pe[5]+St+un}}const ga="Breadcrumbs",Rr=(Fe={})=>{const Pe={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...Fe};return{name:ga,setupOnce(){},setup(St){Pe.console&&function cr(Fe){const Pe="console";Bs(Pe,Fe),Fr(Pe,ra)}(function qa(Fe){return function(St){if(Jo()!==Fe)return;const un={category:"console",data:{arguments:St.args,logger:"console"},level:gi(St.level),message:et(St.args," ")};if("assert"===St.level){if(!1!==St.args[0])return;un.message=`Assertion failed: ${et(St.args.slice(1)," ")||"console.assert"}`,un.data.arguments=St.args.slice(1)}sr(un,{input:St.args,level:St.level})}}(St)),Pe.dom&&function de(Fe){Bs("dom",Fe),Fr("dom",Ae)}(function Ys(Fe,Pe){return function(un){if(Jo()!==Fe)return;let vi,qe,Xi="object"==typeof Pe?Pe.serializeAttribute:void 0,xt="object"==typeof Pe&&"number"==typeof Pe.maxStringLength?Pe.maxStringLength:void 0;xt&&xt>1024&&(il&&Se.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${xt} was configured. Sentry will use 1024 instead.`),xt=1024),"string"==typeof Xi&&(Xi=[Xi]);try{const jn=un.event,ro=function md(Fe){return!!Fe&&!!Fe.target}(jn)?jn.target:jn;vi=ne(ro,{keyAttrs:Xi,maxStringLength:xt}),qe=function ge(Fe){if(!Y.HTMLElement)return null;let Pe=Fe;for(let un=0;un<5;un++){if(!Pe)return null;if(Pe instanceof HTMLElement&&Pe.dataset.sentryComponent)return Pe.dataset.sentryComponent;Pe=Pe.parentNode}return null}(ro)}catch{vi="<unknown>"}if(0===vi.length)return;const jt={category:`ui.${un.name}`,message:vi};qe&&(jt.data={"ui.component_name":qe}),sr(jt,{event:un.event,name:un.name,global:un.global})}}(St,Pe.dom)),Pe.xhr&&function bi(Fe){Bs("xhr",Fe),Fr("xhr",zi)}(function Qs(Fe){return function(St){if(Jo()!==Fe)return;const{startTimestamp:un,endTimestamp:vi}=St,qe=St.xhr[ei];if(!un||!vi||!qe)return;const{method:Xi,url:xt,status_code:jt,body:jn}=qe;sr({category:"xhr",data:{method:Xi,url:xt,status_code:jt},type:"http"},{xhr:St.xhr,input:jn,startTimestamp:un,endTimestamp:vi})}}(St)),Pe.fetch&&function pt(Fe){Bs("fetch",Fe),Fr("fetch",Ye)}(function ic(Fe){return function(St){if(Jo()!==Fe)return;const{startTimestamp:un,endTimestamp:vi}=St;if(vi&&(!St.fetchData.url.match(/sentry_key/)||"POST"!==St.fetchData.method))if(St.error)sr({category:"fetch",data:St.fetchData,level:"error",type:"http"},{data:St.error,input:St.args,startTimestamp:un,endTimestamp:vi});else{const qe=St.response;sr({category:"fetch",data:{...St.fetchData,status_code:qe&&qe.status},type:"http"},{input:St.args,response:qe,startTimestamp:un,endTimestamp:vi})}}}(St)),Pe.history&&Zt(function wl(Fe){return function(St){if(Jo()!==Fe)return;let un=St.from,vi=St.to;const qe=ko(Ns.location.href);let Xi=un?ko(un):void 0;const xt=ko(vi);(!Xi||!Xi.path)&&(Xi=qe),qe.protocol===xt.protocol&&qe.host===xt.host&&(vi=xt.relative),qe.protocol===Xi.protocol&&qe.host===Xi.host&&(un=Xi.relative),sr({category:"navigation",data:{from:un,to:vi}})}}(St)),Pe.sentry&&St.on&&St.on("beforeSendEvent",function Es(Fe){return function(St){Jo()===Fe&&sr({category:"sentry."+("transaction"===St.type?"transaction":"event"),event_id:St.event_id,level:St.level,message:ot(St)},{event:St})}}(St))}}};ba(ga,Rr);const Wc=()=>{let Fe;return{name:"Dedupe",setupOnce(){},processEvent(Pe){if(Pe.type)return Pe;try{if(function Vl(Fe,Pe){return!(!Pe||!function zc(Fe,Pe){const St=Fe.message,un=Pe.message;return!(!St&&!un||St&&!un||!St&&un||St!==un||!Ac(Fe,Pe)||!Bc(Fe,Pe))}(Fe,Pe)&&!function Il(Fe,Pe){const St=Xl(Pe),un=Xl(Fe);return!!(St&&un&&St.type===un.type&&St.value===un.value&&Ac(Fe,Pe)&&Bc(Fe,Pe))}(Fe,Pe))}(Pe,Fe))return il&&Se.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return Fe=Pe}}};function Bc(Fe,Pe){let St=uc(Fe),un=uc(Pe);if(!St&&!un)return!0;if(St&&!un||!St&&un||un.length!==St.length)return!1;for(let vi=0;vi<un.length;vi++){const qe=un[vi],Xi=St[vi];if(qe.filename!==Xi.filename||qe.lineno!==Xi.lineno||qe.colno!==Xi.colno||qe.function!==Xi.function)return!1}return!0}function Ac(Fe,Pe){let St=Fe.fingerprint,un=Pe.fingerprint;if(!St&&!un)return!0;if(St&&!un||!St&&un)return!1;try{return St.join("")===un.join("")}catch{return!1}}function Xl(Fe){return Fe.exception&&Fe.exception.values&&Fe.exception.values[0]}function uc(Fe){const Pe=Fe.exception;if(Pe)try{return Pe.values[0].stacktrace.frames}catch{return}}ba("Dedupe",Wc);let Oc=null;function pc(){Oc=n.onerror,n.onerror=function(Fe,Pe,St,un,vi){return nl("error",{column:un,error:vi,line:St,msg:Fe,url:Pe}),!(!Oc||Oc.__SENTRY_LOADER__)&&Oc.apply(this,arguments)},n.onerror.__SENTRY_INSTRUMENTED__=!0}let Ul=null;function ec(){Ul=n.onunhandledrejection,n.onunhandledrejection=function(Fe){return nl("unhandledrejection",Fe),!(Ul&&!Ul.__SENTRY_LOADER__)||Ul.apply(this,arguments)},n.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const vd="GlobalHandlers",Sd=(Fe={})=>{const Pe={onerror:!0,onunhandledrejection:!0,...Fe};return{name:vd,setupOnce(){Error.stackTraceLimit=50},setup(St){Pe.onerror&&(function mm(Fe){!function jc(Fe){Bs("error",Fe),Fr("error",pc)}(Pe=>{const{stackParser:St,attachStacktrace:un}=Zc();if(Jo()!==Fe||dn())return;const{msg:vi,url:qe,line:Xi,column:xt,error:jt}=Pe,jn=void 0===jt&&m(vi)?function Km(Fe,Pe,St,un){let qe=o(Fe)?Fe.message:Fe,Xi="Error";const xt=qe.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return xt&&(Xi=xt[1],qe=xt[2]),um({exception:{values:[{type:Xi,value:qe}]}},Pe,St,un)}(vi,qe,Xi,xt):um(_c(St,jt||vi,void 0,un,!1),qe,Xi,xt);jn.level="error",Qi(jn,{originalException:jt,mechanism:{handled:!1,type:"onerror"}})})}(St),ad("onerror")),Pe.onunhandledrejection&&(function hu(Fe){!function Xc(Fe){const Pe="unhandledrejection";Bs(Pe,Fe),Fr(Pe,ec)}(Pe=>{const{stackParser:St,attachStacktrace:un}=Zc();if(Jo()!==Fe||dn())return;const vi=function Fd(Fe){if(I(Fe))return Fe;const Pe=Fe;try{if("reason"in Pe)return Pe.reason;if("detail"in Pe&&"reason"in Pe.detail)return Pe.detail.reason}catch{}return Fe}(Pe),qe=I(vi)?function tc(Fe){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(Fe)}`}]}}}(vi):_c(St,vi,void 0,un,!0);qe.level="error",Qi(qe,{originalException:vi,mechanism:{handled:!1,type:"onunhandledrejection"}})})}(St),ad("onunhandledrejection"))}}};function um(Fe,Pe,St,un){const vi=Fe.exception=Fe.exception||{},qe=vi.values=vi.values||[],Xi=qe[0]=qe[0]||{},xt=Xi.stacktrace=Xi.stacktrace||{},jt=xt.frames=xt.frames||[],jn=isNaN(parseInt(un,10))?void 0:un,ro=isNaN(parseInt(St,10))?void 0:St,Bo=m(Pe)&&Pe.length>0?Pe:function $(){try{return Y.document.location.href}catch{return""}}();return 0===jt.length&&jt.push({colno:jn,filename:Bo,function:"?",in_app:!0,lineno:ro}),Fe}function ad(Fe){il&&Se.log(`Global Handler attached: ${Fe}`)}function Zc(){const Fe=Jo();return Fe&&Fe.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}ba(vd,Sd);const Cd="HttpContext",om=()=>({name:Cd,setupOnce(){},preprocessEvent(Fe){if(!Ns.navigator&&!Ns.location&&!Ns.document)return;const Pe=Fe.request&&Fe.request.url||Ns.location&&Ns.location.href,{referrer:St}=Ns.document||{},{userAgent:un}=Ns.navigator||{},vi={...Fe.request&&Fe.request.headers,...St&&{Referer:St},...un&&{"User-Agent":un}},qe={...Fe.request,...Pe&&{url:Pe},headers:vi};Fe.request=qe}});function Ld(Fe,Pe,St=250,un,vi,qe,Xi){if(!(qe.exception&&qe.exception.values&&Xi&&q(Xi.originalException,Error)))return;const xt=qe.exception.values.length>0?qe.exception.values[qe.exception.values.length-1]:void 0;xt&&(qe.exception.values=function Nm(Fe,Pe){return Fe.map(St=>(St.value&&(St.value=Ue(St.value,Pe)),St))}(jd(Fe,Pe,vi,Xi.originalException,un,qe.exception.values,xt,0),St))}function jd(Fe,Pe,St,un,vi,qe,Xi,xt){if(qe.length>=St+1)return qe;let jt=[...qe];if(q(un[vi],Error)){Ud(Xi,xt);const jn=Fe(Pe,un[vi]),ro=jt.length;km(jn,vi,ro,xt),jt=jd(Fe,Pe,St,un[vi],vi,[jn,...jt],jn,ro)}return Array.isArray(un.errors)&&un.errors.forEach((jn,ro)=>{if(q(jn,Error)){Ud(Xi,xt);const Bo=Fe(Pe,jn),jr=jt.length;km(Bo,`errors[${ro}]`,jr,xt),jt=jd(Fe,Pe,St,jn,vi,[Bo,...jt],Bo,jr)}}),jt}function Ud(Fe,Pe){Fe.mechanism=Fe.mechanism||{type:"generic",handled:!0},Fe.mechanism={...Fe.mechanism,..."AggregateError"===Fe.type&&{is_exception_group:!0},exception_id:Pe}}function km(Fe,Pe,St,un){Fe.mechanism=Fe.mechanism||{type:"generic",handled:!0},Fe.mechanism={...Fe.mechanism,type:"chained",source:Pe,exception_id:St,parent_id:un}}ba(Cd,om);const Kd="LinkedErrors",ed=(Fe={})=>{const Pe=Fe.limit||5,St=Fe.key||"cause";return{name:Kd,setupOnce(){},preprocessEvent(un,vi,qe){const Xi=qe.getOptions();Ld(ac,Xi.stackParser,Xi.maxValueLength,St,Pe,un,vi)}}},_m=(ba(Kd,ed),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"]),qm="TryCatch",Um=(Fe={})=>{const Pe={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...Fe};return{name:qm,setupOnce(){Pe.setTimeout&&Vt(Ns,"setTimeout",Kc),Pe.setInterval&&Vt(Ns,"setInterval",Kc),Pe.requestAnimationFrame&&Vt(Ns,"requestAnimationFrame",fm),Pe.XMLHttpRequest&&"XMLHttpRequest"in Ns&&Vt(XMLHttpRequest.prototype,"send",Nu);const St=Pe.eventTarget;St&&(Array.isArray(St)?St:_m).forEach(yd)}}};function Kc(Fe){return function(...Pe){return Pe[0]=mn(Pe[0],{mechanism:{data:{function:xi(Fe)},handled:!1,type:"instrument"}}),Fe.apply(this,Pe)}}function fm(Fe){return function(Pe){return Fe.apply(this,[mn(Pe,{mechanism:{data:{function:"requestAnimationFrame",handler:xi(Fe)},handled:!1,type:"instrument"}})])}}function Nu(Fe){return function(...Pe){const St=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(vi=>{vi in St&&"function"==typeof St[vi]&&Vt(St,vi,function(qe){const Xi={mechanism:{data:{function:vi,handler:xi(qe)},handled:!1,type:"instrument"}},xt=Pt(qe);return xt&&(Xi.mechanism.data.handler=xi(xt)),mn(qe,Xi)})}),Fe.apply(this,Pe)}}function yd(Fe){const St=Ns[Fe]&&Ns[Fe].prototype;!St||!St.hasOwnProperty||!St.hasOwnProperty("addEventListener")||(Vt(St,"addEventListener",function(un){return function(vi,qe,Xi){try{"function"==typeof qe.handleEvent&&(qe.handleEvent=mn(qe.handleEvent,{mechanism:{data:{function:"handleEvent",handler:xi(qe),target:Fe},handled:!1,type:"instrument"}}))}catch{}return un.apply(this,[vi,mn(qe,{mechanism:{data:{function:"addEventListener",handler:xi(qe),target:Fe},handled:!1,type:"instrument"}}),Xi])}}),Vt(St,"removeEventListener",function(un){return function(vi,qe,Xi){const xt=qe;try{const jt=xt&&xt.__sentry_wrapped__;jt&&un.call(this,vi,jt,Xi)}catch{}return un.call(this,vi,xt,Xi)}}))}function Bm(Fe,Pe,St,un){const vi={filename:Fe,function:Pe,in_app:!0};return void 0!==St&&(vi.lineno=St),void 0!==un&&(vi.colno=un),vi}ba(qm,Um);const Am=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,hm=/\((\S*)(?::(\d+))(?::(\d+))\)/,ld=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,eu=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Zu=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Jt=Wr([30,Fe=>{const Pe=Am.exec(Fe);if(Pe){if(Pe[2]&&0===Pe[2].indexOf("eval")){const qe=hm.exec(Pe[2]);qe&&(Pe[2]=qe[1],Pe[3]=qe[2],Pe[4]=qe[3])}const[un,vi]=he(Pe[1]||"?",Pe[2]);return Bm(vi,un,Pe[3]?+Pe[3]:void 0,Pe[4]?+Pe[4]:void 0)}}],[50,Fe=>{const Pe=ld.exec(Fe);if(Pe){if(Pe[3]&&Pe[3].indexOf(" > eval")>-1){const qe=eu.exec(Pe[3]);qe&&(Pe[1]=Pe[1]||"eval",Pe[3]=qe[1],Pe[4]=qe[2],Pe[5]="")}let un=Pe[3],vi=Pe[1]||"?";return[vi,un]=he(vi,un),Bm(un,vi,Pe[4]?+Pe[4]:void 0,Pe[5]?+Pe[5]:void 0)}}],[40,Fe=>{const Pe=Zu.exec(Fe);return Pe?Bm(Pe[2],Pe[1]||"?",+Pe[3],Pe[4]?+Pe[4]:void 0):void 0}]),he=(Fe,Pe)=>{const St=-1!==Fe.indexOf("safari-extension"),un=-1!==Fe.indexOf("safari-web-extension");return St||un?[-1!==Fe.indexOf("@")?Fe.split("@")[0]:"?",St?`safari-extension:${Pe}`:`safari-web-extension:${Pe}`]:[Fe,Pe]};const Qe=6e4;const rr=30;function Oa(Fe,Pe,St=function Re(Fe){const Pe=[];function un(Xi){return Pe.splice(Pe.indexOf(Xi),1)[0]}return{$:Pe,add:function vi(Xi){if(!function St(){return void 0===Fe||Pe.length<Fe}())return co(new pl("Not adding Promise because buffer limit was reached."));const xt=Xi();return-1===Pe.indexOf(xt)&&Pe.push(xt),xt.then(()=>un(xt)).then(null,()=>un(xt).then(null,()=>{})),xt},drain:function qe(Xi){return new yn((xt,jt)=>{let jn=Pe.length;if(!jn)return xt(!0);const ro=setTimeout(()=>{Xi&&Xi>0&&xt(!1)},Xi);Pe.forEach(Bo=>{En(Bo).then(()=>{--jn||(clearTimeout(ro),xt(!0))},jt)})})}}}(Fe.bufferSize||rr)){let un={};function qe(Xi){const xt=[];if(Mo(Xi,(Bo,jr)=>{const Hr=ul(jr);if(function Lo(Fe,Pe,St=Date.now()){return function qt(Fe,Pe){return Fe[Pe]||Fe.all||0}(Fe,Pe)>St}(un,Hr)){const al=Pa(Bo,jr);Fe.recordDroppedEvent("ratelimit_backoff",Hr,al)}else xt.push(Bo)}),0===xt.length)return En();const jt=Mn(Xi[0],xt),jn=Bo=>{Mo(jt,(jr,Hr)=>{const al=Pa(jr,Hr);Fe.recordDroppedEvent(Bo,ul(Hr),al)})};return St.add(()=>Pe({body:xa(jt,Fe.textEncoder)}).then(Bo=>(void 0!==Bo.statusCode&&(Bo.statusCode<200||Bo.statusCode>=300)&&Ii&&Se.warn(`Sentry responded with status code ${Bo.statusCode} to sent event.`),un=function ur(Fe,{statusCode:Pe,headers:St},un=Date.now()){const vi={...Fe},qe=St&&St["x-sentry-rate-limits"],Xi=St&&St["retry-after"];if(qe)for(const xt of qe.trim().split(",")){const[jt,jn]=xt.split(":",2),ro=parseInt(jt,10),Bo=1e3*(isNaN(ro)?60:ro);if(jn)for(const jr of jn.split(";"))vi[jr]=un+Bo;else vi.all=un+Bo}else Xi?vi.all=un+function Ht(Fe,Pe=Date.now()){const St=parseInt(`${Fe}`,10);if(!isNaN(St))return 1e3*St;const un=Date.parse(`${Fe}`);return isNaN(un)?Qe:un-Pe}(Xi,un):429===Pe&&(vi.all=un+6e4);return vi}(un,Bo),Bo),Bo=>{throw jn("network_error"),Bo})).then(Bo=>Bo,Bo=>{if(Bo instanceof pl)return Ii&&Se.error("Skipped sending event because buffer is full."),jn("queue_overflow"),En();throw Bo})}return qe.__sentry__baseTransport__=!0,{send:qe,flush:Xi=>St.drain(Xi)}}function Pa(Fe,Pe){if("event"===Pe||"transaction"===Pe)return Array.isArray(Fe)?Fe[1]:void 0}let Ja;function Ic(Fe,Pe=function fs(){if(Ja)return Ja;if(Ta(Ns.fetch))return Ja=Ns.fetch.bind(Ns);const Fe=Ns.document;let Pe=Ns.fetch;if(Fe&&"function"==typeof Fe.createElement)try{const St=Fe.createElement("iframe");St.hidden=!0,Fe.head.appendChild(St);const un=St.contentWindow;un&&un.fetch&&(Pe=un.fetch),Fe.head.removeChild(St)}catch(St){il&&Se.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",St)}return Ja=Pe.bind(Ns)}()){let St=0,un=0;return Oa(Fe,function vi(qe){const Xi=qe.body.length;St+=Xi,un++;const xt={body:qe.body,method:"POST",referrerPolicy:"origin",headers:Fe.headers,keepalive:St<=6e4&&un<15,...Fe.fetchOptions};try{return Pe(Fe.url,xt).then(jt=>(St-=Xi,un--,{statusCode:jt.status,headers:{"x-sentry-rate-limits":jt.headers.get("X-Sentry-Rate-Limits"),"retry-after":jt.headers.get("Retry-After")}}))}catch(jt){return function El(){Ja=void 0}(),St-=Xi,un--,co(jt)}})}const Pc=4;function td(Fe){return Oa(Fe,function Pe(St){return new yn((un,vi)=>{const qe=new XMLHttpRequest;qe.onerror=vi,qe.onreadystatechange=()=>{qe.readyState===Pc&&un({statusCode:qe.status,headers:{"x-sentry-rate-limits":qe.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":qe.getResponseHeader("Retry-After")}})},qe.open("POST",Fe.url);for(const Xi in Fe.headers)Object.prototype.hasOwnProperty.call(Fe.headers,Xi)&&qe.setRequestHeader(Xi,Fe.headers[Xi]);qe.send(St.body)})})}const $c=[zn(),ps(),Um(),Rr(),Sd(),ed(),Wc(),om()];function ud(Fe){return[...$c]}function qc(Fe={}){void 0===Fe.defaultIntegrations&&(Fe.defaultIntegrations=ud()),void 0===Fe.release&&("string"==typeof __SENTRY_RELEASE__&&(Fe.release=__SENTRY_RELEASE__),Ns.SENTRY_RELEASE&&Ns.SENTRY_RELEASE.id&&(Fe.release=Ns.SENTRY_RELEASE.id)),void 0===Fe.autoSessionTracking&&(Fe.autoSessionTracking=!0),void 0===Fe.sendClientReports&&(Fe.sendClientReports=!0);const Pe={...Fe,stackParser:qi(Fe.stackParser||Jt),integrations:lr(Fe),transport:Fe.transport||(ks()?Ic:td)};(function Ba(Fe,Pe){!0===Pe.debug&&(Ii?Se.enable():Te(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Qr().update(Pe.initialScope);const un=new Fe(Pe);(function Ka(Fe){const St=Jn().getStackTop();St.client=Fe,St.scope.setClient(Fe)})(un),function vc(Fe){Fe.init?Fe.init():Fe.setupIntegrations&&Fe.setupIntegrations()}(un)})(Io,Pe),Fe.autoSessionTracking&&function Md(){typeof Ns.document>"u"?il&&Se.warn("Session tracking in non-browser environment with @sentry/browser is not supported."):(Aa({ignoreDuration:!0}),zr(),Zt(({from:Fe,to:Pe})=>{void 0!==Fe&&Fe!==Pe&&(Aa({ignoreDuration:!0}),zr())}))}()}const Dm=(Fe={},Pe=Jn())=>{if(!Ns.document)return void(il&&Se.error("Global document not defined in showReportDialog call"));const{client:St,scope:un}=Pe.getStackTop(),vi=Fe.dsn||St&&St.getDsn();if(!vi)return void(il&&Se.error("DSN not configured for showReportDialog call"));un&&(Fe.user={...un.getUser(),...Fe.user}),Fe.eventId||(Fe.eventId=Pe.lastEventId());const qe=Ns.document.createElement("script");qe.async=!0,qe.crossOrigin="anonymous",qe.src=function jl(Fe,Pe){const St=Yr(Fe);if(!St)return"";const un=`${ts(St)}embed/error-page/`;let vi=`dsn=${bc(St)}`;for(const qe in Pe)if("dsn"!==qe&&"onClose"!==qe)if("user"===qe){const Xi=Pe.user;if(!Xi)continue;Xi.name&&(vi+=`&name=${encodeURIComponent(Xi.name)}`),Xi.email&&(vi+=`&email=${encodeURIComponent(Xi.email)}`)}else vi+=`&${encodeURIComponent(qe)}=${encodeURIComponent(Pe[qe])}`;return`${un}?${vi}`}(vi,Fe),Fe.onLoad&&(qe.onload=Fe.onLoad);const{onClose:Xi}=Fe;if(Xi){const jt=jn=>{if("__sentry_reportdialog_closed__"===jn.data)try{Xi()}finally{Ns.removeEventListener("message",jt)}};Ns.addEventListener("message",jt)}const xt=Ns.document.head||Ns.document.body;xt?xt.appendChild(qe):il&&Se.error("Not injecting report dialog. No injection point found in HTML")};var Td=a(19212),Mm=a(69862);const Gm=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Ou(Fe){const Pe=Object.assign({defaultIntegrations:ud().filter(St=>"TryCatch"!==St.name)},Fe);Sr(Pe,"angular-ivy"),function Lc(){const Pe=Td.q4F&&Td.q4F.major?parseInt(Td.q4F.major,10):void 0;Pe&&(Pe<12&&Gm&&Se.warn(`This Sentry SDK does not officially support Angular ${Pe}.`,"This SDK only supports Angular 12 and above.","If you're using Angular 10 or 11, please use `@sentry/angular` instead.","Otherwise, please consider upgrading your Angular version."),function oi(Fe,Pe){Jn().setContext(Fe,Pe)}("angular",{version:Pe}))}(),qc(Pe)}const Hc=typeof Zone<"u"&&!!Zone.current;function Jm(Fe){if(Fe instanceof Error)return!0;if(null===Fe||"object"!=typeof Fe)return!1;const Pe=Fe;return m(Pe.name)&&m(Pe.message)&&(void 0===Pe.stack||m(Pe.stack))}let Mu=(()=>{class Fe{constructor(St){this._registeredAfterSendEventHandler=!1,this._options=Object.assign({logErrors:!0},St)}handleError(St){const un=this._extractError(St)||"Handled unknown error",vi=function Hd(Fe){return Hc?Zone.root.run(Fe):Fe()}(()=>Ua(un,{mechanism:{type:"angular",handled:!1}}));if(this._options.logErrors&&console.error(un),this._options.showDialog){const qe=Jo();qe&&qe.on&&!this._registeredAfterSendEventHandler?(qe.on("afterSendEvent",Xi=>{Xi.type||Dm(Object.assign(Object.assign({},this._options.dialogOptions),{eventId:Xi.event_id}))}),this._registeredAfterSendEventHandler=!0):(!qe||!qe.on)&&Dm(Object.assign(Object.assign({},this._options.dialogOptions),{eventId:vi}))}}_extractError(St){if(this._options.extractor){const un=this._defaultExtractor.bind(this);return this._options.extractor(St,un)}return this._defaultExtractor(St)}_defaultExtractor(St){const un=function Pu(Fe){return Fe&&Fe.ngOriginalError?Fe.ngOriginalError:Fe}(St);return un instanceof Mm.UA?function tu(Fe){return Jm(Fe.error)?Fe.error:Fe.error instanceof ErrorEvent&&Fe.error.message?Fe.error.message:"string"==typeof Fe.error?`Server returned code ${Fe.status} with body "${Fe.error}"`:Fe.message}(un):"string"==typeof un||Jm(un)?un:null}}return Fe.\u0275fac=function(St){return new(St||Fe)(Td.LFG("errorHandlerOptions"))},Fe.\u0275prov=Td.Yz7({token:Fe,factory:Fe.\u0275fac,providedIn:"root"}),Fe})();function Im(Fe){return new Mu(Fe)}},67742:(gt,X,a)=>{"use strict";a.d(X,{N:()=>p,V:()=>t});var e=a(15861),n=a(19212),s=a(28251),l=a(6593);const i=["qrcElement"];let t=(()=>{class c{constructor(x,u){this.renderer=x,this.sanitizer=u,this.allowEmptyString=!1,this.colorDark="#000000ff",this.colorLight="#ffffffff",this.cssClass="qrcode",this.elementType="canvas",this.errorCorrectionLevel="M",this.margin=4,this.qrdata="",this.scale=4,this.width=10,this.qrCodeURL=new n.vpe,this.context=null}ngOnChanges(){var x=this;return(0,e.Z)(function*(){yield x.createQRCode()})()}isValidQrCodeText(x){return!1===this.allowEmptyString?!(typeof x>"u"||""===x||"null"===x||null===x):!(typeof x>"u")}toDataURL(x){return new Promise((u,m)=>{(0,s.hz)(this.qrdata,x,(b,I)=>{b?m(b):u(I)})})}toCanvas(x,u){return new Promise((m,b)=>{(0,s.rT)(x,this.qrdata,u,I=>{I?b(I):m("success")})})}toSVG(x){return new Promise((u,m)=>{(0,s.toString)(this.qrdata,x,(b,I)=>{b?m(b):u(I)})})}renderElement(x){for(const u of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,u);this.renderer.appendChild(this.qrcElement.nativeElement,x)}createQRCode(){var x=this;return(0,e.Z)(function*(){x.version&&x.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),x.version=40):x.version&&x.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),x.version=1):void 0!==x.version&&isNaN(x.version)&&(console.warn("[angularx-qrcode] version should be a number, defaulting to auto."),x.version=void 0);try{if(!x.isValidQrCodeText(x.qrdata))throw new Error("[angularx-qrcode] Field `qrdata` is empty, set 'allowEmptyString=\"true\"' to overwrite this behaviour.");x.isValidQrCodeText(x.qrdata)&&""===x.qrdata&&(x.qrdata=" ");const u={color:{dark:x.colorDark,light:x.colorLight},errorCorrectionLevel:x.errorCorrectionLevel,margin:x.margin,scale:x.scale,version:x.version,width:x.width},m=x.imageSrc,b=x.imageHeight||40,I=x.imageWidth||40;switch(x.elementType){case"canvas":{const H=x.renderer.createElement("canvas");x.context=H.getContext("2d"),x.toCanvas(H,u).then(()=>{if(x.ariaLabel&&x.renderer.setAttribute(H,"aria-label",`${x.ariaLabel}`),x.title&&x.renderer.setAttribute(H,"title",`${x.title}`),m&&x.context){x.centerImage=new Image(I,b),m!==x.centerImage.src&&(x.centerImage.src=m),b!==x.centerImage.height&&(x.centerImage.height=b),I!==x.centerImage.width&&(x.centerImage.width=I);const O=x.centerImage;O&&(O.onload=()=>{x.context?.drawImage(O,H.width/2-I/2,H.height/2-b/2,I,b)})}x.renderElement(H),x.emitQRCodeURL(H)}).catch(O=>{console.error("[angularx-qrcode] canvas error:",O)});break}case"svg":{const H=x.renderer.createElement("div");x.toSVG(u).then(O=>{x.renderer.setProperty(H,"innerHTML",O);const P=H.firstChild;x.renderer.setAttribute(P,"height",`${x.width}`),x.renderer.setAttribute(P,"width",`${x.width}`),x.renderElement(P),x.emitQRCodeURL(P)}).catch(O=>{console.error("[angularx-qrcode] svg error:",O)});break}default:{const H=x.renderer.createElement("img");x.toDataURL(u).then(O=>{x.alt&&H.setAttribute("alt",x.alt),x.ariaLabel&&H.setAttribute("aria-label",x.ariaLabel),H.setAttribute("src",O),x.title&&H.setAttribute("title",x.title),x.renderElement(H),x.emitQRCodeURL(H)}).catch(O=>{console.error("[angularx-qrcode] img/url error:",O)})}}}catch(u){console.error("[angularx-qrcode] Error generating QR Code:",u.message)}})()}emitQRCodeURL(x){const u=x.constructor.name;if(u===SVGSVGElement.name){const I=new Blob([x.outerHTML],{type:"image/svg+xml"}),H=URL.createObjectURL(I),O=this.sanitizer.bypassSecurityTrustUrl(H);return void this.qrCodeURL.emit(O)}let m="";u===HTMLCanvasElement.name&&(m=x.toDataURL("image/png")),u===HTMLImageElement.name&&(m=x.src),fetch(m).then(b=>b.blob()).then(b=>URL.createObjectURL(b)).then(b=>this.sanitizer.bypassSecurityTrustUrl(b)).then(b=>{this.qrCodeURL.emit(b)}).catch(b=>{console.error("[angularx-qrcode] Error when fetching image/png URL: "+b)})}static#e=this.\u0275fac=function(u){return new(u||c)(n.Y36(n.Qsj),n.Y36(l.H7))};static#t=this.\u0275cmp=n.Xpm({type:c,selectors:[["qrcode"]],viewQuery:function(u,m){if(1&u&&n.Gf(i,7),2&u){let b;n.iGM(b=n.CRH())&&(m.qrcElement=b.first)}},inputs:{allowEmptyString:"allowEmptyString",colorDark:"colorDark",colorLight:"colorLight",cssClass:"cssClass",elementType:"elementType",errorCorrectionLevel:"errorCorrectionLevel",imageSrc:"imageSrc",imageHeight:"imageHeight",imageWidth:"imageWidth",margin:"margin",qrdata:"qrdata",scale:"scale",version:"version",width:"width",alt:"alt",ariaLabel:"ariaLabel",title:"title"},outputs:{qrCodeURL:"qrCodeURL"},features:[n.TTD],decls:2,vars:2,consts:[["qrcElement",""]],template:function(u,m){1&u&&n._UZ(0,"div",null,0),2&u&&n.Tol(m.cssClass)},encapsulation:2,changeDetection:0})}return c})(),p=(()=>{class c{static#e=this.\u0275fac=function(u){return new(u||c)};static#t=this.\u0275mod=n.oAB({type:c});static#n=this.\u0275inj=n.cJS({})}return c})()},63504:(gt,X,a)=>{"use strict";a.d(X,{u:()=>m,d:()=>b});var c,e=a(19212),n=a(96814),s=a(56223);function t(I,H){I.onload=function(){this.onerror=this.onload=null,H(null,I)},I.onerror=function(){this.onerror=this.onload=null,H(new Error("Failed to load "+this.src),I)}}function p(I,H){I.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,H(null,I))}}function o(I,H){return"CKEDITOR"in window?Promise.resolve(CKEDITOR):"string"!=typeof I||I.length<1?Promise.reject(new TypeError("CKEditor URL must be a non-empty string.")):(c||(c=o.scriptLoader(I).then(function(O){return H&&H(O),O})),c)}function u(I,H){}o.scriptLoader=function(I){return new Promise(function(H,O){!function l(I,H,O){var P=document.head||document.getElementsByTagName("head")[0],G=document.createElement("script");"function"==typeof H&&(O=H,H={}),O=O||function(){},G.type=(H=H||{}).type||"text/javascript",G.charset=H.charset||"utf8",G.async=!("async"in H)||!!H.async,G.src=I,H.attrs&&function i(I,H){for(var O in H)I.setAttribute(O,H[O])}(G,H.attrs),H.text&&(G.text=String(H.text)),("onload"in G?t:p)(G,O),G.onload||t(G,O),P.appendChild(G)}(I,function(P){return c=void 0,P?O(P):window.CKEDITOR?void H(CKEDITOR):O(new Error("Script loaded from editorUrl doesn't provide CKEDITOR namespace."))})})};let m=(()=>{class I{constructor(O,P){this.elementRef=O,this.ngZone=P,this.editorUrl="https://cdn.ckeditor.com/4.23.0-lts/standard-all/ckeditor.js",this.tagName="textarea",this.type="classic",this.namespaceLoaded=new e.vpe,this.ready=new e.vpe,this.dataReady=new e.vpe,this.change=new e.vpe,this.dataChange=new e.vpe,this.dragStart=new e.vpe,this.dragEnd=new e.vpe,this.drop=new e.vpe,this.fileUploadResponse=new e.vpe,this.fileUploadRequest=new e.vpe,this.focus=new e.vpe,this.paste=new e.vpe,this.afterPaste=new e.vpe,this.blur=new e.vpe,this._readOnly=null,this._data=null,this._destroyed=!1}set data(O){if(O!==this._data){if(this.instance)return this.instance.setData(O),void(this._data=this.instance.getData());this._data=O}}get data(){return this._data}set readOnly(O){this.instance?this.instance.setReadOnly(O):this._readOnly=O}get readOnly(){return this.instance?this.instance.readOnly:this._readOnly}ngAfterViewInit(){o(this.editorUrl,O=>{this.namespaceLoaded.emit(O)}).then(()=>{this._destroyed||this.ngZone.runOutsideAngular(this.createEditor.bind(this))}).catch(window.console.error)}ngOnDestroy(){this._destroyed=!0,this.ngZone.runOutsideAngular(()=>{this.instance&&(this.instance.destroy(),this.instance=null)})}writeValue(O){this.data=O}registerOnChange(O){this.onChange=O}registerOnTouched(O){this.onTouched=O}createEditor(){const O=document.createElement(this.tagName);this.elementRef.nativeElement.appendChild(O);const P=this.config?.on?.instanceReady,B={delayIfDetached:!0,...this.config};typeof B.on>"u"&&(B.on={}),B.on.instanceReady=ae=>{const J=ae.editor;this.instance=J,this.readOnly=null!==this._readOnly?this._readOnly:this.instance.readOnly,this.subscribe(this.instance);const q=J.undoManager;null!==this.data?(q&&q.lock(),J.setData(this.data,{callback:()=>{this.data!==J.getData()&&J.fire(q?"change":"dataReady"),q&&q.unlock(),this.ngZone.run(()=>{"function"==typeof P&&P(ae),this.ready.emit(ae)})}})):this.ngZone.run(()=>{"function"==typeof P&&P(ae),this.ready.emit(ae)})},"inline"===this.type?CKEDITOR.inline(O,B):CKEDITOR.replace(O,B)}subscribe(O){O.on("focus",P=>{this.ngZone.run(()=>{this.focus.emit(P)})}),O.on("paste",P=>{this.ngZone.run(()=>{this.paste.emit(P)})}),O.on("afterPaste",P=>{this.ngZone.run(()=>{this.afterPaste.emit(P)})}),O.on("dragend",P=>{this.ngZone.run(()=>{this.dragEnd.emit(P)})}),O.on("dragstart",P=>{this.ngZone.run(()=>{this.dragStart.emit(P)})}),O.on("drop",P=>{this.ngZone.run(()=>{this.drop.emit(P)})}),O.on("fileUploadRequest",P=>{this.ngZone.run(()=>{this.fileUploadRequest.emit(P)})}),O.on("fileUploadResponse",P=>{this.ngZone.run(()=>{this.fileUploadResponse.emit(P)})}),O.on("blur",P=>{this.ngZone.run(()=>{this.onTouched&&this.onTouched(),this.blur.emit(P)})}),O.on("dataReady",this.propagateChange,this),O.on(this.instance.undoManager?"change":"selectionCheck",this.propagateChange,this)}propagateChange(O){this.ngZone.run(()=>{const P=this.instance.getData();"change"===O.name?this.change.emit(O):"dataReady"===O.name&&this.dataReady.emit(O),P!==this.data&&(this._data=P,this.dataChange.emit(P),this.onChange&&this.onChange(P))})}}return I.\u0275fac=function(O){return new(O||I)(e.Y36(e.SBq),e.Y36(e.R0b))},I.\u0275cmp=e.Xpm({type:I,selectors:[["ckeditor"]],inputs:{config:"config",editorUrl:"editorUrl",tagName:"tagName",type:"type",data:"data",readOnly:"readOnly"},outputs:{namespaceLoaded:"namespaceLoaded",ready:"ready",dataReady:"dataReady",change:"change",dataChange:"dataChange",dragStart:"dragStart",dragEnd:"dragEnd",drop:"drop",fileUploadResponse:"fileUploadResponse",fileUploadRequest:"fileUploadRequest",focus:"focus",paste:"paste",afterPaste:"afterPaste",blur:"blur"},features:[e._Bn([{provide:s.JU,useExisting:(0,e.Gpc)(()=>I),multi:!0}])],decls:1,vars:0,template:function(O,P){1&O&&e.YNc(0,u,0,0,"ng-template")},encapsulation:2}),I})(),b=(()=>{class I{}return I.\u0275fac=function(O){return new(O||I)},I.\u0275mod=e.oAB({type:I}),I.\u0275inj=e.cJS({imports:[[s.u5,n.ez]]}),I})()},43858:(gt,X,a)=>{"use strict";a.d(X,{hr:()=>ii,KC:()=>Qt,kb:()=>Un});var e=a(19212),n=a(96814),s=a(49388),l=a(68484),i=a(62831),t=a(42495),p=a(72079),c=a(47354),o=a(49016),x=a(54699),u=a(73944),m=a(49193),b=a(51418),I=a(47279),H=a(6735);class P{constructor(Fn,yt,Bt){this.project=Fn,this.concurrent=yt,this.scheduler=Bt}call(Fn,yt){return yt.subscribe(new G(Fn,this.project,this.concurrent,this.scheduler))}}class G extends I.L{constructor(Fn,yt,Bt,li){super(Fn),this.project=yt,this.concurrent=Bt,this.scheduler=li,this.index=0,this.active=0,this.hasCompleted=!1,Bt<Number.POSITIVE_INFINITY&&(this.buffer=[])}static dispatch(Fn){const{subscriber:yt,result:Bt,value:li,index:si}=Fn;yt.subscribeToProjection(Bt,li,si)}_next(Fn){const yt=this.destination;if(yt.closed)return void this._complete();const Bt=this.index++;if(this.active<this.concurrent){yt.next(Fn);try{const{project:li}=this,si=li(Fn,Bt);this.scheduler?this.destination.add(this.scheduler.schedule(G.dispatch,0,{subscriber:this,result:si,value:Fn,index:Bt})):this.subscribeToProjection(si,Fn,Bt)}catch(li){yt.error(li)}}else this.buffer.push(Fn)}subscribeToProjection(Fn,yt,Bt){this.active++,this.destination.add((0,H.D)(this,Fn,yt,Bt))}_complete(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()}notifyNext(Fn,yt,Bt,li,si){this._next(yt)}notifyComplete(Fn){const yt=this.buffer;this.destination.remove(Fn),this.active--,yt&&yt.length>0&&this._next(yt.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}var B=a(66141),ae=a(19352),J=a(11541);const $="function"==typeof Float32Array;function ue(Yt,Fn){return 1-3*Fn+3*Yt}function ge(Yt,Fn){return 3*Fn-6*Yt}function Ke(Yt){return 3*Yt}function at(Yt,Fn,yt){return((ue(Fn,yt)*Yt+ge(Fn,yt))*Yt+Ke(Fn))*Yt}function Le(Yt,Fn,yt){return 3*ue(Fn,yt)*Yt*Yt+2*ge(Fn,yt)*Yt+Ke(Fn)}function me(Yt){return Yt}function Se(Yt,Fn,yt,Bt){if(!(0<=Yt&&Yt<=1&&0<=yt&&yt<=1))throw new Error("bezier x values must be in [0, 1] range");if(Yt===Fn&&yt===Bt)return me;let li=$?new Float32Array(11):new Array(11);for(let oo=0;oo<11;++oo)li[oo]=at(.1*oo,Yt,yt);return function(_o){return 0===_o?0:1===_o?1:at(function si(oo){let _o=0,Hn=1;for(;10!==Hn&&li[Hn]<=oo;++Hn)_o+=.1;--Hn;let Ji=_o+(oo-li[Hn])/(li[Hn+1]-li[Hn])*.1,wn=Le(Ji,Yt,yt);return wn>=.001?function Te(Yt,Fn,yt,Bt){for(let li=0;li<4;++li){let si=Le(Fn,yt,Bt);if(0===si)return Fn;Fn-=(at(Fn,yt,Bt)-Yt)/si}return Fn}(oo,Ji,Yt,yt):0===wn?Ji:function R(Yt,Fn,yt,Bt,li){let si,oo,_o=0;do{oo=Fn+(yt-Fn)/2,si=at(oo,Bt,li)-Yt,si>0?yt=oo:Fn=oo}while(Math.abs(si)>1e-7&&++_o<10);return oo}(oo,_o,_o+.1,Yt,yt)}(_o),Fn,Bt)}}const Ue=new e.OlP("SMOOTH_SCROLL_OPTIONS");let We=(()=>{class Yt{get _w(){return this._document.defaultView}get _now(){return this._w.performance&&this._w.performance.now?this._w.performance.now.bind(this._w.performance):Date.now}constructor(yt,Bt,li){this._document=yt,this._platform=Bt,this._onGoingScrolls=new Map,this._defaultOptions={duration:468,easing:{x1:.42,y1:0,x2:.58,y2:1},...li}}_scrollElement(yt,Bt,li){yt.scrollLeft=Bt,yt.scrollTop=li}_getElement(yt,Bt){return"string"==typeof yt?(Bt||this._document).querySelector(yt):(0,t.fI)(yt)}_initSmoothScroll(yt){return this._onGoingScrolls.has(yt)&&this._onGoingScrolls.get(yt).next(),this._onGoingScrolls.set(yt,new p.xQ).get(yt)}_isFinished(yt,Bt,li){return yt.currentX!==yt.x||yt.currentY!==yt.y||(Bt.next(),li(),!1)}_interrupted(yt,Bt){return(0,c.T)((0,o.R)(yt,"wheel",{passive:!0,capture:!0}),(0,o.R)(yt,"touchmove",{passive:!0,capture:!0}),Bt).pipe((0,b.q)(1))}_destroy(yt,Bt){Bt.complete(),this._onGoingScrolls.delete(yt)}_step(yt){return new x.y(Bt=>{let li=(this._now()-yt.startTime)/yt.duration;li=li>1?1:li;const si=yt.easing(li);yt.currentX=yt.startX+(yt.x-yt.startX)*si,yt.currentY=yt.startY+(yt.y-yt.startY)*si,this._scrollElement(yt.scrollable,yt.currentX,yt.currentY),u.r.schedule(()=>Bt.next(yt))})}_applyScrollToOptions(yt,Bt){if(!Bt.duration)return this._scrollElement(yt,Bt.left,Bt.top),Promise.resolve();const li=this._initSmoothScroll(yt),si={scrollable:yt,startTime:this._now(),startX:yt.scrollLeft,startY:yt.scrollTop,x:null==Bt.left?yt.scrollLeft:~~Bt.left,y:null==Bt.top?yt.scrollTop:~~Bt.top,duration:Bt.duration,easing:Se(Bt.easing.x1,Bt.easing.y1,Bt.easing.x2,Bt.easing.y2)};return new Promise(oo=>{(0,m.of)(null).pipe(function O(Yt,Fn=Number.POSITIVE_INFINITY,yt){return Fn=(Fn||0)<1?Number.POSITIVE_INFINITY:Fn,Bt=>Bt.lift(new P(Yt,Fn,yt))}(()=>this._step(si).pipe((0,B.o)(_o=>this._isFinished(_o,li,oo)))),(0,ae.R)(this._interrupted(yt,li)),(0,J.x)(()=>this._destroy(yt,li))).subscribe()})}scrollTo(yt,Bt){if((0,n.NF)(this._platform)){const li=this._getElement(yt),si="rtl"===getComputedStyle(li).direction,oo=(0,i._i)(),_o={...this._defaultOptions,...Bt,left:null==Bt.left?si?Bt.end:Bt.start:Bt.left,right:null==Bt.right?si?Bt.start:Bt.end:Bt.right};return null!=_o.bottom&&(_o.top=li.scrollHeight-li.clientHeight-_o.bottom),si&&0!==oo?(null!=_o.left&&(_o.right=li.scrollWidth-li.clientWidth-_o.left),2===oo?_o.left=_o.right:1===oo&&(_o.left=_o.right?-_o.right:_o.right)):null!=_o.right&&(_o.left=li.scrollWidth-li.clientWidth-_o.right),this._applyScrollToOptions(li,_o)}return Promise.resolve()}scrollToElement(yt,Bt,li={}){const si=this._getElement(yt),oo=this._getElement(Bt,si),_o={...li,left:oo.offsetLeft+(li.left||0),top:oo.offsetTop+(li.top||0)};return oo?this.scrollTo(si,_o):Promise.resolve()}static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)(e.LFG(n.K0),e.LFG(e.Lbi),e.LFG(Ue,8))};static#t=this.\u0275prov=e.Yz7({token:Yt,factory:Yt.\u0275fac,providedIn:"root"})}return Yt})(),Et=(()=>{class Yt{static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)};static#t=this.\u0275mod=e.oAB({type:Yt});static#n=this.\u0275inj=e.cJS({})}return Yt})();var lt=a(45125),Vt=a(7902),r=a(91226),Z=a(17927),Pt=a(96124),Oe=a(75222),ye=a(96776),ve=a(32068);function ft(...Yt){const Fn=Yt.length;if(0===Fn)throw new Error("list of properties cannot be empty.");return yt=>(0,Pt.U)(function Dt(Yt,Fn){return Bt=>{let li=Bt;for(let si=0;si<Fn;si++){const oo=li[Yt[si]];if(!(typeof oo<"u"))return;li=oo}return li}}(Yt,Fn))(yt)}var Rn=a(96743),ti=a(94760),Xt=a(97734),Je=a(23433);const dt=["scrollbarY"],Ie=["scrollbarX"];function ot(Yt,Fn){if(1&Yt&&e._UZ(0,"scrollbar-x",null,4),2&Yt){const yt=e.oxw(2);e.uIk("scrollable",yt.state.isHorizontallyScrollable)("fit",yt.state.verticalUsed)}}function ct(Yt,Fn){if(1&Yt&&e._UZ(0,"scrollbar-y",null,5),2&Yt){const yt=e.oxw(2);e.uIk("scrollable",yt.state.isVerticallyScrollable)("fit",yt.state.horizontalUsed)}}function tn(Yt,Fn){if(1&Yt&&(e.ynx(0),e.YNc(1,ot,2,2,"scrollbar-x",3)(2,ct,2,2,"scrollbar-y",3),e.BQk()),2&Yt){const yt=e.oxw();e.xp6(),e.Q6J("ngIf",yt.state.horizontalUsed),e.xp6(),e.Q6J("ngIf",yt.state.verticalUsed)}}const yi=["*"];function ni(Yt){return(0,Z.b)(()=>{Yt.onselectstart=()=>!1})}function sn(Yt){return(0,Z.b)(()=>{Yt.onselectstart=null})}function bn(){return(0,Z.b)(Yt=>Yt.stopPropagation())}function vt(Yt,Fn){return Yt.clientX>=Fn.left&&Yt.clientX<=Fn.left+Fn.width&&Yt.clientY>=Fn.top&&Yt.clientY<=Fn.top+Fn.height}let nn=(()=>{class Yt{get clientHeight(){return this.nativeElement.clientHeight}get clientWidth(){return this.nativeElement.clientWidth}get scrollHeight(){return this.nativeElement.scrollHeight}get scrollWidth(){return this.nativeElement.scrollWidth}get scrollTop(){return this.nativeElement.scrollTop}get scrollLeft(){return this.nativeElement.scrollLeft}get scrollMaxX(){return this.scrollWidth-this.clientWidth}get scrollMaxY(){return this.scrollHeight-this.clientHeight}get contentHeight(){return this.contentWrapperElement?.clientHeight||0}get contentWidth(){return this.contentWrapperElement?.clientWidth||0}constructor(yt){this.viewPort=yt,this.nativeElement=yt.nativeElement}activatePointerEvents(yt,Bt){this.hovered=new x.y(li=>{const si=(0,o.R)(this.nativeElement,"mousemove",{passive:!0}),oo=yt?si:si.pipe(bn()),_o=(0,o.R)(this.nativeElement,"mouseleave",{passive:!0}).pipe((0,Pt.U)(()=>!1));(0,c.T)(oo,_o).pipe((0,Z.b)(Hn=>li.next(Hn)),(0,ae.R)(Bt)).subscribe()}),this.clicked=new x.y(li=>{const si=(0,o.R)(this.nativeElement,"mousedown",{passive:!0}).pipe((0,Z.b)(_o=>li.next(_o))),oo=(0,o.R)(this.nativeElement,"mouseup",{passive:!0}).pipe((0,Z.b)(()=>li.next(!1)));si.pipe((0,Oe.w)(()=>oo),(0,ae.R)(Bt)).subscribe()})}setAsWrapper(){this.nativeElement.className="ng-native-scrollbar-hider ng-scroll-layer",this.nativeElement.firstElementChild&&(this.nativeElement.firstElementChild.className="ng-scroll-layer")}setAsViewport(yt){this.nativeElement.className=`ng-native-scrollbar-hider ng-scroll-viewport ${yt}`,this.nativeElement.firstElementChild&&(this.contentWrapperElement=this.nativeElement.firstElementChild,this.contentWrapperElement.classList.add("ng-scroll-content"))}scrollYTo(yt){this.nativeElement.scrollTop=yt}scrollXTo(yt){this.nativeElement.scrollLeft=yt}static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)(e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:Yt,selectors:[["","scrollViewport",""]]})}return Yt})(),rn=(()=>{class Yt{static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)};static#t=this.\u0275dir=e.lG2({type:Yt})}return Yt})();const ii=new e.OlP("NG_SCROLLBAR_OPTIONS"),Oo={viewClass:"",trackClass:"",thumbClass:"",track:"vertical",appearance:"compact",visibility:"native",position:"native",pointerEventsMethod:"viewport",trackClickScrollDuration:300,minThumbSize:20,windowResizeDebounce:0,sensorDebounce:0,scrollAuditTime:0,viewportPropagateMouseMove:!0,autoHeightDisabled:!0,autoWidthDisabled:!0,sensorDisabled:!1,pointerEventsDisabled:!1};let no=(()=>{class Yt{constructor(yt){this.globalOptions=yt?{...Oo,...yt}:Oo,this.rtlScrollAxisType=(0,i._i)()}static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)(e.LFG(ii,8))};static#t=this.\u0275prov=e.Yz7({token:Yt,factory:Yt.\u0275fac,providedIn:"root"})}return Yt})(),Li=(()=>{class Yt{constructor(yt,Bt,li){this.document=yt,this.manager=Bt,this.platform=li,this._scrollbarSize=new lt.X(this.getNativeScrollbarSize()),this.scrollbarSize=this._scrollbarSize.asObservable(),li.isBrowser&&(0,o.R)(this.document.defaultView,"resize",{passive:!0}).pipe((0,ye.b)(this.manager.globalOptions.windowResizeDebounce),(0,Pt.U)(()=>this.getNativeScrollbarSize()),(0,ve.x)(),(0,Z.b)(si=>this._scrollbarSize.next(si))).subscribe()}getNativeScrollbarSize(){if(!this.platform.isBrowser)return 0;if(this.platform.IOS)return 6;const yt=this.document.createElement("div");yt.className="ng-scrollbar-measure",yt.style.left="0px",yt.style.overflow="scroll",yt.style.position="fixed",yt.style.top="-9999px",this.document.body.appendChild(yt);const Bt=yt.getBoundingClientRect().right;return this.document.body.removeChild(yt),Bt}static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)(e.LFG(n.K0),e.LFG(no),e.LFG(i.t4))};static#t=this.\u0275prov=e.Yz7({token:Yt,factory:Yt.\u0275fac,providedIn:"root"})}return Yt})(),ji=(()=>{class Yt{constructor(yt,Bt,li){this.renderer=Bt,this.hideNativeScrollbar=li,this._subscriber=Vt.w.EMPTY,this._subscriber=li.scrollbarSize.subscribe(si=>{this.renderer.setStyle(yt.nativeElement,"--native-scrollbar-size",`-${si}px`,e.JOm.DashCase)})}ngOnDestroy(){this._subscriber.unsubscribe()}static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Li))};static#t=this.\u0275dir=e.lG2({type:Yt,selectors:[["","hideNativeScrollbar",""]]})}return Yt})(),Ii=(()=>{class Yt{constructor(yt){this.el=yt}set ngAttr(yt){for(const[Bt,li]of Object.entries(yt))this.el.nativeElement.setAttribute(Bt,li)}static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)(e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:Yt,selectors:[["","ngAttr",""]],inputs:{ngAttr:"ngAttr"}})}return Yt})(),_i=(()=>{class Yt{get debounce(){return this._debounce}set debounce(yt){this._debounce=(0,t.su)(yt),this._subscribe()}get disabled(){return this._disabled}set disabled(yt){this._disabled=(0,t.Ig)(yt),this._disabled?this._unsubscribe():this._subscribe()}constructor(yt,Bt,li){if(this.zone=yt,this.platform=Bt,this.scrollbar=li,this._disabled=!1,this._currentSubscription=null,this.event=new e.vpe,!li)throw new Error("[NgScrollbar Resize Sensor Directive]: Host element must be an NgScrollbar component.")}ngAfterContentInit(){!this._currentSubscription&&!this._disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){if(this._unsubscribe(),this.platform.isBrowser){const yt=new x.y(Bt=>{this._resizeObserver=new ResizeObserver(li=>Bt.next(li)),this._resizeObserver.observe(this.scrollbar.viewport.nativeElement),this.scrollbar.viewport.contentWrapperElement&&this._resizeObserver.observe(this.scrollbar.viewport.contentWrapperElement)});this.zone.runOutsideAngular(()=>{this._currentSubscription=(this._debounce?yt.pipe((0,ye.b)(this._debounce)):yt).subscribe(this.event)})}}_unsubscribe(){this._resizeObserver?.disconnect(),this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)(e.Y36(e.R0b),e.Y36(i.t4),e.Y36(rn))};static#t=this.\u0275dir=e.lG2({type:Yt,selectors:[["","resizeSensor",""]],inputs:{debounce:[e.lbL.None,"sensorDebounce","debounce"],disabled:[e.lbL.None,"sensorDisabled","disabled"]},outputs:{event:"resizeSensor"}})}return Yt})(),En=(()=>{class Yt{get clicked(){const yt=(0,o.R)(this.trackElement,"mousedown",{passive:!0}).pipe(bn(),ni(this.document)),Bt=(0,o.R)(this.document,"mouseup",{passive:!0}).pipe(bn(),sn(this.document),(0,Oe.w)(()=>r.E));return(0,c.T)(yt,Bt)}get clientRect(){return this.trackElement.getBoundingClientRect()}constructor(yt,Bt,li){this.cmp=yt,this.trackElement=Bt,this.document=li}onTrackClicked(yt,Bt,li){return(0,m.of)(yt).pipe(ft(this.pageProperty),(0,Pt.U)(si=>(si-this.offset-Bt/2)/this.size*li),(0,Z.b)(si=>{this.cmp.scrollTo({...this.mapToScrollToOption(si),duration:(0,t.su)(this.cmp.trackClickScrollDuration)})}))}static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)(e.Y36(rn),e.Y36(HTMLElement),e.Y36(Document))};static#t=this.\u0275dir=e.lG2({type:Yt})}return Yt})(),co=(()=>{class Yt extends En{get pageProperty(){return"pageX"}get offset(){return this.clientRect.left}get size(){return this.trackElement.clientWidth}constructor(yt,Bt,li){super(yt,Bt.nativeElement,li),this.cmp=yt,this.document=li}mapToScrollToOption(yt){return{left:yt}}static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)(e.Y36(rn),e.Y36(e.SBq),e.Y36(n.K0))};static#t=this.\u0275dir=e.lG2({type:Yt,selectors:[["","scrollbarTrackX",""]],features:[e.qOj]})}return Yt})(),yn=(()=>{class Yt extends En{get pageProperty(){return"pageY"}get offset(){return this.clientRect.top}get size(){return this.trackElement.clientHeight}constructor(yt,Bt,li){super(yt,Bt.nativeElement,li),this.cmp=yt,this.document=li}mapToScrollToOption(yt){return{top:yt}}static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)(e.Y36(rn),e.Y36(e.SBq),e.Y36(n.K0))};static#t=this.\u0275dir=e.lG2({type:Yt,selectors:[["","scrollbarTrackY",""]],features:[e.qOj]})}return Yt})(),ln=(()=>{class Yt{get trackMax(){return this.track.size-this.size}get clientRect(){return this.thumbElement.getBoundingClientRect()}get clicked(){return(0,o.R)(this.thumbElement,"mousedown",{passive:!0}).pipe(bn())}constructor(yt,Bt,li,si){this.cmp=yt,this.track=Bt,this.thumbElement=li,this.document=si,this._dragging=new p.xQ,this.dragging=this._dragging.pipe((0,ve.x)())}update(){const yt=function He(Yt,Fn,yt){return Math.max(~~(Yt/Fn*Yt),yt)}(this.track.size,this.viewportScrollSize,this.cmp.minThumbSize),Bt=function rt(Yt,Fn,yt){return Yt*yt/Fn}(this.viewportScrollOffset,this.viewportScrollMax,this.trackMax);u.r.schedule(()=>this.updateStyles(this.handleDirection(Bt,this.trackMax),yt))}dragged(yt){let Bt,li;const si=(0,m.of)(yt).pipe(ni(this.document),(0,Z.b)(()=>{Bt=this.trackMax,li=this.viewportScrollMax,this.setDragging(!0)})),oo=(0,o.R)(this.document,"mousemove",{capture:!0,passive:!0}).pipe(bn()),_o=(0,o.R)(this.document,"mouseup",{capture:!0}).pipe(bn(),sn(this.document),(0,Z.b)(()=>this.setDragging(!1)));return si.pipe(ft(this.pageProperty),(0,Pt.U)(Hn=>Hn-this.dragStartOffset),(0,Rn.zg)(Hn=>oo.pipe(ft(this.clientProperty),(0,Pt.U)(mo=>mo-this.track.offset),(0,Pt.U)(mo=>li*(mo-Hn)/Bt),(0,Pt.U)(mo=>this.handleDrag(mo,li)),(0,Z.b)(mo=>this.scrollTo(mo)),(0,ae.R)(_o))))}static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)(e.Y36(rn),e.Y36(En),e.Y36(HTMLElement),e.Y36(Document))};static#t=this.\u0275dir=e.lG2({type:Yt,outputs:{dragging:"dragging"}})}return Yt})(),$e=(()=>{class Yt extends ln{get clientProperty(){return"clientX"}get pageProperty(){return"pageX"}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}get viewportScrollOffset(){return this.cmp.viewport.scrollLeft}get viewportScrollMax(){return this.cmp.viewport.scrollMaxX}get dragStartOffset(){return this.clientRect.left+this.document.defaultView.pageXOffset||0}get size(){return this.thumbElement.clientWidth}constructor(yt,Bt,li,si,oo){super(yt,Bt,li.nativeElement,si),this.cmp=yt,this.track=Bt,this.element=li,this.document=si,this.dir=oo}updateStyles(yt,Bt){this.thumbElement.style.width=`${Bt}px`,this.thumbElement.style.transform=`translate3d(${yt}px, 0, 0)`}handleDrag(yt,Bt){if("rtl"===this.dir.value){if(1===this.cmp.manager.rtlScrollAxisType)return yt-Bt;if(2===this.cmp.manager.rtlScrollAxisType)return Bt-yt}return yt}handleDirection(yt,Bt){if("rtl"===this.dir.value){if(2===this.cmp.manager.rtlScrollAxisType)return-yt;if(0===this.cmp.manager.rtlScrollAxisType)return yt-Bt}return yt}setDragging(yt){this.cmp.setDragging({horizontalDragging:yt})}scrollTo(yt){this.cmp.viewport.scrollXTo(yt)}static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)(e.Y36(rn),e.Y36(co),e.Y36(e.SBq),e.Y36(n.K0),e.Y36(s.Is))};static#t=this.\u0275dir=e.lG2({type:Yt,selectors:[["","scrollbarThumbX",""]],features:[e.qOj]})}return Yt})(),Ve=(()=>{class Yt extends ln{get pageProperty(){return"pageY"}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}get viewportScrollOffset(){return this.cmp.viewport.scrollTop}get viewportScrollMax(){return this.cmp.viewport.scrollMaxY}get clientProperty(){return"clientY"}get dragStartOffset(){return this.clientRect.top+this.document.defaultView.pageYOffset||0}get size(){return this.thumbElement.clientHeight}constructor(yt,Bt,li,si){super(yt,Bt,li.nativeElement,si),this.cmp=yt,this.track=Bt,this.element=li,this.document=si}updateStyles(yt,Bt){this.thumbElement.style.height=`${Bt}px`,this.thumbElement.style.transform=`translate3d(0px, ${yt}px, 0)`}handleDrag(yt){return yt}handleDirection(yt){return yt}setDragging(yt){this.cmp.setDragging({verticalDragging:yt})}scrollTo(yt){this.cmp.viewport.scrollYTo(yt)}static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)(e.Y36(rn),e.Y36(yn),e.Y36(e.SBq),e.Y36(n.K0))};static#t=this.\u0275dir=e.lG2({type:Yt,selectors:[["","scrollbarThumbY",""]],features:[e.qOj]})}return Yt})(),Ce=(()=>{class Yt{constructor(yt,Bt,li,si,oo){this.el=yt,this.cmp=Bt,this.platform=li,this.document=si,this.zone=oo,this.destroyed=new p.xQ}activatePointerEvents(){let yt,Bt,li;return"viewport"===this.cmp.pointerEventsMethod?(this.viewportTrackClicked=new p.xQ,this.viewportThumbClicked=new p.xQ,this.cmp.viewport.activatePointerEvents(this.cmp.viewportPropagateMouseMove,this.destroyed),yt=this.viewportThumbClicked,Bt=this.viewportTrackClicked,li=this.cmp.viewport.hovered.pipe((0,Pt.U)(si=>!!si&&vt(si,this.el.getBoundingClientRect())),(0,ve.x)(),(0,Z.b)(si=>this.document.onselectstart=si?()=>!1:null)),this.cmp.viewport.clicked.pipe((0,Z.b)(si=>{si?vt(si,this.thumb.clientRect)?this.viewportThumbClicked.next(si):vt(si,this.track.clientRect)&&(this.cmp.setClicked(!0),this.viewportTrackClicked.next(si)):this.cmp.setClicked(!1)}),(0,ae.R)(this.destroyed)).subscribe()):(yt=this.thumb.clicked,Bt=this.track.clicked,li=this.hovered),(0,c.T)(li.pipe((0,Z.b)(si=>this.setHovered(si))),yt.pipe((0,Oe.w)(si=>this.thumb.dragged(si))),Bt.pipe((0,Oe.w)(si=>this.track.onTrackClicked(si,this.thumb.size,this.viewportScrollSize))))}get hovered(){const yt=(0,o.R)(this.el,"mouseenter",{passive:!0}).pipe(bn(),(0,Pt.U)(()=>!0)),Bt=(0,o.R)(this.el,"mouseleave",{passive:!0}).pipe(bn(),(0,Pt.U)(()=>!1));return(0,c.T)(yt,Bt)}ngOnInit(){this.zone.runOutsideAngular(()=>{!(this.platform.IOS||this.platform.ANDROID)&&!this.cmp.pointerEventsDisabled&&this.activatePointerEvents().pipe((0,ae.R)(this.destroyed)).subscribe(),(0,c.T)(this.cmp.scrolled,this.cmp.updated).pipe((0,Z.b)(()=>this.thumb?.update()),(0,ae.R)(this.destroyed)).subscribe()})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.viewportThumbClicked&&this.viewportTrackClicked&&(this.viewportTrackClicked.complete(),this.viewportThumbClicked.complete())}static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)(e.Y36(HTMLElement),e.Y36(rn),e.Y36(i.t4),e.Y36(Document),e.Y36(e.R0b))};static#t=this.\u0275dir=e.lG2({type:Yt})}return Yt})(),tt=(()=>{class Yt extends Ce{get viewportScrollSize(){return this.cmp.viewport.scrollHeight}constructor(yt,Bt,li,si,oo){super(yt.nativeElement,Bt,li,si,oo),this.cmp=Bt,this.platform=li,this.document=si,this.zone=oo}setHovered(yt){this.cmp.setHovered({verticalHovered:yt})}static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)(e.Y36(e.SBq),e.Y36(rn),e.Y36(i.t4),e.Y36(n.K0),e.Y36(e.R0b))};static#t=this.\u0275cmp=e.Xpm({type:Yt,selectors:[["scrollbar-y"]],viewQuery:function(Bt,li){if(1&Bt&&(e.Gf(yn,7),e.Gf(Ve,7)),2&Bt){let si;e.iGM(si=e.CRH())&&(li.track=si.first),e.iGM(si=e.CRH())&&(li.thumb=si.first)}},hostVars:2,hostBindings:function(Bt,li){2&Bt&&e.ekj("scrollbar-control",!0)},features:[e.qOj],decls:2,vars:6,consts:[["scrollbarTrackY",""],["scrollbarThumbY",""]],template:function(Bt,li){1&Bt&&(e.TgZ(0,"div",0),e._UZ(1,"div",1),e.qZA()),2&Bt&&(e.Gre("ng-scrollbar-track ",li.cmp.trackClass,""),e.xp6(),e.Gre("ng-scrollbar-thumb ",li.cmp.thumbClass,""))},dependencies:[Ve,yn],styles:[".ng-scrollbar-wrapper>scrollbar-y.scrollbar-control{width:var(--vertical-scrollbar-total-size)}  .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track{width:var(--vertical-scrollbar-size);height:calc(100% - var(--scrollbar-padding) * 2)}  .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{height:0;width:100%}  .ng-scrollbar-wrapper[verticalHovered=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb,   .ng-scrollbar-wrapper[verticalDragging=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)}  .ng-scrollbar-wrapper[deactivated=false]>scrollbar-y.scrollbar-control{top:0;bottom:0}  .ng-scrollbar-wrapper[deactivated=false][dir=ltr]>scrollbar-y.scrollbar-control{right:0;left:unset}  .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertY]>scrollbar-y.scrollbar-control,   .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertAll]>scrollbar-y.scrollbar-control{left:0;right:unset}  .ng-scrollbar-wrapper[deactivated=false][dir=rtl]>scrollbar-y.scrollbar-control{left:0;right:unset}  .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertY]>scrollbar-y.scrollbar-control,   .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertAll]>scrollbar-y.scrollbar-control{left:unset;right:0}  .ng-scrollbar-wrapper[deactivated=false][track=all]>scrollbar-y.scrollbar-control[fit=true]{bottom:var(--scrollbar-total-size);top:0}  .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertX]>scrollbar-y.scrollbar-control[fit=true],   .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertAll]>scrollbar-y.scrollbar-control[fit=true]{top:var(--scrollbar-total-size);bottom:0}"],changeDetection:0})}return Yt})(),ht=(()=>{class Yt extends Ce{get viewportScrollSize(){return this.cmp.viewport.scrollWidth}constructor(yt,Bt,li,si,oo){super(yt.nativeElement,Bt,li,si,oo),this.cmp=Bt,this.platform=li,this.document=si,this.zone=oo}setHovered(yt){this.cmp.setHovered({horizontalHovered:yt})}static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)(e.Y36(e.SBq),e.Y36(rn),e.Y36(i.t4),e.Y36(n.K0),e.Y36(e.R0b))};static#t=this.\u0275cmp=e.Xpm({type:Yt,selectors:[["scrollbar-x"]],viewQuery:function(Bt,li){if(1&Bt&&(e.Gf(co,7),e.Gf($e,7)),2&Bt){let si;e.iGM(si=e.CRH())&&(li.track=si.first),e.iGM(si=e.CRH())&&(li.thumb=si.first)}},hostVars:2,hostBindings:function(Bt,li){2&Bt&&e.ekj("scrollbar-control",!0)},features:[e.qOj],decls:2,vars:6,consts:[["scrollbarTrackX",""],["scrollbarThumbX",""]],template:function(Bt,li){1&Bt&&(e.TgZ(0,"div",0),e._UZ(1,"div",1),e.qZA()),2&Bt&&(e.Gre("ng-scrollbar-track ",li.cmp.trackClass,""),e.xp6(),e.Gre("ng-scrollbar-thumb ",li.cmp.thumbClass,""))},dependencies:[$e,co],styles:[".ng-scrollbar-wrapper>scrollbar-x.scrollbar-control{height:var(--horizontal-scrollbar-total-size)}  .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track{height:var(--horizontal-scrollbar-size);width:calc(100% - var(--scrollbar-padding) * 2)}  .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{width:0;height:100%}  .ng-scrollbar-wrapper[horizontalHovered=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb,   .ng-scrollbar-wrapper[horizontalDragging=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)}  .ng-scrollbar-wrapper[position=invertX]>scrollbar-x.scrollbar-control,   .ng-scrollbar-wrapper[position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:unset}  .ng-scrollbar-wrapper[deactivated=false]>scrollbar-x.scrollbar-control{left:0;right:0;bottom:0;top:unset}  .ng-scrollbar-wrapper[deactivated=false][position=invertX]>scrollbar-x.scrollbar-control,   .ng-scrollbar-wrapper[deactivated=false][position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:unset}  .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0}  .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertY]>scrollbar-x.scrollbar-control[fit=true],   .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0}  .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0}  .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertY]>scrollbar-x.scrollbar-control[fit=true],   .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0}"],changeDetection:0})}return Yt})(),Qt=(()=>{class Yt{get disabled(){return this._disabled}set disabled(yt){this._disabled=(0,t.Ig)(yt)}get sensorDisabled(){return this._sensorDisabled}set sensorDisabled(yt){this._sensorDisabled=(0,t.Ig)(yt)}get pointerEventsDisabled(){return this._pointerEventsDisabled}set pointerEventsDisabled(yt){this._pointerEventsDisabled=(0,t.Ig)(yt)}get viewportPropagateMouseMove(){return this._viewportPropagateMouseMove}set viewportPropagateMouseMove(yt){this._viewportPropagateMouseMove=(0,t.Ig)(yt)}get autoHeightDisabled(){return this._autoHeightDisabled}set autoHeightDisabled(yt){this._autoHeightDisabled=(0,t.Ig)(yt)}get autoWidthDisabled(){return this._autoWidthDisabled}set autoWidthDisabled(yt){this._autoWidthDisabled=(0,t.Ig)(yt)}get nativeElement(){return this.el.nativeElement}constructor(yt,Bt,li,si,oo,_o){this.el=yt,this.zone=Bt,this.changeDetectorRef=li,this.dir=si,this.smoothScroll=oo,this.manager=_o,this._disabled=!1,this._sensorDisabled=this.manager.globalOptions.sensorDisabled,this._pointerEventsDisabled=this.manager.globalOptions.pointerEventsDisabled,this._autoHeightDisabled=this.manager.globalOptions.autoHeightDisabled,this._autoWidthDisabled=this.manager.globalOptions.autoWidthDisabled,this._viewportPropagateMouseMove=this.manager.globalOptions.viewportPropagateMouseMove,this.viewClass=this.manager.globalOptions.viewClass,this.trackClass=this.manager.globalOptions.trackClass,this.thumbClass=this.manager.globalOptions.thumbClass,this.minThumbSize=this.manager.globalOptions.minThumbSize,this.trackClickScrollDuration=this.manager.globalOptions.trackClickScrollDuration,this.pointerEventsMethod=this.manager.globalOptions.pointerEventsMethod,this.track=this.manager.globalOptions.track,this.visibility=this.manager.globalOptions.visibility,this.appearance=this.manager.globalOptions.appearance,this.position=this.manager.globalOptions.position,this.sensorDebounce=this.manager.globalOptions.sensorDebounce,this.scrollAuditTime=this.manager.globalOptions.scrollAuditTime,this.updated=new e.vpe,this.state={},this.destroyed=new p.xQ}updateState(){let yt=!1,Bt=!1,li=!1,si=!1;("all"===this.track||"vertical"===this.track)&&(li=this.viewport.scrollHeight>this.viewport.clientHeight,yt="always"===this.visibility||li),("all"===this.track||"horizontal"===this.track)&&(si=this.viewport.scrollWidth>this.viewport.clientWidth,Bt="always"===this.visibility||si),this.setState({position:this.position,track:this.track,appearance:this.appearance,visibility:this.visibility,deactivated:this.disabled,dir:this.dir.value,pointerEventsMethod:this.pointerEventsMethod,verticalUsed:yt,horizontalUsed:Bt,isVerticallyScrollable:li,isHorizontallyScrollable:si})}setState(yt){this.state={...this.state,...yt},this.changeDetectorRef.detectChanges()}getScrolledByDirection(yt){let Bt;return this.scrolled.pipe((0,Z.b)(li=>Bt=li),ft("target",yt),(0,ti.G)(),(0,Xt.h)(([li,si])=>li!==si),(0,Pt.U)(()=>Bt))}setHovered(yt){this.zone.run(()=>this.setState({...yt}))}setDragging(yt){this.zone.run(()=>this.setState({...yt}))}setClicked(yt){this.zone.run(()=>this.setState({scrollbarClicked:yt}))}ngOnInit(){this.zone.runOutsideAngular(()=>{this.customViewPort?(this.viewport=this.customViewPort,this.defaultViewPort.setAsWrapper()):this.viewport=this.defaultViewPort,this.viewport.setAsViewport(this.viewClass);let yt=(0,o.R)(this.viewport.nativeElement,"scroll",{passive:!0});yt=this.scrollAuditTime?yt.pipe((0,Je.e)(this.scrollAuditTime)):yt,this.scrolled=yt.pipe((0,ae.R)(this.destroyed)),this.verticalScrolled=this.getScrolledByDirection("scrollTop"),this.horizontalScrolled=this.getScrolledByDirection("scrollLeft")})}ngOnChanges(yt){this.viewport&&this.update()}ngAfterViewInit(){this.update(),this.dir.change.pipe((0,Z.b)(()=>this.update()),(0,ae.R)(this.destroyed)).subscribe()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}update(){this.autoHeightDisabled||this.updateHeight(),this.autoWidthDisabled||this.updateWidth(),this.updateState(),this.updated.next()}scrollTo(yt){return this.smoothScroll.scrollTo(this.viewport.nativeElement,yt)}scrollToElement(yt,Bt){return this.smoothScroll.scrollToElement(this.viewport.nativeElement,yt,Bt)}updateHeight(){this.nativeElement.style.height="standard"===this.appearance&&this.scrollbarX?`${this.viewport.contentHeight+this.scrollbarX.nativeElement.clientHeight}px`:`${this.viewport.contentHeight}px`}updateWidth(){this.nativeElement.style.width="standard"===this.appearance&&this.scrollbarY?`${this.viewport.contentWidth+this.scrollbarY.nativeElement.clientWidth}px`:`${this.viewport.contentWidth}px`}static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(s.Is),e.Y36(We),e.Y36(no))};static#t=this.\u0275cmp=e.Xpm({type:Yt,selectors:[["ng-scrollbar"]],contentQueries:function(Bt,li,si){if(1&Bt&&e.Suo(si,nn,7),2&Bt){let oo;e.iGM(oo=e.CRH())&&(li.customViewPort=oo.first)}},viewQuery:function(Bt,li){if(1&Bt&&(e.Gf(dt,5,e.SBq),e.Gf(Ie,5,e.SBq),e.Gf(nn,7)),2&Bt){let si;e.iGM(si=e.CRH())&&(li.scrollbarY=si.first),e.iGM(si=e.CRH())&&(li.scrollbarX=si.first),e.iGM(si=e.CRH())&&(li.defaultViewPort=si.first)}},hostVars:2,hostBindings:function(Bt,li){2&Bt&&e.ekj("ng-scrollbar",!0)},inputs:{disabled:"disabled",sensorDisabled:"sensorDisabled",pointerEventsDisabled:"pointerEventsDisabled",viewportPropagateMouseMove:"viewportPropagateMouseMove",autoHeightDisabled:"autoHeightDisabled",autoWidthDisabled:"autoWidthDisabled",viewClass:"viewClass",trackClass:"trackClass",thumbClass:"thumbClass",minThumbSize:"minThumbSize",trackClickScrollDuration:"trackClickScrollDuration",pointerEventsMethod:"pointerEventsMethod",track:"track",visibility:"visibility",appearance:"appearance",position:"position",sensorDebounce:"sensorDebounce",scrollAuditTime:"scrollAuditTime"},outputs:{updated:"updated"},exportAs:["ngScrollbar"],features:[e._Bn([{provide:rn,useExisting:Yt}]),e.TTD],ngContentSelectors:yi,decls:6,vars:4,consts:[[1,"ng-scrollbar-wrapper",3,"ngAttr"],[1,"ng-scroll-viewport-wrapper",3,"sensorDebounce","sensorDisabled","resizeSensor"],["scrollViewport","","hideNativeScrollbar",""],[4,"ngIf"],["scrollbarX",""],["scrollbarY",""]],template:function(Bt,li){1&Bt&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1),e.NdJ("resizeSensor",function(){return li.update()}),e.TgZ(2,"div",2)(3,"div"),e.Hsn(4),e.qZA()()(),e.YNc(5,tn,3,2,"ng-container",3),e.qZA()),2&Bt&&(e.Q6J("ngAttr",li.state),e.xp6(),e.Q6J("sensorDebounce",li.sensorDebounce)("sensorDisabled",li.sensorDisabled),e.xp6(4),e.Q6J("ngIf",!li.disabled))},dependencies:[n.O5,nn,ji,Ii,_i,tt,ht],styles:[".ng-scrollbar-measure{scrollbar-width:none;-ms-overflow-style:none}  .ng-scrollbar-measure::-webkit-scrollbar{display:none}[_nghost-%COMP%]{--scrollbar-border-radius: 7px;--scrollbar-padding: 4px;--scrollbar-track-color: transparent;--scrollbar-thumb-color: rgba(0, 0, 0, .2);--scrollbar-thumb-hover-color: var(--scrollbar-thumb-color);--scrollbar-size: 5px;--scrollbar-hover-size: var(--scrollbar-size);--scrollbar-overscroll-behavior: initial;--scrollbar-transition-duration: .4s;--scrollbar-transition-delay: .8s;--scrollbar-thumb-transition: height ease-out .15s, width ease-out .15s;--scrollbar-track-transition: height ease-out .15s, width ease-out .15s;display:block;position:relative;height:100%;max-height:100%;max-width:100%;box-sizing:content-box!important}[_nghost-%COMP%] > .ng-scrollbar-wrapper[_ngcontent-%COMP%]{--scrollbar-total-size: calc(var(--scrollbar-size) + var(--scrollbar-padding) * 2);--vertical-scrollbar-size: var(--scrollbar-size);--horizontal-scrollbar-size: var(--scrollbar-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalDragging=true][_ngcontent-%COMP%]{--vertical-scrollbar-size: var(--scrollbar-hover-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalDragging=true][_ngcontent-%COMP%]{--horizontal-scrollbar-size: var(--scrollbar-hover-size);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:0;bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:var(--scrollbar-total-size);bottom:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{scrollbar-width:none;-ms-overflow-style:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport::-webkit-scrollbar{display:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-native-scrollbar-hider{bottom:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-native-scrollbar-hider{left:0;right:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-native-scrollbar-hider{right:0;left:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%] > .scrollbar-control[_ngcontent-%COMP%]{opacity:0;transition-property:opacity;transition-duration:var(--scrollbar-transition-duration);transition-delay:var(--scrollbar-transition-delay)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:hover > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:active > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:focus > .scrollbar-control[_ngcontent-%COMP%]{opacity:1;transition-duration:var(--scrollbar-transition-duration);transition-delay:0ms}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{overflow-x:auto;overflow-y:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{overflow-y:auto;overflow-x:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{overflow:auto}.ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{overflow:hidden}.ng-scroll-viewport[_ngcontent-%COMP%]{-webkit-overflow-scrolling:touch;contain:strict;will-change:scroll-position;overscroll-behavior:var(--scrollbar-overscroll-behavior)}  .ng-scroll-content{display:inline-block;min-width:100%}.ng-scrollbar-wrapper[_ngcontent-%COMP%], .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], .ng-scroll-layer[_ngcontent-%COMP%],   .ng-scroll-viewport{position:absolute;inset:0}",".ng-scrollbar-wrapper[pointerEventsMethod=viewport]>.scrollbar-control{pointer-events:none}  .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport,   .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>*>*>  .ng-scroll-viewport,   .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport,   .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>*>*>  .ng-scroll-viewport,   .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport,   .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>*>*>  .ng-scroll-viewport{-webkit-user-select:none;-moz-user-select:none;user-select:none}  .ng-scrollbar-wrapper>.scrollbar-control{position:absolute;display:flex;justify-content:center;align-items:center;transition:var(--scrollbar-track-transition)}  .ng-scrollbar-wrapper>.scrollbar-control[scrollable=false] .ng-scrollbar-thumb{display:none}  .ng-scrollbar-track{height:100%;width:100%;z-index:1;border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-track-color);overflow:hidden;transition:var(--scrollbar-track-transition);cursor:default}  .ng-scrollbar-thumb{box-sizing:border-box;position:relative;border-radius:inherit;background-color:var(--scrollbar-thumb-color);transform:translateZ(0);transition:var(--scrollbar-thumb-transition)}"],changeDetection:0})}return Yt})(),Un=(()=>{class Yt{static withConfig(yt){return{ngModule:Yt,providers:[{provide:ii,useValue:yt}]}}static#e=this.\u0275fac=function(Bt){return new(Bt||Yt)};static#t=this.\u0275mod=e.oAB({type:Yt});static#n=this.\u0275inj=e.cJS({imports:[n.ez,s.vT,l.eL,i.ud,Et]})}return Yt})()},85219:(gt,X,a)=>{"use strict";a.d(X,{F0:()=>b,a6:()=>o,b4:()=>H,ez:()=>m,iZ:()=>u,jx:()=>G,m8:()=>B,pg:()=>x,ws:()=>ae});var e=a(19212),n=a(72079),s=a(2332),l=a(96814);let o=(()=>class q{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"})(),x=(()=>class q{static AND="and";static OR="or"})(),u=(()=>{class q{filter(Y,K,ne,ee,$){let ue=[];if(Y)for(let ge of Y)for(let Ke of K){let at=s.gb.resolveFieldData(ge,Ke);if(this.filters[ee](at,ne,$)){ue.push(ge);break}}return ue}filters={startsWith:(Y,K,ne)=>{if(null==K||""===K.trim())return!0;if(null==Y)return!1;let ee=s.gb.removeAccents(K.toString()).toLocaleLowerCase(ne);return s.gb.removeAccents(Y.toString()).toLocaleLowerCase(ne).slice(0,ee.length)===ee},contains:(Y,K,ne)=>{if(null==K||"string"==typeof K&&""===K.trim())return!0;if(null==Y)return!1;let ee=s.gb.removeAccents(K.toString()).toLocaleLowerCase(ne);return-1!==s.gb.removeAccents(Y.toString()).toLocaleLowerCase(ne).indexOf(ee)},notContains:(Y,K,ne)=>{if(null==K||"string"==typeof K&&""===K.trim())return!0;if(null==Y)return!1;let ee=s.gb.removeAccents(K.toString()).toLocaleLowerCase(ne);return-1===s.gb.removeAccents(Y.toString()).toLocaleLowerCase(ne).indexOf(ee)},endsWith:(Y,K,ne)=>{if(null==K||""===K.trim())return!0;if(null==Y)return!1;let ee=s.gb.removeAccents(K.toString()).toLocaleLowerCase(ne),$=s.gb.removeAccents(Y.toString()).toLocaleLowerCase(ne);return-1!==$.indexOf(ee,$.length-ee.length)},equals:(Y,K,ne)=>null==K||"string"==typeof K&&""===K.trim()||null!=Y&&(Y.getTime&&K.getTime?Y.getTime()===K.getTime():s.gb.removeAccents(Y.toString()).toLocaleLowerCase(ne)==s.gb.removeAccents(K.toString()).toLocaleLowerCase(ne)),notEquals:(Y,K,ne)=>!(null==K||"string"==typeof K&&""===K.trim()||null!=Y&&(Y.getTime&&K.getTime?Y.getTime()===K.getTime():s.gb.removeAccents(Y.toString()).toLocaleLowerCase(ne)==s.gb.removeAccents(K.toString()).toLocaleLowerCase(ne))),in:(Y,K)=>{if(null==K||0===K.length)return!0;for(let ne=0;ne<K.length;ne++)if(s.gb.equals(Y,K[ne]))return!0;return!1},between:(Y,K)=>null==K||null==K[0]||null==K[1]||null!=Y&&(Y.getTime?K[0].getTime()<=Y.getTime()&&Y.getTime()<=K[1].getTime():K[0]<=Y&&Y<=K[1]),lt:(Y,K,ne)=>null==K||null!=Y&&(Y.getTime&&K.getTime?Y.getTime()<K.getTime():Y<K),lte:(Y,K,ne)=>null==K||null!=Y&&(Y.getTime&&K.getTime?Y.getTime()<=K.getTime():Y<=K),gt:(Y,K,ne)=>null==K||null!=Y&&(Y.getTime&&K.getTime?Y.getTime()>K.getTime():Y>K),gte:(Y,K,ne)=>null==K||null!=Y&&(Y.getTime&&K.getTime?Y.getTime()>=K.getTime():Y>=K),is:(Y,K,ne)=>this.filters.equals(Y,K,ne),isNot:(Y,K,ne)=>this.filters.notEquals(Y,K,ne),before:(Y,K,ne)=>this.filters.lt(Y,K,ne),after:(Y,K,ne)=>this.filters.gt(Y,K,ne),dateIs:(Y,K)=>null==K||null!=Y&&Y.toDateString()===K.toDateString(),dateIsNot:(Y,K)=>null==K||null!=Y&&Y.toDateString()!==K.toDateString(),dateBefore:(Y,K)=>null==K||null!=Y&&Y.getTime()<K.getTime(),dateAfter:(Y,K)=>null==K||null!=Y&&Y.getTime()>K.getTime()};register(Y,K){this.filters[Y]=K}static \u0275fac=function(K){return new(K||q)};static \u0275prov=e.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"})}return q})(),m=(()=>{class q{messageSource=new n.xQ;clearSource=new n.xQ;messageObserver=this.messageSource.asObservable();clearObserver=this.clearSource.asObservable();add(Y){Y&&this.messageSource.next(Y)}addAll(Y){Y&&Y.length&&this.messageSource.next(Y)}clear(Y){this.clearSource.next(Y||null)}static \u0275fac=function(K){return new(K||q)};static \u0275prov=e.Yz7({token:q,factory:q.\u0275fac})}return q})(),b=(()=>{class q{clickSource=new n.xQ;clickObservable=this.clickSource.asObservable();add(Y){Y&&this.clickSource.next(Y)}static \u0275fac=function(K){return new(K||q)};static \u0275prov=e.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"})}return q})(),H=(()=>{class q{ripple=!1;inputStyle="outlined";overlayOptions={};filterMatchModeOptions={text:[o.STARTS_WITH,o.CONTAINS,o.NOT_CONTAINS,o.ENDS_WITH,o.EQUALS,o.NOT_EQUALS],numeric:[o.EQUALS,o.NOT_EQUALS,o.LESS_THAN,o.LESS_THAN_OR_EQUAL_TO,o.GREATER_THAN,o.GREATER_THAN_OR_EQUAL_TO],date:[o.DATE_IS,o.DATE_IS_NOT,o.DATE_BEFORE,o.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left",listLabel:"Option List",selectColor:"Select a color"}};zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100};translationSource=new n.xQ;translationObserver=this.translationSource.asObservable();getTranslation(Y){return this.translation[Y]}setTranslation(Y){this.translation={...this.translation,...Y},this.translationSource.next(this.translation)}static \u0275fac=function(K){return new(K||q)};static \u0275prov=e.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"})}return q})(),G=(()=>{class q{template;type;name;constructor(Y){this.template=Y}getType(){return this.name}static \u0275fac=function(K){return new(K||q)(e.Y36(e.Rgc))};static \u0275dir=e.lG2({type:q,selectors:[["","pTemplate",""]],inputs:{type:"type",name:[e.lbL.None,"pTemplate","name"]}})}return q})(),B=(()=>{class q{static \u0275fac=function(K){return new(K||q)};static \u0275mod=e.oAB({type:q});static \u0275inj=e.cJS({imports:[l.ez]})}return q})(),ae=(()=>class q{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage";static SHOW_FILTER_MENU="showFilterMenu";static HIDE_FILTER_MENU="hideFilterMenu";static SELECTION_MESSAGE="selectionMessage";static ARIA="aria";static SELECT_COLOR="selectColor"})()},84713:(gt,X,a)=>{"use strict";a.d(X,{s:()=>l});var e=a(19212),n=a(2332);const s=["*"];let l=(()=>{class i{label;spin=!1;styleClass;role;ariaLabel;ariaHidden;ngOnInit(){this.getAttributes()}getAttributes(){const p=n.gb.isEmpty(this.label);this.role=p?void 0:"img",this.ariaLabel=p?void 0:this.label,this.ariaHidden=p}getClassNames(){return`p-icon ${this.styleClass?this.styleClass+" ":""}${this.spin?"p-icon-spin":""}`}static \u0275fac=function(c){return new(c||i)};static \u0275cmp=e.Xpm({type:i,selectors:[["ng-component"]],hostAttrs:[1,"p-element","p-icon-wrapper"],inputs:{label:"label",spin:"spin",styleClass:"styleClass"},standalone:!0,features:[e.jDz],ngContentSelectors:s,decls:1,vars:0,template:function(c,o){1&c&&(e.F$t(),e.Hsn(0))},encapsulation:2,changeDetection:0})}return i})()},40707:(gt,X,a)=>{"use strict";a.d(X,{Hq:()=>K,hJ:()=>ee,zx:()=>ne});var e=a(96814),n=a(19212),s=a(85219),l=a(82076),i=a(78717),t=a(44480),p=a(2332);function c($,ue){1&$&&n.GkF(0)}function o($,ue){if(1&$&&n._UZ(0,"span",8),2&$){const ge=n.oxw(3);n.Tol("p-button-loading-icon pi-spin "+ge.loadingIcon),n.Q6J("ngClass",ge.iconClass()),n.uIk("aria-hidden",!0)("data-pc-section","loadingicon")}}function x($,ue){if(1&$&&n._UZ(0,"SpinnerIcon",9),2&$){const ge=n.oxw(3);n.Q6J("styleClass",ge.spinnerIconClass())("spin",!0),n.uIk("aria-hidden",!0)("data-pc-section","loadingicon")}}function u($,ue){if(1&$&&(n.ynx(0),n.YNc(1,o,1,5,"span",6)(2,x,1,4,"SpinnerIcon",7),n.BQk()),2&$){const ge=n.oxw(2);n.xp6(),n.Q6J("ngIf",ge.loadingIcon),n.xp6(),n.Q6J("ngIf",!ge.loadingIcon)}}function m($,ue){}function b($,ue){1&$&&n.YNc(0,m,0,0,"ng-template")}function I($,ue){if(1&$&&(n.TgZ(0,"span",10),n.YNc(1,b,1,0,null,1),n.qZA()),2&$){const ge=n.oxw(2);n.Q6J("ngClass",ge.iconClass()),n.uIk("aria-hidden",!0)("data-pc-section","loadingicon"),n.xp6(),n.Q6J("ngTemplateOutlet",ge.loadingIconTemplate)}}function H($,ue){if(1&$&&(n.ynx(0),n.YNc(1,u,3,2,"ng-container",2)(2,I,2,4,"span",5),n.BQk()),2&$){const ge=n.oxw();n.xp6(),n.Q6J("ngIf",!ge.loadingIconTemplate),n.xp6(),n.Q6J("ngIf",ge.loadingIconTemplate)}}function O($,ue){if(1&$&&n._UZ(0,"span",8),2&$){const ge=n.oxw(2);n.Tol(ge.icon),n.Q6J("ngClass",ge.iconClass()),n.uIk("data-pc-section","icon")}}function P($,ue){}function G($,ue){if(1&$&&n.YNc(0,P,0,0,"ng-template",12),2&$){const ge=n.oxw(3);n.Q6J("ngIf",!ge.icon)}}function B($,ue){if(1&$&&(n.TgZ(0,"span",8),n.YNc(1,G,1,1,null,1),n.qZA()),2&$){const ge=n.oxw(2);n.Q6J("ngClass",ge.iconClass()),n.uIk("data-pc-section","icon"),n.xp6(),n.Q6J("ngTemplateOutlet",ge.iconTemplate)}}function ae($,ue){if(1&$&&(n.ynx(0),n.YNc(1,O,1,4,"span",6)(2,B,2,3,"span",11),n.BQk()),2&$){const ge=n.oxw();n.xp6(),n.Q6J("ngIf",ge.icon&&!ge.iconTemplate),n.xp6(),n.Q6J("ngIf",!ge.icon&&ge.iconTemplate)}}function J($,ue){if(1&$&&(n.TgZ(0,"span",13),n._uU(1),n.qZA()),2&$){const ge=n.oxw();n.uIk("aria-hidden",ge.icon&&!ge.label)("data-pc-section","label"),n.xp6(),n.Oqu(ge.label)}}function q($,ue){if(1&$&&(n.TgZ(0,"span",8),n._uU(1),n.qZA()),2&$){const ge=n.oxw();n.Tol(ge.badgeClass),n.Q6J("ngClass",ge.badgeStyleClass()),n.uIk("data-pc-section","badge"),n.xp6(),n.Oqu(ge.badge)}}const j=["*"],Y={button:"p-button",component:"p-component",iconOnly:"p-button-icon-only",disabled:"p-disabled",loading:"p-button-loading",labelOnly:"p-button-loading-label-only"};let K=(()=>{class ${el;document;iconPos="left";loadingIcon;get label(){return this._label}set label(ge){this._label=ge,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(ge){this._icon=ge,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(ge){this._loading=ge,this.initialized&&(this.updateIcon(),this.setStyleClass())}_label;_icon;_loading=!1;initialized;get htmlElement(){return this.el.nativeElement}_internalClasses=Object.values(Y);spinnerIcon='<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" class="p-icon-spin">\n        <g clip-path="url(#clip0_417_21408)">\n            <path\n                d="M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z"\n                fill="currentColor"\n            />\n        </g>\n        <defs>\n            <clipPath id="clip0_417_21408">\n                <rect width="14" height="14" fill="white" />\n            </clipPath>\n        </defs>\n    </svg>';constructor(ge,Ke){this.el=ge,this.document=Ke}ngAfterViewInit(){l.p.addMultipleClasses(this.htmlElement,this.getStyleClass().join(" ")),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){const ge=[Y.button,Y.component];return this.icon&&!this.label&&p.gb.isEmpty(this.htmlElement.textContent)&&ge.push(Y.iconOnly),this.loading&&(ge.push(Y.disabled,Y.loading),!this.icon&&this.label&&ge.push(Y.labelOnly),this.icon&&!this.label&&!p.gb.isEmpty(this.htmlElement.textContent)&&ge.push(Y.iconOnly)),ge}setStyleClass(){const ge=this.getStyleClass();this.htmlElement.classList.remove(...this._internalClasses),this.htmlElement.classList.add(...ge)}createLabel(){if(!l.p.findSingle(this.htmlElement,".p-button-label")&&this.label){let Ke=this.document.createElement("span");this.icon&&!this.label&&Ke.setAttribute("aria-hidden","true"),Ke.className="p-button-label",Ke.appendChild(this.document.createTextNode(this.label)),this.htmlElement.appendChild(Ke)}}createIcon(){if(!l.p.findSingle(this.htmlElement,".p-button-icon")&&(this.icon||this.loading)){let Ke=this.document.createElement("span");Ke.className="p-button-icon",Ke.setAttribute("aria-hidden","true");let at=this.label?"p-button-icon-"+this.iconPos:null;at&&l.p.addClass(Ke,at);let Le=this.getIconClass();Le&&l.p.addMultipleClasses(Ke,Le),!this.loadingIcon&&this.loading&&(Ke.innerHTML=this.spinnerIcon),this.htmlElement.insertBefore(Ke,this.htmlElement.firstChild)}}updateLabel(){let ge=l.p.findSingle(this.htmlElement,".p-button-label");this.label?ge?ge.textContent=this.label:this.createLabel():ge&&this.htmlElement.removeChild(ge)}updateIcon(){let ge=l.p.findSingle(this.htmlElement,".p-button-icon"),Ke=l.p.findSingle(this.htmlElement,".p-button-label");this.loading&&!this.loadingIcon&&ge?ge.innerHTML=this.spinnerIcon:ge?.innerHTML&&(ge.innerHTML=""),ge?ge.className=this.iconPos?"p-button-icon "+(Ke?"p-button-icon-"+this.iconPos:"")+" "+this.getIconClass():"p-button-icon "+this.getIconClass():this.createIcon()}getIconClass(){return this.loading?"p-button-loading-icon "+(this.loadingIcon?this.loadingIcon:"p-icon"):this.icon||"p-hidden"}ngOnDestroy(){this.initialized=!1}static \u0275fac=function(Ke){return new(Ke||$)(n.Y36(n.SBq),n.Y36(e.K0))};static \u0275dir=n.lG2({type:$,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}})}return $})(),ne=(()=>{class ${el;type="button";iconPos="left";icon;badge;label;disabled;loading=!1;loadingIcon;raised=!1;rounded=!1;text=!1;plain=!1;severity;outlined=!1;link=!1;size;style;styleClass;badgeClass;ariaLabel;onClick=new n.vpe;onFocus=new n.vpe;onBlur=new n.vpe;contentTemplate;loadingIconTemplate;iconTemplate;templates;constructor(ge){this.el=ge}spinnerIconClass(){return Object.entries(this.iconClass()).filter(([,ge])=>!!ge).reduce((ge,[Ke])=>ge+` ${Ke}`,"p-button-loading-icon")}iconClass(){return{"p-button-icon":!0,"p-button-icon-left":"left"===this.iconPos&&this.label,"p-button-icon-right":"right"===this.iconPos&&this.label,"p-button-icon-top":"top"===this.iconPos&&this.label,"p-button-icon-bottom":"bottom"===this.iconPos&&this.label}}get buttonClass(){return{"p-button p-component":!0,"p-button-icon-only":(this.icon||this.iconTemplate||this.loadingIcon||this.loadingIconTemplate)&&!this.label,"p-button-vertical":("top"===this.iconPos||"bottom"===this.iconPos)&&this.label,"p-disabled":this.disabled||this.loading,"p-button-loading":this.loading,"p-button-loading-label-only":this.loading&&!this.icon&&this.label&&!this.loadingIcon&&"left"===this.iconPos,"p-button-link":this.link,[`p-button-${this.severity}`]:this.severity,"p-button-raised":this.raised,"p-button-rounded":this.rounded,"p-button-text":this.text,"p-button-outlined":this.outlined,"p-button-sm":"small"===this.size,"p-button-lg":"large"===this.size,"p-button-plain":this.plain,[`${this.styleClass}`]:this.styleClass}}ngAfterContentInit(){this.templates?.forEach(ge=>{switch(ge.getType()){case"content":default:this.contentTemplate=ge.template;break;case"icon":this.iconTemplate=ge.template;break;case"loadingicon":this.loadingIconTemplate=ge.template}})}badgeStyleClass(){return{"p-badge p-component":!0,"p-badge-no-gutter":this.badge&&1===String(this.badge).length}}static \u0275fac=function(Ke){return new(Ke||$)(n.Y36(n.SBq))};static \u0275cmp=n.Xpm({type:$,selectors:[["p-button"]],contentQueries:function(Ke,at,Le){if(1&Ke&&n.Suo(Le,s.jx,4),2&Ke){let R;n.iGM(R=n.CRH())&&(at.templates=R)}},hostAttrs:[1,"p-element"],hostVars:2,hostBindings:function(Ke,at){2&Ke&&n.ekj("p-disabled",at.disabled)},inputs:{type:"type",iconPos:"iconPos",icon:"icon",badge:"badge",label:"label",disabled:"disabled",loading:"loading",loadingIcon:"loadingIcon",raised:"raised",rounded:"rounded",text:"text",plain:"plain",severity:"severity",outlined:"outlined",link:"link",size:"size",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",ariaLabel:"ariaLabel"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},ngContentSelectors:j,decls:7,vars:12,consts:[["pRipple","",3,"ngStyle","disabled","ngClass","click","focus","blur"],[4,"ngTemplateOutlet"],[4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"ngClass","class",4,"ngIf"],["class","p-button-loading-icon",3,"ngClass",4,"ngIf"],[3,"class","ngClass",4,"ngIf"],[3,"styleClass","spin",4,"ngIf"],[3,"ngClass"],[3,"styleClass","spin"],[1,"p-button-loading-icon",3,"ngClass"],[3,"ngClass",4,"ngIf"],[3,"ngIf"],[1,"p-button-label"]],template:function(Ke,at){1&Ke&&(n.F$t(),n.TgZ(0,"button",0),n.NdJ("click",function(R){return at.onClick.emit(R)})("focus",function(R){return at.onFocus.emit(R)})("blur",function(R){return at.onBlur.emit(R)}),n.Hsn(1),n.YNc(2,c,1,0,"ng-container",1)(3,H,3,2,"ng-container",2)(4,ae,3,2,"ng-container",2)(5,J,2,3,"span",3)(6,q,2,5,"span",4),n.qZA()),2&Ke&&(n.Q6J("ngStyle",at.style)("disabled",at.disabled||at.loading)("ngClass",at.buttonClass),n.uIk("type",at.type)("aria-label",at.ariaLabel)("data-pc-name","button")("data-pc-section","root"),n.xp6(2),n.Q6J("ngTemplateOutlet",at.contentTemplate),n.xp6(),n.Q6J("ngIf",at.loading),n.xp6(),n.Q6J("ngIf",!at.loading),n.xp6(),n.Q6J("ngIf",!at.contentTemplate&&at.label),n.xp6(),n.Q6J("ngIf",!at.contentTemplate&&at.badge))},dependencies:()=>[e.mk,e.O5,e.tP,e.PC,t.H,i.L],encapsulation:2,changeDetection:0})}return $})(),ee=(()=>{class ${static \u0275fac=function(Ke){return new(Ke||$)};static \u0275mod=n.oAB({type:$});static \u0275inj=n.cJS({imports:[e.ez,t.T,s.m8,i.L,s.m8]})}return $})()},23212:(gt,X,a)=>{"use strict";a.d(X,{f:()=>Bi,_8:()=>$n});var e=a(86825),n=a(96814),s=a(19212),l=a(56223),i=a(85219),t=a(40707),p=a(82076),c=a(44480),o=a(2332),x=a(84713);let u=(()=>{class Ui extends x.s{static \u0275fac=(()=>{let bt;return function(Wn){return(bt||(bt=s.n5z(Ui)))(Wn||Ui)}})();static \u0275cmp=s.Xpm({type:Ui,selectors:[["ChevronLeftIcon"]],standalone:!0,features:[s.qOj,s.jDz],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z","fill","currentColor"]],template:function(an,Wn){1&an&&(s.O4$(),s.TgZ(0,"svg",0),s._UZ(1,"path",1),s.qZA()),2&an&&(s.Tol(Wn.getClassNames()),s.uIk("aria-label",Wn.ariaLabel)("aria-hidden",Wn.ariaHidden)("role",Wn.role))},encapsulation:2})}return Ui})();var m=a(44562);let b=(()=>{class Ui extends x.s{static \u0275fac=(()=>{let bt;return function(Wn){return(bt||(bt=s.n5z(Ui)))(Wn||Ui)}})();static \u0275cmp=s.Xpm({type:Ui,selectors:[["ChevronUpIcon"]],standalone:!0,features:[s.qOj,s.jDz],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z","fill","currentColor"]],template:function(an,Wn){1&an&&(s.O4$(),s.TgZ(0,"svg",0),s._UZ(1,"path",1),s.qZA()),2&an&&(s.Tol(Wn.getClassNames()),s.uIk("aria-label",Wn.ariaLabel)("aria-hidden",Wn.ariaHidden)("role",Wn.role))},encapsulation:2})}return Ui})();var I=a(76005),H=a(77778);let O=(()=>{class Ui extends x.s{static \u0275fac=(()=>{let bt;return function(Wn){return(bt||(bt=s.n5z(Ui)))(Wn||Ui)}})();static \u0275cmp=s.Xpm({type:Ui,selectors:[["CalendarIcon"]],standalone:!0,features:[s.qOj,s.jDz],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z","fill","currentColor"]],template:function(an,Wn){1&an&&(s.O4$(),s.TgZ(0,"svg",0),s._UZ(1,"path",1),s.qZA()),2&an&&(s.Tol(Wn.getClassNames()),s.uIk("aria-label",Wn.ariaLabel)("aria-hidden",Wn.ariaHidden)("role",Wn.role))},encapsulation:2})}return Ui})();const P=["container"],G=["inputfield"],B=["contentWrapper"];function ae(Ui,Xo){if(1&Ui){const bt=s.EpF();s.TgZ(0,"TimesIcon",10),s.NdJ("click",function(){s.CHM(bt);const Wn=s.oxw(3);return s.KtG(Wn.clear())}),s.qZA()}2&Ui&&s.Q6J("styleClass","p-calendar-clear-icon")}function J(Ui,Xo){}function q(Ui,Xo){1&Ui&&s.YNc(0,J,0,0,"ng-template")}function j(Ui,Xo){if(1&Ui){const bt=s.EpF();s.TgZ(0,"span",11),s.NdJ("click",function(){s.CHM(bt);const Wn=s.oxw(3);return s.KtG(Wn.clear())}),s.YNc(1,q,1,0,null,12),s.qZA()}if(2&Ui){const bt=s.oxw(3);s.xp6(),s.Q6J("ngTemplateOutlet",bt.clearIconTemplate)}}function Y(Ui,Xo){if(1&Ui&&(s.ynx(0),s.YNc(1,ae,1,1,"TimesIcon",8)(2,j,2,1,"span",9),s.BQk()),2&Ui){const bt=s.oxw(2);s.xp6(),s.Q6J("ngIf",!bt.clearIconTemplate),s.xp6(),s.Q6J("ngIf",bt.clearIconTemplate)}}function K(Ui,Xo){if(1&Ui&&s._UZ(0,"span",15),2&Ui){const bt=s.oxw(3);s.Q6J("ngClass",bt.icon)}}function ne(Ui,Xo){1&Ui&&s._UZ(0,"CalendarIcon")}function ee(Ui,Xo){}function $(Ui,Xo){1&Ui&&s.YNc(0,ee,0,0,"ng-template")}function ue(Ui,Xo){if(1&Ui&&(s.ynx(0),s.YNc(1,ne,1,0,"CalendarIcon",6)(2,$,1,0,null,12),s.BQk()),2&Ui){const bt=s.oxw(3);s.xp6(),s.Q6J("ngIf",!bt.triggerIconTemplate),s.xp6(),s.Q6J("ngTemplateOutlet",bt.triggerIconTemplate)}}function ge(Ui,Xo){if(1&Ui){const bt=s.EpF();s.TgZ(0,"button",13),s.NdJ("click",function(Wn){s.CHM(bt),s.oxw();const eo=s.MAs(1),_r=s.oxw();return s.KtG(_r.onButtonClick(Wn,eo))}),s.YNc(1,K,1,1,"span",14)(2,ue,3,2,"ng-container",6),s.qZA()}if(2&Ui){const bt=s.oxw(2);let an;s.Q6J("disabled",bt.disabled),s.uIk("aria-label",bt.iconButtonAriaLabel)("aria-expanded",null!==(an=bt.overlayVisible)&&void 0!==an&&an)("aria-controls",bt.overlayVisible?bt.panelId:null),s.xp6(),s.Q6J("ngIf",bt.icon),s.xp6(),s.Q6J("ngIf",!bt.icon)}}const Ke=Ui=>({"p-datepicker-icon":Ui});function at(Ui,Xo){if(1&Ui){const bt=s.EpF();s.TgZ(0,"CalendarIcon",18),s.NdJ("click",function(Wn){s.CHM(bt);const eo=s.oxw(3);return s.KtG(eo.onButtonClick(Wn))}),s.qZA()}if(2&Ui){const bt=s.oxw(3);s.Q6J("ngClass",s.VKq(1,Ke,bt.showOnFocus))}}function Le(Ui,Xo){1&Ui&&s.GkF(0)}const R=Ui=>({clickCallBack:Ui});function Te(Ui,Xo){if(1&Ui&&(s.ynx(0),s.YNc(1,at,1,3,"CalendarIcon",16)(2,Le,1,0,"ng-container",17),s.BQk()),2&Ui){const bt=s.oxw(2);s.xp6(),s.Q6J("ngIf",!bt.inputIconTemplate),s.xp6(),s.Q6J("ngTemplateOutlet",bt.inputIconTemplate)("ngTemplateOutletContext",s.VKq(3,R,bt.onButtonClick.bind(bt)))}}function me(Ui,Xo){if(1&Ui){const bt=s.EpF();s.TgZ(0,"input",4,5),s.NdJ("focus",function(Wn){s.CHM(bt);const eo=s.oxw();return s.KtG(eo.onInputFocus(Wn))})("keydown",function(Wn){s.CHM(bt);const eo=s.oxw();return s.KtG(eo.onInputKeydown(Wn))})("click",function(){s.CHM(bt);const Wn=s.oxw();return s.KtG(Wn.onInputClick())})("blur",function(Wn){s.CHM(bt);const eo=s.oxw();return s.KtG(eo.onInputBlur(Wn))})("input",function(Wn){s.CHM(bt);const eo=s.oxw();return s.KtG(eo.onUserInput(Wn))}),s.qZA(),s.YNc(2,Y,3,2,"ng-container",6)(3,ge,3,6,"button",7)(4,Te,3,5,"ng-container",6)}if(2&Ui){const bt=s.oxw();let an;s.Tol(bt.inputStyleClass),s.Q6J("value",bt.inputFieldValue)("readonly",bt.readonlyInput)("ngStyle",bt.inputStyle)("placeholder",bt.placeholder||"")("disabled",bt.disabled)("ngClass","p-inputtext p-component"),s.uIk("id",bt.inputId)("name",bt.name)("required",bt.required)("aria-required",bt.required)("aria-expanded",null!==(an=bt.overlayVisible)&&void 0!==an&&an)("aria-controls",bt.overlayVisible?bt.panelId:null)("aria-labelledby",bt.ariaLabelledBy)("aria-label",bt.ariaLabel)("tabindex",bt.tabindex)("inputmode",bt.touchUI?"off":null),s.xp6(2),s.Q6J("ngIf",bt.showClear&&!bt.disabled&&null!=bt.value),s.xp6(),s.Q6J("ngIf",bt.showIcon&&"button"===bt.iconDisplay),s.xp6(),s.Q6J("ngIf","input"===bt.iconDisplay&&bt.showIcon)}}function Se(Ui,Xo){1&Ui&&s.GkF(0)}function Ue(Ui,Xo){1&Ui&&s._UZ(0,"ChevronLeftIcon",40),2&Ui&&s.Q6J("styleClass","p-datepicker-prev-icon")}function We(Ui,Xo){}function et(Ui,Xo){1&Ui&&s.YNc(0,We,0,0,"ng-template")}function Et(Ui,Xo){if(1&Ui&&(s.TgZ(0,"span",41),s.YNc(1,et,1,0,null,12),s.qZA()),2&Ui){const bt=s.oxw(5);s.xp6(),s.Q6J("ngTemplateOutlet",bt.previousIconTemplate)}}function lt(Ui,Xo){if(1&Ui){const bt=s.EpF();s.TgZ(0,"button",38),s.NdJ("keydown",function(Wn){s.CHM(bt);const eo=s.oxw(4);return s.KtG(eo.onContainerButtonKeydown(Wn))})("click",function(Wn){s.CHM(bt);const eo=s.oxw(4);return s.KtG(eo.onPrevButtonClick(Wn))}),s.YNc(1,Ue,1,1,"ChevronLeftIcon",35)(2,Et,2,1,"span",39),s.qZA()}if(2&Ui){const bt=s.oxw(4);s.uIk("aria-label",bt.prevIconAriaLabel),s.xp6(),s.Q6J("ngIf",!bt.previousIconTemplate),s.xp6(),s.Q6J("ngIf",bt.previousIconTemplate)}}function Vt(Ui,Xo){if(1&Ui){const bt=s.EpF();s.TgZ(0,"button",42),s.NdJ("click",function(Wn){s.CHM(bt);const eo=s.oxw(4);return s.KtG(eo.switchToMonthView(Wn))})("keydown",function(Wn){s.CHM(bt);const eo=s.oxw(4);return s.KtG(eo.onContainerButtonKeydown(Wn))}),s._uU(1),s.qZA()}if(2&Ui){const bt=s.oxw().$implicit,an=s.oxw(3);s.Q6J("disabled",an.switchViewButtonDisabled()),s.uIk("aria-label",an.getTranslation("chooseMonth")),s.xp6(),s.hij(" ",an.getMonthName(bt.month)," ")}}function r(Ui,Xo){if(1&Ui){const bt=s.EpF();s.TgZ(0,"button",43),s.NdJ("click",function(Wn){s.CHM(bt);const eo=s.oxw(4);return s.KtG(eo.switchToYearView(Wn))})("keydown",function(Wn){s.CHM(bt);const eo=s.oxw(4);return s.KtG(eo.onContainerButtonKeydown(Wn))}),s._uU(1),s.qZA()}if(2&Ui){const bt=s.oxw().$implicit,an=s.oxw(3);s.Q6J("disabled",an.switchViewButtonDisabled()),s.uIk("aria-label",an.getTranslation("chooseYear")),s.xp6(),s.hij(" ",an.getYear(bt)," ")}}function Z(Ui,Xo){if(1&Ui&&(s.ynx(0),s._uU(1),s.BQk()),2&Ui){const bt=s.oxw(5);s.xp6(),s.AsE("",bt.yearPickerValues()[0]," - ",bt.yearPickerValues()[bt.yearPickerValues().length-1],"")}}function Pt(Ui,Xo){1&Ui&&s.GkF(0)}const Oe=Ui=>({$implicit:Ui});function ye(Ui,Xo){if(1&Ui&&(s.TgZ(0,"span",44),s.YNc(1,Z,2,2,"ng-container",6)(2,Pt,1,0,"ng-container",17),s.qZA()),2&Ui){const bt=s.oxw(4);s.xp6(),s.Q6J("ngIf",!bt.decadeTemplate),s.xp6(),s.Q6J("ngTemplateOutlet",bt.decadeTemplate)("ngTemplateOutletContext",s.VKq(3,Oe,bt.yearPickerValues))}}function ve(Ui,Xo){1&Ui&&s._UZ(0,"ChevronRightIcon",40),2&Ui&&s.Q6J("styleClass","p-datepicker-next-icon")}function ft(Ui,Xo){}function Dt(Ui,Xo){1&Ui&&s.YNc(0,ft,0,0,"ng-template")}function Rn(Ui,Xo){if(1&Ui&&(s.TgZ(0,"span",45),s.YNc(1,Dt,1,0,null,12),s.qZA()),2&Ui){const bt=s.oxw(4);s.xp6(),s.Q6J("ngTemplateOutlet",bt.nextIconTemplate)}}function ti(Ui,Xo){if(1&Ui&&(s.TgZ(0,"th",51)(1,"span"),s._uU(2),s.qZA()()),2&Ui){const bt=s.oxw(5);s.xp6(2),s.Oqu(bt.getTranslation("weekHeader"))}}function Xt(Ui,Xo){if(1&Ui&&(s.TgZ(0,"th",52)(1,"span"),s._uU(2),s.qZA()()),2&Ui){const bt=Xo.$implicit;s.xp6(2),s.Oqu(bt)}}function Je(Ui,Xo){if(1&Ui&&(s.TgZ(0,"td",55)(1,"span",56),s._uU(2),s.qZA()()),2&Ui){const bt=s.oxw().index,an=s.oxw(2).$implicit;s.xp6(2),s.hij(" ",an.weekNumbers[bt]," ")}}function dt(Ui,Xo){if(1&Ui&&(s.ynx(0),s._uU(1),s.BQk()),2&Ui){const bt=s.oxw(2).$implicit;s.xp6(),s.Oqu(bt.day)}}function Ie(Ui,Xo){1&Ui&&s.GkF(0)}function ot(Ui,Xo){if(1&Ui&&(s.ynx(0),s.YNc(1,Ie,1,0,"ng-container",17),s.BQk()),2&Ui){const bt=s.oxw(2).$implicit,an=s.oxw(6);s.xp6(),s.Q6J("ngTemplateOutlet",an.dateTemplate)("ngTemplateOutletContext",s.VKq(2,Oe,bt))}}function ct(Ui,Xo){1&Ui&&s.GkF(0)}function tn(Ui,Xo){if(1&Ui&&(s.ynx(0),s.YNc(1,ct,1,0,"ng-container",17),s.BQk()),2&Ui){const bt=s.oxw(2).$implicit,an=s.oxw(6);s.xp6(),s.Q6J("ngTemplateOutlet",an.disabledDateTemplate)("ngTemplateOutletContext",s.VKq(2,Oe,bt))}}function yi(Ui,Xo){if(1&Ui&&(s.TgZ(0,"div",59),s._uU(1),s.qZA()),2&Ui){const bt=s.oxw(2).$implicit;s.xp6(),s.hij(" ",bt.day," ")}}const ni=(Ui,Xo)=>({"p-highlight":Ui,"p-disabled":Xo});function sn(Ui,Xo){if(1&Ui){const bt=s.EpF();s.ynx(0),s.TgZ(1,"span",57),s.NdJ("click",function(Wn){s.CHM(bt);const eo=s.oxw().$implicit,_r=s.oxw(6);return s.KtG(_r.onDateSelect(Wn,eo))})("keydown",function(Wn){s.CHM(bt);const eo=s.oxw().$implicit,_r=s.oxw(3).index,hr=s.oxw(3);return s.KtG(hr.onDateCellKeydown(Wn,eo,_r))}),s.YNc(2,dt,2,1,"ng-container",6)(3,ot,2,4,"ng-container",6)(4,tn,2,4,"ng-container",6),s.qZA(),s.YNc(5,yi,2,1,"div",58),s.BQk()}if(2&Ui){const bt=s.oxw().$implicit,an=s.oxw(6);s.xp6(),s.Q6J("ngClass",s.WLB(5,ni,an.isSelected(bt)&&bt.selectable,!bt.selectable)),s.xp6(),s.Q6J("ngIf",!an.dateTemplate&&(bt.selectable||!an.disabledDateTemplate)),s.xp6(),s.Q6J("ngIf",bt.selectable||!an.disabledDateTemplate),s.xp6(),s.Q6J("ngIf",!bt.selectable),s.xp6(),s.Q6J("ngIf",an.isSelected(bt))}}const bn=(Ui,Xo)=>({"p-datepicker-other-month":Ui,"p-datepicker-today":Xo});function vt(Ui,Xo){if(1&Ui&&(s.TgZ(0,"td",15),s.YNc(1,sn,6,8,"ng-container",6),s.qZA()),2&Ui){const bt=Xo.$implicit,an=s.oxw(6);s.Q6J("ngClass",s.WLB(3,bn,bt.otherMonth,bt.today)),s.uIk("aria-label",bt.day),s.xp6(),s.Q6J("ngIf",!bt.otherMonth||an.showOtherMonths)}}function nn(Ui,Xo){if(1&Ui&&(s.TgZ(0,"tr"),s.YNc(1,Je,3,1,"td",53)(2,vt,2,6,"td",54),s.qZA()),2&Ui){const bt=Xo.$implicit,an=s.oxw(5);s.xp6(),s.Q6J("ngIf",an.showWeek),s.xp6(),s.Q6J("ngForOf",bt)}}function rn(Ui,Xo){if(1&Ui&&(s.TgZ(0,"div",46)(1,"table",47)(2,"thead")(3,"tr"),s.YNc(4,ti,3,1,"th",48)(5,Xt,3,1,"th",49),s.qZA()(),s.TgZ(6,"tbody"),s.YNc(7,nn,3,2,"tr",50),s.qZA()()()),2&Ui){const bt=s.oxw().$implicit,an=s.oxw(3);s.xp6(4),s.Q6J("ngIf",an.showWeek),s.xp6(),s.Q6J("ngForOf",an.weekDays),s.xp6(2),s.Q6J("ngForOf",bt.dates)}}function ii(Ui,Xo){if(1&Ui){const bt=s.EpF();s.TgZ(0,"div",27)(1,"div",28),s.YNc(2,lt,3,3,"button",29),s.TgZ(3,"div",30),s.YNc(4,Vt,2,3,"button",31)(5,r,2,3,"button",32)(6,ye,3,5,"span",33),s.qZA(),s.TgZ(7,"button",34),s.NdJ("keydown",function(Wn){s.CHM(bt);const eo=s.oxw(3);return s.KtG(eo.onContainerButtonKeydown(Wn))})("click",function(Wn){s.CHM(bt);const eo=s.oxw(3);return s.KtG(eo.onNextButtonClick(Wn))}),s.YNc(8,ve,1,1,"ChevronRightIcon",35)(9,Rn,2,1,"span",36),s.qZA()(),s.YNc(10,rn,8,3,"div",37),s.qZA()}if(2&Ui){const bt=Xo.index,an=s.oxw(3);s.xp6(2),s.Q6J("ngIf",0===bt),s.xp6(2),s.Q6J("ngIf","date"===an.currentView),s.xp6(),s.Q6J("ngIf","year"!==an.currentView),s.xp6(),s.Q6J("ngIf","year"===an.currentView),s.xp6(),s.Udp("display",1===an.numberOfMonths||bt===an.numberOfMonths-1?"inline-flex":"none"),s.uIk("aria-label",an.nextIconAriaLabel),s.xp6(),s.Q6J("ngIf",!an.nextIconTemplate),s.xp6(),s.Q6J("ngIf",an.nextIconTemplate),s.xp6(),s.Q6J("ngIf","date"===an.currentView)}}function Oo(Ui,Xo){if(1&Ui&&(s.TgZ(0,"div",59),s._uU(1),s.qZA()),2&Ui){const bt=s.oxw().$implicit;s.xp6(),s.hij(" ",bt," ")}}function no(Ui,Xo){if(1&Ui){const bt=s.EpF();s.TgZ(0,"span",62),s.NdJ("click",function(Wn){const _r=s.CHM(bt).index,hr=s.oxw(4);return s.KtG(hr.onMonthSelect(Wn,_r))})("keydown",function(Wn){const _r=s.CHM(bt).index,hr=s.oxw(4);return s.KtG(hr.onMonthCellKeydown(Wn,_r))}),s._uU(1),s.YNc(2,Oo,2,1,"div",58),s.qZA()}if(2&Ui){const bt=Xo.$implicit,an=Xo.index,Wn=s.oxw(4);s.Q6J("ngClass",s.WLB(3,ni,Wn.isMonthSelected(an),Wn.isMonthDisabled(an))),s.xp6(),s.hij(" ",bt," "),s.xp6(),s.Q6J("ngIf",Wn.isMonthSelected(an))}}function Li(Ui,Xo){if(1&Ui&&(s.TgZ(0,"div",60),s.YNc(1,no,3,6,"span",61),s.qZA()),2&Ui){const bt=s.oxw(3);s.xp6(),s.Q6J("ngForOf",bt.monthPickerValues())}}function ji(Ui,Xo){if(1&Ui&&(s.TgZ(0,"div",59),s._uU(1),s.qZA()),2&Ui){const bt=s.oxw().$implicit;s.xp6(),s.hij(" ",bt," ")}}function Ii(Ui,Xo){if(1&Ui){const bt=s.EpF();s.TgZ(0,"span",65),s.NdJ("click",function(Wn){const _r=s.CHM(bt).$implicit,hr=s.oxw(4);return s.KtG(hr.onYearSelect(Wn,_r))})("keydown",function(Wn){const _r=s.CHM(bt).$implicit,hr=s.oxw(4);return s.KtG(hr.onYearCellKeydown(Wn,_r))}),s._uU(1),s.YNc(2,ji,2,1,"div",58),s.qZA()}if(2&Ui){const bt=Xo.$implicit,an=s.oxw(4);s.Q6J("ngClass",s.WLB(3,ni,an.isYearSelected(bt),an.isYearDisabled(bt))),s.xp6(),s.hij(" ",bt," "),s.xp6(),s.Q6J("ngIf",an.isYearSelected(bt))}}function _i(Ui,Xo){if(1&Ui&&(s.TgZ(0,"div",63),s.YNc(1,Ii,3,6,"span",64),s.qZA()),2&Ui){const bt=s.oxw(3);s.xp6(),s.Q6J("ngForOf",bt.yearPickerValues())}}function En(Ui,Xo){if(1&Ui&&(s.ynx(0),s.TgZ(1,"div",23),s.YNc(2,ii,11,10,"div",24),s.qZA(),s.YNc(3,Li,2,1,"div",25)(4,_i,2,1,"div",26),s.BQk()),2&Ui){const bt=s.oxw(2);s.xp6(2),s.Q6J("ngForOf",bt.months),s.xp6(),s.Q6J("ngIf","month"===bt.currentView),s.xp6(),s.Q6J("ngIf","year"===bt.currentView)}}function co(Ui,Xo){1&Ui&&s._UZ(0,"ChevronUpIcon")}function yn(Ui,Xo){}function ln(Ui,Xo){1&Ui&&s.YNc(0,yn,0,0,"ng-template")}function He(Ui,Xo){1&Ui&&(s.ynx(0),s._uU(1,"0"),s.BQk())}function rt(Ui,Xo){1&Ui&&s._UZ(0,"ChevronDownIcon")}function $e(Ui,Xo){}function Ve(Ui,Xo){1&Ui&&s.YNc(0,$e,0,0,"ng-template")}function Ce(Ui,Xo){1&Ui&&s._UZ(0,"ChevronUpIcon")}function tt(Ui,Xo){}function ht(Ui,Xo){1&Ui&&s.YNc(0,tt,0,0,"ng-template")}function Qt(Ui,Xo){1&Ui&&(s.ynx(0),s._uU(1,"0"),s.BQk())}function Un(Ui,Xo){1&Ui&&s._UZ(0,"ChevronDownIcon")}function Yt(Ui,Xo){}function Fn(Ui,Xo){1&Ui&&s.YNc(0,Yt,0,0,"ng-template")}function yt(Ui,Xo){if(1&Ui&&(s.TgZ(0,"div",69)(1,"span"),s._uU(2),s.qZA()()),2&Ui){const bt=s.oxw(3);s.xp6(2),s.Oqu(bt.timeSeparator)}}function Bt(Ui,Xo){1&Ui&&s._UZ(0,"ChevronUpIcon")}function li(Ui,Xo){}function si(Ui,Xo){1&Ui&&s.YNc(0,li,0,0,"ng-template")}function oo(Ui,Xo){1&Ui&&(s.ynx(0),s._uU(1,"0"),s.BQk())}function _o(Ui,Xo){1&Ui&&s._UZ(0,"ChevronDownIcon")}function Hn(Ui,Xo){}function mo(Ui,Xo){1&Ui&&s.YNc(0,Hn,0,0,"ng-template")}function vn(Ui,Xo){if(1&Ui){const bt=s.EpF();s.TgZ(0,"div",74)(1,"button",68),s.NdJ("keydown",function(Wn){s.CHM(bt);const eo=s.oxw(3);return s.KtG(eo.onContainerButtonKeydown(Wn))})("keydown.enter",function(Wn){s.CHM(bt);const eo=s.oxw(3);return s.KtG(eo.incrementSecond(Wn))})("keydown.space",function(Wn){s.CHM(bt);const eo=s.oxw(3);return s.KtG(eo.incrementSecond(Wn))})("mousedown",function(Wn){s.CHM(bt);const eo=s.oxw(3);return s.KtG(eo.onTimePickerElementMouseDown(Wn,2,1))})("mouseup",function(Wn){s.CHM(bt);const eo=s.oxw(3);return s.KtG(eo.onTimePickerElementMouseUp(Wn))})("keyup.enter",function(Wn){s.CHM(bt);const eo=s.oxw(3);return s.KtG(eo.onTimePickerElementMouseUp(Wn))})("keyup.space",function(Wn){s.CHM(bt);const eo=s.oxw(3);return s.KtG(eo.onTimePickerElementMouseUp(Wn))})("mouseleave",function(){s.CHM(bt);const Wn=s.oxw(3);return s.KtG(Wn.onTimePickerElementMouseLeave())}),s.YNc(2,Bt,1,0,"ChevronUpIcon",6)(3,si,1,0,null,12),s.qZA(),s.TgZ(4,"span"),s.YNc(5,oo,2,0,"ng-container",6),s._uU(6),s.qZA(),s.TgZ(7,"button",68),s.NdJ("keydown",function(Wn){s.CHM(bt);const eo=s.oxw(3);return s.KtG(eo.onContainerButtonKeydown(Wn))})("keydown.enter",function(Wn){s.CHM(bt);const eo=s.oxw(3);return s.KtG(eo.decrementSecond(Wn))})("keydown.space",function(Wn){s.CHM(bt);const eo=s.oxw(3);return s.KtG(eo.decrementSecond(Wn))})("mousedown",function(Wn){s.CHM(bt);const eo=s.oxw(3);return s.KtG(eo.onTimePickerElementMouseDown(Wn,2,-1))})("mouseup",function(Wn){s.CHM(bt);const eo=s.oxw(3);return s.KtG(eo.onTimePickerElementMouseUp(Wn))})("keyup.enter",function(Wn){s.CHM(bt);const eo=s.oxw(3);return s.KtG(eo.onTimePickerElementMouseUp(Wn))})("keyup.space",function(Wn){s.CHM(bt);const eo=s.oxw(3);return s.KtG(eo.onTimePickerElementMouseUp(Wn))})("mouseleave",function(){s.CHM(bt);const Wn=s.oxw(3);return s.KtG(Wn.onTimePickerElementMouseLeave())}),s.YNc(8,_o,1,0,"ChevronDownIcon",6)(9,mo,1,0,null,12),s.qZA()()}if(2&Ui){const bt=s.oxw(3);s.xp6(),s.uIk("aria-label",bt.getTranslation("nextSecond")),s.xp6(),s.Q6J("ngIf",!bt.incrementIconTemplate),s.xp6(),s.Q6J("ngTemplateOutlet",bt.incrementIconTemplate),s.xp6(2),s.Q6J("ngIf",bt.currentSecond<10),s.xp6(),s.Oqu(bt.currentSecond),s.xp6(),s.uIk("aria-label",bt.getTranslation("prevSecond")),s.xp6(),s.Q6J("ngIf",!bt.decrementIconTemplate),s.xp6(),s.Q6J("ngTemplateOutlet",bt.decrementIconTemplate)}}function Ji(Ui,Xo){1&Ui&&s._UZ(0,"ChevronUpIcon")}function wn(Ui,Xo){}function po(Ui,Xo){1&Ui&&s.YNc(0,wn,0,0,"ng-template")}function Kn(Ui,Xo){1&Ui&&s._UZ(0,"ChevronDownIcon")}function Vn(Ui,Xo){}function Wi(Ui,Xo){1&Ui&&s.YNc(0,Vn,0,0,"ng-template")}function Ft(Ui,Xo){if(1&Ui){const bt=s.EpF();s.TgZ(0,"div",75)(1,"button",76),s.NdJ("keydown",function(Wn){s.CHM(bt);const eo=s.oxw(3);return s.KtG(eo.onContainerButtonKeydown(Wn))})("click",function(Wn){s.CHM(bt);const eo=s.oxw(3);return s.KtG(eo.toggleAMPM(Wn))})("keydown.enter",function(Wn){s.CHM(bt);const eo=s.oxw(3);return s.KtG(eo.toggleAMPM(Wn))}),s.YNc(2,Ji,1,0,"ChevronUpIcon",6)(3,po,1,0,null,12),s.qZA(),s.TgZ(4,"span"),s._uU(5),s.qZA(),s.TgZ(6,"button",76),s.NdJ("keydown",function(Wn){s.CHM(bt);const eo=s.oxw(3);return s.KtG(eo.onContainerButtonKeydown(Wn))})("click",function(Wn){s.CHM(bt);const eo=s.oxw(3);return s.KtG(eo.toggleAMPM(Wn))})("keydown.enter",function(Wn){s.CHM(bt);const eo=s.oxw(3);return s.KtG(eo.toggleAMPM(Wn))}),s.YNc(7,Kn,1,0,"ChevronDownIcon",6)(8,Wi,1,0,null,12),s.qZA()()}if(2&Ui){const bt=s.oxw(3);s.xp6(),s.uIk("aria-label",bt.getTranslation("am")),s.xp6(),s.Q6J("ngIf",!bt.incrementIconTemplate),s.xp6(),s.Q6J("ngTemplateOutlet",bt.incrementIconTemplate),s.xp6(2),s.Oqu(bt.pm?"PM":"AM"),s.xp6(),s.uIk("aria-label",bt.getTranslation("pm")),s.xp6(),s.Q6J("ngIf",!bt.decrementIconTemplate),s.xp6(),s.Q6J("ngTemplateOutlet",bt.decrementIconTemplate)}}function Oi(Ui,Xo){if(1&Ui){const bt=s.EpF();s.TgZ(0,"div",66)(1,"div",67)(2,"button",68),s.NdJ("keydown",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.onContainerButtonKeydown(Wn))})("keydown.enter",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.incrementHour(Wn))})("keydown.space",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.incrementHour(Wn))})("mousedown",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.onTimePickerElementMouseDown(Wn,0,1))})("mouseup",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.onTimePickerElementMouseUp(Wn))})("keyup.enter",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.onTimePickerElementMouseUp(Wn))})("keyup.space",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.onTimePickerElementMouseUp(Wn))})("mouseleave",function(){s.CHM(bt);const Wn=s.oxw(2);return s.KtG(Wn.onTimePickerElementMouseLeave())}),s.YNc(3,co,1,0,"ChevronUpIcon",6)(4,ln,1,0,null,12),s.qZA(),s.TgZ(5,"span"),s.YNc(6,He,2,0,"ng-container",6),s._uU(7),s.qZA(),s.TgZ(8,"button",68),s.NdJ("keydown",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.onContainerButtonKeydown(Wn))})("keydown.enter",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.decrementHour(Wn))})("keydown.space",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.decrementHour(Wn))})("mousedown",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.onTimePickerElementMouseDown(Wn,0,-1))})("mouseup",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.onTimePickerElementMouseUp(Wn))})("keyup.enter",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.onTimePickerElementMouseUp(Wn))})("keyup.space",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.onTimePickerElementMouseUp(Wn))})("mouseleave",function(){s.CHM(bt);const Wn=s.oxw(2);return s.KtG(Wn.onTimePickerElementMouseLeave())}),s.YNc(9,rt,1,0,"ChevronDownIcon",6)(10,Ve,1,0,null,12),s.qZA()(),s.TgZ(11,"div",69)(12,"span"),s._uU(13),s.qZA()(),s.TgZ(14,"div",70)(15,"button",68),s.NdJ("keydown",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.onContainerButtonKeydown(Wn))})("keydown.enter",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.incrementMinute(Wn))})("keydown.space",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.incrementMinute(Wn))})("mousedown",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.onTimePickerElementMouseDown(Wn,1,1))})("mouseup",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.onTimePickerElementMouseUp(Wn))})("keyup.enter",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.onTimePickerElementMouseUp(Wn))})("keyup.space",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.onTimePickerElementMouseUp(Wn))})("mouseleave",function(){s.CHM(bt);const Wn=s.oxw(2);return s.KtG(Wn.onTimePickerElementMouseLeave())}),s.YNc(16,Ce,1,0,"ChevronUpIcon",6)(17,ht,1,0,null,12),s.qZA(),s.TgZ(18,"span"),s.YNc(19,Qt,2,0,"ng-container",6),s._uU(20),s.qZA(),s.TgZ(21,"button",68),s.NdJ("keydown",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.onContainerButtonKeydown(Wn))})("keydown.enter",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.decrementMinute(Wn))})("keydown.space",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.decrementMinute(Wn))})("mousedown",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.onTimePickerElementMouseDown(Wn,1,-1))})("mouseup",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.onTimePickerElementMouseUp(Wn))})("keyup.enter",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.onTimePickerElementMouseUp(Wn))})("keyup.space",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.onTimePickerElementMouseUp(Wn))})("mouseleave",function(){s.CHM(bt);const Wn=s.oxw(2);return s.KtG(Wn.onTimePickerElementMouseLeave())}),s.YNc(22,Un,1,0,"ChevronDownIcon",6)(23,Fn,1,0,null,12),s.qZA()(),s.YNc(24,yt,3,1,"div",71)(25,vn,10,8,"div",72)(26,Ft,9,7,"div",73),s.qZA()}if(2&Ui){const bt=s.oxw(2);s.xp6(2),s.uIk("aria-label",bt.getTranslation("nextHour")),s.xp6(),s.Q6J("ngIf",!bt.incrementIconTemplate),s.xp6(),s.Q6J("ngTemplateOutlet",bt.incrementIconTemplate),s.xp6(2),s.Q6J("ngIf",bt.currentHour<10),s.xp6(),s.Oqu(bt.currentHour),s.xp6(),s.uIk("aria-label",bt.getTranslation("prevHour")),s.xp6(),s.Q6J("ngIf",!bt.decrementIconTemplate),s.xp6(),s.Q6J("ngTemplateOutlet",bt.decrementIconTemplate),s.xp6(3),s.Oqu(bt.timeSeparator),s.xp6(2),s.uIk("aria-label",bt.getTranslation("nextMinute")),s.xp6(),s.Q6J("ngIf",!bt.incrementIconTemplate),s.xp6(),s.Q6J("ngTemplateOutlet",bt.incrementIconTemplate),s.xp6(2),s.Q6J("ngIf",bt.currentMinute<10),s.xp6(),s.Oqu(bt.currentMinute),s.xp6(),s.uIk("aria-label",bt.getTranslation("prevMinute")),s.xp6(),s.Q6J("ngIf",!bt.decrementIconTemplate),s.xp6(),s.Q6J("ngTemplateOutlet",bt.decrementIconTemplate),s.xp6(),s.Q6J("ngIf",bt.showSeconds),s.xp6(),s.Q6J("ngIf",bt.showSeconds),s.xp6(),s.Q6J("ngIf","12"==bt.hourFormat)}}const On=Ui=>[Ui];function _n(Ui,Xo){if(1&Ui){const bt=s.EpF();s.TgZ(0,"div",77)(1,"button",78),s.NdJ("keydown",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.onContainerButtonKeydown(Wn))})("click",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.onTodayButtonClick(Wn))}),s.qZA(),s.TgZ(2,"button",78),s.NdJ("keydown",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.onContainerButtonKeydown(Wn))})("click",function(Wn){s.CHM(bt);const eo=s.oxw(2);return s.KtG(eo.onClearButtonClick(Wn))}),s.qZA()()}if(2&Ui){const bt=s.oxw(2);s.xp6(),s.Q6J("label",bt.getTranslation("today"))("ngClass",s.VKq(4,On,bt.todayButtonStyleClass)),s.xp6(),s.Q6J("label",bt.getTranslation("clear"))("ngClass",s.VKq(6,On,bt.clearButtonStyleClass))}}function st(Ui,Xo){1&Ui&&s.GkF(0)}const Dn=(Ui,Xo,bt,an,Wn,eo)=>({"p-datepicker p-component":!0,"p-datepicker-inline":Ui,"p-disabled":Xo,"p-datepicker-timeonly":bt,"p-datepicker-multiple-month":an,"p-datepicker-monthpicker":Wn,"p-datepicker-touch-ui":eo}),Wt=(Ui,Xo)=>({showTransitionParams:Ui,hideTransitionParams:Xo}),kn=Ui=>({value:"visibleTouchUI",params:Ui}),Fi=Ui=>({value:"visible",params:Ui});function ui(Ui,Xo){if(1&Ui){const bt=s.EpF();s.TgZ(0,"div",19,20),s.NdJ("@overlayAnimation.start",function(Wn){s.CHM(bt);const eo=s.oxw();return s.KtG(eo.onOverlayAnimationStart(Wn))})("@overlayAnimation.done",function(Wn){s.CHM(bt);const eo=s.oxw();return s.KtG(eo.onOverlayAnimationDone(Wn))})("click",function(Wn){s.CHM(bt);const eo=s.oxw();return s.KtG(eo.onOverlayClick(Wn))}),s.Hsn(2),s.YNc(3,Se,1,0,"ng-container",12)(4,En,5,3,"ng-container",6)(5,Oi,27,20,"div",21)(6,_n,3,8,"div",22),s.Hsn(7,1),s.YNc(8,st,1,0,"ng-container",12),s.qZA()}if(2&Ui){const bt=s.oxw();s.Tol(bt.panelStyleClass),s.Q6J("ngStyle",bt.panelStyle)("ngClass",s.HTZ(14,Dn,bt.inline,bt.disabled,bt.timeOnly,bt.numberOfMonths>1,"month"===bt.view,bt.touchUI))("@overlayAnimation",bt.touchUI?s.VKq(24,kn,s.WLB(21,Wt,bt.showTransitionOptions,bt.hideTransitionOptions)):s.VKq(29,Fi,s.WLB(26,Wt,bt.showTransitionOptions,bt.hideTransitionOptions)))("@.disabled",!0===bt.inline),s.uIk("aria-label",bt.getTranslation("chooseDate"))("role",bt.inline?null:"dialog")("aria-modal",bt.inline?null:"true"),s.xp6(3),s.Q6J("ngTemplateOutlet",bt.headerTemplate),s.xp6(),s.Q6J("ngIf",!bt.timeOnly),s.xp6(),s.Q6J("ngIf",(bt.showTime||bt.timeOnly)&&"date"===bt.currentView),s.xp6(),s.Q6J("ngIf",bt.showButtonBar),s.xp6(2),s.Q6J("ngTemplateOutlet",bt.footerTemplate)}}const Fo=[[["p-header"]],[["p-footer"]]],At=(Ui,Xo,bt,an,Wn)=>({"p-calendar":!0,"p-input-icon-right":Ui,"p-calendar-w-btn":Xo,"p-calendar-timeonly":bt,"p-calendar-disabled":an,"p-focus":Wn}),Jn=["p-header","p-footer"],Bn={provide:l.JU,useExisting:(0,s.Gpc)(()=>Bi),multi:!0};let Bi=(()=>{class Ui{document;el;renderer;cd;zone;config;overlayService;iconDisplay="button";style;styleClass;inputStyle;inputId;name;inputStyleClass;placeholder;ariaLabelledBy;ariaLabel;iconAriaLabel;disabled;dateFormat;multipleSeparator=",";rangeSeparator="-";inline=!1;showOtherMonths=!0;selectOtherMonths;showIcon;icon;appendTo;readonlyInput;shortYearCutoff="+10";monthNavigator;yearNavigator;hourFormat="24";timeOnly;stepHour=1;stepMinute=1;stepSecond=1;showSeconds=!1;required;showOnFocus=!0;showWeek=!1;showClear=!1;dataType="date";selectionMode="single";maxDateCount;showButtonBar;todayButtonStyleClass="p-button-text";clearButtonStyleClass="p-button-text";autoZIndex=!0;baseZIndex=0;panelStyleClass;panelStyle;keepInvalid=!1;hideOnDateTimeSelect=!0;touchUI;timeSeparator=":";focusTrap=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";tabindex;get minDate(){return this._minDate}set minDate(bt){this._minDate=bt,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(bt){this._maxDate=bt,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(bt){this._disabledDates=bt,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(bt){this._disabledDays=bt,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get yearRange(){return this._yearRange}set yearRange(bt){if(this._yearRange=bt,bt){const an=bt.split(":"),Wn=parseInt(an[0]),eo=parseInt(an[1]);this.populateYearOptions(Wn,eo)}}get showTime(){return this._showTime}set showTime(bt){this._showTime=bt,void 0===this.currentHour&&this.initTime(this.value||new Date),this.updateInputfield()}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(bt){this._responsiveOptions=bt,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(bt){this._numberOfMonths=bt,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(bt){this._firstDayOfWeek=bt,this.createWeekDays()}set locale(bt){console.warn("Locale property has no effect, use new i18n API instead.")}get view(){return this._view}set view(bt){this._view=bt,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(bt){if(this._defaultDate=bt,this.initialized){const an=bt||new Date;this.currentMonth=an.getMonth(),this.currentYear=an.getFullYear(),this.initTime(an),this.createMonths(this.currentMonth,this.currentYear)}}onFocus=new s.vpe;onBlur=new s.vpe;onClose=new s.vpe;onSelect=new s.vpe;onClear=new s.vpe;onInput=new s.vpe;onTodayClick=new s.vpe;onClearClick=new s.vpe;onMonthChange=new s.vpe;onYearChange=new s.vpe;onClickOutside=new s.vpe;onShow=new s.vpe;templates;containerViewChild;inputfieldViewChild;set content(bt){this.contentViewChild=bt,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):!this.focus&&!this.inline&&this.initFocusableCell())}contentViewChild;value;dates;months;weekDays;currentMonth;currentYear;currentHour;currentMinute;currentSecond;pm;mask;maskClickListener;overlay;responsiveStyleElement;overlayVisible;onModelChange=()=>{};onModelTouched=()=>{};calendarElement;timePickerTimer;documentClickListener;animationEndListener;ticksTo1970;yearOptions;focus;isKeydown;filled;inputFieldValue=null;_minDate;_maxDate;_showTime;_yearRange;preventDocumentListener;dateTemplate;headerTemplate;footerTemplate;disabledDateTemplate;decadeTemplate;previousIconTemplate;nextIconTemplate;triggerIconTemplate;clearIconTemplate;decrementIconTemplate;incrementIconTemplate;inputIconTemplate;_disabledDates;_disabledDays;selectElement;todayElement;focusElement;scrollHandler;documentResizeListener;navigationState=null;isMonthNavigate;initialized;translationSubscription;_locale;_responsiveOptions;currentView;attributeSelector;panelId;_numberOfMonths=1;_firstDayOfWeek;_view="date";preventFocus;_defaultDate;window;get locale(){return this._locale}get iconButtonAriaLabel(){return this.iconAriaLabel?this.iconAriaLabel:this.getTranslation("chooseDate")}get prevIconAriaLabel(){return this.getTranslation("year"===this.currentView?"prevDecade":"month"===this.currentView?"prevYear":"prevMonth")}get nextIconAriaLabel(){return this.getTranslation("year"===this.currentView?"nextDecade":"month"===this.currentView?"nextYear":"nextMonth")}constructor(bt,an,Wn,eo,_r,hr,In){this.document=bt,this.el=an,this.renderer=Wn,this.cd=eo,this.zone=_r,this.config=hr,this.overlayService=In,this.window=this.document.defaultView}ngOnInit(){this.attributeSelector=(0,o.Th)(),this.panelId=this.attributeSelector+"_panel";const bt=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=bt.getMonth(),this.currentYear=bt.getFullYear(),this.yearOptions=[],this.currentView=this.view,"date"===this.view&&(this.createWeekDays(),this.initTime(bt),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays(),this.cd.markForCheck()}),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(bt=>{switch(bt.getType()){case"date":default:this.dateTemplate=bt.template;break;case"decade":this.decadeTemplate=bt.template;break;case"disabledDate":this.disabledDateTemplate=bt.template;break;case"header":this.headerTemplate=bt.template;break;case"inputicon":this.inputIconTemplate=bt.template;break;case"previousicon":this.previousIconTemplate=bt.template;break;case"nexticon":this.nextIconTemplate=bt.template;break;case"triggericon":this.triggerIconTemplate=bt.template;break;case"clearicon":this.clearIconTemplate=bt.template;break;case"decrementicon":this.decrementIconTemplate=bt.template;break;case"incrementicon":this.incrementIconTemplate=bt.template;break;case"footer":this.footerTemplate=bt.template}})}ngAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),!this.disabled&&!this.inline&&(this.initFocusableCell(),1===this.numberOfMonths&&this.contentViewChild&&this.contentViewChild.nativeElement&&(this.contentViewChild.nativeElement.style.width=p.p.getOuterWidth(this.containerViewChild?.nativeElement)+"px")))}getTranslation(bt){return this.config.getTranslation(bt)}populateYearOptions(bt,an){this.yearOptions=[];for(let Wn=bt;Wn<=an;Wn++)this.yearOptions.push(Wn)}createWeekDays(){this.weekDays=[];let bt=this.getFirstDateOfWeek(),an=this.getTranslation(i.ws.DAY_NAMES_MIN);for(let Wn=0;Wn<7;Wn++)this.weekDays.push(an[bt]),bt=6==bt?0:++bt}monthPickerValues(){let bt=[];for(let an=0;an<=11;an++)bt.push(this.config.getTranslation("monthNamesShort")[an]);return bt}yearPickerValues(){let bt=[],an=this.currentYear-this.currentYear%10;for(let Wn=0;Wn<10;Wn++)bt.push(an+Wn);return bt}createMonths(bt,an){this.months=this.months=[];for(let Wn=0;Wn<this.numberOfMonths;Wn++){let eo=bt+Wn,_r=an;eo>11&&(eo=eo%11-1,_r=an+1),this.months.push(this.createMonth(eo,_r))}}getWeekNumber(bt){let an=new Date(bt.getTime());an.setDate(an.getDate()+4-(an.getDay()||7));let Wn=an.getTime();return an.setMonth(0),an.setDate(1),Math.floor(Math.round((Wn-an.getTime())/864e5)/7)+1}createMonth(bt,an){let Wn=[],eo=this.getFirstDayOfMonthIndex(bt,an),_r=this.getDaysCountInMonth(bt,an),hr=this.getDaysCountInPrevMonth(bt,an),In=1,Wr=new Date,qi=[],wi=Math.ceil((_r+eo)/7);for(let zo=0;zo<wi;zo++){let xi=[];if(0==zo){for(let wo=hr-eo+1;wo<=hr;wo++){let Ei=this.getPreviousMonthAndYear(bt,an);xi.push({day:wo,month:Ei.month,year:Ei.year,otherMonth:!0,today:this.isToday(Wr,wo,Ei.month,Ei.year),selectable:this.isSelectable(wo,Ei.month,Ei.year,!0)})}let ki=7-xi.length;for(let wo=0;wo<ki;wo++)xi.push({day:In,month:bt,year:an,today:this.isToday(Wr,In,bt,an),selectable:this.isSelectable(In,bt,an,!1)}),In++}else for(let ki=0;ki<7;ki++){if(In>_r){let wo=this.getNextMonthAndYear(bt,an);xi.push({day:In-_r,month:wo.month,year:wo.year,otherMonth:!0,today:this.isToday(Wr,In-_r,wo.month,wo.year),selectable:this.isSelectable(In-_r,wo.month,wo.year,!0)})}else xi.push({day:In,month:bt,year:an,today:this.isToday(Wr,In,bt,an),selectable:this.isSelectable(In,bt,an,!1)});In++}this.showWeek&&qi.push(this.getWeekNumber(new Date(xi[0].year,xi[0].month,xi[0].day))),Wn.push(xi)}return{month:bt,year:an,dates:Wn,weekNumbers:qi}}initTime(bt){this.pm=bt.getHours()>11,this.showTime?(this.currentMinute=bt.getMinutes(),this.currentSecond=bt.getSeconds(),this.setCurrentHourPM(bt.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(bt){this.disabled?bt.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(0===this.currentMonth?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}navForward(bt){this.disabled?bt.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(11===this.currentMonth?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}decrementYear(){this.currentYear--;let bt=this.yearOptions;if(this.yearNavigator&&this.currentYear<bt[0]){let an=bt[bt.length-1]-bt[0];this.populateYearOptions(bt[0]-an,bt[bt.length-1]-an)}}decrementDecade(){this.currentYear=this.currentYear-10}incrementDecade(){this.currentYear=this.currentYear+10}incrementYear(){this.currentYear++;let bt=this.yearOptions;if(this.yearNavigator&&this.currentYear>bt[bt.length-1]){let an=bt[bt.length-1]-bt[0];this.populateYearOptions(bt[0]+an,bt[bt.length-1]+an)}}switchToMonthView(bt){this.setCurrentView("month"),bt.preventDefault()}switchToYearView(bt){this.setCurrentView("year"),bt.preventDefault()}onDateSelect(bt,an){!this.disabled&&an.selectable?(this.isMultipleSelection()&&this.isSelected(an)?(this.value=this.value.filter((Wn,eo)=>!this.isDateEquals(Wn,an)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(an)&&this.selectDate(an),(this.isSingleSelection()&&this.hideOnDateTimeSelect||this.isRangeSelection()&&this.value[1])&&setTimeout(()=>{bt.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),bt.preventDefault()):bt.preventDefault()}shouldSelectDate(bt){return!this.isMultipleSelection()||null==this.maxDateCount||this.maxDateCount>(this.value?this.value.length:0)}onMonthSelect(bt,an){"month"===this.view?this.onDateSelect(bt,{year:this.currentYear,month:an,day:1,selectable:!0}):(this.currentMonth=an,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(bt,an){"year"===this.view?this.onDateSelect(bt,{year:an,month:0,day:1,selectable:!0}):(this.currentYear=an,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let bt="";if(this.value)if(this.isSingleSelection())bt=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let an=0;an<this.value.length;an++)bt+=this.formatDateTime(this.value[an]),an!==this.value.length-1&&(bt+=this.multipleSeparator+" ");else if(this.isRangeSelection()&&this.value&&this.value.length){let Wn=this.value[1];bt=this.formatDateTime(this.value[0]),Wn&&(bt+=" "+this.rangeSeparator+" "+this.formatDateTime(Wn))}this.inputFieldValue=bt,this.updateFilledState(),this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.inputFieldValue)}formatDateTime(bt){let an=this.keepInvalid?bt:null;return this.isValidDate(bt)?this.timeOnly?an=this.formatTime(bt):(an=this.formatDate(bt,this.getDateFormat()),this.showTime&&(an+=" "+this.formatTime(bt))):"string"===this.dataType&&(an=bt),an}setCurrentHourPM(bt){"12"==this.hourFormat?(this.pm=bt>11,this.currentHour=bt>=12?12==bt?12:bt-12:0==bt?12:bt):this.currentHour=bt}setCurrentView(bt){this.currentView=bt,this.cd.detectChanges(),this.alignOverlay()}selectDate(bt){let an=new Date(bt.year,bt.month,bt.day);if(this.showTime&&(an.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),an.setMinutes(this.currentMinute),an.setSeconds(this.currentSecond)),this.minDate&&this.minDate>an&&(an=this.minDate,this.setCurrentHourPM(an.getHours()),this.currentMinute=an.getMinutes(),this.currentSecond=an.getSeconds()),this.maxDate&&this.maxDate<an&&(an=this.maxDate,this.setCurrentHourPM(an.getHours()),this.currentMinute=an.getMinutes(),this.currentSecond=an.getSeconds()),this.isSingleSelection())this.updateModel(an);else if(this.isMultipleSelection())this.updateModel(this.value?[...this.value,an]:[an]);else if(this.isRangeSelection())if(this.value&&this.value.length){let Wn=this.value[0],eo=this.value[1];!eo&&an.getTime()>=Wn.getTime()?eo=an:(Wn=an,eo=null),this.updateModel([Wn,eo])}else this.updateModel([an,null]);this.onSelect.emit(an)}updateModel(bt){if(this.value=bt,"date"==this.dataType)this.onModelChange(this.value);else if("string"==this.dataType)if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let an=null;Array.isArray(this.value)&&(an=this.value.map(Wn=>this.formatDateTime(Wn))),this.onModelChange(an)}}getFirstDayOfMonthIndex(bt,an){let Wn=new Date;Wn.setDate(1),Wn.setMonth(bt),Wn.setFullYear(an);let eo=Wn.getDay()+this.getSundayIndex();return eo>=7?eo-7:eo}getDaysCountInMonth(bt,an){return 32-this.daylightSavingAdjust(new Date(an,bt,32)).getDate()}getDaysCountInPrevMonth(bt,an){let Wn=this.getPreviousMonthAndYear(bt,an);return this.getDaysCountInMonth(Wn.month,Wn.year)}getPreviousMonthAndYear(bt,an){let Wn,eo;return 0===bt?(Wn=11,eo=an-1):(Wn=bt-1,eo=an),{month:Wn,year:eo}}getNextMonthAndYear(bt,an){let Wn,eo;return 11===bt?(Wn=0,eo=an+1):(Wn=bt+1,eo=an),{month:Wn,year:eo}}getSundayIndex(){let bt=this.getFirstDateOfWeek();return bt>0?7-bt:0}isSelected(bt){if(!this.value)return!1;if(this.isSingleSelection())return this.isDateEquals(this.value,bt);if(this.isMultipleSelection()){let an=!1;for(let Wn of this.value)if(an=this.isDateEquals(Wn,bt),an)break;return an}return this.isRangeSelection()?this.value[1]?this.isDateEquals(this.value[0],bt)||this.isDateEquals(this.value[1],bt)||this.isDateBetween(this.value[0],this.value[1],bt):this.isDateEquals(this.value[0],bt):void 0}isComparable(){return null!=this.value&&"string"!=typeof this.value}isMonthSelected(bt){if(this.isComparable()&&!this.isMultipleSelection()){const[an,Wn]=this.isRangeSelection()?this.value:[this.value,this.value],eo=new Date(this.currentYear,bt,1);return eo>=an&&eo<=(Wn??an)}return!1}isMonthDisabled(bt){for(let an=1;an<this.getDaysCountInMonth(bt,this.currentYear)+1;an++)if(this.isSelectable(an,bt,this.currentYear,!1))return!1;return!0}isYearDisabled(bt){return!this.isSelectable(1,this.currentMonth,bt,!1)}isYearSelected(bt){if(this.isComparable()){let an=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&an.getFullYear()===bt}return!1}isDateEquals(bt,an){return!(!bt||!o.gb.isDate(bt))&&bt.getDate()===an.day&&bt.getMonth()===an.month&&bt.getFullYear()===an.year}isDateBetween(bt,an,Wn){if(o.gb.isDate(bt)&&o.gb.isDate(an)){let _r=new Date(Wn.year,Wn.month,Wn.day);return bt.getTime()<=_r.getTime()&&an.getTime()>=_r.getTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(bt,an,Wn,eo){return bt.getDate()===an&&bt.getMonth()===Wn&&bt.getFullYear()===eo}isSelectable(bt,an,Wn,eo){let _r=!0,hr=!0,In=!0,Wr=!0;return!(eo&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>Wn||this.minDate.getFullYear()===Wn&&(this.minDate.getMonth()>an||this.minDate.getMonth()===an&&this.minDate.getDate()>bt))&&(_r=!1),this.maxDate&&(this.maxDate.getFullYear()<Wn||this.maxDate.getFullYear()===Wn&&(this.maxDate.getMonth()<an||this.maxDate.getMonth()===an&&this.maxDate.getDate()<bt))&&(hr=!1),this.disabledDates&&(In=!this.isDateDisabled(bt,an,Wn)),this.disabledDays&&(Wr=!this.isDayDisabled(bt,an,Wn)),_r&&hr&&In&&Wr)}isDateDisabled(bt,an,Wn){if(this.disabledDates)for(let eo of this.disabledDates)if(eo.getFullYear()===Wn&&eo.getMonth()===an&&eo.getDate()===bt)return!0;return!1}isDayDisabled(bt,an,Wn){if(this.disabledDays){let _r=new Date(Wn,an,bt).getDay();return-1!==this.disabledDays.indexOf(_r)}return!1}onInputFocus(bt){this.focus=!0,this.showOnFocus&&this.showOverlay(),this.onFocus.emit(bt)}onInputClick(){this.showOnFocus&&!this.overlayVisible&&this.showOverlay()}onInputBlur(bt){this.focus=!1,this.onBlur.emit(bt),this.keepInvalid||this.updateInputfield(),this.onModelTouched()}onButtonClick(bt,an=this.inputfieldViewChild?.nativeElement){this.overlayVisible?this.hideOverlay():(an.focus(),this.showOverlay())}clear(){this.inputFieldValue=null,this.value=null,this.onModelChange(this.value),this.onClear.emit()}onOverlayClick(bt){this.overlayService.add({originalEvent:bt,target:this.el.nativeElement})}getMonthName(bt){return this.config.getTranslation("monthNames")[bt]}getYear(bt){return"month"===this.currentView?this.currentYear:bt.year}switchViewButtonDisabled(){return this.numberOfMonths>1||this.disabled}onPrevButtonClick(bt){this.navigationState={backward:!0,button:!0},this.navBackward(bt)}onNextButtonClick(bt){this.navigationState={backward:!1,button:!0},this.navForward(bt)}onContainerButtonKeydown(bt){switch(bt.which){case 9:if(this.inline||this.trapFocus(bt),this.inline){const an=p.p.findSingle(this.containerViewChild?.nativeElement,".p-datepicker-header");bt.target==an.children[an.children.length-1]&&this.initFocusableCell()}break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,bt.preventDefault()}}onInputKeydown(bt){this.isKeydown=!0,40===bt.keyCode&&this.contentViewChild?this.trapFocus(bt):27===bt.keyCode?this.overlayVisible&&(this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,bt.preventDefault()):13===bt.keyCode?this.overlayVisible&&(this.overlayVisible=!1,bt.preventDefault()):9===bt.keyCode&&this.contentViewChild&&(p.p.getFocusableElements(this.contentViewChild.nativeElement).forEach(an=>an.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(bt,an,Wn){const eo=bt.currentTarget,_r=eo.parentElement;switch(bt.which){case 40:{eo.tabIndex="-1";let hr=p.p.index(_r),In=_r.parentElement.nextElementSibling;In?p.p.hasClass(In.children[hr].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward(bt)):(In.children[hr].children[0].tabIndex="0",In.children[hr].children[0].focus()):(this.navigationState={backward:!1},this.navForward(bt)),bt.preventDefault();break}case 38:{eo.tabIndex="-1";let hr=p.p.index(_r),In=_r.parentElement.previousElementSibling;if(In){let Wr=In.children[hr].children[0];p.p.hasClass(Wr,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(bt)):(Wr.tabIndex="0",Wr.focus())}else this.navigationState={backward:!0},this.navBackward(bt);bt.preventDefault();break}case 37:{eo.tabIndex="-1";let hr=_r.previousElementSibling;if(hr){let In=hr.children[0];p.p.hasClass(In,"p-disabled")||p.p.hasClass(In.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,Wn):(In.tabIndex="0",In.focus())}else this.navigateToMonth(!0,Wn);bt.preventDefault();break}case 39:{eo.tabIndex="-1";let hr=_r.nextElementSibling;if(hr){let In=hr.children[0];p.p.hasClass(In,"p-disabled")?this.navigateToMonth(!1,Wn):(In.tabIndex="0",In.focus())}else this.navigateToMonth(!1,Wn);bt.preventDefault();break}case 13:case 32:this.onDateSelect(bt,an),bt.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,bt.preventDefault();break;case 9:this.inline||this.trapFocus(bt)}}onMonthCellKeydown(bt,an){const Wn=bt.currentTarget;switch(bt.which){case 38:case 40:{Wn.tabIndex="-1";var eo=Wn.parentElement.children,_r=p.p.index(Wn);let hr=eo[40===bt.which?_r+3:_r-3];hr&&(hr.tabIndex="0",hr.focus()),bt.preventDefault();break}case 37:{Wn.tabIndex="-1";let hr=Wn.previousElementSibling;hr?(hr.tabIndex="0",hr.focus()):(this.navigationState={backward:!0},this.navBackward(bt)),bt.preventDefault();break}case 39:{Wn.tabIndex="-1";let hr=Wn.nextElementSibling;hr?(hr.tabIndex="0",hr.focus()):(this.navigationState={backward:!1},this.navForward(bt)),bt.preventDefault();break}case 13:case 32:this.onMonthSelect(bt,an),bt.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,bt.preventDefault();break;case 9:this.inline||this.trapFocus(bt)}}onYearCellKeydown(bt,an){const Wn=bt.currentTarget;switch(bt.which){case 38:case 40:{Wn.tabIndex="-1";var eo=Wn.parentElement.children,_r=p.p.index(Wn);let hr=eo[40===bt.which?_r+2:_r-2];hr&&(hr.tabIndex="0",hr.focus()),bt.preventDefault();break}case 37:{Wn.tabIndex="-1";let hr=Wn.previousElementSibling;hr?(hr.tabIndex="0",hr.focus()):(this.navigationState={backward:!0},this.navBackward(bt)),bt.preventDefault();break}case 39:{Wn.tabIndex="-1";let hr=Wn.nextElementSibling;hr?(hr.tabIndex="0",hr.focus()):(this.navigationState={backward:!1},this.navForward(bt)),bt.preventDefault();break}case 13:case 32:this.onYearSelect(bt,an),bt.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,bt.preventDefault();break;case 9:this.trapFocus(bt)}}navigateToMonth(bt,an){if(bt)if(1===this.numberOfMonths||0===an)this.navigationState={backward:!0},this.navBackward(event);else{let eo=p.p.find(this.contentViewChild.nativeElement.children[an-1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),_r=eo[eo.length-1];_r.tabIndex="0",_r.focus()}else if(1===this.numberOfMonths||an===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(event);else{let eo=p.p.findSingle(this.contentViewChild.nativeElement.children[an+1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");eo.tabIndex="0",eo.focus()}}updateFocus(){let bt;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?p.p.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():p.p.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let an;an=p.p.find(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),an&&an.length>0&&(bt=an[an.length-1])}else bt=p.p.findSingle(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");bt&&(bt.tabIndex="0",bt.focus())}this.navigationState=null}else this.initFocusableCell()}initFocusableCell(){const bt=this.contentViewChild?.nativeElement;let an;if("month"===this.currentView){let Wn=p.p.find(bt,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),eo=p.p.findSingle(bt,".p-monthpicker .p-monthpicker-month.p-highlight");Wn.forEach(_r=>_r.tabIndex=-1),an=eo||Wn[0],0===Wn.length&&p.p.find(bt,'.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = "0"]').forEach(hr=>hr.tabIndex=-1)}else if("year"===this.currentView){let Wn=p.p.find(bt,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),eo=p.p.findSingle(bt,".p-yearpicker .p-yearpicker-year.p-highlight");Wn.forEach(_r=>_r.tabIndex=-1),an=eo||Wn[0],0===Wn.length&&p.p.find(bt,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach(hr=>hr.tabIndex=-1)}else if(an=p.p.findSingle(bt,"span.p-highlight"),!an){let Wn=p.p.findSingle(bt,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");an=Wn||p.p.findSingle(bt,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}an&&(an.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{this.disabled||an.focus()},1),this.preventFocus=!1)}trapFocus(bt){let an=p.p.getFocusableElements(this.contentViewChild.nativeElement);if(an&&an.length>0)if(an[0].ownerDocument.activeElement){let Wn=an.indexOf(an[0].ownerDocument.activeElement);if(bt.shiftKey)if(-1==Wn||0===Wn)if(this.focusTrap)an[an.length-1].focus();else{if(-1===Wn)return this.hideOverlay();if(0===Wn)return}else an[Wn-1].focus();else if(-1==Wn)if(this.timeOnly)an[0].focus();else{let eo=0;for(let _r=0;_r<an.length;_r++)"SPAN"===an[_r].tagName&&(eo=_r);an[eo].focus()}else if(Wn===an.length-1){if(!this.focusTrap&&-1!=Wn)return this.hideOverlay();an[0].focus()}else an[Wn+1].focus()}else an[0].focus();bt.preventDefault()}onMonthDropdownChange(bt){this.currentMonth=parseInt(bt),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}onYearDropdownChange(bt){this.currentYear=parseInt(bt),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}convertTo24Hour=function(bt,an){return"12"==this.hourFormat?12===bt?an?12:0:an?bt+12:bt:bt};validateTime(bt,an,Wn,eo){let _r=this.value;const hr=this.convertTo24Hour(bt,eo);this.isRangeSelection()&&(_r=this.value[1]||this.value[0]),this.isMultipleSelection()&&(_r=this.value[this.value.length-1]);const In=_r?_r.toDateString():null;return!(this.minDate&&In&&this.minDate.toDateString()===In&&(this.minDate.getHours()>hr||this.minDate.getHours()===hr&&(this.minDate.getMinutes()>an||this.minDate.getMinutes()===an&&this.minDate.getSeconds()>Wn))||this.maxDate&&In&&this.maxDate.toDateString()===In&&(this.maxDate.getHours()<hr||this.maxDate.getHours()===hr&&(this.maxDate.getMinutes()<an||this.maxDate.getMinutes()===an&&this.maxDate.getSeconds()<Wn)))}incrementHour(bt){let Wn=this.currentHour+this.stepHour,eo=this.pm;"24"==this.hourFormat?Wn=Wn>=24?Wn-24:Wn:"12"==this.hourFormat&&(this.currentHour<12&&Wn>11&&(eo=!this.pm),Wn=Wn>=13?Wn-12:Wn),this.validateTime(Wn,this.currentMinute,this.currentSecond,eo)&&(this.currentHour=Wn,this.pm=eo),bt.preventDefault()}onTimePickerElementMouseDown(bt,an,Wn){this.disabled||(this.repeat(bt,null,an,Wn),bt.preventDefault())}onTimePickerElementMouseUp(bt){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(bt,an,Wn,eo){let _r=an||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(bt,100,Wn,eo),this.cd.markForCheck()},_r),Wn){case 0:1===eo?this.incrementHour(bt):this.decrementHour(bt);break;case 1:1===eo?this.incrementMinute(bt):this.decrementMinute(bt);break;case 2:1===eo?this.incrementSecond(bt):this.decrementSecond(bt)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(bt){let an=this.currentHour-this.stepHour,Wn=this.pm;"24"==this.hourFormat?an=an<0?24+an:an:"12"==this.hourFormat&&(12===this.currentHour&&(Wn=!this.pm),an=an<=0?12+an:an),this.validateTime(an,this.currentMinute,this.currentSecond,Wn)&&(this.currentHour=an,this.pm=Wn),bt.preventDefault()}incrementMinute(bt){let an=this.currentMinute+this.stepMinute;an=an>59?an-60:an,this.validateTime(this.currentHour,an,this.currentSecond,this.pm)&&(this.currentMinute=an),bt.preventDefault()}decrementMinute(bt){let an=this.currentMinute-this.stepMinute;an=an<0?60+an:an,this.validateTime(this.currentHour,an,this.currentSecond,this.pm)&&(this.currentMinute=an),bt.preventDefault()}incrementSecond(bt){let an=this.currentSecond+this.stepSecond;an=an>59?an-60:an,this.validateTime(this.currentHour,this.currentMinute,an,this.pm)&&(this.currentSecond=an),bt.preventDefault()}decrementSecond(bt){let an=this.currentSecond-this.stepSecond;an=an<0?60+an:an,this.validateTime(this.currentHour,this.currentMinute,an,this.pm)&&(this.currentSecond=an),bt.preventDefault()}updateTime(){let bt=this.value;this.isRangeSelection()&&(bt=this.value[1]||this.value[0]),this.isMultipleSelection()&&(bt=this.value[this.value.length-1]),bt=bt?new Date(bt.getTime()):new Date,bt.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),bt.setMinutes(this.currentMinute),bt.setSeconds(this.currentSecond),this.isRangeSelection()&&(bt=this.value[1]?[this.value[0],bt]:[bt,null]),this.isMultipleSelection()&&(bt=[...this.value.slice(0,-1),bt]),this.updateModel(bt),this.onSelect.emit(bt),this.updateInputfield()}toggleAMPM(bt){const an=!this.pm;this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,an)&&(this.pm=an,this.updateTime()),bt.preventDefault()}onUserInput(bt){if(!this.isKeydown)return;this.isKeydown=!1;let an=bt.target.value;try{let Wn=this.parseValueFromString(an);this.isValidSelection(Wn)?(this.updateModel(Wn),this.updateUI()):this.keepInvalid&&this.updateModel(Wn)}catch{this.updateModel(this.keepInvalid?an:null)}this.filled=null!=an&&an.length,this.onInput.emit(bt)}isValidSelection(bt){let an=!0;return this.isSingleSelection()?this.isSelectable(bt.getDate(),bt.getMonth(),bt.getFullYear(),!1)||(an=!1):bt.every(Wn=>this.isSelectable(Wn.getDate(),Wn.getMonth(),Wn.getFullYear(),!1))&&this.isRangeSelection()&&(an=bt.length>1&&bt[1]>bt[0]),an}parseValueFromString(bt){if(!bt||0===bt.trim().length)return null;let an;if(this.isSingleSelection())an=this.parseDateTime(bt);else if(this.isMultipleSelection()){let Wn=bt.split(this.multipleSeparator);an=[];for(let eo of Wn)an.push(this.parseDateTime(eo.trim()))}else if(this.isRangeSelection()){let Wn=bt.split(" "+this.rangeSeparator+" ");an=[];for(let eo=0;eo<Wn.length;eo++)an[eo]=this.parseDateTime(Wn[eo].trim())}return an}parseDateTime(bt){let an,Wn=bt.split(" ");if(this.timeOnly)an=new Date,this.populateTime(an,Wn[0],Wn[1]);else{const eo=this.getDateFormat();if(this.showTime){let _r="12"==this.hourFormat?Wn.pop():null,hr=Wn.pop();an=this.parseDate(Wn.join(" "),eo),this.populateTime(an,hr,_r)}else an=this.parseDate(bt,eo)}return an}populateTime(bt,an,Wn){if("12"==this.hourFormat&&!Wn)throw"Invalid Time";this.pm="PM"===Wn||"pm"===Wn;let eo=this.parseTime(an);bt.setHours(eo.hour),bt.setMinutes(eo.minute),bt.setSeconds(eo.second)}isValidDate(bt){return o.gb.isDate(bt)&&o.gb.isNotEmpty(bt)}updateUI(){let bt=this.value;Array.isArray(bt)&&(bt=bt[0]);let an=this.defaultDate&&this.isValidDate(this.defaultDate)&&!this.value?this.defaultDate:bt&&this.isValidDate(bt)?bt:new Date;this.currentMonth=an.getMonth(),this.currentYear=an.getFullYear(),this.createMonths(this.currentMonth,this.currentYear),(this.showTime||this.timeOnly)&&(this.setCurrentHourPM(an.getHours()),this.currentMinute=an.getMinutes(),this.currentSecond=an.getSeconds())}showOverlay(){this.overlayVisible||(this.updateUI(),this.touchUI||(this.preventFocus=!0),this.overlayVisible=!0)}hideOverlay(){this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,this.clearTimePickerTimer(),this.touchUI&&this.disableModality(),this.cd.markForCheck()}toggle(){this.inline||(this.overlayVisible?this.hideOverlay():(this.showOverlay(),this.inputfieldViewChild?.nativeElement.focus()))}onOverlayAnimationStart(bt){switch(bt.toState){case"visible":case"visibleTouchUI":this.inline||(this.overlay=bt.element,this.overlay?.setAttribute(this.attributeSelector,""),this.appendOverlay(),this.updateFocus(),this.autoZIndex&&(this.touchUI?o.P9.set("modal",this.overlay,this.baseZIndex||this.config.zIndex.modal):o.P9.set("overlay",this.overlay,this.baseZIndex||this.config.zIndex.overlay)),this.alignOverlay(),this.onShow.emit(bt));break;case"void":this.onOverlayHide(),this.onClose.emit(bt)}}onOverlayAnimationDone(bt){switch(bt.toState){case"visible":case"visibleTouchUI":this.inline||(this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.autoZIndex&&o.P9.clear(bt.element)}}appendOverlay(){this.appendTo&&("body"===this.appendTo?this.document.body.appendChild(this.overlay):p.p.appendChild(this.overlay,this.appendTo))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.el.nativeElement.appendChild(this.overlay)}alignOverlay(){this.touchUI?this.enableModality(this.overlay):this.overlay&&(this.appendTo?("date"===this.view?(this.overlay.style.width=p.p.getOuterWidth(this.overlay)+"px",this.overlay.style.minWidth=p.p.getOuterWidth(this.inputfieldViewChild?.nativeElement)+"px"):this.overlay.style.width=p.p.getOuterWidth(this.inputfieldViewChild?.nativeElement)+"px",p.p.absolutePosition(this.overlay,this.inputfieldViewChild?.nativeElement)):p.p.relativePosition(this.overlay,this.inputfieldViewChild?.nativeElement))}enableModality(bt){!this.mask&&this.touchUI&&(this.mask=this.renderer.createElement("div"),this.renderer.setStyle(this.mask,"zIndex",String(parseInt(bt.style.zIndex)-1)),p.p.addMultipleClasses(this.mask,"p-component-overlay p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter"),this.maskClickListener=this.renderer.listen(this.mask,"click",Wn=>{this.disableModality(),this.overlayVisible=!1}),this.renderer.appendChild(this.document.body,this.mask),p.p.blockBodyScroll())}disableModality(){this.mask&&(p.p.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener||(this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyMask.bind(this))))}destroyMask(){if(!this.mask)return;this.renderer.removeChild(this.document.body,this.mask);let an,bt=this.document.body.children;for(let Wn=0;Wn<bt.length;Wn++)if(p.p.hasClass(bt[Wn],"p-datepicker-mask-scrollblocker")){an=!0;break}an||p.p.unblockBodyScroll(),this.unbindAnimationEndListener(),this.unbindMaskClickListener(),this.mask=null}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindAnimationEndListener(){this.animationEndListener&&this.mask&&(this.animationEndListener(),this.animationEndListener=null)}writeValue(bt){if(this.value=bt,this.value&&"string"==typeof this.value)try{this.value=this.parseValueFromString(this.value)}catch{this.keepInvalid&&(this.value=bt)}this.updateInputfield(),this.updateUI(),this.cd.markForCheck()}registerOnChange(bt){this.onModelChange=bt}registerOnTouched(bt){this.onModelTouched=bt}setDisabledState(bt){this.disabled=bt,this.cd.markForCheck()}getDateFormat(){return this.dateFormat||this.getTranslation("dateFormat")}getFirstDateOfWeek(){return this._firstDayOfWeek||this.getTranslation(i.ws.FIRST_DAY_OF_WEEK)}formatDate(bt,an){if(!bt)return"";let Wn;const eo=qi=>{const wi=Wn+1<an.length&&an.charAt(Wn+1)===qi;return wi&&Wn++,wi},_r=(qi,wi,zo)=>{let xi=""+wi;if(eo(qi))for(;xi.length<zo;)xi="0"+xi;return xi},hr=(qi,wi,zo,xi)=>eo(qi)?xi[wi]:zo[wi];let In="",Wr=!1;if(bt)for(Wn=0;Wn<an.length;Wn++)if(Wr)"'"!==an.charAt(Wn)||eo("'")?In+=an.charAt(Wn):Wr=!1;else switch(an.charAt(Wn)){case"d":In+=_r("d",bt.getDate(),2);break;case"D":In+=hr("D",bt.getDay(),this.getTranslation(i.ws.DAY_NAMES_SHORT),this.getTranslation(i.ws.DAY_NAMES));break;case"o":In+=_r("o",Math.round((new Date(bt.getFullYear(),bt.getMonth(),bt.getDate()).getTime()-new Date(bt.getFullYear(),0,0).getTime())/864e5),3);break;case"m":In+=_r("m",bt.getMonth()+1,2);break;case"M":In+=hr("M",bt.getMonth(),this.getTranslation(i.ws.MONTH_NAMES_SHORT),this.getTranslation(i.ws.MONTH_NAMES));break;case"y":In+=eo("y")?bt.getFullYear():(bt.getFullYear()%100<10?"0":"")+bt.getFullYear()%100;break;case"@":In+=bt.getTime();break;case"!":In+=1e4*bt.getTime()+this.ticksTo1970;break;case"'":eo("'")?In+="'":Wr=!0;break;default:In+=an.charAt(Wn)}return In}formatTime(bt){if(!bt)return"";let an="",Wn=bt.getHours(),eo=bt.getMinutes(),_r=bt.getSeconds();return"12"==this.hourFormat&&Wn>11&&12!=Wn&&(Wn-=12),an+="12"==this.hourFormat&&0===Wn?12:Wn<10?"0"+Wn:Wn,an+=":",an+=eo<10?"0"+eo:eo,this.showSeconds&&(an+=":",an+=_r<10?"0"+_r:_r),"12"==this.hourFormat&&(an+=bt.getHours()>11?" PM":" AM"),an}parseTime(bt){let an=bt.split(":");if(an.length!==(this.showSeconds?3:2))throw"Invalid time";let eo=parseInt(an[0]),_r=parseInt(an[1]),hr=this.showSeconds?parseInt(an[2]):null;if(isNaN(eo)||isNaN(_r)||eo>23||_r>59||"12"==this.hourFormat&&eo>12||this.showSeconds&&(isNaN(hr)||hr>59))throw"Invalid time";return"12"==this.hourFormat&&(12!==eo&&this.pm?eo+=12:!this.pm&&12===eo&&(eo-=12)),{hour:eo,minute:_r,second:hr}}parseDate(bt,an){if(null==an||null==bt)throw"Invalid arguments";if(""===(bt="object"==typeof bt?bt.toString():bt+""))return null;let Wn,eo,_r,ki,hr=0,In="string"!=typeof this.shortYearCutoff?this.shortYearCutoff:(new Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),Wr=-1,qi=-1,wi=-1,zo=-1,xi=!1,wo=vr=>{let qr=Wn+1<an.length&&an.charAt(Wn+1)===vr;return qr&&Wn++,qr},Ei=vr=>{let qr=wo(vr),Ra="@"===vr?14:"!"===vr?20:"y"===vr&&qr?4:"o"===vr?3:2,Hs=new RegExp("^\\d{"+("y"===vr?Ra:1)+","+Ra+"}"),Cs=bt.substring(hr).match(Hs);if(!Cs)throw"Missing number at position "+hr;return hr+=Cs[0].length,parseInt(Cs[0],10)},ho=(vr,qr,Ra)=>{let ss=-1,Hs=wo(vr)?Ra:qr,Cs=[];for(let ms=0;ms<Hs.length;ms++)Cs.push([ms,Hs[ms]]);Cs.sort((ms,ja)=>-(ms[1].length-ja[1].length));for(let ms=0;ms<Cs.length;ms++){let ja=Cs[ms][1];if(bt.substr(hr,ja.length).toLowerCase()===ja.toLowerCase()){ss=Cs[ms][0],hr+=ja.length;break}}if(-1!==ss)return ss+1;throw"Unknown name at position "+hr},Cr=()=>{if(bt.charAt(hr)!==an.charAt(Wn))throw"Unexpected literal at position "+hr;hr++};for("month"===this.view&&(wi=1),Wn=0;Wn<an.length;Wn++)if(xi)"'"!==an.charAt(Wn)||wo("'")?Cr():xi=!1;else switch(an.charAt(Wn)){case"d":wi=Ei("d");break;case"D":ho("D",this.getTranslation(i.ws.DAY_NAMES_SHORT),this.getTranslation(i.ws.DAY_NAMES));break;case"o":zo=Ei("o");break;case"m":qi=Ei("m");break;case"M":qi=ho("M",this.getTranslation(i.ws.MONTH_NAMES_SHORT),this.getTranslation(i.ws.MONTH_NAMES));break;case"y":Wr=Ei("y");break;case"@":ki=new Date(Ei("@")),Wr=ki.getFullYear(),qi=ki.getMonth()+1,wi=ki.getDate();break;case"!":ki=new Date((Ei("!")-this.ticksTo1970)/1e4),Wr=ki.getFullYear(),qi=ki.getMonth()+1,wi=ki.getDate();break;case"'":wo("'")?Cr():xi=!0;break;default:Cr()}if(hr<bt.length&&(_r=bt.substr(hr),!/^\s+/.test(_r)))throw"Extra/unparsed characters found in date: "+_r;if(-1===Wr?Wr=(new Date).getFullYear():Wr<100&&(Wr+=(new Date).getFullYear()-(new Date).getFullYear()%100+(Wr<=In?0:-100)),zo>-1)for(qi=1,wi=zo;eo=this.getDaysCountInMonth(Wr,qi-1),!(wi<=eo);)qi++,wi-=eo;if("year"===this.view&&(qi=-1===qi?1:qi,wi=-1===wi?1:wi),ki=this.daylightSavingAdjust(new Date(Wr,qi-1,wi)),ki.getFullYear()!==Wr||ki.getMonth()+1!==qi||ki.getDate()!==wi)throw"Invalid date";return ki}daylightSavingAdjust(bt){return bt?(bt.setHours(bt.getHours()>12?bt.getHours()+2:0),bt):null}updateFilledState(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}onTodayButtonClick(bt){const an=new Date,Wn={day:an.getDate(),month:an.getMonth(),year:an.getFullYear(),otherMonth:an.getMonth()!==this.currentMonth||an.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.createMonths(an.getMonth(),an.getFullYear()),this.onDateSelect(bt,Wn),this.onTodayClick.emit(bt)}onClearButtonClick(bt){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(bt)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.body,this.responsiveStyleElement));let bt="";if(this.responsiveOptions){let an=[...this.responsiveOptions].filter(Wn=>!(!Wn.breakpoint||!Wn.numMonths)).sort((Wn,eo)=>-1*Wn.breakpoint.localeCompare(eo.breakpoint,void 0,{numeric:!0}));for(let Wn=0;Wn<an.length;Wn++){let{breakpoint:eo,numMonths:_r}=an[Wn],hr=`\n                        .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${_r}) .p-datepicker-next {\n                            display: inline-flex !important;\n                        }\n                    `;for(let In=_r;In<this.numberOfMonths;In++)hr+=`\n                            .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${In+1}) {\n                                display: none !important;\n                            }\n                        `;bt+=`\n                        @media screen and (max-width: ${eo}) {\n                            ${hr}\n                        }\n                    `}}this.responsiveStyleElement.innerHTML=bt}}destroyResponsiveStyleElement(){this.responsiveStyleElement&&(this.responsiveStyleElement.remove(),this.responsiveStyleElement=null)}bindDocumentClickListener(){this.documentClickListener||this.zone.runOutsideAngular(()=>{this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:this.document,"mousedown",an=>{this.isOutsideClicked(an)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(an),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new p.V(this.containerViewChild?.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(bt){return!(this.el.nativeElement.isSameNode(bt.target)||this.isNavIconClicked(bt)||this.el.nativeElement.contains(bt.target)||this.overlay&&this.overlay.contains(bt.target))}isNavIconClicked(bt){return p.p.hasClass(bt.target,"p-datepicker-prev")||p.p.hasClass(bt.target,"p-datepicker-prev-icon")||p.p.hasClass(bt.target,"p-datepicker-next")||p.p.hasClass(bt.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!p.p.isTouchDevice()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&o.P9.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(an){return new(an||Ui)(s.Y36(n.K0),s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(s.sBO),s.Y36(s.R0b),s.Y36(i.b4),s.Y36(i.F0))};static \u0275cmp=s.Xpm({type:Ui,selectors:[["p-calendar"]],contentQueries:function(an,Wn,eo){if(1&an&&s.Suo(eo,i.jx,4),2&an){let _r;s.iGM(_r=s.CRH())&&(Wn.templates=_r)}},viewQuery:function(an,Wn){if(1&an&&(s.Gf(P,5),s.Gf(G,5),s.Gf(B,5)),2&an){let eo;s.iGM(eo=s.CRH())&&(Wn.containerViewChild=eo.first),s.iGM(eo=s.CRH())&&(Wn.inputfieldViewChild=eo.first),s.iGM(eo=s.CRH())&&(Wn.content=eo.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(an,Wn){2&an&&s.ekj("p-inputwrapper-filled",Wn.filled)("p-inputwrapper-focus",Wn.focus)("p-calendar-clearable",Wn.showClear&&!Wn.disabled)},inputs:{iconDisplay:"iconDisplay",style:"style",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",name:"name",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",iconAriaLabel:"iconAriaLabel",disabled:"disabled",dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:"inline",showOtherMonths:"showOtherMonths",selectOtherMonths:"selectOtherMonths",showIcon:"showIcon",icon:"icon",appendTo:"appendTo",readonlyInput:"readonlyInput",shortYearCutoff:"shortYearCutoff",monthNavigator:"monthNavigator",yearNavigator:"yearNavigator",hourFormat:"hourFormat",timeOnly:"timeOnly",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",showSeconds:"showSeconds",required:"required",showOnFocus:"showOnFocus",showWeek:"showWeek",showClear:"showClear",dataType:"dataType",selectionMode:"selectionMode",maxDateCount:"maxDateCount",showButtonBar:"showButtonBar",todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:"keepInvalid",hideOnDateTimeSelect:"hideOnDateTimeSelect",touchUI:"touchUI",timeSeparator:"timeSeparator",focusTrap:"focusTrap",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:"tabindex",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale",view:"view",defaultDate:"defaultDate"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[s._Bn([Bn])],ngContentSelectors:Jn,decls:4,vars:12,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"ngIf"],[3,"class","ngStyle","ngClass","click",4,"ngIf"],["type","text","role","combobox","aria-autocomplete","none","aria-haspopup","dialog","autocomplete","off",3,"value","readonly","ngStyle","placeholder","disabled","ngClass","focus","keydown","click","blur","input"],["inputfield",""],[4,"ngIf"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","class","p-datepicker-trigger p-button-icon-only","tabindex","0",3,"disabled","click",4,"ngIf"],[3,"styleClass","click",4,"ngIf"],["class","p-calendar-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-calendar-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","tabindex","0",1,"p-datepicker-trigger","p-button-icon-only",3,"disabled","click"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"ngClass","click",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass","click"],[3,"ngStyle","ngClass","click"],["contentWrapper",""],["class","p-timepicker",4,"ngIf"],["class","p-datepicker-buttonbar",4,"ngIf"],[1,"p-datepicker-group-container"],["class","p-datepicker-group",4,"ngFor","ngForOf"],["class","p-monthpicker",4,"ngIf"],["class","p-yearpicker",4,"ngIf"],[1,"p-datepicker-group"],[1,"p-datepicker-header"],["class","p-datepicker-prev p-link","type","button","pRipple","",3,"keydown","click",4,"ngIf"],[1,"p-datepicker-title"],["type","button","class","p-datepicker-month p-link",3,"disabled","click","keydown",4,"ngIf"],["type","button","class","p-datepicker-year p-link",3,"disabled","click","keydown",4,"ngIf"],["class","p-datepicker-decade",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-next","p-link",3,"keydown","click"],[3,"styleClass",4,"ngIf"],["class","p-datepicker-next-icon",4,"ngIf"],["class","p-datepicker-calendar-container",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-prev","p-link",3,"keydown","click"],["class","p-datepicker-prev-icon",4,"ngIf"],[3,"styleClass"],[1,"p-datepicker-prev-icon"],["type","button",1,"p-datepicker-month","p-link",3,"disabled","click","keydown"],["type","button",1,"p-datepicker-year","p-link",3,"disabled","click","keydown"],[1,"p-datepicker-decade"],[1,"p-datepicker-next-icon"],[1,"p-datepicker-calendar-container"],["role","grid",1,"p-datepicker-calendar"],["class","p-datepicker-weekheader p-disabled",4,"ngIf"],["scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"p-datepicker-weekheader","p-disabled"],["scope","col"],["class","p-datepicker-weeknumber",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"p-datepicker-weeknumber"],[1,"p-disabled"],["draggable","false","pRipple","",3,"ngClass","click","keydown"],["class","p-hidden-accessible","aria-live","polite",4,"ngIf"],["aria-live","polite",1,"p-hidden-accessible"],[1,"p-monthpicker"],["class","p-monthpicker-month","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-monthpicker-month",3,"ngClass","click","keydown"],[1,"p-yearpicker"],["class","p-yearpicker-year","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-yearpicker-year",3,"ngClass","click","keydown"],[1,"p-timepicker"],[1,"p-hour-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave"],[1,"p-separator"],[1,"p-minute-picker"],["class","p-separator",4,"ngIf"],["class","p-second-picker",4,"ngIf"],["class","p-ampm-picker",4,"ngIf"],[1,"p-second-picker"],[1,"p-ampm-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","click","keydown.enter"],[1,"p-datepicker-buttonbar"],["type","button","pButton","","pRipple","",3,"label","ngClass","keydown","click"]],template:function(an,Wn){1&an&&(s.F$t(Fo),s.TgZ(0,"span",0,1),s.YNc(2,me,5,21,"ng-template",2)(3,ui,9,31,"div",3),s.qZA()),2&an&&(s.Tol(Wn.styleClass),s.Q6J("ngClass",s.qbA(6,At,Wn.showIcon&&"input"===Wn.iconDisplay,Wn.showIcon&&"button"===Wn.iconDisplay,Wn.timeOnly,Wn.disabled,Wn.focus||Wn.overlayVisible))("ngStyle",Wn.style),s.xp6(2),s.Q6J("ngIf",!Wn.inline),s.xp6(),s.Q6J("ngIf",Wn.inline||Wn.overlayVisible))},dependencies:()=>[n.mk,n.sg,n.O5,n.tP,n.PC,t.Hq,c.H,u,m.X,b,I.v,H.q,O],styles:["@layer primeng{.p-calendar{position:relative;display:inline-flex;max-width:100%}.p-calendar .p-inputtext{flex:1 1 auto;width:1%}.p-calendar-w-btn .p-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}.p-calendar-w-btn .p-datepicker-trigger{border-top-left-radius:0;border-bottom-left-radius:0}.p-fluid .p-calendar{display:flex}.p-fluid .p-calendar .p-inputtext{width:1%}.p-calendar .p-datepicker{min-width:100%}.p-datepicker{width:auto;position:absolute;top:0;left:0}.p-datepicker-inline{display:inline-block;position:static;overflow-x:auto}.p-datepicker-header{display:flex;align-items:center;justify-content:space-between}.p-datepicker-header .p-datepicker-title{margin:0 auto}.p-datepicker-prev,.p-datepicker-next{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group{flex:1 1 auto}.p-datepicker-multiple-month .p-datepicker-group-container{display:flex}.p-datepicker table{width:100%;border-collapse:collapse}.p-datepicker td>span{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 auto;overflow:hidden;position:relative}.p-monthpicker-month{width:33.3%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-datepicker-buttonbar{display:flex;justify-content:space-between;align-items:center}.p-timepicker{display:flex;justify-content:center;align-items:center}.p-timepicker button{display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-timepicker>div{display:flex;align-items:center;flex-direction:column}.p-datepicker-touch-ui,.p-calendar .p-datepicker-touch-ui{position:fixed;top:50%;left:50%;min-width:80vw;transform:translate(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-datepicker-icon{pointer-events:none}.p-calendar-clearable{position:relative}}\n"],encapsulation:2,data:{animation:[(0,e.X$)("overlayAnimation",[(0,e.SB)("visibleTouchUI",(0,e.oB)({transform:"translate(-50%,-50%)",opacity:1})),(0,e.eR)("void => visible",[(0,e.oB)({opacity:0,transform:"scaleY(0.8)"}),(0,e.jt)("{{showTransitionParams}}",(0,e.oB)({opacity:1,transform:"*"}))]),(0,e.eR)("visible => void",[(0,e.jt)("{{hideTransitionParams}}",(0,e.oB)({opacity:0}))]),(0,e.eR)("void => visibleTouchUI",[(0,e.oB)({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),(0,e.jt)("{{showTransitionParams}}")]),(0,e.eR)("visibleTouchUI => void",[(0,e.jt)("{{hideTransitionParams}}",(0,e.oB)({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0})}return Ui})(),$n=(()=>{class Ui{static \u0275fac=function(an){return new(an||Ui)};static \u0275mod=s.oAB({type:Ui});static \u0275inj=s.cJS({imports:[n.ez,t.hJ,i.m8,c.T,u,m.X,b,I.v,H.q,O,t.hJ,i.m8]})}return Ui})()},59252:(gt,X,a)=>{"use strict";a.d(X,{S:()=>Ip,C:()=>xp});var e=a(19212),n=a(96814);function s(){}const l=function(){let U=0;return function(){return U++}}();function i(U){return null===U||typeof U>"u"}function t(U){if(Array.isArray&&Array.isArray(U))return!0;const S=Object.prototype.toString.call(U);return"[object"===S.slice(0,7)&&"Array]"===S.slice(-6)}function p(U){return null!==U&&"[object Object]"===Object.prototype.toString.call(U)}const c=U=>("number"==typeof U||U instanceof Number)&&isFinite(+U);function o(U,S){return c(U)?U:S}function x(U,S){return typeof U>"u"?S:U}const m=(U,S)=>"string"==typeof U&&U.endsWith("%")?parseFloat(U)/100*S:+U;function b(U,S,w){if(U&&"function"==typeof U.call)return U.apply(w,S)}function I(U,S,w,Q){let oe,fe,Ee;if(t(U))if(fe=U.length,Q)for(oe=fe-1;oe>=0;oe--)S.call(w,U[oe],oe);else for(oe=0;oe<fe;oe++)S.call(w,U[oe],oe);else if(p(U))for(Ee=Object.keys(U),fe=Ee.length,oe=0;oe<fe;oe++)S.call(w,U[Ee[oe]],Ee[oe])}function H(U,S){let w,Q,oe,fe;if(!U||!S||U.length!==S.length)return!1;for(w=0,Q=U.length;w<Q;++w)if(oe=U[w],fe=S[w],oe.datasetIndex!==fe.datasetIndex||oe.index!==fe.index)return!1;return!0}function O(U){if(t(U))return U.map(O);if(p(U)){const S=Object.create(null),w=Object.keys(U),Q=w.length;let oe=0;for(;oe<Q;++oe)S[w[oe]]=O(U[w[oe]]);return S}return U}function P(U){return-1===["__proto__","prototype","constructor"].indexOf(U)}function G(U,S,w,Q){if(!P(U))return;const oe=S[U],fe=w[U];p(oe)&&p(fe)?B(oe,fe,Q):S[U]=O(fe)}function B(U,S,w){const Q=t(S)?S:[S],oe=Q.length;if(!p(U))return U;const fe=(w=w||{}).merger||G;for(let Ee=0;Ee<oe;++Ee){if(!p(S=Q[Ee]))continue;const it=Object.keys(S);for(let mt=0,$t=it.length;mt<$t;++mt)fe(it[mt],U,S,w)}return U}function ae(U,S){return B(U,S,{merger:J})}function J(U,S,w){if(!P(U))return;const Q=S[U],oe=w[U];p(Q)&&p(oe)?ae(Q,oe):Object.prototype.hasOwnProperty.call(S,U)||(S[U]=O(oe))}const j={"":U=>U,x:U=>U.x,y:U=>U.y};function Y(U,S){return(j[S]||(j[S]=function K(U){const S=function ne(U){const S=U.split("."),w=[];let Q="";for(const oe of S)Q+=oe,Q.endsWith("\\")?Q=Q.slice(0,-1)+".":(w.push(Q),Q="");return w}(U);return w=>{for(const Q of S){if(""===Q)break;w=w&&w[Q]}return w}}(S)))(U)}function ee(U){return U.charAt(0).toUpperCase()+U.slice(1)}const $=U=>typeof U<"u",ue=U=>"function"==typeof U,ge=(U,S)=>{if(U.size!==S.size)return!1;for(const w of U)if(!S.has(w))return!1;return!0},at=Math.PI,Le=2*at,R=Le+at,Te=Number.POSITIVE_INFINITY,me=at/180,Se=at/2,Ue=at/4,We=2*at/3,et=Math.log10,Et=Math.sign;function lt(U){const S=Math.round(U);U=Z(U,S,U/1e3)?S:U;const w=Math.pow(10,Math.floor(et(U))),Q=U/w;return(Q<=1?1:Q<=2?2:Q<=5?5:10)*w}function r(U){return!isNaN(parseFloat(U))&&isFinite(U)}function Z(U,S,w){return Math.abs(U-S)<w}function Oe(U,S,w){let Q,oe,fe;for(Q=0,oe=U.length;Q<oe;Q++)fe=U[Q][w],isNaN(fe)||(S.min=Math.min(S.min,fe),S.max=Math.max(S.max,fe))}function ye(U){return U*(at/180)}function ve(U){return U*(180/at)}function ft(U){if(!c(U))return;let S=1,w=0;for(;Math.round(U*S)/S!==U;)S*=10,w++;return w}function Dt(U,S){const w=S.x-U.x,Q=S.y-U.y,oe=Math.sqrt(w*w+Q*Q);let fe=Math.atan2(Q,w);return fe<-.5*at&&(fe+=Le),{angle:fe,distance:oe}}function Rn(U,S){return Math.sqrt(Math.pow(S.x-U.x,2)+Math.pow(S.y-U.y,2))}function ti(U,S){return(U-S+R)%Le-at}function Xt(U){return(U%Le+Le)%Le}function Je(U,S,w,Q){const oe=Xt(U),fe=Xt(S),Ee=Xt(w),it=Xt(fe-oe),mt=Xt(Ee-oe),$t=Xt(oe-fe),ai=Xt(oe-Ee);return oe===fe||oe===Ee||Q&&fe===Ee||it>mt&&$t<ai}function dt(U,S,w){return Math.max(S,Math.min(w,U))}function ot(U,S,w,Q=1e-6){return U>=Math.min(S,w)-Q&&U<=Math.max(S,w)+Q}function ct(U,S,w){w=w||(Ee=>U[Ee]<S);let fe,Q=U.length-1,oe=0;for(;Q-oe>1;)fe=oe+Q>>1,w(fe)?oe=fe:Q=fe;return{lo:oe,hi:Q}}const tn=(U,S,w,Q)=>ct(U,w,Q?oe=>U[oe][S]<=w:oe=>U[oe][S]<w),yi=(U,S,w)=>ct(U,w,Q=>U[Q][S]>=w),sn=["push","pop","shift","splice","unshift"];function vt(U,S){const w=U._chartjs;if(!w)return;const Q=w.listeners,oe=Q.indexOf(S);-1!==oe&&Q.splice(oe,1),!(Q.length>0)&&(sn.forEach(fe=>{delete U[fe]}),delete U._chartjs)}function nn(U){const S=new Set;let w,Q;for(w=0,Q=U.length;w<Q;++w)S.add(U[w]);return S.size===Q?U:Array.from(S)}const ii=typeof window>"u"?function(U){return U()}:window.requestAnimationFrame;function Oo(U,S,w){const Q=w||(Ee=>Array.prototype.slice.call(Ee));let oe=!1,fe=[];return function(...Ee){fe=Q(Ee),oe||(oe=!0,ii.call(window,()=>{oe=!1,U.apply(S,fe)}))}}const Li=U=>"start"===U?"left":"end"===U?"right":"center",ji=(U,S,w)=>"start"===U?S:"end"===U?w:(S+w)/2;function _i(U,S,w){const Q=S.length;let oe=0,fe=Q;if(U._sorted){const{iScale:Ee,_parsed:it}=U,mt=Ee.axis,{min:$t,max:ai,minDefined:Ai,maxDefined:ao}=Ee.getUserBounds();Ai&&(oe=dt(Math.min(tn(it,Ee.axis,$t).lo,w?Q:tn(S,mt,Ee.getPixelForValue($t)).lo),0,Q-1)),fe=ao?dt(Math.max(tn(it,Ee.axis,ai,!0).hi+1,w?0:tn(S,mt,Ee.getPixelForValue(ai),!0).hi+1),oe,Q)-oe:Q-oe}return{start:oe,count:fe}}function En(U){const{xScale:S,yScale:w,_scaleRanges:Q}=U,oe={xmin:S.min,xmax:S.max,ymin:w.min,ymax:w.max};if(!Q)return U._scaleRanges=oe,!0;const fe=Q.xmin!==S.min||Q.xmax!==S.max||Q.ymin!==w.min||Q.ymax!==w.max;return Object.assign(Q,oe),fe}const co=U=>0===U||1===U,yn=(U,S,w)=>-Math.pow(2,10*(U-=1))*Math.sin((U-S)*Le/w),ln=(U,S,w)=>Math.pow(2,-10*U)*Math.sin((U-S)*Le/w)+1,He={linear:U=>U,easeInQuad:U=>U*U,easeOutQuad:U=>-U*(U-2),easeInOutQuad:U=>(U/=.5)<1?.5*U*U:-.5*(--U*(U-2)-1),easeInCubic:U=>U*U*U,easeOutCubic:U=>(U-=1)*U*U+1,easeInOutCubic:U=>(U/=.5)<1?.5*U*U*U:.5*((U-=2)*U*U+2),easeInQuart:U=>U*U*U*U,easeOutQuart:U=>-((U-=1)*U*U*U-1),easeInOutQuart:U=>(U/=.5)<1?.5*U*U*U*U:-.5*((U-=2)*U*U*U-2),easeInQuint:U=>U*U*U*U*U,easeOutQuint:U=>(U-=1)*U*U*U*U+1,easeInOutQuint:U=>(U/=.5)<1?.5*U*U*U*U*U:.5*((U-=2)*U*U*U*U+2),easeInSine:U=>1-Math.cos(U*Se),easeOutSine:U=>Math.sin(U*Se),easeInOutSine:U=>-.5*(Math.cos(at*U)-1),easeInExpo:U=>0===U?0:Math.pow(2,10*(U-1)),easeOutExpo:U=>1===U?1:1-Math.pow(2,-10*U),easeInOutExpo:U=>co(U)?U:U<.5?.5*Math.pow(2,10*(2*U-1)):.5*(2-Math.pow(2,-10*(2*U-1))),easeInCirc:U=>U>=1?U:-(Math.sqrt(1-U*U)-1),easeOutCirc:U=>Math.sqrt(1-(U-=1)*U),easeInOutCirc:U=>(U/=.5)<1?-.5*(Math.sqrt(1-U*U)-1):.5*(Math.sqrt(1-(U-=2)*U)+1),easeInElastic:U=>co(U)?U:yn(U,.075,.3),easeOutElastic:U=>co(U)?U:ln(U,.075,.3),easeInOutElastic:U=>co(U)?U:U<.5?.5*yn(2*U,.1125,.45):.5+.5*ln(2*U-1,.1125,.45),easeInBack:U=>U*U*(2.70158*U-1.70158),easeOutBack:U=>(U-=1)*U*(2.70158*U+1.70158)+1,easeInOutBack(U){let S=1.70158;return(U/=.5)<1?U*U*((1+(S*=1.525))*U-S)*.5:.5*((U-=2)*U*((1+(S*=1.525))*U+S)+2)},easeInBounce:U=>1-He.easeOutBounce(1-U),easeOutBounce:U=>U<1/2.75?7.5625*U*U:U<2/2.75?7.5625*(U-=1.5/2.75)*U+.75:U<2.5/2.75?7.5625*(U-=2.25/2.75)*U+.9375:7.5625*(U-=2.625/2.75)*U+.984375,easeInOutBounce:U=>U<.5?.5*He.easeInBounce(2*U):.5*He.easeOutBounce(2*U-1)+.5};function rt(U){return U+.5|0}const $e=(U,S,w)=>Math.max(Math.min(U,w),S);function Ve(U){return $e(rt(2.55*U),0,255)}function Ce(U){return $e(rt(255*U),0,255)}function tt(U){return $e(rt(U/2.55)/100,0,1)}function ht(U){return $e(rt(100*U),0,100)}const Qt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Un=[..."0123456789ABCDEF"],Yt=U=>Un[15&U],Fn=U=>Un[(240&U)>>4]+Un[15&U],yt=U=>(240&U)>>4==(15&U);const _o=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Hn(U,S,w){const Q=S*Math.min(w,1-w),oe=(fe,Ee=(fe+U/30)%12)=>w-Q*Math.max(Math.min(Ee-3,9-Ee,1),-1);return[oe(0),oe(8),oe(4)]}function mo(U,S,w){const Q=(oe,fe=(oe+U/60)%6)=>w-w*S*Math.max(Math.min(fe,4-fe,1),0);return[Q(5),Q(3),Q(1)]}function vn(U,S,w){const Q=Hn(U,1,.5);let oe;for(S+w>1&&(oe=1/(S+w),S*=oe,w*=oe),oe=0;oe<3;oe++)Q[oe]*=1-S-w,Q[oe]+=S;return Q}function wn(U){const w=U.r/255,Q=U.g/255,oe=U.b/255,fe=Math.max(w,Q,oe),Ee=Math.min(w,Q,oe),it=(fe+Ee)/2;let mt,$t,ai;return fe!==Ee&&(ai=fe-Ee,$t=it>.5?ai/(2-fe-Ee):ai/(fe+Ee),mt=function Ji(U,S,w,Q,oe){return U===oe?(S-w)/Q+(S<w?6:0):S===oe?(w-U)/Q+2:(U-S)/Q+4}(w,Q,oe,ai,fe),mt=60*mt+.5),[0|mt,$t||0,it]}function po(U,S,w,Q){return(Array.isArray(S)?U(S[0],S[1],S[2]):U(S,w,Q)).map(Ce)}function Kn(U,S,w){return po(Hn,U,S,w)}function Ft(U){return(U%360+360)%360}const st={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Dn={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let kn;const ui=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,Jn=U=>U<=.0031308?12.92*U:1.055*Math.pow(U,1/2.4)-.055,Bn=U=>U<=.04045?U/12.92:Math.pow((U+.055)/1.055,2.4);function $n(U,S,w){if(U){let Q=wn(U);Q[S]=Math.max(0,Math.min(Q[S]+Q[S]*w,0===S?360:1)),Q=Kn(Q),U.r=Q[0],U.g=Q[1],U.b=Q[2]}}function Ui(U,S){return U&&Object.assign(S||{},U)}function Xo(U){var S={r:0,g:0,b:0,a:255};return Array.isArray(U)?U.length>=3&&(S={r:U[0],g:U[1],b:U[2],a:255},U.length>3&&(S.a=Ce(U[3]))):(S=Ui(U,{r:0,g:0,b:0,a:1})).a=Ce(S.a),S}function bt(U){return"r"===U.charAt(0)?function Fo(U){const S=ui.exec(U);let Q,oe,fe,w=255;if(S){if(S[7]!==Q){const Ee=+S[7];w=S[8]?Ve(Ee):$e(255*Ee,0,255)}return Q=+S[1],oe=+S[3],fe=+S[5],Q=255&(S[2]?Ve(Q):$e(Q,0,255)),oe=255&(S[4]?Ve(oe):$e(oe,0,255)),fe=255&(S[6]?Ve(fe):$e(fe,0,255)),{r:Q,g:oe,b:fe,a:w}}}(U):function Oi(U){const S=_o.exec(U);let Q,w=255;if(!S)return;S[5]!==Q&&(w=S[6]?Ve(+S[5]):Ce(+S[5]));const oe=Ft(+S[2]),fe=+S[3]/100,Ee=+S[4]/100;return Q="hwb"===S[1]?function Vn(U,S,w){return po(vn,U,S,w)}(oe,fe,Ee):"hsv"===S[1]?function Wi(U,S,w){return po(mo,U,S,w)}(oe,fe,Ee):Kn(oe,fe,Ee),{r:Q[0],g:Q[1],b:Q[2],a:w}}(U)}class an{constructor(S){if(S instanceof an)return S;const w=typeof S;let Q;"object"===w?Q=Xo(S):"string"===w&&(Q=function li(U){var w,S=U.length;return"#"===U[0]&&(4===S||5===S?w={r:255&17*Qt[U[1]],g:255&17*Qt[U[2]],b:255&17*Qt[U[3]],a:5===S?17*Qt[U[4]]:255}:(7===S||9===S)&&(w={r:Qt[U[1]]<<4|Qt[U[2]],g:Qt[U[3]]<<4|Qt[U[4]],b:Qt[U[5]]<<4|Qt[U[6]],a:9===S?Qt[U[7]]<<4|Qt[U[8]]:255})),w}(S)||function Fi(U){kn||(kn=function Wt(){const U={},S=Object.keys(Dn),w=Object.keys(st);let Q,oe,fe,Ee,it;for(Q=0;Q<S.length;Q++){for(Ee=it=S[Q],oe=0;oe<w.length;oe++)fe=w[oe],it=it.replace(fe,st[fe]);fe=parseInt(Dn[Ee],16),U[it]=[fe>>16&255,fe>>8&255,255&fe]}return U}(),kn.transparent=[0,0,0,0]);const S=kn[U.toLowerCase()];return S&&{r:S[0],g:S[1],b:S[2],a:4===S.length?S[3]:255}}(S)||bt(S)),this._rgb=Q,this._valid=!!Q}get valid(){return this._valid}get rgb(){var S=Ui(this._rgb);return S&&(S.a=tt(S.a)),S}set rgb(S){this._rgb=Xo(S)}rgbString(){return this._valid?function At(U){return U&&(U.a<255?`rgba(${U.r}, ${U.g}, ${U.b}, ${tt(U.a)})`:`rgb(${U.r}, ${U.g}, ${U.b})`)}(this._rgb):void 0}hexString(){return this._valid?function oo(U){var S=(U=>yt(U.r)&&yt(U.g)&&yt(U.b)&&yt(U.a))(U)?Yt:Fn;return U?"#"+S(U.r)+S(U.g)+S(U.b)+((U,S)=>U<255?S(U):"")(U.a,S):void 0}(this._rgb):void 0}hslString(){return this._valid?function _n(U){if(!U)return;const S=wn(U),w=S[0],Q=ht(S[1]),oe=ht(S[2]);return U.a<255?`hsla(${w}, ${Q}%, ${oe}%, ${tt(U.a)})`:`hsl(${w}, ${Q}%, ${oe}%)`}(this._rgb):void 0}mix(S,w){if(S){const Q=this.rgb,oe=S.rgb;let fe;const Ee=w===fe?.5:w,it=2*Ee-1,mt=Q.a-oe.a,$t=((it*mt==-1?it:(it+mt)/(1+it*mt))+1)/2;fe=1-$t,Q.r=255&$t*Q.r+fe*oe.r+.5,Q.g=255&$t*Q.g+fe*oe.g+.5,Q.b=255&$t*Q.b+fe*oe.b+.5,Q.a=Ee*Q.a+(1-Ee)*oe.a,this.rgb=Q}return this}interpolate(S,w){return S&&(this._rgb=function Bi(U,S,w){const Q=Bn(tt(U.r)),oe=Bn(tt(U.g)),fe=Bn(tt(U.b));return{r:Ce(Jn(Q+w*(Bn(tt(S.r))-Q))),g:Ce(Jn(oe+w*(Bn(tt(S.g))-oe))),b:Ce(Jn(fe+w*(Bn(tt(S.b))-fe))),a:U.a+w*(S.a-U.a)}}(this._rgb,S._rgb,w)),this}clone(){return new an(this.rgb)}alpha(S){return this._rgb.a=Ce(S),this}clearer(S){return this._rgb.a*=1-S,this}greyscale(){const S=this._rgb,w=rt(.3*S.r+.59*S.g+.11*S.b);return S.r=S.g=S.b=w,this}opaquer(S){return this._rgb.a*=1+S,this}negate(){const S=this._rgb;return S.r=255-S.r,S.g=255-S.g,S.b=255-S.b,this}lighten(S){return $n(this._rgb,2,S),this}darken(S){return $n(this._rgb,2,-S),this}saturate(S){return $n(this._rgb,1,S),this}desaturate(S){return $n(this._rgb,1,-S),this}rotate(S){return function On(U,S){var w=wn(U);w[0]=Ft(w[0]+S),w=Kn(w),U.r=w[0],U.g=w[1],U.b=w[2]}(this._rgb,S),this}}function Wn(U){return new an(U)}function eo(U){if(U&&"object"==typeof U){const S=U.toString();return"[object CanvasPattern]"===S||"[object CanvasGradient]"===S}return!1}function _r(U){return eo(U)?U:Wn(U)}function hr(U){return eo(U)?U:Wn(U).saturate(.5).darken(.1).hexString()}const In=Object.create(null),Wr=Object.create(null);function qi(U,S){if(!S)return U;const w=S.split(".");for(let Q=0,oe=w.length;Q<oe;++Q){const fe=w[Q];U=U[fe]||(U[fe]=Object.create(null))}return U}function wi(U,S,w){return"string"==typeof S?B(qi(U,S),w):B(qi(U,""),S)}var xi=new class zo{constructor(S){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=w=>w.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(w,Q)=>hr(Q.backgroundColor),this.hoverBorderColor=(w,Q)=>hr(Q.borderColor),this.hoverColor=(w,Q)=>hr(Q.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(S)}set(S,w){return wi(this,S,w)}get(S){return qi(this,S)}describe(S,w){return wi(Wr,S,w)}override(S,w){return wi(In,S,w)}route(S,w,Q,oe){const fe=qi(this,S),Ee=qi(this,Q),it="_"+w;Object.defineProperties(fe,{[it]:{value:fe[w],writable:!0},[w]:{enumerable:!0,get(){const mt=this[it],$t=Ee[oe];return p(mt)?Object.assign({},$t,mt):x(mt,$t)},set(mt){this[it]=mt}}})}}({_scriptable:U=>!U.startsWith("on"),_indexable:U=>"events"!==U,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function wo(U,S,w,Q,oe){let fe=S[oe];return fe||(fe=S[oe]=U.measureText(oe).width,w.push(oe)),fe>Q&&(Q=fe),Q}function Ei(U,S,w,Q){let oe=(Q=Q||{}).data=Q.data||{},fe=Q.garbageCollect=Q.garbageCollect||[];Q.font!==S&&(oe=Q.data={},fe=Q.garbageCollect=[],Q.font=S),U.save(),U.font=S;let Ee=0;const it=w.length;let mt,$t,ai,Ai,ao;for(mt=0;mt<it;mt++)if(Ai=w[mt],null!=Ai&&!0!==t(Ai))Ee=wo(U,oe,fe,Ee,Ai);else if(t(Ai))for($t=0,ai=Ai.length;$t<ai;$t++)ao=Ai[$t],null!=ao&&!t(ao)&&(Ee=wo(U,oe,fe,Ee,ao));U.restore();const go=fe.length/2;if(go>w.length){for(mt=0;mt<go;mt++)delete oe[fe[mt]];fe.splice(0,go)}return Ee}function ho(U,S,w){const Q=U.currentDevicePixelRatio,oe=0!==w?Math.max(w/2,.5):0;return Math.round((S-oe)*Q)/Q+oe}function Cr(U,S){(S=S||U.getContext("2d")).save(),S.resetTransform(),S.clearRect(0,0,U.width,U.height),S.restore()}function vr(U,S,w,Q){qr(U,S,w,Q,null)}function qr(U,S,w,Q,oe){let fe,Ee,it,mt,$t,ai;const Ai=S.pointStyle,ao=S.rotation,go=S.radius;let Co=(ao||0)*me;if(Ai&&"object"==typeof Ai&&(fe=Ai.toString(),"[object HTMLImageElement]"===fe||"[object HTMLCanvasElement]"===fe))return U.save(),U.translate(w,Q),U.rotate(Co),U.drawImage(Ai,-Ai.width/2,-Ai.height/2,Ai.width,Ai.height),void U.restore();if(!(isNaN(go)||go<=0)){switch(U.beginPath(),Ai){default:oe?U.ellipse(w,Q,oe/2,go,0,0,Le):U.arc(w,Q,go,0,Le),U.closePath();break;case"triangle":U.moveTo(w+Math.sin(Co)*go,Q-Math.cos(Co)*go),Co+=We,U.lineTo(w+Math.sin(Co)*go,Q-Math.cos(Co)*go),Co+=We,U.lineTo(w+Math.sin(Co)*go,Q-Math.cos(Co)*go),U.closePath();break;case"rectRounded":$t=.516*go,mt=go-$t,Ee=Math.cos(Co+Ue)*mt,it=Math.sin(Co+Ue)*mt,U.arc(w-Ee,Q-it,$t,Co-at,Co-Se),U.arc(w+it,Q-Ee,$t,Co-Se,Co),U.arc(w+Ee,Q+it,$t,Co,Co+Se),U.arc(w-it,Q+Ee,$t,Co+Se,Co+at),U.closePath();break;case"rect":if(!ao){mt=Math.SQRT1_2*go,ai=oe?oe/2:mt,U.rect(w-ai,Q-mt,2*ai,2*mt);break}Co+=Ue;case"rectRot":Ee=Math.cos(Co)*go,it=Math.sin(Co)*go,U.moveTo(w-Ee,Q-it),U.lineTo(w+it,Q-Ee),U.lineTo(w+Ee,Q+it),U.lineTo(w-it,Q+Ee),U.closePath();break;case"crossRot":Co+=Ue;case"cross":Ee=Math.cos(Co)*go,it=Math.sin(Co)*go,U.moveTo(w-Ee,Q-it),U.lineTo(w+Ee,Q+it),U.moveTo(w+it,Q-Ee),U.lineTo(w-it,Q+Ee);break;case"star":Ee=Math.cos(Co)*go,it=Math.sin(Co)*go,U.moveTo(w-Ee,Q-it),U.lineTo(w+Ee,Q+it),U.moveTo(w+it,Q-Ee),U.lineTo(w-it,Q+Ee),Co+=Ue,Ee=Math.cos(Co)*go,it=Math.sin(Co)*go,U.moveTo(w-Ee,Q-it),U.lineTo(w+Ee,Q+it),U.moveTo(w+it,Q-Ee),U.lineTo(w-it,Q+Ee);break;case"line":Ee=oe?oe/2:Math.cos(Co)*go,it=Math.sin(Co)*go,U.moveTo(w-Ee,Q-it),U.lineTo(w+Ee,Q+it);break;case"dash":U.moveTo(w,Q),U.lineTo(w+Math.cos(Co)*go,Q+Math.sin(Co)*go)}U.fill(),S.borderWidth>0&&U.stroke()}}function Ra(U,S,w){return w=w||.5,!S||U&&U.x>S.left-w&&U.x<S.right+w&&U.y>S.top-w&&U.y<S.bottom+w}function ss(U,S){U.save(),U.beginPath(),U.rect(S.left,S.top,S.right-S.left,S.bottom-S.top),U.clip()}function Hs(U){U.restore()}function Cs(U,S,w,Q,oe){if(!S)return U.lineTo(w.x,w.y);if("middle"===oe){const fe=(S.x+w.x)/2;U.lineTo(fe,S.y),U.lineTo(fe,w.y)}else"after"===oe!=!!Q?U.lineTo(S.x,w.y):U.lineTo(w.x,S.y);U.lineTo(w.x,w.y)}function ms(U,S,w,Q){if(!S)return U.lineTo(w.x,w.y);U.bezierCurveTo(Q?S.cp1x:S.cp2x,Q?S.cp1y:S.cp2y,Q?w.cp2x:w.cp1x,Q?w.cp2y:w.cp1y,w.x,w.y)}function ja(U,S,w,Q,oe,fe={}){const Ee=t(S)?S:[S],it=fe.strokeWidth>0&&""!==fe.strokeColor;let mt,$t;for(U.save(),U.font=oe.string,function el(U,S){S.translation&&U.translate(S.translation[0],S.translation[1]),i(S.rotation)||U.rotate(S.rotation),S.color&&(U.fillStyle=S.color),S.textAlign&&(U.textAlign=S.textAlign),S.textBaseline&&(U.textBaseline=S.textBaseline)}(U,fe),mt=0;mt<Ee.length;++mt)$t=Ee[mt],it&&(fe.strokeColor&&(U.strokeStyle=fe.strokeColor),i(fe.strokeWidth)||(U.lineWidth=fe.strokeWidth),U.strokeText($t,w,Q,fe.maxWidth)),U.fillText($t,w,Q,fe.maxWidth),Vs(U,w,Q,$t,fe),Q+=oe.lineHeight;U.restore()}function Vs(U,S,w,Q,oe){if(oe.strikethrough||oe.underline){const fe=U.measureText(Q),Ee=S-fe.actualBoundingBoxLeft,it=S+fe.actualBoundingBoxRight,$t=w+fe.actualBoundingBoxDescent,ai=oe.strikethrough?(w-fe.actualBoundingBoxAscent+$t)/2:$t;U.strokeStyle=U.fillStyle,U.beginPath(),U.lineWidth=oe.decorationWidth||2,U.moveTo(Ee,ai),U.lineTo(it,ai),U.stroke()}}function ls(U,S){const{x:w,y:Q,w:oe,h:fe,radius:Ee}=S;U.arc(w+Ee.topLeft,Q+Ee.topLeft,Ee.topLeft,-Se,at,!0),U.lineTo(w,Q+fe-Ee.bottomLeft),U.arc(w+Ee.bottomLeft,Q+fe-Ee.bottomLeft,Ee.bottomLeft,at,Se,!0),U.lineTo(w+oe-Ee.bottomRight,Q+fe),U.arc(w+oe-Ee.bottomRight,Q+fe-Ee.bottomRight,Ee.bottomRight,Se,0,!0),U.lineTo(w+oe,Q+Ee.topRight),U.arc(w+oe-Ee.topRight,Q+Ee.topRight,Ee.topRight,0,-Se,!0),U.lineTo(w+Ee.topLeft,Q)}const Fa=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),Ds=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function dl(U,S){const w=(""+U).match(Fa);if(!w||"normal"===w[1])return 1.2*S;switch(U=+w[2],w[3]){case"px":return U;case"%":U/=100}return S*U}const ka=U=>+U||0;function hs(U,S){const w={},Q=p(S),oe=Q?Object.keys(S):S,fe=p(U)?Q?Ee=>x(U[Ee],U[S[Ee]]):Ee=>U[Ee]:()=>U;for(const Ee of oe)w[Ee]=ka(fe(Ee));return w}function Ua(U){return hs(U,{top:"y",right:"x",bottom:"y",left:"x"})}function Tn(U){return hs(U,["topLeft","topRight","bottomLeft","bottomRight"])}function Qi(U){const S=Ua(U);return S.width=S.left+S.right,S.height=S.top+S.bottom,S}function To(U,S){let w=x((U=U||{}).size,(S=S||xi.font).size);"string"==typeof w&&(w=parseInt(w,10));let Q=x(U.style,S.style);Q&&!(""+Q).match(Ds)&&(console.warn('Invalid font style specified: "'+Q+'"'),Q="");const oe={family:x(U.family,S.family),lineHeight:dl(x(U.lineHeight,S.lineHeight),w),size:w,style:Q,weight:x(U.weight,S.weight),string:""};return oe.string=function ki(U){return!U||i(U.size)||i(U.family)?null:(U.style?U.style+" ":"")+(U.weight?U.weight+" ":"")+U.size+"px "+U.family}(oe),oe}function sr(U,S,w,Q){let fe,Ee,it,oe=!0;for(fe=0,Ee=U.length;fe<Ee;++fe)if(it=U[fe],void 0!==it&&(void 0!==S&&"function"==typeof it&&(it=it(S),oe=!1),void 0!==w&&t(it)&&(it=it[w%it.length],oe=!1),void 0!==it))return Q&&!oe&&(Q.cacheable=!1),it}function Vi(U,S){return Object.assign(Object.create(U),S)}function Ti(U,S=[""],w=U,Q,oe=(()=>U[0])){$(Q)||(Q=kr("_fallback",U));const fe={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:U,_rootScopes:w,_fallback:Q,_getTarget:oe,override:Ee=>Ti([Ee,...U],S,w,Q)};return new Proxy(fe,{deleteProperty:(Ee,it)=>(delete Ee[it],delete Ee._keys,delete U[0][it],!0),get:(Ee,it)=>Vr(Ee,it,()=>function Jo(U,S,w,Q){let oe;for(const fe of S)if(oe=kr($o(fe,U),w),$(oe))return yr(U,oe)?Cn(w,Q,U,oe):oe}(it,S,U,Ee)),getOwnPropertyDescriptor:(Ee,it)=>Reflect.getOwnPropertyDescriptor(Ee._scopes[0],it),getPrototypeOf:()=>Reflect.getPrototypeOf(U[0]),has:(Ee,it)=>Qr(Ee).includes(it),ownKeys:Ee=>Qr(Ee),set(Ee,it,mt){const $t=Ee._storage||(Ee._storage=oe());return Ee[it]=$t[it]=mt,delete Ee._keys,!0}})}function Hi(U,S,w,Q){const oe={_cacheable:!1,_proxy:U,_context:S,_subProxy:w,_stack:new Set,_descriptors:Do(U,Q),setContext:fe=>Hi(U,fe,w,Q),override:fe=>Hi(U.override(fe),S,w,Q)};return new Proxy(oe,{deleteProperty:(fe,Ee)=>(delete fe[Ee],delete U[Ee],!0),get:(fe,Ee,it)=>Vr(fe,Ee,()=>function da(U,S,w){const{_proxy:Q,_context:oe,_subProxy:fe,_descriptors:Ee}=U;let it=Q[S];return ue(it)&&Ee.isScriptable(S)&&(it=function Za(U,S,w,Q){const{_proxy:oe,_context:fe,_subProxy:Ee,_stack:it}=w;if(it.has(U))throw new Error("Recursion detected: "+Array.from(it).join("->")+"->"+U);return it.add(U),S=S(fe,Ee||Q),it.delete(U),yr(U,S)&&(S=Cn(oe._scopes,oe,U,S)),S}(S,it,U,w)),t(it)&&it.length&&(it=function ma(U,S,w,Q){const{_proxy:oe,_context:fe,_subProxy:Ee,_descriptors:it}=w;if($(fe.index)&&Q(U))S=S[fe.index%S.length];else if(p(S[0])){const mt=S,$t=oe._scopes.filter(ai=>ai!==mt);S=[];for(const ai of mt){const Ai=Cn($t,oe,U,ai);S.push(Hi(Ai,fe,Ee&&Ee[U],it))}}return S}(S,it,U,Ee.isIndexable)),yr(S,it)&&(it=Hi(it,oe,fe&&fe[S],Ee)),it}(fe,Ee,it)),getOwnPropertyDescriptor:(fe,Ee)=>fe._descriptors.allKeys?Reflect.has(U,Ee)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(U,Ee),getPrototypeOf:()=>Reflect.getPrototypeOf(U),has:(fe,Ee)=>Reflect.has(U,Ee),ownKeys:()=>Reflect.ownKeys(U),set:(fe,Ee,it)=>(U[Ee]=it,delete fe[Ee],!0)})}function Do(U,S={scriptable:!0,indexable:!0}){const{_scriptable:w=S.scriptable,_indexable:Q=S.indexable,_allKeys:oe=S.allKeys}=U;return{allKeys:oe,scriptable:w,indexable:Q,isScriptable:ue(w)?w:()=>w,isIndexable:ue(Q)?Q:()=>Q}}const $o=(U,S)=>U?U+ee(S):S,yr=(U,S)=>p(S)&&"adapters"!==U&&(null===Object.getPrototypeOf(S)||S.constructor===Object);function Vr(U,S,w){if(Object.prototype.hasOwnProperty.call(U,S))return U[S];const Q=w();return U[S]=Q,Q}function Wa(U,S,w){return ue(U)?U(S,w):U}const Yi=(U,S)=>!0===U?S:"string"==typeof U?Y(S,U):void 0;function jo(U,S,w,Q,oe){for(const fe of S){const Ee=Yi(w,fe);if(Ee){U.add(Ee);const it=Wa(Ee._fallback,w,oe);if($(it)&&it!==w&&it!==Q)return it}else if(!1===Ee&&$(Q)&&w!==Q)return null}return!1}function Cn(U,S,w,Q){const oe=S._rootScopes,fe=Wa(S._fallback,w,Q),Ee=[...U,...oe],it=new Set;it.add(Q);let mt=uo(it,Ee,w,fe||w,Q);return!(null===mt||$(fe)&&fe!==w&&(mt=uo(it,Ee,fe,mt,Q),null===mt))&&Ti(Array.from(it),[""],oe,fe,()=>function fo(U,S,w){const Q=U._getTarget();S in Q||(Q[S]={});const oe=Q[S];return t(oe)&&p(w)?w:oe}(S,w,Q))}function uo(U,S,w,Q,oe){for(;w;)w=jo(U,S,w,Q,oe);return w}function kr(U,S){for(const w of S){if(!w)continue;const Q=w[U];if($(Q))return Q}}function Qr(U){let S=U._keys;return S||(S=U._keys=function Aa(U){const S=new Set;for(const w of U)for(const Q of Object.keys(w).filter(oe=>!oe.startsWith("_")))S.add(Q);return Array.from(S)}(U._scopes)),S}function cs(U,S,w,Q){const{iScale:oe}=U,{key:fe="r"}=this._parsing,Ee=new Array(Q);let it,mt,$t,ai;for(it=0,mt=Q;it<mt;++it)$t=it+w,ai=S[$t],Ee[it]={r:oe.parse(Y(ai,fe),$t)};return Ee}const ys=Number.EPSILON||1e-14,zr=(U,S)=>S<U.length&&!U[S].skip&&U[S],Pi=U=>"x"===U?"y":"x";function xo(U,S,w,Q){const oe=U.skip?S:U,fe=S,Ee=w.skip?S:w,it=Rn(fe,oe),mt=Rn(Ee,fe);let $t=it/(it+mt),ai=mt/(it+mt);$t=isNaN($t)?0:$t,ai=isNaN(ai)?0:ai;const Ai=Q*$t,ao=Q*ai;return{previous:{x:fe.x-Ai*(Ee.x-oe.x),y:fe.y-Ai*(Ee.y-oe.y)},next:{x:fe.x+ao*(Ee.x-oe.x),y:fe.y+ao*(Ee.y-oe.y)}}}function ia(U,S,w){return Math.max(Math.min(U,w),S)}function Is(U,S,w,Q,oe){let fe,Ee,it,mt;if(S.spanGaps&&(U=U.filter($t=>!$t.skip)),"monotone"===S.cubicInterpolationMode)!function Da(U,S="x"){const w=Pi(S),Q=U.length,oe=Array(Q).fill(0),fe=Array(Q);let Ee,it,mt,$t=zr(U,0);for(Ee=0;Ee<Q;++Ee)if(it=mt,mt=$t,$t=zr(U,Ee+1),mt){if($t){const ai=$t[S]-mt[S];oe[Ee]=0!==ai?($t[w]-mt[w])/ai:0}fe[Ee]=it?$t?Et(oe[Ee-1])!==Et(oe[Ee])?0:(oe[Ee-1]+oe[Ee])/2:oe[Ee-1]:oe[Ee]}(function lr(U,S,w){const Q=U.length;let oe,fe,Ee,it,mt,$t=zr(U,0);for(let ai=0;ai<Q-1;++ai)if(mt=$t,$t=zr(U,ai+1),mt&&$t){if(Z(S[ai],0,ys)){w[ai]=w[ai+1]=0;continue}oe=w[ai]/S[ai],fe=w[ai+1]/S[ai],it=Math.pow(oe,2)+Math.pow(fe,2),!(it<=9)&&(Ee=3/Math.sqrt(it),w[ai]=oe*Ee*S[ai],w[ai+1]=fe*Ee*S[ai])}})(U,oe,fe),function Ir(U,S,w="x"){const Q=Pi(w),oe=U.length;let fe,Ee,it,mt=zr(U,0);for(let $t=0;$t<oe;++$t){if(Ee=it,it=mt,mt=zr(U,$t+1),!it)continue;const ai=it[w],Ai=it[Q];Ee&&(fe=(ai-Ee[w])/3,it[`cp1${w}`]=ai-fe,it[`cp1${Q}`]=Ai-fe*S[$t]),mt&&(fe=(mt[w]-ai)/3,it[`cp2${w}`]=ai+fe,it[`cp2${Q}`]=Ai+fe*S[$t])}}(U,fe,S)}(U,oe);else{let $t=Q?U[U.length-1]:U[0];for(fe=0,Ee=U.length;fe<Ee;++fe)it=U[fe],mt=xo($t,it,U[Math.min(fe+1,Ee-(Q?0:1))%Ee],S.tension),it.cp1x=mt.previous.x,it.cp1y=mt.previous.y,it.cp2x=mt.next.x,it.cp2y=mt.next.y,$t=it}S.capBezierPoints&&function as(U,S){let w,Q,oe,fe,Ee,it=Ra(U[0],S);for(w=0,Q=U.length;w<Q;++w)Ee=fe,fe=it,it=w<Q-1&&Ra(U[w+1],S),fe&&(oe=U[w],Ee&&(oe.cp1x=ia(oe.cp1x,S.left,S.right),oe.cp1y=ia(oe.cp1y,S.top,S.bottom)),it&&(oe.cp2x=ia(oe.cp2x,S.left,S.right),oe.cp2y=ia(oe.cp2y,S.top,S.bottom)))}(U,w)}function ba(){return typeof window<"u"&&typeof document<"u"}function Ss(U){let S=U.parentNode;return S&&"[object ShadowRoot]"===S.toString()&&(S=S.host),S}function Ca(U,S,w){let Q;return"string"==typeof U?(Q=parseInt(U,10),-1!==U.indexOf("%")&&(Q=Q/100*S.parentNode[w])):Q=U,Q}const Ia=U=>window.getComputedStyle(U,null),Va=["top","right","bottom","left"];function zn(U,S,w){const Q={};w=w?"-"+w:"";for(let oe=0;oe<4;oe++){const fe=Va[oe];Q[fe]=parseFloat(U[S+"-"+fe+w])||0}return Q.width=Q.left+Q.right,Q.height=Q.top+Q.bottom,Q}const di=(U,S,w)=>(U>0||S>0)&&(!w||!w.shadowRoot);function Zi(U,S){if("native"in U)return U;const{canvas:w,currentDevicePixelRatio:Q}=S,oe=Ia(w),fe="border-box"===oe.boxSizing,Ee=zn(oe,"padding"),it=zn(oe,"border","width"),{x:mt,y:$t,box:ai}=function cn(U,S){const w=U.touches,Q=w&&w.length?w[0]:U,{offsetX:oe,offsetY:fe}=Q;let it,mt,Ee=!1;if(di(oe,fe,U.target))it=oe,mt=fe;else{const $t=S.getBoundingClientRect();it=Q.clientX-$t.left,mt=Q.clientY-$t.top,Ee=!0}return{x:it,y:mt,box:Ee}}(U,w),Ai=Ee.left+(ai&&it.left),ao=Ee.top+(ai&&it.top);let{width:go,height:Co}=S;return fe&&(go-=Ee.width+it.width,Co-=Ee.height+it.height),{x:Math.round((mt-Ai)/go*w.width/Q),y:Math.round(($t-ao)/Co*w.height/Q)}}const oa=U=>Math.round(10*U)/10;function Rs(U,S,w){const Q=S||1,oe=Math.floor(U.height*Q),fe=Math.floor(U.width*Q);U.height=oe/Q,U.width=fe/Q;const Ee=U.canvas;return Ee.style&&(w||!Ee.style.height&&!Ee.style.width)&&(Ee.style.height=`${U.height}px`,Ee.style.width=`${U.width}px`),(U.currentDevicePixelRatio!==Q||Ee.height!==oe||Ee.width!==fe)&&(U.currentDevicePixelRatio=Q,Ee.height=oe,Ee.width=fe,U.ctx.setTransform(Q,0,0,Q,0,0),!0)}const Zr=function(){let U=!1;try{const S={get passive(){return U=!0,!1}};window.addEventListener("test",null,S),window.removeEventListener("test",null,S)}catch{}return U}();function Na(U,S){const w=function wa(U,S){return Ia(U).getPropertyValue(S)}(U,S),Q=w&&w.match(/^(\d+)(\.\d+)?px$/);return Q?+Q[1]:void 0}function ol(U,S,w,Q){return{x:U.x+w*(S.x-U.x),y:U.y+w*(S.y-U.y)}}function Cl(U,S,w,Q){return{x:U.x+w*(S.x-U.x),y:"middle"===Q?w<.5?U.y:S.y:"after"===Q?w<1?U.y:S.y:w>0?S.y:U.y}}function Ql(U,S,w,Q){const oe={x:U.cp2x,y:U.cp2y},fe={x:S.cp1x,y:S.cp1y},Ee=ol(U,oe,w),it=ol(oe,fe,w),mt=ol(fe,S,w),$t=ol(Ee,it,w),ai=ol(it,mt,w);return ol($t,ai,w)}const Ho=new Map;function os(U,S,w){return function mc(U,S){S=S||{};const w=U+JSON.stringify(S);let Q=Ho.get(w);return Q||(Q=new Intl.NumberFormat(U,S),Ho.set(w,Q)),Q}(S,w).format(U)}function Ba(U,S,w){return U?function(U,S){return{x:w=>U+U+S-w,setWidth(w){S=w},textAlign:w=>"center"===w?w:"right"===w?"left":"right",xPlus:(w,Q)=>w-Q,leftForLtr:(w,Q)=>w-Q}}(S,w):{x:U=>U,setWidth(U){},textAlign:U=>U,xPlus:(U,S)=>U+S,leftForLtr:(U,S)=>U}}function Ka(U,S){let w,Q;("ltr"===S||"rtl"===S)&&(w=U.canvas.style,Q=[w.getPropertyValue("direction"),w.getPropertyPriority("direction")],w.setProperty("direction",S,"important"),U.prevTextDirection=Q)}function vc(U,S){void 0!==S&&(delete U.prevTextDirection,U.canvas.style.setProperty("direction",S[0],S[1]))}function $s(U){return"angle"===U?{between:Je,compare:ti,normalize:Xt}:{between:ot,compare:(S,w)=>S-w,normalize:S=>S}}function js({start:U,end:S,count:w,loop:Q,style:oe}){return{start:U%w,end:S%w,loop:Q&&(S-U+1)%w==0,style:oe}}function ql(U,S,w){if(!w)return[U];const{property:Q,start:oe,end:fe}=w,Ee=S.length,{compare:it,between:mt,normalize:$t}=$s(Q),{start:ai,end:Ai,loop:ao,style:go}=function bc(U,S,w){const{property:Q,start:oe,end:fe}=w,{between:Ee,normalize:it}=$s(Q),mt=S.length;let ao,go,{start:$t,end:ai,loop:Ai}=U;if(Ai){for($t+=mt,ai+=mt,ao=0,go=mt;ao<go&&Ee(it(S[$t%mt][Q]),oe,fe);++ao)$t--,ai--;$t%=mt,ai%=mt}return ai<$t&&(ai+=mt),{start:$t,end:ai,loop:Ai,style:U.style}}(U,S,w),Co=[];let mr,Br,wr,Vo=!1,nr=null;for(let gs=ai,Gr=ai;gs<=Ai;++gs)Br=S[gs%Ee],!Br.skip&&(mr=$t(Br[Q]),mr!==wr&&(Vo=mt(mr,oe,fe),null===nr&&(Vo||mt(oe,wr,mr)&&0!==it(oe,wr))&&(nr=0===it(mr,oe)?gs:Gr),null!==nr&&(!Vo||0===it(fe,mr)||mt(fe,wr,mr))&&(Co.push(js({start:nr,end:gs,loop:ao,count:Ee,style:go})),nr=null),Gr=gs,wr=mr));return null!==nr&&Co.push(js({start:nr,end:Ai,loop:ao,count:Ee,style:go})),Co}function Gs(U,S){const w=[],Q=U.segments;for(let oe=0;oe<Q.length;oe++){const fe=ql(Q[oe],U.points,S);fe.length&&w.push(...fe)}return w}function ya(U){return{backgroundColor:U.backgroundColor,borderCapStyle:U.borderCapStyle,borderDash:U.borderDash,borderDashOffset:U.borderDashOffset,borderJoinStyle:U.borderJoinStyle,borderWidth:U.borderWidth,borderColor:U.borderColor}}function Pl(U,S){return S&&JSON.stringify(U)!==JSON.stringify(S)}var Ml=new class jl{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(S,w,Q,oe){const Ee=w.duration;w.listeners[oe].forEach(it=>it({chart:S,initial:w.initial,numSteps:Ee,currentStep:Math.min(Q-w.start,Ee)}))}_refresh(){this._request||(this._running=!0,this._request=ii.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(S=Date.now()){let w=0;this._charts.forEach((Q,oe)=>{if(!Q.running||!Q.items.length)return;const fe=Q.items;let mt,Ee=fe.length-1,it=!1;for(;Ee>=0;--Ee)mt=fe[Ee],mt._active?(mt._total>Q.duration&&(Q.duration=mt._total),mt.tick(S),it=!0):(fe[Ee]=fe[fe.length-1],fe.pop());it&&(oe.draw(),this._notify(oe,Q,S,"progress")),fe.length||(Q.running=!1,this._notify(oe,Q,S,"complete"),Q.initial=!1),w+=fe.length}),this._lastDate=S,0===w&&(this._running=!1)}_getAnims(S){const w=this._charts;let Q=w.get(S);return Q||(Q={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},w.set(S,Q)),Q}listen(S,w,Q){this._getAnims(S).listeners[w].push(Q)}add(S,w){!w||!w.length||this._getAnims(S).items.push(...w)}has(S){return this._getAnims(S).items.length>0}start(S){const w=this._charts.get(S);w&&(w.running=!0,w.start=Date.now(),w.duration=w.items.reduce((Q,oe)=>Math.max(Q,oe._duration),0),this._refresh())}running(S){if(!this._running)return!1;const w=this._charts.get(S);return!(!w||!w.running||!w.items.length)}stop(S){const w=this._charts.get(S);if(!w||!w.items.length)return;const Q=w.items;let oe=Q.length-1;for(;oe>=0;--oe)Q[oe].cancel();w.items=[],this._notify(S,w,Date.now(),"complete")}remove(S){return this._charts.delete(S)}};const rc="transparent",Kr={boolean:(U,S,w)=>w>.5?S:U,color(U,S,w){const Q=_r(U||rc),oe=Q.valid&&_r(S||rc);return oe&&oe.valid?oe.mix(Q,w).hexString():S},number:(U,S,w)=>U+(S-U)*w};class la{constructor(S,w,Q,oe){const fe=w[Q];oe=sr([S.to,oe,fe,S.from]);const Ee=sr([S.from,fe,oe]);this._active=!0,this._fn=S.fn||Kr[S.type||typeof Ee],this._easing=He[S.easing]||He.linear,this._start=Math.floor(Date.now()+(S.delay||0)),this._duration=this._total=Math.floor(S.duration),this._loop=!!S.loop,this._target=w,this._prop=Q,this._from=Ee,this._to=oe,this._promises=void 0}active(){return this._active}update(S,w,Q){if(this._active){this._notify(!1);const oe=this._target[this._prop],fe=Q-this._start,Ee=this._duration-fe;this._start=Q,this._duration=Math.floor(Math.max(Ee,S.duration)),this._total+=fe,this._loop=!!S.loop,this._to=sr([S.to,w,oe,S.from]),this._from=sr([S.from,oe,w])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(S){const w=S-this._start,Q=this._duration,oe=this._prop,fe=this._from,Ee=this._loop,it=this._to;let mt;if(this._active=fe!==it&&(Ee||w<Q),!this._active)return this._target[oe]=it,void this._notify(!0);w<0?this._target[oe]=fe:(mt=w/Q%2,mt=Ee&&mt>1?2-mt:mt,mt=this._easing(Math.min(1,Math.max(0,mt))),this._target[oe]=this._fn(fe,it,mt))}wait(){const S=this._promises||(this._promises=[]);return new Promise((w,Q)=>{S.push({res:w,rej:Q})})}_notify(S){const w=S?"res":"rej",Q=this._promises||[];for(let oe=0;oe<Q.length;oe++)Q[oe][w]()}}xi.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const ds=Object.keys(xi.animation);xi.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:U=>"onProgress"!==U&&"onComplete"!==U&&"fn"!==U}),xi.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),xi.describe("animations",{_fallback:"animation"}),xi.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:U=>0|U}}}});class bs{constructor(S,w){this._chart=S,this._properties=new Map,this.configure(w)}configure(S){if(!p(S))return;const w=this._properties;Object.getOwnPropertyNames(S).forEach(Q=>{const oe=S[Q];if(!p(oe))return;const fe={};for(const Ee of ds)fe[Ee]=oe[Ee];(t(oe.properties)&&oe.properties||[Q]).forEach(Ee=>{(Ee===Q||!w.has(Ee))&&w.set(Ee,fe)})})}_animateOptions(S,w){const Q=w.options,oe=function Ec(U,S){if(!S)return;let w=U.options;if(w)return w.$shared&&(U.options=w=Object.assign({},w,{$shared:!1,$animations:{}})),w;U.options=S}(S,Q);if(!oe)return[];const fe=this._createAnimations(oe,Q);return Q.$shared&&function sl(U,S){const w=[],Q=Object.keys(S);for(let oe=0;oe<Q.length;oe++){const fe=U[Q[oe]];fe&&fe.active()&&w.push(fe.wait())}return Promise.all(w)}(S.options.$animations,Q).then(()=>{S.options=Q},()=>{}),fe}_createAnimations(S,w){const Q=this._properties,oe=[],fe=S.$animations||(S.$animations={}),Ee=Object.keys(w),it=Date.now();let mt;for(mt=Ee.length-1;mt>=0;--mt){const $t=Ee[mt];if("$"===$t.charAt(0))continue;if("options"===$t){oe.push(...this._animateOptions(S,w));continue}const ai=w[$t];let Ai=fe[$t];const ao=Q.get($t);if(Ai){if(ao&&Ai.active()){Ai.update(ao,ai,it);continue}Ai.cancel()}ao&&ao.duration?(fe[$t]=Ai=new la(ao,S,$t,ai),oe.push(Ai)):S[$t]=ai}return oe}update(S,w){if(0===this._properties.size)return void Object.assign(S,w);const Q=this._createAnimations(S,w);return Q.length?(Ml.add(this._chart,Q),!0):void 0}}function gr(U,S){const w=U&&U.options||{},Q=w.reverse,oe=void 0===w.min?S:0,fe=void 0===w.max?S:0;return{start:Q?fe:oe,end:Q?oe:fe}}function Bs(U,S){const w=[],Q=U._getSortedDatasetMetas(S);let oe,fe;for(oe=0,fe=Q.length;oe<fe;++oe)w.push(Q[oe].index);return w}function yl(U,S,w,Q={}){const oe=U.keys,fe="single"===Q.mode;let Ee,it,mt,$t;if(null!==S){for(Ee=0,it=oe.length;Ee<it;++Ee){if(mt=+oe[Ee],mt===w){if(Q.all)continue;break}$t=U.values[mt],c($t)&&(fe||0===S||Et(S)===Et($t))&&(S+=$t)}return S}}function nl(U,S){const w=U&&U.options.stacked;return w||void 0===w&&void 0!==S.stack}function Zt(U,S,w){const Q=U[S]||(U[S]={});return Q[w]||(Q[w]={})}function ri(U,S,w,Q){for(const oe of S.getMatchingVisibleMetas(Q).reverse()){const fe=U[oe.index];if(w&&fe>0||!w&&fe<0)return oe.index}return null}function Mn(U,S){const{chart:w,_cachedMeta:Q}=U,oe=w._stacks||(w._stacks={}),{iScale:fe,vScale:Ee,index:it}=Q,mt=fe.axis,$t=Ee.axis,ai=function hl(U,S,w){return`${U.id}.${S.id}.${w.stack||w.type}`}(fe,Ee,Q),Ai=S.length;let ao;for(let go=0;go<Ai;++go){const Co=S[go],{[mt]:Vo,[$t]:nr}=Co;ao=(Co._stacks||(Co._stacks={}))[$t]=Zt(oe,ai,Vo),ao[it]=nr,ao._top=ri(ao,Ee,!0,Q.type),ao._bottom=ri(ao,Ee,!1,Q.type)}}function mi(U,S){const w=U.scales;return Object.keys(w).filter(Q=>w[Q].axis===S).shift()}function Pr(U,S){const w=U.controller.index,Q=U.vScale&&U.vScale.axis;if(Q){S=S||U._parsed;for(const oe of S){const fe=oe._stacks;if(!fe||void 0===fe[Q]||void 0===fe[Q][w])return;delete fe[Q][w]}}}const xa=U=>"reset"===U||"none"===U,tl=(U,S)=>S?U:Object.assign({},U);let Ts=(()=>{class U{constructor(w,Q){this.chart=w,this._ctx=w.ctx,this.index=Q,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const w=this._cachedMeta;this.configure(),this.linkScales(),w._stacked=nl(w.vScale,w),this.addElements()}updateIndex(w){this.index!==w&&Pr(this._cachedMeta),this.index=w}linkScales(){const w=this.chart,Q=this._cachedMeta,oe=this.getDataset(),fe=(ao,go,Co,Vo)=>"x"===ao?go:"r"===ao?Vo:Co,Ee=Q.xAxisID=x(oe.xAxisID,mi(w,"x")),it=Q.yAxisID=x(oe.yAxisID,mi(w,"y")),mt=Q.rAxisID=x(oe.rAxisID,mi(w,"r")),$t=Q.indexAxis,ai=Q.iAxisID=fe($t,Ee,it,mt),Ai=Q.vAxisID=fe($t,it,Ee,mt);Q.xScale=this.getScaleForId(Ee),Q.yScale=this.getScaleForId(it),Q.rScale=this.getScaleForId(mt),Q.iScale=this.getScaleForId(ai),Q.vScale=this.getScaleForId(Ai)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(w){return this.chart.scales[w]}_getOtherScale(w){const Q=this._cachedMeta;return w===Q.iScale?Q.vScale:Q.iScale}reset(){this._update("reset")}_destroy(){const w=this._cachedMeta;this._data&&vt(this._data,this),w._stacked&&Pr(w)}_dataCheck(){const w=this.getDataset(),Q=w.data||(w.data=[]),oe=this._data;if(p(Q))this._data=function Fr(U){const S=Object.keys(U),w=new Array(S.length);let Q,oe,fe;for(Q=0,oe=S.length;Q<oe;++Q)fe=S[Q],w[Q]={x:fe,y:U[fe]};return w}(Q);else if(oe!==Q){if(oe){vt(oe,this);const fe=this._cachedMeta;Pr(fe),fe._parsed=[]}Q&&Object.isExtensible(Q)&&function bn(U,S){U._chartjs?U._chartjs.listeners.push(S):(Object.defineProperty(U,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[S]}}),sn.forEach(w=>{const Q="_onData"+ee(w),oe=U[w];Object.defineProperty(U,w,{configurable:!0,enumerable:!1,value(...fe){const Ee=oe.apply(this,fe);return U._chartjs.listeners.forEach(it=>{"function"==typeof it[Q]&&it[Q](...fe)}),Ee}})}))}(Q,this),this._syncList=[],this._data=Q}}addElements(){const w=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(w.dataset=new this.datasetElementType)}buildOrUpdateElements(w){const Q=this._cachedMeta,oe=this.getDataset();let fe=!1;this._dataCheck();const Ee=Q._stacked;Q._stacked=nl(Q.vScale,Q),Q.stack!==oe.stack&&(fe=!0,Pr(Q),Q.stack=oe.stack),this._resyncElements(w),(fe||Ee!==Q._stacked)&&Mn(this,Q._parsed)}configure(){const w=this.chart.config,Q=w.datasetScopeKeys(this._type),oe=w.getOptionScopes(this.getDataset(),Q,!0);this.options=w.createResolver(oe,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(w,Q){const{_cachedMeta:oe,_data:fe}=this,{iScale:Ee,_stacked:it}=oe,mt=Ee.axis;let Ai,ao,go,$t=0===w&&Q===fe.length||oe._sorted,ai=w>0&&oe._parsed[w-1];if(!1===this._parsing)oe._parsed=fe,oe._sorted=!0,go=fe;else{go=t(fe[w])?this.parseArrayData(oe,fe,w,Q):p(fe[w])?this.parseObjectData(oe,fe,w,Q):this.parsePrimitiveData(oe,fe,w,Q);const Co=()=>null===ao[mt]||ai&&ao[mt]<ai[mt];for(Ai=0;Ai<Q;++Ai)oe._parsed[Ai+w]=ao=go[Ai],$t&&(Co()&&($t=!1),ai=ao);oe._sorted=$t}it&&Mn(this,go)}parsePrimitiveData(w,Q,oe,fe){const{iScale:Ee,vScale:it}=w,mt=Ee.axis,$t=it.axis,ai=Ee.getLabels(),Ai=Ee===it,ao=new Array(fe);let go,Co,Vo;for(go=0,Co=fe;go<Co;++go)Vo=go+oe,ao[go]={[mt]:Ai||Ee.parse(ai[Vo],Vo),[$t]:it.parse(Q[Vo],Vo)};return ao}parseArrayData(w,Q,oe,fe){const{xScale:Ee,yScale:it}=w,mt=new Array(fe);let $t,ai,Ai,ao;for($t=0,ai=fe;$t<ai;++$t)Ai=$t+oe,ao=Q[Ai],mt[$t]={x:Ee.parse(ao[0],Ai),y:it.parse(ao[1],Ai)};return mt}parseObjectData(w,Q,oe,fe){const{xScale:Ee,yScale:it}=w,{xAxisKey:mt="x",yAxisKey:$t="y"}=this._parsing,ai=new Array(fe);let Ai,ao,go,Co;for(Ai=0,ao=fe;Ai<ao;++Ai)go=Ai+oe,Co=Q[go],ai[Ai]={x:Ee.parse(Y(Co,mt),go),y:it.parse(Y(Co,$t),go)};return ai}getParsed(w){return this._cachedMeta._parsed[w]}getDataElement(w){return this._cachedMeta.data[w]}applyStack(w,Q,oe){const Ee=this._cachedMeta,it=Q[w.axis];return yl({keys:Bs(this.chart,!0),values:Q._stacks[w.axis]},it,Ee.index,{mode:oe})}updateRangeFromParsed(w,Q,oe,fe){const Ee=oe[Q.axis];let it=null===Ee?NaN:Ee;const mt=fe&&oe._stacks[Q.axis];fe&&mt&&(fe.values=mt,it=yl(fe,Ee,this._cachedMeta.index)),w.min=Math.min(w.min,it),w.max=Math.max(w.max,it)}getMinMax(w,Q){const oe=this._cachedMeta,fe=oe._parsed,Ee=oe._sorted&&w===oe.iScale,it=fe.length,mt=this._getOtherScale(w),$t=((U,S,w)=>U&&!S.hidden&&S._stacked&&{keys:Bs(this.chart,!0),values:null})(Q,oe),ai={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:Ai,max:ao}=function Cc(U){const{min:S,max:w,minDefined:Q,maxDefined:oe}=U.getUserBounds();return{min:Q?S:Number.NEGATIVE_INFINITY,max:oe?w:Number.POSITIVE_INFINITY}}(mt);let go,Co;function Vo(){Co=fe[go];const nr=Co[mt.axis];return!c(Co[w.axis])||Ai>nr||ao<nr}for(go=0;go<it&&(Vo()||(this.updateRangeFromParsed(ai,w,Co,$t),!Ee));++go);if(Ee)for(go=it-1;go>=0;--go)if(!Vo()){this.updateRangeFromParsed(ai,w,Co,$t);break}return ai}getAllParsedValues(w){const Q=this._cachedMeta._parsed,oe=[];let fe,Ee,it;for(fe=0,Ee=Q.length;fe<Ee;++fe)it=Q[fe][w.axis],c(it)&&oe.push(it);return oe}getMaxOverflow(){return!1}getLabelAndValue(w){const Q=this._cachedMeta,oe=Q.iScale,fe=Q.vScale,Ee=this.getParsed(w);return{label:oe?""+oe.getLabelForValue(Ee[oe.axis]):"",value:fe?""+fe.getLabelForValue(Ee[fe.axis]):""}}_update(w){const Q=this._cachedMeta;this.update(w||"default"),Q._clip=function Ms(U){let S,w,Q,oe;return p(U)?(S=U.top,w=U.right,Q=U.bottom,oe=U.left):S=w=Q=oe=U,{top:S,right:w,bottom:Q,left:oe,disabled:!1===U}}(x(this.options.clip,function Js(U,S,w){if(!1===w)return!1;const Q=gr(U,w),oe=gr(S,w);return{top:oe.end,right:Q.end,bottom:oe.start,left:Q.start}}(Q.xScale,Q.yScale,this.getMaxOverflow())))}update(w){}draw(){const w=this._ctx,oe=this._cachedMeta,fe=oe.data||[],Ee=this.chart.chartArea,it=[],mt=this._drawStart||0,$t=this._drawCount||fe.length-mt,ai=this.options.drawActiveElementsOnTop;let Ai;for(oe.dataset&&oe.dataset.draw(w,Ee,mt,$t),Ai=mt;Ai<mt+$t;++Ai){const ao=fe[Ai];ao.hidden||(ao.active&&ai?it.push(ao):ao.draw(w,Ee))}for(Ai=0;Ai<it.length;++Ai)it[Ai].draw(w,Ee)}getStyle(w,Q){const oe=Q?"active":"default";return void 0===w&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(oe):this.resolveDataElementOptions(w||0,oe)}getContext(w,Q,oe){const fe=this.getDataset();let Ee;if(w>=0&&w<this._cachedMeta.data.length){const it=this._cachedMeta.data[w];Ee=it.$context||(it.$context=function pr(U,S,w){return Vi(U,{active:!1,dataIndex:S,parsed:void 0,raw:void 0,element:w,index:S,mode:"default",type:"data"})}(this.getContext(),w,it)),Ee.parsed=this.getParsed(w),Ee.raw=fe.data[w],Ee.index=Ee.dataIndex=w}else Ee=this.$context||(this.$context=function Mo(U,S){return Vi(U,{active:!1,dataset:void 0,datasetIndex:S,index:S,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),Ee.dataset=fe,Ee.index=Ee.datasetIndex=this.index;return Ee.active=!!Q,Ee.mode=oe,Ee}resolveDatasetElementOptions(w){return this._resolveElementOptions(this.datasetElementType.id,w)}resolveDataElementOptions(w,Q){return this._resolveElementOptions(this.dataElementType.id,Q,w)}_resolveElementOptions(w,Q="default",oe){const fe="active"===Q,Ee=this._cachedDataOpts,it=w+"-"+Q,mt=Ee[it],$t=this.enableOptionSharing&&$(oe);if(mt)return tl(mt,$t);const ai=this.chart.config,Ai=ai.datasetElementScopeKeys(this._type,w),ao=fe?[`${w}Hover`,"hover",w,""]:[w,""],go=ai.getOptionScopes(this.getDataset(),Ai),Co=Object.keys(xi.elements[w]),nr=ai.resolveNamedOptions(go,Co,()=>this.getContext(oe,fe),ao);return nr.$shared&&(nr.$shared=$t,Ee[it]=Object.freeze(tl(nr,$t))),nr}_resolveAnimations(w,Q,oe){const fe=this.chart,Ee=this._cachedDataOpts,it=`animation-${Q}`,mt=Ee[it];if(mt)return mt;let $t;if(!1!==fe.options.animation){const Ai=this.chart.config,ao=Ai.datasetAnimationScopeKeys(this._type,Q),go=Ai.getOptionScopes(this.getDataset(),ao);$t=Ai.createResolver(go,this.getContext(w,oe,Q))}const ai=new bs(fe,$t&&$t.animations);return $t&&$t._cacheable&&(Ee[it]=Object.freeze(ai)),ai}getSharedOptions(w){if(w.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},w))}includeOptions(w,Q){return!Q||xa(w)||this.chart._animationsDisabled}_getSharedOptions(w,Q){const oe=this.resolveDataElementOptions(w,Q),fe=this._sharedOptions,Ee=this.getSharedOptions(oe),it=this.includeOptions(Q,Ee)||Ee!==fe;return this.updateSharedOptions(Ee,Q,oe),{sharedOptions:Ee,includeOptions:it}}updateElement(w,Q,oe,fe){xa(fe)?Object.assign(w,oe):this._resolveAnimations(Q,fe).update(w,oe)}updateSharedOptions(w,Q,oe){w&&!xa(Q)&&this._resolveAnimations(void 0,Q).update(w,oe)}_setStyle(w,Q,oe,fe){w.active=fe;const Ee=this.getStyle(Q,fe);this._resolveAnimations(Q,oe,fe).update(w,{options:!fe&&this.getSharedOptions(Ee)||Ee})}removeHoverStyle(w,Q,oe){this._setStyle(w,oe,"active",!1)}setHoverStyle(w,Q,oe){this._setStyle(w,oe,"active",!0)}_removeDatasetHoverStyle(){const w=this._cachedMeta.dataset;w&&this._setStyle(w,void 0,"active",!1)}_setDatasetHoverStyle(){const w=this._cachedMeta.dataset;w&&this._setStyle(w,void 0,"active",!0)}_resyncElements(w){const Q=this._data,oe=this._cachedMeta.data;for(const[mt,$t,ai]of this._syncList)this[mt]($t,ai);this._syncList=[];const fe=oe.length,Ee=Q.length,it=Math.min(Ee,fe);it&&this.parse(0,it),Ee>fe?this._insertElements(fe,Ee-fe,w):Ee<fe&&this._removeElements(Ee,fe-Ee)}_insertElements(w,Q,oe=!0){const fe=this._cachedMeta,Ee=fe.data,it=w+Q;let mt;const $t=ai=>{for(ai.length+=Q,mt=ai.length-1;mt>=it;mt--)ai[mt]=ai[mt-Q]};for($t(Ee),mt=w;mt<it;++mt)Ee[mt]=new this.dataElementType;this._parsing&&$t(fe._parsed),this.parse(w,Q),oe&&this.updateElements(Ee,w,Q,"reset")}updateElements(w,Q,oe,fe){}_removeElements(w,Q){const oe=this._cachedMeta;if(this._parsing){const fe=oe._parsed.splice(w,Q);oe._stacked&&Pr(oe,fe)}oe.data.splice(w,Q)}_sync(w){if(this._parsing)this._syncList.push(w);else{const[Q,oe,fe]=w;this[Q](oe,fe)}this.chart._dataChanges.push([this.index,...w])}_onDataPush(){const w=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-w,w])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(w,Q){Q&&this._sync(["_removeElements",w,Q]);const oe=arguments.length-2;oe&&this._sync(["_insertElements",w,oe])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}return U.defaults={},U})();function ul(U){const S=U.iScale,w=function _s(U,S){if(!U._cache.$bar){const w=U.getMatchingVisibleMetas(S);let Q=[];for(let oe=0,fe=w.length;oe<fe;oe++)Q=Q.concat(w[oe].controller.getAllParsedValues(U));U._cache.$bar=nn(Q.sort((oe,fe)=>oe-fe))}return U._cache.$bar}(S,U.type);let oe,fe,Ee,it,Q=S._length;const mt=()=>{32767===Ee||-32768===Ee||($(it)&&(Q=Math.min(Q,Math.abs(Ee-it)||Q)),it=Ee)};for(oe=0,fe=w.length;oe<fe;++oe)Ee=S.getPixelForValue(w[oe]),mt();for(it=void 0,oe=0,fe=S.ticks.length;oe<fe;++oe)Ee=S.getPixelForTick(oe),mt();return Q}function nc(U,S,w,Q){return t(U)?function pl(U,S,w,Q){const oe=w.parse(U[0],Q),fe=w.parse(U[1],Q),Ee=Math.min(oe,fe),it=Math.max(oe,fe);let mt=Ee,$t=it;Math.abs(Ee)>Math.abs(it)&&(mt=it,$t=Ee),S[w.axis]=$t,S._custom={barStart:mt,barEnd:$t,start:oe,end:fe,min:Ee,max:it}}(U,S,w,Q):S[w.axis]=w.parse(U,Q),S}function Mi(U,S,w,Q){const oe=U.iScale,fe=U.vScale,Ee=oe.getLabels(),it=oe===fe,mt=[];let $t,ai,Ai,ao;for($t=w,ai=w+Q;$t<ai;++$t)ao=S[$t],Ai={},Ai[oe.axis]=it||oe.parse(Ee[$t],$t),mt.push(nc(ao,Ai,fe,$t));return mt}function or(U){return U&&void 0!==U.barStart&&void 0!==U.barEnd}function Go(U,S,w,Q){let oe=S.borderSkipped;const fe={};if(!oe)return void(U.borderSkipped=fe);if(!0===oe)return void(U.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:Ee,end:it,reverse:mt,top:$t,bottom:ai}=function Ao(U){let S,w,Q,oe,fe;return U.horizontal?(S=U.base>U.x,w="left",Q="right"):(S=U.base<U.y,w="bottom",Q="top"),S?(oe="end",fe="start"):(oe="start",fe="end"),{start:w,end:Q,reverse:S,top:oe,bottom:fe}}(U);"middle"===oe&&w&&(U.enableBorderRadius=!0,(w._top||0)===Q?oe=$t:(w._bottom||0)===Q?oe=ai:(fe[dr(ai,Ee,it,mt)]=!0,oe=$t)),fe[dr(oe,Ee,it,mt)]=!0,U.borderSkipped=fe}function dr(U,S,w,Q){return Q?(U=function pn(U,S,w){return U===S?w:U===w?S:U}(U,S,w),U=bo(U,w,S)):U=bo(U,S,w),U}function bo(U,S,w){return"start"===U?S:"end"===U?w:U}function nt(U,{inflateAmount:S},w){U.inflateAmount="auto"===S?1===w?.33:0:S}Ts.prototype.datasetElementType=null,Ts.prototype.dataElementType=null;let Sn=(()=>{class U extends Ts{parsePrimitiveData(w,Q,oe,fe){return Mi(w,Q,oe,fe)}parseArrayData(w,Q,oe,fe){return Mi(w,Q,oe,fe)}parseObjectData(w,Q,oe,fe){const{iScale:Ee,vScale:it}=w,{xAxisKey:mt="x",yAxisKey:$t="y"}=this._parsing,ai="x"===Ee.axis?mt:$t,Ai="x"===it.axis?mt:$t,ao=[];let go,Co,Vo,nr;for(go=oe,Co=oe+fe;go<Co;++go)nr=Q[go],Vo={},Vo[Ee.axis]=Ee.parse(Y(nr,ai),go),ao.push(nc(Y(nr,Ai),Vo,it,go));return ao}updateRangeFromParsed(w,Q,oe,fe){super.updateRangeFromParsed(w,Q,oe,fe);const Ee=oe._custom;Ee&&Q===this._cachedMeta.vScale&&(w.min=Math.min(w.min,Ee.min),w.max=Math.max(w.max,Ee.max))}getMaxOverflow(){return 0}getLabelAndValue(w){const Q=this._cachedMeta,{iScale:oe,vScale:fe}=Q,Ee=this.getParsed(w),it=Ee._custom,mt=or(it)?"["+it.start+", "+it.end+"]":""+fe.getLabelForValue(Ee[fe.axis]);return{label:""+oe.getLabelForValue(Ee[oe.axis]),value:mt}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(w){const Q=this._cachedMeta;this.updateElements(Q.data,0,Q.data.length,w)}updateElements(w,Q,oe,fe){const Ee="reset"===fe,{index:it,_cachedMeta:{vScale:mt}}=this,$t=mt.getBasePixel(),ai=mt.isHorizontal(),Ai=this._getRuler(),{sharedOptions:ao,includeOptions:go}=this._getSharedOptions(Q,fe);for(let Co=Q;Co<Q+oe;Co++){const Vo=this.getParsed(Co),nr=Ee||i(Vo[mt.axis])?{base:$t,head:$t}:this._calculateBarValuePixels(Co),mr=this._calculateBarIndexPixels(Co,Ai),Br=(Vo._stacks||{})[mt.axis],wr={horizontal:ai,base:nr.base,enableBorderRadius:!Br||or(Vo._custom)||it===Br._top||it===Br._bottom,x:ai?nr.head:mr.center,y:ai?mr.center:nr.head,height:ai?mr.size:Math.abs(nr.size),width:ai?Math.abs(nr.size):mr.size};go&&(wr.options=ao||this.resolveDataElementOptions(Co,w[Co].active?"active":fe));const Jr=wr.options||w[Co].options;Go(wr,Jr,Br,it),nt(wr,Jr,Ai.ratio),this.updateElement(w[Co],Co,wr,fe)}}_getStacks(w,Q){const{iScale:oe}=this._cachedMeta,fe=oe.getMatchingVisibleMetas(this._type).filter($t=>$t.controller.options.grouped),Ee=oe.options.stacked,it=[],mt=$t=>{const ai=$t.controller.getParsed(Q),Ai=ai&&ai[$t.vScale.axis];if(i(Ai)||isNaN(Ai))return!0};for(const $t of fe)if((void 0===Q||!mt($t))&&((!1===Ee||-1===it.indexOf($t.stack)||void 0===Ee&&void 0===$t.stack)&&it.push($t.stack),$t.index===w))break;return it.length||it.push(void 0),it}_getStackCount(w){return this._getStacks(void 0,w).length}_getStackIndex(w,Q,oe){const fe=this._getStacks(w,oe),Ee=void 0!==Q?fe.indexOf(Q):-1;return-1===Ee?fe.length-1:Ee}_getRuler(){const w=this.options,Q=this._cachedMeta,oe=Q.iScale,fe=[];let Ee,it;for(Ee=0,it=Q.data.length;Ee<it;++Ee)fe.push(oe.getPixelForValue(this.getParsed(Ee)[oe.axis],Ee));const mt=w.barThickness;return{min:mt||ul(Q),pixels:fe,start:oe._startPixel,end:oe._endPixel,stackCount:this._getStackCount(),scale:oe,grouped:w.grouped,ratio:mt?1:w.categoryPercentage*w.barPercentage}}_calculateBarValuePixels(w){const{_cachedMeta:{vScale:Q,_stacked:oe},options:{base:fe,minBarLength:Ee}}=this,it=fe||0,mt=this.getParsed(w),$t=mt._custom,ai=or($t);let Co,Vo,Ai=mt[Q.axis],ao=0,go=oe?this.applyStack(Q,mt,oe):Ai;go!==Ai&&(ao=go-Ai,go=Ai),ai&&(Ai=$t.barStart,go=$t.barEnd-$t.barStart,0!==Ai&&Et(Ai)!==Et($t.barEnd)&&(ao=0),ao+=Ai);const nr=i(fe)||ai?ao:fe;let mr=Q.getPixelForValue(nr);if(Co=this.chart.getDataVisibility(w)?Q.getPixelForValue(ao+go):mr,Vo=Co-mr,Math.abs(Vo)<Ee){Vo=function Ki(U,S,w){return 0!==U?Et(U):(S.isHorizontal()?1:-1)*(S.min>=w?1:-1)}(Vo,Q,it)*Ee,Ai===it&&(mr-=Vo/2);const Br=Q.getPixelForDecimal(0),wr=Q.getPixelForDecimal(1),Jr=Math.min(Br,wr),ir=Math.max(Br,wr);mr=Math.max(Math.min(mr,ir),Jr),Co=mr+Vo}if(mr===Q.getPixelForValue(it)){const Br=Et(Vo)*Q.getLineWidthForValue(it)/2;mr+=Br,Vo-=Br}return{size:Vo,base:mr,head:Co,center:Co+Vo/2}}_calculateBarIndexPixels(w,Q){const oe=Q.scale,fe=this.options,Ee=fe.skipNull,it=x(fe.maxBarThickness,1/0);let mt,$t;if(Q.grouped){const ai=Ee?this._getStackCount(w):Q.stackCount,Ai="flex"===fe.barThickness?function Ks(U,S,w,Q){const oe=S.pixels,fe=oe[U];let Ee=U>0?oe[U-1]:null,it=U<oe.length-1?oe[U+1]:null;const mt=w.categoryPercentage;null===Ee&&(Ee=fe-(null===it?S.end-S.start:it-fe)),null===it&&(it=fe+fe-Ee);const $t=fe-(fe-Math.min(Ee,it))/2*mt;return{chunk:Math.abs(it-Ee)/2*mt/Q,ratio:w.barPercentage,start:$t}}(w,Q,fe,ai):function qs(U,S,w,Q){const oe=w.barThickness;let fe,Ee;return i(oe)?(fe=S.min*w.categoryPercentage,Ee=w.barPercentage):(fe=oe*Q,Ee=1),{chunk:fe/Q,ratio:Ee,start:S.pixels[U]-fe/2}}(w,Q,fe,ai),ao=this._getStackIndex(this.index,this._cachedMeta.stack,Ee?w:void 0);mt=Ai.start+Ai.chunk*ao+Ai.chunk/2,$t=Math.min(it,Ai.chunk*Ai.ratio)}else mt=oe.getPixelForValue(this.getParsed(w)[oe.axis],w),$t=Math.min(it,Q.min*Q.ratio);return{base:mt-$t/2,head:mt+$t/2,center:mt,size:$t}}draw(){const w=this._cachedMeta,Q=w.vScale,oe=w.data,fe=oe.length;let Ee=0;for(;Ee<fe;++Ee)null!==this.getParsed(Ee)[Q.axis]&&oe[Ee].draw(this._ctx)}}return U.id="bar",U.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},U.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}},U})(),fi=(()=>{class U extends Ts{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(w,Q,oe,fe){const Ee=super.parsePrimitiveData(w,Q,oe,fe);for(let it=0;it<Ee.length;it++)Ee[it]._custom=this.resolveDataElementOptions(it+oe).radius;return Ee}parseArrayData(w,Q,oe,fe){const Ee=super.parseArrayData(w,Q,oe,fe);for(let it=0;it<Ee.length;it++)Ee[it]._custom=x(Q[oe+it][2],this.resolveDataElementOptions(it+oe).radius);return Ee}parseObjectData(w,Q,oe,fe){const Ee=super.parseObjectData(w,Q,oe,fe);for(let it=0;it<Ee.length;it++){const mt=Q[oe+it];Ee[it]._custom=x(mt&&mt.r&&+mt.r,this.resolveDataElementOptions(it+oe).radius)}return Ee}getMaxOverflow(){const w=this._cachedMeta.data;let Q=0;for(let oe=w.length-1;oe>=0;--oe)Q=Math.max(Q,w[oe].size(this.resolveDataElementOptions(oe))/2);return Q>0&&Q}getLabelAndValue(w){const Q=this._cachedMeta,{xScale:oe,yScale:fe}=Q,Ee=this.getParsed(w),it=oe.getLabelForValue(Ee.x),mt=fe.getLabelForValue(Ee.y),$t=Ee._custom;return{label:Q.label,value:"("+it+", "+mt+($t?", "+$t:"")+")"}}update(w){const Q=this._cachedMeta.data;this.updateElements(Q,0,Q.length,w)}updateElements(w,Q,oe,fe){const Ee="reset"===fe,{iScale:it,vScale:mt}=this._cachedMeta,{sharedOptions:$t,includeOptions:ai}=this._getSharedOptions(Q,fe),Ai=it.axis,ao=mt.axis;for(let go=Q;go<Q+oe;go++){const Co=w[go],Vo=!Ee&&this.getParsed(go),nr={},mr=nr[Ai]=Ee?it.getPixelForDecimal(.5):it.getPixelForValue(Vo[Ai]),Br=nr[ao]=Ee?mt.getBasePixel():mt.getPixelForValue(Vo[ao]);nr.skip=isNaN(mr)||isNaN(Br),ai&&(nr.options=$t||this.resolveDataElementOptions(go,Co.active?"active":fe),Ee&&(nr.options.radius=0)),this.updateElement(Co,go,nr,fe)}}resolveDataElementOptions(w,Q){const oe=this.getParsed(w);let fe=super.resolveDataElementOptions(w,Q);fe.$shared&&(fe=Object.assign({},fe,{$shared:!1}));const Ee=fe.radius;return"active"!==Q&&(fe.radius=0),fe.radius+=x(oe&&oe._custom,Ee),fe}}return U.id="bubble",U.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},U.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}},U})(),No=(()=>{class U extends Ts{constructor(w,Q){super(w,Q),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(w,Q){const oe=this.getDataset().data,fe=this._cachedMeta;if(!1===this._parsing)fe._parsed=oe;else{let it,mt,Ee=$t=>+oe[$t];if(p(oe[w])){const{key:$t="value"}=this._parsing;Ee=ai=>+Y(oe[ai],$t)}for(it=w,mt=w+Q;it<mt;++it)fe._parsed[it]=Ee(it)}}_getRotation(){return ye(this.options.rotation-90)}_getCircumference(){return ye(this.options.circumference)}_getRotationExtents(){let w=Le,Q=-Le;for(let oe=0;oe<this.chart.data.datasets.length;++oe)if(this.chart.isDatasetVisible(oe)){const fe=this.chart.getDatasetMeta(oe).controller,Ee=fe._getRotation(),it=fe._getCircumference();w=Math.min(w,Ee),Q=Math.max(Q,Ee+it)}return{rotation:w,circumference:Q-w}}update(w){const Q=this.chart,{chartArea:oe}=Q,fe=this._cachedMeta,Ee=fe.data,it=this.getMaxBorderWidth()+this.getMaxOffset(Ee)+this.options.spacing,mt=Math.max((Math.min(oe.width,oe.height)-it)/2,0),$t=Math.min(((U,S)=>"string"==typeof U&&U.endsWith("%")?parseFloat(U)/100:U/S)(this.options.cutout,mt),1),ai=this._getRingWeight(this.index),{circumference:Ai,rotation:ao}=this._getRotationExtents(),{ratioX:go,ratioY:Co,offsetX:Vo,offsetY:nr}=function $i(U,S,w){let Q=1,oe=1,fe=0,Ee=0;if(S<Le){const it=U,mt=it+S,$t=Math.cos(it),ai=Math.sin(it),Ai=Math.cos(mt),ao=Math.sin(mt),go=(wr,Jr,ir)=>Je(wr,it,mt,!0)?1:Math.max(Jr,Jr*w,ir,ir*w),Co=(wr,Jr,ir)=>Je(wr,it,mt,!0)?-1:Math.min(Jr,Jr*w,ir,ir*w),Vo=go(0,$t,Ai),nr=go(Se,ai,ao),mr=Co(at,$t,Ai),Br=Co(at+Se,ai,ao);Q=(Vo-mr)/2,oe=(nr-Br)/2,fe=-(Vo+mr)/2,Ee=-(nr+Br)/2}return{ratioX:Q,ratioY:oe,offsetX:fe,offsetY:Ee}}(ao,Ai,$t),wr=Math.max(Math.min((oe.width-it)/go,(oe.height-it)/Co)/2,0),Jr=m(this.options.radius,wr),na=(Jr-Math.max(Jr*$t,0))/this._getVisibleDatasetWeightTotal();this.offsetX=Vo*Jr,this.offsetY=nr*Jr,fe.total=this.calculateTotal(),this.outerRadius=Jr-na*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-na*ai,0),this.updateElements(Ee,0,Ee.length,w)}_circumference(w,Q){const oe=this.options,fe=this._cachedMeta,Ee=this._getCircumference();return Q&&oe.animation.animateRotate||!this.chart.getDataVisibility(w)||null===fe._parsed[w]||fe.data[w].hidden?0:this.calculateCircumference(fe._parsed[w]*Ee/Le)}updateElements(w,Q,oe,fe){const Ee="reset"===fe,it=this.chart,mt=it.chartArea,Ai=(mt.left+mt.right)/2,ao=(mt.top+mt.bottom)/2,go=Ee&&it.options.animation.animateScale,Co=go?0:this.innerRadius,Vo=go?0:this.outerRadius,{sharedOptions:nr,includeOptions:mr}=this._getSharedOptions(Q,fe);let wr,Br=this._getRotation();for(wr=0;wr<Q;++wr)Br+=this._circumference(wr,Ee);for(wr=Q;wr<Q+oe;++wr){const Jr=this._circumference(wr,Ee),ir=w[wr],na={x:Ai+this.offsetX,y:ao+this.offsetY,startAngle:Br,endAngle:Br+Jr,circumference:Jr,outerRadius:Vo,innerRadius:Co};mr&&(na.options=nr||this.resolveDataElementOptions(wr,ir.active?"active":fe)),Br+=Jr,this.updateElement(ir,wr,na,fe)}}calculateTotal(){const w=this._cachedMeta,Q=w.data;let fe,oe=0;for(fe=0;fe<Q.length;fe++){const Ee=w._parsed[fe];null!==Ee&&!isNaN(Ee)&&this.chart.getDataVisibility(fe)&&!Q[fe].hidden&&(oe+=Math.abs(Ee))}return oe}calculateCircumference(w){const Q=this._cachedMeta.total;return Q>0&&!isNaN(w)?Le*(Math.abs(w)/Q):0}getLabelAndValue(w){const oe=this.chart,fe=oe.data.labels||[],Ee=os(this._cachedMeta._parsed[w],oe.options.locale);return{label:fe[w]||"",value:Ee}}getMaxBorderWidth(w){let Q=0;const oe=this.chart;let fe,Ee,it,mt,$t;if(!w)for(fe=0,Ee=oe.data.datasets.length;fe<Ee;++fe)if(oe.isDatasetVisible(fe)){it=oe.getDatasetMeta(fe),w=it.data,mt=it.controller;break}if(!w)return 0;for(fe=0,Ee=w.length;fe<Ee;++fe)$t=mt.resolveDataElementOptions(fe),"inner"!==$t.borderAlign&&(Q=Math.max(Q,$t.borderWidth||0,$t.hoverBorderWidth||0));return Q}getMaxOffset(w){let Q=0;for(let oe=0,fe=w.length;oe<fe;++oe){const Ee=this.resolveDataElementOptions(oe);Q=Math.max(Q,Ee.offset||0,Ee.hoverOffset||0)}return Q}_getRingWeightOffset(w){let Q=0;for(let oe=0;oe<w;++oe)this.chart.isDatasetVisible(oe)&&(Q+=this._getRingWeight(oe));return Q}_getRingWeight(w){return Math.max(x(this.chart.data.datasets[w].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}return U.id="doughnut",U.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},U.descriptors={_scriptable:S=>"spacing"!==S,_indexable:S=>"spacing"!==S},U.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(S){const w=S.data;if(w.labels.length&&w.datasets.length){const{labels:{pointStyle:Q}}=S.legend.options;return w.labels.map((oe,fe)=>{const it=S.getDatasetMeta(0).controller.getStyle(fe);return{text:oe,fillStyle:it.backgroundColor,strokeStyle:it.borderColor,lineWidth:it.borderWidth,pointStyle:Q,hidden:!S.getDataVisibility(fe),index:fe}})}return[]}},onClick(S,w,Q){Q.chart.toggleDataVisibility(w.index),Q.chart.update()}},tooltip:{callbacks:{title:()=>"",label(S){let w=S.label;const Q=": "+S.formattedValue;return t(w)?(w=w.slice(),w[0]+=Q):w+=Q,w}}}}},U})(),Ar=(()=>{class U extends Ts{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(w){const Q=this._cachedMeta,{dataset:oe,data:fe=[],_dataset:Ee}=Q,it=this.chart._animationsDisabled;let{start:mt,count:$t}=_i(Q,fe,it);this._drawStart=mt,this._drawCount=$t,En(Q)&&(mt=0,$t=fe.length),oe._chart=this.chart,oe._datasetIndex=this.index,oe._decimated=!!Ee._decimated,oe.points=fe;const ai=this.resolveDatasetElementOptions(w);this.options.showLine||(ai.borderWidth=0),ai.segment=this.options.segment,this.updateElement(oe,void 0,{animated:!it,options:ai},w),this.updateElements(fe,mt,$t,w)}updateElements(w,Q,oe,fe){const Ee="reset"===fe,{iScale:it,vScale:mt,_stacked:$t,_dataset:ai}=this._cachedMeta,{sharedOptions:Ai,includeOptions:ao}=this._getSharedOptions(Q,fe),go=it.axis,Co=mt.axis,{spanGaps:Vo,segment:nr}=this.options,mr=r(Vo)?Vo:Number.POSITIVE_INFINITY,Br=this.chart._animationsDisabled||Ee||"none"===fe;let wr=Q>0&&this.getParsed(Q-1);for(let Jr=Q;Jr<Q+oe;++Jr){const ir=w[Jr],na=this.getParsed(Jr),Ea=Br?ir:{},gs=i(na[Co]),Gr=Ea[go]=it.getPixelForValue(na[go],Jr),Bl=Ea[Co]=Ee||gs?mt.getBasePixel():mt.getPixelForValue($t?this.applyStack(mt,na,$t):na[Co],Jr);Ea.skip=isNaN(Gr)||isNaN(Bl)||gs,Ea.stop=Jr>0&&Math.abs(na[go]-wr[go])>mr,nr&&(Ea.parsed=na,Ea.raw=ai.data[Jr]),ao&&(Ea.options=Ai||this.resolveDataElementOptions(Jr,ir.active?"active":fe)),Br||this.updateElement(ir,Jr,Ea,fe),wr=na}}getMaxOverflow(){const w=this._cachedMeta,Q=w.dataset,oe=Q.options&&Q.options.borderWidth||0,fe=w.data||[];if(!fe.length)return oe;const Ee=fe[0].size(this.resolveDataElementOptions(0)),it=fe[fe.length-1].size(this.resolveDataElementOptions(fe.length-1));return Math.max(oe,Ee,it)/2}draw(){const w=this._cachedMeta;w.dataset.updateControlPoints(this.chart.chartArea,w.iScale.axis),super.draw()}}return U.id="line",U.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},U.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}},U})(),xr=(()=>{class U extends Ts{constructor(w,Q){super(w,Q),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(w){const oe=this.chart,fe=oe.data.labels||[],Ee=os(this._cachedMeta._parsed[w].r,oe.options.locale);return{label:fe[w]||"",value:Ee}}parseObjectData(w,Q,oe,fe){return cs.bind(this)(w,Q,oe,fe)}update(w){const Q=this._cachedMeta.data;this._updateRadius(),this.updateElements(Q,0,Q.length,w)}getMinMax(){const Q={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return this._cachedMeta.data.forEach((oe,fe)=>{const Ee=this.getParsed(fe).r;!isNaN(Ee)&&this.chart.getDataVisibility(fe)&&(Ee<Q.min&&(Q.min=Ee),Ee>Q.max&&(Q.max=Ee))}),Q}_updateRadius(){const w=this.chart,Q=w.chartArea,oe=w.options,fe=Math.min(Q.right-Q.left,Q.bottom-Q.top),Ee=Math.max(fe/2,0),mt=(Ee-Math.max(oe.cutoutPercentage?Ee/100*oe.cutoutPercentage:1,0))/w.getVisibleDatasetCount();this.outerRadius=Ee-mt*this.index,this.innerRadius=this.outerRadius-mt}updateElements(w,Q,oe,fe){const Ee="reset"===fe,it=this.chart,$t=it.options.animation,ai=this._cachedMeta.rScale,Ai=ai.xCenter,ao=ai.yCenter,go=ai.getIndexAngle(0)-.5*at;let Vo,Co=go;const nr=360/this.countVisibleElements();for(Vo=0;Vo<Q;++Vo)Co+=this._computeAngle(Vo,fe,nr);for(Vo=Q;Vo<Q+oe;Vo++){const mr=w[Vo];let Br=Co,wr=Co+this._computeAngle(Vo,fe,nr),Jr=it.getDataVisibility(Vo)?ai.getDistanceFromCenterForValue(this.getParsed(Vo).r):0;Co=wr,Ee&&($t.animateScale&&(Jr=0),$t.animateRotate&&(Br=wr=go));const ir={x:Ai,y:ao,innerRadius:0,outerRadius:Jr,startAngle:Br,endAngle:wr,options:this.resolveDataElementOptions(Vo,mr.active?"active":fe)};this.updateElement(mr,Vo,ir,fe)}}countVisibleElements(){let Q=0;return this._cachedMeta.data.forEach((oe,fe)=>{!isNaN(this.getParsed(fe).r)&&this.chart.getDataVisibility(fe)&&Q++}),Q}_computeAngle(w,Q,oe){return this.chart.getDataVisibility(w)?ye(this.resolveDataElementOptions(w,Q).angle||oe):0}}return U.id="polarArea",U.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},U.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(S){const w=S.data;if(w.labels.length&&w.datasets.length){const{labels:{pointStyle:Q}}=S.legend.options;return w.labels.map((oe,fe)=>{const it=S.getDatasetMeta(0).controller.getStyle(fe);return{text:oe,fillStyle:it.backgroundColor,strokeStyle:it.borderColor,lineWidth:it.borderWidth,pointStyle:Q,hidden:!S.getDataVisibility(fe),index:fe}})}return[]}},onClick(S,w,Q){Q.chart.toggleDataVisibility(w.index),Q.chart.update()}},tooltip:{callbacks:{title:()=>"",label:S=>S.chart.data.labels[S.dataIndex]+": "+S.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}},U})(),Sr=(()=>{class U extends No{}return U.id="pie",U.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"},U})(),ns=(()=>{class U extends Ts{getLabelAndValue(w){const Q=this._cachedMeta.vScale,oe=this.getParsed(w);return{label:Q.getLabels()[w],value:""+Q.getLabelForValue(oe[Q.axis])}}parseObjectData(w,Q,oe,fe){return cs.bind(this)(w,Q,oe,fe)}update(w){const Q=this._cachedMeta,oe=Q.dataset,fe=Q.data||[],Ee=Q.iScale.getLabels();if(oe.points=fe,"resize"!==w){const it=this.resolveDatasetElementOptions(w);this.options.showLine||(it.borderWidth=0),this.updateElement(oe,void 0,{_loop:!0,_fullLoop:Ee.length===fe.length,options:it},w)}this.updateElements(fe,0,fe.length,w)}updateElements(w,Q,oe,fe){const Ee=this._cachedMeta.rScale,it="reset"===fe;for(let mt=Q;mt<Q+oe;mt++){const $t=w[mt],ai=this.resolveDataElementOptions(mt,$t.active?"active":fe),Ai=Ee.getPointPositionForValue(mt,this.getParsed(mt).r),ao=it?Ee.xCenter:Ai.x,go=it?Ee.yCenter:Ai.y,Co={x:ao,y:go,angle:Ai.angle,skip:isNaN(ao)||isNaN(go),options:ai};this.updateElement($t,mt,Co,fe)}}}return U.id="radar",U.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},U.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}},U})();class Tl{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(S){const{x:w,y:Q}=this.getProps(["x","y"],S);return{x:w,y:Q}}hasValue(){return r(this.x)&&r(this.y)}getProps(S,w){const Q=this.$animations;if(!w||!Q)return this;const oe={};return S.forEach(fe=>{oe[fe]=Q[fe]&&Q[fe].active()?Q[fe]._to:this[fe]}),oe}}Tl.defaults={},Tl.defaultRoutes=void 0;const Fs={values:U=>t(U)?U:""+U,numeric(U,S,w){if(0===U)return"0";const Q=this.chart.options.locale;let oe,fe=U;if(w.length>1){const $t=Math.max(Math.abs(w[0].value),Math.abs(w[w.length-1].value));($t<1e-4||$t>1e15)&&(oe="scientific"),fe=function il(U,S){let w=S.length>3?S[2].value-S[1].value:S[1].value-S[0].value;return Math.abs(w)>=1&&U!==Math.floor(U)&&(w=U-Math.floor(U)),w}(U,w)}const Ee=et(Math.abs(fe)),it=Math.max(Math.min(-1*Math.floor(Ee),20),0),mt={notation:oe,minimumFractionDigits:it,maximumFractionDigits:it};return Object.assign(mt,this.options.ticks.format),os(U,Q,mt)},logarithmic(U,S,w){if(0===U)return"0";const Q=U/Math.pow(10,Math.floor(et(U)));return 1===Q||2===Q||5===Q?Fs.numeric.call(this,U,S,w):""}};var ac={formatters:Fs};function tm(U,S,w,Q,oe){const fe=x(Q,0),Ee=Math.min(x(oe,U.length),U.length);let mt,$t,ai,it=0;for(w=Math.ceil(w),oe&&(mt=oe-Q,w=mt/Math.floor(mt/w)),ai=fe;ai<0;)it++,ai=Math.round(fe+it*w);for($t=Math.max(fe,0);$t<Ee;$t++)$t===ai&&(S.push(U[$t]),it++,ai=Math.round(fe+it*w))}xi.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(U,S)=>S.lineWidth,tickColor:(U,S)=>S.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:ac.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),xi.route("scale.ticks","color","","color"),xi.route("scale.grid","color","","borderColor"),xi.route("scale.grid","borderColor","","borderColor"),xi.route("scale.title","color","","color"),xi.describe("scale",{_fallback:!1,_scriptable:U=>!U.startsWith("before")&&!U.startsWith("after")&&"callback"!==U&&"parser"!==U,_indexable:U=>"borderDash"!==U&&"tickBorderDash"!==U}),xi.describe("scales",{_fallback:"scale"}),xi.describe("scale.ticks",{_scriptable:U=>"backdropPadding"!==U&&"callback"!==U,_indexable:U=>"backdropPadding"!==U});const _c=(U,S,w)=>"top"===S||"left"===S?U[S]+w:U[S]-w;function wc(U,S){const w=[],Q=U.length/S,oe=U.length;let fe=0;for(;fe<oe;fe+=Q)w.push(U[Math.floor(fe)]);return w}function nm(U,S,w){const Q=U.ticks.length,oe=Math.min(S,Q-1),fe=U._startPixel,Ee=U._endPixel;let $t,mt=U.getPixelForTick(oe);if(!(w&&($t=1===Q?Math.max(mt-fe,Ee-mt):0===S?(U.getPixelForTick(1)-mt)/2:(mt-U.getPixelForTick(oe-1))/2,mt+=oe<S?$t:-$t,mt<fe-1e-6||mt>Ee+1e-6)))return mt}function Ns(U){return U.drawTicks?U.tickLength:0}function Uc(U,S){if(!U.display)return 0;const w=To(U.font,S),Q=Qi(U.padding);return(t(U.text)?U.text.length:1)*w.lineHeight+Q.height}function mn(U,S,w){let Q=Li(U);return(w&&"right"!==S||!w&&"right"===S)&&(Q=(U=>"left"===U?"right":"right"===U?"left":U)(Q)),Q}class Ci extends Tl{constructor(S){super(),this.id=S.id,this.type=S.type,this.options=void 0,this.ctx=S.ctx,this.chart=S.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(S){this.options=S.setContext(this.getContext()),this.axis=S.axis,this._userMin=this.parse(S.min),this._userMax=this.parse(S.max),this._suggestedMin=this.parse(S.suggestedMin),this._suggestedMax=this.parse(S.suggestedMax)}parse(S,w){return S}getUserBounds(){let{_userMin:S,_userMax:w,_suggestedMin:Q,_suggestedMax:oe}=this;return S=o(S,Number.POSITIVE_INFINITY),w=o(w,Number.NEGATIVE_INFINITY),Q=o(Q,Number.POSITIVE_INFINITY),oe=o(oe,Number.NEGATIVE_INFINITY),{min:o(S,Q),max:o(w,oe),minDefined:c(S),maxDefined:c(w)}}getMinMax(S){let Ee,{min:w,max:Q,minDefined:oe,maxDefined:fe}=this.getUserBounds();if(oe&&fe)return{min:w,max:Q};const it=this.getMatchingVisibleMetas();for(let mt=0,$t=it.length;mt<$t;++mt)Ee=it[mt].controller.getMinMax(this,S),oe||(w=Math.min(w,Ee.min)),fe||(Q=Math.max(Q,Ee.max));return w=fe&&w>Q?Q:w,Q=oe&&w>Q?w:Q,{min:o(w,o(Q,w)),max:o(Q,o(w,Q))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const S=this.chart.data;return this.options.labels||(this.isHorizontal()?S.xLabels:S.yLabels)||S.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){b(this.options.beforeUpdate,[this])}update(S,w,Q){const{beginAtZero:oe,grace:fe,ticks:Ee}=this.options,it=Ee.sampleSize;this.beforeUpdate(),this.maxWidth=S,this.maxHeight=w,this._margins=Q=Object.assign({left:0,right:0,top:0,bottom:0},Q),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+Q.left+Q.right:this.height+Q.top+Q.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function oi(U,S,w){const{min:Q,max:oe}=U,fe=m(S,(oe-Q)/2),Ee=(it,mt)=>w&&0===it?0:it+mt;return{min:Ee(Q,-Math.abs(fe)),max:Ee(oe,fe)}}(this,fe,oe),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const mt=it<this.ticks.length;this._convertTicksToLabels(mt?wc(this.ticks,it):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),Ee.display&&(Ee.autoSkip||"auto"===Ee.source)&&(this.ticks=function Nl(U,S){const w=U.options.ticks,Q=w.maxTicksLimit||function em(U){const S=U.options.offset,w=U._tickSize();return Math.floor(Math.min(U._length/w+(S?0:1),U._maxLength/w))}(U),oe=w.major.enabled?function xl(U){const S=[];let w,Q;for(w=0,Q=U.length;w<Q;w++)U[w].major&&S.push(w);return S}(S):[],fe=oe.length,Ee=oe[0],it=oe[fe-1],mt=[];if(fe>Q)return function ll(U,S,w,Q){let Ee,oe=0,fe=w[0];for(Q=Math.ceil(Q),Ee=0;Ee<U.length;Ee++)Ee===fe&&(S.push(U[Ee]),oe++,fe=w[oe*Q])}(S,mt,oe,fe/Q),mt;const $t=function Kl(U,S,w){const Q=function Nc(U){const S=U.length;let w,Q;if(S<2)return!1;for(Q=U[0],w=1;w<S;++w)if(U[w]-U[w-1]!==Q)return!1;return Q}(U),oe=S.length/w;if(!Q)return Math.max(oe,1);const fe=function Vt(U){const S=[],w=Math.sqrt(U);let Q;for(Q=1;Q<w;Q++)U%Q==0&&(S.push(Q),S.push(U/Q));return w===(0|w)&&S.push(w),S.sort((oe,fe)=>oe-fe).pop(),S}(Q);for(let Ee=0,it=fe.length-1;Ee<it;Ee++){const mt=fe[Ee];if(mt>oe)return mt}return Math.max(oe,1)}(oe,S,Q);if(fe>0){let ai,Ai;const ao=fe>1?Math.round((it-Ee)/(fe-1)):null;for(tm(S,mt,$t,i(ao)?0:Ee-ao,Ee),ai=0,Ai=fe-1;ai<Ai;ai++)tm(S,mt,$t,oe[ai],oe[ai+1]);return tm(S,mt,$t,it,i(ao)?S.length:it+ao),mt}return tm(S,mt,$t),mt}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),mt&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let w,Q,S=this.options.reverse;this.isHorizontal()?(w=this.left,Q=this.right):(w=this.top,Q=this.bottom,S=!S),this._startPixel=w,this._endPixel=Q,this._reversePixels=S,this._length=Q-w,this._alignToPixels=this.options.alignToPixels}afterUpdate(){b(this.options.afterUpdate,[this])}beforeSetDimensions(){b(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){b(this.options.afterSetDimensions,[this])}_callHooks(S){this.chart.notifyPlugins(S,this.getContext()),b(this.options[S],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){b(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(S){const w=this.options.ticks;let Q,oe,fe;for(Q=0,oe=S.length;Q<oe;Q++)fe=S[Q],fe.label=b(w.callback,[fe.value,Q,S],this)}afterTickToLabelConversion(){b(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){b(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const S=this.options,w=S.ticks,Q=this.ticks.length,oe=w.minRotation||0,fe=w.maxRotation;let it,mt,$t,Ee=oe;if(!this._isVisible()||!w.display||oe>=fe||Q<=1||!this.isHorizontal())return void(this.labelRotation=oe);const ai=this._getLabelSizes(),Ai=ai.widest.width,ao=ai.highest.height,go=dt(this.chart.width-Ai,0,this.maxWidth);it=S.offset?this.maxWidth/Q:go/(Q-1),Ai+6>it&&(it=go/(Q-(S.offset?.5:1)),mt=this.maxHeight-Ns(S.grid)-w.padding-Uc(S.title,this.chart.options.font),$t=Math.sqrt(Ai*Ai+ao*ao),Ee=ve(Math.min(Math.asin(dt((ai.highest.height+6)/it,-1,1)),Math.asin(dt(mt/$t,-1,1))-Math.asin(dt(ao/$t,-1,1)))),Ee=Math.max(oe,Math.min(fe,Ee))),this.labelRotation=Ee}afterCalculateLabelRotation(){b(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){b(this.options.beforeFit,[this])}fit(){const S={width:0,height:0},{chart:w,options:{ticks:Q,title:oe,grid:fe}}=this,Ee=this._isVisible(),it=this.isHorizontal();if(Ee){const mt=Uc(oe,w.options.font);if(it?(S.width=this.maxWidth,S.height=Ns(fe)+mt):(S.height=this.maxHeight,S.width=Ns(fe)+mt),Q.display&&this.ticks.length){const{first:$t,last:ai,widest:Ai,highest:ao}=this._getLabelSizes(),go=2*Q.padding,Co=ye(this.labelRotation),Vo=Math.cos(Co),nr=Math.sin(Co);it?S.height=Math.min(this.maxHeight,S.height+(Q.mirror?0:nr*Ai.width+Vo*ao.height)+go):S.width=Math.min(this.maxWidth,S.width+(Q.mirror?0:Vo*Ai.width+nr*ao.height)+go),this._calculatePadding($t,ai,nr,Vo)}}this._handleMargins(),it?(this.width=this._length=w.width-this._margins.left-this._margins.right,this.height=S.height):(this.width=S.width,this.height=this._length=w.height-this._margins.top-this._margins.bottom)}_calculatePadding(S,w,Q,oe){const{ticks:{align:fe,padding:Ee},position:it}=this.options,mt=0!==this.labelRotation,$t="top"!==it&&"x"===this.axis;if(this.isHorizontal()){const ai=this.getPixelForTick(0)-this.left,Ai=this.right-this.getPixelForTick(this.ticks.length-1);let ao=0,go=0;mt?$t?(ao=oe*S.width,go=Q*w.height):(ao=Q*S.height,go=oe*w.width):"start"===fe?go=w.width:"end"===fe?ao=S.width:"inner"!==fe&&(ao=S.width/2,go=w.width/2),this.paddingLeft=Math.max((ao-ai+Ee)*this.width/(this.width-ai),0),this.paddingRight=Math.max((go-Ai+Ee)*this.width/(this.width-Ai),0)}else{let ai=w.height/2,Ai=S.height/2;"start"===fe?(ai=0,Ai=S.height):"end"===fe&&(ai=w.height,Ai=0),this.paddingTop=ai+Ee,this.paddingBottom=Ai+Ee}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){b(this.options.afterFit,[this])}isHorizontal(){const{axis:S,position:w}=this.options;return"top"===w||"bottom"===w||"x"===S}isFullSize(){return this.options.fullSize}_convertTicksToLabels(S){let w,Q;for(this.beforeTickToLabelConversion(),this.generateTickLabels(S),w=0,Q=S.length;w<Q;w++)i(S[w].label)&&(S.splice(w,1),Q--,w--);this.afterTickToLabelConversion()}_getLabelSizes(){let S=this._labelSizes;if(!S){const w=this.options.ticks.sampleSize;let Q=this.ticks;w<Q.length&&(Q=wc(Q,w)),this._labelSizes=S=this._computeLabelSizes(Q,Q.length)}return S}_computeLabelSizes(S,w){const{ctx:Q,_longestTextCache:oe}=this,fe=[],Ee=[];let $t,ai,Ai,ao,go,Co,Vo,nr,mr,Br,wr,it=0,mt=0;for($t=0;$t<w;++$t){if(ao=S[$t].label,go=this._resolveTickFontOptions($t),Q.font=Co=go.string,Vo=oe[Co]=oe[Co]||{data:{},gc:[]},nr=go.lineHeight,mr=Br=0,i(ao)||t(ao)){if(t(ao))for(ai=0,Ai=ao.length;ai<Ai;++ai)wr=ao[ai],!i(wr)&&!t(wr)&&(mr=wo(Q,Vo.data,Vo.gc,mr,wr),Br+=nr)}else mr=wo(Q,Vo.data,Vo.gc,mr,ao),Br=nr;fe.push(mr),Ee.push(Br),it=Math.max(mr,it),mt=Math.max(Br,mt)}!function Id(U,S){I(U,w=>{const Q=w.gc,oe=Q.length/2;let fe;if(oe>S){for(fe=0;fe<oe;++fe)delete w.data[Q[fe]];Q.splice(0,oe)}})}(oe,w);const Jr=fe.indexOf(it),ir=Ee.indexOf(mt),na=Ea=>({width:fe[Ea]||0,height:Ee[Ea]||0});return{first:na(0),last:na(w-1),widest:na(Jr),highest:na(ir),widths:fe,heights:Ee}}getLabelForValue(S){return S}getPixelForValue(S,w){return NaN}getValueForPixel(S){}getPixelForTick(S){const w=this.ticks;return S<0||S>w.length-1?null:this.getPixelForValue(w[S].value)}getPixelForDecimal(S){this._reversePixels&&(S=1-S);const w=this._startPixel+S*this._length;return function Ie(U){return dt(U,-32768,32767)}(this._alignToPixels?ho(this.chart,w,0):w)}getDecimalForPixel(S){const w=(S-this._startPixel)/this._length;return this._reversePixels?1-w:w}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:S,max:w}=this;return S<0&&w<0?w:S>0&&w>0?S:0}getContext(S){const w=this.ticks||[];if(S>=0&&S<w.length){const Q=w[S];return Q.$context||(Q.$context=function Mr(U,S,w){return Vi(U,{tick:w,index:S,type:"tick"})}(this.getContext(),S,Q))}return this.$context||(this.$context=function dn(U,S){return Vi(U,{scale:S,type:"scale"})}(this.chart.getContext(),this))}_tickSize(){const S=this.options.ticks,w=ye(this.labelRotation),Q=Math.abs(Math.cos(w)),oe=Math.abs(Math.sin(w)),fe=this._getLabelSizes(),Ee=S.autoSkipPadding||0,it=fe?fe.widest.width+Ee:0,mt=fe?fe.highest.height+Ee:0;return this.isHorizontal()?mt*Q>it*oe?it/Q:mt/oe:mt*oe<it*Q?mt/Q:it/oe}_isVisible(){const S=this.options.display;return"auto"!==S?!!S:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(S){const w=this.axis,Q=this.chart,oe=this.options,{grid:fe,position:Ee}=oe,it=fe.offset,mt=this.isHorizontal(),ai=this.ticks.length+(it?1:0),Ai=Ns(fe),ao=[],go=fe.setContext(this.getContext()),Co=go.drawBorder?go.borderWidth:0,Vo=Co/2,nr=function(_l){return ho(Q,_l,Co)};let mr,Br,wr,Jr,ir,na,Ea,gs,Gr,Bl,Yl,us;if("top"===Ee)mr=nr(this.bottom),na=this.bottom-Ai,gs=mr-Vo,Bl=nr(S.top)+Vo,us=S.bottom;else if("bottom"===Ee)mr=nr(this.top),Bl=S.top,us=nr(S.bottom)-Vo,na=mr+Vo,gs=this.top+Ai;else if("left"===Ee)mr=nr(this.right),ir=this.right-Ai,Ea=mr-Vo,Gr=nr(S.left)+Vo,Yl=S.right;else if("right"===Ee)mr=nr(this.left),Gr=S.left,Yl=nr(S.right)-Vo,ir=mr+Vo,Ea=this.left+Ai;else if("x"===w){if("center"===Ee)mr=nr((S.top+S.bottom)/2+.5);else if(p(Ee)){const _l=Object.keys(Ee)[0];mr=nr(this.chart.scales[_l].getPixelForValue(Ee[_l]))}Bl=S.top,us=S.bottom,na=mr+Vo,gs=na+Ai}else if("y"===w){if("center"===Ee)mr=nr((S.left+S.right)/2);else if(p(Ee)){const _l=Object.keys(Ee)[0];mr=nr(this.chart.scales[_l].getPixelForValue(Ee[_l]))}ir=mr-Vo,Ea=ir-Ai,Gr=S.left,Yl=S.right}const kd=x(oe.ticks.maxTicksLimit,ai),Cm=Math.max(1,Math.ceil(ai/kd));for(Br=0;Br<ai;Br+=Cm){const _l=fe.setContext(this.getContext(Br)),Ws=_l.lineWidth,Qc=_l.color,Wu=_l.borderDash||[],Sp=_l.borderDashOffset,tp=_l.tickWidth,sp=_l.tickColor,zu=_l.tickBorderDash||[],Hp=_l.tickBorderDashOffset;wr=nm(this,Br,it),void 0!==wr&&(Jr=ho(Q,wr,Ws),mt?ir=Ea=Gr=Yl=Jr:na=gs=Bl=us=Jr,ao.push({tx1:ir,ty1:na,tx2:Ea,ty2:gs,x1:Gr,y1:Bl,x2:Yl,y2:us,width:Ws,color:Qc,borderDash:Wu,borderDashOffset:Sp,tickWidth:tp,tickColor:sp,tickBorderDash:zu,tickBorderDashOffset:Hp}))}return this._ticksLength=ai,this._borderValue=mr,ao}_computeLabelItems(S){const w=this.axis,Q=this.options,{position:oe,ticks:fe}=Q,Ee=this.isHorizontal(),it=this.ticks,{align:mt,crossAlign:$t,padding:ai,mirror:Ai}=fe,ao=Ns(Q.grid),go=ao+ai,Co=Ai?-ai:go,Vo=-ye(this.labelRotation),nr=[];let mr,Br,wr,Jr,ir,na,Ea,gs,Gr,Bl,Yl,us,kd="middle";if("top"===oe)na=this.bottom-Co,Ea=this._getXAxisLabelAlignment();else if("bottom"===oe)na=this.top+Co,Ea=this._getXAxisLabelAlignment();else if("left"===oe){const _l=this._getYAxisLabelAlignment(ao);Ea=_l.textAlign,ir=_l.x}else if("right"===oe){const _l=this._getYAxisLabelAlignment(ao);Ea=_l.textAlign,ir=_l.x}else if("x"===w){if("center"===oe)na=(S.top+S.bottom)/2+go;else if(p(oe)){const _l=Object.keys(oe)[0];na=this.chart.scales[_l].getPixelForValue(oe[_l])+go}Ea=this._getXAxisLabelAlignment()}else if("y"===w){if("center"===oe)ir=(S.left+S.right)/2-go;else if(p(oe)){const _l=Object.keys(oe)[0];ir=this.chart.scales[_l].getPixelForValue(oe[_l])}Ea=this._getYAxisLabelAlignment(ao).textAlign}"y"===w&&("start"===mt?kd="top":"end"===mt&&(kd="bottom"));const Cm=this._getLabelSizes();for(mr=0,Br=it.length;mr<Br;++mr){wr=it[mr],Jr=wr.label;const _l=fe.setContext(this.getContext(mr));gs=this.getPixelForTick(mr)+fe.labelOffset,Gr=this._resolveTickFontOptions(mr),Bl=Gr.lineHeight,Yl=t(Jr)?Jr.length:1;const Ws=Yl/2,Qc=_l.color,Wu=_l.textStrokeColor,Sp=_l.textStrokeWidth;let sp,tp=Ea;if(Ee?(ir=gs,"inner"===Ea&&(tp=mr===Br-1?this.options.reverse?"left":"right":0===mr?this.options.reverse?"right":"left":"center"),us="top"===oe?"near"===$t||0!==Vo?-Yl*Bl+Bl/2:"center"===$t?-Cm.highest.height/2-Ws*Bl+Bl:Bl/2-Cm.highest.height:"near"===$t||0!==Vo?Bl/2:"center"===$t?Cm.highest.height/2-Ws*Bl:Cm.highest.height-Yl*Bl,Ai&&(us*=-1)):(na=gs,us=(1-Yl)*Bl/2),_l.showLabelBackdrop){const zu=Qi(_l.backdropPadding),Hp=Cm.heights[mr],i_=Cm.widths[mr];let Fp=na+us-zu.top,Vm=ir-zu.left;switch(kd){case"middle":Fp-=Hp/2;break;case"bottom":Fp-=Hp}switch(Ea){case"center":Vm-=i_/2;break;case"right":Vm-=i_}sp={left:Vm,top:Fp,width:i_+zu.width,height:Hp+zu.height,color:_l.backdropColor}}nr.push({rotation:Vo,label:Jr,font:Gr,color:Qc,strokeColor:Wu,strokeWidth:Sp,textOffset:us,textAlign:tp,textBaseline:kd,translation:[ir,na],backdrop:sp})}return nr}_getXAxisLabelAlignment(){const{position:S,ticks:w}=this.options;if(-ye(this.labelRotation))return"top"===S?"left":"right";let oe="center";return"start"===w.align?oe="left":"end"===w.align?oe="right":"inner"===w.align&&(oe="inner"),oe}_getYAxisLabelAlignment(S){const{position:w,ticks:{crossAlign:Q,mirror:oe,padding:fe}}=this.options,it=S+fe,mt=this._getLabelSizes().widest.width;let $t,ai;return"left"===w?oe?(ai=this.right+fe,"near"===Q?$t="left":"center"===Q?($t="center",ai+=mt/2):($t="right",ai+=mt)):(ai=this.right-it,"near"===Q?$t="right":"center"===Q?($t="center",ai-=mt/2):($t="left",ai=this.left)):"right"===w?oe?(ai=this.left+fe,"near"===Q?$t="right":"center"===Q?($t="center",ai-=mt/2):($t="left",ai-=mt)):(ai=this.left+it,"near"===Q?$t="left":"center"===Q?($t="center",ai+=mt/2):($t="right",ai=this.right)):$t="right",{textAlign:$t,x:ai}}_computeLabelArea(){if(this.options.ticks.mirror)return;const S=this.chart,w=this.options.position;return"left"===w||"right"===w?{top:0,left:this.left,bottom:S.height,right:this.right}:"top"===w||"bottom"===w?{top:this.top,left:0,bottom:this.bottom,right:S.width}:void 0}drawBackground(){const{ctx:S,options:{backgroundColor:w},left:Q,top:oe,width:fe,height:Ee}=this;w&&(S.save(),S.fillStyle=w,S.fillRect(Q,oe,fe,Ee),S.restore())}getLineWidthForValue(S){const w=this.options.grid;if(!this._isVisible()||!w.display)return 0;const oe=this.ticks.findIndex(fe=>fe.value===S);return oe>=0?w.setContext(this.getContext(oe)).lineWidth:0}drawGrid(S){const w=this.options.grid,Q=this.ctx,oe=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(S));let fe,Ee;const it=(mt,$t,ai)=>{!ai.width||!ai.color||(Q.save(),Q.lineWidth=ai.width,Q.strokeStyle=ai.color,Q.setLineDash(ai.borderDash||[]),Q.lineDashOffset=ai.borderDashOffset,Q.beginPath(),Q.moveTo(mt.x,mt.y),Q.lineTo($t.x,$t.y),Q.stroke(),Q.restore())};if(w.display)for(fe=0,Ee=oe.length;fe<Ee;++fe){const mt=oe[fe];w.drawOnChartArea&&it({x:mt.x1,y:mt.y1},{x:mt.x2,y:mt.y2},mt),w.drawTicks&&it({x:mt.tx1,y:mt.ty1},{x:mt.tx2,y:mt.ty2},{color:mt.tickColor,width:mt.tickWidth,borderDash:mt.tickBorderDash,borderDashOffset:mt.tickBorderDashOffset})}}drawBorder(){const{chart:S,ctx:w,options:{grid:Q}}=this,oe=Q.setContext(this.getContext()),fe=Q.drawBorder?oe.borderWidth:0;if(!fe)return;const Ee=Q.setContext(this.getContext(0)).lineWidth,it=this._borderValue;let mt,$t,ai,Ai;this.isHorizontal()?(mt=ho(S,this.left,fe)-fe/2,$t=ho(S,this.right,Ee)+Ee/2,ai=Ai=it):(ai=ho(S,this.top,fe)-fe/2,Ai=ho(S,this.bottom,Ee)+Ee/2,mt=$t=it),w.save(),w.lineWidth=oe.borderWidth,w.strokeStyle=oe.borderColor,w.beginPath(),w.moveTo(mt,ai),w.lineTo($t,Ai),w.stroke(),w.restore()}drawLabels(S){if(!this.options.ticks.display)return;const Q=this.ctx,oe=this._computeLabelArea();oe&&ss(Q,oe);const fe=this._labelItems||(this._labelItems=this._computeLabelItems(S));let Ee,it;for(Ee=0,it=fe.length;Ee<it;++Ee){const mt=fe[Ee],$t=mt.font,ai=mt.label;mt.backdrop&&(Q.fillStyle=mt.backdrop.color,Q.fillRect(mt.backdrop.left,mt.backdrop.top,mt.backdrop.width,mt.backdrop.height)),ja(Q,ai,0,mt.textOffset,$t,mt)}oe&&Hs(Q)}drawTitle(){const{ctx:S,options:{position:w,title:Q,reverse:oe}}=this;if(!Q.display)return;const fe=To(Q.font),Ee=Qi(Q.padding),it=Q.align;let mt=fe.lineHeight/2;"bottom"===w||"center"===w||p(w)?(mt+=Ee.bottom,t(Q.text)&&(mt+=fe.lineHeight*(Q.text.length-1))):mt+=Ee.top;const{titleX:$t,titleY:ai,maxWidth:Ai,rotation:ao}=function Nn(U,S,w,Q){const{top:oe,left:fe,bottom:Ee,right:it,chart:mt}=U,{chartArea:$t,scales:ai}=mt;let ao,go,Co,Ai=0;const Vo=Ee-oe,nr=it-fe;if(U.isHorizontal()){if(go=ji(Q,fe,it),p(w)){const mr=Object.keys(w)[0];Co=ai[mr].getPixelForValue(w[mr])+Vo-S}else Co="center"===w?($t.bottom+$t.top)/2+Vo-S:_c(U,w,S);ao=it-fe}else{if(p(w)){const mr=Object.keys(w)[0];go=ai[mr].getPixelForValue(w[mr])-nr+S}else go="center"===w?($t.left+$t.right)/2-nr+S:_c(U,w,S);Co=ji(Q,Ee,oe),Ai="left"===w?-Se:Se}return{titleX:go,titleY:Co,maxWidth:ao,rotation:Ai}}(this,mt,w,it);ja(S,Q.text,0,0,fe,{color:Q.color,maxWidth:Ai,rotation:ao,textAlign:mn(it,w,oe),textBaseline:"middle",translation:[$t,ai]})}draw(S){this._isVisible()&&(this.drawBackground(),this.drawGrid(S),this.drawBorder(),this.drawTitle(),this.drawLabels(S))}_layers(){const S=this.options,w=S.ticks&&S.ticks.z||0,Q=x(S.grid&&S.grid.z,-1);return this._isVisible()&&this.draw===Ci.prototype.draw?[{z:Q,draw:oe=>{this.drawBackground(),this.drawGrid(oe),this.drawTitle()}},{z:Q+1,draw:()=>{this.drawBorder()}},{z:w,draw:oe=>{this.drawLabels(oe)}}]:[{z:w,draw:oe=>{this.draw(oe)}}]}getMatchingVisibleMetas(S){const w=this.chart.getSortedVisibleDatasetMetas(),Q=this.axis+"AxisID",oe=[];let fe,Ee;for(fe=0,Ee=w.length;fe<Ee;++fe){const it=w[fe];it[Q]===this.id&&(!S||it.type===S)&&oe.push(it)}return oe}_resolveTickFontOptions(S){return To(this.options.ticks.setContext(this.getContext(S)).font)}_maxDigits(){const S=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/S}}class Io{constructor(S,w,Q){this.type=S,this.scope=w,this.override=Q,this.items=Object.create(null)}isForType(S){return Object.prototype.isPrototypeOf.call(this.type.prototype,S.prototype)}register(S){const w=Object.getPrototypeOf(S);let Q;(function $a(U){return"id"in U&&"defaults"in U})(w)&&(Q=this.register(w));const oe=this.items,fe=S.id,Ee=this.scope+"."+fe;if(!fe)throw new Error("class does not have id: "+S);return fe in oe||(oe[fe]=S,function cr(U,S,w){const Q=B(Object.create(null),[w?xi.get(w):{},xi.get(S),U.defaults]);xi.set(S,Q),U.defaultRoutes&&function ra(U,S){Object.keys(S).forEach(w=>{const Q=w.split("."),oe=Q.pop(),fe=[U].concat(Q).join("."),Ee=S[w].split("."),it=Ee.pop(),mt=Ee.join(".");xi.route(fe,oe,mt,it)})}(S,U.defaultRoutes),U.descriptors&&xi.describe(S,U.descriptors)}(S,Ee,Q),this.override&&xi.override(S.id,S.overrides)),Ee}get(S){return this.items[S]}unregister(S){const w=this.items,Q=S.id,oe=this.scope;Q in w&&delete w[Q],oe&&Q in xi[oe]&&(delete xi[oe][Q],this.override&&delete In[Q])}}var h=new class xe{constructor(){this.controllers=new Io(Ts,"datasets",!0),this.elements=new Io(Tl,"elements"),this.plugins=new Io(Object,"plugins"),this.scales=new Io(Ci,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...S){this._each("register",S)}remove(...S){this._each("unregister",S)}addControllers(...S){this._each("register",S,this.controllers)}addElements(...S){this._each("register",S,this.elements)}addPlugins(...S){this._each("register",S,this.plugins)}addScales(...S){this._each("register",S,this.scales)}getController(S){return this._get(S,this.controllers,"controller")}getElement(S){return this._get(S,this.elements,"element")}getPlugin(S){return this._get(S,this.plugins,"plugin")}getScale(S){return this._get(S,this.scales,"scale")}removeControllers(...S){this._each("unregister",S,this.controllers)}removeElements(...S){this._each("unregister",S,this.elements)}removePlugins(...S){this._each("unregister",S,this.plugins)}removeScales(...S){this._each("unregister",S,this.scales)}_each(S,w,Q){[...w].forEach(oe=>{const fe=Q||this._getRegistryForType(oe);Q||fe.isForType(oe)||fe===this.plugins&&oe.id?this._exec(S,fe,oe):I(oe,Ee=>{const it=Q||this._getRegistryForType(Ee);this._exec(S,it,Ee)})})}_exec(S,w,Q){const oe=ee(S);b(Q["before"+oe],[],Q),w[S](Q),b(Q["after"+oe],[],Q)}_getRegistryForType(S){for(let w=0;w<this._typedRegistries.length;w++){const Q=this._typedRegistries[w];if(Q.isForType(S))return Q}return this.plugins}_get(S,w,Q){const oe=w.get(S);if(void 0===oe)throw new Error('"'+S+'" is not a registered '+Q+".");return oe}},se=Object.freeze({__proto__:null,BarController:Sn,BubbleController:fi,DoughnutController:No,LineController:Ar,PolarAreaController:xr,PieController:Sr,RadarController:ns,ScatterController:(()=>{class U extends Ts{update(w){const Q=this._cachedMeta,{data:oe=[]}=Q,fe=this.chart._animationsDisabled;let{start:Ee,count:it}=_i(Q,oe,fe);if(this._drawStart=Ee,this._drawCount=it,En(Q)&&(Ee=0,it=oe.length),this.options.showLine){const{dataset:mt,_dataset:$t}=Q;mt._chart=this.chart,mt._datasetIndex=this.index,mt._decimated=!!$t._decimated,mt.points=oe;const ai=this.resolveDatasetElementOptions(w);ai.segment=this.options.segment,this.updateElement(mt,void 0,{animated:!fe,options:ai},w)}this.updateElements(oe,Ee,it,w)}addElements(){const{showLine:w}=this.options;!this.datasetElementType&&w&&(this.datasetElementType=h.getElement("line")),super.addElements()}updateElements(w,Q,oe,fe){const Ee="reset"===fe,{iScale:it,vScale:mt,_stacked:$t,_dataset:ai}=this._cachedMeta,Ai=this.resolveDataElementOptions(Q,fe),ao=this.getSharedOptions(Ai),go=this.includeOptions(fe,ao),Co=it.axis,Vo=mt.axis,{spanGaps:nr,segment:mr}=this.options,Br=r(nr)?nr:Number.POSITIVE_INFINITY,wr=this.chart._animationsDisabled||Ee||"none"===fe;let Jr=Q>0&&this.getParsed(Q-1);for(let ir=Q;ir<Q+oe;++ir){const na=w[ir],Ea=this.getParsed(ir),gs=wr?na:{},Gr=i(Ea[Vo]),Bl=gs[Co]=it.getPixelForValue(Ea[Co],ir),Yl=gs[Vo]=Ee||Gr?mt.getBasePixel():mt.getPixelForValue($t?this.applyStack(mt,Ea,$t):Ea[Vo],ir);gs.skip=isNaN(Bl)||isNaN(Yl)||Gr,gs.stop=ir>0&&Math.abs(Ea[Co]-Jr[Co])>Br,mr&&(gs.parsed=Ea,gs.raw=ai.data[ir]),go&&(gs.options=ao||this.resolveDataElementOptions(ir,na.active?"active":fe)),wr||this.updateElement(na,ir,gs,fe),Jr=Ea}this.updateSharedOptions(ao,fe,Ai)}getMaxOverflow(){const w=this._cachedMeta,Q=w.data||[];if(!this.options.showLine){let mt=0;for(let $t=Q.length-1;$t>=0;--$t)mt=Math.max(mt,Q[$t].size(this.resolveDataElementOptions($t))/2);return mt>0&&mt}const oe=w.dataset,fe=oe.options&&oe.options.borderWidth||0;if(!Q.length)return fe;const Ee=Q[0].size(this.resolveDataElementOptions(0)),it=Q[Q.length-1].size(this.resolveDataElementOptions(Q.length-1));return Math.max(fe,Ee,it)/2}}return U.id="scatter",U.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},U.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:S=>"("+S.label+", "+S.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}},U})()});function de(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var Ct={_date:(()=>{class U{constructor(w){this.options=w||{}}init(w){}formats(){return de()}parse(w,Q){return de()}format(w,Q){return de()}add(w,Q,oe){return de()}diff(w,Q,oe){return de()}startOf(w,Q,oe){return de()}endOf(w,Q){return de()}}return U.override=function(S){Object.assign(U.prototype,S)},U})()};function wt(U,S,w,Q){const{controller:oe,data:fe,_sorted:Ee}=U,it=oe._cachedMeta.iScale;if(it&&S===it.axis&&"r"!==S&&Ee&&fe.length){const mt=it._reversePixels?yi:tn;if(!Q)return mt(fe,S,w);if(oe._sharedOptions){const $t=fe[0],ai="function"==typeof $t.getRange&&$t.getRange(S);if(ai){const Ai=mt(fe,S,w-ai),ao=mt(fe,S,w+ai);return{lo:Ai.lo,hi:ao.hi}}}}return{lo:0,hi:fe.length-1}}function Mt(U,S,w,Q,oe){const fe=U.getSortedVisibleDatasetMetas(),Ee=w[S];for(let it=0,mt=fe.length;it<mt;++it){const{index:$t,data:ai}=fe[it],{lo:Ai,hi:ao}=wt(fe[it],S,Ee,oe);for(let go=Ai;go<=ao;++go){const Co=ai[go];Co.skip||Q(Co,$t,go)}}}function Qn(U,S,w,Q,oe){const fe=[];return!oe&&!U.isPointInArea(S)||Mt(U,w,S,function(it,mt,$t){!oe&&!Ra(it,U.chartArea,0)||it.inRange(S.x,S.y,Q)&&fe.push({element:it,datasetIndex:mt,index:$t})},!0),fe}function zi(U,S,w,Q,oe,fe){return fe||U.isPointInArea(S)?"r"!==w||Q?function bi(U,S,w,Q,oe,fe){let Ee=[];const it=function fn(U){const S=-1!==U.indexOf("x"),w=-1!==U.indexOf("y");return function(Q,oe){const fe=S?Math.abs(Q.x-oe.x):0,Ee=w?Math.abs(Q.y-oe.y):0;return Math.sqrt(Math.pow(fe,2)+Math.pow(Ee,2))}}(w);let mt=Number.POSITIVE_INFINITY;return Mt(U,w,S,function $t(ai,Ai,ao){const go=ai.inRange(S.x,S.y,oe);if(Q&&!go)return;const Co=ai.getCenterPoint(oe);if(!fe&&!U.isPointInArea(Co)&&!go)return;const nr=it(S,Co);nr<mt?(Ee=[{element:ai,datasetIndex:Ai,index:ao}],mt=nr):nr===mt&&Ee.push({element:ai,datasetIndex:Ai,index:ao})}),Ee}(U,S,w,Q,oe,fe):function ei(U,S,w,Q){let oe=[];return Mt(U,w,S,function fe(Ee,it,mt){const{startAngle:$t,endAngle:ai}=Ee.getProps(["startAngle","endAngle"],Q),{angle:Ai}=Dt(Ee,{x:S.x,y:S.y});Je(Ai,$t,ai)&&oe.push({element:Ee,datasetIndex:it,index:mt})}),oe}(U,S,w,oe):[]}function Be(U,S,w,Q,oe){const fe=[],Ee="x"===w?"inXRange":"inYRange";let it=!1;return Mt(U,w,S,(mt,$t,ai)=>{mt[Ee](S[w],oe)&&(fe.push({element:mt,datasetIndex:$t,index:ai}),it=it||mt.inRange(S.x,S.y,oe))}),Q&&!it?[]:fe}var pt={evaluateInteractionItems:Mt,modes:{index(U,S,w,Q){const oe=Zi(S,U),fe=w.axis||"x",Ee=w.includeInvisible||!1,it=w.intersect?Qn(U,oe,fe,Q,Ee):zi(U,oe,fe,!1,Q,Ee),mt=[];return it.length?(U.getSortedVisibleDatasetMetas().forEach($t=>{const ai=it[0].index,Ai=$t.data[ai];Ai&&!Ai.skip&&mt.push({element:Ai,datasetIndex:$t.index,index:ai})}),mt):[]},dataset(U,S,w,Q){const oe=Zi(S,U),fe=w.axis||"xy",Ee=w.includeInvisible||!1;let it=w.intersect?Qn(U,oe,fe,Q,Ee):zi(U,oe,fe,!1,Q,Ee);if(it.length>0){const mt=it[0].datasetIndex,$t=U.getDatasetMeta(mt).data;it=[];for(let ai=0;ai<$t.length;++ai)it.push({element:$t[ai],datasetIndex:mt,index:ai})}return it},point:(U,S,w,Q)=>Qn(U,Zi(S,U),w.axis||"xy",Q,w.includeInvisible||!1),nearest:(U,S,w,Q)=>zi(U,Zi(S,U),w.axis||"xy",w.intersect,Q,w.includeInvisible||!1),x:(U,S,w,Q)=>Be(U,Zi(S,U),"x",w.intersect,Q),y:(U,S,w,Q)=>Be(U,Zi(S,U),"y",w.intersect,Q)}};const Ye=["left","top","right","bottom"];function ut(U,S){return U.filter(w=>w.pos===S)}function Kt(U,S){return U.filter(w=>-1===Ye.indexOf(w.pos)&&w.box.axis===S)}function en(U,S){return U.sort((w,Q)=>{const oe=S?Q:w,fe=S?w:Q;return oe.weight===fe.weight?oe.index-fe.index:oe.weight-fe.weight})}function Wo(U,S,w,Q){return Math.max(U[w],S[w])+Math.max(U[Q],S[Q])}function tr(U,S){U.top=Math.max(U.top,S.top),U.left=Math.max(U.left,S.left),U.bottom=Math.max(U.bottom,S.bottom),U.right=Math.max(U.right,S.right)}function br(U,S,w,Q){const{pos:oe,box:fe}=w,Ee=U.maxPadding;if(!p(oe)){w.size&&(U[oe]-=w.size);const Ai=Q[w.stack]||{size:0,count:1};Ai.size=Math.max(Ai.size,w.horizontal?fe.height:fe.width),w.size=Ai.size/Ai.count,U[oe]+=w.size}fe.getPadding&&tr(Ee,fe.getPadding());const it=Math.max(0,S.outerWidth-Wo(Ee,U,"left","right")),mt=Math.max(0,S.outerHeight-Wo(Ee,U,"top","bottom")),$t=it!==U.w,ai=mt!==U.h;return U.w=it,U.h=mt,w.horizontal?{same:$t,other:ai}:{same:ai,other:$t}}function ga(U,S){const w=S.maxPadding;return function Q(oe){const fe={left:0,top:0,right:0,bottom:0};return oe.forEach(Ee=>{fe[Ee]=Math.max(S[Ee],w[Ee])}),fe}(U?["left","right"]:["top","bottom"])}function $r(U,S,w,Q){const oe=[];let fe,Ee,it,mt,$t,ai;for(fe=0,Ee=U.length,$t=0;fe<Ee;++fe){it=U[fe],mt=it.box,mt.update(it.width||S.w,it.height||S.h,ga(it.horizontal,S));const{same:Ai,other:ao}=br(S,w,it,Q);$t|=Ai&&oe.length,ai=ai||ao,mt.fullSize||oe.push(it)}return $t&&$r(oe,S,w,Q)||ai}function Rr(U,S,w,Q,oe){U.top=w,U.left=S,U.right=S+Q,U.bottom=w+oe,U.width=Q,U.height=oe}function Xr(U,S,w,Q){const oe=w.padding;let{x:fe,y:Ee}=S;for(const it of U){const mt=it.box,$t=Q[it.stack]||{count:1,placed:0,weight:1},ai=it.stackWeight/$t.weight||1;if(it.horizontal){const Ai=S.w*ai,ao=$t.size||mt.height;$($t.start)&&(Ee=$t.start),mt.fullSize?Rr(mt,oe.left,Ee,w.outerWidth-oe.right-oe.left,ao):Rr(mt,S.left+$t.placed,Ee,Ai,ao),$t.start=Ee,$t.placed+=Ai,Ee=mt.bottom}else{const Ai=S.h*ai,ao=$t.size||mt.width;$($t.start)&&(fe=$t.start),mt.fullSize?Rr(mt,fe,oe.top,ao,w.outerHeight-oe.bottom-oe.top):Rr(mt,fe,S.top+$t.placed,ao,Ai),$t.start=fe,$t.placed+=Ai,fe=mt.right}}S.x=fe,S.y=Ee}xi.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Es={addBox(U,S){U.boxes||(U.boxes=[]),S.fullSize=S.fullSize||!1,S.position=S.position||"top",S.weight=S.weight||0,S._layers=S._layers||function(){return[{z:0,draw(w){S.draw(w)}}]},U.boxes.push(S)},removeBox(U,S){const w=U.boxes?U.boxes.indexOf(S):-1;-1!==w&&U.boxes.splice(w,1)},configure(U,S,w){S.fullSize=w.fullSize,S.position=w.position,S.weight=w.weight},update(U,S,w,Q){if(!U)return;const oe=Qi(U.options.layout.padding),fe=Math.max(S-oe.width,0),Ee=Math.max(w-oe.height,0),it=function ko(U){const S=function qn(U){const S=[];let w,Q,oe,fe,Ee,it;for(w=0,Q=(U||[]).length;w<Q;++w)oe=U[w],({position:fe,options:{stack:Ee,stackWeight:it=1}}=oe),S.push({index:w,box:oe,pos:fe,horizontal:oe.isHorizontal(),weight:oe.weight,stack:Ee&&fe+Ee,stackWeight:it});return S}(U),w=en(S.filter($t=>$t.box.fullSize),!0),Q=en(ut(S,"left"),!0),oe=en(ut(S,"right")),fe=en(ut(S,"top"),!0),Ee=en(ut(S,"bottom")),it=Kt(S,"x"),mt=Kt(S,"y");return{fullSize:w,leftAndTop:Q.concat(fe),rightAndBottom:oe.concat(mt).concat(Ee).concat(it),chartArea:ut(S,"chartArea"),vertical:Q.concat(oe).concat(mt),horizontal:fe.concat(Ee).concat(it)}}(U.boxes),mt=it.vertical,$t=it.horizontal;I(U.boxes,Vo=>{"function"==typeof Vo.beforeLayout&&Vo.beforeLayout()});const ai=mt.reduce((Vo,nr)=>nr.box.options&&!1===nr.box.options.display?Vo:Vo+1,0)||1,Ai=Object.freeze({outerWidth:S,outerHeight:w,padding:oe,availableWidth:fe,availableHeight:Ee,vBoxMaxWidth:fe/2/ai,hBoxMaxHeight:Ee/2}),ao=Object.assign({},oe);tr(ao,Qi(Q));const go=Object.assign({maxPadding:ao,w:fe,h:Ee,x:oe.left,y:oe.top},oe),Co=function gi(U,S){const w=function hi(U){const S={};for(const w of U){const{stack:Q,pos:oe,stackWeight:fe}=w;if(!Q||!Ye.includes(oe))continue;const Ee=S[Q]||(S[Q]={count:0,placed:0,weight:0,size:0});Ee.count++,Ee.weight+=fe}return S}(U),{vBoxMaxWidth:Q,hBoxMaxHeight:oe}=S;let fe,Ee,it;for(fe=0,Ee=U.length;fe<Ee;++fe){it=U[fe];const{fullSize:mt}=it.box,$t=w[it.stack],ai=$t&&it.stackWeight/$t.weight;it.horizontal?(it.width=ai?ai*Q:mt&&S.availableWidth,it.height=oe):(it.width=Q,it.height=ai?ai*oe:mt&&S.availableHeight)}return w}(mt.concat($t),Ai);$r(it.fullSize,go,Ai,Co),$r(mt,go,Ai,Co),$r($t,go,Ai,Co)&&$r(mt,go,Ai,Co),function fa(U){const S=U.maxPadding;function w(Q){const oe=Math.max(S[Q]-U[Q],0);return U[Q]+=oe,oe}U.y+=w("top"),U.x+=w("left"),w("right"),w("bottom")}(go),Xr(it.leftAndTop,go,Ai,Co),go.x+=go.w,go.y+=go.h,Xr(it.rightAndBottom,go,Ai,Co),U.chartArea={left:go.left,top:go.top,right:go.left+go.w,bottom:go.top+go.h,height:go.h,width:go.w},I(it.chartArea,Vo=>{const nr=Vo.box;Object.assign(nr,U.chartArea),nr.update(go.w,go.h,{left:0,top:0,right:0,bottom:0})})}};class Ys{acquireContext(S,w){}releaseContext(S){return!1}addEventListener(S,w,Q){}removeEventListener(S,w,Q){}getDevicePixelRatio(){return 1}getMaximumSize(S,w,Q,oe){return w=Math.max(0,w||S.width),Q=Q||S.height,{width:w,height:Math.max(0,oe?Math.floor(w/oe):Q)}}isAttached(S){return!0}updateConfig(S){}}class qa extends Ys{acquireContext(S){return S&&S.getContext&&S.getContext("2d")||null}updateConfig(S){S.options.animation=!1}}const Qs="$chartjs",ic={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},wl=U=>null===U||""===U,Dc=!!Zr&&{passive:!0};function Wc(U,S,w){U.canvas.removeEventListener(S,w,Dc)}function Vl(U,S){for(const w of U)if(w===S||w.contains(S))return!0}function zc(U,S,w){const Q=U.canvas,oe=new MutationObserver(fe=>{let Ee=!1;for(const it of fe)Ee=Ee||Vl(it.addedNodes,Q),Ee=Ee&&!Vl(it.removedNodes,Q);Ee&&w()});return oe.observe(document,{childList:!0,subtree:!0}),oe}function Il(U,S,w){const Q=U.canvas,oe=new MutationObserver(fe=>{let Ee=!1;for(const it of fe)Ee=Ee||Vl(it.removedNodes,Q),Ee=Ee&&!Vl(it.addedNodes,Q);Ee&&w()});return oe.observe(document,{childList:!0,subtree:!0}),oe}const Bc=new Map;let Ac=0;function Xl(){const U=window.devicePixelRatio;U!==Ac&&(Ac=U,Bc.forEach((S,w)=>{w.currentDevicePixelRatio!==U&&S()}))}function jc(U,S,w){const Q=U.canvas,oe=Q&&Ss(Q);if(!oe)return;const fe=Oo((it,mt)=>{const $t=oe.clientWidth;w(it,mt),$t<oe.clientWidth&&w()},window),Ee=new ResizeObserver(it=>{const mt=it[0],$t=mt.contentRect.width,ai=mt.contentRect.height;0===$t&&0===ai||fe($t,ai)});return Ee.observe(oe),function uc(U,S){Bc.size||window.addEventListener("resize",Xl),Bc.set(U,S)}(U,fe),Ee}function pc(U,S,w){w&&w.disconnect(),"resize"===S&&function Oc(U){Bc.delete(U),Bc.size||window.removeEventListener("resize",Xl)}(U)}function Ul(U,S,w){const Q=U.canvas,oe=Oo(fe=>{null!==U.ctx&&w(function im(U,S){const w=ic[U.type]||U.type,{x:Q,y:oe}=Zi(U,S);return{type:w,chart:S,native:U,x:void 0!==Q?Q:null,y:void 0!==oe?oe:null}}(fe,U))},U,fe=>{const Ee=fe[0];return[Ee,Ee.offsetX,Ee.offsetY]});return function yc(U,S,w){U.addEventListener(S,w,Dc)}(Q,S,oe),oe}class Xc extends Ys{acquireContext(S,w){const Q=S&&S.getContext&&S.getContext("2d");return Q&&Q.canvas===S?(function md(U,S){const w=U.style,Q=U.getAttribute("height"),oe=U.getAttribute("width");if(U[Qs]={initial:{height:Q,width:oe,style:{display:w.display,height:w.height,width:w.width}}},w.display=w.display||"block",w.boxSizing=w.boxSizing||"border-box",wl(oe)){const fe=Na(U,"width");void 0!==fe&&(U.width=fe)}if(wl(Q))if(""===U.style.height)U.height=U.width/(S||2);else{const fe=Na(U,"height");void 0!==fe&&(U.height=fe)}}(S,w),Q):null}releaseContext(S){const w=S.canvas;if(!w[Qs])return!1;const Q=w[Qs].initial;["height","width"].forEach(fe=>{const Ee=Q[fe];i(Ee)?w.removeAttribute(fe):w.setAttribute(fe,Ee)});const oe=Q.style||{};return Object.keys(oe).forEach(fe=>{w.style[fe]=oe[fe]}),w.width=w.width,delete w[Qs],!0}addEventListener(S,w,Q){this.removeEventListener(S,w),(S.$proxies||(S.$proxies={}))[w]=({attach:zc,detach:Il,resize:jc}[w]||Ul)(S,w,Q)}removeEventListener(S,w){const Q=S.$proxies||(S.$proxies={}),oe=Q[w];oe&&(({attach:pc,detach:pc,resize:pc}[w]||Wc)(S,w,oe),Q[w]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(S,w,Q,oe){return function Nr(U,S,w,Q){const oe=Ia(U),fe=zn(oe,"margin"),Ee=Ca(oe.maxWidth,U,"clientWidth")||Te,it=Ca(oe.maxHeight,U,"clientHeight")||Te,mt=function Eo(U,S,w){let Q,oe;if(void 0===S||void 0===w){const fe=Ss(U);if(fe){const Ee=fe.getBoundingClientRect(),it=Ia(fe),mt=zn(it,"border","width"),$t=zn(it,"padding");S=Ee.width-$t.width-mt.width,w=Ee.height-$t.height-mt.height,Q=Ca(it.maxWidth,fe,"clientWidth"),oe=Ca(it.maxHeight,fe,"clientHeight")}else S=U.clientWidth,w=U.clientHeight}return{width:S,height:w,maxWidth:Q||Te,maxHeight:oe||Te}}(U,S,w);let{width:$t,height:ai}=mt;if("content-box"===oe.boxSizing){const Ai=zn(oe,"border","width"),ao=zn(oe,"padding");$t-=ao.width+Ai.width,ai-=ao.height+Ai.height}return $t=Math.max(0,$t-fe.width),ai=Math.max(0,Q?Math.floor($t/Q):ai-fe.height),$t=oa(Math.min($t,Ee,mt.maxWidth)),ai=oa(Math.min(ai,it,mt.maxHeight)),$t&&!ai&&(ai=oa($t/2)),{width:$t,height:ai}}(S,w,Q,oe)}isAttached(S){const w=Ss(S);return!(!w||!w.isConnected)}}class vd{constructor(){this._init=[]}notify(S,w,Q,oe){"beforeInit"===w&&(this._init=this._createDescriptors(S,!0),this._notify(this._init,S,"install"));const fe=oe?this._descriptors(S).filter(oe):this._descriptors(S),Ee=this._notify(fe,S,w,Q);return"afterDestroy"===w&&(this._notify(fe,S,"stop"),this._notify(this._init,S,"uninstall")),Ee}_notify(S,w,Q,oe){oe=oe||{};for(const fe of S){const Ee=fe.plugin;if(!1===b(Ee[Q],[w,oe,fe.options],Ee)&&oe.cancelable)return!1}return!0}invalidate(){i(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(S){if(this._cache)return this._cache;const w=this._cache=this._createDescriptors(S);return this._notifyStateChanges(S),w}_createDescriptors(S,w){const Q=S&&S.config,oe=x(Q.options&&Q.options.plugins,{}),fe=function bd(U){const S={},w=[],Q=Object.keys(h.plugins.items);for(let fe=0;fe<Q.length;fe++)w.push(h.getPlugin(Q[fe]));const oe=U.plugins||[];for(let fe=0;fe<oe.length;fe++){const Ee=oe[fe];-1===w.indexOf(Ee)&&(w.push(Ee),S[Ee.id]=!0)}return{plugins:w,localIds:S}}(Q);return!1!==oe||w?function Ru(U,{plugins:S,localIds:w},Q,oe){const fe=[],Ee=U.getContext();for(const it of S){const mt=it.id,$t=Sd(Q[mt],oe);null!==$t&&fe.push({plugin:it,options:mm(U.config,{plugin:it,local:w[mt]},$t,Ee)})}return fe}(S,fe,oe,w):[]}_notifyStateChanges(S){const w=this._oldCache||[],Q=this._cache,oe=(fe,Ee)=>fe.filter(it=>!Ee.some(mt=>it.plugin.id===mt.plugin.id));this._notify(oe(w,Q),S,"stop"),this._notify(oe(Q,w),S,"start")}}function Sd(U,S){return S||!1!==U?!0===U?{}:U:null}function mm(U,{plugin:S,local:w},Q,oe){const fe=U.pluginScopeKeys(S),Ee=U.getOptionScopes(Q,fe);return w&&S.defaults&&Ee.push(S.defaults),U.createResolver(Ee,oe,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function hu(U,S){return((S.datasets||{})[U]||{}).indexAxis||S.indexAxis||(xi.datasets[U]||{}).indexAxis||"x"}function um(U,S){return"x"===U||"y"===U?U:S.axis||function Km(U){return"top"===U||"bottom"===U?"x":"left"===U||"right"===U?"y":void 0}(S.position)||U.charAt(0).toLowerCase()}function Zc(U){const S=U.options||(U.options={});S.plugins=x(S.plugins,{}),S.scales=function ad(U,S){const w=In[U.type]||{scales:{}},Q=S.scales||{},oe=hu(U.type,S),fe=Object.create(null),Ee=Object.create(null);return Object.keys(Q).forEach(it=>{const mt=Q[it];if(!p(mt))return console.error(`Invalid scale configuration for scale: ${it}`);if(mt._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${it}`);const $t=um(it,mt),ai=function tc(U,S){return U===S?"_index_":"_value_"}($t,oe),Ai=w.scales||{};fe[$t]=fe[$t]||it,Ee[it]=ae(Object.create(null),[{axis:$t},mt,Ai[$t],Ai[ai]])}),U.data.datasets.forEach(it=>{const mt=it.type||U.type,$t=it.indexAxis||hu(mt,S),Ai=(In[mt]||{}).scales||{};Object.keys(Ai).forEach(ao=>{const go=function Fd(U,S){let w=U;return"_index_"===U?w=S:"_value_"===U&&(w="x"===S?"y":"x"),w}(ao,$t),Co=it[go+"AxisID"]||fe[go]||go;Ee[Co]=Ee[Co]||Object.create(null),ae(Ee[Co],[{axis:go},Q[Co],Ai[ao]])})}),Object.keys(Ee).forEach(it=>{const mt=Ee[it];ae(mt,[xi.scales[mt.type],xi.scale])}),Ee}(U,S)}function Cd(U){return(U=U||{}).datasets=U.datasets||[],U.labels=U.labels||[],U}const om=new Map,pm=new Set;function Ld(U,S){let w=om.get(U);return w||(w=S(),om.set(U,w),pm.add(w)),w}const jd=(U,S,w)=>{const Q=Y(S,w);void 0!==Q&&U.add(Q)};class Ud{constructor(S){this._config=function Rm(U){return(U=U||{}).data=Cd(U.data),Zc(U),U}(S),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(S){this._config.type=S}get data(){return this._config.data}set data(S){this._config.data=Cd(S)}get options(){return this._config.options}set options(S){this._config.options=S}get plugins(){return this._config.plugins}update(){const S=this._config;this.clearCache(),Zc(S)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(S){return Ld(S,()=>[[`datasets.${S}`,""]])}datasetAnimationScopeKeys(S,w){return Ld(`${S}.transition.${w}`,()=>[[`datasets.${S}.transitions.${w}`,`transitions.${w}`],[`datasets.${S}`,""]])}datasetElementScopeKeys(S,w){return Ld(`${S}-${w}`,()=>[[`datasets.${S}.elements.${w}`,`datasets.${S}`,`elements.${w}`,""]])}pluginScopeKeys(S){const w=S.id;return Ld(`${this.type}-plugin-${w}`,()=>[[`plugins.${w}`,...S.additionalOptionScopes||[]]])}_cachedScopes(S,w){const Q=this._scopeCache;let oe=Q.get(S);return(!oe||w)&&(oe=new Map,Q.set(S,oe)),oe}getOptionScopes(S,w,Q){const{options:oe,type:fe}=this,Ee=this._cachedScopes(S,Q),it=Ee.get(w);if(it)return it;const mt=new Set;w.forEach(ai=>{S&&(mt.add(S),ai.forEach(Ai=>jd(mt,S,Ai))),ai.forEach(Ai=>jd(mt,oe,Ai)),ai.forEach(Ai=>jd(mt,In[fe]||{},Ai)),ai.forEach(Ai=>jd(mt,xi,Ai)),ai.forEach(Ai=>jd(mt,Wr,Ai))});const $t=Array.from(mt);return 0===$t.length&&$t.push(Object.create(null)),pm.has(w)&&Ee.set(w,$t),$t}chartOptionScopes(){const{options:S,type:w}=this;return[S,In[w]||{},xi.datasets[w]||{},{type:w},xi,Wr]}resolveNamedOptions(S,w,Q,oe=[""]){const fe={$shared:!0},{resolver:Ee,subPrefixes:it}=km(this._resolverCache,S,oe);let mt=Ee;(function xu(U,S){const{isScriptable:w,isIndexable:Q}=Do(U);for(const oe of S){const fe=w(oe),Ee=Q(oe),it=(Ee||fe)&&U[oe];if(fe&&(ue(it)||Nm(it))||Ee&&t(it))return!0}return!1})(Ee,w)&&(fe.$shared=!1,mt=Hi(Ee,Q=ue(Q)?Q():Q,this.createResolver(S,Q,it)));for(const $t of w)fe[$t]=mt[$t];return fe}createResolver(S,w,Q=[""],oe){const{resolver:fe}=km(this._resolverCache,S,Q);return p(w)?Hi(fe,w,void 0,oe):fe}}function km(U,S,w){let Q=U.get(S);Q||(Q=new Map,U.set(S,Q));const oe=w.join();let fe=Q.get(oe);return fe||(fe={resolver:Ti(S,w),subPrefixes:w.filter(it=>!it.toLowerCase().includes("hover"))},Q.set(oe,fe)),fe}const Nm=U=>p(U)&&Object.getOwnPropertyNames(U).reduce((S,w)=>S||ue(U[w]),!1),Kd=["top","bottom","left","right","chartArea"];function $m(U,S){return"top"===U||"bottom"===U||-1===Kd.indexOf(U)&&"x"===S}function ed(U,S){return function(w,Q){return w[U]===Q[U]?w[S]-Q[S]:w[U]-Q[U]}}function ku(U){const S=U.chart,w=S.options.animation;S.notifyPlugins("afterRender"),b(w&&w.onComplete,[U],S)}function _m(U){const S=U.chart,w=S.options.animation;b(w&&w.onProgress,[U],S)}function qm(U){return ba()&&"string"==typeof U?U=document.getElementById(U):U&&U.length&&(U=U[0]),U&&U.canvas&&(U=U.canvas),U}const Xm={},Um=U=>{const S=qm(U);return Object.values(Xm).filter(w=>w.canvas===S).pop()};function sd(U,S,w){const Q=Object.keys(U);for(const oe of Q){const fe=+oe;if(fe>=S){const Ee=U[oe];delete U[oe],(w>0||fe>S)&&(U[fe+w]=Ee)}}}class fm{constructor(S,w){const Q=this.config=new Ud(w),oe=qm(S),fe=Um(oe);if(fe)throw new Error("Canvas is already in use. Chart with ID '"+fe.id+"' must be destroyed before the canvas with ID '"+fe.canvas.id+"' can be reused.");const Ee=Q.createResolver(Q.chartOptionScopes(),this.getContext());this.platform=new(Q.platform||function ec(U){return!ba()||typeof OffscreenCanvas<"u"&&U instanceof OffscreenCanvas?qa:Xc}(oe)),this.platform.updateConfig(Q);const it=this.platform.acquireContext(oe,Ee.aspectRatio),mt=it&&it.canvas,$t=mt&&mt.height,ai=mt&&mt.width;this.id=l(),this.ctx=it,this.canvas=mt,this.width=ai,this.height=$t,this._options=Ee,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new vd,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function no(U,S){let w;return function(...Q){return S?(clearTimeout(w),w=setTimeout(U,S,Q)):U.apply(this,Q),S}}(Ai=>this.update(Ai),Ee.resizeDelay||0),this._dataChanges=[],Xm[this.id]=this,it&&mt?(Ml.listen(this,"complete",ku),Ml.listen(this,"progress",_m),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:S,maintainAspectRatio:w},width:Q,height:oe,_aspectRatio:fe}=this;return i(S)?w&&fe?fe:oe?Q/oe:null:S}get data(){return this.config.data}set data(S){this.config.data=S}get options(){return this._options}set options(S){this.config.options=S}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Rs(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Cr(this.canvas,this.ctx),this}stop(){return Ml.stop(this),this}resize(S,w){Ml.running(this)?this._resizeBeforeDraw={width:S,height:w}:this._resize(S,w)}_resize(S,w){const Q=this.options,Ee=this.platform.getMaximumSize(this.canvas,S,w,Q.maintainAspectRatio&&this.aspectRatio),it=Q.devicePixelRatio||this.platform.getDevicePixelRatio(),mt=this.width?"resize":"attach";this.width=Ee.width,this.height=Ee.height,this._aspectRatio=this.aspectRatio,Rs(this,it,!0)&&(this.notifyPlugins("resize",{size:Ee}),b(Q.onResize,[this,Ee],this),this.attached&&this._doResize(mt)&&this.render())}ensureScalesHaveIDs(){I(this.options.scales||{},(Q,oe)=>{Q.id=oe})}buildOrUpdateScales(){const S=this.options,w=S.scales,Q=this.scales,oe=Object.keys(Q).reduce((Ee,it)=>(Ee[it]=!1,Ee),{});let fe=[];w&&(fe=fe.concat(Object.keys(w).map(Ee=>{const it=w[Ee],mt=um(Ee,it),$t="r"===mt,ai="x"===mt;return{options:it,dposition:$t?"chartArea":ai?"bottom":"left",dtype:$t?"radialLinear":ai?"category":"linear"}}))),I(fe,Ee=>{const it=Ee.options,mt=it.id,$t=um(mt,it),ai=x(it.type,Ee.dtype);(void 0===it.position||$m(it.position,$t)!==$m(Ee.dposition))&&(it.position=Ee.dposition),oe[mt]=!0;let Ai=null;mt in Q&&Q[mt].type===ai?Ai=Q[mt]:(Ai=new(h.getScale(ai))({id:mt,type:ai,ctx:this.ctx,chart:this}),Q[Ai.id]=Ai),Ai.init(it,S)}),I(oe,(Ee,it)=>{Ee||delete Q[it]}),I(Q,Ee=>{Es.configure(this,Ee,Ee.options),Es.addBox(this,Ee)})}_updateMetasets(){const S=this._metasets,w=this.data.datasets.length,Q=S.length;if(S.sort((oe,fe)=>oe.index-fe.index),Q>w){for(let oe=w;oe<Q;++oe)this._destroyDatasetMeta(oe);S.splice(w,Q-w)}this._sortedMetasets=S.slice(0).sort(ed("order","index"))}_removeUnreferencedMetasets(){const{_metasets:S,data:{datasets:w}}=this;S.length>w.length&&delete this._stacks,S.forEach((Q,oe)=>{0===w.filter(fe=>fe===Q._dataset).length&&this._destroyDatasetMeta(oe)})}buildOrUpdateControllers(){const S=[],w=this.data.datasets;let Q,oe;for(this._removeUnreferencedMetasets(),Q=0,oe=w.length;Q<oe;Q++){const fe=w[Q];let Ee=this.getDatasetMeta(Q);const it=fe.type||this.config.type;if(Ee.type&&Ee.type!==it&&(this._destroyDatasetMeta(Q),Ee=this.getDatasetMeta(Q)),Ee.type=it,Ee.indexAxis=fe.indexAxis||hu(it,this.options),Ee.order=fe.order||0,Ee.index=Q,Ee.label=""+fe.label,Ee.visible=this.isDatasetVisible(Q),Ee.controller)Ee.controller.updateIndex(Q),Ee.controller.linkScales();else{const mt=h.getController(it),{datasetElementType:$t,dataElementType:ai}=xi.datasets[it];Object.assign(mt.prototype,{dataElementType:h.getElement(ai),datasetElementType:$t&&h.getElement($t)}),Ee.controller=new mt(this,Q),S.push(Ee.controller)}}return this._updateMetasets(),S}_resetElements(){I(this.data.datasets,(S,w)=>{this.getDatasetMeta(w).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(S){const w=this.config;w.update();const Q=this._options=w.createResolver(w.chartOptionScopes(),this.getContext()),oe=this._animationsDisabled=!Q.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:S,cancelable:!0}))return;const fe=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let Ee=0;for(let $t=0,ai=this.data.datasets.length;$t<ai;$t++){const{controller:Ai}=this.getDatasetMeta($t),ao=!oe&&-1===fe.indexOf(Ai);Ai.buildOrUpdateElements(ao),Ee=Math.max(+Ai.getMaxOverflow(),Ee)}Ee=this._minPadding=Q.layout.autoPadding?Ee:0,this._updateLayout(Ee),oe||I(fe,$t=>{$t.reset()}),this._updateDatasets(S),this.notifyPlugins("afterUpdate",{mode:S}),this._layers.sort(ed("z","_idx"));const{_active:it,_lastEvent:mt}=this;mt?this._eventHandler(mt,!0):it.length&&this._updateHoverStyles(it,it,!0),this.render()}_updateScales(){I(this.scales,S=>{Es.removeBox(this,S)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const S=this.options,w=new Set(Object.keys(this._listeners)),Q=new Set(S.events);(!ge(w,Q)||!!this._responsiveListeners!==S.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:S}=this,w=this._getUniformDataChanges()||[];for(const{method:Q,start:oe,count:fe}of w)sd(S,oe,"_removeElements"===Q?-fe:fe)}_getUniformDataChanges(){const S=this._dataChanges;if(!S||!S.length)return;this._dataChanges=[];const w=this.data.datasets.length,Q=fe=>new Set(S.filter(Ee=>Ee[0]===fe).map((Ee,it)=>it+","+Ee.splice(1).join(","))),oe=Q(0);for(let fe=1;fe<w;fe++)if(!ge(oe,Q(fe)))return;return Array.from(oe).map(fe=>fe.split(",")).map(fe=>({method:fe[1],start:+fe[2],count:+fe[3]}))}_updateLayout(S){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Es.update(this,this.width,this.height,S);const w=this.chartArea,Q=w.width<=0||w.height<=0;this._layers=[],I(this.boxes,oe=>{Q&&"chartArea"===oe.position||(oe.configure&&oe.configure(),this._layers.push(...oe._layers()))},this),this._layers.forEach((oe,fe)=>{oe._idx=fe}),this.notifyPlugins("afterLayout")}_updateDatasets(S){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:S,cancelable:!0})){for(let w=0,Q=this.data.datasets.length;w<Q;++w)this.getDatasetMeta(w).controller.configure();for(let w=0,Q=this.data.datasets.length;w<Q;++w)this._updateDataset(w,ue(S)?S({datasetIndex:w}):S);this.notifyPlugins("afterDatasetsUpdate",{mode:S})}}_updateDataset(S,w){const Q=this.getDatasetMeta(S),oe={meta:Q,index:S,mode:w,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",oe)&&(Q.controller._update(w),oe.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",oe))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Ml.has(this)?this.attached&&!Ml.running(this)&&Ml.start(this):(this.draw(),ku({chart:this})))}draw(){let S;if(this._resizeBeforeDraw){const{width:Q,height:oe}=this._resizeBeforeDraw;this._resize(Q,oe),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const w=this._layers;for(S=0;S<w.length&&w[S].z<=0;++S)w[S].draw(this.chartArea);for(this._drawDatasets();S<w.length;++S)w[S].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(S){const w=this._sortedMetasets,Q=[];let oe,fe;for(oe=0,fe=w.length;oe<fe;++oe){const Ee=w[oe];(!S||Ee.visible)&&Q.push(Ee)}return Q}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const S=this.getSortedVisibleDatasetMetas();for(let w=S.length-1;w>=0;--w)this._drawDataset(S[w]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(S){const w=this.ctx,Q=S._clip,oe=!Q.disabled,fe=this.chartArea,Ee={meta:S,index:S.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",Ee)&&(oe&&ss(w,{left:!1===Q.left?0:fe.left-Q.left,right:!1===Q.right?this.width:fe.right+Q.right,top:!1===Q.top?0:fe.top-Q.top,bottom:!1===Q.bottom?this.height:fe.bottom+Q.bottom}),S.controller.draw(),oe&&Hs(w),Ee.cancelable=!1,this.notifyPlugins("afterDatasetDraw",Ee))}isPointInArea(S){return Ra(S,this.chartArea,this._minPadding)}getElementsAtEventForMode(S,w,Q,oe){const fe=pt.modes[w];return"function"==typeof fe?fe(this,S,Q,oe):[]}getDatasetMeta(S){const w=this.data.datasets[S],Q=this._metasets;let oe=Q.filter(fe=>fe&&fe._dataset===w).pop();return oe||(oe={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:w&&w.order||0,index:S,_dataset:w,_parsed:[],_sorted:!1},Q.push(oe)),oe}getContext(){return this.$context||(this.$context=Vi(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(S){const w=this.data.datasets[S];if(!w)return!1;const Q=this.getDatasetMeta(S);return"boolean"==typeof Q.hidden?!Q.hidden:!w.hidden}setDatasetVisibility(S,w){this.getDatasetMeta(S).hidden=!w}toggleDataVisibility(S){this._hiddenIndices[S]=!this._hiddenIndices[S]}getDataVisibility(S){return!this._hiddenIndices[S]}_updateVisibility(S,w,Q){const oe=Q?"show":"hide",fe=this.getDatasetMeta(S),Ee=fe.controller._resolveAnimations(void 0,oe);$(w)?(fe.data[w].hidden=!Q,this.update()):(this.setDatasetVisibility(S,Q),Ee.update(fe,{visible:Q}),this.update(it=>it.datasetIndex===S?oe:void 0))}hide(S,w){this._updateVisibility(S,w,!1)}show(S,w){this._updateVisibility(S,w,!0)}_destroyDatasetMeta(S){const w=this._metasets[S];w&&w.controller&&w.controller._destroy(),delete this._metasets[S]}_stop(){let S,w;for(this.stop(),Ml.remove(this),S=0,w=this.data.datasets.length;S<w;++S)this._destroyDatasetMeta(S)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:S,ctx:w}=this;this._stop(),this.config.clearCache(),S&&(this.unbindEvents(),Cr(S,w),this.platform.releaseContext(w),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete Xm[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...S){return this.canvas.toDataURL(...S)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const S=this._listeners,w=this.platform,Q=(fe,Ee)=>{w.addEventListener(this,fe,Ee),S[fe]=Ee},oe=(fe,Ee,it)=>{fe.offsetX=Ee,fe.offsetY=it,this._eventHandler(fe)};I(this.options.events,fe=>Q(fe,oe))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const S=this._responsiveListeners,w=this.platform,Q=(mt,$t)=>{w.addEventListener(this,mt,$t),S[mt]=$t},oe=(mt,$t)=>{S[mt]&&(w.removeEventListener(this,mt,$t),delete S[mt])},fe=(mt,$t)=>{this.canvas&&this.resize(mt,$t)};let Ee;const it=()=>{oe("attach",it),this.attached=!0,this.resize(),Q("resize",fe),Q("detach",Ee)};Ee=()=>{this.attached=!1,oe("resize",fe),this._stop(),this._resize(0,0),Q("attach",it)},w.isAttached(this.canvas)?it():Ee()}unbindEvents(){I(this._listeners,(S,w)=>{this.platform.removeEventListener(this,w,S)}),this._listeners={},I(this._responsiveListeners,(S,w)=>{this.platform.removeEventListener(this,w,S)}),this._responsiveListeners=void 0}updateHoverStyle(S,w,Q){const oe=Q?"set":"remove";let fe,Ee,it,mt;for("dataset"===w&&(fe=this.getDatasetMeta(S[0].datasetIndex),fe.controller["_"+oe+"DatasetHoverStyle"]()),it=0,mt=S.length;it<mt;++it){Ee=S[it];const $t=Ee&&this.getDatasetMeta(Ee.datasetIndex).controller;$t&&$t[oe+"HoverStyle"](Ee.element,Ee.datasetIndex,Ee.index)}}getActiveElements(){return this._active||[]}setActiveElements(S){const w=this._active||[],Q=S.map(({datasetIndex:fe,index:Ee})=>{const it=this.getDatasetMeta(fe);if(!it)throw new Error("No dataset found at index "+fe);return{datasetIndex:fe,element:it.data[Ee],index:Ee}});!H(Q,w)&&(this._active=Q,this._lastEvent=null,this._updateHoverStyles(Q,w))}notifyPlugins(S,w,Q){return this._plugins.notify(this,S,w,Q)}_updateHoverStyles(S,w,Q){const oe=this.options.hover,fe=(mt,$t)=>mt.filter(ai=>!$t.some(Ai=>ai.datasetIndex===Ai.datasetIndex&&ai.index===Ai.index)),Ee=fe(w,S),it=Q?S:fe(S,w);Ee.length&&this.updateHoverStyle(Ee,oe.mode,!1),it.length&&oe.mode&&this.updateHoverStyle(it,oe.mode,!0)}_eventHandler(S,w){const Q={event:S,replay:w,cancelable:!0,inChartArea:this.isPointInArea(S)},oe=Ee=>(Ee.options.events||this.options.events).includes(S.native.type);if(!1===this.notifyPlugins("beforeEvent",Q,oe))return;const fe=this._handleEvent(S,w,Q.inChartArea);return Q.cancelable=!1,this.notifyPlugins("afterEvent",Q,oe),(fe||Q.changed)&&this.render(),this}_handleEvent(S,w,Q){const{_active:oe=[],options:fe}=this,it=this._getActiveElements(S,oe,Q,w),mt=function Ke(U){return"mouseup"===U.type||"click"===U.type||"contextmenu"===U.type}(S),$t=function Kc(U,S,w,Q){return w&&"mouseout"!==U.type?Q?S:U:null}(S,this._lastEvent,Q,mt);Q&&(this._lastEvent=null,b(fe.onHover,[S,it,this],this),mt&&b(fe.onClick,[S,it,this],this));const ai=!H(it,oe);return(ai||w)&&(this._active=it,this._updateHoverStyles(it,oe,w)),this._lastEvent=$t,ai}_getActiveElements(S,w,Q,oe){if("mouseout"===S.type)return[];if(!Q)return w;const fe=this.options.hover;return this.getElementsAtEventForMode(S,fe.mode,fe,oe)}}const Nu=()=>I(fm.instances,U=>U._plugins.invalidate()),yd=!0;function gm(U,S,w){const{startAngle:Q,pixelMargin:oe,x:fe,y:Ee,outerRadius:it,innerRadius:mt}=S;let $t=oe/it;U.beginPath(),U.arc(fe,Ee,it,Q-$t,w+$t),mt>oe?($t=oe/mt,U.arc(fe,Ee,mt,w+$t,Q-$t,!0)):U.arc(fe,Ee,oe,w+Se,Q-Se),U.closePath(),U.clip()}function Od(U,S,w,Q){return{x:w+U*Math.cos(S),y:Q+U*Math.sin(S)}}function Uu(U,S,w,Q,oe,fe){const{x:Ee,y:it,startAngle:mt,pixelMargin:$t,innerRadius:ai}=S,Ai=Math.max(S.outerRadius+Q+w-$t,0),ao=ai>0?ai+Q+w+$t:0;let go=0;const Co=oe-mt;if(Q){const Qc=((ai>0?ai-Q:0)+(Ai>0?Ai-Q:0))/2;go=(Co-(0!==Qc?Co*Qc/(Qc+Q):Co))/2}const nr=(Co-Math.max(.001,Co*Ai-w/at)/Ai)/2,mr=mt+nr+go,Br=oe-nr-go,{outerStart:wr,outerEnd:Jr,innerStart:ir,innerEnd:na}=function bu(U,S,w,Q){const oe=function vu(U){return hs(U,["outerStart","outerEnd","innerStart","innerEnd"])}(U.options.borderRadius),fe=(w-S)/2,Ee=Math.min(fe,Q*S/2),it=mt=>{const $t=(w-Math.min(fe,mt))*Q/2;return dt(mt,0,Math.min(fe,$t))};return{outerStart:it(oe.outerStart),outerEnd:it(oe.outerEnd),innerStart:dt(oe.innerStart,0,Ee),innerEnd:dt(oe.innerEnd,0,Ee)}}(S,ao,Ai,Br-mr),Ea=Ai-wr,gs=Ai-Jr,Gr=mr+wr/Ea,Bl=Br-Jr/gs,Yl=ao+ir,us=ao+na,kd=mr+ir/Yl,Cm=Br-na/us;if(U.beginPath(),fe){if(U.arc(Ee,it,Ai,Gr,Bl),Jr>0){const Qc=Od(gs,Bl,Ee,it);U.arc(Qc.x,Qc.y,Jr,Bl,Br+Se)}const _l=Od(us,Br,Ee,it);if(U.lineTo(_l.x,_l.y),na>0){const Qc=Od(us,Cm,Ee,it);U.arc(Qc.x,Qc.y,na,Br+Se,Cm+Math.PI)}if(U.arc(Ee,it,ao,Br-na/ao,mr+ir/ao,!0),ir>0){const Qc=Od(Yl,kd,Ee,it);U.arc(Qc.x,Qc.y,ir,kd+Math.PI,mr-Se)}const Ws=Od(Ea,mr,Ee,it);if(U.lineTo(Ws.x,Ws.y),wr>0){const Qc=Od(Ea,Gr,Ee,it);U.arc(Qc.x,Qc.y,wr,mr-Se,Gr)}}else{U.moveTo(Ee,it);const _l=Math.cos(Gr)*Ai+Ee,Ws=Math.sin(Gr)*Ai+it;U.lineTo(_l,Ws);const Qc=Math.cos(Bl)*Ai+Ee,Wu=Math.sin(Bl)*Ai+it;U.lineTo(Qc,Wu)}U.closePath()}Object.defineProperties(fm,{defaults:{enumerable:yd,value:xi},instances:{enumerable:yd,value:Xm},overrides:{enumerable:yd,value:In},registry:{enumerable:yd,value:h},version:{enumerable:yd,value:"3.9.1"},getChart:{enumerable:yd,value:Um},register:{enumerable:yd,value:(...U)=>{h.add(...U),Nu()}},unregister:{enumerable:yd,value:(...U)=>{h.remove(...U),Nu()}}});class hm extends Tl{constructor(S){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,S&&Object.assign(this,S)}inRange(S,w,Q){const oe=this.getProps(["x","y"],Q),{angle:fe,distance:Ee}=Dt(oe,{x:S,y:w}),{startAngle:it,endAngle:mt,innerRadius:$t,outerRadius:ai,circumference:Ai}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],Q),ao=this.options.spacing/2,Co=x(Ai,mt-it)>=Le||Je(fe,it,mt),Vo=ot(Ee,$t+ao,ai+ao);return Co&&Vo}getCenterPoint(S){const{x:w,y:Q,startAngle:oe,endAngle:fe,innerRadius:Ee,outerRadius:it}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],S),{offset:mt,spacing:$t}=this.options,ai=(oe+fe)/2,Ai=(Ee+it+$t+mt)/2;return{x:w+Math.cos(ai)*Ai,y:Q+Math.sin(ai)*Ai}}tooltipPosition(S){return this.getCenterPoint(S)}draw(S){const{options:w,circumference:Q}=this,oe=(w.offset||0)/2,fe=(w.spacing||0)/2,Ee=w.circular;if(this.pixelMargin="inner"===w.borderAlign?.33:0,this.fullCircles=Q>Le?Math.floor(Q/Le):0,0===Q||this.innerRadius<0||this.outerRadius<0)return;S.save();let it=0;if(oe){it=oe/2;const $t=(this.startAngle+this.endAngle)/2;S.translate(Math.cos($t)*it,Math.sin($t)*it),this.circumference>=at&&(it=oe)}S.fillStyle=w.backgroundColor,S.strokeStyle=w.borderColor;const mt=function qu(U,S,w,Q,oe){const{fullCircles:fe,startAngle:Ee,circumference:it}=S;let mt=S.endAngle;if(fe){Uu(U,S,w,Q,Ee+Le,oe);for(let $t=0;$t<fe;++$t)U.fill();isNaN(it)||(mt=Ee+it%Le,it%Le==0&&(mt+=Le))}return Uu(U,S,w,Q,mt,oe),U.fill(),mt}(S,this,it,fe,Ee);(function Am(U,S,w,Q,oe,fe){const{options:Ee}=S,{borderWidth:it,borderJoinStyle:mt}=Ee,$t="inner"===Ee.borderAlign;it&&($t?(U.lineWidth=2*it,U.lineJoin=mt||"round"):(U.lineWidth=it,U.lineJoin=mt||"bevel"),S.fullCircles&&function Bm(U,S,w){const{x:Q,y:oe,startAngle:fe,pixelMargin:Ee,fullCircles:it}=S,mt=Math.max(S.outerRadius-Ee,0),$t=S.innerRadius+Ee;let ai;for(w&&gm(U,S,fe+Le),U.beginPath(),U.arc(Q,oe,$t,fe+Le,fe,!0),ai=0;ai<it;++ai)U.stroke();for(U.beginPath(),U.arc(Q,oe,mt,fe,fe+Le),ai=0;ai<it;++ai)U.stroke()}(U,S,$t),$t&&gm(U,S,oe),Uu(U,S,w,Q,oe,fe),U.stroke())})(S,this,it,fe,mt,Ee),S.restore()}}function fc(U,S,w=S){U.lineCap=x(w.borderCapStyle,S.borderCapStyle),U.setLineDash(x(w.borderDash,S.borderDash)),U.lineDashOffset=x(w.borderDashOffset,S.borderDashOffset),U.lineJoin=x(w.borderJoinStyle,S.borderJoinStyle),U.lineWidth=x(w.borderWidth,S.borderWidth),U.strokeStyle=x(w.borderColor,S.borderColor)}function Zm(U,S,w){U.lineTo(w.x,w.y)}function eu(U,S,w={}){const Q=U.length,{start:oe=0,end:fe=Q-1}=w,{start:Ee,end:it}=S,mt=Math.max(oe,Ee),$t=Math.min(fe,it);return{count:Q,start:mt,loop:S.loop,ilen:$t<mt&&!(oe<Ee&&fe<Ee||oe>it&&fe>it)?Q+$t-mt:$t-mt}}function Tp(U,S,w,Q){const{points:oe,options:fe}=S,{count:Ee,start:it,loop:mt,ilen:$t}=eu(oe,w,Q),ai=function ld(U){return U.stepped?Cs:U.tension||"monotone"===U.cubicInterpolationMode?ms:Zm}(fe);let go,Co,Vo,{move:Ai=!0,reverse:ao}=Q||{};for(go=0;go<=$t;++go)Co=oe[(it+(ao?$t-go:go))%Ee],!Co.skip&&(Ai?(U.moveTo(Co.x,Co.y),Ai=!1):ai(U,Vo,Co,ao,fe.stepped),Vo=Co);return mt&&(Co=oe[(it+(ao?$t:0))%Ee],ai(U,Vo,Co,ao,fe.stepped)),!!mt}function Bu(U,S,w,Q){const oe=S.points,{count:fe,start:Ee,ilen:it}=eu(oe,w,Q),{move:mt=!0,reverse:$t}=Q||{};let ao,go,Co,Vo,nr,mr,ai=0,Ai=0;const Br=Jr=>(Ee+($t?it-Jr:Jr))%fe,wr=()=>{Vo!==nr&&(U.lineTo(ai,nr),U.lineTo(ai,Vo),U.lineTo(ai,mr))};for(mt&&(go=oe[Br(0)],U.moveTo(go.x,go.y)),ao=0;ao<=it;++ao){if(go=oe[Br(ao)],go.skip)continue;const Jr=go.x,ir=go.y,na=0|Jr;na===Co?(ir<Vo?Vo=ir:ir>nr&&(nr=ir),ai=(Ai*ai+Jr)/++Ai):(wr(),U.lineTo(Jr,ir),Co=na,Ai=0,Vo=nr=ir),mr=ir}wr()}function Zu(U){const S=U.options;return U._decimated||U._loop||S.tension||"monotone"===S.cubicInterpolationMode||S.stepped||S.borderDash&&S.borderDash.length?Tp:Bu}hm.id="arc",hm.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},hm.defaultRoutes={backgroundColor:"backgroundColor"};const Xu="function"==typeof Path2D;let Bd=(()=>{class U extends Tl{constructor(w){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,w&&Object.assign(this,w)}updateControlPoints(w,Q){const oe=this.options;!oe.tension&&"monotone"!==oe.cubicInterpolationMode||oe.stepped||this._pointsUpdated||(Is(this._points,oe,w,oe.spanGaps?this._loop:this._fullLoop,Q),this._pointsUpdated=!0)}set points(w){this._points=w,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function _a(U,S){const w=U.points,Q=U.options.spanGaps,oe=w.length;if(!oe)return[];const fe=!!U._loop,{start:Ee,end:it}=function Dl(U,S,w,Q){let oe=0,fe=S-1;if(w&&!Q)for(;oe<S&&!U[oe].skip;)oe++;for(;oe<S&&U[oe].skip;)oe++;for(oe%=S,w&&(fe+=oe);fe>oe&&U[fe%S].skip;)fe--;return fe%=S,{start:oe,end:fe}}(w,oe,fe,Q);return function ts(U,S,w,Q){return Q&&Q.setContext&&w?function rl(U,S,w,Q){const oe=U._chart.getContext(),fe=ya(U.options),{_datasetIndex:Ee,options:{spanGaps:it}}=U,mt=w.length,$t=[];let ai=fe,Ai=S[0].start,ao=Ai;function go(Co,Vo,nr,mr){const Br=it?-1:1;if(Co!==Vo){for(Co+=mt;w[Co%mt].skip;)Co-=Br;for(;w[Vo%mt].skip;)Vo+=Br;Co%mt!=Vo%mt&&($t.push({start:Co%mt,end:Vo%mt,loop:nr,style:mr}),ai=mr,Ai=Vo%mt)}}for(const Co of S){Ai=it?Ai:Co.start;let nr,Vo=w[Ai%mt];for(ao=Ai+1;ao<=Co.end;ao++){const mr=w[ao%mt];nr=ya(Q.setContext(Vi(oe,{type:"segment",p0:Vo,p1:mr,p0DataIndex:(ao-1)%mt,p1DataIndex:ao%mt,datasetIndex:Ee}))),Pl(nr,ai)&&go(Ai,ao-1,Co.loop,ai),Vo=mr,ai=nr}Ai<ao-1&&go(Ai,ao-1,Co.loop,ai)}return $t}(U,S,w,Q):S}(U,!0===Q?[{start:Ee,end:it,loop:fe}]:function Yr(U,S,w,Q){const oe=U.length,fe=[];let mt,Ee=S,it=U[S];for(mt=S+1;mt<=w;++mt){const $t=U[mt%oe];$t.skip||$t.stop?it.skip||(fe.push({start:S%oe,end:(mt-1)%oe,loop:Q=!1}),S=Ee=$t.stop?mt:null):(Ee=mt,it.skip&&(S=mt)),it=$t}return null!==Ee&&fe.push({start:S%oe,end:Ee%oe,loop:Q}),fe}(w,Ee,it<Ee?it+oe:it,!!U._fullLoop&&0===Ee&&it===oe-1),w,S)}(this,this.options.segment))}first(){const w=this.segments;return w.length&&this.points[w[0].start]}last(){const w=this.segments,oe=w.length;return oe&&this.points[w[oe-1].end]}interpolate(w,Q){const oe=this.options,fe=w[Q],Ee=this.points,it=Gs(this,{property:Q,start:fe,end:fe});if(!it.length)return;const mt=[],$t=function Hm(U){return U.stepped?Cl:U.tension||"monotone"===U.cubicInterpolationMode?Ql:ol}(oe);let ai,Ai;for(ai=0,Ai=it.length;ai<Ai;++ai){const{start:ao,end:go}=it[ai],Co=Ee[ao],Vo=Ee[go];if(Co===Vo){mt.push(Co);continue}const mr=$t(Co,Vo,Math.abs((fe-Co[Q])/(Vo[Q]-Co[Q])),oe.stepped);mr[Q]=w[Q],mt.push(mr)}return 1===mt.length?mt[0]:mt}pathSegment(w,Q,oe){return Zu(this)(w,this,Q,oe)}path(w,Q,oe){const fe=this.segments,Ee=Zu(this);let it=this._loop;Q=Q||0,oe=oe||this.points.length-Q;for(const mt of fe)it&=Ee(w,this,mt,{start:Q,end:Q+oe-1});return!!it}draw(w,Q,oe,fe){(this.points||[]).length&&(this.options||{}).borderWidth&&(w.save(),function wm(U,S,w,Q){Xu&&!S.options.segment?function Cu(U,S,w,Q){let oe=S._path;oe||(oe=S._path=new Path2D,S.path(oe,w,Q)&&oe.closePath()),fc(U,S.options),U.stroke(oe)}(U,S,w,Q):function yu(U,S,w,Q){const{segments:oe,options:fe}=S,Ee=Zu(S);for(const it of oe)fc(U,fe,it.style),U.beginPath(),Ee(U,S,it,{start:w,end:w+Q-1})&&U.closePath(),U.stroke()}(U,S,w,Q)}(w,this,oe,fe),w.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}return U.id="line",U.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},U.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},U.descriptors={_scriptable:!0,_indexable:S=>"borderDash"!==S&&"fill"!==S},U})();function xm(U,S,w,Q){const oe=U.options,{[w]:fe}=U.getProps([w],Q);return Math.abs(S-fe)<oe.radius+oe.hitRadius}let Pd=(()=>{class U extends Tl{constructor(w){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,w&&Object.assign(this,w)}inRange(w,Q,oe){const fe=this.options,{x:Ee,y:it}=this.getProps(["x","y"],oe);return Math.pow(w-Ee,2)+Math.pow(Q-it,2)<Math.pow(fe.hitRadius+fe.radius,2)}inXRange(w,Q){return xm(this,w,"x",Q)}inYRange(w,Q){return xm(this,w,"y",Q)}getCenterPoint(w){const{x:Q,y:oe}=this.getProps(["x","y"],w);return{x:Q,y:oe}}size(w){let Q=(w=w||this.options||{}).radius||0;return Q=Math.max(Q,Q&&w.hoverRadius||0),2*(Q+(Q&&w.borderWidth||0))}draw(w,Q){const oe=this.options;this.skip||oe.radius<.1||!Ra(this,Q,this.size(oe)/2)||(w.strokeStyle=oe.borderColor,w.lineWidth=oe.borderWidth,w.fillStyle=oe.backgroundColor,vr(w,oe,this.x,this.y))}getRange(){const w=this.options||{};return w.radius+w.hitRadius}}return U.id="point",U.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},U.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},U})();function kt(U,S){const{x:w,y:Q,base:oe,width:fe,height:Ee}=U.getProps(["x","y","base","width","height"],S);let it,mt,$t,ai,Ai;return U.horizontal?(Ai=Ee/2,it=Math.min(w,oe),mt=Math.max(w,oe),$t=Q-Ai,ai=Q+Ai):(Ai=fe/2,it=w-Ai,mt=w+Ai,$t=Math.min(Q,oe),ai=Math.max(Q,oe)),{left:it,top:$t,right:mt,bottom:ai}}function Jt(U,S,w,Q){return U?0:dt(S,w,Q)}function Ht(U,S,w,Q){const oe=null===S,fe=null===w,it=U&&!(oe&&fe)&&kt(U,Q);return it&&(oe||ot(S,it.left,it.right))&&(fe||ot(w,it.top,it.bottom))}function Lo(U,S){U.rect(S.x,S.y,S.w,S.h)}function ur(U,S,w={}){const Q=U.x!==w.x?-S:0,oe=U.y!==w.y?-S:0;return{x:U.x+Q,y:U.y+oe,w:U.w+((U.x+U.w!==w.x+w.w?S:0)-Q),h:U.h+((U.y+U.h!==w.y+w.h?S:0)-oe),radius:U.radius}}class rr extends Tl{constructor(S){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,S&&Object.assign(this,S)}draw(S){const{inflateAmount:w,options:{borderColor:Q,backgroundColor:oe}}=this,{inner:fe,outer:Ee}=function Qe(U){const S=kt(U),w=S.right-S.left,Q=S.bottom-S.top,oe=function he(U,S,w){const oe=U.borderSkipped,fe=Ua(U.options.borderWidth);return{t:Jt(oe.top,fe.top,0,w),r:Jt(oe.right,fe.right,0,S),b:Jt(oe.bottom,fe.bottom,0,w),l:Jt(oe.left,fe.left,0,S)}}(U,w/2,Q/2),fe=function Re(U,S,w){const{enableBorderRadius:Q}=U.getProps(["enableBorderRadius"]),oe=U.options.borderRadius,fe=Tn(oe),Ee=Math.min(S,w),it=U.borderSkipped,mt=Q||p(oe);return{topLeft:Jt(!mt||it.top||it.left,fe.topLeft,0,Ee),topRight:Jt(!mt||it.top||it.right,fe.topRight,0,Ee),bottomLeft:Jt(!mt||it.bottom||it.left,fe.bottomLeft,0,Ee),bottomRight:Jt(!mt||it.bottom||it.right,fe.bottomRight,0,Ee)}}(U,w/2,Q/2);return{outer:{x:S.left,y:S.top,w,h:Q,radius:fe},inner:{x:S.left+oe.l,y:S.top+oe.t,w:w-oe.l-oe.r,h:Q-oe.t-oe.b,radius:{topLeft:Math.max(0,fe.topLeft-Math.max(oe.t,oe.l)),topRight:Math.max(0,fe.topRight-Math.max(oe.t,oe.r)),bottomLeft:Math.max(0,fe.bottomLeft-Math.max(oe.b,oe.l)),bottomRight:Math.max(0,fe.bottomRight-Math.max(oe.b,oe.r))}}}}(this),it=function qt(U){return U.topLeft||U.topRight||U.bottomLeft||U.bottomRight}(Ee.radius)?ls:Lo;S.save(),(Ee.w!==fe.w||Ee.h!==fe.h)&&(S.beginPath(),it(S,ur(Ee,w,fe)),S.clip(),it(S,ur(fe,-w,Ee)),S.fillStyle=Q,S.fill("evenodd")),S.beginPath(),it(S,ur(fe,w)),S.fillStyle=oe,S.fill(),S.restore()}inRange(S,w,Q){return Ht(this,S,w,Q)}inXRange(S,w){return Ht(this,S,null,w)}inYRange(S,w){return Ht(this,null,S,w)}getCenterPoint(S){const{x:w,y:Q,base:oe,horizontal:fe}=this.getProps(["x","y","base","horizontal"],S);return{x:fe?(w+oe)/2:w,y:fe?Q:(Q+oe)/2}}getRange(S){return"x"===S?this.width/2:this.height/2}}rr.id="bar",rr.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},rr.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Oa=Object.freeze({__proto__:null,ArcElement:hm,LineElement:Bd,PointElement:Pd,BarElement:rr});function fs(U){if(U._decimated){const S=U._data;delete U._decimated,delete U._data,Object.defineProperty(U,"data",{value:S})}}function El(U){U.data.datasets.forEach(S=>{fs(S)})}var Pc={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(U,S,w)=>{if(!w.enabled)return void El(U);const Q=U.width;U.data.datasets.forEach((oe,fe)=>{const{_data:Ee,indexAxis:it}=oe,mt=U.getDatasetMeta(fe),$t=Ee||oe.data;if("y"===sr([it,U.options.indexAxis])||!mt.controller.supportsDecimation)return;const ai=U.scales[mt.xAxisID];if("linear"!==ai.type&&"time"!==ai.type||U.options.parsing)return;let Co,{start:Ai,count:ao}=function Ic(U,S){const w=S.length;let oe,Q=0;const{iScale:fe}=U,{min:Ee,max:it,minDefined:mt,maxDefined:$t}=fe.getUserBounds();return mt&&(Q=dt(tn(S,fe.axis,Ee).lo,0,w-1)),oe=$t?dt(tn(S,fe.axis,it).hi+1,Q,w)-Q:w-Q,{start:Q,count:oe}}(mt,$t);if(ao<=(w.threshold||4*Q))fs(oe);else{switch(i(Ee)&&(oe._data=$t,delete oe.data,Object.defineProperty(oe,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(Vo){this._data=Vo}})),w.algorithm){case"lttb":Co=function Pa(U,S,w,Q,oe){const fe=oe.samples||Q;if(fe>=w)return U.slice(S,S+w);const Ee=[],it=(w-2)/(fe-2);let mt=0;const $t=S+w-1;let Ai,ao,go,Co,Vo,ai=S;for(Ee[mt++]=U[ai],Ai=0;Ai<fe-2;Ai++){let Br,nr=0,mr=0;const wr=Math.floor((Ai+1)*it)+1+S,Jr=Math.min(Math.floor((Ai+2)*it)+1,w)+S,ir=Jr-wr;for(Br=wr;Br<Jr;Br++)nr+=U[Br].x,mr+=U[Br].y;nr/=ir,mr/=ir;const na=Math.floor(Ai*it)+1+S,Ea=Math.min(Math.floor((Ai+1)*it)+1,w)+S,{x:gs,y:Gr}=U[ai];for(go=Co=-1,Br=na;Br<Ea;Br++)Co=.5*Math.abs((gs-nr)*(U[Br].y-Gr)-(gs-U[Br].x)*(mr-Gr)),Co>go&&(go=Co,ao=U[Br],Vo=Br);Ee[mt++]=ao,ai=Vo}return Ee[mt++]=U[$t],Ee}($t,Ai,ao,Q,w);break;case"min-max":Co=function Ja(U,S,w,Q){let Ee,it,mt,$t,ai,Ai,ao,go,Co,Vo,oe=0,fe=0;const nr=[],Br=U[S].x,Jr=U[S+w-1].x-Br;for(Ee=S;Ee<S+w;++Ee){it=U[Ee],mt=(it.x-Br)/Jr*Q,$t=it.y;const ir=0|mt;if(ir===ai)$t<Co?(Co=$t,Ai=Ee):$t>Vo&&(Vo=$t,ao=Ee),oe=(fe*oe+it.x)/++fe;else{const na=Ee-1;if(!i(Ai)&&!i(ao)){const Ea=Math.min(Ai,ao),gs=Math.max(Ai,ao);Ea!==go&&Ea!==na&&nr.push({...U[Ea],x:oe}),gs!==go&&gs!==na&&nr.push({...U[gs],x:oe})}Ee>0&&na!==go&&nr.push(U[na]),nr.push(it),ai=ir,fe=0,Co=Vo=$t,Ai=ao=go=Ee}}return nr}($t,Ai,ao,Q);break;default:throw new Error(`Unsupported decimation algorithm '${w.algorithm}'`)}oe._decimated=Co}})},destroy(U){El(U)}};function $c(U,S,w,Q){if(Q)return;let oe=S[U],fe=w[U];return"angle"===U&&(oe=Xt(oe),fe=Xt(fe)),{property:U,start:oe,end:fe}}function qc(U,S,w){for(;S>U;S--){const Q=w[S];if(!isNaN(Q.x)&&!isNaN(Q.y))break}return S}function Dm(U,S,w,Q){return U&&S?Q(U[w],S[w]):U?U[w]:S?S[w]:0}function oc(U,S){let w=[],Q=!1;return t(U)?(Q=!0,w=U):w=function ud(U,S){const{x:w=null,y:Q=null}=U||{},oe=S.points,fe=[];return S.segments.forEach(({start:Ee,end:it})=>{it=qc(Ee,it,oe);const mt=oe[Ee],$t=oe[it];null!==Q?(fe.push({x:mt.x,y:Q}),fe.push({x:$t.x,y:Q})):null!==w&&(fe.push({x:w,y:mt.y}),fe.push({x:w,y:$t.y}))}),fe}(U,S),w.length?new Bd({points:w,options:{tension:0},_loop:Q,_fullLoop:Q}):null}function Zd(U){return U&&!1!==U.fill}function Sc(U,S,w){let oe=U[S].fill;const fe=[S];let Ee;if(!w)return oe;for(;!1!==oe&&-1===fe.indexOf(oe);){if(!c(oe))return oe;if(Ee=U[oe],!Ee)return!1;if(Ee.visible)return oe;fe.push(oe),oe=Ee.fill}return!1}function Md(U,S,w){const Q=function Gm(U){const S=U.options,w=S.fill;let Q=x(w&&w.target,w);return void 0===Q&&(Q=!!S.backgroundColor),!1!==Q&&null!==Q&&(!0===Q?"origin":Q)}(U);if(p(Q))return!isNaN(Q.value)&&Q;let oe=parseFloat(Q);return c(oe)&&Math.floor(oe)===oe?function Pm(U,S,w,Q){return("-"===U||"+"===U)&&(w=S+w),!(w===S||w<0||w>=Q)&&w}(Q[0],S,oe,w):["origin","start","end","stack","shape"].indexOf(Q)>=0&&Q}function Hc(U,S,w){const Q=[];for(let oe=0;oe<w.length;oe++){const fe=w[oe],{first:Ee,last:it,point:mt}=Hd(fe,S,"x");if(!(!mt||Ee&&it))if(Ee)Q.unshift(mt);else if(U.push(mt),!it)break}U.push(...Q)}function Hd(U,S,w){const Q=U.interpolate(S,w);if(!Q)return{};const oe=Q[w],fe=U.segments,Ee=U.points;let it=!1,mt=!1;for(let $t=0;$t<fe.length;$t++){const ai=fe[$t],Ai=Ee[ai.start][w],ao=Ee[ai.end][w];if(ot(oe,Ai,ao)){it=oe===Ai,mt=oe===ao;break}}return{first:it,last:mt,point:Q}}class Pu{constructor(S){this.x=S.x,this.y=S.y,this.radius=S.radius}pathSegment(S,w,Q){const{x:oe,y:fe,radius:Ee}=this;return S.arc(oe,fe,Ee,(w=w||{start:0,end:Le}).end,w.start,!0),!Q.bounds}interpolate(S){const{x:w,y:Q,radius:oe}=this,fe=S.angle;return{x:w+Math.cos(fe)*oe,y:Q+Math.sin(fe)*oe,angle:fe}}}function gc(U,S,w){const Q=function tu(U){const{chart:S,fill:w,line:Q}=U;if(c(w))return function Jm(U,S){const w=U.getDatasetMeta(S);return w&&U.isDatasetVisible(S)?w.dataset:null}(S,w);if("stack"===w)return function Ou(U){const{scale:S,index:w,line:Q}=U,oe=[],fe=Q.segments,Ee=Q.points,it=function Lc(U,S){const w=[],Q=U.getMatchingVisibleMetas("line");for(let oe=0;oe<Q.length;oe++){const fe=Q[oe];if(fe.index===S)break;fe.hidden||w.unshift(fe.dataset)}return w}(S,w);it.push(oc({x:null,y:S.bottom},Q));for(let mt=0;mt<fe.length;mt++){const $t=fe[mt];for(let ai=$t.start;ai<=$t.end;ai++)Hc(oe,Ee[ai],it)}return new Bd({points:oe,options:{}})}(U);if("shape"===w)return!0;const oe=function Mu(U){return(U.scale||{}).getPointPositionForValue?function Mc(U){const{scale:S,fill:w}=U,Q=S.options,oe=S.getLabels().length,fe=Q.reverse?S.max:S.min,Ee=function Mm(U,S,w){let Q;return Q="start"===U?w:"end"===U?S.options.reverse?S.min:S.max:p(U)?U.value:S.getBaseValue(),Q}(w,S,fe),it=[];if(Q.grid.circular){const mt=S.getPointPositionForValue(0,fe);return new Pu({x:mt.x,y:mt.y,radius:S.getDistanceFromCenterForValue(Ee)})}for(let mt=0;mt<oe;++mt)it.push(S.getPointPositionForValue(mt,Ee));return it}(U):function Im(U){const{scale:S={},fill:w}=U,Q=function Td(U,S){let w=null;return"start"===U?w=S.bottom:"end"===U?w=S.top:p(U)?w=S.getPixelForValue(U.value):S.getBasePixel&&(w=S.getBasePixel()),w}(w,S);if(c(Q)){const oe=S.isHorizontal();return{x:oe?Q:null,y:oe?null:Q}}return null}(U)}(U);return oe instanceof Pu?oe:oc(oe,Q)}(S),{line:oe,scale:fe,axis:Ee}=S,it=oe.options,mt=it.fill,$t=it.backgroundColor,{above:ai=$t,below:Ai=$t}=mt||{};Q&&oe.points.length&&(ss(U,w),function $d(U,S){const{line:w,target:Q,above:oe,below:fe,area:Ee,scale:it}=S,mt=w._loop?"angle":S.axis;U.save(),"x"===mt&&fe!==oe&&(Rd(U,Q,Ee.top),nu(U,{line:w,target:Q,color:oe,scale:it,property:mt}),U.restore(),U.save(),Rd(U,Q,Ee.bottom)),nu(U,{line:w,target:Q,color:fe,scale:it,property:mt}),U.restore()}(U,{line:oe,target:Q,above:ai,below:Ai,area:w,scale:fe,axis:Ee}),Hs(U))}function Rd(U,S,w){const{segments:Q,points:oe}=S;let fe=!0,Ee=!1;U.beginPath();for(const it of Q){const{start:mt,end:$t}=it,ai=oe[mt],Ai=oe[qc(mt,$t,oe)];fe?(U.moveTo(ai.x,ai.y),fe=!1):(U.lineTo(ai.x,w),U.lineTo(ai.x,ai.y)),Ee=!!S.pathSegment(U,it,{move:Ee}),Ee?U.closePath():U.lineTo(Ai.x,w)}U.lineTo(S.first().x,w),U.closePath(),U.clip()}function nu(U,S){const{line:w,target:Q,property:oe,color:fe,scale:Ee}=S,it=function td(U,S,w){const Q=U.segments,oe=U.points,fe=S.points,Ee=[];for(const it of Q){let{start:mt,end:$t}=it;$t=qc(mt,$t,oe);const ai=$c(w,oe[mt],oe[$t],it.loop);if(!S.segments){Ee.push({source:it,target:ai,start:oe[mt],end:oe[$t]});continue}const Ai=Gs(S,ai);for(const ao of Ai){const go=$c(w,fe[ao.start],fe[ao.end],ao.loop),Co=ql(it,oe,go);for(const Vo of Co)Ee.push({source:Vo,target:ao,start:{[w]:Dm(ai,go,"start",Math.max)},end:{[w]:Dm(ai,go,"end",Math.min)}})}}return Ee}(w,Q,oe);for(const{source:mt,target:$t,start:ai,end:Ai}of it){const{style:{backgroundColor:ao=fe}={}}=mt,go=!0!==Q;U.save(),U.fillStyle=ao,Gc(U,Ee,go&&$c(oe,ai,Ai)),U.beginPath();const Co=!!w.pathSegment(U,mt);let Vo;if(go){Co?U.closePath():sc(U,Q,Ai,oe);const nr=!!Q.pathSegment(U,$t,{move:Co,reverse:!0});Vo=Co&&nr,Vo||sc(U,Q,ai,oe)}U.closePath(),U.fill(Vo?"evenodd":"nonzero"),U.restore()}}function Gc(U,S,w){const{top:Q,bottom:oe}=S.chart.chartArea,{property:fe,start:Ee,end:it}=w||{};"x"===fe&&(U.beginPath(),U.rect(Ee,Q,it-Ee,oe-Q),U.clip())}function sc(U,S,w,Q){const oe=S.interpolate(w,Q);oe&&U.lineTo(oe.x,oe.y)}var pd={id:"filler",afterDatasetsUpdate(U,S,w){const Q=(U.data.datasets||[]).length,oe=[];let fe,Ee,it,mt;for(Ee=0;Ee<Q;++Ee)fe=U.getDatasetMeta(Ee),it=fe.dataset,mt=null,it&&it.options&&it instanceof Bd&&(mt={visible:U.isDatasetVisible(Ee),index:Ee,fill:Md(it,Ee,Q),chart:U,axis:fe.controller.options.indexAxis,scale:fe.vScale,line:it}),fe.$filler=mt,oe.push(mt);for(Ee=0;Ee<Q;++Ee)mt=oe[Ee],mt&&!1!==mt.fill&&(mt.fill=Sc(oe,Ee,w.propagate))},beforeDraw(U,S,w){const Q="beforeDraw"===w.drawTime,oe=U.getSortedVisibleDatasetMetas(),fe=U.chartArea;for(let Ee=oe.length-1;Ee>=0;--Ee){const it=oe[Ee].$filler;it&&(it.line.updateControlPoints(fe,it.axis),Q&&it.fill&&gc(U.ctx,it,fe))}},beforeDatasetsDraw(U,S,w){if("beforeDatasetsDraw"!==w.drawTime)return;const Q=U.getSortedVisibleDatasetMetas();for(let oe=Q.length-1;oe>=0;--oe){const fe=Q[oe].$filler;Zd(fe)&&gc(U.ctx,fe,U.chartArea)}},beforeDatasetDraw(U,S,w){const Q=S.meta.$filler;!Zd(Q)||"beforeDatasetDraw"!==w.drawTime||gc(U.ctx,Q,U.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const rm=(U,S)=>{let{boxHeight:w=S,boxWidth:Q=S}=U;return U.usePointStyle&&(w=Math.min(w,S),Q=U.pointStyleWidth||Math.min(Q,S)),{boxWidth:Q,boxHeight:w,itemHeight:Math.max(S,w)}};class vm extends Tl{constructor(S){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=S.chart,this.options=S.options,this.ctx=S.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(S,w,Q){this.maxWidth=S,this.maxHeight=w,this._margins=Q,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const S=this.options.labels||{};let w=b(S.generateLabels,[this.chart],this)||[];S.filter&&(w=w.filter(Q=>S.filter(Q,this.chart.data))),S.sort&&(w=w.sort((Q,oe)=>S.sort(Q,oe,this.chart.data))),this.options.reverse&&w.reverse(),this.legendItems=w}fit(){const{options:S,ctx:w}=this;if(!S.display)return void(this.width=this.height=0);const Q=S.labels,oe=To(Q.font),fe=oe.size,Ee=this._computeTitleHeight(),{boxWidth:it,itemHeight:mt}=rm(Q,fe);let $t,ai;w.font=oe.string,this.isHorizontal()?($t=this.maxWidth,ai=this._fitRows(Ee,fe,it,mt)+10):(ai=this.maxHeight,$t=this._fitCols(Ee,fe,it,mt)+10),this.width=Math.min($t,S.maxWidth||this.maxWidth),this.height=Math.min(ai,S.maxHeight||this.maxHeight)}_fitRows(S,w,Q,oe){const{ctx:fe,maxWidth:Ee,options:{labels:{padding:it}}}=this,mt=this.legendHitBoxes=[],$t=this.lineWidths=[0],ai=oe+it;let Ai=S;fe.textAlign="left",fe.textBaseline="middle";let ao=-1,go=-ai;return this.legendItems.forEach((Co,Vo)=>{const nr=Q+w/2+fe.measureText(Co.text).width;(0===Vo||$t[$t.length-1]+nr+2*it>Ee)&&(Ai+=ai,$t[$t.length-(Vo>0?0:1)]=0,go+=ai,ao++),mt[Vo]={left:0,top:go,row:ao,width:nr,height:oe},$t[$t.length-1]+=nr+it}),Ai}_fitCols(S,w,Q,oe){const{ctx:fe,maxHeight:Ee,options:{labels:{padding:it}}}=this,mt=this.legendHitBoxes=[],$t=this.columnSizes=[],ai=Ee-S;let Ai=it,ao=0,go=0,Co=0,Vo=0;return this.legendItems.forEach((nr,mr)=>{const Br=Q+w/2+fe.measureText(nr.text).width;mr>0&&go+oe+2*it>ai&&(Ai+=ao+it,$t.push({width:ao,height:go}),Co+=ao+it,Vo++,ao=go=0),mt[mr]={left:Co,top:go,col:Vo,width:Br,height:oe},ao=Math.max(ao,Br),go+=oe+it}),Ai+=ao,$t.push({width:ao,height:go}),Ai}adjustHitBoxes(){if(!this.options.display)return;const S=this._computeTitleHeight(),{legendHitBoxes:w,options:{align:Q,labels:{padding:oe},rtl:fe}}=this,Ee=Ba(fe,this.left,this.width);if(this.isHorizontal()){let it=0,mt=ji(Q,this.left+oe,this.right-this.lineWidths[it]);for(const $t of w)it!==$t.row&&(it=$t.row,mt=ji(Q,this.left+oe,this.right-this.lineWidths[it])),$t.top+=this.top+S+oe,$t.left=Ee.leftForLtr(Ee.x(mt),$t.width),mt+=$t.width+oe}else{let it=0,mt=ji(Q,this.top+S+oe,this.bottom-this.columnSizes[it].height);for(const $t of w)$t.col!==it&&(it=$t.col,mt=ji(Q,this.top+S+oe,this.bottom-this.columnSizes[it].height)),$t.top=mt,$t.left+=this.left+oe,$t.left=Ee.leftForLtr(Ee.x($t.left),$t.width),mt+=$t.height+oe}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const S=this.ctx;ss(S,this),this._draw(),Hs(S)}}_draw(){const{options:S,columnSizes:w,lineWidths:Q,ctx:oe}=this,{align:fe,labels:Ee}=S,it=xi.color,mt=Ba(S.rtl,this.left,this.width),$t=To(Ee.font),{color:ai,padding:Ai}=Ee,ao=$t.size,go=ao/2;let Co;this.drawTitle(),oe.textAlign=mt.textAlign("left"),oe.textBaseline="middle",oe.lineWidth=.5,oe.font=$t.string;const{boxWidth:Vo,boxHeight:nr,itemHeight:mr}=rm(Ee,ao),Jr=this.isHorizontal(),ir=this._computeTitleHeight();Co=Jr?{x:ji(fe,this.left+Ai,this.right-Q[0]),y:this.top+Ai+ir,line:0}:{x:this.left+Ai,y:ji(fe,this.top+ir+Ai,this.bottom-w[0].height),line:0},Ka(this.ctx,S.textDirection);const na=mr+Ai;this.legendItems.forEach((Ea,gs)=>{oe.strokeStyle=Ea.fontColor||ai,oe.fillStyle=Ea.fontColor||ai;const Gr=oe.measureText(Ea.text).width,Bl=mt.textAlign(Ea.textAlign||(Ea.textAlign=Ee.textAlign)),Yl=Vo+go+Gr;let us=Co.x,kd=Co.y;mt.setWidth(this.width),Jr?gs>0&&us+Yl+Ai>this.right&&(kd=Co.y+=na,Co.line++,us=Co.x=ji(fe,this.left+Ai,this.right-Q[Co.line])):gs>0&&kd+na>this.bottom&&(us=Co.x=us+w[Co.line].width+Ai,Co.line++,kd=Co.y=ji(fe,this.top+ir+Ai,this.bottom-w[Co.line].height)),function(Ea,gs,Gr){if(isNaN(Vo)||Vo<=0||isNaN(nr)||nr<0)return;oe.save();const Bl=x(Gr.lineWidth,1);if(oe.fillStyle=x(Gr.fillStyle,it),oe.lineCap=x(Gr.lineCap,"butt"),oe.lineDashOffset=x(Gr.lineDashOffset,0),oe.lineJoin=x(Gr.lineJoin,"miter"),oe.lineWidth=Bl,oe.strokeStyle=x(Gr.strokeStyle,it),oe.setLineDash(x(Gr.lineDash,[])),Ee.usePointStyle){const Yl={radius:nr*Math.SQRT2/2,pointStyle:Gr.pointStyle,rotation:Gr.rotation,borderWidth:Bl},us=mt.xPlus(Ea,Vo/2);qr(oe,Yl,us,gs+go,Ee.pointStyleWidth&&Vo)}else{const Yl=gs+Math.max((ao-nr)/2,0),us=mt.leftForLtr(Ea,Vo),kd=Tn(Gr.borderRadius);oe.beginPath(),Object.values(kd).some(Cm=>0!==Cm)?ls(oe,{x:us,y:Yl,w:Vo,h:nr,radius:kd}):oe.rect(us,Yl,Vo,nr),oe.fill(),0!==Bl&&oe.stroke()}oe.restore()}(mt.x(us),kd,Ea),us=((U,S,w,Q)=>U===(Q?"left":"right")?w:"center"===U?(S+w)/2:S)(Bl,us+Vo+go,Jr?us+Yl:this.right,S.rtl),function(Ea,gs,Gr){ja(oe,Gr.text,Ea,gs+mr/2,$t,{strikethrough:Gr.hidden,textAlign:mt.textAlign(Gr.textAlign)})}(mt.x(us),kd,Ea),Jr?Co.x+=Yl+Ai:Co.y+=na}),vc(this.ctx,S.textDirection)}drawTitle(){const S=this.options,w=S.title,Q=To(w.font),oe=Qi(w.padding);if(!w.display)return;const fe=Ba(S.rtl,this.left,this.width),Ee=this.ctx,it=w.position,$t=oe.top+Q.size/2;let ai,Ai=this.left,ao=this.width;if(this.isHorizontal())ao=Math.max(...this.lineWidths),ai=this.top+$t,Ai=ji(S.align,Ai,this.right-ao);else{const Co=this.columnSizes.reduce((Vo,nr)=>Math.max(Vo,nr.height),0);ai=$t+ji(S.align,this.top,this.bottom-Co-S.labels.padding-this._computeTitleHeight())}const go=ji(it,Ai,Ai+ao);Ee.textAlign=fe.textAlign(Li(it)),Ee.textBaseline="middle",Ee.strokeStyle=w.color,Ee.fillStyle=w.color,Ee.font=Q.string,ja(Ee,w.text,go,ai,Q)}_computeTitleHeight(){const S=this.options.title,w=To(S.font),Q=Qi(S.padding);return S.display?w.lineHeight+Q.height:0}_getLegendItemAt(S,w){let Q,oe,fe;if(ot(S,this.left,this.right)&&ot(w,this.top,this.bottom))for(fe=this.legendHitBoxes,Q=0;Q<fe.length;++Q)if(oe=fe[Q],ot(S,oe.left,oe.left+oe.width)&&ot(w,oe.top,oe.top+oe.height))return this.legendItems[Q];return null}handleEvent(S){const w=this.options;if(!function Us(U,S){return!(("mousemove"!==U&&"mouseout"!==U||!S.onHover&&!S.onLeave)&&(!S.onClick||"click"!==U&&"mouseup"!==U))}(S.type,w))return;const Q=this._getLegendItemAt(S.x,S.y);if("mousemove"===S.type||"mouseout"===S.type){const oe=this._hoveredItem,fe=((U,S)=>null!==U&&null!==S&&U.datasetIndex===S.datasetIndex&&U.index===S.index)(oe,Q);oe&&!fe&&b(w.onLeave,[S,oe,this],this),this._hoveredItem=Q,Q&&!fe&&b(w.onHover,[S,Q,this],this)}else Q&&b(w.onClick,[S,Q,this],this)}}var Tu={id:"legend",_element:vm,start(U,S,w){const Q=U.legend=new vm({ctx:U.ctx,options:w,chart:U});Es.configure(U,Q,w),Es.addBox(U,Q)},stop(U){Es.removeBox(U,U.legend),delete U.legend},beforeUpdate(U,S,w){const Q=U.legend;Es.configure(U,Q,w),Q.options=w},afterUpdate(U){const S=U.legend;S.buildLabels(),S.adjustHitBoxes()},afterEvent(U,S){S.replay||U.legend.handleEvent(S.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(U,S,w){const Q=S.datasetIndex,oe=w.chart;oe.isDatasetVisible(Q)?(oe.hide(Q),S.hidden=!0):(oe.show(Q),S.hidden=!1)},onHover:null,onLeave:null,labels:{color:U=>U.chart.options.color,boxWidth:40,padding:10,generateLabels(U){const S=U.data.datasets,{labels:{usePointStyle:w,pointStyle:Q,textAlign:oe,color:fe}}=U.legend.options;return U._getSortedDatasetMetas().map(Ee=>{const it=Ee.controller.getStyle(w?0:void 0),mt=Qi(it.borderWidth);return{text:S[Ee.index].label,fillStyle:it.backgroundColor,fontColor:fe,hidden:!Ee.visible,lineCap:it.borderCapStyle,lineDash:it.borderDash,lineDashOffset:it.borderDashOffset,lineJoin:it.borderJoinStyle,lineWidth:(mt.width+mt.height)/4,strokeStyle:it.borderColor,pointStyle:Q||it.pointStyle,rotation:it.rotation,textAlign:oe||it.textAlign,borderRadius:0,datasetIndex:Ee.index}},this)}},title:{color:U=>U.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:U=>!U.startsWith("on"),labels:{_scriptable:U=>!["generateLabels","filter","sort"].includes(U)}}};class Hu extends Tl{constructor(S){super(),this.chart=S.chart,this.options=S.options,this.ctx=S.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(S,w){const Q=this.options;if(this.left=0,this.top=0,!Q.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=S,this.height=this.bottom=w;const oe=t(Q.text)?Q.text.length:1;this._padding=Qi(Q.padding);const fe=oe*To(Q.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=fe:this.width=fe}isHorizontal(){const S=this.options.position;return"top"===S||"bottom"===S}_drawArgs(S){const{top:w,left:Q,bottom:oe,right:fe,options:Ee}=this,it=Ee.align;let $t,ai,Ai,mt=0;return this.isHorizontal()?(ai=ji(it,Q,fe),Ai=w+S,$t=fe-Q):("left"===Ee.position?(ai=Q+S,Ai=ji(it,oe,w),mt=-.5*at):(ai=fe-S,Ai=ji(it,w,oe),mt=.5*at),$t=oe-w),{titleX:ai,titleY:Ai,maxWidth:$t,rotation:mt}}draw(){const S=this.ctx,w=this.options;if(!w.display)return;const Q=To(w.font),fe=Q.lineHeight/2+this._padding.top,{titleX:Ee,titleY:it,maxWidth:mt,rotation:$t}=this._drawArgs(fe);ja(S,w.text,0,0,Q,{color:w.color,maxWidth:mt,rotation:$t,textAlign:Li(w.align),textBaseline:"middle",translation:[Ee,it]})}}var gp={id:"title",_element:Hu,start(U,S,w){!function Gu(U,S){const w=new Hu({ctx:U.ctx,options:S,chart:U});Es.configure(U,w,S),Es.addBox(U,w),U.titleBlock=w}(U,w)},stop(U){Es.removeBox(U,U.titleBlock),delete U.titleBlock},beforeUpdate(U,S,w){const Q=U.titleBlock;Es.configure(U,Q,w),Q.options=w},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Ep=new WeakMap;var Ju={id:"subtitle",start(U,S,w){const Q=new Hu({ctx:U.ctx,options:w,chart:U});Es.configure(U,Q,w),Es.addBox(U,Q),Ep.set(U,Q)},stop(U){Es.removeBox(U,Ep.get(U)),Ep.delete(U)},beforeUpdate(U,S,w){const Q=Ep.get(U);Es.configure(U,Q,w),Q.options=w},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Fe={average(U){if(!U.length)return!1;let S,w,Q=0,oe=0,fe=0;for(S=0,w=U.length;S<w;++S){const Ee=U[S].element;if(Ee&&Ee.hasValue()){const it=Ee.tooltipPosition();Q+=it.x,oe+=it.y,++fe}}return{x:Q/fe,y:oe/fe}},nearest(U,S){if(!U.length)return!1;let fe,Ee,it,w=S.x,Q=S.y,oe=Number.POSITIVE_INFINITY;for(fe=0,Ee=U.length;fe<Ee;++fe){const mt=U[fe].element;if(mt&&mt.hasValue()){const ai=Rn(S,mt.getCenterPoint());ai<oe&&(oe=ai,it=mt)}}if(it){const mt=it.tooltipPosition();w=mt.x,Q=mt.y}return{x:w,y:Q}}};function Pe(U,S){return S&&(t(S)?Array.prototype.push.apply(U,S):U.push(S)),U}function St(U){return("string"==typeof U||U instanceof String)&&U.indexOf("\n")>-1?U.split("\n"):U}function un(U,S){const{element:w,datasetIndex:Q,index:oe}=S,fe=U.getDatasetMeta(Q).controller,{label:Ee,value:it}=fe.getLabelAndValue(oe);return{chart:U,label:Ee,parsed:fe.getParsed(oe),raw:U.data.datasets[Q].data[oe],formattedValue:it,dataset:fe.getDataset(),dataIndex:oe,datasetIndex:Q,element:w}}function vi(U,S){const w=U.chart.ctx,{body:Q,footer:oe,title:fe}=U,{boxWidth:Ee,boxHeight:it}=S,mt=To(S.bodyFont),$t=To(S.titleFont),ai=To(S.footerFont),Ai=fe.length,ao=oe.length,go=Q.length,Co=Qi(S.padding);let Vo=Co.height,nr=0,mr=Q.reduce((Jr,ir)=>Jr+ir.before.length+ir.lines.length+ir.after.length,0);mr+=U.beforeBody.length+U.afterBody.length,Ai&&(Vo+=Ai*$t.lineHeight+(Ai-1)*S.titleSpacing+S.titleMarginBottom),mr&&(Vo+=go*(S.displayColors?Math.max(it,mt.lineHeight):mt.lineHeight)+(mr-go)*mt.lineHeight+(mr-1)*S.bodySpacing),ao&&(Vo+=S.footerMarginTop+ao*ai.lineHeight+(ao-1)*S.footerSpacing);let Br=0;const wr=function(Jr){nr=Math.max(nr,w.measureText(Jr).width+Br)};return w.save(),w.font=$t.string,I(U.title,wr),w.font=mt.string,I(U.beforeBody.concat(U.afterBody),wr),Br=S.displayColors?Ee+2+S.boxPadding:0,I(Q,Jr=>{I(Jr.before,wr),I(Jr.lines,wr),I(Jr.after,wr)}),Br=0,w.font=ai.string,I(U.footer,wr),w.restore(),nr+=Co.width,{width:nr,height:Vo}}function xt(U,S,w,Q){const{x:oe,width:fe}=w,{width:Ee,chartArea:{left:it,right:mt}}=U;let $t="center";return"center"===Q?$t=oe<=(it+mt)/2?"left":"right":oe<=fe/2?$t="left":oe>=Ee-fe/2&&($t="right"),function Xi(U,S,w,Q){const{x:oe,width:fe}=Q,Ee=w.caretSize+w.caretPadding;if("left"===U&&oe+fe+Ee>S.width||"right"===U&&oe-fe-Ee<0)return!0}($t,U,S,w)&&($t="center"),$t}function jt(U,S,w){const Q=w.yAlign||S.yAlign||function qe(U,S){const{y:w,height:Q}=S;return w<Q/2?"top":w>U.height-Q/2?"bottom":"center"}(U,w);return{xAlign:w.xAlign||S.xAlign||xt(U,S,w,Q),yAlign:Q}}function Bo(U,S,w,Q){const{caretSize:oe,caretPadding:fe,cornerRadius:Ee}=U,{xAlign:it,yAlign:mt}=w,$t=oe+fe,{topLeft:ai,topRight:Ai,bottomLeft:ao,bottomRight:go}=Tn(Ee);let Co=function jn(U,S){let{x:w,width:Q}=U;return"right"===S?w-=Q:"center"===S&&(w-=Q/2),w}(S,it);const Vo=function ro(U,S,w){let{y:Q,height:oe}=U;return"top"===S?Q+=w:Q-="bottom"===S?oe+w:oe/2,Q}(S,mt,$t);return"center"===mt?"left"===it?Co+=$t:"right"===it&&(Co-=$t):"left"===it?Co-=Math.max(ai,ao)+oe:"right"===it&&(Co+=Math.max(Ai,go)+oe),{x:dt(Co,0,Q.width-S.width),y:dt(Vo,0,Q.height-S.height)}}function jr(U,S,w){const Q=Qi(w.padding);return"center"===S?U.x+U.width/2:"right"===S?U.x+U.width-Q.right:U.x+Q.left}function Hr(U){return Pe([],St(U))}function Jd(U,S){const w=S&&S.dataset&&S.dataset.tooltip&&S.dataset.tooltip.callbacks;return w?U.override(w):U}let Qd=(()=>{class U extends Tl{constructor(w){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=w.chart||w._chart,this._chart=this.chart,this.options=w.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(w){this.options=w,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const w=this._cachedAnimations;if(w)return w;const Q=this.chart,oe=this.options.setContext(this.getContext()),fe=oe.enabled&&Q.options.animation&&oe.animations,Ee=new bs(this.chart,fe);return fe._cacheable&&(this._cachedAnimations=Object.freeze(Ee)),Ee}getContext(){return this.$context||(this.$context=function al(U,S,w){return Vi(U,{tooltip:S,tooltipItems:w,type:"tooltip"})}(this.chart.getContext(),this,this._tooltipItems))}getTitle(w,Q){const{callbacks:oe}=Q,fe=oe.beforeTitle.apply(this,[w]),Ee=oe.title.apply(this,[w]),it=oe.afterTitle.apply(this,[w]);let mt=[];return mt=Pe(mt,St(fe)),mt=Pe(mt,St(Ee)),mt=Pe(mt,St(it)),mt}getBeforeBody(w,Q){return Hr(Q.callbacks.beforeBody.apply(this,[w]))}getBody(w,Q){const{callbacks:oe}=Q,fe=[];return I(w,Ee=>{const it={before:[],lines:[],after:[]},mt=Jd(oe,Ee);Pe(it.before,St(mt.beforeLabel.call(this,Ee))),Pe(it.lines,mt.label.call(this,Ee)),Pe(it.after,St(mt.afterLabel.call(this,Ee))),fe.push(it)}),fe}getAfterBody(w,Q){return Hr(Q.callbacks.afterBody.apply(this,[w]))}getFooter(w,Q){const{callbacks:oe}=Q,fe=oe.beforeFooter.apply(this,[w]),Ee=oe.footer.apply(this,[w]),it=oe.afterFooter.apply(this,[w]);let mt=[];return mt=Pe(mt,St(fe)),mt=Pe(mt,St(Ee)),mt=Pe(mt,St(it)),mt}_createItems(w){const Q=this._active,oe=this.chart.data,fe=[],Ee=[],it=[];let $t,ai,mt=[];for($t=0,ai=Q.length;$t<ai;++$t)mt.push(un(this.chart,Q[$t]));return w.filter&&(mt=mt.filter((Ai,ao,go)=>w.filter(Ai,ao,go,oe))),w.itemSort&&(mt=mt.sort((Ai,ao)=>w.itemSort(Ai,ao,oe))),I(mt,Ai=>{const ao=Jd(w.callbacks,Ai);fe.push(ao.labelColor.call(this,Ai)),Ee.push(ao.labelPointStyle.call(this,Ai)),it.push(ao.labelTextColor.call(this,Ai))}),this.labelColors=fe,this.labelPointStyles=Ee,this.labelTextColors=it,this.dataPoints=mt,mt}update(w,Q){const oe=this.options.setContext(this.getContext()),fe=this._active;let Ee,it=[];if(fe.length){const mt=Fe[oe.position].call(this,fe,this._eventPosition);it=this._createItems(oe),this.title=this.getTitle(it,oe),this.beforeBody=this.getBeforeBody(it,oe),this.body=this.getBody(it,oe),this.afterBody=this.getAfterBody(it,oe),this.footer=this.getFooter(it,oe);const $t=this._size=vi(this,oe),ai=Object.assign({},mt,$t),Ai=jt(this.chart,oe,ai),ao=Bo(oe,ai,Ai,this.chart);this.xAlign=Ai.xAlign,this.yAlign=Ai.yAlign,Ee={opacity:1,x:ao.x,y:ao.y,width:$t.width,height:$t.height,caretX:mt.x,caretY:mt.y}}else 0!==this.opacity&&(Ee={opacity:0});this._tooltipItems=it,this.$context=void 0,Ee&&this._resolveAnimations().update(this,Ee),w&&oe.external&&oe.external.call(this,{chart:this.chart,tooltip:this,replay:Q})}drawCaret(w,Q,oe,fe){const Ee=this.getCaretPosition(w,oe,fe);Q.lineTo(Ee.x1,Ee.y1),Q.lineTo(Ee.x2,Ee.y2),Q.lineTo(Ee.x3,Ee.y3)}getCaretPosition(w,Q,oe){const{xAlign:fe,yAlign:Ee}=this,{caretSize:it,cornerRadius:mt}=oe,{topLeft:$t,topRight:ai,bottomLeft:Ai,bottomRight:ao}=Tn(mt),{x:go,y:Co}=w,{width:Vo,height:nr}=Q;let mr,Br,wr,Jr,ir,na;return"center"===Ee?(ir=Co+nr/2,"left"===fe?(mr=go,Br=mr-it,Jr=ir+it,na=ir-it):(mr=go+Vo,Br=mr+it,Jr=ir-it,na=ir+it),wr=mr):(Br="left"===fe?go+Math.max($t,Ai)+it:"right"===fe?go+Vo-Math.max(ai,ao)-it:this.caretX,"top"===Ee?(Jr=Co,ir=Jr-it,mr=Br-it,wr=Br+it):(Jr=Co+nr,ir=Jr+it,mr=Br+it,wr=Br-it),na=Jr),{x1:mr,x2:Br,x3:wr,y1:Jr,y2:ir,y3:na}}drawTitle(w,Q,oe){const fe=this.title,Ee=fe.length;let it,mt,$t;if(Ee){const ai=Ba(oe.rtl,this.x,this.width);for(w.x=jr(this,oe.titleAlign,oe),Q.textAlign=ai.textAlign(oe.titleAlign),Q.textBaseline="middle",it=To(oe.titleFont),mt=oe.titleSpacing,Q.fillStyle=oe.titleColor,Q.font=it.string,$t=0;$t<Ee;++$t)Q.fillText(fe[$t],ai.x(w.x),w.y+it.lineHeight/2),w.y+=it.lineHeight+mt,$t+1===Ee&&(w.y+=oe.titleMarginBottom-mt)}}_drawColorBox(w,Q,oe,fe,Ee){const it=this.labelColors[oe],mt=this.labelPointStyles[oe],{boxHeight:$t,boxWidth:ai,boxPadding:Ai}=Ee,ao=To(Ee.bodyFont),go=jr(this,"left",Ee),Co=fe.x(go),nr=Q.y+($t<ao.lineHeight?(ao.lineHeight-$t)/2:0);if(Ee.usePointStyle){const mr={radius:Math.min(ai,$t)/2,pointStyle:mt.pointStyle,rotation:mt.rotation,borderWidth:1},Br=fe.leftForLtr(Co,ai)+ai/2,wr=nr+$t/2;w.strokeStyle=Ee.multiKeyBackground,w.fillStyle=Ee.multiKeyBackground,vr(w,mr,Br,wr),w.strokeStyle=it.borderColor,w.fillStyle=it.backgroundColor,vr(w,mr,Br,wr)}else{w.lineWidth=p(it.borderWidth)?Math.max(...Object.values(it.borderWidth)):it.borderWidth||1,w.strokeStyle=it.borderColor,w.setLineDash(it.borderDash||[]),w.lineDashOffset=it.borderDashOffset||0;const mr=fe.leftForLtr(Co,ai-Ai),Br=fe.leftForLtr(fe.xPlus(Co,1),ai-Ai-2),wr=Tn(it.borderRadius);Object.values(wr).some(Jr=>0!==Jr)?(w.beginPath(),w.fillStyle=Ee.multiKeyBackground,ls(w,{x:mr,y:nr,w:ai,h:$t,radius:wr}),w.fill(),w.stroke(),w.fillStyle=it.backgroundColor,w.beginPath(),ls(w,{x:Br,y:nr+1,w:ai-2,h:$t-2,radius:wr}),w.fill()):(w.fillStyle=Ee.multiKeyBackground,w.fillRect(mr,nr,ai,$t),w.strokeRect(mr,nr,ai,$t),w.fillStyle=it.backgroundColor,w.fillRect(Br,nr+1,ai-2,$t-2))}w.fillStyle=this.labelTextColors[oe]}drawBody(w,Q,oe){const{body:fe}=this,{bodySpacing:Ee,bodyAlign:it,displayColors:mt,boxHeight:$t,boxWidth:ai,boxPadding:Ai}=oe,ao=To(oe.bodyFont);let go=ao.lineHeight,Co=0;const Vo=Ba(oe.rtl,this.x,this.width),nr=function(Gr){Q.fillText(Gr,Vo.x(w.x+Co),w.y+go/2),w.y+=go+Ee},mr=Vo.textAlign(it);let Br,wr,Jr,ir,na,Ea,gs;for(Q.textAlign=it,Q.textBaseline="middle",Q.font=ao.string,w.x=jr(this,mr,oe),Q.fillStyle=oe.bodyColor,I(this.beforeBody,nr),Co=mt&&"right"!==mr?"center"===it?ai/2+Ai:ai+2+Ai:0,ir=0,Ea=fe.length;ir<Ea;++ir){for(Br=fe[ir],wr=this.labelTextColors[ir],Q.fillStyle=wr,I(Br.before,nr),Jr=Br.lines,mt&&Jr.length&&(this._drawColorBox(Q,w,ir,Vo,oe),go=Math.max(ao.lineHeight,$t)),na=0,gs=Jr.length;na<gs;++na)nr(Jr[na]),go=ao.lineHeight;I(Br.after,nr)}Co=0,go=ao.lineHeight,I(this.afterBody,nr),w.y-=Ee}drawFooter(w,Q,oe){const fe=this.footer,Ee=fe.length;let it,mt;if(Ee){const $t=Ba(oe.rtl,this.x,this.width);for(w.x=jr(this,oe.footerAlign,oe),w.y+=oe.footerMarginTop,Q.textAlign=$t.textAlign(oe.footerAlign),Q.textBaseline="middle",it=To(oe.footerFont),Q.fillStyle=oe.footerColor,Q.font=it.string,mt=0;mt<Ee;++mt)Q.fillText(fe[mt],$t.x(w.x),w.y+it.lineHeight/2),w.y+=it.lineHeight+oe.footerSpacing}}drawBackground(w,Q,oe,fe){const{xAlign:Ee,yAlign:it}=this,{x:mt,y:$t}=w,{width:ai,height:Ai}=oe,{topLeft:ao,topRight:go,bottomLeft:Co,bottomRight:Vo}=Tn(fe.cornerRadius);Q.fillStyle=fe.backgroundColor,Q.strokeStyle=fe.borderColor,Q.lineWidth=fe.borderWidth,Q.beginPath(),Q.moveTo(mt+ao,$t),"top"===it&&this.drawCaret(w,Q,oe,fe),Q.lineTo(mt+ai-go,$t),Q.quadraticCurveTo(mt+ai,$t,mt+ai,$t+go),"center"===it&&"right"===Ee&&this.drawCaret(w,Q,oe,fe),Q.lineTo(mt+ai,$t+Ai-Vo),Q.quadraticCurveTo(mt+ai,$t+Ai,mt+ai-Vo,$t+Ai),"bottom"===it&&this.drawCaret(w,Q,oe,fe),Q.lineTo(mt+Co,$t+Ai),Q.quadraticCurveTo(mt,$t+Ai,mt,$t+Ai-Co),"center"===it&&"left"===Ee&&this.drawCaret(w,Q,oe,fe),Q.lineTo(mt,$t+ao),Q.quadraticCurveTo(mt,$t,mt+ao,$t),Q.closePath(),Q.fill(),fe.borderWidth>0&&Q.stroke()}_updateAnimationTarget(w){const Q=this.chart,oe=this.$animations,fe=oe&&oe.x,Ee=oe&&oe.y;if(fe||Ee){const it=Fe[w.position].call(this,this._active,this._eventPosition);if(!it)return;const mt=this._size=vi(this,w),$t=Object.assign({},it,this._size),ai=jt(Q,w,$t),Ai=Bo(w,$t,ai,Q);(fe._to!==Ai.x||Ee._to!==Ai.y)&&(this.xAlign=ai.xAlign,this.yAlign=ai.yAlign,this.width=mt.width,this.height=mt.height,this.caretX=it.x,this.caretY=it.y,this._resolveAnimations().update(this,Ai))}}_willRender(){return!!this.opacity}draw(w){const Q=this.options.setContext(this.getContext());let oe=this.opacity;if(!oe)return;this._updateAnimationTarget(Q);const fe={width:this.width,height:this.height},Ee={x:this.x,y:this.y};oe=Math.abs(oe)<.001?0:oe;const it=Qi(Q.padding);Q.enabled&&(this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length)&&(w.save(),w.globalAlpha=oe,this.drawBackground(Ee,w,fe,Q),Ka(w,Q.textDirection),Ee.y+=it.top,this.drawTitle(Ee,w,Q),this.drawBody(Ee,w,Q),this.drawFooter(Ee,w,Q),vc(w,Q.textDirection),w.restore())}getActiveElements(){return this._active||[]}setActiveElements(w,Q){const oe=this._active,fe=w.map(({datasetIndex:mt,index:$t})=>{const ai=this.chart.getDatasetMeta(mt);if(!ai)throw new Error("Cannot find a dataset at index "+mt);return{datasetIndex:mt,element:ai.data[$t],index:$t}}),Ee=!H(oe,fe),it=this._positionChanged(fe,Q);(Ee||it)&&(this._active=fe,this._eventPosition=Q,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(w,Q,oe=!0){if(Q&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const fe=this.options,Ee=this._active||[],it=this._getActiveElements(w,Ee,Q,oe),mt=this._positionChanged(it,w),$t=Q||!H(it,Ee)||mt;return $t&&(this._active=it,(fe.enabled||fe.external)&&(this._eventPosition={x:w.x,y:w.y},this.update(!0,Q))),$t}_getActiveElements(w,Q,oe,fe){const Ee=this.options;if("mouseout"===w.type)return[];if(!fe)return Q;const it=this.chart.getElementsAtEventForMode(w,Ee.mode,Ee,oe);return Ee.reverse&&it.reverse(),it}_positionChanged(w,Q){const{caretX:oe,caretY:fe,options:Ee}=this,it=Fe[Ee.position].call(this,w,Q);return!1!==it&&(oe!==it.x||fe!==it.y)}}return U.positioners=Fe,U})();var f_=Object.freeze({__proto__:null,Decimation:Pc,Filler:pd,Legend:Tu,SubTitle:Ju,Title:gp,Tooltip:{id:"tooltip",_element:Qd,positioners:Fe,afterInit(U,S,w){w&&(U.tooltip=new Qd({chart:U,options:w}))},beforeUpdate(U,S,w){U.tooltip&&U.tooltip.initialize(w)},reset(U,S,w){U.tooltip&&U.tooltip.initialize(w)},afterDraw(U){const S=U.tooltip;if(S&&S._willRender()){const w={tooltip:S};if(!1===U.notifyPlugins("beforeTooltipDraw",w))return;S.draw(U.ctx),U.notifyPlugins("afterTooltipDraw",w)}},afterEvent(U,S){U.tooltip&&U.tooltip.handleEvent(S.event,S.replay,S.inChartArea)&&(S.changed=!0)},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(U,S)=>S.bodyFont.size,boxWidth:(U,S)=>S.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:s,title(U){if(U.length>0){const S=U[0],w=S.chart.data.labels,Q=w?w.length:0;if(this&&this.options&&"dataset"===this.options.mode)return S.dataset.label||"";if(S.label)return S.label;if(Q>0&&S.dataIndex<Q)return w[S.dataIndex]}return""},afterTitle:s,beforeBody:s,beforeLabel:s,label(U){if(this&&this.options&&"dataset"===this.options.mode)return U.label+": "+U.formattedValue||U.formattedValue;let S=U.dataset.label||"";S&&(S+=": ");const w=U.formattedValue;return i(w)||(S+=w),S},labelColor(U){const w=U.chart.getDatasetMeta(U.datasetIndex).controller.getStyle(U.dataIndex);return{borderColor:w.borderColor,backgroundColor:w.backgroundColor,borderWidth:w.borderWidth,borderDash:w.borderDash,borderDashOffset:w.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(U){const w=U.chart.getDatasetMeta(U.datasetIndex).controller.getStyle(U.dataIndex);return{pointStyle:w.pointStyle,rotation:w.rotation}},afterLabel:s,afterBody:s,beforeFooter:s,footer:s,afterFooter:s}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:U=>"filter"!==U&&"itemSort"!==U&&"external"!==U,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]}});class Qu extends Ci{constructor(S){super(S),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(S){const w=this._addedLabels;if(w.length){const Q=this.getLabels();for(const{index:oe,label:fe}of w)Q[oe]===fe&&Q.splice(oe,1);this._addedLabels=[]}super.init(S)}parse(S,w){if(i(S))return null;const Q=this.getLabels();return((U,S)=>null===U?null:dt(Math.round(U),0,S))(w=isFinite(w)&&Q[w]===S?w:function Ap(U,S,w,Q){const oe=U.indexOf(S);return-1===oe?((U,S,w,Q)=>("string"==typeof S?(w=U.push(S)-1,Q.unshift({index:w,label:S})):isNaN(S)&&(w=null),w))(U,S,w,Q):oe!==U.lastIndexOf(S)?w:oe}(Q,S,x(w,S),this._addedLabels),Q.length-1)}determineDataLimits(){const{minDefined:S,maxDefined:w}=this.getUserBounds();let{min:Q,max:oe}=this.getMinMax(!0);"ticks"===this.options.bounds&&(S||(Q=0),w||(oe=this.getLabels().length-1)),this.min=Q,this.max=oe}buildTicks(){const S=this.min,w=this.max,Q=this.options.offset,oe=[];let fe=this.getLabels();fe=0===S&&w===fe.length-1?fe:fe.slice(S,w+1),this._valueRange=Math.max(fe.length-(Q?0:1),1),this._startValue=this.min-(Q?.5:0);for(let Ee=S;Ee<=w;Ee++)oe.push({value:Ee});return oe}getLabelForValue(S){const w=this.getLabels();return S>=0&&S<w.length?w[S]:S}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(S){return"number"!=typeof S&&(S=this.parse(S)),null===S?NaN:this.getPixelForDecimal((S-this._startValue)/this._valueRange)}getPixelForTick(S){const w=this.ticks;return S<0||S>w.length-1?null:this.getPixelForValue(w[S].value)}getValueForPixel(S){return Math.round(this._startValue+this.getDecimalForPixel(S)*this._valueRange)}getBasePixel(){return this.bottom}}function S_(U,S,{horizontal:w,minRotation:Q}){const oe=ye(Q),fe=(w?Math.sin(oe):Math.cos(oe))||.001;return Math.min(S/fe,.75*S*(""+U).length)}Qu.id="category",Qu.defaults={ticks:{callback:Qu.prototype.getLabelForValue}};class zp extends Ci{constructor(S){super(S),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(S,w){return i(S)||("number"==typeof S||S instanceof Number)&&!isFinite(+S)?null:+S}handleTickRangeOptions(){const{beginAtZero:S}=this.options,{minDefined:w,maxDefined:Q}=this.getUserBounds();let{min:oe,max:fe}=this;const Ee=mt=>oe=w?oe:mt,it=mt=>fe=Q?fe:mt;if(S){const mt=Et(oe),$t=Et(fe);mt<0&&$t<0?it(0):mt>0&&$t>0&&Ee(0)}if(oe===fe){let mt=1;(fe>=Number.MAX_SAFE_INTEGER||oe<=Number.MIN_SAFE_INTEGER)&&(mt=Math.abs(.05*fe)),it(fe+mt),S||Ee(oe-mt)}this.min=oe,this.max=fe}getTickLimit(){const S=this.options.ticks;let oe,{maxTicksLimit:w,stepSize:Q}=S;return Q?(oe=Math.ceil(this.max/Q)-Math.floor(this.min/Q)+1,oe>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${Q} would result generating up to ${oe} ticks. Limiting to 1000.`),oe=1e3)):(oe=this.computeTickLimit(),w=w||11),w&&(oe=Math.min(w,oe)),oe}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const S=this.options,w=S.ticks;let Q=this.getTickLimit();Q=Math.max(2,Q);const Ee=function Wp(U,S){const w=[],{bounds:oe,step:fe,min:Ee,max:it,precision:mt,count:$t,maxTicks:ai,maxDigits:Ai,includeBounds:ao}=U,go=fe||1,Co=ai-1,{min:Vo,max:nr}=S,mr=!i(Ee),Br=!i(it),wr=!i($t),Jr=(nr-Vo)/(Ai+1);let na,Ea,gs,Gr,ir=lt((nr-Vo)/Co/go)*go;if(ir<1e-14&&!mr&&!Br)return[{value:Vo},{value:nr}];Gr=Math.ceil(nr/ir)-Math.floor(Vo/ir),Gr>Co&&(ir=lt(Gr*ir/Co/go)*go),i(mt)||(na=Math.pow(10,mt),ir=Math.ceil(ir*na)/na),"ticks"===oe?(Ea=Math.floor(Vo/ir)*ir,gs=Math.ceil(nr/ir)*ir):(Ea=Vo,gs=nr),mr&&Br&&fe&&function Pt(U,S){const w=Math.round(U);return w-S<=U&&w+S>=U}((it-Ee)/fe,ir/1e3)?(Gr=Math.round(Math.min((it-Ee)/ir,ai)),ir=(it-Ee)/Gr,Ea=Ee,gs=it):wr?(Ea=mr?Ee:Ea,gs=Br?it:gs,Gr=$t-1,ir=(gs-Ea)/Gr):(Gr=(gs-Ea)/ir,Gr=Z(Gr,Math.round(Gr),ir/1e3)?Math.round(Gr):Math.ceil(Gr));const Bl=Math.max(ft(ir),ft(Ea));na=Math.pow(10,i(mt)?Bl:mt),Ea=Math.round(Ea*na)/na,gs=Math.round(gs*na)/na;let Yl=0;for(mr&&(ao&&Ea!==Ee?(w.push({value:Ee}),Ea<Ee&&Yl++,Z(Math.round((Ea+Yl*ir)*na)/na,Ee,S_(Ee,Jr,U))&&Yl++):Ea<Ee&&Yl++);Yl<Gr;++Yl)w.push({value:Math.round((Ea+Yl*ir)*na)/na});return Br&&ao&&gs!==it?w.length&&Z(w[w.length-1].value,it,S_(it,Jr,U))?w[w.length-1].value=it:w.push({value:it}):(!Br||gs===it)&&w.push({value:gs}),w}({maxTicks:Q,bounds:S.bounds,min:S.min,max:S.max,precision:w.precision,step:w.stepSize,count:w.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:w.minRotation||0,includeBounds:!1!==w.includeBounds},this._range||this);return"ticks"===S.bounds&&Oe(Ee,this,"value"),S.reverse?(Ee.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),Ee}configure(){const S=this.ticks;let w=this.min,Q=this.max;if(super.configure(),this.options.offset&&S.length){const oe=(Q-w)/Math.max(S.length-1,1)/2;w-=oe,Q+=oe}this._startValue=w,this._endValue=Q,this._valueRange=Q-w}getLabelForValue(S){return os(S,this.chart.options.locale,this.options.ticks.format)}}class ap extends zp{determineDataLimits(){const{min:S,max:w}=this.getMinMax(!0);this.min=c(S)?S:0,this.max=c(w)?w:1,this.handleTickRangeOptions()}computeTickLimit(){const S=this.isHorizontal(),w=S?this.width:this.height,Q=ye(this.options.ticks.minRotation),oe=(S?Math.sin(Q):Math.cos(Q))||.001,fe=this._resolveTickFontOptions(0);return Math.ceil(w/Math.min(40,fe.lineHeight/oe))}getPixelForValue(S){return null===S?NaN:this.getPixelForDecimal((S-this._startValue)/this._valueRange)}getValueForPixel(S){return this._startValue+this.getDecimalForPixel(S)*this._valueRange}}function Rc(U){return U/Math.pow(10,Math.floor(et(U)))==1}ap.id="linear",ap.defaults={ticks:{callback:ac.formatters.numeric}};class jp extends Ci{constructor(S){super(S),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(S,w){const Q=zp.prototype.parse.apply(this,[S,w]);if(0!==Q)return c(Q)&&Q>0?Q:null;this._zero=!0}determineDataLimits(){const{min:S,max:w}=this.getMinMax(!0);this.min=c(S)?Math.max(0,S):null,this.max=c(w)?Math.max(0,w):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:S,maxDefined:w}=this.getUserBounds();let Q=this.min,oe=this.max;const fe=mt=>Q=S?Q:mt,Ee=mt=>oe=w?oe:mt,it=(mt,$t)=>Math.pow(10,Math.floor(et(mt))+$t);Q===oe&&(Q<=0?(fe(1),Ee(10)):(fe(it(Q,-1)),Ee(it(oe,1)))),Q<=0&&fe(it(oe,-1)),oe<=0&&Ee(it(Q,1)),this._zero&&this.min!==this._suggestedMin&&Q===it(this.min,0)&&fe(it(Q,-1)),this.min=Q,this.max=oe}buildTicks(){const S=this.options,Q=function F_(U,S){const w=Math.floor(et(S.max)),Q=Math.ceil(S.max/Math.pow(10,w)),oe=[];let fe=o(U.min,Math.pow(10,Math.floor(et(S.min)))),Ee=Math.floor(et(fe)),it=Math.floor(fe/Math.pow(10,Ee)),mt=Ee<0?Math.pow(10,Math.abs(Ee)):1;do{oe.push({value:fe,major:Rc(fe)}),++it,10===it&&(it=1,++Ee,mt=Ee>=0?1:mt),fe=Math.round(it*Math.pow(10,Ee)*mt)/mt}while(Ee<w||Ee===w&&it<Q);const $t=o(U.max,fe);return oe.push({value:$t,major:Rc(fe)}),oe}({min:this._userMin,max:this._userMax},this);return"ticks"===S.bounds&&Oe(Q,this,"value"),S.reverse?(Q.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),Q}getLabelForValue(S){return void 0===S?"0":os(S,this.chart.options.locale,this.options.ticks.format)}configure(){const S=this.min;super.configure(),this._startValue=et(S),this._valueRange=et(this.max)-et(S)}getPixelForValue(S){return(void 0===S||0===S)&&(S=this.min),null===S||isNaN(S)?NaN:this.getPixelForDecimal(S===this.min?0:(et(S)-this._startValue)/this._valueRange)}getValueForPixel(S){const w=this.getDecimalForPixel(S);return Math.pow(10,this._startValue+w*this._valueRange)}}function Kp(U){const S=U.ticks;if(S.display&&U.display){const w=Qi(S.backdropPadding);return x(S.font&&S.font.size,xi.font.size)+w.height}return 0}function lc(U,S,w){return w=t(w)?w:[w],{w:Ei(U,S.string,w),h:w.length*S.lineHeight}}function $p(U,S,w,Q,oe){return U===Q||U===oe?{start:S-w/2,end:S+w/2}:U<Q||U>oe?{start:S-w,end:S}:{start:S,end:S+w}}function g_(U,S,w,Q,oe){const fe=Math.abs(Math.sin(w)),Ee=Math.abs(Math.cos(w));let it=0,mt=0;Q.start<S.l?(it=(S.l-Q.start)/fe,U.l=Math.min(U.l,S.l-it)):Q.end>S.r&&(it=(Q.end-S.r)/fe,U.r=Math.max(U.r,S.r+it)),oe.start<S.t?(mt=(S.t-oe.start)/Ee,U.t=Math.min(U.t,S.t-mt)):oe.end>S.b&&(mt=(oe.end-S.b)/Ee,U.b=Math.max(U.b,S.b+mt))}function Vu(U){return 0===U||180===U?"center":U<180?"left":"right"}function h_(U,S,w){return"right"===w?U-=S:"center"===w&&(U-=S/2),U}function ef(U,S,w){return 90===w||270===w?U-=S/2:(w>270||w<90)&&(U-=S),U}function L_(U,S,w,Q){const{ctx:oe}=U;if(w)oe.arc(U.xCenter,U.yCenter,S,0,Le);else{let fe=U.getPointPosition(0,S);oe.moveTo(fe.x,fe.y);for(let Ee=1;Ee<Q;Ee++)fe=U.getPointPosition(Ee,S),oe.lineTo(fe.x,fe.y)}}jp.id="logarithmic",jp.defaults={ticks:{callback:ac.formatters.logarithmic,major:{enabled:!0}}};class wp extends zp{constructor(S){super(S),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const S=this._padding=Qi(Kp(this.options)/2),w=this.width=this.maxWidth-S.width,Q=this.height=this.maxHeight-S.height;this.xCenter=Math.floor(this.left+w/2+S.left),this.yCenter=Math.floor(this.top+Q/2+S.top),this.drawingArea=Math.floor(Math.min(w,Q)/2)}determineDataLimits(){const{min:S,max:w}=this.getMinMax(!1);this.min=c(S)&&!isNaN(S)?S:0,this.max=c(w)&&!isNaN(w)?w:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Kp(this.options))}generateTickLabels(S){zp.prototype.generateTickLabels.call(this,S),this._pointLabels=this.getLabels().map((w,Q)=>{const oe=b(this.options.pointLabels.callback,[w,Q],this);return oe||0===oe?oe:""}).filter((w,Q)=>this.chart.getDataVisibility(Q))}fit(){const S=this.options;S.display&&S.pointLabels.display?function Bp(U){const S={l:U.left+U._padding.left,r:U.right-U._padding.right,t:U.top+U._padding.top,b:U.bottom-U._padding.bottom},w=Object.assign({},S),Q=[],oe=[],fe=U._pointLabels.length,Ee=U.options.pointLabels,it=Ee.centerPointLabels?at/fe:0;for(let mt=0;mt<fe;mt++){const $t=Ee.setContext(U.getPointLabelContext(mt));oe[mt]=$t.padding;const ai=U.getPointPosition(mt,U.drawingArea+oe[mt],it),Ai=To($t.font),ao=lc(U.ctx,Ai,U._pointLabels[mt]);Q[mt]=ao;const go=Xt(U.getIndexAngle(mt)+it),Co=Math.round(ve(go));g_(w,S,go,$p(Co,ai.x,ao.w,0,180),$p(Co,ai.y,ao.h,90,270))}U.setCenterPoint(S.l-w.l,w.r-S.r,S.t-w.t,w.b-S.b),U._pointLabelItems=function ep(U,S,w){const Q=[],oe=U._pointLabels.length,fe=U.options,Ee=Kp(fe)/2,it=U.drawingArea,mt=fe.pointLabels.centerPointLabels?at/oe:0;for(let $t=0;$t<oe;$t++){const ai=U.getPointPosition($t,it+Ee+w[$t],mt),Ai=Math.round(ve(Xt(ai.angle+Se))),ao=S[$t],go=ef(ai.y,ao.h,Ai),Co=Vu(Ai),Vo=h_(ai.x,ao.w,Co);Q.push({x:ai.x,y:go,textAlign:Co,left:Vo,top:go,right:Vo+ao.w,bottom:go+ao.h})}return Q}(U,Q,oe)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(S,w,Q,oe){this.xCenter+=Math.floor((S-w)/2),this.yCenter+=Math.floor((Q-oe)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(S,w,Q,oe))}getIndexAngle(S){return Xt(S*(Le/(this._pointLabels.length||1))+ye(this.options.startAngle||0))}getDistanceFromCenterForValue(S){if(i(S))return NaN;const w=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-S)*w:(S-this.min)*w}getValueForDistanceFromCenter(S){if(i(S))return NaN;const w=S/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-w:this.min+w}getPointLabelContext(S){const w=this._pointLabels||[];if(S>=0&&S<w.length){const Q=w[S];return function tf(U,S,w){return Vi(U,{label:w,index:S,type:"pointLabel"})}(this.getContext(),S,Q)}}getPointPosition(S,w,Q=0){const oe=this.getIndexAngle(S)-Se+Q;return{x:Math.cos(oe)*w+this.xCenter,y:Math.sin(oe)*w+this.yCenter,angle:oe}}getPointPositionForValue(S,w){return this.getPointPosition(S,this.getDistanceFromCenterForValue(w))}getBasePosition(S){return this.getPointPositionForValue(S||0,this.getBaseValue())}getPointLabelPosition(S){const{left:w,top:Q,right:oe,bottom:fe}=this._pointLabelItems[S];return{left:w,top:Q,right:oe,bottom:fe}}drawBackground(){const{backgroundColor:S,grid:{circular:w}}=this.options;if(S){const Q=this.ctx;Q.save(),Q.beginPath(),L_(this,this.getDistanceFromCenterForValue(this._endValue),w,this._pointLabels.length),Q.closePath(),Q.fillStyle=S,Q.fill(),Q.restore()}}drawGrid(){const S=this.ctx,w=this.options,{angleLines:Q,grid:oe}=w,fe=this._pointLabels.length;let Ee,it,mt;if(w.pointLabels.display&&function qp(U,S){const{ctx:w,options:{pointLabels:Q}}=U;for(let oe=S-1;oe>=0;oe--){const fe=Q.setContext(U.getPointLabelContext(oe)),Ee=To(fe.font),{x:it,y:mt,textAlign:$t,left:ai,top:Ai,right:ao,bottom:go}=U._pointLabelItems[oe],{backdropColor:Co}=fe;if(!i(Co)){const Vo=Tn(fe.borderRadius),nr=Qi(fe.backdropPadding);w.fillStyle=Co;const mr=ai-nr.left,Br=Ai-nr.top,wr=ao-ai+nr.width,Jr=go-Ai+nr.height;Object.values(Vo).some(ir=>0!==ir)?(w.beginPath(),ls(w,{x:mr,y:Br,w:wr,h:Jr,radius:Vo}),w.fill()):w.fillRect(mr,Br,wr,Jr)}ja(w,U._pointLabels[oe],it,mt+Ee.lineHeight/2,Ee,{color:fe.color,textAlign:$t,textBaseline:"middle"})}}(this,fe),oe.display&&this.ticks.forEach(($t,ai)=>{0!==ai&&(it=this.getDistanceFromCenterForValue($t.value),function x_(U,S,w,Q){const oe=U.ctx,fe=S.circular,{color:Ee,lineWidth:it}=S;!fe&&!Q||!Ee||!it||w<0||(oe.save(),oe.strokeStyle=Ee,oe.lineWidth=it,oe.setLineDash(S.borderDash),oe.lineDashOffset=S.borderDashOffset,oe.beginPath(),L_(U,w,fe,Q),oe.closePath(),oe.stroke(),oe.restore())}(this,oe.setContext(this.getContext(ai-1)),it,fe))}),Q.display){for(S.save(),Ee=fe-1;Ee>=0;Ee--){const $t=Q.setContext(this.getPointLabelContext(Ee)),{color:ai,lineWidth:Ai}=$t;!Ai||!ai||(S.lineWidth=Ai,S.strokeStyle=ai,S.setLineDash($t.borderDash),S.lineDashOffset=$t.borderDashOffset,it=this.getDistanceFromCenterForValue(w.ticks.reverse?this.min:this.max),mt=this.getPointPosition(Ee,it),S.beginPath(),S.moveTo(this.xCenter,this.yCenter),S.lineTo(mt.x,mt.y),S.stroke())}S.restore()}}drawBorder(){}drawLabels(){const S=this.ctx,w=this.options,Q=w.ticks;if(!Q.display)return;const oe=this.getIndexAngle(0);let fe,Ee;S.save(),S.translate(this.xCenter,this.yCenter),S.rotate(oe),S.textAlign="center",S.textBaseline="middle",this.ticks.forEach((it,mt)=>{if(0===mt&&!w.reverse)return;const $t=Q.setContext(this.getContext(mt)),ai=To($t.font);if(fe=this.getDistanceFromCenterForValue(this.ticks[mt].value),$t.showLabelBackdrop){S.font=ai.string,Ee=S.measureText(it.label).width,S.fillStyle=$t.backdropColor;const Ai=Qi($t.backdropPadding);S.fillRect(-Ee/2-Ai.left,-fe-ai.size/2-Ai.top,Ee+Ai.width,ai.size+Ai.height)}ja(S,it.label,0,-fe,ai,{color:$t.color})}),S.restore()}drawTitle(){}}wp.id="radialLinear",wp.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ac.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:U=>U,padding:5,centerPointLabels:!1}},wp.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},wp.descriptors={angleLines:{_fallback:"grid"}};const _d={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Jc=Object.keys(_d);function v_(U,S){return U-S}function ou(U,S){if(i(S))return null;const w=U._adapter,{parser:Q,round:oe,isoWeekday:fe}=U._parseOpts;let Ee=S;return"function"==typeof Q&&(Ee=Q(Ee)),c(Ee)||(Ee="string"==typeof Q?w.parse(Ee,Q):w.parse(Ee)),null===Ee?null:(oe&&(Ee="week"!==oe||!r(fe)&&!0!==fe?w.startOf(Ee,oe):w.startOf(Ee,"isoWeek",fe)),+Ee)}function Yu(U,S,w,Q){const oe=Jc.length;for(let fe=Jc.indexOf(U);fe<oe-1;++fe){const Ee=_d[Jc[fe]];if(Ee.common&&Math.ceil((w-S)/((Ee.steps?Ee.steps:Number.MAX_SAFE_INTEGER)*Ee.size))<=Q)return Jc[fe]}return Jc[oe-1]}function Xp(U,S,w){if(w){if(w.length){const{lo:Q,hi:oe}=ct(w,S);U[w[Q]>=S?w[Q]:w[oe]]=!0}}else U[S]=!0}function ru(U,S,w){const Q=[],oe={},fe=S.length;let Ee,it;for(Ee=0;Ee<fe;++Ee)it=S[Ee],oe[it]=Ee,Q.push({value:it,major:!1});return 0!==fe&&w?function e_(U,S,w,Q){const oe=U._adapter,fe=+oe.startOf(S[0].value,Q),Ee=S[S.length-1].value;let it,mt;for(it=fe;it<=Ee;it=+oe.add(it,1,Q))mt=w[it],mt>=0&&(S[mt].major=!0);return S}(U,Q,oe,w):Q}let Zp=(()=>{class U extends Ci{constructor(w){super(w),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(w,Q){const oe=w.time||(w.time={}),fe=this._adapter=new Ct._date(w.adapters.date);fe.init(Q),ae(oe.displayFormats,fe.formats()),this._parseOpts={parser:oe.parser,round:oe.round,isoWeekday:oe.isoWeekday},super.init(w),this._normalized=Q.normalized}parse(w,Q){return void 0===w?null:ou(this,w)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const w=this.options,Q=this._adapter,oe=w.time.unit||"day";let{min:fe,max:Ee,minDefined:it,maxDefined:mt}=this.getUserBounds();function $t(ai){!it&&!isNaN(ai.min)&&(fe=Math.min(fe,ai.min)),!mt&&!isNaN(ai.max)&&(Ee=Math.max(Ee,ai.max))}(!it||!mt)&&($t(this._getLabelBounds()),("ticks"!==w.bounds||"labels"!==w.ticks.source)&&$t(this.getMinMax(!1))),fe=c(fe)&&!isNaN(fe)?fe:+Q.startOf(Date.now(),oe),Ee=c(Ee)&&!isNaN(Ee)?Ee:+Q.endOf(Date.now(),oe)+1,this.min=Math.min(fe,Ee-1),this.max=Math.max(fe+1,Ee)}_getLabelBounds(){const w=this.getLabelTimestamps();let Q=Number.POSITIVE_INFINITY,oe=Number.NEGATIVE_INFINITY;return w.length&&(Q=w[0],oe=w[w.length-1]),{min:Q,max:oe}}buildTicks(){const w=this.options,Q=w.time,oe=w.ticks,fe="labels"===oe.source?this.getLabelTimestamps():this._generate();"ticks"===w.bounds&&fe.length&&(this.min=this._userMin||fe[0],this.max=this._userMax||fe[fe.length-1]);const Ee=this.min,mt=function ni(U,S,w){let Q=0,oe=U.length;for(;Q<oe&&U[Q]<S;)Q++;for(;oe>Q&&U[oe-1]>w;)oe--;return Q>0||oe<U.length?U.slice(Q,oe):U}(fe,Ee,this.max);return this._unit=Q.unit||(oe.autoSkip?Yu(Q.minUnit,this.min,this.max,this._getLabelCapacity(Ee)):function b_(U,S,w,Q,oe){for(let fe=Jc.length-1;fe>=Jc.indexOf(w);fe--){const Ee=Jc[fe];if(_d[Ee].common&&U._adapter.diff(oe,Q,Ee)>=S-1)return Ee}return Jc[w?Jc.indexOf(w):0]}(this,mt.length,Q.minUnit,this.min,this.max)),this._majorUnit=oe.major.enabled&&"year"!==this._unit?function hp(U){for(let S=Jc.indexOf(U)+1,w=Jc.length;S<w;++S)if(_d[Jc[S]].common)return Jc[S]}(this._unit):void 0,this.initOffsets(fe),w.reverse&&mt.reverse(),ru(this,mt,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(w=>+w.value))}initOffsets(w){let fe,Ee,Q=0,oe=0;this.options.offset&&w.length&&(fe=this.getDecimalForValue(w[0]),Q=1===w.length?1-fe:(this.getDecimalForValue(w[1])-fe)/2,Ee=this.getDecimalForValue(w[w.length-1]),oe=1===w.length?Ee:(Ee-this.getDecimalForValue(w[w.length-2]))/2);const it=w.length<3?.5:.25;Q=dt(Q,0,it),oe=dt(oe,0,it),this._offsets={start:Q,end:oe,factor:1/(Q+1+oe)}}_generate(){const w=this._adapter,Q=this.min,oe=this.max,fe=this.options,Ee=fe.time,it=Ee.unit||Yu(Ee.minUnit,Q,oe,this._getLabelCapacity(Q)),mt=x(Ee.stepSize,1),$t="week"===it&&Ee.isoWeekday,ai=r($t)||!0===$t,Ai={};let go,Co,ao=Q;if(ai&&(ao=+w.startOf(ao,"isoWeek",$t)),ao=+w.startOf(ao,ai?"day":it),w.diff(oe,Q,it)>1e5*mt)throw new Error(Q+" and "+oe+" are too far apart with stepSize of "+mt+" "+it);const Vo="data"===fe.ticks.source&&this.getDataTimestamps();for(go=ao,Co=0;go<oe;go=+w.add(go,mt,it),Co++)Xp(Ai,go,Vo);return(go===oe||"ticks"===fe.bounds||1===Co)&&Xp(Ai,go,Vo),Object.keys(Ai).sort((nr,mr)=>nr-mr).map(nr=>+nr)}getLabelForValue(w){const oe=this.options.time;return this._adapter.format(w,oe.tooltipFormat?oe.tooltipFormat:oe.displayFormats.datetime)}_tickFormatFunction(w,Q,oe,fe){const Ee=this.options,it=Ee.time.displayFormats,mt=this._unit,$t=this._majorUnit,Ai=$t&&it[$t],ao=oe[Q],Co=this._adapter.format(w,fe||($t&&Ai&&ao&&ao.major?Ai:mt&&it[mt])),Vo=Ee.ticks.callback;return Vo?b(Vo,[Co,Q,oe],this):Co}generateTickLabels(w){let Q,oe,fe;for(Q=0,oe=w.length;Q<oe;++Q)fe=w[Q],fe.label=this._tickFormatFunction(fe.value,Q,w)}getDecimalForValue(w){return null===w?NaN:(w-this.min)/(this.max-this.min)}getPixelForValue(w){const Q=this._offsets,oe=this.getDecimalForValue(w);return this.getPixelForDecimal((Q.start+oe)*Q.factor)}getValueForPixel(w){const Q=this._offsets,oe=this.getDecimalForPixel(w)/Q.factor-Q.end;return this.min+oe*(this.max-this.min)}_getLabelSize(w){const Q=this.options.ticks,oe=this.ctx.measureText(w).width,fe=ye(this.isHorizontal()?Q.maxRotation:Q.minRotation),Ee=Math.cos(fe),it=Math.sin(fe),mt=this._resolveTickFontOptions(0).size;return{w:oe*Ee+mt*it,h:oe*it+mt*Ee}}_getLabelCapacity(w){const Q=this.options.time,oe=Q.displayFormats,fe=oe[Q.unit]||oe.millisecond,Ee=this._tickFormatFunction(w,0,ru(this,[w],this._majorUnit),fe),it=this._getLabelSize(Ee),mt=Math.floor(this.isHorizontal()?this.width/it.w:this.height/it.h)-1;return mt>0?mt:1}getDataTimestamps(){let Q,oe,w=this._cache.data||[];if(w.length)return w;const fe=this.getMatchingVisibleMetas();if(this._normalized&&fe.length)return this._cache.data=fe[0].controller.getAllParsedValues(this);for(Q=0,oe=fe.length;Q<oe;++Q)w=w.concat(fe[Q].controller.getAllParsedValues(this));return this._cache.data=this.normalize(w)}getLabelTimestamps(){const w=this._cache.labels||[];let Q,oe;if(w.length)return w;const fe=this.getLabels();for(Q=0,oe=fe.length;Q<oe;++Q)w.push(ou(this,fe[Q]));return this._cache.labels=this._normalized?w:this.normalize(w)}normalize(w){return nn(w.sort(v_))}}return U.id="time",U.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}},U})();function Qm(U,S,w){let fe,Ee,it,mt,Q=0,oe=U.length-1;w?(S>=U[Q].pos&&S<=U[oe].pos&&({lo:Q,hi:oe}=tn(U,"pos",S)),({pos:fe,time:it}=U[Q]),({pos:Ee,time:mt}=U[oe])):(S>=U[Q].time&&S<=U[oe].time&&({lo:Q,hi:oe}=tn(U,"time",S)),({time:fe,pos:it}=U[Q]),({time:Ee,pos:mt}=U[oe]));const $t=Ee-fe;return $t?it+(mt-it)*(S-fe)/$t:it}class Dp extends Zp{constructor(S){super(S),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const S=this._getTimestampsForTable(),w=this._table=this.buildLookupTable(S);this._minPos=Qm(w,this.min),this._tableRange=Qm(w,this.max)-this._minPos,super.initOffsets(S)}buildLookupTable(S){const{min:w,max:Q}=this,oe=[],fe=[];let Ee,it,mt,$t,ai;for(Ee=0,it=S.length;Ee<it;++Ee)$t=S[Ee],$t>=w&&$t<=Q&&oe.push($t);if(oe.length<2)return[{time:w,pos:0},{time:Q,pos:1}];for(Ee=0,it=oe.length;Ee<it;++Ee)ai=oe[Ee+1],mt=oe[Ee-1],$t=oe[Ee],Math.round((ai+mt)/2)!==$t&&fe.push({time:$t,pos:Ee/(it-1)});return fe}_getTimestampsForTable(){let S=this._cache.all||[];if(S.length)return S;const w=this.getDataTimestamps(),Q=this.getLabelTimestamps();return S=w.length&&Q.length?this.normalize(w.concat(Q)):w.length?w:Q,S=this._cache.all=S,S}getDecimalForValue(S){return(Qm(this._table,S)-this._minPos)/this._tableRange}getValueForPixel(S){const w=this._offsets,Q=this.getDecimalForPixel(S)/w.factor-w.end;return Qm(this._table,Q*this._tableRange+this._minPos,!0)}}Dp.id="timeseries",Dp.defaults=Zp.defaults,fm.register(se,Oa,f_,Object.freeze({__proto__:null,CategoryScale:Qu,LinearScale:ap,LogarithmicScale:jp,RadialLinearScale:wp,TimeScale:Zp,TimeSeriesScale:Dp}));const n_=fm;let xp=(()=>{class U{platformId;el;zone;type;plugins=[];width;height;responsive=!0;ariaLabel;ariaLabelledBy;get data(){return this._data}set data(w){this._data=w,this.reinit()}get options(){return this._options}set options(w){this._options=w,this.reinit()}onDataSelect=new e.vpe;isBrowser=!1;initialized;_data;_options={};chart;constructor(w,Q,oe){this.platformId=w,this.el=Q,this.zone=oe}ngAfterViewInit(){this.initChart(),this.initialized=!0}onCanvasClick(w){if(this.chart){const Q=this.chart.getElementsAtEventForMode(w,"nearest",{intersect:!0},!1),oe=this.chart.getElementsAtEventForMode(w,"dataset",{intersect:!0},!1);Q&&Q[0]&&oe&&this.onDataSelect.emit({originalEvent:w,element:Q[0],dataset:oe})}}initChart(){if((0,n.NF)(this.platformId)){let w=this.options||{};w.responsive=this.responsive,w.responsive&&(this.height||this.width)&&(w.maintainAspectRatio=!1),this.zone.runOutsideAngular(()=>{this.chart=new n_(this.el.nativeElement.children[0].children[0],{type:this.type,data:this.data,options:this.options,plugins:this.plugins})})}}getCanvas(){return this.el.nativeElement.children[0].children[0]}getBase64Image(){return this.chart.toBase64Image()}generateLegend(){if(this.chart)return this.chart.generateLegend()}refresh(){this.chart&&this.chart.update()}reinit(){this.chart&&(this.chart.destroy(),this.initChart())}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.initialized=!1,this.chart=null)}static \u0275fac=function(Q){return new(Q||U)(e.Y36(e.Lbi),e.Y36(e.SBq),e.Y36(e.R0b))};static \u0275cmp=e.Xpm({type:U,selectors:[["p-chart"]],hostAttrs:[1,"p-element"],inputs:{type:"type",plugins:"plugins",width:"width",height:"height",responsive:"responsive",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",data:"data",options:"options"},outputs:{onDataSelect:"onDataSelect"},decls:2,vars:8,consts:[[2,"position","relative"],["role","img",3,"click"]],template:function(Q,oe){1&Q&&(e.TgZ(0,"div",0)(1,"canvas",1),e.NdJ("click",function(Ee){return oe.onCanvasClick(Ee)}),e.qZA()()),2&Q&&(e.Udp("width",oe.responsive&&!oe.width?null:oe.width)("height",oe.responsive&&!oe.height?null:oe.height),e.xp6(),e.uIk("aria-label",oe.ariaLabel)("aria-labelledby",oe.ariaLabelledBy)("width",oe.responsive&&!oe.width?null:oe.width)("height",oe.responsive&&!oe.height?null:oe.height))},encapsulation:2,changeDetection:0})}return U})(),Ip=(()=>{class U{static \u0275fac=function(Q){return new(Q||U)};static \u0275mod=e.oAB({type:U});static \u0275inj=e.cJS({imports:[n.ez]})}return U})()},82076:(gt,X,a)=>{"use strict";a.d(X,{V:()=>n,p:()=>e});let e=(()=>{class s{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(i,t){i&&t&&(i.classList?i.classList.add(t):i.className+=" "+t)}static addMultipleClasses(i,t){if(i&&t)if(i.classList){let p=t.trim().split(" ");for(let c=0;c<p.length;c++)i.classList.add(p[c])}else{let p=t.split(" ");for(let c=0;c<p.length;c++)i.className+=" "+p[c]}}static removeClass(i,t){i&&t&&(i.classList?i.classList.remove(t):i.className=i.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," "))}static removeMultipleClasses(i,t){i&&t&&[t].flat().filter(Boolean).forEach(p=>p.split(" ").forEach(c=>this.removeClass(i,c)))}static hasClass(i,t){return!(!i||!t)&&(i.classList?i.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(i.className))}static siblings(i){return Array.prototype.filter.call(i.parentNode.children,function(t){return t!==i})}static find(i,t){return Array.from(i.querySelectorAll(t))}static findSingle(i,t){return this.isElement(i)?i.querySelector(t):null}static index(i){let t=i.parentNode.childNodes,p=0;for(var c=0;c<t.length;c++){if(t[c]==i)return p;1==t[c].nodeType&&p++}return-1}static indexWithinGroup(i,t){let p=i.parentNode?i.parentNode.childNodes:[],c=0;for(var o=0;o<p.length;o++){if(p[o]==i)return c;p[o].attributes&&p[o].attributes[t]&&1==p[o].nodeType&&c++}return-1}static appendOverlay(i,t,p="self"){"self"!==p&&i&&t&&this.appendChild(i,t)}static alignOverlay(i,t,p="self",c=!0){i&&t&&(c&&(i.style.minWidth=`${s.getOuterWidth(t)}px`),"self"===p?this.relativePosition(i,t):this.absolutePosition(i,t))}static relativePosition(i,t){const p=ae=>{if(ae)return"relative"===getComputedStyle(ae).getPropertyValue("position")?ae:p(ae.parentElement)},c=i.offsetParent?{width:i.offsetWidth,height:i.offsetHeight}:this.getHiddenElementDimensions(i),o=t.offsetHeight,x=t.getBoundingClientRect(),u=this.getWindowScrollTop(),m=this.getWindowScrollLeft(),b=this.getViewport(),H=p(i)?.getBoundingClientRect()||{top:-1*u,left:-1*m};let O,P;x.top+o+c.height>b.height?(O=x.top-H.top-c.height,i.style.transformOrigin="bottom",x.top+O<0&&(O=-1*x.top)):(O=o+x.top-H.top,i.style.transformOrigin="top");const G=x.left+c.width-b.width;P=c.width>b.width?-1*(x.left-H.left):G>0?x.left-H.left-G:x.left-H.left,i.style.top=O+"px",i.style.left=P+"px"}static absolutePosition(i,t){const p=i.offsetParent?{width:i.offsetWidth,height:i.offsetHeight}:this.getHiddenElementDimensions(i),c=p.height,o=p.width,x=t.offsetHeight,u=t.offsetWidth,m=t.getBoundingClientRect(),b=this.getWindowScrollTop(),I=this.getWindowScrollLeft(),H=this.getViewport();let O,P;m.top+x+c>H.height?(O=m.top+b-c,i.style.transformOrigin="bottom",O<0&&(O=b)):(O=x+m.top+b,i.style.transformOrigin="top"),P=m.left+o>H.width?Math.max(0,m.left+I+u-o):m.left+I,i.style.top=O+"px",i.style.left=P+"px"}static getParents(i,t=[]){return null===i.parentNode?t:this.getParents(i.parentNode,t.concat([i.parentNode]))}static getScrollableParents(i){let t=[];if(i){let p=this.getParents(i);const c=/(auto|scroll)/,o=x=>{let u=window.getComputedStyle(x,null);return c.test(u.getPropertyValue("overflow"))||c.test(u.getPropertyValue("overflowX"))||c.test(u.getPropertyValue("overflowY"))};for(let x of p){let u=1===x.nodeType&&x.dataset.scrollselectors;if(u){let m=u.split(",");for(let b of m){let I=this.findSingle(x,b);I&&o(I)&&t.push(I)}}9!==x.nodeType&&o(x)&&t.push(x)}}return t}static getHiddenElementOuterHeight(i){i.style.visibility="hidden",i.style.display="block";let t=i.offsetHeight;return i.style.display="none",i.style.visibility="visible",t}static getHiddenElementOuterWidth(i){i.style.visibility="hidden",i.style.display="block";let t=i.offsetWidth;return i.style.display="none",i.style.visibility="visible",t}static getHiddenElementDimensions(i){let t={};return i.style.visibility="hidden",i.style.display="block",t.width=i.offsetWidth,t.height=i.offsetHeight,i.style.display="none",i.style.visibility="visible",t}static scrollInView(i,t){let p=getComputedStyle(i).getPropertyValue("borderTopWidth"),c=p?parseFloat(p):0,o=getComputedStyle(i).getPropertyValue("paddingTop"),x=o?parseFloat(o):0,u=i.getBoundingClientRect(),b=t.getBoundingClientRect().top+document.body.scrollTop-(u.top+document.body.scrollTop)-c-x,I=i.scrollTop,H=i.clientHeight,O=this.getOuterHeight(t);b<0?i.scrollTop=I+b:b+O>H&&(i.scrollTop=I+b-H+O)}static fadeIn(i,t){i.style.opacity=0;let p=+new Date,c=0,o=function(){c=+i.style.opacity.replace(",",".")+((new Date).getTime()-p)/t,i.style.opacity=c,p=+new Date,+c<1&&(window.requestAnimationFrame&&requestAnimationFrame(o)||setTimeout(o,16))};o()}static fadeOut(i,t){var p=1,x=50/t;let u=setInterval(()=>{(p-=x)<=0&&(p=0,clearInterval(u)),i.style.opacity=p},50)}static getWindowScrollTop(){let i=document.documentElement;return(window.pageYOffset||i.scrollTop)-(i.clientTop||0)}static getWindowScrollLeft(){let i=document.documentElement;return(window.pageXOffset||i.scrollLeft)-(i.clientLeft||0)}static matches(i,t){var p=Element.prototype;return(p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.msMatchesSelector||function(o){return-1!==[].indexOf.call(document.querySelectorAll(o),this)}).call(i,t)}static getOuterWidth(i,t){let p=i.offsetWidth;if(t){let c=getComputedStyle(i);p+=parseFloat(c.marginLeft)+parseFloat(c.marginRight)}return p}static getHorizontalPadding(i){let t=getComputedStyle(i);return parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)}static getHorizontalMargin(i){let t=getComputedStyle(i);return parseFloat(t.marginLeft)+parseFloat(t.marginRight)}static innerWidth(i){let t=i.offsetWidth,p=getComputedStyle(i);return t+=parseFloat(p.paddingLeft)+parseFloat(p.paddingRight),t}static width(i){let t=i.offsetWidth,p=getComputedStyle(i);return t-=parseFloat(p.paddingLeft)+parseFloat(p.paddingRight),t}static getInnerHeight(i){let t=i.offsetHeight,p=getComputedStyle(i);return t+=parseFloat(p.paddingTop)+parseFloat(p.paddingBottom),t}static getOuterHeight(i,t){let p=i.offsetHeight;if(t){let c=getComputedStyle(i);p+=parseFloat(c.marginTop)+parseFloat(c.marginBottom)}return p}static getHeight(i){let t=i.offsetHeight,p=getComputedStyle(i);return t-=parseFloat(p.paddingTop)+parseFloat(p.paddingBottom)+parseFloat(p.borderTopWidth)+parseFloat(p.borderBottomWidth),t}static getWidth(i){let t=i.offsetWidth,p=getComputedStyle(i);return t-=parseFloat(p.paddingLeft)+parseFloat(p.paddingRight)+parseFloat(p.borderLeftWidth)+parseFloat(p.borderRightWidth),t}static getViewport(){let i=window,t=document,p=t.documentElement,c=t.getElementsByTagName("body")[0];return{width:i.innerWidth||p.clientWidth||c.clientWidth,height:i.innerHeight||p.clientHeight||c.clientHeight}}static getOffset(i){var t=i.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(i,t){let p=i.parentNode;if(!p)throw"Can't replace element";return p.replaceChild(t,i)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var i=window.navigator.userAgent;return i.indexOf("MSIE ")>0||(i.indexOf("Trident/")>0?(i.indexOf("rv:"),!0):i.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(i,t){if(this.isElement(t))t.appendChild(i);else{if(!(t&&t.el&&t.el.nativeElement))throw"Cannot append "+t+" to "+i;t.el.nativeElement.appendChild(i)}}static removeChild(i,t){if(this.isElement(t))t.removeChild(i);else{if(!t.el||!t.el.nativeElement)throw"Cannot remove "+i+" from "+t;t.el.nativeElement.removeChild(i)}}static removeElement(i){"remove"in Element.prototype?i.remove():i.parentNode.removeChild(i)}static isElement(i){return"object"==typeof HTMLElement?i instanceof HTMLElement:i&&"object"==typeof i&&null!==i&&1===i.nodeType&&"string"==typeof i.nodeName}static calculateScrollbarWidth(i){if(i){let t=getComputedStyle(i);return i.offsetWidth-i.clientWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let t=document.createElement("div");t.className="p-scrollbar-measure",document.body.appendChild(t);let p=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),this.calculatedScrollbarWidth=p,p}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let i=document.createElement("div");i.className="p-scrollbar-measure",document.body.appendChild(i);let t=i.offsetHeight-i.clientHeight;return document.body.removeChild(i),this.calculatedScrollbarWidth=t,t}static invokeElementMethod(i,t,p){i[t].apply(i,p)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let i=this.resolveUserAgent();this.browser={},i.browser&&(this.browser[i.browser]=!0,this.browser.version=i.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let i=navigator.userAgent.toLowerCase(),t=/(chrome)[ \/]([\w.]+)/.exec(i)||/(webkit)[ \/]([\w.]+)/.exec(i)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(i)||/(msie) ([\w.]+)/.exec(i)||i.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(i)||[];return{browser:t[1]||"",version:t[2]||"0"}}static isInteger(i){return Number.isInteger?Number.isInteger(i):"number"==typeof i&&isFinite(i)&&Math.floor(i)===i}static isHidden(i){return!i||null===i.offsetParent}static isVisible(i){return i&&null!=i.offsetParent}static isExist(i){return null!==i&&typeof i<"u"&&i.nodeName&&i.parentNode}static focus(i,t){i&&document.activeElement!==i&&i.focus(t)}static getFocusableElements(i,t=""){let p=this.find(i,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n                [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n                input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n                select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n                textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n                [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n                [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}`),c=[];for(let o of p){const x=getComputedStyle(o);this.isVisible(o)&&"none"!=x.display&&"hidden"!=x.visibility&&c.push(o)}return c}static getFirstFocusableElement(i,t){const p=this.getFocusableElements(i,t);return p.length>0?p[0]:null}static getLastFocusableElement(i,t){const p=this.getFocusableElements(i,t);return p.length>0?p[p.length-1]:null}static getNextFocusableElement(i,t=!1){const p=s.getFocusableElements(i);let c=0;if(p&&p.length>0){const o=p.indexOf(p[0].ownerDocument.activeElement);t?c=-1==o||0===o?p.length-1:o-1:-1!=o&&o!==p.length-1&&(c=o+1)}return p[c]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(i,t){if(!i)return null;switch(i){case"document":return document;case"window":return window;case"@next":return t?.nextElementSibling;case"@prev":return t?.previousElementSibling;case"@parent":return t?.parentElement;case"@grandparent":return t?.parentElement.parentElement;default:const p=typeof i;if("string"===p)return document.querySelector(i);if("object"===p&&i.hasOwnProperty("nativeElement"))return this.isExist(i.nativeElement)?i.nativeElement:void 0;const o=(x=i)&&x.constructor&&x.call&&x.apply?i():i;return o&&9===o.nodeType||this.isExist(o)?o:null}var x}static isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}static getAttribute(i,t){if(i){const p=i.getAttribute(t);return isNaN(p)?"true"===p||"false"===p?"true"===p:p:+p}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(i="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,i)}static unblockBodyScroll(i="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,i)}}return s})();class n{element;listener;scrollableParents;constructor(l,i=(()=>{})){this.element=l,this.listener=i}bindScrollListener(){this.scrollableParents=e.getScrollableParents(this.element);for(let l=0;l<this.scrollableParents.length;l++)this.scrollableParents[l].addEventListener("scroll",this.listener)}unbindScrollListener(){if(this.scrollableParents)for(let l=0;l<this.scrollableParents.length;l++)this.scrollableParents[l].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}},73988:(gt,X,a)=>{"use strict";a.d(X,{Lt:()=>po,kW:()=>Kn});var e=a(96814),n=a(19212),s=a(56223),l=a(85219),i=a(82076);let t=(()=>{class Vn{host;constructor(Ft){this.host=Ft}autofocus;focused=!1;ngAfterContentChecked(){this.focused||this.autofocus&&setTimeout(()=>{const Ft=i.p.getFocusableElements(this.host.nativeElement);0===Ft.length&&this.host.nativeElement.focus(),Ft.length>0&&Ft[0].focus(),this.focused=!0})}static \u0275fac=function(Oi){return new(Oi||Vn)(n.Y36(n.SBq))};static \u0275dir=n.lG2({type:Vn,selectors:[["","pAutoFocus",""]],hostAttrs:[1,"p-element"],inputs:{autofocus:"autofocus"}})}return Vn})(),p=(()=>{class Vn{static \u0275fac=function(Oi){return new(Oi||Vn)};static \u0275mod=n.oAB({type:Vn});static \u0275inj=n.cJS({imports:[e.ez]})}return Vn})();var c=a(86825),o=a(2332);const x=["overlay"],u=["content"];function m(Vn,Wi){1&Vn&&n.GkF(0)}const b=(Vn,Wi,Ft)=>({showTransitionParams:Vn,hideTransitionParams:Wi,transform:Ft}),I=Vn=>({value:"visible",params:Vn}),H=Vn=>({mode:Vn}),O=Vn=>({$implicit:Vn});function P(Vn,Wi){if(1&Vn){const Ft=n.EpF();n.TgZ(0,"div",1,3),n.NdJ("click",function(On){n.CHM(Ft);const _n=n.oxw(2);return n.KtG(_n.onOverlayContentClick(On))})("@overlayContentAnimation.start",function(On){n.CHM(Ft);const _n=n.oxw(2);return n.KtG(_n.onOverlayContentAnimationStart(On))})("@overlayContentAnimation.done",function(On){n.CHM(Ft);const _n=n.oxw(2);return n.KtG(_n.onOverlayContentAnimationDone(On))}),n.Hsn(2),n.YNc(3,m,1,0,"ng-container",4),n.qZA()}if(2&Vn){const Ft=n.oxw(2);n.Tol(Ft.contentStyleClass),n.Q6J("ngStyle",Ft.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",n.VKq(11,I,n.kEZ(7,b,Ft.showTransitionOptions,Ft.hideTransitionOptions,Ft.transformOptions[Ft.modal?Ft.overlayResponsiveDirection:"default"]))),n.xp6(3),n.Q6J("ngTemplateOutlet",Ft.contentTemplate)("ngTemplateOutletContext",n.VKq(15,O,n.VKq(13,H,Ft.overlayMode)))}}const G=(Vn,Wi,Ft,Oi,On,_n,st,Dn,Wt,kn,Fi,ui,Fo,At)=>({"p-overlay p-component":!0,"p-overlay-modal p-component-overlay p-component-overlay-enter":Vn,"p-overlay-center":Wi,"p-overlay-top":Ft,"p-overlay-top-start":Oi,"p-overlay-top-end":On,"p-overlay-bottom":_n,"p-overlay-bottom-start":st,"p-overlay-bottom-end":Dn,"p-overlay-left":Wt,"p-overlay-left-start":kn,"p-overlay-left-end":Fi,"p-overlay-right":ui,"p-overlay-right-start":Fo,"p-overlay-right-end":At});function B(Vn,Wi){if(1&Vn){const Ft=n.EpF();n.TgZ(0,"div",1,2),n.NdJ("click",function(){n.CHM(Ft);const On=n.oxw();return n.KtG(On.onOverlayClick())}),n.YNc(2,P,4,17,"div",0),n.qZA()}if(2&Vn){const Ft=n.oxw();n.Tol(Ft.styleClass),n.Q6J("ngStyle",Ft.style)("ngClass",n.rFY(5,G,[Ft.modal,Ft.modal&&"center"===Ft.overlayResponsiveDirection,Ft.modal&&"top"===Ft.overlayResponsiveDirection,Ft.modal&&"top-start"===Ft.overlayResponsiveDirection,Ft.modal&&"top-end"===Ft.overlayResponsiveDirection,Ft.modal&&"bottom"===Ft.overlayResponsiveDirection,Ft.modal&&"bottom-start"===Ft.overlayResponsiveDirection,Ft.modal&&"bottom-end"===Ft.overlayResponsiveDirection,Ft.modal&&"left"===Ft.overlayResponsiveDirection,Ft.modal&&"left-start"===Ft.overlayResponsiveDirection,Ft.modal&&"left-end"===Ft.overlayResponsiveDirection,Ft.modal&&"right"===Ft.overlayResponsiveDirection,Ft.modal&&"right-start"===Ft.overlayResponsiveDirection,Ft.modal&&"right-end"===Ft.overlayResponsiveDirection])),n.xp6(2),n.Q6J("ngIf",Ft.visible)}}const ae=["*"],J={provide:s.JU,useExisting:(0,n.Gpc)(()=>Y),multi:!0},q=(0,c.oQ)([(0,c.oB)({transform:"{{transform}}",opacity:0}),(0,c.jt)("{{showTransitionParams}}")]),j=(0,c.oQ)([(0,c.jt)("{{hideTransitionParams}}",(0,c.oB)({transform:"{{transform}}",opacity:0}))]);let Y=(()=>{class Vn{document;platformId;el;renderer;config;overlayService;cd;zone;get visible(){return this._visible}set visible(Ft){this._visible=Ft,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(Ft){this._mode=Ft}get style(){return o.gb.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(Ft){this._style=Ft}get styleClass(){return o.gb.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(Ft){this._styleClass=Ft}get contentStyle(){return o.gb.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(Ft){this._contentStyle=Ft}get contentStyleClass(){return o.gb.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(Ft){this._contentStyleClass=Ft}get target(){const Ft=this._target||this.overlayOptions?.target;return void 0===Ft?"@prev":Ft}set target(Ft){this._target=Ft}get appendTo(){return this._appendTo||this.overlayOptions?.appendTo}set appendTo(Ft){this._appendTo=Ft}get autoZIndex(){const Ft=this._autoZIndex||this.overlayOptions?.autoZIndex;return void 0===Ft||Ft}set autoZIndex(Ft){this._autoZIndex=Ft}get baseZIndex(){const Ft=this._baseZIndex||this.overlayOptions?.baseZIndex;return void 0===Ft?0:Ft}set baseZIndex(Ft){this._baseZIndex=Ft}get showTransitionOptions(){const Ft=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return void 0===Ft?".12s cubic-bezier(0, 0, 0.2, 1)":Ft}set showTransitionOptions(Ft){this._showTransitionOptions=Ft}get hideTransitionOptions(){const Ft=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return void 0===Ft?".1s linear":Ft}set hideTransitionOptions(Ft){this._hideTransitionOptions=Ft}get listener(){return this._listener||this.overlayOptions?.listener}set listener(Ft){this._listener=Ft}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(Ft){this._responsive=Ft}get options(){return this._options}set options(Ft){this._options=Ft}visibleChange=new n.vpe;onBeforeShow=new n.vpe;onShow=new n.vpe;onBeforeHide=new n.vpe;onHide=new n.vpe;onAnimationStart=new n.vpe;onAnimationDone=new n.vpe;templates;overlayViewChild;contentViewChild;contentTemplate;_visible=!1;_mode;_style;_styleClass;_contentStyle;_contentStyleClass;_target;_appendTo;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_listener;_responsive;_options;modalVisible=!1;isOverlayClicked=!1;isOverlayContentClicked=!1;scrollHandler;documentClickListener;documentResizeListener;documentKeyboardListener;window;transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"};get modal(){if((0,e.NF)(this.platformId))return"modal"===this.mode||this.overlayResponsiveOptions&&this.window?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return{...this.config?.overlayOptions,...this.options}}get overlayResponsiveOptions(){return{...this.overlayOptions?.responsive,...this.responsive}}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return i.p.getTargetElement(this.target,this.el?.nativeElement)}constructor(Ft,Oi,On,_n,st,Dn,Wt,kn){this.document=Ft,this.platformId=Oi,this.el=On,this.renderer=_n,this.config=st,this.overlayService=Dn,this.cd=Wt,this.zone=kn,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach(Ft=>{Ft.getType(),this.contentTemplate=Ft.template})}show(Ft,Oi=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:Ft||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),Oi&&i.p.focus(this.targetEl),this.modal&&i.p.addClass(this.document?.body,"p-overflow-hidden")}hide(Ft,Oi=!1){this.visible&&(this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:Ft||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),Oi&&i.p.focus(this.targetEl),this.modal&&i.p.removeClass(this.document?.body,"p-overflow-hidden"))}alignOverlay(){!this.modal&&i.p.alignOverlay(this.overlayEl,this.targetEl,this.appendTo)}onVisibleChange(Ft){this._visible=Ft,this.visibleChange.emit(Ft)}onOverlayClick(){this.isOverlayClicked=!0}onOverlayContentClick(Ft){this.overlayService.add({originalEvent:Ft,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(Ft){switch(Ft.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&o.P9.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),i.p.appendOverlay(this.overlayEl,"body"===this.appendTo?this.document.body:this.appendTo,this.appendTo),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&i.p.addClass(this.overlayEl,"p-component-overlay-leave")}this.handleEvents("onAnimationStart",Ft)}onOverlayContentAnimationDone(Ft){const Oi=this.overlayEl||Ft.element.parentElement;switch(Ft.toState){case"visible":this.show(Oi,!0),this.bindListeners();break;case"void":this.hide(Oi,!0),this.unbindListeners(),i.p.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),o.P9.clear(Oi),this.modalVisible=!1,this.cd.markForCheck()}this.handleEvents("onAnimationDone",Ft)}handleEvents(Ft,Oi){this[Ft].emit(Oi),this.options&&this.options[Ft]&&this.options[Ft](Oi),this.config?.overlayOptions&&(this.config?.overlayOptions)[Ft]&&(this.config?.overlayOptions)[Ft](Oi)}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new i.V(this.targetEl,Ft=>{(!this.listener||this.listener(Ft,{type:"scroll",mode:this.overlayMode,valid:!0}))&&this.hide(Ft,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",Ft=>{const On=!(this.targetEl&&(this.targetEl.isSameNode(Ft.target)||!this.isOverlayClicked&&this.targetEl.contains(Ft.target))||this.isOverlayContentClicked);(this.listener?this.listener(Ft,{type:"outside",mode:this.overlayMode,valid:3!==Ft.which&&On}):On)&&this.hide(Ft),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.window,"resize",Ft=>{(this.listener?this.listener(Ft,{type:"resize",mode:this.overlayMode,valid:!i.p.isTouchDevice()}):!i.p.isTouchDevice())&&this.hide(Ft,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.window,"keydown",Ft=>{!1!==this.overlayOptions.hideOnEscape&&"Escape"===Ft.code&&(this.listener?this.listener(Ft,{type:"keydown",mode:this.overlayMode,valid:!i.p.isTouchDevice()}):!i.p.isTouchDevice())&&this.zone.run(()=>{this.hide(Ft,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}ngOnDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&(i.p.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),o.P9.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}static \u0275fac=function(Oi){return new(Oi||Vn)(n.Y36(e.K0),n.Y36(n.Lbi),n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(l.b4),n.Y36(l.F0),n.Y36(n.sBO),n.Y36(n.R0b))};static \u0275cmp=n.Xpm({type:Vn,selectors:[["p-overlay"]],contentQueries:function(Oi,On,_n){if(1&Oi&&n.Suo(_n,l.jx,4),2&Oi){let st;n.iGM(st=n.CRH())&&(On.templates=st)}},viewQuery:function(Oi,On){if(1&Oi&&(n.Gf(x,5),n.Gf(u,5)),2&Oi){let _n;n.iGM(_n=n.CRH())&&(On.overlayViewChild=_n.first),n.iGM(_n=n.CRH())&&(On.contentViewChild=_n.first)}},hostAttrs:[1,"p-element"],inputs:{visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options"},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[n._Bn([J])],ngContentSelectors:ae,decls:1,vars:1,consts:[[3,"ngStyle","class","ngClass","click",4,"ngIf"],[3,"ngStyle","ngClass","click"],["overlay",""],["content",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(Oi,On){1&Oi&&(n.F$t(),n.YNc(0,B,3,20,"div",0)),2&Oi&&n.Q6J("ngIf",On.modalVisible)},dependencies:[e.mk,e.O5,e.tP,e.PC],styles:["@layer primeng{.p-overlay{position:absolute;top:0;left:0}.p-overlay-modal{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%}.p-overlay-content{transform-origin:inherit}.p-overlay-modal>.p-overlay-content{z-index:1;width:90%}.p-overlay-top{align-items:flex-start}.p-overlay-top-start{align-items:flex-start;justify-content:flex-start}.p-overlay-top-end{align-items:flex-start;justify-content:flex-end}.p-overlay-bottom{align-items:flex-end}.p-overlay-bottom-start{align-items:flex-end;justify-content:flex-start}.p-overlay-bottom-end{align-items:flex-end;justify-content:flex-end}.p-overlay-left{justify-content:flex-start}.p-overlay-left-start{justify-content:flex-start;align-items:flex-start}.p-overlay-left-end{justify-content:flex-start;align-items:flex-end}.p-overlay-right{justify-content:flex-end}.p-overlay-right-start{justify-content:flex-end;align-items:flex-start}.p-overlay-right-end{justify-content:flex-end;align-items:flex-end}}\n"],encapsulation:2,data:{animation:[(0,c.X$)("overlayContentAnimation",[(0,c.eR)(":enter",[(0,c._7)(q)]),(0,c.eR)(":leave",[(0,c._7)(j)])])]},changeDetection:0})}return Vn})(),K=(()=>{class Vn{static \u0275fac=function(Oi){return new(Oi||Vn)};static \u0275mod=n.oAB({type:Vn});static \u0275inj=n.cJS({imports:[e.ez,l.m8,l.m8]})}return Vn})();var ne=a(44480),ee=a(26489);let $=(()=>{class Vn{platformId;el;zone;config;renderer;viewContainer;tooltipPosition;tooltipEvent="hover";appendTo;positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;content;get disabled(){return this._disabled}set disabled(Ft){this._disabled=Ft,this.deactivate()}tooltipOptions;_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,id:(0,o.Th)()+"_tooltip"};_disabled;container;styleClass;tooltipText;showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;scrollHandler;resizeListener;constructor(Ft,Oi,On,_n,st,Dn){this.platformId=Ft,this.el=Oi,this.zone=On,this.config=_n,this.renderer=st,this.viewContainer=Dn}ngAfterViewInit(){(0,e.NF)(this.platformId)&&this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener);else if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let Ft=this.getTarget(this.el.nativeElement);Ft.addEventListener("focus",this.focusListener),Ft.addEventListener("blur",this.blurListener)}})}ngOnChanges(Ft){Ft.tooltipPosition&&this.setOption({tooltipPosition:Ft.tooltipPosition.currentValue}),Ft.tooltipEvent&&this.setOption({tooltipEvent:Ft.tooltipEvent.currentValue}),Ft.appendTo&&this.setOption({appendTo:Ft.appendTo.currentValue}),Ft.positionStyle&&this.setOption({positionStyle:Ft.positionStyle.currentValue}),Ft.tooltipStyleClass&&this.setOption({tooltipStyleClass:Ft.tooltipStyleClass.currentValue}),Ft.tooltipZIndex&&this.setOption({tooltipZIndex:Ft.tooltipZIndex.currentValue}),Ft.escape&&this.setOption({escape:Ft.escape.currentValue}),Ft.showDelay&&this.setOption({showDelay:Ft.showDelay.currentValue}),Ft.hideDelay&&this.setOption({hideDelay:Ft.hideDelay.currentValue}),Ft.life&&this.setOption({life:Ft.life.currentValue}),Ft.positionTop&&this.setOption({positionTop:Ft.positionTop.currentValue}),Ft.positionLeft&&this.setOption({positionLeft:Ft.positionLeft.currentValue}),Ft.disabled&&this.setOption({disabled:Ft.disabled.currentValue}),Ft.content&&(this.setOption({tooltipLabel:Ft.content.currentValue}),this.active&&(Ft.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),Ft.autoHide&&this.setOption({autoHide:Ft.autoHide.currentValue}),Ft.id&&this.setOption({id:Ft.id.currentValue}),Ft.tooltipOptions&&(this._tooltipOptions={...this._tooltipOptions,...Ft.tooltipOptions.currentValue},this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(Ft){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(Ft){(this.isAutoHide()||!(i.p.hasClass(Ft.relatedTarget,"p-tooltip")||i.p.hasClass(Ft.relatedTarget,"p-tooltip-text")||i.p.hasClass(Ft.relatedTarget,"p-tooltip-arrow")))&&this.deactivate()}onFocus(Ft){this.activate()}onBlur(Ft){this.deactivate()}onInputClick(Ft){this.deactivate()}onPressEscape(){this.hideOnEscape&&this.deactivate()}activate(){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let Ft=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},Ft)}}deactivate(){this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div"),this.container.setAttribute("id",this.getOption("id")),this.container.setAttribute("role","tooltip");let Ft=document.createElement("div");Ft.className="p-tooltip-arrow",this.container.appendChild(Ft),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),"body"===this.getOption("appendTo")?document.body.appendChild(this.container):"target"===this.getOption("appendTo")?i.p.appendChild(this.container,this.el.nativeElement):i.p.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){this.containerMouseleaveListener||(this.containerMouseleaveListener=this.renderer.listen(this.container??this.container.nativeElement,"mouseleave",Oi=>{this.deactivate()}))}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),i.p.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?o.P9.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&o.P9.clear(this.container),this.remove()}updateText(){const Ft=this.getOption("tooltipLabel");if(Ft instanceof n.Rgc){const Oi=this.viewContainer.createEmbeddedView(Ft);Oi.detectChanges(),Oi.rootNodes.forEach(On=>this.tooltipText.appendChild(On))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(Ft))):this.tooltipText.innerHTML=Ft}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()))}}getHostOffset(){if("body"===this.getOption("appendTo")||"target"===this.getOption("appendTo")){let Ft=this.el.nativeElement.getBoundingClientRect();return{left:Ft.left+i.p.getWindowScrollLeft(),top:Ft.top+i.p.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let Ft=this.getHostOffset(),Oi=Ft.left+i.p.getOuterWidth(this.el.nativeElement),On=Ft.top+(i.p.getOuterHeight(this.el.nativeElement)-i.p.getOuterHeight(this.container))/2;this.container.style.left=Oi+this.getOption("positionLeft")+"px",this.container.style.top=On+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let Ft=this.getHostOffset(),Oi=Ft.left-i.p.getOuterWidth(this.container),On=Ft.top+(i.p.getOuterHeight(this.el.nativeElement)-i.p.getOuterHeight(this.container))/2;this.container.style.left=Oi+this.getOption("positionLeft")+"px",this.container.style.top=On+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let Ft=this.getHostOffset(),Oi=Ft.left+(i.p.getOuterWidth(this.el.nativeElement)-i.p.getOuterWidth(this.container))/2,On=Ft.top-i.p.getOuterHeight(this.container);this.container.style.left=Oi+this.getOption("positionLeft")+"px",this.container.style.top=On+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let Ft=this.getHostOffset(),Oi=Ft.left+(i.p.getOuterWidth(this.el.nativeElement)-i.p.getOuterWidth(this.container))/2,On=Ft.top+i.p.getOuterHeight(this.el.nativeElement);this.container.style.left=Oi+this.getOption("positionLeft")+"px",this.container.style.top=On+this.getOption("positionTop")+"px"}setOption(Ft){this._tooltipOptions={...this._tooltipOptions,...Ft}}getOption(Ft){return this._tooltipOptions[Ft]}getTarget(Ft){return i.p.hasClass(Ft,"p-inputwrapper")?i.p.findSingle(Ft,"input"):Ft}preAlign(Ft){this.container.style.left="-999px",this.container.style.top="-999px";let Oi="p-tooltip p-component p-tooltip-"+Ft;this.container.className=this.getOption("tooltipStyleClass")?Oi+" "+this.getOption("tooltipStyleClass"):Oi}isOutOfBounds(){let Ft=this.container.getBoundingClientRect(),Oi=Ft.top,On=Ft.left,_n=i.p.getOuterWidth(this.container),st=i.p.getOuterHeight(this.container),Dn=i.p.getViewport();return On+_n>Dn.width||On<0||Oi<0||Oi+st>Dn.height}onWindowResize(Ft){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new i.V(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("hover"===this.getOption("tooltipEvent"))this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){let Ft=this.getTarget(this.el.nativeElement);Ft.removeEventListener("focus",this.focusListener),Ft.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&("body"===this.getOption("appendTo")?document.body.removeChild(this.container):"target"===this.getOption("appendTo")?this.el.nativeElement.removeChild(this.container):i.p.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&o.P9.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}static \u0275fac=function(Oi){return new(Oi||Vn)(n.Y36(n.Lbi),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(l.b4),n.Y36(n.Qsj),n.Y36(n.s_b))};static \u0275dir=n.lG2({type:Vn,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],hostBindings:function(Oi,On){1&Oi&&n.NdJ("keydown.escape",function(st){return On.onPressEscape(st)},!1,n.evT)},inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:"escape",showDelay:"showDelay",hideDelay:"hideDelay",life:"life",positionTop:"positionTop",positionLeft:"positionLeft",autoHide:"autoHide",fitContent:"fitContent",hideOnEscape:"hideOnEscape",content:[n.lbL.None,"pTooltip","content"],disabled:[n.lbL.None,"tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[n.TTD]})}return Vn})(),ue=(()=>{class Vn{static \u0275fac=function(Oi){return new(Oi||Vn)};static \u0275mod=n.oAB({type:Vn});static \u0275inj=n.cJS({imports:[e.ez]})}return Vn})();var ge=a(77778),Ke=a(76005),at=a(84713);let Le=(()=>{class Vn extends at.s{pathId;ngOnInit(){this.pathId="url(#"+(0,o.Th)()+")"}static \u0275fac=(()=>{let Ft;return function(On){return(Ft||(Ft=n.n5z(Vn)))(On||Vn)}})();static \u0275cmp=n.Xpm({type:Vn,selectors:[["SearchIcon"]],standalone:!0,features:[n.qOj,n.jDz],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(Oi,On){1&Oi&&(n.O4$(),n.TgZ(0,"svg",0)(1,"g"),n._UZ(2,"path",1),n.qZA(),n.TgZ(3,"defs")(4,"clipPath",2),n._UZ(5,"rect",3),n.qZA()()()),2&Oi&&(n.Tol(On.getClassNames()),n.uIk("aria-label",On.ariaLabel)("aria-hidden",On.ariaHidden)("role",On.role),n.xp6(),n.uIk("clip-path",On.pathId),n.xp6(3),n.Q6J("id",On.pathId))},encapsulation:2})}return Vn})();function R(Vn,Wi){if(1&Vn&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&Vn){const Ft=n.oxw();let Oi;n.xp6(),n.Oqu(null!==(Oi=Ft.label)&&void 0!==Oi?Oi:"empty")}}function Te(Vn,Wi){1&Vn&&n.GkF(0)}const me=Vn=>({height:Vn}),Se=(Vn,Wi,Ft)=>({"p-dropdown-item":!0,"p-highlight":Vn,"p-disabled":Wi,"p-focus":Ft}),Ue=Vn=>({$implicit:Vn}),We=["container"],et=["filter"],Et=["focusInput"],lt=["editableInput"],Vt=["items"],r=["scroller"],Z=["overlay"],Pt=["firstHiddenFocusableEl"],Oe=["lastHiddenFocusableEl"];function ye(Vn,Wi){if(1&Vn&&(n.ynx(0),n._uU(1),n.BQk()),2&Vn){const Ft=n.oxw(2);n.xp6(),n.Oqu("p-emptylabel"===Ft.label()?"\xa0":Ft.label())}}function ve(Vn,Wi){if(1&Vn&&n.GkF(0,15),2&Vn){const Ft=n.oxw(2);n.Q6J("ngTemplateOutlet",Ft.selectedItemTemplate)("ngTemplateOutletContext",n.VKq(2,Ue,Ft.selectedOption))}}function ft(Vn,Wi){if(1&Vn&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&Vn){const Ft=n.oxw(3);n.xp6(),n.Oqu("p-emptylabel"===Ft.label()?"\xa0":Ft.placeholder())}}function Dt(Vn,Wi){if(1&Vn&&n.YNc(0,ft,2,1,"span",4),2&Vn){const Ft=n.oxw(2);n.Q6J("ngIf",Ft.displayPlaceholder())}}function Rn(Vn,Wi){if(1&Vn){const Ft=n.EpF();n.TgZ(0,"span",10,11),n.NdJ("focus",function(On){n.CHM(Ft);const _n=n.oxw();return n.KtG(_n.onInputFocus(On))})("blur",function(On){n.CHM(Ft);const _n=n.oxw();return n.KtG(_n.onInputBlur(On))})("keydown",function(On){n.CHM(Ft);const _n=n.oxw();return n.KtG(_n.onKeyDown(On))}),n.YNc(2,ye,2,1,"ng-container",12)(3,ve,1,4,"ng-container",13)(4,Dt,1,1,"ng-template",null,14,n.W1O),n.qZA()}if(2&Vn){const Ft=n.MAs(5),Oi=n.oxw();let On;n.Q6J("ngClass",Oi.inputClass)("pTooltip",Oi.tooltip)("tooltipPosition",Oi.tooltipPosition)("positionStyle",Oi.tooltipPositionStyle)("tooltipStyleClass",Oi.tooltipStyleClass)("autofocus",Oi.autofocus),n.uIk("aria-disabled",Oi.disabled)("id",Oi.inputId)("aria-label",Oi.ariaLabel||("p-emptylabel"===Oi.label()?void 0:Oi.label()))("aria-labelledby",Oi.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",null!==(On=Oi.overlayVisible)&&void 0!==On&&On)("aria-controls",Oi.overlayVisible?Oi.id+"_list":null)("tabindex",Oi.disabled?-1:Oi.tabindex)("aria-activedescendant",Oi.focused?Oi.focusedOptionId:void 0)("aria-required",Oi.required)("required",Oi.required),n.xp6(2),n.Q6J("ngIf",!Oi.selectedItemTemplate)("ngIfElse",Ft),n.xp6(),n.Q6J("ngIf",Oi.selectedItemTemplate&&Oi.selectedOption)}}function ti(Vn,Wi){if(1&Vn){const Ft=n.EpF();n.TgZ(0,"input",16,17),n.NdJ("input",function(On){n.CHM(Ft);const _n=n.oxw();return n.KtG(_n.onEditableInput(On))})("keydown",function(On){n.CHM(Ft);const _n=n.oxw();return n.KtG(_n.onKeyDown(On))})("focus",function(On){n.CHM(Ft);const _n=n.oxw();return n.KtG(_n.onInputFocus(On))})("blur",function(On){n.CHM(Ft);const _n=n.oxw();return n.KtG(_n.onInputBlur(On))}),n.qZA()}if(2&Vn){const Ft=n.oxw();let Oi;n.Q6J("ngClass",Ft.inputClass)("disabled",Ft.disabled),n.uIk("maxlength",Ft.maxlength)("placeholder",void 0===Ft.modelValue()||null===Ft.modelValue()?Ft.placeholder():void 0)("aria-expanded",null!==(Oi=Ft.overlayVisible)&&void 0!==Oi&&Oi)}}function Xt(Vn,Wi){if(1&Vn){const Ft=n.EpF();n.TgZ(0,"TimesIcon",20),n.NdJ("click",function(On){n.CHM(Ft);const _n=n.oxw(2);return n.KtG(_n.clear(On))}),n.qZA()}2&Vn&&(n.Q6J("styleClass","p-dropdown-clear-icon"),n.uIk("data-pc-section","clearicon"))}function Je(Vn,Wi){}function dt(Vn,Wi){1&Vn&&n.YNc(0,Je,0,0,"ng-template")}function Ie(Vn,Wi){if(1&Vn){const Ft=n.EpF();n.TgZ(0,"span",21),n.NdJ("click",function(On){n.CHM(Ft);const _n=n.oxw(2);return n.KtG(_n.clear(On))}),n.YNc(1,dt,1,0,null,22),n.qZA()}if(2&Vn){const Ft=n.oxw(2);n.uIk("data-pc-section","clearicon"),n.xp6(),n.Q6J("ngTemplateOutlet",Ft.clearIconTemplate)}}function ot(Vn,Wi){if(1&Vn&&(n.ynx(0),n.YNc(1,Xt,1,2,"TimesIcon",18)(2,Ie,2,2,"span",19),n.BQk()),2&Vn){const Ft=n.oxw();n.xp6(),n.Q6J("ngIf",!Ft.clearIconTemplate),n.xp6(),n.Q6J("ngIf",Ft.clearIconTemplate)}}function ct(Vn,Wi){if(1&Vn&&n._UZ(0,"span",25),2&Vn){const Ft=n.oxw(2);n.Q6J("ngClass",Ft.dropdownIcon)}}function tn(Vn,Wi){1&Vn&&n._UZ(0,"ChevronDownIcon",26),2&Vn&&n.Q6J("styleClass","p-dropdown-trigger-icon")}function yi(Vn,Wi){if(1&Vn&&(n.ynx(0),n.YNc(1,ct,1,1,"span",23)(2,tn,1,1,"ChevronDownIcon",24),n.BQk()),2&Vn){const Ft=n.oxw();n.xp6(),n.Q6J("ngIf",Ft.dropdownIcon),n.xp6(),n.Q6J("ngIf",!Ft.dropdownIcon)}}function ni(Vn,Wi){}function sn(Vn,Wi){1&Vn&&n.YNc(0,ni,0,0,"ng-template")}function bn(Vn,Wi){if(1&Vn&&(n.TgZ(0,"span",27),n.YNc(1,sn,1,0,null,22),n.qZA()),2&Vn){const Ft=n.oxw();n.xp6(),n.Q6J("ngTemplateOutlet",Ft.dropdownIconTemplate)}}function vt(Vn,Wi){1&Vn&&n.GkF(0)}function nn(Vn,Wi){1&Vn&&n.GkF(0)}const rn=Vn=>({options:Vn});function ii(Vn,Wi){if(1&Vn&&(n.ynx(0),n.YNc(1,nn,1,0,"ng-container",38),n.BQk()),2&Vn){const Ft=n.oxw(3);n.xp6(),n.Q6J("ngTemplateOutlet",Ft.filterTemplate)("ngTemplateOutletContext",n.VKq(2,rn,Ft.filterOptions))}}function Oo(Vn,Wi){1&Vn&&n._UZ(0,"SearchIcon",26),2&Vn&&n.Q6J("styleClass","p-dropdown-filter-icon")}function no(Vn,Wi){}function Li(Vn,Wi){1&Vn&&n.YNc(0,no,0,0,"ng-template")}function ji(Vn,Wi){if(1&Vn&&(n.TgZ(0,"span",43),n.YNc(1,Li,1,0,null,22),n.qZA()),2&Vn){const Ft=n.oxw(4);n.xp6(),n.Q6J("ngTemplateOutlet",Ft.filterIconTemplate)}}function Ii(Vn,Wi){if(1&Vn){const Ft=n.EpF();n.TgZ(0,"div",39)(1,"input",40,41),n.NdJ("input",function(On){n.CHM(Ft);const _n=n.oxw(3);return n.KtG(_n.onFilterInputChange(On))})("keydown",function(On){n.CHM(Ft);const _n=n.oxw(3);return n.KtG(_n.onFilterKeyDown(On))})("blur",function(On){n.CHM(Ft);const _n=n.oxw(3);return n.KtG(_n.onFilterBlur(On))}),n.qZA(),n.YNc(3,Oo,1,1,"SearchIcon",24)(4,ji,2,1,"span",42),n.qZA()}if(2&Vn){const Ft=n.oxw(3);n.xp6(),n.Q6J("value",Ft._filterValue()||""),n.uIk("placeholder",Ft.filterPlaceholder)("aria-owns",Ft.id+"_list")("aria-label",Ft.ariaFilterLabel)("aria-activedescendant",Ft.focusedOptionId),n.xp6(2),n.Q6J("ngIf",!Ft.filterIconTemplate),n.xp6(),n.Q6J("ngIf",Ft.filterIconTemplate)}}function _i(Vn,Wi){if(1&Vn&&(n.TgZ(0,"div",36),n.NdJ("click",function(Oi){return Oi.stopPropagation()}),n.YNc(1,ii,2,4,"ng-container",12)(2,Ii,5,7,"ng-template",null,37,n.W1O),n.qZA()),2&Vn){const Ft=n.MAs(3),Oi=n.oxw(2);n.xp6(),n.Q6J("ngIf",Oi.filterTemplate)("ngIfElse",Ft)}}function En(Vn,Wi){1&Vn&&n.GkF(0)}const co=(Vn,Wi)=>({$implicit:Vn,options:Wi});function yn(Vn,Wi){if(1&Vn&&n.YNc(0,En,1,0,"ng-container",38),2&Vn){const Ft=Wi.$implicit,Oi=Wi.options;n.oxw(2);const On=n.MAs(9);n.Q6J("ngTemplateOutlet",On)("ngTemplateOutletContext",n.WLB(2,co,Ft,Oi))}}function ln(Vn,Wi){1&Vn&&n.GkF(0)}function He(Vn,Wi){if(1&Vn&&n.YNc(0,ln,1,0,"ng-container",38),2&Vn){const Ft=Wi.options,Oi=n.oxw(4);n.Q6J("ngTemplateOutlet",Oi.loaderTemplate)("ngTemplateOutletContext",n.VKq(2,rn,Ft))}}function rt(Vn,Wi){1&Vn&&(n.ynx(0),n.YNc(1,He,1,4,"ng-template",46),n.BQk())}function $e(Vn,Wi){if(1&Vn){const Ft=n.EpF();n.TgZ(0,"p-scroller",44,45),n.NdJ("onLazyLoad",function(On){n.CHM(Ft);const _n=n.oxw(2);return n.KtG(_n.onLazyLoad.emit(On))}),n.YNc(2,yn,1,5,"ng-template",9)(3,rt,2,0,"ng-container",4),n.qZA()}if(2&Vn){const Ft=n.oxw(2);n.Akn(n.VKq(8,me,Ft.scrollHeight)),n.Q6J("items",Ft.visibleOptions())("itemSize",Ft.virtualScrollItemSize||Ft._itemSize)("autoSize",!0)("lazy",Ft.lazy)("options",Ft.virtualScrollOptions),n.xp6(3),n.Q6J("ngIf",Ft.loaderTemplate)}}function Ve(Vn,Wi){1&Vn&&n.GkF(0)}const Ce=()=>({});function tt(Vn,Wi){if(1&Vn&&(n.ynx(0),n.YNc(1,Ve,1,0,"ng-container",38),n.BQk()),2&Vn){n.oxw();const Ft=n.MAs(9),Oi=n.oxw();n.xp6(),n.Q6J("ngTemplateOutlet",Ft)("ngTemplateOutletContext",n.WLB(3,co,Oi.visibleOptions(),n.DdM(2,Ce)))}}function ht(Vn,Wi){if(1&Vn&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&Vn){const Ft=n.oxw(2).$implicit,Oi=n.oxw(3);n.xp6(),n.Oqu(Oi.getOptionGroupLabel(Ft.optionGroup))}}function Qt(Vn,Wi){1&Vn&&n.GkF(0)}function Un(Vn,Wi){if(1&Vn&&(n.ynx(0),n.TgZ(1,"li",51),n.YNc(2,ht,2,1,"span",4)(3,Qt,1,0,"ng-container",38),n.qZA(),n.BQk()),2&Vn){const Ft=n.oxw(),Oi=Ft.index,On=Ft.$implicit,_n=n.oxw().options,st=n.oxw(2);n.xp6(),n.Q6J("ngStyle",n.VKq(5,me,_n.itemSize+"px")),n.uIk("id",st.id+"_"+st.getOptionIndex(Oi,_n)),n.xp6(),n.Q6J("ngIf",!st.groupTemplate),n.xp6(),n.Q6J("ngTemplateOutlet",st.groupTemplate)("ngTemplateOutletContext",n.VKq(7,Ue,On.optionGroup))}}function Yt(Vn,Wi){if(1&Vn){const Ft=n.EpF();n.ynx(0),n.TgZ(1,"p-dropdownItem",52),n.NdJ("onClick",function(On){n.CHM(Ft);const _n=n.oxw().$implicit,st=n.oxw(3);return n.KtG(st.onOptionSelect(On,_n))})("onMouseEnter",function(On){n.CHM(Ft);const _n=n.oxw().index,st=n.oxw().options,Dn=n.oxw(2);return n.KtG(Dn.onOptionMouseEnter(On,Dn.getOptionIndex(_n,st)))}),n.qZA(),n.BQk()}if(2&Vn){const Ft=n.oxw(),Oi=Ft.index,On=Ft.$implicit,_n=n.oxw().options,st=n.oxw(2);n.xp6(),n.Q6J("id",st.id+"_"+st.getOptionIndex(Oi,_n))("option",On)("selected",st.isSelected(On))("label",st.getOptionLabel(On))("disabled",st.isOptionDisabled(On))("template",st.itemTemplate)("focused",st.focusedOptionIndex()===st.getOptionIndex(Oi,_n))("ariaPosInset",st.getAriaPosInset(st.getOptionIndex(Oi,_n)))("ariaSetSize",st.ariaSetSize)}}function Fn(Vn,Wi){if(1&Vn&&n.YNc(0,Un,4,9,"ng-container",4)(1,Yt,2,9,"ng-container",4),2&Vn){const Ft=Wi.$implicit,Oi=n.oxw(3);n.Q6J("ngIf",Oi.isOptionGroup(Ft)),n.xp6(),n.Q6J("ngIf",!Oi.isOptionGroup(Ft))}}function yt(Vn,Wi){if(1&Vn&&(n.ynx(0),n._uU(1),n.BQk()),2&Vn){const Ft=n.oxw(4);n.xp6(),n.hij(" ",Ft.emptyFilterMessageLabel," ")}}function Bt(Vn,Wi){1&Vn&&n.GkF(0,null,54)}function li(Vn,Wi){if(1&Vn&&(n.TgZ(0,"li",53),n.YNc(1,yt,2,1,"ng-container",12)(2,Bt,2,0,"ng-container",22),n.qZA()),2&Vn){const Ft=n.oxw().options,Oi=n.oxw(2);n.Q6J("ngStyle",n.VKq(4,me,Ft.itemSize+"px")),n.xp6(),n.Q6J("ngIf",!Oi.emptyFilterTemplate&&!Oi.emptyTemplate)("ngIfElse",Oi.emptyFilter),n.xp6(),n.Q6J("ngTemplateOutlet",Oi.emptyFilterTemplate||Oi.emptyTemplate)}}function si(Vn,Wi){if(1&Vn&&(n.ynx(0),n._uU(1),n.BQk()),2&Vn){const Ft=n.oxw(4);n.xp6(),n.hij(" ",Ft.emptyMessageLabel," ")}}function oo(Vn,Wi){1&Vn&&n.GkF(0,null,55)}function _o(Vn,Wi){if(1&Vn&&(n.TgZ(0,"li",53),n.YNc(1,si,2,1,"ng-container",12)(2,oo,2,0,"ng-container",22),n.qZA()),2&Vn){const Ft=n.oxw().options,Oi=n.oxw(2);n.Q6J("ngStyle",n.VKq(4,me,Ft.itemSize+"px")),n.xp6(),n.Q6J("ngIf",!Oi.emptyTemplate)("ngIfElse",Oi.empty),n.xp6(),n.Q6J("ngTemplateOutlet",Oi.emptyTemplate)}}function Hn(Vn,Wi){if(1&Vn&&(n.TgZ(0,"ul",47,48),n.YNc(2,Fn,2,2,"ng-template",49)(3,li,3,6,"li",50)(4,_o,3,6,"li",50),n.qZA()),2&Vn){const Ft=Wi.$implicit,Oi=Wi.options,On=n.oxw(2);n.Akn(Oi.contentStyle),n.Q6J("ngClass",Oi.contentStyleClass),n.uIk("id",On.id+"_list")("aria-label",On.listLabel),n.xp6(2),n.Q6J("ngForOf",Ft),n.xp6(),n.Q6J("ngIf",On.filterValue&&On.isEmpty()),n.xp6(),n.Q6J("ngIf",!On.filterValue&&On.isEmpty())}}function mo(Vn,Wi){1&Vn&&n.GkF(0)}function vn(Vn,Wi){if(1&Vn){const Ft=n.EpF();n.TgZ(0,"div",28)(1,"span",29,30),n.NdJ("focus",function(On){n.CHM(Ft);const _n=n.oxw();return n.KtG(_n.onFirstHiddenFocus(On))}),n.qZA(),n.YNc(3,vt,1,0,"ng-container",22)(4,_i,4,2,"div",31),n.TgZ(5,"div",32),n.YNc(6,$e,4,10,"p-scroller",33)(7,tt,2,6,"ng-container",4)(8,Hn,5,8,"ng-template",null,34,n.W1O),n.qZA(),n.YNc(10,mo,1,0,"ng-container",22),n.TgZ(11,"span",29,35),n.NdJ("focus",function(On){n.CHM(Ft);const _n=n.oxw();return n.KtG(_n.onLastHiddenFocus(On))}),n.qZA()()}if(2&Vn){const Ft=n.oxw();n.Tol(Ft.panelStyleClass),n.Q6J("ngClass","p-dropdown-panel p-component")("ngStyle",Ft.panelStyle),n.xp6(),n.uIk("aria-hidden",!0)("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),n.xp6(2),n.Q6J("ngTemplateOutlet",Ft.headerTemplate),n.xp6(),n.Q6J("ngIf",Ft.filter),n.xp6(),n.Udp("max-height",Ft.virtualScroll?"auto":Ft.scrollHeight||"auto"),n.xp6(),n.Q6J("ngIf",Ft.virtualScroll),n.xp6(),n.Q6J("ngIf",!Ft.virtualScroll),n.xp6(3),n.Q6J("ngTemplateOutlet",Ft.footerTemplate),n.xp6(),n.uIk("aria-hidden",!0)("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}const Ji={provide:s.JU,useExisting:(0,n.Gpc)(()=>po),multi:!0};let wn=(()=>{class Vn{id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;onClick=new n.vpe;onMouseEnter=new n.vpe;ngOnInit(){}onOptionClick(Ft){this.onClick.emit(Ft)}onOptionMouseEnter(Ft){this.onMouseEnter.emit(Ft)}static \u0275fac=function(Oi){return new(Oi||Vn)};static \u0275cmp=n.Xpm({type:Vn,selectors:[["p-dropdownItem"]],hostAttrs:[1,"p-element"],inputs:{id:"id",option:"option",selected:"selected",focused:"focused",label:"label",disabled:"disabled",visible:"visible",itemSize:"itemSize",ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},decls:3,vars:21,consts:[["role","option","pRipple","",3,"id","ngStyle","ngClass","click","mouseenter"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(Oi,On){1&Oi&&(n.TgZ(0,"li",0),n.NdJ("click",function(st){return On.onOptionClick(st)})("mouseenter",function(st){return On.onOptionMouseEnter(st)}),n.YNc(1,R,2,1,"span",1)(2,Te,1,0,"ng-container",2),n.qZA()),2&Oi&&(n.Q6J("id",On.id)("ngStyle",n.VKq(13,me,On.itemSize+"px"))("ngClass",n.kEZ(15,Se,On.selected,On.disabled,On.focused)),n.uIk("aria-label",On.label)("aria-setsize",On.ariaSetSize)("aria-posinset",On.ariaPosInset)("aria-selected",On.selected)("data-p-focused",On.focused)("data-p-highlight",On.selected)("data-p-disabled",On.disabled),n.xp6(),n.Q6J("ngIf",!On.template),n.xp6(),n.Q6J("ngTemplateOutlet",On.template)("ngTemplateOutletContext",n.VKq(19,Ue,On.option)))},dependencies:[e.mk,e.O5,e.tP,e.PC,ne.H],encapsulation:2})}return Vn})(),po=(()=>{class Vn{el;renderer;cd;zone;filterService;config;id;scrollHeight="200px";filter;name;style;panelStyle;styleClass;panelStyleClass;readonly;required;editable;appendTo;tabindex=0;set placeholder(Ft){this._placeholder.set(Ft)}get placeholder(){return this._placeholder.asReadonly()}filterPlaceholder;filterLocale;inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;dropdownIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";autoDisplayFirst=!0;group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";maxlength;tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!1;selectOnFocus=!1;autoOptionFocus=!0;autofocusFilter=!0;get disabled(){return this._disabled}set disabled(Ft){Ft&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=Ft,this.cd.destroyed||this.cd.detectChanges()}get itemSize(){return this._itemSize}set itemSize(Ft){this._itemSize=Ft,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}_itemSize;get autoZIndex(){return this._autoZIndex}set autoZIndex(Ft){this._autoZIndex=Ft,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_autoZIndex;get baseZIndex(){return this._baseZIndex}set baseZIndex(Ft){this._baseZIndex=Ft,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_baseZIndex;get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(Ft){this._showTransitionOptions=Ft,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_showTransitionOptions;get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(Ft){this._hideTransitionOptions=Ft,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_hideTransitionOptions;get filterValue(){return this._filterValue()}set filterValue(Ft){setTimeout(()=>{this._filterValue.set(Ft)})}get options(){return this._options()}set options(Ft){o.gb.deepEquals(Ft,this._options())||this._options.set(Ft)}onChange=new n.vpe;onFilter=new n.vpe;onFocus=new n.vpe;onBlur=new n.vpe;onClick=new n.vpe;onShow=new n.vpe;onHide=new n.vpe;onClear=new n.vpe;onLazyLoad=new n.vpe;containerViewChild;filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;templates;_disabled;itemsWrapper;itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;clearIconTemplate;filterIconTemplate;filterOptions;_options=(0,n.tdS)(null);_placeholder=(0,n.tdS)(void 0);modelValue=(0,n.tdS)(null);value;onModelChange=()=>{};onModelTouched=()=>{};hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=(0,n.tdS)(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=(0,n.tdS)(-1);labelId;listId;clicked=(0,n.tdS)(!1);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(l.ws.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(l.ws.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return null!=this.modelValue()&&this.hasSelectedOption()&&this.showClear&&!this.disabled}get listLabel(){return this.config.getTranslation(l.ws.ARIA).listLabel}get containerClass(){return{"p-dropdown p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-dropdown-clearable":this.showClear&&!this.disabled,"p-focus":this.focused,"p-inputwrapper-filled":void 0!==this.modelValue()&&null!==this.modelValue()&&!this.modelValue().length,"p-inputwrapper-focus":this.focused||this.overlayVisible}}get inputClass(){const Ft=this.label();return{"p-dropdown-label p-inputtext":!0,"p-placeholder":this.placeholder()&&Ft===this.placeholder(),"p-dropdown-label-empty":!(this.editable||this.selectedItemTemplate||null!=Ft&&"p-emptylabel"!==Ft&&0!==Ft.length)}}get panelClass(){return{"p-dropdown-panel p-component":!0,"p-input-filled":"filled"===this.config.inputStyle,"p-ripple-disabled":!1===this.config.ripple}}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}visibleOptions=(0,n.Flj)(()=>{const Ft=this.getAllVisibleAndNonVisibleOptions();if(this._filterValue()){const On=this.filterBy||this.optionLabel||this.filterFields||this.optionValue?this.filterService.filter(Ft,this.searchFields(),this._filterValue().trim(),this.filterMatchMode,this.filterLocale):this.options.filter(_n=>_n.label?-1!==_n.label.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim()):-1!==_n.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim()));if(this.group){const st=[];return(this.options||[]).forEach(Dn=>{const kn=this.getOptionGroupChildren(Dn).filter(Fi=>On.includes(Fi));kn.length>0&&st.push({...Dn,["string"==typeof this.optionGroupChildren?this.optionGroupChildren:"items"]:[...kn]})}),this.flatOptions(st)}return On}return Ft});label=(0,n.Flj)(()=>{const Ft=this.getAllVisibleAndNonVisibleOptions(),Oi=Ft.findIndex(On=>this.isOptionValueEqualsModelValue(On));return-1!==Oi?this.getOptionLabel(Ft[Oi]):this.placeholder()||"p-emptylabel"});filled=(0,n.Flj)(()=>"string"==typeof this.modelValue()?!!this.modelValue():"p-emptylabel"!==this.label()&&void 0!==this.modelValue()&&null!==this.modelValue());selectedOption;editableInputValue=(0,n.Flj)(()=>this.getOptionLabel(this.selectedOption)||this.modelValue()||"");constructor(Ft,Oi,On,_n,st,Dn){this.el=Ft,this.renderer=Oi,this.cd=On,this.zone=_n,this.filterService=st,this.config=Dn,(0,n.cEC)(()=>{const Wt=this.modelValue(),kn=this.visibleOptions();if(kn&&o.gb.isNotEmpty(kn)){const Fi=this.findSelectedOptionIndex();(-1!==Fi||void 0===Wt||"string"==typeof Wt&&0===Wt.length||this.isModelValueNotSet()||this.editable)&&(this.selectedOption=kn[Fi])}o.gb.isEmpty(kn)&&(void 0===Wt||this.isModelValueNotSet())&&o.gb.isNotEmpty(this.selectedOption)&&(this.selectedOption=null),void 0!==Wt&&this.editable&&this.updateEditableLabel(),this.cd.markForCheck()})}isModelValueNotSet(){return null===this.modelValue()&&!this.isOptionValueEqualsModelValue(this.selectedOption)}displayPlaceholder(){return o.gb.isEmpty(this.selectedOption)&&this.label()===this.placeholder()}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}ngOnInit(){this.id=this.id||(0,o.Th)(),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:Ft=>this.onFilterInputChange(Ft),reset:()=>this.resetFilter()})}ngAfterViewChecked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let Ft=i.p.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-highlight");Ft&&i.p.scrollInView(this.itemsWrapper,Ft),this.selectedOptionUpdated=!1}}ngAfterContentInit(){this.templates.forEach(Ft=>{switch(Ft.getType()){case"item":default:this.itemTemplate=Ft.template;break;case"selectedItem":this.selectedItemTemplate=Ft.template;break;case"header":this.headerTemplate=Ft.template;break;case"filter":this.filterTemplate=Ft.template;break;case"footer":this.footerTemplate=Ft.template;break;case"emptyfilter":this.emptyFilterTemplate=Ft.template;break;case"empty":this.emptyTemplate=Ft.template;break;case"group":this.groupTemplate=Ft.template;break;case"loader":this.loaderTemplate=Ft.template;break;case"dropdownicon":this.dropdownIconTemplate=Ft.template;break;case"clearicon":this.clearIconTemplate=Ft.template;break;case"filtericon":this.filterIconTemplate=Ft.template}})}flatOptions(Ft){return(Ft||[]).reduce((Oi,On,_n)=>{Oi.push({optionGroup:On,group:!0,index:_n});const st=this.getOptionGroupChildren(On);return st&&st.forEach(Dn=>Oi.push(Dn)),Oi},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)),this.autoDisplayFirst&&(null===this.modelValue()||void 0===this.modelValue())&&!this.placeholder()){const Ft=this.findFirstOptionIndex();this.onOptionSelect(null,this.visibleOptions()[Ft],!1,!0)}}onOptionSelect(Ft,Oi,On=!0,_n=!1){if(!this.isSelected(Oi)){const st=this.getOptionValue(Oi);this.updateModel(st,Ft),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),!1===_n&&this.onChange.emit({originalEvent:Ft,value:st})}On&&this.hide(!0)}onOptionMouseEnter(Ft,Oi){this.focusOnHover&&this.changeFocusedOptionIndex(Ft,Oi)}updateModel(Ft,Oi){this.value=Ft,this.onModelChange(Ft),this.modelValue.set(Ft),this.selectedOptionUpdated=!0}writeValue(Ft){this.filter&&this.resetFilter(),this.value=Ft,this.allowModelChange()&&this.onModelChange(Ft),this.modelValue.set(this.value),this.updateEditableLabel(),this.cd.markForCheck()}allowModelChange(){return this.autoDisplayFirst&&!this.placeholder()&&(void 0===this.modelValue()||null===this.modelValue())&&!this.editable&&this.options&&this.options.length}isSelected(Ft){return this.isValidOption(Ft)&&this.isOptionValueEqualsModelValue(Ft)}isOptionValueEqualsModelValue(Ft){return o.gb.equals(this.modelValue(),this.getOptionValue(Ft),this.equalityKey())}ngAfterViewInit(){this.editable&&this.updateEditableLabel()}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=this.getOptionLabel(this.selectedOption)||this.modelValue()||"")}clearEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value="")}getOptionIndex(Ft,Oi){return this.virtualScrollerDisabled?Ft:Oi&&Oi.getItemOptions(Ft).index}getOptionLabel(Ft){return null!=this.optionLabel?o.gb.resolveFieldData(Ft,this.optionLabel):Ft&&void 0!==Ft.label?Ft.label:Ft}getOptionValue(Ft){return this.optionValue&&null!==this.optionValue?o.gb.resolveFieldData(Ft,this.optionValue):!this.optionLabel&&Ft&&void 0!==Ft.value?Ft.value:Ft}isOptionDisabled(Ft){return!(this.getOptionValue(this.modelValue())===this.getOptionValue(Ft)||this.getOptionLabel(this.modelValue()===this.getOptionLabel(Ft))&&!1===Ft.disabled)&&(this.optionDisabled?o.gb.resolveFieldData(Ft,this.optionDisabled):!(!Ft||void 0===Ft.disabled)&&Ft.disabled)}getOptionGroupLabel(Ft){return null!=this.optionGroupLabel?o.gb.resolveFieldData(Ft,this.optionGroupLabel):Ft&&void 0!==Ft.label?Ft.label:Ft}getOptionGroupChildren(Ft){return null!=this.optionGroupChildren?o.gb.resolveFieldData(Ft,this.optionGroupChildren):Ft.items}getAriaPosInset(Ft){return(this.optionGroupLabel?Ft-this.visibleOptions().slice(0,Ft).filter(Oi=>this.isOptionGroup(Oi)).length:Ft)+1}get ariaSetSize(){return this.visibleOptions().filter(Ft=>!this.isOptionGroup(Ft)).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}registerOnChange(Ft){this.onModelChange=Ft}registerOnTouched(Ft){this.onModelTouched=Ft}setDisabledState(Ft){this.disabled=Ft,this.cd.markForCheck()}onContainerClick(Ft){this.disabled||this.readonly||(this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),"INPUT"!==Ft.target.tagName&&"clearicon"!==Ft.target.getAttribute("data-pc-section")&&!Ft.target.closest('[data-pc-section="clearicon"]')&&((!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(Ft.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.onClick.emit(Ft),this.clicked.set(!0),this.cd.detectChanges()))}isEmpty(){return!this._options()||this.visibleOptions()&&0===this.visibleOptions().length}onEditableInput(Ft){const Oi=Ft.target.value;this.searchValue="",!this.searchOptions(Ft,Oi)&&this.focusedOptionIndex.set(-1),this.onModelChange(Oi),this.updateModel(Oi,Ft),setTimeout(()=>{this.onChange.emit({originalEvent:Ft,value:Oi})},1),!this.overlayVisible&&o.gb.isNotEmpty(Oi)&&this.show()}show(Ft){this.overlayVisible=!0;const Oi=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex();this.focusedOptionIndex.set(Oi),Ft&&i.p.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(Ft){if("visible"===Ft.toState){if(this.itemsWrapper=i.p.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-dropdown-items-wrapper"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){const Oi=this.modelValue()?this.focusedOptionIndex():-1;-1!==Oi&&this.scroller?.scrollToIndex(Oi)}else{let Oi=i.p.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");Oi&&Oi.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&!this.editable&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(Ft)}"void"===Ft.toState&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(Ft))}hide(Ft){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.clicked.set(!1),this.searchValue="",this.filter&&this.resetFilterOnHide&&this.resetFilter(),Ft&&(this.focusInputViewChild&&i.p.focus(this.focusInputViewChild?.nativeElement),this.editable&&this.editableInputViewChild&&i.p.focus(this.editableInputViewChild?.nativeElement)),this.cd.markForCheck()}onInputFocus(Ft){if(this.disabled)return;this.focused=!0;const Oi=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(Oi),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(Ft)}onInputBlur(Ft){this.focused=!1,!1===this.overlayVisible&&this.onBlur.emit(Ft),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onKeyDown(Ft,Oi){if(!this.disabled&&!this.readonly){switch(Ft.code){case"ArrowDown":this.onArrowDownKey(Ft);break;case"ArrowUp":this.onArrowUpKey(Ft,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(Ft,this.editable);break;case"Delete":this.onDeleteKey(Ft);break;case"Home":this.onHomeKey(Ft,this.editable);break;case"End":this.onEndKey(Ft,this.editable);break;case"PageDown":this.onPageDownKey(Ft);break;case"PageUp":this.onPageUpKey(Ft);break;case"Space":this.onSpaceKey(Ft,Oi);break;case"Enter":case"NumpadEnter":this.onEnterKey(Ft);break;case"Escape":this.onEscapeKey(Ft);break;case"Tab":this.onTabKey(Ft);break;case"Backspace":this.onBackspaceKey(Ft,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!Ft.metaKey&&o.gb.isPrintableCharacter(Ft.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(Ft,Ft.key))}this.clicked.set(!1)}}onFilterKeyDown(Ft){switch(Ft.code){case"ArrowDown":this.onArrowDownKey(Ft);break;case"ArrowUp":this.onArrowUpKey(Ft,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(Ft,!0);break;case"Home":this.onHomeKey(Ft,!0);break;case"End":this.onEndKey(Ft,!0);break;case"Enter":this.onEnterKey(Ft,!0);break;case"Escape":this.onEscapeKey(Ft);break;case"Tab":this.onTabKey(Ft,!0)}}onFilterBlur(Ft){this.focusedOptionIndex.set(-1)}onArrowDownKey(Ft){if(this.overlayVisible){const Oi=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(Ft,Oi)}else this.show(),this.editable&&this.changeFocusedOptionIndex(Ft,this.findSelectedOptionIndex());Ft.preventDefault()}changeFocusedOptionIndex(Ft,Oi){if(this.focusedOptionIndex()!==Oi&&(this.focusedOptionIndex.set(Oi),this.scrollInView(),this.selectOnFocus)){const On=this.visibleOptions()[Oi];this.onOptionSelect(Ft,On,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(Ft=-1){if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const On=i.p.findSingle(this.itemsViewChild.nativeElement,`li[id="${-1!==Ft?`${this.id}_${Ft}`:this.focusedOptionId}"]`);On?On.scrollIntoView&&On.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==Ft?Ft:this.focusedOptionIndex())},0)}}hasSelectedOption(){return void 0!==this.modelValue()}isValidSelectedOption(Ft){return this.isValidOption(Ft)&&this.isSelected(Ft)}equalityKey(){return this.optionValue?null:this.dataKey}findFirstFocusedOptionIndex(){const Ft=this.findSelectedOptionIndex();return Ft<0?this.findFirstOptionIndex():Ft}findFirstOptionIndex(){return this.visibleOptions().findIndex(Ft=>this.isValidOption(Ft))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(Ft=>this.isValidSelectedOption(Ft)):-1}findNextOptionIndex(Ft){const Oi=Ft<this.visibleOptions().length-1?this.visibleOptions().slice(Ft+1).findIndex(On=>this.isValidOption(On)):-1;return Oi>-1?Oi+Ft+1:Ft}findPrevOptionIndex(Ft){const Oi=Ft>0?o.gb.findLastIndex(this.visibleOptions().slice(0,Ft),On=>this.isValidOption(On)):-1;return Oi>-1?Oi:Ft}findLastOptionIndex(){return o.gb.findLastIndex(this.visibleOptions(),Ft=>this.isValidOption(Ft))}findLastFocusedOptionIndex(){const Ft=this.findSelectedOptionIndex();return Ft<0?this.findLastOptionIndex():Ft}isValidOption(Ft){return null!=Ft&&!(this.isOptionDisabled(Ft)||this.isOptionGroup(Ft))}isOptionGroup(Ft){return null!=this.optionGroupLabel&&null!=Ft.optionGroup&&Ft.group}onArrowUpKey(Ft,Oi=!1){if(Ft.altKey&&!Oi){if(-1!==this.focusedOptionIndex()){const On=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(Ft,On)}this.overlayVisible&&this.hide(),Ft.preventDefault()}else{const On=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(Ft,On),!this.overlayVisible&&this.show(),Ft.preventDefault()}}onArrowLeftKey(Ft,Oi=!1){Oi&&this.focusedOptionIndex.set(-1)}onDeleteKey(Ft){this.showClear&&(this.clear(Ft),Ft.preventDefault())}onHomeKey(Ft,Oi=!1){if(Oi){const On=Ft.currentTarget;Ft.shiftKey?On.setSelectionRange(0,On.value.length):(On.setSelectionRange(0,0),this.focusedOptionIndex.set(-1))}else this.changeFocusedOptionIndex(Ft,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();Ft.preventDefault()}onEndKey(Ft,Oi=!1){if(Oi){const On=Ft.currentTarget;if(Ft.shiftKey)On.setSelectionRange(0,On.value.length);else{const _n=On.value.length;On.setSelectionRange(_n,_n),this.focusedOptionIndex.set(-1)}}else this.changeFocusedOptionIndex(Ft,this.findLastOptionIndex()),!this.overlayVisible&&this.show();Ft.preventDefault()}onPageDownKey(Ft){this.scrollInView(this.visibleOptions().length-1),Ft.preventDefault()}onPageUpKey(Ft){this.scrollInView(0),Ft.preventDefault()}onSpaceKey(Ft,Oi=!1){!this.editable&&!Oi&&this.onEnterKey(Ft)}onEnterKey(Ft,Oi=!1){if(this.overlayVisible){if(-1!==this.focusedOptionIndex()){const On=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(Ft,On)}!Oi&&this.hide()}else this.focusedOptionIndex.set(-1),this.onArrowDownKey(Ft);Ft.preventDefault()}onEscapeKey(Ft){this.overlayVisible&&this.hide(!0),Ft.preventDefault()}onTabKey(Ft,Oi=!1){if(!Oi)if(this.overlayVisible&&this.hasFocusableElements())i.p.focus(Ft.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),Ft.preventDefault();else{if(-1!==this.focusedOptionIndex()&&this.overlayVisible){const On=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(Ft,On)}this.overlayVisible&&this.hide(this.filter)}}onFirstHiddenFocus(Ft){const Oi=Ft.relatedTarget===this.focusInputViewChild?.nativeElement?i.p.getFirstFocusableElement(this.overlayViewChild.el?.nativeElement,":not(.p-hidden-focusable)"):this.focusInputViewChild?.nativeElement;i.p.focus(Oi)}onLastHiddenFocus(Ft){const Oi=Ft.relatedTarget===this.focusInputViewChild?.nativeElement?i.p.getLastFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;i.p.focus(Oi)}hasFocusableElements(){return i.p.getFocusableElements(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}onBackspaceKey(Ft,Oi=!1){Oi&&!this.overlayVisible&&this.show()}searchFields(){return this.filterBy?.split(",")||this.filterFields||[this.optionLabel]}searchOptions(Ft,Oi){this.searchValue=(this.searchValue||"")+Oi;let On=-1,_n=!1;return-1!==this.focusedOptionIndex()?(On=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(st=>this.isOptionMatched(st)),On=-1===On?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(st=>this.isOptionMatched(st)):On+this.focusedOptionIndex()):On=this.visibleOptions().findIndex(st=>this.isOptionMatched(st)),-1!==On&&(_n=!0),-1===On&&-1===this.focusedOptionIndex()&&(On=this.findFirstFocusedOptionIndex()),-1!==On&&this.changeFocusedOptionIndex(Ft,On),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),_n}isOptionMatched(Ft){return this.isValidOption(Ft)&&this.getOptionLabel(Ft).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}onFilterInputChange(Ft){this._filterValue.set(Ft.target.value),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:Ft,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild.alignOverlay()}),this.cd.markForCheck()}applyFocus(){this.editable?i.p.findSingle(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():i.p.focus(this.focusInputViewChild?.nativeElement)}focus(){this.applyFocus()}clear(Ft){this.updateModel(null,Ft),this.clearEditableLabel(),this.onModelTouched(),this.onChange.emit({originalEvent:Ft,value:this.value}),this.onClear.emit(Ft),this.resetFilter()}static \u0275fac=function(Oi){return new(Oi||Vn)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(n.sBO),n.Y36(n.R0b),n.Y36(l.iZ),n.Y36(l.b4))};static \u0275cmp=n.Xpm({type:Vn,selectors:[["p-dropdown"]],contentQueries:function(Oi,On,_n){if(1&Oi&&n.Suo(_n,l.jx,4),2&Oi){let st;n.iGM(st=n.CRH())&&(On.templates=st)}},viewQuery:function(Oi,On){if(1&Oi&&(n.Gf(We,5),n.Gf(et,5),n.Gf(Et,5),n.Gf(lt,5),n.Gf(Vt,5),n.Gf(r,5),n.Gf(Z,5),n.Gf(Pt,5),n.Gf(Oe,5)),2&Oi){let _n;n.iGM(_n=n.CRH())&&(On.containerViewChild=_n.first),n.iGM(_n=n.CRH())&&(On.filterViewChild=_n.first),n.iGM(_n=n.CRH())&&(On.focusInputViewChild=_n.first),n.iGM(_n=n.CRH())&&(On.editableInputViewChild=_n.first),n.iGM(_n=n.CRH())&&(On.itemsViewChild=_n.first),n.iGM(_n=n.CRH())&&(On.scroller=_n.first),n.iGM(_n=n.CRH())&&(On.overlayViewChild=_n.first),n.iGM(_n=n.CRH())&&(On.firstHiddenFocusableElementOnOverlay=_n.first),n.iGM(_n=n.CRH())&&(On.lastHiddenFocusableElementOnOverlay=_n.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(Oi,On){2&Oi&&n.ekj("p-inputwrapper-filled",On.filled())("p-inputwrapper-focus",On.focused||On.overlayVisible)},inputs:{id:"id",scrollHeight:"scrollHeight",filter:"filter",name:"name",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:"readonly",required:"required",editable:"editable",appendTo:"appendTo",tabindex:"tabindex",placeholder:"placeholder",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:"autofocus",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",autoDisplayFirst:"autoDisplayFirst",group:"group",showClear:"showClear",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:"maxlength",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:"focusOnHover",selectOnFocus:"selectOnFocus",autoOptionFocus:"autoOptionFocus",autofocusFilter:"autofocusFilter",disabled:"disabled",itemSize:"itemSize",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",filterValue:"filterValue",options:"options"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[n._Bn([Ji])],decls:11,vars:20,consts:[[3,"ngClass","ngStyle","click"],["container",""],["role","combobox","pAutoFocus","",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus","focus","blur","keydown",4,"ngIf"],["type","text","aria-haspopup","listbox",3,"ngClass","disabled","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",1,"p-dropdown-trigger"],["class","p-dropdown-trigger-icon",4,"ngIf"],[3,"visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],["pTemplate","content"],["role","combobox","pAutoFocus","",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus","focus","blur","keydown"],["focusInput",""],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["defaultPlaceholder",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","text","aria-haspopup","listbox",3,"ngClass","disabled","input","keydown","focus","blur"],["editableInput",""],[3,"styleClass","click",4,"ngIf"],["class","p-dropdown-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-dropdown-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["class","p-dropdown-trigger-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-dropdown-trigger-icon",3,"ngClass"],[3,"styleClass"],[1,"p-dropdown-trigger-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["firstHiddenFocusableEl",""],["class","p-dropdown-header",3,"click",4,"ngIf"],[1,"p-dropdown-items-wrapper"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],["lastHiddenFocusableEl",""],[1,"p-dropdown-header",3,"click"],["builtInFilterElement",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-dropdown-filter-container"],["type","text","autocomplete","off",1,"p-dropdown-filter","p-inputtext","p-component",3,"value","input","keydown","blur"],["filter",""],["class","p-dropdown-filter-icon",4,"ngIf"],[1,"p-dropdown-filter-icon"],[3,"items","itemSize","autoSize","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","loader"],["role","listbox",1,"p-dropdown-items",3,"ngClass"],["items",""],["ngFor","",3,"ngForOf"],["class","p-dropdown-empty-message",3,"ngStyle",4,"ngIf"],["role","option",1,"p-dropdown-item-group",3,"ngStyle"],[3,"id","option","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize","onClick","onMouseEnter"],[1,"p-dropdown-empty-message",3,"ngStyle"],["emptyFilter",""],["empty",""]],template:function(Oi,On){if(1&Oi&&(n.TgZ(0,"div",0,1),n.NdJ("click",function(st){return On.onContainerClick(st)}),n.YNc(2,Rn,6,20,"span",2)(3,ti,2,5,"input",3)(4,ot,3,2,"ng-container",4),n.TgZ(5,"div",5),n.YNc(6,yi,3,2,"ng-container",4)(7,bn,2,1,"span",6),n.qZA(),n.TgZ(8,"p-overlay",7,8),n.NdJ("visibleChange",function(st){return On.overlayVisible=st})("onAnimationStart",function(st){return On.onOverlayAnimationStart(st)})("onHide",function(){return On.hide()}),n.YNc(10,vn,13,19,"ng-template",9),n.qZA()()),2&Oi){let _n;n.Tol(On.styleClass),n.Q6J("ngClass",On.containerClass)("ngStyle",On.style),n.uIk("id",On.id),n.xp6(2),n.Q6J("ngIf",!On.editable),n.xp6(),n.Q6J("ngIf",On.editable),n.xp6(),n.Q6J("ngIf",On.isVisibleClearIcon),n.xp6(),n.uIk("aria-expanded",null!==(_n=On.overlayVisible)&&void 0!==_n&&_n)("data-pc-section","trigger"),n.xp6(),n.Q6J("ngIf",!On.dropdownIconTemplate),n.xp6(),n.Q6J("ngIf",On.dropdownIconTemplate),n.xp6(),n.Q6J("visible",On.overlayVisible)("options",On.overlayOptions)("target","@parent")("appendTo",On.appendTo)("autoZIndex",On.autoZIndex)("baseZIndex",On.baseZIndex)("showTransitionOptions",On.showTransitionOptions)("hideTransitionOptions",On.hideTransitionOptions)}},dependencies:()=>[e.mk,e.sg,e.O5,e.tP,e.PC,Y,l.jx,$,ee.T,t,ge.q,Ke.v,Le,wn],styles:["@layer primeng{.p-dropdown{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-dropdown-clear-icon{position:absolute;top:50%;margin-top:-.5rem}.p-dropdown-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-dropdown-label{display:block;white-space:nowrap;overflow:hidden;flex:1 1 auto;width:1%;text-overflow:ellipsis;cursor:pointer}.p-dropdown-label-empty{overflow:hidden;opacity:0}input.p-dropdown-label{cursor:default}.p-dropdown .p-dropdown-panel{min-width:100%}.p-dropdown-items-wrapper{overflow:auto}.p-dropdown-item{cursor:pointer;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-dropdown-item-group{cursor:auto}.p-dropdown-items{margin:0;padding:0;list-style-type:none}.p-dropdown-filter{width:100%}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-dropdown{display:flex}.p-fluid .p-dropdown .p-dropdown-label{width:1%}}\n"],encapsulation:2,changeDetection:0})}return Vn})(),Kn=(()=>{class Vn{static \u0275fac=function(Oi){return new(Oi||Vn)};static \u0275mod=n.oAB({type:Vn});static \u0275inj=n.cJS({imports:[e.ez,K,l.m8,ue,ne.T,ee.v,p,ge.q,Ke.v,Le,K,l.m8,ee.v]})}return Vn})()},17919:(gt,X,a)=>{"use strict";a.d(X,{p:()=>Ft,O:()=>Oi});var e=a(96814),n=a(69862),s=a(19212),l=a(85219),i=a(40707),t=a(82076),p=a(3983),c=a(77778),o=a(84713),x=a(2332);let u=(()=>{class On extends o.s{pathId;ngOnInit(){this.pathId="url(#"+(0,x.Th)()+")"}static \u0275fac=(()=>{let st;return function(Wt){return(st||(st=s.n5z(On)))(Wt||On)}})();static \u0275cmp=s.Xpm({type:On,selectors:[["UploadIcon"]],standalone:!0,features:[s.qOj,s.jDz],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.58942 9.82197C6.70165 9.93405 6.85328 9.99793 7.012 10C7.17071 9.99793 7.32234 9.93405 7.43458 9.82197C7.54681 9.7099 7.61079 9.55849 7.61286 9.4V2.04798L9.79204 4.22402C9.84752 4.28011 9.91365 4.32457 9.98657 4.35479C10.0595 4.38502 10.1377 4.40039 10.2167 4.40002C10.2956 4.40039 10.3738 4.38502 10.4467 4.35479C10.5197 4.32457 10.5858 4.28011 10.6413 4.22402C10.7538 4.11152 10.817 3.95902 10.817 3.80002C10.817 3.64102 10.7538 3.48852 10.6413 3.37602L7.45127 0.190618C7.44656 0.185584 7.44176 0.180622 7.43687 0.175736C7.32419 0.063214 7.17136 0 7.012 0C6.85264 0 6.69981 0.063214 6.58712 0.175736C6.58181 0.181045 6.5766 0.186443 6.5715 0.191927L3.38282 3.37602C3.27669 3.48976 3.2189 3.6402 3.22165 3.79564C3.2244 3.95108 3.28746 4.09939 3.39755 4.20932C3.50764 4.31925 3.65616 4.38222 3.81182 4.38496C3.96749 4.3877 4.11814 4.33001 4.23204 4.22402L6.41113 2.04807V9.4C6.41321 9.55849 6.47718 9.7099 6.58942 9.82197ZM11.9952 14H2.02883C1.751 13.9887 1.47813 13.9228 1.22584 13.8061C0.973545 13.6894 0.746779 13.5241 0.558517 13.3197C0.370254 13.1154 0.22419 12.876 0.128681 12.6152C0.0331723 12.3545 -0.00990605 12.0775 0.0019109 11.8V9.40005C0.0019109 9.24092 0.065216 9.08831 0.1779 8.97579C0.290584 8.86326 0.443416 8.80005 0.602775 8.80005C0.762134 8.80005 0.914966 8.86326 1.02765 8.97579C1.14033 9.08831 1.20364 9.24092 1.20364 9.40005V11.8C1.18295 12.0376 1.25463 12.274 1.40379 12.4602C1.55296 12.6463 1.76817 12.7681 2.00479 12.8H11.9952C12.2318 12.7681 12.447 12.6463 12.5962 12.4602C12.7453 12.274 12.817 12.0376 12.7963 11.8V9.40005C12.7963 9.24092 12.8596 9.08831 12.9723 8.97579C13.085 8.86326 13.2378 8.80005 13.3972 8.80005C13.5565 8.80005 13.7094 8.86326 13.8221 8.97579C13.9347 9.08831 13.998 9.24092 13.998 9.40005V11.8C14.022 12.3563 13.8251 12.8996 13.45 13.3116C13.0749 13.7236 12.552 13.971 11.9952 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(Dn,Wt){1&Dn&&(s.O4$(),s.TgZ(0,"svg",0)(1,"g"),s._UZ(2,"path",1),s.qZA(),s.TgZ(3,"defs")(4,"clipPath",2),s._UZ(5,"rect",3),s.qZA()()()),2&Dn&&(s.Tol(Wt.getClassNames()),s.uIk("aria-label",Wt.ariaLabel)("aria-hidden",Wt.ariaHidden)("role",Wt.role),s.xp6(),s.uIk("clip-path",Wt.pathId),s.xp6(3),s.Q6J("id",Wt.pathId))},encapsulation:2})}return On})();var m=a(86825),b=a(12591);let I=(()=>{class On extends o.s{pathId;ngOnInit(){this.pathId="url(#"+(0,x.Th)()+")"}static \u0275fac=(()=>{let st;return function(Wt){return(st||(st=s.n5z(On)))(Wt||On)}})();static \u0275cmp=s.Xpm({type:On,selectors:[["ExclamationTriangleIcon"]],standalone:!0,features:[s.qOj,s.jDz],decls:8,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z","fill","currentColor"],["d","M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z","fill","currentColor"],["d","M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(Dn,Wt){1&Dn&&(s.O4$(),s.TgZ(0,"svg",0)(1,"g"),s._UZ(2,"path",1)(3,"path",2)(4,"path",3),s.qZA(),s.TgZ(5,"defs")(6,"clipPath",4),s._UZ(7,"rect",5),s.qZA()()()),2&Dn&&(s.Tol(Wt.getClassNames()),s.uIk("aria-label",Wt.ariaLabel)("aria-hidden",Wt.ariaHidden)("role",Wt.role),s.xp6(),s.uIk("clip-path",Wt.pathId),s.xp6(5),s.Q6J("id",Wt.pathId))},encapsulation:2})}return On})(),H=(()=>{class On extends o.s{pathId;ngOnInit(){this.pathId="url(#"+(0,x.Th)()+")"}static \u0275fac=(()=>{let st;return function(Wt){return(st||(st=s.n5z(On)))(Wt||On)}})();static \u0275cmp=s.Xpm({type:On,selectors:[["InfoCircleIcon"]],standalone:!0,features:[s.qOj,s.jDz],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(Dn,Wt){1&Dn&&(s.O4$(),s.TgZ(0,"svg",0)(1,"g"),s._UZ(2,"path",1),s.qZA(),s.TgZ(3,"defs")(4,"clipPath",2),s._UZ(5,"rect",3),s.qZA()()()),2&Dn&&(s.Tol(Wt.getClassNames()),s.uIk("aria-label",Wt.ariaLabel)("aria-hidden",Wt.ariaHidden)("role",Wt.role),s.xp6(),s.uIk("clip-path",Wt.pathId),s.xp6(3),s.Q6J("id",Wt.pathId))},encapsulation:2})}return On})(),O=(()=>{class On extends o.s{pathId;ngOnInit(){this.pathId="url(#"+(0,x.Th)()+")"}static \u0275fac=(()=>{let st;return function(Wt){return(st||(st=s.n5z(On)))(Wt||On)}})();static \u0275cmp=s.Xpm({type:On,selectors:[["TimesCircleIcon"]],standalone:!0,features:[s.qOj,s.jDz],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(Dn,Wt){1&Dn&&(s.O4$(),s.TgZ(0,"svg",0)(1,"g"),s._UZ(2,"path",1),s.qZA(),s.TgZ(3,"defs")(4,"clipPath",2),s._UZ(5,"rect",3),s.qZA()()()),2&Dn&&(s.Tol(Wt.getClassNames()),s.uIk("aria-label",Wt.ariaLabel)("aria-hidden",Wt.ariaHidden)("role",Wt.role),s.xp6(),s.uIk("clip-path",Wt.pathId),s.xp6(3),s.Q6J("id",Wt.pathId))},encapsulation:2})}return On})();var P=a(44480),G=a(71928);function B(On,_n){if(1&On&&s._UZ(0,"span"),2&On){const st=s.oxw().$implicit;s.Tol("p-message-icon pi "+st.icon),s.uIk("data-pc-section","icon")}}function ae(On,_n){1&On&&s._UZ(0,"CheckIcon"),2&On&&s.uIk("data-pc-section","icon")}function J(On,_n){1&On&&s._UZ(0,"InfoCircleIcon"),2&On&&s.uIk("data-pc-section","icon")}function q(On,_n){1&On&&s._UZ(0,"TimesCircleIcon"),2&On&&s.uIk("data-pc-section","icon")}function j(On,_n){1&On&&s._UZ(0,"ExclamationTriangleIcon"),2&On&&s.uIk("data-pc-section","icon")}function Y(On,_n){if(1&On&&(s.TgZ(0,"span",10),s.ynx(1),s.YNc(2,ae,1,1,"CheckIcon",11)(3,J,1,1,"InfoCircleIcon",11)(4,q,1,1,"TimesCircleIcon",11)(5,j,1,1,"ExclamationTriangleIcon",11),s.BQk(),s.qZA()),2&On){const st=s.oxw().$implicit;s.xp6(2),s.Q6J("ngIf","success"===st.severity),s.xp6(),s.Q6J("ngIf","info"===st.severity),s.xp6(),s.Q6J("ngIf","error"===st.severity),s.xp6(),s.Q6J("ngIf","warn"===st.severity)}}function K(On,_n){if(1&On&&s._UZ(0,"span",14),2&On){const st=s.oxw(2).$implicit;s.Q6J("innerHTML",st.summary,s.oJD),s.uIk("data-pc-section","summary")}}function ne(On,_n){if(1&On&&s._UZ(0,"span",15),2&On){const st=s.oxw(2).$implicit;s.Q6J("innerHTML",st.detail,s.oJD),s.uIk("data-pc-section","detail")}}function ee(On,_n){if(1&On&&(s.ynx(0),s.YNc(1,K,1,2,"span",12)(2,ne,1,2,"span",13),s.BQk()),2&On){const st=s.oxw().$implicit;s.xp6(),s.Q6J("ngIf",st.summary),s.xp6(),s.Q6J("ngIf",st.detail)}}function $(On,_n){if(1&On&&(s.TgZ(0,"span",18),s._uU(1),s.qZA()),2&On){const st=s.oxw(2).$implicit;s.uIk("data-pc-section","summary"),s.xp6(),s.Oqu(st.summary)}}function ue(On,_n){if(1&On&&(s.TgZ(0,"span",19),s._uU(1),s.qZA()),2&On){const st=s.oxw(2).$implicit;s.uIk("data-pc-section","detail"),s.xp6(),s.Oqu(st.detail)}}function ge(On,_n){if(1&On&&s.YNc(0,$,2,2,"span",16)(1,ue,2,2,"span",17),2&On){const st=s.oxw().$implicit;s.Q6J("ngIf",st.summary),s.xp6(),s.Q6J("ngIf",st.detail)}}function Ke(On,_n){if(1&On){const st=s.EpF();s.TgZ(0,"button",20),s.NdJ("click",function(){s.CHM(st);const Wt=s.oxw().index,kn=s.oxw(2);return s.KtG(kn.removeMessage(Wt))}),s._UZ(1,"TimesIcon",21),s.qZA()}if(2&On){const st=s.oxw(3);s.uIk("aria-label",st.closeAriaLabel)("data-pc-section","closebutton"),s.xp6(),s.Q6J("styleClass","p-message-close-icon"),s.uIk("data-pc-section","closeicon")}}const at=(On,_n)=>({showTransitionParams:On,hideTransitionParams:_n}),Le=On=>({value:"visible",params:On});function R(On,_n){if(1&On&&(s.TgZ(0,"div",4)(1,"div",5),s.YNc(2,B,1,3,"span",6)(3,Y,6,4,"span",7)(4,ee,3,2,"ng-container",1)(5,ge,2,2,"ng-template",null,8,s.W1O)(7,Ke,2,4,"button",9),s.qZA()()),2&On){const st=_n.$implicit,Dn=s.MAs(6),Wt=s.oxw(2);s.Tol("p-message p-message-"+st.severity),s.Q6J("@messageAnimation",s.VKq(12,Le,s.WLB(9,at,Wt.showTransitionOptions,Wt.hideTransitionOptions))),s.xp6(),s.uIk("data-pc-section","wrapper"),s.xp6(),s.Q6J("ngIf",st.icon),s.xp6(),s.Q6J("ngIf",!st.icon),s.xp6(),s.Q6J("ngIf",!Wt.escape)("ngIfElse",Dn),s.xp6(3),s.Q6J("ngIf",Wt.closable)}}function Te(On,_n){if(1&On&&(s.ynx(0),s.YNc(1,R,8,14,"div",3),s.BQk()),2&On){const st=s.oxw();s.xp6(),s.Q6J("ngForOf",st.messages)}}function me(On,_n){1&On&&s.GkF(0)}function Se(On,_n){if(1&On&&(s.TgZ(0,"div",22)(1,"div",5),s.YNc(2,me,1,0,"ng-container",23),s.qZA()()),2&On){const st=s.oxw();s.Q6J("ngClass","p-message p-message-"+st.severity),s.xp6(2),s.Q6J("ngTemplateOutlet",st.contentTemplate)}}let Ue=(()=>{class On{messageService;el;cd;config;set value(st){this.messages=st,this.startMessageLifes(this.messages)}closable=!0;style;styleClass;enableService=!0;key;escape=!0;severity;showTransitionOptions="300ms ease-out";hideTransitionOptions="200ms cubic-bezier(0.86, 0, 0.07, 1)";valueChange=new s.vpe;templates;messages;messageSubscription;clearSubscription;timerSubscriptions=[];contentTemplate;constructor(st,Dn,Wt,kn){this.messageService=st,this.el=Dn,this.cd=Wt,this.config=kn}ngAfterContentInit(){this.templates?.forEach(st=>{st.getType(),this.contentTemplate=st.template}),this.messageService&&this.enableService&&!this.contentTemplate&&(this.messageSubscription=this.messageService.messageObserver.subscribe(st=>{if(st){Array.isArray(st)||(st=[st]);const Dn=st.filter(Wt=>this.key===Wt.key);this.messages=this.messages?[...this.messages,...Dn]:[...Dn],this.startMessageLifes(Dn),this.cd.markForCheck()}}),this.clearSubscription=this.messageService.clearObserver.subscribe(st=>{st?this.key===st&&(this.messages=null):this.messages=null,this.cd.markForCheck()}))}hasMessages(){let st=this.el.nativeElement.parentElement;return!(!st||!st.offsetParent)&&(null!=this.contentTemplate||this.messages&&this.messages.length>0)}clear(){this.messages=[],this.valueChange.emit(this.messages)}removeMessage(st){this.messages=this.messages?.filter((Dn,Wt)=>Wt!==st),this.valueChange.emit(this.messages)}get icon(){const st=this.severity||(this.hasMessages()?this.messages[0].severity:null);if(this.hasMessages())switch(st){case"success":return"pi-check";case"info":default:return"pi-info-circle";case"error":return"pi-times";case"warn":return"pi-exclamation-triangle"}return null}get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.timerSubscriptions?.forEach(st=>st.unsubscribe())}startMessageLifes(st){st?.forEach(Dn=>Dn.life&&this.startMessageLife(Dn))}startMessageLife(st){const Dn=(0,G.H)(st.life).subscribe(()=>{this.messages=this.messages?.filter(Wt=>Wt!==st),this.timerSubscriptions=this.timerSubscriptions?.filter(Wt=>Wt!==Dn),this.valueChange.emit(this.messages),this.cd.markForCheck()});this.timerSubscriptions.push(Dn)}static \u0275fac=function(Dn){return new(Dn||On)(s.Y36(l.ez,8),s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(l.b4))};static \u0275cmp=s.Xpm({type:On,selectors:[["p-messages"]],contentQueries:function(Dn,Wt,kn){if(1&Dn&&s.Suo(kn,l.jx,4),2&Dn){let Fi;s.iGM(Fi=s.CRH())&&(Wt.templates=Fi)}},hostAttrs:[1,"p-element"],inputs:{value:"value",closable:"closable",style:"style",styleClass:"styleClass",enableService:"enableService",key:"key",escape:"escape",severity:"severity",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{valueChange:"valueChange"},decls:4,vars:8,consts:[["role","alert",1,"p-messages","p-component",3,"ngStyle"],[4,"ngIf","ngIfElse"],["staticMessage",""],["role","alert",3,"class",4,"ngFor","ngForOf"],["role","alert"],[1,"p-message-wrapper"],[3,"class",4,"ngIf"],["class","p-message-icon",4,"ngIf"],["escapeOut",""],["class","p-message-close p-link","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-message-icon"],[4,"ngIf"],["class","p-message-summary",3,"innerHTML",4,"ngIf"],["class","p-message-detail",3,"innerHTML",4,"ngIf"],[1,"p-message-summary",3,"innerHTML"],[1,"p-message-detail",3,"innerHTML"],["class","p-message-summary",4,"ngIf"],["class","p-message-detail",4,"ngIf"],[1,"p-message-summary"],[1,"p-message-detail"],["type","button","pRipple","",1,"p-message-close","p-link",3,"click"],[3,"styleClass"],["role","alert",3,"ngClass"],[4,"ngTemplateOutlet"]],template:function(Dn,Wt){if(1&Dn&&(s.TgZ(0,"div",0),s.YNc(1,Te,2,1,"ng-container",1)(2,Se,3,2,"ng-template",null,2,s.W1O),s.qZA()),2&Dn){const kn=s.MAs(3);s.Tol(Wt.styleClass),s.Q6J("ngStyle",Wt.style),s.uIk("aria-atomic",!0)("aria-live","assertive")("data-pc-name","message"),s.xp6(),s.Q6J("ngIf",!Wt.contentTemplate)("ngIfElse",kn)}},dependencies:()=>[e.mk,e.sg,e.O5,e.tP,e.PC,P.H,b.n,H,O,I,c.q],styles:["@layer primeng{.p-message-wrapper{display:flex;align-items:center}.p-message-close{display:flex;align-items:center;justify-content:center;flex:none}.p-message-close.p-link{margin-left:auto;overflow:hidden;position:relative}.p-messages .p-message.ng-animating{overflow:hidden}}\n"],encapsulation:2,data:{animation:[(0,m.X$)("messageAnimation",[(0,m.eR)(":enter",[(0,m.oB)({opacity:0,transform:"translateY(-25%)"}),(0,m.jt)("{{showTransitionParams}}")]),(0,m.eR)(":leave",[(0,m.jt)("{{hideTransitionParams}}",(0,m.oB)({height:0,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,opacity:0}))])])]},changeDetection:0})}return On})(),We=(()=>{class On{static \u0275fac=function(Dn){return new(Dn||On)};static \u0275mod=s.oAB({type:On});static \u0275inj=s.cJS({imports:[e.ez,P.T,b.n,H,O,I,c.q]})}return On})();function et(On,_n){if(1&On&&(s.TgZ(0,"div"),s._uU(1),s.qZA()),2&On){const st=s.oxw(2);s.Udp("display",null!=st.value&&0!==st.value?"flex":"none"),s.uIk("data-pc-section","label"),s.xp6(),s.AsE("",st.value,"",st.unit,"")}}function Et(On,_n){1&On&&s.GkF(0)}const lt=On=>({$implicit:On});function Vt(On,_n){if(1&On&&(s.TgZ(0,"div",3)(1,"div",4),s.YNc(2,et,2,5,"div",5)(3,Et,1,0,"ng-container",6),s.qZA()()),2&On){const st=s.oxw();s.Udp("width",st.value+"%")("background",st.color),s.uIk("data-pc-section","value"),s.xp6(2),s.Q6J("ngIf",st.showValue&&!st.contentTemplate),s.xp6(),s.Q6J("ngTemplateOutlet",st.contentTemplate)("ngTemplateOutletContext",s.VKq(8,lt,st.value))}}function r(On,_n){if(1&On&&(s.TgZ(0,"div",7),s._UZ(1,"div",8),s.qZA()),2&On){const st=s.oxw();s.uIk("data-pc-section","container"),s.xp6(),s.Udp("background",st.color),s.uIk("data-pc-section","value")}}const Z=(On,_n)=>({"p-progressbar p-component":!0,"p-progressbar-determinate":On,"p-progressbar-indeterminate":_n});let Pt=(()=>{class On{value;showValue=!0;styleClass;style;unit="%";mode="determinate";color;templates;contentTemplate;ngAfterContentInit(){this.templates?.forEach(st=>{st.getType(),this.contentTemplate=st.template})}static \u0275fac=function(Dn){return new(Dn||On)};static \u0275cmp=s.Xpm({type:On,selectors:[["p-progressBar"]],contentQueries:function(Dn,Wt,kn){if(1&Dn&&s.Suo(kn,l.jx,4),2&Dn){let Fi;s.iGM(Fi=s.CRH())&&(Wt.templates=Fi)}},hostAttrs:[1,"p-element"],inputs:{value:"value",showValue:"showValue",styleClass:"styleClass",style:"style",unit:"unit",mode:"mode",color:"color"},decls:3,vars:14,consts:[["role","progressbar",3,"ngStyle","ngClass"],["class","p-progressbar-value p-progressbar-value-animate","style","display:flex",3,"width","background",4,"ngIf"],["class","p-progressbar-indeterminate-container",4,"ngIf"],[1,"p-progressbar-value","p-progressbar-value-animate",2,"display","flex"],[1,"p-progressbar-label"],[3,"display",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-progressbar-indeterminate-container"],[1,"p-progressbar-value","p-progressbar-value-animate"]],template:function(Dn,Wt){1&Dn&&(s.TgZ(0,"div",0),s.YNc(1,Vt,4,10,"div",1)(2,r,2,4,"div",2),s.qZA()),2&Dn&&(s.Tol(Wt.styleClass),s.Q6J("ngStyle",Wt.style)("ngClass",s.WLB(11,Z,"determinate"===Wt.mode,"indeterminate"===Wt.mode)),s.uIk("aria-valuemin",0)("aria-valuenow",Wt.value)("aria-valuemax",100)("data-pc-name","progressbar")("data-pc-section","root"),s.xp6(),s.Q6J("ngIf","determinate"===Wt.mode),s.xp6(),s.Q6J("ngIf","indeterminate"===Wt.mode))},dependencies:[e.mk,e.O5,e.tP,e.PC],styles:['@layer primeng{.p-progressbar{position:relative;overflow:hidden}.p-progressbar-determinate .p-progressbar-value{height:100%;width:0%;position:absolute;display:none;border:0 none;display:flex;align-items:center;justify-content:center;overflow:hidden}.p-progressbar-determinate .p-progressbar-label{display:inline-flex}.p-progressbar-determinate .p-progressbar-value-animate{transition:width 1s ease-in-out}.p-progressbar-indeterminate .p-progressbar-value:before{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;-webkit-animation:p-progressbar-indeterminate-anim 2.1s cubic-bezier(.65,.815,.735,.395) infinite;animation:p-progressbar-indeterminate-anim 2.1s cubic-bezier(.65,.815,.735,.395) infinite}.p-progressbar-indeterminate .p-progressbar-value:after{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;-webkit-animation:p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(.165,.84,.44,1) infinite;animation:p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(.165,.84,.44,1) infinite;-webkit-animation-delay:1.15s;animation-delay:1.15s}}@-webkit-keyframes p-progressbar-indeterminate-anim{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes p-progressbar-indeterminate-anim{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@-webkit-keyframes p-progressbar-indeterminate-anim-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}@keyframes p-progressbar-indeterminate-anim-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}\n'],encapsulation:2,changeDetection:0})}return On})(),Oe=(()=>{class On{static \u0275fac=function(Dn){return new(Dn||On)};static \u0275mod=s.oAB({type:On});static \u0275inj=s.cJS({imports:[e.ez]})}return On})();var ye=a(6593);const ve=["advancedfileinput"],ft=["basicfileinput"],Dt=["content"];function Rn(On,_n){if(1&On&&s._UZ(0,"span",18),2&On){const st=s.oxw(2);s.Tol(st.chooseIcon),s.Q6J("ngClass","p-button-icon p-button-icon-left"),s.uIk("aria-label",!0)("data-pc-section","chooseicon")}}function ti(On,_n){1&On&&s._UZ(0,"PlusIcon",21),2&On&&(s.Q6J("styleClass","p-button-icon p-button-icon-left"),s.uIk("aria-label",!0)("data-pc-section","chooseicon"))}function Xt(On,_n){}function Je(On,_n){1&On&&s.YNc(0,Xt,0,0,"ng-template")}function dt(On,_n){if(1&On&&(s.TgZ(0,"span",22),s.YNc(1,Je,1,0,null,11),s.qZA()),2&On){const st=s.oxw(3);s.uIk("aria-label",!0)("data-pc-section","chooseicon"),s.xp6(),s.Q6J("ngTemplateOutlet",st.chooseIconTemplate)}}function Ie(On,_n){if(1&On&&(s.ynx(0),s.YNc(1,ti,1,3,"PlusIcon",19)(2,dt,2,3,"span",20),s.BQk()),2&On){const st=s.oxw(2);s.xp6(),s.Q6J("ngIf",!st.chooseIconTemplate),s.xp6(),s.Q6J("ngIf",st.chooseIconTemplate)}}function ot(On,_n){if(1&On&&s._UZ(0,"span",25),2&On){const st=s.oxw(3);s.Q6J("ngClass",st.uploadIcon),s.uIk("aria-hidden",!0)}}function ct(On,_n){1&On&&s._UZ(0,"UploadIcon",21),2&On&&s.Q6J("styleClass","p-button-icon p-button-icon-left")}function tn(On,_n){}function yi(On,_n){1&On&&s.YNc(0,tn,0,0,"ng-template")}function ni(On,_n){if(1&On&&(s.TgZ(0,"span",22),s.YNc(1,yi,1,0,null,11),s.qZA()),2&On){const st=s.oxw(4);s.uIk("aria-hidden",!0),s.xp6(),s.Q6J("ngTemplateOutlet",st.uploadIconTemplate)}}function sn(On,_n){if(1&On&&(s.ynx(0),s.YNc(1,ct,1,1,"UploadIcon",19)(2,ni,2,2,"span",20),s.BQk()),2&On){const st=s.oxw(3);s.xp6(),s.Q6J("ngIf",!st.uploadIconTemplate),s.xp6(),s.Q6J("ngIf",st.uploadIconTemplate)}}function bn(On,_n){if(1&On){const st=s.EpF();s.TgZ(0,"p-button",23),s.NdJ("onClick",function(){s.CHM(st);const Wt=s.oxw(2);return s.KtG(Wt.upload())}),s.YNc(1,ot,1,2,"span",24)(2,sn,3,2,"ng-container",8),s.qZA()}if(2&On){const st=s.oxw(2);s.Q6J("label",st.uploadButtonLabel)("disabled",!st.hasFiles()||st.isFileLimitExceeded())("styleClass",st.uploadStyleClass),s.xp6(),s.Q6J("ngIf",st.uploadIcon),s.xp6(),s.Q6J("ngIf",!st.uploadIcon)}}function vt(On,_n){if(1&On&&s._UZ(0,"span",25),2&On){const st=s.oxw(3);s.Q6J("ngClass",st.cancelIcon)}}function nn(On,_n){1&On&&s._UZ(0,"TimesIcon",21),2&On&&(s.Q6J("styleClass","p-button-icon p-button-icon-left"),s.uIk("aria-hidden",!0))}function rn(On,_n){}function ii(On,_n){1&On&&s.YNc(0,rn,0,0,"ng-template")}function Oo(On,_n){if(1&On&&(s.TgZ(0,"span",22),s.YNc(1,ii,1,0,null,11),s.qZA()),2&On){const st=s.oxw(4);s.uIk("aria-hidden",!0),s.xp6(),s.Q6J("ngTemplateOutlet",st.cancelIconTemplate)}}function no(On,_n){if(1&On&&(s.ynx(0),s.YNc(1,nn,1,2,"TimesIcon",19)(2,Oo,2,2,"span",20),s.BQk()),2&On){const st=s.oxw(3);s.xp6(),s.Q6J("ngIf",!st.cancelIconTemplate),s.xp6(),s.Q6J("ngIf",st.cancelIconTemplate)}}function Li(On,_n){if(1&On){const st=s.EpF();s.TgZ(0,"p-button",23),s.NdJ("onClick",function(){s.CHM(st);const Wt=s.oxw(2);return s.KtG(Wt.clear())}),s.YNc(1,vt,1,1,"span",24)(2,no,3,2,"ng-container",8),s.qZA()}if(2&On){const st=s.oxw(2);s.Q6J("label",st.cancelButtonLabel)("disabled",!st.hasFiles()||st.uploading)("styleClass",st.cancelStyleClass),s.xp6(),s.Q6J("ngIf",st.cancelIcon),s.xp6(),s.Q6J("ngIf",!st.cancelIcon)}}function ji(On,_n){1&On&&s.GkF(0)}function Ii(On,_n){if(1&On&&s._UZ(0,"p-progressBar",26),2&On){const st=s.oxw(2);s.Q6J("value",st.progress)("showValue",!1)}}function _i(On,_n){if(1&On){const st=s.EpF();s.TgZ(0,"img",33),s.NdJ("error",function(Wt){s.CHM(st);const kn=s.oxw(5);return s.KtG(kn.imageError(Wt))}),s.qZA()}if(2&On){const st=s.oxw().$implicit,Dn=s.oxw(4);s.Q6J("src",st.objectURL,s.LSH)("width",Dn.previewWidth)}}function En(On,_n){1&On&&s._UZ(0,"TimesIcon")}function co(On,_n){}function yn(On,_n){1&On&&s.YNc(0,co,0,0,"ng-template")}function ln(On,_n){if(1&On){const st=s.EpF();s.TgZ(0,"div",29)(1,"div"),s.YNc(2,_i,1,2,"img",30),s.qZA(),s.TgZ(3,"div",31),s._uU(4),s.qZA(),s.TgZ(5,"div"),s._uU(6),s.qZA(),s.TgZ(7,"div")(8,"button",32),s.NdJ("click",function(Wt){const Fi=s.CHM(st).index,ui=s.oxw(4);return s.KtG(ui.remove(Wt,Fi))}),s.YNc(9,En,1,0,"TimesIcon",8)(10,yn,1,0,null,11),s.qZA()()()}if(2&On){const st=_n.$implicit,Dn=s.oxw(4);s.xp6(2),s.Q6J("ngIf",Dn.isImage(st)),s.xp6(2),s.Oqu(st.name),s.xp6(2),s.Oqu(Dn.formatSize(st.size)),s.xp6(2),s.Tol(Dn.removeStyleClass),s.Q6J("disabled",Dn.uploading),s.xp6(),s.Q6J("ngIf",!Dn.cancelIconTemplate),s.xp6(),s.Q6J("ngTemplateOutlet",Dn.cancelIconTemplate)}}function He(On,_n){if(1&On&&(s.TgZ(0,"div"),s.YNc(1,ln,11,8,"div",28),s.qZA()),2&On){const st=s.oxw(3);s.xp6(),s.Q6J("ngForOf",st.files)}}function rt(On,_n){}function $e(On,_n){if(1&On&&(s.TgZ(0,"div"),s.YNc(1,rt,0,0,"ng-template",34),s.qZA()),2&On){const st=s.oxw(3);s.xp6(),s.Q6J("ngForOf",st.files)("ngForTemplate",st.fileTemplate)}}function Ve(On,_n){if(1&On&&(s.TgZ(0,"div",27),s.YNc(1,He,2,1,"div",8)(2,$e,2,2,"div",8),s.qZA()),2&On){const st=s.oxw(2);s.xp6(),s.Q6J("ngIf",!st.fileTemplate),s.xp6(),s.Q6J("ngIf",st.fileTemplate)}}function Ce(On,_n){1&On&&s.GkF(0)}const tt=(On,_n)=>({"p-focus":On,"p-disabled":_n}),ht=On=>({$implicit:On});function Qt(On,_n){if(1&On){const st=s.EpF();s.TgZ(0,"div",2)(1,"div",3)(2,"span",4),s.NdJ("focus",function(){s.CHM(st);const Wt=s.oxw();return s.KtG(Wt.onFocus())})("blur",function(){s.CHM(st);const Wt=s.oxw();return s.KtG(Wt.onBlur())})("click",function(){s.CHM(st);const Wt=s.oxw();return s.KtG(Wt.choose())})("keydown.enter",function(){s.CHM(st);const Wt=s.oxw();return s.KtG(Wt.choose())}),s.TgZ(3,"input",5,6),s.NdJ("change",function(Wt){s.CHM(st);const kn=s.oxw();return s.KtG(kn.onFileSelect(Wt))}),s.qZA(),s.YNc(5,Rn,1,5,"span",7)(6,Ie,3,2,"ng-container",8),s.TgZ(7,"span",9),s._uU(8),s.qZA()(),s.YNc(9,bn,3,5,"p-button",10)(10,Li,3,5,"p-button",10)(11,ji,1,0,"ng-container",11),s.qZA(),s.TgZ(12,"div",12,13),s.NdJ("dragenter",function(Wt){s.CHM(st);const kn=s.oxw();return s.KtG(kn.onDragEnter(Wt))})("dragleave",function(Wt){s.CHM(st);const kn=s.oxw();return s.KtG(kn.onDragLeave(Wt))})("drop",function(Wt){s.CHM(st);const kn=s.oxw();return s.KtG(kn.onDrop(Wt))}),s.YNc(14,Ii,1,2,"p-progressBar",14),s._UZ(15,"p-messages",15),s.YNc(16,Ve,3,2,"div",16)(17,Ce,1,0,"ng-container",17),s.qZA()()}if(2&On){const st=s.oxw();s.Tol(st.styleClass),s.Q6J("ngClass","p-fileupload p-fileupload-advanced p-component")("ngStyle",st.style),s.uIk("data-pc-name","fileupload")("data-pc-section","root"),s.xp6(),s.uIk("data-pc-section","buttonbar"),s.xp6(),s.Tol(st.chooseStyleClass),s.Q6J("ngClass",s.WLB(30,tt,st.focus,st.disabled||st.isChooseDisabled())),s.uIk("data-pc-section","choosebutton"),s.xp6(),s.Q6J("multiple",st.multiple)("accept",st.accept)("disabled",st.disabled||st.isChooseDisabled()),s.uIk("title","")("data-pc-section","input"),s.xp6(2),s.Q6J("ngIf",st.chooseIcon),s.xp6(),s.Q6J("ngIf",!st.chooseIcon),s.xp6(),s.uIk("data-pc-section","choosebuttonlabel"),s.xp6(),s.Oqu(st.chooseButtonLabel),s.xp6(),s.Q6J("ngIf",!st.auto&&st.showUploadButton),s.xp6(),s.Q6J("ngIf",!st.auto&&st.showCancelButton),s.xp6(),s.Q6J("ngTemplateOutlet",st.toolbarTemplate),s.xp6(),s.uIk("data-pc-section","content"),s.xp6(2),s.Q6J("ngIf",st.hasFiles()),s.xp6(),s.Q6J("value",st.msgs)("enableService",!1),s.xp6(),s.Q6J("ngIf",st.hasFiles()),s.xp6(),s.Q6J("ngTemplateOutlet",st.contentTemplate)("ngTemplateOutletContext",s.VKq(33,ht,st.files))}}function Un(On,_n){if(1&On&&s._UZ(0,"span",25),2&On){const st=s.oxw(3);s.Q6J("ngClass",st.uploadIcon)}}function Yt(On,_n){1&On&&s._UZ(0,"UploadIcon",21),2&On&&s.Q6J("styleClass","p-button-icon p-button-icon-left")}function Fn(On,_n){}function yt(On,_n){1&On&&s.YNc(0,Fn,0,0,"ng-template")}function Bt(On,_n){if(1&On&&(s.TgZ(0,"span",22),s.YNc(1,yt,1,0,null,11),s.qZA()),2&On){const st=s.oxw(4);s.xp6(),s.Q6J("ngTemplateOutlet",st.uploadIconTemplate)}}function li(On,_n){if(1&On&&(s.ynx(0),s.YNc(1,Yt,1,1,"UploadIcon",19)(2,Bt,2,1,"span",20),s.BQk()),2&On){const st=s.oxw(3);s.xp6(),s.Q6J("ngIf",!st.uploadIconTemplate),s.xp6(),s.Q6J("ngIf",st.uploadIconTemplate)}}function si(On,_n){if(1&On&&(s.ynx(0),s.YNc(1,Un,1,1,"span",24)(2,li,3,2,"ng-container",8),s.BQk()),2&On){const st=s.oxw(2);s.xp6(),s.Q6J("ngIf",st.uploadIcon),s.xp6(),s.Q6J("ngIf",!st.uploadIcon)}}function oo(On,_n){if(1&On&&s._UZ(0,"span",42),2&On){const st=s.oxw(3);s.Q6J("ngClass",st.chooseIcon)}}function _o(On,_n){1&On&&s._UZ(0,"PlusIcon",21),2&On&&(s.Q6J("styleClass","p-button-icon p-button-icon-left pi"),s.uIk("aria-hidden",!0)("data-pc-section","uploadicon"))}function Hn(On,_n){}function mo(On,_n){1&On&&s.YNc(0,Hn,0,0,"ng-template")}function vn(On,_n){if(1&On&&(s.TgZ(0,"span",44),s.YNc(1,mo,1,0,null,11),s.qZA()),2&On){const st=s.oxw(4);s.uIk("aria-hidden",!0)("data-pc-section","uploadicon"),s.xp6(),s.Q6J("ngTemplateOutlet",st.chooseIconTemplate)}}function Ji(On,_n){if(1&On&&(s.ynx(0),s.YNc(1,_o,1,3,"PlusIcon",19)(2,vn,2,3,"span",43),s.BQk()),2&On){const st=s.oxw(3);s.xp6(),s.Q6J("ngIf",!st.chooseIconTemplate),s.xp6(),s.Q6J("ngIf",st.chooseIconTemplate)}}function wn(On,_n){if(1&On&&s.YNc(0,oo,1,1,"span",41)(1,Ji,3,2,"ng-container",8),2&On){const st=s.oxw(2);s.Q6J("ngIf",st.chooseIcon),s.xp6(),s.Q6J("ngIf",!st.chooseIcon)}}function po(On,_n){if(1&On&&(s.TgZ(0,"span",9),s._uU(1),s.qZA()),2&On){const st=s.oxw(2);s.uIk("data-pc-section","label"),s.xp6(),s.Oqu(st.basicButtonLabel)}}function Kn(On,_n){if(1&On){const st=s.EpF();s.TgZ(0,"input",45,46),s.NdJ("change",function(Wt){s.CHM(st);const kn=s.oxw(2);return s.KtG(kn.onFileSelect(Wt))})("focus",function(){s.CHM(st);const Wt=s.oxw(2);return s.KtG(Wt.onFocus())})("blur",function(){s.CHM(st);const Wt=s.oxw(2);return s.KtG(Wt.onBlur())}),s.qZA()}if(2&On){const st=s.oxw(2);s.Q6J("accept",st.accept)("multiple",st.multiple)("disabled",st.disabled),s.uIk("data-pc-section","input")}}const Vn=(On,_n,st,Dn)=>({"p-button p-component p-fileupload-choose":!0,"p-button-icon-only":On,"p-fileupload-choose-selected":_n,"p-focus":st,"p-disabled":Dn});function Wi(On,_n){if(1&On){const st=s.EpF();s.TgZ(0,"div",35),s._UZ(1,"p-messages",15),s.TgZ(2,"span",36),s.NdJ("click",function(){s.CHM(st);const Wt=s.oxw();return s.KtG(Wt.onBasicUploaderClick())})("keydown",function(Wt){s.CHM(st);const kn=s.oxw();return s.KtG(kn.onBasicKeydown(Wt))}),s.YNc(3,si,3,2,"ng-container",37)(4,wn,2,2,"ng-template",null,38,s.W1O)(6,po,2,2,"span",39)(7,Kn,2,4,"input",40),s.qZA()()}if(2&On){const st=s.MAs(5),Dn=s.oxw();s.uIk("data-pc-name","fileupload"),s.xp6(),s.Q6J("value",Dn.msgs)("enableService",!1),s.xp6(),s.Tol(Dn.styleClass),s.Q6J("ngClass",s.l5B(12,Vn,!Dn.basicButtonLabel,Dn.hasFiles(),Dn.focus,Dn.disabled))("ngStyle",Dn.style),s.uIk("data-pc-section","choosebutton"),s.xp6(),s.Q6J("ngIf",Dn.hasFiles()&&!Dn.auto)("ngIfElse",st),s.xp6(3),s.Q6J("ngIf",Dn.basicButtonLabel),s.xp6(),s.Q6J("ngIf",!Dn.hasFiles())}}let Ft=(()=>{class On{document;platformId;renderer;el;sanitizer;zone;http;cd;config;name;url;method="post";multiple;accept;disabled;auto;withCredentials;maxFileSize;invalidFileSizeMessageSummary="{0}: Invalid file size, ";invalidFileSizeMessageDetail="maximum upload size is {0}.";invalidFileTypeMessageSummary="{0}: Invalid file type, ";invalidFileTypeMessageDetail="allowed file types: {0}.";invalidFileLimitMessageDetail="limit is {0} at most.";invalidFileLimitMessageSummary="Maximum number of files exceeded, ";style;styleClass;previewWidth=50;chooseLabel;uploadLabel;cancelLabel;chooseIcon;uploadIcon;cancelIcon;showUploadButton=!0;showCancelButton=!0;mode="advanced";headers;customUpload;fileLimit;uploadStyleClass;cancelStyleClass;removeStyleClass;chooseStyleClass;onBeforeUpload=new s.vpe;onSend=new s.vpe;onUpload=new s.vpe;onError=new s.vpe;onClear=new s.vpe;onRemove=new s.vpe;onSelect=new s.vpe;onProgress=new s.vpe;uploadHandler=new s.vpe;onImageError=new s.vpe;templates;advancedFileInput;basicFileInput;content;set files(st){this._files=[];for(let Dn=0;Dn<st.length;Dn++){let Wt=st[Dn];this.validate(Wt)&&(this.isImage(Wt)&&(Wt.objectURL=this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(st[Dn]))),this._files.push(st[Dn]))}}get files(){return this._files}get basicButtonLabel(){return this.auto||!this.hasFiles()?this.chooseLabel:this.uploadLabel??this.files[0].name}_files=[];progress=0;dragHighlight;msgs;fileTemplate;contentTemplate;toolbarTemplate;chooseIconTemplate;uploadIconTemplate;cancelIconTemplate;uploadedFileCount=0;focus;uploading;duplicateIEEvent;translationSubscription;dragOverListener;constructor(st,Dn,Wt,kn,Fi,ui,Fo,At,Jn){this.document=st,this.platformId=Dn,this.renderer=Wt,this.el=kn,this.sanitizer=Fi,this.zone=ui,this.http=Fo,this.cd=At,this.config=Jn}ngAfterContentInit(){this.templates?.forEach(st=>{switch(st.getType()){case"file":default:this.fileTemplate=st.template;break;case"content":this.contentTemplate=st.template;break;case"toolbar":this.toolbarTemplate=st.template;break;case"chooseicon":this.chooseIconTemplate=st.template;break;case"uploadicon":this.uploadIconTemplate=st.template;break;case"cancelicon":this.cancelIconTemplate=st.template}})}ngOnInit(){this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()})}ngAfterViewInit(){(0,e.NF)(this.platformId)&&"advanced"===this.mode&&this.zone.runOutsideAngular(()=>{this.content&&(this.dragOverListener=this.renderer.listen(this.content.nativeElement,"dragover",this.onDragOver.bind(this)))})}getTranslation(st){return this.config.getTranslation(st)}choose(){this.advancedFileInput?.nativeElement.click()}onFileSelect(st){if("drop"!==st.type&&this.isIE11()&&this.duplicateIEEvent)return void(this.duplicateIEEvent=!1);this.msgs=[],this.multiple||(this.files=[]);let Dn=st.dataTransfer?st.dataTransfer.files:st.target.files;for(let Wt=0;Wt<Dn.length;Wt++){let kn=Dn[Wt];this.isFileSelected(kn)||this.validate(kn)&&(this.isImage(kn)&&(kn.objectURL=this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(Dn[Wt]))),this.files.push(Dn[Wt]))}this.onSelect.emit({originalEvent:st,files:Dn,currentFiles:this.files}),this.checkFileLimit(Dn),this.hasFiles()&&this.auto&&"advanced"!==this.mode&&!this.isFileLimitExceeded()&&this.upload(),"drop"!==st.type&&this.isIE11()?this.clearIEInput():this.clearInputElement()}isFileSelected(st){for(let Dn of this.files)if(Dn.name+Dn.type+Dn.size===st.name+st.type+st.size)return!0;return!1}isIE11(){if((0,e.NF)(this.platformId))return!!this.document.defaultView.MSInputMethodContext&&!!this.document.documentMode}validate(st){return this.msgs=this.msgs||[],this.accept&&!this.isFileTypeValid(st)?(this.msgs.push({severity:"error",summary:this.invalidFileTypeMessageSummary.replace("{0}",st.name),detail:this.invalidFileTypeMessageDetail.replace("{0}",this.accept)}),!1):!(this.maxFileSize&&st.size>this.maxFileSize&&(this.msgs.push({severity:"error",summary:this.invalidFileSizeMessageSummary.replace("{0}",st.name),detail:this.invalidFileSizeMessageDetail.replace("{0}",this.formatSize(this.maxFileSize))}),1))}isFileTypeValid(st){let Dn=this.accept?.split(",").map(Wt=>Wt.trim());for(let Wt of Dn)if(this.isWildcard(Wt)?this.getTypeClass(st.type)===this.getTypeClass(Wt):st.type==Wt||this.getFileExtension(st).toLowerCase()===Wt.toLowerCase())return!0;return!1}getTypeClass(st){return st.substring(0,st.indexOf("/"))}isWildcard(st){return-1!==st.indexOf("*")}getFileExtension(st){return"."+st.name.split(".").pop()}isImage(st){return/^image\//.test(st.type)}onImageLoad(st){window.URL.revokeObjectURL(st.src)}upload(){if(this.customUpload)this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.uploadHandler.emit({files:this.files}),this.cd.markForCheck();else{this.uploading=!0,this.msgs=[];let st=new FormData;this.onBeforeUpload.emit({formData:st});for(let Dn=0;Dn<this.files.length;Dn++)st.append(this.name,this.files[Dn],this.files[Dn].name);this.http.request(this.method,this.url,{body:st,headers:this.headers,reportProgress:!0,observe:"events",withCredentials:this.withCredentials}).subscribe(Dn=>{switch(Dn.type){case n.dt.Sent:this.onSend.emit({originalEvent:Dn,formData:st});break;case n.dt.Response:this.uploading=!1,this.progress=0,Dn.status>=200&&Dn.status<300?(this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.onUpload.emit({originalEvent:Dn,files:this.files})):this.onError.emit({files:this.files}),this.clear();break;case n.dt.UploadProgress:Dn.loaded&&(this.progress=Math.round(100*Dn.loaded/Dn.total)),this.onProgress.emit({originalEvent:Dn,progress:this.progress})}this.cd.markForCheck()},Dn=>{this.uploading=!1,this.onError.emit({files:this.files,error:Dn})})}}clear(){this.files=[],this.uploadedFileCount=0,this.onClear.emit(),this.clearInputElement(),this.cd.markForCheck()}remove(st,Dn){this.clearInputElement(),this.onRemove.emit({originalEvent:st,file:this.files[Dn]}),this.files.splice(Dn,1),this.checkFileLimit(this.files)}isFileLimitExceeded(){const Dn=this.auto?this.files.length:this.files.length+this.uploadedFileCount;return this.fileLimit&&this.fileLimit<=Dn&&this.focus&&(this.focus=!1),this.fileLimit&&this.fileLimit<Dn}isChooseDisabled(){return this.auto?this.fileLimit&&this.fileLimit<=this.files.length:this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount}checkFileLimit(st){this.msgs??=[];const Dn=this.msgs.length>0&&this.fileLimit<st.length;(this.isFileLimitExceeded()||Dn)&&this.msgs.push({severity:"error",summary:this.invalidFileLimitMessageSummary.replace("{0}",this.fileLimit.toString()),detail:this.invalidFileLimitMessageDetail.replace("{0}",this.fileLimit.toString())})}clearInputElement(){this.advancedFileInput&&this.advancedFileInput.nativeElement&&(this.advancedFileInput.nativeElement.value=""),this.basicFileInput&&this.basicFileInput.nativeElement&&(this.basicFileInput.nativeElement.value="")}clearIEInput(){this.advancedFileInput&&this.advancedFileInput.nativeElement&&(this.duplicateIEEvent=!0,this.advancedFileInput.nativeElement.value="")}hasFiles(){return this.files&&this.files.length>0}onDragEnter(st){this.disabled||(st.stopPropagation(),st.preventDefault())}onDragOver(st){this.disabled||(t.p.addClass(this.content?.nativeElement,"p-fileupload-highlight"),this.dragHighlight=!0,st.stopPropagation(),st.preventDefault())}onDragLeave(st){this.disabled||t.p.removeClass(this.content?.nativeElement,"p-fileupload-highlight")}onDrop(st){if(!this.disabled){t.p.removeClass(this.content?.nativeElement,"p-fileupload-highlight"),st.stopPropagation(),st.preventDefault();let Dn=st.dataTransfer?st.dataTransfer.files:st.target.files;(this.multiple||Dn&&1===Dn.length)&&this.onFileSelect(st)}}onFocus(){this.focus=!0}onBlur(){this.focus=!1}formatSize(st){const kn=this.getTranslation(l.ws.FILE_SIZE_TYPES);if(0===st)return`0 ${kn[0]}`;const Fi=Math.floor(Math.log(st)/Math.log(1024));return`${(st/Math.pow(1024,Fi)).toFixed(3)} ${kn[Fi]}`}onBasicUploaderClick(){this.hasFiles()?this.upload():this.basicFileInput?.nativeElement.click()}onBasicKeydown(st){switch(st.code){case"Space":case"Enter":this.onBasicUploaderClick(),st.preventDefault()}}imageError(st){this.onImageError.emit(st)}getBlockableElement(){return this.el.nativeElement.children[0]}get chooseButtonLabel(){return this.chooseLabel||this.config.getTranslation(l.ws.CHOOSE)}get uploadButtonLabel(){return this.uploadLabel||this.config.getTranslation(l.ws.UPLOAD)}get cancelButtonLabel(){return this.cancelLabel||this.config.getTranslation(l.ws.CANCEL)}ngOnDestroy(){this.content&&this.content.nativeElement&&this.dragOverListener&&(this.dragOverListener(),this.dragOverListener=null),this.translationSubscription&&this.translationSubscription.unsubscribe()}static \u0275fac=function(Dn){return new(Dn||On)(s.Y36(e.K0),s.Y36(s.Lbi),s.Y36(s.Qsj),s.Y36(s.SBq),s.Y36(ye.H7),s.Y36(s.R0b),s.Y36(n.eN),s.Y36(s.sBO),s.Y36(l.b4))};static \u0275cmp=s.Xpm({type:On,selectors:[["p-fileUpload"]],contentQueries:function(Dn,Wt,kn){if(1&Dn&&s.Suo(kn,l.jx,4),2&Dn){let Fi;s.iGM(Fi=s.CRH())&&(Wt.templates=Fi)}},viewQuery:function(Dn,Wt){if(1&Dn&&(s.Gf(ve,5),s.Gf(ft,5),s.Gf(Dt,5)),2&Dn){let kn;s.iGM(kn=s.CRH())&&(Wt.advancedFileInput=kn.first),s.iGM(kn=s.CRH())&&(Wt.basicFileInput=kn.first),s.iGM(kn=s.CRH())&&(Wt.content=kn.first)}},hostAttrs:[1,"p-element"],inputs:{name:"name",url:"url",method:"method",multiple:"multiple",accept:"accept",disabled:"disabled",auto:"auto",withCredentials:"withCredentials",maxFileSize:"maxFileSize",invalidFileSizeMessageSummary:"invalidFileSizeMessageSummary",invalidFileSizeMessageDetail:"invalidFileSizeMessageDetail",invalidFileTypeMessageSummary:"invalidFileTypeMessageSummary",invalidFileTypeMessageDetail:"invalidFileTypeMessageDetail",invalidFileLimitMessageDetail:"invalidFileLimitMessageDetail",invalidFileLimitMessageSummary:"invalidFileLimitMessageSummary",style:"style",styleClass:"styleClass",previewWidth:"previewWidth",chooseLabel:"chooseLabel",uploadLabel:"uploadLabel",cancelLabel:"cancelLabel",chooseIcon:"chooseIcon",uploadIcon:"uploadIcon",cancelIcon:"cancelIcon",showUploadButton:"showUploadButton",showCancelButton:"showCancelButton",mode:"mode",headers:"headers",customUpload:"customUpload",fileLimit:"fileLimit",uploadStyleClass:"uploadStyleClass",cancelStyleClass:"cancelStyleClass",removeStyleClass:"removeStyleClass",chooseStyleClass:"chooseStyleClass",files:"files"},outputs:{onBeforeUpload:"onBeforeUpload",onSend:"onSend",onUpload:"onUpload",onError:"onError",onClear:"onClear",onRemove:"onRemove",onSelect:"onSelect",onProgress:"onProgress",uploadHandler:"uploadHandler",onImageError:"onImageError"},decls:2,vars:2,consts:[[3,"ngClass","ngStyle","class",4,"ngIf"],["class","p-fileupload p-fileupload-basic p-component",4,"ngIf"],[3,"ngClass","ngStyle"],[1,"p-fileupload-buttonbar"],["pRipple","","tabindex","0",1,"p-button","p-component","p-fileupload-choose",3,"ngClass","focus","blur","click","keydown.enter"],["type","file",3,"multiple","accept","disabled","change"],["advancedfileinput",""],[3,"ngClass","class",4,"ngIf"],[4,"ngIf"],[1,"p-button-label"],["type","button",3,"label","disabled","styleClass","onClick",4,"ngIf"],[4,"ngTemplateOutlet"],[1,"p-fileupload-content",3,"dragenter","dragleave","drop"],["content",""],[3,"value","showValue",4,"ngIf"],[3,"value","enableService"],["class","p-fileupload-files",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-button-icon p-button-icon-left",4,"ngIf"],[3,"styleClass"],[1,"p-button-icon","p-button-icon-left"],["type","button",3,"label","disabled","styleClass","onClick"],["class","p-button-icon p-button-icon-left",3,"ngClass",4,"ngIf"],[1,"p-button-icon","p-button-icon-left",3,"ngClass"],[3,"value","showValue"],[1,"p-fileupload-files"],["class","p-fileupload-row",4,"ngFor","ngForOf"],[1,"p-fileupload-row"],[3,"src","width","error",4,"ngIf"],[1,"p-fileupload-filename"],["type","button","pButton","",1,"p-button-icon-only",3,"disabled","click"],[3,"src","width","error"],["ngFor","",3,"ngForOf","ngForTemplate"],[1,"p-fileupload","p-fileupload-basic","p-component"],["tabindex","0","pRipple","",3,"ngClass","ngStyle","click","keydown"],[4,"ngIf","ngIfElse"],["chooseSection",""],["class","p-button-label",4,"ngIf"],["type","file",3,"accept","multiple","disabled","change","focus","blur",4,"ngIf"],["class","p-button-icon p-button-icon-left pi",3,"ngClass",4,"ngIf"],[1,"p-button-icon","p-button-icon-left","pi",3,"ngClass"],["class","p-button-icon p-button-icon-left pi",4,"ngIf"],[1,"p-button-icon","p-button-icon-left","pi"],["type","file",3,"accept","multiple","disabled","change","focus","blur"],["basicfileinput",""]],template:function(Dn,Wt){1&Dn&&s.YNc(0,Qt,18,35,"div",0)(1,Wi,8,17,"div",1),2&Dn&&(s.Q6J("ngIf","advanced"===Wt.mode),s.xp6(),s.Q6J("ngIf","basic"===Wt.mode))},dependencies:()=>[e.mk,e.sg,e.O5,e.tP,e.PC,i.Hq,i.zx,Pt,Ue,P.H,p.p,u,c.q],styles:["@layer primeng{.p-fileupload-content{position:relative}.p-fileupload-row{display:flex;align-items:center}.p-fileupload-row>div{flex:1 1 auto;width:25%}.p-fileupload-row>div:last-child{text-align:right}.p-fileupload-content .p-progressbar{width:100%;position:absolute;top:0;left:0}.p-button.p-fileupload-choose{position:relative;overflow:hidden}.p-button.p-fileupload-choose input[type=file],.p-fileupload-choose.p-fileupload-choose-selected input[type=file]{display:none}.p-fluid .p-fileupload .p-button{width:auto}.p-fileupload-filename{word-break:break-all}}\n"],encapsulation:2,changeDetection:0})}return On})(),Oi=(()=>{class On{static \u0275fac=function(Dn){return new(Dn||On)};static \u0275mod=s.oAB({type:On});static \u0275inj=s.cJS({imports:[e.ez,n.JF,l.m8,i.hJ,Oe,We,P.T,p.p,u,c.q,l.m8,i.hJ,Oe,We]})}return On})()},73362:(gt,X,a)=>{"use strict";a.d(X,{v:()=>l});var e=a(19212),n=a(84713),s=a(2332);let l=(()=>{class i extends n.s{pathId;ngOnInit(){this.pathId="url(#"+(0,s.Th)()+")"}static \u0275fac=(()=>{let p;return function(o){return(p||(p=e.n5z(i)))(o||i)}})();static \u0275cmp=e.Xpm({type:i,selectors:[["ArrowDownIcon"]],standalone:!0,features:[e.qOj,e.jDz],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(c,o){1&c&&(e.O4$(),e.TgZ(0,"svg",0)(1,"g"),e._UZ(2,"path",1),e.qZA(),e.TgZ(3,"defs")(4,"clipPath",2),e._UZ(5,"rect",3),e.qZA()()()),2&c&&(e.Tol(o.getClassNames()),e.uIk("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),e.xp6(),e.uIk("clip-path",o.pathId),e.xp6(3),e.Q6J("id",o.pathId))},encapsulation:2})}return i})()},32314:(gt,X,a)=>{"use strict";a.d(X,{H:()=>l});var e=a(19212),n=a(84713),s=a(2332);let l=(()=>{class i extends n.s{pathId;ngOnInit(){this.pathId="url(#"+(0,s.Th)()+")"}static \u0275fac=(()=>{let p;return function(o){return(p||(p=e.n5z(i)))(o||i)}})();static \u0275cmp=e.Xpm({type:i,selectors:[["ArrowUpIcon"]],standalone:!0,features:[e.qOj,e.jDz],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(c,o){1&c&&(e.O4$(),e.TgZ(0,"svg",0)(1,"g"),e._UZ(2,"path",1),e.qZA(),e.TgZ(3,"defs")(4,"clipPath",2),e._UZ(5,"rect",3),e.qZA()()()),2&c&&(e.Tol(o.getClassNames()),e.uIk("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),e.xp6(),e.uIk("clip-path",o.pathId),e.xp6(3),e.Q6J("id",o.pathId))},encapsulation:2})}return i})()},12591:(gt,X,a)=>{"use strict";a.d(X,{n:()=>s});var e=a(19212),n=a(84713);let s=(()=>{class l extends n.s{static \u0275fac=(()=>{let t;return function(c){return(t||(t=e.n5z(l)))(c||l)}})();static \u0275cmp=e.Xpm({type:l,selectors:[["CheckIcon"]],standalone:!0,features:[e.qOj,e.jDz],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(p,c){1&p&&(e.O4$(),e.TgZ(0,"svg",0),e._UZ(1,"path",1),e.qZA()),2&p&&(e.Tol(c.getClassNames()),e.uIk("aria-label",c.ariaLabel)("aria-hidden",c.ariaHidden)("role",c.role))},encapsulation:2})}return l})()},76005:(gt,X,a)=>{"use strict";a.d(X,{v:()=>s});var e=a(19212),n=a(84713);let s=(()=>{class l extends n.s{static \u0275fac=(()=>{let t;return function(c){return(t||(t=e.n5z(l)))(c||l)}})();static \u0275cmp=e.Xpm({type:l,selectors:[["ChevronDownIcon"]],standalone:!0,features:[e.qOj,e.jDz],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(p,c){1&p&&(e.O4$(),e.TgZ(0,"svg",0),e._UZ(1,"path",1),e.qZA()),2&p&&(e.Tol(c.getClassNames()),e.uIk("aria-label",c.ariaLabel)("aria-hidden",c.ariaHidden)("role",c.role))},encapsulation:2})}return l})()},44562:(gt,X,a)=>{"use strict";a.d(X,{X:()=>s});var e=a(19212),n=a(84713);let s=(()=>{class l extends n.s{static \u0275fac=(()=>{let t;return function(c){return(t||(t=e.n5z(l)))(c||l)}})();static \u0275cmp=e.Xpm({type:l,selectors:[["ChevronRightIcon"]],standalone:!0,features:[e.qOj,e.jDz],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(p,c){1&p&&(e.O4$(),e.TgZ(0,"svg",0),e._UZ(1,"path",1),e.qZA()),2&p&&(e.Tol(c.getClassNames()),e.uIk("aria-label",c.ariaLabel)("aria-hidden",c.ariaHidden)("role",c.role))},encapsulation:2})}return l})()},3983:(gt,X,a)=>{"use strict";a.d(X,{p:()=>l});var e=a(19212),n=a(84713),s=a(2332);let l=(()=>{class i extends n.s{pathId;ngOnInit(){this.pathId="url(#"+(0,s.Th)()+")"}static \u0275fac=(()=>{let p;return function(o){return(p||(p=e.n5z(i)))(o||i)}})();static \u0275cmp=e.Xpm({type:i,selectors:[["PlusIcon"]],standalone:!0,features:[e.qOj,e.jDz],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(c,o){1&c&&(e.O4$(),e.TgZ(0,"svg",0)(1,"g"),e._UZ(2,"path",1),e.qZA(),e.TgZ(3,"defs")(4,"clipPath",2),e._UZ(5,"rect",3),e.qZA()()()),2&c&&(e.Tol(o.getClassNames()),e.uIk("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),e.xp6(),e.uIk("clip-path",o.pathId),e.xp6(3),e.Q6J("id",o.pathId))},encapsulation:2})}return i})()},33833:(gt,X,a)=>{"use strict";a.d(X,{V:()=>l});var e=a(19212),n=a(84713),s=a(2332);let l=(()=>{class i extends n.s{pathId;ngOnInit(){this.pathId="url(#"+(0,s.Th)()+")"}static \u0275fac=(()=>{let p;return function(o){return(p||(p=e.n5z(i)))(o||i)}})();static \u0275cmp=e.Xpm({type:i,selectors:[["SortAltIcon"]],standalone:!0,features:[e.qOj,e.jDz],decls:9,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.64515 3.61291C5.47353 3.61291 5.30192 3.54968 5.16644 3.4142L3.38708 1.63484L1.60773 3.4142C1.34579 3.67613 0.912244 3.67613 0.650309 3.4142C0.388374 3.15226 0.388374 2.71871 0.650309 2.45678L2.90837 0.198712C3.17031 -0.0632236 3.60386 -0.0632236 3.86579 0.198712L6.12386 2.45678C6.38579 2.71871 6.38579 3.15226 6.12386 3.4142C5.98837 3.54968 5.81676 3.61291 5.64515 3.61291Z","fill","currentColor"],["d","M3.38714 14C3.01681 14 2.70972 13.6929 2.70972 13.3226V0.677419C2.70972 0.307097 3.01681 0 3.38714 0C3.75746 0 4.06456 0.307097 4.06456 0.677419V13.3226C4.06456 13.6929 3.75746 14 3.38714 14Z","fill","currentColor"],["d","M10.6129 14C10.4413 14 10.2697 13.9368 10.1342 13.8013L7.87611 11.5432C7.61418 11.2813 7.61418 10.8477 7.87611 10.5858C8.13805 10.3239 8.5716 10.3239 8.83353 10.5858L10.6129 12.3652L12.3922 10.5858C12.6542 10.3239 13.0877 10.3239 13.3497 10.5858C13.6116 10.8477 13.6116 11.2813 13.3497 11.5432L11.0916 13.8013C10.9561 13.9368 10.7845 14 10.6129 14Z","fill","currentColor"],["d","M10.6129 14C10.2426 14 9.93552 13.6929 9.93552 13.3226V0.677419C9.93552 0.307097 10.2426 0 10.6129 0C10.9833 0 11.2904 0.307097 11.2904 0.677419V13.3226C11.2904 13.6929 10.9832 14 10.6129 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(c,o){1&c&&(e.O4$(),e.TgZ(0,"svg",0)(1,"g"),e._UZ(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4),e.qZA(),e.TgZ(6,"defs")(7,"clipPath",5),e._UZ(8,"rect",6),e.qZA()()()),2&c&&(e.Tol(o.getClassNames()),e.uIk("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),e.xp6(),e.uIk("clip-path",o.pathId),e.xp6(6),e.Q6J("id",o.pathId))},encapsulation:2})}return i})()},76392:(gt,X,a)=>{"use strict";a.d(X,{W:()=>l});var e=a(19212),n=a(84713),s=a(2332);let l=(()=>{class i extends n.s{pathId;ngOnInit(){this.pathId="url(#"+(0,s.Th)()+")"}static \u0275fac=(()=>{let p;return function(o){return(p||(p=e.n5z(i)))(o||i)}})();static \u0275cmp=e.Xpm({type:i,selectors:[["SortAmountDownIcon"]],standalone:!0,features:[e.qOj,e.jDz],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.93953 10.5858L3.83759 11.6877V0.677419C3.83759 0.307097 3.53049 0 3.16017 0C2.78985 0 2.48275 0.307097 2.48275 0.677419V11.6877L1.38082 10.5858C1.11888 10.3239 0.685331 10.3239 0.423396 10.5858C0.16146 10.8477 0.16146 11.2813 0.423396 11.5432L2.68146 13.8013C2.74469 13.8645 2.81694 13.9097 2.89823 13.9458C2.97952 13.9819 3.06985 14 3.16017 14C3.25049 14 3.33178 13.9819 3.42211 13.9458C3.5034 13.9097 3.57565 13.8645 3.63888 13.8013L5.89694 11.5432C6.15888 11.2813 6.15888 10.8477 5.89694 10.5858C5.63501 10.3239 5.20146 10.3239 4.93953 10.5858ZM13.0957 0H7.22468C6.85436 0 6.54726 0.307097 6.54726 0.677419C6.54726 1.04774 6.85436 1.35484 7.22468 1.35484H13.0957C13.466 1.35484 13.7731 1.04774 13.7731 0.677419C13.7731 0.307097 13.466 0 13.0957 0ZM7.22468 5.41935H9.48275C9.85307 5.41935 10.1602 5.72645 10.1602 6.09677C10.1602 6.4671 9.85307 6.77419 9.48275 6.77419H7.22468C6.85436 6.77419 6.54726 6.4671 6.54726 6.09677C6.54726 5.72645 6.85436 5.41935 7.22468 5.41935ZM7.6763 8.12903H7.22468C6.85436 8.12903 6.54726 8.43613 6.54726 8.80645C6.54726 9.17677 6.85436 9.48387 7.22468 9.48387H7.6763C8.04662 9.48387 8.35372 9.17677 8.35372 8.80645C8.35372 8.43613 8.04662 8.12903 7.6763 8.12903ZM7.22468 2.70968H11.2892C11.6595 2.70968 11.9666 3.01677 11.9666 3.3871C11.9666 3.75742 11.6595 4.06452 11.2892 4.06452H7.22468C6.85436 4.06452 6.54726 3.75742 6.54726 3.3871C6.54726 3.01677 6.85436 2.70968 7.22468 2.70968Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(c,o){1&c&&(e.O4$(),e.TgZ(0,"svg",0)(1,"g"),e._UZ(2,"path",1),e.qZA(),e.TgZ(3,"defs")(4,"clipPath",2),e._UZ(5,"rect",3),e.qZA()()()),2&c&&(e.Tol(o.getClassNames()),e.uIk("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),e.xp6(),e.uIk("clip-path",o.pathId),e.xp6(3),e.Q6J("id",o.pathId))},encapsulation:2})}return i})()},87273:(gt,X,a)=>{"use strict";a.d(X,{m:()=>l});var e=a(19212),n=a(84713),s=a(2332);let l=(()=>{class i extends n.s{pathId;ngOnInit(){this.pathId="url(#"+(0,s.Th)()+")"}static \u0275fac=(()=>{let p;return function(o){return(p||(p=e.n5z(i)))(o||i)}})();static \u0275cmp=e.Xpm({type:i,selectors:[["SortAmountUpAltIcon"]],standalone:!0,features:[e.qOj,e.jDz],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M3.63435 0.19871C3.57113 0.135484 3.49887 0.0903226 3.41758 0.0541935C3.255 -0.0180645 3.06532 -0.0180645 2.90274 0.0541935C2.82145 0.0903226 2.74919 0.135484 2.68597 0.19871L0.427901 2.45677C0.165965 2.71871 0.165965 3.15226 0.427901 3.41419C0.689836 3.67613 1.12338 3.67613 1.38532 3.41419L2.48726 2.31226V13.3226C2.48726 13.6929 2.79435 14 3.16467 14C3.535 14 3.84209 13.6929 3.84209 13.3226V2.31226L4.94403 3.41419C5.07951 3.54968 5.25113 3.6129 5.42274 3.6129C5.59435 3.6129 5.76597 3.54968 5.90145 3.41419C6.16338 3.15226 6.16338 2.71871 5.90145 2.45677L3.64338 0.19871H3.63435ZM13.7685 13.3226C13.7685 12.9523 13.4615 12.6452 13.0911 12.6452H7.22016C6.84984 12.6452 6.54274 12.9523 6.54274 13.3226C6.54274 13.6929 6.84984 14 7.22016 14H13.0911C13.4615 14 13.7685 13.6929 13.7685 13.3226ZM7.22016 8.58064C6.84984 8.58064 6.54274 8.27355 6.54274 7.90323C6.54274 7.5329 6.84984 7.22581 7.22016 7.22581H9.47823C9.84855 7.22581 10.1556 7.5329 10.1556 7.90323C10.1556 8.27355 9.84855 8.58064 9.47823 8.58064H7.22016ZM7.22016 5.87097H7.67177C8.0421 5.87097 8.34919 5.56387 8.34919 5.19355C8.34919 4.82323 8.0421 4.51613 7.67177 4.51613H7.22016C6.84984 4.51613 6.54274 4.82323 6.54274 5.19355C6.54274 5.56387 6.84984 5.87097 7.22016 5.87097ZM11.2847 11.2903H7.22016C6.84984 11.2903 6.54274 10.9832 6.54274 10.6129C6.54274 10.2426 6.84984 9.93548 7.22016 9.93548H11.2847C11.655 9.93548 11.9621 10.2426 11.9621 10.6129C11.9621 10.9832 11.655 11.2903 11.2847 11.2903Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(c,o){1&c&&(e.O4$(),e.TgZ(0,"svg",0)(1,"g"),e._UZ(2,"path",1),e.qZA(),e.TgZ(3,"defs")(4,"clipPath",2),e._UZ(5,"rect",3),e.qZA()()()),2&c&&(e.Tol(o.getClassNames()),e.uIk("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),e.xp6(),e.uIk("clip-path",o.pathId),e.xp6(3),e.Q6J("id",o.pathId))},encapsulation:2})}return i})()},78717:(gt,X,a)=>{"use strict";a.d(X,{L:()=>l});var e=a(19212),n=a(84713),s=a(2332);let l=(()=>{class i extends n.s{pathId;ngOnInit(){this.pathId="url(#"+(0,s.Th)()+")"}static \u0275fac=(()=>{let p;return function(o){return(p||(p=e.n5z(i)))(o||i)}})();static \u0275cmp=e.Xpm({type:i,selectors:[["SpinnerIcon"]],standalone:!0,features:[e.qOj,e.jDz],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(c,o){1&c&&(e.O4$(),e.TgZ(0,"svg",0)(1,"g"),e._UZ(2,"path",1),e.qZA(),e.TgZ(3,"defs")(4,"clipPath",2),e._UZ(5,"rect",3),e.qZA()()()),2&c&&(e.Tol(o.getClassNames()),e.uIk("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),e.xp6(),e.uIk("clip-path",o.pathId),e.xp6(3),e.Q6J("id",o.pathId))},encapsulation:2})}return i})()},77778:(gt,X,a)=>{"use strict";a.d(X,{q:()=>s});var e=a(19212),n=a(84713);let s=(()=>{class l extends n.s{static \u0275fac=(()=>{let t;return function(c){return(t||(t=e.n5z(l)))(c||l)}})();static \u0275cmp=e.Xpm({type:l,selectors:[["TimesIcon"]],standalone:!0,features:[e.qOj,e.jDz],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(p,c){1&p&&(e.O4$(),e.TgZ(0,"svg",0),e._UZ(1,"path",1),e.qZA()),2&p&&(e.Tol(c.getClassNames()),e.uIk("aria-label",c.ariaLabel)("aria-hidden",c.ariaHidden)("role",c.role))},encapsulation:2})}return l})()},59653:(gt,X,a)=>{"use strict";a.d(X,{Rn:()=>Z,L$:()=>Pt});var e=a(96814),n=a(19212),s=a(56223),l=a(85219),i=a(40707),t=a(82076),p=a(84713);let c=(()=>{class Oe extends p.s{static \u0275fac=(()=>{let ve;return function(Dt){return(ve||(ve=n.n5z(Oe)))(Dt||Oe)}})();static \u0275cmp=n.Xpm({type:Oe,selectors:[["AngleDownIcon"]],standalone:!0,features:[n.qOj,n.jDz],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z","fill","currentColor"]],template:function(ft,Dt){1&ft&&(n.O4$(),n.TgZ(0,"svg",0),n._UZ(1,"path",1),n.qZA()),2&ft&&(n.Tol(Dt.getClassNames()),n.uIk("aria-label",Dt.ariaLabel)("aria-hidden",Dt.ariaHidden)("role",Dt.role))},encapsulation:2})}return Oe})(),o=(()=>{class Oe extends p.s{static \u0275fac=(()=>{let ve;return function(Dt){return(ve||(ve=n.n5z(Oe)))(Dt||Oe)}})();static \u0275cmp=n.Xpm({type:Oe,selectors:[["AngleUpIcon"]],standalone:!0,features:[n.qOj,n.jDz],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z","fill","currentColor"]],template:function(ft,Dt){1&ft&&(n.O4$(),n.TgZ(0,"svg",0),n._UZ(1,"path",1),n.qZA()),2&ft&&(n.Tol(Dt.getClassNames()),n.uIk("aria-label",Dt.ariaLabel)("aria-hidden",Dt.ariaHidden)("role",Dt.role))},encapsulation:2})}return Oe})();var x=a(77778),u=a(53714);const m=["input"];function b(Oe,ye){if(1&Oe){const ve=n.EpF();n.TgZ(0,"TimesIcon",8),n.NdJ("click",function(){n.CHM(ve);const Dt=n.oxw(2);return n.KtG(Dt.clear())}),n.qZA()}2&Oe&&(n.Q6J("ngClass","p-inputnumber-clear-icon"),n.uIk("data-pc-section","clearIcon"))}function I(Oe,ye){}function H(Oe,ye){1&Oe&&n.YNc(0,I,0,0,"ng-template")}function O(Oe,ye){if(1&Oe){const ve=n.EpF();n.TgZ(0,"span",9),n.NdJ("click",function(){n.CHM(ve);const Dt=n.oxw(2);return n.KtG(Dt.clear())}),n.YNc(1,H,1,0,null,10),n.qZA()}if(2&Oe){const ve=n.oxw(2);n.uIk("data-pc-section","clearIcon"),n.xp6(),n.Q6J("ngTemplateOutlet",ve.clearIconTemplate)}}function P(Oe,ye){if(1&Oe&&(n.ynx(0),n.YNc(1,b,1,2,"TimesIcon",6)(2,O,2,2,"span",7),n.BQk()),2&Oe){const ve=n.oxw();n.xp6(),n.Q6J("ngIf",!ve.clearIconTemplate),n.xp6(),n.Q6J("ngIf",ve.clearIconTemplate)}}function G(Oe,ye){if(1&Oe&&n._UZ(0,"span",14),2&Oe){const ve=n.oxw(2);n.Q6J("ngClass",ve.incrementButtonIcon),n.uIk("data-pc-section","incrementbuttonicon")}}function B(Oe,ye){1&Oe&&n._UZ(0,"AngleUpIcon"),2&Oe&&n.uIk("data-pc-section","incrementbuttonicon")}function ae(Oe,ye){}function J(Oe,ye){1&Oe&&n.YNc(0,ae,0,0,"ng-template")}function q(Oe,ye){if(1&Oe&&(n.ynx(0),n.YNc(1,B,1,1,"AngleUpIcon",3)(2,J,1,0,null,10),n.BQk()),2&Oe){const ve=n.oxw(2);n.xp6(),n.Q6J("ngIf",!ve.incrementButtonIconTemplate),n.xp6(),n.Q6J("ngTemplateOutlet",ve.incrementButtonIconTemplate)}}function j(Oe,ye){if(1&Oe&&n._UZ(0,"span",14),2&Oe){const ve=n.oxw(2);n.Q6J("ngClass",ve.decrementButtonIcon),n.uIk("data-pc-section","decrementbuttonicon")}}function Y(Oe,ye){1&Oe&&n._UZ(0,"AngleDownIcon"),2&Oe&&n.uIk("data-pc-section","decrementbuttonicon")}function K(Oe,ye){}function ne(Oe,ye){1&Oe&&n.YNc(0,K,0,0,"ng-template")}function ee(Oe,ye){if(1&Oe&&(n.ynx(0),n.YNc(1,Y,1,1,"AngleDownIcon",3)(2,ne,1,0,null,10),n.BQk()),2&Oe){const ve=n.oxw(2);n.xp6(),n.Q6J("ngIf",!ve.decrementButtonIconTemplate),n.xp6(),n.Q6J("ngTemplateOutlet",ve.decrementButtonIconTemplate)}}const $=()=>({"p-inputnumber-button p-inputnumber-button-up":!0}),ue=()=>({"p-inputnumber-button p-inputnumber-button-down":!0});function ge(Oe,ye){if(1&Oe){const ve=n.EpF();n.TgZ(0,"span",11)(1,"button",12),n.NdJ("mousedown",function(Dt){n.CHM(ve);const Rn=n.oxw();return n.KtG(Rn.onUpButtonMouseDown(Dt))})("mouseup",function(){n.CHM(ve);const Dt=n.oxw();return n.KtG(Dt.onUpButtonMouseUp())})("mouseleave",function(){n.CHM(ve);const Dt=n.oxw();return n.KtG(Dt.onUpButtonMouseLeave())})("keydown",function(Dt){n.CHM(ve);const Rn=n.oxw();return n.KtG(Rn.onUpButtonKeyDown(Dt))})("keyup",function(){n.CHM(ve);const Dt=n.oxw();return n.KtG(Dt.onUpButtonKeyUp())}),n.YNc(2,G,1,2,"span",13)(3,q,3,2,"ng-container",3),n.qZA(),n.TgZ(4,"button",12),n.NdJ("mousedown",function(Dt){n.CHM(ve);const Rn=n.oxw();return n.KtG(Rn.onDownButtonMouseDown(Dt))})("mouseup",function(){n.CHM(ve);const Dt=n.oxw();return n.KtG(Dt.onDownButtonMouseUp())})("mouseleave",function(){n.CHM(ve);const Dt=n.oxw();return n.KtG(Dt.onDownButtonMouseLeave())})("keydown",function(Dt){n.CHM(ve);const Rn=n.oxw();return n.KtG(Rn.onDownButtonKeyDown(Dt))})("keyup",function(){n.CHM(ve);const Dt=n.oxw();return n.KtG(Dt.onDownButtonKeyUp())}),n.YNc(5,j,1,2,"span",13)(6,ee,3,2,"ng-container",3),n.qZA()()}if(2&Oe){const ve=n.oxw();n.uIk("data-pc-section","buttonGroup"),n.xp6(),n.Tol(ve.incrementButtonClass),n.Q6J("ngClass",n.DdM(17,$))("disabled",ve.disabled),n.uIk("aria-hidden",!0)("data-pc-section","incrementbutton"),n.xp6(),n.Q6J("ngIf",ve.incrementButtonIcon),n.xp6(),n.Q6J("ngIf",!ve.incrementButtonIcon),n.xp6(),n.Tol(ve.decrementButtonClass),n.Q6J("ngClass",n.DdM(18,ue))("disabled",ve.disabled),n.uIk("aria-hidden",!0)("data-pc-section",ve.decrementbutton),n.xp6(),n.Q6J("ngIf",ve.decrementButtonIcon),n.xp6(),n.Q6J("ngIf",!ve.decrementButtonIcon)}}function Ke(Oe,ye){if(1&Oe&&n._UZ(0,"span",14),2&Oe){const ve=n.oxw(2);n.Q6J("ngClass",ve.incrementButtonIcon),n.uIk("data-pc-section","incrementbuttonicon")}}function at(Oe,ye){1&Oe&&n._UZ(0,"AngleUpIcon"),2&Oe&&n.uIk("data-pc-section","incrementbuttonicon")}function Le(Oe,ye){}function R(Oe,ye){1&Oe&&n.YNc(0,Le,0,0,"ng-template")}function Te(Oe,ye){if(1&Oe&&(n.ynx(0),n.YNc(1,at,1,1,"AngleUpIcon",3)(2,R,1,0,null,10),n.BQk()),2&Oe){const ve=n.oxw(2);n.xp6(),n.Q6J("ngIf",!ve.incrementButtonIconTemplate),n.xp6(),n.Q6J("ngTemplateOutlet",ve.incrementButtonIconTemplate)}}function me(Oe,ye){if(1&Oe){const ve=n.EpF();n.TgZ(0,"button",12),n.NdJ("mousedown",function(Dt){n.CHM(ve);const Rn=n.oxw();return n.KtG(Rn.onUpButtonMouseDown(Dt))})("mouseup",function(){n.CHM(ve);const Dt=n.oxw();return n.KtG(Dt.onUpButtonMouseUp())})("mouseleave",function(){n.CHM(ve);const Dt=n.oxw();return n.KtG(Dt.onUpButtonMouseLeave())})("keydown",function(Dt){n.CHM(ve);const Rn=n.oxw();return n.KtG(Rn.onUpButtonKeyDown(Dt))})("keyup",function(){n.CHM(ve);const Dt=n.oxw();return n.KtG(Dt.onUpButtonKeyUp())}),n.YNc(1,Ke,1,2,"span",13)(2,Te,3,2,"ng-container",3),n.qZA()}if(2&Oe){const ve=n.oxw();n.Tol(ve.incrementButtonClass),n.Q6J("ngClass",n.DdM(8,$))("disabled",ve.disabled),n.uIk("aria-hidden",!0)("data-pc-section","incrementbutton"),n.xp6(),n.Q6J("ngIf",ve.incrementButtonIcon),n.xp6(),n.Q6J("ngIf",!ve.incrementButtonIcon)}}function Se(Oe,ye){if(1&Oe&&n._UZ(0,"span",14),2&Oe){const ve=n.oxw(2);n.Q6J("ngClass",ve.decrementButtonIcon),n.uIk("data-pc-section","decrementbuttonicon")}}function Ue(Oe,ye){1&Oe&&n._UZ(0,"AngleDownIcon"),2&Oe&&n.uIk("data-pc-section","decrementbuttonicon")}function We(Oe,ye){}function et(Oe,ye){1&Oe&&n.YNc(0,We,0,0,"ng-template")}function Et(Oe,ye){if(1&Oe&&(n.ynx(0),n.YNc(1,Ue,1,1,"AngleDownIcon",3)(2,et,1,0,null,10),n.BQk()),2&Oe){const ve=n.oxw(2);n.xp6(),n.Q6J("ngIf",!ve.decrementButtonIconTemplate),n.xp6(),n.Q6J("ngTemplateOutlet",ve.decrementButtonIconTemplate)}}function lt(Oe,ye){if(1&Oe){const ve=n.EpF();n.TgZ(0,"button",12),n.NdJ("mousedown",function(Dt){n.CHM(ve);const Rn=n.oxw();return n.KtG(Rn.onDownButtonMouseDown(Dt))})("mouseup",function(){n.CHM(ve);const Dt=n.oxw();return n.KtG(Dt.onDownButtonMouseUp())})("mouseleave",function(){n.CHM(ve);const Dt=n.oxw();return n.KtG(Dt.onDownButtonMouseLeave())})("keydown",function(Dt){n.CHM(ve);const Rn=n.oxw();return n.KtG(Rn.onDownButtonKeyDown(Dt))})("keyup",function(){n.CHM(ve);const Dt=n.oxw();return n.KtG(Dt.onDownButtonKeyUp())}),n.YNc(1,Se,1,2,"span",13)(2,Et,3,2,"ng-container",3),n.qZA()}if(2&Oe){const ve=n.oxw();n.Tol(ve.decrementButtonClass),n.Q6J("ngClass",n.DdM(8,ue))("disabled",ve.disabled),n.uIk("aria-hidden",!0)("data-pc-section","decrementbutton"),n.xp6(),n.Q6J("ngIf",ve.decrementButtonIcon),n.xp6(),n.Q6J("ngIf",!ve.decrementButtonIcon)}}const Vt=(Oe,ye,ve)=>({"p-inputnumber p-component":!0,"p-inputnumber-buttons-stacked":Oe,"p-inputnumber-buttons-horizontal":ye,"p-inputnumber-buttons-vertical":ve}),r={provide:s.JU,useExisting:(0,n.Gpc)(()=>Z),multi:!0};let Z=(()=>{class Oe{document;el;cd;injector;showButtons=!1;format=!0;buttonLayout="stacked";inputId;styleClass;style;placeholder;size;maxlength;tabindex;title;ariaLabelledBy;ariaLabel;ariaRequired;name;required;autocomplete;min;max;incrementButtonClass;decrementButtonClass;incrementButtonIcon;decrementButtonIcon;readonly=!1;step=1;allowEmpty=!0;locale;localeMatcher;mode="decimal";currency;currencyDisplay;useGrouping=!0;minFractionDigits;maxFractionDigits;prefix;suffix;inputStyle;inputStyleClass;showClear=!1;get disabled(){return this._disabled}set disabled(ve){ve&&(this.focused=!1),this._disabled=ve,this.timer&&this.clearTimer()}onInput=new n.vpe;onFocus=new n.vpe;onBlur=new n.vpe;onKeyDown=new n.vpe;onClear=new n.vpe;input;templates;clearIconTemplate;incrementButtonIconTemplate;decrementButtonIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};focused;initialized;groupChar="";prefixChar="";suffixChar="";isSpecialChar;timer;lastValue;_numeral;numberFormat;_decimal;_decimalChar;_group;_minusSign;_currency;_prefix;_suffix;_index;_disabled;ngControl=null;constructor(ve,ft,Dt,Rn){this.document=ve,this.el=ft,this.cd=Dt,this.injector=Rn}ngOnChanges(ve){["locale","localeMatcher","mode","currency","currencyDisplay","useGrouping","minFractionDigits","maxFractionDigits","prefix","suffix"].some(Dt=>!!ve[Dt])&&this.updateConstructParser()}ngAfterContentInit(){this.templates.forEach(ve=>{switch(ve.getType()){case"clearicon":this.clearIconTemplate=ve.template;break;case"incrementbuttonicon":this.incrementButtonIconTemplate=ve.template;break;case"decrementbuttonicon":this.decrementButtonIconTemplate=ve.template}})}ngOnInit(){this.ngControl=this.injector.get(s.a5,null,{optional:!0}),this.constructParser(),this.initialized=!0}getOptions(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits,maximumFractionDigits:this.maxFractionDigits}}constructParser(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());const ve=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),ft=new Map(ve.map((Dt,Rn)=>[Dt,Rn]));this._numeral=new RegExp(`[${ve.join("")}]`,"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._decimalChar=this.getDecimalChar(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=Dt=>ft.get(Dt)}updateConstructParser(){this.initialized&&this.constructParser()}escapeRegExp(ve){return ve.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}getDecimalExpression(){const ve=this.getDecimalChar();return new RegExp(`[${ve}]`,"g")}getDecimalChar(){return new Intl.NumberFormat(this.locale,{...this.getOptions(),useGrouping:!1}).format(1.1).replace(this._currency,"").trim().replace(this._numeral,"")}getGroupingExpression(){const ve=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=ve.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp(`[${this.groupChar}]`,"g")}getMinusSignExpression(){const ve=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp(`[${ve.format(-1).trim().replace(this._numeral,"")}]`,"g")}getCurrencyExpression(){if(this.currency){const ve=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});return new RegExp(`[${ve.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,"")}]`,"g")}return new RegExp("[]","g")}getPrefixExpression(){if(this.prefix)this.prefixChar=this.prefix;else{const ve=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=ve.format(1).split("1")[0]}return new RegExp(`${this.escapeRegExp(this.prefixChar||"")}`,"g")}getSuffixExpression(){if(this.suffix)this.suffixChar=this.suffix;else{const ve=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});this.suffixChar=ve.format(1).split("1")[1]}return new RegExp(`${this.escapeRegExp(this.suffixChar||"")}`,"g")}formatValue(ve){if(null!=ve){if("-"===ve)return ve;if(this.format){let Dt=new Intl.NumberFormat(this.locale,this.getOptions()).format(ve);return this.prefix&&(Dt=this.prefix+Dt),this.suffix&&(Dt+=this.suffix),Dt}return ve.toString()}return""}parseValue(ve){let ft=ve.replace(this._suffix,"").replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(ft){if("-"===ft)return ft;let Dt=+ft;return isNaN(Dt)?null:Dt}return null}repeat(ve,ft,Dt){if(this.readonly)return;let Rn=ft||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(ve,40,Dt)},Rn),this.spin(ve,Dt)}spin(ve,ft){let Dt=this.step*ft,Rn=this.parseValue(this.input?.nativeElement.value)||0,ti=this.validateValue(Rn+Dt);this.maxlength&&this.maxlength<this.formatValue(ti).length||(this.updateInput(ti,null,"spin",null),this.updateModel(ve,ti),this.handleOnInput(ve,Rn,ti))}clear(){this.value=null,this.onModelChange(this.value),this.onClear.emit()}onUpButtonMouseDown(ve){2!==ve.button?this.disabled||(this.input?.nativeElement.focus(),this.repeat(ve,null,1),ve.preventDefault()):this.clearTimer()}onUpButtonMouseUp(){this.disabled||this.clearTimer()}onUpButtonMouseLeave(){this.disabled||this.clearTimer()}onUpButtonKeyDown(ve){(32===ve.keyCode||13===ve.keyCode)&&this.repeat(ve,null,1)}onUpButtonKeyUp(){this.disabled||this.clearTimer()}onDownButtonMouseDown(ve){2!==ve.button?this.disabled||(this.input?.nativeElement.focus(),this.repeat(ve,null,-1),ve.preventDefault()):this.clearTimer()}onDownButtonMouseUp(){this.disabled||this.clearTimer()}onDownButtonMouseLeave(){this.disabled||this.clearTimer()}onDownButtonKeyUp(){this.disabled||this.clearTimer()}onDownButtonKeyDown(ve){(32===ve.keyCode||13===ve.keyCode)&&this.repeat(ve,null,-1)}onUserInput(ve){this.readonly||(this.isSpecialChar&&(ve.target.value=this.lastValue),this.isSpecialChar=!1)}onInputKeyDown(ve){if(this.readonly)return;if(this.lastValue=ve.target.value,ve.shiftKey||ve.altKey)return void(this.isSpecialChar=!0);let ft=ve.target.selectionStart,Dt=ve.target.selectionEnd,Rn=ve.target.value,ti=null;switch(ve.altKey&&ve.preventDefault(),ve.code){case"ArrowUp":this.spin(ve,1),ve.preventDefault();break;case"ArrowDown":this.spin(ve,-1),ve.preventDefault();break;case"ArrowLeft":for(let Xt=ft;Xt<=Rn.length;Xt++)if(this.isNumeralChar(Rn.charAt(0===Xt?0:Xt-1))){this.input.nativeElement.setSelectionRange(Xt,Xt);break}break;case"ArrowRight":for(let Xt=Dt;Xt>=0;Xt--)if(this.isNumeralChar(Rn.charAt(Xt))){this.input.nativeElement.setSelectionRange(Xt,Xt);break}break;case"Tab":case"Enter":ti=this.validateValue(this.parseValue(this.input.nativeElement.value)),this.input.nativeElement.value=this.formatValue(ti),this.input.nativeElement.setAttribute("aria-valuenow",ti),this.updateModel(ve,ti);break;case"Backspace":if(ve.preventDefault(),ft===Dt){const Xt=Rn.charAt(ft-1),{decimalCharIndex:Je,decimalCharIndexWithoutPrefix:dt}=this.getDecimalCharIndexes(Rn);if(this.isNumeralChar(Xt)){const Ie=this.getDecimalLength(Rn);if(this._group.test(Xt))this._group.lastIndex=0,ti=Rn.slice(0,ft-2)+Rn.slice(ft-1);else if(this._decimal.test(Xt))this._decimal.lastIndex=0,Ie?this.input?.nativeElement.setSelectionRange(ft-1,ft-1):ti=Rn.slice(0,ft-1)+Rn.slice(ft);else if(Je>0&&ft>Je){const ot=this.isDecimalMode()&&(this.minFractionDigits||0)<Ie?"":"0";ti=Rn.slice(0,ft-1)+ot+Rn.slice(ft)}else 1===dt?(ti=Rn.slice(0,ft-1)+"0"+Rn.slice(ft),ti=this.parseValue(ti)>0?ti:""):ti=Rn.slice(0,ft-1)+Rn.slice(ft)}else"currency"===this.mode&&-1!=Xt.search(this._currency)&&(ti=Rn.slice(1));this.updateValue(ve,ti,null,"delete-single")}else ti=this.deleteRange(Rn,ft,Dt),this.updateValue(ve,ti,null,"delete-range");break;case"Delete":if(ve.preventDefault(),ft===Dt){const Xt=Rn.charAt(ft),{decimalCharIndex:Je,decimalCharIndexWithoutPrefix:dt}=this.getDecimalCharIndexes(Rn);if(this.isNumeralChar(Xt)){const Ie=this.getDecimalLength(Rn);if(this._group.test(Xt))this._group.lastIndex=0,ti=Rn.slice(0,ft)+Rn.slice(ft+2);else if(this._decimal.test(Xt))this._decimal.lastIndex=0,Ie?this.input?.nativeElement.setSelectionRange(ft+1,ft+1):ti=Rn.slice(0,ft)+Rn.slice(ft+1);else if(Je>0&&ft>Je){const ot=this.isDecimalMode()&&(this.minFractionDigits||0)<Ie?"":"0";ti=Rn.slice(0,ft)+ot+Rn.slice(ft+1)}else 1===dt?(ti=Rn.slice(0,ft)+"0"+Rn.slice(ft+1),ti=this.parseValue(ti)>0?ti:""):ti=Rn.slice(0,ft)+Rn.slice(ft+1)}this.updateValue(ve,ti,null,"delete-back-single")}else ti=this.deleteRange(Rn,ft,Dt),this.updateValue(ve,ti,null,"delete-range");break;case"Home":this.min&&(this.updateModel(ve,this.min),ve.preventDefault());break;case"End":this.max&&(this.updateModel(ve,this.max),ve.preventDefault())}this.onKeyDown.emit(ve)}onInputKeyPress(ve){if(this.readonly)return;let ft=ve.which||ve.keyCode,Dt=String.fromCharCode(ft),Rn=this.isDecimalSign(Dt);const ti=this.isMinusSign(Dt);13!=ft&&ve.preventDefault(),!Rn&&"NumpadDecimal"===ve.code&&(Rn=!0,Dt=this._decimalChar,ft=Dt.charCodeAt(0));const Xt=this.parseValue(this.input.nativeElement.value+Dt),Je=null!=Xt?Xt.toString():"";this.maxlength&&Je.length>this.maxlength||(48<=ft&&ft<=57||ti||Rn)&&this.insert(ve,Dt,{isDecimalSign:Rn,isMinusSign:ti})}onPaste(ve){if(!this.disabled&&!this.readonly){ve.preventDefault();let ft=(ve.clipboardData||this.document.defaultView.clipboardData).getData("Text");if(ft){this.maxlength&&(ft=ft.toString().substring(0,this.maxlength));let Dt=this.parseValue(ft);null!=Dt&&this.insert(ve,Dt.toString())}}}allowMinusSign(){return null==this.min||this.min<0}isMinusSign(ve){return!(!this._minusSign.test(ve)&&"-"!==ve||(this._minusSign.lastIndex=0,0))}isDecimalSign(ve){return!!this._decimal.test(ve)&&(this._decimal.lastIndex=0,!0)}isDecimalMode(){return"decimal"===this.mode}getDecimalCharIndexes(ve){let ft=ve.search(this._decimal);this._decimal.lastIndex=0;const Rn=ve.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:ft,decimalCharIndexWithoutPrefix:Rn}}getCharIndexes(ve){const ft=ve.search(this._decimal);this._decimal.lastIndex=0;const Dt=ve.search(this._minusSign);this._minusSign.lastIndex=0;const Rn=ve.search(this._suffix);this._suffix.lastIndex=0;const ti=ve.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:ft,minusCharIndex:Dt,suffixCharIndex:Rn,currencyCharIndex:ti}}insert(ve,ft,Dt={isDecimalSign:!1,isMinusSign:!1}){const Rn=ft.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&-1!==Rn)return;let ti=this.input?.nativeElement.selectionStart,Xt=this.input?.nativeElement.selectionEnd,Je=this.input?.nativeElement.value.trim();const{decimalCharIndex:dt,minusCharIndex:Ie,suffixCharIndex:ot,currencyCharIndex:ct}=this.getCharIndexes(Je);let tn;if(Dt.isMinusSign)0===ti&&(tn=Je,(-1===Ie||0!==Xt)&&(tn=this.insertText(Je,ft,0,Xt)),this.updateValue(ve,tn,ft,"insert"));else if(Dt.isDecimalSign)dt>0&&ti===dt?this.updateValue(ve,Je,ft,"insert"):(dt>ti&&dt<Xt||-1===dt&&this.maxFractionDigits)&&(tn=this.insertText(Je,ft,ti,Xt),this.updateValue(ve,tn,ft,"insert"));else{const yi=this.numberFormat.resolvedOptions().maximumFractionDigits,ni=ti!==Xt?"range-insert":"insert";if(dt>0&&ti>dt){if(ti+ft.length-(dt+1)<=yi){const sn=ct>=ti?ct-1:ot>=ti?ot:Je.length;tn=Je.slice(0,ti)+ft+Je.slice(ti+ft.length,sn)+Je.slice(sn),this.updateValue(ve,tn,ft,ni)}}else tn=this.insertText(Je,ft,ti,Xt),this.updateValue(ve,tn,ft,ni)}}insertText(ve,ft,Dt,Rn){if(2===("."===ft?ft:ft.split(".")).length){const Xt=ve.slice(Dt,Rn).search(this._decimal);return this._decimal.lastIndex=0,Xt>0?ve.slice(0,Dt)+this.formatValue(ft)+ve.slice(Rn):ve||this.formatValue(ft)}return Rn-Dt===ve.length?this.formatValue(ft):0===Dt?ft+ve.slice(Rn):Rn===ve.length?ve.slice(0,Dt)+ft:ve.slice(0,Dt)+ft+ve.slice(Rn)}deleteRange(ve,ft,Dt){let Rn;return Rn=Dt-ft===ve.length?"":0===ft?ve.slice(Dt):Dt===ve.length?ve.slice(0,ft):ve.slice(0,ft)+ve.slice(Dt),Rn}initCursor(){let ve=this.input?.nativeElement.selectionStart,ft=this.input?.nativeElement.value,Dt=ft.length,Rn=null,ti=(this.prefixChar||"").length;ft=ft.replace(this._prefix,""),ve-=ti;let Xt=ft.charAt(ve);if(this.isNumeralChar(Xt))return ve+ti;let Je=ve-1;for(;Je>=0;){if(Xt=ft.charAt(Je),this.isNumeralChar(Xt)){Rn=Je+ti;break}Je--}if(null!==Rn)this.input?.nativeElement.setSelectionRange(Rn+1,Rn+1);else{for(Je=ve;Je<Dt;){if(Xt=ft.charAt(Je),this.isNumeralChar(Xt)){Rn=Je+ti;break}Je++}null!==Rn&&this.input?.nativeElement.setSelectionRange(Rn,Rn)}return Rn||0}onInputClick(){const ve=this.input?.nativeElement.value;!this.readonly&&ve!==t.p.getSelection()&&this.initCursor()}isNumeralChar(ve){return!(1!==ve.length||!(this._numeral.test(ve)||this._decimal.test(ve)||this._group.test(ve)||this._minusSign.test(ve))||(this.resetRegex(),0))}resetRegex(){this._numeral.lastIndex=0,this._decimal.lastIndex=0,this._group.lastIndex=0,this._minusSign.lastIndex=0}updateValue(ve,ft,Dt,Rn){let ti=this.input?.nativeElement.value,Xt=null;null!=ft&&(Xt=this.parseValue(ft),Xt=Xt||this.allowEmpty?Xt:0,this.updateInput(Xt,Dt,Rn,ft),this.handleOnInput(ve,ti,Xt))}handleOnInput(ve,ft,Dt){this.isValueChanged(ft,Dt)&&(this.input.nativeElement.value=this.formatValue(Dt),this.input?.nativeElement.setAttribute("aria-valuenow",Dt),this.updateModel(ve,Dt),this.onInput.emit({originalEvent:ve,value:Dt,formattedValue:ft}))}isValueChanged(ve,ft){return null===ft&&null!==ve||null!=ft&&ft!==("string"==typeof ve?this.parseValue(ve):ve)}validateValue(ve){return"-"===ve||null==ve?null:null!=this.min&&ve<this.min?this.min:null!=this.max&&ve>this.max?this.max:ve}updateInput(ve,ft,Dt,Rn){ft=ft||"";let ti=this.input?.nativeElement.value,Xt=this.formatValue(ve),Je=ti.length;if(Xt!==Rn&&(Xt=this.concatValues(Xt,Rn)),0===Je){this.input.nativeElement.value=Xt,this.input.nativeElement.setSelectionRange(0,0);const Ie=this.initCursor()+ft.length;this.input.nativeElement.setSelectionRange(Ie,Ie)}else{let dt=this.input.nativeElement.selectionStart,Ie=this.input.nativeElement.selectionEnd;if(this.maxlength&&Xt.length>this.maxlength&&(Xt=Xt.slice(0,this.maxlength),dt=Math.min(dt,this.maxlength),Ie=Math.min(Ie,this.maxlength)),this.maxlength&&this.maxlength<Xt.length)return;this.input.nativeElement.value=Xt;let ot=Xt.length;if("range-insert"===Dt){const ct=this.parseValue((ti||"").slice(0,dt)),yi=(null!==ct?ct.toString():"").split("").join(`(${this.groupChar})?`),ni=new RegExp(yi,"g");ni.test(Xt);const sn=ft.split("").join(`(${this.groupChar})?`),bn=new RegExp(sn,"g");bn.test(Xt.slice(ni.lastIndex)),Ie=ni.lastIndex+bn.lastIndex,this.input.nativeElement.setSelectionRange(Ie,Ie)}else if(ot===Je)"insert"===Dt||"delete-back-single"===Dt?this.input.nativeElement.setSelectionRange(Ie+1,Ie+1):"delete-single"===Dt?this.input.nativeElement.setSelectionRange(Ie-1,Ie-1):("delete-range"===Dt||"spin"===Dt)&&this.input.nativeElement.setSelectionRange(Ie,Ie);else if("delete-back-single"===Dt){let ct=ti.charAt(Ie-1),tn=ti.charAt(Ie),yi=Je-ot,ni=this._group.test(tn);ni&&1===yi?Ie+=1:!ni&&this.isNumeralChar(ct)&&(Ie+=-1*yi+1),this._group.lastIndex=0,this.input.nativeElement.setSelectionRange(Ie,Ie)}else if("-"===ti&&"insert"===Dt){this.input.nativeElement.setSelectionRange(0,0);const tn=this.initCursor()+ft.length+1;this.input.nativeElement.setSelectionRange(tn,tn)}else Ie+=ot-Je,this.input.nativeElement.setSelectionRange(Ie,Ie)}this.input.nativeElement.setAttribute("aria-valuenow",ve)}concatValues(ve,ft){if(ve&&ft){let Dt=ft.search(this._decimal);return this._decimal.lastIndex=0,this.suffixChar?-1!==Dt?ve:ve.replace(this.suffixChar,"").split(this._decimal)[0]+ft.replace(this.suffixChar,"").slice(Dt)+this.suffixChar:-1!==Dt?ve.split(this._decimal)[0]+ft.slice(Dt):ve}return ve}getDecimalLength(ve){if(ve){const ft=ve.split(this._decimal);if(2===ft.length)return ft[1].replace(this._suffix,"").trim().replace(/\s/g,"").replace(this._currency,"").length}return 0}onInputFocus(ve){this.focused=!0,this.onFocus.emit(ve)}onInputBlur(ve){this.focused=!1;let ft=this.validateValue(this.parseValue(this.input.nativeElement.value)).toString();this.input.nativeElement.value=this.formatValue(ft),this.input.nativeElement.setAttribute("aria-valuenow",ft),this.updateModel(ve,ft),this.onBlur.emit(ve)}formattedValue(){return this.formatValue(this.value||this.allowEmpty?this.value:0)}updateModel(ve,ft){const Dt="blur"===this.ngControl?.control?.updateOn;this.value!==ft?(this.value=ft,Dt&&this.focused||this.onModelChange(ft)):Dt&&this.onModelChange(ft),this.onModelTouched()}writeValue(ve){this.value=ve,this.cd.markForCheck()}registerOnChange(ve){this.onModelChange=ve}registerOnTouched(ve){this.onModelTouched=ve}setDisabledState(ve){this.disabled=ve,this.cd.markForCheck()}get filled(){return null!=this.value&&this.value.toString().length>0}clearTimer(){this.timer&&clearInterval(this.timer)}static \u0275fac=function(ft){return new(ft||Oe)(n.Y36(e.K0),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(n.zs3))};static \u0275cmp=n.Xpm({type:Oe,selectors:[["p-inputNumber"]],contentQueries:function(ft,Dt,Rn){if(1&ft&&n.Suo(Rn,l.jx,4),2&ft){let ti;n.iGM(ti=n.CRH())&&(Dt.templates=ti)}},viewQuery:function(ft,Dt){if(1&ft&&n.Gf(m,5),2&ft){let Rn;n.iGM(Rn=n.CRH())&&(Dt.input=Rn.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(ft,Dt){2&ft&&n.ekj("p-inputwrapper-filled",Dt.filled)("p-inputwrapper-focus",Dt.focused)("p-inputnumber-clearable",Dt.showClear&&"vertical"!=Dt.buttonLayout)},inputs:{showButtons:"showButtons",format:"format",buttonLayout:"buttonLayout",inputId:"inputId",styleClass:"styleClass",style:"style",placeholder:"placeholder",size:"size",maxlength:"maxlength",tabindex:"tabindex",title:"title",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",ariaRequired:"ariaRequired",name:"name",required:"required",autocomplete:"autocomplete",min:"min",max:"max",incrementButtonClass:"incrementButtonClass",decrementButtonClass:"decrementButtonClass",incrementButtonIcon:"incrementButtonIcon",decrementButtonIcon:"decrementButtonIcon",readonly:"readonly",step:"step",allowEmpty:"allowEmpty",locale:"locale",localeMatcher:"localeMatcher",mode:"mode",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping",minFractionDigits:"minFractionDigits",maxFractionDigits:"maxFractionDigits",prefix:"prefix",suffix:"suffix",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",showClear:"showClear",disabled:"disabled"},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[n._Bn([r]),n.TTD],decls:7,vars:39,consts:[[3,"ngClass","ngStyle"],["pInputText","","role","spinbutton","inputmode","decimal",3,"ngClass","ngStyle","value","disabled","readonly","input","keydown","keypress","paste","click","focus","blur"],["input",""],[4,"ngIf"],["class","p-inputnumber-button-group",4,"ngIf"],["type","button","pButton","","class","p-button-icon-only","tabindex","-1",3,"ngClass","class","disabled","mousedown","mouseup","mouseleave","keydown","keyup",4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["class","p-inputnumber-clear-icon",3,"click",4,"ngIf"],[3,"ngClass","click"],[1,"p-inputnumber-clear-icon",3,"click"],[4,"ngTemplateOutlet"],[1,"p-inputnumber-button-group"],["type","button","pButton","","tabindex","-1",1,"p-button-icon-only",3,"ngClass","disabled","mousedown","mouseup","mouseleave","keydown","keyup"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(ft,Dt){1&ft&&(n.TgZ(0,"span",0)(1,"input",1,2),n.NdJ("input",function(ti){return Dt.onUserInput(ti)})("keydown",function(ti){return Dt.onInputKeyDown(ti)})("keypress",function(ti){return Dt.onInputKeyPress(ti)})("paste",function(ti){return Dt.onPaste(ti)})("click",function(){return Dt.onInputClick()})("focus",function(ti){return Dt.onInputFocus(ti)})("blur",function(ti){return Dt.onInputBlur(ti)}),n.qZA(),n.YNc(3,P,3,2,"ng-container",3)(4,ge,7,19,"span",4)(5,me,3,9,"button",5)(6,lt,3,9,"button",5),n.qZA()),2&ft&&(n.Tol(Dt.styleClass),n.Q6J("ngClass",n.kEZ(35,Vt,Dt.showButtons&&"stacked"===Dt.buttonLayout,Dt.showButtons&&"horizontal"===Dt.buttonLayout,Dt.showButtons&&"vertical"===Dt.buttonLayout))("ngStyle",Dt.style),n.uIk("data-pc-name","inputnumber")("data-pc-section","root"),n.xp6(),n.Tol(Dt.inputStyleClass),n.Q6J("ngClass","p-inputnumber-input")("ngStyle",Dt.inputStyle)("value",Dt.formattedValue())("disabled",Dt.disabled)("readonly",Dt.readonly),n.uIk("id",Dt.inputId)("aria-valuemin",Dt.min)("aria-valuemax",Dt.max)("aria-valuenow",Dt.value)("placeholder",Dt.placeholder)("aria-label",Dt.ariaLabel)("aria-labelledby",Dt.ariaLabelledBy)("title",Dt.title)("size",Dt.size)("name",Dt.name)("autocomplete",Dt.autocomplete)("maxlength",Dt.maxlength)("tabindex",Dt.tabindex)("aria-required",Dt.ariaRequired)("required",Dt.required)("min",Dt.min)("max",Dt.max)("data-pc-section","input"),n.xp6(2),n.Q6J("ngIf","vertical"!=Dt.buttonLayout&&Dt.showClear&&Dt.value),n.xp6(),n.Q6J("ngIf",Dt.showButtons&&"stacked"===Dt.buttonLayout),n.xp6(),n.Q6J("ngIf",Dt.showButtons&&"stacked"!==Dt.buttonLayout),n.xp6(),n.Q6J("ngIf",Dt.showButtons&&"stacked"!==Dt.buttonLayout))},dependencies:()=>[e.mk,e.O5,e.tP,e.PC,u.o,i.Hq,x.q,o,c],styles:["@layer primeng{p-inputnumber,.p-inputnumber{display:inline-flex}.p-inputnumber-button{display:flex;align-items:center;justify-content:center;flex:0 0 auto}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label{display:none}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up{border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-input{border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-button-group{display:flex;flex-direction:column}.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button{flex:1 1 auto}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up{order:3;border-top-left-radius:0;border-bottom-left-radius:0}.p-inputnumber-buttons-horizontal .p-inputnumber-input{order:2;border-radius:0}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down{order:1;border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-vertical{flex-direction:column}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up{order:1;border-bottom-left-radius:0;border-bottom-right-radius:0;width:100%}.p-inputnumber-buttons-vertical .p-inputnumber-input{order:2;border-radius:0;text-align:center}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down{order:3;border-top-left-radius:0;border-top-right-radius:0;width:100%}.p-inputnumber-input{flex:1 1 auto}.p-fluid p-inputnumber,.p-fluid .p-inputnumber{width:100%}.p-fluid .p-inputnumber .p-inputnumber-input{width:1%}.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input{width:100%}.p-inputnumber-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputnumber-clearable{position:relative}}\n"],encapsulation:2,changeDetection:0})}return Oe})(),Pt=(()=>{class Oe{static \u0275fac=function(ft){return new(ft||Oe)};static \u0275mod=n.oAB({type:Oe});static \u0275inj=n.cJS({imports:[e.ez,u.j,i.hJ,x.q,o,c,l.m8]})}return Oe})()},53714:(gt,X,a)=>{"use strict";a.d(X,{j:()=>i,o:()=>l});var e=a(19212),n=a(96814),s=a(56223);let l=(()=>{class t{el;ngModel;cd;filled;constructor(c,o,x){this.el=c,this.ngModel=o,this.cd=x}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}static \u0275fac=function(o){return new(o||t)(e.Y36(e.SBq),e.Y36(s.On,8),e.Y36(e.sBO))};static \u0275dir=e.lG2({type:t,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(o,x){1&o&&e.NdJ("input",function(m){return x.onInput(m)}),2&o&&e.ekj("p-filled",x.filled)}})}return t})(),i=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=e.oAB({type:t});static \u0275inj=e.cJS({imports:[n.ez]})}return t})()},88454:(gt,X,a)=>{"use strict";a.d(X,{T:()=>B,y:()=>ae});var e=a(86825),n=a(96814),s=a(19212),l=a(85219),i=a(82076),t=a(77778),p=a(44480),c=a(2332);function o(J,q){1&J&&s.GkF(0)}function x(J,q){1&J&&s._UZ(0,"TimesIcon",8),2&J&&s.Q6J("styleClass","p-overlaypanel-close-icon")}function u(J,q){}function m(J,q){1&J&&s.YNc(0,u,0,0,"ng-template")}function b(J,q){if(1&J&&(s.TgZ(0,"span",9),s.YNc(1,m,1,0,null,3),s.qZA()),2&J){const j=s.oxw(3);s.xp6(),s.Q6J("ngTemplateOutlet",j.closeIconTemplate)}}function I(J,q){if(1&J){const j=s.EpF();s.TgZ(0,"button",5),s.NdJ("click",function(K){s.CHM(j);const ne=s.oxw(2);return s.KtG(ne.onCloseClick(K))})("keydown.enter",function(){s.CHM(j);const K=s.oxw(2);return s.KtG(K.hide())}),s.YNc(1,x,1,1,"TimesIcon",6)(2,b,2,1,"span",7),s.qZA()}if(2&J){const j=s.oxw(2);s.uIk("aria-label",j.ariaCloseLabel),s.xp6(),s.Q6J("ngIf",!j.closeIconTemplate),s.xp6(),s.Q6J("ngIf",j.closeIconTemplate)}}const H=(J,q)=>({showTransitionParams:J,hideTransitionParams:q}),O=(J,q)=>({value:J,params:q});function P(J,q){if(1&J){const j=s.EpF();s.TgZ(0,"div",1),s.NdJ("click",function(K){s.CHM(j);const ne=s.oxw();return s.KtG(ne.onOverlayClick(K))})("@animation.start",function(K){s.CHM(j);const ne=s.oxw();return s.KtG(ne.onAnimationStart(K))})("@animation.done",function(K){s.CHM(j);const ne=s.oxw();return s.KtG(ne.onAnimationEnd(K))}),s.TgZ(1,"div",2),s.NdJ("click",function(K){s.CHM(j);const ne=s.oxw();return s.KtG(ne.onContentClick(K))})("mousedown",function(K){s.CHM(j);const ne=s.oxw();return s.KtG(ne.onContentClick(K))}),s.Hsn(2),s.YNc(3,o,1,0,"ng-container",3),s.qZA(),s.YNc(4,I,3,3,"button",4),s.qZA()}if(2&J){const j=s.oxw();s.Tol(j.styleClass),s.Q6J("ngClass","p-overlaypanel p-component")("ngStyle",j.style)("@animation",s.WLB(13,O,j.overlayVisible?"open":"close",s.WLB(10,H,j.showTransitionOptions,j.hideTransitionOptions))),s.uIk("aria-modal",j.overlayVisible)("aria-label",j.ariaLabel)("aria-labelledBy",j.ariaLabelledBy),s.xp6(3),s.Q6J("ngTemplateOutlet",j.contentTemplate),s.xp6(),s.Q6J("ngIf",j.showCloseIcon)}}const G=["*"];let B=(()=>{class J{document;platformId;el;renderer;cd;zone;config;overlayService;ariaLabel;ariaLabelledBy;dismissable=!0;showCloseIcon;style;styleClass;appendTo="body";autoZIndex=!0;ariaCloseLabel;baseZIndex=0;focusOnShow=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";onShow=new s.vpe;onHide=new s.vpe;templates;container;overlayVisible=!1;render=!1;isOverlayAnimationInProgress=!1;selfClick=!1;documentClickListener;target;willHide;scrollHandler;documentResizeListener;contentTemplate;closeIconTemplate;destroyCallback;overlayEventListener;overlaySubscription;constructor(j,Y,K,ne,ee,$,ue,ge){this.document=j,this.platformId=Y,this.el=K,this.renderer=ne,this.cd=ee,this.zone=$,this.config=ue,this.overlayService=ge}ngAfterContentInit(){this.templates?.forEach(j=>{switch(j.getType()){case"content":default:this.contentTemplate=j.template;break;case"closeicon":this.closeIconTemplate=j.template}this.cd.markForCheck()})}bindDocumentClickListener(){if((0,n.NF)(this.platformId)&&!this.documentClickListener&&this.dismissable){let j=i.p.isIOS()?"touchstart":"click";this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:this.document,j,K=>{!this.container?.contains(K.target)&&this.target!==K.target&&!this.target.contains(K.target)&&!this.selfClick&&this.hide(),this.selfClick=!1,this.cd.markForCheck()})}}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null,this.selfClick=!1)}toggle(j,Y){this.isOverlayAnimationInProgress||(this.overlayVisible?(this.hasTargetChanged(j,Y)&&(this.destroyCallback=()=>{this.show(null,Y||j.currentTarget||j.target)}),this.hide()):this.show(j,Y))}show(j,Y){Y&&j&&j.stopPropagation(),!this.isOverlayAnimationInProgress&&(this.target=Y||j.currentTarget||j.target,this.overlayVisible=!0,this.render=!0,this.cd.markForCheck())}onOverlayClick(j){this.overlayService.add({originalEvent:j,target:this.el.nativeElement}),this.selfClick=!0}onContentClick(j){const Y=j.target;this.selfClick=j.offsetX<Y.clientWidth&&j.offsetY<Y.clientHeight}hasTargetChanged(j,Y){return null!=this.target&&this.target!==(Y||j.currentTarget||j.target)}appendContainer(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.container):i.p.appendChild(this.container,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.container)}align(){this.autoZIndex&&c.P9.set("overlay",this.container,this.baseZIndex+this.config.zIndex.overlay),i.p.absolutePosition(this.container,this.target);const j=i.p.getOffset(this.container),Y=i.p.getOffset(this.target),K=this.document.defaultView?.getComputedStyle(this.container).getPropertyValue("border-radius");let ne=0;j.left<Y.left&&(ne=Y.left-j.left-2*parseFloat(K)),this.container?.style.setProperty("--overlayArrowLeft",`${ne}px`),j.top<Y.top&&(i.p.addClass(this.container,"p-overlaypanel-flipped"),this.showCloseIcon&&this.renderer.setStyle(this.container,"margin-top","-30px"))}onAnimationStart(j){"open"===j.toState&&(this.container=j.element,this.appendContainer(),this.align(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.focusOnShow&&this.focus(),this.overlayEventListener=Y=>{this.container&&this.container.contains(Y.target)&&(this.selfClick=!0)},this.overlaySubscription=this.overlayService.clickObservable.subscribe(this.overlayEventListener),this.onShow.emit(null)),this.isOverlayAnimationInProgress=!0}onAnimationEnd(j){switch(j.toState){case"void":this.destroyCallback&&(this.destroyCallback(),this.destroyCallback=null),this.overlaySubscription&&this.overlaySubscription.unsubscribe();break;case"close":this.autoZIndex&&c.P9.clear(this.container),this.overlaySubscription&&this.overlaySubscription.unsubscribe(),this.onContainerDestroy(),this.onHide.emit({}),this.render=!1}this.isOverlayAnimationInProgress=!1}focus(){let j=i.p.findSingle(this.container,"[autofocus]");j&&this.zone.runOutsideAngular(()=>{setTimeout(()=>j.focus(),5)})}hide(){this.overlayVisible=!1,this.cd.markForCheck()}onCloseClick(j){this.hide(),j.preventDefault()}onEscapeKeydown(j){this.hide()}onWindowResize(){this.overlayVisible&&!i.p.isTouchDevice()&&this.hide()}bindDocumentResizeListener(){(0,n.NF)(this.platformId)&&!this.documentResizeListener&&(this.documentResizeListener=this.renderer.listen(this.document.defaultView,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){(0,n.NF)(this.platformId)&&(this.scrollHandler||(this.scrollHandler=new i.V(this.target,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener())}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onContainerDestroy(){this.cd.destroyed||(this.target=null),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener()}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&c.P9.clear(this.container),this.cd.destroyed||(this.target=null),this.destroyCallback=null,this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}static \u0275fac=function(Y){return new(Y||J)(s.Y36(n.K0),s.Y36(s.Lbi),s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(s.sBO),s.Y36(s.R0b),s.Y36(l.b4),s.Y36(l.F0))};static \u0275cmp=s.Xpm({type:J,selectors:[["p-overlayPanel"]],contentQueries:function(Y,K,ne){if(1&Y&&s.Suo(ne,l.jx,4),2&Y){let ee;s.iGM(ee=s.CRH())&&(K.templates=ee)}},hostAttrs:[1,"p-element"],hostBindings:function(Y,K){1&Y&&s.NdJ("keydown.escape",function(ee){return K.onEscapeKeydown(ee)},!1,s.evT)},inputs:{ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",dismissable:"dismissable",showCloseIcon:"showCloseIcon",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",ariaCloseLabel:"ariaCloseLabel",baseZIndex:"baseZIndex",focusOnShow:"focusOnShow",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onShow:"onShow",onHide:"onHide"},ngContentSelectors:G,decls:1,vars:1,consts:[["role","dialog",3,"ngClass","ngStyle","class","click",4,"ngIf"],["role","dialog",3,"ngClass","ngStyle","click"],[1,"p-overlaypanel-content",3,"click","mousedown"],[4,"ngTemplateOutlet"],["type","button","class","p-overlaypanel-close p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],["type","button","pRipple","",1,"p-overlaypanel-close","p-link",3,"click","keydown.enter"],[3,"styleClass",4,"ngIf"],["class","p-overlaypanel-close-icon",4,"ngIf"],[3,"styleClass"],[1,"p-overlaypanel-close-icon"]],template:function(Y,K){1&Y&&(s.F$t(),s.YNc(0,P,5,16,"div",0)),2&Y&&s.Q6J("ngIf",K.render)},dependencies:()=>[n.mk,n.O5,n.tP,n.PC,p.H,t.q],styles:['@layer primeng{.p-overlaypanel{position:absolute;margin-top:10px;top:0;left:0}.p-overlaypanel-flipped{margin-top:0;margin-bottom:10px}.p-overlaypanel-close{display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-overlaypanel:after,.p-overlaypanel:before{bottom:100%;left:calc(var(--overlayArrowLeft, 0) + 1.25rem);content:" ";height:0;width:0;position:absolute;pointer-events:none}.p-overlaypanel:after{border-width:8px;margin-left:-8px}.p-overlaypanel:before{border-width:10px;margin-left:-10px}.p-overlaypanel-shifted:after,.p-overlaypanel-shifted:before{left:auto;right:1.25em;margin-left:auto}.p-overlaypanel-flipped:after,.p-overlaypanel-flipped:before{bottom:auto;top:100%}.p-overlaypanel.p-overlaypanel-flipped:after{border-bottom-color:transparent}.p-overlaypanel.p-overlaypanel-flipped:before{border-bottom-color:transparent}}\n'],encapsulation:2,data:{animation:[(0,e.X$)("animation",[(0,e.SB)("void",(0,e.oB)({transform:"scaleY(0.8)",opacity:0})),(0,e.SB)("close",(0,e.oB)({opacity:0})),(0,e.SB)("open",(0,e.oB)({transform:"translateY(0)",opacity:1})),(0,e.eR)("void => open",(0,e.jt)("{{showTransitionParams}}")),(0,e.eR)("open => close",(0,e.jt)("{{hideTransitionParams}}"))])]},changeDetection:0})}return J})(),ae=(()=>{class J{static \u0275fac=function(Y){return new(Y||J)};static \u0275mod=s.oAB({type:J});static \u0275inj=s.cJS({imports:[n.ez,p.T,l.m8,t.q,l.m8]})}return J})()},5309:(gt,X,a)=>{"use strict";a.d(X,{D:()=>Je,U:()=>dt});var e=a(96814),n=a(19212),s=a(56223),l=a(85219),i=a(73988),t=a(84713);let p=(()=>{class Ie extends t.s{static \u0275fac=(()=>{let ct;return function(yi){return(ct||(ct=n.n5z(Ie)))(yi||Ie)}})();static \u0275cmp=n.Xpm({type:Ie,selectors:[["AngleDoubleLeftIcon"]],standalone:!0,features:[n.qOj,n.jDz],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z","fill","currentColor"]],template:function(tn,yi){1&tn&&(n.O4$(),n.TgZ(0,"svg",0),n._UZ(1,"path",1),n.qZA()),2&tn&&(n.Tol(yi.getClassNames()),n.uIk("aria-label",yi.ariaLabel)("aria-hidden",yi.ariaHidden)("role",yi.role))},encapsulation:2})}return Ie})(),c=(()=>{class Ie extends t.s{static \u0275fac=(()=>{let ct;return function(yi){return(ct||(ct=n.n5z(Ie)))(yi||Ie)}})();static \u0275cmp=n.Xpm({type:Ie,selectors:[["AngleDoubleRightIcon"]],standalone:!0,features:[n.qOj,n.jDz],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7.68757 11.1451C7.7791 11.1831 7.8773 11.2024 7.9764 11.2019C8.07769 11.1985 8.17721 11.1745 8.26886 11.1312C8.36052 11.088 8.44238 11.0265 8.50943 10.9505L12.0294 7.49085C12.1707 7.34942 12.25 7.15771 12.25 6.95782C12.25 6.75794 12.1707 6.56622 12.0294 6.42479L8.50943 2.90479C8.37014 2.82159 8.20774 2.78551 8.04633 2.80192C7.88491 2.81833 7.73309 2.88635 7.6134 2.99588C7.4937 3.10541 7.41252 3.25061 7.38189 3.40994C7.35126 3.56927 7.37282 3.73423 7.44337 3.88033L10.4605 6.89748L7.44337 9.91463C7.30212 10.0561 7.22278 10.2478 7.22278 10.4477C7.22278 10.6475 7.30212 10.8393 7.44337 10.9807C7.51301 11.0512 7.59603 11.1071 7.68757 11.1451ZM1.94207 10.9505C2.07037 11.0968 2.25089 11.1871 2.44493 11.2019C2.63898 11.1871 2.81949 11.0968 2.94779 10.9505L6.46779 7.49085C6.60905 7.34942 6.68839 7.15771 6.68839 6.95782C6.68839 6.75793 6.60905 6.56622 6.46779 6.42479L2.94779 2.90479C2.80704 2.83757 2.6489 2.81563 2.49517 2.84201C2.34143 2.86839 2.19965 2.94178 2.08936 3.05207C1.97906 3.16237 1.90567 3.30415 1.8793 3.45788C1.85292 3.61162 1.87485 3.76975 1.94207 3.9105L4.95922 6.92765L1.94207 9.9448C1.81838 10.0831 1.75 10.2621 1.75 10.4477C1.75 10.6332 1.81838 10.8122 1.94207 10.9505Z","fill","currentColor"]],template:function(tn,yi){1&tn&&(n.O4$(),n.TgZ(0,"svg",0),n._UZ(1,"path",1),n.qZA()),2&tn&&(n.Tol(yi.getClassNames()),n.uIk("aria-label",yi.ariaLabel)("aria-hidden",yi.ariaHidden)("role",yi.role))},encapsulation:2})}return Ie})(),o=(()=>{class Ie extends t.s{static \u0275fac=(()=>{let ct;return function(yi){return(ct||(ct=n.n5z(Ie)))(yi||Ie)}})();static \u0275cmp=n.Xpm({type:Ie,selectors:[["AngleLeftIcon"]],standalone:!0,features:[n.qOj,n.jDz],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.75 11.185C8.65146 11.1854 8.55381 11.1662 8.4628 11.1284C8.37179 11.0906 8.28924 11.0351 8.22 10.965L4.72 7.46496C4.57955 7.32433 4.50066 7.13371 4.50066 6.93496C4.50066 6.73621 4.57955 6.54558 4.72 6.40496L8.22 2.93496C8.36095 2.84357 8.52851 2.80215 8.69582 2.81733C8.86312 2.83252 9.02048 2.90344 9.14268 3.01872C9.26487 3.134 9.34483 3.28696 9.36973 3.4531C9.39463 3.61924 9.36303 3.78892 9.28 3.93496L6.28 6.93496L9.28 9.93496C9.42045 10.0756 9.49934 10.2662 9.49934 10.465C9.49934 10.6637 9.42045 10.8543 9.28 10.995C9.13526 11.1257 8.9448 11.1939 8.75 11.185Z","fill","currentColor"]],template:function(tn,yi){1&tn&&(n.O4$(),n.TgZ(0,"svg",0),n._UZ(1,"path",1),n.qZA()),2&tn&&(n.Tol(yi.getClassNames()),n.uIk("aria-label",yi.ariaLabel)("aria-hidden",yi.ariaHidden)("role",yi.role))},encapsulation:2})}return Ie})(),x=(()=>{class Ie extends t.s{static \u0275fac=(()=>{let ct;return function(yi){return(ct||(ct=n.n5z(Ie)))(yi||Ie)}})();static \u0275cmp=n.Xpm({type:Ie,selectors:[["AngleRightIcon"]],standalone:!0,features:[n.qOj,n.jDz],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z","fill","currentColor"]],template:function(tn,yi){1&tn&&(n.O4$(),n.TgZ(0,"svg",0),n._UZ(1,"path",1),n.qZA()),2&tn&&(n.Tol(yi.getClassNames()),n.uIk("aria-label",yi.ariaLabel)("aria-hidden",yi.ariaHidden)("role",yi.role))},encapsulation:2})}return Ie})();var u=a(59653),m=a(44480);function b(Ie,ot){1&Ie&&n.GkF(0)}const I=Ie=>({$implicit:Ie});function H(Ie,ot){if(1&Ie&&(n.TgZ(0,"div",15),n.YNc(1,b,1,0,"ng-container",16),n.qZA()),2&Ie){const ct=n.oxw(2);n.uIk("data-pc-section","start"),n.xp6(),n.Q6J("ngTemplateOutlet",ct.templateLeft)("ngTemplateOutletContext",n.VKq(3,I,ct.paginatorState))}}function O(Ie,ot){if(1&Ie&&(n.TgZ(0,"span",17),n._uU(1),n.qZA()),2&Ie){const ct=n.oxw(2);n.xp6(),n.Oqu(ct.currentPageReport)}}function P(Ie,ot){1&Ie&&n._UZ(0,"AngleDoubleLeftIcon",19),2&Ie&&n.Q6J("styleClass","p-paginator-icon")}function G(Ie,ot){}function B(Ie,ot){1&Ie&&n.YNc(0,G,0,0,"ng-template")}function ae(Ie,ot){if(1&Ie&&(n.TgZ(0,"span",20),n.YNc(1,B,1,0,null,21),n.qZA()),2&Ie){const ct=n.oxw(3);n.xp6(),n.Q6J("ngTemplateOutlet",ct.firstPageLinkIconTemplate)}}const J=Ie=>({"p-disabled":Ie});function q(Ie,ot){if(1&Ie){const ct=n.EpF();n.TgZ(0,"button",18),n.NdJ("click",function(yi){n.CHM(ct);const ni=n.oxw(2);return n.KtG(ni.changePageToFirst(yi))}),n.YNc(1,P,1,1,"AngleDoubleLeftIcon",6)(2,ae,2,1,"span",7),n.qZA()}if(2&Ie){const ct=n.oxw(2);n.Q6J("disabled",ct.isFirstPage()||ct.empty())("ngClass",n.VKq(5,J,ct.isFirstPage()||ct.empty())),n.uIk("aria-label",ct.getAriaLabel("firstPageLabel")),n.xp6(),n.Q6J("ngIf",!ct.firstPageLinkIconTemplate),n.xp6(),n.Q6J("ngIf",ct.firstPageLinkIconTemplate)}}function j(Ie,ot){1&Ie&&n._UZ(0,"AngleLeftIcon",19),2&Ie&&n.Q6J("styleClass","p-paginator-icon")}function Y(Ie,ot){}function K(Ie,ot){1&Ie&&n.YNc(0,Y,0,0,"ng-template")}function ne(Ie,ot){if(1&Ie&&(n.TgZ(0,"span",20),n.YNc(1,K,1,0,null,21),n.qZA()),2&Ie){const ct=n.oxw(2);n.xp6(),n.Q6J("ngTemplateOutlet",ct.previousPageLinkIconTemplate)}}const ee=Ie=>({"p-highlight":Ie});function $(Ie,ot){if(1&Ie){const ct=n.EpF();n.TgZ(0,"button",24),n.NdJ("click",function(yi){const sn=n.CHM(ct).$implicit,bn=n.oxw(3);return n.KtG(bn.onPageLinkClick(yi,sn-1))}),n._uU(1),n.qZA()}if(2&Ie){const ct=ot.$implicit,tn=n.oxw(3);n.Q6J("ngClass",n.VKq(4,ee,ct-1==tn.getPage())),n.uIk("aria-label",tn.getPageAriaLabel(ct))("aria-current",ct-1==tn.getPage()?"page":void 0),n.xp6(),n.hij(" ",tn.getLocalization(ct)," ")}}function ue(Ie,ot){if(1&Ie&&(n.TgZ(0,"span",22),n.YNc(1,$,2,6,"button",23),n.qZA()),2&Ie){const ct=n.oxw(2);n.xp6(),n.Q6J("ngForOf",ct.pageLinks)}}function ge(Ie,ot){if(1&Ie&&n._uU(0),2&Ie){const ct=n.oxw(3);n.Oqu(ct.currentPageReport)}}function Ke(Ie,ot){1&Ie&&n.GkF(0)}function at(Ie,ot){if(1&Ie&&n.YNc(0,Ke,1,0,"ng-container",21),2&Ie){const ct=n.oxw(4);n.Q6J("ngTemplateOutlet",ct.dropdownIconTemplate)}}function Le(Ie,ot){1&Ie&&n.YNc(0,at,1,1,"ng-template",28)}function R(Ie,ot){if(1&Ie){const ct=n.EpF();n.TgZ(0,"p-dropdown",25),n.NdJ("onChange",function(yi){n.CHM(ct);const ni=n.oxw(2);return n.KtG(ni.onPageDropdownChange(yi))}),n.YNc(1,ge,1,1,"ng-template",26)(2,Le,1,0,null,27),n.qZA()}if(2&Ie){const ct=n.oxw(2);n.Q6J("options",ct.pageItems)("ngModel",ct.getPage())("disabled",ct.empty())("appendTo",ct.dropdownAppendTo)("scrollHeight",ct.dropdownScrollHeight),n.uIk("aria-label",ct.getAriaLabel("jumpToPageDropdownLabel")),n.xp6(2),n.Q6J("ngIf",ct.dropdownIconTemplate)}}function Te(Ie,ot){1&Ie&&n._UZ(0,"AngleRightIcon",19),2&Ie&&n.Q6J("styleClass","p-paginator-icon")}function me(Ie,ot){}function Se(Ie,ot){1&Ie&&n.YNc(0,me,0,0,"ng-template")}function Ue(Ie,ot){if(1&Ie&&(n.TgZ(0,"span",20),n.YNc(1,Se,1,0,null,21),n.qZA()),2&Ie){const ct=n.oxw(2);n.xp6(),n.Q6J("ngTemplateOutlet",ct.nextPageLinkIconTemplate)}}function We(Ie,ot){1&Ie&&n._UZ(0,"AngleDoubleRightIcon",19),2&Ie&&n.Q6J("styleClass","p-paginator-icon")}function et(Ie,ot){}function Et(Ie,ot){1&Ie&&n.YNc(0,et,0,0,"ng-template")}function lt(Ie,ot){if(1&Ie&&(n.TgZ(0,"span",20),n.YNc(1,Et,1,0,null,21),n.qZA()),2&Ie){const ct=n.oxw(3);n.xp6(),n.Q6J("ngTemplateOutlet",ct.lastPageLinkIconTemplate)}}function Vt(Ie,ot){if(1&Ie){const ct=n.EpF();n.TgZ(0,"button",29),n.NdJ("click",function(yi){n.CHM(ct);const ni=n.oxw(2);return n.KtG(ni.changePageToLast(yi))}),n.YNc(1,We,1,1,"AngleDoubleRightIcon",6)(2,lt,2,1,"span",7),n.qZA()}if(2&Ie){const ct=n.oxw(2);n.Q6J("disabled",ct.isLastPage()||ct.empty())("ngClass",n.VKq(5,J,ct.isLastPage()||ct.empty())),n.uIk("aria-label",ct.getAriaLabel("lastPageLabel")),n.xp6(),n.Q6J("ngIf",!ct.lastPageLinkIconTemplate),n.xp6(),n.Q6J("ngIf",ct.lastPageLinkIconTemplate)}}function r(Ie,ot){if(1&Ie){const ct=n.EpF();n.TgZ(0,"p-inputNumber",30),n.NdJ("ngModelChange",function(yi){n.CHM(ct);const ni=n.oxw(2);return n.KtG(ni.changePage(yi-1))}),n.qZA()}if(2&Ie){const ct=n.oxw(2);n.Q6J("ngModel",ct.currentPage())("disabled",ct.empty())}}function Z(Ie,ot){1&Ie&&n.GkF(0)}function Pt(Ie,ot){if(1&Ie&&n.YNc(0,Z,1,0,"ng-container",16),2&Ie){const ct=ot.$implicit,tn=n.oxw(4);n.Q6J("ngTemplateOutlet",tn.dropdownItemTemplate)("ngTemplateOutletContext",n.VKq(2,I,ct))}}function Oe(Ie,ot){1&Ie&&(n.ynx(0),n.YNc(1,Pt,1,4,"ng-template",32),n.BQk())}function ye(Ie,ot){1&Ie&&n.GkF(0)}function ve(Ie,ot){if(1&Ie&&n.YNc(0,ye,1,0,"ng-container",21),2&Ie){const ct=n.oxw(4);n.Q6J("ngTemplateOutlet",ct.dropdownIconTemplate)}}function ft(Ie,ot){1&Ie&&n.YNc(0,ve,1,1,"ng-template",28)}function Dt(Ie,ot){if(1&Ie){const ct=n.EpF();n.TgZ(0,"p-dropdown",31),n.NdJ("ngModelChange",function(yi){n.CHM(ct);const ni=n.oxw(2);return n.KtG(ni.rows=yi)})("onChange",function(yi){n.CHM(ct);const ni=n.oxw(2);return n.KtG(ni.onRppChange(yi))}),n.YNc(1,Oe,2,0,"ng-container",27)(2,ft,1,0,null,27),n.qZA()}if(2&Ie){const ct=n.oxw(2);n.Q6J("options",ct.rowsPerPageItems)("ngModel",ct.rows)("disabled",ct.empty())("appendTo",ct.dropdownAppendTo)("scrollHeight",ct.dropdownScrollHeight)("ariaLabel",ct.getAriaLabel("rowsPerPageLabel")),n.xp6(),n.Q6J("ngIf",ct.dropdownItemTemplate),n.xp6(),n.Q6J("ngIf",ct.dropdownIconTemplate)}}function Rn(Ie,ot){1&Ie&&n.GkF(0)}function ti(Ie,ot){if(1&Ie&&(n.TgZ(0,"div",33),n.YNc(1,Rn,1,0,"ng-container",16),n.qZA()),2&Ie){const ct=n.oxw(2);n.uIk("data-pc-section","end"),n.xp6(),n.Q6J("ngTemplateOutlet",ct.templateRight)("ngTemplateOutletContext",n.VKq(3,I,ct.paginatorState))}}function Xt(Ie,ot){if(1&Ie){const ct=n.EpF();n.TgZ(0,"div",1),n.YNc(1,H,2,5,"div",2)(2,O,2,1,"span",3)(3,q,3,7,"button",4),n.TgZ(4,"button",5),n.NdJ("click",function(yi){n.CHM(ct);const ni=n.oxw();return n.KtG(ni.changePageToPrev(yi))}),n.YNc(5,j,1,1,"AngleLeftIcon",6)(6,ne,2,1,"span",7),n.qZA(),n.YNc(7,ue,2,1,"span",8)(8,R,3,7,"p-dropdown",9),n.TgZ(9,"button",10),n.NdJ("click",function(yi){n.CHM(ct);const ni=n.oxw();return n.KtG(ni.changePageToNext(yi))}),n.YNc(10,Te,1,1,"AngleRightIcon",6)(11,Ue,2,1,"span",7),n.qZA(),n.YNc(12,Vt,3,7,"button",11)(13,r,1,2,"p-inputNumber",12)(14,Dt,3,8,"p-dropdown",13)(15,ti,2,5,"div",14),n.qZA()}if(2&Ie){const ct=n.oxw();n.Tol(ct.styleClass),n.Q6J("ngStyle",ct.style)("ngClass","p-paginator p-component"),n.uIk("data-pc-section","paginator")("data-pc-section","root"),n.xp6(),n.Q6J("ngIf",ct.templateLeft),n.xp6(),n.Q6J("ngIf",ct.showCurrentPageReport),n.xp6(),n.Q6J("ngIf",ct.showFirstLastIcon),n.xp6(),n.Q6J("disabled",ct.isFirstPage()||ct.empty())("ngClass",n.VKq(25,J,ct.isFirstPage()||ct.empty())),n.uIk("aria-label",ct.getAriaLabel("prevPageLabel")),n.xp6(),n.Q6J("ngIf",!ct.previousPageLinkIconTemplate),n.xp6(),n.Q6J("ngIf",ct.previousPageLinkIconTemplate),n.xp6(),n.Q6J("ngIf",ct.showPageLinks),n.xp6(),n.Q6J("ngIf",ct.showJumpToPageDropdown),n.xp6(),n.Q6J("disabled",ct.isLastPage()||ct.empty())("ngClass",n.VKq(27,J,ct.isLastPage()||ct.empty())),n.uIk("aria-label",ct.getAriaLabel("nextPageLabel")),n.xp6(),n.Q6J("ngIf",!ct.nextPageLinkIconTemplate),n.xp6(),n.Q6J("ngIf",ct.nextPageLinkIconTemplate),n.xp6(),n.Q6J("ngIf",ct.showFirstLastIcon),n.xp6(),n.Q6J("ngIf",ct.showJumpToPageInput),n.xp6(),n.Q6J("ngIf",ct.rowsPerPageOptions),n.xp6(),n.Q6J("ngIf",ct.templateRight)}}let Je=(()=>{class Ie{cd;config;pageLinkSize=5;style;styleClass;alwaysShow=!0;dropdownAppendTo;templateLeft;templateRight;appendTo;dropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showFirstLastIcon=!0;totalRecords=0;rows=0;rowsPerPageOptions;showJumpToPageDropdown;showJumpToPageInput;showPageLinks=!0;locale;dropdownItemTemplate;get first(){return this._first}set first(ct){this._first=ct}onPageChange=new n.vpe;templates;dropdownIconTemplate;firstPageLinkIconTemplate;previousPageLinkIconTemplate;lastPageLinkIconTemplate;nextPageLinkIconTemplate;pageLinks;pageItems;rowsPerPageItems;paginatorState;_first=0;_page=0;constructor(ct,tn){this.cd=ct,this.config=tn}ngOnInit(){this.updatePaginatorState()}getAriaLabel(ct){return this.config.translation.aria?this.config.translation.aria[ct]:void 0}getPageAriaLabel(ct){return this.config.translation.aria?this.config.translation.aria.pageLabel.replace(/{page}/g,`Page ${ct}`):void 0}getLocalization(ct){const tn=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),yi=new Map(tn.map((ni,sn)=>[sn,ni]));return ct>9?String(ct).split("").map(sn=>yi.get(Number(sn))).join(""):yi.get(ct)}ngAfterContentInit(){this.templates.forEach(ct=>{switch(ct.getType()){case"dropdownicon":this.dropdownIconTemplate=ct.template;break;case"firstpagelinkicon":this.firstPageLinkIconTemplate=ct.template;break;case"previouspagelinkicon":this.previousPageLinkIconTemplate=ct.template;break;case"lastpagelinkicon":this.lastPageLinkIconTemplate=ct.template;break;case"nextpagelinkicon":this.nextPageLinkIconTemplate=ct.template}})}ngOnChanges(ct){ct.totalRecords&&(this.updatePageLinks(),this.updatePaginatorState(),this.updateFirst(),this.updateRowsPerPageOptions()),ct.first&&(this._first=ct.first.currentValue,this.updatePageLinks(),this.updatePaginatorState()),ct.rows&&(this.updatePageLinks(),this.updatePaginatorState()),ct.rowsPerPageOptions&&this.updateRowsPerPageOptions()}updateRowsPerPageOptions(){if(this.rowsPerPageOptions){this.rowsPerPageItems=[];for(let ct of this.rowsPerPageOptions)"object"==typeof ct&&ct.showAll?this.rowsPerPageItems.unshift({label:ct.showAll,value:this.totalRecords}):this.rowsPerPageItems.push({label:String(this.getLocalization(ct)),value:ct})}}isFirstPage(){return 0===this.getPage()}isLastPage(){return this.getPage()===this.getPageCount()-1}getPageCount(){return Math.ceil(this.totalRecords/this.rows)}calculatePageLinkBoundaries(){let ct=this.getPageCount(),tn=Math.min(this.pageLinkSize,ct),yi=Math.max(0,Math.ceil(this.getPage()-tn/2)),ni=Math.min(ct-1,yi+tn-1);return yi=Math.max(0,yi-(this.pageLinkSize-(ni-yi+1))),[yi,ni]}updatePageLinks(){this.pageLinks=[];let ct=this.calculatePageLinkBoundaries(),yi=ct[1];for(let ni=ct[0];ni<=yi;ni++)this.pageLinks.push(ni+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let ni=0;ni<this.getPageCount();ni++)this.pageItems.push({label:String(ni+1),value:ni})}}changePage(ct){var tn=this.getPageCount();if(ct>=0&&ct<tn){this._first=this.rows*ct;var yi={page:ct,first:this.first,rows:this.rows,pageCount:tn};this.updatePageLinks(),this.onPageChange.emit(yi),this.updatePaginatorState()}}updateFirst(){const ct=this.getPage();ct>0&&this.totalRecords&&this.first>=this.totalRecords&&Promise.resolve(null).then(()=>this.changePage(ct-1))}getPage(){return Math.floor(this.first/this.rows)}changePageToFirst(ct){this.isFirstPage()||this.changePage(0),ct.preventDefault()}changePageToPrev(ct){this.changePage(this.getPage()-1),ct.preventDefault()}changePageToNext(ct){this.changePage(this.getPage()+1),ct.preventDefault()}changePageToLast(ct){this.isLastPage()||this.changePage(this.getPageCount()-1),ct.preventDefault()}onPageLinkClick(ct,tn){this.changePage(tn),ct.preventDefault()}onRppChange(ct){this.changePage(this.getPage())}onPageDropdownChange(ct){this.changePage(ct.value)}updatePaginatorState(){this.paginatorState={page:this.getPage(),pageCount:this.getPageCount(),rows:this.rows,first:this.first,totalRecords:this.totalRecords}}empty(){return 0===this.getPageCount()}currentPage(){return this.getPageCount()>0?this.getPage()+1:0}get currentPageReport(){return this.currentPageReportTemplate.replace("{currentPage}",String(this.currentPage())).replace("{totalPages}",String(this.getPageCount())).replace("{first}",String(this.totalRecords>0?this._first+1:0)).replace("{last}",String(Math.min(this._first+this.rows,this.totalRecords))).replace("{rows}",String(this.rows)).replace("{totalRecords}",String(this.totalRecords))}static \u0275fac=function(tn){return new(tn||Ie)(n.Y36(n.sBO),n.Y36(l.b4))};static \u0275cmp=n.Xpm({type:Ie,selectors:[["p-paginator"]],contentQueries:function(tn,yi,ni){if(1&tn&&n.Suo(ni,l.jx,4),2&tn){let sn;n.iGM(sn=n.CRH())&&(yi.templates=sn)}},hostAttrs:[1,"p-element"],inputs:{pageLinkSize:"pageLinkSize",style:"style",styleClass:"styleClass",alwaysShow:"alwaysShow",dropdownAppendTo:"dropdownAppendTo",templateLeft:"templateLeft",templateRight:"templateRight",appendTo:"appendTo",dropdownScrollHeight:"dropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showFirstLastIcon:"showFirstLastIcon",totalRecords:"totalRecords",rows:"rows",rowsPerPageOptions:"rowsPerPageOptions",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showPageLinks:"showPageLinks",locale:"locale",dropdownItemTemplate:"dropdownItemTemplate",first:"first"},outputs:{onPageChange:"onPageChange"},features:[n.TTD],decls:1,vars:1,consts:[[3,"class","ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","ngClass"],["class","p-paginator-left-content",4,"ngIf"],["class","p-paginator-current",4,"ngIf"],["type","button","pRipple","","class","p-paginator-first p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-prev","p-paginator-element","p-link",3,"disabled","ngClass","click"],[3,"styleClass",4,"ngIf"],["class","p-paginator-icon",4,"ngIf"],["class","p-paginator-pages",4,"ngIf"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-next","p-paginator-element","p-link",3,"disabled","ngClass","click"],["type","button","pRipple","","class","p-paginator-last p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["class","p-paginator-page-input",3,"ngModel","disabled","ngModelChange",4,"ngIf"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ariaLabel","ngModelChange","onChange",4,"ngIf"],["class","p-paginator-right-content",4,"ngIf"],[1,"p-paginator-left-content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-paginator-current"],["type","button","pRipple","",1,"p-paginator-first","p-paginator-element","p-link",3,"disabled","ngClass","click"],[3,"styleClass"],[1,"p-paginator-icon"],[4,"ngTemplateOutlet"],[1,"p-paginator-pages"],["type","button","class","p-paginator-page p-paginator-element p-link","pRipple","",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button","pRipple","",1,"p-paginator-page","p-paginator-element","p-link",3,"ngClass","click"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange"],["pTemplate","selectedItem"],[4,"ngIf"],["pTemplate","dropdownicon"],["type","button","pRipple","",1,"p-paginator-last","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-page-input",3,"ngModel","disabled","ngModelChange"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ariaLabel","ngModelChange","onChange"],["pTemplate","item"],[1,"p-paginator-right-content"]],template:function(tn,yi){1&tn&&n.YNc(0,Xt,16,29,"div",0),2&tn&&n.Q6J("ngIf",!!yi.alwaysShow||yi.pageLinks&&yi.pageLinks.length>1)},dependencies:()=>[e.mk,e.sg,e.O5,e.tP,e.PC,i.Lt,l.jx,u.Rn,s.JJ,s.On,m.H,p,c,o,x],styles:["@layer primeng{.p-paginator{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.p-paginator-left-content{margin-right:auto}.p-paginator-right-content{margin-left:auto}.p-paginator-page,.p-paginator-next,.p-paginator-last,.p-paginator-first,.p-paginator-prev,.p-paginator-current{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:1;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-paginator-element:focus{z-index:1;position:relative}}\n"],encapsulation:2,changeDetection:0})}return Ie})(),dt=(()=>{class Ie{static \u0275fac=function(tn){return new(tn||Ie)};static \u0275mod=n.oAB({type:Ie});static \u0275inj=n.cJS({imports:[e.ez,i.kW,u.L$,s.u5,l.m8,m.T,p,c,o,x,i.kW,u.L$,s.u5,l.m8]})}return Ie})()},44480:(gt,X,a)=>{"use strict";a.d(X,{H:()=>i,T:()=>t});var e=a(96814),n=a(19212),s=a(82076),l=a(85219);let i=(()=>{class p{document;platformId;renderer;el;zone;config;constructor(o,x,u,m,b,I){this.document=o,this.platformId=x,this.renderer=u,this.el=m,this.zone=b,this.config=I}animationListener;mouseDownListener;timeout;ngAfterViewInit(){(0,e.NF)(this.platformId)&&this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this))})}onMouseDown(o){let x=this.getInk();if(!x||"none"===this.document.defaultView?.getComputedStyle(x,null).display)return;if(s.p.removeClass(x,"p-ink-active"),!s.p.getHeight(x)&&!s.p.getWidth(x)){let I=Math.max(s.p.getOuterWidth(this.el.nativeElement),s.p.getOuterHeight(this.el.nativeElement));x.style.height=I+"px",x.style.width=I+"px"}let u=s.p.getOffset(this.el.nativeElement),m=o.pageX-u.left+this.document.body.scrollTop-s.p.getWidth(x)/2,b=o.pageY-u.top+this.document.body.scrollLeft-s.p.getHeight(x)/2;this.renderer.setStyle(x,"top",b+"px"),this.renderer.setStyle(x,"left",m+"px"),s.p.addClass(x,"p-ink-active"),this.timeout=setTimeout(()=>{let I=this.getInk();I&&s.p.removeClass(I,"p-ink-active")},401)}getInk(){const o=this.el.nativeElement.children;for(let x=0;x<o.length;x++)if("string"==typeof o[x].className&&-1!==o[x].className.indexOf("p-ink"))return o[x];return null}resetInk(){let o=this.getInk();o&&s.p.removeClass(o,"p-ink-active")}onAnimationEnd(o){this.timeout&&clearTimeout(this.timeout),s.p.removeClass(o.currentTarget,"p-ink-active")}create(){let o=this.renderer.createElement("span");this.renderer.addClass(o,"p-ink"),this.renderer.appendChild(this.el.nativeElement,o),this.renderer.setAttribute(o,"aria-hidden","true"),this.renderer.setAttribute(o,"role","presentation"),this.animationListener||(this.animationListener=this.renderer.listen(o,"animationend",this.onAnimationEnd.bind(this)))}remove(){let o=this.getInk();o&&(this.mouseDownListener&&this.mouseDownListener(),this.animationListener&&this.animationListener(),this.mouseDownListener=null,this.animationListener=null,s.p.removeElement(o))}ngOnDestroy(){this.config&&this.config.ripple&&this.remove()}static \u0275fac=function(x){return new(x||p)(n.Y36(e.K0),n.Y36(n.Lbi),n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(l.b4,8))};static \u0275dir=n.lG2({type:p,selectors:[["","pRipple",""]],hostAttrs:[1,"p-ripple","p-element"]})}return p})(),t=(()=>{class p{static \u0275fac=function(x){return new(x||p)};static \u0275mod=n.oAB({type:p});static \u0275inj=n.cJS({imports:[e.ez]})}return p})()},26489:(gt,X,a)=>{"use strict";a.d(X,{T:()=>Te,v:()=>me});var e=a(96814),n=a(19212),s=a(85219),l=a(82076),i=a(78717);const t=["element"],p=["content"];function c(Se,Ue){1&Se&&n.GkF(0)}const o=(Se,Ue)=>({$implicit:Se,options:Ue});function x(Se,Ue){if(1&Se&&(n.ynx(0),n.YNc(1,c,1,0,"ng-container",7),n.BQk()),2&Se){const We=n.oxw(2);n.xp6(),n.Q6J("ngTemplateOutlet",We.contentTemplate)("ngTemplateOutletContext",n.WLB(2,o,We.loadedItems,We.getContentOptions()))}}function u(Se,Ue){1&Se&&n.GkF(0)}function m(Se,Ue){if(1&Se&&(n.ynx(0),n.YNc(1,u,1,0,"ng-container",7),n.BQk()),2&Se){const We=Ue.$implicit,et=Ue.index,Et=n.oxw(3);n.xp6(),n.Q6J("ngTemplateOutlet",Et.itemTemplate)("ngTemplateOutletContext",n.WLB(2,o,We,Et.getOptions(et)))}}const b=Se=>({"p-scroller-loading":Se});function I(Se,Ue){if(1&Se&&(n.TgZ(0,"div",8,9),n.YNc(2,m,2,5,"ng-container",10),n.qZA()),2&Se){const We=n.oxw(2);n.Q6J("ngClass",n.VKq(5,b,We.d_loading))("ngStyle",We.contentStyle),n.uIk("data-pc-section","content"),n.xp6(2),n.Q6J("ngForOf",We.loadedItems)("ngForTrackBy",We._trackBy||We.index)}}function H(Se,Ue){if(1&Se&&n._UZ(0,"div",11),2&Se){const We=n.oxw(2);n.Q6J("ngStyle",We.spacerStyle),n.uIk("data-pc-section","spacer")}}function O(Se,Ue){1&Se&&n.GkF(0)}const P=Se=>({numCols:Se}),G=Se=>({options:Se});function B(Se,Ue){if(1&Se&&(n.ynx(0),n.YNc(1,O,1,0,"ng-container",7),n.BQk()),2&Se){const We=Ue.index,et=n.oxw(4);n.xp6(),n.Q6J("ngTemplateOutlet",et.loaderTemplate)("ngTemplateOutletContext",n.VKq(4,G,et.getLoaderOptions(We,et.both&&n.VKq(2,P,et._numItemsInViewport.cols))))}}function ae(Se,Ue){if(1&Se&&(n.ynx(0),n.YNc(1,B,2,6,"ng-container",14),n.BQk()),2&Se){const We=n.oxw(3);n.xp6(),n.Q6J("ngForOf",We.loaderArr)}}function J(Se,Ue){1&Se&&n.GkF(0)}const q=()=>({styleClass:"p-scroller-loading-icon"});function j(Se,Ue){if(1&Se&&(n.ynx(0),n.YNc(1,J,1,0,"ng-container",7),n.BQk()),2&Se){const We=n.oxw(4);n.xp6(),n.Q6J("ngTemplateOutlet",We.loaderIconTemplate)("ngTemplateOutletContext",n.VKq(3,G,n.DdM(2,q)))}}function Y(Se,Ue){1&Se&&n._UZ(0,"SpinnerIcon",16),2&Se&&(n.Q6J("styleClass","p-scroller-loading-icon pi-spin"),n.uIk("data-pc-section","loadingIcon"))}function K(Se,Ue){if(1&Se&&n.YNc(0,j,2,5,"ng-container",0)(1,Y,1,2,"ng-template",null,15,n.W1O),2&Se){const We=n.MAs(2),et=n.oxw(3);n.Q6J("ngIf",et.loaderIconTemplate)("ngIfElse",We)}}const ne=Se=>({"p-component-overlay":Se});function ee(Se,Ue){if(1&Se&&(n.TgZ(0,"div",12),n.YNc(1,ae,2,1,"ng-container",0)(2,K,3,2,"ng-template",null,13,n.W1O),n.qZA()),2&Se){const We=n.MAs(3),et=n.oxw(2);n.Q6J("ngClass",n.VKq(4,ne,!et.loaderTemplate)),n.uIk("data-pc-section","loader"),n.xp6(),n.Q6J("ngIf",et.loaderTemplate)("ngIfElse",We)}}const $=(Se,Ue,We)=>({"p-scroller":!0,"p-scroller-inline":Se,"p-both-scroll":Ue,"p-horizontal-scroll":We});function ue(Se,Ue){if(1&Se){const We=n.EpF();n.ynx(0),n.TgZ(1,"div",2,3),n.NdJ("scroll",function(Et){n.CHM(We);const lt=n.oxw();return n.KtG(lt.onContainerScroll(Et))}),n.YNc(3,x,2,5,"ng-container",0)(4,I,3,7,"ng-template",null,4,n.W1O)(6,H,1,2,"div",5)(7,ee,4,6,"div",6),n.qZA(),n.BQk()}if(2&Se){const We=n.MAs(5),et=n.oxw();n.xp6(),n.Tol(et._styleClass),n.Q6J("ngStyle",et._style)("ngClass",n.kEZ(12,$,et.inline,et.both,et.horizontal)),n.uIk("id",et._id)("tabindex",et.tabindex)("data-pc-name","scroller")("data-pc-section","root"),n.xp6(2),n.Q6J("ngIf",et.contentTemplate)("ngIfElse",We),n.xp6(3),n.Q6J("ngIf",et._showSpacer),n.xp6(),n.Q6J("ngIf",!et.loaderDisabled&&et._showLoader&&et.d_loading)}}function ge(Se,Ue){1&Se&&n.GkF(0)}const Ke=(Se,Ue)=>({rows:Se,columns:Ue});function at(Se,Ue){if(1&Se&&(n.ynx(0),n.YNc(1,ge,1,0,"ng-container",7),n.BQk()),2&Se){const We=n.oxw(2);n.xp6(),n.Q6J("ngTemplateOutlet",We.contentTemplate)("ngTemplateOutletContext",n.WLB(5,o,We.items,n.WLB(2,Ke,We._items,We.loadedColumns)))}}function Le(Se,Ue){if(1&Se&&(n.Hsn(0),n.YNc(1,at,2,8,"ng-container",17)),2&Se){const We=n.oxw();n.xp6(),n.Q6J("ngIf",We.contentTemplate)}}const R=["*"];let Te=(()=>{class Se{document;platformId;renderer;cd;zone;get id(){return this._id}set id(We){this._id=We}get style(){return this._style}set style(We){this._style=We}get styleClass(){return this._styleClass}set styleClass(We){this._styleClass=We}get tabindex(){return this._tabindex}set tabindex(We){this._tabindex=We}get items(){return this._items}set items(We){this._items=We}get itemSize(){return this._itemSize}set itemSize(We){this._itemSize=We}get scrollHeight(){return this._scrollHeight}set scrollHeight(We){this._scrollHeight=We}get scrollWidth(){return this._scrollWidth}set scrollWidth(We){this._scrollWidth=We}get orientation(){return this._orientation}set orientation(We){this._orientation=We}get step(){return this._step}set step(We){this._step=We}get delay(){return this._delay}set delay(We){this._delay=We}get resizeDelay(){return this._resizeDelay}set resizeDelay(We){this._resizeDelay=We}get appendOnly(){return this._appendOnly}set appendOnly(We){this._appendOnly=We}get inline(){return this._inline}set inline(We){this._inline=We}get lazy(){return this._lazy}set lazy(We){this._lazy=We}get disabled(){return this._disabled}set disabled(We){this._disabled=We}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(We){this._loaderDisabled=We}get columns(){return this._columns}set columns(We){this._columns=We}get showSpacer(){return this._showSpacer}set showSpacer(We){this._showSpacer=We}get showLoader(){return this._showLoader}set showLoader(We){this._showLoader=We}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(We){this._numToleratedItems=We}get loading(){return this._loading}set loading(We){this._loading=We}get autoSize(){return this._autoSize}set autoSize(We){this._autoSize=We}get trackBy(){return this._trackBy}set trackBy(We){this._trackBy=We}get options(){return this._options}set options(We){this._options=We,We&&"object"==typeof We&&Object.entries(We).forEach(([et,Et])=>this[`_${et}`]!==Et&&(this[`_${et}`]=Et))}onLazyLoad=new n.vpe;onScroll=new n.vpe;onScrollIndexChange=new n.vpe;elementViewChild;contentViewChild;templates;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;get vertical(){return"vertical"===this._orientation}get horizontal(){return"horizontal"===this._orientation}get both(){return"both"===this._orientation}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(We=>this._columns?We:We.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}constructor(We,et,Et,lt,Vt){this.document=We,this.platformId=et,this.renderer=Et,this.cd=lt,this.zone=Vt}ngOnInit(){this.setInitialState()}ngOnChanges(We){let et=!1;if(We.loading){const{previousValue:Et,currentValue:lt}=We.loading;this.lazy&&Et!==lt&&lt!==this.d_loading&&(this.d_loading=lt,et=!0)}if(We.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),We.numToleratedItems){const{previousValue:Et,currentValue:lt}=We.numToleratedItems;Et!==lt&&lt!==this.d_numToleratedItems&&(this.d_numToleratedItems=lt)}if(We.options){const{previousValue:Et,currentValue:lt}=We.options;this.lazy&&Et?.loading!==lt?.loading&&lt?.loading!==this.d_loading&&(this.d_loading=lt.loading,et=!0),Et?.numToleratedItems!==lt?.numToleratedItems&&lt?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=lt.numToleratedItems)}this.initialized&&!et&&(We.items?.previousValue?.length!==We.items?.currentValue?.length||We.itemSize||We.scrollHeight||We.scrollWidth)&&(this.init(),this.calculateAutoSize())}ngAfterContentInit(){this.templates.forEach(We=>{switch(We.getType()){case"content":this.contentTemplate=We.template;break;case"item":default:this.itemTemplate=We.template;break;case"loader":this.loaderTemplate=We.template;break;case"loadericon":this.loaderIconTemplate=We.template}})}ngAfterViewInit(){Promise.resolve().then(()=>{this.viewInit()})}ngAfterViewChecked(){this.initialized||this.viewInit()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){(0,e.NF)(this.platformId)&&l.p.isVisible(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=l.p.getWidth(this.elementViewChild?.nativeElement),this.defaultHeight=l.p.getHeight(this.elementViewChild?.nativeElement),this.defaultContentWidth=l.p.getWidth(this.contentEl),this.defaultContentHeight=l.p.getHeight(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(We){this.contentEl=We||this.contentViewChild?.nativeElement||l.p.findSingle(this.elementViewChild?.nativeElement,".p-scroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[],this.spacerStyle={},this.contentStyle={}}getElementRef(){return this.elementViewChild}getPageByFirst(We){return Math.floor(((We??this.first)+4*this.d_numToleratedItems)/(this._step||1))}isPageChanged(We){return!this._step||this.page!==this.getPageByFirst(We??this.first)}scrollTo(We){this.elementViewChild?.nativeElement?.scrollTo(We)}scrollToIndex(We,et="auto"){if(this.both?We.every(lt=>lt>-1):We>-1){const lt=this.first,{scrollTop:Vt=0,scrollLeft:r=0}=this.elementViewChild?.nativeElement,{numToleratedItems:Z}=this.calculateNumItems(),Pt=this.getContentPosition(),Oe=this.itemSize,ye=(Xt=0,Je)=>Xt<=Je?0:Xt,ve=(Xt,Je,dt)=>Xt*Je+dt,ft=(Xt=0,Je=0)=>this.scrollTo({left:Xt,top:Je,behavior:et});let Dt=this.both?{rows:0,cols:0}:0,Rn=!1,ti=!1;this.both?(Dt={rows:ye(We[0],Z[0]),cols:ye(We[1],Z[1])},ft(ve(Dt.cols,Oe[1],Pt.left),ve(Dt.rows,Oe[0],Pt.top)),ti=this.lastScrollPos.top!==Vt||this.lastScrollPos.left!==r,Rn=Dt.rows!==lt.rows||Dt.cols!==lt.cols):(Dt=ye(We,Z),this.horizontal?ft(ve(Dt,Oe,Pt.left),Vt):ft(r,ve(Dt,Oe,Pt.top)),ti=this.lastScrollPos!==(this.horizontal?r:Vt),Rn=Dt!==lt),this.isRangeChanged=Rn,ti&&(this.first=Dt)}}scrollInView(We,et,Et="auto"){if(et){const{first:lt,viewport:Vt}=this.getRenderedRange(),r=(Oe=0,ye=0)=>this.scrollTo({left:Oe,top:ye,behavior:Et}),Pt="to-end"===et;if("to-start"===et){if(this.both)Vt.first.rows-lt.rows>We[0]?r(Vt.first.cols*this._itemSize[1],(Vt.first.rows-1)*this._itemSize[0]):Vt.first.cols-lt.cols>We[1]&&r((Vt.first.cols-1)*this._itemSize[1],Vt.first.rows*this._itemSize[0]);else if(Vt.first-lt>We){const Oe=(Vt.first-1)*this._itemSize;this.horizontal?r(Oe,0):r(0,Oe)}}else if(Pt)if(this.both)Vt.last.rows-lt.rows<=We[0]+1?r(Vt.first.cols*this._itemSize[1],(Vt.first.rows+1)*this._itemSize[0]):Vt.last.cols-lt.cols<=We[1]+1&&r((Vt.first.cols+1)*this._itemSize[1],Vt.first.rows*this._itemSize[0]);else if(Vt.last-lt<=We+1){const Oe=(Vt.first+1)*this._itemSize;this.horizontal?r(Oe,0):r(0,Oe)}}else this.scrollToIndex(We,Et)}getRenderedRange(){const We=(lt,Vt)=>Math.floor(lt/(Vt||lt));let et=this.first,Et=0;if(this.elementViewChild?.nativeElement){const{scrollTop:lt,scrollLeft:Vt}=this.elementViewChild.nativeElement;this.both?(et={rows:We(lt,this._itemSize[0]),cols:We(Vt,this._itemSize[1])},Et={rows:et.rows+this.numItemsInViewport.rows,cols:et.cols+this.numItemsInViewport.cols}):(et=We(this.horizontal?Vt:lt,this._itemSize),Et=et+this.numItemsInViewport)}return{first:this.first,last:this.last,viewport:{first:et,last:Et}}}calculateNumItems(){const We=this.getContentPosition(),et=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-We.left:0)||0,Et=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-We.top:0)||0,lt=(Pt,Oe)=>Math.ceil(Pt/(Oe||Pt)),Vt=Pt=>Math.ceil(Pt/2),r=this.both?{rows:lt(Et,this._itemSize[0]),cols:lt(et,this._itemSize[1])}:lt(this.horizontal?et:Et,this._itemSize);return{numItemsInViewport:r,numToleratedItems:this.d_numToleratedItems||(this.both?[Vt(r.rows),Vt(r.cols)]:Vt(r))}}calculateOptions(){const{numItemsInViewport:We,numToleratedItems:et}=this.calculateNumItems(),Et=(r,Z,Pt,Oe=!1)=>this.getLast(r+Z+(r<Pt?2:3)*Pt,Oe),lt=this.first,Vt=this.both?{rows:Et(this.first.rows,We.rows,et[0]),cols:Et(this.first.cols,We.cols,et[1],!0)}:Et(this.first,We,et);this.last=Vt,this.numItemsInViewport=We,this.d_numToleratedItems=et,this.showLoader&&(this.loaderArr=this.both?Array.from({length:We.rows}).map(()=>Array.from({length:We.cols})):Array.from({length:We})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:lt.cols}:0:lt,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";const[We,et]=[l.p.getWidth(this.contentEl),l.p.getHeight(this.contentEl)];We!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),et!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");const[Et,lt]=[l.p.getWidth(this.elementViewChild.nativeElement),l.p.getHeight(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=Et<this.defaultWidth?Et+"px":this._scrollWidth||this.defaultWidth+"px"),(this.both||this.vertical)&&(this.elementViewChild.nativeElement.style.height=lt<this.defaultHeight?lt+"px":this._scrollHeight||this.defaultHeight+"px"),this.contentEl.style.minHeight=this.contentEl.style.minWidth="",this.contentEl.style.position="",this.elementViewChild.nativeElement.style.contain=""}})}getLast(We=0,et=!1){return this._items?Math.min(et?(this._columns||this._items[0]).length:this._items.length,We):0}getContentPosition(){if(this.contentEl){const We=getComputedStyle(this.contentEl),et=parseFloat(We.paddingLeft)+Math.max(parseFloat(We.left)||0,0),Et=parseFloat(We.paddingRight)+Math.max(parseFloat(We.right)||0,0),lt=parseFloat(We.paddingTop)+Math.max(parseFloat(We.top)||0,0),Vt=parseFloat(We.paddingBottom)+Math.max(parseFloat(We.bottom)||0,0);return{left:et,right:Et,top:lt,bottom:Vt,x:et+Et,y:lt+Vt}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}}setSize(){if(this.elementViewChild?.nativeElement){const We=this.elementViewChild.nativeElement.parentElement.parentElement,et=this._scrollWidth||`${this.elementViewChild.nativeElement.offsetWidth||We.offsetWidth}px`,Et=this._scrollHeight||`${this.elementViewChild.nativeElement.offsetHeight||We.offsetHeight}px`,lt=(Vt,r)=>this.elementViewChild.nativeElement.style[Vt]=r;this.both||this.horizontal?(lt("height",Et),lt("width",et)):lt("height",Et)}}setSpacerSize(){if(this._items){const We=this.getContentPosition(),et=(Et,lt,Vt,r=0)=>this.spacerStyle={...this.spacerStyle,[`${Et}`]:(lt||[]).length*Vt+r+"px"};this.both?(et("height",this._items,this._itemSize[0],We.y),et("width",this._columns||this._items[1],this._itemSize[1],We.x)):this.horizontal?et("width",this._columns||this._items,this._itemSize,We.x):et("height",this._items,this._itemSize,We.y)}}setContentPosition(We){if(this.contentEl&&!this._appendOnly){const et=We?We.first:this.first,Et=(Vt,r)=>Vt*r,lt=(Vt=0,r=0)=>this.contentStyle={...this.contentStyle,transform:`translate3d(${Vt}px, ${r}px, 0)`};if(this.both)lt(Et(et.cols,this._itemSize[1]),Et(et.rows,this._itemSize[0]));else{const Vt=Et(et,this._itemSize);this.horizontal?lt(Vt,0):lt(0,Vt)}}}onScrollPositionChange(We){const et=We.target,Et=this.getContentPosition(),lt=(ti,Xt)=>ti?ti>Xt?ti-Xt:ti:0,Vt=(ti,Xt)=>Math.floor(ti/(Xt||ti)),r=(ti,Xt,Je,dt,Ie,ot)=>ti<=Ie?Ie:ot?Je-dt-Ie:Xt+Ie-1,Z=(ti,Xt,Je,dt,Ie,ot,ct)=>ti<=ot?0:Math.max(0,ct?ti<Xt?Je:ti-ot:ti>Xt?Je:ti-2*ot),Pt=(ti,Xt,Je,dt,Ie,ot=!1)=>{let ct=Xt+dt+2*Ie;return ti>=Ie&&(ct+=Ie+1),this.getLast(ct,ot)},Oe=lt(et.scrollTop,Et.top),ye=lt(et.scrollLeft,Et.left);let ve=this.both?{rows:0,cols:0}:0,ft=this.last,Dt=!1,Rn=this.lastScrollPos;if(this.both){const ti=this.lastScrollPos.top<=Oe,Xt=this.lastScrollPos.left<=ye;if(!this._appendOnly||this._appendOnly&&(ti||Xt)){const Je={rows:Vt(Oe,this._itemSize[0]),cols:Vt(ye,this._itemSize[1])},dt={rows:r(Je.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],ti),cols:r(Je.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],Xt)};ve={rows:Z(Je.rows,dt.rows,this.first.rows,0,0,this.d_numToleratedItems[0],ti),cols:Z(Je.cols,dt.cols,this.first.cols,0,0,this.d_numToleratedItems[1],Xt)},ft={rows:Pt(Je.rows,ve.rows,0,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:Pt(Je.cols,ve.cols,0,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},Dt=ve.rows!==this.first.rows||ft.rows!==this.last.rows||ve.cols!==this.first.cols||ft.cols!==this.last.cols||this.isRangeChanged,Rn={top:Oe,left:ye}}}else{const ti=this.horizontal?ye:Oe,Xt=this.lastScrollPos<=ti;if(!this._appendOnly||this._appendOnly&&Xt){const Je=Vt(ti,this._itemSize);ve=Z(Je,r(Je,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,Xt),this.first,0,0,this.d_numToleratedItems,Xt),ft=Pt(Je,ve,0,this.numItemsInViewport,this.d_numToleratedItems),Dt=ve!==this.first||ft!==this.last||this.isRangeChanged,Rn=ti}}return{first:ve,last:ft,isRangeChanged:Dt,scrollPos:Rn}}onScrollChange(We){const{first:et,last:Et,isRangeChanged:lt,scrollPos:Vt}=this.onScrollPositionChange(We);if(lt){const r={first:et,last:Et};if(this.setContentPosition(r),this.first=et,this.last=Et,this.lastScrollPos=Vt,this.handleEvents("onScrollIndexChange",r),this._lazy&&this.isPageChanged(et)){const Z={first:this._step?Math.min(this.getPageByFirst(et)*this._step,this.items.length-this._step):et,last:Math.min(this._step?(this.getPageByFirst(et)+1)*this._step:Et,this.items.length)};(this.lazyLoadState.first!==Z.first||this.lazyLoadState.last!==Z.last)&&this.handleEvents("onLazyLoad",Z),this.lazyLoadState=Z}}}onContainerScroll(We){if(this.handleEvents("onScroll",{originalEvent:We}),this._delay&&this.isPageChanged()){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){const{isRangeChanged:et}=this.onScrollPositionChange(We);(et||this._step&&this.isPageChanged())&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(We),this.d_loading&&this.showLoader&&(!this._lazy||void 0===this._loading)&&(this.d_loading=!1,this.page=this.getPageByFirst(),this.cd.detectChanges())},this._delay)}else!this.d_loading&&this.onScrollChange(We)}bindResizeListener(){(0,e.NF)(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{const We=this.document.defaultView,et=l.p.isTouchDevice()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(We,et,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(l.p.isVisible(this.elementViewChild?.nativeElement)){const[We,et]=[l.p.getWidth(this.elementViewChild?.nativeElement),l.p.getHeight(this.elementViewChild?.nativeElement)],[Et,lt]=[We!==this.defaultWidth,et!==this.defaultHeight];(this.both?Et||lt:this.horizontal?Et:this.vertical&&lt)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=We,this.defaultHeight=et,this.defaultContentWidth=l.p.getWidth(this.contentEl),this.defaultContentHeight=l.p.getHeight(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(We,et){return this.options&&this.options[We]?this.options[We](et):this[We].emit(et)}getContentOptions(){return{contentStyleClass:"p-scroller-content "+(this.d_loading?"p-scroller-loading":""),items:this.loadedItems,getItemOptions:We=>this.getOptions(We),loading:this.d_loading,getLoaderOptions:(We,et)=>this.getLoaderOptions(We,et),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(We){const et=(this._items||[]).length,Et=this.both?this.first.rows+We:this.first+We;return{index:Et,count:et,first:0===Et,last:Et===et-1,even:Et%2==0,odd:Et%2!=0}}getLoaderOptions(We,et){const Et=this.loaderArr.length;return{index:We,count:Et,first:0===We,last:We===Et-1,even:We%2==0,odd:We%2!=0,...et}}static \u0275fac=function(et){return new(et||Se)(n.Y36(e.K0),n.Y36(n.Lbi),n.Y36(n.Qsj),n.Y36(n.sBO),n.Y36(n.R0b))};static \u0275cmp=n.Xpm({type:Se,selectors:[["p-scroller"]],contentQueries:function(et,Et,lt){if(1&et&&n.Suo(lt,s.jx,4),2&et){let Vt;n.iGM(Vt=n.CRH())&&(Et.templates=Vt)}},viewQuery:function(et,Et){if(1&et&&(n.Gf(t,5),n.Gf(p,5)),2&et){let lt;n.iGM(lt=n.CRH())&&(Et.elementViewChild=lt.first),n.iGM(lt=n.CRH())&&(Et.contentViewChild=lt.first)}},hostAttrs:[1,"p-scroller-viewport","p-element"],inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[n.TTD],ngContentSelectors:R,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["disabledContainer",""],[3,"ngStyle","ngClass","scroll"],["element",""],["buildInContent",""],["class","p-scroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-scroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-scroller-content",3,"ngClass","ngStyle"],["content",""],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-scroller-spacer",3,"ngStyle"],[1,"p-scroller-loader",3,"ngClass"],["buildInLoader",""],[4,"ngFor","ngForOf"],["buildInLoaderIcon",""],[3,"styleClass"],[4,"ngIf"]],template:function(et,Et){if(1&et&&(n.F$t(),n.YNc(0,ue,8,16,"ng-container",0)(1,Le,2,1,"ng-template",null,1,n.W1O)),2&et){const lt=n.MAs(2);n.Q6J("ngIf",!Et._disabled)("ngIfElse",lt)}},dependencies:()=>[e.mk,e.sg,e.O5,e.tP,e.PC,i.L],styles:["@layer primeng{p-scroller{flex:1;outline:0 none}.p-scroller{position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;outline:0 none}.p-scroller-content{position:absolute;top:0;left:0;min-height:100%;min-width:100%;will-change:transform}.p-scroller-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;pointer-events:none}.p-scroller-loader{position:sticky;top:0;left:0;width:100%;height:100%}.p-scroller-loader.p-component-overlay{display:flex;align-items:center;justify-content:center}.p-scroller-loading-icon{scale:2}.p-scroller-inline .p-scroller-content{position:static}}\n"],encapsulation:2})}return Se})(),me=(()=>{class Se{static \u0275fac=function(et){return new(et||Se)};static \u0275mod=n.oAB({type:Se});static \u0275inj=n.cJS({imports:[e.ez,s.m8,i.L,s.m8]})}return Se})()},67338:(gt,X,a)=>{"use strict";a.d(X,{P:()=>m,_:()=>b});var e=a(96814),n=a(19212),s=a(85219),l=a(82076),i=a(2332);const t=["container"],p=["content"],c=["xBar"],o=["yBar"];function x(I,H){1&I&&n.GkF(0)}const u=["*"];let m=(()=>{class I{platformId;el;zone;cd;document;renderer;style;styleClass;step=5;containerViewChild;contentViewChild;xBarViewChild;yBarViewChild;templates;scrollYRatio;scrollXRatio;timeoutFrame=O=>setTimeout(O,0);initialized=!1;lastPageY;lastPageX;isXBarClicked=!1;isYBarClicked=!1;contentTemplate;lastScrollLeft=0;lastScrollTop=0;orientation="vertical";timer;contentId;windowResizeListener;contentScrollListener;mouseEnterListener;xBarMouseDownListener;yBarMouseDownListener;documentMouseMoveListener;documentMouseUpListener;constructor(O,P,G,B,ae,J){this.platformId=O,this.el=P,this.zone=G,this.cd=B,this.document=ae,this.renderer=J,this.contentId=(0,i.Th)()+"_content"}ngAfterViewInit(){(0,e.NF)(this.platformId)&&this.zone.runOutsideAngular(()=>{this.moveBar(),this.moveBar=this.moveBar.bind(this),this.onXBarMouseDown=this.onXBarMouseDown.bind(this),this.onYBarMouseDown=this.onYBarMouseDown.bind(this),this.onDocumentMouseMove=this.onDocumentMouseMove.bind(this),this.onDocumentMouseUp=this.onDocumentMouseUp.bind(this),this.windowResizeListener=this.renderer.listen(window,"resize",this.moveBar),this.contentScrollListener=this.renderer.listen(this.contentViewChild.nativeElement,"scroll",this.moveBar),this.mouseEnterListener=this.renderer.listen(this.contentViewChild.nativeElement,"mouseenter",this.moveBar),this.xBarMouseDownListener=this.renderer.listen(this.xBarViewChild.nativeElement,"mousedown",this.onXBarMouseDown),this.yBarMouseDownListener=this.renderer.listen(this.yBarViewChild.nativeElement,"mousedown",this.onYBarMouseDown),this.calculateContainerHeight(),this.initialized=!0})}ngAfterContentInit(){this.templates.forEach(O=>{O.getType(),this.contentTemplate=O.template})}calculateContainerHeight(){let O=this.containerViewChild.nativeElement,P=this.contentViewChild.nativeElement,G=this.xBarViewChild.nativeElement;const B=this.document.defaultView;let ae=B.getComputedStyle(O),J=B.getComputedStyle(G),q=l.p.getHeight(O)-parseInt(J.height,10);"none"!=ae["max-height"]&&0==q&&(O.style.height=P.offsetHeight+parseInt(J.height,10)>parseInt(ae["max-height"],10)?ae["max-height"]:P.offsetHeight+parseFloat(ae.paddingTop)+parseFloat(ae.paddingBottom)+parseFloat(ae.borderTopWidth)+parseFloat(ae.borderBottomWidth)+"px")}moveBar(){let O=this.containerViewChild.nativeElement,P=this.contentViewChild.nativeElement,G=this.xBarViewChild.nativeElement,B=P.scrollWidth,ae=P.clientWidth,J=-1*(O.clientHeight-G.clientHeight);this.scrollXRatio=ae/B;let q=this.yBarViewChild.nativeElement,j=P.scrollHeight,Y=P.clientHeight,K=-1*(O.clientWidth-q.clientWidth);this.scrollYRatio=Y/j,this.requestAnimationFrame(()=>{if(this.scrollXRatio>=1)G.setAttribute("data-p-scrollpanel-hidden","true"),l.p.addClass(G,"p-scrollpanel-hidden");else{G.setAttribute("data-p-scrollpanel-hidden","false"),l.p.removeClass(G,"p-scrollpanel-hidden");const ne=Math.max(100*this.scrollXRatio,10);G.style.cssText="width:"+ne+"%; left:"+P.scrollLeft*(100-ne)/(B-ae)+"%;bottom:"+J+"px;"}if(this.scrollYRatio>=1)q.setAttribute("data-p-scrollpanel-hidden","true"),l.p.addClass(q,"p-scrollpanel-hidden");else{q.setAttribute("data-p-scrollpanel-hidden","false"),l.p.removeClass(q,"p-scrollpanel-hidden");const ne=Math.max(100*this.scrollYRatio,10);q.style.cssText="height:"+ne+"%; top: calc("+P.scrollTop*(100-ne)/(j-Y)+"% - "+G.clientHeight+"px);right:"+K+"px;"}}),this.cd.markForCheck()}onScroll(O){this.lastScrollLeft!==O.target.scrollLeft?(this.lastScrollLeft=O.target.scrollLeft,this.orientation="horizontal"):this.lastScrollTop!==O.target.scrollTop&&(this.lastScrollTop=O.target.scrollTop,this.orientation="vertical"),this.moveBar()}onKeyDown(O){if("vertical"===this.orientation)switch(O.code){case"ArrowDown":this.setTimer("scrollTop",this.step),O.preventDefault();break;case"ArrowUp":this.setTimer("scrollTop",-1*this.step),O.preventDefault();break;case"ArrowLeft":case"ArrowRight":O.preventDefault()}else if("horizontal"===this.orientation)switch(O.code){case"ArrowRight":this.setTimer("scrollLeft",this.step),O.preventDefault();break;case"ArrowLeft":this.setTimer("scrollLeft",-1*this.step),O.preventDefault();break;case"ArrowDown":case"ArrowUp":O.preventDefault()}}onKeyUp(){this.clearTimer()}repeat(O,P){this.contentViewChild.nativeElement[O]+=P,this.moveBar()}setTimer(O,P){this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(O,P)},40)}clearTimer(){this.timer&&clearTimeout(this.timer)}bindDocumentMouseListeners(){this.documentMouseMoveListener||(this.documentMouseMoveListener=O=>{this.onDocumentMouseMove(O)},this.document.addEventListener("mousemove",this.documentMouseMoveListener)),this.documentMouseUpListener||(this.documentMouseUpListener=O=>{this.onDocumentMouseUp(O)},this.document.addEventListener("mouseup",this.documentMouseUpListener))}unbindDocumentMouseListeners(){this.documentMouseMoveListener&&(this.document.removeEventListener("mousemove",this.documentMouseMoveListener),this.documentMouseMoveListener=null),this.documentMouseUpListener&&(document.removeEventListener("mouseup",this.documentMouseUpListener),this.documentMouseUpListener=null)}onYBarMouseDown(O){this.isYBarClicked=!0,this.yBarViewChild.nativeElement.focus(),this.lastPageY=O.pageY,this.yBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","true"),l.p.addClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","true"),l.p.addClass(this.document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),O.preventDefault()}onXBarMouseDown(O){this.isXBarClicked=!0,this.xBarViewChild.nativeElement.focus(),this.lastPageX=O.pageX,this.xBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),l.p.addClass(this.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","false"),l.p.addClass(this.document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),O.preventDefault()}onDocumentMouseMove(O){this.isXBarClicked?this.onMouseMoveForXBar(O):(this.isYBarClicked||this.onMouseMoveForXBar(O),this.onMouseMoveForYBar(O))}onMouseMoveForXBar(O){let P=O.pageX-this.lastPageX;this.lastPageX=O.pageX,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollLeft+=P/this.scrollXRatio})}onMouseMoveForYBar(O){let P=O.pageY-this.lastPageY;this.lastPageY=O.pageY,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollTop+=P/this.scrollYRatio})}scrollTop(O){let P=this.contentViewChild.nativeElement.scrollHeight-this.contentViewChild.nativeElement.clientHeight;this.contentViewChild.nativeElement.scrollTop=O=O>P?P:O>0?O:0}onFocus(O){this.xBarViewChild.nativeElement.isSameNode(O.target)?this.orientation="horizontal":this.yBarViewChild.nativeElement.isSameNode(O.target)&&(this.orientation="vertical")}onBlur(){"horizontal"===this.orientation&&(this.orientation="vertical")}onDocumentMouseUp(O){this.yBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),l.p.removeClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.xBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),l.p.removeClass(this.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","false"),l.p.removeClass(this.document.body,"p-scrollpanel-grabbed"),this.unbindDocumentMouseListeners(),this.isXBarClicked=!1,this.isYBarClicked=!1}requestAnimationFrame(O){(window.requestAnimationFrame||this.timeoutFrame)(O)}unbindListeners(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null),this.contentScrollListener&&(this.contentScrollListener(),this.contentScrollListener=null),this.mouseEnterListener&&(this.mouseEnterListener(),this.mouseEnterListener=null),this.xBarMouseDownListener&&(this.xBarMouseDownListener(),this.xBarMouseDownListener=null),this.yBarMouseDownListener&&(this.yBarMouseDownListener(),this.yBarMouseDownListener=null)}ngOnDestroy(){this.initialized&&this.unbindListeners()}refresh(){this.moveBar()}static \u0275fac=function(P){return new(P||I)(n.Y36(n.Lbi),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(e.K0),n.Y36(n.Qsj))};static \u0275cmp=n.Xpm({type:I,selectors:[["p-scrollPanel"]],contentQueries:function(P,G,B){if(1&P&&n.Suo(B,s.jx,4),2&P){let ae;n.iGM(ae=n.CRH())&&(G.templates=ae)}},viewQuery:function(P,G){if(1&P&&(n.Gf(t,5),n.Gf(p,5),n.Gf(c,5),n.Gf(o,5)),2&P){let B;n.iGM(B=n.CRH())&&(G.containerViewChild=B.first),n.iGM(B=n.CRH())&&(G.contentViewChild=B.first),n.iGM(B=n.CRH())&&(G.xBarViewChild=B.first),n.iGM(B=n.CRH())&&(G.yBarViewChild=B.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",step:"step"},ngContentSelectors:u,decls:11,vars:16,consts:[[3,"ngClass","ngStyle"],["container",""],[1,"p-scrollpanel-wrapper"],[1,"p-scrollpanel-content",3,"mouseenter","scroll"],["content",""],[4,"ngTemplateOutlet"],["tabindex","0","role","scrollbar",1,"p-scrollpanel-bar","p-scrollpanel-bar-x",3,"mousedown","keydown","keyup","focus","blur"],["xBar",""],["tabindex","0","role","scrollbar",1,"p-scrollpanel-bar","p-scrollpanel-bar-y",3,"mousedown","keydown","keyup","focus"],["yBar",""]],template:function(P,G){1&P&&(n.F$t(),n.TgZ(0,"div",0,1)(2,"div",2)(3,"div",3,4),n.NdJ("mouseenter",function(){return G.moveBar()})("scroll",function(ae){return G.onScroll(ae)}),n.Hsn(5),n.YNc(6,x,1,0,"ng-container",5),n.qZA()(),n.TgZ(7,"div",6,7),n.NdJ("mousedown",function(ae){return G.onXBarMouseDown(ae)})("keydown",function(ae){return G.onKeyDown(ae)})("keyup",function(){return G.onKeyUp()})("focus",function(ae){return G.onFocus(ae)})("blur",function(){return G.onBlur()}),n.qZA(),n.TgZ(9,"div",8,9),n.NdJ("mousedown",function(ae){return G.onYBarMouseDown(ae)})("keydown",function(ae){return G.onKeyDown(ae)})("keyup",function(){return G.onKeyUp()})("focus",function(ae){return G.onFocus(ae)}),n.qZA()()),2&P&&(n.Tol(G.styleClass),n.Q6J("ngClass","p-scrollpanel p-component")("ngStyle",G.style),n.uIk("data-pc-name","scrollpanel"),n.xp6(2),n.uIk("data-pc-section","wrapper"),n.xp6(),n.uIk("data-pc-section","content"),n.xp6(3),n.Q6J("ngTemplateOutlet",G.contentTemplate),n.xp6(),n.uIk("aria-orientation","horizontal")("aria-valuenow",G.lastScrollLeft)("data-pc-section","barx")("aria-controls",G.contentId),n.xp6(2),n.uIk("aria-orientation","vertical")("aria-valuenow",G.lastScrollTop)("data-pc-section","bary")("aria-controls",G.contentId))},dependencies:[e.mk,e.tP,e.PC],styles:["@layer primeng{.p-scrollpanel-wrapper{overflow:hidden;width:100%;height:100%;position:relative;float:left}.p-scrollpanel-content{height:calc(100% + 18px);width:calc(100% + 18px);padding:0 18px 18px 0;position:relative;overflow:auto;box-sizing:border-box}.p-scrollpanel-bar{position:relative;background:#c1c1c1;border-radius:3px;cursor:pointer;opacity:0;transition:opacity .25s linear}.p-scrollpanel-bar-y{width:9px;top:0}.p-scrollpanel-bar-x{height:9px;bottom:0}.p-scrollpanel-hidden{visibility:hidden}.p-scrollpanel:hover .p-scrollpanel-bar,.p-scrollpanel:active .p-scrollpanel-bar{opacity:1}.p-scrollpanel-grabbed{-webkit-user-select:none;user-select:none}}\n"],encapsulation:2,changeDetection:0})}return I})(),b=(()=>{class I{static \u0275fac=function(P){return new(P||I)};static \u0275mod=n.oAB({type:I});static \u0275inj=n.cJS({imports:[e.ez]})}return I})()},1431:(gt,X,a)=>{"use strict";a.d(X,{Q7:()=>xa,iA:()=>nl,U$:()=>dr});var e=a(96814),n=a(19212),s=a(56223),l=a(85219),i=a(40707),t=a(23212),p=a(82076),c=a(73988),o=a(73362),x=a(32314),u=a(12591),m=a(84713),b=a(2332);let I=(()=>{class pn extends m.s{pathId;ngOnInit(){this.pathId="url(#"+(0,b.Th)()+")"}static \u0275fac=(()=>{let nt;return function(fi){return(nt||(nt=n.n5z(pn)))(fi||pn)}})();static \u0275cmp=n.Xpm({type:pn,selectors:[["FilterIcon"]],standalone:!0,features:[n.qOj,n.jDz],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.64708 14H5.35296C5.18981 13.9979 5.03395 13.9321 4.91858 13.8167C4.8032 13.7014 4.73745 13.5455 4.73531 13.3824V7L0.329431 0.98C0.259794 0.889466 0.217389 0.780968 0.20718 0.667208C0.19697 0.553448 0.219379 0.439133 0.271783 0.337647C0.324282 0.236453 0.403423 0.151519 0.500663 0.0920138C0.597903 0.0325088 0.709548 0.000692754 0.823548 0H13.1765C13.2905 0.000692754 13.4021 0.0325088 13.4994 0.0920138C13.5966 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7826 0.780968 13.7402 0.889466 13.6706 0.98L9.26472 7V13.3824C9.26259 13.5455 9.19683 13.7014 9.08146 13.8167C8.96609 13.9321 8.81022 13.9979 8.64708 14ZM5.97061 12.7647H8.02943V6.79412C8.02878 6.66289 8.07229 6.53527 8.15296 6.43177L11.9412 1.23529H2.05884L5.86355 6.43177C5.94422 6.53527 5.98773 6.66289 5.98708 6.79412L5.97061 12.7647Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(Sn,fi){1&Sn&&(n.O4$(),n.TgZ(0,"svg",0)(1,"g"),n._UZ(2,"path",1),n.qZA(),n.TgZ(3,"defs")(4,"clipPath",2),n._UZ(5,"rect",3),n.qZA()()()),2&Sn&&(n.Tol(fi.getClassNames()),n.uIk("aria-label",fi.ariaLabel)("aria-hidden",fi.ariaHidden)("role",fi.role),n.xp6(),n.uIk("clip-path",fi.pathId),n.xp6(3),n.Q6J("id",fi.pathId))},encapsulation:2})}return pn})(),H=(()=>{class pn extends m.s{pathId;ngOnInit(){this.pathId="url(#"+(0,b.Th)()+")"}static \u0275fac=(()=>{let nt;return function(fi){return(nt||(nt=n.n5z(pn)))(fi||pn)}})();static \u0275cmp=n.Xpm({type:pn,selectors:[["FilterSlashIcon"]],standalone:!0,features:[n.qOj,n.jDz],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.4994 0.0920138C13.5967 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7827 0.780968 13.7403 0.889466 13.6707 0.98L11.406 4.06823C11.3099 4.19928 11.1656 4.28679 11.005 4.3115C10.8444 4.33621 10.6805 4.2961 10.5495 4.2C10.4184 4.1039 10.3309 3.95967 10.3062 3.79905C10.2815 3.63843 10.3216 3.47458 10.4177 3.34353L11.9412 1.23529H7.41184C7.24803 1.23529 7.09093 1.17022 6.97509 1.05439C6.85926 0.938558 6.79419 0.781457 6.79419 0.617647C6.79419 0.453837 6.85926 0.296736 6.97509 0.180905C7.09093 0.0650733 7.24803 0 7.41184 0H13.1765C13.2905 0.000692754 13.4022 0.0325088 13.4994 0.0920138ZM4.20008 0.181168H4.24126L13.2013 9.03411C13.3169 9.14992 13.3819 9.3069 13.3819 9.47058C13.3819 9.63426 13.3169 9.79124 13.2013 9.90705C13.1445 9.96517 13.0766 10.0112 13.0016 10.0423C12.9266 10.0735 12.846 10.0891 12.7648 10.0882C12.6836 10.0886 12.6032 10.0728 12.5283 10.0417C12.4533 10.0106 12.3853 9.96479 12.3283 9.90705L9.3142 6.92587L9.26479 6.99999V13.3823C9.26265 13.5455 9.19689 13.7014 9.08152 13.8167C8.96615 13.9321 8.81029 13.9979 8.64714 14H5.35302C5.18987 13.9979 5.03401 13.9321 4.91864 13.8167C4.80327 13.7014 4.73751 13.5455 4.73537 13.3823V6.99999L0.329492 1.02117C0.259855 0.930634 0.21745 0.822137 0.207241 0.708376C0.197031 0.594616 0.21944 0.480301 0.271844 0.378815C0.324343 0.277621 0.403484 0.192687 0.500724 0.133182C0.597964 0.073677 0.709609 0.041861 0.823609 0.0411682H3.86243C3.92448 0.0461551 3.9855 0.060022 4.04361 0.0823446C4.10037 0.10735 4.15311 0.140655 4.20008 0.181168ZM8.02949 6.79411C8.02884 6.66289 8.07235 6.53526 8.15302 6.43176L8.42478 6.05293L3.55773 1.23529H2.0589L5.84714 6.43176C5.92781 6.53526 5.97132 6.66289 5.97067 6.79411V12.7647H8.02949V6.79411Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(Sn,fi){1&Sn&&(n.O4$(),n.TgZ(0,"svg",0)(1,"g"),n._UZ(2,"path",1),n.qZA(),n.TgZ(3,"defs")(4,"clipPath",2),n._UZ(5,"rect",3),n.qZA()()()),2&Sn&&(n.Tol(fi.getClassNames()),n.uIk("aria-label",fi.ariaLabel)("aria-hidden",fi.ariaHidden)("role",fi.role),n.xp6(),n.uIk("clip-path",fi.pathId),n.xp6(3),n.Q6J("id",fi.pathId))},encapsulation:2})}return pn})();var O=a(3983),P=a(33833),G=a(76392),B=a(87273),ae=a(78717);let J=(()=>{class pn extends m.s{pathId;ngOnInit(){this.pathId="url(#"+(0,b.Th)()+")"}static \u0275fac=(()=>{let nt;return function(fi){return(nt||(nt=n.n5z(pn)))(fi||pn)}})();static \u0275cmp=n.Xpm({type:pn,selectors:[["TrashIcon"]],standalone:!0,features:[n.qOj,n.jDz],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M3.44802 13.9955H10.552C10.8056 14.0129 11.06 13.9797 11.3006 13.898C11.5412 13.8163 11.7632 13.6877 11.9537 13.5196C12.1442 13.3515 12.2995 13.1473 12.4104 12.9188C12.5213 12.6903 12.5858 12.442 12.6 12.1884V4.36041H13.4C13.5591 4.36041 13.7117 4.29722 13.8243 4.18476C13.9368 4.07229 14 3.91976 14 3.76071C14 3.60166 13.9368 3.44912 13.8243 3.33666C13.7117 3.22419 13.5591 3.16101 13.4 3.16101H12.0537C12.0203 3.1557 11.9863 3.15299 11.952 3.15299C11.9178 3.15299 11.8838 3.1557 11.8503 3.16101H11.2285C11.2421 3.10893 11.2487 3.05513 11.248 3.00106V1.80966C11.2171 1.30262 10.9871 0.828306 10.608 0.48989C10.229 0.151475 9.73159 -0.0236625 9.22402 0.00257442H4.77602C4.27251 -0.0171866 3.78126 0.160868 3.40746 0.498617C3.03365 0.836366 2.807 1.30697 2.77602 1.80966V3.00106C2.77602 3.0556 2.78346 3.10936 2.79776 3.16101H0.6C0.521207 3.16101 0.443185 3.17652 0.37039 3.20666C0.297595 3.2368 0.231451 3.28097 0.175736 3.33666C0.120021 3.39235 0.0758251 3.45846 0.0456722 3.53121C0.0155194 3.60397 0 3.68196 0 3.76071C0 3.83946 0.0155194 3.91744 0.0456722 3.9902C0.0758251 4.06296 0.120021 4.12907 0.175736 4.18476C0.231451 4.24045 0.297595 4.28462 0.37039 4.31476C0.443185 4.3449 0.521207 4.36041 0.6 4.36041H1.40002V12.1884C1.41426 12.442 1.47871 12.6903 1.58965 12.9188C1.7006 13.1473 1.85582 13.3515 2.04633 13.5196C2.23683 13.6877 2.45882 13.8163 2.69944 13.898C2.94005 13.9797 3.1945 14.0129 3.44802 13.9955ZM2.60002 4.36041H11.304V12.1884C11.304 12.5163 10.952 12.7961 10.504 12.7961H3.40002C2.97602 12.7961 2.60002 12.5163 2.60002 12.1884V4.36041ZM3.95429 3.16101C3.96859 3.10936 3.97602 3.0556 3.97602 3.00106V1.80966C3.97602 1.48183 4.33602 1.20197 4.77602 1.20197H9.24802C9.66403 1.20197 10.048 1.48183 10.048 1.80966V3.00106C10.0473 3.05515 10.054 3.10896 10.0678 3.16101H3.95429ZM5.57571 10.997C5.41731 10.995 5.26597 10.9311 5.15395 10.8191C5.04193 10.7071 4.97808 10.5558 4.97601 10.3973V6.77517C4.97601 6.61612 5.0392 6.46359 5.15166 6.35112C5.26413 6.23866 5.41666 6.17548 5.57571 6.17548C5.73476 6.17548 5.8873 6.23866 5.99976 6.35112C6.11223 6.46359 6.17541 6.61612 6.17541 6.77517V10.3894C6.17647 10.4688 6.16174 10.5476 6.13208 10.6213C6.10241 10.695 6.05841 10.762 6.00261 10.8186C5.94682 10.8751 5.88035 10.92 5.80707 10.9506C5.73378 10.9813 5.65514 10.9971 5.57571 10.997ZM7.99968 10.8214C8.11215 10.9339 8.26468 10.997 8.42373 10.997C8.58351 10.9949 8.73604 10.93 8.84828 10.8163C8.96052 10.7025 9.02345 10.5491 9.02343 10.3894V6.77517C9.02343 6.61612 8.96025 6.46359 8.84778 6.35112C8.73532 6.23866 8.58278 6.17548 8.42373 6.17548C8.26468 6.17548 8.11215 6.23866 7.99968 6.35112C7.88722 6.46359 7.82404 6.61612 7.82404 6.77517V10.3973C7.82404 10.5564 7.88722 10.7089 7.99968 10.8214Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(Sn,fi){1&Sn&&(n.O4$(),n.TgZ(0,"svg",0)(1,"g"),n._UZ(2,"path",1),n.qZA(),n.TgZ(3,"defs")(4,"clipPath",2),n._UZ(5,"rect",3),n.qZA()()()),2&Sn&&(n.Tol(fi.getClassNames()),n.uIk("aria-label",fi.ariaLabel)("aria-hidden",fi.ariaHidden)("role",fi.role),n.xp6(),n.uIk("clip-path",fi.pathId),n.xp6(3),n.Q6J("id",fi.pathId))},encapsulation:2})}return pn})();var q=a(59653),j=a(53714),Y=a(5309),K=a(26489),ne=a(44480);const ee=["container"];function $(pn,bo){if(1&pn&&n._UZ(0,"span",8),2&pn){const nt=n.oxw(2).$implicit;n.Tol(nt.icon),n.Q6J("ngClass","p-button-icon p-button-icon-left"),n.uIk("data-pc-section","icon")}}function ue(pn,bo){if(1&pn&&(n.ynx(0),n.YNc(1,$,1,4,"span",6),n.TgZ(2,"span",7),n._uU(3),n.qZA(),n.BQk()),2&pn){const nt=n.oxw().$implicit,Sn=n.oxw();n.xp6(),n.Q6J("ngIf",nt.icon),n.xp6(),n.uIk("data-pc-section","label"),n.xp6(),n.Oqu(Sn.getOptionLabel(nt))}}function ge(pn,bo){1&pn&&n.GkF(0)}const Ke=(pn,bo)=>({$implicit:pn,index:bo});function at(pn,bo){if(1&pn&&n.YNc(0,ge,1,0,"ng-container",9),2&pn){const nt=n.oxw(),Sn=nt.$implicit,fi=nt.index,$i=n.oxw();n.Q6J("ngTemplateOutlet",$i.selectButtonTemplate)("ngTemplateOutletContext",n.WLB(2,Ke,Sn,fi))}}const Le=(pn,bo,nt)=>({"p-highlight":pn,"p-disabled":bo,"p-button-icon-only":nt});function R(pn,bo){if(1&pn){const nt=n.EpF();n.TgZ(0,"div",3),n.NdJ("click",function(fi){const $i=n.CHM(nt),No=$i.$implicit,Ar=$i.index,xr=n.oxw();return n.KtG(xr.onOptionSelect(fi,No,Ar))})("keydown",function(fi){const $i=n.CHM(nt),No=$i.$implicit,Ar=$i.index,xr=n.oxw();return n.KtG(xr.onKeyDown(fi,No,Ar))})("focus",function(fi){const No=n.CHM(nt).index,Ar=n.oxw();return n.KtG(Ar.onFocus(fi,No))})("blur",function(){n.CHM(nt);const fi=n.oxw();return n.KtG(fi.onBlur())}),n.YNc(1,ue,4,3,"ng-container",4)(2,at,1,5,"ng-template",null,5,n.W1O),n.qZA()}if(2&pn){const nt=bo.$implicit,Sn=bo.index,fi=n.MAs(3),$i=n.oxw();n.Tol(nt.styleClass),n.Q6J("role",$i.multiple?"checkbox":"radio")("ngClass",n.kEZ(14,Le,$i.isSelected(nt),$i.disabled||$i.isOptionDisabled(nt),nt.icon&&!$i.getOptionLabel(nt))),n.uIk("tabindex",Sn===$i.focusedIndex?"0":"-1")("aria-label",nt.label)("aria-checked",$i.isSelected(nt))("aria-disabled",$i.optionDisabled)("aria-pressed",$i.isSelected(nt))("title",nt.title)("aria-labelledby",$i.getOptionLabel(nt))("data-pc-section","button"),n.xp6(),n.Q6J("ngIf",!$i.itemTemplate)("ngIfElse",fi)}}const Te={provide:s.JU,useExisting:(0,n.Gpc)(()=>me),multi:!0};let me=(()=>{class pn{cd;options;optionLabel;optionValue;optionDisabled;unselectable=!1;tabindex=0;multiple;allowEmpty=!0;style;styleClass;ariaLabelledBy;disabled;dataKey;onOptionClick=new n.vpe;onChange=new n.vpe;container;itemTemplate;get selectButtonTemplate(){return this.itemTemplate?.template}get equalityKey(){return this.optionValue?null:this.dataKey}value;onModelChange=()=>{};onModelTouched=()=>{};focusedIndex=0;constructor(nt){this.cd=nt}getOptionLabel(nt){return this.optionLabel?b.gb.resolveFieldData(nt,this.optionLabel):null!=nt.label?nt.label:nt}getOptionValue(nt){return this.optionValue?b.gb.resolveFieldData(nt,this.optionValue):this.optionLabel||void 0===nt.value?nt:nt.value}isOptionDisabled(nt){return this.optionDisabled?b.gb.resolveFieldData(nt,this.optionDisabled):void 0!==nt.disabled&&nt.disabled}writeValue(nt){this.value=nt,this.cd.markForCheck()}registerOnChange(nt){this.onModelChange=nt}registerOnTouched(nt){this.onModelTouched=nt}setDisabledState(nt){this.disabled=nt,this.cd.markForCheck()}onOptionSelect(nt,Sn,fi){if(this.disabled||this.isOptionDisabled(Sn))return;let $i=this.isSelected(Sn);if($i&&this.unselectable)return;let Ar,No=this.getOptionValue(Sn);if(this.multiple)Ar=$i?this.value.filter(xr=>!b.gb.equals(xr,No,this.equalityKey)):this.value?[...this.value,No]:[No];else{if($i&&!this.allowEmpty)return;Ar=$i?null:No}this.focusedIndex=fi,this.value=Ar,this.onModelChange(this.value),this.onChange.emit({originalEvent:nt,value:this.value}),this.onOptionClick.emit({originalEvent:nt,option:Sn,index:fi})}onKeyDown(nt,Sn,fi){switch(nt.code){case"Space":this.onOptionSelect(nt,Sn,fi),nt.preventDefault();break;case"ArrowDown":case"ArrowRight":this.changeTabIndexes(nt,"next"),nt.preventDefault();break;case"ArrowUp":case"ArrowLeft":this.changeTabIndexes(nt,"prev"),nt.preventDefault()}}changeTabIndexes(nt,Sn){let fi,$i;for(let No=0;No<=this.container.nativeElement.children.length-1;No++)"0"===this.container.nativeElement.children[No].getAttribute("tabindex")&&(fi={elem:this.container.nativeElement.children[No],index:No});$i="prev"===Sn?0===fi.index?this.container.nativeElement.children.length-1:fi.index-1:fi.index===this.container.nativeElement.children.length-1?0:fi.index+1,this.focusedIndex=$i,this.container.nativeElement.children[$i].focus()}onFocus(nt,Sn){this.focusedIndex=Sn}onBlur(){this.onModelTouched()}removeOption(nt){this.value=this.value.filter(Sn=>!b.gb.equals(Sn,this.getOptionValue(nt),this.dataKey))}isSelected(nt){let Sn=!1;const fi=this.getOptionValue(nt);if(this.multiple){if(this.value&&Array.isArray(this.value))for(let $i of this.value)if(b.gb.equals($i,fi,this.dataKey)){Sn=!0;break}}else Sn=b.gb.equals(this.getOptionValue(nt),this.value,this.equalityKey);return Sn}static \u0275fac=function(Sn){return new(Sn||pn)(n.Y36(n.sBO))};static \u0275cmp=n.Xpm({type:pn,selectors:[["p-selectButton"]],contentQueries:function(Sn,fi,$i){if(1&Sn&&n.Suo($i,l.jx,5),2&Sn){let No;n.iGM(No=n.CRH())&&(fi.itemTemplate=No.first)}},viewQuery:function(Sn,fi){if(1&Sn&&n.Gf(ee,5),2&Sn){let $i;n.iGM($i=n.CRH())&&(fi.container=$i.first)}},hostAttrs:[1,"p-element"],inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",unselectable:"unselectable",tabindex:"tabindex",multiple:"multiple",allowEmpty:"allowEmpty",style:"style",styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",disabled:"disabled",dataKey:"dataKey"},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[n._Bn([Te])],decls:3,vars:8,consts:[["role","group",3,"ngClass","ngStyle"],["container",""],["pRipple","","class","p-button p-component",3,"role","class","ngClass","click","keydown","focus","blur",4,"ngFor","ngForOf"],["pRipple","",1,"p-button","p-component",3,"role","ngClass","click","keydown","focus","blur"],[4,"ngIf","ngIfElse"],["customcontent",""],[3,"ngClass","class",4,"ngIf"],[1,"p-button-label"],[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(Sn,fi){1&Sn&&(n.TgZ(0,"div",0,1),n.YNc(2,R,4,18,"div",2),n.qZA()),2&Sn&&(n.Tol(fi.styleClass),n.Q6J("ngClass","p-selectbutton p-buttonset p-component")("ngStyle",fi.style),n.uIk("aria-labelledby",fi.ariaLabelledBy)("data-pc-name","selectbutton")("data-pc-section","root"),n.xp6(2),n.Q6J("ngForOf",fi.options))},dependencies:[e.mk,e.sg,e.O5,e.tP,e.PC,ne.H],styles:['@layer primeng{.p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label{flex:1 1 auto}.p-button-icon-right{order:1}.p-button:disabled{cursor:default;pointer-events:none}.p-button-icon-only{justify-content:center}.p-button-icon-only:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}.p-button-vertical{flex-direction:column}.p-button-icon-bottom{order:2}.p-button-group .p-button{margin:0}.p-button-group .p-button:focus,.p-button-group p-button:focus .p-button,.p-buttonset .p-button:focus,.p-buttonset p-button:focus .p-button{position:relative;z-index:1}.p-button-group .p-button:not(:last-child),.p-button-group .p-button:not(:last-child):hover,.p-button-group p-button:not(:last-child) .p-button,.p-button-group p-button:not(:last-child) .p-button:hover,.p-buttonset .p-button:not(:last-child),.p-buttonset .p-button:not(:last-child):hover,.p-buttonset p-button:not(:last-child) .p-button,.p-buttonset p-button:not(:last-child) .p-button:hover{border-right:0 none}.p-button-group .p-button:not(:first-of-type):not(:last-of-type),.p-button-group p-button:not(:first-of-type):not(:last-of-type) .p-button,.p-buttonset .p-button:not(:first-of-type):not(:last-of-type),.p-buttonset p-button:not(:first-of-type):not(:last-of-type) .p-button{border-radius:0}.p-button-group .p-button:first-of-type:not(:only-of-type),.p-button-group p-button:first-of-type:not(:only-of-type) .p-button,.p-buttonset .p-button:first-of-type:not(:only-of-type),.p-buttonset p-button:first-of-type:not(:only-of-type) .p-button{border-top-right-radius:0;border-bottom-right-radius:0}.p-button-group .p-button:last-of-type:not(:only-of-type),.p-button-group p-button:last-of-type:not(:only-of-type) .p-button,.p-buttonset .p-button:last-of-type:not(:only-of-type),.p-buttonset p-button:last-of-type:not(:only-of-type) .p-button{border-top-left-radius:0;border-bottom-left-radius:0}p-button[iconpos=right] spinnericon{order:1}}\n'],encapsulation:2,changeDetection:0})}return pn})(),Se=(()=>{class pn{static \u0275fac=function(Sn){return new(Sn||pn)};static \u0275mod=n.oAB({type:pn});static \u0275inj=n.cJS({imports:[e.ez,ne.T,l.m8,l.m8]})}return pn})();var Ue=a(77778);function We(pn,bo){if(1&pn&&n._UZ(0,"span",8),2&pn){const nt=n.oxw(2);n.Q6J("ngClass",nt.checkboxTrueIcon),n.uIk("data-pc-section","checkIcon")}}function et(pn,bo){1&pn&&n._UZ(0,"CheckIcon",11),2&pn&&(n.Q6J("styleClass","p-checkbox-icon"),n.uIk("data-pc-section","checkIcon"))}function Et(pn,bo){}function lt(pn,bo){1&pn&&n.YNc(0,Et,0,0,"ng-template")}function Vt(pn,bo){if(1&pn&&(n.TgZ(0,"span",12),n.YNc(1,lt,1,0,null,13),n.qZA()),2&pn){const nt=n.oxw(3);n.uIk("data-pc-section","checkIcon"),n.xp6(),n.Q6J("ngTemplateOutlet",nt.checkIconTemplate)}}function r(pn,bo){if(1&pn&&(n.ynx(0),n.YNc(1,et,1,2,"CheckIcon",9)(2,Vt,2,2,"span",10),n.BQk()),2&pn){const nt=n.oxw(2);n.xp6(),n.Q6J("ngIf",!nt.checkIconTemplate),n.xp6(),n.Q6J("ngIf",nt.checkIconTemplate)}}function Z(pn,bo){if(1&pn&&(n.ynx(0),n.YNc(1,We,1,2,"span",7)(2,r,3,2,"ng-container",5),n.BQk()),2&pn){const nt=n.oxw();n.xp6(),n.Q6J("ngIf",nt.checkboxTrueIcon),n.xp6(),n.Q6J("ngIf",!nt.checkboxTrueIcon)}}function Pt(pn,bo){if(1&pn&&n._UZ(0,"span",8),2&pn){const nt=n.oxw(2);n.Q6J("ngClass",nt.checkboxFalseIcon),n.uIk("data-pc-section","uncheckIcon")}}function Oe(pn,bo){1&pn&&n._UZ(0,"TimesIcon",11),2&pn&&(n.Q6J("styleClass","p-checkbox-icon"),n.uIk("data-pc-section","uncheckIcon"))}function ye(pn,bo){}function ve(pn,bo){1&pn&&n.YNc(0,ye,0,0,"ng-template")}function ft(pn,bo){if(1&pn&&(n.TgZ(0,"span",12),n.YNc(1,ve,1,0,null,13),n.qZA()),2&pn){const nt=n.oxw(3);n.uIk("data-pc-section","uncheckIcon"),n.xp6(),n.Q6J("ngTemplateOutlet",nt.uncheckIconTemplate)}}function Dt(pn,bo){if(1&pn&&(n.ynx(0),n.YNc(1,Oe,1,2,"TimesIcon",9)(2,ft,2,2,"span",10),n.BQk()),2&pn){const nt=n.oxw(2);n.xp6(),n.Q6J("ngIf",!nt.uncheckIconTemplate),n.xp6(),n.Q6J("ngIf",nt.uncheckIconTemplate)}}function Rn(pn,bo){if(1&pn&&(n.ynx(0),n.YNc(1,Pt,1,2,"span",7)(2,Dt,3,2,"ng-container",5),n.BQk()),2&pn){const nt=n.oxw();n.xp6(),n.Q6J("ngIf",nt.checkboxFalseIcon),n.xp6(),n.Q6J("ngIf",!nt.checkboxFalseIcon)}}const ti=(pn,bo,nt)=>({"p-checkbox-label-active":pn,"p-disabled":bo,"p-checkbox-label-focus":nt});function Xt(pn,bo){if(1&pn){const nt=n.EpF();n.TgZ(0,"label",14),n.NdJ("click",function(fi){n.CHM(nt);const $i=n.oxw(),No=n.MAs(3);return n.KtG($i.onClick(fi,No))}),n._uU(1),n.qZA()}if(2&pn){const nt=n.oxw();n.Q6J("ngClass",n.kEZ(3,ti,null!=nt.value,nt.disabled,nt.focused)),n.uIk("for",nt.inputId),n.xp6(),n.Oqu(nt.label)}}const Je=(pn,bo)=>({"p-checkbox p-component":!0,"p-checkbox-disabled":pn,"p-checkbox-focused":bo}),dt=(pn,bo,nt)=>({"p-highlight":pn,"p-disabled":bo,"p-focus":nt}),Ie={provide:s.JU,useExisting:(0,n.Gpc)(()=>ot),multi:!0};let ot=(()=>{class pn{cd;constructor(nt){this.cd=nt}disabled;name;ariaLabel;ariaLabelledBy;tabindex;inputId;style;styleClass;label;readonly;checkboxTrueIcon;checkboxFalseIcon;onChange=new n.vpe;templates;checkIconTemplate;uncheckIconTemplate;focused;value;onModelChange=()=>{};onModelTouched=()=>{};onClick(nt,Sn){!this.disabled&&!this.readonly&&(this.toggle(nt),this.focused=!0,Sn.focus())}onKeyDown(nt){"Enter"===nt.key&&(this.toggle(nt),nt.preventDefault())}toggle(nt){null==this.value||null==this.value?this.value=!0:1==this.value?this.value=!1:0==this.value&&(this.value=null),this.onModelChange(this.value),this.onChange.emit({originalEvent:nt,value:this.value})}ngAfterContentInit(){this.templates.forEach(nt=>{switch(nt.getType()){case"checkicon":this.checkIconTemplate=nt.template;break;case"uncheckicon":this.uncheckIconTemplate=nt.template}})}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}registerOnChange(nt){this.onModelChange=nt}registerOnTouched(nt){this.onModelTouched=nt}writeValue(nt){this.value=nt,this.cd.markForCheck()}setDisabledState(nt){this.disabled=nt,this.cd.markForCheck()}static \u0275fac=function(Sn){return new(Sn||pn)(n.Y36(n.sBO))};static \u0275cmp=n.Xpm({type:pn,selectors:[["p-triStateCheckbox"]],contentQueries:function(Sn,fi,$i){if(1&Sn&&n.Suo($i,l.jx,4),2&Sn){let No;n.iGM(No=n.CRH())&&(fi.templates=No)}},hostAttrs:[1,"p-element"],inputs:{disabled:"disabled",name:"name",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",label:"label",readonly:"readonly",checkboxTrueIcon:"checkboxTrueIcon",checkboxFalseIcon:"checkboxFalseIcon"},outputs:{onChange:"onChange"},features:[n._Bn([Ie])],decls:8,vars:26,consts:[[3,"ngStyle","ngClass","click"],[1,"p-hidden-accessible"],["type","checkbox","inputmode","none",3,"name","readonly","disabled","keydown","focus","blur"],["input",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],["class","p-checkbox-label",3,"ngClass","click",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],[1,"p-checkbox-label",3,"ngClass","click"]],template:function(Sn,fi){if(1&Sn){const $i=n.EpF();n.TgZ(0,"div",0),n.NdJ("click",function(Ar){n.CHM($i);const xr=n.MAs(3);return n.KtG(fi.onClick(Ar,xr))}),n.TgZ(1,"div",1)(2,"input",2,3),n.NdJ("keydown",function(Ar){return fi.onKeyDown(Ar)})("focus",function(){return fi.onFocus()})("blur",function(){return fi.onBlur()}),n.qZA()(),n.TgZ(4,"div",4),n.YNc(5,Z,3,2,"ng-container",5)(6,Rn,3,2,"ng-container",5),n.qZA()(),n.YNc(7,Xt,2,7,"label",6)}2&Sn&&(n.Tol(fi.styleClass),n.Q6J("ngStyle",fi.style)("ngClass",n.WLB(19,Je,fi.disabled,fi.focused)),n.uIk("data-pc-name","tristatecheckbox")("data-pc-section","root"),n.xp6(2),n.Q6J("name",fi.name)("readonly",fi.readonly)("disabled",fi.disabled),n.uIk("id",fi.inputId)("tabindex",fi.tabindex)("aria-labelledby",fi.ariaLabelledBy)("aria-label",fi.ariaLabel)("data-pc-section","hiddenInput"),n.xp6(2),n.Q6J("ngClass",n.kEZ(22,dt,null!=fi.value,fi.disabled,fi.focused)),n.uIk("aria-checked",!0===fi.value),n.xp6(),n.Q6J("ngIf",!0===fi.value),n.xp6(),n.Q6J("ngIf",!1===fi.value),n.xp6(),n.Q6J("ngIf",fi.label))},dependencies:()=>[e.mk,e.O5,e.tP,e.PC,u.n,Ue.q],encapsulation:2,changeDetection:0})}return pn})(),ct=(()=>{class pn{static \u0275fac=function(Sn){return new(Sn||pn)};static \u0275mod=n.oAB({type:pn});static \u0275inj=n.cJS({imports:[e.ez,l.m8,u.n,Ue.q,l.m8]})}return pn})();var tn=a(72079);const yi=["container"],ni=["resizeHelper"],sn=["reorderIndicatorUp"],bn=["reorderIndicatorDown"],vt=["wrapper"],nn=["table"],rn=["thead"],ii=["tfoot"],Oo=["scroller"];function no(pn,bo){if(1&pn&&n._UZ(0,"i"),2&pn){const nt=n.oxw(2);n.Tol("p-datatable-loading-icon "+nt.loadingIcon)}}function Li(pn,bo){1&pn&&n._UZ(0,"SpinnerIcon",18),2&pn&&n.Q6J("spin",!0)("styleClass","p-datatable-loading-icon")}function ji(pn,bo){}function Ii(pn,bo){1&pn&&n.YNc(0,ji,0,0,"ng-template")}function _i(pn,bo){if(1&pn&&(n.TgZ(0,"span",19),n.YNc(1,Ii,1,0,null,20),n.qZA()),2&pn){const nt=n.oxw(3);n.xp6(),n.Q6J("ngTemplateOutlet",nt.loadingIconTemplate)}}function En(pn,bo){if(1&pn&&(n.ynx(0),n.YNc(1,Li,1,2,"SpinnerIcon",16)(2,_i,2,1,"span",17),n.BQk()),2&pn){const nt=n.oxw(2);n.xp6(),n.Q6J("ngIf",!nt.loadingIconTemplate),n.xp6(),n.Q6J("ngIf",nt.loadingIconTemplate)}}function co(pn,bo){if(1&pn&&(n.TgZ(0,"div",14),n.YNc(1,no,1,2,"i",15)(2,En,3,2,"ng-container",8),n.qZA()),2&pn){const nt=n.oxw();n.xp6(),n.Q6J("ngIf",nt.loadingIcon),n.xp6(),n.Q6J("ngIf",!nt.loadingIcon)}}function yn(pn,bo){1&pn&&n.GkF(0)}function ln(pn,bo){if(1&pn&&(n.TgZ(0,"div",21),n.YNc(1,yn,1,0,"ng-container",20),n.qZA()),2&pn){const nt=n.oxw();n.xp6(),n.Q6J("ngTemplateOutlet",nt.captionTemplate)}}function He(pn,bo){1&pn&&n.GkF(0)}function rt(pn,bo){if(1&pn&&n.YNc(0,He,1,0,"ng-container",20),2&pn){const nt=n.oxw(3);n.Q6J("ngTemplateOutlet",nt.paginatorDropdownIconTemplate)}}function $e(pn,bo){1&pn&&n.YNc(0,rt,1,1,"ng-template",23)}function Ve(pn,bo){1&pn&&n.GkF(0)}function Ce(pn,bo){if(1&pn&&n.YNc(0,Ve,1,0,"ng-container",20),2&pn){const nt=n.oxw(3);n.Q6J("ngTemplateOutlet",nt.paginatorFirstPageLinkIconTemplate)}}function tt(pn,bo){1&pn&&n.YNc(0,Ce,1,1,"ng-template",24)}function ht(pn,bo){1&pn&&n.GkF(0)}function Qt(pn,bo){if(1&pn&&n.YNc(0,ht,1,0,"ng-container",20),2&pn){const nt=n.oxw(3);n.Q6J("ngTemplateOutlet",nt.paginatorPreviousPageLinkIconTemplate)}}function Un(pn,bo){1&pn&&n.YNc(0,Qt,1,1,"ng-template",25)}function Yt(pn,bo){1&pn&&n.GkF(0)}function Fn(pn,bo){if(1&pn&&n.YNc(0,Yt,1,0,"ng-container",20),2&pn){const nt=n.oxw(3);n.Q6J("ngTemplateOutlet",nt.paginatorLastPageLinkIconTemplate)}}function yt(pn,bo){1&pn&&n.YNc(0,Fn,1,1,"ng-template",26)}function Bt(pn,bo){1&pn&&n.GkF(0)}function li(pn,bo){if(1&pn&&n.YNc(0,Bt,1,0,"ng-container",20),2&pn){const nt=n.oxw(3);n.Q6J("ngTemplateOutlet",nt.paginatorNextPageLinkIconTemplate)}}function si(pn,bo){1&pn&&n.YNc(0,li,1,1,"ng-template",27)}function oo(pn,bo){if(1&pn){const nt=n.EpF();n.TgZ(0,"p-paginator",22),n.NdJ("onPageChange",function(fi){n.CHM(nt);const $i=n.oxw();return n.KtG($i.onPageChange(fi))}),n.YNc(1,$e,1,0,null,8)(2,tt,1,0,null,8)(3,Un,1,0,null,8)(4,yt,1,0,null,8)(5,si,1,0,null,8),n.qZA()}if(2&pn){const nt=n.oxw();n.Q6J("rows",nt.rows)("first",nt.first)("totalRecords",nt.totalRecords)("pageLinkSize",nt.pageLinks)("alwaysShow",nt.alwaysShowPaginator)("rowsPerPageOptions",nt.rowsPerPageOptions)("templateLeft",nt.paginatorLeftTemplate)("templateRight",nt.paginatorRightTemplate)("dropdownAppendTo",nt.paginatorDropdownAppendTo)("dropdownScrollHeight",nt.paginatorDropdownScrollHeight)("currentPageReportTemplate",nt.currentPageReportTemplate)("showFirstLastIcon",nt.showFirstLastIcon)("dropdownItemTemplate",nt.paginatorDropdownItemTemplate)("showCurrentPageReport",nt.showCurrentPageReport)("showJumpToPageDropdown",nt.showJumpToPageDropdown)("showJumpToPageInput",nt.showJumpToPageInput)("showPageLinks",nt.showPageLinks)("styleClass",nt.getPaginatorStyleClasses("p-paginator-top"))("locale",nt.paginatorLocale),n.xp6(),n.Q6J("ngIf",nt.paginatorDropdownIconTemplate),n.xp6(),n.Q6J("ngIf",nt.paginatorFirstPageLinkIconTemplate),n.xp6(),n.Q6J("ngIf",nt.paginatorPreviousPageLinkIconTemplate),n.xp6(),n.Q6J("ngIf",nt.paginatorLastPageLinkIconTemplate),n.xp6(),n.Q6J("ngIf",nt.paginatorNextPageLinkIconTemplate)}}function _o(pn,bo){1&pn&&n.GkF(0)}const Hn=(pn,bo)=>({$implicit:pn,options:bo});function mo(pn,bo){if(1&pn&&n.YNc(0,_o,1,0,"ng-container",31),2&pn){const nt=bo.$implicit,Sn=bo.options;n.oxw(2);const fi=n.MAs(10);n.Q6J("ngTemplateOutlet",fi)("ngTemplateOutletContext",n.WLB(2,Hn,nt,Sn))}}const vn=pn=>({height:pn});function Ji(pn,bo){if(1&pn){const nt=n.EpF();n.TgZ(0,"p-scroller",28,29),n.NdJ("onLazyLoad",function(fi){n.CHM(nt);const $i=n.oxw();return n.KtG($i.onLazyItemLoad(fi))}),n.YNc(2,mo,1,5,"ng-template",30),n.qZA()}if(2&pn){const nt=n.oxw();n.Akn(n.VKq(15,vn,"flex"!==nt.scrollHeight?nt.scrollHeight:void 0)),n.Q6J("items",nt.processedData)("columns",nt.columns)("scrollHeight","flex"!==nt.scrollHeight?void 0:"100%")("itemSize",nt.virtualScrollItemSize||nt._virtualRowHeight)("step",nt.rows)("delay",nt.lazy?nt.virtualScrollDelay:0)("inline",!0)("lazy",nt.lazy)("loaderDisabled",!0)("showSpacer",!1)("showLoader",nt.loadingBodyTemplate)("options",nt.virtualScrollOptions)("autoSize",!0)}}function wn(pn,bo){1&pn&&n.GkF(0)}const po=pn=>({columns:pn});function Kn(pn,bo){if(1&pn&&(n.ynx(0),n.YNc(1,wn,1,0,"ng-container",31),n.BQk()),2&pn){const nt=n.oxw(),Sn=n.MAs(10);n.xp6(),n.Q6J("ngTemplateOutlet",Sn)("ngTemplateOutletContext",n.WLB(4,Hn,nt.processedData,n.VKq(2,po,nt.columns)))}}function Vn(pn,bo){1&pn&&n.GkF(0)}function Wi(pn,bo){1&pn&&n.GkF(0)}function Ft(pn,bo){if(1&pn&&n._UZ(0,"tbody",40),2&pn){const nt=n.oxw().options,Sn=n.oxw();n.Q6J("value",Sn.frozenValue)("frozenRows",!0)("pTableBody",nt.columns)("pTableBodyTemplate",Sn.frozenBodyTemplate)("frozen",!0)}}function Oi(pn,bo){if(1&pn&&n._UZ(0,"tbody",41),2&pn){const nt=n.oxw().options;n.Akn("height: calc("+nt.spacerStyle.height+" - "+nt.rows.length*nt.itemSize+"px);")}}function On(pn,bo){1&pn&&n.GkF(0)}const _n=pn=>({$implicit:pn});function st(pn,bo){if(1&pn&&(n.TgZ(0,"tfoot",42,43),n.YNc(2,On,1,0,"ng-container",31),n.qZA()),2&pn){const nt=n.oxw().options,Sn=n.oxw();n.xp6(2),n.Q6J("ngTemplateOutlet",Sn.footerGroupedTemplate||Sn.footerTemplate)("ngTemplateOutletContext",n.VKq(2,_n,nt.columns))}}const Dn=(pn,bo,nt)=>({"p-datatable-table":!0,"p-datatable-scrollable-table":pn,"p-datatable-resizable-table":bo,"p-datatable-resizable-table-fit":nt});function Wt(pn,bo){if(1&pn&&(n.TgZ(0,"table",32,33),n.YNc(2,Vn,1,0,"ng-container",31),n.TgZ(3,"thead",34,35),n.YNc(5,Wi,1,0,"ng-container",31),n.qZA(),n.YNc(6,Ft,1,5,"tbody",36),n._UZ(7,"tbody",37),n.YNc(8,Oi,1,2,"tbody",38)(9,st,3,4,"tfoot",39),n.qZA()),2&pn){const nt=bo.options,Sn=n.oxw();n.Akn(Sn.tableStyle),n.Tol(Sn.tableStyleClass),n.Q6J("ngClass",n.kEZ(20,Dn,Sn.scrollable,Sn.resizableColumns,Sn.resizableColumns&&"fit"===Sn.columnResizeMode)),n.uIk("id",Sn.id+"-table"),n.xp6(2),n.Q6J("ngTemplateOutlet",Sn.colGroupTemplate)("ngTemplateOutletContext",n.VKq(24,_n,nt.columns)),n.xp6(3),n.Q6J("ngTemplateOutlet",Sn.headerGroupedTemplate||Sn.headerTemplate)("ngTemplateOutletContext",n.VKq(26,_n,nt.columns)),n.xp6(),n.Q6J("ngIf",Sn.frozenValue||Sn.frozenBodyTemplate),n.xp6(),n.Akn(nt.contentStyle),n.Q6J("ngClass",nt.contentStyleClass)("value",Sn.dataToRender(nt.rows))("pTableBody",nt.columns)("pTableBodyTemplate",Sn.bodyTemplate)("scrollerOptions",nt),n.xp6(),n.Q6J("ngIf",nt.spacerStyle),n.xp6(),n.Q6J("ngIf",Sn.footerGroupedTemplate||Sn.footerTemplate)}}function kn(pn,bo){1&pn&&n.GkF(0)}function Fi(pn,bo){if(1&pn&&n.YNc(0,kn,1,0,"ng-container",20),2&pn){const nt=n.oxw(3);n.Q6J("ngTemplateOutlet",nt.paginatorDropdownIconTemplate)}}function ui(pn,bo){1&pn&&n.YNc(0,Fi,1,1,"ng-template",23)}function Fo(pn,bo){1&pn&&n.GkF(0)}function At(pn,bo){if(1&pn&&n.YNc(0,Fo,1,0,"ng-container",20),2&pn){const nt=n.oxw(3);n.Q6J("ngTemplateOutlet",nt.paginatorFirstPageLinkIconTemplate)}}function Jn(pn,bo){1&pn&&n.YNc(0,At,1,1,"ng-template",24)}function Bn(pn,bo){1&pn&&n.GkF(0)}function Bi(pn,bo){if(1&pn&&n.YNc(0,Bn,1,0,"ng-container",20),2&pn){const nt=n.oxw(3);n.Q6J("ngTemplateOutlet",nt.paginatorPreviousPageLinkIconTemplate)}}function $n(pn,bo){1&pn&&n.YNc(0,Bi,1,1,"ng-template",25)}function Ui(pn,bo){1&pn&&n.GkF(0)}function Xo(pn,bo){if(1&pn&&n.YNc(0,Ui,1,0,"ng-container",20),2&pn){const nt=n.oxw(3);n.Q6J("ngTemplateOutlet",nt.paginatorLastPageLinkIconTemplate)}}function bt(pn,bo){1&pn&&n.YNc(0,Xo,1,1,"ng-template",26)}function an(pn,bo){1&pn&&n.GkF(0)}function Wn(pn,bo){if(1&pn&&n.YNc(0,an,1,0,"ng-container",20),2&pn){const nt=n.oxw(3);n.Q6J("ngTemplateOutlet",nt.paginatorNextPageLinkIconTemplate)}}function eo(pn,bo){1&pn&&n.YNc(0,Wn,1,1,"ng-template",27)}function _r(pn,bo){if(1&pn){const nt=n.EpF();n.TgZ(0,"p-paginator",22),n.NdJ("onPageChange",function(fi){n.CHM(nt);const $i=n.oxw();return n.KtG($i.onPageChange(fi))}),n.YNc(1,ui,1,0,null,8)(2,Jn,1,0,null,8)(3,$n,1,0,null,8)(4,bt,1,0,null,8)(5,eo,1,0,null,8),n.qZA()}if(2&pn){const nt=n.oxw();n.Q6J("rows",nt.rows)("first",nt.first)("totalRecords",nt.totalRecords)("pageLinkSize",nt.pageLinks)("alwaysShow",nt.alwaysShowPaginator)("rowsPerPageOptions",nt.rowsPerPageOptions)("templateLeft",nt.paginatorLeftTemplate)("templateRight",nt.paginatorRightTemplate)("dropdownAppendTo",nt.paginatorDropdownAppendTo)("dropdownScrollHeight",nt.paginatorDropdownScrollHeight)("currentPageReportTemplate",nt.currentPageReportTemplate)("showFirstLastIcon",nt.showFirstLastIcon)("dropdownItemTemplate",nt.paginatorDropdownItemTemplate)("showCurrentPageReport",nt.showCurrentPageReport)("showJumpToPageDropdown",nt.showJumpToPageDropdown)("showJumpToPageInput",nt.showJumpToPageInput)("showPageLinks",nt.showPageLinks)("styleClass",nt.getPaginatorStyleClasses("p-paginator-bottom"))("locale",nt.paginatorLocale),n.xp6(),n.Q6J("ngIf",nt.paginatorDropdownIconTemplate),n.xp6(),n.Q6J("ngIf",nt.paginatorFirstPageLinkIconTemplate),n.xp6(),n.Q6J("ngIf",nt.paginatorPreviousPageLinkIconTemplate),n.xp6(),n.Q6J("ngIf",nt.paginatorLastPageLinkIconTemplate),n.xp6(),n.Q6J("ngIf",nt.paginatorNextPageLinkIconTemplate)}}function hr(pn,bo){1&pn&&n.GkF(0)}function In(pn,bo){if(1&pn&&(n.TgZ(0,"div",44),n.YNc(1,hr,1,0,"ng-container",20),n.qZA()),2&pn){const nt=n.oxw();n.xp6(),n.Q6J("ngTemplateOutlet",nt.summaryTemplate)}}function Wr(pn,bo){1&pn&&n._UZ(0,"div",45,46)}function qi(pn,bo){1&pn&&n._UZ(0,"ArrowDownIcon")}function wi(pn,bo){}function zo(pn,bo){1&pn&&n.YNc(0,wi,0,0,"ng-template")}function xi(pn,bo){if(1&pn&&(n.TgZ(0,"span",47,48),n.YNc(2,qi,1,0,"ArrowDownIcon",8)(3,zo,1,0,null,20),n.qZA()),2&pn){const nt=n.oxw();n.xp6(2),n.Q6J("ngIf",!nt.reorderIndicatorUpIconTemplate),n.xp6(),n.Q6J("ngTemplateOutlet",nt.reorderIndicatorUpIconTemplate)}}function ki(pn,bo){1&pn&&n._UZ(0,"ArrowUpIcon")}function wo(pn,bo){}function Ei(pn,bo){1&pn&&n.YNc(0,wo,0,0,"ng-template")}function ho(pn,bo){if(1&pn&&(n.TgZ(0,"span",49,50),n.YNc(2,ki,1,0,"ArrowUpIcon",8)(3,Ei,1,0,null,20),n.qZA()),2&pn){const nt=n.oxw();n.xp6(2),n.Q6J("ngIf",!nt.reorderIndicatorDownIconTemplate),n.xp6(),n.Q6J("ngTemplateOutlet",nt.reorderIndicatorDownIconTemplate)}}const Cr=(pn,bo,nt)=>({"p-datatable p-component":!0,"p-datatable-hoverable-rows":pn,"p-datatable-scrollable":bo,"p-datatable-flex-scrollable":nt}),vr=pn=>({maxHeight:pn}),qr=["pTableBody",""];function Ra(pn,bo){1&pn&&n.GkF(0)}const ss=(pn,bo,nt,Sn,fi)=>({$implicit:pn,rowIndex:bo,columns:nt,editing:Sn,frozen:fi});function Hs(pn,bo){if(1&pn&&(n.ynx(0,3),n.YNc(1,Ra,1,0,"ng-container",4),n.BQk()),2&pn){const nt=n.oxw(),Sn=nt.$implicit,fi=nt.index,$i=n.oxw(2);n.xp6(),n.Q6J("ngTemplateOutlet",$i.dt.groupHeaderTemplate)("ngTemplateOutletContext",n.qbA(2,ss,Sn,$i.getRowIndex(fi),$i.columns,"row"===$i.dt.editMode&&$i.dt.isRowEditing(Sn),$i.frozen))}}function Cs(pn,bo){1&pn&&n.GkF(0)}function ms(pn,bo){if(1&pn&&(n.ynx(0),n.YNc(1,Cs,1,0,"ng-container",4),n.BQk()),2&pn){const nt=n.oxw(),Sn=nt.$implicit,fi=nt.index,$i=n.oxw(2);n.xp6(),n.Q6J("ngTemplateOutlet",Sn?$i.template:$i.dt.loadingBodyTemplate)("ngTemplateOutletContext",n.qbA(2,ss,Sn,$i.getRowIndex(fi),$i.columns,"row"===$i.dt.editMode&&$i.dt.isRowEditing(Sn),$i.frozen))}}function ja(pn,bo){1&pn&&n.GkF(0)}const el=(pn,bo,nt,Sn,fi,$i,No)=>({$implicit:pn,rowIndex:bo,columns:nt,editing:Sn,frozen:fi,rowgroup:$i,rowspan:No});function Vs(pn,bo){if(1&pn&&(n.ynx(0),n.YNc(1,ja,1,0,"ng-container",4),n.BQk()),2&pn){const nt=n.oxw(),Sn=nt.$implicit,fi=nt.index,$i=n.oxw(2);n.xp6(),n.Q6J("ngTemplateOutlet",Sn?$i.template:$i.dt.loadingBodyTemplate)("ngTemplateOutletContext",n.Hh0(2,el,Sn,$i.getRowIndex(fi),$i.columns,"row"===$i.dt.editMode&&$i.dt.isRowEditing(Sn),$i.frozen,$i.shouldRenderRowspan($i.value,Sn,fi),$i.calculateRowGroupSize($i.value,Sn,fi)))}}function ls(pn,bo){1&pn&&n.GkF(0)}function Fa(pn,bo){if(1&pn&&(n.ynx(0,3),n.YNc(1,ls,1,0,"ng-container",4),n.BQk()),2&pn){const nt=n.oxw(),Sn=nt.$implicit,fi=nt.index,$i=n.oxw(2);n.xp6(),n.Q6J("ngTemplateOutlet",$i.dt.groupFooterTemplate)("ngTemplateOutletContext",n.qbA(2,ss,Sn,$i.getRowIndex(fi),$i.columns,"row"===$i.dt.editMode&&$i.dt.isRowEditing(Sn),$i.frozen))}}function Ds(pn,bo){if(1&pn&&n.YNc(0,Hs,2,8,"ng-container",2)(1,ms,2,8,"ng-container",0)(2,Vs,2,10,"ng-container",0)(3,Fa,2,8,"ng-container",2),2&pn){const nt=bo.$implicit,Sn=bo.index,fi=n.oxw(2);n.Q6J("ngIf",fi.dt.groupHeaderTemplate&&!fi.dt.virtualScroll&&"subheader"===fi.dt.rowGroupMode&&fi.shouldRenderRowGroupHeader(fi.value,nt,Sn)),n.xp6(),n.Q6J("ngIf","rowspan"!==fi.dt.rowGroupMode),n.xp6(),n.Q6J("ngIf","rowspan"===fi.dt.rowGroupMode),n.xp6(),n.Q6J("ngIf",fi.dt.groupFooterTemplate&&!fi.dt.virtualScroll&&"subheader"===fi.dt.rowGroupMode&&fi.shouldRenderRowGroupFooter(fi.value,nt,Sn))}}function dl(pn,bo){if(1&pn&&(n.ynx(0),n.YNc(1,Ds,4,4,"ng-template",1),n.BQk()),2&pn){const nt=n.oxw();n.xp6(),n.Q6J("ngForOf",nt.value)("ngForTrackBy",nt.dt.rowTrackBy)}}function ka(pn,bo){1&pn&&n.GkF(0)}const hs=(pn,bo,nt,Sn,fi,$i)=>({$implicit:pn,rowIndex:bo,columns:nt,expanded:Sn,editing:fi,frozen:$i});function Ua(pn,bo){if(1&pn&&(n.ynx(0),n.YNc(1,ka,1,0,"ng-container",4),n.BQk()),2&pn){const nt=n.oxw(),Sn=nt.$implicit,fi=nt.index,$i=n.oxw(2);n.xp6(),n.Q6J("ngTemplateOutlet",$i.template)("ngTemplateOutletContext",n.HTZ(2,hs,Sn,$i.getRowIndex(fi),$i.columns,$i.dt.isRowExpanded(Sn),"row"===$i.dt.editMode&&$i.dt.isRowEditing(Sn),$i.frozen))}}function Tn(pn,bo){1&pn&&n.GkF(0)}function Qi(pn,bo){if(1&pn&&(n.ynx(0,3),n.YNc(1,Tn,1,0,"ng-container",4),n.BQk()),2&pn){const nt=n.oxw(),Sn=nt.$implicit,fi=nt.index,$i=n.oxw(2);n.xp6(),n.Q6J("ngTemplateOutlet",$i.dt.groupHeaderTemplate)("ngTemplateOutletContext",n.HTZ(2,hs,Sn,$i.getRowIndex(fi),$i.columns,$i.dt.isRowExpanded(Sn),"row"===$i.dt.editMode&&$i.dt.isRowEditing(Sn),$i.frozen))}}function To(pn,bo){1&pn&&n.GkF(0)}function sr(pn,bo){1&pn&&n.GkF(0)}function oi(pn,bo){if(1&pn&&(n.ynx(0,3),n.YNc(1,sr,1,0,"ng-container",4),n.BQk()),2&pn){const nt=n.oxw(2),Sn=nt.$implicit,fi=nt.index,$i=n.oxw(2);n.xp6(),n.Q6J("ngTemplateOutlet",$i.dt.groupFooterTemplate)("ngTemplateOutletContext",n.HTZ(2,hs,Sn,$i.getRowIndex(fi),$i.columns,$i.dt.isRowExpanded(Sn),"row"===$i.dt.editMode&&$i.dt.isRowEditing(Sn),$i.frozen))}}const Vi=(pn,bo,nt,Sn)=>({$implicit:pn,rowIndex:bo,columns:nt,frozen:Sn});function Ti(pn,bo){if(1&pn&&(n.ynx(0),n.YNc(1,To,1,0,"ng-container",4)(2,oi,2,9,"ng-container",2),n.BQk()),2&pn){const nt=n.oxw(),Sn=nt.$implicit,fi=nt.index,$i=n.oxw(2);n.xp6(),n.Q6J("ngTemplateOutlet",$i.dt.expandedRowTemplate)("ngTemplateOutletContext",n.l5B(3,Vi,Sn,$i.getRowIndex(fi),$i.columns,$i.frozen)),n.xp6(),n.Q6J("ngIf",$i.dt.groupFooterTemplate&&"subheader"===$i.dt.rowGroupMode&&$i.shouldRenderRowGroupFooter($i.value,Sn,$i.getRowIndex(fi)))}}function Hi(pn,bo){if(1&pn&&n.YNc(0,Ua,2,9,"ng-container",0)(1,Qi,2,9,"ng-container",2)(2,Ti,3,8,"ng-container",0),2&pn){const nt=bo.$implicit,Sn=bo.index,fi=n.oxw(2);n.Q6J("ngIf",!fi.dt.groupHeaderTemplate),n.xp6(),n.Q6J("ngIf",fi.dt.groupHeaderTemplate&&"subheader"===fi.dt.rowGroupMode&&fi.shouldRenderRowGroupHeader(fi.value,nt,fi.getRowIndex(Sn))),n.xp6(),n.Q6J("ngIf",fi.dt.isRowExpanded(nt))}}function Do(pn,bo){if(1&pn&&(n.ynx(0),n.YNc(1,Hi,3,3,"ng-template",1),n.BQk()),2&pn){const nt=n.oxw();n.xp6(),n.Q6J("ngForOf",nt.value)("ngForTrackBy",nt.dt.rowTrackBy)}}function $o(pn,bo){1&pn&&n.GkF(0)}function yr(pn,bo){1&pn&&n.GkF(0)}function Vr(pn,bo){if(1&pn&&(n.ynx(0),n.YNc(1,yr,1,0,"ng-container",4),n.BQk()),2&pn){const nt=n.oxw(),Sn=nt.$implicit,fi=nt.index,$i=n.oxw(2);n.xp6(),n.Q6J("ngTemplateOutlet",$i.dt.frozenExpandedRowTemplate)("ngTemplateOutletContext",n.l5B(2,Vi,Sn,$i.getRowIndex(fi),$i.columns,$i.frozen))}}function da(pn,bo){if(1&pn&&n.YNc(0,$o,1,0,"ng-container",4)(1,Vr,2,7,"ng-container",0),2&pn){const nt=bo.$implicit,Sn=bo.index,fi=n.oxw(2);n.Q6J("ngTemplateOutlet",fi.template)("ngTemplateOutletContext",n.HTZ(3,hs,nt,fi.getRowIndex(Sn),fi.columns,fi.dt.isRowExpanded(nt),"row"===fi.dt.editMode&&fi.dt.isRowEditing(nt),fi.frozen)),n.xp6(),n.Q6J("ngIf",fi.dt.isRowExpanded(nt))}}function Za(pn,bo){if(1&pn&&(n.ynx(0),n.YNc(1,da,2,10,"ng-template",1),n.BQk()),2&pn){const nt=n.oxw();n.xp6(),n.Q6J("ngForOf",nt.value)("ngForTrackBy",nt.dt.rowTrackBy)}}function ma(pn,bo){1&pn&&n.GkF(0)}const Wa=(pn,bo)=>({$implicit:pn,frozen:bo});function Yi(pn,bo){if(1&pn&&(n.ynx(0),n.YNc(1,ma,1,0,"ng-container",4),n.BQk()),2&pn){const nt=n.oxw();n.xp6(),n.Q6J("ngTemplateOutlet",nt.dt.loadingBodyTemplate)("ngTemplateOutletContext",n.WLB(2,Wa,nt.columns,nt.frozen))}}function jo(pn,bo){1&pn&&n.GkF(0)}function Cn(pn,bo){if(1&pn&&(n.ynx(0),n.YNc(1,jo,1,0,"ng-container",4),n.BQk()),2&pn){const nt=n.oxw();n.xp6(),n.Q6J("ngTemplateOutlet",nt.dt.emptyMessageTemplate)("ngTemplateOutletContext",n.WLB(2,Wa,nt.columns,nt.frozen))}}let Fr=(()=>{class pn{sortSource=new tn.xQ;selectionSource=new tn.xQ;contextMenuSource=new tn.xQ;valueSource=new tn.xQ;totalRecordsSource=new tn.xQ;columnsSource=new tn.xQ;sortSource$=this.sortSource.asObservable();selectionSource$=this.selectionSource.asObservable();contextMenuSource$=this.contextMenuSource.asObservable();valueSource$=this.valueSource.asObservable();totalRecordsSource$=this.totalRecordsSource.asObservable();columnsSource$=this.columnsSource.asObservable();onSort(nt){this.sortSource.next(nt)}onSelectionChange(){this.selectionSource.next(null)}onContextMenu(nt){this.contextMenuSource.next(nt)}onValueChange(nt){this.valueSource.next(nt)}onTotalRecordsChange(nt){this.totalRecordsSource.next(nt)}onColumnsChange(nt){this.columnsSource.next(nt)}static \u0275fac=function(Sn){return new(Sn||pn)};static \u0275prov=n.Yz7({token:pn,factory:pn.\u0275fac})}return pn})(),nl=(()=>{class pn{document;platformId;renderer;el;zone;tableService;cd;filterService;overlayService;config;frozenColumns;frozenValue;style;styleClass;tableStyle;tableStyleClass;paginator;pageLinks=5;rowsPerPageOptions;alwaysShowPaginator=!0;paginatorPosition="bottom";paginatorStyleClass;paginatorDropdownAppendTo;paginatorDropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showJumpToPageDropdown;showJumpToPageInput;showFirstLastIcon=!0;showPageLinks=!0;defaultSortOrder=1;sortMode="single";resetPageOnSort=!0;selectionMode;selectionPageOnly;contextMenuSelection;contextMenuSelectionChange=new n.vpe;contextMenuSelectionMode="separate";dataKey;metaKeySelection=!1;rowSelectable;rowTrackBy=(nt,Sn)=>Sn;lazy=!1;lazyLoadOnInit=!0;compareSelectionBy="deepEquals";csvSeparator=",";exportFilename="download";filters={};globalFilterFields;filterDelay=300;filterLocale;expandedRowKeys={};editingRowKeys={};rowExpandMode="multiple";scrollable;scrollDirection="vertical";rowGroupMode;scrollHeight;virtualScroll;virtualScrollItemSize;virtualScrollOptions;virtualScrollDelay=250;frozenWidth;get responsive(){return this._responsive}set responsive(nt){this._responsive=nt,console.warn("responsive property is deprecated as table is always responsive with scrollable behavior.")}_responsive;contextMenu;resizableColumns;columnResizeMode="fit";reorderableColumns;loading;loadingIcon;showLoader=!0;rowHover;customSort;showInitialSortBadge=!0;autoLayout;exportFunction;exportHeader;stateKey;stateStorage="session";editMode="cell";groupRowsBy;groupRowsByOrder=1;responsiveLayout="scroll";breakpoint="640px";paginatorLocale;get value(){return this._value}set value(nt){this._value=nt}get columns(){return this._columns}set columns(nt){this._columns=nt}get first(){return this._first}set first(nt){this._first=nt}get rows(){return this._rows}set rows(nt){this._rows=nt}get totalRecords(){return this._totalRecords}set totalRecords(nt){this._totalRecords=nt,this.tableService.onTotalRecordsChange(this._totalRecords)}get sortField(){return this._sortField}set sortField(nt){this._sortField=nt}get sortOrder(){return this._sortOrder}set sortOrder(nt){this._sortOrder=nt}get multiSortMeta(){return this._multiSortMeta}set multiSortMeta(nt){this._multiSortMeta=nt}get selection(){return this._selection}set selection(nt){this._selection=nt}get selectAll(){return this._selection}set selectAll(nt){this._selection=nt}selectAllChange=new n.vpe;selectionChange=new n.vpe;onRowSelect=new n.vpe;onRowUnselect=new n.vpe;onPage=new n.vpe;onSort=new n.vpe;onFilter=new n.vpe;onLazyLoad=new n.vpe;onRowExpand=new n.vpe;onRowCollapse=new n.vpe;onContextMenuSelect=new n.vpe;onColResize=new n.vpe;onColReorder=new n.vpe;onRowReorder=new n.vpe;onEditInit=new n.vpe;onEditComplete=new n.vpe;onEditCancel=new n.vpe;onHeaderCheckboxToggle=new n.vpe;sortFunction=new n.vpe;firstChange=new n.vpe;rowsChange=new n.vpe;onStateSave=new n.vpe;onStateRestore=new n.vpe;containerViewChild;resizeHelperViewChild;reorderIndicatorUpViewChild;reorderIndicatorDownViewChild;wrapperViewChild;tableViewChild;tableHeaderViewChild;tableFooterViewChild;scroller;templates;get virtualRowHeight(){return this._virtualRowHeight}set virtualRowHeight(nt){this._virtualRowHeight=nt,console.warn("The virtualRowHeight property is deprecated.")}_virtualRowHeight=28;_value=[];_columns;_totalRecords=0;_first=0;_rows;filteredValue;headerTemplate;headerGroupedTemplate;bodyTemplate;loadingBodyTemplate;captionTemplate;footerTemplate;footerGroupedTemplate;summaryTemplate;colGroupTemplate;expandedRowTemplate;groupHeaderTemplate;groupFooterTemplate;frozenExpandedRowTemplate;frozenHeaderTemplate;frozenBodyTemplate;frozenFooterTemplate;frozenColGroupTemplate;emptyMessageTemplate;paginatorLeftTemplate;paginatorRightTemplate;paginatorDropdownItemTemplate;loadingIconTemplate;reorderIndicatorUpIconTemplate;reorderIndicatorDownIconTemplate;sortIconTemplate;checkboxIconTemplate;headerCheckboxIconTemplate;paginatorDropdownIconTemplate;paginatorFirstPageLinkIconTemplate;paginatorLastPageLinkIconTemplate;paginatorPreviousPageLinkIconTemplate;paginatorNextPageLinkIconTemplate;selectionKeys={};lastResizerHelperX;reorderIconWidth;reorderIconHeight;draggedColumn;draggedRowIndex;droppedRowIndex;rowDragging;dropPosition;editingCell;editingCellData;editingCellField;editingCellRowIndex;selfClick;documentEditListener;_multiSortMeta;_sortField;_sortOrder=1;preventSelectionSetterPropagation;_selection;_selectAll=null;anchorRowIndex;rangeRowIndex;filterTimeout;initialized;rowTouched;restoringSort;restoringFilter;stateRestored;columnOrderStateRestored;columnWidthsState;tableWidthState;overlaySubscription;resizeColumnElement;columnResizing=!1;rowGroupHeaderStyleObject={};id=(0,b.Th)();styleElement;responsiveStyleElement;window;constructor(nt,Sn,fi,$i,No,Ar,xr,Sr,ns,Tl){this.document=nt,this.platformId=Sn,this.renderer=fi,this.el=$i,this.zone=No,this.tableService=Ar,this.cd=xr,this.filterService=Sr,this.overlayService=ns,this.config=Tl,this.window=this.document.defaultView}ngOnInit(){this.lazy&&this.lazyLoadOnInit&&(this.virtualScroll||this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.restoringFilter&&(this.restoringFilter=!1)),"stack"===this.responsiveLayout&&this.createResponsiveStyle(),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(nt=>{switch(nt.getType()){case"caption":this.captionTemplate=nt.template;break;case"header":this.headerTemplate=nt.template;break;case"headergrouped":this.headerGroupedTemplate=nt.template;break;case"body":this.bodyTemplate=nt.template;break;case"loadingbody":this.loadingBodyTemplate=nt.template;break;case"footer":this.footerTemplate=nt.template;break;case"footergrouped":this.footerGroupedTemplate=nt.template;break;case"summary":this.summaryTemplate=nt.template;break;case"colgroup":this.colGroupTemplate=nt.template;break;case"rowexpansion":this.expandedRowTemplate=nt.template;break;case"groupheader":this.groupHeaderTemplate=nt.template;break;case"groupfooter":this.groupFooterTemplate=nt.template;break;case"frozenheader":this.frozenHeaderTemplate=nt.template;break;case"frozenbody":this.frozenBodyTemplate=nt.template;break;case"frozenfooter":this.frozenFooterTemplate=nt.template;break;case"frozencolgroup":this.frozenColGroupTemplate=nt.template;break;case"frozenrowexpansion":this.frozenExpandedRowTemplate=nt.template;break;case"emptymessage":this.emptyMessageTemplate=nt.template;break;case"paginatorleft":this.paginatorLeftTemplate=nt.template;break;case"paginatorright":this.paginatorRightTemplate=nt.template;break;case"paginatordropdownicon":this.paginatorDropdownIconTemplate=nt.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=nt.template;break;case"paginatorfirstpagelinkicon":this.paginatorFirstPageLinkIconTemplate=nt.template;break;case"paginatorlastpagelinkicon":this.paginatorLastPageLinkIconTemplate=nt.template;break;case"paginatorpreviouspagelinkicon":this.paginatorPreviousPageLinkIconTemplate=nt.template;break;case"paginatornextpagelinkicon":this.paginatorNextPageLinkIconTemplate=nt.template;break;case"loadingicon":this.loadingIconTemplate=nt.template;break;case"reorderindicatorupicon":this.reorderIndicatorUpIconTemplate=nt.template;break;case"reorderindicatordownicon":this.reorderIndicatorDownIconTemplate=nt.template;break;case"sorticon":this.sortIconTemplate=nt.template;break;case"checkboxicon":this.checkboxIconTemplate=nt.template;break;case"headercheckboxicon":this.headerCheckboxIconTemplate=nt.template}})}ngAfterViewInit(){(0,e.NF)(this.platformId)&&this.isStateful()&&this.resizableColumns&&this.restoreColumnWidths()}ngOnChanges(nt){nt.value&&(this.isStateful()&&!this.stateRestored&&(0,e.NF)(this.platformId)&&this.restoreState(),this._value=nt.value.currentValue,this.lazy||(this.totalRecords=this._value?this._value.length:0,"single"==this.sortMode&&(this.sortField||this.groupRowsBy)?this.sortSingle():"multiple"==this.sortMode&&(this.multiSortMeta||this.groupRowsBy)?this.sortMultiple():this.hasFilter()&&this._filter()),this.tableService.onValueChange(nt.value.currentValue)),nt.columns&&(this._columns=nt.columns.currentValue,this.tableService.onColumnsChange(nt.columns.currentValue),this._columns&&this.isStateful()&&this.reorderableColumns&&!this.columnOrderStateRestored&&this.restoreColumnOrder()),nt.sortField&&(this._sortField=nt.sortField.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),nt.groupRowsBy&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),nt.sortOrder&&(this._sortOrder=nt.sortOrder.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),nt.groupRowsByOrder&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),nt.multiSortMeta&&(this._multiSortMeta=nt.multiSortMeta.currentValue,"multiple"===this.sortMode&&(this.initialized||!this.lazy&&!this.virtualScroll)&&this.sortMultiple()),nt.selection&&(this._selection=nt.selection.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange()),this.preventSelectionSetterPropagation=!1),nt.selectAll&&(this._selectAll=nt.selectAll.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()),this.preventSelectionSetterPropagation=!1)}get processedData(){return this.filteredValue||this.value||[]}_initialColWidths;dataToRender(nt){const Sn=nt||this.processedData;if(Sn&&this.paginator){const fi=this.lazy?0:this.first;return Sn.slice(fi,fi+this.rows)}return Sn}updateSelectionKeys(){if(this.dataKey&&this._selection)if(this.selectionKeys={},Array.isArray(this._selection))for(let nt of this._selection)this.selectionKeys[String(b.gb.resolveFieldData(nt,this.dataKey))]=1;else this.selectionKeys[String(b.gb.resolveFieldData(this._selection,this.dataKey))]=1}onPageChange(nt){this.first=nt.first,this.rows=nt.rows,this.onPage.emit({first:this.first,rows:this.rows}),this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.firstChange.emit(this.first),this.rowsChange.emit(this.rows),this.tableService.onValueChange(this.value),this.isStateful()&&this.saveState(),this.anchorRowIndex=null,this.scrollable&&this.resetScrollTop()}sort(nt){let Sn=nt.originalEvent;if("single"===this.sortMode&&(this._sortOrder=this.sortField===nt.field?-1*this.sortOrder:this.defaultSortOrder,this._sortField=nt.field,this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop()),this.sortSingle()),"multiple"===this.sortMode){let fi=Sn.metaKey||Sn.ctrlKey,$i=this.getSortMeta(nt.field);$i?fi?$i.order=-1*$i.order:(this._multiSortMeta=[{field:nt.field,order:-1*$i.order}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!fi||!this.multiSortMeta)&&(this._multiSortMeta=[],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first))),this._multiSortMeta.push({field:nt.field,order:this.defaultSortOrder})),this.sortMultiple()}this.isStateful()&&this.saveState(),this.anchorRowIndex=null}sortSingle(){let nt=this.sortField||this.groupRowsBy,Sn=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.sortField&&this.groupRowsBy!==this.sortField)return this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],void this.sortMultiple();if(nt&&Sn){this.restoringSort&&(this.restoringSort=!1),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,field:nt,order:Sn}):(this.value.sort(($i,No)=>{let Ar=b.gb.resolveFieldData($i,nt),xr=b.gb.resolveFieldData(No,nt),Sr=null;return Sr=null==Ar&&null!=xr?-1:null!=Ar&&null==xr?1:null==Ar&&null==xr?0:"string"==typeof Ar&&"string"==typeof xr?Ar.localeCompare(xr):Ar<xr?-1:Ar>xr?1:0,Sn*Sr}),this._value=[...this.value]),this.hasFilter()&&this._filter());let fi={field:nt,order:Sn};this.onSort.emit(fi),this.tableService.onSort(fi)}}sortMultiple(){this.groupRowsBy&&(this._multiSortMeta?this.multiSortMeta[0].field!==this.groupRowsBy&&(this._multiSortMeta=[this.getGroupRowsMeta(),...this._multiSortMeta]):this._multiSortMeta=[this.getGroupRowsMeta()]),this.multiSortMeta&&(this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):(this.value.sort((nt,Sn)=>this.multisortField(nt,Sn,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(nt,Sn,fi,$i){const No=b.gb.resolveFieldData(nt,fi[$i].field),Ar=b.gb.resolveFieldData(Sn,fi[$i].field);return 0===b.gb.compare(No,Ar,this.filterLocale)?fi.length-1>$i?this.multisortField(nt,Sn,fi,$i+1):0:this.compareValuesOnSort(No,Ar,fi[$i].order)}compareValuesOnSort(nt,Sn,fi){return b.gb.sort(nt,Sn,fi,this.filterLocale,this.sortOrder)}getSortMeta(nt){if(this.multiSortMeta&&this.multiSortMeta.length)for(let Sn=0;Sn<this.multiSortMeta.length;Sn++)if(this.multiSortMeta[Sn].field===nt)return this.multiSortMeta[Sn];return null}isSorted(nt){if("single"===this.sortMode)return this.sortField&&this.sortField===nt;if("multiple"===this.sortMode){let Sn=!1;if(this.multiSortMeta)for(let fi=0;fi<this.multiSortMeta.length;fi++)if(this.multiSortMeta[fi].field==nt){Sn=!0;break}return Sn}}handleRowClick(nt){let Sn=nt.originalEvent.target,fi=Sn.nodeName,$i=Sn.parentElement&&Sn.parentElement.nodeName;if("INPUT"!=fi&&"BUTTON"!=fi&&"A"!=fi&&"INPUT"!=$i&&"BUTTON"!=$i&&"A"!=$i&&!p.p.hasClass(nt.originalEvent.target,"p-clickable")){if(this.selectionMode){let No=nt.rowData,Ar=nt.rowIndex;if(this.preventSelectionSetterPropagation=!0,this.isMultipleSelectionMode()&&nt.originalEvent.shiftKey&&null!=this.anchorRowIndex)p.p.clearSelection(),null!=this.rangeRowIndex&&this.clearSelectionRange(nt.originalEvent),this.rangeRowIndex=Ar,this.selectRange(nt.originalEvent,Ar);else{let xr=this.isSelected(No);if(!xr&&!this.isRowSelectable(No,Ar))return;let Sr=!this.rowTouched&&this.metaKeySelection,ns=this.dataKey?String(b.gb.resolveFieldData(No,this.dataKey)):null;if(this.anchorRowIndex=Ar,this.rangeRowIndex=Ar,Sr){let Tl=nt.originalEvent.metaKey||nt.originalEvent.ctrlKey;if(xr&&Tl){if(this.isSingleSelectionMode())this._selection=null,this.selectionKeys={},this.selectionChange.emit(null);else{let Fs=this.findIndexInSelection(No);this._selection=this.selection.filter((il,ac)=>ac!=Fs),this.selectionChange.emit(this.selection),ns&&delete this.selectionKeys[ns]}this.onRowUnselect.emit({originalEvent:nt.originalEvent,data:No,type:"row"})}else this.isSingleSelectionMode()?(this._selection=No,this.selectionChange.emit(No),ns&&(this.selectionKeys={},this.selectionKeys[ns]=1)):this.isMultipleSelectionMode()&&(Tl?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,No],this.selectionChange.emit(this.selection),ns&&(this.selectionKeys[ns]=1)),this.onRowSelect.emit({originalEvent:nt.originalEvent,data:No,type:"row",index:Ar})}else if("single"===this.selectionMode)xr?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:nt.originalEvent,data:No,type:"row",index:Ar})):(this._selection=No,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:nt.originalEvent,data:No,type:"row",index:Ar}),ns&&(this.selectionKeys={},this.selectionKeys[ns]=1));else if("multiple"===this.selectionMode)if(xr){let Tl=this.findIndexInSelection(No);this._selection=this.selection.filter((Fs,il)=>il!=Tl),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:nt.originalEvent,data:No,type:"row",index:Ar}),ns&&delete this.selectionKeys[ns]}else this._selection=this.selection?[...this.selection,No]:[No],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:nt.originalEvent,data:No,type:"row",index:Ar}),ns&&(this.selectionKeys[ns]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(nt){this.rowTouched=!0}handleRowRightClick(nt){if(this.contextMenu){const Sn=nt.rowData,fi=nt.rowIndex;if("separate"===this.contextMenuSelectionMode)this.contextMenuSelection=Sn,this.contextMenuSelectionChange.emit(Sn),this.onContextMenuSelect.emit({originalEvent:nt.originalEvent,data:Sn,index:nt.rowIndex}),this.contextMenu.show(nt.originalEvent),this.tableService.onContextMenu(Sn);else if("joint"===this.contextMenuSelectionMode){this.preventSelectionSetterPropagation=!0;let $i=this.isSelected(Sn),No=this.dataKey?String(b.gb.resolveFieldData(Sn,this.dataKey)):null;if(!$i){if(!this.isRowSelectable(Sn,fi))return;this.isSingleSelectionMode()?(this.selection=Sn,this.selectionChange.emit(Sn),No&&(this.selectionKeys={},this.selectionKeys[No]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,Sn]:[Sn],this.selectionChange.emit(this.selection),No&&(this.selectionKeys[No]=1))}this.tableService.onSelectionChange(),this.contextMenu.show(nt.originalEvent),this.onContextMenuSelect.emit({originalEvent:nt,data:Sn,index:nt.rowIndex})}}}selectRange(nt,Sn){let fi,$i;this.anchorRowIndex>Sn?(fi=Sn,$i=this.anchorRowIndex):this.anchorRowIndex<Sn?(fi=this.anchorRowIndex,$i=Sn):(fi=Sn,$i=Sn),this.lazy&&this.paginator&&(fi-=this.first,$i-=this.first);let No=[];for(let Ar=fi;Ar<=$i;Ar++){let xr=this.filteredValue?this.filteredValue[Ar]:this.value[Ar];if(!this.isSelected(xr)){if(!this.isRowSelectable(xr,Sn))continue;No.push(xr),this._selection=[...this.selection,xr];let Sr=this.dataKey?String(b.gb.resolveFieldData(xr,this.dataKey)):null;Sr&&(this.selectionKeys[Sr]=1)}}this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:nt,data:No,type:"row"})}clearSelectionRange(nt){let Sn,fi,$i=this.rangeRowIndex,No=this.anchorRowIndex;$i>No?(Sn=this.anchorRowIndex,fi=this.rangeRowIndex):$i<No?(Sn=this.rangeRowIndex,fi=this.anchorRowIndex):(Sn=this.rangeRowIndex,fi=this.rangeRowIndex);for(let Ar=Sn;Ar<=fi;Ar++){let xr=this.value[Ar],Sr=this.findIndexInSelection(xr);this._selection=this.selection.filter((Tl,Fs)=>Fs!=Sr);let ns=this.dataKey?String(b.gb.resolveFieldData(xr,this.dataKey)):null;ns&&delete this.selectionKeys[ns],this.onRowUnselect.emit({originalEvent:nt,data:xr,type:"row"})}}isSelected(nt){return!(!nt||!this.selection)&&(this.dataKey?void 0!==this.selectionKeys[b.gb.resolveFieldData(nt,this.dataKey)]:Array.isArray(this.selection)?this.findIndexInSelection(nt)>-1:this.equals(nt,this.selection))}findIndexInSelection(nt){let Sn=-1;if(this.selection&&this.selection.length)for(let fi=0;fi<this.selection.length;fi++)if(this.equals(nt,this.selection[fi])){Sn=fi;break}return Sn}isRowSelectable(nt,Sn){return!(this.rowSelectable&&!this.rowSelectable({data:nt,index:Sn}))}toggleRowWithRadio(nt,Sn){if(this.preventSelectionSetterPropagation=!0,this.selection!=Sn){if(!this.isRowSelectable(Sn,nt.rowIndex))return;this._selection=Sn,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:nt.originalEvent,index:nt.rowIndex,data:Sn,type:"radiobutton"}),this.dataKey&&(this.selectionKeys={},this.selectionKeys[String(b.gb.resolveFieldData(Sn,this.dataKey))]=1)}else this._selection=null,this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:nt.originalEvent,index:nt.rowIndex,data:Sn,type:"radiobutton"});this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowWithCheckbox(nt,Sn){this.selection=this.selection||[];let fi=this.isSelected(Sn),$i=this.dataKey?String(b.gb.resolveFieldData(Sn,this.dataKey)):null;if(this.preventSelectionSetterPropagation=!0,fi){let No=this.findIndexInSelection(Sn);this._selection=this.selection.filter((Ar,xr)=>xr!=No),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:nt.originalEvent,index:nt.rowIndex,data:Sn,type:"checkbox"}),$i&&delete this.selectionKeys[$i]}else{if(!this.isRowSelectable(Sn,nt.rowIndex))return;this._selection=this.selection?[...this.selection,Sn]:[Sn],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:nt.originalEvent,index:nt.rowIndex,data:Sn,type:"checkbox"}),$i&&(this.selectionKeys[$i]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox(nt,Sn){if(null!==this._selectAll)this.selectAllChange.emit({originalEvent:nt,checked:Sn});else{const fi=this.selectionPageOnly?this.dataToRender(this.processedData):this.processedData;let $i=this.selectionPageOnly&&this._selection?this._selection.filter(No=>!fi.some(Ar=>this.equals(No,Ar))):[];Sn&&($i=this.frozenValue?[...$i,...this.frozenValue,...fi]:[...$i,...fi],$i=this.rowSelectable?$i.filter((No,Ar)=>this.rowSelectable({data:No,index:Ar})):$i),this._selection=$i,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:nt,checked:Sn}),this.isStateful()&&this.saveState()}}equals(nt,Sn){return"equals"===this.compareSelectionBy?nt===Sn:b.gb.equals(nt,Sn,this.dataKey)}filter(nt,Sn,fi){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(nt)?this.filters[Sn]&&delete this.filters[Sn]:this.filters[Sn]="global"==Sn?{value:nt,matchMode:fi}:[{value:nt,matchMode:fi}],this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(nt,Sn){this.filter(nt,"global",Sn)}isFilterBlank(nt){return null==nt||!!("string"==typeof nt&&0==nt.trim().length||Array.isArray(nt)&&0==nt.length)}_filter(){if(this.restoringFilter||(this.first=0,this.firstChange.emit(this.first)),this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(this.hasFilter()){let nt;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");nt=this.globalFilterFields||this.columns}this.filteredValue=[];for(let Sn=0;Sn<this.value.length;Sn++){let Ar,fi=!0,$i=!1,No=!1;for(let xr in this.filters)if(this.filters.hasOwnProperty(xr)&&"global"!==xr){No=!0;let Sr=xr,ns=this.filters[Sr];if(Array.isArray(ns)){for(let Tl of ns)if(fi=this.executeLocalFilter(Sr,this.value[Sn],Tl),Tl.operator===l.pg.OR&&fi||Tl.operator===l.pg.AND&&!fi)break}else fi=this.executeLocalFilter(Sr,this.value[Sn],ns);if(!fi)break}if(this.filters.global&&!$i&&nt)for(let xr=0;xr<nt.length&&($i=this.filterService.filters[this.filters.global.matchMode](b.gb.resolveFieldData(this.value[Sn],nt[xr].field||nt[xr]),this.filters.global.value,this.filterLocale),!$i);xr++);Ar=this.filters.global?No?No&&fi&&$i:$i:No&&fi,Ar&&this.filteredValue.push(this.value[Sn])}this.filteredValue.length===this.value.length&&(this.filteredValue=null),this.paginator&&(this.totalRecords=this.filteredValue?this.filteredValue.length:this.value?this.value.length:0)}else this.filteredValue=null,this.paginator&&(this.totalRecords=this.value?this.value.length:0)}this.onFilter.emit({filters:this.filters,filteredValue:this.filteredValue||this.value}),this.tableService.onValueChange(this.value),this.isStateful()&&!this.restoringFilter&&this.saveState(),this.restoringFilter&&(this.restoringFilter=!1),this.cd.markForCheck(),this.scrollable&&this.resetScrollTop()}executeLocalFilter(nt,Sn,fi){let $i=fi.value,No=fi.matchMode||l.a6.STARTS_WITH,Ar=b.gb.resolveFieldData(Sn,nt);return(0,this.filterService.filters[No])(Ar,$i,this.filterLocale)}hasFilter(){let nt=!0;for(let Sn in this.filters)if(this.filters.hasOwnProperty(Sn)){nt=!1;break}return!nt}createLazyLoadMetadata(){return{first:this.first,rows:this.rows,sortField:this.sortField,sortOrder:this.sortOrder,filters:this.filters,globalFilter:this.filters&&this.filters.global?this.filters.global.value:null,multiSortMeta:this.multiSortMeta,forceUpdate:()=>this.cd.detectChanges()}}clear(){this._sortField=null,this._sortOrder=this.defaultSortOrder,this._multiSortMeta=null,this.tableService.onSort(null),this.clearFilterValues(),this.filteredValue=null,this.first=0,this.firstChange.emit(this.first),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.totalRecords=this._value?this._value.length:0}clearFilterValues(){for(const[,nt]of Object.entries(this.filters))if(Array.isArray(nt))for(let Sn of nt)Sn.value=null;else nt&&(nt.value=null)}reset(){this.clear()}getExportHeader(nt){return nt[this.exportHeader]||nt.header||nt.field}exportCSV(nt){let Sn,fi="",$i=this.columns;nt&&nt.selectionOnly?Sn=this.selection||[]:nt&&nt.allValues?Sn=this.value||[]:(Sn=this.filteredValue||this.value,this.frozenValue&&(Sn=Sn?[...this.frozenValue,...Sn]:this.frozenValue));const No=$i.filter(ns=>!1!==ns.exportable&&ns.field);fi+=No.map(ns=>'"'+this.getExportHeader(ns)+'"').join(this.csvSeparator);const Ar=Sn.map(ns=>No.map(Tl=>{let Fs=b.gb.resolveFieldData(ns,Tl.field);return Fs=null!=Fs?this.exportFunction?this.exportFunction({data:Fs,field:Tl.field}):String(Fs).replace(/"/g,'""'):"",'"'+Fs+'"'}).join(this.csvSeparator)).join("\n");Ar.length&&(fi+="\n"+Ar);let xr=new Blob([new Uint8Array([239,187,191]),fi],{type:"text/csv;charset=utf-8;"}),Sr=this.renderer.createElement("a");Sr.style.display="none",this.renderer.appendChild(this.document.body,Sr),void 0!==Sr.download?(Sr.setAttribute("href",URL.createObjectURL(xr)),Sr.setAttribute("download",this.exportFilename+".csv"),Sr.click()):(fi="data:text/csv;charset=utf-8,"+fi,this.window.open(encodeURI(fi))),this.renderer.removeChild(this.document.body,Sr)}onLazyItemLoad(nt){this.onLazyLoad.emit({...this.createLazyLoadMetadata(),...nt,rows:nt.last-nt.first})}resetScrollTop(){this.virtualScroll?this.scrollToVirtualIndex(0):this.scrollTo({top:0})}scrollToVirtualIndex(nt){this.scroller&&this.scroller.scrollToIndex(nt)}scrollTo(nt){this.virtualScroll?this.scroller?.scrollTo(nt):this.wrapperViewChild&&this.wrapperViewChild.nativeElement&&(this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement.scrollTo(nt):(this.wrapperViewChild.nativeElement.scrollLeft=nt.left,this.wrapperViewChild.nativeElement.scrollTop=nt.top))}updateEditingCell(nt,Sn,fi,$i){this.editingCell=nt,this.editingCellData=Sn,this.editingCellField=fi,this.editingCellRowIndex=$i,this.bindDocumentEditListener()}isEditingCellValid(){return this.editingCell&&0===p.p.find(this.editingCell,".ng-invalid.ng-dirty").length}bindDocumentEditListener(){this.documentEditListener||(this.documentEditListener=this.renderer.listen(this.document,"click",nt=>{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(p.p.removeClass(this.editingCell,"p-cell-editing"),this.editingCell=null,this.onEditComplete.emit({field:this.editingCellField,data:this.editingCellData,originalEvent:nt,index:this.editingCellRowIndex}),this.editingCellField=null,this.editingCellData=null,this.editingCellRowIndex=null,this.unbindDocumentEditListener(),this.cd.markForCheck(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()),this.selfClick=!1}))}unbindDocumentEditListener(){this.documentEditListener&&(this.documentEditListener(),this.documentEditListener=null)}initRowEdit(nt){let Sn=String(b.gb.resolveFieldData(nt,this.dataKey));this.editingRowKeys[Sn]=!0}saveRowEdit(nt,Sn){if(0===p.p.find(Sn,".ng-invalid.ng-dirty").length){let fi=String(b.gb.resolveFieldData(nt,this.dataKey));delete this.editingRowKeys[fi]}}cancelRowEdit(nt){let Sn=String(b.gb.resolveFieldData(nt,this.dataKey));delete this.editingRowKeys[Sn]}toggleRow(nt,Sn){if(!this.dataKey)throw new Error("dataKey must be defined to use row expansion");let fi=String(b.gb.resolveFieldData(nt,this.dataKey));null!=this.expandedRowKeys[fi]?(delete this.expandedRowKeys[fi],this.onRowCollapse.emit({originalEvent:Sn,data:nt})):("single"===this.rowExpandMode&&(this.expandedRowKeys={}),this.expandedRowKeys[fi]=!0,this.onRowExpand.emit({originalEvent:Sn,data:nt})),Sn&&Sn.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(nt){return!0===this.expandedRowKeys[String(b.gb.resolveFieldData(nt,this.dataKey))]}isRowEditing(nt){return!0===this.editingRowKeys[String(b.gb.resolveFieldData(nt,this.dataKey))]}isSingleSelectionMode(){return"single"===this.selectionMode}isMultipleSelectionMode(){return"multiple"===this.selectionMode}onColumnResizeBegin(nt){let Sn=p.p.getOffset(this.containerViewChild?.nativeElement).left;this.resizeColumnElement=nt.target.parentElement,this.columnResizing=!0,this.lastResizerHelperX=nt.pageX-Sn+this.containerViewChild?.nativeElement.scrollLeft,this.onColumnResize(nt),nt.preventDefault()}onColumnResize(nt){let Sn=p.p.getOffset(this.containerViewChild?.nativeElement).left;p.p.addClass(this.containerViewChild?.nativeElement,"p-unselectable-text"),this.resizeHelperViewChild.nativeElement.style.height=this.containerViewChild?.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",this.resizeHelperViewChild.nativeElement.style.left=nt.pageX-Sn+this.containerViewChild?.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let nt=this.resizeHelperViewChild?.nativeElement.offsetLeft-this.lastResizerHelperX,fi=this.resizeColumnElement.offsetWidth+nt;if(fi>=(this.resizeColumnElement.style.minWidth.replace(/[^\d.]/g,"")||15)){if("fit"===this.columnResizeMode){let Ar=this.resizeColumnElement.nextElementSibling.offsetWidth-nt;fi>15&&Ar>15&&this.resizeTableCells(fi,Ar)}else"expand"===this.columnResizeMode&&(this._initialColWidths=this._totalTableWidth(),this.setResizeTableWidth(this.tableViewChild?.nativeElement.offsetWidth+nt+"px"),this.resizeTableCells(fi,null));this.onColResize.emit({element:this.resizeColumnElement,delta:nt}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",p.p.removeClass(this.containerViewChild?.nativeElement,"p-unselectable-text")}_totalTableWidth(){let nt=[];const Sn=p.p.findSingle(this.containerViewChild.nativeElement,".p-datatable-thead");return p.p.find(Sn,"tr > th").forEach($i=>nt.push(p.p.getOuterWidth($i))),nt}onColumnDragStart(nt,Sn){this.reorderIconWidth=p.p.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild?.nativeElement),this.reorderIconHeight=p.p.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild?.nativeElement),this.draggedColumn=Sn,nt.dataTransfer.setData("text","b")}onColumnDragEnter(nt,Sn){if(this.reorderableColumns&&this.draggedColumn&&Sn){nt.preventDefault();let fi=p.p.getOffset(this.containerViewChild?.nativeElement),$i=p.p.getOffset(Sn);if(this.draggedColumn!=Sn){p.p.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),p.p.indexWithinGroup(Sn,"preorderablecolumn");let xr=$i.left-fi.left,ns=$i.left+Sn.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=$i.top-fi.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=$i.top-fi.top+Sn.offsetHeight+"px",nt.pageX>ns?(this.reorderIndicatorUpViewChild.nativeElement.style.left=xr+Sn.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=xr+Sn.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=xr-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=xr-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),this.reorderIndicatorUpViewChild.nativeElement.style.display="block",this.reorderIndicatorDownViewChild.nativeElement.style.display="block"}else nt.dataTransfer.dropEffect="none"}}onColumnDragLeave(nt){this.reorderableColumns&&this.draggedColumn&&nt.preventDefault()}onColumnDrop(nt,Sn){if(nt.preventDefault(),this.draggedColumn){let fi=p.p.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),$i=p.p.indexWithinGroup(Sn,"preorderablecolumn"),No=fi!=$i;if(No&&($i-fi==1&&-1===this.dropPosition||fi-$i==1&&1===this.dropPosition)&&(No=!1),No&&$i<fi&&1===this.dropPosition&&($i+=1),No&&$i>fi&&-1===this.dropPosition&&($i-=1),No&&(b.gb.reorderArray(this.columns,fi,$i),this.onColReorder.emit({dragIndex:fi,dropIndex:$i,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.resizableColumns&&this.resizeColumnElement){let Ar="expand"===this.columnResizeMode?this._initialColWidths:this._totalTableWidth();b.gb.reorderArray(Ar,fi+1,$i+1),this.updateStyleElement(Ar,fi,null,null)}this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}resizeTableCells(nt,Sn){let fi=p.p.index(this.resizeColumnElement),$i="expand"===this.columnResizeMode?this._initialColWidths:this._totalTableWidth();this.updateStyleElement($i,fi,nt,Sn)}updateStyleElement(nt,Sn,fi,$i){this.destroyStyleElement(),this.createStyleElement();let No="";nt.forEach((Ar,xr)=>{let Sr=xr===Sn?fi:$i&&xr===Sn+1?$i:Ar;No+=`\n                #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${xr+1}),\n                #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${xr+1}),\n                #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${xr+1}) {\n                    width: ${Sr}px !important; max-width: ${Sr}px !important;\n                }\n            `}),this.renderer.setProperty(this.styleElement,"innerHTML",No)}onRowDragStart(nt,Sn){this.rowDragging=!0,this.draggedRowIndex=Sn,nt.dataTransfer.setData("text","b")}onRowDragOver(nt,Sn,fi){if(this.rowDragging&&this.draggedRowIndex!==Sn){let $i=p.p.getOffset(fi).top,No=nt.pageY,Ar=$i+p.p.getOuterHeight(fi)/2,xr=fi.previousElementSibling;No<Ar?(p.p.removeClass(fi,"p-datatable-dragpoint-bottom"),this.droppedRowIndex=Sn,xr?p.p.addClass(xr,"p-datatable-dragpoint-bottom"):p.p.addClass(fi,"p-datatable-dragpoint-top")):(xr?p.p.removeClass(xr,"p-datatable-dragpoint-bottom"):p.p.addClass(fi,"p-datatable-dragpoint-top"),this.droppedRowIndex=Sn+1,p.p.addClass(fi,"p-datatable-dragpoint-bottom"))}}onRowDragLeave(nt,Sn){let fi=Sn.previousElementSibling;fi&&p.p.removeClass(fi,"p-datatable-dragpoint-bottom"),p.p.removeClass(Sn,"p-datatable-dragpoint-bottom"),p.p.removeClass(Sn,"p-datatable-dragpoint-top")}onRowDragEnd(nt){this.rowDragging=!1,this.draggedRowIndex=null,this.droppedRowIndex=null}onRowDrop(nt,Sn){if(null!=this.droppedRowIndex){let fi=this.draggedRowIndex>this.droppedRowIndex?this.droppedRowIndex:0===this.droppedRowIndex?0:this.droppedRowIndex-1;b.gb.reorderArray(this.value,this.draggedRowIndex,fi),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:fi})}this.onRowDragLeave(nt,Sn),this.onRowDragEnd(nt)}isEmpty(){let nt=this.filteredValue||this.value;return null==nt||0==nt.length}getBlockableElement(){return this.el.nativeElement.children[0]}getStorage(){if(!(0,e.NF)(this.platformId))throw new Error("Browser storage is not available in the server side.");switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}}isStateful(){return null!=this.stateKey}saveState(){const nt=this.getStorage();let Sn={};this.paginator&&(Sn.first=this.first,Sn.rows=this.rows),this.sortField&&(Sn.sortField=this.sortField,Sn.sortOrder=this.sortOrder),this.multiSortMeta&&(Sn.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(Sn.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(Sn),this.reorderableColumns&&this.saveColumnOrder(Sn),this.selection&&(Sn.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(Sn.expandedRowKeys=this.expandedRowKeys),nt.setItem(this.stateKey,JSON.stringify(Sn)),this.onStateSave.emit(Sn)}clearState(){const nt=this.getStorage();this.stateKey&&nt.removeItem(this.stateKey)}restoreState(){const Sn=this.getStorage().getItem(this.stateKey),fi=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;if(Sn){let No=JSON.parse(Sn,function(No,Ar){return"string"==typeof Ar&&fi.test(Ar)?new Date(Ar):Ar});this.paginator&&(void 0!==this.first&&(this.first=No.first,this.firstChange.emit(this.first)),void 0!==this.rows&&(this.rows=No.rows,this.rowsChange.emit(this.rows))),No.sortField&&(this.restoringSort=!0,this._sortField=No.sortField,this._sortOrder=No.sortOrder),No.multiSortMeta&&(this.restoringSort=!0,this._multiSortMeta=No.multiSortMeta),No.filters&&(this.restoringFilter=!0,this.filters=No.filters),this.resizableColumns&&(this.columnWidthsState=No.columnWidths,this.tableWidthState=No.tableWidth),No.expandedRowKeys&&(this.expandedRowKeys=No.expandedRowKeys),No.selection&&Promise.resolve(null).then(()=>this.selectionChange.emit(No.selection)),this.stateRestored=!0,this.onStateRestore.emit(No)}}saveColumnWidths(nt){let Sn=[];p.p.find(this.containerViewChild?.nativeElement,".p-datatable-thead > tr > th").forEach($i=>Sn.push(p.p.getOuterWidth($i))),nt.columnWidths=Sn.join(","),"expand"===this.columnResizeMode&&(nt.tableWidth=p.p.getOuterWidth(this.tableViewChild?.nativeElement))}setResizeTableWidth(nt){this.tableViewChild.nativeElement.style.width=nt,this.tableViewChild.nativeElement.style.minWidth=nt}restoreColumnWidths(){if(this.columnWidthsState){let nt=this.columnWidthsState.split(",");if("expand"===this.columnResizeMode&&this.tableWidthState&&this.setResizeTableWidth(this.tableWidthState+"px"),b.gb.isNotEmpty(nt)){this.createStyleElement();let Sn="";nt.forEach((fi,$i)=>{Sn+=`\n                        #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${$i+1}),\n                        #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${$i+1}),\n                        #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${$i+1}) {\n                            width: ${fi}px !important; max-width: ${fi}px !important\n                        }\n                    `}),this.styleElement.innerHTML=Sn}}}saveColumnOrder(nt){if(this.columns){let Sn=[];this.columns.map(fi=>{Sn.push(fi.field||fi.key)}),nt.columnOrder=Sn}}restoreColumnOrder(){const Sn=this.getStorage().getItem(this.stateKey);if(Sn){let $i=JSON.parse(Sn).columnOrder;if($i){let No=[];$i.map(Ar=>{let xr=this.findColumnByKey(Ar);xr&&No.push(xr)}),this.columnOrderStateRestored=!0,this.columns=No}}}findColumnByKey(nt){if(!this.columns)return null;for(let Sn of this.columns)if(Sn.key===nt||Sn.field===nt)return Sn}createStyleElement(){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement)}getGroupRowsMeta(){return{field:this.groupRowsBy,order:this.groupRowsByOrder}}createResponsiveStyle(){(0,e.NF)(this.platformId)&&!this.responsiveStyleElement&&(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.head,this.responsiveStyleElement),this.renderer.setProperty(this.responsiveStyleElement,"innerHTML",`\n    @media screen and (max-width: ${this.breakpoint}) {\n        #${this.id}-table > .p-datatable-thead > tr > th,\n        #${this.id}-table > .p-datatable-tfoot > tr > td {\n            display: none !important;\n        }\n\n        #${this.id}-table > .p-datatable-tbody > tr > td {\n            display: flex;\n            width: 100% !important;\n            align-items: center;\n            justify-content: space-between;\n        }\n\n        #${this.id}-table > .p-datatable-tbody > tr > td:not(:last-child) {\n            border: 0 none;\n        }\n\n        #${this.id}.p-datatable-gridlines > .p-datatable-wrapper > .p-datatable-table > .p-datatable-tbody > tr > td:last-child {\n            border-top: 0;\n            border-right: 0;\n            border-left: 0;\n        }\n\n        #${this.id}-table > .p-datatable-tbody > tr > td > .p-column-title {\n            display: block;\n        }\n    }\n    `))}destroyResponsiveStyle(){this.responsiveStyleElement&&(this.renderer.removeChild(this.document.head,this.responsiveStyleElement),this.responsiveStyleElement=null)}destroyStyleElement(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.initialized=null,this.destroyStyleElement(),this.destroyResponsiveStyle()}getPaginatorStyleClasses(nt){return[this.paginatorStyleClass,nt].filter(Sn=>!!Sn).join(" ").trim()}static \u0275fac=function(Sn){return new(Sn||pn)(n.Y36(e.K0),n.Y36(n.Lbi),n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Fr),n.Y36(n.sBO),n.Y36(l.iZ),n.Y36(l.F0),n.Y36(l.b4))};static \u0275cmp=n.Xpm({type:pn,selectors:[["p-table"]],contentQueries:function(Sn,fi,$i){if(1&Sn&&n.Suo($i,l.jx,4),2&Sn){let No;n.iGM(No=n.CRH())&&(fi.templates=No)}},viewQuery:function(Sn,fi){if(1&Sn&&(n.Gf(yi,5),n.Gf(ni,5),n.Gf(sn,5),n.Gf(bn,5),n.Gf(vt,5),n.Gf(nn,5),n.Gf(rn,5),n.Gf(ii,5),n.Gf(Oo,5)),2&Sn){let $i;n.iGM($i=n.CRH())&&(fi.containerViewChild=$i.first),n.iGM($i=n.CRH())&&(fi.resizeHelperViewChild=$i.first),n.iGM($i=n.CRH())&&(fi.reorderIndicatorUpViewChild=$i.first),n.iGM($i=n.CRH())&&(fi.reorderIndicatorDownViewChild=$i.first),n.iGM($i=n.CRH())&&(fi.wrapperViewChild=$i.first),n.iGM($i=n.CRH())&&(fi.tableViewChild=$i.first),n.iGM($i=n.CRH())&&(fi.tableHeaderViewChild=$i.first),n.iGM($i=n.CRH())&&(fi.tableFooterViewChild=$i.first),n.iGM($i=n.CRH())&&(fi.scroller=$i.first)}},hostAttrs:[1,"p-element"],inputs:{frozenColumns:"frozenColumns",frozenValue:"frozenValue",style:"style",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",paginator:"paginator",pageLinks:"pageLinks",rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:"alwaysShowPaginator",paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showFirstLastIcon:"showFirstLastIcon",showPageLinks:"showPageLinks",defaultSortOrder:"defaultSortOrder",sortMode:"sortMode",resetPageOnSort:"resetPageOnSort",selectionMode:"selectionMode",selectionPageOnly:"selectionPageOnly",contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:"metaKeySelection",rowSelectable:"rowSelectable",rowTrackBy:"rowTrackBy",lazy:"lazy",lazyLoadOnInit:"lazyLoadOnInit",compareSelectionBy:"compareSelectionBy",csvSeparator:"csvSeparator",exportFilename:"exportFilename",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:"filterDelay",filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:"scrollable",scrollDirection:"scrollDirection",rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",virtualScrollDelay:"virtualScrollDelay",frozenWidth:"frozenWidth",responsive:"responsive",contextMenu:"contextMenu",resizableColumns:"resizableColumns",columnResizeMode:"columnResizeMode",reorderableColumns:"reorderableColumns",loading:"loading",loadingIcon:"loadingIcon",showLoader:"showLoader",rowHover:"rowHover",customSort:"customSort",showInitialSortBadge:"showInitialSortBadge",autoLayout:"autoLayout",exportFunction:"exportFunction",exportHeader:"exportHeader",stateKey:"stateKey",stateStorage:"stateStorage",editMode:"editMode",groupRowsBy:"groupRowsBy",groupRowsByOrder:"groupRowsByOrder",responsiveLayout:"responsiveLayout",breakpoint:"breakpoint",paginatorLocale:"paginatorLocale",value:"value",columns:"columns",first:"first",rows:"rows",totalRecords:"totalRecords",sortField:"sortField",sortOrder:"sortOrder",multiSortMeta:"multiSortMeta",selection:"selection",selectAll:"selectAll",virtualRowHeight:"virtualRowHeight"},outputs:{contextMenuSelectionChange:"contextMenuSelectionChange",selectAllChange:"selectAllChange",selectionChange:"selectionChange",onRowSelect:"onRowSelect",onRowUnselect:"onRowUnselect",onPage:"onPage",onSort:"onSort",onFilter:"onFilter",onLazyLoad:"onLazyLoad",onRowExpand:"onRowExpand",onRowCollapse:"onRowCollapse",onContextMenuSelect:"onContextMenuSelect",onColResize:"onColResize",onColReorder:"onColReorder",onRowReorder:"onRowReorder",onEditInit:"onEditInit",onEditComplete:"onEditComplete",onEditCancel:"onEditCancel",onHeaderCheckboxToggle:"onHeaderCheckboxToggle",sortFunction:"sortFunction",firstChange:"firstChange",rowsChange:"rowsChange",onStateSave:"onStateSave",onStateRestore:"onStateRestore"},features:[n._Bn([Fr]),n.TTD],decls:16,vars:22,consts:[[3,"ngStyle","ngClass"],["container",""],["class","p-datatable-loading-overlay p-component-overlay",4,"ngIf"],["class","p-datatable-header",4,"ngIf"],[3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],[1,"p-datatable-wrapper",3,"ngStyle"],["wrapper",""],[3,"items","columns","style","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize","onLazyLoad",4,"ngIf"],[4,"ngIf"],["buildInTable",""],["class","p-datatable-footer",4,"ngIf"],["class","p-column-resizer-helper","style","display:none",4,"ngIf"],["class","p-datatable-reorder-indicator-up","style","display: none;",4,"ngIf"],["class","p-datatable-reorder-indicator-down","style","display: none;",4,"ngIf"],[1,"p-datatable-loading-overlay","p-component-overlay"],[3,"class",4,"ngIf"],[3,"spin","styleClass",4,"ngIf"],["class","p-datatable-loading-icon",4,"ngIf"],[3,"spin","styleClass"],[1,"p-datatable-loading-icon"],[4,"ngTemplateOutlet"],[1,"p-datatable-header"],[3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange"],["pTemplate","dropdownicon"],["pTemplate","firstpagelinkicon"],["pTemplate","previouspagelinkicon"],["pTemplate","lastpagelinkicon"],["pTemplate","nextpagelinkicon"],[3,"items","columns","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize","onLazyLoad"],["scroller",""],["pTemplate","content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","table",3,"ngClass"],["table",""],["role","rowgroup",1,"p-datatable-thead"],["thead",""],["role","rowgroup","class","p-datatable-tbody p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen",4,"ngIf"],["role","rowgroup",1,"p-datatable-tbody",3,"ngClass","value","pTableBody","pTableBodyTemplate","scrollerOptions"],["role","rowgroup","class","p-datatable-scroller-spacer",3,"style",4,"ngIf"],["role","rowgroup","class","p-datatable-tfoot",4,"ngIf"],["role","rowgroup",1,"p-datatable-tbody","p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen"],["role","rowgroup",1,"p-datatable-scroller-spacer"],["role","rowgroup",1,"p-datatable-tfoot"],["tfoot",""],[1,"p-datatable-footer"],[1,"p-column-resizer-helper",2,"display","none"],["resizeHelper",""],[1,"p-datatable-reorder-indicator-up",2,"display","none"],["reorderIndicatorUp",""],[1,"p-datatable-reorder-indicator-down",2,"display","none"],["reorderIndicatorDown",""]],template:function(Sn,fi){1&Sn&&(n.TgZ(0,"div",0,1),n.YNc(2,co,3,2,"div",2)(3,ln,2,1,"div",3)(4,oo,6,24,"p-paginator",4),n.TgZ(5,"div",5,6),n.YNc(7,Ji,3,17,"p-scroller",7)(8,Kn,2,7,"ng-container",8)(9,Wt,10,28,"ng-template",null,9,n.W1O),n.qZA(),n.YNc(11,_r,6,24,"p-paginator",4)(12,In,2,1,"div",10)(13,Wr,2,0,"div",11)(14,xi,4,2,"span",12)(15,ho,4,2,"span",13),n.qZA()),2&Sn&&(n.Tol(fi.styleClass),n.Q6J("ngStyle",fi.style)("ngClass",n.kEZ(16,Cr,fi.rowHover||fi.selectionMode,fi.scrollable,fi.scrollable&&"flex"===fi.scrollHeight)),n.uIk("id",fi.id),n.xp6(2),n.Q6J("ngIf",fi.loading&&fi.showLoader),n.xp6(),n.Q6J("ngIf",fi.captionTemplate),n.xp6(),n.Q6J("ngIf",fi.paginator&&("top"===fi.paginatorPosition||"both"==fi.paginatorPosition)),n.xp6(),n.Q6J("ngStyle",n.VKq(20,vr,fi.virtualScroll?"":fi.scrollHeight)),n.xp6(2),n.Q6J("ngIf",fi.virtualScroll),n.xp6(),n.Q6J("ngIf",!fi.virtualScroll),n.xp6(3),n.Q6J("ngIf",fi.paginator&&("bottom"===fi.paginatorPosition||"both"==fi.paginatorPosition)),n.xp6(),n.Q6J("ngIf",fi.summaryTemplate),n.xp6(),n.Q6J("ngIf",fi.resizableColumns),n.xp6(),n.Q6J("ngIf",fi.reorderableColumns),n.xp6(),n.Q6J("ngIf",fi.reorderableColumns))},dependencies:()=>[e.mk,e.O5,e.tP,e.PC,Y.D,l.jx,K.T,o.v,x.H,ae.L,hl],styles:["@layer primeng{.p-datatable{position:relative}.p-datatable>.p-datatable-wrapper{overflow:auto}.p-datatable-table{border-spacing:0px;width:100%}.p-datatable .p-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.p-datatable .p-sortable-column .p-column-title,.p-datatable .p-sortable-column .p-sortable-column-icon,.p-datatable .p-sortable-column .p-sortable-column-badge{vertical-align:middle}.p-datatable .p-sortable-column .p-icon-wrapper{display:inline}.p-datatable .p-sortable-column .p-sortable-column-badge{display:inline-flex;align-items:center;justify-content:center}.p-datatable-hoverable-rows .p-selectable-row{cursor:pointer}.p-datatable-scrollable>.p-datatable-wrapper{position:relative}.p-datatable-scrollable-table>.p-datatable-thead{position:sticky;top:0;z-index:2}.p-datatable-scrollable-table>.p-datatable-frozen-tbody{position:sticky;z-index:1}.p-datatable-scrollable-table>.p-datatable-tfoot{position:sticky;bottom:0;z-index:1}.p-datatable-scrollable .p-frozen-column{position:sticky;background:inherit;z-index:1}.p-datatable-scrollable th.p-frozen-column{z-index:1}.p-datatable-flex-scrollable{display:flex;flex-direction:column;height:100%}.p-datatable-flex-scrollable>.p-datatable-wrapper{display:flex;flex-direction:column;flex:1;height:100%}.p-datatable-scrollable-table>.p-datatable-tbody>.p-rowgroup-header{position:sticky;z-index:2}.p-datatable-resizable-table>.p-datatable-thead>tr>th,.p-datatable-resizable-table>.p-datatable-tfoot>tr>td,.p-datatable-resizable-table>.p-datatable-tbody>tr>td{overflow:hidden;white-space:nowrap}.p-datatable-resizable-table>.p-datatable-thead>tr>th.p-resizable-column:not(.p-frozen-column){background-clip:padding-box;position:relative}.p-datatable-resizable-table-fit>.p-datatable-thead>tr>th.p-resizable-column:last-child .p-column-resizer{display:none}.p-datatable .p-column-resizer{display:block;position:absolute!important;top:0;right:0;margin:0;width:.5rem;height:100%;padding:0;cursor:col-resize;border:1px solid transparent}.p-datatable .p-column-resizer-helper{width:1px;position:absolute;z-index:10;display:none}.p-datatable .p-row-editor-init,.p-datatable .p-row-editor-save,.p-datatable .p-row-editor-cancel,.p-datatable .p-row-toggler{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-datatable-reorder-indicator-up,.p-datatable-reorder-indicator-down{position:absolute}.p-datatable-reorderablerow-handle,[pReorderableColumn]{cursor:move}.p-datatable .p-datatable-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:3}.p-column-filter-row{display:flex;align-items:center;width:100%}.p-column-filter-menu{display:inline-flex}.p-column-filter-row p-columnfilterformelement{flex:1 1 auto;width:1%}.p-column-filter-menu-button,.p-column-filter-clear-button{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;text-decoration:none;overflow:hidden;position:relative}.p-column-filter-overlay{position:absolute;top:0;left:0}.p-column-filter-row-items{margin:0;padding:0;list-style:none}.p-column-filter-row-item{cursor:pointer}.p-column-filter-add-button,.p-column-filter-remove-button{justify-content:center}.p-column-filter-add-button .p-button-label,.p-column-filter-remove-button .p-button-label{flex-grow:0}.p-column-filter-buttonbar{display:flex;align-items:center;justify-content:space-between}.p-column-filter-buttonbar .p-button{width:auto}.p-datatable-tbody>tr>td>.p-column-title{display:none}.p-datatable-scroller-spacer{display:flex}.p-datatable .p-scroller .p-scroller-loading{transform:none!important;min-height:0;position:sticky;top:0;left:0}}\n"],encapsulation:2})}return pn})(),hl=(()=>{class pn{dt;tableService;cd;el;columns;template;get value(){return this._value}set value(nt){this._value=nt,this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}frozen;frozenRows;scrollerOptions;subscription;_value;ngAfterViewInit(){this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}constructor(nt,Sn,fi,$i){this.dt=nt,this.tableService=Sn,this.cd=fi,this.el=$i,this.subscription=this.dt.tableService.valueSource$.subscribe(()=>{this.dt.virtualScroll&&this.cd.detectChanges()})}shouldRenderRowGroupHeader(nt,Sn,fi){let $i=b.gb.resolveFieldData(Sn,this.dt.groupRowsBy),No=nt[fi-1];return!No||$i!==b.gb.resolveFieldData(No,this.dt.groupRowsBy)}shouldRenderRowGroupFooter(nt,Sn,fi){let $i=b.gb.resolveFieldData(Sn,this.dt.groupRowsBy),No=nt[fi+1];return!No||$i!==b.gb.resolveFieldData(No,this.dt.groupRowsBy)}shouldRenderRowspan(nt,Sn,fi){let $i=b.gb.resolveFieldData(Sn,this.dt.groupRowsBy),No=nt[fi-1];return!No||$i!==b.gb.resolveFieldData(No,this.dt.groupRowsBy)}calculateRowGroupSize(nt,Sn,fi){let $i=b.gb.resolveFieldData(Sn,this.dt.groupRowsBy),No=$i,Ar=0;for(;$i===No;){Ar++;let xr=nt[++fi];if(!xr)break;No=b.gb.resolveFieldData(xr,this.dt.groupRowsBy)}return 1===Ar?null:Ar}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=p.p.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let nt=p.p.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dt.rowGroupHeaderStyleObject.top=nt+"px"}}getScrollerOption(nt,Sn){return this.dt.virtualScroll&&(Sn=Sn||this.scrollerOptions)?Sn[nt]:null}getRowIndex(nt){const Sn=this.dt.paginator?this.dt.first+nt:nt,fi=this.getScrollerOption("getItemOptions");return fi?fi(Sn).index:Sn}static \u0275fac=function(Sn){return new(Sn||pn)(n.Y36(nl),n.Y36(Fr),n.Y36(n.sBO),n.Y36(n.SBq))};static \u0275cmp=n.Xpm({type:pn,selectors:[["","pTableBody",""]],hostAttrs:[1,"p-element"],inputs:{columns:[n.lbL.None,"pTableBody","columns"],template:[n.lbL.None,"pTableBodyTemplate","template"],value:"value",frozen:"frozen",frozenRows:"frozenRows",scrollerOptions:"scrollerOptions"},attrs:qr,decls:5,vars:5,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["role","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(Sn,fi){1&Sn&&n.YNc(0,dl,2,2,"ng-container",0)(1,Do,2,2,"ng-container",0)(2,Za,2,2,"ng-container",0)(3,Yi,2,5,"ng-container",0)(4,Cn,2,5,"ng-container",0),2&Sn&&(n.Q6J("ngIf",!fi.dt.expandedRowTemplate),n.xp6(),n.Q6J("ngIf",fi.dt.expandedRowTemplate&&!(fi.frozen&&fi.dt.frozenExpandedRowTemplate)),n.xp6(),n.Q6J("ngIf",fi.dt.frozenExpandedRowTemplate&&fi.frozen),n.xp6(),n.Q6J("ngIf",fi.dt.loading),n.xp6(),n.Q6J("ngIf",fi.dt.isEmpty()&&!fi.dt.loading))},dependencies:[e.sg,e.O5,e.tP],encapsulation:2})}return pn})(),xa=(()=>{class pn{document;platformId;renderer;dt;el;zone;pResizableColumnDisabled;resizer;resizerMouseDownListener;documentMouseMoveListener;documentMouseUpListener;constructor(nt,Sn,fi,$i,No,Ar){this.document=nt,this.platformId=Sn,this.renderer=fi,this.dt=$i,this.el=No,this.zone=Ar}ngAfterViewInit(){(0,e.NF)(this.platformId)&&this.isEnabled()&&(p.p.addClass(this.el.nativeElement,"p-resizable-column"),this.resizer=this.renderer.createElement("span"),this.renderer.addClass(this.resizer,"p-column-resizer"),this.renderer.appendChild(this.el.nativeElement,this.resizer),this.zone.runOutsideAngular(()=>{this.resizerMouseDownListener=this.renderer.listen(this.resizer,"mousedown",this.onMouseDown.bind(this))}))}bindDocumentEvents(){this.zone.runOutsideAngular(()=>{this.documentMouseMoveListener=this.renderer.listen(this.document,"mousemove",this.onDocumentMouseMove.bind(this)),this.documentMouseUpListener=this.renderer.listen(this.document,"mouseup",this.onDocumentMouseUp.bind(this))})}unbindDocumentEvents(){this.documentMouseMoveListener&&(this.documentMouseMoveListener(),this.documentMouseMoveListener=null),this.documentMouseUpListener&&(this.documentMouseUpListener(),this.documentMouseUpListener=null)}onMouseDown(nt){1===nt.which&&(this.dt.onColumnResizeBegin(nt),this.bindDocumentEvents())}onDocumentMouseMove(nt){this.dt.onColumnResize(nt)}onDocumentMouseUp(nt){this.dt.onColumnResizeEnd(),this.unbindDocumentEvents()}isEnabled(){return!0!==this.pResizableColumnDisabled}ngOnDestroy(){this.resizerMouseDownListener&&(this.resizerMouseDownListener(),this.resizerMouseDownListener=null),this.unbindDocumentEvents()}static \u0275fac=function(Sn){return new(Sn||pn)(n.Y36(e.K0),n.Y36(n.Lbi),n.Y36(n.Qsj),n.Y36(nl),n.Y36(n.SBq),n.Y36(n.R0b))};static \u0275dir=n.lG2({type:pn,selectors:[["","pResizableColumn",""]],hostAttrs:[1,"p-element"],inputs:{pResizableColumnDisabled:"pResizableColumnDisabled"}})}return pn})(),dr=(()=>{class pn{static \u0275fac=function(Sn){return new(Sn||pn)};static \u0275mod=n.oAB({type:pn});static \u0275inj=n.cJS({imports:[e.ez,Y.U,j.j,c.kW,s.u5,i.hJ,Se,t._8,q.L$,ct,K.v,o.v,x.H,ae.L,P.V,B.m,G.W,u.n,I,H,O.p,J,l.m8,K.v]})}return pn})()},45389:(gt,X,a)=>{"use strict";a.d(X,{ym:()=>oi,iw:()=>Ua,dp:()=>Wa,gc:()=>ma});var e=a(96814),n=a(19212),s=a(85219),l=a(82076),i=a(73362),t=a(32314),p=a(12591),c=a(76005),o=a(44562),x=a(84713);let u=(()=>{class Yi extends x.s{static \u0275fac=(()=>{let Cn;return function(fo){return(Cn||(Cn=n.n5z(Yi)))(fo||Yi)}})();static \u0275cmp=n.Xpm({type:Yi,selectors:[["MinusIcon"]],standalone:!0,features:[n.qOj,n.jDz],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z","fill","currentColor"]],template:function(uo,fo){1&uo&&(n.O4$(),n.TgZ(0,"svg",0),n._UZ(1,"path",1),n.qZA()),2&uo&&(n.Tol(fo.getClassNames()),n.uIk("aria-label",fo.ariaLabel)("aria-hidden",fo.ariaHidden)("role",fo.role))},dependencies:[e.ez],encapsulation:2})}return Yi})();var m=a(33833),b=a(76392),I=a(87273),H=a(78717),O=a(5309),P=a(44480),G=a(26489),B=a(2332),ae=a(72079);const J=["container"],q=["resizeHelper"],j=["reorderIndicatorUp"],Y=["reorderIndicatorDown"],K=["table"],ne=["scrollableView"],ee=["scrollableFrozenView"];function $(Yi,jo){if(1&Yi&&n._UZ(0,"i"),2&Yi){const Cn=n.oxw(2);n.Tol("p-treetable-loading-icon pi-spin "+Cn.loadingIcon)}}function ue(Yi,jo){1&Yi&&n._UZ(0,"SpinnerIcon",18),2&Yi&&n.Q6J("spin",!0)("styleClass","p-treetable-loading-icon")}function ge(Yi,jo){}function Ke(Yi,jo){1&Yi&&n.YNc(0,ge,0,0,"ng-template")}function at(Yi,jo){if(1&Yi&&(n.TgZ(0,"span",19),n.YNc(1,Ke,1,0,null,20),n.qZA()),2&Yi){const Cn=n.oxw(3);n.xp6(),n.Q6J("ngTemplateOutlet",Cn.loadingIconTemplate)}}function Le(Yi,jo){if(1&Yi&&(n.ynx(0),n.YNc(1,ue,1,2,"SpinnerIcon",16)(2,at,2,1,"span",17),n.BQk()),2&Yi){const Cn=n.oxw(2);n.xp6(),n.Q6J("ngIf",!Cn.loadingIconTemplate),n.xp6(),n.Q6J("ngIf",Cn.loadingIconTemplate)}}function R(Yi,jo){if(1&Yi&&(n.TgZ(0,"div",12)(1,"div",13),n.YNc(2,$,1,2,"i",14)(3,Le,3,2,"ng-container",15),n.qZA()()),2&Yi){const Cn=n.oxw();n.xp6(2),n.Q6J("ngIf",Cn.loadingIcon),n.xp6(),n.Q6J("ngIf",!Cn.loadingIcon)}}function Te(Yi,jo){1&Yi&&n.GkF(0)}function me(Yi,jo){if(1&Yi&&(n.TgZ(0,"div",21),n.YNc(1,Te,1,0,"ng-container",20),n.qZA()),2&Yi){const Cn=n.oxw();n.xp6(),n.Q6J("ngTemplateOutlet",Cn.captionTemplate)}}function Se(Yi,jo){1&Yi&&n.GkF(0)}function Ue(Yi,jo){if(1&Yi&&n.YNc(0,Se,1,0,"ng-container",20),2&Yi){const Cn=n.oxw(3);n.Q6J("ngTemplateOutlet",Cn.paginatorFirstPageLinkIconTemplate)}}function We(Yi,jo){1&Yi&&n.YNc(0,Ue,1,1,"ng-template",23)}function et(Yi,jo){1&Yi&&n.GkF(0)}function Et(Yi,jo){if(1&Yi&&n.YNc(0,et,1,0,"ng-container",20),2&Yi){const Cn=n.oxw(3);n.Q6J("ngTemplateOutlet",Cn.paginatorPreviousPageLinkIconTemplate)}}function lt(Yi,jo){1&Yi&&n.YNc(0,Et,1,1,"ng-template",24)}function Vt(Yi,jo){1&Yi&&n.GkF(0)}function r(Yi,jo){if(1&Yi&&n.YNc(0,Vt,1,0,"ng-container",20),2&Yi){const Cn=n.oxw(3);n.Q6J("ngTemplateOutlet",Cn.paginatorLastPageLinkIconTemplate)}}function Z(Yi,jo){1&Yi&&n.YNc(0,r,1,1,"ng-template",25)}function Pt(Yi,jo){1&Yi&&n.GkF(0)}function Oe(Yi,jo){if(1&Yi&&n.YNc(0,Pt,1,0,"ng-container",20),2&Yi){const Cn=n.oxw(3);n.Q6J("ngTemplateOutlet",Cn.paginatorNextPageLinkIconTemplate)}}function ye(Yi,jo){1&Yi&&n.YNc(0,Oe,1,1,"ng-template",26)}function ve(Yi,jo){if(1&Yi){const Cn=n.EpF();n.TgZ(0,"p-paginator",22),n.NdJ("onPageChange",function(fo){n.CHM(Cn);const Jo=n.oxw();return n.KtG(Jo.onPageChange(fo))}),n.YNc(1,We,1,0,null,15)(2,lt,1,0,null,15)(3,Z,1,0,null,15)(4,ye,1,0,null,15),n.qZA()}if(2&Yi){const Cn=n.oxw();n.Q6J("rows",Cn.rows)("first",Cn.first)("totalRecords",Cn.totalRecords)("pageLinkSize",Cn.pageLinks)("alwaysShow",Cn.alwaysShowPaginator)("rowsPerPageOptions",Cn.rowsPerPageOptions)("templateLeft",Cn.paginatorLeftTemplate)("templateRight",Cn.paginatorRightTemplate)("dropdownAppendTo",Cn.paginatorDropdownAppendTo)("currentPageReportTemplate",Cn.currentPageReportTemplate)("showFirstLastIcon",Cn.showFirstLastIcon)("dropdownItemTemplate",Cn.paginatorDropdownItemTemplate)("showCurrentPageReport",Cn.showCurrentPageReport)("showJumpToPageDropdown",Cn.showJumpToPageDropdown)("showPageLinks",Cn.showPageLinks)("styleClass",Cn.paginatorStyleClass)("locale",Cn.paginatorLocale),n.xp6(),n.Q6J("ngIf",Cn.paginatorFirstPageLinkIconTemplate),n.xp6(),n.Q6J("ngIf",Cn.paginatorPreviousPageLinkIconTemplate),n.xp6(),n.Q6J("ngIf",Cn.paginatorLastPageLinkIconTemplate),n.xp6(),n.Q6J("ngIf",Cn.paginatorNextPageLinkIconTemplate)}}function ft(Yi,jo){1&Yi&&n.GkF(0)}function Dt(Yi,jo){1&Yi&&n.GkF(0)}function Rn(Yi,jo){1&Yi&&n.GkF(0)}const ti=Yi=>({$implicit:Yi});function Xt(Yi,jo){if(1&Yi&&(n.TgZ(0,"div",27)(1,"table",28,29),n.YNc(3,ft,1,0,"ng-container",30),n.TgZ(4,"thead",31),n.YNc(5,Dt,1,0,"ng-container",30),n.qZA(),n._UZ(6,"tbody",32),n.TgZ(7,"tfoot",33),n.YNc(8,Rn,1,0,"ng-container",30),n.qZA()()()),2&Yi){const Cn=n.oxw();n.xp6(),n.Q6J("ngClass",Cn.tableStyleClass)("ngStyle",Cn.tableStyle),n.xp6(2),n.Q6J("ngTemplateOutlet",Cn.colGroupTemplate)("ngTemplateOutletContext",n.VKq(10,ti,Cn.columns)),n.xp6(2),n.Q6J("ngTemplateOutlet",Cn.headerTemplate)("ngTemplateOutletContext",n.VKq(12,ti,Cn.columns)),n.xp6(),n.Q6J("pTreeTableBody",Cn.columns)("pTreeTableBodyTemplate",Cn.bodyTemplate),n.xp6(2),n.Q6J("ngTemplateOutlet",Cn.footerTemplate)("ngTemplateOutletContext",n.VKq(14,ti,Cn.columns))}}const Je=Yi=>({width:Yi});function dt(Yi,jo){if(1&Yi&&n._UZ(0,"div",38,39),2&Yi){const Cn=n.oxw(2);n.Q6J("ttScrollableView",Cn.frozenColumns)("frozen",!0)("ngStyle",n.VKq(4,Je,Cn.frozenWidth))("scrollHeight",Cn.scrollHeight)}}const Ie=(Yi,jo)=>({left:Yi,width:jo});function ot(Yi,jo){if(1&Yi&&(n.TgZ(0,"div",34),n.YNc(1,dt,2,6,"div",35),n._UZ(2,"div",36,37),n.qZA()),2&Yi){const Cn=n.oxw();n.xp6(),n.Q6J("ngIf",Cn.frozenColumns||Cn.frozenBodyTemplate),n.xp6(),n.Q6J("ttScrollableView",Cn.columns)("frozen",!1)("scrollHeight",Cn.scrollHeight)("ngStyle",n.WLB(5,Ie,Cn.frozenWidth,"calc(100% - "+Cn.frozenWidth+")"))}}function ct(Yi,jo){1&Yi&&n.GkF(0)}function tn(Yi,jo){if(1&Yi&&n.YNc(0,ct,1,0,"ng-container",20),2&Yi){const Cn=n.oxw(3);n.Q6J("ngTemplateOutlet",Cn.paginatorFirstPageLinkIconTemplate)}}function yi(Yi,jo){1&Yi&&n.YNc(0,tn,1,1,"ng-template",23)}function ni(Yi,jo){1&Yi&&n.GkF(0)}function sn(Yi,jo){if(1&Yi&&n.YNc(0,ni,1,0,"ng-container",20),2&Yi){const Cn=n.oxw(3);n.Q6J("ngTemplateOutlet",Cn.paginatorPreviousPageLinkIconTemplate)}}function bn(Yi,jo){1&Yi&&n.YNc(0,sn,1,1,"ng-template",24)}function vt(Yi,jo){1&Yi&&n.GkF(0)}function nn(Yi,jo){if(1&Yi&&n.YNc(0,vt,1,0,"ng-container",20),2&Yi){const Cn=n.oxw(3);n.Q6J("ngTemplateOutlet",Cn.paginatorLastPageLinkIconTemplate)}}function rn(Yi,jo){1&Yi&&n.YNc(0,nn,1,1,"ng-template",25)}function ii(Yi,jo){1&Yi&&n.GkF(0)}function Oo(Yi,jo){if(1&Yi&&n.YNc(0,ii,1,0,"ng-container",20),2&Yi){const Cn=n.oxw(3);n.Q6J("ngTemplateOutlet",Cn.paginatorNextPageLinkIconTemplate)}}function no(Yi,jo){1&Yi&&n.YNc(0,Oo,1,1,"ng-template",26)}function Li(Yi,jo){if(1&Yi){const Cn=n.EpF();n.TgZ(0,"p-paginator",40),n.NdJ("onPageChange",function(fo){n.CHM(Cn);const Jo=n.oxw();return n.KtG(Jo.onPageChange(fo))}),n.YNc(1,yi,1,0,null,15)(2,bn,1,0,null,15)(3,rn,1,0,null,15)(4,no,1,0,null,15),n.qZA()}if(2&Yi){const Cn=n.oxw();n.Q6J("rows",Cn.rows)("first",Cn.first)("totalRecords",Cn.totalRecords)("pageLinkSize",Cn.pageLinks)("alwaysShow",Cn.alwaysShowPaginator)("rowsPerPageOptions",Cn.rowsPerPageOptions)("templateLeft",Cn.paginatorLeftTemplate)("templateRight",Cn.paginatorRightTemplate)("dropdownAppendTo",Cn.paginatorDropdownAppendTo)("currentPageReportTemplate",Cn.currentPageReportTemplate)("showFirstLastIcon",Cn.showFirstLastIcon)("dropdownItemTemplate",Cn.paginatorDropdownItemTemplate)("showCurrentPageReport",Cn.showCurrentPageReport)("showJumpToPageDropdown",Cn.showJumpToPageDropdown)("showPageLinks",Cn.showPageLinks)("styleClass",Cn.paginatorStyleClass)("locale",Cn.paginatorLocale),n.xp6(),n.Q6J("ngIf",Cn.paginatorFirstPageLinkIconTemplate),n.xp6(),n.Q6J("ngIf",Cn.paginatorPreviousPageLinkIconTemplate),n.xp6(),n.Q6J("ngIf",Cn.paginatorLastPageLinkIconTemplate),n.xp6(),n.Q6J("ngIf",Cn.paginatorNextPageLinkIconTemplate)}}function ji(Yi,jo){1&Yi&&n.GkF(0)}function Ii(Yi,jo){if(1&Yi&&(n.TgZ(0,"div",41),n.YNc(1,ji,1,0,"ng-container",20),n.qZA()),2&Yi){const Cn=n.oxw();n.xp6(),n.Q6J("ngTemplateOutlet",Cn.summaryTemplate)}}function _i(Yi,jo){1&Yi&&n._UZ(0,"div",42,43)}function En(Yi,jo){1&Yi&&n._UZ(0,"ArrowDownIcon")}function co(Yi,jo){}function yn(Yi,jo){1&Yi&&n.YNc(0,co,0,0,"ng-template")}function ln(Yi,jo){if(1&Yi&&(n.TgZ(0,"span",44,45),n.YNc(2,En,1,0,"ArrowDownIcon",15)(3,yn,1,0,null,20),n.qZA()),2&Yi){const Cn=n.oxw();n.xp6(2),n.Q6J("ngIf",!Cn.reorderIndicatorUpIconTemplate),n.xp6(),n.Q6J("ngTemplateOutlet",Cn.reorderIndicatorUpIconTemplate)}}function He(Yi,jo){1&Yi&&n._UZ(0,"ArrowUpIcon")}function rt(Yi,jo){}function $e(Yi,jo){1&Yi&&n.YNc(0,rt,0,0,"ng-template")}function Ve(Yi,jo){if(1&Yi&&(n.TgZ(0,"span",46,47),n.YNc(2,He,1,0,"ArrowUpIcon",15)(3,$e,1,0,null,20),n.qZA()),2&Yi){const Cn=n.oxw();n.xp6(2),n.Q6J("ngIf",!Cn.reorderIndicatorDownIconTemplate),n.xp6(),n.Q6J("ngTemplateOutlet",Cn.reorderIndicatorDownIconTemplate)}}const Ce=(Yi,jo,Cn,uo,fo)=>({"p-treetable p-component":!0,"p-treetable-hoverable-rows":Yi,"p-treetable-auto-layout":jo,"p-treetable-resizable":Cn,"p-treetable-resizable-fit":uo,"p-treetable-flex-scrollable":fo}),tt=["pTreeTableBody",""];function ht(Yi,jo){1&Yi&&n.GkF(0)}const Qt=(Yi,jo,Cn,uo)=>({$implicit:Yi,node:jo,rowData:Cn,columns:uo});function Un(Yi,jo){if(1&Yi&&(n.ynx(0),n.YNc(1,ht,1,0,"ng-container",2),n.BQk()),2&Yi){const Cn=n.oxw().$implicit,uo=n.oxw();n.xp6(),n.Q6J("ngTemplateOutlet",uo.template)("ngTemplateOutletContext",n.l5B(2,Qt,Cn,Cn.node,Cn.node.data,uo.columns))}}function Yt(Yi,jo){1&Yi&&n.YNc(0,Un,2,7,"ng-container",1),2&Yi&&n.Q6J("ngIf",jo.$implicit.visible)}function Fn(Yi,jo){1&Yi&&n.GkF(0)}const yt=(Yi,jo)=>({$implicit:Yi,frozen:jo});function Bt(Yi,jo){if(1&Yi&&(n.ynx(0),n.YNc(1,Fn,1,0,"ng-container",2),n.BQk()),2&Yi){const Cn=n.oxw();n.xp6(),n.Q6J("ngTemplateOutlet",Cn.tt.emptyMessageTemplate)("ngTemplateOutletContext",n.WLB(2,yt,Cn.columns,Cn.frozen))}}const li=["scrollHeader"],si=["scrollHeaderBox"],oo=["scrollBody"],_o=["scrollTable"],Hn=["loadingTable"],mo=["scrollFooter"],vn=["scrollFooterBox"],Ji=["scrollableAligner"],wn=["scroller"],po=["ttScrollableView",""];function Kn(Yi,jo){1&Yi&&n.GkF(0)}function Vn(Yi,jo){1&Yi&&n.GkF(0)}function Wi(Yi,jo){1&Yi&&n.GkF(0)}const Ft=(Yi,jo)=>({$implicit:Yi,options:jo});function Oi(Yi,jo){if(1&Yi&&n.YNc(0,Wi,1,0,"ng-container",5),2&Yi){const Cn=jo.$implicit,uo=jo.options;n.oxw(2);const fo=n.MAs(11);n.Q6J("ngTemplateOutlet",fo)("ngTemplateOutletContext",n.WLB(2,Ft,Cn,uo))}}function On(Yi,jo){1&Yi&&n.GkF(0)}const _n=Yi=>({options:Yi});function st(Yi,jo){if(1&Yi&&n.YNc(0,On,1,0,"ng-container",5),2&Yi){const Cn=jo.options,uo=n.oxw(3);n.Q6J("ngTemplateOutlet",uo.loaderTemplate)("ngTemplateOutletContext",n.VKq(2,_n,Cn))}}function Dn(Yi,jo){1&Yi&&(n.ynx(0),n.YNc(1,st,1,4,"ng-template",14),n.BQk())}const Wt=Yi=>({height:Yi});function kn(Yi,jo){if(1&Yi){const Cn=n.EpF();n.TgZ(0,"p-scroller",11,12),n.NdJ("onLazyLoad",function(fo){n.CHM(Cn);const Jo=n.oxw();return n.KtG(Jo.tt.onLazyItemLoad(fo))}),n.YNc(2,Oi,1,5,"ng-template",13)(3,Dn,2,0,"ng-container",8),n.qZA()}if(2&Yi){const Cn=n.oxw();n.Akn(n.VKq(8,Wt,"flex"!==Cn.tt.scrollHeight?Cn.tt.scrollHeight:void 0)),n.Q6J("items",Cn.tt.serializedValue)("scrollHeight","flex"!==Cn.scrollHeight?void 0:"100%")("itemSize",Cn.tt.virtualScrollItemSize||Cn.tt._virtualRowHeight)("lazy",Cn.tt.lazy)("options",Cn.tt.virtualScrollOptions),n.xp6(3),n.Q6J("ngIf",Cn.loaderTemplate)}}function Fi(Yi,jo){1&Yi&&n.GkF(0)}const ui=(Yi,jo)=>({"max-height":Yi,"overflow-y":jo}),Fo=()=>({});function At(Yi,jo){if(1&Yi&&(n.ynx(0),n.TgZ(1,"div",15,16),n.YNc(3,Fi,1,0,"ng-container",5),n.qZA(),n.BQk()),2&Yi){const Cn=n.oxw(),uo=n.MAs(11);n.xp6(),n.Q6J("ngStyle",n.WLB(3,ui,"flex"!==Cn.tt.scrollHeight?Cn.scrollHeight:void 0,!Cn.frozen&&Cn.tt.scrollHeight?"scroll":void 0)),n.xp6(2),n.Q6J("ngTemplateOutlet",uo)("ngTemplateOutletContext",n.WLB(7,Ft,Cn.serializedValue,n.DdM(6,Fo)))}}function Jn(Yi,jo){1&Yi&&n.GkF(0)}function Bn(Yi,jo){1&Yi&&n._UZ(0,"div",21,22)}function Bi(Yi,jo){if(1&Yi&&(n.TgZ(0,"table",17,18),n.YNc(2,Jn,1,0,"ng-container",5),n._UZ(3,"tbody",19),n.qZA(),n.YNc(4,Bn,2,0,"div",20)),2&Yi){const Cn=jo.$implicit,uo=jo.options,fo=n.oxw();n.Akn(uo.contentStyle),n.Tol(fo.tt.tableStyleClass),n.Q6J("ngClass",uo.contentStyleClass)("ngStyle",fo.tt.tableStyle),n.xp6(2),n.Q6J("ngTemplateOutlet",fo.frozen&&fo.tt.frozenColGroupTemplate||fo.tt.colGroupTemplate)("ngTemplateOutletContext",n.VKq(13,ti,fo.columns)),n.xp6(),n.Q6J("pTreeTableBody",fo.columns)("pTreeTableBodyTemplate",fo.frozen&&fo.tt.frozenBodyTemplate||fo.tt.bodyTemplate)("serializedNodes",Cn)("frozen",fo.frozen),n.xp6(),n.Q6J("ngIf",fo.frozen)}}function $n(Yi,jo){1&Yi&&n.GkF(0)}function Ui(Yi,jo){1&Yi&&n.GkF(0)}function Xo(Yi,jo){if(1&Yi&&(n.TgZ(0,"div",23,24)(2,"div",25,26)(4,"table",27),n.YNc(5,$n,1,0,"ng-container",5),n.TgZ(6,"tfoot",28),n.YNc(7,Ui,1,0,"ng-container",5),n.qZA()()()()),2&Yi){const Cn=n.oxw();n.xp6(4),n.Q6J("ngClass",Cn.tt.tableStyleClass)("ngStyle",Cn.tt.tableStyle),n.xp6(),n.Q6J("ngTemplateOutlet",Cn.frozen&&Cn.tt.frozenColGroupTemplate||Cn.tt.colGroupTemplate)("ngTemplateOutletContext",n.VKq(6,ti,Cn.columns)),n.xp6(2),n.Q6J("ngTemplateOutlet",Cn.frozen&&Cn.tt.frozenFooterTemplate||Cn.tt.footerTemplate)("ngTemplateOutletContext",n.VKq(8,ti,Cn.columns))}}function ls(Yi,jo){1&Yi&&n._UZ(0,"ChevronDownIcon"),2&Yi&&n.uIk("aria-hidden",!0)}function Fa(Yi,jo){1&Yi&&n._UZ(0,"ChevronRightIcon"),2&Yi&&n.uIk("aria-hidden",!0)}function Ds(Yi,jo){if(1&Yi&&(n.ynx(0),n.YNc(1,ls,1,1,"ChevronDownIcon",1)(2,Fa,1,1,"ChevronRightIcon",1),n.BQk()),2&Yi){const Cn=n.oxw();n.xp6(),n.Q6J("ngIf",Cn.rowNode.node.expanded),n.xp6(),n.Q6J("ngIf",!Cn.rowNode.node.expanded)}}function dl(Yi,jo){}function ka(Yi,jo){1&Yi&&n.YNc(0,dl,0,0,"ng-template")}let hs=(()=>{class Yi{sortSource=new ae.xQ;selectionSource=new ae.xQ;contextMenuSource=new ae.xQ;uiUpdateSource=new ae.xQ;totalRecordsSource=new ae.xQ;sortSource$=this.sortSource.asObservable();selectionSource$=this.selectionSource.asObservable();contextMenuSource$=this.contextMenuSource.asObservable();uiUpdateSource$=this.uiUpdateSource.asObservable();totalRecordsSource$=this.totalRecordsSource.asObservable();onSort(Cn){this.sortSource.next(Cn)}onSelectionChange(){this.selectionSource.next(null)}onContextMenu(Cn){this.contextMenuSource.next(Cn)}onUIUpdate(Cn){this.uiUpdateSource.next(Cn)}onTotalRecordsChange(Cn){this.totalRecordsSource.next(Cn)}static \u0275fac=function(uo){return new(uo||Yi)};static \u0275prov=n.Yz7({token:Yi,factory:Yi.\u0275fac})}return Yi})(),Ua=(()=>{class Yi{document;renderer;el;cd;zone;tableService;filterService;columns;style;styleClass;tableStyle;tableStyleClass;autoLayout;lazy=!1;lazyLoadOnInit=!0;paginator;rows;first=0;pageLinks=5;rowsPerPageOptions;alwaysShowPaginator=!0;paginatorPosition="bottom";paginatorStyleClass;paginatorDropdownAppendTo;currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showJumpToPageDropdown;showFirstLastIcon=!0;showPageLinks=!0;defaultSortOrder=1;sortMode="single";resetPageOnSort=!0;customSort;selectionMode;contextMenuSelection;contextMenuSelectionMode="separate";dataKey;metaKeySelection=!1;compareSelectionBy="deepEquals";rowHover;loading;loadingIcon;showLoader=!0;scrollable;scrollHeight;virtualScroll;virtualScrollItemSize;virtualScrollOptions;virtualScrollDelay=150;frozenWidth;frozenColumns;resizableColumns;columnResizeMode="fit";reorderableColumns;contextMenu;rowTrackBy=(Cn,uo)=>uo;filters={};globalFilterFields;filterDelay=300;filterMode="lenient";filterLocale;paginatorLocale;get totalRecords(){return this._totalRecords}set totalRecords(Cn){this._totalRecords=Cn,this.tableService.onTotalRecordsChange(this._totalRecords)}get sortField(){return this._sortField}set sortField(Cn){this._sortField=Cn}get sortOrder(){return this._sortOrder}set sortOrder(Cn){this._sortOrder=Cn}get multiSortMeta(){return this._multiSortMeta}set multiSortMeta(Cn){this._multiSortMeta=Cn}get selection(){return this._selection}set selection(Cn){this._selection=Cn}get value(){return this._value}set value(Cn){this._value=Cn}get virtualRowHeight(){return this._virtualRowHeight}set virtualRowHeight(Cn){this._virtualRowHeight=Cn,console.warn("The virtualRowHeight property is deprecated, use virtualScrollItemSize property instead.")}_virtualRowHeight=28;selectionChange=new n.vpe;contextMenuSelectionChange=new n.vpe;onFilter=new n.vpe;onNodeExpand=new n.vpe;onNodeCollapse=new n.vpe;onPage=new n.vpe;onSort=new n.vpe;onLazyLoad=new n.vpe;sortFunction=new n.vpe;onColResize=new n.vpe;onColReorder=new n.vpe;onNodeSelect=new n.vpe;onNodeUnselect=new n.vpe;onContextMenuSelect=new n.vpe;onHeaderCheckboxToggle=new n.vpe;onEditInit=new n.vpe;onEditComplete=new n.vpe;onEditCancel=new n.vpe;containerViewChild;resizeHelperViewChild;reorderIndicatorUpViewChild;reorderIndicatorDownViewChild;tableViewChild;scrollableViewChild;scrollableFrozenViewChild;templates;_value=[];serializedValue;_totalRecords=0;_multiSortMeta;_sortField;_sortOrder=1;filteredNodes;filterTimeout;colGroupTemplate;captionTemplate;headerTemplate;bodyTemplate;footerTemplate;summaryTemplate;emptyMessageTemplate;paginatorLeftTemplate;paginatorRightTemplate;paginatorDropdownItemTemplate;frozenHeaderTemplate;frozenBodyTemplate;frozenFooterTemplate;frozenColGroupTemplate;loadingIconTemplate;reorderIndicatorUpIconTemplate;reorderIndicatorDownIconTemplate;sortIconTemplate;checkboxIconTemplate;headerCheckboxIconTemplate;togglerIconTemplate;paginatorFirstPageLinkIconTemplate;paginatorLastPageLinkIconTemplate;paginatorPreviousPageLinkIconTemplate;paginatorNextPageLinkIconTemplate;lastResizerHelperX;reorderIconWidth;reorderIconHeight;draggedColumn;dropPosition;preventSelectionSetterPropagation;_selection;selectionKeys={};rowTouched;editingCell;editingCellData;editingCellField;editingCellClick;documentEditListener;initialized;toggleRowIndex;ngOnInit(){this.lazy&&this.lazyLoadOnInit&&!this.virtualScroll&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(Cn=>{switch(Cn.getType()){case"caption":this.captionTemplate=Cn.template;break;case"header":this.headerTemplate=Cn.template;break;case"body":this.bodyTemplate=Cn.template;break;case"footer":this.footerTemplate=Cn.template;break;case"summary":this.summaryTemplate=Cn.template;break;case"colgroup":this.colGroupTemplate=Cn.template;break;case"emptymessage":this.emptyMessageTemplate=Cn.template;break;case"paginatorleft":this.paginatorLeftTemplate=Cn.template;break;case"paginatorright":this.paginatorRightTemplate=Cn.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=Cn.template;break;case"frozenheader":this.frozenHeaderTemplate=Cn.template;break;case"frozenbody":this.frozenBodyTemplate=Cn.template;break;case"frozenfooter":this.frozenFooterTemplate=Cn.template;break;case"frozencolgroup":this.frozenColGroupTemplate=Cn.template;break;case"loadingicon":this.loadingIconTemplate=Cn.template;break;case"reorderindicatorupicon":this.reorderIndicatorUpIconTemplate=Cn.template;break;case"reorderindicatordownicon":this.reorderIndicatorDownIconTemplate=Cn.template;break;case"sorticon":this.sortIconTemplate=Cn.template;break;case"checkboxicon":this.checkboxIconTemplate=Cn.template;break;case"headercheckboxicon":this.headerCheckboxIconTemplate=Cn.template;break;case"togglericon":this.togglerIconTemplate=Cn.template;break;case"paginatorfirstpagelinkicon":this.paginatorFirstPageLinkIconTemplate=Cn.template;break;case"paginatorlastpagelinkicon":this.paginatorLastPageLinkIconTemplate=Cn.template;break;case"paginatorpreviouspagelinkicon":this.paginatorPreviousPageLinkIconTemplate=Cn.template;break;case"paginatornextpagelinkicon":this.paginatorNextPageLinkIconTemplate=Cn.template}})}constructor(Cn,uo,fo,Jo,kr,Qr,Aa){this.document=Cn,this.renderer=uo,this.el=fo,this.cd=Jo,this.zone=kr,this.tableService=Qr,this.filterService=Aa}ngOnChanges(Cn){Cn.value&&(this._value=Cn.value.currentValue,this.lazy||(this.totalRecords=this._value?this._value.length:0,"single"==this.sortMode&&this.sortField?this.sortSingle():"multiple"==this.sortMode&&this.multiSortMeta?this.sortMultiple():this.hasFilter()&&this._filter()),this.updateSerializedValue(),this.tableService.onUIUpdate(this.value)),Cn.sortField&&(this._sortField=Cn.sortField.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),Cn.sortOrder&&(this._sortOrder=Cn.sortOrder.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),Cn.multiSortMeta&&(this._multiSortMeta=Cn.multiSortMeta.currentValue,"multiple"===this.sortMode&&this.sortMultiple()),Cn.selection&&(this._selection=Cn.selection.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange()),this.preventSelectionSetterPropagation=!1)}updateSerializedValue(){this.serializedValue=[],this.paginator?this.serializePageNodes():this.serializeNodes(null,this.filteredNodes||this.value,0,!0)}serializeNodes(Cn,uo,fo,Jo){if(uo&&uo.length)for(let kr of uo){kr.parent=Cn;const Qr={node:kr,parent:Cn,level:fo,visible:Jo&&(!Cn||Cn.expanded)};this.serializedValue.push(Qr),Qr.visible&&kr.expanded&&this.serializeNodes(kr,kr.children,fo+1,Qr.visible)}}serializePageNodes(){let Cn=this.filteredNodes||this.value;if(this.serializedValue=[],Cn&&Cn.length){const uo=this.lazy?0:this.first;for(let fo=uo;fo<uo+this.rows;fo++){let Jo=Cn[fo];Jo&&(this.serializedValue.push({node:Jo,parent:null,level:0,visible:!0}),this.serializeNodes(Jo,Jo.children,1,!0))}}}updateSelectionKeys(){if(this.dataKey&&this._selection)if(this.selectionKeys={},Array.isArray(this._selection))for(let Cn of this._selection)this.selectionKeys[String(B.gb.resolveFieldData(Cn.data,this.dataKey))]=1;else this.selectionKeys[String(B.gb.resolveFieldData(this._selection.data,this.dataKey))]=1}onPageChange(Cn){this.first=Cn.first,this.rows=Cn.rows,this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.serializePageNodes(),this.onPage.emit({first:this.first,rows:this.rows}),this.tableService.onUIUpdate(this.value),this.scrollable&&this.resetScrollTop()}sort(Cn){let uo=Cn.originalEvent;if("single"===this.sortMode&&(this._sortOrder=this.sortField===Cn.field?-1*this.sortOrder:this.defaultSortOrder,this._sortField=Cn.field,this.sortSingle(),this.resetPageOnSort&&this.scrollable&&this.resetScrollTop()),"multiple"===this.sortMode){let fo=uo.metaKey||uo.ctrlKey,Jo=this.getSortMeta(Cn.field);Jo?fo?Jo.order=-1*Jo.order:(this._multiSortMeta=[{field:Cn.field,order:-1*Jo.order}],this.resetPageOnSort&&this.scrollable&&this.resetScrollTop()):((!fo||!this.multiSortMeta)&&(this._multiSortMeta=[],this.resetPageOnSort&&this.scrollable&&this.resetScrollTop()),this.multiSortMeta.push({field:Cn.field,order:this.defaultSortOrder})),this.sortMultiple()}}sortSingle(){if(this.sortField&&this.sortOrder){this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.sortNodes(this.value),this.hasFilter()&&this._filter());let Cn={field:this.sortField,order:this.sortOrder};this.onSort.emit(Cn),this.tableService.onSort(Cn),this.updateSerializedValue()}}sortNodes(Cn){if(Cn&&0!==Cn.length){this.customSort?this.sortFunction.emit({data:Cn,mode:this.sortMode,field:this.sortField,order:this.sortOrder}):Cn.sort((uo,fo)=>{let Jo=B.gb.resolveFieldData(uo.data,this.sortField),kr=B.gb.resolveFieldData(fo.data,this.sortField),Qr=null;return Qr=null==Jo&&null!=kr?-1:null!=Jo&&null==kr?1:null==Jo&&null==kr?0:"string"==typeof Jo&&"string"==typeof kr?Jo.localeCompare(kr,void 0,{numeric:!0}):Jo<kr?-1:Jo>kr?1:0,this.sortOrder*Qr});for(let uo of Cn)this.sortNodes(uo.children)}}sortMultiple(){this.multiSortMeta&&(this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.sortMultipleNodes(this.value),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.updateSerializedValue(),this.tableService.onSort(this.multiSortMeta))}sortMultipleNodes(Cn){if(Cn&&0!==Cn.length){this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):Cn.sort((uo,fo)=>this.multisortField(uo,fo,this.multiSortMeta,0));for(let uo of Cn)this.sortMultipleNodes(uo.children)}}multisortField(Cn,uo,fo,Jo){if(B.gb.isEmpty(this.multiSortMeta)||B.gb.isEmpty(fo[Jo]))return 0;let kr=B.gb.resolveFieldData(Cn.data,fo[Jo].field),Qr=B.gb.resolveFieldData(uo.data,fo[Jo].field),Aa=null;if(null==kr&&null!=Qr?Aa=-1:null!=kr&&null==Qr?Aa=1:null==kr&&null==Qr&&(Aa=0),"string"==typeof kr||kr instanceof String){if(kr.localeCompare&&kr!=Qr)return fo[Jo].order*kr.localeCompare(Qr,void 0,{numeric:!0})}else Aa=kr<Qr?-1:1;return kr==Qr?fo.length-1>Jo?this.multisortField(Cn,uo,fo,Jo+1):0:fo[Jo].order*Aa}getSortMeta(Cn){if(this.multiSortMeta&&this.multiSortMeta.length)for(let uo=0;uo<this.multiSortMeta.length;uo++)if(this.multiSortMeta[uo].field===Cn)return this.multiSortMeta[uo];return null}isSorted(Cn){if("single"===this.sortMode)return this.sortField&&this.sortField===Cn;if("multiple"===this.sortMode){let uo=!1;if(this.multiSortMeta)for(let fo=0;fo<this.multiSortMeta.length;fo++)if(this.multiSortMeta[fo].field==Cn){uo=!0;break}return uo}}createLazyLoadMetadata(){return{first:this.first,rows:this.rows,sortField:this.sortField,sortOrder:this.sortOrder,filters:this.filters,globalFilter:this.filters&&this.filters.global?this.filters.global.value:null,multiSortMeta:this.multiSortMeta,forceUpdate:()=>this.cd.detectChanges()}}onLazyItemLoad(Cn){this.onLazyLoad.emit({...this.createLazyLoadMetadata(),...Cn,rows:Cn.last-Cn.first})}resetScrollTop(){this.virtualScroll?this.scrollToVirtualIndex(0):this.scrollTo({top:0})}scrollToVirtualIndex(Cn){this.scrollableViewChild&&this.scrollableViewChild.scrollToVirtualIndex(Cn),this.scrollableFrozenViewChild&&this.scrollableViewChild.scrollToVirtualIndex(Cn)}scrollTo(Cn){this.scrollableViewChild&&this.scrollableViewChild.scrollTo(Cn),this.scrollableFrozenViewChild&&this.scrollableViewChild.scrollTo(Cn)}isEmpty(){let Cn=this.filteredNodes||this.value;return null==Cn||0==Cn.length}getBlockableElement(){return this.el.nativeElement.children[0]}onColumnResizeBegin(Cn){let uo=l.p.getOffset(this.containerViewChild?.nativeElement).left;this.lastResizerHelperX=Cn.pageX-uo+this.containerViewChild?.nativeElement.scrollLeft,Cn.preventDefault()}onColumnResize(Cn){let uo=l.p.getOffset(this.containerViewChild?.nativeElement).left;l.p.addClass(this.containerViewChild?.nativeElement,"p-unselectable-text"),this.resizeHelperViewChild.nativeElement.style.height=this.containerViewChild?.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",this.resizeHelperViewChild.nativeElement.style.left=Cn.pageX-uo+this.containerViewChild?.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(Cn,uo){let fo=this.resizeHelperViewChild.nativeElement.offsetLeft-this.lastResizerHelperX,Jo=uo.offsetWidth,kr=Jo+fo;if(Jo+fo>parseInt(uo.style.minWidth||15)){if("fit"===this.columnResizeMode){let Aa=uo.nextElementSibling;for(;!Aa.offsetParent;)Aa=Aa.nextElementSibling;if(Aa){let cs=Aa.offsetWidth-fo;if(kr>15&&cs>parseInt(Aa.style.minWidth||15))if(this.scrollable){let zr=this.findParentScrollableView(uo),Pi=l.p.findSingle(zr,".p-treetable-scrollable-body table")||l.p.findSingle(zr,".p-scroller-viewport table"),xo=l.p.findSingle(zr,"table.p-treetable-scrollable-header-table"),lr=l.p.findSingle(zr,"table.p-treetable-scrollable-footer-table"),Ir=l.p.index(uo);this.resizeColGroup(xo,Ir,kr,cs),this.resizeColGroup(Pi,Ir,kr,cs),this.resizeColGroup(lr,Ir,kr,cs)}else uo.style.width=kr+"px",Aa&&(Aa.style.width=cs+"px")}}else if("expand"===this.columnResizeMode)if(this.scrollable){let Aa=this.findParentScrollableView(uo),cs=l.p.findSingle(Aa,".p-treetable-scrollable-body")||l.p.findSingle(Aa,".p-scroller-viewport"),ys=l.p.findSingle(Aa,".p-treetable-scrollable-header"),zr=l.p.findSingle(Aa,".p-treetable-scrollable-footer"),Pi=l.p.findSingle(Aa,".p-treetable-scrollable-body table")||l.p.findSingle(Aa,".p-scroller-viewport table"),xo=l.p.findSingle(Aa,"table.p-treetable-scrollable-header-table"),lr=l.p.findSingle(Aa,"table.p-treetable-scrollable-footer-table");Pi.style.width=Pi.offsetWidth+fo+"px",xo.style.width=xo.offsetWidth+fo+"px",lr&&(lr.style.width=lr.offsetWidth+fo+"px");let Ir=l.p.index(uo);const Da=uo?Pi.offsetWidth+fo:kr,ia=uo?xo.offsetWidth+fo:kr,as=this.containerViewChild?.nativeElement.offsetWidth>=Da;let Is=(ba,Ss,Ca,Ia)=>{ba&&Ss&&(ba.style.width=Ia?Ca+l.p.calculateScrollbarWidth(cs)+"px":"auto",Ss.style.width=Ca+"px")};Is(cs,Pi,Da,as),Is(ys,xo,ia,as),Is(zr,lr,ia,as),this.resizeColGroup(xo,Ir,kr,null),this.resizeColGroup(Pi,Ir,kr,null),this.resizeColGroup(lr,Ir,kr,null)}else{this.tableViewChild.nativeElement.style.width=this.tableViewChild?.nativeElement.offsetWidth+fo+"px",uo.style.width=kr+"px";let Aa=this.tableViewChild?.nativeElement.style.width;this.containerViewChild.nativeElement.style.width=Aa+"px"}this.onColResize.emit({element:uo,delta:fo})}this.resizeHelperViewChild.nativeElement.style.display="none",l.p.removeClass(this.containerViewChild?.nativeElement,"p-unselectable-text")}findParentScrollableView(Cn){if(Cn){let uo=Cn.parentElement;for(;uo&&!l.p.hasClass(uo,"p-treetable-scrollable-view");)uo=uo.parentElement;return uo}return null}resizeColGroup(Cn,uo,fo,Jo){if(Cn){let kr="COLGROUP"===Cn.children[0].nodeName?Cn.children[0]:null;if(!kr)throw"Scrollable tables require a colgroup to support resizable columns";{let Qr=kr.children[uo],Aa=Qr.nextElementSibling;Qr.style.width=fo+"px",Aa&&Jo&&(Aa.style.width=Jo+"px")}}}onColumnDragStart(Cn,uo){this.reorderIconWidth=l.p.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild?.nativeElement),this.reorderIconHeight=l.p.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild?.nativeElement),this.draggedColumn=uo,Cn.dataTransfer.setData("text","b")}onColumnDragEnter(Cn,uo){if(this.reorderableColumns&&this.draggedColumn&&uo){Cn.preventDefault();let fo=l.p.getOffset(this.containerViewChild?.nativeElement),Jo=l.p.getOffset(uo);if(this.draggedColumn!=uo){let kr=Jo.left-fo.left,Aa=Jo.left+uo.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=Jo.top-fo.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=Jo.top-fo.top+uo.offsetHeight+"px",Cn.pageX>Aa?(this.reorderIndicatorUpViewChild.nativeElement.style.left=kr+uo.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=kr+uo.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=kr-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=kr-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),this.reorderIndicatorUpViewChild.nativeElement.style.display="block",this.reorderIndicatorDownViewChild.nativeElement.style.display="block"}else Cn.dataTransfer.dropEffect="none"}}onColumnDragLeave(Cn){this.reorderableColumns&&this.draggedColumn&&(Cn.preventDefault(),this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none")}onColumnDrop(Cn,uo){if(Cn.preventDefault(),this.draggedColumn){let fo=l.p.indexWithinGroup(this.draggedColumn,"ttreorderablecolumn"),Jo=l.p.indexWithinGroup(uo,"ttreorderablecolumn"),kr=fo!=Jo;kr&&(Jo-fo==1&&-1===this.dropPosition||fo-Jo==1&&1===this.dropPosition)&&(kr=!1),kr&&Jo<fo&&1===this.dropPosition&&(Jo+=1),kr&&Jo>fo&&-1===this.dropPosition&&(Jo-=1),kr&&(B.gb.reorderArray(this.columns,fo,Jo),this.onColReorder.emit({dragIndex:fo,dropIndex:Jo,columns:this.columns})),this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}handleRowClick(Cn){let uo=Cn.originalEvent.target.nodeName;if("INPUT"!=uo&&"BUTTON"!=uo&&"A"!=uo&&!l.p.hasClass(Cn.originalEvent.target,"p-clickable")){if(this.selectionMode){this.preventSelectionSetterPropagation=!0;let fo=Cn.rowNode,Jo=this.isSelected(fo.node),kr=!this.rowTouched&&this.metaKeySelection,Qr=this.dataKey?String(B.gb.resolveFieldData(fo.node.data,this.dataKey)):null;if(kr){let Aa=Cn.originalEvent,cs=Aa.metaKey||Aa.ctrlKey;if(Jo&&cs){if(this.isSingleSelectionMode())this._selection=null,this.selectionKeys={},this.selectionChange.emit(null);else{let ys=this.findIndexInSelection(fo.node);this._selection=this.selection.filter((zr,Pi)=>Pi!=ys),this.selectionChange.emit(this.selection),Qr&&delete this.selectionKeys[Qr]}this.onNodeUnselect.emit({originalEvent:Cn.originalEvent,node:fo.node,type:"row"})}else this.isSingleSelectionMode()?(this._selection=fo.node,this.selectionChange.emit(fo.node),Qr&&(this.selectionKeys={},this.selectionKeys[Qr]=1)):this.isMultipleSelectionMode()&&(cs?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,fo.node],this.selectionChange.emit(this.selection),Qr&&(this.selectionKeys[Qr]=1)),this.onNodeSelect.emit({originalEvent:Cn.originalEvent,node:fo.node,type:"row",index:Cn.rowIndex})}else if("single"===this.selectionMode)Jo?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.onNodeUnselect.emit({originalEvent:Cn.originalEvent,node:fo.node,type:"row"})):(this._selection=fo.node,this.selectionChange.emit(this.selection),this.onNodeSelect.emit({originalEvent:Cn.originalEvent,node:fo.node,type:"row",index:Cn.rowIndex}),Qr&&(this.selectionKeys={},this.selectionKeys[Qr]=1));else if("multiple"===this.selectionMode)if(Jo){let Aa=this.findIndexInSelection(fo.node);this._selection=this.selection.filter((cs,ys)=>ys!=Aa),this.selectionChange.emit(this.selection),this.onNodeUnselect.emit({originalEvent:Cn.originalEvent,node:fo.node,type:"row"}),Qr&&delete this.selectionKeys[Qr]}else this._selection=this.selection?[...this.selection,fo.node]:[fo.node],this.selectionChange.emit(this.selection),this.onNodeSelect.emit({originalEvent:Cn.originalEvent,node:fo.node,type:"row",index:Cn.rowIndex}),Qr&&(this.selectionKeys[Qr]=1);this.tableService.onSelectionChange()}this.rowTouched=!1}}handleRowTouchEnd(Cn){this.rowTouched=!0}handleRowRightClick(Cn){if(this.contextMenu){const uo=Cn.rowNode.node;if("separate"===this.contextMenuSelectionMode)this.contextMenuSelection=uo,this.contextMenuSelectionChange.emit(uo),this.onContextMenuSelect.emit({originalEvent:Cn.originalEvent,node:uo}),this.contextMenu.show(Cn.originalEvent),this.tableService.onContextMenu(uo);else if("joint"===this.contextMenuSelectionMode){this.preventSelectionSetterPropagation=!0;let fo=this.isSelected(uo),Jo=this.dataKey?String(B.gb.resolveFieldData(uo.data,this.dataKey)):null;fo||(this.isSingleSelectionMode()?(this.selection=uo,this.selectionChange.emit(uo)):this.isMultipleSelectionMode()&&(this.selection=[uo],this.selectionChange.emit(this.selection)),Jo&&(this.selectionKeys[Jo]=1)),this.contextMenu.show(Cn.originalEvent),this.onContextMenuSelect.emit({originalEvent:Cn.originalEvent,node:uo})}}}toggleNodeWithCheckbox(Cn){this.selection=this.selection||[],this.preventSelectionSetterPropagation=!0;let uo=Cn.rowNode.node;this.isSelected(uo)?(this.propagateSelectionDown(uo,!1),Cn.rowNode.parent&&this.propagateSelectionUp(uo.parent,!1),this.selectionChange.emit(this.selection),this.onNodeUnselect.emit({originalEvent:Cn,node:uo})):(this.propagateSelectionDown(uo,!0),Cn.rowNode.parent&&this.propagateSelectionUp(uo.parent,!0),this.selectionChange.emit(this.selection),this.onNodeSelect.emit({originalEvent:Cn,node:uo})),this.tableService.onSelectionChange()}toggleNodesWithCheckbox(Cn,uo){let fo=this.filteredNodes||this.value;if(this._selection=uo&&fo?fo.slice():[],uo){if(fo&&fo.length)for(let Jo of fo)this.propagateSelectionDown(Jo,!0)}else this._selection=[],this.selectionKeys={};this.preventSelectionSetterPropagation=!0,this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:Cn,checked:uo})}propagateSelectionUp(Cn,uo){if(Cn.children&&Cn.children.length){let Jo=0,kr=!1,Qr=this.dataKey?String(B.gb.resolveFieldData(Cn.data,this.dataKey)):null;for(let Aa of Cn.children)this.isSelected(Aa)?Jo++:Aa.partialSelected&&(kr=!0);if(uo&&Jo==Cn.children.length)this._selection=[...this.selection||[],Cn],Cn.partialSelected=!1,Qr&&(this.selectionKeys[Qr]=1);else{if(!uo){let Aa=this.findIndexInSelection(Cn);Aa>=0&&(this._selection=this.selection.filter((cs,ys)=>ys!=Aa),Qr&&delete this.selectionKeys[Qr])}Cn.partialSelected=!!(kr||Jo>0&&Jo!=Cn.children.length)}}let fo=Cn.parent;fo&&this.propagateSelectionUp(fo,uo)}propagateSelectionDown(Cn,uo){let fo=this.findIndexInSelection(Cn),Jo=this.dataKey?String(B.gb.resolveFieldData(Cn.data,this.dataKey)):null;if(uo&&-1==fo?(this._selection=[...this.selection||[],Cn],Jo&&(this.selectionKeys[Jo]=1)):!uo&&fo>-1&&(this._selection=this.selection.filter((kr,Qr)=>Qr!=fo),Jo&&delete this.selectionKeys[Jo]),Cn.partialSelected=!1,Cn.children&&Cn.children.length)for(let kr of Cn.children)this.propagateSelectionDown(kr,uo)}isSelected(Cn){return!(!Cn||!this.selection)&&(this.dataKey?void 0!==this.selectionKeys[B.gb.resolveFieldData(Cn.data,this.dataKey)]:Array.isArray(this.selection)?this.findIndexInSelection(Cn)>-1:this.equals(Cn,this.selection))}findIndexInSelection(Cn){let uo=-1;if(this.selection&&this.selection.length)for(let fo=0;fo<this.selection.length;fo++)if(this.equals(Cn,this.selection[fo])){uo=fo;break}return uo}isSingleSelectionMode(){return"single"===this.selectionMode}isMultipleSelectionMode(){return"multiple"===this.selectionMode}equals(Cn,uo){return"equals"===this.compareSelectionBy?Cn===uo:B.gb.equals(Cn.data,uo.data,this.dataKey)}filter(Cn,uo,fo){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(Cn)?this.filters[uo]&&delete this.filters[uo]:this.filters[uo]={value:Cn,matchMode:fo},this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay)}filterGlobal(Cn,uo){this.filter(Cn,"global",uo)}isFilterBlank(Cn){return null==Cn||!!("string"==typeof Cn&&0==Cn.trim().length||Array.isArray(Cn)&&0==Cn.length)}_filter(){if(this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(this.hasFilter()){let uo;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");uo=this.globalFilterFields||this.columns}this.filteredNodes=[];const fo="strict"===this.filterMode;let Jo=!1;for(let kr of this.value){let ys,Qr={...kr},Aa=!0,cs=!1;for(let Pi in this.filters)if(this.filters.hasOwnProperty(Pi)&&"global"!==Pi){let xo=this.filters[Pi];if(ys={filterField:Pi,filterValue:xo.value,filterConstraint:this.filterService.filters[xo.matchMode||"startsWith"],isStrictMode:fo},(fo&&!(this.findFilteredNodes(Qr,ys)||this.isFilterMatched(Qr,ys))||!fo&&!(this.isFilterMatched(Qr,ys)||this.findFilteredNodes(Qr,ys)))&&(Aa=!1),!Aa)break}if(this.filters.global&&!cs&&uo){let xo,Pi={...Qr};ys={filterField:xo,filterValue:this.filters.global.value,filterConstraint:this.filterService.filters[this.filters.global.matchMode],isStrictMode:fo,globalFilterFieldsArray:uo},(fo&&(this.findFilteredNodes(Pi,ys)||this.isFilterMatched(Pi,ys))||!fo&&(this.isFilterMatched(Pi,ys)||this.findFilteredNodes(Pi,ys)))&&(cs=!0,Qr=Pi)}let zr=Aa;this.filters.global&&(zr=Aa&&cs),zr&&this.filteredNodes.push(Qr),Jo=Jo||!Aa||cs||Aa&&this.filteredNodes.length>0||!cs&&0===this.filteredNodes.length}Jo||(this.filteredNodes=null),this.paginator&&(this.totalRecords=this.filteredNodes?this.filteredNodes.length:this.value?this.value.length:0)}else this.filteredNodes=null,this.paginator&&(this.totalRecords=this.value?this.value.length:0);this.cd.markForCheck()}this.first=0;const Cn=this.filteredNodes||this.value;this.onFilter.emit({filters:this.filters,filteredValue:Cn}),this.tableService.onUIUpdate(Cn),this.updateSerializedValue(),this.scrollable&&this.resetScrollTop()}findFilteredNodes(Cn,uo){if(Cn){let fo=!1;if(Cn.children){let Jo=[...Cn.children];Cn.children=[];for(let kr of Jo){let Qr={...kr};this.isFilterMatched(Qr,uo)&&(fo=!0,Cn.children.push(Qr))}}if(fo)return!0}}isFilterMatched(Cn,uo){let{filterField:fo,filterValue:Jo,filterConstraint:kr,isStrictMode:Qr,globalFilterFieldsArray:Aa}=uo,cs=!1;const ys=zr=>kr(B.gb.resolveFieldData(Cn.data,zr),Jo,this.filterLocale);return cs=Aa?.length?Aa.some(zr=>ys(zr.field||zr)):ys(fo),(!cs||Qr&&!this.isNodeLeaf(Cn))&&(cs=this.findFilteredNodes(Cn,{filterField:fo,filterValue:Jo,filterConstraint:kr,isStrictMode:Qr,globalFilterFieldsArray:Aa})||cs),cs}isNodeLeaf(Cn){return!1!==Cn.leaf&&!(Cn.children&&Cn.children.length)}hasFilter(){let Cn=!0;for(let uo in this.filters)if(this.filters.hasOwnProperty(uo)){Cn=!1;break}return!Cn}reset(){this._sortField=null,this._sortOrder=1,this._multiSortMeta=null,this.tableService.onSort(null),this.filteredNodes=null,this.filters={},this.first=0,this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.totalRecords=this._value?this._value.length:0}updateEditingCell(Cn,uo,fo){this.editingCell=Cn,this.editingCellData=uo,this.editingCellField=fo,this.bindDocumentEditListener()}isEditingCellValid(){return this.editingCell&&0===l.p.find(this.editingCell,".ng-invalid.ng-dirty").length}bindDocumentEditListener(){this.documentEditListener||(this.documentEditListener=this.renderer.listen(this.document,"click",Cn=>{this.editingCell&&!this.editingCellClick&&this.isEditingCellValid()&&(l.p.removeClass(this.editingCell,"p-cell-editing"),this.editingCell=null,this.onEditComplete.emit({field:this.editingCellField,data:this.editingCellData}),this.editingCellField=null,this.editingCellData=null,this.unbindDocumentEditListener()),this.editingCellClick=!1}))}unbindDocumentEditListener(){this.documentEditListener&&(this.documentEditListener(),this.documentEditListener=null)}ngOnDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.editingCellField=null,this.editingCellData=null,this.initialized=null}static \u0275fac=function(uo){return new(uo||Yi)(n.Y36(e.K0),n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(n.R0b),n.Y36(hs),n.Y36(s.iZ))};static \u0275cmp=n.Xpm({type:Yi,selectors:[["p-treeTable"]],contentQueries:function(uo,fo,Jo){if(1&uo&&n.Suo(Jo,s.jx,4),2&uo){let kr;n.iGM(kr=n.CRH())&&(fo.templates=kr)}},viewQuery:function(uo,fo){if(1&uo&&(n.Gf(J,5),n.Gf(q,5),n.Gf(j,5),n.Gf(Y,5),n.Gf(K,5),n.Gf(ne,5),n.Gf(ee,5)),2&uo){let Jo;n.iGM(Jo=n.CRH())&&(fo.containerViewChild=Jo.first),n.iGM(Jo=n.CRH())&&(fo.resizeHelperViewChild=Jo.first),n.iGM(Jo=n.CRH())&&(fo.reorderIndicatorUpViewChild=Jo.first),n.iGM(Jo=n.CRH())&&(fo.reorderIndicatorDownViewChild=Jo.first),n.iGM(Jo=n.CRH())&&(fo.tableViewChild=Jo.first),n.iGM(Jo=n.CRH())&&(fo.scrollableViewChild=Jo.first),n.iGM(Jo=n.CRH())&&(fo.scrollableFrozenViewChild=Jo.first)}},hostAttrs:[1,"p-element"],inputs:{columns:"columns",style:"style",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",autoLayout:"autoLayout",lazy:"lazy",lazyLoadOnInit:"lazyLoadOnInit",paginator:"paginator",rows:"rows",first:"first",pageLinks:"pageLinks",rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:"alwaysShowPaginator",paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showJumpToPageDropdown:"showJumpToPageDropdown",showFirstLastIcon:"showFirstLastIcon",showPageLinks:"showPageLinks",defaultSortOrder:"defaultSortOrder",sortMode:"sortMode",resetPageOnSort:"resetPageOnSort",customSort:"customSort",selectionMode:"selectionMode",contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:"metaKeySelection",compareSelectionBy:"compareSelectionBy",rowHover:"rowHover",loading:"loading",loadingIcon:"loadingIcon",showLoader:"showLoader",scrollable:"scrollable",scrollHeight:"scrollHeight",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",virtualScrollDelay:"virtualScrollDelay",frozenWidth:"frozenWidth",frozenColumns:"frozenColumns",resizableColumns:"resizableColumns",columnResizeMode:"columnResizeMode",reorderableColumns:"reorderableColumns",contextMenu:"contextMenu",rowTrackBy:"rowTrackBy",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:"filterDelay",filterMode:"filterMode",filterLocale:"filterLocale",paginatorLocale:"paginatorLocale",totalRecords:"totalRecords",sortField:"sortField",sortOrder:"sortOrder",multiSortMeta:"multiSortMeta",selection:"selection",value:"value",virtualRowHeight:"virtualRowHeight"},outputs:{selectionChange:"selectionChange",contextMenuSelectionChange:"contextMenuSelectionChange",onFilter:"onFilter",onNodeExpand:"onNodeExpand",onNodeCollapse:"onNodeCollapse",onPage:"onPage",onSort:"onSort",onLazyLoad:"onLazyLoad",sortFunction:"sortFunction",onColResize:"onColResize",onColReorder:"onColReorder",onNodeSelect:"onNodeSelect",onNodeUnselect:"onNodeUnselect",onContextMenuSelect:"onContextMenuSelect",onHeaderCheckboxToggle:"onHeaderCheckboxToggle",onEditInit:"onEditInit",onEditComplete:"onEditComplete",onEditCancel:"onEditCancel"},features:[n._Bn([hs]),n.TTD],decls:12,vars:20,consts:[["data-scrollselectors",".p-treetable-scrollable-body",3,"ngStyle","ngClass"],["container",""],["class","p-treetable-loading",4,"ngIf"],["class","p-treetable-header",4,"ngIf"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],["class","p-treetable-wrapper",4,"ngIf"],["class","p-treetable-scrollable-wrapper",4,"ngIf"],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],["class","p-treetable-footer",4,"ngIf"],["class","p-column-resizer-helper","style","display:none",4,"ngIf"],["class","p-treetable-reorder-indicator-up","style","display: none;",4,"ngIf"],["class","p-treetable-reorder-indicator-down","style","display: none;",4,"ngIf"],[1,"p-treetable-loading"],[1,"p-treetable-loading-overlay","p-component-overlay"],[3,"class",4,"ngIf"],[4,"ngIf"],[3,"spin","styleClass",4,"ngIf"],["class","p-treetable-loading-icon",4,"ngIf"],[3,"spin","styleClass"],[1,"p-treetable-loading-icon"],[4,"ngTemplateOutlet"],[1,"p-treetable-header"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","locale","onPageChange"],["pTemplate","firstpagelinkicon"],["pTemplate","previouspagelinkicon"],["pTemplate","lastpagelinkicon"],["pTemplate","nextpagelinkicon"],[1,"p-treetable-wrapper"],["role","table",3,"ngClass","ngStyle"],["table",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","rowgroup",1,"p-treetable-thead"],["role","rowgroup",1,"p-treetable-tbody",3,"pTreeTableBody","pTreeTableBodyTemplate"],["role","rowgroup",1,"p-treetable-tfoot"],[1,"p-treetable-scrollable-wrapper"],["class","p-treetable-scrollable-view p-treetable-frozen-view",3,"ttScrollableView","frozen","ngStyle","scrollHeight",4,"ngIf"],[1,"p-treetable-scrollable-view",3,"ttScrollableView","frozen","scrollHeight","ngStyle"],["scrollableView",""],[1,"p-treetable-scrollable-view","p-treetable-frozen-view",3,"ttScrollableView","frozen","ngStyle","scrollHeight"],["scrollableFrozenView",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","locale","onPageChange"],[1,"p-treetable-footer"],[1,"p-column-resizer-helper",2,"display","none"],["resizeHelper",""],[1,"p-treetable-reorder-indicator-up",2,"display","none"],["reorderIndicatorUp",""],[1,"p-treetable-reorder-indicator-down",2,"display","none"],["reorderIndicatorDown",""]],template:function(uo,fo){1&uo&&(n.TgZ(0,"div",0,1),n.YNc(2,R,4,2,"div",2)(3,me,2,1,"div",3)(4,ve,5,21,"p-paginator",4)(5,Xt,9,16,"div",5)(6,ot,4,8,"div",6)(7,Li,5,21,"p-paginator",7)(8,Ii,2,1,"div",8)(9,_i,2,0,"div",9)(10,ln,4,2,"span",10)(11,Ve,4,2,"span",11),n.qZA()),2&uo&&(n.Tol(fo.styleClass),n.Q6J("ngStyle",fo.style)("ngClass",n.qbA(14,Ce,fo.rowHover||"single"===fo.selectionMode||"multiple"===fo.selectionMode,fo.autoLayout,fo.resizableColumns,fo.resizableColumns&&"fit"===fo.columnResizeMode,fo.scrollable&&"flex"===fo.scrollHeight)),n.xp6(2),n.Q6J("ngIf",fo.loading&&fo.showLoader),n.xp6(),n.Q6J("ngIf",fo.captionTemplate),n.xp6(),n.Q6J("ngIf",fo.paginator&&("top"===fo.paginatorPosition||"both"==fo.paginatorPosition)),n.xp6(),n.Q6J("ngIf",!fo.scrollable),n.xp6(),n.Q6J("ngIf",fo.scrollable),n.xp6(),n.Q6J("ngIf",fo.paginator&&("bottom"===fo.paginatorPosition||"both"==fo.paginatorPosition)),n.xp6(),n.Q6J("ngIf",fo.summaryTemplate),n.xp6(),n.Q6J("ngIf",fo.resizableColumns),n.xp6(),n.Q6J("ngIf",fo.reorderableColumns),n.xp6(),n.Q6J("ngIf",fo.reorderableColumns))},dependencies:()=>[e.mk,e.O5,e.tP,e.PC,O.D,s.jx,H.L,i.v,t.H,Qi,Tn],styles:["@layer primeng{.p-treetable{position:relative}.p-treetable table{border-collapse:collapse;width:100%;table-layout:fixed}.p-treetable .p-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.p-treetable .p-sortable-column .p-column-title,.p-treetable .p-sortable-column .p-sortable-column-icon,.p-treetable .p-sortable-column .p-sortable-column-badge{vertical-align:middle}.p-treetable .p-sortable-column .p-sortable-column-badge{display:inline-flex;align-items:center;justify-content:center}.p-treetable-auto-layout>.p-treetable-wrapper{overflow-x:auto}.p-treetable-auto-layout>.p-treetable-wrapper>table{table-layout:auto}.p-treetable-hoverable-rows .p-treetable-tbody>tr{cursor:pointer}.p-treetable-toggler{cursor:pointer;-webkit-user-select:none;user-select:none;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;overflow:hidden;position:relative}p-treetabletoggler+p-treetablecheckbox .p-checkbox{vertical-align:middle}p-treetabletoggler+p-treetablecheckbox+span{vertical-align:middle}.p-treetable-scrollable-wrapper{position:relative}.p-treetable-scrollable-header,.p-treetable-scrollable-footer{overflow:hidden;flex-shrink:0}.p-treetable-scrollable-body{overflow:auto;position:relative}.p-treetable-scrollable-body>table>.p-treetable-tbody>tr:first-child>td{border-top:0 none}.p-treetable-virtual-table{position:absolute}.p-treetable-frozen-view .p-treetable-scrollable-body{overflow:hidden}.p-treetable-frozen-view>.p-treetable-scrollable-body>table>.p-treetable-tbody>tr>td:last-child{border-right:0 none}.p-treetable-unfrozen-view{position:absolute;top:0}.p-treetable-flex-scrollable,.p-treetable-flex-scrollable .p-treetable-scrollable-wrapper,.p-treetable-flex-scrollable .p-treetable-scrollable-view{display:flex;flex-direction:column;flex:1;height:100%}.p-treetable-flex-scrollable .p-treetable-virtual-scrollable-body{flex:1}.p-treetable-resizable>.p-treetable-wrapper{overflow-x:auto}.p-treetable-resizable .p-treetable-thead>tr>th,.p-treetable-resizable .p-treetable-tfoot>tr>td,.p-treetable-resizable .p-treetable-tbody>tr>td{overflow:hidden}.p-treetable-resizable .p-resizable-column{background-clip:padding-box;position:relative}.p-treetable-resizable-fit .p-resizable-column:last-child .p-column-resizer{display:none}.p-treetable .p-column-resizer{display:block;position:absolute!important;top:0;right:0;margin:0;width:.5rem;height:100%;padding:0;cursor:col-resize;border:1px solid transparent}.p-treetable .p-column-resizer-helper{width:1px;position:absolute;z-index:10;display:none}.p-treetable .p-row-editor-init,.p-treetable .p-row-editor-save,.p-treetable .p-row-editor-cancel,.p-treetable .p-row-toggler{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-treetable-reorder-indicator-up,.p-treetable-reorder-indicator-down{position:absolute;display:none}[ttReorderableColumn]{cursor:move}.p-treetable .p-treetable-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2}.p-treetable .p-scroller-loading{transform:none!important;min-height:0;position:sticky;top:0;left:0}}\n"],encapsulation:2})}return Yi})(),Tn=(()=>{class Yi{tt;treeTableService;cd;columns;template;frozen;serializedNodes;scrollerOptions;subscription;constructor(Cn,uo,fo){this.tt=Cn,this.treeTableService=uo,this.cd=fo,this.subscription=this.tt.tableService.uiUpdateSource$.subscribe(()=>{this.tt.virtualScroll&&this.cd.detectChanges()})}getScrollerOption(Cn,uo){return this.tt.virtualScroll&&(uo=uo||this.scrollerOptions)?uo[Cn]:null}getRowIndex(Cn){const uo=this.getScrollerOption("getItemOptions");return uo?uo(Cn).index:Cn}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static \u0275fac=function(uo){return new(uo||Yi)(n.Y36(Ua),n.Y36(hs),n.Y36(n.sBO))};static \u0275cmp=n.Xpm({type:Yi,selectors:[["","pTreeTableBody",""]],hostAttrs:[1,"p-element"],inputs:{columns:[n.lbL.None,"pTreeTableBody","columns"],template:[n.lbL.None,"pTreeTableBodyTemplate","template"],frozen:"frozen",serializedNodes:"serializedNodes",scrollerOptions:"scrollerOptions"},attrs:tt,decls:2,vars:3,consts:[["ngFor","",3,"ngForOf","ngForTrackBy"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(uo,fo){1&uo&&n.YNc(0,Yt,1,1,"ng-template",0)(1,Bt,2,5,"ng-container",1),2&uo&&(n.Q6J("ngForOf",fo.serializedNodes||fo.tt.serializedValue)("ngForTrackBy",fo.tt.rowTrackBy),n.xp6(),n.Q6J("ngIf",fo.tt.isEmpty()))},dependencies:[e.sg,e.O5,e.tP],encapsulation:2})}return Yi})(),Qi=(()=>{class Yi{platformId;renderer;tt;el;zone;columns;frozen;scrollHeaderViewChild;scrollHeaderBoxViewChild;scrollBodyViewChild;scrollTableViewChild;scrollLoadingTableViewChild;scrollFooterViewChild;scrollFooterBoxViewChild;scrollableAlignerViewChild;scroller;headerScrollListener;bodyScrollListener;footerScrollListener;frozenSiblingBody;totalRecordsSubscription;_scrollHeight;preventBodyScrollPropagation;get scrollHeight(){return this._scrollHeight}set scrollHeight(Cn){this._scrollHeight=Cn,null!=Cn&&(Cn.includes("%")||Cn.includes("calc"))&&console.log('Percentage scroll height calculation is removed in favor of the more performant CSS based flex mode, use scrollHeight="flex" instead.')}constructor(Cn,uo,fo,Jo,kr){this.platformId=Cn,this.renderer=uo,this.tt=fo,this.el=Jo,this.zone=kr}ngAfterViewInit(){if((0,e.NF)(this.platformId)){if(this.frozen)this.scrollableAlignerViewChild&&this.scrollableAlignerViewChild.nativeElement&&(this.scrollableAlignerViewChild.nativeElement.style.height=l.p.calculateScrollbarHeight()+"px");else{(this.tt.frozenColumns||this.tt.frozenBodyTemplate)&&l.p.addClass(this.el.nativeElement,"p-treetable-unfrozen-view");let Cn=this.el.nativeElement.previousElementSibling;Cn&&(this.frozenSiblingBody=l.p.findSingle(Cn,this.tt.virtualScroll?".p-scroller-viewport":".p-treetable-scrollable-body"));let uo=l.p.calculateScrollbarWidth();this.scrollHeaderBoxViewChild.nativeElement.style.paddingRight=uo+"px",this.scrollFooterBoxViewChild&&this.scrollFooterBoxViewChild.nativeElement&&(this.scrollFooterBoxViewChild.nativeElement.style.paddingRight=uo+"px")}this.bindEvents()}}bindEvents(){(0,e.NF)(this.platformId)&&this.zone.runOutsideAngular(()=>{this.scrollHeaderViewChild&&this.scrollHeaderViewChild.nativeElement&&(this.headerScrollListener=this.renderer.listen(this.scrollHeaderBoxViewChild?.nativeElement,"scroll",this.onHeaderScroll.bind(this))),this.scrollFooterViewChild&&this.scrollFooterViewChild.nativeElement&&(this.footerScrollListener=this.renderer.listen(this.scrollFooterViewChild.nativeElement,"scroll",this.onFooterScroll.bind(this))),this.frozen||(this.bodyScrollListener=this.renderer.listen(this.tt.virtualScroll?(this.scroller?.getElementRef()).nativeElement:this.scrollBodyViewChild?.nativeElement,"scroll",this.onBodyScroll.bind(this)))})}unbindEvents(){(0,e.NF)(this.platformId)&&(this.scrollHeaderViewChild&&this.scrollHeaderViewChild.nativeElement&&this.headerScrollListener&&(this.headerScrollListener(),this.headerScrollListener=null),this.scrollFooterViewChild&&this.scrollFooterViewChild.nativeElement&&this.footerScrollListener&&(this.footerScrollListener(),this.footerScrollListener=null),this.scrollBodyViewChild&&this.scrollBodyViewChild.nativeElement&&this.bodyScrollListener&&(this.bodyScrollListener(),this.bodyScrollListener=null),this.scroller&&this.scroller.getElementRef()&&this.bodyScrollListener&&(this.bodyScrollListener(),this.bodyScrollListener=null))}onHeaderScroll(){const Cn=this.scrollHeaderViewChild?.nativeElement.scrollLeft;this.scrollBodyViewChild.nativeElement.scrollLeft=Cn,this.scrollFooterViewChild&&this.scrollFooterViewChild.nativeElement&&(this.scrollFooterViewChild.nativeElement.scrollLeft=Cn),this.preventBodyScrollPropagation=!0}onFooterScroll(){const Cn=this.scrollFooterViewChild?.nativeElement.scrollLeft;this.scrollBodyViewChild.nativeElement.scrollLeft=Cn,this.scrollHeaderViewChild&&this.scrollHeaderViewChild.nativeElement&&(this.scrollHeaderViewChild.nativeElement.scrollLeft=Cn),this.preventBodyScrollPropagation=!0}onBodyScroll(Cn){this.preventBodyScrollPropagation?this.preventBodyScrollPropagation=!1:(this.scrollHeaderViewChild&&this.scrollHeaderViewChild.nativeElement&&(this.scrollHeaderBoxViewChild.nativeElement.style.marginLeft=-1*Cn.target.scrollLeft+"px"),this.scrollFooterViewChild&&this.scrollFooterViewChild.nativeElement&&(this.scrollFooterBoxViewChild.nativeElement.style.marginLeft=-1*Cn.target.scrollLeft+"px"),this.frozenSiblingBody&&(this.frozenSiblingBody.scrollTop=Cn.target.scrollTop))}scrollToVirtualIndex(Cn){this.scroller&&this.scroller.scrollToIndex(Cn)}scrollTo(Cn){this.scroller?this.scroller.scrollTo(Cn):this.scrollBodyViewChild?.nativeElement.scrollTo?this.scrollBodyViewChild.nativeElement.scrollTo(Cn):(this.scrollBodyViewChild.nativeElement.scrollLeft=Cn.left,this.scrollBodyViewChild.nativeElement.scrollTop=Cn.top)}ngOnDestroy(){this.unbindEvents(),this.frozenSiblingBody=null}static \u0275fac=function(uo){return new(uo||Yi)(n.Y36(n.Lbi),n.Y36(n.Qsj),n.Y36(Ua),n.Y36(n.SBq),n.Y36(n.R0b))};static \u0275cmp=n.Xpm({type:Yi,selectors:[["","ttScrollableView",""]],viewQuery:function(uo,fo){if(1&uo&&(n.Gf(li,5),n.Gf(si,5),n.Gf(oo,5),n.Gf(_o,5),n.Gf(Hn,5),n.Gf(mo,5),n.Gf(vn,5),n.Gf(Ji,5),n.Gf(wn,5)),2&uo){let Jo;n.iGM(Jo=n.CRH())&&(fo.scrollHeaderViewChild=Jo.first),n.iGM(Jo=n.CRH())&&(fo.scrollHeaderBoxViewChild=Jo.first),n.iGM(Jo=n.CRH())&&(fo.scrollBodyViewChild=Jo.first),n.iGM(Jo=n.CRH())&&(fo.scrollTableViewChild=Jo.first),n.iGM(Jo=n.CRH())&&(fo.scrollLoadingTableViewChild=Jo.first),n.iGM(Jo=n.CRH())&&(fo.scrollFooterViewChild=Jo.first),n.iGM(Jo=n.CRH())&&(fo.scrollFooterBoxViewChild=Jo.first),n.iGM(Jo=n.CRH())&&(fo.scrollableAlignerViewChild=Jo.first),n.iGM(Jo=n.CRH())&&(fo.scroller=Jo.first)}},hostAttrs:[1,"p-element"],inputs:{columns:[n.lbL.None,"ttScrollableView","columns"],frozen:"frozen",scrollHeight:"scrollHeight"},attrs:po,decls:13,vars:13,consts:[[1,"p-treetable-scrollable-header"],["scrollHeader",""],[1,"p-treetable-scrollable-header-box"],["scrollHeaderBox",""],[1,"p-treetable-scrollable-header-table",3,"ngClass","ngStyle"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","rowgroup",1,"p-treetable-thead"],["styleClass","p-treetable-scrollable-body",3,"items","style","scrollHeight","itemSize","lazy","options","onLazyLoad",4,"ngIf"],[4,"ngIf"],["buildInItems",""],["class","p-treetable-scrollable-footer",4,"ngIf"],["styleClass","p-treetable-scrollable-body",3,"items","scrollHeight","itemSize","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","content"],["pTemplate","loader"],[1,"p-treetable-scrollable-body",3,"ngStyle"],["scrollBody",""],["role","table",3,"ngClass","ngStyle"],["scrollTable",""],["role","rowgroup",1,"p-treetable-tbody",3,"pTreeTableBody","pTreeTableBodyTemplate","serializedNodes","frozen"],["style","background-color:transparent",4,"ngIf"],[2,"background-color","transparent"],["scrollableAligner",""],[1,"p-treetable-scrollable-footer"],["scrollFooter",""],[1,"p-treetable-scrollable-footer-box"],["scrollFooterBox",""],[1,"p-treetable-scrollable-footer-table",3,"ngClass","ngStyle"],["role","rowgroup",1,"p-treetable-tfoot"]],template:function(uo,fo){1&uo&&(n.TgZ(0,"div",0,1)(2,"div",2,3)(4,"table",4),n.YNc(5,Kn,1,0,"ng-container",5),n.TgZ(6,"thead",6),n.YNc(7,Vn,1,0,"ng-container",5),n.qZA()()()(),n.YNc(8,kn,4,10,"p-scroller",7)(9,At,4,10,"ng-container",8)(10,Bi,5,15,"ng-template",null,9,n.W1O)(12,Xo,8,10,"div",10)),2&uo&&(n.xp6(4),n.Q6J("ngClass",fo.tt.tableStyleClass)("ngStyle",fo.tt.tableStyle),n.xp6(),n.Q6J("ngTemplateOutlet",fo.frozen&&fo.tt.frozenColGroupTemplate||fo.tt.colGroupTemplate)("ngTemplateOutletContext",n.VKq(9,ti,fo.columns)),n.xp6(2),n.Q6J("ngTemplateOutlet",fo.frozen&&fo.tt.frozenHeaderTemplate||fo.tt.headerTemplate)("ngTemplateOutletContext",n.VKq(11,ti,fo.columns)),n.xp6(),n.Q6J("ngIf",fo.tt.virtualScroll),n.xp6(),n.Q6J("ngIf",!fo.tt.virtualScroll),n.xp6(3),n.Q6J("ngIf",fo.tt.footerTemplate))},dependencies:[e.mk,e.O5,e.tP,e.PC,s.jx,G.T,Tn],encapsulation:2})}return Yi})(),oi=(()=>{class Yi{document;platformId;renderer;tt;el;zone;ttResizableColumnDisabled;resizer;resizerMouseDownListener;documentMouseMoveListener;documentMouseUpListener;constructor(Cn,uo,fo,Jo,kr,Qr){this.document=Cn,this.platformId=uo,this.renderer=fo,this.tt=Jo,this.el=kr,this.zone=Qr}ngAfterViewInit(){(0,e.NF)(this.platformId)&&this.isEnabled()&&(l.p.addClass(this.el.nativeElement,"p-resizable-column"),this.resizer=this.renderer.createElement("span"),this.renderer.addClass(this.resizer,"p-column-resizer"),this.renderer.appendChild(this.el.nativeElement,this.resizer),this.zone.runOutsideAngular(()=>{this.resizerMouseDownListener=this.renderer.listen(this.resizer,"mousedown",this.onMouseDown.bind(this))}))}bindDocumentEvents(){this.zone.runOutsideAngular(()=>{this.documentMouseMoveListener=this.renderer.listen(this.document,"mousemove",this.onDocumentMouseMove.bind(this)),this.documentMouseUpListener=this.renderer.listen(this.document,"mouseup",this.onDocumentMouseUp.bind(this))})}unbindDocumentEvents(){this.documentMouseMoveListener&&(this.documentMouseMoveListener(),this.documentMouseMoveListener=null),this.documentMouseUpListener&&(this.documentMouseUpListener(),this.documentMouseUpListener=null)}onMouseDown(Cn){this.tt.onColumnResizeBegin(Cn),this.bindDocumentEvents()}onDocumentMouseMove(Cn){this.tt.onColumnResize(Cn)}onDocumentMouseUp(Cn){this.tt.onColumnResizeEnd(Cn,this.el.nativeElement),this.unbindDocumentEvents()}isEnabled(){return!0!==this.ttResizableColumnDisabled}ngOnDestroy(){this.resizerMouseDownListener&&(this.resizerMouseDownListener(),this.resizerMouseDownListener=null),this.unbindDocumentEvents()}static \u0275fac=function(uo){return new(uo||Yi)(n.Y36(e.K0),n.Y36(n.Lbi),n.Y36(n.Qsj),n.Y36(Ua),n.Y36(n.SBq),n.Y36(n.R0b))};static \u0275dir=n.lG2({type:Yi,selectors:[["","ttResizableColumn",""]],hostAttrs:[1,"p-element"],inputs:{ttResizableColumnDisabled:"ttResizableColumnDisabled"}})}return Yi})(),ma=(()=>{class Yi{tt;config;rowNode;constructor(Cn,uo){this.tt=Cn,this.config=uo}get toggleButtonAriaLabel(){return this.config.translation?this.rowNode.expanded?this.config.translation.aria.collapseRow:this.config.translation.aria.expandRow:void 0}onClick(Cn){this.rowNode.node.expanded=!this.rowNode.node.expanded,this.rowNode.node.expanded?this.tt.onNodeExpand.emit({originalEvent:Cn,node:this.rowNode.node}):this.tt.onNodeCollapse.emit({originalEvent:Cn,node:this.rowNode.node}),this.tt.updateSerializedValue(),this.tt.tableService.onUIUpdate(this.tt.value),Cn.preventDefault()}static \u0275fac=function(uo){return new(uo||Yi)(n.Y36(Ua),n.Y36(s.b4))};static \u0275cmp=n.Xpm({type:Yi,selectors:[["p-treeTableToggler"]],hostAttrs:[1,"p-element"],inputs:{rowNode:"rowNode"},decls:3,vars:12,consts:[["type","button","tabindex","-1","pRipple","",1,"p-treetable-toggler","p-link",3,"click"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(uo,fo){1&uo&&(n.TgZ(0,"button",0),n.NdJ("click",function(kr){return fo.onClick(kr)}),n.YNc(1,Ds,3,2,"ng-container",1)(2,ka,1,0,null,2),n.qZA()),2&uo&&(n.Udp("visibility",!1===fo.rowNode.node.leaf||fo.rowNode.node.children&&fo.rowNode.node.children.length?"visible":"hidden")("margin-left",16*fo.rowNode.level+"px"),n.uIk("data-pc-section","rowtoggler")("data-pc-group-section","rowactionbutton")("aria-label",fo.toggleButtonAriaLabel),n.xp6(),n.Q6J("ngIf",!fo.tt.togglerIconTemplate),n.xp6(),n.Q6J("ngTemplateOutlet",fo.tt.togglerIconTemplate)("ngTemplateOutletContext",n.VKq(10,ti,fo.rowNode.node.expanded)))},dependencies:()=>[e.O5,e.tP,P.H,c.v,o.X],encapsulation:2})}return Yi})(),Wa=(()=>{class Yi{static \u0275fac=function(uo){return new(uo||Yi)};static \u0275mod=n.oAB({type:Yi});static \u0275inj=n.cJS({imports:[e.ez,O.U,P.T,G.v,H.L,i.v,t.H,m.V,I.m,b.W,p.n,u,c.v,o.X,s.m8,G.v]})}return Yi})()},2332:(gt,X,a)=>{"use strict";a.d(X,{P9:()=>i,Th:()=>s,gb:()=>e});class e{static isArray(p,c=!0){return Array.isArray(p)&&(c||0!==p.length)}static isObject(p,c=!0){return"object"==typeof p&&!Array.isArray(p)&&null!=p&&(c||0!==Object.keys(p).length)}static equals(p,c,o){return o?this.resolveFieldData(p,o)===this.resolveFieldData(c,o):this.equalsByValue(p,c)}static equalsByValue(p,c){if(p===c)return!0;if(p&&c&&"object"==typeof p&&"object"==typeof c){var u,m,b,o=Array.isArray(p),x=Array.isArray(c);if(o&&x){if((m=p.length)!=c.length)return!1;for(u=m;0!=u--;)if(!this.equalsByValue(p[u],c[u]))return!1;return!0}if(o!=x)return!1;var I=this.isDate(p),H=this.isDate(c);if(I!=H)return!1;if(I&&H)return p.getTime()==c.getTime();var O=p instanceof RegExp,P=c instanceof RegExp;if(O!=P)return!1;if(O&&P)return p.toString()==c.toString();var G=Object.keys(p);if((m=G.length)!==Object.keys(c).length)return!1;for(u=m;0!=u--;)if(!Object.prototype.hasOwnProperty.call(c,G[u]))return!1;for(u=m;0!=u--;)if(!this.equalsByValue(p[b=G[u]],c[b]))return!1;return!0}return p!=p&&c!=c}static resolveFieldData(p,c){if(p&&c){if(this.isFunction(c))return c(p);if(-1==c.indexOf("."))return p[c];{let o=c.split("."),x=p;for(let u=0,m=o.length;u<m;++u){if(null==x)return null;x=x[o[u]]}return x}}return null}static isFunction(p){return!!(p&&p.constructor&&p.call&&p.apply)}static reorderArray(p,c,o){p&&c!==o&&(o>=p.length&&(o%=p.length,c%=p.length),p.splice(o,0,p.splice(c,1)[0]))}static insertIntoOrderedArray(p,c,o,x){if(o.length>0){let u=!1;for(let m=0;m<o.length;m++)if(this.findIndexInList(o[m],x)>c){o.splice(m,0,p),u=!0;break}u||o.push(p)}else o.push(p)}static findIndexInList(p,c){let o=-1;if(c)for(let x=0;x<c.length;x++)if(c[x]==p){o=x;break}return o}static contains(p,c){if(null!=p&&c&&c.length)for(let o of c)if(this.equals(p,o))return!0;return!1}static removeAccents(p){return p&&(p=p.normalize("NFKD").replace(new RegExp("\\p{Diacritic}","gu"),"")),p}static isDate(p){return"[object Date]"===Object.prototype.toString.call(p)}static isEmpty(p){return null==p||""===p||Array.isArray(p)&&0===p.length||!this.isDate(p)&&"object"==typeof p&&0===Object.keys(p).length}static isNotEmpty(p){return!this.isEmpty(p)}static compare(p,c,o,x=1){let u=-1;const m=this.isEmpty(p),b=this.isEmpty(c);return u=m&&b?0:m?x:b?-x:"string"==typeof p&&"string"==typeof c?p.localeCompare(c,o,{numeric:!0}):p<c?-1:p>c?1:0,u}static sort(p,c,o=1,x,u=1){const m=e.compare(p,c,x,o);let b=o;return(e.isEmpty(p)||e.isEmpty(c))&&(b=1===u?o:u),b*m}static merge(p,c){if(null!=p||null!=c)return null!=p&&"object"!=typeof p||null!=c&&"object"!=typeof c?null!=p&&"string"!=typeof p||null!=c&&"string"!=typeof c?c||p:[p||"",c||""].join(" "):{...p||{},...c||{}}}static isPrintableCharacter(p=""){return this.isNotEmpty(p)&&1===p.length&&p.match(/\S| /)}static getItemValue(p,...c){return this.isFunction(p)?p(...c):p}static findLastIndex(p,c){let o=-1;if(this.isNotEmpty(p))try{o=p.findLastIndex(c)}catch{o=p.lastIndexOf([...p].reverse().find(c))}return o}static findLast(p,c){let o;if(this.isNotEmpty(p))try{o=p.findLast(c)}catch{o=[...p].reverse().find(c)}return o}static deepEquals(p,c){if(p===c)return!0;if(p&&c&&"object"==typeof p&&"object"==typeof c){var u,m,b,o=Array.isArray(p),x=Array.isArray(c);if(o&&x){if((m=p.length)!=c.length)return!1;for(u=m;0!=u--;)if(!this.deepEquals(p[u],c[u]))return!1;return!0}if(o!=x)return!1;var I=p instanceof Date,H=c instanceof Date;if(I!=H)return!1;if(I&&H)return p.getTime()==c.getTime();var O=p instanceof RegExp,P=c instanceof RegExp;if(O!=P)return!1;if(O&&P)return p.toString()==c.toString();var G=Object.keys(p);if((m=G.length)!==Object.keys(c).length)return!1;for(u=m;0!=u--;)if(!Object.prototype.hasOwnProperty.call(c,G[u]))return!1;for(u=m;0!=u--;)if(!this.deepEquals(p[b=G[u]],c[b]))return!1;return!0}return p!=p&&c!=c}}var n=0;function s(t="pn_id_"){return`${t}${++n}`}var i=function l(){let t=[];const x=u=>u&&parseInt(u.style.zIndex,10)||0;return{get:x,set:(u,m,b)=>{m&&(m.style.zIndex=String(((u,m)=>{let b=t.length>0?t[t.length-1]:{key:u,value:m},I=b.value+(b.key===u?0:m)+2;return t.push({key:u,value:I}),I})(u,b)))},clear:u=>{u&&((u=>{t=t.filter(m=>m.value!==u)})(x(u)),u.style.zIndex="")},getCurrent:()=>t.length>0?t[t.length-1].value:0}}()},15861:(gt,X,a)=>{"use strict";function e(s,l,i,t,p,c,o){try{var x=s[c](o),u=x.value}catch(m){return void i(m)}x.done?l(u):Promise.resolve(u).then(t,p)}function n(s){return function(){var l=this,i=arguments;return new Promise(function(t,p){var c=s.apply(l,i);function o(u){e(c,t,p,o,x,"next",u)}function x(u){e(c,t,p,o,x,"throw",u)}o(void 0)})}}a.d(X,{Z:()=>n})},97582:(gt,X,a)=>{"use strict";a.r(X),a.d(X,{__addDisposableResource:()=>at,__assign:()=>s,__asyncDelegator:()=>j,__asyncGenerator:()=>q,__asyncValues:()=>Y,__await:()=>J,__awaiter:()=>m,__classPrivateFieldGet:()=>ue,__classPrivateFieldIn:()=>Ke,__classPrivateFieldSet:()=>ge,__createBinding:()=>I,__decorate:()=>i,__disposeResources:()=>R,__esDecorate:()=>p,__exportStar:()=>H,__extends:()=>n,__generator:()=>b,__importDefault:()=>$,__importStar:()=>ee,__makeTemplateObject:()=>K,__metadata:()=>u,__param:()=>t,__propKey:()=>o,__read:()=>P,__rest:()=>l,__runInitializers:()=>c,__setFunctionName:()=>x,__spread:()=>G,__spreadArray:()=>ae,__spreadArrays:()=>B,__values:()=>O,default:()=>Te});var e=function(me,Se){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ue,We){Ue.__proto__=We}||function(Ue,We){for(var et in We)Object.prototype.hasOwnProperty.call(We,et)&&(Ue[et]=We[et])})(me,Se)};function n(me,Se){if("function"!=typeof Se&&null!==Se)throw new TypeError("Class extends value "+String(Se)+" is not a constructor or null");function Ue(){this.constructor=me}e(me,Se),me.prototype=null===Se?Object.create(Se):(Ue.prototype=Se.prototype,new Ue)}var s=function(){return s=Object.assign||function(Se){for(var Ue,We=1,et=arguments.length;We<et;We++)for(var Et in Ue=arguments[We])Object.prototype.hasOwnProperty.call(Ue,Et)&&(Se[Et]=Ue[Et]);return Se},s.apply(this,arguments)};function l(me,Se){var Ue={};for(var We in me)Object.prototype.hasOwnProperty.call(me,We)&&Se.indexOf(We)<0&&(Ue[We]=me[We]);if(null!=me&&"function"==typeof Object.getOwnPropertySymbols){var et=0;for(We=Object.getOwnPropertySymbols(me);et<We.length;et++)Se.indexOf(We[et])<0&&Object.prototype.propertyIsEnumerable.call(me,We[et])&&(Ue[We[et]]=me[We[et]])}return Ue}function i(me,Se,Ue,We){var lt,et=arguments.length,Et=et<3?Se:null===We?We=Object.getOwnPropertyDescriptor(Se,Ue):We;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Et=Reflect.decorate(me,Se,Ue,We);else for(var Vt=me.length-1;Vt>=0;Vt--)(lt=me[Vt])&&(Et=(et<3?lt(Et):et>3?lt(Se,Ue,Et):lt(Se,Ue))||Et);return et>3&&Et&&Object.defineProperty(Se,Ue,Et),Et}function t(me,Se){return function(Ue,We){Se(Ue,We,me)}}function p(me,Se,Ue,We,et,Et){function lt(ti){if(void 0!==ti&&"function"!=typeof ti)throw new TypeError("Function expected");return ti}for(var Oe,Vt=We.kind,r="getter"===Vt?"get":"setter"===Vt?"set":"value",Z=!Se&&me?We.static?me:me.prototype:null,Pt=Se||(Z?Object.getOwnPropertyDescriptor(Z,We.name):{}),ye=!1,ve=Ue.length-1;ve>=0;ve--){var ft={};for(var Dt in We)ft[Dt]="access"===Dt?{}:We[Dt];for(var Dt in We.access)ft.access[Dt]=We.access[Dt];ft.addInitializer=function(ti){if(ye)throw new TypeError("Cannot add initializers after decoration has completed");Et.push(lt(ti||null))};var Rn=(0,Ue[ve])("accessor"===Vt?{get:Pt.get,set:Pt.set}:Pt[r],ft);if("accessor"===Vt){if(void 0===Rn)continue;if(null===Rn||"object"!=typeof Rn)throw new TypeError("Object expected");(Oe=lt(Rn.get))&&(Pt.get=Oe),(Oe=lt(Rn.set))&&(Pt.set=Oe),(Oe=lt(Rn.init))&&et.unshift(Oe)}else(Oe=lt(Rn))&&("field"===Vt?et.unshift(Oe):Pt[r]=Oe)}Z&&Object.defineProperty(Z,We.name,Pt),ye=!0}function c(me,Se,Ue){for(var We=arguments.length>2,et=0;et<Se.length;et++)Ue=We?Se[et].call(me,Ue):Se[et].call(me);return We?Ue:void 0}function o(me){return"symbol"==typeof me?me:"".concat(me)}function x(me,Se,Ue){return"symbol"==typeof Se&&(Se=Se.description?"[".concat(Se.description,"]"):""),Object.defineProperty(me,"name",{configurable:!0,value:Ue?"".concat(Ue," ",Se):Se})}function u(me,Se){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(me,Se)}function m(me,Se,Ue,We){return new(Ue||(Ue=Promise))(function(Et,lt){function Vt(Pt){try{Z(We.next(Pt))}catch(Oe){lt(Oe)}}function r(Pt){try{Z(We.throw(Pt))}catch(Oe){lt(Oe)}}function Z(Pt){Pt.done?Et(Pt.value):function et(Et){return Et instanceof Ue?Et:new Ue(function(lt){lt(Et)})}(Pt.value).then(Vt,r)}Z((We=We.apply(me,Se||[])).next())})}function b(me,Se){var We,et,Et,lt,Ue={label:0,sent:function(){if(1&Et[0])throw Et[1];return Et[1]},trys:[],ops:[]};return lt={next:Vt(0),throw:Vt(1),return:Vt(2)},"function"==typeof Symbol&&(lt[Symbol.iterator]=function(){return this}),lt;function Vt(Z){return function(Pt){return function r(Z){if(We)throw new TypeError("Generator is already executing.");for(;lt&&(lt=0,Z[0]&&(Ue=0)),Ue;)try{if(We=1,et&&(Et=2&Z[0]?et.return:Z[0]?et.throw||((Et=et.return)&&Et.call(et),0):et.next)&&!(Et=Et.call(et,Z[1])).done)return Et;switch(et=0,Et&&(Z=[2&Z[0],Et.value]),Z[0]){case 0:case 1:Et=Z;break;case 4:return Ue.label++,{value:Z[1],done:!1};case 5:Ue.label++,et=Z[1],Z=[0];continue;case 7:Z=Ue.ops.pop(),Ue.trys.pop();continue;default:if(!(Et=(Et=Ue.trys).length>0&&Et[Et.length-1])&&(6===Z[0]||2===Z[0])){Ue=0;continue}if(3===Z[0]&&(!Et||Z[1]>Et[0]&&Z[1]<Et[3])){Ue.label=Z[1];break}if(6===Z[0]&&Ue.label<Et[1]){Ue.label=Et[1],Et=Z;break}if(Et&&Ue.label<Et[2]){Ue.label=Et[2],Ue.ops.push(Z);break}Et[2]&&Ue.ops.pop(),Ue.trys.pop();continue}Z=Se.call(me,Ue)}catch(Pt){Z=[6,Pt],et=0}finally{We=Et=0}if(5&Z[0])throw Z[1];return{value:Z[0]?Z[1]:void 0,done:!0}}([Z,Pt])}}}var I=Object.create?function(me,Se,Ue,We){void 0===We&&(We=Ue);var et=Object.getOwnPropertyDescriptor(Se,Ue);(!et||("get"in et?!Se.__esModule:et.writable||et.configurable))&&(et={enumerable:!0,get:function(){return Se[Ue]}}),Object.defineProperty(me,We,et)}:function(me,Se,Ue,We){void 0===We&&(We=Ue),me[We]=Se[Ue]};function H(me,Se){for(var Ue in me)"default"!==Ue&&!Object.prototype.hasOwnProperty.call(Se,Ue)&&I(Se,me,Ue)}function O(me){var Se="function"==typeof Symbol&&Symbol.iterator,Ue=Se&&me[Se],We=0;if(Ue)return Ue.call(me);if(me&&"number"==typeof me.length)return{next:function(){return me&&We>=me.length&&(me=void 0),{value:me&&me[We++],done:!me}}};throw new TypeError(Se?"Object is not iterable.":"Symbol.iterator is not defined.")}function P(me,Se){var Ue="function"==typeof Symbol&&me[Symbol.iterator];if(!Ue)return me;var et,lt,We=Ue.call(me),Et=[];try{for(;(void 0===Se||Se-- >0)&&!(et=We.next()).done;)Et.push(et.value)}catch(Vt){lt={error:Vt}}finally{try{et&&!et.done&&(Ue=We.return)&&Ue.call(We)}finally{if(lt)throw lt.error}}return Et}function G(){for(var me=[],Se=0;Se<arguments.length;Se++)me=me.concat(P(arguments[Se]));return me}function B(){for(var me=0,Se=0,Ue=arguments.length;Se<Ue;Se++)me+=arguments[Se].length;var We=Array(me),et=0;for(Se=0;Se<Ue;Se++)for(var Et=arguments[Se],lt=0,Vt=Et.length;lt<Vt;lt++,et++)We[et]=Et[lt];return We}function ae(me,Se,Ue){if(Ue||2===arguments.length)for(var Et,We=0,et=Se.length;We<et;We++)(Et||!(We in Se))&&(Et||(Et=Array.prototype.slice.call(Se,0,We)),Et[We]=Se[We]);return me.concat(Et||Array.prototype.slice.call(Se))}function J(me){return this instanceof J?(this.v=me,this):new J(me)}function q(me,Se,Ue){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var et,We=Ue.apply(me,Se||[]),Et=[];return et={},lt("next"),lt("throw"),lt("return"),et[Symbol.asyncIterator]=function(){return this},et;function lt(ye){We[ye]&&(et[ye]=function(ve){return new Promise(function(ft,Dt){Et.push([ye,ve,ft,Dt])>1||Vt(ye,ve)})})}function Vt(ye,ve){try{!function r(ye){ye.value instanceof J?Promise.resolve(ye.value.v).then(Z,Pt):Oe(Et[0][2],ye)}(We[ye](ve))}catch(ft){Oe(Et[0][3],ft)}}function Z(ye){Vt("next",ye)}function Pt(ye){Vt("throw",ye)}function Oe(ye,ve){ye(ve),Et.shift(),Et.length&&Vt(Et[0][0],Et[0][1])}}function j(me){var Se,Ue;return Se={},We("next"),We("throw",function(et){throw et}),We("return"),Se[Symbol.iterator]=function(){return this},Se;function We(et,Et){Se[et]=me[et]?function(lt){return(Ue=!Ue)?{value:J(me[et](lt)),done:!1}:Et?Et(lt):lt}:Et}}function Y(me){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ue,Se=me[Symbol.asyncIterator];return Se?Se.call(me):(me=O(me),Ue={},We("next"),We("throw"),We("return"),Ue[Symbol.asyncIterator]=function(){return this},Ue);function We(Et){Ue[Et]=me[Et]&&function(lt){return new Promise(function(Vt,r){!function et(Et,lt,Vt,r){Promise.resolve(r).then(function(Z){Et({value:Z,done:Vt})},lt)}(Vt,r,(lt=me[Et](lt)).done,lt.value)})}}}function K(me,Se){return Object.defineProperty?Object.defineProperty(me,"raw",{value:Se}):me.raw=Se,me}var ne=Object.create?function(me,Se){Object.defineProperty(me,"default",{enumerable:!0,value:Se})}:function(me,Se){me.default=Se};function ee(me){if(me&&me.__esModule)return me;var Se={};if(null!=me)for(var Ue in me)"default"!==Ue&&Object.prototype.hasOwnProperty.call(me,Ue)&&I(Se,me,Ue);return ne(Se,me),Se}function $(me){return me&&me.__esModule?me:{default:me}}function ue(me,Se,Ue,We){if("a"===Ue&&!We)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof Se?me!==Se||!We:!Se.has(me))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===Ue?We:"a"===Ue?We.call(me):We?We.value:Se.get(me)}function ge(me,Se,Ue,We,et){if("m"===We)throw new TypeError("Private method is not writable");if("a"===We&&!et)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof Se?me!==Se||!et:!Se.has(me))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===We?et.call(me,Ue):et?et.value=Ue:Se.set(me,Ue),Ue}function Ke(me,Se){if(null===Se||"object"!=typeof Se&&"function"!=typeof Se)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof me?Se===me:me.has(Se)}function at(me,Se,Ue){if(null!=Se){if("object"!=typeof Se&&"function"!=typeof Se)throw new TypeError("Object expected.");var We;if(Ue){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");We=Se[Symbol.asyncDispose]}if(void 0===We){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");We=Se[Symbol.dispose]}if("function"!=typeof We)throw new TypeError("Object not disposable.");me.stack.push({value:Se,dispose:We,async:Ue})}else Ue&&me.stack.push({async:!0});return Se}var Le="function"==typeof SuppressedError?SuppressedError:function(me,Se,Ue){var We=new Error(Ue);return We.name="SuppressedError",We.error=me,We.suppressed=Se,We};function R(me){function Se(We){me.error=me.hasError?new Le(We,me.error,"An error was suppressed during disposal."):We,me.hasError=!0}return function Ue(){for(;me.stack.length;){var We=me.stack.pop();try{var et=We.dispose&&We.dispose.call(We.value);if(We.async)return Promise.resolve(et).then(Ue,function(Et){return Se(Et),Ue()})}catch(Et){Se(Et)}}if(me.hasError)throw me.error}()}const Te={__extends:n,__assign:s,__rest:l,__decorate:i,__param:t,__metadata:u,__awaiter:m,__generator:b,__createBinding:I,__exportStar:H,__values:O,__read:P,__spread:G,__spreadArrays:B,__spreadArray:ae,__await:J,__asyncGenerator:q,__asyncDelegator:j,__asyncValues:Y,__makeTemplateObject:K,__importStar:ee,__importDefault:$,__classPrivateFieldGet:ue,__classPrivateFieldSet:ge,__classPrivateFieldIn:Ke,__addDisposableResource:at,__disposeResources:R}}},gt=>{gt(gt.s=67173)}]);